1import"./chunk-HV7PDTDL.js";import{a as Yt}from"./chunk-OQPIAQVI.js";import"./chunk-ILI25QL5.js";import{a as Vt,b as $t}from"./chunk-VQKY2NPK.js";import{c as Ht,d as Nt,e as qt,f as jt,g as Ut,h as Gt}from"./chunk-TVHZO7RU.js";import{c as Qt}from"./chunk-KJM33COJ.js";import{a as Pt}from"./chunk-WW5EDYJG.js";import{a as Lt}from"./chunk-UIOFS4XU.js";import{a as Pe}from"./chunk-TZS2LQVB.js";import"./chunk-R3P2OCTJ.js";import"./chunk-PIMGQGZW.js";import"./chunk-NES6NM4Y.js";import"./chunk-GGT5KUYE.js";import{a as ce}from"./chunk-KCDXV7MU.js";import"./chunk-JDKAMGUB.js";import"./chunk-HTWPRUVQ.js";import{a as Bt,b as Ft}from"./chunk-OL7MOI66.js";import"./chunk-DCRGTQPP.js";import"./chunk-TAYWHPLE.js";import"./chunk-6N7JK7IB.js";import"./chunk-3YYKTTRK.js";import"./chunk-EHPRDZBY.js";import"./chunk-TNTKRQ5I.js";import"./chunk-56A6QMAO.js";import"./chunk-ZH6IOVTT.js";import"./chunk-NUJSW3VU.js";import"./chunk-KJKIPU3Z.js";import"./chunk-6NEIA7KQ.js";import"./chunk-CNBMOLNM.js";import"./chunk-XUPYV42H.js";import{a as kt}from"./chunk-4MPROCDJ.js";import"./chunk-TYQB6DAR.js";import"./chunk-GW6I55VC.js";import"./chunk-4ZJHJNLB.js";import"./chunk-3IRW6MAO.js";import"./chunk-FVZKEHFL.js";import"./chunk-CABTRMED.js";import"./chunk-7EDV3FYO.js";import"./chunk-AWTSZHSK.js";import"./chunk-KUHFH43V.js";import"./chunk-JC5PZU5R.js";import{e as ae,h as Fe,i as Dt,k as Rt,l as Mt,m as je,y as wt}from"./chunk-3GQXY7WQ.js";import"./chunk-U6HR6JGF.js";import{a as At}from"./chunk-GJK2E2S6.js";import"./chunk-QIWZL5RQ.js";import"./chunk-MOINSKK7.js";import{B as bt,Q as Et,R as St}from"./chunk-SU7S3GV3.js";import"./chunk-3KYWNODB.js";import{a as It}from"./chunk-LCAEI3KW.js";import{d as Be}from"./chunk-NOYQY4IF.js";import"./chunk-ME6REO5O.js";import"./chunk-RPX352E4.js";import{a as Ct}from"./chunk-CIDLE6M4.js";import{a as ke}from"./chunk-XFNOPY4D.js";import"./chunk-SD2GF6LN.js";import"./chunk-VCI6DQU6.js";import"./chunk-ELFTTI6P.js";import"./chunk-DFKOY57W.js";import{g as vt}from"./chunk-3OSB33KW.js";import{d as Tt}from"./chunk-DL3JVWPO.js";import"./chunk-XERX3YYW.js";import"./chunk-AUTQTPL7.js";import{a as ft}from"./chunk-4Z5MUJO3.js";import"./chunk-A3QLZGQA.js";import{M as Z,O as W,Oa as ht,Pa as Ce,V as ie,X as K,Y as He,bb as Ne,eb as qe,sb as Ot,ta as yt,ua as re,xa as oe,za as J}from"./chunk-LJH5OBMW.js";import{$c as Re,Ag as ne,Bg as Q,Cb as F,Ea as et,Eb as h,F as Ze,Fc as k,Gb as O,Gc as $e,Ge as Me,Hb as nt,Ic as st,Ja as Ee,Jb as it,Jc as a,Kb as rt,Kc as s,Kh as Ae,L as pe,Lb as l,Lc as B,Mb as o,Mc as ee,Md as pt,Mh as D,Nb as c,Nc as q,Nh as V,Ob as g,Pd as mt,Qa as _e,S as Ie,Sb as T,Tb as b,Te as ut,V as We,Vb as M,Vh as xt,Xa as Se,Xb as x,Z as Ve,Za as tt,Zb as m,a as le,ba as Ke,bc as ot,ca as Te,cb as i,cc as at,d as de,da as Je,dc as ct,fa as Xe,ga as X,gg as _t,hc as N,id as lt,j as he,jd as te,ka as G,kb as R,kd as z,lc as xe,mc as p,nc as w,nd as S,o as ze,ob as E,oc as _,od as dt,og as gt,pb as ge,pc as fe,qa as me,ra as ue,rh as ve,sg as we,ta as be,tb as f,u as Y,ua as v,v as Oe,vc as P,wc as L,xc as I,ya as C,yc as H,za as y,zc as De}from"./chunk-PMSJWPYZ.js";import{h as Ye}from"./chunk-NIF3MU5U.js";var an="pdfInvoices";function cn(){return xt({facade:Ue,feature:an,methods:["getInvoicesForOrder","getInvoicePDF"]})}var Ue=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=me({token:t,factory:()=>cn(),providedIn:"root"})}}return t})(),ye=(function(t){return t.BASIC="BASIC",t.DEFAULT="DEFAULT",t.FULL="FULL",t})(ye||{});var fn=t=>({id:t});function vn(t,u){if(t&1){let e=M();o(0,"div",13)(1,"cx-pagination",14),x("viewPageEvent",function(r){C(e);let d=m(3);return y(d.pageChange(r))}),c()()}if(t&2){let e=m(3);i(),l("pagination",e.pagination)}}function Cn(t,u){if(t&1){let e=M();o(0,"button",23),a(1,"cxTranslate"),x("click",function(){C(e);let r=m().$implicit,d=m(3);return y(d.downloadPDFInvoice(r.invoiceId,r.externalSystemId))}),g(2,"cx-icon",10),a(3,"cxTranslate"),g(4,"span",24),a(5,"cxTranslate"),c()}if(t&2){let e=m().$implicit,n=m(3);F("aria-label",B(1,5,"pdfInvoices.invoicesTable.attachmentDescription",k(12,fn,e.invoiceId))),i(2),l("title",H(s(3,8,"pdfInvoices.invoicesTable.download")))("type",n.ICON_TYPE.FILE),i(2),l("innerText",s(5,10,"pdfInvoices.invoicesTable.download"))}}function yn(t,u){if(t&1&&(o(0,"tr",15)(1,"td",16)(2,"div",17),p(3),a(4,"cxTranslate"),c(),o(5,"div",18),p(6),c()(),o(7,"td",19)(8,"div",17),p(9),a(10,"cxTranslate"),c(),o(11,"div",18),p(12),a(13,"cxDate"),c()(),o(14,"td",20)(15,"div",17),p(16),a(17,"cxTranslate"),c(),o(18,"div",18),p(19),c()(),o(20,"td",20)(21,"div",17),p(22),a(23,"cxTranslate"),c(),o(24,"div",18),p(25),c()(),o(26,"td",21)(27,"div",17),p(28),a(29,"cxTranslate"),c(),o(30,"div",18),f(31,Cn,6,14,"button",22),c()()()),t&2){let e=u.$implicit;i(3),_(" ",s(4,10,"pdfInvoices.invoicesTable.invoiceId")," "),i(3),_(" ",e.invoiceId," "),i(3),_(" ",s(10,12,"pdfInvoices.invoicesTable.createdAt")," "),i(3),_(" ",B(13,14,e.createdAt,"longDate")," "),i(4),_(" ",s(17,17,"pdfInvoices.invoicesTable.netAmount")," "),i(3),_(" ",e.netAmount!=null&&e.netAmount.formattedValue?e.netAmount==null?null:e.netAmount.formattedValue:(e.netAmount==null?null:e.netAmount.currencyIso)+"\xA0"+(e.netAmount==null?null:e.netAmount.value)," "),i(3),_(" ",s(23,19,"pdfInvoices.invoicesTable.totalAmount")," "),i(3),_(" ",e.totalAmount!=null&&e.totalAmount.formattedValue?e.totalAmount==null?null:e.totalAmount.formattedValue:(e.totalAmount==null?null:e.totalAmount.currencyIso)+"\xA0"+(e.totalAmount==null?null:e.totalAmount.value)," "),i(3),_(" ",s(29,21,"pdfInvoices.invoicesTable.attachment")," "),i(3),l("ngIf",e.invoiceId)}}function hn(t,u){if(t&1){let e=M();o(0,"div",13)(1,"cx-pagination",25),x("viewPageEvent",function(r){C(e);let d=m(3);return y(d.pageChange(r))}),c()()}if(t&2){let e=m(3);i(),l("pagination",e.pagination)}}function On(t,u){if(t&1){let e=M();T(0),o(1,"div")(2,"div",1)(3,"h2"),p(4),a(5,"cxTranslate"),c()(),o(6,"div",2)(7,"div",3)(8,"label",4)(9,"span"),p(10),a(11,"cxTranslate"),c(),o(12,"cx-sorting",5),a(13,"cxTranslate"),a(14,"cxTranslate"),x("sortListEvent",function(r){C(e);let d=m(2);return y(d.sortChange(r))}),c()(),f(15,vn,2,1,"div",6),c(),o(16,"table",7),a(17,"cxTranslate"),o(18,"thead",8)(19,"tr")(20,"th",9),p(21),a(22,"cxTranslate"),c(),o(23,"th",9),p(24),a(25,"cxTranslate"),c(),o(26,"th",9),p(27),a(28,"cxTranslate"),c(),o(29,"th",9),p(30),a(31,"cxTranslate"),c(),o(32,"th",9),g(33,"cx-icon",10),a(34,"cxTranslate"),c()()(),o(35,"tbody"),f(36,yn,32,23,"tr",11),c()(),o(37,"div",12),f(38,hn,2,1,"div",6),c()()(),b()}if(t&2){let e=m().ngIf,n=m();i(4),_(" ",s(5,18,"pdfInvoices.invoicesTable.header")," "),i(6),_(" ",s(11,20,"pdfInvoices.sortBy")," "),i(2),l("placeholder",H(s(13,22,"pdfInvoices.sortBy")))("sortOptions",n.sortOptions)("selectedOption",n.sort)("ariaLabel",s(14,24,"pdfInvoices.sortInvoices")),i(3),l("ngIf",e.pagination&&e.pagination.totalPages&&e.pagination.totalPages>1),i(),F("aria-label",s(17,26,"pdfInvoices.invoicesTable.label")),i(5),_(" ",s(22,28,"pdfInvoices.invoicesTable.invoiceId")," "),i(3),_(" ",s(25,30,"pdfInvoices.invoicesTable.createdAt")," "),i(3),_(" ",s(28,32,"pdfInvoices.invoicesTable.netAmount")," "),i(3),_(" ",s(31,34,"pdfInvoices.invoicesTable.totalAmount")," "),i(3),l("title",H(s(34,36,"pdfInvoices.invoicesTable.attachment")))("type",n.ICON_TYPE.DOWNLOAD),i(3),l("ngForOf",e.invoices),i(2),l("ngIf",e.pagination&&e.pagination.totalPages&&e.pagination.totalPages>1)}}function In(t,u){if(t&1&&(T(0),f(1,On,39,38,"ng-container",0),b()),t&2){let e=u.ngIf;i(),l("ngIf",e.pagination&&e.pagination.totalCount&&e.pagination.totalCount>0)}}var Qe=(()=>{class t{constructor(e,n,r,d,A){this.pdfInvoicesFacade=e,this.translationService=n,this.downloadService=r,this.languageService=d,this.globalMessageService=A,this.ICON_TYPE=Z,this.PAGE_SIZE=5,this.sort="byInvoiceIdAsc",this.sortMapping={byCreatedAtAsc:"createdAt:asc",byCreatedAtDesc:"createdAt:desc",byInvoiceIdAsc:"invoiceId:asc",byInvoiceIdDesc:"invoiceId:desc",byNetAmountAsc:"netAmount:asc",byNetAmountDesc:"netAmount:desc",byTotalAmountAsc:"totalAmount:asc",byTotalAmountDesc:"totalAmount:desc"},this._initQueryParams={currentPage:0,pageSize:this.PAGE_SIZE,fields:ye.FULL,sort:this.sortMapping[this.sort]},this.queryParams$=new de(this._initQueryParams),this.invoicesList$=this.queryParams$.pipe(X(j=>this.pdfInvoicesFacade.getInvoicesForOrder(j)),G(j=>this.pagination={currentPage:j.pagination?.page,pageSize:j.pagination?.count,totalPages:j.pagination?.totalPages,totalResults:j.pagination?.totalCount,sort:this.sortMapping[this.sort]}),pe(j=>(j&&this.getNotEnabledError(j)?.length&&this.globalMessageService.add({key:"pdfInvoices.featureNotEnabled"},Q.MSG_TYPE_ERROR),he))),this.subscription=new le}ngOnInit(){this.subscription.add(this.languageService.getActive().pipe(Je(1)).subscribe(()=>this.updateQueryParams({fields:ye.FULL}
1))),this.getSortOptions()}updateQueryParams(e){Object.keys(e).forEach(n=>this._initQueryParams[n]=e[n]),e.fields||(this._initQueryParams.fields=ye.DEFAULT),this.queryParams$.next(this._initQueryParams)}pageChange(e){this.updateQueryParams({currentPage:e})}sortChange(e){this.sort=e,this.updateQueryParams({sort:this.sortMapping[e],currentPage:0})}downloadPDFInvoice(e,n){this.pdfInvoicesFacade.getInvoicePDF(e,n).pipe(Ie(1)).subscribe({next:r=>{let d=new Blob([r],{type:r.type}),A=URL.createObjectURL(d);this.downloadService.download(A,`${e}.pdf`)}})}getSortOptions(){this.sortOptions=[],Object.keys(this.sortMapping).forEach(n=>this.sortOptions.push({code:n,selected:!1}));let e=this.sortOptions.map(n=>this.translationService.translate(`pdfInvoices.sorts.${n.code}`));Oe(e).pipe(Ie(1)).subscribe(n=>this.sortOptions.forEach((r,d)=>r.name=n[d]))}getNotEnabledError(e){return e?.details?e.details.filter(n=>n?.type==="UnknownResourceError"):[]}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(R(Ue),R(ve),R(Ot),R(_t),R(ne))}}static{this.\u0275cmp=E({type:t,selectors:[["cx-invoices-list"]],decls:2,vars:3,consts:[[4,"ngIf"],[1,"cx-invoices-list-header"],[1,"cx-invoices-list-body"],[1,"cx-invoices-list-sort","top"],[1,"cx-invoices-list-form-group","form-group"],["ariaControls","cx-invoices-list-table",3,"sortListEvent","sortOptions","selectedOption","placeholder","ariaLabel"],["class","cx-invoices-list-pagination",4,"ngIf"],["id","cx-invoices-list-table",1,"table","cx-invoices-list-table"],[1,"cx-invoices-list-thead-mobile"],["scope","col"],[1,"cx-invoices-list-attachment-icon",3,"type","title"],["class","cx-invoices-list-row",4,"ngFor","ngForOf"],[1,"cx-invoices-list-sort","bottom"],[1,"cx-invoices-list-pagination"],["paginationID","pagination-top",3,"viewPageEvent","pagination"],[1,"cx-invoices-list-row"],[1,"cx-invoices-list-code"],[1,"cx-invoices-list-label"],[1,"cx-invoices-list-value"],[1,"cx-invoices-list-date"],[1,"cx-invoices-list-monetary"],[1,"cx-invoices-list-attachment"],["class","cx-invoices-list-attachment-btn",3,"click",4,"ngIf"],[1,"cx-invoices-list-attachment-btn",3,"click"],[1,"cx-invoices-list-attachment-text",3,"innerText"],["paginationID","pagination-bottom",3,"viewPageEvent","pagination"]],template:function(n,r){n&1&&(f(0,In,2,1,"ng-container",0),a(1,"async")),n&2&&l("ngIf",s(1,1,r.invoicesList$))},dependencies:[z,Ne,qe,W,te,S,D,Ae],encapsulation:2,changeDetection:0})}}return t})();function Sn(t,u){t&1&&(o(0,"div",10),p(1),a(2,"cxTranslate"),c()),t&2&&(i(),_(" ",s(2,1,"myAccountV2OrderDetails.noInvoices")," "))}function Dn(t,u){t&1&&(o(0,"div",11),g(1,"cx-spinner"),c())}function Rn(t,u){if(t&1&&(T(0),o(1,"a",17),p(2),c(),b()),t&2){let e=m(2).ngIf;i(),l("href",e.trackingUrl,tt),i(),w(e==null?null:e.trackingID)}}function Mn(t,u){if(t&1&&(T(0),o(1,"label"),p(2),c(),b()),t&2){let e=m(2).ngIf;i(2),_(" ",e==null?null:e.trackingID," ")}}function wn(t,u){if(t&1&&(T(0),o(1,"div",11)(2,"div",12)(3,"div",13)(4,"div",14),p(5),a(6,"cxTranslate"),c(),o(7,"div",15),p(8),a(9,"cxDate"),c()(),o(10,"div",13)(11,"div",14),p(12),a(13,"cxTranslate"),c(),o(14,"div",15),p(15),a(16,"cxDate"),c()()(),o(17,"div",12)(18,"div",13)(19,"div",14),p(20),a(21,"cxTranslate"),c(),o(22,"div",15),p(23),c()(),o(24,"div",13)(25,"div",14),p(26),a(27,"cxTranslate"),c(),o(28,"div",15),f(29,Rn,3,2,"ng-container",16)(30,Mn,3,1,"ng-container",16),c()()()(),b()),t&2){let e=m().ngIf,n=m();i(5),_(" ",s(6,9,"orderDetails.consignmentTracking.dialog.shipped")," "),i(3),_(" ",B(9,11,n.shipDate,"medium")," "),i(4),_(" ",s(13,14,"orderDetails.consignmentTracking.dialog.estimate")," "),i(3),_(" ",B(16,16,e==null?null:e.targetArrivalDate,"medium")," "),i(5),_(" ",s(21,19,"orderDetails.consignmentTracking.dialog.carrier")," "),i(3),_(" ",e==null||e.carrierDetails==null?null:e.carrierDetails.name," "),i(3),_(" ",s(27,21,"orderDetails.consignmentTracking.dialog.trackingId")," "),i(3),l("ngIf",e==null?null:e.trackingUrl),i(),l("ngIf",!(e!=null&&e.trackingUrl))}}function An(t,u){if(t&1&&(T(0),o(1,"div",18)(2,"div",19),p(3),a(4,"cxDate"),c(),o(5,"div",20),p(6),c(),o(7,"div",19),p(8),c(),o(9,"div",21),p(10),c()(),b()),t&2){let e=u.$implicit;i(3),_(" ",B(4,4,e.eventDate,"medium")," "),i(3),_(" ",e.referenceCode," "),i(2),_(" ",e.detail," "),i(2),_(" location: ",e.location," ")}}function kn(t,u){if(t&1){let e=M();T(0),o(1,"div",5)(2,"div",6),p(3),a(4,"cxTranslate"),c(),o(5,"button",7),a(6,"cxTranslate"),x("click",function(){C(e);let r=m();return y(r.close("Cross click"))}),o(7,"span",8),p(8,"\xD7"),c()()(),f(9,wn,31,23,"ng-container",4),o(10,"div",9),f(11,An,11,7,"ng-container",10),c(),b()}if(t&2){let e=u.ngIf;m();let n=N(5);i(3),_(" ",s(4,5,"orderDetails.consignmentTracking.dialog.header")," "),i(2),F("aria-label",s(6,7,"common.close")),i(4),l("ngIf",(e==null?null:e.carrierDetails)&&
1(e==null?null:e.trackingID))("ngIfElse",n),i(2),l("ngForOf",e.trackingEvents)}}function Bn(t,u){t&1&&(o(0,"div",22)(1,"div",15),p(2),a(3,"cxTranslate"),c()()),t&2&&(i(2),_(" ",s(3,1,"orderDetails.consignmentTracking.dialog.noTracking")," "))}function Fn(t,u){if(t&1){let e=M();o(0,"div",23)(1,"div",24)(2,"div",25),p(3),a(4,"cxTranslate"),c(),o(5,"button",26),a(6,"cxTranslate"),x("click",function(){C(e);let r=m();return y(r.close("Cross click"))}),o(7,"span",8),p(8,"\xD7"),c()()(),o(9,"div",27)(10,"div",12)(11,"div",28),g(12,"cx-spinner"),c()()()()}t&2&&(i(3),_(" ",s(4,2,"orderDetails.consignmentTracking.dialog.loadingHeader")," "),i(2),F("aria-label",s(6,4,"common.close")))}var zt=t=>({disabled:t}),Pn=t=>({hidden:t});function Ln(t,u){if(t&1&&(o(0,"span",16),p(1),c()),t&2){let e=u.ngIf;i(),_(" ","("+e+")"," ")}}function Vn(t,u){if(t&1){let e=M();o(0,"cx-message",17),a(1,"cxTranslate"),x("closeMessage",function(){let r=C(e).$implicit,d=m();return y(d.closeErrorMessage(r))}),c()}if(t&2){let e=m();l("text",s(1,2,"attachments.dialog.downloadError"))("type",e.globalMessageType.MSG_TYPE_ERROR)}}function $n(t,u){if(t&1){let e=M();o(0,"tr",21)(1,"td")(2,"a",22),a(3,"cxTranslate"),a(4,"cxTranslate"),x("mousedown",function(r){C(e);let d=m().$implicit,A=m(4);return y(A.onMouseDown(r,d.sapAttachmentId,d.sapFileName))})("keydown.enter",function(){C(e);let r=m().$implicit,d=m(4);return y(d.openOrderAttachment(r.sapAttachmentId,r.sapFileName))}),p(5),c()(),o(6,"td")(7,"div",23),g(8,"cx-spinner"),c()(),o(9,"td")(10,"a",24),a(11,"cxTranslate"),a(12,"cxTranslate"),x("click",function(){C(e);let r=m().$implicit,d=m(4);return y(d.openOrderAttachment(r.sapAttachmentId,r.sapFileName))})("keydown.enter",function(){C(e);let r=m().$implicit,d=m(4);return y(d.openOrderAttachment(r.sapAttachmentId,r.sapFileName))}),g(13,"cx-icon",10),c()()()}if(t&2){let e=m().$implicit,n=m(4);i(2),l("title",H(s(3,11,"attachments.dialog.preview")))("ngClass",k(19,zt,n.loadingAttachments.includes(e.sapAttachmentId))),F("aria-label",s(4,13,"attachments.dialog.preview")),i(3),_(" ",e.sapFileName," "),i(2),l("ngClass",k(21,Pn,!n.loadingAttachments.includes(e.sapAttachmentId))),i(3),l("title",H(s(11,15,"attachments.dialog.preview")))("ngClass",k(23,zt,n.loadingAttachments.includes(e.sapAttachmentId))),F("aria-label",s(12,17,"attachments.dialog.preview")),i(3),l("type",n.iconTypes.FILE)}}function Hn(t,u){if(t&1&&(T(0),f(1,$n,14,25,"tr",20),b()),t&2){let e=u.$implicit;i(),l("ngIf",e.sapAttachmentId)}}function Nn(t,u){if(t&1&&(T(0),o(1,"table",18),f(2,Hn,2,1,"ng-container",19),c(),b()),t&2){let e=m(2).ngIf;i(2),l("ngForOf",e)}}function qn(t,u){if(t&1&&(T(0),f(1,Nn,3,1,"ng-container",13),b()),t&2){let e=m(2),n=N(25);i(),l("ngIf",e.attachmentsCount())("ngIfElse",n)}}function jn(t,u){if(t&1&&(T(0),f(1,qn,2,2,"ng-container",13),b()),t&2){let e=m(),n=N(23);i(),l("ngIf",!e.loadError())("ngIfElse",n)}}function Un(t,u){if(t&1&&(g(0,"cx-message",25),a(1,"cxTranslate")),t&2){let e=m();l("text",s(1,3,"attachments.dialog.error"))("type",e.globalMessageType.MSG_TYPE_ERROR)("isVisibleCloseButton",!1)}}function Gn(t,u){if(t&1&&(g(0,"cx-message",26),a(1,"cxTranslate")),t&2){let e=m();l("text",s(1,3,"attachments.dialog.empty"))("type",e.globalMessageType.MSG_TYPE_INFO)("isVisibleCloseButton",!1)}}function Qn(t,u){t&1&&(o(0,"div",27),g(1,"cx-spinner"),c())}var Yn=(t,u,e,n)=>({quantity:t,quantityAdded:u,productCode:e,productName:n});function zn(t,u){if(t&1){let e=M();T(0),o(1,"div",14)(2,"p"),p(3),a(4,"cxTranslate"),c(),o(5,"div",15)(6,"div",16)(7,"div",17)(8,"button",18),x("click",function(){C(e);let r=m(2);return y(r.close("Cancel creating cart from order"))}),p(9),a(10,"cxTranslate"),c(),o(11,"button",19),x("click",function(){C(e);let r=m().ngIf,d=m();return y(d.createCartFromOrder(r.orderCode))}),p(12),a(13,"cxTranslate"),c()()()()(),b()}t&2&&(i(3),_(" ",s(4,3,"reorder.dialog.areYouSureToReplaceCart")," "),i(6),_(" ",s(10,5,"reorder.dialog.cancel")," "),i(3),_(" ",s(13,7,"reorder.dialog.continue")," "))}function Zn(t,u){if(t&1&&(T(0),o(1,"span",21)(2,"span",22),g(3,"cx-icon",23),c(),p(4),a(5,"cxTranslate"),c(),b()),t&2){let e=m(4);i(3),l("type",e.iconTypes.SUCCESS),i(),_(" ",s(5,2,"reorder.dialog.messages.success")," ")}}function Wn(t,u){if(t&1&&(T(0),o(1,"span",22),g(2,"cx-icon",25),c(),b()),t&2){let e=m(6);i(2),l("type",e.iconTypes.INFO)}}function Kn(t,u){if(t&1&&(o(0,"span",22),g(1,"cx-icon",26),c()),t&2){let e=m(6);i(),l("type",e.iconTypes.ERROR)}}function Jn(t,u){if(t&1&&(o(0,"span",21),f(1,Wn,3,1,"ng-container",13)(2,Kn,2,1,"ng-template",null,3,q),o(4,"span"),p(5),a(6,"cxTranslate"),c()()),t&2){let e=u.$implicit,n=N(3),r=m(5);i(),l("ngIf",e.statusCode===r.cartValidationStatusCode.LOW_STOCK)("ngIfElse",n),i(4),_(" ",B(6,3,"reorder.dialog.messages."+e.statusCode,st(6,Yn,e.quantity,e.quantityAdded,e.entry.product.code,e.entry.product.name))," ")}}function Xn(t,u){if(t&1&&f(0,Jn,7,11,"span",24),t&2){let e=m(4);l("ngForOf",e.cartModifications)}}function ei(t,u){if(t&1&&(T(0),o(1,"p",20),f(2,Zn,6,4,"ng-container",13)(3,Xn,1,1,"ng-template",null,2,q),c(),b()),t&2){let e=N(4),n=m(3);i(2),l("ngIf",!(n.cartModifications!=null&&n.cartModifications.length))("ngIfElse",e)}}function ti(t,u){t&1&&(o(0,"div",27),g(1,"cx-spinner"),c())}function ni(t,u){if(t&1&&(f(0,ei,5,2,"ng-container",13),a(1,"async"),f(2,ti,2,0,"ng-template",null,1,q)),t&2){let e=N(3),n=m(2);l("ngIf",!s(1,2,n.loading$))("ngIfElse",e)}}function ii(t,u){if(t&1&&(T(0),f(1,zn,14,9,"ng-container",13),a(2,"async"),f(3,ni,4,4,"ng-template",null,0,q),b()),t&2){let e=N(4),n=m();i(),l("ngIf",s(2,2,n.showDecisionPrompt$))("ngIfElse",e)}}var $=(()=>{class t{constructor(e,n){this.orderHistoryFacade=e,this.routingService=n,this.orderCode$=this.routingService.getRouterState().pipe(Y(r=>r.state.params.orderCode),We()),this.orderLoad$=this.orderCode$.pipe(G(r=>{r?this.orderHistoryFacade.loadOrderDetails(r):this.orderHistoryFacade.clearOrderDetails()}),Te({bufferSize:1,refCount:!0}))}isOrderDetailsLoading(){return this.orderHistoryFacade.getOrderDetailsLoading()}getOrderDetails(){return this.orderLoad$.pipe(X(()=>this.orderHistoryFacade.getOrderDetails()))}static{this.\u0275fac=function(n){return new(n||t)(be(ae),be(we))}}static{this.\u0275prov=me({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ri=(()=>{class t{constructor(){this.OrderOutlets=Mt,this.invoiceCount=void 0,this.iconTypes=Z,this.focusConfig={trap:!0,block:!0,autofocus:!0,focusOnEscape:!0},this.launchDialogService=v(J),this.cdr=v(Re)}ngAfterViewChecked(){this.cdr.detectChanges(),this.invoiceComponent&&this.invoiceComponent.pagination!==void 0&&(this.invoiceCount=this.invoiceComponent.pagination.totalResults)}close(e,n){this.launchDialogService.closeDialog(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=E({type:t,selectors:[["cx-my-account-v2-download-invoices"]],viewQuery:function(n,r){if(n&1&&ot(Qe,5),n&2){let d;at(d=ct())&&(r.invoiceComponent=d.first)}},decls:15,vars:14,consts:[["role","dialog","aria-describedby","downloadInvoicesContent",1,"cx-modal-container",3,"esc","cxFocus"],["id","downloadInvoicesContent",1,"cx-modal-content"],[1,"cx-dialog-header","modal
1-header"],["id","downloadInvoicesTitle","aria-labelledby","downloadInvoicesTitle","tabindex","-1",1,"cx-dialog-title","modal-title"],["type","button","aria-controls","downloadInvoicesContent",1,"close",3,"click","title"],["aria-hidden","true"],[3,"type"],[1,"cx-dialog-body","modal-body"],["id","noInvoice","role","alert",4,"ngIf"],["class","cx-spinner","aria-live","polite","role","alert",4,"ngIf"],["id","noInvoice","role","alert"],["aria-live","polite","role","alert",1,"cx-spinner"]],template:function(n,r){n&1&&(o(0,"div",0),x("esc",function(){return r.close("Escape clicked")}),o(1,"div",1)(2,"div",2)(3,"div",3),p(4),a(5,"cxTranslate"),c(),o(6,"button",4),a(7,"cxTranslate"),a(8,"cxTranslate"),x("click",function(){return r.close("Close download invoices dialog")}),o(9,"span",5),g(10,"cx-icon",6),c()()(),o(11,"div",7),g(12,"cx-invoices-list"),f(13,Sn,3,3,"div",8)(14,Dn,2,0,"div",9),c()()()),n&2&&(l("cxFocus",r.focusConfig),i(4),_(" ",s(5,8,"myAccountV2OrderDetails.downloadInvoices")," "),i(2),l("title",H(s(7,10,"addToCart.closeModal"))),F("aria-label",s(8,12,"addToCart.closeModal")),i(4),l("type",r.iconTypes.CLOSE),i(3),l("ngIf",r.invoiceCount===0),i(),l("ngIf",r.invoiceCount===void 0))},dependencies:[re,W,Qe,z,Ce,D],encapsulation:2,changeDetection:0})}}return t})(),yo={launch:{DOWNLOAD_ORDER_INVOICES:{inlineRoot:!0,component:ri,dialogType:oe.DIALOG}}};var oi=(()=>{class t{handleClick(e){e.target.tagName===this.el.nativeElement.tagName&&this.close("Cross click")}constructor(e,n,r){this.orderHistoryFacade=e,this.launchDialogService=n,this.el=r,this.subscription=new le,this.focusConfig={trap:!0,block:!0,autofocus:"button",focusOnEscape:!0}}ngOnInit(){this.subscription.add(this.launchDialogService.data$.subscribe(e=>{e&&this.init(e.tracking$,e.shipDate)}))}ngOnDestroy(){this.orderHistoryFacade.clearConsignmentTracking(),this.subscription?.unsubscribe()}init(e,n){this.tracking$=e,this.shipDate=n}close(e){this.launchDialogService.closeDialog(e)}static{this.\u0275fac=function(n){return new(n||t)(R(ae),R(J),R(_e))}}static{this.\u0275cmp=E({type:t,selectors:[["cx-tracking-events"]],hostBindings:function(n,r){n&1&&x("click",function(A){return r.handleClick(A)})},decls:8,vars:5,consts:[["noTracking",""],["loading",""],[1,"modal-dialog","modal
1-dialog-centered","modal-lg","cx-consignment-tracking-dialog",3,"esc","cxFocus"],[1,"modal-content","cx-consignment-tracking-container"],[4,"ngIf","ngIfElse"],[1,"modal-header","cx-modal-header"],[1,"modal-title","cx-consignment-tracking-title"],["type","button",1,"close",3,"click"],["aria-hidden","true"],[1,"cx-tracking-events","modal-body"],[4,"ngFor","ngForOf"],[1,"cx-shipment-heading"],[1,"row"],[1,"col-sm-12","col-md-6"],[1,"cx-shipment-title"],[1,"cx-shipment-content"],[4,"ngIf"],["target","_blank","rel","noopener noreferrer",3,"href"],[1,"cx-tracking-event-body"],[1,"cx-tracking-event-content"],[1,"cx-tracking-event-title"],[1,"cx-tracking-event-city"],[1,"cx-no-tracking-heading"],[1,"cx-tracking-loading"],[1,"header","modal-header"],[1,"title","modal-title"],["type","button",1,"close","btn-dismiss",3,"click"],[1,"body","modal-body"],[1,"col-sm-12"]],template:function(n,r){if(n&1&&(o(0,"div",2),x("esc",function(){return r.close("Escape clicked")}),o(1,"div",3),f(2,kn,12,9,"ng-container",4),a(3,"async"),f(4,Bn,4,3,"ng-template",null,0,q)(6,Fn,13,6,"ng-template",null,1,q),c()()),n&2){let d=N(7);l("cxFocus",r.focusConfig),i(2),l("ngIf",s(3,3,r.tracking$))("ngIfElse",d)}},dependencies:[re,z,te,Ce,S,D,Ae],encapsulation:2,changeDetection:0})}}return t})();var ai=(()=>{class t{constructor(){this.config=v(wt),this.launchDialogService=v(J),this.orderAttachmentsFacade=v(Rt),this.translation=v(ve),this.cd=v(Re),this.destroyRef=v(et),this.globalMessageType=Q,this.iconTypes=Z,this.focusConfig={trap:!0,block:!0,autofocus:!0,focusOnEscape:!0},this.orderCode$=this.launchDialogService.data$.pipe(Y(e=>e.orderCode)),this.attachments$=this.orderCode$.pipe(X(e=>this.orderAttachmentsFacade.getOrderAttachments(e)),Y(e=>e.sapAttachments??[]),pe(()=>(this.loadError.set(!0),ze([]))),Ke()),this.loadError=Ee(!1),this.attachmentsCount=mt(this.attachments$.pipe(Y(e=>e.length)),{initialValue:0}),this.loadingAttachments=[],this.erroredAttachments=[],this.errorCounter=0}openOrderAttachment(e,n){this.orderCode$.pipe(Ze(()=>!this.loadingAttachments.includes(e)),G(()=>this.setAttachmentLoadingState(e,!0)),X(r=>this.orderAttachmentsFacade.downloadOrderAttachment(r,e)),G(r=>{if(r.type&&this.config.orderAttachments?.previewMimeTypes.includes(r.type.split(";")[0])){this.previewFile(r);return}this.downloadFile(r,n)}),G(()=>this.setAttachmentLoadingState(e,!1)),pe(()=>(this.setAttachmentLoadingState(e,!1),this.addErrorMessage(e),he)),pt(this.destroyRef)).subscribe()}previewFile(e){let n=URL.createObjectURL(e);window.open(n,"_blank","noopener,noreferrer")}downloadFile(e,n){let r=URL.createObjectURL(e),d=document.createElement("a");d.href=r,d.target="_blank",d.rel="noopener noreferrer",d.download=n,document.body.appendChild(d),d.click(),document.body.removeChild(d)}onMouseDown(e,n,r){(e.button===0||e.button===1)&&this.openOrderAttachment(n,r)}setAttachmentLoadingState(e,n){n?this.loadingAttachments.push(e):this.loadingAttachments=this.loadingAttachments.filter(r=>r!==e),this.cd.detectChanges()}addErrorMessage(e){this.erroredAttachments.push(`${e}_${this.errorCounter}`),this.errorCounter++,this.cd.detectChanges()}closeErrorMessage(e){this.erroredAttachments=this.erroredAttachments.filter(n=>n!==e)}close(e){this.launchDialogService.closeDialog(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=E({type:t,selectors:[["cx-order-attachments-dialog"]],decls:28,vars:24,consts:[["error",""],["empty",""],["loading",""],["role","dialog","aria-labelledby","dialogTitle","aria-modal","true",1,"cx-modal-container",3,"esc","cxFocus"],[1,"cx-modal-content"],[1,"cx-dialog-header","modal-header"],["id","dialogTitle",1,"cx-dialog-title","modal
1-title"],["class","attachments-counter",4,"ngIf"],["type","button",1,"close",3,"click","title"],["aria-hidden","true"],[3,"type"],[1,"cx-dialog-body","modal-body"],["class","cx-dialog-message attachment-error",3,"text","type","closeMessage",4,"ngFor","ngForOf"],[4,"ngIf","ngIfElse"],[1,"cx-dialog-footer","modal-footer"],["type","button",1,"btn","btn-secondary","cancel-button",3,"click"],[1,"attachments-counter"],[1,"cx-dialog-message","attachment-error",3,"closeMessage","text","type"],[1,"table"],[4,"ngFor","ngForOf"],["class","order-attachment-row",4,"ngIf"],[1,"order-attachment-row"],[3,"mousedown","keydown.enter","title","ngClass"],[1,"inline-spinner",3,"ngClass"],["tabindex","0","role","button",1,"file-icon",3,"click","keydown.enter","title","ngClass"],[1,"cx-dialog-message","error-message",3,"text","type","isVisibleCloseButton"],[1,"cx-dialog-message","info-message",3,"text","type","isVisibleCloseButton"],[1,"cx-spinner"]],template:function(n,r){if(n&1&&(o(0,"div",3),x("esc",function(){return r.close("Escape clicked")}),o(1,"div",4)(2,"div",5)(3,"div",6)(4,"span"),p(5),a(6,"cxTranslate"),c(),f(7,Ln,2,1,"span",7),c(),o(8,"button",8),a(9,"cxTranslate"),a(10,"cxTranslate"),x("click",function(){return r.close("Close dialog")}),o(11,"span",9),g(12,"cx-icon",10),c()()(),o(13,"div",11),f(14,Vn,2,4,"cx-message",12)(15,jn,2,2,"ng-container",13),a(16,"async"),c(),o(17,"div",14)(18,"button",15),a(19,"cxTranslate"),x("click",function(){return r.close("Cancel dialog")}),p(20),a(21,"cxTranslate"),c()()()(),f(22,Un,2,5,"ng-template",null,0,q)(24,Gn,2,5,"ng-template",null,1,q)(26,Qn,2,0,"ng-template",null,2,q)),n&2){let d=N(27);l("cxFocus",r.focusConfig),i(5),_(" ",s(6,12,"attachments.dialog.title")," "),i(2),l("ngIf",r.attachmentsCount()),i(),l("title",H(s(9,14,"attachments.dialog.closeModal"))),F("aria-label",s(10,16,"attachments.dialog.closeModal")),i(4),l("type",r.iconTypes.CLOSE),i(2),l("ngForOf",r.erroredAttachments),i(),l("ngIf",s(16,18,r.attachments$))("ngIfElse",d),i(3),F("aria-label",s(19,20,"common.cancel")),i(2),_(" ",s(21,22,"common.cancel")," ")}},dependencies:[re,z,W,te,ht,lt,Ce,S,D],encapsulation:2,changeDetection:0})}}return t})(),ho={launch:{ORDER_ATTACHMENTS:{inline:!0,component:ai,dialogType:oe.DIALOG}}},Oo={launch:{CONSIGNMENT_TRACKING:{inlineRoot:!0,component:oi,dialogType:oe.DIALOG}}};var ci=(()=>{class t{constructor(e,n,r){this.launchDialogService=e,this.reorderOrderFacade=n,this.multiCartFacade=r,this.iconTypes=Z,this.focusConfig={trap:!0,block:!0,autofocus:!0,focusOnEscape:!0},this.loading$=new de(!1),this.showDecisionPrompt$=new de(!0),this.data$=this.launchDialogService.data$,this.selectFocusUtility=v(yt),this.elementRef=v(_e,{optional:!0})}createCartFromOrder(e){this.showDecisionPrompt$.next(!1),this.loading$.next(!0),this.reorderOrderFacade.reorder(e).subscribe(n=>{this.multiCartFacade.reloadCart(ut,{active:!0}),this.cartModifications=n.cartModifications,this.loading$.next(!1),this.recaptureFocus()})}recaptureFocus(){this.selectFocusUtility?.findFirstFocusable(this.elementRef?.nativeElement)?.focus()}close(e){this.launchDialogService.closeDialog(e)}get cartValidationStatusCode(){return Et}static{this.\u0275fac=function(n){return new(n||t)(R(J),R(Fe),R(bt))}}static{this.\u0275cmp=E({type:t,selectors:[["cx-reorder-dialog"]],decls:15,vars:15,consts:[["result",""],["loading",""],["cartResponse",""],["errorIcon",""],["role","dialog","aria-labelledby","dialogTitle","aria-modal","true",1,"cx-modal-container",3,"esc","cxFocus"],[1,"cx-modal-content"],[1,"cx-dialog-header","modal-header"],["id","dialogTitle",1,"cx-dialog-title","modal
1-title"],["type","button",1,"close",3,"click","title"],["aria-hidden","true"],[3,"type"],[1,"cx-dialog-body","modal-body"],[4,"ngIf"],[4,"ngIf","ngIfElse"],[1,"cx-reorder-dialog-areyousure-section"],[1,"cx-reorder-dialog-footer"],[1,"row"],[1,"col-12"],[1,"btn","btn-action",3,"click"],[1,"btn","btn-primary",3,"click"],["aria-live","polite"],[1,"cx-cart-mod-entry-container"],[1,"alert-icon"],[1,"success",3,"type"],["class","cx-cart-mod-entry-container",4,"ngFor","ngForOf"],[1,"warning",3,"type"],[1,"error",3,"type"],[1,"cx-spinner"]],template:function(n,r){n&1&&(o(0,"div",4),x("esc",function(){return r.close("Escape clicked")}),o(1,"div",5),T(2),o(3,"div",6)(4,"div",7),p(5),a(6,"cxTranslate"),c(),o(7,"button",8),a(8,"cxTranslate"),a(9,"cxTranslate"),x("click",function(){return r.close("Close reorder result dialog")}),o(10,"span",9),g(11,"cx-icon",10),c()()(),b(),o(12,"div",11),f(13,ii,5,4,"ng-container",12),a(14,"async"),c()()()),n&2&&(l("cxFocus",r.focusConfig),i(5),_(" ",s(6,7,"reorder.dialog.reorderProducts")," "),i(2),l("title",H(s(8,9,"addToCart.closeModal"))),F("aria-label",s(9,11,"addToCart.closeModal")),i(4),l("type",r.iconTypes.CLOSE),i(2),l("ngIf",s(14,13,r.data$)))},dependencies:[re,W,z,te,Ce,S,D],encapsulation:2,changeDetection:0})}}return t})();var Io={launch:{REORDER:{inline:!0,component:ci,dialogType:oe.DIALOG}}};var Zt=(()=>{class t{constructor(e){this.orderHistoryFacade=e,this.type=St.ORDER_DETAILS}getEntries(){return this.orderHistoryFacade.getOrderDetails().pipe(Y(e=>e?.entries??[]))}static{this.\u0275fac=function(n){return new(n||t)(be(ae))}}static{this.\u0275prov=me({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),si=(()=>{class t{handleClick(e){e.target.tagName===this.el.nativeElement.tagName&&this.close("Cross click")}constructor(e,n,r,d){this.replenishmentOrderHistoryFacade=e,this.globalMessageService=n,this.launchDialogService=r,this.el=d,this.subscription=new le,this.iconTypes=Z,this.focusConfig={trap:!0,block:!0,autofocus:"button",focusOnEscape:!0}}ngOnInit(){this.subscription.add(Oe([this.replenishmentOrderHistoryFacade.getReplenishmentOrderDetails().pipe(Xe(null)),this.launchDialogService.data$]).subscribe(([e,n])=>{this.replenishmentOrderCode=n||e?.replenishmentOrderCode})),this.subscription.add(this.replenishmentOrderHistoryFacade.getCancelReplenishmentOrderSuccess().subscribe(e=>this.onSuccess(e)))}onSuccess(e){e&&(this.launchDialogService.closeDialog("Successffully cancelled replenishment"),this.globalMessageService.add({key:"orderDetails.cancelReplenishment.cancelSuccess",params:{replenishmentOrderCode:this.replenishmentOrderCode}},Q.MSG_TYPE_CONFIRMATION)),this.replenishmentOrderHistoryFacade.clearCancelReplenishmentOrderProcessState()}close(e){this.launchDialogService.closeDialog(e)}cancelReplenishment(){this.replenishmentOrderHistoryFacade.cancelReplenishmentOrder(this.replenishmentOrderCode)}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(R(Dt),R(ne),R(J),R(_e))}}static{this.\u0275cmp=E({type:t,selectors:[["cx-replenishment-order-cancellation-dialog"]],hostBindings:function(n,r){n&1&&x("click",function(A){return r.handleClick(A)})},decls:24,vars:21,consts:[["role","dialog","aria-labelledby","dialogTitle",1,"modal-dialog","modal
1-dialog-centered","modal-sm",3,"esc","cxFocus"],[1,"modal-content"],[1,"modal-header"],["id","dialogTitle"],["type","button",1,"close",3,"click","title"],["aria-hidden","true"],[3,"type"],[1,"cx-cancel-replenishment-dialog-description"],[1,"modal-body"],[1,"cx-cancel-replenishment-btns","row"],[1,"col-md-6"],[1,"btn","btn-block","btn-secondary",3,"click"],[1,"btn","btn-block","btn-primary",3,"click"]],template:function(n,r){n&1&&(o(0,"div",0),x("esc",function(){return r.close("Escape clicked")}),o(1,"div",1)(2,"div",2)(3,"h3",3),p(4),a(5,"cxTranslate"),c(),o(6,"button",4),a(7,"cxTranslate"),a(8,"cxTranslate"),x("click",function(){return r.close("Cross click")}),o(9,"span",5),g(10,"cx-icon",6),c()()(),o(11,"div",7),p(12),a(13,"cxTranslate"),c(),o(14,"div",8)(15,"div",9)(16,"div",10)(17,"button",11),x("click",function(){return r.close("Close Replenishment Dialog")}),p(18),a(19,"cxTranslate"),c()(),o(20,"div",10)(21,"button",12),x("click",function(){return r.cancelReplenishment()}),p(22),a(23,"cxTranslate"),c()()()()()()),n&2&&(l("cxFocus",r.focusConfig),i(4),_(" ",s(5,9,"orderDetails.cancelReplenishment.title")," "),i(2),l("title",H(s(7,11,"common.close"))),F("aria-label",s(8,13,"common.close")),i(4),l("type",r.iconTypes.CLOSE),i(2),_(" ",s(13,15,"orderDetails.cancelReplenishment.description")," "),i(6),_(" ",s(19,17,"orderDetails.cancelReplenishment.reject")," "),i(4),_(" ",s(23,19,"orderDetails.cancelReplenishment.accept")," "))},dependencies:[re,W,D],encapsulation:2,changeDetection:0})}}return t})();var To={launch:{REPLENISHMENT_ORDER:{inline:!0,component:si,dialogType:oe.DIALOG}}};function li(t,u){if(t&1&&(o(0,"div",0)(1,"h2",1),p(2),c(),o(3,"div",2),g(4,"p",3)(5,"trn-link",4),c()()),t&2){let e=m(),n=I(0),r=I(2);i(2),w(n.title),i(2),l("innerHTML",e.setTextWithPoints(n.description,r.loyaltyPoints),Se),i(),l("url",n.cmsLink.url)("label",n.cmsLink.linkName)}}var Wt=(()=>{class t{componentData=v(He);orderDetailsService=v($);data$=this.componentData.data$;order$=this.orderDetailsService.getOrderDetails();setTextWithPoints(e,n){return e.replace("#{points}",`<b>${n}</b>`)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=E({type:t,selectors:[["trn-account-link"]],decls:5,vars:7,consts:[[1,"account-link"],[1,"section-header"],[1,"section-description"],[3,"innerHTML"],["icon","arrow_forward","iconPlacement","icon-right","size","small",1,"continue-button",3,"url","label"]],template:function(n,r){if(n&1&&(P(0),a(1,"async"),P(2),a(3,"async"),h(4,li,6,4,"div",0)),n&2){let d=L(s(1,1,r.data$));i(2);let A=L(s(3,4,r.order$));i(2),O(d&&A?4:-1)}},dependencies:[ke,S],styles:[".account-link[_ngcontent-%COMP%]{border-bottom:1px solid rgba(0,0,0,.1)}.account-link[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%]{font-family:Ubuntu,sans-serif;font-weight:400;-webkit-font-smoothing:antialiased;font-size:16px;line-height:20px;letter-spacing:normal;padding-top:2px;padding-bottom:2px}@media all and (min-width:576px){.account-link[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%]{font-size:18px;line-height:24px;letter-spacing:normal;padding-top:0;padding-bottom:0}}@media all and (min-width:992px){.account-link[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%]{font-size:22px;line-height:28px;letter-spacing:normal;padding-top:2px;padding-bottom:2px}}.account-link[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%]{margin-bottom:4px;margin-top:0}.account-link[_ngcontent-%COMP%] .section-description[_ngcontent-%COMP%]{font-size:14px;line-height:20px;letter-spacing:normal;padding-top:2px;padding-bottom:2px}.account-link[_ngcontent-%COMP%] .section-description[_ngcontent-%COMP%]{margin-bottom:16px;display:flex;flex-direction:column;justify-content:space-between}@media all and (min-width:992px){.account-link[_ngcontent-%COMP%] .section-description[_ngcontent-%COMP%]{flex-direction:row;align-items:center}}"]})}return t})();function di(t,u){t&1&&(g(0,"p",2),a(1,"cxTranslate")),t&2&&l("innerHTML",s(1,1,"order_history.pickup_info_in_process"),Se)}function pi(t,u){if(t&1&&(g(0,"trn-property-row",3),a(1,"cxTranslate")),t&2){m(2);let e=I(0);l("text",e.pickupCode)("label",s(1,2,"checkout.review.table.pickup_code"))}}function mi(t,u){if(t&1&&(o(0,"p"),p(1),a(2,"cxTranslate"),c(),g(3,"trn-property-row",3),a(4,"cxTranslate")),t&2){m(2);let e=I(0);i(),w(s(2,3,"order_history.you_may_add_additional_items_now")),i(2),l("text",e.paymentMode==null?null:e.paymentMode.name)("label",s(4,5,"checkout.review.table.payment.payment_method"))}}function ui(t,u){if(t&1&&(g(0,"trn-property-row",3),a(1,"cxTranslate"),g(2,"trn-property-row",3),a(3,"cxTranslate"),g(4,"trn-property-row",3),a(5,"cxTranslate"),g(6,"trn-property-row",3),a(7,"cxTranslate")),t&2){let e=m(2),n=I(0);l("text",n.paymentInfo==null||n.paymentInfo.cardType==null?null:n.paymentInfo.cardType.n
1ame)("label",s(1,8,"checkout.review.table.payment.payment_method")),i(2),l("text",n.paymentInfo==null?null:n.paymentInfo.accountHolderName)("label",s(3,10,"order_history.cardholders_name")),i(2),l("text",n.paymentInfo==null?null:n.paymentInfo.cardNumber)("label",s(5,12,"order_history.card_number")),i(2),l("text",e.getPaymentCartDate(n.paymentInfo==null?null:n.paymentInfo.expiryMonth,n.paymentInfo==null?null:n.paymentInfo.expiryYear))("label",s(7,14,"order_history.expiration_date"))}}function _i(t,u){if(t&1&&(o(0,"div",0)(1,"trn-property-table",1),a(2,"cxTranslate"),a(3,"cxTranslate"),h(4,di,2,3,"p",2),h(5,pi,2,4,"trn-property-row",3),g(6,"trn-property-row",4),a(7,"trnDate"),a(8,"cxTranslate"),g(9,"trn-property-row",5),a(10,"trnDate"),a(11,"cxTranslate"),a(12,"cxTranslate"),c(),o(13,"trn-property-table",1),a(14,"cxTranslate"),a(15,"cxTranslate"),h(16,mi,5,7)(17,ui,8,16),c(),o(18,"trn-property-table",1),a(19,"cxTranslate"),a(20,"cxTranslate"),g(21,"trn-property-row",6),a(22,"cxTranslate"),g(23,"trn-property-row",7),a(24,"cxTranslate"),g(25,"trn-property-row",8),a(26,"async"),a(27,"cxTranslate"),c(),o(28,"div",9),g(29,"trn-location-map-media",10),a(30,"cxTranslate"),c()()),t&2){let e,n=m(),r=I(0);i(),l("title",s(2,26,"order_history.pickup_information"))("trn-tooltip",s(3,28,"order_history.pickup_information"))("a11yHeader","h2"),i(3),O(r.stage!=="FULFILLED"&&r.stage!=="CANCELLED"?4:-1),i(),O(r.pickupCode?5:-1),i(),l("text",ee(7,30,r.deliveryDate,"dd MMMM yyyy","Europe/Oslo"))("label",s(8,34,"checkout.review.table.pickup_time.pickup_date")),i(3),l("text",ee(10,36,r.deliveryDate,"HH:mm","Europe/Oslo")+" "+s(11,40,"checkout.review.oslo_time"))("label",s(12,42,"checkout.review.table.pickup_time.pickup_time")),i(4),l("title",s(14,44,"order_history.payment"))("trn-tooltip",s(15,46,"order_history.payment"))("a11yHeader","h2"),i(3),O(16),i(2),l("title",s(19,48,"order_history.pickup_location"))("trn-tooltip",s(20,50,"order_history.pickup_location"))("a11yHeader","h2"),i(3),l("text",n.getAirportText(r))("label",s(22,52,"common.airport")),i(2),l("text",r.flightDetails==null||r.flightDetails.terminal==null?null:r.flightDetails.terminal.name)("label",s(24,54,"common.terminal")),i(2),l("text",r.flightDetails==null||r.flightDetails.direction==null?null:r.flightDetails.direction.name)("icon",(e=s(26,56,n.getDirectionIcon$(r==null||r.flightDetails==null||r.flightDetails.direction==null?null:r.flightDetails.direction.code)))==null?null:e[0])("label",s(27,58,"common.flight_direction")),i(4),l("images",r.pointOfService==null||r.pointOfService.locationMap==null||r.pointOfService.locationMap.formats==null?null:r.pointOfService.locationMap.formats.entry)("format","_620X620_webp")("alt",s(30,60,"order_confirmation.shop_location_image"))}}var Kt=(()=>{class t{orderDetailsService=v($);shopService=v(Tt);order$=this.orderDetailsService.getOrderDetails();getPaymentCartDate(e,n){let r=e?e+"/":"";return r+=n||"",r}getAirportText(e){return`${e?.flightDetails?.airport.city} (${e?.flightDetails?.airport.code})`}getDirectionIcon$(e){return this.shopService.getIcons$(e)}parseDateTimeToCustomTime(e){let n=new Date(e),r=n.getHours(),d=`${n.getMinutes()}`.padStart(2,"0");return[r,d].join(":")}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=E({type:t,selectors:[["trn-account-order-details"]],decls:3,vars:4,consts:[[1,"order-details"],[3,"title","trn-tooltip","a11yHeader"],[1,"pickup-description",3,"innerHTML"],[3,"text","label"],["icon","calendar_today",3,"text","label"],["icon","schedule",3,"text","label"],["icon","flight",3,"text","label"],["icon","language",3,"text","label"],[3,"text","icon","label"],[1,"trn-location-map-media-wrapper"],[3,"images","format","alt"]],template:function(n,r){if(n&1&&(P(0),a(1,"async"),h(2,_i,31,62,"div",0)),n&2){let d=L(s(1,1,r.order$));i(2),O(d?2:-1)}},dependencies:[V,Ft,Bt,At,Pt,S,D,Pe],styles:[".order-details[_ngcontent-%COMP%] trn-property-table[_ngcontent-%COMP%]{display:block;margin-bottom:32px}@media all and (min-width:992px){.order-details[_ngcontent-%COMP%] trn-property-table[_ngcontent-%COMP%]{margin-bottom:48px}}.order-details[_ngcontent-%COMP%] .trn-location-map-media-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-bottom:32px;gap:16px}@media all and (min-width:992px){.order-details[_ngcontent-%COMP%] .trn-location-map-media-wrapper[_ngcontent-%COMP%]{margin-bottom:48px;flex-direction:row;justify-content:space-between}}.order-details[_ngcontent-%COMP%] .trn-location-map-media-wrapper[_ngcontent-%COMP%] trn-location-map-media[_ngcontent-%COMP%]{display:block}.order-details[_ngcontent-%COMP%] .trn-location-map-media-wrapper[_ngcontent-%COMP%] trn-location-map-media[_ngcontent-%COMP%] img{padding:4px;border:1px solid rgba(0,0,0,.1);border-radius:12px;display:block;max-width:324px}.order-details[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14px;line-height:20px;letter-spacing:normal;padding-top:2px;padding-bottom:2px}.order-details[_ngcontent-%COMP%] .pickup-description[_ngcontent-%COMP%]{margin-bottom:4px}@media all and (min-width:992px){.order-details[_ngcontent-%COMP%] .pickup-description[_ngcontent-%COMP%]{margin-bottom:16px}}"]})}return t})();var Jt=Ye(ft());function gi(t,u){if(t&1&&g(0,"trn-order-product-card",6),t&2){let e=m().$implicit;l("entry",e)("showAdd",!0)}}function xi(t,u){if(t&1&&h(0,gi,1,2,"trn-order-product-card",6),t&2){let e=u.$implicit;O(e?0:-1)}}function fi(t,u){if(t&1){let e=M();o(0,"div",0)(1,"div",1)(2,"div")(3,"h2",2),p(4),a(5,"cxTranslate"),c()(),o(6,"trn-link",3),a(7,"cxTranslate"),x("click",function(){C(e);let r=m(2);return y(r.openProductList())}),c()(),o(8,"trn-carousel",4),it(9,xi,1,1,null,null,nt),c()(),g(11,"trn-order-details-modal",5)}if(t&2){let e=m(2),n=I(0);i(4),fe(" ",n.totalUnitCount||0," ",s(5,5,"order_history.products")," "),i(2),l("label",s(7,7,"cart.see_products")),i(3),rt(n.entries),i(2),l("modalId",e.modalProductsId)("order",n)}}function vi(t,u){if(t&1&&h(0,fi,12,9),t&2){m();let e=I(0);O(e.entries!=null&&e.entries.length?0:-1)}}var Xt=(()=>{class t{orderDetailsService=v($);modalService=v(Be);order$=this.orderDetailsService.getOrderDetails();modalProductsId=(0,Jt.uniqueId)("editProductList");CartTotalsOutlets=ce;openProductList(){this.modalService.open(this.modalProductsId)}closeProductList(){this.modalService.close(this.modalProductsId)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=E({type:t,selectors:[["trn-account-order-entries"]],decls:3,vars:4,consts:[[1,"order-products"],[1,"order-products-header"],[1,"heading-4"],["appearance","button","icon","visibility","iconPlacement","icon-left","size","medium",1,"link-popup",3,"click","label"],["fade","",1,"order-entries-carousel"],[3,"modalId","order"],["view","high",3,"entry","showAdd"]],template:function(n,r){if(n&1&&(P(0),a(1,"async"),h(2,vi,1,1)),n&2){let d=L(s(1,1,r.order$));
1i(2),O(d?2:-1)}},dependencies:[V,K,ke,Qt,Yt,Lt,S,D],styles:[".order-products[_ngcontent-%COMP%]{margin-bottom:32px}@media all and (min-width:992px){.order-products[_ngcontent-%COMP%]{margin-bottom:48px}}.order-products[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin-bottom:16px}.order-products[_ngcontent-%COMP%] .order-products-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:baseline;flex-direction:column}.order-products[_ngcontent-%COMP%] .order-products-header[_ngcontent-%COMP%] .link-popup[_ngcontent-%COMP%]{white-space:nowrap;margin-bottom:16px}@media all and (min-width:992px){.order-products[_ngcontent-%COMP%] .order-products-header[_ngcontent-%COMP%]{flex-direction:row}}.order-entries-carousel[_ngcontent-%COMP%]{--trn-carousel-slides: 2;--trn-carousel-fade-size: 0}@media all and (min-width:768px){.order-entries-carousel[_ngcontent-%COMP%]{--trn-carousel-slides: 3;--trn-carousel-gap: 16px}}@media all and (min-width:992px){.order-entries-carousel[_ngcontent-%COMP%]{--trn-carousel-slides: 4;--trn-carousel-gap: 24px;--trn-carousel-fade-size: 48px}}"],changeDetection:0})}return t})();var Ci=t=>({id:t});function yi(t,u){if(t&1&&(o(0,"section",0)(1,"div",1)(2,"h1",2),p(3),a(4,"cxTranslate"),c(),o(5,"p",3),p(6),a(7,"cxTranslate"),o(8,"span"),a(9,"lowercase"),p(10),a(11,"cxTranslate"),c()()()()),t&2){m();let e=I(0);i(3),_(" ",B(4,7,"order_history.order_id",k(16,Ci,e.code))," "),i(3),fe(" ",e.entries==null?null:e.entries.length," ",s(7,10,"order_history.products")," "),i(2),xe(De("order-stage ",s(9,12,e.stage))),i(2),_(" ",s(11,14,"order_history.stage."+e.stage))}}var en=(()=>{class t{orderDetailsService=v($);order$=this.orderDetailsService.getOrderDetails();static \u0275fac=function(n){return new(n||t)};static \u0275cmp=E({type:t,selectors:[["trn-account-order-page-title"]],decls:3,vars:4,consts:[[1,"section"],[1,"main-container"],["id","main-content","trnFocusOnNavigate","",1,"heading"],[1,"description"]],template:function(n,r){if(n&1&&(P(0),a(1,"async"),h(2,yi,12,18,"section",0)),n&2){let d=L(s(1,1,r.order$));i(2),O(d?2:-1)}},dependencies:[V,kt,S,D,dt],styles:[".section[_ngcontent-%COMP%]{position:relative;padding-top:16px;padding-bottom:32px}@media all and (min-width:992px){.section[_ngcontent-%COMP%]{padding-bottom:48px}}.heading[_ngcontent-%COMP%]{font-family:Ubuntu,sans-serif;font-weight:400;-webkit-font-smoothing:antialiased;font-size:28px;line-height:32px;letter-spacing:normal;padding-top:0;padding-bottom:0}@media all and (min-width:576px){.heading[_ngcontent-%COMP%]{font-size:48px;line-height:56px;letter-spacing:normal;padding-top:0;padding-bottom:0}}.heading[_ngcontent-%COMP%]{margin-bottom:8px}.description[_ngcontent-%COMP%]{font-size:16px;line-height:22px;letter-spacing:normal;padding-top:1px;padding-bottom:1px}@media all and (min-width:992px){.description[_ngcontent-%COMP%]{font-size:16px;line-height:28px;letter-spacing:normal;padding-top:2px;padding-bottom:2px}}.description[_ngcontent-%COMP%] .order-stage[_ngcontent-%COMP%]{font-size:16px;line-height:22px;letter-spacing:normal;padding-top:1px;padding-bottom:1px}@media all and (min-width:992px){.description[_ngcontent-%COMP%] .order-stage[_ngcontent-%COMP%]{font-size:16px;line-height:28px;letter-spacing:normal;padding-top:2px;padding-bottom:2px}}.description[_ngcontent-%COMP%] .order-stage[_ngcontent-%COMP%]{padding:0 4px;background:#e6ecfa none;color:#101838;border-radius:4px}.description[_ngcontent-%COMP%] .order-stage.fulfilled[_ngcontent-%COMP%]{background-color:#e0ece4;color:#0c2113}.description[_ngcontent-%COMP%] .order-stage.canceled[_ngcontent-%COMP%]{background-color:#f8dfdf;color:#340b0b}"]})}return t})();var Le=Ye(ft());var tn=t=>({order:t}),hi=(t,u)=>({modalId:t,orderId:u});function Oi(t,u){if(t&1&&(o(0,"span"),g(1,"trn-icon",15),o(2,"span"),p(3),c()()),t&2){m(2);let e=I(0);xe(De("order-payment-label payment-",e.paymentMode.code)),i(),l("icon",e.paymentMode.code==="payinstore"?"flight":"done"),i(2),w(e.paymentMode.name)}}function Ii(t,u){if(t&1&&p(0),t&2){m(3);let e=I(0);_(" (",e.flightDetails.direction.name,") ")}}function Ti(t,u){if(t&1&&(p(0),h(1,Ii,1,1)),t&2){m(2);let e=I(0);_(" ",e.flightDetails.airport==null?null:e.flightDetails.airport.name," "),i(),O(e.flightDetails.direction!=null&&e.flightDetails.direction.name?1:-1)}}function bi(t,u){if(t&1){let e=M();o(0,"trn-button",16),a(1,"cxTranslate"),x("onClick",function(){C(e);let r=m(2),d=I(0);return y(r.repeatOrder(d.code))}),c()}t&2&&l("label",s(1,6,"order_history.order_again"))("icon","refresh")("iconPlacement","icon-right")("size","small")("color","secondary")("fill",!0)}function Ei(t,u){if(t&1){let e=M();o(0,"trn-button",17),a(1,"cxTranslate"),x("onClick",function(){C(e);let r=m(2);return y(r.openCancelModal())}),c()}t&2&&l("label",s(1,6,"order_history.cancel_order"))("icon","cancel")("iconPlacement","icon-right")("size","small")("color","secondary")("fill",!0)}function Si(t,u){}function Di(t,u){}function Ri(t,u){t&1&&(o(0,"span"),p(1),a(2,"cxTranslate"),c()),t&2&&(i(),_(" ",s(2,1,"order_history.if_you_already_paid")," "))}function Mi(t,u){if(t&1){let e=M();o(0,"div",0)(1,"div",1)(2,"div")(3,"div",2),p(4),a(5,"cxTranslate"),c(),o(6,"div",3)(7,"p"),p(8),o(9,"span"),p(10),c()(),o(11,"div"),h(12,Oi,4,5,"span",4),c()()(),o(13,"div")(14,"div",2),p(15),a(16,"cxTranslate"),c(),o(17,"p",3),p(18),a(19,"trnDate"),c()(),o(20,"div")(21,"div",2),p(22),a(23,"cxTranslate"),c(),o(24,"p",3),h(25,Ti,2,2),c()()(),o(26,"div",5)(27,"trn-button",6),a(28,"cxTranslate"),x("onClick",function(){C(e);let r=m(),d=I(0);return y(r.openReport(d.code))}),c(),h(29,bi,2,8,"trn-button",7),h(30,Ei,2,8,"trn-button",8),f(31,Si,0,0,"ng-template",9),c()(),f(32,Di,0,0,"ng-template",9),o(33,"trn-modal",10),a(34,"cxTranslate"),T(35,11),g(36,"trn-icon",12),o(37,"h3"),p(38),a(39,"cxTranslate"),c(),o(40,"div")(41,"span"),p(42),a(43,"cxTranslate"),c(),h(44,Ri,3,3,"span"),c(),b(),T(45,13),o(46,"trn-button",14),a(47,"cxTranslate"),x("onClick",function(){C(e);let r=m();return y(r.closeCancelModal())}),c(),o(48,"trn-button",14),a(49,"cxTranslate"),x("onClick",function(){C(e);let r=m(),d=I(0);return y(r.onCancelSubmit(d))}),c(),b(),c()}if(t&2){let e=m(),n=I(0);i(4),w(s(5,33,"order_history.total")),i(4),_(" ",n.totalDisplayPrice==null?null:n.totalDisplayPrice.formattedValue," "),i(2),w(n.totalDisplayPrice==null?null:n.totalDisplayPrice.currencyIso),i(2),O(n.paymentMode?12:-1),i(3),w(s(16,35,"order_history.pickup_date_time")),i(3),w(ee(19,37,n.deliveryDate,"d MMMM y, HH:mm","Europe/Oslo")),i(4),w(s(23,41,"order_history.pickup_location")),i(3),O(n.flightDetails?25:-1),i(2),l("label",s(28,43,"order_history.report_a_problem"))("icon","feedback")("iconPlacement","icon-right")("size","small")("color","secondary")("fill",!0),i(2),O(n.stage==="FULFILLED"||n.stage==="CANCELLED"?29:-1),i(),O(n.cancellable?30:-1),i(),l("cxOutlet",e.OrderEditOutlets.EDIT_BUTTON.id)("cxOutletContext",e.OrderEditOutlets.EDIT_BUTTON.data(k(56,tn,n))),i(),l("cxOutlet",e.OrderReportOutlets.REPORT_MODAL.id)("cxOutletContext",e.OrderReportOutlets.REPORT_MODAL.data($e(58,hi,e.modalReportId,e.selectedOrderId()))),i(),l("title",s(34,45,"order_history.cancel_order"))("identifier",e.modalCancelId),i(5),_(" ",B(39,47,"order_history.are_you_sure_you_want_to_cancel_order",k(61,tn,n.code))," "),i(4),_(" ",s(43,50,"order_history.once_you_cancel_your_order")," "),i(2),O(e.isNotPayInStorePayment(n)?44:-1),i(2),l("label",s(47,52,"common.back"))("size","medium")("color","secondary")("fill",!0),i(2),l("label",s(49,54,"order_history.cancel_order"))("size","medium")("color","tertiary")("fill",!0)}}var nn=(()=>{class t{orderDetailsService=v($);orderHistoryFacade=v(ae);modalService=v(Be);routingService=v(we);globalMessageService=v(ne);currencyService=v(gt);reorderOrderFacade=v(Fe);order$=this.orderDetailsService.getOrderDetails().pipe(Te({bufferSize:1,refCount:!0}));modalReportId=(0,Le.uniqueId)("reportProblem");modalProductsId=(0,Le.uniqueId)("editProductList");modalCancelId=(0,Le.uniqueId)("closeOrder");selectedOrderId=Ee(null);CartTotalsOutlets=ce;OrderEditOutlets=Vt;OrderReportOutlets=$t;openReport(e){this.selectedOrderId.set(e),this.modalService.open(this.modalReportId)}closeReport(){this.selectedOrderId.set(""),this.modalService.close(this.modalReportId)}repeatOrder(e){this.reorderOrderFacade.reorder(e).subscribe({next:()=>this.routingService.go({cxRoute:"cart"}),error:()=>this.globalMessageService.add({key:"httpHandlers.actionCanNotBeDone"},Q.MSG_TYPE_ERROR)})}openCancelModal(){this.modalService.open(this.modalCancelId)}closeCancelModal(){this.modalService.close(this.modalCancelId)}
1onCancelSubmit(e){let r={cancellationRequestEntryInputs:e.entries.map(({entryNumber:d,quantity:A})=>({entryNumber:d,quantity:A}))};this.orderHistoryFacade.cancelOrder(e.code,r),this.orderHistoryFacade.getCancelOrderSuccess().pipe(Ve(Boolean)).subscribe(()=>this.afterSave(e.code)),this.modalService.close(this.modalCancelId)}isNotPayInStorePayment(e){return e?.paymentMode?.code!=="payinstore"}afterSave(e){this.orderHistoryFacade.resetCancelOrderProcessState(),this.globalMessageService.add({key:"order_history.order_has_been_canceled",params:{orderCode:e}},Q.MSG_TYPE_CONFIRMATION),this.routingService.go({cxRoute:"orders"})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=E({type:t,selectors:[["trn-account-order-shipping-details"]],decls:3,vars:4,consts:[[1,"order-top-info"],[1,"order-shipping-wrapper"],[1,"info-label"],[1,"info-value"],[3,"class"],[1,"order-actions"],[1,"report-issue-button",3,"onClick","label","icon","iconPlacement","size","color","fill"],[1,"reorder-button",3,"label","icon","iconPlacement","size","color","fill"],[1,"cancel-order-button",3,"label","icon","iconPlacement","size","color","fill"],[3,"cxOutlet","cxOutletContext"],["paddingSize","large",1,"warning-modal",3,"title","identifier"],["content",""],["icon","warning",1,"icon-warning"],["footer",""],[3,"onClick","label","size","color","fill"],[1,"icon",3,"icon"],[1,"reorder-button",3,"onClick","label","icon","iconPlacement","size","color","fill"],[1,"cancel-order-button",3,"onClick","label","icon","iconPlacement","size","color","fill"]],template:function(n,r){if(n&1&&(P(0),a(1,"async"),h(2,Mi,50,63)),n&2){let d=L(s(1,1,r.order$));i(2),O(d?2:-1)}},dependencies:[V,K,ie,vt,Ct,It,S,D,Pe],styles:[".order-top-info[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column;margin-bottom:32px}@media all and (min-width:992px){.order-top-info[_ngcontent-%COMP%]{flex-direction:row;margin-bottom:48px}}.order-actions[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:right;gap:8px;margin-top:12px}@media all and (min-width:992px){.order-actions[_ngcontent-%COMP%]{flex:0 0 40%;margin-top:0}}@media all and (max-width:991px){.report-issue-button[_ngcontent-%COMP%]:only-child{flex:1}.report-issue-button[_ngcontent-%COMP%]:not(:only-child) .button-label{display:none}}@media all and (max-width:991px){.reorder-button[_ngcontent-%COMP%], .cancel-order-button[_ngcontent-%COMP%]{flex:1}}.order-payment-label[_ngcontent-%COMP%]{font-size:12px;line-height:14px;letter-spacing:normal;padding-top:1px;padding-bottom:1px}.order-payment-label[_ngcontent-%COMP%]{border-radius:4px;padding:0 4px;white-space:nowrap;background-color:#e0ece4;color:#0c2113;display:inline-flex;align-items:center}.order-payment-label[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:16px;height:16px}.order-payment-label.payment-payinstore[_ngcontent-%COMP%]{background:#e7e5e5 none;color:#1a1919}.order-shipping-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column}.order-shipping-wrapper[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-bottom:1px solid rgba(0,0,0,.1);display:flex;justify-content:space-between;padding:8px 0;align-items:baseline}.order-shipping-wrapper[_ngcontent-%COMP%] > div.order-history-code[_ngcontent-%COMP%]{border:none;display:block}@media all and (min-width:992px){.order-shipping-wrapper[_ngcontent-%COMP%]{justify-content:space-between;flex-direction:row;flex:0 0 60%}.order-shipping-wrapper[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-left:1px solid rgba(0,0,0,.1);border-bottom:none;padding:0 12px;flex:1 1 20%;display:block}.order-shipping-wrapper[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{padding-right:0}.order-shipping-wrapper[_ngcontent-%COMP%] > div.order-history-code[_ngcontent-%COMP%]{border-right:1px solid rgba(0,0,0,.1);flex:0 0 50%;padding-left:0}}.order-shipping-wrapper[_ngcontent-%COMP%] .order-item-extra[_ngcontent-%COMP%]{font-size:14px;line-height:20px;letter-spacing:normal;padding-top:2px;padding-bottom:2px}.order-shipping-wrapper[_ngcontent-%COMP%] .info-label[_ngcontent-%COMP%]{font-size:10px;line-height:12px;letter-spacing:.02em;padding-top:2px;padding-bottom:2px;text-transform:uppercase}@media all and (min-width:992px){.order-shipping-wrapper[_ngcontent-%COMP%] .info-label[_ngcontent-%COMP%]{font-size:12px;line-height:14px;letter-spacing:.02em;padding-top:1px;padding-bottom:1px}}.order-shipping-wrapper[_ngcontent-%COMP%] .info-label[_ngcontent-%COMP%]{font-weight:400;color:#0000008c}.order-shipping-wrapper[_ngcontent-%COMP%] .info-value[_ngcontent-%COMP%]{font-size:14px;line-height:20px;letter-spacing:normal;padding-top:2px;padding-bottom:2px;font-family:Source Sans Pro,sans-serif;font-weight:600;-webkit-font-smoothing:antialiased}.order-shipping-wrapper[_ngcontent-%COMP%] .info-value[_ngcontent-%COMP%]{text-align:right}@media all and (min-width:992px){.order-shipping-wrapper[_ngcontent-%COMP%] .info-value[_ngcontent-%COMP%]{text-align:left}}"]})}return t})();var wi=t=>({id:t}),Ai=t=>({cart:t,editable:!1});function ki(t,u){}function Bi(t,u){if(t&1&&(o(0,"div",0)(1,"h2",1)(2,"span"),p(3),a(4,"cxTranslate"),c(),o(5,"span",2),p(6),a(7,"cxTranslate"),c()(),o(8,"div",3),f(9,ki,0,0,"ng-template",4),c()()),t&2){let e=m(),n=I(0);i(3),w(s(4,4,"order_history.order_summary")),i(3),w(B(7,6,"order_history.order_id",k(9,wi,n.code))),i(3),l("cxOutlet",e.CartTotalsOutlets.ORDER_INFO.id)("cxOutletContext",e.CartTotalsOutlets.ORDER_INFO.data(k(11,Ai,n)))}}var rn=(()=>{class t{orderDetailsService=v($);order$=this.orderDetailsService.getOrderDetails();CartTotalsOutlets=ce;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=E({type:t,selectors:[["trn-account-order-summary"]],decls:3,vars:4,consts:[[1,"order-summary"],[1,"title"],[1,"order-id"],[1,"order-info"],[3,"cxOutlet","cxOutletContext"]],template:function(n,r){if(n&1&&(P(0),a(1,"async"),h(2,Bi,10,13,"div",0)),n&2){let d=L(s(1,1,r.order$));
1i(2),O(d?2:-1)}},dependencies:[V,K,ie,S,D],styles:[".order-summary[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:16px 0}.order-summary[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:16px;line-height:22px;letter-spacing:normal;padding-top:1px;padding-bottom:1px}@media all and (min-width:992px){.order-summary[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:16px;line-height:28px;letter-spacing:normal;padding-top:2px;padding-bottom:2px}}.order-summary[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif;font-weight:600;-webkit-font-smoothing:antialiased}.order-summary[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#000000bf}.order-summary[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .order-id[_ngcontent-%COMP%]{color:#0000008c;font-weight:400}.order-summary[_ngcontent-%COMP%] .order-info[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.1);background:#f2f1f0;border-radius:12px;padding:12px;margin-bottom:32px}"]})}return t})();var Ya=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ge({type:t});static \u0275inj=ue({providers:[Me({cmsComponents:{[Gt]:{component:Wt},[jt]:{component:Kt},[Ut]:{component:Xt},[Ht]:{component:en},[Nt]:{component:nn},[qt]:{component:rn}}}),{provide:je,useExisting:Zt}]})}return t})();export{Ya as TrnOrderDetailsModule};
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.