PageSourceSearch

https://www.tax-free.no/chunk-PY6PYDSP.js

js tax-free.no collected 2026-10-06 15:02:11 UTC 33,750 bytes, 1 lines download raw bytes

1import{a as tt,b as nt,c as it}from"./chunk-6YKN4E45.js";import{a as Ke}from"./chunk-MRAS7XHC.js";import{a as et}from"./chunk-OQPIAQVI.js";import{k as Je}from"./chunk-ILI25QL5.js";import{a as Qe,b as Ye}from"./chunk-VQKY2NPK.js";import{a as Ze,b as We}from"./chunk-TVHZO7RU.js";import{c as Xe}from"./chunk-KJM33COJ.js";import{a as qe}from"./chunk-CET37L2M.js";import{a as Ue}from"./chunk-UIOFS4XU.js";import{a as je}from"./chunk-TZS2LQVB.js";import"./chunk-R3P2OCTJ.js";import"./chunk-PIMGQGZW.js";import"./chunk-NES6NM4Y.js";import"./chunk-GGT5KUYE.js";import"./chunk-KCDXV7MU.js";import"./chunk-JDKAMGUB.js";import"./chunk-HTWPRUVQ.js";import{f as Ge}from"./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{a as Ve}from"./chunk-ETUAYI3G.js";import"./chunk-XUPYV42H.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 Y,g as Ae,h as Ne}from"./chunk-3GQXY7WQ.js";import"./chunk-U6HR6JGF.js";import"./chunk-GJK2E2S6.js";import"./chunk-QIWZL5RQ.js";import"./chunk-MOINSKK7.js";import{G as ce}from"./chunk-SU7S3GV3.js";import"./chunk-3KYWNODB.js";import{a as le}from"./chunk-LCAEI3KW.js";import{d as V}from"./chunk-NOYQY4IF.js";import"./chunk-ME6REO5O.js";import"./chunk-RPX352E4.js";import{a as D}from"./chunk-CIDLE6M4.js";import{a as oe}from"./chunk-XFNOPY4D.js";import"./chunk-SD2GF6LN.js";import"./chunk-VCI6DQU6.js";import"./chunk-ELFTTI6P.js";import"./chunk-DFKOY57W.js";import{g as Q}from"./chunk-3OSB33KW.js";import"./chunk-DL3JVWPO.js";import"./chunk-XERX3YYW.js";import"./chunk-AUTQTPL7.js";import{a as De}from"./chunk-4Z5MUJO3.js";import{a as ze}from"./chunk-A3QLZGQA.js";import{V as ae,X as de}from"./chunk-LJH5OBMW.js";import{Ag as U,Bg as W,Eb as C,F as _e,Fb as Le,Fc as S,Gb as x,Gc as ye,Ge as Be,Hb as He,J as ge,Ja as Ce,Jb as F,Jc as a,Kb as R,Kc as l,Lb as p,Lc as I,Mb as o,Mc as ke,Mh as B,Nb as d,Nc as he,Nh as z,Ob as b,Sb as q,Sc as G,Tb as j,Tc as $,V as E,Vb as T,Xb as y,Z as J,Zb as s,a as be,aa as ve,ca as K,cb as r,d as pe,fa as Te,ga as ue,he as Fe,ie as Oe,jc as X,ka as Se,kc as ee,lc as xe,ma as Ie,mc as m,nc as h,nd as ne,ob as k,oc as v,od as ie,pb as we,pc as te,ra as Ee,se as re,sg as Z,tb as A,u as M,ua as g,v as me,vc as w,wc as L,xc as u,xe as Re,ya as O,ye as $e,za as P,zc as fe}from"./chunk-PMSJWPYZ.js";import{h as Me}from"./chunk-NIF3MU5U.js";var rt=Me(De());var ot=t=>({stage:t}),at=(t,c)=>c.stage,mt=(t,c)=>c.value;function _t(t,c){if(t&1){let e=T();o(0,"div",3)(1,"trn-select",10),a(2,"cxTranslate"),a(3,"cxTranslate"),y("onChange",function(i){O(e);let _=s();return P(_.changeSorting(i.value))}),d()()}if(t&2){s();let e=u(0),n=u(2);r(),p("label",l(2,5,"order_history.sort.label")+":")("placeholder",l(3,7,"order_history.sort.sort_by"))("panelWidth",null)("value",n)("list",e)}}function gt(t,c){if(t&1&&(o(0,"li"),b(1,"trn-link",11),a(2,"cxTranslate"),a(3,"async"),o(4,"span"),m(5),d()()),t&2){let e=c.$implicit,n=s(2),i=u(6);r(),p("label",l(2,6,"order_history.stage."+e.stage))("color",i===e.stage?"primary":"secondary")("underline",i===e.stage)("ariaPressed",(i===e.stage)+"")("queryParams",l(3,8,n.getQueryParams$("stage",e.stage))),r(4),h(e.count)}}function ut(t,c){if(t&1&&(o(0,"ul",4)(1,"li"),b(2,"trn-link",11),a(3,"cxTranslate"),a(4,"async"),o(5,"span"),m(6),d()(),F(7,gt,6,10,"li",null,at),d()),t&2){let e=s(),n=u(4),i=u(6),_=u(8);r(2),p("label",l(3,6,"order_history.stage.ALL"))("color",i?"secondary":"primary")("underline",!i)("ariaPressed",!i+"")("queryParams",l(4,8,e.getQueryParams$("stage",null))),r(4),h(_),r(),R(n)}}function Ct(t,c){if(t&1){let e=T();o(0,"li",15),y("click",function(){let i=O(e).$implicit,_=s(3);return P(_.changeSorting(i.value))}),o(1,"a",16),a(2,"async"),o(3,"span",17),m(4),a(5,"cxTranslate"),d()()()}if(t&2){let e=c.$implicit,n=s(3),i=u(2);X("selected",i===e.value),r(),p("routerLink",".")("queryParams",l(2,5,n.getQueryParams$("sort",e.value))),r(3),h(l(5,7,e.viewValue))}}function xt(t,c){if(t&1&&(o(0,"ul",13),F(1,Ct,6,9,"li",14,mt),d()),t&2){s(2);let e=u(0);r(),R(e)}}function ft(t,c){if(t&1&&(o(0,"details",7)(1,"summary",12),m(2),a(3,"cxTranslate"),a(4,"cxTranslate"),d(),A(5,xt,3,0,"ng-template",null,0,he),d()),t&2){s();let e=u(2);r(2),te(" ",l(3,2,"order_history.sort.label"),": ",l(4,4,"order_history.sort."+e)," ")}}function yt(t,c){if(t&1&&(o(0,"li")(1,"a",16),a(2,"async"),o(3,"span",17),m(4),a(5,"cxTranslate"),d(),o(6,"span"),m(7),d()()()),t&2){let e=c.$implicit,n=s(3),i=u(6);X("selected",i===e.stage),r(),p("routerLink",".")("queryParams",l(2,6,n.getQueryParams$("stage",e.stage))),r(3),h(l(5,8,"order_history.stage."+e.stage)),r(3),h(e.count)}}function ht(t,c){if(t&1&&(o(0,"ul",13)(1,"li")(2,"a",16),a(3,"async"),o(4,"span",17),m(5),a(6,"cxTranslate"),d(),o(7,"span"),m(8),d()()(),F(9,yt,8,10,"li",14,at),d()),t&2){let e=s(2),n=u(4),i=u(6),_=u(8);r(),X("selected",!i),r(),p("routerLink",".")("queryParams",l(3,6,e.getQueryParams$("stage",null))),r(3),h(l(6,8,"order_history.stage.ALL")),r(3),h(_),r(),R(n)}}function Ot(t,c){if(t&1&&(o(0,"details",7)(1,"summary",12),m(2),a(3,"cxTranslate"),a(4,"cxTranslate"),a(5,"cxTranslate"),d(),A(6,ht,11,10,"ng-template",null,0,he),d()),t&2){s();let e=u(6);r(2),v(" ",e?I(4,3,"order_history.show_stages",S(8,ot,l(3,1,"order_history.stage."+e))):l(5,6,"order_history.stage.ALL")," ")}}var dt=(()=>{class t{modalService=g(V);activatedRoute=g(re);
1routingService=g(Z);orderHistoryFacade=g(Y);modalId=$((0,rt.uniqueId)("historyFilters"));orderHistoryList$;sorts$;stages$;allStagesCount$;currentSort$=this.activatedRoute.queryParamMap.pipe(M(e=>e.get("sort")),E());currentStage$=this.activatedRoute.queryParamMap.pipe(M(e=>e.get("stage")),E());ngOnInit(){this.orderHistoryList$=this.orderHistoryFacade.getOrderHistoryList(5),this.sorts$=this.orderHistoryList$.pipe(M(e=>e?.sorts||[]),M(e=>e.map(n=>({value:n.code,viewValue:n.name?n.name:"order_history.sort."+n.code,translate:!n.name})))),this.stages$=this.orderHistoryList$.pipe(M(e=>e?.stages||[])),this.allStagesCount$=this.stages$.pipe(M(e=>e.reduce((n,i)=>n+(i.count??0),0)),E(),K({bufferSize:1,refCount:!0}))}ngOnDestroy(){this.orderHistoryFacade.clearOrderList()}changeSorting(e){this.activatedRoute.queryParams.pipe(J()).subscribe(n=>this.routingService.go([],{relativeTo:this.activatedRoute,queryParams:Object.assign({},n,{sort:e}),replaceUrl:!1}))}getQueryParams$(e,n){return this.activatedRoute.queryParams.pipe(M(i=>Object.assign({},i,{[e]:n})))}open(){this.modalService.open(this.modalId())}close(){this.modalService.close(this.modalId())}onSubmit(){this.modalService.close(this.modalId())}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=k({type:t,selectors:[["trn-order-history-filters"]],inputs:{modalId:[1,"modalId"]},decls:26,vars:48,consts:[["content",""],[1,"mobile-filters-modal-button",3,"click","color","icon","size","iconPlacement","fill","label"],[1,"order-history-filters"],[1,"order-history-sorting"],[1,"order-history-staging"],[3,"identifier","closable","padding","title"],["trn-accordion","","size","large","inset",""],["trn-accordion-item",""],["footer",""],[3,"onClick","size","color","fill","label"],["type","simple","name","sortCode",3,"onChange","label","placeholder","panelWidth","value","list"],["size","medium","url",".",3,"label","color","underline","ariaPressed","queryParams"],["trn-accordion-trigger",""],[1,"item-content"],[3,"selected"],[3,"click"],[3,"routerLink","queryParams"],[1,"check"]],template:function(n,i){if(n&1&&(w(0),a(1,"async"),w(2),a(3,"async"),w(4),a(5,"async"),w(6),a(7,"async"),w(8),a(9,"async"),o(10,"trn-button",1),a(11,"cxTranslate"),y("click",function(){return i.open()}),d(),o(12,"div",2),C(13,_t,4,9,"div",3),C(14,ut,9,10,"ul",4),d(),o(15,"trn-modal",5),a(16,"cxTranslate"),q(17,0),o(18,"div",6),C(19,ft,7,6,"details",7),C(20,Ot,8,10,"details",7),d(),j(),q(21,8),o(22,"trn-button",9),a(23,"cxTranslate"),a(24,"lowercase"),a(25,"cxTranslate"),y("onClick",function(){return i.onSubmit()}),d(),j(),d()),n&2){let _=L(l(1,20,i.sorts$));r(2),L(l(3,23,i.currentSort$)),r(2);let H=L(l(5,26,i.stages$));r(2);let f=L(l(7,29,i.currentStage$));r(2),L(l(9,32,i.allStagesCount$)),r(2),ee("outlined"),p("color","secondary")("icon","tune")("size","medium")("iconPlacement","icon-right")("fill",!0)("label",l(11,35,"order_history.filter_sort")),r(3),x(_?13:-1),r(),x(H?14:-1),r(),p("identifier",i.modalId())("closable",!1)("padding",!1)("title",l(16,37,"order_history.filter_sort")),r(4),x(_?19:-1),r(),x(H?20:-1),r(2),p("size","medium")("color","primary")("fill",!0)("label",I(25,43,"order_history.show_orders",S(46,ot,f?l(24,41,l(23,39,"order_history.stage."+f)):"all")))}},dependencies:[z,D,Ge,oe,le,$e,Re,it,tt,nt,ne,B,ie],styles:['.mobile-filters-modal-button[_ngcontent-%COMP%]{margin-bottom:16px;display:block}.mobile-filters-modal-button[_ngcontent-%COMP%]     .button{border-color:#000}@media all and (min-width:992px){.mobile-filters-modal-button[_ngcontent-%COMP%]{display:none}}.order-history-filters[_ngcontent-%COMP%]{display:none}@media all and (min-width:992px){.order-history-filters[_ngcontent-%COMP%]{display:block}.order-history-filters[_ngcontent-%COMP%]   .order-history-sorting[_ngcontent-%COMP%]{margin:0 16px}.order-history-filters[_ngcontent-%COMP%]   .order-history-staging[_ngcontent-%COMP%]{padding:8px 12px;background:#f2f1f0;border:1px solid rgba(0,0,0,.1);border-radius:12px;margin:16px 0}.order-history-filters[_ngcontent-%COMP%]   .order-history-staging[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:8px 0}.order-history-filters[_ngcontent-%COMP%]   .order-history-staging[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px;line-height:20px;letter-spacing:normal;padding-top:2px;padding-bottom:2px}.order-history-filters[_ngcontent-%COMP%]   .order-history-staging[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#0000008c}}.item-content[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-size:16px;line-height:22px;letter-spacing:normal;padding-top:1px;padding-bottom:1px}@media all and (min-width:576px){.item-content[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-size:16px;line-height:28px;letter-spacing:normal;padding-top:2px;padding-bottom:2px}}@media all and (min-width:992px){.item-content[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-size:18px;line-height:32px;letter-spacing:normal;padding-top:0;padding-bottom:0}}.item-content[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin:8px 0;cursor:pointer}.item-content[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px;line-height:20px;letter-spacing:normal;padding-top:2px;padding-bottom:2px}.item-content[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#0000008c}.item-content[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .check[_ngcontent-%COMP%]{font-size:16px;line-height:22px;letter-spacing:normal;padding-top:1px;padding-bottom:1px}@media all and (min-width:576px){.item-content[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .check[_ngcontent-%COMP%]{font-size:16px;line-height:28px;letter-spacing:normal;padding-top:2px;padding-bottom:2px}}@media all and (min-width:992px){.item-content[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .check[_ngcontent-%COMP%]{font-size:18px;line-height:32px;letter-spacing:normal;padding-top:0;padding-bottom:0}}.item-content[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .check[_ngcontent-%COMP%]{color:#000;display:flex;align-items:center}.item-content[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .check[_ngcontent-%COMP%]:before{content:"";outline:1px solid #000000;border:2px solid #ffffff;border-radius:99px;width:16px;height:16px;display:inline-block;margin-right:4px}.item-content[_ngcontent-%COMP%]   li.selected[_ngcontent-%COMP%]   .check[_ngcontent-%COMP%]:before{background:#007a48;outline-color:#007a48}']})}return t})();var N=Me(De());var Pt=t=>({order:t});function Mt(t,c){if(t&1){let e=T();o(0,"trn-modal",0),a(1,"cxTranslate"),q(2,1),b(3,"trn-icon",2),o(4,"h3"),m(5),a(6,"cxTranslate"),d(),o(7,"div")(8,"span"),m(9),a(10,"cxTranslate"),d()(),j(),q(11,3),o(12,"trn-button",4),a(13,"cxTranslate"),y("onClick",function(){O(e);let i=s();return P(i.closeModal())}),d(),o(14,"trn-button",4),a(15,"cxTranslate"),y("onClick",function(){O(e);let i=s();return P(i.cancelOrder())}),d(),j(),d()}if(t&2){let e=s();p("title",l(1,12,"order_history.cancel_order"))("identifier",e.modalId()),r(5),v(" ",I(6,14,"order_history.are_you_sure_you_want_to_cancel_order",S(23,Pt,e.orderId()))," "),r(4),v(" ",l(10,17,"order_history.once_you_cancel_your_order")," "),r(3),p("label",l(13,19,"common.back"))("size","medium")("color","secondary")("fill",!0),r(2),p("label",l(15,21,"order_history.cancel_order"))("size","medium")("color","tertiary")("fill",!0)}}var lt=(()=>{class t{modalService=g(V);orderHistoryFacade=g(Y);globalMessageService=g(U);orderId=$.required();orderEntries=$.required();modalId=$.required();onCancel=G();cancelOrder(){if(!this.orderId()||!this.orderEntries()){this.errorMessage();return}this.orderHistoryFacade.cancelOrder(this.orderId(),this.orderEntries()),this.orderHistoryFacade.getCancelOrderSuccess().pipe(J(Boolean)).subscribe(()=>this.onSuccessCancel())}closeModal(){this.modalService.close(this.modalId())}onSuccessCancel(){this.orderHistoryFacade.resetCancelOrderProcessState(),this.globalMessageService.add({key:"order_history.order_has_been_canceled",params:{orderCode:this.orderId()}},W.MSG_TYPE_CONFIRMATION),this.onCancel.emit(),this.closeModal()}errorMessage(){this.globalMessageService.add({key:"httpHandlers.actionCanNotBeDone"},W.MSG_TYPE_ERROR)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=k({type:t,selectors:[["trn-order-cancel-modal"]],inputs:{orderId:[1,"orderId"],orderEntries:[1,"orderEntries"],modalId:[1,"modalId"]},outputs:{onCancel:"onCancel"},decls:1,vars:1,consts:[["paddingSize","large",1,"warning-modal",3,"title","identifier"],["content",""],["icon","warning",1,"icon-warning"],["footer",""],[3,"onClick","label","size","color","fill"]],template:function(n,i){n&1&&C(0,Mt,16,25,"trn-modal",0),n&2&&x(i.modalId()?0:-1)},dependencies:[z,le,Q,D,B],encapsulation:2})}return t})();var vt=t=>({id:t}),Tt=t=>({order:t});function St(t,c){if(t&1&&(o(0,"span"),b(1,"trn-icon",14),o(2,"span"),m(3),d()()),t&2){let e=s(2);xe(fe("order-payment-label text-xs-small payment-",e.order().paymentMode.code)),r(),p("icon",e.order().paymentMode.code==="payinstore"?"flight":"done"),r(2),h(e.order().paymentMode.name)}
1}function It(t,c){if(t&1&&m(0),t&2){let e=s(2);v(" (",e.order().pointOfService.flightDirections[0].name,") ")}}function Et(t,c){if(t&1&&b(0,"trn-order-product-card",16),t&2){let e=s().$implicit;p("entry",e)}}function wt(t,c){if(t&1&&C(0,Et,1,1,"trn-order-product-card",16),t&2){let e=c.$implicit;x(e?0:-1)}}function Lt(t,c){if(t&1&&(o(0,"div",8)(1,"trn-carousel",15),F(2,wt,1,1,null,null,He),d()()),t&2){let e=s(2);r(2),R(e.order().entries)}}function Ht(t,c){}function kt(t,c){if(t&1){let e=T();o(0,"trn-button",19),a(1,"cxTranslate"),y("onClick",function(){O(e);let i=s(3);return P(i.cancelOrder())}),d()}t&2&&p("label",l(1,6,"order_history.cancel_order"))("icon","cancel")("iconPlacement","icon-right")("size","small")("color","secondary")("fill",!0)}function Ft(t,c){if(t&1&&(A(0,Ht,0,0,"ng-template",17),C(1,kt,2,8,"trn-button",18)),t&2){let e=s(2);p("cxOutlet",e.OrderEditOutlets.EDIT_BUTTON.id)("cxOutletContext",e.OrderEditOutlets.EDIT_BUTTON.data(S(3,Tt,e.order()))),r(),x(e.order().cancellable?1:-1)}}function Rt(t,c){if(t&1){let e=T();o(0,"trn-button",20),a(1,"cxTranslate"),y("onClick",function(){O(e);let i=s(2);return P(i.repeatOrder())}),d()}t&2&&p("label",l(1,6,"order_history.order_again"))("icon","refresh")("iconPlacement","icon-right")("size","small")("color","secondary")("fill",!0)}function $t(t,c){if(t&1){let e=T();o(0,"trn-button",20),a(1,"cxTranslate"),y("onClick",function(){O(e);let i=s(2);return P(i.productList())}),d()}t&2&&p("label",l(1,6,"cart.see_products"))("icon","visibility")("iconPlacement","icon-right")("size","small")("color","secondary")("fill",!0)}function Bt(t,c){if(t&1){let e=T();o(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3",3),m(4),a(5,"cxTranslate"),d(),o(6,"div",4),m(7),a(8,"cxTranslate"),o(9,"span"),a(10,"lowercase"),m(11),a(12,"cxTranslate"),d()()(),o(13,"div")(14,"h4",5),m(15),a(16,"cxTranslate"),d(),o(17,"p",6),m(18),o(19,"span"),m(20),d()(),o(21,"div"),C(22,St,4,5,"span",7),d()(),o(23,"div")(24,"h4",5),m(25),a(26,"cxTranslate"),d(),o(27,"p",6),m(28),a(29,"trnDate"),d()(),o(30,"div")(31,"h4",5),m(32),a(33,"cxTranslate"),d(),o(34,"p",6),m(35),C(36,It,1,1),d()()(),C(37,Lt,4,0,"div",8),o(38,"div",9)(39,"trn-link",10),a(40,"cxTranslate"),y("click",function(){O(e);let i=s();return P(i.reportProblem())}),d(),o(41,"div",11),C(42,Ft,2,5),C(43,Rt,2,8,"trn-button",12)(44,$t,2,8,"trn-button",12),b(45,"trn-button",13),a(46,"cxTranslate"),d()()()}if(t&2){let e,n,i,_,H,f=s();r(4),h(I(5,27,"order_history.order_id",S(50,vt,f.order().code))),r(3),te(" ",(e=f.order().entries)==null?null:e.length," ",l(8,30,"order_history.products")," "),r(2),xe(fe("order-stage text-base ",l(10,32,f.order().stage))),r(2),h(l(12,34,"order_history.stage."+f.order().stage)),r(4),h(l(16,36,"order_history.total")),r(3),v(" ",(n=f.order().totalDisplayPrice)==null?null:n.formattedValue," "),r(2),h((i=f.order().totalDisplayPrice)==null?null:i.currencyIso),r(2),x(f.order().paymentMode?22:-1),r(3),v(" ",l(26,38,"order_history.pickup_date_time")," "),r(3),v(" ",ke(29,40,f.order().deliveryDate,"d MMMM y, HH:mm","Europe/Oslo")," "),r(4),h(l(33,44,"order_history.pickup_location")),r(3),v(" ",(_=f.order().pointOfService)==null||_.airport==null?null:_.airport.name," "),r(),x(((H=f.order().pointOfService)==null?null:H.flightDirections.length)>0?36:-1),r(),x(f.order().entries?37:-1),r(2),p("label",l(40,46,"order_history.report_a_problem")),r(3),x(f.cartFeatureAvailable?42:-1),r(),x(f.order().stage==="FULFILLED"||f.order().stage==="CANCELLED"?43:44),r(2),p("label",l(46,48,"order_history.see_order_details"))("icon","arrow_forward")("iconPlacement","icon-right")("size","small")("appearance","link")("fill",!0)("url","/my-account/order/"+f.order().code)}}var ct=(()=>{class t{routing=g(Z);reorderOrderFacade=g(Ne);routingService=g(Z);globalMessageService=g(U);modalService=g(V);activeCartService=g(ce);order=$.required();sendReportProblem=G();editProductList=G();onCancelOrder=G();cartFeatureAvailable=!ze.disableCart;OrderEditOutlets=Qe;cart$=this.activeCartService.getActive();reportProblem(){this.sendReportProblem.emit(this.order().code)}productList(){this.editProductList.emit(this.order().code)}repeatOrder(){this.reorderOrderFacade.moveOrderToCart(this.order().code).subscribe({next:()=>this.routingService.go({cxRoute:"cart"}),error:()=>this.globalMessageService.add({key:"httpHandlers.actionCanNotBeDone"},W.MSG_TYPE_ERROR)})}cancelOrder(){this.onCancelOrder.emit(this.order())}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=k({type:t,selectors:[["trn-order-history-item"]],inputs:{order:[1,"order"]},outputs:{sendReportProblem:"sendReportProblem",editProductList:"editProductList",onCancelOrder:"onCancelOrder"},decls:1,vars:1,consts:[[1,"order-history-item"],[1,"order-item-info"],[1,"order-history-code"],[1,"heading-3"],[1,"order-item-extra","text-small"],[1,"info-label","text-all-caps-small"],[1,"info-value","text-xs-small-heavy"],[3,"class"],[1,"order-history-products"],[1,"order-history-actions"],["appearance","button","size","small",3,"click","label"],[1,"buttons-wrap"],[3,"label","icon","iconPlacement","size","color","fill"],[3,"label","icon","iconPlacement","size","appearance","fill","url"],[1,"icon",3,"icon"],["fade","",1,"order-entries-carousel"],[3,"entry"],[3,"cxOutlet","cxOutletContext"],[1,"cancel-order-button",3,"label","icon","iconPlacement","size","color","fill"],[1,"cancel-order-button",3,"onClick","label","icon","iconPlacement","size","color","fill"],[3,"onClick","label","icon","iconPlacement","size","color","fill"]],template:function(n,i){n&1&&C(0,Bt,47,52,"div",0),n&2&&x(i.order()?0:-1)},dependencies:[z,Q,oe,D,de,ae,Xe,et,B,ie,je],styles:[".order-history-item[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.1);border-radius:12px;margin-bottom:16px}.order-item-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:12px}.order-item-info[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-bottom:1px solid rgba(0,0,0,.1);padding:12px 0;display:flex;justify-content:space-between}.order-item-info[_ngcontent-%COMP%] > div.order-history-code[_ngcontent-%COMP%]{border:none;display:block}@media all and (min-width:576px){.order-item-info[_ngcontent-%COMP%]{justify-content:space-between;flex-direction:row}.order-item-info[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-right:1px solid rgba(0,0,0,.1);border-bottom:none;padding:0 12px;flex:1 1 20%;display:block}.order-item-info[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{border:none;padding-right:0}.order-item-info[_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-item-info[_ngcontent-%COMP%]   .info-label[_ngcontent-%COMP%]{color:#0000008c;font-weight:400}.order-item-info[_ngcontent-%COMP%]   .info-value[_ngcontent-%COMP%]{text-align:right}@media all and (min-width:576px){.order-item-info[_ngcontent-%COMP%]   .info-value[_ngcontent-%COMP%]{text-align:left}}.order-item-info[_ngcontent-%COMP%]   .order-stage[_ngcontent-%COMP%]{padding:0 4px;background:#e6ecfa none;color:#101838;border-radius:4px}.order-item-info[_ngcontent-%COMP%]   .order-stage.fulfilled[_ngcontent-%COMP%]{background-color:#e0ece4;color:#0c2113}.order-item-info[_ngcontent-%COMP%]   .order-stage.canceled[_ngcontent-%COMP%]{background-color:#f8dfdf;color:#340b0b}.order-item-info[_ngcontent-%COMP%]   .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-item-info[_ngcontent-%COMP%]   .order-payment-label[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{height:16px;width:auto;font-size:16px}.order-item-info[_ngcontent-%COMP%]   .order-payment-label[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]     img{height:16px;width:auto}.order-item-info[_ngcontent-%COMP%]   .order-payment-label.payment-payinstore[_ngcontent-%COMP%]{background:#e7e5e5 none;
1color:#1a1919}.order-history-products[_ngcontent-%COMP%]{background:#f2f1f0;border-top:1px solid rgba(0,0,0,.1);padding:12px}.order-history-products[_ngcontent-%COMP%]   .order-entries-carousel[_ngcontent-%COMP%]{--trn-carousel-slides: 2;--trn-carousel-fade-size: 0;--trn-carousel-fade-color: #f2f1f0}@media all and (min-width:992px){.order-history-products[_ngcontent-%COMP%]   .order-entries-carousel[_ngcontent-%COMP%]{--trn-carousel-slides: 3;--trn-carousel-fade-size: 48px}}.order-history-actions[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.1);padding:12px;display:flex;flex-direction:column-reverse;align-items:center;gap:8px}.order-history-actions[_ngcontent-%COMP%]   .buttons-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}@media all and (max-width:991px){.order-history-actions[_ngcontent-%COMP%]   .buttons-wrap[_ngcontent-%COMP%]{width:100%}.order-history-actions[_ngcontent-%COMP%]   .buttons-wrap[_ngcontent-%COMP%]   trn-button[_ngcontent-%COMP%]{flex:1}}@media all and (min-width:992px){.order-history-actions[_ngcontent-%COMP%]   .buttons-wrap[_ngcontent-%COMP%]{flex-direction:row}}@media all and (min-width:992px){.order-history-actions[_ngcontent-%COMP%]{justify-content:space-between;flex-direction:row;gap:12px}}"],changeDetection:0})}return t})();var zt=(t,c)=>({orderId:t,modalId:c}),st=t=>({total:t}),Dt=(t,c)=>({length:t,total:c}),Vt=t=>({size:t}),At=(t,c)=>c.code;function Nt(t,c){if(t&1){let e=T();o(0,"trn-order-history-item",8),y("sendReportProblem",function(){let i=O(e).$implicit,_=s(2);return P(_.openReport(i.code))})("editProductList",function(){let i=O(e).$implicit,_=s(2);return P(_.openProductList(i.code))})("onCancelOrder",function(i){O(e);let _=s(2);return P(_.openCancelOrderModal(i))}),d()}if(t&2){let e=c.$implicit;p("order",e)}}function qt(t,c){if(t&1){let e=T();o(0,"trn-button",10),a(1,"cxTranslate"),y("click",function(){O(e);let i=s(3);return P(i.nextPage())}),d()}if(t&2){let e=s(3);p("size","large")("fill",!0)("label",I(1,3,"order_history.load_more",S(6,Vt,e.PAGE_SIZE)))}}function jt(t,c){if(t&1&&(o(0,"div",7)(1,"p"),m(2),a(3,"cxTranslate"),d(),C(4,qt,2,8,"trn-button",9),d()),t&2){s(2);let e=u(0),n=u(2);r(2),v(" ",I(3,2,"order_history.of_orders",ye(5,Dt,e.length,n.totalResults))," "),r(2),x(e.length!==n.totalResults?4:-1)}}function Gt(t,c){if(t&1&&(o(0,"p",5),m(1),a(2,"cxTranslate"),d(),F(3,Nt,1,1,"trn-order-history-item",6,At),C(5,jt,5,8,"div",7)),t&2){s();let e=u(0),n=u(2);r(),v(" ",I(2,2,"order_history.total_result_orders",S(5,st,n.totalResults))," "),r(2),R(e),r(2),x(n.totalPages>1?5:-1)}}function Ut(t,c){if(t&1&&b(0,"trn-remember-info-cart",13),t&2){s();let e=u(9);p("cart",e)}}function Qt(t,c){if(t&1&&(o(0,"p",5),m(1),a(2,"cxTranslate"),d(),o(3,"div",11)(4,"div"),b(5,"trn-icon",12),o(6,"h3"),m(7),a(8,"cxTranslate"),d(),w(9),a(10,"async"),C(11,Ut,1,1,"trn-remember-info-cart",13),b(12,"trn-button",14),a(13,"cxTranslate"),d()()),t&2){let e=s(),n=u(2);r(),v(" ",I(2,9,"order_history.total_result_orders",S(19,st,(n==null?null:n.totalResults)||0))," "),r(6),h(l(8,12,"order_history.there_are_no_orders")),r(2);let i=L(l(10,14,e.cart$));r(2),x(i?11:-1),r(),ee("outlined"),p("label",l(13,17,"cart.best_sellers_label"))("fill",!0)("appearance","link")("size","medium")}}function Yt(t,c){t&1&&b(0,"trn-spinner")}function Zt(t,c){}var pt=(()=>{class t{activeCartService=g(ce);actions=g(Fe);modalService=g(V);orderFacade=g(Ae);globalMessageService=g(U);orderHistoryFacade=g(Y);activatedRoute=g(re);cart$=this.activeCartService.getActive();modalReportId=(0,N.uniqueId)("reportProblem");modalProductsId=(0,N.uniqueId)("editProductList");cancelOrderModalId=(0,N.uniqueId)("cancel-order-modal");selectedOrderId=Ce(null);selectedOrderEntries=Ce(null);PAGE_SIZE=5;currentPage$=new pe(0);currentSort$=this.activatedRoute.queryParamMap.pipe(M(e=>e.get("sort")),E());currentStage$=this.activatedRoute.queryParamMap.pipe(M(e=>e.get("stage")),E());orderHistoryList$;orders$;pagination$;isLoaded$=this.orderHistoryFacade.getOrderHistoryListLoaded().pipe(Te(!1));loading$=new pe(!1);OrderReportOutlets=Ye;sub=new be;constructor(){this.sub.add(me({sort:this.currentSort$,stage:this.currentStage$}).pipe(Se(()=>this.currentPage$.next(0)),ue(e=>this.currentPage$.pipe(M(n=>Object.assign({},e,{page:n})))),ge(1)).subscribe(e=>this.fetchOrders(e))),this.sub.add(this.actions.pipe(Oe(Ke)).subscribe(()=>this.loading$.next(!0))),this.sub.add(this.actions.pipe(Oe(Je.LOAD_USER_ORDERS_SUCCESS)).subscribe(()=>this.loading$.next(!1)))}ngOnInit(){this.orderHistoryList$=this.orderHistoryFacade.getOrderHistoryList(this.PAGE_SIZE).pipe(E(N.isEqual),K({bufferSize:1,refCount:!0})),this.orders$=this.loading$.pipe(E(),_e(e=>!e),Ie(me({page:this.currentPage$,sort:this.currentSort$,stage:this.currentStage$})),M(([,e])=>e),E((e,n)=>e.stage===n.stage&&e.sort===n.sort&&e.page<n.page),ue(()=>this.orderHistoryList$.pipe(ge(1),_e(()=>!this.loading$.getValue()),M(e=>e?.orders||[]),E(N.isEqual),ve((e,n)=>e.concat(n),[])))),this.pagination$=this.orderHistoryList$.pipe(M(e=>e?.pagination))}ngOnDestroy(){this.sub.unsubscribe(),this.orderHistoryFacade.clearOrderList()}nextPage(){this.currentPage$.next(this.currentPage$.getValue()+1)}openReport(e){this.selectedOrderId.set(e),this.modalService.open(this.modalReportId)}openProductList(e){this.selectedOrderId.set(e),this.modalService.open(this.modalProductsId)}openCancelOrderModal(e){e?.code&&(this.selectedOrderId.set(e?.code),this.selectedOrderEntries.set({cancellationRequestEntryInput
1s:(e?.entries||[]).map(({entryNumber:n,quantity:i})=>({entryNumber:n,quantity:i}))}),this.modalService.open(this.cancelOrderModalId))}onCancel(){this.currentPage$.next(0),this.orderHistoryFacade.clearOrderList()}fetchOrders(e){this.orderHistoryFacade.loadStagedOrderList(this.PAGE_SIZE,e.page,e.sort,e.stage)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=k({type:t,selectors:[["trn-order-history"]],decls:13,vars:19,consts:[[1,"trn-order-history-wrapper"],[1,"trn-order-history"],[3,"cxOutlet","cxOutletContext"],[3,"modalId","orderId"],[3,"onCancel","modalId","orderId","orderEntries"],[1,"order-total-results"],[3,"order"],[1,"order-history-pagination"],[3,"sendReportProblem","editProductList","onCancelOrder","order"],[1,"pagination-button",3,"size","fill","label"],[1,"pagination-button",3,"click","size","fill","label"],[1,"order-no-found"],["icon","remove_shopping_cart",1,"icon-sent"],[3,"cart"],[1,"icon-banner-button",3,"label","fill","appearance","size"]],template:function(n,i){if(n&1&&(w(0),a(1,"async"),w(2),a(3,"async"),o(4,"div",0)(5,"div",1),C(6,Gt,6,7),a(7,"async"),Le(8,Qt,14,21)(9,Yt,1,0,"trn-spinner"),d()(),A(10,Zt,0,0,"ng-template",2),b(11,"trn-order-details-modal",3),o(12,"trn-order-cancel-modal",4),y("onCancel",function(){return i.onCancel()}),d()),n&2){let _=L(l(1,8,i.orders$));r(2);let H=L(l(3,11,i.pagination$));r(4),x(_&&(H==null?null:H.totalResults)>0?6:l(7,14,i.isLoaded$)?8:9),r(4),p("cxOutlet",i.OrderReportOutlets.REPORT_MODAL.id)("cxOutletContext",i.OrderReportOutlets.REPORT_MODAL.data(ye(16,zt,i.selectedOrderId(),i.modalReportId))),r(),p("modalId",i.modalProductsId)("orderId",i.selectedOrderId()),r(),p("modalId",i.cancelOrderModalId)("orderId",i.selectedOrderId())("orderEntries",i.selectedOrderEntries())}},dependencies:[z,ct,D,Q,qe,de,ae,Ve,Ue,lt,ne,B],styles:[".trn-order-history[_ngcontent-%COMP%]   .order-total-results[_ngcontent-%COMP%]{font-size:14px;line-height:20px;letter-spacing:normal;padding-top:2px;padding-bottom:2px}.trn-order-history[_ngcontent-%COMP%]   .order-total-results[_ngcontent-%COMP%]{margin-bottom:16px;text-align:center}@media all and (min-width:992px){.trn-order-history[_ngcontent-%COMP%]   .order-total-results[_ngcontent-%COMP%]{text-align:left}}.trn-order-history[_ngcontent-%COMP%]   .order-no-found[_ngcontent-%COMP%]{border:1px solid #e7e5e5;border-radius:12px;margin:16px auto;padding:40px;text-align:center}.trn-order-history[_ngcontent-%COMP%]   .order-no-found[_ngcontent-%COMP%]   .icon-sent[_ngcontent-%COMP%]{height:28px;width:auto;font-size:28px}.trn-order-history[_ngcontent-%COMP%]   .order-no-found[_ngcontent-%COMP%]   .icon-sent[_ngcontent-%COMP%]     img{height:28px;width:auto}.trn-order-history[_ngcontent-%COMP%]   .order-no-found[_ngcontent-%COMP%]   .icon-sent[_ngcontent-%COMP%]{margin:16px;color:#0000008c}.trn-order-history[_ngcontent-%COMP%]   .order-no-found[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-family:Ubuntu,sans-serif;font-weight:400;-webkit-font-smoothing:antialiased;font-size:18px;line-height:24px;letter-spacing:normal;padding-top:0;padding-bottom:0}@media all and (min-width:576px){.trn-order-history[_ngcontent-%COMP%]   .order-no-found[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:24px;line-height:32px;letter-spacing:normal;padding-top:0;padding-bottom:0}}@media all and (min-width:992px){.trn-order-history[_ngcontent-%COMP%]   .order-no-found[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:28px;line-height:34px;letter-spacing:normal;padding-top:3px;padding-bottom:3px}}.trn-order-history[_ngcontent-%COMP%]   .order-no-found[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:4px}.trn-order-history[_ngcontent-%COMP%]   .order-no-found[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:16px;line-height:22px;letter-spacing:normal;padding-top:1px;padding-bottom:1px}@media all and (min-width:992px){.trn-order-history[_ngcontent-%COMP%]   .order-no-found[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:16px;line-height:28px;letter-spacing:normal;padding-top:2px;padding-bottom:2px}}
1.trn-order-history[_ngcontent-%COMP%]   .order-no-found[_ngcontent-%COMP%]   .icon-banner-button[_ngcontent-%COMP%]{width:100%;margin:32px auto 0}@media all and (min-width:992px){.trn-order-history[_ngcontent-%COMP%]   .order-no-found[_ngcontent-%COMP%]   .icon-banner-button[_ngcontent-%COMP%]{max-width:240px}}.order-history-pagination[_ngcontent-%COMP%]{text-align:center;display:block}.order-history-pagination[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:14px;line-height:20px;letter-spacing:normal;padding-top:2px;padding-bottom:2px}.order-history-pagination[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#0000008c}.order-history-pagination[_ngcontent-%COMP%]   .pagination-button[_ngcontent-%COMP%]{max-width:332px;width:100%;margin-top:8px;display:inline-block}@media all and (min-width:992px){.trn-order-history-wrapper[_ngcontent-%COMP%]   trn-order-history-filters[_ngcontent-%COMP%]{display:none}}"]})}return t})();var ui=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=we({type:t});static \u0275inj=Ee({providers:[Be({cmsComponents:{[Ze]:{component:pt},[We]:{component:dt}}})]})}return t})();export{ui as TrnOrderHistoryModule};

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.