@alfadocs/ui-kit 0.41.2 → 0.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/address-autocomplete-CSjMrBvu.js +358 -0
- package/dist/_chunks/{alia-sidebar-DXsYPinm.js → alia-sidebar-BpX4z_af.js} +2 -2
- package/dist/_chunks/{ar-Cn_NxqkN.js → ar-DEz65ZJW.js} +2 -2
- package/dist/_chunks/bmi-calculator-DuVSFDuw.js +259 -0
- package/dist/_chunks/{booking-4mCw3Mpl.js → booking-CtLwaxkK.js} +4 -4
- package/dist/_chunks/{breadcrumb-CLlhx7qo.js → breadcrumb-OTbaY70e.js} +4 -4
- package/dist/_chunks/{calculator-dialog-B74fqpFZ.js → calculator-dialog-DdexHrTP.js} +2 -2
- package/dist/_chunks/{chart-Cbt0_sKv.js → chart-Cg3e9EH9.js} +101 -99
- package/dist/_chunks/cycle-calculator-Dln-y1k_.js +192 -0
- package/dist/_chunks/{date-picker-CvQfs6Xh.js → date-picker-Bq7xhMA-.js} +109 -108
- package/dist/_chunks/date-picker-variants-DLi1Va_e.js +3238 -0
- package/dist/_chunks/{date-range-picker-U9fn1g9d.js → date-range-picker-DcXuI9y7.js} +20 -19
- package/dist/_chunks/{date-time-picker-Cva0ZCWw.js → date-time-picker-RimumeLR.js} +18 -17
- package/dist/_chunks/{de-BMM2H7Bs.js → de-bTBGdjPS.js} +2 -2
- package/dist/_chunks/{dialog-Cee13rHU.js → dialog-DOYgd75U.js} +46 -37
- package/dist/_chunks/{document-scanner-CqS_klIr.js → document-scanner-BqLsGs4Y.js} +7 -7
- package/dist/_chunks/{dropdown-menu-BC5ZdOMo.js → dropdown-menu-CUEXqKis.js} +2 -2
- package/dist/_chunks/{due-date-calculator-CUspKSTw.js → due-date-calculator-Cc4dRqTI.js} +62 -41
- package/dist/_chunks/{editable-currency-cell-renderer-DgkCIIcO.js → editable-currency-cell-renderer-9jqwDv5x.js} +3 -3
- package/dist/_chunks/{el-BYPonAaK.js → el-BWG5RXxa.js} +6 -6
- package/dist/_chunks/{es-CMkVCQ4F.js → es-DfO_G435.js} +2 -2
- package/dist/_chunks/{fr-BcuWxqft.js → fr-BTn24bs8.js} +2 -2
- package/dist/_chunks/{freemium-paywall-BAk3a6er.js → freemium-paywall-BLXESpH4.js} +2 -2
- package/dist/_chunks/{gestation-BXEgDGmP.js → gestation-mWF4AXea.js} +3 -3
- package/dist/_chunks/{gestational-age-calculator-CsQ05qDy.js → gestational-age-calculator-ZMSrzkRW.js} +59 -45
- package/dist/_chunks/{header-CTZWX-tm.js → header-Ce1Br27u.js} +70 -75
- package/dist/_chunks/{header-settings-CBLwUK6t.js → header-settings-Bx0Biimh.js} +2 -2
- package/dist/_chunks/{hi-wkq_rQAh.js → hi-Dj3oYd84.js} +2 -2
- package/dist/_chunks/index.modern-D2LGACWg.js +1529 -0
- package/dist/_chunks/insert-result-DisOY2G-.js +243 -0
- package/dist/_chunks/{isSameWeek-Bim5ftRd.js → isSameWeek-HfxKk6Lz.js} +2 -2
- package/dist/_chunks/{it-GiQrQ9p4.js → it-Y85ofIQQ.js} +7 -7
- package/dist/_chunks/{ja-qfYg3Rua.js → ja-CQ7J6YoA.js} +2 -2
- package/dist/_chunks/{kbd-Cglkd7CY.js → kbd-D855ZXIW.js} +2 -2
- package/dist/_chunks/map-view-Tb5VfK9Y.js +333 -0
- package/dist/_chunks/marketplace-app-shell-Dc5cTIt8.js +428 -0
- package/dist/_chunks/{nl-xOogO4sZ.js → nl-D9kHCmp3.js} +2 -2
- package/dist/_chunks/{patient-search-CBq62kmL.js → patient-search-DPe2ZYEL.js} +2 -2
- package/dist/_chunks/{patient-shell-DF81lALv.js → patient-shell-CnT4L8gn.js} +3 -3
- package/dist/_chunks/{payment-form-Dy3WIIsC.js → payment-form-BzVsG6Ks.js} +5 -5
- package/dist/_chunks/{pdf-viewer-Cy6Ul3hZ.js → pdf-viewer-B6MC6VTx.js} +139 -126
- package/dist/_chunks/{pl-GnOW6eGK.js → pl-B3Smqpkr.js} +3 -3
- package/dist/_chunks/{practice-results-C0d4IL5E.js → practice-results-CrLpEiiW.js} +4 -4
- package/dist/_chunks/pregnancy-weight-gain-zZL5Ir2-.js +224 -0
- package/dist/_chunks/{pt-_bV5b5RW.js → pt-D3J-1c_7.js} +6 -6
- package/dist/_chunks/{public-header.agent-B2dDg2_d.js → public-header.agent-BY6FH71R.js} +2 -2
- package/dist/_chunks/radio-group-CLjK-SlK.js +167 -0
- package/dist/_chunks/{rich-text-editor-DLbg2852.js → rich-text-editor-DhGIBd4a.js} +10 -10
- package/dist/_chunks/{ro-BEcyh5Nj.js → ro-BKAbbEA3.js} +2 -2
- package/dist/_chunks/{ru-Bi86hqMf.js → ru-BeG8f0Ep.js} +3 -3
- package/dist/_chunks/{sheet-BV-yuLE2.js → sheet-xbzu4YiY.js} +7 -7
- package/dist/_chunks/sign-document-B-3k_0LO.js +344 -0
- package/dist/_chunks/{signature-capture-DoiBd6i3.js → signature-capture-CpMBhqQ9.js} +6 -6
- package/dist/_chunks/{sq-BujHSAWu.js → sq-_hRPaeUy.js} +6 -6
- package/dist/_chunks/subDays-Dv7q9S7u.js +8 -0
- package/dist/_chunks/{sv-C8AeDrTA.js → sv-g009fSpe.js} +2 -2
- package/dist/_chunks/tab-bar-Xetknddo.js +105 -0
- package/dist/_chunks/{theme-toggle-DpC28kt5.js → theme-toggle-ClATnY4Q.js} +2 -2
- package/dist/_chunks/{toast.agent-WHHfw5VX.js → toast.agent-B0MCsvdZ.js} +2 -2
- package/dist/_chunks/{tr-CMSs_Vgf.js → tr-OKUOuhMW.js} +2 -2
- package/dist/_chunks/{unit-converter-EUwO6QYq.js → unit-converter-CuXCXJhK.js} +46 -40
- package/dist/_chunks/{workflow-map-C3gB0FvB.js → workflow-map-BFNpzTiw.js} +2 -2
- package/dist/_chunks/{zh-CN-eXB-PFu4.js → zh-CN-De4zwEhx.js} +3 -3
- package/dist/agent-catalog.json +1 -1
- package/dist/brand/product-lockup/product-lockup.d.ts +16 -0
- package/dist/components/_shared/calendar-class-names.d.ts +8 -0
- package/dist/components/_shared/index.d.ts +2 -0
- package/dist/components/_shared/insert-result.d.ts +78 -6
- package/dist/components/address-autocomplete/address-autocomplete.d.ts +77 -0
- package/dist/components/address-autocomplete/index.d.ts +4 -0
- package/dist/components/address-autocomplete/index.js +6 -0
- package/dist/components/address-autocomplete/parse-address.d.ts +52 -0
- package/dist/components/badge/badge.d.ts +1 -1
- package/dist/components/bmi-calculator/bmi-calculator.d.ts +11 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/breadcrumb/index.js +1 -1
- package/dist/components/calculator-dialog/index.js +1 -1
- package/dist/components/card/card.d.ts +1 -1
- package/dist/components/chart/chart.d.ts +10 -0
- package/dist/components/chart/index.js +1 -1
- package/dist/components/cycle-calculator/cycle-calculator.d.ts +12 -2
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-picker/date-picker.d.ts +0 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/date-range-picker.d.ts +0 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/date-time-picker.d.ts +0 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/dialog/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/due-date-calculator.d.ts +11 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +12 -2
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/header/header.d.ts +8 -0
- package/dist/components/header/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/index.d.ts +3 -1
- package/dist/components/kbd/index.js +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/matrix-rain/matrix-rain.d.ts +1 -1
- package/dist/components/patient-search/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/practice-results/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +12 -2
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/public-header/public-header.d.ts +1 -1
- package/dist/components/radio-group/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/sign-document/sign-document.d.ts +12 -0
- package/dist/components/signature-capture/index.js +1 -1
- package/dist/components/stat/stat.d.ts +1 -1
- package/dist/components/tab-bar/index.d.ts +3 -0
- package/dist/components/tab-bar/index.js +5 -0
- package/dist/components/tab-bar/tab-bar.d.ts +104 -0
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/unit-converter/unit-converter.d.ts +11 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +17 -0
- package/dist/i18n/locales/ar.js +18 -1
- package/dist/i18n/locales/de.d.ts +17 -0
- package/dist/i18n/locales/de.js +18 -1
- package/dist/i18n/locales/el.d.ts +17 -0
- package/dist/i18n/locales/el.js +18 -1
- package/dist/i18n/locales/en.d.ts +17 -0
- package/dist/i18n/locales/en.js +18 -1
- package/dist/i18n/locales/es.d.ts +17 -0
- package/dist/i18n/locales/es.js +18 -1
- package/dist/i18n/locales/fr.d.ts +17 -0
- package/dist/i18n/locales/fr.js +18 -1
- package/dist/i18n/locales/hi.d.ts +17 -0
- package/dist/i18n/locales/hi.js +18 -1
- package/dist/i18n/locales/it.d.ts +17 -0
- package/dist/i18n/locales/it.js +18 -1
- package/dist/i18n/locales/ja.d.ts +17 -0
- package/dist/i18n/locales/ja.js +18 -1
- package/dist/i18n/locales/nl.d.ts +17 -0
- package/dist/i18n/locales/nl.js +18 -1
- package/dist/i18n/locales/pl.d.ts +17 -0
- package/dist/i18n/locales/pl.js +18 -1
- package/dist/i18n/locales/pt.d.ts +17 -0
- package/dist/i18n/locales/pt.js +18 -1
- package/dist/i18n/locales/ro.d.ts +17 -0
- package/dist/i18n/locales/ro.js +18 -1
- package/dist/i18n/locales/ru.d.ts +17 -0
- package/dist/i18n/locales/ru.js +18 -1
- package/dist/i18n/locales/sq.d.ts +17 -0
- package/dist/i18n/locales/sq.js +18 -1
- package/dist/i18n/locales/sv.d.ts +17 -0
- package/dist/i18n/locales/sv.js +18 -1
- package/dist/i18n/locales/tr.d.ts +17 -0
- package/dist/i18n/locales/tr.js +18 -1
- package/dist/i18n/locales/zh.d.ts +17 -0
- package/dist/i18n/locales/zh.js +18 -1
- package/dist/index.js +605 -599
- package/dist/locales/ar.json +18 -1
- package/dist/locales/de.json +18 -1
- package/dist/locales/el.json +18 -1
- package/dist/locales/en.json +18 -1
- package/dist/locales/es.json +18 -1
- package/dist/locales/fr.json +18 -1
- package/dist/locales/hi.json +18 -1
- package/dist/locales/it.json +18 -1
- package/dist/locales/ja.json +18 -1
- package/dist/locales/nl.json +18 -1
- package/dist/locales/pl.json +18 -1
- package/dist/locales/pt.json +18 -1
- package/dist/locales/ro.json +18 -1
- package/dist/locales/ru.json +18 -1
- package/dist/locales/sq.json +18 -1
- package/dist/locales/sv.json +18 -1
- package/dist/locales/tr.json +18 -1
- package/dist/locales/zh.json +18 -1
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +87 -4
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1411 -2
- package/package.json +16 -1
- package/dist/_chunks/bmi-calculator-DnEr513I.js +0 -213
- package/dist/_chunks/cycle-calculator-B5Uj9QeT.js +0 -185
- package/dist/_chunks/insert-result-yJ0QavoN.js +0 -133
- package/dist/_chunks/map-view-qJLybrmN.js +0 -1850
- package/dist/_chunks/marketplace-app-shell-BlxVizU4.js +0 -296
- package/dist/_chunks/pregnancy-weight-gain-BCdi-JSv.js +0 -209
- package/dist/_chunks/radio-group-BcF92GEF.js +0 -152
- package/dist/_chunks/react-day-picker-CdtIiKjx.js +0 -3174
- package/dist/_chunks/sign-document-CpLDZ6Db.js +0 -316
- package/dist/_chunks/subDays-_T9YeKPX.js +0 -8
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
import { jsx as i, jsxs as S } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as we, useRef as B, useMemo as _e, useId as Ce, useState as z, useCallback as H, useEffect as Ie } from "react";
|
|
3
|
+
import { c as O } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as de } from "react-i18next";
|
|
5
|
+
import { A as Re, u as Ne } from "./index.modern-D2LGACWg.js";
|
|
6
|
+
import { u as Pe } from "./form-field-context-B3APVHKx.js";
|
|
7
|
+
import { c as Ee } from "./compose-refs-C0k0tdqF.js";
|
|
8
|
+
import { u as ke } from "./use-controllable-state-BiY4xTzM.js";
|
|
9
|
+
import { I as De, a as J, b as W, c as Fe } from "./input-surface-xyERuLU_.js";
|
|
10
|
+
import { u as Be } from "./use-debounced-callback-BisrB-Fq.js";
|
|
11
|
+
import { M as Ue } from "./map-pin-B8STOPMJ.js";
|
|
12
|
+
function U(s) {
|
|
13
|
+
return s.longText ?? s.long_name ?? "";
|
|
14
|
+
}
|
|
15
|
+
function ne(s) {
|
|
16
|
+
return s.shortText ?? s.short_name ?? U(s);
|
|
17
|
+
}
|
|
18
|
+
function y(s, u) {
|
|
19
|
+
return s.find((p) => p.types.includes(u));
|
|
20
|
+
}
|
|
21
|
+
function oe(s, u = "") {
|
|
22
|
+
const p = y(s, "route"), f = y(s, "street_number"), t = y(s, "locality"), a = y(s, "postal_town"), m = y(s, "administrative_area_level_3"), I = y(s, "postal_code"), R = y(s, "administrative_area_level_2"), d = y(s, "country"), h = p ? U(p) : "", v = f ? U(f) : "", x = [h, v].filter(Boolean).join(" ").trim(), r = t ?? a ?? m, o = r ? U(r) : "", c = I ? U(I) : "", N = R ? ne(R).toUpperCase() : "", g = d ? ne(d).toLowerCase() : "";
|
|
23
|
+
return {
|
|
24
|
+
street: x,
|
|
25
|
+
city: o,
|
|
26
|
+
postcode: c,
|
|
27
|
+
province: N,
|
|
28
|
+
country: g,
|
|
29
|
+
formatted: u
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
const $e = O(
|
|
33
|
+
["ds:flex ds:w-full ds:items-center", Fe].join(" "),
|
|
34
|
+
{
|
|
35
|
+
variants: {
|
|
36
|
+
size: {
|
|
37
|
+
sm: `${J.sm} ${W.sm}`,
|
|
38
|
+
md: `${J.md} ${W.md}`,
|
|
39
|
+
lg: `${J.lg} ${W.lg}`
|
|
40
|
+
},
|
|
41
|
+
tone: De
|
|
42
|
+
},
|
|
43
|
+
defaultVariants: { size: "md", tone: "default" }
|
|
44
|
+
}
|
|
45
|
+
), Me = O(
|
|
46
|
+
[
|
|
47
|
+
"ds:flex-1 ds:min-w-0 ds:ps-3 ds:pe-3 ds:bg-transparent ds:text-foreground",
|
|
48
|
+
"ds:placeholder:text-muted-foreground",
|
|
49
|
+
"ds:outline-none ds:focus:outline-none ds:focus-visible:outline-none",
|
|
50
|
+
"ds:disabled:cursor-not-allowed ds:read-only:cursor-default"
|
|
51
|
+
].join(" ")
|
|
52
|
+
), Ve = "ds:inline-flex ds:items-center ds:shrink-0 ds:ps-3 ds:text-muted-foreground ds:[&_svg]:size-4", je = O(
|
|
53
|
+
[
|
|
54
|
+
"ds:absolute ds:z-[var(--z-dropdown)] ds:mt-[var(--spacing-2xs)] ds:w-full",
|
|
55
|
+
"ds:overflow-auto ds:max-h-[18rem]",
|
|
56
|
+
"ds:rounded-[var(--radius-sm)] ds:border ds:border-border ds:bg-background",
|
|
57
|
+
"ds:shadow-[var(--shadow-md)] ds:p-[var(--spacing-xs)]"
|
|
58
|
+
].join(" ")
|
|
59
|
+
), Le = O(
|
|
60
|
+
[
|
|
61
|
+
"ds:flex ds:flex-col ds:gap-[var(--spacing-3xs)]",
|
|
62
|
+
"ds:ps-3 ds:pe-3 ds:py-2 ds:rounded-[var(--radius-sm)]",
|
|
63
|
+
"ds:cursor-pointer ds:select-none ds:text-foreground",
|
|
64
|
+
"ds:text-start",
|
|
65
|
+
"ds:data-[active=true]:bg-primary ds:data-[active=true]:text-primary-foreground",
|
|
66
|
+
"ds:hover:bg-muted ds:data-[active=true]:hover:bg-primary"
|
|
67
|
+
].join(" ")
|
|
68
|
+
), ae = "ds:ps-3 ds:pe-3 ds:py-2 type-body-sm ds:text-muted-foreground";
|
|
69
|
+
function Se({
|
|
70
|
+
forwardedRef: s,
|
|
71
|
+
regionCodes: u,
|
|
72
|
+
onSelect: p,
|
|
73
|
+
...f
|
|
74
|
+
}) {
|
|
75
|
+
const t = Ne("places"), a = B(null), m = !!(t && "AutocompleteSuggestion" in t && "Place" in t && "AutocompleteSessionToken" in t), I = H(
|
|
76
|
+
async (d) => {
|
|
77
|
+
if (!t || d.trim().length === 0) return [];
|
|
78
|
+
if (m) {
|
|
79
|
+
a.current || (a.current = new t.AutocompleteSessionToken());
|
|
80
|
+
const { suggestions: r } = await t.AutocompleteSuggestion.fetchAutocompleteSuggestions({
|
|
81
|
+
input: d,
|
|
82
|
+
sessionToken: a.current,
|
|
83
|
+
includedRegionCodes: u
|
|
84
|
+
});
|
|
85
|
+
return r.map((o) => {
|
|
86
|
+
var N, g;
|
|
87
|
+
const c = o.placePrediction;
|
|
88
|
+
return c ? {
|
|
89
|
+
placeId: c.placeId,
|
|
90
|
+
primaryText: ((N = c.mainText) == null ? void 0 : N.text) ?? c.text.text,
|
|
91
|
+
secondaryText: (g = c.secondaryText) == null ? void 0 : g.text
|
|
92
|
+
} : null;
|
|
93
|
+
}).filter((o) => o !== null);
|
|
94
|
+
}
|
|
95
|
+
const h = t.AutocompleteService;
|
|
96
|
+
return h ? (await new h().getPlacePredictions({ input: d })).predictions.map((r) => {
|
|
97
|
+
var o, c;
|
|
98
|
+
return {
|
|
99
|
+
placeId: r.place_id,
|
|
100
|
+
primaryText: ((o = r.structured_formatting) == null ? void 0 : o.main_text) ?? r.description,
|
|
101
|
+
secondaryText: (c = r.structured_formatting) == null ? void 0 : c.secondary_text
|
|
102
|
+
};
|
|
103
|
+
}) : [];
|
|
104
|
+
},
|
|
105
|
+
[t, m, u]
|
|
106
|
+
), R = H(
|
|
107
|
+
async (d) => {
|
|
108
|
+
if (d.address) return d.address;
|
|
109
|
+
if (!t) return null;
|
|
110
|
+
if (m) {
|
|
111
|
+
const x = new t.Place({ id: d.placeId }), { place: r } = await x.fetchFields({
|
|
112
|
+
fields: ["addressComponents", "formattedAddress"]
|
|
113
|
+
});
|
|
114
|
+
a.current = null;
|
|
115
|
+
const o = r.addressComponents ?? [];
|
|
116
|
+
return oe(
|
|
117
|
+
o,
|
|
118
|
+
r.formattedAddress ?? ""
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
const h = t.PlacesService;
|
|
122
|
+
if (!h) return null;
|
|
123
|
+
const v = new h(document.createElement("div"));
|
|
124
|
+
return new Promise((x) => {
|
|
125
|
+
v.getDetails(
|
|
126
|
+
{
|
|
127
|
+
placeId: d.placeId,
|
|
128
|
+
fields: ["address_components", "formatted_address"]
|
|
129
|
+
},
|
|
130
|
+
(r) => {
|
|
131
|
+
if (!r) {
|
|
132
|
+
x(null);
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
const o = r.address_components ?? [];
|
|
136
|
+
x(
|
|
137
|
+
oe(
|
|
138
|
+
o,
|
|
139
|
+
r.formatted_address ?? ""
|
|
140
|
+
)
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
);
|
|
144
|
+
});
|
|
145
|
+
},
|
|
146
|
+
[t, m]
|
|
147
|
+
);
|
|
148
|
+
return /* @__PURE__ */ i(
|
|
149
|
+
Y,
|
|
150
|
+
{
|
|
151
|
+
...f,
|
|
152
|
+
forwardedRef: s,
|
|
153
|
+
getSuggestions: I,
|
|
154
|
+
resolveSelection: R,
|
|
155
|
+
onSelect: p
|
|
156
|
+
}
|
|
157
|
+
);
|
|
158
|
+
}
|
|
159
|
+
function Y({
|
|
160
|
+
forwardedRef: s,
|
|
161
|
+
value: u,
|
|
162
|
+
defaultValue: p,
|
|
163
|
+
onValueChange: f,
|
|
164
|
+
onSelect: t,
|
|
165
|
+
getSuggestions: a,
|
|
166
|
+
resolveSelection: m,
|
|
167
|
+
placeholder: I,
|
|
168
|
+
debounceMs: R = 250,
|
|
169
|
+
disabled: d,
|
|
170
|
+
required: h,
|
|
171
|
+
readOnly: v,
|
|
172
|
+
name: x,
|
|
173
|
+
id: r,
|
|
174
|
+
size: o = "md",
|
|
175
|
+
tone: c = "default",
|
|
176
|
+
className: N,
|
|
177
|
+
"aria-label": g
|
|
178
|
+
}) {
|
|
179
|
+
const { t: T } = de(), D = Pe(), G = B(null), ie = _e(
|
|
180
|
+
() => Ee(s, G),
|
|
181
|
+
[s]
|
|
182
|
+
), ce = Ce(), $ = r ?? D.id ?? ce, Z = `${$}-listbox`, le = `${$}-live`, q = (e) => `${$}-opt-${e}`, P = !!(D.disabled || d), ue = !!(D.required || h), ee = D.invalid, pe = ee ? "error" : c, fe = D.describedBy || void 0, [me, K] = ke({
|
|
183
|
+
value: u,
|
|
184
|
+
defaultValue: p ?? "",
|
|
185
|
+
onChange: f
|
|
186
|
+
}), A = me ?? "", [w, E] = z(!1), [l, Q] = z([]), [F, X] = z(!1), [b, _] = z(-1), M = B(!1), V = B(""), ve = I ?? T("inputs.addressAutocomplete.placeholder"), he = H(
|
|
187
|
+
(e) => {
|
|
188
|
+
!a || P || v || M.current || (V.current = e, X(!0), Promise.resolve(a(e)).then((n) => {
|
|
189
|
+
V.current === e && (Q(n), _(-1), X(!1));
|
|
190
|
+
}).catch(() => {
|
|
191
|
+
V.current === e && (Q([]), X(!1));
|
|
192
|
+
}));
|
|
193
|
+
},
|
|
194
|
+
[a, P, v]
|
|
195
|
+
), k = Be(he, R);
|
|
196
|
+
Ie(() => () => k.cancel(), [k]);
|
|
197
|
+
const xe = (e) => {
|
|
198
|
+
K(e), !(P || v) && (w || E(!0), !M.current && k(e));
|
|
199
|
+
}, te = H(
|
|
200
|
+
(e) => {
|
|
201
|
+
var n;
|
|
202
|
+
K(e.primaryText), E(!1), _(-1), Q([]), V.current = e.primaryText, m ? Promise.resolve(m(e)).then((C) => {
|
|
203
|
+
C && (t == null || t(C));
|
|
204
|
+
}).catch(() => {
|
|
205
|
+
}) : e.address && (t == null || t(e.address)), (n = G.current) == null || n.focus();
|
|
206
|
+
},
|
|
207
|
+
[K, m, t, G]
|
|
208
|
+
), se = w && !F && A.trim().length > 0 && l.length === 0 && !!a, j = l.length > 0, L = w && (j || se || F), be = (e) => {
|
|
209
|
+
if (!e.nativeEvent.isComposing) {
|
|
210
|
+
if (e.key === "ArrowDown") {
|
|
211
|
+
if (e.preventDefault(), !w) {
|
|
212
|
+
E(!0), A && k(A);
|
|
213
|
+
return;
|
|
214
|
+
}
|
|
215
|
+
if (l.length === 0) return;
|
|
216
|
+
_((n) => (n + 1) % l.length);
|
|
217
|
+
return;
|
|
218
|
+
}
|
|
219
|
+
if (e.key === "ArrowUp") {
|
|
220
|
+
if (e.preventDefault(), l.length === 0) return;
|
|
221
|
+
_(
|
|
222
|
+
(n) => n <= 0 ? l.length - 1 : n - 1
|
|
223
|
+
);
|
|
224
|
+
return;
|
|
225
|
+
}
|
|
226
|
+
if (e.key === "Enter") {
|
|
227
|
+
L && (e.preventDefault(), b >= 0 && l[b] && te(l[b]));
|
|
228
|
+
return;
|
|
229
|
+
}
|
|
230
|
+
e.key === "Escape" && w && (e.preventDefault(), E(!1), _(-1));
|
|
231
|
+
}
|
|
232
|
+
}, ye = () => {
|
|
233
|
+
P || v || A && (E(!0), k(A));
|
|
234
|
+
}, ge = (e) => {
|
|
235
|
+
var C;
|
|
236
|
+
const n = e.relatedTarget;
|
|
237
|
+
n && ((C = re.current) != null && C.contains(n)) || (E(!1), _(-1));
|
|
238
|
+
}, re = B(null), Te = w && b >= 0 && l[b] ? q(l[b].placeId) : void 0, Ae = F ? T("inputs.addressAutocomplete.loading") : w && A.trim().length > 0 ? T("inputs.addressAutocomplete.results", { count: l.length }) : "";
|
|
239
|
+
return /* @__PURE__ */ S(
|
|
240
|
+
"div",
|
|
241
|
+
{
|
|
242
|
+
className: "ds:relative ds:w-full",
|
|
243
|
+
"data-component": "address-autocomplete",
|
|
244
|
+
"data-component-id": r,
|
|
245
|
+
children: [
|
|
246
|
+
/* @__PURE__ */ S(
|
|
247
|
+
"div",
|
|
248
|
+
{
|
|
249
|
+
className: $e({ size: o, tone: pe, className: N }),
|
|
250
|
+
"data-disabled": P || void 0,
|
|
251
|
+
children: [
|
|
252
|
+
/* @__PURE__ */ i("span", { "aria-hidden": "true", className: Ve, children: /* @__PURE__ */ i(Ue, {}) }),
|
|
253
|
+
/* @__PURE__ */ i(
|
|
254
|
+
"input",
|
|
255
|
+
{
|
|
256
|
+
ref: ie,
|
|
257
|
+
id: $,
|
|
258
|
+
name: x,
|
|
259
|
+
type: "text",
|
|
260
|
+
autoComplete: "off",
|
|
261
|
+
role: "combobox",
|
|
262
|
+
"aria-autocomplete": "list",
|
|
263
|
+
"aria-expanded": L,
|
|
264
|
+
"aria-controls": L ? Z : void 0,
|
|
265
|
+
"aria-activedescendant": Te,
|
|
266
|
+
"aria-describedby": fe,
|
|
267
|
+
"aria-invalid": ee || void 0,
|
|
268
|
+
"aria-label": g ?? T("inputs.addressAutocomplete.ariaLabel"),
|
|
269
|
+
placeholder: ve,
|
|
270
|
+
value: A,
|
|
271
|
+
disabled: P,
|
|
272
|
+
required: ue,
|
|
273
|
+
readOnly: v,
|
|
274
|
+
onChange: (e) => xe(e.target.value),
|
|
275
|
+
onKeyDown: be,
|
|
276
|
+
onFocus: ye,
|
|
277
|
+
onBlur: ge,
|
|
278
|
+
onCompositionStart: () => {
|
|
279
|
+
M.current = !0;
|
|
280
|
+
},
|
|
281
|
+
onCompositionEnd: (e) => {
|
|
282
|
+
M.current = !1, k(e.currentTarget.value);
|
|
283
|
+
},
|
|
284
|
+
className: Me()
|
|
285
|
+
}
|
|
286
|
+
)
|
|
287
|
+
]
|
|
288
|
+
}
|
|
289
|
+
),
|
|
290
|
+
L ? /* @__PURE__ */ S(
|
|
291
|
+
"ul",
|
|
292
|
+
{
|
|
293
|
+
ref: re,
|
|
294
|
+
id: Z,
|
|
295
|
+
role: "listbox",
|
|
296
|
+
"aria-label": g ?? T("inputs.addressAutocomplete.listLabel"),
|
|
297
|
+
className: je(),
|
|
298
|
+
children: [
|
|
299
|
+
j ? l.map((e, n) => /* @__PURE__ */ S(
|
|
300
|
+
"li",
|
|
301
|
+
{
|
|
302
|
+
id: q(e.placeId),
|
|
303
|
+
role: "option",
|
|
304
|
+
"aria-selected": n === b,
|
|
305
|
+
"data-active": n === b || void 0,
|
|
306
|
+
onMouseDown: (C) => {
|
|
307
|
+
C.preventDefault(), te(e);
|
|
308
|
+
},
|
|
309
|
+
onMouseEnter: () => _(n),
|
|
310
|
+
className: Le(),
|
|
311
|
+
children: [
|
|
312
|
+
/* @__PURE__ */ i("span", { className: "ds:truncate", children: e.primaryText }),
|
|
313
|
+
e.secondaryText ? /* @__PURE__ */ i("span", { className: "type-meta ds:text-muted-foreground ds:data-[active=true]:text-primary-foreground ds:truncate", children: e.secondaryText }) : null
|
|
314
|
+
]
|
|
315
|
+
},
|
|
316
|
+
e.placeId
|
|
317
|
+
)) : null,
|
|
318
|
+
!j && F ? /* @__PURE__ */ i("li", { role: "presentation", className: ae, children: T("inputs.addressAutocomplete.loading") }) : null,
|
|
319
|
+
!j && !F && se ? /* @__PURE__ */ i("li", { role: "presentation", className: ae, children: T("inputs.addressAutocomplete.noResults") }) : null
|
|
320
|
+
]
|
|
321
|
+
}
|
|
322
|
+
) : null,
|
|
323
|
+
/* @__PURE__ */ i(
|
|
324
|
+
"span",
|
|
325
|
+
{
|
|
326
|
+
id: le,
|
|
327
|
+
role: "status",
|
|
328
|
+
"aria-live": "polite",
|
|
329
|
+
"aria-atomic": "true",
|
|
330
|
+
className: "ds:sr-only",
|
|
331
|
+
children: Ae
|
|
332
|
+
}
|
|
333
|
+
)
|
|
334
|
+
]
|
|
335
|
+
}
|
|
336
|
+
);
|
|
337
|
+
}
|
|
338
|
+
const ze = we(function({ apiKey: u, getSuggestions: p, ...f }, t) {
|
|
339
|
+
const { i18n: a } = de();
|
|
340
|
+
return p ? /* @__PURE__ */ i(
|
|
341
|
+
Y,
|
|
342
|
+
{
|
|
343
|
+
...f,
|
|
344
|
+
forwardedRef: t,
|
|
345
|
+
getSuggestions: p,
|
|
346
|
+
resolveSelection: He
|
|
347
|
+
}
|
|
348
|
+
) : u ? /* @__PURE__ */ i(Re, { apiKey: u, language: a.language, children: /* @__PURE__ */ i(Se, { ...f, forwardedRef: t }) }) : /* @__PURE__ */ i(Y, { ...f, forwardedRef: t });
|
|
349
|
+
});
|
|
350
|
+
ze.displayName = "AddressAutocomplete";
|
|
351
|
+
async function He(s) {
|
|
352
|
+
return s.address ?? null;
|
|
353
|
+
}
|
|
354
|
+
export {
|
|
355
|
+
ze as A,
|
|
356
|
+
oe as p
|
|
357
|
+
};
|
|
358
|
+
//# sourceMappingURL=address-autocomplete-CSjMrBvu.js.map
|
|
@@ -4,7 +4,7 @@ import * as ee from "@radix-ui/react-dialog";
|
|
|
4
4
|
import { useTranslation as z } from "react-i18next";
|
|
5
5
|
import { F as se } from "./floating-action-button-pojvb9gG.js";
|
|
6
6
|
import { I as B } from "./icon-button-CKEOrN37.js";
|
|
7
|
-
import { S as E } from "./sheet-
|
|
7
|
+
import { S as E } from "./sheet-xbzu4YiY.js";
|
|
8
8
|
import { X as ae } from "./x-CCcI3eJp.js";
|
|
9
9
|
import { S as P } from "./sparkles-CuYXqQLg.js";
|
|
10
10
|
import { A as k } from "./avatar-BNQNhoyL.js";
|
|
@@ -739,4 +739,4 @@ export {
|
|
|
739
739
|
ze as b,
|
|
740
740
|
Ce as c
|
|
741
741
|
};
|
|
742
|
-
//# sourceMappingURL=alia-sidebar-
|
|
742
|
+
//# sourceMappingURL=alia-sidebar-BpX4z_af.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { q as s, r, v as i, w as d } from "./date-picker-variants-DLi1Va_e.js";
|
|
2
2
|
const h = {
|
|
3
3
|
lessThanXSeconds: {
|
|
4
4
|
one: "أقل من ثانية",
|
|
@@ -396,4 +396,4 @@ const h = {
|
|
|
396
396
|
export {
|
|
397
397
|
z as ar
|
|
398
398
|
};
|
|
399
|
-
//# sourceMappingURL=ar-
|
|
399
|
+
//# sourceMappingURL=ar-DEz65ZJW.js.map
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as q, useId as J, useState as c, useMemo as Q, useEffect as k } from "react";
|
|
3
|
+
import { c as K } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as X } from "react-i18next";
|
|
5
|
+
import { R as E } from "./radio-TWf9Q-mp.js";
|
|
6
|
+
import { R as Z } from "./radio-group-CLjK-SlK.js";
|
|
7
|
+
import { F as S } from "./form-field-BOm9hK35.js";
|
|
8
|
+
import { N as C } from "./number-input-Dj5L3pXK.js";
|
|
9
|
+
import { C as ee } from "./chart-Cg3e9EH9.js";
|
|
10
|
+
import { C as H } from "./card-DPmk26CL.js";
|
|
11
|
+
import { B as te } from "./badge-zsf5i5bH.js";
|
|
12
|
+
import { I as ae } from "./insert-result-DisOY2G-.js";
|
|
13
|
+
import { a as le, b as ie, e as re, c as oe, f as L, l as V, k as ne } from "./bmi-BxD-tFzU.js";
|
|
14
|
+
const se = K("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
|
|
15
|
+
variants: {
|
|
16
|
+
width: {
|
|
17
|
+
full: "ds:w-full",
|
|
18
|
+
auto: "ds:inline-flex"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
defaultVariants: { width: "full" }
|
|
22
|
+
}), ce = {
|
|
23
|
+
underweight: "info",
|
|
24
|
+
normal: "success",
|
|
25
|
+
overweight: "warning",
|
|
26
|
+
obese: "error"
|
|
27
|
+
}, me = K("", {
|
|
28
|
+
variants: {
|
|
29
|
+
category: {
|
|
30
|
+
underweight: "--info",
|
|
31
|
+
normal: "--success",
|
|
32
|
+
overweight: "--warning",
|
|
33
|
+
obese: "--destructive"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}), ue = "--color-orange-600";
|
|
37
|
+
function de(i) {
|
|
38
|
+
if (typeof document > "u") return;
|
|
39
|
+
const r = document.documentElement, o = getComputedStyle(r), n = i === "overweight" && r.classList.contains("theme-light") && !r.classList.contains("theme-accessible") ? ue : me({ category: i });
|
|
40
|
+
return o.getPropertyValue(n).trim() || void 0;
|
|
41
|
+
}
|
|
42
|
+
function ge(i) {
|
|
43
|
+
const [r, o] = c(void 0);
|
|
44
|
+
return k(() => {
|
|
45
|
+
if (i === null) {
|
|
46
|
+
o(void 0);
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
const n = () => o(de(i));
|
|
50
|
+
if (n(), typeof document > "u") return;
|
|
51
|
+
const f = new MutationObserver(n);
|
|
52
|
+
return f.observe(document.documentElement, {
|
|
53
|
+
attributes: !0,
|
|
54
|
+
attributeFilter: ["class"]
|
|
55
|
+
}), () => f.disconnect();
|
|
56
|
+
}, [i]), r;
|
|
57
|
+
}
|
|
58
|
+
const y = (i) => Math.round(i * 10) / 10, be = q(
|
|
59
|
+
({
|
|
60
|
+
defaultUnitSystem: i = "metric",
|
|
61
|
+
onResultChange: r,
|
|
62
|
+
onInsert: o,
|
|
63
|
+
insertVariant: n = "insert",
|
|
64
|
+
onCopy: f,
|
|
65
|
+
onError: A,
|
|
66
|
+
id: M,
|
|
67
|
+
width: O,
|
|
68
|
+
className: W
|
|
69
|
+
}, D) => {
|
|
70
|
+
const { t: e, i18n: w } = X(), N = J(), [m, _] = c(i), [h, F] = c(null), [p, I] = c(null), [u, $] = c(null), [d, B] = c(null), [g, T] = c(null), j = (R) => {
|
|
71
|
+
const x = R;
|
|
72
|
+
if (x !== m) {
|
|
73
|
+
if (x === "imperial") {
|
|
74
|
+
if (h !== null) {
|
|
75
|
+
const { ft: U, in: Y } = oe(h);
|
|
76
|
+
$(U), B(y(Y));
|
|
77
|
+
}
|
|
78
|
+
p !== null && T(y(ne(p)));
|
|
79
|
+
} else
|
|
80
|
+
(u !== null || d !== null) && F(y(L(u ?? 0, d ?? 0))), g !== null && I(y(V(g)));
|
|
81
|
+
_(x);
|
|
82
|
+
}
|
|
83
|
+
}, z = m === "metric" ? h : u !== null || d !== null ? L(u ?? 0, d ?? 0) : null, P = m === "metric" ? p : g !== null ? V(g) : null, l = re(P, z), a = l !== null ? ie(l) : null, G = ge(a), v = Q(
|
|
84
|
+
() => new Intl.NumberFormat(w.language, {
|
|
85
|
+
minimumFractionDigits: 1,
|
|
86
|
+
maximumFractionDigits: 1
|
|
87
|
+
}),
|
|
88
|
+
[w.language]
|
|
89
|
+
);
|
|
90
|
+
k(() => {
|
|
91
|
+
r == null || r(
|
|
92
|
+
l !== null && a !== null ? { bmi: l, category: a } : null
|
|
93
|
+
);
|
|
94
|
+
}, [l, a, r]);
|
|
95
|
+
const b = m === "metric";
|
|
96
|
+
return /* @__PURE__ */ s(
|
|
97
|
+
"div",
|
|
98
|
+
{
|
|
99
|
+
ref: D,
|
|
100
|
+
"data-component": "bmi-calculator",
|
|
101
|
+
"data-component-id": M,
|
|
102
|
+
className: se({ width: O, className: W }),
|
|
103
|
+
children: [
|
|
104
|
+
/* @__PURE__ */ s(
|
|
105
|
+
Z,
|
|
106
|
+
{
|
|
107
|
+
label: e("bmiCalculator.unitSystem.label"),
|
|
108
|
+
variant: "horizontal",
|
|
109
|
+
value: m,
|
|
110
|
+
onValueChange: j,
|
|
111
|
+
children: [
|
|
112
|
+
/* @__PURE__ */ t(E, { label: e("bmiCalculator.unitSystem.metric"), value: "metric" }),
|
|
113
|
+
/* @__PURE__ */ t(
|
|
114
|
+
E,
|
|
115
|
+
{
|
|
116
|
+
label: e("bmiCalculator.unitSystem.imperial"),
|
|
117
|
+
value: "imperial"
|
|
118
|
+
}
|
|
119
|
+
)
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
),
|
|
123
|
+
/* @__PURE__ */ s("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-2", children: [
|
|
124
|
+
b ? /* @__PURE__ */ t(
|
|
125
|
+
S,
|
|
126
|
+
{
|
|
127
|
+
label: `${e("bmiCalculator.height")} (${e("bmiCalculator.units.cm")})`,
|
|
128
|
+
children: /* @__PURE__ */ t(
|
|
129
|
+
C,
|
|
130
|
+
{
|
|
131
|
+
mode: "decimal",
|
|
132
|
+
min: 0,
|
|
133
|
+
step: 0.5,
|
|
134
|
+
value: h,
|
|
135
|
+
onChange: F
|
|
136
|
+
}
|
|
137
|
+
)
|
|
138
|
+
}
|
|
139
|
+
) : /* @__PURE__ */ s("div", { role: "group", "aria-labelledby": N, children: [
|
|
140
|
+
/* @__PURE__ */ t(
|
|
141
|
+
"span",
|
|
142
|
+
{
|
|
143
|
+
id: N,
|
|
144
|
+
className: "type-label ds:mb-[var(--spacing-xs)] ds:block ds:text-foreground",
|
|
145
|
+
children: e("bmiCalculator.height")
|
|
146
|
+
}
|
|
147
|
+
),
|
|
148
|
+
/* @__PURE__ */ s("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
149
|
+
/* @__PURE__ */ t(
|
|
150
|
+
C,
|
|
151
|
+
{
|
|
152
|
+
mode: "integer",
|
|
153
|
+
min: 0,
|
|
154
|
+
value: u,
|
|
155
|
+
onChange: $,
|
|
156
|
+
"aria-label": e("bmiCalculator.feet")
|
|
157
|
+
}
|
|
158
|
+
),
|
|
159
|
+
/* @__PURE__ */ t("span", { className: "type-label ds:text-muted-foreground", children: e("bmiCalculator.units.ft") }),
|
|
160
|
+
/* @__PURE__ */ t(
|
|
161
|
+
C,
|
|
162
|
+
{
|
|
163
|
+
mode: "decimal",
|
|
164
|
+
min: 0,
|
|
165
|
+
max: 11.9,
|
|
166
|
+
step: 0.5,
|
|
167
|
+
value: d,
|
|
168
|
+
onChange: B,
|
|
169
|
+
"aria-label": e("bmiCalculator.inches")
|
|
170
|
+
}
|
|
171
|
+
),
|
|
172
|
+
/* @__PURE__ */ t("span", { className: "type-label ds:text-muted-foreground", children: e("bmiCalculator.units.in") })
|
|
173
|
+
] })
|
|
174
|
+
] }),
|
|
175
|
+
/* @__PURE__ */ t(
|
|
176
|
+
S,
|
|
177
|
+
{
|
|
178
|
+
label: `${e("bmiCalculator.weight")} (${e(
|
|
179
|
+
b ? "bmiCalculator.units.kg" : "bmiCalculator.units.lb"
|
|
180
|
+
)})`,
|
|
181
|
+
children: /* @__PURE__ */ t(
|
|
182
|
+
C,
|
|
183
|
+
{
|
|
184
|
+
mode: "decimal",
|
|
185
|
+
min: 0,
|
|
186
|
+
step: b ? 0.1 : 0.5,
|
|
187
|
+
value: b ? p : g,
|
|
188
|
+
onChange: b ? I : T
|
|
189
|
+
}
|
|
190
|
+
)
|
|
191
|
+
}
|
|
192
|
+
)
|
|
193
|
+
] }),
|
|
194
|
+
/* @__PURE__ */ t("p", { className: "ds:sr-only", role: "status", "aria-live": "polite", children: l !== null && a !== null ? e("bmiCalculator.gaugeAria", {
|
|
195
|
+
bmi: v.format(l),
|
|
196
|
+
category: e(`bmiCalculator.category.${a}`)
|
|
197
|
+
}) : "" }),
|
|
198
|
+
l !== null && a !== null ? /* @__PURE__ */ t(H, { variant: "elevated", children: /* @__PURE__ */ s(H.Body, { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-md)]", children: [
|
|
199
|
+
/* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-xs)] ds:text-center", children: [
|
|
200
|
+
/* @__PURE__ */ t("span", { className: "type-label ds:text-muted-foreground", children: e("bmiCalculator.category.label") }),
|
|
201
|
+
/* @__PURE__ */ t(te, { variant: ce[a], size: "lg", children: e(`bmiCalculator.category.${a}`) }),
|
|
202
|
+
/* @__PURE__ */ t("p", { className: "type-body ds:text-muted-foreground", children: e(`bmiCalculator.range.${a}`) })
|
|
203
|
+
] }),
|
|
204
|
+
/* @__PURE__ */ t(
|
|
205
|
+
"div",
|
|
206
|
+
{
|
|
207
|
+
"data-bmi-category": a,
|
|
208
|
+
className: "ds:w-[240px] ds:max-w-full",
|
|
209
|
+
children: /* @__PURE__ */ t(
|
|
210
|
+
ee,
|
|
211
|
+
{
|
|
212
|
+
type: "radialBar",
|
|
213
|
+
title: e("bmiCalculator.gaugeAria", {
|
|
214
|
+
bmi: v.format(l),
|
|
215
|
+
category: e(`bmiCalculator.category.${a}`)
|
|
216
|
+
}),
|
|
217
|
+
series: [le(l)],
|
|
218
|
+
labels: [e(`bmiCalculator.category.${a}`)],
|
|
219
|
+
colors: G ? [G] : void 0,
|
|
220
|
+
radialValueFormatter: () => v.format(l),
|
|
221
|
+
height: 240
|
|
222
|
+
}
|
|
223
|
+
)
|
|
224
|
+
}
|
|
225
|
+
),
|
|
226
|
+
n === "copy" || o ? /* @__PURE__ */ t(
|
|
227
|
+
ae,
|
|
228
|
+
{
|
|
229
|
+
onInsert: o,
|
|
230
|
+
variant: n,
|
|
231
|
+
onCopy: f,
|
|
232
|
+
onError: A,
|
|
233
|
+
card: {
|
|
234
|
+
title: e("insert.title.bmi"),
|
|
235
|
+
highlight: e(`bmiCalculator.category.${a}`),
|
|
236
|
+
fields: [
|
|
237
|
+
{
|
|
238
|
+
label: e("insert.title.bmi"),
|
|
239
|
+
value: v.format(l)
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
label: e("bmiCalculator.category.label"),
|
|
243
|
+
value: e(`bmiCalculator.category.${a}`)
|
|
244
|
+
}
|
|
245
|
+
]
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
) : null
|
|
249
|
+
] }) }) : /* @__PURE__ */ t("p", { className: "type-body ds:text-muted-foreground", children: e("bmiCalculator.empty") })
|
|
250
|
+
]
|
|
251
|
+
}
|
|
252
|
+
);
|
|
253
|
+
}
|
|
254
|
+
);
|
|
255
|
+
be.displayName = "BmiCalculator";
|
|
256
|
+
export {
|
|
257
|
+
be as B
|
|
258
|
+
};
|
|
259
|
+
//# sourceMappingURL=bmi-calculator-DuVSFDuw.js.map
|
|
@@ -7,7 +7,7 @@ import { A as z } from "./alert-ywPR59NE.js";
|
|
|
7
7
|
import { B as ie } from "./button-DD_0Xdmr.js";
|
|
8
8
|
import { C as Ke } from "./checkbox-DRcOdmXv.js";
|
|
9
9
|
import { C as Bt } from "./checkbox-group-CpUwlHug.js";
|
|
10
|
-
import { D as Et } from "./date-picker-
|
|
10
|
+
import { D as Et } from "./date-picker-Bq7xhMA-.js";
|
|
11
11
|
import { E as Vt } from "./email-input-lQivsFrw.js";
|
|
12
12
|
import { F as Z } from "./form-field-BOm9hK35.js";
|
|
13
13
|
import { P as Lt } from "./phone-input-DfZbPPvh.js";
|
|
@@ -24,8 +24,8 @@ import { S as $t } from "./stepper-accordion-Dki6r9ZE.js";
|
|
|
24
24
|
import { S as zt } from "./stepper-progress-DDjq5nei.js";
|
|
25
25
|
import { p as F, S as Kt } from "./slot-grid-BlHHP9Qy.js";
|
|
26
26
|
import { s as le, i as at } from "./isSameDay-DUEiAT0G.js";
|
|
27
|
-
import {
|
|
28
|
-
import { s as Ht } from "./subDays-
|
|
27
|
+
import { x as lt, i as ce, a as je, o as jt, h as ye, f as qt, j as _e, y as Me } from "./date-picker-variants-DLi1Va_e.js";
|
|
28
|
+
import { s as Ht } from "./subDays-Dv7q9S7u.js";
|
|
29
29
|
import { C as Gt } from "./chevron-left-CX1jqD2M.js";
|
|
30
30
|
import { C as Ut } from "./chevron-right-BrpYejk0.js";
|
|
31
31
|
import { c as V } from "./createLucideIcon-CrFbzy84.js";
|
|
@@ -2697,4 +2697,4 @@ export {
|
|
|
2697
2697
|
X as O,
|
|
2698
2698
|
Da as b
|
|
2699
2699
|
};
|
|
2700
|
-
//# sourceMappingURL=booking-
|
|
2700
|
+
//# sourceMappingURL=booking-CtLwaxkK.js.map
|