import{d as J,i as P,o as h,c as p,r as q,j as ge,m as ye,f as A,b as L,E as re,G as O,p as ae,F as he,n as pe,bM as _e,y as Le,z as De,t as me,x as ee,q as Se,k as we,l as Ae,C as Ve,h as He}from"./BVIImZzI.js";const Ce=["width","height","fill","transform"],ke={key:0},Ze=L("path",{d:"M160.49,136.49,145,152l15.52,15.51a12,12,0,0,1-17,17L128,169l-15.51,15.52a12,12,0,0,1-17-17L111,152,95.51,136.49a12,12,0,1,1,17-17L128,135l15.51-15.52a12,12,0,1,1,17,17ZM228,48V208a20,20,0,0,1-20,20H48a20,20,0,0,1-20-20V48A20,20,0,0,1,48,28H68V24a12,12,0,0,1,24,0v4h72V24a12,12,0,0,1,24,0v4h20A20,20,0,0,1,228,48ZM52,52V76H204V52H188a12,12,0,0,1-24,0H92a12,12,0,0,1-24,0ZM204,204V100H52V204Z"},null,-1),xe=[Ze],Oe={key:1},Ye=L("path",{d:"M216,48V88H40V48a8,8,0,0,1,8-8H208A8,8,0,0,1,216,48Z",opacity:"0.2"},null,-1),je=L("path",{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Zm-50.34-74.34L139.31,152l18.35,18.34a8,8,0,0,1-11.32,11.32L128,163.31l-18.34,18.35a8,8,0,0,1-11.32-11.32L116.69,152,98.34,133.66a8,8,0,0,1,11.32-11.32L128,140.69l18.34-18.35a8,8,0,0,1,11.32,11.32Z"},null,-1),Be=[Ye,je],Te={key:2},Ie=L("path",{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM157.66,170.34a8,8,0,0,1-11.32,11.32L128,163.31l-18.34,18.35a8,8,0,0,1-11.32-11.32L116.69,152,98.34,133.66a8,8,0,0,1,11.32-11.32L128,140.69l18.34-18.35a8,8,0,0,1,11.32,11.32L139.31,152ZM208,80H48V48H72v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24Z"},null,-1),Ne=[Ie],Pe={key:3},Fe=L("path",{d:"M208,34H182V24a6,6,0,0,0-12,0V34H86V24a6,6,0,0,0-12,0V34H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V48A14,14,0,0,0,208,34ZM48,46H74V56a6,6,0,0,0,12,0V46h84V56a6,6,0,0,0,12,0V46h26a2,2,0,0,1,2,2V82H46V48A2,2,0,0,1,48,46ZM208,210H48a2,2,0,0,1-2-2V94H210V208A2,2,0,0,1,208,210Zm-51.76-77.76L136.48,152l19.76,19.76a6,6,0,1,1-8.48,8.48L128,160.48l-19.76,19.76a6,6,0,0,1-8.48-8.48L119.52,152,99.76,132.24a6,6,0,1,1,8.48-8.48L128,143.52l19.76-19.76a6,6,0,1,1,8.48,8.48Z"},null,-1),qe=[Fe],Ee={key:4},Re=L("path",{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Zm-50.34-74.34L139.31,152l18.35,18.34a8,8,0,0,1-11.32,11.32L128,163.31l-18.34,18.35a8,8,0,0,1-11.32-11.32L116.69,152,98.34,133.66a8,8,0,0,1,11.32-11.32L128,140.69l18.34-18.35a8,8,0,0,1,11.32,11.32Z"},null,-1),ze=[Re],We={key:5},Ue=L("path",{d:"M208,36H180V24a4,4,0,0,0-8,0V36H84V24a4,4,0,0,0-8,0V36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V48A12,12,0,0,0,208,36ZM48,44H76V56a4,4,0,0,0,8,0V44h88V56a4,4,0,0,0,8,0V44h28a4,4,0,0,1,4,4V84H44V48A4,4,0,0,1,48,44ZM208,212H48a4,4,0,0,1-4-4V92H212V208A4,4,0,0,1,208,212Zm-53.17-81.17L133.66,152l21.17,21.17a4,4,0,0,1-5.66,5.66L128,157.66l-21.17,21.17a4,4,0,0,1-5.66-5.66L122.34,152l-21.17-21.17a4,4,0,1,1,5.66-5.66L128,146.34l21.17-21.17a4,4,0,1,1,5.66,5.66Z"},null,-1),Je=[Ue],Xe={name:"PhCalendarX"},Z1=J({...Xe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const a=e,u=P("weight","regular"),l=P("size","1em"),g=P("color","currentColor"),M=P("mirrored",!1),i=A(()=>a.weight??u),b=A(()=>a.size??l),D=A(()=>a.color??g),y=A(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:M?"scale(-1, 1)":void 0);return(v,V)=>(h(),p("svg",ye({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:b.value,height:b.value,fill:D.value,transform:y.value},v.$attrs),[q(v.$slots,"default"),i.value==="bold"?(h(),p("g",ke,xe)):i.value==="duotone"?(h(),p("g",Oe,Be)):i.value==="fill"?(h(),p("g",Te,Ne)):i.value==="light"?(h(),p("g",Pe,qe)):i.value==="regular"?(h(),p("g",Ee,ze)):i.value==="thin"?(h(),p("g",We,Je)):ge("",!0)],16,Ce))}}),Qe=["width","height","fill","transform"],Ge={key:0},Ke=L("path",{d:"M137,168l11.52-11.51a12,12,0,0,0-17-17L120,151l-15-15,11.52-11.51a12,12,0,0,0-17-17L88,119,72.49,103.51a12,12,0,0,0-17,17L59,124,38.54,144.49a36,36,0,0,0,0,50.91l2.55,2.54L15.51,223.51a12,12,0,0,0,17,17l25.57-25.58,2.54,2.55a36.06,36.06,0,0,0,50.91,0L132,197l3.51,3.52a12,12,0,0,0,17-17ZM94.54,200.49a12,12,0,0,1-17,0L55.51,178.43a12,12,0,0,1,0-17L76,141l39,39Zm146-185a12,12,0,0,0-17,0L197.94,41.09l-2.54-2.55a36.05,36.05,0,0,0-50.91,0L124,59l-3.51-3.52a12,12,0,0,0-17,17l80,80a12,12,0,0,0,17-17L197,132l20.49-20.49a36,36,0,0,0,0-50.91l-2.55-2.54,25.58-25.57A12,12,0,0,0,240.49,15.51Zm-40,79L180,115,141,76l20.49-20.49a12,12,0,0,1,17,0l22.06,22.06a12,12,0,0,1,0,17Z"},null,-1),et=[Ke],tt={key:1},at=L("path",{d:"M76,124l56,56-29,29a24,24,0,0,1-33.94,0L47,186.91A24,24,0,0,1,47,153ZM209,69.09,186.91,47A24,24,0,0,0,153,47L124,76l56,56,29-29A24,24,0,0,0,209,69.09Z",opacity:"0.2"},null,-1),nt=L("path",{d:"M149.66,138.34a8,8,0,0,0-11.32,0L120,156.69,99.31,136l18.35-18.34a8,8,0,0,0-11.32-11.32L88,124.69,69.66,106.34a8,8,0,0,0-11.32,11.32L64.69,124,41.37,147.31a32,32,0,0,0,0,45.26l5.38,5.37-28.41,28.4a8,8,0,0,0,11.32,11.32l28.4-28.41,5.37,5.38a32,32,0,0,0,45.26,0L132,191.31l6.34,6.35a8,8,0,0,0,11.32-11.32L131.31,168l18.35-18.34A8,8,0,0,0,149.66,138.34Zm-52.29,65a16,16,0,0,1-22.62,0L52.69,181.25a16,16,0,0,1,0-22.62L76,135.31,120.69,180Zm140.29-185a8,8,0,0,0-11.32,0l-28.4,28.41-5.37-5.38a32.05,32.05,0,0,0-45.26,0L124,64.69l-6.34-6.35a8,8,0,0,0-11.32,11.32l80,80a8,8,0,0,0,11.32-11.32L191.31,132l23.32-23.31a32,32,0,0,0,0-45.26l-5.38-5.37,28.41-28.4A8,8,0,0,0,237.66,18.34Zm-34.35,79L180,120.69,135.31,76l23.32-23.31a16,16,0,0,1,22.62,0l22.06,22A16,16,0,0,1,203.31,97.37Z"},null,-1),st=[at,nt],it={key:2},rt=L("path",{d:"M149.66,149.66,131.31,168l18.35,18.34a8,8,0,0,1-11.32,11.32L132,191.31l-23.31,23.32a32.06,32.06,0,0,1-45.26,0l-5.37-5.38-28.4,28.41a8,8,0,0,1-11.32-11.32l28.41-28.4-5.38-5.37a32,32,0,0,1,0-45.26L64.69,124l-6.35-6.34a8,8,0,0,1,11.32-11.32L88,124.69l18.34-18.35a8,8,0,0,1,11.32,11.32L99.31,136,120,156.69l18.34-18.35a8,8,0,0,1,11.32,11.32Zm88-131.32a8,8,0,0,0-11.32,0l-28.4,28.41-5.37-5.38a32.05,32.05,0,0,0-45.26,0L124,64.69l-6.34-6.35a8,8,0,0,0-11.32,11.32l80,80a8,8,0,0,0,11.32-11.32L191.31,132l23.32-23.31a32,32,0,0,0,0-45.26l-5.38-5.37,28.41-28.4A8,8,0,0,0,237.66,18.34Z"},null,-1),lt=[rt],ot={key:3},ut=L("path",{d:"M148.24,139.76a6,6,0,0,0-8.48,0L120,159.51,96.49,136l19.75-19.76a6,6,0,0,0-8.48-8.48L88,127.51,68.24,107.76a6,6,0,0,0-8.48,8.48L67.51,124,42.79,148.73a30,30,0,0,0,0,42.42l6.78,6.79L19.76,227.76a6,6,0,1,0,8.48,8.48l29.82-29.81,6.79,6.78a30,30,0,0,0,42.42,0L132,188.49l7.76,7.75a6,6,0,0,0,8.48-8.48L128.49,168l19.75-19.76A6,6,0,0,0,148.24,139.76Zm-49.45,65a18,18,0,0,1-25.46,0L51.27,182.67a18,18,0,0,1,0-25.46L76,132.49,123.51,180Zm137.45-185a6,6,0,0,0-8.48,0L197.94,49.57l-6.79-6.78a30,30,0,0,0-42.42,0L124,67.51l-7.76-7.75a6,6,0,0,0-8.48,8.48l80,80a6,6,0,0,0,8.48-8.48L188.49,132l24.72-24.73a30,30,0,0,0,0-42.42l-6.78-6.79,29.81-29.82A6,6,0,0,0,236.24,19.76Zm-31.51,79L180,123.51,132.49,76l24.72-24.73a18,18,0,0,1,25.46,0l22.06,22.06a18,18,0,0,1,0,25.46Z"},null,-1),ct=[ut],dt={key:4},mt=L("path",{d:"M149.66,138.34a8,8,0,0,0-11.32,0L120,156.69,99.31,136l18.35-18.34a8,8,0,0,0-11.32-11.32L88,124.69,69.66,106.34a8,8,0,0,0-11.32,11.32L64.69,124,41.37,147.31a32,32,0,0,0,0,45.26l5.38,5.37-28.41,28.4a8,8,0,0,0,11.32,11.32l28.4-28.41,5.37,5.38a32,32,0,0,0,45.26,0L132,191.31l6.34,6.35a8,8,0,0,0,11.32-11.32L131.31,168l18.35-18.34A8,8,0,0,0,149.66,138.34Zm-52.29,65a16,16,0,0,1-22.62,0L52.69,181.25a16,16,0,0,1,0-22.62L76,135.31,120.69,180Zm140.29-185a8,8,0,0,0-11.32,0l-28.4,28.41-5.37-5.38a32.05,32.05,0,0,0-45.26,0L124,64.69l-6.34-6.35a8,8,0,0,0-11.32,11.32l80,80a8,8,0,0,0,11.32-11.32L191.31,132l23.32-23.31a32,32,0,0,0,0-45.26l-5.38-5.37,28.41-28.4A8,8,0,0,0,237.66,18.34Zm-34.35,79L180,120.69,135.31,76l23.32-23.31a16,16,0,0,1,22.62,0l22.06,22A16,16,0,0,1,203.31,97.37Z"},null,-1),gt=[mt],ft={key:5},ht=L("path",{d:"M146.83,141.17a4,4,0,0,0-5.66,0L120,162.34,93.66,136l21.17-21.17a4,4,0,0,0-5.66-5.66L88,130.34,66.83,109.17a4,4,0,0,0-5.66,5.66L70.34,124,44.2,150.14a28,28,0,0,0,0,39.6l8.2,8.2L21.17,229.17a4,4,0,0,0,5.66,5.66L58.06,203.6l8.2,8.2a28,28,0,0,0,39.6,0L132,185.66l9.17,9.17a4,4,0,0,0,5.66-5.66L125.66,168l21.17-21.17A4,4,0,0,0,146.83,141.17Zm-46.63,65a20,20,0,0,1-28.28,0L49.86,184.08a20,20,0,0,1,0-28.28L76,129.66,126.34,180Zm134.63-185a4,4,0,0,0-5.66,0L197.94,52.4l-8.2-8.2a28,28,0,0,0-39.6,0L124,70.34l-9.17-9.17a4,4,0,0,0-5.66,5.66l80,80a4,4,0,0,0,5.66-5.66L185.66,132l26.14-26.14a28,28,0,0,0,0-39.6l-8.2-8.2,31.23-31.23A4,4,0,0,0,234.83,21.17ZM212,86.06a19.86,19.86,0,0,1-5.86,14.14L180,126.34,129.66,76,155.8,49.86a20,20,0,0,1,28.28,0l22.06,22.06A19.85,19.85,0,0,1,212,86.06Z"},null,-1),pt=[ht],yt={name:"PhPlugs"},x1=J({...yt,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const a=e,u=P("weight","regular"),l=P("size","1em"),g=P("color","currentColor"),M=P("mirrored",!1),i=A(()=>a.weight??u),b=A(()=>a.size??l),D=A(()=>a.color??g),y=A(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:M?"scale(-1, 1)":void 0);return(v,V)=>(h(),p("svg",ye({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:b.value,height:b.value,fill:D.value,transform:y.value},v.$attrs),[q(v.$slots,"default"),i.value==="bold"?(h(),p("g",Ge,et)):i.value==="duotone"?(h(),p("g",tt,st)):i.value==="fill"?(h(),p("g",it,lt)):i.value==="light"?(h(),p("g",ot,ct)):i.value==="regular"?(h(),p("g",dt,gt)):i.value==="thin"?(h(),p("g",ft,pt)):ge("",!0)],16,Qe))}}),vt=["width","height","fill","transform"],Mt={key:0},bt=L("path",{d:"M250.73,210.63l-56-112a12,12,0,0,0-21.46,0l-20.52,41A84.2,84.2,0,0,1,114,126.22,107.48,107.48,0,0,0,139.33,68H160a12,12,0,0,0,0-24H108V32a12,12,0,0,0-24,0V44H32a12,12,0,0,0,0,24h83.13A83.69,83.69,0,0,1,96,110.35,84,84,0,0,1,83.6,91a12,12,0,1,0-21.81,10A107.55,107.55,0,0,0,78,126.24,83.54,83.54,0,0,1,32,140a12,12,0,0,0,0,24,107.47,107.47,0,0,0,64-21.07,108.4,108.4,0,0,0,45.39,19.44l-24.13,48.26a12,12,0,1,0,21.46,10.73L151.41,196h65.17l12.68,25.36a12,12,0,1,0,21.47-10.73ZM163.41,172,184,130.83,204.58,172Z"},null,-1),$t=[bt],_t={key:1},Lt=L("path",{d:"M224,184H144l40-80ZM96,127.56h0A95.78,95.78,0,0,0,128,56H64A95.78,95.78,0,0,0,96,127.56Z",opacity:"0.2"},null,-1),Dt=L("path",{d:"M247.15,212.42l-56-112a8,8,0,0,0-14.31,0l-21.71,43.43A88,88,0,0,1,108,126.93,103.65,103.65,0,0,0,135.69,64H160a8,8,0,0,0,0-16H104V32a8,8,0,0,0-16,0V48H32a8,8,0,0,0,0,16h87.63A87.7,87.7,0,0,1,96,116.35a87.74,87.74,0,0,1-19-31,8,8,0,1,0-15.08,5.34A103.63,103.63,0,0,0,84,127a87.55,87.55,0,0,1-52,17,8,8,0,0,0,0,16,103.46,103.46,0,0,0,64-22.08,104.18,104.18,0,0,0,51.44,21.31l-26.6,53.19a8,8,0,0,0,14.31,7.16L148.94,192h70.11l13.79,27.58A8,8,0,0,0,240,224a8,8,0,0,0,7.15-11.58ZM156.94,176,184,121.89,211.05,176Z"},null,-1),St=[Lt,Dt],wt={key:2},At=L("path",{d:"M160,129.89,175.06,160H144.94l6.36-12.7v0ZM224,48V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48ZM207.16,188.42l-40-80a8,8,0,0,0-14.32,0L139.66,134.8a62.31,62.31,0,0,1-23.61-10A79.61,79.61,0,0,0,135.6,80H152a8,8,0,0,0,0-16H112V56a8,8,0,0,0-16,0v8H56a8,8,0,0,0,0,16h63.48a63.73,63.73,0,0,1-15.3,34.05,65.93,65.93,0,0,1-9-13.61,8,8,0,0,0-14.32,7.12,81.75,81.75,0,0,0,11.4,17.15A63.62,63.62,0,0,1,56,136a8,8,0,0,0,0,16,79.56,79.56,0,0,0,48.11-16.13,78.33,78.33,0,0,0,28.18,13.66l-19.45,38.89a8,8,0,0,0,14.32,7.16L136.94,176h46.12l9.78,19.58a8,8,0,1,0,14.32-7.16Z"},null,-1),Vt=[At],Ht={key:3},Ct=L("path",{d:"M245.37,213.32l-56-112a6,6,0,0,0-10.74,0l-22.3,44.6A90,90,0,0,1,105,127.19,101.73,101.73,0,0,0,133.82,62H160a6,6,0,0,0,0-12H102V32a6,6,0,0,0-12,0V50H32a6,6,0,0,0,0,12h89.79A89.71,89.71,0,0,1,96,119.23,89.81,89.81,0,0,1,75.11,86,6,6,0,1,0,63.8,90,101.66,101.66,0,0,0,87,127.2,89.56,89.56,0,0,1,32,146a6,6,0,0,0,0,12,101.55,101.55,0,0,0,64-22.63,102.11,102.11,0,0,0,54.53,22.17l-27.89,55.78a6,6,0,0,0,10.74,5.36L147.71,190h72.58l14.34,28.68A6,6,0,0,0,240,222a5.87,5.87,0,0,0,2.68-.64A6,6,0,0,0,245.37,213.32ZM153.71,178,184,117.42,214.29,178Z"},null,-1),kt=[Ct],Zt={key:4},xt=L("path",{d:"M247.15,212.42l-56-112a8,8,0,0,0-14.31,0l-21.71,43.43A88,88,0,0,1,108,126.93,103.65,103.65,0,0,0,135.69,64H160a8,8,0,0,0,0-16H104V32a8,8,0,0,0-16,0V48H32a8,8,0,0,0,0,16h87.63A87.76,87.76,0,0,1,96,116.35a87.74,87.74,0,0,1-19-31,8,8,0,1,0-15.08,5.34A103.63,103.63,0,0,0,84,127a87.55,87.55,0,0,1-52,17,8,8,0,0,0,0,16,103.46,103.46,0,0,0,64-22.08,104.18,104.18,0,0,0,51.44,21.31l-26.6,53.19a8,8,0,0,0,14.31,7.16L148.94,192h70.11l13.79,27.58A8,8,0,0,0,240,224a8,8,0,0,0,7.15-11.58ZM156.94,176,184,121.89,211.05,176Z"},null,-1),Ot=[xt],Yt={key:5},jt=L("path",{d:"M243.58,214.21l-56-112a4,4,0,0,0-7.16,0L157.55,148A92.05,92.05,0,0,1,102,127.36,99.68,99.68,0,0,0,131.91,60H160a4,4,0,0,0,0-8H100V32a4,4,0,0,0-8,0V52H32a4,4,0,0,0,0,8h91.91A91.8,91.8,0,0,1,96,122.05,92,92,0,0,1,73.23,86.67a4,4,0,1,0-7.54,2.66,99.59,99.59,0,0,0,24.3,38A91.59,91.59,0,0,1,32,148a4,4,0,0,0,0,8,99.54,99.54,0,0,0,64-23.21,100.09,100.09,0,0,0,57.66,23l-29.22,58.43a4,4,0,1,0,7.16,3.58L146.47,188h75.06l14.89,29.79A4,4,0,0,0,240,220a4.12,4.12,0,0,0,1.79-.42A4,4,0,0,0,243.58,214.21ZM150.47,180,184,112.94,217.53,180Z"},null,-1),Bt=[jt],Tt={name:"PhTranslate"},O1=J({...Tt,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const a=e,u=P("weight","regular"),l=P("size","1em"),g=P("color","currentColor"),M=P("mirrored",!1),i=A(()=>a.weight??u),b=A(()=>a.size??l),D=A(()=>a.color??g),y=A(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:M?"scale(-1, 1)":void 0);return(v,V)=>(h(),p("svg",ye({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:b.value,height:b.value,fill:D.value,transform:y.value},v.$attrs),[q(v.$slots,"default"),i.value==="bold"?(h(),p("g",Mt,$t)):i.value==="duotone"?(h(),p("g",_t,St)):i.value==="fill"?(h(),p("g",wt,Vt)):i.value==="light"?(h(),p("g",Ht,kt)):i.value==="regular"?(h(),p("g",Zt,Ot)):i.value==="thin"?(h(),p("g",Yt,Bt)):ge("",!0)],16,vt))}});function It(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const Nt=J({name:"meetingsDisplay",props:{meetingSlot:{type:Object,required:!0},meetingSlotSelected:{type:[Array,Object,null],required:!0},meetingButtonClass:{type:String,default:""},meetingEmptyClass:{type:String,default:""}},emits:["meeting-slot-click"],setup(e,a){const u=A(()=>{const g=new Date(e.meetingSlot.date),M=g.getHours()<10?`0${g.getHours()}`:g.getHours(),i=g.getMinutes()<10?`0${g.getMinutes()}`:g.getMinutes();return`${M}:${i}`}),l=A(()=>{if(Array.isArray(e.meetingSlotSelected)){const g=new Date(e.meetingSlot.date).getTime();for(const M of e.meetingSlotSelected)if(new Date(M.date).getTime()===g)return!0;return!1}if(e.meetingSlotSelected&&e.meetingSlotSelected.date){const g=new Date(e.meetingSlotSelected.date),M=new Date(e.meetingSlot.date);return g.getTime()===M.getTime()}return!1});return{meetingClass:A(()=>({[e.meetingButtonClass]:!0,"meeting__button--selected":l.value})),time:u,meetingSlotClick:()=>{a.emit("meeting-slot-click",e.meetingSlot)}}}}),ne=(e,a)=>{const u=e.__vccOpts||e;for(const[l,g]of a)u[l]=g;return u},Pt={class:"meeting"},Ft=["disabled"];function qt(e,a,u,l,g,M){return h(),p("div",Pt,[e.meetingSlot.date?(h(),p("button",{key:0,type:"button",class:O(["meeting__button",e.meetingClass]),disabled:!e.meetingSlot.date,onClick:a[0]||(a[0]=(...i)=>e.meetingSlotClick&&e.meetingSlotClick(...i))},me(e.time),11,Ft)):(h(),p("div",{key:1,class:O(["meeting__empty",e.meetingEmptyClass])}," — ",2))])}const Et=ne(Nt,[["render",qt],["__scopeId","data-v-99e55f0d"]]),Rt=J({name:"MeetingsList",components:{MeetingDisplay:Et},props:{meetingsDay:{type:Object,default:null},meetingSlotSelected:{type:[Array,Object,null],required:!0},meetingClass:{type:String,default:""},meetingButtonClass:{type:String,default:""},meetingEmptyClass:{type:String,default:""}},emits:["meeting-slot-click"],setup(e,a){return{meetingSlotClick:u=>{a.emit("meeting-slot-click",u)}}}}),zt={class:"meetings"};function Wt(e,a,u,l,g,M){const i=re("meeting-display");return h(),p("div",zt,[e.$slots.meeting?(h(!0),p(he,{key:0},pe(e.meetingsDay.slots,(b,D)=>(h(),p("div",{key:D},[q(e.$slots,"meeting",{meeting:b},void 0,!0)]))),128)):(h(!0),p(he,{key:1},pe(e.meetingsDay.slots,(b,D)=>(h(),Se(i,{class:O(e.meetingClass),"meeting-button-class":e.meetingButtonClass,"meeting-empty-class":e.meetingEmptyClass,"meeting-slot":b,"meeting-slot-selected":e.meetingSlotSelected,onMeetingSlotClick:e.meetingSlotClick,key:D},null,8,["class","meeting-button-class","meeting-empty-class","meeting-slot","meeting-slot-selected","onMeetingSlotClick"]))),128))])}const Ut=ne(Rt,[["render",Wt],["__scopeId","data-v-59393793"]]),Jt=J({name:"DayDisplay",props:{meetingsDay:{type:Object,required:!0},daysLabel:{type:Array,required:!0},monthsLabel:{type:Array,required:!0}},setup(e){const a=A(()=>{const l=new Date(e.meetingsDay.date);return e.daysLabel[l.getDay()]}),u=A(()=>{const l=new Date(e.meetingsDay.date);return`${l.getDate()} ${e.monthsLabel[l.getMonth()]}`});return{title:a,subtitle:u}}}),Xt={class:"day"},Qt={class:"day__title"},Gt={class:"day__subtitle"};function Kt(e,a,u,l,g,M){return h(),p("div",Xt,[L("div",Qt,me(e.title),1),L("div",Gt,me(e.subtitle),1)])}const e1=ne(Jt,[["render",Kt],["__scopeId","data-v-11f9b4ca"]]),t1=J({name:"ArrowIcon",props:{direction:{type:String,default:"right"}},setup(e){return{iconDirectionClass:A(()=>`vms-icon-${e.direction}`)}}});function a1(e,a,u,l,g,M){return h(),p("i",{class:O(["vms-icon",e.iconDirectionClass])},null,2)}const n1=ne(t1,[["render",a1],["__scopeId","data-v-6ce31d85"]]),s1=J({name:"SpinLoader"}),i1={class:"vms-icon-loader"};function r1(e,a,u,l,g,M){return h(),p("i",i1)}const l1=ne(s1,[["render",r1],["__scopeId","data-v-a175ea8d"]]),o1=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],u1=["jan.","feb.","mar.","apr.","may.","jun.","jul.","aug.","sep.","oct.","nov.","dec."],ve=e=>{const a=e.getMonth()+1<10?`0${e.getMonth()+1}`:e.getMonth()+1,u=e.getDate()<10?`0${e.getDate()}`:e.getDate();return parseInt(`${e.getFullYear()}${a}${u}`,10)},c1=e=>{const a=new Date(e),u=new Date;return ve(a)<=ve(u)},d1={daysLabel:o1,monthsLabel:u1,limit:4,spacing:4,loadingLabel:"Loading ...",disabledDate:c1},m1={tabClass:"",tabPaginationPrevious:"",tabPaginationPreviousButton:"",tabPaginationNext:"",tabPaginationNextButton:"",tabPaginationUpButton:"",tabPaginationDownButton:"",tabDays:"",tabDayDisplay:"",tabMeetings:"",tabMeeting:"",tabMeetingButton:"",tabMeetingEmpty:"",tabLoading:""},g1=J({name:"meetingSelector",components:{Meetings:Ut,DayDisplay:e1,ArrowIcon:n1,Loader:l1},props:{modelValue:{type:[Array,Object,null],required:!0},date:{type:Date,required:!0},meetingsDays:{type:Array,required:!0},calendarOptions:{type:Object,default:()=>({})},classNames:{type:Object,default:()=>({})},loading:{type:Boolean,default:!1},multi:{type:Boolean,default:!1}},emits:["previous-date","next-date","meeting-slot-selected","change","meeting-slot-unselected","update:modelValue"],setup(e,a){const u=ee(0),l=A(()=>({...d1,...e.calendarOptions})),g=A(()=>({...m1,...e.classNames})),M=A(()=>e.meetingsDays&&e.meetingsDays.length?Math.max(...e.meetingsDays.map(S=>S.slots.length)):0),i=A(()=>{const S=Math.ceil(M.value/l.value.limit)*l.value.limit;return e.meetingsDays?e.meetingsDays.map(Y=>{const B=new Array(S).fill({date:""});return B.splice(0,Y.slots.length,...Y.slots),{...Y,slots:B.slice(u.value,u.value+l.value.limit)}}):[]}),b=A(()=>{const{daysLabel:S}=l.value;return e.meetingsDays?e.meetingsDays.map(Y=>{const B=new Date(Y.date);return S[B.getDay()]}):[]}),D=()=>{u.value+=l.value.spacing},y=()=>{u.value-=l.value.spacing},v=()=>{a.emit("previous-date")},V=()=>{a.emit("next-date")},F=S=>S+1===i.value.length?`tab__days--last ${g.value.tabMeetings}`:g.value.tabMeetings||"",k=S=>{if(e.multi&&Array.isArray(e.modelValue)){const Y=new Date(S.date).getTime(),B=e.modelValue.findIndex(X=>new Date(X.date).getTime()===Y),Z=[...e.modelValue];B!==-1?(Z.splice(B,1),a.emit("change",Z),a.emit("meeting-slot-selected",Z),a.emit("update:modelValue",Z)):(Z.push(S),a.emit("change",Z),a.emit("meeting-slot-selected",Z),a.emit("update:modelValue",Z));return}if(e.modelValue){const Y=new Date(S.date);if(new Date(e.modelValue.date).getTime()===Y.getTime()){a.emit("change",void 0),a.emit("meeting-slot-unselected"),a.emit("update:modelValue");return}}a.emit("change",S),a.emit("meeting-slot-selected",S),a.emit("update:modelValue",S)};return a.expose({nextMeetings:D,previousMeetings:y,previousDate:v,nextDate:V,meetingSlotClick:k}),{skip:u,options:l,cssClass:g,tabDaysClass:F,maxNbMeetings:M,meetingsByDays:i,days:b,nextMeetings:D,previousMeetings:y,previousDate:v,nextDate:V,meetingSlotClick:k}}}),f1={class:"meeting-selector"},h1=["disabled"],p1={class:"tab__days"},y1={key:1,class:"tab__loading__text"},v1=["disabled"],M1=["disabled"],b1=["disabled"];function $1(e,a,u,l,g,M){const i=re("arrow-icon"),b=re("day-display"),D=re("meetings"),y=re("loader");return h(),p("div",f1,[L("div",{class:O([e.cssClass.tabClass,"tab"])},[L("div",{class:O(["tab__pagination",e.cssClass.tabPaginationPrevious])},[q(e.$slots,"button-previous",{},()=>[L("button",{type:"button",disabled:e.options.disabledDate(e.date)||e.loading,class:O(["tab__pagination__button",e.cssClass.tabPaginationPreviousButton]),onClick:a[0]||(a[0]=(...v)=>e.previousDate&&e.previousDate(...v))},[ae(i,{direction:"left"})],10,h1)],!0)],2),L("div",p1,[(h(!0),p(he,null,pe(e.meetingsByDays,(v,V)=>(h(),p("div",{class:O(["tab__day",e.tabDaysClass(V)]),key:String(v.date)},[q(e.$slots,"header",{meetings:v},()=>[ae(b,{class:O(["tab__days__day-display",e.cssClass.tabDayDisplay]),"meetings-day":v,"months-label":e.options.monthsLabel,"days-label":e.options.daysLabel},null,8,["class","meetings-day","months-label","days-label"])],!0),ae(D,{class:O(["tab__days__meetings",e.cssClass.tabMeetings]),"meeting-class":e.cssClass.tabMeeting,"meeting-button-class":e.cssClass.tabMeetingButton,"meeting-empty-class":e.cssClass.tabMeetingEmpty,"meetings-day":v,"meeting-slot-selected":e.modelValue,onMeetingSlotClick:e.meetingSlotClick},_e({_:2},[e.$slots.meeting?{name:"meeting",fn:Le(({meeting:F})=>[q(e.$slots,"meeting",{meeting:F},void 0,!0)]),key:"0"}:void 0]),1032,["class","meeting-class","meeting-button-class","meeting-empty-class","meetings-day","meeting-slot-selected","onMeetingSlotClick"])],2))),128)),e.loading?(h(),p("div",{key:0,class:O(["tab__loading",e.cssClass.tabLoading])},[e.$slots.loading?q(e.$slots,"loading",{key:0},void 0,!0):(h(),p("div",y1,[ae(y),De(" "+me(e.options.loadingLabel),1)]))],2)):ge("",!0)]),L("div",{class:O(["tab__pagination",e.cssClass.tabPaginationNext])},[q(e.$slots,"button-next",{},()=>[L("button",{type:"button",class:O(["tab__pagination__button tab__pagination__button--right",e.cssClass.tabPaginationNextButton]),disabled:e.loading,onClick:a[1]||(a[1]=(...v)=>e.nextDate&&e.nextDate(...v))},[ae(i,{direction:"right"})],10,v1)],!0),q(e.$slots,"button-up",{isDisabled:e.skip===0||e.loading},()=>[L("button",{type:"button",class:O([e.cssClass.tabPaginationUpButton,"tab__pagination__button tab__pagination__button--up"]),disabled:e.skip===0||e.loading,onClick:a[2]||(a[2]=(...v)=>e.previousMeetings&&e.previousMeetings(...v))},[ae(i,{direction:"up"})],10,M1)],!0),q(e.$slots,"button-down",{isDisabled:e.skip+e.options.spacing>=e.maxNbMeetings||e.loading},()=>[L("button",{type:"button",class:O([e.cssClass.tabPaginationDownButton,"tab__pagination__button tab__pagination__button--down"]),disabled:e.skip+e.options.spacing>=e.maxNbMeetings||e.loading,onClick:a[3]||(a[3]=(...v)=>e.nextMeetings&&e.nextMeetings(...v))},[ae(i,{direction:"down"})],10,b1)],!0)],2)],2)])}const Y1=ne(g1,[["render",$1],["__scopeId","data-v-adda00da"]]);function j1(e,a,u,l,g){const M=Math.max(1,Number(a??1)),i=Math.max(0,Number(u??0)),b=[];l&&b.push(l);const D=L1(e);D&&b.push(D);const y=_1(g);y&&b.push(y),M<=1?b.push("rendez-vous individuel"):i===0?b.push(`rendez-vous de groupe de ${M} places, complet`):b.push(`rendez-vous de groupe de ${M} places, ${i} place${i>1?"s":""} encore disponible${i>1?"s":""}`);const v=b.join(" · ");return v.charAt(0).toUpperCase()+v.slice(1)}function _1(e){return e==="remote"?"en téléconsultation":e==="home_visit"?"à votre domicile":e==="in_person"?"au cabinet":""}function L1(e){if(!e)return"";const a=e instanceof Date?e:new Date(e);if(Number.isNaN(a.getTime()))return"";const u=new Intl.DateTimeFormat("fr-FR",{weekday:"long",day:"numeric",month:"long"}).format(a),l=new Intl.DateTimeFormat("fr-FR",{hour:"2-digit",minute:"2-digit"}).format(a).replace(":","h");return`${u} à ${l}`}var ue={exports:{}},D1=ue.exports,Me;function $e(){return Me||(Me=1,(function(e,a){(function(u,l){e.exports=l()})(D1,(function(){var u=1e3,l=6e4,g=36e5,M="millisecond",i="second",b="minute",D="hour",y="day",v="week",V="month",F="quarter",k="year",S="date",Y="Invalid Date",B=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Z=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,X={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(o){var n=["th","st","nd","rd"],t=o%100;return"["+o+(n[(t-20)%10]||n[t]||n[0])+"]"}},se=function(o,n,t){var r=String(o);return!r||r.length>=n?o:""+Array(n+1-r.length).join(t)+o},te={s:se,z:function(o){var n=-o.utcOffset(),t=Math.abs(n),r=Math.floor(t/60),s=t%60;return(n<=0?"+":"-")+se(r,2,"0")+":"+se(s,2,"0")},m:function o(n,t){if(n.date()<t.date())return-o(t,n);var r=12*(t.year()-n.year())+(t.month()-n.month()),s=n.clone().add(r,V),m=t-s<0,c=n.clone().add(r+(m?-1:1),V);return+(-(r+(t-s)/(m?s-c:c-s))||0)},a:function(o){return o<0?Math.ceil(o)||0:Math.floor(o)},p:function(o){return{M:V,y:k,w:v,d:y,D:S,h:D,m:b,s:i,ms:M,Q:F}[o]||String(o||"").toLowerCase().replace(/s$/,"")},u:function(o){return o===void 0}},I="en",E={};E[I]=X;var le="$isDayjsObject",R=function(o){return o instanceof x||!(!o||!o[le])},Q=function o(n,t,r){var s;if(!n)return I;if(typeof n=="string"){var m=n.toLowerCase();E[m]&&(s=m),t&&(E[m]=t,s=m);var c=n.split("-");if(!s&&c.length>1)return o(c[0])}else{var w=n.name;E[w]=n,s=w}return!r&&s&&(I=s),s||!r&&I},$=function(o,n){if(R(o))return o.clone();var t=typeof n=="object"?n:{};return t.date=o,t.args=arguments,new x(t)},f=te;f.l=Q,f.i=R,f.w=function(o,n){return $(o,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var x=(function(){function o(t){this.$L=Q(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[le]=!0}var n=o.prototype;return n.parse=function(t){this.$d=(function(r){var s=r.date,m=r.utc;if(s===null)return new Date(NaN);if(f.u(s))return new Date;if(s instanceof Date)return new Date(s);if(typeof s=="string"&&!/Z$/i.test(s)){var c=s.match(B);if(c){var w=c[2]-1||0,H=(c[7]||"0").substring(0,3);return m?new Date(Date.UTC(c[1],w,c[3]||1,c[4]||0,c[5]||0,c[6]||0,H)):new Date(c[1],w,c[3]||1,c[4]||0,c[5]||0,c[6]||0,H)}}return new Date(s)})(t),this.init()},n.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},n.$utils=function(){return f},n.isValid=function(){return this.$d.toString()!==Y},n.isSame=function(t,r){var s=$(t);return this.startOf(r)<=s&&s<=this.endOf(r)},n.isAfter=function(t,r){return $(t)<this.startOf(r)},n.isBefore=function(t,r){return this.endOf(r)<$(t)},n.$g=function(t,r,s){return f.u(t)?this[r]:this.set(s,t)},n.unix=function(){return Math.floor(this.valueOf()/1e3)},n.valueOf=function(){return this.$d.getTime()},n.startOf=function(t,r){var s=this,m=!!f.u(r)||r,c=f.p(t),w=function(U,j){var K=f.w(s.$u?Date.UTC(s.$y,j,U):new Date(s.$y,j,U),s);return m?K:K.endOf(y)},H=function(U,j){return f.w(s.toDate()[U].apply(s.toDate("s"),(m?[0,0,0,0]:[23,59,59,999]).slice(j)),s)},d=this.$W,_=this.$M,C=this.$D,N="set"+(this.$u?"UTC":"");switch(c){case k:return m?w(1,0):w(31,11);case V:return m?w(1,_):w(0,_+1);case v:var W=this.$locale().weekStart||0,G=(d<W?d+7:d)-W;return w(m?C-G:C+(6-G),_);case y:case S:return H(N+"Hours",0);case D:return H(N+"Minutes",1);case b:return H(N+"Seconds",2);case i:return H(N+"Milliseconds",3);default:return this.clone()}},n.endOf=function(t){return this.startOf(t,!1)},n.$set=function(t,r){var s,m=f.p(t),c="set"+(this.$u?"UTC":""),w=(s={},s[y]=c+"Date",s[S]=c+"Date",s[V]=c+"Month",s[k]=c+"FullYear",s[D]=c+"Hours",s[b]=c+"Minutes",s[i]=c+"Seconds",s[M]=c+"Milliseconds",s)[m],H=m===y?this.$D+(r-this.$W):r;if(m===V||m===k){var d=this.clone().set(S,1);d.$d[w](H),d.init(),this.$d=d.set(S,Math.min(this.$D,d.daysInMonth())).$d}else w&&this.$d[w](H);return this.init(),this},n.set=function(t,r){return this.clone().$set(t,r)},n.get=function(t){return this[f.p(t)]()},n.add=function(t,r){var s,m=this;t=Number(t);var c=f.p(r),w=function(_){var C=$(m);return f.w(C.date(C.date()+Math.round(_*t)),m)};if(c===V)return this.set(V,this.$M+t);if(c===k)return this.set(k,this.$y+t);if(c===y)return w(1);if(c===v)return w(7);var H=(s={},s[b]=l,s[D]=g,s[i]=u,s)[c]||1,d=this.$d.getTime()+t*H;return f.w(d,this)},n.subtract=function(t,r){return this.add(-1*t,r)},n.format=function(t){var r=this,s=this.$locale();if(!this.isValid())return s.invalidDate||Y;var m=t||"YYYY-MM-DDTHH:mm:ssZ",c=f.z(this),w=this.$H,H=this.$m,d=this.$M,_=s.weekdays,C=s.months,N=s.meridiem,W=function(j,K,ie,oe){return j&&(j[K]||j(r,m))||ie[K].slice(0,oe)},G=function(j){return f.s(w%12||12,j,"0")},U=N||function(j,K,ie){var oe=j<12?"AM":"PM";return ie?oe.toLowerCase():oe};return m.replace(Z,(function(j,K){return K||(function(ie){switch(ie){case"YY":return String(r.$y).slice(-2);case"YYYY":return f.s(r.$y,4,"0");case"M":return d+1;case"MM":return f.s(d+1,2,"0");case"MMM":return W(s.monthsShort,d,C,3);case"MMMM":return W(C,d);case"D":return r.$D;case"DD":return f.s(r.$D,2,"0");case"d":return String(r.$W);case"dd":return W(s.weekdaysMin,r.$W,_,2);case"ddd":return W(s.weekdaysShort,r.$W,_,3);case"dddd":return _[r.$W];case"H":return String(w);case"HH":return f.s(w,2,"0");case"h":return G(1);case"hh":return G(2);case"a":return U(w,H,!0);case"A":return U(w,H,!1);case"m":return String(H);case"mm":return f.s(H,2,"0");case"s":return String(r.$s);case"ss":return f.s(r.$s,2,"0");case"SSS":return f.s(r.$ms,3,"0");case"Z":return c}return null})(j)||c.replace(":","")}))},n.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},n.diff=function(t,r,s){var m,c=this,w=f.p(r),H=$(t),d=(H.utcOffset()-this.utcOffset())*l,_=this-H,C=function(){return f.m(c,H)};switch(w){case k:m=C()/12;break;case V:m=C();break;case F:m=C()/3;break;case v:m=(_-d)/6048e5;break;case y:m=(_-d)/864e5;break;case D:m=_/g;break;case b:m=_/l;break;case i:m=_/u;break;default:m=_}return s?m:f.a(m)},n.daysInMonth=function(){return this.endOf(V).$D},n.$locale=function(){return E[this.$L]},n.locale=function(t,r){if(!t)return this.$L;var s=this.clone(),m=Q(t,r,!0);return m&&(s.$L=m),s},n.clone=function(){return f.w(this.$d,this)},n.toDate=function(){return new Date(this.valueOf())},n.toJSON=function(){return this.isValid()?this.toISOString():null},n.toISOString=function(){return this.$d.toISOString()},n.toString=function(){return this.$d.toUTCString()},o})(),z=x.prototype;return $.prototype=z,[["$ms",M],["$s",i],["$m",b],["$H",D],["$W",y],["$M",V],["$y",k],["$D",S]].forEach((function(o){z[o[1]]=function(n){return this.$g(n,o[0],o[1])}})),$.extend=function(o,n){return o.$i||(o(n,x,$),o.$i=!0),$},$.locale=Q,$.isDayjs=R,$.unix=function(o){return $(1e3*o)},$.en=E[I],$.Ls=E,$.p={},$}))})(ue)),ue.exports}var S1=$e();const T=It(S1);var ce={exports:{}},w1=ce.exports,be;function A1(){return be||(be=1,(function(e,a){(function(u,l){e.exports=l($e())})(w1,(function(u){function l(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var g=l(u),M={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(i){return""+i+(i===1?"er":"")}};return g.default.locale(M,null,!0),M}))})(ce)),ce.exports}A1();T.locale("fr");const fe=8e3,de=4,V1=60,H1=(de+1)*V1,B1={daysLabel:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],monthsLabel:["Jan","Fév","Mar","Avr","Mai","Juin","Juil","Aoû","Sep","Oct","Nov","Déc"],limit:5,spacing:5,loadingLabel:"Chargement...",disabledDate:e=>T(e).format("YYYY-MM-DD")<=T().format("YYYY-MM-DD")};function T1(e){return T(e).format("HH:mm")}function C1(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return"UTC"}}function I1(e,a){if(!e||e===C1())return null;try{return new Intl.DateTimeFormat("fr-FR",{timeZone:e,timeZoneName:"shortOffset"}).formatToParts(new Date(a)).find(l=>l.type==="timeZoneName")?.value??e}catch{return e}}function N1(e){const a=He(),u=String(a.public.apiBase??"").trim(),l=ee(!0),g=ee(!1);let M=!1,i=0;const b=e.initialSlotStart&&T(e.initialSlotStart).isValid()?T(e.initialSlotStart):null;let D=b?e.initialSlotStart??null:null;const y=ee((b??T()).startOf("day")),v=ee(null),V=ee(!1),F=ee("");let k=null,S;const Y=A(()=>y.value.toDate()),B=A(()=>y.value.add(de+1,"day").startOf("day"));function Z($,f){const x=[];for(let z=0;z<de+1;z++){const o=f.add(z,"day").format("YYYY-MM-DD"),n=$.get(o)??[];x.push({date:`${o}T12:00:00`,slots:n.length?n:[{}]})}return x}const X=ee(Z(new Map,y.value));async function se(){const $=e.reasonId?.();if($)return{id:$};if(S!==void 0)return S;try{const f=await $fetch(`${u}/appointment-reason/practician/${encodeURIComponent(e.profileId)}`,{timeout:fe,retry:0});S=(Array.isArray(f)?f:[]).find(x=>x.profile?.id===e.profileId)??null}catch{S=null}return S}function te(){V.value=!0,F.value="",k=null,X.value=Z(new Map,y.value),l.value=!1,g.value=!1}async function I(){if(!u||!e.profileId||e.onlineBookingEnabled?.()===!1){te();return}const $=++i;M?g.value=!0:l.value=!0;try{const f=await se();if($!==i)return;if(!f){te();return}const x=e.allModes?.(),z=Array.isArray(x)&&x.length>0,o=e.homeVisit()?"home_visit":e.isRemote()?"remote":"in_person",n=z?x:[o],t=!z&&!e.isRemote()?e.addressId():null,r=t&&!t.startsWith("addr-")?t:null,s=await Promise.all(n.map(d=>$fetch(`${u}/v2/availability`,{query:{profile:e.profileId,appointment_reason:f.id,mode:d,...r?{location:r}:{},from:y.value.toISOString(),until:B.value.toISOString(),max_results:H1},timeout:fe,retry:0}).catch(()=>({slots:[]}))));if($!==i)return;const m=T(),c=s.flatMap(d=>d?.slots??[]).filter(d=>T(d.start).isAfter(m)).sort((d,_)=>d.start.localeCompare(_.start));if(c.length){const d=new Map;for(const _ of c){const C=T(_.start),N=C.format("YYYY-MM-DD");d.has(N)||d.set(N,[]),d.get(N).push({date:C.format("YYYY-MM-DD HH:mm:ss"),start:_.start,capacity:_.capacity??1,seatsAvailable:_.seats_available??1,locationId:_.location_id??null,timezone:_.timezone??null,ruleId:_.rule_id??null})}if(X.value=Z(d,y.value),D){let _=!1;for(const W of d.values()){const G=W.find(U=>T(U.start).isSame(D));if(G){v.value=G,_=!0;break}}const C=T(D),N=!C.isBefore(y.value.startOf("day"))&&C.isBefore(B.value);(_||N)&&(D=null)}V.value=!1,F.value="",k=null;return}const w=await Promise.all(n.map(d=>$fetch(`${u}/v2/availability/next`,{query:{profile:e.profileId,appointment_reason:f.id,mode:d,...r?{location:r}:{}},timeout:fe,retry:0}).catch(()=>({next_available_at:null}))));if($!==i)return;const H=w.map(d=>d?.next_available_at).filter(d=>!!d).sort((d,_)=>d.localeCompare(_))[0]??null;if(H){const d=T(H),_=d.startOf("day");if(!_.isBefore(y.value.startOf("day"))&&_.isBefore(B.value)){te();return}F.value=d.format("ddd D MMM"),k=d,V.value=!1,X.value=Z(new Map,y.value)}else te()}catch{$===i&&te()}finally{$===i&&(l.value=!1,g.value=!1,M=!0)}}async function E($){y.value=y.value.add($*(de+1),"day"),await I()}async function le(){k&&(y.value=k.startOf("day"),await I())}let R=!1,Q=null;return we(()=>{const $=e.rootRef.value?.getBoundingClientRect();if(e.eager||!("IntersectionObserver"in window)||$&&$.top<window.innerHeight*1.5){R=!0,I();return}Q=new IntersectionObserver(f=>{f.some(x=>x.isIntersecting)&&!R&&(R=!0,I())},{rootMargin:"300px 0px 1800px 0px"}),e.rootRef.value?Q.observe(e.rootRef.value):(R=!0,I())}),Ae(()=>Q?.disconnect()),Ve(()=>[e.addressId(),e.isRemote(),e.homeVisit(),e.reasonId?.()??null,(e.allModes?.()??[]).join(",")],()=>{R&&I()}),{loading:l,refreshing:g,meetingsDays:X,noAvailability:V,nextAvailabilityLabel:F,selectedMeeting:v,windowStartDate:Y,shiftWindow:E,jumpToNext:le,reasonId:()=>S?.id??null}}export{B1 as C,O1 as F,x1 as H,Y1 as S,Z1 as a,I1 as b,j1 as d,T1 as f,It as g,N1 as u};