1import{a as gt}from"./chunk-QURGYCAX.js";import"./chunk-VU4Q5IVW.js";import{a as dt}from"./chunk-G47CW7ZL.js";import{a as mt}from"./chunk-ZE2PQFM2.js";import{a as lt,b as st}from"./chunk-QGBGHIAQ.js";import{a as _t,b as Ct}from"./chunk-EHHYMANC.js";import{a as se}from"./chunk-SYV3PKZK.js";import"./chunk-AJVH4JSO.js";import{a as ot,b as at,c as rt,d as ct,e as pt}from"./chunk-OLJJJJQP.js";import{a as nt}from"./chunk-KRGBYN6V.js";import{a as it}from"./chunk-YLCCDBKQ.js";import"./chunk-J76FQZ2L.js";import"./chunk-3YYKTTRK.js";import"./chunk-YMDDGZ5U.js";import"./chunk-3OL3GXBR.js";import{a as E}from"./chunk-4DAUCYCB.js";import{a as J}from"./chunk-ETUAYI3G.js";import"./chunk-XUPYV42H.js";import"./chunk-7EDV3FYO.js";import"./chunk-OBUWOHWX.js";import"./chunk-AWTSZHSK.js";import"./chunk-KUHFH43V.js";import"./chunk-JC5PZU5R.js";import{d as le,g as fe}from"./chunk-N4SAKXVX.js";import{a as tt}from"./chunk-U6HR6JGF.js";import{a as de}from"./chunk-GJK2E2S6.js";import"./chunk-QIWZL5RQ.js";import"./chunk-MOINSKK7.js";import"./chunk-7OWGJP2F.js";import"./chunk-OT5BIL5I.js";import{a as X}from"./chunk-LCAEI3KW.js";import{d as Z}from"./chunk-NOYQY4IF.js";import"./chunk-ME6REO5O.js";import"./chunk-RPX352E4.js";import{a as $}from"./chunk-CIDLE6M4.js";import{a as z}from"./chunk-XFNOPY4D.js";import{a as Ye}from"./chunk-SD2GF6LN.js";import{a as Ke}from"./chunk-VCI6DQU6.js";import"./chunk-ELFTTI6P.js";import"./chunk-DFKOY57W.js";import{g as A}from"./chunk-3OSB33KW.js";import"./chunk-DL3JVWPO.js";import"./chunk-XERX3YYW.js";import"./chunk-AUTQTPL7.js";import{a as xe}from"./chunk-4Z5MUJO3.js";import"./chunk-A3QLZGQA.js";import{Y as R,c as Je,g as Xe,j as Ze,ja as et}from"./chunk-LJH5OBMW.js";import{$e as Ve,Ad as ze,Ag as Ge,Bg as ue,Cb as Ie,Eb as C,Ec as Be,F as Me,Fc as G,Fd as ce,Gb as g,Gc as Le,Ge as Re,Hb as V,Hc as De,Ja as N,Jb as j,Jc as c,Kb as H,Kc as p,L as ne,Lb as s,Lc as D,Mb as r,Mh as S,Nb as o,Nh as I,Ob as x,Pa as we,Pc as F,Sb as Q,Sf as ge,Tb as W,Tc as v,Ue,Uf as Qe,Vb as T,Xa as ae,Xb as h,Y as Pe,Z as Y,Za as Te,Zb as l,c as he,cb as n,d as ye,ga as ie,jc as re,ka as K,kc as Ee,lf as pe,mc as m,nc as u,n
1d as B,o as ve,ob as b,oc as k,pb as ke,qa as oe,ra as Oe,sb as Se,se as qe,sg as We,u as U,ua as _,uf as je,vc as M,vf as He,wc as w,wd as Ae,we as Ne,xc as f,xe as Fe,ya as P,ye as $e,za as O}from"./chunk-PMSJWPYZ.js";import{h as Ce}from"./chunk-NIF3MU5U.js";function kt(e,d){if(e&1){let t=T();r(0,"div",0)(1,"h2",1),m(2),c(3,"cxTranslate"),o(),r(4,"div",2)(5,"trn-button",3),c(6,"cxTranslate"),c(7,"cxTranslate"),h("onClick",function(){P(t);let a=l();return O(a.prompt())}),o(),r(8,"p",4),m(9),c(10,"cxTranslate"),o(),r(11,"ul",5)(12,"li",6),m(13),c(14,"cxTranslate"),o(),r(15,"li",6),m(16),c(17,"cxTranslate"),o()()()()}e&2&&(n(2),u(p(3,11,"pwa.for_frequent_clients")),n(3),Ee("outlined"),s("ariaLabel",p(6,13,"pwa.add_to_home_screen"))("label",p(7,15,"pwa.add_to_home_screen"))("color","secondary")("fill",!0)("size","small"),n(4),u(p(10,17,"pwa.add_to_home_screen_description")),n(4),u(p(14,19,"pwa.add_to_home_screen_list_element_first")),n(3),u(p(17,21,"pwa.add_to_home_screen_list_element_second")))}var ut=(()=>{class e extends et{static \u0275fac=(()=>{let t;return function(a){return(t||(t=we(e)))(a||e)}})();static \u0275cmp=b({type:e,selectors:[["trn-account-add-to-home-screen"]],features:[Se],decls:2,vars:3,consts:[[1,"container"],[1,"title"],[1,"button-and-description-container"],[1,"add-to-homescreen-button",3,"onClick","ariaLabel","label","color","fill","size"],[1,"description-label"],[1,"description-list"],[1,"description-list-item"]],template:function(i,a){i&1&&(C(0,kt,18,23,"div",0),c(1,"async")),i&2&&g(p(1,1,a.canPrompt$)?0:-1)},dependencies:[I,$,B,S],styles:[".container[_ngcontent-%COMP%] .title[_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;color:#000000bf;margin-bottom:16px}.container[_ngcontent-%COMP%] .button-and-description-container[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.1)}.container[_ngcontent-%COMP%] .button-and-description-container[_ngcontent-%COMP%] .add-to-homescreen-button[_ngcontent-%COMP%]{margin:16px 0}.container[_ngcontent-%COMP%] .button-and-description-container[_ngcontent-%COMP%] .description-label[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .button-and-description-container[_ngcontent-%COMP%] .description-list[_ngcontent-%COMP%]{font-size:14px;line-height:20px;letter-spacing:normal;padding-top:2px;padding-bottom:2px}.container[_ngcontent-%COMP%] .button-and-description-container[_ngcontent-%COMP%] .description-list[_ngcontent-%COMP%]{list-style:disc;padding-inline-start:14px}"]})}return e})();function St(e,d){if(e&1&&(r(0,"p",4),m(1),o()),e&2){let t=l();n(),u(t.subinfo())}}var te=(()=>{class e{iconCode=v();title=v();description=v();subinfo=v();static \u0275fac=function(i){return new(i||e)};static \u0275cmp=b({type:e,selectors:[["trn-frame"]],inputs:{iconCode:[1,"iconCode"],title:[1,"title"],description:[1,"description"],subinfo:[1,"subinfo"]},decls:7,vars:4,consts:[[1,"frame"],[1,"icon",3,"icon"],[1,"title"],[1,"description"],[1,"frame-subinfo"]],template:function(i,a){i&1&&(r(0,"div",0),x(1,"trn-icon",1),r(2,"p",2),m(3),o(),r(4,"p",3),m(5),o()(),C(6,St,2,1,"p",4)),i&2&&(n(),s("icon",a.iconCode()),n(2),u(a.title()),n(2),u(a.description()),n(),g(a.subinfo()?6:-1))},dependencies:[A],styles:[".frame[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.1);border-radius:12px;padding:16px;text-align:center}.frame[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{height:20px;width:auto;font-size:20px}.frame[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img{height:20px;width:auto}.frame[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{opacity:.55}.frame[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:14px;line-height:20px;letter-spacing:normal;padding-top:2px;padding-bottom:2px;font-weight:700;margin:4px auto}.frame[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{font-size:12px;line-height:14px;letter-spacing:normal;padding-top:1px;padding-bottom:1px}.frame-subinfo[_ngcontent-%COMP%]{font-size:12px;line-height:14px;letter-spacing:normal;padding-top:1px;padding-bottom:1px;color:#0000008c;margin:16px 0}"]})}return e})();var xt=Ce(xe());function It(e,d){if(e&1&&(r(0,"a",2),x(1,"trn-icon",7),c(2,"cxTranslate"),o()),e&2){let t=l();s("href",t.walletUrl(),Te),n(),s("icon",p(2,2,"icon.add_to_apple_wallet"))}}function Et(e,d){if(e&1){let t=T();r(0,"trn-link",8),c(1,"cxTranslate"),c(2,"cxTranslate"),h("click",function(){P(t);let a=l();return O(a.zoom())}),o()}e&2&&s("ariaLabel",p(1,2,"link_labels.zoom_in_qr_code"))("label",p(2,4,"account.zoom_in"))}var me=(()=>{class e{modalService=_(Z);winRef=_(Ue);qrdata=v.required();elementType=v("svg");width=v(64);margin=v(0);walletUrl=v();zoomIn=v();modalTitle=v();zoomId=(0,xt.uniqueId)("zoomQRCode");zoom(){this.modalService.open(this.zoomId)}zoomClose(){this.modalService.close(this.zoomId)}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=b({type:e,selectors:[["trn-qr-code"]],inputs:{qrdata:[1,"qrdata"],elementType:[1,"elementType"],width:[1,"width"],margin:[1,"margin"],walletUrl:[1,"w
1alletUrl"],zoomIn:[1,"zoomIn"],modalTitle:[1,"modalTitle"]},decls:8,vars:20,consts:[[1,"qr-code"],[1,"qr-code-image",3,"click","qrdata","errorCorrectionLevel","width","margin","elementType","allowEmptyString"],["target","_blank",1,"wallet-link",3,"href"],["appearance","button","color","primary","icon","zoom_out_map","iconPlacement","icon-left",3,"ariaLabel","label"],[3,"identifier","closable","showFooter","title"],["content",""],[1,"modal-qr-code",3,"qrdata","errorCorrectionLevel","width","margin","elementType","allowEmptyString"],[3,"icon"],["appearance","button","color","primary","icon","zoom_out_map","iconPlacement","icon-left",3,"click","ariaLabel","label"]],template:function(i,a){i&1&&(r(0,"div",0)(1,"qrcode",1),h("click",function(){return a.zoom()}),o(),C(2,It,3,4,"a",2),C(3,Et,3,6,"trn-link",3),o(),r(4,"trn-modal",4),c(5,"cxTranslate"),Q(6,5),x(7,"qrcode",6),W(),o()),i&2&&(n(),s("qrdata",a.qrdata())("errorCorrectionLevel","M")("width",a.width())("margin",a.margin())("elementType",a.elementType())("allowEmptyString",!0),n(),g(a.walletUrl()?2:-1),n(),g(a.zoomIn()?3:-1),n(),s("identifier",a.zoomId)("closable",!1)("showFooter",!1)("title",a.modalTitle()?a.modalTitle():p(5,18,"account.qr_code")),n(3),s("qrdata",a.qrdata())("errorCorrectionLevel","M")("width",264)("margin",a.margin())("elementType",a.elementType())("allowEmptyString",!0))},dependencies:[dt,z,A,X,I,S],styles:[".qr-code[_ngcontent-%COMP%]{display:block;text-align:center;max-width:304px;width:70%;padding:8px 0;margin:0 auto}.qr-code[_ngcontent-%COMP%] .qrcode svg{width:auto;height:auto;min-width:100%}.qr-code[_ngcontent-%COMP%] .qrcode svg path{fill:transparent}.qr-code[_ngcontent-%COMP%] .wallet-link[_ngcontent-%COMP%]{display:flex;height:auto;outline:none;max-width:148px;margin:12px auto 0;padding:8px 0 0}@media all and (min-width:576px){.qr-code[_ngcontent-%COMP%] .wallet-link[_ngcontent-%COMP%]{height:auto}}.qr-code[_ngcontent-%COMP%] .wallet-link .link .link-icon{width:auto;height:auto;margin:0;padding:0;display:block}.qr-code[_ngcontent-%COMP%] .qr-code-image[_ngcontent-%COMP%]{cursor:pointer}.modal-qr-code[_ngcontent-%COMP%]{text-align:center}"]})}return e})();function Bt(e,d){if(e&1&&x(0,"trn-qr-code",4),e&2){let t=l().$implicit;s("qrdata",t.barcode)("zoomIn",!0)("modalTitle",t.couponName)}}function Lt(e,d){if(e&1&&(r(0,"trn-coupon",2),C(1,Bt,1,3,"trn-qr-code",4),o()),e&2){let t=d.$implicit;s("accountCouponsItem",t),n(),g(t.state==="active"?1:-1)}}function Dt(e,d){if(e&1&&x(0,"trn-qr-code",4),e&2){let t=l().$implicit;s("qrdata",t.barcode)("zoomIn",!0)("modalTitle",t.couponName)}}function At(e,d){if(e&1&&(r(0,"trn-coupon",2),C(1,Dt,1,3,"trn-qr-code",4),o()),e&2){let t=d.$implicit;s("accountCouponsItem",t),n(),g(t.state==="active"?1:-1)}}function zt(e,d){if(e&1&&(r(0,"div"),j(1,At,2,2,"trn-coupon",2,V),o()),e&2){l(3);let t=f(6),i=l();n(),H(i.getMoreCoupons(t))}}function qt(e,d){if(e&1){let t=T();r(0,"trn-link",5),c(1,"cxTranslate"),h("click",function(){P(t);let a=l(4);return O(a.showMore())}),o()}e&2&&s("label",p(1,1,"account.show_more_coupons"))}function Nt(e,d){if(e&1&&(r(0,"div"),j(1,Lt,2,2,"trn-coupon",2,V),o(),C(3,zt,3,0,"div")(4,qt,2,3,"trn-link",3)),e&2){l(2);let t=f(6),i=l();n(),H(i.getFirstCoupons(t)),n(2),g(i.showMoreCoupons()?3:4)}}function Ft(e,d){if(e&1&&(x(0,"trn-frame",1),c(1,"cxTranslate"),c(2,"async"),c(3,"cxTranslate")),e&2){let t=l(3);s("description",p(1,2,"account.become_a_tax_free_me_member_to_receive_discounts"))("title",p(3,6,p(2,4,t.hmeIdExist$)?"account.no_coupons":"account.no_coupons_refresh"))}}function $t(e,d){if(e&1&&C(0,Nt,5,1)(1,Ft,4,8,"trn-frame",1),e&2){l();let t=f(6);g(t.length?0:1)}}function Rt(e,d){e&1&&x(0,"trn-spinner")}function Ut(e,d){if(e&1&&(r(0,"div",0)(1,"h3"),m(2),r(3,"span"),m(4),c(5,"async"),o()(),M(6),c(7,"async"),C(8,$t,2,1)(9,Rt,1,0,"trn-spinner"),o()),e&2){let t=l(),i=f(0);n(2),k(" ",i.title," "),n(2),k("(",p(5,3,t.allCoupons$),")"),n(2);let a=w(p(7,5,t.coupons$));n(2),g(a?8:9)}}var ft=(()=>{class e{accountCouponsService=_(st);accountProfileService=_(se);componentData=_(R);viewportScroller=_(Ae);showMoreCoupons=N(!1);allCoupons$=this.accountCouponsService.coupons$.pipe(U(t=>t.length));coupons$=this.accountCouponsService.coupons$;data$=this.componentData.data$;hmeIdExist$=this.accountProfileService.user$.pipe(U(t=>!!t.hmeId));ngAfterViewInit(){setTimeout(()=>{this.viewportScroller.scrollToPosition([0,0])}
1,0)}getFirstCoupons(t){return t?t.slice(0,3):[]}getMoreCoupons(t){return t?t.slice(3,t.length):[]}showMore(){this.showMoreCoupons.set(!this.showMoreCoupons())}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=b({type:e,selectors:[["trn-account-coupons"]],decls:3,vars:4,consts:[[1,"account-coupons"],["iconCode","custom_tag_off",1,"coupons-frame",3,"description","title"],[3,"accountCouponsItem"],["icon","add","iconPlacement","icon-right","appearance","button","size","medium",3,"label"],[3,"qrdata","zoomIn","modalTitle"],["icon","add","iconPlacement","icon-right","appearance","button","size","medium",3,"click","label"]],template:function(i,a){if(i&1&&(M(0),c(1,"async"),C(2,Ut,10,8,"div",0)),i&2){let y=w(p(1,1,a.data$));n(2),g(y?2:-1)}},dependencies:[I,z,J,me,lt,te,B,S],styles:[".account-coupons[_ngcontent-%COMP%]{margin-bottom:32px}@media all and (min-width:992px){.account-coupons[_ngcontent-%COMP%]{margin-bottom:48px}}.account-coupons[_ngcontent-%COMP%] h3[_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-coupons[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:18px;line-height:24px;letter-spacing:normal;padding-top:0;padding-bottom:0}}@media all and (min-width:992px){.account-coupons[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:22px;line-height:28px;letter-spacing:normal;padding-top:2px;padding-bottom:2px}}.account-coupons[_ngcontent-%COMP%] .coupons-frame[_ngcontent-%COMP%]{margin:16px auto;display:block}"]})}return e})();function Vt(e,d){if(e&1){let t=T();r(0,"li")(1,"a",2),c(2,"trnDecodeUrl"),c(3,"trnDecodeUrlQueryParams"),h("keydown.arrowLeft",function(){let a=P(t).$index,y=l(2),q=f(0);return O(y.switchItem(q.children[a>0?a-1:0].url))})("keydown.arrowRight",function(){let a=P(t).$index,y=l(2),q=f(0);return O(y.switchItem(q.children[a<q.children.length-1?a+1:q.children.length-1].url))})("keydown.tab",function(a){return a.stopPropagation()})("keydown.shift.tab",function(a){return a.stopPropagation()}),m(4),o()()}if(e&2){let t=d.$implicit,i=l(2);n(),re("active",i.isActive(t.url)),s("routerLink",p(2,6,t.url))("queryParams",p(3,8,t.url)),Ie("aria-current",i.isActive(t.url)?"true":"false"),n(3),k(" ",t.title," ")}}function jt(e,d){if(e&1&&(r(0,"nav",0)(1,"ul",1),j(2,Vt,5,10,"li",null,V),o()()),e&2){l();let t=f(0);n(2),H(t.children)}}var bt=(()=>{class e{navigationService=_(mt);componentData=_(R);activeRoute=_(qe);router=_(Ne);routingService=_(We);node$=this.navigationService.getNavigationNode(this.componentData.data$);isActive(t){return typeof t=="string"?t===this.getCurrentUrl():!1}switchItem(t){this.routingService.goByUrl(Array.isArray(t)?t.join("/"):t)}getCurrentUrl(){return this.router.createUrlTree([],{relativeTo:this.activeRoute}).toString()}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=b({type:e,selectors:[["trn-account-navigation"]],decls:3,vars:4,consts:[[1,"account-navigation"],[1,"account-navigation-row"],[1,"link",3,"keydown.arrowLeft","keydown.arrowRight","keydown.tab","keydown.shift.tab","routerLink","queryParams"]],template:function(i,a){if(i&1&&(M(0),c(1,"async"),C(2,jt,4,0,"nav",0)),i&2){let y=w(p(1,1,a.node$));n(2),g(y?2:-1)}},dependencies:[$e,Fe,B,Ke,Ye],styles:[".account-navigation[_ngcontent-%COMP%]{width:100%}.account-navigation[_ngcontent-%COMP%] .account-navigation-row[_ngcontent-%COMP%]{display:flex}.account-navigation[_ngcontent-%COMP%] .link[_ngcontent-%COMP%]{transition:all .15s cubic-bezier(.35,0,0,1);font-size:16px;line-height:22px;letter-spacing:normal;padding-top:1px;padding-bottom:1px}@media all and (min-width:992px){.account-navigation[_ngcontent-%COMP%] .link[_ngcontent-%COMP%]{font-size:16px;line-height:28px;letter-spacing:normal;padding-top:2px;padding-bottom:2px}}.account-navigation[_ngcontent-%COMP%] .link[_ngcontent-%COMP%]{font-weight:700;display:block;white-space:nowrap;padding:16px;border-bottom:2px solid transparent;color:#0000008c}.account-navigation[_ngcontent-%COMP%] .link.active[_ngcontent-%COMP%]{font-weight:700;border-bottom:2px solid #007a48;color:#000}@media(hover:hover){.account-navigation[_ngcontent-%COMP%] .link[_ngcontent-%COMP%]:hover{font-weight:700;border-bottom:2px solid #007a48;color:#000}}.account-navigation[_ngcontent-%COMP%] .link[_ngcontent-%COMP%]:focus-visible{outline-style:solid;outline-width:3px;outline-color:#003ab8;outline-offset:2px}.account-navigation[_ngcontent-%COMP%] .link[_ngcontent-%COMP%]:focus-visible{border-radius:4px}@media all and (min-width:992px){.account-navigation[_ngcontent-%COMP%] .link[_ngcontent-%COMP%]{padding:16px}}"]})}return e})();var Ht=e=>({year:e}),Qt=()=>({name:"Tax Free & Me"}),Wt=(e,d,t)=>({points:e,bonus:d,year:t}),Gt=e=>({bonus:e}),Yt=(e,d)=>({points:e,bonus:d});function Kt(e,d){if(e&1&&(r(0,"span"),m(1),c(2,"cxTranslate"),o()),e&2){l(2);let t=f(1);l();let i=f(5);n(),k(" ",D(2,1,"account.you_are_points_points_from_achieving",De(4,Wt,i.pointsToNextLevel,t.bonus,i.year))," ")}}function Jt(e,d){if(e&1&&(r(0,"span"),m(1),c(2,"cxTranslate"),o()),e&2){l(2);let t=f(1);n(),k(" ",D(2,1,"account.you_have_reached_bonus",G(4,Gt,t.bonus))," ")}}function Xt(e,d){if(e&1&&C(0,Kt,3,8,"span")(1,Jt,3,6,"span"),e&2){l(2);let t=f(5);g(t.pointsToNextLevel?0:1)}}function Zt(e,d){if(e&1&&(r(0,"span"),m(1),c(2,"cxTranslate"),o()),e&2){l();let t=f(1);l();let i=f(5);n(),k(" ",D(2,1,"account.you_are_points_points_of_reaching",Le(4,Yt,i.pointsToNextLevel,t.bonus))," ")}}function en(e,d){if(e&1&&(r(0,"div",2),M(1),r(2,"div",4)(3,"trn-donut-chart",5)(4,"div",6)(5,"p",7),m(6),c(7,"cxTranslate"),o(),r(8,"p"),m(9),c(10,"cxTranslate"),o(),r(11,"p",8),m(12),o()()()(),r(13,"div",9),C(14,Xt,2,1)(15,Zt,3,7,"span"),o(),x(16,"trn-link",10),c(17,"cxTranslate"),o()),e&2){l();let t=f(5);n();let i=w(l().checkLevel(t));n(2),s("progressPercent",t.points/1e3),n(3),u(p(7,7,i.level)),n(3),k(" ",D(10,9,"account.points_earned_in_year",G(15,Ht,t.year))," "),n(3),u(t.points),n(2),g(t.points>0?14:15),n(2),s("label",D(17,12,"common.read_more_about",Be(17,Qt)))}}function tn(e,d){e&1&&x(0,"trn-spinner")}function nn(e,d){if(e&1&&(x(0,"trn-frame",3),c(1,"cxTranslate"),c(2,"cxTranslate")),e&2){l(2);let t=f(0);s("trn-tooltip",p(1,3,"account.no_points_collected_yet"))("description",p(2,5,"account.get_points_on_all_your_purchases"))("subinfo",t.description)}}function on(e,d){if(e&1&&(r(0,"div",0)(1,"h3"),m(2),o(),r(3,"p",1),m(4),o(),M(5),c(6,"async"),C(7,en,18,18,"div",2)(8,tn,1,0,"trn-spinner")(9,nn,3,7,"trn-frame",3),o()),e&2){let t=l(),i=f(0);n(2),u(i.title),n(2),u(i.subtitle),n();let a=w(p(6,3,t.loyaltyPoints$));n(2),g(a?7:t.loading()?8:9)}}var ht=(()=>{class e{componentData=_(R);loyaltyPointsService=_(it);loyaltyData$=this.componentData.data$;loyaltyPoints$=this.loyaltyPointsService.loyaltyPoints$.pipe(K(()=>this.loading.set(!1)));loading=N(!1);ngOnInit(){this.loading.set(!0)}checkLevel(t){return t?t?.points>200&&t?.points<500?{level:"account.level.2",bonus:"250 NOK"}:t?.points>=500?{level:"account.level.3",bonus:"500 NOK"}:{level:"account.level.1",bonus:"100 NOK"}:{}}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=b({type:e,selectors:[["trn-loyalty-points"]],decls:3,vars:4,consts:[[1,"loyalty-points"],[1,"description"],[1,"loyalty-points-block"],["iconCode","custom_close_circle_multiple",1,"loyalty-points-frame",3,"trn-tooltip","description","subinfo"],[1,"loyalty-points-chart"],[3,"progressPercent"],[1,"loyalty-points-text"],[1,"level"],[1,"title-points"],[1,"loyalty-points-info"],["icon","open_in_new","iconPlacement","icon-right","size","small","url","/lojalitet",1,"tax-free-me-link",3,"label"]],template:function(i,a){if(i&1&&(M(0),c(1,"async"),C(2,on,10,6,"div",0)),i&2){let y=w(p(1,1,a.loyaltyData$));n(2),g(y?2:-1)}},dependencies:[I,z,te,de,J,nt,B,S],styles:[".loyalty-points[_ngcontent-%COMP%]{margin-bottom:32px}@media all and (min-width:992px){.loyalty-points[_ngcontent-%COMP%]{margin-bottom:48px}}.loyalty-points[_ngcontent-%COMP%] h3[_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){.loyalty-points[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:18px;line-height:24px;letter-spacing:normal;padding-top:0;padding-bottom:0}}@media all and (min-width:992px){.loyalty-points[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:22px;line-height:28px;letter-spacing:normal;padding-top:2px;padding-bottom:2px}}.loyalty-points[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{font-size:14px;line-height:20px;letter-spacing:normal;padding-top:2px;padding-bottom:2px}.loyalty-points[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{margin:2px auto 14px}.loyalty-points[_ngcontent-%COMP%] .loyalty-points-frame[_ngcontent-%COMP%]{margin:16px auto;display:block}.loyalty-points[_ngcontent-%COMP%] .loyalty-points-block[_ngcontent-%COMP%]{display:block;border:1px solid rgba(0,0,0,.1);border-radius:12px}@media all and (min-width:576px){.loyalty-points[_ngcontent-%COMP%] .loyalty-points-block[_ngcontent-%COMP%]{display:flex}}.loyalty-points[_ngcontent-%COMP%] .loyalty-points-chart[_ngcontent-%COMP%]{background:#f2f1f0;border-radius:12px 12px 0 0;padding:12px}.loyalty-points[_ngcontent-%COMP%] .loyalty-points-chart[_ngcontent-%COMP%] .donut-chart{max-width:216px;margin:0 auto}@media all and (min-width:576px){.loyalty-points[_ngcontent-%COMP%] .loyalty-points-chart[_ngcontent-%COMP%]{border-radius:12px 0 0 12px;border-right:1px solid rgba(0,0,0,.1);flex:0 0 34%}}.loyalty-points[_ngcontent-%COMP%] .loyalty-points-info[_ngcontent-%COMP%]{border-radius:0 0 12px 12px;padding:12px;display:flex;align-items:center;justify-content:center;text-align:center}@media all and (min-width:576px){.loyalty-points[_ngcontent-%COMP%] .loyalty-points-info[_ngcontent-%COMP%]{border-radius:0 12px 12px 0;flex:0 0 66%}}.loyalty-points[_ngcontent-%COMP%] .tax-free-me-link[_ngcontent-%COMP%]{justify-content:center;margin:12px}@media all and (min-width:576px){.loyalty-points[_ngcontent-%COMP%] .tax-free-me-link[_ngcontent-%COMP%]{display:none}}.loyalty-points[_ngcontent-%COMP%] .loyalty-points-text[_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){.loyalty-points[_ngcontent-%COMP%] .loyalty-points-text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:16px;line-height:28px;letter-spacing:normal;padding-top:2px;padding-bottom:2px}}.loyalty-points[_ngcontent-%COMP%] .loyalty-points-text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-transform:uppercase}.loyalty-points[_ngcontent-%COMP%] .loyalty-points-text[_ngcontent-%COMP%] .level[_ngcontent-%COMP%]{font-size:14px;line-height:20px;letter-spacing:normal;padding-top:2px;padding-bottom:2px}.loyalty-points[_ngcontent-%COMP%] .loyalty-points-text[_ngcontent-%COMP%] .level[_ngcontent-%COMP%]{margin-bottom:16px;color:#0000008c}.loyalty-points[_ngcontent-%COMP%] .loyalty-points-text[_ngcontent-%COMP%] .title-points[_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){.loyalty-points[_ngcontent-%COMP%] .loyalty-points-text[_ngcontent-%COMP%] .title-points[_ngcontent-%COMP%]{font-size:18px;line-height:24px;letter-spacing:normal;padding-top:0;padding-bottom:0}}@media all and (min-width:992px){.loyalty-points[_ngcontent-%COMP%] .loyalty-points-text[_ngcontent-%COMP%] .title-points[_ngcontent-%COMP%]{font-size:22px;line-height:28px;letter-spacing:normal;padding-top:2px;padding-bottom:2px}}.loyalty-points[_ngcontent-%COMP%] .loyalty-points-text[_ngcontent-%COMP%] .title-points[_ngcontent-%COMP%]{margin-top:16px;font-weight:500}"]})}return e})();var yt=(()=>{class e{http=_(ce);occEndpoints=_(pe);userIdService=_(Qe);eventService=_(je);accountProfileService=_(se);requestFailed$=new ye("");getWalletUrl(){return this.userIdService.takeUserId().pipe(Y(),ie(t=>{let i=this.occEndpoints.buildUrl("/users/${userId}
1/wallet",{urlParams:{userId:t}}),a=new ze({"Content-Type":"application/json"});return this.http.post(i,{},{headers:a})}),K(()=>this.eventService.dispatch({user:this.accountProfileService.user},fe)))}onError(t){t?.errors?.map(i=>{this.isCustomerWalletError(i)&&(i.reason==="alreadyExists"?this.eventService.dispatch({user:this.accountProfileService.user},fe):this.requestFailed$.next(i?.message))})}isCustomerWalletError(t){return t?.type==="CustomerWalletError"}static \u0275fac=function(i){return new(i||e)};static \u0275prov=oe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var _e=(()=>{class e{logger=_(Ve);occEndpointsService=_(pe);httpClient=_(ce);userService=_(le);query=_(He);reloadCards$=new he;cardQuery=this.query.create(()=>this.userService.get().pipe(Me(t=>!!t?.hmeId),U(({hmeId:t})=>this.occEndpointsService.buildUrl("/storebox/cards",{queryParams:{fields:"DEFAULT",hmeId:t}})),ie(t=>this.httpClient.get(t).pipe(ne(i=>{throw ge(i,this.logger)}),ne(()=>ve([]))))),{reloadOn:[this.reloadCards$]});getState(){return this.cardQuery.getState()}getStoreBoxCards(){return this.cardQuery.get()}reload(){this.reloadCards$.next()}deleteStoreBoxCard(t){let i=this.occEndpointsService.buildUrl(`/storebox/cards/${t}`);return this.httpClient.delete(i).pipe(ne(a=>{throw ge(a,this.logger)}),K(()=>this.reloadCards$.next()))}static \u0275fac=function(i){return new(i||e)};static \u0275prov=oe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Mt=Ce(xe());function an(e,d){if(e&1&&x(0,"trn-icon",0),e&2){let t=l();s("icon",t.iconCode())}}var vt=(()=>{class e{type=v();iconCode=F(()=>this.icons[this.type()]);icons={[E.Dankort]:"custom_payment_dankort",[E.eDankort]:"custom_payment_edankort",[E.VISA]:"custom_payment_visa",[E.Mastercard]:"custom_payment_mastercard",[E.JCB]:"custom_payment_jcb",[E.Maestro]:"custom_payment_maestro",[E.DinersClub]:"custom_payment_diners_club",[E.AmericanExpress]:"custom_payment_american_express",[E.Forbrugsforeningen]:"custom_payment_forbrugsforeningen",[E.BankAxept]:"custom_payment_bankaxept",[E.Reserved]:null,[E.Reserved_2]:null};static \u0275fac=function(i){return new(i||e)};static \u0275cmp=b({type:e,selectors:[["trn-card-icon"]],inputs:{type:[1,"type"]},decls:1,vars:1,consts:[[3,"icon"]],template:function(i,a){i&1&&C(0,an,1,1,"trn-icon",0),i&2&&g(a.iconCode()?0:-1)},dependencies:[A],styles:["[_nghost-%COMP%]{display:block;width:20px}"]})}return e})();var be=e=>({card_number:e});function rn(e,d){if(e&1&&(r(0,"p",13),m(1),c(2,"cxTranslate"),o(),r(3,"p",14),m(4),c(5,"cxTranslate"),o()),e&2){let t=l(2);n(),u(p(2,2,"bank_cards.account_number")),n(3),k(" ",D(5,4,"bank_cards.ending_with",G(7,be,t.lastAccountNumbers()))," ")}}function cn(e,d){if(e&1&&C(0,rn,6,9),e&2){let t=l();g(t.lastAccountNumbers()?0:-1)}}function pn(e,d){if(e&1&&(r(0,"p",13),m(1),c(2,"cxTranslate"),o(),r(3,"p",14),m(4),c(5,"cxTranslate"),o()),e&2){let t=l(2);n(),u(p(2,2,"bank_cards.card_number")),n(3),k(" ",D(5,4,"bank_cards.ending_with",G(7,be,t.lastCardNumbers()))," ")}}function ln(e,d){if(e&1&&C(0,pn,6,9),e&2){let t=l();g(t.lastCardNumbers()?0:-1)}}function dn(e,d){if(e&1&&(r(0,"p",13),m(1),c(2,"cxTranslate"),o(),r(3,"p",14),m(4),o()),e&2){let t=l();n(),u(p(2,2,"bank_cards.expiration_date")),n(3),u(t.expiryDate())}}var Pt=(()=>{class e{modalService=_(Z);trnStoreBoxService=_(_e);globalMessageService=_(Ge);data=v();modalId=(0,Mt.uniqueId)("delete_card_");isAccount=F(()=>!!this.data()?.accountNo);lastAccountNumbers=F(()=>this.data()?.accountNo?.slice(-4));lastCardNumbers=F(()=>this.data()?.cardNumber?.slice(-4));expiryDate=F(()=>[this.data()?.expiryMonth,this.data()?.expiryYear].map(t=>t&&t.toString().padStart(2,"0")).join("/"));cartTypeId=F(()=>this.isAccount()?this.data()?.accountNoTypeId:this.data()?.cardTypeId);deleteDisabled=N(!1);openModal(){this.modalService.open(this.modalId)}closeModal(){this.modalService.close(this.modalId)}deleteHandler(){this.deleteDisabled.set(!0),this.trnStoreBoxService.deleteStoreBoxCard(this.data().id).pipe(Y(),Pe(()=>{this.deleteDisabled.set(!1),this.closeModal()})).subscribe({next:()=>this.globalMessageService.add({key:"bank_cards.delete_success"},ue.MSG_TYPE_CONFIRMATION),error:()=>this.globalMessageService.add({key:"bank_cards.delete_error"},ue.MSG_TYPE_ERROR)})}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=b({type:e,selectors:[["trn-bank-card-badge"]],inputs:{data:[1,"data"]},decls:27,vars:33,consts:[[1,"bank-card-badge"],[1,"bank-card-badge-type"],[3,"type"],[1,"bank-card-badge-content"],[1,"bank-card-badge-content-col"],[1,"bank-card-badge-content-button"],["appearance","button","icon","delete","iconPlacement","icon-left","size","small",3,"onClick","label"],[1,"warning-modal",3,"identifier","closable","title"],["content",""],["icon","warning"],["footer",""],[3,"onClick","size","color","fill","label"],[3,"onClick","size","color","fill","label","disabled"],[1,"bank-card-label"],[1,"bank-card-value"]],template:function(i,a){i&1&&(r(0,"div",0)(1,"div",1),x(2,"trn-card-icon",2),o(),r(3,"div",3)(4,"div",4),C(5,cn,1,1)(6,ln,1,1),o(),r(7,"div",4),C(8,dn,5,4),o(),r(9,"div",5)(10,"trn-link",6),c(11,"cxTranslate"),h("onClick",function(){return a.openModal()}),o()()()(),r(12,"trn-modal",7),c(13,"cxTranslate"),Q(14,8),x(15,"trn-icon",9),r(16,"h3"),m(17),c(18,"cxTranslate"),o(),r(19,"p"),m(20),c(21,"cxTranslate"),o(),W(),Q(22,10),r(23,"trn-button",11),c(24,"cxTranslate"),h("onClick",function(){return a.closeModal()}),o(),r(25,"trn-button",12),c(26,"cxTranslate"),h("onClick",function(){return a.deleteHandler()}),o(),W(),o()),i&2&&(n(2),s("type",a.cartTypeId()),n(3),g(a.isAccount()?5:6),n(3),g(a.expiryDate()&&!a.isAccount()?8:-1),n(2),s("label",p(11,18,"common.delete")),n(2),s("identifier",a.modalId)("closable",!1)("title",p(13,20,"account_settings.edit_subscriptions")),n(5),u(p(18,22,"bank_cards.are_you_sure_you_want_to_delete")),n(3),k(" ",D(21,24,"bank_cards.are_you_sure_you_want_to_delete_description",G(31,be,a.isAccount()?a.lastAccountNumbers():a.lastCardNumbers()))," "),n(3),s("size","medium")("color","secondary")("fill",!0)("label",p(24,27,"common.cancel")),n(2),s("size","medium")("color","tertiary")("fill",!0)("label",p(26,29,"common.delete"))("disabled",a.deleteDisabled()))},dependencies:[I,vt,z,X,A,$,S],styles:[".bank-card-badge[_ngcontent-%COMP%]{display:flex;border:1px solid rgba(0,0,0,.1);border-radius:12px;overflow:hidden}.bank-card-badge[_ngcontent-%COMP%] .bank-card-badge-type[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:48px}.bank-card-badge[_ngcontent-%COMP%] .bank-card-badge-content[_ngcontent-%COMP%]{display:flex;flex-grow:1;gap:12px;padding:12px;background:#f2f1f0;border-left:1px solid rgba(0,0,0,.1)}.bank-card-badge[_ngcontent-%COMP%] .bank-card-badge-content[_ngcontent-%COMP%] .bank-card-badge-content-col[_ngcontent-%COMP%]{width:100%}.bank-card-badge[_ngcontent-%COMP%] .bank-card-badge-content[_ngcontent-%COMP%] .bank-card-badge-content-button[_ngcontent-%COMP%]{padding:2px 0}.bank-card-badge[_ngcontent-%COMP%] .bank-card-badge-content[_ngcontent-%COMP%] .bank-card-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){.bank-card-badge[_ngcontent-%COMP%] .bank-card-badge-content[_ngcontent-%COMP%] .bank-card-label[_ngcontent-%COMP%]{font-size:12px;line-height:14px;letter-spacing:.02em;padding-top:1px;padding-bottom:1px}}.bank-card-badge[_ngcontent-%COMP%] .bank-card-badge-content[_ngcontent-%COMP%] .bank-card-label[_ngcontent-%COMP%]{color:#0000008c}.bank-card-badge[_ngcontent-%COMP%] .bank-card-badge-content[_ngcontent-%COMP%] .bank-card-value[_ngcontent-%COMP%]{font-size:12px;line-height:14px;letter-spacing:normal;padding-top:1px;padding-bottom:1px;font-family:Source Sans Pro,sans-serif;font-weight:600;-webkit-font-smoothing:antialiased}"]})}return e})();var Ot=Ce(xe());function sn(e,d){e&1&&(r(0,"div",0),x(1,"trn-spinner"),o())}function mn(e,d){if(e&1&&x(0,"trn-bank-card-badge",16),e&2){let t=d.$implicit;s("data",t)}}function _n(e,d){if(e&1){let t=T();r(0,"div",9)(1,"div",11)(2,"div",12)(3,"h4"),m(4),c(5,"cxTranslate"),o(),r(6,"p"),m(7),c(8,"cxTranslate"),o()(),r(9,"div",13)(10,"trn-link",14),c(11,"cxTranslate"),h("onClick",function(){P(t);let a=l(2);return O(a.openModal())}),o()()(),r(12,"div",15),j(13,mn,1,1,"trn-bank-card-badge",16,V),o()()}if(e&2){l(2);let t=f(0);n(4),u(p(5,3,"bank_cards.associate_bank_card")),n(3),u(p(8,5,"bank_cards.associate_bank_card_description")),n(3),s("label",p(11,7,"common.add")),n(3),H(t)}}function Cn(e,d){if(e&1){let t=T();r(0,"div",10),x(1,"trn-icon",17),r(2,"div",18)(3,"h4"),m(4),c(5,"cxTranslate"),o(),r(6,"p"),m(7),c(8,"cxTranslate"),o()(),r(9,"trn-button",19),c(10,"cxTranslate"),h("onClick",function(){P(t);let a=l(2);return O(a.openModal())}),o()()}e&2&&(n(4),u(p(5,4,"bank_cards.no_cards_added")),n(3),u(p(8,6,"bank_cards.no_cards_added_de
1scription")),n(2),s("label",p(10,8,"bank_cards.add_bank_card"))("size","small"))}function gn(e,d){if(e&1&&C(0,_n,15,9,"div",9)(1,Cn,11,10,"div",10),e&2){l();let t=f(0);g(t.length?0:1)}}var wt=(()=>{class e{trnStoreBoxService=_(_e);modalService=_(Z);modalId=(0,Ot.uniqueId)("add_card_");bankCards$=this.trnStoreBoxService.getStoreBoxCards();loading$=this.trnStoreBoxService.getState().pipe(U(t=>t?.loading));bankAxeptForm=new Xe({bankAxept:new Ze(!1,[Je.required])});constructor(){this.trnStoreBoxService.reload()}openModal(){this.modalService.open(this.modalId)}closeModal(){this.modalService.close(this.modalId)}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=b({type:e,selectors:[["trn-associate-cards"]],decls:22,vars:33,consts:[[1,"loading-wrapper"],[3,"identifier","closable","title"],["content",""],[1,"modal-text",3,"innerHTML"],[1,"radio-group-row"],["name","bankAxept",1,"radio-group",3,"label","form"],[3,"value","label"],["labelDecoration","dotted-underline",3,"label","content"],[3,"type"],[1,"associate-cards-wrapper"],[1,"no-associate-cards-wrapper"],[1,"associate-cards-header"],[1,"associate-cards-header-text","associate-cards-text"],[1,"associate-cards-header-button"],["appearance","button","iconPlacement","icon-left","icon","add",3,"onClick","label"],[1,"bank-cards-list"],[3,"data"],["icon","credit_card_off",1,"no-cards-icon"],[1,"associate-cards-text"],[3,"onClick","label","size"]],template:function(i,a){if(i&1&&(M(0),c(1,"async"),M(2),c(3,"async"),C(4,sn,2,0,"div",0)(5,gn,2,1),r(6,"trn-modal",1),c(7,"cxTranslate"),Q(8,2),x(9,"div",3),c(10,"cxTranslate"),r(11,"div",4)(12,"trn-radio-group",5),c(13,"cxTranslate"),x(14,"trn-radio",6),c(15,"cxTranslate"),x(16,"trn-radio",6),c(17,"cxTranslate"),o(),x(18,"trn-tooltip",7),c(19,"cxTranslate"),c(20,"cxTranslate"),o(),x(21,"trn-storebox",8),W(),o()),i&2){let y=w(p(1,14,a.bankCards$)),q=p(3,17,a.loading$);n(4),g(q?4:y?5:-1),n(2),s("identifier",a.modalId)("closable",!1)("title",p(7,19,"bank_cards.associate_bank_card")),n(3),s("innerHTML",p(10,21,"bank_cards.membership_description"),ae),n(3),s("label",p(13,23,"bank_cards.do_you_have_bankaxept"))("form",a.bankAxeptForm),n(2),s("value",!1)("label",p(15,25,"common.no")),n(2),s("value",!0)("label",p(17,27,"common.yes")),n(2),s("label",p(19,29,"bank_cards.security"))("content",p(20,31,"bank_cards.security_description")),n(3),s("type",a.bankAxeptForm.controls.bankAxept.value?"combined":"card")}},dependencies:[I,J,A,$,z,Pt,X,_t,Ct,tt,gt,B,S],styles:["[_nghost-%COMP%]{display:flex;height:100%}.associate-cards-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px;width:100%}.associate-cards-header[_ngcontent-%COMP%]{display:flex;gap:12px}.associate-cards-header[_ngcontent-%COMP%] .associate-cards-header-text[_ngcontent-%COMP%]{flex-grow:1}.associate-cards-header[_ngcontent-%COMP%] .associate-cards-header-button[_ngcontent-%COMP%]{white-space:nowrap}.associate-cards-text[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:14px;line-height:20px;letter-spacing:normal;padding-top:2px;padding-bottom:2px}.associate-cards-text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:12px;line-height:14px;letter-spacing:normal;padding-top:1px;padding-bottom:1px}.bank-cards-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.radio-group[_ngcontent-%COMP%] .radio-group-list{display:flex;gap:56px}.radio-group-row[_ngcontent-%COMP%]{display:flex;padding:10px 0}.radio-group-row[_ngcontent-%COMP%] .radio-group[_ngcontent-%COMP%]{flex-grow:1}.modal-text[_ngcontent-%COMP%]{font-size:16px;line-height:22px;letter-spacing:normal;padding-top:1px;padding-bottom:1px}@media all and (min-width:992px){.modal-text[_ngcontent-%COMP%]{font-size:16px;line-height:28px;letter-spacing:normal;padding-top:2px;padding-bottom:2px}}.modal-text[_ngcontent-%COMP%]{margin-bottom:.5em}.modal-text[_ngcontent-%COMP%] a{color:#007a48;text-decoration:underline}@media(hover:hover){.modal-text[_ngcontent-%COMP%] a:hover{color:#004a28}}.no-cards-icon[_ngcontent-%COMP%]{height:24px;width:auto;font-size:24px}.no-cards-icon[_ngcontent-%COMP%] img{height:24px;width:auto}.no-cards-icon[_ngcontent-%COMP%]{opacity:.55}.no-associate-cards-wrapper[_ngcontent-%COMP%]{text-align:center;display:flex;flex-direction:column;width:100%;height:100%;align-items:center;justify-content:center;gap:8px}.loading-wrapper[_ngcontent-%COMP%]{display:flex;width:100%;min-height:160px;align-items:center;justify-content:center}"]})}return e})();function un(e,d){if(e&1){let t=T();r(0,"div",9)(1,"span",10),m(2),o(),r(3,"trn-button",11),c(4,"cxTranslate"),h("onClick",function(){P(t);let a=l(5);return O(a.getWallet())}),o()()}if(e&2){l();let t=f(0),i=l(4);n(2),u(t),n(),s("label",p(4,6,"account.try_again"))("icon","replay")("iconPlacement","icon-left")("size","small")("disabled",i.loading())}}function xn(e,d){if(e&1){let t=T();r(0,"div",9)(1,"trn-button",11),c(2,"cxTranslate"),h("onClick",function(){P(t);let a=l(5);return O(a.getWallet())}),o()()}if(e&2){let t=l(5);n(),s("label",p(2,5,"account.load_qr_code"))("icon","qr_code")("iconPlacement","icon-left")("size","small")("disabled",t.loading())}}function fn(e,d){if(e&1&&(M(0),c(1,"async"),C(2,un,5,8,"div",9)(3,xn,3,7,"div",9)),e&2){let t=w(p(1,
11,l(4).error$));n(2),g(t?2:3)}}function bn(e,d){if(e&1&&x(0,"trn-qr-code",7),e&2){l(4);let t=f(2);s("qrdata",t.hmeId)("walletUrl",t.walletUrl)}}function hn(e,d){if(e&1&&(r(0,"div",1)(1,"h3"),m(2),o(),r(3,"p",2),m(4),o(),r(5,"div",3)(6,"div",4)(7,"div",5)(8,"p"),m(9),c(10,"cxTranslate"),o(),r(11,"b"),m(12),o()(),r(13,"div",6),C(14,fn,4,4)(15,bn,1,2,"trn-qr-code",7),o()(),r(16,"div",8),x(17,"trn-associate-cards"),o()()()),e&2){l(3);let t=f(0),i=f(2);n(2),u(t.title),n(2),u(t.subtitle),n(5),u(p(10,7,"account.membership_card_no")),n(3),u(i.hmeId),n(),re("no-wallet",!i.walletUrl),n(),g(i.walletUrl?15:14)}}function yn(e,d){if(e&1&&(r(0,"div",1)(1,"h3"),m(2),o(),r(3,"p",2),m(4),o(),x(5,"trn-frame",12),c(6,"cxTranslate"),c(7,"cxTranslate"),c(8,"cxTranslate"),o()),e&2){l(3);let t=f(0);n(2),u(t.title),n(2),u(t.subtitle),n(),s("description",p(6,5,"account.with_tax_free_me_you_get_one"))("subinfo",p(7,7,"account.does_not_apply_to_alcohol_and_tobacco_products"))("title",p(8,9,"account.no_membership_card_yet_refresh"))}}function vn(e,d){if(e&1&&C(0,hn,18,9,"div",1)(1,yn,9,11,"div",1),e&2){l(2);let t=f(2);g(t.hmeId?0:1)}}function Mn(e,d){if(e&1&&(r(0,"div",1)(1,"h3"),m(2),o(),r(3,"p",2),m(4),o(),x(5,"trn-frame",13),c(6,"cxTranslate"),c(7,"cxTranslate"),c(8,"cxTranslate"),o(),r(9,"div",1)(10,"h3"),m(11),o(),r(12,"p",2),m(13),o(),x(14,"p",14)(15,"trn-frame",15),c(16,"cxTranslate"),c(17,"cxTranslate"),o()),e&2){l(2);let t=f(0);n(2),u(t.title),n(2),u(t.subtitle),n(),s("description",p(6,10,"account.with_tax_free_me_you_get_one"))("subinfo",p(7,12,"account.does_not_apply_to_alcohol_and_tobacco_products"))("trn-tooltip",p(8,14,"account.no_membership_card_yet")),n(6),u(t.addPaymentCardTitle),n(2),u(t.addPaymentCardSubtitle),n(),s("innerHTML",t.addPaymentCardDescription,ae),n(),s("description",p(16,16,"account.easy_point_collection_with_linked"))("title",p(17,18,"account.no_cards_added"))}}function Pn(e,d){if(e&1&&(r(0,"div",0),C(1,vn,2,1)(2,Mn,18,20),o()),e&2){l();let t=f(2);n(),g(t.loyaltyMembership?1:2)}}var Tt=(()=>{class e{componentData=_(R);userService=_(le);membershipService=_(yt);membershipData$=this.componentData.data$;user$=this.userService.get();error$=this.membershipService.requestFailed$;loading=N(!1);constructor(){this.userService.reload()}getWallet(){this.loading.set(!0),this.membershipService.getWalletUrl().pipe(Y()).subscribe({next:()=>this.loading.set(!1),error:t=>{this.loading.set(!1),this.membershipService.onError(t?.error)}})}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=b({type:e,selectors:[["trn-membership-card"]],decls:5,vars:7,consts:[[1,"membership-card"],[1,"membership-card-section"],[1,"description"],[1,"membership-card-block"],[1,"membership-qr-code"],[1,"membership-qr-title"],[1,"qr-box"],[3,"qrdata","walletUrl"],[1,"membership-associate-cards"],[1,"error-wrapper"],[1,"error"],[1,"get-wallet",3,"onClick","label","icon","iconPlacement","size","disabled"],["iconCode","custom_tag_off_outline",1,"membership-card-frame",3,"description","subinfo","title"],["iconCode","custom_tag_off_outline",1,"membership-card-frame",3,"description","subinfo","trn-tooltip"],[1,"description",3,"innerHTML"],["iconCode","credit_card_off",1,"membership-card-frame",3,"description","title"]],template:function(i,a){if(i&1&&(M(0),c(1,"async"),M(2),c(3,"async"),C(4,Pn,3,1,"div",0)),i&2){let y=w(p(1,1,a.membershipData$));n(2);let q=w(p(3,4,a.user$));n(2),g(y&&q?4:-1)}},dependencies:[I,te,de,$,me,wt,B,S],styles:['.membership-card-section[_ngcontent-%COMP%]{margin-bottom:32px}@media all and (min-width:992px){.membership-card-section[_ngcontent-%COMP%]{margin-bottom:48px}}.membership-card-section[_ngcontent-%COMP%] h3[_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){.membership-card-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:18px;line-height:24px;letter-spacing:normal;padding-top:0;padding-bottom:0}}@media all and (min-width:992px){.membership-card-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:22px;line-height:28px;letter-spacing:normal;padding-top:2px;padding-bottom:2px}}.membership-card-section[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{font-size:14px;line-height:20px;letter-spacing:normal;padding-top:2px;padding-bottom:2px}.membership-card-section[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{margin:2px auto 14px}.membership-card-section[_ngcontent-%COMP%] .membership-card-frame[_ngcontent-%COMP%]{margin:16px auto;display:block}.membership-card-section[_ngcontent-%COMP%] .membership-card-block[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.1);border-radius:12px}@media all and (min-width:576px){.membership-card-section[_ngcontent-%COMP%] .membership-card-block[_ngcontent-%COMP%]{display:flex}}.membership-card-section[_ngcontent-%COMP%] .membership-qr-code[_ngcontent-%COMP%]{background:#f2f1f0;border-radius:12px 12px 0 0;padding:12px}@media all and (min-width:576px){.membership-card-section[_ngcontent-%COMP%] .membership-qr-code[_ngcontent-%COMP%]{border-radius:12px 0 0 12px;border-right:1px solid rgba(0,0,0,.1);flex:0 0 34%}}.membership-card-section[_ngcontent-%COMP%] .membership-associate-cards[_ngcontent-%COMP%]{flex-grow:1;border-radius:0 0 12px 12px;padding:12px}@media all and (min-width:576px){.membership-card-section[_ngcontent-%COMP%] .membership-associate-cards[_ngcontent-%COMP%]{border-radius:0 12px 12px 0}}.membership-card-section[_ngcontent-%COMP%] .membership-qr-title[_ngcontent-%COMP%]{font-size:14px;line-height:16px;letter-spacing:.02em;padding-top:0;padding-bottom:0;text-transform:uppercase}@media all and (min-width:992px){.membership-card-section[_ngcontent-%COMP%] .membership-qr-title[_ngcontent-%COMP%]{font-size:16px;line-height:18px;letter-spacing:.02em;padding-top:3px;padding-bottom:3px}}.membership-card-section[_ngcontent-%COMP%] .membership-qr-title[_ngcontent-%COMP%]{text-align:center;margin:4px 0}.membership-card-section[_ngcontent-%COMP%] .membership-qr-title[_ngcontent-%COMP%] b[_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){.membership-card-section[_ngcontent-%COMP%] .membership-qr-title[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{font-size:18px;line-height:24px;letter-spacing:normal;padding-top:0;padding-bottom:0}}@media all and (min-width:992px){.membership-card-section[_ngcontent-%COMP%] .membership-qr-title[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{font-size:22px;line-height:28px;letter-spacing:normal;padding-top:2px;padding-bottom:2px}}.membership-card-section[_ngcontent-%COMP%] .membership-qr-title[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{font-weight:500}.membership-card-section[_ngcontent-%COMP%] .qr-box.no-wallet[_ngcontent-%COMP%]{position:relative;width:100%;min-height:200px}.membership-card-section[_ngcontent-%COMP%] .qr-box.no-wallet[_ngcontent-%COMP%] .error-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;flex-direction:column;width:100%;height:100%;position:absolute;inset:0;z-index:1}.membership-card-section[_ngcontent-%COMP%] .qr-box.no-wallet[_ngcontent-%COMP%] .error[_ngcontent-%COMP%]{font-size:14px;line-height:16px;letter-spacing:.02em;padding-top:0;padding-bottom:0;text-transform:uppercase}@media all and (min-width:992px){.membership-card-section[_ngcontent-%COMP%] .qr-box.no-wallet[_ngcontent-%COMP%] .error[_ngcontent-%COMP%]{font-size:16px;line-height:18px;letter-spacing:.02em;padding-top:3px;padding-bottom:3px}}.membership-card-section[_ngcontent-%COMP%] .qr-box.no-wallet[_ngcontent-%COMP%] .error[_ngcontent-%COMP%]{margin:0 16px 16px;text-align:center}.membership-card-section[_ngcontent-%COMP%] .qr-box.no-wallet[_ngcontent-%COMP%]:after{content:"";background:#f2f1f0;position:absolute;inset:0;opacity:.95}.membership-card-section[_ngcontent-%COMP%] .qr-box.no-wallet[_ngcontent-%COMP%] .get-wallet[_ngcontent-%COMP%]{white-space:nowrap}']})}return e})();var Go=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=ke({type:e});static \u0275inj=Oe({providers:[Re({cmsComponents:{[pt]:{component:ut},[ot]:{component:ft},[at]:{component:bt},[rt]:{component:ht},[ct]:{component:Tt}}})]})}return e})();export{Go as ProfileBaseModule};
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.