1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./D1w1H7II.js","./DXADahwW.js","./entry.wNks94-y.css","./CzFoFwZD.js","./ChREVvNC.js","./Cbp8rmw2.js","./BI8I5D9h.js","./CLvvGF89.js","./ad715qpo.js","./Bybtwxxd.js"])))=>i.map(i=>d[i]); 2import{z as M,k as r,m as a,l as s,t as o,F as p,q as L,n as U,e as S,V as K,v as c,O as v,j as e,y as h,L as Y,J as z,K as Q,x as k,a as ae,M as le,b as ne,w as ie,aK as B,G as de,o as ce,I as ue,f as V,aw as me,_ as ve,r as G,ap as pe,aq as _e}from"./DXADahwW.js";import{_ as ye}from"./Cbp8rmw2.js";import{_ as he}from"./BI8I5D9h.js";import{u as H}from"./ChREVvNC.js";import{_ as fe,a as Ce}from"./CLvvGF89.js";import{_ as we,a as $e}from"./ad715qpo.js";import{u as ke,a as Ie}from"./Bybtwxxd.js";const Pe={UNFINISHED:0,PRELIMINARYTENDER:19,TENDER:20,REALIZED:21,LOST:22,CANCELLED:23,PREDICTED:25,UNCONFIRMED:30,PARTIALLYCONFIRMED:35,CONFIRMED:40,PICKINGINPROGRESS:43,PICKINGCOMPLETED:45,POSTDELIVERY:50,PARTIALLYINVOICED:60,PARTIALLYINVOICEDDELIVERY:65,INVOICEDNOTDELIVERED:66,DELIVERED:70,INVOICED:80,COMPLETED:90},j=f=>Pe[f.toUpperCase()]??-1,be=[{id:1,titleKey:"v1.views.portal.order.timeline.1",icon:"fas fa-layer-group",rules:[{field:"status",operator:"gte",value:"CONFIRMED",target:"head"}],info:[{title:"v1.views.portal.order.orderDate",value:"orderDate",showIfUpcoming:!0,showIfComplete:!0,showIfActive:!0}]},{id:2,titleKey:"v1.views.portal.order.timeline.2",icon:"fas fa-hammer",rules:[{field:"workOrderCode",operator:"not",value:" ",target:"row_any"}],info:[]},{id:3,titleKey:"v1.views.portal.order.timeline.3",icon:"fas fa-box-open",rules:[{field:"status",operator:"gte",value:"PICKINGINPROGRESS",target:"row_any"}],info:[]},{id:4,titleKey:"v1.views.portal.order.timeline.4",icon:"fas fa-truck",rules:[{field:"status",operator:"gte",value:"DELIVERED",target:"head"}],info:[{title:"v1.views.portal.order.estimatedDeliveryDate",value:"estimatedDeliveryDate",showIfUpcoming:!0,showIfComplete:!1,showIfActive:!0},{title:"v1.views.portal.order.deliveryTerm.title",value:"shipmentTermsCode",showIfUpcoming:!0,showIfComplete:!1,showIfActive:!0}]},{id:5,titleKey:"v1.views.portal.order.timeline.5",icon:"fas fa-check",rules:[{field:"status",operator:"gte",value:"INVOICED",target:"head"}],info:[]}],ge={class:"card portal-card","data-portal-component":"order-timeline"},De={class:"card-header"},Ee={class:"card-body"},Oe={class:"list-unstyled"},Ne={class:"status-icon"},Te={key:0,class:"status-title"},Ae={key:0,class:"text-center"},Re={key:2},Ve=M({__name:"timeline",props:{order:{type:Object,required:!0}},setup(f){const{formatDate:E}=H(),I=f,O=(l,u)=>{const d=l[u.field];if(d==null)return!1;const n=u.field==="status"?j(String(d)):d,_=u.field==="status"?j(u.value):u.value;return u.operator==="eq"?n===_:u.operator==="not"?n!==_:u.operator==="lt"?n<_:u.operator==="lte"?n<=_:u.operator==="gt"?n>_:u.operator==="gte"?n>=_:!1},g=(l,u)=>{for(const d of u){if(d.target==="head"&&!O(l,d))return!1;if(d.target==="row_any"&&l.salesOrderRows&&l.salesOrderRows.some(n=>O(n,d))!==!0)return!1;if(d.target==="row_all"&&l.salesOrderRows&&l.salesOrderRows.every(n=>O(n,d))!==!0)return!1}return!0},C=h(()=>{const l=be.map(n=>{const _=g(I.order,n.rules);return{...n,complete:_,active:!1}}),u=l.map(n=>n.complete).lastIndexOf(!0);for(let n=0;n<=u;n++)l[n].complete=!0;const d=l.findIndex(n=>!n.complete);return d>=0?l[d].active=!0:l.length>0&&(l[l.length-1].active=!0),l}),D=(l,u)=>u.showIfUpcoming&&!l.complete&&!l.active||u.showIfComplete&&l.complete?!0:!!(u.showIfActive&&l.active),$=l=>l.showIfRules?g(I.order,l.showIfRules):!0;return(l,u)=>{const d=K;return r(),a("div",ge,[s("div",De,[s("h2",null,o(l.$t("v1.views.portal.order.timeline.title")),1)]),s("div",Ee,[s("ol",Oe,[(r(!0),a(p,null,L(e(C),n=>(r(),a("li",{key:n.id,class:U([{completed:n.complete,active:n.active}])},[s("div",Ne,[n.complete?(r(),S(d,{key:0,icon:"fas fa-check"})):(r(),S(d,{key:1,icon:n.icon},null,8,["icon"]))]),l.$te(n.titleKey)?(r(),a("span",Te,o(l.$t(n.titleKey)),1)):c("",!0),(r(!0),a(p,null,L(n.info,_=>(r(),a(p,{key:_.title},[D(n,_)&&$(_)?(r(),a("small",Ae,[l.$te(_.title)?(r(),a(p,{key:0},[v(o(l.$t(_.title)),1)],64)):(r(),a(p,{key:1}
2,[v(o(_.title),1)],64)),_.value?(r(),a("span",Re,[...u[0]||(u[0]=[v(":",-1),s("br",null,null,-1)])])):c("",!0),_.value?(r(),a(p,{key:3},[_.value.toLowerCase().includes("date")&&typeof f.order[_.value]=="number"?(r(),a(p,{key:0},[v(o(e(E)(f.order[_.value],"fi")),1)],64)):(r(),a(p,{key:1},[v(o(f.order[_.value]),1)],64))],64)):c("",!0)])):c("",!0)],64))),128))],2))),128))]),u[1]||(u[1]=s("hr",null,null,-1))])])}}}),Se=[],Le={key:0,class:"d-flex flex-wrap",style:{gap:".25rem"}},je={key:0,class:"badge os-surface-2"},Me=M({__name:"info",props:{order:{type:Object,required:!0},row:{type:Object,required:!0},onDocuments:{type:Boolean,required:!1,default:!1}},setup(f){const{formatDate:E}=H(),I=f,O=($,l)=>{const u=$[l.field];if(u==null)return!1;const d=l.field==="status"?j(String(u)):u,n=l.field==="status"?j(l.value):l.value;return l.operator==="eq"?d===n:l.operator==="not"?d!==n:l.operator==="lt"?d<n:l.operator==="lte"?d<=n:l.operator==="gt"?d>n:l.operator==="gte"?d>=n:!1},g=h(()=>Se.filter($=>$.rules.length===0||$.rules.every(l=>(!I.onDocuments||($?.showForDocuments??!1))&&O(I.row,l)))),C=h(()=>{const $=["DELIVERED","INVOICED","COMPLETED"];return!I.onDocuments&&I.row.confirmedDeliveryDate&&!$.includes(I.row.status)&&String(I.order.estimatedDeliveryDate)!=E(I.row.confirmedDeliveryDate,"fi")}),D=h(()=>C.value||g.value.length>0);return($,l)=>{const u=K;return e(D)?(r(),a("div",Le,[e(C)?(r(),a("span",je,o($.$t("v1.views.portal.order.rows.deliveryDateNotice"))+": "+o(e(E)(f.row.confirmedDeliveryDate,"fi")),1)):c("",!0),(r(!0),a(p,null,L(e(g),d=>(r(),a("span",{key:d.id,class:U(d.class)},[d.icon?(r(),S(u,{key:0,icon:d.icon,class:"mr-2"},null,8,["icon"])):c("",!0),$.$te(d.title)?(r(),a(p,{key:1},[v(o($.$t(d.title)),1)],64)):(r(),a(p,{key:2},[v(o(d.title),1)],64)),d.value?(r(),a(p,{key:3},[l[0]||(l[0]=v(": ",-1)),d.value.toLowerCase().includes("date")&&typeof f.row[d.value]=="number"?(r(),a(p,{key:0},[v(o(e(E)(f.row[d.value],"fi")),1)],64)):(r(),a(p,{key:1},[v(o(f.row[d.value]),1)],64))],64)):c("",!0)],2))),128))])):c("",!0)}}}),xe={class:"card portal-card","data-portal-component":"order-rows"},Ue={class:"card-header"},Ke={id:"portal-order-rows-title"},Fe={class:"card-body"},qe={key:0,class:"table-responsive",tabindex:"0",role:"region","aria-labelledby":"portal-order-rows-title"},Be={class:"table table-hover table-sm"},Ge={scope:"col"},Ye={scope:"col"},ze={scope:"col"},Qe={scope:"col",class:"text-center"},He={key:0,scope:"col",class:"text-right"},Ze={key:1,scope:"col",class:"text-right"},Je={class:"row-important"},We={class:"row-important"},Xe={class:"row-important"},et={class:"text-center"},tt={key:0,class:"text-right"},st={key:1,class:"row-important text-right"},rt={key:0,scope:"col",colspan:"3"},ot={key:1,scope:"col",colspan:"3"},at={scope:"col",class:"text-center"},lt={scope:"col",colspan:"4"},nt={scope:"col",colspan:"3",class:"text-right"},it={scope:"col",colspan:"4"},dt={scope:"col",colspan:"3",class:"row-important text-right"},ct={key:1,class:"alert alert-warning",role:"alert"},ut=M({__name:"rows",props:{order:{type:Object,required:!0}},setup(f){const E=f,{user:I}=Y(z()),{userVatOn:O}=Q(),g=h(()=>O.value),C=h(()=>I.value?.rights?.showPrices??!1),D=h(()=>E.order.salesOrderRows||[]),$=h(()=>D.value.reduce((i,P)=>i+P.orderedQuantity,0)),l=h(()=>C.value?D.value.reduce((i,P)=>i+P.totalAmountVatExcluded,0):0),u=h(()=>C.value?D.value.reduce((i,P)=>i+P.totalAmountVatIncluded,0):0),d=h(()=>{if(!C.value)return[];const i={};return D.value.forEach(P=>{const N=P.totalAmountVatExcluded,w=P.totalAmountVatIncluded-P.totalAmountVatExcluded;if(N===0||w===0)return;const T=Math.round(w/N*100);i[T]||(i[T]=0),i[T]+=w}),Object.entries(i).map(([P,N])=>({percent:parseFloat(P),amount:N}))}),n=i=>((i.itemName||"")+" "+(i.itemName2||"")).trim(),_=i=>
2g.value?i.unitAmountVatIncluded:i.unitAmountVatExcluded,t=i=>g.value?i.totalAmountVatIncluded:i.totalAmountVatExcluded;return(i,P)=>{const N=Me;return r(),a("div",xe,[s("div",Ue,[s("h2",Ke,o(i.$t("v1.views.portal.order.rows.title")),1)]),s("div",Fe,[e(D).length>0?(r(),a("div",qe,[s("table",Be,[s("thead",null,[s("tr",null,[s("th",Ge,o(i.$t("v1.views.portal.order.row.rowId")),1),s("th",Ye,o(i.$t("v1.views.portal.order.row.itemId")),1),s("th",ze,o(i.$t("v1.views.portal.order.row.title")),1),s("th",Qe,o(i.$t("v1.views.portal.order.row.amount")),1),e(C)?(r(),a("th",He,o(i.$t("v1.views.portal.order.row.priceUnit")),1)):c("",!0),e(C)?(r(),a("th",Ze,[v(o(i.$t("v1.views.portal.order.row.priceTotal"))+" ",1),e(g)?(r(),a(p,{key:0},[v(" ("+o(i.$t("incl"))+"Â "+o(i.$t("vat"))+") ",1)],64)):(r(),a(p,{key:1},[v(" ("+o(i.$t("vat"))+"Â 0%) ",1)],64))])):c("",!0)])]),s("tbody",null,[(r(!0),a(p,null,L(e(D),(w,T)=>(r(),a("tr",{key:T},[s("td",Je,o(w.rowNumber),1),s("td",We,o(w.itemCode),1),s("td",Xe,[v(o(n(w))+" ",1),k(N,{row:w,order:f.order},null,8,["row","order"])]),s("td",et,o(w.orderedQuantity),1),e(C)?(r(),a("td",tt,o(i.$n(_(w),"currency")),1)):c("",!0),e(C)?(r(),a("td",st,o(i.$n(t(w),"currency")),1)):c("",!0)]))),128))]),s("tfoot",null,[s("tr",null,[e(C)&&e(g)?(r(),a("th",rt,o(i.$t("v1.views.portal.order.rows.total.noVat")),1)):(r(),a("th",ot,o(i.$t("v1.views.portal.order.rows.total.0")),1)),s("th",at,o(e($)),1),e(C)?(r(),a("th",{key:2,scope:"col",colspan:"2",class:U(["text-right",{"row-important":!e(g)}])},o(i.$n(e(l),"currency")),3)):c("",!0)]),e(C)&&e(g)?(r(),a(p,{key:0},[(r(!0),a(p,null,L(e(d),w=>(r(),a("tr",{key:w.percent},[s("th",lt,o(i.$t("vat")+" "+w.percent+"%"),1),s("th",nt,o(i.$n(w.amount,"currency")),1)]))),128)),s("tr",null,[s("th",it,o(i.$t("v1.views.portal.order.rows.total.0")),1),s("th",dt,o(i.$n(e(u),"currency")),1)])],64)):c("",!0)])])])):(r(),a("div",ct,o(i.$t("v1.views.portal.order.rows.noRows")),1))])])}}}),mt=pe(()=>_e(()=>import("./D1w1H7II.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url).then(f=>f.default||f)),vt={class:"d-flex justify-content-between"},pt={class:"portal-text-muted"},_t=["data-order-status"],yt={key:0,class:"order-cards"},ht={class:"main"},ft={class:"order-tabs"},Ct={class:"aside"},wt={class:"card portal-card","data-portal-component":"order-summary"},$t={class:"card-header"},kt={class:"card-body"},It={key:0,class:"d-flex justify-content-between"},Pt={class:"portal-text-muted"},bt={class:"summary-value"},gt={key:1,class:"d-flex justify-content-between"},Dt={class:"portal-text-muted"},Et={class:"summary-value"},Ot={key:2,class:"d-flex justify-content-between"},Nt={class:"portal-text-muted"},Tt={class:"summary-value"},At={key:3,class:"d-flex justify-content-between"},Rt={class:"portal-text-muted"},Vt={class:"summary-value"},St={key:4,class:"d-flex justify-content-between"},Lt={class:"portal-text-muted"},jt={class:"summary-value"},Mt={key:5,class:"d-flex justify-content-between"},xt={class:"portal-text-muted"},Ut={class:"summary-value"},Kt={key:6,class:"d-flex justify-content-between"},Ft={class:"portal-text-muted"},qt={class:"summary-value"},Bt={key:0,class:"card portal-card","data-portal-component":"order-contact"},Gt={class:"card-header"},Yt={class:"card-body"},zt={class:"d-flex flex-column"},Qt={key:0,class:"address-field"},Ht={class:"field-icon"},Zt={key:1},Jt={key:2},Wt={key:3},Xt={key:4},es={key:5},ts={key:0,class:"text-muted"},ss=["href"],rs={key:1},os={class:"portal-text-muted"},as={key:0},ls={key:2},ns={key:1,class:"card portal-card","data-portal-component":"order-contact"},is={class:"card-header"},ds={class:"card-body"},cs={class:"d-flex flex-column"},us={key:0},ms={class:"contact-name"},vs={key:1,class:"address-field"},ps={class:"field-icon"},_s=["href"],ys={key:2,class:"address-field"},hs={class:"field-icon"},fs=["href"],Cs=M({__name:"[id].client",async setup(f){let E,I;const{t:O,locale:g}=ae(),C=le(),D=h(()=>C.params.id),$=h(()=>`${O("order")} ${D.value}`);ne({title:$});const{allowPortalAccess:l}=ke(),{user:u}=Y(z()),{userVatOn:d}=Q(),n=h(()=>d.value),_=h(()=>u.value?.rights?.showPrices??!1),{data:t}=([E,I]=ie(()=>B(`/api/oscar/portal/salesorder/${D.value}`,{method:"GET"},"$yYtAdv0ZiM")),E=await E,I(),E),i=h(()=>Ie??[]),P=h(()=>t.value?.salesOrderRows?.reduce((m,y)=>m+y.orderedQuantity,0)||0),N=h(()=>t.value?.salesOrderRows?.reduce((m,y)=>m+(n.value?y.totalAmountVatIncluded:y.totalAmountVatExcluded),0)||0),w=h(()=>t.value?.deliveryCustomerName&&t.value.deliveryCustomerName.trim()!==""||t.value?.deliveryCustomerStreetAddress&&t.value.deliveryCustomerStreetAddress.trim()!==""||t.value?.deliveryCustomerPostalCode&&t.value.deliveryCustomerPostalCode.trim()!==""||t.value?.deliveryCustomerPostOffice&&t.value.deliveryCustomerPostOffice.trim()!==""),T=h(()=>t.value?.deliveryCustomerContactPersonName&&t.value.deliveryCustomerContactPersonName.trim()!==""||t.value?.deliveryCustomerContactPersonPhoneNumber&&t.value.deliveryCustomerContactPersonPhoneNumber.trim()!==""||t.value?.deliveryCustomerContactPersonEmail&&t.value.deliveryCustomerContactPersonEmail.trim()!==""),F=h(()=>
2{if(!t.value||!w.value)return"#";const m=[t.value.deliveryCustomerStreetAddress,t.value.deliveryCustomerPostalCode,t.value.deliveryCustomerPostOffice,t.value.deliveryCustomerCountryCode].filter(Boolean);return`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(m.join(", "))}`});de({bodyAttrs:{class:"module-portal page-portal-order-id"}});const A=G(null),x=G(!1);return ce(async()=>{if(!l.value){const y=C.fullPath;ue().push("/login?redirect="+encodeURIComponent(y))}const m=t.value?.shipmentTermsCode;if(m&&m!==""){x.value=!0;const{data:y}=await B(`/api/oscar/portal/salesshipmentterms/${m}?lang=${g.value}`,{method:"GET"},"$nj71-WNjC9");A.value=y.value,x.value=!1}}),(m,y)=>{const R=K,Z=ye,J=he,W=Ve,X=ut,q=Ce,ee=mt,te=fe,se=$e,re=we,oe=ve;return e(l)?(r(),S(oe,{key:0,name:"nosidenav"},{default:V(()=>[k(Z,{to:"/portal/orders",class:"btn btn-outline-primary mb-3 go-back"},{default:V(()=>[k(R,{icon:"fas fa-arrow-left"}),v(" "+o(m.$t("v1.views.portal.goBack.title")),1)]),_:1}),e(t)?(r(),a(p,{key:0},[s("div",vt,[s("div",null,[s("h1",null,o(e(t).title),1),s("p",pt,[s("span",{class:"badge","data-order-status":e(t).status},o(m.$t(`v1.views.portal.order.status.${e(t).status.toLowerCase()}`)),9,_t),e(t).salesOrderCode!=e(t).title?(r(),a(p,{key:0},[y[0]||(y[0]=s("span",null," ⢠",-1)),v(" "+o(e(t).salesOrderCode),1)],64)):c("",!0),e(t).customerOrderCode&&e(t).customerOrderCode.length>0?(r(),a(p,{key:1},[y[1]||(y[1]=s("span",null," ⢠",-1)),v(" "+o(m.$t("v1.views.portal.order.customerOrderId"))+": "+o(e(t).customerOrderCode),1)],64)):c("",!0)])]),s("div",null,[k(J,null,{default:V(()=>[(r(),S(me("CustomPortalAcceptanceInfo"),{order:e(t),"show-text":!0},null,8,["order"]))]),_:1})])]),e(t)?(r(),a("div",yt,[s("div",ht,[k(W,{order:e(t)},null,8,["order"]),s("div",ft,[k(te,null,{default:V(()=>[k(q,{title:m.$t("v1.views.portal.order.rows.title")},{default:V(()=>[e(t)?(r(),S(X,{key:0,order:e(t)},null,8,["order"])):c("",!0)]),_:1},8,["title"]),k(q,{title:m.$t("v1.views.portal.order.documents.title")},{default:V(()=>[k(ee,{order:e(t)},null,8,["order"])]),_:1},8,["title"])]),_:1})])]),s("div",Ct,[s("div",wt,[s("div",$t,[s("h2",null,o(m.$t("v1.views.portal.order.summary.title")),1)]),s("div",kt,[(r(!0),a(p,null,L(e(i),b=>(r(),a(p,{key:b.value},[b.value==="salesOrderCode"&&b.visible?(r(),a("div",It,[s("span",Pt,o(m.$t("v1.views.portal.order.id")),1),s("span",bt,o(e(t).salesOrderCode),1)])):b.value==="customerOrderCode"&&b.visible?(r(),a("div",gt,[s("span",Dt,o(m.$t("v1.views.portal.order.customerOrderId")),1),s("span",Et,o(e(t).customerOrderCode),1)])):b.value==="rowCount"&&b.visible?(r(),a("div",Ot,[s("span",Nt,o(m.$t("v1.views.portal.order.rowCount")),1),s("span",Tt,o(e(t).salesOrderRows?.length??0),1)])):b.value==="rowAmountTotal"&&b.visible?(r(),a("div",At,[s("span",Rt,o(m.$t("v1.views.portal.order.rowAmountTotal")),1),s("span",Vt,o(e(P)),1)])):e(_)&&b.value==="rowPriceTotal"&&b.visible?(r(),a("div",St,[s("span",Lt,[v(o(m.$t("v1.views.portal.order.rowPriceTotal"))+" ",1),e(n)?(r(),a(p,{key:0},[v(" ("+o(m.$t("incl"))+" "+o(m.$t("vat"))+") ",1)],64)):(r(),a(p,{key:1},[v(" ("+o(m.$t("vat"))+" 0%) ",1)],64))]),s("span",jt,o(m.$n(e(N),"currency")),1)])):b.value==="teamCode"&&b.visible?(r(),a("div",Mt,[s("span",xt,o(m.$t("v1.views.portal.order.teamId")),1),s("span",Ut,o(e(t).teamCode),1)])):b.value==="siteIdentifier"&&b.visible?(r(),a("div",Kt,[s("span",Ft,o(m.$t("v1.views.portal.order.siteIdentifier")),1),s("span",qt,o(e(t).siteIdentifier),1)])):c("",!0)],64))),128))])]),e(w)?(r(),a("div",Bt,[s("div",Gt,[s("h2",null,[k(R,{icon:"fas fa-truck"}),v(" "+o(m.$t("v1.views.portal.order.deliveryInfo.title")),1)])]),s("div",Yt,[s("div",zt,[e(t).deliveryCustomerName&&e(t).deliveryCustomerName.trim()!==""?(r(),a("div",Qt,[s("div",Ht,[k(R,{icon:"fas fa-map-marker-alt"})]),s("div",null,[s("address",null,[e(t).deliveryCustomerName&&e(t).deliveryCustomerName.trim()!==""?(r(),a(p,{key:0},[v(o(e(t).deliveryCustomerName.trim()),1),y[2]||(y[2]=s("br",null,null,-1))],64)):c("",!0),e(t).deliveryCustomerStreetAddress&&e(t).deliveryCustomerStreetAddress.trim()!==""?(r(),a("span",Zt,[v(o(e(t).deliveryCustomerStreetAddress.trim()),1),y[3]||(y[3]=s("br",null,null,-1))])):c("",!0),e(t).deliveryCustomerStreetAddress2&&e(t).deliveryCustomerStreetAddress2.trim()!==""?(r(),a("span",Jt,[v(o(e(t).deliveryCustomerStreetAddress2.trim()),1),y[4]||(y[4]=s("br",null,null,-1))])):c("",!0),e(t).deliveryCustomerStreetAddress3&&e(t).deliveryCustomerStreetAddress3.trim()!==""?(r(),a("span",Wt,[v(o(e(t).deliveryCustomerStreetAddress3.trim()),1),y[5]||(y[5]=s("br",null,null,-1))])):c("",!0),e(t).deliveryCustomerPostalCode&&e(t).deliveryCustomerPostalCode.trim()!==""?(r(),a("span",Xt,o(e(t).deliveryCustomerPostalCode.trim())+" ",1)):c("",!0),e(t).deliveryCustomerPostOffice&&e(t).deliveryCustomerPostOffice.trim()!==""?(r(),a("span",es,o(e(t).deliveryCustomerPostOffice.trim()),1)):c("",!0)]),e(F)!=="#"?(r(),a("p",ts,[s("a",{href:e(F),target:"_blank",rel:"noopener noreferrer",class:"portal-text-muted"},[s("small",null,[k(R,{icon:"far fa-map",class:"mr-1"}),v(" "+o(m.$t("v1.views.portal.order.viewOnMap")),1)])],8,ss)])):c("",!0),e(t).shipmentTermsCode&&e(t).shipmentTermsCode.length>0?(r(),a("p",rs,[s("span",os,o(m.$t("v1.views.portal.order.deliveryTerm.title"))+": ",1),s("span",null,[v(o(e(t).shipmentTermsCode)+" ",1),e(x)?(r(),S(re,{key:0,class:"align-items-center h-100",direction:"row"},{default:V(()=>[k(se,{type:"text"})]),_:1})):(r(),a(p,{key:1},[e(A)||e(t).shipmentTermsDescription&&e(t).shipmentTermsDescription.length>0?(r(),a("span",as," - ")):c("",!0),e(A)?(r(),a(p,{key:1},[v(o(e(A).description),1)],64)):c("",!0),e(A)&&e(A).description&&e(A).description.length>0?(r(),a("br",ls)):c("",!0),e(t).shipmentTermsDescription&&e(t).shipmentTermsDescription.length>0?(r(),a(p,{key:3},[v(o(e(t).shipmentTermsDescription),1)],64)):c("",!0)],64))])])):c("",!0)])])):c("",!0)])])])):c("",!0),e(T)?(r(),a("div",ns,[s("div",is,[s("h2",null,[k(R,{icon:"far fa-user"}),v(" "+o(m.$t("v1.views.portal.order.contacts.title")),1)])]),s("div",ds,[s("div",cs,[e(t).deliveryCustomerContactPersonName&&e(t).deliveryCustomerContactPersonName.trim()!==""?(r(),a("p",us,[s("span",ms,o(e(t).deliveryCustomerContactPersonName.trim()),1)])):c("",!0),e(t).deliveryCustomerContactPersonPhoneNumber&&e(t).deliveryCustomerContactPersonPhoneNumber.trim()!==""?(r(),a("div",vs,[s("div",ps,[k(R,{icon:"fas fa-phone"})]),s("a",{href:`tel:${e(t).deliveryCustomerContactPersonPhoneNumber.trim()}`},o(e(t).deliveryCustomerContactPersonPhoneNumber.trim()),9,_s)])):c("",!0),e(t).deliveryCustomerContactPersonEmail&&e(t).deliveryCustomerContactPersonEmail.trim()!==""?(r(),a("div",ys,[s("div",hs,[k(R,{icon:"fas fa-envelope"})]),s("a",{href:`mailto:${e(t).deliveryCustomerContactPersonEmail.trim()}`},o(e(t).deliveryCustomerContactPersonEmail.trim()),9,fs)])):c("",!0)])])])):c("",!0)])])):c("",!0)],64)):c("",!0)]),_:1})):c("",!0)}}}),Ds=Object.freeze(Object.defineProperty({__proto__:null,default:Cs},Symbol.toStringTag,{value:"Module"}));
2export{Me as _,Ds as a};
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.