@alfadocs/ui-kit-debug 1.3.13 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/agenda-card.agent-Cb5tuEh3.js +28 -0
- package/dist/_chunks/agenda-card.agent-Cb5tuEh3.js.map +1 -0
- package/dist/_chunks/{alia-sidebar-DzNz1gDf.js → alia-sidebar-DSBZMick.js} +3 -3
- package/dist/_chunks/{alia-sidebar-DzNz1gDf.js.map → alia-sidebar-DSBZMick.js.map} +1 -1
- package/dist/_chunks/{anamnesis-i18n-CfC0qYzy.js → anamnesis-i18n-BA631X4t.js} +2209 -2144
- package/dist/_chunks/anamnesis-i18n-BA631X4t.js.map +1 -0
- package/dist/_chunks/{antenatal-schedule-timeline-BMMpi2lb.js → antenatal-schedule-timeline-u8TsS2QJ.js} +27 -26
- package/dist/_chunks/{antenatal-schedule-timeline-BMMpi2lb.js.map → antenatal-schedule-timeline-u8TsS2QJ.js.map} +1 -1
- package/dist/_chunks/{appointment-timeline-B630OT_J.js → appointment-timeline-Bqf1sTU5.js} +2 -2
- package/dist/_chunks/{appointment-timeline-B630OT_J.js.map → appointment-timeline-Bqf1sTU5.js.map} +1 -1
- package/dist/_chunks/{ar-THMLfSoN.js → ar-BR1FGFP2.js} +14 -14
- package/dist/_chunks/{ar-THMLfSoN.js.map → ar-BR1FGFP2.js.map} +1 -1
- package/dist/_chunks/{bmi-calculator-CM0-G2mg.js → bmi-calculator-CpyY13MV.js} +2 -2
- package/dist/_chunks/{bmi-calculator-CM0-G2mg.js.map → bmi-calculator-CpyY13MV.js.map} +1 -1
- package/dist/_chunks/{booking-DjNbd7C1.js → booking-BjsA7j1-.js} +699 -688
- package/dist/_chunks/booking-BjsA7j1-.js.map +1 -0
- package/dist/_chunks/calculator-dialog-12d3Sxaz.js +48 -0
- package/dist/_chunks/{calculator-dialog-DuXMQSdm.js.map → calculator-dialog-12d3Sxaz.js.map} +1 -1
- package/dist/_chunks/{care-plan-card-1G_f4I5s.js → care-plan-card-BvQy366X.js} +3 -3
- package/dist/_chunks/{care-plan-card-1G_f4I5s.js.map → care-plan-card-BvQy366X.js.map} +1 -1
- package/dist/_chunks/{care-plan-entry-card-DmBsffHS.js → care-plan-entry-card-apk_5B3O.js} +2 -2
- package/dist/_chunks/{care-plan-entry-card-DmBsffHS.js.map → care-plan-entry-card-apk_5B3O.js.map} +1 -1
- package/dist/_chunks/{chat-container-HlFnoEIl.js → chat-container-CYYego1W.js} +105 -81
- package/dist/_chunks/chat-container-CYYego1W.js.map +1 -0
- package/dist/_chunks/cycle-calculator-B7fyH-h4.js +425 -0
- package/dist/_chunks/cycle-calculator-B7fyH-h4.js.map +1 -0
- package/dist/_chunks/{date-picker-ZHejTVAJ.js → date-picker-Bp64zk2p.js} +19 -19
- package/dist/_chunks/{date-picker-ZHejTVAJ.js.map → date-picker-Bp64zk2p.js.map} +1 -1
- package/dist/_chunks/date-picker-variants-pKAJfnWr.js +2089 -0
- package/dist/_chunks/date-picker-variants-pKAJfnWr.js.map +1 -0
- package/dist/_chunks/{date-range-picker-pEG3Ln3i.js → date-range-picker-CDrZ8Zh0.js} +27 -27
- package/dist/_chunks/{date-range-picker-pEG3Ln3i.js.map → date-range-picker-CDrZ8Zh0.js.map} +1 -1
- package/dist/_chunks/{date-time-picker-695QvBGj.js → date-time-picker-DafkGDGO.js} +10 -10
- package/dist/_chunks/{date-time-picker-695QvBGj.js.map → date-time-picker-DafkGDGO.js.map} +1 -1
- package/dist/_chunks/{de-DmZ-8rTN.js → de-3iM4rGqo.js} +7 -7
- package/dist/_chunks/{de-DmZ-8rTN.js.map → de-3iM4rGqo.js.map} +1 -1
- package/dist/_chunks/{document-preview-D3gg4MXB.js → document-preview-DOrsqiN1.js} +2 -2
- package/dist/_chunks/{document-preview-D3gg4MXB.js.map → document-preview-DOrsqiN1.js.map} +1 -1
- package/dist/_chunks/due-date-calculator-CnkbbAej.js +571 -0
- package/dist/_chunks/due-date-calculator-CnkbbAej.js.map +1 -0
- package/dist/_chunks/{editor-overlay-DE3esyio.js → editor-overlay-B1tr2i7B.js} +22 -21
- package/dist/_chunks/editor-overlay-B1tr2i7B.js.map +1 -0
- package/dist/_chunks/{el-Bela9mxs.js → el-C96rGJvU.js} +2 -2
- package/dist/_chunks/{el-Bela9mxs.js.map → el-C96rGJvU.js.map} +1 -1
- package/dist/_chunks/{es-BNncHKex.js → es-Cxiqjx8r.js} +12 -12
- package/dist/_chunks/{es-BNncHKex.js.map → es-Cxiqjx8r.js.map} +1 -1
- package/dist/_chunks/fetal-weight-avlj-l-S.js +223 -0
- package/dist/_chunks/fetal-weight-avlj-l-S.js.map +1 -0
- package/dist/_chunks/format-4HNwNGrN.js +1315 -0
- package/dist/_chunks/format-4HNwNGrN.js.map +1 -0
- package/dist/_chunks/{fr-CH8ADfhN.js → fr-Bhr6SYKj.js} +21 -21
- package/dist/_chunks/{fr-CH8ADfhN.js.map → fr-Bhr6SYKj.js.map} +1 -1
- package/dist/_chunks/{freemium-paywall-C_Ue6wxU.js → freemium-paywall-DRDdWuOg.js} +3 -3
- package/dist/_chunks/{freemium-paywall-C_Ue6wxU.js.map → freemium-paywall-DRDdWuOg.js.map} +1 -1
- package/dist/_chunks/gestational-age-calculator-BljY_DVJ.js +488 -0
- package/dist/_chunks/gestational-age-calculator-BljY_DVJ.js.map +1 -0
- package/dist/_chunks/hcg-doubling-Cv_vH61p.js +312 -0
- package/dist/_chunks/hcg-doubling-Cv_vH61p.js.map +1 -0
- package/dist/_chunks/header-settings-Cn5fPXCE.js +335 -0
- package/dist/_chunks/header-settings-Cn5fPXCE.js.map +1 -0
- package/dist/_chunks/{hi-Bppfxp8l.js → hi-BxXX26d_.js} +12 -12
- package/dist/_chunks/{hi-Bppfxp8l.js.map → hi-BxXX26d_.js.map} +1 -1
- package/dist/_chunks/isSameWeek-B73MagWB.js +13 -0
- package/dist/_chunks/{isSameWeek-CK4HS9lH.js.map → isSameWeek-B73MagWB.js.map} +1 -1
- package/dist/_chunks/{it-B4ySaRyK.js → it-Xmjomvyj.js} +24 -24
- package/dist/_chunks/{it-B4ySaRyK.js.map → it-Xmjomvyj.js.map} +1 -1
- package/dist/_chunks/{ja-CGF6Io9P.js → ja-mfZvt1ZV.js} +16 -16
- package/dist/_chunks/{ja-CGF6Io9P.js.map → ja-mfZvt1ZV.js.map} +1 -1
- package/dist/_chunks/{link-cell-renderer-C5XLwVXQ.js → link-cell-renderer-CJ_gk7gl.js} +3 -3
- package/dist/_chunks/{link-cell-renderer-C5XLwVXQ.js.map → link-cell-renderer-CJ_gk7gl.js.map} +1 -1
- package/dist/_chunks/{locale-picker-BfBUdT1m.js → locale-picker-D9Kv2zrK.js} +153 -132
- package/dist/_chunks/locale-picker-D9Kv2zrK.js.map +1 -0
- package/dist/_chunks/map-view-2yZCQW2l.js +445 -0
- package/dist/_chunks/map-view-2yZCQW2l.js.map +1 -0
- package/dist/_chunks/{marketplace-app-shell-DwcFMxzp.js → marketplace-app-shell-BLRvg-M0.js} +49 -40
- package/dist/_chunks/marketplace-app-shell-BLRvg-M0.js.map +1 -0
- package/dist/_chunks/{nl-DuShqwuV.js → nl-DDs-KEnD.js} +15 -15
- package/dist/_chunks/{nl-DuShqwuV.js.map → nl-DDs-KEnD.js.map} +1 -1
- package/dist/_chunks/{notes-panel-DPsgB4Mv.js → notes-panel-CiFN3sLW.js} +2 -2
- package/dist/_chunks/{notes-panel-DPsgB4Mv.js.map → notes-panel-CiFN3sLW.js.map} +1 -1
- package/dist/_chunks/{number-input-DrozbZAU.js → number-input-DOe5VYei.js} +64 -64
- package/dist/_chunks/number-input-DOe5VYei.js.map +1 -0
- package/dist/_chunks/{optical-prescription-BDHJr8Zz.js → optical-prescription-CRemE8fL.js} +2 -2
- package/dist/_chunks/{optical-prescription-BDHJr8Zz.js.map → optical-prescription-CRemE8fL.js.map} +1 -1
- package/dist/_chunks/{parse-DvA97ro9.js → parse-JqixfsU0.js} +43 -43
- package/dist/_chunks/{parse-DvA97ro9.js.map → parse-JqixfsU0.js.map} +1 -1
- package/dist/_chunks/parseISO-fOGpHKXm.js +120 -0
- package/dist/_chunks/parseISO-fOGpHKXm.js.map +1 -0
- package/dist/_chunks/{patient-details-DqjjwPmt.js → patient-details-CpunD0qx.js} +3 -3
- package/dist/_chunks/{patient-details-DqjjwPmt.js.map → patient-details-CpunD0qx.js.map} +1 -1
- package/dist/_chunks/{patient-table-BmIDrLIS.js → patient-table-2eWx-Rrk.js} +2 -2
- package/dist/_chunks/{patient-table-BmIDrLIS.js.map → patient-table-2eWx-Rrk.js.map} +1 -1
- package/dist/_chunks/{payment-form-h-BZ8onk.js → payment-form-Ds1I9KqB.js} +308 -231
- package/dist/_chunks/payment-form-Ds1I9KqB.js.map +1 -0
- package/dist/_chunks/{pdf-viewer-Ddx-T053.js → pdf-viewer-DUIsV9s5.js} +429 -369
- package/dist/_chunks/pdf-viewer-DUIsV9s5.js.map +1 -0
- package/dist/_chunks/{pl-CKQwX9Fk.js → pl-BYYMnEWP.js} +18 -18
- package/dist/_chunks/{pl-CKQwX9Fk.js.map → pl-BYYMnEWP.js.map} +1 -1
- package/dist/_chunks/{practice-results-B-HPc13W.js → practice-results-SjCniMd2.js} +2 -2
- package/dist/_chunks/{practice-results-B-HPc13W.js.map → practice-results-SjCniMd2.js.map} +1 -1
- package/dist/_chunks/pregnancy-dating-BmpHScZ0.js +770 -0
- package/dist/_chunks/pregnancy-dating-BmpHScZ0.js.map +1 -0
- package/dist/_chunks/pregnancy-weight-gain-B5KSJzdc.js +553 -0
- package/dist/_chunks/pregnancy-weight-gain-B5KSJzdc.js.map +1 -0
- package/dist/_chunks/progress-CK8otcQ-.js +343 -0
- package/dist/_chunks/progress-CK8otcQ-.js.map +1 -0
- package/dist/_chunks/{pt-_njpXyOZ.js → pt-BSPnVrQ7.js} +20 -20
- package/dist/_chunks/{pt-_njpXyOZ.js.map → pt-BSPnVrQ7.js.map} +1 -1
- package/dist/_chunks/{radiograph-panel.agent-BQZ64Riy.js → radiograph-panel.agent-CtFtNMzk.js} +3 -3
- package/dist/_chunks/{radiograph-panel.agent-BQZ64Riy.js.map → radiograph-panel.agent-CtFtNMzk.js.map} +1 -1
- package/dist/_chunks/{rich-text-editor-CfeXPPWs.js → rich-text-editor-BedTpWzL.js} +2 -2
- package/dist/_chunks/{rich-text-editor-CfeXPPWs.js.map → rich-text-editor-BedTpWzL.js.map} +1 -1
- package/dist/_chunks/{ro-3X6_4FcN.js → ro-BbiylGmG.js} +14 -14
- package/dist/_chunks/{ro-3X6_4FcN.js.map → ro-BbiylGmG.js.map} +1 -1
- package/dist/_chunks/{ru-bAcgmnS-.js → ru-BX_qsV67.js} +14 -14
- package/dist/_chunks/{ru-bAcgmnS-.js.map → ru-BX_qsV67.js.map} +1 -1
- package/dist/_chunks/{session-countdown-Bc70VXN1.js → session-countdown-BL-Psg8u.js} +2 -2
- package/dist/_chunks/{session-countdown-Bc70VXN1.js.map → session-countdown-BL-Psg8u.js.map} +1 -1
- package/dist/_chunks/{sign-document-CW_ByDUh.js → sign-document-jF4fZDJ5.js} +2 -2
- package/dist/_chunks/{sign-document-CW_ByDUh.js.map → sign-document-jF4fZDJ5.js.map} +1 -1
- package/dist/_chunks/slot-grid-DNiUcXy2.js +640 -0
- package/dist/_chunks/slot-grid-DNiUcXy2.js.map +1 -0
- package/dist/_chunks/{sparkline-BTY4B5tv.js → sparkline-BmGcEyZO.js} +209 -164
- package/dist/_chunks/sparkline-BmGcEyZO.js.map +1 -0
- package/dist/_chunks/{sq-jYFqr4Ga.js → sq-i9UOk4P7.js} +10 -10
- package/dist/_chunks/{sq-jYFqr4Ga.js.map → sq-i9UOk4P7.js.map} +1 -1
- package/dist/_chunks/subDays-CAUv47M1.js +8 -0
- package/dist/_chunks/{subDays-BcNi04uf.js.map → subDays-CAUv47M1.js.map} +1 -1
- package/dist/_chunks/{sv-BSGEJ-8B.js → sv-CpTdtmDQ.js} +8 -8
- package/dist/_chunks/{sv-BSGEJ-8B.js.map → sv-CpTdtmDQ.js.map} +1 -1
- package/dist/_chunks/{tab-bar-Axhk6xzx.js → tab-bar-BYESZINM.js} +83 -77
- package/dist/_chunks/tab-bar-BYESZINM.js.map +1 -0
- package/dist/_chunks/task-card.agent-CF2N_uu4.js +29 -0
- package/dist/_chunks/task-card.agent-CF2N_uu4.js.map +1 -0
- package/dist/_chunks/{tr-CTpgUtw6.js → tr-DXG2QN1K.js} +17 -17
- package/dist/_chunks/{tr-CTpgUtw6.js.map → tr-DXG2QN1K.js.map} +1 -1
- package/dist/_chunks/{unit-converter-COgkN7YP.js → unit-converter-CHPDuV7W.js} +2 -2
- package/dist/_chunks/{unit-converter-COgkN7YP.js.map → unit-converter-CHPDuV7W.js.map} +1 -1
- package/dist/_chunks/{warning-stack-BtjmJChC.js → warning-stack-B7t_8jRE.js} +42 -37
- package/dist/_chunks/{warning-stack-BtjmJChC.js.map → warning-stack-B7t_8jRE.js.map} +1 -1
- package/dist/_chunks/{zh-CN-BgM0Io2O.js → zh-CN-vPkPEK6H.js} +18 -18
- package/dist/_chunks/{zh-CN-BgM0Io2O.js.map → zh-CN-vPkPEK6H.js.map} +1 -1
- package/dist/agent-catalog.json +6426 -3382
- package/dist/agent-i18n/en.json +234 -15
- package/dist/components/agenda-card/agenda-card.agent.d.ts.map +1 -1
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/booking.d.ts.map +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calculator-dialog/calculator-dialog.d.ts.map +1 -1
- package/dist/components/calculator-dialog/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/chat-container/chat-container.agent.d.ts.map +1 -1
- package/dist/components/chat-container/chat-container.d.ts +14 -0
- package/dist/components/chat-container/chat-container.d.ts.map +1 -1
- package/dist/components/chat-container/index.js +1 -1
- package/dist/components/cycle-calculator/cycle-calculator.agent.d.ts +4 -0
- package/dist/components/cycle-calculator/cycle-calculator.agent.d.ts.map +1 -0
- package/dist/components/cycle-calculator/cycle-calculator.d.ts +42 -0
- package/dist/components/cycle-calculator/cycle-calculator.d.ts.map +1 -1
- package/dist/components/cycle-calculator/index.d.ts +1 -1
- package/dist/components/cycle-calculator/index.d.ts.map +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/due-date-calculator/due-date-calculator.agent.d.ts +4 -0
- package/dist/components/due-date-calculator/due-date-calculator.agent.d.ts.map +1 -0
- package/dist/components/due-date-calculator/due-date-calculator.d.ts +61 -1
- package/dist/components/due-date-calculator/due-date-calculator.d.ts.map +1 -1
- package/dist/components/due-date-calculator/index.d.ts +1 -1
- package/dist/components/due-date-calculator/index.d.ts.map +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/editor-overlay/editor-overlay.d.ts +7 -1
- package/dist/components/editor-overlay/editor-overlay.d.ts.map +1 -1
- package/dist/components/editor-overlay/index.js +1 -1
- package/dist/components/fetal-weight/fetal-weight.agent.d.ts +4 -0
- package/dist/components/fetal-weight/fetal-weight.agent.d.ts.map +1 -0
- package/dist/components/fetal-weight/fetal-weight.d.ts +26 -0
- package/dist/components/fetal-weight/fetal-weight.d.ts.map +1 -1
- package/dist/components/fetal-weight/index.d.ts +1 -1
- package/dist/components/fetal-weight/index.d.ts.map +1 -1
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/gestational-age-calculator.agent.d.ts +4 -0
- package/dist/components/gestational-age-calculator/gestational-age-calculator.agent.d.ts.map +1 -0
- package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +44 -2
- package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts.map +1 -1
- package/dist/components/gestational-age-calculator/index.d.ts +1 -1
- package/dist/components/gestational-age-calculator/index.d.ts.map +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/hcg-doubling.agent.d.ts +4 -0
- package/dist/components/hcg-doubling/hcg-doubling.agent.d.ts.map +1 -0
- package/dist/components/hcg-doubling/hcg-doubling.d.ts +30 -0
- package/dist/components/hcg-doubling/hcg-doubling.d.ts.map +1 -1
- package/dist/components/hcg-doubling/index.d.ts +1 -1
- package/dist/components/hcg-doubling/index.d.ts.map +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/header-settings/header-settings.agent.d.ts.map +1 -1
- package/dist/components/header-settings/header-settings.d.ts +13 -1
- package/dist/components/header-settings/header-settings.d.ts.map +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/locale-picker/locale-picker.agent.d.ts.map +1 -1
- package/dist/components/locale-picker/locale-picker.d.ts +9 -0
- package/dist/components/locale-picker/locale-picker.d.ts.map +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/map-view/map-view.agent.d.ts.map +1 -1
- package/dist/components/map-view/map-view.d.ts +22 -0
- package/dist/components/map-view/map-view.d.ts.map +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/number-input/number-input.d.ts +2 -1
- package/dist/components/number-input/number-input.d.ts.map +1 -1
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-form/index.d.ts +1 -1
- package/dist/components/payment-form/index.d.ts.map +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/payment-form/payment-form.agent.d.ts.map +1 -1
- package/dist/components/payment-form/payment-form.d.ts +32 -1
- package/dist/components/payment-form/payment-form.d.ts.map +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/pdf-viewer/pdf-viewer.agent.d.ts.map +1 -1
- package/dist/components/pdf-viewer/pdf-viewer.d.ts +13 -0
- package/dist/components/pdf-viewer/pdf-viewer.d.ts.map +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.d.ts +1 -1
- package/dist/components/pregnancy-dating/index.d.ts.map +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-dating/pregnancy-dating.agent.d.ts +4 -0
- package/dist/components/pregnancy-dating/pregnancy-dating.agent.d.ts.map +1 -0
- package/dist/components/pregnancy-dating/pregnancy-dating.d.ts +65 -1
- package/dist/components/pregnancy-dating/pregnancy-dating.d.ts.map +1 -1
- package/dist/components/pregnancy-weight-gain/index.d.ts +2 -1
- package/dist/components/pregnancy-weight-gain/index.d.ts.map +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +6 -5
- package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.agent.d.ts +4 -0
- package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.agent.d.ts.map +1 -0
- package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +35 -0
- package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts.map +1 -1
- package/dist/components/progress/index.js +1 -1
- package/dist/components/progress/progress.agent.d.ts.map +1 -1
- package/dist/components/progress/progress.d.ts +13 -0
- package/dist/components/progress/progress.d.ts.map +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/session-countdown/index.js +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/slot-grid/index.d.ts +2 -1
- package/dist/components/slot-grid/index.d.ts.map +1 -1
- package/dist/components/slot-grid/index.js +5 -4
- package/dist/components/slot-grid/slot-grid.agent.d.ts +4 -0
- package/dist/components/slot-grid/slot-grid.agent.d.ts.map +1 -0
- package/dist/components/slot-grid/slot-grid.d.ts +34 -0
- package/dist/components/slot-grid/slot-grid.d.ts.map +1 -1
- package/dist/components/sparkline/index.js +1 -1
- package/dist/components/sparkline/sparkline.agent.d.ts.map +1 -1
- package/dist/components/sparkline/sparkline.d.ts +10 -0
- package/dist/components/sparkline/sparkline.d.ts.map +1 -1
- package/dist/components/tab-bar/index.js +1 -1
- package/dist/components/tab-bar/tab-bar.d.ts +13 -0
- package/dist/components/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-card/task-card.agent.d.ts.map +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/warning-stack/warning-stack.d.ts.map +1 -1
- package/dist/index.js +630 -627
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/anamnesis-compare-panel.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-compile.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-derive.d.ts +27 -8
- package/dist/patterns/anamnesis/anamnesis-derive.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-evolution-grid.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-field.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-format.d.ts +11 -3
- package/dist/patterns/anamnesis/anamnesis-format.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-highlight.d.ts +6 -0
- package/dist/patterns/anamnesis/anamnesis-highlight.d.ts.map +1 -0
- package/dist/patterns/anamnesis/anamnesis-intake.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-matrix.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-questionnaire.d.ts +23 -9
- package/dist/patterns/anamnesis/anamnesis-questionnaire.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-readonly.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-target-strip.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-types.d.ts +7 -0
- package/dist/patterns/anamnesis/anamnesis-types.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-visit-note.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis.d.ts +16 -7
- package/dist/patterns/anamnesis/anamnesis.d.ts.map +1 -1
- package/dist/patterns/anamnesis/index.d.ts +3 -2
- package/dist/patterns/anamnesis/index.d.ts.map +1 -1
- package/dist/patterns/anamnesis/index.js +7 -6
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +6 -0
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts.map +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/agenda-card.agent-mTCrkKSZ.js +0 -27
- package/dist/_chunks/agenda-card.agent-mTCrkKSZ.js.map +0 -1
- package/dist/_chunks/anamnesis-i18n-CfC0qYzy.js.map +0 -1
- package/dist/_chunks/booking-DjNbd7C1.js.map +0 -1
- package/dist/_chunks/calculator-dialog-DuXMQSdm.js +0 -40
- package/dist/_chunks/chat-container-HlFnoEIl.js.map +0 -1
- package/dist/_chunks/cycle-calculator-BwqYVPB4.js +0 -252
- package/dist/_chunks/cycle-calculator-BwqYVPB4.js.map +0 -1
- package/dist/_chunks/date-picker-variants-eL6HjWvw.js +0 -3363
- package/dist/_chunks/date-picker-variants-eL6HjWvw.js.map +0 -1
- package/dist/_chunks/due-date-calculator-CwfsFd3T.js +0 -256
- package/dist/_chunks/due-date-calculator-CwfsFd3T.js.map +0 -1
- package/dist/_chunks/editor-overlay-DE3esyio.js.map +0 -1
- package/dist/_chunks/fetal-weight-ePlLjJPc.js +0 -122
- package/dist/_chunks/fetal-weight-ePlLjJPc.js.map +0 -1
- package/dist/_chunks/gestational-age-calculator-DdgbH69Z.js +0 -311
- package/dist/_chunks/gestational-age-calculator-DdgbH69Z.js.map +0 -1
- package/dist/_chunks/hcg-doubling-BBqD2wI2.js +0 -170
- package/dist/_chunks/hcg-doubling-BBqD2wI2.js.map +0 -1
- package/dist/_chunks/header-settings--pjYOe6g.js +0 -284
- package/dist/_chunks/header-settings--pjYOe6g.js.map +0 -1
- package/dist/_chunks/isSameDay-DUEiAT0G.js +0 -39
- package/dist/_chunks/isSameDay-DUEiAT0G.js.map +0 -1
- package/dist/_chunks/isSameWeek-CK4HS9lH.js +0 -14
- package/dist/_chunks/locale-picker-BfBUdT1m.js.map +0 -1
- package/dist/_chunks/map-view-CsaHfoo6.js +0 -378
- package/dist/_chunks/map-view-CsaHfoo6.js.map +0 -1
- package/dist/_chunks/marketplace-app-shell-DwcFMxzp.js.map +0 -1
- package/dist/_chunks/number-input-DrozbZAU.js.map +0 -1
- package/dist/_chunks/payment-form-h-BZ8onk.js.map +0 -1
- package/dist/_chunks/pdf-viewer-Ddx-T053.js.map +0 -1
- package/dist/_chunks/pregnancy-dating-DzYTlBkT.js +0 -421
- package/dist/_chunks/pregnancy-dating-DzYTlBkT.js.map +0 -1
- package/dist/_chunks/pregnancy-weight-gain-O6J0sUIi.js +0 -322
- package/dist/_chunks/pregnancy-weight-gain-O6J0sUIi.js.map +0 -1
- package/dist/_chunks/progress-DA413-zn.js +0 -299
- package/dist/_chunks/progress-DA413-zn.js.map +0 -1
- package/dist/_chunks/slot-grid-CQSULZjd.js +0 -502
- package/dist/_chunks/slot-grid-CQSULZjd.js.map +0 -1
- package/dist/_chunks/sparkline-BTY4B5tv.js.map +0 -1
- package/dist/_chunks/subDays-BcNi04uf.js +0 -8
- package/dist/_chunks/tab-bar-Axhk6xzx.js.map +0 -1
- package/dist/_chunks/task-card.agent-Bt14CzUd.js +0 -25
- package/dist/_chunks/task-card.agent-Bt14CzUd.js.map +0 -1
|
@@ -1,34 +1,35 @@
|
|
|
1
|
-
import { jsxs as f, jsx as a, Fragment as
|
|
2
|
-
import { forwardRef as ot, useId as rt, useState as
|
|
1
|
+
import { jsxs as f, jsx as a, Fragment as X } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as ot, useId as rt, useState as q, useCallback as H, useRef as ie, useEffect as U, useMemo as w, useImperativeHandle as _t } from "react";
|
|
3
3
|
import { c as Pe } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { u as
|
|
6
|
-
import { A as
|
|
7
|
-
import { B as
|
|
4
|
+
import { useTranslation as B, Trans as Pt } from "react-i18next";
|
|
5
|
+
import { u as Bt } from "./registry-DvAUVLHh.js";
|
|
6
|
+
import { A as j } from "./alert-CiJT540z.js";
|
|
7
|
+
import { B as ne } from "./button-CPGiR_bH.js";
|
|
8
8
|
import { C as Ke } from "./checkbox-BuZ1u__2.js";
|
|
9
|
-
import { C as
|
|
10
|
-
import { D as Et } from "./date-picker-
|
|
9
|
+
import { C as Ot } from "./checkbox-group-CfqMv57d.js";
|
|
10
|
+
import { D as Et } from "./date-picker-Bp64zk2p.js";
|
|
11
11
|
import { E as Rt } from "./email-input-Dpe63k0K.js";
|
|
12
|
-
import { F as
|
|
12
|
+
import { F as W } from "./form-field-M5UpX65Z.js";
|
|
13
13
|
import { P as Vt } from "./phone-input-BsZIoE36.js";
|
|
14
14
|
import { T as Lt } from "./text-area-Bt3p7Pt0.js";
|
|
15
15
|
import { T as Ce } from "./text-input-CUvCb6ST.js";
|
|
16
16
|
import { S as Ft } from "./spinner-hbwuKwMf.js";
|
|
17
17
|
import { I as tt } from "./icon-button-C_kbcd7I.js";
|
|
18
|
-
import { S as
|
|
18
|
+
import { S as Be } from "./select-BW5ecXlX.js";
|
|
19
19
|
import { C as Ge } from "./combobox-DiMLItyu.js";
|
|
20
20
|
import { M as Ue } from "./multi-select-CC52Qws6.js";
|
|
21
21
|
import { S as _e } from "./skeleton-CZbwyJAA.js";
|
|
22
22
|
import { E as dt } from "./empty-state-CrLsi0XI.js";
|
|
23
23
|
import { S as $t } from "./stepper-accordion-BeVMZPuG.js";
|
|
24
24
|
import { S as zt } from "./stepper-progress-Bv0njx4g.js";
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import { s as
|
|
25
|
+
import { S as Kt } from "./slot-grid-DNiUcXy2.js";
|
|
26
|
+
import { p as $ } from "./parseISO-fOGpHKXm.js";
|
|
27
|
+
import { l as le, f as Te, b as st } from "./format-4HNwNGrN.js";
|
|
28
|
+
import { w as lt, c as ce, a as je, i as jt, s as ye, l as qt, x as De } from "./date-picker-variants-pKAJfnWr.js";
|
|
29
|
+
import { s as Ht } from "./subDays-CAUv47M1.js";
|
|
29
30
|
import { C as Gt } from "./chevron-left-B8cOyH-V.js";
|
|
30
31
|
import { C as Ut } from "./chevron-right-I9AeSxH2.js";
|
|
31
|
-
import { c as
|
|
32
|
+
import { c as z } from "./createLucideIcon-DhHxpK9K.js";
|
|
32
33
|
import { M as Yt, S as Jt } from "./sun-Bj9Mr553.js";
|
|
33
34
|
import { S as Zt } from "./stethoscope-sZXGC43m.js";
|
|
34
35
|
import { H as Wt } from "./heart-pulse-BCppJyN2.js";
|
|
@@ -50,7 +51,7 @@ const ss = [
|
|
|
50
51
|
key: "169zse"
|
|
51
52
|
}
|
|
52
53
|
]
|
|
53
|
-
], as =
|
|
54
|
+
], as = z("activity", ss);
|
|
54
55
|
/**
|
|
55
56
|
* @license lucide-react v1.22.0 - ISC
|
|
56
57
|
*
|
|
@@ -68,7 +69,7 @@ const is = [
|
|
|
68
69
|
}
|
|
69
70
|
],
|
|
70
71
|
["path", { d: "M9 12h.01", key: "157uk2" }]
|
|
71
|
-
], ns =
|
|
72
|
+
], ns = z("baby", is);
|
|
72
73
|
/**
|
|
73
74
|
* @license lucide-react v1.22.0 - ISC
|
|
74
75
|
*
|
|
@@ -83,7 +84,7 @@ const os = [
|
|
|
83
84
|
key: "w610uw"
|
|
84
85
|
}
|
|
85
86
|
]
|
|
86
|
-
], rs =
|
|
87
|
+
], rs = z("bone", os);
|
|
87
88
|
/**
|
|
88
89
|
* @license lucide-react v1.22.0 - ISC
|
|
89
90
|
*
|
|
@@ -99,7 +100,7 @@ const ds = [
|
|
|
99
100
|
["path", { d: "M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517", key: "1gq6am" }],
|
|
100
101
|
["path", { d: "M6 18a4 4 0 0 1-2-7.464", key: "k1g0md" }],
|
|
101
102
|
["path", { d: "M6.003 5.125a4 4 0 0 0-2.526 5.77", key: "q97ue3" }]
|
|
102
|
-
], ls =
|
|
103
|
+
], ls = z("brain", ds);
|
|
103
104
|
/**
|
|
104
105
|
* @license lucide-react v1.22.0 - ISC
|
|
105
106
|
*
|
|
@@ -115,7 +116,7 @@ const cs = [
|
|
|
115
116
|
["path", { d: "M13 18H7", key: "bb0bb7" }],
|
|
116
117
|
["path", { d: "M7 14h.01", key: "1qa3f1" }],
|
|
117
118
|
["path", { d: "M17 18h.01", key: "1bdyru" }]
|
|
118
|
-
], us =
|
|
119
|
+
], us = z("calendar-range", cs);
|
|
119
120
|
/**
|
|
120
121
|
* @license lucide-react v1.22.0 - ISC
|
|
121
122
|
*
|
|
@@ -125,7 +126,7 @@ const cs = [
|
|
|
125
126
|
const ps = [
|
|
126
127
|
["path", { d: "M6 8.5a6.5 6.5 0 1 1 13 0c0 6-6 6-6 10a3.5 3.5 0 1 1-7 0", key: "1dfaln" }],
|
|
127
128
|
["path", { d: "M15 8.5a2.5 2.5 0 0 0-5 0v1a2 2 0 1 1 0 4", key: "1qnva7" }]
|
|
128
|
-
], ms =
|
|
129
|
+
], ms = z("ear", ps);
|
|
129
130
|
/**
|
|
130
131
|
* @license lucide-react v1.22.0 - ISC
|
|
131
132
|
*
|
|
@@ -139,7 +140,7 @@ const gs = [
|
|
|
139
140
|
["path", { d: "M9 14h2", key: "197e7h" }],
|
|
140
141
|
["path", { d: "M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z", key: "1bmzmy" }],
|
|
141
142
|
["path", { d: "M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3", key: "1drr47" }]
|
|
142
|
-
], fs =
|
|
143
|
+
], fs = z("microscope", gs);
|
|
143
144
|
/**
|
|
144
145
|
* @license lucide-react v1.22.0 - ISC
|
|
145
146
|
*
|
|
@@ -152,7 +153,7 @@ const hs = [
|
|
|
152
153
|
{ d: "m10.5 20.5 10-10a4.95 4.95 0 1 0-7-7l-10 10a4.95 4.95 0 1 0 7 7Z", key: "wa1lgi" }
|
|
153
154
|
],
|
|
154
155
|
["path", { d: "m8.5 8.5 7 7", key: "rvfmvr" }]
|
|
155
|
-
], vs =
|
|
156
|
+
], vs = z("pill", hs);
|
|
156
157
|
/**
|
|
157
158
|
* @license lucide-react v1.22.0 - ISC
|
|
158
159
|
*
|
|
@@ -165,7 +166,7 @@ const bs = [
|
|
|
165
166
|
["path", { d: "M20 4 8.12 15.88", key: "xgtan2" }],
|
|
166
167
|
["circle", { cx: "6", cy: "18", r: "3", key: "fqmcym" }],
|
|
167
168
|
["path", { d: "M14.8 14.8 20 20", key: "ptml3r" }]
|
|
168
|
-
], ys =
|
|
169
|
+
], ys = z("scissors", bs);
|
|
169
170
|
/**
|
|
170
171
|
* @license lucide-react v1.22.0 - ISC
|
|
171
172
|
*
|
|
@@ -177,7 +178,7 @@ const ks = [
|
|
|
177
178
|
["path", { d: "M8 14s1.5 2 4 2 4-2 4-2", key: "1y1vjs" }],
|
|
178
179
|
["line", { x1: "9", x2: "9.01", y1: "9", y2: "9", key: "yxxnd0" }],
|
|
179
180
|
["line", { x1: "15", x2: "15.01", y1: "9", y2: "9", key: "1p4y9e" }]
|
|
180
|
-
], xs =
|
|
181
|
+
], xs = z("smile", ks);
|
|
181
182
|
/**
|
|
182
183
|
* @license lucide-react v1.22.0 - ISC
|
|
183
184
|
*
|
|
@@ -193,7 +194,7 @@ const Ss = [
|
|
|
193
194
|
["path", { d: "M22 22H2", key: "19qnx5" }],
|
|
194
195
|
["path", { d: "m16 6-4 4-4-4", key: "6wukr" }],
|
|
195
196
|
["path", { d: "M16 18a4 4 0 0 0-8 0", key: "1lzouq" }]
|
|
196
|
-
], Is =
|
|
197
|
+
], Is = z("sunset", Ss);
|
|
197
198
|
/**
|
|
198
199
|
* @license lucide-react v1.22.0 - ISC
|
|
199
200
|
*
|
|
@@ -207,7 +208,7 @@ const Ns = [
|
|
|
207
208
|
["path", { d: "m9 11 4 4", key: "rovt3i" }],
|
|
208
209
|
["path", { d: "m5 19-3 3", key: "59f2uf" }],
|
|
209
210
|
["path", { d: "m14 4 6 6", key: "yqp9t2" }]
|
|
210
|
-
], at =
|
|
211
|
+
], at = z("syringe", Ns);
|
|
211
212
|
function ws(e, t, s) {
|
|
212
213
|
return lt(e, -1, s);
|
|
213
214
|
}
|
|
@@ -280,7 +281,7 @@ const Cs = {
|
|
|
280
281
|
"email",
|
|
281
282
|
"whatsapp",
|
|
282
283
|
"sms"
|
|
283
|
-
],
|
|
284
|
+
], Q = "all", Ds = "de";
|
|
284
285
|
function Ms(e) {
|
|
285
286
|
return [...e.lockedOperatorId ? e.specialties.filter(
|
|
286
287
|
(s) => {
|
|
@@ -320,7 +321,7 @@ function Ts(e) {
|
|
|
320
321
|
);
|
|
321
322
|
}
|
|
322
323
|
if (!t) {
|
|
323
|
-
const s =
|
|
324
|
+
const s = Oe(e.value);
|
|
324
325
|
if (s.length > 0)
|
|
325
326
|
return e.operators.filter(
|
|
326
327
|
(i) => {
|
|
@@ -332,16 +333,16 @@ function Ts(e) {
|
|
|
332
333
|
return [];
|
|
333
334
|
}
|
|
334
335
|
function _s(e, t) {
|
|
335
|
-
const s = e.country === Ds, i = !s || e.value.insuranceType !== void 0, o = (e.useSpecialties === void 0 ? e.specialties.length > 0 : e.useSpecialties) && i,
|
|
336
|
+
const s = e.country === Ds, i = !s || e.value.insuranceType !== void 0, o = (e.useSpecialties === void 0 ? e.specialties.length > 0 : e.useSpecialties) && i, r = ue(e.value).length > 0, m = !o || r, d = Oe(e.value).length > 0, l = !m || d, c = t.operators, x = !!e.allowOperatorSelection && l && d && !e.lockedOperatorId && c.length > 1, S = l && d, N = (!S || e.value.date !== void 0) && e.value.date !== void 0, M = (!N || e.value.slotKey !== void 0) && e.value.slotKey !== void 0, k = d && c.length === 0;
|
|
336
337
|
return {
|
|
337
338
|
insurance: s,
|
|
338
339
|
specialty: o,
|
|
339
|
-
service:
|
|
340
|
-
operator:
|
|
341
|
-
date:
|
|
340
|
+
service: m,
|
|
341
|
+
operator: x,
|
|
342
|
+
date: S,
|
|
342
343
|
slot: N,
|
|
343
344
|
details: M,
|
|
344
|
-
onboardingIncomplete:
|
|
345
|
+
onboardingIncomplete: k
|
|
345
346
|
};
|
|
346
347
|
}
|
|
347
348
|
function Ps(e, t) {
|
|
@@ -351,7 +352,7 @@ function Ps(e, t) {
|
|
|
351
352
|
1: e.value.insuranceType !== void 0,
|
|
352
353
|
// 0.34.0: array-or-single — satisfied when EITHER form is present.
|
|
353
354
|
2: ue(e.value).length > 0,
|
|
354
|
-
3:
|
|
355
|
+
3: Oe(e.value).length > 0,
|
|
355
356
|
4: e.value.operatorId !== void 0 || e.value.operatorIds !== void 0 && e.value.operatorIds.length > 0,
|
|
356
357
|
5: e.value.date !== void 0,
|
|
357
358
|
6: e.value.slotKey !== void 0,
|
|
@@ -363,7 +364,7 @@ function Ps(e, t) {
|
|
|
363
364
|
visibleSteps: s
|
|
364
365
|
};
|
|
365
366
|
}
|
|
366
|
-
function
|
|
367
|
+
function Bs(e) {
|
|
367
368
|
const t = {
|
|
368
369
|
specialties: Ms(e),
|
|
369
370
|
services: As(e),
|
|
@@ -371,17 +372,17 @@ function Os(e) {
|
|
|
371
372
|
}, s = _s(e, t), { currentStep: i, visibleSteps: n } = Ps(e, s);
|
|
372
373
|
let o;
|
|
373
374
|
if (e.value.date && e.value.slotKey) {
|
|
374
|
-
const
|
|
375
|
-
|
|
375
|
+
const l = e.availableSlots[e.value.date];
|
|
376
|
+
l && (o = l.find((c) => c.key === e.value.slotKey));
|
|
376
377
|
}
|
|
377
|
-
const
|
|
378
|
+
const r = Oe(e.value), u = r.length > 0 ? e.services.find((l) => l.id === r[0]) : void 0, m = ue(e.value).length > 0, d = r.length > 0 && e.value.date !== void 0 && e.value.slotKey !== void 0 && (!s.insurance || e.value.insuranceType !== void 0) && (!s.specialty || m);
|
|
378
379
|
return {
|
|
379
380
|
gates: s,
|
|
380
381
|
filtered: t,
|
|
381
382
|
currentStep: i,
|
|
382
383
|
totalSteps: n.length,
|
|
383
384
|
visibleSteps: n,
|
|
384
|
-
isReadyToSubmit:
|
|
385
|
+
isReadyToSubmit: d,
|
|
385
386
|
durationMin: u == null ? void 0 : u.durationMin,
|
|
386
387
|
selectedSlot: o
|
|
387
388
|
};
|
|
@@ -434,7 +435,7 @@ function mt(e, t) {
|
|
|
434
435
|
// Default the operator to the "All operators" sentinel so a patient
|
|
435
436
|
// who doesn't care about picking lands on a satisfied step 4 without
|
|
436
437
|
// any further input.
|
|
437
|
-
operatorId: t ?
|
|
438
|
+
operatorId: t ? Q : void 0,
|
|
438
439
|
operatorIds: void 0,
|
|
439
440
|
date: void 0,
|
|
440
441
|
slotKey: void 0,
|
|
@@ -447,7 +448,7 @@ function gt(e, t) {
|
|
|
447
448
|
...e,
|
|
448
449
|
serviceId: void 0,
|
|
449
450
|
serviceIds: t,
|
|
450
|
-
operatorId: s ?
|
|
451
|
+
operatorId: s ? Q : void 0,
|
|
451
452
|
operatorIds: void 0,
|
|
452
453
|
date: void 0,
|
|
453
454
|
slotKey: void 0,
|
|
@@ -477,7 +478,7 @@ function ht(e, t) {
|
|
|
477
478
|
function ue(e) {
|
|
478
479
|
return e.specialtyIds && e.specialtyIds.length > 0 ? e.specialtyIds : e.specialtyId ? [e.specialtyId] : [];
|
|
479
480
|
}
|
|
480
|
-
function
|
|
481
|
+
function Oe(e) {
|
|
481
482
|
return e.serviceIds && e.serviceIds.length > 0 ? e.serviceIds : e.serviceId ? [e.serviceId] : [];
|
|
482
483
|
}
|
|
483
484
|
function Ee(e, t) {
|
|
@@ -495,18 +496,18 @@ function vt(e, t) {
|
|
|
495
496
|
slotKey: t
|
|
496
497
|
};
|
|
497
498
|
}
|
|
498
|
-
function
|
|
499
|
+
function Os(e, t) {
|
|
499
500
|
let s = e;
|
|
500
501
|
if (t.lockedOperatorId && s.operatorId !== t.lockedOperatorId && (s = { ...s, operatorId: t.lockedOperatorId }), (t.useSpecialties === void 0 ? t.specialties.length > 0 : t.useSpecialties) && t.specialties.length === 1 && s.specialtyId === void 0 && s.specialtyIds === void 0 && (s = { ...s, specialtyId: t.specialties[0].id }), t.autoSelectSingleService) {
|
|
501
502
|
const n = ue(s), o = n.length > 0 ? t.services.filter(
|
|
502
|
-
(
|
|
503
|
+
(r) => r.specialtyId && n.includes(r.specialtyId)
|
|
503
504
|
) : t.services;
|
|
504
|
-
o.length === 1 && s.serviceId === void 0 && s.serviceIds === void 0 && (s = { ...s, serviceId: o[0].id }, s.operatorId === void 0 && s.operatorIds === void 0 && (s = { ...s, operatorId:
|
|
505
|
+
o.length === 1 && s.serviceId === void 0 && s.serviceIds === void 0 && (s = { ...s, serviceId: o[0].id }, s.operatorId === void 0 && s.operatorIds === void 0 && (s = { ...s, operatorId: Q }));
|
|
505
506
|
}
|
|
506
507
|
return s;
|
|
507
508
|
}
|
|
508
509
|
function He(e) {
|
|
509
|
-
if (e.operatorId && e.operatorId !==
|
|
510
|
+
if (e.operatorId && e.operatorId !== Q)
|
|
510
511
|
return e.operatorId;
|
|
511
512
|
}
|
|
512
513
|
function Es(e) {
|
|
@@ -522,14 +523,14 @@ function Rs(e, t, s) {
|
|
|
522
523
|
const i = bt(e), n = new Set(i);
|
|
523
524
|
if (s)
|
|
524
525
|
return qe.filter(
|
|
525
|
-
(
|
|
526
|
+
(d) => s.includes(d) && n.has(d)
|
|
526
527
|
);
|
|
527
528
|
const o = [];
|
|
528
529
|
n.has("email") && o.push("email");
|
|
529
|
-
const
|
|
530
|
-
u &&
|
|
531
|
-
const
|
|
532
|
-
return qe.filter((
|
|
530
|
+
const r = Es(t), u = n.has("whatsapp");
|
|
531
|
+
u && r && o.push("whatsapp"), !u && n.has("sms") && o.push("sms");
|
|
532
|
+
const m = new Set(o);
|
|
533
|
+
return qe.filter((d) => m.has(d));
|
|
533
534
|
}
|
|
534
535
|
const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 300, Me = { state: "idle" }, Ye = ot(
|
|
535
536
|
({
|
|
@@ -539,42 +540,42 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
539
540
|
requireCodiceFiscale: i = !1,
|
|
540
541
|
requireDateOfBirth: n = !1,
|
|
541
542
|
requireInsuranceNumber: o = !1,
|
|
542
|
-
insuranceType:
|
|
543
|
+
insuranceType: r,
|
|
543
544
|
showNote: u = !1,
|
|
544
|
-
showReturningPatientFlag:
|
|
545
|
-
privacyPolicyUrl:
|
|
546
|
-
termsUrl:
|
|
547
|
-
validateCodiceFiscale:
|
|
548
|
-
validateInsuranceNumber:
|
|
549
|
-
submitting:
|
|
550
|
-
summarySlot:
|
|
545
|
+
showReturningPatientFlag: m = !1,
|
|
546
|
+
privacyPolicyUrl: d,
|
|
547
|
+
termsUrl: l,
|
|
548
|
+
validateCodiceFiscale: c,
|
|
549
|
+
validateInsuranceNumber: x,
|
|
550
|
+
submitting: S = !1,
|
|
551
|
+
summarySlot: h,
|
|
551
552
|
defaultPhoneCountry: N,
|
|
552
553
|
confirmationChannels: D,
|
|
553
554
|
defaultConfirmationChannels: M,
|
|
554
|
-
submitError:
|
|
555
|
+
submitError: k
|
|
555
556
|
}, b) => {
|
|
556
557
|
var we, re;
|
|
557
|
-
const { t:
|
|
558
|
-
(
|
|
558
|
+
const { t: p } = B(), I = rt(), [A, g] = q(Me), [y, _] = q(Me), [T, O] = q({}), E = H(
|
|
559
|
+
(v) => O((C) => ({ ...C, [v]: !0 })),
|
|
559
560
|
[]
|
|
560
|
-
),
|
|
561
|
+
), V = ie(null), L = ie(
|
|
561
562
|
null
|
|
562
563
|
);
|
|
563
|
-
|
|
564
|
+
U(
|
|
564
565
|
() => () => {
|
|
565
|
-
|
|
566
|
+
V.current && clearTimeout(V.current), L.current && clearTimeout(L.current);
|
|
566
567
|
},
|
|
567
568
|
[]
|
|
568
569
|
);
|
|
569
|
-
const P =
|
|
570
|
-
(
|
|
570
|
+
const P = H(
|
|
571
|
+
(v) => t({ ...e, ...v }),
|
|
571
572
|
[e, t]
|
|
572
|
-
),
|
|
573
|
+
), ee = w(
|
|
573
574
|
() => bt(D),
|
|
574
575
|
[D]
|
|
575
|
-
),
|
|
576
|
-
|
|
577
|
-
if (!
|
|
576
|
+
), G = ee.length >= 2, pe = ie(!1);
|
|
577
|
+
U(() => {
|
|
578
|
+
if (!G) {
|
|
578
579
|
e.confirmationChannels !== void 0 && P({ confirmationChannels: void 0 });
|
|
579
580
|
return;
|
|
580
581
|
}
|
|
@@ -582,90 +583,90 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
582
583
|
pe.current = !0;
|
|
583
584
|
return;
|
|
584
585
|
}
|
|
585
|
-
const
|
|
586
|
-
|
|
586
|
+
const v = Rs(
|
|
587
|
+
ee,
|
|
587
588
|
e.mobilePhone,
|
|
588
589
|
M
|
|
589
590
|
);
|
|
590
|
-
pe.current = !0, P({ confirmationChannels:
|
|
591
|
+
pe.current = !0, P({ confirmationChannels: v });
|
|
591
592
|
}, [
|
|
592
|
-
|
|
593
|
-
|
|
593
|
+
G,
|
|
594
|
+
ee,
|
|
594
595
|
e.mobilePhone,
|
|
595
596
|
M
|
|
596
597
|
]);
|
|
597
|
-
const
|
|
598
|
+
const te = w(
|
|
598
599
|
() => e.confirmationChannels ?? [],
|
|
599
600
|
[e.confirmationChannels]
|
|
600
|
-
), xe =
|
|
601
|
-
|
|
602
|
-
const
|
|
603
|
-
if (!i || !
|
|
601
|
+
), xe = G && te.length === 0;
|
|
602
|
+
U(() => {
|
|
603
|
+
const v = e.codiceFiscale;
|
|
604
|
+
if (!i || !c || !v) {
|
|
604
605
|
g(Me);
|
|
605
606
|
return;
|
|
606
607
|
}
|
|
607
|
-
if (!Vs.test(
|
|
608
|
+
if (!Vs.test(v)) {
|
|
608
609
|
g({
|
|
609
610
|
state: "invalid",
|
|
610
|
-
hint:
|
|
611
|
+
hint: p("booking.details.codiceFiscale.invalidFormat")
|
|
611
612
|
});
|
|
612
613
|
return;
|
|
613
614
|
}
|
|
614
|
-
g({ state: "pending" }),
|
|
615
|
-
|
|
615
|
+
g({ state: "pending" }), V.current && clearTimeout(V.current), V.current = setTimeout(() => {
|
|
616
|
+
c(v).then(
|
|
616
617
|
(C) => g(
|
|
617
618
|
C.valid ? { state: "valid" } : { state: "invalid", hint: C.hint }
|
|
618
619
|
)
|
|
619
620
|
).catch(
|
|
620
621
|
() => g({
|
|
621
622
|
state: "invalid",
|
|
622
|
-
hint:
|
|
623
|
+
hint: p("booking.details.codiceFiscale.unavailable")
|
|
623
624
|
})
|
|
624
625
|
);
|
|
625
626
|
}, nt);
|
|
626
|
-
}, [i,
|
|
627
|
-
const Y = o &&
|
|
628
|
-
|
|
629
|
-
const
|
|
630
|
-
if (!Y || !
|
|
627
|
+
}, [i, c, e.codiceFiscale, p]);
|
|
628
|
+
const Y = o && r === "public";
|
|
629
|
+
U(() => {
|
|
630
|
+
const v = e.insuranceNumber;
|
|
631
|
+
if (!Y || !x || !v) {
|
|
631
632
|
_(Me);
|
|
632
633
|
return;
|
|
633
634
|
}
|
|
634
|
-
_({ state: "pending" }),
|
|
635
|
-
|
|
635
|
+
_({ state: "pending" }), L.current && clearTimeout(L.current), L.current = setTimeout(() => {
|
|
636
|
+
x(v).then(
|
|
636
637
|
(C) => _(
|
|
637
638
|
C.valid ? { state: "valid" } : { state: "invalid", hint: C.hint }
|
|
638
639
|
)
|
|
639
640
|
).catch(
|
|
640
641
|
() => _({
|
|
641
642
|
state: "invalid",
|
|
642
|
-
hint:
|
|
643
|
+
hint: p("booking.details.insuranceNumber.unavailable")
|
|
643
644
|
})
|
|
644
645
|
);
|
|
645
646
|
}, nt);
|
|
646
|
-
}, [Y,
|
|
647
|
-
const
|
|
647
|
+
}, [Y, x, e.insuranceNumber, p]);
|
|
648
|
+
const oe = w(
|
|
648
649
|
() => !!(e.email && Ls.test(e.email)),
|
|
649
650
|
[e.email]
|
|
650
651
|
), me = w(
|
|
651
652
|
() => !!(e.mobilePhone && e.mobilePhone.length >= 6),
|
|
652
653
|
[e.mobilePhone]
|
|
653
654
|
), Se = w(() => {
|
|
654
|
-
var
|
|
655
|
-
return !(!((
|
|
655
|
+
var v, C;
|
|
656
|
+
return !(!((v = e.firstName) != null && v.trim()) || !((C = e.lastName) != null && C.trim()) || !oe || !me || i && A.state !== "valid" || n && !e.dateOfBirth || Y && y.state !== "valid");
|
|
656
657
|
}, [
|
|
657
658
|
e.firstName,
|
|
658
659
|
e.lastName,
|
|
659
|
-
|
|
660
|
+
oe,
|
|
660
661
|
me,
|
|
661
662
|
i,
|
|
662
|
-
|
|
663
|
+
A.state,
|
|
663
664
|
n,
|
|
664
665
|
e.dateOfBirth,
|
|
665
666
|
Y,
|
|
666
|
-
|
|
667
|
-
]), Ie = !!(e.privacyConsent && e.termsConsent), Re = !
|
|
668
|
-
if (
|
|
667
|
+
y.state
|
|
668
|
+
]), Ie = !!(e.privacyConsent && e.termsConsent), Re = !G || te.length > 0, J = Se && Ie && Re && !S, Ve = (v) => {
|
|
669
|
+
if (v.preventDefault(), O({
|
|
669
670
|
firstName: !0,
|
|
670
671
|
lastName: !0,
|
|
671
672
|
email: !0,
|
|
@@ -673,7 +674,7 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
673
674
|
codiceFiscale: !0,
|
|
674
675
|
dateOfBirth: !0,
|
|
675
676
|
insuranceNumber: !0
|
|
676
|
-
}), !
|
|
677
|
+
}), !J) return;
|
|
677
678
|
const C = {
|
|
678
679
|
firstName: e.firstName.trim(),
|
|
679
680
|
lastName: e.lastName.trim(),
|
|
@@ -689,15 +690,15 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
689
690
|
// Only include when the picker was visible; otherwise the single
|
|
690
691
|
// implicit channel is inferred backend-side from the practice
|
|
691
692
|
// config.
|
|
692
|
-
confirmationChannels:
|
|
693
|
+
confirmationChannels: G ? te : void 0
|
|
693
694
|
};
|
|
694
695
|
s(C);
|
|
695
|
-
}, Ne = (
|
|
696
|
-
const
|
|
697
|
-
return
|
|
696
|
+
}, Ne = (v, C) => {
|
|
697
|
+
const se = C && /^https?:\/\//i.test(C) ? C : void 0;
|
|
698
|
+
return se ? /* @__PURE__ */ a(
|
|
698
699
|
Pt,
|
|
699
700
|
{
|
|
700
|
-
i18nKey:
|
|
701
|
+
i18nKey: v,
|
|
701
702
|
components: {
|
|
702
703
|
// The `<Trans>` runtime injects link text from the i18n
|
|
703
704
|
// string. The anchor renders empty at static-analysis time,
|
|
@@ -709,7 +710,7 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
709
710
|
/* @__PURE__ */ a(
|
|
710
711
|
"a",
|
|
711
712
|
{
|
|
712
|
-
href:
|
|
713
|
+
href: se,
|
|
713
714
|
target: "_blank",
|
|
714
715
|
rel: "noopener noreferrer",
|
|
715
716
|
className: "ds:underline ds:text-[var(--primary)]"
|
|
@@ -718,49 +719,49 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
718
719
|
)
|
|
719
720
|
}
|
|
720
721
|
}
|
|
721
|
-
) :
|
|
722
|
+
) : p(v);
|
|
722
723
|
};
|
|
723
724
|
return /* @__PURE__ */ f(
|
|
724
725
|
"form",
|
|
725
726
|
{
|
|
726
727
|
ref: b,
|
|
727
|
-
id:
|
|
728
|
+
id: I,
|
|
728
729
|
noValidate: !0,
|
|
729
730
|
onSubmit: Ve,
|
|
730
731
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
|
|
731
732
|
children: [
|
|
732
|
-
|
|
733
|
+
h,
|
|
733
734
|
/* @__PURE__ */ f("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-sm)] ds:sm:grid-cols-2", children: [
|
|
734
735
|
/* @__PURE__ */ a(
|
|
735
|
-
|
|
736
|
+
W,
|
|
736
737
|
{
|
|
737
|
-
label:
|
|
738
|
+
label: p("booking.details.firstName.label"),
|
|
738
739
|
required: !0,
|
|
739
|
-
error:
|
|
740
|
+
error: T.firstName && !((we = e.firstName) != null && we.trim()) ? p("booking.details.firstName.required") : void 0,
|
|
740
741
|
children: /* @__PURE__ */ a(
|
|
741
742
|
Ce,
|
|
742
743
|
{
|
|
743
744
|
autoComplete: "given-name",
|
|
744
745
|
value: e.firstName ?? "",
|
|
745
|
-
onChange: (
|
|
746
|
-
onBlur: () =>
|
|
746
|
+
onChange: (v) => P({ firstName: v.target.value }),
|
|
747
|
+
onBlur: () => E("firstName")
|
|
747
748
|
}
|
|
748
749
|
)
|
|
749
750
|
}
|
|
750
751
|
),
|
|
751
752
|
/* @__PURE__ */ a(
|
|
752
|
-
|
|
753
|
+
W,
|
|
753
754
|
{
|
|
754
|
-
label:
|
|
755
|
+
label: p("booking.details.lastName.label"),
|
|
755
756
|
required: !0,
|
|
756
|
-
error:
|
|
757
|
+
error: T.lastName && !((re = e.lastName) != null && re.trim()) ? p("booking.details.lastName.required") : void 0,
|
|
757
758
|
children: /* @__PURE__ */ a(
|
|
758
759
|
Ce,
|
|
759
760
|
{
|
|
760
761
|
autoComplete: "family-name",
|
|
761
762
|
value: e.lastName ?? "",
|
|
762
|
-
onChange: (
|
|
763
|
-
onBlur: () =>
|
|
763
|
+
onChange: (v) => P({ lastName: v.target.value }),
|
|
764
|
+
onBlur: () => E("lastName")
|
|
764
765
|
}
|
|
765
766
|
)
|
|
766
767
|
}
|
|
@@ -768,34 +769,34 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
768
769
|
] }),
|
|
769
770
|
/* @__PURE__ */ f("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-sm)] ds:sm:grid-cols-2", children: [
|
|
770
771
|
/* @__PURE__ */ a(
|
|
771
|
-
|
|
772
|
+
W,
|
|
772
773
|
{
|
|
773
|
-
label:
|
|
774
|
+
label: p("booking.details.email.label"),
|
|
774
775
|
required: !0,
|
|
775
|
-
error:
|
|
776
|
+
error: T.email && !oe ? p("booking.details.email.invalid") : void 0,
|
|
776
777
|
children: /* @__PURE__ */ a(
|
|
777
778
|
Rt,
|
|
778
779
|
{
|
|
779
780
|
value: e.email ?? "",
|
|
780
|
-
onChange: (
|
|
781
|
-
onBlur: () =>
|
|
781
|
+
onChange: (v) => P({ email: v.target.value }),
|
|
782
|
+
onBlur: () => E("email")
|
|
782
783
|
}
|
|
783
784
|
)
|
|
784
785
|
}
|
|
785
786
|
),
|
|
786
787
|
/* @__PURE__ */ a(
|
|
787
|
-
|
|
788
|
+
W,
|
|
788
789
|
{
|
|
789
|
-
label:
|
|
790
|
+
label: p("booking.details.mobilePhone.label"),
|
|
790
791
|
required: !0,
|
|
791
|
-
error:
|
|
792
|
+
error: T.mobilePhone && !me ? p("booking.details.mobilePhone.invalid") : void 0,
|
|
792
793
|
children: /* @__PURE__ */ a(
|
|
793
794
|
Vt,
|
|
794
795
|
{
|
|
795
796
|
value: e.mobilePhone ?? "",
|
|
796
797
|
defaultCountry: N == null ? void 0 : N.toUpperCase(),
|
|
797
|
-
onChange: (
|
|
798
|
-
P({ mobilePhone:
|
|
798
|
+
onChange: (v) => {
|
|
799
|
+
P({ mobilePhone: v }), E("mobilePhone");
|
|
799
800
|
}
|
|
800
801
|
}
|
|
801
802
|
)
|
|
@@ -804,39 +805,39 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
804
805
|
] }),
|
|
805
806
|
i || n ? /* @__PURE__ */ f("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-sm)] ds:sm:grid-cols-2", children: [
|
|
806
807
|
i ? /* @__PURE__ */ a(
|
|
807
|
-
|
|
808
|
+
W,
|
|
808
809
|
{
|
|
809
|
-
label:
|
|
810
|
+
label: p("booking.details.codiceFiscale.label"),
|
|
810
811
|
required: !0,
|
|
811
|
-
description:
|
|
812
|
-
error:
|
|
812
|
+
description: A.state === "pending" ? p("booking.details.codiceFiscale.checking") : p("booking.details.codiceFiscale.helper"),
|
|
813
|
+
error: T.codiceFiscale && A.state === "invalid" ? A.hint ?? p("booking.details.codiceFiscale.invalid") : void 0,
|
|
813
814
|
children: /* @__PURE__ */ a(
|
|
814
815
|
Ce,
|
|
815
816
|
{
|
|
816
817
|
value: e.codiceFiscale ?? "",
|
|
817
818
|
maxLength: 16,
|
|
818
|
-
onChange: (
|
|
819
|
-
codiceFiscale:
|
|
819
|
+
onChange: (v) => P({
|
|
820
|
+
codiceFiscale: v.target.value.slice(0, 16).toUpperCase()
|
|
820
821
|
}),
|
|
821
|
-
onBlur: () =>
|
|
822
|
+
onBlur: () => E("codiceFiscale")
|
|
822
823
|
}
|
|
823
824
|
)
|
|
824
825
|
}
|
|
825
826
|
) : null,
|
|
826
827
|
n ? /* @__PURE__ */ a(
|
|
827
|
-
|
|
828
|
+
W,
|
|
828
829
|
{
|
|
829
|
-
label:
|
|
830
|
+
label: p("booking.details.dateOfBirth.label"),
|
|
830
831
|
required: !0,
|
|
831
|
-
error:
|
|
832
|
+
error: T.dateOfBirth && !e.dateOfBirth ? p("booking.details.dateOfBirth.required") : void 0,
|
|
832
833
|
children: /* @__PURE__ */ a(
|
|
833
834
|
Et,
|
|
834
835
|
{
|
|
835
836
|
value: e.dateOfBirth ? new Date(e.dateOfBirth) : void 0,
|
|
836
|
-
onChange: (
|
|
837
|
+
onChange: (v) => {
|
|
837
838
|
P({
|
|
838
|
-
dateOfBirth:
|
|
839
|
-
}),
|
|
839
|
+
dateOfBirth: v ? v.toISOString().slice(0, 10) : void 0
|
|
840
|
+
}), E("dateOfBirth");
|
|
840
841
|
}
|
|
841
842
|
}
|
|
842
843
|
)
|
|
@@ -844,27 +845,27 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
844
845
|
) : null
|
|
845
846
|
] }) : null,
|
|
846
847
|
Y ? /* @__PURE__ */ a(
|
|
847
|
-
|
|
848
|
+
W,
|
|
848
849
|
{
|
|
849
|
-
label:
|
|
850
|
+
label: p("booking.details.insuranceNumber.label"),
|
|
850
851
|
required: !0,
|
|
851
|
-
description:
|
|
852
|
-
error:
|
|
852
|
+
description: y.state === "pending" ? p("booking.details.insuranceNumber.checking") : void 0,
|
|
853
|
+
error: T.insuranceNumber && y.state === "invalid" ? y.hint ?? p("booking.details.insuranceNumber.invalid") : void 0,
|
|
853
854
|
children: /* @__PURE__ */ a(
|
|
854
855
|
Ce,
|
|
855
856
|
{
|
|
856
857
|
value: e.insuranceNumber ?? "",
|
|
857
|
-
onChange: (
|
|
858
|
-
onBlur: () =>
|
|
858
|
+
onChange: (v) => P({ insuranceNumber: v.target.value }),
|
|
859
|
+
onBlur: () => E("insuranceNumber")
|
|
859
860
|
}
|
|
860
861
|
)
|
|
861
862
|
}
|
|
862
863
|
) : null,
|
|
863
864
|
u ? /* @__PURE__ */ a(
|
|
864
|
-
|
|
865
|
+
W,
|
|
865
866
|
{
|
|
866
|
-
label:
|
|
867
|
-
description:
|
|
867
|
+
label: p("booking.details.note.label"),
|
|
868
|
+
description: p("booking.details.note.helper", {
|
|
868
869
|
max: it
|
|
869
870
|
}),
|
|
870
871
|
children: /* @__PURE__ */ a(
|
|
@@ -873,17 +874,17 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
873
874
|
value: e.note ?? "",
|
|
874
875
|
maxLength: it,
|
|
875
876
|
rows: 3,
|
|
876
|
-
onChange: (
|
|
877
|
+
onChange: (v) => P({ note: v.target.value })
|
|
877
878
|
}
|
|
878
879
|
)
|
|
879
880
|
}
|
|
880
881
|
) : null,
|
|
881
|
-
|
|
882
|
+
m ? /* @__PURE__ */ a(
|
|
882
883
|
Ke,
|
|
883
884
|
{
|
|
884
885
|
checked: !!e.returningPatient,
|
|
885
|
-
onCheckedChange: (
|
|
886
|
-
label:
|
|
886
|
+
onCheckedChange: (v) => P({ returningPatient: v === !0 }),
|
|
887
|
+
label: p("booking.details.returningPatient.label")
|
|
887
888
|
}
|
|
888
889
|
) : null,
|
|
889
890
|
/* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
@@ -891,11 +892,11 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
891
892
|
Ke,
|
|
892
893
|
{
|
|
893
894
|
checked: !!e.privacyConsent,
|
|
894
|
-
onCheckedChange: (
|
|
895
|
-
label: /* @__PURE__ */ f(
|
|
895
|
+
onCheckedChange: (v) => P({ privacyConsent: v === !0 }),
|
|
896
|
+
label: /* @__PURE__ */ f(X, { children: [
|
|
896
897
|
Ne(
|
|
897
898
|
"booking.details.consent.privacy.label",
|
|
898
|
-
|
|
899
|
+
d
|
|
899
900
|
),
|
|
900
901
|
/* @__PURE__ */ a(
|
|
901
902
|
"span",
|
|
@@ -912,11 +913,11 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
912
913
|
Ke,
|
|
913
914
|
{
|
|
914
915
|
checked: !!e.termsConsent,
|
|
915
|
-
onCheckedChange: (
|
|
916
|
-
label: /* @__PURE__ */ f(
|
|
916
|
+
onCheckedChange: (v) => P({ termsConsent: v === !0 }),
|
|
917
|
+
label: /* @__PURE__ */ f(X, { children: [
|
|
917
918
|
Ne(
|
|
918
919
|
"booking.details.consent.terms.label",
|
|
919
|
-
|
|
920
|
+
l
|
|
920
921
|
),
|
|
921
922
|
/* @__PURE__ */ a(
|
|
922
923
|
"span",
|
|
@@ -930,40 +931,40 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
930
931
|
}
|
|
931
932
|
)
|
|
932
933
|
] }),
|
|
933
|
-
|
|
934
|
+
G ? /* @__PURE__ */ a(
|
|
934
935
|
"div",
|
|
935
936
|
{
|
|
936
937
|
"data-component": "booking-confirmation-channels",
|
|
937
938
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
|
|
938
939
|
children: /* @__PURE__ */ a(
|
|
939
|
-
|
|
940
|
+
Ot,
|
|
940
941
|
{
|
|
941
|
-
label:
|
|
942
|
-
helperText:
|
|
943
|
-
value:
|
|
944
|
-
onChange: (
|
|
945
|
-
confirmationChannels:
|
|
942
|
+
label: p("booking.confirmation.heading"),
|
|
943
|
+
helperText: p("booking.confirmation.helper"),
|
|
944
|
+
value: te,
|
|
945
|
+
onChange: (v) => P({
|
|
946
|
+
confirmationChannels: v
|
|
946
947
|
}),
|
|
947
948
|
orientation: "vertical",
|
|
948
|
-
options:
|
|
949
|
-
value:
|
|
950
|
-
label:
|
|
949
|
+
options: ee.map((v) => ({
|
|
950
|
+
value: v,
|
|
951
|
+
label: p(`booking.confirmation.channel.${v}`)
|
|
951
952
|
})),
|
|
952
|
-
error: xe ?
|
|
953
|
+
error: xe ? p("booking.confirmation.atLeastOne") : void 0
|
|
953
954
|
}
|
|
954
955
|
)
|
|
955
956
|
}
|
|
956
957
|
) : null,
|
|
957
|
-
|
|
958
|
+
k ? /* @__PURE__ */ a(j, { variant: "error", children: /* @__PURE__ */ a(j.Description, { children: k }) }) : null,
|
|
958
959
|
/* @__PURE__ */ a(
|
|
959
|
-
|
|
960
|
+
ne,
|
|
960
961
|
{
|
|
961
962
|
intent: "primary",
|
|
962
963
|
size: "md",
|
|
963
964
|
type: "submit",
|
|
964
|
-
disabled: !
|
|
965
|
-
startIcon:
|
|
966
|
-
children:
|
|
965
|
+
disabled: !J,
|
|
966
|
+
startIcon: S ? /* @__PURE__ */ a(Ft, { variant: "pulse", size: "sm" }) : void 0,
|
|
967
|
+
children: p("booking.details.submit")
|
|
967
968
|
}
|
|
968
969
|
)
|
|
969
970
|
]
|
|
@@ -1030,7 +1031,7 @@ function Ks(e) {
|
|
|
1030
1031
|
const t = zs(e.label) ?? Zt;
|
|
1031
1032
|
return /* @__PURE__ */ a(t, { "aria-hidden": "true", className: "ds:size-5" });
|
|
1032
1033
|
}
|
|
1033
|
-
function
|
|
1034
|
+
function ae(e) {
|
|
1034
1035
|
return Te(e, "yyyy-MM-dd");
|
|
1035
1036
|
}
|
|
1036
1037
|
const js = [
|
|
@@ -1061,22 +1062,22 @@ function Hs({
|
|
|
1061
1062
|
locale: i,
|
|
1062
1063
|
loading: n
|
|
1063
1064
|
}) {
|
|
1064
|
-
const { t: o } =
|
|
1065
|
-
const
|
|
1066
|
-
for (let g =
|
|
1067
|
-
const
|
|
1068
|
-
|
|
1065
|
+
const { t: o } = B(), r = w(() => t ? ye($(t)) : e.length > 0 ? ye($(e[0])) : ye(/* @__PURE__ */ new Date()), [t, e]), [u, m] = q(r), [d, l] = q(null), c = w(() => {
|
|
1066
|
+
const k = ye(u), b = qt(u), p = k.getDay(), I = b.getDate(), A = [];
|
|
1067
|
+
for (let g = p; g > 0; g -= 1) {
|
|
1068
|
+
const y = new Date(k);
|
|
1069
|
+
y.setDate(k.getDate() - g), A.push(y);
|
|
1069
1070
|
}
|
|
1070
|
-
for (let g = 0; g <
|
|
1071
|
-
const
|
|
1072
|
-
|
|
1071
|
+
for (let g = 0; g < I; g += 1) {
|
|
1072
|
+
const y = new Date(k);
|
|
1073
|
+
y.setDate(k.getDate() + g), A.push(y);
|
|
1073
1074
|
}
|
|
1074
|
-
for (;
|
|
1075
|
-
const g =
|
|
1076
|
-
|
|
1075
|
+
for (; A.length < 42; ) {
|
|
1076
|
+
const g = A[A.length - 1], y = new Date(g);
|
|
1077
|
+
y.setDate(g.getDate() + 1), A.push(y);
|
|
1077
1078
|
}
|
|
1078
|
-
return
|
|
1079
|
-
}, [u]),
|
|
1079
|
+
return A;
|
|
1080
|
+
}, [u]), x = w(() => {
|
|
1080
1081
|
try {
|
|
1081
1082
|
return new Intl.DateTimeFormat(i, {
|
|
1082
1083
|
month: "long",
|
|
@@ -1085,58 +1086,58 @@ function Hs({
|
|
|
1085
1086
|
} catch {
|
|
1086
1087
|
return Te(u, "MMMM yyyy");
|
|
1087
1088
|
}
|
|
1088
|
-
}, [u, i]),
|
|
1089
|
-
const
|
|
1090
|
-
return Array.from({ length: 7 }, (b,
|
|
1091
|
-
const
|
|
1092
|
-
|
|
1089
|
+
}, [u, i]), S = w(() => {
|
|
1090
|
+
const k = new Date(2024, 0, 7);
|
|
1091
|
+
return Array.from({ length: 7 }, (b, p) => {
|
|
1092
|
+
const I = new Date(k);
|
|
1093
|
+
I.setDate(k.getDate() + p);
|
|
1093
1094
|
try {
|
|
1094
|
-
return new Intl.DateTimeFormat(i, { weekday: "short" }).format(
|
|
1095
|
+
return new Intl.DateTimeFormat(i, { weekday: "short" }).format(I);
|
|
1095
1096
|
} catch {
|
|
1096
|
-
return Te(
|
|
1097
|
+
return Te(I, "EEE");
|
|
1097
1098
|
}
|
|
1098
1099
|
});
|
|
1099
|
-
}, [i]),
|
|
1100
|
-
(
|
|
1101
|
-
[
|
|
1100
|
+
}, [i]), h = w(() => new Set(e), [e]), N = H(
|
|
1101
|
+
(k) => h.has(ae(k)),
|
|
1102
|
+
[h]
|
|
1102
1103
|
), D = w(() => {
|
|
1103
|
-
if (
|
|
1104
|
-
if (t) return
|
|
1105
|
-
const
|
|
1104
|
+
if (d) return d;
|
|
1105
|
+
if (t) return $(t);
|
|
1106
|
+
const k = c.find(
|
|
1106
1107
|
(b) => De(b, u) && N(b)
|
|
1107
1108
|
);
|
|
1108
|
-
return
|
|
1109
|
-
}, [
|
|
1110
|
-
(
|
|
1111
|
-
let
|
|
1112
|
-
switch (
|
|
1109
|
+
return k || (c.find((b) => De(b, u)) ?? null);
|
|
1110
|
+
}, [d, t, c, u, N]), M = H(
|
|
1111
|
+
(k, b) => {
|
|
1112
|
+
let p = null;
|
|
1113
|
+
switch (k.key) {
|
|
1113
1114
|
case "ArrowLeft":
|
|
1114
|
-
|
|
1115
|
+
p = new Date(b), p.setDate(b.getDate() - 1);
|
|
1115
1116
|
break;
|
|
1116
1117
|
case "ArrowRight":
|
|
1117
|
-
|
|
1118
|
+
p = new Date(b), p.setDate(b.getDate() + 1);
|
|
1118
1119
|
break;
|
|
1119
1120
|
case "ArrowUp":
|
|
1120
|
-
|
|
1121
|
+
p = new Date(b), p.setDate(b.getDate() - 7);
|
|
1121
1122
|
break;
|
|
1122
1123
|
case "ArrowDown":
|
|
1123
|
-
|
|
1124
|
+
p = new Date(b), p.setDate(b.getDate() + 7);
|
|
1124
1125
|
break;
|
|
1125
1126
|
case "Home":
|
|
1126
|
-
|
|
1127
|
+
p = new Date(b), p.setDate(b.getDate() - b.getDay());
|
|
1127
1128
|
break;
|
|
1128
1129
|
case "End":
|
|
1129
|
-
|
|
1130
|
+
p = new Date(b), p.setDate(b.getDate() + (6 - b.getDay()));
|
|
1130
1131
|
break;
|
|
1131
1132
|
case "Enter":
|
|
1132
1133
|
case " ": {
|
|
1133
|
-
|
|
1134
|
+
k.preventDefault(), N(b) && s(ae(b));
|
|
1134
1135
|
return;
|
|
1135
1136
|
}
|
|
1136
1137
|
default:
|
|
1137
1138
|
return;
|
|
1138
1139
|
}
|
|
1139
|
-
|
|
1140
|
+
p && (k.preventDefault(), De(p, u) || m(ye(p)), l(p));
|
|
1140
1141
|
},
|
|
1141
1142
|
[N, s, u]
|
|
1142
1143
|
);
|
|
@@ -1149,7 +1150,7 @@ function Hs({
|
|
|
1149
1150
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
1150
1151
|
children: [
|
|
1151
1152
|
/* @__PURE__ */ a(_e, { variant: "text", width: "40%" }),
|
|
1152
|
-
/* @__PURE__ */ a("div", { className: "ds:grid ds:grid-cols-7 ds:gap-[var(--spacing-2xs)]", children: Array.from({ length: 42 }, (
|
|
1153
|
+
/* @__PURE__ */ a("div", { className: "ds:grid ds:grid-cols-7 ds:gap-[var(--spacing-2xs)]", children: Array.from({ length: 42 }, (k, b) => /* @__PURE__ */ a(_e, { variant: "rounded", height: "2.5rem" }, `mg-skel-${b}`)) })
|
|
1153
1154
|
]
|
|
1154
1155
|
}
|
|
1155
1156
|
) : /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
@@ -1163,7 +1164,7 @@ function Hs({
|
|
|
1163
1164
|
intent: "ghost",
|
|
1164
1165
|
flipIconInRtl: !0,
|
|
1165
1166
|
onClick: () => {
|
|
1166
|
-
|
|
1167
|
+
m((k) => ws(k)), l(null);
|
|
1167
1168
|
}
|
|
1168
1169
|
}
|
|
1169
1170
|
),
|
|
@@ -1172,7 +1173,7 @@ function Hs({
|
|
|
1172
1173
|
{
|
|
1173
1174
|
className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)]",
|
|
1174
1175
|
"aria-live": "polite",
|
|
1175
|
-
children:
|
|
1176
|
+
children: x
|
|
1176
1177
|
}
|
|
1177
1178
|
),
|
|
1178
1179
|
/* @__PURE__ */ a(
|
|
@@ -1184,7 +1185,7 @@ function Hs({
|
|
|
1184
1185
|
intent: "ghost",
|
|
1185
1186
|
flipIconInRtl: !0,
|
|
1186
1187
|
onClick: () => {
|
|
1187
|
-
|
|
1188
|
+
m((k) => lt(k, 1)), l(null);
|
|
1188
1189
|
}
|
|
1189
1190
|
}
|
|
1190
1191
|
)
|
|
@@ -1201,30 +1202,30 @@ function Hs({
|
|
|
1201
1202
|
{
|
|
1202
1203
|
role: "row",
|
|
1203
1204
|
className: "ds:grid ds:grid-cols-7 ds:gap-[var(--spacing-2xs)]",
|
|
1204
|
-
children:
|
|
1205
|
+
children: S.map((k, b) => /* @__PURE__ */ a(
|
|
1205
1206
|
"div",
|
|
1206
1207
|
{
|
|
1207
1208
|
role: "columnheader",
|
|
1208
1209
|
className: "type-meta ds:text-center ds:text-[var(--muted-foreground)] ds:font-[var(--font-weight-medium)]",
|
|
1209
|
-
children:
|
|
1210
|
+
children: k
|
|
1210
1211
|
},
|
|
1211
1212
|
`wd-${b}`
|
|
1212
1213
|
))
|
|
1213
1214
|
}
|
|
1214
1215
|
),
|
|
1215
|
-
Array.from({ length: 6 }, (
|
|
1216
|
+
Array.from({ length: 6 }, (k, b) => /* @__PURE__ */ a(
|
|
1216
1217
|
"div",
|
|
1217
1218
|
{
|
|
1218
1219
|
role: "row",
|
|
1219
1220
|
className: "ds:grid ds:grid-cols-7 ds:gap-[var(--spacing-2xs)]",
|
|
1220
|
-
children:
|
|
1221
|
-
const
|
|
1221
|
+
children: c.slice(b * 7, b * 7 + 7).map((p, I) => {
|
|
1222
|
+
const A = b * 7 + I, g = De(p, u), y = g && N(p), _ = t ? st(p, $(t)) : !1, T = g ? _ ? "selected" : y ? "available" : "unavailable" : "outside", O = D ? st(D, p) : !1, E = (() => {
|
|
1222
1223
|
try {
|
|
1223
1224
|
return new Intl.DateTimeFormat(i, {
|
|
1224
1225
|
dateStyle: "full"
|
|
1225
|
-
}).format(
|
|
1226
|
+
}).format(p);
|
|
1226
1227
|
} catch {
|
|
1227
|
-
return Te(
|
|
1228
|
+
return Te(p, "PPP");
|
|
1228
1229
|
}
|
|
1229
1230
|
})();
|
|
1230
1231
|
return /* @__PURE__ */ a(
|
|
@@ -1232,19 +1233,19 @@ function Hs({
|
|
|
1232
1233
|
{
|
|
1233
1234
|
type: "button",
|
|
1234
1235
|
role: "gridcell",
|
|
1235
|
-
"aria-label":
|
|
1236
|
+
"aria-label": E,
|
|
1236
1237
|
"aria-selected": _ || void 0,
|
|
1237
|
-
"aria-disabled": !
|
|
1238
|
-
tabIndex:
|
|
1239
|
-
disabled: !
|
|
1238
|
+
"aria-disabled": !y || void 0,
|
|
1239
|
+
tabIndex: O ? 0 : -1,
|
|
1240
|
+
disabled: !y,
|
|
1240
1241
|
onClick: () => {
|
|
1241
|
-
|
|
1242
|
+
y && s(ae(p));
|
|
1242
1243
|
},
|
|
1243
|
-
onKeyDown: (
|
|
1244
|
-
className: qs({ state:
|
|
1245
|
-
children: /* @__PURE__ */ a("span", { "aria-hidden": "true", children:
|
|
1244
|
+
onKeyDown: (V) => M(V, p),
|
|
1245
|
+
className: qs({ state: T }),
|
|
1246
|
+
children: /* @__PURE__ */ a("span", { "aria-hidden": "true", children: p.getDate() })
|
|
1246
1247
|
},
|
|
1247
|
-
`mg-cell-${
|
|
1248
|
+
`mg-cell-${A}`
|
|
1248
1249
|
);
|
|
1249
1250
|
})
|
|
1250
1251
|
},
|
|
@@ -1286,52 +1287,52 @@ function Us({
|
|
|
1286
1287
|
selectedServiceId: t,
|
|
1287
1288
|
onSelect: s
|
|
1288
1289
|
}) {
|
|
1289
|
-
const { t: i } =
|
|
1290
|
+
const { t: i } = B(), n = rt(), [o, r] = q(() => {
|
|
1290
1291
|
if (t) {
|
|
1291
|
-
const
|
|
1292
|
-
if (
|
|
1292
|
+
const l = e.findIndex((c) => c.id === t);
|
|
1293
|
+
if (l >= 0) return l;
|
|
1293
1294
|
}
|
|
1294
1295
|
return 0;
|
|
1295
|
-
}), u =
|
|
1296
|
-
var
|
|
1297
|
-
(
|
|
1298
|
-
}, []),
|
|
1299
|
-
(
|
|
1300
|
-
const
|
|
1301
|
-
if (
|
|
1302
|
-
switch (
|
|
1296
|
+
}), u = ie(/* @__PURE__ */ new Map()), m = H((l) => {
|
|
1297
|
+
var c;
|
|
1298
|
+
(c = u.current.get(l)) == null || c.focus();
|
|
1299
|
+
}, []), d = H(
|
|
1300
|
+
(l, c, x) => {
|
|
1301
|
+
const S = e.length;
|
|
1302
|
+
if (S !== 0)
|
|
1303
|
+
switch (l.key) {
|
|
1303
1304
|
case "ArrowDown":
|
|
1304
1305
|
case "ArrowRight": {
|
|
1305
|
-
|
|
1306
|
-
const
|
|
1307
|
-
|
|
1306
|
+
l.preventDefault();
|
|
1307
|
+
const h = (c + 1) % S;
|
|
1308
|
+
r(h), m(h);
|
|
1308
1309
|
break;
|
|
1309
1310
|
}
|
|
1310
1311
|
case "ArrowUp":
|
|
1311
1312
|
case "ArrowLeft": {
|
|
1312
|
-
|
|
1313
|
-
const
|
|
1314
|
-
|
|
1313
|
+
l.preventDefault();
|
|
1314
|
+
const h = (c - 1 + S) % S;
|
|
1315
|
+
r(h), m(h);
|
|
1315
1316
|
break;
|
|
1316
1317
|
}
|
|
1317
1318
|
case "Home": {
|
|
1318
|
-
|
|
1319
|
+
l.preventDefault(), r(0), m(0);
|
|
1319
1320
|
break;
|
|
1320
1321
|
}
|
|
1321
1322
|
case "End": {
|
|
1322
|
-
|
|
1323
|
-
const
|
|
1324
|
-
|
|
1323
|
+
l.preventDefault();
|
|
1324
|
+
const h = S - 1;
|
|
1325
|
+
r(h), m(h);
|
|
1325
1326
|
break;
|
|
1326
1327
|
}
|
|
1327
1328
|
case "Enter":
|
|
1328
1329
|
case " ": {
|
|
1329
|
-
|
|
1330
|
+
l.preventDefault(), s(x);
|
|
1330
1331
|
break;
|
|
1331
1332
|
}
|
|
1332
1333
|
}
|
|
1333
1334
|
},
|
|
1334
|
-
[e.length,
|
|
1335
|
+
[e.length, m, s]
|
|
1335
1336
|
);
|
|
1336
1337
|
return e.length === 0 ? null : /* @__PURE__ */ a(
|
|
1337
1338
|
"div",
|
|
@@ -1340,27 +1341,27 @@ function Us({
|
|
|
1340
1341
|
"aria-label": i("booking.serviceListLabel"),
|
|
1341
1342
|
id: n,
|
|
1342
1343
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
1343
|
-
children: e.map((
|
|
1344
|
-
const
|
|
1345
|
-
label:
|
|
1346
|
-
duration:
|
|
1347
|
-
}), N = Ks(
|
|
1344
|
+
children: e.map((l, c) => {
|
|
1345
|
+
const x = t === l.id, S = o === c, h = i("booking.serviceCardLabel", {
|
|
1346
|
+
label: l.label,
|
|
1347
|
+
duration: l.durationMin
|
|
1348
|
+
}), N = Ks(l);
|
|
1348
1349
|
return /* @__PURE__ */ f(
|
|
1349
1350
|
"button",
|
|
1350
1351
|
{
|
|
1351
1352
|
ref: (D) => {
|
|
1352
|
-
D ? u.current.set(
|
|
1353
|
+
D ? u.current.set(c, D) : u.current.delete(c);
|
|
1353
1354
|
},
|
|
1354
1355
|
type: "button",
|
|
1355
1356
|
role: "radio",
|
|
1356
|
-
"aria-checked":
|
|
1357
|
-
"aria-label":
|
|
1358
|
-
tabIndex:
|
|
1359
|
-
onClick: () => s(
|
|
1360
|
-
onFocus: () =>
|
|
1361
|
-
onKeyDown: (D) =>
|
|
1357
|
+
"aria-checked": x,
|
|
1358
|
+
"aria-label": h,
|
|
1359
|
+
tabIndex: S ? 0 : -1,
|
|
1360
|
+
onClick: () => s(l.id),
|
|
1361
|
+
onFocus: () => r(c),
|
|
1362
|
+
onKeyDown: (D) => d(D, c, l.id),
|
|
1362
1363
|
className: Gs({
|
|
1363
|
-
state:
|
|
1364
|
+
state: x ? "selected" : "idle"
|
|
1364
1365
|
}),
|
|
1365
1366
|
children: [
|
|
1366
1367
|
/* @__PURE__ */ a(
|
|
@@ -1372,12 +1373,12 @@ function Us({
|
|
|
1372
1373
|
}
|
|
1373
1374
|
),
|
|
1374
1375
|
/* @__PURE__ */ f("span", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
|
|
1375
|
-
/* @__PURE__ */ a("span", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)]", children:
|
|
1376
|
-
/* @__PURE__ */ a("span", { className: "type-meta ds:text-[var(--muted-foreground)]", children: i("booking.serviceSummary", { minutes:
|
|
1376
|
+
/* @__PURE__ */ a("span", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)]", children: l.label }),
|
|
1377
|
+
/* @__PURE__ */ a("span", { className: "type-meta ds:text-[var(--muted-foreground)]", children: i("booking.serviceSummary", { minutes: l.durationMin }) })
|
|
1377
1378
|
] })
|
|
1378
1379
|
]
|
|
1379
1380
|
},
|
|
1380
|
-
|
|
1381
|
+
l.id
|
|
1381
1382
|
);
|
|
1382
1383
|
})
|
|
1383
1384
|
}
|
|
@@ -1426,37 +1427,37 @@ function Ws({
|
|
|
1426
1427
|
loading: n,
|
|
1427
1428
|
locale: o
|
|
1428
1429
|
}) {
|
|
1429
|
-
const { t:
|
|
1430
|
+
const { t: r } = B(), u = w(() => {
|
|
1430
1431
|
try {
|
|
1431
1432
|
return new Intl.DateTimeFormat(o, {
|
|
1432
1433
|
weekday: "long",
|
|
1433
1434
|
day: "numeric",
|
|
1434
1435
|
month: "long"
|
|
1435
|
-
}).format(
|
|
1436
|
+
}).format($(e));
|
|
1436
1437
|
} catch {
|
|
1437
1438
|
return e;
|
|
1438
1439
|
}
|
|
1439
|
-
}, [e, o]),
|
|
1440
|
-
const
|
|
1440
|
+
}, [e, o]), m = w(() => {
|
|
1441
|
+
const c = {
|
|
1441
1442
|
morning: [],
|
|
1442
1443
|
afternoon: [],
|
|
1443
1444
|
evening: []
|
|
1444
1445
|
};
|
|
1445
|
-
for (const
|
|
1446
|
-
|
|
1447
|
-
return
|
|
1448
|
-
}, [t]),
|
|
1446
|
+
for (const x of t)
|
|
1447
|
+
c[Js(x.time)].push(x);
|
|
1448
|
+
return c;
|
|
1449
|
+
}, [t]), d = t.filter((c) => c.available).length, l = ["morning", "afternoon", "evening"];
|
|
1449
1450
|
return n ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1450
1451
|
/* @__PURE__ */ a(_e, { variant: "text", width: "60%" }),
|
|
1451
|
-
[0, 1].map((
|
|
1452
|
+
[0, 1].map((c) => /* @__PURE__ */ a(
|
|
1452
1453
|
"div",
|
|
1453
1454
|
{
|
|
1454
1455
|
className: "ds:grid ds:grid-cols-3 ds:gap-[var(--spacing-xs)]",
|
|
1455
|
-
children: [0, 1, 2].map((
|
|
1456
|
+
children: [0, 1, 2].map((x) => /* @__PURE__ */ a(_e, { variant: "rounded", height: "44px" }, x))
|
|
1456
1457
|
},
|
|
1457
|
-
|
|
1458
|
+
c
|
|
1458
1459
|
))
|
|
1459
|
-
] }) :
|
|
1460
|
+
] }) : d === 0 ? /* @__PURE__ */ a(dt, { variant: "no-results", title: r("booking.noSlotsForDate") }) : /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
1460
1461
|
/* @__PURE__ */ f("div", { className: "ds:flex ds:items-baseline ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
1461
1462
|
/* @__PURE__ */ f("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
1462
1463
|
/* @__PURE__ */ a(
|
|
@@ -1468,51 +1469,51 @@ function Ws({
|
|
|
1468
1469
|
),
|
|
1469
1470
|
/* @__PURE__ */ a("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: u })
|
|
1470
1471
|
] }),
|
|
1471
|
-
/* @__PURE__ */ a("span", { className: "type-meta ds:text-[var(--muted-foreground)]", children:
|
|
1472
|
+
/* @__PURE__ */ a("span", { className: "type-meta ds:text-[var(--muted-foreground)]", children: r("booking.slotsAvailable", { count: d }) })
|
|
1472
1473
|
] }),
|
|
1473
|
-
|
|
1474
|
-
const
|
|
1475
|
-
if (
|
|
1476
|
-
const
|
|
1474
|
+
l.map((c) => {
|
|
1475
|
+
const x = m[c];
|
|
1476
|
+
if (x.length === 0) return null;
|
|
1477
|
+
const S = Zs[c];
|
|
1477
1478
|
return /* @__PURE__ */ f(
|
|
1478
1479
|
"div",
|
|
1479
1480
|
{
|
|
1480
1481
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
|
|
1481
1482
|
children: [
|
|
1482
1483
|
/* @__PURE__ */ f("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] ds:text-[color:var(--muted-foreground)]", children: [
|
|
1483
|
-
/* @__PURE__ */ a(
|
|
1484
|
-
/* @__PURE__ */ a("span", { className: "type-meta ds:font-[var(--font-weight-semibold)] ds:uppercase", children:
|
|
1484
|
+
/* @__PURE__ */ a(S, { "aria-hidden": "true", className: "ds:size-3.5" }),
|
|
1485
|
+
/* @__PURE__ */ a("span", { className: "type-meta ds:font-[var(--font-weight-semibold)] ds:uppercase", children: r(`booking.timeOfDay.${c}`) })
|
|
1485
1486
|
] }),
|
|
1486
1487
|
/* @__PURE__ */ a(
|
|
1487
1488
|
"div",
|
|
1488
1489
|
{
|
|
1489
1490
|
role: "group",
|
|
1490
|
-
"aria-label":
|
|
1491
|
+
"aria-label": r(`booking.timeOfDay.${c}`),
|
|
1491
1492
|
className: "ds:grid ds:grid-cols-3 ds:gap-[var(--spacing-xs)] ds:sm:grid-cols-4",
|
|
1492
|
-
children:
|
|
1493
|
-
const N =
|
|
1493
|
+
children: x.map((h) => {
|
|
1494
|
+
const N = h.key === s, D = h.available ? N ? "selected" : "idle" : "unavailable";
|
|
1494
1495
|
return /* @__PURE__ */ a(
|
|
1495
1496
|
"button",
|
|
1496
1497
|
{
|
|
1497
1498
|
type: "button",
|
|
1498
|
-
"data-slot-id":
|
|
1499
|
-
disabled: !
|
|
1499
|
+
"data-slot-id": h.key,
|
|
1500
|
+
disabled: !h.available,
|
|
1500
1501
|
"aria-pressed": N,
|
|
1501
|
-
"aria-label":
|
|
1502
|
-
time:
|
|
1502
|
+
"aria-label": r("booking.slotAvailableLabel", {
|
|
1503
|
+
time: h.time
|
|
1503
1504
|
}),
|
|
1504
|
-
onClick: () =>
|
|
1505
|
+
onClick: () => h.available && i(h),
|
|
1505
1506
|
className: Ys({ state: D }),
|
|
1506
|
-
children:
|
|
1507
|
+
children: h.time
|
|
1507
1508
|
},
|
|
1508
|
-
|
|
1509
|
+
h.key
|
|
1509
1510
|
);
|
|
1510
1511
|
})
|
|
1511
1512
|
}
|
|
1512
1513
|
)
|
|
1513
1514
|
]
|
|
1514
1515
|
},
|
|
1515
|
-
|
|
1516
|
+
c
|
|
1516
1517
|
);
|
|
1517
1518
|
})
|
|
1518
1519
|
] });
|
|
@@ -1525,82 +1526,84 @@ function Xs({
|
|
|
1525
1526
|
onChange: i,
|
|
1526
1527
|
onDateSelect: n,
|
|
1527
1528
|
onWindowChange: o,
|
|
1528
|
-
loadingDates:
|
|
1529
|
+
loadingDates: r,
|
|
1529
1530
|
loadingSlots: u,
|
|
1530
|
-
locale:
|
|
1531
|
+
locale: m,
|
|
1532
|
+
agentIdBase: d
|
|
1531
1533
|
}) {
|
|
1532
|
-
const
|
|
1534
|
+
const l = w(() => le(/* @__PURE__ */ new Date()), []), [c, x] = q(() => {
|
|
1533
1535
|
if (s.date) {
|
|
1534
|
-
const
|
|
1535
|
-
if (!ce(
|
|
1536
|
+
const y = le($(s.date));
|
|
1537
|
+
if (!ce(l, y)) return y;
|
|
1536
1538
|
}
|
|
1537
1539
|
if (e.length > 0) {
|
|
1538
|
-
const
|
|
1539
|
-
if (ce(
|
|
1540
|
+
const y = le($(e[0]));
|
|
1541
|
+
if (ce(y, l)) return y;
|
|
1540
1542
|
}
|
|
1541
|
-
return
|
|
1542
|
-
}),
|
|
1543
|
+
return l;
|
|
1544
|
+
}), S = w(
|
|
1543
1545
|
() => je(c, Ae - 1),
|
|
1544
1546
|
[c]
|
|
1545
|
-
),
|
|
1546
|
-
const
|
|
1547
|
-
id:
|
|
1547
|
+
), h = w(() => Array.from({ length: Ae }, (y, _) => {
|
|
1548
|
+
const T = je(c, _), O = ae(T), V = (t[O] ?? []).map((L) => ({
|
|
1549
|
+
id: L.key,
|
|
1548
1550
|
// SlotGrid formats `start` as a time via Intl.DateTimeFormat —
|
|
1549
1551
|
// compose a full ISO from the column's date + the slot's HH:mm
|
|
1550
1552
|
// so the locale-formatter has a real timestamp to work with.
|
|
1551
|
-
start: `${
|
|
1552
|
-
available:
|
|
1553
|
+
start: `${O}T${L.time}:00`,
|
|
1554
|
+
available: L.available
|
|
1553
1555
|
}));
|
|
1554
|
-
return { date:
|
|
1555
|
-
}), [c, t]),
|
|
1556
|
-
|
|
1557
|
-
const
|
|
1558
|
-
return ce(
|
|
1556
|
+
return { date: O, slots: V };
|
|
1557
|
+
}), [c, t]), N = ce(c, l), D = !0, M = H(() => {
|
|
1558
|
+
x((y) => {
|
|
1559
|
+
const _ = Ht(y, Ae);
|
|
1560
|
+
return ce(l, _) ? l : _;
|
|
1559
1561
|
});
|
|
1560
|
-
}, [
|
|
1561
|
-
|
|
1562
|
+
}, [l]), k = H(() => {
|
|
1563
|
+
x((y) => je(y, Ae));
|
|
1562
1564
|
}, []);
|
|
1563
|
-
|
|
1565
|
+
U(() => {
|
|
1564
1566
|
if (e.length === 0) return;
|
|
1565
|
-
const
|
|
1566
|
-
!ce(
|
|
1567
|
-
const
|
|
1568
|
-
return !ce(
|
|
1569
|
-
}) ||
|
|
1570
|
-
}, [e]),
|
|
1571
|
-
o == null || o(
|
|
1572
|
-
}, [c,
|
|
1573
|
-
const
|
|
1574
|
-
(
|
|
1575
|
-
const
|
|
1567
|
+
const y = le($(e[0]));
|
|
1568
|
+
!ce(y, l) || e.some((T) => {
|
|
1569
|
+
const O = le($(T));
|
|
1570
|
+
return !ce(O, S) && !jt(O, c);
|
|
1571
|
+
}) || x(y);
|
|
1572
|
+
}, [e]), U(() => {
|
|
1573
|
+
o == null || o(ae(c), ae(S));
|
|
1574
|
+
}, [c, S, o]);
|
|
1575
|
+
const b = H(
|
|
1576
|
+
(y, _) => {
|
|
1577
|
+
const T = typeof _.date == "string" ? _.date : ae(_.date);
|
|
1576
1578
|
i({
|
|
1577
|
-
...vt(Ee(s,
|
|
1578
|
-
}), n == null || n(
|
|
1579
|
+
...vt(Ee(s, T), y.id)
|
|
1580
|
+
}), n == null || n(T);
|
|
1579
1581
|
},
|
|
1580
1582
|
[i, n, s]
|
|
1581
|
-
),
|
|
1583
|
+
), p = r || u ? "loading" : "default", I = h.some((y) => y.slots.length > 0), A = e[0];
|
|
1582
1584
|
return /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1583
|
-
!
|
|
1585
|
+
!I && !!A ? /* @__PURE__ */ a(
|
|
1584
1586
|
Je,
|
|
1585
1587
|
{
|
|
1586
|
-
nextAvailableDate:
|
|
1587
|
-
onJump: () =>
|
|
1588
|
-
locale:
|
|
1588
|
+
nextAvailableDate: A,
|
|
1589
|
+
onJump: () => x(le($(A))),
|
|
1590
|
+
locale: m
|
|
1589
1591
|
}
|
|
1590
1592
|
) : null,
|
|
1591
1593
|
/* @__PURE__ */ a(
|
|
1592
1594
|
Kt,
|
|
1593
1595
|
{
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
+
id: d ? `${d}-slots` : void 0,
|
|
1597
|
+
days: h,
|
|
1598
|
+
state: p,
|
|
1596
1599
|
selectedSlotId: s.slotKey,
|
|
1597
1600
|
maxInitialSlotsPerDay: 6,
|
|
1598
|
-
locale:
|
|
1599
|
-
hasPrevious:
|
|
1600
|
-
hasNext:
|
|
1601
|
-
onSlotSelect:
|
|
1602
|
-
onPreviousDays:
|
|
1603
|
-
onNextDays:
|
|
1601
|
+
locale: m,
|
|
1602
|
+
hasPrevious: N,
|
|
1603
|
+
hasNext: D,
|
|
1604
|
+
onSlotSelect: b,
|
|
1605
|
+
onPreviousDays: M,
|
|
1606
|
+
onNextDays: k
|
|
1604
1607
|
}
|
|
1605
1608
|
)
|
|
1606
1609
|
] });
|
|
@@ -1612,12 +1615,13 @@ function yt(e) {
|
|
|
1612
1615
|
onChange: i,
|
|
1613
1616
|
onDateSelect: n,
|
|
1614
1617
|
onWindowChange: o,
|
|
1615
|
-
loadingDates:
|
|
1618
|
+
loadingDates: r,
|
|
1616
1619
|
loadingSlots: u,
|
|
1617
|
-
locale:
|
|
1618
|
-
datePickerStyle:
|
|
1620
|
+
locale: m,
|
|
1621
|
+
datePickerStyle: d,
|
|
1622
|
+
agentIdBase: l
|
|
1619
1623
|
} = e;
|
|
1620
|
-
return
|
|
1624
|
+
return d === "four-day-grid" ? /* @__PURE__ */ a(
|
|
1621
1625
|
Xs,
|
|
1622
1626
|
{
|
|
1623
1627
|
availableDates: t.availableDates,
|
|
@@ -1626,9 +1630,10 @@ function yt(e) {
|
|
|
1626
1630
|
onChange: i,
|
|
1627
1631
|
onDateSelect: n,
|
|
1628
1632
|
onWindowChange: o,
|
|
1629
|
-
loadingDates:
|
|
1633
|
+
loadingDates: r,
|
|
1630
1634
|
loadingSlots: u,
|
|
1631
|
-
locale:
|
|
1635
|
+
locale: m,
|
|
1636
|
+
agentIdBase: l
|
|
1632
1637
|
}
|
|
1633
1638
|
) : /* @__PURE__ */ a(
|
|
1634
1639
|
Hs,
|
|
@@ -1638,14 +1643,14 @@ function yt(e) {
|
|
|
1638
1643
|
onSelectDate: (c) => {
|
|
1639
1644
|
i(Ee(s, c)), n == null || n(c);
|
|
1640
1645
|
},
|
|
1641
|
-
locale:
|
|
1642
|
-
loading:
|
|
1646
|
+
locale: m,
|
|
1647
|
+
loading: r ?? u
|
|
1643
1648
|
}
|
|
1644
1649
|
);
|
|
1645
1650
|
}
|
|
1646
1651
|
function kt(e) {
|
|
1647
|
-
const { inputs: t, value: s, onChange: i, loadingSlots: n, locale: o, datePickerStyle:
|
|
1648
|
-
return
|
|
1652
|
+
const { inputs: t, value: s, onChange: i, loadingSlots: n, locale: o, datePickerStyle: r } = e;
|
|
1653
|
+
return r === "four-day-grid" || !s.date ? null : /* @__PURE__ */ a(
|
|
1649
1654
|
Ws,
|
|
1650
1655
|
{
|
|
1651
1656
|
date: s.date,
|
|
@@ -1658,14 +1663,14 @@ function kt(e) {
|
|
|
1658
1663
|
);
|
|
1659
1664
|
}
|
|
1660
1665
|
function xt({ value: e, onChange: t }) {
|
|
1661
|
-
const { t: s } =
|
|
1666
|
+
const { t: s } = B(), i = [
|
|
1662
1667
|
{ value: "private", label: s("booking.insurance.private") },
|
|
1663
1668
|
{ value: "public", label: s("booking.insurance.public") }
|
|
1664
1669
|
];
|
|
1665
1670
|
return /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1666
1671
|
/* @__PURE__ */ a("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: s("booking.insurance.heading") }),
|
|
1667
1672
|
/* @__PURE__ */ a(
|
|
1668
|
-
|
|
1673
|
+
Be,
|
|
1669
1674
|
{
|
|
1670
1675
|
options: i,
|
|
1671
1676
|
value: e ?? "",
|
|
@@ -1686,46 +1691,46 @@ function St({
|
|
|
1686
1691
|
onChangeIds: n,
|
|
1687
1692
|
pickerStyle: o = "select"
|
|
1688
1693
|
}) {
|
|
1689
|
-
const { t:
|
|
1690
|
-
value:
|
|
1691
|
-
label:
|
|
1692
|
-
})),
|
|
1694
|
+
const { t: r } = B(), u = e.map((d) => ({
|
|
1695
|
+
value: d.id,
|
|
1696
|
+
label: d.label
|
|
1697
|
+
})), m = /* @__PURE__ */ a("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: r("booking.specialty.heading") });
|
|
1693
1698
|
return o === "multi-select" && n ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1694
|
-
|
|
1699
|
+
m,
|
|
1695
1700
|
/* @__PURE__ */ a(
|
|
1696
1701
|
Ue,
|
|
1697
1702
|
{
|
|
1698
1703
|
options: u,
|
|
1699
1704
|
value: s ?? [],
|
|
1700
1705
|
onChange: n,
|
|
1701
|
-
placeholder:
|
|
1702
|
-
"aria-label":
|
|
1706
|
+
placeholder: r("booking.specialty.placeholder"),
|
|
1707
|
+
"aria-label": r("booking.specialty.heading"),
|
|
1703
1708
|
allowClear: !0
|
|
1704
1709
|
}
|
|
1705
1710
|
)
|
|
1706
1711
|
] }) : o === "combobox" ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1707
|
-
|
|
1712
|
+
m,
|
|
1708
1713
|
/* @__PURE__ */ a(
|
|
1709
1714
|
Ge,
|
|
1710
1715
|
{
|
|
1711
1716
|
options: u,
|
|
1712
1717
|
value: t ?? "",
|
|
1713
|
-
onValueChange: (
|
|
1714
|
-
placeholder:
|
|
1715
|
-
"aria-label":
|
|
1718
|
+
onValueChange: (d) => i(d === "" ? "" : d),
|
|
1719
|
+
placeholder: r("booking.specialty.placeholder"),
|
|
1720
|
+
"aria-label": r("booking.specialty.heading"),
|
|
1716
1721
|
clearable: !0
|
|
1717
1722
|
}
|
|
1718
1723
|
)
|
|
1719
1724
|
] }) : /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1720
|
-
|
|
1725
|
+
m,
|
|
1721
1726
|
/* @__PURE__ */ a(
|
|
1722
|
-
|
|
1727
|
+
Be,
|
|
1723
1728
|
{
|
|
1724
1729
|
options: u,
|
|
1725
1730
|
value: t ?? "",
|
|
1726
|
-
onValueChange: (
|
|
1727
|
-
placeholder:
|
|
1728
|
-
"aria-label":
|
|
1731
|
+
onValueChange: (d) => i(d),
|
|
1732
|
+
placeholder: r("booking.specialty.placeholder"),
|
|
1733
|
+
"aria-label": r("booking.specialty.heading")
|
|
1729
1734
|
}
|
|
1730
1735
|
)
|
|
1731
1736
|
] });
|
|
@@ -1737,20 +1742,20 @@ function It({
|
|
|
1737
1742
|
onChange: i,
|
|
1738
1743
|
onChangeIds: n,
|
|
1739
1744
|
pickerStyle: o,
|
|
1740
|
-
compact:
|
|
1745
|
+
compact: r
|
|
1741
1746
|
}) {
|
|
1742
|
-
const { t: u } =
|
|
1743
|
-
value:
|
|
1744
|
-
label: `${
|
|
1745
|
-
minutes:
|
|
1747
|
+
const { t: u } = B(), m = o ?? (r ? "select" : "cards"), d = e.map((c) => ({
|
|
1748
|
+
value: c.id,
|
|
1749
|
+
label: `${c.label} · ${u("booking.serviceSummary", {
|
|
1750
|
+
minutes: c.durationMin
|
|
1746
1751
|
})}`
|
|
1747
|
-
})),
|
|
1748
|
-
return
|
|
1749
|
-
|
|
1752
|
+
})), l = /* @__PURE__ */ a("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: u("booking.service.heading") });
|
|
1753
|
+
return m === "multi-select" && n ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1754
|
+
l,
|
|
1750
1755
|
/* @__PURE__ */ a(
|
|
1751
1756
|
Ue,
|
|
1752
1757
|
{
|
|
1753
|
-
options:
|
|
1758
|
+
options: d,
|
|
1754
1759
|
value: s ?? [],
|
|
1755
1760
|
onChange: n,
|
|
1756
1761
|
placeholder: u("booking.service.placeholder"),
|
|
@@ -1758,33 +1763,33 @@ function It({
|
|
|
1758
1763
|
allowClear: !0
|
|
1759
1764
|
}
|
|
1760
1765
|
)
|
|
1761
|
-
] }) :
|
|
1762
|
-
|
|
1766
|
+
] }) : m === "combobox" ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1767
|
+
l,
|
|
1763
1768
|
/* @__PURE__ */ a(
|
|
1764
1769
|
Ge,
|
|
1765
1770
|
{
|
|
1766
|
-
options:
|
|
1771
|
+
options: d,
|
|
1767
1772
|
value: t ?? "",
|
|
1768
|
-
onValueChange: (
|
|
1773
|
+
onValueChange: (c) => i(c === "" ? "" : c),
|
|
1769
1774
|
placeholder: u("booking.service.placeholder"),
|
|
1770
1775
|
"aria-label": u("booking.service.heading"),
|
|
1771
1776
|
clearable: !0
|
|
1772
1777
|
}
|
|
1773
1778
|
)
|
|
1774
|
-
] }) :
|
|
1775
|
-
|
|
1779
|
+
] }) : m === "select" ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1780
|
+
l,
|
|
1776
1781
|
/* @__PURE__ */ a(
|
|
1777
|
-
|
|
1782
|
+
Be,
|
|
1778
1783
|
{
|
|
1779
|
-
options:
|
|
1784
|
+
options: d,
|
|
1780
1785
|
value: t ?? "",
|
|
1781
|
-
onValueChange: (
|
|
1786
|
+
onValueChange: (c) => i(c),
|
|
1782
1787
|
placeholder: u("booking.service.placeholder"),
|
|
1783
1788
|
"aria-label": u("booking.service.heading")
|
|
1784
1789
|
}
|
|
1785
1790
|
)
|
|
1786
1791
|
] }) : /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1787
|
-
|
|
1792
|
+
l,
|
|
1788
1793
|
/* @__PURE__ */ a(
|
|
1789
1794
|
Us,
|
|
1790
1795
|
{
|
|
@@ -1803,54 +1808,54 @@ function Nt({
|
|
|
1803
1808
|
onChangeIds: n,
|
|
1804
1809
|
pickerStyle: o = "select"
|
|
1805
1810
|
}) {
|
|
1806
|
-
const { t:
|
|
1811
|
+
const { t: r } = B(), u = /* @__PURE__ */ a("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: r("booking.operator.heading") });
|
|
1807
1812
|
if (o === "multi-select" && n) {
|
|
1808
|
-
const
|
|
1809
|
-
value:
|
|
1810
|
-
label:
|
|
1813
|
+
const d = e.map((l) => ({
|
|
1814
|
+
value: l.id,
|
|
1815
|
+
label: l.name
|
|
1811
1816
|
}));
|
|
1812
1817
|
return /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1813
1818
|
u,
|
|
1814
1819
|
/* @__PURE__ */ a(
|
|
1815
1820
|
Ue,
|
|
1816
1821
|
{
|
|
1817
|
-
options:
|
|
1822
|
+
options: d,
|
|
1818
1823
|
value: s ?? [],
|
|
1819
1824
|
onChange: n,
|
|
1820
|
-
placeholder:
|
|
1821
|
-
"aria-label":
|
|
1825
|
+
placeholder: r("booking.operator.placeholder"),
|
|
1826
|
+
"aria-label": r("booking.operator.heading"),
|
|
1822
1827
|
allowClear: !0
|
|
1823
1828
|
}
|
|
1824
1829
|
)
|
|
1825
1830
|
] });
|
|
1826
1831
|
}
|
|
1827
|
-
const
|
|
1828
|
-
{ value:
|
|
1829
|
-
...e.map((
|
|
1832
|
+
const m = [
|
|
1833
|
+
{ value: Q, label: r("booking.operator.all") },
|
|
1834
|
+
...e.map((d) => ({ value: d.id, label: d.name }))
|
|
1830
1835
|
];
|
|
1831
1836
|
return o === "combobox" ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1832
1837
|
u,
|
|
1833
1838
|
/* @__PURE__ */ a(
|
|
1834
1839
|
Ge,
|
|
1835
1840
|
{
|
|
1836
|
-
options:
|
|
1837
|
-
value: t ??
|
|
1838
|
-
onValueChange: (
|
|
1839
|
-
placeholder:
|
|
1840
|
-
"aria-label":
|
|
1841
|
+
options: m,
|
|
1842
|
+
value: t ?? Q,
|
|
1843
|
+
onValueChange: (d) => i(d === "" ? Q : d),
|
|
1844
|
+
placeholder: r("booking.operator.placeholder"),
|
|
1845
|
+
"aria-label": r("booking.operator.heading"),
|
|
1841
1846
|
clearable: !0
|
|
1842
1847
|
}
|
|
1843
1848
|
)
|
|
1844
1849
|
] }) : /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1845
1850
|
u,
|
|
1846
1851
|
/* @__PURE__ */ a(
|
|
1847
|
-
|
|
1852
|
+
Be,
|
|
1848
1853
|
{
|
|
1849
|
-
options:
|
|
1850
|
-
value: t ??
|
|
1851
|
-
onValueChange: (
|
|
1852
|
-
placeholder:
|
|
1853
|
-
"aria-label":
|
|
1854
|
+
options: m,
|
|
1855
|
+
value: t ?? Q,
|
|
1856
|
+
onValueChange: (d) => i(d),
|
|
1857
|
+
placeholder: r("booking.operator.placeholder"),
|
|
1858
|
+
"aria-label": r("booking.operator.heading")
|
|
1854
1859
|
}
|
|
1855
1860
|
)
|
|
1856
1861
|
] });
|
|
@@ -1858,10 +1863,10 @@ function Nt({
|
|
|
1858
1863
|
function wt({
|
|
1859
1864
|
customSlot: e
|
|
1860
1865
|
}) {
|
|
1861
|
-
const { t } =
|
|
1862
|
-
return e ? /* @__PURE__ */ a(
|
|
1863
|
-
/* @__PURE__ */ a(
|
|
1864
|
-
/* @__PURE__ */ a(
|
|
1866
|
+
const { t } = B();
|
|
1867
|
+
return e ? /* @__PURE__ */ a(X, { children: e }) : /* @__PURE__ */ f(j, { variant: "warning", children: [
|
|
1868
|
+
/* @__PURE__ */ a(j.Title, { as: "h4", children: t("booking.onboardingIncomplete.title") }),
|
|
1869
|
+
/* @__PURE__ */ a(j.Description, { children: t("booking.onboardingIncomplete.description") })
|
|
1865
1870
|
] });
|
|
1866
1871
|
}
|
|
1867
1872
|
function Je({
|
|
@@ -1869,18 +1874,18 @@ function Je({
|
|
|
1869
1874
|
onJump: t,
|
|
1870
1875
|
locale: s
|
|
1871
1876
|
}) {
|
|
1872
|
-
const { t: i } =
|
|
1877
|
+
const { t: i } = B(), n = w(() => {
|
|
1873
1878
|
try {
|
|
1874
1879
|
return new Intl.DateTimeFormat(s, { dateStyle: "long" }).format(
|
|
1875
|
-
|
|
1880
|
+
$(e)
|
|
1876
1881
|
);
|
|
1877
1882
|
} catch {
|
|
1878
1883
|
return e;
|
|
1879
1884
|
}
|
|
1880
1885
|
}, [e, s]);
|
|
1881
|
-
return /* @__PURE__ */ f(
|
|
1882
|
-
/* @__PURE__ */ a(
|
|
1883
|
-
/* @__PURE__ */ a(
|
|
1886
|
+
return /* @__PURE__ */ f(j, { variant: "info", children: [
|
|
1887
|
+
/* @__PURE__ */ a(j.Description, { children: i("booking.nextAvailable.description", { date: n }) }),
|
|
1888
|
+
/* @__PURE__ */ a(j.Action, { children: /* @__PURE__ */ a(ne, { intent: "secondary", size: "sm", onClick: t, children: i("booking.nextAvailable.cta") }) })
|
|
1884
1889
|
] });
|
|
1885
1890
|
}
|
|
1886
1891
|
function Qs({
|
|
@@ -1890,67 +1895,67 @@ function Qs({
|
|
|
1890
1895
|
services: i,
|
|
1891
1896
|
locale: n,
|
|
1892
1897
|
mode: o,
|
|
1893
|
-
showModify:
|
|
1898
|
+
showModify: r,
|
|
1894
1899
|
onReset: u,
|
|
1895
|
-
onModify:
|
|
1900
|
+
onModify: m
|
|
1896
1901
|
}) {
|
|
1897
|
-
const { t:
|
|
1898
|
-
(M) =>
|
|
1899
|
-
),
|
|
1900
|
-
channels:
|
|
1901
|
-
}) :
|
|
1902
|
+
const { t: d } = B(), c = (e.details.confirmationChannels ?? ["email"]).map(
|
|
1903
|
+
(M) => d(`booking.confirmation.channel.${M}`)
|
|
1904
|
+
), x = o === "demo" ? d("booking.success.descriptionDemo") : c.length > 1 ? d("booking.success.descriptionMultiple", {
|
|
1905
|
+
channels: c.join(" · ")
|
|
1906
|
+
}) : d("booking.success.descriptionSingle", { channel: c[0] }), S = w(() => {
|
|
1902
1907
|
if (e.date)
|
|
1903
1908
|
try {
|
|
1904
1909
|
return new Intl.DateTimeFormat(n, {
|
|
1905
1910
|
weekday: "long",
|
|
1906
1911
|
day: "numeric",
|
|
1907
1912
|
month: "long"
|
|
1908
|
-
}).format(
|
|
1913
|
+
}).format($(e.date));
|
|
1909
1914
|
} catch {
|
|
1910
1915
|
return e.date;
|
|
1911
1916
|
}
|
|
1912
|
-
}, [e.date, n]),
|
|
1917
|
+
}, [e.date, n]), h = e.operatorId ? t.find((M) => M.id === e.operatorId) : void 0, N = e.specialtyId ? s.find((M) => M.id === e.specialtyId) : void 0, D = e.serviceId ? i.find((M) => M.id === e.serviceId) : void 0;
|
|
1913
1918
|
return /* @__PURE__ */ f(
|
|
1914
1919
|
"div",
|
|
1915
1920
|
{
|
|
1916
1921
|
"data-component": "booking-success",
|
|
1917
1922
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
|
|
1918
1923
|
children: [
|
|
1919
|
-
/* @__PURE__ */ f(
|
|
1920
|
-
/* @__PURE__ */ a(
|
|
1921
|
-
/* @__PURE__ */ a(
|
|
1924
|
+
/* @__PURE__ */ f(j, { variant: "success", children: [
|
|
1925
|
+
/* @__PURE__ */ a(j.Title, { as: "h3", children: d("booking.success.heading") }),
|
|
1926
|
+
/* @__PURE__ */ a(j.Description, { children: x })
|
|
1922
1927
|
] }),
|
|
1923
1928
|
/* @__PURE__ */ a("div", { className: "ds:rounded-[var(--radius-md)] ds:bg-[var(--secondary)] ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ f("dl", { className: "ds:grid ds:grid-cols-[auto_minmax(0,1fr)] ds:gap-x-[var(--spacing-md)] ds:gap-y-[var(--spacing-xs)] ds:m-0", children: [
|
|
1924
|
-
N ? /* @__PURE__ */ f(
|
|
1925
|
-
/* @__PURE__ */ a("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children:
|
|
1929
|
+
N ? /* @__PURE__ */ f(X, { children: [
|
|
1930
|
+
/* @__PURE__ */ a("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: d("booking.success.summarySpecialty") }),
|
|
1926
1931
|
/* @__PURE__ */ a("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: N.label })
|
|
1927
1932
|
] }) : null,
|
|
1928
|
-
D ? /* @__PURE__ */ f(
|
|
1929
|
-
/* @__PURE__ */ a("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children:
|
|
1933
|
+
D ? /* @__PURE__ */ f(X, { children: [
|
|
1934
|
+
/* @__PURE__ */ a("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: d("booking.success.summaryService") }),
|
|
1930
1935
|
/* @__PURE__ */ a("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: D.label })
|
|
1931
1936
|
] }) : null,
|
|
1932
|
-
|
|
1933
|
-
/* @__PURE__ */ a("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children:
|
|
1934
|
-
/* @__PURE__ */ a("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children:
|
|
1937
|
+
S ? /* @__PURE__ */ f(X, { children: [
|
|
1938
|
+
/* @__PURE__ */ a("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: d("booking.success.summaryDate") }),
|
|
1939
|
+
/* @__PURE__ */ a("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: S })
|
|
1935
1940
|
] }) : null,
|
|
1936
|
-
/* @__PURE__ */ a("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children:
|
|
1941
|
+
/* @__PURE__ */ a("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: d("booking.success.summaryTime") }),
|
|
1937
1942
|
/* @__PURE__ */ a("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: e.slot.time }),
|
|
1938
|
-
|
|
1939
|
-
/* @__PURE__ */ a("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children:
|
|
1940
|
-
/* @__PURE__ */ a("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children:
|
|
1943
|
+
h ? /* @__PURE__ */ f(X, { children: [
|
|
1944
|
+
/* @__PURE__ */ a("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: d("booking.success.summaryProvider") }),
|
|
1945
|
+
/* @__PURE__ */ a("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: h.name })
|
|
1941
1946
|
] }) : null
|
|
1942
1947
|
] }) }),
|
|
1943
1948
|
/* @__PURE__ */ f("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
1944
|
-
/* @__PURE__ */ a(
|
|
1945
|
-
|
|
1949
|
+
/* @__PURE__ */ a(ne, { intent: "secondary", size: "md", onClick: u, children: d("booking.success.bookAnother") }),
|
|
1950
|
+
r ? /* @__PURE__ */ a(ne, { intent: "ghost", size: "md", onClick: m, children: d("booking.success.modifyBooking") }) : null
|
|
1946
1951
|
] })
|
|
1947
1952
|
]
|
|
1948
1953
|
}
|
|
1949
1954
|
);
|
|
1950
1955
|
}
|
|
1951
1956
|
function Ct({ customSlot: e }) {
|
|
1952
|
-
const { t } =
|
|
1953
|
-
return e ? /* @__PURE__ */ a(
|
|
1957
|
+
const { t } = B();
|
|
1958
|
+
return e ? /* @__PURE__ */ a(X, { children: e }) : /* @__PURE__ */ a(
|
|
1954
1959
|
dt,
|
|
1955
1960
|
{
|
|
1956
1961
|
variant: "no-results",
|
|
@@ -1966,26 +1971,27 @@ function ea(e) {
|
|
|
1966
1971
|
value: i,
|
|
1967
1972
|
onChange: n,
|
|
1968
1973
|
onSubmit: o,
|
|
1969
|
-
emptyServicesSlot:
|
|
1974
|
+
emptyServicesSlot: r,
|
|
1970
1975
|
onboardingIncompleteSlot: u,
|
|
1971
|
-
loadingDates:
|
|
1972
|
-
loadingSlots:
|
|
1973
|
-
onDateSelect:
|
|
1974
|
-
onWindowChange:
|
|
1975
|
-
datePickerStyle:
|
|
1976
|
-
specialtyPickerStyle:
|
|
1977
|
-
servicePickerStyle:
|
|
1976
|
+
loadingDates: m,
|
|
1977
|
+
loadingSlots: d,
|
|
1978
|
+
onDateSelect: l,
|
|
1979
|
+
onWindowChange: c,
|
|
1980
|
+
datePickerStyle: x,
|
|
1981
|
+
specialtyPickerStyle: S,
|
|
1982
|
+
servicePickerStyle: h,
|
|
1978
1983
|
operatorPickerStyle: N,
|
|
1979
1984
|
submitting: D,
|
|
1980
1985
|
locale: M,
|
|
1981
|
-
detailsProps:
|
|
1982
|
-
|
|
1986
|
+
detailsProps: k,
|
|
1987
|
+
agentIdBase: b
|
|
1988
|
+
} = e, { t: p } = B();
|
|
1983
1989
|
return /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
1984
1990
|
t.gates.insurance ? /* @__PURE__ */ a(
|
|
1985
1991
|
xt,
|
|
1986
1992
|
{
|
|
1987
1993
|
value: i.insuranceType,
|
|
1988
|
-
onChange: (
|
|
1994
|
+
onChange: (I) => n(ct(i, I))
|
|
1989
1995
|
}
|
|
1990
1996
|
) : null,
|
|
1991
1997
|
t.gates.specialty ? /* @__PURE__ */ a(
|
|
@@ -1994,20 +2000,20 @@ function ea(e) {
|
|
|
1994
2000
|
specialties: t.filtered.specialties,
|
|
1995
2001
|
value: i.specialtyId,
|
|
1996
2002
|
valueIds: i.specialtyIds,
|
|
1997
|
-
onChange: (
|
|
1998
|
-
onChangeIds: (
|
|
1999
|
-
pickerStyle:
|
|
2003
|
+
onChange: (I) => n(ut(i, I)),
|
|
2004
|
+
onChangeIds: (I) => n(pt(i, I)),
|
|
2005
|
+
pickerStyle: S
|
|
2000
2006
|
}
|
|
2001
2007
|
) : null,
|
|
2002
|
-
t.gates.service ? t.filtered.services.length === 0 ? /* @__PURE__ */ a(Ct, { customSlot:
|
|
2008
|
+
t.gates.service ? t.filtered.services.length === 0 ? /* @__PURE__ */ a(Ct, { customSlot: r }) : /* @__PURE__ */ a(
|
|
2003
2009
|
It,
|
|
2004
2010
|
{
|
|
2005
2011
|
services: t.filtered.services,
|
|
2006
2012
|
value: i.serviceId,
|
|
2007
2013
|
valueIds: i.serviceIds,
|
|
2008
|
-
onChange: (
|
|
2009
|
-
onChangeIds: (
|
|
2010
|
-
pickerStyle:
|
|
2014
|
+
onChange: (I) => n(mt(i, I)),
|
|
2015
|
+
onChangeIds: (I) => n(gt(i, I)),
|
|
2016
|
+
pickerStyle: h
|
|
2011
2017
|
}
|
|
2012
2018
|
) : null,
|
|
2013
2019
|
t.gates.onboardingIncomplete ? /* @__PURE__ */ a(wt, { customSlot: u }) : null,
|
|
@@ -2017,13 +2023,13 @@ function ea(e) {
|
|
|
2017
2023
|
operators: t.filtered.operators,
|
|
2018
2024
|
value: i.operatorId,
|
|
2019
2025
|
valueIds: i.operatorIds,
|
|
2020
|
-
onChange: (
|
|
2021
|
-
onChangeIds: (
|
|
2026
|
+
onChange: (I) => n(ft(i, I)),
|
|
2027
|
+
onChangeIds: (I) => n(ht(i, I)),
|
|
2022
2028
|
pickerStyle: N
|
|
2023
2029
|
}
|
|
2024
2030
|
) : null,
|
|
2025
2031
|
t.gates.date ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
2026
|
-
/* @__PURE__ */ a("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children:
|
|
2032
|
+
/* @__PURE__ */ a("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: p("booking.date.heading") }),
|
|
2027
2033
|
s.availableDates.length === 0 && s.nextAvailableDate ? /* @__PURE__ */ a(
|
|
2028
2034
|
Je,
|
|
2029
2035
|
{
|
|
@@ -2035,31 +2041,32 @@ function ea(e) {
|
|
|
2035
2041
|
inputs: s,
|
|
2036
2042
|
value: i,
|
|
2037
2043
|
onChange: n,
|
|
2038
|
-
onDateSelect:
|
|
2039
|
-
onWindowChange:
|
|
2040
|
-
loadingDates:
|
|
2041
|
-
loadingSlots:
|
|
2044
|
+
onDateSelect: l,
|
|
2045
|
+
onWindowChange: c,
|
|
2046
|
+
loadingDates: m,
|
|
2047
|
+
loadingSlots: d,
|
|
2042
2048
|
locale: M,
|
|
2043
|
-
datePickerStyle:
|
|
2049
|
+
datePickerStyle: x,
|
|
2050
|
+
agentIdBase: b
|
|
2044
2051
|
})
|
|
2045
2052
|
] }) : null,
|
|
2046
|
-
t.gates.slot && i.date &&
|
|
2047
|
-
/* @__PURE__ */ a("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children:
|
|
2053
|
+
t.gates.slot && i.date && x === "month-calendar" ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
2054
|
+
/* @__PURE__ */ a("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: p("booking.slot.heading") }),
|
|
2048
2055
|
kt({
|
|
2049
2056
|
inputs: s,
|
|
2050
2057
|
value: i,
|
|
2051
2058
|
onChange: n,
|
|
2052
|
-
loadingSlots:
|
|
2059
|
+
loadingSlots: d,
|
|
2053
2060
|
locale: M,
|
|
2054
|
-
datePickerStyle:
|
|
2061
|
+
datePickerStyle: x
|
|
2055
2062
|
})
|
|
2056
2063
|
] }) : null,
|
|
2057
2064
|
t.gates.details && t.selectedSlot ? /* @__PURE__ */ a(
|
|
2058
2065
|
Ye,
|
|
2059
2066
|
{
|
|
2060
|
-
...
|
|
2067
|
+
...k,
|
|
2061
2068
|
value: i.details ?? {},
|
|
2062
|
-
onChange: (
|
|
2069
|
+
onChange: (I) => n({ ...i, details: I }),
|
|
2063
2070
|
onSubmit: o,
|
|
2064
2071
|
submitting: D,
|
|
2065
2072
|
defaultPhoneCountry: e.policy.country
|
|
@@ -2067,27 +2074,28 @@ function ea(e) {
|
|
|
2067
2074
|
) : null
|
|
2068
2075
|
] });
|
|
2069
2076
|
}
|
|
2070
|
-
function
|
|
2077
|
+
function K(e, t, s = {}) {
|
|
2071
2078
|
const {
|
|
2072
2079
|
cascade: i,
|
|
2073
2080
|
inputs: n,
|
|
2074
2081
|
value: o,
|
|
2075
|
-
onChange:
|
|
2082
|
+
onChange: r,
|
|
2076
2083
|
onSubmit: u,
|
|
2077
|
-
emptyServicesSlot:
|
|
2078
|
-
onboardingIncompleteSlot:
|
|
2079
|
-
loadingDates:
|
|
2080
|
-
loadingSlots:
|
|
2081
|
-
onDateSelect:
|
|
2082
|
-
onWindowChange:
|
|
2083
|
-
datePickerStyle:
|
|
2084
|
+
emptyServicesSlot: m,
|
|
2085
|
+
onboardingIncompleteSlot: d,
|
|
2086
|
+
loadingDates: l,
|
|
2087
|
+
loadingSlots: c,
|
|
2088
|
+
onDateSelect: x,
|
|
2089
|
+
onWindowChange: S,
|
|
2090
|
+
datePickerStyle: h,
|
|
2084
2091
|
specialtyPickerStyle: N,
|
|
2085
2092
|
servicePickerStyle: D,
|
|
2086
2093
|
operatorPickerStyle: M,
|
|
2087
|
-
submitting:
|
|
2094
|
+
submitting: k,
|
|
2088
2095
|
locale: b,
|
|
2089
|
-
detailsProps:
|
|
2090
|
-
policy:
|
|
2096
|
+
detailsProps: p,
|
|
2097
|
+
policy: I,
|
|
2098
|
+
agentIdBase: A
|
|
2091
2099
|
} = t;
|
|
2092
2100
|
switch (e) {
|
|
2093
2101
|
case 1:
|
|
@@ -2095,7 +2103,7 @@ function $(e, t, s = {}) {
|
|
|
2095
2103
|
xt,
|
|
2096
2104
|
{
|
|
2097
2105
|
value: o.insuranceType,
|
|
2098
|
-
onChange: (
|
|
2106
|
+
onChange: (g) => r(ct(o, g))
|
|
2099
2107
|
}
|
|
2100
2108
|
);
|
|
2101
2109
|
case 2:
|
|
@@ -2105,20 +2113,20 @@ function $(e, t, s = {}) {
|
|
|
2105
2113
|
specialties: i.filtered.specialties,
|
|
2106
2114
|
value: o.specialtyId,
|
|
2107
2115
|
valueIds: o.specialtyIds,
|
|
2108
|
-
onChange: (
|
|
2109
|
-
onChangeIds: (
|
|
2116
|
+
onChange: (g) => r(ut(o, g)),
|
|
2117
|
+
onChangeIds: (g) => r(pt(o, g)),
|
|
2110
2118
|
pickerStyle: N
|
|
2111
2119
|
}
|
|
2112
2120
|
);
|
|
2113
2121
|
case 3:
|
|
2114
|
-
return i.filtered.services.length === 0 ? /* @__PURE__ */ a(Ct, { customSlot:
|
|
2122
|
+
return i.filtered.services.length === 0 ? /* @__PURE__ */ a(Ct, { customSlot: m }) : i.gates.onboardingIncomplete ? /* @__PURE__ */ a(wt, { customSlot: d }) : /* @__PURE__ */ a(
|
|
2115
2123
|
It,
|
|
2116
2124
|
{
|
|
2117
2125
|
services: i.filtered.services,
|
|
2118
2126
|
value: o.serviceId,
|
|
2119
2127
|
valueIds: o.serviceIds,
|
|
2120
|
-
onChange: (
|
|
2121
|
-
onChangeIds: (
|
|
2128
|
+
onChange: (g) => r(mt(o, g)),
|
|
2129
|
+
onChangeIds: (g) => r(gt(o, g)),
|
|
2122
2130
|
pickerStyle: D,
|
|
2123
2131
|
compact: s.compactService
|
|
2124
2132
|
}
|
|
@@ -2130,8 +2138,8 @@ function $(e, t, s = {}) {
|
|
|
2130
2138
|
operators: i.filtered.operators,
|
|
2131
2139
|
value: o.operatorId,
|
|
2132
2140
|
valueIds: o.operatorIds,
|
|
2133
|
-
onChange: (
|
|
2134
|
-
onChangeIds: (
|
|
2141
|
+
onChange: (g) => r(ft(o, g)),
|
|
2142
|
+
onChangeIds: (g) => r(ht(o, g)),
|
|
2135
2143
|
pickerStyle: M
|
|
2136
2144
|
}
|
|
2137
2145
|
);
|
|
@@ -2140,39 +2148,40 @@ function $(e, t, s = {}) {
|
|
|
2140
2148
|
Je,
|
|
2141
2149
|
{
|
|
2142
2150
|
nextAvailableDate: n.nextAvailableDate,
|
|
2143
|
-
onJump: () =>
|
|
2151
|
+
onJump: () => r(Ee(o, n.nextAvailableDate)),
|
|
2144
2152
|
locale: b
|
|
2145
2153
|
}
|
|
2146
2154
|
) : yt({
|
|
2147
2155
|
inputs: n,
|
|
2148
2156
|
value: o,
|
|
2149
|
-
onChange:
|
|
2150
|
-
onDateSelect:
|
|
2151
|
-
onWindowChange:
|
|
2152
|
-
loadingDates:
|
|
2153
|
-
loadingSlots:
|
|
2157
|
+
onChange: r,
|
|
2158
|
+
onDateSelect: x,
|
|
2159
|
+
onWindowChange: S,
|
|
2160
|
+
loadingDates: l,
|
|
2161
|
+
loadingSlots: c,
|
|
2154
2162
|
locale: b,
|
|
2155
|
-
datePickerStyle:
|
|
2163
|
+
datePickerStyle: h,
|
|
2164
|
+
agentIdBase: A
|
|
2156
2165
|
});
|
|
2157
2166
|
case 6:
|
|
2158
2167
|
return kt({
|
|
2159
2168
|
inputs: n,
|
|
2160
2169
|
value: o,
|
|
2161
|
-
onChange:
|
|
2162
|
-
loadingSlots:
|
|
2170
|
+
onChange: r,
|
|
2171
|
+
loadingSlots: c,
|
|
2163
2172
|
locale: b,
|
|
2164
|
-
datePickerStyle:
|
|
2173
|
+
datePickerStyle: h
|
|
2165
2174
|
});
|
|
2166
2175
|
case 7:
|
|
2167
2176
|
return i.selectedSlot ? /* @__PURE__ */ a(
|
|
2168
2177
|
Ye,
|
|
2169
2178
|
{
|
|
2170
|
-
...
|
|
2179
|
+
...p,
|
|
2171
2180
|
value: o.details ?? {},
|
|
2172
|
-
onChange: (
|
|
2181
|
+
onChange: (g) => r({ ...o, details: g }),
|
|
2173
2182
|
onSubmit: u,
|
|
2174
|
-
submitting:
|
|
2175
|
-
defaultPhoneCountry:
|
|
2183
|
+
submitting: k,
|
|
2184
|
+
defaultPhoneCountry: I.country
|
|
2176
2185
|
}
|
|
2177
2186
|
) : null;
|
|
2178
2187
|
/* c8 ignore next 2 */
|
|
@@ -2181,7 +2190,7 @@ function $(e, t, s = {}) {
|
|
|
2181
2190
|
}
|
|
2182
2191
|
}
|
|
2183
2192
|
function Ze() {
|
|
2184
|
-
const { t: e } =
|
|
2193
|
+
const { t: e } = B();
|
|
2185
2194
|
return w(
|
|
2186
2195
|
() => ({
|
|
2187
2196
|
1: e("booking.insurance.heading"),
|
|
@@ -2196,26 +2205,26 @@ function Ze() {
|
|
|
2196
2205
|
);
|
|
2197
2206
|
}
|
|
2198
2207
|
function ta(e) {
|
|
2199
|
-
const { cascade: t, value: s, activeStep: i, setActiveStep: n, datePickerStyle: o } = e,
|
|
2200
|
-
() => o === "four-day-grid" ? t.visibleSteps.filter((
|
|
2208
|
+
const { cascade: t, value: s, activeStep: i, setActiveStep: n, datePickerStyle: o } = e, r = Ze(), u = w(
|
|
2209
|
+
() => o === "four-day-grid" ? t.visibleSteps.filter((l) => l !== 6) : t.visibleSteps,
|
|
2201
2210
|
[t.visibleSteps, o]
|
|
2202
|
-
),
|
|
2203
|
-
() => u.map((
|
|
2204
|
-
label: l
|
|
2205
|
-
summary: Dt(
|
|
2206
|
-
status: ke(
|
|
2207
|
-
content:
|
|
2211
|
+
), m = w(
|
|
2212
|
+
() => u.map((l) => ({
|
|
2213
|
+
label: r[l],
|
|
2214
|
+
summary: Dt(l, s, t),
|
|
2215
|
+
status: ke(l, s) && l < t.currentStep ? "completed" : void 0,
|
|
2216
|
+
content: K(l, e, { compactService: !0 })
|
|
2208
2217
|
})),
|
|
2209
|
-
[u, s,
|
|
2210
|
-
),
|
|
2218
|
+
[u, s, r, t, e]
|
|
2219
|
+
), d = Math.max(0, t.visibleSteps.indexOf(i));
|
|
2211
2220
|
return /* @__PURE__ */ a(
|
|
2212
2221
|
$t,
|
|
2213
2222
|
{
|
|
2214
|
-
activeStep:
|
|
2215
|
-
steps:
|
|
2216
|
-
onStepChange: (
|
|
2217
|
-
const
|
|
2218
|
-
|
|
2223
|
+
activeStep: d,
|
|
2224
|
+
steps: m,
|
|
2225
|
+
onStepChange: (l) => {
|
|
2226
|
+
const c = t.visibleSteps[l];
|
|
2227
|
+
c && n(c);
|
|
2219
2228
|
}
|
|
2220
2229
|
}
|
|
2221
2230
|
);
|
|
@@ -2259,7 +2268,7 @@ function Dt(e, t, s) {
|
|
|
2259
2268
|
case 4: {
|
|
2260
2269
|
const n = He(t);
|
|
2261
2270
|
if (!n) return;
|
|
2262
|
-
const o = s.filtered.operators.find((
|
|
2271
|
+
const o = s.filtered.operators.find((r) => r.id === n);
|
|
2263
2272
|
return o == null ? void 0 : o.name;
|
|
2264
2273
|
}
|
|
2265
2274
|
case 5:
|
|
@@ -2271,33 +2280,33 @@ function Dt(e, t, s) {
|
|
|
2271
2280
|
}
|
|
2272
2281
|
}
|
|
2273
2282
|
function sa(e) {
|
|
2274
|
-
const { cascade: t, value: s, setActiveStep: i } = e, { t: n } =
|
|
2275
|
-
(
|
|
2276
|
-
), u =
|
|
2277
|
-
(
|
|
2283
|
+
const { cascade: t, value: s, setActiveStep: i } = e, { t: n } = B(), o = Ze(), r = t.visibleSteps.filter(
|
|
2284
|
+
(m) => m === 1 || m === 2 || m === 3 || m === 4
|
|
2285
|
+
), u = r.some(
|
|
2286
|
+
(m) => !ke(m, s)
|
|
2278
2287
|
);
|
|
2279
2288
|
return /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
2280
|
-
u ?
|
|
2289
|
+
u ? r.filter((m) => !ke(m, s)).slice(0, 1).map((m) => /* @__PURE__ */ a("div", { children: K(m, e, { compactService: !0 }) }, `csf-${m}`)) : /* @__PURE__ */ a(
|
|
2281
2290
|
"div",
|
|
2282
2291
|
{
|
|
2283
2292
|
role: "group",
|
|
2284
2293
|
"aria-label": n("booking.regionLabel"),
|
|
2285
2294
|
className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
2286
|
-
children:
|
|
2287
|
-
const
|
|
2288
|
-
return
|
|
2289
|
-
|
|
2295
|
+
children: r.map((m) => {
|
|
2296
|
+
const d = Dt(m, s, t);
|
|
2297
|
+
return d ? /* @__PURE__ */ f(
|
|
2298
|
+
ne,
|
|
2290
2299
|
{
|
|
2291
2300
|
intent: "tonal",
|
|
2292
2301
|
size: "sm",
|
|
2293
|
-
onClick: () => i(
|
|
2302
|
+
onClick: () => i(m),
|
|
2294
2303
|
children: [
|
|
2295
|
-
o[
|
|
2304
|
+
o[m],
|
|
2296
2305
|
": ",
|
|
2297
|
-
|
|
2306
|
+
d
|
|
2298
2307
|
]
|
|
2299
2308
|
},
|
|
2300
|
-
`csc-${
|
|
2309
|
+
`csc-${m}`
|
|
2301
2310
|
) : null;
|
|
2302
2311
|
})
|
|
2303
2312
|
}
|
|
@@ -2307,12 +2316,12 @@ function sa(e) {
|
|
|
2307
2316
|
// historic 2-col date|slot split collapses to a single column
|
|
2308
2317
|
// so the picker spans the full width instead of orphaning an
|
|
2309
2318
|
// empty right cell.
|
|
2310
|
-
e.datePickerStyle === "four-day-grid" ? /* @__PURE__ */ a("div", { children:
|
|
2311
|
-
/* @__PURE__ */ a("div", { className: "ds:min-w-0", children:
|
|
2312
|
-
/* @__PURE__ */ a("div", { className: "ds:min-w-0", children: s.date ?
|
|
2319
|
+
e.datePickerStyle === "four-day-grid" ? /* @__PURE__ */ a("div", { children: K(5, e) }) : /* @__PURE__ */ f("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:md:grid-cols-2", children: [
|
|
2320
|
+
/* @__PURE__ */ a("div", { className: "ds:min-w-0", children: K(5, e) }),
|
|
2321
|
+
/* @__PURE__ */ a("div", { className: "ds:min-w-0", children: s.date ? K(6, e) : null })
|
|
2313
2322
|
] })
|
|
2314
2323
|
) : null,
|
|
2315
|
-
t.gates.details ? /* @__PURE__ */ a("div", { children:
|
|
2324
|
+
t.gates.details ? /* @__PURE__ */ a("div", { children: K(7, e) }) : null
|
|
2316
2325
|
] });
|
|
2317
2326
|
}
|
|
2318
2327
|
function aa(e) {
|
|
@@ -2325,53 +2334,53 @@ function aa(e) {
|
|
|
2325
2334
|
{
|
|
2326
2335
|
className: s === "four-day-grid" ? "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]" : "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:md:grid-cols-2",
|
|
2327
2336
|
children: [
|
|
2328
|
-
/* @__PURE__ */ a("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: i.map((o) => /* @__PURE__ */ a("div", { children:
|
|
2337
|
+
/* @__PURE__ */ a("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: i.map((o) => /* @__PURE__ */ a("div", { children: K(o, e, { compactService: !0 }) }, `fbf-${o}`)) }),
|
|
2329
2338
|
/* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
2330
|
-
t.gates.date ?
|
|
2331
|
-
t.gates.slot && e.value.date ?
|
|
2339
|
+
t.gates.date ? K(5, e) : null,
|
|
2340
|
+
t.gates.slot && e.value.date ? K(6, e) : null
|
|
2332
2341
|
] })
|
|
2333
2342
|
]
|
|
2334
2343
|
}
|
|
2335
2344
|
),
|
|
2336
|
-
t.gates.details ?
|
|
2345
|
+
t.gates.details ? K(7, e) : null
|
|
2337
2346
|
] });
|
|
2338
2347
|
}
|
|
2339
2348
|
function ia(e) {
|
|
2340
|
-
const { cascade: t, value: s, activeStep: i, setActiveStep: n, datePickerStyle: o } = e, { t:
|
|
2341
|
-
() => o === "four-day-grid" ? t.visibleSteps.filter((
|
|
2349
|
+
const { cascade: t, value: s, activeStep: i, setActiveStep: n, datePickerStyle: o } = e, { t: r } = B(), u = Ze(), m = w(
|
|
2350
|
+
() => o === "four-day-grid" ? t.visibleSteps.filter((h) => h !== 6) : t.visibleSteps,
|
|
2342
2351
|
[t.visibleSteps, o]
|
|
2343
|
-
),
|
|
2344
|
-
() =>
|
|
2345
|
-
[
|
|
2346
|
-
),
|
|
2352
|
+
), d = Math.max(0, m.indexOf(i)), l = m.length, c = w(
|
|
2353
|
+
() => m.map((h) => ({ label: u[h] })),
|
|
2354
|
+
[m, u]
|
|
2355
|
+
), x = d > 0, S = d < l - 1 && ke(i, s);
|
|
2347
2356
|
return /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
2348
|
-
/* @__PURE__ */ a(zt, { activeStep:
|
|
2349
|
-
/* @__PURE__ */ a("div", { children:
|
|
2357
|
+
/* @__PURE__ */ a(zt, { activeStep: d, steps: c }),
|
|
2358
|
+
/* @__PURE__ */ a("div", { children: K(i, e, { compactService: !0 }) }),
|
|
2350
2359
|
/* @__PURE__ */ f("div", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
2351
2360
|
/* @__PURE__ */ a(
|
|
2352
|
-
|
|
2361
|
+
ne,
|
|
2353
2362
|
{
|
|
2354
2363
|
intent: "ghost",
|
|
2355
2364
|
size: "md",
|
|
2356
|
-
disabled: !
|
|
2365
|
+
disabled: !x,
|
|
2357
2366
|
onClick: () => {
|
|
2358
|
-
const
|
|
2359
|
-
|
|
2367
|
+
const h = m[d - 1];
|
|
2368
|
+
h && n(h);
|
|
2360
2369
|
},
|
|
2361
|
-
children:
|
|
2370
|
+
children: r("booking.actions.back")
|
|
2362
2371
|
}
|
|
2363
2372
|
),
|
|
2364
2373
|
i < 7 ? /* @__PURE__ */ a(
|
|
2365
|
-
|
|
2374
|
+
ne,
|
|
2366
2375
|
{
|
|
2367
2376
|
intent: "primary",
|
|
2368
2377
|
size: "md",
|
|
2369
|
-
disabled: !
|
|
2378
|
+
disabled: !S,
|
|
2370
2379
|
onClick: () => {
|
|
2371
|
-
const
|
|
2372
|
-
|
|
2380
|
+
const h = m[d + 1];
|
|
2381
|
+
h && n(h);
|
|
2373
2382
|
},
|
|
2374
|
-
children:
|
|
2383
|
+
children: r("booking.actions.next")
|
|
2375
2384
|
}
|
|
2376
2385
|
) : null
|
|
2377
2386
|
] })
|
|
@@ -2388,74 +2397,74 @@ const na = [], oa = [], ra = ot(
|
|
|
2388
2397
|
allowOperatorSelection: i = !1,
|
|
2389
2398
|
lockedOperatorId: n,
|
|
2390
2399
|
autoSelectSingleService: o = !1,
|
|
2391
|
-
specialties:
|
|
2400
|
+
specialties: r,
|
|
2392
2401
|
services: u,
|
|
2393
|
-
operators:
|
|
2394
|
-
availableDates:
|
|
2395
|
-
availableSlots:
|
|
2396
|
-
nextAvailableDate:
|
|
2397
|
-
requireCodiceFiscale:
|
|
2398
|
-
requireDateOfBirth:
|
|
2399
|
-
requireInsuranceNumber:
|
|
2402
|
+
operators: m,
|
|
2403
|
+
availableDates: d,
|
|
2404
|
+
availableSlots: l,
|
|
2405
|
+
nextAvailableDate: c,
|
|
2406
|
+
requireCodiceFiscale: x,
|
|
2407
|
+
requireDateOfBirth: S,
|
|
2408
|
+
requireInsuranceNumber: h,
|
|
2400
2409
|
showNote: N,
|
|
2401
2410
|
showReturningPatientFlag: D,
|
|
2402
2411
|
privacyPolicyUrl: M,
|
|
2403
|
-
termsUrl:
|
|
2412
|
+
termsUrl: k,
|
|
2404
2413
|
validateCodiceFiscale: b,
|
|
2405
|
-
validateInsuranceNumber:
|
|
2406
|
-
confirmationChannels:
|
|
2407
|
-
defaultConfirmationChannels:
|
|
2414
|
+
validateInsuranceNumber: p,
|
|
2415
|
+
confirmationChannels: I,
|
|
2416
|
+
defaultConfirmationChannels: A,
|
|
2408
2417
|
value: g,
|
|
2409
|
-
onChange:
|
|
2418
|
+
onChange: y,
|
|
2410
2419
|
onSubmit: _,
|
|
2411
|
-
onStepChange:
|
|
2412
|
-
onDateSelect:
|
|
2413
|
-
onWindowChange:
|
|
2414
|
-
datePickerStyle:
|
|
2415
|
-
specialtyPickerStyle:
|
|
2420
|
+
onStepChange: T,
|
|
2421
|
+
onDateSelect: O,
|
|
2422
|
+
onWindowChange: E,
|
|
2423
|
+
datePickerStyle: V = "month-calendar",
|
|
2424
|
+
specialtyPickerStyle: L,
|
|
2416
2425
|
servicePickerStyle: P,
|
|
2417
|
-
operatorPickerStyle:
|
|
2418
|
-
loadingDates:
|
|
2426
|
+
operatorPickerStyle: ee,
|
|
2427
|
+
loadingDates: G,
|
|
2419
2428
|
loadingSlots: pe,
|
|
2420
|
-
submitting:
|
|
2429
|
+
submitting: te,
|
|
2421
2430
|
submitError: xe,
|
|
2422
2431
|
mode: Y = "live",
|
|
2423
|
-
showModifyOnSuccess:
|
|
2432
|
+
showModifyOnSuccess: oe = !0,
|
|
2424
2433
|
surface: me = "flat",
|
|
2425
2434
|
emptyServicesSlot: Se,
|
|
2426
2435
|
onboardingIncompleteSlot: Ie,
|
|
2427
2436
|
"aria-label": Re,
|
|
2428
|
-
id:
|
|
2437
|
+
id: J,
|
|
2429
2438
|
className: Ve,
|
|
2430
2439
|
...Ne
|
|
2431
2440
|
}, we) => {
|
|
2432
|
-
const { t: re, i18n:
|
|
2433
|
-
|
|
2434
|
-
const
|
|
2441
|
+
const { t: re, i18n: v } = B(), C = e ?? "inline-list", se = v.language ?? "en", Z = r ?? na, de = m ?? oa;
|
|
2442
|
+
U(() => {
|
|
2443
|
+
const F = Os(g, {
|
|
2435
2444
|
useSpecialties: s,
|
|
2436
2445
|
lockedOperatorId: n,
|
|
2437
2446
|
autoSelectSingleService: o,
|
|
2438
|
-
specialties:
|
|
2447
|
+
specialties: Z,
|
|
2439
2448
|
services: u
|
|
2440
2449
|
});
|
|
2441
|
-
(
|
|
2450
|
+
(F.specialtyId !== g.specialtyId || F.operatorId !== g.operatorId || F.serviceId !== g.serviceId) && y(F);
|
|
2442
2451
|
}, [
|
|
2443
2452
|
n,
|
|
2444
2453
|
s,
|
|
2445
2454
|
o,
|
|
2446
|
-
|
|
2455
|
+
Z,
|
|
2447
2456
|
u
|
|
2448
2457
|
]);
|
|
2449
2458
|
const R = w(
|
|
2450
|
-
() =>
|
|
2459
|
+
() => Bs({
|
|
2451
2460
|
country: t,
|
|
2452
2461
|
useSpecialties: s,
|
|
2453
2462
|
allowOperatorSelection: i,
|
|
2454
2463
|
lockedOperatorId: n,
|
|
2455
|
-
specialties:
|
|
2464
|
+
specialties: Z,
|
|
2456
2465
|
services: u,
|
|
2457
2466
|
operators: de,
|
|
2458
|
-
availableSlots:
|
|
2467
|
+
availableSlots: l,
|
|
2459
2468
|
value: g
|
|
2460
2469
|
}),
|
|
2461
2470
|
[
|
|
@@ -2464,36 +2473,36 @@ const na = [], oa = [], ra = ot(
|
|
|
2464
2473
|
i,
|
|
2465
2474
|
n,
|
|
2466
2475
|
o,
|
|
2467
|
-
|
|
2476
|
+
Z,
|
|
2468
2477
|
u,
|
|
2469
2478
|
de,
|
|
2470
|
-
|
|
2471
|
-
|
|
2479
|
+
d,
|
|
2480
|
+
l,
|
|
2472
2481
|
g
|
|
2473
2482
|
]
|
|
2474
|
-
), [We, ge] =
|
|
2483
|
+
), [We, ge] = q(
|
|
2475
2484
|
R.currentStep
|
|
2476
|
-
), Xe =
|
|
2477
|
-
|
|
2485
|
+
), Xe = ie(R.currentStep);
|
|
2486
|
+
U(() => {
|
|
2478
2487
|
R.currentStep > Xe.current && ge(R.currentStep), Xe.current = R.currentStep;
|
|
2479
2488
|
}, [R.currentStep]);
|
|
2480
|
-
const [fe, he] =
|
|
2481
|
-
async (
|
|
2489
|
+
const [fe, he] = q("idle"), [Le, Fe] = q(null), Qe = H(
|
|
2490
|
+
async (F) => {
|
|
2482
2491
|
if (!R.selectedSlot) return;
|
|
2483
2492
|
const ze = {
|
|
2484
2493
|
slot: R.selectedSlot,
|
|
2485
2494
|
value: {
|
|
2486
2495
|
...g,
|
|
2487
|
-
details:
|
|
2496
|
+
details: F,
|
|
2488
2497
|
operatorId: He(g) ?? g.operatorId
|
|
2489
2498
|
},
|
|
2490
|
-
details:
|
|
2499
|
+
details: F
|
|
2491
2500
|
};
|
|
2492
2501
|
he("submitting");
|
|
2493
2502
|
try {
|
|
2494
2503
|
await _(ze), Fe({
|
|
2495
2504
|
slot: R.selectedSlot,
|
|
2496
|
-
details:
|
|
2505
|
+
details: F,
|
|
2497
2506
|
specialtyId: g.specialtyId,
|
|
2498
2507
|
serviceId: g.serviceId,
|
|
2499
2508
|
insuranceType: g.insuranceType,
|
|
@@ -2505,11 +2514,11 @@ const na = [], oa = [], ra = ot(
|
|
|
2505
2514
|
}
|
|
2506
2515
|
},
|
|
2507
2516
|
[R.selectedSlot, _, g]
|
|
2508
|
-
), ve =
|
|
2517
|
+
), ve = ie(null);
|
|
2509
2518
|
_t(we, () => ve.current, []);
|
|
2510
|
-
const be = fe === "success" ? 8 : R.currentStep, et =
|
|
2511
|
-
|
|
2512
|
-
if (be !== et.current && (et.current = be,
|
|
2519
|
+
const be = fe === "success" ? 8 : R.currentStep, et = ie(null);
|
|
2520
|
+
U(() => {
|
|
2521
|
+
if (be !== et.current && (et.current = be, T == null || T(be), be === 8 && ve.current))
|
|
2513
2522
|
try {
|
|
2514
2523
|
ve.current.scrollIntoView({
|
|
2515
2524
|
behavior: "smooth",
|
|
@@ -2518,30 +2527,30 @@ const na = [], oa = [], ra = ot(
|
|
|
2518
2527
|
} catch {
|
|
2519
2528
|
ve.current.scrollIntoView();
|
|
2520
2529
|
}
|
|
2521
|
-
}, [be,
|
|
2530
|
+
}, [be, T]);
|
|
2522
2531
|
const $e = w(
|
|
2523
2532
|
() => ({
|
|
2524
2533
|
getVariant: () => C,
|
|
2525
2534
|
reset: () => {
|
|
2526
|
-
|
|
2535
|
+
y({}), Fe(null), he("idle"), ge(1);
|
|
2527
2536
|
},
|
|
2528
|
-
goToStep: (
|
|
2529
|
-
ge(
|
|
2537
|
+
goToStep: (F) => {
|
|
2538
|
+
ge(F);
|
|
2530
2539
|
}
|
|
2531
2540
|
}),
|
|
2532
|
-
[C,
|
|
2541
|
+
[C, y]
|
|
2533
2542
|
);
|
|
2534
|
-
|
|
2543
|
+
Bt(Cs, $e, J);
|
|
2535
2544
|
const Mt = Re ?? re("booking.regionLabel"), At = w(() => fe !== "success" || !Le ? null : /* @__PURE__ */ a(
|
|
2536
2545
|
Qs,
|
|
2537
2546
|
{
|
|
2538
2547
|
snapshot: Le,
|
|
2539
2548
|
operators: de,
|
|
2540
|
-
specialties:
|
|
2549
|
+
specialties: Z,
|
|
2541
2550
|
services: u,
|
|
2542
|
-
locale:
|
|
2551
|
+
locale: se,
|
|
2543
2552
|
mode: Y,
|
|
2544
|
-
showModify:
|
|
2553
|
+
showModify: oe,
|
|
2545
2554
|
onReset: () => $e.reset(),
|
|
2546
2555
|
onModify: () => {
|
|
2547
2556
|
Fe(null), he("idle"), ge(7);
|
|
@@ -2551,99 +2560,101 @@ const na = [], oa = [], ra = ot(
|
|
|
2551
2560
|
fe,
|
|
2552
2561
|
Le,
|
|
2553
2562
|
de,
|
|
2554
|
-
|
|
2563
|
+
Z,
|
|
2555
2564
|
u,
|
|
2556
|
-
|
|
2565
|
+
se,
|
|
2557
2566
|
Y,
|
|
2558
|
-
|
|
2567
|
+
oe,
|
|
2559
2568
|
$e
|
|
2560
2569
|
]), Tt = w(() => {
|
|
2561
2570
|
if (fe === "success") return null;
|
|
2562
|
-
const
|
|
2571
|
+
const F = C === "accordion" ? ta : C === "calendar" ? sa : C === "flexible" ? aa : C === "progress" ? ia : ea, ze = {
|
|
2563
2572
|
cascade: R,
|
|
2564
2573
|
inputs: {
|
|
2565
|
-
specialties:
|
|
2574
|
+
specialties: Z,
|
|
2566
2575
|
services: u,
|
|
2567
2576
|
operators: de,
|
|
2568
|
-
availableDates:
|
|
2569
|
-
availableSlots:
|
|
2570
|
-
nextAvailableDate:
|
|
2577
|
+
availableDates: d,
|
|
2578
|
+
availableSlots: l,
|
|
2579
|
+
nextAvailableDate: c
|
|
2571
2580
|
},
|
|
2572
2581
|
value: g,
|
|
2573
|
-
onChange:
|
|
2582
|
+
onChange: y,
|
|
2574
2583
|
onSubmit: Qe,
|
|
2575
2584
|
policy: { country: t, lockedOperatorId: n },
|
|
2576
2585
|
detailsProps: {
|
|
2577
|
-
requireCodiceFiscale:
|
|
2578
|
-
requireDateOfBirth:
|
|
2579
|
-
requireInsuranceNumber:
|
|
2586
|
+
requireCodiceFiscale: x,
|
|
2587
|
+
requireDateOfBirth: S,
|
|
2588
|
+
requireInsuranceNumber: h,
|
|
2580
2589
|
insuranceType: g.insuranceType,
|
|
2581
2590
|
showNote: N,
|
|
2582
2591
|
showReturningPatientFlag: D,
|
|
2583
2592
|
privacyPolicyUrl: M,
|
|
2584
|
-
termsUrl:
|
|
2593
|
+
termsUrl: k,
|
|
2585
2594
|
validateCodiceFiscale: b,
|
|
2586
|
-
validateInsuranceNumber:
|
|
2587
|
-
confirmationChannels:
|
|
2588
|
-
defaultConfirmationChannels:
|
|
2595
|
+
validateInsuranceNumber: p,
|
|
2596
|
+
confirmationChannels: I,
|
|
2597
|
+
defaultConfirmationChannels: A,
|
|
2589
2598
|
submitError: xe
|
|
2590
2599
|
},
|
|
2591
2600
|
emptyServicesSlot: Se,
|
|
2592
2601
|
onboardingIncompleteSlot: Ie,
|
|
2593
|
-
loadingDates:
|
|
2602
|
+
loadingDates: G,
|
|
2594
2603
|
loadingSlots: pe,
|
|
2595
|
-
onDateSelect:
|
|
2596
|
-
onWindowChange:
|
|
2597
|
-
datePickerStyle:
|
|
2598
|
-
specialtyPickerStyle:
|
|
2604
|
+
onDateSelect: O,
|
|
2605
|
+
onWindowChange: E,
|
|
2606
|
+
datePickerStyle: V,
|
|
2607
|
+
specialtyPickerStyle: L,
|
|
2599
2608
|
servicePickerStyle: P,
|
|
2600
|
-
operatorPickerStyle:
|
|
2601
|
-
submitting:
|
|
2602
|
-
locale:
|
|
2609
|
+
operatorPickerStyle: ee,
|
|
2610
|
+
submitting: te,
|
|
2611
|
+
locale: se,
|
|
2603
2612
|
activeStep: We,
|
|
2604
|
-
setActiveStep: ge
|
|
2613
|
+
setActiveStep: ge,
|
|
2614
|
+
agentIdBase: J
|
|
2605
2615
|
};
|
|
2606
|
-
return /* @__PURE__ */ a(
|
|
2616
|
+
return /* @__PURE__ */ a(F, { ...ze });
|
|
2607
2617
|
}, [
|
|
2608
2618
|
fe,
|
|
2609
2619
|
C,
|
|
2610
2620
|
R,
|
|
2611
|
-
|
|
2621
|
+
Z,
|
|
2612
2622
|
u,
|
|
2613
2623
|
de,
|
|
2614
|
-
|
|
2624
|
+
d,
|
|
2625
|
+
l,
|
|
2615
2626
|
c,
|
|
2616
|
-
m,
|
|
2617
2627
|
g,
|
|
2618
|
-
|
|
2628
|
+
y,
|
|
2619
2629
|
Qe,
|
|
2620
2630
|
t,
|
|
2621
2631
|
n,
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2632
|
+
x,
|
|
2633
|
+
S,
|
|
2634
|
+
h,
|
|
2625
2635
|
xe,
|
|
2626
2636
|
N,
|
|
2627
2637
|
D,
|
|
2628
2638
|
M,
|
|
2629
|
-
|
|
2639
|
+
k,
|
|
2630
2640
|
b,
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2641
|
+
p,
|
|
2642
|
+
I,
|
|
2643
|
+
A,
|
|
2634
2644
|
Se,
|
|
2635
2645
|
Ie,
|
|
2636
|
-
q,
|
|
2637
|
-
pe,
|
|
2638
2646
|
G,
|
|
2639
|
-
|
|
2647
|
+
pe,
|
|
2648
|
+
O,
|
|
2640
2649
|
E,
|
|
2641
|
-
|
|
2650
|
+
V,
|
|
2651
|
+
L,
|
|
2642
2652
|
P,
|
|
2643
|
-
Q,
|
|
2644
2653
|
ee,
|
|
2645
2654
|
te,
|
|
2646
|
-
|
|
2655
|
+
se,
|
|
2656
|
+
We,
|
|
2657
|
+
J
|
|
2647
2658
|
]);
|
|
2648
2659
|
return /* @__PURE__ */ f(
|
|
2649
2660
|
"div",
|
|
@@ -2651,9 +2662,9 @@ const na = [], oa = [], ra = ot(
|
|
|
2651
2662
|
ref: ve,
|
|
2652
2663
|
role: "region",
|
|
2653
2664
|
"aria-label": Mt,
|
|
2654
|
-
id:
|
|
2665
|
+
id: J,
|
|
2655
2666
|
"data-component": "booking",
|
|
2656
|
-
"data-component-id":
|
|
2667
|
+
"data-component-id": J,
|
|
2657
2668
|
"data-variant": C,
|
|
2658
2669
|
className: Fs({
|
|
2659
2670
|
variant: C,
|
|
@@ -2689,7 +2700,7 @@ ra.displayName = "Booking";
|
|
|
2689
2700
|
export {
|
|
2690
2701
|
ra as B,
|
|
2691
2702
|
qe as C,
|
|
2692
|
-
|
|
2703
|
+
Q as O,
|
|
2693
2704
|
Cs as b
|
|
2694
2705
|
};
|
|
2695
|
-
//# sourceMappingURL=booking-
|
|
2706
|
+
//# sourceMappingURL=booking-BjsA7j1-.js.map
|