@alfadocs/ui-kit 1.54.2 → 1.55.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/{accordion-C11v9ouP.js → accordion-Ch3xp0mX.js} +9 -9
- package/dist/_chunks/{actions-cell-renderer-CjzSqMgn.js → actions-cell-renderer-Dj1ZkvJj.js} +4 -4
- package/dist/_chunks/{address-autocomplete-BBZ0u_U1.js → address-autocomplete-bPR2mNBt.js} +2 -2
- package/dist/_chunks/address-fields-BfjxS05Z.js +298 -0
- package/dist/_chunks/{agenda-card-CakEvwnM.js → agenda-card-DauvvKX6.js} +2 -2
- package/dist/_chunks/{agenda-tray-B8vuZKjH.js → agenda-tray-ZKhDxlfw.js} +24 -24
- package/dist/_chunks/{ai-credits-notice-D9_qP2xc.js → ai-credits-notice-BoNJtOuE.js} +4 -4
- package/dist/_chunks/ai-fab-pill-BOu96kCx.js +30 -0
- package/dist/_chunks/{ai-permission-notice-Cr6o1f0f.js → ai-permission-notice-5vpblPCx.js} +3 -3
- package/dist/_chunks/{ai-prompt-input-DkL8W-nt.js → ai-prompt-input-Beh-O_rJ.js} +4 -4
- package/dist/_chunks/{alia-sidebar-DSUQ2RpK.js → alia-sidebar-DS0b54Mv.js} +12 -12
- package/dist/_chunks/{anamnesis-card-BT1tMt5O.js → anamnesis-card-BSlAhaoG.js} +4 -4
- package/dist/_chunks/{anamnesis-summary-card-Bv0CZ-mk.js → anamnesis-summary-card-2YfIYY2j.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-BMjSBqhS.js → anamnesis-summary-rows-Dtw5Hpg4.js} +425 -424
- package/dist/_chunks/{antenatal-schedule-timeline-BZzgjfyd.js → antenatal-schedule-timeline-Kf2Yg8uo.js} +4 -4
- package/dist/_chunks/{app-frame-Cos-GSfw.js → app-frame-B-0O9CrU.js} +40 -38
- package/dist/_chunks/{appointment-card-CA2ynsmN.js → appointment-card-Dh3fAcyf.js} +12 -12
- package/dist/_chunks/{appointment-peek-Cbrg36wj.js → appointment-peek-BIZaDeCi.js} +6 -6
- package/dist/_chunks/{appointment-timeline-CssAJLpL.js → appointment-timeline-DmqYEIT9.js} +32 -33
- package/dist/_chunks/{appointment-tray-EQUjllVy.js → appointment-tray-CyI_p3zU.js} +28 -28
- package/dist/_chunks/{appointment-workflow-status-DrWCNLbB.js → appointment-workflow-status-DMjuIK90.js} +2 -2
- package/dist/_chunks/{audio-recorder-BM68r6fe.js → audio-recorder-DWKKjGPt.js} +5 -6
- package/dist/_chunks/{auth-form-parts-Celi-TLV.js → auth-form-parts-CravOf0L.js} +6 -5
- package/dist/_chunks/{autocomplete-BXm1rnT0.js → autocomplete-DosDnGie.js} +3 -3
- package/dist/_chunks/{avatar-DYtwj1-R.js → avatar-WZY3eGE7.js} +10 -10
- package/dist/_chunks/{balance-badge-cell-BDX1Krdv.js → balance-badge-cell-zP-iN-Pd.js} +5 -5
- package/dist/_chunks/{benefit-card-DB1Kdrmc.js → benefit-card-BWBClvdF.js} +46 -45
- package/dist/_chunks/{bishop-score-CGAVpIWL.js → bishop-score-BxA20j9T.js} +5 -5
- package/dist/_chunks/{bmi-calculator-g_wjo4nq.js → bmi-calculator-DTZhRhXe.js} +5 -5
- package/dist/_chunks/{booking-BN7TXe27.js → booking-uZO10TLK.js} +1553 -1458
- package/dist/_chunks/{button-CYPx2xFq.js → button-Bn16lcFM.js} +10 -7
- package/dist/_chunks/{button-group-CpEycMps.js → button-group-CWlwR-A5.js} +3 -3
- package/dist/_chunks/{calendar-BwF5nQuW.js → calendar-6-24PQ1u.js} +4 -4
- package/dist/_chunks/{calendar-workspace-BbZIx2PT.js → calendar-workspace-DVajSkKA.js} +868 -883
- package/dist/_chunks/{card-DPmk26CL.js → card-DMO2nkt4.js} +45 -42
- package/dist/_chunks/{care-plan-card-BqI-_B4T.js → care-plan-card-Ddjh5Doc.js} +5 -5
- package/dist/_chunks/{care-plan-entry-card-CbsZmfQM.js → care-plan-entry-card-0rpR-4Te.js} +5 -5
- package/dist/_chunks/{care-plan-header-BIS4CGcp.js → care-plan-header-BeMYMiI7.js} +3 -3
- package/dist/_chunks/{carousel.agent-DW9iPLdy.js → carousel.agent-D3xthzTf.js} +44 -45
- package/dist/_chunks/{chart-C134Ibwm.js → chart-C2RBJERE.js} +3 -3
- package/dist/_chunks/{chat-container-CAfyTxat.js → chat-container-baxzy8k8.js} +21 -22
- package/dist/_chunks/{chat-input-Bg99kcl3.js → chat-input-PtrSu1ZC.js} +27 -27
- package/dist/_chunks/{chat-message-D4rvLoIJ.js → chat-message-CmGUcajG.js} +4 -4
- package/dist/_chunks/city-input-BC_nYINn.js +185 -0
- package/dist/_chunks/{clinical-note-card-gmWXEwSu.js → clinical-note-card-14JIoUR0.js} +3 -3
- package/dist/_chunks/{code-block-CRVa-Thh.js → code-block-BQgK70mO.js} +2 -2
- package/dist/_chunks/{collapsible-CTjxzGuF.js → collapsible-DVPM46bq.js} +27 -27
- package/dist/_chunks/{color-picker-Bu0wM8xv.js → color-picker-BRQ4Y9SO.js} +3 -3
- package/dist/_chunks/{combobox-DppVSuUm.js → combobox-U5yfO6o0.js} +262 -218
- package/dist/_chunks/{connection-status-BwTnjnUj.js → connection-status-ncTjUPt6.js} +4 -4
- package/dist/_chunks/{contact-card-CIVCcicP.js → contact-card-CmK05vNb.js} +2 -2
- package/dist/_chunks/{contact-profile-card-B-HzocbB.js → contact-profile-card-C5DbP_X3.js} +4 -4
- package/dist/_chunks/{control-room-rail-g4vNSPFi.js → control-room-rail-Tx2jW250.js} +3 -3
- package/dist/_chunks/{copy-field-CiIuVbKe.js → copy-field-CvTIuA_p.js} +3 -3
- package/dist/_chunks/{country-select-r3QC7cVA.js → country-select-DF5Bd_mn.js} +2 -2
- package/dist/_chunks/{cycle-calculator-CwDEdmda.js → cycle-calculator-Dgfqr4Q4.js} +7 -7
- package/dist/_chunks/{dashboard-grid--rkojX6m.js → dashboard-grid-SAGoyCtL.js} +71 -71
- package/dist/_chunks/{data-table-DeUoJzNn.js → data-table-C6T31E33.js} +244 -240
- package/dist/_chunks/{data-table-tabs-BfEmXvUk.js → data-table-tabs-Xhg5G0gU.js} +4 -4
- package/dist/_chunks/{date-picker-variants-B3AFKDSu.js → date-picker-variants-BnF-sHzq.js} +19 -10
- package/dist/_chunks/{date-picker-BnhBmcH6.js → date-picker-wRAcq2lt.js} +49 -49
- package/dist/_chunks/{date-range-picker-Dg050N1d.js → date-range-picker-BOvHwWO5.js} +5 -5
- package/dist/_chunks/{date-time-picker-Ckl6ezCL.js → date-time-picker-CLeLKuv9.js} +5 -5
- package/dist/_chunks/{dependent-selector-CPiolWiw.js → dependent-selector-Bet3XAFj.js} +2 -2
- package/dist/_chunks/{description-list-BKQMUiXv.js → description-list-DkLeHiew.js} +2 -2
- package/dist/_chunks/{dev-bypass-button-Y1s7gPSD.js → dev-bypass-button-BhGn6evf.js} +2 -2
- package/dist/_chunks/{document-preview-C_6R_VZK.js → document-preview-uoTekVR7.js} +5 -5
- package/dist/_chunks/{document-scanner-pADVX447.js → document-scanner-CQS9kv84.js} +17 -17
- package/dist/_chunks/{dropdown-menu-B5mgV1kV.js → dropdown-menu-BQSNVp4x.js} +2 -2
- package/dist/_chunks/{due-date-calculator-_0Dz_d7n.js → due-date-calculator-DXDJbUzo.js} +8 -8
- package/dist/_chunks/{editable-currency-cell-renderer-CfFp_1hI.js → editable-currency-cell-renderer-CmYcMuwi.js} +4 -4
- package/dist/_chunks/{editable-description-CCrAEJMq.js → editable-description-DuJlvltc.js} +3 -3
- package/dist/_chunks/editor-overlay-NMxzcO6J.js +90 -0
- package/dist/_chunks/{email-input-Cmeo4zdT.js → email-input-C7THAwh2.js} +3 -3
- package/dist/_chunks/{empty-state-CgvmPPvW.js → empty-state-gNG3qYCX.js} +2 -2
- package/dist/_chunks/{entity-card-D1Yrh9wf.js → entity-card-fpm-KUKc.js} +26 -27
- package/dist/_chunks/{entity-summary-C3E4JKVr.js → entity-summary-DcB0fIiv.js} +5 -5
- package/dist/_chunks/{error-boundary-Bzjk9Q2l.js → error-boundary-ChowhO6w.js} +2 -2
- package/dist/_chunks/error-page-CpuYbpOB.js +344 -0
- package/dist/_chunks/{error-page-illustration-bFti0VEc.js → error-page-illustration-BdJLuMdV.js} +12 -12
- package/dist/_chunks/error-summary-BhM8FEkl.js +101 -0
- package/dist/_chunks/{face-scheme-pZgT26gB.js → face-scheme-BicuUA2K.js} +8 -8
- package/dist/_chunks/{fetal-weight-CbE61Uyk.js → fetal-weight-BWaqqjea.js} +5 -5
- package/dist/_chunks/{field-array-DGiIHCdy.js → field-array-BO-kaKFK.js} +3 -3
- package/dist/_chunks/{file-manager-DdsAd4TQ.js → file-manager-dIJQUZvq.js} +52 -52
- package/dist/_chunks/{finished-terminal-BguGAUdg.js → finished-terminal-CPSDrIMB.js} +3 -3
- package/dist/_chunks/{fiscal-code-input-DNA_SbQx.js → fiscal-code-input-DesSQ6Fh.js} +168 -168
- package/dist/_chunks/floating-clearance-nIx9fFLy.js +20 -0
- package/dist/_chunks/forgot-password-form-DEx-M_QR.js +234 -0
- package/dist/_chunks/{form-field-D9WfDpYB.js → form-field-Ani72sVY.js} +72 -61
- package/dist/_chunks/format-price-BKle6Xwt.js +52 -0
- package/dist/_chunks/{freemium-paywall-CtUCj-ND.js → freemium-paywall-B6ojVXq7.js} +44 -42
- package/dist/_chunks/{gestational-age-calculator-BMkoLJGR.js → gestational-age-calculator-BfGpt3du.js} +9 -9
- package/dist/_chunks/glass-surface-CPok0jEe.js +20 -0
- package/dist/_chunks/{hcg-doubling-BtW2pBJX.js → hcg-doubling-BIYyI2Yo.js} +7 -7
- package/dist/_chunks/{header--a4ZTiM5.js → header-B9552pLh.js} +15 -14
- package/dist/_chunks/{header-settings-kkVm9VP3.js → header-settings-ge_3gYEq.js} +4 -4
- package/dist/_chunks/heatmap-BARGZZt2.js +2865 -0
- package/dist/_chunks/{help-me-write-templates-Cy-iO5AU.js → help-me-write-templates-B7L3zGsE.js} +28 -28
- package/dist/_chunks/{hover-card-CcRSI4gy.js → hover-card-BnTueNS2.js} +2 -2
- package/dist/_chunks/{iban-input-CpOUMMR-.js → iban-input-B9L2QDHh.js} +2 -2
- package/dist/_chunks/{icon-button-mKIvw90h.js → icon-button-COX76Jdj.js} +2 -2
- package/dist/_chunks/{icon-button-group-BsQkbCX4.js → icon-button-group-C5hhI-R5.js} +3 -3
- package/dist/_chunks/{icon-picker-CSViTQL9.js → icon-picker-DWrqmI1c.js} +20 -20
- package/dist/_chunks/{image-cropper-CNBGkG7P.js → image-cropper-D0kkQ4lG.js} +2 -2
- package/dist/_chunks/{info-tip-Czh1izZ6.js → info-tip-B0jmIt6M.js} +2 -2
- package/dist/_chunks/{input-surface-xyERuLU_.js → input-surface-iBmxVBfr.js} +11 -12
- package/dist/_chunks/{insert-result-BuWQl11Z.js → insert-result-C1C2OCc3.js} +2 -2
- package/dist/_chunks/intl-locale-ySteXlDD.js +23 -0
- package/dist/_chunks/{kbd-BLovyx1R.js → kbd-Bx7eQv9f.js} +70 -66
- package/dist/_chunks/{key-value-pair-BkXjt88Z.js → key-value-pair-Ax8IJr1M.js} +2 -2
- package/dist/_chunks/{kit-extensions-Kca1tkfP.js → kit-extensions-C9-v8Dih.js} +6 -6
- package/dist/_chunks/{link-cell-renderer-D-xv2HMS.js → link-cell-renderer-DlBVPMTi.js} +9 -9
- package/dist/_chunks/{locale-picker-BhNIgeXA.js → locale-picker-DfNSdOpy.js} +4 -4
- package/dist/_chunks/login-dev-card-DmZ1B0lB.js +309 -0
- package/dist/_chunks/{logo-CuaqxTGK.js → logo-hIsyVE96.js} +19 -19
- package/dist/_chunks/{map-view-CQmqQJwK.js → map-view-CO2v0hfp.js} +9 -9
- package/dist/_chunks/{marketplace-app-shell-DbEfoNxe.js → marketplace-app-shell-Dcx-JEjg.js} +11 -11
- package/dist/_chunks/{message-card-C1buKlzM.js → message-card-DVo8-dOm.js} +36 -28
- package/dist/_chunks/{message-tray-DyBVqlGj.js → message-tray-BB95DA82.js} +5 -5
- package/dist/_chunks/{money-GypsuFk2.js → money-CeClE1nH.js} +2 -2
- package/dist/_chunks/multi-select-BT23EnSA.js +688 -0
- package/dist/_chunks/{muscle-scheme-DfYQ0Z3v.js → muscle-scheme-BDgIaGeW.js} +2 -2
- package/dist/_chunks/{nav-grid-BPbmzHY0.js → nav-grid-BqCPH8sm.js} +16 -17
- package/dist/_chunks/{notes-panel-BPb-2ZnJ.js → notes-panel-I8ntrrUW.js} +54 -53
- package/dist/_chunks/{notification-card-DubeUbVJ.js → notification-card-BGCIL6Mu.js} +56 -48
- package/dist/_chunks/{notification-tray-DJ0gtfu6.js → notification-tray-__sJXnsz.js} +5 -5
- package/dist/_chunks/{number-input-DRDRYZJg.js → number-input-CVwI1ltI.js} +2 -2
- package/dist/_chunks/{operator-hero-BnBPxwOi.js → operator-hero-Dyd2IGbR.js} +4 -4
- package/dist/_chunks/{optical-prescription-DBvebioV.js → optical-prescription-Do6e3wfs.js} +5 -5
- package/dist/_chunks/option-row-Dc7BrbK8.js +37 -0
- package/dist/_chunks/{otp-input-BedEqmIV.js → otp-input-CGMu30_e.js} +2 -2
- package/dist/_chunks/{pagination-CzEkpfti.js → pagination-BR1_GfD_.js} +2 -2
- package/dist/_chunks/{panel-subview-D8HGXaUa.js → panel-subview-BT-Apwgb.js} +3 -3
- package/dist/_chunks/{parse-DeDYl04y.js → parse-jZ-i8Xgj.js} +2 -2
- package/dist/_chunks/{password-input-B7pQTk7l.js → password-input-BokZ_rnT.js} +162 -140
- package/dist/_chunks/{patient-details-BP9r_lNS.js → patient-details-DsTtjpuX.js} +6 -6
- package/dist/_chunks/{patient-field-row-BK9JjbzA.js → patient-field-row-BvZ9luz-.js} +212 -211
- package/dist/_chunks/{patient-search-Dm3w0jWw.js → patient-search-D5xlXmd2.js} +5 -5
- package/dist/_chunks/{patient-summary-card-DGbRLzF1.js → patient-summary-card-3dspc2tR.js} +7 -7
- package/dist/_chunks/{payment-automation-upsell-DNiraNhF.js → payment-automation-upsell-DEUfM7EU.js} +5 -5
- package/dist/_chunks/{payment-form-B08gHZIY.js → payment-form-v6zZuV1_.js} +60 -56
- package/dist/_chunks/{payment-request-card-CR7SjsRs.js → payment-request-card-DAGqh9Yx.js} +5 -5
- package/dist/_chunks/{pdf-viewer-zv7pkUPA.js → pdf-viewer-C3minW5b.js} +5 -5
- package/dist/_chunks/periodontal-chart-BqwLxy2m.js +1413 -0
- package/dist/_chunks/{periodontal-chart-card-Djr3en8Q.js → periodontal-chart-card-CWZ1YM1h.js} +3 -3
- package/dist/_chunks/{periodontal-diagnosis-DmVIqXtC.js → periodontal-diagnosis-C9IuvLId.js} +2 -2
- package/dist/_chunks/{periodontal-risk-chart-C1Y5f-md.js → periodontal-risk-chart-D3DjIymT.js} +2 -2
- package/dist/_chunks/{phone-input-BzeUr49H.js → phone-input-DxkHMYmu.js} +139 -139
- package/dist/_chunks/{popover-9_v-7fJc.js → popover-BI3oV3eY.js} +2 -2
- package/dist/_chunks/{postal-code-input-BmbqjkfD.js → postal-code-input-CfZOnIkW.js} +2 -2
- package/dist/_chunks/{practice-profile-hero-Bc3AyBiM.js → practice-profile-hero-C8RPACCi.js} +3 -3
- package/dist/_chunks/{practice-results-D3liWOz1.js → practice-results-DxOgbPDy.js} +9 -9
- package/dist/_chunks/{pregnancy-dating-DV3o2PPl.js → pregnancy-dating-R3q5n1Wh.js} +10 -10
- package/dist/_chunks/{pregnancy-weight-gain-BLjWgtS9.js → pregnancy-weight-gain-DwmNklDU.js} +5 -5
- package/dist/_chunks/{privacy-lock-KDPKiTpH.js → privacy-lock-WkUgwIj_.js} +4 -4
- package/dist/_chunks/{privacy-mask-H8yYwgIb.js → privacy-mask-ChIjELJC.js} +3 -3
- package/dist/_chunks/{product-hub-panel-M5X3TYzq.js → product-hub-panel-BSSiGGG4.js} +49 -49
- package/dist/_chunks/{progress-TIAsNHQW.js → progress-D_g_Sl2g.js} +3 -5
- package/dist/_chunks/{province-select-DtF2ukoC.js → province-select-Bd20Z9Br.js} +2 -2
- package/dist/_chunks/{public-footer-Bfs81Qzp.js → public-footer-CxpG6J1M.js} +93 -90
- package/dist/_chunks/{public-header.agent-CrXkGtTF.js → public-header.agent-BWusjxY8.js} +3 -3
- package/dist/_chunks/{qr-code-Ofx7ryyu.js → qr-code-DHEma21c.js} +47 -48
- package/dist/_chunks/{radiograph-panel.agent-C4j6eoQn.js → radiograph-panel.agent-BA90I3Mu.js} +8 -8
- package/dist/_chunks/registration-form-D7iNqMBF.js +819 -0
- package/dist/_chunks/{reviews-panel-CyxZ0VmZ.js → reviews-panel-CDcK6W3b.js} +6 -6
- package/dist/_chunks/{rich-text-editor-CCCSEPlG.js → rich-text-editor-Blp4smUr.js} +791 -799
- package/dist/_chunks/{scroll-area-BZOvUhwQ.js → scroll-area-ZtFCv9K7.js} +56 -46
- package/dist/_chunks/{search-bar-D695TCDH.js → search-bar-DQJS0wJN.js} +209 -199
- package/dist/_chunks/search-input-BAlDd05M.js +246 -0
- package/dist/_chunks/{section-card-XR2bW1Ie.js → section-card-ChJdOlBU.js} +2 -2
- package/dist/_chunks/{select-DHPmASkG.js → select-Ce5RMk93.js} +274 -236
- package/dist/_chunks/{session-countdown-DWUVDDox.js → session-countdown-CBINYw8H.js} +3 -3
- package/dist/_chunks/{sheet-BTgxkDJS.js → sheet-CNFW8mYZ.js} +3 -3
- package/dist/_chunks/{sidebar-2GBc0ZUa.js → sidebar-DLsG2AIk.js} +123 -124
- package/dist/_chunks/{sign-document-B_3U-S6g.js → sign-document-B6HlyCGV.js} +22 -22
- package/dist/_chunks/{sign-in-with-alfadocs-button-DFmgQuDo.js → sign-in-with-alfadocs-button-D91_x8DX.js} +4 -4
- package/dist/_chunks/{signature-capture-F6KViBF_.js → signature-capture-Chqh62Pc.js} +19 -20
- package/dist/_chunks/{signature-field-DLDznGnB.js → signature-field-Y01UB5DA.js} +2 -2
- package/dist/_chunks/{signature-request-BdolmJk4.js → signature-request-rgMsgo-C.js} +8 -8
- package/dist/_chunks/{signed-out-frame-dz1rLJ65.js → signed-out-frame-B2GTIeqA.js} +51 -51
- package/dist/_chunks/sliders-horizontal-D-F97cnE.js +22 -0
- package/dist/_chunks/{slot-grid-kCDoV3k4.js → slot-grid-sVZriOiQ.js} +4 -4
- package/dist/_chunks/{social-sign-in-button-BMGNlUWs.js → social-sign-in-button-yUqwhnPZ.js} +2 -2
- package/dist/_chunks/{spinner-a0FTYX9Q.js → spinner-CoflYlEx.js} +2 -2
- package/dist/_chunks/{stat-Ce9ymEKm.js → stat-51CDL4au.js} +25 -26
- package/dist/_chunks/state-backed-text-input-DECQy5aA.js +12 -0
- package/dist/_chunks/{stepper-accordion-BPNS6J6B.js → stepper-accordion-D7lnBGh2.js} +49 -49
- package/dist/_chunks/{streaming-text-BAPn_sZs.js → streaming-text-BKZmbW1Q.js} +31 -32
- package/dist/_chunks/subDays-DlMw8Xng.js +8 -0
- package/dist/_chunks/{tab-bar-DRKiomgj.js → tab-bar-Bm-rJB7Y.js} +7 -8
- package/dist/_chunks/{tabs-yIY-RySP.js → tabs-I2wf_nC7.js} +3 -3
- package/dist/_chunks/{task-card-C02Km4Gb.js → task-card-BMXMh3uE.js} +9 -9
- package/dist/_chunks/{task-editor-Dl27rI3J.js → task-editor-Ctxsa1BY.js} +155 -157
- package/dist/_chunks/{task-tray-By6DPwbT.js → task-tray-DsBO-AaP.js} +31 -31
- package/dist/_chunks/{tasks-panel-BkN9sROF.js → tasks-panel-CdgZQQgG.js} +130 -131
- package/dist/_chunks/{text-area-CDuItrvL.js → text-area-COMVJ1yE.js} +106 -96
- package/dist/_chunks/text-input-CaG9ApoE.js +333 -0
- package/dist/_chunks/{theme-toggle-BAHz3itd.js → theme-toggle-PpFcFoYK.js} +4 -4
- package/dist/_chunks/time-picker-DVfyAR81.js +871 -0
- package/dist/_chunks/{timeline-CVLjybJ3.js → timeline-DG8wAlAx.js} +3 -3
- package/dist/_chunks/{toast-UMUvXFsA.js → toast-CPqguP7G.js} +2 -2
- package/dist/_chunks/{token-insert-menu-DgtBIbNu.js → token-insert-menu-B-pWFDKX.js} +3 -3
- package/dist/_chunks/{tool-rail-CwXN-sDC.js → tool-rail-Bwyuw_Ot.js} +113 -110
- package/dist/_chunks/{tooth-scheme-BAMhwCZe.js → tooth-scheme-BAO_voUO.js} +97 -97
- package/dist/_chunks/{transcript-panel-CLgtyVbR.js → transcript-panel-CjsiDB1K.js} +4 -4
- package/dist/_chunks/{treatment-receipt-DF2Slh-x.js → treatment-receipt-BSVOfStA.js} +2 -2
- package/dist/_chunks/{typing-indicator-BmwMQSxw.js → typing-indicator-B1RkE8jD.js} +16 -15
- package/dist/_chunks/{unit-converter-CXNr5P4J.js → unit-converter-DS4UB_59.js} +5 -5
- package/dist/_chunks/{use-appointment-details-read-BEbLseXW.js → use-appointment-details-read-DinTrRIW.js} +214 -214
- package/dist/_chunks/use-dom-value-DTxHhQAN.js +16 -0
- package/dist/_chunks/{use-prism-DaspP8w-.js → use-prism-DBOiELx7.js} +9 -9
- package/dist/_chunks/use-registration-submit-eWAECgUC.js +171 -0
- package/dist/_chunks/use-state-backed-input-C7ESmxKB.js +59 -0
- package/dist/_chunks/voice-control-panel-Bg1eklL0.js +1009 -0
- package/dist/_chunks/{wallet-pay-button-Dew8Pmgq.js → wallet-pay-button-DFP5FW0D.js} +2 -2
- package/dist/_chunks/{warning-stack-B_v_qMBI.js → warning-stack-ubD0IZCy.js} +25 -25
- package/dist/_chunks/{widget-picker-BCbwD5Z1.js → widget-picker-D8RiWrJd.js} +38 -38
- package/dist/_chunks/{workflow-map-PzamnfJK.js → workflow-map-D3mezmGB.js} +8 -8
- package/dist/_chunks/{workflow-status-DDnsIrLt.js → workflow-status-BT27_fQp.js} +3 -3
- package/dist/agent-catalog.json +584 -14
- package/dist/agent-i18n/en.json +51 -10
- package/dist/components/_shared/ai-fab-pill.d.ts +18 -0
- package/dist/components/_shared/floating-clearance.d.ts +12 -0
- package/dist/components/_shared/glass-surface.d.ts +22 -0
- package/dist/components/_shared/input-surface.d.ts +1 -1
- package/dist/components/_shared/intl-locale.d.ts +7 -0
- package/dist/components/_shared/option-row.d.ts +30 -0
- package/dist/components/_shared/option.d.ts +2 -0
- package/dist/components/_shared/state-backed-text-input.d.ts +16 -0
- package/dist/components/_shared/use-dom-value.d.ts +20 -0
- package/dist/components/_shared/use-state-backed-input.d.ts +31 -0
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/address-autocomplete/index.js +1 -1
- package/dist/components/address-fields/address-fields.d.ts +4 -0
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-credits-notice/index.js +1 -1
- package/dist/components/ai-permission-notice/ai-permission-notice.d.ts +34 -0
- package/dist/components/ai-permission-notice/index.d.ts +1 -1
- package/dist/components/ai-permission-notice/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/anamnesis-summary-card/index.js +1 -1
- package/dist/components/app-frame/index.js +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/benefit-card/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/booking-types.d.ts +10 -5
- package/dist/components/booking/index.js +1 -1
- package/dist/components/booking/payment.d.ts +19 -0
- package/dist/components/button/index.js +2 -2
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/card/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/care-plan-header/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/chat-container/index.js +1 -1
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/city-input/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/combobox/combobox.d.ts +6 -0
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/connection-status/index.js +1 -1
- package/dist/components/contact-card/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/control-room-rail/index.js +1 -1
- package/dist/components/copy-field/index.js +1 -1
- package/dist/components/country-select/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/dashboard-grid/index.js +1 -1
- package/dist/components/data-table/index.js +4 -4
- package/dist/components/data-table-tabs/index.js +1 -1
- package/dist/components/date-picker/date-picker.d.ts +3 -3
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/date-range-picker.d.ts +3 -3
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/dependent-selector/index.js +1 -1
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/dev-bypass-button/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/dropdown-menu/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/editable-description/index.js +1 -1
- package/dist/components/editor-overlay/index.js +1 -1
- package/dist/components/email-input/email-input.d.ts +1 -1
- package/dist/components/email-input/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/error-boundary/index.js +1 -1
- package/dist/components/error-summary/error-summary.d.ts +50 -0
- package/dist/components/error-summary/index.d.ts +2 -0
- package/dist/components/error-summary/index.js +5 -0
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/field-array/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/finished-terminal/index.js +1 -1
- package/dist/components/fiscal-code-input/index.js +1 -1
- package/dist/components/form-field/form-field-context.d.ts +5 -0
- package/dist/components/form-field/form-field.d.ts +9 -0
- package/dist/components/form-field/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/header/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/heatmap/heatmap-context.d.ts +21 -0
- package/dist/components/heatmap/heatmap-format.d.ts +59 -0
- package/dist/components/heatmap/heatmap-grid.d.ts +66 -0
- package/dist/components/heatmap/heatmap-legend.d.ts +36 -0
- package/dist/components/heatmap/heatmap-model.d.ts +152 -0
- package/dist/components/heatmap/heatmap-scale.d.ts +125 -0
- package/dist/components/heatmap/heatmap-table-view.d.ts +35 -0
- package/dist/components/heatmap/heatmap-tooltip.d.ts +40 -0
- package/dist/components/heatmap/heatmap-variants.d.ts +87 -0
- package/dist/components/heatmap/heatmap-window.d.ts +54 -0
- package/dist/components/heatmap/heatmap.agent.d.ts +4 -0
- package/dist/components/heatmap/heatmap.d.ts +186 -0
- package/dist/components/heatmap/index.d.ts +8 -0
- package/dist/components/heatmap/index.js +8 -0
- package/dist/components/hover-card/index.js +1 -1
- package/dist/components/iban-input/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/icon-button-group/index.js +1 -1
- package/dist/components/icon-picker/index.js +1 -1
- package/dist/components/image-cropper/index.js +1 -1
- package/dist/components/index.d.ts +3 -0
- package/dist/components/info-tip/index.js +1 -1
- package/dist/components/kbd/index.js +1 -1
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/logo/index.js +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/money/index.js +1 -1
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/multi-select/multi-select.d.ts +6 -0
- package/dist/components/muscle-scheme/index.js +1 -1
- package/dist/components/nav-grid/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/otp-input/index.js +1 -1
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/panel-subview/index.js +1 -1
- package/dist/components/password-input/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/periodontal-chart/index.d.ts +1 -1
- package/dist/components/periodontal-chart/index.js +1 -1
- package/dist/components/periodontal-chart/periodontal-chart.d.ts +44 -1
- package/dist/components/periodontal-chart-card/index.js +1 -1
- package/dist/components/periodontal-diagnosis/index.js +1 -1
- package/dist/components/periodontal-risk-chart/index.js +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/postal-code-input/index.js +1 -1
- package/dist/components/practice-profile-hero/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/privacy-lock/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/progress/index.js +1 -1
- package/dist/components/province-select/index.js +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/qr-code/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +5 -20
- package/dist/components/scroll-area/index.js +1 -1
- package/dist/components/scroll-area/scroll-area.d.ts +17 -1
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-input/index.js +1 -1
- package/dist/components/section-card/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/select.d.ts +41 -0
- package/dist/components/session-countdown/index.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
- package/dist/components/signature-capture/index.js +1 -1
- package/dist/components/signature-field/index.js +1 -1
- package/dist/components/skeleton-scheme/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/social-sign-in-button/index.js +1 -1
- package/dist/components/spinner/index.js +1 -1
- package/dist/components/stat/index.js +1 -1
- package/dist/components/stepper-accordion/index.js +1 -1
- package/dist/components/streaming-text/index.js +1 -1
- package/dist/components/tab-bar/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/text-area/index.js +1 -1
- package/dist/components/text-input/index.js +1 -1
- package/dist/components/text-input/text-input.d.ts +13 -0
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/time-picker/index.js +1 -1
- package/dist/components/time-picker/time-picker.d.ts +26 -5
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/token-insert-menu/index.js +1 -1
- package/dist/components/tool-rail/index.js +1 -1
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/treatment-receipt/index.js +1 -1
- package/dist/components/typing-indicator/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/voice-control-panel/index.d.ts +5 -0
- package/dist/components/voice-control-panel/index.js +6 -0
- package/dist/components/voice-control-panel/voice-control-panel.agent.d.ts +4 -0
- package/dist/components/voice-control-panel/voice-control-panel.d.ts +179 -0
- package/dist/components/wallet-pay-button/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/widget-picker/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/components/workflow-status/index.js +2 -2
- package/dist/error-pages/400.ar.html +1 -1
- package/dist/error-pages/400.de.html +1 -1
- package/dist/error-pages/400.el.html +1 -1
- package/dist/error-pages/400.en.html +1 -1
- package/dist/error-pages/400.es.html +1 -1
- package/dist/error-pages/400.fr.html +1 -1
- package/dist/error-pages/400.hi.html +1 -1
- package/dist/error-pages/400.html +1 -1
- package/dist/error-pages/400.it.html +1 -1
- package/dist/error-pages/400.ja.html +1 -1
- package/dist/error-pages/400.nl.html +1 -1
- package/dist/error-pages/400.pl.html +1 -1
- package/dist/error-pages/400.pt.html +1 -1
- package/dist/error-pages/400.ro.html +1 -1
- package/dist/error-pages/400.ru.html +1 -1
- package/dist/error-pages/400.sq.html +1 -1
- package/dist/error-pages/400.sv.html +1 -1
- package/dist/error-pages/400.tr.html +1 -1
- package/dist/error-pages/400.zh.html +1 -1
- package/dist/error-pages/410.ar.html +1 -1
- package/dist/error-pages/410.de.html +1 -1
- package/dist/error-pages/410.el.html +1 -1
- package/dist/error-pages/410.en.html +1 -1
- package/dist/error-pages/410.es.html +1 -1
- package/dist/error-pages/410.fr.html +1 -1
- package/dist/error-pages/410.hi.html +1 -1
- package/dist/error-pages/410.html +1 -1
- package/dist/error-pages/410.it.html +1 -1
- package/dist/error-pages/410.ja.html +1 -1
- package/dist/error-pages/410.nl.html +1 -1
- package/dist/error-pages/410.pl.html +1 -1
- package/dist/error-pages/410.pt.html +1 -1
- package/dist/error-pages/410.ro.html +1 -1
- package/dist/error-pages/410.ru.html +1 -1
- package/dist/error-pages/410.sq.html +1 -1
- package/dist/error-pages/410.sv.html +1 -1
- package/dist/error-pages/410.tr.html +1 -1
- package/dist/error-pages/410.zh.html +1 -1
- package/dist/error-pages/419.ar.html +1 -1
- package/dist/error-pages/419.de.html +1 -1
- package/dist/error-pages/419.el.html +1 -1
- package/dist/error-pages/419.en.html +1 -1
- package/dist/error-pages/419.es.html +1 -1
- package/dist/error-pages/419.fr.html +1 -1
- package/dist/error-pages/419.hi.html +1 -1
- package/dist/error-pages/419.html +1 -1
- package/dist/error-pages/419.it.html +1 -1
- package/dist/error-pages/419.ja.html +1 -1
- package/dist/error-pages/419.nl.html +1 -1
- package/dist/error-pages/419.pl.html +1 -1
- package/dist/error-pages/419.pt.html +1 -1
- package/dist/error-pages/419.ro.html +1 -1
- package/dist/error-pages/419.ru.html +1 -1
- package/dist/error-pages/419.sq.html +1 -1
- package/dist/error-pages/419.sv.html +1 -1
- package/dist/error-pages/419.tr.html +1 -1
- package/dist/error-pages/419.zh.html +1 -1
- package/dist/error-pages/429.ar.html +1 -1
- package/dist/error-pages/429.de.html +1 -1
- package/dist/error-pages/429.el.html +1 -1
- package/dist/error-pages/429.en.html +1 -1
- package/dist/error-pages/429.es.html +1 -1
- package/dist/error-pages/429.fr.html +1 -1
- package/dist/error-pages/429.hi.html +1 -1
- package/dist/error-pages/429.html +1 -1
- package/dist/error-pages/429.it.html +1 -1
- package/dist/error-pages/429.ja.html +1 -1
- package/dist/error-pages/429.nl.html +1 -1
- package/dist/error-pages/429.pl.html +1 -1
- package/dist/error-pages/429.pt.html +1 -1
- package/dist/error-pages/429.ro.html +1 -1
- package/dist/error-pages/429.ru.html +1 -1
- package/dist/error-pages/429.sq.html +1 -1
- package/dist/error-pages/429.sv.html +1 -1
- package/dist/error-pages/429.tr.html +1 -1
- package/dist/error-pages/429.zh.html +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-field-match.d.ts +3 -2
- package/dist/host-compat.css +9 -2
- package/dist/host-legacy.css +86 -0
- package/dist/i18n/locales/ar.d.ts +121 -1
- package/dist/i18n/locales/ar.js +122 -2
- package/dist/i18n/locales/de.d.ts +121 -1
- package/dist/i18n/locales/de.js +122 -2
- package/dist/i18n/locales/el.d.ts +121 -1
- package/dist/i18n/locales/el.js +122 -2
- package/dist/i18n/locales/en.d.ts +121 -1
- package/dist/i18n/locales/en.js +122 -2
- package/dist/i18n/locales/es.d.ts +121 -1
- package/dist/i18n/locales/es.js +122 -2
- package/dist/i18n/locales/fr.d.ts +121 -1
- package/dist/i18n/locales/fr.js +122 -2
- package/dist/i18n/locales/hi.d.ts +121 -1
- package/dist/i18n/locales/hi.js +122 -2
- package/dist/i18n/locales/it.d.ts +121 -1
- package/dist/i18n/locales/it.js +122 -2
- package/dist/i18n/locales/ja.d.ts +121 -1
- package/dist/i18n/locales/ja.js +122 -2
- package/dist/i18n/locales/nl.d.ts +121 -1
- package/dist/i18n/locales/nl.js +122 -2
- package/dist/i18n/locales/pl.d.ts +121 -1
- package/dist/i18n/locales/pl.js +122 -2
- package/dist/i18n/locales/pt.d.ts +121 -1
- package/dist/i18n/locales/pt.js +122 -2
- package/dist/i18n/locales/ro.d.ts +121 -1
- package/dist/i18n/locales/ro.js +122 -2
- package/dist/i18n/locales/ru.d.ts +121 -1
- package/dist/i18n/locales/ru.js +122 -2
- package/dist/i18n/locales/sq.d.ts +121 -1
- package/dist/i18n/locales/sq.js +122 -2
- package/dist/i18n/locales/sv.d.ts +121 -1
- package/dist/i18n/locales/sv.js +122 -2
- package/dist/i18n/locales/tr.d.ts +121 -1
- package/dist/i18n/locales/tr.js +122 -2
- package/dist/i18n/locales/zh.d.ts +121 -1
- package/dist/i18n/locales/zh.js +122 -2
- package/dist/index.js +763 -753
- package/dist/locales/ar.json +122 -2
- package/dist/locales/de.json +122 -2
- package/dist/locales/el.json +122 -2
- package/dist/locales/en.json +122 -2
- package/dist/locales/es.json +122 -2
- package/dist/locales/fr.json +122 -2
- package/dist/locales/hi.json +122 -2
- package/dist/locales/it.json +122 -2
- package/dist/locales/ja.json +122 -2
- package/dist/locales/nl.json +122 -2
- package/dist/locales/pl.json +122 -2
- package/dist/locales/pt.json +122 -2
- package/dist/locales/ro.json +122 -2
- package/dist/locales/ru.json +122 -2
- package/dist/locales/sq.json +122 -2
- package/dist/locales/sv.json +122 -2
- package/dist/locales/tr.json +122 -2
- package/dist/locales/zh.json +122 -2
- package/dist/patterns/_shared/auth-form-parts.d.ts +4 -0
- package/dist/patterns/_shared/use-error-summary.d.ts +34 -0
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/error-page/error-page.d.ts +29 -5
- package/dist/patterns/error-page/index.js +2 -2
- package/dist/patterns/forgot-password-form/forgot-password-form.d.ts +3 -2
- package/dist/patterns/forgot-password-form/index.js +1 -1
- package/dist/patterns/help-me-write-templates/index.js +1 -1
- package/dist/patterns/login-form/index.js +1 -1
- package/dist/patterns/login-form/login-form.d.ts +5 -4
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/payment-automation-upsell/index.js +1 -1
- package/dist/patterns/registration-form/index.d.ts +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/registration-form/registration-form.d.ts +19 -2
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/signed-out-frame/index.js +1 -1
- package/dist/tokens.css +10 -13
- package/package.json +19 -2
- package/dist/_chunks/address-fields-1pD-8hML.js +0 -292
- package/dist/_chunks/city-input-DyxVWSRQ.js +0 -170
- package/dist/_chunks/editor-overlay-CWV0chPV.js +0 -93
- package/dist/_chunks/error-page-C15GfNEj.js +0 -312
- package/dist/_chunks/forgot-password-form-DVVOBEGj.js +0 -203
- package/dist/_chunks/format-price-DAbh61Lz.js +0 -51
- package/dist/_chunks/intl-locale-CXM-B8EP.js +0 -16
- package/dist/_chunks/login-dev-card-q7iTojvV.js +0 -275
- package/dist/_chunks/multi-select-CVb6PJOK.js +0 -638
- package/dist/_chunks/periodontal-chart-5nLsSuRM.js +0 -1305
- package/dist/_chunks/registration-form-CBDeXzlk.js +0 -748
- package/dist/_chunks/search-input-Tl-RkS5x.js +0 -237
- package/dist/_chunks/subDays-XBMBTVOO.js +0 -8
- package/dist/_chunks/text-input-lZ2-t-p2.js +0 -283
- package/dist/_chunks/time-picker-DKKmpFh3.js +0 -425
- package/dist/_chunks/use-registration-submit-DxCWic5_.js +0 -141
package/dist/_chunks/{anamnesis-summary-rows-BMjSBqhS.js → anamnesis-summary-rows-Dtw5Hpg4.js}
RENAMED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { jsxs as c, jsx as i, Fragment as Ce } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as _e, useState as I, useEffect as ba, useCallback as Qe, useId as oa, Fragment as nn, useMemo as H, useContext as on, createContext as rn } from "react";
|
|
3
3
|
import { B as Y } from "./badge-hnBt8o7n.js";
|
|
4
|
-
import { B as ie } from "./button-
|
|
5
|
-
import { I as de } from "./icon-button-
|
|
6
|
-
import { C as le } from "./card-
|
|
7
|
-
import { C as Zt, b as Yt, a as Jt } from "./collapsible-
|
|
8
|
-
import { E as Xe } from "./empty-state-
|
|
9
|
-
import { F as M } from "./form-field-
|
|
10
|
-
import { M as ln } from "./multi-select-
|
|
11
|
-
import { N as ga } from "./number-input-
|
|
4
|
+
import { B as ie } from "./button-Bn16lcFM.js";
|
|
5
|
+
import { I as de } from "./icon-button-COX76Jdj.js";
|
|
6
|
+
import { C as le } from "./card-DMO2nkt4.js";
|
|
7
|
+
import { C as Zt, b as Yt, a as Jt } from "./collapsible-DVPM46bq.js";
|
|
8
|
+
import { E as Xe } from "./empty-state-gNG3qYCX.js";
|
|
9
|
+
import { F as M } from "./form-field-Ani72sVY.js";
|
|
10
|
+
import { M as ln } from "./multi-select-BT23EnSA.js";
|
|
11
|
+
import { N as ga } from "./number-input-CVwI1ltI.js";
|
|
12
12
|
import { R as ze } from "./radio-BBbMdbE_.js";
|
|
13
13
|
import { R as ma } from "./radio-group-BT97ty7o.js";
|
|
14
|
-
import { S as Me } from "./select-
|
|
15
|
-
import { T as Q } from "./tabs-
|
|
16
|
-
import { T as na } from "./text-area-
|
|
17
|
-
import {
|
|
14
|
+
import { S as Me } from "./select-Ce5RMk93.js";
|
|
15
|
+
import { T as Q } from "./tabs-I2wf_nC7.js";
|
|
16
|
+
import { T as na } from "./text-area-COMVJ1yE.js";
|
|
17
|
+
import { S as te } from "./state-backed-text-input-DECQy5aA.js";
|
|
18
18
|
import { T as Ze } from "./timestamp-DPLDWdxA.js";
|
|
19
|
-
import { D as sn } from "./date-picker-
|
|
19
|
+
import { D as sn } from "./date-picker-wRAcq2lt.js";
|
|
20
20
|
import { A as Ue } from "./alert-BhCstf2h.js";
|
|
21
|
-
import { D as L } from "./description-list-
|
|
21
|
+
import { D as L } from "./description-list-DkLeHiew.js";
|
|
22
22
|
import { c as Xt } from "./index-D2ZczOXr.js";
|
|
23
23
|
import { S as dn } from "./sparkline-pkGPCXbl.js";
|
|
24
24
|
import { A as ei, a as ai } from "./arrow-up-BYvcvTkB.js";
|
|
25
25
|
import { M as cn } from "./minus-BQDHq1c1.js";
|
|
26
26
|
import { U as un } from "./user-B12p7bVF.js";
|
|
27
27
|
import { C as Pa } from "./chevron-down-DWE7GSq9.js";
|
|
28
|
-
import { D as X } from "./dropdown-menu-
|
|
28
|
+
import { D as X } from "./dropdown-menu-BQSNVp4x.js";
|
|
29
29
|
import { A as mn } from "./annotation-marker-D-M7y4R1.js";
|
|
30
30
|
import { D as ee } from "./dialog-D52AI4nF.js";
|
|
31
31
|
import { S as pn } from "./share-2-B49jcW2I.js";
|
|
@@ -34,22 +34,23 @@ import { P as hn } from "./printer-rkK0T1gi.js";
|
|
|
34
34
|
import { F as bn } from "./file-spreadsheet-DmwyfV4O.js";
|
|
35
35
|
import { D as fn } from "./download-CfYKJO_j.js";
|
|
36
36
|
import { C as yn } from "./checkbox--ndmyokr.js";
|
|
37
|
-
import { T as vn } from "./
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
37
|
+
import { T as vn } from "./text-input-CaG9ApoE.js";
|
|
38
|
+
import { T as kn } from "./time-picker-DVfyAR81.js";
|
|
39
|
+
import { H as wn } from "./heart-pulse-BCppJyN2.js";
|
|
40
|
+
import { P as ke } from "./popover-BI3oV3eY.js";
|
|
40
41
|
import { P as ua } from "./pencil-B1sKKyuT.js";
|
|
41
|
-
import { useTranslation as
|
|
42
|
-
import { e as
|
|
42
|
+
import { useTranslation as zn } from "react-i18next";
|
|
43
|
+
import { e as xn, b as An } from "./bmi-BxD-tFzU.js";
|
|
43
44
|
import { P as ia } from "./plus-DzMQ_c6b.js";
|
|
44
|
-
import { T as
|
|
45
|
-
import { A as
|
|
46
|
-
import { P as
|
|
45
|
+
import { T as Nn } from "./trash-2-uumy3fy1.js";
|
|
46
|
+
import { A as Tn, b as Cn, c as Sn, a as _n } from "./accordion-Ch3xp0mX.js";
|
|
47
|
+
import { P as Dn } from "./progress-D_g_Sl2g.js";
|
|
47
48
|
import { c as ot } from "./createLucideIcon-DhHxpK9K.js";
|
|
48
|
-
import { I as xa } from "./icon-button-group-
|
|
49
|
+
import { I as xa } from "./icon-button-group-C5hhI-R5.js";
|
|
49
50
|
import { L as aa } from "./list-RRN2TJ_7.js";
|
|
50
51
|
import { S as rt } from "./switch-D--x7n6h.js";
|
|
51
|
-
import { G as
|
|
52
|
-
import { L as
|
|
52
|
+
import { G as jn } from "./grip-vertical-onSb1JXO.js";
|
|
53
|
+
import { L as Pn } from "./lock-ClAFG1gy.js";
|
|
53
54
|
import { N as Ct } from "./notebook-pen-CO7HoM-W.js";
|
|
54
55
|
/**
|
|
55
56
|
* @license lucide-react v1.22.0 - ISC
|
|
@@ -57,31 +58,31 @@ import { N as Ct } from "./notebook-pen-CO7HoM-W.js";
|
|
|
57
58
|
* This source code is licensed under the ISC license.
|
|
58
59
|
* See the LICENSE file in the root directory of this source tree.
|
|
59
60
|
*/
|
|
60
|
-
const
|
|
61
|
+
const En = [
|
|
61
62
|
["rect", { width: "20", height: "5", x: "2", y: "3", rx: "1", key: "1wp1u1" }],
|
|
62
63
|
["path", { d: "M4 8v11a2 2 0 0 0 2 2h2", key: "tvwodi" }],
|
|
63
64
|
["path", { d: "M20 8v11a2 2 0 0 1-2 2h-2", key: "1gkqxj" }],
|
|
64
65
|
["path", { d: "m9 15 3-3 3 3", key: "1pd0qc" }],
|
|
65
66
|
["path", { d: "M12 12v9", key: "192myk" }]
|
|
66
|
-
], Aa = ot("archive-restore",
|
|
67
|
+
], Aa = ot("archive-restore", En);
|
|
67
68
|
/**
|
|
68
69
|
* @license lucide-react v1.22.0 - ISC
|
|
69
70
|
*
|
|
70
71
|
* This source code is licensed under the ISC license.
|
|
71
72
|
* See the LICENSE file in the root directory of this source tree.
|
|
72
73
|
*/
|
|
73
|
-
const
|
|
74
|
+
const Ln = [
|
|
74
75
|
["rect", { width: "20", height: "5", x: "2", y: "3", rx: "1", key: "1wp1u1" }],
|
|
75
76
|
["path", { d: "M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8", key: "1s80jp" }],
|
|
76
77
|
["path", { d: "M10 12h4", key: "a56b0p" }]
|
|
77
|
-
], Na = ot("archive",
|
|
78
|
+
], Na = ot("archive", Ln);
|
|
78
79
|
/**
|
|
79
80
|
* @license lucide-react v1.22.0 - ISC
|
|
80
81
|
*
|
|
81
82
|
* This source code is licensed under the ISC license.
|
|
82
83
|
* See the LICENSE file in the root directory of this source tree.
|
|
83
84
|
*/
|
|
84
|
-
const
|
|
85
|
+
const Fn = [
|
|
85
86
|
[
|
|
86
87
|
"path",
|
|
87
88
|
{
|
|
@@ -90,7 +91,7 @@ const Ln = [
|
|
|
90
91
|
}
|
|
91
92
|
],
|
|
92
93
|
["path", { d: "M6 12h16", key: "s4cdu5" }]
|
|
93
|
-
],
|
|
94
|
+
], In = ot("send-horizontal", Fn), Rn = [
|
|
94
95
|
{
|
|
95
96
|
key: "weight",
|
|
96
97
|
goal: !0,
|
|
@@ -149,7 +150,7 @@ const Ln = [
|
|
|
149
150
|
betterDirection: "up",
|
|
150
151
|
precision: 1
|
|
151
152
|
}
|
|
152
|
-
],
|
|
153
|
+
], On = [
|
|
153
154
|
{
|
|
154
155
|
key: "fastingGlucose",
|
|
155
156
|
group: "lab",
|
|
@@ -246,7 +247,7 @@ const Ln = [
|
|
|
246
247
|
betterDirection: "toRange",
|
|
247
248
|
precision: 2
|
|
248
249
|
}
|
|
249
|
-
],
|
|
250
|
+
], Mn = [
|
|
250
251
|
// No reference range, deliberately: 1,600 kcal/d is a success for one
|
|
251
252
|
// patient and starvation for another, so the only honest reference is the
|
|
252
253
|
// patient's own target and `toRange` reads every change as neutral.
|
|
@@ -272,9 +273,9 @@ const Ln = [
|
|
|
272
273
|
precision: 0
|
|
273
274
|
}
|
|
274
275
|
], lt = [
|
|
275
|
-
...
|
|
276
|
-
...
|
|
277
|
-
...
|
|
276
|
+
...Rn,
|
|
277
|
+
...Mn,
|
|
278
|
+
...On
|
|
278
279
|
], St = Object.fromEntries(lt.map((e) => [e.key, e])), Ca = [
|
|
279
280
|
{ code: "E66" },
|
|
280
281
|
{ code: "E66.0", parentCode: "E66" },
|
|
@@ -290,7 +291,7 @@ const Ln = [
|
|
|
290
291
|
{ code: "E55" }
|
|
291
292
|
];
|
|
292
293
|
Object.fromEntries(Ca.map((e) => [e.code, e]));
|
|
293
|
-
const
|
|
294
|
+
const Vn = (e) => `anamnesis.pathology.${e.replace(/\./g, "_")}`;
|
|
294
295
|
Ca.filter(
|
|
295
296
|
(e) => !Ca.some((a) => a.parentCode === e.code)
|
|
296
297
|
).map((e) => e.code);
|
|
@@ -425,20 +426,20 @@ const ti = [
|
|
|
425
426
|
ti.flatMap(
|
|
426
427
|
(e) => e.fields.map((a) => a.key)
|
|
427
428
|
);
|
|
428
|
-
const
|
|
429
|
+
const Hn = /* @__PURE__ */ new Set([
|
|
429
430
|
"weight",
|
|
430
431
|
"height",
|
|
431
432
|
"bmi"
|
|
432
433
|
]);
|
|
433
|
-
function
|
|
434
|
-
return
|
|
434
|
+
function Bn(e) {
|
|
435
|
+
return Hn.has(e);
|
|
435
436
|
}
|
|
436
437
|
function ii(e) {
|
|
437
438
|
var n;
|
|
438
439
|
const a = typeof e == "string" ? St[e] : e;
|
|
439
440
|
return a ? (a.targetable ?? ((n = St[a.key]) == null ? void 0 : n.targetable) ?? !1) || a.goal === !0 : !1;
|
|
440
441
|
}
|
|
441
|
-
const
|
|
442
|
+
const Js = new Set(
|
|
442
443
|
lt.filter((e) => ii(e)).map(
|
|
443
444
|
(e) => e.key
|
|
444
445
|
)
|
|
@@ -463,7 +464,7 @@ function Sa(e) {
|
|
|
463
464
|
return e.enabled !== !1;
|
|
464
465
|
}
|
|
465
466
|
function ni(e) {
|
|
466
|
-
const a =
|
|
467
|
+
const a = Bn(e.key);
|
|
467
468
|
return e.locked === a ? e : { ...e, locked: a };
|
|
468
469
|
}
|
|
469
470
|
function oi(e) {
|
|
@@ -482,7 +483,7 @@ function De(e, a) {
|
|
|
482
483
|
const t = ra(e).parameters.map(ni), n = a ? t.filter((o) => o.group === a) : t;
|
|
483
484
|
return oi(n);
|
|
484
485
|
}
|
|
485
|
-
function
|
|
486
|
+
function qn(e) {
|
|
486
487
|
return { ...e, fields: Ye(e.fields) };
|
|
487
488
|
}
|
|
488
489
|
function st(e) {
|
|
@@ -492,7 +493,7 @@ function st(e) {
|
|
|
492
493
|
})).filter((a) => a.fields.length > 0);
|
|
493
494
|
}
|
|
494
495
|
function We(e) {
|
|
495
|
-
return Ye(ra(e).intakeSections).map(
|
|
496
|
+
return Ye(ra(e).intakeSections).map(qn);
|
|
496
497
|
}
|
|
497
498
|
function ri(e) {
|
|
498
499
|
return Ye(ra(e).pathologies.filter(Sa));
|
|
@@ -505,7 +506,7 @@ function dt(e) {
|
|
|
505
506
|
et(e).map((a) => [a.code, a])
|
|
506
507
|
);
|
|
507
508
|
}
|
|
508
|
-
function
|
|
509
|
+
function Kn(e) {
|
|
509
510
|
const a = ri(e);
|
|
510
511
|
return a.filter((t) => !a.some((n) => n.parentCode === t.code)).map((t) => t.code);
|
|
511
512
|
}
|
|
@@ -527,35 +528,35 @@ const ct = {
|
|
|
527
528
|
day: "numeric",
|
|
528
529
|
hour: "2-digit",
|
|
529
530
|
minute: "2-digit"
|
|
530
|
-
},
|
|
531
|
+
}, Gn = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}/, Un = /^\d{4}-\d{2}-\d{2}/;
|
|
531
532
|
function Je(e) {
|
|
532
|
-
return e != null &&
|
|
533
|
+
return e != null && Gn.test(e);
|
|
533
534
|
}
|
|
534
535
|
function _t(e) {
|
|
535
|
-
return
|
|
536
|
+
return Un.test(e) ? e.slice(0, 10) : e;
|
|
536
537
|
}
|
|
537
538
|
function ha(e) {
|
|
538
539
|
return Je(e) ? li : Ea;
|
|
539
540
|
}
|
|
540
|
-
function
|
|
541
|
-
return
|
|
541
|
+
function Wn(e, a) {
|
|
542
|
+
return xn(e ?? null, a ?? null);
|
|
542
543
|
}
|
|
543
544
|
function Be(e) {
|
|
544
545
|
return e != null && !Number.isNaN(new Date(e).getTime());
|
|
545
546
|
}
|
|
546
|
-
function
|
|
547
|
+
function $n(e, a) {
|
|
547
548
|
if (!Be(e) || !Be(a)) return null;
|
|
548
549
|
const t = new Date(_t(e)), n = new Date(_t(a));
|
|
549
550
|
let o = n.getUTCFullYear() - t.getUTCFullYear();
|
|
550
551
|
const r = n.getUTCMonth() - t.getUTCMonth();
|
|
551
552
|
return (r < 0 || r === 0 && n.getUTCDate() < t.getUTCDate()) && (o -= 1), o < 0 ? null : o;
|
|
552
553
|
}
|
|
553
|
-
const
|
|
554
|
+
const Qn = /* @__PURE__ */ new Set([
|
|
554
555
|
"energy",
|
|
555
556
|
"protein"
|
|
556
557
|
]);
|
|
557
558
|
function si(e) {
|
|
558
|
-
return e.key === "bmi" ? "computed" : e.key in ct ? "anthropometric" :
|
|
559
|
+
return e.key === "bmi" ? "computed" : e.key in ct ? "anthropometric" : Qn.has(e.key) ? "dietary" : "lab";
|
|
559
560
|
}
|
|
560
561
|
function da(e) {
|
|
561
562
|
return e != null && Number.isFinite(e) ? e : null;
|
|
@@ -564,7 +565,7 @@ function je(e, a) {
|
|
|
564
565
|
var t;
|
|
565
566
|
switch (si(a)) {
|
|
566
567
|
case "computed":
|
|
567
|
-
return
|
|
568
|
+
return Wn(
|
|
568
569
|
da(e.anthropometrics.weightKg),
|
|
569
570
|
da(e.anthropometrics.heightCm)
|
|
570
571
|
);
|
|
@@ -580,7 +581,7 @@ function je(e, a) {
|
|
|
580
581
|
}
|
|
581
582
|
}
|
|
582
583
|
}
|
|
583
|
-
function
|
|
584
|
+
function Zn(e, a) {
|
|
584
585
|
for (let t = e.length - 1; t >= 0; t -= 1) {
|
|
585
586
|
const n = e[t], o = je(n, a);
|
|
586
587
|
if (o != null) return { value: o, visit: n };
|
|
@@ -672,7 +673,7 @@ function ci(e, a) {
|
|
|
672
673
|
};
|
|
673
674
|
});
|
|
674
675
|
}
|
|
675
|
-
function
|
|
676
|
+
function Yn(e, a) {
|
|
676
677
|
const t = 10 ** a;
|
|
677
678
|
return Math.round(e * t) / t;
|
|
678
679
|
}
|
|
@@ -680,7 +681,7 @@ function Fa(e) {
|
|
|
680
681
|
return e.visits[e.visits.length - 1];
|
|
681
682
|
}
|
|
682
683
|
const la = "—", Et = /* @__PURE__ */ new Map();
|
|
683
|
-
function
|
|
684
|
+
function Jn(e, a) {
|
|
684
685
|
const t = `${e ?? ""}|${a}`;
|
|
685
686
|
let n = Et.get(t);
|
|
686
687
|
return n || (n = new Intl.NumberFormat(e, {
|
|
@@ -690,21 +691,21 @@ function Yn(e, a) {
|
|
|
690
691
|
}), Et.set(t, n)), n;
|
|
691
692
|
}
|
|
692
693
|
function Pe(e, a = 1, t) {
|
|
693
|
-
return e == null || !Number.isFinite(e) ? la :
|
|
694
|
+
return e == null || !Number.isFinite(e) ? la : Jn(t, a).format(e);
|
|
694
695
|
}
|
|
695
|
-
function
|
|
696
|
+
function Xn(e, a) {
|
|
696
697
|
return Be(e) ? new Intl.DateTimeFormat(a, Ea).format(
|
|
697
698
|
new Date(e)
|
|
698
699
|
) : la;
|
|
699
700
|
}
|
|
700
|
-
function
|
|
701
|
+
function eo(e, a) {
|
|
701
702
|
return Be(e) ? new Intl.DateTimeFormat(a, li).format(
|
|
702
703
|
new Date(e)
|
|
703
704
|
) : la;
|
|
704
705
|
}
|
|
705
|
-
function
|
|
706
|
+
function ao(e, a = 1, t) {
|
|
706
707
|
if (!Number.isFinite(e)) return la;
|
|
707
|
-
const n =
|
|
708
|
+
const n = Yn(e, a);
|
|
708
709
|
return n === 0 ? "0" : `${n > 0 ? "+" : "−"}${Pe(Math.abs(n), a, t)}`;
|
|
709
710
|
}
|
|
710
711
|
function sa(e, a) {
|
|
@@ -717,21 +718,21 @@ function Ee(e) {
|
|
|
717
718
|
}
|
|
718
719
|
function be(e, a) {
|
|
719
720
|
const t = Ee(a);
|
|
720
|
-
return Je(e) ?
|
|
721
|
+
return Je(e) ? eo(e, t) : Xn(e, t);
|
|
721
722
|
}
|
|
722
723
|
function ui(e) {
|
|
723
724
|
const [a, t, n] = e.slice(0, 10).split("-").map(Number);
|
|
724
725
|
if (!(!a || !t || !n))
|
|
725
726
|
return new Date(a, t - 1, n);
|
|
726
727
|
}
|
|
727
|
-
function
|
|
728
|
+
function to(e) {
|
|
728
729
|
return Je(e) ? e.slice(10, 16) : "";
|
|
729
730
|
}
|
|
730
|
-
function
|
|
731
|
+
function io(e) {
|
|
731
732
|
const a = (t) => String(t).padStart(2, "0");
|
|
732
733
|
return `${e.getFullYear()}-${a(e.getMonth() + 1)}-${a(e.getDate())}`;
|
|
733
734
|
}
|
|
734
|
-
function
|
|
735
|
+
function no(e, a, t, n = !1) {
|
|
735
736
|
const o = t("anamnesis.compare.visitOption", {
|
|
736
737
|
index: a + 1,
|
|
737
738
|
visitType: t(`anamnesis.visitType.${e.visitType}`),
|
|
@@ -742,13 +743,13 @@ function io(e, a, t, n = !1) {
|
|
|
742
743
|
}) : o;
|
|
743
744
|
return n ? t("anamnesis.window.optionHasNote", { label: r }) : r;
|
|
744
745
|
}
|
|
745
|
-
function
|
|
746
|
-
const n =
|
|
746
|
+
function oo(e, a, t) {
|
|
747
|
+
const n = $n(e, a);
|
|
747
748
|
return n == null ? la : t("anamnesis.header.years", { age: n });
|
|
748
749
|
}
|
|
749
750
|
function Ia(e, a) {
|
|
750
751
|
const t = Fa(e);
|
|
751
|
-
return t ?
|
|
752
|
+
return t ? oo(e.patient.dateOfBirthIso, t.dateIso, a) : la;
|
|
752
753
|
}
|
|
753
754
|
function ya(e) {
|
|
754
755
|
const a = e == null ? void 0 : e.trim();
|
|
@@ -764,7 +765,7 @@ function Te(e, a) {
|
|
|
764
765
|
function ge(e, a) {
|
|
765
766
|
return ya(e.label) ?? a(`anamnesis.field.${e.key}.label`, { defaultValue: e.key });
|
|
766
767
|
}
|
|
767
|
-
function
|
|
768
|
+
function ro(e, a) {
|
|
768
769
|
const t = ge(e, a);
|
|
769
770
|
return e.unit ? `${t} (${e.unit})` : t;
|
|
770
771
|
}
|
|
@@ -776,7 +777,7 @@ function ye(e, a) {
|
|
|
776
777
|
return ya(e.label) ?? a(`anamnesis.section.${e.key}`, { defaultValue: e.key });
|
|
777
778
|
}
|
|
778
779
|
function ut(e, a, t) {
|
|
779
|
-
return ya(t == null ? void 0 : t.label) ?? a(
|
|
780
|
+
return ya(t == null ? void 0 : t.label) ?? a(Vn(e), { defaultValue: e });
|
|
780
781
|
}
|
|
781
782
|
function Se(e, a, t) {
|
|
782
783
|
const n = ut(e, a, t);
|
|
@@ -836,7 +837,7 @@ function Ra(e, a, t) {
|
|
|
836
837
|
return [e.time, e.description].filter(Boolean).join(" · ") || "—";
|
|
837
838
|
}
|
|
838
839
|
}
|
|
839
|
-
const
|
|
840
|
+
const lo = [
|
|
840
841
|
{ id: "reason", kind: "prose", fieldKeys: ["reasonForVisit"] },
|
|
841
842
|
{
|
|
842
843
|
id: "history",
|
|
@@ -860,12 +861,12 @@ const ro = [
|
|
|
860
861
|
]
|
|
861
862
|
}
|
|
862
863
|
];
|
|
863
|
-
function
|
|
864
|
+
function so(e, a) {
|
|
864
865
|
return e.flatMap(
|
|
865
866
|
(t) => t.fields.filter((n) => sa(n, a))
|
|
866
867
|
);
|
|
867
868
|
}
|
|
868
|
-
function
|
|
869
|
+
function co(e, a, t) {
|
|
869
870
|
const n = a(e.key);
|
|
870
871
|
return !n || !Ve(n) ? null : {
|
|
871
872
|
key: e.key,
|
|
@@ -873,7 +874,7 @@ function so(e, a, t) {
|
|
|
873
874
|
value: Ra(n, e, t)
|
|
874
875
|
};
|
|
875
876
|
}
|
|
876
|
-
function
|
|
877
|
+
function uo(e, a, t) {
|
|
877
878
|
var o;
|
|
878
879
|
const n = [];
|
|
879
880
|
for (const r of e) {
|
|
@@ -886,12 +887,12 @@ function co(e, a, t) {
|
|
|
886
887
|
}
|
|
887
888
|
return n;
|
|
888
889
|
}
|
|
889
|
-
function
|
|
890
|
-
const o =
|
|
891
|
-
for (const d of
|
|
892
|
-
const u = d.kind === "flags" ?
|
|
890
|
+
function mo(e, a, t, n) {
|
|
891
|
+
const o = so(e, t), r = new Map(o.map((d) => [d.key, d])), l = [];
|
|
892
|
+
for (const d of lo) {
|
|
893
|
+
const u = d.kind === "flags" ? uo(o, a, n) : d.fieldKeys.map((g) => {
|
|
893
894
|
const b = r.get(g);
|
|
894
|
-
return b ?
|
|
895
|
+
return b ? co(b, a, n) : null;
|
|
895
896
|
}).filter((g) => g != null);
|
|
896
897
|
u.length > 0 && l.push({ id: d.id, kind: d.kind, items: u });
|
|
897
898
|
}
|
|
@@ -916,25 +917,25 @@ function pi(e, a, t, n) {
|
|
|
916
917
|
}
|
|
917
918
|
return o;
|
|
918
919
|
}
|
|
919
|
-
const
|
|
920
|
-
function
|
|
920
|
+
const po = 'input:not([tabindex="-1"]), textarea:not([tabindex="-1"]), select:not([tabindex="-1"]), button:not([tabindex="-1"]), [tabindex]:not([tabindex="-1"])';
|
|
921
|
+
function go(e, a) {
|
|
921
922
|
const t = e == null ? void 0 : e.querySelector(
|
|
922
923
|
`[data-testid="anamnesis-field-${a}"]`
|
|
923
|
-
), n = t == null ? void 0 : t.querySelector(
|
|
924
|
+
), n = t == null ? void 0 : t.querySelector(po);
|
|
924
925
|
return n ? (n.focus(), !0) : !1;
|
|
925
926
|
}
|
|
926
|
-
const
|
|
927
|
+
const ho = 4;
|
|
927
928
|
function gi() {
|
|
928
929
|
const e = _e(null), [a, t] = I(null);
|
|
929
930
|
ba(() => {
|
|
930
931
|
if (a == null) return;
|
|
931
932
|
let o = 0, r = 0;
|
|
932
933
|
const l = () => {
|
|
933
|
-
if (
|
|
934
|
+
if (go(e.current, a)) {
|
|
934
935
|
t(null);
|
|
935
936
|
return;
|
|
936
937
|
}
|
|
937
|
-
if (o += 1, o >=
|
|
938
|
+
if (o += 1, o >= ho) {
|
|
938
939
|
t(null);
|
|
939
940
|
return;
|
|
940
941
|
}
|
|
@@ -978,7 +979,7 @@ function hi({
|
|
|
978
979
|
}
|
|
979
980
|
);
|
|
980
981
|
}
|
|
981
|
-
function
|
|
982
|
+
function bo({ group: e, t: a }) {
|
|
982
983
|
return /* @__PURE__ */ c(
|
|
983
984
|
"div",
|
|
984
985
|
{
|
|
@@ -1003,7 +1004,7 @@ function ho({ group: e, t: a }) {
|
|
|
1003
1004
|
}
|
|
1004
1005
|
);
|
|
1005
1006
|
}
|
|
1006
|
-
function
|
|
1007
|
+
function fo({ digest: e, t: a }) {
|
|
1007
1008
|
return e.groups.length === 0 ? /* @__PURE__ */ i(
|
|
1008
1009
|
Xe,
|
|
1009
1010
|
{
|
|
@@ -1017,11 +1018,11 @@ function bo({ digest: e, t: a }) {
|
|
|
1017
1018
|
{
|
|
1018
1019
|
"data-testid": "anamnesis-digest-panel",
|
|
1019
1020
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
|
|
1020
|
-
children: e.groups.map((t) => /* @__PURE__ */ i(
|
|
1021
|
+
children: e.groups.map((t) => /* @__PURE__ */ i(bo, { group: t, t: a }, t.id))
|
|
1021
1022
|
}
|
|
1022
1023
|
);
|
|
1023
1024
|
}
|
|
1024
|
-
const
|
|
1025
|
+
const yo = Xt(
|
|
1025
1026
|
"type-meta ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)] ds:tabular-nums",
|
|
1026
1027
|
{
|
|
1027
1028
|
variants: {
|
|
@@ -1038,12 +1039,12 @@ const fo = Xt(
|
|
|
1038
1039
|
);
|
|
1039
1040
|
function mt({ delta: e, def: a, t }) {
|
|
1040
1041
|
if (!e) return null;
|
|
1041
|
-
const n = e.direction === "up" ? ei : e.direction === "down" ? ai : cn, o = `${
|
|
1042
|
+
const n = e.direction === "up" ? ei : e.direction === "down" ? ai : cn, o = `${ao(e.abs, a.precision ?? 1, Ee(t))}${a.unit ? ` ${a.unit}` : ""}`, r = e.valence === "good" ? t("anamnesis.delta.improved") : e.valence === "bad" ? t("anamnesis.delta.worsened") : t("anamnesis.delta.unchanged");
|
|
1042
1043
|
return /* @__PURE__ */ c(
|
|
1043
1044
|
"span",
|
|
1044
1045
|
{
|
|
1045
1046
|
role: "img",
|
|
1046
|
-
className:
|
|
1047
|
+
className: yo({ valence: e.valence }),
|
|
1047
1048
|
"aria-label": t("anamnesis.delta.aria", {
|
|
1048
1049
|
valence: r,
|
|
1049
1050
|
change: o
|
|
@@ -1077,12 +1078,12 @@ function pt({
|
|
|
1077
1078
|
}
|
|
1078
1079
|
);
|
|
1079
1080
|
}
|
|
1080
|
-
const
|
|
1081
|
+
const vo = {
|
|
1081
1082
|
good: "var(--success)",
|
|
1082
1083
|
bad: "var(--error)",
|
|
1083
1084
|
neutral: "var(--muted-foreground)"
|
|
1084
1085
|
};
|
|
1085
|
-
function
|
|
1086
|
+
function ko({
|
|
1086
1087
|
series: e,
|
|
1087
1088
|
def: a,
|
|
1088
1089
|
t,
|
|
@@ -1099,7 +1100,7 @@ function vo({
|
|
|
1099
1100
|
variant: "line",
|
|
1100
1101
|
size: "sm",
|
|
1101
1102
|
width: "100%",
|
|
1102
|
-
color:
|
|
1103
|
+
color: vo[s],
|
|
1103
1104
|
annotations: n,
|
|
1104
1105
|
onAnnotationSelect: o,
|
|
1105
1106
|
label: t("anamnesis.grid.trendLabel", {
|
|
@@ -1140,7 +1141,7 @@ function yi({
|
|
|
1140
1141
|
r.key
|
|
1141
1142
|
)) });
|
|
1142
1143
|
}
|
|
1143
|
-
function
|
|
1144
|
+
function wo({
|
|
1144
1145
|
intake: e,
|
|
1145
1146
|
sections: a,
|
|
1146
1147
|
sex: t,
|
|
@@ -1166,7 +1167,7 @@ function ko({
|
|
|
1166
1167
|
jumpKey: "anamnesis.summary.jump"
|
|
1167
1168
|
}
|
|
1168
1169
|
) : null,
|
|
1169
|
-
/* @__PURE__ */ i(
|
|
1170
|
+
/* @__PURE__ */ i(fo, { digest: n, t: l }),
|
|
1170
1171
|
/* @__PURE__ */ c(Zt, { variant: "default", children: [
|
|
1171
1172
|
/* @__PURE__ */ i("h2", { className: "type-title-section ds:m-0 ds:text-[color:var(--foreground)]", children: /* @__PURE__ */ c(
|
|
1172
1173
|
Yt,
|
|
@@ -1212,7 +1213,7 @@ function ko({
|
|
|
1212
1213
|
}
|
|
1213
1214
|
);
|
|
1214
1215
|
}
|
|
1215
|
-
const
|
|
1216
|
+
const zo = [
|
|
1216
1217
|
"visitMeta",
|
|
1217
1218
|
"intakeGaps",
|
|
1218
1219
|
"anthropometrics",
|
|
@@ -1228,13 +1229,13 @@ const wo = [
|
|
|
1228
1229
|
function Ha(e) {
|
|
1229
1230
|
return (e ?? "").trim() !== "";
|
|
1230
1231
|
}
|
|
1231
|
-
function
|
|
1232
|
+
function xo(e) {
|
|
1232
1233
|
const a = e.oncological;
|
|
1233
1234
|
if (!a) return 0;
|
|
1234
1235
|
let t = 0;
|
|
1235
1236
|
return Ha(a.tumourType) && (t += 1), Ha(a.stage) && (t += 1), a.metastases && a.metastases.present !== "unknown" && (t += 1), Ha(a.treatmentStatus) && (t += 1), t;
|
|
1236
1237
|
}
|
|
1237
|
-
function
|
|
1238
|
+
function Ao(e, a) {
|
|
1238
1239
|
const t = new Map(e.labs.map((o) => [o.parameterKey, o.value])), n = [];
|
|
1239
1240
|
for (const o of a) {
|
|
1240
1241
|
const r = t.get(o.key);
|
|
@@ -1242,23 +1243,23 @@ function xo(e, a) {
|
|
|
1242
1243
|
}
|
|
1243
1244
|
return n;
|
|
1244
1245
|
}
|
|
1245
|
-
function
|
|
1246
|
+
function No(e) {
|
|
1246
1247
|
const a = e.annualProgramme;
|
|
1247
1248
|
return a && (a.proposed || a.accepted) ? 1 : 0;
|
|
1248
1249
|
}
|
|
1249
1250
|
function Lt(e, a = []) {
|
|
1250
|
-
const t = e ?
|
|
1251
|
-
oncological: e ?
|
|
1251
|
+
const t = e ? Ao(e, a) : [], n = (e == null ? void 0 : e.visitType) === "first", o = {
|
|
1252
|
+
oncological: e ? xo(e) : 0,
|
|
1252
1253
|
labs: t.length,
|
|
1253
1254
|
fmd: e ? e.fmdCycles.length : 0,
|
|
1254
|
-
annual: e ?
|
|
1255
|
+
annual: e ? No(e) : 0
|
|
1255
1256
|
}, r = {
|
|
1256
1257
|
oncological: 0,
|
|
1257
1258
|
labs: t.filter(({ def: s, value: d }) => fa(d, s.referenceRange)).length,
|
|
1258
1259
|
fmd: 0,
|
|
1259
1260
|
annual: 0
|
|
1260
1261
|
}, l = {};
|
|
1261
|
-
for (const s of
|
|
1262
|
+
for (const s of zo)
|
|
1262
1263
|
l[s] = { open: !0, fill: null, flagged: 0 };
|
|
1263
1264
|
for (const s of vi)
|
|
1264
1265
|
l[s] = { open: n, fill: o[s], flagged: r[s] };
|
|
@@ -1279,7 +1280,7 @@ function ki(e) {
|
|
|
1279
1280
|
function at(e) {
|
|
1280
1281
|
return e != null && Number.isFinite(e);
|
|
1281
1282
|
}
|
|
1282
|
-
const
|
|
1283
|
+
const To = [
|
|
1283
1284
|
"weightKg",
|
|
1284
1285
|
"heightCm",
|
|
1285
1286
|
"waistCm",
|
|
@@ -1314,14 +1315,14 @@ function Rt(e) {
|
|
|
1314
1315
|
function Ba(e) {
|
|
1315
1316
|
return e.id === pa;
|
|
1316
1317
|
}
|
|
1317
|
-
function
|
|
1318
|
+
function Co(e, { keepId: a } = {}) {
|
|
1318
1319
|
const t = (m) => m.visitType === "first" && m.id !== a, n = e.filter(t);
|
|
1319
1320
|
if (n.length < 2) {
|
|
1320
1321
|
const m = e;
|
|
1321
1322
|
return { baseline: null, sources: [], visits: m, pickable: m };
|
|
1322
1323
|
}
|
|
1323
1324
|
const o = ki(n), r = [...n].sort((m, v) => o(m.dateIso) - o(v.dateIso)), l = {};
|
|
1324
|
-
for (const m of
|
|
1325
|
+
for (const m of To) {
|
|
1325
1326
|
const v = r.find((k) => at(k.anthropometrics[m]));
|
|
1326
1327
|
l[m] = v ? v.anthropometrics[m] : null;
|
|
1327
1328
|
}
|
|
@@ -1364,7 +1365,7 @@ const wi = {
|
|
|
1364
1365
|
surgery: "triangle",
|
|
1365
1366
|
lifestyle: "square"
|
|
1366
1367
|
}, zi = "neutral";
|
|
1367
|
-
function
|
|
1368
|
+
function So(e, a) {
|
|
1368
1369
|
const t = a.length - 1;
|
|
1369
1370
|
if (t < 1 || !Be(e.dateIso)) return null;
|
|
1370
1371
|
const n = !Je(e.dateIso) || a.some((s) => !Je(s.dateIso)), o = (s) => {
|
|
@@ -1380,9 +1381,9 @@ function Co(e, a) {
|
|
|
1380
1381
|
}
|
|
1381
1382
|
return null;
|
|
1382
1383
|
}
|
|
1383
|
-
function
|
|
1384
|
+
function _o(e, a) {
|
|
1384
1385
|
return (e ?? []).flatMap((t) => {
|
|
1385
|
-
const n =
|
|
1386
|
+
const n = So(t, a);
|
|
1386
1387
|
return n == null ? [] : [{ event: t, position: n }];
|
|
1387
1388
|
}).sort((t, n) => t.position - n.position);
|
|
1388
1389
|
}
|
|
@@ -1399,7 +1400,7 @@ function xi(e, a) {
|
|
|
1399
1400
|
source: a(`anamnesis.event.source.${e.sourceKey}`)
|
|
1400
1401
|
}) : t;
|
|
1401
1402
|
}
|
|
1402
|
-
function
|
|
1403
|
+
function Do(e, a, t) {
|
|
1403
1404
|
return e.filter((n) => a.has(n.event.id)).map(({ event: n, position: o }) => ({
|
|
1404
1405
|
id: n.id,
|
|
1405
1406
|
position: o,
|
|
@@ -1408,7 +1409,7 @@ function _o(e, a, t) {
|
|
|
1408
1409
|
tone: zi
|
|
1409
1410
|
}));
|
|
1410
1411
|
}
|
|
1411
|
-
function
|
|
1412
|
+
function jo({
|
|
1412
1413
|
marks: e,
|
|
1413
1414
|
activeIds: a,
|
|
1414
1415
|
onToggle: t,
|
|
@@ -1466,12 +1467,12 @@ function Do({
|
|
|
1466
1467
|
}
|
|
1467
1468
|
);
|
|
1468
1469
|
}
|
|
1469
|
-
const
|
|
1470
|
+
const Po = [
|
|
1470
1471
|
"clinicalNotes",
|
|
1471
1472
|
"nutritionalProposal"
|
|
1472
1473
|
];
|
|
1473
1474
|
function Oa(e) {
|
|
1474
|
-
return
|
|
1475
|
+
return Po.flatMap((a) => {
|
|
1475
1476
|
var n;
|
|
1476
1477
|
const t = (n = e[a]) == null ? void 0 : n.trim();
|
|
1477
1478
|
return t ? [{ field: a, text: t }] : [];
|
|
@@ -1480,7 +1481,7 @@ function Oa(e) {
|
|
|
1480
1481
|
function Ai(e) {
|
|
1481
1482
|
return Oa(e).length > 0;
|
|
1482
1483
|
}
|
|
1483
|
-
function
|
|
1484
|
+
function Eo({
|
|
1484
1485
|
visit: e,
|
|
1485
1486
|
t: a
|
|
1486
1487
|
}) {
|
|
@@ -1489,8 +1490,8 @@ function Po({
|
|
|
1489
1490
|
/* @__PURE__ */ i(L.Detail, { children: /* @__PURE__ */ i("span", { className: "ds:block ds:break-words ds:whitespace-pre-line", children: t.text }) })
|
|
1490
1491
|
] }, t.field)) });
|
|
1491
1492
|
}
|
|
1492
|
-
const
|
|
1493
|
-
function
|
|
1493
|
+
const Lo = "ds:mt-[var(--spacing-md)] ds:max-h-[min(20rem,var(--radix-popover-content-available-height))] ds:overflow-y-auto ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]";
|
|
1494
|
+
function Fo({
|
|
1494
1495
|
visit: e,
|
|
1495
1496
|
t: a,
|
|
1496
1497
|
defaultOpen: t = !1,
|
|
@@ -1555,8 +1556,8 @@ function Lo({
|
|
|
1555
1556
|
tabIndex: 0,
|
|
1556
1557
|
role: "group",
|
|
1557
1558
|
"aria-label": a("anamnesis.visitNote.title"),
|
|
1558
|
-
className:
|
|
1559
|
-
children: /* @__PURE__ */ i(
|
|
1559
|
+
className: Lo,
|
|
1560
|
+
children: /* @__PURE__ */ i(Eo, { visit: e, t: a })
|
|
1560
1561
|
}
|
|
1561
1562
|
)
|
|
1562
1563
|
]
|
|
@@ -1564,8 +1565,8 @@ function Lo({
|
|
|
1564
1565
|
)
|
|
1565
1566
|
] });
|
|
1566
1567
|
}
|
|
1567
|
-
const Ni = "ds:min-w-[11rem]", gt = "ds:min-w-[8rem]", Ti = "ds:w-[40%] ds:min-w-[14rem]",
|
|
1568
|
-
function
|
|
1568
|
+
const Ni = "ds:min-w-[11rem]", gt = "ds:min-w-[8rem]", Ti = "ds:w-[40%] ds:min-w-[14rem]", Io = "type-label ds:sticky ds:start-0 ds:top-0 ds:z-[3] ds:bg-[color:var(--card)] ds:px-[var(--spacing-sm)] ds:py-[var(--spacing-sm)] ds:text-start ds:shadow-[var(--shadow-chrome-end)]", Ci = "ds:sticky ds:top-0 ds:z-[2] ds:px-[var(--spacing-sm)] ds:py-[var(--spacing-sm)] ds:text-start ds:shadow-[var(--shadow-chrome-down)]", Ro = "type-label ds:sticky ds:end-0 ds:top-0 ds:z-[3] ds:bg-[color:var(--card)] ds:px-[var(--spacing-sm)] ds:py-[var(--spacing-sm)] ds:text-start ds:shadow-[var(--shadow-chrome-start)]", qa = "ds:px-[var(--spacing-sm)] ds:py-[var(--spacing-xs)] ds:align-top";
|
|
1569
|
+
function Oo({
|
|
1569
1570
|
column: e,
|
|
1570
1571
|
t: a,
|
|
1571
1572
|
emphasised: t = !1,
|
|
@@ -1629,7 +1630,7 @@ function Ro({
|
|
|
1629
1630
|
}
|
|
1630
1631
|
) }),
|
|
1631
1632
|
r ? /* @__PURE__ */ i(
|
|
1632
|
-
|
|
1633
|
+
Fo,
|
|
1633
1634
|
{
|
|
1634
1635
|
visit: d,
|
|
1635
1636
|
t: a,
|
|
@@ -1659,7 +1660,7 @@ function Ro({
|
|
|
1659
1660
|
] })
|
|
1660
1661
|
] }) });
|
|
1661
1662
|
}
|
|
1662
|
-
function
|
|
1663
|
+
function Mo({
|
|
1663
1664
|
captionId: e,
|
|
1664
1665
|
caption: a,
|
|
1665
1666
|
identityLabel: t,
|
|
@@ -1691,7 +1692,7 @@ function Oo({
|
|
|
1691
1692
|
"th",
|
|
1692
1693
|
{
|
|
1693
1694
|
scope: "col",
|
|
1694
|
-
className: `${Ni} ${
|
|
1695
|
+
className: `${Ni} ${Io}`,
|
|
1695
1696
|
children: t
|
|
1696
1697
|
}
|
|
1697
1698
|
),
|
|
@@ -1715,7 +1716,7 @@ function Oo({
|
|
|
1715
1716
|
{
|
|
1716
1717
|
scope: "col",
|
|
1717
1718
|
"data-testid": s,
|
|
1718
|
-
className: `${gt} ${
|
|
1719
|
+
className: `${gt} ${Ro}`,
|
|
1719
1720
|
children: l
|
|
1720
1721
|
}
|
|
1721
1722
|
) : null
|
|
@@ -1767,15 +1768,15 @@ function ht(e, a, t = {}) {
|
|
|
1767
1768
|
function _i(e) {
|
|
1768
1769
|
return ht(e, Si(e)).columns;
|
|
1769
1770
|
}
|
|
1770
|
-
function
|
|
1771
|
+
function Vo(e) {
|
|
1771
1772
|
return e.length >= 2;
|
|
1772
1773
|
}
|
|
1773
|
-
const
|
|
1774
|
+
const Ho = {
|
|
1774
1775
|
value: null,
|
|
1775
1776
|
outOfRange: null,
|
|
1776
1777
|
delta: null
|
|
1777
1778
|
};
|
|
1778
|
-
function
|
|
1779
|
+
function Bo(e, a) {
|
|
1779
1780
|
const t = e[a], n = e[a - 1];
|
|
1780
1781
|
return n ? n.index === t.index - 1 : t.index === 0;
|
|
1781
1782
|
}
|
|
@@ -1783,14 +1784,14 @@ function Ta(e, a) {
|
|
|
1783
1784
|
const t = (String(e).split(".")[1] ?? "").length;
|
|
1784
1785
|
return Pe(e, Math.min(t, 3), a);
|
|
1785
1786
|
}
|
|
1786
|
-
function
|
|
1787
|
+
function qo(e, a, t) {
|
|
1787
1788
|
return e ? e.min != null && e.max != null ? `${Ta(e.min, t)}–${Ta(e.max, t)}` : e.max != null ? a("anamnesis.range.atMost", {
|
|
1788
1789
|
value: Ta(e.max, t)
|
|
1789
1790
|
}) : e.min != null ? a("anamnesis.range.atLeast", {
|
|
1790
1791
|
value: Ta(e.min, t)
|
|
1791
1792
|
}) : null : null;
|
|
1792
1793
|
}
|
|
1793
|
-
function
|
|
1794
|
+
function Ko({
|
|
1794
1795
|
record: e,
|
|
1795
1796
|
defs: a,
|
|
1796
1797
|
t,
|
|
@@ -1816,8 +1817,8 @@ function qo({
|
|
|
1816
1817
|
key: `group-${C.def.group}`,
|
|
1817
1818
|
banner: t(`anamnesis.group.${C.def.group}`)
|
|
1818
1819
|
}));
|
|
1819
|
-
const F =
|
|
1820
|
-
const { visit: $, index: V } = D, P = C.cells[V] ??
|
|
1820
|
+
const F = qo(C.def.referenceRange, t, h), O = T.map((D, q) => {
|
|
1821
|
+
const { visit: $, index: V } = D, P = C.cells[V] ?? Ho, G = $.id === j && !Ba($), Z = g == null || g.has(C.def.key), J = n && G && Z && !C.def.computed, me = !Bo(T, q);
|
|
1821
1822
|
return /* @__PURE__ */ i(
|
|
1822
1823
|
"td",
|
|
1823
1824
|
{
|
|
@@ -1875,7 +1876,7 @@ function qo({
|
|
|
1875
1876
|
),
|
|
1876
1877
|
cells: O,
|
|
1877
1878
|
trend: /* @__PURE__ */ i("td", { className: `${Ti} ${qa}`, children: /* @__PURE__ */ i(
|
|
1878
|
-
|
|
1879
|
+
ko,
|
|
1879
1880
|
{
|
|
1880
1881
|
series: C.series,
|
|
1881
1882
|
def: C.def,
|
|
@@ -1903,7 +1904,7 @@ function qo({
|
|
|
1903
1904
|
}
|
|
1904
1905
|
);
|
|
1905
1906
|
const S = T.map((C) => /* @__PURE__ */ i(
|
|
1906
|
-
|
|
1907
|
+
Oo,
|
|
1907
1908
|
{
|
|
1908
1909
|
column: C,
|
|
1909
1910
|
t,
|
|
@@ -1915,7 +1916,7 @@ function qo({
|
|
|
1915
1916
|
C.key
|
|
1916
1917
|
));
|
|
1917
1918
|
return /* @__PURE__ */ i(
|
|
1918
|
-
|
|
1919
|
+
Mo,
|
|
1919
1920
|
{
|
|
1920
1921
|
captionId: A,
|
|
1921
1922
|
caption: f ?? t("anamnesis.grid.caption"),
|
|
@@ -1928,15 +1929,15 @@ function qo({
|
|
|
1928
1929
|
}
|
|
1929
1930
|
);
|
|
1930
1931
|
}
|
|
1931
|
-
const
|
|
1932
|
-
function
|
|
1933
|
-
return { key:
|
|
1932
|
+
const Go = "unlabelled", Uo = "record";
|
|
1933
|
+
function Wo(e) {
|
|
1934
|
+
return { key: Uo, label: "", visits: e };
|
|
1934
1935
|
}
|
|
1935
|
-
function
|
|
1936
|
+
function $o(e, a) {
|
|
1936
1937
|
var r;
|
|
1937
1938
|
const t = /* @__PURE__ */ new Map();
|
|
1938
1939
|
for (const l of e) {
|
|
1939
|
-
const s = ((r = l.sourceLabel) == null ? void 0 : r.trim()) ?? "", d = s === "" ?
|
|
1940
|
+
const s = ((r = l.sourceLabel) == null ? void 0 : r.trim()) ?? "", d = s === "" ? Go : `source:${s}`, u = t.get(d);
|
|
1940
1941
|
u ? u.visits.push(l) : t.set(d, {
|
|
1941
1942
|
key: d,
|
|
1942
1943
|
label: s === "" ? a : s,
|
|
@@ -1946,12 +1947,12 @@ function Wo(e, a) {
|
|
|
1946
1947
|
const n = ki(e), o = (l) => Math.min(...l.visits.map((s) => n(s.dateIso)));
|
|
1947
1948
|
return [...t.values()].sort((l, s) => o(l) - o(s));
|
|
1948
1949
|
}
|
|
1949
|
-
function
|
|
1950
|
+
function Qo(e, a, t) {
|
|
1950
1951
|
return a.filter(
|
|
1951
1952
|
(n) => (t == null ? void 0 : t(n)) === !0 || e.some((o) => je(o, n) != null)
|
|
1952
1953
|
);
|
|
1953
1954
|
}
|
|
1954
|
-
function
|
|
1955
|
+
function Zo(e) {
|
|
1955
1956
|
const a = /* @__PURE__ */ new Set(), t = [];
|
|
1956
1957
|
for (const n of e)
|
|
1957
1958
|
for (const o of n)
|
|
@@ -1977,7 +1978,7 @@ function bt({
|
|
|
1977
1978
|
() => new Set(xe(n).map((N) => N.key)),
|
|
1978
1979
|
[n]
|
|
1979
1980
|
), m = a("anamnesis.grid.unlabelledSource"), v = H(
|
|
1980
|
-
() => o ?
|
|
1981
|
+
() => o ? $o(e.visits, m) : [Wo(e.visits)],
|
|
1981
1982
|
[o, e.visits, m]
|
|
1982
1983
|
), k = H(
|
|
1983
1984
|
() => v.map((N) => {
|
|
@@ -1987,7 +1988,7 @@ function bt({
|
|
|
1987
1988
|
// Same reference when nothing was partitioned, so downstream memos
|
|
1988
1989
|
// keep their identity.
|
|
1989
1990
|
record: N.visits === e.visits ? e : { ...e, visits: N.visits },
|
|
1990
|
-
defs: o ?
|
|
1991
|
+
defs: o ? Qo(
|
|
1991
1992
|
N.visits,
|
|
1992
1993
|
g,
|
|
1993
1994
|
j ? (T) => b.has(T.key) && !T.computed : void 0
|
|
@@ -2005,7 +2006,7 @@ function bt({
|
|
|
2005
2006
|
), f = _e(/* @__PURE__ */ new Map()), A = Qe(
|
|
2006
2007
|
(N, j) => {
|
|
2007
2008
|
f.current.set(N, j), l == null || l(
|
|
2008
|
-
|
|
2009
|
+
Zo(
|
|
2009
2010
|
v.map((T) => f.current.get(T.key) ?? [])
|
|
2010
2011
|
)
|
|
2011
2012
|
);
|
|
@@ -2038,7 +2039,7 @@ function bt({
|
|
|
2038
2039
|
}
|
|
2039
2040
|
) : null,
|
|
2040
2041
|
k.map(({ block: N, record: j, defs: T }) => /* @__PURE__ */ i(
|
|
2041
|
-
|
|
2042
|
+
Yo,
|
|
2042
2043
|
{
|
|
2043
2044
|
...d,
|
|
2044
2045
|
record: j,
|
|
@@ -2065,7 +2066,7 @@ function ft() {
|
|
|
2065
2066
|
}, []);
|
|
2066
2067
|
return [e, t];
|
|
2067
2068
|
}
|
|
2068
|
-
function
|
|
2069
|
+
function Yo({
|
|
2069
2070
|
record: e,
|
|
2070
2071
|
t: a,
|
|
2071
2072
|
defs: t,
|
|
@@ -2084,7 +2085,7 @@ function Zo({
|
|
|
2084
2085
|
toolbarEnd: f
|
|
2085
2086
|
}) {
|
|
2086
2087
|
const A = H(
|
|
2087
|
-
() =>
|
|
2088
|
+
() => Co(e.visits, { keepId: r }),
|
|
2088
2089
|
[e.visits, r]
|
|
2089
2090
|
), { visits: h, pickable: y, baseline: N } = A, j = H(
|
|
2090
2091
|
() => N ? { ...e, visits: h } : e,
|
|
@@ -2096,7 +2097,7 @@ function Zo({
|
|
|
2096
2097
|
() => (b ? [...b] : y.map((B) => B.id)).filter(
|
|
2097
2098
|
(B) => B !== pa
|
|
2098
2099
|
)
|
|
2099
|
-
), O =
|
|
2100
|
+
), O = Vo(y), D = H(() => {
|
|
2100
2101
|
const B = C.filter(
|
|
2101
2102
|
(U) => y.some((fe) => fe.id === U)
|
|
2102
2103
|
);
|
|
@@ -2117,7 +2118,7 @@ function Zo({
|
|
|
2117
2118
|
const B = N ? 1 : 0;
|
|
2118
2119
|
return y.map((U, fe) => ({
|
|
2119
2120
|
id: U.id,
|
|
2120
|
-
label:
|
|
2121
|
+
label: no(U, fe + B, a, Ai(U))
|
|
2121
2122
|
}));
|
|
2122
2123
|
}, [y, N, a]), P = D.length === y.length, G = a("anamnesis.window.pickerTrigger", {
|
|
2123
2124
|
shown: q.shownCount,
|
|
@@ -2142,7 +2143,7 @@ function Zo({
|
|
|
2142
2143
|
}), va = d ? [d.label, fe] : [fe];
|
|
2143
2144
|
return D.length === 1 && va.push(a("anamnesis.window.minimum")), va.join(" · ");
|
|
2144
2145
|
}, [q, D, a, d]), _ = H(
|
|
2145
|
-
() =>
|
|
2146
|
+
() => _o(e.events, h),
|
|
2146
2147
|
[e.events, h]
|
|
2147
2148
|
), [K, se] = I(
|
|
2148
2149
|
() => m ? [...m] : []
|
|
@@ -2150,7 +2151,7 @@ function Zo({
|
|
|
2150
2151
|
const B = new Set(_.map((U) => U.event.id));
|
|
2151
2152
|
return new Set(K.filter((U) => B.has(U)));
|
|
2152
2153
|
}, [K, _]), ue = H(
|
|
2153
|
-
() =>
|
|
2154
|
+
() => Do(_, ce, a),
|
|
2154
2155
|
[_, ce, a]
|
|
2155
2156
|
), Ke = (B) => se(
|
|
2156
2157
|
(U) => U.includes(B) ? U.filter((fe) => fe !== B) : [...U, B]
|
|
@@ -2254,7 +2255,7 @@ function Zo({
|
|
|
2254
2255
|
}
|
|
2255
2256
|
) : null,
|
|
2256
2257
|
/* @__PURE__ */ i(
|
|
2257
|
-
|
|
2258
|
+
jo,
|
|
2258
2259
|
{
|
|
2259
2260
|
marks: _,
|
|
2260
2261
|
activeIds: ce,
|
|
@@ -2263,7 +2264,7 @@ function Zo({
|
|
|
2263
2264
|
}
|
|
2264
2265
|
),
|
|
2265
2266
|
/* @__PURE__ */ i(
|
|
2266
|
-
|
|
2267
|
+
Ko,
|
|
2267
2268
|
{
|
|
2268
2269
|
record: j,
|
|
2269
2270
|
defs: t,
|
|
@@ -2290,7 +2291,7 @@ function Zo({
|
|
|
2290
2291
|
const Ne = ["clinician"], pe = [
|
|
2291
2292
|
"clinician",
|
|
2292
2293
|
"patient"
|
|
2293
|
-
],
|
|
2294
|
+
], Jo = [
|
|
2294
2295
|
{
|
|
2295
2296
|
id: "patient.identity",
|
|
2296
2297
|
surface: "intake",
|
|
@@ -2466,16 +2467,16 @@ const Ne = ["clinician"], pe = [
|
|
|
2466
2467
|
rationale: "The per-tab export ENVELOPE — a title, a meta block and a list of tables. It carries no clinical content of its own: every table inside is gated on the concept it renders, so this row decides only whether a file may be produced at all. The whole-record workbook stays reserved by export.workbook.",
|
|
2467
2468
|
status: "provisional"
|
|
2468
2469
|
}
|
|
2469
|
-
],
|
|
2470
|
-
|
|
2470
|
+
], Xo = new Map(
|
|
2471
|
+
Jo.map((e) => [e.id, e])
|
|
2471
2472
|
);
|
|
2472
|
-
function
|
|
2473
|
-
const t =
|
|
2473
|
+
function er(e, a) {
|
|
2474
|
+
const t = Xo.get(e);
|
|
2474
2475
|
return t ? t.audiences.includes(a) : !1;
|
|
2475
2476
|
}
|
|
2476
2477
|
const Ma = "export.tabDocument";
|
|
2477
|
-
function
|
|
2478
|
-
return
|
|
2478
|
+
function ae(e, a) {
|
|
2479
|
+
return er(a, e.audience) ? !0 : (e.withheld.add(a), !1);
|
|
2479
2480
|
}
|
|
2480
2481
|
function Di(e) {
|
|
2481
2482
|
if (e.key === "bmi") return "derived.bmi";
|
|
@@ -2502,7 +2503,7 @@ function Pi(e, a) {
|
|
|
2502
2503
|
function Ei(e, a) {
|
|
2503
2504
|
return e === "high" ? a("anamnesis.range.aboveRange") : e === "low" ? a("anamnesis.range.belowRange") : null;
|
|
2504
2505
|
}
|
|
2505
|
-
function
|
|
2506
|
+
function ar(e) {
|
|
2506
2507
|
return e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
|
2507
2508
|
}
|
|
2508
2509
|
function He(e) {
|
|
@@ -2511,7 +2512,7 @@ function He(e) {
|
|
|
2511
2512
|
return Be(a) ? a : null;
|
|
2512
2513
|
}
|
|
2513
2514
|
function _a(e, a, t, n, o) {
|
|
2514
|
-
const r = n ?
|
|
2515
|
+
const r = n ? ar(`${a.patient.lastName} ${a.patient.firstName}`) : "";
|
|
2515
2516
|
return [
|
|
2516
2517
|
"anamnesis",
|
|
2517
2518
|
e,
|
|
@@ -2523,16 +2524,16 @@ function _a(e, a, t, n, o) {
|
|
|
2523
2524
|
function yt(e, a) {
|
|
2524
2525
|
return a(`anamnesis.export.audience.${e}`);
|
|
2525
2526
|
}
|
|
2526
|
-
function
|
|
2527
|
+
function tr(e, a) {
|
|
2527
2528
|
return a(`anamnesis.export.tab.${e}`);
|
|
2528
2529
|
}
|
|
2529
2530
|
function Li(e, a) {
|
|
2530
2531
|
return a(`anamnesis.export.docTab.${e}`, {
|
|
2531
|
-
defaultValue:
|
|
2532
|
+
defaultValue: tr(e, a)
|
|
2532
2533
|
});
|
|
2533
2534
|
}
|
|
2534
2535
|
function vt(e, a, t, n) {
|
|
2535
|
-
const o = [], l =
|
|
2536
|
+
const o = [], l = ae(a, "patient.identity") ? `${e.patient.firstName} ${e.patient.lastName}`.trim() : null;
|
|
2536
2537
|
return l && (o.push({ label: t("anamnesis.header.name"), value: l }), o.push({
|
|
2537
2538
|
label: t("anamnesis.header.dob"),
|
|
2538
2539
|
value: be(e.patient.dateOfBirthIso, t)
|
|
@@ -2576,13 +2577,13 @@ function ja(e, a, t, n = []) {
|
|
|
2576
2577
|
locale: Ee(t)
|
|
2577
2578
|
};
|
|
2578
2579
|
}
|
|
2579
|
-
function
|
|
2580
|
+
function ir(e) {
|
|
2580
2581
|
var v;
|
|
2581
2582
|
const { record: a, audience: t, t: n, config: o } = e, r = e.generatedAtIso ?? (/* @__PURE__ */ new Date()).toISOString(), l = { audience: t, withheld: /* @__PURE__ */ new Set() };
|
|
2582
|
-
if (!
|
|
2583
|
+
if (!ae(l, Ma))
|
|
2583
2584
|
return kt("summary", t, n);
|
|
2584
2585
|
const { meta: s, patientName: d } = vt(a, l, n, r), u = [], g = [], b = a.intake;
|
|
2585
|
-
if (
|
|
2586
|
+
if (ae(l, "intake.answers") && b) {
|
|
2586
2587
|
const k = [];
|
|
2587
2588
|
for (const f of We(o)) {
|
|
2588
2589
|
const A = f.fields.filter((h) => sa(h, a.patient.sex)).filter((h) => b.answers[h.key]);
|
|
@@ -2638,7 +2639,7 @@ function Ka(e, a, t, n, o, r, l) {
|
|
|
2638
2639
|
const s = [];
|
|
2639
2640
|
let d = !1;
|
|
2640
2641
|
for (const g of t) {
|
|
2641
|
-
if (!
|
|
2642
|
+
if (!ae(o, Di(g))) continue;
|
|
2642
2643
|
d = !0;
|
|
2643
2644
|
const b = je(n, g), m = [
|
|
2644
2645
|
qe(g, r),
|
|
@@ -2670,9 +2671,9 @@ function Ga(e, a, t, n) {
|
|
|
2670
2671
|
emptyText: n("anamnesis.export.none")
|
|
2671
2672
|
};
|
|
2672
2673
|
}
|
|
2673
|
-
function
|
|
2674
|
+
function nr(e) {
|
|
2674
2675
|
const { record: a, audience: t, t: n, config: o } = e, r = e.generatedAtIso ?? (/* @__PURE__ */ new Date()).toISOString(), l = { audience: t, withheld: /* @__PURE__ */ new Set() };
|
|
2675
|
-
if (!
|
|
2676
|
+
if (!ae(l, Ma))
|
|
2676
2677
|
return kt("compile", t, n);
|
|
2677
2678
|
const { meta: s, patientName: d } = vt(a, l, n, r), u = Fa(a), g = [], b = [];
|
|
2678
2679
|
if (!u)
|
|
@@ -2696,22 +2697,22 @@ function ir(e) {
|
|
|
2696
2697
|
n,
|
|
2697
2698
|
b
|
|
2698
2699
|
);
|
|
2699
|
-
|
|
2700
|
+
ae(l, "visit.date") && s.push({
|
|
2700
2701
|
label: n("anamnesis.header.visitDate"),
|
|
2701
2702
|
value: be(u.dateIso, n)
|
|
2702
2703
|
});
|
|
2703
2704
|
const m = [];
|
|
2704
|
-
|
|
2705
|
+
ae(l, "visit.type") && m.push({
|
|
2705
2706
|
cells: [
|
|
2706
2707
|
n("anamnesis.field.visitType.label"),
|
|
2707
2708
|
n(`anamnesis.visitType.${u.visitType}`)
|
|
2708
2709
|
]
|
|
2709
|
-
}),
|
|
2710
|
+
}), ae(l, "visit.date") && m.push({
|
|
2710
2711
|
cells: [
|
|
2711
2712
|
n("anamnesis.header.visitDate"),
|
|
2712
2713
|
be(u.dateIso, n)
|
|
2713
2714
|
]
|
|
2714
|
-
}),
|
|
2715
|
+
}), ae(l, "visit.practitioner") && u.practitioner && m.push({
|
|
2715
2716
|
cells: [
|
|
2716
2717
|
n("anamnesis.field.practitioner.label"),
|
|
2717
2718
|
re(u.practitioner)
|
|
@@ -2738,7 +2739,7 @@ function ir(e) {
|
|
|
2738
2739
|
n,
|
|
2739
2740
|
!1
|
|
2740
2741
|
);
|
|
2741
|
-
if (k && g.push(k),
|
|
2742
|
+
if (k && g.push(k), ae(l, "pathology.codes")) {
|
|
2742
2743
|
const h = dt(o);
|
|
2743
2744
|
g.push({
|
|
2744
2745
|
id: "pathologies",
|
|
@@ -2756,7 +2757,7 @@ function ir(e) {
|
|
|
2756
2757
|
emptyText: n("anamnesis.export.none")
|
|
2757
2758
|
});
|
|
2758
2759
|
}
|
|
2759
|
-
if (
|
|
2760
|
+
if (ae(l, "oncological.history")) {
|
|
2760
2761
|
const h = u.oncological, y = [];
|
|
2761
2762
|
if (h) {
|
|
2762
2763
|
if (re(h.tumourType) && y.push({
|
|
@@ -2791,7 +2792,7 @@ function ir(e) {
|
|
|
2791
2792
|
)
|
|
2792
2793
|
);
|
|
2793
2794
|
}
|
|
2794
|
-
|
|
2795
|
+
ae(l, "therapy.entries") && g.push({
|
|
2795
2796
|
id: "therapy",
|
|
2796
2797
|
title: n("anamnesis.section.therapy"),
|
|
2797
2798
|
columns: [
|
|
@@ -2817,7 +2818,7 @@ function ir(e) {
|
|
|
2817
2818
|
n,
|
|
2818
2819
|
!0
|
|
2819
2820
|
);
|
|
2820
|
-
if (f && g.push(f),
|
|
2821
|
+
if (f && g.push(f), ae(l, "fmd.cycles") && g.push({
|
|
2821
2822
|
id: "fmd",
|
|
2822
2823
|
title: n("anamnesis.section.fmd"),
|
|
2823
2824
|
columns: [
|
|
@@ -2835,7 +2836,7 @@ function ir(e) {
|
|
|
2835
2836
|
]
|
|
2836
2837
|
})),
|
|
2837
2838
|
emptyText: n("anamnesis.compile.noFmd")
|
|
2838
|
-
}),
|
|
2839
|
+
}), ae(l, "annual.programme")) {
|
|
2839
2840
|
const h = u.annualProgramme, y = [];
|
|
2840
2841
|
if (h) {
|
|
2841
2842
|
const N = (j) => n(j ? "anamnesis.common.yes" : "anamnesis.common.no");
|
|
@@ -2861,12 +2862,12 @@ function ir(e) {
|
|
|
2861
2862
|
);
|
|
2862
2863
|
}
|
|
2863
2864
|
const A = [];
|
|
2864
|
-
return
|
|
2865
|
+
return ae(l, "notes.nutritionalProposal") && re(u.nutritionalProposal) && A.push({
|
|
2865
2866
|
cells: [
|
|
2866
2867
|
n("anamnesis.field.nutritionalProposal.label"),
|
|
2867
2868
|
re(u.nutritionalProposal)
|
|
2868
2869
|
]
|
|
2869
|
-
}),
|
|
2870
|
+
}), ae(l, "notes.clinicalNotes") && re(u.clinicalNotes) && A.push({
|
|
2870
2871
|
cells: [
|
|
2871
2872
|
n("anamnesis.field.clinicalNotes.label"),
|
|
2872
2873
|
re(u.clinicalNotes)
|
|
@@ -2901,7 +2902,7 @@ function ir(e) {
|
|
|
2901
2902
|
b
|
|
2902
2903
|
);
|
|
2903
2904
|
}
|
|
2904
|
-
function
|
|
2905
|
+
function or(e, a, t) {
|
|
2905
2906
|
const n = a.map((o) => {
|
|
2906
2907
|
var l;
|
|
2907
2908
|
const r = ((l = e.cells[o.index]) == null ? void 0 : l.outOfRange) ?? null;
|
|
@@ -2912,16 +2913,16 @@ function nr(e, a, t) {
|
|
|
2912
2913
|
}).filter((o) => o != null);
|
|
2913
2914
|
return n.length === 0 ? null : n.join(t("anamnesis.export.listSeparator"));
|
|
2914
2915
|
}
|
|
2915
|
-
function
|
|
2916
|
+
function rr(e, a) {
|
|
2916
2917
|
var o, r;
|
|
2917
2918
|
if (a.length < 2) return null;
|
|
2918
2919
|
const t = ((o = e.cells[a[0].index]) == null ? void 0 : o.value) ?? null, n = ((r = e.cells[a[a.length - 1].index]) == null ? void 0 : r.value) ?? null;
|
|
2919
2920
|
return t == null || n == null ? null : n - t;
|
|
2920
2921
|
}
|
|
2921
|
-
function
|
|
2922
|
+
function lr(e) {
|
|
2922
2923
|
var A;
|
|
2923
2924
|
const { record: a, audience: t, t: n, config: o } = e, r = e.generatedAtIso ?? (/* @__PURE__ */ new Date()).toISOString(), l = e.scope ?? "selected", s = { audience: t, withheld: /* @__PURE__ */ new Set() };
|
|
2924
|
-
if (!
|
|
2925
|
+
if (!ae(s, Ma))
|
|
2925
2926
|
return kt("evolution", t, n);
|
|
2926
2927
|
const { meta: d, patientName: u } = vt(a, s, n, r), g = [], b = [], m = e.selectedVisitIds ? [...e.selectedVisitIds] : null, v = m && m.length > 0 ? m : Si(a.visits), k = l === "all" ? _i(a.visits) : ht(a.visits, v).columns;
|
|
2927
2928
|
if (d.push({
|
|
@@ -2930,7 +2931,7 @@ function rr(e) {
|
|
|
2930
2931
|
shown: k.length,
|
|
2931
2932
|
total: a.visits.length
|
|
2932
2933
|
})
|
|
2933
|
-
}),
|
|
2934
|
+
}), ae(s, "visit.date") && k.length > 0) {
|
|
2934
2935
|
const h = De(o), y = ci(a, h), N = be(k[0].visit.dateIso, n), j = be(k[k.length - 1].visit.dateIso, n), T = [
|
|
2935
2936
|
{ key: "parameter", header: n("anamnesis.grid.parameter") },
|
|
2936
2937
|
{ key: "unit", header: n("anamnesis.export.column.unit") },
|
|
@@ -2960,7 +2961,7 @@ function rr(e) {
|
|
|
2960
2961
|
], R = [];
|
|
2961
2962
|
let p = null;
|
|
2962
2963
|
for (const S of y)
|
|
2963
|
-
|
|
2964
|
+
ae(s, Di(S.def)) && (S.def.group !== p && (p = S.def.group, R.push(ji(n(`anamnesis.group.${S.def.group}`)))), R.push({
|
|
2964
2965
|
precision: S.def.precision,
|
|
2965
2966
|
cells: [
|
|
2966
2967
|
qe(S.def, n),
|
|
@@ -2971,8 +2972,8 @@ function rr(e) {
|
|
|
2971
2972
|
return ((C = S.cells[w.index]) == null ? void 0 : C.value) ?? null;
|
|
2972
2973
|
}),
|
|
2973
2974
|
S.target,
|
|
2974
|
-
|
|
2975
|
-
|
|
2975
|
+
rr(S, k),
|
|
2976
|
+
or(S, k, n)
|
|
2976
2977
|
]
|
|
2977
2978
|
}));
|
|
2978
2979
|
g.push({
|
|
@@ -3005,17 +3006,17 @@ function rr(e) {
|
|
|
3005
3006
|
b
|
|
3006
3007
|
);
|
|
3007
3008
|
}
|
|
3008
|
-
function
|
|
3009
|
+
function sr(e, a) {
|
|
3009
3010
|
switch (e) {
|
|
3010
3011
|
case "summary":
|
|
3011
|
-
return tr(a);
|
|
3012
|
-
case "compile":
|
|
3013
3012
|
return ir(a);
|
|
3013
|
+
case "compile":
|
|
3014
|
+
return nr(a);
|
|
3014
3015
|
case "evolution":
|
|
3015
|
-
return
|
|
3016
|
+
return lr(a);
|
|
3016
3017
|
}
|
|
3017
3018
|
}
|
|
3018
|
-
function
|
|
3019
|
+
function dr(e, a) {
|
|
3019
3020
|
return a(`anamnesis.export.concept.${e.replace(/\./g, "_")}`, {
|
|
3020
3021
|
defaultValue: e
|
|
3021
3022
|
});
|
|
@@ -3023,12 +3024,12 @@ function sr(e, a) {
|
|
|
3023
3024
|
function Ot(e, a) {
|
|
3024
3025
|
return {
|
|
3025
3026
|
included: e.tables.map((t) => t.title),
|
|
3026
|
-
excluded: e.withheld.map((t) =>
|
|
3027
|
+
excluded: e.withheld.map((t) => dr(t, a)).sort((t, n) => t.localeCompare(n, e.locale))
|
|
3027
3028
|
};
|
|
3028
3029
|
}
|
|
3029
|
-
const
|
|
3030
|
-
`,
|
|
3031
|
-
function
|
|
3030
|
+
const cr = "text/csv;charset=utf-8", ur = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", Mt = `\r
|
|
3031
|
+
`, mr = /^[=+\-@\t\r]/;
|
|
3032
|
+
function pr(e) {
|
|
3032
3033
|
var a;
|
|
3033
3034
|
if (!e) return ".";
|
|
3034
3035
|
try {
|
|
@@ -3040,25 +3041,25 @@ function mr(e) {
|
|
|
3040
3041
|
}
|
|
3041
3042
|
}
|
|
3042
3043
|
function wt(e) {
|
|
3043
|
-
return
|
|
3044
|
+
return pr(e) === "," ? { delimiter: ";", decimal: ",", eol: Mt, bom: !0 } : { delimiter: ",", decimal: ".", eol: Mt, bom: !0 };
|
|
3044
3045
|
}
|
|
3045
|
-
function
|
|
3046
|
+
function gr(e, a, t) {
|
|
3046
3047
|
if (!Number.isFinite(e)) return "";
|
|
3047
3048
|
const n = a == null ? String(e) : e.toFixed(a);
|
|
3048
3049
|
return t.decimal === "," ? n.replace(".", ",") : n;
|
|
3049
3050
|
}
|
|
3050
3051
|
function Re(e, a) {
|
|
3051
|
-
const t =
|
|
3052
|
+
const t = mr.test(e) ? `'${e}` : e;
|
|
3052
3053
|
return t.includes(a.delimiter) || t.includes('"') || t.includes(`
|
|
3053
3054
|
`) || t.includes("\r") || t !== t.trim() ? `"${t.replace(/"/g, '""')}"` : t;
|
|
3054
3055
|
}
|
|
3055
3056
|
function Vt(e, a, t) {
|
|
3056
|
-
return e == null ? "" : typeof e == "number" ?
|
|
3057
|
+
return e == null ? "" : typeof e == "number" ? gr(e, t, a) : Re(e, a);
|
|
3057
3058
|
}
|
|
3058
3059
|
function Fi(e, a) {
|
|
3059
3060
|
return e.precision ?? (a == null ? void 0 : a.precision);
|
|
3060
3061
|
}
|
|
3061
|
-
function
|
|
3062
|
+
function hr(e, a = wt(e.locale)) {
|
|
3062
3063
|
const t = [], n = (o) => t.push(o.join(a.delimiter));
|
|
3063
3064
|
n([Re(e.title, a)]);
|
|
3064
3065
|
for (const o of e.meta)
|
|
@@ -3093,11 +3094,11 @@ function gr(e, a = wt(e.locale)) {
|
|
|
3093
3094
|
}
|
|
3094
3095
|
return t.join(a.eol) + a.eol;
|
|
3095
3096
|
}
|
|
3096
|
-
function
|
|
3097
|
-
const t =
|
|
3098
|
-
return new Blob([a.bom ? `\uFEFF${t}` : t], { type:
|
|
3097
|
+
function br(e, a = wt(e.locale)) {
|
|
3098
|
+
const t = hr(e, a);
|
|
3099
|
+
return new Blob([a.bom ? `\uFEFF${t}` : t], { type: cr });
|
|
3099
3100
|
}
|
|
3100
|
-
async function
|
|
3101
|
+
async function fr() {
|
|
3101
3102
|
const e = await import("./exceljs.min-D2MHbJsF.js").then((t) => t.e), a = e;
|
|
3102
3103
|
return typeof a.Workbook == "function" ? e : a.default ?? e;
|
|
3103
3104
|
}
|
|
@@ -3110,20 +3111,20 @@ function Ht(e, a) {
|
|
|
3110
3111
|
}
|
|
3111
3112
|
return a.add(n.toLowerCase()), n;
|
|
3112
3113
|
}
|
|
3113
|
-
function
|
|
3114
|
+
function yr(e) {
|
|
3114
3115
|
if (e != null)
|
|
3115
3116
|
return e > 0 ? `0.${"0".repeat(e)}` : "0";
|
|
3116
3117
|
}
|
|
3117
|
-
const
|
|
3118
|
-
function
|
|
3118
|
+
const vr = 12, kr = 60;
|
|
3119
|
+
function wr(e, a) {
|
|
3119
3120
|
const t = a.reduce(
|
|
3120
3121
|
(n, o) => Math.max(n, o == null ? 0 : String(o).length),
|
|
3121
3122
|
e.length
|
|
3122
3123
|
);
|
|
3123
|
-
return Math.min(
|
|
3124
|
+
return Math.min(kr, Math.max(vr, t + 2));
|
|
3124
3125
|
}
|
|
3125
|
-
async function
|
|
3126
|
-
const a = await
|
|
3126
|
+
async function zr(e) {
|
|
3127
|
+
const a = await fr(), t = new a.Workbook();
|
|
3127
3128
|
t.created = /* @__PURE__ */ new Date();
|
|
3128
3129
|
const n = /* @__PURE__ */ new Set(), o = t.addWorksheet(Ht(e.title, n)), r = o.addRow([e.title]);
|
|
3129
3130
|
r.font = { bold: !0 };
|
|
@@ -3148,19 +3149,19 @@ async function wr(e) {
|
|
|
3148
3149
|
s.columns.forEach((v, k) => {
|
|
3149
3150
|
const f = m.getCell(k + 1);
|
|
3150
3151
|
if (typeof b[k] != "number") return;
|
|
3151
|
-
const A =
|
|
3152
|
+
const A = yr(Fi(g, v));
|
|
3152
3153
|
A && (f.numFmt = A), f.alignment = { horizontal: "right" };
|
|
3153
3154
|
});
|
|
3154
3155
|
}
|
|
3155
3156
|
s.columns.forEach((g, b) => {
|
|
3156
|
-
d.getColumn(b + 1).width =
|
|
3157
|
+
d.getColumn(b + 1).width = wr(
|
|
3157
3158
|
g.header,
|
|
3158
3159
|
s.rows.map((m) => m.cells[b] ?? null)
|
|
3159
3160
|
);
|
|
3160
3161
|
});
|
|
3161
3162
|
}
|
|
3162
3163
|
const l = await t.xlsx.writeBuffer();
|
|
3163
|
-
return new Blob([l], { type:
|
|
3164
|
+
return new Blob([l], { type: ur });
|
|
3164
3165
|
}
|
|
3165
3166
|
function zt(e, a) {
|
|
3166
3167
|
return `${e.fileStem}.${a}`;
|
|
@@ -3171,11 +3172,11 @@ function xt(e, a) {
|
|
|
3171
3172
|
const t = URL.createObjectURL(e), n = document.createElement("a");
|
|
3172
3173
|
return n.href = t, n.download = a, document.body.appendChild(n), n.click(), n.remove(), window.setTimeout(() => URL.revokeObjectURL(t), 0), !0;
|
|
3173
3174
|
}
|
|
3174
|
-
function
|
|
3175
|
-
return xt(
|
|
3175
|
+
function xr(e, a = wt(e.locale)) {
|
|
3176
|
+
return xt(br(e, a), zt(e, "csv"));
|
|
3176
3177
|
}
|
|
3177
|
-
async function
|
|
3178
|
-
return xt(await
|
|
3178
|
+
async function Ar(e) {
|
|
3179
|
+
return xt(await zr(e), zt(e, "xlsx"));
|
|
3179
3180
|
}
|
|
3180
3181
|
const Ge = {
|
|
3181
3182
|
headerFill: [237, 237, 240],
|
|
@@ -3200,7 +3201,7 @@ function ta(e, a, t) {
|
|
|
3200
3201
|
const s = l.match(/rgba?\(\s*(\d+)[,\s]+(\d+)[,\s]+(\d+)/i);
|
|
3201
3202
|
return s ? [Number(s[1]), Number(s[2]), Number(s[3])] : a;
|
|
3202
3203
|
}
|
|
3203
|
-
function
|
|
3204
|
+
function Nr(e) {
|
|
3204
3205
|
return {
|
|
3205
3206
|
headerFill: ta("--muted", Ge.headerFill, e),
|
|
3206
3207
|
headerText: ta("--foreground", Ge.headerText, e),
|
|
@@ -3218,7 +3219,7 @@ function Ar(e) {
|
|
|
3218
3219
|
sectionFill: ta("--muted", Ge.sectionFill, e)
|
|
3219
3220
|
};
|
|
3220
3221
|
}
|
|
3221
|
-
const
|
|
3222
|
+
const Tr = [
|
|
3222
3223
|
["→", "->"],
|
|
3223
3224
|
// → the Evolution change header
|
|
3224
3225
|
["←", "<-"],
|
|
@@ -3287,17 +3288,17 @@ new Set(
|
|
|
3287
3288
|
);
|
|
3288
3289
|
function Oe(e) {
|
|
3289
3290
|
let a = e;
|
|
3290
|
-
for (const [t, n] of
|
|
3291
|
+
for (const [t, n] of Tr)
|
|
3291
3292
|
a.includes(t) && (a = a.split(t).join(n));
|
|
3292
3293
|
return a;
|
|
3293
3294
|
}
|
|
3294
|
-
const oe = 14,
|
|
3295
|
-
function
|
|
3295
|
+
const oe = 14, Cr = 6, Sr = 15, _r = 9, Dr = 11, Bt = 8.5, qt = 8, Fe = 5;
|
|
3296
|
+
function jr(e) {
|
|
3296
3297
|
return e.tables.some(
|
|
3297
|
-
(a) => a.columns.length >
|
|
3298
|
+
(a) => a.columns.length > Cr
|
|
3298
3299
|
);
|
|
3299
3300
|
}
|
|
3300
|
-
function
|
|
3301
|
+
function Pr(e, a, t) {
|
|
3301
3302
|
if (!Number.isFinite(e)) return "";
|
|
3302
3303
|
try {
|
|
3303
3304
|
return new Intl.NumberFormat(t, {
|
|
@@ -3310,10 +3311,10 @@ function jr(e, a, t) {
|
|
|
3310
3311
|
}
|
|
3311
3312
|
function Ii(e, a, t) {
|
|
3312
3313
|
return e == null ? "" : Oe(
|
|
3313
|
-
typeof e == "number" ?
|
|
3314
|
+
typeof e == "number" ? Pr(e, a, t) : e
|
|
3314
3315
|
);
|
|
3315
3316
|
}
|
|
3316
|
-
function
|
|
3317
|
+
function Er(e, a, t) {
|
|
3317
3318
|
return a.columns.map(
|
|
3318
3319
|
(n, o) => Ii(
|
|
3319
3320
|
e.cells[o] ?? null,
|
|
@@ -3328,31 +3329,31 @@ async function Ri(e, a = {}) {
|
|
|
3328
3329
|
import("./jspdf.es.min-DaapWjR1.js").then((f) => f.j),
|
|
3329
3330
|
import("./jspdf.plugin.autotable-CSiDNyPn.js")
|
|
3330
3331
|
]), o = a.palette ?? Ge, r = e.locale, l = new t({
|
|
3331
|
-
orientation:
|
|
3332
|
+
orientation: jr(e) ? "landscape" : "portrait",
|
|
3332
3333
|
unit: "mm",
|
|
3333
3334
|
format: "a4"
|
|
3334
3335
|
}), s = l.internal.pageSize.getWidth(), d = l.internal.pageSize.getHeight(), u = s - oe * 2, g = (f, A, h) => {
|
|
3335
3336
|
l.setFont("helvetica", f), l.setFontSize(A), l.setTextColor(h[0], h[1], h[2]);
|
|
3336
3337
|
};
|
|
3337
3338
|
let b = oe;
|
|
3338
|
-
g("bold",
|
|
3339
|
+
g("bold", Sr, o.headerText);
|
|
3339
3340
|
for (const f of l.splitTextToSize(
|
|
3340
3341
|
Oe(e.title),
|
|
3341
3342
|
u
|
|
3342
3343
|
))
|
|
3343
3344
|
l.text(f, oe, b), b += Fe + 1;
|
|
3344
|
-
b += 1, g("normal",
|
|
3345
|
+
b += 1, g("normal", _r, o.mutedText);
|
|
3345
3346
|
for (const f of e.meta)
|
|
3346
3347
|
l.text(Oe(`${f.label}: ${f.value}`), oe, b), b += Fe - 0.6;
|
|
3347
3348
|
for (const f of e.tables) {
|
|
3348
|
-
if (b += Fe, b > d - oe * 2 && (l.addPage(), b = oe), g("bold",
|
|
3349
|
+
if (b += Fe, b > d - oe * 2 && (l.addPage(), b = oe), g("bold", Dr, o.headerText), l.text(Oe(f.title), oe, b), b += 2, f.rows.length === 0 && f.emptyText) {
|
|
3349
3350
|
b += Fe, g("normal", Bt, o.mutedText), l.text(Oe(f.emptyText), oe, b), b += 1;
|
|
3350
3351
|
continue;
|
|
3351
3352
|
}
|
|
3352
3353
|
const A = /* @__PURE__ */ new Set(), h = f.rows.map((j, T) => j.kind === "section" ? (A.add(T), [
|
|
3353
3354
|
Ii(j.cells[0] ?? null, void 0, r),
|
|
3354
3355
|
...f.columns.slice(1).map(() => "")
|
|
3355
|
-
]) :
|
|
3356
|
+
]) : Er(j, f, r)), y = {}, N = {
|
|
3356
3357
|
head: [f.columns.map((j) => Oe(j.header))],
|
|
3357
3358
|
body: h,
|
|
3358
3359
|
startY: b + 2,
|
|
@@ -3406,13 +3407,13 @@ async function Ri(e, a = {}) {
|
|
|
3406
3407
|
);
|
|
3407
3408
|
return a.autoPrint && l.autoPrint(), l.output("blob");
|
|
3408
3409
|
}
|
|
3409
|
-
async function
|
|
3410
|
+
async function Lr(e, a = {}) {
|
|
3410
3411
|
return xt(
|
|
3411
3412
|
await Ri(e, a),
|
|
3412
3413
|
zt(e, "pdf")
|
|
3413
3414
|
);
|
|
3414
3415
|
}
|
|
3415
|
-
async function
|
|
3416
|
+
async function Fr(e, a, t = {}) {
|
|
3416
3417
|
if (!a || typeof URL > "u" || typeof URL.createObjectURL != "function")
|
|
3417
3418
|
return null;
|
|
3418
3419
|
const n = await Ri(e, { ...t, autoPrint: !0 }), o = URL.createObjectURL(n);
|
|
@@ -3437,7 +3438,7 @@ function At({
|
|
|
3437
3438
|
[]
|
|
3438
3439
|
);
|
|
3439
3440
|
const w = Qe(
|
|
3440
|
-
(K) =>
|
|
3441
|
+
(K) => sr(e, {
|
|
3441
3442
|
record: a,
|
|
3442
3443
|
audience: K,
|
|
3443
3444
|
t,
|
|
@@ -3472,8 +3473,8 @@ function At({
|
|
|
3472
3473
|
).catch(() => $(t("anamnesis.export.control.failed"))).finally(() => {
|
|
3473
3474
|
p.current = !1;
|
|
3474
3475
|
});
|
|
3475
|
-
}, P = () =>
|
|
3476
|
-
p.current || (p.current = !0,
|
|
3476
|
+
}, P = () => Nr(j.current), G = () => V("pdf", (K) => Lr(K, { palette: P() })), Z = () => V("xlsx", Ar), J = () => V("csv", xr), me = () => {
|
|
3477
|
+
p.current || (p.current = !0, Fr(w(d), T.current, { palette: P() }).then((K) => {
|
|
3477
3478
|
if (!K) {
|
|
3478
3479
|
$(t("anamnesis.export.control.failed"));
|
|
3479
3480
|
return;
|
|
@@ -3622,7 +3623,7 @@ function At({
|
|
|
3622
3623
|
}
|
|
3623
3624
|
),
|
|
3624
3625
|
/* @__PURE__ */ i(
|
|
3625
|
-
|
|
3626
|
+
Ir,
|
|
3626
3627
|
{
|
|
3627
3628
|
open: k,
|
|
3628
3629
|
onOpenChange: f,
|
|
@@ -3658,7 +3659,7 @@ function At({
|
|
|
3658
3659
|
}
|
|
3659
3660
|
);
|
|
3660
3661
|
}
|
|
3661
|
-
function
|
|
3662
|
+
function Ir({
|
|
3662
3663
|
open: e,
|
|
3663
3664
|
onOpenChange: a,
|
|
3664
3665
|
audience: t,
|
|
@@ -3763,17 +3764,17 @@ function Oi(e, a) {
|
|
|
3763
3764
|
return !1;
|
|
3764
3765
|
}
|
|
3765
3766
|
}
|
|
3766
|
-
function
|
|
3767
|
+
function Rr(e) {
|
|
3767
3768
|
if (!e) return;
|
|
3768
3769
|
const [a, t] = e.split(":").map((n) => Number.parseInt(n, 10));
|
|
3769
3770
|
if (!(Number.isNaN(a) || Number.isNaN(t)))
|
|
3770
3771
|
return { hours: a, minutes: t };
|
|
3771
3772
|
}
|
|
3772
|
-
function
|
|
3773
|
+
function Or(e) {
|
|
3773
3774
|
const a = (t) => String(t).padStart(2, "0");
|
|
3774
3775
|
return `${a(e.hours)}:${a(e.minutes)}`;
|
|
3775
3776
|
}
|
|
3776
|
-
function
|
|
3777
|
+
function Mr(e, a) {
|
|
3777
3778
|
if (e.detail !== !0) return !1;
|
|
3778
3779
|
switch (e.type) {
|
|
3779
3780
|
case "yesNoDetail":
|
|
@@ -3786,8 +3787,8 @@ function Or(e, a) {
|
|
|
3786
3787
|
return !1;
|
|
3787
3788
|
}
|
|
3788
3789
|
}
|
|
3789
|
-
const
|
|
3790
|
-
function
|
|
3790
|
+
const Vr = "ds:sr-only", Hr = "ds:aspect-square ds:justify-center ds:px-0", Br = "ds:mt-[var(--spacing-2xs)]", qr = /* @__PURE__ */ new Set(["weightSelf", "waterPerDay"]), Ie = "ds:w-full ds:max-w-[44rem]";
|
|
3791
|
+
function Kr(e) {
|
|
3791
3792
|
return e.max !== void 0 && e.max >= 1e4 ? "md" : "sm";
|
|
3792
3793
|
}
|
|
3793
3794
|
function Mi({
|
|
@@ -3800,14 +3801,14 @@ function Mi({
|
|
|
3800
3801
|
className: l,
|
|
3801
3802
|
t: s
|
|
3802
3803
|
}) {
|
|
3803
|
-
const d = e.type === "number" ? ge(e, s) :
|
|
3804
|
+
const d = e.type === "number" ? ge(e, s) : ro(e, s), u = mi(e, s), g = n && o === "patient", b = Oi(e, a), m = s("anamnesis.field.highlighted"), v = b ? /* @__PURE__ */ i("span", { "data-testid": `anamnesis-field-${e.key}-highlight`, children: /* @__PURE__ */ i(
|
|
3804
3805
|
Y,
|
|
3805
3806
|
{
|
|
3806
3807
|
variant: "accentSoft",
|
|
3807
3808
|
size: "sm",
|
|
3808
|
-
className: `${
|
|
3809
|
-
leading: /* @__PURE__ */ i(
|
|
3810
|
-
children: /* @__PURE__ */ i("span", { className:
|
|
3809
|
+
className: `${Br} ${Hr}`,
|
|
3810
|
+
leading: /* @__PURE__ */ i(wn, { "aria-hidden": "true" }),
|
|
3811
|
+
children: /* @__PURE__ */ i("span", { className: Vr, children: m })
|
|
3811
3812
|
}
|
|
3812
3813
|
) }) : void 0, k = g ? /* @__PURE__ */ i(bi, { t: s }) : void 0;
|
|
3813
3814
|
let f = null;
|
|
@@ -3822,7 +3823,7 @@ function Mi({
|
|
|
3822
3823
|
labelEnd: k,
|
|
3823
3824
|
description: u,
|
|
3824
3825
|
children: /* @__PURE__ */ i(
|
|
3825
|
-
|
|
3826
|
+
te,
|
|
3826
3827
|
{
|
|
3827
3828
|
className: Ie,
|
|
3828
3829
|
disabled: r,
|
|
@@ -3875,8 +3876,8 @@ function Mi({
|
|
|
3875
3876
|
min: 0,
|
|
3876
3877
|
variant: "plain",
|
|
3877
3878
|
unit: e.unit,
|
|
3878
|
-
inline:
|
|
3879
|
-
mode: e.decimal ||
|
|
3879
|
+
inline: Kr(e),
|
|
3880
|
+
mode: e.decimal || qr.has(e.key) ? "decimal" : "integer",
|
|
3880
3881
|
onChange: (h) => t({ kind: "number", value: h })
|
|
3881
3882
|
}
|
|
3882
3883
|
)
|
|
@@ -3914,7 +3915,7 @@ function Mi({
|
|
|
3914
3915
|
}
|
|
3915
3916
|
),
|
|
3916
3917
|
e.detail ? /* @__PURE__ */ i(M, { label: s(`anamnesis.field.${e.key}.detailLabel`), children: /* @__PURE__ */ i(
|
|
3917
|
-
|
|
3918
|
+
te,
|
|
3918
3919
|
{
|
|
3919
3920
|
className: Ie,
|
|
3920
3921
|
disabled: r,
|
|
@@ -3975,8 +3976,8 @@ function Mi({
|
|
|
3975
3976
|
]
|
|
3976
3977
|
}
|
|
3977
3978
|
),
|
|
3978
|
-
|
|
3979
|
-
|
|
3979
|
+
Mr(e, a) ? /* @__PURE__ */ i(M, { label: s("anamnesis.common.details"), children: /* @__PURE__ */ i(
|
|
3980
|
+
te,
|
|
3980
3981
|
{
|
|
3981
3982
|
className: Ie,
|
|
3982
3983
|
disabled: r,
|
|
@@ -3992,7 +3993,7 @@ function Mi({
|
|
|
3992
3993
|
it will need reads as waiting rather than wasted. Inert: it is
|
|
3993
3994
|
a preview of a control, not one. */
|
|
3994
3995
|
/* @__PURE__ */ i("div", { "aria-hidden": "true", className: "ds:opacity-50", children: /* @__PURE__ */ i(M, { label: s("anamnesis.common.details"), children: /* @__PURE__ */ i(
|
|
3995
|
-
|
|
3996
|
+
vn,
|
|
3996
3997
|
{
|
|
3997
3998
|
className: Ie,
|
|
3998
3999
|
disabled: !0,
|
|
@@ -4039,7 +4040,7 @@ function Mi({
|
|
|
4039
4040
|
}
|
|
4040
4041
|
),
|
|
4041
4042
|
e.detail && A ? /* @__PURE__ */ i(M, { label: s("anamnesis.common.details"), children: /* @__PURE__ */ i(
|
|
4042
|
-
|
|
4043
|
+
te,
|
|
4043
4044
|
{
|
|
4044
4045
|
className: Ie,
|
|
4045
4046
|
disabled: r,
|
|
@@ -4095,19 +4096,19 @@ function Mi({
|
|
|
4095
4096
|
] }) }),
|
|
4096
4097
|
/* @__PURE__ */ c("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:sm:flex-row ds:sm:items-start", children: [
|
|
4097
4098
|
/* @__PURE__ */ i(M, { label: s("anamnesis.common.time"), children: /* @__PURE__ */ i(
|
|
4098
|
-
|
|
4099
|
+
kn,
|
|
4099
4100
|
{
|
|
4100
4101
|
disabled: r,
|
|
4101
|
-
value:
|
|
4102
|
+
value: Rr(A),
|
|
4102
4103
|
onChange: (y) => t({
|
|
4103
4104
|
kind: "meal",
|
|
4104
|
-
time:
|
|
4105
|
+
time: Or(y),
|
|
4105
4106
|
description: h
|
|
4106
4107
|
})
|
|
4107
4108
|
}
|
|
4108
4109
|
) }),
|
|
4109
4110
|
/* @__PURE__ */ i("div", { className: "ds:grow", children: /* @__PURE__ */ i(M, { label: s("anamnesis.common.whatEaten"), children: /* @__PURE__ */ i(
|
|
4110
|
-
|
|
4111
|
+
te,
|
|
4111
4112
|
{
|
|
4112
4113
|
className: Ie,
|
|
4113
4114
|
disabled: r,
|
|
@@ -4137,7 +4138,7 @@ function Mi({
|
|
|
4137
4138
|
function Vi(e) {
|
|
4138
4139
|
return xe(e).filter((a) => a.goal === !0);
|
|
4139
4140
|
}
|
|
4140
|
-
const
|
|
4141
|
+
const Gr = {
|
|
4141
4142
|
// ±2% of goal weight (≈1.2 kg at 62 kg) is the day-to-day hydration and
|
|
4142
4143
|
// gut-content swing — indistinguishable from being at target. 10% is the
|
|
4143
4144
|
// clinically meaningful unit of weight change (the 5–10% loss guidelines are
|
|
@@ -4170,43 +4171,43 @@ const Kr = {
|
|
|
4170
4171
|
approaching: 0.1,
|
|
4171
4172
|
sided: "atLeast"
|
|
4172
4173
|
}
|
|
4173
|
-
},
|
|
4174
|
+
}, Ur = {
|
|
4174
4175
|
kind: "relative",
|
|
4175
4176
|
onTarget: 0.05,
|
|
4176
4177
|
approaching: 0.15,
|
|
4177
4178
|
sided: "both"
|
|
4178
4179
|
};
|
|
4179
|
-
function
|
|
4180
|
-
return
|
|
4180
|
+
function Wr(e) {
|
|
4181
|
+
return Gr[e] ?? Ur;
|
|
4181
4182
|
}
|
|
4182
4183
|
function Gt(e, a, t) {
|
|
4183
4184
|
return e.kind === "absolute" ? a : Math.abs(t) * a;
|
|
4184
4185
|
}
|
|
4185
|
-
function
|
|
4186
|
+
function $r(e, a, t) {
|
|
4186
4187
|
if (e == null || !Number.isFinite(e) || a == null || !Number.isFinite(a)) return null;
|
|
4187
|
-
const n =
|
|
4188
|
+
const n = Wr(t), o = e - a;
|
|
4188
4189
|
if (n.sided === "atLeast" && o >= 0 || n.sided === "atMost" && o <= 0) return "onTarget";
|
|
4189
4190
|
const r = Math.abs(o);
|
|
4190
4191
|
return r <= Gt(n, n.onTarget, a) ? "onTarget" : r <= Gt(n, n.approaching, a) ? "approaching" : "offTarget";
|
|
4191
4192
|
}
|
|
4192
|
-
const
|
|
4193
|
+
const Qr = {
|
|
4193
4194
|
weight: { min: 20, max: 400, step: 0.1 },
|
|
4194
4195
|
bmi: { min: 10, max: 60, step: 0.1 },
|
|
4195
4196
|
waist: { min: 30, max: 250, step: 1 },
|
|
4196
4197
|
energy: { min: 500, max: 6e3, step: 50 },
|
|
4197
4198
|
protein: { min: 10, max: 400, step: 5 }
|
|
4198
4199
|
};
|
|
4199
|
-
function
|
|
4200
|
-
const a =
|
|
4200
|
+
function Zr(e) {
|
|
4201
|
+
const a = Qr[e.key];
|
|
4201
4202
|
return a || { min: 0, max: 1e4, step: 10 ** -(e.precision ?? 0) };
|
|
4202
4203
|
}
|
|
4203
|
-
function
|
|
4204
|
+
function Yr(e, a) {
|
|
4204
4205
|
return e == null ? !0 : Number.isFinite(e) ? e >= a.min && e <= a.max : !1;
|
|
4205
4206
|
}
|
|
4206
|
-
function
|
|
4207
|
+
function Jr(e, a) {
|
|
4207
4208
|
return e == null || a == null, e === a;
|
|
4208
4209
|
}
|
|
4209
|
-
function
|
|
4210
|
+
function Xr(e, a) {
|
|
4210
4211
|
return a.unit ? `${e.min}–${e.max} ${a.unit}` : `${e.min}–${e.max}`;
|
|
4211
4212
|
}
|
|
4212
4213
|
function Hi({
|
|
@@ -4217,7 +4218,7 @@ function Hi({
|
|
|
4217
4218
|
t: o,
|
|
4218
4219
|
onCommit: r
|
|
4219
4220
|
}) {
|
|
4220
|
-
const [l, s] = I(!1), [d, u] = I(t), g =
|
|
4221
|
+
const [l, s] = I(!1), [d, u] = I(t), g = Zr(e), b = Yr(d, g), m = !Jr(d, t), v = Te(e, o), k = Xr(g, e), f = (h) => {
|
|
4221
4222
|
h && u(t), s(h);
|
|
4222
4223
|
}, A = (h) => {
|
|
4223
4224
|
r(h), s(!1);
|
|
@@ -4295,12 +4296,12 @@ function Hi({
|
|
|
4295
4296
|
)
|
|
4296
4297
|
] });
|
|
4297
4298
|
}
|
|
4298
|
-
const
|
|
4299
|
+
const el = {
|
|
4299
4300
|
onTarget: "success",
|
|
4300
4301
|
approaching: "warning",
|
|
4301
4302
|
offTarget: "error"
|
|
4302
4303
|
};
|
|
4303
|
-
function
|
|
4304
|
+
function al({
|
|
4304
4305
|
variant: e = "outlined",
|
|
4305
4306
|
label: a,
|
|
4306
4307
|
target: t,
|
|
@@ -4318,7 +4319,7 @@ function el({
|
|
|
4318
4319
|
className: "ds:flex ds:flex-col ds:items-start ds:gap-[var(--spacing-xs)] ds:rounded-[var(--radius-md)] ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)] ds:pt-[var(--spacing-md)] ds:pb-[var(--spacing-md)] " + // Mirrors the kit Card's `outlined` / `elevated` variant recipes
|
|
4319
4320
|
// (border + surface + shadow tokens), including the accessible-theme
|
|
4320
4321
|
// 2px border bump.
|
|
4321
|
-
(e === "elevated" ? "ds:bg-[var(--card)] ds:border ds:border-[color:var(--card-border)] ds:shadow-[var(--shadow-card)] ds:[
|
|
4322
|
+
(e === "elevated" ? "ds:bg-[var(--card)] ds:[:where(&)]:border-[length:var(--surface-border-width,var(--border-width-sm))] ds:border-[color:var(--card-border)] ds:shadow-[var(--shadow-card)]" : "ds:[:where(&)]:border-[length:var(--surface-border-width,var(--border-width-sm))] ds:border-[color:var(--border)]"),
|
|
4322
4323
|
children: [
|
|
4323
4324
|
/* @__PURE__ */ i("span", { className: "type-label ds:text-[color:var(--muted-foreground)]", children: a }),
|
|
4324
4325
|
/* @__PURE__ */ i("span", { className: "type-metric ds:[--type-metric-size:var(--font-size-xl)] ds:text-[color:var(--foreground)]", children: t }),
|
|
@@ -4329,7 +4330,7 @@ function el({
|
|
|
4329
4330
|
// `mt-auto` pins it to the tile's foot, so a row of tiles stretched to
|
|
4330
4331
|
// the tallest one lines its chips up instead of leaving a hole.
|
|
4331
4332
|
/* @__PURE__ */ c("div", { className: "ds:mt-auto ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
4332
|
-
o ? /* @__PURE__ */ i(Y, { variant:
|
|
4333
|
+
o ? /* @__PURE__ */ i(Y, { variant: el[o], size: "sm", withDot: !0, children: r }) : null,
|
|
4333
4334
|
l
|
|
4334
4335
|
] })
|
|
4335
4336
|
) : null
|
|
@@ -4341,16 +4342,16 @@ function Ua(e, a, t) {
|
|
|
4341
4342
|
const n = Pe(e, a.precision, t);
|
|
4342
4343
|
return a.unit ? `${n} ${a.unit}` : n;
|
|
4343
4344
|
}
|
|
4344
|
-
function
|
|
4345
|
+
function tl({ def: e, visits: a, target: t, t: n, onTargetChange: o }) {
|
|
4345
4346
|
var m;
|
|
4346
|
-
const { t: r } =
|
|
4347
|
+
const { t: r } = zn("ui"), l = Ee(n), s = ((m = Zn(a, e)) == null ? void 0 : m.value) ?? null, d = $r(s, t, e.key), u = n("anamnesis.targets.tileLabel", {
|
|
4347
4348
|
name: qe(e, n)
|
|
4348
4349
|
}), g = e.computed && s != null, b = s == null ? n("anamnesis.targets.nowUnset") : g ? n("anamnesis.targets.nowBanded", {
|
|
4349
4350
|
value: Ua(s, e, l),
|
|
4350
|
-
band: r(`bmiCalculator.category.${
|
|
4351
|
+
band: r(`bmiCalculator.category.${An(s)}`)
|
|
4351
4352
|
}) : n("anamnesis.targets.now", { value: Ua(s, e, l) });
|
|
4352
4353
|
return /* @__PURE__ */ i(
|
|
4353
|
-
|
|
4354
|
+
al,
|
|
4354
4355
|
{
|
|
4355
4356
|
variant: "elevated",
|
|
4356
4357
|
label: u,
|
|
@@ -4372,7 +4373,7 @@ function al({ def: e, visits: a, target: t, t: n, onTargetChange: o }) {
|
|
|
4372
4373
|
}
|
|
4373
4374
|
);
|
|
4374
4375
|
}
|
|
4375
|
-
function
|
|
4376
|
+
function il(e) {
|
|
4376
4377
|
return e <= 1 ? "ds:grid-cols-1" : e === 2 ? "ds:grid-cols-2" : e === 3 ? "ds:grid-cols-2 ds:sm:grid-cols-3" : "ds:grid-cols-2 ds:sm:grid-cols-4";
|
|
4377
4378
|
}
|
|
4378
4379
|
function Bi({
|
|
@@ -4398,9 +4399,9 @@ function Bi({
|
|
|
4398
4399
|
/* @__PURE__ */ i(
|
|
4399
4400
|
"div",
|
|
4400
4401
|
{
|
|
4401
|
-
className: `ds:grid ds:gap-[var(--spacing-md)] ${
|
|
4402
|
+
className: `ds:grid ds:gap-[var(--spacing-md)] ${il(a.length)}`,
|
|
4402
4403
|
children: a.map((r) => /* @__PURE__ */ i(
|
|
4403
|
-
|
|
4404
|
+
tl,
|
|
4404
4405
|
{
|
|
4405
4406
|
def: r,
|
|
4406
4407
|
visits: e,
|
|
@@ -4531,7 +4532,7 @@ function ve({
|
|
|
4531
4532
|
}
|
|
4532
4533
|
);
|
|
4533
4534
|
}
|
|
4534
|
-
function
|
|
4535
|
+
function nl({
|
|
4535
4536
|
record: e,
|
|
4536
4537
|
t: a,
|
|
4537
4538
|
embedded: t = !1,
|
|
@@ -4593,7 +4594,7 @@ function il({
|
|
|
4593
4594
|
},
|
|
4594
4595
|
[h.intake]
|
|
4595
4596
|
), B = H(
|
|
4596
|
-
() =>
|
|
4597
|
+
() => mo(Z, Ae, T.sex, a),
|
|
4597
4598
|
[Z, Ae, T.sex, a]
|
|
4598
4599
|
), U = H(
|
|
4599
4600
|
() => pi(J, Ae, T.sex, a),
|
|
@@ -4680,7 +4681,7 @@ function il({
|
|
|
4680
4681
|
}
|
|
4681
4682
|
};
|
|
4682
4683
|
});
|
|
4683
|
-
}, en =
|
|
4684
|
+
}, en = Kn(n).map(
|
|
4684
4685
|
(z) => {
|
|
4685
4686
|
const x = me[z], E = x == null ? void 0 : x.parentCode;
|
|
4686
4687
|
return {
|
|
@@ -4752,7 +4753,7 @@ function il({
|
|
|
4752
4753
|
)
|
|
4753
4754
|
] }),
|
|
4754
4755
|
/* @__PURE__ */ i(Q.Content, { value: "summary", children: /* @__PURE__ */ i("div", { className: "ds:pt-[var(--spacing-md)]", children: /* @__PURE__ */ i(
|
|
4755
|
-
|
|
4756
|
+
wo,
|
|
4756
4757
|
{
|
|
4757
4758
|
intake: h.intake,
|
|
4758
4759
|
sections: Z,
|
|
@@ -4797,7 +4798,7 @@ function il({
|
|
|
4797
4798
|
}))
|
|
4798
4799
|
}
|
|
4799
4800
|
) : /* @__PURE__ */ i(
|
|
4800
|
-
|
|
4801
|
+
te,
|
|
4801
4802
|
{
|
|
4802
4803
|
value: p.practitioner ?? "",
|
|
4803
4804
|
onChange: (z) => ne((x) => ({
|
|
@@ -4812,7 +4813,7 @@ function il({
|
|
|
4812
4813
|
value: ui(p.dateIso),
|
|
4813
4814
|
onChange: (z) => z && ne((x) => ({
|
|
4814
4815
|
...x,
|
|
4815
|
-
dateIso:
|
|
4816
|
+
dateIso: io(z) + to(x.dateIso)
|
|
4816
4817
|
}))
|
|
4817
4818
|
}
|
|
4818
4819
|
) })
|
|
@@ -4937,7 +4938,7 @@ function il({
|
|
|
4937
4938
|
fill: $.oncological.fill,
|
|
4938
4939
|
children: /* @__PURE__ */ c("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-2", children: [
|
|
4939
4940
|
/* @__PURE__ */ i(M, { label: a("anamnesis.field.tumourType.label"), children: /* @__PURE__ */ i(
|
|
4940
|
-
|
|
4941
|
+
te,
|
|
4941
4942
|
{
|
|
4942
4943
|
value: wa.tumourType ?? "",
|
|
4943
4944
|
onChange: (z) => ne((x) => ({
|
|
@@ -4950,7 +4951,7 @@ function il({
|
|
|
4950
4951
|
}
|
|
4951
4952
|
) }),
|
|
4952
4953
|
/* @__PURE__ */ i(M, { label: a("anamnesis.field.stage.label"), children: /* @__PURE__ */ i(
|
|
4953
|
-
|
|
4954
|
+
te,
|
|
4954
4955
|
{
|
|
4955
4956
|
value: wa.stage ?? "",
|
|
4956
4957
|
onChange: (z) => ne((x) => ({
|
|
@@ -4999,7 +5000,7 @@ function il({
|
|
|
4999
5000
|
{
|
|
5000
5001
|
label: a("anamnesis.field.treatmentStatus.label"),
|
|
5001
5002
|
children: /* @__PURE__ */ i(
|
|
5002
|
-
|
|
5003
|
+
te,
|
|
5003
5004
|
{
|
|
5004
5005
|
value: wa.treatmentStatus ?? "",
|
|
5005
5006
|
onChange: (z) => ne((x) => ({
|
|
@@ -5027,7 +5028,7 @@ function il({
|
|
|
5027
5028
|
{
|
|
5028
5029
|
label: a("anamnesis.field.medName.label"),
|
|
5029
5030
|
children: /* @__PURE__ */ i(
|
|
5030
|
-
|
|
5031
|
+
te,
|
|
5031
5032
|
{
|
|
5032
5033
|
value: z.name,
|
|
5033
5034
|
onChange: (x) => Nt(z.id, {
|
|
@@ -5038,7 +5039,7 @@ function il({
|
|
|
5038
5039
|
}
|
|
5039
5040
|
) }),
|
|
5040
5041
|
/* @__PURE__ */ i(M, { label: a("anamnesis.field.medDose.label"), children: /* @__PURE__ */ i(
|
|
5041
|
-
|
|
5042
|
+
te,
|
|
5042
5043
|
{
|
|
5043
5044
|
value: z.dose ?? "",
|
|
5044
5045
|
onChange: (x) => Nt(z.id, {
|
|
@@ -5057,7 +5058,7 @@ function il({
|
|
|
5057
5058
|
/* @__PURE__ */ i(
|
|
5058
5059
|
de,
|
|
5059
5060
|
{
|
|
5060
|
-
icon: /* @__PURE__ */ i(
|
|
5061
|
+
icon: /* @__PURE__ */ i(Nn, { "aria-hidden": "true" }),
|
|
5061
5062
|
intent: "ghost",
|
|
5062
5063
|
"aria-label": a("anamnesis.compile.removeTherapy", {
|
|
5063
5064
|
name: z.name
|
|
@@ -5286,29 +5287,29 @@ function Ut({
|
|
|
5286
5287
|
}) {
|
|
5287
5288
|
return e ? /* @__PURE__ */ i("div", { className: "ds:flex ds:w-full ds:flex-col ds:gap-[var(--spacing-lg)]", children: a }) : /* @__PURE__ */ i("div", { className: "ds:min-h-[100dvh] ds:w-full ds:bg-[color:var(--app-shell-background)] ds:py-[var(--spacing-lg)]", children: /* @__PURE__ */ i("div", { className: "ds:mx-auto ds:flex ds:w-full ds:max-w-[76rem] ds:flex-col ds:gap-[var(--spacing-lg)] ds:px-[var(--spacing-md)]", children: a }) });
|
|
5288
5289
|
}
|
|
5289
|
-
const
|
|
5290
|
+
const ol = /* @__PURE__ */ new Set([
|
|
5290
5291
|
"number",
|
|
5291
5292
|
"choice",
|
|
5292
5293
|
"frequency",
|
|
5293
5294
|
"yesNoDetail"
|
|
5294
5295
|
]);
|
|
5295
|
-
function ol(e) {
|
|
5296
|
-
return nl.has(e.type);
|
|
5297
|
-
}
|
|
5298
5296
|
function rl(e) {
|
|
5299
|
-
return
|
|
5297
|
+
return ol.has(e.type);
|
|
5300
5298
|
}
|
|
5301
5299
|
function ll(e) {
|
|
5302
|
-
return e.
|
|
5300
|
+
return e.fields.length > 0 && e.fields.every(rl);
|
|
5303
5301
|
}
|
|
5304
5302
|
function sl(e) {
|
|
5305
|
-
return e.type === "
|
|
5303
|
+
return e.type === "text" && e.longForm === !0;
|
|
5304
|
+
}
|
|
5305
|
+
function dl(e) {
|
|
5306
|
+
return e.type === "textarea" || sl(e) ? !0 : e.detail === !0 && cl.has(e.type);
|
|
5306
5307
|
}
|
|
5307
|
-
const
|
|
5308
|
+
const cl = /* @__PURE__ */ new Set([
|
|
5308
5309
|
"yesNoDetail",
|
|
5309
5310
|
"frequency",
|
|
5310
5311
|
"choice"
|
|
5311
|
-
]),
|
|
5312
|
+
]), ul = "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-lg)] ds:@[640px]/intake:grid-cols-2 ds:@[960px]/intake:grid-cols-3 ds:@[1280px]/intake:grid-cols-4", ml = "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-lg)] ds:@[640px]/intake:grid-cols-2", pl = "ds:col-span-full";
|
|
5312
5313
|
function Wt(e) {
|
|
5313
5314
|
var n;
|
|
5314
5315
|
const a = {}, t = ((n = e.intake) == null ? void 0 : n.answers) ?? {};
|
|
@@ -5424,7 +5425,7 @@ function qi({
|
|
|
5424
5425
|
] }) : null
|
|
5425
5426
|
] }),
|
|
5426
5427
|
/* @__PURE__ */ c("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
5427
|
-
/* @__PURE__ */ i(
|
|
5428
|
+
/* @__PURE__ */ i(Dn, { value: D, ariaLabel: q }),
|
|
5428
5429
|
/* @__PURE__ */ i(
|
|
5429
5430
|
"p",
|
|
5430
5431
|
{
|
|
@@ -5459,7 +5460,7 @@ function qi({
|
|
|
5459
5460
|
description: a("anamnesis.empty.noQuestions.description")
|
|
5460
5461
|
}
|
|
5461
5462
|
) : /* @__PURE__ */ i(
|
|
5462
|
-
|
|
5463
|
+
Tn,
|
|
5463
5464
|
{
|
|
5464
5465
|
type: "multiple",
|
|
5465
5466
|
variant: "default",
|
|
@@ -5468,33 +5469,33 @@ function qi({
|
|
|
5468
5469
|
children: f.map((P) => {
|
|
5469
5470
|
const G = P.fields.filter(
|
|
5470
5471
|
(J) => Ve(g[J.key])
|
|
5471
|
-
).length, Z =
|
|
5472
|
+
).length, Z = ll(P);
|
|
5472
5473
|
return /* @__PURE__ */ c(
|
|
5473
|
-
|
|
5474
|
+
Cn,
|
|
5474
5475
|
{
|
|
5475
5476
|
value: P.key,
|
|
5476
5477
|
onBlur: (J) => h(P, J),
|
|
5477
5478
|
children: [
|
|
5478
|
-
/* @__PURE__ */ i(
|
|
5479
|
+
/* @__PURE__ */ i(Sn, { children: /* @__PURE__ */ c("span", { className: "ds:flex ds:w-full ds:flex-wrap ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
5479
5480
|
/* @__PURE__ */ i("span", { children: ye(P, a) }),
|
|
5480
5481
|
/* @__PURE__ */ i("span", { className: "type-meta ds:text-[color:var(--muted-foreground)]", children: a("anamnesis.intake.sectionProgress", {
|
|
5481
5482
|
answered: G,
|
|
5482
5483
|
total: P.fields.length
|
|
5483
5484
|
}) })
|
|
5484
5485
|
] }) }),
|
|
5485
|
-
/* @__PURE__ */ i(
|
|
5486
|
+
/* @__PURE__ */ i(_n, { children: /* @__PURE__ */ i(
|
|
5486
5487
|
"div",
|
|
5487
5488
|
{
|
|
5488
5489
|
"data-testid": `anamnesis-intake-section-${P.key}-fields`,
|
|
5489
5490
|
"data-layout": Z ? "short" : "mixed",
|
|
5490
|
-
className: Z ?
|
|
5491
|
+
className: Z ? ul : ml,
|
|
5491
5492
|
children: P.fields.map((J) => /* @__PURE__ */ i(
|
|
5492
5493
|
Mi,
|
|
5493
5494
|
{
|
|
5494
5495
|
readOnly: s,
|
|
5495
5496
|
def: J,
|
|
5496
5497
|
answer: g[J.key],
|
|
5497
|
-
className:
|
|
5498
|
+
className: dl(J) ? pl : void 0,
|
|
5498
5499
|
onChange: (me) => k(J.key, me),
|
|
5499
5500
|
t: a
|
|
5500
5501
|
},
|
|
@@ -5525,7 +5526,7 @@ function qi({
|
|
|
5525
5526
|
ie,
|
|
5526
5527
|
{
|
|
5527
5528
|
intent: "primary",
|
|
5528
|
-
startIcon: /* @__PURE__ */ i(
|
|
5529
|
+
startIcon: /* @__PURE__ */ i(In, { "aria-hidden": "true" }),
|
|
5529
5530
|
"data-testid": "anamnesis-intake-submit",
|
|
5530
5531
|
onClick: () => {
|
|
5531
5532
|
v(!0), r == null || r(g);
|
|
@@ -5574,7 +5575,7 @@ function $a({
|
|
|
5574
5575
|
] }, l.key);
|
|
5575
5576
|
}) });
|
|
5576
5577
|
}
|
|
5577
|
-
function
|
|
5578
|
+
function gl({
|
|
5578
5579
|
record: e,
|
|
5579
5580
|
t: a,
|
|
5580
5581
|
embedded: t = !1,
|
|
@@ -5796,7 +5797,7 @@ function $t({
|
|
|
5796
5797
|
}) {
|
|
5797
5798
|
return e ? /* @__PURE__ */ i("div", { className: "ds:flex ds:w-full ds:flex-col ds:gap-[var(--spacing-lg)]", children: a }) : /* @__PURE__ */ i("div", { className: "ds:min-h-[100dvh] ds:w-full ds:bg-[color:var(--app-shell-background)] ds:py-[var(--spacing-lg)]", children: /* @__PURE__ */ i("div", { className: "ds:mx-auto ds:flex ds:w-full ds:max-w-[76rem] ds:flex-col ds:gap-[var(--spacing-lg)] ds:px-[var(--spacing-md)]", children: a }) });
|
|
5798
5799
|
}
|
|
5799
|
-
const
|
|
5800
|
+
const hl = [];
|
|
5800
5801
|
function ca({
|
|
5801
5802
|
variant: e = "first-use",
|
|
5802
5803
|
testId: a = "anamnesis-empty-card",
|
|
@@ -5826,7 +5827,7 @@ function Ki({
|
|
|
5826
5827
|
statusSlot: r,
|
|
5827
5828
|
onTargetChange: l,
|
|
5828
5829
|
hideTargetStrip: s = !1,
|
|
5829
|
-
leadingTabs: d =
|
|
5830
|
+
leadingTabs: d = hl,
|
|
5830
5831
|
readOnly: u = !1,
|
|
5831
5832
|
questionnaireSlot: g,
|
|
5832
5833
|
questionnaireHeaderSlot: b,
|
|
@@ -5974,7 +5975,7 @@ function Ki({
|
|
|
5974
5975
|
);
|
|
5975
5976
|
}
|
|
5976
5977
|
Ki.displayName = "AnamnesisQuestionnaire";
|
|
5977
|
-
function
|
|
5978
|
+
function Xs({
|
|
5978
5979
|
mode: e,
|
|
5979
5980
|
record: a,
|
|
5980
5981
|
t,
|
|
@@ -6038,7 +6039,7 @@ function Ys({
|
|
|
6038
6039
|
partitionBySource: T
|
|
6039
6040
|
}
|
|
6040
6041
|
) : e === "compile" ? /* @__PURE__ */ i(
|
|
6041
|
-
|
|
6042
|
+
nl,
|
|
6042
6043
|
{
|
|
6043
6044
|
record: a,
|
|
6044
6045
|
t,
|
|
@@ -6059,7 +6060,7 @@ function Ys({
|
|
|
6059
6060
|
partitionBySource: T
|
|
6060
6061
|
}
|
|
6061
6062
|
) : /* @__PURE__ */ i(
|
|
6062
|
-
|
|
6063
|
+
gl,
|
|
6063
6064
|
{
|
|
6064
6065
|
record: a,
|
|
6065
6066
|
t,
|
|
@@ -6090,7 +6091,7 @@ function Ys({
|
|
|
6090
6091
|
}
|
|
6091
6092
|
);
|
|
6092
6093
|
}
|
|
6093
|
-
const
|
|
6094
|
+
const bl = Xt("", {
|
|
6094
6095
|
variants: {
|
|
6095
6096
|
dragging: {
|
|
6096
6097
|
true: "ds:opacity-60",
|
|
@@ -6158,7 +6159,7 @@ function Za({
|
|
|
6158
6159
|
const v = n.dragSource;
|
|
6159
6160
|
r(!1), n.setDragSource(null), !(v === null || v === e) && s(v, e);
|
|
6160
6161
|
},
|
|
6161
|
-
className:
|
|
6162
|
+
className: bl({
|
|
6162
6163
|
dragging: u,
|
|
6163
6164
|
dropTarget: o && !u
|
|
6164
6165
|
})
|
|
@@ -6167,7 +6168,7 @@ function Za({
|
|
|
6167
6168
|
{
|
|
6168
6169
|
size: "sm",
|
|
6169
6170
|
intent: "ghost",
|
|
6170
|
-
icon: /* @__PURE__ */ i(
|
|
6171
|
+
icon: /* @__PURE__ */ i(jn, { "aria-hidden": "true" }),
|
|
6171
6172
|
"aria-label": l("anamnesis.configEditor.reorderHandle", { name: a }),
|
|
6172
6173
|
className: "ds:cursor-grab ds:active:cursor-grabbing",
|
|
6173
6174
|
onKeyDown: d
|
|
@@ -6175,7 +6176,7 @@ function Za({
|
|
|
6175
6176
|
);
|
|
6176
6177
|
return t({ rowProps: g, handle: b });
|
|
6177
6178
|
}
|
|
6178
|
-
function
|
|
6179
|
+
function ed() {
|
|
6179
6180
|
return {
|
|
6180
6181
|
parameters: $e.parameters.map((e) => ({
|
|
6181
6182
|
...e,
|
|
@@ -6204,7 +6205,7 @@ function Ja(e, a, t) {
|
|
|
6204
6205
|
const n = [...e], [o] = n.splice(a, 1);
|
|
6205
6206
|
return n.splice(t, 0, o), n;
|
|
6206
6207
|
}
|
|
6207
|
-
const
|
|
6208
|
+
const fl = [
|
|
6208
6209
|
"text",
|
|
6209
6210
|
"textarea",
|
|
6210
6211
|
"numberInteger",
|
|
@@ -6215,7 +6216,7 @@ const bl = [
|
|
|
6215
6216
|
"multiChoice",
|
|
6216
6217
|
"frequency",
|
|
6217
6218
|
"meal"
|
|
6218
|
-
],
|
|
6219
|
+
], yl = new Set(
|
|
6219
6220
|
$e.intakeSections.flatMap(
|
|
6220
6221
|
(e) => e.fields.map((a) => a.key)
|
|
6221
6222
|
)
|
|
@@ -6224,8 +6225,8 @@ function Ui(e, a) {
|
|
|
6224
6225
|
const t = e.type === "number" ? e.decimal ? "numberDecimal" : "numberInteger" : e.type === "choice" && e.detail ? "choiceWithText" : e.type;
|
|
6225
6226
|
return a(`anamnesis.configEditor.type.${t}`);
|
|
6226
6227
|
}
|
|
6227
|
-
const
|
|
6228
|
-
function
|
|
6228
|
+
const vl = ["down", "up", "toRange"], nt = ["anthropometric", "dietary", "lab"];
|
|
6229
|
+
function ad({
|
|
6229
6230
|
config: e,
|
|
6230
6231
|
onConfigChange: a,
|
|
6231
6232
|
t,
|
|
@@ -6613,7 +6614,7 @@ function Xs({
|
|
|
6613
6614
|
t,
|
|
6614
6615
|
children: /* @__PURE__ */ i(aa, { divider: "divided", children: S.map((w, C) => {
|
|
6615
6616
|
const F = [
|
|
6616
|
-
|
|
6617
|
+
kl(w, t),
|
|
6617
6618
|
t(
|
|
6618
6619
|
`anamnesis.configEditor.direction.${w.betterDirection}`
|
|
6619
6620
|
),
|
|
@@ -6635,7 +6636,7 @@ function Xs({
|
|
|
6635
6636
|
{
|
|
6636
6637
|
size: "sm",
|
|
6637
6638
|
variant: "neutral",
|
|
6638
|
-
leading: /* @__PURE__ */ i(
|
|
6639
|
+
leading: /* @__PURE__ */ i(Pn, { "aria-hidden": "true" }),
|
|
6639
6640
|
children: t("anamnesis.configEditor.locked")
|
|
6640
6641
|
}
|
|
6641
6642
|
) : null,
|
|
@@ -6892,7 +6893,7 @@ function Xs({
|
|
|
6892
6893
|
] }) })
|
|
6893
6894
|
] }) }) }),
|
|
6894
6895
|
/* @__PURE__ */ i(
|
|
6895
|
-
|
|
6896
|
+
wl,
|
|
6896
6897
|
{
|
|
6897
6898
|
editing: o,
|
|
6898
6899
|
onClose: () => r(null),
|
|
@@ -6902,7 +6903,7 @@ function Xs({
|
|
|
6902
6903
|
}
|
|
6903
6904
|
),
|
|
6904
6905
|
/* @__PURE__ */ i(
|
|
6905
|
-
|
|
6906
|
+
Nl,
|
|
6906
6907
|
{
|
|
6907
6908
|
adding: l,
|
|
6908
6909
|
onClose: () => s(null),
|
|
@@ -6915,11 +6916,11 @@ function Xs({
|
|
|
6915
6916
|
}
|
|
6916
6917
|
);
|
|
6917
6918
|
}
|
|
6918
|
-
function
|
|
6919
|
+
function kl(e, a) {
|
|
6919
6920
|
const t = e.referenceRange;
|
|
6920
6921
|
return t ? t.min != null && t.max != null ? `${t.min}–${t.max}` : t.max != null ? a("anamnesis.range.atMost", { value: t.max }) : t.min != null ? a("anamnesis.range.atLeast", { value: t.min }) : null : null;
|
|
6921
6922
|
}
|
|
6922
|
-
function
|
|
6923
|
+
function wl({
|
|
6923
6924
|
editing: e,
|
|
6924
6925
|
onClose: a,
|
|
6925
6926
|
config: t,
|
|
@@ -6934,7 +6935,7 @@ function kl({
|
|
|
6934
6935
|
r || a();
|
|
6935
6936
|
},
|
|
6936
6937
|
children: e ? /* @__PURE__ */ i(
|
|
6937
|
-
|
|
6938
|
+
xl,
|
|
6938
6939
|
{
|
|
6939
6940
|
editing: e,
|
|
6940
6941
|
onClose: a,
|
|
@@ -6942,26 +6943,26 @@ function kl({
|
|
|
6942
6943
|
onConfigChange: n,
|
|
6943
6944
|
t: o
|
|
6944
6945
|
},
|
|
6945
|
-
|
|
6946
|
+
zl(e)
|
|
6946
6947
|
) : null
|
|
6947
6948
|
}
|
|
6948
6949
|
);
|
|
6949
6950
|
}
|
|
6950
|
-
function
|
|
6951
|
+
function zl(e) {
|
|
6951
6952
|
return e.kind === "pathology" ? `pathology:${e.entry.code}` : e.kind === "field" ? `field:${e.sectionKey}:${e.entry.key}` : `${e.kind}:${e.entry.key}`;
|
|
6952
6953
|
}
|
|
6953
|
-
function
|
|
6954
|
+
function xl({
|
|
6954
6955
|
editing: e,
|
|
6955
6956
|
onClose: a,
|
|
6956
6957
|
config: t,
|
|
6957
6958
|
onConfigChange: n,
|
|
6958
6959
|
t: o
|
|
6959
6960
|
}) {
|
|
6960
|
-
const r = e.entry, l =
|
|
6961
|
+
const r = e.entry, l = Al(e, o), [s, d] = I(r.label ?? ""), [u, g] = I(
|
|
6961
6962
|
e.kind === "field" ? r.helpText ?? "" : ""
|
|
6962
6963
|
), [b, m] = I(
|
|
6963
6964
|
e.kind === "field" && e.entry.required === !0
|
|
6964
|
-
), v = e.kind === "field" ? e.entry : null, k = v !== null && (v.type === "choice" || v.type === "multiChoice"), f = k && !
|
|
6965
|
+
), v = e.kind === "field" ? e.entry : null, k = v !== null && (v.type === "choice" || v.type === "multiChoice"), f = k && !yl.has(v.key), [A, h] = I(
|
|
6965
6966
|
f ? (v.options ?? []).join(", ") : ""
|
|
6966
6967
|
), y = A.split(",").map((T) => T.trim()).filter(Boolean), N = !f || y.length > 0, j = () => {
|
|
6967
6968
|
const T = s.trim(), R = (p) => {
|
|
@@ -7026,7 +7027,7 @@ function zl({
|
|
|
7026
7027
|
label: o("anamnesis.configEditor.labelField"),
|
|
7027
7028
|
description: o("anamnesis.configEditor.labelFieldHelp"),
|
|
7028
7029
|
children: /* @__PURE__ */ i(
|
|
7029
|
-
|
|
7030
|
+
te,
|
|
7030
7031
|
{
|
|
7031
7032
|
value: s,
|
|
7032
7033
|
onChange: (T) => d(T.target.value),
|
|
@@ -7058,7 +7059,7 @@ function zl({
|
|
|
7058
7059
|
description: o("anamnesis.configEditor.optionsFieldHelp"),
|
|
7059
7060
|
required: !0,
|
|
7060
7061
|
children: /* @__PURE__ */ i(
|
|
7061
|
-
|
|
7062
|
+
te,
|
|
7062
7063
|
{
|
|
7063
7064
|
value: A,
|
|
7064
7065
|
onChange: (T) => h(T.target.value)
|
|
@@ -7079,7 +7080,7 @@ function zl({
|
|
|
7079
7080
|
] })
|
|
7080
7081
|
] });
|
|
7081
7082
|
}
|
|
7082
|
-
function
|
|
7083
|
+
function Al(e, a) {
|
|
7083
7084
|
return e.kind === "parameter" ? Te({ ...e.entry, label: void 0 }, a) : e.kind === "section" ? ye({ ...e.entry, label: void 0 }, a) : e.kind === "field" ? ge({ ...e.entry, label: void 0 }, a) : Se(e.entry.code, a, {
|
|
7084
7085
|
...e.entry,
|
|
7085
7086
|
label: void 0
|
|
@@ -7088,7 +7089,7 @@ function xl(e, a) {
|
|
|
7088
7089
|
function Xa(e) {
|
|
7089
7090
|
return e === "choice" || e === "choiceWithText" || e === "multiChoice";
|
|
7090
7091
|
}
|
|
7091
|
-
function
|
|
7092
|
+
function Nl({
|
|
7092
7093
|
adding: e,
|
|
7093
7094
|
onClose: a,
|
|
7094
7095
|
config: t,
|
|
@@ -7103,7 +7104,7 @@ function Al({
|
|
|
7103
7104
|
r || a();
|
|
7104
7105
|
},
|
|
7105
7106
|
children: e ? /* @__PURE__ */ i(
|
|
7106
|
-
|
|
7107
|
+
Tl,
|
|
7107
7108
|
{
|
|
7108
7109
|
adding: e,
|
|
7109
7110
|
onClose: a,
|
|
@@ -7116,7 +7117,7 @@ function Al({
|
|
|
7116
7117
|
}
|
|
7117
7118
|
);
|
|
7118
7119
|
}
|
|
7119
|
-
function
|
|
7120
|
+
function Tl({
|
|
7120
7121
|
adding: e,
|
|
7121
7122
|
onClose: a,
|
|
7122
7123
|
config: t,
|
|
@@ -7126,10 +7127,10 @@ function Nl({
|
|
|
7126
7127
|
const [r, l] = I(""), [s, d] = I(""), [u, g] = I(""), [b, m] = I(""), [v, k] = I(""), [f, A] = I(""), [h, y] = I("0"), [N, j] = I(""), [T, R] = I(""), [p, S] = I(""), [w, C] = I(""), [F, O] = I(!1), [D, q] = I(""), $ = nt.map((_) => ({
|
|
7127
7128
|
value: _,
|
|
7128
7129
|
label: o(`anamnesis.group.${_}`)
|
|
7129
|
-
})), V =
|
|
7130
|
+
})), V = vl.map((_) => ({
|
|
7130
7131
|
value: _,
|
|
7131
7132
|
label: o(`anamnesis.configEditor.direction.${_}`)
|
|
7132
|
-
})), P =
|
|
7133
|
+
})), P = fl.map((_) => ({
|
|
7133
7134
|
value: _,
|
|
7134
7135
|
label: o(`anamnesis.configEditor.type.${_}`)
|
|
7135
7136
|
})), G = t.pathologies.filter((_) => !_.parentCode && _.enabled !== !1).map((_) => ({
|
|
@@ -7209,7 +7210,7 @@ function Nl({
|
|
|
7209
7210
|
}
|
|
7210
7211
|
a();
|
|
7211
7212
|
}, he = e.kind === "parameter" ? o("anamnesis.configEditor.addParameterTitle") : e.kind === "field" ? o("anamnesis.configEditor.addQuestionTitle", {
|
|
7212
|
-
section:
|
|
7213
|
+
section: Cl(t, e.sectionKey, o)
|
|
7213
7214
|
}) : e.kind === "section" ? o("anamnesis.configEditor.addSectionTitle") : o("anamnesis.configEditor.addCodeTitle");
|
|
7214
7215
|
return /* @__PURE__ */ c(ee.Content, { size: "sm", children: [
|
|
7215
7216
|
/* @__PURE__ */ c(ee.Header, { children: [
|
|
@@ -7218,14 +7219,14 @@ function Nl({
|
|
|
7218
7219
|
] }),
|
|
7219
7220
|
/* @__PURE__ */ c(ee.Body, { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
7220
7221
|
e.kind === "pathology" ? /* @__PURE__ */ i(M, { label: o("anamnesis.configEditor.codeField"), required: !0, children: /* @__PURE__ */ i(
|
|
7221
|
-
|
|
7222
|
+
te,
|
|
7222
7223
|
{
|
|
7223
7224
|
value: w,
|
|
7224
7225
|
onChange: (_) => C(_.target.value)
|
|
7225
7226
|
}
|
|
7226
7227
|
) }) : null,
|
|
7227
7228
|
/* @__PURE__ */ i(M, { label: o("anamnesis.configEditor.labelField"), required: !0, children: /* @__PURE__ */ i(
|
|
7228
|
-
|
|
7229
|
+
te,
|
|
7229
7230
|
{
|
|
7230
7231
|
value: r,
|
|
7231
7232
|
onChange: (_) => l(_.target.value)
|
|
@@ -7261,7 +7262,7 @@ function Nl({
|
|
|
7261
7262
|
),
|
|
7262
7263
|
/* @__PURE__ */ c("div", { className: "ds:grid ds:grid-cols-2 ds:gap-[var(--spacing-md)]", children: [
|
|
7263
7264
|
/* @__PURE__ */ i(M, { label: o("anamnesis.configEditor.unitField"), optional: !0, children: /* @__PURE__ */ i(
|
|
7264
|
-
|
|
7265
|
+
te,
|
|
7265
7266
|
{
|
|
7266
7267
|
value: b,
|
|
7267
7268
|
onChange: (_) => m(_.target.value)
|
|
@@ -7295,7 +7296,7 @@ function Nl({
|
|
|
7295
7296
|
label: o("anamnesis.configEditor.rangeMinField"),
|
|
7296
7297
|
optional: !0,
|
|
7297
7298
|
children: /* @__PURE__ */ i(
|
|
7298
|
-
|
|
7299
|
+
te,
|
|
7299
7300
|
{
|
|
7300
7301
|
inputMode: "decimal",
|
|
7301
7302
|
value: v,
|
|
@@ -7310,7 +7311,7 @@ function Nl({
|
|
|
7310
7311
|
label: o("anamnesis.configEditor.rangeMaxField"),
|
|
7311
7312
|
optional: !0,
|
|
7312
7313
|
children: /* @__PURE__ */ i(
|
|
7313
|
-
|
|
7314
|
+
te,
|
|
7314
7315
|
{
|
|
7315
7316
|
inputMode: "decimal",
|
|
7316
7317
|
value: f,
|
|
@@ -7339,7 +7340,7 @@ function Nl({
|
|
|
7339
7340
|
description: o("anamnesis.configEditor.optionsFieldHelp"),
|
|
7340
7341
|
required: !0,
|
|
7341
7342
|
children: /* @__PURE__ */ i(
|
|
7342
|
-
|
|
7343
|
+
te,
|
|
7343
7344
|
{
|
|
7344
7345
|
value: T,
|
|
7345
7346
|
onChange: (_) => R(_.target.value)
|
|
@@ -7391,7 +7392,7 @@ function Nl({
|
|
|
7391
7392
|
] })
|
|
7392
7393
|
] });
|
|
7393
7394
|
}
|
|
7394
|
-
function
|
|
7395
|
+
function Cl(e, a, t) {
|
|
7395
7396
|
const n = e.intakeSections.find(
|
|
7396
7397
|
(o) => o.key === a
|
|
7397
7398
|
);
|
|
@@ -7400,7 +7401,7 @@ function Tl(e, a, t) {
|
|
|
7400
7401
|
function Qt(e) {
|
|
7401
7402
|
return e.kind === "visit" ? `anamnesis-visit-${e.visitId}` : `anamnesis-event-${e.eventId}`;
|
|
7402
7403
|
}
|
|
7403
|
-
function
|
|
7404
|
+
function td(e, a) {
|
|
7404
7405
|
const t = e.visits.filter(Ai).map((o) => ({
|
|
7405
7406
|
id: Qt({ kind: "visit", visitId: o.id }),
|
|
7406
7407
|
dateIso: o.dateIso,
|
|
@@ -7440,7 +7441,7 @@ function ed(e, a) {
|
|
|
7440
7441
|
(o, r) => r.dateIso.localeCompare(o.dateIso)
|
|
7441
7442
|
);
|
|
7442
7443
|
}
|
|
7443
|
-
const
|
|
7444
|
+
const Sl = {
|
|
7444
7445
|
anamnesis: {
|
|
7445
7446
|
mainLabel: "سجل التاريخ المرضي: {{mode}}",
|
|
7446
7447
|
mode: {
|
|
@@ -8212,7 +8213,7 @@ const Cl = {
|
|
|
8212
8213
|
perWeek: "عدد المرات أسبوعيًا: {{times}}"
|
|
8213
8214
|
}
|
|
8214
8215
|
}
|
|
8215
|
-
},
|
|
8216
|
+
}, _l = {
|
|
8216
8217
|
anamnesis: {
|
|
8217
8218
|
mainLabel: "Anamneseakte: {{mode}}",
|
|
8218
8219
|
mode: {
|
|
@@ -8948,7 +8949,7 @@ const Cl = {
|
|
|
8948
8949
|
}
|
|
8949
8950
|
}
|
|
8950
8951
|
}
|
|
8951
|
-
},
|
|
8952
|
+
}, Dl = {
|
|
8952
8953
|
anamnesis: {
|
|
8953
8954
|
mainLabel: "Φάκελος ιστορικού: {{mode}}",
|
|
8954
8955
|
mode: {
|
|
@@ -9684,7 +9685,7 @@ const Cl = {
|
|
|
9684
9685
|
}
|
|
9685
9686
|
}
|
|
9686
9687
|
}
|
|
9687
|
-
},
|
|
9688
|
+
}, jl = {
|
|
9688
9689
|
anamnesis: {
|
|
9689
9690
|
mainLabel: "Anamnesis record — {{mode}}",
|
|
9690
9691
|
mode: {
|
|
@@ -10420,7 +10421,7 @@ const Cl = {
|
|
|
10420
10421
|
}
|
|
10421
10422
|
}
|
|
10422
10423
|
}
|
|
10423
|
-
},
|
|
10424
|
+
}, Pl = {
|
|
10424
10425
|
anamnesis: {
|
|
10425
10426
|
mainLabel: "Historial de anamnesis: {{mode}}",
|
|
10426
10427
|
mode: {
|
|
@@ -11165,7 +11166,7 @@ const Cl = {
|
|
|
11165
11166
|
}
|
|
11166
11167
|
}
|
|
11167
11168
|
}
|
|
11168
|
-
},
|
|
11169
|
+
}, El = {
|
|
11169
11170
|
anamnesis: {
|
|
11170
11171
|
mainLabel: "Dossier d’anamnèse : {{mode}}",
|
|
11171
11172
|
mode: {
|
|
@@ -11910,7 +11911,7 @@ const Cl = {
|
|
|
11910
11911
|
}
|
|
11911
11912
|
}
|
|
11912
11913
|
}
|
|
11913
|
-
},
|
|
11914
|
+
}, Ll = {
|
|
11914
11915
|
anamnesis: {
|
|
11915
11916
|
mainLabel: "चिकित्सा इतिहास रिकॉर्ड: {{mode}}",
|
|
11916
11917
|
mode: {
|
|
@@ -12646,7 +12647,7 @@ const Cl = {
|
|
|
12646
12647
|
}
|
|
12647
12648
|
}
|
|
12648
12649
|
}
|
|
12649
|
-
},
|
|
12650
|
+
}, Fl = {
|
|
12650
12651
|
anamnesis: {
|
|
12651
12652
|
mainLabel: "Cartella anamnestica: {{mode}}",
|
|
12652
12653
|
mode: {
|
|
@@ -13391,7 +13392,7 @@ const Cl = {
|
|
|
13391
13392
|
}
|
|
13392
13393
|
}
|
|
13393
13394
|
}
|
|
13394
|
-
},
|
|
13395
|
+
}, Il = {
|
|
13395
13396
|
anamnesis: {
|
|
13396
13397
|
mainLabel: "問診記録 — {{mode}}",
|
|
13397
13398
|
mode: {
|
|
@@ -14127,7 +14128,7 @@ const Cl = {
|
|
|
14127
14128
|
}
|
|
14128
14129
|
}
|
|
14129
14130
|
}
|
|
14130
|
-
},
|
|
14131
|
+
}, Rl = {
|
|
14131
14132
|
anamnesis: {
|
|
14132
14133
|
mainLabel: "Anamnesedossier: {{mode}}",
|
|
14133
14134
|
mode: {
|
|
@@ -14863,7 +14864,7 @@ const Cl = {
|
|
|
14863
14864
|
}
|
|
14864
14865
|
}
|
|
14865
14866
|
}
|
|
14866
|
-
},
|
|
14867
|
+
}, Ol = {
|
|
14867
14868
|
anamnesis: {
|
|
14868
14869
|
mainLabel: "Karta wywiadu medycznego: {{mode}}",
|
|
14869
14870
|
mode: {
|
|
@@ -15617,7 +15618,7 @@ const Cl = {
|
|
|
15617
15618
|
}
|
|
15618
15619
|
}
|
|
15619
15620
|
}
|
|
15620
|
-
},
|
|
15621
|
+
}, Ml = {
|
|
15621
15622
|
anamnesis: {
|
|
15622
15623
|
mainLabel: "Registo de anamnese: {{mode}}",
|
|
15623
15624
|
mode: {
|
|
@@ -16371,7 +16372,7 @@ const Cl = {
|
|
|
16371
16372
|
}
|
|
16372
16373
|
}
|
|
16373
16374
|
}
|
|
16374
|
-
},
|
|
16375
|
+
}, Vl = {
|
|
16375
16376
|
anamnesis: {
|
|
16376
16377
|
mainLabel: "Fișă de anamneză: {{mode}}",
|
|
16377
16378
|
mode: {
|
|
@@ -17116,7 +17117,7 @@ const Cl = {
|
|
|
17116
17117
|
}
|
|
17117
17118
|
}
|
|
17118
17119
|
}
|
|
17119
|
-
},
|
|
17120
|
+
}, Hl = {
|
|
17120
17121
|
anamnesis: {
|
|
17121
17122
|
mainLabel: "Карта анамнеза: {{mode}}",
|
|
17122
17123
|
mode: {
|
|
@@ -17870,7 +17871,7 @@ const Cl = {
|
|
|
17870
17871
|
}
|
|
17871
17872
|
}
|
|
17872
17873
|
}
|
|
17873
|
-
},
|
|
17874
|
+
}, Bl = {
|
|
17874
17875
|
anamnesis: {
|
|
17875
17876
|
mainLabel: "Kartela e anamnezës: {{mode}}",
|
|
17876
17877
|
mode: {
|
|
@@ -18606,7 +18607,7 @@ const Cl = {
|
|
|
18606
18607
|
}
|
|
18607
18608
|
}
|
|
18608
18609
|
}
|
|
18609
|
-
},
|
|
18610
|
+
}, ql = {
|
|
18610
18611
|
anamnesis: {
|
|
18611
18612
|
mainLabel: "Anamnesjournal: {{mode}}",
|
|
18612
18613
|
mode: {
|
|
@@ -19342,7 +19343,7 @@ const Cl = {
|
|
|
19342
19343
|
}
|
|
19343
19344
|
}
|
|
19344
19345
|
}
|
|
19345
|
-
},
|
|
19346
|
+
}, Kl = {
|
|
19346
19347
|
anamnesis: {
|
|
19347
19348
|
mainLabel: "Anamnez kaydı: {{mode}}",
|
|
19348
19349
|
mode: {
|
|
@@ -20078,7 +20079,7 @@ const Cl = {
|
|
|
20078
20079
|
optionHasNote: "{{label}} · not"
|
|
20079
20080
|
}
|
|
20080
20081
|
}
|
|
20081
|
-
},
|
|
20082
|
+
}, Gl = {
|
|
20082
20083
|
anamnesis: {
|
|
20083
20084
|
mainLabel: "病史档案:{{mode}}",
|
|
20084
20085
|
mode: {
|
|
@@ -20814,31 +20815,31 @@ const Cl = {
|
|
|
20814
20815
|
}
|
|
20815
20816
|
}
|
|
20816
20817
|
}
|
|
20817
|
-
},
|
|
20818
|
-
ar:
|
|
20819
|
-
de:
|
|
20820
|
-
el:
|
|
20821
|
-
en:
|
|
20822
|
-
es:
|
|
20823
|
-
fr:
|
|
20824
|
-
hi:
|
|
20825
|
-
it:
|
|
20826
|
-
ja:
|
|
20827
|
-
nl:
|
|
20828
|
-
pl:
|
|
20829
|
-
pt:
|
|
20830
|
-
ro:
|
|
20831
|
-
ru:
|
|
20832
|
-
sq:
|
|
20833
|
-
sv:
|
|
20834
|
-
tr:
|
|
20835
|
-
zh:
|
|
20818
|
+
}, Ul = "patterns", Wl = {
|
|
20819
|
+
ar: Sl,
|
|
20820
|
+
de: _l,
|
|
20821
|
+
el: Dl,
|
|
20822
|
+
en: jl,
|
|
20823
|
+
es: Pl,
|
|
20824
|
+
fr: El,
|
|
20825
|
+
hi: Ll,
|
|
20826
|
+
it: Fl,
|
|
20827
|
+
ja: Il,
|
|
20828
|
+
nl: Rl,
|
|
20829
|
+
pl: Ol,
|
|
20830
|
+
pt: Ml,
|
|
20831
|
+
ro: Vl,
|
|
20832
|
+
ru: Hl,
|
|
20833
|
+
sq: Bl,
|
|
20834
|
+
sv: ql,
|
|
20835
|
+
tr: Kl,
|
|
20836
|
+
zh: Gl
|
|
20836
20837
|
};
|
|
20837
|
-
function
|
|
20838
|
-
for (const [a, t] of Object.entries(
|
|
20839
|
-
e.addResourceBundle(a,
|
|
20838
|
+
function id(e) {
|
|
20839
|
+
for (const [a, t] of Object.entries(Wl))
|
|
20840
|
+
e.addResourceBundle(a, Ul, t, !0, !1);
|
|
20840
20841
|
}
|
|
20841
|
-
function
|
|
20842
|
+
function $l(e) {
|
|
20842
20843
|
var t;
|
|
20843
20844
|
if (!e) return;
|
|
20844
20845
|
const a = Je(e) ? new Date(e).getTime() : (t = ui(e)) == null ? void 0 : t.getTime();
|
|
@@ -20847,22 +20848,22 @@ function Wl(e) {
|
|
|
20847
20848
|
function Wi(e) {
|
|
20848
20849
|
return e.reportedAtIso ?? e.response.submittedAtIso;
|
|
20849
20850
|
}
|
|
20850
|
-
function
|
|
20851
|
+
function Ql(e, a) {
|
|
20851
20852
|
var o;
|
|
20852
20853
|
let t, n = Number.NEGATIVE_INFINITY;
|
|
20853
20854
|
for (const r of a) {
|
|
20854
20855
|
const l = (o = r.response.answers[e]) == null ? void 0 : o.value;
|
|
20855
20856
|
if (!l || !Ve(l)) continue;
|
|
20856
|
-
const s =
|
|
20857
|
+
const s = $l(Wi(r)) ?? Number.NEGATIVE_INFINITY;
|
|
20857
20858
|
s >= n && (t = { answer: l, source: r }, n = s);
|
|
20858
20859
|
}
|
|
20859
20860
|
return t;
|
|
20860
20861
|
}
|
|
20861
|
-
function
|
|
20862
|
+
function Zl(e, a) {
|
|
20862
20863
|
const t = e.relevance ?? "any";
|
|
20863
20864
|
return a === void 0 || t === "any" || t === a;
|
|
20864
20865
|
}
|
|
20865
|
-
function
|
|
20866
|
+
function Yl(e, a, t) {
|
|
20866
20867
|
const n = {
|
|
20867
20868
|
id: e.key,
|
|
20868
20869
|
label: ge(e, t),
|
|
@@ -20873,19 +20874,19 @@ function Zl(e, a, t) {
|
|
|
20873
20874
|
const o = Wi(a.source);
|
|
20874
20875
|
return o && (n.reportedAtIso = o), a.source.sourceLabel && (n.sourceLabel = a.source.sourceLabel), n;
|
|
20875
20876
|
}
|
|
20876
|
-
function
|
|
20877
|
+
function nd(e, a, t, n) {
|
|
20877
20878
|
const o = [];
|
|
20878
20879
|
let r = 0;
|
|
20879
20880
|
for (const l of e) {
|
|
20880
20881
|
const s = [];
|
|
20881
20882
|
for (const d of l.fields) {
|
|
20882
|
-
if (!
|
|
20883
|
-
const u =
|
|
20883
|
+
if (!Zl(d, n == null ? void 0 : n.sex)) continue;
|
|
20884
|
+
const u = Ql(d.key, a);
|
|
20884
20885
|
if (!u) {
|
|
20885
20886
|
r += 1;
|
|
20886
20887
|
continue;
|
|
20887
20888
|
}
|
|
20888
|
-
s.push(
|
|
20889
|
+
s.push(Yl(d, u, t));
|
|
20889
20890
|
}
|
|
20890
20891
|
s.length !== 0 && o.push({
|
|
20891
20892
|
id: l.key,
|
|
@@ -20896,31 +20897,31 @@ function td(e, a, t, n) {
|
|
|
20896
20897
|
return { sections: o, unansweredCount: r };
|
|
20897
20898
|
}
|
|
20898
20899
|
export {
|
|
20899
|
-
|
|
20900
|
-
|
|
20901
|
-
|
|
20900
|
+
Xs as A,
|
|
20901
|
+
Hn as L,
|
|
20902
|
+
Ul as P,
|
|
20902
20903
|
$e as S,
|
|
20903
|
-
|
|
20904
|
-
|
|
20904
|
+
Js as T,
|
|
20905
|
+
ad as a,
|
|
20905
20906
|
De as b,
|
|
20906
20907
|
et as c,
|
|
20907
20908
|
We as d,
|
|
20908
20909
|
Qt as e,
|
|
20909
|
-
|
|
20910
|
-
|
|
20910
|
+
td as f,
|
|
20911
|
+
Kn as g,
|
|
20911
20912
|
xe as h,
|
|
20912
20913
|
ri as i,
|
|
20913
20914
|
st as j,
|
|
20914
20915
|
Ra as k,
|
|
20915
20916
|
ge as l,
|
|
20916
20917
|
Oi as m,
|
|
20917
|
-
|
|
20918
|
+
Bn as n,
|
|
20918
20919
|
ii as o,
|
|
20919
20920
|
Ya as p,
|
|
20920
20921
|
ra as q,
|
|
20921
|
-
|
|
20922
|
-
|
|
20922
|
+
id as r,
|
|
20923
|
+
ed as s,
|
|
20923
20924
|
Vi as t,
|
|
20924
|
-
|
|
20925
|
+
nd as u
|
|
20925
20926
|
};
|
|
20926
|
-
//# sourceMappingURL=anamnesis-summary-rows-
|
|
20927
|
+
//# sourceMappingURL=anamnesis-summary-rows-Dtw5Hpg4.js.map
|