@alfadocs/ui-kit 0.47.0 → 0.49.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/{address-autocomplete-CSjMrBvu.js → address-autocomplete-CT-9AOli.js} +2 -2
- package/dist/_chunks/{agenda-card-CFyWSX7Z.js → agenda-card-BaSfVfrL.js} +25 -29
- package/dist/_chunks/{agenda-tray-Dyj9ChHC.js → agenda-tray-DQayYmQ0.js} +50 -67
- package/dist/_chunks/ai-consent-banner-F2md5JD3.js +169 -0
- package/dist/_chunks/ai-tools-rail-CYLWrRmm.js +280 -0
- package/dist/_chunks/{alert-ywPR59NE.js → alert-CUTxnym2.js} +56 -35
- package/dist/_chunks/{alia-sidebar-CVIPrdc9.js → alia-sidebar-DlvyXgVC.js} +3 -2
- package/dist/_chunks/anamnesis-card-CmkBVAln.js +156 -0
- package/dist/_chunks/antenatal-schedule-timeline-Dg0m0yFl.js +412 -0
- package/dist/_chunks/appointment-tray-BwDHhWWC.js +419 -0
- package/dist/_chunks/{ar-DEz65ZJW.js → ar-C68WKG5a.js} +2 -2
- package/dist/_chunks/{audio-recorder-DC-v9YFW.js → audio-recorder-DVJXV7_k.js} +2 -2
- package/dist/_chunks/bishop-score-2MzAz8NE.js +185 -0
- package/dist/_chunks/{bmi-calculator-CQqXTVNL.js → bmi-calculator-DdylQzT6.js} +2 -2
- package/dist/_chunks/{booking-DlDVuWMd.js → booking-DljH0JkS.js} +294 -306
- package/dist/_chunks/{calculator-dialog-D-nfvteH.js → calculator-dialog-CFk4I91b.js} +2 -2
- package/dist/_chunks/calendar-days-C4BmpCZg.js +23 -0
- package/dist/_chunks/{calendar-YHFknAGv.js → calendar-oYWOCrnf.js} +195 -210
- package/dist/_chunks/care-plan-card-QmNpGggC.js +252 -0
- package/dist/_chunks/care-plan-entry-card-Cnra7vUc.js +318 -0
- package/dist/_chunks/{chat-message-B5JpFj0F.js → chat-message-Dm8U2RY1.js} +36 -35
- package/dist/_chunks/circle-arrow-up-CC_85SuH.js +16 -0
- package/dist/_chunks/clinical-note-card-BYo437dU.js +333 -0
- package/dist/_chunks/{contact-profile-card-DHyuAPXM.js → contact-profile-card-DvvVfAA2.js} +102 -115
- package/dist/_chunks/cycle-calculator-oOkj5wlB.js +252 -0
- package/dist/_chunks/{date-picker-Bq7xhMA-.js → date-picker-BfHblqwA.js} +2 -2
- package/dist/_chunks/{date-picker-variants-DLi1Va_e.js → date-picker-variants-CXEAx3O_.js} +22 -22
- package/dist/_chunks/{date-range-picker-DcXuI9y7.js → date-range-picker-hcAMs1wO.js} +3 -3
- package/dist/_chunks/{date-time-picker-RimumeLR.js → date-time-picker-H-3Pwqlb.js} +9 -9
- package/dist/_chunks/{de-bTBGdjPS.js → de-DK4A9_a8.js} +2 -2
- package/dist/_chunks/{dialog-BTpZV6It.js → dialog-DMGnSelc.js} +55 -55
- package/dist/_chunks/{document-scanner-BqLsGs4Y.js → document-scanner-Cxqvq7GR.js} +2 -2
- package/dist/_chunks/due-date-calculator-tDqZXPWO.js +256 -0
- package/dist/_chunks/{editable-currency-cell-renderer-CLil9B29.js → editable-currency-cell-renderer-Bh48OHRv.js} +2 -2
- package/dist/_chunks/{el-BWG5RXxa.js → el-B29HXhG5.js} +2 -2
- package/dist/_chunks/entity-card-COhmqHly.js +69 -0
- package/dist/_chunks/{es-DfO_G435.js → es-BOwPVwWn.js} +2 -2
- package/dist/_chunks/fetal-weight-Da-B4P4k.js +122 -0
- package/dist/_chunks/{fr-BTn24bs8.js → fr-DoDBtn0T.js} +2 -2
- package/dist/_chunks/{freemium-paywall-DzpD63WY.js → freemium-paywall-BWaLWje-.js} +2 -2
- package/dist/_chunks/gestational-age-calculator-DbDfTJU2.js +311 -0
- package/dist/_chunks/hcg-doubling-DAnpbale.js +170 -0
- package/dist/_chunks/{hi-Dj3oYd84.js → hi-DGByrKby.js} +2 -2
- package/dist/_chunks/{insert-result-C5ABnzDl.js → insert-result-DNdi_JYW.js} +140 -168
- package/dist/_chunks/is-safe-url-DkETxeHz.js +7 -0
- package/dist/_chunks/{isSameWeek-HfxKk6Lz.js → isSameWeek-B1odL2vR.js} +2 -2
- package/dist/_chunks/{it-Y85ofIQQ.js → it-B16rEecm.js} +3 -3
- package/dist/_chunks/{ja-CQ7J6YoA.js → ja-B0viOgft.js} +2 -2
- package/dist/_chunks/languages-DsVf_WzT.js +19 -0
- package/dist/_chunks/layers-pzGcbLPj.js +34 -0
- package/dist/_chunks/{marketplace-app-shell-Gfsf78ge.js → marketplace-app-shell-UKSLx9K_.js} +3 -3
- package/dist/_chunks/{message-card-DSPw5ghw.js → message-card-Dvl1TgaN.js} +15 -19
- package/dist/_chunks/{message-tray-hSQff9u4.js → message-tray-Dl6GQaaV.js} +2 -2
- package/dist/_chunks/{nl-D9kHCmp3.js → nl-cBxEX2QU.js} +2 -2
- package/dist/_chunks/operator-hero-CM8949Hd.js +198 -0
- package/dist/_chunks/{patient-search-CocVcGJ3.js → patient-search-BJOmTmDA.js} +2 -2
- package/dist/_chunks/{patient-shell-CnT4L8gn.js → patient-shell-DUmhXnFq.js} +2 -2
- package/dist/_chunks/patient-summary-card-BnTqxcTr.js +443 -0
- package/dist/_chunks/{payment-form-BNTx4876.js → payment-form-xmeCkxas.js} +2 -2
- package/dist/_chunks/payment-request-card-B_lyobd0.js +478 -0
- package/dist/_chunks/{pdf-viewer-CWEXTlwq.js → pdf-viewer-q1D3Uion.js} +4 -4
- package/dist/_chunks/periodontal-chart-card-BYs9hax1.js +455 -0
- package/dist/_chunks/phone-Bi5yUm4I.js +20 -0
- package/dist/_chunks/{pl-B3Smqpkr.js → pl-DtS08ioY.js} +3 -3
- package/dist/_chunks/{practice-results-DDi-kvaD.js → practice-results-Cq1y8JFD.js} +4 -3
- package/dist/_chunks/pregnancy-weight-gain-CCGrvarh.js +322 -0
- package/dist/_chunks/product-hub-panel-CkfZBA3t.js +620 -0
- package/dist/_chunks/{pt-D3J-1c_7.js → pt-yFXs1VvH.js} +2 -2
- package/dist/_chunks/{ro-BKAbbEA3.js → ro-DsCzSrzR.js} +2 -2
- package/dist/_chunks/{ru-BeG8f0Ep.js → ru-DgDxL0pc.js} +3 -3
- package/dist/_chunks/scan-line-lGioFwLC.js +18 -0
- package/dist/_chunks/shield-check-BjCGH_Sr.js +21 -0
- package/dist/_chunks/{sidebar-_vJXI9rB.js → sidebar-h78cTNLh.js} +440 -338
- package/dist/_chunks/{sign-document-BCyLpFHJ.js → sign-document-CZkAf28g.js} +2 -2
- package/dist/_chunks/{sq-_hRPaeUy.js → sq-DHlCYN67.js} +2 -2
- package/dist/_chunks/subDays-Bs00akhK.js +8 -0
- package/dist/_chunks/{sv-g009fSpe.js → sv-O0QaQs_s.js} +2 -2
- package/dist/_chunks/{tr-OKUOuhMW.js → tr-BmNDRuio.js} +2 -2
- package/dist/_chunks/{transaction-chip-B8ujzowA.js → transaction-chip-BZCa6XDn.js} +8 -6
- package/dist/_chunks/{unit-converter-u3CwNDpP.js → unit-converter-jWp3Z85y.js} +2 -2
- package/dist/_chunks/user-cog-BS_qc8nA.js +24 -0
- package/dist/_chunks/video-BAeICxCT.js +21 -0
- package/dist/_chunks/warning-stack-CXfoAT-_.js +220 -0
- package/dist/_chunks/{workflow-map-Djn1QMJc.js → workflow-map-DzX_LI4y.js} +139 -157
- package/dist/_chunks/{zh-CN-De4zwEhx.js → zh-CN-CgVJZEzz.js} +3 -3
- package/dist/agent-catalog.json +367 -1
- package/dist/components/_shared/antenatal-schedule-timeline.d.ts +18 -0
- package/dist/components/_shared/antenatal-schedule.d.ts +68 -0
- package/dist/components/_shared/entity-card/entity-card.d.ts +40 -0
- package/dist/components/_shared/entity-card/index.d.ts +3 -0
- package/dist/components/_shared/index.d.ts +5 -0
- package/dist/components/_shared/is-safe-url.d.ts +13 -0
- package/dist/components/_shared/obstetrics.d.ts +138 -0
- package/dist/components/address-autocomplete/index.js +1 -1
- package/dist/components/agenda-card/agenda-card.d.ts +1 -2
- package/dist/components/agenda-card/index.d.ts +2 -1
- package/dist/components/agenda-card/index.js +6 -5
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-consent-banner/ai-consent-banner.agent.d.ts +4 -0
- package/dist/components/ai-consent-banner/ai-consent-banner.d.ts +45 -0
- package/dist/components/ai-consent-banner/index.d.ts +4 -0
- package/dist/components/ai-consent-banner/index.js +6 -0
- package/dist/components/ai-tools-rail/ai-tools-rail.agent.d.ts +4 -0
- package/dist/components/ai-tools-rail/ai-tools-rail.d.ts +60 -0
- package/dist/components/ai-tools-rail/index.d.ts +4 -0
- package/dist/components/ai-tools-rail/index.js +6 -0
- package/dist/components/alert/alert.d.ts +2 -2
- package/dist/components/alert/index.js +1 -1
- package/dist/components/anamnesis-card/anamnesis-card.d.ts +68 -0
- package/dist/components/anamnesis-card/index.d.ts +3 -0
- package/dist/components/anamnesis-card/index.js +5 -0
- package/dist/components/appointment-card/appointment-card.agent.d.ts +3 -0
- package/dist/components/appointment-card/appointment-card.d.ts +93 -0
- package/dist/components/appointment-card/appointment-tray.agent.d.ts +4 -0
- package/dist/components/appointment-card/appointment-tray.d.ts +48 -0
- package/dist/components/appointment-card/index.d.ts +8 -0
- package/dist/components/appointment-card/index.js +10 -0
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/badge/badge.d.ts +1 -1
- package/dist/components/bishop-score/bishop-score.d.ts +27 -0
- package/dist/components/bishop-score/bishop.d.ts +30 -0
- package/dist/components/bishop-score/index.d.ts +4 -0
- package/dist/components/bishop-score/index.js +10 -0
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calculator-dialog/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/card/card.d.ts +1 -1
- package/dist/components/care-plan-card/care-plan-card.agent.d.ts +4 -0
- package/dist/components/care-plan-card/care-plan-card.d.ts +102 -0
- package/dist/components/care-plan-card/index.d.ts +4 -0
- package/dist/components/care-plan-card/index.js +6 -0
- package/dist/components/care-plan-entry-card/care-plan-entry-card.agent.d.ts +4 -0
- package/dist/components/care-plan-entry-card/care-plan-entry-card.d.ts +110 -0
- package/dist/components/care-plan-entry-card/index.d.ts +4 -0
- package/dist/components/care-plan-entry-card/index.js +6 -0
- package/dist/components/chat-message/chat-message.d.ts +7 -0
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/clinical-note-card/clinical-note-card.agent.d.ts +4 -0
- package/dist/components/clinical-note-card/clinical-note-card.d.ts +98 -0
- package/dist/components/clinical-note-card/index.d.ts +4 -0
- package/dist/components/clinical-note-card/index.js +6 -0
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/cycle-calculator/cycle.d.ts +5 -0
- 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/dialog/dialog.d.ts +7 -0
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/due-date-calculator/due-date-calculator.d.ts +13 -1
- package/dist/components/due-date-calculator/gestation.d.ts +1 -59
- package/dist/components/due-date-calculator/index.d.ts +1 -1
- package/dist/components/due-date-calculator/index.js +16 -10
- package/dist/components/fetal-weight/efw.d.ts +25 -0
- package/dist/components/fetal-weight/fetal-weight.d.ts +27 -0
- package/dist/components/fetal-weight/index.d.ts +4 -0
- package/dist/components/fetal-weight/index.js +6 -0
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +25 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/hcg-doubling.d.ts +31 -0
- package/dist/components/hcg-doubling/hcg.d.ts +33 -0
- package/dist/components/hcg-doubling/index.d.ts +4 -0
- package/dist/components/hcg-doubling/index.js +7 -0
- package/dist/components/index.d.ts +14 -0
- package/dist/components/message-card/index.js +5 -4
- package/dist/components/message-card/message-card.d.ts +1 -2
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/operator-hero/operator-hero.d.ts +9 -0
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.d.ts +4 -0
- package/dist/components/patient-summary-card/index.js +6 -0
- package/dist/components/patient-summary-card/patient-summary-card.agent.d.ts +4 -0
- package/dist/components/patient-summary-card/patient-summary-card.d.ts +120 -0
- package/dist/components/payment-card/index.d.ts +7 -0
- package/dist/components/payment-card/index.js +8 -0
- package/dist/components/payment-card/payment-card.agent.d.ts +4 -0
- package/dist/components/payment-card/payment-card.d.ts +71 -0
- package/dist/components/payment-card/payment-request-card.agent.d.ts +4 -0
- package/dist/components/payment-card/payment-request-card.d.ts +43 -0
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.d.ts +4 -0
- package/dist/components/periodontal-chart-card/index.js +7 -0
- package/dist/components/periodontal-chart-card/periodontal-chart-card.agent.d.ts +4 -0
- package/dist/components/periodontal-chart-card/periodontal-chart-card.d.ts +74 -0
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +7 -0
- package/dist/components/pregnancy-weight-gain/weight-gain.d.ts +33 -8
- package/dist/components/product-hub-tray/index.d.ts +8 -0
- package/dist/components/product-hub-tray/index.js +10 -0
- package/dist/components/product-hub-tray/product-hub-panel.agent.d.ts +4 -0
- package/dist/components/product-hub-tray/product-hub-panel.d.ts +54 -0
- package/dist/components/product-hub-tray/product-hub-tray.agent.d.ts +4 -0
- package/dist/components/product-hub-tray/product-hub-tray.d.ts +115 -0
- package/dist/components/public-header/public-header.d.ts +1 -1
- package/dist/components/sidebar/index.d.ts +2 -2
- package/dist/components/sidebar/index.js +12 -11
- package/dist/components/sidebar/sidebar.d.ts +14 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/stat/stat.d.ts +1 -1
- package/dist/components/transaction-chip/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +561 -1
- package/dist/i18n/locales/ar.js +560 -2
- package/dist/i18n/locales/de.d.ts +561 -1
- package/dist/i18n/locales/de.js +560 -2
- package/dist/i18n/locales/el.d.ts +561 -1
- package/dist/i18n/locales/el.js +560 -2
- package/dist/i18n/locales/en.d.ts +561 -1
- package/dist/i18n/locales/en.js +560 -2
- package/dist/i18n/locales/es.d.ts +561 -1
- package/dist/i18n/locales/es.js +560 -2
- package/dist/i18n/locales/fr.d.ts +561 -1
- package/dist/i18n/locales/fr.js +560 -2
- package/dist/i18n/locales/hi.d.ts +561 -1
- package/dist/i18n/locales/hi.js +560 -2
- package/dist/i18n/locales/it.d.ts +561 -1
- package/dist/i18n/locales/it.js +560 -2
- package/dist/i18n/locales/ja.d.ts +561 -1
- package/dist/i18n/locales/ja.js +560 -2
- package/dist/i18n/locales/nl.d.ts +561 -1
- package/dist/i18n/locales/nl.js +560 -2
- package/dist/i18n/locales/pl.d.ts +561 -1
- package/dist/i18n/locales/pl.js +560 -2
- package/dist/i18n/locales/pt.d.ts +561 -1
- package/dist/i18n/locales/pt.js +560 -2
- package/dist/i18n/locales/ro.d.ts +561 -1
- package/dist/i18n/locales/ro.js +560 -2
- package/dist/i18n/locales/ru.d.ts +561 -1
- package/dist/i18n/locales/ru.js +560 -2
- package/dist/i18n/locales/sq.d.ts +561 -1
- package/dist/i18n/locales/sq.js +560 -2
- package/dist/i18n/locales/sv.d.ts +561 -1
- package/dist/i18n/locales/sv.js +560 -2
- package/dist/i18n/locales/tr.d.ts +561 -1
- package/dist/i18n/locales/tr.js +560 -2
- package/dist/i18n/locales/zh.d.ts +561 -1
- package/dist/i18n/locales/zh.js +560 -2
- package/dist/index.js +663 -600
- package/dist/locales/ar.json +562 -2
- package/dist/locales/de.json +562 -2
- package/dist/locales/el.json +562 -2
- package/dist/locales/en.json +562 -2
- package/dist/locales/es.json +562 -2
- package/dist/locales/fr.json +562 -2
- package/dist/locales/hi.json +562 -2
- package/dist/locales/it.json +562 -2
- package/dist/locales/ja.json +562 -2
- package/dist/locales/nl.json +562 -2
- package/dist/locales/pl.json +562 -2
- package/dist/locales/pt.json +562 -2
- package/dist/locales/ro.json +562 -2
- package/dist/locales/ru.json +562 -2
- package/dist/locales/sq.json +562 -2
- package/dist/locales/sv.json +562 -2
- package/dist/locales/tr.json +562 -2
- package/dist/locales/zh.json +562 -2
- package/dist/patterns/alia-assistant/alia-types.d.ts +15 -0
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +58 -1
- package/dist/_chunks/cycle-calculator-KxA8dqDf.js +0 -211
- package/dist/_chunks/due-date-calculator-mFxpHLml.js +0 -216
- package/dist/_chunks/gestation-mWF4AXea.js +0 -50
- package/dist/_chunks/gestational-age-calculator-gWI_uRA1.js +0 -203
- package/dist/_chunks/operator-hero-7LiiP7zi.js +0 -171
- package/dist/_chunks/pregnancy-weight-gain-BtEHaSqy.js +0 -246
- package/dist/_chunks/shield-check-C73ma9Cs.js +0 -36
- package/dist/_chunks/subDays-Dv7q9S7u.js +0 -8
- package/dist/_chunks/warning-stack-DNR3-IbP.js +0 -180
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { c as t } from "./index-D2ZczOXr.js";
|
|
2
|
+
const i = t(
|
|
3
|
+
[
|
|
4
|
+
"ds:relative ds:rounded-[var(--radius-lg)]",
|
|
5
|
+
"ds:text-[color:var(--card-foreground)]",
|
|
6
|
+
"ds:transition-shadow ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
|
|
7
|
+
].join(" "),
|
|
8
|
+
{
|
|
9
|
+
variants: {
|
|
10
|
+
surface: {
|
|
11
|
+
flat: "",
|
|
12
|
+
elevated: [
|
|
13
|
+
"ds:bg-[var(--card)] ds:border ds:border-[color:var(--card-border)]",
|
|
14
|
+
"ds:shadow-[var(--shadow-card)]",
|
|
15
|
+
"ds:[.theme-accessible_&]:border-2"
|
|
16
|
+
].join(" ")
|
|
17
|
+
},
|
|
18
|
+
density: {
|
|
19
|
+
comfortable: "ds:p-[var(--spacing-md)]",
|
|
20
|
+
compact: "ds:p-[var(--spacing-sm)]"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
defaultVariants: {
|
|
24
|
+
surface: "elevated",
|
|
25
|
+
density: "comfortable"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
), l = {
|
|
29
|
+
estimate: "info",
|
|
30
|
+
accepted: "success",
|
|
31
|
+
discarded: "error",
|
|
32
|
+
closed: "neutral"
|
|
33
|
+
}, s = {
|
|
34
|
+
absent: "error",
|
|
35
|
+
waiting: "warning",
|
|
36
|
+
in_care: "info",
|
|
37
|
+
done: "success",
|
|
38
|
+
cancelled: "error",
|
|
39
|
+
confirmed: "success"
|
|
40
|
+
}, c = "neutral";
|
|
41
|
+
function u(r) {
|
|
42
|
+
return s[r] ?? c;
|
|
43
|
+
}
|
|
44
|
+
const e = [
|
|
45
|
+
"var(--color-violet-500)",
|
|
46
|
+
"var(--color-purple-500)",
|
|
47
|
+
"var(--color-magenta-500)",
|
|
48
|
+
"var(--color-blue-500)",
|
|
49
|
+
"var(--color-green-500)",
|
|
50
|
+
"var(--color-red-500)",
|
|
51
|
+
"var(--color-yellow-500)",
|
|
52
|
+
"var(--color-indigo-500)",
|
|
53
|
+
"var(--color-orange-500)",
|
|
54
|
+
"var(--color-fuchsia-500)"
|
|
55
|
+
], o = "var(--color-grey-700)";
|
|
56
|
+
function v(r) {
|
|
57
|
+
if (r == null) return o;
|
|
58
|
+
const a = typeof r == "number" ? r : Number.parseInt(r, 10);
|
|
59
|
+
if (!Number.isFinite(a)) return o;
|
|
60
|
+
const n = (Math.trunc(a) % e.length + e.length) % e.length;
|
|
61
|
+
return e[n];
|
|
62
|
+
}
|
|
63
|
+
export {
|
|
64
|
+
l as C,
|
|
65
|
+
u as a,
|
|
66
|
+
v as c,
|
|
67
|
+
i as e
|
|
68
|
+
};
|
|
69
|
+
//# sourceMappingURL=entity-card-COhmqHly.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as d, r as o, v as r, w as s } from "./date-picker-variants-
|
|
1
|
+
import { q as d, r as o, v as r, w as s } from "./date-picker-variants-CXEAx3O_.js";
|
|
2
2
|
const m = {
|
|
3
3
|
lessThanXSeconds: {
|
|
4
4
|
one: "menos de un segundo",
|
|
@@ -370,4 +370,4 @@ const m = {
|
|
|
370
370
|
export {
|
|
371
371
|
q as es
|
|
372
372
|
};
|
|
373
|
-
//# sourceMappingURL=es-
|
|
373
|
+
//# sourceMappingURL=es-BOwPVwWn.js.map
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { jsxs as m, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as T, useState as g, useMemo as W, useEffect as j } from "react";
|
|
3
|
+
import { c as V } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as A } from "react-i18next";
|
|
5
|
+
import { F as D } from "./form-field-BOm9hK35.js";
|
|
6
|
+
import { N as E } from "./number-input-Dj5L3pXK.js";
|
|
7
|
+
import { C as N } from "./card-DPmk26CL.js";
|
|
8
|
+
import { B as H } from "./badge-zsf5i5bH.js";
|
|
9
|
+
import { I as S } from "./insert-result-DNdi_JYW.js";
|
|
10
|
+
function h(l) {
|
|
11
|
+
return typeof l == "number" && Number.isFinite(l) && l > 0 ? l / 10 : null;
|
|
12
|
+
}
|
|
13
|
+
function q(l) {
|
|
14
|
+
const n = h(l.bpdMm), r = h(l.hcMm), s = h(l.acMm), d = h(l.flMm);
|
|
15
|
+
if (s === null || d === null) return null;
|
|
16
|
+
let o, c;
|
|
17
|
+
return n !== null && r !== null ? (o = 1.3596 - 386e-5 * s * d + 64e-4 * r + 61e-5 * n * s + 0.0424 * s + 0.174 * d, c = "hadlock4") : (o = 1.304 + 0.05281 * s + 0.1938 * d - 4e-3 * s * d, c = "hadlock1"), { grams: Math.round(10 ** o), method: c };
|
|
18
|
+
}
|
|
19
|
+
const z = V("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
|
|
20
|
+
variants: {
|
|
21
|
+
width: { full: "ds:w-full", auto: "ds:inline-flex" }
|
|
22
|
+
},
|
|
23
|
+
defaultVariants: { width: "full" }
|
|
24
|
+
}), G = T(
|
|
25
|
+
({
|
|
26
|
+
onResultChange: l,
|
|
27
|
+
onInsert: n,
|
|
28
|
+
insertVariant: r = "insert",
|
|
29
|
+
onCopy: s,
|
|
30
|
+
onError: d,
|
|
31
|
+
insertBrand: o,
|
|
32
|
+
id: c,
|
|
33
|
+
width: y,
|
|
34
|
+
className: M
|
|
35
|
+
}, w) => {
|
|
36
|
+
const { t: e, i18n: x } = A(), [u, F] = g(null), [p, $] = g(null), [b, B] = g(null), [v, L] = g(null), a = W(
|
|
37
|
+
() => q({ bpdMm: u, hcMm: p, acMm: b, flMm: v }),
|
|
38
|
+
[u, p, b, v]
|
|
39
|
+
);
|
|
40
|
+
j(() => {
|
|
41
|
+
l == null || l(a);
|
|
42
|
+
}, [a, l]);
|
|
43
|
+
const k = W(
|
|
44
|
+
() => new Intl.NumberFormat(x.language, { maximumFractionDigits: 0 }),
|
|
45
|
+
[x.language]
|
|
46
|
+
), C = e("fetalWeight.units.mm"), f = (i) => e("fetalWeight.efwValue", { grams: k.format(i.grams) }), I = [
|
|
47
|
+
{ label: e("fetalWeight.bpd"), value: u, onChange: F },
|
|
48
|
+
{ label: e("fetalWeight.hc"), value: p, onChange: $ },
|
|
49
|
+
{ label: e("fetalWeight.ac"), value: b, onChange: B },
|
|
50
|
+
{ label: e("fetalWeight.fl"), value: v, onChange: L }
|
|
51
|
+
];
|
|
52
|
+
return /* @__PURE__ */ m(
|
|
53
|
+
"div",
|
|
54
|
+
{
|
|
55
|
+
ref: w,
|
|
56
|
+
"data-component": "fetal-weight",
|
|
57
|
+
"data-component-id": c,
|
|
58
|
+
className: z({ width: y, className: M }),
|
|
59
|
+
children: [
|
|
60
|
+
/* @__PURE__ */ t("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-2", children: I.map((i) => /* @__PURE__ */ t(D, { label: `${i.label} (${C})`, children: /* @__PURE__ */ t(
|
|
61
|
+
E,
|
|
62
|
+
{
|
|
63
|
+
mode: "decimal",
|
|
64
|
+
min: 0,
|
|
65
|
+
step: 0.1,
|
|
66
|
+
value: i.value,
|
|
67
|
+
onChange: i.onChange
|
|
68
|
+
}
|
|
69
|
+
) }, i.label)) }),
|
|
70
|
+
/* @__PURE__ */ t("p", { className: "ds:sr-only", role: "status", "aria-live": "polite", children: a ? `${e("fetalWeight.efwLabel")}: ${f(a)}.` : "" }),
|
|
71
|
+
a ? /* @__PURE__ */ t(N, { variant: "elevated", children: /* @__PURE__ */ m(N.Body, { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
72
|
+
/* @__PURE__ */ m("dl", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-2", children: [
|
|
73
|
+
/* @__PURE__ */ m("div", { className: "ds:flex ds:flex-col ds:items-start ds:gap-[var(--spacing-xs)]", children: [
|
|
74
|
+
/* @__PURE__ */ t("dt", { className: "type-label ds:text-muted-foreground", children: e("fetalWeight.efwLabel") }),
|
|
75
|
+
/* @__PURE__ */ t("dd", { className: "type-metric ds:text-foreground", children: f(a) })
|
|
76
|
+
] }),
|
|
77
|
+
/* @__PURE__ */ m("div", { className: "ds:flex ds:flex-col ds:items-end ds:gap-[var(--spacing-xs)] ds:text-end", children: [
|
|
78
|
+
/* @__PURE__ */ t("dt", { className: "type-label ds:text-muted-foreground", children: e("fetalWeight.methodLabel") }),
|
|
79
|
+
/* @__PURE__ */ t("dd", { children: /* @__PURE__ */ t(H, { variant: "info", children: e(`fetalWeight.method.${a.method}`) }) })
|
|
80
|
+
] })
|
|
81
|
+
] }),
|
|
82
|
+
/* @__PURE__ */ t("p", { className: "type-body-sm ds:text-muted-foreground", children: e("fetalWeight.disclaimer") }),
|
|
83
|
+
r === "copy" || n ? /* @__PURE__ */ t(
|
|
84
|
+
S,
|
|
85
|
+
{
|
|
86
|
+
onInsert: n,
|
|
87
|
+
variant: r,
|
|
88
|
+
onCopy: s,
|
|
89
|
+
onError: d,
|
|
90
|
+
card: {
|
|
91
|
+
title: e("insert.title.fetalWeight"),
|
|
92
|
+
icon: "scale",
|
|
93
|
+
highlight: f(a),
|
|
94
|
+
highlightToken: "--info",
|
|
95
|
+
brand: o,
|
|
96
|
+
fields: [
|
|
97
|
+
{
|
|
98
|
+
icon: "scale",
|
|
99
|
+
label: e("fetalWeight.efwLabel"),
|
|
100
|
+
value: f(a)
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
icon: "activity",
|
|
104
|
+
label: e("fetalWeight.methodLabel"),
|
|
105
|
+
value: e(`fetalWeight.method.${a.method}`)
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
) : null
|
|
111
|
+
] }) }) : /* @__PURE__ */ t("p", { className: "type-body ds:text-muted-foreground", children: e("fetalWeight.empty") })
|
|
112
|
+
]
|
|
113
|
+
}
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
);
|
|
117
|
+
G.displayName = "FetalWeight";
|
|
118
|
+
export {
|
|
119
|
+
G as F,
|
|
120
|
+
q as e
|
|
121
|
+
};
|
|
122
|
+
//# sourceMappingURL=fetal-weight-Da-B4P4k.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as m, r, v as o, w as d } from "./date-picker-variants-
|
|
1
|
+
import { q as m, r, v as o, w as d } from "./date-picker-variants-CXEAx3O_.js";
|
|
2
2
|
const u = {
|
|
3
3
|
lessThanXSeconds: {
|
|
4
4
|
one: "moins d’une seconde",
|
|
@@ -335,4 +335,4 @@ const u = {
|
|
|
335
335
|
export {
|
|
336
336
|
q as fr
|
|
337
337
|
};
|
|
338
|
-
//# sourceMappingURL=fr-
|
|
338
|
+
//# sourceMappingURL=fr-DoDBtn0T.js.map
|
|
@@ -8,7 +8,7 @@ import { u as X } from "./use-controllable-state-BiY4xTzM.js";
|
|
|
8
8
|
import { u as Y } from "./registry-nPAVE19X.js";
|
|
9
9
|
import { B as I } from "./button-DD_0Xdmr.js";
|
|
10
10
|
import { P as Z } from "./progress-kzIRcdaq.js";
|
|
11
|
-
import { f as $ } from "./payment-form-
|
|
11
|
+
import { f as $ } from "./payment-form-xmeCkxas.js";
|
|
12
12
|
import { T as ee } from "./triangle-alert-CBPUIzQo.js";
|
|
13
13
|
import { C as se } from "./check-DPdL_Sm7.js";
|
|
14
14
|
const ae = {
|
|
@@ -265,4 +265,4 @@ export {
|
|
|
265
265
|
te as F,
|
|
266
266
|
ae as f
|
|
267
267
|
};
|
|
268
|
-
//# sourceMappingURL=freemium-paywall-
|
|
268
|
+
//# sourceMappingURL=freemium-paywall-BWaLWje-.js.map
|
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
import { jsxs as s, jsx as a, Fragment as X } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as Z, useState as o, useMemo as m, useEffect as ee } from "react";
|
|
3
|
+
import { c as ae } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as te } from "react-i18next";
|
|
5
|
+
import { R as i } from "./radio-TWf9Q-mp.js";
|
|
6
|
+
import { R as y } from "./radio-group-CLjK-SlK.js";
|
|
7
|
+
import { F as x } from "./form-field-BOm9hK35.js";
|
|
8
|
+
import { D as w } from "./date-picker-BfHblqwA.js";
|
|
9
|
+
import { S as le } from "./select-hsCaJSX3.js";
|
|
10
|
+
import { S as se } from "./switch-BJ6HD3Mn.js";
|
|
11
|
+
import { C as R } from "./card-DPmk26CL.js";
|
|
12
|
+
import { B as T } from "./badge-zsf5i5bH.js";
|
|
13
|
+
import { I as ie } from "./insert-result-DNdi_JYW.js";
|
|
14
|
+
import { c as ne, g as oe, e as re, f as de, A as ce, h as me, i as ge, G as ue } from "./antenatal-schedule-timeline-Dg0m0yFl.js";
|
|
15
|
+
import { s as he } from "./subDays-Bs00akhK.js";
|
|
16
|
+
import { i as pe } from "./date-picker-variants-CXEAx3O_.js";
|
|
17
|
+
const fe = ae("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
|
|
18
|
+
variants: {
|
|
19
|
+
width: { full: "ds:w-full", auto: "ds:inline-flex" }
|
|
20
|
+
},
|
|
21
|
+
defaultVariants: { width: "full" }
|
|
22
|
+
}), ve = Z(
|
|
23
|
+
({
|
|
24
|
+
defaultMethod: $ = "lmp",
|
|
25
|
+
defaultReferenceDate: G,
|
|
26
|
+
onResultChange: g,
|
|
27
|
+
onInsert: C,
|
|
28
|
+
insertVariant: S = "insert",
|
|
29
|
+
onCopy: F,
|
|
30
|
+
onError: L,
|
|
31
|
+
insertBrand: I,
|
|
32
|
+
showSchedule: f = !1,
|
|
33
|
+
defaultPlurality: V = "singleton",
|
|
34
|
+
defaultChorionicity: B = "unknown",
|
|
35
|
+
defaultRhNegative: E = !1,
|
|
36
|
+
defaultGdmRisk: O,
|
|
37
|
+
scheduleOptions: N,
|
|
38
|
+
id: z,
|
|
39
|
+
width: M,
|
|
40
|
+
className: j
|
|
41
|
+
}, _) => {
|
|
42
|
+
const { t: e, i18n: D } = te(), [d, H] = o($), [c, P] = o(
|
|
43
|
+
G
|
|
44
|
+
), [r, Y] = o(() => /* @__PURE__ */ new Date()), q = m(() => /* @__PURE__ */ new Date(), []), [u, J] = o(V), [v, K] = o(B), [b, Q] = o(E), [h, U] = o(
|
|
45
|
+
O ?? "none"
|
|
46
|
+
), l = m(() => {
|
|
47
|
+
if (!c) return null;
|
|
48
|
+
const t = d === "lmp" ? c : he(c, ue), n = ne({ method: "lmp", date: t }, r);
|
|
49
|
+
return {
|
|
50
|
+
result: {
|
|
51
|
+
gestationalAge: n.gestationalAge,
|
|
52
|
+
trimester: n.trimester,
|
|
53
|
+
dueDate: n.dueDate
|
|
54
|
+
},
|
|
55
|
+
milestones: oe(n.gestationalStart),
|
|
56
|
+
gestationalStart: n.gestationalStart
|
|
57
|
+
};
|
|
58
|
+
}, [d, c, r]), p = m(() => !f || !l ? null : re(l.gestationalStart, {
|
|
59
|
+
...N,
|
|
60
|
+
today: r,
|
|
61
|
+
plurality: u,
|
|
62
|
+
chorionicity: v,
|
|
63
|
+
rhNegative: b,
|
|
64
|
+
gdmRisk: h === "none" ? void 0 : h
|
|
65
|
+
}), [
|
|
66
|
+
f,
|
|
67
|
+
l,
|
|
68
|
+
r,
|
|
69
|
+
N,
|
|
70
|
+
u,
|
|
71
|
+
v,
|
|
72
|
+
b,
|
|
73
|
+
h
|
|
74
|
+
]), W = m(
|
|
75
|
+
() => [
|
|
76
|
+
"unknown",
|
|
77
|
+
"dichorionic-diamniotic",
|
|
78
|
+
"monochorionic-diamniotic",
|
|
79
|
+
"monochorionic-monoamniotic"
|
|
80
|
+
].map((t) => ({
|
|
81
|
+
value: t,
|
|
82
|
+
label: e(`antenatalSchedule.chorionicity.${t}`)
|
|
83
|
+
})),
|
|
84
|
+
[e]
|
|
85
|
+
), k = m(
|
|
86
|
+
() => new Intl.DateTimeFormat(D.language, { dateStyle: "medium" }),
|
|
87
|
+
[D.language]
|
|
88
|
+
);
|
|
89
|
+
ee(() => {
|
|
90
|
+
g == null || g((l == null ? void 0 : l.result) ?? null);
|
|
91
|
+
}, [l, g]);
|
|
92
|
+
const A = (t) => t ? e("gestationalAgeCalculator.gestation", {
|
|
93
|
+
weeks: t.weeks,
|
|
94
|
+
days: t.days
|
|
95
|
+
}) : "—";
|
|
96
|
+
return /* @__PURE__ */ s(
|
|
97
|
+
"div",
|
|
98
|
+
{
|
|
99
|
+
ref: _,
|
|
100
|
+
"data-component": "gestational-age-calculator",
|
|
101
|
+
"data-component-id": z,
|
|
102
|
+
className: fe({ width: M, className: j }),
|
|
103
|
+
children: [
|
|
104
|
+
/* @__PURE__ */ s(
|
|
105
|
+
y,
|
|
106
|
+
{
|
|
107
|
+
label: e("gestationalAgeCalculator.method.label"),
|
|
108
|
+
variant: "horizontal",
|
|
109
|
+
value: d,
|
|
110
|
+
onValueChange: (t) => H(t),
|
|
111
|
+
children: [
|
|
112
|
+
/* @__PURE__ */ a(i, { label: e("gestationalAgeCalculator.method.lmp"), value: "lmp" }),
|
|
113
|
+
/* @__PURE__ */ a(i, { label: e("gestationalAgeCalculator.method.edd"), value: "edd" })
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
),
|
|
117
|
+
/* @__PURE__ */ a(
|
|
118
|
+
x,
|
|
119
|
+
{
|
|
120
|
+
label: e(
|
|
121
|
+
d === "lmp" ? "gestationalAgeCalculator.lmpDate" : "gestationalAgeCalculator.eddDate"
|
|
122
|
+
),
|
|
123
|
+
children: /* @__PURE__ */ a(
|
|
124
|
+
w,
|
|
125
|
+
{
|
|
126
|
+
value: c,
|
|
127
|
+
onChange: P,
|
|
128
|
+
maxDate: d === "lmp" ? q : void 0
|
|
129
|
+
}
|
|
130
|
+
)
|
|
131
|
+
}
|
|
132
|
+
),
|
|
133
|
+
/* @__PURE__ */ a(
|
|
134
|
+
x,
|
|
135
|
+
{
|
|
136
|
+
label: e("gestationalAgeCalculator.asOfDate"),
|
|
137
|
+
description: e("gestationalAgeCalculator.asOfDateHint"),
|
|
138
|
+
children: /* @__PURE__ */ a(w, { value: r, onChange: (t) => t && Y(t) })
|
|
139
|
+
}
|
|
140
|
+
),
|
|
141
|
+
f ? /* @__PURE__ */ s(X, { children: [
|
|
142
|
+
/* @__PURE__ */ s(
|
|
143
|
+
y,
|
|
144
|
+
{
|
|
145
|
+
label: e("antenatalSchedule.plurality.label"),
|
|
146
|
+
variant: "horizontal",
|
|
147
|
+
value: u,
|
|
148
|
+
onValueChange: (t) => J(t),
|
|
149
|
+
children: [
|
|
150
|
+
/* @__PURE__ */ a(
|
|
151
|
+
i,
|
|
152
|
+
{
|
|
153
|
+
label: e("antenatalSchedule.plurality.singleton"),
|
|
154
|
+
value: "singleton"
|
|
155
|
+
}
|
|
156
|
+
),
|
|
157
|
+
/* @__PURE__ */ a(
|
|
158
|
+
i,
|
|
159
|
+
{
|
|
160
|
+
label: e("antenatalSchedule.plurality.twin"),
|
|
161
|
+
value: "twin"
|
|
162
|
+
}
|
|
163
|
+
),
|
|
164
|
+
/* @__PURE__ */ a(
|
|
165
|
+
i,
|
|
166
|
+
{
|
|
167
|
+
label: e("antenatalSchedule.plurality.triplet"),
|
|
168
|
+
value: "triplet"
|
|
169
|
+
}
|
|
170
|
+
)
|
|
171
|
+
]
|
|
172
|
+
}
|
|
173
|
+
),
|
|
174
|
+
u !== "singleton" ? /* @__PURE__ */ a(x, { label: e("antenatalSchedule.chorionicity.label"), children: /* @__PURE__ */ a(
|
|
175
|
+
le,
|
|
176
|
+
{
|
|
177
|
+
options: W,
|
|
178
|
+
value: v,
|
|
179
|
+
onValueChange: (t) => K(t)
|
|
180
|
+
}
|
|
181
|
+
) }) : null,
|
|
182
|
+
/* @__PURE__ */ a(
|
|
183
|
+
se,
|
|
184
|
+
{
|
|
185
|
+
label: e("antenatalSchedule.rhNegative"),
|
|
186
|
+
checked: b,
|
|
187
|
+
onCheckedChange: Q
|
|
188
|
+
}
|
|
189
|
+
),
|
|
190
|
+
/* @__PURE__ */ s(
|
|
191
|
+
y,
|
|
192
|
+
{
|
|
193
|
+
label: e("antenatalSchedule.gdmRisk.label"),
|
|
194
|
+
variant: "horizontal",
|
|
195
|
+
value: h,
|
|
196
|
+
onValueChange: (t) => U(t),
|
|
197
|
+
children: [
|
|
198
|
+
/* @__PURE__ */ a(i, { label: e("antenatalSchedule.gdmRisk.none"), value: "none" }),
|
|
199
|
+
/* @__PURE__ */ a(
|
|
200
|
+
i,
|
|
201
|
+
{
|
|
202
|
+
label: e("antenatalSchedule.gdmRisk.medium"),
|
|
203
|
+
value: "medium"
|
|
204
|
+
}
|
|
205
|
+
),
|
|
206
|
+
/* @__PURE__ */ a(i, { label: e("antenatalSchedule.gdmRisk.high"), value: "high" })
|
|
207
|
+
]
|
|
208
|
+
}
|
|
209
|
+
)
|
|
210
|
+
] }) : null,
|
|
211
|
+
/* @__PURE__ */ a("p", { className: "ds:sr-only", role: "status", "aria-live": "polite", children: l ? `${e("gestationalAgeCalculator.gestationLabel")}: ${A(
|
|
212
|
+
l.result.gestationalAge
|
|
213
|
+
)}. ${e("gestationalAgeCalculator.trimesterLabel")}: ${e(
|
|
214
|
+
`gestationalAgeCalculator.trimester.${l.result.trimester}`
|
|
215
|
+
)}.` : "" }),
|
|
216
|
+
l ? /* @__PURE__ */ a(R, { variant: "elevated", children: /* @__PURE__ */ s(R.Body, { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
217
|
+
/* @__PURE__ */ s("dl", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-2", children: [
|
|
218
|
+
/* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:items-start ds:gap-[var(--spacing-xs)]", children: [
|
|
219
|
+
/* @__PURE__ */ a("dt", { className: "type-label ds:text-muted-foreground", children: e("gestationalAgeCalculator.trimesterLabel") }),
|
|
220
|
+
/* @__PURE__ */ a("dd", { children: /* @__PURE__ */ a(
|
|
221
|
+
T,
|
|
222
|
+
{
|
|
223
|
+
variant: de[l.result.trimester],
|
|
224
|
+
size: "lg",
|
|
225
|
+
children: e(
|
|
226
|
+
`gestationalAgeCalculator.trimester.${l.result.trimester}`
|
|
227
|
+
)
|
|
228
|
+
}
|
|
229
|
+
) })
|
|
230
|
+
] }),
|
|
231
|
+
/* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:items-end ds:gap-[var(--spacing-xs)] ds:text-end", children: [
|
|
232
|
+
/* @__PURE__ */ a("dt", { className: "type-label ds:text-muted-foreground", children: e("gestationalAgeCalculator.gestationLabel") }),
|
|
233
|
+
/* @__PURE__ */ a("dd", { className: "type-metric ds:text-foreground", children: A(l.result.gestationalAge) })
|
|
234
|
+
] })
|
|
235
|
+
] }),
|
|
236
|
+
/* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
237
|
+
/* @__PURE__ */ a("span", { className: "type-label ds:text-muted-foreground", children: e("gestationalAgeCalculator.milestonesLabel") }),
|
|
238
|
+
/* @__PURE__ */ a("ul", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: l.milestones.map((t) => {
|
|
239
|
+
const n = pe(r, t.date);
|
|
240
|
+
return /* @__PURE__ */ s(
|
|
241
|
+
"li",
|
|
242
|
+
{
|
|
243
|
+
className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-md)]",
|
|
244
|
+
children: [
|
|
245
|
+
/* @__PURE__ */ a("span", { className: "type-body ds:text-foreground", children: e(`gestationalAgeCalculator.milestone.${t.key}`) }),
|
|
246
|
+
/* @__PURE__ */ s("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
247
|
+
/* @__PURE__ */ a("span", { className: "type-body ds:text-muted-foreground", children: k.format(t.date) }),
|
|
248
|
+
n ? /* @__PURE__ */ a(T, { variant: "success", children: e("gestationalAgeCalculator.reached") }) : null
|
|
249
|
+
] })
|
|
250
|
+
]
|
|
251
|
+
},
|
|
252
|
+
t.key
|
|
253
|
+
);
|
|
254
|
+
}) })
|
|
255
|
+
] })
|
|
256
|
+
] }) }) : /* @__PURE__ */ a("p", { className: "type-body ds:text-muted-foreground", children: e("gestationalAgeCalculator.empty") }),
|
|
257
|
+
p ? /* @__PURE__ */ a(ce, { events: p }) : null,
|
|
258
|
+
l && (S === "copy" || C) ? /* @__PURE__ */ a(
|
|
259
|
+
ie,
|
|
260
|
+
{
|
|
261
|
+
onInsert: C,
|
|
262
|
+
variant: S,
|
|
263
|
+
onCopy: F,
|
|
264
|
+
onError: L,
|
|
265
|
+
card: {
|
|
266
|
+
title: e("insert.title.gestationalAge"),
|
|
267
|
+
icon: "baby",
|
|
268
|
+
highlight: e(
|
|
269
|
+
`gestationalAgeCalculator.trimester.${l.result.trimester}`
|
|
270
|
+
),
|
|
271
|
+
// Chip shares the trimester's semantic token so the inserted PNG
|
|
272
|
+
// chip matches the on-screen trimester badge — with the
|
|
273
|
+
// contrast-safe orange override for the `--warning` third trimester.
|
|
274
|
+
highlightToken: ge(l.result.trimester),
|
|
275
|
+
brand: I,
|
|
276
|
+
fields: [
|
|
277
|
+
{
|
|
278
|
+
// Gestational age is an elapsed duration → clock glyph.
|
|
279
|
+
icon: "clock",
|
|
280
|
+
label: e("gestationalAgeCalculator.gestationLabel"),
|
|
281
|
+
value: A(l.result.gestationalAge)
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
// Trimester is a clinical-stage classification → tag.
|
|
285
|
+
icon: "tag",
|
|
286
|
+
label: e("gestationalAgeCalculator.trimesterLabel"),
|
|
287
|
+
value: e(
|
|
288
|
+
`gestationalAgeCalculator.trimester.${l.result.trimester}`
|
|
289
|
+
)
|
|
290
|
+
},
|
|
291
|
+
// When the schedule is shown, the single Insert button carries
|
|
292
|
+
// the exam windows too (no second button).
|
|
293
|
+
...p ? me(
|
|
294
|
+
p,
|
|
295
|
+
e,
|
|
296
|
+
(t) => k.format(t)
|
|
297
|
+
) : []
|
|
298
|
+
]
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
) : null
|
|
302
|
+
]
|
|
303
|
+
}
|
|
304
|
+
);
|
|
305
|
+
}
|
|
306
|
+
);
|
|
307
|
+
ve.displayName = "GestationalAgeCalculator";
|
|
308
|
+
export {
|
|
309
|
+
ve as G
|
|
310
|
+
};
|
|
311
|
+
//# sourceMappingURL=gestational-age-calculator-DbDfTJU2.js.map
|