1import{a as St,b as Xi,c as Mt,d as dr,e as me,f as we}from"./chunk-EYVM7RR5.js";import{a as lr,b as qa,c as di,d as cr,f as pr,g as Qa}from"./chunk-TZJWMMQD.js";import{G as ko,H as Pa,q as Bt,r as To,y as Ao,z as Sa}from"./chunk-IMBY7M5B.js";import{$ as zt,$a as c,$b as _e,$d as ii,$e as xa,$i as Re,Aa as T,Ag as Eo,Ah as Ta,Ai as Ya,Ba as y,Bg as ya,Ca as g,Cj as Oe,D as $i,Dh as Vo,Dj as bt,E as Gi,Ef as Ze,Eg as Do,Eh as $o,Fa as ot,Fc as st,Ff as Oo,Fg as Ma,Fh as Ea,G as Gt,Gb as so,Gf as Ca,Ha as z,Hb as ua,Hf as ri,Hj as pi,I as be,Ia as W,Id as vo,If as Io,Ij as ar,J as nt,Ja as q,Jg as ai,Ji as li,Jj as sr,K as Ge,Ka as B,Ke as pe,Kg as qi,Kh as J,Ki as Ko,Kj as Wa,La as m,Lc as lt,Le as yo,Lg as Qi,Lh as Te,Li as Jo,M as He,Ma as C,Mb as $,Mc as ft,Md as ti,Me as xt,Mf as de,Mg as si,Mh as Pe,Mi as Ua,N as ce,Na as h,Nb as Kt,Nd as va,Ne as So,Ng as Ro,Nh as Ct,Ni as Xo,Oa as ee,Ob as Nt,Og as Zi,Oh as Go,Oi as La,P as Ht,Pa as ze,Pg as Ki,Ph as Aa,Pj as Ie,Q as ge,Qa as Zt,Qc as fo,Qg as K,Qh as Ho,Qj as yt,Rb as lo,Rc as fa,Rg as Oa,Rh as Da,S as mt,Sg as Ji,Sh as zo,T as w,Tb as co,Tg as No,Th as ka,U as ve,Ub as Ee,Uc as ei,Ug as Fo,V as he,Va as re,Vb as We,Vc as go,Vg as Bo,Wb as Ve,Wc as Z,Wg as Yo,X as S,Xa as je,Xc as zi,Xg as Uo,Y as M,Ya as j,Yd as Wi,Yg as Ia,Za as rt,Zb as po,Zd as ha,Ze as _a,_a as no,_b as P,_d as ho,_e as Mo,_i as ie,a as Zn,ab as p,ac as R,ae as gt,af as Me,ai as Wo,aj as er,bb as Q,be as vt,bg as ke,bi as Ra,bj as ja,c as Vi,cb as G,ce as ht,cg as Ft,cj as tr,d as Ye,da as to,de as ct,dj as Va,e as Rt,ea as Le,ec as qe,ed as oe,ee as _o,ej as ir,fb as E,fc as ut,fd as ga,fe as se,fj as $a,gc as at,gi as Na,gj as nr,h as Kn,ha as o,he as _t,hf as Qe,hj as Ga,i as da,ia as f,jc as Hi,k as Y,kb as H,kc as mo,ke as xo,l as Jn,la as Wt,lb as ae,lc as Jt,le as ni,lf as Po,m as $t,mb as A,me as Co,n as Xn,na as v,nc as Xt,ne as oi,o as eo,oc as uo,oi as qo,p as ma,pa as d,pi as Fa,qa as qt,qb as oo,qj as or,rb as ro,ri as Qo,rj as Ha,sa as io,sb as V,se as bo,si as Ba,sj as rr,t as it,tb as ao,tj as za,u as dt,ua as r,ub as ye,ug as le,uj as Je,va as a,vb as U,vg as Ke,vh as Lo,vj as ci,wa as x,we as Ae,wg as wo,wh as wa,xa as N,xe as De,xg as ba,y as Ue,ya as F,ye as Se,za as Qt,zh as jo,zi as Zo}from"./chunk-IGR4BJTH.js";import{e as b,h as Be}from"./chunk-J4XOFOAH.js";function Ka(t,s){t&1&&(r(0,"div"),m(1),c(2,"translate"),a()),t&2&&(o(),h(" ",p(2,1,"APP.IS_LOADING"),` 2`))}function Ja(t,s){if(t&1&&(r(0,"div"),m(1),a()),t&2){let e=g(2);o(),ee(" ",e.labelIdentifierType," ",e.userAccount.personalIdentifier," ")}}function Xa(t,s){if(t&1&&(r(0,"div")(1,"small",28),m(2),c(3,"translate"),c(4,"uppercase"),a()()),t&2){let e=g(2);o(),d("hidden",!e.myAccountForm.get("phoneNumber").hasError("invalidPhone")),o(),h(" ",p(4,4,p(3,2,"MYACCOUNT.MY-PROFIL.INVALID-PHONE-NUMBER"))," ")}}function es(t,s){if(t&1){let e=T();r(0,"div",29)(1,"a",30),y("click",function(){S(e);let n=g(2);return M(n.onPasswordChange())}),m(2),c(3,"translate"),a()()}t&2&&(o(2),C(p(3,1,"MYACCOUNT.MY-PROFIL.CHANGEPWD")))}function ts(t,s){if(t&1){let e=T();r(0,"form",2),y("ngSubmit",function(){S(e);let n=g();return M(n.onSubmit())}),r(1,"div",3)(2,"div",4)(3,"div",5)(4,"div",6),m(5),c(6,"gender"),c(7,"translate"),a(),v(8,Ja,2,2,"div",0),r(9,"div"),m(10),a(),r(11,"div"),m(12),c(13,"translate"),c(14,"formatDate"),c(15,"async"),a()()(),r(16,"div",7)(17,"vls-input-phone",8),c(18,"translate"),c(19,"uppercase"),y("inputChange",function(n){S(e);let l=g();return M(l.onPhoneInputChange(n))}),a(),v(20,Xa,5,6,"div",0)(21,es,4,3,"div",9),r(22,"div",10),x(23,"input",11),c(24,"translate"),c(25,"uppercase"),r(26,"label",12),m(27),c(28,"translate"),c(29,"uppercase"),a()(),r(30,"div",13),x(31,"input",14),c(32,"translate"),c(33,"uppercase"),r(34,"label",15),m(35),c(36,"translate"),c(37,"uppercase"),a()(),r(38,"div",3)(39,"div",16)(40,"div",17),x(41,"input",18),c(42,"translate"),c(43,"uppercase"),r(44,"label",19),m(45),c(46,"translate"),c(47,"uppercase"),a(),x(48,"i",20),a()(),r(49,"div",21)(50,"div",17),x(51,"input",22),c(52,"translate"),c(53,"uppercase"),r(54,"label",23),m(55),c(56,"translate"),c(57,"uppercase"),a(),x(58,"i",20),a()()(),r(59,"vls-country-list",24),c(60,"translate"),c(61,"uppercase"),y("countrySelected",function(n){S(e);let l=g();return M(l.changeCountry(n))}),a()(),r(62,"div",25)(63,"button",26),y("click",function(){S(e);let n=g();return M(n.onCloseModal())}),m(64),c(65,"translate"),a(),r(66,"button",27),m(67),c(68,"translate"),a()()()()}if(t&2){let e=g();d("formGroup",e.myAccountForm),o(5),ze(" ",p(7,32,Q(6,29,e.userAccount.sex,"short"))," ",e.userAccount.firstName," ",e.userAccount.lastName," "),o(3),d("ngIf",e.personalIdentifierActivated),o(2),h(" ",e.userAccount.email," "),o(2),ee(" ",p(13,34,"MYACCOUNT.MY-PROFIL.BORN_IN")," ",p(15,39,Q(14,36,e.userAccount==null?null:e.userAccount.birthDate,"short"))," "),o(5),io("text-muted"),d("value",e.myAccountForm.controls.phoneNumber.value)("label",p(19,43,p(18,41,"ADDRESS.TELEPHONE"))),o(3),d("ngIf","phoneNumber"),o(),d("ngIf",e.canDisplayChangePasswordLink()),o(2),ot("maxLength",e.maxLenghtContractFeature),d("placeholder",p(25,47,p(24,45,"ADDRESS.ADDRESS_NAME"))),o(4),C(p(29,51,p(28,49,"ADDRESS.ADDRESS_NAME"))),o(4),ot("maxLength",e.maxLenghtContractFeature),d("placeholder",p(33,55,p(32,53,"ADDRESS.ADDRESS_COMPL"))),o(4),C(p(37,59,p(36,57,"ADDRESS.ADDRESS_COMPL"))),o(6),d("placeholder",p(43,63,p(42,61,"ADDRESS.ZIP_CODE"))),o(4),C(p(47,67,p(46,65,"ADDRESS.ZIP_CODE"))),o(6),d("placeholder",p(53,71,p(52,69,"ADDRESS.CITY"))),o(4),C(p(57,75,p(56,73,"ADDRESS.CITY"))),o(4),d("title",p(61,79,p(60,77,"ADDRESS.COUNTRY")))("defaultCountry",e.userAccount.country),o(5),h(" ",p(65,81,"BUTTON.CANCEL")," "),o(2),d("disabled",!e.isFormValid(e.myAccountForm)),o(),h(" ",p(68,83,"BUTTON.SAVE")," ")}}var mi,is,en,tn=b(()=>{E();Se();Nt();ce();Re();E();Re();fa();de();Na();go();we();wa();Ea();Se();U();Te();ka();R();mi=function(t){return t[t.none=0]="none",t[t.failure=1]="failure",t[t.success=2]="success",t}(mi||{}),is=38,en=(()=>{class t{constructor(e,i,n,l,u,_,O,I,L){this.myProfilService=e,this._storageManager=i,this.accountService=n,this._contractService=l,this._loaderGlobalService=u,this.phoneNumberServce=_,this.globalModalService=O,this._myProfileSharedModalService=I,this._contractFeatureService=L,this.updateAccount$=new zt,this.personalIdentifierActivated=!1}
2ngOnInit(){this._contractService.getContractFeature($.Features.AddressMaxSize).subscribe(e=>{this.maxLenghtContractFeature=e?e.parameter.value?parseInt(e.parameter.value):parseInt(e.parameter.defaultValue):is}),this.accountService.currentUserAccount().subscribe(e=>{this.myAccountForm=new ct({phoneNumber:new se(e.phoneNumber,gt.required,this.phoneNumberValidator.bind(this)),city:new se(e.city),zipCode:new se(e.zipCode),country:new se(e.country),address:new ct({name:new se(e.address.name,[gt.maxLength(this.maxLenghtContractFeature)]),complement:new se(e.address.complement,[gt.maxLength(this.maxLenghtContractFeature)])})}),this.userAccount=e}),this.serverHasSentEmail=mi.none,this._contractFeatureService.getContractFeatureValue($.Features.accountPersonalIdentifierType).subscribe(e=>{e&&(this.personalIdentifierActivated=!0,this.labelIdentifierType=e)})}onPhoneInputChange(e){this.myAccountForm.controls.phoneNumber.patchValue(e.E164)}isFormValid(e){return e.controls.phoneNumber.valid&&e.controls.country.valid}onSubmit(){let e=this.myAccountForm.getRawValue(),i=this.myAccountForm.controls.phoneNumber;this._loaderGlobalService.showLoadingAnimation(!0),this.accountService.update(e).subscribe(n=>{this.updateAccount$.emit(n)},n=>{let l=JSON.parse(n._body);l.code==="accounts.exception.notacceptable.account.phone.invalid"&&i.setErrors({invalidPhone:{message:l.message}})})}changeCountry(e){this.myAccountForm.get("country").patchValue(e.code)}onPasswordChange(){this.accountService.sendEmailToResetPassword(this._storageManager.email,"").subscribe(()=>{this.serverHasSentEmail=mi.success,this._myProfileSharedModalService.openChangePasswordConfirmationModal()},()=>{this.serverHasSentEmail=mi.failure})}onCloseModal(){this.globalModalService.closeAllOtherModals()}phoneNumberValidator(e){return this.phoneNumberServce.$isValidPhoneNumber(e.value).pipe(Y(i=>i?null:{valid:!1}))}canDisplayChangePasswordLink(){return!this.accountService.isKeycloakEnabled()}static{this.\u0275fac=function(i){return new(i||t)(f(ie),f(fo),f(Me),f(oe),f(Z),f(Vo),f(ei),f(me),f(oe))}}static{this.\u0275cmp=w({type:t,selectors:[["vls-my-account-information-form"]],outputs:{updateAccount$:"updateAccount"},features:[re([ie])],decls:2,vars:2,consts:[[4,"ngIf"],["novalidate","","class","container",3,"formGroup","ngSubmit",4,"ngIf"],["novalidate","",1,"container",3,"ngSubmit","formGroup"],[1,"row"],[1,"mb-3","col-12","bg-body"],[1,"card-body","l4-responsive","pl-0","pr-0"],[1,"fw-bolder","text-capitalize"],[1,"col-12","p-3"],[3,"inputChange","value","label"],["class","text-center pt-3 pb-4",4,"ngIf"],["formGroupName","address","data-test-id","address",1,"form-group","form-floating"],["id","address","type","text","formControlName","name","required","",1,"form-control",3,"placeholder","maxLength"],["for","address",1,"text-muted"],["formGroupName","address",1,"form-group","form-floating"],["id","complement","type","text","data-test-id","complement","formControlName","complement","required","",1,"form-control",3,"placeholder","maxLength"],["for","complement",1,"text-muted"],[1,"col-4"],[1,"form-group","form-floating"],["id","zip-code","type","text","formControlName","zipCode","required","",1,"form-control",3,"placeholder"],["for","zip-code",1,"text-muted"],[1,"bar"],[1,"col-8"],["id","city","type","text","data-test-id","city","formControlName","city","required","",1,"form-control",3,"placeholder"],["for","city",1,"text-muted"],[3,"countrySelected","title","defaultCountry"],[1,"col-12","d-flex","justify-content-center","mb-3"],["type","button","role","button",1,"btn","btn-outline-black","border-3","rounded-3","vls-matomo-profile-edit-cancel",3,"click"],["type","submit","data-test-id","validate-personal-details",1,"btn","btn-primary","btn-vls","rounded-3","mx-3","vls-matomo-profile-edit-save",3,"disabled"],[1,"has-error",3,"hidden"],[1,"text-center","pt-3","pb-4"],["data-test-id","reset-link",1,"link","l5-responsive","text-decoration-none",3,"click"]],template:function(i,n){i&1&&v(0,Ka,3,3,"div",0)(1,ts,69,85,"form",1),i&2&&(d("ngIf",!n.myAccountForm),o(),d("ngIf",n.myAccountForm))},dependencies:[Lo,$o,_t,ii,vt,ht,bo,A,ni,oi,Co,J,zo,P,V,ao],styles:[".card-body[_ngcontent-%COMP%]{box-shadow:none!important}.bg-body[_ngcontent-%COMP%]{background-color:#f4f4f4!important;box-shadow:none!important}"]})}}return t})()});function rs(t,s){if(t&1&&(r(0,"div",15),m(1),a()),t&2){let e=g().ngIf;o(),ze(" ",e.address==null?null:e.address.name," - ",e==null?null:e.zipCode," ",e==null?null:e.city," ")}}function as(t,s){if(t&1&&(r(0,"div",20),x(1,"img",21),r(2,"div",22),m(3),a(),r(4,"div",23),m(5),c(6,"translate"),a()()),t&2){let e=s.ngIf;o(3),C(e.balance),o(2),C(p(6,2,"MYACCOUNT.MY-PROFIL.REWARDS.POINTS"))}}function ss(t,s){if(t&1&&(r(0,"div",10)(1,"div",11),x(2,"div",12),r(3,"div",13)(4,"h1",14),m(5),a(),r(6,"div",15),m(7),a(),r(8,"div",15),m(9),a(),v(10,rs,2,3,"div",16),a(),r(11,"div",17)(12,"div",18),v(13,as,7,4,"div",19),c(14,"async"),a()()()()),t&2){let e=s.ngIf,i=g();o(5),ee(" ",e==null?null:e.firstName," ",e==null?null:e.lastName," "),o(2),h(" ",e==null?null:e.email," "),o(2),h(" ",e==null?null:e.phoneNumber," "),o(),d("ngIf",(e.address==null?null:e.address.length)>0||(e.zipCode==null?null:e.zipCode.length)>0||(e.city==null?null:e.city.length)>0),o(3),d("ngIf",p(14,6,i.rewardsData))}}function ls(t,s){t&1&&(r(0,"h6"),m(1,"Loading..."),a())}var os,on,rn=b(()=>{Kt();ft();Re();E();Re();de();ft();Sa();ci();Ft();U();tn();R();os=["accountInfoFormModal"];on=(()=>{class t{constructor(e,i,n,l,u,_){this._myProfilService=e,this._accountService=i,this._vlsRouterService=n,this._loaderGlobalService=l,this._contractFeatureService=u,this._rewardsService=_}ngOnInit(){this._contractFeatureService.getContractFeatureValue($.Features.RewardsActivated).subscribe(e=>{e&&(this.rewardsData=this._rewardsService.getCurrentUserRewards())})}get profileImage(){return this._accountService.urlOfUserProfileImage()}get userAccount(){return this._myProfilService.userAccount$}edit(){this._myProfilService.userAccount$.subscribe(e=>{if(e.firstName!=="Unknown")if(e.completion===1)this._myProfilService.showAccountInfoFormModal(),this.accountInfoFormModal.$modal.next(!0);else{let i={id:st.COMPLETE_ACCOUNT,transitionPage:{buttonLabel:"GO",message:"REDIRECT.ACCOUNT_NOT_COMPLETED"}},n={url:"/my-account"};this._vlsRouterService.startSubProcess(i,n)}})}onUpdate(e){e&&(this._myProfilService.userAccountSource.next(e),this.accountInfoFormModal.closeModal(),this._loaderGlobalService.showLoadingAnimation(!1))}static{this.\u0275fac=function(i){return new(i||t)(f(ie),f(Me),f(lt),f(Z),f(oe),f(Ao))}}static{this.\u0275cmp=w({type:t,selectors:[["vls-my-account-information"]],viewQuery:function(i,n){if(i&1&&z(os,7),i&2){let l;
2W(l=q())&&(n.accountInfoFormModal=l.first)}},features:[re([ie])],decls:12,vars:13,consts:[["loading",""],["accountInfoFormModal",""],[3,"editContent","isEditable","title","hasHeader"],["header",""],[1,"user-avatar","text-center"],["alt","Image Gratar utilisateur",3,"src"],["body","","class","text-center",4,"ngIf","ngIfElse"],[3,"title","initialState","closeOnClickOutside","classes","wrapper"],[1,"modal-body"],["data-test-id","vls-my-account-information-form",3,"updateAccount"],["body","",1,"text-center"],[1,"row"],[1,"col-4"],[1,"col-4","text-center"],[1,"text-dark","fw-bolder-1","text-capitalize"],[1,"text-muted-2"],["class","text-muted-2",4,"ngIf"],[1,"col-4","rewards"],[1,"d-flex","justify-content-center"],["class","circle","data-test-id","rewards",4,"ngIf"],["data-test-id","rewards",1,"circle"],["src","../assets/icons/svg/trophy.svg",1,"rewards-trophy"],["data-test-id","reward-points",1,"points","text-muted","fw-bolder"],[1,"text-dark","fw-bolder"]],template:function(i,n){if(i&1){let l=T();r(0,"vls-section-container",2),y("editContent",function(){return S(l),M(n.edit())}),r(1,"div",3)(2,"div",4),x(3,"img",5),a()(),v(4,ss,15,8,"div",6),c(5,"async"),v(6,ls,2,0,"ng-template",null,0,G),a(),r(8,"vls-modal",7,1)(10,"div",8)(11,"vls-my-account-information-form",9),y("updateAccount",function(_){return S(l),M(n.onUpdate(_))}),a()()()}if(i&2){let l=B(7);d("isEditable",!0)("title","")("hasHeader",!0),o(3),ot("src",n.profileImage,Le),o(),d("ngIf",p(5,11,n.userAccount))("ngIfElse",l),o(4),d("title","MYACCOUNT.MY-PROFIL.MY_INFORMATIONS")("initialState",!1)("closeOnClickOutside",!1)("classes","modal-lg")("wrapper",!1)}},dependencies:[Je,ke,A,en,P,V],styles:["body[_ngcontent-%COMP%], html[_ngcontent-%COMP%]{font-family:Raleway Regular}[_nghost-%COMP%] .user-avatar[_ngcontent-%COMP%]{height:45px;position:relative;top:-50px;width:80%;margin:auto}[_nghost-%COMP%] .user-avatar[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{border-radius:50%}
2[_nghost-%COMP%] .circle[_ngcontent-%COMP%]{width:100px;height:100px;border-radius:50%;border:2px solid #cdcdcd;border-top-style:none}[_nghost-%COMP%] .rewards[_ngcontent-%COMP%]{margin-top:-22px}[_nghost-%COMP%] .rewards[_ngcontent-%COMP%] .rewards-trophy[_ngcontent-%COMP%]{width:23px;margin-top:-27px}[_nghost-%COMP%] .rewards[_ngcontent-%COMP%] .points[_ngcontent-%COMP%]{color:#0094aa!important;font-family:Raleway Bold}"]})}}return t})()});function ps(t,s){t&1&&(r(0,"p",6),m(1),c(2,"translate"),a()),t&2&&(o(),h(" ",p(2,1,"MYACCOUNT.MY-PROFIL.MY-FAV-STATIONS.NO-FAV-STATIONS")," "))}function ds(t,s){if(t&1){let e=T();N(0),r(1,"vls-station-details",8),y("removeAsFavorite",function(n){S(e);let l=g(3);return M(l.remove(n))}),a(),x(2,"hr"),F()}if(t&2){let e=s.$implicit;o(),d("details",e)}}function ms(t,s){if(t&1&&(N(0),v(1,ds,3,1,"ng-container",7),c(2,"orderBy"),F()),t&2){let e=g().ngIf;o(),d("ngForOf",Q(2,1,e,"number"))}}function us(t,s){if(t&1&&(r(0,"div"),v(1,ps,3,3,"p",4)(2,ms,3,4,"ng-container",5),a()),t&2){let e=s.ngIf;o(),d("ngIf",e.length===0),o(),d("ngIf",e.length>0)}}function fs(t,s){t&1&&(r(0,"p",6),m(1),c(2,"translate"),a()),t&2&&(o(),h(" ",p(2,1,"MYACCOUNT.MY-PROFIL.MY-FAV-STATIONS.FETCHING-FAV-STATIONS")," "))}var an,sn=b(()=>{ce();Ra();E();Re();de();ci();Fa();U();Da();R();an=(()=>{class t{constructor(e,i){this.myProfilService=e,this._loaderGlobalService=i,this.favoriteStations$=this.fetchMappedFavStation()}remove(e){this._loaderGlobalService.showLoadingAnimation(!0),this.myProfilService.removeAndRefreshUserfavoriteStations(e).subscribe(()=>{this.favoriteStations$=this.fetchMappedFavStation(),this._loaderGlobalService.showLoadingAnimation(!1)})}fetchMappedFavStation(){return this.myProfilService.getMyFavoriteStations().pipe(Y(e=>e.map(i=>Wo.fromOpenData(i))))}static{this.\u0275fac=function(i){return new(i||t)(f(ie),f(Z))}}static{this.\u0275cmp=w({type:t,selectors:[["vls-my-favorite-stations"]],decls:6,vars:7,consts:[["loading",""],[3,"isEditable","title","hasHeader"],["body",""],[4,"ngIf","ngIfElse"],["class","text-muted",4,"ngIf"],[4,"ngIf"],[1,"text-muted"],[4,"ngFor","ngForOf"],[3,"removeAsFavorite","details"]],template:function(i,n){if(i&1&&(r(0,"vls-section-container",1)(1,"div",2),v(2,us,3,2,"div",3),c(3,"async"),v(4,fs,3,3,"ng-template",null,0,G),a()()),i&2){let l=B(5);d("isEditable",!1)("title","MYACCOUNT.MY-PROFIL.MY-FAV-STATIONS.MY-FAV-STATIONS")("hasHeader",!1),o(2),d("ngIf",p(3,5,n.favoriteStations$))("ngIfElse",l)}},dependencies:[Je,qo,ae,A,Ho,P,V]})}}return t})()});function vs(t,s){t&1&&(r(0,"div")(1,"p",3),m(2),c(3,"translate"),a()()),t&2&&(o(2),C(p(3,1,"MYACCOUNT.MY-PROFIL.MY-PAYMENT-INFO.IS_ERROR")))}function hs(t,s){t&1&&(r(0,"div")(1,"p",3),m(2),c(3,"translate"),a()()),t&2&&(o(2),C(p(3,1,"MYACCOUNT.MY-PROFIL.MY-PAYMENT-INFO.IS_LOADING")))}function _s(t,s){if(t&1){let e=T();r(0,"div")(1,"div",4)(2,"div",5)(3,"vls-payment-method-radio-button",6),y("paymentMethodEdited",function(){S(e);let n=g();return M(n.onEditMethodOfPayment())}),a()()()()}if(t&2){let e=g();o(3),d("paymentOptions",e.paymentOptions)("maxOptionsToDisplay",3)}}var ln,cn=b(()=>{Re();E();ba();ci();Ya();U();R();ln=(()=>{class t{constructor(e){this.paymentMethodService=e}ngOnInit(){this.isError=!1,this.onEditMethodOfPayment()}onEditMethodOfPayment(){this.isLoading=!0,this.paymentMethodService.getAvailableMethodOfPaymentForAnAccount().subscribe(e=>{this.isError=!1,this.paymentOptions=e},()=>{this.isError=!0},()=>{this.isLoading=!1})}static{this.\u0275fac=function(i){return new(i||t)(f(wo))}}static{this.\u0275cmp=w({type:t,selectors:[["vls-my-payment-information"]],features:[re([ie])],decls:5,vars:6,consts:[[3,"isEditable","title","hasHeader"],["body",""],[4,"ngIf"],[1,"text-muted"],[1,"row"],[1,"col-lg-12"],[3,"paymentMethodEdited","paymentOptions","maxOptionsToDisplay"]],template:function(i,n){i&1&&(r(0,"vls-section-container",0)(1,"div",1),v(2,vs,4,3,"div",2)(3,hs,4,3,"div",2)(4,_s,4,2,"div",2),a()()),i&2&&(d("isEditable",!1)("title","MYACCOUNT.MY-PROFIL.MY-PAYMENT-INFO.MY-PAYMENT-INFO")("hasHeader",!1),o(2),d("ngIf",n.isError),o(),d("ngIf",!n.isError&&n.isLoading),o(),d("ngIf",!n.isError&&!n.isLoading))},dependencies:[Je,Zo,A,P],styles:["[_nghost-%COMP%] .light-grey-card[_ngcontent-%COMP%]{border-radius:10px!important;background-color:#eee}[_nghost-%COMP%] .btn-rounded-2[_ngcontent-%COMP%]{border-radius:10px!important}"]})}}return t})()});function Cs(t,s){if(t&1&&(r(0,"div",2),x(1,"input",6),r(2,"label",7),m(3),c(4,"translate"),a()()),t&2){let e=g();o(),d("formControl",e.getCommercialSolicitations),o(),d("ngClass",j(5,pn,e.getCommercialSolicitations.value)),o(),h(" ",p(4,3,"MYACCOUNT.MY-PROFIL.MY-PREFERENCES.ADS"),"")}}function bs(t,s){if(t&1&&(r(0,"div",2),x(1,"input",8),r(2,"label",9),m(3),c(4,"translate"),a()()),t&2){let e=g();o(),d("formControl",e.enableRewards),o(),d("ngClass",j(5,pn,e.enableRewards.value)),o(),h(" ",p(4,3,"MYACCOUNT.MY-PROFIL.MY-PREFERENCES.REWARDS"),"")}}var pn,dn,mn=b(()=>{Se();ce();Nt();He();Re();E();de();Re();ci();Se();U();R();pn=t=>({"text-success ":t});dn=(()=>{class t{constructor(e,i,n){this._loaderGlobService=e,this._myProfilService=i,this._contractFeatureService=n,this.subscription=new Zn,this.receiveNotifications=new se,this.subscribeToNewletters=new se,this.getCommercialSolicitations=new se,this.enableRewards=new se,this.getCommercialSolicitations.valueChanges.pipe($t(l=>(this._loaderGlobService.showLoadingAnimation(!0),this.getCommercialSolicitations.disable({emitEvent:!1}),this._myProfilService.userEmail$.pipe(be(u=>this._myProfilService.patchAccount(u,{optInPartner:l})),$i(),Gi(),Vi())))).subscribe(l=>{this._myProfilService.userAccountSource.next(l),this.getCommercialSolicitations.enable({emitEvent:!1}),this._loaderGlobService.showLoadingAnimation(!1)}),this.subscribeToNewletters.valueChanges.pipe($t(l=>(this._loaderGlobService.showLoadingAnimation(!0),this.subscribeToNewletters.disable({emitEvent:!1}),this._myProfilService.userEmail$.pipe(be(u=>this._myProfilService.patchAccount(u,{optInSystem:l})),$i(),Gi(),Vi())))).subscribe(l=>{this._myProfilService.userAccountSource.next(l),this.subscribeToNewletters.enable({emitEvent:!1}),this._loaderGlobService.showLoadingAnimation(!1)}),this.enableRewards.valueChanges.pipe($t(l=>(this._loaderGlobService.showLoadingAnimation(!0),this.enableRewards.disable({emitEvent:!1}),this._myProfilService.patchRewardsActivation(l)))).subscribe(()=>{this.enableRewards.enable({emitEvent:!1}),this._loaderGlobService.showLoadingAnimation(!1)})}ngOnInit(){this.subscription.add(this._myProfilService.userAccount$.subscribe(e=>{this.getCommercialSolicitations.reset(e.optInPartner==="ACTIVATED",{emitEvent:!1}),this.subscribeToNewletters.reset(e.optInSystem==="ACTIVATED",{emitEvent:!1})}
2)),this.subscription.add(this._contractFeatureService.getContractFeatureValue($.Features.RewardsActivated).subscribe(e=>{this.rewardsFeature=e,this.rewardsFeature&&this._myProfilService.getRewardsPreference().subscribe(i=>{this.enableRewards.reset(i.autoSpend,{emitEvent:!1})})})),this.subscription.add(this._contractFeatureService.getContractFeatureValue($.Features.OptinCommunicationPartnerHidden).subscribe(e=>this.optinPartnerHiddenFeature=e))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(f(Z),f(ie),f(oe))}}static{this.\u0275cmp=w({type:t,selectors:[["vls-my-preferences"]],features:[re([ie])],decls:10,vars:12,consts:[[3,"isEditable","title","hasHeader"],["body",""],[1,"form-check","form-switch","mb-3"],["type","checkbox","id","optinNewletters",1,"form-check-input",3,"formControl"],["for","optinNewletters",1,"l5-responsive","form-check-label",3,"ngClass"],["class","form-check form-switch mb-3",4,"ngIf"],["type","checkbox","id","optinPartner",1,"form-check-input",3,"formControl"],["for","optinPartner",1,"form-check-label","l5-responsive",3,"ngClass"],["type","checkbox","id","optinReward",1,"form-check-input",3,"formControl"],["for","optinReward",1,"form-check-label","l5-responsive",3,"ngClass"]],template:function(i,n){i&1&&(r(0,"vls-section-container",0)(1,"div",1)(2,"form")(3,"div",2),x(4,"input",3),r(5,"label",4),m(6),c(7,"translate"),a()(),v(8,Cs,5,7,"div",5)(9,bs,5,7,"div",5),a()()()),i&2&&(d("isEditable",!1)("title","MYACCOUNT.MY-PROFIL.MY-PREFERENCES.MY-PREFERENCES")("hasHeader",!1),o(4),d("formControl",n.subscribeToNewletters),o(),d("ngClass",j(10,pn,n.subscribeToNewletters.value)),o(),h(" ",p(7,8,"MYACCOUNT.MY-PROFIL.MY-PREFERENCES.NEWSLETTER"),""),o(2),d("ngIf",!n.optinPartnerHiddenFeature),o(),d("ngIf",n.rewardsFeature))},dependencies:[Je,_t,ho,vt,ht,_o,H,A,xo,P],styles:["body[_ngcontent-%COMP%], html[_ngcontent-%COMP%]{font-family:Raleway Regular}[_nghost-%COMP%]{display:block}[_nghost-%COMP%] table[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:not(:last-child){border-bottom:2px solid #ccc}[_nghost-%COMP%] table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:15px}[_nghost-%COMP%] .wrapper[_ngcontent-%COMP%]{margin:20px 0;position:relative;top:10px}[_nghost-%COMP%] .wrapper[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{margin-top:5px}[_nghost-%COMP%] .switch-container[_ngcontent-%COMP%]{cursor:pointer}@media (max-width: 575.98px){[_nghost-%COMP%] .divider[_ngcontent-%COMP%]{width:88%}[_nghost-%COMP%] .item-title[_ngcontent-%COMP%]{font-size:11px;font-weight:bolder}}@media (min-width: 576px) and (max-width: 767.98px){[_nghost-%COMP%] .divider[_ngcontent-%COMP%]{width:94%}}@media (min-width: 768px) and (max-width: 991.98px){[_nghost-%COMP%] .divider[_ngcontent-%COMP%]{width:87%}[_nghost-%COMP%] .item-title[_ngcontent-%COMP%]{font-size:14px;font-weight:bolder}}@media (min-width: 992px) and (max-width: 1199.98px){[_nghost-%COMP%] .divider[_ngcontent-%COMP%]{width:90%;left:16px}[_nghost-%COMP%] .item-title[_ngcontent-%COMP%]{font-size:14px;font-weight:bolder}}@media (min-width: 1200px) and (max-width: 1399.98px){[_nghost-%COMP%] .divider[_ngcontent-%COMP%]{width:92%}[_nghost-%COMP%] .item-title[_ngcontent-%COMP%]{font-size:15px;font-weight:bolder}}"]})}}return t})()});var un,fn=b(()=>{E();Re();rn();sn();cn();mn();un=(()=>{class t{constructor(e){this.myProfilService=e}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)(f(ie))}}static{this.\u0275cmp=w({type:t,selectors:[["vls-my-profil"]],decls:10,vars:0,consts:[[1,"container"],[1,"row"],[1,"col-12"],[1,"col-12","pt-3","pb-3"],[1,"col-lg-6","col-md-6","col-sm-12","pt-3","pb-3"]],template:function(i,n){i&1&&(r(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",1),x(4,"vls-my-account-information",3),a(),r(5,"div",1),x(6,"vls-my-preferences",4)(7,"vls-my-payment-information",4),a(),r(8,"div",1),x(9,"vls-my-favorite-stations",3),a()()()())},dependencies:[on,an,ln,dn]})}}return t})()});var Ms,fr,gr=b(()=>{U();Se();R();fn();Re();yt();rn();tn();sn();cn();mn();E();Ms=[ie],fr=(()=>{class t{static forRoot(){return{ngModule:t,providers:[Ms]}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=ve({type:t})}static{this.\u0275inj=ge({imports:[Ie,Ae,ye,De,_e]})}}return t})()});var vr,Ot,fe,gi=b(()=>{vr=Be(Hi()),Ot=Be(Jt());He();ce();E();_a();de();fe=(()=>{class t{constructor(e,i){this._tripsAPIService=e,this._userService=i,this.$completeTrips=new Ye,this.rewardInfoSubject=ne
2w Rt(!1),this.today=(0,Ot.default)()}groupByDate(e){let i=(0,Ot.default)(e.endDateTime);return Ot.default.locale(navigator.language),this.today.week()-i.week()===0?"DAY-"+(this.today.day()-i.day()):"WEEK-"+(this.today.week()-i.week()).toString()}get userTrips$(){return this._tripsAPIService.fetchAllTrips(this._userService.uuid).pipe(Ge(e=>{e.length>0&&(e.sort((i,n)=>{let l=(0,Ot.default)(i.out);return(0,Ot.default)(n.out).diff(l)}),this.selectTrip(e[0]))}),Y(e=>(0,vr.groupBy)(e,this.groupByDate.bind(this))))}selectTrip(e){this.$completeTrips.next(e)}showRewardInfoFormModal(){this.rewardInfoSubject.next(!0)}get getConfigInfoRewards(){return this._tripsAPIService.getConfigRewards().pipe(Y(e=>e||[]))}static{this.\u0275fac=function(i){return new(i||t)(mt(vo),mt(So))}}static{this.\u0275prov=Ht({token:t,factory:t.\u0275fac})}}return t})()});var It,gn=b(()=>{It=function(t){return t.WEEK="WEEK",t}(It||{})});var xe,vn=b(()=>{xe=function(t){return t.TRIPS_DURATIONS="TRIPS_DURATIONS",t.TRIPS_COUNTS="TRIPS_COUNTS",t}(xe||{})});var hr=b(()=>{Oa();});var _r=b(()=>{hr()});function hn(t,s){var e=s.x,i=s.y;if(e===null)return{x:0,y:-1};if(i===null)return{x:1,y:0};var n=t.x-e,l=t.y-i,u=Math.sqrt(n*n+l*l);return{x:u?n/u:0,y:u?l/u:-1}}function ws(t,s,e,i,n){switch(n){case"center":e=i=0;break;case"bottom":e=0,i=1;break;case"right":e=1,i=0;break;case"left":e=-1,i=0;break;case"top":e=0,i=-1;break;case"start":e=-e,i=-i;break;case"end":break;default:n*=Math.PI/180,e=Math.cos(n),i=Math.sin(n);break}return{x:t,y:s,vx:e,vy:i}}function vi(t,s,e){var i=Ts;return t<e.left?i|=br:t>e.right&&(i|=yr),s<e.top?i|=Mr:s>e.bottom&&(i|=Sr),i}function Es(t,s){for(var e=t.x0,i=t.y0,n=t.x1,l=t.y1,u=vi(e,i,s),_=vi(n,l,s),O,I,L;!(!(u|_)||u&_);)O=u||_,O&Mr?(I=e+(n-e)*(s.top-i)/(l-i),L=s.top):O&Sr?(I=e+(n-e)*(s.bottom-i)/(l-i),L=s.bottom):O&yr?(L=i+(l-i)*(s.right-e)/(n-e),I=s.right):O&br&&(L=i+(l-i)*(s.left-e)/(n-e),I=s.left),O===u?(e=I,i=L,u=vi(e,i,s)):(n=I,l=L,_=vi(n,l,s));return{x0:e,x1:n,y0:i,y1:l}}function hi(t,s){var e=s.anchor,i=t,n,l;return s.clamp&&(i=Es(i,s.area)),e==="start"?(n=i.x0,l=i.y0):e==="end"?(n=i.x1,l=i.y1):(n=(i.x0+i.x1)/2,l=(i.y0+i.y1)/2),ws(n,l,t.vx,t.vy,s.align)}function As(t){var s=t.borderWidth||0,e=t.padding,i=t.size.height,n=t.size.width,l=-n/2,u=-i/2;return{frame:{x:l-e.left-s,y:u-e.top-s,w:n+e.width+s*2,h:i+e.height+s*2},text:{x:l,y:u,w:n,h:i}}}function Ds(t,s){var e=s.chart.getDatasetMeta(s.datasetIndex).vScale;if(!e)return null;if(e.xCenter!==void 0&&e.yCenter!==void 0)return{x:e.xCenter,y:e.yCenter};var i=e.getBasePixel();return t.horizontal?{x:i,y:null}:{x:null,y:i}}function ks(t){return t instanceof No?_i.arc:t instanceof Fo?_i.point:t instanceof Bo?_i.bar:_i.fallback}function Rs(t,s,e,i,n,l){var u=Math.PI/2;if(l){var _=Math.min(l,n/2,i/2),O=s+_,I=e+_,L=s+i-_,ne=e+n-_;t.moveTo(s,I),O<L&&I<ne?(t.arc(O,I,_,-Math.PI,-u),t.arc(L,I,_,-u,0),t.arc(L,ne,_,0,u),t.arc(O,ne,_,u,Math.PI)):O<L?(t.moveTo(O,e),t.arc(L,I,_,-u,u),t.arc(O,I,_,u,Math.PI+u)):I<ne?(t.arc(O,I,_,-Math.PI,0),t.arc(O,ne,_,0,Math.PI)):t.arc(O,I,_,-Math.PI,Math.PI),t.closePath(),t.moveTo(s,e)}else t.rect(s,e,i,n)}function Ns(t,s,e){var i=e.backgroundColor,n=e.borderColor,l=e.borderWidth;!i&&(!n||!l)||(t.beginPath(),Rs(t,$e(s.x)+l/2,$e(s.y)+l/2,$e(s.w)-l,$e(s.h)-l,e.borderRadius),t.closePath(),i&&(t.fillStyle=i,t.fill()),n&&l&&(t.strokeStyle=n,t.lineWidth=l,t.lineJoin="miter",t.stroke()))}function Fs(t,s,e){var i=e.lineHeight,n=t.w,l=t.x,u=t.y+i/2;return s==="center"?l+=n/2:(s==="end"||s==="right")&&(l+=n),{h:i,w:n,x:l,y:u}}function Bs(t,s,e){var i=t.shadowBlur,n=e.stroked,l=$e(e.x),u=$e(e.y),_=$e(e.w);n&&t.strokeText(s,l,u,_),e.filled&&(i&&n&&(t.shadowBlur=0),t.fillText(s,l,u,_),i&&n&&(t.shadowBlur=i))}function Ys(t,s,e,i){var n=i.textAlign,l=i.color,u=!!l,_=i.font,O=s.length,I=i.textStrokeColor,L=i.textStrokeWidth,ne=I&&L,Ce;if(!(!O||!u&&!ne))for(e=Fs(e,n,_),t.font=_.string,t.textAlign=n,t.textBaseline="middle",t.shadowBlur=i.textShadowBlur,t.shadowColor=i.textShadowColor,u&&(t.fillStyle=l),ne&&(t.lineJoin="round",t.lineWidth=L,t.strokeStyle=I),Ce=0,O=s.length;Ce<O;++Ce)Bs(t,s[Ce],{stroked:ne,filled:u,w:e.w,x:e.x,y:e.y+e.h*Ce})}function Yt(t,s,e){var i=Math.cos(e),n=Math.sin(e),l=s.x,u=s.y;return{x:l+i*(t.x-l)-n*(t.y-u),y:u+n*(t.x-l)+i*(t.y-u)}}function Cr(t,s){var e=js,i=Ls,n=s.origin,l,u,_,O,I;for(l=0;l<t.length;++l)u=t[l],_=u.x-n.x,O=u.y-n.y,I=s.vx*_+s.vy*O,e=Math.min(e,I),i=Math.max(i,I);return{min:e,max:i}}function xi(t,s){var e=s.x-t.x,i=s.y-t.y,n=Math.sqrt(e*e+i*i);return{vx:(s.x-t.x)/n,vy:(s.y-t.y)/n,origin:t,ln:n}}var xr,Ci,Ts,br,yr,Sr,Mr,_i,$e,Us,Ls,js,Vs,Pr=b(()=>{_r();Yo();xr=function(){if(typeof window<"u"){if(window.devicePixelRatio)return window.devicePixelRatio;var t=window.screen;if(t)return(t.deviceXDPI||1)/(t.logicalXDPI||1)}return 1}(),Ci={toTextLines:function(t){var s=[],e;for(t=[].concat(t);t.length;)e=t.pop(),typeof e=="string"?s.unshift.apply(s,e.split(` 3`)):Array.isArray(e)?t.push.apply(t,e):ai(t)||s.unshift(""+e);return s},textSize:function(t,s,e){var i=[].concat(s),n=i.length,l=t.font,u=0,_;for(t.font=e.string,_=0;_<n;++_)u=Math.max(t.measureText(i[_]).width,u);return t.font=l,{height:n*e.lineHeight,width:u}},bound:function(t,s,e){return Math.max(t,Math.min(s,e))},arrayDiff:function(t,s){var e=t.slice(),i=[],n,l,u,_;for(n=0,u=s.length;n<u;++n)_=s[n],l=e.indexOf(_),l===-1?i.push([_,1]):e.splice(l,1);for(n=0,u=e.length;n<u;++n)i.push([e[n],-1]);return i},rasterize:function(t){return Math.round(t*xr)/xr}};Ts=0,br=1,yr=2,Sr=4,Mr=8;_i={arc:function(t,s){var e=(t.startAngle+t.endAngle)/2,i=Math.cos(e),n=Math.sin(e),l=t.innerRadius,u=t.outerRadius;return hi({x0:t.x+i*l,y0:t.y+n*l,x1:t.x+i*u,y1:t.y+n*u,vx:i,vy:n},s)},point:function(t,s){var e=hn(t,s.origin),i=e.x*t.options.radius,n=e.y*t.options.radius;return hi({x0:t.x-i,y0:t.y-n,x1:t.x+i,y1:t.y+n,vx:e.x,vy:e.y},s)},bar:function(t,s){var e=hn(t,s.origin),i=t.x,n=t.y,l=0,u=0;return t.horizontal?(i=Math.min(t.x,t.base),l=Math.abs(t.base-t.x)):(n=Math.min(t.y,t.base),u=Math.abs(t.base-t.y)),hi({x0:i,y0:n+u,x1:i+l,y1:n,vx:e.x,vy:e.y},s)},fallback:function(t,s){var e=hn(t,s.origin);return hi({x0:t.x,y0:t.y,x1:t.x+(t.width||0),y1:t.y+(t.height||0),vx:e.x,vy:e.y},s)}},$e=Ci.rasterize;Us=function(t,s,e,i){var n=this;n._config=t,n._index=i,n._model=null,n._rects=null,n._ctx=s,n._el=e};si(Us.prototype,{_modelize:function(t,s,e,i){var n=this,l=n._index,u=Ki(K([e.font,{}],i,l)),_=K([e.color,Ro.color],i,l);return{align:K([e.align,"center"],i,l),anchor:K([e.anchor,"center"],i,l),area:i.chart.chartArea,backgroundColor:K([e.backgroundColor,null],i,l),borderColor:K([e.borderColor,null],i,l),borderRadius:K([e.borderRadius,0],i,l),borderWidth:K([e.borderWidth,0],i,l),clamp:K([e.clamp,!1],i,l),clip:K([e.clip,!1],i,l),color:_,display:t,font:u,lines:s,offset:K([e.offset,4],i,l),opacity:K([e.opacity,1],i,l),origin:Ds(n._el,i),padding:Zi(K([e.padding,4],i,l)),positioner:ks(n._el),rotation:K([e.rotation,0],i,l)*(Math.PI/180),size:Ci.textSize(n._ctx,s,u),textAlign:K([e.textAlign,"start"],i,l),textShadowBlur:K([e.textShadowBlur,0],i,l),textShadowColor:K([e.textShadowColor,_],i,l),textStrokeColor:K([e.textStrokeColor,_],i,l),textStrokeWidth:K([e.textStrokeWidth,0],i,l)}},update:function(t){var s=this,e=null,i=null,n=s._index,l=s._config,u,_,O,I=K([l.display,!0],t,n);I&&(u=t.dataset.data[n],_=qi(Qi(l.formatter,[u,t]),u),O=ai(_)?[]:Ci.toTextLines(_),O.length&&(e=s._modelize(I,O,l,t),i=As(e))),s._model=e,s._rects=i},geometry:function(){return this._rects?this._rects.frame:{}},rotation:function(){return this._model?this._model.rotation:0},visible:function(){return this._model&&this._model.opacity},model:function(){return this._model},draw:function(t,s){var e=this,i=t.ctx,n=e._model,l=e._rects,u;this.visible()&&(i.save(),n.clip&&(u=n.area,i.beginPath(),i.rect(u.left,u.top,u.right-u.left,u.bottom-u.top),i.clip()),i.globalAlpha=Ci.bound(0,n.opacity,1),i.translate($e(s.x),$e(s.y)),i.rotate(n.rotation),Ns(i,l.frame,n),Ys(i,n.lines,l.text,n),i.restore(
3))}});Ls=Number.MIN_SAFE_INTEGER||-9007199254740991,js=Number.MAX_SAFE_INTEGER||9007199254740991;Vs=function(){this._rotation=0,this._rect={x:0,y:0,w:0,h:0}};si(Vs.prototype,{center:function(){var t=this._rect;return{x:t.x+t.w/2,y:t.y+t.h/2}},update:function(t,s,e){this._rotation=e,this._rect={x:s.x+t.x,y:s.y+t.y,w:s.w,h:s.h}},contains:function(t){var s=this,e=1,i=s._rect;return t=Yt(t,s.center(),-s._rotation),!(t.x<i.x-e||t.y<i.y-e||t.x>i.x+i.w+e*2||t.y>i.y+i.h+e*2)},intersects:function(t){var s=this._points(),e=t._points(),i=[xi(s[0],s[1]),xi(s[0],s[3])],n,l,u;for(this._rotation!==t._rotation&&i.push(xi(e[0],e[1]),xi(e[0],e[3])),n=0;n<i.length;++n)if(l=Cr(s,i[n]),u=Cr(e,i[n]),l.max<u.min||u.max<l.min)return!1;return!0},_points:function(){var t=this,s=t._rect,e=t._rotation,i=t.center();return[Yt({x:s.x,y:s.y},i,e),Yt({x:s.x+s.w,y:s.y},i,e),Yt({x:s.x+s.w,y:s.y+s.h},i,e),Yt({x:s.x,y:s.y+s.h},i,e)]}})});function qs(t,s){t&1&&x(0,"img",18)}function Qs(t,s){if(t&1&&(r(0,"span",15),m(1),c(2,"translate"),x(3,"img",16,1),v(5,qs,1,0,"img",17),a()),t&2){let e=g(3);o(),h(" ",p(2,3,"MYACCOUNT.MY-STATISTICS.TRIPS_COUNTS")," "),o(2),d("hidden",e.currentStats==="TRIPS_DURATIONS"),o(2),d("ngIf",e.currentStats==="TRIPS_DURATIONS")}}function Zs(t,s){if(t&1&&(r(0,"span",15),m(1),c(2,"translate"),x(3,"img",19,2)(5,"img",20),a()),t&2){let e=g(3);o(),h(" ",p(2,3,"MYACCOUNT.MY-STATISTICS.TRIPS_DURATIONS")," "),o(2),d("ngStyle",j(5,_n,e.currentStats==="TRIPS_DURATIONS"?"none":"block")),o(2),d("ngStyle",j(7,_n,e.currentStats==="TRIPS_DURATIONS"?"block":"none"))}}function Ks(t,s){if(t&1&&(r(0,"span"),m(1),a()),t&2){let e=g(2).$implicit;o(),h(" ",e.periodTotal," ")}}function Js(t,s){if(t&1&&(r(0,"span"),m(1),r(2,"span",21),m(3,"min"),a()()),t&2){let e=g(2).$implicit;o(),h(" ",e.periodTotal," ")}}function Xs(t,s){if(t&1&&(r(0,"div"),v(1,Ks,2,1,"span",14)(2,Js,4,1,"span",14),a()),t&2){let e=g().$implicit,i=g(2);o(),d("ngIf",e.statsType===i.statsCountTypeEnum),o(),d("ngIf",e.statsType===i.statsDurationTypeEnum)}}function el(t,s){t&1&&(r(0,"div")(1,"span"),m(2," - "),a(),r(3,"span"),m(4," - min"),a()())}function tl(t,s){if(t&1){let e=T();r(0,"div",10),y("click",function(){let n=S(e).$implicit,l=g(2);return M(l.onSelectedStatsChange(n.statsType))}),r(1,"div",11),v(2,Qs,6,5,"span",12)(3,Zs,6,9,"span",12),a(),r(4,"div",13),v(5,Xs,3,2,"div",14)(6,el,5,0,"div",14),a()()}if(t&2){let e=s.$implicit,i=g(2);d("ngClass",i.statsTypeSelected===e.statsType?"link":""),o(2),d("ngIf",e.statsType===i.statsCountTypeEnum),o(),d("ngIf",e.statsType===i.statsDurationTypeEnum),o(2),d("ngIf",e.periodTotal&&e.periodTotal&&i.haveStatistics),o(),d("ngIf",!i.haveStatistics)}}function il(t,s){if(t&1&&(r(0,"div",8),v(1,tl,7,5,"div",9),a()),t&2){let e=g();o(),d("ngForOf",e.statsTypeList)}}function nl(t,s){t&1&&(r(0,"div",8)(1,"div",22)(2,"div",11)(3,"span",15),m(4),c(5,"translate"),x(6,"img",23),a()(),r(7,"div",13)(8,"div")(9,"span"),m(10," - "),a()()()(),r(11,"div",22)(12,"div",11)(13,"span",15),m(14),c(15,"translate"),x(16,"img",24),a()(),r(17,"div",13)(18,"div")(19,"span"),m(20," - "),r(21,"span",21),m(22," min"),a()()()()()()),t&2&&(o(4),h(" ",p(5,2,"MYACCOUNT.MY-STATISTICS.TRIPS_COUNTS")," "),o(10),h(" ",p(15,4,"MYACCOUNT.MY-STATISTICS.TRIPS_DURATIONS")," "))}var pt,Hs,zs,Ws,_n,Or,wt,bi=b(()=>{Pr();Yo();pt=Be(mo());gn();vn();E();Io();zi();yo();U();Ia();R();Hs=["myCanvas"],zs=["tripDurationIcon"],Ws=["tripCountIcon"],_n=t=>({display:t}),Or=t=>({"not-success":t});wt=(()=>{class t{constructor(e,i,n,l){this._statisticsService=e,this._loaderGlobService=i,this._langService=n,this.renderer=l,this.statsTypeList=[],this.labelIndex=10,this.barChartOptions={scaleShowVerticalLines:!1,responsive:!0,maintainAspectRatio:!1,scaleShowValues:!0,tooltips:{enabled:!1},scales:{x:{barPercentage:.5,categoryPercentage:0},y:{ticks:{beginAtZero:!0,userCallback:u=>{if(Math.floor(u)===u)return u}}}},plugins:{datalabels:{Overlap:!1,display:!0,align:u=>{let _=u.dataIndex;return u.dataset.data[_]<1?"end":"start"},anchor:"end",font:{weight:"bold"},offset:4,padding:0,formatter:u=>Math.round(u*this.labelIndex)/this.labelIndex}}},this.barChartType="bar",this.barChartLegend=!1,this.barChartData=[{data:[]}],this.barChartLabels=[]}ngOnInit(){this.currentStats=xe.TRIPS_COUNTS,this._langService.$localeStream.subscribe(l=>{let u=this.barChartLabels.map(_=>{let O=this.barChartLabels.indexOf(_);return(0,pt.default)().locale(l+"-gb").weekday(O).format("dddd")});this.barChartLabels=u}),this.canvas.nativeElement.getContext("2d").beginAtZero=!0,this.setLinearGradientColor(),this.periodicityStatsEnum=It.WEEK,this.statsCountTypeEnum=xe.TRIPS_COUNTS,this.statsDurationTypeEnum=xe.TRIPS_DURATIONS;let e=(0,pt.default)(),i=e.utc().startOf("week").toString(),n=e.utc().endOf("week").toString();i=(0,pt.default)(i).format("YYYY-MM-DD[T]HH:mm:ss"),n=(0,pt.default)(n).format("YYYY-MM-DD[T]HH:mm:ss"),this._statisticsService.getAccountStats(i,n,this.periodicityStatsEnum).subscribe(l=>{this.statsTypeList=l;for(let u of this.statsTypeList)if(u.statsType===this.statsCountTypeEnum){let _=Object.keys(u.values).map(ne=>u.values[ne]),O=Object.keys(u.values),I=localStorage.getItem("lang"),L=O.map(ne=>{let Ce=Object.keys(u.values).indexOf(ne);return(0,pt.default)().locale(I+"-gb").weekday(Ce).format("dddd")});this.barChartData[0].data=_,this.barChartLabels=L}this._loaderGlobService.showLoadingAnimation(!1)},l=>{l.status===404&&(this.haveStatistics=!1,this._loaderGlobService.showLoadingAnimation(!1))})}setLinearGradientColor(){let i=window.getComputedStyle(this.canvas.nativeElement,null).getPropertyValue("color"),n=this.canvas.nativeElement.getContext("2d").createLinearGradient(0,0,0,700);n.addColorStop(0,i),Ji.defaults.backgroundColor=n,Ji.defaults.hoverBackgroun
3dColor=n}onSelectedStatsChange(e){if(this.statsTypeSelected=e,e===xe.TRIPS_COUNTS){this.renderer.setAttribute(this.tripCountIcon.nativeElement,"src","../assets/icons/svg/badge-trajet-on.svg"),this.renderer.setAttribute(this.tripDurationIcon.nativeElement,"src","../assets/icons/svg/badge-temps.svg");for(let i of this.statsTypeList)if(i.statsType===xe.TRIPS_COUNTS){let l=Object.keys(i.values).map(_=>i.values[_]),u=JSON.parse(JSON.stringify(this.barChartData));u[0].data=l,this.barChartData=u}}else if(e===xe.TRIPS_DURATIONS){this.renderer.setAttribute(this.tripDurationIcon.nativeElement,"src","../assets/icons/svg/badge-temps-on.svg"),this.renderer.setAttribute(this.tripCountIcon.nativeElement,"src","../assets/icons/svg/badge-trajet.svg");for(let i of this.statsTypeList)if(i.statsType===xe.TRIPS_DURATIONS){let l=Object.keys(i.values).map(_=>i.values[_]),u=JSON.parse(JSON.stringify(this.barChartData));u[0].data=l,this.barChartData=u}}this.currentStats=e}changeDataSatistics(e,i){if(this.statsTypeList=e,this.haveStatistics=i,this.barChartData[0].data&&this.barChartData[0].data.length<=0){for(let n of e)if(n.statsType===this.statsCountTypeEnum){let l=Object.keys(n.values).map(I=>n.values[I]),u=Object.keys(n.values),_=localStorage.getItem("lang"),O=u.map(I=>{let L=Object.keys(n.values).indexOf(I);return(0,pt.default)().locale(_+"-gb").weekday(L).format("dddd")});this.barChartData[0].data=l,this.barChartLabels=O}}else for(let n of e)if(n.statsType===this.statsTypeSelected){let u=Object.keys(n.values).map(O=>n.values[O]),_=JSON.parse(JSON.stringify(this.barChartData));_[0].data=u,this.barChartData=_}}static{this.\u0275fac=function(i){return new(i||t)(f(ri),f(Z),f(pe),f(Wt))}}static{this.\u0275cmp=w({type:t,selectors:[["vls-chart"]],viewQuery:function(i,n){if(i&1&&(z(Hs,7),z(zs,5),z(Ws,5)),i&2){let l;W(l=q())&&(n.canvas=l.first),W(l=q())&&(n.tripDurationIcon=l.first),W(l=q())&&(n.tripCountIcon=l.first)}},inputs:{statsTypeSelected:"statsTypeSelected",haveStatistics:"haveStatistics"},decls:10,vars:19,consts:[["myCanvas",""],["tripCountIcon",""],["tripDurationIcon",""],[3,"ngStyle"],["baseChart","",1,"barChartCanvas",3,"datasets","labels","options","legend","type"],[1,"noStats","col-12","d-flex","fw-bolder","l2-responsive","justify-content-center","align-items-center",3,"ngClass"],[3,"ngClass"],["class","row w-100",4,"ngIf"],[1,"row","w-100"],["class",`card border-info mx-sm-1 p-3 justify-content-between flex-column mb-4 col-xl-4 col-lg-4 col-md-4 col-xs-12 box-shadow d-flex flex-row p-3 4 full-height card-whaou-effect statisticType clickable`,3,"ngClass","click",4,"ngFor","ngForOf"],[1,"card","border-info","mx-sm-1","p-3","justify-content-between","flex-column","mb-4","col-xl-4","col-lg-4","col-md-4","col-xs-12","box-shadow","d-flex","flex-row","p-3","full-height","card-whaou-effect","statisticType","clickable",3,"click","ngClass"],[1,"mt-1"],["class","fw-bolder",4,"ngIf"],[1,"mt-2"],[4,"ngIf"],[1,"fw-bolder"],["src","../assets/icons/svg/badge-trajet-on.svg",1,"total-stats-picto","mr-2",3,"hidden"],["class","total-stats-picto mr-2","src","../assets/icons/svg/badge-trajet.svg",4,"ngIf"],["src","../assets/icons/svg/badge-trajet.svg",1,"total-stats-picto","mr-2"],["src","../assets/icons/svg/badge-temps.svg",1,"total-stats-picto","mr-2",3,"ngStyle"],["src","../assets/icons/svg/badge-temps-on.svg",1,"total-stats-picto","mr-2","durationIcon",3,"ngStyle"],[1,"super-text"],[1,"card","mx-sm-1","p-3","justify-content-between","flex-column","mb-4","col-xl-4","col-lg-4","col-md-4","col-xs-12","box-shadow","d-flex","flex-row","p-3","full-height","card-whaou-effect","statisticType","clickable"],["src","../assets/icons/svg/badge-trajet.svg",1,"total-stats-picto","mr-1"],["src","../assets/icons/svg/badge-temps.svg",1,"total-stats-picto","mr-1"]],template:function(i,n){i&1&&(r(0,"div")(1,"div",3),x(2,"canvas",4,0),a(),r(4,"div",5)(5,"span",6),m(6),c(7,"translate"),a()(),v(8,il,2,1,"div",7)(9,nl,23,6,"div",7),a()),i&2&&(o(),d("ngStyle",j(13,_n,n.haveStatistics?"block":"none")),o(),d("datasets",n.barChartData)("labels",n.barChartLabels)("options",n.barChartOptions)("legend",n.barChartLegend)("type",n.barChartType),o(2),d("ngClass",j(15,Or,n.haveStatistics)),o(),d("ngClass",j(17,Or,n.haveStatistics)),o(),C(p(7,11,"MYACCOUNT.MY-STATISTICS.HAVING_NO_STATISTICS")),o(2),d("ngIf",n.haveStatistics&&n.statsTypeList.length>0),o(),d("ngIf",!n.haveStatistics))},dependencies:[H,ae,A,oo,Uo,P],styles:[".total-stats-picto[_ngcontent-%COMP%]{height:2.3rem;width:2.5rem;float:right}.statisticType.clickable[_ngcontent-%COMP%]{margin-top:10px;margin-left:7px}.super-text[_ngcontent-%COMP%]{vertical-align:super}.noStats[_ngcontent-%COMP%]{display:none;margin:37px;text-align:center}.not-success[_ngcontent-%COMP%]{display:none!important}.durationIcon[_ngcontent-%COMP%]{display:none}.border-info[_ngcontent-%COMP%]{border-color:#1a171b!important}"]})}}return t})()});function sl(t,s){if(t&1&&x(0,"vls-chart",14),t&2){let e=g(2);d("statsTypeSelected",e.statsTypeSelected)("haveStatistics",e.haveStatistics)}}function ll(t,s){if(t&1&&(N(0),v(1,sl,1,2,"vls-chart",13),F()),t&2){let e=g(),i=B(14);o(),d("ngIf",!e.haveTrips)("ngIfElse",i)}}function cl(t,s){t&1&&(r(0,"div",15),m(1),c(2,"translate"),a()),t&2&&(o(),C(p(2,1,"MYACCOUNT.MY-STATISTICS.FETCHING_STATISTICS")))}function pl(t,s){t&1&&(r(0,"div",16),m(1),c(2,"translate"),a()),t&2&&(o(),C(p(2,1,"MYACCOUNT.MY-STATISTICS.HAVING_NO_STATISTICS")))}var k,rl,al,xn,Cn=b(()=>{k=Be(mo());gn();vn();bi();E();Io();zi();
4gi();xt();U();bi();R();rl=["weekPicker"],al=["toolbar"];xn=(()=>{class t{constructor(e,i,n,l,u){this._statisticsService=e,this._loaderGlobService=i,this._myTripsService=n,this._langService=l,this.renderer=u,this.statisticsList=[],this.disabledNextWeek=!1,this.haveTrips=!1,this.haveStatistics=!0,this.gettingStats=!0}ngOnInit(){this.chart=new wt(this._statisticsService,this._loaderGlobService,this._langService,this.renderer),this.periodicityStatsEnum=It.WEEK,this.statsCountTypeEnum=xe.TRIPS_COUNTS,this.statsDurationTypeEnum=xe.TRIPS_DURATIONS,this.statsTypeSelected=xe.TRIPS_COUNTS;let e=(0,k.default)();this.disabledNextWeek=e.isBetween((0,k.default)(),(0,k.default)().add(6,"day")),this.init_week_picker((0,k.default)()),this._myTripsService.userTrips$.subscribe(i=>{i&&(this.gettingStats=!1,this.haveTrips=i.length>0,this.set_week_picker((0,k.default)()))})}getStatisticsByWeek(e,i,n){this._loaderGlobService.showLoadingAnimation(!0),e=(0,k.default)(e).format("YYYY-MM-DD[T]HH:mm:ss"),i=(0,k.default)(i).format("YYYY-MM-DD[T]HH:mm:ss"),this._statisticsService.getAccountStats(e,i,n).subscribe(l=>{l&&(this.statisticsList=l,this.haveStatistics=!0,this.renderer.removeAttribute(this.toolbar.nativeElement,"hidden"),this.chart.changeDataSatistics(this.statisticsList,this.haveStatistics)),this._loaderGlobService.showLoadingAnimation(!1)},l=>{this.renderer.removeAttribute(this.toolbar.nativeElement,"hidden"),l.status===404&&(this.haveStatistics=!1,this._loaderGlobService.showLoadingAnimation(!1))})}get StatsTypeEnum(){return xe}get PeriodicityStatsEnum(){return It}next(){let e=(0,k.default)(this.endDate.valueOf());e.add(1,"day"),this.set_week_picker(e)}prev(){let e=(0,k.default)(this.startDate.valueOf());e.subtract(1,"day"),this.set_week_picker(e)}isBetween(e){let i=(0,k.default)(),n=i.startOf("week").format("DD"),l=i.startOf("week").format("MM"),u=(0,k.default)(e).format("DD"),_=(0,k.default)(e).format("MM");n===u&&l===_?this.disabledNextWeek=!0:this.disabledNextWeek=!1}set_week_picker(e){this.renderer.removeAttribute(this.toolbar.nativeElement,"hidden"),this.startDate=e.startOf("week").toString(),this.endDate=e.startOf("week").toString(),this.startDate=(0,k.default)(e,"YYYY-MM-DD").toDate(),this.endDate=(0,k.default)(e,"YYYY-MM-DD").add(6,"day").toDate(),this.isBetween(this.startDate),this.getStatisticsByWeek((0,k.default)(e,"YYYY-MM-DD").format("YYYY-MM-DD[T]HH:mm:ss"),(0,k.default)(e,"YYYY-MM-DD").add(6,"day").format("YYYY-MM-DD[T]HH:mm:ss"),this.periodicityStatsEnum),this.startDate.getMonth()===this.endDate.getMonth()&&this.startDate.getFullYear()===this.endDate.getFullYear()?this.currentWeekDate=this.startDate.getDate()+"-"+this.endDate.getDate()+" "+(0,k.default)(this.endDate).format("MMM")+" "+(0,k.default)(this.endDate).year():this.startDate.getFullYear()!==this.endDate.getFullYear()&&this.startDate.getMonth()!==this.endDate.getMonth()?this.currentWeekDate=this.startDate.getDate()+" "+(0,k.default)(this.startDate).subtract(1,"month").add(1,"day").format("MMM")+" "+(0,k.default)(this.startDate).year()+"-"+this.endDate.getDate()+" "+(0,k.default)(this.endDate).format("MMM")+" "+(0,k.default)(this.endDate).year():this.currentWeekDate=this.startDate.getDate()+" "+(0,k.default)(this.startDate).format("MMM")+" - "+this.endDate.getDate()+" "+(0,k.default)(this.endDate).format("MMM")+" "+(0,k.default)(this.startDate).year(),this.renderer.setProperty(this.picker.nativeElement,"value",this.currentWeekDate)}init_week_picker(e){this.renderer.removeAttribute(this.toolbar.nativeElement,"hidden"),this.startDate=e.startOf("week").toString(),this.endDate=e.startOf("week").toString(),this.startDate=(0,k.default)(e,"YYYY-MM-DD").toDate(),this.endDate=(0,k.default)(e,"YYYY-MM-DD").add(6,"day").toDate(),this.isBetween(this.startDate),this.startDate.getMonth()===this.endDate.getMonth()?this.currentWeekDate=this.startDate.getDate()+"-"+this.endDate.getDate()+" "+(0,k.default)((0,k.default)(this.endDate).add(1,"months").month(),"MM").format("MMM"):this.currentWeekDate=this.startDate.getDate()+" "+(0,k.default)((0,k.default)(this.startDate).add(1,"months").month(),"MM").format("MMM")+" - "+this.endDate.getDate()+" "+(0,k.default)((0,k.default)(this.endDate).add(1,"months").month(),"MM").format("MMM"),this.renderer.setProperty(this.picker.nativeElement,"value",this.currentWeekDate)}static{this.\u0275fac=function(i){return new(i||t)(f(ri),f(Z),f(fe),f(pe),f(Wt))}}static{this.\u0275cmp=w({type:t,selectors:[["vls-my-statistics"]],viewQuery:function(i,n){if(i&1&&(z(rl,7),z(wt,5),z(al,7)),i&2){let l;
4W(l=q())&&(n.picker=l.first),W(l=q())&&(n.chart=l.first),W(l=q())&&(n.toolbar=l.first)}},decls:15,vars:6,consts:[["toolbar",""],["weekPicker",""],["loading",""],["noTrips",""],[1,"container",3,"ngClass"],[1,"toolbar","hidden-print",3,"hidden"],[1,"text-right"],[1,"prevWeek",3,"click"],["src","../assets/icons/svg/fleche-carrousel-avis-previous.svg",1,"align-self-center","clickable",2,"height","1em"],["type","text",1,"mb-3","col-xl-3","col-lg-6","col-md-6","col-xs-12","week-picker","mt-5","w-auto","input-border"],[1,"nextWeek",3,"click","disabled"],["src","../assets/icons/svg/fleche-carrousel-avis-next.svg",1,"align-self-center","clickable",2,"height","1em",3,"ngClass"],[4,"ngIf","ngIfElse"],[3,"statsTypeSelected","haveStatistics",4,"ngIf","ngIfElse"],[3,"statsTypeSelected","haveStatistics"],[1,"col","d-flex","fw-bolder","l2-responsive","justify-content-center","align-items-center"],[1,"col-12","d-flex","d-block","fw-bolder","l2-responsive","justify-content-center","align-items-center"]],template:function(i,n){if(i&1){let l=T();r(0,"div",4)(1,"div",5,0)(3,"div",6)(4,"button",7),y("click",function(){return S(l),M(n.prev())}),x(5,"img",8),a(),x(6,"input",9,1),r(8,"button",10),y("click",function(){return S(l),M(n.next())}),x(9,"img",11),a()()(),v(10,ll,2,2,"ng-container",12),a(),v(11,cl,3,3,"ng-template",null,2,G)(13,pl,3,3,"ng-template",null,3,G)}if(i&2){let l=B(12);d("ngClass",n.gettingStats?"":"content-stats"),o(),d("hidden",n.gettingStats),o(7),d("disabled",n.disabledNextWeek),o(),d("ngClass",n.disabledNextWeek?"disabled":""),o(),d("ngIf",!n.gettingStats)("ngIfElse",l)}},dependencies:[H,A,wt,P],styles:[".week-picker[_ngcontent-%COMP%]{text-align:center}.prevWeek[_ngcontent-%COMP%], .nextWeek[_ngcontent-%COMP%]{background-color:transparent;border:none}img.disabled[_ngcontent-%COMP%]{opacity:.5}.content-stats[_ngcontent-%COMP%]{background-color:#fff}.text-right[_ngcontent-%COMP%]{text-align:right!important}"]})}}return t})()});var bn,yi,yn=b(()=>{bn=Be(Jt());E();yi=(()=>{class t{transform(e,i){return e&&e.sort((n,l)=>{let u=(0,bn.default)(n.trips[0].endDateTime);return(0,bn.default)(l.trips[0].endDateTime).diff(u,"days")}),e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=he({name:"orderByChunk",type:t,pure:!0})}}return t})()});var Mi,Sn=b(()=>{ce();E();R();Ke();yo();Mi=(()=>{class t{constructor(e,i,n){this._translate=e,this._timeZoneService=i,this._languagesService=n}transform(e,i){let n={day:()=>{let l=parseInt(e.split("-")[1]);return l<2?this._languagesService.$localeStream.pipe(Y(u=>this._translate.transform("MYACCOUNT.MY-TRIPS."+e)+" - "+this._timeZoneService.moment().subtract(l,"days").format("DD.MM.YYYY"))):this._languagesService.$localeStream.pipe(Y(u=>this._timeZoneService.moment().subtract(l,"days").format("dddd")+" - "+this._timeZoneService.moment().subtract(l,"days").format("DD.MM.YYYY")))},week:()=>this._languagesService.$translate("MYACCOUNT.MY-TRIPS."+e)};return e.includes("DAY")?n.day():n.week()}static{this.\u0275fac=function(i){return new(i||t)(f(P,16),f(le,16),f(pe,16))}}static{this.\u0275pipe=he({name:"formatChunkName",type:t,pure:!0})}}return t})()});var Mn,et,Lt=b(()=>{Mn=Be(Jt());E();et=(()=>{class t{transform(e,i){return e&&e.sort((n,l)=>{let u=Mn.default.utc(n[i]);return Mn.default.utc(l[i]).diff(u)}),e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=he({name:"orderByDate",type:t,pure:!0})}}return t})()});var wr,Tr=b(()=>{E();Ct();Te();wr=(()=>{class t{constructor(e,i){this._formatTimePipe=e,this._formatDatePipe=i}transform(e,i){return i.includes("DAY")?this._formatTimePipe.transform(e):this._formatDatePipe.transform(e)}static{this.\u0275fac=function(i){return new(i||t)(f(Pe,16),f(J,16))}}static{this.\u0275pipe=he({name:"formatDependingOnDate",type:t,pure:!0})}}return t})()});var Pi,In=b(()=>{E();R();xt();Pi=(()=>{class t{constructor(e,i){this._translate=e,this._languagesService=i}transform(e,i){if(e)return this._languagesService.$translate("MYACCOUNT.MY-PAYMENTS.MONTHS."+e)}static{this.\u0275fac=function(i){return new(i||t)(f(P,16),f(pe,16))}}static{this.\u0275pipe=he({name:"formatMonthName",type:t,pure:!0})}}return t})()});var Tt,Oi=b(()=>{E();R();xt();Tt=(()=>{class t{constructor(e,i){this._translate=e,this._languagesService=i}transform(e,i){if(e)return this._languagesService.$translate("MYACCOUNT.MY-PAYMENTS.STATUS."+e)}static{this.\u0275fac=function(i){return new(i||t)(f(P,16),f(pe,16))}}static{this.\u0275pipe=he({name:"formatTransactionStatus",type:t,pure:!0})}}return t})()});var Ii,wn=b(()=>{E();R();xt();Ii=(()=>{class t{constructor(e,i){this._translate=e,this._languagesService=i}transform(e,i){if(e)return this._languagesService.$translate("MYACCOUNT.MY-PAYMENTS.NATURE."+e)}static{this.\u0275fac=function(i){return new(i||t)(f(P,16),f(pe,16))}}static{this.\u0275pipe=he({name:"formatTransactionNature",type:t,pure:!0})}}return t})()});var vl,Ne,Et=b(()=>{yn();Sn();Lt();Tr();In();Oi();wn();R();E();vl=[yi,Mi,et,wr,Pi,Tt,Ii],Ne=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=ve({type:t})}static{this.\u0275inj=ge({providers:vl,imports:[_e]})}}return t})()});var Ar,Dr=b(()=>{U();R();gi();Cn();bi();yt();Ve();Et();E();Ar=(()=>{class t{static forRoot(){return{ngModule:t,providers:[fe]}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=ve({type:t})}static{this.\u0275inj=ge({imports:[_e,ye,Ie,We,Ne]})}}return t})()});var kr=b(()=>{});var Rr=b(()=>{});var Nr=b(()=>{va();kr();Rr()});function yl(t,s){if(t&1&&(r(0,"span",30),m(1),c(2,"translate"),a()),t&2){let e=g(2);o(),ee(" ",p(2,2,"MYACCOUNT.MY-SUBSCRIPTIONS.NUMBER")," ",e.periodDetails.externalRef," ")}}function Sl(t,s){if(t&1&&(r(0,"span",30),m(1),c(2,"translate"),a()),t&2){let e=g(2);o(),ee(" ",p(2,2,"MYACCOUNT.MY-SUBSCRIPTIONS.NUMBER")," ",e.periodDetails.displayRef," ")}}function Ml(t,s){if(t&1&&(N(0),r(1,"div",31),m(2),c(3,"formatTime"),c(4,"async"),a(),F()),t&2){let e=g(2);o(2),h(" ",p(4,3,p(3,1,e.periodDetails.validityStart))," ")}}function Pl(t,s){if(t&1&&(N(0),r(1,"div",31),m(2),c(3,"formatTime"),c(4,"async"),a(),F()),t&2){let e=g(2);o(2),h(" ",p(4,3,p(3,1,e.periodDetails.validityEnd))," ")}}function Ol(t,s){if(t&1&&(r(0,"div",32)(1,"div",33)(2,"div",34),m(3),c(4,"translate"),a(),r(5,"div",34),m(6),a()(),r(7,"div",34),x(8,"img",35),a()()),t&2){let e=g(2);o(3),h(" ",p(4,3,"MYACCOUNT.MY-SUBSCRIPTIONS.SUPPORT"),": "),o(3),h(" ",e.supp
4ortDetails.name," "),o(2),d("src",e.supportLogo,Le)}}function Il(t,s){t&1&&(r(0,"span"),m(1),c(2,"translate"),a()),t&2&&(o(),C(p(2,1,"CONFIG-OFFER.VU-OFFER.BATTERY-INFORMATION.DESCRIPTION")))}function wl(t,s){if(t&1){let e=T();r(0,"div",36),x(1,"hr",37),v(2,Il,3,3,"span",16),m(3),c(4,"translate"),r(5,"span")(6,"img",38),y("click",function(){S(e);let n=g(2);return M(n.infoBattery())}),a()(),r(7,"div",39),x(8,"i",40),r(9,"a",41),y("click",function(){S(e);let n=g(2);return M(n.goToOffer(n.periodDetails.offer.relatedOffers[0].id))}),m(10),c(11,"translate"),a()(),x(12,"hr",37),a()}if(t&2){let e=g(2);o(2),d("ngIf",e.titleBat),o(),ee(" ( ",e.priceBat," \u20AC ",p(4,4,"OFFERS.BY-MONTH")," ) "),o(7),h(" ",p(11,6,"MYACCOUNT.MY-SUBSCRIPTIONS.LABEL-OPTION-BATTERY")," ")}}function Tl(t,s){if(t&1){let e=T();r(0,"div")(1,"div",44),x(2,"p",45),c(3,"formatDate"),c(4,"async"),a(),r(5,"button",46),y("click",function(){S(e);let n=g(3);return M(n.toggleAutoRenewDesabo())}),m(6),c(7,"translate"),a()()}if(t&2){let e=g(3);o(2),d("translateParams",j(10,Fr,p(4,6,p(3,4,e.dateExpired))))("translate","MYACCOUNT.MY-SUBSCRIPTIONS.DESC-OPTIN-DATE"),o(3),d("ngClass",rt(12,Br,!e.periodDetails.renewalDetails.autoRenewalValue,e.periodDetails.renewalDetails.autoRenewalValue)),o(),h(" ",p(7,8,"MYACCOUNT.MY-SUBSCRIPTIONS.AUTOMATIC-REABO")," ")}}function El(t,s){if(t&1){let e=T();r(0,"div",44),x(1,"p",45),c(2,"formatDate"),c(3,"async"),a(),r(4,"button",46),y("click",function(){S(e);let n=g(3);return M(n.toggleAutoRenew())}),m(5),c(6,"translate"),a()}if(t&2){let e=g(3);o(),d("translateParams",j(10,Fr,p(3,6,p(2,4,e.dateExpired))))("translate","MYACCOUNT.MY-SUBSCRIPTIONS.REABO"),o(3),d("ngClass",rt(12,Br,!e.periodDetails.renewalDetails.autoRenewalValue,e.periodDetails.renewalDetails.autoRenewalValue)),o(),h(" ",p(6,8,"MYACCOUNT.MY-SUBSCRIPTIONS.AUTOMATIC-NOTREABO")," ")}}function Al(t,s){if(t&1&&(r(0,"div",36)(1,"div",18)(2,"span",42),m(3),c(4,"translate"),a()(),v(5,Tl,8,15,"div",43)(6,El,7,15,"ng-template",null,1,G),a()),t&2){let e=B(7),i=g(2);o(3),h(" ",p(4,3,"MYACCOUNT.MY-SUBSCRIPTIONS.REABODESC")," "),o(2),d("ngIf",!i.periodDetails.renewalDetails.autoRenewalValue)("ngIfElse",e)}}function Dl(t,s){t&1&&(r(0,"div")(1,"div",47),x(2,"i",48),r(3,"span",49),m(4),c(5,"translate"),a()()()),t&2&&(o(4),C(p(5,1,"MYACCOUNT.MY-SUBSCRIPTIONS.AUTOMATIC-RENEWAL-MSG")))}function kl(t,s){if(t&1&&(r(0,"div",50),x(1,"i",40),r(2,"a",51),c(3,"localize"),m(4),c(5,"translate"),a()()),t&2){let e=g(2);o(2),d("routerLink",p(3,2,j(6,bl,"/offers/groups/renewal/"+e.periodDetails.subscriptionId))),o(2),h(" ",p(5,4,"MYACCOUNT.MY-SUBSCRIPTIONS.MANUAL-RENEWAL")," ")}}function Rl(t,s){if(t&1){let e=T();r(0,"div",52),x(1,"i",24),r(2,"a",53),y("click",function(){S(e);let n=g(2);return M(n.goToChangeBadgeSubProcess(n.periodDetails))}),m(3),c(4,"translate"),a()()}t&2&&(o(3),h(" ",p(4,1,"MYACCOUNT.MY-SUBSCRIPTIONS.CHANGE-BADGE")," "))}function Nl(t,s){if(t&1){let e=T();r(0,"div",23),x(1,"i",24),r(2,"a",53),y("click",function(){S(e);let n=g(3);return M(n.goToChangeBadgeSubProcess(n.periodDetails))}),m(3),c(4,"translate"),a()()}t&2&&(o(3),h(" ",p(4,1,"MYACCOUNT.MY-SUBSCRIPTIONS.LOST-BADGE")," "))}function Fl(t,s){if(t&1&&(r(0,"div",21),v(1,Nl,5,3,"div",54),a()),t&2){let e=g(2);o(),d("ngIf",e.canUserChangeSupport())}}function Bl(t,s){if(t&1){let e=T();r(0,"div",3)(1,"div",4)(2,"div",5),v(3,yl,3,4,"span",6)(4,Sl,3,4,"ng-template",null,0,G),a(),r(6,"div",7)(7,"div",8)(8,"div",9)(9,"div")(10,"span",10),m(11),a()()()()(),r(12,"div",11),x(13,"span",12),a(),r(14,"div",13)(15,"div",14)(16,"div",15),m(17),c(18,"formatDate"),c(19,"async"),a(),v(20,Ml,5,5,"ng-container",16),a(),r(21,"div"),x(22,"i",17),a(),r(23,"div",14)(24,"div",18),m(25),c(26,"formatDate"),c(27,"async"),a(),v(28,Pl,5,5,"ng-container",16),a()(),v(29,Ol,9,5,"div",19)(30,wl,13,8,"div",20)(31,Al,8,5,"div",20)(32,Dl,6,3,"div",16),r(33,"div")(34,"div",21),v(35,kl,6,8,"div",22),a(),r(36,"div",21)(37,"div",23),x(38,"i",24),r(39,"a",25),y("click",function(){S(e);let n=g();return M(n.openSubscriptionReceipt(n.periodDetails.subscriptionId,n.periodDetails.id))}),m(40),c(41,"translate"),a()()(),r(42,"div",21),v(43,Rl,5,3,"div",26),a(),v(44,Fl,2,1,"div",27),a(),r(45,"div",28)(46,"button",29),y("click",function(){S(e);let n=g();return M(n.iNeedHelp(n.periodDetails))}),m(47),c(48,"translate"),a()()()()}if(t&2){let e=B(5),i=g();o(3),d("ngIf",i.periodDetails.externalSrc&&i.periodDetails.externalSrc==="KIWI")("ngIfElse",e),o(8),h(" ",i.periodDetails.offer.title," "),o(2),d("innerHTML",i.getSanitizedHtml(i.periodDetails.offer.shortDe
4scription),to),o(4),h(" ",p(19,19,p(18,17,i.periodDetails.validityStart))," "),o(3),d("ngIf",i.periodDetails.offer.isShortTermOffer),o(5),h(" ",p(27,23,p(26,21,i.periodDetails.validityEnd))," "),o(3),d("ngIf",i.periodDetails.offer.isShortTermOffer),o(),d("ngIf",i.supportDetails),o(),d("ngIf",i.displayOptionBat),o(),d("ngIf",i.isTaciteDisplayed),o(),d("ngIf",i.periodDetails.renewalDetails.autoRenewalMsg),o(3),d("ngIf",i.periodDetails.renewalDetails.manuRenewalBtn),o(5),h(" ",p(41,25,"MYACCOUNT.MY-SUBSCRIPTIONS.GET-PROOF")," "),o(3),d("ngIf",i.canUserChangeSupport()&&i.periodDetails.offer.badges.length>=1),o(),d("ngIf",i.lostCardEnabled),o(3),h(" ",p(48,27,"MYACCOUNT.MY-SUBSCRIPTIONS.NEED-HELP")," ")}}var Fr,Br,bl,Ti,En=b(()=>{Se();R();He();ce();uo();Nt();Nr();Ke();ft();we();E();Pa();Xi();de();ua();we();Ko();ar();cr();R();ft();Ke();xa();Ga();U();Ve();Te();Ct();at();Fr=t=>({dateExpired:t}),Br=(t,s)=>({"vls-matomo-subscription-autorenew-activate":t,"vls-matomo-subscription-autorenew-deactivate":s}),bl=t=>[t];Ti=(()=>{class t{constructor(e,i,n,l,u,_,O,I,L,ne,Ce,ji,ra,aa,sa,la,ca,pa){this._batteryService=e,this.mySubsSVC=i,this._subscriptionService=n,this._contractFeatureService=l,this.sanitizer=u,this._loaderGlobalService=_,this._myProfileSharedModalService=O,this._infoBatteryModalService=I,this._infoReaboModalService=L,this._fileReaderGlobalService=ne,this._accountService=Ce,this.translatePipe=ji,this._vlsRouter=ra,this._timeZone=aa,this._vlsRouterService=sa,this._translatePipe=la,this._confirmModalService=ca,this._htmlSanitizationUtils=pa,this.titleBat="",this.dateExpired="",this.isTaciteDisplayed=!1,this.lostCardEnabled=!0,this.textNotReabo="MYACCOUNT.MY-SUBSCRIPTIONS.AUTOMATIC-NOTREABO",this.textReabo="MYACCOUNT.MY-SUBSCRIPTIONS.AUTOMATIC-REABO",this.rxSubscriptions=[],this.form=new ct({tacitRenewal:new se(!0)})}ngOnInit(){Jn([this.mySubsSVC.getSubscriptions(),this.mySubsSVC.getCurrentSelectedPeriodWithSupport()]).pipe(be(([e,i])=>this._subscriptionService.getSubscriptionStatus(i.period.subscriptionId).pipe(Y(n=>Object.assign({},i,{status:n,subscriptionDetails:e}))))).subscribe(({period:e,badge:i,badgeImgURL:n,status:l,subscriptionDetails:u})=>{n&&(this.supportLogo=this.sanitizeImage(n)),this.periodDetails=e,this.isTaciteDisplayed=this.canShowTacite(),this.supportDetails=i,this.status=l,this.form.get("tacitRenewal").reset(e.renewalDetails.autoRenewalValue,{emitEvent:!1}),this._loaderGlobalService.showLoadingAnimation(!1),this.periodDetails.offer.relatedOffers.forEach(_=>{if(!Xt(_)&&_.type==="BATTERY")return this.titleBat=_.title,this.priceBat=_.price/100}),this.dateExpired=this.periodDetails.validityEnd,this.displayOptionBat=this.periodDetails&&this._batteryService.displayOptionBat(u,e.type,e.validityEnd,e.offer.relatedOffers)}),this._contractFeatureService.getContractFeatureValue($.Features.lostCardEnabled).subscribe(e=>{e===!1&&(this.lostCardEnabled=!1)})}ngOnDestroy(){this.rxSubscriptions.forEach(e=>e.unsubscribe())}goToOffer(e){if(this._loaderGlobalService.showLoadingAnimation(!0),this.periodDetails.subscriptionId!==void 0){let i={id:st.NEW_SUBSCRIPTION,extras:{queryParams:{subscriptionId:this.periodDetails.subscriptionId,offerId:e}}},n={url:this._vlsRouterService.urlMaker(["/my-account"],{fragment:"SUBSCRIPTIONS"}),transitionPage:{message:"OFFERS.TRANSITION-PAGE.NEW-SUBSCRIPTION-COMPLETED.MESSAGE",buttonLabel:"OFFERS.TRANSITION-PAGE.NEW-SUBSCRIPTION-COMPLETED.BUTTON-LABEL"}};this._loaderGlobalService.showLoadingAnimation(!1),this._vlsRouterService.startSubProcess(i,n)}}sanitizeImage(e){return e.translations?this.sanitizer.bypassSecurityTrustResourceUrl(`data:${e.mimeType};base64,${e.translations.content}`):null}canUserChangeSupport(){return!this.status.isStatusIncluded(ti.SUPPORT_ORDER_IN_PROGRESS)&&(this.periodDetails.offer.isLongTermOffer||this.periodDetails.offer.isParkingLotOffer)&&!this.status.isStatusIncluded(ti.EXPIRED)&&!this.status.isStatusIncluded(ti.CLOSED)}iNeedHelp(e){let i={complaintType:Mt.Type.subscription,TransactionId:this.getTransactionId(e),SubscriptionId:e.subscriptionId},n=this._timeZone.formatToLocaleTimeZoneFromUtcDate(this.periodDetails.validityStart,le.FORMAT.ShortDate),l=this._timeZone.formatToLocaleTimeZoneFromUtcDate(this.periodDetails.validityEnd,le.FORMAT.ShortDate);dt(this._accountService.currentUserAccount(),n,l).pipe(Y(u=>{let _=u[0],O=u[1],I=u[2],L=this.translatePipe.transform("MYACCOUNT.MY-SUBSCRIPTIONS.SUBSCRIPTION-NUMBER"),ne=this.translatePipe.transform("MYACCOUNT.MY-SUBSCRIPTIONS.OFFER"),Ce=this.translatePipe.transform("MYACCOUNT.MY-SUBSCRIPTIONS.STARTING-DATE"),ji=this.translatePipe.transform("MYACCOUNT.MY-SUBSCRIPTIONS.ENDING-DATE");return[_.email,`${_.firstName} ${_.lastName} ${_.phoneNumber}`,L+this.getSubscriptionId(e),ne+this.periodDetails.offer.title,Ce+O,ji+I]})).subscribe(u=>this._myProfileSharedModalService.openModalINeedHelp(i,u))}infoBattery(){this._infoBatteryModalService.openModalInfoBattery({priceBat:this.priceBat,titleBat:this.titleBat,paymentMonthly:this._translatePipe.transform("CONFIG-OFFER.VU-OFFER.BATTERY-INFORMATION.MONTH")})}toggleAutoRenew(){this._infoReaboModalService.openModalReabo({dateExpired:this.dateExpired}),this.rxSubscriptions.push(this._infoReaboModalService.infoReaboModalValue$.subscribe(e=>{this.rxSubscriptions.push(this._subscriptionService.patchSubscription(this.periodDetails.subscriptionId,{isAutoRenewal:e}).subscribe(()=>this.periodDetails.renewalDetails.autoRenewalValue=e))}))}toggleAutoRenewDesabo(){this.rxSubscriptions.push(this._subscriptionService.patchSubscription(this.periodDetails.subscriptionId,{isAutoRenewal:!0}).subscribe(()=>this.periodDetails.renewalDetails.autoRenewalValue=!0))}getTransactionId(e){return e.externalRef&&e.externalSrc?e.externalSrc==="KIWI"?e.externalRef:e.transactionId.toString():e.displayRef}getSubscriptionId(e){return e.externalSrc&&e.externalSrc==="KIWI"?e.externalRef:e.displayRef}goToChangeBadgeSubProcess(e){let i={id:st.CHANGE_BADGE,params:[{id:e.id}],extras:{queryParams:{subscriptionId:e.subscriptionId,offerId:e.offer.id}}},n={url:this._vlsRouter.urlMaker(["/my-account"],{fragment:"SUBSCRIPTIONS",queryParams:{id:e.id}}),transitionPage:{buttonLabel:"BUTTON.REDIRECT_ME",message:"CONFIG-OFFER.SUCCESS.CHANGE_BADGE"}};this._vlsRouter.startSubProcess(i,n)}openSubscriptionReceipt(e,i){return this._fileReaderGlobalService.subscriptionPeriodReceipt(e,i).pipe(Ue(1)).subscribe(()=>{},()=>{this._loaderGlobalService.showLoadingAnimation(!1),this._confirmModalService.confirm("CONFIG-OFFER.ERRORS.GENERIC_MESSAGE","APP.OUPS","modal-md vls-matomo-error vls-matomo-subscription-receipt-error",[{label:"OK",type:"OK"}])})}selectedSubscriptionIsExpired(e){return this._timeZone.moment(e+"Z").isBefore(this._timeZone.moment().utc())}canShowTacite(){return this.periodDetails.offer.isLongTermOffer===!0&&this.periodDetails.offer.renewal.isAuto===!0&&!this.selectedSubscriptionIsExpired(this.periodDetails.validityEnd)}getSanitizedHtml(e){return e?this._htmlSanitizationUtils.sanitizeHtml(e):null}static{this.\u0275fac=function(i){return new(i||t)(f(ko),f(St),f(Ze),f(oe),f(so),f(Z),f(me),f(li),f(pi),f(di),f(Me),f(P),f(lt),f(le),f(lt),f(P),f(Mo),f(nr))}}static{this.\u0275cmp=w({type:t,selectors:[["vls-my-subscriptions-detail
4s"]],features:[re([P])],decls:1,vars:1,consts:[["elseSubNumber",""],["reaboAuto",""],["class","container","xmlns","http://www.w3.org/1999/html",4,"ngIf"],["xmlns","http://www.w3.org/1999/html",1,"container"],[1,"px-md-3","py-3"],[1,"subscription-number"],["class","l4-responsive text-muted sub-number",4,"ngIf","ngIfElse"],[1,"subscription-info-top","mt-2","mb-2","row"],[1,"left","col-10"],[1,"wrapper"],[1,"text-dark","fw-bolder"],[1,"mb-2"],[1,"text-dark","fw-bolder-3",3,"innerHTML"],[1,"col-12","mt-4","d-inline-flex","justify-content-around","align-items-center"],[1,"date-container"],[1,"text-dark","fw-bolder-3"],[4,"ngIf"],["aria-hidden","true",1,"fa","fa-chevron-right"],[1,"text-dark"],["class","d-flex flex-row align-items-center justify-content-between my-2 col-12",4,"ngIf"],["class","l5-responsive fw-bolder",4,"ngIf"],[1,"row"],["class","col-12 mt-4",4,"ngIf"],[1,"col-12","mt-2"],["aria-hidden","true",1,"fa","fa-chevron-right","text-primary","m-2"],["data-test-id","subscription-receipt-link",1,"link","l5-responsive","text-decoration-none","vls-matomo-download-receipt-subscription",3,"click"],["class","col-12 mt-2","data-test-id","badge-change-btn",4,"ngIf"],["class","row",4,"ngIf"],[1,"col-12","mt-4","mb-4","d-flex","justify-content-center"],[1,"btn","btn-vls","btn-outline-black","rounded-3",3,"click"],[1,"l4-responsive","text-muted","sub-number"],[1,"text-muted-4"],[1,"d-flex","flex-row","align-items-center","justify-content-between","my-2","col-12"],[1,"d-flex","flex-xl-row","flex-md-column","fw-bolder","l5-responsive","col-6"],[1,"m-1"],["alt","Logo badge",1,"img-fluid","m-1","max-width-100",3,"src"],[1,"l5-responsive","fw-bolder"],[1,"mx-4"],["src","assets/icons/svg/information.svg","alt","Picto check information",1,"mb-2","check-form-validated-img","informationButton",3,"click"],[1,"py-3"],["aria-hidden","true","data-test-id","manual-renewal-access",1,"fa","fa-chevron-right","text-primary","m-2"],[1,"link","l5-responsive","text-decoration-none",3,"click"],[1,"fw-bolder-3","py-2","l4-responsive"],[4,"ngIf","ngIfElse"],[1,"text-dark","py-3"],[1,"text-bold",3,"translateParams","translate"],[1,"btn","btn-primary","btn-vls","text-uppercase","rounded-3",3,"click","ngClass"],[1,"justify-content-left","d-flex","align-items-center","px-0"],["aria-hidden","true",1,"fa","fa-info-circle","mr-2","fa-icon-primary"],[1,"l4-responsive","fw-bolder","text-primary"],[1,"col-12","mt-4"],[1,"link","l5-responsive","text-decoration-none",3,"routerLink"],["data-test-id","badge-change-btn",1,"col-12","mt-2"],["href","javascript:void(0)",1,"link","l5-responsive","text-decoration-none",3,"click"],["class","col-12 mt-2",4,"ngIf"]],template:function(i,n){i&1&&v(0,Bl,49,29,"div",2),i&2&&d("ngIf",n.periodDetails)},dependencies:[po,H,A,Ee,P,V,J,Pe,qe],styles:["body[_ngcontent-%COMP%], html[_ngcontent-%COMP%]{font-family:Raleway Regular}[_nghost-%COMP%] .date-container[_ngcontent-%COMP%]{text-align:center;background:#fff;border-radius:100em;padding:10px}@media (max-width: 992px){[_nghost-%COMP%] .date-container[_ngcontent-%COMP%]{background:#eee}}[_nghost-%COMP%] .informationButton[_ngcontent-%COMP%]{cursor:pointer}[_nghost-%COMP%] .img-fluid[_ngcontent-%COMP%]{max-width:87%!important}"]})}}return t})()});var Yr=b(()=>{En()});function Vl(t,s){if(t&1&&(r(0,"span",24),m(1),c(2,"translate"),a()),t&2){let e=g().$implicit;o(),ee(" ",p(2,2,"MYACCOUNT.MY-SUBSCRIPTIONS.NUMBER")," ",e.externalRef,"")}}function $l(t,s){if(t&1&&(r(0,"span",24),m(1),c(2,"translate"),a()),t&2){let e=g().$implicit;o(),ee("",p(2,2,"MYACCOUNT.MY-SUBSCRIPTIONS.NUMBER")," ",e.displayRef,"")}}function Gl(t,s){t&1&&(r(0,"a",25),x(1,"i",26),a())}function Hl(t,s){if(t&1&&(N(0),r(1,"div",5)(2,"div",6)(3,"a",7)(4,"div",8)(5,"div",9)(6,"div",10)(7,"div",11)(8,"span",12),m(9),a()()()(),r(10,"div",13)(11,"div",14)(12,"div",15),v(13,Vl,3,4,"span",16)(14,$l,3,4,"ng-template",null,1,G),a(),r(16,"div",17)(17,"span",18),m(18),c(19,"formatDate"),c(20,"async"),a(),r(21,"span",19),x(22,"i",20),a(),r(23,"span",21),m(24),c(25,"formatDate"),c(26,"async"),a()()()()()()(),r(27,"div",22),v(28,Gl,2,0,"a",23),a()(),F()),t&2){let e=s.$implicit,i=B(15),n=g(2);o(3),d("routerLink",je(17,Ul))("queryParams",rt(18,Ll,e.subscriptionId,e.id)),o(),d("ngClass",j(21,jl,n.selectedPeriodId==e.id)),o(5),
4C(e.offer==null?null:e.offer.title),o(4),d("ngIf",e.externalSrc&&e.externalSrc==="KIWI")("ngIfElse",i),o(5),h(" ",p(20,11,p(19,9,e.validityStart)),""),o(6),h(" ",p(26,15,p(25,13,e.validityEnd)),""),o(4),d("ngIf",n.selectedPeriodId==e.id)}}function zl(t,s){if(t&1&&v(0,Hl,29,23,"ng-container",4),t&2){let e=s.concatenatedPeriods;d("ngForOf",e)}}function Wl(t,s){t&1&&(r(0,"div",29)(1,"div",11),m(2),c(3,"translate"),a()()),t&2&&(o(2),h(" ",p(3,1,"MYACCOUNT.MY-SUBSCRIPTIONS.CURRENT-SUBSCRIPTIONS")," "))}function ql(t,s){t&1&&Qt(0)}function Ql(t,s){t&1&&(r(0,"div",29)(1,"div",11),m(2),c(3,"translate"),a()()),t&2&&(o(2),h(" ",p(3,1,"MYACCOUNT.MY-SUBSCRIPTIONS.HISTORY")," "))}function Zl(t,s){t&1&&Qt(0)}function Kl(t,s){t&1&&(r(0,"div",29)(1,"div",11),m(2),c(3,"translate"),a()()),t&2&&(o(2),h(" ",p(3,1,"MYACCOUNT.MY-SUBSCRIPTIONS.HISTORY")," "))}function Jl(t,s){t&1&&Qt(0)}function Xl(t,s){if(t&1&&(r(0,"div",2),v(1,Wl,4,3,"div",27),c(2,"async"),v(3,ql,1,0,"ng-container",28),c(4,"async"),v(5,Ql,4,3,"div",27),c(6,"async"),v(7,Zl,1,0,"ng-container",28),c(8,"async"),v(9,Kl,4,3,"div",27),c(10,"async"),v(11,Jl,1,0,"ng-container",28),c(12,"async"),a()),t&2){let e,i,n,l=g(),u=B(1);o(),d("ngIf",((e=p(2,9,l.currentPeriods$))==null?null:e.length)>0),o(2),d("ngTemplateOutlet",u)("ngTemplateOutletContext",j(21,An,p(4,11,l.currentPeriods$))),o(2),d("ngIf",((i=p(6,13,l.pastAndLockedPeriods$))==null?null:i.length)>0),o(2),d("ngTemplateOutlet",u)("ngTemplateOutletContext",j(23,An,p(8,15,l.pastAndLockedPeriods$))),o(2),d("ngIf",((n=p(10,17,l.lockedPeriods$))==null?null:n.length)>0),o(2),d("ngTemplateOutlet",u)("ngTemplateOutletContext",j(25,An,p(12,19,l.lockedPeriods$)))}}var Ul,Ll,jl,An,Ei,Dn=b(()=>{He();ma();ce();E();Xi();Ca();de();xt();Ve();Ke();U();R();Te();Ul=()=>[],Ll=(t,s)=>({id:t,period:s}),jl=t=>({active:t}),An=t=>({concatenatedPeriods:t});Ei=(()=>{class t{constructor(e,i,n,l,u,_,O,I){this._mySubsService=e,this._subscriptionService=i,this._loaderGlobService=n,this._languageService=l,this._accountService=u,this.activatedRoute=_,this.router=O,this._timeZone=I,this.$onDestroy=new Ye}ngOnInit(){this.allConsolidatedPeriods$=this._mySubsService.consolidatePeriod(this.allSubscriptions),this.currentPeriods$=this.allConsolidatedPeriods$.pipe(Gt(),nt(this.$onDestroy),Y(e=>e.filter(i=>!i.isLocked&&this.isAfterNow(i.validityEnd)))),this.lockedPeriods$=this.allConsolidatedPeriods$.pipe(Gt(),nt(this.$onDestroy),Y(e=>e.filter(i=>i.isLocked&&this.isBeforeNow(i.validityStart)&&this.isAfterNow(i.validityEnd)||i.isLocked&&this.isAfterNow(i.validityEnd)))),this.pastPeriods$=this.allConsolidatedPeriods$.pipe(Gt(),nt(this.$onDestroy),Y(e=>e.filter(i=>this.isBeforeNow(i.validityEnd)))),this.pastAndLockedPeriods$=Xn(this.lockedPeriods$,this.pastPeriods$),this.allConsolidatedPeriods$.pipe(Ue(1)).subscribe(()=>{this._loaderGlobService.$loading.next({showAnimation:!1})}),this._languageService.$localeStream.pipe(nt(this.$onDestroy)).pipe(be(()=>this.activatedRoute.queryParams.pipe(it(e=>e.id&&e.period))),Ge(()=>this._loaderGlobService.showLoadingAnimation(!0))).subscribe(e=>{this.selectedPeriodId=e.period,this._mySubsService.showConsolidatedPeriodDetails(e.period)}),this._languageService.$localeStream.pipe(nt(this.$onDestroy),be(()=>eo(this.activatedRoute.queryParams.pipe(Ue(1)),this.currentPeriods$))).subscribe(e=>{let i=e[0],n=e[1];if(n.length>0&&(this.currentConsolidatedPeriods={concatenatedPeriods:n},this.isCurrentOrFuturePeriod=n.length>0,this.ngGetSubcriptionExpiredSoon(n),!this.isExpiredSoon))if(i.id&&i.period)this._mySubsService.showConsolidatedPeriodDetails(i.period);else{let{id:l,subscriptionId:u}=n[0];this.router.navigate([],{queryParams:{id:u,period:l},fragment:"SUBSCRIPTIONS"})}this._loaderGlobService.$loading.next({showAnimation:!1})}),this.pastPeriods$.pipe(nt(this.$onDestroy)).subscribe(e=>{this._loaderGlobService.$loading.next({showAnimation:!1}),this.pastSubscriptions={concatenatedPeriods:e},this.isPastPeriod=e.length>0})}ngOnDestroy(){this.$onDestroy.next(!0),this.$onDestroy.complete()}ngGetSubcriptionExpiredSoon(e){this._accountService.getAccountAlerts().subscribe(i=>{e.forEach(n=>{i.length>0&&n.subscriptionId==i[0].subscriptionId&&(this.expiredSoonId=n.id,this.isExpiredSoon=!0)}),this.isExpiredSoon&&this.router.navigate([],{queryParams:{id:i[0].subscriptionId,period:this.expiredSoonId},fragment:"SUBSCRIPTIONS"})})}isBeforeNow(e){return this._timeZone.moment(e+"Z").isBefore(this._timeZone.moment().utc())}isAfterNow(e){return this._timeZone.moment(e+"Z").isAfter(this._timeZone.moment().utc())}static{this.\u0275fac=function(i){return new(i||t)(f(St),f(Ze),f(Z),f(pe),f(Me),f(lo),f(co),f(le))}}static{this.\u0275cmp=w({type:t,selectors:[["vls-my-subscriptions-list"]],inputs:{allSubscriptions:"allSubscriptions"},decls:3,vars:1,consts:[["subscriptionsTemplate",""],["elsesubNumber",""],[1,"position-relative"],["class","position-relative",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"row","d-flex","align-items-center","line","line-item"],[1,"col"],["fragment","SUBSCRIPTIONS",3,"routerLink","queryParams"],[1,"row","d-flex","align-items-center","line","line-item","justify-content-between",3,"ngClass"],[1,"fw-bolder","col-xl-3","col-sm-3"],[1,"row","d-flex","align-items-center"],[1,"col-12"],[1,"l4-responsive","fw-bolder-black-normal","sub-title","m-0"],[1,"col-8","col-sm-9"],[1,"row"],[1,"col-3","d-flex","justify-content-start"],["class","l4-responsive text-muted sub-number",4,"ngIf","ngIfElse"],[1,"col-7","d-flex","justify-content-end"],[1,"l4-responsive","text-regular-black-normal","mr-1","mx-2"],[1,"mb-4","d-flex","align-items-center","l6-responsive","text-regular-black-normal"],["aria-hidden","true",1,"fa","fa-chevron-right","mt-2"],[1,"l4-responsive","text-regular-black-normal","ml-1","mx-2"],[1,"d-flex","justify-content-end","position-absolute","end-O"],["class","btn-floating btn-sm-floating btn-action justify-content-end hidden-md-down box-shadow","id","btn-chevron","data-test-id","subscription-{period.id}",4,"ngIf"],[1,"l4-responsive","text-muted","sub-number"],["id","btn-chevron","data-test-id","subscription-{period.id}",1,"btn-floating","btn-sm-floating","btn-action","justify-content-end","hidden-md-down","box-shadow"],["aria-hidden","true",1,"fa","fa-chevron-right","text-primary"],["class","l5-responsive text-uppercase text-regular-black-italic row d-flex align-items-center line",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"l5-responsive","text-uppercase","text-regular-black-italic","row","d-flex","align-items-center","line"]],template:function(i,n){i&1&&v(0,zl,1,1,"ng-template",2,0,G)(2,Xl,13,27,"div",3),i&2&&(o(2),d("ngIf",n.pastAndLockedPeriods$||n.currentPeriods$))},dependencies:[H,ae,A,ro,Ee,P,V,J],styles:["[_nghost-%COMP%] #btn-chevron[_ngcontent-%COMP%]{left:50px!important}","body[_ngcontent-%COMP%], html[_ngcontent-%COMP%]{font-family:Raleway Regular}.list-container[_ngcontent-%COMP%]{z-index:10;background-color:#fff}.details-container[_ngcontent-%COMP%]{box-shadow:4px 3px 16px #00000029,2px 0 8px #0000003b;position:relative;
4left:-2px;z-index:9;background-color:#eee}.line[_ngcontent-%COMP%]{height:4.375em}.line[_ngcontent-%COMP%]:not(:last-child){border-bottom:solid #cdcdcd 1px}.line.line-item[_ngcontent-%COMP%]{border-bottom:solid #cdcdcd 1px}.line.line-item[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:#cdcdcd;-webkit-transition:all .28s ease;transition:all .28s ease}.line.line-item.active[_ngcontent-%COMP%]{background-color:#f4f4f480;-webkit-transition:all .28s ease;transition:all .28s ease}.line.line-item.active[_ngcontent-%COMP%] .sub-title[_ngcontent-%COMP%]{color:#0094aa}.line[_ngcontent-%COMP%] .highlight-item[_ngcontent-%COMP%]{height:2.5em;line-height:2.5em;background:#fff;border-radius:100em}@media (max-width: 575.98px){.resp-bike[_ngcontent-%COMP%]{max-width:50px;height:22px}}@media (min-width: 576px) and (max-width: 767.98px){.resp-bike[_ngcontent-%COMP%]{max-width:50px;height:22px}}@media (min-width: 768px) and (max-width: 991.98px){.resp-bike[_ngcontent-%COMP%]{width:36px;height:22px}}@media (min-width: 992px) and (max-width: 1199.98px){.resp-bike[_ngcontent-%COMP%]{width:56px;height:42px}}@media (min-width: 1200px) and (max-width: 1399.98px){.resp-bike[_ngcontent-%COMP%]{width:56px;height:42px}}.price-trip[_ngcontent-%COMP%]{height:60%;margin-top:auto;margin-bottom:auto;border-radius:15px;background-color:#eee}.price-trip[_ngcontent-%COMP%] .price-number[_ngcontent-%COMP%]{vertical-align:sub}.price-trip[_ngcontent-%COMP%] .text-asterix[_ngcontent-%COMP%]{color:#0094aa}.bonus-total[_ngcontent-%COMP%]{vertical-align:sub}.user-rewards[_ngcontent-%COMP%]{position:relative;right:10%}.text-block[_ngcontent-%COMP%]{display:flex;position:absolute;top:12px;left:5px;color:#0094aa}@media (max-width: 767.98px){.text-block[_ngcontent-%COMP%]{left:10px}}@media (max-width: 575.98px){.text-block[_ngcontent-%COMP%]{left:6px;top:10px}}.bonus-container[_ngcontent-%COMP%]{position:relative;max-width:50px;max-height:50px}@media (max-width: 575.98px){.bonus-container[_ngcontent-%COMP%]{max-width:40px;max-height:40px}}.bonus-won-container[_ngcontent-%COMP%]{background-image:url(/assets/icons/svg/macaron-rewards-positif.svg)}.bonus-lost-container[_ngcontent-%COMP%]{background-image:url(/assets/icons/svg/macaron-rewards-negatif.svg);color:#0094aa}.bonus-neutre-container[_ngcontent-%COMP%]{background-image:url(/assets/icons/svg/macaron-rewards-neutre.svg);color:#fff}.rewards-points[_ngcontent-%COMP%]{margin-top:-15%}.bonus-won-container[_ngcontent-%COMP%], .bonus-lost-container[_ngcontent-%COMP%], .bonus-neutre-container[_ngcontent-%COMP%]{background-repeat:no-repeat;background-color:transparent;background-size:contain;background-position:50%;min-height:50px;margin-left:-40%}@media (max-width: 575.98px){.bonus-won-container[_ngcontent-%COMP%], .bonus-lost-container[_ngcontent-%COMP%], .bonus-neutre-container[_ngcontent-%COMP%]{margin-left:0}}@media (min-width: 576px) and (max-width: 767.98px){.bonus-won-container[_ngcontent-%COMP%], .bonus-lost-container[_ngcontent-%COMP%], .bonus-neutre-container[_ngcontent-%COMP%]{margin-left:0}}.content-rewards[_ngcontent-%COMP%]{padding:3rem!important;margin-top:-64px}.bonus-icon[_ngcontent-%COMP%]{margin-left:-22%!important}.reward-points[_ngcontent-%COMP%]{margin-top:-8%}a[_ngcontent-%COMP%]{text-decoration:none!important;color:#1a171b}a[_ngcontent-%COMP%] a.hover[_ngcontent-%COMP%]{color:#0094aa}"]})}}return t})()});var Ur=b(()=>{Dn()});function nc(t,s){if(t&1){let e=T();r(0,"div",9)(1,"div",10)(2,"vls-my-subscriptions-list",11),y("click",function(){S(e),g(2);let n=B(8);return M(n.openModal("xs-md-sm"))}),a()(),r(3,"div",12),x(4,"vls-my-subscriptions-details"),a()()}if(t&2){let e=g(2);o(2),d("allSubscriptions",e.allSubscriptions)}}function oc(t,s){if(t&1&&(N(0),v(1,nc,5,1,"div",8),F()),t&2){let e=g(),i=B(6);o(),d("ngIf",e.haveSubs)("ngIfElse",i)}}function rc(t,s){t&1&&(r(0,"div",13),m(1),c(2,"translate"),a()),t&2&&(o(),h(" ",p(2,1,"MYACCOUNT.MY-SUBSCRIPTIONS.FETCHING-SUBSCRIPTIONS")," "))}function ac(t,s){t&1&&(r(0,"div",14),m(1),c(2,"translate"),a(),r(3,"div",15)(4,"button",16),c(5,"localize"),m(6),c(7,"translate"),a()()),t&2&&(o(),h(" ",p(2,3,"MYACCOUNT.MY-SUBSCRIPTIONS.HAVING-NO-SUBSCRIPTION")," "),o(3),d("routerLink",p(5,5,je(9,ic))),o(2),C(p(
47,7,"OFFERS.DISCOVERS-OFFERS")))}var ic,kn,Rn=b(()=>{da();ce();E();Oo();de();U();Ft();Ve();En();Dn();R();at();ic=()=>["/offers/groups"];kn=(()=>{class t{constructor(e,i){this.subscriptionService=e,this._offerSVC=i,this.haveSubs=void 0,this.gettingSubs=!0}ngOnInit(){this.subscriptionService.getUserSubscriptions({periods:"CURRENT,FUTURE,PAST",sort:"DESC"}).pipe(Ge(e=>{this.allSubscriptions=Kn(e),e.forEach(i=>{i.periods.forEach(n=>{this._offerSVC.fetchOneOffer(n.offerId).subscribe(l=>{if(l){let u=i.periods.map(_=>Object.assign({},_,{offer:l}));return Object.assign({},i,{periods:u})}})})}),this.gettingSubs=!1,this.haveSubs=e.length>0})).subscribe()}static{this.\u0275fac=function(i){return new(i||t)(f(Ze),f(Qe))}}static{this.\u0275cmp=w({type:t,selectors:[["vls-my-subscriptions"]],decls:11,vars:3,consts:[["loading",""],["noSubs",""],["modal",""],[1,"container"],[1,"row"],[4,"ngIf","ngIfElse"],[3,"initialState"],[1,"modal-body"],["class","col d-flex align-items-strech",4,"ngIf","ngIfElse"],[1,"col","d-flex","align-items-strech"],[1,"d-inline","col-xl-8","col-lg-8","col-md-12","col-sm-12","col-xs-12","box-shadow","list-container"],[1,"d-block","p-3",3,"click","allSubscriptions"],[1,"box-shadow","hidden-md-down","details-container"],[1,"col","d-flex","fw-bolder","l2-responsive","justify-content-center","align-items-center"],[1,"col-12","d-flex","d-block","fw-bolder","l2-responsive","justify-content-center","align-items-center"],[1,"col-12","d-flex","d-block","fw-bolder","justify-content-center","align-items-center","my-5"],[1,"btn","btn-primary","btn-vls","rounded-3","text-uppercase",3,"routerLink"]],template:function(i,n){if(i&1&&(r(0,"div",3)(1,"div",4),v(2,oc,2,2,"ng-container",5)(3,rc,3,3,"ng-template",null,0,G)(5,ac,8,10,"ng-template",null,1,G),a()(),r(7,"vls-modal",6,2)(9,"div",7),x(10,"vls-my-subscriptions-details"),a()()),i&2){let l=B(4);o(2),d("ngIf",!n.gettingSubs)("ngIfElse",l),o(5),d("initialState",!1)}},dependencies:[A,ke,Ee,Ti,Ei,P,qe],styles:["body[_ngcontent-%COMP%], html[_ngcontent-%COMP%]{font-family:Raleway Regular}.list-container[_ngcontent-%COMP%]{z-index:10;background-color:#fff}.details-container[_ngcontent-%COMP%]{box-shadow:4px 3px 16px #00000029,2px 0 8px #0000003b;position:relative;left:-2px;z-index:9;background-color:#eee}.line[_ngcontent-%COMP%]{height:4.375em}.line[_ngcontent-%COMP%]:not(:last-child){border-bottom:solid #cdcdcd 1px}.line.line-item[_ngcontent-%COMP%]{border-bottom:solid #cdcdcd 1px}.line.line-item[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:#cdcdcd;-webkit-transition:all .28s ease;transition:all .28s ease}.line.line-item.active[_ngcontent-%COMP%]{background-color:#f4f4f480;-webkit-transition:all .28s ease;transition:all .28s ease}.line.line-item.active[_ngcontent-%COMP%] .sub-title[_ngcontent-%COMP%]{color:#0094aa}.line[_ngcontent-%COMP%] .highlight-item[_ngcontent-%COMP%]{height:2.5em;line-height:2.5em;background:#fff;border-radius:100em}@media (max-width: 575.98px){.resp-bike[_ngcontent-%COMP%]{max-width:50px;height:22px}}@media (min-width: 576px) and (max-width: 767.98px){.resp-bike[_ngcontent-%COMP%]{max-width:50px;height:22px}}@media (min-width: 768px) and (max-width: 991.98px){.resp-bike[_ngcontent-%COMP%]{width:36px;height:22px}}@media (min-width: 992px) and (max-width: 1199.98px){.resp-bike[_ngcontent-%COMP%]{width:56px;height:42px}}@media (min-width: 1200px) and (max-width: 1399.98px){.resp-bike[_ngcontent-%COMP%]{width:56px;height:42px}}.price-trip[_ngcontent-%COMP%]{height:60%;margin-top:auto;margin-bottom:auto;border-radius:15px;background-color:#eee}.price-trip[_ngcontent-%COMP%] .price-number[_ngcontent-%COMP%]{vertical-align:sub}.price-trip[_ngcontent-%COMP%] .text-asterix[_ngcontent-%COMP%]{color:#0094aa}.bonus-total[_ngcontent-%COMP%]{vertical-align:sub}.user-rewards[_ngcontent-%COMP%]{position:relative;right:10%}.text-block[_ngcontent-%COMP%]{display:flex;position:absolute;top:12px;left:5px;color:#0094aa}@media (max-width: 767.98px){.text-block[_ngcontent-%COMP%]{left:10px}}@media (max-width: 575.98px){.text-block[_ngcontent-%COMP%]{left:6px;top:10px}}.bonus-container[_ngcontent-%COMP%]{position:relative;max-width:50px;max-height:50px}@media (max-width: 575.98px){.bonus-container[_ngcontent-%COMP%]{max-width:40px;max-height:40px}}.bonus-won-container[_ngcontent-%COMP%]{background-image:url(/assets/icons/svg/macaron-rewards-positif.svg)}.bonus-lost-container[_ngcontent-%COMP%]{background-image:url(/assets/icons/svg/macaron-rewards-negatif.svg);color:#0094aa}.bonus-neutre-container[_ngcontent-%COMP%]{background-image:url(/assets/icons/svg/macaron-rewards-neutre.svg);color:#fff}.rewards-points[_ngcontent-%COMP%]{margin-top:-15%}.bonus-won-container[_ngcontent-%COMP%], .bonus-lost-container[_ngcontent-%COMP%], .bonus-neutre-container[_ngcontent-%COMP%]{background-repeat:no-repeat;background-color:transparent;background-size:contain;background-position:50%;min-height:50px;margin-left:-40%}@media (max-width: 575.98px){.bonus-won-container[_ngcontent-%COMP%], .bonus-lost-container[_ngcontent-%COMP%], .bonus-neutre-container[_ngcontent-%COMP%]{margin-left:0}}@media (min-width: 576px) and (max-width: 767.98px){.bonus-won-container[_ngcontent-%COMP%], .bonus-lost-container[_ngcontent-%COMP%], .bonus-neutre-container[_ngcontent-%COMP%]{margin-left:0}}.content-rewards[_ngcontent-%COMP%]{padding:3rem!important;margin-top:-64px}.bonus-icon[_ngcontent-%COMP%]{margin-left:-22%!important}.reward-points[_ngcontent-%COMP%]{margin-top:-8%}a[_ngcontent-%COMP%]{text-decoration:none!important;
4color:#1a171b}a[_ngcontent-%COMP%] a.hover[_ngcontent-%COMP%]{color:#0094aa}"]})}}return t})()});var Lr,jr=b(()=>{U();Se();Ve();R();at();yt();Et();Yr();Ur();Rn();Xi();E();Lr=(()=>{class t{static forRoot(){return{ngModule:t,providers:[St]}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=ve({type:t})}static{this.\u0275inj=ge({imports:[_e,ye,Ie,Ae,De,We,ut,Ne]})}}return t})()});function lc(t){return["JAN","FEV","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"][t]}var jt,tt,Fe,At=b(()=>{jt=Be(Hi()),tt=Be(Jt());He();ce();ha();E();de();Fe=(()=>{class t{constructor(e,i){this._paymentsCoreService=e,this._offersService=i,this.PaymentSelected$=new Ye,this.PaymentOffer$=new Ye,this.today=(0,tt.default)(),this.userOffers$=new Ye,this.selectedTransactionSales$=new Ye,this.getUserOffersIds()}static groupByYear(e){return(0,tt.default)(e.createdAt).year()}groupByMonth(e){let i=(0,tt.default)(e.createdAt);return tt.default.defineLocale("no",{parentLocale:"nb"}),tt.default.locale(navigator.language),lc(i.month())}get userTransactions$(){return this._paymentsCoreService.fetchTransactions().pipe(Y(e=>{if(e.length>0){let i=e.filter(n=>n.status!==Wi.Status.TO_INVOICE&&n.status!==Wi.Status.TO_DO).sort((n,l)=>{let u=(0,tt.default)(n.createdAt);return(0,tt.default)(l.createdAt).diff(u)});return i.length>0&&this.selectTransaction(i[0]),i}}),Y(e=>(0,jt.groupBy)(e,t.groupByYear.bind(this))),Y(e=>{let i=[];return Object.keys(e).forEach(n=>{let l=[],u=(0,jt.groupBy)(e[n],this.groupByMonth.bind(this));Object.keys(u).forEach(_=>{l.push({month:_,payments:u[_]})}),i.push({year:n,months:l})}),(0,jt.sortBy)(i).reverse()}))}selectTransaction(e){this.PaymentSelected$.next(e),this.selectedTransactionSales$=this.getTransactionDetails(e.id)}getPaymentBalance(){return this._paymentsCoreService.fetchPaymentBalance()}getUserOffersIds(){this._offersService.fetchAllOffersIdsFilteredOnAccount().subscribe(e=>{this.userOffers$.next(e)})}getTransactionWithDetails(e){return this._paymentsCoreService.fetchTransactionWithDetails(e)}getTransactionDetails(e){return this.getTransactionWithDetails(e).pipe(Y(i=>i.sales))}getAnOffer(e){return this._offersService.fetchOneOffer(e)}static{this.\u0275fac=function(i){return new(i||t)(mt(Po),mt(Qe))}}static{this.\u0275prov=Ht({token:t,factory:t.\u0275fac})}}return t})()});function pc(t,s){if(t&1&&(r(0,"span",14),m(1),a()),t&2){let e=g();o(),C(e.transOffer.title)}}function dc(t,s){t&1&&(r(0,"a",15),x(1,"i",16),a())}var cc,Di,Nn=b(()=>{ce();E();At();de();U();bt();Te();Oi();cc=(t,s,e)=>({"fw-bolder-light-green-normal":t,"fw-bolder text-primary":s,"fw-bolder black-normal":e});Di=(()=>{class t{constructor(e,i){this._myPaymentsService=e,this._offersService=i}ngOnInit(){this.getOfferName(this.transaction.offerId)}getOfferName(e){this._offersService.fetchAllOffersIdsFilteredOnAccount().pipe(Y(i=>i.filter(n=>n===e))).subscribe(i=>{if(i.length)return this._offersService.fetchOneOffer(i[0]).subscribe(n=>{this.transOffer=n,this._myPaymentsService.PaymentOffer$.next(n)})})}static{this.\u0275fac=function(i){return new(i||t)(f(Fe),f(Qe))}}static{this.\u0275cmp=w({type:t,selectors:[["vls-my-payments-list-item"]],inputs:{transaction:"transaction",displayRightIcon:"displayRightIcon"},decls:25,vars:23,consts:[[1,"col-12"],[1,"row","d-flex","align-items-center","line","line-item"],[1,"col-6"],[1,"align-items-center","l4-responsive"],[1,"col-1"],["aria-hidden","true",1,"fa","fa-angle-right"],["class","col-7 text-uppercase text-center ",4,"ngIf"],[1,"mx-2","col-4"],[1,"row","l4-responsive","fw-bolder"],[1,"col-md-6","text-center"],[1,""],[3,"ngClass"],[1,"col","d-flex","justify-content-end"],["class","btn-floating btn-sm-floating btn-action hidden-md-down box-shadow justify-content-end",4,"ngIf"],[1,"col-7","text-uppercase","text-center"],[1,"btn-floating","btn-sm-floating","btn-action","hidden-md-down","box-shadow","justify-content-end"],["aria-hidden","true",1,"fa","fa-chevron-right"]],template:function(i,n){i&1&&(r(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"span",4),m(5),c(6,"formatDate"),c(7,"async"),a(),r(8,"span",4),x(9,"i",5),a(),v(10,pc,2,1,"span",6),a()(),r(11,"div",7)(12,"div",8)(13,"div",9)(14,"div",10),m(15),c(16,"price"),c(17,"async"),a()(),r(18,"div",9)(19,"div",11),m(20),c(21,"formatTransactionStatus"),c(22,"async"),a()()()(),r(23,"div",12),v(24,dc,2,0,"a",13),a()()()),i&2&&(o(5),h(" ",p(7,9,Q(6,6,n.transaction.createdAt,"short")),""),o(5),d("ngIf",n.transOffer),o(5),C(p(17,13,p(16,11,n.transaction.amount))),o(4),d("ngClass",no(19,cc,n.transaction.status==="PAID",n.transaction.status==="PARTIALLY_PAYBACKED"||n.transaction.status==="PAYBACKED",n.transaction.status!=="PAID"&&n.transaction.status!=="PAYBACKED"&&n.transaction.status!=="PARTIALLY_PAYBACKED")),o(),h(" ",p(22,17,p(21,15,n.transaction.status))," "),o(4),d("ngIf",n.displayRightIcon))},dependencies:[H,A,V,Oe,J,Tt],styles:["body[_ngcontent-%COMP%], html[_ngcontent-%COMP%]{font-family:Raleway Regular}[_nghost-%COMP%] .floated-btn-container[_ngcontent-%COMP%]{position:absolute;
4left:-11px}[_nghost-%COMP%] .fw-bolder-light-green-normal[_ngcontent-%COMP%]{font-family:Raleway Regular;color:#8bc34a;font-style:normal}[_nghost-%COMP%] .btn-floating[_ngcontent-%COMP%]{left:25px!important}","body[_ngcontent-%COMP%], html[_ngcontent-%COMP%]{font-family:Raleway Regular}.list-container[_ngcontent-%COMP%]{z-index:10;background-color:#fff}.details-container[_ngcontent-%COMP%]{box-shadow:4px 3px 16px #00000029,2px 0 8px #0000003b;position:relative;left:-2px;z-index:9;background-color:#eee}.line[_ngcontent-%COMP%]{height:4.375em}.line[_ngcontent-%COMP%]:not(:last-child){border-bottom:solid #cdcdcd 1px}.line.line-item[_ngcontent-%COMP%]{border-bottom:solid #cdcdcd 1px}.line.line-item[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:#cdcdcd;-webkit-transition:all .28s ease;transition:all .28s ease}.line.line-item.active[_ngcontent-%COMP%]{background-color:#f4f4f480;-webkit-transition:all .28s ease;transition:all .28s ease}.line.line-item.active[_ngcontent-%COMP%] .sub-title[_ngcontent-%COMP%]{color:#0094aa}.line[_ngcontent-%COMP%] .highlight-item[_ngcontent-%COMP%]{height:2.5em;line-height:2.5em;background:#fff;border-radius:100em}@media (max-width: 575.98px){.resp-bike[_ngcontent-%COMP%]{max-width:50px;height:22px}}@media (min-width: 576px) and (max-width: 767.98px){.resp-bike[_ngcontent-%COMP%]{max-width:50px;height:22px}}@media (min-width: 768px) and (max-width: 991.98px){.resp-bike[_ngcontent-%COMP%]{width:36px;height:22px}}@media (min-width: 992px) and (max-width: 1199.98px){.resp-bike[_ngcontent-%COMP%]{width:56px;height:42px}}@media (min-width: 1200px) and (max-width: 1399.98px){.resp-bike[_ngcontent-%COMP%]{width:56px;height:42px}}.price-trip[_ngcontent-%COMP%]{height:60%;margin-top:auto;margin-bottom:auto;border-radius:15px;background-color:#eee}.price-trip[_ngcontent-%COMP%] .price-number[_ngcontent-%COMP%]{vertical-align:sub}.price-trip[_ngcontent-%COMP%] .text-asterix[_ngcontent-%COMP%]{color:#0094aa}.bonus-total[_ngcontent-%COMP%]{vertical-align:sub}.user-rewards[_ngcontent-%COMP%]{position:relative;right:10%}.text-block[_ngcontent-%COMP%]{display:flex;position:absolute;top:12px;left:5px;color:#0094aa}@media (max-width: 767.98px){.text-block[_ngcontent-%COMP%]{left:10px}}@media (max-width: 575.98px){.text-block[_ngcontent-%COMP%]{left:6px;top:10px}}.bonus-container[_ngcontent-%COMP%]{position:relative;max-width:50px;max-height:50px}@media (max-width: 575.98px){.bonus-container[_ngcontent-%COMP%]{max-width:40px;max-height:40px}}.bonus-won-container[_ngcontent-%COMP%]{background-image:url(/assets/icons/svg/macaron-rewards-positif.svg)}.bonus-lost-container[_ngcontent-%COMP%]{background-image:url(/assets/icons/svg/macaron-rewards-negatif.svg);color:#0094aa}.bonus-neutre-container[_ngcontent-%COMP%]{background-image:url(/assets/icons/svg/macaron-rewards-neutre.svg);color:#fff}.rewards-points[_ngcontent-%COMP%]{margin-top:-15%}.bonus-won-container[_ngcontent-%COMP%], .bonus-lost-container[_ngcontent-%COMP%], .bonus-neutre-container[_ngcontent-%COMP%]{background-repeat:no-repeat;background-color:transparent;background-size:contain;background-position:50%;min-height:50px;margin-left:-40%}@media (max-width: 575.98px){.bonus-won-container[_ngcontent-%COMP%], .bonus-lost-container[_ngcontent-%COMP%], .bonus-neutre-container[_ngcontent-%COMP%]{margin-left:0}}@media (min-width: 576px) and (max-width: 767.98px){.bonus-won-container[_ngcontent-%COMP%], .bonus-lost-container[_ngcontent-%COMP%], .bonus-neutre-container[_ngcontent-%COMP%]{margin-left:0}}.content-rewards[_ngcontent-%COMP%]{padding:3rem!important;margin-top:-64px}.bonus-icon[_ngcontent-%COMP%]{margin-left:-22%!important}.reward-points[_ngcontent-%COMP%]{margin-top:-8%}a[_ngcontent-%COMP%]{text-decoration:none!important;color:#1a171b}a[_ngcontent-%COMP%] a.hover[_ngcontent-%COMP%]{color:#0094aa}"]})}}return t})()});function fc(t,s){if(t&1){let e=T();r(0,"vls-my-payments-list-item",8),y("click",function(){S(e);let n=g().$implicit,l=g(4);return M(l.selectTransaction(n))}),a()}if(t&2){let e=g().$implicit,i=g(4);d("ngClass",j(3,uc,e.id===i.selectedTransaction.id))("transaction",e)("displayRightIcon",e.i
4d===i.selectedTransaction.id)}}function gc(t,s){if(t&1&&(N(0),r(1,"div",6)(2,"div",3),v(3,fc,1,5,"vls-my-payments-list-item",7),a()(),F()),t&2){let e=s.$implicit;o(3),d("ngIf",e.status!=="TO_INVOICE")}}function vc(t,s){if(t&1&&(N(0),r(1,"div",5),m(2),c(3,"formatMonthName"),c(4,"async"),a(),v(5,gc,4,1,"ng-container",4),c(6,"orderByDate"),F()),t&2){let e=s.$implicit,i=g().$implicit;o(2),ee(" ",p(4,5,p(3,3,e.month))," ",i.year," "),o(3),d("ngForOf",Q(6,7,e.payments,"createdAt"))}}function hc(t,s){if(t&1&&(N(0),v(1,vc,7,10,"ng-container",4),F()),t&2){let e=s.$implicit;o(),d("ngForOf",e.months)}}function _c(t,s){if(t&1&&(r(0,"div",3),v(1,hc,2,1,"ng-container",4),a()),t&2){let e=g();o(),d("ngForOf",e.userTransactions)}}var uc,ki,Fn=b(()=>{E();At();de();U();Nn();Lt();In();uc=t=>({active:t});ki=(()=>{class t{constructor(e,i){this._myPaymentsService=e,this._loaderGlobService=i,this.selectedTransaction=null}ngOnInit(){this._myPaymentsService.PaymentSelected$.subscribe(e=>this.selectedTransaction=e),this._loaderGlobService.showLoadingAnimation(!0),this._myPaymentsService.userTransactions$.subscribe(e=>{this._loaderGlobService.showLoadingAnimation(!1),this.userTransactions=e})}selectTransaction(e){this._myPaymentsService.selectTransaction(e)}static{this.\u0275fac=function(i){return new(i||t)(f(Fe),f(Z))}}static{this.\u0275cmp=w({type:t,selectors:[["vls-my-payments-list"]],decls:3,vars:1,consts:[[1,"container"],[1,"row"],["class","col-12",4,"ngIf"],[1,"col-12"],[4,"ngFor","ngForOf"],[1,"l5-responsive","text-uppercase","text-regular-black-italic","row","d-flex","align-items-center","line","pt-3"],[1,"l4-responsive","text-regular","black-normal","row","d-flex","align-items-center",2,"overflow","visible"],["class","clickable row d-flex align-items-center line line-item justify-content-between",3,"ngClass","transaction","displayRightIcon","click",4,"ngIf"],[1,"clickable","row","d-flex","align-items-center","line","line-item","justify-content-between",3,"click","ngClass","transaction","displayRightIcon"]],template:function(i,n){i&1&&(r(0,"section",0)(1,"div",1),v(2,_c,2,1,"div",2),a()()),i&2&&(o(2),d("ngIf",n.userTransactions&&n.userTransactions.length>0))},dependencies:[H,ae,A,Di,V,et,Pi],styles:["body[_ngcontent-%COMP%], html[_ngcontent-%COMP%]{font-family:Raleway Regular}.list-container[_ngcontent-%COMP%]{z-index:10;background-color:#fff}.details-container[_ngcontent-%COMP%]{box-shadow:4px 3px 16px #00000029,2px 0 8px #0000003b;position:relative;left:-2px;z-index:9;background-color:#eee}.line[_ngcontent-%COMP%]{height:4.375em}.line[_ngcontent-%COMP%]:not(:last-child){border-bottom:solid #cdcdcd 1px}.line.line-item[_ngcontent-%COMP%]{border-bottom:solid #cdcdcd 1px}.line.line-item[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:#cdcdcd;-webkit-transition:all .28s ease;transition:all .28s ease}.line.line-item.active[_ngcontent-%COMP%]{background-color:#f4f4f480;-webkit-transition:all .28s ease;transition:all .28s ease}.line.line-item.active[_ngcontent-%COMP%] .sub-title[_ngcontent-%COMP%]{color:#0094aa}.line[_ngcontent-%COMP%] .highlight-item[_ngcontent-%COMP%]{height:2.5em;line-height:2.5em;background:#fff;border-radius:100em}@media (max-width: 575.98px){.resp-bike[_ngcontent-%COMP%]{max-width:50px;height:22px}}@media (min-width: 576px) and (max-width: 767.98px){.resp-bike[_ngcontent-%COMP%]{max-width:50px;height:22px}}@media (min-width: 768px) and (max-width: 991.98px){.resp-bike[_ngcontent-%COMP%]{width:36px;height:22px}}@media (min-width: 992px) and (max-width: 1199.98px){.resp-bike[_ngcontent-%COMP%]{width:56px;height:42px}}@media (min-width: 1200px) and (max-width: 1399.98px){.resp-bike[_ngcontent-%COMP%]{width:56px;height:42px}}.price-trip[_ngcontent-%COMP%]{height:60%;margin-top:auto;margin-bottom:auto;border-radius:15px;background-color:#eee}.price-trip[_ngcontent-%COMP%] .price-number[_ngcontent-%COMP%]{vertical-align:sub}.price-trip[_ngcontent-%COMP%] .text-asterix[_ngcontent-%COMP%]{color:#0094aa}.bonus-total[_ngcontent-%COMP%]{vertical-align:sub}.user-rewards[_ngcontent-%COMP%]{position:relative;right:10%}.text-block[_ngcontent-%COMP%]{display:flex;position:absolute;top:12px;left:5px;color:#0094aa}@media (max-width: 767.98px){.text-block[_ngcontent-%COMP%]{left:10px}}@media (max-width: 575.98px){.text-block[_ngcontent-%COMP%]{left:6px;top:10px}}.bonus-container[_ngcontent-%COMP%]{position:relative;max-width:50px;max-height:50px}@media (max-width: 575.98px){.bonus-container[_ngcontent-%COMP%]{max-width:40px;max-height:40px}}.bonus-won-container[_ngcontent-%COMP%]{background-image:url(/assets/icons/svg/macaron-rewards-positif.svg)}.bonus-lost-container[_ngcontent-%COMP%]{background-image:url(/assets/icons/svg/macaron-rewards-negatif.svg);color:#0094aa}.bonus-neutre-container[_ngcontent-%COMP%]{background-image:url(/assets/icons/svg/macaron-rewards-neutre.svg);color:#fff}.rewards-points[_ngcontent-%COMP%]{margin-top:-15%}.bonus-won-container[_ngcontent-%COMP%], .bonus-lost-container[_ngcontent-%COMP%], .bonus-neutre-container[_ngcontent-%COMP%]{background-repeat:no-repeat;background-color:transparent;background-size:contain;background-position:50%;min-height:50px;margin-left:-40%}@media (max-width: 575.98px){.bonus-won-container[_ngcontent-%COMP%], .bonus-lost-container[_ngcontent-%COMP%], .bonus-neutre-container[_ngcontent-%COMP%]{margin-left:0}}@media (min-width: 576px) and (max-width: 767.98px){.bonus-won-container[_ngcontent-%COMP%], .bonus-lost-container[_ngcontent-%COMP%], .bonus-neutre-container[_ngcontent-%COMP%]{margin-left:0}}.content-rewards[_ngcontent-%COMP%]{padding:3rem!important;margin-top:-64px}.bonus-icon[_ngcontent-%COMP%]{margin-left:-22%!important}.reward-points[_ngcontent-%COMP%]{margin-top:-8%}a[_ngcontent-%COMP%]{text-decoration:none!important;
4color:#1a171b}a[_ngcontent-%COMP%] a.hover[_ngcontent-%COMP%]{color:#0094aa}"]})}}return t})()});function Cc(t,s){if(t&1&&(r(0,"div",7)(1,"span",8),m(2),c(3,"price"),c(4,"async"),a(),r(5,"span"),m(6),c(7,"translate"),a()()),t&2){let e=g();o(2),C(p(4,4,p(3,2,e.sale.paybackAmount))),o(4),C(p(7,6,"MYACCOUNT.MY-PAYMENTS.STATUS."+e.sale.status).toLowerCase())}}var Ri,Bn=b(()=>{E();U();bt();Te();R();wn();Ri=(()=>{class t{constructor(){}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=w({type:t,selectors:[["vls-my-transaction-sale"]],inputs:{sale:"sale"},decls:19,vars:18,consts:[[1,"static-line"],[1,"sale-height","d-flex","align-items-center","justify-content-between","l5-responsive"],[1,"d-flex","flex-row","align-items-center"],[1,"fw-bolder"],[1,"px-2"],["aria-hidden","true",1,"fa","fa-angle-right"],["class","fw-bolder l5-responsive payback-height",4,"ngIf"],[1,"fw-bolder","l5-responsive","payback-height"],[1,"text-primary"]],template:function(i,n){i&1&&(r(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),m(4),c(5,"formatDate"),c(6,"async"),a(),r(7,"div",4),x(8,"i",5),a(),r(9,"div",3),m(10),c(11,"formatTransactionNature"),c(12,"async"),a()(),r(13,"div")(14,"span",3),m(15),c(16,"price"),c(17,"async"),a()()(),v(18,Cc,8,8,"div",6),a()),i&2&&(o(4),h(" ",p(6,8,Q(5,5,n.sale.date,"time")),""),o(6),C(p(12,12,p(11,10,n.sale.nature))),o(5),ee("",n.sale.nature&&n.sale.nature==="CONSUMPTION_REDUCTION"?"-":" "," ",p(17,16,p(16,14,n.sale.amount)),""),o(3),d("ngIf",n.sale.status==="PAYBACKED"||n.sale.status==="PARTIALLY_PAYBACKED"))},dependencies:[A,V,Oe,J,P,Ii],styles:["body[_ngcontent-%COMP%], html[_ngcontent-%COMP%]{font-family:Raleway Regular}[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .static-line[_ngcontent-%COMP%]{border-bottom:solid #cdcdcd 1px}[_nghost-%COMP%] .payback-height[_ngcontent-%COMP%]{height:2em}[_nghost-%COMP%] .sale-height[_ngcontent-%COMP%]{height:3em}","body[_ngcontent-%COMP%], html[_ngcontent-%COMP%]{font-family:Raleway Regular}.list-container[_ngcontent-%COMP%]{z-index:10;background-color:#fff}.details-container[_ngcontent-%COMP%]{box-shadow:4px 3px 16px #00000029,2px 0 8px #0000003b;position:relative;left:-2px;z-index:9;background-color:#eee}.line[_ngcontent-%COMP%]{height:4.375em}.line[_ngcontent-%COMP%]:not(:last-child){border-bottom:solid #cdcdcd 1px}.line.line-item[_ngcontent-%COMP%]{border-bottom:solid #cdcdcd 1px}.line.line-item[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:#cdcdcd;-webkit-transition:all .28s ease;transition:all .28s ease}.line.line-item.active[_ngcontent-%COMP%]{background-color:#f4f4f480;-webkit-transition:all .28s ease;transition:all .28s ease}.line.line-item.active[_ngcontent-%COMP%] .sub-title[_ngcontent-%COMP%]{color:#0094aa}.line[_ngcontent-%COMP%] .highlight-item[_ngcontent-%COMP%]{height:2.5em;line-height:2.5em;background:#fff;border-radius:100em}@media (max-width: 575.98px){.resp-bike[_ngcontent-%COMP%]{max-width:50px;height:22px}}@media (min-width: 576px) and (max-width: 767.98px){.resp-bike[_ngcontent-%COMP%]{max-width:50px;height:22px}}@media (min-width: 768px) and (max-width: 991.98px){.resp-bike[_ngcontent-%COMP%]{width:36px;height:22px}}@media (min-width: 992px) and (max-width: 1199.98px){.resp-bike[_ngcontent-%COMP%]{width:56px;height:42px}}@media (min-width: 1200px) and (max-width: 1399.98px){.resp-bike[_ngcontent-%COMP%]{width:56px;height:42px}}.price-trip[_ngcontent-%COMP%]{height:60%;margin-top:auto;margin-bottom:auto;border-radius:15px;background-color:#eee}.price-trip[_ngcontent-%COMP%] .price-number[_ngcontent-%COMP%]{vertical-align:sub}.price-trip[_ngcontent-%COMP%] .text-asterix[_ngcontent-%COMP%]{color:#0094aa}.bonus-total[_ngcontent-%COMP%]{vertical-align:sub}.user-rewards[_ngcontent-%COMP%]{position:relative;right:10%}.text-block[_ngcontent-%COMP%]{display:flex;position:absolute;top:12px;left:5px;color:#0094aa}@media (max-width: 767.98px){.text-block[_ngcontent-%COMP%]{left:10px}}@media (max-width: 575.98px){.text-block[_ngcontent-%COMP%]{left:6px;top:10px}}.bonus-container[_ngcontent-%COMP%]{position:relative;max-width:50px;max-height:50px}@media (max-width: 575.98px){.bonus-container[_ngcontent-%COMP%]{max-width:40px;max-height:40px}}.bonus-won-container[_ngcontent-%COMP%]{background-image:url(/assets/icons/svg/macaron-rewards-positif.svg)}.bonus-lost-container[_ngcontent-%COMP%]{background-image:url(/assets/icons/svg/macaron-rewards-negatif.svg);color:#0094aa}.bonus-neutre-container[_ngcontent-%COMP%]{background-image:url(/assets/icons/svg/macaron-rewards-neutre.svg);color:#fff}.rewards-points[_ngcontent-%COMP%]{margin-top:-15%}.bonus-won-container[_ngcontent-%COMP%], .bonus-lost-container[_ngcontent-%COMP%], .bonus-neutre-container[_ngcontent-%COMP%]{background-repeat:no-repeat;background-color:transparent;background-size:contain;background-position:50%;min-height:50px;margin-left:-40%}@media (max-width: 575.98px){.bonus-won-container[_ngcontent-%COMP%], .bonus-lost-container[_ngcontent-%COMP%], .bonus-neutre-container[_ngcontent-%COMP%]{margin-left:0}}@media (min-width: 576px) and (max-width: 767.98px){.bonus-won-container[_ngcontent-%COMP%], .bonus-lost-container[_ngcontent-%COMP%], .bonus-neutre-container[_ngcontent-%COMP%]{margin-left:0}}.content-rewards[_ngcontent-%COMP%]{padding:3rem!important;margin-top:-64px}.bonus-icon[_ngcontent-%COMP%]{margin-left:-22%!important}.reward-points[_ngcontent-%COMP%]{margin-top:-8%}a[_ngcontent-%COMP%]{text-decoration:none!important;
4color:#1a171b}a[_ngcontent-%COMP%] a.hover[_ngcontent-%COMP%]{color:#0094aa}"]})}}return t})()});function Sc(t,s){if(t&1&&(r(0,"span"),m(1),c(2,"translate"),a()),t&2){let e=g(2).ngIf;o(),ee(" ",p(2,2,"MYACCOUNT.MY-SUBSCRIPTIONS.NUMBER")," ",e.kiwiId," ")}}function Mc(t,s){if(t&1&&(r(0,"span",16),m(1),c(2,"translate"),v(3,Sc,3,4,"span",6),a()),t&2){let e=g().ngIf,i=g();o(),ee(" ",p(2,3,"MYACCOUNT.MY-SUBSCRIPTIONS.SUBSCRIPTION")," ",i.transOffer.title," "),o(2),d("ngIf",e.kiwiId)}}function Pc(t,s){if(t&1&&(N(0),x(1,"vls-my-transaction-sale",18),F()),t&2){let e=s.$implicit;o(),d("sale",e)}}function Oc(t,s){if(t&1&&(N(0),v(1,Pc,2,1,"ng-container",17),c(2,"orderByDate"),F()),t&2){let e=s.ngIf;o(),d("ngForOf",Q(2,1,e,"date"))}}function Ic(t,s){if(t&1){let e=T();r(0,"div",19),x(1,"i",20),r(2,"a",21),y("click",function(){S(e);let n=g().ngIf,l=g();return M(l.openModalPaymentReceipt(n.id))}),m(3),c(4,"translate"),a()()}t&2&&(o(3),h(" ",p(4,1,"MYACCOUNT.MY-PAYMENTS.DOWNLOAD-PROOF")," "))}function wc(t,s){if(t&1){let e=T();r(0,"div",19),x(1,"i",20),r(2,"a",22),y("click",function(){S(e);let n=g().ngIf,l=g();return M(l.regularizeTransactionUnpaid(n))}),m(3),c(4,"translate"),a()()}t&2&&(o(3),h(" ",p(4,1,"MYACCOUNT.MY-PAYMENTS.REGULARIZE-UNPAID")," "))}function Tc(t,s){if(t&1){let e=T();r(0,"div",1)(1,"div",2),m(2),c(3,"formatDate"),c(4,"async"),a(),r(5,"div"),v(6,Mc,4,5,"span",3),a(),r(7,"div",4)(8,"div",5),v(9,Oc,3,4,"ng-container",6),c(10,"async"),r(11,"div",7)(12,"div",8)(13,"span",9),m(14),c(15,"translate"),a(),r(16,"span",10),m(17),c(18,"formatTransactionStatus"),c(19,"async"),a()(),r(20,"div",11)(21,"span"),m(22),c(23,"price"),c(24,"async"),a()()()()(),x(25,"hr"),r(26,"div")(27,"div",12),v(28,Ic,5,3,"div",13)(29,wc,5,3,"div",13),a(),r(30,"div",14)(31,"button",15),y("click",function(){S(e);let n=g();return M(n.iNeedHelp())}),m(32),c(33,"translate"),a()()()()}if(t&2){let e=s.ngIf,i=g();o(2),h(" ",p(4,13,Q(3,10,e==null?null:e.createdAt,"full")),""),o(4),d("ngIf",i.transOffer),o(3),d("ngIf",p(10,15,i.transactionDetails$)),o(5),C(p(15,17,"MYACCOUNT.MY-SUBSCRIPTIONS.STATUS")),o(2),d("ngClass",rt(29,yc,e.status!=="PARTIALLY_PAYBACKED"&&e.status!=="PAYBACKED",e.status==="PARTIALLY_PAYBACKED"||e.status==="PAYBACKED")),o(),h(" ",p(19,21,p(18,19,e==null?null:e.status)),""),o(5),C(p(24,25,p(23,23,e==null?null:e.amount))),o(6),d("ngIf",e.status==="PAID"),o(),d("ngIf",i.transactionWithDetails&&i.transactionWithDetails.status==="REJECTED"&&i.transactionWithDetails.regulationId),o(3),h(" ",p(33,27,"MYACCOUNT.MY-SUBSCRIPTIONS.NEED-HELP")," ")}}var yc,Ni,Yn=b(()=>{He();ce();Ke();ft();we();E();At();Ke();we();R();cr();de();ya();ft();U();Bn();bt();Te();Lt();Oi();yc=(t,s)=>({"fw-bolder-light-green-normal":t,"fw-bolder text-primary":s});Ni=(()=>{class t{constructor(e,i,n,l,u,_,O,I){this._myPaymentsService=e,this._timeZoneService=i,this._myProfileSharedModalService=n,this._translatePipe=l,this._fileReaderGlobalService=u,this._accountService=_,this._globalizeService=O,this._vlsRouterService=I,this.detailsTransaction=this._myPaymentsService.PaymentSelected$}get currentTransation$(){return this._myPaymentsService.PaymentSelected$}get transactionDetails$(){return this._myPaymentsService.selectedTransactionSales$}ngOnInit(){this.currentTransaction=this.detailsTransaction.pipe(be(e=>this._myPaymentsService.getTransactionWithDetails(e.id))).subscribe(e=>{this.transactionWithDetails=e,this._myPaymentsService.getAnOffer(e.offerId).subscribe(i=>this.transOffer=i)})}ngOnDestroy(){this.currentTransaction.unsubscribe()}regularizeTransactionUnpaid(e){let i={id:st.REGULARIZE_PAYMENT,extras:{queryParams:{transactionId:e.id}}},n={url:this._vlsRouterService.urlMaker(["/my-account"],{fragment:"PAYMENTS"}),transitionPage:{message:"CONFIG-OFFER.SUCCESS.REGULARIZE_PAYMENT"}};this._vlsRouterService.startSubProcess(i,n)}iNeedHelp(){let e={complaintType:Mt.Type.payment,TransactionId:this.transactionId(),SubscriptionId:this.subscriptionId(),Date:this.transactionWithDetails.updatedAt,Amount:String(this.transactionWithDetails.amount),Status:this.transactionWithDetails.status},i=this._timeZoneService.formatToLocaleTimeZoneFromUtcDate(this.transactionWithDetails.createdAt,le.FORMAT.ShortDate),n=this._globalizeService.formatPriceForAContract(this.transactionWithDetails.amount,0);dt(this._accountService.currentUserAccount(),i,n,this.getTransactionOffers(this.transactionWithDetails.offerId)).pipe(Y(l=>{let u=l[0],_=l[1],O=l[2],I=this._translatePipe.transform("MYACCOUNT.MY-SUBSCRIPTIONS.SUBSCRIPTION-NUMBER"),L=this._translatePipe.transform("MYACCOUNT.MY-PAYMENTS.AMOUNT"),ne=this._translatePipe.transform("MYACCOUNT.MY-PAYMENTS.CREATED-AT");return[u.email,`${u.firstName} ${u.lastName} ${u.phoneNumber}`,I+this.transactionId(),`${L} ${O}`,ne+_,"Status : "+this._translatePipe.transform("MYACCOUNT.MY-PAYMENTS.STATUS."+this.transactionWithDetails.status)]})).subscribe(l=>this._myProfileSharedModalService.openModalINeedHelp(e,l))}openModalPaymentReceipt(e){return this._fileReaderGlobalService.modalPaymentReceipt(e).pipe(Ue(1)).subscribe()}getTransactionOffers(e){return this._myPaymentsService.getAnOffer(e)}transactionId(){let e;return this.transactionWithDetails.sales&&this.transactionWithDetails.sales.length>0&&(e=this.transactionWithDetails.id),e}subscriptionId(){let e;return this.transactionWithDetails.sales&&this.transactionWithDetails.sales.length>0&&(e=this.transactionWithDetails.sales[0].subscriptionId),e}static{this.\u0275fac=function(i){return new(i||t)(f(Fe),f(le),f(me),f(P),f(di),f(Me),f(Eo),f(lt))}}static{this.\u0275cmp=w({type:t,selectors:[["vls-my-payment-detail"]],decls:2,vars:3,consts:[["class","container mt-5",4,"ngIf"],[1,"container","mt-5"],[1,"resp-title-dark-1","text-dark","fw-bolder"],["class","fw-bolder l5-responsive",4,"ngIf"],[1,"row","mt-4"],[1,"col-12"],[4,"ngIf"],[1,"row","line","align-items-center","mb-5","l5-responsive"],[1,"col-6","text-left"],[1,"text-muted"],[3,"ngClass"],[1,"col-6","text-end","fw-bolder"],[1,"row"],["class","col-12 mt-4",4,"ngIf"],["data-test-id","payment-help-btn",1,"col-12","mt-4","mb-4","d-flex","justify-content-center"],[1,"btn","btn-vls","btn-outline-black","rounded-3",3,"click"],[1,"fw-bolder","l5-responsive"],[4,"ngFor","ngForOf"],[3,"sale"],[1,"col-12","mt-4"],["aria-hidden","true",1,"fa","fa-chevron-right","text-primary","m-2"],["data-test-id","payment-receipt-link",1,"link","l5-responsive","vls-matomo-download-receipt-payment",3,"click"],[1,"link","l5-responsive",3,"click"]],template:function(i,n){i&1&&(v(0,Tc,34,32,"div",0),c(1,"async")),i&2&&d("ngIf",p(1,1,n.currentTransation$))},dependencies:[H,ae,A,Ri,V,Oe,J,P,et,Tt],styles:["body[_ngcontent-%COMP%], html[_ngcontent-%COMP%]{font-family:Raleway Regular}[_nghost-%COMP%] .fw-bolder-light-green-normal[_ngcontent-%COMP%]{font-family:Raleway Bold;color:#8bc34a;font-style:normal}[_nghost-%COMP%] .btn-vls[_ngcontent-%COMP%]{padding-left:60px!important;padding-right:60px!important;border-radius:50px;font-weight:700!important}","body[_ngcontent-%COMP%], html[_ngcontent-%COMP%]{font-family:Raleway Regular}.list-container[_ngcontent-%COMP%]{z-index:10;background-color:#fff}.details-container[_ngcontent-%COMP%]{box-shadow:4px 3px 16px #00000029,2px 0 8px #0000003b;position:relative;
4left:-2px;z-index:9;background-color:#eee}.line[_ngcontent-%COMP%]{height:4.375em}.line[_ngcontent-%COMP%]:not(:last-child){border-bottom:solid #cdcdcd 1px}.line.line-item[_ngcontent-%COMP%]{border-bottom:solid #cdcdcd 1px}.line.line-item[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:#cdcdcd;-webkit-transition:all .28s ease;transition:all .28s ease}.line.line-item.active[_ngcontent-%COMP%]{background-color:#f4f4f480;-webkit-transition:all .28s ease;transition:all .28s ease}.line.line-item.active[_ngcontent-%COMP%] .sub-title[_ngcontent-%COMP%]{color:#0094aa}.line[_ngcontent-%COMP%] .highlight-item[_ngcontent-%COMP%]{height:2.5em;line-height:2.5em;background:#fff;border-radius:100em}@media (max-width: 575.98px){.resp-bike[_ngcontent-%COMP%]{max-width:50px;height:22px}}@media (min-width: 576px) and (max-width: 767.98px){.resp-bike[_ngcontent-%COMP%]{max-width:50px;height:22px}}@media (min-width: 768px) and (max-width: 991.98px){.resp-bike[_ngcontent-%COMP%]{width:36px;height:22px}}@media (min-width: 992px) and (max-width: 1199.98px){.resp-bike[_ngcontent-%COMP%]{width:56px;height:42px}}@media (min-width: 1200px) and (max-width: 1399.98px){.resp-bike[_ngcontent-%COMP%]{width:56px;height:42px}}.price-trip[_ngcontent-%COMP%]{height:60%;margin-top:auto;margin-bottom:auto;border-radius:15px;background-color:#eee}.price-trip[_ngcontent-%COMP%] .price-number[_ngcontent-%COMP%]{vertical-align:sub}.price-trip[_ngcontent-%COMP%] .text-asterix[_ngcontent-%COMP%]{color:#0094aa}.bonus-total[_ngcontent-%COMP%]{vertical-align:sub}.user-rewards[_ngcontent-%COMP%]{position:relative;right:10%}.text-block[_ngcontent-%COMP%]{display:flex;position:absolute;top:12px;left:5px;color:#0094aa}@media (max-width: 767.98px){.text-block[_ngcontent-%COMP%]{left:10px}}@media (max-width: 575.98px){.text-block[_ngcontent-%COMP%]{left:6px;top:10px}}.bonus-container[_ngcontent-%COMP%]{position:relative;max-width:50px;max-height:50px}@media (max-width: 575.98px){.bonus-container[_ngcontent-%COMP%]{max-width:40px;max-height:40px}}.bonus-won-container[_ngcontent-%COMP%]{background-image:url(/assets/icons/svg/macaron-rewards-positif.svg)}.bonus-lost-container[_ngcontent-%COMP%]{background-image:url(/assets/icons/svg/macaron-rewards-negatif.svg);color:#0094aa}.bonus-neutre-container[_ngcontent-%COMP%]{background-image:url(/assets/icons/svg/macaron-rewards-neutre.svg);color:#fff}.rewards-points[_ngcontent-%COMP%]{margin-top:-15%}.bonus-won-container[_ngcontent-%COMP%], .bonus-lost-container[_ngcontent-%COMP%], .bonus-neutre-container[_ngcontent-%COMP%]{background-repeat:no-repeat;background-color:transparent;background-size:contain;background-position:50%;min-height:50px;margin-left:-40%}@media (max-width: 575.98px){.bonus-won-container[_ngcontent-%COMP%], .bonus-lost-container[_ngcontent-%COMP%], .bonus-neutre-container[_ngcontent-%COMP%]{margin-left:0}}@media (min-width: 576px) and (max-width: 767.98px){.bonus-won-container[_ngcontent-%COMP%], .bonus-lost-container[_ngcontent-%COMP%], .bonus-neutre-container[_ngcontent-%COMP%]{margin-left:0}}.content-rewards[_ngcontent-%COMP%]{padding:3rem!important;margin-top:-64px}.bonus-icon[_ngcontent-%COMP%]{margin-left:-22%!important}.reward-points[_ngcontent-%COMP%]{margin-top:-8%}a[_ngcontent-%COMP%]{text-decoration:none!important;color:#1a171b}a[_ngcontent-%COMP%] a.hover[_ngcontent-%COMP%]{color:#0094aa}"]})}}return t})()});function Dc(t,s){if(t&1&&(r(0,"div",19)(1,"div",20)(2,"h6")(3,"span",21),m(4),c(5,"translate"),a()()(),r(6,"div",16)(7,"span",22),m(8),c(9,"translate"),r(10,"span",18),m(11),c(12,"price"),c(13,"async"),a()()()()),t&2){let e=g().ngIf;o(4),h(" ",p(5,3,"MYACCOUNT.MY-PAYMENTS.PAYMENT-CREDIT-LABEL"),":"),o(4),h(" ",p(9,5,"MYACCOUNT.MY-PAYMENTS.BALANCE")," : "),o(3),C(p(13,9,p(12,7,e.credit)))}}function kc(t,s){if(t&1&&(N(0),v(1,Dc,14,11,"div",12),r(2,"div",13),c(3,"localize"),r(4,"div",14)(5,"h6")(6,"span",15),m(7),c(8,"translate"),a()()(),r(9,"div",16)(10,"span",17),m(11),c(12,"translate"),r(13,"span",18),m(14),c(15,"price"),c(16,"async"),a()()()(),F()),t&2){let e=s.ngIf;o(),d("ngIf",e.credit>0),o(),d("routerLink",p(3,5,je(15,Ac))),o(5),h("",p(8,7,"MYACCOUNT.MY-PAYMENTS.PAYMENT-DUE-LABEL"),":"),o(4),h(" ",p(12,9,"MYACCOUNT.MY-PAYMENTS.TOTAL-DUE")," : "),o(3),C(p(16,13,p(15,11,e.due)))}}var Ac,Un,Ln=b(()=>{R();Te();Ct();At();E();At();U();Ft();Ve();Fn();Yn();bt();R();at();Ac=()=>["/my-account"];Un=(()=>{class t{constructor(e){this._myPaymentsService=e,this.balance$=this._myPaymentsService.getPaymentBalance()}static{this.\u0275fac=function(i){return new(i||t)(f(Fe))}}static{this.\u0275cmp=w({type:t,selectors:[["vls-my-payments"]],features:[re([Fe,P,Pe,J])],decls:16,vars:5,consts:[["modal",""],[1,"container"],[1,"row"],[1,"col","d-flex","align-items-strech"],[1,"d-inline","col-xl-8","col-lg-8","col-md-12","col-sm-12","col-xs-12","box-shadow","list-container","pt-3"],[4,"ngIf"],[1,"row","p-1"],[1,"col-12"],[3,"click"],[1,"col-4","box-shadow","hidden-md-down","details-container"],[3,"initialState","classes"],[1,"modal-body"],["class","row d-flex align-items-center p-1 mb-2",4,"ngIf"],["fragment","TRIPS",1,"row","d-flex","align-items-center","p-1","clickable",3,"routerLink"],[1,"col-xl-8","col-lg-6","col-md-12","col-sm-12","col-xs-12"],[1,"l5-responsive","text-uppercase","fw-bolder","fs-12"],[1,"col-xl-4","col-lg-4","col-md-6","col-sm-6","col-8"],[1,"badge","badge-pill","bg-black-btn","rounded-5","text-uppercase","w-100","p-3","fw-bolder","btn-block","text-bold","px-3","py-2"],[1,"l2-responsive","fw-bolder","px-1"],[1,"row","d-flex","align-items-center","p-1","mb-2"],[1,"col-auto"],[1,"l5-responsive","text-uppercase","fw-bolder","fs-6"],[1,"badge","badge-pill","black","text-uppercase","w-100","p-3","fw-bolder","px-3","py-2"]],template:function(i,n){if(i&1){let l=T();r(0,"div",1)(1,"div",2),N(2),r(3,"div",3)(4,"div",4),v(5,kc,17,16,"ng-container",5),c(6,"async"),r(7,"div",6)(8,"div",7)(9,"vls-my-payments-list",8),y("click",function(){S(l);let _=B(13);return M(_.openModal("xs-md-sm"))}),a()()()(),r(10,"div",9),x(11,"vls-my-payment-detail"),a()(),F(),a()(),r(12,"vls-modal",10,0)(14,"div",11),x(15,"vls-my-payment-detail"),a()()}
4i&2&&(o(5),d("ngIf",p(6,3,n.balance$)),o(7),d("initialState",!1)("classes","modal-lg"))},dependencies:[A,ke,Ee,ki,Ni,V,Oe,P,qe],styles:["body[_ngcontent-%COMP%], html[_ngcontent-%COMP%]{font-family:Raleway Regular}[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .list-container[_ngcontent-%COMP%]{z-index:10;background-color:#fff}[_nghost-%COMP%] .details-container[_ngcontent-%COMP%]{box-shadow:4px 3px 16px #00000029,2px 0 8px #0000003b;position:relative;left:-2px;z-index:9;background-color:#eee}.bg-black-btn[_ngcontent-%COMP%]{background-color:#000;border-radius:20px}"]})}}return t})()});var Dt=b(()=>{gi()});function Fc(t,s){if(t&1&&(r(0,"div")(1,"div"),m(2),c(3,"formatDate"),c(4,"async"),a(),r(5,"div"),m(6),c(7,"formatTime"),c(8,"async"),a()()),t&2){let e=g().$implicit;o(2),C(p(4,5,Q(3,2,e==null?null:e.endDateTime,"short"))),o(4),C(p(8,9,p(7,7,e==null?null:e.endDateTime)))}}function Bc(t,s){if(t&1&&(r(0,"div"),m(1),c(2,"formatTime"),c(3,"async"),a(),r(4,"div"),m(5),c(6,"formatTime"),c(7,"async"),a()),t&2){let e=g().$implicit;o(),C(p(3,4,p(2,2,e==null?null:e.endDateTime))),o(4),C(p(7,8,p(6,6,e==null?null:e.startDateTime)))}}function Yc(t,s){if(t&1&&(r(0,"div",22)(1,"div",23)(2,"div",24),m(3),c(4,"price"),c(5,"async"),a()()()),t&2){let e=g().$implicit;o(3),h(" ",p(5,3,p(4,1,e==null?null:e.reducedPrice))," ")}}function Uc(t,s){t&1&&(r(0,"div",34),m(1," * "),a())}function Lc(t,s){if(t&1&&(r(0,"span",35),m(1),a()),t&2){let e=g(2).$implicit;qt("color",(e==null?null:e.rewardsEarned)-(e==null?null:e.rewardsSpent)>0?"#fff":"inherit"),o(),h(" ",(e==null?null:e.rewardsEarned)>(e==null?null:e.rewardsSpent)?"+":"-"," ")}}function jc(t,s){if(t&1&&(r(0,"span",36),m(1),a()),t&2){let e=g(2).$implicit,i=g(3);qt("color",(e==null?null:e.rewardsEarned)-(e==null?null:e.rewardsSpent)>0?"#fff":"inherit"),o(),h(" ",i.getDeltaRewards(e==null?null:e.rewardsEarned,e==null?null:e.rewardsSpent)," ")}}function Vc(t,s){t&1&&(r(0,"span",37),m(1," - "),a())}function $c(t,s){if(t&1&&(r(0,"span",38),m(1," pts "),a()),t&2){let e=g(2).$implicit;qt("color",(e==null?null:e.rewardsEarned)-(e==null?null:e.rewardsSpent)>0?"#fff":"inherit")}}function Gc(t,s){if(t&1&&(r(0,"div",22)(1,"div",25)(2,"div",26),m(3),c(4,"price"),c(5,"async"),a(),v(6,Uc,2,0,"div",27),a(),r(7,"div",28)(8,"div",29)(9,"div",30),v(10,Lc,2,3,"span",31)(11,jc,2,3,"span",32)(12,Vc,2,0,"ng-template",null,2,G)(14,$c,2,2,"span",33),a()()()()),t&2){let e=B(13),i=g().$implicit,n=g(3);o(3),h(" ",p(5,9,p(4,7,i==null?null:i.reducedPrice))," "),o(3),d("ngIf",i==null?null:i.rewardsSpent),o(2),d("ngClass",n.getRewardsMacaron(i==null?null:i.rewardsEarned,i==null?null:i.rewardsSpent)),o(2),d("ngIf",(i==null?null:i.rewardsEarned)-(i==null?null:i.rewardsSpent)!=0),o(),d("ngIf",(i==null?null:i.rewardsEarned)-(i==null?null:i.rewardsSpent)!=0)("ngIfElse",e),o(3),d("ngIf",(i==null?null:i.rewardsEarned)-(i==null?null:i.rewardsSpent)!=0)}}function Hc(t,s){t&1&&(r(0,"a",39),x(1,"i",14),a())}function zc(t,s){if(t&1){let e=T();r(0,"div",9),y("click",function(){let n=S(e).$implicit,l=g(3);return M(l.selectTrip(n))}),r(1,"div",10)(2,"div",11),v(3,Fc,9,11,"div",12)(4,Bc,8,10,"ng-template",null,0,G),a(),r(6,"div",13),x(7,"i",14),a(),r(8,"div",15)(9,"strong"),m(10),a()()(),r(11,"div",16)(12,"div",17),x(13,"img",18),a()(),v(14,Yc,6,5,"div",19)(15,Gc,15,11,"ng-template",null,1,G),r(17,"div",20),v(18,Hc,2,0,"a",21),a()()}if(t&2){let e=s.$implicit,i=B(5),n=B(16),l=g().$implicit,u=g(2);d("ngClass",j(7,Nc,e!=null&&e.movementRef?(e==null?null:e.movementRef)===u.selectedTrip.movementRef:(e==null?null:e.id)===u.selectedTrip.id&&(e==null?null:e.token)===u.selectedTrip.token)),o(3),d("ngIf",l.chunk.includes("WEEK"))("ngIfElse",i),o(7),h("",e==null?null:e.duration," min"),o(4),d("ngIf",!u.rewardsFeature||!(e!=null&&e.rewardsEarned)&&!(e!=null&&e.rewardsSpent))("ngIfElse",n),o(4),d("ngIf",e!=null&&e.movementRef?(e==null?null:e.movementRef)==u.selectedTrip.movementRef:(e==null?null:e.id)===u.selectedTrip.id&&(e==null?null:e.token)===u.selectedTrip.token)}}function Wc(t,s){if(t&1&&(N(0),r(1,"div",7)(2,"div",5),m(3),c(4,"formatChunkName"),c(5,"async"),a()(),v(6,zc,19,9,"div",8),c(7,"orderByDate"),F()),t&2){let e=s.$implicit;o(3),h("",p(5,4,p(4,2,e.chunk))," "),o(3),d("ngForOf",Q(7,6,e.trips,"endDateTime"))}}function qc(t,s){if(t&1&&(r(0,"div",5),v(1,Wc,8,9,"ng-container",6),c(2,"orderByChunk"),a()),t&2){let e=s.ngIf;o(),d("ngForOf",p(2,1,e))}}var Nc,jn,Vn=b(()=>{ce();Nt();E();Dt();de();U();bt();Te();Ct();yn();Sn();Lt();Nc=t=>({active:t});jn=(()=>{class t{constructor(e,i,n){this._myTripsService=e,this._loaderGlobalService=i,this.contractFeatureService=n}ngOnInit(){this._loaderGlobalService.showLoadingAnimation(!0),this.contractFeatureService.getContractFeatureValue($.Features.RewardsActivated).subscribe(e=>{this.rewardsFeature=e}),this.userTrip$=this._myTripsService.userTrips$.pipe(Y(e=>{let i=[];return Object.keys(e).forEach(n=>{i.push({trips:e[n],chunk:n})}),this._loaderGlobalService.showLoadingAnimation(!1),i})),this._myTripsService.$completeTrips.subscribe(e=>this.selectedTrip=e)}selectTrip(e){this._myTripsService.selectTrip(e)}getRewardsMacaron(e,i){return e>i?"bonus-won-container":e<i?"bonus-lost-container":"bonus-neutre-container"}getDeltaRewards(e,i){return Math.abs(e-i)}static{this.\u0275fac=function(i){return new(i||t)(f(fe),f(Z),f(oe))}}static{this.\u0275cmp=w({type:t,selectors:[["vls-my-trips-list"]],decls:3,vars:3,consts:[["displayTimeInAndOut",""],["rewardsActivatedTpl",""],["neutralBonus",""],[1,"row"],["class","col-12",4,"ngIf"],[1,"col-12"],[4,"ngFor","ngForOf"],[1,"l5-responsive","text-uppercase","text-regular-black-italic","row","d-flex","align-items-center","line"],["class","row d-flex align-items-center line line-item","data-test-id","older-trip",3,"ngClass","click",4,"ngFor","ngForOf"],["data-test-id","older-trip",1,"row","d-flex","align-items-center","line","line-item",3,"click","ngClass"],[1,"d-flex","align-items-center","justify-content-start","col-6","col-md-4","l4-responsive"],[1,"col-6","p-0","l4-responsive"],[4,"ngIf","ngIfElse"],[1,"col-1","pl-0","text-center"],["aria-hidden","true",1,"fa","fa-chevron-right"],[1,"col-5","pr-0","l4-responsive","text-bold"],[1,"d-flex","align-items-center","justify-content-center","col-2","col-md-4"],[1,""],["src","../assets/icons/svg/filtre-map-velo-meca.svg","alt","Filtre map velo mecanique",1,"img-fluid","resp-bike"],["class","d-flex align-items-center col-4 col-md-2 px-0",4,"ngIf","ngIfElse"],[1,"col","list-floated-btn-container","hidden-md-down","d-flex","justify-content-end"],["class","btn-floating btn-sm-floating btn-primary btn-action waves-light leftLink","mdbRippleRadius","",4,"ngIf"],[1,"d-flex","align-items-center","col-4","col-md-2","px-0"],[1,"col-6","text-center","ml-2","ml-md-4","ml-lg-4","d-flex","px-0"],[1,"l5-responsive","ml-0","ml-sm-1","ml-md-3","ml-lg-3","text-bold"],[1,"col-10","text-center","ml-2","ml-md-4","ml-lg-4","d-flex","price-trip","px-0"],[1,"l5-responsive","price-number","ml-0","ml-sm-1","ml-md-3","ml-lg-3","text-bold"],["class","l3-responsive text-asterix px-0 text-bold",4,"ngIf"],[1,"col-5","user-rewards","p-0"],[1,"col-12","d-flex","p-0","text-center",3,"ngClass"],[1,"col-12","text-center","d-flex","p-0","align-items-center","justify-content-center"],["class","l7-responsive mt-1",3,"color",4,"ngIf"],["class","l6-responsive mt-1 bonus-total",3,"color",4,"ngIf","ngIfElse"],["class","l8-responsive rewards-points",3,"color",4,"ngIf"],[1,"l3-responsive","text-asterix","px-0","text-bold"],[1,"l7-responsive","mt-1"],[1,"l6-responsive","mt-1","bonus-total"],[1,"l2-responsive","text-white"],[1,"l8-responsive","rewards-points"],["mdbRippleRadius","",1,"btn-floating","btn-sm-floating","btn-primary","btn-action","waves-light","leftLink"]],template:function(i,n){i&1&&(r(0,"div",3),v(1,qc,3,3,"div",4),c(2,"async"),a()),i&2&&(o(),d("ngIf",p(2,1,n.userTr
4ip$)))},dependencies:[H,ae,A,V,Oe,J,Pe,yi,Mi,et],styles:["[_nghost-%COMP%] #btn-chevron[_ngcontent-%COMP%]{left:40px!important}[_nghost-%COMP%] .leftLink[_ngcontent-%COMP%]{left:27px}","body[_ngcontent-%COMP%], html[_ngcontent-%COMP%]{font-family:Raleway Regular}.list-container[_ngcontent-%COMP%]{z-index:10;background-color:#fff}.details-container[_ngcontent-%COMP%]{box-shadow:4px 3px 16px #00000029,2px 0 8px #0000003b;position:relative;left:-2px;z-index:9;background-color:#eee}.line[_ngcontent-%COMP%]{height:4.375em}.line[_ngcontent-%COMP%]:not(:last-child){border-bottom:solid #cdcdcd 1px}.line.line-item[_ngcontent-%COMP%]{border-bottom:solid #cdcdcd 1px}.line.line-item[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:#cdcdcd;-webkit-transition:all .28s ease;transition:all .28s ease}.line.line-item.active[_ngcontent-%COMP%]{background-color:#f4f4f480;-webkit-transition:all .28s ease;transition:all .28s ease}.line.line-item.active[_ngcontent-%COMP%] .sub-title[_ngcontent-%COMP%]{color:#0094aa}.line[_ngcontent-%COMP%] .highlight-item[_ngcontent-%COMP%]{height:2.5em;line-height:2.5em;background:#fff;border-radius:100em}@media (max-width: 575.98px){.resp-bike[_ngcontent-%COMP%]{max-width:50px;height:22px}}@media (min-width: 576px) and (max-width: 767.98px){.resp-bike[_ngcontent-%COMP%]{max-width:50px;height:22px}}@media (min-width: 768px) and (max-width: 991.98px){.resp-bike[_ngcontent-%COMP%]{width:36px;height:22px}}@media (min-width: 992px) and (max-width: 1199.98px){.resp-bike[_ngcontent-%COMP%]{width:56px;height:42px}}@media (min-width: 1200px) and (max-width: 1399.98px){.resp-bike[_ngcontent-%COMP%]{width:56px;height:42px}}.price-trip[_ngcontent-%COMP%]{height:60%;margin-top:auto;margin-bottom:auto;border-radius:15px;background-color:#eee}.price-trip[_ngcontent-%COMP%] .price-number[_ngcontent-%COMP%]{vertical-align:sub}.price-trip[_ngcontent-%COMP%] .text-asterix[_ngcontent-%COMP%]{color:#0094aa}.bonus-total[_ngcontent-%COMP%]{vertical-align:sub}.user-rewards[_ngcontent-%COMP%]{position:relative;right:10%}.text-block[_ngcontent-%COMP%]{display:flex;position:absolute;top:12px;left:5px;color:#0094aa}@media (max-width: 767.98px){.text-block[_ngcontent-%COMP%]{left:10px}}@media (max-width: 575.98px){.text-block[_ngcontent-%COMP%]{left:6px;top:10px}}.bonus-container[_ngcontent-%COMP%]{position:relative;max-width:50px;max-height:50px}@media (max-width: 575.98px){.bonus-container[_ngcontent-%COMP%]{max-width:40px;max-height:40px}}.bonus-won-container[_ngcontent-%COMP%]{background-image:url(/assets/icons/svg/macaron-rewards-positif.svg)}.bonus-lost-container[_ngcontent-%COMP%]{background-image:url(/assets/icons/svg/macaron-rewards-negatif.svg);color:#0094aa}.bonus-neutre-container[_ngcontent-%COMP%]{background-image:url(/assets/icons/svg/macaron-rewards-neutre.svg);color:#fff}.rewards-points[_ngcontent-%COMP%]{margin-top:-15%}.bonus-won-container[_ngcontent-%COMP%], .bonus-lost-container[_ngcontent-%COMP%], .bonus-neutre-container[_ngcontent-%COMP%]{background-repeat:no-repeat;background-color:transparent;background-size:contain;background-position:50%;min-height:50px;margin-left:-40%}@media (max-width: 575.98px){.bonus-won-container[_ngcontent-%COMP%], .bonus-lost-container[_ngcontent-%COMP%], .bonus-neutre-container[_ngcontent-%COMP%]{margin-left:0}}@media (min-width: 576px) and (max-width: 767.98px){.bonus-won-container[_ngcontent-%COMP%], .bonus-lost-container[_ngcontent-%COMP%], .bonus-neutre-container[_ngcontent-%COMP%]{margin-left:0}}.content-rewards[_ngcontent-%COMP%]{padding:3rem!important;margin-top:-64px}.bonus-icon[_ngcontent-%COMP%]{margin-left:-22%!important}.reward-points[_ngcontent-%COMP%]{margin-top:-8%}a[_ngcontent-%COMP%]{text-decoration:none!important;color:#1a171b}a[_ngcontent-%COMP%] a.hover[_ngcontent-%COMP%]{color:#0094aa}"]})}}return t})()});function Zc(t,s){if(t&1&&(r(0,"div",23)(1,"span"),m(2),c(3,"translate"),c(4,"translate"),a()()),t&2){let e=g(2);o(2),Zt(" ",p(3,4,"MYACCOUNT.MY-TRIPS.TRIP-NUMBER")," ",e.tripDetails.movementRef," - ",p(4,6,"MYACCOUNT.MY-TRIPS.BIKE-NUMBER")," ",e.tripDetails.bikeNumber," ")}}function Kc(t,s){if(t&1&&(r(0,"div")(1,"span"),m(2),a(),r(3,"span",24),m(4),a()()),t&2){let e=g(2);o(2),C(e.stationFullName(e.startStationTrip).name),o(2),C(e.stationFullName(e.startStationTrip).num)}}
4function Jc(t,s){if(t&1&&(r(0,"div"),m(1),a()),t&2){let e=g(2);o(),h(" ",e.tripDetails.duration," min")}}function Xc(t,s){if(t&1&&(r(0,"div")(1,"span"),m(2),a(),r(3,"span",24),m(4),a()()),t&2){let e=g(2);o(2),C(e.stationFullName(e.endStationTrip).name),o(2),C(e.stationFullName(e.endStationTrip).num)}}function ep(t,s){if(t&1){let e=T();r(0,"div",43)(1,"a",44),y("click",function(){S(e);let n=g(3);return M(n.handleRewardInfo(n.tripDetails))}),m(2),c(3,"translate"),a()()}t&2&&(o(2),C(p(3,1,"MYACCOUNT.MY-TRIPS.REWARDS.KNOW-MORE")))}function tp(t,s){if(t&1&&(r(0,"div",20)(1,"div",25)(2,"div",26),x(3,"img",27),a(),r(4,"div",28),m(5),c(6,"translate"),a(),r(7,"div",29)(8,"div",30)(9,"div",31),m(10),c(11,"translate"),r(12,"span",11),m(13),a(),m(14),c(15,"translate"),a()(),r(16,"div",32)(17,"div",33)(18,"span",34),m(19),a(),r(20,"span",35),m(21),a(),r(22,"span",36),m(23),a()()()(),r(24,"div",37)(25,"div",30)(26,"div",31),m(27),c(28,"translate"),r(29,"span",11),m(30),a(),m(31),c(32,"translate"),a()(),r(33,"div",38)(34,"div",33)(35,"span",39),m(36),a(),r(37,"span",40),m(38),a(),r(39,"span",41),m(40),a()()()(),v(41,ep,4,3,"div",42),a()()),t&2){let e=g(2);o(5),h(" ",p(6,14,"MYACCOUNT.MY-TRIPS.REWARDS.TRIP-RESULT")," "),o(5),h(" ",p(11,16,"MYACCOUNT.MY-TRIPS.REWARDS.WON"),""),o(3),h("\xA0",e.tripDetails!=null&&e.tripDetails.rewardsEarned?e.tripDetails==null?null:e.tripDetails.rewardsEarned:"0","\xA0pts\xA0"),o(),h("",p(15,18,"MYACCOUNT.MY-TRIPS.REWARDS.OF-REWARDS")," "),o(5),h(" ",e.tripDetails!=null&&e.tripDetails.rewardsEarned?"+":" "," "),o(2),h(" ",e.tripDetails!=null&&e.tripDetails.rewardsEarned?e.tripDetails==null?null:e.tripDetails.rewardsEarned:"0"," "),o(2),h(" ",e.tripDetails!=null&&e.tripDetails.rewardsEarned?"pts":"pt"," "),o(4),h(" ",p(28,20,"MYACCOUNT.MY-TRIPS.REWARDS.LOST"),""),o(3),h("\xA0",e.tripDetails!=null&&e.tripDetails.rewardsSpent?e.tripDetails==null?null:e.tripDetails.rewardsSpent:"0","\xA0pts\xA0"),o(),h("",p(32,22,"MYACCOUNT.MY-TRIPS.REWARDS.OF-REWARDS")," "),o(5),h(" ",e.tripDetails!=null&&e.tripDetails.rewardsSpent?"-":" "," "),o(2),h(" ",e.tripDetails!=null&&e.tripDetails.rewardsSpent?e.tripDetails==null?null:e.tripDetails.rewardsSpent:"0"," "),o(2),h(" ",e.tripDetails!=null&&e.tripDetails.rewardsSpent?"pts":"pt"," "),o(),d("ngIf",e.rewardsFeature)}}function ip(t,s){if(t&1&&(r(0,"span",45),m(1),c(2,"price"),c(3,"async"),a()),t&2){let e=g(2);o(),C(p(3,3,p(2,1,e.tripDetails.price-e.tripDetails.discount)))}}function np(t,s){if(t&1&&(r(0,"span",46),m(1),c(2,"price"),c(3,"async"),a()),t&2){let e=g(2);o(),h("(",p(3,3,p(2,1,e.tripDetails.price)),")")}}function op(t,s){if(t&1&&(r(0,"span",45),m(1),c(2,"price"),c(3,"async"),a()),t&2){let e=g(2);o(),C(p(3,3,p(2,1,e.tripDetails.price)))}}function rp(t,s){if(t&1){let e=T();r(0,"div",2)(1,"div",3),v(2,Zc,5,8,"div",4),r(3,"div",5)(4,"div",6),m(5),c(6,"formatDate"),c(7,"async"),a(),r(8,"div",7),m(9),c(10,"translate"),a()()(),r(11,"div",8)(12,"div",9)(13,"div",10)(14,"div",11),m(15),c(16,"formatTime"),c(17,"async"),a(),v(18,Kc,5,2,"div",12),a(),r(19,"div",13),x(20,"i",14),v(21,Jc,2,1,"div",12),a(),r(22,"div",10)(23,"div",11),m(24),c(25,"formatTime"),c(26,"async"),a(),v(27,Xc,5,2,"div",12),a()()(),v(28,tp,42,24,"div",15),r(29,"div",16)(30,"div"),m(31),c(32,"translate"),v(33,ip,4,5,"span",17)(34,np,4,5,"span",18),r(35,"div",19),v(36,op,4,5,"ng-template",null,0,G),a()()(),r(38,"div",20)(39,"div",21)(40,"button",22),y("click",function(){S(e);let n=g();return M(n.iNeedHelp(n.tripDetails))}),m(41),c(42,"translate"),a()()()()}if(t&2){let e=B(37),i=g();o(2),d("ngIf",i.tripDetails.movementRef),o(3),C(p(7,19,Q(6,16,i.tripDetails.endDateTime,"full"))),o(4),ze("",p(10,21,"MYACCOUNT.MY-TRIPS.SUBSCRIPTION")," ",i.offerName," n\xB0",i.tripDetails.subscriptionRef," "),o(6),C(p(17,25,p(16,23,i.tripDetails.startDateTime))),o(3),d("ngIf",i.tripDetails.startStation),o(3),d("ngIf",i.tripDetails==null?null:i.tripDetails.duration),o(3),C(p(26,29,p(25,27,i.tripDetails.endDateTime))),o(3),d("ngIf",i.tripDetails.endStation),o(),d("ngIf",i.rewardsFeature),o(3),h("",p(32,31,"MYACCOUNT.MY-TRIPS.REWARDS.TRIP-PRICE")," "),o(2),d("ngIf",!!(i.tripDetails!=null&&i.tripDetails.discount)&&i.rewardsFeature)("ngIfElse",e),o(),d("ngIf",i.rewardsFeature&&!!(i.tripDetails!=null&&i.tripDetails.discount)&&(i.tripDetails==null?null:i.trip
4Details.discount)>0),o(7),h(" ",p(42,33,"MYACCOUNT.MY-TRIPS.NEED-HELP")," ")}}var Bi,$n=b(()=>{E();He();ce();Kt();Ke();we();E();Dt();we();de();R();Ke();Ma();U();bt();Te();Ct();Bi=(()=>{class t{constructor(e,i,n,l,u,_,O,I){this._myTripsService=e,this._myProfileSharedModalService=i,this._accountService=n,this.translatePipe=l,this._timeZoneService=u,this.contractFeatureService=_,this.stationService=O,this.offerService=I,this.openModalRewardInfo=new zt}ngOnInit(){this._myTripsService.$completeTrips.subscribe(e=>{this.tripDetails=e,e.startStation&&(this.offerService.fetchOfferSIdsFilteredOnAccountAndSubscription(e.subscriptionId).subscribe(i=>{this.offerService.fetchOneOffer(i.available[0]).subscribe(n=>this.offerName=n.title)}),this.stationService.getOneStationState(this.tripDetails.startStation).subscribe(i=>{this.startStationTrip=i.name}),this.tripDetails.startStation!==this.tripDetails.endStation?this.stationService.getOneStationState(this.tripDetails.endStation).subscribe(i=>{this.endStationTrip=i.name}):this.tripDetails.startStation===this.tripDetails.endStation&&this.stationService.getOneStationState(this.tripDetails.endStation).subscribe(i=>{this.startStationTrip=i.name,this.endStationTrip=i.name}))}),this.contractFeatureService.getContractFeatureValue($.Features.RewardsActivated).subscribe(e=>this.rewardsFeature=e)}iNeedHelp(e){let i={complaintType:Mt.Type.trip,TransactionId:e.subscriptionId,SubscriptionId:e.subscriptionId,tripId:e.movementRef&&e.movementRef.toString()},n=this._timeZoneService.formatToLocaleTimeZoneFromUtcDate(this.tripDetails.startDateTime,le.FORMAT.ShortDate),l=this._timeZoneService.formatToLocaleTimeZoneFromUtcDate(this.tripDetails.endDateTime,le.FORMAT.ShortDate);dt(this._accountService.currentUserAccount(),n,l).pipe(Y(u=>{let _=u[0],O=u[1],I=u[2];return[_.email,`${_.firstName} ${_.lastName} ${_.phoneNumber}`,`${this.translatePipe.transform("MYACCOUNT.MY-SUBSCRIPTIONS.SUBSCRIPTION-NUMBER")} : ${e.subscriptionId}`,`${this.translatePipe.transform("MYACCOUNT.MY-TRIPS.DEPARTURE")}: ${I+(this.tripDetails.endStation?" / "+this.tripDetails.endStation:" ")}`,`${this.translatePipe.transform("MYACCOUNT.MY-TRIPS.ARRIVAL")}: ${O+(this.tripDetails.startStation?" / "+this.tripDetails.startStation:" ")}`,this.tripDetails.bikeNumber?`${this.translatePipe.transform("MYACCOUNT.MY-TRIPS.BIKE-NUMBER")} ${this.tripDetails.bikeNumber}`:"",this.tripDetails.movementUuid?`${this.translatePipe.transform("MYACCOUNT.MY-TRIPS.TRIP-NUMBER")} this.tripDetails.movementRef`:""]})).subscribe(u=>{this._myProfileSharedModalService.openModalINeedHelp(i,u)})}stationFullName(e){return{num:e?`N\xB0 ${e.split("-")[0]}`:"",name:e?e.split("-")[1]:""}}handleRewardInfo(e){this.openModalRewardInfo.emit(e)}static{this.\u0275fac=function(i){return new(i||t)(f(fe),f(me),f(Me),f(P),f(le),f(oe),f(Do),f(Qe))}}static{this.\u0275cmp=w({type:t,selectors:[["vls-my-trip-detail"]],outputs:{openModalRewardInfo:"openModalRewardInfo"},decls:1,vars:1,consts:[["noDiscountTpl",""],["class","container",4,"ngIf"],[1,"container"],[1,"row","d-flex","align-items-center","text-left","my-3","mb-5"],["class","l7-responsive text-muted col-12 mt-2 ",4,"ngIf"],[1,"col-12"],[1,"text-uppercase","l2-responsive","fw-bolder"],[1,"l5-responsive"],[1,"row","my-3"],[1,"col-12","d-flex","text-center","l5-responsive"],[1,"col-4","trip-details-side","text-center","d-flex","flex-column","justify-content-center"],[1,"fw-bolder"],[4,"ngIf"],[1,"col-4","text-center","d-flex","flex-column","justify-content-center","l5-responsive","fw-bolder"],["aria-hidden","true",1,"fa","fa-bicycle","fa-2x"],["class","row",4,"ngIf"],[1,"col-12","text-center","d-flex","flex-column","justify-content-center","l5-responsive","mt-3"],["class","fw-bolder text-primary",4,"ngIf","ngIfElse"],["class","text-black l7-responsive rewards-price-discount",4,"ngIf"],[1,"col-12","price"],[1,"row"],[1,"col-12","text-center","mt-1","mb-2"],["data-test-id","trip-help-btn",1,"btn","btn-outline-black","rounded-3","mb-4",3,"click"],[1,"l7-responsive","text-muted","col-12","mt-2"],[1,"text-muted","station-num"],[1,"col-12","text-center","bonus-details"],[1,"col-12","trophy-rewards"],["src","../assets/badge-rewards.svg",1,"img-fluid"],[1,"col-12","p-0","mt-3","fw-bolder","text-left","l5-responsive"],[1,"col-12","p-0","d-flex"],[1,"col-9","p-0"],[1,"col-12","p-0","l6-responsive","text-left","mt-lg-4","mt-3"],[1,"col-3","bonus-won-container","d-flex","p-0","text-center"],[1,"col-12","text-center","d-flex","p-0","align-items-center","justify-content-center"],[1,"l7-responsive","text-white"],[1,"l6-responsive","bonus-total","text-white"],[1,"l8-responsive","text-white","rewards-points"],[1,"col-12","p-0","mt-2","mb-3","d-flex"],[1,"col-3","bonus-lost-container","d-flex","p-0","text-center"],[1,"l7-responsive","text-primary"],[1,"l6-responsive","bonus-total","text-primary"],[1,"l8-responsive","text-primary","rewards-points"],["class","col-12 rewards-info mb-2",4,"ngIf"],[1,"col-12","rewards-info","mb-2"],["data-test-id","cgau-link",1,"link","l5-responsive",3,"click"],[1,"fw-bolder","text-primary"],[1,"text-black","l7-responsive","rewards-price-discount"]],template:function(i,n){i&1&&v(0,rp,43,35,"div",1),i&2&&d("ngIf",n.tripDetails)},dependencies:[A,V,Oe,J,Pe,P],styles:["body[_ngcontent-%COMP%], html[_ngcontent-%COMP%]{font-family:Raleway Regular}[_nghost-%COMP%]{display:block}.trip-details-side[_ngcontent-%COMP%]{overflow:hidden;border-radius:15px;background-color:#fff;min-height:100px}@media (max-width: 575.98px){.trip-details-side[_ngcontent-%COMP%]{background-color:#cdcdcd}
4.trip-details-side[_ngcontent-%COMP%] .station-num[_ngcontent-%COMP%]{color:#1a171b}}@media (min-width: 576px) and (max-width: 767.98px){.trip-details-side[_ngcontent-%COMP%]{background-color:#cdcdcd}.trip-details-side[_ngcontent-%COMP%] .station-num[_ngcontent-%COMP%]{color:#929292}}.bonus-won-container[_ngcontent-%COMP%]{background-image:url(/assets/icons/svg/macaron-rewards-positif.svg)}.bonus-lost-container[_ngcontent-%COMP%]{background-image:url(/assets/icons/svg/macaron-rewards-negatif.svg)}.bonus-won-container[_ngcontent-%COMP%], .bonus-lost-container[_ngcontent-%COMP%]{background-repeat:no-repeat;background-color:transparent;background-size:contain;background-position:50%;min-height:50px}.bonus-details[_ngcontent-%COMP%]{border:2px solid #ffffff;border-radius:5px}.trophy-rewards[_ngcontent-%COMP%]{position:absolute;top:230px;left:0}.trophy-rewards[_ngcontent-%COMP%] .img-fluid[_ngcontent-%COMP%]{max-width:25px;max-height:25px;background:#eee}.rewards-info[_ngcontent-%COMP%]{left:0;bottom:113px}.rewards-info[_ngcontent-%COMP%] .link[_ngcontent-%COMP%]{background:#eee;padding:0 5px;bottom:-21px;position:relative;text-align:center}.rewards-price-discount[_ngcontent-%COMP%]{text-decoration:line-through}.rewards-points[_ngcontent-%COMP%]{margin-top:-15%}"]})}}return t})()});function sp(t,s){if(t&1&&(r(0,"div",7)(1,"div",8)(2,"div",9)(3,"div",10)(4,"div",11)(5,"div",12),m(6),c(7,"translate"),a()(),r(8,"div",13)(9,"div",14)(10,"span",15),m(11),a(),r(12,"span",16),m(13),a(),r(14,"span",17),m(15," pts "),a()()()()()()()),t&2){let e=s.$implicit;o(6),h(" ",p(7,7,"REWARDS."+e.name)," "),o(2),d("ngClass",e.type==="RULE"?"bonus-won-container":"bonus-lost-container"),o(2),d("ngClass",e.type==="RULE"?"text-white":"text-primary"),o(),h(" ",e.type&&e.type==="RULE"?"+":"-"," "),o(),d("ngClass",e.type==="RULE"?"text-white":"text-primary"),o(),h(" ",e.reward?e==null?null:e.reward:"0"," "),o(),d("ngClass",e.type==="RULE"?"text-white":"text-primary")}}var Gn,Hn=b(()=>{E();Dt();U();R();
4Gn=(()=>{class t{constructor(e){this.myTripsService=e,this.rewardsList=[]}ngOnInit(){this.myTripsService.getConfigInfoRewards.subscribe(e=>{for(let i of e)i.i18nKey!=="rewards.rule.trip.bonus"&&i.i18nKey!=="rewards.rule.migrate.bonus"&&i.i18nKey!=="rewards.rule.rate.bike"&&this.rewardsList.push(i)})}static{this.\u0275fac=function(i){return new(i||t)(f(fe))}}static{this.\u0275cmp=w({type:t,selectors:[["vls-my-reward-information"]],inputs:{rewardInfoFormModal:"rewardInfoFormModal"},decls:11,vars:7,consts:[[1,"row"],[1,"mb-3","col-12"],[1,"card-body","l4-responsive","pl-4","pr-2"],[1,"col-12","content-rewards"],["class","row d-flex align-items-center line line-item",4,"ngFor","ngForOf"],[1,"col-12","d-flex","justify-content-center"],["type","submit",1,"btn","btn-primary","btn-vls","rounded-3","mb-3",3,"click"],[1,"row","d-flex","align-items-center","line","line-item"],[1,"d-flex","align-items-center","justify-content-start","col-12","col-md-12","l4-responsive"],[1,"col-12","p-0","l4-responsive"],[1,"col-12","p-0","d-flex"],[1,"col-12","p-0"],[1,"col-8","p-0","l6-responsive","text-left","fw-bolder","mt-lg-4","mt-3"],[1,"col-4","bonus-icon","d-flex","p-0","text-center",3,"ngClass"],[1,"col-12","text-center","d-flex","p-0","align-items-center","justify-content-center"],[1,"l7-responsive","text-white",3,"ngClass"],[1,"l6-responsive","bonus-total",3,"ngClass"],[1,"l8-responsive","reward-points",3,"ngClass"]],template:function(i,n){i&1&&(r(0,"div",0)(1,"div",1)(2,"div",2),m(3),c(4,"translate"),a()(),r(5,"div",3),v(6,sp,16,9,"div",4),a(),r(7,"div",5)(8,"button",6),y("click",function(){return n.rewardInfoFormModal.closeModal()}),m(9),c(10,"translate"),a()()()),i&2&&(o(3),h(" ",p(4,3,"REWARDS.DESCRIPTION")," "),o(3),d("ngForOf",n.rewardsList),o(3),h(" ",p(10,5,"ACCOUNT.MIGRATION.STEPS.EXTRA_INFORMATIONS.ADD_CB.MODAL.BUTTON-VALIDATE")," "))},dependencies:[H,ae,P],styles:["body[_ngcontent-%COMP%], html[_ngcontent-%COMP%]{font-family:Raleway Regular}.list-container[_ngcontent-%COMP%]{z-index:10;background-color:#fff}.details-container[_ngcontent-%COMP%]{box-shadow:4px 3px 16px #00000029,2px 0 8px #0000003b;position:relative;left:-2px;z-index:9;background-color:#eee}.line[_ngcontent-%COMP%]{height:4.375em}.line[_ngcontent-%COMP%]:not(:last-child){border-bottom:solid #cdcdcd 1px}.line.line-item[_ngcontent-%COMP%]{border-bottom:solid #cdcdcd 1px}.line.line-item[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:#cdcdcd;-webkit-transition:all .28s ease;transition:all .28s ease}.line.line-item.active[_ngcontent-%COMP%]{background-color:#f4f4f480;-webkit-transition:all .28s ease;transition:all .28s ease}.line.line-item.active[_ngcontent-%COMP%] .sub-title[_ngcontent-%COMP%]{color:#0094aa}.line[_ngcontent-%COMP%] .highlight-item[_ngcontent-%COMP%]{height:2.5em;line-height:2.5em;background:#fff;border-radius:100em}@media (max-width: 575.98px){.resp-bike[_ngcontent-%COMP%]{max-width:50px;height:22px}}@media (min-width: 576px) and (max-width: 767.98px){.resp-bike[_ngcontent-%COMP%]{max-width:50px;height:22px}}@media (min-width: 768px) and (max-width: 991.98px){.resp-bike[_ngcontent-%COMP%]{width:36px;height:22px}}@media (min-width: 992px) and (max-width: 1199.98px){.resp-bike[_ngcontent-%COMP%]{width:56px;height:42px}}@media (min-width: 1200px) and (max-width: 1399.98px){.resp-bike[_ngcontent-%COMP%]{width:56px;height:42px}}.price-trip[_ngcontent-%COMP%]{height:60%;margin-top:auto;margin-bottom:auto;border-radius:15px;background-color:#eee}.price-trip[_ngcontent-%COMP%] .price-number[_ngcontent-%COMP%]{vertical-align:sub}.price-trip[_ngcontent-%COMP%] .text-asterix[_ngcontent-%COMP%]{color:#0094aa}.bonus-total[_ngcontent-%COMP%]{vertical-align:sub}.user-rewards[_ngcontent-%COMP%]{position:relative;right:10%}.text-block[_ngcontent-%COMP%]{display:flex;position:absolute;top:12px;left:5px;color:#0094aa}@media (max-width: 767.98px){.text-block[_ngcontent-%COMP%]{left:10px}}@media (max-width: 575.98px){.text-block[_ngcontent-%COMP%]{left:6px;top:10px}}.bonus-container[_ngcontent-%COMP%]{position:relative;max-width:50px;max-height:50px}@media (max-width: 575.98px){.bonus-container[_ngcontent-%COMP%]{max-width:40px;max-height:40px}}.bonus-won-container[_ngcontent-%COMP%]{background-image:url(/assets/icons/svg/macaron-rewards-positif.svg)}.bonus-lost-container[_ngcontent-%COMP%]{background-image:url(/assets/icons/svg/macaron-rewards-negatif.svg);color:#0094aa}.bonus-neutre-container[_ngcontent-%COMP%]{background-image:url(/assets/icons/svg/macaron-rewards-neutre.svg);color:#fff}.rewards-points[_ngcontent-%COMP%]{margin-top:-15%}.bonus-won-container[_ngcontent-%COMP%], .bonus-lost-container[_ngcontent-%COMP%], .bonus-neutre-container[_ngcontent-%COMP%]{background-repeat:no-repeat;background-color:transparent;background-size:contain;background-position:50%;min-height:50px;margin-left:-40%}@media (max-width: 575.98px){.bonus-won-container[_ngcontent-%COMP%], .bonus-lost-container[_ngcontent-%COMP%], .bonus-neutre-container[_ngcontent-%COMP%]{margin-left:0}}@media (min-width: 576px) and (max-width: 767.98px){.bonus-won-container[_ngcontent-%COMP%], .bonus-lost-container[_ngcontent-%COMP%], .bonus-neutre-container[_ngcontent-%COMP%]{margin-left:0}}.content-rewards[_ngcontent-%COMP%]{padding:3rem!important;margin-top:-64px}.bonus-icon[_ngcontent-%COMP%]{margin-left:-22%!important}.reward-points[_ngcontent-%COMP%]{margin-top:-8%}a[_ngcontent-%COMP%]{text-decoration:none!important;
4color:#1a171b}a[_ngcontent-%COMP%] a.hover[_ngcontent-%COMP%]{color:#0094aa}"]})}}return t})()});function pp(t,s){if(t&1){let e=T();r(0,"div",12)(1,"div",13)(2,"vls-my-trips-list",14),y("click",function(){S(e),g(2);let n=B(9);return M(n.openModal("xs-md-sm"))}),a()(),r(3,"div",15)(4,"vls-my-trip-detail",16),y("openModalRewardInfo",function(){S(e);let n=g(2);return M(n.handleRewardInfo())}),a()()()}}function dp(t,s){if(t&1&&(N(0),v(1,pp,5,0,"div",11),c(2,"async"),F()),t&2){let e=g(),i=B(7);o(),d("ngIf",p(2,2,e.haveTrips))("ngIfElse",i)}}function mp(t,s){t&1&&(r(0,"div",17),m(1),c(2,"translate"),a()),t&2&&(o(),C(p(2,1,"MYACCOUNT.MY-TRIPS.FETCHING-TRIPS")))}function up(t,s){t&1&&(r(0,"div",18),m(1),c(2,"translate"),a()),t&2&&(o(),C(p(2,1,"MYACCOUNT.MY-TRIPS.HAVING-NO-TRIP")))}var Vr,cp,Yi,zn=b(()=>{R();Vr=Be(Hi());He();Te();Ct();Dt();E();Dt();U();Ft();Vn();$n();Hn();R();cp=["rewardInfoFormModal"];Yi=(()=>{class t{constructor(e){this.myTripsService=e,this.haveTrips=new Rt(void 0),this.gettingTrips=new Rt(!1)}ngAfterViewInit(){this.myTripsService.userTrips$.subscribe(e=>{this.gettingTrips.next(!0),this.haveTrips.next(!Vr.isEmpty(e))})}ngOnInit(){}handleRewardInfo(){this.myTripsService.showRewardInfoFormModal(),this.rewardInfoFormModal.$modal.next(!0)}static{this.\u0275fac=function(i){return new(i||t)(f(fe))}}static{this.\u0275cmp=w({type:t,selectors:[["vls-my-trips"]],viewQuery:function(i,n){if(i&1&&z(cp,7),i&2){let l;W(l=q())&&(n.rewardInfoFormModal=l.first)}},features:[re([fe,P,Pe,J])],decls:16,vars:12,consts:[["loading",""],["noTrips",""],["modal",""],["rewardInfoFormModal",""],[1,"container"],[1,"row"],[4,"ngIf","ngIfElse"],[3,"initialState","classes"],[1,"modal-body"],[3,"title","initialState","closeOnClickOutside","classes","wrapper"],[3,"rewardInfoFormModal"],["class","col d-flex align-items-strech",4,"ngIf","ngIfElse"],[1,"col","d-flex","align-items-strech"],[1,"d-inline","col-xl-8","col-lg-8","col-md-12","col-sm-12","col-xs-12","box-shadow","list-container"],[1,"d-block","p-3",3,"click"],[1,"col-xl-4","col-lg-4","col","box-shadow","hidden-md-down","details-container"],[3,"openModalRewardInfo"],[1,"col","d-flex","fw-bolder","l2-responsive","justify-content-center","align-items-center"],[1,"col-12","d-flex","d-block","fw-bolder","l2-responsive","justify-content-center","align-items-center"]],template:function(i,n){if(i&1&&(r(0,"div",4)(1,"div",5),v(2,dp,3,4,"ng-container",6),c(3,"async"),v(4,mp,3,3,"ng-template",null,0,G)(6,up,3,3,"ng-template",null,1,G),a()(),r(8,"vls-modal",7,2)(10,"div",8),x(11,"vls-my-trip-detail"),a()(),r(12,"vls-modal",9,3)(14,"div",8),x(15,"vls-my-reward-information",10),a()()),i&2){let l=B(5),u=B(13);o(2),d("ngIf",p(3,10,n.gettingTrips))("ngIfElse",l),o(6),d("initialState",!1)("classes","modal-lg"),o(4),d("title","MYACCOUNT.MY-PROFIL.REWARDS.TITLE")("initialState",!1)("closeOnClickOutside",!1)("classes","modal-lg")("wrapper",!1),o(3),d("rewardInfoFormModal",u)}},dependencies:[A,ke,jn,Bi,Gn,V,P],styles:["body[_ngcontent-%COMP%], html[_ngcontent-%COMP%]{font-family:Raleway Regular}.list-container[_ngcontent-%COMP%]{z-index:10;background-color:#fff}.details-container[_ngcontent-%COMP%]{box-shadow:4px 3px 16px #00000029,2px 0 8px #0000003b;position:relative;left:-2px;z-index:9;background-color:#eee}.line[_ngcontent-%COMP%]{height:4.375em}.line[_ngcontent-%COMP%]:not(:last-child){border-bottom:solid #cdcdcd 1px}.line.line-item[_ngcontent-%COMP%]{border-bottom:solid #cdcdcd 1px}.line.line-item[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:#cdcdcd;-webkit-transition:all .28s ease;transition:all .28s ease}.line.line-item.active[_ngcontent-%COMP%]{background-color:#f4f4f480;-webkit-transition:all .28s ease;transition:all .28s ease}.line.line-item.active[_ngcontent-%COMP%] .sub-title[_ngcontent-%COMP%]{color:#0094aa}.line[_ngcontent-%COMP%] .highlight-item[_ngcontent-%COMP%]{height:2.5em;line-height:2.5em;background:#fff;border-radius:100em}@media (max-width: 575.98px){.resp-bike[_ngcontent-%COMP%]{max-width:50px;height:22px}}@media (min-width: 576px) and (max-width: 767.98px){.resp-bike[_ngcontent-%COMP%]{max-width:50px;height:22px}}@media (min-width: 768px) and (max-width: 991.98px){.resp-bike[_ngcontent-%COMP%]{width:36px;height:22px}}@media (min-width: 992px) and (max-width: 1199.98px){.resp-bike[_ngcontent-%COMP%]{width:56px;height:42px}}@media (min-width: 1200px) and (max-width: 1399.98px){.resp-bike[_ngcontent-%COMP%]{width:56px;height:42px}}.price-trip[_ngcontent-%COMP%]{height:60%;margin-top:auto;margin-bottom:auto;border-radius:15px;background-color:#eee}.price-trip[_ngcontent-%COMP%] .price-number[_ngcontent-%COMP%]{vertical-align:sub}.price-trip[_ngcontent-%COMP%] .text-asterix[_ngcontent-%COMP%]{color:#0094aa}.bonus-total[_ngcontent-%COMP%]{vertical-align:sub}.user-rewards[_ngcontent-%COMP%]{position:relative;right:10%}.text-block[_ngcontent-%COMP%]{display:flex;position:absolute;top:12px;left:5px;color:#0094aa}@media (max-width: 767.98px){.text-block[_ngcontent-%COMP%]{left:10px}}@media (max-width: 575.98px){.text-block[_ngcontent-%COMP%]{left:6px;top:10px}}.bonus-container[_ngcontent-%COMP%]{position:relative;max-width:50px;max-height:50px}@media (max-width: 575.98px){.bonus-container[_ngcontent-%COMP%]{max-width:40px;max-height:40px}}.bonus-won-container[_ngcontent-%COMP%]{background-image:url(/assets/icons/svg/macaron-rewards-positif.svg)}.bonus-lost-container[_ngcontent-%COMP%]{background-image:url(/assets/icons/svg/macaron-rewards-negatif.svg);color:#0094aa}.bonus-neutre-container[_ngcontent-%COMP%]{background-image:url(/assets/icons/svg/macaron-rewards-neutre.svg);color:#fff}.rewards-points[_ngcontent-%COMP%]{margin-top:-15%}.bonus-won-container[_ngcontent-%COMP%], .bonus-lost-container[_ngcontent-%COMP%], .bonus-neutre-container[_ngcontent-%COMP%]{background-repeat:no-repeat;background-color:transparent;background-size:contain;background-position:50%;min-height:50px;margin-left:-40%}@media (max-width: 575.98px){.bonus-won-container[_ngcontent-%COMP%], .bonus-lost-container[_ngcontent-%COMP%], .bonus-neutre-container[_ngcontent-%COMP%]{margin-left:0}}@media (min-width: 576px) and (max-width: 767.98px){.bonus-won-container[_ngcontent-%COMP%], .bonus-lost-container[_ngcontent-%COMP%], .bonus-neutre-container[_ngcontent-%COMP%]{margin-left:0}}.content-rewards[_ngcontent-%COMP%]{padding:3rem!important;margin-top:-64px}.bonus-icon[_ngcontent-%COMP%]{margin-left:-22%!important}.reward-points[_ngcontent-%COMP%]{margin-top:-8%}a[_ngcontent-%COMP%]{text-decoration:none!important;
4color:#1a171b}a[_ngcontent-%COMP%] a.hover[_ngcontent-%COMP%]{color:#0094aa}"]})}}return t})()});function vp(t,s){if(t&1&&(r(0,"div",11)(1,"div",12)(2,"vls-collapsable-panel"),N(3,13),r(4,"span"),m(5),a(),F(),r(6,"div",14),m(7),a()()()()),t&2){let e=s.$implicit;o(5),C(e.contents[0].question),o(2),h(" ",e.contents[0].response," ")}}function hp(t,s){if(t&1){let e=T();r(0,"div",15),y("click",function(){S(e);let n=g();return M(n.openContactModal())}),x(1,"i",16),r(2,"span",17),m(3),c(4,"translate"),a()()}t&2&&(o(3),h(" ",p(4,1,"MYACCOUNT.MY-SUBSCRIPTIONS.HELP.BY.EMAIL")," "))}function _p(t,s){if(t&1&&(r(0,"a",18),x(1,"i",19),r(2,"span",17),m(3),c(4,"translate"),a()()),t&2){let e=g();d("href",e.features.facebook,Le),o(3),h(" ",p(4,2,"MYACCOUNT.MY-SUBSCRIPTIONS.HELP.BY.FACEBOOK")," ")}}function xp(t,s){if(t&1&&(r(0,"a",18),x(1,"i",20),r(2,"span",17),m(3),c(4,"translate"),a()()),t&2){let e=g();d("href",e.features.twitter,Le),o(3),h(" ",p(4,2,"MYACCOUNT.MY-SUBSCRIPTIONS.HELP.BY.TWITTER")," ")}}function Cp(t,s){if(t&1&&(r(0,"a",18),x(1,"i",21),r(2,"span",17),m(3),c(4,"translate"),a()()),t&2){let e=g();d("href",e.features.instagram,Le),o(3),h(" ",p(4,2,"MYACCOUNT.MY-SUBSCRIPTIONS.HELP.BY.INSTAGRAM")," ")}}function bp(t,s){if(t&1&&(r(0,"a",18),x(1,"i",22),r(2,"span",17),m(3),c(4,"translate"),a()()),t&2){let e=g();d("href",e.features.deaf,Le),o(3),h(" ",p(4,2,"MYACCOUNT.MY-SUBSCRIPTIONS.HELP.BY.DEAF")," ")}}function yp(t,s){if(t&1){let e=T();r(0,"div",15),y("click",function(){S(e);let n=g();return M(n.iNeedToPhone())}),x(1,"i",23),r(2,"span",17),m(3),c(4,"translate"),a()()}t&2&&(o(3),h(" ",p(4,1,"MYACCOUNT.MY-SUBSCRIPTIONS.HELP.BY.PHONE")," "))}function kt(t,s){let e=t.find(i=>i.name===s);return e?e.parameter.value:void 0}var Ui,Wn=b(()=>{ce();Nt();Ha();we();E();To();we();xt();de();U();za();R();Ui=(()=>{class t{static{this.FAQS_QUANTITY_LIMIT=5}constructor(e,i,n,l,u){this._faqsService=e,this._myProfileSharedModalService=i,this._languagesService=n,this._contractService=l,this._faqService=u,this.faqTopic=""}ngOnInit(){this._myProfileSharedModalService.complaint$.pipe(be(e=>(this.canISendAMessage=!!e.dataForm.SubscriptionId,this.faqTopic=this._faqService.getTopicCodeByComplaintType(e.dataForm.complaintType.toString()),this.dataForm=e.dataForm,this.subjectDetailsForMessaging=e.messageSubjectDetails,this._faqsService.searchFaq({code:this.faqTopic})))).subscribe(e=>{this.faqs=e,this.topFaqs=this.generateFaqToDisplay(e)}),this._contractService.getAppFeatures().subscribe(e=>this.features={email:kt(e,$.Features.CRCEmail),phone:kt(e,$.Features.CRCPhone1),deaf:kt(e,$.Features.CRCDeaf),facebook:kt(e,$.Features.socialFacebook),twitter:kt(e,$.Features.socialTwitter),instagram:kt(e,$.Features.socialInstagram)})}openContactModal(){this._myProfileSharedModalService.openModalSendMessage(this.subjectDetailsForMessaging,this.dataForm)}generateFaqToDisplay(e){return e?e.slice(0,t.FAQS_QUANTITY_LIMIT):[]}iNeedToPhone(){this._myProfileSharedModalService.openModalINeedTopPhone(dr.Type.phone)}static{this.\u0275fac=function(i){return new(i||t)(f(Bt),f(me),f(pe),f(oe),f(Bt))}}static{this.\u0275cmp=w({type:t,selectors:[["vls-i-need-help-faq"]],features:[re([or])],decls:17,vars:10,consts:[[1,"modal-body-overflow-hidden","container"],[1,"list-items"],["class","row d-flex",4,"ngFor","ngForOf"],[1,"faq-modal-separator","container"],[1,"row","d-flex","justify-content-center"],[1,"text-center"],[1,"bg-white","text-bold","rounded","text-primary","text-uppercase","position-relative","p-1","fw-3",2,"top","50%"],[1,"faq-modal-footer","container","bg-primary","text-white","text-center"],[1,"row","p-5","d-flex","justify-content-center"],["class","col-3 clickable d-flex flex-column align-items-center",3,"click",4,"ngIf"],["class","col-3 clickable d-flex flex-column align-items-center text-white","target","_blank",3,"href",4,"ngIf"],[1,"row","d-flex"],[1,"col-12"],["header",""],["body",""],[1,"col-3","clickable","d-flex","flex-column","align-items-center",3,"click"],["aria-hidden","true","data-test-id","mail-picto",1,"fa","fa-envelope"],[1,"text-uppercase","hidden-md-down"],["target","_blank",1,"col-3","clickable","d-flex","flex-column","align-items-center","text-white",3,"href"],["aria-hidden","true",1,"fa","fa-facebook"],["aria-hidden","true",1,"fa","fa-twitter"],["aria-hidden","true",1,"fa","fa-instagram"],["aria-hidden","true",1,"fa","fa-deaf"],["aria-hidden","true",1,"fa","fa-phone"]],template:function(i,n){i&1&&(r(0,"div",0)(1,"div",1),v(2,vp,8,2,"div",2),a()(),r(3,"div",3)(4,"div",4)(5,"div",5)(6,"span",6),m(7),c(8,"translate"),a()()()(),r(9,"div",7)(10,"div",8),v(11,hp,5,3,"div",9)(12,_p,5,4,"a",10)(13,xp,5,4,"a",10)(14,Cp,5,4,"a",10)(15,bp,5,4,"a",10)(16,yp,5,3,"div",9),a()()),i&2&&(o(2),d("ngForOf",n.topFaqs),o(5),h(" ",p(8,8,"MYACCOUNT.MY-SUBSCRIPTIONS.HELP.CONTACT-US")," "),o(4),d("ngIf",(n.features==null?null:n.features.email)&&n.canISen
4dAMessage),o(),d("ngIf",n.features==null?null:n.features.facebook),o(),d("ngIf",n.features==null?null:n.features.twitter),o(),d("ngIf",n.features==null?null:n.features.instagram),o(),d("ngIf",n.features==null?null:n.features.deaf),o(),d("ngIf",n.features==null?null:n.features.phone))},dependencies:[ae,A,rr,P],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] #contact-us[_ngcontent-%COMP%]{background:#d3d3d3;padding-bottom:35px}"]})}}return t})()});function Pp(t,s){if(t&1&&(r(0,"div")(1,"span",28),m(2),a()()),t&2){let e=s.$implicit;o(2),h(" ",e,"")}}function Op(t,s){if(t&1&&(N(0),r(1,"div",26),v(2,Pp,3,1,"div",27),a(),F()),t&2){let e=g();o(2),d("ngForOf",e.restOfDetails)}}function Ip(t,s){t&1&&x(0,"i",29)}function wp(t,s){t&1&&x(0,"i",30)}function Tp(t,s){if(t&1){let e=T();r(0,"div",31)(1,"div",32),x(2,"span",20),a(),r(3,"div",33),m(4),c(5,"fileSize"),a(),r(6,"div",34)(7,"i",35),y("click",function(){let n=S(e).$implicit,l=g();return M(l.deleteIt(n.name,n.lastModified))}),a()()()}if(t&2){let e=s.$implicit;o(4),ee(" ",e.name," ",Q(5,2,e.size,4)," ")}}function Ep(t,s){if(t&1&&(r(0,"button",36),m(1),c(2,"translate"),a()),t&2){let e=g();d("disabled",!e.form.valid),o(),h(" ",p(2,2,"MYACCOUNT.MESSAGING.SEND")," ")}}function Ap(t,s){if(t&1&&(r(0,"div",12)(1,"span",37),m(2),c(3,"translate"),a()()),t&2){let e=g();o(2),C(p(3,1,e.status))}}var Mp,$r,Li,qn=b(()=>{Se();ce();Kt();E();Oo();go();we();zi();de();Se();U();R();Aa();Mp=["inputFiles"],$r=t=>({"text-danger":t});Li=(()=>{class t{constructor(e,i,n,l,u){this._subscriptionService=e,this.globalModalService=i,this._myProfileSharedModalService=n,this._loaderGlobalService=l,this._contractService=u,this.isDetailsShown=!1,this.isSubmit=!1,this.attachements=[],this.maxNumberOfFile=0,this.formerkiwiId=""}get detailsFirstLine(){return this.details?this.details[0]:[]}get restOfDetails(){return this.details?this.details.slice(1,this.details.length):[]}get numberOfFile(){return this.form.get("fileNumber")}get fileSize(){return this.form.get("fileSize")}ngOnInit(){this._myProfileSharedModalService.messageSubjectDetails$.subscribe(e=>{this.details=e,this.resetForm(),this.inputFiles.nativeElement.value=""}),this._contractService.getAppFeatures().pipe(Ue(1)).subscribe(e=>{this.maxNumberOfFile=parseInt(e.find(i=>i.name===$.Features.mailMaxNumberAttachements).parameter.value,10),this.maxFileSize=parseInt(e.find(i=>i.name===$.Features.mailMaxSizeAttachements).parameter.value,10)}),this._myProfileSharedModalService.dataForm$.pipe(it(e=>e!==null)).subscribe(e=>{this.dataForm=e,this.resetForm(),this.formerkiwiId=e.TransactionId})}closeModal(){this.globalModalService.closeAllOtherModals()}resetForm(){this.form=new ct({message:new se("",gt.required),fileSize:new se(0,this.isSuperiorTo(this.maxFileSize)),fileNumber:new se(0,this.isSuperiorTo(this.maxNumberOfFile))}),this.attachements=[],this.status=null,this.isSubmit=!1}isSuperiorTo(e){return i=>i.value<=e?null:{isValid:!1}}onFileChage(e){let l=e.target.files;for(let u=0;u<l.length;u++)this.attachements.findIndex(O=>O.name===l.item(u).name&&O.lastModifiedDate.toString()===l.item(u).lastModified.toString())===-1&&this.attachements.push(l[u]);
4this.patchFilesControls()}deleteIt(e,i){let n=this.attachements.findIndex(l=>l.name===e&&l.lastModified===i);this.attachements.splice(n,1),this.patchFilesControls()}patchFilesControls(){let e=this.attachements.length,i=this.attachements.reduce((n,l,u,_)=>parseInt(n)+parseInt(l.size),0);this.form.get("fileSize").patchValue(i),this.form.get("fileNumber").patchValue(e),this.inputFiles.nativeElement.value=""}onSubmit(){this._loaderGlobalService.showLoadingAnimation(!0),this.status="...",this.isSubmit=!0;let e=new FormData;for(let i of this.attachements)e.append("attachments",i);e.append("message",this.form.get("message").value),e.append("complaintType",this.dataForm.complaintType),this.dataForm.complaintType&&this.dataForm.tripId&&e.append("tripId",this.dataForm.tripId),this.dataForm.Status&&this.dataForm.TransactionId&&e.append("transactionId",this.dataForm.TransactionId),this.dataForm.Date&&e.append("date",this.dataForm.Date),this.dataForm.Amount&&e.append("amount",this.dataForm.Amount),this.dataForm.Status&&e.append("status",this.dataForm.Status),this.dataForm.SubscriptionId&&e.append("subscriptionId",this.dataForm.SubscriptionId),this._subscriptionService.sendMessage(e).pipe(Ge(()=>this._loaderGlobalService.showLoadingAnimation(!1))).subscribe(()=>{this.status="MYACCOUNT.MESSAGING.SUCCESS",setTimeout(()=>{this.resetForm(),this._myProfileSharedModalService.closeAllModals()},3e3)},()=>{this._loaderGlobalService.showLoadingAnimation(!1),this.isSubmit=!1,this.status="MYACCOUNT.MESSAGING.ERROR"})}static{this.\u0275fac=function(i){return new(i||t)(f(Ze),f(ei),f(me),f(Z),f(oe))}}static{this.\u0275cmp=w({type:t,selectors:[["vls-help-messaging"]],viewQuery:function(i,n){if(i&1&&z(Mp,7),i&2){let l;W(l=q())&&(n.inputFiles=l.first)}},decls:50,vars:47,consts:[["inputFiles",""],["enctype","multipart/form-data",3,"ngSubmit","formGroup"],[1,"container","mb-4"],[1,"d-flex","flex-row","p-2",3,"click"],[1,"p-1"],[1,"fw-bolder","label-from"],[1,"p-1","ml-2"],[1,"fw-bolder"],[4,"ngIf"],["aria-hidden","true","class","fa fa-chevron-up ml-auto p-1 clickable text-primary",4,"ngIf"],["class","fa fa-chevron-down ml-auto clickable p-1 text-primary","aria-hidden","true",4,"ngIf"],[1,"row","p-2"],[1,"col-12"],["data-test-id","claiming-message","formControlName","message",1,"message-content",3,"placeholder"],[1,"col-12","text-muted"],["data-test-id","attachment-number-msg","data-test-id","text-error",3,"ngClass"],["data-test-id","attachment-size-msg",3,"ngClass"],["class","row file-container d-flex align-items-center","data-test-id","attachment-bloc",4,"ngFor","ngForOf"],[1,"clickable"],["hidden","","type","file","data-test-id","add-attachment-input","multiple","true",3,"change"],[1,"fa","icon-piece-jointe"],[1,"link"],[1,"col-12","d-flex","justify-content-end"],[1,"btn","btn-outline-black","rounded-3","mx-3",3,"click"],["class","btn btn-primary btn-vls rounded-3","data-test-id","claiming-submit","type","submit",3,"disabled",4,"ngIf"],["class","col-12",4,"ngIf"],["data-test-id","claiming-header",1,"mt-2"],[4,"ngFor","ngForOf"],[1,"text-muted"],["aria-hidden","true",1,"fa","fa-chevron-up","ml-auto","p-1","clickable","text-primary"],["aria-hidden","true",1,"fa","fa-chevron-down","ml-auto","clickable","p-1","text-primary"],["data-test-id","attachment-bloc",1,"row","file-container","d-flex","align-items-center"],[1,"col-1"],[1,"col-9"],[1,"col-2"],["data-test-id","trash-img","aria-hidden","true",1,"fa","fa-trash","float-right","clickable","clickable-primary",3,"click"],["data-test-id","claiming-submit","type","submit",1,"btn","btn-primary","btn-vls","rounded-3",3,"disabled"],["data-test-id","claiming-sent-message",1,"text-danger"]],template:function(i,n){if(i&1){let l=T();r(0,"form",1),y("ngSubmit",function(){return S(l),M(n.onSubmit())}),r(1,"div",2)(2,"div",3),y("click",function(){return S(l),M(n.isDetailsShown=!n.isDetailsShown)}),r(3,"div",4)(4,"label",5),m(5),c(6,"translate"),a()(),r(7,"div",6)(8,"div",7)(9,"div"),m(10),a(),v(11,Op,3,1,"ng-container",8),a()(),v(12,Ip,1,0,"i",9)(13,wp,1,0,"i",10),a(),x(14,"hr"),r(15,"div",11)(16,"div",12)(17,"label",7),m(18),c(19,"translate"),a()(),r(20,"div",12),x(21,"textarea",13),c(22,"translate"),a()(),r(23,"div",11)(24,"div",14)(25,"small",15),m(26),c(27,"translate"),c(28,"translate"),a(),r(29,"small",16),m(30),c(31,"translate"),c(32,"fileSize"),c(33,"translate"),a()()(),v(34,Tp,8,5,"div",17),r(35,"div",11)(36,"div",12)(37,"label",18)(38,"input",19,0),y("change",function(_){return S(l),M(n.onFileChage(_))}),a(),x(40,"span",20),r(41,"span",21),m(42),c(43,"translate"),a()()(),r(44,"div",22)(45,"div",23),y("click",function(){return S(l),M(n.closeModal())}),m(46),c(47,"translate"),a(),v(48,Ep,3,4,"button",24),a(),v(49,Ap,4,3,"div",25),a()()()}i&2&&(d("formGroup",n.form),o(5),h("",p(6,22,"MYACCOUNT.MESSAGING.FROM")," "),o(5),h(" ",n.detailsFirstLine," "),o(),d("ngIf",n.isDetail
4sShown),o(),d("ngIf",n.isDetailsShown),o(),d("ngIf",!n.isDetailsShown),o(5),h(" ",p(19,24,"MYACCOUNT.MESSAGING.MESSAGE"),""),o(3),ot("placeholder",p(22,26,"MYACCOUNT.MESSAGING.MESSAGE-PLACEHOLDER")),o(4),d("ngClass",j(43,$r,!n.numberOfFile.valid)),o(),Zt(" ",p(27,28,"MYACCOUNT.MESSAGING.FILE")," ",n.numberOfFile.value," (",p(28,30,"MYACCOUNT.MESSAGING.MAX-NUMBER")," ",n.maxNumberOfFile,") "),o(3),d("ngClass",j(45,$r,!n.fileSize.valid)),o(),ze(" / ",p(31,32,"MYACCOUNT.MESSAGING.TOTAL-FILES-SIZE")," ",Q(32,34,n.fileSize.value,4)," ",p(33,37,"MYACCOUNT.MESSAGING.MAX-NUMBER-OF-FILE")," "),o(4),d("ngForOf",n.attachements),o(8),h(" ",p(43,39,"MYACCOUNT.MESSAGING.ADD-FILE"),""),o(4),h(" ",p(47,41,"MYACCOUNT.MESSAGING.CANCEL")," "),o(2),d("ngIf",!n.isSubmit),o(),d("ngIf",n.status))},dependencies:[_t,ii,vt,ht,H,ae,A,ni,oi,P,Go],styles:["body[_ngcontent-%COMP%], html[_ngcontent-%COMP%]{font-family:Raleway Regular}[_nghost-%COMP%] .message-content[_ngcontent-%COMP%]{min-height:20vh;border:none;background:none;width:100%}[_nghost-%COMP%] .file-container[_ngcontent-%COMP%]{background-color:#d3d3d3;min-height:3em}[_nghost-%COMP%] .label-from[_ngcontent-%COMP%]{white-space:nowrap}[_nghost-%COMP%] .text-muted[_ngcontent-%COMP%]{font-family:Raleway Bold}"]})}}return t})()});function Vp(t,s){t&1&&x(0,"vls-my-profil")}function $p(t,s){t&1&&x(0,"vls-my-statistics")}function Gp(t,s){t&1&&x(0,"vls-my-subscriptions")}function Hp(t,s){t&1&&x(0,"vls-my-trips")}function zp(t,s){t&1&&x(0,"vls-my-payments")}var kp,Rp,Np,Fp,Bp,Yp,Up,Lp,jp,Gr,Qn=b(()=>{ce();uo();Kt();we();E();we();To();ga();Ko();ar();fn();Rn();Ln();zn();Cn();Ft();Ve();U();qa();ja();Ua();Wa();Ba();Ta();$a();Va();Wn();qn();at();R();kp=["sendMessageModal"],Rp=["iNeedHelpModal"],Np=["infoBatteryModal"],Fp=["infoReaboModal"],Bp=["contactModal"],Yp=["renewalModal"],Up=["changePasswordConfirmationModal"],Lp=()=>["/tutorial/groups"],jp=()=>({tab:"FAQ"});Gr=(()=>{class t{constructor(e,i,n,l,u){this._myProfileSharedModalService=e,this._faqService=i,this._contractCoreService=n,this._infoBatteryModalService=l,this._infoReaboModalService=u,this.translateParams={titleBat:null},this.faqTopic="",this.enabledDashboard=!1}ngOnInit(){this._myProfileSharedModalService.complaint$.pipe(it(e=>e!==void 0)).subscribe(e=>{this.faqTopic=this._faqService.getTopicCodeByComplaintType(e.dataForm.complaintType.toString())}),this._infoBatteryModalService.complaintBattery$.pipe(it(e=>!Xt(e))).subscribe(e=>{this.translateParams.titleBat=e.titleBat}),this._contractCoreService.getContractFeatureValue($.Features.dashboardEnabled).subscribe(e=>{e?this.enabledDashboard=!0:this.enabledDashboard=!1})}ngAfterViewInit(){this._myProfileSharedModalService.ineedHelpModal$.subscribe(e=>{e===!0?this.iNeedHelpModal.openModal():this.iNeedHelpModal.closeModal()}),this._infoBatteryModalService.infoBatteryModal$.subscribe(e=>{e===!0?this.infoBatteryModal.openModal():this.infoBatteryModal.closeModal()}),this._infoReaboModalService.infoReaboModal$.subscribe(e=>{e===!0?this.infoReaboModal.openModal():this.infoReaboModal.closeModal()}),this._myProfileSharedModalService.sendMessageModal$.subscribe(e=>{e===!0?this.sendMessageModal.openModal():this.sendMessageModal.closeModal()}),this._myProfileSharedModalService.helpByPhone.subscribe(e=>{e===!0&&this.contactModal.open({phone:!0})}),this._myProfileSharedModalService.changePasswordModal$.subscribe(e=>{e===!0?this.changePasswordConfirmationModal.openModal():this.changePasswordConfirmationModal.closeModal()})}static{this.\u0275fac=function(i){return new(i||t)(f(me),f(Bt),f(oe),f(li),f(pi))}}static{this.\u0275cmp=w({type:t,selectors:[["vls-my-account"]],viewQuery:function(i,n){if(i&1&&(z(kp,7),z(Rp,7),z(Np,7),z(Fp,7),z(Bp,7),z(Yp,7),z(Up,7)),i&2){let l;W(l=q())&&(n.sendMessageModal=l.first),W(l=q())&&(n.iNeedHelpModal=l.first),W(l=q())&&(n.infoBatteryModal=l.first),W(l=q())&&(n.infoReaboModal=l.first),W(l=q())&&(n.contactModal=l.first),W(l=q())&&(n.renewalModal=l.first),W(l=q())&&(n.changePasswordConfirmationModal=l.first)}},features:[re([me])],decls:56,vars:45,consts:[["mdbTab",""],["sendMessageModal",""],["iNeedHelpModal",""],["contactModal",""],["changePasswordConfirmationModal",""],["infoBatteryModal",""],["infoReaboModal",""],[1,"d-block","container","tabs-wrapper"],[3,"tabTitle","route"],[4,"toto"],[3,"ngClass","tabTitle","route"],[3,"title","classes","closeOnClickOutside","wrapper"],[1,"modal-body"],[3,"title","wrapper","classes"],["modalRightHeader",""],[1,"abort-text-transform","row","l5-responsive"],[1,"link",3,"routerLink","queryParams","fragment"],[1,"modal-body","mt-2"],["data-test-id","vls-i-need-help-faq"],[3,"classes","title"],[1,"container-fluid"],[1,"row","col-12"],[1,"col-12","d-flex","justify-content-center"],["data-test-id","confirm-reset",1,"btn","btn-primary","btn-vls","rounded-3",3,"click"],[3,"title","initialState","closeOnClickOutside","titleTranslationParams","classes"],[3,"title","initialState","closeOnClickOutside","classes"],[1,"d-block"]],template:function(i,n){if(i&1){let l=T();x(0,"vls-my-alert-banner"),r(1,"div",7)(2,"vls-tabs")(3,"vls-tab",8,0),v(5,Vp,1,0,"vls-my-profil",9),a(),r(6,"vls-tab",10,0),v(8,$p,1,0,"vls-my-statistics",9),a(),r(9,"vls-tab",8,0),v(11,Gp,1,0,"vls-my-subscriptions",9),a(),r(12,"vls-tab",8,0),v(14,Hp,1,0,"vls-my-trips",9),a(),r(15,"vls-tab",8,0),v(17,zp,1,0,"vls-my-payments",9),a()()(),r(18,"vls-modal",11,1)(20,"div",12),x(21,"vls-help-messaging"),a()(),r(22,"vls-modal",13,2),N(24,14),r(25,"div",15)(26,"a",16),c(27,"localize"),m(28),c(29,"translate"),a()(),F(),r(30,"div",17),x(31,"vls-i-need-help-faq",18),a()(),x(32,"vls-contact-modal",null,3),r(34,"vls-modal",19,4)(36,"div",17)(37,"div",20)(38,"div",21)(39,"label"),m(40),c(41,"translate"),a()(),r(42,"div",22)(43,"button",23),y("click",function(){S(l);let _=B(35);return M(_.closeModal())}),m(44),c(45,"translate"),a()()()()(),r(46,"vls-modal",24,5)(48,"div",12),x(49,"vls-info-battery"),a()(),r(50,"vls-modal",25,6)(52,"div",12),x(53,"vls-info-reabo"),a()(),x(54,"vls-file-reader-modal")(55,"vls-footer-section",26)}
4i&2&&(o(3),d("tabTitle","MYACCOUNT.TABS.MYPROFIL")("route","PROFIL"),o(3),d("ngClass",n.enabledDashboard===!1?"hiddenTab":"")("tabTitle","MYACCOUNT.TABS.MYSTATISTICS")("route","STATISTICS"),o(3),d("tabTitle","MYACCOUNT.TABS.MYSUBSCRIPTIONS")("route","SUBSCRIPTIONS"),o(3),d("tabTitle","MYACCOUNT.TABS.MYTRIPS")("route","TRIPS"),o(3),d("tabTitle","MYACCOUNT.TABS.MYPAYMENTS")("route","PAYMENTS"),o(3),d("title","MYACCOUNT.MESSAGING.TITLE")("classes","modal-lg overflow-auto")("closeOnClickOutside",!1)("wrapper",!1),o(4),d("title","MYACCOUNT.MY-SUBSCRIPTIONS.HELP.FAQ-TITLE")("wrapper",!1)("classes","modal-lg"),o(4),d("routerLink",p(27,35,je(43,Lp)))("queryParams",je(44,jp))("fragment",n.faqTopic),o(2),h(" ",p(29,37,"MYACCOUNT.MY-SUBSCRIPTIONS.HELP.SEE-MORE-FAQ")," "),o(6),d("classes","modal-md")("title","MYACCOUNT.MY-PROFIL.CHANGEPWD"),o(6),C(p(41,39,"LOGIN.EMAILWITHLINKTOUPDATEPASSWORD")),o(4),h(" ",p(45,41,"LOGIN.BUTTONVALIDATE")," "),o(2),d("title","MYACCOUNT.MY-PROFIL.INFO-BATTERY")("initialState",!1)("closeOnClickOutside",!0)("titleTranslationParams",n.translateParams)("classes","modal-lg"),o(4),d("title","MYACCOUNT.MY-SUBSCRIPTIONS.REABO-TITLE")("initialState",!1)("closeOnClickOutside",!0)("classes","modal-lg"))},dependencies:[un,kn,Un,Yi,xn,ke,Ee,H,lr,er,Jo,sr,Qo,jo,ir,tr,Ui,Li,qe,P],styles:["body[_ngcontent-%COMP%], html[_ngcontent-%COMP%]{font-family:Raleway Regular}[_nghost-%COMP%]{display:block;min-height:calc(100vh - 55px);background-color:#f4f4f4}[_nghost-%COMP%] .tabs-wrapper[_ngcontent-%COMP%]{min-height:calc(100vh - 255px)}[_nghost-%COMP%] .abort-text-transform[_ngcontent-%COMP%]{text-transform:none}[_nghost-%COMP%] .overflow-auto[_ngcontent-%COMP%]{overflow:auto}.hiddenTab[_ngcontent-%COMP%]{display:none}"]})}}return t})()});var Hr=b(()=>{Fn()});var zr=b(()=>{Yn()});var Wr=b(()=>{Nn()});var qr=b(()=>{Bn()});var qp,Qr,Zr=b(()=>{U();Ln();Hr();zr();yt();Se();R();Et();Wr();qr();Ve();at();E();qp=[],Qr=(()=>{class t{static forRoot(){return{ngModule:t,providers:qp}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=ve({type:t})}static{this.\u0275inj=ge({imports:[ye,Ie,Ae,De,_e,We,Ne,ut]})}}return t})()});var Kr=b(()=>{zn()});var Jr=b(()=>{$n()});var Qp,Xr,ea=b(()=>{U();Kr();Vn();Jr();yt();Se();R();Et();Hn();E();Qp=[],Xr=(()=>{class t{static forRoot(){return{ngModule:t,providers:Qp}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=ve({type:t})}static{this.\u0275inj=ge({imports:[ye,Ie,Ae,De,_e,Ne]})}}return t})()});var ta=b(()=>{Wn();qn()});var ia,na=b(()=>{E();Qn();ia=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=w({type:t,selectors:[["vls-my-account-page"]],decls:1,vars:0,consts:[[1,"inner-body"]],template:function(i,n){i&1&&x(0,"vls-my-account",0)},dependencies:[Gr],styles:["body[_ngcontent-%COMP%], html[_ngcontent-%COMP%]{font-family:Raleway Regular}[_nghost-%COMP%]{display:block;width:100%;height:100%;position:absolute;background-color:#f4f4f4}"]})}}return t})()});var Zp,oa,h1,Kp=b(()=>{Ve();at();gr();Dr();jr();yt();Se();U();R();Qn();Zr();ea();ta();La();na();Qa();Et();E();Zp=[fr.forRoot(),Lr.forRoot(),Qr.forRoot(),Xr.forRoot(),Ar.forRoot()],oa=[{path:"**",component:ia,data:{title:"SEO.MY_ACCOUNT.TITLE",description:"SEO.MY_ACCOUNT.META_DESCRIPTION"}}],h1=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=ve({type:t})}static{this.\u0275inj=ge({imports:[Zp,Xo,We.forChild(oa),ut.forChild(oa),_e,Ae,ye,De,pr,Ie,Ne]})}}return t})()});Kp();export{h1 as MyAccountComponentModule,oa as routes};
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.