1import{c as u,o as p,b as s,k as Kt,m as se,d as _,q as Ft,s as Ot,a as N,u as A,h as Et,w as Qt,t as l,F as T,g as $e,e as b,A as Wt,J as ae,j as Q,n as S,M as Zt}from"./app-BqnMDJjU.js";import{A as Gt}from"./AuthenticatedLayout-BF41sBY3.js";import{S as Jt}from"./arrow-left-1-arrows-diagrams-CLesj3qr.js";import{S as Yt,a as pt}from"./navigation-menu-vertical-interface-essential-MVaQoGSZ.js";import"./Modal-L3VBTcOy.js";import"./Dialogs-CAjueNlT.js";import"./form-input-DpoJ-blQ.js";import"./Button-CjZln_nq.js";import"./useBasket-D7qbBKwm.js";import"./LanguageSwitcher-B_foB2IY.js";import"./InputContainer-C2wi-ChQ.js";import"./Collapse-CyztkSYm.js";const Xt={xmlns:"http://www.w3.org/2000/svg",fill:"none","stroke-width":"1.5",viewBox:"0 0 24 24"};function jt(B,d){return p(),u("svg",Xt,[...d[0]||(d[0]=[s("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M10.5 21.75A9.75 9.75 0 1 1 20.25 12v.75"},null,-1),s("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m23.25 9.747-3 3-3-3"},null,-1)])])}const er={render:jt},tr={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 64 64"};function rr(B,d){return p(),u("svg",tr,[...d[0]||(d[0]=[s("path",{stroke:"currentColor","stroke-linecap":"round","stroke-width":"3",d:"M34.82 52.73H14.69V22.18a1 1 0 0 1 .52-.87l18.13-9.91a1 1 0 0 1 1.48.88zM48.87 52.73H34.92V21.59L48.4 29.3a1 1 0 0 1 .47.85zM28.1 24.86h-7.04M43.66 32.41h-3.52M43.66 36.9h-3.52M43.66 41.71h-3.52M43.66 46.19h-3.52M28.1 30.44h-7.04M28.1 35.94h-7.04M28.1 41.44h-7.04M28.1 46.94h-7.04M9.46 52.73h45.08"},null,-1)])])}const sr={render:rr},ar={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 64 64"};function nr(B,d){return p(),u("svg",ar,[...d[0]||(d[0]=[s("path",{stroke:"currentColor","stroke-linecap":"round","stroke-width":"3",d:"M45.77 51a.09.09 0 0 1 .11 0l3.4 3.31a.08.08 0 0 0 .12-.07V9.7H14.6v44.46a.08.08 0 0 0 .13.07l4.38-3.29a.08.08 0 0 1 .1 0l4.53 3.33a.08.08 0 0 0 .11 0l4-3.33a.08.08 0 0 1 .11 0l4.52 3.32a.08.08 0 0 0 .11 0l4.2-3.26a.09.09 0 0 1 .12 0l4.51 3.31a.09.09 0 0 0 .12 0l4-3.3M18.72 31.11h13.3M18.72 25.77h15.97M18.72 15h17.33M18.72 20.11h14.43M41.01 30.95h4.27M18.72 36.81h15.97M41.86 36.66h3.42M41.01 42.56h4.27M41.01 25.61h4.27M41.86 20.11h3.42M41.01 15h4.27"},null,-1)])])}const lr={render:nr},dr={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"-4 0 32 32"};function or(B,d){return p(),u("svg",dr,[...d[0]||(d[0]=[s("path",{fill:"currentColor",d:"M12 15a3 3 0 1 1 0-6 3 3 0 0 1 0 6m0-8a5 5 0 1 0 0 10 5 5 0 0 0 0-10m0 22c-1.663.009-10-12.819-10-17C2 6.478 6.477 2 12 2s10 4.478 10 10c0 4.125-8.363 17.009-10 17m0-29C5.373 0 0 5.373 0 12c0 5.018 10.005 20.011 12 20 1.964.011 12-15.05 12-20 0-6.627-5.373-12-12-12"},null,-1)])])}const ir={render:or},cr={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function ur(B,d){return p(),u("svg",cr,[...d[0]||(d[0]=[s("path",{fill:"currentColor","fill-rule":"evenodd",d:"M16.5 6H3v11.25h1.527a2.626 2.626 0 0 0 5.196 0h5.304a2.626 2.626 0 0 0 5.196 0h1.527v-4.81L18.31 9H16.5zm0 4.5v4.003a2.625 2.625 0 0 1 3.497 1.247h.253v-2.69l-2.56-2.56zM15 15.75V7.5H4.5v8.25h.253a2.625 2.625 0 0 1 4.744 0zM17.625 18a1.125 1.125 0 1 1 0-2.25 1.125 1.125 0 0 1 0 2.25M8.25 16.875a1.125 1.125 0 1 1-2.25 0 1.125 1.125 0 0 1 2.25 0","clip-rule":"evenodd"},null,-1)])])}const pr={render:ur},hr={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 1024 1024"};function _r(B,d){return p(),u("svg",hr,[...d[0]||(d[0]=[s("path",{fill:"currentColor",d:"M53.6 1023.2c-6.4 0-12.8-2.4-17.6-8-4.8-4.8-7.2-11.2-6.4-18.4L80 222.4c.8-12.8 11.2-22.4 24-22.4h211.2v-3.2c0-52.8 20.8-101.6 57.6-139.2C410.4 21.6 459.2.8 512 .8c108 0 196.8 88 196.8 196.8 0 .8-.8 1.6-.8 2.4v.8h212c12.8 0 23.2 9.6 24 22.4L993.6 992c.8 2.4.8 4 .8 6.4-.8 13.6-11.2 24.8-24.8 24.8zm25.6-48H944l-46.4-726.4H708v57.6h.8c12.8 8.8 20 21.6 20 36 0 24.8-20 44.8-44.8 44.8s-44.8-20-44.8-44.8c0-14.4 7.2-27.2 20-36h.8v-57.6H363.2v57.6h.8c12.8 8.8 20 21.6 20 36 0 24.8-20 44.8-44.8 44.8s-44.8-20-44.8-44.8c0-14.4 7.2-27.2 20-36h.8v-57.6H125.6zM512 49.6c-81.6 0-148.8 66.4-148.8 148.8v3.2h298.4l-.8-1.6v-1.6c0-82.4-67.2-148.8-148.8-148.8"},null,-1)])])}const gr={render:_r}
1,fr={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 32 32"};function xr(B,d){return p(),u("svg",fr,[...d[0]||(d[0]=[s("path",{d:"M16 15.503A5.041 5.041 0 1 0 16 5.42a5.041 5.041 0 0 0 0 10.083m0 2.215c-6.703 0-11 3.699-11 5.5v3.363h22v-3.363c0-2.178-4.068-5.5-11-5.5"},null,-1)])])}const vr={render:xr},yr={class:"flex min-w-0 flex-col gap-8"},mr={class:"flex flex-col gap-5 lg:flex-row lg:items-start lg:justify-between","data-test":"page-header"},kr={class:"min-w-0"},wr=["href"],Cr={class:"mt-2.5 min-w-0"},br={class:"text-2xl font-semibold leading-tight text-blue-700 lg:text-3xl"},Sr={class:"mt-2 flex flex-wrap items-center gap-x-3 gap-y-1 text-sm font-medium text-blue-700"},Pr={key:0},Mr={key:1,class:"inline-flex items-center gap-3"},Nr={class:"flex items-center gap-2 self-start pt-1"},Ar={class:"relative","data-order-menu-root":""},$r=["aria-label"],Dr={key:0,class:"absolute right-0 top-12 z-50 w-48 rounded border border-gray-200 bg-white px-4 py-3 shadow-lg"},Lr={key:0,class:"rounded border border-gray-200 bg-white p-6 text-sm text-gray-600 shadow-sm"},qr={class:"rounded border border-blue-400 bg-blue-300 px-6 py-5 shadow-sm"},Ur={class:"text-3xl font-semibold leading-8 text-blue-700"},Tr={class:"mt-5 grid grid-cols-1 gap-3 md:grid-cols-2 xl:grid-cols-4"},Br={class:"rounded border border-blue-400/60 bg-blue-200 px-4 py-3.5"},Rr={class:"text-xs font-semibold uppercase tracking-[0.08em] text-blue-700/80"},Vr={class:"mt-2 border-t border-blue-400/40 pt-2.5 text-sm font-semibold text-blue-700"},Ir={class:"rounded border border-blue-400/60 bg-blue-200 px-4 py-3.5"},zr={class:"text-xs font-semibold uppercase tracking-[0.08em] text-blue-700/80"},Hr={class:"mt-2 border-t border-blue-400/40 pt-2.5 text-sm font-semibold text-blue-700"},Kr={class:"rounded border border-blue-400/60 bg-blue-200 px-4 py-3.5"},Fr={class:"text-xs font-semibold uppercase tracking-[0.08em] text-blue-700/80"},Or={class:"mt-2 border-t border-blue-400/40 pt-2.5 text-sm font-semibold text-blue-700"},Er={class:"rounded border border-blue-400/60 bg-blue-200 px-4 py-3.5"},Qr={class:"text-xs font-semibold uppercase tracking-[0.08em] text-blue-700/80"},Wr={class:"mt-2 border-t border-blue-400/40 pt-2.5 text-sm font-semibold text-blue-700"},Zr={class:"rounded border border-blue-400/60 bg-blue-200 px-4 py-3.5"},Gr={class:"text-xs font-semibold uppercase tracking-[0.08em] text-blue-700/80"},Jr={class:"mt-2 border-t border-blue-400/40 pt-2.5 text-sm font-semibold text-blue-700"},Yr={class:"rounded border border-blue-400/60 bg-blue-200 px-4 py-3.5"},Xr={class:"text-xs font-semibold uppercase tracking-[0.08em] text-blue-700/80"},jr={class:"mt-2 border-t border-blue-400/40 pt-2.5 text-sm font-semibold text-blue-700"},es={class:"rounded border border-blue-400/60 bg-blue-200 px-4 py-3.5"},ts={class:"text-xs font-semibold uppercase tracking-[0.08em] text-blue-700/80"},rs={class:"mt-2 border-t border-blue-400/40 pt-2.5 text-sm font-semibold text-blue-700"},ss={class:"rounded border border-blue-400/60 bg-blue-200 px-4 py-3.5"},as={class:"text-xs font-semibold uppercase tracking-[0.08em] text-blue-700/80"},ns={class:"mt-2 border-t border-blue-400/40 pt-2.5 text-sm font-semibold text-blue-700"},ls={class:"grid grid-cols-1 gap-4 xl:grid-cols-4"},ds={class:"flex min-h-[9.55rem] flex-col overflow-hidden rounded border border-gray-200 bg-white px-5 py-4 shadow-sm"},os={class:"flex items-center gap-2.5"},is={class:"dashboard-section-icon inline-flex shrink-0 items-center justify-center text-orange-500"},cs={class:"mt-2.5 grid flex-1 grid-rows-[4.6rem_minmax(0,1fr)]"},us={class:"mx-auto flex w-full max-w-[13rem] flex-col justify-start self-start pt-0.5"},ps={class:"relative h-4"},hs={key:0,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor","stroke-width":"2.25",class:"h-[8px] w-[8px] text-white"},_s={key:1,class:"h-[4px] w-[4px] rounded-full bg-blue-500"},gs={key:0,class:"grid min-h-[3rem] grid-cols-[minmax(0,1fr)_minmax(0,1fr)] content-start gap-x-4 gap-y-3 self-start pt-1 text-sm leading-5"},fs={key:0,class:"min-w-0"},xs={class:"text-[10px] font-semibold uppercase tracking-[0.12em] text-gray-500"},vs={class:"mt-1 truncate font-semibold leading-5 text-blue-700"},ys={key:1,class:"min-w-0"},ms={class:"text-[10px] font-semibold uppercase tracking-[0.12em] text-gray-500"},ks={class:"mt-1 font-semibold leading-5 text-blue-700"},ws={class:"flex min-h-[9.55rem] flex-col overflow-hidden rounded border border-gray-200 bg-white px-5 py-4 shadow-sm"},Cs={class:"flex items-center gap-2.5"}
1,bs={class:"dashboard-section-icon inline-flex shrink-0 items-center justify-center text-orange-500"},Ss={class:"text-lg font-medium leading-6 text-blue-700"},Ps={class:"mt-2.5 grid flex-1 grid-rows-[4.6rem_minmax(0,1fr)]"},Ms={class:"grid h-[4.6rem] grid-cols-[minmax(0,1fr)_minmax(0,1fr)] content-start gap-x-4 gap-y-2.5 text-sm leading-5"},Ns={class:"min-w-0"},As={class:"text-[10px] font-semibold uppercase tracking-[0.12em] text-gray-500"},$s={class:"min-w-0"},Ds={class:"text-[10px] font-semibold uppercase tracking-[0.12em] text-gray-500"},Ls={class:"grid min-h-[3rem] grid-cols-[minmax(0,1fr)_minmax(0,1fr)] content-start gap-x-4 gap-y-3 self-start pt-1 text-sm leading-5"},qs={class:"min-w-0"},Us={class:"text-[10px] font-semibold uppercase tracking-[0.12em] text-gray-500"},Ts={class:"mt-1 min-h-[2.25rem] font-semibold leading-5 text-blue-500"},Bs=["href"],Rs={class:"truncate"},Vs={class:"min-w-0"},Is={class:"text-[10px] font-semibold uppercase tracking-[0.12em] text-gray-500"},zs={class:"flex min-h-[9.55rem] flex-col overflow-hidden rounded border border-gray-200 bg-white px-5 py-4 shadow-sm"},Hs={class:"flex items-center gap-2.5"},Ks={class:"dashboard-section-icon inline-flex shrink-0 items-center justify-center text-orange-500"},Fs={class:"text-lg font-medium leading-6 text-blue-700"},Os={class:"mt-2.5 grid flex-1 grid-rows-[4.6rem_minmax(0,1fr)]"},Es={class:"grid h-[4.6rem] grid-cols-[minmax(0,1fr)_minmax(0,1fr)] content-start gap-x-4 gap-y-2.5 text-sm leading-5"},Qs={class:"min-w-0"},Ws={class:"text-[10px] font-semibold uppercase tracking-[0.12em] text-gray-500"},Zs={class:"mt-1 min-h-[2.25rem]"},Gs={key:1,class:"text-sm font-semibold text-gray-400"},Js={class:"min-w-0"},Ys={class:"text-[10px] font-semibold uppercase tracking-[0.12em] text-gray-500"},Xs={class:"grid min-h-[3rem] grid-cols-[minmax(0,1fr)_minmax(0,1fr)] content-start gap-x-4 gap-y-3 self-start pt-1 text-sm leading-5"},js={class:"min-w-0"},ea={class:"text-[10px] font-semibold uppercase tracking-[0.12em] text-gray-500"},ta={class:"min-w-0"},ra={class:"text-[10px] font-semibold uppercase tracking-[0.12em] text-gray-500"},sa={class:"flex min-h-[9.55rem] flex-col overflow-hidden rounded border border-gray-200 bg-white px-5 py-4 shadow-sm"},aa={class:"flex items-center gap-2.5"},na={class:"dashboard-section-icon inline-flex shrink-0 items-center justify-center text-orange-500"},la={class:"text-lg font-medium leading-6 text-blue-700"},da={class:"mt-2.5 grid flex-1 grid-rows-[4.6rem_minmax(0,1fr)]"},oa={class:"h-[4.6rem]"},ia={key:0,class:"min-w-0"},ca={key:0,class:"truncate text-[15px] font-semibold leading-5 text-blue-700"},ua={key:1,class:"mt-1 truncate text-sm leading-5 text-gray-700"},pa={class:"grid min-h-[3rem] grid-cols-[minmax(0,0.86fr)_minmax(0,1.14fr)] content-start gap-x-3 gap-y-3 self-start pt-1 text-sm leading-5"},ha={class:"min-w-0"},_a={class:"text-[10px] font-semibold uppercase tracking-[0.12em] text-gray-500"},ga={class:"min-w-0"},fa={class:"text-[10px] font-semibold uppercase tracking-[0.12em] text-gray-500"},xa={key:0,class:"flex flex-col gap-3"},va={class:"text-lg font-medium leading-6 text-blue-700"},ya={class:"flex flex-col gap-4"},ma={class:"grid grid-cols-1 items-start gap-4 p-4 xl:grid-cols-[28rem_minmax(0,1fr)] xl:gap-4 xl:items-stretch"},ka={class:"min-w-0 rounded border border-gray-200 bg-gray-100 px-3.5 py-3.5 xl:flex xl:h-full xl:flex-col"},wa={class:"flex gap-3.5"},Ca={class:"flex h-[84px] w-[84px] shrink-0 items-center justify-center rounded border border-gray-200 bg-white"},ba=["src","alt"],Sa={key:1,class:"h-14 w-14 rounded border border-gray-200 bg-white"},Pa={class:"min-w-0 flex-1 pr-1.5 pt-0.5"},Ma={class:"break-words text-lg font-medium uppercase leading-6 tracking-[0.01em] text-blue-700"},Na={key:0,class:"mt-1 text-sm leading-5 text-gray-700"},Aa={class:"mt-3 text-base font-semibold text-gray-900"},$a={key:1,class:"mt-3 flex items-center gap-2 text-sm text-gray-700"},Da={class:"font-medium"},La={key:2,class:"mt-3 inline-flex rounded-full bg-gray-100 px-3 py-1 text-xs font-semibold text-gray-600"},qa={class:"mt-4 border-t border-gray-200 pt-3.5 xl:mt-4"},Ua={key:0,class:"min-w-0 border-r border-gray-200 px-3"},Ta={class:"whitespace-nowrap text-xs font-semibold leading-4 tracking-[0.08em] text-gray-600"},Ba={class:"mt-1.5 text-sm font-semibold text-blue-700"},Ra={class:"min-w-0 border-r border-gray-200 px-3"},Va={class:"whitespace-nowrap text-xs font-semibold leading-4 tracking-[0.08em] text-gray-600"},Ia={class:"mt-1.5 text-sm font-semibold text-blue-700"},za={class:"min-w-0 border-r border-gray-200 px-3"},Ha={class:"whitespace-nowrap text-xs font-semibold leading-4 tracking-[0.08em] text-gray-600"},Ka={class:"mt-1.5 text-sm font-semibold text-blue-700"},Fa={class:"min-w-0 px-3 pr-0"},Oa={class:"whitespace-nowrap text-xs font-semibold leading-4 tracking-[0.08em] text-gray-600"},Ea={class:"mt-1.5 text-sm font-semibold text-blue-700"},Qa={key:0,class:"mt-3.5 flex flex-1 flex-col border-t border-gray-200/80 pt-3.5"},Wa={class:"text-xs font-semibold uppercase tracking-[0.08em] text-blue-700"},Za={class:"mt-2.5 grid flex-1 grid-cols-[minmax(0,1fr)_1px_minmax(0,1fr)] items-stretch gap-2.5"},Ga={class:"min-w-0 flex h-full flex-col"},Ja={class:"text-xs font-semibold uppercase tracking-[0.08em] text-gray-600"},Ya={class:"mt-2 flex flex-1 flex-col rounded border border-gray-200 bg-white px-2 py-1.5 text-center shadow-sm"},Xa={class:"mx-auto flex min-h-[3rem] flex-1 w-full items-center justify-center rounded bg-gray-50"},ja=["src","alt"],en={key:1,class:"text-xs text-gray-400"},tn={class:"mt-2 text-xs font-medium leading-4 text-blue-700"},rn={class:"min-w-0 flex h-full flex-col"},sn={class:"text-xs font-semibold uppercase tracking-[0.08em] text-gray-600"},an={class:"mt-2 flex min-h-[3rem] flex-1 items-center justify-center rounded border border-gray-200 bg-white px-2 py-1.5 shadow-sm"},nn=["src","alt"],ln=["href"],dn={class:"truncate"},on={key:2,class:"text-xs text-gray-400"},cn={class:"flex min-w-0 flex-col self-start overflow-hidden rounded border border-gray-200 bg-white shadow-sm xl:col-start-2"},un={class:"grid grid-cols-[minmax(0,1.7fr)_7rem_7rem_7rem] gap-x-3 border-b border-gray-200 bg-gray-50 px-4 py-3 text-xs font-semibold uppercase tracking-[0.08em] text-blue-500"},pn={class:"text-right"},hn={class:"text-right"},_n={class:"text-right"},gn={class:"flex flex-col bg-white"},fn={class:"space-y-0"},xn={class:"text-right"},vn={class:"text-right"},yn={class:"text-right"},mn={class:"mt-auto grid grid-cols-[minmax(0,1fr)_7rem] items-center rounded-b border-t border-b border-gray-200 border-b-blue-300 bg-gray-50 px-4 py-2.5"},kn={class:"text-base font-semibold text-blue-700"},wn={class:"text-right text-2xl font-semibold leading-tight text-blue-700"},Cn={class:"grid grid-cols-1 gap-3 xl:grid-cols-2"},bn={class:"rounded border border-gray-200 bg-white px-5 py-4 shadow-sm"},Sn={class:"flex items-center gap-2.5"}
1,Pn={class:"dashboard-section-icon inline-flex shrink-0 items-center justify-center text-orange-500"},Mn={class:"text-lg font-medium leading-6 text-blue-700"},Nn={class:"space-y-1 text-sm leading-5 text-gray-700"},An={key:0,class:"space-y-2.5 border-l border-gray-200 pl-4"},$n={class:"text-[10px] font-semibold uppercase tracking-[0.12em] text-gray-600"},Dn={class:"mt-1 text-sm font-medium text-blue-700"},Ln={class:"rounded border border-gray-200 bg-white px-5 py-4 shadow-sm"},qn={class:"flex items-center gap-2.5"},Un={class:"dashboard-section-icon inline-flex shrink-0 items-center justify-center text-orange-500"},Tn={class:"text-lg font-medium leading-6 text-blue-700"},Bn={class:"space-y-1 text-sm leading-5 text-gray-700"},Rn={key:0,class:"space-y-2.5 border-l border-gray-200 pl-4"},Vn={class:"text-[10px] font-semibold uppercase tracking-[0.12em] text-gray-600"},In={class:"mt-1 text-sm font-medium text-blue-700"},De="12.5%",Xn={__name:"Order",props:{order:{type:Object,default:null}},setup(B){const d=B,Le=Kt(),R=se(!1);se(!1),se(null),se("");const qe=se(null),Ue=(e,t)=>t.split(".").reduce((r,a)=>r&&r[a]!=null?r[a]:void 0,e),i=e=>{var c,g;const t=((g=(c=Le.props)==null?void 0:c.translations)==null?void 0:g.main)??{},r=t[e],a=r??Ue(t,e);return typeof a=="string"&&a.trim()!==""?a:e},w=(e,t=[])=>{for(const r of t){const a=String(r).split(".");let c=e;for(const g of a){if(!c||typeof c!="object"){c=void 0;break}c=c[g]}if(c!=null){if(typeof c=="string"){const g=c.trim();if(g!=="")return g;continue}return c}}return""},$=e=>String(e??"").trim().toLowerCase().replace(/\s+/g,"_"),ne=e=>{const t=String(e??"").trim().replace(/_/g," ");return t?t.charAt(0).toUpperCase()+t.slice(1):"-"},v=e=>{if(e==null||e==="")return null;const t=Number(e);return Number.isFinite(t)?t:null},D=e=>{if(e==null)return"-";const t=String(e).trim();return t===""?"-":t},h=e=>e==null?!1:String(e).trim()!==""&&String(e).trim()!=="-",ht=(e,t=[])=>{for(const r of t){const a=Ue(e,r);if(a!=null){if(typeof a=="string"){const c=a.trim();if(c!=="")return c;continue}return a}}return null},W=e=>{if(!e)return"-";const t=new Date(e);return Number.isNaN(t.getTime())?String(e):`${t.getDate()}.${t.getMonth()+1}.${t.getFullYear()}`},M=(e,t="EUR")=>e==null||e===""?"-":Zt(e,t||"EUR",Le.props.lang||"en"),Te=()=>{window.location.reload()},_t=()=>{window.print(),R.value=!1},gt=e=>{e!=null&&e.local&&(e!=null&&e.url)&&typeof URL<"u"&&URL.revokeObjectURL(e.url)};_(()=>{const e=$(de.value),t=$(ve.value);return!(["cancelled","canceled","done","completed"].includes(e)||["refund"].includes(t))}),_(()=>qe.value??xt.value);const Be=e=>{const t=e.target;if(!(t instanceof Element)){R.value=!1;return}R.value&&!t.closest("[data-order-menu-root]")&&(R.value=!1)};Ft(()=>{document.addEventListener("click",Be)}),Ot(()=>{document.removeEventListener("click",Be),gt(qe.value)});const V=_(()=>{var e,t;return((e=d.order)==null?void 0:e.orderNumber)??((t=d.order)==null?void 0:t.orderKey)??""}),le=_(()=>w(d.order,["creationDate","createdAt","created_at","orderDate","order_date","submittedAt","submitted_at","submissionDate","submission_date","date"])),Re=_(()=>w(d.order,["requestedDeliveryDate","requested_shipping_date","requestedShippingDate","deliveryDateRequested","expectedDeliveryDate","shipping.expectedDeliveryDate","shipping.requestedDeliveryDate"])),Ve=_(()=>{var e;return((e=d.order)==null?void 0:e.orderKey)??""}),fe=_(()=>w(d.order,["customerReference","customer_reference","orderNumberCustomer","order_number_customer","customerOrderNumber","customer_order_number","reference","referenceNumber",Ve.value&&Ve.value!==V.value?"orderKey":""].filter(Boolean))),ft=_(()=>{var t;const e=((t=d.order)==null?void 0:t.tenant)??"";return String(e).trim()&&String(e).trim()!=="-",e}),xe=_(()=>{var t;const e=((t=d.order)==null?void 0:t.customerId)??"";return String(e).trim()&&String(e).trim()!=="-",e}),L=_(()=>{var e;return((e=d.order)==null?void 0:e.currency)??"EUR"}),de=_(()=>{var e,t;return((e=d.order)==null?void 0:e.orderStatus)??((t=d.order)==null?void 0:t.order_status)??""}),ve=_(()=>{var e,t,r,a,c,g,n,o,x;return((e=d.order)==null?void 0:e.paymentStatus)??((t=d.order)==null?void 0:t.payment_status)??((a=(r=d.order)==null?void 0:r.payment)==null?void 0:a.status)??((c=d.order)==null?void 0:c.invoiceStatus)??((g=d.order)==null?void 0:g.invoice_status)??((n=d.order)==null?void 0:n.billingStatus)??((o=d.order)==null?void 0:o.billing_status)??((x=d.order)==null?void 0:x.payment)??""});_(()=>{var e,t,r,a,c;return((e=d.order)==null?void 0:e.trader)??((t=d.order)==null?void 0:t.traderName)??((a=(r=d.order)==null?void 0:r.employee)==null?void 0:a.name)??((c=d.order)==null?void 0:c.assignedEmployeeName)??""});const Ie=_(()=>{var e,t;return((e=d.order)==null?void 0:e.netOrderValue)??((t=d.order)==null?void 0:t.net_value)??null}),ze=_(()=>{var e,t;return((e=d.order)==null?void 0:e.grossOrderValue)??((t=d.order)==null?void 0:t.gross_value)??null}),He=_(()=>{var e,t,r;return((e=d.order)==null?void 0:e.deliveryAddress)??((t=d.order)==null?void 0:t.shippingAddress)??((r=d.order)==null?void 0:r.delivery_address)??null}),Ke=_(()=>{var e,t,r;return((e=d.order)==null?void 0:e.invoiceAddress)??((t=d.order)==null?void 0:t.billingAddress)??((r=d.order)==null?void 0:r.invoice_address)??null}),xt=_(()=>{const e=ht(d.order,["deliveryNote","delivery_note","documents.deliveryNote","documents.delivery_note","attachments.deliveryNote","attachments.delivery_note"]),t=w(d.order,["deliveryNote.filename","delivery_note.filename","documents.deliveryNote.filename","documents.delivery_note.filename","attachments.deliveryNote.filename","attachments.delivery_note.filename","deliveryNoteFilename","delivery_note_filename"]),r=w(d.order,["deliveryNote.url","delivery_note.url","documents.deliveryNote.url","documents.delivery_note.url","attachments.deliveryNote.url","attachments.delivery_note.url","deliveryNoteUrl","delivery_note_url","deliveryNote.downloadUrl","delivery_note.downloadUrl"]),a=w(d.order,["deliveryNote.uploadedAt","delivery_note.uploadedAt","deliveryNote.uploaded_at","delivery_note.uploaded_at","deliveryNote.createdAt","delivery_note.createdAt","deliveryNote.created_at","delivery_note.created_at","deliveryNote.date","delivery_note.date"]);return{exists:typeof t=="string"&&t.trim()!==""||typeof r=="string"&&r.trim()!==""||typeof(e==null?void 0:e.filename)=="str
1ing"&&e.filename.trim()!==""||typeof(e==null?void 0:e.path)=="string"&&e.path.trim()!=="",fileName:String(t||(e==null?void 0:e.filename)||"").trim(),url:String(r||(e==null?void 0:e.url)||"").trim(),uploadedAt:a,local:!1}}),Fe=_(()=>{const e=w(d.order,["shippingMethod","shipping_method","shipmentStatus","shipment_status","shipping.method"]);return h(e),e}),Oe=_(()=>{const e=D(Fe.value);if(e==="-")return e;const t=String(e).trim().toLowerCase();return t==="standard shipping"||t==="standard shipment"?i("dashboard.orders.shipping.standard-short"):e.replace(/\bshipping\b/gi,"").replace(/\bshipment\b/gi,"").replace(/\s{2,}/g," ").trim()||e}),ye=_(()=>{const e=w(d.order,["carrier","shippingCarrier","shipping_carrier","shippingProvider","shipping_provider","shipping.carrier"]);return h(e),e}),Z=_(()=>{const e=w(d.order,["trackingNumber","tracking_number","shipmentTracking","shipment_tracking","shipping.trackingNumber","shipping.tracking_number"]);return h(e),e}),Ee=_(()=>{const e=w(d.order,["trackingUrl","tracking_url","shipping.trackingUrl","shipping.tracking_url"]);return h(e),e}),oe=_(()=>{const e=w(d.order,["estimatedDeliveryDate","estimated_delivery_date","requestedDeliveryDate","requested_delivery_date","deliveryDate","delivery_date","shipping.estimatedDeliveryDate","shipping.estimated_delivery_date","deliveredAt","delivered_at"]);return h(e),e}),me=_(()=>{const e=w(d.order,["paymentMethod","payment_method","payment.method"]);return h(e),e}),ke=_(()=>{const e=w(d.order,["paymentTerms","payment_terms","payment.terms"]);return h(e),e}),ie=_(()=>{const e=w(d.order,["invoiceNumber","invoice_number","payment.invoice_data.invoiceNumber"]);return h(e),e}),ce=_(()=>{const e=w(d.order,["invoiceDate","invoice_date","payment.invoice_data.invoiceDate"]);return h(e),e}),ue=_(()=>{const e=w(d.order,["orderedByName","ordered_by_name","customer.name","buyer.name","deliveryAddress.name","invoiceAddress.name","trader","traderName"]);return h(e),e}),pe=_(()=>{const e=w(d.order,["orderedByCompany","ordered_by_company","customer.company","buyer.company","deliveryAddress.company","invoiceAddress.company"]);return h(e),e}),we=_(()=>{const e=w(d.order,["orderedByEmail","ordered_by_email","customer.email","buyer.email","deliveryAddress.email","invoiceAddress.email"]);return h(e),e}),vt=_(()=>{const e=w(d.order,["orderedByPhone","ordered_by_phone","customer.phone","buyer.phone","deliveryAddress.phone","invoiceAddress.phone"]);return h(e),e}),yt={register:"dashboard.orders.status.register",preparing_products:"dashboard.orders.status.preparing_products",in_production:"dashboard.orders.status.in_production",ready_to_sent:"dashboard.orders.status.ready_to_sent",sent:"dashboard.orders.status.sent",done:"dashboard.orders.status.done",canceled:"dashboard.orders.status.canceled",cancelled:"dashboard.orders.status.canceled",contact_with_us:"dashboard.orders.status.contact_with_us",complaint_filed:"dashboard.orders.status.complaint_filed",complaint_pending:"dashboard.orders.status.complaint_pending",complaint_considered:"dashboard.orders.status.complaint_considered"},mt={invoice_not_issued:"dashboard.orders.payment.invoice_not_issued",unpaid:"dashboard.orders.payment.unpaid",overdue:"dashboard.orders.payment.overdue",paid:"dashboard.orders.payment.paid",cancelled:"dashboard.orders.payment.cancelled",canceled:"dashboard.orders.payment.cancelled",refund:"dashboard.orders.payment.refund"};_(()=>{const e=$(de.value);if(!e)return"-";const t=yt[e];return t?i(t):ne(e)});const G=_(()=>{const e=$(ve.value);if(!e)return"-";const t=mt[e];return t?i(t):ne(e)}),kt=_(()=>$(ve.value)),wt=_(()=>{const e=kt.value;return["cancelled","canceled","refund","overdue"].includes(e)?"border-red-200 bg-red-50 text-red-600":["paid"].includes(e)?"border-green-200 bg-green-50 text-green-600":["invoice_not_issued","not_issued","unpaid"].includes(e)?"border-orange-200 bg-orange-100 text-orange-600":"border-gray-200 bg-gray-50 text-gray-600"}),Qe=[{key:"register",label:i("dashboard.orders.status.register")},{key:"preparing_products",label:i("dashboard.orders.status.preparing_products")},{key:"in_production",label:i("dashboard.orders.status.in_production")},{key:"done",label:i("dashboard.orders.status.done")}],Ct=e=>{const t=String(e??"").trim();return t?t.replace(/^In\s+/i,"").replace(/^En\s+/i,""):"-"},I=_(()=>{var r,a,c,g;const e=((r=d.order)==null?void 0:r.statusSteps)??((a=d.order)==null?void 0:a.status_steps)??((c=d.order)==null?void 0:c.orderStatusSteps)??((g=d.order)==null?void 0:g.order_status_steps)??[];if(!Array.isArray(e)||e.length===0)return Qe;const t=e.map((n,o)=>{const x=$((n==null?void 0:n.key)??(n==null?void 0:n.status)??(n==null?void 0:n.code)??(n==null?void 0:n.name)??(n==null?void 0:n.label)??`${o}`),y=String((n==null?void 0:n.label)??(n==null?void 0:n.name)??(n==null?void 0:n.title)??ne(x)).trim();return x?{key:x,label:y}:null}
1).filter(Boolean);return t.length?t:Qe}),bt={register:0,preparing_products:1,in_production:2,ready_to_sent:2,sent:3,done:3},z=_(()=>{const e=$(de.value),t=I.value.findIndex(r=>$(r.key)===e);return t>=0?t:bt[e]??0}),St=_(()=>{if(I.value.length<=1)return"0%";const e=z.value/(I.value.length-1)*75;return`${Math.max(0,Math.min(75,e))}%`}),H=_(()=>{var t,r;const e=((t=d.order)==null?void 0:t.items)??((r=d.order)==null?void 0:r.products)??[];return Array.isArray(e)?e:[]}),We=e=>(e==null?void 0:e.image)??(e==null?void 0:e.imageThumb)??(e==null?void 0:e.imageUrl)??(e==null?void 0:e.thumbnailUrl)??"",Pt=e=>(e==null?void 0:e.name)??(e==null?void 0:e.productName)??(e==null?void 0:e.sku)??(e==null?void 0:e.code)??(e==null?void 0:e.articleId)??"-",Mt=e=>(e==null?void 0:e.sku)??(e==null?void 0:e.articleId)??(e==null?void 0:e.code)??"-",Ze=e=>(e==null?void 0:e.shortDescription)??(e==null?void 0:e.description)??"",Ge=e=>w(e,["colorName","colourName","color.name","colour.name"]),Je=e=>w(e,["colorHex","colourHex","colorCode","colourCode","color.hex","colour.hex"]),J=e=>v(e==null?void 0:e.quantity)??0,Ce=e=>(e==null?void 0:e.quantityUnit)??i("dashboard.orders.product.quantity-unit"),be=e=>v(e==null?void 0:e.price),Ye=e=>{const t=v(f(e==null?void 0:e.articleValue,e==null?void 0:e.article_value,e==null?void 0:e.value));if(t!==null)return t;const r=v(e==null?void 0:e.price),a=J(e);return r!==null?Number((r*a).toFixed(2)):null},Y=e=>Ye(e),Xe=e=>v(w(e,["printedUnitPrice","printed_unit_price","prices.printedUnitPrice","prices.printed_unit_price","totals.printedUnitPrice","totals.printed_unit_price","calculation.printedUnitPrice","calculation.printed_unit_price"])),je=e=>{const t=$(e==null?void 0:e.status);return!t||t===$(de.value)?"":ne(t)},f=(...e)=>{for(const t of e)if(t!=null){if(typeof t=="string"){const r=t.trim();if(r!=="")return r;continue}return t}return null},et=e=>{const t=String(e??"").trim();return t!==""?t:""},he=e=>{var a,c,g,n,o,x,y,m,k,C;return[e==null?void 0:e.printJobs,e==null?void 0:e.print_jobs,e==null?void 0:e.jobs,e==null?void 0:e.prints,e==null?void 0:e.printings,e==null?void 0:e.decorations,e==null?void 0:e.printDetails,e==null?void 0:e.print_details,e==null?void 0:e.printingDetails,e==null?void 0:e.printing_details,e==null?void 0:e.printPositions,e==null?void 0:e.print_positions,e==null?void 0:e.project_items,e==null?void 0:e.projectItems,e==null?void 0:e.project,(a=e==null?void 0:e.project)==null?void 0:a.jobs,(c=e==null?void 0:e.project)==null?void 0:c.prints,(g=e==null?void 0:e.project)==null?void 0:g.printings,(n=e==null?void 0:e.project)==null?void 0:n.decorations,(o=e==null?void 0:e.project)==null?void 0:o.items,(x=e==null?void 0:e.project)==null?void 0:x.project_items,(y=e==null?void 0:e.project)==null?void 0:y.projectItems,(m=e==null?void 0:e.calculation)==null?void 0:m.jobs,(k=e==null?void 0:e.calculation)==null?void 0:k.prints,(C=e==null?void 0:e.calculation)==null?void 0:C.printings].flatMap(P=>Array.isArray(P)?P:P&&typeof P=="object"?[P]:[]).filter(P=>P&&typeof P=="object")},Se=e=>{var t,r,a,c;return f(e==null?void 0:e.positionLabel,e==null?void 0:e.position_label,(t=e==null?void 0:e.print_place)==null?void 0:t.t_name,(r=e==null?void 0:e.print_place)==null?void 0:r.full_name,(a=e==null?void 0:e.print_place)==null?void 0:a.name_full,e==null?void 0:e.print_position_full_name,e==null?void 0:e.print_position_label,e==null?void 0:e.print_position_name,e==null?void 0:e.position_name,e==null?void 0:e.position_label,e==null?void 0:e.position,(c=e==null?void 0:e.print_place)==null?void 0:c.name,e==null?void 0:e.print_position)},Pe=e=>{var t,r,a;return f(e==null?void 0:e.methodLabel,e==null?void 0:e.method_label,(t=e==null?void 0:e.print_method)==null?void 0:t.name,(r=e==null?void 0:e.print_method)==null?void 0:r.t_name,e==null?void 0:e.print_method_name,e==null?void 0:e.method_name,e==null?void 0:e.technique,(a=e==null?void 0:e.print_method)==null?void 0:a.label)},Me=e=>{var t;return f(e==null?void 0:e.methodCode,e==null?void 0:e.method_code,e==null?void 0:e.print_code,e==null?void 0:e.printCode,(t=e==null?void 0:e.print_method)==null?void 0:t.code,e==null?void 0:e.code)},_e=e=>{const t=f(e==null?void 0:e.colours,e==null?void 0:e.colors,e==null?void 0:e.colors_count,e==null?void 0:e.colour_count,e==null?void 0:e.numberOfColours);return t===null?"-":String(t).toLowerCase()==="full"||Number(t)===-1?i("dashboard.orders.print-details.full-colour"):String(t)},ge=e=>{var t,r,a,c,g,n,o,x,y;return et(f(e==null?void 0:e.positionSampleTemplate,e==null?void 0:e.position_sample_template,e==null?void 0:e.positionSample,e==null?void 0:e.position_sample,e==null?void 0:e.positionSampleUrl,e==null?void 0:e.position_sample_url,e==null?void 0:e.sampleTemplate,e==null?void 0:e.sample_template,e==null?void 0:e.template,e==null?void 0:e.template_url,e==null?void 0:e.print_position_image,e==null?void 0:e.print_position_image_url,(t=e==null?void 0:e.print_place)==null?void 0:t.position_visualization,(r=e==null?void 0:e.print_place)==null?void 0:r.position_sample_template,(a=e==null?void 0:e.print_place)==null?void 0:a.sample_template,(c=e==null?void 0:e.print_place)==null?void 0:c.image,(g=e==null?void 0:e.print_place)==null?void 0:g.image_url,(o=(n=e==null?void 0:e.data)==null?void 0:n.print_place)==null?void 0:o.sample_template,(y=(x=e==null?void 0:e.data)==null?void 0:x.print_place)==null?void 0:y.image_url))},O=e=>{var t,r,a,c,g,n,o,x,y,m,k,C,P,F,X,j,ee,te;return et(f(e==null?void 0:e.imageBase64,e==null?void 0:e.image_base64,e==null?void 0:e.fileBase64,e==null?void 0:e.file_base64,e==null?void 0:e.uploadedLogo,e==null?void 0:e.uploaded_logo,e==null?void 0:e.uploadedLogoUrl,e==null?void 0:e.uploaded_logo_url,e==null?void 0:e.logo,e==null?void 0:e.logoUrl,e==null?void 0:e.logo_url,(a=(r=(t=e==null?void 0:e.data)==null?void 0:t.logo_file)==null?void 0:r.custom_properties)==null?void 0:a.preview_url,(g=(c=e==null?void 0:e.logo_file)==null?void 0:c.custom_properties)==null?void 0:g.preview_url,(o=(n=e==null?void 0:e.data)==null?void 0:n.logo_file)==null?void 0:o.preview_url,(y=(x=e==null?void 0:e.data)==null?void 0:x.logo_file)==null?void 0:y.url,(k=(m=e==null?void 0:e.data)==null?void 0:m.logo_file)==null?void 0:k.path,(C=e==null?void 0:e.logo_file)==null?void 0:C.preview_url,(P=e==null?void 0:e.logo_file)==null?void 0:P.url,(F=e==null?void 0:e.logo_file)==null?void 0:F.path,(j=(X=e==null?void 0:e.file)==null?void 0:X.custom_properties)==null?void 0:j.preview_url,(ee=e==null?void 0:e.file)==null?void 0:ee.preview_url,(te=e==null?void 0:e.file)==null?void 0:te.url,e==null?void 0:e.logo_preview_url,e==null?void 0:e.uploaded_logo_url,e==null?void 0:e.uploaded_image_url))},Nt=e=>{var t,r;return f(e==null?void 0:e.uploadedLogoFileName,e==null?void 0:e.uploaded_logo_file_name,e==null?void 0:e.fileName,e==null?void 0:e.file_name,(t=e==null?void 0:e.logo_file)==null?void 0:t.file_name,(r=e==null?void 0:e.logo_file)==null?void 0:r.name)},At=e=>{var t,r;return String(f(e==null?void 0:e.uploadedLogoFileType,e==null?void 0:e.uploaded_logo_file_type,e==null?void 0:e.fileType,e==null?void 0:e.file_type,(t=e==null?void 0:e.logo_file)==null?void 0:t.mime_type,(r=e==null?void 0:e.logo_file)==null?void 0:r.mimeType)??"").trim().toLowerCase()},$t=e=>{const t=String(O(e)??"").trim().toLowerCase(),r=At(e);return t?t.startsWith("data:image/")?!0:t.startsWith("data:")?!1:r?r.startsWith("image/"):!/\.(pdf|ai|eps)(?:[?#].*)?$/.test(t):!1},Dt=e=>f(e==null?void 0:e.printArea,e==null?void 0:e.print_area,e==null?void 0:e.area_cm2),tt=e=>{if(!e||typeof e!="object")return 0;let t=0;return h(Se(e))&&(t+=3),h(Pe(e))&&(t+=3),h(Me(e))&&(t+=1),h(_e(e))&&_e(e)!=="-"&&(t+=1),h(ge(e))&&(t+=4),h(O(e))&&(t+=4),t},Lt=e=>{if(!e||typeof e!="object")return!1;const t=_e(e);return[Se(e),Pe(e),Me(e),ge(e),O(e),Dt(e),t!=="-"&&t!=="0"?t:null].some(r=>h(r))},q=e=>{var t;return((t=he(e).map(r=>({entry:r,score:tt(r)})).sort((r,a)=>a.score-r.score).find(({score:r})=>r>0))==null?void 0:t.entry)??null},rt=e=>tt(q(e))>0,Ne=e=>({printCost:f(e==null?void 0:e.printCost,e==null?void 0:e.print_cost),setupCost:f(e==null?void 0:e.setupCost,e==null?void 0:e.setup_cost,e==null?void 0:e.preparationCost,e==null?void 0:e.preparation_cost),handlingCost:f(e==null?void 0:e.handlingCost,e==null?void 0:e.handling_cost),treatmentCost:f(e==null?void 0:e.treatmentCost,e==null?void 0:e.treatment_c
1ost,e==null?void 0:e.pre_treatment_cost,e==null?void 0:e.pretreatment_cost),setupCode:f(e==null?void 0:e.setupCode,e==null?void 0:e.setup_code,e==null?void 0:e.preparationCode,e==null?void 0:e.preparation_code),handlingCode:f(e==null?void 0:e.handlingCode,e==null?void 0:e.handling_code),treatmentCode:f(e==null?void 0:e.treatmentCode,e==null?void 0:e.treatment_code,e==null?void 0:e.pre_treatment_code,e==null?void 0:e.pretreatment_code),printMethod:f(e==null?void 0:e.printMethod,e==null?void 0:e.print_method,e==null?void 0:e.print_method_name,e==null?void 0:e.method_name),printCode:f(e==null?void 0:e.printCode,e==null?void 0:e.print_code,e==null?void 0:e.code)}),st=e=>{var x,y;const t=J(e),r=String(t>0?t:""),a=q(e),c=he(e),g=c.flatMap(m=>{const k=m==null?void 0:m.costs;return!k||typeof k!="object"?[]:r&&k[r]&&typeof k[r]=="object"?[Ne(k[r])]:Object.values(k).filter(C=>C&&typeof C=="object").map(C=>Ne(C))}),n=c.map(m=>Ne(m)),o=g[0]??n[0]??{};return{printCost:v(f(o==null?void 0:o.printCost,(x=e==null?void 0:e.totals)==null?void 0:x.printCosts,(y=e==null?void 0:e.totals)==null?void 0:y.print_costs,e==null?void 0:e.total_print_cost,e==null?void 0:e.print_cost)),setupCost:v(f(o==null?void 0:o.setupCost)),handlingCost:v(f(o==null?void 0:o.handlingCost)),treatmentCost:v(f(o==null?void 0:o.treatmentCost)),setupCode:f(o==null?void 0:o.setupCode,a==null?void 0:a.setup_code,a==null?void 0:a.setupCode),handlingCode:f(o==null?void 0:o.handlingCode,a==null?void 0:a.handling_code,a==null?void 0:a.handlingCode),treatmentCode:f(o==null?void 0:o.treatmentCode,a==null?void 0:a.pre_treatment_code,a==null?void 0:a.treatment_code,a==null?void 0:a.treatmentCode),printMethod:f(o==null?void 0:o.printMethod,Pe(a)),printCode:f(o==null?void 0:o.printCode,Me(a)),colours:_e(a)}},qt=e=>{var t,r,a,c,g,n,o,x,y,m;return v(f(e==null?void 0:e.shippingCost,e==null?void 0:e.shipping_cost,e==null?void 0:e.deliveryCost,e==null?void 0:e.delivery_cost,e==null?void 0:e.shippingCostTotal,e==null?void 0:e.shipping_cost_total,(t=e==null?void 0:e.totals)==null?void 0:t.shippingCosts,(r=e==null?void 0:e.totals)==null?void 0:r.shipping_costs,(a=e==null?void 0:e.totals)==null?void 0:a.shippingCostTotal,(c=e==null?void 0:e.totals)==null?void 0:c.shipping_cost_total,(g=e==null?void 0:e.costs)==null?void 0:g.shipping_cost_total,(n=e==null?void 0:e.costs)==null?void 0:n.shippingCostTotal,H.value.length===1?(o=d.order)==null?void 0:o.shipping_cost:null,H.value.length===1?(x=d.order)==null?void 0:x.shippingCost:null,H.value.length===1?(y=d.order)==null?void 0:y.shipping_cost_total:null,H.value.length===1?(m=d.order)==null?void 0:m.shippingCostTotal:null))},at=_(()=>{var r,a,c,g,n,o,x,y,m,k,C,P,F,X,j,ee,te,ut;const e=v(f((r=d.order)==null?void 0:r.shippingCost,(a=d.order)==null?void 0:a.shipping_cost,(c=d.order)==null?void 0:c.deliveryCost,(g=d.order)==null?void 0:g.delivery_cost,(n=d.order)==null?void 0:n.shippingCostTotal,(o=d.order)==null?void 0:o.shipping_cost_total,(y=(x=d.order)==null?void 0:x.totals)==null?void 0:y.shippingCosts,(k=(m=d.order)==null?void 0:m.totals)==null?void 0:k.shipping_costs,(P=(C=d.order)==null?void 0:C.totals)==null?void 0:P.shippingCostTotal,(X=(F=d.order)==null?void 0:F.totals)==null?void 0:X.shipping_cost_total,(ee=(j=d.order)==null?void 0:j.costs)==null?void 0:ee.shippingCostTotal,(ut=(te=d.order)==null?void 0:te.costs)==null?void 0:ut.shipping_cost_total));if(e!==null)return e;const t=H.value.map(re=>qt(re)).filter(re=>re!==null);return t.length?t.reduce((re,Ht)=>re+Ht,0):null}),U=(e,t)=>e!==null?M(e,t):"-",E=(e,t="")=>e==null||e===""||e==="-"?"-":`${e}${t?` ${t}`:""}`,K=(e,t)=>h(t)?`${e} (${t})`:e,Ut=e=>{const t=f(e==null?void 0:e._dashboardPrintComponentCode,e==null?void 0:e.articleId,e==null?void 0:e.article_id,e==null?void 0:e.sku,e==null?void 0:e.code),r=String(t??"").trim().toUpperCase().replace(/^56(?=[A-Z])/,""),a=e==null?void 0:e._dashboardPrintComponentTranslationKey;if(a){const c=i(a);return(e==null?void 0:e._dashboardPrintComponentKind)==="print-method"?`${r} ${c}`.trim():K(c,r)}return r==="T50"?`${r} ${i("dashboard.orders.calculation.transfer-print")}`:/^H[A-Z0-9]*$/.test(r)?K(i("dashboard.orders.calculation.handling-costs"),r):/^VO[A-Z0-9]*$/.test(r)?K(i("dashboard.orders.calculation.preparation-costs"),r):/^V[A-Z0-9]*$/.test(r)?K(i("dashboard.orders.calculation.pre-treatment-costs"),r):f(e==null?void 0:e.name,e==null?void 0:e.description,r)??"-"},Tt=(e,t)=>(Array.isArray(e==null?void 0:e.printSubPositions)?e.printSubPositions:Array.isArray(e==null?void 0:e.print_sub_positions)?e.print_sub_positions:[]).map(a=>{const c=v(f(a==null?void 0:a.quantity,a==null?void 0:a.orderedQuantity,a==null?void 0:a.volume)),g=f(a==null?void 0:a.quantityUnit,a==null?void 0:a.quantity_unit)??Ce(e),n=v(f(a==null?void 0:a.value,a==null?void 0:a.positionTotal,a==null?void 0:a.total));let o=v(f(a==null?void 0:a.price,a==null?void 0:a.unitPrice,a==null?void 0:a.unit_price));return o===null&&n!==null&&c!==null&&c>0&&(o=n/c),{label:Ut(a),quantity:E(c,g),unitPrice:U(o,t),total:U(n,t),emphasis:!1}}),Bt=e=>{const t=[e==null?void 0:e.key,e==null?void 0:e.type,e==null?void 0:e.code,e==null?void 0:e.label,e==null?void 0:e.name,e==null?void 0:e.description,e==null?void 0:e.title].filter(r=>r!=null).map(r=>$(r)).join(" ");
1return/\b(shipping|shipment|delivery|freight)[_-]?(cost|costs|price|total)\b/.test(t)||/\b(cost|costs|price|total)[_-]?(shipping|shipment|delivery|freight)\b/.test(t)},Rt=(e,t)=>{var a,c,g;return[e==null?void 0:e.calculationRows,e==null?void 0:e.calculation_rows,(a=e==null?void 0:e.calculation)==null?void 0:a.rows,(c=e==null?void 0:e.calculation)==null?void 0:c.items,e==null?void 0:e.priceCalculationRows,e==null?void 0:e.price_calculation_rows,e==null?void 0:e.costRows,e==null?void 0:e.cost_rows,(g=e==null?void 0:e.costs)==null?void 0:g.rows,e==null?void 0:e.rows].flatMap(n=>Array.isArray(n)?n:[]).filter(n=>n&&typeof n=="object"&&!Bt(n)).map(n=>{const o=f(n.label,n.name,n.description,n.title,n.type,n.key),x=f(n.quantity,n.qty,n.amount,n.count,n.volume),y=f(n.quantityUnit,n.quantity_unit,n.unit,n.unitCode,n.unit_code),m=v(f(n.unitPrice,n.unit_price,n.pricePerUnit,n.price_per_unit,n.price)),k=v(f(n.total,n.totalPrice,n.total_price,n.value,n.amountTotal,n.amount_total,n.cost));return h(o)?{label:o,quantity:h(x)?E(x,y):"-",unitPrice:U(m,t),total:U(k,t),emphasis:!!(n.emphasis||n.highlight||n.isGroup||n.is_group)}:null}).filter(Boolean)};_(()=>[Fe.value,ye.value,Z.value,oe.value].some(h)),_(()=>[G.value,ke.value,me.value,L.value,ie.value,ce.value].some(h)),_(()=>[ue.value,pe.value,xe.value,we.value,vt.value].some(h));const nt=(e,t)=>{var r,a;return[h(t==null?void 0:t.printMethod),h(t==null?void 0:t.printCode),(t==null?void 0:t.colours)!=="-",(v(t==null?void 0:t.printCost)??0)>0,(v(t==null?void 0:t.setupCost)??0)>0,(v(t==null?void 0:t.handlingCost)??0)>0,(v(t==null?void 0:t.treatmentCost)??0)>0,(v((r=e==null?void 0:e.totals)==null?void 0:r.printCosts)??0)>0,(v((a=e==null?void 0:e.totals)==null?void 0:a.print_costs)??0)>0,(v(e==null?void 0:e.total_print_cost)??0)>0,(v(e==null?void 0:e.print_cost)??0)>0].some(Boolean)},Vt=e=>{const t=he(e),r=st(e);return t.length>0||rt(e)||nt(e,r)},It=e=>{const t=[],r=J(e),a=be(e),c=Ye(e);Y(e);const g=Ce(e),n=(e==null?void 0:e.currency)??L.value,o=st(e),x=Tt(e,n),y=he(e).some(C=>Lt(C))||rt(e)||nt(e,o),m=Rt(e,n);if(m.length)return m;t.push({label:i("dashboard.orders.calculation.article-price"),quantity:r>0?`${r} ${g}`:"-",unitPrice:a!==null?M(a,n):"-",total:c!==null?M(c,n):"-",emphasis:!1});const k=[h(o.printMethod)?o.printMethod:null,h(o.printCode)?`(${o.printCode})`:null,o.colours!=="-"?`- ${o.colours} ${Number(o.colours)===1?i("dashboard.orders.print-details.colour"):i("dashboard.orders.print-details.colours")}`:null].filter(Boolean);if(y){const C=v(f(e==null?void 0:e.printComponentTotal,e==null?void 0:e.print_component_total));if(t.push({label:i("product.show.basket.printing_costs"),quantity:"-",unitPrice:"-",total:U(C??o.printCost,n),emphasis:!0}),x.length)return t.push(...x),t;(k.length||o.printCost!==null)&&t.push({label:k.length?k.join(" "):i("dashboard.orders.calculation.print-service"),quantity:E(r>0?r:null,g),unitPrice:o.printCost!==null&&r>0?M(o.printCost/r,n):"-",total:U(o.printCost,n),emphasis:!1}),(o.setupCost!==null||h(o.setupCode))&&t.push({label:K(i("dashboard.orders.product.quantity-unit-single"),o.setupCode),quantity:E(1,i("dashboard.orders.product.quantity-unit-single")),unitPrice:U(o.setupCost,n),total:U(o.setupCost,n),emphasis:!1}),(o.handlingCost!==null||h(o.handlingCode))&&t.push({label:K(i("product.show.basket.handling_costs"),o.handlingCode),quantity:E(r>0?r:null,g),unitPrice:o.handlingCost!==null&&r>0?M(o.handlingCost/r,n):"-",total:U(o.handlingCost,n),emphasis:!1}),(o.treatmentCost!==null||h(o.treatmentCode))&&t.push({label:K(i("product.show.basket.treatment"),o.treatmentCode),quantity:E(r>0?r:null,g),unitPrice:o.treatmentCost!==null&&r>0?M(o.treatmentCost/r,n):"-",total:U(o.treatmentCost,n),emphasis:!1})}return t},zt=()=>"grid-cols-[minmax(0,0.9fr)_minmax(0,0.9fr)_minmax(0,1.4fr)_minmax(0,0.8fr)] gap-x-0",Ae=e=>{if(!e||typeof e!="object")return{company:"",name:"",streetLine:"",cityLine:"",country:"",phone:"",email:"",vatId:""};const t=String(e.company??"").trim(),r=String(e.name??"").trim(),a=String(e.street??"").trim(),c=String(e.street_number??e.streetNumber??"").trim(),g=String(e.flat_number??e.flatNumber??"").trim(),n=String(e.postal_code??e.postalCode??e.zip??e.postal??"").trim(),o=String(e.city??"").trim(),x=String(e.country??"").trim(),y=String(e.phone??"").trim(),m=String(e.email??"").trim(),k=String(e.vatId??e.vat_id??e.taxId??e.tax_id??"").trim(),C=[a,c].filter(
1Boolean).join(" ").trim(),P=g?[C,`/${g}`].filter(Boolean).join(" ").trim():C,F=[n,o].filter(Boolean).join(" ").trim();return{company:t,name:r,streetLine:P,cityLine:F,country:x,phone:y,email:m,vatId:k}},lt=e=>{const t=Ae(e),r=[t.cityLine,t.country].filter((c,g,n)=>h(c)?n.indexOf(c)===g:!1).join(", "),a=[t.company,t.name,t.streetLine,r].filter(h);return a.length?a:["-"]},dt=_(()=>Ae(He.value)),ot=_(()=>Ae(Ke.value)),it=_(()=>h(dt.value.phone)),ct=_(()=>h(ot.value.vatId));return(e,t)=>(p(),u(T,null,[N(A(Et),{title:V.value?e.$t("dashboard.orders.order-title",{id:V.value}):e.$t("dashboard.menu.orders")},null,8,["title"]),N(Gt,null,{default:Qt(()=>[s("div",yr,[s("div",mr,[s("div",kr,[s("a",{href:e.$href("/dashboard/orders"),class:"inline-flex items-center gap-1.5 text-xs font-semibold text-blue-500 transition-colors hover:text-blue-700","data-test":"page-header-back"},[N(A(Jt),{class:"h-3.5 w-3.5 shrink-0"}),s("span",null,l(i("dashboard.orders.back")),1)],8,wr),s("div",Cr,[s("h1",br,[V.value?(p(),u(T,{key:0},[$e("Order #"+l(V.value),1)],64)):(p(),u(T,{key:1},[$e(l(e.$t("dashboard.menu.orders")),1)],64))]),s("div",Sr,[le.value?(p(),u("span",Pr,l(i("dashboard.orders.header.order-date"))+": "+l(W(le.value)),1)):b("",!0),fe.value?(p(),u("span",Mr,[t[1]||(t[1]=s("span",{class:"h-3 w-px bg-blue-200"},null,-1)),s("span",null,l(i("dashboard.orders.header.customer-reference"))+": "+l(fe.value),1)])):b("",!0)])])]),s("div",Nr,[s("button",{type:"button",class:"inline-flex h-10 cursor-pointer items-center justify-center gap-2 rounded border border-gray-200 bg-white px-4 text-sm font-semibold text-blue-700 shadow-sm transition-colors hover:border-gray-300 hover:bg-white",onClick:Te},[N(A(er),{class:"h-3 w-3 shrink-0 text-blue-500"}),$e(" "+l(i("dashboard.orders.reorder")),1)]),s("div",Ar,[s("button",{type:"button",class:"inline-flex h-10 w-10 cursor-pointer items-center justify-center rounded border border-gray-200 bg-white text-blue-700 shadow-sm transition-colors hover:border-gray-300 hover:bg-white","aria-label":i("dashboard.orders.actions.label"),onClick:t[0]||(t[0]=Wt(r=>R.value=!R.value,["stop"]))},[N(A(Yt),{class:"h-3.5 w-3.5 shrink-0"})],8,$r),R.value?(p(),u("div",Dr,[s("button",{type:"button",class:"block w-full text-left text-sm text-gray-700 transition-colors hover:text-blue-700",onClick:_t},l(i("dashboard.orders.actions.order-confirmation")),1),s("button",{type:"button",class:"mt-4 block w-full text-left text-sm text-gray-700 transition-colors hover:text-blue-700",onClick:Te},l(i("dashboard.orders.reorder")),1)])):b("",!0)])])]),B.order?(p(),u(T,{key:1},[s("section",qr,[s("h2",Ur,l(i("dashboard.orders.summary.title")),1),s("dl",Tr,[s("div",Br,[s("dt",Rr,l(i("dashboard.orders.summary.order-number")),1),s("dd",Vr,l(V.value?`#${V.value}`:"-"),1)]),s("div",Ir,[s("dt",zr,l(i("dashboard.orders.header.customer-reference")),1),s("dd",Hr,l(fe.value||"-"),1)]),s("div",Kr,[s("dt",Fr,l(i("dashboard.orders.summary.tenant")),1),s("dd",Or,l(ft.value||"-"),1)]),s("div",Er,[s("dt",Qr,l(i("dashboard.orders.header.order-date")),1),s("dd",Wr,l(le.value?W(le.value):"-"),1)]),s("div",Zr,[s("dt",Gr,l(i("dashboard.orders.summary.requested-delivery-date")),1),s("dd",Jr,l(Re.value?W(Re.value):"-"),1)]),s("div",Yr,[s("dt",Xr,l(i("checkout.side.summary.shipping-cost")),1),s("dd",jr,l(at.value!==null?M(at.value,L.value):"-"),1)]),s("div",es,[s("dt",ts,l(i("dashboard.orders.summary.net-order-value")),1),s("dd",rs,l(Ie.value!==null?M(Ie.value,L.value):"-"),1)]),s("div",ss,[s("dt",as,l(i("dashboard.orders.summary.gross-order-value")),1),s("dd",ns,l(ze.value!==null?M(ze.value,L.value):"-"),1)])])]),s("section",ls,[s("article",ds,[s("div",os,[s("span",is,[N(A(gr),{class:"h-5 w-5 shrink-0"})]),t[2]||(t[2]=s("div",{class:"text-lg font-medium leading-6 text-blue-700"},"Realization status",-1))]),s("div",cs,[s("div",us,[s("div",ps,[s("div",{class:"absolute top-1/2 h-[1.5px] -translate-y-1/2 rounded-full bg-gray-200",style:ae({left:De,right:De})},null,4),s("div",{class:"absolute top-1/2 h-[1.5px] -translate-y-1/2 rounded-full bg-green-600",style:ae({left:De,width:St.value})},null,4),s("div",{class:"relative z-10 grid",style:ae({gridTemplateColumns:`repeat(${I.value.length}, minmax(0, 1fr))`})},[(p(!0),u(T,null,Q(I.value,(r,a)=>(p(),u("div",{key:r.key,class:"flex justify-center"},[s("div",{class:S(["flex h-[14px] w-[14px] items-center justify-center rounded-full border-[1.5px] bg-white transition-colors",a<z.value?"border-green-600 bg-green-600":a===z.value?"border-blue-500 bg-white ring-[1.5px] ring-gray-200":"border-gray-200 bg-gray-50"])},[a<z.value?(p(),u("svg",hs,[...t[3]||(t[3]=[s("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.5 8.2 6.4 11l6.1-6.2"},null,-1)])])):a===z.value?(p(),u("span",_s)):b("",!0)],2)]))),128))],4)]),s("div",{class:"mt-1.5 grid gap-1",
1style:ae({gridTemplateColumns:`repeat(${I.value.length}, minmax(0, 1fr))`})},[(p(!0),u(T,null,Q(I.value,(r,a)=>(p(),u("div",{key:`${r.key}-label`,class:"flex flex-col items-center px-1 text-center"},[s("div",{class:S(["max-w-[4.6rem] text-[9px] font-semibold leading-[1.05rem]",a<z.value?"text-green-700":a===z.value?"text-blue-700":"text-gray-400"])},l(Ct(i(`dashboard.orders.status.${r.key}`))),3)]))),128))],4)]),h(ie.value)||h(ce.value)?(p(),u("dl",gs,[h(ie.value)?(p(),u("div",fs,[s("dt",xs,l(i("dashboard.orders.billing.invoice-number")),1),s("dd",vs,l(ie.value),1)])):b("",!0),h(ce.value)?(p(),u("div",ys,[s("dt",ms,l(i("dashboard.orders.billing.invoice-date")),1),s("dd",ks,l(W(ce.value)),1)])):b("",!0)])):b("",!0)])]),s("article",ws,[s("div",Cs,[s("span",bs,[N(A(pr),{class:"h-5 w-5 shrink-0"})]),s("div",Ss,l(i("dashboard.orders.shipping.title")),1)]),s("div",Ps,[s("dl",Ms,[s("div",Ns,[s("dt",As,l(i("dashboard.orders.shipping.method")),1),s("dd",{class:S(["mt-1 min-h-[2.1rem] truncate font-semibold leading-5",h(Oe.value)?"text-blue-700":"text-gray-400"])},l(Oe.value),3)]),s("div",$s,[s("dt",Ds,l(i("dashboard.orders.shipping.carrier")),1),s("dd",{class:S(["mt-1 min-h-[2.1rem] truncate font-semibold leading-5",h(ye.value)?"text-blue-700":"text-gray-400"])},l(D(ye.value)),3)])]),s("dl",Ls,[s("div",qs,[s("dt",Us,l(i("dashboard.orders.shipping.tracking")),1),s("dd",Ts,[Z.value&&Ee.value?(p(),u("a",{key:0,href:Ee.value,target:"_blank",rel:"noreferrer",class:"inline-flex max-w-full items-center gap-1 hover:underline"},[s("span",Rs,l(Z.value),1),N(A(pt),{class:"h-3 w-3 shrink-0"})],8,Bs)):(p(),u("span",{key:1,class:S(h(Z.value)?"text-blue-500":"text-gray-400")},l(D(Z.value)),3))])]),s("div",Vs,[s("dt",Is,l(i("dashboard.orders.shipping.delivery-date-short")),1),s("dd",{class:S(["mt-1 min-h-[2.25rem] font-semibold leading-5",oe.value?"text-blue-700":"text-gray-400"])},l(oe.value?W(oe.value):"-"),3)])])])]),s("article",zs,[s("div",Hs,[s("span",Ks,[N(A(lr),{class:"h-5 w-5 shrink-0"})]),s("div",Fs,l(i("dashboard.orders.billing.title")),1)]),s("div",Os,[s("dl",Es,[s("div",Qs,[s("dt",Ws,l(i("dashboard.orders.payment.title")),1),s("dd",Zs,[G.value!=="-"?(p(),u("span",{key:0,class:S(["inline-flex max-w-full items-center overflow-hidden text-ellipsis whitespace-nowrap rounded border px-2 py-0.5 text-[11px] font-medium leading-4",wt.value])},l(G.value),3)):(p(),u("span",Gs,"-"))])]),s("div",Js,[s("dt",Ys,l(i("dashboard.orders.summary.payment-terms")),1),s("dd",{class:S(["mt-1 min-h-[2.1rem] truncate font-semibold leading-5",h(ke.value)?"text-blue-700":"text-gray-400"])},l(D(ke.value)),3)])]),s("dl",Xs,[s("div",js,[s("dt",ea,l(i("dashboard.orders.summary.payment-method")),1),s("dd",{class:S(["mt-1 min-h-[2.1rem] break-words font-semibold leading-5",h(me.value||G.value)?"text-blue-700":"text-gray-400"])},l(D(me.value||G.value)),3)]),s("div",ta,[s("dt",ra,l(i("dashboard.orders.billing.currency")),1),s("dd",{class:S(["mt-1 min-h-[2.1rem] truncate font-semibold leading-5",h(L.value)?"text-blue-700":"text-gray-400"])},l(D(L.value)),3)])])])]),s("article",sa,[s("div",aa,[s("span",na,[N(A(vr),{class:"h-5 w-5 shrink-0"})]),s("div",la,l(i("dashboard.orders.ordered-by.title")),1)]),s("div",da,[s("div",oa,[h(ue.value)||h(pe.value)?(p(),u("div",ia,[h(ue.value)?(p(),u("div",ca,l(ue.value),1)):b("",!0),h(pe.value)?(p(),u("div",ua,l(pe.value),1)):b("",!0)])):b("",!0)]),s("dl",pa,[s("div",ha,[s("dt",_a,l(i("dashboard.orders.summary.customer-id")),1),s("dd",{class:S(["mt-1 truncate font-medium leading-5",h(xe.value)?"text-blue-700":"text-gray-400"])},l(D(xe.value)),3)]),s("div",ga,[s("dt",fa,l(i("dashboard.orders.ordered-by.email")),1),s("dd",{class:S(["mt-1 truncate font-medium leading-5",h(we.value)?"text-blue-700":"text-gray-400"])},l(D(we.value)),3)])])])])]),H.value.length?(p(),u("section",xa,[s("h2",va,l(i("dashboard.orders.cart.title")),1),s("div",ya,[(p(!0),u(T,null,Q(H.value,(r,a)=>(p(),u("article",{key:(r==null?void 0:r.id)??(r==null?void 0:r.orderPositionKey)??(r==null?void 0:r.articleId)??a,class:"overflow-hidden rounded border border-gray-200 bg-white shadow-sm"},[s("div",ma,[s("div",ka,[s("div",wa,[s("div",Ca,[We(r)?(p(),u("img",{key:0,src:We(r),alt:i("dashboard.orders.product.image-alt"),class:"h-[68px] w-[68px] object-contain"},null,8,ba)):(p(),u("div",Sa))]),s("div",Pa,[s("h3",Ma,l(Pt(r)),1
1),Ze(r)?(p(),u("p",Na,l(Ze(r)),1)):b("",!0),s("p",Aa,l(Mt(r)),1),Ge(r)?(p(),u("div",$a,[s("span",null,l(i("dashboard.orders.product.color"))+":",1),s("span",Da,l(Ge(r)),1),Je(r)?(p(),u("span",{key:0,class:"h-3 w-8 rounded-full border border-gray-200",style:ae({backgroundColor:Je(r)})},null,4)):b("",!0)])):b("",!0),je(r)?(p(),u("div",La,l(je(r)),1)):b("",!0)])]),s("div",qa,[s("dl",{class:S(["grid gap-y-2.5 text-xs",zt(r)])},[J(r)>0?(p(),u("div",Ua,[s("dt",Ta,l(i("dashboard.orders.product.quantity")),1),s("dd",Ba,l(J(r))+" "+l(Ce(r)),1)])):b("",!0),s("div",Ra,[s("dt",Va,l(i("dashboard.orders.product.unit-price")),1),s("dd",Ia,l(be(r)!==null?M(be(r),(r==null?void 0:r.currency)??L.value):"-"),1)]),s("div",za,[s("dt",Ha,l(i("dashboard.orders.product.printed-unit-price-short")),1),s("dd",Ka,l(Xe(r)!==null?M(Xe(r),(r==null?void 0:r.currency)??L.value):"-"),1)]),s("div",Fa,[s("dt",Oa,l(i("dashboard.orders.product.line-total")),1),s("dd",Ea,l(Y(r)!==null?M(Y(r),(r==null?void 0:r.currency)??L.value):"-"),1)])],2)]),Vt(r)?(p(),u("div",Qa,[s("div",Wa,l(i("dashboard.orders.print-details.title")),1),s("div",Za,[s("div",Ga,[s("div",Ja,l(i("dashboard.orders.print-details.position")),1),s("div",Ya,[s("div",Xa,[ge(q(r))?(p(),u("img",{key:0,src:ge(q(r)),alt:i("dashboard.orders.print-details.position-image-alt"),class:"max-h-[2.8rem] w-full rounded object-contain"},null,8,ja)):(p(),u("div",en,"-"))]),s("div",tn,l(D(Se(q(r)))),1)])]),t[4]||(t[4]=s("div",{class:"self
1-stretch rounded-full bg-gray-200/90"},null,-1)),s("div",rn,[s("div",sn,l(i("dashboard.orders.print-details.logo")),1),s("div",an,[$t(q(r))?(p(),u("img",{key:0,src:O(q(r)),alt:i("dashboard.orders.print-details.logo-image-alt"),class:"max-h-[2.8rem] w-full object-contain"},null,8,nn)):O(q(r))?(p(),u("a",{key:1,href:O(q(r)),target:"_blank",rel:"noopener noreferrer",class:"inline-flex max-w-full items-center gap-1 text-xs font-semibold text-blue-700 underline decoration-blue-300 underline-offset-2"},[s("span",dn,l(Nt(q(r))||i("dashboard.orders.print-details.open-file")),1),N(A(pt),{class:"h-3 w-3 shrink-0"})],8,ln)):(p(),u("div",on,"-"))])])])])):b("",!0)]),s("div",cn,[s("div",un,[s("span",null,l(i("dashboard.orders.calculation.description")),1),s("span",pn,l(i("dashboard.orders.calculation.quantity")),1),s("span",hn,l(i("dashboard.orders.calculation.unit-price")),1),s("span",_n,l(i("dashboard.orders.calculation.total")),1)]),s("div",gn,[s("div",fn,[(p(!0),u(T,null,Q(It(r),(c,g)=>(p(),u("div",{key:`${a}-row-${g}`,class:S(["grid grid-cols-[minmax(0,1.7fr)_7rem_7rem_7rem] gap-x-3 px-4 py-3 text-sm",c.emphasis?"border-t border-gray-200 bg-gray-50 font-semibold text-blue-700":"border-b border-gray-200 text-blue-700 last:border-b-0"])},[s("span",null,l(c.label),1),s("span",xn,l(c.quantity),1),s("span",vn,l(c.unitPrice),1),s("span",yn,l(c.total),1)],2))),128))]),s("div",mn,[s("div",kn,l(i("dashboard.orders.calculation.total-excl-vat")),1),s("div",wn,l(Y(r)!==null?M(Y(r),(r==null?void 0:r.currency)??L.value):"-"),1)])])])])]))),128))])])):b("",!0),s("section",Cn,[s("article",bn,[s("div",Sn,[s("span",Pn,[N(A(ir),{class:"h-5 w-5 shrink-0"})]),s("h2",Mn,l(i("dashboard.orders.address.delivery")),1)]),s("div",{class:S(["mt-3 grid gap-3",it.value?"md:grid-cols-[minmax(0,1.35fr)_minmax(0,0.85fr)]":""])},[s("div",Nn,[(p(!0),u(T,null,Q(lt(He.value),(r,a)=>(p(),u("div",{key:`delivery-line-${a}`,class:S(a===0?"font-semibold text-blue-700":a===1?"font-medium text-blue-700":"")},l(r),3))),128))]),it.value?(p(),u("div",An,[s("div",null,[s("div",$n,l(i("dashboard.orders.ordered-by.phone")),1),s("div",Dn,l(D(dt.value.phone)),1)])])):b("",!0)],2)]),s("article",Ln,[s("div",qn,[s("span",Un,[N(A(sr),{class:"h-5 w-5 shrink-0"})]),s("h2",Tn,l(i("dashboard.orders.address.invoice")),1)]),s("div",{class:S(["mt-3 grid gap-3",ct.value?"md:grid-cols-[minmax(0,1.35fr)_minmax(0,0.85fr)]":""])},[s("div",Bn,[(p(!0),u(T,null,Q(lt(Ke.value),(r,a)=>(p(),u("div",{key:`invoice-line-${a}`,class:S(a===0?"font-semibold text-blue-700":a===1?"font-medium text-blue-700":"")},l(r),3))),128))]),ct.value?(p(),u("div",Rn,[s("div",null,[s("div",Vn,l(i("dashboard.orders.address.vat-id")),1),s("div",In,l(D(ot.value.vatId)),1)])])):b("",!0)],2)])])],64)):(p(),u("div",Lr,l(i("dashboard.orders.not-found")),1))])]),_:1})],64))}};export{Xn as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.