1import{a as nt}from"./chunk-IP4OYV2E.js";import"./chunk-6WO6EN7S.js";import"./chunk-7NBMWAYF.js";import{b as F,e as Ge,f as we,g as y,h as ke,i as Xe,j as ze,k as Ve,l as Be,m as qe}from"./chunk-MOHBJSDQ.js";import"./chunk-AZ7OHN6A.js";import"./chunk-BADNOUPU.js";import{a as et}from"./chunk-LEBTT7YT.js";import{a as tt,b as ot}from"./chunk-7UYX3YJT.js";import"./chunk-R3N2PPVB.js";import"./chunk-4RO2BE6A.js";import"./chunk-RKRQOCUT.js";import{b as re,c as Ze,h as ae,l as le,m as B}from"./chunk-ZGQ3JJ3A.js";import{a as Je,b as He,c as D}from"./chunk-FQIR6KM2.js";import"./chunk-QFM273SG.js";import{b as je,c as Ye}from"./chunk-FHHHYI5K.js";import"./chunk-JL4KRFQW.js";import"./chunk-HJ4DGHDC.js";import"./chunk-JY6HDALJ.js";import"./chunk-TUKURJDW.js";import"./chunk-FV4PSZCH.js";import"./chunk-J355KC5P.js";import{a as Ke,b as ie,d as I,f as U,g as G,i as Qe,j as w,l as k,m as We,n as X,r as z,s as V,t as x}from"./chunk-UJUUT4ZI.js";import{m as M,n as N,z as Ue}from"./chunk-MDH7MOEU.js";import{g as xe,h as $e,i as Fe,j as De,o as P}from"./chunk-EF4BGSWT.js";import{l as ye,p as oe,q as ne}from"./chunk-RA4TGZP4.js";import"./chunk-FD3FSPDF.js";import{o as L,q as te,v as Le}from"./chunk-BJSCEWMX.js";import{$c as E,D as Q,Db as O,Ec as Z,Gc as g,Hc as Ie,Ic as Re,J as Oe,Jc as he,Lb as Me,Pc as $,Qc as be,Rc as pe,Uc as ve,Vc as fe,Wa as ge,Yb as f,Zb as Se,_b as C,_c as S,bc as Ee,c as Ne,cc as Pe,dc as d,ec as r,fa as W,fc as i,gc as c,ja as Te,lc as v,m as Ae,pa as m,qc as s,rb as l,rc as T,rd as ee,sc as p,t as q,u as K,wa as h,xa as b}from"./chunk-DZGX23F6.js";import{a as H}from"./chunk-4CLCTAJ7.js";var it=()=>({exact:!0});function mt(o,t){if(o&1&&(r(0,"span",6),g(1),i()),o&2){let e=p();l(),he(" ",e.account.firstname," ",e.account.lastname," ")}}var _e=class o{account=null;oidcSecurityService=m(F);store=m(M);logout(){this.oidcSecurityService.logoff().pipe(Oe(1)).subscribe(t=>{this.store.dispatch(Ue({path:["/"]}))})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=O({type:o,selectors:[["account-menu"]],inputs:{account:"account"},decls:23,vars:5,consts:()=>{let t;t=$localize`:@@account-menu.nav-aria:Menu Mon compte`;let e;e=$localize`:@@accountMenu.greeting:Bonjour`;let n;n=$localize`:@@accountMenu.links.alerts:Paramétrer vos alertes`;let a;a=$localize`:@@accountMenu.links.personalData:Mes informations personnelles`;let _;return _=$localize`:@@accountMenu.actions.logout: Déconnexion `,[e,n,a,_,[1,"account-menu"],[1,"account-menu__header"],[1,"account-menu__header-name"],["aria-label",t],[1,"account-menu__list"],[1,"account-menu__item"],["routerLink","/mon-compte","routerLinkActive","current",1,"account-menu__link",3,"routerLinkActiveOptions"],["routerLink","/mon-compte/informations","routerLinkActive","current",1,"account-menu__link",3,"routerLinkActiveOptions"],[1,"account-menu__separator"],[1,"account-menu__actions"],[1,"account-menu__action",3,"click"]]},template:function(e,n){e&1&&(r(0,"div",4)(1,"div",5)(2,"span"),s(3,0),i(),f(4,mt,2,2,"span",6),i(),r(5,"nav",7)(6,"ul",8)(7,"li",9)(8,"a",10)(9,"mat-icon"),g(10,"settings"),i(),r(11,"span"),s(12,1),i()()(),r(13,"li",9)(14,"a",11)(15,"mat-icon"),g(16,"account_circle"),i(),r(17,"span"),s(18,2),i()()()(),c(19,"hr",12),r(20,"div",13)(21,"button",14),T("click",function(){return n.logout()}),s(22,3),i()()()()),e&2&&(l(4),C(n.account?4:-1),l(4),d("routerLinkActiveOptions",fe(3,it)),l(6),d("routerLinkActiveOptions",fe(4,it)))},dependencies:[te,P,Fe,De,ne,oe],styles:['.account-menu[_ngcontent-%COMP%]{border:1px solid rgba(29,29,31,.1);border-radius:12px;background-color:#fff;display:flex;flex-direction:column;gap:24px;padding:24px;overflow:hidden}.account-menu__header[_ngcontent-%COMP%]{font-size:.875rem}.account-menu__header-name[_ngcontent-%COMP%]{font-size:1.125rem;font-weight:700;display:block}.account-menu__link[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:.875rem;padding:10px 0;position:relative;z-index:1}.account-menu__link[_ngcontent-%COMP%]:before{content:"";width:800px;top:0;height:100%;background-color:#ab161b1a;position:absolute;left:50%;transform:translate(-50%);opacity:0;transition:all .3s ease-in-out}.account-menu__link.current[_ngcontent-%COMP%]{color:#ab161b}.account-menu__link.current[_ngcontent-%COMP%]:before{opacity:1}
1.account-menu__separator[_ngcontent-%COMP%]{border:none;border-top:1px solid rgba(29,29,31,.2);margin:12px 0}.account-menu__actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px;align-items:flex-start;margin-top:24px}.account-menu__action[_ngcontent-%COMP%]{text-decoration:underline;font-size:.875rem;display:inline-block}'],changeDetection:0})};function st(o,t){if(o&1&&(r(0,"div",5)(1,"div",6),c(2,"account-menu",7),i(),r(3,"div",8),c(4,"router-outlet"),i()()),o&2){p(2);let e=pe(2);l(2),d("account",e)}}function ut(o,t){o&1&&c(0,"router-outlet")}function dt(o,t){if(o&1&&(r(0,"div",3),f(1,st,5,1,"div",5)(2,ut,1,0,"router-outlet"),i()),o&2){p();let e=pe(2);l(),C(e?1:2)}}function pt(o,t){if(o&1){let e=v();r(0,"div",4)(1,"div",9)(2,"h1"),s(3,0),i(),r(4,"button",10),T("click",function(){h(e);let a=p();return b(a.login())}),s(5,1),i()()()}}function ft(o,t){o&1&&(r(0,"div",4)(1,"div",9)(2,"h1"),g(3,"Chargement des donn\xE9es"),i()()())}var ce=class o{oidcSecurityService=m(F);authenticatedLoaded=!1;store=m(M);metaService=m(ye);platformId=m(ge);isAuthenticated$;accountData$=this.store.pipe(N(y));accountLoaded$=this.store.pipe(N(we));accountLoading$=this.store.pipe(N(Ge));login(){this.oidcSecurityService.authorize()}ngOnInit(){}getStableAuthStatus$(){if(Le(this.platformId)){let t=this.oidcSecurityService.isAuthenticated$.pipe(q(e=>e.isAuthenticated));return new Ne(e=>{let n=!1,a=t.subscribe({next:_=>{_===!0?(n=!0,e.next(!0),e.complete(),this.authenticatedLoaded=!0):n||setTimeout(()=>{n||(e.next(!1),e.complete(),this.authenticatedLoaded=!0)},500)},error:_=>e.error(_),complete:()=>{n||(e.next(!1),e.complete(),this.authenticatedLoaded=!0)}});return()=>a.unsubscribe()})}else return Ae(!1)}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=O({type:o,selectors:[["account-layout"]],decls:10,vars:10,consts:()=>{let t;t=$localize`:@@accountLayout.notConnected.title: Vous n'êtes pas connecté(e) `;let e;return e=$localize`:@@accountLayout.notConnected.loginButton: Se connecter `,[t,e,[1,"account-layout"],[1,"container","container-large"],[1,"account-layout__error"],[1,"account-layout__wrapper"],[1,"account-layout__side"],[3,"account"],[1,"account-layout__content"],[1,"container","container-small","account-layout__error-container"],[1,"btn","btn--primary",3,"click"]]},template:function(e,n){if(e&1&&($(0),S(1,"async"),$(2),S(3,"async"),$(4),S(5,"async"),r(6,"section",2),f(7,dt,3,1,"div",3)(8,pt,6,0,"div",4)(9,ft,4,0,"div",4),i()),e&2){let a=E(1,3,n.accountLoaded$);l(2);let _=be(E(3,5,n.accountData$)),u=E(5,8,n.getStableAuthStatus$());l(4),Z("account-loaded",_),l(),C(u&&n.authenticatedLoaded&&a?7:!u&&n.authenticatedLoaded?8:9)}},dependencies:[P,xe,_e,L],styles:[".account-layout[_ngcontent-%COMP%]{background-color:#fff}.account-layout.account-loaded[_ngcontent-%COMP%]{background-color:#f6f6f6}.account-layout__wrapper[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:120px;position:relative;display:flex;flex-direction:column}@media (min-width: 640px){.account-layout__wrapper[_ngcontent-%COMP%]{flex-direction:row;gap:24px}}@media (min-width: 1025px){.account-layout__wrapper[_ngcontent-%COMP%]{gap:40px}}.account-layout__side[_ngcontent-%COMP%]{flex-basis:100%;flex-shrink:0;margin-bottom:24px}@media (min-width: 640px){.account-layout__side[_ngcontent-%COMP%]{flex-basis:300px;max-width:300px}}.account-layout__content[_ngcontent-%COMP%]{flex-grow:1;padding:16px;border:1px solid rgba(29,29,31,.1);border-radius:12px;background-color:#fff}@media (min-width: 640px){.account-layout__content[_ngcontent-%COMP%]{padding:24px}}@media (min-width: 1025px){.account-layout__content[_ngcontent-%COMP%]{padding:40px}}.account-layout__error[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:120px}.account-layout__error-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px;align-items:center}"],changeDetection:0})};function Ct(o,t){if(o&1&&(r(0,"mat-icon",3),g(1),i()),o&2){let e=p();l(),Ie(e.icon)}}function Nt(o,t){if(o&1&&(r(0,"div",4),c(1,"app-line-badge",7),i()),o&2){let e=p();l(),d("lineName",e.line.line_number?e.line.line_number:e.line.route_short_name)("lineIndicator",e.line.line_indicator)("lineColor",e.line.route_color)("lineTextColor",e.line.route_text_color)("lineIcon",e.line.type)("iconFilled",!1)("showLineState",!1)("isLink",!1)}}function At(o,t){o&1&&c(0,"img",5)}var me=class o{label;icon;bold=!1;line;cdr=m(ee);value=!1;isDisabled=!1;onChange=()=>{};onTouched=()=>{};writeValue(t){this.value=t,this.cdr.markForCheck()}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.isDisabled=t,this.cdr.markForCheck()}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=O({type:o,selectors:[["alert-form-item"]],inputs:{label:"label",icon:"icon",bold:"bold",line:"line"},features:[ve([{provide:Ke,useExisting:Te(()=>o),multi:!0}])],decls:8,vars:7,consts:()=>{let t;return t=$localize`:@@logo:Logo Transport en commun de l'agglomération clermontois`,[[1,"alert-form-item"],["labelPosition","before","matTooltip","Vous devez renseigner un num\xE9ro de t\xE9l\xE9phone portable depuis la rubriques 'Mes infomations personnelles'",1,"slide-toggle",3,"change","checked","disabled","matTooltipDisabled"],[1,"alert-form-item__label"],[1,"alert-form-item__icon","icon-bold"],[1,"alert-form-item__badge"],["src","assets/images/t2c-mobile-icon.png","alt",t,"width","30","height","30",1,"alert-form-item__image"],[1,"alert-form-item__text"],[1,"alert-form-item__icon",3,"lineName","lineIndicator","lineColor","lineTextColor","lineIcon","iconFilled","showLineState","isLink"]]},template:function(e,n){e&1&&(r(0,"div",0)(1,"mat-slide-toggle",1),T("change",function(_){return n.onChange(_.checked)}),r(2,"div",2),f(3,Ct,2,1,"mat-icon",3)(4,Nt,2,8,"div",4)(5,At,1,0,"img",5),r(6,"div",6),g(7),i()()()()),e&2&&(l(),d("checked",n.value)("disabled",n.isDisabled)("matTooltipDisabled",!n.isDisabled),l(),Z("bold",n.bold),l(),C(n.icon?3:n.line?4:5),l(4),Re(" ",n.label," "))},dependencies:[te,ne,oe,ot,tt,et,x,He,Je],styles:[".alert-form-item[_ngcontent-%COMP%]{--mat-sys-primary: #00806a;--mat-sys-on-primary-container: #00806a;--mat-sys-surface-variant: #aeaeae;--mat-slide-toggle-track-outline-color: #aeaeae;--mat-slide-toggle-state-layer-size: 28px;--mat-slide-toggle-unselected-track-color: #aeaeae;--mat-slide-toggle-unselected-focus-track-color: #aeaeae;--mat-slide-toggle-unselected-hover-track-color: #aeaeae;--mat-slide-toggle-unselected-pressed-track-color: #aeaeae;--mat-slide-toggle-selected-handle-color: white;--mat-slide-toggle-selected-hover-handle-color: white;--mat-slide-toggle-selected-focus-handle-color: white;--mat-slide-toggle-selected-pressed-handle-color: white;--mat-slide-toggle-unselected-focus-handle-color: white;--mat-slide-toggle-unselected-handle-color: white;--mat-slide-toggle-unselected-hover-handle-color: white;--mat-slide-toggle-unselected-pressed-handle-color: white;--mat-slide-toggle-track-height: 28px;--mat-slide-toggle-handle-height: 28px;--mat-slide-toggle-handle-width: 48px;--mat-slide-toggle-track-width: 48px;--mat-slide-toggle-selected-track-outline-width: 8px;--mat-slide-toggle-selected-handle-size: 8px;--mat-slide-toggle-with-icon-handle-size: 24px;--mat-slide-toggle-selected-icon-size: 16px;--mat-slide-toggle-pressed-handle-size: 16px;--mat-slide-toggle-selected-pressed-handle-horizontal-margin: 0 22px;--mat-slide-toggle-selected-with-icon-handle-horizontal-margin: 0px 22px;--mat-slide-toggle-unselected-with-icon-handle-horizontal-margin: 0 3px}.alert-form-item__label[_ngcontent-%COMP%]{align-items:center;display:flex;font-size:.875rem;gap:2px;line-height:1}.alert-form-item__icon[_ngcontent-%COMP%]{margin-right:16px}.alert-form-item__image[_ngcontent-%COMP%]{margin-right:28px}.alert-form-item__badge[_ngcontent-%COMP%]{display:flex;flex-shrink:0}.mat-mdc-slide-toggle.cdk-keyboard-focused.mat-mdc-slide-toggle-focused[_ngcontent-%COMP%]{outline:2px solid #005cbb}[_nghost-%COMP%] .mat-mdc-slide-toggle{display:block}
1[_nghost-%COMP%] .mat-internal-form-field{display:flex}[_nghost-%COMP%] .mdc-form-field--align-end>label{margin-left:0;margin-right:auto}"],changeDetection:0})};var Ot=(o,t)=>t.route_id;function Tt(o,t){if(o&1&&(r(0,"div",8),c(1,"alert-form-item",15),i()),o&2){let e=t.$implicit,n=t.$index;l(),d("formControlName",n.toString())("label",e.first_stop_name+" - "+e.last_stop_name)("line",e)}}function gt(o,t){if(o&1){let e=v();r(0,"form",4),T("ngSubmit",function(){h(e);let a=p();return b(a.submit())}),r(1,"div",5)(2,"div",6),s(3,0),i(),r(4,"div",7),Ee(5,Tt,2,3,"div",8,Ot),i(),r(7,"div",9),c(8,"alert-form-item",10),i()(),r(9,"div",5)(10,"div",6),s(11,1),i(),r(12,"div",9),c(13,"alert-form-item",11),i(),r(14,"div",9),c(15,"alert-form-item",12),i()(),r(16,"div",13),c(17,"button-primary",14),i()()}if(o&2){let e=p();d("formGroup",e.formGroup),l(5),Pe(e.allRoutes),l(8),d("icon","mail")("bold",!0),l(2),d("icon","mobile_hand_left")("bold",!0),l(2),d("disabled",!e.formGroup.valid)}}var se=class o{store=m(M);cdr=m(ee);routes$;formBuilder=m(z);allRoutes=[];account;formGroup=this.formBuilder.group({routes:this.formBuilder.array([]),infos:[!1],mail:[!1],sms:[!1]});dataInitialization$=K({routes:this.store.pipe(N(Ye)),account:this.store.pipe(N(y))}).pipe(Q(t=>!!(t.routes&&t.routes.length>0&&t.account)),W(({routes:t,account:e})=>{this.allRoutes=t,this.account=e,this.formGroup.patchValue({infos:e.alerts?.infos,mail:e.alerts?.mail,sms:e.alerts?.sms});let n=this.formGroup.get("sms");e.phone?n?.enable():(n?.patchValue(!1),n?.disable());let a=this.formGroup.get("routes");a.clear(),t.forEach(_=>{let u=e.alerts?.routes.includes(_.route_id);a.push(new Qe(u))}),this.cdr.markForCheck()}));ngOnInit(){this.store.dispatch(je())}get routesFormArray(){return this.formGroup.get("routes")}submit(){if(this.formGroup.valid){let t=this.formGroup.value,e=this.allRoutes.filter((a,_)=>t.routes[_]).map(a=>({route_id:a.route_id,route_name:a.route_long_name})),n={firstname:this.account.firstname,lastname:this.account.lastname,phone:this.account.phone,alerte_email:t.mail,alerte_sms:t.sms,alerte_infos:t.infos,alerte_offers:t.commercial,userLines:e};this.store.dispatch(Be({form:n}))}}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=O({type:o,selectors:[["alerts"]],decls:3,vars:3,consts:()=>{let t;t=$localize`:@@accountAlerts.form.t2cInfoLabel:Je souhaite recevoir les infos T2C`;let e;e=$localize`:@@accountAlerts.form.emailAlertLabel:Je souhaite être alerté par mail`;let n;n=$localize`:@@accountAlerts.form.smsAlertLabel:Je souhaite être alerté par sms`;let a;a=$localize`:@@accountAlerts.form.submitButton:Enregistrer mes préférences`;let _;
1_=$localize`:@@accountAlerts.form.selectTitle: Sélectionnez les lignes et thématiques qui vous intéressent `;let u;return u=$localize`:@@accountAlerts.form.howToAlertTitle: Comment souhaitez-vous être alerté ? `,[_,u,[1,"alerts"],[1,"alerts__container",3,"formGroup"],[1,"alerts__container",3,"ngSubmit","formGroup"],[1,"alerts__group"],[1,"alerts__title"],["formArrayName","routes",1,"alerts__lines"],[1,"alerts__line"],[1,"alerts__item"],["formControlName","infos","label",t],["formControlName","mail","label",e,3,"icon","bold"],["formControlName","sms","label",n,3,"icon","bold"],[1,"alerts__cta"],["text",a,"type","submit",3,"disabled"],[3,"formControlName","label","line"]]},template:function(e,n){e&1&&(r(0,"div",2),f(1,gt,18,6,"form",3),S(2,"async"),i()),e&2&&(l(),C(E(2,1,n.dataInitialization$)?1:-1))},dependencies:[P,x,w,U,G,k,X,We,V,B,D,me,L],styles:[".alerts__container[_ngcontent-%COMP%]{display:flex;gap:24px;flex-direction:column}.alerts__group[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.alerts__lines[_ngcontent-%COMP%]{background-color:#f6f6f6;border:1px solid rgba(29,29,31,.2);border-radius:12px;padding:16px;display:flex;flex-wrap:wrap}@media (min-width: 640px){.alerts__lines[_ngcontent-%COMP%]{padding:20px 24px}}.alerts__line[_ngcontent-%COMP%]{flex-basis:100%;padding:8px 0;border-top:1px solid rgba(29,29,31,.2)}.alerts__line[_ngcontent-%COMP%]:nth-child(1){border-top:none}@media (min-width: 1025px){.alerts__line[_ngcontent-%COMP%]{flex-basis:calc(50% - 12px)}.alerts__line[_ngcontent-%COMP%]:nth-child(2){border-top:none}.alerts__line[_ngcontent-%COMP%]:nth-child(2n){margin-left:24px}}.alerts__item[_ngcontent-%COMP%]{background-color:#f6f6f6;border:1px solid rgba(29,29,31,.2);border-radius:12px;padding:16px}@media (min-width: 640px){.alerts__item[_ngcontent-%COMP%]{padding:20px 24px}}.alerts__title[_ngcontent-%COMP%]{font-size:1rem;font-weight:700}.alerts__cta[_ngcontent-%COMP%]{text-align:center}"],changeDetection:0})};function at(o){let t=new RegExp("^((\\+)[0-9][0-9]|0) *[1-9]([ .-]*[0-9]{2}){4}$");return o.value===""||o.value===null||t.test(o.value)?null:{validPhone:!0}}function St(o,t){o&1&&(r(0,"mat-error"),s(1,5),i())}function Et(o,t){o&1&&(r(0,"mat-error"),s(1,6),i())}function Pt(o,t){o&1&&(r(0,"mat-error"),g(1,"Num\xE9ro de t\xE9l\xE9phone invalide"),i())}function It(o,t){if(o&1){let e=v();r(0,"form",11),T("ngSubmit",function(){h(e);let a=p();return b(a.submit())}),r(1,"mat-form-field",12)(2,"mat-label"),s(3,1),i(),c(4,"input",13),f(5,St,2,0,"mat-error"),i(),r(6,"mat-form-field",12)(7,"mat-label"),s(8,2),i(),c(9,"input",14),f(10,Et,2,0,"mat-error"),i(),r(11,"mat-form-field",12)(12,"mat-label"),s(13,3),i(),c(14,"input",15),i(),r(15,"mat-form-field",12)(16,"mat-label"),s(17,4),i(),c(18,"input",16),f(19,Pt,2,0,"mat-error"),i(),r(20,"div",17)(21,"button-primary",18),g(22," Enregistrer "),i()()()}if(o&2){let e,n,a,_=p();d("formGroup",_.formGroup),l(5),C((e=_.formGroup.get("lastname"))!=null&&e.hasError("required")?5:-1),l(5),C((n=_.formGroup.get("firstname"))!=null&&n.hasError("required")?10:-1),l(9),C((a=_.formGroup.get("phone"))!=null&&a.hasError("validPhone")?19:-1),l(2),d("disabled",_.formGroup.invalid)}}function Rt(o,t){o&1&&(r(0,"p"),s(1,7),i())}var ue=class o{store=m(M);formBuilder=m(z);formGroup=this.formBuilder.group({firstname:[null,[I.required]],lastname:[null,[I.required]],email:[{value:null,disabled:!0},[I.email,I.required]],phone:[null,[at]]});accountData$=this.store.select(y).pipe(Q(t=>!!t),W(t=>{this.formGroup.patchValue({firstname:t.firstname,lastname:t.lastname,email:t.email,phone:t.phone})}));submit(){if(this.formGroup.valid){let t=H({},this.formGroup.value);this.store.dispatch(qe({form:t}))}}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=O({type:o,selectors:[["informations"]],decls:6,vars:3,consts:()=>{let t;t=$localize`:@@accountInformations.page.title: Mes informations personnelles `;let e;e=$localize`:@@accountInformations.form.submitButton:Enregistrer`;let n;n=$localize`:@@accountInformations.form.lastnameLabel:Nom`;let a;a=$localize`:@@accountInformations.form.firstnameLabel:Prénom`;let _;_=$localize`:@@accountInformations.form.emailLabel:Email`;let u;u=$localize`:@@accountInformations.form.phoneLabel:Téléphone`;let A;A=$localize`:@@accountInformations.form.lastnameError:Le nom est requis`;let J;J=$localize`:@@accountInformations.form.firstnameError:Le prénom est requis`;let Ce;return Ce=$localize`:@@accountInformations.form.loadingError:Erreur de chargement`,[t,n,a,_,u,A,J,Ce,[1,"informations"],[1,"informations__title"],[1,"informations__container",3,"formGroup"],[1,"informations__container",3,"ngSubmit","formGroup"],["appearance","outline",1,"informations__input"],["formControlName","lastname","matInput","","type","text"],["formControlName","firstname","matInput","","type","text"],["formControlName","email","matInput","","type","email"],["formControlName","phone","matInput","","type","text"],[1,"informations__cta"],["text",e,"type","submit",3,"disabled"]]},template:function(e,n){e&1&&(r(0,"div",8)(1,"h1",9),s(2,0),i(),f(3,It,23,5,"form",10),S(4,"async"),Se(5,Rt,2,0,"p"),i()),e&2&&(l(3),C(E(4,1,n.accountData$)?3:5))},dependencies:[P,x,w,ie,U,G,k,X,V,B,le,ae,re,Ze,D,L],styles:[".informations__title[_ngcontent-%COMP%]{font-size:1rem;font-weight:700;margin-bottom:24px}.informations__container[_ngcontent-%COMP%]{display:flex;gap:24px;flex-wrap:wrap;justify-content:center}.informations__input[_ngcontent-%COMP%]{flex-basis:100%}@media (min-width: 1025px){.informations__input[_ngcontent-%COMP%]{flex-basis:calc(50% - 12px)}}.mat-mdc-form-field-error[_ngcontent-%COMP%]{font-size:.75rem}[_nghost-%COMP%] .informations__input .mat-mdc-form-field-subscript-wrapper{display:block!important}"],changeDetection:0})};var de=class o{submitForm=new Me;formBuilder=m(z);store=m(M);formGroup=this.formBuilder.group({firstname:[null,[I.required,I.maxLength(250)]],lastname:[null,[I.required,I.maxLength(250)]]});activeAccountLoading$=this.store.pipe(N(Xe));activeAccountLoaded$=this.store.pipe(N(ze));activeAccountError$=this.store.pipe(N(Ve));submit(){if(this.formGroup.valid){let t=H({},this.formGroup.value);this.store.dispatch(ke({form:t}))}}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=O({type:o,selectors:[["activation"]],outputs:{submitForm:"submitForm"},decls:16,vars:4,consts:()=>{let t;t=$localize`:@@accountActivation.page.title:Création de compte T2C`;let e;e=$localize`:@@accountActivation.page.description:Pour finaliser la création de votre compte merci de renseigner les données suivantes :`;let n;n=$localize`:@@accountActivation.form.submitButton:Confirmer les informations`;let a;a=$localize`:@@accountActivation.form.lastnameLabel:Nom`;let _;return _=$localize`:@@accountActivation.form.firstnameLabel:Prénom`,[a,_,[1,"activation"],["title",t,"description",e,"backgroundSection","white"],[1,"container","container-small"],[1,"activation__container",3,"ngSubmit","formGroup"],["appearance","outline",1,"activation__input"],["formControlName","lastname","matInput","","type","text"],["formControlName","firstname","matInput","","type","text"],[1,"activation__cta"],["text",n,"type","submit",3,"disabled"]]},template:function(e,n){if(e&1){let a=v();$(0),S(1,"async"),r(2,"div",2),c(3,"title-page",3),r(4,"div",4)(5,"form",5),T("ngSubmit",function(){return h(a),b(n.submit())}),r(6,"mat-form-field",6)(7,"mat-label"),s(8,0),i(),c(9,"input",7),i(),r(10,"mat-form-field",6)(11,"mat-label"),s(12,1),i(),c(13,"input",8),i(),r(14,"div",9),c(15,"button-primary",10),i()()()()}if(e&2){let a=E(1,2,n.activeAccountLoading$)??!1;l(5),d("formGroup",n.formGroup),l(10),d("disabled",!n.formGroup.valid||a)}},dependencies:[P,x,w,ie,U,G,k,X,V,B,le,ae,re,D,nt,L],styles:[".activation[_ngcontent-%COMP%]{padding-bottom:100px}.activation__container[_ngcontent-%COMP%]{display:flex;gap:24px;flex-wrap:wrap;justify-content:center;max-width:410px;margin:0 auto}.activation__input[_ngcontent-%COMP%]{flex-basis:100%}"],changeDetection:0})};var lt=(o,t)=>{let e=m(M),n=m($e),_=m(F).isAuthenticated$.pipe(q(({isAuthenticated:A})=>A)),u=e.pipe(N(y));return K([_,u]).pipe(q(([A,J])=>(t.url==="/mon-compte"&&A&&!J&&n.navigate(["/mon-compte/activation"]),!0)))};var Dn=[{path:"",component:ce,canActivateChild:[lt],children:[{path:"",pathMatch:"full",component:se},{path:"informations",component:ue},{path:"activation",component:de}]}];export{Dn as AccountRoutes};
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.