@alfadocs/ui-kit 1.80.0 → 1.82.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-GnoSkvh6.js → address-fields-CfnXK8RT.js} +4 -4
- package/dist/_chunks/{ai-prompt-input-M6u29f87.js → ai-prompt-input-DH_rnV-F.js} +33 -26
- package/dist/_chunks/{anamnesis-summary-rows-lONg-zja.js → anamnesis-summary-rows-6gMuu0ZK.js} +2 -2
- package/dist/_chunks/{autocomplete-DosDnGie.js → autocomplete-CnB1mHGc.js} +65 -64
- package/dist/_chunks/{balance-badge-cell-Dzd-Z_5W.js → balance-badge-cell-BHXJS8Ga.js} +2 -2
- package/dist/_chunks/{benefit-card-BWBClvdF.js → benefit-card-BcPtRHgM.js} +37 -36
- package/dist/_chunks/booking-dsgiuhKg.js +4304 -0
- package/dist/_chunks/{calendar-appointment-editor-dialog-DhTTWgXw.js → calendar-appointment-editor-dialog-BuumJbcv.js} +4 -4
- package/dist/_chunks/{city-input-3J3bz9EO.js → city-input-CJVGswxp.js} +2 -2
- package/dist/_chunks/{combobox-vF9O-QoG.js → combobox-CDPm_n0p.js} +93 -92
- package/dist/_chunks/{command-palette-D9TBzmOG.js → command-palette-B3dVqm9D.js} +68 -68
- package/dist/_chunks/{contact-profile-card-DKk94l-d.js → contact-profile-card-Da1vmJQI.js} +115 -102
- package/dist/_chunks/{country-select-CSE2Zm_s.js → country-select-DQ8q7ypA.js} +2 -2
- package/dist/_chunks/{face-scheme-BIPJqw9f.js → face-scheme-BgJGFDTa.js} +2 -2
- package/dist/_chunks/{header-settings-BYpVmLip.js → header-settings-CifwJEKB.js} +2 -2
- package/dist/_chunks/{link-cell-renderer-B0riA_h_.js → link-cell-renderer-C0ynDik7.js} +3 -3
- package/dist/_chunks/{locale-picker-DzdGDSBI.js → locale-picker-QbT1p60X.js} +39 -38
- package/dist/_chunks/{map-view-C6MIVaqn.js → map-view-Bvi06RVh.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-mS7Q2-81.js → marketplace-app-shell-vON3WhD0.js} +2 -2
- package/dist/_chunks/{multi-select-BOad3za9.js → multi-select-i5MFRpXg.js} +194 -187
- package/dist/_chunks/{otp-input-BgEZi0py.js → otp-input-gV1446Dw.js} +70 -70
- package/dist/_chunks/{patient-details-B-I9Xkh9.js → patient-details-D0P5eog5.js} +2 -2
- package/dist/_chunks/{patient-field-row-Bn0z6lAZ.js → patient-field-row-R73dZJY6.js} +5 -5
- package/dist/_chunks/{patient-search-CxqNcth4.js → patient-search-Dy0sxcwv.js} +2 -2
- package/dist/_chunks/{patient-summary-card-bhDo0gVX.js → patient-summary-card-6U74-ivO.js} +2 -2
- package/dist/_chunks/{payment-automation-upsell-AQpHOS1X.js → payment-automation-upsell-D1YdO1xY.js} +2 -2
- package/dist/_chunks/{phone-input-C3NrD-nl.js → phone-input-DJ4BN8tG.js} +70 -63
- package/dist/_chunks/{practice-results-CtOanuzZ.js → practice-results-B61krlwu.js} +2 -2
- package/dist/_chunks/{province-select-CDjs5obD.js → province-select-CPdTwEob.js} +2 -2
- package/dist/_chunks/{registration-form-CNBfUduG.js → registration-form-DmP3YUfp.js} +3 -3
- package/dist/_chunks/{send-registration-link-form-vTn1HxjA.js → send-registration-link-form-CZYOO7NO.js} +2 -2
- package/dist/_chunks/{task-editor-Cpw-NmND.js → task-editor-BOETWbjU.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-lFUL4kkd.js → use-appointment-details-read-CWN-nJCZ.js} +2 -2
- package/dist/agent-catalog.json +4 -4
- package/dist/agent-i18n/en.json +1 -1
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/benefit-card/benefit-card.d.ts +7 -1
- package/dist/components/benefit-card/index.js +1 -1
- package/dist/components/booking/booking-types.d.ts +35 -2
- package/dist/components/booking/code-step.d.ts +4 -2
- package/dist/components/booking/details-form.d.ts +2 -0
- package/dist/components/booking/handover.d.ts +12 -0
- package/dist/components/booking/index.js +1 -1
- package/dist/components/booking/reserved.d.ts +24 -0
- package/dist/components/booking/use-booking-payment.d.ts +3 -1
- package/dist/components/city-input/index.js +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/command-palette/index.js +1 -1
- package/dist/components/contact-profile-card/contact-profile-card.d.ts +4 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/country-select/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/otp-input/index.js +1 -1
- package/dist/components/otp-input/otp-input.d.ts +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/practice-results/index.js +1 -1
- package/dist/components/province-select/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +8 -0
- package/dist/i18n/locales/ar.js +8 -0
- package/dist/i18n/locales/de.d.ts +8 -0
- package/dist/i18n/locales/de.js +8 -0
- package/dist/i18n/locales/el.d.ts +8 -0
- package/dist/i18n/locales/el.js +8 -0
- package/dist/i18n/locales/en.d.ts +8 -0
- package/dist/i18n/locales/en.js +8 -0
- package/dist/i18n/locales/es.d.ts +8 -0
- package/dist/i18n/locales/es.js +8 -0
- package/dist/i18n/locales/fr.d.ts +8 -0
- package/dist/i18n/locales/fr.js +8 -0
- package/dist/i18n/locales/hi.d.ts +8 -0
- package/dist/i18n/locales/hi.js +8 -0
- package/dist/i18n/locales/it.d.ts +8 -0
- package/dist/i18n/locales/it.js +8 -0
- package/dist/i18n/locales/ja.d.ts +8 -0
- package/dist/i18n/locales/ja.js +8 -0
- package/dist/i18n/locales/nl.d.ts +8 -0
- package/dist/i18n/locales/nl.js +8 -0
- package/dist/i18n/locales/pl.d.ts +8 -0
- package/dist/i18n/locales/pl.js +8 -0
- package/dist/i18n/locales/pt.d.ts +8 -0
- package/dist/i18n/locales/pt.js +8 -0
- package/dist/i18n/locales/ro.d.ts +8 -0
- package/dist/i18n/locales/ro.js +8 -0
- package/dist/i18n/locales/ru.d.ts +8 -0
- package/dist/i18n/locales/ru.js +8 -0
- package/dist/i18n/locales/sq.d.ts +8 -0
- package/dist/i18n/locales/sq.js +8 -0
- package/dist/i18n/locales/sv.d.ts +8 -0
- package/dist/i18n/locales/sv.js +8 -0
- package/dist/i18n/locales/tr.d.ts +8 -0
- package/dist/i18n/locales/tr.js +8 -0
- package/dist/i18n/locales/zh.d.ts +8 -0
- package/dist/i18n/locales/zh.js +8 -0
- package/dist/index.js +30 -30
- package/dist/locales/ar.json +8 -0
- package/dist/locales/de.json +8 -0
- package/dist/locales/el.json +8 -0
- package/dist/locales/en.json +8 -0
- package/dist/locales/es.json +8 -0
- package/dist/locales/fr.json +8 -0
- package/dist/locales/hi.json +8 -0
- package/dist/locales/it.json +8 -0
- package/dist/locales/ja.json +8 -0
- package/dist/locales/nl.json +8 -0
- package/dist/locales/pl.json +8 -0
- package/dist/locales/pt.json +8 -0
- package/dist/locales/ro.json +8 -0
- package/dist/locales/ru.json +8 -0
- package/dist/locales/sq.json +8 -0
- package/dist/locales/sv.json +8 -0
- package/dist/locales/tr.json +8 -0
- package/dist/locales/zh.json +8 -0
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/payment-automation-upsell/index.js +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/send-registration-link-form/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/booking-By4I_1A-.js +0 -4068
|
@@ -46,8 +46,8 @@ const he = {
|
|
|
46
46
|
examples: [{ args: { value: "123456" } }],
|
|
47
47
|
descriptionKey: "ui.agent.otpInput.actions.setValue",
|
|
48
48
|
description: "Replace the entered digits.",
|
|
49
|
-
invoke: (a,
|
|
50
|
-
a.setValue(
|
|
49
|
+
invoke: (a, o) => {
|
|
50
|
+
a.setValue(o.value);
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
clear: {
|
|
@@ -103,18 +103,18 @@ const he = {
|
|
|
103
103
|
}
|
|
104
104
|
);
|
|
105
105
|
function z(a) {
|
|
106
|
-
return a.replace(/[\u0660-\u0669]/g, (
|
|
106
|
+
return a.replace(/[\u0660-\u0669]/g, (o) => String(o.charCodeAt(0) - 1632)).replace(/[\u06F0-\u06F9]/g, (o) => String(o.charCodeAt(0) - 1776));
|
|
107
107
|
}
|
|
108
108
|
const ye = 3, we = 10;
|
|
109
109
|
function Ie(a) {
|
|
110
|
-
const
|
|
111
|
-
return Math.max(ye, Math.min(we,
|
|
110
|
+
const o = Number.isFinite(a) ? Math.floor(a) : 6;
|
|
111
|
+
return Math.max(ye, Math.min(we, o));
|
|
112
112
|
}
|
|
113
|
-
function k(a,
|
|
114
|
-
return (g === "alphanumeric" ? a.replace(/[^A-Za-z0-9]/g, "").toUpperCase() : z(a).replace(/\D/g, "")).slice(0,
|
|
113
|
+
function k(a, o, g) {
|
|
114
|
+
return (g === "alphanumeric" ? a.replace(/[^A-Za-z0-9]/g, "").toUpperCase() : z(a).replace(/\D/g, "")).slice(0, o);
|
|
115
115
|
}
|
|
116
|
-
function ke(a,
|
|
117
|
-
const p = k(a,
|
|
116
|
+
function ke(a, o, g) {
|
|
117
|
+
const p = k(a, o, g), d = new Array(o).fill("");
|
|
118
118
|
for (let m = 0; m < p.length; m += 1)
|
|
119
119
|
d[m] = p[m];
|
|
120
120
|
return d;
|
|
@@ -122,7 +122,7 @@ function ke(a, n, g) {
|
|
|
122
122
|
const Ve = se(
|
|
123
123
|
({
|
|
124
124
|
length: a = 6,
|
|
125
|
-
value:
|
|
125
|
+
value: o,
|
|
126
126
|
defaultValue: g,
|
|
127
127
|
onChange: p,
|
|
128
128
|
onComplete: d,
|
|
@@ -137,29 +137,29 @@ const Ve = se(
|
|
|
137
137
|
mode: i = "numeric"
|
|
138
138
|
}, q) => {
|
|
139
139
|
const { t: x } = ue("ui"), r = Ie(a), v = fe(), G = ne(), B = V ? G : void 0, [W, H] = pe({
|
|
140
|
-
value:
|
|
140
|
+
value: o,
|
|
141
141
|
defaultValue: k(g ?? "", r, i)
|
|
142
142
|
}), h = k(W ?? "", r, i), X = ke(h, r, i), y = v.disabled || !!m, O = v.invalid || !!$, J = O ? "error" : "default", P = R([]), D = R(h.length === r), f = R(h);
|
|
143
143
|
f.current = h;
|
|
144
144
|
const Q = () => {
|
|
145
|
-
const
|
|
146
|
-
return
|
|
145
|
+
const e = h.length;
|
|
146
|
+
return e >= r ? r - 1 : e;
|
|
147
147
|
}, [b, A] = oe(Q);
|
|
148
148
|
ie(() => {
|
|
149
149
|
b >= r && A(r - 1);
|
|
150
150
|
}, [b, r]);
|
|
151
151
|
const l = S(
|
|
152
|
-
(t) => {
|
|
153
|
-
const
|
|
154
|
-
A(
|
|
155
|
-
const s = P.current[
|
|
156
|
-
s && (s.focus(), s.select());
|
|
152
|
+
(e, t) => {
|
|
153
|
+
const n = Math.max(0, Math.min(r - 1, e));
|
|
154
|
+
A(n);
|
|
155
|
+
const s = P.current[n];
|
|
156
|
+
s && (s.focus(t), s.select());
|
|
157
157
|
},
|
|
158
158
|
[r]
|
|
159
159
|
), u = S(
|
|
160
|
-
(
|
|
161
|
-
const
|
|
162
|
-
H(
|
|
160
|
+
(e) => {
|
|
161
|
+
const t = k(e, r, i);
|
|
162
|
+
H(t), f.current = t, p == null || p(t), t.length === r ? D.current || (D.current = !0, d == null || d(t)) : D.current = !1;
|
|
163
163
|
},
|
|
164
164
|
[H, r, i, p, d]
|
|
165
165
|
);
|
|
@@ -167,67 +167,67 @@ const Ve = se(
|
|
|
167
167
|
enabled: U && !y,
|
|
168
168
|
onCode: u
|
|
169
169
|
});
|
|
170
|
-
const Y = (
|
|
171
|
-
const
|
|
172
|
-
if (
|
|
173
|
-
if (
|
|
174
|
-
const N = c.slice(0,
|
|
170
|
+
const Y = (e) => (t) => {
|
|
171
|
+
const n = t.target.value, s = i === "alphanumeric" ? n.replace(/[^A-Za-z0-9]/g, "").toUpperCase() : z(n).replace(/\D/g, ""), c = f.current;
|
|
172
|
+
if (s.length === 0) {
|
|
173
|
+
if (n === "" && e < c.length) {
|
|
174
|
+
const N = c.slice(0, e) + c.slice(e + 1);
|
|
175
175
|
u(N);
|
|
176
176
|
}
|
|
177
177
|
return;
|
|
178
178
|
}
|
|
179
|
-
const w = c.slice(0,
|
|
179
|
+
const w = c.slice(0, e), C = c.slice(e + s.length), F = (w + s + C).slice(0, r);
|
|
180
180
|
u(F);
|
|
181
|
-
const L = Math.min(
|
|
181
|
+
const L = Math.min(e + s.length, r - 1);
|
|
182
182
|
l(L);
|
|
183
|
-
}, ee = (
|
|
184
|
-
const
|
|
185
|
-
if (
|
|
186
|
-
if (
|
|
187
|
-
|
|
188
|
-
const
|
|
189
|
-
u(
|
|
183
|
+
}, ee = (e) => (t) => {
|
|
184
|
+
const n = f.current;
|
|
185
|
+
if (t.key === "Backspace") {
|
|
186
|
+
if (n[e]) {
|
|
187
|
+
t.preventDefault();
|
|
188
|
+
const s = n.slice(0, e) + n.slice(e + 1);
|
|
189
|
+
u(s);
|
|
190
190
|
return;
|
|
191
191
|
}
|
|
192
|
-
if (
|
|
193
|
-
|
|
194
|
-
const
|
|
195
|
-
u(
|
|
192
|
+
if (e > 0) {
|
|
193
|
+
t.preventDefault();
|
|
194
|
+
const s = n.slice(0, e - 1) + n.slice(e);
|
|
195
|
+
u(s), l(e - 1);
|
|
196
196
|
}
|
|
197
197
|
return;
|
|
198
198
|
}
|
|
199
|
-
if (
|
|
200
|
-
|
|
199
|
+
if (t.key === "ArrowLeft") {
|
|
200
|
+
t.preventDefault(), e > 0 && l(e - 1);
|
|
201
201
|
return;
|
|
202
202
|
}
|
|
203
|
-
if (
|
|
204
|
-
|
|
203
|
+
if (t.key === "ArrowRight") {
|
|
204
|
+
t.preventDefault(), e < r - 1 && l(e + 1);
|
|
205
205
|
return;
|
|
206
206
|
}
|
|
207
|
-
if (
|
|
208
|
-
|
|
207
|
+
if (t.key === "Home") {
|
|
208
|
+
t.preventDefault(), l(0);
|
|
209
209
|
return;
|
|
210
210
|
}
|
|
211
|
-
|
|
212
|
-
}, te = (
|
|
213
|
-
const
|
|
211
|
+
t.key === "End" && (t.preventDefault(), l(r - 1));
|
|
212
|
+
}, te = (e) => (t) => {
|
|
213
|
+
const s = t.clipboardData.getData("text").replace(/\s+/g, ""), c = i === "alphanumeric" ? s.replace(/[^A-Za-z0-9]/g, "").toUpperCase() : z(s);
|
|
214
214
|
if (i === "alphanumeric" ? c.length === 0 : !/^[0-9]+$/.test(c))
|
|
215
215
|
return;
|
|
216
|
-
|
|
217
|
-
const w = f.current, C = w.slice(0,
|
|
216
|
+
t.preventDefault();
|
|
217
|
+
const w = f.current, C = w.slice(0, e), F = w.slice(e + c.length), L = (C + c + F).slice(0, r);
|
|
218
218
|
u(L);
|
|
219
|
-
const N = Math.min(
|
|
219
|
+
const N = Math.min(e + c.length, r - 1);
|
|
220
220
|
l(N);
|
|
221
|
-
}, re = (
|
|
222
|
-
A(
|
|
221
|
+
}, re = (e) => (t) => {
|
|
222
|
+
A(e), t.currentTarget.select();
|
|
223
223
|
}, T = v.id;
|
|
224
224
|
ge(v, `${T}-0`);
|
|
225
225
|
const M = ce(
|
|
226
226
|
() => ({
|
|
227
227
|
getValue: () => f.current,
|
|
228
|
-
setValue: (
|
|
228
|
+
setValue: (e) => u(e),
|
|
229
229
|
clear: () => u(""),
|
|
230
|
-
focus: () => l(b),
|
|
230
|
+
focus: (e) => l(b, e),
|
|
231
231
|
isComplete: () => f.current.length === r
|
|
232
232
|
}),
|
|
233
233
|
[u, l, b, r]
|
|
@@ -254,38 +254,38 @@ const Ve = se(
|
|
|
254
254
|
"data-component": "otp-input",
|
|
255
255
|
"data-component-id": E,
|
|
256
256
|
className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
257
|
-
children: X.map((
|
|
258
|
-
const
|
|
257
|
+
children: X.map((e, t) => {
|
|
258
|
+
const n = !y && t === b;
|
|
259
259
|
return /* @__PURE__ */ I(
|
|
260
260
|
"input",
|
|
261
261
|
{
|
|
262
|
-
ref: (
|
|
263
|
-
P.current[
|
|
262
|
+
ref: (s) => {
|
|
263
|
+
P.current[t] = s;
|
|
264
264
|
},
|
|
265
|
-
id: `${T}-${
|
|
265
|
+
id: `${T}-${t}`,
|
|
266
266
|
type: "text",
|
|
267
267
|
inputMode: i === "alphanumeric" ? "text" : "numeric",
|
|
268
268
|
pattern: i === "alphanumeric" ? "[A-Za-z0-9]*" : "[0-9]*",
|
|
269
269
|
autoCapitalize: i === "alphanumeric" ? "characters" : void 0,
|
|
270
|
-
autoComplete:
|
|
270
|
+
autoComplete: t === 0 ? "one-time-code" : "off",
|
|
271
271
|
maxLength: 1,
|
|
272
|
-
value:
|
|
272
|
+
value: e,
|
|
273
273
|
disabled: y,
|
|
274
|
-
tabIndex:
|
|
274
|
+
tabIndex: n ? 0 : -1,
|
|
275
275
|
"aria-label": x(
|
|
276
276
|
i === "alphanumeric" ? "inputs.otp.charLabel" : "inputs.otp.digitLabel",
|
|
277
277
|
{
|
|
278
|
-
current:
|
|
278
|
+
current: t + 1,
|
|
279
279
|
total: r
|
|
280
280
|
}
|
|
281
281
|
),
|
|
282
|
-
onChange: Y(
|
|
283
|
-
onKeyDown: ee(
|
|
284
|
-
onPaste: te(
|
|
285
|
-
onFocus: re(
|
|
282
|
+
onChange: Y(t),
|
|
283
|
+
onKeyDown: ee(t),
|
|
284
|
+
onPaste: te(t),
|
|
285
|
+
onFocus: re(t),
|
|
286
286
|
className: be({ tone: J })
|
|
287
287
|
},
|
|
288
|
-
|
|
288
|
+
t
|
|
289
289
|
);
|
|
290
290
|
})
|
|
291
291
|
}
|
|
@@ -298,4 +298,4 @@ Ve.displayName = "OTPInput";
|
|
|
298
298
|
export {
|
|
299
299
|
Ve as O
|
|
300
300
|
};
|
|
301
|
-
//# sourceMappingURL=otp-input-
|
|
301
|
+
//# sourceMappingURL=otp-input-gV1446Dw.js.map
|
|
@@ -8,7 +8,7 @@ import { C as ie, b as te, a as se } from "./collapsible-DVPM46bq.js";
|
|
|
8
8
|
import { D as ae } from "./description-list-BxzDN9o2.js";
|
|
9
9
|
import { P as de } from "./panel-header-CbtlTe85.js";
|
|
10
10
|
import { u as re } from "./registry-DvAUVLHh.js";
|
|
11
|
-
import { u as ne, F as le, r as oe, P as ce } from "./patient-field-row-
|
|
11
|
+
import { u as ne, F as le, r as oe, P as ce } from "./patient-field-row-R73dZJY6.js";
|
|
12
12
|
import { C as pe } from "./clipboard-list-rSzfIYZB.js";
|
|
13
13
|
const me = {
|
|
14
14
|
id: "patient-details",
|
|
@@ -368,4 +368,4 @@ export {
|
|
|
368
368
|
ue as P,
|
|
369
369
|
me as p
|
|
370
370
|
};
|
|
371
|
-
//# sourceMappingURL=patient-details-
|
|
371
|
+
//# sourceMappingURL=patient-details-D0P5eog5.js.map
|
|
@@ -18,15 +18,15 @@ import { C as oe } from "./calendar-days-BGWklvE-.js";
|
|
|
18
18
|
import { H as le } from "./hourglass-BEAzW1wE.js";
|
|
19
19
|
import { c as G } from "./createLucideIcon-DhHxpK9K.js";
|
|
20
20
|
import { U as ce } from "./user-B12p7bVF.js";
|
|
21
|
-
import { C as de } from "./city-input-
|
|
22
|
-
import { C as ue } from "./country-select-
|
|
21
|
+
import { C as de } from "./city-input-CJVGswxp.js";
|
|
22
|
+
import { C as ue } from "./country-select-DQ8q7ypA.js";
|
|
23
23
|
import { D as me } from "./date-picker-CdhXlgVI.js";
|
|
24
24
|
import { E as pe } from "./email-input-C7THAwh2.js";
|
|
25
25
|
import { F as fe } from "./fiscal-code-input-BzWmNDnl.js";
|
|
26
26
|
import { N as ge } from "./number-input-CVwI1ltI.js";
|
|
27
|
-
import { P as he } from "./phone-input-
|
|
27
|
+
import { P as he } from "./phone-input-DJ4BN8tG.js";
|
|
28
28
|
import { P as ye } from "./postal-code-input-CfZOnIkW.js";
|
|
29
|
-
import { P as be } from "./province-select-
|
|
29
|
+
import { P as be } from "./province-select-CPdTwEob.js";
|
|
30
30
|
import { S as ve } from "./select-4S-eYZUf.js";
|
|
31
31
|
import { S as xe } from "./switch-D--x7n6h.js";
|
|
32
32
|
import { T as Ce } from "./text-area-COMVJ1yE.js";
|
|
@@ -805,4 +805,4 @@ export {
|
|
|
805
805
|
Dt as r,
|
|
806
806
|
St as u
|
|
807
807
|
};
|
|
808
|
-
//# sourceMappingURL=patient-field-row-
|
|
808
|
+
//# sourceMappingURL=patient-field-row-R73dZJY6.js.map
|
|
@@ -2,7 +2,7 @@ import { jsx as a, jsxs as w } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as ce, useRef as j, useEffect as K, useMemo as Y, useImperativeHandle as le, useState as z, useCallback as M, useId as ue } from "react";
|
|
3
3
|
import { c as L } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as C } from "react-i18next";
|
|
5
|
-
import { A as re } from "./autocomplete-
|
|
5
|
+
import { A as re } from "./autocomplete-CnB1mHGc.js";
|
|
6
6
|
import { B as fe } from "./button-DohK_Ak_.js";
|
|
7
7
|
import { C as H } from "./card-BA4Ig_kn.js";
|
|
8
8
|
import { S as pe } from "./slider-pZ95bEm7.js";
|
|
@@ -1182,4 +1182,4 @@ export {
|
|
|
1182
1182
|
Ve as P,
|
|
1183
1183
|
we as p
|
|
1184
1184
|
};
|
|
1185
|
-
//# sourceMappingURL=patient-search-
|
|
1185
|
+
//# sourceMappingURL=patient-search-Dy0sxcwv.js.map
|
|
@@ -14,7 +14,7 @@ import { T as Ke } from "./transaction-chip-CohY6sTA.js";
|
|
|
14
14
|
import { T as je } from "./tooltip-uEBdD1-5.js";
|
|
15
15
|
import { H as G } from "./hover-card-CuRIA4wN.js";
|
|
16
16
|
import { i as de } from "./is-safe-url-DkETxeHz.js";
|
|
17
|
-
import { u as qe, r as We, a as He, b as Je, F as Qe, S as Xe, A as Ye, N as Ze } from "./patient-field-row-
|
|
17
|
+
import { u as qe, r as We, a as He, b as Je, F as Qe, S as Xe, A as Ye, N as Ze } from "./patient-field-row-R73dZJY6.js";
|
|
18
18
|
import { u as Oe } from "./registry-DvAUVLHh.js";
|
|
19
19
|
import { M as ea } from "./mail-BqXVF2zH.js";
|
|
20
20
|
import { P as aa } from "./phone-FceYcIFQ.js";
|
|
@@ -548,4 +548,4 @@ export {
|
|
|
548
548
|
Ca as P,
|
|
549
549
|
ma as p
|
|
550
550
|
};
|
|
551
|
-
//# sourceMappingURL=patient-summary-card-
|
|
551
|
+
//# sourceMappingURL=patient-summary-card-6U74-ivO.js.map
|
package/dist/_chunks/{payment-automation-upsell-AQpHOS1X.js → payment-automation-upsell-D1YdO1xY.js}
RENAMED
|
@@ -2,7 +2,7 @@ import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as M, useId as r } from "react";
|
|
3
3
|
import { A as p } from "./alert-9kEwDza3.js";
|
|
4
4
|
import { B as P } from "./badge-BUk4RjTS.js";
|
|
5
|
-
import { B as y } from "./benefit-card-
|
|
5
|
+
import { B as y } from "./benefit-card-BcPtRHgM.js";
|
|
6
6
|
import { B as C } from "./button-DohK_Ak_.js";
|
|
7
7
|
import { C as d } from "./card-BA4Ig_kn.js";
|
|
8
8
|
import { L as n } from "./list-CNnn7DOD.js";
|
|
@@ -283,4 +283,4 @@ Y.displayName = "PaymentAutomationUpsell";
|
|
|
283
283
|
export {
|
|
284
284
|
Y as P
|
|
285
285
|
};
|
|
286
|
-
//# sourceMappingURL=payment-automation-upsell-
|
|
286
|
+
//# sourceMappingURL=payment-automation-upsell-D1YdO1xY.js.map
|
|
@@ -8,7 +8,7 @@ import { u as ot, f as rt } from "./non-modal-tab-exit-j3CPOuE3.js";
|
|
|
8
8
|
import { R as at, _ as I } from "./index-4xgbg-sn.js";
|
|
9
9
|
import { c as pe } from "./index-D2ZczOXr.js";
|
|
10
10
|
import { useTranslation as it } from "react-i18next";
|
|
11
|
-
import { getCountries as dt, parsePhoneNumberFromString as
|
|
11
|
+
import { getCountries as dt, parsePhoneNumberFromString as V, AsYouType as W, getCountryCallingCode as lt } from "libphonenumber-js/min";
|
|
12
12
|
import { u as ut, F as ct, a as pt } from "./form-field-context-DtiROUJV.js";
|
|
13
13
|
import { c as ft } from "./compose-refs-C0k0tdqF.js";
|
|
14
14
|
import { n as le } from "./normalize-diacritics-BNGbFNlJ.js";
|
|
@@ -257,10 +257,10 @@ const Et = Xe(
|
|
|
257
257
|
disabled: b,
|
|
258
258
|
readOnly: x,
|
|
259
259
|
placeholder: Se,
|
|
260
|
-
popularCountries:
|
|
261
|
-
allowedCountries:
|
|
260
|
+
popularCountries: D,
|
|
261
|
+
allowedCountries: L,
|
|
262
262
|
className: Ee,
|
|
263
|
-
id:
|
|
263
|
+
id: j,
|
|
264
264
|
name: Y,
|
|
265
265
|
nameFormat: ke = "national",
|
|
266
266
|
required: Pe,
|
|
@@ -272,10 +272,10 @@ const Et = Xe(
|
|
|
272
272
|
() => new Set(dt()),
|
|
273
273
|
[]
|
|
274
274
|
), p = v(() => {
|
|
275
|
-
if (!
|
|
276
|
-
const e = /* @__PURE__ */ new Set(), t =
|
|
275
|
+
if (!L || L.length === 0) return null;
|
|
276
|
+
const e = /* @__PURE__ */ new Set(), t = L.filter((n) => !h.has(n) || e.has(n) ? !1 : (e.add(n), !0));
|
|
277
277
|
return t.length > 0 ? t : null;
|
|
278
|
-
}, [
|
|
278
|
+
}, [L, h]), Ve = p !== null && p.length === 1, J = v(() => {
|
|
279
279
|
const e = Re(
|
|
280
280
|
o,
|
|
281
281
|
h,
|
|
@@ -284,7 +284,7 @@ const Et = Xe(
|
|
|
284
284
|
p
|
|
285
285
|
), t = a ?? c;
|
|
286
286
|
if (t) {
|
|
287
|
-
const n =
|
|
287
|
+
const n = V(t);
|
|
288
288
|
return n != null && n.country ? !p || p.includes(n.country) ? {
|
|
289
289
|
country: n.country,
|
|
290
290
|
display: n.formatNational(),
|
|
@@ -298,11 +298,11 @@ const Et = Xe(
|
|
|
298
298
|
} : { country: e, display: t, pinned: !1 };
|
|
299
299
|
}
|
|
300
300
|
return { country: e, display: "", pinned: !1 };
|
|
301
|
-
}, []), [l,
|
|
301
|
+
}, []), [l, A] = G(J.country), [Q, g] = G(
|
|
302
302
|
J.display
|
|
303
|
-
), [X,
|
|
303
|
+
), [X, B] = G(!1), [De, fe] = G(""), me = a !== void 0, ee = y(""), $ = y(null), H = y(J.pinned), P = y(null), Le = ft(Te, P), je = st(P, Q), he = y(null), ge = y(null);
|
|
304
304
|
de(() => {
|
|
305
|
-
if (
|
|
305
|
+
if (H.current) return;
|
|
306
306
|
const e = Re(
|
|
307
307
|
o,
|
|
308
308
|
h,
|
|
@@ -310,7 +310,7 @@ const Et = Xe(
|
|
|
310
310
|
E.language,
|
|
311
311
|
p
|
|
312
312
|
);
|
|
313
|
-
|
|
313
|
+
A((t) => t === e ? t : e);
|
|
314
314
|
}, [
|
|
315
315
|
E.language,
|
|
316
316
|
o,
|
|
@@ -325,18 +325,18 @@ const Et = Xe(
|
|
|
325
325
|
g("");
|
|
326
326
|
return;
|
|
327
327
|
}
|
|
328
|
-
const t =
|
|
329
|
-
t != null && t.country && (!p || p.includes(t.country)) ? (
|
|
328
|
+
const t = V(e);
|
|
329
|
+
t != null && t.country && (!p || p.includes(t.country)) ? (H.current = !0, A(t.country), g(t.formatNational())) : g(t ? t.formatNational() : e);
|
|
330
330
|
}, [a, me, p]), nt(() => {
|
|
331
|
-
if (
|
|
332
|
-
const e =
|
|
333
|
-
|
|
331
|
+
if ($.current == null) return;
|
|
332
|
+
const e = $.current;
|
|
333
|
+
$.current = null;
|
|
334
334
|
const t = P.current;
|
|
335
335
|
t && document.activeElement === t && t.setSelectionRange(e, e);
|
|
336
336
|
});
|
|
337
337
|
const N = U(
|
|
338
338
|
(e, t) => {
|
|
339
|
-
const n =
|
|
339
|
+
const n = V(e, t), u = (n == null ? void 0 : n.number) ?? "";
|
|
340
340
|
ee.current = u, i == null || i(u, {
|
|
341
341
|
country: t,
|
|
342
342
|
isValid: (n == null ? void 0 : n.isValid()) ?? !1,
|
|
@@ -345,9 +345,9 @@ const Et = Xe(
|
|
|
345
345
|
});
|
|
346
346
|
},
|
|
347
347
|
[i]
|
|
348
|
-
), Ae = pt(R,
|
|
349
|
-
|
|
350
|
-
const ne = y(!1),
|
|
348
|
+
), Ae = pt(R, j), Be = j ?? (k ? Ae : void 0), te = (k ? R.disabled : !1) || !!b, $e = (k ? R.required : !1) || !!Pe, ve = k ? R.invalid : !1, He = ve ? "error" : C, Ke = k && R.describedBy ? R.describedBy : void 0, Me = Se ?? z("inputs.phone.placeholder", "Phone number"), K = y(Z);
|
|
349
|
+
K.current = Z;
|
|
350
|
+
const ne = y(!1), M = y(!1), _ = U(
|
|
351
351
|
(e) => {
|
|
352
352
|
var t, n;
|
|
353
353
|
return e instanceof Node && !!((t = he.current) != null && t.contains(e) || (n = ge.current) != null && n.contains(e));
|
|
@@ -355,31 +355,31 @@ const Et = Xe(
|
|
|
355
355
|
[]
|
|
356
356
|
), se = U(() => {
|
|
357
357
|
var e;
|
|
358
|
-
ne.current && (ne.current = !1, (e =
|
|
358
|
+
ne.current && (ne.current = !1, (e = K.current) == null || e.call(K));
|
|
359
359
|
}, []), _e = () => {
|
|
360
360
|
ne.current = !0;
|
|
361
361
|
}, qe = (e) => {
|
|
362
362
|
const t = e.relatedTarget;
|
|
363
|
-
|
|
363
|
+
_(t) || t === null && M.current || se();
|
|
364
364
|
}, ye = Z !== void 0;
|
|
365
365
|
de(() => {
|
|
366
366
|
if (!ye) return;
|
|
367
367
|
let e;
|
|
368
368
|
const t = (u) => {
|
|
369
|
-
|
|
370
|
-
|
|
369
|
+
M.current = _(u.target), !M.current && (e = window.setTimeout(() => {
|
|
370
|
+
_(document.activeElement) || se();
|
|
371
371
|
}, 0));
|
|
372
372
|
}, n = () => {
|
|
373
|
-
|
|
373
|
+
M.current = !1;
|
|
374
374
|
};
|
|
375
375
|
return document.addEventListener("pointerdown", t, !0), document.addEventListener("pointerup", n, !0), document.addEventListener("pointercancel", n, !0), () => {
|
|
376
376
|
window.clearTimeout(e), document.removeEventListener("pointerdown", t, !0), document.removeEventListener("pointerup", n, !0), document.removeEventListener("pointercancel", n, !0);
|
|
377
377
|
};
|
|
378
|
-
}, [ye,
|
|
379
|
-
const oe = ke === "e164" && Y !== void 0, Ge = oe ? ((Ne =
|
|
378
|
+
}, [ye, _, se]);
|
|
379
|
+
const oe = ke === "e164" && Y !== void 0, Ge = oe ? ((Ne = V(Q, l)) == null ? void 0 : Ne.number) ?? "" : "", Ue = (e) => {
|
|
380
380
|
if (je(), x) return;
|
|
381
381
|
const t = e.target, n = t.value, u = t.selectionStart ?? n.length, S = zt(n, u), ie = new W(l).input(n);
|
|
382
|
-
|
|
382
|
+
$.current = Rt(ie, S), g(ie), N(ie, l);
|
|
383
383
|
}, be = ee, Oe = v(
|
|
384
384
|
() => ({
|
|
385
385
|
getValue: () => be.current,
|
|
@@ -388,9 +388,9 @@ const Et = Xe(
|
|
|
388
388
|
g(""), N("", l);
|
|
389
389
|
return;
|
|
390
390
|
}
|
|
391
|
-
const t =
|
|
391
|
+
const t = V(e);
|
|
392
392
|
if (t != null && t.country)
|
|
393
|
-
|
|
393
|
+
H.current = !0, A(t.country), g(t.formatNational()), N(t.formatNational(), t.country);
|
|
394
394
|
else {
|
|
395
395
|
const u = new W(l).input(e);
|
|
396
396
|
g(u), N(u, l);
|
|
@@ -406,17 +406,17 @@ const Et = Xe(
|
|
|
406
406
|
}),
|
|
407
407
|
[l, N, be]
|
|
408
408
|
);
|
|
409
|
-
tt(gt, Oe,
|
|
409
|
+
tt(gt, Oe, j);
|
|
410
410
|
const We = ot(!0, {
|
|
411
411
|
getAnchor: rt,
|
|
412
|
-
onReturnToTrigger: () =>
|
|
412
|
+
onReturnToTrigger: () => B(!1)
|
|
413
413
|
}), Ye = (e) => {
|
|
414
414
|
if (e === l) {
|
|
415
|
-
|
|
415
|
+
B(!1);
|
|
416
416
|
return;
|
|
417
417
|
}
|
|
418
418
|
const t = Q.replace(/\D/g, ""), n = new W(e), u = t ? n.input(t) : "";
|
|
419
|
-
|
|
419
|
+
H.current = !0, A(e), g(u), B(!1), fe(""), N(u, e), requestAnimationFrame(() => {
|
|
420
420
|
var S;
|
|
421
421
|
(S = P.current) == null || S.focus();
|
|
422
422
|
});
|
|
@@ -427,19 +427,19 @@ const Et = Xe(
|
|
|
427
427
|
),
|
|
428
428
|
[E.language, h, p]
|
|
429
429
|
), F = v(() => {
|
|
430
|
-
if (!
|
|
430
|
+
if (!D || D.length === 0) return [];
|
|
431
431
|
const e = new Map(w.map((t) => [t.code, t]));
|
|
432
|
-
return
|
|
433
|
-
}, [
|
|
432
|
+
return D.filter((t) => h.has(t)).map((t) => e.get(t)).filter((t) => !!t);
|
|
433
|
+
}, [D, w, h]), re = v(
|
|
434
434
|
() => new Set(F.map((e) => e.code)),
|
|
435
435
|
[F]
|
|
436
436
|
), Ze = v(
|
|
437
437
|
() => re.size > 0 ? w.filter((e) => !re.has(e.code)) : w,
|
|
438
438
|
[w, re]
|
|
439
|
-
),
|
|
439
|
+
), q = v(
|
|
440
440
|
() => w.find((e) => e.code === l),
|
|
441
441
|
[w, l]
|
|
442
|
-
), ae =
|
|
442
|
+
), ae = q ? q.dialCode : "", Ce = q ? q.name : l, T = z("inputs.phone.countryPickerLabel", "Country"), Je = `${T}: ${Ce}, +${ae}`, Qe = U(
|
|
443
443
|
(e, t, n) => {
|
|
444
444
|
const u = le(e), S = le(t), we = n == null ? void 0 : n.map(le);
|
|
445
445
|
return at(
|
|
@@ -478,7 +478,7 @@ const Et = Xe(
|
|
|
478
478
|
onFocus: _e,
|
|
479
479
|
onBlur: qe,
|
|
480
480
|
"data-component": "phone-input",
|
|
481
|
-
"data-component-id":
|
|
481
|
+
"data-component-id": j,
|
|
482
482
|
"data-slot": "phone-input",
|
|
483
483
|
"data-read-only": x ? "" : void 0,
|
|
484
484
|
className: vt({
|
|
@@ -493,7 +493,7 @@ const Et = Xe(
|
|
|
493
493
|
"data-slot": "phone-country-fixed",
|
|
494
494
|
className: `${Ie({ size: d })} ds:cursor-default ds:hover:bg-transparent`,
|
|
495
495
|
children: [
|
|
496
|
-
/* @__PURE__ */ r("span", { className: "ds:sr-only", children: `${
|
|
496
|
+
/* @__PURE__ */ r("span", { className: "ds:sr-only", children: `${T}: ${Ce}` }),
|
|
497
497
|
/* @__PURE__ */ r(ue, { country: l, size: ce[d] }),
|
|
498
498
|
/* @__PURE__ */ m("bdi", { dir: "ltr", className: "ds:tabular-nums", children: [
|
|
499
499
|
"+",
|
|
@@ -501,7 +501,7 @@ const Et = Xe(
|
|
|
501
501
|
] })
|
|
502
502
|
]
|
|
503
503
|
}
|
|
504
|
-
) : /* @__PURE__ */ m(O.Root, { open: X, onOpenChange:
|
|
504
|
+
) : /* @__PURE__ */ m(O.Root, { open: X, onOpenChange: B, children: [
|
|
505
505
|
/* @__PURE__ */ r(O.Trigger, { asChild: !0, children: /* @__PURE__ */ m(
|
|
506
506
|
"button",
|
|
507
507
|
{
|
|
@@ -539,7 +539,7 @@ const Et = Xe(
|
|
|
539
539
|
onKeyDown: We,
|
|
540
540
|
sideOffset: 6,
|
|
541
541
|
align: "start",
|
|
542
|
-
"aria-label":
|
|
542
|
+
"aria-label": T,
|
|
543
543
|
className: bt,
|
|
544
544
|
children: /* @__PURE__ */ m(
|
|
545
545
|
I,
|
|
@@ -547,7 +547,7 @@ const Et = Xe(
|
|
|
547
547
|
filter: Qe,
|
|
548
548
|
shouldFilter: !0,
|
|
549
549
|
loop: !0,
|
|
550
|
-
label:
|
|
550
|
+
label: T,
|
|
551
551
|
children: [
|
|
552
552
|
/* @__PURE__ */ r(
|
|
553
553
|
I.Input,
|
|
@@ -572,23 +572,30 @@ const Et = Xe(
|
|
|
572
572
|
)
|
|
573
573
|
}
|
|
574
574
|
),
|
|
575
|
-
/* @__PURE__ */ m(
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
children:
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
575
|
+
/* @__PURE__ */ m(
|
|
576
|
+
I.List,
|
|
577
|
+
{
|
|
578
|
+
label: T,
|
|
579
|
+
className: xt,
|
|
580
|
+
children: [
|
|
581
|
+
/* @__PURE__ */ r(I.Empty, { className: wt, children: z("inputs.phone.noCountryFound", "No country found") }),
|
|
582
|
+
F.length > 0 ? /* @__PURE__ */ r(
|
|
583
|
+
I.Group,
|
|
584
|
+
{
|
|
585
|
+
heading: /* @__PURE__ */ r("span", { className: ze, children: z("inputs.phone.popularCountries", "Popular") }),
|
|
586
|
+
children: F.map(xe)
|
|
587
|
+
}
|
|
588
|
+
) : null,
|
|
589
|
+
/* @__PURE__ */ r(
|
|
590
|
+
I.Group,
|
|
591
|
+
{
|
|
592
|
+
heading: F.length > 0 ? /* @__PURE__ */ r("span", { className: ze, children: z("inputs.phone.allCountries", "All countries") }) : void 0,
|
|
593
|
+
children: Ze.map(xe)
|
|
594
|
+
}
|
|
595
|
+
)
|
|
596
|
+
]
|
|
597
|
+
}
|
|
598
|
+
)
|
|
592
599
|
]
|
|
593
600
|
}
|
|
594
601
|
)
|
|
@@ -636,4 +643,4 @@ export {
|
|
|
636
643
|
Ie as c,
|
|
637
644
|
vt as p
|
|
638
645
|
};
|
|
639
|
-
//# sourceMappingURL=phone-input-
|
|
646
|
+
//# sourceMappingURL=phone-input-DJ4BN8tG.js.map
|
|
@@ -7,7 +7,7 @@ import { A as Le } from "./avatar-BPiPL7ND.js";
|
|
|
7
7
|
import { B as te } from "./button-DohK_Ak_.js";
|
|
8
8
|
import { D as V } from "./dropdown-menu-D1we7oAY.js";
|
|
9
9
|
import { E as ct } from "./empty-state-DwJ5YNzz.js";
|
|
10
|
-
import { M as dt } from "./map-view-
|
|
10
|
+
import { M as dt } from "./map-view-Bvi06RVh.js";
|
|
11
11
|
import { R as Pe } from "./rating-CGYpg5dj.js";
|
|
12
12
|
import { S as I } from "./sheet-uZZXaO_S.js";
|
|
13
13
|
import { S as ut } from "./skeleton-tTWJpvAq.js";
|
|
@@ -1849,4 +1849,4 @@ export {
|
|
|
1849
1849
|
Ut as P,
|
|
1850
1850
|
wt as p
|
|
1851
1851
|
};
|
|
1852
|
-
//# sourceMappingURL=practice-results-
|
|
1852
|
+
//# sourceMappingURL=practice-results-B61krlwu.js.map
|