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