@alfadocs/ui-kit 1.39.0 → 1.41.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/{ai-consent-banner-DvtaM3yg.js → ai-consent-banner-D7I2U-cz.js} +37 -36
- package/dist/_chunks/arrow-left-BfaGqVam.js +15 -0
- package/dist/_chunks/{booking-Dn3jvv3K.js → booking-D43ASl8y.js} +1109 -1103
- package/dist/_chunks/{calendar-workspace-B-fUbm62.js → calendar-workspace-UllCER2k.js} +2170 -2163
- package/dist/_chunks/{contact-profile-card-Zt6WNg1u.js → contact-profile-card-C0WpwpVV.js} +38 -33
- package/dist/_chunks/editor-overlay-DwNKaI22.js +93 -0
- package/dist/_chunks/format-price-DAbh61Lz.js +51 -0
- package/dist/_chunks/help-me-write-templates-GB70jnV9.js +764 -0
- package/dist/_chunks/{marketplace-app-shell-d2EtcUbe.js → marketplace-app-shell-D_g9BaDI.js} +2 -2
- package/dist/_chunks/{money-BY-HmKhZ.js → money-BXLBIRVO.js} +2 -2
- package/dist/_chunks/{notes-panel-CAD1Ytcj.js → notes-panel-_diLt8Cj.js} +76 -73
- package/dist/_chunks/{panel-subview-Cc2Wtt7D.js → panel-subview-PMBRPFOa.js} +49 -59
- package/dist/_chunks/{practice-results-D_jjzwgf.js → practice-results-D11Zpt27.js} +50 -45
- package/dist/_chunks/rich-text-editor-D7AKKAQ2.js +3119 -0
- package/dist/_chunks/{sidebar-C-Gr2LL-.js → sidebar-ClTY9lLI.js} +160 -169
- package/dist/_chunks/{treatment-receipt-dUm99mdn.js → treatment-receipt-DU0OewqH.js} +2 -2
- package/dist/_chunks/trending-up-C_luYBzS.js +15 -0
- package/dist/_chunks/wand-sparkles-DAjKyhz7.js +27 -0
- package/dist/agent-catalog.json +87 -1
- package/dist/agent-i18n/en.json +7 -0
- package/dist/components/_shared/format-price.d.ts +6 -0
- package/dist/components/_shared/index.d.ts +1 -1
- package/dist/components/ai-consent-banner/ai-consent-banner.d.ts +9 -0
- package/dist/components/ai-consent-banner/index.d.ts +1 -1
- package/dist/components/ai-consent-banner/index.js +1 -1
- package/dist/components/booking/booking-types.d.ts +6 -0
- package/dist/components/booking/cascade.d.ts +6 -0
- package/dist/components/booking/index.js +1 -1
- package/dist/components/contact-profile-card/contact-profile-card.d.ts +2 -2
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/editor-overlay/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/money/index.js +1 -1
- package/dist/components/notes-panel/index.d.ts +1 -0
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notes-panel/notes-panel.d.ts +8 -1
- package/dist/components/panel-subview/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/practice-results/practice-results.d.ts +2 -1
- package/dist/components/rich-text-editor/editor-toolbar.d.ts +6 -1
- package/dist/components/rich-text-editor/index.d.ts +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +122 -0
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/treatment-receipt/index.js +1 -1
- package/dist/host-compat.css +13 -1
- package/dist/i18n/locales/ar.d.ts +92 -11
- package/dist/i18n/locales/ar.js +94 -13
- package/dist/i18n/locales/de.d.ts +92 -11
- package/dist/i18n/locales/de.js +94 -13
- package/dist/i18n/locales/el.d.ts +92 -11
- package/dist/i18n/locales/el.js +94 -13
- package/dist/i18n/locales/en.d.ts +81 -0
- package/dist/i18n/locales/en.js +83 -2
- package/dist/i18n/locales/es.d.ts +92 -11
- package/dist/i18n/locales/es.js +94 -13
- package/dist/i18n/locales/fr.d.ts +92 -11
- package/dist/i18n/locales/fr.js +94 -13
- package/dist/i18n/locales/hi.d.ts +92 -11
- package/dist/i18n/locales/hi.js +94 -13
- package/dist/i18n/locales/it.d.ts +92 -11
- package/dist/i18n/locales/it.js +94 -13
- package/dist/i18n/locales/ja.d.ts +92 -11
- package/dist/i18n/locales/ja.js +94 -13
- package/dist/i18n/locales/nl.d.ts +92 -11
- package/dist/i18n/locales/nl.js +94 -13
- package/dist/i18n/locales/pl.d.ts +92 -11
- package/dist/i18n/locales/pl.js +94 -13
- package/dist/i18n/locales/pt.d.ts +92 -11
- package/dist/i18n/locales/pt.js +94 -13
- package/dist/i18n/locales/ro.d.ts +92 -11
- package/dist/i18n/locales/ro.js +94 -13
- package/dist/i18n/locales/ru.d.ts +92 -11
- package/dist/i18n/locales/ru.js +94 -13
- package/dist/i18n/locales/sq.d.ts +92 -11
- package/dist/i18n/locales/sq.js +94 -13
- package/dist/i18n/locales/sv.d.ts +92 -11
- package/dist/i18n/locales/sv.js +94 -13
- package/dist/i18n/locales/tr.d.ts +92 -11
- package/dist/i18n/locales/tr.js +94 -13
- package/dist/i18n/locales/zh.d.ts +92 -11
- package/dist/i18n/locales/zh.js +94 -13
- package/dist/index.js +143 -136
- package/dist/locales/ar.json +94 -13
- package/dist/locales/de.json +94 -13
- package/dist/locales/el.json +94 -13
- package/dist/locales/en.json +83 -2
- package/dist/locales/es.json +94 -13
- package/dist/locales/fr.json +94 -13
- package/dist/locales/hi.json +94 -13
- package/dist/locales/it.json +94 -13
- package/dist/locales/ja.json +94 -13
- package/dist/locales/nl.json +94 -13
- package/dist/locales/pl.json +94 -13
- package/dist/locales/pt.json +94 -13
- package/dist/locales/ro.json +94 -13
- package/dist/locales/ru.json +94 -13
- package/dist/locales/sq.json +94 -13
- package/dist/locales/sv.json +94 -13
- package/dist/locales/tr.json +94 -13
- package/dist/locales/zh.json +94 -13
- package/dist/patterns/calendar/calendar.journey.d.ts +9 -1
- package/dist/patterns/calendar/calendar.sheets.d.ts +6 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/help-me-write-templates/help-me-write-templates.d.ts +164 -0
- package/dist/patterns/help-me-write-templates/index.d.ts +3 -0
- package/dist/patterns/help-me-write-templates/index.js +10 -0
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/tokens.css +51 -42
- package/package.json +5 -1
- package/dist/_chunks/editor-overlay-9tcPXNWt.js +0 -89
- package/dist/_chunks/format-price-BkMEbeW3.js +0 -47
- package/dist/_chunks/rich-text-editor-C6fE-uP4.js +0 -2627
|
@@ -2,16 +2,16 @@ import { jsxs as f, jsx as e, Fragment as I } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as le, useId as se, useMemo as ce } from "react";
|
|
3
3
|
import { c as de } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as pe } from "react-i18next";
|
|
5
|
-
import { B as
|
|
5
|
+
import { B as P } from "./badge-BudgzTe_.js";
|
|
6
6
|
import { C as T } from "./card-DPmk26CL.js";
|
|
7
7
|
import { K as fe, a as ue } from "./key-value-pair-DaQI_LZB.js";
|
|
8
8
|
import { L as d } from "./link-CPb_pZPr.js";
|
|
9
|
-
import {
|
|
9
|
+
import { b as me } from "./format-price-DAbh61Lz.js";
|
|
10
10
|
import { u as he } from "./registry-DvAUVLHh.js";
|
|
11
11
|
import { S as F } from "./stethoscope-sZXGC43m.js";
|
|
12
|
-
import { H } from "./heart--qCA4ffe.js";
|
|
13
|
-
import { B as
|
|
14
|
-
import { S as
|
|
12
|
+
import { H as O } from "./heart--qCA4ffe.js";
|
|
13
|
+
import { B as H, L as _ } from "./languages-CZqBaPwI.js";
|
|
14
|
+
import { S as z } from "./shield-check-DCJALLVh.js";
|
|
15
15
|
import { G as B } from "./globe-sHBW1JN5.js";
|
|
16
16
|
import { M as E } from "./mail-BqXVF2zH.js";
|
|
17
17
|
import { M as K } from "./message-circle-Bepl9JT5.js";
|
|
@@ -62,20 +62,20 @@ const ge = {
|
|
|
62
62
|
function Ce(n) {
|
|
63
63
|
return n.replace(/[^\d+]/g, "");
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function be(n, r) {
|
|
66
66
|
const a = `https://wa.me/${n}`;
|
|
67
67
|
return r ? `${a}?text=${encodeURIComponent(r)}` : a;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function xe(n) {
|
|
70
70
|
return `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(n.line)}`;
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function Pe() {
|
|
73
73
|
if (typeof document > "u") return "4945a3";
|
|
74
74
|
const n = getComputedStyle(document.documentElement).getPropertyValue("--map-marker-color").trim(), r = /^#?([0-9a-fA-F]{6})$/.exec(n);
|
|
75
75
|
return r ? r[1] : "4945a3";
|
|
76
76
|
}
|
|
77
77
|
function ye({ apiKey: n, center: r, zoom: a, altText: s }) {
|
|
78
|
-
const c =
|
|
78
|
+
const c = Pe(), u = `https://maps.googleapis.com/maps/api/staticmap?center=${r.lat},${r.lng}&zoom=${a}&size=640x192&scale=2&markers=color:0x${c}%7C${r.lat},${r.lng}&key=${encodeURIComponent(n)}`;
|
|
79
79
|
return /* @__PURE__ */ e(
|
|
80
80
|
"img",
|
|
81
81
|
{
|
|
@@ -104,7 +104,7 @@ const ke = le(
|
|
|
104
104
|
insurances: v,
|
|
105
105
|
firstVisitPriceCents: C,
|
|
106
106
|
currencyCode: y = "EUR",
|
|
107
|
-
profession:
|
|
107
|
+
profession: b,
|
|
108
108
|
specializedInFearPatients: L,
|
|
109
109
|
googleMapsApiKey: k,
|
|
110
110
|
mapZoom: j = 14,
|
|
@@ -117,14 +117,19 @@ const ke = le(
|
|
|
117
117
|
mapSlot: X,
|
|
118
118
|
surface: w = "elevated",
|
|
119
119
|
"aria-label": Z,
|
|
120
|
-
id:
|
|
120
|
+
id: x,
|
|
121
121
|
className: ee,
|
|
122
122
|
...ae
|
|
123
123
|
}, te) => {
|
|
124
124
|
const { t, i18n: M } = pe(), $ = se(), A = M.language ?? "en", N = n ?? t("contactProfileCard.heading"), re = Z ?? N, R = ce(() => {
|
|
125
125
|
if (C != null)
|
|
126
|
-
return me(
|
|
127
|
-
|
|
126
|
+
return me(
|
|
127
|
+
C,
|
|
128
|
+
y,
|
|
129
|
+
A,
|
|
130
|
+
t("common.freeOfCharge")
|
|
131
|
+
);
|
|
132
|
+
}, [C, y, A, t]), o = [];
|
|
128
133
|
if (a && o.push({
|
|
129
134
|
key: "address",
|
|
130
135
|
icon: /* @__PURE__ */ e(G, { "aria-hidden": "true" }),
|
|
@@ -134,7 +139,7 @@ const ke = le(
|
|
|
134
139
|
a.lat != null && a.lng != null ? /* @__PURE__ */ e(
|
|
135
140
|
d,
|
|
136
141
|
{
|
|
137
|
-
href:
|
|
142
|
+
href: xe(a),
|
|
138
143
|
external: !0,
|
|
139
144
|
intent: "default",
|
|
140
145
|
onClick: D,
|
|
@@ -162,7 +167,7 @@ const ke = le(
|
|
|
162
167
|
value: /* @__PURE__ */ e(
|
|
163
168
|
d,
|
|
164
169
|
{
|
|
165
|
-
href:
|
|
170
|
+
href: be(c, u),
|
|
166
171
|
external: !0,
|
|
167
172
|
intent: "default",
|
|
168
173
|
onClick: W,
|
|
@@ -195,36 +200,36 @@ const ke = le(
|
|
|
195
200
|
};
|
|
196
201
|
o.push({
|
|
197
202
|
key: "languages",
|
|
198
|
-
icon: /* @__PURE__ */ e(
|
|
203
|
+
icon: /* @__PURE__ */ e(_, { "aria-hidden": "true" }),
|
|
199
204
|
label: t("contactProfileCard.label.languages"),
|
|
200
|
-
value: /* @__PURE__ */ e("span", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: g.map((l) => /* @__PURE__ */ e(
|
|
205
|
+
value: /* @__PURE__ */ e("span", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: g.map((l) => /* @__PURE__ */ e(P, { variant: "neutral", children: i(l) }, l)) })
|
|
201
206
|
});
|
|
202
207
|
}
|
|
203
208
|
v && v.length > 0 && o.push({
|
|
204
209
|
key: "insurances",
|
|
205
|
-
icon: /* @__PURE__ */ e(
|
|
210
|
+
icon: /* @__PURE__ */ e(z, { "aria-hidden": "true" }),
|
|
206
211
|
label: t("contactProfileCard.label.insurances"),
|
|
207
|
-
value: /* @__PURE__ */ e("span", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: v.map((i) => /* @__PURE__ */ e(
|
|
212
|
+
value: /* @__PURE__ */ e("span", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: v.map((i) => /* @__PURE__ */ e(P, { variant: "info", children: i }, i)) })
|
|
208
213
|
}), R && o.push({
|
|
209
214
|
key: "firstVisitPrice",
|
|
210
|
-
icon: /* @__PURE__ */ e(
|
|
215
|
+
icon: /* @__PURE__ */ e(H, { "aria-hidden": "true" }),
|
|
211
216
|
label: t("contactProfileCard.label.firstVisitPrice"),
|
|
212
|
-
value: /* @__PURE__ */ e(
|
|
217
|
+
value: /* @__PURE__ */ e(P, { variant: "accentSoft", size: "lg", children: R }),
|
|
213
218
|
alignValue: "end"
|
|
214
219
|
}), L && o.push({
|
|
215
220
|
key: "expertForAnxiousPatients",
|
|
216
|
-
icon: /* @__PURE__ */ e(
|
|
221
|
+
icon: /* @__PURE__ */ e(O, { "aria-hidden": "true" }),
|
|
217
222
|
label: t("contactProfileCard.label.expertForAnxiousPatients"),
|
|
218
223
|
value: t("contactProfileCard.value.yesShort")
|
|
219
|
-
}),
|
|
224
|
+
}), b && o.push({
|
|
220
225
|
key: "profession",
|
|
221
226
|
icon: /* @__PURE__ */ e(F, { "aria-hidden": "true" }),
|
|
222
227
|
label: t("contactProfileCard.label.profession"),
|
|
223
|
-
value:
|
|
228
|
+
value: b
|
|
224
229
|
}), he(
|
|
225
230
|
ge,
|
|
226
|
-
{ getProfession: () =>
|
|
227
|
-
|
|
231
|
+
{ getProfession: () => b },
|
|
232
|
+
x
|
|
228
233
|
);
|
|
229
234
|
const ne = !!k && (a == null ? void 0 : a.lat) !== void 0 && (a == null ? void 0 : a.lng) !== void 0 ? /* @__PURE__ */ e(
|
|
230
235
|
ye,
|
|
@@ -273,8 +278,8 @@ const ke = le(
|
|
|
273
278
|
"aria-label": re,
|
|
274
279
|
"aria-labelledby": $,
|
|
275
280
|
"data-component": "contact-profile-card",
|
|
276
|
-
"data-component-id":
|
|
277
|
-
id:
|
|
281
|
+
"data-component-id": x,
|
|
282
|
+
id: x,
|
|
278
283
|
className: ve({ surface: w, className: ee }),
|
|
279
284
|
...ae,
|
|
280
285
|
children: w === "elevated" ? /* @__PURE__ */ e(T, { variant: "elevated", children: /* @__PURE__ */ e(T.Body, { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: S }) }) : /* @__PURE__ */ e("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: S })
|
|
@@ -300,10 +305,10 @@ const Le = [
|
|
|
300
305
|
whatsapp: K,
|
|
301
306
|
email: E,
|
|
302
307
|
website: B,
|
|
303
|
-
languages:
|
|
304
|
-
insurances:
|
|
305
|
-
firstVisitPrice:
|
|
306
|
-
expertForAnxiousPatients:
|
|
308
|
+
languages: _,
|
|
309
|
+
insurances: z,
|
|
310
|
+
firstVisitPrice: H,
|
|
311
|
+
expertForAnxiousPatients: O,
|
|
307
312
|
profession: F
|
|
308
313
|
};
|
|
309
314
|
export {
|
|
@@ -312,4 +317,4 @@ export {
|
|
|
312
317
|
ke as b,
|
|
313
318
|
ge as c
|
|
314
319
|
};
|
|
315
|
-
//# sourceMappingURL=contact-profile-card-
|
|
320
|
+
//# sourceMappingURL=contact-profile-card-C0WpwpVV.js.map
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { jsx as r, jsxs as p } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as o, useId as k, useEffect as v, useCallback as E } from "react";
|
|
3
|
+
import { useTranslation as j } from "react-i18next";
|
|
4
|
+
import { c as I } from "./index-D2ZczOXr.js";
|
|
5
|
+
import { I as N } from "./icon-button-CehAeZoP.js";
|
|
6
|
+
import { X as z } from "./x-B5YnXwCz.js";
|
|
7
|
+
const R = I(
|
|
8
|
+
[
|
|
9
|
+
// Spans the editor's block-end edge (a docked bar) and expands from the pill.
|
|
10
|
+
"ds:absolute ds:z-20",
|
|
11
|
+
"ds:[inset-inline-start:var(--spacing-md)] ds:[inset-inline-end:var(--spacing-md)]",
|
|
12
|
+
"ds:[inset-block-end:var(--spacing-md)]",
|
|
13
|
+
// Slim docked bar — compact but with a little breathing room.
|
|
14
|
+
"ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
15
|
+
"ds:p-[var(--spacing-md)]",
|
|
16
|
+
"ds:rounded-[var(--radius-lg)]",
|
|
17
|
+
// Apple "Liquid Glass": a translucent base + backdrop blur/saturate so the
|
|
18
|
+
// editor shows through, a specular top "rim" + inner hairline ring, and a
|
|
19
|
+
// soft drop shadow for a floating slab. --card-border is theme-aware (dark
|
|
20
|
+
// hairline on light themes, bright on dark), so the rim reads in all four.
|
|
21
|
+
"ds:bg-[color-mix(in_srgb,var(--popover)_64%,transparent)]",
|
|
22
|
+
"ds:backdrop-blur-xl ds:backdrop-saturate-150",
|
|
23
|
+
"ds:border ds:border-[color-mix(in_srgb,var(--card-border)_70%,transparent)]",
|
|
24
|
+
"ds:shadow-[inset_0_1px_0_0_var(--card-border),inset_0_0_0_1px_color-mix(in_srgb,var(--card-border)_35%,transparent),var(--shadow-lg)]",
|
|
25
|
+
// Liquid-glass grow out of the pill (bottom-inline-end origin).
|
|
26
|
+
"ds:origin-bottom-right ds:animate-in ds:fade-in-0 ds:zoom-in-95",
|
|
27
|
+
"ds:motion-reduce:animate-none"
|
|
28
|
+
].join(" ")
|
|
29
|
+
), F = "ds:text-[length:var(--font-size-base)] ds:font-medium ds:text-[color:var(--foreground)]";
|
|
30
|
+
function D({
|
|
31
|
+
open: d,
|
|
32
|
+
onClose: s,
|
|
33
|
+
title: n,
|
|
34
|
+
ariaLabel: b,
|
|
35
|
+
children: g,
|
|
36
|
+
footer: i,
|
|
37
|
+
id: x,
|
|
38
|
+
className: _
|
|
39
|
+
}) {
|
|
40
|
+
const { t: h } = j(), t = o(null), c = o(null), l = k(), m = o(s);
|
|
41
|
+
v(() => {
|
|
42
|
+
m.current = s;
|
|
43
|
+
}, [s]);
|
|
44
|
+
const w = E(() => s(), [s]);
|
|
45
|
+
return v(() => {
|
|
46
|
+
if (!d) return;
|
|
47
|
+
c.current = document.activeElement;
|
|
48
|
+
const y = window.requestAnimationFrame(() => {
|
|
49
|
+
var a, f;
|
|
50
|
+
(f = ((a = t.current) == null ? void 0 : a.querySelector(
|
|
51
|
+
'input, textarea, button, [tabindex]:not([tabindex="-1"])'
|
|
52
|
+
)) ?? t.current) == null || f.focus();
|
|
53
|
+
}), u = (e) => {
|
|
54
|
+
e.key === "Escape" && !e.defaultPrevented && (e.stopPropagation(), m.current());
|
|
55
|
+
};
|
|
56
|
+
return document.addEventListener("keydown", u), () => {
|
|
57
|
+
var e, a;
|
|
58
|
+
window.cancelAnimationFrame(y), document.removeEventListener("keydown", u), (a = (e = c.current) == null ? void 0 : e.focus) == null || a.call(e);
|
|
59
|
+
};
|
|
60
|
+
}, [d]), d ? /* @__PURE__ */ r("div", { "data-component": "editor-overlay", "data-component-id": x, children: /* @__PURE__ */ p(
|
|
61
|
+
"div",
|
|
62
|
+
{
|
|
63
|
+
ref: t,
|
|
64
|
+
role: "dialog",
|
|
65
|
+
"aria-modal": "false",
|
|
66
|
+
"aria-labelledby": n ? l : void 0,
|
|
67
|
+
"aria-label": n ? void 0 : b,
|
|
68
|
+
tabIndex: -1,
|
|
69
|
+
className: [R(), _].filter(Boolean).join(" "),
|
|
70
|
+
children: [
|
|
71
|
+
n ? /* @__PURE__ */ p("div", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
72
|
+
/* @__PURE__ */ r("div", { id: l, className: F, children: n }),
|
|
73
|
+
/* @__PURE__ */ r(
|
|
74
|
+
N,
|
|
75
|
+
{
|
|
76
|
+
size: "sm",
|
|
77
|
+
intent: "ghost",
|
|
78
|
+
icon: /* @__PURE__ */ r(z, {}),
|
|
79
|
+
"aria-label": h("common.close"),
|
|
80
|
+
onClick: w
|
|
81
|
+
}
|
|
82
|
+
)
|
|
83
|
+
] }) : null,
|
|
84
|
+
/* @__PURE__ */ r("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: g }),
|
|
85
|
+
i ? /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-end ds:gap-[var(--spacing-sm)]", children: i }) : null
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
) }) : null;
|
|
89
|
+
}
|
|
90
|
+
export {
|
|
91
|
+
D as E
|
|
92
|
+
};
|
|
93
|
+
//# sourceMappingURL=editor-overlay-DwNKaI22.js.map
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
const n = /* @__PURE__ */ new Set([
|
|
2
|
+
"BIF",
|
|
3
|
+
"CLP",
|
|
4
|
+
"DJF",
|
|
5
|
+
"GNF",
|
|
6
|
+
"IDR",
|
|
7
|
+
"JPY",
|
|
8
|
+
"KMF",
|
|
9
|
+
"KRW",
|
|
10
|
+
"MGA",
|
|
11
|
+
"PYG",
|
|
12
|
+
"RWF",
|
|
13
|
+
"UGX",
|
|
14
|
+
"VND",
|
|
15
|
+
"VUV",
|
|
16
|
+
"XAF",
|
|
17
|
+
"XOF",
|
|
18
|
+
"XPF"
|
|
19
|
+
]);
|
|
20
|
+
function s(r, a, c) {
|
|
21
|
+
const t = a.toUpperCase(), e = n.has(t) ? r : r / 100;
|
|
22
|
+
try {
|
|
23
|
+
return new Intl.NumberFormat(c, {
|
|
24
|
+
style: "currency",
|
|
25
|
+
currency: t
|
|
26
|
+
}).format(e);
|
|
27
|
+
} catch {
|
|
28
|
+
return `${n.has(t) ? String(e) : e.toFixed(2)} ${t}`;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
function u(r, a, c, t) {
|
|
32
|
+
return r === 0 ? t : s(r, a, c);
|
|
33
|
+
}
|
|
34
|
+
function F(r, a, c, t = {}) {
|
|
35
|
+
const e = a.toUpperCase(), o = n.has(e) ? r : r / 100;
|
|
36
|
+
try {
|
|
37
|
+
return new Intl.NumberFormat(c, {
|
|
38
|
+
style: "currency",
|
|
39
|
+
currency: e,
|
|
40
|
+
...t
|
|
41
|
+
}).formatToParts(o);
|
|
42
|
+
} catch {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
export {
|
|
47
|
+
s as a,
|
|
48
|
+
u as b,
|
|
49
|
+
F as f
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=format-price-DAbh61Lz.js.map
|