"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var s=require("tslib"),e=require("react/jsx-runtime"),a=require("lucide-react"),i=require("../../assets/Vector.svg.js"),l=require("../../styles/TemplateCard.module.css.js"),c=function(s){var i="#2563EB";switch(s.toLowerCase()){case"music":return e.jsx(a.Music,{size:18,color:i});case"global":return e.jsx(a.Globe,{size:18,color:i});default:return e.jsx(a.Radio,{size:18,color:i})}};exports.default=function(t){var d=t.id,n=t.title,r=t.badge,u=t.description,o=t.inheritedText,_=t.rulesCount,x=t.tiersCount,g=t.isSelected,f=t.onSelect;return e.jsx("div",s.__assign({onClick:function(){return f(d)},className:"".concat(l.default.card," ").concat(g?l.default.cardSelected:"")},{children:e.jsxs("div",s.__assign({className:l.default.container},{children:[e.jsx("div",s.__assign({className:l.default.iconBox},{children:c(n)})),e.jsxs("div",s.__assign({className:l.default.content},{children:[e.jsxs("div",s.__assign({className:l.default.headerRow},{children:[e.jsxs("div",s.__assign({className:l.default.titleRow},{children:[e.jsx("span",s.__assign({className:l.default.title},{children:n})),r&&e.jsx("div",s.__assign({className:l.default.badge},{children:e.jsx("span",s.__assign({className:l.default.badgeText},{children:r}))}))]})),e.jsx("div",s.__assign({className:"".concat(l.default.checkmark," ").concat(g?l.default.checkmarkSelected:l.default.checkmarkUnselected)},{children:g&&e.jsx(a.Check,{size:14,color:"white",strokeWidth:3})}))]})),e.jsx("div",s.__assign({className:l.default.descWrapper},{children:e.jsx("p",s.__assign({className:l.default.desc},{children:u}))})),e.jsxs("div",s.__assign({className:l.default.tagsRow},{children:[o&&e.jsxs("div",s.__assign({className:l.default.tagGroup},{children:[e.jsxs("div",s.__assign({className:l.default.tag},{children:[e.jsx("div",s.__assign({className:l.default.vectorIcon},{children:e.jsx(i.ReactComponent,{})})),e.jsx("span",s.__assign({className:l.default.tagText},{children:o}))]})),e.jsx("div",{className:l.default.divider})]})),e.jsx("div",s.__assign({className:l.default.tag},{children:e.jsxs("span",s.__assign({className:l.default.tagText},{children:[_," rules"]}))})),e.jsx("div",s.__assign({className:l.default.tag},{children:e.jsxs("span",s.__assign({className:l.default.tagText},{children:[x," ",1===x?"Tier":"Tiers"]}))}))]}))]}))]}))}))};
//# sourceMappingURL=TemplateCard.js.map
