import{a as y}from"./chunk-LIVIUXQS.js";import{Cb as f,Ka as p,T as m,_a as d,hb as r,ib as o,jb as l,na as a,nb as g,ob as u,ub as s,vb as c}from"./chunk-MFMPTNOZ.js";function h(t){return t.prints.length===0?null:t.prints.find(e=>e.position==="front")??t.prints[0]}function v(t,e){let n=t?.positions.find(i=>i.id===e);return n?n.view:e==="back"?"back":"front"}function P(t){return t.prints.length===0?"Blank":t.prints.map(e=>_(e.position)).join(" + ")}function b(t){return t.prints.length===0?"Blank product":t.prints.map(e=>e.design.fileName).join(", ")}function _(t){return t.charAt(0).toUpperCase()+t.slice(1).replace(/-/g," ")}var C=["*"],x=class t{icon=a("cart");title=a.required();message=a("");static \u0275fac=function(n){return new(n||t)};static \u0275cmp=m({type:t,selectors:[["app-empty-state"]],inputs:{icon:[1,"icon"],title:[1,"title"],message:[1,"message"]},standalone:!0,features:[f],ngContentSelectors:C,decls:9,vars:5,consts:[[1,"empty"],["aria-hidden","true",1,"empty__icon"],[3,"name","size","strokeWidth"],[1,"empty__title"],[1,"empty__text"],[1,"empty__actions"]],template:function(n,i){n&1&&(g(),r(0,"div",0)(1,"span",1),l(2,"app-icon",2),o(),r(3,"h2",3),s(4),o(),r(5,"p",4),s(6),o(),r(7,"div",5),u(8),o()()),n&2&&(p(2),d("name",i.icon())("size",30)("strokeWidth",1.6),p(2),c(i.title()),p(2),c(i.message()))},dependencies:[y],styles:[".empty[_ngcontent-%COMP%]{display:grid;justify-items:center;text-align:center;gap:6px;padding:clamp(36px,7vw,72px) 20px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-xl)}.empty__icon[_ngcontent-%COMP%]{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:var(--brand-100);color:var(--brand);margin-bottom:8px}.empty__title[_ngcontent-%COMP%]{margin:0;font-size:1.35rem}.empty__text[_ngcontent-%COMP%]{margin:0;color:var(--muted);max-width:42ch}.empty__actions[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:14px}"],changeDetection:0})};export{h as a,v as b,P as c,b as d,x as e};
