@alfadocs/ui-kit 1.137.0 → 1.139.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{address-fields-DvSWdeR0.js → address-fields-Bh9JZJHZ.js} +4 -4
- package/dist/_chunks/{ai-prompt-input-CVNeusoW.js → ai-prompt-input-B2QFwuJ1.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-Dr2V1Rtf.js → anamnesis-summary-rows-BgfBnjp0.js} +4 -4
- package/dist/_chunks/{appointment-card-BT1cMZIX.js → appointment-card-CaxFXtSn.js} +196 -184
- package/dist/_chunks/{appointment-timeline-Dy4YQJ17.js → appointment-timeline-BEwgbYyG.js} +113 -110
- package/dist/_chunks/{appointment-tray-B3gSHL1j.js → appointment-tray-DPpeR9JT.js} +8 -8
- package/dist/_chunks/{audio-recorder-BOF5YYoC.js → audio-recorder-6dUq8I38.js} +2 -2
- package/dist/_chunks/autocomplete-HZNW7_Pa.js +642 -0
- package/dist/_chunks/{balance-badge-cell-BSB02Bwo.js → balance-badge-cell-CRrIv2hy.js} +4 -4
- package/dist/_chunks/{bill-line-table-By-YL2ms.js → bill-line-table-DCqxhode.js} +3 -3
- package/dist/_chunks/{bishop-score-DWGESRP9.js → bishop-score-M7Fi-ykx.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-D0n_bVsT.js → calendar-appointment-editor-dialog-GdnaPIOV.js} +537 -536
- package/dist/_chunks/{calendar-editor-discard-host-1UfmMOEb.js → calendar-editor-discard-host-BcMEgVEq.js} +3 -3
- package/dist/_chunks/{calendar-waiting-list-panel-Ckd6tSeu.js → calendar-waiting-list-panel-CkZBAv_E.js} +4 -4
- package/dist/_chunks/{calendar-workspace.model-DrOoxY1b.js → calendar-workspace.model-B8yPwuBv.js} +2 -2
- package/dist/_chunks/{calendar.sheets-Datc0-IT.js → calendar.sheets-B0jP2Yt0.js} +113 -112
- package/dist/_chunks/{calls-panel-BIfatK90.js → calls-panel-CtxJAzkJ.js} +2 -2
- package/dist/_chunks/{city-input-DXipzTfZ.js → city-input-DARVDJhH.js} +2 -2
- package/dist/_chunks/{combobox-BBCVQS-S.js → combobox-BYl6mY4c.js} +12 -13
- package/dist/_chunks/{communications-panel-SQ-55e3V.js → communications-panel-DBWM9II9.js} +2 -2
- package/dist/_chunks/{country-select-C2GdvRtS.js → country-select-BPISkYVU.js} +3 -3
- package/dist/_chunks/{data-grid-CxKz8flO.js → data-grid-bQ6iFm10.js} +15 -7
- package/dist/_chunks/{data-table-_tgj0C_T.js → data-table-CnLfOwxg.js} +2 -2
- package/dist/_chunks/{default-tabs-oDWQzbN7.js → default-tabs-Dm_vk6hd.js} +3 -3
- package/dist/_chunks/{document-preview-CirR3C_m.js → document-preview-FTCHXYhk.js} +2 -2
- package/dist/_chunks/{face-scheme-D_Y1StPl.js → face-scheme-Bxt7ZnJn.js} +2 -2
- package/dist/_chunks/{file-manager-CEi4z2i0.js → file-manager-Bsccb8Jj.js} +2 -2
- package/dist/_chunks/{forgot-password-form-YvI9vX-G.js → forgot-password-form-B4ufmBFn.js} +5 -4
- package/dist/_chunks/{gestational-age-calculator-CHbpC4vL.js → gestational-age-calculator-DXSPWG8u.js} +2 -2
- package/dist/_chunks/{heatmap-_546qI2V.js → heatmap-CFPaEKD_.js} +2 -2
- package/dist/_chunks/{invoice-upload-list-CQI9MUl6.js → invoice-upload-list-Dz3CXHPP.js} +3 -3
- package/dist/_chunks/{kit-extensions-BNBf4m8O.js → kit-extensions-BB_ksnVl.js} +3 -3
- package/dist/_chunks/{link-cell-renderer-Xx5T8u5Q.js → link-cell-renderer-CSA0KKPe.js} +5 -5
- package/dist/_chunks/{login-dev-card-Dz3ezx1o.js → login-dev-card-oRh9h7N2.js} +18 -17
- package/dist/_chunks/medication-I6QvOq6k.js +21 -0
- package/dist/_chunks/medication-line-CHdlh-F7.js +222 -0
- package/dist/_chunks/medication-search-DoEDakoM.js +380 -0
- package/dist/_chunks/{multi-select-Df3R8lv_.js → multi-select-DeMiHm8T.js} +4 -5
- package/dist/_chunks/{muscle-scheme-D_rSyGDj.js → muscle-scheme-BB2eBfww.js} +2 -2
- package/dist/_chunks/normalize-diacritics-DhJjQ3Bp.js +7 -0
- package/dist/_chunks/{notes-panel-DsEKNtsw.js → notes-panel-CnmQqhwq.js} +2 -2
- package/dist/_chunks/{optical-prescription-DaSbsh4p.js → optical-prescription-C4jpDFOE.js} +2 -2
- package/dist/_chunks/{option-row-Dc7BrbK8.js → option-row-DpCnuUqo.js} +25 -12
- package/dist/_chunks/{patient-account-settings-COybehKx.js → patient-account-settings-DfEPHmCh.js} +3 -3
- package/dist/_chunks/{patient-check-in-resume-DZnyYDKH.js → patient-check-in-resume-TWs8CPQr.js} +5 -5
- package/dist/_chunks/{patient-details-Dv7EiTCo.js → patient-details-DQTxSWY4.js} +2 -2
- package/dist/_chunks/{patient-field-row-DuHWGlLz.js → patient-field-row-CXuWQeQJ.js} +6 -6
- package/dist/_chunks/patient-picker-CQNsqYn2.js +163 -0
- package/dist/_chunks/{patient-search-DBvLFArV.js → patient-search-aTFd7p9s.js} +2 -2
- package/dist/_chunks/{patient-summary-card-D-cDzOim.js → patient-summary-card-j5u7c5Us.js} +2 -2
- package/dist/_chunks/{phone-input-BL8Sj6OG.js → phone-input-DRKcJUi4.js} +2 -2
- package/dist/_chunks/{portal-details-DdzvroYP.js → portal-details-VfeOI4PB.js} +3 -3
- package/dist/_chunks/{portal-documents-CNmoYWFc.js → portal-documents-hGHlwmbv.js} +3 -3
- package/dist/_chunks/{portal-parts-Br8wuala.js → portal-parts-C99CreYO.js} +2 -2
- package/dist/_chunks/{pregnancy-dating-lJbzai73.js → pregnancy-dating-C-3NLI6K.js} +2 -2
- package/dist/_chunks/prescription-history-748qDVwZ.js +1544 -0
- package/dist/_chunks/print-sheet-CSeqkM3_.js +318 -0
- package/dist/_chunks/{province-select-CTM8A9SM.js → province-select-D-iY9bQG.js} +3 -3
- package/dist/_chunks/{registration-form-CuLiTA52.js → registration-form-Cs9o6e5q.js} +7 -6
- package/dist/_chunks/{reserved.agent-CabZHFJC.js → reserved.agent-L2ElYPuj.js} +7 -7
- package/dist/_chunks/{reset-password-form-D_TePSM1.js → reset-password-form-DwtSNhnA.js} +18 -17
- package/dist/_chunks/{rich-text-editor-C48omVjq.js → rich-text-editor-DFsH5RAj.js} +2 -2
- package/dist/_chunks/save-Dn8uje3f.js +22 -0
- package/dist/_chunks/{search-bar-CQ9_V3EJ.js → search-bar-k1mS5yZl.js} +2 -2
- package/dist/_chunks/{select-CIXKyUMw.js → select-Bm8s3q-X.js} +16 -17
- package/dist/_chunks/{send-registration-link-form-BjkXr0TD.js → send-registration-link-form-C1vw6H1M.js} +6 -5
- package/dist/_chunks/{signature-request-vJDSHZld.js → signature-request-D3sLLOM6.js} +2 -2
- package/dist/_chunks/sync-tray-BhnkgXKK.js +567 -0
- package/dist/_chunks/{tabs-Czkmw5ou.js → tabs-BXr5XeGq.js} +2 -2
- package/dist/_chunks/{task-editor-wKbFbGqW.js → task-editor-DDVDPKJf.js} +26 -25
- package/dist/_chunks/{tasks-panel-DbtJS4QI.js → tasks-panel-BHXaPNOZ.js} +2 -2
- package/dist/_chunks/{toolbar-DjG-cpD_.js → toolbar-Dz_hAUIZ.js} +2 -2
- package/dist/_chunks/{unit-converter-CUAUTu2B.js → unit-converter-CBy7S4Tl.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-jGkJalX8.js → use-appointment-details-read-CBSpX4DI.js} +2 -2
- package/dist/_chunks/use-error-summary-CecJZo6w.js +32 -0
- package/dist/_chunks/use-registration-submit-CVukOAQk.js +84 -0
- package/dist/_chunks/{variables-menu-DQl8H4Gh.js → variables-menu-C4NcClKi.js} +2 -2
- package/dist/_chunks/{voice-control-panel-Cp4vs1iy.js → voice-control-panel-Dc_NFH2R.js} +2 -2
- package/dist/agent-catalog.json +456 -2
- package/dist/agent-i18n/en.json +53 -0
- package/dist/appointment-editor-panel/index.js +2 -2
- package/dist/booking-tools-data/index.js +1 -1
- package/dist/browser-support.js +1 -1
- package/dist/calendar-action-buttons/index.js +1 -1
- package/dist/components/_shared/medication.d.ts +28 -0
- package/dist/components/_shared/normalize-diacritics.d.ts +5 -0
- package/dist/components/_shared/patient-picker.d.ts +7 -0
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/appointment-card/appointment-card.d.ts +5 -2
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-timeline/appointment-timeline.d.ts +6 -0
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/autocomplete/autocomplete.d.ts +50 -0
- package/dist/components/autocomplete/index.d.ts +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/bill-line-table/index.js +1 -1
- package/dist/components/bill-table/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calls-panel/index.js +1 -1
- package/dist/components/city-input/index.js +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/communications-panel/index.js +1 -1
- package/dist/components/country-select/index.js +1 -1
- package/dist/components/data-grid/index.js +2 -2
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/index.d.ts +5 -0
- package/dist/components/invoice-upload-list/index.js +1 -1
- package/dist/components/medication-line/index.d.ts +6 -0
- package/dist/components/medication-line/index.js +7 -0
- package/dist/components/medication-line/medication-line.agent.d.ts +14 -0
- package/dist/components/medication-line/medication-line.d.ts +40 -0
- package/dist/components/medication-search/index.d.ts +6 -0
- package/dist/components/medication-search/index.js +10 -0
- package/dist/components/medication-search/medication-search.agent.d.ts +15 -0
- package/dist/components/medication-search/medication-search.d.ts +49 -0
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/muscle-scheme/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/optical-prescription/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/phone-input/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/print-sheet/index.d.ts +5 -0
- package/dist/components/print-sheet/index.js +6 -0
- package/dist/components/print-sheet/print-isolation.d.ts +17 -0
- package/dist/components/print-sheet/print-sheet.agent.d.ts +19 -0
- package/dist/components/print-sheet/print-sheet.d.ts +54 -0
- package/dist/components/province-select/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/skeleton-scheme/index.js +1 -1
- package/dist/components/sync-tray/index.d.ts +4 -0
- package/dist/components/sync-tray/index.js +7 -0
- package/dist/components/sync-tray/sync-tray.agent.d.ts +15 -0
- package/dist/components/sync-tray/sync-tray.d.ts +77 -0
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/variables-menu/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/find-free-slots-panel/index.js +1 -1
- package/dist/host-compat.css +13 -1
- package/dist/host-legacy.css +16 -0
- package/dist/i18n/locales/ar.d.ts +134 -1
- package/dist/i18n/locales/ar.js +134 -1
- package/dist/i18n/locales/de.d.ts +134 -1
- package/dist/i18n/locales/de.js +134 -1
- package/dist/i18n/locales/el.d.ts +134 -1
- package/dist/i18n/locales/el.js +134 -1
- package/dist/i18n/locales/en.d.ts +134 -1
- package/dist/i18n/locales/en.js +134 -1
- package/dist/i18n/locales/es.d.ts +134 -1
- package/dist/i18n/locales/es.js +134 -1
- package/dist/i18n/locales/fr.d.ts +134 -1
- package/dist/i18n/locales/fr.js +134 -1
- package/dist/i18n/locales/hi.d.ts +134 -1
- package/dist/i18n/locales/hi.js +134 -1
- package/dist/i18n/locales/it.d.ts +134 -1
- package/dist/i18n/locales/it.js +134 -1
- package/dist/i18n/locales/ja.d.ts +134 -1
- package/dist/i18n/locales/ja.js +134 -1
- package/dist/i18n/locales/nl.d.ts +134 -1
- package/dist/i18n/locales/nl.js +134 -1
- package/dist/i18n/locales/pl.d.ts +134 -1
- package/dist/i18n/locales/pl.js +134 -1
- package/dist/i18n/locales/pt.d.ts +134 -1
- package/dist/i18n/locales/pt.js +134 -1
- package/dist/i18n/locales/ro.d.ts +134 -1
- package/dist/i18n/locales/ro.js +134 -1
- package/dist/i18n/locales/ru.d.ts +134 -1
- package/dist/i18n/locales/ru.js +134 -1
- package/dist/i18n/locales/sq.d.ts +134 -1
- package/dist/i18n/locales/sq.js +134 -1
- package/dist/i18n/locales/sv.d.ts +134 -1
- package/dist/i18n/locales/sv.js +134 -1
- package/dist/i18n/locales/tr.d.ts +134 -1
- package/dist/i18n/locales/tr.js +134 -1
- package/dist/i18n/locales/zh.d.ts +134 -1
- package/dist/i18n/locales/zh.js +134 -1
- package/dist/index.js +1004 -976
- package/dist/locales/ar.json +134 -1
- package/dist/locales/de.json +134 -1
- package/dist/locales/el.json +134 -1
- package/dist/locales/en.json +134 -1
- package/dist/locales/es.json +134 -1
- package/dist/locales/fr.json +134 -1
- package/dist/locales/hi.json +134 -1
- package/dist/locales/it.json +134 -1
- package/dist/locales/ja.json +134 -1
- package/dist/locales/nl.json +134 -1
- package/dist/locales/pl.json +134 -1
- package/dist/locales/pt.json +134 -1
- package/dist/locales/ro.json +134 -1
- package/dist/locales/ru.json +134 -1
- package/dist/locales/sq.json +134 -1
- package/dist/locales/sv.json +134 -1
- package/dist/locales/tr.json +134 -1
- package/dist/locales/zh.json +134 -1
- package/dist/online-bookings-panel/index.js +2 -2
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +4 -4
- package/dist/patterns/forgot-password-form/index.js +1 -1
- package/dist/patterns/login-form/index.js +1 -1
- package/dist/patterns/patient-account-settings/index.js +1 -1
- package/dist/patterns/patient-check-in/index.js +1 -1
- package/dist/patterns/patient-portal/index.js +2 -2
- package/dist/patterns/prescription/index.d.ts +11 -0
- package/dist/patterns/prescription/index.js +13 -0
- package/dist/patterns/prescription/prescription-composer-errors.d.ts +6 -0
- package/dist/patterns/prescription/prescription-composer-item.d.ts +34 -0
- package/dist/patterns/prescription/prescription-composer.d.ts +89 -0
- package/dist/patterns/prescription/prescription-history.d.ts +48 -0
- package/dist/patterns/prescription/prescription-patient-block.d.ts +13 -0
- package/dist/patterns/prescription/prescription-sheet.d.ts +52 -0
- package/dist/patterns/prescription/prescription-status-badge.d.ts +5 -0
- package/dist/patterns/prescription/prescription-types.d.ts +97 -0
- package/dist/patterns/prescription/prescription-validation.d.ts +40 -0
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/reset-password-form/index.js +1 -1
- package/dist/patterns/send-registration-link-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/dist/waiting-list-panel/index.js +2 -2
- package/package.json +21 -1
- package/dist/_chunks/autocomplete-D10ydpgi.js +0 -562
- package/dist/_chunks/group-options-BvKhQ3xb.js +0 -16
- package/dist/_chunks/normalize-diacritics-BNGbFNlJ.js +0 -7
- package/dist/_chunks/patient-picker-BZJuOgMw.js +0 -173
- package/dist/_chunks/use-registration-submit-CLGHxwoT.js +0 -112
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { A as
|
|
6
|
-
import { B as
|
|
7
|
-
import { T as
|
|
8
|
-
import { T as
|
|
9
|
-
import { T as
|
|
10
|
-
import { i as
|
|
11
|
-
import { V as
|
|
12
|
-
import { p as
|
|
13
|
-
import { a as
|
|
14
|
-
import { i as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { U as
|
|
20
|
-
import { B as
|
|
21
|
-
import { S as
|
|
22
|
-
import { c as
|
|
23
|
-
import { A as
|
|
24
|
-
import { G as
|
|
2
|
+
import { forwardRef as wa, useMemo as sa, useEffect as ya } from "react";
|
|
3
|
+
import { c as Ca } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as za } from "react-i18next";
|
|
5
|
+
import { A as ra } from "./avatar-Dp5apm1d.js";
|
|
6
|
+
import { B as p } from "./badge-BUk4RjTS.js";
|
|
7
|
+
import { T as Ta } from "./tag-BNlcEJfE.js";
|
|
8
|
+
import { T as Sa } from "./timestamp-DPLDWdxA.js";
|
|
9
|
+
import { T as na } from "./transaction-chip-CkYd-3ky.js";
|
|
10
|
+
import { i as Ma } from "./is-development-CLUAnsU7.js";
|
|
11
|
+
import { V as oa } from "./visually-hidden-BHxEUGyT.js";
|
|
12
|
+
import { p as Ra } from "./privacy-mask-text-B8YfzB7L.js";
|
|
13
|
+
import { a as Aa } from "./workflow-status-CO0mxXs2.js";
|
|
14
|
+
import { i as Da } from "./is-safe-url-CEy9CEml.js";
|
|
15
|
+
import { V as Va } from "./video-BheNGvsu.js";
|
|
16
|
+
import { M as _a } from "./map-pin-BaY37-Km.js";
|
|
17
|
+
import { E as Ia } from "./eye-off-C_4xkbRP.js";
|
|
18
|
+
import { b as La, a as Pa, c as Ea } from "./entity-card-p-LANpYt.js";
|
|
19
|
+
import { U as Oa } from "./user-x-BJZg4kaP.js";
|
|
20
|
+
import { B as Ua } from "./building-2-D33bLCWL.js";
|
|
21
|
+
import { S as ta } from "./star-Bf9L2Uot.js";
|
|
22
|
+
import { c as la } from "./createLucideIcon-DhHxpK9K.js";
|
|
23
|
+
import { A as Fa } from "./armchair-BaLDW6Hz.js";
|
|
24
|
+
import { G as $a } from "./globe-sHBW1JN5.js";
|
|
25
25
|
import { R as ja } from "./repeat-CvQa5rZt.js";
|
|
26
|
-
import { F as
|
|
27
|
-
import { C as
|
|
26
|
+
import { F as Ba } from "./file-pen-line-k4uMBM3h.js";
|
|
27
|
+
import { C as Wa } from "./chevron-right-I9AeSxH2.js";
|
|
28
28
|
/**
|
|
29
29
|
* @license lucide-react v1.22.0 - ISC
|
|
30
30
|
*
|
|
@@ -42,14 +42,14 @@ const qa = [
|
|
|
42
42
|
],
|
|
43
43
|
["path", { d: "M9 14h6", key: "159ibu" }],
|
|
44
44
|
["path", { d: "M12 17v-6", key: "1y8rbf" }]
|
|
45
|
-
],
|
|
45
|
+
], Ga = la("clipboard-plus", qa);
|
|
46
46
|
/**
|
|
47
47
|
* @license lucide-react v1.22.0 - ISC
|
|
48
48
|
*
|
|
49
49
|
* This source code is licensed under the ISC license.
|
|
50
50
|
* See the LICENSE file in the root directory of this source tree.
|
|
51
51
|
*/
|
|
52
|
-
const
|
|
52
|
+
const Ha = [
|
|
53
53
|
[
|
|
54
54
|
"path",
|
|
55
55
|
{
|
|
@@ -60,7 +60,7 @@ const Ga = [
|
|
|
60
60
|
["path", { d: "M7 11h10", key: "1twpyw" }],
|
|
61
61
|
["path", { d: "M7 15h6", key: "d9of3u" }],
|
|
62
62
|
["path", { d: "M7 7h8", key: "af5zfr" }]
|
|
63
|
-
],
|
|
63
|
+
], Ka = la("message-square-text", Ha), Ya = {
|
|
64
64
|
"var(--color-violet-500)": "ds:bg-[var(--color-violet-500)]",
|
|
65
65
|
"var(--color-purple-500)": "ds:bg-[var(--color-purple-500)]",
|
|
66
66
|
"var(--color-magenta-500)": "ds:bg-[var(--color-magenta-500)]",
|
|
@@ -73,23 +73,23 @@ const Ga = [
|
|
|
73
73
|
"var(--color-fuchsia-500)": "ds:bg-[var(--color-fuchsia-500)]",
|
|
74
74
|
"var(--color-grey-700)": "ds:bg-[var(--color-grey-700)]"
|
|
75
75
|
};
|
|
76
|
-
function Ya(a) {
|
|
77
|
-
return Ka[_a(a)] ?? "ds:bg-[var(--color-grey-700)]";
|
|
78
|
-
}
|
|
79
76
|
function Xa(a) {
|
|
77
|
+
return Ya[Ea(a)] ?? "ds:bg-[var(--color-grey-700)]";
|
|
78
|
+
}
|
|
79
|
+
function Ja(a) {
|
|
80
80
|
if (!a) return;
|
|
81
81
|
const t = new Date(a);
|
|
82
82
|
if (Number.isNaN(t.getTime())) return;
|
|
83
|
-
const
|
|
84
|
-
let
|
|
85
|
-
const
|
|
86
|
-
return (
|
|
83
|
+
const f = /* @__PURE__ */ new Date();
|
|
84
|
+
let d = f.getFullYear() - t.getFullYear();
|
|
85
|
+
const i = f.getMonth() - t.getMonth();
|
|
86
|
+
return (i < 0 || i === 0 && f.getDate() < t.getDate()) && d--, d < 0 || d > 130 ? void 0 : d;
|
|
87
87
|
}
|
|
88
|
-
const
|
|
88
|
+
const da = {
|
|
89
89
|
hour: "numeric",
|
|
90
90
|
minute: "2-digit"
|
|
91
91
|
};
|
|
92
|
-
function
|
|
92
|
+
function Qa(a) {
|
|
93
93
|
if (a)
|
|
94
94
|
try {
|
|
95
95
|
return new Intl.DateTimeFormat("en", { timeZone: a }).resolvedOptions().timeZone;
|
|
@@ -97,7 +97,7 @@ function Ja(a) {
|
|
|
97
97
|
return;
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
const
|
|
100
|
+
const Za = Ca(
|
|
101
101
|
[
|
|
102
102
|
"ds:relative ds:flex ds:items-start ds:gap-[var(--spacing-sm)]",
|
|
103
103
|
"ds:rounded-[var(--radius-md)]",
|
|
@@ -161,13 +161,13 @@ const Qa = ka(
|
|
|
161
161
|
next: !1
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
|
-
),
|
|
164
|
+
), ae = [
|
|
165
165
|
"ds:min-w-0",
|
|
166
166
|
"ds:[&>div]:h-auto ds:[&>div]:min-h-8 ds:[&>div]:py-[var(--spacing-2xs)]",
|
|
167
167
|
"ds:[&_[data-workflow-status-value]]:overflow-visible",
|
|
168
168
|
"ds:[&_[data-workflow-status-value]]:whitespace-normal",
|
|
169
169
|
"ds:[&_[data-workflow-status-value]]:break-words"
|
|
170
|
-
].join(" "),
|
|
170
|
+
].join(" "), ia = [
|
|
171
171
|
// Interactive elements need a box to remain keyboard-focusable in browsers.
|
|
172
172
|
"ds:inline-flex ds:min-w-0",
|
|
173
173
|
"ds:focus-visible:outline-none",
|
|
@@ -178,148 +178,148 @@ const Qa = ka(
|
|
|
178
178
|
"ds:focus-visible:after:outline-[color:var(--ring)]",
|
|
179
179
|
"ds:focus-visible:after:outline-offset-[length:var(--focus-ring-offset)]",
|
|
180
180
|
"ds:forced-colors:focus-visible:after:outline-[CanvasText]"
|
|
181
|
-
].join(" "),
|
|
182
|
-
inPractice:
|
|
183
|
-
telehealth:
|
|
184
|
-
},
|
|
181
|
+
].join(" "), ee = {
|
|
182
|
+
inPractice: _a,
|
|
183
|
+
telehealth: Va
|
|
184
|
+
}, se = wa(
|
|
185
185
|
({
|
|
186
186
|
item: a,
|
|
187
187
|
size: t = "sm",
|
|
188
|
-
surface:
|
|
189
|
-
locale:
|
|
190
|
-
timeZone:
|
|
191
|
-
currency:
|
|
192
|
-
showPatient:
|
|
193
|
-
onActivate:
|
|
194
|
-
selected:
|
|
195
|
-
hideDefaultStatus:
|
|
196
|
-
privacy:
|
|
197
|
-
privacyTitle:
|
|
198
|
-
wrapText:
|
|
199
|
-
className:
|
|
200
|
-
...
|
|
201
|
-
},
|
|
202
|
-
var
|
|
203
|
-
const { t: s } =
|
|
204
|
-
() =>
|
|
205
|
-
[
|
|
188
|
+
surface: f = "flat",
|
|
189
|
+
locale: d,
|
|
190
|
+
timeZone: i,
|
|
191
|
+
currency: z = "EUR",
|
|
192
|
+
showPatient: l = !0,
|
|
193
|
+
onActivate: m,
|
|
194
|
+
selected: T = !1,
|
|
195
|
+
hideDefaultStatus: ca = !1,
|
|
196
|
+
privacy: c = !1,
|
|
197
|
+
privacyTitle: pa,
|
|
198
|
+
wrapText: g = !1,
|
|
199
|
+
className: S,
|
|
200
|
+
...ma
|
|
201
|
+
}, ua) => {
|
|
202
|
+
var O, U, F, $, j, B, W, q, G, H, K, Y, X, J, Q, Z, aa, ea;
|
|
203
|
+
const { t: s } = za("ui"), h = sa(() => Qa(i), [i]), fa = sa(
|
|
204
|
+
() => h ? { ...da, timeZone: h } : da,
|
|
205
|
+
[h]
|
|
206
206
|
);
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
`AppointmentCard: "${
|
|
207
|
+
ya(() => {
|
|
208
|
+
i && !h && Ma() && console.warn(
|
|
209
|
+
`AppointmentCard: "${i}" is not a time zone this browser knows, so the start time shows in the browser's own zone.`
|
|
210
210
|
);
|
|
211
|
-
}, [
|
|
212
|
-
const
|
|
211
|
+
}, [i, h]);
|
|
212
|
+
const v = !!m, ga = !!a.url && Da(a.url), o = a.state ?? void 0, ha = o !== void 0 && !(ca && o === "confirmed"), N = ((O = a.patient) == null ? void 0 : O.name) ?? s("appointmentCard.noPatient"), u = (U = a.operator) == null ? void 0 : U.name, b = s(o ? `appointmentCard.state.${o}` : "workflowStatus.noStatus"), M = Pa(o ?? ""), va = M.Icon, ba = ((F = a.flags) == null ? void 0 : F.noPatientAssigned) || !a.patient, R = c && l && a.patient !== void 0, A = c ? void 0 : Ja(($ = a.patient) == null ? void 0 : $.dobIso), D = ((j = a.practiceName) == null ? void 0 : j.trim()) || void 0, k = t === "md" ? "md" : "sm", xa = ee[a.type], V = l ? N : u ?? s("appointmentCard.appointment"), _ = o ? R ? s("appointmentCard.itemLabelGeneric", {
|
|
213
213
|
title: s("appointmentPeek.hiddenName"),
|
|
214
|
-
state:
|
|
215
|
-
}) :
|
|
216
|
-
patient:
|
|
217
|
-
state:
|
|
218
|
-
}) : s("appointmentCard.itemLabelGeneric", { title:
|
|
214
|
+
state: b
|
|
215
|
+
}) : l ? s("appointmentCard.itemLabel", {
|
|
216
|
+
patient: N,
|
|
217
|
+
state: b
|
|
218
|
+
}) : s("appointmentCard.itemLabelGeneric", { title: V, state: b }) : void 0, w = /* @__PURE__ */ r(
|
|
219
219
|
"span",
|
|
220
220
|
{
|
|
221
|
-
className: (
|
|
221
|
+
className: (g ? "ds:min-w-0 ds:break-words" : "ds:min-w-0 ds:truncate") + " type-title-item ds:text-[color:var(--foreground)]",
|
|
222
222
|
children: [
|
|
223
|
-
|
|
224
|
-
/* @__PURE__ */ e(
|
|
225
|
-
/* @__PURE__ */ e(
|
|
226
|
-
/* @__PURE__ */ e("span", { "aria-hidden": "true", children:
|
|
227
|
-
] }) :
|
|
228
|
-
|
|
223
|
+
R ? /* @__PURE__ */ r("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
224
|
+
/* @__PURE__ */ e(Ia, { "aria-hidden": "true", className: "ds:size-4 ds:shrink-0" }),
|
|
225
|
+
/* @__PURE__ */ e(oa, { children: s("appointmentPeek.hiddenName") }),
|
|
226
|
+
/* @__PURE__ */ e("span", { "aria-hidden": "true", children: Ra(pa) })
|
|
227
|
+
] }) : V,
|
|
228
|
+
l && A !== void 0 ? /* @__PURE__ */ r("span", { className: "ds:ms-[var(--spacing-2xs)] ds:font-normal ds:text-[color:var(--muted-foreground)]", children: [
|
|
229
229
|
"· ",
|
|
230
|
-
|
|
230
|
+
A
|
|
231
231
|
] }) : null
|
|
232
232
|
]
|
|
233
233
|
}
|
|
234
234
|
);
|
|
235
|
-
let
|
|
236
|
-
|
|
235
|
+
let x;
|
|
236
|
+
v && ga ? x = /* @__PURE__ */ e(
|
|
237
237
|
"a",
|
|
238
238
|
{
|
|
239
239
|
href: a.url,
|
|
240
|
-
"aria-label":
|
|
240
|
+
"aria-label": _,
|
|
241
241
|
"data-action": "open-appointment",
|
|
242
|
-
className:
|
|
242
|
+
className: ia,
|
|
243
243
|
onClick: (n) => {
|
|
244
|
-
n.defaultPrevented || n.metaKey || n.ctrlKey || n.shiftKey ||
|
|
244
|
+
n.defaultPrevented || n.metaKey || n.ctrlKey || n.shiftKey || m == null || m(a);
|
|
245
245
|
},
|
|
246
246
|
children: w
|
|
247
247
|
}
|
|
248
|
-
) :
|
|
248
|
+
) : v ? x = /* @__PURE__ */ e(
|
|
249
249
|
"button",
|
|
250
250
|
{
|
|
251
251
|
type: "button",
|
|
252
|
-
"aria-label":
|
|
252
|
+
"aria-label": _,
|
|
253
253
|
"data-action": "open-appointment",
|
|
254
|
-
className:
|
|
255
|
-
onClick: () =>
|
|
254
|
+
className: ia + " ds:bg-transparent ds:border-0 ds:p-0 ds:text-start",
|
|
255
|
+
onClick: () => m == null ? void 0 : m(a),
|
|
256
256
|
children: w
|
|
257
257
|
}
|
|
258
|
-
) :
|
|
259
|
-
const
|
|
260
|
-
const
|
|
258
|
+
) : x = w;
|
|
259
|
+
const I = (a.treatments ?? []).map((n, Na) => {
|
|
260
|
+
const ka = n.elements && n.elements.length > 0 ? s("appointmentCard.treatmentWithElements", {
|
|
261
261
|
care: n.careName,
|
|
262
262
|
elements: n.elements.join(", ")
|
|
263
263
|
}) : n.careName;
|
|
264
264
|
return /* @__PURE__ */ e(
|
|
265
|
-
|
|
265
|
+
Ta,
|
|
266
266
|
{
|
|
267
|
-
label:
|
|
267
|
+
label: ka,
|
|
268
268
|
variant: "neutral",
|
|
269
269
|
fill: "outline",
|
|
270
270
|
size: "sm",
|
|
271
271
|
maxInlineSize: "12rem"
|
|
272
272
|
},
|
|
273
|
-
`${n.careName}-${
|
|
273
|
+
`${n.careName}-${Na}`
|
|
274
274
|
);
|
|
275
|
-
}),
|
|
275
|
+
}), y = (B = a.bookingReason) == null ? void 0 : B.advanceAmountCents, L = !c && typeof y == "number" && y > 0, C = (W = a.money) == null ? void 0 : W.unpaidAmountCents, P = !c && typeof C == "number" && C > 0, E = !c && ((q = a.flags) == null ? void 0 : q.highlightedAnamnesis);
|
|
276
276
|
return /* @__PURE__ */ r(
|
|
277
277
|
"div",
|
|
278
278
|
{
|
|
279
|
-
ref:
|
|
279
|
+
ref: ua,
|
|
280
280
|
role: "listitem",
|
|
281
281
|
"data-component": "appointment-card",
|
|
282
282
|
"data-component-id": a.id,
|
|
283
|
-
"data-state":
|
|
283
|
+
"data-state": o,
|
|
284
284
|
"data-type": a.type,
|
|
285
|
-
"data-privacy":
|
|
286
|
-
"aria-current":
|
|
287
|
-
className:
|
|
285
|
+
"data-privacy": c ? "masked" : void 0,
|
|
286
|
+
"aria-current": T ? "true" : void 0,
|
|
287
|
+
className: Za({
|
|
288
288
|
size: t,
|
|
289
|
-
interactive:
|
|
290
|
-
surface:
|
|
291
|
-
selected:
|
|
289
|
+
interactive: v,
|
|
290
|
+
surface: f,
|
|
291
|
+
selected: T,
|
|
292
292
|
dimmed: a.dimmed,
|
|
293
293
|
next: a.next,
|
|
294
|
-
className:
|
|
294
|
+
className: g ? `ds:@container/apptcard ${S ?? ""}`.trim() : S
|
|
295
295
|
}),
|
|
296
|
-
...
|
|
296
|
+
...ma,
|
|
297
297
|
children: [
|
|
298
298
|
/* @__PURE__ */ r("span", { className: "ds:flex ds:min-w-20 ds:shrink-0 ds:flex-col ds:items-start ds:gap-[var(--spacing-2xs)]", children: [
|
|
299
299
|
/* @__PURE__ */ r("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] ds:whitespace-nowrap ds:text-[color:var(--muted-foreground)]", children: [
|
|
300
|
-
/* @__PURE__ */ e(
|
|
300
|
+
/* @__PURE__ */ e(xa, { "aria-hidden": "true", className: "ds:size-3.5 ds:shrink-0" }),
|
|
301
301
|
/* @__PURE__ */ e("span", { className: "ds:sr-only", children: s(`appointmentCard.type.${a.type}`) }),
|
|
302
302
|
/* @__PURE__ */ e(
|
|
303
|
-
|
|
303
|
+
Sa,
|
|
304
304
|
{
|
|
305
305
|
value: a.startIso,
|
|
306
306
|
format: "absolute",
|
|
307
307
|
shape: "bare",
|
|
308
|
-
locale:
|
|
309
|
-
absoluteFormat:
|
|
308
|
+
locale: d,
|
|
309
|
+
absoluteFormat: fa,
|
|
310
310
|
className: "type-body-sm ds:font-medium ds:text-[color:var(--foreground)] ds:tabular-nums"
|
|
311
311
|
}
|
|
312
312
|
)
|
|
313
313
|
] }),
|
|
314
314
|
/* @__PURE__ */ e("span", { className: "type-eyebrow ds:text-[color:var(--muted-foreground)]", children: s("appointmentCard.duration", { count: a.durationMin }) })
|
|
315
315
|
] }),
|
|
316
|
-
|
|
316
|
+
u ? /* @__PURE__ */ r("span", { className: "ds:relative ds:shrink-0", children: [
|
|
317
317
|
/* @__PURE__ */ e(
|
|
318
|
-
|
|
318
|
+
ra,
|
|
319
319
|
{
|
|
320
|
-
name:
|
|
321
|
-
color:
|
|
322
|
-
size:
|
|
320
|
+
name: u,
|
|
321
|
+
color: La((G = a.operator) == null ? void 0 : G.colorId),
|
|
322
|
+
size: k,
|
|
323
323
|
"aria-hidden": "true",
|
|
324
324
|
role: "presentation",
|
|
325
325
|
"aria-label": void 0
|
|
@@ -329,7 +329,7 @@ const Qa = ka(
|
|
|
329
329
|
"span",
|
|
330
330
|
{
|
|
331
331
|
"aria-hidden": "true",
|
|
332
|
-
className: "ds:absolute ds:bottom-0 ds:end-0 ds:size-2.5 ds:rounded-[var(--radius-full)] ds:border ds:border-[color:var(--card)] " +
|
|
332
|
+
className: "ds:absolute ds:bottom-0 ds:end-0 ds:size-2.5 ds:rounded-[var(--radius-full)] ds:border ds:border-[color:var(--card)] " + Xa((H = a.operator) == null ? void 0 : H.colorId)
|
|
333
333
|
}
|
|
334
334
|
)
|
|
335
335
|
] }) : null,
|
|
@@ -337,32 +337,38 @@ const Qa = ka(
|
|
|
337
337
|
/* @__PURE__ */ r(
|
|
338
338
|
"div",
|
|
339
339
|
{
|
|
340
|
-
className: "ds:flex ds:items-start ds:gap-[var(--spacing-sm)]" + (
|
|
340
|
+
className: "ds:flex ds:items-start ds:gap-[var(--spacing-sm)]" + (g ? " ds:flex-wrap" : ""),
|
|
341
341
|
children: [
|
|
342
|
-
/* @__PURE__ */ r(
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
342
|
+
/* @__PURE__ */ r(
|
|
343
|
+
"div",
|
|
344
|
+
{
|
|
345
|
+
className: "ds:flex-1 ds:min-w-0 ds:flex ds:items-center ds:gap-[var(--spacing-xs)]" + (g ? " ds:@max-[400px]/apptcard:basis-full" : ""),
|
|
346
|
+
children: [
|
|
347
|
+
l && !c && ((K = a.patient) != null && K.avatarUrl) ? /* @__PURE__ */ e(
|
|
348
|
+
ra,
|
|
349
|
+
{
|
|
350
|
+
name: N,
|
|
351
|
+
src: a.patient.avatarUrl,
|
|
352
|
+
size: k,
|
|
353
|
+
className: "ds:shrink-0",
|
|
354
|
+
"aria-hidden": "true",
|
|
355
|
+
role: "presentation",
|
|
356
|
+
"aria-label": void 0
|
|
357
|
+
}
|
|
358
|
+
) : null,
|
|
359
|
+
l && ba ? /* @__PURE__ */ e(
|
|
360
|
+
"span",
|
|
361
|
+
{
|
|
362
|
+
className: `ds:shrink-0 ds:inline-flex ds:items-center ds:justify-center ds:rounded-[var(--radius-full)] ds:bg-[color:var(--muted)] ds:text-[color:var(--muted-foreground)] ${k === "md" ? "ds:size-10" : "ds:size-8"}`,
|
|
363
|
+
children: /* @__PURE__ */ e(Oa, { "aria-hidden": "true", className: "ds:size-4" })
|
|
364
|
+
}
|
|
365
|
+
) : null,
|
|
366
|
+
x
|
|
367
|
+
]
|
|
368
|
+
}
|
|
369
|
+
),
|
|
364
370
|
a.next ? /* @__PURE__ */ e(
|
|
365
|
-
|
|
371
|
+
p,
|
|
366
372
|
{
|
|
367
373
|
variant: "accentSoft",
|
|
368
374
|
size: "sm",
|
|
@@ -371,45 +377,45 @@ const Qa = ka(
|
|
|
371
377
|
children: s("appointmentCard.next")
|
|
372
378
|
}
|
|
373
379
|
) : null,
|
|
374
|
-
|
|
375
|
-
|
|
380
|
+
ha && o ? /* @__PURE__ */ e(
|
|
381
|
+
Aa,
|
|
376
382
|
{
|
|
377
383
|
size: "sm",
|
|
378
|
-
value:
|
|
384
|
+
value: o,
|
|
379
385
|
option: {
|
|
380
|
-
value:
|
|
381
|
-
label:
|
|
382
|
-
icon: /* @__PURE__ */ e(
|
|
383
|
-
tone:
|
|
386
|
+
value: o,
|
|
387
|
+
label: b,
|
|
388
|
+
icon: /* @__PURE__ */ e(va, { "aria-hidden": "true" }),
|
|
389
|
+
tone: M.tone
|
|
384
390
|
},
|
|
385
|
-
className:
|
|
391
|
+
className: g ? ae : "ds:shrink-0"
|
|
386
392
|
}
|
|
387
393
|
) : null
|
|
388
394
|
]
|
|
389
395
|
}
|
|
390
396
|
),
|
|
391
397
|
a.next ? /* @__PURE__ */ e("span", { className: "ds:sr-only", children: s("appointmentCard.nextSr") }) : null,
|
|
392
|
-
|
|
398
|
+
D ? /* @__PURE__ */ r(
|
|
393
399
|
"span",
|
|
394
400
|
{
|
|
395
401
|
"data-slot": "practice",
|
|
396
402
|
className: "type-meta ds:flex ds:min-w-0 ds:items-start ds:gap-[var(--spacing-2xs)] ds:text-[color:var(--muted-foreground)]",
|
|
397
403
|
children: [
|
|
398
|
-
/* @__PURE__ */ e("span", { className: "ds:flex ds:h-[1lh] ds:shrink-0 ds:items-center", children: /* @__PURE__ */ e(
|
|
404
|
+
/* @__PURE__ */ e("span", { className: "ds:flex ds:h-[1lh] ds:shrink-0 ds:items-center", children: /* @__PURE__ */ e(Ua, { "aria-hidden": "true", className: "ds:size-3" }) }),
|
|
399
405
|
/* @__PURE__ */ e("span", { className: "ds:sr-only", children: s("appointmentCard.practice") }),
|
|
400
|
-
/* @__PURE__ */ e("span", { dir: "auto", className: "ds:min-w-0 ds:break-words", children:
|
|
406
|
+
/* @__PURE__ */ e("span", { dir: "auto", className: "ds:min-w-0 ds:break-words", children: D })
|
|
401
407
|
]
|
|
402
408
|
}
|
|
403
409
|
) : null,
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
(
|
|
410
|
+
l && u || (Y = a.bookingReason) != null && Y.specialty || a.firstVisit === "yes" || a.firstVisit === "unknown" || a.bookingNote ? /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-x-[var(--spacing-sm)] ds:gap-y-[var(--spacing-2xs)] type-eyebrow ds:text-[color:var(--muted-foreground)]", children: [
|
|
411
|
+
l && u ? /* @__PURE__ */ e("span", { children: u }) : null,
|
|
412
|
+
(X = a.bookingReason) != null && X.specialty ? /* @__PURE__ */ e("span", { children: a.bookingReason.specialty }) : null,
|
|
407
413
|
a.firstVisit === "yes" ? /* @__PURE__ */ r("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]", children: [
|
|
408
|
-
/* @__PURE__ */ e(
|
|
414
|
+
/* @__PURE__ */ e(ta, { "aria-hidden": "true", className: "ds:size-3 ds:shrink-0" }),
|
|
409
415
|
s("appointmentCard.firstVisit")
|
|
410
416
|
] }) : null,
|
|
411
417
|
a.firstVisit === "unknown" ? /* @__PURE__ */ r("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]", children: [
|
|
412
|
-
/* @__PURE__ */ e(
|
|
418
|
+
/* @__PURE__ */ e(ta, { "aria-hidden": "true", className: "ds:size-3 ds:shrink-0" }),
|
|
413
419
|
s("appointmentCard.firstVisitUnknown")
|
|
414
420
|
] }) : null,
|
|
415
421
|
a.bookingNote ? /* @__PURE__ */ r(
|
|
@@ -419,7 +425,7 @@ const Qa = ka(
|
|
|
419
425
|
title: s("appointmentCard.hasBookingNote"),
|
|
420
426
|
children: [
|
|
421
427
|
/* @__PURE__ */ e(
|
|
422
|
-
|
|
428
|
+
Ka,
|
|
423
429
|
{
|
|
424
430
|
"aria-hidden": "true",
|
|
425
431
|
className: "ds:size-3 ds:shrink-0"
|
|
@@ -430,63 +436,69 @@ const Qa = ka(
|
|
|
430
436
|
}
|
|
431
437
|
) : null
|
|
432
438
|
] }) : null,
|
|
433
|
-
(
|
|
434
|
-
|
|
435
|
-
a.carePlan || a.chair || (
|
|
439
|
+
(J = a.bookingReason) != null && J.description && !c ? /* @__PURE__ */ e("span", { className: "type-body-sm ds:text-[color:var(--foreground)] ds:truncate", children: a.bookingReason.description }) : null,
|
|
440
|
+
I.length > 0 ? /* @__PURE__ */ e("div", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: I }) : null,
|
|
441
|
+
a.carePlan || a.chair || (Q = a.flags) != null && Q.bookedOnline || E || (Z = a.flags) != null && Z.billable || a.recurring || a.signing || L || P ? /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
436
442
|
a.carePlan ? /* @__PURE__ */ e(
|
|
437
|
-
|
|
443
|
+
p,
|
|
438
444
|
{
|
|
439
445
|
variant: "accentSoft",
|
|
440
446
|
size: "sm",
|
|
441
|
-
leading: /* @__PURE__ */ e(
|
|
447
|
+
leading: /* @__PURE__ */ e(Ga, {}),
|
|
442
448
|
children: s("appointmentCard.carePlan", {
|
|
443
449
|
number: a.carePlan.number
|
|
444
450
|
})
|
|
445
451
|
}
|
|
446
452
|
) : null,
|
|
447
|
-
a.chair ? /* @__PURE__ */
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
453
|
+
a.chair ? /* @__PURE__ */ r(p, { variant: "neutral", size: "sm", leading: /* @__PURE__ */ e(Fa, {}), children: [
|
|
454
|
+
/* @__PURE__ */ r(oa, { children: [
|
|
455
|
+
s("calendarWorkspace.details.chair"),
|
|
456
|
+
" "
|
|
457
|
+
] }),
|
|
458
|
+
a.chair
|
|
459
|
+
] }) : null,
|
|
460
|
+
(aa = a.flags) != null && aa.bookedOnline ? /* @__PURE__ */ e(p, { variant: "info", size: "sm", leading: /* @__PURE__ */ e($a, {}), children: s("appointmentCard.flag.bookedOnline") }) : null,
|
|
461
|
+
E ? /* @__PURE__ */ e(p, { variant: "warning", size: "sm", withDot: !0, children: s("appointmentCard.flag.highlightedAnamnesis") }) : null,
|
|
462
|
+
a.recurring ? /* @__PURE__ */ e(p, { variant: "neutral", size: "sm", leading: /* @__PURE__ */ e(ja, {}), children: s("appointmentCard.recurring") }) : null,
|
|
451
463
|
a.signing ? /* @__PURE__ */ e(
|
|
452
|
-
|
|
464
|
+
p,
|
|
453
465
|
{
|
|
454
466
|
variant: a.signing.toComplete >= a.signing.required ? "success" : "warning",
|
|
455
467
|
size: "sm",
|
|
456
|
-
leading: /* @__PURE__ */ e(
|
|
468
|
+
leading: /* @__PURE__ */ e(Ba, {}),
|
|
457
469
|
children: s("appointmentCard.signing", {
|
|
458
470
|
complete: a.signing.toComplete,
|
|
459
471
|
required: a.signing.required
|
|
460
472
|
})
|
|
461
473
|
}
|
|
462
474
|
) : null,
|
|
463
|
-
(
|
|
464
|
-
|
|
465
|
-
|
|
475
|
+
(ea = a.flags) != null && ea.billable ? /* @__PURE__ */ e(p, { variant: "success", size: "sm", withDot: !0, children: s("appointmentCard.flag.billable") }) : null,
|
|
476
|
+
L ? /* @__PURE__ */ e(
|
|
477
|
+
na,
|
|
466
478
|
{
|
|
467
479
|
state: "to-invoice",
|
|
468
|
-
amount:
|
|
469
|
-
currency:
|
|
470
|
-
locale:
|
|
480
|
+
amount: y / 100,
|
|
481
|
+
currency: z,
|
|
482
|
+
locale: d,
|
|
471
483
|
size: "sm",
|
|
472
484
|
showLabel: !0
|
|
473
485
|
}
|
|
474
486
|
) : null,
|
|
475
|
-
|
|
476
|
-
|
|
487
|
+
P ? /* @__PURE__ */ e(
|
|
488
|
+
na,
|
|
477
489
|
{
|
|
478
490
|
state: "debt",
|
|
479
|
-
amount:
|
|
480
|
-
currency:
|
|
481
|
-
locale:
|
|
491
|
+
amount: C / 100,
|
|
492
|
+
currency: z,
|
|
493
|
+
locale: d,
|
|
482
494
|
size: "sm",
|
|
483
495
|
showLabel: !0
|
|
484
496
|
}
|
|
485
497
|
) : null
|
|
486
498
|
] }) : null
|
|
487
499
|
] }),
|
|
488
|
-
|
|
489
|
-
|
|
500
|
+
v ? /* @__PURE__ */ e(
|
|
501
|
+
Wa,
|
|
490
502
|
{
|
|
491
503
|
"aria-hidden": "true",
|
|
492
504
|
className: "ds:size-4 ds:shrink-0 ds:self-center ds:text-[color:var(--muted-foreground)] ds:opacity-0 ds:transition-opacity ds:motion-reduce:transition-none ds:group-hover:opacity-100 ds:group-focus-within:opacity-100 ds:rtl:rotate-180"
|
|
@@ -497,8 +509,8 @@ const Qa = ka(
|
|
|
497
509
|
);
|
|
498
510
|
}
|
|
499
511
|
);
|
|
500
|
-
|
|
512
|
+
se.displayName = "AppointmentCard";
|
|
501
513
|
export {
|
|
502
|
-
|
|
514
|
+
se as A
|
|
503
515
|
};
|
|
504
|
-
//# sourceMappingURL=appointment-card-
|
|
516
|
+
//# sourceMappingURL=appointment-card-CaxFXtSn.js.map
|