PageSourceSearch

https://www.cyclocity.jp/chunk-QQ2CXVCY.js

js cyclocity.jp collected 2026-10-02 10:38:33 UTC 33,496 bytes, 2 lines download raw bytes

1import{c as Ie,d as oi,i as Me,j as fi}from"./chunk-Y5IGF6JA.js";import{a as yt,b as Ci}from"./chunk-GUPK3NGR.js";import{M as he,N as Ii}from"./chunk-VXCQCUJN.js";import{$a as s,$b as te,$d as ce,$e as ii,Aa as L,Ae as me,Ai as mi,Ba as T,Ca as C,Dh as ve,Eh as _e,Fh as si,Ha as Xt,I as Bt,Ia as zt,Ja as Kt,K as w,Ka as Ct,Kb as m,La as l,Lb as q,M as pt,Ma as mt,Mb as W,Mf as Mt,N as B,Na as d,Nb as Ft,Ne as at,Ob as $e,Oe as ei,P as rt,Q as kt,Qc as ne,Rc as Qe,S as G,Sb as Qt,T as A,Tb as M,U as jt,Ub as Yt,Vb as Jt,Wb as X,Wc as $,Wi as I,X as O,Xa as Ht,Xc as Pt,Xi as ui,Y as g,Ya as qt,Yc as oe,Za as Gt,Zb as vt,Zc as Ye,_b as E,_d as se,_e as ue,ab as c,ac as z,ae as D,af as st,be as _t,bg as Se,cb as Wt,ce as At,cf as de,cg as ni,d as xt,dc as R,de as Ot,e as Ut,ea as Vt,ec as ee,ed as Q,fb as V,fc as ie,fd as re,fe as K,fg as fe,gc as Z,gd as Je,gg as ri,gi as ci,h as It,ha as o,he as gt,ia as p,k as h,kb as Zt,ki as Ae,le as Et,li,m as nt,mb as y,na as b,ne as Nt,o as ot,pa as S,qd as ae,sb as Tt,t as ft,td as ti,ti as Oe,ua as r,ub as $t,ug as Rt,ui as pi,v as wt,va as a,vb as J,vg as Ce,wa as f,we as le,wg as Te,wj as Ee,xa as k,xe as pe,xg as ai,xj as di,y as Y,ya as j,ye as ut,yj as Ne,ze as ht,zi as ge,zj as Si}from"./chunk-5VEDRA44.js";import{e as x}from"./chunk-J4XOFOAH.js";var v,P=x(()=>{ut();pt();B();V();Mt();Qe();v=(()=>{class i{constructor(t,e,n){this.userCoreService=t,this.storageManager=e,this._accountService=n,this.$migrationInfos=new xt,this.$showModal=new Ut(!1),this.$titleSubtitle=new xt}get migrationStatus(){return this.migrationInfos?this.migrationInfos.status:void 0}set migrationStatus(t){this.migrationInfos===void 0&&(this.migrationInfos={}),this.migrationInfos.status=t}get migrationInfos(){return this.storageManager.migrationInfos}set migrationInfos(t){setTimeout(()=>this.$migrationInfos.next(t)),this.storageManager.migrationInfos=t}updateTitleAndSubtitle(t){this.$titleSubtitle.next(t)}get headerTranslationTitles(){return{connexion_vls1:{title:"ACCOUNT.MIGRATION.STEPS.CONNEXION_VLS_1.TITLE",subTitle:"ACCOUNT.MIGRATION.STEPS.CONNEXION_VLS_1.SUBTITLE"},review_info_vls1:{title:"ACCOUNT.MIGRATION.STEPS.REVIEW_INFO_VLS_1.TITLE",subTitle:"ACCOUNT.MIGRATION.STEPS.REVIEW_INFO_VLS_1.SUBTITLE"},confirm_info:{title:"ACCOUNT.MIGRATION.STEPS.EXTRA_INFORMATIONS.TITLE",subTitle:"ACCOUNT.MIGRATION.STEPS.EXTRA_INFORMATIONS.SUBTITLE"},connexion_vls2:{title:"ACCOUNT.MIGRATION.STEPS.CONNEXION_VLS_2.TITLE",subTitle:"ACCOUNT.MIGRATION.STEPS.CONNEXION_VLS_2.SUBTITLE"},before_creation:{title:"ACCOUNT.MIGRATION.STEPS.BEFORE_CREATION.TITLE",subTitle:"ACCOUNT.MIGRATION.STEPS.BEFORE_CREATION.SUBTITLE"},creation:{title:"ACCOUNT.MIGRATION.STEPS.CREATION.TITLE",subTitle:"ACCOUNT.MIGRATION.STEPS.CREATION.SUBTITLE"},done:{title:"ACCOUNT.MIGRATION.STEPS.FINAL_STAGE.DONE.TITLE",subTitle:"ACCOUNT.MIGRATION.STEPS.FINAL_STAGE.DONE.MSG_BOLD"},failed:{title:"ACCOUNT.MIGRATION.STEPS.FINAL_STAGE.FAILED.TITLE",subTitle:"ACCOUNT.MIGRATION.STEPS.FINAL_STAGE.FAILED.MSG_BOLD"}}}vls1AccountLoginFormGenerator(){return new Ot({name:new K("",[D.required]),pincode:new K("",[D.required,D.pattern("^[0-9]*")]),kiwiId:new K("",[D.required,D.pattern("^[0-9]*")])})}getInfosFromVls1AndStoreIt(){return this._accountService.getInfosFromVLS1().pipe(w(t=>{this.migrationInfos=t}))}checkVls1ExistenceOfAccount(t,e,n){return this.userCoreService.loginVLS1ForMigration(t,e,n).pipe(w(u=>{this.migrationInfos=u}))}updateMigrationAccountStatus(t,e){return this.getInfosFromVls1AndStoreIt().pipe(nt(n=>this._accountService.patchVls2MigrationAccount(n.id,t,e))).pipe(wt(n=>It(n)))}static{this.\u0275fac=function(e){return new(e||i)(G(at),G(ne),G(st))}}static{this.\u0275prov=rt({token:i,factory:i.\u0275fac})}}return i})()});function vi(i,N){if(i&1&&(r(0,"a",18),l(1),s(2,"translate"),a()),i&2){let t=C(2);S("href",t.forgotLinks.id,Vt),o(),d(" ",c(2,2,"ACCOUNT.MIGRATION.STEPS.CONNEXION_VLS_1.FORM.LINKS.FORGOT-SUBSCRIBER-ID")," ")}}function _i(i,N){i&1&&(r(0,"span"),l(1,"|"),a())}function Ai(i,N){if(i&1&&(r(0,"a",18),l(1),s(2,"translate"),a()),i&2){let t=C(2);S("href",t.forgotLinks.password,Vt),o(),d(" ",c(2,2,"ACCOUNT.MIGRATION.STEPS.CONNEXION_VLS_1.FORM.LINKS.FORGOT-PIN-CODE")," ")}}function Oi(i,N){if(i&1&&(r(0,"div")(1,"span",19),l(2),s(3,"translate"),a()()),i&2){let t=C(2);o(2),d(" ",c(3,1,"ERRORS."+t.error.toUpperCase()),"")}}function gi(i,N){if(i&1){let t=L();r(0,"form",3),T("ngSubmit",function(){O(t);let n=C();return g(n.onSubmit())}),r(1,"div")(2,"div",4),f(3,"input",5),r(4,"label",6),l(5),s(6,"translate"),a()(),r(7,"div",4),f(8,"input",7),r(9,"label",8),l(10),s(11,"translate"),a()(),r(12,"div",4),f(13,"input",9),r(14,"label",10),l(15),s(16,"translate"),a()()(),r(17,"div"),b(18,vi,3,4,"a",11)(19,_i,2,0,"span",12)(20,Ai,3,4,"a",13),a(),r(21,"div",14)(22,"button",15),l(23),s(24,"translate"),a(),b(25,Oi,4,3,"div",12),a(),r(26,"div",16),l(27),s(28,"translate"),a(),r(29,"a",17),T("click",function(){O(t);let n=C();return g(n.goToVls2Login())}),l(30),s(31,"translate"),a()()}if(i&2){let t=C();S("formGroup",t.form1),o(5),d(" ",c(6,12,"ACCOUNT.MIGRATION.STEPS.CONNEXION_VLS_1.FORM.FAMILY_NAME.LABEL")," "),o(5),d(" ",c(11,14,"ACCOUNT.MIGRATION.STEPS.CONNEXION_VLS_1.FORM.SUBSCRIBER_ID.LABEL")," "),o(5),d(" ",c(16,16,"ACCOUNT.MIGRATION.STEPS.CONNEXION_VLS_1.FORM.PIN_CODE.LABEL")," "),o(3),S("ngIf",t.forgotLinks==null?null:t.forgotLinks.id),o(),S("ngIf",t.forgotLinks==null?null:t.forgotLinks.id),o(),S("ngIf",t.forgotLinks==null?null:t.forgotLinks.password),o(2),S("disabled",!t.form1.valid),o(),d(" ",c(24,18,"ACCOUNT.MIGRATION.STEPS.CONNEXION_VLS_1.FORM.BUTTON-VALIDATE")," "),o(2),S("ngIf",t.error),o(2),d(" ",c(28,20,"ACCOUNT.MIGRATION.STEPS.CONNEXION_VLS_1.LINK_TO_VLS_2-CONNEXION.DESCRIPTION")," "),o(3),d(" ",c(31,22,"ACCOUNT.MIGRATION.STEPS.CONNEXION_VLS_1.LINK_TO_VLS_2-CONNEXION.LABEL")," ")}}var be,Le=x(()=>{pt();B();q();Ft();V();X();Z();Je();Pt();P();J();ut();z();be=(()=>{class i{constructor(t,e,n,u,_){this._router=t,this._localize=e,this.contractCoreService=n,this.loaderGlobalService=u,this.accMigCompService=_,this.isValidate=!1,this.title=this.accMigCompService.headerTranslationTitles.connexion_vls1.title,this.subTitle=this.accMigCompService.headerTranslationTitles.connexion_vls1.subTitle}ngOnInit(){this.form1=this.accMigCompService.vls1AccountLoginFormGenerator(),this.contractCoreService.getContractFeatureValue(W.Features.ISMIGRATIONDONE).pipe(ft(t=>t==="false"),nt(t=>ot(this.contractCoreService.getContractFeatureValue(W.Features.urlVLS1ForgottenId),this.contractCoreService.getContractFeatureValue(W.Features.urlVLS1ForgottenPassword)))).subscribe(t=>{this.forgotLinks={id:t[0],password:t[1]}})}goToVls2Login(){this.accMigCompService.migrationStatus=m.Status._USER_HAS_STARTED_MIGRATION_PROCESS,this._router.navigate([this._localize.translateRoute("/account/migration/login-continue")])}onSubmit(){this.loaderGlobalService.showLoadingAnimation(!0),this.isValidate=!0;let t=this.form1.getRawValue();this.form1.valid&&(this.error=null,this.accMigCompService.checkVls1ExistenceOfAccount(t.name,t.pincode,t.kiwiId).subscribe(e=>{e.code&&e.message?(this.loaderGlobalService.showLoadingAnimation(!1),this.error=e.code):this._router.navigate([this._localize.translateRoute("/account/migration/review")]).then(n=>this.loaderGlobalService.showLoadingAnimation(!1))}))}static{this.\u0275fac=function(e){return new(e||i)(p(M),p(R),p(Q),p($),p(v))}}static{this.\u0275cmp=A({type:i,selectors:[["vls-vls1-migration-container"]],decls:5,vars:4,consts:[[1,"pt-4","pb-4"],[1,"text-regular","black-normal","l5-responsive"],["class","mt-2 mb-3","novalidate","",3,"formGroup","ngSubmit",4,"ngIf"],["novalidate","",1,"mt-2","mb-3",3,"ngSubmit","formGroup"],[1,"form-floating","form-group"],["id","family-name","type","text","formControlName","name",1,"form-control"],["for","family-name"],["id","subscriber-id","type","text","formControlName","kiwiId",1,"form-control"],["for","subscriber-id"],["id","pincode","type","password","formControlName","pincode",1,"form-control"],["for","pincode"],["class","link l5-responsive","target","_blank",3,"href",4,"ngIf"],[4,"ngIf"],["class","link  l5-responsive","target","_blank",3,"href",4,"ngIf"],[1,"mt-4","mb-4"],[1,"btn","btn-primary","btn-vls",3,"disabled"],[1,"l5-responsive"],[1,"link","l5-responsive",3,"click"],["target","_blank",1,"link","l5-responsive",3,"href"],[1,"fw-bolder","primary-normal","l5-responsive"]],template:function(e,n){e&1&&(r(0,"div",0)(1,"span",1),l(2),s(3,"translate"),a()(),b(4,gi,32,24,"form",2)),e&2&&(o(2),d(" ",c(3,2,"ACCOUNT.MIGRATION.STEPS.CONNEXION_VLS_1.INSTRUCTION_MESSAGE")," "),o(2),S("ngIf",n.form1))},dependencies:[y,gt,ce,_t,At,Et,Nt,E]})}}return i})()});function Ei(i,N){if(i&1){let t=L();k(0),r(1,"vls-conversational-form",1),T("validateForm",function(n){O(t);let u=C();return g(u.getConversationalFormValue(n))}),a(),j()}if(i&2){let t=C();o(),S("questions",t.questions)("title",t.title)("subTitle",t.subTitle)("displaySteps",!1)("isFormSubmitted",t.isFormSubmitted)}}function Ni(i,N){if(i&1){let t=L();k(0),r(1,"div")(2,"div"),l(3),s(4,"translate"),a(),r(5,"div",2),l(6),a()(),f(7,"br")(8,"br"),r(9,"div")(10,"div",3),l(11),s(12,"translate"),a()(),f(13,"br")(14,"br"),r(15,"div")(16,"a",4),T("click",function(){O(t);let n=C();return g(n.initQuestions())}),l(17),s(18,"translate"),a()(),j()}if(i&2){let t=C();o(3),mt(c(4,4,"ACCOUNT.MIGRATION.STEPS.CREATION.CONFIRMATION_MESSAGE.DESCRIPTION")),o(3),mt(t.user.email),o(5),d(" ",c(12,6,"ACCOUNT.MIGRATION.STEPS.CREATION.CONFIRMATION_MESSAGE.INSTRUCTION")," "),o(6),d(" ",c(18,8,"ACCOUNT.MIGRATION.STEPS.CREATION.CONFIRMATION_MESSAGE.LINK.LABEL")," ")}}var xe,Ve=x(()=>{Ci();me();V();P();Mt();J();li();z();xe=(()=>{class i{constructor(t,e){this.accountMigrationCompService=t,this.userService=e,this.isFormSubmitted=!1,this.user={},this.title=this.accountMigrationCompService.headerTranslationTitles.creation.title,this.subTitle=this.accountMigrationCompService.headerTranslationTitles.creation.subTitle,this.modifiedEmail=this.accountMigrationCompService.migrationInfos?this.accountMigrationCompService.migrationInfos.emailKiwi:"",this.initQuestions()}ngOnInit(){}getConversationalFormValue(t){this.user=t;let e={action:ht.TYPES.ACCOUNT_MIGRATION,command:{onSuccess:"/account/migration/confirm-information",onError:"/account/migration/confirm-information"},infos:this.accountMigrationCompService.migrationInfos};this.modifiedEmail=this.user.email,this.userService.create(t,e).subscribe(()=>this.isFormSubmitted=!0)}initQuestions(){this.isFormSubmitted=!1,this.questions=yt.accountMigrationCreation(this.modifiedEmail),this.questions.items.map(t=>{yt.setInputErrorMessage(t)})}static{this.\u0275fac=function(e){return new(e||i)(p(v),p(at))}}static{this.\u0275cmp=A({type:i,selectors:[["vls-vls2-account-creation"]],decls:2,vars:2,consts:[[4,"ngIf"],[3,"validateForm","questions","title","subTitle","displaySteps","isFormSubmitted"],[1,"fw-bolder","black-normal"],[1,"fw-bolder","black-normal","text-uppercase"],[1,"link","fw-bolder","primary-normal",3,"click"]],template:function(e,n){e&1&&b(0,Ei,2,5,"ng-container",0)(1,Ni,19,10,"ng-container",0),e&2&&(S("ngIf",n.questions&&!n.isFormSubmitted),o(),S("ngIf",n.isFormSubmitted))},dependencies:[y,Ae,E]})}}return i})()});function Mi(i,N){if(i&1){let t=L();r(0,"form",1),T("ngSubmit",function(){O(t);let n=C();return g(n.onSubmit())}),r(1,"div",2)(2,"div",3)(3,"vls-input-phone",4),T("inputChange",function(n){O(t);let u=C();return g(u.onPhoneInputChange(n))}),a()(),r(4,"div",5)(5,"div",6),f(6,"input",7),r(7,"label",8),l(8),s(9,"translate"),a()(),r(10,"div",6),f(11,"input",9),r(12,"label",10),l(13),s(14,"translate"),a()(),r(15,"div",11),f(16,"input",12),r(17,"label",13),l(18),s(19,"translate"),r(20,"a",14),s(21,"localize"),l(22),s(23,"translate"),a()()()(),r(24,"div",15)(25,"button",16),l(26),s(27,"translate"),a()()()()}if(i&2){let t=C();S("formGroup",t.form),o(3),S("value",t.form.get("phone").value)("label","ACCOUNT.MIGRATION.STEPS.EXTRA_INFORMATIONS.FORM.PHONE.LABEL"),o(5),d(" ",c(9,10,"ACCOUNT.MIGRATION.STEPS.EXTRA_INFORMATIONS.FORM.NEWSLETTER.LABEL")," "),o(5),d(" ",c(14,12,"ACCOUNT.MIGRATION.STEPS.EXTRA_INFORMATIONS.FORM.PARTNERS_COMMUNICATION.LABEL")," "),o(5),d(" ",c(19,14,"ACCOUNT.MIGRATION.STEPS.EXTRA_INFORMATIONS.FORM.CGAU.LABEL")," "),o(2),S("routerLink",c(21,16,Ht(22,hi))),o(2),d(" ",c(23,18,"ACCOUNT.MIGRATION.STEPS.EXTRA_INFORMATIONS.FORM.CGAU.LINK_LABEL")," "),o(3),S("disabled",!t.is
1FormValid),o(),d(" ",c(27,20,"ACCOUNT.MIGRATION.STEPS.EXTRA_INFORMATIONS.FORM.BUTTON-VALIDATE")," ")}}var hi,Ge,Fe=x(()=>{ut();pt();B();q();ti();V();P();ci();X();Z();Pt();Mt();J();ut();si();z();hi=()=>["/documents/cgau/VLS"];Ge=(()=>{class i{constructor(t,e,n,u,_,U,Lt,Ze){this._accountMigrationCompService=t,this.phoneNumberServce=e,this._router=n,this._localize=u,this.loaderGlobalService=_,this._accountCoreService=U,this._contractService=Lt,this.cgauCoreService=Ze,this.isFormValid=!1,this.initValue={phone:null},this.title=this._accountMigrationCompService.headerTranslationTitles.confirm_info.title,this.subTitle=this._accountMigrationCompService.headerTranslationTitles.confirm_info.subTitle}ngOnInit(){ot(this._accountCoreService.getInfosFromVLS1(),this.cgauCoreService.getValidCGAU(ae.VLS).pipe(Y(1),h(t=>t.version))).pipe(h(t=>({infosVls1:t[0],cgauVersion:t[1]})),w(t=>{this.initValue.phone=t.infosVls1.phoneKiwi,this.cgauVersion=t.cgauVersion})).subscribe(t=>{this.form=new Ot({phone:new K(t.infosVls1.phoneKiwi,[D.required],[this.PhoneNumber.bind(this)]),optInSystem:new K(!1),optInPartner:new K(!1),cgau:new K("",[D.required,D.requiredTrue])}),this.form.statusChanges.pipe(h(e=>e==="VALID")).subscribe(e=>{this.isFormValid=e})})}PhoneNumber(t){return this.phoneNumberServce.$isValidPhoneNumber(t.value).pipe(h(e=>e?null:{valid:!1}))}onSubmit(){this.loaderGlobalService.showLoadingAnimation(!0);let t=this.form.getRawValue(),e={optInPartner:t.optInPartner,optInSystem:t.optInSystem,cgau:{contractCode:this._contractService.name,version:this.cgauVersion},phoneNumber:t.phone};this._accountCoreService.update(e).pipe(nt(n=>this._accountMigrationCompService.updateMigrationAccountStatus(m.Status.PHONE_MODIFIED,{phoneVls2:t.phone}))).subscribe(n=>{this._router.navigate([this._localize.translateRoute("/account/migration/add-cb")]).then(u=>this.loaderGlobalService.showLoadingAnimation(!1))})}onPhoneInputChange(t){this.form.get("phone").patchValue(t.E164)}static{this.\u0275fac=function(e){return new(e||i)(p(v),p(ve),p(M),p(R),p($),p(st),p(Q),p(de))}}static{this.\u0275cmp=A({type:i,selectors:[["vls-confirm-infos-vls"]],decls:1,vars:1,consts:[[3,"formGroup","ngSubmit",4,"ngIf"],[3,"ngSubmit","formGroup"],[1,"row"],[1,"col-12","pt-3","mt-5"],[3,"inputChange","value","label"],[1,"col-12","ml-2"],[1,"form-check"],["type","checkbox","formControlName","optInSystem","id","optInSystem",1,"form-check-input"],["for","optInSystem",1,"form-check-label"],["type","checkbox","formControlName","optInPartner","id","optInPartner",1,"form-check-input"],["for","optInPartner",1,"small","form-check-label"],[1,"form-check","pt-3","pb-3"],["type","checkbox","formControlName","cgau","id","cgau",1,"form-check-input"],["for","cgau",1,"form-check-label"],["target","_blank",1,"link",3,"routerLink"],[1,"col-12"],["type","submit",1,"btn","btn-primary","rounded-3","btn-vls",3,"disabled"]],template:function(e,n){e&1&&b(0,Mi,28,23,"form",0),e&2&&S("ngIf",n.form)},dependencies:[y,gt,se,_t,At,Et,Nt,Yt,_e,ee,E],encapsulation:2})}}return i})()});var Ri,Pe,ye=x(()=>{B();q();ui();V();P();X();z();di();pi();Si();ni();Ri=["alertAboutCBInformation"],Pe=(()=>{class i{constructor(t){this._accountMigrationCompService=t,this.list=[{index:1,title:"ACCOUNT.MIGRATION.STEPS_LIST_SIDE.STEPS.CONNEXION",status:[I.current]},{index:2,title:"ACCOUNT.MIGRATION.STEPS_LIST_SIDE.STEPS.CREATE_ACCOUNT",status:[I.pristine]},{index:3,title:"ACCOUNT.MIGRATION.STEPS_LIST_SIDE.STEPS.PAYMENT",status:[I.pristine]}]}ngAfterViewInit(){this._accountMigrationCompService.$showModal.pipe(ft(t=>t===!0)).subscribe(t=>{this.alertAboutCBInformation.openModal()})}ngOnInit(){this._accountMigrationCompService.$migrationInfos.pipe(h(t=>t.status)).subscribe(t=>{switch(t){case m.Status._USER_CHECK_EXISTENCE_VLS1_ACCOUNT:{this.updateListStepStatus(I.current,I.pristine,I.pristine);break}case m.Status._USER_HAS_STARTED_MIGRATION_PROCESS:{this.updateListStepStatus(I.current,I.pristine,I.pristine);break}case m.Status.INITIALIZATION:{this.updateListStepStatus(I.current,I.pristine,I.pristine);break}case m.Status.ACCOUNT_CREATED:{this.updateListStepStatus(I.valid,I.current,I.pristine);break}case m.Status.PHONE_MODIFIED:{this.updateListStepStatus(I.valid,I.valid,I.current);break}case m.Status.IN_PROGRESS:{this.updateListStepStatus(I.valid,I.valid,I.current);break}case m.Status.CB_OK:{this.updateListStepStatus(I.valid,I.valid,I.valid);break}case m.Status.DONE:{this.updateListStepStatus(I.valid,I.valid,I.valid);break}case m.Status.FAILED:{this.updateListStepStatus(I.valid,I.valid,I.valid);break}}}),this._accountMigrationCompService.$titleSubtitle.subscribe(t=>{this.title=t.title,this.subTitle=t.subtitle})}updateListStepStatus(t,e,n){this.list.find(u=>u.index===1).status=[t],this.list.find(u=>u.index===2).status=[e],this.list.find(u=>u.index===3).status=[n]}setTitleAndSubTitle(t){this.title=t.title,this.subTitle=t.subTitle}static{this.\u0275fac=function(e){return new(e||i)(p(v))}}static{this.\u0275cmp=A({type:i,selectors:[["vls-container"]],viewQuery:function(e,n){if(e&1&&Xt(Ri,7),e&2){let u;zt(u=Kt())&&(n.alertAboutCBInformation=u.first)}},decls:45,vars:32,consts:[["alertAboutCBInformation",""],[3,"rightBackImagePosition","rightBackImageUrl"],["leftSideHeader",""],[1,"container-title","fw-bolder","black-normal","l1-responsive"],[1,"fw-bolder","black-normal","l3-responsive","text-uppercase",3,"translate"],["leftSideContent",""],[3,"activate"],["rightSide",""],[1,"container"],[1,"row"],[1,"offset-lg-1","col-lg-11","col-md-12"],[1,"fw-bolder","primary-normal","l2-responsive","text-uppercase"],[1,"text-regular","black-normal","l4-responsive"],[1,"fw-bolder","black-normal","l4-responsive"],[1,"col-12","mt-4"],[3,"list"],[3,"title","classes","displayCloseButton","closeOnClickOutside"],[1,"modal-body","mt-2"],[1,"container-fluid","pl-5","pr-5","pb-5"],[1,"col-12"],[1,"l4-responsive","fw-bolder"],[1,"l4-responsive"],[1,"l4-responsive","fw-bolder","primary-normal"],[1,"col-12","d-flex","justify-content-center"],[1,"btn","btn-vls","btn-primary","px-5",3,"click"]],template:function(e,n){if(e&1){let u=L();r(0,"vls-split-form-container",1),k(1,2),r(2,"h1",3),l(3),s(4,"translate"),a(),f(5,"h3",4),j(),k(6,5),r(7,"router-outlet",6),T("activate",function(U){return O(u),g(n.setTitleAndSubTitle(U))}),a(),j(),k(8,7),r(9,"div",8)(10,"div",9)(11,"div",10)(12,"h3",11),l(13),s(14,"translate"),a(),f(15,"br"),r(16,"div",12),l(17),s(18,"translate"),a(),r(19,"div",13),l(20),s(21,"translate"),a()()(),r(22,"div",9)(23,"div",14),f(24,"vls-side-step-list",15),a()()(),j(),a(),f(25,"vls-light-footer"),r(26,"vls-modal",16,0)(28,"div",17)(29,"div",18)(30,"div",9)(31,"div",19)(32,"p",20),l(33),s(34,"translate"),a(),r(35,"p",21),l(36),s(37,"translate"),a(),r(38,"p",22),l(39),s(40,"translate"),a()(),r(41,"div",23)(42,"div",24),T("click",function(){O(u);let U=Ct(27);return g(U.closeModal())}),l(43),s(44,"translate"),a()()()()()()}e&2&&(S("rightBackImagePosition","right")("rightBackImageUrl","assets/img/velo-3d.png"),o(3),d(" ",c(4,16,n.title)," "),o(2),S("translate",n.subTitle),o(8),d(" ",c(14,18,"ACCOUNT.MIGRATION.STEPS_LIST_SIDE.TITLE")," "),o(4),d(" ",c(18,20,"ACCOUNT.MIGRATION.STEPS_LIST_SIDE.SUBTITLE")," "),o(3),d(" ",c(21,22,"ACCOUNT.MIGRATION.STEPS_LIST_SIDE.INSTRUCTION_MESSAGE")," "),o(4),S("list",n.list),o(2),S("title","ACCOUNT.MIGRATION.STEPS.EXTRA_INFORMATIONS.ADD_CB.MODAL.TITLE")("classes","modal-lg")("displayCloseButton",!1)("closeOnClickOutside",!1),o(7),d(" ",c(34,24,"ACCOUNT.MIGRATION.STEPS.EXTRA_INFORMATIONS.ADD_CB.MODAL.MSG_BOLD")," "),o(3),d(" ",c(37,26,"ACCOUNT.MIGRATION.STEPS.EXTRA_INFORMATIONS.ADD_CB.MODAL.MSG_NORMAL")," "),o(3),d(" ",c(40,28,"ACCOUNT.MIGRATION.STEPS.EXTRA_INFORMATIONS.ADD_CB.MODAL.MSG_3_COLORED")," "),o(4),d(" ",c(44,30,"ACCOUNT.MIGRATION.STEPS.EXTRA_INFORMATIONS.ADD_CB.MODAL.BUTTON-VALIDATE")," "))},dependencies:[Qt,vt,Ee,Oe,Ne,Se,E],styles:["[_nghost-%COMP%]   .leftSideBack[_ngcontent-%COMP%]{position:absolute}"]})}}return i})()});var lt,bt=x(()=>{B();q();pt();V();ei();P();lt=(()=>{class i{constructor(t,e){this.userService=t,this._accountMigrationCompService=e}migrationStepEvaluator(){return this.userService.$loginStream.pipe(Bt(t=>t?this._accountMigrationCompService.getInfosFromVls1AndStoreIt().pipe(h(e=>e.status===void 0?(console.info("no status is set for this connected user"),m.Status.NO_STATUS):e.status)):It(this.getStatusWhenNotConnected())))}getStatusWhenNotConnected(){let t=this._accountMigrationCompService.migrationStatus,e=[m.Status.PHONE_MODIFIED,m.Status.CB_OK,m.Status.DONE,m.Status.FAILED,m.Status.ACCOUNT_CREATED];return t==null?m.Status._USER_CHECK_EXISTENCE_VLS1_ACCOUNT:e.includes(t.toString())?m.Status._USER_HAS_STARTED_MIGRATION_PROCESS:t}static{this.\u0275fac=function(e){return new(e||i)(G(at),G(v))}}static{this.\u0275prov=rt({token:i,factory:i.\u0275fac})}}return i})()});function bi(i,N){if(i&1){let t=L();r(0,"div",5)(1,"a",6),T("click",function(){O(t);let n=C();return g(n.goToResetPassword())}),l(2),s(3,"translate"),a()()}
1i&2&&(o(2),mt(c(3,1,"LOGIN.FORGOTTENPASSWORD")))}var Ue,we=x(()=>{B();q();me();V();P();Ye();ri();X();Z();J();oi();z();Ue=(()=>{class i{constructor(t,e,n,u,_){this._accountMigrationService=t,this.loginGlobalService=e,this.migrationStatusService=n,this._router=u,this._localize=_,this.title=this._accountMigrationService.headerTranslationTitles.connexion_vls2.title,this.subTitle=this._accountMigrationService.headerTranslationTitles.connexion_vls2.subTitle}get action(){return ht.TYPES.ACCOUNT_MIGRATION_LOGIN}ngOnInit(){}isMigrationDone(){return this.migrationStatusService.quickMigrationStatus().pipe(w(t=>console.log(t)))}goToResetPassword(){this.loginGlobalService.loginHandler({passwordReset:!0,isLoginModalShow:!0})}goToVls1Login(){this._accountMigrationService.migrationStatus=m.Status._USER_CHECK_EXISTENCE_VLS1_ACCOUNT,this._router.navigate([this._localize.translateRoute("/account/migration/login")])}static{this.\u0275fac=function(e){return new(e||i)(p(v),p(oe),p(fe),p(M),p(R))}}static{this.\u0275cmp=A({type:i,selectors:[["vls-vls2-account-login"]],decls:10,vars:10,consts:[[1,"row"],[1,"col-12","mb-3"],[1,"mb-5","mt-5"],[3,"labelEmailInput","labelPasswordInput","labelButton","action"],["class","col-12",4,"ngIf"],[1,"col-12"],[1,"link","l5-responsive",3,"click"]],template:function(e,n){e&1&&(r(0,"div",0)(1,"div",1)(2,"div",2),f(3,"vls-login-in",3),a()(),b(4,bi,4,3,"div",4),s(5,"async"),r(6,"div",5)(7,"a",6),T("click",function(){return n.goToVls1Login()}),l(8),s(9,"translate"),a()()()),e&2&&(o(3),S("labelEmailInput","ACCOUNT.MIGRATION.STEPS.CONNEXION_VLS_2.FORM.EMAIL.LABEL")("labelPasswordInput","ACCOUNT.MIGRATION.STEPS.CONNEXION_VLS_2.FORM.PIN-CODE.LABEL")("labelButton","ACCOUNT.MIGRATION.STEPS.CONNEXION_VLS_2.FORM.BUTTON-VALIDATE")("action",n.action),o(),S("ngIf",c(5,6,n.isMigrationDone())),o(4),d(" ",c(9,8,"ACCOUNT.MIGRATION.STEPS.CONNEXION_VLS_2.LINK_TO_VLS_1_CONNEXION.LABEL")," "))},dependencies:[y,Ie,Tt,E]})}}return i})()});var it,Be=x(()=>{B();q();V();X();Z();bt();it=(()=>{class i{constructor(t,e,n){this.router=t,this.localize=e,this.accountMigrationEvaluatorService=n}canActivate(t,e){return this.accountMigrationEvaluatorService.migrationStepEvaluator().pipe(h(n=>({isValid:n===t.data.status,status:n})),w(n=>{let u=n.status;u===m.Status.NO_STATUS?this.router.navigate([this.localize.translateRoute("/home")]):!n.isValid&&t.data.urls.hasOwnProperty(u)&&this.router.navigate(t.data.urls[u.toString()])}),h(n=>n.isValid))}static{this.\u0275fac=function(e){return new(e||i)(G(M),G(R),G(lt))}}static{this.\u0275prov=rt({token:i,factory:i.\u0275fac})}}return i})()});var ke,je=x(()=>{B();q();pt();Ft();V();X();Z();P();Pt();re();bt();z();ke=(()=>{class i{constructor(t,e,n,u,_,U){this._router=t,this._localize=e,this.accMigCompService=n,this._loaderGlobalService=u,this.contractService=_,this._accountMigrationEvaluatorService=U}ngOnInit(){this._loaderGlobalService.showLoadingAnimation(!0),ot(this.contractService.getContractFeatureValue(W.Features.ISMIGRATIONDONE).pipe(Y(1)),this._accountMigrationEvaluatorService.migrationStepEvaluator().pipe(Y(1))).subscribe(t=>{let e=t[1],n=t[0],u=[m.Status.IN_PROGRESS,m.Status.DONE,m.Status.CB_OK];this._loaderGlobalService.showLoadingAnimation(!1),u.includes(e)?u.includes(e.toString())?(this.accMigCompService.updateTitleAndSubtitle({title:this.accMigCompService.headerTranslationTitles.done.title,subtitle:this.accMigCompService.headerTranslationTitles.done.subTitle}),n==="true"?this.content="ACCOUNT.MIGRATION.STEPS.FINAL_STAGE.DONE.MSG_NORMAL_MIGRATION_DONE":this.content="ACCOUNT.MIGRATION.STEPS.FINAL_STAGE.DONE.MSG_NORMAL"):(this.accMigCompService.updateTitleAndSubtitle({title:this.accMigCompService.headerTranslationTitles.failed.title,subtitle:this.accMigCompService.headerTranslationTitles.failed.subTitle}),this.content="ACCOUNT.MIGRATION.STEPS.FINAL_STAGE.FAILED.MSG_NORMAL"):this._router.navigate([this._localize.translateRoute("/account/migration")])})}static{this.\u0275fac=function(e){return new(e||i)(p(M),p(R),p(v),p($),p(Q),p(lt))}}static{this.\u0275cmp=A({type:i,selectors:[["vls-final-migration"]],decls:4,vars:3,consts:[[1,"mt-3"]],template:function(e,n){e&1&&(r(0,"div",0)(1,"p"),l(2),s(3,"translate"),a()()),e&2&&(o(2),d(" ",c(3,1,n.content)," "))},dependencies:[E],encapsulation:2})}}return i})()});var xi,Xe,ze=x(()=>{B();$e();V();Mt();P();ii();ai();X();Z();J();mi();z();xi=i=>({disabled:i}),Xe=(()=>{class i{constructor(t,e,n,u,_,U,Lt){this.accountCoreService=t,this.accountMigrationCompService=e,this.confirmModalService=n,this.loaderGlobalService=u,this.paymentMethodService=_,this.router=U,this.localize=Lt,this.paymentOptions=[],this.paymentMethodValid=!1}userChoosePayment(t){this.accountCoreService.fetchPaymentInfos().pipe(h(e=>e.paymentValid)).subscribe(e=>{this.paymentMethodValid=e})}refreshPaymentOptions(){this.paymentOptions=[],this.paymentMethodService.getAvailableMethodOfPaymentForAnAccount().pipe(Y(1)).subscribe(t=>{this.paymentOptions=t,this.paymentOptions.find(n=>n.options!==void 0&&n.options.description&&n.options.description.isValid===!0)!==void 0===!0&&this.validateAndNextStep()})}validateAndNextStep(){this.loaderGlobalService.showLoadingAnimation(!0),this.accountMigrationCompService.updateMigrationAccountStatus(m.Status.CB_OK).subscribe(t=>{t.status===m.Status.FAILED?this.confirmModalService.confirm("ACCOUNT.MIGRATION.ERRORS."+t.error.code,"APP.OUPS","modal-md vls-matomo-error vls-matomo-add-cb-error",[{label:"Ok"}]):this.router.navigate([this.localize.translateRoute("/account/migration/progress")]).then(e=>this.loaderGlobalService.showLoadingAnimation(!1))})}ngOnInit(){this.refreshPaymentOptions()}static{this.\u0275fac=function(e){return new(e||i)(p(st),p(v),p(ue),p($),p(Te),p(M),p(R))}}static{this.\u0275cmp=A({type:i,selectors:[["vls-add-cb"]],decls:17,vars:17,consts:[[1,"row"],[1,"col-12"],[1,"l4-responsive","fw-bolder"],[1,"l4-responsive"],[1,"l4-responsive","fw-bolder","primary-normal"],[3,"inputChange","paymentMethodEdited","paymentOptions","mode"],[1,"col-12","mt-4"],[1,"btn","btn-primary","rounded-3","btn-vls",3,"click","ngClass"]],template:function(e,n){e&1&&(r(0,"div",0)(1,"div",1)(2,"p",2),l(3),s(4,"translate"),a(),r(5,"p",3),l(6),s(7,"translate"),a(),r(8,"p",4),l(9),s(10,"translate"),a()(),r(11,"div",1)(12,"vls-payment-method-radio-button",5),T("inputChange",function(_){return n.userChoosePayment(_)})("paymentMethodEdited",function(){return n.refreshPaymentOptions()}),a()(),r(13,"div",6)(14,"button",7),T("click",function(){return n.validateAndNextStep()}),l(15),s(16,"translate"),a()()()),e&2&&(o(3),d(" ",c(4,7,"ACCOUNT.MIGRATION.STEPS.EXTRA_INFORMATIONS.ADD_CB.MODAL.MSG_BOLD")," "),o(3),d(" ",c(7,9,"ACCOUNT.MIGRATION.STEPS.EXTRA_INFORMATIONS.ADD_CB.MODAL.MSG_NORMAL")," "),o(3),d(" ",c(10,11,"ACCOUNT.MIGRATION.STEPS.EXTRA_INFORMATIONS.ADD_CB.MODAL.MSG_3_COLORED")," "),o(3),S("paymentOptions",n.paymentOptions)("mode","choice"),o(2),S("ngClass",qt(15,xi,!n.paymentMethodValid)),o(),d(" ",c(16,13,"ACCOUNT.MIGRATION.STEPS.EXTRA_INFORMATIONS.FORM.BUTTON-VALIDATE")," "))},dependencies:[Zt,ge,E],encapsulation:2})}}return i})()});function Vi(i,N){if(i&1&&f(0,"p",5),i&2){let t=C();S("translate","ACCOUNT.MIGRATION.STEPS.REVIEW_INFO_VLS_1.SUBSCRIPTION_DATES")("translateParams",Gt(2,Ke,t.kiwiId,t.date))}}function Gi(i,N){if(i&1&&f(0,"p",5),i&2){let t=C();S("translate","ACCOUNT.MIGRATION.STEPS.REVIEW_INFO_VLS_1.SUBSCRIPTION_DATES_EXPIRED")("translateParams",Gt(2,Ke,t.kiwiId,t.date))}}function Fi(i,N){i&1&&(k(0),r(1,"p",6),l(2),s(3,"translate"),a(),r(4,"p",7),l(5),s(6,"translate"),a(),j()),i&2&&(o(2),d(" ",c(3,2,"ACCOUNT.MIGRATION.STEPS.REVIEW_INFO_VLS_1.MSG_NORMAL")," "),o(3),d(" ",c(6,4,"ACCOUNT.MIGRATION.STEPS.REVIEW_INFO_VLS_1.MSG_BOLD")," "))}function Pi(i,N){i&1&&(r(0,"p",6),l(1),s(2,"translate"),a(),r(3,"p",7),l(4),s(5,"translate"),a()),i&2&&(o(),d(" ",c(2,2,"ACCOUNT.MIGRATION.STEPS.REVIEW_INFO_VLS_1.MSG_NORMAL_MIGRATION_DONE")," "),o(3),d(" ",c(5,4,"ACCOUNT.MIGRATION.STEPS.REVIEW_INFO_VLS_1.MSG_BOLD.MSG_NORMAL_MIGRATION_DONE")," "))}var Ke,He,qe=x(()=>{Ce();Ft();V();P();re();Ce();X();Z();J();z();Ke=(i,N)=>({kiwiId:i,date:N});He=(()=>{class i{constructor(t,e,n,u,_){this._accountMigrationCompService=t,this.contractCoreService=e,this._timeZoneService=n,this._router=u,this._localize=_,this.title=this._accountMigrationCompService.headerTranslationTitles.review_info_vls1.title,this.subTitle=this._accountMigrationCompService.headerTranslationTitles.review_info_vls1.subTitle}ngOnInit(){this._accountMigrationCompService.migrationInfos&&this._accountMigrationCompService.migrationInfos.kiwiId?(this.kiwiId=this._accountMigrationCompService.migrationInfos.kiwiId,this.isSubscriptionExpired=this._timeZoneService.moment(this._accountMigrationCompService.migrationInfos.validityEnd+"Z").isBefore(this._timeZoneService.moment().utc()),this._timeZoneService.formatToLocaleTimeZoneFromUtcDate(this._accountMigrationCompService.migrationInfos.validityEnd,Rt.FORMAT.ShortDate).subscribe(t=>this.date=t)):this._router.navigate([this._localize.translateRoute("/account/migration/login")])}goContinue(){this._router.navigate([this._localize.translateRoute("/account/migration/create")])}isMigrationDone(){return this.contractCoreService.getContractFeatureValue(W.Features.ISMIGRATIONDONE)}static{this.\u0275fac=function(e){return new(e||i)(p(v),p(Q),p(Rt),p(M),p(R))}}static{this.\u0275cmp=A({type:i,selectors:[["vls-vls1-review-info"]],decls:10,vars:9,consts:[["migrationDone",""],[1,"subtitle-info"],["class","l4-responsive",3,"translate","translateParams",4,"ngIf"],[4,"ngIf","ngIfElse"],[1,"btn","btn-primary","btn-vls",3,"click"],[1,"l4-responsive",3,"translate","translateParams"],[1,"l4-responsive"],[1,"l4-responsive","fw-bolder","black-normal"]],template:function(e,n){if(e&1){let u=L();
1r(0,"div",1),b(1,Vi,1,5,"p",2)(2,Gi,1,5,"p",2)(3,Fi,7,6,"ng-container",3),s(4,"async"),b(5,Pi,6,6,"ng-template",null,0,Wt),a(),r(7,"button",4),T("click",function(){return O(u),g(n.goContinue())}),l(8),s(9,"translate"),a()}if(e&2){let u=Ct(6);o(),S("ngIf",!n.isSubscriptionExpired),o(),S("ngIf",n.isSubscriptionExpired),o(),S("ngIf",c(4,5,n.isMigrationDone()))("ngIfElse",u),o(5),d(" ",c(9,7,"ACCOUNT.MIGRATION.STEPS.REVIEW_INFO_VLS_1.BUTTON_VALIDATE.LABEL"),`
2`)}},dependencies:[y,vt,Tt,E]})}}return i})()});var St,We,co,yi=x(()=>{J();ut();X();z();Z();Ii();Le();Ve();Fe();P();ye();fi();bt();we();Be();q();je();ze();qe();V();St={[m.Status._USER_CHECK_EXISTENCE_VLS1_ACCOUNT]:["account/migration/login"],[m.Status.INITIALIZATION]:["account/migration/create"],[m.Status._USER_HAS_STARTED_MIGRATION_PROCESS]:["account/migration/login-continue"],[m.Status.ACCOUNT_CREATED]:["account/migration/confirm-information"],[m.Status.PHONE_MODIFIED]:["account/migration/add-cb"],[m.Status.CB_OK]:["account/migration/progress"],[m.Status.DONE]:["account/migration/progress"]},We=[{path:"",component:Pe,children:[{path:"",redirectTo:"login",pathMatch:"full"},{path:"login",component:be,canActivate:[it],data:{status:m.Status._USER_CHECK_EXISTENCE_VLS1_ACCOUNT,urls:St,skipRouteLocalization:!0}},{path:"review",component:He},{path:"login-continue",component:Ue,canActivate:[it],data:{status:m.Status._USER_HAS_STARTED_MIGRATION_PROCESS,urls:St,skipRouteLocalization:!0}},{path:"create",component:xe,canActivate:[it],data:{status:m.Status.INITIALIZATION,urls:St,skipRouteLocalization:!0}},{path:"confirm-information",component:Ge,canActivate:[it],data:{status:m.Status.ACCOUNT_CREATED,urls:St,skipRouteLocalization:!0}},{path:"add-cb",component:Xe,canActivate:[it],data:{status:m.Status.PHONE_MODIFIED,urls:St,skipRouteLocalization:!0}},{path:"progress",component:ke}],data:{title:"SEO.ACCOUNT_MIGRATION.TITLE",description:"SEO.ACCOUNT_MIGRATION.META_DESCRIPTION",skipRouteLocalization:!0}}],co=(()=>{class i{static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275mod=jt({type:i})}static{this.\u0275inj=kt({providers:[v,lt,it],imports:[$t,le,pe,Jt.forChild(We),ie.forChild(We),te,he,Me]})}}return i})()});yi();export{co as AccountMigrationModule,St as routeMap,We 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.