import{j as s,a3 as a}from"./app-BgLa5dit.js";import{a as c}from"./Zwjmkasg.chunk.js";const l="_actionsContainer_2yn9c_1",o="_tileBorder_2yn9c_6",r="_cftTile_2yn9c_9",m="_bg1_2yn9c_12",b="_bg2_2yn9c_15",g="_bg3_2yn9c_18",_="_bg4_2yn9c_21",d="_bg5_2yn9c_24",n={actionsContainer:l,tileBorder:o,cftTile:r,bg1:m,bg2:b,bg3:g,bg4:_,bg5:d};function f(e){let t=n.bg5;return e===c.Primary&&(t=n.bg1),e===c.Secondary&&(t=n.bg2),e===c.K12&&(t=n.bg3),e===c.Tertiary&&(t=n.bg4),t}function y(e){const t=[];e.showTemplatePreview&&t.push({label:"Preview template",onClick:()=>e.showTemplatePreview(e.template)});function i(){return e.isSelected?`border border-success ${n.tileBorder}`:""}return s.jsxs("div",{className:"position-relative",children:[t.length>0?s.jsx("div",{className:n.actionsContainer,children:s.jsx(a,{actions:t,actionsDropdownClassName:"btn text-white"})}):null,s.jsx("div",{onClick:()=>e.selectTemplate(e.template),className:`rounded d-flex justify-content-center align-items-center cursor-pointer ${n.cftTile}
        ${i()} 
        ${f(e.template.data.customerType)}`,children:s.jsx("span",{className:"text-white text-center text-shadow clamp-2",children:e.template.displayName})})]})}export{y as C};
//# sourceMappingURL=CGKjJK3B.chunk.js.map
