1import{a as Ct}from"./chunk-22KKXAXM.js";import{b as ut}from"./chunk-AWKUUSP4.js";import{a as wt}from"./chunk-62SROWCZ.js";import{a as vt,b as bt,c as gt,d as At}from"./chunk-JSADYM7U.js";import{a as ht,b as _t}from"./chunk-J2LP754D.js";import{a as yt,c as St}from"./chunk-4PQWGGVL.js";import{a as mt,b as pt}from"./chunk-GA4V4KUG.js";import{a as E,b as rt,c as at,d as nt,e as st,f as lt,g as ct}from"./chunk-TQPJLVZV.js";import{a as dt}from"./chunk-KH7BRNI5.js";import{b as Y}from"./chunk-IMX54EOR.js";import{d as Ye,e as Xe,f as Ze,g as et,h as tt,i as ot,j as it}from"./chunk-PLJOCKL2.js";import{a as Ne,b as Re,e as ze,i as je,j as qe,m as Ve,n as He}from"./chunk-EWZZCNL2.js";import"./chunk-6ZLDBIST.js";import{d as T}from"./chunk-24MWP4UU.js";import{b as Ge,c as Je}from"./chunk-KRIAO6QJ.js";import{a as ft}from"./chunk-NYWXLI4U.js";import"./chunk-2IURLDKA.js";import{a as Ue,d as $e,f as We}from"./chunk-42KGAGL2.js";import{a as Dt}from"./chunk-NY4RBHJF.js";import{b as Ke}from"./chunk-YQJGS37C.js";import"./chunk-BKXXNFNY.js";import{a as Mt}from"./chunk-AM7URZDU.js";import{a as Qe}from"./chunk-HF6KAANO.js";import{A as De,c as Se,h as we,i as Ce,j as Fe,l as g,n as xe,p as ke,q as Ee,u as Te,x as Ie,z as Me}from"./chunk-TZCZQJJO.js";import{ga as Be}from"./chunk-M55MF244.js";import{b as Oe,d as Le,e as Pe,h as y}from"./chunk-F5GJAPD3.js";import{a as be,c as ge,m as Ae,o as ye}from"./chunk-44ZWPMA3.js";import{Cb as se,Dc as j,Dd as ve,Ec as m,F as U,Fc as J,Gc as q,Hc as ce,Jb as w,Jc as fe,Oc as de,Pc as me,Qc as pe,Tb as p,Uc as K,Vc as Q,X as re,ca as ae,dc as l,ec as n,fc as v,ia as L,jc as le,lb as d,mb as k,mc as R,n as H,oc as x,rb as ne,s as z,ta as P,ua as N,wd as ue,xc as $,xd as he,yc as W,yd as _e,zc as G}from"./chunk-RFW4ZZRK.js";import{g as ie}from"./chunk-WWX6BADO.js";var I=ie(Dt());var S=ie(Mt());var Ft=(()=>{class r{constructor(){this._httpClient=L(ge)}getRequestOptionsWithoutObserver(){return{headers:new be({Accept:"application/json"}),withCredentials:!0}}getInitialData(t){let o=`//${y.API_URL}/api/sasbooking/getInitialData`;return this._httpClient.post(`${o}`,t,this.getRequestOptionsWithoutObserver())}getSlotsForSASBooking(t,o,s,f,a){let c=`//${y.API_URL}/api/sasbooking/getSlotsForSASBooking`,b={doctor_id:t,type_id:o,date_apt:s,location_id:f,start_date_str:a};return this._httpClient.post(`${c}`,b,this.getRequestOptionsWithoutObserver())}holdSlot(t){let o=`//${y.API_URL}/api/holdSlotByDoc`;return this._httpClient.post(`${o}`,t,this.getRequestOptionsWithoutObserver())}clearSlot(t){let o=`//${y.API_URL}/api/clearHoldSlotByDoc`;return this._httpClient.post(`${o}`,t,this.getRequestOptionsWithoutObserver())}clearHoldAll(t){let o=`//${y.API_URL}/api/clearHoldSlotByDocAll`;return this._httpClient.post(`${o}`,t,this.getRequestOptionsWithoutObserver())}getNoteForPatient(t){let o=`//${y.API_URL}/api/getNoteForPatient`;return this._httpClient.post(`${o}`,t,this.getRequestOptionsWithoutObserver())}createAptBySAS(t){let o=`//${y.API_URL}/api/sasbooking/createAptBySAS`;return this._httpClient.post(`${o}`,t,this.getRequestOptionsWithoutObserver())}updateTerms(t){let o=`//${y.API_URL}/api/sas-partner/updateTerms`;return this._httpClient.post(`${o}`,t,this.getRequestOptionsWithoutObserver())}static{this.\u0275fac=function(o){return new(o||r)}}static{this.\u0275prov=ae({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var e="rgba(black, 0.87)",i="rgba(white, 0.87)";var X={red:{50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000",contrast:{50:e,100:e,200:e,300:e,400:e,500:"white",600:"white",700:"white",800:i,900:i,A100:e,A200:"white",A400:"white",A700:"white"}},pink:{50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162",contrast:{50:e,100:e,200:e,300:e,400:e,500:"white",600:"white",700:i,800:i,900:i,A100:e,A200:"white",A400:"white",A700:"white"}},purple:{50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff",contrast:{50:e,100:e,200:e,300:"white",400:"white",500:i,600:i,700:i,800:i,900:i,A100:e,A200:"white",A400:"white",A700:"white"}},"deep-purple":{50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",A100:"#b388ff",A200:"#7c4dff",A400:"#651fff",A700:"#6200ea",contrast:{50:e,100:e,200:e,300:"white",400:"white",500:i,600:i,700:i,800:i,900:i,A100:e,A200:"white",A400:i,A700:i}},indigo:{50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe",contrast:{50:e,100:e,200:e,300:"white",400:"white",500:i,600:i,700:i,800:i,900:i,A100:e,A200:"white",A400:"white",A700:i}},blue:{50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff",contrast:{50:e,100:e,200:e,300:e,400:e,500:"white",600:"white",700:"white",800:i,900:i,A100:e,A200:"white",A400:"white",A700:"white"}},"light-blue":{50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea",contrast:{50:e,100:e,200:e,300:e,400:e,500:"white",600:"white",700:"white",800:"white",900:i,A100:e,A200:e,A400:e,A700:"white"}},cyan:{50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",A100:"#84ffff",A200:"#18ffff",A400:"#00e5ff",A700:"#00b8d4",contrast:{50:e,100:e,200:e,300:e,400:e,500:"white",600:"white",700:"white",800:"white",900:i,A100:e,A200:e,A400:e,A700:e}},teal:{50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5",contrast:{50:e,100:e,200:e,300:e,400:e,500:"white",600:"white",700:"white",800:i,900:i,A100:e,A200:e,A400:e,A700:e}},green:{50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853",contrast:{50:e,100:e,200:e,300:e,400:e,500:"white",600:"white",700:"white",800:i,900:i,A100:e,A200:e,A400:e,A700:e}},"light-green":{50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",A100:"#ccff90",A200:"#b2ff59",A400:"#76ff03",A700:"#64dd17",contrast:{50:e,100:e,200:e,300:e,400:e,500:e,600:e,700:e,800:"white",900:"white",A100:e,A200:e,A400:e,A700:e}},lime:{50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",A100:"#f4ff81",A200:"#eeff41",A400:"#c6ff00",A700:"#aeea00",contrast:{50:e,100:e,200:e,300:e,400:e,500:e,600:e,700:e,800:e,900:"white",A100:e,A200:e,A400:e,A700:e}},yellow:{50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",A100:"#ffff8d",A200:"#ffff00",A400:"#ffea00",A700:"#ffd600",contrast:{50:e,100:e,200:e,300:e,400:e,500:e,600:e,700:e,800:e,900:e,A100:e,A200:e,A400:e,A700:e}},amber:{50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",A100:"#ffe57f",A200:"#ffd740",A400:"#ffc400",A700:"#ffab00",contrast:{50:e,100:e,200:e,300:e,400:e,500:e,600:e,700:e,800:e,900:e,A100:e,A200:e,A400:e,A700:e}},orange:{50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00",contrast:{50:e,100:e,200:e,300:e,400:e,500:e,600:e,700:e,800:"white",900:"white",A100:e,A200:e,A400:e,A700:"black"}},"deep-orange":{50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",A100:"#ff9e80",A200:"#ff6e40",A400:"#ff3d00",A700:"#dd2c00",contrast:{50:e,100:e,200:e,300:e,400:e,500:"white",600:"white",700:"white",800:"white",900:"white",A100:e,A200:e,A400:"white",A700:"white"}}
1,brown:{50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723",A100:"#d7ccc8",A200:"#bcaaa4",A400:"#8d6e63",A700:"#5d4037",contrast:{50:e,100:e,200:e,300:"white",400:"white",500:i,600:i,700:i,800:i,900:i,A100:e,A200:e,A400:"white",A700:i}},grey:{0:"#ffffff",50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",1e3:"#000000",A100:"#ffffff",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161",contrast:{0:e,50:e,100:e,200:e,300:e,400:e,500:e,600:i,700:i,800:i,900:i,1e3:i,A100:e,A200:e,A400:e,A700:i}},"blue-grey":{50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238",A100:"#cfd8dc",A200:"#b0bec5",A400:"#78909c",A700:"#455a64",contrast:{50:e,100:e,200:e,300:e,400:"white",500:"white",600:i,700:i,800:i,900:i,A100:e,A200:e,A400:"white",A700:i}},"nova-navy":{50:"#ECECEE",100:"#C5C6CB",200:"#9EA1A9",300:"#7D818C",400:"#5C616F",500:"#3C4252",600:"#353A48",700:"#2D323E",800:"#262933",900:"#1E2129",A100:"#C5C6CB",A200:"#9EA1A9",A400:"#5C616F",A700:"#2D323E",contrast:{50:e,100:e,200:e,300:"white",400:"white",500:i,600:i,700:i,800:i,900:i,A100:e,A200:i,A400:i,A700:i}},"nova-white":{500:"white",contrast:{500:e}},"nova-black":{500:"black",contrast:{500:"white"}}},Ot=["#ffebee","#ffcdd2","#ef9a9a","#e57373","#ef5350","#f44336","#e53935","#d32f2f","#c62828","#b71c1c","#ff8a80","#ff5252","#ff1744","#d50000","#fce4ec","#f8bbd0","#f48fb1","#f06292","#ec407a","#e91e63","#d81b60","#c2185b","#ad1457","#880e4f","#ff80ab","#ff4081","#f50057","#c51162","#f3e5f5","#e1bee7","#ce93d8","#ba68c8","#ab47bc","#9c27b0","#8e24aa","#7b1fa2","#6a1b9a","#4a148c","#ea80fc","#e040fb","#d500f9","#aa00ff","#ede7f6","#d1c4e9","#b39ddb","#9575cd","#7e57c2","#673ab7","#5e35b1","#512da8","#4527a0","#311b92","#b388ff","#7c4dff","#651fff","#6200ea","#e8eaf6","#c5cae9","#9fa8da","#7986cb","#5c6bc0","#3f51b5","#3949ab","#303f9f","#283593","#1a237e","#8c9eff","#536dfe","#3d5afe","#304ffe","#e3f2fd","#bbdefb","#90caf9","#64b5f6","#42a5f5","#2196f3","#1e88e5","#1976d2","#1565c0","#0d47a1","#82b1ff","#448aff","#2979ff","#2962ff","#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b","#80d8ff","#40c4ff","#00b0ff","#0091ea","#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064","#84ffff","#18ffff","#00e5ff","#00b8d4","#e0f2f1","#b2dfdb","#80cbc4","#4db6ac","#26a69a","#009688","#00897b","#00796b","#00695c","#004d40","#a7ffeb","#64ffda","#1de9b6","#00bfa5","#e8f5e9","#c8e6c9","#a5d6a7","#81c784","#66bb6a","#4caf50","#43a047","#388e3c","#2e7d32","#1b5e20","#b9f6ca","#69f0ae","#00e676","#00c853","#f1f8e9","#dcedc8","#c5e1a5","#aed581","#9ccc65","#8bc34a","#7cb342","#689f38","#558b2f","#33691e","#ccff90","#b2ff59","#76ff03","#64dd17","#f9fbe7","#f0f4c3","#e6ee9c","#dce775","#d4e157","#cddc39","#c0ca33","#afb42b","#9e9d24","#827717","#f4ff81","#eeff41","#c6ff00","#aeea00","#fffde7","#fff9c4","#fff59d","#fff176","#ffee58","#ffeb3b","#fdd835","#fbc02d","#f9a825","#f57f17","#ffff8d","#ffff00","#ffea00","#ffd600","#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00","#ffe57f","#ffd740","#ffc400","#ffab00","#fff3e0","#ffe0b2","#ffcc80","#ffb74d","#ffa726","#ff9800","#fb8c00","#f57c00","#ef6c00","#e65100","#ffd180","#ffab40","#ff9100","#ff6d00","#fbe9e7","#ffccbc","#ffab91","#ff8a65","#ff7043","#ff5722","#f4511e","#e64a19","#d84315","#bf360c","#ff9e80","#ff6e40","#ff3d00","#dd2c00","#efebe9","#d7ccc8","#bcaaa4","#a1887f","#8d6e63","#795548","#6d4c41","#5d4037","#4e342e","#3e2723","#d7ccc8","#bcaaa4","#8d6e63","#5d4037","#fafafa","#f5f5f5","#eeeeee","#e0e0e0","#bdbdbd","#9e9e9e","#757575","#616161","#424242","#212121","#ffffff","#eeeeee","#bdbdbd","#616161","#eceff1","#cfd8dc","#b0bec5","#90a4ae","#78909c","#607d8b","#546e7a","#455a64","#37474f","#263238","#cfd8dc","#b0bec5","#78909c","#455a64"],xt=(()=>{class r{static{this.all=X}static{this.presets=Ot}static getColor(t){return X[t]?X[t]:!1}}return r})();var Lt=["picker"],Pt=["slotTimeOut"],Nt=r=>({hidden:r}),Rt=()=>({leftTime:300}
1),zt=(r,h)=>[r,h];function jt(r,h){if(r&1&&(l(0,"div"),m(1," Pro : "),l(2,"strong"),m(3),n()()),r&2){let t=x(2);d(3),ce("",t.doctor.last_name," ",t.doctor.first_name,"")}}function qt(r,h){if(r&1&&(l(0,"div"),m(1," Lieu : "),l(2,"strong"),m(3),n()()),r&2){let t=x(2);d(3),fe("",t.location.address," ",t.location.city," ",t.location.postalCode," ",t.location.phone,"")}}function Vt(r,h){if(r&1&&(l(0,"mat-option",43),m(1),n()),r&2){let t=h.$implicit;p("value",t),d(),q(" ",t.type_name," ")}}function Ht(r,h){r&1&&(l(0,"span",50),m(1,"??:??"),n())}function Ut(r,h){if(r&1&&(l(0,"span",51),m(1),n()),r&2){let t=x(2);d(),J(t.selectedSlot)}}function $t(r,h){r&1&&(l(0,"div",52),v(1,"mat-progress-spinner",53),n())}function Wt(r,h){if(r&1&&(l(0,"mat-radio-button",54),m(1),n()),r&2){let t=h.$implicit;p("value",t),d(),q(" ",t.name," ")}}function Gt(r,h){r&1&&(l(0,"mat-form-field",14)(1,"mat-label"),m(2,"Message concernant le rdv pour le professionnel"),n(),v(3,"textarea",55),n())}function Jt(r,h){r&1&&(l(0,"mat-error"),m(1),K(2,"transloco"),n()),r&2&&(d(),q(" ",Q(2,1,"common_home.err_dob_future")," "))}function Kt(r,h){r&1&&(l(0,"mat-form-field",14)(1,"mat-label"),m(2,"Num\xE9ro de S\xE9cu"),n(),v(3,"input",56),n())}function Qt(r,h){if(r&1&&(l(0,"div")(1,"mat-error",57),m(2),n()()),r&2){let t=x(2);d(2),J(t.phone_error_string)}}function Yt(r,h){r&1&&(l(0,"mat-form-field",14)(1,"mat-label"),m(2,"Veuillez adresser vos \xE9ventuelles remarques au patient ici"),n(),v(3,"textarea",58),n())}function Xt(r,h){if(r&1){let t=le();l(0,"div",8)(1,"h1",9),m(2,"R\xE9server un RDV"),n(),l(3,"form",10)(4,"div",11)(5,"div",12),w(6,jt,4,2,"div",13)(7,qt,4,4,"div",13),n(),l(8,"mat-form-field",14)(9,"mat-label"),m(10,"Rendez-vous souhait\xE9*"),n(),v(11,"input",15),l(12,"button",16)(13,"mat-icon"),m(14,"close"),n()(),l(15,"mat-autocomplete",17,0),R("optionSelected",function(){P(t);let s=x();return N(s.onAptTypeSelectionChanged())}),w(17,Vt,2,2,"mat-option",18),K(18,"async"),n()(),l(19,"mat-form-field",14)(20,"mat-label"),m(21,"Date du rendez-vous*"),n(),v(22,"input",19)(23,"mat-datepicker-toggle",20)(24,"mat-datepicker",null,1),n(),l(26,"div",21)(27,"span",22),m(28,"Je s\xE9lectionne un horaire"),n(),l(29,"div",23),w(30,Ht,2,0,"span",24)(31,Ut,2,1,"span",25),v(32,"countdown",26,2),n()(),w(34,$t,2,0,"div",27),l(35,"mat-radio-group",28),R("change",function(s){P(t);let f=x();return N(f.slotSelected(s))}),w(36,Wt,2,2,"mat-radio-button",29),n(),l(37,"mat-slide-toggle",30)(38,"span"),m(39,"Message professionnel"),n()(),w(40,Gt,4,0,"mat-form-field",31),n(),l(41,"div",11)(42,"div",32)(43,"mat-form-field",33)(44,"mat-label"),m(45,"Pr\xE9nom"),n(),v(46,"input",34),n(),l(47,"mat-form-field",33)(48,"mat-label"),m(49,"Nom de famille"),n(),v(50,"input",35),n()(),l(51,"div",32)(52,"mat-form-field",36)(53,"mat-label"),m(54,"Date de naissance"),n(),v(55,"input",37)(56,"mat-datepicker-toggle",20)(57,"mat-datepicker",null,3),w(59,Jt,3,3,"mat-error",13),n(),l(60,"mat-form-field",33)(61,"mat-label"),m(62,"Nom de jeune fille"),n(),v(63,"input",38),n()(),l(64,"div",32)(65,"mat-form-field",39)(66,"mat-label"),m(67,"Adresse e-mail"),n(),v(68,"input",40),n(),l(69,"mat-form-field",41)(70,"mat-label"),m(71,"Genre"),n(),l(72,"mat-select",42),v(73,"mat-option",43),l(74,"mat-option",43),m(75,"Homme"),n(),l(76,"mat-option",43),m(77,"Femme"),n(),l(78,"mat-option",43),m(79,"Autre"),n()()()(),w(80,Kt,4,0,"mat-form-field",31),l(81,"div",44)(82,"div",23),v(83,"ngx-intl-tel-input",45),l(84,"button",46),R("click",function(s){P(t);let f=x();return N(f.showPhoneInfo(s))}),m(85,"Aide"),n()(),w(86,Qt,3,1,"div",13),n(),l(87,"mat-slide-toggle",47)(88,"span"),m(89,"Message patient"),n()(),w(90,Yt,4,0,"mat-form-field",31),n()(),l(91,"div",48)(92,"button",49),R("click",function(){P(t);let s=x();return N(s.bookSasLiteAppointment())}),m(93," Confirmer le rendez-vous "),n()()()}if(r&2){let t,o=j(16),s=j(25),f=j(58),a=x();d(3),p("formGroup",a.eventForm),d(3),p("ngIf",a.doctor&&a.doctor.last_name&&a.doctor.first_name),d(),p("ngIf",a.location&&a.location.id),d(4),p("matAutocomplete",o),d(4),p("displayWith",a.displayAptTypeFn),d(2),p("ngForOf",Q(18,37,a.filteredTypes)),d(5),p("matDatepicker",s),d(),p("for",s),d(7),p("ngIf",!a.selectedSlot||a.selectedSlot==""),d(),p("ngIf",a.selectedSlot&&a.selectedSlot!=""),d(),p("ngClass",me(39,Nt,!a.selectedSlot||a.selectedSlot==""))("config",de(41,Rt)),d(2),p("ngIf",a.isLoadingSlots),d(2),p("ngForOf",a.checklist.checkItems),d(4),p("ngIf",a.eventForm.get("showNoteForClinic").value==!0),d(15),p("matDatepicker",f),d(),p("for",f),d(3),p("ngIf",(t=a.eventForm.get("dob"))==null?null:t.hasError("matDatepickerMax")),d(14),p("value",""),d(),p("value","Male"),d(2),p("value","Female"),d(2),p("value","Autre"),d(2),p("ngIf",a.APP_HOME!="https://ci.clikodoc.com"),d(3),p("cssClass","custom")("searchCountryPlaceholder",a.countrySearchStr)("searchCountryFlag",!0)("enableAutoCountrySelect",!0)("preferredCountries",a.preferredCountries)("searchCountryField",pe(42,zt,a.SearchCountryField.Iso2,a.SearchCountryField.Name))("phoneValidation",a.validationPhone)("separateDialCode",a.separateDialCode)("numberFormat",a.PhoneNumberFormat.National),d(),p("color","primary"),d(2),p("ngIf",a.eventForm.get("phone").hasError("required")||a.eventForm.get("phone").invalid),d(4),p("ngIf",a.eventForm.get("showNoteForPatient").value==!0),d(2),p("color","primary")("disabled",a.eventForm.invali
1d)}}function Zt(r,h){r&1&&(l(0,"div",59),v(1,"img",60),l(2,"p",61),m(3," Veuillez appuyer \xE0 nouveau sur le cr\xE9neau horaire. Si ce message s'affiche \xE0 nouveau, merci d'envoyer un mail \xE0 "),l(4,"a",62),m(5,"[email protected]"),n()()())}function eo(r,h){r&1&&(l(0,"div",59),v(1,"img",60),l(2,"p",63),m(3," Vous avez cr\xE9\xE9 un rendez-vous avec succ\xE8s. Vous pouvez fermer cette page. "),n()())}var kt=(()=>{class r{constructor(t,o,s,f,a,c,b){this._formBuilder=t,this.authService=o,this.route=s,this.router=f,this._matSnackBar=a,this.renderer=c,this.translocoService=b,this.loader=L(Qe),this.APP_HOME=y.APP_HOME,this.LOGO_HEADER=y.LOGO_HEADER,this.DESCRIPTION_FOOTER=y.DESCRIPTION_FOOTER,this.queryState="",this.showBookingForm=!1,this.showDiv="",this.apiService=L(Ft),this.only_head_can_book=!1,this.isLoadingSlots=!1,this.start_time="",this.end_time="",this.slot_control_names=[],this.presetColors=xt.presets,this.types_all=[],this.selectedSlot="",this.slot_selected_obj={},this.is_clinic=!1,this.is_partner=!1,this.is_assistant=!1,this.preferredCountries=[E.Martinique,E.France,E.Guadeloupe,E.R\u00E9union,E.FrenchGuiana,E.SaintPierreAndMiquelon],this.separateDialCode=!1,this.SearchCountryField=rt,this.CountryISO=E,this.PhoneNumberFormat=at,this.countrySearchStr="Rechercher le pays",this.phone_error_string='Attention, s\xE9lectionnez le code pays du patient et renseignez son num\xE9ro de t\xE9l\xE9phone complet. Ex code pays "Martinique" et t\xE9l\xE9phone "696012345"',this.user_uuid="",this.location={},this.doctor={},this.slot_date="",this.doctor_id=0,this.location_id=0,this.start_date_str="",this.to_update_terms=!1,console.log("sas-booking construct 1"),this.user_uuid=dt(),this.is_clinic=!0,this.isLoading$=this.authService.isLoading$,this.authService.currentUserValue?(this.user=this.authService.currentUserValue,this.user.group_id==22?this.showDiv="BookForm":this.showErrorMsgSessionExpire()):this.showErrorMsgSessionExpire(),this.queryState="",console.log(" sas-booking construt 1 "),this.route.queryParams.subscribe(_=>{_.state&&_.state!=""&&(this.queryState=_.state)})}ngOnInit(){this.checklist={id:Ct.generateGUID(),checkItemsChecked:0,checkItems:[]},this.eventForm=this.createEventForm(null),this.loader.show("Chargement en cours. Veuillez patienter\u2026"),this.authService.getCSRFTokenForHome().subscribe(t=>{this.loader.hide(),this.queryState!=""?(this.showDiv="BookForm",this.getInitialData()):(this.showDiv="WrongURL",S.default.fire(this.translocoService.translate("common.title_error"),"L'URL n'est pas correcte, veuillez cliquer \xE0 nouveau sur le cr\xE9neau horaire.","error"))})}removeParam(){this.router.navigate([],{relativeTo:this.route,queryParams:{state:"x"},queryParamsHandling:"merge"})}getInitialData(){this.loader.show("Chargement en cours. Veuillez patienter\u2026"),this.apiService.getInitialData({state:this.queryState}).pipe(z(t=>t),U(()=>(this.loader.hide(),H([])))).subscribe(t=>{this.loader.hide(),t&&t.status&&t.status=="success"?(this.removeParam(),this.slot_date=t.date,this.initForm(),this.types_all=t.types,this.location=t.location,this.doctor=t.doctor,this.location_id=this.location.is_clinic_location?0:t.location.id,this.doctor_id=t.doctor.id,this.start_date_str=t.start_date_str,t.hasOwnProperty("show_terms")&&t.show_terms==1&&this.showTermsCondition()):(this.showDiv="WrongURL",t&&t.status&&t.status=="error"&&t.msg!=""?S.default.fire(this.translocoService.translate("common.title_error"),t.msg,"error"):S.default.fire(this.translocoService.translate("common.title_error"),this.translocoService.translate("common.something_went_wrong_try_again"),"error"))})}initForm(){this.initSub(),this.eventForm.get("aptDate").patchValue(T.fromISO(this.slot_date).toJSDate())}createEventForm(t){return new Fe({aptTypeFormControl:new g,aptDate:new g(T.now().toJSDate()),showNoteForClinic:new g(!1),note_by_doc_to_doc:new g(""),slots:this._formBuilder.array([]),first_name:new g(""),last_name:new g(""),dob:new g(""),email:new g(""),phone:new g,ssn:new g(""),gender:new g(""),maiden_name:new g(""),showNoteForPatient:new g(!1),confirm_note:new g(""),slot_selected:new g})}initSub(){this.filteredTypes=this.eventForm.get("aptTypeFormControl").valueChanges.pipe(re(""),z(t=>this.querySearchAptTypes(t))),this.eventForm.get("aptDate").valueChanges.subscribe(t=>{this.loadSlots()})}onAptTypeSelectionChanged(){this.loadSlots()}loadSlots(){if(this.slot_control_names.length>0)for(let f=0;f<this.slot_control_names.length;f++)this.eventForm.removeControl(this.slot_control_names[f]);this.checklist.checkItems=[],this.selectedSlot="";let t=this.eventForm.get("aptTypeFormControl").value&&this.eventForm.get("aptTypeFormControl").value.id?this.eventForm.get("aptTypeFormControl").value.id:0;var o=I.clone(this.eventForm.get("aptDate").value),s=T.fromJSDate(o).toFormat("yyyy-MM-dd");this.doctor_id&&t&&s&&(this.clearHoldSlotsAll(),this.isLoadingSlots=!0,this.apiService.getSlotsForSASBooking(this.doctor_id,t,s,this.location_id,this.start_date_str).pipe(z(f=>f),U(()=>(this.isLoadingSlots=!1,H([])))).subscribe(f=>
1{this.isLoadingSlots=!1,this.updateAptTypeSettings(f),this.slotTimeOut.restart()}))}onSlotTimeOutPaused(){this.slotTimeOut.pause()}onSlotTimeOutResume(){this.slotTimeOut.resume()}onSlotTimeOut(){this.loadSlots()}get slots(){return this.eventForm.get("slots")}updateAptTypeSettings(t){if(this.only_head_can_book=!1,t){var o=t;o&&o.schedule_settings&&o.schedule_settings.id&&(this.only_head_can_book=o.schedule_settings.only_head_can_book==1);var s=0;o.hasOwnProperty("is_holiday")&&o.is_holiday=="1"&&(s=1),this.addSlotCheckList(t)}}addSlotCheckList(t){if(this.slot_selected_obj={},this.checklist.checkItems=[],this.selectedSlot="",t.periods&&I.isArray(t.periods)&&t.periods.length>0){let c=t.periods;for(var o=0;o<c.length;o++){var s=0,f=!1;let b=c[o].capa&&parseInt(c[o].capa)>0?parseInt(c[o].capa):1,_=c[o].booked&&parseInt(c[o].booked)>0?parseInt(c[o].booked):0,C=c[o].booked_c&&parseInt(c[o].booked_c)>0?parseInt(c[o].booked_c):0,F=c[o].cancelled_apt&&parseInt(c[o].cancelled_apt)>0?parseInt(c[o].cancelled_apt):0;(c[o].booked_block&&parseInt(c[o].booked_block)>0?parseInt(c[o].booked_block):0)>0?(s=0,f=!0):s=b-(_+C+F);var a="regular";c[o].slot_type&&c[o].slot_type=="nonregular"&&(a="nonregular"),c[o].id&&s>0&&this.checklist.checkItems.push({slot_type:a,id:c[o].id,start:c[o].start,end:c[o].end,name:""+c[o].start+"-"+c[o].end})}}}slotSelected(t){if(this.slot_selected_obj={},this.slotTimeOut.stop(),t&&t.value){console.log(t.value);var o={uuid:this.user_uuid};this.apiService.clearHoldAll(o).subscribe(s=>{this.slot_selected_obj=t.value,this.selectedSlot=this.slot_selected_obj&&this.slot_selected_obj.start?this.slot_selected_obj.start:"Slot selected",this.slotTimeOut.restart(),this.slot_selected_obj&&this.slot_selected_obj.start&&this.holdSlotByDoc(this.slot_selected_obj)})}}holdSlotByDoc(t){this.slotTimeOut.restart();var o=this.eventForm.get("aptTypeFormControl").value&&this.eventForm.get("aptTypeFormControl").value.id?this.eventForm.get("aptTypeFormControl").value.id:0,s=I.clone(this.eventForm.get("aptDate").value),f=T.fromJSDate(s).toFormat("yyyy-MM-dd"),a={doctor_id:this.doctor_id,type_id:o,slot_date:f,start_time:t.start,end_time:t.end,entry_at:"Portal",uuid:this.user_uuid};this.apiService.holdSlot(a).subscribe(c=>{c.status=="success"||(c.status=="Not available"?this.loadSlots():this.loadSlots())})}clearHoldSlotsAll(){var t={uuid:this.user_uuid};this.apiService.clearHoldAll(t).subscribe(o=>{this.selectedSlot="",this.slot_selected_obj={},this.slotTimeOut.stop()})}clearHoldSlot(t){var o=[];for(let b=0;b<this.checklist.checkItems.length;b++){let _=this.checklist.checkItems[b];this.eventForm.get(_.id).value==!0&&o.push(_.start)}let s=this.eventForm.get("aptTypeFormControl").value&&this.eventForm.get("aptTypeFormControl").value.id?this.eventForm.get("aptTypeFormControl").value.id:0;var f=I.clone(this.eventForm.get("aptDate").value),a=T.fromJSDate(f).toFormat("yyyy-MM-dd"),c={doctor_id:this.doctor_id,type_id:s,entry_at:"Portal",uuid:this.user_uuid,slot_date:a,start_time:t.start,end_time:t.end};this.apiService.clearSlot(c).subscribe(b=>{o.length>0||(this.selectedSlot="",this.slotTimeOut.stop())})}querySearchAptTypes(t){var o=[{type_name:""}];return I.isString(t)&&t.length>0?(o=this.types_all.filter(function(s){return s.type_name.toLowerCase().indexOf(t.toLowerCase())!==-1}),o):(o=this.types_all,o)}displayAptTypeFn(t){return t&&t.type_name?t.type_name:""}showNoteForPatient(){}isBookingFormHasError(){var t=[],o=!1;this.eventForm&&this.eventForm.get("aptTypeFormControl")&&this.eventForm.get("aptTypeFormControl").value&&this.eventForm.get("aptTypeFormControl").value.id||(o=!0,t.push("Le champ Rendez-vous souhait\xE9 est obligatoire.")),(!this.eventForm.get("aptDate").value||this.eventForm.get("aptDate").value=="")&&(o=!0,t.push("Le champ Date est obligatoire.")),(!this.slot_selected_obj||!this.slot_selected_obj.id)&&(o=!0,t.push("Le champ Slot est obligatoire.")),this.eventForm&&this.eventForm.get("first_name")&&this.eventForm.get("first_name").value||(o=!0,t.push("Le champ Pr\xE9nom est obligatoire.")),this.eventForm&&this.eventForm.get("last_name")&&this.eventForm.get("last_name").value||(o=!0,t.push("Le champ Nom de famille est obligatoire.")),(!this.eventForm.get("dob").value||this.eventForm.get("dob").value=="")&&(o=!0,t.push("Le champ Date de naissance est obligatoire."));var s="",f=this.eventForm.get("phone").value;f&&f.number&&f.dialCode&&f.e164Number&&(s=f.e164Number),s==""&&(o=!0,t.push("Le champ T\xE9l\xE9phone est obligatoire."));let a=this.eventForm&&this.eventForm.get("aptTypeFormControl")&&this.eventForm.get("aptTypeFormControl").value&&this.eventForm.get("aptTypeFormControl").value.id?this.eventForm.get("aptTypeFormControl").value.id:0;if(a==263||a==417){let c=this.eventForm&&this.eventForm.get("email")&&this.eventForm.get("email").value?this.eventForm.get("email").value:"";(c==""||Y.isValidEmail(c)==!1)&&(o=!0,t.push("Le champ Adresse e-mail est obligatoire."))}if(o==!0){let c=t.join("<br>");S.default.fire({title:this.translocoService.translate("common.title_error"),html:c,icon:"error",showCancelButton:!1,confirmButtonText:"OK",allowEscapeKey:!1,allowOutsideClick:!1})}return o}bookSasLiteAppointment(){if(this.isBookingFormHasError()==!1){let s=this.eventForm&&this.eventForm.get("aptTypeFormControl")&&this.eventForm.get("aptTypeFormControl").value&&this.eventForm.get("aptTypeFormControl").value.id?this.eventForm.get("aptTypeFormControl").value.id.toString():"0",f=this.eventForm&&this.eventForm.get("first_name")&&this.eventForm.get("first_name").value?this.eventForm.get("first_name").value:"",a=this.eventForm&&this.eventForm.get("last_name")&&this.eventForm.get("last_name").value?this.eventForm.get("last_name").value:"",c=this.eventForm.get("aptDate").value,b=T.fromJSDate(c).toFormat("yyyy-MM-dd"),_=this.eventForm.get("dob").value,C=T.fromJSDate(_).toFormat("yyyy-MM-dd"),F=this.slot_selected_obj.start,M=this.slot_selected_obj.end,D=this.slot_selected_obj.id,B=this.slot_selected_obj.slot_type,O=this.eventForm&&this.eventForm.get("email")&&this.eventForm.get("email").value?this.eventForm.get("email").value:"",Z=this.eventForm&&this.eventForm.get("maiden_name")&&this.eventForm.get("maiden_name").value?this.eventForm.get("maiden_name").value:"",Et=this.eventForm&&this.eventForm.get("ssn")&&this.eventForm.get("ssn").value?this.eventForm.get("ssn").value:"",Tt=this.eventForm&&this.eventForm.get("gender")&&this.eventForm.get("gender").value?this.eventForm.get("gender").value:"",ee=this.eventForm&&this.eventForm.get("confirm_note")&&this.eventForm.get("confirm_note").value?this.eventForm.get("confirm_note").value:"",te=this.eventForm&&this.eventForm.get("note_by_doc_to_doc")&&this.eventForm.get("note_by_doc_to_doc").value?this.eventForm.get("note_by_doc_to_doc").value:"";
1console.log("confirm_note",ee),console.log("note_by_doc_to_doc",te);var t="",o=this.eventForm.get("phone").value;o&&o.number&&o.dialCode&&o.e164Number&&(t=o.e164Number);let u=new FormData;u.append("first_name",f),u.append("last_name",a),u.append("dob",C),u.append("date",b),u.append("start_time",F),u.append("end_time",M),u.append("doctor_id",this.doctor_id.toString()),u.append("type_id",s),u.append("location_id",this.location_id.toString()),u.append("slot_id",D),u.append("slot_type",B),u.append("email",O),u.append("maiden_name",Z),u.append("ssn",Et),u.append("gender",Tt),u.append("confirm_note",ee),u.append("note_by_doc_to_doc",te),u.append("phone",t),this.to_update_terms==!0?u.append("to_update_terms","1"):u.append("to_update_terms","0"),u.forEach((A,V)=>{console.log("Key "+V+" value "+A)}),this.apiService.createAptBySAS(u).subscribe(A=>{if(A&&A.status=="success")this.showSuccessMsg(),this.showDiv="AptBooked";else if(A&&A.status=="error"&&A.msg=="auth")this.showAuthError(),this.showDiv="WrongURL";else if(A&&A.response&&A.response=="error")if(A.errors&&A.errors.length){var V=A.errors,oe="V\xE9rifiez la liste suivante<br/>";V.forEach(It=>{oe+="<span>"+It+"</span><br/>"}),S.default.fire(this.translocoService.translate("common.title_error"),oe,"error")}else S.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");else S.default.fire(this.translocoService.translate("common.title_error"),this.translocoService.translate("common.something_went_wrong_try_again"),"error"),this.showDiv="WrongURL"})}}showAuthError(){S.default.fire({title:"Votre session n'est pas valide, veuillez r\xE9essayer de faire un tour sur le cr\xE9neau horaire",text:"",icon:"warning",showCancelButton:!1,confirmButtonColor:"#3085d6",confirmButtonText:"Ok",allowEscapeKey:!1,allowOutsideClick:!1}).then(t=>{t.isConfirmed})}showSuccessMsg(){S.default.fire({title:"Super !!!",text:"Vous avez cr\xE9\xE9 un rendez-vous avec succ\xE8s.",icon:"success",showCancelButton:!1,confirmButtonColor:"#3085d6",confirmButtonText:"Ok",allowEscapeKey:!1,allowOutsideClick:!1}).then(t=>{t.isConfirmed})}showTermsCondition(){var t=` 2 Vous devez accepter les <b>Conditions g\xE9n\xE9rales d\u2019utilisation du site internet www.clikodoc.com</b>, 3 <a target="_blank" href="https://pro.clikodoc.com/cgu/">CGU ML</a>. 4 <br> 5 <br> 6 <br>Veuillez cliquer sur <b>J'accepte</b> pour accepter. 7 <br> 8 <br>Veuillez cliquer sur <b>Je refuse</b> pour refuser. 9 <br> 10 <br> 11 <u>Si vous refusez, cette page sera d\xE9connect\xE9e et vous devrez appuyer \xE0 nouveau sur le cr\xE9neau horaire pour y acc\xE9der.</u> 12 <br> 13 <br> 14 `;S.default.fire({title:"CGU ML",html:t,showDenyButton:!0,showCancelButton:!1,confirmButtonText:"J\u2019accepte",denyButtonText:"Je refuse",allowOutsideClick:!1,allowEscapeKey:!1}).then(o=>{o.isConfirmed?this.termsAccepted():o.isDenied&&this.logout()})}termsAccepted(){this.loader.show("Chargement en cours. Veuillez patienter\u2026"),this.to_update_terms=!0;let t={to_update_terms:"1"};this.apiService.updateTerms(t).subscribe(o=>{this.loader.hide(),S.default.fire("Termes et conditions enregistr\xE9s!","","success")})}logout(){this.loader.show("Chargement en cours. Veuillez patienter\u2026"),this.authService.logout().subscribe(t=>{this.loader.hide(),this.router.navigate([""]).then(()=>{window.location.reload()})})}resetBookingForm(){this.clearHoldSlotsAll()}notyMessageError(t,o){this._matSnackBar.open(t,"OK",{verticalPosition:"top",horizontalPosition:"end",duration:5e3})}ngOnDestroy(){}nearestFutureMinutes(t,o){let s=Math.ceil(o.minute()/t)*t;return o.clone().minute(s).second(0)}getDateFormatd(t){return Y.convertDateStringToFormat(t,"DD/MM/YYYY")}showErrorMsgSessionExpire(){S.default.fire({title:this.translocoService.translate("common.title_error"),text:"Votre session a expir\xE9, veuillez vous reconnecter pour continuer",icon:"info",showCancelButton:!1,confirmButtonColor:"#3085d6",confirmButtonText:"Ok",allowEscapeKey:!1,allowOutsideClick:!1}).then(t=>{t.isConfirmed?this.logout():this.logout()})}showPhoneInfo(t){let o=this.renderer.createElement("span");o.innerHTML="Format du num\xE9ro de t\xE9l\xE9phone";let s=this.renderer.createElement("span");s.innerHTML="Les formats ci-dessous sont accept\xE9s";let f=this.renderer.createElement("span"),a=this.renderer.createElement("span"),c=this.renderer.createElement("span");this.APP_HOME=="https://ci.clikodoc.com"?(f.innerHTML=">> Pour la C\xF4te d'Ivoire, \xE9crivez +2250123456789",a.innerHTML=">> S\xE9lectionnez le pays C\xF4te d'Ivoire puis \xE9crivez 0123456789",c.innerHTML=">> S\xE9lectionnez le pays C\xF4te d'Ivoire puis \xE9crivez +2250123456789"):(f.innerHTML=">> Pour la Martinique, \xE9crivez +596696012345",a.innerHTML=">> S\xE9lectionnez le pays Martinique puis \xE9crivez 696012345",c.innerHTML=">> S\xE9lectionnez le pays Martinique puis \xE9crivez +596696012345");var b=this.renderer.createElement("span");this.renderer.setAttribute(b,"class","material-icons"),b.innerHTML="close";var _=this.renderer.createElement("button");this.renderer.setProperty(_,"id","btn_close"),this.renderer.setAttribute(_,"class","mat-icon-button btn_tooltip_close"),this.renderer.setAttribute(_,"color","accent"),this.renderer.listen(_,"click",Z=>{}),_.appendChild(b);var C=this.renderer.createElement("div");this.renderer.setAttribute(C,"fxLayout","column"),this.renderer.setAttribute(C,"fxLayoutGap","10px");var F=this.renderer.createElement("div");this.renderer.setAttribute(F,"class","tooltip_header"),this.renderer.setAttribute(F,"fxLayout","row"),this.renderer.setAttribute(F,"fxLayoutAlign","space-between center"),F.appendChild(o),F.appendChild(_);var M=this.renderer.createElement("div");this.renderer.setAttribute(M,"class","p-8 mt-4 mb-4"),this.renderer.setAttribute(M,"fxLayout","row"),M.appendChild(s);var D=this.renderer.createElement("div");this.renderer.setAttribute(D,"class","p-8 mt-4 mb-4"),this.renderer.setAttribute(D,"fxLayout","row"),D.appendChild(f);var B=this.renderer.createElement("div");this.renderer.setAttribute(B,"class","p-8 mt-4 mb-4"),this.renderer.setAttribute(B,"fxLayout","row"),B.appendChild(a);var O=this.renderer.createElement("div");this.renderer.setAttribute(O,"class","p-8 mt-4 mb-0"),this.renderer.setAttribute(O,"fxLayout","row"),O.appendChild(c),C.appendChild(F),
14C.appendChild(M),C.appendChild(D),C.appendChild(B),C.appendChild(O)}static{this.\u0275fac=function(o){return new(o||r)(k(Ie),k(Ke),k(Ae),k(ye),k(ft),k(ne),k(Oe))}}static{this.\u0275cmp=se({type:r,selectors:[["app-sas-booking"]],viewQuery:function(o,s){if(o&1&&($(Lt,7),$(Pt,5)),o&2){let f;W(f=G())&&(s._picker=f.first),W(f=G())&&(s.slotTimeOut=f.first)}},decls:5,vars:3,consts:[["typeAuto","matAutocomplete"],["aptDatePicker",""],["slotTimeOut",""],["patBirthdayDatePicker",""],["id","sas_booking_parent",1,"w-full","bg-gray-100","min-h-[calc(100vh-4rem)]","py-8","px-4"],["id","sas_booking-form-wrapper",1,"mx-auto","w-full","max-w-5xl"],["class","bg-white rounded-2xl shadow p-6 sm:p-8",4,"ngIf"],["class","bg-white rounded-2xl shadow p-8 flex flex-col items-center gap-4 text-center",4,"ngIf"],[1,"bg-white","rounded-2xl","shadow","p-6","sm:p-8"],[1,"text-2xl","font-bold","mb-6","text-center"],["name","eventForm",1,"flex","flex-col","sm:flex-row","gap-6",3,"formGroup"],[1,"flex","flex-col","gap-4","sm:w-1/2"],[1,"rounded-lg","bg-blue-50","p-3","flex","flex-col","gap-1","text-sm"],[4,"ngIf"],["appearance","outline",1,"w-full"],["type","text","placeholder","Rendez-vous souhait\xE9","aria-label","Rendez-vous souhait\xE9","matInput","","formControlName","aptTypeFormControl","required","",3,"matAutocomplete"],["matSuffix","","mat-icon-button","","aria-label","Clear"],[3,"optionSelected","displayWith"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","start","formControlName","aptDate","required","",3,"matDatepicker"],["matSuffix","",3,"for"],[1,"flex","items-center","justify-between","rounded-lg","border","border-gray-200","px-4","py-3"],[1,"text-sm","font-medium","text-gray-700"],[1,"flex","items-center","gap-2"],["class","font-semibold text-red-500",4,"ngIf"],["class","font-semibold",4,"ngIf"],[1,"text-red-500","text-sm",3,"ngClass","config"],["class","flex justify-center py-2",4,"ngIf"],["formControlName","slot_selected","required","",1,"flex","flex-row","flex-wrap","gap-2",3,"change"],["class","pr-2",3,"value",4,"ngFor","ngForOf"],["name","showNoteForClinic","formControlName","showNoteForClinic"],["appearance","outline","class","w-full",4,"ngIf"],[1,"flex","flex-col","sm:flex-row","gap-4"],["appearance","outline",1,"w-full","sm:w-1/2"],["name","first_name","formControlName","first_name","matInput","","required",""],["name","last_name","formControlName","last_name","matInput","","required",""],["appearance","outline",1,"w-full","sm:w-1/2","show-error"],["matInput","","name","dob","formControlName","dob","required","","dobMaxToday","",3,"matDatepicker"],["name","maiden_name","formControlName","maiden_name","matInput",""],["appearance","outline",1,"w-full","sm:w-3/4"],["type","text","name","email","formControlName","email","matInput",""],["appearance","outline",1,"w-full","sm:w-1/4"],["name","gender","formControlName","gender"],[3,"value"],[1,"flex","flex-col","gap-1"],["name","phone","formControlName","phone","required","",1,"flex-1",3,"cssClass","searchCountryPlaceholder","searchCountryFlag","enableAutoCountrySelect","preferredCountries","searchCountryField","phoneValidation","separateDialCode","numberFormat"],["mat-flat-button","",3,"click","color"],["name","showNoteForPatient","formControlName","showNoteForPatient"],[1,"mt-8","flex","justify-center"],["mat-flat-button","","aria-label","",1,"nova-mat-button-large","w-full","sm:w-auto","sm:px-12",3,"click","color","disabled"],[1,"font-semibold","text-red-500"],[1,"font-semibold"],[1,"flex","justify-center","py-2"],["color","accent","mode","indeterminate","diameter","24"],[1,"pr-2",3,"value"],["matInput","","formControlName","note_by_doc_to_doc","max-rows","4"],["type","text","name","ssn","formControlName","ssn","matInput",""],[1,"text-sm"],["matInput","","formControlName","confirm_note","max-rows","4"],[1,"bg-white","rounded-2xl","shadow","p-8","flex","flex-col","items-center","gap-4","text-center"],["src","images/logo/logo-clikodoc.png",1,"w-48"],[1,"text-gray-600","max-w-md"],["href","mailto:[email protected]",1,"text-primary-500","hover:underline"],[1,"text-gray-600"]],template:function(o,s){o&1&&(l(0,"div",4)(1,"div",5),w(2,Xt,94,45,"div",6)(3,Zt,6,0,"div",7)(4,eo,4,0,"div",7),n()()),o&2&&(d(2),p("ngIf",s.showDiv=="BookForm"),d(),p("ngIf",s.showDiv=="WrongURL"),d(),p("ngIf",s.showDiv=="AptBooked"))},dependencies:[Me,xe,Se,we,Ce,Te,De,ke,Ee,qe,je,Ne,Re,ze,He,Ve,St,yt,Be,At,bt,gt,it,tt,ot,We,Ue,$e,_t,ht,Je,Ge,et,Ye,Xe,Ze,vt,lt,st,nt,_e,he,ue,ve,wt,ut,pt,mt,ct,Pe,Le],encapsulation:2})}}return r})();var ri=[{path:"",component:kt}];export{ri 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.