@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,19 +1,19 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { S as
|
|
6
|
-
import { A as
|
|
7
|
-
import { loadStripe as
|
|
8
|
-
import { Elements as
|
|
9
|
-
import { u as
|
|
10
|
-
function
|
|
1
|
+
import { jsx as t, jsxs as g, Fragment as me } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as pe, useState as z, useEffect as L, useRef as j, useMemo as X, useImperativeHandle as fe, useId as ye, useCallback as $ } from "react";
|
|
3
|
+
import { c as D } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as Y } from "react-i18next";
|
|
5
|
+
import { S as oe } from "./spinner-hbwuKwMf.js";
|
|
6
|
+
import { A as se } from "./alert-CiJT540z.js";
|
|
7
|
+
import { loadStripe as ge } from "@stripe/stripe-js";
|
|
8
|
+
import { Elements as be, useStripe as ve, useElements as he, PaymentElement as Ie, AddressElement as we } from "@stripe/react-stripe-js";
|
|
9
|
+
import { u as xe } from "./registry-DvAUVLHh.js";
|
|
10
|
+
function ie() {
|
|
11
11
|
return typeof document < "u" && typeof window < "u";
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
if (!
|
|
13
|
+
function Z(r) {
|
|
14
|
+
if (!ie())
|
|
15
15
|
return { theme: "stripe" };
|
|
16
|
-
const n = r ?? document.documentElement, a = getComputedStyle(n), e = (
|
|
16
|
+
const n = r ?? document.documentElement, a = getComputedStyle(n), e = (o) => a.getPropertyValue(o).trim();
|
|
17
17
|
return {
|
|
18
18
|
theme: n.classList.contains("theme-dark") ? "night" : "stripe",
|
|
19
19
|
variables: {
|
|
@@ -91,23 +91,58 @@ function H(r) {
|
|
|
91
91
|
}
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
|
-
function
|
|
95
|
-
if (!
|
|
94
|
+
function Se(r, n) {
|
|
95
|
+
if (!ie()) return () => {
|
|
96
96
|
};
|
|
97
|
-
const a = document.documentElement, e = () => r(
|
|
98
|
-
|
|
97
|
+
const a = document.documentElement, e = () => r(Z(n)), d = new MutationObserver(e);
|
|
98
|
+
d.observe(a, {
|
|
99
99
|
attributes: !0,
|
|
100
100
|
attributeFilter: ["class", "dir", "lang"]
|
|
101
101
|
});
|
|
102
|
-
const
|
|
103
|
-
return
|
|
104
|
-
|
|
102
|
+
const o = window.matchMedia("(prefers-color-scheme: dark)"), m = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
103
|
+
return o.addEventListener("change", e), m.addEventListener("change", e), () => {
|
|
104
|
+
d.disconnect(), o.removeEventListener("change", e), m.removeEventListener("change", e);
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
|
-
const
|
|
107
|
+
const ke = {
|
|
108
108
|
id: "payment-form",
|
|
109
109
|
capabilities: ["submit"],
|
|
110
|
-
|
|
110
|
+
// The kit's only destructive + openWorld action that moves real money,
|
|
111
|
+
// so it is also the one that most needs to be verifiable. `submit`
|
|
112
|
+
// resolves once the charge attempt has settled; these four slots are
|
|
113
|
+
// how an agent then tells success from decline from never-fired, and
|
|
114
|
+
// how it recovers the receipt.
|
|
115
|
+
//
|
|
116
|
+
// A9: the PaymentIntent id and the i18n error KEY only. Never card
|
|
117
|
+
// fields (they live in Stripe's cross-origin iframes and never reach
|
|
118
|
+
// this origin), never the translated Stripe message, never
|
|
119
|
+
// `clientSecret`.
|
|
120
|
+
state: {
|
|
121
|
+
status: {
|
|
122
|
+
type: "'idle' | 'processing' | 'succeeded' | 'failed'",
|
|
123
|
+
descriptionKey: "ui.agent.paymentForm.state.status",
|
|
124
|
+
description: "Lifecycle of the current payment attempt. `succeeded` is only reached once Stripe confirmed the PaymentIntent; `failed` covers validation, decline and processor errors alike. Still `idle` after `submit` means the attempt never fired — Stripe had not mounted.",
|
|
125
|
+
read: (r) => r.getStatus()
|
|
126
|
+
},
|
|
127
|
+
complete: {
|
|
128
|
+
type: "boolean",
|
|
129
|
+
descriptionKey: "ui.agent.paymentForm.state.complete",
|
|
130
|
+
description: "True when Stripe reports the payment fields as complete. Read this before `submit` — outside preview mode the submit control is disabled while it is false, so the call will not be accepted.",
|
|
131
|
+
read: (r) => r.isComplete()
|
|
132
|
+
},
|
|
133
|
+
errorKey: {
|
|
134
|
+
type: "string | null",
|
|
135
|
+
descriptionKey: "ui.agent.paymentForm.state.errorKey",
|
|
136
|
+
description: "i18n key of the current error (e.g. `payment.error.cardDeclined`), or null. The key is the structural datum — the translated message is free text and is never exposed.",
|
|
137
|
+
read: (r) => r.getErrorKey()
|
|
138
|
+
},
|
|
139
|
+
paymentIntentId: {
|
|
140
|
+
type: "string | null",
|
|
141
|
+
descriptionKey: "ui.agent.paymentForm.state.paymentIntentId",
|
|
142
|
+
description: "Opaque Stripe PaymentIntent id once a charge succeeded, else null. The receipt — the attribution handle for the money that moved. Never the client secret.",
|
|
143
|
+
read: (r) => r.getPaymentIntentId()
|
|
144
|
+
}
|
|
145
|
+
},
|
|
111
146
|
actions: {
|
|
112
147
|
submit: {
|
|
113
148
|
safety: "destructive",
|
|
@@ -116,19 +151,20 @@ const we = {
|
|
|
116
151
|
openWorld: !0,
|
|
117
152
|
returns: "Promise<void>",
|
|
118
153
|
errors: [
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
154
|
+
'Validation failed (incomplete or invalid card details) — `status` is "failed", `errorKey` names which.',
|
|
155
|
+
'Payment was declined by the processor — `status` is "failed", `errorKey` is `payment.error.cardDeclined`.',
|
|
156
|
+
'Network or processor error during the charge — `status` is "failed".',
|
|
157
|
+
'Stripe had not mounted, so nothing was attempted — `status` is still "idle".'
|
|
122
158
|
],
|
|
123
159
|
descriptionKey: "ui.agent.paymentForm.actions.submit",
|
|
124
|
-
description: "Submit the payment. Charges the configured payment method — irreversible.",
|
|
160
|
+
description: "Submit the payment. Charges the configured payment method — irreversible. Resolves once the attempt has settled; the outcome is never in the resolved value, so read `status`, then `errorKey` on failure or `paymentIntentId` on success.",
|
|
125
161
|
invoke: (r) => r.submit()
|
|
126
162
|
},
|
|
127
163
|
reset: {
|
|
128
164
|
safety: "destructive",
|
|
129
165
|
idempotent: !0,
|
|
130
166
|
descriptionKey: "ui.agent.paymentForm.actions.reset",
|
|
131
|
-
description:
|
|
167
|
+
description: 'Reset the form to its initial state. Loses any in-progress input, and discards the previous attempt — `status` returns to "idle" and `errorKey` / `paymentIntentId` to null.',
|
|
132
168
|
invoke: (r) => {
|
|
133
169
|
r.reset();
|
|
134
170
|
}
|
|
@@ -142,7 +178,7 @@ const we = {
|
|
|
142
178
|
description: "Sourced from the id prop."
|
|
143
179
|
}
|
|
144
180
|
}
|
|
145
|
-
},
|
|
181
|
+
}, Ce = /* @__PURE__ */ new Set([
|
|
146
182
|
"BIF",
|
|
147
183
|
"CLP",
|
|
148
184
|
"DJF",
|
|
@@ -161,21 +197,21 @@ const we = {
|
|
|
161
197
|
"XOF",
|
|
162
198
|
"XPF"
|
|
163
199
|
]);
|
|
164
|
-
function
|
|
165
|
-
const e = n.toUpperCase(),
|
|
200
|
+
function J(r, n, a) {
|
|
201
|
+
const e = n.toUpperCase(), d = Ce.has(e) ? r : r / 100;
|
|
166
202
|
try {
|
|
167
203
|
return new Intl.NumberFormat(a, {
|
|
168
204
|
style: "currency",
|
|
169
205
|
currency: e
|
|
170
|
-
}).format(
|
|
206
|
+
}).format(d);
|
|
171
207
|
} catch {
|
|
172
208
|
return new Intl.NumberFormat("en", {
|
|
173
209
|
style: "currency",
|
|
174
210
|
currency: e
|
|
175
|
-
}).format(
|
|
211
|
+
}).format(d);
|
|
176
212
|
}
|
|
177
213
|
}
|
|
178
|
-
function
|
|
214
|
+
function Ee(r) {
|
|
179
215
|
if (r === void 0) return null;
|
|
180
216
|
const n = r.trim();
|
|
181
217
|
if (n === "" || typeof window > "u") return null;
|
|
@@ -186,10 +222,10 @@ function ke(r) {
|
|
|
186
222
|
return null;
|
|
187
223
|
}
|
|
188
224
|
}
|
|
189
|
-
function
|
|
225
|
+
function Ne(r) {
|
|
190
226
|
return r && r.replace(/\d{4,}/g, "****");
|
|
191
227
|
}
|
|
192
|
-
function
|
|
228
|
+
function Fe(r) {
|
|
193
229
|
switch (r) {
|
|
194
230
|
case "incorrect_number":
|
|
195
231
|
case "invalid_number":
|
|
@@ -215,7 +251,7 @@ function Ee(r) {
|
|
|
215
251
|
return "payment.error.generic";
|
|
216
252
|
}
|
|
217
253
|
}
|
|
218
|
-
const
|
|
254
|
+
const Pe = D(
|
|
219
255
|
[
|
|
220
256
|
"ds:payment-form-alfadocs ds:flex ds:flex-col",
|
|
221
257
|
"ds:gap-[var(--spacing-md)]",
|
|
@@ -225,11 +261,11 @@ const Ie = A(
|
|
|
225
261
|
"ds:text-[var(--foreground)]",
|
|
226
262
|
"ds:aria-disabled:opacity-[var(--opacity-50)] ds:aria-disabled:cursor-not-allowed"
|
|
227
263
|
].join(" ")
|
|
228
|
-
),
|
|
264
|
+
), q = D(
|
|
229
265
|
["ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]"].join(" ")
|
|
230
|
-
),
|
|
266
|
+
), A = D(
|
|
231
267
|
["type-label", "ds:text-[var(--foreground)]"].join(" ")
|
|
232
|
-
),
|
|
268
|
+
), de = D(
|
|
233
269
|
[
|
|
234
270
|
"ds:flex ds:items-baseline ds:justify-between",
|
|
235
271
|
"ds:gap-[var(--spacing-sm)]",
|
|
@@ -239,7 +275,7 @@ const Ie = A(
|
|
|
239
275
|
"ds:rounded-[var(--radius-sm)]",
|
|
240
276
|
"ds:text-[var(--foreground)]"
|
|
241
277
|
].join(" ")
|
|
242
|
-
),
|
|
278
|
+
), ce = D(
|
|
243
279
|
[
|
|
244
280
|
"ds:inline-flex ds:items-center ds:justify-center ds:gap-[var(--spacing-xs)]",
|
|
245
281
|
"ds:[min-block-size:var(--min-target-size)]",
|
|
@@ -259,186 +295,220 @@ const Ie = A(
|
|
|
259
295
|
"ds:aria-busy:cursor-wait"
|
|
260
296
|
].join(" ")
|
|
261
297
|
);
|
|
262
|
-
function
|
|
298
|
+
function _e(r) {
|
|
263
299
|
const {
|
|
264
300
|
amount: n,
|
|
265
301
|
currency: a,
|
|
266
302
|
locale: e,
|
|
267
|
-
billingAddress:
|
|
268
|
-
returnUrl:
|
|
269
|
-
clientSecret:
|
|
270
|
-
onCreatePaymentIntent:
|
|
271
|
-
onSuccess:
|
|
272
|
-
onError:
|
|
273
|
-
layout:
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
[
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
303
|
+
billingAddress: d,
|
|
304
|
+
returnUrl: o,
|
|
305
|
+
clientSecret: m,
|
|
306
|
+
onCreatePaymentIntent: N,
|
|
307
|
+
onSuccess: K,
|
|
308
|
+
onError: F,
|
|
309
|
+
layout: O,
|
|
310
|
+
agentBridge: i
|
|
311
|
+
} = r, { t: c } = Y(), p = ve(), h = he(), B = ye(), I = X(
|
|
312
|
+
() => `pay-${B.replace(/[^a-zA-Z0-9-_]/g, "")}`,
|
|
313
|
+
[B]
|
|
314
|
+
), U = `${I}-payment`, w = `${I}-address`, R = `${I}-error`, [f, S] = z(!1), [V, T] = z(!1), [b, G] = z(null), [H, u] = z(""), l = $(
|
|
315
|
+
(s) => {
|
|
316
|
+
i.current.status = s;
|
|
317
|
+
},
|
|
318
|
+
[i]
|
|
319
|
+
), P = $(
|
|
320
|
+
(s) => {
|
|
321
|
+
i.current.errorKey = s, G(s);
|
|
322
|
+
},
|
|
323
|
+
[i]
|
|
324
|
+
), le = $(
|
|
325
|
+
(s) => {
|
|
326
|
+
i.current.complete = s, T(s);
|
|
327
|
+
},
|
|
328
|
+
[i]
|
|
329
|
+
), k = j(K), C = j(F);
|
|
330
|
+
L(() => {
|
|
331
|
+
k.current = K, C.current = F;
|
|
332
|
+
}, [K, F]);
|
|
333
|
+
const _ = $(
|
|
334
|
+
async (s) => {
|
|
335
|
+
var ee, re, te;
|
|
336
|
+
if (s && s.preventDefault(), !p || !h || f) return;
|
|
337
|
+
S(!0), l("processing"), i.current.paymentIntentId = null, P(null), u("");
|
|
338
|
+
const E = (v, M) => {
|
|
339
|
+
var ne;
|
|
340
|
+
const y = Fe(v), x = Ne(M ?? "");
|
|
341
|
+
P(y), u(c(y)), l("failed"), (ne = C.current) == null || ne.call(C, {
|
|
342
|
+
code: v,
|
|
343
|
+
translatedMessage: x || c(y)
|
|
292
344
|
});
|
|
293
|
-
},
|
|
294
|
-
if (
|
|
295
|
-
|
|
345
|
+
}, W = Ee(o);
|
|
346
|
+
if (o !== void 0 && W === null) {
|
|
347
|
+
P("payment.error.invalidReturnUrl"), u(c("payment.error.invalidReturnUrl")), l("failed"), (ee = C.current) == null || ee.call(C, {
|
|
296
348
|
code: "invalid_return_url",
|
|
297
|
-
translatedMessage:
|
|
298
|
-
}),
|
|
349
|
+
translatedMessage: c("payment.error.invalidReturnUrl")
|
|
350
|
+
}), S(!1);
|
|
299
351
|
return;
|
|
300
352
|
}
|
|
301
|
-
const
|
|
353
|
+
const Q = W ? { return_url: W } : {};
|
|
302
354
|
try {
|
|
303
|
-
if (
|
|
304
|
-
const
|
|
305
|
-
elements:
|
|
306
|
-
confirmParams:
|
|
355
|
+
if (m !== void 0) {
|
|
356
|
+
const x = await p.confirmPayment({
|
|
357
|
+
elements: h,
|
|
358
|
+
confirmParams: Q,
|
|
307
359
|
redirect: "if_required"
|
|
308
360
|
});
|
|
309
|
-
if (
|
|
310
|
-
|
|
361
|
+
if (x.error) {
|
|
362
|
+
E(x.error.code ?? "generic", x.error.message);
|
|
311
363
|
return;
|
|
312
364
|
}
|
|
313
|
-
|
|
365
|
+
x.paymentIntent && (i.current.paymentIntentId = x.paymentIntent.id, l("succeeded"), (re = k.current) == null || re.call(k, x.paymentIntent.id));
|
|
314
366
|
return;
|
|
315
367
|
}
|
|
316
|
-
const { error:
|
|
317
|
-
if (
|
|
318
|
-
|
|
368
|
+
const { error: v } = await h.submit();
|
|
369
|
+
if (v) {
|
|
370
|
+
E(v.code ?? "generic", v.message);
|
|
319
371
|
return;
|
|
320
372
|
}
|
|
321
|
-
if (!
|
|
373
|
+
if (!N) {
|
|
374
|
+
l("idle");
|
|
322
375
|
return;
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
376
|
+
}
|
|
377
|
+
const M = await N(), y = await p.confirmPayment({
|
|
378
|
+
elements: h,
|
|
379
|
+
clientSecret: M,
|
|
380
|
+
confirmParams: Q,
|
|
327
381
|
redirect: "if_required"
|
|
328
382
|
});
|
|
329
383
|
if (y.error) {
|
|
330
|
-
|
|
384
|
+
E(y.error.code ?? "generic", y.error.message);
|
|
331
385
|
return;
|
|
332
386
|
}
|
|
333
|
-
y.paymentIntent && ((
|
|
334
|
-
} catch (
|
|
335
|
-
const
|
|
336
|
-
|
|
387
|
+
y.paymentIntent && (i.current.paymentIntentId = y.paymentIntent.id, l("succeeded"), (te = k.current) == null || te.call(k, y.paymentIntent.id));
|
|
388
|
+
} catch (v) {
|
|
389
|
+
const M = v instanceof Error ? v.message : "";
|
|
390
|
+
E("unexpected", M);
|
|
337
391
|
} finally {
|
|
338
|
-
|
|
392
|
+
S(!1), i.current.status === "processing" && l("idle");
|
|
339
393
|
}
|
|
340
394
|
},
|
|
341
395
|
[
|
|
342
|
-
h,
|
|
343
|
-
l,
|
|
344
396
|
p,
|
|
345
|
-
|
|
397
|
+
h,
|
|
398
|
+
f,
|
|
399
|
+
o,
|
|
400
|
+
m,
|
|
401
|
+
N,
|
|
346
402
|
c,
|
|
347
|
-
|
|
348
|
-
|
|
403
|
+
i,
|
|
404
|
+
P,
|
|
405
|
+
l
|
|
349
406
|
]
|
|
350
407
|
);
|
|
351
|
-
|
|
352
|
-
const
|
|
353
|
-
if (!
|
|
354
|
-
const
|
|
355
|
-
|
|
408
|
+
L(() => {
|
|
409
|
+
const s = document.getElementById(I);
|
|
410
|
+
if (!s) return;
|
|
411
|
+
const E = () => {
|
|
412
|
+
_();
|
|
413
|
+
};
|
|
414
|
+
return s.addEventListener("payment-form:submit", E), () => s.removeEventListener("payment-form:submit", E);
|
|
415
|
+
}, [I, _]), L(() => {
|
|
416
|
+
const s = i.current;
|
|
417
|
+
return s.submit = _, () => {
|
|
418
|
+
s.submit === _ && (s.submit = void 0);
|
|
356
419
|
};
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
420
|
+
}, [i, _]), L(() => {
|
|
421
|
+
const s = i.current;
|
|
422
|
+
return () => {
|
|
423
|
+
s.complete = !1;
|
|
424
|
+
};
|
|
425
|
+
}, [i]);
|
|
426
|
+
const ue = !p || !h || f || !(m === void 0 && !N) && !V;
|
|
360
427
|
return /* @__PURE__ */ t(
|
|
361
428
|
"form",
|
|
362
429
|
{
|
|
363
|
-
id:
|
|
364
|
-
onSubmit:
|
|
365
|
-
|
|
366
|
-
|
|
430
|
+
id: I,
|
|
431
|
+
onSubmit: _,
|
|
432
|
+
onReset: () => {
|
|
433
|
+
P(null), u(""), l("idle"), i.current.paymentIntentId = null;
|
|
434
|
+
},
|
|
435
|
+
"aria-label": c("payment.ariaLabel"),
|
|
436
|
+
"aria-busy": f || void 0,
|
|
367
437
|
noValidate: !0,
|
|
368
|
-
children: /* @__PURE__ */
|
|
369
|
-
/* @__PURE__ */
|
|
370
|
-
/* @__PURE__ */ t("span", { className:
|
|
371
|
-
/* @__PURE__ */ t("span", { className: "type-title-card", "data-testid": "payment-amount", children:
|
|
438
|
+
children: /* @__PURE__ */ g("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
439
|
+
/* @__PURE__ */ g("div", { className: de(), children: [
|
|
440
|
+
/* @__PURE__ */ t("span", { className: A(), children: c("payment.amountLabel") }),
|
|
441
|
+
/* @__PURE__ */ t("span", { className: "type-title-card", "data-testid": "payment-amount", children: J(n, a, e) })
|
|
372
442
|
] }),
|
|
373
|
-
/* @__PURE__ */
|
|
443
|
+
/* @__PURE__ */ g(
|
|
374
444
|
"label",
|
|
375
445
|
{
|
|
376
|
-
htmlFor:
|
|
377
|
-
className:
|
|
446
|
+
htmlFor: U,
|
|
447
|
+
className: q(),
|
|
378
448
|
"data-testid": "payment-field",
|
|
379
449
|
children: [
|
|
380
|
-
/* @__PURE__ */ t("span", { className:
|
|
450
|
+
/* @__PURE__ */ t("span", { className: A(), children: c("payment.fields.card") }),
|
|
381
451
|
/* @__PURE__ */ t(
|
|
382
|
-
|
|
452
|
+
Ie,
|
|
383
453
|
{
|
|
384
|
-
id:
|
|
454
|
+
id: U,
|
|
385
455
|
options: {
|
|
386
456
|
// `tabs` = method tiles (Card selected by default); `accordion`
|
|
387
457
|
// = full-width stacked rows for narrow columns where the tab row
|
|
388
458
|
// clips. Stripe owns overflow + tab alignment either way.
|
|
389
|
-
layout:
|
|
459
|
+
layout: O === "accordion" ? { type: "accordion", defaultCollapsed: !0 } : { type: "tabs" }
|
|
390
460
|
},
|
|
391
|
-
onChange: (
|
|
392
|
-
|
|
461
|
+
onChange: (s) => {
|
|
462
|
+
le(s.complete === !0), s.complete && (P(null), u(""), i.current.status === "failed" && l("idle"));
|
|
393
463
|
}
|
|
394
464
|
}
|
|
395
465
|
)
|
|
396
466
|
]
|
|
397
467
|
}
|
|
398
468
|
),
|
|
399
|
-
|
|
469
|
+
d ? /* @__PURE__ */ g(
|
|
400
470
|
"label",
|
|
401
471
|
{
|
|
402
|
-
htmlFor:
|
|
403
|
-
className:
|
|
472
|
+
htmlFor: w,
|
|
473
|
+
className: q(),
|
|
404
474
|
"data-testid": "payment-address",
|
|
405
475
|
children: [
|
|
406
|
-
/* @__PURE__ */ t("span", { className:
|
|
407
|
-
/* @__PURE__ */ t(
|
|
476
|
+
/* @__PURE__ */ t("span", { className: A(), children: c("payment.billingAddress") }),
|
|
477
|
+
/* @__PURE__ */ t(we, { id: w, options: { mode: "billing" } })
|
|
408
478
|
]
|
|
409
479
|
}
|
|
410
480
|
) : null,
|
|
411
|
-
|
|
412
|
-
|
|
481
|
+
b ? /* @__PURE__ */ t(
|
|
482
|
+
se,
|
|
413
483
|
{
|
|
414
|
-
id:
|
|
484
|
+
id: R,
|
|
415
485
|
variant: "error",
|
|
416
486
|
live: "polite",
|
|
417
487
|
"data-testid": "payment-error",
|
|
418
|
-
children: /* @__PURE__ */ t(
|
|
488
|
+
children: /* @__PURE__ */ t(se.Description, { children: H })
|
|
419
489
|
}
|
|
420
490
|
) : null,
|
|
421
491
|
/* @__PURE__ */ t(
|
|
422
492
|
"button",
|
|
423
493
|
{
|
|
424
494
|
type: "submit",
|
|
425
|
-
"aria-disabled":
|
|
426
|
-
"aria-busy":
|
|
427
|
-
"aria-describedby":
|
|
428
|
-
className:
|
|
495
|
+
"aria-disabled": ue || void 0,
|
|
496
|
+
"aria-busy": f || void 0,
|
|
497
|
+
"aria-describedby": b ? R : void 0,
|
|
498
|
+
className: ce(),
|
|
429
499
|
"data-testid": "payment-submit",
|
|
430
|
-
children:
|
|
500
|
+
children: f ? /* @__PURE__ */ g(me, { children: [
|
|
431
501
|
/* @__PURE__ */ t(
|
|
432
|
-
|
|
502
|
+
oe,
|
|
433
503
|
{
|
|
434
504
|
variant: "pulse",
|
|
435
505
|
size: "sm",
|
|
436
|
-
label:
|
|
506
|
+
label: c("payment.processing")
|
|
437
507
|
}
|
|
438
508
|
),
|
|
439
|
-
/* @__PURE__ */ t("span", { children:
|
|
440
|
-
] }) : /* @__PURE__ */ t("span", { children:
|
|
441
|
-
amount:
|
|
509
|
+
/* @__PURE__ */ t("span", { children: c("payment.processing") })
|
|
510
|
+
] }) : /* @__PURE__ */ t("span", { children: c("payment.submit", {
|
|
511
|
+
amount: J(n, a, e)
|
|
442
512
|
}) })
|
|
443
513
|
}
|
|
444
514
|
)
|
|
@@ -446,7 +516,7 @@ function Ne(r) {
|
|
|
446
516
|
}
|
|
447
517
|
);
|
|
448
518
|
}
|
|
449
|
-
const
|
|
519
|
+
const ae = /* @__PURE__ */ new Set([
|
|
450
520
|
"auto",
|
|
451
521
|
"ar",
|
|
452
522
|
"bg",
|
|
@@ -498,151 +568,158 @@ const re = /* @__PURE__ */ new Set([
|
|
|
498
568
|
"zh-HK",
|
|
499
569
|
"zh-TW"
|
|
500
570
|
]);
|
|
501
|
-
function
|
|
571
|
+
function ze(r) {
|
|
502
572
|
if (!r) return "auto";
|
|
503
573
|
const n = r === "cn" ? "zh" : r;
|
|
504
|
-
if (
|
|
574
|
+
if (ae.has(n))
|
|
505
575
|
return n;
|
|
506
576
|
const a = n.split("-")[0];
|
|
507
|
-
return
|
|
577
|
+
return ae.has(a) ? a : "auto";
|
|
508
578
|
}
|
|
509
|
-
const
|
|
579
|
+
const Le = pe(
|
|
510
580
|
({
|
|
511
581
|
id: r,
|
|
512
582
|
clientSecret: n,
|
|
513
583
|
mode: a = "payment",
|
|
514
584
|
onCreatePaymentIntent: e,
|
|
515
|
-
publishableKey:
|
|
516
|
-
currency:
|
|
517
|
-
amount:
|
|
518
|
-
onSuccess:
|
|
519
|
-
onError:
|
|
520
|
-
billingAddress:
|
|
521
|
-
locale:
|
|
585
|
+
publishableKey: d,
|
|
586
|
+
currency: o,
|
|
587
|
+
amount: m,
|
|
588
|
+
onSuccess: N,
|
|
589
|
+
onError: K,
|
|
590
|
+
billingAddress: F = !1,
|
|
591
|
+
locale: O,
|
|
522
592
|
ariaLabel: i,
|
|
523
|
-
returnUrl:
|
|
524
|
-
stripePromise:
|
|
525
|
-
layout:
|
|
526
|
-
className:
|
|
527
|
-
},
|
|
528
|
-
const { i18n:
|
|
529
|
-
|
|
530
|
-
if (
|
|
531
|
-
|
|
593
|
+
returnUrl: c,
|
|
594
|
+
stripePromise: p,
|
|
595
|
+
layout: h = "tabs",
|
|
596
|
+
className: B
|
|
597
|
+
}, I) => {
|
|
598
|
+
const { i18n: U } = Y(), w = ze(O ?? U.language ?? "en"), [R, f] = z(p ?? null);
|
|
599
|
+
L(() => {
|
|
600
|
+
if (p !== void 0) {
|
|
601
|
+
f(p);
|
|
532
602
|
return;
|
|
533
603
|
}
|
|
534
|
-
if (!
|
|
535
|
-
|
|
604
|
+
if (!d) {
|
|
605
|
+
f(null);
|
|
536
606
|
return;
|
|
537
607
|
}
|
|
538
|
-
|
|
539
|
-
}, [
|
|
540
|
-
const [
|
|
541
|
-
() =>
|
|
608
|
+
f(ge(d));
|
|
609
|
+
}, [p, d]);
|
|
610
|
+
const [S, V] = z(
|
|
611
|
+
() => Z()
|
|
542
612
|
);
|
|
543
|
-
|
|
544
|
-
const
|
|
613
|
+
L(() => (V(Z()), Se(V)), []);
|
|
614
|
+
const T = j(null), b = j({
|
|
615
|
+
status: "idle",
|
|
616
|
+
complete: !1,
|
|
617
|
+
errorKey: null,
|
|
618
|
+
paymentIntentId: null
|
|
619
|
+
}), G = X(
|
|
545
620
|
() => ({
|
|
546
621
|
submit: async () => {
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
m && m.dispatchEvent(
|
|
550
|
-
new CustomEvent("payment-form:submit", { bubbles: !0 })
|
|
551
|
-
);
|
|
622
|
+
const u = b.current.submit;
|
|
623
|
+
u && await u();
|
|
552
624
|
},
|
|
553
625
|
reset: () => {
|
|
554
|
-
var
|
|
555
|
-
const
|
|
556
|
-
|
|
557
|
-
}
|
|
626
|
+
var l;
|
|
627
|
+
const u = (l = T.current) == null ? void 0 : l.querySelector("form");
|
|
628
|
+
u instanceof HTMLFormElement && u.reset();
|
|
629
|
+
},
|
|
630
|
+
getStatus: () => b.current.status,
|
|
631
|
+
isComplete: () => b.current.complete,
|
|
632
|
+
getErrorKey: () => b.current.errorKey,
|
|
633
|
+
getPaymentIntentId: () => b.current.paymentIntentId
|
|
558
634
|
}),
|
|
559
635
|
[]
|
|
560
636
|
);
|
|
561
|
-
|
|
562
|
-
const
|
|
637
|
+
fe(I, () => T.current, []), xe(ke, G, r);
|
|
638
|
+
const H = X(
|
|
563
639
|
() => n !== void 0 ? (
|
|
564
640
|
// Immediate mode — the consumer already created the intent.
|
|
565
|
-
{ clientSecret: n, appearance:
|
|
641
|
+
{ clientSecret: n, appearance: S, locale: w }
|
|
566
642
|
) : (
|
|
567
643
|
// Deferred-intent mode — no secret yet; Stripe needs the intent
|
|
568
644
|
// shape (mode + amount + currency) to render the Payment Element.
|
|
569
645
|
// Stripe expects a lowercase ISO-4217 currency here.
|
|
570
646
|
{
|
|
571
647
|
mode: a,
|
|
572
|
-
amount:
|
|
573
|
-
currency:
|
|
574
|
-
appearance:
|
|
575
|
-
locale:
|
|
648
|
+
amount: m,
|
|
649
|
+
currency: o.toLowerCase(),
|
|
650
|
+
appearance: S,
|
|
651
|
+
locale: w
|
|
576
652
|
}
|
|
577
653
|
),
|
|
578
|
-
[n, a,
|
|
654
|
+
[n, a, m, o, S, w]
|
|
579
655
|
);
|
|
580
656
|
return /* @__PURE__ */ t(
|
|
581
657
|
"div",
|
|
582
658
|
{
|
|
583
|
-
ref:
|
|
659
|
+
ref: T,
|
|
584
660
|
"aria-label": i,
|
|
585
|
-
className: [
|
|
661
|
+
className: [Pe(), B].filter(Boolean).join(" "),
|
|
586
662
|
"data-component": "payment-form",
|
|
587
663
|
"data-component-id": r,
|
|
588
664
|
"data-testid": "payment-form-root",
|
|
589
|
-
children:
|
|
665
|
+
children: R ? (
|
|
590
666
|
// Render the real Payment Element whenever a Stripe instance is
|
|
591
667
|
// available — in immediate mode (clientSecret present) AND in
|
|
592
668
|
// deferred mode (no secret). The skeleton is reserved for the
|
|
593
669
|
// no-Stripe case (missing publishableKey / injected null).
|
|
594
670
|
/* @__PURE__ */ t(
|
|
595
|
-
|
|
671
|
+
be,
|
|
596
672
|
{
|
|
597
|
-
stripe:
|
|
598
|
-
options:
|
|
673
|
+
stripe: R,
|
|
674
|
+
options: H,
|
|
599
675
|
children: /* @__PURE__ */ t(
|
|
600
|
-
|
|
676
|
+
_e,
|
|
601
677
|
{
|
|
602
|
-
amount:
|
|
603
|
-
currency:
|
|
604
|
-
locale:
|
|
605
|
-
billingAddress:
|
|
606
|
-
returnUrl:
|
|
678
|
+
amount: m,
|
|
679
|
+
currency: o,
|
|
680
|
+
locale: w,
|
|
681
|
+
billingAddress: F,
|
|
682
|
+
returnUrl: c,
|
|
607
683
|
clientSecret: n,
|
|
608
684
|
onCreatePaymentIntent: e,
|
|
609
|
-
onSuccess:
|
|
610
|
-
onError:
|
|
611
|
-
layout:
|
|
685
|
+
onSuccess: N,
|
|
686
|
+
onError: K,
|
|
687
|
+
layout: h,
|
|
688
|
+
agentBridge: b
|
|
612
689
|
}
|
|
613
690
|
)
|
|
614
691
|
},
|
|
615
692
|
n ?? "deferred"
|
|
616
693
|
)
|
|
617
694
|
) : /* @__PURE__ */ t(
|
|
618
|
-
|
|
695
|
+
Ae,
|
|
619
696
|
{
|
|
620
|
-
amount:
|
|
621
|
-
currency:
|
|
622
|
-
locale:
|
|
623
|
-
billingAddress:
|
|
697
|
+
amount: m,
|
|
698
|
+
currency: o,
|
|
699
|
+
locale: w,
|
|
700
|
+
billingAddress: F
|
|
624
701
|
}
|
|
625
702
|
)
|
|
626
703
|
}
|
|
627
704
|
);
|
|
628
705
|
}
|
|
629
706
|
);
|
|
630
|
-
|
|
631
|
-
function
|
|
632
|
-
const { amount: n, currency: a, locale: e, billingAddress:
|
|
633
|
-
return /* @__PURE__ */
|
|
707
|
+
Le.displayName = "PaymentForm";
|
|
708
|
+
function Ae(r) {
|
|
709
|
+
const { amount: n, currency: a, locale: e, billingAddress: d } = r, { t: o } = Y();
|
|
710
|
+
return /* @__PURE__ */ g(
|
|
634
711
|
"div",
|
|
635
712
|
{
|
|
636
713
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
|
|
637
714
|
"data-testid": "payment-skeleton",
|
|
638
715
|
"aria-busy": "true",
|
|
639
716
|
children: [
|
|
640
|
-
/* @__PURE__ */
|
|
641
|
-
/* @__PURE__ */ t("span", { className:
|
|
642
|
-
/* @__PURE__ */ t("span", { className: "type-title-card", children:
|
|
717
|
+
/* @__PURE__ */ g("div", { className: de(), children: [
|
|
718
|
+
/* @__PURE__ */ t("span", { className: A(), children: o("payment.amountLabel") }),
|
|
719
|
+
/* @__PURE__ */ t("span", { className: "type-title-card", children: J(n, a, e) })
|
|
643
720
|
] }),
|
|
644
|
-
/* @__PURE__ */
|
|
645
|
-
/* @__PURE__ */ t("span", { className:
|
|
721
|
+
/* @__PURE__ */ g("div", { className: q(), children: [
|
|
722
|
+
/* @__PURE__ */ t("span", { className: A(), children: o("payment.fields.card") }),
|
|
646
723
|
/* @__PURE__ */ t(
|
|
647
724
|
"div",
|
|
648
725
|
{
|
|
@@ -651,8 +728,8 @@ function Fe(r) {
|
|
|
651
728
|
}
|
|
652
729
|
)
|
|
653
730
|
] }),
|
|
654
|
-
|
|
655
|
-
/* @__PURE__ */ t("span", { className:
|
|
731
|
+
d ? /* @__PURE__ */ g("div", { className: q(), "data-testid": "payment-address", children: [
|
|
732
|
+
/* @__PURE__ */ t("span", { className: A(), children: o("payment.billingAddress") }),
|
|
656
733
|
/* @__PURE__ */ t(
|
|
657
734
|
"div",
|
|
658
735
|
{
|
|
@@ -661,16 +738,16 @@ function Fe(r) {
|
|
|
661
738
|
}
|
|
662
739
|
)
|
|
663
740
|
] }) : null,
|
|
664
|
-
/* @__PURE__ */
|
|
741
|
+
/* @__PURE__ */ g(
|
|
665
742
|
"button",
|
|
666
743
|
{
|
|
667
744
|
type: "button",
|
|
668
745
|
"aria-disabled": "true",
|
|
669
|
-
className:
|
|
746
|
+
className: ce(),
|
|
670
747
|
disabled: !0,
|
|
671
748
|
children: [
|
|
672
|
-
/* @__PURE__ */ t(
|
|
673
|
-
/* @__PURE__ */ t("span", { children:
|
|
749
|
+
/* @__PURE__ */ t(oe, { variant: "pulse", size: "sm", label: o("payment.processing") }),
|
|
750
|
+
/* @__PURE__ */ t("span", { children: o("payment.processing") })
|
|
674
751
|
]
|
|
675
752
|
}
|
|
676
753
|
)
|
|
@@ -679,12 +756,12 @@ function Fe(r) {
|
|
|
679
756
|
);
|
|
680
757
|
}
|
|
681
758
|
export {
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
759
|
+
Le as P,
|
|
760
|
+
Pe as a,
|
|
761
|
+
Ne as b,
|
|
762
|
+
Fe as c,
|
|
763
|
+
J as f,
|
|
764
|
+
ke as p,
|
|
765
|
+
ce as s
|
|
689
766
|
};
|
|
690
|
-
//# sourceMappingURL=payment-form-
|
|
767
|
+
//# sourceMappingURL=payment-form-Ds1I9KqB.js.map
|