@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
|
@@ -0,0 +1,553 @@
|
|
|
1
|
+
import { jsxs as l, jsx as a, Fragment as z } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as U, useState as x, useMemo as _, useEffect as J, useRef as Q } from "react";
|
|
3
|
+
import { c as X } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as Y } from "react-i18next";
|
|
5
|
+
import { u as Z } from "./registry-DvAUVLHh.js";
|
|
6
|
+
import { R as M } from "./radio-TWf9Q-mp.js";
|
|
7
|
+
import { R as ee } from "./radio-group-CI-6SmSw.js";
|
|
8
|
+
import { F as P } from "./form-field-M5UpX65Z.js";
|
|
9
|
+
import { N as I } from "./number-input-DOe5VYei.js";
|
|
10
|
+
import { C as B } from "./card-DPmk26CL.js";
|
|
11
|
+
import { B as E } from "./badge-DCOqV9mI.js";
|
|
12
|
+
import { I as te } from "./insert-result-D074GtHX.js";
|
|
13
|
+
import { b as ne, e as ae } from "./bmi-BxD-tFzU.js";
|
|
14
|
+
const ie = {
|
|
15
|
+
id: "pregnancy-weight-gain",
|
|
16
|
+
// set_value → `set_value` (the four measurements) + `set_plurality`,
|
|
17
|
+
// read back through the `inputs` / `plurality` / `result` state slots.
|
|
18
|
+
capabilities: ["set_value"],
|
|
19
|
+
state: {
|
|
20
|
+
inputs: {
|
|
21
|
+
type: "{ heightCm: number | null, prePregnancyKg: number | null, currentKg: number | null, gestationalWeeks: number | null }",
|
|
22
|
+
descriptionKey: "ui.agent.pregnancyWeightGain.state.inputs",
|
|
23
|
+
description: "The four entered measurements — height (cm), pre-pregnancy weight (kg), current weight (kg) and completed gestational weeks. Null for anything not yet entered.",
|
|
24
|
+
read: (t) => t.getInputs()
|
|
25
|
+
},
|
|
26
|
+
plurality: {
|
|
27
|
+
type: "'singleton' | 'twin' | 'triplet'",
|
|
28
|
+
descriptionKey: "ui.agent.pregnancyWeightGain.state.plurality",
|
|
29
|
+
description: "Number of babies the assessment is keyed to. Drives which IOM band applies — twins use the higher twin bands, triplets have no published band.",
|
|
30
|
+
read: (t) => t.getPlurality()
|
|
31
|
+
},
|
|
32
|
+
result: {
|
|
33
|
+
type: "{ category: string, plurality: string, actualGainKg: number, status: string | null, recommendedToDate: { min: number, max: number } | null, totalRange: { min: number, max: number } | null, weeklyRate: number | null, rateStatus: string | null } | null",
|
|
34
|
+
descriptionKey: "ui.agent.pregnancyWeightGain.state.result",
|
|
35
|
+
description: "Computed assessment — actual gain (kg), the IOM recommended-to-date and total bands, and where the gain sits against them (below / within / above). Null until every input is valid; the bands are null when the IOM publishes none (triplets, underweight twins).",
|
|
36
|
+
read: (t) => t.getResult()
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
actions: {
|
|
40
|
+
set_value: {
|
|
41
|
+
// Fills the same fields a clinician types into. The calculator is a
|
|
42
|
+
// scratchpad — nothing is persisted to a patient record — so `write`,
|
|
43
|
+
// not `phi` (matching the sibling bmi-calculator).
|
|
44
|
+
safety: "write",
|
|
45
|
+
argsType: "{ heightCm?: number | null, prePregnancyKg?: number | null, currentKg?: number | null, gestationalWeeks?: number | null }",
|
|
46
|
+
argsSchema: {
|
|
47
|
+
type: "object",
|
|
48
|
+
properties: {
|
|
49
|
+
heightCm: {
|
|
50
|
+
type: ["number", "null"],
|
|
51
|
+
minimum: 0,
|
|
52
|
+
description: "Height in centimetres."
|
|
53
|
+
},
|
|
54
|
+
prePregnancyKg: {
|
|
55
|
+
type: ["number", "null"],
|
|
56
|
+
minimum: 0,
|
|
57
|
+
description: "Pre-pregnancy weight in kilograms."
|
|
58
|
+
},
|
|
59
|
+
currentKg: {
|
|
60
|
+
type: ["number", "null"],
|
|
61
|
+
minimum: 0,
|
|
62
|
+
description: "Current weight in kilograms."
|
|
63
|
+
},
|
|
64
|
+
gestationalWeeks: {
|
|
65
|
+
type: ["number", "null"],
|
|
66
|
+
minimum: 0,
|
|
67
|
+
maximum: 42,
|
|
68
|
+
description: "Completed gestational weeks."
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
additionalProperties: !1
|
|
72
|
+
},
|
|
73
|
+
idempotent: !0,
|
|
74
|
+
descriptionKey: "ui.agent.pregnancyWeightGain.actions.setValue",
|
|
75
|
+
description: "Set one or more of the four measurements. Omitted fields are left unchanged; the assessment recomputes as soon as all four are valid.",
|
|
76
|
+
examples: [
|
|
77
|
+
{
|
|
78
|
+
args: {
|
|
79
|
+
heightCm: 165,
|
|
80
|
+
prePregnancyKg: 60,
|
|
81
|
+
currentKg: 72,
|
|
82
|
+
gestationalWeeks: 30
|
|
83
|
+
},
|
|
84
|
+
note: "165 cm, 60 → 72 kg at 30 weeks → +12 kg against the normal-BMI band."
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
invoke: (t, i) => {
|
|
88
|
+
t.setInputs(i);
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
set_plurality: {
|
|
92
|
+
// Re-keys which IOM band applies — a view-config write on the
|
|
93
|
+
// calculator, never a record mutation.
|
|
94
|
+
safety: "write",
|
|
95
|
+
argsType: "{ plurality: 'singleton' | 'twin' | 'triplet' }",
|
|
96
|
+
argsSchema: {
|
|
97
|
+
type: "object",
|
|
98
|
+
properties: {
|
|
99
|
+
plurality: {
|
|
100
|
+
enum: ["singleton", "twin", "triplet"],
|
|
101
|
+
description: "Number of babies to assess against."
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
required: ["plurality"]
|
|
105
|
+
},
|
|
106
|
+
idempotent: !0,
|
|
107
|
+
descriptionKey: "ui.agent.pregnancyWeightGain.actions.setPlurality",
|
|
108
|
+
description: "Choose the number of babies. Twins use the higher IOM twin bands; triplets have no published IOM range, so only the actual gain is reported.",
|
|
109
|
+
examples: [
|
|
110
|
+
{
|
|
111
|
+
args: { plurality: "twin" },
|
|
112
|
+
note: "Assess against the twin bands."
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
invoke: (t, i) => {
|
|
116
|
+
t.setPlurality(i.plurality);
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
reset: {
|
|
120
|
+
// Clears the entered measurements — recoverable only by re-entering
|
|
121
|
+
// them, so it is destructive from the agent's point of view.
|
|
122
|
+
safety: "destructive",
|
|
123
|
+
idempotent: !0,
|
|
124
|
+
descriptionKey: "ui.agent.pregnancyWeightGain.actions.reset",
|
|
125
|
+
description: "Clear the four measurements and the computed assessment. The plurality choice is a setting and is kept.",
|
|
126
|
+
invoke: (t) => {
|
|
127
|
+
t.reset();
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
get_result: {
|
|
131
|
+
safety: "read",
|
|
132
|
+
returns: "{ actualGainKg: number, status: string | null, … } | null",
|
|
133
|
+
returnsSchema: {
|
|
134
|
+
oneOf: [
|
|
135
|
+
{
|
|
136
|
+
type: "object",
|
|
137
|
+
properties: {
|
|
138
|
+
category: {
|
|
139
|
+
enum: ["underweight", "normal", "overweight", "obese"]
|
|
140
|
+
},
|
|
141
|
+
plurality: { enum: ["singleton", "twin", "triplet"] },
|
|
142
|
+
actualGainKg: { type: "number" },
|
|
143
|
+
status: {
|
|
144
|
+
oneOf: [
|
|
145
|
+
{ enum: ["below", "within", "above"] },
|
|
146
|
+
{ type: "null" }
|
|
147
|
+
]
|
|
148
|
+
},
|
|
149
|
+
recommendedToDate: {
|
|
150
|
+
oneOf: [
|
|
151
|
+
{
|
|
152
|
+
type: "object",
|
|
153
|
+
properties: {
|
|
154
|
+
min: { type: "number" },
|
|
155
|
+
max: { type: "number" }
|
|
156
|
+
},
|
|
157
|
+
required: ["min", "max"]
|
|
158
|
+
},
|
|
159
|
+
{ type: "null" }
|
|
160
|
+
]
|
|
161
|
+
},
|
|
162
|
+
totalRange: {
|
|
163
|
+
oneOf: [
|
|
164
|
+
{
|
|
165
|
+
type: "object",
|
|
166
|
+
properties: {
|
|
167
|
+
min: { type: "number" },
|
|
168
|
+
max: { type: "number" }
|
|
169
|
+
},
|
|
170
|
+
required: ["min", "max"]
|
|
171
|
+
},
|
|
172
|
+
{ type: "null" }
|
|
173
|
+
]
|
|
174
|
+
},
|
|
175
|
+
weeklyRate: { type: ["number", "null"] },
|
|
176
|
+
rateStatus: {
|
|
177
|
+
oneOf: [
|
|
178
|
+
{ enum: ["below", "within", "above"] },
|
|
179
|
+
{ type: "null" }
|
|
180
|
+
]
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
required: ["category", "actualGainKg"]
|
|
184
|
+
},
|
|
185
|
+
{ type: "null" }
|
|
186
|
+
]
|
|
187
|
+
},
|
|
188
|
+
idempotent: !0,
|
|
189
|
+
descriptionKey: "ui.agent.pregnancyWeightGain.actions.getResult",
|
|
190
|
+
description: "Read back the computed assessment — the same value the `result` state slot returns. Null until every input is valid.",
|
|
191
|
+
invoke: (t) => t.getResult()
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
domHooks: {
|
|
195
|
+
root: {
|
|
196
|
+
attr: "data-component",
|
|
197
|
+
value: "pregnancy-weight-gain",
|
|
198
|
+
description: "Marks the PregnancyWeightGain calculator wrapper. The themed DOM carries the computed result card; an SR-only live region announces the actual gain and status."
|
|
199
|
+
},
|
|
200
|
+
instanceId: {
|
|
201
|
+
attr: "data-component-id",
|
|
202
|
+
sourceProp: "id",
|
|
203
|
+
description: "Sourced from the `id` prop, and also the registry key — without an `id` the instance does not register and the handle-driven actions are unreachable."
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}, re = {
|
|
207
|
+
underweight: { min: 12.5, max: 18 },
|
|
208
|
+
normal: { min: 11.5, max: 16 },
|
|
209
|
+
overweight: { min: 7, max: 11.5 },
|
|
210
|
+
obese: { min: 5, max: 9 }
|
|
211
|
+
}, se = {
|
|
212
|
+
normal: { min: 16.8, max: 24.5 },
|
|
213
|
+
overweight: { min: 14.1, max: 22.7 },
|
|
214
|
+
obese: { min: 11.3, max: 19.1 }
|
|
215
|
+
};
|
|
216
|
+
function H(t, i = "singleton") {
|
|
217
|
+
return i === "triplet" ? null : i === "twin" ? se[t] ?? null : re[t];
|
|
218
|
+
}
|
|
219
|
+
const j = {
|
|
220
|
+
underweight: { min: 0.44, max: 0.58 },
|
|
221
|
+
normal: { min: 0.35, max: 0.5 },
|
|
222
|
+
overweight: { min: 0.23, max: 0.33 },
|
|
223
|
+
obese: { min: 0.17, max: 0.27 }
|
|
224
|
+
}, w = { min: 0.5, max: 2 }, G = 13, le = (w.min + w.max) / 2;
|
|
225
|
+
function oe(t, i, u = "singleton") {
|
|
226
|
+
if (u !== "singleton") {
|
|
227
|
+
const s = H(t, u);
|
|
228
|
+
if (!s) return null;
|
|
229
|
+
if (i <= 0) return { min: 0, max: 0 };
|
|
230
|
+
const p = Math.min(i, 40) / 40;
|
|
231
|
+
return { min: s.min * p, max: s.max * p };
|
|
232
|
+
}
|
|
233
|
+
if (i <= 0) return { min: 0, max: 0 };
|
|
234
|
+
if (i <= G) {
|
|
235
|
+
const s = i / G;
|
|
236
|
+
return {
|
|
237
|
+
min: w.min * s,
|
|
238
|
+
max: w.max * s
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
const o = Math.min(i, 40) - G, g = j[t];
|
|
242
|
+
return {
|
|
243
|
+
min: w.min + g.min * o,
|
|
244
|
+
max: w.max + g.max * o
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
function ge(t) {
|
|
248
|
+
const i = ne(t.prePregnancyBmi), u = t.plurality ?? "singleton", o = H(i, u), g = o ? oe(i, t.gestationalWeeks, u) : null, s = t.currentWeightKg - t.prePregnancyWeightKg, p = g ? s < g.min ? "below" : s > g.max ? "above" : "within" : null;
|
|
249
|
+
let h = null, W = null;
|
|
250
|
+
if (u === "singleton" && t.gestationalWeeks > G) {
|
|
251
|
+
const T = t.gestationalWeeks - G;
|
|
252
|
+
h = (s - le) / T;
|
|
253
|
+
const k = j[i];
|
|
254
|
+
W = h < k.min ? "below" : h > k.max ? "above" : "within";
|
|
255
|
+
}
|
|
256
|
+
return {
|
|
257
|
+
category: i,
|
|
258
|
+
plurality: u,
|
|
259
|
+
totalRange: o,
|
|
260
|
+
recommendedToDate: g,
|
|
261
|
+
actualGainKg: s,
|
|
262
|
+
status: p,
|
|
263
|
+
weeklyRate: h,
|
|
264
|
+
rateStatus: W
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
const ue = X("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
|
|
268
|
+
variants: {
|
|
269
|
+
width: { full: "ds:w-full", auto: "ds:inline-flex" }
|
|
270
|
+
},
|
|
271
|
+
defaultVariants: { width: "full" }
|
|
272
|
+
}), F = {
|
|
273
|
+
below: "warning",
|
|
274
|
+
within: "success",
|
|
275
|
+
above: "warning"
|
|
276
|
+
}, ce = {
|
|
277
|
+
below: "--warning-readable",
|
|
278
|
+
within: "--success",
|
|
279
|
+
above: "--warning-readable"
|
|
280
|
+
};
|
|
281
|
+
function me(t) {
|
|
282
|
+
return ce[t];
|
|
283
|
+
}
|
|
284
|
+
const de = U(
|
|
285
|
+
({
|
|
286
|
+
defaultPlurality: t = "singleton",
|
|
287
|
+
defaultHeightCm: i,
|
|
288
|
+
defaultPrePregnancyKg: u,
|
|
289
|
+
onResultChange: o,
|
|
290
|
+
onInsert: g,
|
|
291
|
+
insertVariant: s = "insert",
|
|
292
|
+
onCopy: p,
|
|
293
|
+
onError: h,
|
|
294
|
+
insertBrand: W,
|
|
295
|
+
id: T,
|
|
296
|
+
width: k,
|
|
297
|
+
className: q
|
|
298
|
+
}, L) => {
|
|
299
|
+
const { t: n, i18n: O } = Y(), [N, S] = x(
|
|
300
|
+
i ?? null
|
|
301
|
+
), [c, $] = x(
|
|
302
|
+
u ?? null
|
|
303
|
+
), [y, C] = x(null), [b, D] = x(null), [f, A] = x(t), K = ae(c, N), e = _(() => K === null || c === null || y === null || b === null ? null : ge({
|
|
304
|
+
prePregnancyBmi: K,
|
|
305
|
+
prePregnancyWeightKg: c,
|
|
306
|
+
currentWeightKg: y,
|
|
307
|
+
gestationalWeeks: b,
|
|
308
|
+
plurality: f
|
|
309
|
+
}), [K, c, y, b, f]), m = _(
|
|
310
|
+
() => new Intl.NumberFormat(O.language, {
|
|
311
|
+
minimumFractionDigits: 1,
|
|
312
|
+
maximumFractionDigits: 1
|
|
313
|
+
}),
|
|
314
|
+
[O.language]
|
|
315
|
+
);
|
|
316
|
+
J(() => {
|
|
317
|
+
o == null || o(e);
|
|
318
|
+
}, [e, o]);
|
|
319
|
+
const d = Q({
|
|
320
|
+
heightCm: N,
|
|
321
|
+
prePregnancyKg: c,
|
|
322
|
+
currentKg: y,
|
|
323
|
+
weeks: b,
|
|
324
|
+
plurality: f,
|
|
325
|
+
result: e
|
|
326
|
+
});
|
|
327
|
+
d.current = {
|
|
328
|
+
heightCm: N,
|
|
329
|
+
prePregnancyKg: c,
|
|
330
|
+
currentKg: y,
|
|
331
|
+
weeks: b,
|
|
332
|
+
plurality: f,
|
|
333
|
+
result: e
|
|
334
|
+
};
|
|
335
|
+
const V = _(
|
|
336
|
+
() => ({
|
|
337
|
+
getInputs: () => ({
|
|
338
|
+
heightCm: d.current.heightCm,
|
|
339
|
+
prePregnancyKg: d.current.prePregnancyKg,
|
|
340
|
+
currentKg: d.current.currentKg,
|
|
341
|
+
gestationalWeeks: d.current.weeks
|
|
342
|
+
}),
|
|
343
|
+
setInputs: (r) => {
|
|
344
|
+
"heightCm" in r && S(r.heightCm ?? null), "prePregnancyKg" in r && $(r.prePregnancyKg ?? null), "currentKg" in r && C(r.currentKg ?? null), "gestationalWeeks" in r && D(r.gestationalWeeks ?? null);
|
|
345
|
+
},
|
|
346
|
+
getPlurality: () => d.current.plurality,
|
|
347
|
+
setPlurality: (r) => A(r),
|
|
348
|
+
getResult: () => d.current.result,
|
|
349
|
+
reset: () => {
|
|
350
|
+
S(null), $(null), C(null), D(null);
|
|
351
|
+
}
|
|
352
|
+
}),
|
|
353
|
+
[]
|
|
354
|
+
);
|
|
355
|
+
Z(ie, V, T);
|
|
356
|
+
const v = n("pregnancyWeightGain.units.kg"), R = (r) => `${m.format(r.min)} – ${m.format(r.max)} ${v}`;
|
|
357
|
+
return /* @__PURE__ */ l(
|
|
358
|
+
"div",
|
|
359
|
+
{
|
|
360
|
+
ref: L,
|
|
361
|
+
"data-component": "pregnancy-weight-gain",
|
|
362
|
+
"data-component-id": T,
|
|
363
|
+
className: ue({ width: k, className: q }),
|
|
364
|
+
children: [
|
|
365
|
+
/* @__PURE__ */ l("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-2", children: [
|
|
366
|
+
/* @__PURE__ */ a(
|
|
367
|
+
P,
|
|
368
|
+
{
|
|
369
|
+
label: `${n("pregnancyWeightGain.height")} (${n("pregnancyWeightGain.units.cm")})`,
|
|
370
|
+
children: /* @__PURE__ */ a(
|
|
371
|
+
I,
|
|
372
|
+
{
|
|
373
|
+
mode: "decimal",
|
|
374
|
+
min: 0,
|
|
375
|
+
step: 0.5,
|
|
376
|
+
value: N,
|
|
377
|
+
onChange: S
|
|
378
|
+
}
|
|
379
|
+
)
|
|
380
|
+
}
|
|
381
|
+
),
|
|
382
|
+
/* @__PURE__ */ a(
|
|
383
|
+
P,
|
|
384
|
+
{
|
|
385
|
+
label: `${n("pregnancyWeightGain.prePregnancyWeight")} (${v})`,
|
|
386
|
+
children: /* @__PURE__ */ a(
|
|
387
|
+
I,
|
|
388
|
+
{
|
|
389
|
+
mode: "decimal",
|
|
390
|
+
min: 0,
|
|
391
|
+
step: 0.1,
|
|
392
|
+
value: c,
|
|
393
|
+
onChange: $
|
|
394
|
+
}
|
|
395
|
+
)
|
|
396
|
+
}
|
|
397
|
+
),
|
|
398
|
+
/* @__PURE__ */ a(
|
|
399
|
+
P,
|
|
400
|
+
{
|
|
401
|
+
label: `${n("pregnancyWeightGain.currentWeight")} (${v})`,
|
|
402
|
+
children: /* @__PURE__ */ a(
|
|
403
|
+
I,
|
|
404
|
+
{
|
|
405
|
+
mode: "decimal",
|
|
406
|
+
min: 0,
|
|
407
|
+
step: 0.1,
|
|
408
|
+
value: y,
|
|
409
|
+
onChange: C
|
|
410
|
+
}
|
|
411
|
+
)
|
|
412
|
+
}
|
|
413
|
+
),
|
|
414
|
+
/* @__PURE__ */ a(P, { label: n("pregnancyWeightGain.gestationalWeeks"), children: /* @__PURE__ */ a(
|
|
415
|
+
I,
|
|
416
|
+
{
|
|
417
|
+
mode: "integer",
|
|
418
|
+
min: 0,
|
|
419
|
+
max: 42,
|
|
420
|
+
value: b,
|
|
421
|
+
onChange: D
|
|
422
|
+
}
|
|
423
|
+
) })
|
|
424
|
+
] }),
|
|
425
|
+
/* @__PURE__ */ l(
|
|
426
|
+
ee,
|
|
427
|
+
{
|
|
428
|
+
label: n("pregnancyWeightGain.plurality.label"),
|
|
429
|
+
variant: "horizontal",
|
|
430
|
+
value: f,
|
|
431
|
+
onValueChange: (r) => A(r),
|
|
432
|
+
children: [
|
|
433
|
+
/* @__PURE__ */ a(
|
|
434
|
+
M,
|
|
435
|
+
{
|
|
436
|
+
label: n("pregnancyWeightGain.plurality.singleton"),
|
|
437
|
+
value: "singleton"
|
|
438
|
+
}
|
|
439
|
+
),
|
|
440
|
+
/* @__PURE__ */ a(M, { label: n("pregnancyWeightGain.plurality.twin"), value: "twin" }),
|
|
441
|
+
/* @__PURE__ */ a(
|
|
442
|
+
M,
|
|
443
|
+
{
|
|
444
|
+
label: n("pregnancyWeightGain.plurality.triplet"),
|
|
445
|
+
value: "triplet"
|
|
446
|
+
}
|
|
447
|
+
)
|
|
448
|
+
]
|
|
449
|
+
}
|
|
450
|
+
),
|
|
451
|
+
/* @__PURE__ */ a("p", { className: "ds:sr-only", role: "status", "aria-live": "polite", children: e ? `${n("pregnancyWeightGain.actualGain")}: ${m.format(
|
|
452
|
+
e.actualGainKg
|
|
453
|
+
)} ${v}.${e.status ? ` ${n(`pregnancyWeightGain.status.${e.status}`)}.` : ` ${n("pregnancyWeightGain.noGuideline")}`}` : "" }),
|
|
454
|
+
e ? /* @__PURE__ */ a(B, { variant: "elevated", children: /* @__PURE__ */ l(B.Body, { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
455
|
+
/* @__PURE__ */ l("dl", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-2", children: [
|
|
456
|
+
/* @__PURE__ */ l("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
457
|
+
/* @__PURE__ */ a("dt", { className: "type-label ds:text-muted-foreground", children: n("pregnancyWeightGain.prePregnancyBmi") }),
|
|
458
|
+
/* @__PURE__ */ l("dd", { className: "type-body ds:text-foreground", children: [
|
|
459
|
+
m.format(K ?? 0),
|
|
460
|
+
" ·",
|
|
461
|
+
" ",
|
|
462
|
+
n(`pregnancyWeightGain.category.${e.category}`)
|
|
463
|
+
] })
|
|
464
|
+
] }),
|
|
465
|
+
/* @__PURE__ */ l("div", { className: "ds:flex ds:flex-col ds:items-start ds:gap-[var(--spacing-xs)]", children: [
|
|
466
|
+
/* @__PURE__ */ a("dt", { className: "type-label ds:text-muted-foreground", children: n("pregnancyWeightGain.actualGain") }),
|
|
467
|
+
/* @__PURE__ */ l("dd", { className: "ds:flex ds:flex-col ds:items-start ds:gap-[var(--spacing-xs)]", children: [
|
|
468
|
+
/* @__PURE__ */ l("span", { className: "type-metric ds:text-foreground", children: [
|
|
469
|
+
m.format(e.actualGainKg),
|
|
470
|
+
" ",
|
|
471
|
+
v
|
|
472
|
+
] }),
|
|
473
|
+
e.status ? /* @__PURE__ */ a(E, { variant: F[e.status], size: "lg", children: n(`pregnancyWeightGain.status.${e.status}`) }) : null
|
|
474
|
+
] })
|
|
475
|
+
] }),
|
|
476
|
+
e.recommendedToDate && e.totalRange ? /* @__PURE__ */ l(z, { children: [
|
|
477
|
+
/* @__PURE__ */ l("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
478
|
+
/* @__PURE__ */ a("dt", { className: "type-label ds:text-muted-foreground", children: n("pregnancyWeightGain.recommendedToDate") }),
|
|
479
|
+
/* @__PURE__ */ a("dd", { className: "type-body ds:text-foreground", children: R(e.recommendedToDate) })
|
|
480
|
+
] }),
|
|
481
|
+
/* @__PURE__ */ l("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
482
|
+
/* @__PURE__ */ a("dt", { className: "type-label ds:text-muted-foreground", children: n("pregnancyWeightGain.recommendedTotal") }),
|
|
483
|
+
/* @__PURE__ */ a("dd", { className: "type-body ds:text-foreground", children: R(e.totalRange) })
|
|
484
|
+
] })
|
|
485
|
+
] }) : null
|
|
486
|
+
] }),
|
|
487
|
+
e.totalRange ? null : /* @__PURE__ */ a("p", { className: "type-body ds:text-foreground", children: n("pregnancyWeightGain.noGuideline") }),
|
|
488
|
+
e.weeklyRate !== null && e.rateStatus ? /* @__PURE__ */ l("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
489
|
+
/* @__PURE__ */ a("span", { className: "type-label ds:text-muted-foreground", children: n("pregnancyWeightGain.weeklyRate") }),
|
|
490
|
+
/* @__PURE__ */ a("span", { className: "type-body ds:text-foreground", children: n("pregnancyWeightGain.perWeek", {
|
|
491
|
+
value: m.format(e.weeklyRate)
|
|
492
|
+
}) }),
|
|
493
|
+
/* @__PURE__ */ a(E, { variant: F[e.rateStatus], children: n(`pregnancyWeightGain.status.${e.rateStatus}`) })
|
|
494
|
+
] }) : null,
|
|
495
|
+
/* @__PURE__ */ a("p", { className: "type-body-sm ds:text-muted-foreground", children: n(
|
|
496
|
+
f === "singleton" ? "pregnancyWeightGain.disclaimer" : "pregnancyWeightGain.disclaimerMultiple"
|
|
497
|
+
) }),
|
|
498
|
+
e.status && e.recommendedToDate && e.totalRange && (s === "copy" || g) ? /* @__PURE__ */ a(
|
|
499
|
+
te,
|
|
500
|
+
{
|
|
501
|
+
onInsert: g,
|
|
502
|
+
variant: s,
|
|
503
|
+
onCopy: p,
|
|
504
|
+
onError: h,
|
|
505
|
+
card: {
|
|
506
|
+
title: n("insert.title.weightGain"),
|
|
507
|
+
icon: "baby",
|
|
508
|
+
highlight: n(`pregnancyWeightGain.status.${e.status}`),
|
|
509
|
+
// Chip shares the gain-status semantic token so the
|
|
510
|
+
// inserted PNG chip matches the on-screen status badge —
|
|
511
|
+
// with the contrast-safe orange override for the
|
|
512
|
+
// `--warning` below/above statuses.
|
|
513
|
+
highlightToken: me(e.status),
|
|
514
|
+
brand: W,
|
|
515
|
+
fields: [
|
|
516
|
+
{
|
|
517
|
+
// Actual gain is the headline trend → trending-up glyph.
|
|
518
|
+
icon: "trending-up",
|
|
519
|
+
label: n("pregnancyWeightGain.actualGain"),
|
|
520
|
+
value: `${m.format(e.actualGainKg)} ${v}`
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
// Recommended weight band → scale glyph.
|
|
524
|
+
icon: "scale",
|
|
525
|
+
label: n("pregnancyWeightGain.recommendedToDate"),
|
|
526
|
+
value: R(e.recommendedToDate)
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
// Recommended total weight band → scale glyph.
|
|
530
|
+
icon: "scale",
|
|
531
|
+
label: n("pregnancyWeightGain.recommendedTotal"),
|
|
532
|
+
value: R(e.totalRange)
|
|
533
|
+
}
|
|
534
|
+
]
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
) : null
|
|
538
|
+
] }) }) : /* @__PURE__ */ a("p", { className: "type-body ds:text-muted-foreground", children: n("pregnancyWeightGain.empty") })
|
|
539
|
+
]
|
|
540
|
+
}
|
|
541
|
+
);
|
|
542
|
+
}
|
|
543
|
+
);
|
|
544
|
+
de.displayName = "PregnancyWeightGain";
|
|
545
|
+
export {
|
|
546
|
+
de as P,
|
|
547
|
+
j as R,
|
|
548
|
+
re as T,
|
|
549
|
+
ge as a,
|
|
550
|
+
ie as p,
|
|
551
|
+
oe as r
|
|
552
|
+
};
|
|
553
|
+
//# sourceMappingURL=pregnancy-weight-gain-B5KSJzdc.js.map
|