1import{a as Be}from"./chunk-PULIB5YN.js";import{a as Re,b as Fe,c as ke,d as Le}from"./chunk-MT4TACXP.js";import{a as Ie}from"./chunk-Z77RG3HL.js";import{a as Ne}from"./chunk-AW5F6NKA.js";import{a as Se,b as pe}from"./chunk-3IPCTLSO.js";import{a as j}from"./chunk-T4P2CZBJ.js";import{A as Y,b as Ae,c as oe,e as T,g as ae,h as re,j as K,m as v,n as se,p as le,r as de,s as ce}from"./chunk-BYEORRSW.js";import{a as b}from"./chunk-CYIAJS6A.js";import{a as $}from"./chunk-5VUP3F6V.js";import{a as we}from"./chunk-HZJK3TEN.js";import{g as S}from"./chunk-3DMSSLRK.js";import{a as ne}from"./chunk-NUTRFGVM.js";import{b as G}from"./chunk-4HNX6O3W.js";import{k as ie}from"./chunk-IJBFXMAK.js";import{m as Me}from"./chunk-JKBHBJZX.js";import{t as X}from"./chunk-SJ4SCAM2.js";import{Ac as Pe,D as R,Ic as ue,Jc as k,Kc as be,Lb as u,Lc as te,Nb as C,Nc as q,Oc as Ee,Qb as Q,Qc as s,R as Ce,Rb as ee,Rc as l,S as F,Sb as p,Sc as ye,Tb as o,Ub as a,Va as he,Vb as g,Wb as V,Xb as U,Yb as me,ab as t,ac as E,ba as P,fc as h,fd as L,g as D,gc as fe,gd as A,ha as x,hc as m,hd as Te,ia as O,ja as ge,m as w,pc as xe,qc as Oe,rb as M,rc as ve,ta as y,tc as I,vc as H,wa as J,wc as d,xc as c,yc as N,zc as z}from"./chunk-ANERJVDY.js";var Xe=(i,_)=>({"informations__form--editable":i,"informations__form--loading":_}),Ye=(i,_)=>({disabled:i,selectable:_}),$e=()=>["/nous-contacter"],je=(i,_,e)=>({disabled:i,selectable:_,checked:e}),qe=(i,_)=>_.id;function Ke(i,_){if(i&1){let e=E();o(0,"span",30),h("click",function(n){x(e);let f=m();return O(f.toggleEdit(n,!1,"basic"))}),d(1),s(2,"transloco"),a()}i&2&&(t(),c(l(2,1,"ACCOUNT_LINK_EDIT_PROFILE")))}function We(i,_){if(i&1&&(o(0,"div"),g(1,"input",31),o(2,"label",32),g(3,"img",33),s(4,"transloco"),a()()),i&2){let e=m();t(),p("readOnly",e.isReadOnly()),t(),I("canBeChosen",!e.isReadOnly()),t(),p("alt",l(4,4,"GLOBAL_INFO_FRENCH_FLAG"))}}function Ze(i,_){if(i&1&&(o(0,"div"),g(1,"input",34),o(2,"label",35),g(3,"img",36),s(4,"transloco"),a()()),i&2){let e=m();t(2),I("canBeChosen",!e.isReadOnly()),t(),p("alt",l(4,3,"GLOBAL_INFO_ENGLISH_FLAG"))}}function Je(i,_){if(i&1&&(o(0,"div"),g(1,"input",37),o(2,"label",38),g(3,"img",39),s(4,"transloco"),a()()),i&2){let e=m();t(2),I("canBeChosen",!e.isReadOnly()),t(),p("alt",l(4,3,"GLOBAL_INFO_GERMAN_FLAG"))}}function Qe(i,_){i&1&&(o(0,"span"),d(1),s(2,"transloco"),a()),i&2&&(t(),c(l(2,1,"ACCOUNT_FORM_EDIT_MEMBER")))}function et(i,_){if(i&1){let e=E();o(0,"div",20)(1,"button",40),h("click",function(n){x(e);let f=m();return O(f.toggleEdit(n,!0,"basic"))}),d(2),s(3,"transloco"),a(),o(4,"button",41),h("click",function(n){x(e);let f=m();return O(f.saveInfos(n))}),u(5,Qe,3,3,"span"),a()()}if(i&2){let e=m();t(2),c(l(3,2,"GENERIC_TEXT_CANCEL")),t(3),C(e.isReadOnly()?-1:5)}}function tt(i,_){if(i&1){let e=E();o(0,"span",30),h("click",function(n){x(e);let f=m();return O(f.toggleEdit(n,!1,"contact"))}),d(1),s(2,"transloco"),a()}i&2&&(t(),c(l(2,1,"ACCOUNT_LINK_EDIT_PROFILE")))}function it(i,_){i&1&&(o(0,"div",21)(1,"div",28),d(2),s(3,"transloco"),a(),o(4,"div",28),d(5),s(6,"transloco"),o(7,"a",42),s(8,"withLang"),d(9),s(10,"transloco"),a()()()),i&2&&(t(2),c(l(3,4,"ACCOUNT_INFO_EMAIL_UPDATE_BLOCKED_INFOS")),t(3),N("",l(6,6,"ACCOUNT_INFO_EMAIL_IS_FROM_EMPLOYER")," "),t(2),p("routerLink",l(8,8,te(12,$e))),t(2),c(l(10,10,"GENERIC_LINK_CONTACT_US")))}function nt(i,_){if(i&1&&d(0),i&2){let e=m();N(" ",e.profile().email_professional," ")}}function ot(i,_){i&1&&(d(0),s(1,"transloco")),i&2&&N(" ",l(1,1,"ACCOUNT_INFO_NO_EMAIL_PRO_PLACEHOLDER")," ")}function at(i,_){if(i&1&&(o(0,"div",23),d(1),a()),i&2){let e=m();t(),c(e.phoneCountryFlag)}}function rt(i,_){i&1&&(o(0,"span"),d(1),s(2,"transloco"),a()),i&2&&(t(),c(l(2,1,"INVALID_PHONE_FORMAT_PREFIX")))}function st(i,_){i&1&&(o(0,"span"),d(1),s(2,"transloco"),a()),i&2&&(t(),c(l(2,1,"ACTIVATION_ERROR_PHONE_NUMBER_INVALID")))}function lt(i,_){if(i&1&&(o(0,"div",25),u(1,rt,3,3,"span")(2,st,3,3,"span"),a()),i&2){let e=m();t(),C(e.hasError("phone","pattern")?1:e.isPhoneValid()?-1:2)}}function dt(i,_){if(i&1&&(o(0,"div",23),d(1),a()),i&2){let e=m();t(),c(e.mobileCountryFlag)}}function ct(i,_){i&1&&(o(0,"span"),d(1),s(2,"transloco"),a()),i&2&&(t(),c(l(2,1,"INVA
1LID_PHONE_FORMAT_PREFIX")))}function pt(i,_){i&1&&(o(0,"span"),d(1),s(2,"transloco"),a()),i&2&&(t(),c(l(2,1,"ACTIVATION_ERROR_PHONE_NUMBER_INVALID")))}function _t(i,_){if(i&1&&(o(0,"div",25),u(1,ct,3,3,"span")(2,pt,3,3,"span"),a()),i&2){let e=m();t(),C(e.hasError("mobile","pattern")?1:e.isMobileValid()?-1:2)}}function mt(i,_){i&1&&(o(0,"span"),d(1),s(2,"transloco"),a()),i&2&&(t(),c(l(2,1,"ACCOUNT_FORM_EDIT_MEMBER")))}function ft(i,_){if(i&1){let e=E();o(0,"div",20)(1,"button",40),h("click",function(n){x(e);let f=m();return O(f.toggleEdit(n,!0,"contact"))}),d(2),s(3,"transloco"),a(),o(4,"button",43),h("click",function(n){x(e);let f=m();return O(f.saveInfos(n))}),u(5,mt,3,3,"span"),a()()}if(i&2){let e=m();t(2),c(l(3,3,"GENERIC_TEXT_CANCEL")),t(2),p("disabled",!e.profileInformationsForm.valid||!e.isPhoneValid()||!e.isMobileValid()),t(),C(e.isContactReadOnly()?-1:5)}}function ut(i,_){if(i&1){let e=E();o(0,"span",30),h("click",function(n){x(e);let f=m();return O(f.toggleEdit(n,!1,"communication"))}),d(1),s(2,"transloco"),a()}i&2&&(t(),c(l(2,1,"ACCOUNT_LINK_EDIT_PROFILE")))}function Ct(i,_){i&1&&(o(0,"p"),d(1),s(2,"transloco"),a()),i&2&&(t(),c(l(2,1,"PROFILE_EMAIL_CONTACT_CHOICE")))}function gt(i,_){i&1&&(o(0,"div")(1,"p",44),d(2),s(3,"transloco"),a()()),i&2&&(t(2),c(l(3,1,"ACCOUNT_TITLE_CHOOSE_CONTACT_EMAIL")))}function ht(i,_){if(i&1&&d(0),i&2){let e=m(3);N("(",e.profile().email_professional,")")}}function xt(i,_){if(i&1&&(o(0,"div"),g(1,"input",45),o(2,"label",46),d(3),s(4,"transloco"),u(5,ht,1,1),a()()),i&2){let e=m(2);t(),p("readOnly",e.isCommunicationReadOnly()),t(),I("readonly",e.isCommunicationReadOnly()),t(),N(" ",l(4,5,"ACCOUNT_FORM_EMAIL_PROFESSIONAL")," "),t(2),C(e.profile().email_professional?5:-1)}}function Ot(i,_){if(i&1&&u(0,xt,6,7,"div"),i&2){let e=m();C(e.profile().favorite_email=="professional"||!e.isCommunicationReadOnly()?0:-1)}}function vt(i,_){if(i&1&&(o(0,"div"),g(1,"input",47),o(2,"label",48),d(3),s(4,"transloco"),a()()),i&2){let e=m();t(),p("readOnly",e.isCommunicationReadOnly()),t(),I("readonly",e.isCommunicationReadOnly()),t(),z(" ",l(4,5,"ACCOUNT_FORM_EMAIL_PERSONAL")," (",e.profile()._embedded.account.email,") ")}}function Pt(i,_){if(i&1&&(o(0,"div",19),d(1),a()),i&2){let e=m().$implicit;t(),c(e.description)}}function bt(i,_){if(i&1){let e=E();o(0,"div")(1,"p",49),h("click",function(){let n=x(e).$implicit,f=m();return O(f.updateMailingLists(n.id))}),d(2),a(),u(3,Pt,2,1,"div",19),a()}if(i&2){let e=_.$implicit,r=m();t(),H(Ee(4,je,r.isCommunicationReadOnly(),!r.isCommunicationReadOnly(),r.mailing_lists().join("").includes(e.id))),t(),c(e.title),t(),C(e.description?3:-1)}}function Et(i,_){i&1&&(o(0,"span"),d(1),s(2,"transloco"),a()),i&2&&(t(),c(l(2,1,"ACCOUNT_FORM_EDIT_MEMBER")))}function yt(i,_){if(i&1){let e=E();o(0,"div",20)(1,"button",40),h("click",function(n){x(e);let f=m();return O(f.toggleEdit(n,!0,"communication"))}),d(2),s(3,"transloco"),a(),o(4,"button",43),h("click",function(n){x(e);let f=m();return O(f.saveInfos(n))}),u(5,Et,3,3,"span"),a()()}if(i&2){let e=m();t(2),c(l(3,3,"GENERIC_TEXT_CANCEL")),t(2),p("disabled",!e.profileInformationsForm.valid),t(),C(e.isCommunicationReadOnly()?-1:5)}}var De=(()=>{class i{constructor(){this.DatePipe=P(X),this.MaskitoService=P(ke),this.FormValidationService=P(Ne),this.profile=A(),this.saveProfile=L(),this.saveComplete=L(),this.isReadOnly=y(!0),this.isContactReadOnly=y(!0),this.isCommunicationReadOnly=y(!0),this.saveInformationInProgress=y(!1),this.mailing_lists=y(null),this.noNewsPro=y(!0),this.noNewsPerso=y(!0),this.phoneCountryFlag="",this.mobileCountryFlag="",this.phonePlaceholder="-",this.mobilePlaceholder="-",this.maskPhone=Re({metadata:Fe,strict:!1}),this.isPhoneValid=y(!0),this.isMobileValid=y(!0),this.profileInformationsForm=new K({department:new v(""),function:new v(""),registerNum:new v(""),birthday:new v(""),language:new v(""),email_personal:new v("",[T.pattern(/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z]{2,}$/)]),email_profesionnal:new v("",T.pattern(/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z]{2,}$/)),phone:new v("",[T.pattern(/^\+[1-9]\d{0,2}([ -]?\d+)*$/)]),mobile:new v("",[T.pattern(/^\+[1-9]\d{0,2}([ -]?\d+)*$/)]),favorite_email:new v(""),partners_gdpr_consent:new v(!1)}),this.destroy$=new D}ngOnInit(){this.profile()&&this.initializeFormValue(this.profile())}toggleEdit(e,r,n){switch(e.preventDefault(),n){case"basic":this.isReadOnly.set(r);break;case"contact":this.isContactReadOnly.set(r);break;case"communication":this.isCommunicationReadOnly.set(r);break;default:this.isReadOnly.set(!0),this.isContactReadOnly.set(!0),this.isCommunicationReadOnly.set(!0);break}r&&this.initializeFormValue(this.profile()),this.isContactReadOnly()?this.resetPhonesPlaceholders():(this.phonePlaceholder="+xxx xx xx xx xx",this.mobilePlaceholder="+xxx xx xx xx xx",this.MaskitoService.getCountryFlag(this.profileInformationsForm.value.phone).then(f=>{this.phoneCountryFlag=f}),this.MaskitoService.getCountryFlag(this.profileInformationsForm.value.mobile).then(f=>{this.mobileCountryFlag=f}))}updateMailingLists(e){let r=!1;
1this.mailing_lists().forEach(n=>{n===e&&(r=!0)}),r?this.mailing_lists().splice(this.mailing_lists().indexOf(e),1):this.mailing_lists.set([...this.mailing_lists(),e]),r=!1}saveInfos(e){if(e.preventDefault(),this.saveInformationInProgress.set(!0),!this.profileInformationsForm.valid){this.saveInformationInProgress.set(!1);return}let r=this.profileInformationsForm.value.birthday?new Date(this.profileInformationsForm.value.birthday).getTime()/1e3:null,n=this.MaskitoService.customParsePhoneNumber(this.profileInformationsForm.value.phone),f=this.MaskitoService.customParsePhoneNumber(this.profileInformationsForm.value.mobile),B={department:this.profileInformationsForm.value.department??null,function:this.profileInformationsForm.value.function??null,language:this.profileInformationsForm.value.language,date_of_birth:r,phone:n?n.formatInternational():null,mobile:f?f.formatInternational():null,favorite_email:this.profileInformationsForm.value.favorite_email,partners_gdpr_consent:this.profileInformationsForm.value.partners_gdpr_consent},Z={mailing_lists:this.mailing_lists()};this.saveProfile.emit({body:B,mailingList:Z})}hasError(e,r){let n=this.profileInformationsForm;return this.FormValidationService.hasError(n,e,r)}markSaveComplete(){this.saveInformationInProgress.set(!1),this.isReadOnly.set(!0),this.isContactReadOnly.set(!0),this.isCommunicationReadOnly.set(!0)}initializeFormValue(e){let r=0,n=0;if(this.mailing_lists.set([]),e){let f=e._embedded.account.date_of_birth?this.DatePipe.transform(e._embedded.account.date_of_birth*1e3,"yyyy-MM-dd"):null,B=this.MaskitoService.customParsePhoneNumber(e.phone?e.phone:""),Z=this.MaskitoService.customParsePhoneNumber(e._embedded.account.mobile?e._embedded.account.mobile:"");this.profileInformationsForm.patchValue({department:e.department,function:e.function,registerNum:e.registration_number,language:e._embedded.account.language,birthday:f,email_personal:e._embedded.account.email,email_profesionnal:e.email_professional,phone:B?B.formatInternational():"",mobile:Z?Z.formatInternational():"",favorite_email:e.favorite_email,partners_gdpr_consent:e._embedded.account.has_accepted_partner_gdpr_consent}),e._embedded.mailing_lists.forEach(_e=>{_e.is_opt_in&&(this.mailing_lists.set([...this.mailing_lists(),_e.id]),_e.is_professional_list?n++:r++)}),this.noNewsPerso.set(!(r>=1)),this.noNewsPro.set(!(n>=1))}}checkPhoneNumber(e,r){let n=e.target.value;r==="phone"?(n.startsWith("+0")&&this.profileInformationsForm.controls.phone.setValue("+"+n.substring(2)),this.MaskitoService.getCountryFlag(n).then(f=>{this.phoneCountryFlag=f}),this.isPhoneValid.set(this.MaskitoService.isPhoneValid(n))):(n.startsWith("+0")&&this.profileInformationsForm.controls.mobile.setValue("+"+n.substring(2)),this.MaskitoService.getCountryFlag(n).then(f=>{this.mobileCountryFlag=f}),this.isMobileValid.set(this.MaskitoService.isPhoneValid(n)))}resetPhonesPlaceholders(){this.phonePlaceholder="ACCOUNT_INFO_NO_PHONE_PLACEHOLDER",this.mobilePlaceholder="ACCOUNT_INFO_NO_MOBILE_PLACEHOLDER"}resetAll(e){this.initializeFormValue(e),this.saveInformationInProgress.set,this.isReadOnly.set(!0),this.isContactReadOnly.set(!0),this.resetPhonesPlaceholders()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.unsubscribe()}static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275cmp=M({type:i,selectors:[["app-profile-informations"]],inputs:{profile:[1,"profile"]},outputs:{saveProfile:"saveProfile",saveComplete:"saveComplete"},features:[be([X])],decls:115,vars:122,consts:[[1,"informations"],["action","",1,"informations__form",3,"formGroup"],[1,"informations__section"],[1,"informations__header"],[1,"informations__title"],[1,"informations__edit-link"],[1,"informations__field"],["for","",1,"label"],[1,"infos"],["type","text","formControlName","department",1,"editable","infos",3,"readOnly","placeholder"],["type","text","formControlName","function",1,"editable","infos",3,"readOnly","placeholder"],["type","text","formControlName","registerNum",3,"readOnly","placeholder"],[1,"label"],[1,"informations__language-choices","infos"],["type","date","formControlName","birthday",1,"editable","infos",3,"readOnly"],[1,"consent-label"],[1,"infos","informations__checkbox","flex-column"],["type","checkbox","formControlName","partners_gdpr_consent","id","partners_gdpr_consent",1,"editable","informations__checkbox-input",3,"readOnly"],["for","partners_gdpr_consent",1,"informations__checkbox-choice"],[1,"finality-span","note"],[1,"informations__buttons"],[1,"informations__note"],[1,"editable","infos","phone-input"],[1,"flag"],["type","tel","formControlName","phone",1,"input",3,"input","placeholder","readonly","maskito"],[1,"form__error"],["type","tel","formControlName","mobile",1,"input",3,"input","placeholder","readonly","maskito"],[1,"infos","informations__favorite"],[1,""],[1,"informations__newsletters-choices"],[1,"informations__edit-link",3,"click"],["type","radio","formControlName","language","id","lang-fr","value","fr",1,"informations__language-input",3,"readOnly"],["for","lang-fr",1,"informations__radio-choice","informations__language-choice"],["src","/assets/images/flags/fr.svg",3,"alt"],["type","radio","formControlName","language","id","lang-uk","value","en",1,"informations__language-input"],["for","lang-uk",1,"informations__radio-choice","informations__language-choice"],["src","/assets/images/flags/uk.svg",3,"alt"],["type","radio","formControlName","language","id","lang-de","value","de",1,"informations__language-input"],["for","lang-de",1,"informations__radio-choice","informations__language-choice"],["src","/assets/images/flags/de.svg",3,"alt"],[1,"button","black",3,"click"],[1,"button",3,"click"],[1,"links",3,"routerLink"],[1,"button",3,"click","disabled"],[1,"informations__favorite-title"],["type","radio","formControlName","favorite_email","id","favorite_email-pro","value","professional",1,"informations__favorite-input",3,"readOnly"],["for","favorite_email-pro",1,"informations__favorite-label"],["type","radio","formControlName","favorite_email","id","favorite_email-perso","value","personal",1,"informations__favorite-input",3,"readOnly"],["for","favorite_email-perso",1,"informations__favorite-label"],[1,"informations__newsletters-choice",3,"click"]],template:function(r,n){r&1&&(o(0,"div",0)(1,"form",1)(2,"div",2)(3,"div",3)(4,"h3",4),d(5),s(6,"transloco"),a(),u(7,Ke,3,3,"span",5),a(),o(8,"div",6)(9,"label",7),d(10),s(11,"transloco"),a(),o(12,"span",8),d(13),s(14,"date"),a()(),o(15,"div",6)(16,"label",7),d(17),s(18,"transloco"),a(),g(19,"input",9),s(20,"transloco"),a(),o(21,"div",6)(22,"label",7),d(23),s(24,"transloco"),a(),g(25,"input",10),s(26,"transloco"),a(),o(27,"div",6)(28,"label",7),d(29),s(30,"transloco"),a(),g(31,"input",11),s(32,"transloco"),a(),o(33,"div",6)(34,"p",12),d(35),s(36,"transloco"),a(),o(37,"div",13),u(38,We,5,6,"div"),u(39,Ze,5,5,"div"),u(40,Je,5,5,"div"),a()(),o(41,"div",6)(42,"label",7),d(43),s(44,"transloco"),a(),g(45,"input",14),a(),o(4
16,"div",6)(47,"label",15),d(48),s(49,"transloco"),a(),o(50,"div",16),g(51,"input",17),o(52,"label",18),d(53),s(54,"transloco"),a(),o(55,"span",19),d(56),s(57,"transloco"),a()()(),u(58,et,6,4,"div",20),a(),o(59,"div",2)(60,"div",3)(61,"h3",4),d(62),s(63,"transloco"),a(),u(64,tt,3,3,"span",5),a(),u(65,it,11,13,"div",21),o(66,"div",6)(67,"label",7),d(68),s(69,"transloco"),a(),o(70,"span",8),u(71,nt,1,1)(72,ot,2,3),a()(),o(73,"div",6)(74,"label",7),d(75),s(76,"transloco"),a(),o(77,"span",8),d(78),s(79,"transloco"),a()(),o(80,"div",6)(81,"label",7),d(82),s(83,"transloco"),a(),o(84,"div",22),u(85,at,2,1,"div",23),o(86,"input",24),s(87,"transloco"),h("input",function(B){return n.checkPhoneNumber(B,"phone")}),a()(),u(88,lt,3,1,"div",25),a(),o(89,"div",6)(90,"label",7),d(91),s(92,"transloco"),a(),o(93,"div",22),u(94,dt,2,1,"div",23),o(95,"input",26),s(96,"transloco"),h("input",function(B){return n.checkPhoneNumber(B,"mobile")}),a()(),u(97,_t,3,1,"div",25),a(),u(98,ft,6,5,"div",20),a(),o(99,"div",2)(100,"div",3)(101,"h3",4),d(102),s(103,"transloco"),a(),u(104,ut,3,3,"span",5),a(),o(105,"div",27),u(106,Ct,3,3,"p"),u(107,gt,4,3,"div"),o(108,"div",28),u(109,Ot,1,1),u(110,vt,5,7,"div"),a()(),o(111,"div",29),Q(112,bt,4,8,"div",null,qe),a(),u(114,yt,6,5,"div",20),a()()()),r&2&&(t(),H(q(116,Xe,!n.isReadOnly()||!n.isContactReadOnly(),n.saveInformationInProgress())),p("formGroup",n.profileInformationsForm),t(4),c(l(6,70,"ACTIVATION_LABEL_FILL_IN_YOUR_INFORMATIONS")),t(2),C(n.isReadOnly()?7:-1),t(3),c(l(11,72,"ACCOUNT_INFO_ACTIVATED_ON")),t(3),c(l(14,74,n.profile().created_at*1e3)),t(4),c(l(18,76,"ACCOUNT_TEXT_DEPARTMENT")),t(2),I("can-be-edit",!n.isReadOnly()),p("readOnly",n.isReadOnly())("placeholder",l(20,78,"ACCOUNT_INFO_NO_DEPARTMENT_PLACEHOLDER")),t(4),c(l(24,80,"ACCOUNT_TEXT_FUNCTION")),t(2),I("can-be-edit",!n.isReadOnly()),p("readOnly",n.isReadOnly())("placeholder",l(26,82,"ACCOUNT_INFO_NO_FUNCTION_PLACEHOLDER")),t(4),c(l(30,84,"CORPORATE_FORM_REGISTRATION_NUMBER")),t(2),p("readOnly",!0)("placeholder",l(32,86,"ACCOUNT_INFO_NO_REGISTER_NUMBER_PLACEHOLDER")),t(4),c(l(36,88,"ACTIVATION_LABEL_LANGUAGE")),t(3),C(n.profile()._embedded.account.language=="fr"||!n.isReadOnly()?38:-1),t(),C(n.profile()._embedded.account.language=="en"||!n.isReadOnly()?39:-1),t(),C(n.profile()._embedded.account.language=="de"||!n.isReadOnly()?40:-1),t(3),c(l(44,90,"ACCOUNT_INFO_DATE_BIRTHDAY")),t(2),I("can-be-edit",!n.isReadOnly()),p("readOnly",n.isReadOnly()),t(3),c(l(49,92,"ACCOUNT_INFO_PURCHASE_DATA_SHARING")),t(3),p("readOnly",n.isReadOnly()),t(),H(q(119,Ye,n.isReadOnly(),!n.isReadOnly())),t(),c(l(54,94,"ACCOUNT_TEXT_PARTNER_GDPR_CONSENT")),t(3),c(l(57,96,"ACCOUNT_TEXT_GDPR_PARTNER_PRECISION")),t(2),C(n.isReadOnly()?-1:58),t(4),c(l(63,98,"ACCOUNT_TEXT_CONTACT_INFORMATIONS")),t(2),C(n.isContactReadOnly()?64:-1),t(),C(n.isContactReadOnly()?-1:65),t(3),c(l(69,100,"ACCOUNT_TEXT_EMAIL_PRO")),t(3),C(n.profile().email_professional?71:72),t(4),c(l(76,102,"ACCOUNT_TEXT_EMAIL_PERSO")),t(3),c(n.profileInformationsForm.value.email_personal??l(79,104,"ACCOUNT_INFO_NO_EMAIL_PRO_PLACEHOLDER")),t(4),c(l(83,106,"FORM_LABEL_PHONE")),t(2),I("phone-input--error",n.hasError("phone","pattern"))("can-be-edit",!n.isContactReadOnly()),t(),C(n.isContactReadOnly()?-1:85),t(),p("placeholder",l(87,108,n.phonePlaceholder))("readonly",n.isContactReadOnly())("maskito",n.maskPhone),t(2),C(!n.isPhoneValid()||n.hasError("phone","pattern")?88:-1),t(3),c(l(92,110,"ACCOUNT_TEXT_MOBILE")),t(2),I("phone-input--error",n.hasError("mobile","pattern"))("can-be-edit",!n.isContactReadOnly()),t(),C(n.isContactReadOnly()?-1:94),t(),p("placeholder",l(96,112,n.phonePlaceholder))("readonly",n.isContactReadOnly())("maskito",n.maskPhone),t(2),C(!n.isMobileValid()||n.hasError("mobile","pattern")?97:-1),t(),C(n.isContactReadOnly()?-1:98),t(4),c(l(103,114,"PROFILE_COMMUNICATION_EMAIL_PREFERENCE")),t(2),C(n.isCommunicationReadOnly()?104:-1),t(2),C(n.isCommunicationReadOnly()?106:-1),t(),C(n.isCommunicationReadOnly()?-1:107),t(2),C(n.profile().email_professional?109:-1),t(),C(n.profile().favorite_email=="personal"||!n.isCommunicationReadOnly()?110:-1),t(2),ee(n.profile()._embedded.mailing_lists),t(2),C(n.isCommunicationReadOnly()?-1:114))},dependencies:[Y,se,oe,Ae,le,ae,re,ce,de,ie,Le,X,S,ne],styles:['.informations[_ngcontent-%COMP%], .informations__section[_ngcontent-%COMP%]{display:flex;flex-flow:column;gap:24px}.informations__header[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;gap:24px;row-gap:8px;align-items:baseline}.informations__title[_ngcontent-%COMP%]{font-size:1.6rem}.informations__edit-link[_ngcontent-%COMP%]{text-decoration:underline;color:#de9101;cursor:pointer}.informations__field[_ngcontent-%COMP%]{display:grid;gap:8px;grid-template-areas:"label" "input" "error";align-items:flex-start}@media(min-width:600px){.informations__field[_ngcontent-%COMP%]{grid-template-areas:"label input" "label error";gap:24px;row-gap:0;grid-template-columns:25% 1fr}}.informations[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{grid-area:label;color:#505050}.informations[_ngcontent-%COMP%] .label-multi[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:center;gap:12px;row-gap:8px}.informations[_ngcontent-%COMP%] .infos[_ngcontent-%COMP%]{font-family:Cabin;
1grid-area:input;width:100%;border:none;font-size:1rem;transition:.2s all ease-out;overflow:hidden;text-overflow:ellipsis}.informations[_ngcontent-%COMP%] .infos--multi[_ngcontent-%COMP%]{height:100%;display:flex;flex-flow:column;gap:8px}.informations[_ngcontent-%COMP%] .infos--checkbox[_ngcontent-%COMP%]{display:flex;flex-flow:row-reverse}.informations[_ngcontent-%COMP%] .placeholder[_ngcontent-%COMP%]{color:#707070;font-style:italic}.informations[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border:none;font-size:1rem;transition:.2s all ease-out;cursor:default;width:100%}.informations[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{color:#707070;font-style:italic}.informations[_ngcontent-%COMP%] .informations__favorite-title[_ngcontent-%COMP%]{color:#de9101}.informations__favorite[_ngcontent-%COMP%]{display:flex;flex-flow:column;gap:12px}.informations__favorite[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-weight:700}.informations__favorite-label[_ngcontent-%COMP%]{display:block;width:fit-content;cursor:pointer;transition:.2s all ease-out;display:flex;align-items:center;gap:12px}.informations__favorite-label[_ngcontent-%COMP%]:before{content:"";display:inline-block;width:16px;height:16px;border:1px solid #000;border-radius:50px;transition:.2s all ease-out}.informations__favorite-input[_ngcontent-%COMP%]{display:none}.informations__favorite-input[_ngcontent-%COMP%]:checked + .informations__favorite-label[_ngcontent-%COMP%]{color:#de9101}.informations__favorite-input[_ngcontent-%COMP%]:checked + .informations__favorite-label[_ngcontent-%COMP%]:before{border:1px solid #de9101;background-image:url("./media/icon-check-orange-JNPX3B3C.svg")}.informations__favorite-input[_ngcontent-%COMP%]:checked + .informations__favorite-label.readonly[_ngcontent-%COMP%]{color:inherit}.informations__favorite-input[_ngcontent-%COMP%]:checked + .informations__favorite-label.readonly[_ngcontent-%COMP%]:before{display:none}.informations__newsletters[_ngcontent-%COMP%], .informations__newsletters-choices[_ngcontent-%COMP%]{display:flex;flex-flow:column;gap:12px}.informations__newsletters-choice[_ngcontent-%COMP%]{transition:.2s all ease-out;display:flex;gap:8px}.informations__newsletters-choice[_ngcontent-%COMP%]:before{content:"";flex-shrink:0;display:inline-block;border-radius:3px;transition:.2s all ease-out;width:16px;height:16px;background-repeat:no-repeat;background-size:100%;background-image:url("./media/icon-close-popup-red-KCEROKKZ.svg")}.informations__newsletters-choice.checked[_ngcontent-%COMP%]:before{background-image:url("./media/icon-check-orange-JNPX3B3C.svg")}.informations__newsletters-choice.disabled[_ngcontent-%COMP%]{pointer-events:none}.informations__newsletters-choice.selectable[_ngcontent-%COMP%]{pointer-events:initial;cursor:pointer;gap:8px}.informations__newsletters-choice.selectable[_ngcontent-%COMP%]:before{width:16px;height:16px;border:1px solid #000;background-image:none}.informations__newsletters-choice.selectable.checked[_ngcontent-%COMP%]:hover{color:#de9101}.informations__newsletters-choice.selectable.checked[_ngcontent-%COMP%]:before{border:1px solid #de9101;background-image:url("./media/icon-check-orange-JNPX3B3C.svg")}.informations__noNews[_ngcontent-%COMP%]{color:#707070;font-style:italic}.informations__language-choices[_ngcontent-%COMP%]{display:flex;gap:12px}.informations__language-choice[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;align-items:center;min-width:60px;height:48px;border-radius:3px;border:1px solid transparent;transition:.2s all ease;overflow:hidden}.informations__language-choice[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:100%;width:auto;object-fit:contain;transition:.2s all ease}.informations__language-input[_ngcontent-%COMP%]{appearance:none;display:none}.informations__language-input[_ngcontent-%COMP%] + .informations__radio-choice.canBeChosen[_ngcontent-%COMP%]{justify-content:center;padding:4px 12px}.informations__language-input[_ngcontent-%COMP%]:checked + .informations__radio-choice.canBeChosen[_ngcontent-%COMP%]{border:1px solid #de9101;background-color:#de91011c}.informations__language-input[_ngcontent-%COMP%]:checked + .informations__radio-choice.canBeChosen[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{transform:scale(1.2)}.informations__checkbox[_ngcontent-%COMP%]{display:flex;flex-flow:row nowrap;justify-content:flex-start}.informations__checkbox-input[_ngcontent-%COMP%]{appearance:none;display:none}.informations__checkbox-input[_ngcontent-%COMP%] + .informations__checkbox-choice[_ngcontent-%COMP%]{gap:8px;color:var(--dominante)}.informations__checkbox-input[_ngcontent-%COMP%] + .informations__checkbox-choice[_ngcontent-%COMP%]:before{width:16px;height:16px;background-repeat:no-repeat;background-size:100%}.informations__checkbox-input[_ngcontent-%COMP%] + .informations__checkbox-choice.selectable[_ngcontent-%COMP%]:hover{color:#de9101}.informations__checkbox-input[_ngcontent-%COMP%]:not(:checked) + .informations__checkbox-choice[_ngcontent-%COMP%]:before{background-image:url("./media/icon-close-popup-red-KCEROKKZ.svg")}.informations__checkbox-input[_ngcontent-%COMP%]:not(:checked) + .informations__checkbox-choice.selectable[_ngcontent-%COMP%]:before{border:1px solid #d83c3c;background-image:none}.informations__checkbox-input[_ngcontent-%COMP%]:checked + .informations__checkbox-choice[_ngcontent-%COMP%]:before{background-image:url("./media/icon-check-orange-JNPX3B3C.svg")}.informations__checkbox-input[_ngcontent-%COMP%]:checked + .informations__checkbox-choice.selectable[_ngcontent-%COMP%]:before{border:1px solid #de9101;background-image:url("./media/icon-check-orange-JNPX3B3C.svg")}.informations__checkbox-choice[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;align-items:center;min-width:60px;height:48px;border-radius:3px;border:1px solid transparent;transition:.2s all ease;position:relative;overflow:hidden}.informations__checkbox-choice[_ngcontent-%COMP%]:before{content:"";flex-shrink:0;display:inline-block;border-radius:3px;transition:.2s all ease-out}.informations__checkbox-choice.disabled[_ngcontent-%COMP%]{pointer-events:none}.informations__checkbox-choice.selectable[_ngcontent-%COMP%]{pointer-events:initial;cursor:pointer;gap:8px}.informations__checkbox-choice.selectable[_ngcontent-%COMP%]:before{width:16px;height:16px;border:1px solid #000}.informations__form[_ngcontent-%COMP%]{display:flex;flex-flow:column;gap:48px;transition:.2s all ease-out}.informations__form--editable[_ngcontent-%COMP%] input.editable.can-be-edit[_ngcontent-%COMP%], .informations__form--editable[_ngcontent-%COMP%] div.editable.can-be-edit[_ngcontent-%COMP%]{border-radius:3px;box-shadow:0 0 0 1px #de91016a;transition:.3s all ease-out;padding:12px 16px;cursor:initial}.informations__form--editable[_ngcontent-%COMP%] input.editable.can-be-edit[_ngcontent-%COMP%]:hover, .informations__form--editable[_ngcontent-%COMP%] div.editable.can-be-edit[_ngcontent-%COMP%]:hover{box-shadow:0 0 0 2px #fea501}.informations__form--editable[_ngcontent-%COMP%] input.editable.can-be-edit[_ngcontent-%COMP%]:active, .informations__form--editable[_ngcontent-%COMP%] input.editable.can-be-edit[_ngcontent-%COMP%]:focus, .informations__form--editable[_ngcontent-%COMP%] div.editable.can-be-edit[_ngcontent-%COMP%]:active, .informations__form--editable[_ngcontent-%COMP%] div.editable.can-be-edit[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 2px #de9101}.informations__form--editable[_ngcontent-%COMP%] .informations__radio-choice.canBeChosen[_ngcontent-%COMP%]{cursor:pointer}.informations__form--loading[_ngcontent-%COMP%]{filter:blur(3px);pointer-events:none}.informations__buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;
1gap:24px}.informations__buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#de9101;border:none;color:#fff;font-weight:400;cursor:pointer;line-height:1;padding:12px 24px;transition:.3s}.informations__buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:#d38a01}.informations__buttons[_ngcontent-%COMP%] button.black[_ngcontent-%COMP%]{background:transparent;color:#111;border:1px solid #111;transition:.3s}.informations__buttons[_ngcontent-%COMP%] button.black[_ngcontent-%COMP%]:hover{background:#111;color:#fff}.informations__buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:disabled{background-color:#c2c2c2}.informations__note[_ngcontent-%COMP%]{padding:24px;border-radius:5px;background-color:#f1f1f1;color:#000;font-size:14px}.note[_ngcontent-%COMP%]{font-size:14px;color:gray;margin-top:4px}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.finality-span[_ngcontent-%COMP%]{padding-left:24px}.consent-label[_ngcontent-%COMP%]{grid-area:label;color:#505050}.verify-account-button[_ngcontent-%COMP%]{background:#de9101;padding:6px 12px;border-radius:5px;color:#fff;transition:.3s}.verify-account-button[_ngcontent-%COMP%]:hover{background:#d38a01}.phone-input[_ngcontent-%COMP%]{display:flex;gap:8px}.phone-input--error[_ngcontent-%COMP%]{border:1px solid #bd3131}.flag[_ngcontent-%COMP%]{padding-right:8px;width:35px;border-right:1px solid #e8e8e8}.form__error[_ngcontent-%COMP%]{color:#bd3131;font-size:14px;grid-area:error}.links[_ngcontent-%COMP%]{color:#de9101;text-decoration:underline;cursor:pointer}'],changeDetection:0})}}return i})();var Tt=(i,_)=>({"card--editable":i,"card--loading":_});function It(i,_){if(i&1&&(g(0,"input",6),s(1,"transloco")),i&2){let e=m(2);p("placeholder",ue(l(1,3,"ACCOUNT_TEXT_ADDITIONAL_INFOS")))("readOnly",e.isReadOnly)}}function Mt(i,_){if(i&1&&(o(0,"div"),g(1,"input",13),o(2,"label",14),g(3,"img",15),s(4,"transloco"),o(5,"span",16),d(6),s(7,"transloco"),a()()()),i&2){let e=m(2);t(),p("id","country-be-"+e.address().id),t(),p("for","country-be-"+e.address().id),t(),p("alt",l(4,4,"GLOBAL_INFO_BELGIAN_FLAG")),t(3),c(l(7,6,"FILTER_BE"))}}function At(i,_){if(i&1&&(o(0,"div"),g(1,"input",17),o(2,"label",14),g(3,"img",18),s(4,"transloco"),o(5,"span",16),d(6),s(7,"transloco"),a()()()),i&2){let e=m(2);t(),p("id","country-fr-"+e.address().id),t(),p("for","country-fr-"+e.address().id),t(),p("alt",l(4,4,"GLOBAL_INFO_FRENCH_FLAG")),t(3),c(l(7,6,"FILTER_FR"))}}function St(i,_){if(i&1&&(o(0,"div"),g(1,"input",19),o(2,"label",14),g(3,"img",20),s(4,"transloco"),o(5,"span",16),d(6),s(7,"transloco"),a()()()),i&2){let e=m(2);t(),p("id","country-lu-"+e.address().id),t(),p("for","country-lu-"+e.address().id),t(),p("alt",l(4,4,"GLOBAL_INFO_LUXEMBOURG_FLAG")),t(3),c(l(7,6,"FILTER_LU"))}}function Nt(i,_){if(i&1&&(o(0,"div"),g(1,"input",21),o(2,"label",14),g(3,"img",22),s(4,"transloco"),o(5,"span",16),d(6),s(7,"transloco"),a()()()),i&2){let e=m(2);t(),p("id","country-de-"+e.address().id),t(),p("for","country-de-"+e.address().id),t(),p("alt",l(4,4,"GLOBAL_INFO_GERMAN_FLAG")),t(3),c(l(7,6,"FILTER_DE"))}}function wt(i,_){if(i&1){let e=E();o(0,"button",25),h("click",function(n){x(e);let f=m(3);return O(f.toggleEdit(n,!0))}),d(1),s(2,"transloco"),a()}i&2&&(t(),c(l(2,1,"GENERIC_TEXT_CANCEL")))}function Rt(i,_){if(i&1){let e=E();o(0,"div",11)(1,"button",23),h("click",function(n){x(e);let f=m(2);return O(f.saveInfos(n))}),d(2),s(3,"transloco"),a(),u(4,wt,3,3,"button",24),a()}if(i&2){let e=m(2);t(),I("card__button--disabled",!e.addressForm.valid),t(),c(l(3,4,"CORPORATE_FORM_EDIT_MEMBER")),t(2),C(e.isReadOnly?-1:4)}}function Ft(i,_){if(i&1){let e=E();o(0,"div",12)(1,"button",26),s(2,"transloco"),h("click",function(n){x(e);let f=m(2);return O(f.delete(n))}),d(3,"v"),a(),o(4,"button",27),s(5,"transloco"),h("click",function(n){x(e);let f=m(2);return O(f.toggleEdit(n,!1))}),d(6),s(7,"transloco"),o(8,"span"),d(9,"\uE02B"),a()()()}if(i&2){let e=m(2);t(),p("title",l(2,3,"ACCOUNT_BUTTON_DELETE_ADDRESS")),t(3),p("title",l(5,5,e.editText)),t(2),c(l(7,7,"ACCOUNT_BUTTON_EDIT"))}}function kt(i,_){if(i&1&&(o(0,"form",1)(1,"h4",2),g(2,"input",3),s(3,"transloco"),s(4,"transloco"),a(),o(5,"div",4),g(6,"input",5),s(7,"transloco"),u(8,It,2,5,"input",6),o(9,"div",7),g(10,"input",8),s(11,"transloco"),g(12,"input",9),s(13,"transloco"),a(),o(14,"div",10),u(15,Mt,8,8,"div"),u(16,At,8,8,"div"),u(17,St,8,8,"div"),u(18,Nt,8,8,"div"),a()(),u(19,Rt,5,6,"div",11),u(20,Ft,10,9,"div",12),a()),i&2){let e=m();H(q(36,Tt,!e.isReadOnly,e.saveInformationInProgress)),p("formGroup",e.addressForm),t(2),I("editable",e.addressType()==="point_of_interest"),p("placeholder",k("",l(3,26,"ACCOUNT_INFO_TITLE_INTEREST")," *"))("readOnly",e.addressType()==="home")("title",l(4,28,e.address().title)),t(4),p("placeholder",k("",l(7,30,"ACCOUNT_TEXT_STREET_NUMBER"),"*"))("readOnly",e.isReadOnly),t(2),C(e.addressForm.get("additional_details").value||!e.isReadOnly?8:-1),t(2),p("placeholder",k("",l(11,32,"ACCOUNT_TEXT_POSTAL_CODE")," *"))("size",e.address().postal_code.length)("readOnly",e.isReadOnly),t(2),p("placeholder",k("",l(13,34,"ACCOUNT_TEXT_LOCALITY")," *"))("readOnly",e.isReadOnly),t(3),C(!e.isReadOnly||e.address().country==="Belgique"?15:-1),t(),C(!e.isReadOnly||e.address().country==="France"?16:-1),t(),C(!e.isReadOnly||e.address().country==="Luxembourg"?17:-1),t(),C(!e.isReadOnly||e.address().country==="Allemagne"?18:-1),t(),C(e.isReadOnly?-1:19),t(),C(e.isReadOnly?20:-1)}}function Lt(i,_){if(i&1&&(o(0,"p",30),d(1),s(2,"transloco"),a()),i&2){let e=m(3);t(),c(l(2,1,e.noAddressText))}}function Bt(i,_){if(i&1){let e=E();o(0,"div",28),u(1,Lt,3,3,"p",30),o(2,"div",31),h("click",function(){x(e);let n=m(2);return O(n.showNewAddressForm(!0))}),o(3,"div",32)(4,"span"),d(5,"+"),a()(),o(6,"span",33),d(7),s(8,"transloco"),a()()()}if(i&2){let e=m(2);t(),C(e.displayNoAddressMessage()?1:-1),t(6),c(l(8,2,e.addAddressText))}}function Dt(i,_){if(i&1){let e=E();o(0,"form",34)(1,"h4",2),g(2,"input",35),s(3,"transloco"),s(4,"transloco"),a(),o(5,"div",4),g(6,"input",36),s(7,"transloco"),g(8,"input",37),s(9,"transloco"),o(10,"div",7),g(11,"input",38),s(12,"transloco"),g(13,"input",39),s(14,"transloco"),a(),o(15,"div",10)(16,"div"),g(17,"input",13),o(18,"label",14),g(19,"
1img",15),s(20,"transloco"),o(21,"span",16),d(22),s(23,"transloco"),a()()(),o(24,"div"),g(25,"input",17),o(26,"label",14),g(27,"img",18),s(28,"transloco"),o(29,"span",16),d(30),s(31,"transloco"),a()()(),o(32,"div"),g(33,"input",19),o(34,"label",14),g(35,"img",20),s(36,"transloco"),o(37,"span",16),d(38),s(39,"transloco"),a()()(),o(40,"div"),g(41,"input",21),o(42,"label",14),g(43,"img",22),s(44,"transloco"),o(45,"span",16),d(46),s(47,"transloco"),a()()()()(),o(48,"div",40)(49,"button",23),h("click",function(n){x(e);let f=m(2);return O(f.newAddress(n))}),d(50),s(51,"transloco"),a(),o(52,"button",25),h("click",function(){x(e);let n=m(2);return O(n.showNewAddressForm(!1))}),d(53),s(54,"transloco"),a()()()}if(i&2){let e=m(2);I("card--loading",e.saveInformationInProgress),p("formGroup",e.newAddressForm),t(2),I("editable",e.addressType()==="point_of_interest"),p("placeholder",k("",l(3,37,"ACCOUNT_INFO_TITLE_INTEREST")," *"))("readOnly",e.addressType()==="home")("title",l(4,39,"ACCOUNT_TEXT_BY_MY_HOME_ADDRESS")),t(4),p("placeholder",k("",l(7,41,"ACCOUNT_TEXT_STREET_NUMBER")," *")),t(2),p("placeholder",ue(l(9,43,"ACCOUNT_TEXT_ADDITIONAL_INFOS"))),t(3),p("placeholder",k("",l(12,45,"ACCOUNT_TEXT_POSTAL_CODE")," *")),t(2),p("placeholder",k("",l(14,47,"ACCOUNT_TEXT_LOCALITY")," *")),t(4),p("id","country-be-"+e.addressType),t(),p("for","country-be-"+e.addressType),t(),p("alt",l(20,49,"GLOBAL_INFO_BELGIAN_FLAG")),t(3),c(l(23,51,"FILTER_BE")),t(3),p("id","country-fr-"+e.addressType),t(),p("for","country-fr-"+e.addressType),t(),p("alt",l(28,53,"GLOBAL_INFO_FRENCH_FLAG")),t(3),c(l(31,55,"FILTER_FR")),t(3),p("id","country-lu-"+e.addressType),t(),p("for","country-lu-"+e.addressType),t(),p("alt",l(36,57,"GLOBAL_INFO_LUXEMBOURG_FLAG")),t(3),c(l(39,59,"FILTER_LU")),t(3),p("id","country-de-"+e.addressType),t(),p("for","country-de-"+e.addressType),t(),p("alt",l(44,61,"GLOBAL_INFO_GERMAN_FLAG")),t(3),c(l(47,63,"FILTER_DE")),t(3),I("card__button--disabled",!e.newAddressForm.valid),t(),c(l(51,65,"CORPORATE_FORM_EDIT_MEMBER")),t(3),c(l(54,67,"GENERIC_TEXT_CANCEL"))}}function Vt(i,_){if(i&1&&(u(0,Bt,9,4,"div",28),u(1,Dt,55,69,"form",29)),i&2){let e=m();C(e.displayNewAddressForm?-1:0),t(),C(e.displayNewAddressForm?1:-1)}}var Ve=(()=>{class i{constructor(){this.ApiHttpService=P(G),this.EndpointProfileService=P(j),this.sharedTranslations=P($).translations,this.address=A(),this.addressType=A(""),this.displayNoAddressMessage=A(!0),this.reloadProfile=L(),this.isReadOnly=!0,this.saveInformationInProgress=!1,this.displayNewAddressForm=!1,this.editText="",this.addAddressText="",this.noAddressText="",this.addressForm=new K({title:new v("",T.required),street:new v("",T.required),additional_details:new v(""),postal_code:new v("",[T.required,T.pattern("^[0-9]*$")]),locality:new v("",T.required),country:new v("",T.required)}),this.newAddressForm=new K({title:new v("",T.required),street:new v("",T.required),additional_details:new v(""),postal_code:new v("",[T.required,T.pattern("^[0-9]*$")]),locality:new v("",T.required),country:new v("Belgique",T.required)}),this.destroy$=new D}ngOnInit(){this.initComponent()}ngOnChanges(){this.initComponent()}saveInfos(e){if(e.preventDefault(),this.saveInformationInProgress=!0,this.addressForm.valid){let r=this.constructBody(this.addressForm);this.ApiHttpService.put(this.EndpointProfileService.addPersonalAddress(`personal-address/${this.address().id}`),r).pipe(R(n=>(this.initializeFormValue(this.address()),n.status&&n.status===400?b.error(this.sharedTranslations().TOAST_ERROR_DETAILS_INVALID):b.error(this.sharedTranslations().GENERIC_ERROR_CONTACT_SYMPASS),w(()=>new Error("Error during profile update")))),F(this.destroy$)).subscribe(()=>{this.isReadOnly=!0,b.success(this.sharedTranslations().ACCOUNT_INFO_SUCCESS_UPDATE_PROFILE),this.reloadProfile.emit()})}else this.saveInformationInProgress=!1,b.error(this.sharedTranslations().TOAST_ERROR_DETAILS_INVALID)}newAddress(e){if(e.preventDefault(),this.saveInformationInProgress=!0,this.newAddressForm.valid){let r=this.constructBody(this.newAddressForm);this.ApiHttpService.post(this.EndpointProfileService.addPersonalAddress("personal-address"),r).pipe(R(n=>(this.saveInformationInProgress=!1,this.displayNewAddressForm=!1,n.status&&n.status===400?b.error(this.sharedTranslations().TOAST_ERROR_DETAILS_INVALID):b.error(this.sharedTranslations().GENERIC_ERROR_CONTACT_SYMPASS),w(()=>new Error("Error during profile update")))),F(this.destroy$)).subscribe(()=>{this.isReadOnly=!0,this.displayNewAddressForm=!1,this.newAddressForm.patchValue({title:"",street:"",additional_details:"",postal_code:"",locality:"",country:"Belgique"}),b.success(this.sharedTranslations().ACCOUNT_INFO_ADD_SUCCESS_ADDRESS),this.reloadProfile.emit()})}else this.saveInformationInProgress=!1,b.error(this.sharedTranslations().TOAST_ERROR_DETAILS_INVALID)}delete(e){e.preventDefault(),this.saveInformationInProgress=!0,this.isReadOnly=!0,this.ApiHttpService.delete(this.EndpointProfileService.addPersonalAddress(`personal-address/${this.address().id}`)).pipe(R(r=>(b.error(this.sharedTranslations().GENERIC_ERROR_CONTACT_SYMPASS),this.initializeFormValue(this.address()),w(()=>new Error("Error during profile update")))),F(this.destroy$)).subscribe(()=>{this.isReadOnly=!0,b.success(this.sharedTranslations().ACCOUNT_INFO_DELETE_CONFIRM_ADDRESS),this.reloadProfile.emit(),this.addressType()==="home"&&(this.saveInformationInProgress=!1)})}constructBody(e){let r;switch(e.value.country){case"Belgique":r="BE";break;case"France":r="FR";break;case"Allemagne":r="DE";break;case"Luxembourg":r="LU";break;default:break}return{type:this.addressType(),title:e.value.title,street:e.value.street,additional_details:e.value.additional_details,postal_code:e.value.postal_code,locality:e.value.locality,country:r}}showNewAddressForm(e){this.displayNewAddressForm=e}toggleEdit(e,r){e.preventDefault(),this.isReadOnly=r,r&&this.initializeFormValue(this.address())}initializeFormValue(e){this.addressForm.patchValue({title:e.title,street:e.street,additional_details:e.additional_details,postal_code:e.postal_code,locality:e.locality,country:e.country}),this.saveInformationInProgress=!1,this.isReadOnly=!0}initComponent(){if(this.address())this.initializeFormValue(this.address());else{let e=this.addressType()==="home"?this.sharedTranslations().ACCOUNT_TEXT_BY_MY_HOME_ADDRESS:"";this.newAddressForm.patchValue({title:e})}this.addressType()==="home"?(this.editText="ACCOUNT_TEXT_MODIFY_HOME_ADDRESS",this.addAddressText="ACCOUNT_TEXT_ADD_NEW_HOME_ADDRESS",this.noAddressText="ACCOUNT_TEXT_NO_HOME"):(this.editText="ACCOUNT_TEXT_MODIFY_POINT_OF_INTEREST",this.addAddressText="ACCOUNT_BUTTON_ADD_ADDRESS",this.noAddressText="ACCOUNT_TEXT_NO_ADDRESS")}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.unsubscribe()}static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275cmp=M({type:i,selectors:[["app-address-form"]],inputs:{address:[1,"address"],addressType:[1,"addressType"],displayNoAddressMessage:[1,"displayNoAddressMessage"]},outputs:{reloadProfile:"reloadProfile"},features:[J],decls:2,vars:2,consts:[[1,"card",3,"class","formGroup"],[1,"card",3,"formGroup"],[1,"card__title"],["type","text","formControlName","title",1,"card__title-input",3,"readOnly","placeholder","title"],[1,"card__inputs"],["type","text","formControlName","street",1,"editable",3,"readOnly","placeholder"],["type","text","formControlName","additional_details",1,"editable",3,"readOnly","placeholder"],[1,"card__local"],["type","text","formControlName","postal_code",1,"editable","zip-code",3,"size","readOnly","placeholder"],["type","text","formControlName","locality",1,"editable",3,"readOnly","placeholder"],[1,"card__choices"],[1,"card__actions","card__actions--edit"],[1,"card__actions","card__actions--readonly"],["type","radio","formControlName","country","value","Belgique",3,"id"],[3,"for"],["src","/assets/images/flags/be.svg",3,"alt"],[1,"card__choices-country"],["type","radio","formControlName","country","value","France",3,"id"],["src","/assets/images/flags/fr.svg",3,"alt"],["type","radio","formControlName","country","value","Luxembourg",3,"id"],["src","/assets/images/flags/lu.svg",3,"alt"],["type","radio","formControlName","country","value","Allemagne",3,"id"],["src","/assets/images/flags/de.svg",3,"alt"],[1,"card__button","card__button--confirm",3,"click"],[1,"card__button","card__button--cancel"],[1,"card__button","card__button--cancel",3,"click"],[1,"card__button","card__button--delete",3,"click","title"],[1,"card__button","card__button--edit",3,"click","title"],[1,"new-address"],[1,"card","card--editable",3,"card--loading","formGroup"],[1,"new-address__info"],[1,"new-address__cta",3,"click"],[1,"new-address__cta-plus"],[1,"new-address__cta-text"],[1,"card","card--editable",3,"formGroup"],["type","text","formControlName","title",3,"placeholder","readOnly","title"],["type","text","formControlName","street",1,"editable",3,"placeholder"],["type","text","formControlName","additional_details",1,"editable",3,"placeholder"],["type","text","formControlName","postal_code","size","8",1,"editable",3,"placeholder"],["type","text","formControlName","locality",1,"card__locality","editable",3,"placeholder"],[1,"new-address__actions"]],template:function(r,n){r&1&&(u(0,kt,21,39,"form",0),u(1,Vt,2,2)),r&2&&(C(n.address()?0:-1),t(),C(n.address()?-1:1))},dependencies:[Y,se,oe,le,ae,re,ce,de,S],styles:['.card[_ngcontent-%COMP%]{padding:24px;border-radius:3px;border:1px solid #c2c2c2;display:flex;flex-flow:column;gap:12px;transition:.2s all ease-out;width:100%}
1.card--loading[_ngcontent-%COMP%]{pointer-events:none;filter:blur(3px)}.card__title[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{font-size:18px!important;display:inline;font-weight:700;color:#de9101;overflow:hidden;text-overflow:ellipsis;border:none}.card__button[_ngcontent-%COMP%]{--color: #de9101;--padding: 4px 8px;display:flex;justify-content:center;align-items:center;gap:24px;text-align:center;color:var(--color);cursor:pointer;padding:var(--padding);border-radius:3px;border:1px solid var(--color);background:transparent;font-size:1rem;transition:.2s all ease-out}.card__button--edit[_ngcontent-%COMP%]{--padding: 8px 16px;width:100%}.card__button--delete[_ngcontent-%COMP%]{--color: #d83c3c;--padding: 8px 16px}.card__button--cancel[_ngcontent-%COMP%]{--color: #969696;--padding: 8px 16px;width:100%}.card__button--confirm[_ngcontent-%COMP%]{--color: #de9101;--padding: 8px 16px;width:100%}.card__button--disabled[_ngcontent-%COMP%]{--color: #c2c2c2;pointer-events:none}.card__button[_ngcontent-%COMP%]:hover{background:var(--color);color:#fff}.card__inputs[_ngcontent-%COMP%]{display:flex;flex-flow:column;transition:.2s all ease-out;gap:4px}.card[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{font-size:16px;border:none;transition:.2s all ease-out;display:block;width:100%;box-sizing:border-box}.card__local[_ngcontent-%COMP%]{display:flex;flex-flow:row nowrap;gap:12px}.card__local[_ngcontent-%COMP%] .zip-code[_ngcontent-%COMP%]{width:inherit}.card__choices[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;gap:12px;row-gap:4px}.card__choices[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{cursor:pointer;transition:.2s all ease-out;display:flex;flex-flow:row;align-items:center;gap:12px}.card__choices[_ngcontent-%COMP%] label[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:24px}.card__choices[_ngcontent-%COMP%] label[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .card__choices[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:none}.card__actions[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:space-between;gap:12px;row-gap:8px}.card__actions--readonly[_ngcontent-%COMP%]{flex-flow:row nowrap}.card--editable[_ngcontent-%COMP%] .card__inputs[_ngcontent-%COMP%]{gap:16px}.card--editable[_ngcontent-%COMP%] input.editable[_ngcontent-%COMP%]{border-radius:3px;box-shadow:0 0 0 1px #de91016a;padding:4px 6px;transition:.3s all ease-out}.card--editable[_ngcontent-%COMP%] input.editable[_ngcontent-%COMP%]:hover{box-shadow:0 0 0 2px #fea501}.card--editable[_ngcontent-%COMP%] input.editable[_ngcontent-%COMP%]:active, .card--editable[_ngcontent-%COMP%] input.editable[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 2px #de9101}.card--editable[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%] + label[_ngcontent-%COMP%]{padding:12px 16px;border:1px solid transparent}.card--editable[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{border:1px solid #de9101;border-radius:3px;background-color:#de91011c}.card--editable[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block}.card--editable[_ngcontent-%COMP%] .card__title[_ngcontent-%COMP%], .card--editable[_ngcontent-%COMP%] .card__title[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%}.new-address[_ngcontent-%COMP%]{display:flex;flex-flow:column;gap:24px;width:100%}.new-address__cta[_ngcontent-%COMP%]{display:flex;flex-flow:column;justify-content:center;align-items:center;gap:12px;border:1px solid rgba(222,145,1,.416);border-radius:3px;padding:24px;cursor:pointer;overflow:hidden;transition:.2s all ease-out}.new-address__cta-plus[_ngcontent-%COMP%]{width:48px;height:48px;display:flex;justify-content:center;align-items:center;position:relative;transition:.2s all ease-out}.new-address__cta-plus[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{z-index:10}.new-address__cta-plus[_ngcontent-%COMP%]:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:48px;height:48px;border-radius:100%;background-color:#de91011c;transition:.2s all ease-out;z-index:0}.new-address__cta-text[_ngcontent-%COMP%]{z-index:20;text-align:center}.new-address__cta[_ngcontent-%COMP%]:hover .new-address__cta-plus[_ngcontent-%COMP%]:after{transform:translate(-50%,-50%) scale(10);background-color:#de91016a}.new-address__actions[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:space-between;gap:12px;row-gap:8px}'],changeDetection:0})}}return i})();var Ut=(i,_)=>_.id;function Gt(i,_){if(i&1){let e=E();o(0,"app-address-form",13),h("reloadProfile",function(){x(e);let n=m(2);return O(n.reloadAddresses())}),a()}if(i&2){let e=_.$implicit;p("address",e)}}function Ht(i,_){if(i&1&&Q(0,Gt,1,1,"app-address-form",12,Ut),i&2){let e=m();ee(e.pointsOfInterest())}}function zt(i,_){if(i&1){let e=E();o(0,"app-address-form",14),h("reloadProfile",function(){x(e);let n=m();return O(n.reloadAddresses())}),a()}}function Xt(i,_){if(i&1){let e=E();o(0,"app-address-form",15),h("reloadProfile",function(){x(e);let n=m();return O(n.reloadAddresses())}),a()}i&2&&p("displayNoAddressMessage",!1)}var Ue=(()=>{class i{constructor(){this.profile=A(),this.reloadProfile=L(),this.proAddress=y(null),this.personnalAddress=y(null),this.pointsOfInterest=y([]),this.maximumAddressesPointOfInterestLength=y(4),this.showThisForm=""}ngOnInit(){this.setAddresses()}ngOnChanges(){this.setAddresses()}reloadAddresses(){this.reloadProfile.emit()}setAddresses(){let e=this.profile();e&&e&&(this.proAddress.set(e._embedded.address),this.pointsOfInterest.set([]),this.personnalAddress.set(null),this.showThisForm="",this.profile()._embedded.account._embedded.personal_addresses&&this.profile()._embedded.account._embedded.personal_addresses.forEac
1h(r=>{switch(r.type){case"point_of_interest":this.pointsOfInterest.set([...this.pointsOfInterest(),r]);break;case"home":this.personnalAddress.set(r);break;default:break}}),this.pointsOfInterest.length<1&&(this.showThisForm="newPoint"),this.pointsOfInterest.length>=1&&this.pointsOfInterest.length<4&&(this.showThisForm="addPoint"))}static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275cmp=M({type:i,selectors:[["app-profile-addresses"]],inputs:{profile:[1,"profile"]},outputs:{reloadProfile:"reloadProfile"},features:[J],decls:42,vars:29,consts:[[1,"addresses"],[1,"addresses__main-title"],[1,"addresses__container"],[1,"addresses__header"],[1,"addresses__title"],[1,"addresses__cards"],[1,"addresses__pro"],[1,"addresses__pro-title"],["addressType","home",1,"addresses__card",3,"reloadProfile","address"],[1,"addresses__max-points"],["addressType","point_of_interest",1,"addresses__card"],["addressType","point_of_interest",1,"addresses__card",3,"displayNoAddressMessage"],["addressType","point_of_interest",1,"addresses__card",3,"address"],["addressType","point_of_interest",1,"addresses__card",3,"reloadProfile","address"],["addressType","point_of_interest",1,"addresses__card",3,"reloadProfile"],["addressType","point_of_interest",1,"addresses__card",3,"reloadProfile","displayNoAddressMessage"]],template:function(r,n){r&1&&(o(0,"div",0)(1,"h2",1),d(2),s(3,"transloco"),a(),o(4,"div",2)(5,"div",3)(6,"h3",4),d(7),s(8,"transloco"),a()(),o(9,"div",5)(10,"div",6)(11,"h4",7),d(12),a(),o(13,"div")(14,"p"),d(15),a(),o(16,"p"),d(17),a(),o(18,"p"),d(19),a(),o(20,"p"),d(21),a()()()()(),o(22,"div",2)(23,"div",3)(24,"h3",4),d(25),s(26,"transloco"),a()(),o(27,"div",5)(28,"app-address-form",8),h("reloadProfile",function(){return n.reloadAddresses()}),a()()(),o(29,"div",2)(30,"div",3)(31,"h3",4),d(32),s(33,"transloco"),a(),o(34,"span",9),d(35),s(36,"transloco"),s(37,"transloco"),a()(),o(38,"div",5),u(39,Ht,2,0),u(40,zt,1,0,"app-address-form",10),u(41,Xt,1,1,"app-address-form",11),a()()()),r&2&&(t(2),c(l(3,17,"ACCOUNT_TEXT_MY_ADDRESSES")),t(5),c(l(8,19,"ACCOUNT_TEXT_PROFESSIONNAL")),t(5),c(n.proAddress().title),t(3),c(n.proAddress().street),t(2),c(n.proAddress().additional_details),t(2),z("",n.proAddress().postal_code," | ",n.proAddress().locality),t(2),c(n.proAddress().country),t(4),c(l(26,21,"ACCOUNT_TEXT_HOME")),t(3),p("address",n.personnalAddress()),t(4),c(l(33,23,"ACCOUNT_INFO_YOUR_POINTS_OF_INTEREST")),t(3),Pe("",l(36,25,"GLOBAL_TEXT_UP_TO")," ",n.maximumAddressesPointOfInterestLength()," ",l(37,27,"ACCOUNT_INFO_WORD_ADDRESS")," max."),t(4),C(n.pointsOfInterest()?39:-1),t(),C(n.showThisForm==="newPoint"?40:-1),t(),C(n.showThisForm==="addPoint"?41:-1))},dependencies:[Ve,S],styles:['.addresses[_ngcontent-%COMP%]{display:flex;flex-flow:column;gap:24px}.addresses[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin-bottom:0}.addresses__container[_ngcontent-%COMP%]{display:grid;gap:8px;grid-template-areas:"title" "cards";align-items:flex-start}@media(min-width:600px){.addresses__container[_ngcontent-%COMP%]{grid-template-areas:"title cards";gap:24px;grid-template-columns:25% 1fr}}.addresses__main-title[_ngcontent-%COMP%]{font-size:1.6rem;margin-bottom:0;font-weight:400}.addresses__header[_ngcontent-%COMP%]{grid-area:title}.addresses__title[_ngcontent-%COMP%]{color:#505050}.addresses__cards[_ngcontent-%COMP%]{grid-area:cards;display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:24px;width:100%}.addresses__pro[_ngcontent-%COMP%]{padding:24px;border-radius:3px;border:1px solid #c2c2c2;display:flex;flex-flow:column;gap:12px;width:100%}.addresses__pro-title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;color:#de9101}.addresses__card[_ngcontent-%COMP%]{width:100%}.addresses__max-points[_ngcontent-%COMP%]{color:#969696;font-size:16px}'],changeDetection:0})}}return i})();var Yt=()=>["/nous-contacter"];function $t(i,_){if(i&1&&(o(0,"div",2)(1,"p",3),d(2),s(3,"transloco"),a(),o(4,"p",4),d(5),s(6,"date"),a()()),i&2){let e=m();t(2),c(l(3,2,"ACCOUNT_TEXT_DELIVERED_ON")),t(3),N("",ye(6,4,e.profile().created_at*1e3,"dd/MM/yyyy")," ")}}function jt(i,_){if(i&1&&(o(0,"div",13),ge(),g(1,"svg",14),a()),i&2){let e=m();t(),p("innerHTML",e.safeBarcode(),he)}}var Ge=(()=>{class i{constructor(){this.profile=A(),this.safeBarcode=y(null),this.ApiHttpService=P(G),this.sanitizer=P(Me),this.EndpointProfileService=P(j)}ngOnInit(){this.ApiHttpService.get(this.EndpointProfileService.getProfileBarcode()).subscribe(e=>{this.safeBarcode.set(this.sanitizer.bypassSecurityTrustHtml(e.barcode))})}static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275cmp=M({type:i,selectors:[["app-profile-card"]],inputs:{profile:[1,"profile"]},decls:30,vars:20,consts:[[1,"card"],[1,"card__title"],[1,"card__field"],[1,"card__label"],[1,"card__value"],[1,"card__label","card__label--multi"],[1,"card__link",3,"routerLink"],[1,"card__wrapper"],[1,"card__display"],[1,"card__infos"],[1,"card__name"],[1,"card__client-name"],[1,"card__id"],[1,"card__barcode"],[1,"card__barcode-svg",3,"innerHTML"]],template:function(r,n){r&1&&(o(0,"div",0)(1,"h2",1),d(2),s(3,"transloco"),a(),o(4,"div",2)(5,"p",3),d(6,"ID"),a(),o(7,"p",4),d(8),a()(),u(9,$t,7,7,"div",2),o(10,"div",2)(11,"div",5)(12,"p"),d(13),s(14,"transloco"),a(),o(15,"a",6),s(16,"withLang"),d(17),s(18,"transloco"),a()(),o(19,"div",4)(20,"div",7)(21,"div",8)(22,"div",9)(23,"p",10),d(24),a(),o(25,"p",11),d(26),a(),o(27,"p",12),d(28),a()(),u(29,jt,2,1,"div",13),a()()()()()),r&2&&(t(2),c(l(3,11,"ACCOUNT_TEXT_MY_CARD")),t(6),N("",n.profile().c
1ard_id," "),t(),C(n.profile().created_at?9:-1),t(4),c(l(14,13,"ACCOUNT_TEXT_MY_CARD")),t(2),p("routerLink",l(16,15,te(19,Yt))),t(2),N(" ",l(18,17,"ACCOUNT_TEXT_LOST_CARD")," "),t(7),z("",n.profile().last_name," ",n.profile().first_name),t(2),c(n.profile().client_name),t(2),N("ID: ",n.profile().card_id),t(),C(n.safeBarcode()?29:-1))},dependencies:[ie,X,S,ne],styles:['.card[_ngcontent-%COMP%]{display:flex;flex-flow:column;gap:24px}.card__title[_ngcontent-%COMP%]{font-size:1.6rem;font-weight:400;margin-bottom:0}.card__display-link[_ngcontent-%COMP%]{text-decoration:underline;color:#de9101;cursor:pointer}.card__field[_ngcontent-%COMP%]{display:grid;gap:8px;grid-template-areas:"label" "value";align-items:flex-start}@media(min-width:600px){.card__field[_ngcontent-%COMP%]{grid-template-areas:"label value";gap:24px;grid-template-columns:25% 1fr}}.card__label[_ngcontent-%COMP%]{grid-area:label;color:#505050}.card__label--multi[_ngcontent-%COMP%]{display:flex;flex-flow:column;gap:8px}.card__link[_ngcontent-%COMP%]{text-decoration:underline;color:#de9101;font-style:italic}.card__value[_ngcontent-%COMP%]{grid-area:value;display:flex;flex-flow:column nowrap;gap:12px}.card__wrapper[_ngcontent-%COMP%]{aspect-ratio:295/439;width:100%;max-width:268.7927107062px;min-width:201.5945330296px;position:relative}@media(min-width:600px){.card__wrapper[_ngcontent-%COMP%]{width:400px;aspect-ratio:439/295;max-width:inherit;min-width:inherit}}.card__display[_ngcontent-%COMP%]{height:67.1981776765%;aspect-ratio:439/295;display:grid;grid-template-areas:"infos ." ". barcode";box-shadow:0 0 5px #f1f1f1;background-image:url("./media/sympass-card-template-GJ2ZCYDU.svg");background-repeat:no-repeat;background-position:center;background-size:cover;border-radius:5px;padding:12px 24px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) rotate(-90deg)}@media(min-width:600px){.card__display[_ngcontent-%COMP%]{height:100%;position:relative;top:inherit;left:inherit;transform:inherit}}.card__barcode[_ngcontent-%COMP%]{grid-area:barcode;display:flex;justify-content:flex-end;align-items:flex-end}.card__barcode-svg[_ngcontent-%COMP%]{width:130px;height:40px}.card__infos[_ngcontent-%COMP%]{grid-area:infos;display:flex;flex-flow:column nowrap;justify-content:center;gap:12px}.card__name[_ngcontent-%COMP%]{font-weight:700;font-size:20px}.card__client-name[_ngcontent-%COMP%]{font-weight:400;font-size:18px}.card__id[_ngcontent-%COMP%]{color:#969696}.card__lost[_ngcontent-%COMP%]{width:fit-content}'],changeDetection:0})}}return i})();var He=(()=>{class i{constructor(){this.profile=A(),this.destroy$=new D,this.apiHttpService=P(G),this.EndpointLoginService=P(Ie),this.popupService=P(pe),this.sharedTranslations=P($).translations,this.saveEmailAction=L()}passwordChangeRequest(){let e=this.profile();if(e&&e){let r={card_id:e.card_id};this.apiHttpService.post(this.EndpointLoginService.resetPassword(),r).pipe(F(this.destroy$),R(n=>w(()=>n))).subscribe(()=>{b.success(this.sharedTranslations().ACCOUNT_INFO_RESET_PASSWORD_SUCCESS)})}}editEmail(){this.popupService.open({type:Se.Confirm,view:"content",closeOnConfirm:!1,id:"update-email-personal",onClose:e=>{e.reason==="confirm"&&this.saveEmailAction.emit(e.payload)}})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.unsubscribe()}static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275cmp=M({type:i,selectors:[["app-profile-account-informations"]],inputs:{profile:[1,"profile"]},outputs:{saveEmailAction:"saveEmailAction"},decls:28,vars:19,consts:[[1,"profile-account"],["src","/assets/images/icon-passkey.svg","alt","icon passkey"],[1,"flex","flex--column"],[1,"flex"],[1,"current-email"],[1,"edit-btn",3,"click"],["src","/assets/images/icon-shield-lock.svg","alt","icon shield lock"],[1,"message","message--txt"]],template:function(r,n){r&1&&(V(0,"div",0)(1,"h2"),d(2),s(3,"transloco"),U(),V(4,"h3"),me(5,"img",1),d(6),s(7,"transloco"),U(),V(8,"div",2)(9,"div",3)(10,"div")(11,"p",4),d(12),U()(),V(13,"div")(14,"button",5),fe("click",function(){return n.editEmail()}),d(15),s(16,"transloco"),U()()(),V(17,"div")(18,"h3"),me(19,"img",6),d(20),s(21,"transloco"),U(),V(22,"p",7),d(23),s(24,"transloco"),U(),V(25,"button",5),fe("click",function(){return n.passwordChangeRequest()}),d(26),s(27,"transloco"),U()()()()),r&2&&(t(2),c(l(3,7,"PROFILE_MY_CONNECT_INFORMATIONS")),t(4),
1c(l(7,9,"PROFILE_YOUR_CONNECT_ADDRESS")),t(6),c(n.profile()._embedded.account.email),t(3),c(l(16,11,"PROFILE_MODIFY_MY_CONNECT_ADDRESS")),t(5),c(l(21,13,"ACCOUNT_TEXT_YOUR_PASSWORD")),t(3),c(l(24,15,"CHANGE_PASSWORD_LITTLE_TXT")),t(3),c(l(27,17,"GLOBAL_WANT_CHANGE_PASSWORD")))},dependencies:[Y,S],styles:["h2[_ngcontent-%COMP%]{margin-bottom:10px}h3[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin:12px 0;display:flex;align-items:center;gap:6px}.change-password__action[_ngcontent-%COMP%]{border:1px solid transparent;background:#de9101;cursor:pointer;color:#fff;padding:8px 12px;border-radius:4px;transition:.3s}.change-password__action[_ngcontent-%COMP%]:hover{background:#d38a01}.message[_ngcontent-%COMP%]{width:100%}@media(min-width:720px){.message[_ngcontent-%COMP%]{width:45%}}.message--txt[_ngcontent-%COMP%]{margin:0 0 10px}.message--success[_ngcontent-%COMP%]{margin-top:10px;color:#4caf50}.message--error[_ngcontent-%COMP%]{margin-top:10px;color:#e74c3c}.current-email[_ngcontent-%COMP%]{padding:10px 14px;border:1px solid #d0d5dd;border-radius:8px;background-color:#f9fafb;color:#344054;font-size:16px;font-family:inherit;box-shadow:inset 0 1px 2px #1018280d;cursor:default}.flex[_ngcontent-%COMP%]{display:flex;gap:8px}.flex--column[_ngcontent-%COMP%]{flex-direction:column;gap:12px}.edit-btn[_ngcontent-%COMP%]{padding:10px 14px;border-radius:8px;border:1px solid #de9101;background-color:#de9101;color:#fff;font-size:16px;font-weight:500;cursor:pointer;transition:background-color .2s ease,border-color .2s ease,box-shadow .2s ease}.edit-btn[_ngcontent-%COMP%]:hover{background-color:#d38a01}.edit-btn[_ngcontent-%COMP%]:focus-visible{outline:none;border-color:#84c5f4;box-shadow:0 0 0 3px #84c5f466}"],changeDetection:0})}}return i})();var qt=["profileInformationsRef"];function Kt(i,_){if(i&1){let e=E();o(0,"section",1)(1,"div",3)(2,"h2",4),d(3),s(4,"transloco"),a(),o(5,"div",5)(6,"app-profile-account-informations",6),h("saveEmailAction",function(n){x(e);let f=m();return O(f.onUpdateEmailPersonal(n))}),a(),o(7,"app-profile-informations",7,0),h("saveProfile",function(n){x(e);let f=m();return O(f.onSaveProfile(n))})("saveCompleted",function(){x(e);let n=ve(8);return O(n.markSaveComplete())}),a(),g(9,"app-profile-card",8),o(10,"app-profile-addresses",9),h("reloadProfile",function(){x(e);let n=m();return O(n.reloadProfile())}),a()()()()}if(i&2){let e=m();t(3),c(l(4,5,"HEADER_LINK_MY_INFORMATIONS")),t(3),p("profile",e.profile()),t(),p("profile",e.profile()),t(2),p("profile",e.profile()),t(),p("profile",e.profile())}}function Wt(i,_){i&1&&(o(0,"div",2),g(1,"app-skeleton"),a())}var gn=(()=>{class i{constructor(){this.apiHttpService=P(G),this.EndpointProfileService=P(j),this.titleService=P(we),this.sharedTranslations=P($).translations,this.profile=y(null),this.profileInformationsRef=Te.required("profileInformationsRef"),this.PopupService=P(pe),this.destroy$=new D}getProfile(){this.apiHttpService.get(this.EndpointProfileService.getProfile()).pipe(F(this.destroy$)).subscribe(e=>{this.profile.set(e)})}onSaveProfile(e){this.apiHttpService.patch(this.EndpointProfileService.getProfile(),e.body).pipe(R(r=>(r.status===400?b.error(this.sharedTranslations().GLOBAL_SOME_FIELDS_INCORRECT):b.error(this.sharedTranslations().GENERIC_ERROR_CONTACT_SYMPASS),w(()=>r))),Ce(r=>(this.profile.set(r),this.apiHttpService.patch(this.EndpointProfileService.getProfile(),e.mailingList))),R(r=>(b.error(this.sharedTranslations().GENERIC_ERROR_CONTACT_SYMPASS),w(()=>r)))).subscribe(r=>{this.profile.set(r),this.profileInformationsRef().markSaveComplete(),b.success(this.sharedTranslations().ACCOUNT_INFO_SUCCESS_UPDATE_PROFILE)})}onUpdateEmailPersonal(e){this.PopupService.showLoading(),this.apiHttpService.patch(this.EndpointProfileService.updateEmailPersonalAddress(),e,{observe:"response"}).pipe(F(this.destroy$),R(r=>{switch(r.status){case 400:this.PopupService.showError(this.sharedTranslations().GLOBAL_SOME_FIELDS_INCORRECT),b.error(this.sharedTranslations().GLOBAL_SOME_FIELDS_INCORRECT);break;case 409:this.PopupService.showError(this.sharedTranslations().PROFILE_PATCH_EMAIL_ALREADY_EXISTS),b.error(this.sharedTranslations().PROFILE_PATCH_EMAIL_ALREADY_EXISTS);break;case 403:console.log(r.error.resource),console.log(r),r&&r.error.resource&&r.error.resource.internal_code===21?this.PopupService.showError("Vous devez r\xE9aliser votre v\xE9rification de compte avant de pouvoir modifier votre adresse e-mail."):(this.PopupService.showError(this.sharedTranslations().PROFILE_PATCH_EMAIL_PERSONAL_CANNOT_BE_CHANGED),b.error(this.sharedTranslations().PROFILE_PATCH_EMAIL_PERSONAL_CANNOT_BE_CHANGED));break;default:this.PopupService.showError(this.sharedTranslations().GENERIC_ERROR_CONTACT_SYMPASS);break}return w(()=>r)})).subscribe(r=>{if(r.status===204)this.PopupService.showWarning(this.sharedTranslations().GLOBAL_NO_CHANGES_MADE);else if(r.status===200)this.profile.set(r.body),b.success(this.sharedTranslations().GLOBAL_INFO_SUCCESS),this.PopupService.showSuccess(this.sharedTranslations().VERIFY_EMAIL_SUCCESSFULLY_SENT+" "+this.profile()._embedded.account.email);else return})}ngOnInit(){this.titleService.setFlexibleTitle("tr:BREADCRUMB_TXT_MY_INFORMATIONS"),this.getProfile()}reloadProfile(){this.getProfile()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.unsubscribe()}static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275cmp=M({type:i,selectors:[["app-informations"]],viewQuery:function(r,n){r&1&&xe(n.profileInformationsRef,qt,5),r&2&&Oe()},decls:2,vars:1,consts:[["profileInformationsRef",""],[1,"member-infos","container"],[1,"skeleton"],[1,"member-infos__wrapper"],[1,"member-infos__title"],[1,"member-infos__sections"],[1,"member-infos__section",3,"saveEmailAction","profile"],[1,"member-infos__section",3,"saveProfile","saveCompleted","profile"],[1,"member-infos__section",3,"profile"],[1,"member-infos__section",3,"reloadProfile","profile"]],template:function(r,n){r&1&&u(0,Kt,11,7,"section",1)(1,Wt,2,0,"div",2),r&2&&C(n.profile()?0:1)},dependencies:[De,Ue,Ge,Be,He,S],styles:[".member-infos[_ngcontent-%COMP%]{border-radius:5px;box-shadow:0 0 5px #e8e8e8;padding:40px 24px;margin-bottom:80px;background:#fff}@media(min-width:600px){.member-infos[_ngcontent-%COMP%]{padding:72px 32px}}.member-infos__wrapper[_ngcontent-%COMP%]{display:flex;flex-flow:column nowrap;justify-content:center;align-items:center;gap:32px}@media(min-width:600px){.member-infos__wrapper[_ngcontent-%COMP%]{gap:48px}}.member-infos__title[_ngcontent-%COMP%]{width:100%;max-width:1024px;margin-bottom:0;font-size:2.5rem;font-family:Bebas,sans-serif}@media(min-width:600px){.member-infos__title[_ngcontent-%COMP%]{font-size:2.4rem}}.member-infos__sections[_ngcontent-%COMP%]{width:100%;max-width:1024px;display:flex;flex-flow:column;gap:48px}@media(min-width:600px){.member-infos__sections[_ngcontent-%COMP%]{gap:40px}}.member-infos__section[_ngcontent-%COMP%]{width:100%;padding-bottom:40px}.member-infos__section[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid #bdbdbd}"],changeDetection:0})}}return i})();export{gn as InformationsComponent};
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.