1import{a as vt,b as ao,c as xt}from"./chunk-XWPRGVHK.js";import{a as io,b as oo,c as no}from"./chunk-L43BF27X.js";import{a as so}from"./chunk-SIX5PRYL.js";import{a as eo,b as to}from"./chunk-ROVWGJJH.js";import{a as Yi,b as Zi,e as Ji,f as Xi}from"./chunk-JNLG5CWJ.js";import"./chunk-42NLMUYX.js";import{a as ot}from"./chunk-3G3NGRR7.js";import"./chunk-BKHSFDQ5.js";import"./chunk-2VDYTK2W.js";import{a as $i}from"./chunk-PNGX4A4M.js";import{b as Ki}from"./chunk-W72U7A2Q.js";import{a as Wi}from"./chunk-LD35D565.js";import"./chunk-FL22WG6S.js";import"./chunk-ICZCSCDA.js";import"./chunk-2AK42ESH.js";import"./chunk-I3VQI3Q4.js";import"./chunk-5JYVPT64.js";import{a as Ei,c as Vi,e as Ai}from"./chunk-GHXP46XC.js";import{a as ii,b as Bi}from"./chunk-YLF3R7WD.js";import"./chunk-TNUYI5D2.js";import"./chunk-HGWQEY5X.js";import{c as ji}from"./chunk-SWXVRSYG.js";import{a as Ui}from"./chunk-62SROWCZ.js";import{b as qi,c as Fi,d as Ri}from"./chunk-JSADYM7U.js";import{e as Hi}from"./chunk-QN3C3JBS.js";import"./chunk-UKR5OZGK.js";import{b as Ni}from"./chunk-J2LP754D.js";import{c as zi}from"./chunk-4PQWGGVL.js";import"./chunk-HTKZ2MRM.js";import"./chunk-GA4V4KUG.js";import"./chunk-KQKI6UGM.js";import"./chunk-76MUYBKL.js";import{b as it}from"./chunk-U4GJVFX3.js";import{c as ut}from"./chunk-KFP7RSST.js";import"./chunk-WHEAIY3U.js";import"./chunk-TQPJLVZV.js";import{a as gt}from"./chunk-KH7BRNI5.js";import"./chunk-IMX54EOR.js";import{b as Mi}from"./chunk-WIUJAF76.js";import{a as Di,b as Oi,c as Ti,g as Ii}from"./chunk-PLJOCKL2.js";import{e as bi,i as yi,j as We,m as ki,n as Ye}from"./chunk-EWZZCNL2.js";import"./chunk-6ZLDBIST.js";import{a as mt,d as x}from"./chunk-24MWP4UU.js";import{a as ui,b as fi,c as vi,g as xi}from"./chunk-O5J5YMMC.js";import{b as Si,c as Je}from"./chunk-KRIAO6QJ.js";import{a as tt}from"./chunk-NYWXLI4U.js";import"./chunk-2IURLDKA.js";import{a as Ci,d as Ze,f as Ee}from"./chunk-42KGAGL2.js";import{a as xo}from"./chunk-NY4RBHJF.js";import{b as Xe}from"./chunk-YQJGS37C.js";import"./chunk-BKXXNFNY.js";import{a as Pi}from"./chunk-AM7URZDU.js";import{a as et}from"./chunk-HF6KAANO.js";import{A as Ge,b as Re,c as ze,e as Me,h as He,i as oi,j as Ue,l as pe,m as ni,o as ai,p as si,q as ri,r as li,s as ci,t as di,u as pi,v as hi,x as _i,z as je}from"./chunk-TZCZQJJO.js";import{a as ft,b as Gi,c as Qi}from"./chunk-ZIYR4ENO.js";import{b as Li}from"./chunk-CYTQM7OA.js";import{U as _t,V as mi,ga as gi}from"./chunk-M55MF244.js";import{a as Be,b as Qe,d as Ke,e as $e,g as wi,h as Ve}from"./chunk-F5GJAPD3.js";import{a as Kt,c as $t,i as Wt,j as Yt,k as Zt,m as Jt,o as Xt,p as ei,t as ti}from"./chunk-44ZWPMA3.js";import{$b as ge,Ba as Mt,Cb as Oe,Dc as Te,Dd as jt,Ec as c,F as wt,Fa as Dt,Fc as g,Gb as Bt,Gc as q,Hc as Ie,Hd as Gt,Ic as Lt,J as rt,Jb as O,Jd as Fe,Kc as Nt,Lc as lt,Ld as Qt,Mc as qt,Nc as Ft,Oa as Ot,Oc as ct,Pc as de,Qc as Rt,Rc as zt,Sb as xe,Tb as B,Ub as Ce,Uc as h,Vb as F,Vc as u,Wc as le,X as Pt,Yc as dt,_b as y,ac as Et,bc as X,bd as qe,ca as Le,cc as ee,dc as n,eb as te,ec as s,fb as ce,fc as v,g as Ct,gb as Tt,gd as pt,ia as J,id as ht,jc as R,lb as a,mb as $,mc as T,n as St,oc as f,od as Ht,pc as Vt,qc as At,rb as It,rc as Se,s as st,ta as w,tc as Ne,ua as P,ub as ne,va as M,wa as A,xc as ae,xd as Ut,yc as se,zc as re}from"./chunk-RFW4ZZRK.js";import{a as Pe,b as De,g as at,h as kt}from"./chunk-WWX6BADO.js";var ro=(()=>{class o{constructor(){this.httpClient=J($t)}post(e,i){return this.httpClient.post(`//${Ve.API_URL}/${e}`,i,{headers:new Kt({Accept:"application/json"}),withCredentials:!0})}loadDataForPage(e){return this.post("api/v6/loadDataForDocPage",e)}fetchLogosSchedules(e,i){return this.post(i,{doctor_uuid:e})}getSlotsForBookingV2(e){return this.post("api/v7/getSlotsForBookingV2",e)}fetchDoctorSlots(e){return this.post("api/fetchDoctorSlots",e)}holdSlot(e){return this.post("api/holdslot",e)}clearHoldSlot(e){return this.post("api/clearholdslot",e)}showReplacementInfo(e){return this.post("api/showreplacementinfo",e)}loadPatientsForBook(e){return this.post("api/loadPatientsForBook",e)}patientBookAppointment(e){return this.post("api/patientBookAppoinment",e)}desmosBookAppointment(e){return this.post("api/desmosBookAppoinment",e)}patBookLiteAppointment(e,i){return this.post(i,e)}getAvailDatesForCal(e){return this.post("api/getAvailDatesForCal",e)}uploadFileForAptConditions(e){return this.post("api/uploadFileForAptConditions",e)}createBookingForList(e){return this.post("api/createBookingForList",e)}createLiteBookingForList(e){return this.post("api/createLiteBookingForList",e)}trackExternalProInviteClick(e){return this.post("api/v6/trackExternalProInviteClick",{external_pro_id:e})}getNextAvailDateDocCard(e){return this.post("api/getNextAvailDateDocCard",e)}static{this.\u0275fac=function(i){return new(i||o)}}static{this.\u0275prov=Le({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o}
1)();var lo=(()=>{class o{constructor(){this.isBrowser=Qt(J(Ot))}getItem(e){if(!this.isBrowser)return null;try{return localStorage.getItem(e)}catch{return null}}setItem(e,i){if(this.isBrowser)try{localStorage.setItem(e,i)}catch{}}removeItem(e){if(this.isBrowser)try{localStorage.removeItem(e)}catch{}}static{this.\u0275fac=function(i){return new(i||o)}}static{this.\u0275prov=Le({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();var oe=function(o){return o[o.Patient=13]="Patient",o}(oe||{}),co=[13,16,17],z=function(o){return o[o.YesNo=1]="YesNo",o[o.RequiredDocUpload=2]="RequiredDocUpload",o[o.MustAccept=3]="MustAccept",o[o.OpenText=4]="OpenText",o[o.OptionalDocUpload=5]="OptionalDocUpload",o[o.OptionalDate=6]="OptionalDate",o[o.RequiredDate=7]="RequiredDate",o[o.SingleChoice=8]="SingleChoice",o[o.MultipleChoice=9]="MultipleChoice",o}(z||{}),po=600,ho=214,yt=5,ue=function(o){return o[o.ModeAndType=0]="ModeAndType",o[o.SlotOrTiming=1]="SlotOrTiming",o[o.Auth=2]="Auth",o[o.PostQuestions=3]="PostQuestions",o[o.ProInfo=4]="ProInfo",o[o.PatientNote=5]="PatientNote",o[o.ReviewConfirm=6]="ReviewConfirm",o}(ue||{}),ie=function(o){return o.Idle="idle",o.ModeChosen="modeChosen",o.TypeChosen="typeChosen",o.SlotHeld="slotHeld",o.Identified="identified",o.Reviewed="reviewed",o.Confirmed="confirmed",o}(ie||{});var Q=at(xo());var E=at(Pi());var be=at(Pi());var Mo=o=>({doctor:o}),Do=(o,_,e)=>({title:o,last_name:_,first_name:e});function Oo(o,_){o&1&&(n(0,"div",7),M(),n(1,"svg",16),v(2,"circle",17)(3,"path",18),s(),A(),v(4,"p",19),h(5,"transloco"),s()),o&2&&(a(4),B("innerHTML",u(5,1,"doc_profile_page.only_patient_can_book_msg_html"),te))}function To(o,_){if(o&1&&(n(0,"span",25),c(1),s()),o&2){let e,i=f(4);a(),g((e=i.selectedDoctor())==null?null:e.splstr)}}function Io(o,_){if(o&1&&(n(0,"div",21)(1,"span",23),c(2),s(),n(3,"span",24),c(4),h(5,"transloco"),n(6,"b"),c(7),s(),O(8,To,2,1,"span",25),s()()),o&2){let e,i,t=f(3);a(2),g(t.doctorInitials()),a(2),q("",u(5,6,"request_by_patient_component_v7.label_recipient")," "),a(3),Lt("",(e=t.selectedDoctor())==null?null:e.title," ",(e=t.selectedDoctor())==null?null:e.first_name," ",(e=t.selectedDoctor())==null?null:e.last_name,""),a(),y((i=t.selectedDoctor())!=null&&i.splstr?8:-1)}}function Bo(o,_){if(o&1&&(n(0,"mat-option",32),c(1),s()),o&2){let e=_.$implicit;B("value",e),a(),Ie(" ",e.last_name," ",e.first_name," ")}}function Eo(o,_){if(o&1){let e=R();n(0,"div",26),c(1),h(2,"transloco"),s(),n(3,"mat-form-field",27),v(4,"input",28),h(5,"transloco"),n(6,"button",29),T("click",function(){let t;w(e);let r=f(3);return P((t=r.form.get("doctorFormControl"))==null?null:t.patchValue({}))}),n(7,"mat-icon"),c(8,"close"),s()(),n(9,"mat-autocomplete",30,0),T("optionSelected",function(t){w(e);let r=f(3);return P(r.onDoctorSelectionChanged(t))}),O(11,Bo,2,3,"mat-option",31),h(12,"async"),s()()}if(o&2){let e=Te(10),i=f(3);a(),g(u(2,5,"request_by_patient_component.select_doctor_title")),a(3),B("placeholder",u(5,7,"request_by_patient_component.doctor_placeholder"))("matAutocomplete",e),a(5),B("displayWith",i.displayFnDoctor),a(2),B("ngForOf",u(12,9,i.filteredDoctors))}}function Vo(o,_){if(o&1&&(n(0,"div",43),M(),n(1,"svg",16),v(2,"circle",17)(3,"path",18),s(),A(),n(4,"p"),c(5),h(6,"transloco"),s()()),o&2){let e,i=f(4);a(5),g(le(6,1,"request_by_patient_component.doctor_not_allow_message",zt(4,Do,(e=i.selectedDoctor())==null?null:e.title,(e=i.selectedDoctor())==null?null:e.last_name,(e=i.selectedDoctor())==null?null:e.first_name)))}}function Ao(o,_){o&1&&(n(0,"div",26),c(1),h(2,"transloco"),s(),n(3,"div",33)(4,"select",53)(5,"option",35),c(6),h(7,"transloco"),s(),n(8,"option",54),c(9),h(10,"transloco"),s(),n(11,"option",55),c(12),h(13,"transloco"),s(),n(14,"option",56),c(15),h(16,"transloco"),s()(),M(),n(17,"svg",41),v(18,"path",42),s()()),o&2&&(a(),g(u(2,5,"request_by_patient_component_v7.title_send_document")),a(5),g(u(7,7,"request_by_patient_component_v7.placeholder_document_type")),a(3),g(u(10,9,"request_by_patient_component.document_type_result")),a(3),g(u(13,11,"request_by_patient_component.document_type_prescription")),a(3),g(u(16,13,"request_by_patient_component.document_type_other")))}function Lo(o,_){if(o&1){let e=R();n(0,"div",65),M(),n(1,"svg",66),v(2,"path",67)(3,"path",68),s(),A(),n(4,"span",69),c(5),h(6,"number"),s(),n(7,"button",70),h(8,"transloco"),T("click",function(){let t=w(e).$index,r=f(6);return P(r.handleRemovesFile(t))}),M(),n(9,"svg",71),v(10,"path",4),s()()()}if(o&2){let e=_.$implicit;a(5),Ie("",e.name," \xB7 ",le(6,3,e.size/1024/1024,".2")," MB"),a(2),xe("aria-label",u(8,6,"request_by_patient_component_v7.btn_remove_file"))}}function No(o,_){if(o&1){let e=R();n(0,"div",26),c(1),h(2,"transloco"),s(),n(3,"label",57)(4,"input",58),T("change",function(t){w(e);let r=f(5);return P(r.handleChange(t))}),s(),n(5,"span",59),M(),n(6,"svg",60),v(7,"path",61)(8,"path",62),s()(),A(),n(9,"span",63),c(10),h(11,"transloco"),n(12,"span"),c(13),h(14,"transloco"),s()(),n(15,"span",64),c(16),h(17,"transloco"),s()(),X(18,Lo,11,8,"div",65,ge)}if(o&2){let e=f(5);a(),g(u(2,5,"request_by_patient_component_v7.title_attach_document")),a(3),B("accept",e.allowedFileTypes),a(6),q("",u(11,7,"request_by_patient_component_v7.text_drop_file")," "),a(3),g(u(14,9,"request_by_patient_component_v7.btn_browse")),a(3),g(u(17,11,"request_by_patient_component_v7.text_accepted_formats")),a(2),ee(e.uploadFiles)}}function qo(o,_){if(o&1&&(n(0,"div",26),c(1),h(2,"transloco"),s(),n(3,"label",72),v(4,"input",73)(5,"span",74),n(6,"span",75)(7,"span",76),c(8),h(9,"transloco"),s()()(),n(10,"label",72),v(11,"input",77)(12,"span",74),n(13,"span",75)(14,"span",76),c(15),h(16,"transloco"),s()()()),o&2){let e,i,t=f(5);a(),g(u(2,7,"request_by_patient_component.result_confirmation_title")),a(2),F("sel",((e=t.form.get("result_confirmation"))==null?null:e.value)==="1"),a(5),g(u(9,9,"request_by_patient_component.result_confirmation_option_1")),a(2),F("sel",((i=t.form.get("result_confirmation"))==null?null:i.value)==="2"),a(5),g(u(16,11,"request_by_patient_component.result_confirmation_option_2"))}}function Fo(o,_){if(o&1&&(O(0,Ao,19,15)(1,No,20,13)(2,qo,17,13),n(3,"div",44),c(4),h(5,"transloco"),s(),n(6,"div",45),v(7,"quill-editor",46),h(8,"transloco"),s(),n(9,"div",47)(10,"label",48),v(11,"input",49),n(12,"span"),c(13),h(14,"transloco"),s()(),n(15,"label",50),v(16,"input",51),n(17,"span")(18,"a",52),c(19),h(20,"transloco"),s()()()()),o&2){let e,i,t,r=f(4);y(((e=r.form.get("select_request_type"))==null?null:e.value)=="send_document"?0:-1),a(),y(((i=r.form.get("select_request_type"))==null?null:i.value)=="send_document"||((i=r.form.get("select_request_type"))==null?null:i.value)=="prescription_renewal"?1:-1),a(),y(((t=r.form.get("select_request_type"))==null?null:t.value)=="result_confirmation"?2:-1),a(2),g(u(5,9,"request_by_patient_component_v7.label_specify_request")),a(3),B("bounds","self")("modules",r.quillModules)("placeholder",u(8,11,"request_by_patient_component_v7.placeholder_comment")),a(6),g(u(14,13,"request_by_patient_component.text_agree_1")),a(6),g(u(20,15,"request_by_patient_component.text_agree_2"))}}function Ro(o,_){if(o&1){let e=R();n(0,"div",26),c(1),h(2,"transloco"),s(),n(3,"div",33)(4,"select",34),T("change",function(){let t;w(e);let r=f(3);return P(r.onRequestTypeChanged((t=r.form.get("select_request_type"))==null?null:t.value))}),n(5,"option",35),c(6),h(7,"transloco"),s(),n(8,"option",36),c(9),h(10,"transloco"),s(),n(11,"option",37),c(12),h(13,"transloco"),s(),n(14,"option",38),c(15),h(16,"transloco"),s(),n(17,"option",39),c(18),h(19,"transloco"),s(),n(20,"option",40),c(21),h(22,"transloco"),s()(),M(),n(23,"svg",41),v(24,"path",42),s()(),O(25,Vo,7,8,"div",43)(26,Fo,21,17)}if(o&2){let e,i,t=f(3);a(),g(u(2,9,"request_by_patient_component_v7.title_select_action")),a(5),g(u(7,11,"request_by_patient_component_v7.placeholder_select_action")),a(3),g(u(10,13,"request_by_patient_component.action_send_document")),a(3),g(u(13,15,"request_by_patient_component.action_prescription_renewal")),a(3),g(u(16,17,"request_by_patient_component.action_prescription_transport")),a(3),g(u(19,19,"request_by_patient_component.action_medical_certificate")),a(3),g(u(22,21,"request_by_patient_component.action_result_confirmation")),a(4),y((e=t.selectedDoctor())!=null&&e.id&&((e
1=t.form.get("select_request_type"))!=null&&e.value)&&((e=t.form.get("select_request_type"))==null?null:e.value)!=""&&!t.isRequestAllowed?25:-1),a(),y(t.isRequestAllowed&&((i=t.form.get("select_request_type"))!=null&&i.value)?26:-1)}}function zo(o,_){if(o&1){let e=R();n(0,"div",20),O(1,Io,9,8,"div",21)(2,Eo,13,11),n(3,"v7-auth-shell",22),h(4,"transloco"),T("authed",function(t){w(e);let r=f(2);return P(r.onAuthed(t))})("memberChosen",function(t){w(e);let r=f(2);return P(r.onMemberChosen(t))})("memberUnlocked",function(t){w(e);let r=f(2);return P(r.onMemberUnlocked(t))})("memberAdded",function(t){w(e);let r=f(2);return P(r.onMemberAdded(t))}),s(),O(5,Ro,27,23),s()}if(o&2){let e,i=f(2);B("formGroup",i.form),a(),y((e=i.selectedDoctor())!=null&&e.id?1:i.is_pat_login?2:-1),a(2),B("showLiteBookingOption",!1)("showMemberSelection",!0)("showMemberList",!1)("listTitle",u(4,9,"request_by_patient_component_v7.label_patient"))("currentUser",i.is_pat_login?i.user:null)("patients",i.members),a(2),y(i.is_pat_login?5:-1)}}function Ho(o,_){if(o&1&&O(0,zo,6,11,"div",20),o&2){let e=f();y(e.form?0:-1)}}var _o=(()=>{class o{constructor(e,i,t,r,l){if(this.authService=e,this.translocoService=i,this._matSnackBar=t,this._data=r,this.matDialogRef=l,this.apiService=J(io),this.loader=J(et),this.selectedLanguage="fr",this.quillModules={toolbar:[["bold","italic","underline"],[{align:[]},{list:"ordered"},{list:"bullet"}],["clean"]]},this.is_pat_login=!1,this.is_login=!1,this.is_user_other_than_patient=!1,this.show_locked_msg=!1,this.locked_msg="",this.patient_id=0,this.doctor_id_page=0,this.allDoctors=[],this.isLoadingDoctor=!1,this.allowedFileTypes="image/*,application/pdf",this.isUploading=!1,this.uploadFiles=[],this.members=[],this.isRequestAllowed=!1,this.showSuccess=!1,this.authService.currentUserValue&&this.authService.currentUserValue.id&&(this.authService.currentUserValue.group_id==13||this.authService.currentUserValue.group_id==16||this.authService.currentUserValue.group_id==17)?(this.is_pat_login=!0,this.patient_id=this.authService.currentUserValue.id):this.authService.currentUserValue&&this.authService.currentUserValue.id&&(this.is_user_other_than_patient=!0),this._data&&this._data.doctor_id&&(this.doctor_id_page=this._data.doctor_id),this.authService.currentUserValue){let p=this.authService.currentUserValue;this.user=p}this.selectedLanguage=this.translocoService.getActiveLang()}ngOnInit(){this.is_pat_login&&this.patient_id&&(this.fetchDoctors(),this.fetechMembers()),this.form=this.createForm(),this.allDoctors=[],this.filteredDoctors=this.form.get("doctorFormControl").valueChanges.pipe(Pt(""),st(e=>this.querySearchDoctorcontrol(e)))}fetechMembers(){this.is_pat_login?(this.loader.show("Chargement en cours. Veuillez patienter\u2026"),this.apiService.getFamilyMembers().subscribe(e=>{this.loader.hide(),e.response=="success"?this.members=e.data_family:this.members=[]})):this.members=[]}fetchDoctors(){this.isLoadingDoctor=!0,this.loader.show("Chargement en cours. Veuillez patienter\u2026"),this.apiService.getDoctors().pipe(st(e=>e),wt(()=>(this.isLoadingDoctor=!1,this.loader.hide(),St([])))).subscribe(e=>{if(this.isLoadingDoctor=!1,this.allDoctors=e,this._data&&this._data.doctor_id&&parseInt(this._data.doctor_id)>0){let i=parseInt(this._data.doctor_id),t=Vi(e,function(r){return r.id==i});this.form.get("doctorFormControl").patchValue(t)}else this.form.get("doctorFormControl").patchValue(e[0]);this.loader.hide()})}onDoctorSelectionChanged(e){this.form.get("select_request_type").patchValue(null),this.isRequestAllowed=!1}querySearchDoctorcontrol(e){let i=[{first_name:"",last_name:""}];return Ai(e)&&e.length>0?(i=this.allDoctors.filter(function(t){return t.first_name.toLowerCase().indexOf(e.toLowerCase())!==-1||t.last_name.toLowerCase().indexOf(e.toLowerCase())!==-1}),i):(i=this.allDoctors,i)}displayFnDoctor(e){let i="";return e&&e.first_name&&e.last_name&&(i=e.last_name+" "+e.first_name),i}createForm(){return new Ue({doctorFormControl:new pe,agree:new pe(!1),select_document_type:new pe,comment:new pe(""),select_request_type:new pe,patient:new pe,result_confirmation:new pe,agree1:new pe(!1)})}uploadFileForApt(){let e=new FormData,i=this.form&&this.form.get("doctorFormControl")&&this.form.get("doctorFormControl").value&&this.form.get("doctorFormControl").value.id?this.form.get("doctorFormControl").value.id.toString():"0";if(e.append("doctorid",i),e.append("patientid",this.patient_id.toString()),e.append("select_document_type",this.form.get("select_document_type").value),e.append("select_request_type",this.form.get("select_request_type").value),this.form.get("result_confirmation")&&this.form.get("result_confirmation").value&&this.form.get("result_confirmation").value=="1"||this.form.get("result_confirmation").value=="2"?e.append("result_confirmation",this.form.get("result_confirmation").value):e.append("result_confirmation","0"),this.form.get("select_request_type").value=="medical_certificate"||this.form.get("select_request_type").value=="prescription_transport"){let t=this.form&&this.form.get("patient")&&this.form.get("patient").value&&this.form.get("patient").value.id?this.form.get("patient").value.id.toString():"0";t!="0"?e.append("patientid",t.toString()):e.append("patientid",this.patient_id.toString())}
1else e.append("patientid",this.patient_id.toString());e.append("reqaptnote",this.form.get("comment").value);for(let t of this.uploadFiles)e.append("request_files[]",t);i!="0"&&parseInt(i)>0&&this.form.get("select_request_type").value?be.default.fire({icon:"warning",title:"Confirmer l\u2019envoi de votre demande",html:"Les informations et documents seront transmis de mani\xE8re s\xE9curis\xE9e au professionnel de sant\xE9.",showCancelButton:!0,cancelButtonText:"Annuler",confirmButtonText:"Oui",showLoaderOnConfirm:!0,allowOutsideClick:!1,allowEscapeKey:!1,preConfirm:()=>(be.default.getCancelButton().style.display="none",new Promise(()=>{this.apiService.patientReqAppt(e).subscribe(t=>{t&&t.response=="success"?(be.default.close(),this.showSuccess=!0):t&&t.response=="error"&&t.msg?be.default.fire(this.translocoService.translate("common.title_error"),t.msg,"info"):(be.default.close(),be.default.fire(this.translocoService.translate("common.title_error"),this.translocoService.translate("common.something_went_wrong_try_again"),"error"))})}))}).then(t=>{be.default.close()}):be.default.fire(this.translocoService.translate("common.title_error"),this.translocoService.translate("common.error_validation_failed"),"error")}onAuthed(e){this.user=e,e?.id&&(e.group_id===13||e.group_id===16||e.group_id===17)?(this.is_user_other_than_patient=!1,this.is_pat_login=!0,this.patient_id=e.id,this.fetchDoctors(),this.fetechMembers()):e?.id&&(this.is_user_other_than_patient=!0,this.is_pat_login=!1)}onMemberChosen(e){e?.id&&(this.patient_id=e.id,this.form&&this.form.get("patient")&&this.form.get("patient").setValue(e))}onMemberUnlocked(e){this.onMemberChosen(e),this.user?.id&&this.is_pat_login&&this.fetechMembers()}onMemberAdded(e){this.onMemberChosen(e),this.user?.id&&this.is_pat_login&&this.fetechMembers()}onRequestTypeChanged(e){this.form&&(this.form.get("select_document_type")&&this.form.get("select_document_type").setValue(null),this.form.get("result_confirmation")&&this.form.get("result_confirmation").setValue(null)),this.isRequestTypeAllowed(e)}isRequestTypeAllowed(e){if(this.isRequestAllowed=!1,(this.form&&this.form.get("doctorFormControl")&&this.form.get("doctorFormControl").value&&this.form.get("doctorFormControl").value.id?this.form.get("doctorFormControl").value.id:0)>0){let t=this.form.get("doctorFormControl").value;if(t.allowed_request_types&&t.allowed_request_types!=""){let l=t.allowed_request_types.toString().split(",");Ei(l)&&l.length>0&&l.includes(e)&&(this.isRequestAllowed=!0)}}}handleChange(e){this.isUploading=!1;let i=e.target;if(!(!i.files||i.files.length===0)){for(let t of Array.from(i.files))(t.type==="application/pdf"||t.type.startsWith("image/"))&&this.uploadFiles.push(t);i.value=""}}handleRemovesFile(e){this.uploadFiles.splice(e,1)}selectedDoctor(){return this.form&&this.form.get("doctorFormControl")?this.form.get("doctorFormControl").value:null}doctorInitials(){let e=this.selectedDoctor();if(!e)return"";let i=e.first_name&&e.first_name!==""?e.first_name.charAt(0):"",t=e.last_name&&e.last_name!==""?e.last_name.charAt(0):"";return(i+t).toUpperCase()}closeSuccess(){this.matDialogRef.close("success")}notyMessageError(e,i){this._matSnackBar.open(e,"OK",{verticalPosition:"top",horizontalPosition:"end",duration:5e3})}close(){this.matDialogRef.close()}static{this.\u0275fac=function(i){return new(i||o)($(Xe),$(Qe),$(tt),$(fi),$(ui))}}static{this.\u0275cmp=Oe({type:o,selectors:[["app-add-file-by-pat-v2"]],decls:31,vars:28,consts:[["autoV2","matAutocomplete"],[1,"dm-v2-wrap"],["type","button",1,"dm-close",3,"click"],["viewBox","0 0 20 20","fill","none","stroke","currentColor","stroke-width","2.2","stroke-linecap","round"],["d","M5 5l10 10M15 5L5 15"],[1,"dm-body"],[1,"dm-title"],[1,"dm-denied",2,"margin-top","8px"],[1,"dm-foot"],["type","button",1,"dm-btn-cancel",3,"click"],["type","button",1,"dm-btn-save",3,"click","disabled"],[1,"dm-success"],[1,"dm-succ-ic"],["viewBox","0 0 20 20","fill","none","stroke","currentColor","stroke-width","2.2","stroke-linecap","round","stroke-linejoin","round"],["d","M5 10l3 3 7-7"],["type","button",1,"dm-btn-save",2,"margin","22px auto 0","display","block",3,"click"],["viewBox","0 0 20 20","fill","none","stroke","currentColor","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],["cx","10","cy","10","r","8"],["d","M10 6.5v4.5M10 14h.01"],[3,"innerHTML"],[3,"formGroup"],[1,"dm-recipient"],[3,"authed","memberChosen","memberUnlocked","memberAdded","showLiteBookingOption","showMemberSelection","showMemberList","listTitle","currentUser","patients"],[1,"dm-recipient-av"],[1,"dm-recipient-txt"],[1,"dm-recipient-spec"],[1,"dm-sec"],["appearance","outline","color","accent",1,"w-full","nova-bordered-select"],["type","text","matInput","","formControlName","doctorFormControl",3,"placeholder","matAutocomplete"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],[3,"optionSelected","displayWith"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"dm-select"],["formControlName","select_request_type","required","",3,"change"],["value","","disabled","","selected","","hidden",""],["value","send_document"],["value","prescription_renewal"],["value","prescription_transport"],["value","medical_certificate"],["value","result_confirmation"],["viewBox","0 0 20 20","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"dm-chev"],["d","M5 8l5 5 5-5"],[1,"dm-denied"],[1,"dm-lbl"],[1,"dm-quill"],["formControlName","comment",1,"w-full",3,"boun
1ds","modules","placeholder"],[1,"dm-legal",2,"margin-top","16px"],[1,"dm-consent",2,"margin-bottom","8px"],["type","checkbox","formControlName","agree","required",""],[1,"dm-consent",2,"margin-bottom","0"],["type","checkbox","formControlName","agree1","required",""],["target","_blank","href","https://pro.clikodoc.com/cgu/"],["formControlName","select_document_type","required",""],["value","result"],["value","prescription"],["value","other"],[1,"dm-drop"],["type","file","multiple","",1,"dm-hidden-input",3,"change","accept"],[1,"dm-drop-ic"],["viewBox","0 0 20 20","fill","none","stroke","currentColor","stroke-width","1.9","stroke-linecap","round","stroke-linejoin","round"],["d","M10 13.5V4M6.5 7.5 10 4l3.5 3.5"],["d","M4 13v2.5a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V13"],[1,"dm-drop-t"],[1,"dm-drop-f"],[1,"dm-file"],["viewBox","0 0 20 20","fill","none","stroke","currentColor","stroke-width","1.7","stroke-linecap","round","stroke-linejoin","round"],["d","M5 3h6l4 4v10a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z"],["d","M11 3v4h4"],[1,"dm-file-name"],["type","button",1,"dm-file-rm",3,"click"],["viewBox","0 0 20 20","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round"],[1,"dm-pat"],["type","radio","formControlName","result_confirmation","value","1",1,"dm-hidden-input"],[1,"dm-radio"],[1,"dm-pat-txt"],[1,"dm-pat-main"],["type","radio","formControlName","result_confirmation","value","2",1,"dm-hidden-input"]],template:function(i,t){if(i&1&&(n(0,"div",1)(1,"button",2),h(2,"transloco"),T("click",function(){return t.close()}),M(),n(3,"svg",3),v(4,"path",4),s()(),A(),n(5,"div",5)(6,"h2",6),c(7),h(8,"transloco"),s(),O(9,Oo,6,3,"div",7)(10,Ho,1,1),s(),n(11,"div",8)(12,"button",9),T("click",function(){return t.close()}),c(13),h(14,"transloco"),s(),n(15,"button",10),T("click",function(){return t.uploadFileForApt()}),c(16),h(17,"transloco"),s()(),n(18,"div",11)(19,"div",12),M(),n(20,"svg",13),v(21,"path",14),s()(),A(),n(22,"h3"),c(23),h(24,"transloco"),s(),n(25,"p"),c(26),h(27,"transloco"),s(),n(28,"button",15),T("click",function(){return t.closeSuccess()}),c(29),h(30,"transloco"),s()()()),i&2){let r;F("done",t.showSuccess),a(),xe("aria-label",u(2,11,"request_by_patient_component_v7.btn_close")),a(6),g(u(8,13,"request_by_patient_component_v7.title_dialog")),a(2),y(t.is_user_other_than_patient?9:10),a(4),g(u(14,15,"request_by_patient_component_v7.btn_cancel")),a(2),B("disabled",t.form.invalid||!t.is_pat_login||!t.isRequestAllowed),a(),g(u(17,17,"request_by_patient_component_v7.btn_send_request")),a(7),g(u(24,19,"request_by_patient_component_v7.title_success")),a(3),g(le(27,21,"request_by_patient_component_v7.text_success",de(26,Mo,(((r=t.selectedDoctor())==null?null:r.title)||"")+" "+(((r=t.selectedDoctor())==null?null:r.first_name)||"")+" "+(((r=t.selectedDoctor())==null?null:r.last_name)||"")))),a(3),g(u(30,24,"request_by_patient_component_v7.btn_close"))}},dependencies:[Fe,Ut,jt,Gt,je,ci,di,ze,Re,li,ai,He,oi,pi,hi,Ge,si,ri,xi,Ee,Ze,Je,Si,it,Ri,qi,gi,Fi,We,yi,bi,Ye,ki,$e,Ke,oo,ot],styles:[`@charset "UTF-8";.dm-v2-panel .mat-mdc-dialog-container .mdc-dialog__surface{border-radius:18px!important;box-shadow:0 30px 70px #0b223659!important;overflow:hidden;overflow:clip;padding:0!important;height:auto!important;min-height:0!important}.dm-v2-wrap{--blue-dark:#143F6E;--blue-mid:#29A7E5;--blue-light:#ECF3FA;--gray-text:#6B7A90;--gray-light:#B5C4D8;--gray-border:#E2EAF3;--green:#30A42B;position:relative;display:flex;flex-direction:column;max-height:calc(100vh - 68px);font-size:14px}.dm-v2-wrap .dm-body{flex:1 1 auto;overflow-y:auto;padding:26px 28px 12px}.dm-v2-wrap .dm-title{font-size:21px;font-weight:700;color:var(--blue-dark);margin:0 0 8px;letter-spacing:-.2px;padding-right:34px}.dm-v2-wrap .dm-recipient{display:flex;align-items:center;gap:10px;margin:0 0 2px}.dm-v2-wrap .dm-recipient-av{width:30px;height:30px;border-radius:9px;background:linear-gradient(135deg,#dbe9f7,#c2d9ee);color:var(--blue-dark);display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;flex-shrink:0;letter-spacing:.3px}.dm-v2-wrap .dm-recipient-txt{font-size:12.5px;color:var(--gray-text);line-height:1.35}.dm-v2-wrap .dm-recipient-txt b{color:var(--blue-dark);font-weight:700}.dm-v2-wrap .dm-recipient-spec{display:block;font-size:11px;color:var(--gray-light)}.dm-v2-wrap .dm-close{position:absolute;top:14px;right:14px;width:32px;height:32px;border-radius:9px;border:none;background:var(--blue-light);color:var(--gray-text);cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:6;transition:background .15s}.dm-v2-wrap .dm-close:hover{background:var(--gray-border);color:var(--blue-dark)}.dm-v2-wrap .dm-close svg{width:15px;height:15px}.dm-v2-wrap .dm-sec{font-size:14px;font-weight:700;color:var(--blue-dark);margin:22px 0 11px}.dm-v2-wrap .dm-pat{position:relative;display:flex;align-items:flex-start;gap:11px;width:100%;text-align:left;padding:12px 13px;border:1.5px solid var(--gray-border);border-radius:11px;background:#fff;cursor:pointer;margin-bottom:9px;font-family:inherit;transition:border-color .15s}.dm-v2-wrap .dm-pat:hover{border-color:var(--gray-light)}.dm-v2-wrap .dm-pat.sel{border-color:var(--blue-mid)}.dm-v2-wrap .dm-radio{width:18px;height:18px;border:2px solid #CBD8E8;border-radius:50%;flex-shrink:0;position:relative;margin-top:1px;background:#fff}.dm-v2-wrap .dm-pat.sel .dm-radio{border-color:var(--blue-mid)}.dm-v2-wrap .dm-pat.sel .dm-radio:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:8px;height:8px;border-radius:50%;background:var(--blue-mid)}.dm-v2-wrap .dm-pat-main{display:block;font-size:13.5px;font-weight:700;color:var(--blue-dark)}.dm-v2-wrap .dm-pat-sub{display:block;font-size:11.5px;color:var(--gray-text);margin-top:3px;line-height:1.45}.dm-v2-wrap .dm-select{position:relative}.dm-v2-wrap .dm-select select{width:100%;box-sizing:border-box;appearance:none;-webkit-appearance:none;font-family:inherit;font-size:15px;color:var(--blue-dark);border:1.5px solid var(--gray-border);border-radius:12px;padding:14px 42px 14px 16px;background:#fff;cursor:pointer}.dm-v2-wrap .dm-select select:invalid{color:var(--gray-text)}.dm-v2-wrap .dm-select select:focus{outline:none;border-color:var(--blue-mid)}.dm-v2-wrap .dm-chev{position:absolute;right:15px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:var(--gray-text);pointer-events:none}.dm-v2-wrap .dm-lbl{font-size:13.5px;font-weight:600;color:var(--gray-text);margin:18px 0 8px}.dm-v2-wrap .dm-denied{display:flex;gap:11px;align-items:flex-start;margin-top:14px;padding:14px 16px;border:1px solid #F2D8A8;background:#fcf7ec;border-radius:12px}.dm-v2-wrap .dm-denied>svg{width:20px;height:20px;color:#c98200;flex-shrink:0;margin-top:1px}.dm-v2-wrap .dm-denied p{margin:0;font-size:13.5px;line-height:1.55;color:#6b5733}.dm-v2-wrap .dm-drop{position:relative;display:flex;flex-direction:column;align-items:center;gap:9px;text-align:center;border:1.6px dashed var(--gray-light);border-radius:14px;padding:22px 18px;background:#fcfdff;cursor:pointer;transition:border-color .15s,background .15s}.dm-v2-wrap .dm-drop:hover{border-color:var(--blue-mid);background:var(--blue-light)}.dm-v2-wrap .dm-drop-ic{width:46px;height:46px;border-radius:13px;background:var(--blue-mid);
1display:flex;align-items:center;justify-content:center;flex-shrink:0}.dm-v2-wrap .dm-drop-ic svg{width:22px;height:22px;color:#fff}.dm-v2-wrap .dm-drop-t{font-size:14px;color:var(--blue-dark);font-weight:600}.dm-v2-wrap .dm-drop-t span{color:var(--blue-mid);font-weight:700}.dm-v2-wrap .dm-drop-f{font-size:11.5px;color:var(--gray-text)}.dm-v2-wrap .dm-file{display:flex;align-items:center;gap:10px;margin-top:10px;padding:11px 14px;border:1.5px solid var(--gray-border);border-radius:11px;background:#fff}.dm-v2-wrap .dm-file>svg{width:18px;height:18px;color:var(--blue-mid);flex-shrink:0}.dm-v2-wrap .dm-file-name{flex:1;font-size:13.5px;color:var(--blue-dark);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dm-v2-wrap .dm-file-rm{border:none;background:none;cursor:pointer;padding:4px;display:flex;flex-shrink:0;color:var(--gray-text)}.dm-v2-wrap .dm-file-rm:hover{color:#e2574c}.dm-v2-wrap .dm-file-rm svg{width:14px;height:14px}.dm-v2-wrap .dm-hidden-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.dm-v2-wrap .dm-quill{border:1.5px solid var(--gray-border);border-radius:12px;overflow:hidden}.dm-v2-wrap .dm-quill:focus-within{border-color:var(--blue-mid)}.dm-v2-wrap .dm-quill .ql-toolbar{background:#f4f8fc;border:none;border-bottom:1px solid var(--gray-border)}.dm-v2-wrap .dm-quill .ql-container{border:none;min-height:94px;max-height:200px;font-size:14px;font-family:inherit;color:var(--blue-dark)}.dm-v2-wrap .dm-quill .ql-editor{min-height:94px;line-height:1.55}.dm-v2-wrap .dm-quill .ql-editor.ql-blank:before{color:var(--gray-light);font-style:normal}.dm-v2-wrap .dm-consent{display:flex;align-items:flex-start;gap:12px;cursor:pointer}.dm-v2-wrap .dm-consent input{margin-top:2px;width:19px;height:19px;flex-shrink:0;accent-color:var(--blue-mid);cursor:pointer}.dm-v2-wrap .dm-consent span{font-size:12.5px;line-height:1.5;color:#42526b}.dm-v2-wrap .dm-consent a{color:var(--blue-mid);font-weight:700;text-decoration:none}.dm-v2-wrap .dm-consent a:hover{text-decoration:underline}.dm-v2-wrap .dm-legal{font-size:11.5px;line-height:1.5;color:var(--gray-text);margin-top:18px}.dm-v2-wrap .dm-foot{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:14px 24px;border-top:1px solid var(--gray-border);background:#fff;flex-shrink:0}.dm-v2-wrap .dm-btn-cancel{background:none;border:none;font-family:inherit;font-size:15px;font-weight:600;color:var(--blue-dark);padding:11px 16px;cursor:pointer;border-radius:10px}.dm-v2-wrap .dm-btn-cancel:hover{background:var(--blue-light)}.dm-v2-wrap .dm-btn-save{background:var(--blue-mid);color:#fff;border:none;font-family:inherit;font-size:15px;font-weight:700;padding:13px 26px;border-radius:11px;cursor:pointer;box-shadow:0 8px 18px #29a7e547}.dm-v2-wrap .dm-btn-save:hover{background:#1f93cf}.dm-v2-wrap .dm-btn-save:disabled{background:#cbd8e6;color:#fff;box-shadow:none;cursor:not-allowed}.dm-v2-wrap .dm-success{display:none;padding:38px 30px 34px;text-align:center}.dm-v2-wrap.done .dm-body,.dm-v2-wrap.done .dm-foot{display:none}.dm-v2-wrap.done .dm-success{display:block}.dm-v2-wrap .dm-succ-ic{width:64px;height:64px;border-radius:50%;background:#e9f7e9;display:flex;align-items:center;justify-content:center;margin:0 auto 18px}.dm-v2-wrap .dm-succ-ic svg{width:32px;height:32px;color:var(--green)}.dm-v2-wrap .dm-success h3{font-size:19px;font-weight:800;color:var(--blue-dark);margin:0 0 8px}.dm-v2-wrap .dm-success p{font-size:14px;color:var(--gray-text);line-height:1.55;margin:0 auto;max-width:340px} 2`],encapsulation:2})}}return o})();var Uo=["slotTimeOut"],jo=["pickerNext"],Go=["calendarNext"],Qo=["stepperAnchor"],Ko=["step1Tpl"],$o=["step2Tpl"],Wo=["step3Tpl"],Yo=["step4Tpl"],Zo=["step5Tpl"],Jo=["step6Tpl"],Xo=["step7Tpl"],nt=(o,_)=>_.id,mo=(o,_)=>_.key,en=(o,_)=>_.slotid,go=o=>({name:o}),tn=o=>({num:o}),on=o=>({leftTime:o,notify:0,format:"mm:ss"}),nn=o=>({date:o}),uo=()=>({standalone:!0}),an=(o,_)=>({zone:o,clinic:_}),sn=o=>({max_date:o}),rn=o=>({min_date:o}),ln=o=>({count:o});function cn(o,_){if(o&1&&(n(0,"a",5),c(1),s()),o&2){let e=f();B("routerLink",e.v7SpecCityLink()),a(),g(e.v7SpecCity())}}function dn(o,_){if(o&1&&(n(0,"span"),c(1),s()),o&2){let e=f();a(),g(e.v7SpecCity())}}function pn(o,_){if(o&1&&v(0,"img",17),o&2){let e=f();Ne("src","uploads/users/",e.pageData.doctor.avatar,"?ver=",e.pageData.random_ver,"",ce),Se("alt",e.v7DocFullName())}}function hn(o,_){if(o&1&&(n(0,"span"),c(1),s()),o&2){let e=f();a(),g(e.v7DocInitials())}}function _n(o,_){if(o&1&&(n(0,"span",19),M(),n(1,"svg",155),v(2,"path",156)(3,"path",157)(4,"path",158),s(),A(),n(5,"span",159),c(6),s()()),o&2){let e=f();a(6),g(e.pageData.clinic_master_name)}}function mn(o,_){if(o&1&&(n(0,"div",21),c(1),s()),o&2){let e=f();a(),q(" RPPS ",e.pageData.doctor.rpps_number," ")}}function gn(o,_){if(o&1&&(n(0,"div",21),c(1),h(2,"transloco"),s()),o&2){let e=f();a(),Ie(" ",u(2,2,"doc_profile_page.siren_label")," ",e.pageData.doctor.siren," ")}}function un(o,_){if(o&1&&(n(0,"span",27),M(),n(1,"svg",72),v(2,"path",160),s(),c(3),s()),o&2){let e=f();a(3),q(" ",e.getSectorLabel(e.pageData.doctor.sector)," ")}}function fn(o,_){if(o&1&&(n(0,"span",28),M(),n(1,"svg",82),v(2,"circle",161)(3,"path",162),s(),A(),v(4,"span",163),s()),o&2){let e=f();a(4),B("innerHtml",e.pageData.doctor.doc_languages_str,te)}}function vn(o,_){o&1&&(n(0,"span",27),M(),n(1,"svg",72),v(2,"path",160),s(),c(3),h(4,"transloco"),s()),o&2&&(a(3),q(" ",u(4,1,"doc_profile_page_v7.identity.label_c
2arte_vitale")," "))}function xn(o,_){o&1&&(n(0,"span",28),M(),n(1,"svg",82),v(2,"path",164)(3,"path",165),s(),c(4),h(5,"transloco"),s()),o&2&&(a(4),q(" ",u(5,1,"doc_profile_page_v7.identity.label_tiers_payant")," "))}function bn(o,_){if(o&1&&c(0),o&2){let e=f(2);q(" \xB7 ",e.v7NextAvail.next_avail_type," ")}}function yn(o,_){if(o&1){let e=R();n(0,"a",166),T("click",function(){w(e);let t=f();return P(t.v7DispoGo())}),n(1,"span",167)(2,"span"),c(3),h(4,"transloco"),O(5,bn,1,1),s(),n(6,"strong"),c(7),s()(),M(),n(8,"svg",168),v(9,"path",169),s()()}if(o&2){let e=f();a(3),q("",u(4,3,"doc_profile_page_v7.identity.label_next_availability")," "),a(2),y(e.v7NextAvail.next_avail_type?5:-1),a(2),g(e.v7NextAvailLabel())}}function kn(o,_){if(o&1&&(n(0,"a",170),c(1),h(2,"transloco"),s()),o&2){let e=f(2);B("href",e.xploreUrl,ce),a(),q(" ",u(2,2,"doc_profile_page_v7.identity.btn_book")," ")}}function Cn(o,_){if(o&1){let e=R();n(0,"a",172),T("click",function(){w(e);let t=f(2);return P(t.v7EnterRdv("rdv"))}),c(1),h(2,"transloco"),s()}o&2&&(a(),q(" ",u(2,1,"doc_profile_page_v7.identity.btn_book")," "))}function Sn(o,_){if(o&1&&O(0,kn,3,4,"a",170)(1,Cn,3,3,"a",171),o&2){let e=f();y(e.xploreUrl!=""?0:1)}}function wn(o,_){if(o&1){let e=R();n(0,"a",173),T("click",function(){w(e);let t=f();return P(t.v7EnterRdv("file"))}),M(),n(1,"svg",174),v(2,"path",175)(3,"circle",176)(4,"circle",177)(5,"circle",178),s(),c(6),h(7,"transloco"),s()}o&2&&(a(6),q(" ",u(7,1,"doc_profile_page_v7.identity.btn_queue")," "))}function Pn(o,_){if(o&1){let e=R();n(0,"button",179),T("click",function(){w(e);let t=f();return P(t.v7Request())}),M(),n(1,"svg",180),v(2,"path",181),s(),c(3),h(4,"transloco"),s()}o&2&&(a(3),q(" ",u(4,1,"doc_profile_page_v7.identity.btn_request")," "))}function Mn(o,_){if(o&1&&(n(0,"a",35),M(),n(1,"svg",182),v(2,"path",183)(3,"path",184)(4,"path",185),s(),c(5),h(6,"transloco"),s()),o&2){let e=f();B("href","https://www.google.com/maps/dir/?api=1&destination="+e.pageData.clinic_latitude+","+e.pageData.clinic_longitude,ce),a(5),q(" ",u(6,2,"doc_profile_page_v7.identity.btn_itinerary")," ")}}function Dn(o,_){if(o&1&&(n(0,"span",36),M(),n(1,"svg",56),v(2,"path",186),s(),A(),v(3,"span",163),s()),o&2){let e=f();a(3),B("innerHtml",e.pageData.clinic_tel,te)}}function On(o,_){if(o&1&&(n(0,"span",36),M(),n(1,"svg",56),v(2,"path",186),s(),A(),v(3,"span",163),s()),o&2){let e=f();a(3),B("innerHtml",e.pageData.display_phone_1,te)}}function Tn(o,_){if(o&1&&(n(0,"span",36),M(),n(1,"svg",56),v(2,"path",186),s(),A(),v(3,"span",163),s()),o&2){let e=f();a(3),B("innerHtml",e.pageData.display_phone_2,te)}}function In(o,_){if(o&1&&(v(0,"p",48),h(1,"richText")),o&2){let e=f();B("innerHtml",u(1,1,e.pageData.doctor.doc_page_short_intro),te)}}function Bn(o,_){if(o&1&&(v(0,"p",49),h(1,"richText")),o&2){let e=f();B("innerHtml",u(1,1,e.pageData.doctor.info_for_patients),te)}}function En(o,_){if(o&1&&(v(0,"p",50),h(1,"stripNbsp")),o&2){let e=f();B("innerHtml",u(1,1,e.pageData.doctor.education),te)}}function Vn(o,_){if(o&1&&c(0),o&2){let e=f(2);q(" ",e.getSectorLabel(e.pageData.doctor.sector)," ")}}function An(o,_){o&1&&c(0," : ")}function Ln(o,_){if(o&1&&(v(0,"span",163),h(1,"stripNbsp")),o&2){let e=f(2);B("innerHtml",u(1,1,e.pageData.doctor.doc_page_price_text),te)}}function Nn(o,_){if(o&1&&(n(0,"p",54),O(1,Vn,1,1)(2,An,1,0)(3,Ln,2,3,"span",163),s()),o&2){let e=f();a(),y(!(e.pageData==null||e.pageData.doctor==null)&&e.pageData.doctor.sector&&e.pageData.doctor.sector!=""?1:-1),a(),y(!(e.pageData==null||e.pageData.doctor==null)&&e.pageData.doctor.sector&&e.pageData.doctor.sector!=""&&(!(e.pageData==null||e.pageData.doctor==null)&&e.pageData.doctor.doc_page_price_text)&&e.pageData.doctor.doc_page_price_text!=""?2:-1),a(),y(!(e.pageData==null||e.pageData.doctor==null)&&e.pageData.doctor.doc_page_price_text&&e.pageData.doctor.doc_page_price_text!=""?3:-1)}}function qn(o,_){if(o&1&&(n(0,"span",192),c(1),s()),o&2){let e=f().$implicit,i=f(2);a(),q(" ",i.v7TypePrice(e)," ")}}function Fn(o,_){if(o&1){let e=R();n(0,"div",190),T("click",function(){let t=w(e).$implicit,r=f(2);return P(r.v7GoWithType(t.id))}),n(1,"span",191),c(2),s(),O(3,qn,2,1,"span",192),s()}if(o&2){let e=_.$implicit,i=_.$index,t=f(2);F("cons-hidden",!t.v7ConsOpen&&i>2),a(2),q(" ",e.type_name," "),a(),y(t.v7TypePrice(e)?3:-1)}}function Rn(o,_){if(o&1){let e=R();n(0,"button",193),T("click",function(){w(e);let t=f(2);return P(t.v7toggleCons())}),c(1),h(2,"transloco"),h(3,"transloco"),M(),n(4,"svg",6),v(5,"path",194),s()()}if(o&2){let e=f(2);F("open",e.v7ConsOpen),a(),q(" ",e.v7ConsOpen?u(2,3,"doc_profile_page_v7.consultations.btn_see_less"):u(3,5,"doc_profile_page_v7.consultations.btn_see_more")," ")}}function zn(o,_){if(o&1&&(n(0,"div",187),X(1,Fn,4,4,"div",188,nt),s(),O(3,Rn,
26,7,"button",189)),o&2){let e=f();F("open",e.v7ConsOpen),a(),ee(e.bookingRules.types),a(2),y(e.bookingRules.types.length>3?3:-1)}}function Hn(o,_){if(o&1&&v(0,"img",201),o&2){let e=f().$implicit;B("src",e.image_url,ce)("alt",e.title)}}function Un(o,_){o&1&&(n(0,"span",202),M(),n(1,"svg",205),v(2,"path",206)(3,"circle",207),s(),c(4),h(5,"transloco"),s()),o&2&&(a(4),q(" ",u(5,1,"doc_profile_page_v7.consultations.label_photo")," "))}function jn(o,_){if(o&1&&(n(0,"span",204),c(1),s()),o&2){let e=f().$implicit;a(),g(e.price_text)}}function Gn(o,_){if(o&1){let e=R();n(0,"figure",199),T("click",function(){let t=w(e).$implicit,r=f(2);return P(r.v7GoWithType(t.type_id))}),n(1,"div",200),O(2,Hn,1,2,"img",201)(3,Un,6,3,"span",202),s(),n(4,"figcaption")(5,"span",203),c(6),s(),O(7,jn,2,1,"span",204),s()()}if(o&2){let e=_.$implicit;B("title",e.description||""),a(2),y(e.image_url?2:3),a(4),g(e.title),a(),y(e.price_text?7:-1)}}function Qn(o,_){if(o&1&&(n(0,"div",195),c(1),h(2,"transloco"),s(),n(3,"p",196),c(4),h(5,"transloco"),s(),n(6,"div",197),X(7,Gn,8,4,"figure",198,nt),s()),o&2){let e=f();a(),g(u(2,2,"doc_profile_page_v7.consultations.title_prestations")),a(3),q(" ",u(5,4,"doc_profile_page_v7.consultations.text_prestations_intro")," "),a(3),ee(e.menuServices)}}function Kn(o,_){if(o&1&&(n(0,"span",210),c(1),s()),o&2){let e=_.$implicit;a(),g(e)}}function $n(o,_){if(o&1&&(n(0,"div",208),c(1),h(2,"transloco"),s(),n(3,"div",209),X(4,Kn,2,1,"span",210,ge),s()),o&2){let e=f();a(),q(" ",u(2,1,"doc_profile_page_v7.consultations.title_payment_methods")," "),a(3),ee(e.v7PaymentChips())}}function Wn(o,_){o&1&&(n(0,"span",214),c(1),h(2,"transloco"),s()),o&2&&(a(),g(u(2,1,"doc_profile_page_v7.hours.label_open")))}function Yn(o,_){if(o&1&&(n(0,"div",212)(1,"span",213),c(2),h(3,"transloco"),O(4,Wn,3,3,"span",214),s(),n(5,"span",215)(6,"span"),c(7),s()()()),o&2){let e=f().$implicit,i=f(2);F("today",i.v7IsToday(e.key)),a(2),g(u(3,5,e.labelKey)),a(2),y(i.v7IsToday(e.key)?4:-1),a(3),g(i.pageData.data_timinigs[e.key])}}function Zn(o,_){if(o&1&&(n(0,"div",212)(1,"span",213),c(2),h(3,"transloco"),s(),n(4,"span",216),c(5),h(6,"transloco"),s()()),o&2){let e=f().$implicit,i=f(2);F("today",i.v7IsToday(e.key)),a(2),g(u(3,4,e.labelKey)),a(3),g(u(6,6,"doc_profile_page_v7.hours.label_closed"))}}function Jn(o,_){if(o&1&&O(0,Yn,8,7,"div",211)(1,Zn,7,8,"div",211),o&2){let e=_.$implicit,i=f(2);y(i.pageData.data_timinigs[e.key]?0:1)}}function Xn(o,_){if(o&1&&X(0,Jn,2,1,null,null,mo),o&2){let e=f();ee(e.v7Days)}}function ea(o,_){o&1&&(M(),n(0,"svg",82),v(1,"path",219)(2,"circle",220)(3,"circle",221),s())}function ta(o,_){o&1&&(M(),n(0,"svg",217),v(1,"circle",222)(2,"path",223)(3,"path",224)(4,"path",225),s())}function ia(o,_){o&1&&(M(),n(0,"svg",218),v(1,"rect",226)(2,"path",227)(3,"path",228),s())}function oa(o,_){o&1&&(M(),n(0,"svg",23),v(1,"path",24)(2,"circle",25),s())}function na(o,_){if(o&1&&(n(0,"span",210),O(1,ea,4,0,":svg:svg",82)(2,ta,5,0,":svg:svg",217)(3,ia,4,0,":svg:svg",218)(4,oa,3,0,":svg:svg",23),c(5),s()),o&2){let e,i=_.$implicit,t=f(2);a(),y((e=t.v7TransportIcon(i))==="car"?1:e==="pmr"?2:e==="transit"?3:4),a(4),q(" ",i," ")}}function aa(o,_){if(o&1&&(n(0,"div",66),X(1,na,6,2,"span",210,ge),s()),o&2){let e=f();a(),ee(e.v7TransportChips())}}function sa(o,_){if(o&1&&v(0,"iframe",231),o&2){let e=f(2);Se("title",e.v7DocFullName()),B("src",e.v7MapEmbedUrl(),Tt)}}function ra(o,_){if(o&1&&(n(0,"a",229),v(1,"img",230),s(),O(2,sa,1,2,"iframe",231),n(3,"a",232),M(),n(4,"svg",182),v(5,"path",183)(6,"path",184)(7,"path",185),s(),c(8),h(9,"transloco"),s()),o&2){let e=f();Se("title",e.pageData.clinic_address),B("href","https://www.google.com/maps?z=12&t=m&hl=fr&q="+e.pageData.clinic_latitude+","+e.pageData.clinic_longitude,ce),a(),Se("alt",e.pageData.clinic_address),B("src",e.v7StaticMapSrc,ce),a(),y(-1),a(),B("href","https://www.google.com/maps/dir/?api=1&destination="+e.pageData.clinic_latitude+","+e.pageData.clinic_longitude,ce),a(5),q(" ",u(9,7,"doc_profile_page_v7.address.btn_itinerary")," ")}}function la(o,_){if(o&1&&v(0,"p",67),o&2){let e=f();B("innerHtml",e.v7NearbySentence(),te)}}function ca(o,_){if(o&1&&(v(0,"p",67),h(1,"stripNbsp")),o&2){let e=f();B("innerHtml",u(1,1,e.pageData.doctor.practical_information),te)}}function da(o,_){if(o&1&&v(0,"img",17),o&2){let e=f();Ne("src","uploads/users/",e.pageData.doctor.avatar,"?ver=",e.pageData.random_ver,"",ce),Se("alt",e.v7DocFullName())}}function pa(o,_){if(o&1&&c(0),o&2){let e=f();q(" ",e.v7DocInitials()," ")}}function ha(o,_){if(o&1&&(n(0,"div",80),c(1),s()),o&2){let e=f();a(),q("RPPS ",e.pageData.doctor.rpps_number,"")}}function _a(o,_){if(o&1&&(n(0,"div",81),M(),n(1,"svg",72),v(2,"path",160),s(),c(3),s()),o&2){let e=f();a(3),g(e.getSectorLabel(e.pageData.doctor.sector))}}function ma(o,_){if(o&1&&v(0,"img",17),o&2){let e=f();Ne("src","uploads/users/",e.pageData.doctor.avatar,"?ver=",e.pageData.random_ver,"",ce),Se("alt",e.v7DocFullName())}}function ga(o,_){if(o&1&&(n(0,"span"),c(1),s()),o&2){let e=f();a(),g(e.v7DocInitials())}}function ua(o,_){if(o&1&&v(0,"span",233),o&2){let e=_.$implicit;F("done",e==="done")("active",e==="active")}}function fa(o,_){if(o&1){let e=R();n(0,"button",235),h(1,"transloco"),T("click",function(){let t=w(e).$implicit,r=f(2);return P(r.v7MiniGo(t.key))}),n(2,"b"),c(3),s(),n(4,"span"),c(5),s(),M(),n(6,"svg",236),v(7,"path",237)(8,"path",238),s()()}if(o&2){let e=_.$implicit;B("title",u(1,3,"doc_profile_page_v7.booking.tooltip_edit_choice")),a(3),g(e.label),a(2),g(e.value)}}function va(o,_){if(o&1&&(n(0,"div",97),X(1,fa,9,5,"button",234,mo),s()),o&2){let e=f();a(),ee(e.v7MiniRows())}}function xa(o,_){if(o&1){let e=R();n(0,"div",239),T("click",function(){let t=w(e).$implicit,r=f();return P(r.v7PickRealLocation(t))}),v(1,"span",240),n(2,"span")(3,"span",241),c(4),s()()()}if(o&2){let e=_.$implicit,i=f();F("sel",i.selection.selectedLocation===e),a(4),g(e.location_name)}}
2function ba(o,_){if(o&1&&(n(0,"div",242)(1,"div",243),M(),n(2,"svg",56),v(3,"circle",57)(4,"path",58),s(),A(),n(5,"div")(6,"strong"),c(7),h(8,"transloco"),s(),v(9,"p",163),s()()()),o&2){let e=f(2);a(7),g(u(8,2,"doc_profile_page_v7.booking.title_motif_note")),a(2),B("innerHtml",e.bookingRules.confirmNote,te)}}function ya(o,_){if(o&1){let e=R();n(0,"div",239),T("click",function(){let t=w(e).$implicit,r=f();return P(r.v7PickRealType(t))}),v(1,"span",240),n(2,"span")(3,"span",241),c(4),s()()(),O(5,ba,10,4,"div",242)}if(o&2){let e=_.$implicit,i=f();F("sel",i.selection.selectedType===e),a(4),g(e.type_name),a(),y(i.selection.selectedType===e&&i.bookingRules.confirmNote&&i.bookingRules.confirmNote!=""?5:-1)}}function ka(o,_){if(o&1&&(n(0,"div",242)(1,"div",243),M(),n(2,"svg",56),v(3,"circle",57)(4,"path",58),s(),A(),n(5,"div")(6,"strong"),c(7),h(8,"transloco"),s(),v(9,"p",163),s()()()),o&2){let e=f(3);a(7),g(u(8,2,"doc_profile_page_v7.booking.title_motif_note")),a(2),B("innerHtml",e.bookingRules.confirmNote,te)}}function Ca(o,_){if(o&1){let e=R();n(0,"div",239),T("click",function(){let t=w(e).$implicit,r=f(2);return P(r.v7PickRealType(t))}),v(1,"span",240),n(2,"span")(3,"span",241),c(4),s()()(),O(5,ka,10,4,"div",242)}if(o&2){let e=_.$implicit,i=f(2);F("sel",i.selection.selectedType===e),a(4),g(e.type_name),a(),y(i.selection.selectedType===e&&i.bookingRules.confirmNote&&i.bookingRules.confirmNote!=""?5:-1)}}function Sa(o,_){if(o&1&&(n(0,"div",244),c(1),h(2,"transloco"),s(),X(3,Ca,6,4,null,null,nt)),o&2){let e=f();a(),g(u(2,1,"doc_profile_page.available_offline")),a(2),ee(e.bookingRules.typesNotAllowed)}}function wa(o,_){if(o&1){let e=R();n(0,"div",99),c(1),h(2,"transloco"),s(),n(3,"p",112),c(4),h(5,"transloco"),s(),n(6,"v7-apt-question-form",113),T("reset",function(){w(e);let t=f();return P(t.resetQuestions())})("submit",function(){w(e);let t=f();return P(t.submitPreQuestions())}),s()}if(o&2){let e=f();a(),g(u(2,6,"doc_profile_page_v7.booking.question_form")),a(3),g(u(5,8,"doc_profile_page_v7.booking.text_form_sub")),a(2),B("form",e.aptQuestionForm)("schema",e.questionSchema())("is_file_uploaded",e.isFileUploaded)("fileUploadInProgress",e.questions.fileUploadInProgress)}}function Pa(o,_){o&1&&(n(0,"div",245),c(1),h(2,"transloco"),s()),o&2&&(a(),g(u(2,1,"common.loading_msg")))}function Ma(o,_){if(o&1&&(n(0,"span"),c(1),s()),o&2){let e=_.$implicit;a(),g(e)}}function Da(o,_){o&1&&v(0,"span",274)}function Oa(o,_){o&1&&v(0,"span",277)}function Ta(o,_){if(o&1){let e=R();n(0,"button",276),T("click",function(){w(e);let t=f().$implicit,r=f(4);return P(r.v7CalPick(t))}),c(1),O(2,Oa,1,0,"span",277),s()}if(o&2){let e=f().$implicit;F("past",e.past)("has",e.avail),B("disabled",e.past),a(),g(e.day),a(),y(e.avail?2:-1)}}function Ia(o,_){if(o&1&&O(0,Da,1,0,"span",274)(1,Ta,3,7,"button",275),o&2){let e=_.$implicit;y(e.day?1:0)}}function Ba(o,_){if(o&1){let e=R();n(0,"div",264)(1,"div",265)(2,"button",266),T("click",function(){w(e);let t=f(3);return P(t.v7CalMove(-1))}),M(),n(3,"svg",72),v(4,"path",73),s()(),A(),n(5,"span",267),c(6),s(),n(7,"button",268),T("click",function(){w(e);let t=f(3);return P(t.v7CalMove(1))}),M(),n(8,"svg",72),v(9,"path",258),s()()(),A(),n(10,"div",269),X(11,Ma,2,1,"span",null,ge),s(),n(13,"div",270),X(14,Ia,2,1,null,null,ge),s(),n(16,"div",271)(17,"span"),v(18,"span",272),c(19),h(20,"transloco"),s(),n(21,"span"),v(22,"span",273),c(23),h(24,"transloco"),s()()()}if(o&2){let e=f(3);a(6),g(e.v7CalTitle()),a(5),ee(e.v7CalDows()),a(3),ee(e.v7CalCells()),a(5),g(u(20,3,"doc_profile_page_v7.booking.label_cal_available")),a(4),g(u(24,5,"doc_profile_page_v7.booking.label_cal_unavailable"))}}function Ea(o,_){if(o&1){let e=R();n(0,"div",249)(1,"button",263),T("click",function(){w(e);let t=f(2);return P(t.v7CalToggle())}),M(),n(2,"svg",56),v(3,"rect",83)(4,"path",84),s(),c(5),h(6,"transloco"),s(),O(7,Ba,25,7,"div",264),s()}if(o&2){let e=f(2);a(5),g(u(6,2,"doc_profile_page_v7.booking.btn_pick_date")),a(2),y(e.v7CalOpen?7:-1)}}function Va(o,_){if(o&1&&(n(0,"div",251)(1,"span",278),v(2,"span",279),s()()),o&2){let e=f(2);a(2),B("innerHTML",e.holdState.selectedSlotMsgText,te)}}function Aa(o,_){if(o&1&&(n(0,"span",284),c(1),h(2,"transloco"),s()),o&2){let e=f(3);a(),g(le(2,1,"doc_profile_page_v7.booking.repl_standing_in_for",de(4,go,e.v7TitularName())))}}function La(o,_){if(o&1&&(n(0,"span",284),c(1),s()),o&2){let e=f(4);a(),g(e.selection.selectedClinicSentence)}}function Na(o,_){if(o&1&&(n(0,"div",280),M(),n(1,"svg",285),v(2,"circle",286)(3,"path",287),s(),A(),n(4,"span",278)(5,"span",288),c(6),s(),O(7,La,2,1,"span",284),s()()),o&2){let e=f(3);a(6),g(e.selection.selectedSlotLine),a(),y(e.selection.selectedClinicSentence!=""?7:-1)}}
2function qa(o,_){if(o&1&&(n(0,"div",252)(1,"div",280),M(),n(2,"svg",56),v(3,"circle",281)(4,"path",282),s(),A(),n(5,"span",278),c(6),h(7,"transloco"),n(8,"span",283),c(9),s(),O(10,Aa,3,6,"span",284),s()(),O(11,Na,8,2,"div",280),s()),o&2){let e=f(2);a(6),q("",u(7,4,"doc_profile_page_v7.booking.repl_assured_by")," "),a(3),g(e.holdState.replacementName!=""?e.holdState.replacementName:e.v7TitularName()),a(),y(e.holdState.replacementName!=""?10:-1),a(),y(e.selection.selectedSlotLine!=""?11:-1)}}function Fa(o,_){if(o&1&&(n(0,"div",253),M(),n(1,"svg",289),v(2,"circle",290)(3,"path",291),s(),A(),n(4,"span"),c(5),h(6,"transloco"),s()()),o&2){let e=f(2);a(5),g(le(6,1,"doc_profile_page_v7.booking.tz_notice",Rt(4,an,e.tzPatientLabel,e.tzClinicLabel)))}}function Ra(o,_){if(o&1){let e=R();n(0,"button",297),T("click",function(){let t=w(e).$implicit,r=f(4);return P(r.v7PickRealSlot(t))}),c(1),s()}if(o&2){let e=_.$implicit,i=f(4);F("sel",i.selection.selectedSlot&&i.selection.selectedSlot.slotid==e.slotid),a(),g(e.d_time||e.from_time)}}function za(o,_){if(o&1&&X(0,Ra,2,3,"button",296,en),o&2){let e=f().$implicit,i=f(2);ee(i.slotSearch.dayData[e])}}function Ha(o,_){o&1&&(n(0,"div",295),c(1,"\u2014"),s())}function Ua(o,_){if(o&1&&(n(0,"div")(1,"div",292)(2,"span",293),c(3),s(),n(4,"span",294),c(5),s()(),O(6,za,2,0)(7,Ha,2,0,"div",295),s()),o&2){let e=_.$implicit,i=f(2);a(3),g(i.slotSearch.dayName[e]),a(2),g(i.slotSearch.dayDate[e]),a(),y(i.slotSearch.dayData&&i.slotSearch.dayData[e]&&i.slotSearch.dayData[e].length?6:7)}}function ja(o,_){o&1&&(n(0,"div",55),c(1),h(2,"transloco"),s()),o&2&&(a(),g(u(2,1,"doc_profile_page.msg_booking_not_allowed_default")))}function Ga(o,_){if(o&1){let e=R();n(0,"div",259)(1,"span",298),c(2),h(3,"transloco"),s(),n(4,"button",299),T("click",function(){w(e);let t=f(2);return P(t.goToNextAvailDate())}),M(),n(5,"svg",82),v(6,"path",160),s(),c(7),s()()}if(o&2){let e=f(2);a(2),g(u(3,2,"doc_profile_page.next_available_date")),a(5),g(e.slotSearch.nextAvailDateDisplay)}}function Qa(o,_){o&1&&(n(0,"div",260)(1,"div",300),c(2),h(3,"transloco"),s(),n(4,"div",243),M(),n(5,"svg",56),v(6,"circle",57)(7,"path",58),s(),A(),n(8,"div")(9,"p"),c(10),h(11,"transloco"),s(),n(12,"p"),c(13),h(14,"transloco"),s()()()()),o&2&&(a(2),g(u(3,3,"doc_profile_page.no_slots_found")),a(8),g(u(11,5,"doc_profile_page.no_slots_available_now")),a(3),g(u(14,7,"doc_profile_page.thank_you_for_understanding")))}function Ka(o,_){if(o&1&&(n(0,"div",55),c(1),h(2,"transloco"),s()),o&2){let e=f(2);a(),g(le(2,1,"doc_profile_page.booking_limit_reached",de(4,sn,e.slotSearch.maxDateAllowed)))}}function $a(o,_){if(o&1&&(n(0,"div",55),c(1),h(2,"transloco"),s()),o&2){let e=f(2);a(),g(le(2,1,"doc_profile_page.booking_possible_after",de(4,rn,e.slotSearch.minDateAllowed)))}}function Wa(o,_){o&1&&(n(0,"div",55),c(1),h(2,"transloco"),s()),o&2&&(a(),g(u(2,1,"doc_profile_page.error_occurred")))}function Ya(o,_){o&1&&(n(0,"div",55),c(1),h(2,"transloco"),s()),o&2&&(a(),g(u(2,1,"doc_profile_page.change_date_message")))}function Za(o,_){o&1&&(n(0,"div",55),c(1),h(2,"transloco"),s()),o&2&&(a(),g(u(2,1,"doc_profile_page.contact_secretary")))}function Ja(o,_){if(o&1){let e=R();n(0,"button",301),T("click",function(){w(e);let t=f(2);return P(t.showUserLoginRegister(!0))}),c(1),h(2,"transloco"),s()}o&2&&(a(),g(u(2,1,"doc_profile_page.login_to_see_slots")))}function Xa(o,_){if(o&1){let e=R();n(0,"button",302),T("click",function(){w(e);let t=f(2);return P(t.addPatientToWaitingList())}),c(1),h(2,"transloco"),s()}o&2&&(a(),g(u(2,1,"doc_profile_page.join_waiting_list")))}function es(o,_){if(o&1){let e=R();O(0,Pa,3,3,"div",245),n(1,"div",246)(2,"div",247),c(3),h(4,"transloco"),s(),n(5,"div",248),O(6,Ea,8,4,"div",249),s()(),n(7,"div",250),O(8,Va,3,1,"div",251)(9,qa,12,6,"div",252)(10,Fa,7,7,"div",253),n(11,"div",254)(12,"button",255),h(13,"transloco"),T("click",function(){w(e);let t=f();return P(t.changePreWeek())}),M(),n(14,"svg",82),v(15,"path",73),s()(),A(),n(16,"div",256),X(17,Ua,8,3,"div",null,Et),s(),n(19,"button",257),h(20,"transloco"),T("click",function(){w(e);let t=f();return P(t.changeNextWeek())}),M(),n(21,"svg",82),v(22,"path",258),s()()()(),O(23,ja,3,3,"div",55)(24,Ga,8,4,"div",259)(25,Qa,15,9,"div",260)(26,Ka,3,6,"div",55)(27,$a,3,6,"div",55)(28,Wa,3,3,"div",55)(29,Ya,3,3,"div",55)(30,Za,3,3,"div",55)(31,Ja,3,3,"button",261)(32,Xa,3,3,"button",262)}if(o&2){let e=f();y(e.slotSearch.isLoadingSlot?0:-1),a(3),g(u(4,20,"doc_profile_page_v7.booking.question_slot")),a(3),y(e.bookingRules.allowPatientBooking&&e.selection.typeId>0?6:-1),a(2),y(e.holdState.selectedSlotMsgText!=""?8:-1),a(),y(e.selection.selectedSlot&&e.selection.selectedSlot.from_time&&e.v7TitularName()!=""?9:-1),a(),y(e.slotSearch.tzShifted?10:-1),a(2),xe("aria-label",u(13,22,"doc_profile_page.previous_availability")),a(4),Ce("grid-template-columns","repeat("+e.slotSearch.dayIndexes.length+", 1fr)"),a(),ee(e.slotSearch.dayIndexes),a(2),xe("aria-label",u(20,24,"doc_profile_page.next_availability")),a(4),y(e.slotSearch.totalSlotsDisplayed==0&&e.noSlotMsgBookingNotAllowed?23:-1),a(),y(e.slotSearch.showNextAvailDate&&e.slotSearch.totalSlotsDisplayed==0&&e.slotSearch.nextAvailDate!=""&&e.slotSearch.nextAvailDateDisplay!=""?24:-1),a(),y(e.slotSearch.isLoadingSlot==!1&&e.slotSearch.totalSlotsDisplayed==0&&!(e.slotSearch.showNextAvailDate&&e.slotSearch.nextAvailDate!=""&&e.slotSearch.nextAvailDateDisplay!="")?25:-1),a(),y(e.slotSearch.totalSlotsDisplayed==0&&e.slotSearch.maxDateAllowed!=""?26:-1),a(),y(e.slotSearch.totalSlotsDisplayed==0&&e.slotSearch.minDateAllowed!=""?27:-1),a(),y(e.slotSearch.totalSlotsDisplayed==0&&e.noSlotMsgSystemError?28:-1),a(),y(e.errorMsgNoSlot?29:-1),a(),y(e.labelForContactClinic?30:-1),a(),y(e.btnLoginToSeeSlots?31:-1),a(),y(e.slotSearch.totalSlotsDisplayed==0&&e.selection.typeId>0&&!e.btnLoginToSeeSlots&&e.bookingRules.allowWaitList&&!(e.slotSearch.nextAvailDate!=""&&e.slotSearch.nextAvailDateDisplay!="")?32:-1)}}function ts(o,_){if(o&1&&(n(0,"span",304),c(1),h(2,"transloco"),s()),o&2){let e=f().$implicit;a(),g(le(2,1,"doc_profile_page_v7.queue.text_spots",de(4,ln,e.available_spots)))}}function is(o,_){if(o&1){let e=R();n(0,"div",239),T("click",function(){let t=w(e).$implicit,r=f(2);return P(r.v7PickRealTiming(t))}),v(1,"span",240),n(2,"span")(3,"span",241),c(4),s(),O(5,ts,3,6,"span",304),s()()}if(o&2){let e=_.$implicit,i=f(2);F("sel",i.selection.selectedTiming===e.timing_datails),a(4),g(e.timing_text),a(),y(e.available_spots?5:-1)}}function os(o,_){if(o&1&&(n(0,"div",303),c(1),h(2,"transloco"),s(),X(3,is,6,4,"div",101,ge)),o&2){let e=f();a(),g(u(2,1,"doc_profile_page_v7.queue.label_pick")),a(2),ee(e.availTimings)}}
2function ns(o,_){if(o&1&&(n(0,"div",305)(1,"div",243),M(),n(2,"svg",56),v(3,"circle",57)(4,"path",58),s(),A(),n(5,"div")(6,"strong"),c(7),h(8,"transloco"),s(),v(9,"p",163),s()()()),o&2){let e=f(2);a(7),g(u(8,2,"doc_profile_page_v7.booking.title_motif_note")),a(2),B("innerHtml",e.bookingRules.confirmNote,te)}}function as(o,_){if(o&1&&O(0,ns,10,4,"div",305),o&2){let e=f();y(e.bookingRules.confirmNote&&e.bookingRules.confirmNote!=""&&e.v7bk.mode!=="file"?0:-1)}}function ss(o,_){if(o&1){let e=R();n(0,"label",306)(1,"input",307),T("ngModelChange",function(t){w(e);let r=f(2);return P(r.selection.receivePreBookNotification=t)}),s(),n(2,"span"),c(3),h(4,"transloco"),n(5,"span",308),c(6),h(7,"transloco"),s()()()}if(o&2){let e=f(2);a(),B("ngModel",e.selection.receivePreBookNotification)("ngModelOptions",ct(8,uo)),a(2),q(" ",u(4,4,"doc_profile_page_v7.booking.label_prebook_optin")," "),a(3),g(u(7,6,"doc_profile_page_v7.booking.text_prebook_help"))}}function rs(o,_){if(o&1&&O(0,ss,8,9,"label",306),o&2){let e=f();y(e.allowPrebook()?0:-1)}}function ls(o,_){if(o&1){let e=R();n(0,"v7-review-confirm",309),T("ssnChange",function(t){w(e);let r=f();return P(r.onSsnChanged(t))}),qt("acceptReplacementInfoChange",function(t){w(e);let r=f();return lt(r.selection.acceptReplacementInfo,t)||(r.selection.acceptReplacementInfo=t),P(t)})("acceptConsentChange",function(t){w(e);let r=f();return lt(r.selection.acceptConsent,t)||(r.selection.acceptConsent=t),P(t)}),T("payClicked",function(){w(e);let t=f();return P(t.onSubmitPayButton())})("confirmRdv",function(){w(e);let t=f();return P(t.bookappointment())})("confirmLogos",function(){w(e);let t=f();return P(t.bookLogosAppointment(!1))})("confirmClikolist",function(){w(e);let t=f();return P(t.bookClikoListAppointment(0))}),s()}if(o&2){let e=f(),i=Te(259),t=Te(261);B("typeOfBooking",e.selection.typeOfBooking)("doctor",e.pageData.doctor)("replacementInfo",e.holdState.replacementInfo)("replacementName",e.holdState.replacementName)("motifInfoTpl",i)("extraConsentTpl",t)("selectedLocation",e.selection.selectedLocation)("selectedType",e.selection.selectedType)("selectedDateDisplay",e.selection.selectedDateDisplay)("selectedDateShortDisplay",e.selection.selectedDateShortDisplay)("selectedTimeDisplay",e.selection.selectedTimeDisplay)("selectedClinicDisplay",e.selection.selectedClinicDisplay)("selectedPatient",e.selection.selectedPatient)("selectedTiming",e.selection.selectedTiming)("formCompleted",e.v7FormCompleted())("patientNote",e.selection.appointmentNote||"")("queueDayLabel",e.v7QueueToday)("consentToBook",e.bookingRules.consentToBook)("isSsnRequired",e.bookingRules.isSsnRequired)("ssn",(e.selection.selectedPatient==null?null:e.selection.selectedPatient.ssn)||"")("patientBlocked",e.patientAuth.patientBlocked)("isMultipleAptAllowed",e.patientAuth.isMultipleAptAllowed)("showPaymentButton",e.payment.showPaymentButton)("isPaymentComplete",e.payment.isPaymentComplete)("isLogosPro",e.isLogosPro)("paymentAmount",e.payment.paymentAmount),Nt("acceptReplacementInfo",e.selection.acceptReplacementInfo)("acceptConsent",e.selection.acceptConsent)}}function cs(o,_){if(o&1&&(n(0,"div",310)(1,"div",311)(2,"div",312),M(),n(3,"svg",313),v(4,"path",314),s()(),A(),n(5,"h3",315),c(6,"Rendez-vous confirm\xE9\xA0!"),s(),n(7,"p",316),c(8,"Un e-mail de confirmation vous a \xE9t\xE9 envoy\xE9."),v(9,"br"),c(10,"Vous le retrouvez dans "),n(11,"strong"),c(12,"Mes consultations"),s(),c(13,"."),s(),v(14,"div",317),n(15,"a",318),M(),n(16,"svg",45),v(17,"rect",319)(18,"rect",320)(19,"rect",321)(20,"rect",322),s(),c(21,"Acc\xE9der \xE0 mon espace patient"),s(),A(),n(22,"div",323)(23,"div",324),c(24,"Retrouvez et g\xE9rez vos rendez-vous dans l'application"),s(),n(25,"div",325)(26,"a",326),M(),n(27,"svg",327),v(28,"path",328),s(),A(),n(29,"span",329)(30,"small"),c(31,"T\xE9l\xE9charger sur"),s(),n(32,"strong"),c(33,"App Store"),s()()(),n(34,"a",330),M(),n(35,"svg",327),v(36,"path",331),s(),A(),n(37,"span",329)(38,"small"),c(39,"Disponible sur"),s(),n(40,"strong"),c(41,"Google Play"),s()()()()(),v(42,"div",332),s()()),o&2){let e=f();F("on",e.v7bk.cur==="success")}}function ds(o,_){o&1&&(c(0),h(1,"transloco")),o&2&&q(" \xB7 ",u(1,1,"doc_profile_page_v7.sticky.label_queue_today"),"")}function ps(o,_){if(o&1){let e=R();n(0,"button",333),T("click",function(){w(e);let t=f();return P(t.v7EnterRdv("file"))}),c(1),h(2,"transloco"),s()}o&2&&(a(),g(u(2,1,"doc_profile_page_v7.sticky.btn_queue")))}function hs(o,_){if(o&1&&(n(0,"a",334),c(1),h(2,"transloco"),s()),o&2){let e=f(2);B("href",e.xploreUrl,ce),a(),g(u(2,2,"doc_profile_page_v7.sticky.btn_book"))}}function _s(o,_){if(o&1){let e=R();n(0,"button",336),T("click",function(){w(e);let t=f(2);return P(t.v7EnterRdv("rdv"))}),c(1),h(2,"transloco"),s()}o&2&&(a(),g(u(2,1,"doc_profile_page_v7.sticky.btn_book")))}function ms(o,_){if(o&1&&O(0,hs,3,4,"a",334)(1,_s,3,3,"button",335),o&2){let e=f();y(e.xploreUrl!=""?0:1)}}var gs=["*"];function us(){return{blockAptId:0,holdSlotId:0,timerStarted:!1,timeLeft:0,selectedSlotMsgText:"",replacementInfo:"",replacementName:""}}function fs(){return{requireLogin:!1,allowPatientBooking:!1,allowWaitList:!1,onlyHeadCanBook:!1,allowLiteBooking:!1,
2consentToBook:!1,isSsnRequired:!1,needPatHistory:!1,needPatHistoryAnyMember:!1,onlyNewPatient:!1,onlyNewPatientAnyMember:!1,needCnfFromPatient:!1,confirmNote:"",paymentProvider:"",callToNextDates:!0,types:[],typesNotAllowed:[],workLocations:[],isLocationNeeded:!1}}function vs(){return{typeOfBooking:"",selectedLocation:{},workLocationId:0,selectedType:{},typeId:0,selectedSlot:{},selectedPatient:null,selectedTiming:null,appointmentNote:"",receivePreBookNotification:!1,acceptReplacementInfo:!1,acceptConsent:!1,selectedDateDisplay:"",selectedClinicDisplay:"",selectedSlotLine:"",selectedClinicSentence:"",selectedTimeDisplay:"",selectedSlotChipDisplay:"",selectedDateShortDisplay:""}}function xs(){return{searchStart:x.now().toFormat("yyyy-MM-dd"),searchEnd:x.now().plus({days:3}).toFormat("yyyy-MM-dd"),slotFor:"next",getNextAvailDate:1,nextAvailDate:"",nextAvailDateDisplay:"",showNextAvailDate:!1,maxDateAllowed:"",minDateAllowed:"",docAvailStartDate:"",docAvailEndDate:"",dayDate:[],dayName:[],dayData:[],totalSlotsDisplayed:0,isLoadingSlot:!1,clinicTimezone:"",tzShifted:!1,dayIndexes:[0,1,2]}}function bs(){return{appointmentQuestions:[],answersFormData:new FormData,answersData:void 0,rawAnswers:void 0,isConditionsValidated:!1,isConditionsRequired:!1,isDependedSlot:!1,lowerRangeDays:0,higherRangeDays:0,dateMandatoryValue:"",files:[],fileIds:[],uploadedIds:{},fileUploadInProgress:!1}}function ys(){return{user:null,isPatLogin:!1,patients:[],patHistory:!1,patientBlocked:!1,isMultipleAptAllowed:!0,showLockedMsg:!1,lockedMsg:""}}function ks(){return{showPaymentButton:!1,paymentAmount:0,isPaymentComplete:!1,redirectUrl:"",transactionId:""}}var fo=(()=>{class o{constructor(e,i,t,r,l,p,m,d,b,k,S){this.authService=e,this.metaService=i,this.titleService=t,this._matSnackBar=r,this.route=l,this.router=p,this.fb=m,this.translocoService=d,this._matDialog=b,this._dateAdapter=k,this._calendarService=S,this._changeDetectorRef=J(qe),this.ngZone=J(Dt),this.apiService=J(ro),this.loader=J(et),this.browserStorage=J(lo),this.renderer=J(It),this.document=J(Ht),this.destroyRef=J(Mt),this.nav=J(ii),this.visitorUuid="",this.bookingUuid="",this.APP_HOME=Ve.APP_HOME,this.APP_ORIGIN=Ve.APP_HOME.replace(/\/+$/,""),this.patientAuth=ys(),this.isLogosPro=!1,this.logosId="",this.isDesmosPro=!1,this.urlFetchLogosSchedules="api/fetchSchedules",this.urlBookLiteAppointment="api/patBookLiteAppoinment",this.country="",this.wizardStage=ne(ie.Idle),this.isBookingStarted=pt(()=>this.wizardStage()!==ie.Idle),this.minDate=new Date,this.maxDate=new Date,this._datesToHighlight=[],this.startDate=x.now(),this.calendarNavHeader=Cs,this.pageData={},this.extProQueryParam=!1,this.isExternalProfile=!1,this.hasInvited=!1,this.externalProfileData={title:"",first_name:"",last_name:"",specialty:"",clinic_name:"",address_number:"",address_line_1:"",address_road_name:"",postal_code:"",city:"",country:"",clinic_phone:"",clinic_phone_2:"",clinic_mail:"",activity_sector:"",role:"",rpps:"",cta_url:""},this.menuServices=[],this.expandedServices=new Set,this.schemaScriptEl=null,this.canonicalLinkEl=null,this.skipReloadForDocUrl="",this.slotHoldSeconds=po,this.UserGroup=oe,this.showRequestBtn=!1,this.showClikolistBookButton=!1,this.showNormalBookButton=!1,this.xploreUrl="",this.selection=vs(),this.doctorId=0,this.bookingRules=fs(),this.questions=bs(),this.slotSearch=xs(),this.noSlotMsgBookingNotAllowed=!1,this.noSlotMsgAllSlotsFull=!1,this.noSlotMsgSystemError=!1,this.errorMsgNoSlot=!1,this.labelForContactClinic=!1,this.btnLoginToSeeSlots=!1,this.holdState=us(),this.payment=ks(),this.liteBookingData=null,this.showLiteBookingOption=ne(!1),this.selectedTabIndex=0,this.hasQuestions=ne(!1),this.preQuestionsRequired=ne(!1),this.postQuestionsRequired=ne(!1),this.showInfoMsg=ne(!1),this.allowInfoByPat=ne(!1),this.allowPrebook=ne(!1),this.patientSelectedLiteBooking=ne(!1),this.availTimings=[],this.totalClikolistSlotsDisplayed=0,this.patientSelectedClikolistBooking=ne(!1),this.allowClikolistLiteBooking=!1,this.steps=pt(()=>[{id:0,label:"1",visible:!0,tpl:"step1Tpl"},{id:1,label:"2",visible:!0,tpl:"step2Tpl"},{id:2,label:"3",visible:!0,tpl:"step3Tpl"},{id:3,label:"4",visible:!this.patientSelectedClikolistBooking()&&!this.patientSelectedLiteBooking()&&this.postQuestionsRequired(),tpl:"step4Tpl"},{id:4,label:"5",visible:!this.patientSelectedClikolistBooking()&&!this.patientSelectedLiteBooking()&&this.showInfoMsg(
2),tpl:"step5Tpl"},{id:5,label:"6",visible:!this.patientSelectedClikolistBooking()&&!this.patientSelectedLiteBooking()&&(this.allowInfoByPat()||this.allowPrebook()),tpl:"step6Tpl"},{id:6,label:"7",visible:!this.patientSelectedLiteBooking(),tpl:"step7Tpl"}].filter(D=>D.visible)),this.selectedIndex=ne(0),this.questionSchema=ne([]),this.typeOfBookingPassed="",this.isPreview=!1,this.typeIDPassed=0,this.timingIDPassed="",this.trackById=(D,I)=>I.id,this.patientZone=(()=>{try{let D=Intl.DateTimeFormat().resolvedOptions().timeZone;if(!D)return"";let I=Intl.DateTimeFormat("en-US",{timeZone:D}).resolvedOptions().timeZone||D;return mt.isValidZone(I)?I:""}catch{return""}})(),this.isFileUploaded=D=>!!this.questions.uploadedIds?.[D],this.paymentObj={},this.nextDates=[],this.v7Days=[{key:"Monday",labelKey:"doc_profile_page.hours_monday"},{key:"Tuesday",labelKey:"doc_profile_page.hours_tuesday"},{key:"Wednesday",labelKey:"doc_profile_page.hours_wednesday"},{key:"Thursday",labelKey:"doc_profile_page.hours_thursday"},{key:"Friday",labelKey:"doc_profile_page.hours_friday"},{key:"Saturday",labelKey:"doc_profile_page.hours_saturday"},{key:"Sunday",labelKey:"doc_profile_page.hours_sunday"}],this.v7PayChips=[],this.v7PayChipsKey="",this.v7TransChips=[],this.v7TransChipsKey="",this.v7NearbyRef=null,this.v7NearbyHtml="",this.v7NextAvail=null,this.v7Tab="apropos",this.v7SecOpen={},this.v7FtOpen={},this.v7SpyLock=0,this.v7SpySections=["apropos","tarifs","horaires","adresse"],this.v7BarShow=!1,this.v7CalOpen=!1,this.v7CalY=0,this.v7CalM=0,this.v7CalDates=[],this.v7CalCellsCache=[],this.v7CalCellsKey="",this.v7Sanitizer=J(Zt),this.v7MapUrl=null,this.v7MapUrlKey="",this.v7StepFlagsSync=ht(()=>{let D=!this.patientSelectedClikolistBooking()&&!this.patientSelectedLiteBooking(),I=D&&this.postQuestionsRequired(),L=D&&this.allowInfoByPat(),N=!this.patientSelectedLiteBooking();(this.v7Cfg.formulaire!==I||this.v7Cfg.raison!==L||this.v7Cfg.confirm!==N)&&(this.v7Cfg.formulaire=I,this.v7Cfg.raison=L,this.v7Cfg.confirm=N,this.v7bkBuildSteps(),this.v7Steps.indexOf(this.v7bk.cur)<0&&(this.v7bk.cur=this.v7Steps[0]),this.v7bkSync())}),this.v7bk={cur:"motif",mode:null},this.v7Cfg={lieu:!1,formulaire:!1,raison:!1,confirm:!0},this.v7Steps=[],this.v7ConsOpen=!1,this.v7PrevTitle="",this.isDataLoadedSubject=new Ct(!1),this.isDataLoaded$=this.isDataLoadedSubject.asObservable(),this.visitorUuid=gt(),this.authService.currentUserValue&&this.authService.currentUserValue.id&&co.some(D=>D==this.authService.currentUserValue.group_id)&&(this.patientAuth.isPatLogin=!0),this.authService.currentUserValue&&(this.patientAuth.user=this.authService.currentUserValue),ht(()=>{let D=this.steps().length;this.selectedIndex()>=D&&this.selectedIndex.set(D-1)}),this.liteBookingForm=this.fb.group({lite_first_name:[null,Me.required],lite_last_name:[null,Me.required],lite_dob:[null,Me.required],lite_ssn:[null],lite_phone:[null,Me.required],lite_email:[null],lite_gender:[null,Me.required]}),this.aptQuestionForm=this.fb.group({}),this.nextDateStart=x.now().startOf("month").toFormat("yyyy-MM-dd"),this.nextDateEnd=x.now().endOf("month").toFormat("yyyy-MM-dd"),this.updateDateClass()}get datesToHighlight(){return this._datesToHighlight}set datesToHighlight(e){this._datesToHighlight=e,this.calendarNext&&this.calendarNext.updateTodaysDate(),this.updateDateClass()}get lookup(){return{step1Tpl:this.step1Tpl,step2Tpl:this.step2Tpl,step3Tpl:this.step3Tpl,step4Tpl:this.step4Tpl,step5Tpl:this.step5Tpl,step6Tpl:this.step6Tpl,step7Tpl:this.step7Tpl}}getSectorLabel(e){let i=this.translocoService.getActiveLang(),t=Wi.find(r=>r.key===e);return t?i==="ar"?t.name_ar:i==="en"?t.name_en:t.name_fr:e}ngOnInit(){this.patientAuth.lockedMsg=this.translocoService.translate("doc_profile_page.patient_locked_booking_error_msg_3"),this.isLogosPro=!1,this.logosId="",this.isDesmosPro=!1,this.route.queryParams.pipe(Be(this.destroyRef)).subscribe(e=>{this.typeOfBookingPassed=e.t,this.isPreview=e.preview==="true",this.typeIDPassed=e.tid?parseInt(e.tid):0,this.timingIDPassed=e.timing?e.timing:"",this.extProQueryParam=e.extpro==="1"}
2),this.route.snapshot.data.r=="redirect"&&this.route.params.pipe(Be(this.destroyRef)).subscribe(e=>{let i=e.doc_url;this.redirectToProPage(i)}),this.route.params.pipe(Be(this.destroyRef)).subscribe(e=>{if(this.country=e.country||"",this.docUrl=e.doc_url,this.skipReloadForDocUrl!=""&&this.skipReloadForDocUrl==this.docUrl){this.skipReloadForDocUrl="";return}this.authService.getCSRFTokenForHome().subscribe({next:i=>{this.loadDataForPage(this.docUrl,this.country)},error:()=>{this.notyMessageError(this.translocoService.translate("common.something_went_wrong_try_again"),"")}})})}ngAfterViewInit(){this._calendarService.isCloseCalander.pipe(Be(this.destroyRef)).subscribe(e=>{e&&this.handleSlotCalendarNavigation(e)}),this.v7SpyInit(),this.v7BarInit(),this.v7ChromeBoot()}ngOnDestroy(){this.removeSchemaScript(),this.removeCanonicalLink()}isStepValid(e){let i=this.allowInfoByPat(),t=!1;switch(e){case ue.ModeAndType:t=!0,this.selection.typeOfBooking==""&&(t=!1),this.selection.typeOfBooking=="rdv"&&(this.bookingRules.isLocationNeeded&&(!this.selection.workLocationId||this.selection.workLocationId==0)&&(t=!1),this.selection.typeId==0&&(t=!1)),this.selection.typeOfBooking=="clikolist"&&this.showClikolistBookButton&&(t=!0);break;case ue.SlotOrTiming:t=!0,this.selection.typeOfBooking=="clikolist"?this.selection.selectedTiming&&this.selection.selectedTiming.id&&this.totalClikolistSlotsDisplayed>0?t=!0:t=!1:(this.slotSearch.totalSlotsDisplayed==0&&(t=!1),this.questions.isConditionsRequired&&this.questions.isDependedSlot&&!this.questions.isConditionsValidated&&(t=!1),(!this.selection.selectedSlot||!this.selection.selectedSlot.from_time)&&(t=!1));break;case ue.Auth:t=!1,this.selection.typeOfBooking=="clikolist"?this.selection.selectedPatient?this.patientAuth.patientBlocked==!0||this.checkIfPatientLocked()==!0?t=!1:t=!0:this.liteBookingData&&(t=!0):this.selection.selectedSlot&&this.patientAuth.user&&this.selection.selectedSlot.from_time&&this.selection.selectedPatient?this.patientAuth.patientBlocked==!0||this.patientAuth.isMultipleAptAllowed==!1||this.checkIfPatientLocked()==!0?t=!1:t=!0:this.liteBookingData&&(t=!0);break;case ue.PostQuestions:t=!0,this.questions.isConditionsRequired&&!this.questions.isDependedSlot?t=this.questions.isConditionsValidated:this.bookingRules.confirmNote&&this.bookingRules.confirmNote!=""?t=!0:i==!0&&(t=this.hasRequiredPatientNote());break;case ue.ProInfo:t=!0,this.bookingRules.confirmNote&&this.bookingRules.confirmNote!=""?t=!0:i==!0&&(t=this.hasRequiredPatientNote());break;case ue.PatientNote:t=!0,i==!0&&(t=this.hasRequiredPatientNote());break;case ue.ReviewConfirm:t=!0;break;default:t=!1;break}return t}onSsnChanged(e){this.selection.selectedPatient&&(this.selection.selectedPatient.ssn=e)}hasRequiredPatientNote(){return(this.selection.appointmentNote?this.selection.appointmentNote:"").trim()!=""}back(){let e=this.selectedIndex();if(e==0){this.wizardStage.set(ie.Idle),this.selectedTabIndex=0;return}e==1&&this.clearHoldSlot("date_change"),this.selectedIndex.update(i=>Math.max(0,i-1)),this.scrollToStepper(),this._changeDetectorRef.markForCheck()}canContinue(){return this.isStepValid(this.steps()[this.selectedIndex()]?.id)}scrollToStepper(){let e=this.stepperAnchor?.nativeElement;if(!e)return;let t=window.innerWidth<640?100:0,r=e.getBoundingClientRect().top+window.scrollY+t;window.scrollTo({top:r,behavior:"smooth"})}goTo(e,i=!0){this.selectedIndex.set(e),this.stepper&&(this.stepper.selectedIndex=e),i&&this.scrollToStepper(),this._changeDetectorRef.markForCheck()}onContinue(){let e=this.selectedIndex();if(this.isStepValid(this.steps()[e]?.id))if(this.steps()[e+1]?.id===ue.ReviewConfirm&&this.wizardStage.set(ie.Reviewed),e==0)this.preTypeChangeTriggered(),this.goTo(e+1);else if(e==2){if(this.wizardStage.set(ie.Identified),!this.patientSelectedLiteBooking()&&this.questions.isConditionsRequired&&this.postQuestionsRequired()){let i=this.questionSchema();i&&(0,Q.isArray)(i)&&i.length>0||this.showAptConditionsModal()}this.goTo(e+1)}else this.goTo(e+1);this._changeDetectorRef.markForCheck()}goToStep(e){this.stepper&&(this.stepper.steps.forEach((i,t)=>i.completed=t<e),this.selectedIndex.set(e),this.stepper.selectedIndex=e,this._changeDetectorRef.markForCheck())}resetBookingProcess(){this.selection.typeOfBooking="",this.selectedTabIndex=0,this.selectedIndex.set(0),this.wizardStage.set(ie.Idle),this.patientSelectedClikolistBooking.set(!1),this.patientSelectedLiteBooking.set(!1),this.showLiteBookingOption.set(!1),this.selection.selectedTiming=null,this.resetConditions(),this.selection.selectedType=null,this.selection.typeId=0,this.hideNoSlotDivs(),this.selection.selectedLocation={},this.selection.workLocationId=0,this.availTimings=[],this.cleanSelectedTimingMsg()}hideNoSlotDivs(){this.noSlotMsgBookingNotAllowed=!1,this.noSlotMsgAllSlotsFull=!1,this.noSlotMsgSystemError=!1,this.errorMsgNoSlot=!1,this.labelForContactClinic=!1,this.btnLoginToSeeSlots=!1,this.slotSearch.totalSlotsDisplayed=0,this.cleanSlotMsg()}loadDataForPage(e,i){this.showRequestBtn=!1,this.showClikolistBookButton=!1,this.showNormalBookButton=!1,this.xploreUrl="",this.allowClikolistLiteBooking=!1,this.totalClikolistSlotsDisplayed=0,this.isLogosPro=!1,this.logosId="",this.isDesmosPro=!1,this.allowInfoByPat.set(!1),this.removeSchemaScript(),this.removeCanonicalLink(),this.resetBookingProcess();let t=e&&e!=""?e:"";if(t!=""){this.isDataLoadedSubject.next(!1);let r={doc_url:t,country:i,isPreview:this.isPreview?1:0,extPro:this.extProQueryParam?1:0};this.apiService.loadDataForPage(r).subscribe({next:l=>{if(l&&l.status&&l.status=="success"){if(this.pageData=l,this.isExternalProfile=l.is_external_pro===1,this.isExternalProfile){this.externalProfileData=l,this.hasInvited=!!this.browserStorage.getItem(`ext_pro_invite_${l.id}`);
2let b=[l.title,l.last_name,l.first_name].filter(Boolean).join(" "),k=[b,l.specialty,"clikOdoc"].filter(Boolean).join(" - "),S=[b,l.specialty].filter(Boolean).join(", "),D=[l.clinic_name,l.city].filter(Boolean).join(", "),I=[S,D].filter(Boolean).join(" - ")+". Adresse et coordonn\xE9es sur clikOdoc.";this.titleService.setTitle(k),this.metaService.updateTag({name:"title",content:k}),this.metaService.updateTag({name:"description",content:I});let L=l.slug&&l.slug!=""?l.slug:this.docUrl;this.setCanonicalLink(this.APP_ORIGIN+"/professionnel/"+L+"?extpro=1"),this._changeDetectorRef.markForCheck(),this.isDataLoadedSubject.next(!0);return}if(!(l.doctor&&l.docid)){this.isPreview?this.notyMessageError(this.translocoService.translate("common.something_went_wrong_try_again"),""):(this.router.navigate(["/home"],{queryParams:{}}),this.notyMessageError(this.translocoService.translate("common.something_went_wrong_try_again"),""));return}if(this.canonicaliseProUrl(this.pageData.doctor.doc_url),this.showRequestBtn=!!(this.pageData.doctor&&this.pageData.doctor.show_request_btn==1),this.showClikolistBookButton=!!l.show_clikolist_book_button,this.showNormalBookButton=!!l.show_normal_book_button,this.xploreUrl=l.xplore_url??"",this.allowClikolistLiteBooking=!!(l.allow_clikolist_lite_booking&&l.allow_clikolist_lite_booking==1),this.v7FetchNextAvail(l.docid),this.menuServices=l.menu_services&&(0,Q.isArray)(l.menu_services)?l.menu_services.filter(b=>b.is_public==1):[],this.availTimings=l.avail_timings&&(0,Q.isArray)(l.avail_timings)?l.avail_timings:[],this.availTimings&&this.availTimings.length>0)for(let b=0;b<this.availTimings.length;b++){let k=this.availTimings[b];k.available_spots&&parseInt(k.available_spots)>0&&(this.totalClikolistSlotsDisplayed+=parseInt(k.available_spots))}l.is_logos_pro&&l.is_logos_pro==1&&l.logos_id&&l.logos_id!=""&&(this.isLogosPro=!0,this.logosId=l.logos_id),this.isDesmosPro=l.is_desmos_pro&&l.is_desmos_pro==1;let p=!!(this.pageData&&this.pageData.doctor&&this.pageData.doctor.allow_info_by_pat==1);this.allowInfoByPat.set(p);let m=this.getSchemaJSON(this.pageData);m&&m.name&&m.name!=""&&this.injectSchemaScript(m);let d=this.pageData.doctor.title+" "+this.pageData.doctor.last_name+" "+this.pageData.doctor.first_name;if(this.pageData&&this.pageData.page_seo_title&&this.pageData.page_seo_title!="")this.titleService.setTitle(this.pageData.page_seo_title),this.metaService.updateTag({name:"title",content:this.pageData.page_seo_title});else{let b=d+" - clikOdoc";this.titleService.setTitle(b),this.metaService.updateTag({name:"title",content:b})}if(this.pageData&&this.pageData.page_seo_description&&this.pageData.page_seo_description!=""&&this.metaService.updateTag({name:"description",content:this.pageData.page_seo_description}),this.doctorId=parseInt(this.pageData.docid),this.doctorUuid=l.doctor_uuid,this.setUpDates(),this.setupUrls(),this.isLogosPro==!1){if(this.bookingRules.callToNextDates=!(this.pageData&&this.pageData.callToNextDates==0),this.bookingRules.workLocations=this.pageData.work_locations&&(0,Q.isArray)(this.pageData.work_locations)&&this.pageData.work_locations.length>0?this.pageData.work_locations:[],this.bookingRules.isLocationNeeded=!!(this.pageData.work_locations&&(0,Q.isArray)(this.pageData.work_locations)&&this.pageData.work_locations.length>0),this.bookingRules.types=this.pageData.types&&(0,Q.isArray)(this.pageData.types)&&this.pageData.types.length>0?this.pageData.types:[],this.bookingRules.typesNotAllowed=this.pageData.types_not_allowed&&(0,Q.isArray)(this.pageData.types_not_allowed)&&this.pageData.types_not_allowed.length>0?this.pageData.types_not_allowed:[],this.bookingRules.workLocations.length==1){if(this.typeIDPassed&&this.typeIDPassed!=0){let b=(0,Q.cloneDeep)(this.typeIDPassed);this.typeIDPassed=0;let k=this.bookingRules.types.find(S=>S.id==b);this.selection.selectedType=k||{},this.selection.typeId=this.selection.selectedType&&this.selection.selectedType.id?this.selection.selectedType.id:0}this.onLocationChanged(this.bookingRules.workLocations[0])}else if(this.typeIDPassed&&this.typeIDPassed!=0){let b=(0,Q.cloneDeep)(this.typeIDPassed);this.typeIDPassed=0;let k=this.bookingRules.types.find(S=>S.id==b);k&&this.onTypeChanged(k)}this.timingIDPassed&&this.timingIDPassed!=""&&this.showClikolistBookButton&&this.goToDirectClikolistBooking()}else this.bookingRules.callToNextDates=!1,this.bookingRules.workLocations=[],this.bookingRules.isLocationNeeded=!1,this.bookingRules.types=[],this.bookingRules.typesNotAllowed=[],this.doctorId=parseInt(this.pageData.docid),this.loadLogosSchedules();this.typeOfBookingPassed&&this.typeOfBookingPassed!=""&&this.typeOfBookingPassed=="rdv"?this.v7EnterRdv("rdv"):this.typeOfBookingPassed&&this.typeOfBookingPassed!=""&&this.typeOfBookingPassed=="clikolist"&&this.showClikolistBookButton&&(this.isBookingStarted()||this.v7EnterRdv("file")),this._changeDetectorRef.markForCheck(),this.recordEvent("step_1",0),this.isDataLoadedSubject.next(!0)}else l&&l.status&&l.status=="redirect"&&l.redirect_url&&l.redirect_url!=""?this.isPreview||window.location.replace(l.redirect_url):this.isPreview?this.notyMessageError(this.translocoService.translate("common.something_went_wrong_tr
2y_again"),""):(this.router.navigate(["/home"],{queryParams:{}}),this.notyMessageError(this.translocoService.translate("common.something_went_wrong_try_again"),""))},error:()=>{this.isPreview?this.notyMessageError(this.translocoService.translate("common.something_went_wrong_try_again"),""):(this.router.navigate(["/home"],{queryParams:{}}),this.notyMessageError(this.translocoService.translate("common.something_went_wrong_try_again"),""))}})}else this.router.navigate(["/home"],{queryParams:{}}),this.notyMessageError(this.translocoService.translate("common.something_went_wrong_try_again"),"")}onLocationChanged(e){this.selection.selectedLocation=e,this.selection.workLocationId=e.id,this.slotSearch.getNextAvailDate=1,this.selection.typeId&&this.selection.typeId!=0?this.preTypeChangeTriggered():(this.selection.selectedType=null,this.selection.typeId=0,this.resetConditions(),this.hideNoSlotDivs())}resetConditions(){this.aptQuestionForm.reset({}),this.questions.answersFormData=new FormData,this.questions.answersData=null,this.questions.appointmentQuestions=[],this.questions.isConditionsValidated=!1,this.questions.dateMandatoryValue="",this.questions.lowerRangeDays=0,this.questions.higherRangeDays=0,this.questions.isDependedSlot=!1,this.questions.rawAnswers=null,this.preQuestionsRequired.set(!1),this.postQuestionsRequired.set(!1),this.hasQuestions.set(!1)}onTypeChanged(e){e&&e.id?(this.selection.selectedType=e,this.selection.typeId=e.id,this.isLogosPro==!0?(this.slotSearch.getNextAvailDate=0,this.preTypeChangeTriggered()):(this.slotSearch.getNextAvailDate=1,this.preTypeChangeTriggered())):(this.selection.selectedType=null,this.selection.typeId=0)}preTypeChangeTriggered(){this.isLogosPro==!0&&this.logosId&&this.logosId!=""?this.typeChangeTriggeredLogos():this.typeChangeTriggered()}typeChangeTriggered(){this.resetConditions(),this.setUpDates(),this.hideNoSlotDivs(),this.questionSchema.set([]),this.preQuestionsRequired.set(!1),this.postQuestionsRequired.set(!1),this.hasQuestions.set(!1);let e=1;if(this.bookingRules.isLocationNeeded&&(!this.selection.workLocationId||this.selection.workLocationId==0)&&(e=0),this.selection.typeId&&this.selection.typeId>0&&e==1)if(this.wizardStage.set(ie.TypeChosen),this.clearHoldSlot(""),this.bookingRules.needPatHistory=this.selection.selectedType.need_pat_history==1,this.bookingRules.needPatHistoryAnyMember=this.bookingRules.needPatHistory&&this.selection.selectedType.need_pat_history_any_member==1,this.bookingRules.onlyNewPatient=this.selection.selectedType.only_new_patient==1,this.bookingRules.onlyNewPatientAnyMember=this.bookingRules.onlyNewPatient&&this.selection.selectedType.only_new_patient_any_member==1,this.bookingRules.requireLogin=this.selection.selectedType.require_login==1||this.bookingRules.needPatHistory,this.bookingRules.allowPatientBooking=this.selection.selectedType.allow_patient_booking==1,this.bookingRules.allowWaitList=this.selection.selectedType.allow_wait_list==1,this.bookingRules.paymentProvider=this.selection.selectedType.payment_provider??"",this.bookingRules.allowPatientBooking)if((this.bookingRules.requireLogin||this.bookingRules.needPatHistory)&&!this.patientAuth.isPatLogin){this.btnLoginToSeeSlots=!0;let i=this.translocoService.translate("doc_profile_page.msg_patient_history"),t=this.selection.selectedType&&this.selection.selectedType.info_login_to_book&&this.selection.selectedType.info_login_to_book!=""?this.selection.selectedType.info_login_to_book:i;this.showHistoryError(t)}else if(this.bookingRules.onlyNewPatient&&!this.patientAuth.isPatLogin){this.btnLoginToSeeSlots=!0;let i=this.translocoService.translate("doc_profile_page.msg_only_new_patient_default");this.showHistoryError(i)}else(this.bookingRules.requireLogin||this.bookingRules.needPatHistory||this.bookingRules.onlyHeadCanBook||this.bookingRules.onlyNewPatient)&&this.patientAuth.isPatLogin?(this.btnLoginToSeeSlots=!1,this.bookingRules.needPatHistory?this.loadPatients(this.authService.currentUserValue,!1,!0,null):this.bookingRules.onlyNewPatient?this.loadPatients(this.authService.currentUserValue,!1,!0,null):(this.loadPatients(this.authService.currentUserValue,!1,!1,null),this.preLoadSlots())):(this.btnLoginToSeeSlots=!1,this.patientAuth.isPatLogin&&this.loadPatients(this.authService.currentUserValue,!1,!1,null),this.preLoadSlots());else{this.btnLoginToSeeSlots=!1;let i=this.translocoService.translate("doc_profile_page.msg_booking_not_allowed_default"),t=this.selection.selectedType&&this.selection.selectedType.info_booking_not_allowed&&this.selection.selectedType.info_booking_not_allowed!=""?this.selection.selectedType.info_booking_not_allowed:i;E.default.fire(t),this._changeDetectorRef.markForCheck()}}toDisplaySlot(e,i){let t=`${e} ${i}`,r=this.slotSearch.clinicTimezone||"",l=r?{zone:r}:{},p=x.fromFormat(t,"yyyy-MM-dd HH:mm",l);if(p.isValid||(p=x.fromFormat(t,"yyyy-MM-dd HH:mm:ss",l)),!p.isValid)return{key:e,time:i,ms:0,shifted:!1};if(!r||!this.patientZone)return{key:e,time:p.toFormat("HH:mm"),ms:p.toMillis(),shifted:!1};let m=p.setZone(this.patientZone);return{key:m.toFormat("yyyy-MM-dd"),time:m.toFormat("HH:mm"),ms:p.toMillis(),shifted:p.offset!==m.offset}}applySlotColumns(e,i){let t=e.some(p=>p.d_shifted);this.slotSearch.tzShifted=t;let r;if(!t)r=i;else{let m=e.map(d=>d.d_key).sort();if(r=[],m.length>0){let d=x.fromISO(m[0]).startOf("day"),b=x.fromISO(m[m.length-1]).startOf("day");if(d.isValid&&b.isValid)for(;d.toMillis()<=b.toMillis()&&r.length<8;)r.push(d.toFormat("yyyy-MM-dd")),d=x.fromMillis(d.toMillis()+864e5).startOf("day")}}this.slotSearch.dayDate=[],this.slotSearch.dayName=[],this.slotSearch.dayData=[];for(let p of r){let m=x.fromISO(p);this.slotSearch.dayName.push(m.isValid?m.setLocale("fr").toFormat("cccc"):""),this.slotSearch.dayDate.push(m.isValid?m.setLocale("fr").toFormat("d LLL yy"):"");let d=e.filter(b=>b.d_key===p).sort((b,k)=>b.d_ms-k.d_ms);this.slotSearch.dayData.push(d),this.slotSearch.totalSlotsDisplayed=this.slotSearch.totalSlotsDisplayed+d.length}let l=Math.max(3,this.slotSearch.dayData.length);this.slotSearch.dayIndexes=Array.from({length:l},(p,m)=>m)}tzBookingDisplayFields(){let e=this.selection.selectedSlot;return!e||!e.d_shifted||!e.d_key||!e.d_time?{}:{local_date:e.d_key,local_time:e.d_time,tz_shifted:!0}
2}safeZone(e){let i=typeof e=="string"?e.trim():"";return i&&mt.isValidZone(i)?i:""}get tzPatientLabel(){return((this.patientZone||"").split("/").pop()||"").replace(/_/g," ")}get tzClinicLabel(){let e=this.selection.selectedLocation?.city_name||this.pageData?.clinic_city_name||"";return e||((this.slotSearch.clinicTimezone||"").split("/").pop()||"").replace(/_/g," ")}preLoadSlots(){this.patientSelectedLiteBooking.set(!1),this.isLogosPro==!0&&this.logosId&&this.logosId!=""?this.getAvailableSlotsAndShowLogos():this.getAvailableSlotsAndShow()}getAvailableSlotsAndShow(){if(this.doctorId&&this.selection.typeId&&this.slotSearch.searchStart&&this.slotSearch.searchEnd&&this.slotSearch.slotFor){this.slotSearch.isLoadingSlot=!0,this.loader.show(this.translocoService.translate("common.loading_msg")),this.hideNoSlotDivs(),this.bookingRules.confirmNote="",this.bookingRules.needCnfFromPatient=!1,this.bookingRules.onlyHeadCanBook=!1,this.bookingRules.allowLiteBooking=!1,this.bookingRules.consentToBook=!1,this.bookingRules.isSsnRequired=!1,this.showLiteBookingOption.set(!1);let e=0,i=0,t="HH:mm:ss";this.showInfoMsg.set(!1),this.allowPrebook.set(!1),this.pageData.doctor.clinic_id==ho&&(e=1);let r=(0,Q.cloneDeep)(this.slotSearch.getNextAvailDate);this.slotSearch.getNextAvailDate=0;let l={doctorid:this.doctorId,typeid:this.selection.typeId,from:this.slotSearch.searchStart,to:this.slotSearch.searchEnd,slotfor:this.slotSearch.slotFor,work_location_id:this.selection.workLocationId,date_mandatory_value:this.questions.dateMandatoryValue,get_next_avail_date:r,uuid:this.visitorUuid};this.recordEvent("step_1",1),this.holdState.timerStarted=!1,this.slotTimeOut&&this.slotTimeOut.stop(),this.apiService.getSlotsForBookingV2(l).subscribe({next:p=>{this.slotSearch.isLoadingSlot=!1,this.loader.hide(),this.slotSearch.showNextAvailDate=!0,r==1&&(this.slotSearch.nextAvailDate="",this.slotSearch.nextAvailDateDisplay="");let m=!1;if(p){let d=p;this.slotSearch.maxDateAllowed=d.max_date_allowed&&d.max_date_allowed!=""?d.max_date_allowed:"",this.slotSearch.minDateAllowed=d.min_date_allowed&&d.min_date_allowed!=""?d.min_date_allowed:"",this.slotSearch.clinicTimezone=this.safeZone(d.clinic_timezone),r==1&&d.hasOwnProperty("nextavaildate")&&d.nextavaildate!=""&&(this.slotSearch.nextAvailDate=d.nextavaildate,this.slotSearch.nextAvailDate&&x.fromISO(this.slotSearch.nextAvailDate).isValid?this.slotSearch.nextAvailDateDisplay=x.fromISO(this.slotSearch.nextAvailDate).setLocale("fr").toFormat("d LLL yy"):this.slotSearch.nextAvailDateDisplay="");let b=d.slots,k=d.pre_book_days;if(d.schedule_settings&&d.schedule_settings!=""&&(this.setUpPaymentInfo(d.schedule_settings),d.schedule_settings.note_for_patient&&d.schedule_settings.note_for_patient!=""&&(this.bookingRules.confirmNote=d.schedule_settings.note_for_patient.replace(/ /g," "),this.showInfoMsg.set(!0),this.bookingRules.needCnfFromPatient=!!d.schedule_settings.need_cnf_from_patient),this.bookingRules.onlyHeadCanBook=d.schedule_settings.only_head_can_book==1,this.bookingRules.allowLiteBooking=d.schedule_settings.allow_lite_booking==1,this.bookingRules.consentToBook=d.schedule_settings.consent_to_book==1,this.bookingRules.isSsnRequired=d.schedule_settings.is_ssn_required==1),!this.questions.isConditionsValidated&&(this.questions.appointmentQuestions=[],this.questions.isConditionsRequired=!1,d.appointment_questions&&d.appointment_questions.length>0))if(this.questions.appointmentQuestions=d.appointment_questions,this.hasQuestions.set(!0),this.questions.isConditionsRequired=!0,d.schedule_settings&&d.schedule_settings.is_depended_slot&&d.schedule_settings.lower_range_dayes!=0&&d.schedule_settings.higher_range_days!=0){if(d.schedule_settings.is_depended_slot==1&&parseInt(d.schedule_settings.lower_range_dayes)<parseInt(d.schedule_settings.higher_range_days)){let j=!1;this.questions.appointmentQuestions.forEach(H=>{H.question_type==z.RequiredDate&&(j=!0)}),j&&(m=!0,this.preQuestionsRequired.set(!0),this.postQuestionsRequired.set(!1)),m===!0&&!this.questions.isConditionsValidated&&(this.questions.lowerRangeDays=parseInt(d.schedule_settings.lower_range_dayes),this.questions.higherRangeDays=parseInt(d.schedule_settings.higher_range_days),this.questions.isDependedSlot=!0,this.showAptConditionsModal())}}else this.questions.isDependedSlot=!1,this.preQuestionsRequired.set(!1),this.postQuestionsRequired.set(!0),this.showAptConditionsModal();this.bookingRules.allowLiteBooking&&!this.questions.isDependedSlot&&!this.isLogosPro&&this.showLiteBookingOption.set(!0);let S=0,D=0,I=0,L=0,N=[];for(let j in b)N.push(j);let C=N.length>0?N[0]:this.slotSearch.searchStart,V=N.length>2?N[2]:N.length>0?N[N.length-1]:this.slotSearch.searchEnd;if(m===!1||this.questions.isConditionsValidated){let j=x.fromISO(C),H=x.fromISO(V);if(this.slotSearch.docAvailEndDate&&this.slotSearch.docAvailEndDate!==""){let Y=x.fromISO(this.slotSearch.docAvailEndDate);Y.isValid&&H.isValid&&Y.startOf("day").toMillis()<=H.startOf("day").toMillis()?(this.slotSearch.searchStart=C,this.slotSearch.searchEnd=this.slotSearch.docAvailEndDate):(this.slotSearch.searchStart=C,this.slotSearch.searchEnd=V)}else this.slotSearch.searchStart=C,this.slotSearch.searchEnd=V;if(this.slotSearch.docAvailStartDate&&this.slotSearch.docAvailStartDate!==""){let Y=x.fromISO(this.slotSearch.docAvailStartDate);Y.isValid&&j.isValid&&Y.startOf("day").toMillis()>=j.startOf("day").toMillis()?(this.slotSearch.searchStart=this.slotSearch.docAvailStartDate,this.slotSearch.searchEnd=V):(this.slotSearch.searchStart=C,this.slotSearch.searchEnd=V)}else this.slotSearch.searchStart=C,this.slotSearch.searchEnd=V;this.hideNoSlotDivs();let U=[],W=[];for(let Y in b){if(this.slotSearch.nextAvailDate&&x.fromISO(this.slotSearch.nextAvailDate).isValid){let Z=x.fromISO(this.slotSearch.nextAvailDate).startOf("day"),G=x.fromISO(Y).startOf("day");G.isValid&&Z.toMillis()<=G.toMillis()&&(this.slotSearch.showNextAvailDate=!1)}let ye=Array.isArray(b[Y])?b[Y]:[],we=0,fe=x.fromISO(Y);W.push(Y),k>0&&fe.isValid&&x.now().plus({days:k}).startOf("day").toMillis()<=fe.startOf("day").toMillis()&&(S=1);let _e=0,K=0;if(this.slotSearch.docAvailEndDate&&this.slotSearch.docAvailEndDate!==""){let Z=x.fromISO(this.slotSearch.docAvailEndDate);Z.isValid&&Z.startOf("day").toMillis()<fe.startOf("day").toMillis()&&(_e=1)}if(this.slotSearch.docAvailStartDate&&this.slotSearch.docAvailStartDate!==""){let Z=x.fromISO(this.slotSearch.docAvailStartDate);Z.isValid&&Z.startOf("day").toMillis()>fe.startOf("day").toMillis()&&(K=1)}if(ye.length>0&&ye.length>i&&_e==0&&K==0)for(let Z in ye){let G=ye[Z];if(!G)continue;let me=0,ve=1;G.hasOwnProperty("capa")&&G.capa&&parseInt(G.capa)>1&&(ve=parseInt(G.capa)),parseInt(G.booked)&&(me=me+parseInt(G.booked)),parseInt(G.booked_c)&&(me=me+parseInt(G.booked_c)),parseInt(G.cancelled_apt)&&(me=me+parseInt(G.cancelled_apt));let Ae=ve-me;parseInt(G.booked_block)>0&&(Ae=0);let ke=this.toDisplaySlot(Y,G.start);if(G.id&&Ae>0&&ke.ms>0&&(e==0||e==1&&we<yt)){let vo={slottype:G.slot_type,slotid:G.id,from_time:G.start,to_time:G.end,docid:this.doctorId,prebook:S,clinic_id:this.pageData.doctor.clinic_id,slot_date:Y,value:G.start+"-"+G.end,display:G.start,d_key:ke.key,d_time:ke.time,d_ms:ke.ms,d_shifted:ke.shifted};
2U.push(vo),we=we+1}}}this.applySlotColumns(U,W),this.selectedIndex()==0&&this.onContinue(),this._changeDetectorRef.markForCheck()}}else this.recordEvent("step_1_no_slots",0)},error:()=>this.onHttpError()})}}goToNextAvailDate(){let e=x.fromISO(this.slotSearch.nextAvailDate),i=e.isValid?e.toFormat("yyyy-MM-dd"):this.slotSearch.nextAvailDate,t=e.isValid?e.plus({days:3}).toFormat("yyyy-MM-dd"):x.now().plus({days:3}).toFormat("yyyy-MM-dd");this.slotSearch.searchStart=i,this.slotSearch.searchEnd=t,this.preLoadSlots()}onSlotClick(e,i){this.patientSelectedLiteBooking.set(!1),this.cleanSlotMsg(),this.clearHoldSlot("slot_selected"),this.selection.selectedSlot=e;let t=this.selection.selectedSlot&&this.selection.selectedSlot.prebook&&this.selection.selectedSlot.prebook==1;this.allowPrebook.set(t),this._changeDetectorRef.markForCheck(),this.holdSlot(),this.showReplacementInfo(),this.showSlotMsg(),this._changeDetectorRef.markForCheck(),this.questions.isConditionsRequired&&this.questions.isDependedSlot?this.questions.isConditionsValidated?this._changeDetectorRef.markForCheck():this.showAptConditionsModal():this._changeDetectorRef.markForCheck(),this.bookingUuid=gt()}showSlotMsg(){if(this.selection.selectedSlot&&this.selection.selectedSlot.from_time){let e=this.selection.selectedSlot,i=x.fromISO(e.slot_date),t=i.isValid?i.setLocale("fr").toFormat("d LLL yyyy"):e.slot_date,r=!!e.d_shifted,l=r?x.fromISO(e.d_key):null,p=r&&l&&l.isValid?l.setLocale("fr").toFormat("d LLL yyyy"):t,m=r?e.d_time:e.from_time;this.selection.selectedDateDisplay=p,this.selection.selectedTimeDisplay=m;let d=r&&l&&l.isValid?l:i;this.selection.selectedDateShortDisplay=d.isValid?d.setLocale("fr").toFormat("ccc d LLL"):p,this.selection.selectedSlotChipDisplay=this.selection.selectedDateShortDisplay+" \xB7 "+m,this.selection.selectedClinicDisplay=r?this.translocoService.translate("doc_profile_page_v7.booking.tz_clinic_short",{clinic_date:t,clinic_time:e.from_time}):"";let b=p+" "+this.translocoService.translate("doc_profile_page_v7.booking.label_at")+" "+m;this.selection.selectedSlotLine=this.translocoService.translate("doc_profile_page_v7.booking.slot_in_progress",{when:b}),this.selection.selectedClinicSentence=r?this.translocoService.translate("doc_profile_page_v7.booking.tz_clinic_sentence",{clinic_date:t,clinic_time:e.from_time}):"",this.holdState.selectedSlotMsgText=""}else this.selection.selectedDateDisplay="",this.selection.selectedTimeDisplay="",this.selection.selectedClinicDisplay="",this.selection.selectedSlotLine="",this.selection.selectedClinicSentence="",this.selection.selectedSlotChipDisplay="",this.selection.selectedDateShortDisplay="",this.holdState.selectedSlotMsgText="",this.holdState.replacementName=""}cleanSlotMsg(){this.selection.selectedDateDisplay="",this.selection.selectedTimeDisplay="",this.selection.selectedClinicDisplay="",this.selection.selectedSlotLine="",this.selection.selectedClinicSentence="",this.selection.selectedSlotChipDisplay="",this.selection.selectedDateShortDisplay="",this.holdState.selectedSlotMsgText="",this.holdState.replacementInfo=""}holdSlot(){let e=0;this.patientAuth.isPatLogin&&(e=1);let i={doctor_id:this.doctorId,type_id:this.selection.typeId,slot_date:this.selection.selectedSlot.slot_date,start_time:this.selection.selectedSlot.from_time,end_time:this.selection.selectedSlot.to_time,hold_by_type:e,entry_at:" Portal",lang:"fr",uuid:this.visitorUuid};this.loader.show(this.translocoService.translate("common.loading_msg")),this.apiService.holdSlot(i).subscribe({next:t=>{if(this.loader.hide(),t.status=="success")this.wizardStage.set(ie.SlotHeld),this.holdState.timerStarted=!0,this.slotTimeOut.begin(),this.slotTimeOut.restart(),this.holdState.blockAptId=t.block_apt_id,this.holdState.holdSlotId=t.slotid,this.selectedIndex()==1&&this.onContinue();else if(t.status=="Not available"){let r=this.translocoService.translate("doc_profile_page.slot_not_available_msg");E.default.fire(r),this.preLoadSlots()}},error:()=>this.onHttpError()})}handleCountdownEvent(e){e.action==="notify"&&(this.holdState.timeLeft=e.left,(this.holdState.timeLeft==0||this.holdState.timeLeft<0)&&(this.clearHoldSlot("timeout"),this.goToStep(1),this.holdState.timerStarted=!1))}clearHoldSlot(e){if(this.selection.selectedSlot&&this.holdState.blockAptId){let i={id:this.holdState.holdSlotId,block_apt_id:this.holdState.blockAptId};this.loader.show(this.translocoService.translate("common.loading_msg")),this.apiService.clearHoldSlot(i).subscribe({next:t=>{this.loader.hide(),this.applyClearHoldEffects(e,!0)},error:()=>{this.loader.hide(),this.applyClearHoldEffects(e,!0)}})}else this.applyClearHoldEffects(e,!1)}resetHoldState(){this.selection.selectedSlot=null,this.holdState.blockAptId=0,this.holdState.holdSlotId=0,this.cleanSlotMsg()}applyClearHoldEffects(e,i){switch(e){case"timeout":if(this.resetHoldState(),i){let t=this.translocoService.translate("doc_profile_page.slot_timeout_msg");E.default.fire(t)}this.preTypeChangeTriggered();break;case"cancel_hit":this.resetHoldState(),this.holdState.timerStarted=!1,i&&this.slotTimeOut.pause(),this.preTypeChangeTriggered();break;case"date_change":this.resetHoldState(),this.slotTimeOut&&this.slotTimeOut.stop(),this.holdState.timerStarted=!1;break;case"booking":this.resetHoldState(),i&&(this.slotTimeOut&&this.slotTimeOut.stop(),this.holdState.timerStarted=!1);break;case"slot_selected":break;default:i||this.resetHoldState();break}}showReplacementInfo(){this.holdState.replacementInfo="",this.holdState.replacementName="";let e={doctor_id:this.doctorId,type_id:this.selection.typeId,slot_date:this.selection.selectedSlot.slot_date,start_time:this.selection.selectedSlot.from_time};this.apiService.showReplacementInfo(e).subscribe({next:i=>{i.status=="success"&&i.selected_slot_replacement_msg!=""&&(this.holdState.replacementInfo=i.selected_slot_replacement_msg,this.holdState.replacementName=i.replacement_name?i.replacement_name:"")},error:()=>{}})}showAptConditionsModal(){this.slotTimeOut&&this.slotTimeOut.stop(),this.aptQuestionForm.reset({}
2),Object.keys(this.aptQuestionForm.controls).forEach(t=>this.aptQuestionForm.removeControl(t)),this.questions.fileIds=[],this.questions.files=[];let e=[];this.questions.appointmentQuestions.forEach((t,r)=>{let l,p,m;t.question_type==z.MultipleChoice&&(l=JSON.parse(t.options));let d=t,b=!!d.is_rquired,k=r+1;switch(d.question_type){case z.YesNo:p="question_yes_no_"+d.id,m={question_type:z.YesNo,id:d.id,required:b,question_text:d.question_text,question_text_positive:d.question_text_positive,question_text_negative:d.question_text_negative,controlName:p,controlType:"radio",options:[{optionName:d.question_text_positive,value:"1"},{optionName:d.question_text_negative,value:"0"}]},this.questions.rawAnswers&&this.questions.rawAnswers[p]&&(m.currentValue=this.questions.rawAnswers[p]),e.push(m);break;case z.RequiredDocUpload:if(p="aptimage_"+d.id,m={question_type:z.RequiredDocUpload,id:d.id,question_text:d.question_text,question_text_positive:d.question_text_positive,question_text_negative:d.question_text_negative,controlName:p,controlType:"file_upload",required:b},this.questions.rawAnswers&&this.questions.rawAnswers[p]&&(m.currentValue=this.questions.rawAnswers[p],this.addFileToArray(p,this.questions.rawAnswers[p]),this.questions.answersData&&this.questions.answersData.length))for(let S=0;S<this.questions.answersData.length;S++){let D=this.questions.answersData[S];D.appointment_questions_id==d.id&&D.file_patients_id&&this.addFileIdsToArray(p,D.file_patients_id)}e.push(m);break;case z.MustAccept:p="question_type_3_yes_no_"+d.id,m={question_type:z.MustAccept,id:d.id,question_text:d.question_text,question_text_positive:d.question_text_positive,question_text_negative:d.question_text_negative,controlName:p,controlType:"radio",options:[{optionName:"Oui",value:"1"},{optionName:"Non",value:"0"}],required:b},this.questions.rawAnswers&&this.questions.rawAnswers[p]&&(m.currentValue=this.questions.rawAnswers[p]),e.push(m);break;case z.OpenText:p="answer_comment_"+d.id,m={question_type:z.OpenText,id:d.id,question_text:d.question_text,question_text_positive:d.question_text_positive,question_text_negative:d.question_text_negative,controlName:p,controlType:"text_area",required:b},this.questions.rawAnswers&&this.questions.rawAnswers[p]&&(m.currentValue=this.questions.rawAnswers[p]),e.push(m);break;case z.OptionalDocUpload:p="aptimage_optional_"+d.id,m={question_type:z.OptionalDocUpload,id:d.id,question_text:d.question_text,question_text_positive:d.question_text_positive,question_text_negative:d.question_text_negative,controlName:p,controlType:"file_upload",required:b},this.questions.rawAnswers&&this.questions.rawAnswers[p]&&(m.currentValue=this.questions.rawAnswers[p]),e.push(m);break;case z.OptionalDate:p="date_optional_"+d.id,m={question_type:z.OptionalDate,id:d.id,question_text:d.question_text,question_text_positive:d.question_text_positive,question_text_negative:d.question_text_negative,controlName:p,controlType:"date",required:b},this.questions.rawAnswers&&this.questions.rawAnswers[p]&&(m.currentValue=this.questions.rawAnswers[p]),e.push(m);break;case z.RequiredDate:p="date_mandatory_"+d.id,m={question_type:z.RequiredDate,id:d.id,question_text:d.question_text,question_text_positive:d.question_text_positive,question_text_negative:d.question_text_negative,controlName:p,controlType:"date",required:b},this.questions.rawAnswers&&this.questions.rawAnswers[p]&&(m.currentValue=this.questions.rawAnswers[p]),e.push(m);break;case z.SingleChoice:l=JSON.parse(d.options),p="select_"+d.id,m={question_type:z.SingleChoice,id:d.id,question_text:d.question_text,question_text_positive:d.question_text_positive,question_text_negative:d.question_text_negative,controlName:p,controlType:"select",required:b,options:l},this.questions.rawAnswers&&this.questions.rawAnswers[p]&&(m.currentValue=this.questions.rawAnswers[p]),e.push(m);break;case z.MultipleChoice:l=JSON.parse(d.options),p="checkbox_"+d.id,m={question_type:z.MultipleChoice,id:d.id,question_text:d.question_text,question_text_positive:d.question_text_positive,question_text_negative:d.question_text_negative,controlName:p,controlType:"checkbox",required:b,options:l},this.questions.rawAnswers&&this.questions.rawAnswers[p]&&(m.currentValue=this.questions.rawAnswers[p]),e.push(m);break;default:break}});let i={};e.forEach(t=>{let r=t.currentValue?t.currentValue:"";i[t.controlName]=new pe(r)}),this.aptQuestionForm=new Ue(i),e.forEach(t=>{let r=t.question_type;(r==z.RequiredDocUpload||r==z.OptionalDocUpload)&&this.aptQuestionForm.get(t.controlName).valueChanges.subscribe(l=>{if(l&&l._files&&l._files.length){let p=l._files[0];if(p)if(this.validateSizeOfFile(p)<5)this.uploadQuestionFile(p).then(m=>{m>0&&(this.addFileIdsToArray(t.controlName,m),this.addFileToArray(t.controlName,p))});else{let m=this.translocoService.translate("doc_profile_page.file_size_limit_msg");E.default.fire(m)}else{let m=this.translocoService.translate("doc_profile_page.select_val
2id_file_msg");E.default.fire(m)}}})},this),this.questionSchema.set(e),this._changeDetectorRef.markForCheck()}submitPreQuestions(){let e=this.validateConditions();if(e&&e.status=="success"&&(0,Q.isObject)(e)&&e.hasOwnProperty("form_data_ques")){let i=e;this.questions.answersFormData=i.form_data_ques,this.questions.isConditionsValidated=!0,this.questions.rawAnswers=i.rawValues,this.questions.isDependedSlot?i.lower_date!=""&&i.higher_date!=""&&i.search_start!=""&&i.search_end!=""?(this.slotSearch.docAvailStartDate=i.lower_date,this.slotSearch.docAvailEndDate=i.higher_date,this.slotSearch.searchStart=i.search_start,this.slotSearch.searchEnd=i.search_end,this.questions.dateMandatoryValue=i.date_mandatory_value,this.recordEvent("step_6",1),this.preLoadSlots()):(this.selection.selectedType=null,this.hideNoSlotDivs()):(this.recordEvent("step_6",1),this.slotTimeOut.restart())}}onValidateQuestionSwalFire(){this.resetQuestions(),this.questions.isConditionsValidated=!1,this.questions.answersFormData=new FormData,this.questions.answersData=null,this.questions.rawAnswers=null,this.recordEvent("step_6",0),this.slotTimeOut.restart()}submitPostQuestions(){this.postQuestionsRequired()&&this.submitPreQuestions()}resetQuestions(){this.aptQuestionForm.reset()}addFileIdsToArray(e,i){this.questions.fileIds.push({[e]:i}),this.questions.uploadedIds=De(Pe({},this.questions.uploadedIds),{[e]:i}),this._changeDetectorRef.markForCheck()}addFileToArray(e,i){this.questions.files.push({[e]:i})}uploadQuestionFile(e){return kt(this,null,function*(){let i=new FormData;return i.append("attachemnt",e),this.loader.show(this.translocoService.translate("common.loading_msg")),this.questions.fileUploadInProgress=!0,yield new Promise(r=>{try{this.apiService.uploadFileForAptConditions(i).subscribe({next:l=>{this.questions.fileUploadInProgress=!1,this.loader.hide(),l&&l.response&&l.response=="success"&&l.flie_id&&parseInt(l.flie_id)>0?r(parseInt(l.flie_id)):(l&&l.response&&l.response=="error"&&l.msg?E.default.fire(l.msg):E.default.fire(this.translocoService.translate("common.title_error"),this.translocoService.translate("common.something_went_wrong_try_again"),"error"),r(0))},error:()=>{this.questions.fileUploadInProgress=!1,this.loader.hide(),E.default.fire(this.translocoService.translate("common.title_error"),this.translocoService.translate("common.something_went_wrong_try_again"),"error"),r(0)}})}catch{r(0),this.questions.fileUploadInProgress=!1,this.loader.hide(),E.default.fire(this.translocoService.translate("common.title_error"),this.translocoService.translate("common.something_went_wrong_try_again"),"error")}})})}validateSizeOfFile(e){return e.size/1024/1024}validateConditions(){let e=!0,i=[],t=[],r=this.aptQuestionForm.getRawValue(),l=new FormData;this.questionSchema().forEach(d=>{let b=d.id,k={appointment_questions_id:b,answer_comment:"",is_response_positive:0,file_patients_id:0},S=0,D=d.question_type;if(D==z.YesNo)this.aptQuestionForm.get(d.controlName).value=="1"?S=1:S=0;else if(D==z.RequiredDocUpload){let I=d.controlName;for(let N=0;N<this.questions.files.length;N++){let C=this.questions.files[N];Object.keys(C).forEach(V=>{if(V==I){let j=C[V];j?(t.push(b),S=1,l.append("apt_images[]",j)):(d.required&&(e=!1),S=0)}})}let L=0;if(this.questions.fileIds.length>0)for(let N=0;N<this.questions.fileIds.length;N++){let C=this.questions.fileIds[N];Object.keys(C).forEach(V=>{if(V==I){let j=C[V];j&&parseInt(j)>0&&(L=parseInt(j))}})}d.required&&(L>0?(S=1,k.file_patients_id=L):(e=!1,S=0))}else if(D==z.MustAccept)this.aptQuestionForm.get(d.controlName).value=="1"?S=1:(d.required&&(e=!1),S=0);else if(D==z.OpenText)this.aptQuestionForm.get(d.controlName).value&&this.aptQuestionForm.get(d.controlName).value!=""?(k.answer_comment=this.aptQuestionForm.get(d.controlName).value,S=1):(k.answer_comment="",d.required&&(e=!1),S=0);else if(D==z.OptionalDocUpload){let I=d.controlName;for(let L=0;L<this.questions.files.length;L++){let N=this.questions.files[L];Object.keys(N).forEach(C=>{if(C==I){let V=N[C];V?(t.push(b),S=1,l.append("apt_images[]",V)):(d.required&&(e=!1),S=0)}})}for(let L=0;L<this.questions.fileIds.length;L++){let N=this.questions.fileIds[L];
2Object.keys(N).forEach(C=>{if(C==I){let V=N[C];V?(S=1,k.file_patients_id=V):(d.required&&(e=!1),S=0)}})}}else D==z.OptionalDate?this.aptQuestionForm.get(d.controlName).value&&this.aptQuestionForm.get(d.controlName).value.isValid?(k.answer_comment=this.aptQuestionForm.get(d.controlName).value.toFormat("yyyy-MM-dd"),S=1):(d.required&&(e=!1),S=0):D==z.RequiredDate?this.aptQuestionForm.get(d.controlName).value&&this.aptQuestionForm.get(d.controlName).value.isValid?(k.answer_comment=this.aptQuestionForm.get(d.controlName).value.toFormat("yyyy-MM-dd"),this.questions.dateMandatoryValue=this.aptQuestionForm.get(d.controlName).value.toFormat("yyyy-MM-dd"),S=1):(S=0,d.required&&(e=!1)):D==z.SingleChoice?this.aptQuestionForm.get(d.controlName).value!=""?(k.answer_comment=this.aptQuestionForm.get(d.controlName).value,S=1):(S=0,d.required&&(e=!1)):D==z.MultipleChoice&&(this.aptQuestionForm.get(d.controlName).value&&(0,Q.isArray)(this.aptQuestionForm.get(d.controlName).value)&&this.aptQuestionForm.get(d.controlName).value.length>0?(k.answer_comment=JSON.stringify(this.aptQuestionForm.get(d.controlName).value),S=1):(S=0,d.required&&(e=!1)));k.is_response_positive=S,i.push(k)}),l.append("file_question_id",JSON.stringify(t)),l.append("answers",JSON.stringify(i));let m={form_data_ques:l,status:"success",rawValues:r,lower_date:"",higher_date:"",search_start:"",search_end:"",date_mandatory_value:this.questions.dateMandatoryValue,answers_data:i};if(e){if(this.questions.isDependedSlot&&this.questions.dateMandatoryValue!=""){let d=x.fromFormat(this.questions.dateMandatoryValue,"yyyy-MM-dd").plus({days:this.questions.lowerRangeDays}).toFormat("yyyy-MM-dd"),b=x.fromFormat(this.questions.dateMandatoryValue,"yyyy-MM-dd").plus({days:this.questions.higherRangeDays}).toFormat("yyyy-MM-dd");if(x.fromFormat(d,"yyyy-MM-dd")<x.local()&&x.fromFormat(b,"yyyy-MM-dd")<x.local()){let k=x.local().minus({days:this.questions.lowerRangeDays}),S=x.local().minus({days:this.questions.higherRangeDays}),D="";k<S?D=k.toFormat("dd-MM-yyyy"):D=S.toFormat("dd-MM-yyyy");let I=this.translocoService.translate("doc_profile_page.date_min_display_msg",{min_date:D});E.default.fire(I)}else if(x.fromFormat(d,"yyyy-MM-dd")>x.local()&&x.fromFormat(b,"yyyy-MM-dd")>x.local()){m.lower_date=d,m.higher_date=b,m.search_start=d;let k=x.fromFormat(d,"yyyy-MM-dd").plus({days:3}).toFormat("yyyy-MM-dd");x.fromFormat(b,"yyyy-MM-dd")<x.fromFormat(k,"yyyy-MM-dd")?m.search_end=b:m.search_end=k}else if(x.fromFormat(d,"yyyy-MM-dd")<=x.local()){let k=x.local().toFormat("yyyy-MM-dd");m.lower_date=k,m.higher_date=b,m.search_start=k;let S=x.fromFormat(k,"yyyy-MM-dd").plus({days:3}).toFormat("yyyy-MM-dd");x.fromFormat(b,"yyyy-MM-dd")<x.local()?m.search_end=b:m.search_end=S}else if(x.fromFormat(d,"yyyy-MM-dd")>x.local()){m.lower_date=d,m.search_start=d;let k=x.fromFormat(d,"yyyy-MM-dd").plus({days:3}).toFormat("yyyy-MM-dd");m.higher_date=k,m.search_end=k}else if(x.fromFormat(b,"yyyy-MM-dd")>=x.local()){m.lower_date=b,m.search_start=b;let k=x.fromFormat(b,"yyyy-MM-dd").plus({days:3}).toFormat("yyyy-MM-dd");m.higher_date=k,m.search_end=k}}return m}else{let d=this.translocoService.translate("doc_profile_page.question_validation_failed_title"),b=this.translocoService.translate("doc_profile_page.question_validation_failed_msg"),k=this.translocoService.translate("doc_profile_page.question_validation_btn_complete_form"),S=this.translocoService.translate("doc_profile_page.question_validation_btn_leave_form");E.default.fire({title:d,icon:"error",html:b,showCancelButton:!0,confirmButtonText:k,cancelButtonText:S}).then(D=>{D.isConfirmed?E.default.close():(this.questions.files=[],this.questions.rawAnswers=null,this.resetQuestions())})}}showUserLoginRegister(e){this.dialogRef=this._matDialog.open(ut,{panelClass:["auth-dialog-v2-panel"],data:{initialView:"signin",returnUrl:"booking"}}),this.dialogRef.afterClosed().subscribe(i=>{let t=this.translocoService.translate("doc_profile_page.no_patient_account_found_msg");if((0,Q.isObject)(i)&&i.hasOwnProperty("id")){let l=i;l&&l.id&&l.group_id==oe.Patient?(this.recordEvent("step_2",1),this.patientAuth.isPatLogin=!0,this.patientAuth.user=l,this.loadPatients(l,e,!0,null)):E.default.fire(t)}else E.default.fire(t)})}onAuthed(e){this.patientAuth.user=e,this.patientAuth.user&&this.patientAuth.user.id&&this.patientAuth.user.group_id==oe.Patient&&(this.patientAuth.isPatLogin=!0,this.loadPatients(e,!1,!0,null))}onMemberChosen(e){this.selection.selectedPatient=e,this._changeDetectorRef.markForCheck()}onMemberUnlocked(e){this.patientAuth.user&&this.patientAuth.user.id&&this.patientAuth.user.group_id==oe.Patient&&this.loadPatients(this.patientAuth.user,!1,!0,e)}onMemberAdded(e){this.patientAuth.user&&this.patientAuth.user.id&&this.patientAuth.user.group_id==oe.Patient&&this.loadPatients(this.patientAuth.user,!1,!0,e)}loadPatients(e,i,t,r){if(!e||!e.id)return;this.patientAuth.showLockedMsg=!1,this.patientAuth.patHistory=!1,this.patientAuth.patientBlocked=!1;let l=this.doctorId,p=this.selection.typeId,m=this.selection.selectedSlot&&this.selection.selectedSlot.slot_date?this.selection.selectedSlot.slot_date:"",d={id:e.id,doctor_id:l,date_appointment:m,type_id:p};this.loader.show(this.translocoService.translate("common.loading_msg")),this.apiService.loadPatientsForBook(d).subscribe({next:b=>{if(this.loader.hide(),b.status=="success"){if(this.patientAuth.patientBlocked=!1,this.patientAuth.isMultipleAptAllowed=!0,b.patient_history==1&&(this.patientAuth.patHistory=!0),b.patient_blocked&&b.patient_blocked==1&&(this.patientAuth.patientBlocked=!0),b.is_multiple_apt_allowed==0&&(this.patientAuth.isMultipleAptAllowed=!1),this.patientAuth.patients=b.data&&b.data.length?b.data:[],r&&r.id)for(let k=0;k<this.patientAuth.patients.length;k++){let S=this.patientAuth.patients[k];if(S.id==r.id){this.selection.selectedPatient=S;break}}this.selection.selectedPatient||(this.selection.selectedPatient=this.patientAuth.patients&&this.patientAuth.patients.length?this.patientAuth.patients[0]:null);for(let k=0;k<this.patientAuth.patients.length;k++)this.patientAuth.patients[k].is_locked&&(this.patientAuth.showLockedMsg=!0);i?this.preTypeChangeTriggered():t&&(this.bookingRules.needPatHistory||this.bookingRules.onlyNewPatient)&&this.updatePatientHistory()}},error:()=>this.onHttpError()})}updatePatientHistory(){if(this.bookingRules.allowPatientBooking)if(this.bookingRules.needPatHistory&&!this.bookingRules.needPatHistoryAnyMember&&!this.patientAuth.patHistory)this.showAfterLoginHistoryError(),this.patientAuth.isPatLogin?this.btnLoginToSeeSlots=!1:(this.btnLoginToSeeSlots=!0,this.steps()[this.selectedIndex()]?.id===0&&this.onContinue());else if(this.bookingRules.onlyNewPatient&&!this.bookingRules.onlyNewPatientAnyMember&&this.patientAuth.patHistory)this.showAfterLoginHistoryError(),this.patientAuth.isPatLogin?this.btnLoginToSeeSlots=!1:(this.btnLoginToSeeSlots=!0,this.steps()[this.selectedIndex()]?.id===0&&this.onContinue());else{let e=this.steps()[this.selectedIndex()]?.id;(e===1||e===0)&&this.preLoadSlots()}else{let e=this.translocoService.translate("doc_profile_page.msg_booking_not_allowed_default"),i=this.selection.selectedType&&this.selection.selectedType.info_booking_not_allowed&&this.selection.selectedType.info_booking_not_allowed!=""?this.selection.selectedType.info_booking_not_allowed:e;E.default.fire(i)}}checkIfPatientLocked(){let e=!1;return this.selection.selectedPatient.is_locked==1&&(e=!0),e}checkPatientHistory(){let e=!0;return this.bookingRules.needPatHistory?this.bookingRules.needPatHistoryAnyMember?this.patientAuth.patHistory?e=!1:e=!0:this.selection.selectedPatient.has_history==1?e=!1:e=!0:e=!1,e}checkPatientNotHistory(){let e=!0;return this.bookingRules.onlyNewPatient?this.bookingRules.onlyNewPatientAnyMember?this.selection.selectedPatient.has_history==0?e=!1:e=!0:this.patientAuth.patHistory?e=!0:e=!1:e=!1,e}checkIfOnlyHeadCanBook(){let e=!0;return this.bookingRules.onlyHeadCanBook?this.selection.selectedPatient.is_fam
2ily_head==1?e=!1:e=!0:e=!1,e}bookappointment(){if(this.holdState.replacementInfo!=""&&!this.selection.acceptReplacementInfo){let e=this.translocoService.translate("doc_profile_page.accept_replacement_error_msg");E.default.fire(e);return}if(this.bookingRules.consentToBook&&!this.selection.acceptConsent){let e=this.translocoService.translate("doc_profile_page.accept_consent_error_msg");E.default.fire(e);return}if(this.bookingRules.isSsnRequired&&(!this.selection.selectedPatient||!this.selection.selectedPatient.id||!this.selection.selectedPatient.ssn||this.selection.selectedPatient.ssn.trim()=="")){let e=this.translocoService.translate("doc_profile_page.ssn_required_error_msg");E.default.fire(e);return}if(this.bookingRules.isSsnRequired&&this.selection.selectedPatient&&this.selection.selectedPatient.ssn&&this.selection.selectedPatient.ssn.replace(/\D/g,"").length!==13){let e=this.translocoService.translate("doc_profile_page.ssn_required_error_msg");E.default.fire(e);return}if(this.recordEvent("step_booking",0),this.selection.selectedSlot&&this.selection.selectedSlot.from_time&&this.selection.selectedSlot.to_time&&this.patientAuth.isPatLogin&&this.selection.selectedPatient&&this.selection.selectedPatient.id&&this.selection.selectedType){let e=this.checkPatientHistory(),i=this.checkPatientNotHistory(),t=this.checkIfOnlyHeadCanBook(),r=this.checkIfPatientLocked();if(e==!1&&t==!1&&i==!1&&r==!1){let l=this.selection.selectedSlot.slot_date,p=this.selection.receivePreBookNotification?"1":"0",m=this.doctorId,d=this.selection.typeId,b=this.selection.selectedSlot.from_time,k=this.selection.selectedSlot.to_time,S=this.selection.selectedPatient.id,D=this.selection.appointmentNote,I=this.selection.selectedSlot.slottype,L=this.selection.selectedSlot.slotid,N=this.bookingRules.needCnfFromPatient?"1":"0",C=new FormData;if(C.append("slot_id",L),C.append("slot_type",I),C.append("doctorid",m),C.append("patientid",S),C.append("typeid",d.toString()),C.append("appointmentnote",D),C.append("dateappointment",l),C.append("from",b),C.append("to",k),C.append("receive_pre_book_notification",p),C.append("pat_cnf_answer_value","0"),C.append("need_cnf_from_patient",N),C.append("device","WEB_HOMEPAGE"),C.append("patient_timezone",this.patientZone),C.append("work_location_id",this.selection.workLocationId),C.append("is_upload_mandatory","0"),C.append("transaction_id",this.payment.transactionId),C.append("booking_uuid",this.bookingUuid),C.append("payment_method",this.bookingRules.paymentProvider==="stripe"?"stripe":""),C.append("ssn",this.selection.selectedPatient.ssn??""),C.append("apt_image",""),!this.questions.answersFormData.entries().next().done)for(let U of this.questions.answersFormData.entries())C.append(U[0],U[1]);let V=De(Pe({apt_date:l,apt_time:b},this.tzBookingDisplayFields()),{replacement_name:this.holdState.replacementName||"",pro_name:[this.pageData?.doctor?.title,this.pageData?.doctor?.last_name,this.pageData?.doctor?.first_name].filter(Boolean).join(" "),apt_address:this.selection.selectedLocation?.location_address?[this.selection.selectedLocation.location_address,this.selection.selectedLocation.location_zip,this.selection.selectedLocation.city_name].filter(Boolean).join(", "):[this.pageData?.clinic_address,this.pageData?.clinic_zipcode,this.pageData?.clinic_city_name].filter(Boolean).join(", "),apt_type:this.selection.selectedType?.type_name??""}),j=this.patientAuth.isPatLogin;this.loader.show(this.translocoService.translate("common.loading_msg")),(this.isDesmosPro?this.apiService.desmosBookAppointment(C):this.apiService.patientBookAppointment(C)).subscribe({next:U=>{this.loader.hide();let W=U.response&&U.response!=""?U.response:"";W=="success"?(this.wizardStage.set(ie.Confirmed),this.recordEvent("step_booking_success",1),this.selection.selectedSlot&&this.holdState.blockAptId?this.clearHoldSlot("booking"):(this.selection.selectedSlot=null,this.holdState.blockAptId=0,this.holdState.holdSlotId=0,this.cleanSlotMsg(),this.slotTimeOut&&this.slotTimeOut.stop(),this.holdState.timerStarted=!1),this.resetBookingProcess(),this.router.navigate(["/rdv-confirme"],{state:{booking_display:V,
2calendar_apt:U?.appointment??null,is_logged_in:j}})):this.showRdvBookingErrorResponse(W)},error:()=>this.onHttpError()})}else if(r)this.showLockedError();else if(e){let l=this.translocoService.translate("doc_profile_page.msg_patient_history"),p=this.selection.selectedType&&this.selection.selectedType.info_login_to_book&&this.selection.selectedType.info_login_to_book!=""?this.selection.selectedType.info_login_to_book:l;this.showHistoryError(p)}else if(i){let p="<br>"+this.translocoService.translate("doc_profile_page.msg_only_new_patient_default");this.showHistoryError(p)}else if(t){let l=this.translocoService.translate("common.title_error"),p=this.translocoService.translate("doc_profile_page.account_holder_only_message");E.default.fire(l,p,"info")}else{let l=this.translocoService.translate("common.title_error"),p=this.translocoService.translate("doc_profile_page.validation_failed_msg");E.default.fire(l,p,"error")}}else{this.recordEvent("step_booking_error_input_validation",0);let e=this.translocoService.translate("common.title_error"),i=this.translocoService.translate("doc_profile_page.validation_failed_msg");E.default.fire(e,i,"error")}}showRdvBookingErrorResponse(e){let t={family_error:{event:"step_booking_family_error",msgKey:"doc_profile_page.family_booking_error_msg"},blocked:{event:"step_booking_blocked",msgKey:"doc_profile_page.patient_blocked_booking_error_msg"},multiple_apt_not_allowed:{event:"step_booking_multiple_apt_not_allowed",msgKey:"doc_profile_page.multiple_appointment_not_allowed_msg"},auth_failure:{event:"step_booking_auth_failure",msgKey:"doc_profile_page.session_expired_msg"},file_error:{event:"step_booking_file_error",msgKey:"doc_profile_page.file_upload_error_msg"},no_slot:{event:"step_booking_no_slot",msgKey:"doc_profile_page.no_slot_available_error_msg"},no_slot1:{event:"step_booking_no_slot_1",msgKey:"doc_profile_page.no_slot_available_error_msg"},no_slot2:{event:"step_booking_no_slot_2",msgKey:"doc_profile_page.no_slot_available_error_msg"},no_slot3:{event:"step_booking_no_slot_3",msgKey:"doc_profile_page.maximum_apt_booked_error_msg"},payment_failed:{event:"step_booking_payment_failed",msgKey:"doc_profile_page.payment_failed_error_msg"}}[e]??{event:"step_booking_error_unknown",msgKey:"common.something_went_wrong_try_again"};this.recordEvent(t.event,0);let r=this.translocoService.translate("common.title_error"),l=this.translocoService.translate(t.msgKey);E.default.fire(r,l,"error")}showAddToCalendarSuccess(e){let i={apt_date:e.apt_date,start_time:e.start_time,end_time:e.end_time,doc_name:e.doc_name,patient_name:e.patient_name,location_name:e.location_name,location_address:e.location_address,location_city:e.location_city,location_zipcode:e.location_zipcode,location_timezone:e.location_timezone,apt_url:e.apt_url};this.dialogRefCal=this._matDialog.open(so,{disableClose:!0,data:{apt:i,title:this.translocoService.translate("doc_profile_page.add_to_calendar_dialog_title")},autoFocus:!1}),this.dialogRefCal.afterClosed().subscribe(t=>{this.router.navigate(["/patient-dashboards/mes-rdv"])})}changePreWeek(){if(this.selection.typeId&&this.selection.typeId>0&&this.bookingRules.allowPatientBooking){if(this.bookingRules.needPatHistory&&!this.patientAuth.patHistory||this.bookingRules.requireLogin&&!this.patientAuth.isPatLogin)return;if(this.bookingRules.onlyNewPatient&&!this.bookingRules.onlyNewPatientAnyMember&&this.patientAuth.patHistory||this.bookingRules.requireLogin&&!this.patientAuth.isPatLogin)return;{this.slotSearch.slotFor="pre";let e=this.slotSearch.searchStart,i=x.now().startOf("day"),t=x.fromISO(e).minus({days:3}).startOf("day"),r=this.slotSearch.docAvailStartDate&&this.slotSearch.docAvailStartDate!==""?x.fromISO(this.slotSearch.docAvailStartDate).startOf("day"):null,l;!t.isValid||t.toMillis()<i.toMillis()?r&&r.isValid&&i.diff(r,"days").days>0?l=i.plus({days:1}).toFormat("yyyy-MM-dd"):r&&r.isValid?l=r.toFormat("yyyy-MM-dd"):l=i.toFormat("yyyy-MM-dd"):r&&r.isValid?t.toMillis()>=r.toMillis()?l=t.toFormat("yyyy-MM-dd"):l=r.toFormat("yyyy-MM-dd"):l=t.toFormat("yyyy-MM-dd");let p=x.fromISO(l).plus({days:3}).toFormat("yyyy-MM-dd");if(this.slotSearch.searchStart=l,this.slotSearch.searchEnd=p,x.fromISO(l).plus({days:1}).startOf("day").toMillis()>=i.toMillis())this.slotSearch.isLoadingSlot=!0,this.clearHoldSlot("date_change"),this.preLoadSlots();else return}}else return}changeNextWeek(){if(this.selection.typeId&&this.selection.typeId>0&&this.bookingRules.allowPatientBooking){if(this.bookingRules.needPatHistory&&!this.patientAuth.patHistory||this.bookingRules.requireLogin&&!this.patientAuth.isPatLogin)return;if(this.bookingRules.onlyNewPatient&&!this.bookingRules.onlyNewPatientAnyMember&&this.patientAuth.patHistory||this.bookingRules.requireLogin&&!this.patientAuth.isPatLogin)return;{this.slotSearch.slotFor="next";let e=this.slotSearch.searchStart,i=this.slotSearch.searchEnd;x.fromISO(i).isValid||(i=x.fromISO(e).plus({days:3}).toFormat("yyyy-MM-dd"));let t=x.fromISO(i).plus({days:1}).startOf("day"),r=t.plus({days:3}).startOf("day"),l=this.slotSearch.docAvailEndDate;if(l&&l!==""){let p=x.fromISO(l).startOf("day");if(p.isValid&&r.toMillis()<=p.toMillis())this.slotSearch.isLoadingSlot=!0,this.slotSearch.searchStart=t.toFormat("yyyy-MM-dd"),this.slotSearch.searchEnd=r.toFormat("yyyy-MM-dd"),this.clearHoldSlot("date_change"),this.preLoadSlots();else{let m=x.fromISO(i).startOf("day");p.isValid&&m.isValid&&m.toMillis()<p.toMillis()&&r.toMillis()>=p.toMillis()?(this.slotSearch.isLoadingSlot=!0,this.slotSearch.searchStart=t.toFormat("yyyy-MM-dd"),this.slotSearch.searchEnd=p.toFormat("yyyy-MM-dd"),this.clearHoldSlot("date_change"),this.preLoadSlots()):this.slotSearch.isLoadingSlot=!1}}else if(this.slotSearch.isLoadingSlot=!0,this.slotSearch.searchStart=t.toFormat("yyyy-MM-dd"),this.slotSearch.searchEnd=r.toFormat("yyyy-MM-dd"),x.fromISO(this.slotSearch.searchStart).plus({days:1}).startOf("day").toMillis()>=x.now().startOf("day").toMillis())this.clearHoldSlot("date_change"),this.preLoadSlots();else{this.slotSearch.isLoadingSlot=!1;return}}}else return}toggleServiceExpand(e){let i=e.title;this.expandedServices.has(i)?this.expandedServices.delete(i):this.expandedServices.add(i)}isServiceExpanded(e){return this.expandedServices.has(e.title)}isDescriptionLong(e){return e.description?e.description.replace(/<[^>]*>/g,"").length>120:!1}bookService(e){if(e.type_id&&e.type_id>0){let i=this.bookingRules.types.find(t=>
2t.id==e.type_id);i&&(this.bookingRules.workLocations.length==1?(this.selection.selectedType=i,this.selection.typeId=i.id,this.onLocationChanged(this.bookingRules.workLocations[0])):this.onTypeChanged(i))}this.book("rdv")}book(e){if(this.patientAuth.user&&this.patientAuth.user.id&&this.patientAuth.user.group_id!=oe.Patient){let i=this.translocoService.translate("doc_profile_page.title_only_patient_can_book"),t=this.translocoService.translate("doc_profile_page.only_patient_can_book_msg_html");E.default.fire({title:i,html:t});return}else this.wizardStage.set(ie.ModeChosen),this.selectedTabIndex=this.menuServices&&this.menuServices.length>0?5:4,this.selection.typeOfBooking=e,this.changeTypeOfBooking(e)}request(){if(this.patientAuth.user&&this.patientAuth.user.id&&this.patientAuth.user.group_id!=oe.Patient){let e=this.translocoService.translate("doc_profile_page.title_only_patient_can_book"),i=this.translocoService.translate("doc_profile_page.only_patient_can_book_msg_html");E.default.fire({title:e,html:i});return}else this.patientAuth.user&&this.patientAuth.user.id&&this.patientAuth.user.is_locked==1?this.showLockedError():this.dialogRef=this._matDialog.open(no,{panelClass:["nova-dialog-624-auto-height","nova-dialog-single"],data:{doctor_id:this.doctorId}})}addPatientToWaitingList(){this.patientAuth.user&&this.patientAuth.user.id&&this.patientAuth.user.group_id==oe.Patient?this.patientAuth.user.is_locked==1?this.showLockedError():this.dialogAddToWaitListRef=this._matDialog.open(vt,{panelClass:["nova-dialog-624-auto-height","nova-dialog-single"],data:{doctor_id:this.doctorId,type_id:this.selection.typeId&&this.selection.typeId>0?this.selection.typeId:0}}):(this.dialogAuthRef=this._matDialog.open(ut,{panelClass:["auth-dialog-v2-panel"],data:{returnUrl:"confirm_cancel"}}),this.dialogAuthRef.afterClosed().subscribe(e=>{if((0,Q.isObject)(e)&&e.hasOwnProperty("id")){let t=e;if(t&&t.id&&t.group_id==oe.Patient&&t.is_locked==0)this.dialogAddToWaitListRef=this._matDialog.open(vt,{panelClass:["nova-dialog-624-auto-height","nova-dialog-single"],data:{doctor_id:this.doctorId,type_id:this.selection.typeId&&this.selection.typeId>0?this.selection.typeId:0}});else if(t&&t.id&&t.group_id==oe.Patient&&t.is_locked==1)this.showLockedError();else{let r=this.translocoService.translate("common.title_error"),l=this.translocoService.translate("doc_profile_page.no_patient_account_found_msg");E.default.fire(r,l,"error")}}else{let i=this.translocoService.translate("common.title_error"),t=this.translocoService.translate("doc_profile_page.no_patient_account_found_msg");E.default.fire(i,t,"error")}}))}setUpDates(){let e=this.pageData.doctor.doc_avail_start_date,i=this.pageData.doctor.doc_max_date,t=this.pageData.doctor.doc_max_days,r=this.pageData.doctor.time_gap_to_start_slot;r&&r!=""&&parseInt(r)&&parseInt(r)>0?this.timeGapToStartSlot=parseInt(r):this.timeGapToStartSlot=0;let l=x.now().toFormat("yyyy-MM-dd");if(this.slotSearch.docAvailStartDate=l,e&&e!=="0000-00-00"){let L=x.fromISO(e),N=x.now().startOf("day");L.isValid&&L.startOf("day")>N&&(this.slotSearch.docAvailStartDate=e,l=L.toFormat("yyyy-MM-dd"))}let p="",m="";if(t&&t!==""&&t!=="0"&&parseInt(t,10)>0&&(p=x.now().plus({days:parseInt(t,10)}).toFormat("yyyy-MM-dd")),i&&i!==""&&i!=="0000-00-00"){let L=x.fromISO(i);
2L.isValid&&(m=L.toFormat("yyyy-MM-dd"))}let d="",b=p&&p!==""?x.fromISO(p):null,k=m&&m!==""?x.fromISO(m):null;b&&b.isValid&&k&&k.isValid?d=b.toMillis()<=k.toMillis()?p:m:b&&b.isValid?d=p:k&&k.isValid&&(d=m),this.slotSearch.docAvailEndDate=d;let S=x.fromISO(l),D=S.plus({days:3}),I;if(I=D.toFormat("yyyy-MM-dd"),d&&d!==""){let L=x.fromISO(d);L.isValid&&L>D?I=D.toFormat("yyyy-MM-dd"):L.isValid&&L<D&&(I=L.toFormat("yyyy-MM-dd"))}if(this.slotSearch.searchStart=l,this.slotSearch.searchEnd=I,this.minDate=S.isValid?S.toJSDate():x.now().startOf("day").toJSDate(),this.slotSearch.docAvailEndDate&&this.slotSearch.docAvailEndDate!==""){let L=x.fromISO(this.slotSearch.docAvailEndDate);this.maxDate=L.isValid?L.toJSDate():x.now().plus({months:12}).toJSDate()}else this.maxDate=x.now().plus({months:12}).toJSDate()}showHistoryError(e){let i=e,t=this.translocoService.translate("doc_profile_page.title_history_error");E.default.fire({title:t,html:i,icon:"info",showCancelButton:!1,confirmButtonText:this.translocoService.translate("common.btn_ok"),allowEscapeKey:!1,allowOutsideClick:!1}).then(r=>{this.selectedIndex()==0&&this.onTypeChangeContinue()})}showLockedError(){let e=this.translocoService.translate("doc_profile_page.patient_locked_booking_error_msg_2"),i=this.translocoService.translate("doc_profile_page.title_account_locked");E.default.fire({title:i,html:e,icon:"info",showCancelButton:!0,cancelButtonText:this.translocoService.translate("common.btn_cancel"),confirmButtonText:this.translocoService.translate("common.btn_dashboard")}).then(t=>{t.isConfirmed&&this.goToMyFamily()})}showAfterLoginHistoryError(){let e=this.translocoService.translate("doc_profile_page.msg_alert_booking_not_allowed_for_history_after_login"),i=this.translocoService.translate("doc_profile_page.title_alert_booking_not_allowed_for_history_after_login");E.default.fire({title:i,html:e,icon:"info",showCancelButton:!1,confirmButtonText:this.translocoService.translate("common.btn_ok"),allowEscapeKey:!1,allowOutsideClick:!1}).then(t=>{this.selectedIndex()==0&&this.onTypeChangeContinue()})}onTypeChangeContinue(){this.goTo(this.selectedIndex()+1,!1)}setUpPaymentInfo(e){this.payment.showPaymentButton=!1,this.payment.paymentAmount=0,this.bookingRules.paymentProvider==="stripe"&&e&&e.payment_to_book&&!(0,Q.isNaN)(parseInt(e.payment_to_book))&&parseInt(e.payment_to_book)==1&&!(0,Q.isNaN)(parseFloat(e.price))&&parseFloat(e.price)>.99&&(this.payment.paymentAmount=(0,Q.round)(parseFloat(e.price),2),this.payment.showPaymentButton=!0)}initPayment(e=!1){if(this.bookingRules.paymentProvider==="stripe"){this.initStripePayment();return}else return}initStripePayment(){let e=this.doctorId,i=this.patientAuth.user&&this.patientAuth.user.id?this.patientAuth.user.id:0;if(!e||!i||!this.payment.paymentAmount||!this.bookingUuid){E.default.fire(this.translocoService.translate("common.title_error"),this.translocoService.translate("common.something_went_wrong_try_again"),"error");return}this.showPaymentDialog("stripe","")}onStripePaymentSuccess(){this.payment.isPaymentComplete=!0,this.bookappointment()}onSubmitPayButton(){if(this.paymentDialogRef&&this.paymentDialogRef.close(),this.payment.redirectUrl&&this.payment.redirectUrl!=""&&this.paymentObj&&this.paymentObj.transactionId&&this.paymentObj.transactionId!=""){let e=this.payment.redirectUrl,i=this.paymentObj.transactionId;this.showPaymentDialog(e,i)}else this.initPayment(!0)}showPaymentDialog(e,i){this.paymentDialogRef=this._matDialog.open(Bi,{panelClass:["nova-dialog-624-auto-height","nova-dialog-single"],data:{booking_uuid:this.bookingUuid,doctor_id:this.doctorId,patient_id:this.patientAuth.user&&this.patientAuth.user.id?this.patientAuth.user.id:0,value:this.payment.paymentAmount}}),this.paymentDialogRef.afterClosed().subscribe(t=>{t==="success"&&this.onStripePaymentSuccess()})}onChangeLiteBookingStatus(e){this.patientSelectedLiteBooking.set(e)}setupUrls(){this.isLogosPro==!0?this.urlBookLiteAppointment="api/createLogosAppointment":this.urlBookLiteAppointment="api/patBookLiteAppoinment"}onLiteBookingPatData(e){this.liteBookingData=null,e&&e.lite_first_name&&e.lite_first_name!=""&&e.lite_last_name&&e.lite_last_name!=""&&e.lite_dob&&e.lite_dob!=""&&e.lite_phone&&e.lite_phone!=""&&e.lite_gender&&e.lite_gender!=""&&(this.liteBookingData=e),this.isLogosPro==!0?this.isLogosBookingFormHasError(!0)==!1&&this.bookLogosAppointment(!0):this.selection.typeOfBooking=="clikolist"?this.isClikoListBookingFormHasError()==!1&&this.bookClikoListLiteAppointment(0):this.isBookingFormHasError()==!1&&this.bookLiteAppointment()}isBookingFormHasError(){let e=this.liteBookingData||{},i=[],t=!1;if(!this.selection.typeId&&this.isLogosPro==!1){t=!0;let p=this.translocoService.translate("doc_profile_page.error_msg_type_name");i.push(p)}if(!(this.selection.selectedSlot&&this.selection.selectedSlot.from_time&&this.selection.selectedSlot.to_time)){t=!0;let p=this.translocoService.translate("doc_profile_page.error_msg_slot_selection");i.push(p)}if(!(e.lite_first_name&&e.lite_first_name!="")){t=!0;let p=this.translocoService.translate("doc_profile_page.error_msg_first_name");i.push(p)}if(!(e.lite_last_name&&e.lite_last_name!="")){t=!0;let p=this.translocoService.translate("doc_profile_page.error_msg_last_name");i.push(p)}if(!(e.lite_dob&&e.lite_dob!="")){t=!0;let p=this.translocoService.translate("doc_profile_page.error_msg_dob");i.push(p)}let r="",l=e.lite_phone;if(l&&l.number&&l.dialCode&&l.e164Number&&(r=l.e164Number),r==""){t=!0;let p=this.translocoService.translate("doc_profile_page.error_msg_phone");i.push(p)}if(this.bookingRules.isSsnRequired){let p=(e.lite_ssn??"").trim();p===""?(t=!0,i.push(this.translocoService.translate("doc_profile_page.ssn_required_error_msg"))):p.replace(/\D/g,"").length!==13&&(t=!0,i.push(this.translocoService.translate("doc_profile_page.ssn_required_error_msg")))}if(t==!0){let p=i.join("<br>");E.default.fire({title:this.translocoService.translate("common.title_error"),html:p,icon:"error",showCancelButton:!1,confirmButtonText:this.translocoService.translate("common.btn_ok"),allowEscapeKey:!1,allowOutsideClick:!1})}return t}bookLiteAppointment(){if(this.isBookingFormHasError()==!1){let e=this.selection.typeId,i=this.liteBookingData.lite_first_name,t=this.liteBookingData.lite_last_name,r=this.liteBookingData.lite_dob,l=r&&r.isValid?r.toFormat("yyyy-MM-dd"):"",p=this.selection.selectedSlot.from_time,m=this.selection.selectedSlot.to_time,d=this.selection.selectedSlot.slotid,b=this.selection.selectedSlot.slottype,k=this.selection.selectedSlot.slot_date,S=this.liteBookingData.lite_email&&this.liteBookingData.lite_email!=""?this.liteBookingData.lite_email:"",D="",I=this.liteBookingData.lite_ssn&&this.liteBookingData.lite_ssn!=""?this.liteBookingData.lite_ssn:"",L=this.liteBookingData.lite_gender&&this.liteBookingData.lite_gender!=""?this.liteBookingData.lite_gender:"",N="",C=this.liteBookingData.lite_phone;C&&C.number&&C.dialCode&&C.e164Number&&(N=C.e164Number);let V=new FormData;V.append("first_name",i),V.append("last_name",t),V.append("dob",l),V.append("date",k),V.append("start_time",p),V.append("end_time",m),V.append("doctor_id",this.doctorId.toString()),V.append("type_id",e.toString()),V.append("location_id",this.selection.workLocationId),V.append("slot_id",d),V.append("slot_type",b),V.append("patient_timezone",this.patientZone),V.append("email",S),V.append("maiden_name",D),V.append("ssn",I),V.append("gender",L),V.append("confirm_note",""),V.append("note_by_doc_to_doc",""),V.append("phone",N);let j=De(Pe({apt_date:k,apt_time:p},this.tzBookingDisplayFields()),{replacement_name:this.holdState.replacementName||"",pro_name:[this.pageData?.doctor?.title,this.pageData?.doctor?.last_name,this.pageData?.doctor?.first_name].filter(
2Boolean).join(" "),apt_address:this.selection.selectedLocation?.location_address?[this.selection.selectedLocation.location_address,this.selection.selectedLocation.location_zip,this.selection.selectedLocation.city_name].filter(Boolean).join(", "):[this.pageData?.clinic_address,this.pageData?.clinic_zipcode,this.pageData?.clinic_city_name].filter(Boolean).join(", "),apt_type:this.selection.selectedType?.type_name??""}),H=this.patientAuth.isPatLogin;this.apiService.patBookLiteAppointment(V,this.urlBookLiteAppointment).subscribe({next:U=>{if(U&&U.status=="success")this.resetBookingProcess(),this.selection.selectedSlot&&this.holdState.blockAptId&&this.clearHoldSlot("booking"),this.router.navigate(["/rdv-confirme"],{state:{booking_display:j,calendar_apt:null,is_logged_in:H}});else if(U&&U.response&&U.response=="error")if(U.errors&&U.errors.length){let W=U.errors,he=this.translocoService.translate("doc_profile_page.check_error_list_msg")+"<br/>";W.forEach(Y=>{he+="<span>"+Y+"</span><br/>"}),E.default.fire(this.translocoService.translate("common.title_error"),he,"error")}else E.default.fire(this.translocoService.translate("common.title_error"),this.translocoService.translate("doc_profile_page.validation_failed_msg"),"error");else U&&U.status=="error"&&U.code&&String(U.code).indexOf("logos_")===0?this.showLogosBookingRefused(U):E.default.fire(this.translocoService.translate("common.title_error"),this.translocoService.translate("common.something_went_wrong_try_again"),"error")},error:()=>this.onHttpError()})}}changeTypeOfBooking(e){this.selection.typeOfBooking=e,this.selection.typeOfBooking=="clikolist"?(this.patientSelectedClikolistBooking.set(!0),this.allowClikolistLiteBooking?this.showLiteBookingOption.set(!0):this.showLiteBookingOption.set(!1)):this.patientSelectedClikolistBooking.set(!1)}showLogosBookingRefused(e){let i=e&&e.msg?e.msg:"",t=e&&e.code=="logos_redundant",r=this.translocoService.translate("doc_profile_page.logos_refused_intro");i!=""&&(r+="<br/><br/><strong>"+this.translocoService.translate("doc_profile_page.logos_refused_reason_label")+"</strong><br/>"+i),r+="<br/><br/>"+this.translocoService.translate(t?"doc_profile_page.logos_refused_advice_redundant":"doc_profile_page.logos_refused_advice"),E.default.fire({title:this.translocoService.translate("doc_profile_page.logos_refused_title"),html:r,icon:"warning",confirmButtonText:"OK"})}getSchemaJSON(e){if(e&&e.doctor&&e.doctor&&e.doctor.title&&e.doctor.last_name&&e.doctor.first_name){let i=e.doctor.title+" "+e.doctor.last_name+" "+e.doctor.first_name,t=e.doctor.doc_page_short_intro,r=e.doctor.splstr?e.doctor.splstr:"",l=e.doctor.doc_url?this.APP_ORIGIN+"/professionnel/"+e.doctor.doc_url:"",p=e.doctor.avatar&&e.random_ver?this.APP_ORIGIN+"/uploads/users/"+e.doctor.avatar+"?ver="+e.random_ver:"",m=e.clinic_name?e.clinic_name:"",d=e.clinic_address?e.clinic_address:"",b=e.clinic_zipcode?e.clinic_zipcode:"",k=e.clinic_city_name&&e.clinic_state_name?e.clinic_city_name+", "+e.clinic_state_name:"",S=e.doctor.payment_method_text?e.doctor.payment_method_text:"",D=e.clinic_tel?.trim()||e.display_phone_1?.trim()||e.display_phone_2?.trim()||"",I=e.data_timinigs&&(0,Q.isArray)(e.data_timinigs)&&e.data_timinigs.length>0?e.data_timinigs:"";return{"@context":"http://schema.org/","@type":"Physician",name:i,description:t,medicalSpecialty:r,legalName:m,url:l,image:p,address:{"@type":"PostalAddress",name:m,streetAddress:d,postalCode:b,addressLocality:k},paymentAccepted:S,telephone:D,openingHour:I,priceRange:"Variable"}}}injectSchemaScript(e){this.removeSchemaScript();let i=this.renderer.createElement("script");i.type="application/ld+json",i.text=JSON.stringify(e).replace(/</g,"\\u003c"),this.renderer.appendChild(this.document.head,i),this.schemaScriptEl=i}removeSchemaScript(){this.schemaScriptEl&&(this.renderer.removeChild(this.document.head,this.schemaScriptEl),this.schemaScriptEl=null)}canonicaliseProUrl(e){let i=e&&e!=""?e:this.docUrl;if(!i||i=="")return;let t=this.router.url.split("#")[0].split("?")[0].split("/");if(decodeURIComponent(t[t.length-1]||"")!=this.docUrl)return;this.setCanonicalLink(this.APP_ORIGIN+"/professionnel/"+i);let r=i!=this.docUrl;if(!this.extProQueryParam&&!r)return;t[t.length-1]=i;let l=t.join("/"),p=Pe({}
2,this.route.snapshot.queryParams);delete p.extpro,r&&(this.skipReloadForDocUrl=i,this.docUrl=i),this.router.navigate([l],{queryParams:p,replaceUrl:!0}).then(m=>{m||(this.skipReloadForDocUrl="")}).catch(()=>{this.skipReloadForDocUrl=""})}setCanonicalLink(e){this.removeCanonicalLink();let i=this.renderer.createElement("link");i.rel="canonical",i.href=e,this.renderer.appendChild(this.document.head,i),this.canonicalLinkEl=i}removeCanonicalLink(){this.canonicalLinkEl&&(this.renderer.removeChild(this.document.head,this.canonicalLinkEl),this.canonicalLinkEl=null)}goBack(){let e=this.nav.getPreviousUrl();e?this.router.navigateByUrl(e):this.router.navigate(["/"])}goToMyFamily(){this.selection.selectedSlot&&this.holdState.blockAptId&&this.clearHoldSlot("booking"),this.loader.show(this.translocoService.translate("common.loading_msg"));let e=()=>{this.loader.hide(),this.router.navigate(["/patient-dashboards/membres-de-famille"])};this.authService.getPatUserIfAuth().pipe(rt(1)).subscribe({next:e,error:e})}onSearchBarRedirect(e){this.router.navigate([e.url],{queryParams:e.queryParams}).then(()=>{})}redirectToProPage(e){this.router.navigate(["/professionnel/"+e])}redirectClikoListPage(){if(this.pageData&&this.pageData.doctor&&this.pageData.doctor.doc_url&&this.pageData.doctor.doc_url!=""){let e="/professionnel-clikolist/"+this.pageData.doctor.doc_url;this.router.navigate([e],{queryParams:{b:"ibs"}}).then(()=>{})}}recordEvent(e,i){let t=0;this.patientAuth.isPatLogin&&this.selection.selectedPatient&&this.selection.selectedPatient.id&&(t=this.selection.selectedPatient.id);let r={uuid:this.visitorUuid,step:e,is_completed:i,doctor_id:this.doctorId,type_id:this.selection.typeId?this.selection.typeId:0,location_id:this.selection.workLocationId?this.selection.workLocationId:0,uid:t};this.authService.recordEvent(r).pipe(rt(1)).subscribe({next:()=>{},error:()=>{}})}onHttpError(){this.loader.hide(),this.slotSearch.isLoadingSlot=!1;let e=this.translocoService.translate("common.title_error"),i=this.translocoService.translate("common.something_went_wrong_try_again");E.default.fire(e,i,"error"),this._changeDetectorRef.markForCheck()}notyMessageError(e,i){this._matSnackBar.open(e,this.translocoService.translate("common.btn_ok"),{verticalPosition:"top",horizontalPosition:"end",duration:5e3})}handleSlotCalendarNavigation(e){let i=e;this.updateNextStartDate(i),this.bookingRules.callToNextDates&&this.fetchNextAvailDates()}updateNextStartDate(e){this.nextDateStart=e.startOf("month").toFormat("yyyy-MM-dd"),this.nextDateEnd=e.endOf("month").toFormat("yyyy-MM-dd");let i=e.startOf("month"),t=this._dateAdapter.parse(i.toFormat("yyyy-MM-dd"),"yyyy-MM-dd");this.calendarNext&&(this.calendarNext.activeDate=t),this.startDate=t}updateDateClass(){this.dateClass=(e,i)=>{if(i==="month"){e=new Date(e);let t=e.getDate(),r=e.getMonth(),l=e.getFullYear(),p=new Date(l,r,t);return this._datesToHighlight.some(m=>m.getTime()===p.getTime())?"example-custom-date-class":""}return""}}updateDatesToHighlight(e){this.datesToHighlight=e,this._changeDetectorRef.markForCheck()}toggleDateMatPicker(){this.bookingRules.callToNextDates?this.fetchNextAvailDates():this.datePickerNext.opened||this.datePickerNext.open()}fetchNextAvailDates(){this.loader.show(this.translocoService.translate("common.loading_msg"));let e={doctorid:this.doctorId,typeid:this.selection.typeId,from:this.nextDateStart,to:this.nextDateEnd,slotfor:this.slotSearch.slotFor,work_location_id:this.selection.workLocationId,date_mandatory_value:this.questions.dateMandatoryValue,uuid:this.visitorUuid};this.apiService.getAvailDatesForCal(e).subscribe({next:i=>{i&&i.dates&&i.dates.length>0?(this.nextDates=i.dates,this.setDatesForCal(i.dates)):this.setDatesForCal([]),this.loader.hide()},error:()=>this.loader.hide()})}setDatesForCal(e){let i=[];for(let t=0;t<e.length;t++){let r=e[t],l=x.fromISO(r).toJSDate();i.push(l)}this.updateDatesToHighlight(i),this.datePickerNext.opened?this._calendarService.activeCalendar?.updateTodaysDate():this.datePickerNext.open()}onMatDateSelected(e){if(e&&e.value&&this.selection.typeId&&this.selection.typeId>0&&this.bookingRules.allowPatientBooking){let i=e.value.toFormat("yyyy-MM-dd");if(this.bookingRules.needPatHistory&&!this.patientAuth.patHistory||this.bookingRules.requireLogin&&!this.patientAuth.isPatLogin)return;if(this.bookingRules.onlyNewPatient&&!this.bookingRules.onlyNewPatientAnyMember&&this.patientAuth.patHistory||this.bookingRules.requireLogin&&!this.patientAuth.isPatLogin)return;{this.slotSearch.slotFor="next";let t=this.slotSearch.docAvailStartDate,r=this.slotSearch.docAvailEndDate,l=x.fromFormat(i,"yyyy-MM-dd"),p=x.now().startOf("day"),m=t?x.fromFormat(t,"yyyy-MM-dd"):null,d=r?x.fromFormat(r,"yyyy-MM-dd"):null,b=l.plus({days:1})>=p,k=(!m||l>=m)&&(!d||l<=d);if(b&&k){this.slotSearch.slotFor="next";let S=l.toFormat("yyyy-MM-dd"),D=l.plus({days:3}),I=D.toFormat("yyyy-MM-dd");r!=""&&d&&D<=d?(this.slotSearch.isLoadingSlot=!0,this.slotSearch.searchStart=S,this.slotSearch.searchEnd=I,this.clearHoldSlot("date_change"),this.preLoadSlots()):r!=""&&d&&D>=d?(this.slotSearch.isLoadingSlot=!0,this.slotSearch.searchStart=S,this.slotSearch.searchEnd=d.toFormat("yyyy-MM-dd"),this.clearHoldSlot("date_change"),this.preLoadSlots()):r==""?(this.slotSearch.isLoadingSlot=!0,this.slotSearch.searchStart=S,this.slotSearch.searchEnd=I,this.clearHoldSlot("date_change"),this.preLoadSlots()):this.slotSearch.isLoadingSlot=!1}else this.slotSearch.isLoadingSlot=!1}}else this.slotSearch.isLoadingSlot=!1}onMonthSelected(e){let i=e;this.nextDateStart=i.startOf("month").toFormat("yyyy-MM-dd"),this.nextDateEnd=i.endOf("month").toFormat("yyyy-MM-dd");let t=i.startOf("month"),r=this._dateAdapter.parse(t.toFormat("yyyy-MM-dd"),"yyyy-MM-dd");this.calendarNext.activeDate=r,this.startDate=r,this.bookingRules.callToNextDates&&this.fetchNextAvailDates()}removeProfile(){this._matDialog.open(ao,{panelClass:["nova-dialog-624-auto-height","nova-dialog-single"],data:{external_pro_id:this.externalProfileData?.id,pro_name:[this.externalProfileData?.title,this.externalProfileData?.last_name,this.externalProfileData?.first_name].filter(
2Boolean).join(" ")}})}invitePro(){let e=this.externalProfileData?.id;e&&(this.apiService.trackExternalProInviteClick(e).subscribe({next:()=>{},error:()=>{}}),this.browserStorage.setItem(`ext_pro_invite_${e}`,"1"),this.hasInvited=!0)}loadLogosSchedules(){this.doctorUuid&&this.doctorUuid!=""&&this.apiService.fetchLogosSchedules(this.doctorUuid,this.urlFetchLogosSchedules).subscribe({next:e=>{e&&e.status&&e.status=="success"&&(this.bookingRules.types=e.serviceTypes)},error:()=>{}})}typeChangeTriggeredLogos(){if(this.setUpDates(),this.hideNoSlotDivs(),this.selection.typeId&&this.selection.typeId>0)if(this.wizardStage.set(ie.TypeChosen),this.clearHoldSlot(""),this.bookingRules.needPatHistory=this.selection.selectedType.need_pat_history==1,this.bookingRules.needPatHistoryAnyMember=this.bookingRules.needPatHistory&&this.selection.selectedType.need_pat_history_any_member==1,this.bookingRules.onlyNewPatient=this.selection.selectedType.only_new_patient==1,this.bookingRules.onlyNewPatientAnyMember=this.bookingRules.onlyNewPatient&&this.selection.selectedType.only_new_patient_any_member==1,this.bookingRules.requireLogin=this.selection.selectedType.require_login==1||this.bookingRules.needPatHistory,this.bookingRules.allowPatientBooking=this.selection.selectedType.allow_patient_booking==1,this.bookingRules.allowWaitList=this.selection.selectedType.allow_wait_list==1,this.bookingRules.allowPatientBooking)if((this.bookingRules.requireLogin||this.bookingRules.needPatHistory)&&!this.patientAuth.isPatLogin){this.btnLoginToSeeSlots=!0;let e=this.selection.selectedType&&this.selection.selectedType.info_login_to_book&&this.selection.selectedType.info_login_to_book!=""?this.selection.selectedType.info_login_to_book:this.translocoService.translate("doc_profile_page.msg_patient_history");this.showHistoryError(e)}else this.bookingRules.onlyNewPatient&&!this.patientAuth.isPatLogin?(this.btnLoginToSeeSlots=!0,this.showHistoryError(this.translocoService.translate("doc_profile_page.msg_only_new_patient_default"))):(this.bookingRules.requireLogin||this.bookingRules.needPatHistory||this.bookingRules.onlyHeadCanBook||this.bookingRules.onlyNewPatient)&&this.patientAuth.isPatLogin?(this.btnLoginToSeeSlots=!1,this.bookingRules.needPatHistory?this.loadPatients(this.authService.currentUserValue,!1,!0,null):this.bookingRules.onlyNewPatient?this.loadPatients(this.authService.currentUserValue,!1,!0,null):(this.loadPatients(this.authService.currentUserValue,!1,!1,null),this.preLoadSlots())):(this.btnLoginToSeeSlots=!1,this.patientAuth.isPatLogin&&this.loadPatients(this.authService.currentUserValue,!1,!1,null),this.preLoadSlots());else{this.btnLoginToSeeSlots=!1;let e=this.selection.selectedType&&this.selection.selectedType.info_booking_not_allowed&&this.selection.selectedType.info_booking_not_allowed!=""?this.selection.selectedType.info_booking_not_allowed:this.translocoService.translate("doc_profile_page.msg_booking_not_allowed_default");E.default.fire(this.translocoService.translate("common.title_error"),e,"info")}}getAvailableSlotsAndShowLogos(){if(this.doctorId&&this.selection.typeId&&this.slotSearch.searchStart&&this.slotSearch.searchEnd&&this.slotSearch.slotFor){this.slotSearch.isLoadingSlot=!0,this.loader.show(this.translocoService.translate("common.loading_msg")),this.hideNoSlotDivs(),this.bookingRules.confirmNote="",this.bookingRules.needCnfFromPatient=!1,this.bookingRules.onlyHeadCanBook=!1,this.bookingRules.allowLiteBooking=!1;let e=0,i=0;this.slotSearch.nextAvailDate="",this.slotSearch.nextAvailDateDisplay="",this.slotSearch.getNextAvailDate=0,this.slotSearch.maxDateAllowed="",this.slotSearch.minDateAllowed="",this.bookingRules.confirmNote="",this.bookingRules.needCnfFromPatient=!1,this.bookingRules.onlyHeadCanBook=!1,this.bookingRules.allowLiteBooking=!0,this.questions.appointmentQuestions=[],this.questions.isConditionsRequired=!1,this.questions.isDependedSlot=!1,this.bookingRules.isLocationNeeded=!1;let t={doctor_uuid:this.doctorUuid,type_id:this.selection.typeId,start:this.slotSearch.searchStart,end:this.slotSearch.searchEnd,uuid:this.visitorUuid};this.recordEvent("step_1",1),this.holdState.timerStarted=!1,this.slotTimeOut&&this.slotTimeOut.stop(),this.apiService.fetchDoctorSlots(t).subscribe({next:r=>{if(this.slotSearch.isLoadingSlot=!1,this.loader.hide(),this.slotSearch.showNextAvailDate=!1,r){let p=r.slots,m=0,d=0,b=0,k=0,S=[];for(let W in p)S.push(W);let D=S.length>0?S[0]:this.slotSearch.searchStart,I=S.length>2?S[2]:S.length>0?S[S.length-1]:this.slotSearch.searchEnd,L=x.fromISO(D).startOf("day"),N=x.fromISO(I
2).startOf("day"),C=this.slotSearch.docAvailEndDate&&this.slotSearch.docAvailEndDate!==""?x.fromISO(this.slotSearch.docAvailEndDate).startOf("day"):null,V=this.slotSearch.docAvailStartDate&&this.slotSearch.docAvailStartDate!==""?x.fromISO(this.slotSearch.docAvailStartDate).startOf("day"):null;C&&C.isValid&&N.isValid&&C.toMillis()<=N.toMillis()?(this.slotSearch.searchStart=D,this.slotSearch.searchEnd=this.slotSearch.docAvailEndDate):(this.slotSearch.searchStart=D,this.slotSearch.searchEnd=I),V&&V.isValid&&L.isValid&&V.toMillis()>=L.toMillis()?(this.slotSearch.searchStart=this.slotSearch.docAvailStartDate,this.slotSearch.searchEnd=I):(this.slotSearch.searchStart=D,this.slotSearch.searchEnd=I),this.hideNoSlotDivs();let j=[],H=[];for(let W in p){let he=Array.isArray(p[W])?p[W]:[],Y=0;H.push(W);let ye=0,we=0,fe=x.fromISO(W).startOf("day");if(this.slotSearch.docAvailEndDate&&this.slotSearch.docAvailEndDate!==""){let _e=x.fromISO(this.slotSearch.docAvailEndDate).startOf("day");_e.isValid&&fe.isValid&&_e.toMillis()<fe.toMillis()&&(ye=1)}if(this.slotSearch.docAvailStartDate&&this.slotSearch.docAvailStartDate!==""){let _e=x.fromISO(this.slotSearch.docAvailStartDate).startOf("day");_e.isValid&&fe.isValid&&_e.toMillis()>fe.toMillis()&&(we=1)}if(he.length>0&&he.length>i&&ye==0&&we==0)for(let _e in he){let K=he[_e];if(!K)continue;let Z=0,G=1;K.hasOwnProperty("capa")&&K.capa&&parseInt(K.capa)>1&&(G=parseInt(K.capa)),parseInt(K.booked)&&(Z=Z+parseInt(K.booked)),parseInt(K.booked_c)&&(Z=Z+parseInt(K.booked_c)),parseInt(K.cancelled_apt)&&(Z=Z+parseInt(K.cancelled_apt));let me=G-Z;parseInt(K.booked_block)>0&&(me=0);let ve=this.toDisplaySlot(W,K.start),Ae=x.now().plus({minutes:this.timeGapToStartSlot||0});if(K.id&&me>0&&ve.ms>0&&ve.ms>=Ae.toMillis()&&(e==0||e==1&&Y<yt)){let ke={slottype:K.slot_type,slotid:K.id,from_time:K.start,to_time:K.end,docid:this.doctorId,prebook:m,clinic_id:this.pageData.doctor.clinic_id,slot_date:W,value:K.start+"-"+K.end,display:K.start,d_key:ve.key,d_time:ve.time,d_ms:ve.ms,d_shifted:ve.shifted};j.push(ke),Y=Y+1}}}this.applySlotColumns(j,H),this.selectedIndex()==0&&this.onContinue(),this._changeDetectorRef.markForCheck()}else this.recordEvent("step_1_no_slots",0)},error:()=>this.onHttpError()})}}isLogosBookingFormHasError(e){let i=[],t=!1;if(!(this.selection.selectedSlot&&this.selection.selectedSlot.from_time&&this.selection.selectedSlot.to_time)){t=!0;let r=this.translocoService.translate("doc_profile_page.error_msg_slot_selection");i.push(r)}if(e){let r=this.liteBookingForm.getRawValue();if(!(r&&r.lite_first_name!="")){t=!0;let m=this.translocoService.translate("doc_profile_page.error_msg_first_name");i.push(m)}if(!(r&&r.lite_last_name!="")){t=!0;let m=this.translocoService.translate("doc_profile_page.error_msg_last_name");i.push(m)}if(!(r&&r.lite_dob!="")){t=!0;let m=this.translocoService.translate("doc_profile_page.error_msg_dob");i.push(m)}let l="",p=r.lite_phone;if(p&&p.number&&p.dialCode&&p.e164Number&&(l=p.e164Number),l==""){t=!0;let m=this.translocoService.translate("doc_profile_page.error_msg_phone");i.push(m)}if(this.bookingRules.isSsnRequired){let m=(r.lite_ssn??"").trim();m===""?(t=!0,i.push(this.translocoService.translate("doc_profile_page.ssn_required_error_msg"))):m.replace(/\D/g,"").length!==13&&(t=!0,i.push(this.translocoService.translate("doc_profile_page.ssn_required_error_msg")))}}else if(this.selection.selectedPatient&&this.selection.selectedPatient.id){if(this.bookingRules.isSsnRequired){let r=(this.selection.selectedPatient.ssn??"").trim();r===""?(t=!0,i.push(this.translocoService.translate("doc_profile_page.ssn_required_error_msg"))):r.replace(/\D/g,"").length!==13&&(t=!0,i.push(this.translocoService.translate("doc_profile_page.ssn_required_error_msg")))}}else t=!0,i.push(this.translocoService.translate("doc_profile_page.error_msg_patient_required"));if(t==!0){let r=i.join("<br>");E.default.fire({title:this.translocoService.translate("common.title_error"),html:r,icon:"error",showCancelButton:!1,confirmButtonText:this.translocoService.translate("common.btn_ok"),allowEscapeKey:!1,allowOutsideClick:!1})}return t}bookLogosAppointment(e){if(this.isLogosBookingFormHasError(e)==!1){let i=this.selection.typeId,t=e?this.liteBookingData.lite_first_name:"",r=e?this.liteBookingData.lite_last_name:"",l=e?this.liteBookingData.lite_dob:null,p=l&&l.isValid?l.toFormat("yyyy-MM-dd"):"",m=this.selection.selectedSlot.from_time,d=this.selection.selectedSlot.to_time,b=this.selection.selectedSlot.slot_date,k=e&&this.liteBookingData.lite_email&&this.liteBookingData.lite_email!=""?this.liteBookingData.lite_email:"",S="",D=e&&this.liteBookingData.lite_ssn&&this.liteBookingData.lite_ssn!=""?this.liteBookingData.lite_ssn:"",I=e&&this.liteBookingData.lite_gender&&this.liteBookingData.lite_gender!=""?this.liteBookingData.lite_gender:"",L="",N=e?this.liteBookingData.lite_phone:null;N&&N.number&&N.dialCode&&N.e164Number&&(L=N.e164Number);let C=new FormData;C.append("first_name",t),C.append("last_name",r),C.append("dob",p),C.append("date",b),C.append("start_time",m),C.append("end_time",d),this.selection.selectedPatient&&this.selection.selectedPatient.id&&C.append("patient_id",this.selection.selectedPatient.id.toString()),C.append("doctor_id",this.doctorId.toString()),C.append("type_name",this.selection.selectedType.type_name),C.append("logos_type_id",this.selection.selectedType.id.toString()),C.append("patient_timezone",this.patientZone),C.append("email",k),C.append("maiden_name",S),C.append("ssn",D),C.append("gender",I),C.append("phone",L);let V=De(Pe({apt_date:b,apt_time:m},this.tzBookingDisplayFields()),{replacement_name:this.holdState.replacementName||"",pro_name:[this.pageData?.doctor?.title,this.pageData?.doctor?.last_name,this.pageData?.doctor?.first_name].filter(
2Boolean).join(" "),apt_address:this.selection.selectedLocation?.location_address?[this.selection.selectedLocation.location_address,this.selection.selectedLocation.location_zip,this.selection.selectedLocation.city_name].filter(Boolean).join(", "):[this.pageData?.clinic_address,this.pageData?.clinic_zipcode,this.pageData?.clinic_city_name].filter(Boolean).join(", "),apt_type:this.selection.selectedType?.type_name??""}),j=this.patientAuth.isPatLogin;this.apiService.patBookLiteAppointment(C,this.urlBookLiteAppointment).subscribe({next:H=>{if(H&&H.status=="success")this.wizardStage.set(ie.Confirmed),this.resetBookingProcess(),this.router.navigate(["/rdv-confirme"],{state:{booking_display:V,calendar_apt:null,is_logged_in:j}});else if(H&&H.response&&H.response=="error")if(H.errors&&H.errors.length){let U=H.errors,W=this.translocoService.translate("doc_profile_page.check_error_list_msg")+"<br/>";U.forEach(he=>{W+="<span>"+he+"</span><br/>"}),E.default.fire(this.translocoService.translate("common.title_error"),W,"error")}else E.default.fire(this.translocoService.translate("common.title_error"),this.translocoService.translate("doc_profile_page.validation_failed_msg"),"error");else H&&H.status=="error"&&H.code&&String(H.code).indexOf("logos_")===0?this.showLogosBookingRefused(H):E.default.fire(this.translocoService.translate("common.title_error"),this.translocoService.translate("common.something_went_wrong_try_again"),"error")},error:()=>this.onHttpError()})}}goToDirectClikolistBooking(){if(this.patientAuth.user&&this.patientAuth.user.id&&this.patientAuth.user.group_id!=oe.Patient){let e=this.translocoService.translate("doc_profile_page.title_only_patient_can_book"),i=this.translocoService.translate("doc_profile_page.only_patient_can_book_msg_html");E.default.fire({title:e,html:i});return}else{if(this.v7EnterRdv("file"),!this.isBookingStarted())return;if(this.timingIDPassed&&this.timingIDPassed!=""){let e=this.availTimings.find(i=>i.timing===this.timingIDPassed);e&&this.v7PickRealTiming(e),this._changeDetectorRef.markForCheck(),this.timingIDPassed=""}}}onTimingChanged(e){this.patientAuth.isPatLogin&&this.loadPatients(this.authService.currentUserValue,!1,!1,null),this.selection.selectedTiming=e,this.showSelectedTimingMsg(),this._changeDetectorRef.markForCheck()}showSelectedTimingMsg(){this.holdState.selectedSlotMsgText="",this.selection.selectedTiming&&this.selection.selectedTiming.timing_text&&(this.holdState.selectedSlotMsgText=this.translocoService.translate("clikolist_lite_component.msg_timing_selected",{timing_text:this.selection.selectedTiming.timing_text}))}cleanSelectedTimingMsg(){this.holdState.selectedSlotMsgText=""}bookClikoListAppointment(e){if(this.recordEvent("step_booking",0),this.selection.selectedPatient&&this.selection.selectedPatient.id&&this.selection.selectedTiming){if(this.checkIfPatientLocked()){this.showLockedError();return}let t={apt_date:x.now().toFormat("yyyy-MM-dd"),apt_time:this.selection.selectedTiming?.timing_text??"",pro_name:[this.pageData?.doctor?.title,this.pageData?.doctor?.last_name,this.pageData?.doctor?.first_name].filter(Boolean).join(" "),apt_address:this.selection.selectedLocation?.location_address?[this.selection.selectedLocation.location_address,this.selection.selectedLocation.location_zip,this.selection.selectedLocation.city_name].filter(Boolean).join(", "):[this.pageData?.clinic_address,this.pageData?.clinic_zipcode,this.pageData?.clinic_city_name].filter(Boolean).join(", "),apt_type:""},r=this.patientAuth.isPatLogin;this.loader.show(this.translocoService.translate("common.loading_msg"));let l=this.doctorId,p=this.selection.selectedPatient.id,m=new FormData;m.append("timing",this.selection.selectedTiming.timing),m.append("doctor_id",l),m.append("patient_id",p),m.append("device","WEB_HOMEPAGE"),m.append("patient_timezone",this.patientZone),m.append("cancel_previous",e),this.apiService.createBookingForList(m).subscribe({next:d=>{this.loader.hide();let b=d.response&&d.response!=""?d.response:"";b=="success"?(this.wizardStage.set(ie.Confirmed),this.recordEvent("step_booking_success",1),this.cleanSelectedTimingMsg(),this.holdState.timerStarted=!1,this.router.navigate(["/rdv-confirme"],{state:{booking_display:t,calendar_apt:null,is_logged_in:r}})):b=="already_apt"?(this.recordEvent("step_booking_family_error",0),E.default.fire({title:this.translocoService.translate("common.title_error"),text:this.translocoService.translate("doc_profile_page.already_in_list_msg"),icon:"warning",showCancelButton:!0,cancelButtonText:this.translocoService.translate("common.btn_close"),confirmButtonColor:"#3085d6",confirmButtonText:this.translocoService.translate("doc_profile_page.already_in_list_btn_confirm"),allowEscapeKey:!1,allowOutsideClick:!1}).then(k=>{k.isConfirmed?this.bookClikoListAppointment(1):E.default.close()})):this.showClikolistBookingErrorResponse(b)},error:()=>this.onHttpError()})}else this.recordEvent("step_booking_error_input_validation",0),E.default.fire(this.translocoService.translate("common.title_error"),"\xC9chec de la validation ! Attention il faut bien remplir tous les champs s'il vous pla\xEEt !","error")}showClikolistBookingErrorResponse(e){let t={family_error:{event:"step_booking_family_error",msgKey:"doc_profile_page.fam
2ily_booking_error_msg"},blocked:{event:"step_booking_blocked",msgKey:"doc_profile_page.patient_blocked_booking_error_msg"},multiple_apt_not_allowed:{event:"step_booking_multiple_apt_not_allowed",msgKey:"doc_profile_page.multiple_appointment_not_allowed_msg"},auth_failure:{event:"step_booking_auth_failure",msgKey:"doc_profile_page.session_expired_msg"},file_error:{event:"step_booking_file_error",msgKey:"doc_profile_page.file_upload_error_msg"},no_slot:{event:"step_booking_no_slot",msgKey:"doc_profile_page.no_slot_available_error_msg"},no_slot1:{event:"step_booking_no_slot_1",msgKey:"doc_profile_page.no_slot_available_error_msg"},no_slot2:{event:"step_booking_no_slot_2",msgKey:"doc_profile_page.no_slot_available_error_msg"},no_slot3:{event:"step_booking_no_slot_3",msgKey:"doc_profile_page.maximum_apt_booked_error_msg"},payment_failed:{event:"step_booking_payment_failed",msgKey:"doc_profile_page.payment_failed_error_msg"}}[e]??{event:"step_booking_error_unknown",msgKey:"common.something_went_wrong_try_again"};this.recordEvent(t.event,0);let r=this.translocoService.translate("common.title_error"),l=this.translocoService.translate(t.msgKey);E.default.fire(r,l,"error")}bookClikoListLiteAppointment(e){if(this.isClikoListBookingFormHasError()==!0)return;this.loader.show(this.translocoService.translate("common.loading_msg"));let i=this.doctorId,t=this.liteBookingData.lite_first_name,r=this.liteBookingData.lite_last_name,l=this.liteBookingData.lite_dob,p=l&&l.isValid?l.toFormat("yyyy-MM-dd"):"",m=this.liteBookingData.lite_email&&this.liteBookingData.lite_email!=""?this.liteBookingData.lite_email:"",d="",b=this.liteBookingData.lite_ssn&&this.liteBookingData.lite_ssn!=""?this.liteBookingData.lite_ssn:"",k=this.liteBookingData.lite_gender&&this.liteBookingData.lite_gender!=""?this.liteBookingData.lite_gender:"",S="",D=this.liteBookingData.lite_phone;D&&D.number&&D.dialCode&&D.e164Number&&(S=D.e164Number);let I=new FormData;I.append("first_name",t),I.append("last_name",r),I.append("dob",p),I.append("phone",S),I.append("email",m),I.append("maiden_name",d),I.append("ssn",b),I.append("gender",k),I.append("timing",this.selection.selectedTiming.timing),I.append("doctor_id",i),I.append("patient_id","0"),I.append("device","WEB_HOMEPAGE"),I.append("patient_timezone",this.patientZone),I.append("cancel_previous",e);let L={apt_date:"",apt_time:this.selection.selectedTiming?.timing_text??"",pro_name:[this.pageData?.doctor?.title,this.pageData?.doctor?.last_name,this.pageData?.doctor?.first_name].filter(Boolean).join(" "),apt_address:this.selection.selectedLocation?.location_address?[this.selection.selectedLocation.location_address,this.selection.selectedLocation.location_zip,this.selection.selectedLocation.city_name].filter(Boolean).join(", "):[this.pageData?.clinic_address,this.pageData?.clinic_zipcode,this.pageData?.clinic_city_name].filter(Boolean).join(", "),apt_type:""},N=this.patientAuth.isPatLogin;this.apiService.createLiteBookingForList(I).subscribe({next:C=>{this.loader.hide();let V=C.response&&C.response!=""?C.response:"";if(V=="success")this.router.navigate(["/rdv-confirme"],{state:{booking_display:L,calendar_apt:null,is_logged_in:N}});else if(V=="error"&&C.errors&&C.errors.length){let j=C.errors,H=this.translocoService.translate("common.title_error"),U=this.translocoService.translate("doc_profile_page.check_error_list_msg")+"<br/>";j.forEach(W=>{U+="<span>"+W+"</span><br/>"}),E.default.fire(H,U,"error")}else if(V=="no_slot"){this.recordEvent("step_booking_no_slot",0);let j=this.translocoService.translate("common.title_error"),H=this.translocoService.translate("doc_profile_page.no_slot_available_error_msg");E.default.fire(j,H,"error")}else{this.recordEvent("step_booking_error_unknown",0);let j=this.translocoService.translate("common.title_error"),H=this.translocoService.translate("common.something_went_wrong_try_again");E.default.fire(j,H,"error")}},error:()=>this.onHttpError()})}isClikoListBookingFormHasError(){let e=[],i=!1;if(!(this.liteBookingData.lite_first_name&&this.liteBookingData.lite_first_name!="")){i=!0;let l=this.translocoService.translate("doc_profile_page.error_msg_first_name");e.push(l)}if(!(this.liteBookingData.lite_last_name&&this.liteBookingData.lite_last_name!="")){i=!0;let l=this.translocoService.translate("doc_profile_page.error_msg_last_name");e.push(l)}if(!(this.liteBookingData.lite_dob&&this.liteBookingData.lite_dob!="")){i=!0;let l=this.translocoService.translate("doc_profile_page.error_msg_dob");e.push(l)}let t="",r=this.liteBookingData.lite_phone;if(r&&r.number&&r.dialCode&&r.e164Number&&(t=r.e164Number),t==""){i=!0;let l=this.translocoService.translate("doc_profile_page.error_msg_phone");e.push(l)}if(i==!0){let l=e.join("<br>");E.default.fire({title:this.translocoService.translate("common.title_error"),html:l,icon:"error",showCancelButton:!1,confirmButtonText:this.translocoService.translate("common.btn_ok"),allowEscapeKey:!1,allowOutsideClick:!1})}return i}v7IsToday(e){return x.now().setLocale("en").toFormat("cccc")===e}v7DocFullName(){let e=this.pageData?.doctor;
2return e?[e.title,e.first_name,e.last_name].filter(Boolean).join(" "):""}v7DocInitials(){let e=this.pageData?.doctor;if(!e)return"";let i=e.first_name&&e.first_name!==""?e.first_name.charAt(0):"",t=e.last_name&&e.last_name!==""?e.last_name.charAt(0):"";return(i+t).toUpperCase()}v7FullAddress(){return this.pageData?[this.pageData.clinic_name,this.pageData.clinic_address,[this.pageData.clinic_zipcode,this.pageData.clinic_city_name].filter(Boolean).join(" ")].filter(i=>i&&i!=="").join(", "):""}v7SpecCity(){return[this.pageData?.doctor?.splstr,this.pageData?.clinic_city_name].filter(Boolean).join(" \xB7 ")}v7SpecCityLink(){let e=this.pageData?.spl_slg&&this.pageData.spl_slg.length>0?this.pageData.spl_slg[0]:"";if(!e||e==="")return"";let i=this.pageData?.state_slug??"",t=this.pageData?.city_slug??"",r=[e,i,t].filter(l=>l&&l!=="");return i===""?ft("/specialite/"+e):ft("/specialite/"+r.join("/"))}v7HasGeo(){return!!(this.pageData&&this.pageData.clinic_latitude&&this.pageData.clinic_longitude)}v7PaymentChips(){let e=this.pageData?.doctor?.payment_method_text??"";if(e!==this.v7PayChipsKey){this.v7PayChipsKey=e;let i=e.replace(/<(br|\/p|\/div|\/li|\/h[1-6])[^>]*>/gi,` 3`).replace(/<[^>]*>/g,"").replace(/ /gi," ").replace(/&/gi,"&");this.v7PayChips=i.split(` 4`).map(t=>t.trim()).filter(t=>t!=="")}return this.v7PayChips}v7HasPayChip(e){return this.v7PaymentChips().some(i=>i.toLowerCase().indexOf(e)!==-1)}v7TransportChips(){let e=this.pageData?.means_of_transport_text??"";return e!==this.v7TransChipsKey&&(this.v7TransChipsKey=e,this.v7TransChips=String(e).split(",").map(i=>i.trim()).filter(i=>i!=="")),this.v7TransChips}v7NearbySentence(){let e=this.pageData?.nearby_cities;if(e!==this.v7NearbyRef){this.v7NearbyRef=e;let i=e&&(0,Q.isArray)(e)?e.map(t=>t&&t.city_name).filter(t=>!!t&&t!=""):[];if(!i.length)this.v7NearbyHtml="";else{let t=i.map(d=>"<strong>"+d+"</strong>"),r=this.translocoService.translate("doc_profile_page_v7.address.label_and"),l=t.length>1?t.slice(0,-1).join(", ")+" "+r+" "+t[t.length-1]:t[0],p=this.pageData?.clinic_city_name??"",m=this.pageData?.clinic_zipcode??"";if(p){let d="<strong>"+p+(m?" ("+m+")":"")+"</strong>";this.v7NearbyHtml=this.translocoService.translate("doc_profile_page_v7.address.text_nearby_with_city",{city:d,cities:l})}else this.v7NearbyHtml=this.translocoService.translate("doc_profile_page_v7.address.text_nearby_no_city",{cities:l})}}return this.v7NearbyHtml}v7TransportIcon(e){let i=(e||"").toLowerCase();return i.indexOf("pmr")!==-1||i.indexOf("handicap")!==-1||i.indexOf("mobilit\xE9")!==-1?"pmr":i.indexOf("commun")!==-1||i.indexOf("bus")!==-1||i.indexOf("tram")!==-1||i.indexOf("train")!==-1||i.indexOf("m\xE9tro")!==-1||i.indexOf("metro")!==-1?"transit":i.indexOf("voiture")!==-1||i.indexOf("taxi")!==-1||i.indexOf("parking")!==-1?"car":"other"}v7FetchNextAvail(e){this.v7NextAvail=null,e&&this.apiService.getNextAvailDateDocCard({doctor_id:e}).subscribe({next:i=>{i&&i.next_avail_date&&i.next_avail_date!=""&&(this.v7NextAvail=i,this._changeDetectorRef.markForCheck())},error:()=>{}})}v7NextAvailLabel(){if(!this.v7NextAvail||!this.v7NextAvail.next_avail_date)return"";let e=x.fromFormat(this.v7NextAvail.next_avail_date,"yyyy-MM-dd");if(!e.isValid)return this.v7NextAvail.next_avail_date;let i=e.setLocale(this.translocoService.getActiveLang()||"fr").toFormat("cccc d LLLL");return i.charAt(0).toUpperCase()+i.slice(1)}v7GoWithType(e){if(this.v7EnterRdv("rdv"),!!this.isBookingStarted()&&e&&e!=0){let i=this.bookingRules.types.find(t=>t.id==e);i&&this.v7PickRealType(i)}}v7DispoGo(){this.v7GoWithType(this.v7NextAvail?this.v7NextAvail.type_id:0)}v7ScrollTo(e,i){i.preventDefault(),this.v7Tab=e,this.v7SpyLock=Date.now()+700,window.innerWidth<=760&&(this.v7SecOpen[e]=!0);let t=document.getElementById(e);t&&t.scrollIntoView({behavior:"smooth",block:"start"})}v7ToggleSec(e){window.innerWidth<=760&&(this.v7SecOpen[e]=!this.v7SecOpen[e])}v7ToggleFtCol(e){window.innerWidth<=560&&(this.v7FtOpen[e]=!this.v7FtOpen[e])}v7BarInit(){let e=document.querySelector(".pf-cta");if(!e||!("IntersectionObserver"in window))return;let i=new IntersectionObserver(t=>{t.forEach(r=>{this.v7BarShow=!r.isIntersecting}),this._changeDetectorRef.markForCheck()},{threshold:0,rootMargin:"-66px 0px 0px 0px"});i.observe(e),this.destroyRef.onDestroy(()=>i.disconnect())}
4v7SpyInit(){let e=()=>{if(Date.now()<this.v7SpyLock)return;let i=window.scrollY+150,t=this.v7SpySections[0];for(let r of this.v7SpySections){let l=document.getElementById(r);l&&l.offsetTop<=i&&(t=r)}t!==this.v7Tab&&this.ngZone.run(()=>{this.v7Tab=t,this._changeDetectorRef.markForCheck()})};this.ngZone.runOutsideAngular(()=>{window.addEventListener("scroll",e,{passive:!0})}),this.destroyRef.onDestroy(()=>window.removeEventListener("scroll",e))}v7CalTitle(){return x.local(this.v7CalY,this.v7CalM+1,1).setLocale(this.translocoService.getActiveLang()||"fr").toFormat("LLLL yyyy")}v7CalDows(){return this.translocoService.translate("doc_profile_page_v7.booking.label_cal_dows").split(",")}v7CalToggle(){if(this.v7CalOpen){this.v7CalOpen=!1;return}let e=x.fromISO(this.slotSearch.searchStart),i=e.isValid?e:x.now();this.v7CalY=i.year,this.v7CalM=i.month-1,this.v7CalOpen=!0,this.v7CalFetchMonth()}v7CalMove(e){this.v7CalM+=e,this.v7CalM<0&&(this.v7CalM=11,this.v7CalY--),this.v7CalM>11&&(this.v7CalM=0,this.v7CalY++),this.v7CalFetchMonth()}v7CalFetchMonth(){let e=x.local(this.v7CalY,this.v7CalM+1,1);if(this.nextDateStart=e.startOf("month").toFormat("yyyy-MM-dd"),this.nextDateEnd=e.endOf("month").toFormat("yyyy-MM-dd"),!this.bookingRules.callToNextDates)return;this.loader.show(this.translocoService.translate("common.loading_msg"));let i={doctorid:this.doctorId,typeid:this.selection.typeId,from:this.nextDateStart,to:this.nextDateEnd,slotfor:this.slotSearch.slotFor,work_location_id:this.selection.workLocationId,date_mandatory_value:this.questions.dateMandatoryValue,uuid:this.visitorUuid};this.apiService.getAvailDatesForCal(i).subscribe({next:t=>{this.v7CalDates=t&&t.dates&&t.dates.length>0?t.dates:[],this.loader.hide(),this._changeDetectorRef.markForCheck()},error:()=>this.loader.hide()})}v7CalCells(){let e=this.v7CalY+"-"+this.v7CalM+"|"+this.v7CalDates.join(",");if(e!==this.v7CalCellsKey){this.v7CalCellsKey=e;let i=x.local(this.v7CalY,this.v7CalM+1,1),t=x.now().startOf("day"),r=x.fromJSDate(this.minDate).startOf("day"),l=x.fromJSDate(this.maxDate).startOf("day"),p=[];for(let m=0;m<i.weekday-1;m++)p.push({day:0});for(let m=1;m<=i.daysInMonth;m++){let d=x.local(this.v7CalY,this.v7CalM+1,m),b=d.toFormat("yyyy-MM-dd"),k=d<t||d<r||d>l;p.push({day:m,iso:b,past:k,avail:this.v7CalDates.indexOf(b)>-1})}this.v7CalCellsCache=p}return this.v7CalCellsCache}v7CalPick(e){!e||!e.day||e.past||(this.v7CalOpen=!1,this.onMatDateSelected({value:x.fromFormat(e.iso,"yyyy-MM-dd")}))}v7MapEmbedUrl(){if(!this.v7HasGeo())return null;let e=this.pageData.clinic_latitude+","+this.pageData.clinic_longitude;return e!==this.v7MapUrlKey&&(this.v7MapUrlKey=e,this.v7MapUrl=this.v7Sanitizer.bypassSecurityTrustResourceUrl("https://maps.google.com/maps?q="+e+"&z=15&output=embed")),this.v7MapUrl}get v7StaticMapSrc(){let e=this.pageData?.clinic_latitude??"",i=this.pageData?.clinic_longitude??"";return`https://maps.googleapis.com/maps/api/staticmap?center=${e},${i}&zoom=16&size=640x300&scale=2&markers=${e},${i}&key=${wi.googleMapsStaticKey}`}v7PickRealLocation(e){this.selection.selectedLocation=e,this.onLocationChanged(e),this.v7bkSync()}v7PickRealType(e){this.selection.selectedType=e,this.onTypeChanged(e),this.v7bkSync()}v7PickRealSlot(e){this.onSlotClick(e,null),this.v7bkSync()}v7MemberName(e){return e?e.display_name||(e.first_name||"")+" "+(e.last_name||""):""}get v7QueueToday(){return x.now().setLocale(this.translocoService.getActiveLang()||"fr").toFormat("cccc d LLLL")}v7Request(){if(this.patientAuth.user&&this.patientAuth.user.id&&this.patientAuth.user.group_id!=oe.Patient){let e=this.translocoService.translate("doc_profile_page.title_only_patient_can_book"),i=this.translocoService.translate("doc_profile_page.only_patient_can_book_msg_html");E.default.fire({title:e,html:i});return}if(this.patientAuth.user&&this.patientAuth.user.id&&this.patientAuth.user.is_locked==1){this.showLockedError();return}this._matDialog.open(_o,{panelClass:["dm-v2-panel"],width:"486px",maxWidth:"calc(100vw - 24px)",autoFocus:!1,data:{doctor_id:this.doctorId}})}v7PickRealTiming(e){this.selection.selectedTiming=e.timing_datails,this.onTimingChanged(e.timing_datails),this.v7bkSync()}v7OnMemberChosen(e){this.onMemberChosen(e),this.v7bkSync()}v7OnMemberUnlocked(e){this.onMemberUnlocked(e),this.v7bkSync()}v7OnMemberAdded(e){this.onMemberAdded(e),this.v7bkSync()}v7TitularName(){let e=this.pageData&&this.pageData.doctor?this.pageData.doctor:null;return e?[e.title,e.first_name,e.last_name].filter(i=>i&&i!=="").join(" "):""}v7MiniRows(){let e=[],i=this.v7Steps.indexOf(this.v7bk.cur),t=(r,l,p)=>{let m=this.v7Steps.indexOf(r);m>-1&&m<i&&p&&e.push({key:r,label:l,value:p})};return t("lieu",this.translocoService.translate("doc_profile_page_v7.booking.label_recap_location"),this.selection.selectedLocation&&this.selection.selectedLocation.location_name?this.selection.selectedLocation.location_name:""),t("motif",this.translocoService.translate("doc_profile_page_v7.booking.label_recap_reason"),this.selection.selectedType&&this.selection.selectedType.type_name?this.selection.selectedType.type_name:""),this.v7bk.mode==="file"?t("creneau",this.translocoService.translate("doc_profile_page_v7.booking.label_recap_timing"),this.selection.selectedTiming&&this.selection.selectedTiming.timing_text?this.selection.selectedTiming.timing_text:""):t("creneau",this.translocoService.translate("doc_profile_page_v7.booking.label_recap_slot"),this.selection.selectedSlotChipDisplay||""),t("patient",this.translocoService.translate("doc_profile_page_v7.booking.label_recap_patient"),this.selection.selectedPatient?this.v7MemberName(this.selection.selectedPatient):""),e}v7MiniGo(e){this.v7bkGo(e)}v7SubmitPostQuestions(){if(this.submitPostQuestions(),this.questions.isConditionsValidated&&this.v7bk.cur==="formulaire"){let e=this.v7Steps.indexOf("formulaire");e>-1&&e<this.v7Steps.length-1&&(this.v7bk.cur=this.v7Steps[e+1],this.v7bkSync())}}v7bkBuildSteps(){let e=[];this.v7bk.mode==="file"?(e.push("creneau","patient"),this.v7Cfg.formulaire&&e.push("formulaire"),this.v7Cfg.raison&&e.push("raison"),this.v7Cfg.confirm&&e.push("confirm")):(this.v7Cfg.lieu&&e.push("lieu"),e.push("motif"),e.push("creneau","patient"),this.v7Cfg.formulaire&&e.push("formulaire"),this.v7Cfg.raison&&e.push("raison"),this.v7Cfg.confirm&&e.push("confirm")),this.v7Steps=e}v7bkIndex(){return this.v7Steps.indexOf(this.v7bk.cur)}v7ShowNextBtn(){return this.v7bkIndex()<this.v7Steps.length-1}v7FormCompleted(){return this.v7Steps.indexOf("formulaire")>-1&&this.questions.isConditionsValidated}v7StepNum(){let e=this.v7bkIndex();return e<0?this.v7Steps.length:e+1}v7Dots(){let e=this.v7bkIndex(),i=e<0,t=i?this.v7Steps.length-1:e;return this.v7Steps.slice(0,t+1).map((r,l)=>i||l<e?"done":l===e?"active":"")}v7bkSetPageLabels(){let e=this.v7bk.mode==="file",i=this.translocoService.translate("doc_profile_page_v7.booking.title_page"),t=this.translocoService.translate("doc_profile_page_v7.booking.label_queue_crumb"),r=this.v7DocFullName();document.title=(e?t:i)+(r?" \xB7 "+r:"")+" \xB7 clikOdoc"}v7bkSync(){this._changeDetectorRef.markForCheck()}v7NextBtnKey(){return this.v7bk.cur==="confirm"?this.v7bk.mode==="file"?"doc_profile_page_v7.booking.btn_confirm_queue":"doc_profile_page_v7.booking.btn_confirm_rdv":"doc_profile_page_v7.booking.btn_continue"}v7StepOk(){let e=!0,i=this.v7bk.cur;return i==="lieu"?e=!!(this.selection.workLocationId&&this.selection.workLocationId!=0):i==="motif"?e=this.selection.typeId!=0:i==="creneau"?this.v7bk.mode==="file"?e=!!(this.selection.selectedTiming&&this.selection.selectedTiming.id&&this.totalClikolistSlotsDisplayed>0):e=this.slotSearch.totalSlotsDisplayed>0&&!(this.questions.isConditionsRequired&&this.questions.isDependedSlot&&!this.questions.isConditionsValidated)&&!!(this.selection.selectedSlot&&this.selection.selectedSlot.from_time):i==="patient"?this.v7bk.mode==="file"?e=!!this.selection.selectedPatient&&this.patientAuth.patientBlocked!=!0&&this.checkIfPatientLocked()!=!0||!!this.liteBookingData:e=!!(this.selection.selectedSlot&&this.selection.selectedSlot.from_time)&&!!this.patientAuth.user&&!!this.selection.selectedPatient&&this.patientAuth.patientBlocked!=!0&&this.patientAuth.isMultipleAptAllowed!=!1&&this.checkIfPatientLocked()!=!0||!!this.liteBookingData:i==="formulaire"?e=this.questions.isConditionsValidated:i==="raison"?e=this.allowInfoByPat()?this.hasRequiredPatientNote():!0:i==="confirm"&&(e=!1),e}v7bkGo(e){let i=this.v7Steps.indexOf(e);i>-1&&i<this.v7bkIndex()&&(this.v7bk.cur=e,this.v7bkSync())}v7bkPrevStep(){let e=this.v7bkIndex();e>0&&(this.v7bk.cur=this.v7Steps[e-1],this.v7bkSync())}v7bkNextStep(){if(!this.v7StepOk())return;let e=this.v7bkIndex();this.v7bk.cur=this.v7Steps[e+1],this.v7bkSync()}v7toggleCons(){this.v7ConsOpen=!this.v7ConsOpen}v7TypePrice(e){let i=e&&e.price?parseFloat(e.price):0;return!i||(0,Q.isNaN)(i)||i<=0?"":String(e.price).replace(".",",")+" \u20AC"}v7EnterRdv(e){let i=e==="file"?"clikolist":"rdv";
4if(this.book(i),!!this.isBookingStarted()){if(this.v7RdvFreshState(),window.scrollTo(0,0),e==="file"){this.v7bk.mode="file",this.v7bk.motif||(this.v7bk.motif="Consultation sans rendez-vous",this.v7bk.cat="Sans rendez-vous"),this.v7bkSetPageLabels(),this.v7bkBuildSteps(),this.v7bk.cur="creneau",this.v7bkSync();return}this.v7bk.mode="rdv",this.v7bkSetPageLabels(),this.v7bk.cur=this.v7Steps[0],this.v7bkSync()}}v7ExitRdv(){this.clearHoldSlot("booking"),this.resetBookingProcess(),this.v7PrevTitle&&(document.title=this.v7PrevTitle),window.scrollTo(0,0)}v7ClearSlotGrid(){this.slotSearch.dayDate=[],this.slotSearch.dayName=[],this.slotSearch.dayData=[],this.slotSearch.dayIndexes=[],this.slotSearch.totalSlotsDisplayed=0,this.slotSearch.showNextAvailDate=!1,this.slotSearch.nextAvailDate="",this.slotSearch.nextAvailDateDisplay=""}v7RdvFreshState(){this.v7PrevTitle||(this.v7PrevTitle=document.title),this.v7ClearSlotGrid(),this.v7bk={cur:"motif",mode:null},this.v7CalOpen=!1;let e=this.bookingRules.workLocations||[];this.v7Cfg={lieu:e.length>0,formulaire:!1,raison:!1,confirm:!this.patientSelectedLiteBooking()},e.length===1&&this.onLocationChanged(e[0]),this.v7bkBuildSteps(),this.v7bk.cur=this.v7Steps[0]}v7ChromeBoot(){this.v7Cfg={lieu:!0,formulaire:!0,raison:!0,confirm:!0},this.v7bkBuildSteps(),this.v7bk.cur=this.v7Steps[0],this.v7bkSync()}static{this.\u0275fac=function(i){return new(i||o)($(Xe),$(Wt),$(Yt),$(tt),$(Jt),$(Xt),$(_i),$(Qe),$(vi),$(_t),$(xt))}}static{this.\u0275cmp=Oe({type:o,selectors:[["app-doc-page-next-v7"]],viewQuery:function(i,t){if(i&1&&(ae(Uo,5),ae(jo,5),ae(Go,5),ae(Ji,5),ae(Qo,5),ae(Ko,5),ae($o,5),ae(Wo,5),ae(Yo,5),ae(Zo,5),ae(Jo,5),ae(Xo,5)),i&2){let r;se(r=re())&&(t.slotTimeOut=r.first),se(r=re())&&(t.datePickerNext=r.first),se(r=re())&&(t.calendarNext=r.first),se(r=re())&&(t.stepper=r.first),se(r=re())&&(t.stepperAnchor=r.first),se(r=re())&&(t.step1Tpl=r.first),se(r=re())&&(t.step2Tpl=r.first),se(r=re())&&(t.step3Tpl=r.first),se(r=re())&&(t.step4Tpl=r.first),se(r=re())&&(t.step5Tpl=r.first),se(r=re())&&(t.step6Tpl=r.first),se(r=re())&&(t.step7Tpl=r.first)}},hostVars:2,hostBindings:function(i,t){i&2&&F("v7-rdv-mode",t.isBookingStarted())},features:[Ft([{provide:Zi,useValue:{displayDefaultIndicatorType:!1}}])],decls:388,vars:295,consts:[["slotTimeOut",""],["v7MotifInfoTpl",""],["v7ExtraConsentTpl",""],[1,"crumb-wrap","crumb-fiche"],["aria-label","Fil d'Ariane",1,"crumb"],[3,"routerLink"],["viewBox","0 0 12 12","fill","none","stroke","currentColor","stroke-width","2"],["d","M4 2l4 4-4 4"],["queryParamsHandling","preserve",1,"crumb-self",3,"routerLink"],[1,"cur"],[1,"crumb-wrap","crumb-rdv"],[2,"cursor","pointer",3,"click"],[1,"wrap"],[1,"pf-grid"],[1,"card","pf-id"],[1,"pf-id-top"],[1,"pf-photo"],[2,"width","100%","height","100%","object-fit","cover","border-radius","inherit",3,"src","alt"],[1,"pf-head"],[1,"pf-parent"],[1,"pf-spec"],[1,"pf-rpps"],[1,"pf-loc"],["viewBox","0 0 20 20","fill","none","stroke","currentColor","stroke-width","1.8"],["d","M10 18s-6-5.7-6-11a6 6 0 0112 0c0 5.3-6 11-6 11z"],["cx","10","cy","7","r","2.5"],[1,"pf-badges"],[1,"pf-badge"],[1,"pf-badge","b-blue"],[1,"pf-cta"],[1,"pf-cta-dispo",2,"cursor","pointer"],[1,"pf-cta-actions"],[1,"pf-cta-btn","secondary",2,"cursor","pointer","text-decoration","none","display","inline-flex","align-items","center","justify-content","center","gap","7px"],["type","button","id","dmTrigger",1,"pf-cta-btn","ghost"],[1,"pf-quick"],["target","_blank","rel","noopener",1,"pf-qbtn",3,"href"],[1,"pf-qbtn",2,"cursor","default"],[1,"col-main"],["id","pfTabs",1,"pf-tabs"],["href","#apropos",1,"pf-tab",3,"click"],["href","#tarifs",1,"pf-tab",3,"click"],["href","#horaires",1,"pf-tab",3,"click"],["href","#adresse",1,"pf-tab",3,"click"],["id","apropos",1,"card","pf-sec"],[3,"click"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","1.9"],["cx","12","cy","8","r","4"],["d","M4 20c0-4 4-6 8-6s8 2 8 6"],[1,"rich-text",3,"innerHtml"],[1,"rich-text",2,"margin-top","12px",3,"innerHtml"],[2,"font-size","13px","color","var(--gray-text)","margin","16px 0 0",3,"innerHtml"],["id","tarifs",1,"card","pf-sec"],["cx","12","cy","12","r","9"],["d","M12 7v10M9.5 9.2a2.4 2 0 012.5-1.2c1.4 0 2.3.8 2.3 1.8 0 2.4-4.8 1.6-4.8 4 0 1 .9 1.8 2.3 1.8a2.4 2 0 002.5-1.2"],[1,"lead"],[1,"n
4ote"],["viewBox","0 0 20 20","fill","none","stroke","currentColor","stroke-width","1.9"],["cx","10","cy","10","r","8"],["d","M10 9v5M10 6.5v.5"],["id","horaires",1,"card","pf-sec"],["d","M12 7v5l3 2"],[1,"hours"],["id","adresse",1,"card","pf-sec"],["d","M12 22s-7-6.5-7-13a7 7 0 0114 0c0 6.5-7 13-7 13z"],["cx","12","cy","9","r","3"],[1,"addr-line"],[1,"chip-list",2,"margin-bottom","16px"],[2,"font-size","13px","color","var(--gray-text)","margin-top","16px","line-height","1.6",3,"innerHtml"],[2,"font-size","12.5px","color","var(--gray-light)","margin-top","14px"],["id","bkOv",1,"bk-ov"],[1,"rdv-head"],[1,"rdv-back",2,"cursor","pointer",3,"click"],["viewBox","0 0 20 20","fill","none","stroke","currentColor","stroke-width","2.2"],["d","M12 4l-6 6 6 6"],[1,"rdv-h1"],[1,"rdv-grid"],[1,"rdv-aside"],[1,"rdv-aside-photo"],[1,"rdv-aside-name"],[1,"rdv-aside-spec"],[1,"rdv-aside-rpps"],[1,"rdv-aside-row"],["viewBox","0 0 20 20","fill","none","stroke","currentColor","stroke-width","2"],["x","3","y","4","width","14","height","13","rx","2"],["d","M3 8h14M7 2v3M13 2v3"],["id","bkCard","role","dialog","aria-label","Prendre rendez-vous",1,"bk-card"],[1,"bk-head"],[1,"bk-head-name"],[1,"bk-head-spec"],["id","bkSteps",1,"bk-steps"],[1,"bk-stepnum"],[1,"bk-stepdots"],[1,"bk-sd",3,"done","active"],["id","bkTimerBar",1,"bk-timer",3,"hidden"],["d","M12 7.5v5l3 2"],[1,"countdown_text",3,"event","config"],[1,"bk-body"],["id","bkMiniRecap",1,"bk-mini-recap"],["data-panel","lieu",1,"bk-panel"],[1,"bk-q"],["id","bkLieux"],[1,"bk-opt",3,"sel"],["data-panel","motif",1,"bk-panel"],["data-panel","creneau",1,"bk-panel"],["id","bkSlotMode"],["id","bkQueueMode"],[1,"bk-q",2,"margin-bottom","8px"],["id","bkQueueCtx",1,"bk-dayctx"],["id","bkQueueDays"],["data-panel","patient",1,"bk-panel"],[3,"liteBookingData","litBookingStatus","authed","memberChosen","memberUnlocked","memberAdded","currentUser","patients","showLiteBookingOption"],["data-panel","formulaire",1,"bk-panel"],[1,"bk-sub-q"],[3,"reset","submit","form","schema","is_file_uploaded","fileUploadInProgress"],["data-panel","raison",1,"bk-panel"],["id","bkRaison","rows","5",1,"bk-textarea",3,"ngModelChange","placeholder","ngModel","ngModelOptions"],["data-panel","confirm",1,"bk-panel"],["id","bkRecapTitle",1,"bk-q"],[3,"typeOfBooking","doctor","replacementInfo","replacementName","motifInfoTpl","extraConsentTpl","selectedLocation","selectedType","selectedDateDisplay","selectedDateShortDisplay","selectedTimeDisplay","selectedClinicDisplay","selectedPatient","selectedTiming","formCompleted","patientNote","queueDayLabel","consentToBook","isSsnRequired","ssn","patientBlocked","isMultipleAptAllowed","showPaymentButton","isPaymentComplete","isLogosPro","paymentAmount","acceptReplacementInfo","acceptConsent"],["id","bkPrepay","hidden",""],[1,"bk-prepay-box"],[1,"bk-prepay-head"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","1.8"],["x","3","y","5","width","18","height","14","rx","2"],["d","M3 9h18"],["type","button","id","bkPayBtn",1,"bk-prepay-btn"],[1,"bk-prepay-note"],["id","bkPrepayDeposit","hidden",""],[1,"bk-prepay-amount"],["type","button","id","bkDepositBtn",1,"bk-prepay-btn"],["data-panel","success",1,"bk-panel",3,"on"],["
4id","bkFoot",1,"bk-foot"],["id","bkPrev",1,"bk-btn","bk-btn-prev",3,"click"],["id","bkNext",1,"bk-btn","bk-btn-next",3,"click","disabled"],["id","bkBar",1,"bk-bar"],[1,"bb-info"],["type","button",1,"bb-file"],[1,"ft-wrap"],[1,"ft-logo"],[1,"ft-about"],[1,"ft-col"],["href","/v7/prendre-rendez-vous"],["href","/v7/teleconsultation"],["href","/v7/consultations-sans-rdv"],["href","/v7/soins-a-domicile/infirmier-a-domicile"],["href","/v7/a-propos"],["href","https://intercom.help/supportclikodoc/fr/"],["href","https://blog.clikodoc.com/"],["href","https://pro.clikodoc.com/"],["href","https://pro.clikodoc.com/mentions-legales/"],["href","https://pro.clikodoc.com/politique-de-confidentialite/"],["href","https://pro.clikodoc.com/cgu/"],["href","/v7/contact"],[1,"ft-bottom"],[1,"ft"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","1.9",1,"pf-parent-ic"],["d","M4 21V8l8-5 8 5v13"],["d","M9 21v-6h6v6"],["d","M11 10h2"],[1,"pf-parent-txt"],["d","M5 10l3 3 7-7"],["cx","10","cy","10","r","7"],["d","M3 10h14M10 3a12 12 0 010 14"],[3,"innerHtml"],["d","M3 6h14v9H3z"],["d","M3 9h14"],[1,"pf-cta-dispo",2,"cursor","pointer",3,"click"],[1,"pf-cta-dispo-txt"],["viewBox","0 0 20 20","fill","none","stroke","currentColor","stroke-width","2.2",1,"pf-cta-dispo-arrow"],["d","M5 10h10M10 5l5 5-5 5"],["target","_blank",1,"pf-cta-btn",2,"text-decoration","none","display","inline-flex","align-items","center","justify-content","center",3,"href"],[1,"pf-cta-btn",2,"cursor","pointer","text-decoration","none","display","inline-flex","align-items","center","justify-content","center"],[1,"pf-cta-btn",2,"cursor","pointer","text-decoration","none","display","inline-flex","align-items","center","justify-content","center",3,"click"],[1,"pf-cta-btn","secondary",2,"cursor","pointer","text-decoration","none","display","inline-flex","align-items","center","justify-content","center","gap","7px",3,"click"],["viewBox","0 0 20 20","fill","none","stroke","currentColor","stroke-width","2",2,"width","16px","height","16px","flex-shrink","0"],["d","M7 6h10M7 10h10M7 14h10"],["cx","3.5","cy","6","r","1.3"],["cx","3.5","cy","10","r","1.3"],["cx","3.5","cy","14","r","1.3"],["type","button","id","dmTrigger",1,"pf-cta-btn","ghost",3,"click"],["viewBox","0 0 20 20","fill","none","stroke","currentColor","stroke-width","1.9","stroke-linecap","round","stroke-linejoin","round"],["d","M4 5h12a1 1 0 011 1v6a1 1 0 01-1 1H8l-4 3z"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],["d","M11.3 2.7 2.7 11.3a1 1 0 0 0 0 1.4l8.6 8.6a1 1 0 0 0 1.4 0l8.6-8.6a1 1 0 0 0 0-1.4l-8.6-8.6a1 1 0 0 0-1.4 0Z"],["d","M9 13.5V11a1 1 0 0 1 1-1h4.5"],["d","m12.5 7.5 2.5 2.5-2.5 2.5"],["d","M4 4h3l1.5 4-2 1.5a10 10 0 004 4l1.5-2 4 1.5v3a1.5 1.5 0 01-1.7 1.5A13.5 13.5 0 014 5.7 1.5 1.5 0 014 4z"],["id","consList",1,"cons-list"],[1,"cons-row",2,"cursor","pointer",3,"cons-hidden"],["id","consToggle",1,"cons-toggle",3,"open"],[1,"cons-row",2,"cursor","pointer",3,"click"],[1,"cons-name"],[1,"cons-price"],["id","consToggle",1,"cons-toggle",3,"click"],["d","M3 5l3 3 3-3"],[1,"pf-h3"],[2,"font-size","13px","color","var(--gray-text)","margin","-6px 0 14px","line-height","1.6"],[1,"presta-grid"],[1,"presta",3,"title"],[1,"presta",3,"click","title"],[1,"presta-ph"],["loading","lazy",3,"src","alt"],[1,"presta-cam"],[1,"presta-name"],[1,"presta-price"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","1.7"],["d","M4 7h3l1.5-2h7L17 7h3v12H4z"],["cx","12","cy","13","r","3.5"],[1,"pf-h3",2,"margin-top","26px"],[1,"chip-list"],[1,"chip"],[1,"hours-row",3,"today"],[1,"hours-row"],[1,"hours-day"],[1,"tag"],[1,"hours-val"],[1,"hours-val","closed"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","1.7","stroke-linecap","round","stroke-linejoin","round"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","1.7","stroke-linecap","round"],["d","M5 11l2-5h6l2 5M5 11h10v4H5z"],["cx","7.5","cy","15","r","1"],["cx","12.5","cy","15","r","1"],["cx","12","cy","4.5","r","1.8"],["d","M12 7v5h4l2 4"],["d","M12 9.2h3.5"],["d","M16 16.5a5 5 0 1 1-5.4-4.4"],["x","5","y","4","width","14","height","12","rx","2.5"],["d","M5 11h14"],["d","M8 16v2.5M16 16v2.5"],["target","_blank","rel","noopener",1,"map-frame","map-static",3,"title","href"],["loading","lazy",3,"alt","src"],["loading","lazy",1,"map-frame",3,"title","src"],["target","_blank","rel","noopener",1,"pf-qbtn",2,"margin-top","14px",3,"href"],[1,"bk-sd"],["type","button",1,"bk-mini-chip",3,"title"],["type","button",1,"bk-mini-chip",3,"click","title"],["viewBox","0 0 20 20","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["d","M4 13.5V16h2.5l7-7-2.5-2.5z"],["d","M11 6.5l2.5 2.5"],[1,"bk-opt",3,"click"],[1,"bk-radio"],[1,"bk-opt-main"],[1,"bk-motif-info"],[1,"bk-info-card"],[1,"bk-q",2,"font-size","13px","margin-top","10px"],[1,"bk-dayctx"],[1,"bk-datebar"],[1,"bk-q",2,"margin","0"],[1,"bk-datebar-actions"],[1,"bk-calwrap"],["id","bkSlotGrid"],["id","bkChosen",1,"bk-chosen","on"],["
4id","bkChosenRepl",1,"bk-chosen","on","repl","r0"],[1,"bk-tznote"],[1,"bk-days"],["id","bkPrevDays",1,"bk-arrow",3,"click"],["id","bkCols",1,"bk-cols"],["id","bkNextDays",1,"bk-arrow",3,"click"],["d","M8 4l6 6-6 6"],[1,"bk-datebar",2,"justify-content","flex-start","gap","12px"],["id","bkSlotEmpty"],["type","button",1,"bk-btn","bk-btn-next",2,"width","100%","margin-top","14px"],["type","button","id","bkWaitBtn",1,"bk-btn","bk-btn-next",2,"width","100%","margin-top","14px"],["type","button",1,"bk-cal-btn",3,"click"],["id","bkCal",1,"bk-cal"],[1,"bk-cal-head"],["type","button","aria-label","Mois pr\xE9c\xE9dent",1,"bk-cal-nav",3,"click"],[1,"bk-cal-title"],["type","button","aria-label","Mois suivant",1,"bk-cal-nav",3,"click"],[1,"bk-cal-dows"],[1,"bk-cal-grid"],[1,"bk-cal-legend"],[1,"bk-cal-legdot"],[1,"bk-cal-legfull"],[1,"bk-cal-empty"],["type","button",1,"bk-cal-day",3,"past","has","disabled"],["type","button",1,"bk-cal-day",3,"click","disabled"],[1,"bk-cal-dot"],[1,"bk-chosen-tx"],[3,"innerHTML"],[1,"bk-chosen-row"],["cx","10","cy","7","r","3"],["d","M4.5 17c0-3 2.5-4.5 5.5-4.5s5.5 1.5 5.5 4.5"],[1,"repl-name","r0"],[1,"repl-of"],["viewBox","0 0 20 20","fill","none","stroke","currentColor","stroke-width","1.9",1,"bk-ic-time"],["cx","10","cy","10","r","7.2"],["d","M10 5.6V10l3 1.9","stroke-linecap","round"],[1,"repl-when"],["viewBox","0 0 16 16","fill","none","aria-hidden","true"],["cx","8","cy","8","r","6.6","stroke","currentColor","stroke-width","1.5"],["d","M8 4.4V8l2.4 1.6","stroke","currentColor","stroke-width","1.5","stroke-linecap","round"],[1,"bk-col-h"],[1,"dow"],[1,"dnum"],[1,"bk-empty"],[1,"bk-slot",3,"sel"],[1,"bk-slot",3,"click"],[1,"bk-dayctx",2,"margin","0"],["id","bkNextAvail",1,"bk-next",3,"click"],[1,"bk-q",2,"margin-bottom","10px"],["type","button",1,"bk-btn","bk-btn-next",2,"width","100%","margin-top","14px",3,"click"],["type","button","id","bkWaitBtn",1,"bk-btn","bk-btn-next",2,"width","100%","margin-top","14px",3,"click"],[1,"bk-grouplabel"],[1,"bk-opt-sub"],["id","bkRecapInfo",1,"bk-motif-info"],["id","bkEarlyOptin",1,"bk-consent",2,"margin","14px 0 0"],["type","checkbox","id","bkEarlyChk",3,"ngModelChange","ngModel","ngModelOptions"],[1,"bk-field-help",2,"margin","4px 0 0"],[3,"ssnChange","acceptReplacementInfoChange","acceptConsentChange","payClicked","confirmRdv","confirmLogos","confirmClikolist","typeOfBooking","doctor","replacementInfo","replacementName","motifInfoTpl","extraConsentTpl","selectedLocation","selectedType","selectedDateDisplay","selectedDateShortDisplay","selectedTimeDisplay","selectedClinicDisplay","selectedPatient","selectedTiming","formCompleted","patientNote","queueDayLabel","consentToBook","isSsnRequired","ssn","patientBlocked","isMultipleAptAllowed","showPaymentButton","isPaymentComplete","isLogosPro","paymentAmount","acceptReplacementInfo","acceptConsent"],["data-panel","success",1,"bk-panel"],[1,"bk-success"],[1,"bk-check"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2.4"],["d","M5 12l5 5 9-9"],["id","bkOkTitle"],["id","bkOkText"],["id","bkRecap2",1,"bk-recap",2,"text-align","left"],["href","#",1,"bk-success-btn"],["x","3","y","3","width","7","height","7","rx","1.5"],["x","14","y","3","width","7","height","7","rx","1.5"],["x","3","y","14","width","7","height","7","rx","1.5"],["x","14","y","14","width","7","height","7","rx","1.5"],[1,"bk-stores"],[1,"bk-stores-t"],[1,"bk-stores-row"],["href","https://apps.apple.com/fr/app/clikodoc/id1147237652","target","_blank","rel","noopener",1,"bk-store"],["viewBox","0 0 24 24","fill","currentColor"],["d","M17.05 12.04c-.03-2.6 2.13-3.85 2.23-3.92-1.21-1.77-3.1-2.02-3.78-2.05-1.61-.16-3.15.94-3.97.94-.83 0-2.09-.92-3.44-.89-1.77.03-3.41 1.03-4.32 2.62-1.84 3.2-.47 7.93 1.32 10.53.88 1.27 1.92 2.7 3.28 2.65 1.32-.05 1.82-.85 3.41-.85s2.05.85 3.44.82c1.42-.02 2.32-1.29 3.18-2.57 1-1.47 1.42-2.9 1.44-2.97-.03-.01-2.77-1.06-2.79-4.21M14.5 4.69c.73-.89 1.22-2.12 1.09-3.35-1.05.04-2.32.7-3.07 1.58-.67.78-1.27 2.04-1.11 3.24 1.17.09 2.36-.59 3.09-1.47"],[1,"bk-store-tx"],["href","https://play.google.com/store/apps/details?id=com.clikodoc&hl=fr","target","_blank","rel","noopener",1,"bk-store"],["d","M3.609 1.814L13.792 12 3.61 22.186a.996.996 0 0 1-.61-.92V2.734a1 1 0 0 1 .609-.92zm10.89 10.893l2.302 2.302-10.937 6.333 8.635-8.635zm3.199-3.198l2.807 1.626a1 1 0 0 1 0 1.73l-2.808 1.626L15.486 12l2.412-2.491zM5.864 2.658L16.802 8.99l-2.302 2.302-8.636-8.634z"],["id","bkDemoVariant",1,"bk-demo-variant"],["type","button",1,"bb-file",3,"click"],["target","_blank",1,"bb-cta",2,"text-decoration","none","display","inline-flex","align-items","center","justify-content","center",3,"href"],["type","button"],["type","button",3,"click"]],template:function(i,t){if(i&1){let r=R();n(0,"div",3)(1,"nav",4)(2,"a",5),h(3,"v7Url"),c(4),h(5,"transloco"),s(),M(),n(6,"svg",6),v(7,"path",7),s(),O(8,cn,2,2,"a",5)(9,dn,2,1,"span"),n(10,"svg",6),v(11,"path",7),s(),A(),n(12,"a",8),h(13,"v7SelfUrl"),n(14,"span",9),c(15),s()()()(),n(16,"div",10)(17,"nav",4)(18,"a",5),h(19,"v7Url"),c(20),h(21,"transloco"),s(),M(),n(22,"svg",6),v(23,"path",7),s(),A(),n(24,"a",11),T("click",function(){return w(r),P(t.v7ExitRdv())}),c(25),s(),M(),n(26,"svg",6),v(27,"path",7),s(),A(),n(28,"a",8),h(29,"v7SelfUrl"),n(30,"span",9),c(31),h(32,"transloco"),s()()()(),n(33,"div",12)(34,"div",13)(35,"div",14)(36,"div",15)(37,"div",16),O(38,pn,1,4,"img",17)(39,hn,2,1,"span"),s(),n(40,"div",18),O(41,_n,7,1,"span",19),n(42,"h1"),c(43),s(),n(44,"div",20),c(45),s(),O(46,mn,2,1,"div",21)(47,gn,3,4,"div",21),n(48,"div",22),M(),n(49,"svg",23),v(50,"path",24)(51,"circle",25),s(),c(52),s()()(),A(),n(53,"div",26),O(54,un,4,1,"span",27)(55,fn,5,1,"span",28)(56,vn,5,3,"span",27)(57,xn,6,3,"span",28),s(),n(58,"div",29),O(59,yn,10,5,"a",30),n(60,"div",31),O(61,Sn,2,1)(62,wn,8,3,"a",32)(63,Pn,5,3,"button",33),s()(),n(64,"div",34),O(65,Mn,7,4,"a",35)(66,Dn,4,1,"span",36)(67,On,4,1,"span",36)(68,Tn,4,1,"span",36),s()(),n(69,"div",37)(70,"nav",38)(71,"a",39),T("click",function(p){return w(r),P(t.v7ScrollTo("apropos",p))}),c(72),h(73,"transloco"),s(),n(74,"a",40),T("click",function(p){return w(r),P(t.v7ScrollTo("tarifs",p))}),c(75),h(76,"transloco"),s(),n(77,"a",41),T("click",function(p){return w(r),P(t.v7ScrollTo("horaires",p))}),c(78),h(79,"transloco"),s(),n(80,"a",42),T("click",function(p){return w(r),P(t.v7ScrollTo("adresse",p))}),c(81),h(82,"transloco"),s()(),n(83,"section",43)(84,"h2",44),T("click",function(){return w(r),P(t.v7ToggleSec("aprop
4os"))}),M(),n(85,"svg",45),v(86,"circle",46)(87,"path",47),s(),c(88),h(89,"transloco"),s(),O(90,In,2,3,"p",48)(91,Bn,2,3,"p",49)(92,En,2,3,"p",50),s(),A(),n(93,"section",51)(94,"h2",44),T("click",function(){return w(r),P(t.v7ToggleSec("tarifs"))}),M(),n(95,"svg",45),v(96,"circle",52)(97,"path",53),s(),c(98),h(99,"transloco"),s(),O(100,Nn,4,3,"p",54)(101,zn,4,3)(102,Qn,9,6)(103,$n,6,3),A(),n(104,"div",55),M(),n(105,"svg",56),v(106,"circle",57)(107,"path",58),s(),c(108),h(109,"transloco"),s()(),A(),n(110,"section",59)(111,"h2",44),T("click",function(){return w(r),P(t.v7ToggleSec("horaires"))}),M(),n(112,"svg",45),v(113,"circle",52)(114,"path",60),s(),c(115),h(116,"transloco"),s(),A(),n(117,"div",61),O(118,Xn,2,0),s()(),n(119,"section",62)(120,"h2",44),T("click",function(){return w(r),P(t.v7ToggleSec("adresse"))}),M(),n(121,"svg",45),v(122,"path",63)(123,"circle",64),s(),c(124),h(125,"transloco"),s(),A(),n(126,"div",65),M(),n(127,"svg",23),v(128,"path",24)(129,"circle",25),s(),c(130),s(),O(131,aa,3,0,"div",66)(132,ra,10,9)(133,la,1,1,"p",67),A(),n(134,"p",68),c(135),h(136,"transloco"),s(),O(137,ca,2,3,"p",67),s()()()(),n(138,"div",69)(139,"div",70)(140,"a",71),T("click",function(){return w(r),P(t.v7ExitRdv())}),M(),n(141,"svg",72),v(142,"path",73),s(),c(143),h(144,"transloco"),s(),A(),n(145,"h1",74),c(146),h(147,"transloco"),s()(),n(148,"div",75)(149,"aside",76)(150,"div",77),O(151,da,1,4,"img",17)(152,pa,1,1),s(),n(153,"div",78),c(154),s(),n(155,"div",79),c(156),s(),O(157,ha,2,1,"div",80),n(158,"div",81),M(),n(159,"svg",23),v(160,"path",24)(161,"circle",25),s(),c(162),s(),O(163,_a,4,1,"div",81),A(),n(164,"div",81),M(),n(165,"svg",82),v(166,"rect",83)(167,"path",84),s(),c(168),h(169,"transloco"),s()(),A(),n(170,"div",85)(171,"div",86)(172,"div",16),O(173,ma,1,4,"img",17)(174,ga,2,1,"span"),s(),n(175,"div")(176,"div",87),c(177),s(),n(178,"div",88),c(179),s()()(),n(180,"div",89)(181,"div",90),c(182),h(183,"transloco"),s(),n(184,"div",91),X(185,ua,1,4,"span",92,ge),s()(),n(187,"div",93)(188,"span"),M(),n(189,"svg",45),v(190,"circle",52)(191,"path",94),s(),c(192),h(193,"transloco"),s(),A(),n(194,"b")(195,"countdown",95,0),T("event",function(p){return w(r),P(t.handleCountdownEvent(p))}),s()()(),n(197,"div",96),O(198,va,3,0,"div",97),n(199,"div",98)(200,"div",99),c(201),h(202,"transloco"),s(),n(203,"div",100),X(204,xa,5,3,"div",101,ge),s()(),n(206,"div",102)(207,"div",99),c(208),h(209,"transloco"),s(),X(210,ya,6,4,null,null,nt),O(212,Sa,5,3),s(),n(213,"div",103)(214,"div",104),O(215,wa,7,10)(216,es,33,26),s(),n(217,"div",105)(218,"div",106),c(219),h(220,"transloco"),s(),n(221,"div",107),M(),n(222,"svg",23),v(223,"rect",83)(224,"path",84),s(),c(225),h(226,"transloco"),s(),A(),n(227,"div",108),O(228,os,5,3),s(),n(229,"div",55),M(),n(230,"svg",56),v(231,"circle",57)(232,"path",58),s(),c(233),h(234,"transloco"),s()()(),A(),n(235,"div",109)(236,"v7-auth-shell",110),T("liteBookingData",function(p){return w(r),P(t.onLiteBookingPatData(p))})("litBookingStatus",function(p){return w(r),P(t.onChangeLiteBookingStatus(p))})("authed",function(p){return w(r),P(t.onAuthed(p))})("memberChosen",function(p){return w(r),P(t.v7OnMemberChosen(p))})("memberUnlocked",function(p){return w(r),P(t.v7OnMemberUnlocked(p))})("memberAdded",function(p){return w(r),P(t.v7OnMemberAdded(p))}),s()(),n(237,"div",111)(238,"div",99),c(239),h(240,"transloco"),s(),n(241,"p",112),c(242),h(243,"transloco"),s(),n(244,"v7-apt-question-form",113),T("reset",function(){return w(r),P(t.resetQuestions())})("submit",function(){return w(r),P(t.v7SubmitPostQuestions())}),s()(),n(245,"div",114)(246,"div",99),c(247),h(248,"transloco"),s(),n(249,"p",112),c(250),h(251,"transloco"),s(),n(252,"textarea",115),h(253,"transloco"),T("ngModelChange",function(p){return w(r),t.selection.appointmentNote=p,P(t.v7bkSync())}),s()(),n(254,"div",116)(255,"div",117),c(256),h(257,"transloco"),s(),O(258,as,1,1,"ng-template",null,1,dt)(260,rs,1,1,"ng-template",null,2,dt)(262,ls,1,28,"v7-review-confirm",118),n(263,"div",119)(264,"div",120)(265,"div",121),M(),n(266,"svg",122),v(267,"rect",123)(268,"path",124),s(),c(269,"Paiement simplifi\xE9"),s(),A(),n(270,"p"),c(271,"Pour vous \xE9viter de r\xE9gler sur place, votre carte est enregistr\xE9e (empreinte bancaire) pour le montant de votre consultation. Aucun montant n'est pr\xE9lev\xE9 aujourd'hui."),s(),n(272,"button",125),c(273,"Enregistrer ma carte"),s(),n(274,"div",126),c(275,"Le paiement ne sera effectu\xE9 que si la consultation a lieu."),s()()(),n(276,"div",127)(277,"div",120)(278,"div",121),M(),n(279,"svg",122),v(280,"rect",123)(281,"path",124),s(),c(282,"Acompte demand\xE9 par le professionnel"),s(),A(),n(283,"p"),c(284,"Un acompte est demand\xE9 pour confirmer votre rendez-vous. Il sera d\xE9duit du montant total de votre consultation."),s(),n(285,"div",128),c(286,"Acompte \xE0 r\xE9gler : "),n(287,"strong"),c(288,"10\xA0\u20AC"),s()(),n(289,"button",129),c(290,"Payer l'acompte"),s(),n(291,"div",126),c(292,"En cas d'annulation, votre acompte vous est int\xE9gralement rembours\xE9."),s()()()(),O(293,cs,43,2,"div",130),s(),n(294,"div",131)(295,"button",132),T("click",function(){return w(r),P(t.v7bkPrevStep())}),c(296),h(297,"transloco"),s(),n(298,"button",133),T("click",function(){return w(r),P(t.v7bkNextStep())}),c(299),h(300,"transloco"),s()()()()(),n(301,"div",134)(302,"div",135),c(303),n(304,"b"),c(305),O(306,ds,2,3),s()(),O(307,ps,3,3,"button",136)(308,ms,2,1),s(),n(309,"footer")(310,"div",137)(311,"div")(312,"div",138),c(313,"clik"),n(314,"
4span"),c(315,"O"),s(),c(316,"doc"),s(),n(317,"p",139),c(318),h(319,"transloco"),s()(),n(320,"div",140)(321,"h4",44),T("click",function(){return w(r),P(t.v7ToggleFtCol("patients"))}),c(322),h(323,"transloco"),s(),n(324,"a",141),c(325),h(326,"transloco"),s(),n(327,"a",142),c(328),h(329,"transloco"),s(),n(330,"a",143),c(331),h(332,"transloco"),s(),n(333,"a",144),c(334),h(335,"transloco"),s()(),n(336,"div",140)(337,"h4",44),T("click",function(){return w(r),P(t.v7ToggleFtCol("clikodoc"))}),c(338,"clikOdoc"),s(),n(339,"a",145),c(340),h(341,"transloco"),s(),n(342,"a",146),c(343),h(344,"transloco"),s(),n(345,"a",147),c(346),h(347,"transloco"),s(),n(348,"a",148),c(349),h(350,"transloco"),s()(),n(351,"div",140)(352,"h4",44),T("click",function(){return w(r),P(t.v7ToggleFtCol("info"))}),c(353),h(354,"transloco"),s(),n(355,"a",149),c(356),h(357,"transloco"),s(),n(358,"a",150),c(359),h(360,"transloco"),s(),n(361,"a",151),c(362),h(363,"transloco"),s(),n(364,"a",152),c(365),h(366,"transloco"),s()()(),n(367,"div",153)(368,"span"),c(369),h(370,"transloco"),s(),n(371,"span"),c(372),h(373,"transloco"),s()()(),n(374,"div",154),c(375),h(376,"transloco"),n(377,"a",149),c(378),h(379,"transloco"),s(),c(380," \xB7 "),n(381,"a",151),c(382),h(383,"transloco"),s(),c(384," \xB7 "),n(385,"a",150),c(386),h(387,"transloco"),s()()}i&2&&(a(2),B("routerLink",u(3,171,"")),a(2),g(u(5,173,"doc_profile_page_v7.breadcrumb.label_home")),a(4),y(t.v7SpecCityLink()!==""?8:9),a(4),B("routerLink",u(13,175,"")),a(3),g(t.v7DocFullName()),a(3),B("routerLink",u(19,177,"")),a(2),g(u(21,179,"doc_profile_page_v7.breadcrumb.label_home")),a(5),g(t.v7DocFullName()),a(3),B("routerLink",u(29,181,"")),a(3),g(u(32,183,t.v7bk.mode==="file"?"doc_profile_page_v7.booking.label_queue_crumb":"doc_profile_page_v7.breadcrumb.label_booking")),a(7),y(!(t.pageData==null||t.pageData.doctor==null)&&t.pageData.doctor.avatar&&t.pageData.doctor.avatar!=""?38:39),a(3),y(t.pageData!=null&&t.pageData.clinic_master_name&&t.pageData.clinic_master_name!=""?41:-1),a(2),g(t.v7DocFullName()),a(2),g(t.pageData==null||t.pageData.doctor==null?null:t.pageData.doctor.splstr),a(),y(!(t.pageData==null||t.pageData.doctor==null)&&t.pageData.doctor.rpps_number&&t.pageData.doctor.rpps_number!=""?46:-1),a(),y(!(t.pageData==null||t.pageData.doctor==null)&&t.pageData.doctor.siren&&t.pageData.doctor.siren!=""?47:-1),a(5),q(" ",t.v7FullAddress()," "),a(2),y(!(t.pageData==null||t.pageData.doctor==null)&&t.pageData.doctor.sector&&t.pageData.doctor.sector!=""?54:-1),a(),y(!(t.pageData==null||t.pageData.doctor==null)&&t.pageData.doctor.doc_languages_str&&t.pageData.doctor.doc_languages_str!=""?55:-1),a(),y(t.v7HasPayChip("carte vitale")?56:-1),a(),y(t.v7HasPayChip("tiers payant")?57:-1),a(2),y(t.v7NextAvail?59:-1),a(2),y(t.showNormalBookButton==!0?61:-1),a(),y(t.showClikolistBookButton==!0?62:-1),a(),y(t.showRequestBtn==!0?63:-1),a(2),y(t.v7HasGeo()?65:-1),a(),y((t.pageData==null?null:t.pageData.display_phone_1)==""&&(t.pageData==null?null:t.pageData.display_phone_2)==""&&(t.pageData==null?null:t.pageData.clinic_tel)!=""?66:-1),a(),y((t.pageData==null?null:t.pageData.display_phone_1)!=""?67:-1),a(),y((t.pageData==null?null:t.pageData.display_phone_2)!=""?68:-1),a(3),F("active",t.v7Tab==="apropos"),a(),q(" ",u(73,185,"doc_profile_page_v7.tabs.label_about")," "),a(2),F("active",t.v7Tab==="tarifs"),a(),q(" ",u(76,187,"doc_profile_page_v7.tabs.label_consultations")," "),a(2),F("active",t.v7Tab==="horaires"),a(),q(" ",u(79,189,"doc_profile_page_v7.tabs.label_hours")," "),a(2),F("active",t.v7Tab==="adresse"),a(),q(" ",u(82,191,"doc_profile_page_v7.tabs.label_address")," "),a(2),F("open",t.v7SecOpen.apropos),a(5),q(" ",le(89,193,"doc_profile_page_v7.about.title_section",de(286,go,t.v7DocFullName()))," "),a(2),y(!(t.pageData==null||t.pageData.doctor==null)&&t.pageData.doctor.doc_page_short_intro&&t.pageData.doctor.doc_page_short_intro!=""?90:-1),a(),y(!(t.pageData==null||t.pageData.doctor==null)&&t.pageData.doctor.info_for_patients&&t.pageData.doctor.info_for_patients!=""?91:-1),a(),y(!(t.pageData==null||t.pageData.doctor==null)&&t.pageData.doctor.education&&t.pageData.doctor.education!=""?92:-1),a(),F("open",t.v7SecOpen.tarifs),a(5),q(" ",u(99,196,"doc_profile_page_v7.consultations.title_section")," "),a(2),y(!(t.pageData==null||t.pageData.doctor==null)&&t.pageData.doctor.sector&&t.pageData.doctor.sector!=""||!(t.pageData==null||t.pageData.doctor==null)&&t.pageData.doctor.doc_page_price_text&&t.pageData.doctor.doc_page_price_text!=""?100:-1),a(),y(t.bookingRules.types.length?101:-1),a(),y(t.menuServices.length?102:-1),a(),y(!(t.pageData==null||t.pageData.doctor==null)&&t.pageData.doctor.payment_method_text&&t.pageData.doctor.payment_method_text!=""?103:-1),a(5),q(" ",u(109,198,"doc_profile_page_v7.consultations.text_fees_note")," "),a(2),F("open",t.v7SecOpen.horaires),a(5),q(" ",u(116,200,"doc_profile_page_v7.hours.title_section")," "),a(3),y(t.pageData!=null&&t.pageData.data_timinigs?118:-1),a(),F("open",t.v7SecOpen.adresse),a(5),g(u(125,202,"doc_profile_page_v7.address.title_section")),a(6),g(t.v7FullAddress()),a(),y(t.v7TransportChips().length?131:-1),a(),y(t.v7HasGeo()?132:-1),a(),y(t.v7NearbySentence()?133:-1),a(2),g(u(136,204,"doc_profile_page_v7.address.text_emergency")),a(2),y(!(t.pageData==null||t.pageData.doctor==null)&&t.pageData.doctor.practical_information&&t.pageData.doctor.practical_information!=""?137:-1),a(6),q(" ",u(144,206,"doc_profile_page_v7.booking.btn_back_to_profile"),""),a(3),g(u(147,208,t.v7bk.mode==="file"?"doc_profile_page_v7.booking.title_queue":"doc_profile_page_v7.booking.title_page")),a(5),y(!(t.pageData==null||t.pageData.doctor==null)&&t.pageData.doctor.avatar&&t.pageData.doctor.avatar!=""?151:152),a(3),g(t.v7DocFullName()),a(2),g(t.pageData==null||t.pageData.doctor==null?null:t.pageData.doctor.splstr),a(),y(!(t.pageData==null||t.pageData.doctor==null)&&t.pageData.doctor.rpps_number&&t.pageData.doctor.rpps_number!=""?157:-1),a(5),g(t.v7FullAddress()),a(),y(!(t.pageData==null||t.pageData.doctor==null)&&t.pageData.doctor.sector&&t.pageData.doctor.sector!=""?163:-1),a(5),g(u(169,210,"doc_profile_page_v7.booking.label_free_secure")),a(5),y(!(t.pageData==null||t.pageData.doctor==null)&&t.pageData.doctor.avatar&&t.pageData.doctor.avatar!=""?173:174),a(4),g(t.v7DocFullName()),a(2),g(t.v7SpecCity()),a(3),g(le(183,212,"doc_profile_page_v7.booking.label_step",de(288,tn,t.v7StepNum()))),a(3),ee(t.v7Dots()),a(2),B("hidden",!t.holdState.timerStarted),a(5),g(u(193,215,"doc_profile_page_v7.booking.text_timer_hold")),a(3),B("config",de(290,on,t.slotHoldSeconds)),a(3),y(t.v7MiniRows().length>0&&t.v7bk.cur!=="confirm"?198:-1),a(),F("on",t.v7bk.cur==="lieu"),a(2),g(u(202,217,"doc_profile_page_v7.booking.question_location")),a(3),ee(t.bookingRules.workLocations),a(2),F("on",t.v7bk.cur==="motif"),a(2),g(u(209,219,"doc_profile_page_v7.booking.question_reason")),a(2),ee(t.bookingRules.types),a(2),y(t.bookingRules.typesNotAllowed&&t.bookingRules.typesNotAllowed.length>0?212:-1),a(),F("on",t.v7bk.cur==="creneau"),a(),Ce("display",t.v7bk.mode==="file"?"none":"block"),a(),y(t.preQuestionsRequired()&&!t.questions.isConditionsValidated?215:216),a(2),Ce("display",t.v7bk.mode==="file"?"block":"none"),a(2),g(u(220,221,"doc_profile_page_v7.queue.title_section")),a(6),g(le(226,223,"doc_profile_page_v7.queue.text_context",de(292,nn,t.v7QueueToday))),a(3),y(t.availTimings&&t.availTimings.length>0?228:-1),a(5),g(u(234,226,"doc_profile_page_v7.queue.text_note")),a(2),F("on",t.v7bk.cur==="patient"),a(),B("currentUser",t.patientAuth.user&&t.patientAuth.user.group_id==t.UserGroup.Patient?t.patientAuth.user:null)("patients",t.patientAuth.patients)("showLiteBookingOption",t.showLiteBookingOption()),a(),F("on",t.v7bk.cur==="formulaire"),a(2),g(u(240,228,"doc_profile_page_v7.booking.question_form")),a(3),g(u(243,230,"doc_profile_page_v7.booking.text_form_sub")),a(2),B("form",t.aptQuestionForm)("schema",t.questionSchema())("is_file_uploaded",t.isFileUploaded)("fileUploadInProgress",t.questions.fileUploadInProgress),a(),F("on",t.v7bk.cur==="raison"),a(2),g(u(248,232,"doc_profile_page_v7.booking.question_note")),a(3),g(u(251,234,"doc_profile_page_v7.booking.text_note_sub")),a(2),B("placeholder",u(253,236,"doc_profile_page_v7.booking.placeholder_note"))("ngModel",t.selection.appointmentNote)("ngModelOptions",ct(294,uo)),a(2),F("on",t.v7bk.cur==="confirm"),a(2),g(u(257,238,t.v7bk.mode==="file"?"doc_profile_page_v7.booking.title_confirm_queue":"doc_profile_page_v7.booking.title_confirm")),a(6),y(t.selection.selectedPatient&&(t.selection.selectedType||t.selection.selectedTiming)?262:-1),a(31),y(-1),a(),Ce("display",t.v7bk.cur==="success"?"none":"flex"),a(),Ce("display",t.v7bkIndex()>0?"block":"none"),a(),g(u(297,240,"doc_profile_page_v7.booking.btn_back")),a(2),Ce("display",t.v7ShowNextBtn()?"block":"none"),B("disabled",!t.v7StepOk()),a(),g(u(300,242,t.v7NextBtnKey())),a(2),F("show",t.v7BarShow),a(2),g(t.v7DocFullName()),a(2),g(t.pageData==null||t.pageData.doctor==null?null:t.pageData.doctor.splstr),a(),y(t.showClikolistBookButton&&t.totalClikolistSlotsDisplayed>0?306:-1),a(),y(t.showClikolistBookButton==!0?307:-1),a(),y(t.showNormalBookButton==!0?308:-1),a(10),g(u(319,244,"doc_profile_page_v7.footer.text_about")),a(2),F("open",t.v7FtOpen.patients),a(2),g(u(323,246,"doc_profile_page_v7.footer.title_patients")),a(3),g(u(326,248,"doc_profile_page_v7.footer.label_book")),a(3),g(u(329,250,"doc_profile_page_v7.footer.label_teleconsultation")),a(3),g(u(332,252,"doc_profile_page_v7.footer.label_walkin")),a(3),g(u(335,254,"doc_profile_page_v7.footer.label_home_care")),a(2),F("open",t.v7FtOpen.clikodoc),a(4),g(u(341,256,"doc_profile_page_v7.footer.label_about_us")),a(3),g(u(344,258,"doc_profile_page_v7.footer.label_help")),a(3),g(u(347,260,"doc_profile_page_v7.footer.label_blog")),a(3),g(u(350,262,"doc_profile_page_v7.footer.label_pro")),a(2),F("open",t.v7FtOpen.info),a(2),g(u(354,264,"doc_profile_page_v7.footer.title_info")),a(3),g(u(357,266,"doc_profile_page_v7.footer.label_legal")),a(3),g(u(360,268,"doc_profile_page_v7.footer.label_privacy_data")),a(3),g(u(363,270,"doc_profile_page_v7.footer.label_cgu")),a(3),g(u(366,272,"doc_profile_page_v7.footer.label_contact")),a(4),g(u(370,274,"doc_profile_page_v7.footer.text_rights")),a(3),g(u(373,276,"doc_profile_page_v7.footer.text_hds")),a(3),q("\xA9 2026 clikOdoc \xB7 ",u(376,278,"doc_profile_page_v7.footer.text_hds")," \xB7 "),a(3),g(u(379,280,"doc_profile_page_v7.footer.label_legal")),a(4),g(u(383,282,"doc_profile_page_v7.footer.label_cgu")),a(4),g(u(387,284,"doc_profile_page_v7.footer.label_confidentiality")))},dependencies:[Fe,je,ze,Re,He,ni,ti,ei,Ki,Ee,Je,ji,zi,Hi,Li,Ni,it,Xi,Ge,Ui,ot,eo,to,$i,Yi,$e,Ke,Ye,We,Mi,Ii,Gi,Qi],styles:['@charset "UTF-8";[_nghost-%COMP%]{--blue-dark:#143F6E;--blue-mid:#29A7E5;--blue-light:#ECF3FA;--white:#fff;--ink:#1B2940;--gray-text:#6B7A90;--gray-light:#B5C4D8;--gray-border:#E2EAF3;--green:#30A42B;--green-bg:#EAF6EA;--green-border:#A8D5A8;--amber:#F5A623;--bg:#F4F7FB;display:block;font-family:Montserrat,sans-serif;color:var(--ink);background:var(--bg);font-size:15px;line-height:1.55}*[_ngcontent-%COMP%]{box-sizing:border-box}a[_ngcontent-%COMP%]{text-decoration:none;color:inherit}img[_ngcontent-%COMP%]{max-width:100%}.crumb-wrap[_ngcontent-%COMP%]{max-width:1240px;margin:0 auto;padding:14px 24px 0}.crumb[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;gap:7px;font-size:12.5px;color:var(--gray-text)}.crumb[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:var(--blue-mid)}.crumb[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:13px;height:13px;color:var(--gray-light)}.crumb[_ngcontent-%COMP%] .cur[_ngcontent-%COMP%]{color:var(--blue-dark);font-weight:700}.wrap[_ngcontent-%COMP%]{max-width:1240px;margin:0 auto;padding:18px 24px 60px}.pf-grid[_ngcontent-%COMP%]{max-width:860px;margin:0 auto}.col-main[_ngcontent-%COMP%]{min-width:0}.pf-cta[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px;padding-top:18px;border-top:1px solid var(--gray-border)}.pf-cta-dispo[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;font-size:11.5px;color:var(--gray-text)}.pf-cta-dispo[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:15px;color:var(--blue-dark);font-weight:800}a.pf-cta-dispo[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px;text-decoration:none;background:var(--blue-light);border:1.5px solid #C9DDF0;border-radius:12px;padding:9px 15px;transition:all .15s}a.pf-cta-dispo[_ngcontent-%COMP%]:hover{border-color:var(--blue-mid);background:#e1effb}a.pf-cta-dispo[_ngcontent-%COMP%] .pf-cta-dispo-txt[_ngcontent-%COMP%]{display:flex;flex-direction:column}.pf-cta-dispo-arrow[_ngcontent-%COMP%]{width:18px;height:18px;color:var(--blue-mid);flex-shrink:0;margin-left:auto}.pf-cta-btn[_ngcontent-%COMP%]{flex-shrink:0;background:var(--blue-mid);color:#fff;border:none;font-family:inherit;font-size:15px;font-weight:800;padding:14px 28px;border-radius:12px;cursor:pointer;box-shadow:0 8px 20px #29a7e54d;transition:background .15s}.pf-cta-btn[_ngcontent-%COMP%]:hover{background:#1f93cf}.pf-cta-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:9px;flex-shrink:0;margin-left:auto}.pf-cta-btn.secondary[_ngcontent-%COMP%]{background:#eaf6ea;color:#1e6e1e;border:1.5px solid #A8D5A8;box-shadow:none;font-size:14px;padding:12px 22px}.pf-cta-btn.secondary[_ngcontent-%COMP%]:hover{background:#dcefdc}.pf-cta-btn.ghost[_ngcontent-%COMP%]{background:#fff;color:var(--blue-dark);border:1.5px solid var(--gray-border);box-shadow:none;font-size:14px;padding:12px 22px;display:inline-flex;align-items:center;justify-content:center;gap:8px}.pf-cta-btn.ghost[_ngcontent-%COMP%]:hover{border-color:var(--blue-mid);background:var(--blue-light)}.pf-cta-btn.ghost[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:17px;height:17px;flex-shrink:0;color:var(--blue-mid)}.card[_ngcontent-%COMP%]{background:#fff;border:1px solid var(--gray-border);border-radius:16px;box-shadow:0 2px 14px #143f6e0a}
4.pf-id[_ngcontent-%COMP%]{padding:24px 26px}.pf-id-top[_ngcontent-%COMP%]{display:flex;gap:18px;align-items:flex-start}.pf-photo[_ngcontent-%COMP%]{width:96px;height:96px;border-radius:18px;background:linear-gradient(135deg,#dbe9f7,#c2d9ee);display:flex;align-items:center;justify-content:center;font-size:30px;font-weight:800;color:var(--blue-dark);flex-shrink:0;overflow:hidden}.pf-photo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.pf-head[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:25px;font-weight:800;color:var(--blue-dark);line-height:1.2}.pf-spec[_ngcontent-%COMP%]{font-size:15px;color:var(--blue-mid);font-weight:700;margin-top:3px}.pf-rpps[_ngcontent-%COMP%]{font-size:12px;color:var(--gray-light);font-weight:600;margin-top:5px;letter-spacing:.2px}.pf-loc[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:7px;font-size:13.5px;color:var(--blue-dark);font-weight:600;margin-top:9px}.pf-loc[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:15px;height:15px;color:var(--blue-mid);margin-top:2px;flex-shrink:0}.pf-near[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;font-weight:700;color:#1f7d1c;background:var(--green-bg);border:1px solid var(--green-border);padding:5px 11px;border-radius:999px;margin-top:10px}.pf-near[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:14px;height:14px}.pf-quick[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:9px;margin-top:16px}.pf-qbtn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:700;color:var(--blue-dark);background:#fff;border:1.5px solid var(--gray-border);padding:9px 14px;border-radius:10px;transition:all .15s}.pf-qbtn[_ngcontent-%COMP%]:hover{border-color:var(--blue-mid);color:var(--blue-mid)}.pf-qbtn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:16px;height:16px;color:var(--blue-mid)}.pf-badges[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.pf-badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;padding:6px 11px;border-radius:999px;background:var(--green-bg);color:#1f7d1c;border:1px solid var(--green-border)}.pf-badge.b-blue[_ngcontent-%COMP%]{background:var(--blue-light);color:var(--blue-dark);border-color:#cfe2f4}.pf-badge[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:13px;height:13px}.pf-parent[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;font-weight:700;color:var(--blue-dark);background:var(--blue-light);border:1px solid #D4E6F6;padding:4px 11px;border-radius:999px;margin-bottom:9px;line-height:1.2;transition:border-color .15s,color .15s;max-width:100%}.pf-parent[_ngcontent-%COMP%]:hover{border-color:var(--blue-mid);color:var(--blue-mid)}.pf-parent[_ngcontent-%COMP%] .pf-parent-ic[_ngcontent-%COMP%]{width:13px;height:13px;color:var(--blue-mid);flex-shrink:0}.pf-parent[_ngcontent-%COMP%] .pf-parent-arrow[_ngcontent-%COMP%]{width:11px;height:11px;opacity:.6;flex-shrink:0}.pf-parent[_ngcontent-%COMP%] .pf-parent-txt[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pf-tabs[_ngcontent-%COMP%]{position:sticky;top:64px;z-index:40;display:flex;gap:6px;background:#fff;border:1px solid var(--gray-border);border-radius:12px;padding:4px 10px;margin:18px 0;overflow-x:auto;box-shadow:0 2px 14px #143f6e0a}.pf-tab[_ngcontent-%COMP%]{position:relative;padding:13px 12px;font-size:13.5px;font-weight:700;color:var(--gray-text);white-space:nowrap;transition:color .15s;border-bottom:2.5px solid transparent}.pf-tab[_ngcontent-%COMP%]:hover{color:var(--blue-dark)}.pf-tab.active[_ngcontent-%COMP%]{color:var(--blue-mid);border-bottom-color:var(--blue-mid)}.pf-sec[_ngcontent-%COMP%]{padding:26px;margin-bottom:18px;scroll-margin-top:130px}.pf-sec[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:18px;font-weight:800;color:var(--blue-dark);margin-bottom:6px;display:flex;align-items:center;gap:9px}.pf-sec[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:20px;height:20px;color:var(--blue-mid)}.pf-sec[_ngcontent-%COMP%] .lead[_ngcontent-%COMP%]{color:var(--gray-text);font-size:14px;margin-bottom:18px}.pf-sec[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14.5px;color:#42526b;margin-bottom:12px}.pf-h3[_ngcontent-%COMP%]{font-size:13.5px;font-weight:800;color:var(--blue-dark);text-transform:uppercase;letter-spacing:.4px;margin:20px 0 12px}
4.chip-list[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:9px}.chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:600;color:var(--blue-dark);background:var(--blue-light);padding:8px 13px;border-radius:999px}.chip[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:14px;height:14px;color:var(--blue-mid)}.note[_ngcontent-%COMP%]{font-size:12.5px;color:var(--gray-text);background:var(--blue-light);border-radius:10px;padding:12px 14px;margin-top:16px;display:flex;gap:9px}.note[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:16px;height:16px;color:var(--blue-mid);flex-shrink:0;margin-top:1px}.cons-list[_ngcontent-%COMP%]{display:flex;flex-direction:column}.cons-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:13px 0;border-bottom:1px solid var(--gray-border)}.cons-name[_ngcontent-%COMP%]{font-size:14.5px;font-weight:500;color:var(--blue-dark)}.cons-price[_ngcontent-%COMP%]{font-size:15px;font-weight:700;color:var(--blue-dark);white-space:nowrap}.cons-hidden[_ngcontent-%COMP%]{display:none}.cons-list.open[_ngcontent-%COMP%] .cons-hidden[_ngcontent-%COMP%]{display:flex}.cons-toggle[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;margin-top:13px;padding:8px 14px;border:1.5px solid var(--gray-border);border-radius:9px;background:#fff;font-family:inherit;font-size:13px;font-weight:700;color:var(--blue-mid);cursor:pointer}.cons-toggle[_ngcontent-%COMP%]:hover{border-color:var(--blue-mid)}.cons-toggle[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:13px;height:13px;transition:transform .2s}.cons-toggle.open[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{transform:rotate(180deg)}.presta-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:4px}.presta[_ngcontent-%COMP%]{margin:0;cursor:pointer}.presta-ph[_ngcontent-%COMP%]{position:relative;aspect-ratio:1/1;border-radius:12px;overflow:hidden;background:linear-gradient(135deg,#eaf3fb,#d7e7f6);display:flex;align-items:center;justify-content:center;transition:transform .15s}.presta[_ngcontent-%COMP%]:hover .presta-ph[_ngcontent-%COMP%]{transform:translateY(-2px)}.presta-ph[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.presta-cam[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:5px;color:var(--blue-mid);opacity:.5;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.4px}.presta-cam[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:24px;height:24px}.presta[_ngcontent-%COMP%] figcaption[_ngcontent-%COMP%]{margin-top:9px;text-align:center;line-height:1.3}.presta-name[_ngcontent-%COMP%]{display:block;font-size:13px;font-weight:600;color:var(--blue-dark)}.presta-price[_ngcontent-%COMP%]{display:block;font-size:11.5px;font-weight:700;color:var(--blue-mid);margin-top:3px}@media (max-width: 600px){.presta-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}.hours[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;gap:0}.hours-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:11px 2px;border-bottom:1px solid var(--gray-border);font-size:14px}.hours-row[_ngcontent-%COMP%]:last-child{border-bottom:none}.hours-row.today[_ngcontent-%COMP%]{background:var(--blue-light);border-radius:8px;padding-left:12px;padding-right:12px}.hours-day[_ngcontent-%COMP%]{font-weight:700;color:var(--blue-dark)}.hours-day[_ngcontent-%COMP%] .tag[_ngcontent-%COMP%]{font-size:10.5px;font-weight:800;color:#fff;background:var(--green);padding:2px 7px;border-radius:6px;margin-left:8px;text-transform:uppercase;letter-spacing:.4px}.hours-val[_ngcontent-%COMP%]{color:#42526b;font-weight:600;display:flex;flex-direction:column;align-items:flex-end;gap:2px;text-align:right}.hours-val.closed[_ngcontent-%COMP%]{color:var(--gray-light);font-weight:500}.map-frame[_ngcontent-%COMP%]{border:0;width:100%;height:300px;border-radius:14px;display:block}.map-static[_ngcontent-%COMP%]{overflow:hidden;border:1px solid var(--gray-border)}.map-static[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;display:block}.addr-line[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:10px;font-size:14.5px;color:var(--blue-dark);font-weight:600;margin-bottom:14px}.addr-line[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:18px;height:18px;color:var(--blue-mid);flex-shrink:0;margin-top:1px}
4.bk-bar[_ngcontent-%COMP%]{position:fixed;left:0;right:0;bottom:0;z-index:120;background:#fff;border-top:1px solid var(--gray-border);box-shadow:0 -6px 22px #143f6e21;padding:11px 16px;display:none;align-items:center;gap:14px}.bk-bar.show[_ngcontent-%COMP%]{display:flex;animation:_ngcontent-%COMP%_barUp .22s ease}.bk-bar[_ngcontent-%COMP%] .bb-info[_ngcontent-%COMP%]{flex:1;min-width:0;font-size:12px;color:var(--gray-text);line-height:1.3}.bk-bar[_ngcontent-%COMP%] .bb-info[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{display:block;font-size:13.5px;color:var(--blue-dark);font-weight:800;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bk-bar[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .bk-bar[_ngcontent-%COMP%] .bb-cta[_ngcontent-%COMP%]{flex-shrink:0;background:var(--blue-mid);color:#fff;border:none;font-family:inherit;font-weight:800;font-size:14px;padding:13px 24px;border-radius:11px;cursor:pointer}.bk-bar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover, .bk-bar[_ngcontent-%COMP%] .bb-cta[_ngcontent-%COMP%]:hover{background:#1f93cf}.bk-bar[_ngcontent-%COMP%] .bb-file[_ngcontent-%COMP%]{background:#eaf6ea;color:#1e6e1e;border:1.5px solid #A8D5A8;padding:13px 16px}.bk-bar[_ngcontent-%COMP%] .bb-file[_ngcontent-%COMP%]:hover{background:#dcefdc}@keyframes _ngcontent-%COMP%_barUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}footer[_ngcontent-%COMP%]{background:var(--blue-dark);color:#bcd0e4;padding:42px 24px 26px;margin-top:10px}.ft-wrap[_ngcontent-%COMP%]{max-width:1240px;margin:0 auto;display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:32px}.ft-logo[_ngcontent-%COMP%]{font-size:22px;font-weight:800;color:#fff;margin-bottom:12px}.ft-logo[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--blue-mid)}.ft-about[_ngcontent-%COMP%]{font-size:13px;line-height:1.6;color:#9fb6cd;max-width:280px}.ft-col[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:13px;font-weight:800;color:#fff;text-transform:uppercase;letter-spacing:.5px;margin-bottom:14px}.ft-col[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;font-size:13.5px;color:#bcd0e4;margin-bottom:10px}.ft-col[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#fff}.ft-bottom[_ngcontent-%COMP%]{max-width:1240px;margin:30px auto 0;padding-top:18px;border-top:1px solid rgba(255,255,255,.13);display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;font-size:12.5px;color:#8ba6c2}@keyframes _ngcontent-%COMP%_bkSlideIn{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}[_nghost-%COMP%] .bk-ov{position:fixed;inset:0;background:#0b22368c;display:none;align-items:flex-start;justify-content:center;padding:34px 18px;z-index:200;overflow-y:auto}[_nghost-%COMP%] .bk-ov.open{display:flex}[_nghost-%COMP%] .bk-close{position:absolute;top:13px;right:13px;width:32px;height:32px;border-radius:50%;border:none;background:#fff3;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:3}[_nghost-%COMP%] .bk-close:hover{background:#ffffff57}[_nghost-%COMP%] .bk-close svg{width:15px;height:15px}[_nghost-%COMP%] .bk-card{position:relative;background:#fff;border-radius:18px;box-shadow:0 30px 70px #0b223659;overflow:hidden;width:100%;max-width:440px;display:flex;flex-direction:column;max-height:calc(100vh - 68px)}[_nghost-%COMP%] .bk-head{background:linear-gradient(135deg,var(--blue-dark),#1d568f);color:#fff;padding:16px 18px;display:flex;align-items:center;gap:12px}[_nghost-%COMP%] .bk-head .pf-photo{width:46px;height:46px;border-radius:11px;font-size:16px;background:#ffffff29;color:#fff}[_nghost-%COMP%] .bk-head-name{font-size:14.5px;font-weight:800;line-height:1.2}[_nghost-%COMP%] .bk-head-spec{font-size:12px;color:#bcd6ee;margin-top:2px}[_nghost-%COMP%] .bk-steps{display:flex;flex-direction:column;align-items:center;gap:7px;padding:16px 18px 10px}[_nghost-%COMP%] .bk-stepnum{font-size:14px;font-weight:800;color:var(--blue-dark);letter-spacing:.2px}[_nghost-%COMP%] .bk-stepdots{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap}[_nghost-%COMP%] .bk-sd{width:8px;height:8px;border-radius:50%;background:#d6e2f0;transition:all .18s}[_nghost-%COMP%] .bk-sd.done{background:var(--blue-mid)}[_nghost-%COMP%] .bk-sd.active{width:10px;height:10px;background:#fff;border:2px solid var(--blue-mid)}[_nghost-%COMP%] .bk-body{padding:6px 18px 18px;overflow-y:auto;flex:1}[_nghost-%COMP%] .bk-panel{display:none}[_nghost-%COMP%] .bk-panel.on{display:block}[_nghost-%COMP%] .bk-q{font-size:13.5px;font-weight:800;color:var(--blue-dark);margin:10px 0 12px}[_nghost-%COMP%] .bk-sub-q{font-size:12.5px;color:var(--gray-text);margin:-6px 0 14px;line-height:1.5}[_nghost-%COMP%] .bk-demo-cfg{display:flex;flex-wrap:wrap;align-items:center;gap:7px 14px;font-size:11.5px;color:var(--gray-text);background:#fff8e9;border:1px dashed #F0CE8A;border-radius:10px;padding:9px 12px;margin-bottom:14px}[_nghost-%COMP%] .bk-demo-cfg-lbl{font-weight:800;color:#9a6b12}[_nghost-%COMP%] .bk-demo-cfg label{display:inline-flex;align-items:center;gap:5px;font-weight:600;cursor:pointer}[_nghost-%COMP%] .bk-demo-cfg select{font-family:inherit;font-size:inherit;font-weight:600;border:1px solid rgba(154,107,18,.4);border-radius:6px;padding:1px 4px;background:#fff;color:#7a5a12;cursor:pointer}[_nghost-%COMP%] .bk-demo-cfg input{accent-color:var(--blue-mid);cursor:pointer}[_nghost-%COMP%] .bk-demo-cfg .bk-demo-mode{border-left:1px solid #E2C98A;padding-left:12px;margin-left:2px}[_nghost-%COMP%] .bk-upload{display:flex;align-items:center;gap:13px;border:1.5px dashed var(--gray-light);border-radius:12px;padding:16px;cursor:pointer;transition:border-color .15s,background .15s}[_nghost-%COMP%] .bk-upload:hover{border-color:var(--blue-mid);background:var(--blue-light)}[_nghost-%COMP%] .bk-upload-ic{width:40px;height:40px;border-radius:10px;background:var(--blue-light);display:flex;align-items:center;justify-content:center;flex-shrink:0}[_nghost-%COMP%] .bk-upload-ic svg{width:20px;height:20px;color:var(--blue-mid)}[_nghost-%COMP%] .bk-upload-txt{font-size:12.5px;color:var(--gray-text);line-height:1.5}[_nghost-%COMP%] .bk-upload-txt strong{color:var(--blue-dark);font-weight:700}[_nghost-%COMP%] .bk-upload input{display:none}[_nghost-%COMP%] .bk-filelist{display:flex;flex-direction:column;gap:8px;margin-top:12px}[_nghost-%COMP%] .bk-fileitem{display:flex;align-items:center;gap:10px;border:1px solid var(--gray-border);border-radius:10px;padding:9px 12px;font-size:12.5px}[_nghost-%COMP%] .bk-fileitem>svg{width:16px;height:16px;color:var(--blue-mid);flex-shrink:0}[_nghost-%COMP%] .bk-filename{flex:1;min-width:0;font-weight:600;color:var(--blue-dark);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] .bk-fileok{font-size:11px;font-weight:700;color:#1f7d1c;flex-shrink:0}[_nghost-%COMP%] .bk-filedel{cursor:pointer;color:var(--gray-light);font-weight:700;flex-shrink:0}[_nghost-%COMP%] .bk-filedel:hover{color:#e0584e}[_nghost-%COMP%] .bk-textarea{width:100%;border:1.5px solid var(--gray-border);border-radius:12px;padding:13px 14px;font-family:inherit;font-size:14px;color:var(--ink);resize:vertical;min-height:120px;outline:none;line-height:1.5}[_nghost-%COMP%] .bk-textarea:focus{border-color:var(--blue-mid)}[_nghost-%COMP%] .bk-info-card{display:flex;gap:12px;background:#fff8e9;border:1px solid #F0CE8A;border-radius:12px;padding:14px 16px;max-width:100%;min-width:0}[_nghost-%COMP%] .bk-info-card>svg{width:20px;height:20px;color:#c77b12;flex-shrink:0;margin-top:1px}[_nghost-%COMP%] .bk-info-card>div{min-width:0;flex:1 1 auto}[_nghost-%COMP%] .bk-info-card strong{display:block;font-size:13.5px;color:var(--blue-dark);margin-bottom:4px;overflow-wrap:anywhere}[_nghost-%COMP%] .bk-info-card p{font-size:13px;color:#6b5a3a;line-height:1.55;margin:0;overflow-wrap:anywhere;word-break:break-word}[_nghost-%COMP%] .bk-info-card a{overflow-wrap:anywhere}[_nghost-%COMP%] .bk-motif-info{margin:-3px 0 10px}[_nghost-%COMP%] #bkRecapInfo{margin:12px 0 0}[_nghost-%COMP%] #bkPrepay, [_nghost-%COMP%] #bkPrepayDeposit{margin-top:14px}[_nghost-%COMP%] .bk-motif-info:not([hidden]){animation:_ngcontent-%COMP%_bkSlideIn .18s ease}[_nghost-%COMP%] .bk-field{margin-bottom:18px}[_nghost-%COMP%] .bk-field:last-child{margin-bottom:0}[_nghost-%COMP%] .bk-field-q{display:block;font-size:13px;font-weight:700;color:var(--blue-dark);margin-bottom:9px}[_nghost-%COMP%] .bk-field-help{display:block;font-size:12px;color:var(--gray-text);margin:-5px 0 9px;line-height:1.4}[_nghost-%COMP%] .bk-radio-row{display:flex;flex-wrap:wrap;gap:8px}[_nghost-%COMP%] .bk-radio-pill{display:inline-flex;align-items:center;gap:7px;border:1.5px solid var(--gray-border);border-radius:10px;padding:9px 14px;font-size:13px;font-weight:600;color:var(--blue-dark);cursor:pointer;transition:border-color .15s}[_nghost-%COMP%] .bk-radio-pill:hover{border-color:var(--gray-light)}[_nghost-%COMP%] .bk-radio-pill input{accent-color:var(--blue-mid);cursor:pointer}[_nghost-%COMP%] .bk-radio-pill:has(input:checked){border-color:var(--blue-mid);background:var(--blue-light)}[_nghost-%COMP%] .bk-consent{display:flex;gap:10px;align-items:flex-start;font-size:12.5px;color:#42526b;line-height:1.5;margin:14px 0;cursor:pointer}[_nghost-%COMP%] .bk-consent[hidden]{display:none}[_nghost-%COMP%] .bk-consent input{accent-color:var(--blue-mid);margin-top:2px;flex-shrink:0;cursor:pointer}[_nghost-%COMP%] .bk-prepay-box{background:#f6f9fd;border:1px solid var(--gray-border);border-radius:12px;padding:14px 16px}[_nghost-%COMP%] .bk-prepay-head{display:flex;align-items:center;gap:9px;font-size:13.5px;font-weight:800;color:var(--blue-dark);margin-bottom:6px}[_nghost-%COMP%] .bk-prepay-head svg{width:18px;height:18px;color:var(--blue-mid);flex-shrink:0}[_nghost-%COMP%] .bk-prepay-box p{font-size:12.5px;color:#42526b;line-height:1.5;margin:0 0 10px}[_nghost-%COMP%] .bk-prepay-amount{font-size:13px;color:var(--blue-dark);margin-bottom:12px}[_nghost-%COMP%] .bk-prepay-amount strong{font-size:15px}[_nghost-%COMP%] .bk-prepay-note{font-size:11px;color:var(--gray-light);line-height:1.45;margin-top:10px}[_nghost-%COMP%] .bk-prepay-btn{width:100%;background:var(--blue-mid);color:#fff;border:none;font-family:inherit;font-size:14px;font-weight:800;padding:12px;border-radius:11px;cursor:pointer;transition:background .15s}[_nghost-%COMP%] .bk-prepay-btn:hover{background:#1f93cf}[_nghost-%COMP%] .bk-prepay-btn.paid{background:var(--green);cursor:default}[_nghost-%COMP%] .bk-steps{overflow-x:auto;scrollbar-width:none}[_nghost-%COMP%] .bk-steps::-webkit-scrollbar{display:none}[_nghost-%COMP%] .bk-dot{flex:0 0 auto;min-width:60px}[_nghost-%COMP%] .bk-opt{display:flex;align-items:flex-start;gap:11px;padding:12px 13px;border:1.5px solid var(--gray-border);border-radius:11px;cursor:pointer;margin-bottom:9px;transition:border-color .15s}[_nghost-%COMP%] .bk-opt:hover{border-color:var(--gray-light)}[_nghost-%COMP%] .bk-opt.sel{border-color:var(--blue-mid)}[_nghost-%COMP%] .bk-opt.dis{opacity:.55;cursor:not-allowed;background:#fafbfd}[_nghost-%COMP%] .bk-radio{width:18px;height:18px;border:2px solid #CBD8E8;border-radius:50%;flex-shrink:0;position:relative;margin-top:1px;background:#fff}[_nghost-%COMP%] .bk-opt.sel .bk-radio{border-color:var(--blue-mid)}[_nghost-%COMP%] .bk-opt.sel .bk-radio:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:8px;height:8px;border-radius:50%;background:var(--blue-mid)}[_nghost-%COMP%] .bk-opt-main{display:block;font-size:13.5px;font-weight:700;color:var(--blue-dark)}[_nghost-%COMP%] .bk-opt-sub{display:block;font-size:11.5px;color:var(--gray-text);margin-top:3px;line-height:1.45}[_nghost-%COMP%] .bk-grouplabel{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.6px;color:var(--gray-text);margin:4px 0 9px}[_nghost-%COMP%] .bk-dayctx{display:flex;align-items:center;gap:7px;font-size:12.5px;font-weight:700;color:var(--blue-dark);background:var(--blue-light);border-radius:9px;padding:9px 12px;margin-bottom:13px}[_nghost-%COMP%] .bk-dayctx svg{width:15px;height:15px;color:var(--blue-mid);flex-shrink:0}[_nghost-%COMP%] .bk-grouplabel.mt{margin-top:16px}[_nghost-%COMP%] .bk-cat{border:1.5px solid var(--gray-border);border-radius:11px;margin-bottom:9px;overflow:hidden}[_nghost-%COMP%] .bk-cat-head{display:flex;align-items:center;gap:10px;width:100%;padding:13px 14px;background:#fff;border:none;font-family:inherit;font-size:13.5px;font-weight:700;color:var(--blue-dark);cursor:pointer;text-align:left}[_nghost-%COMP%] .bk-cat-head:hover{background:#fafcff}[_nghost-%COMP%] .bk-cat-ic{width:30px;height:30px;border-radius:8px;background:var(--blue-light);display:flex;align-items:center;justify-content:center;color:var(--blue-mid);flex-shrink:0}[_nghost-%COMP%] .bk-cat-ic svg{width:17px;height:17px}[_nghost-%COMP%] .bk-cat-name{flex:1}[_nghost-%COMP%] .bk-cat-chev{width:13px;height:13px;color:var(--gray-text);transition:transform .2s;flex-shrink:0}[_nghost-%COMP%] .bk-cat.open .bk-cat-chev{transform:rotate(180deg)}
4[_nghost-%COMP%] .bk-cat-body{display:none;padding:6px 12px 12px;border-top:1px solid var(--gray-border)}[_nghost-%COMP%] .bk-cat.open .bk-cat-body{display:block}[_nghost-%COMP%] .bk-cat-body .bk-opt{margin-bottom:7px}[_nghost-%COMP%] .bk-cat-body .bk-opt:last-child{margin-bottom:0}[_nghost-%COMP%] .bk-datebar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}[_nghost-%COMP%] .bk-next{font-size:12px;color:var(--blue-mid);font-weight:700;background:var(--blue-light);border:none;font-family:inherit;padding:8px 11px;border-radius:9px;cursor:pointer;display:inline-flex;align-items:center;gap:6px}[_nghost-%COMP%] .bk-next svg{width:13px;height:13px}[_nghost-%COMP%] .bk-datebar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}[_nghost-%COMP%] .bk-cal-btn{position:relative;display:inline-flex;align-items:center;gap:6px;padding:8px 11px;border:1.5px solid var(--gray-border);border-radius:9px;font-size:12px;font-weight:700;color:var(--blue-dark);cursor:pointer;background:#fff}[_nghost-%COMP%] .bk-cal-btn:hover{border-color:var(--blue-mid)}[_nghost-%COMP%] .bk-cal-btn svg{width:14px;height:14px;color:var(--blue-mid)}[_nghost-%COMP%] .bk-cal-btn input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}[_nghost-%COMP%] .bk-chosen{display:none;align-items:center;gap:7px;font-size:12px;font-weight:700;color:var(--blue-dark);background:var(--blue-light);border-radius:9px;padding:8px 11px;margin-bottom:10px}[_nghost-%COMP%] .bk-chosen.on{display:flex}[_nghost-%COMP%] .bk-chosen svg{width:14px;height:14px;color:var(--blue-mid);flex-shrink:0}[_nghost-%COMP%] .bk-chosen a{margin-left:auto;color:var(--blue-mid);font-weight:800;cursor:pointer;white-space:nowrap}[_nghost-%COMP%] .bk-calwrap{position:relative}[_nghost-%COMP%] .bk-cal{position:absolute;top:calc(100% + 8px);right:0;width:262px;background:#fff;border:1px solid var(--gray-border);border-radius:12px;box-shadow:0 16px 40px #143f6e2e;padding:12px;z-index:30}[_nghost-%COMP%] .bk-cal[hidden]{display:none}[_nghost-%COMP%] .bk-cal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}[_nghost-%COMP%] .bk-cal-title{font-size:13px;font-weight:800;color:var(--blue-dark);text-transform:capitalize}[_nghost-%COMP%] .bk-cal-nav{width:28px;height:28px;border-radius:8px;border:1px solid var(--gray-border);background:#fff;color:var(--blue-dark);display:flex;align-items:center;justify-content:center;cursor:pointer}[_nghost-%COMP%] .bk-cal-nav:hover{border-color:var(--blue-mid);color:var(--blue-mid)}[_nghost-%COMP%] .bk-cal-nav svg{width:13px;height:13px}[_nghost-%COMP%] .bk-cal-dows{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;margin-bottom:4px}[_nghost-%COMP%] .bk-cal-dows span{text-align:center;font-size:10.5px;font-weight:700;color:var(--gray-text)}[_nghost-%COMP%] .bk-cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}[_nghost-%COMP%] .bk-cal-day{position:relative;height:34px;border:none;background:none;border-radius:8px;font-family:inherit;font-size:12.5px;font-weight:600;color:var(--blue-dark);cursor:pointer}[_nghost-%COMP%] .bk-cal-day:hover{background:var(--blue-light)}[_nghost-%COMP%] .bk-cal-day.past{color:var(--gray-light);cursor:not-allowed}[_nghost-%COMP%] .bk-cal-day.past:hover{background:none}[_nghost-%COMP%] .bk-cal-day.full{color:var(--gray-light);cursor:not-allowed}[_nghost-%COMP%] .bk-cal-day.full:hover{background:none}[_nghost-%COMP%] .bk-cal-dot{position:absolute;left:50%;bottom:4px;transform:translate(-50%);width:5px;height:5px;border-radius:50%;background:var(--green);pointer-events:none}[_nghost-%COMP%] .bk-cal-empty{height:34px}[_nghost-%COMP%] .bk-cal-legend{display:flex;align-items:center;gap:14px;margin-top:9px;padding-top:9px;border-top:1px solid var(--gray-border);font-size:10.5px;font-weight:600;color:var(--gray-text)}[_nghost-%COMP%] .bk-cal-legend span{display:inline-flex;align-items:center;gap:5px}[_nghost-%COMP%] .bk-cal-legdot{width:6px;height:6px;border-radius:50%;background:var(--green)}[_nghost-%COMP%] .bk-cal-legfull{width:11px;height:11px;border-radius:4px;background:#eef2f7}[_nghost-%COMP%] .bk-addrel-btn{display:inline-flex;align-items:center;gap:7px;margin-top:10px;padding:9px 14px;border:1.5px dashed var(--gray-border);border-radius:10px;background:#fff;font-family:inherit;font-size:13px;font-weight:700;color:var(--blue-mid);cursor:pointer}[_nghost-%COMP%] .bk-addrel-btn:hover{border-color:var(--blue-mid);background:var(--blue-light)}[_nghost-%COMP%] .bk-addrel-btn svg{width:15px;height:15px}[_nghost-%COMP%] .bk-relform{margin-top:12px;border:1.5px solid var(--gray-border);border-radius:12px;padding:16px;background:#fafcff}[_nghost-%COMP%] .bk-relform[hidden]{display:none}[_nghost-%COMP%] .bk-relform-t{font-size:13.5px;font-weight:800;color:var(--blue-dark);margin-bottom:12px}[_nghost-%COMP%] .bk-civ{display:flex;gap:18px;margin-bottom:12px;flex-wrap:wrap}[_nghost-%COMP%] .bk-civ label{display:inline-flex;align-items:center;gap:7px;font-size:13.5px;font-weight:600;color:var(--blue-dark);cursor:pointer}[_nghost-%COMP%] .bk-civ input{-webkit-appearance:none;appearance:none;width:17px;height:17px;border:2px solid #CBD8E8;border-radius:50%;cursor:pointer;position:relative;background:#fff}[_nghost-%COMP%] .bk-civ input:checked{border-color:var(--blue-mid)}[_nghost-%COMP%] .bk-civ input:checked:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:7px;height:7px;border-radius:50%;background:var(--blue-mid)}[_nghost-%COMP%] .bk-relrow{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}[_nghost-%COMP%] .bk-input{width:100%;padding:10px 13px;border:1.5px solid var(--gray-border);border-radius:9px;font-size:13px;font-family:inherit;color:var(--blue-dark);background:#fff}[_nghost-%COMP%] .bk-input:focus{outline:none;border-color:var(--blue-mid)}[_nghost-%COMP%] .bk-relcheck{display:flex;align-items:flex-start;gap:9px;font-size:12px;color:var(--gray-text);line-height:1.5;cursor:pointer;margin:4px 0 14px}[_nghost-%COMP%] .bk-relcheck input{margin-top:2px;flex-shrink:0;width:16px;height:16px;accent-color:var(--blue-mid)}[_nghost-%COMP%] .bk-relform-foot{display:flex;justify-content:flex-end;
4gap:9px}[_nghost-%COMP%] .bk-relconfirm{margin-top:12px}[_nghost-%COMP%] .bk-relconfirm[hidden]{display:none}[_nghost-%COMP%] .bk-relconfirm-box{border:1.5px solid #C9DDF0;background:var(--blue-light);border-radius:12px;padding:16px}[_nghost-%COMP%] .bk-relconfirm-t{font-size:13.5px;font-weight:800;color:var(--blue-dark);margin-bottom:6px}[_nghost-%COMP%] .bk-relconfirm-box p{font-size:12.5px;color:#42526b;line-height:1.55;margin-bottom:13px}[_nghost-%COMP%] .bk-authbox{text-align:center;border:1.5px solid var(--gray-border);border-radius:14px;padding:26px 22px;background:#fafcff}[_nghost-%COMP%] .bk-authbox-ic{width:46px;height:46px;border-radius:50%;background:var(--blue-light);color:var(--blue-mid);display:flex;align-items:center;justify-content:center;margin:0 auto 12px}[_nghost-%COMP%] .bk-authbox-ic svg{width:24px;height:24px}[_nghost-%COMP%] .bk-authbox-t{font-size:15px;font-weight:800;color:var(--blue-dark);margin-bottom:6px}[_nghost-%COMP%] .bk-authbox p{font-size:13px;color:var(--gray-text);line-height:1.55;margin:0 auto 16px;max-width:300px}[_nghost-%COMP%] .bk-authbox-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}[_nghost-%COMP%] .bk-guest-link{display:block;margin:14px auto 0;background:none;border:none;font-family:inherit;font-size:13px;font-weight:700;color:var(--blue-mid);cursor:pointer;text-decoration:underline}[_nghost-%COMP%] .bk-guest-link:hover{color:var(--blue-dark)}[_nghost-%COMP%] .bk-guest{margin-top:18px}[_nghost-%COMP%] .bk-telrow{display:grid;grid-template-columns:94px 1fr;gap:10px}[_nghost-%COMP%] .bk-guest-alert{display:flex;gap:9px;align-items:flex-start;margin-top:13px;padding:11px 13px;background:#fff6e9;border:1px solid #F6DDB0;border-radius:10px;font-size:12.5px;color:#7a5a20;line-height:1.45}[_nghost-%COMP%] .bk-guest-alert svg{width:17px;height:17px;color:#c77b12;flex-shrink:0;margin-top:1px}[_nghost-%COMP%] .bk-guest-alert[hidden]{display:none}@media (max-width: 520px){[_nghost-%COMP%] .bk-relrow{grid-template-columns:1fr}}[_nghost-%COMP%] .bk-days{display:flex;align-items:stretch;gap:6px}[_nghost-%COMP%] .bk-arrow{width:30px;border:1px solid var(--gray-border);background:#fff;border-radius:9px;color:var(--blue-dark);cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0}[_nghost-%COMP%] .bk-arrow:disabled{opacity:.35;cursor:not-allowed}[_nghost-%COMP%] .bk-arrow svg{width:15px;height:15px}[_nghost-%COMP%] .bk-cols{flex:1;display:grid;grid-template-columns:repeat(3,1fr);gap:7px;min-width:0}[_nghost-%COMP%] .bk-tznote{display:flex;align-items:flex-start;gap:9px;background:var(--blue-light);border-left:3px solid var(--blue-mid);border-radius:0 7px 7px 0;padding:9px 12px;margin-bottom:12px;font-size:11.5px;line-height:1.5;color:var(--blue-dark)}[_nghost-%COMP%] .bk-tznote svg{width:13px;height:13px;flex-shrink:0;margin-top:2px;color:var(--blue-mid)}[_nghost-%COMP%] .bk-col-h{text-align:center;font-size:11.5px;line-height:1.35;padding-bottom:8px;border-bottom:1px solid var(--gray-border);margin-bottom:9px}[_nghost-%COMP%] .bk-col-h .dow{color:var(--gray-text);text-transform:capitalize}[_nghost-%COMP%] .bk-col-h .dnum{font-weight:800;color:var(--blue-dark);display:block;margin-top:1px}[_nghost-%COMP%] .bk-slot{display:block;width:100%;padding:9px 4px;border-radius:8px;background:var(--blue-light);color:var(--blue-dark);font-weight:700;font-size:12.5px;border:1.5px solid transparent;cursor:pointer;margin-bottom:7px;font-family:inherit;transition:all .12s}[_nghost-%COMP%] .bk-slot:hover{background:#d8e9fa}[_nghost-%COMP%] .bk-slot.sel{background:var(--blue-mid);color:#fff}[_nghost-%COMP%] .bk-slot.repl{position:relative;background:#fff;font-weight:700;overflow:hidden}[_nghost-%COMP%] .bk-slot.repl:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px}[_nghost-%COMP%] .bk-slot.repl.r0{color:#b45309;border-color:#f4c77b}[_nghost-%COMP%] .bk-slot.repl.r0:before{background:#e08a1e}[_nghost-%COMP%] .bk-slot.repl.r0:hover{background:#fff6e9}[_nghost-%COMP%] .bk-slot.repl.r0.sel{background:#e08a1e;color:#fff;border-color:#e08a1e}[_nghost-%COMP%] .bk-slot.repl.r1{color:#6b46c1;border-color:#cdbdf0}[_nghost-%COMP%] .bk-slot.repl.r1:before{background:#7c53d6}[_nghost-%COMP%] .bk-slot.repl.r1:hover{background:#f4effc}[_nghost-%COMP%] .bk-slot.repl.r1.sel{background:#7c53d6;color:#fff;border-color:#7c53d6}[_nghost-%COMP%] .bk-slot.repl.sel:before{display:none}[_nghost-%COMP%] .bk-repl-legend{display:flex;flex-wrap:wrap;align-items:center;gap:7px 16px;font-size:11.5px;color:var(--gray-text);margin-top:12px}[_nghost-%COMP%] .bk-repl-legend[hidden]{display:none}[_nghost-%COMP%] .bk-repl-item{display:inline-flex;align-items:center;gap:6px}[_nghost-%COMP%] .bk-repl-dot{width:11px;height:11px;border-radius:3px;flex-shrink:0}[_nghost-%COMP%] .bk-repl-dot.dot-tit{background:#ecf3fa;border:1px solid #B5C4D8}[_nghost-%COMP%] .bk-repl-dot.r0{background:#e08a1e}[_nghost-%COMP%] .bk-repl-dot.r1{background:#7c53d6}[_nghost-%COMP%] .bk-chosen.repl{background:#f6f8fb;border:1px solid #E2EAF3;color:var(--blue-dark);align-items:flex-start}[_nghost-%COMP%] .bk-chosen.repl svg{margin-top:1px}[_nghost-%COMP%] .bk-chosen-tx{line-height:1.35}[_nghost-%COMP%] .bk-chosen .repl-name, [_nghost-%COMP%] .bk-recap-row .repl-name{font-weight:800}[_nghost-%COMP%] .bk-chosen .repl-name.r0, [_nghost-%COMP%] .bk-recap-row .repl-name.r0{color:#b45309}[_nghost-%COMP%] .bk-chosen .repl-name.r1, [_nghost-%COMP%] .bk-recap-row .repl-name.r1{color:#6b46c1}[_nghost-%COMP%] .bk-chosen.repl.r0 svg{color:#e08a1e}[_nghost-%COMP%] .bk-chosen.repl.r1 svg{color:#7c53d6}[_nghost-%COMP%] .bk-chosen.repl{flex-direction:column;gap:9px}[_nghost-%COMP%] .bk-chosen-row{display:flex;align-items:flex-start;gap:7px;width:100%}[_nghost-%COMP%] .bk-chosen.repl.r0 .bk-ic-time{color:var(--blue-mid)}[_nghost-%COMP%] .bk-chosen .repl-when{display:block;font-weight:700;margin-bottom:3px}[_nghost-%COMP%] .bk-chosen .repl-of, [_nghost-%COMP%] .bk-recap-row .repl-of{display:block;font-size:11px;font-weight:600;color:var(--gray-text);margin-top:1px}[_nghost-%COMP%] .bk-empty{text-align:center;color:var(--gray-light);font-size:11.5px;padding:8px 0}[_nghost-%COMP%] .bk-recap{background:var(--blue-light);border-radius:12px;padding:15px 16px;margin-bottom:14px}[_nghost-%COMP%] .bk-recap-row{display:flex;gap:10px;padding:7px 0;font-size:13px}[_nghost-%COMP%] .bk-recap-row .rk{color:var(--gray-text);width:96px;flex-shrink:0}[_nghost-%COMP%] .bk-recap-row .rv{color:var(--blue-dark);font-weight:700}[_nghost-%COMP%] .bk-timer{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12.5px;color:var(--gray-text);background:#fff6e9;border:1px solid #F6DDB0;border-radius:10px;padding:10px 13px;margin-top:13px}
4[_nghost-%COMP%] .bk-timer span{display:inline-flex;align-items:center;gap:7px}[_nghost-%COMP%] .bk-timer svg{width:15px;height:15px;color:#c77b12;flex-shrink:0}[_nghost-%COMP%] .bk-timer b{color:#c77b12;font-weight:800;font-variant-numeric:tabular-nums}[_nghost-%COMP%] .bk-timer[hidden]{display:none}[_nghost-%COMP%] #bkTimerBar{margin:0 18px 12px}[_nghost-%COMP%] .bk-mini-recap{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 16px}[_nghost-%COMP%] .bk-mini-recap[hidden]{display:none}[_nghost-%COMP%] .bk-mini-chip{display:inline-flex;align-items:center;gap:6px;background:var(--blue-light);border:1px solid #d4e6f6;border-radius:999px;padding:5px 9px 5px 11px;font-size:12px;font-family:inherit;color:var(--blue-dark);cursor:pointer;line-height:1.3;text-align:left}[_nghost-%COMP%] .bk-mini-chip:hover{background:#fff;border-color:var(--blue-mid)}[_nghost-%COMP%] .bk-mini-chip b{color:var(--blue-mid);font-weight:800}[_nghost-%COMP%] .bk-mini-chip span{font-weight:700;color:var(--blue-dark)}[_nghost-%COMP%] .bk-mini-chip svg{width:12px;height:12px;color:var(--gray-light);flex-shrink:0}[_nghost-%COMP%] .bk-reassure{margin-top:13px;display:flex;flex-direction:column;gap:8px}[_nghost-%COMP%] .bk-reassure div{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--gray-text)}[_nghost-%COMP%] .bk-reassure svg{width:15px;height:15px;color:var(--green);flex-shrink:0}[_nghost-%COMP%] .bk-success{text-align:center;padding:14px 6px 4px}[_nghost-%COMP%] .bk-check{width:62px;height:62px;border-radius:50%;background:var(--green-bg);display:flex;align-items:center;justify-content:center;margin:0 auto 14px}[_nghost-%COMP%] .bk-check svg{width:32px;height:32px;color:var(--green)}[_nghost-%COMP%] .bk-success h3{font-size:17px;font-weight:800;color:var(--blue-dark);margin-bottom:5px}[_nghost-%COMP%] .bk-success p{font-size:13px;color:var(--gray-text);margin-bottom:16px}[_nghost-%COMP%] .bk-check.warn{background:#fff4e0}[_nghost-%COMP%] .bk-check.warn svg{color:#c98200}[_nghost-%COMP%] .bk-check.attn{background:#fcf3c9}[_nghost-%COMP%] .bk-check.attn svg{color:#b8920a}[_nghost-%COMP%] .bk-stores{margin-top:18px;padding-top:16px;border-top:1px solid var(--gray-border)}[_nghost-%COMP%] .bk-stores-t{font-size:12.5px;color:var(--gray-text);font-weight:600;margin-bottom:10px}[_nghost-%COMP%] .bk-stores-row{display:flex;gap:9px;justify-content:center;flex-wrap:wrap}[_nghost-%COMP%] .bk-store{display:inline-flex;align-items:center;gap:8px;background:#1b2940;color:#fff;padding:8px 14px;border-radius:10px;text-decoration:none;transition:transform .15s,box-shadow .15s;box-shadow:0 5px 14px #1429402e}[_nghost-%COMP%] .bk-store:hover{transform:translateY(-2px);box-shadow:0 9px 22px #14294042}[_nghost-%COMP%] .bk-store svg{width:19px;height:19px;flex-shrink:0}[_nghost-%COMP%] .bk-store-tx{display:flex;flex-direction:column;line-height:1.15;text-align:left}[_nghost-%COMP%] .bk-store-tx small{font-size:8.5px;opacity:.75;font-weight:500}[_nghost-%COMP%] .bk-store-tx strong{font-size:12.5px;font-weight:700}[_nghost-%COMP%] .bk-demo-variant{font-size:11px;color:var(--gray-light);margin-top:16px;padding-top:12px;border-top:1px dashed var(--gray-border)}[_nghost-%COMP%] .bk-demo-variant a{color:var(--blue-mid);font-weight:700;cursor:pointer}[_nghost-%COMP%] .bk-demo-variant a:hover{text-decoration:underline}[_nghost-%COMP%] .bk-success-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;margin-top:16px;padding:13px 26px;border-radius:12px;background:var(--blue-mid);color:#fff;font-size:14.5px;font-weight:700;text-decoration:none;transition:background .15s}[_nghost-%COMP%] .bk-success-btn:hover{background:var(--blue-dark)}[_nghost-%COMP%] .bk-success-btn svg{width:17px;height:17px}[_nghost-%COMP%] .bk-foot{display:flex;gap:9px;padding:12px 18px 16px;position:sticky;bottom:0;background:#fff;box-shadow:0 -7px 16px #143f6e0f;z-index:5}[_nghost-%COMP%] .bk-btn{flex:1;padding:13px;border-radius:11px;font-family:inherit;font-size:14px;font-weight:800;cursor:pointer;border:none;text-align:center}[_nghost-%COMP%] .bk-btn-prev{background:#fff;border:1.5px solid var(--gray-border);color:var(--blue-dark);flex:0 0 auto;padding:13px 18px}[_nghost-%COMP%] .bk-btn-next{background:var(--blue-mid);color:#fff}[_nghost-%COMP%] .bk-btn-next:disabled{background:#bfd4e6;cursor:not-allowed}[_nghost-%COMP%] .bk-btn-ghost{background:#fff;border:1.5px solid var(--gray-border);color:var(--blue-dark)}.rdv-head[_ngcontent-%COMP%]{margin-bottom:18px}.rdv-back[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:var(--blue-mid)}.rdv-back[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:15px;height:15px}.rdv-back[_ngcontent-%COMP%]:hover{color:var(--blue-dark)}.rdv-h1[_ngcontent-%COMP%]{font-size:24px;font-weight:800;color:var(--blue-dark);margin-top:12px}.rdv-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:300px 1fr;gap:28px;align-items:start}.rdv-grid[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{min-width:0}.rdv-aside[_ngcontent-%COMP%]{position:sticky;top:80px;background:#fff;border:1px solid var(--gray-border);border-radius:16px;padding:24px 22px;box-shadow:0 2px 14px #143f6e0a}.rdv-aside-photo[_ngcontent-%COMP%]{width:64px;
4height:64px;border-radius:16px;background:linear-gradient(135deg,#dbe9f7,#c2d9ee);display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:800;color:var(--blue-dark);margin-bottom:14px}.rdv-aside-name[_ngcontent-%COMP%]{font-size:18px;font-weight:800;color:var(--blue-dark)}.rdv-aside-spec[_ngcontent-%COMP%]{font-size:13.5px;color:var(--blue-mid);font-weight:700;margin-top:2px}.rdv-aside-rpps[_ngcontent-%COMP%]{font-size:11.5px;color:var(--gray-light);font-weight:600;margin-top:4px;margin-bottom:6px}.rdv-aside-row[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:8px;font-size:12.5px;color:var(--gray-text);line-height:1.5;margin-top:11px}.rdv-aside-row[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:15px;height:15px;color:var(--blue-mid);flex-shrink:0;margin-top:2px}@media (max-width: 760px){.rdv-grid[_ngcontent-%COMP%]{grid-template-columns:1fr;gap:16px}.rdv-aside[_ngcontent-%COMP%]{position:static}}.crumb-rdv[_ngcontent-%COMP%], .ft[_ngcontent-%COMP%]{display:none}.ft[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--blue-mid)}.ft[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}#bkOv[_ngcontent-%COMP%]{display:none}.v7-rdv-mode[_nghost-%COMP%] .wrap[_ngcontent-%COMP%]{display:none!important}.v7-rdv-mode[_nghost-%COMP%] .pf-grid[_ngcontent-%COMP%]{display:none!important}.v7-rdv-mode[_nghost-%COMP%] .bk-bar[_ngcontent-%COMP%]{display:none!important}.v7-rdv-mode[_nghost-%COMP%] .crumb-fiche[_ngcontent-%COMP%]{display:none}.v7-rdv-mode[_nghost-%COMP%] .crumb-rdv[_ngcontent-%COMP%]{display:block}.v7-rdv-mode[_nghost-%COMP%] footer[_ngcontent-%COMP%]{display:none}.v7-rdv-mode[_nghost-%COMP%] .ft[_ngcontent-%COMP%]{display:block;text-align:center;font-size:12px;color:var(--gray-text);padding:22px 22px 40px;line-height:1.7}.v7-rdv-mode[_nghost-%COMP%] #bkOv[_ngcontent-%COMP%]{position:static;display:block;background:transparent;max-width:940px;margin:0 auto;padding:24px 18px 64px;z-index:auto;overflow:visible;min-height:0}.v7-rdv-mode[_nghost-%COMP%] #bkOv[_ngcontent-%COMP%] .bk-card[_ngcontent-%COMP%]{max-width:none;max-height:none;min-height:0;box-shadow:none;border:1px solid var(--gray-border);overflow:visible}.v7-rdv-mode[_nghost-%COMP%] #bkOv[_ngcontent-%COMP%] .bk-card[_ngcontent-%COMP%] .bk-head[_ngcontent-%COMP%]{display:none}.v7-rdv-mode[_nghost-%COMP%] #bkOv[_ngcontent-%COMP%] .bk-body[_ngcontent-%COMP%]{overflow:visible}@media (max-width: 760px){.v7-rdv-mode[_nghost-%COMP%] #bkOv[_ngcontent-%COMP%]{padding:10px 14px 48px}.v7-rdv-mode[_nghost-%COMP%] .rdv-head[_ngcontent-%COMP%]{margin-bottom:10px}.v7-rdv-mode[_nghost-%COMP%] .rdv-h1[_ngcontent-%COMP%]{font-size:19px;margin-top:6px}.v7-rdv-mode[_nghost-%COMP%] .rdv-grid[_ngcontent-%COMP%]{display:flex;flex-direction:column}.v7-rdv-mode[_nghost-%COMP%] .rdv-aside[_ngcontent-%COMP%]{order:2}.v7-rdv-mode[_nghost-%COMP%] #bkOv[_ngcontent-%COMP%] .bk-card[_ngcontent-%COMP%] .bk-head[_ngcontent-%COMP%]{display:flex;align-items:center;gap:11px;margin-bottom:12px}.v7-rdv-mode[_nghost-%COMP%] #bkOv[_ngcontent-%COMP%] .bk-card[_ngcontent-%COMP%] .bk-head[_ngcontent-%COMP%] .pf-photo[_ngcontent-%COMP%]{width:42px;height:42px;font-size:15px}}@media (max-width: 560px){.v7-rdv-mode[_nghost-%COMP%] .ft[_ngcontent-%COMP%]{padding:16px 18px 20px;font-size:11.5px;line-height:1.5}}@media (max-width: 980px){.pf-tabs[_ngcontent-%COMP%]{top:56px}.ft-wrap[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr}}@media (max-width: 760px){.pf-tabs[_ngcontent-%COMP%]{top:56px}.wrap[_ngcontent-%COMP%]{padding-bottom:84px}.ft-wrap[_ngcontent-%COMP%]{grid-template-columns:1fr}.bk-ov[_ngcontent-%COMP%]{padding:0}.bk-card[_ngcontent-%COMP%]{max-width:none;min-height:100vh;max-height:none;border-radius:0}}@media (max-width: 560px){.pf-cta[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch;gap:12px}.pf-cta-btn[_ngcontent-%COMP%]{width:100%}}@media (max-width: 520px){.pf-id-top[_ngcontent-%COMP%]{flex-direction:column}}@media (max-width: 760px){.pf-sec[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{cursor:pointer;-webkit-user-select:none;user-select:none;position:relative;padding-right:30px}.pf-sec[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]:after{content:"";position:absolute;right:6px;top:50%;width:9px;height:9px;border-right:2.2px solid var(--gray-light, #B5C4D8);border-bottom:2.2px solid var(--gray-light, #B5C4D8);transform:translateY(-70%) rotate(45deg);transition:transform .22s}.pf-sec.open[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]:after{transform:translateY(-40%) rotate(-135deg)}.pf-sec[_ngcontent-%COMP%]:not(.open) >
4 [_ngcontent-%COMP%]:not(h2){display:none!important}.pf-sec[_ngcontent-%COMP%]:not(.open) h2[_ngcontent-%COMP%]{margin-bottom:0}.pf-sec[_ngcontent-%COMP%]:not(.open){padding-top:18px;padding-bottom:18px}}@media (max-width: 760px){.bk-bar[_ngcontent-%COMP%]{display:flex}.pf-id[_ngcontent-%COMP%]{padding:16px 18px}.pf-photo[_ngcontent-%COMP%]{width:64px;height:64px;font-size:22px;border-radius:14px}.pf-cta[_ngcontent-%COMP%]{margin-top:14px;padding-top:14px}}@media (max-width: 520px){.pf-id-top[_ngcontent-%COMP%]{flex-direction:row;align-items:flex-start}.pf-id-top[_ngcontent-%COMP%] .pf-head[_ngcontent-%COMP%]{min-width:0;flex:1}.pf-head[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{white-space:normal}}@media (max-width: 560px){footer[_ngcontent-%COMP%]{padding:32px 20px 18px}.ft-wrap[_ngcontent-%COMP%]{gap:0}.ft-about[_ngcontent-%COMP%]{font-size:12.5px;line-height:1.5;margin-bottom:6px}.ft-col[_ngcontent-%COMP%]{border-top:1px solid rgba(255,255,255,.12)}.ft-col[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin-bottom:0;padding:12px 2px;cursor:pointer;display:flex;align-items:center;justify-content:space-between;-webkit-user-select:none;user-select:none}.ft-col[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]:after{content:"";width:8px;height:8px;border-right:2px solid rgba(255,255,255,.5);border-bottom:2px solid rgba(255,255,255,.5);transform:rotate(45deg);transition:transform .25s;flex-shrink:0}.ft-col.open[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]:after{transform:rotate(-135deg)}.ft-col[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:none}.ft-col.open[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;padding:3px 0}.ft-col.open[_ngcontent-%COMP%]{padding-bottom:10px}.ft-bottom[_ngcontent-%COMP%]{flex-direction:column;align-items:center;text-align:center;gap:4px;margin-top:14px;padding-top:14px;font-size:12px}}a.crumb-self[_ngcontent-%COMP%], a.crumb-self[_ngcontent-%COMP%]:hover{color:inherit;font-weight:inherit;text-decoration:none}'],changeDetection:0})}}return o})(),Cs=(()=>{class o extends Oi{constructor(e,i,t,r,l,p){super(i,t,r,l,p),this._calendarService=e,this._calendarService.activeCalendar=t}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}customPrev(){this.previousClicked(),this._calendarService.closeCalander(this.calendar.activeDate)}customNext(){this.nextClicked(),this._calendarService.closeCalander(this.calendar.activeDate)}static{this.\u0275fac=function(i){return new(i||o)($(xt),$(Di),$(Ti),$(_t),$(mi),$(qe))}}static{this.\u0275cmp=Oe({type:o,selectors:[["example-n-header"]],features:[Bt],ngContentSelectors:gs,decls:17,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["mat-button","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"click","disabled"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"click","disabled"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(i,t){i&1&&(Vt(),n(0,"div",0)(1,"div",1)(2,"label",2),c(3),s(),n(4,"button",3),T("click",function(){return t.currentPeriodClicked()}),n(5,"span",4),c(6),s(),M(),n(7,"svg",5),v(8,"polygon",6),s()(),A(),v(9,"div",7),At(10),n(11,"button",8),T("click",function(){return t.customPrev(
4)}),M(),n(12,"svg",9),v(13,"path",10),s()(),A(),n(14,"button",11),T("click",function(){return t.customNext()}),M(),n(15,"svg",9),v(16,"path",12),s()()()()),i&2&&(a(2),B("id",t._periodButtonLabelId),a(),g(t.periodButtonDescription),a(),xe("aria-label",t.periodButtonLabel)("aria-describedby",t._periodButtonLabelId),a(2),g(t.periodButtonText),a(),F("mat-calendar-invert",t.calendar.currentView!=="month"),a(4),B("disabled",!t.previousEnabled()),xe("aria-label",t.prevButtonLabel),a(3),B("disabled",!t.nextEnabled()),xe("aria-label",t.nextButtonLabel))},dependencies:[Ee,Ci,Ze],encapsulation:2,changeDetection:0})}}return o})();var _l=[{path:"",component:fo}];export{_l as default};
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.