@alfadocs/ui-kit-debug 1.10.0 → 1.11.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/{actions-cell-renderer-BbzCqcld.js → actions-cell-renderer-xfSYiTXQ.js} +147 -147
- package/dist/_chunks/actions-cell-renderer-xfSYiTXQ.js.map +1 -0
- package/dist/_chunks/{balance-badge-cell-DK9wxCxW.js → balance-badge-cell-C_Qz76x7.js} +2 -2
- package/dist/_chunks/{balance-badge-cell-DK9wxCxW.js.map → balance-badge-cell-C_Qz76x7.js.map} +1 -1
- package/dist/_chunks/booking-CBHKdsZl.js +2906 -0
- package/dist/_chunks/booking-CBHKdsZl.js.map +1 -0
- package/dist/_chunks/{contact-profile-card-CE9OJKcl.js → contact-profile-card-BMIBr5s9.js} +104 -125
- package/dist/_chunks/contact-profile-card-BMIBr5s9.js.map +1 -0
- package/dist/_chunks/{file-manager-CRxq0UIl.js → file-manager-Df6hyUYg.js} +2 -2
- package/dist/_chunks/{file-manager-CRxq0UIl.js.map → file-manager-Df6hyUYg.js.map} +1 -1
- package/dist/_chunks/format-price-DNqXPa_q.js +61 -0
- package/dist/_chunks/format-price-DNqXPa_q.js.map +1 -0
- package/dist/_chunks/{practice-results-BEsAdW-B.js → practice-results-D7ygCj_W.js} +333 -291
- package/dist/_chunks/practice-results-D7ygCj_W.js.map +1 -0
- package/dist/_chunks/{stepper-accordion-BeVMZPuG.js → stepper-accordion-DmVykr5F.js} +91 -88
- package/dist/_chunks/stepper-accordion-DmVykr5F.js.map +1 -0
- package/dist/agent-catalog.json +11 -4
- package/dist/agent-i18n/en.json +3 -2
- package/dist/components/_shared/format-price.d.ts +21 -0
- package/dist/components/_shared/format-price.d.ts.map +1 -0
- package/dist/components/_shared/index.d.ts +1 -0
- package/dist/components/_shared/index.d.ts.map +1 -1
- package/dist/components/_shared/stepper.d.ts +28 -2
- package/dist/components/_shared/stepper.d.ts.map +1 -1
- package/dist/components/booking/booking-types.d.ts +15 -2
- package/dist/components/booking/booking-types.d.ts.map +1 -1
- package/dist/components/booking/booking.agent.d.ts.map +1 -1
- package/dist/components/booking/booking.d.ts.map +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/contact-profile-card/contact-profile-card.d.ts.map +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/data-table/toolbar.d.ts.map +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/practice-results/practice-results.d.ts +18 -0
- package/dist/components/practice-results/practice-results.d.ts.map +1 -1
- package/dist/components/stepper-accordion/index.js +1 -1
- package/dist/components/stepper-accordion/stepper-accordion.d.ts.map +1 -1
- package/dist/i18n/locales/ar.d.ts +4 -0
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +5 -1
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts +5 -1
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +6 -2
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/el.d.ts +4 -0
- package/dist/i18n/locales/el.d.ts.map +1 -1
- package/dist/i18n/locales/el.js +5 -1
- package/dist/i18n/locales/el.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +4 -0
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +5 -1
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts +5 -1
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +6 -2
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts +5 -1
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +6 -2
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts +4 -0
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +5 -1
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/it.d.ts +4 -0
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +5 -1
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts +4 -0
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +5 -1
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts +5 -1
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +6 -2
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts +4 -0
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +5 -1
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts +5 -1
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +6 -2
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ro.d.ts +4 -0
- package/dist/i18n/locales/ro.d.ts.map +1 -1
- package/dist/i18n/locales/ro.js +5 -1
- package/dist/i18n/locales/ro.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts +4 -0
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +5 -1
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/sq.d.ts +4 -0
- package/dist/i18n/locales/sq.d.ts.map +1 -1
- package/dist/i18n/locales/sq.js +5 -1
- package/dist/i18n/locales/sq.js.map +1 -1
- package/dist/i18n/locales/sv.d.ts +4 -0
- package/dist/i18n/locales/sv.d.ts.map +1 -1
- package/dist/i18n/locales/sv.js +5 -1
- package/dist/i18n/locales/sv.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts +4 -0
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +5 -1
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/zh.d.ts +4 -0
- package/dist/i18n/locales/zh.d.ts.map +1 -1
- package/dist/i18n/locales/zh.js +5 -1
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/index.js +7 -7
- package/dist/locales/ar.json +5 -1
- package/dist/locales/de.json +6 -2
- package/dist/locales/el.json +5 -1
- package/dist/locales/en.json +5 -1
- package/dist/locales/es.json +6 -2
- package/dist/locales/fr.json +6 -2
- package/dist/locales/hi.json +5 -1
- package/dist/locales/it.json +5 -1
- package/dist/locales/ja.json +5 -1
- package/dist/locales/nl.json +6 -2
- package/dist/locales/pl.json +5 -1
- package/dist/locales/pt.json +6 -2
- package/dist/locales/ro.json +5 -1
- package/dist/locales/ru.json +5 -1
- package/dist/locales/sq.json +5 -1
- package/dist/locales/sv.json +5 -1
- package/dist/locales/tr.json +5 -1
- package/dist/locales/zh.json +5 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/actions-cell-renderer-BbzCqcld.js.map +0 -1
- package/dist/_chunks/booking-DHkKcUIl.js +0 -2713
- package/dist/_chunks/booking-DHkKcUIl.js.map +0 -1
- package/dist/_chunks/contact-profile-card-CE9OJKcl.js.map +0 -1
- package/dist/_chunks/languages-CGLX6Qpe.js +0 -19
- package/dist/_chunks/languages-CGLX6Qpe.js.map +0 -1
- package/dist/_chunks/practice-results-BEsAdW-B.js.map +0 -1
- package/dist/_chunks/stepper-accordion-BeVMZPuG.js.map +0 -1
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsx as e, jsxs as c, Fragment as j } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as P, useMemo as B, useImperativeHandle as D } from "react";
|
|
3
3
|
import * as m from "@radix-ui/react-accordion";
|
|
4
|
-
import { c as
|
|
5
|
-
import { useTranslation as
|
|
6
|
-
import { C as
|
|
7
|
-
import { L as
|
|
8
|
-
function
|
|
9
|
-
return r === "error" ? "error" :
|
|
4
|
+
import { c as b } from "./index-D2ZczOXr.js";
|
|
5
|
+
import { useTranslation as G } from "react-i18next";
|
|
6
|
+
import { C as H } from "./chevron-down-DWE7GSq9.js";
|
|
7
|
+
import { L as U } from "./lock-ClAFG1gy.js";
|
|
8
|
+
function W(s, i, r) {
|
|
9
|
+
return r === "error" ? "error" : s === i ? "current" : r === "completed" || s < i ? "completed" : "upcoming";
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
function O(s, i, r) {
|
|
12
|
+
return r !== void 0 ? !0 : s <= i;
|
|
13
|
+
}
|
|
14
|
+
const C = "step-", w = (s) => `${C}${s}`, X = (s) => Number(s.slice(C.length)), h = [
|
|
12
15
|
"ds:[stroke-dasharray:1] ds:[stroke-dashoffset:1]",
|
|
13
16
|
"ds:animate-[stepper-icon-draw_var(--animation-duration)_var(--ease-out)_forwards]",
|
|
14
17
|
"ds:motion-reduce:animate-none ds:motion-reduce:[stroke-dashoffset:0]"
|
|
15
18
|
].join(" ");
|
|
16
|
-
function
|
|
19
|
+
function q() {
|
|
17
20
|
return /* @__PURE__ */ e(
|
|
18
21
|
"svg",
|
|
19
22
|
{
|
|
@@ -25,12 +28,12 @@ function W() {
|
|
|
25
28
|
strokeLinejoin: "round",
|
|
26
29
|
"aria-hidden": "true",
|
|
27
30
|
className: "ds:size-4",
|
|
28
|
-
children: /* @__PURE__ */ e("path", { pathLength: "1", d: "M5 12l5 5L20 7", className:
|
|
31
|
+
children: /* @__PURE__ */ e("path", { pathLength: "1", d: "M5 12l5 5L20 7", className: h })
|
|
29
32
|
}
|
|
30
33
|
);
|
|
31
34
|
}
|
|
32
|
-
function
|
|
33
|
-
return /* @__PURE__ */
|
|
35
|
+
function J() {
|
|
36
|
+
return /* @__PURE__ */ c(
|
|
34
37
|
"svg",
|
|
35
38
|
{
|
|
36
39
|
viewBox: "0 0 24 24",
|
|
@@ -42,13 +45,13 @@ function O() {
|
|
|
42
45
|
"aria-hidden": "true",
|
|
43
46
|
className: "ds:size-4",
|
|
44
47
|
children: [
|
|
45
|
-
/* @__PURE__ */ e("path", { pathLength: "1", d: "M6 6l12 12", className:
|
|
46
|
-
/* @__PURE__ */ e("path", { pathLength: "1", d: "M18 6l-12 12", className:
|
|
48
|
+
/* @__PURE__ */ e("path", { pathLength: "1", d: "M6 6l12 12", className: h }),
|
|
49
|
+
/* @__PURE__ */ e("path", { pathLength: "1", d: "M18 6l-12 12", className: h })
|
|
47
50
|
]
|
|
48
51
|
}
|
|
49
52
|
);
|
|
50
53
|
}
|
|
51
|
-
const
|
|
54
|
+
const K = [
|
|
52
55
|
"ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center",
|
|
53
56
|
"ds:min-w-[var(--min-target-size)] ds:min-h-[var(--min-target-size)]",
|
|
54
57
|
"ds:size-[var(--min-target-size)]",
|
|
@@ -58,7 +61,7 @@ const X = [
|
|
|
58
61
|
"ds:transition-[background-color,border-color,color]",
|
|
59
62
|
"ds:duration-[var(--animation-duration)] ds:ease-[var(--ease-out)]",
|
|
60
63
|
"ds:motion-reduce:transition-none"
|
|
61
|
-
].join(" "),
|
|
64
|
+
].join(" "), Q = b(K, {
|
|
62
65
|
variants: {
|
|
63
66
|
state: {
|
|
64
67
|
upcoming: "ds:bg-[var(--background)] ds:text-[var(--muted-foreground)]",
|
|
@@ -75,7 +78,7 @@ const X = [
|
|
|
75
78
|
].join(" ")
|
|
76
79
|
}
|
|
77
80
|
}
|
|
78
|
-
}),
|
|
81
|
+
}), Y = b(
|
|
79
82
|
[
|
|
80
83
|
"ds:group/item ds:overflow-hidden ds:rounded-[var(--radius-md)]",
|
|
81
84
|
"ds:border ds:border-[color:var(--card-border)] ds:[.theme-accessible_&]:border-2 ds:bg-[var(--card)]",
|
|
@@ -92,7 +95,7 @@ const X = [
|
|
|
92
95
|
},
|
|
93
96
|
defaultVariants: { tone: "neutral" }
|
|
94
97
|
}
|
|
95
|
-
),
|
|
98
|
+
), Z = [
|
|
96
99
|
"ds:flex ds:w-full ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
97
100
|
"ds:min-h-[var(--min-target-size)]",
|
|
98
101
|
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
|
|
@@ -104,144 +107,144 @@ const X = [
|
|
|
104
107
|
"ds:transition-[background-color] ds:duration-[var(--animation-duration)] ds:ease-[var(--ease-out)]",
|
|
105
108
|
"ds:motion-reduce:transition-none",
|
|
106
109
|
"ds:hover:enabled:bg-[var(--muted)]/40"
|
|
107
|
-
].join(" "),
|
|
110
|
+
].join(" "), S = (s) => [
|
|
108
111
|
"type-body-sm",
|
|
109
|
-
|
|
110
|
-
].join(" "),
|
|
112
|
+
s === "current" || s === "error" ? "ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)]" : s === "completed" ? "ds:text-[var(--foreground)]" : "ds:text-[var(--muted-foreground)]"
|
|
113
|
+
].join(" "), ee = [
|
|
111
114
|
"type-meta ds:text-[var(--muted-foreground)]",
|
|
112
115
|
"ds:mt-[var(--spacing-xs)]"
|
|
113
|
-
].join(" "),
|
|
116
|
+
].join(" "), g = [
|
|
114
117
|
"type-meta",
|
|
115
118
|
"ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
116
119
|
"ds:text-[var(--muted-foreground)]"
|
|
117
|
-
].join(" "),
|
|
120
|
+
].join(" "), re = [
|
|
118
121
|
"ds:size-4 ds:shrink-0 ds:text-[var(--muted-foreground)]",
|
|
119
122
|
"ds:transition-transform ds:duration-[var(--animation-duration)] ds:ease-[var(--ease-out)]",
|
|
120
123
|
"ds:motion-reduce:transition-none",
|
|
121
124
|
"ds:group-data-[state=open]/item:rotate-180"
|
|
122
|
-
].join(" "),
|
|
125
|
+
].join(" "), se = [
|
|
123
126
|
"type-meta ds:text-[var(--muted-foreground)]",
|
|
124
127
|
"ds:ps-[calc(var(--min-target-size)+var(--spacing-md)+var(--spacing-sm))]",
|
|
125
128
|
"ds:pe-[var(--spacing-md)] ds:pb-[var(--spacing-sm)]",
|
|
126
129
|
"ds:group-data-[state=open]/item:hidden"
|
|
127
|
-
].join(" "),
|
|
130
|
+
].join(" "), ae = [
|
|
128
131
|
"ds:overflow-hidden",
|
|
129
132
|
"ds:data-[state=open]:animate-[accordion-down_var(--animation-duration)_var(--ease-out)]",
|
|
130
133
|
"ds:data-[state=closed]:animate-[accordion-up_var(--animation-duration)_var(--ease-in)]"
|
|
131
|
-
].join(" "),
|
|
134
|
+
].join(" "), te = [
|
|
132
135
|
"ds:ps-[calc(var(--min-target-size)+var(--spacing-md)+var(--spacing-sm))]",
|
|
133
136
|
"ds:pe-[var(--spacing-md)] ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-md)]"
|
|
134
|
-
].join(" "),
|
|
137
|
+
].join(" "), ne = b("ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", {
|
|
135
138
|
variants: {}
|
|
136
|
-
}),
|
|
139
|
+
}), oe = P(
|
|
137
140
|
({
|
|
138
|
-
activeStep:
|
|
139
|
-
steps:
|
|
141
|
+
activeStep: s,
|
|
142
|
+
steps: i,
|
|
140
143
|
onStepChange: r,
|
|
141
|
-
"aria-label":
|
|
142
|
-
id:
|
|
143
|
-
className:
|
|
144
|
-
...
|
|
145
|
-
},
|
|
146
|
-
const { t: d } =
|
|
144
|
+
"aria-label": _,
|
|
145
|
+
id: x,
|
|
146
|
+
className: z,
|
|
147
|
+
...L
|
|
148
|
+
}, M) => {
|
|
149
|
+
const { t: d } = G(), l = i.length, n = Math.max(0, Math.min(s, l - 1)), V = _ ?? d("navigation.stepper.label"), y = d("navigation.stepper.edit"), N = d("navigation.stepper.open"), $ = d("navigation.stepper.locked"), A = d("navigation.stepper.completed"), F = d("navigation.stepper.error"), I = (t) => {
|
|
147
150
|
if (!t) return;
|
|
148
|
-
const
|
|
149
|
-
Number.isFinite(
|
|
150
|
-
},
|
|
151
|
+
const a = X(t);
|
|
152
|
+
Number.isFinite(a) && a !== n && (r == null || r(a));
|
|
153
|
+
}, k = B(
|
|
151
154
|
() => ({
|
|
152
|
-
getCurrentStep: () =>
|
|
155
|
+
getCurrentStep: () => n,
|
|
153
156
|
getTotalSteps: () => l,
|
|
154
|
-
getOpenSteps: () => [
|
|
157
|
+
getOpenSteps: () => [n],
|
|
155
158
|
gotoStep: (t) => {
|
|
156
159
|
if (!r) return;
|
|
157
|
-
const
|
|
158
|
-
|
|
160
|
+
const a = Math.max(0, Math.min(t, Math.max(l - 1, 0)));
|
|
161
|
+
a !== n && r(a);
|
|
159
162
|
},
|
|
160
163
|
next: () => {
|
|
161
|
-
r &&
|
|
164
|
+
r && n < l - 1 && r(n + 1);
|
|
162
165
|
},
|
|
163
166
|
previous: () => {
|
|
164
|
-
r &&
|
|
167
|
+
r && n > 0 && r(n - 1);
|
|
165
168
|
}
|
|
166
169
|
}),
|
|
167
|
-
[
|
|
170
|
+
[n, l, r]
|
|
168
171
|
);
|
|
169
|
-
return
|
|
172
|
+
return D(M, () => k, [k]), /* @__PURE__ */ e(
|
|
170
173
|
m.Root,
|
|
171
174
|
{
|
|
172
175
|
type: "single",
|
|
173
|
-
value:
|
|
174
|
-
onValueChange:
|
|
176
|
+
value: w(n),
|
|
177
|
+
onValueChange: I,
|
|
175
178
|
collapsible: !1,
|
|
176
|
-
"aria-label":
|
|
177
|
-
id:
|
|
179
|
+
"aria-label": V,
|
|
180
|
+
id: x,
|
|
178
181
|
"data-component": "stepper-accordion",
|
|
179
|
-
"data-component-id":
|
|
180
|
-
className:
|
|
181
|
-
...
|
|
182
|
-
children:
|
|
183
|
-
const
|
|
184
|
-
/* @__PURE__ */ e(
|
|
185
|
-
/* @__PURE__ */ e("span", { className: "ds:sr-only", children:
|
|
186
|
-
] }) :
|
|
187
|
-
/* @__PURE__ */ e(
|
|
188
|
-
/* @__PURE__ */ e("span", { className: "ds:sr-only", children:
|
|
189
|
-
] }) : /* @__PURE__ */ e("span", { children:
|
|
190
|
-
/* @__PURE__ */ e(
|
|
191
|
-
|
|
192
|
-
] }) : null;
|
|
193
|
-
return /* @__PURE__ */
|
|
182
|
+
"data-component-id": x,
|
|
183
|
+
className: ne({ className: z }),
|
|
184
|
+
...L,
|
|
185
|
+
children: i.map((t, a) => {
|
|
186
|
+
const o = W(a, n, t.status), u = o === "current" || o === "error", p = o === "upcoming", v = p && !O(a, n, t.status), T = o === "error" ? "error" : "neutral", f = d("navigation.stepper.stepN", { n: a + 1 }), R = o === "completed" ? /* @__PURE__ */ c(j, { children: [
|
|
187
|
+
/* @__PURE__ */ e(q, {}),
|
|
188
|
+
/* @__PURE__ */ e("span", { className: "ds:sr-only", children: A })
|
|
189
|
+
] }) : o === "error" ? /* @__PURE__ */ c(j, { children: [
|
|
190
|
+
/* @__PURE__ */ e(J, {}),
|
|
191
|
+
/* @__PURE__ */ e("span", { className: "ds:sr-only", children: F })
|
|
192
|
+
] }) : /* @__PURE__ */ e("span", { children: a + 1 }), E = o === "completed" ? /* @__PURE__ */ e("span", { className: g, children: y }) : v ? /* @__PURE__ */ c("span", { className: g, children: [
|
|
193
|
+
/* @__PURE__ */ e(U, { "aria-hidden": "true", className: "ds:size-3" }),
|
|
194
|
+
$
|
|
195
|
+
] }) : p ? /* @__PURE__ */ e("span", { className: g, children: N }) : null;
|
|
196
|
+
return /* @__PURE__ */ c(
|
|
194
197
|
m.Item,
|
|
195
198
|
{
|
|
196
|
-
value:
|
|
197
|
-
"data-step-id": String(
|
|
198
|
-
className:
|
|
199
|
+
value: w(a),
|
|
200
|
+
"data-step-id": String(a),
|
|
201
|
+
className: Y({ tone: T }),
|
|
199
202
|
children: [
|
|
200
|
-
/* @__PURE__ */ e(m.Header, { className: "ds:flex", children: /* @__PURE__ */
|
|
203
|
+
/* @__PURE__ */ e(m.Header, { className: "ds:flex", children: /* @__PURE__ */ c(
|
|
201
204
|
m.Trigger,
|
|
202
205
|
{
|
|
203
|
-
disabled:
|
|
206
|
+
disabled: v,
|
|
204
207
|
"aria-disabled": u || void 0,
|
|
205
|
-
"aria-label":
|
|
208
|
+
"aria-label": o === "completed" ? `${f}, ${y}` : p && !v ? `${f}, ${N}` : f,
|
|
206
209
|
"aria-current": u ? "step" : void 0,
|
|
207
|
-
className:
|
|
210
|
+
className: Z,
|
|
208
211
|
children: [
|
|
209
212
|
/* @__PURE__ */ e(
|
|
210
213
|
"span",
|
|
211
214
|
{
|
|
212
215
|
"aria-hidden": "true",
|
|
213
|
-
className:
|
|
214
|
-
children:
|
|
216
|
+
className: Q({ state: o }),
|
|
217
|
+
children: R
|
|
215
218
|
}
|
|
216
219
|
),
|
|
217
|
-
/* @__PURE__ */
|
|
218
|
-
/* @__PURE__ */ e("span", { className:
|
|
219
|
-
t.description ? /* @__PURE__ */ e("span", { className:
|
|
220
|
+
/* @__PURE__ */ c("span", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col", children: [
|
|
221
|
+
/* @__PURE__ */ e("span", { className: S(o), children: t.label }),
|
|
222
|
+
t.description ? /* @__PURE__ */ e("span", { className: ee, children: t.description }) : null
|
|
220
223
|
] }),
|
|
221
|
-
|
|
224
|
+
E,
|
|
222
225
|
u ? null : /* @__PURE__ */ e(
|
|
223
|
-
|
|
226
|
+
H,
|
|
224
227
|
{
|
|
225
228
|
"aria-hidden": "true",
|
|
226
|
-
className:
|
|
229
|
+
className: re
|
|
227
230
|
}
|
|
228
231
|
)
|
|
229
232
|
]
|
|
230
233
|
}
|
|
231
234
|
) }),
|
|
232
|
-
t.summary &&
|
|
233
|
-
/* @__PURE__ */ e(m.Content, { className:
|
|
235
|
+
t.summary && o === "completed" ? /* @__PURE__ */ e("div", { className: se, children: t.summary }) : null,
|
|
236
|
+
/* @__PURE__ */ e(m.Content, { className: ae, children: /* @__PURE__ */ e("div", { className: te, children: t.content }) })
|
|
234
237
|
]
|
|
235
238
|
},
|
|
236
|
-
|
|
239
|
+
a
|
|
237
240
|
);
|
|
238
241
|
})
|
|
239
242
|
}
|
|
240
243
|
);
|
|
241
244
|
}
|
|
242
245
|
);
|
|
243
|
-
|
|
246
|
+
oe.displayName = "StepperAccordion";
|
|
244
247
|
export {
|
|
245
|
-
|
|
248
|
+
oe as S
|
|
246
249
|
};
|
|
247
|
-
//# sourceMappingURL=stepper-accordion-
|
|
250
|
+
//# sourceMappingURL=stepper-accordion-DmVykr5F.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stepper-accordion-DmVykr5F.js","sources":["../../src/components/_shared/stepper.ts","../../src/components/stepper-accordion/stepper-accordion.tsx"],"sourcesContent":["// Shared types + state machine for the two stepper variants:\n// - src/components/stepper-progress (lightweight progress bar + caption)\n// - src/components/stepper-accordion (vertical disclosure wizard)\n//\n// Both components consume `StepSpec` and the `stateForStep` helper so the\n// four-state machine (upcoming | current | completed | error) stays in one\n// place. Rename or removal is a MAJOR per src/docs/13-maintainability.mdx.\n\n/**\n * Consumer-supplied override for a step.\n *\n * - `completed` — the step holds a value; render the tick and let the user\n * back in to change it.\n * - `error` — the step's own validation failed; always wins.\n * - `unlocked` (1.11.0) — the step has been *reached* but holds no value of\n * its own. It renders exactly like an upcoming step, but the user may open\n * it. Added for flows whose final step can never report itself \"completed\"\n * because its validity belongs to a form inside it: without this, moving\n * the cursor backwards left that step HTML-`disabled` and unreachable.\n *\n * `'completed'` and `'error'` behave exactly as before, so consumers passing\n * either (or nothing) are unaffected. A consumer that reads this union back\n * in an exhaustive `switch` needs a case for `'unlocked'`; `StepState` — the\n * union such a switch usually runs on — is deliberately untouched.\n */\nexport type StepStatus = 'completed' | 'error' | 'unlocked';\n\nexport type StepState = 'upcoming' | 'current' | 'completed' | 'error';\n\nexport interface StepSpec {\n /** Visible step label — comes from the consumer, already translated. */\n label: string;\n /** Optional secondary line (kept short; shown in accordion + progress captions). */\n description?: string;\n /**\n * Consumer-explicit status override. `error` always wins; `completed` is\n * honoured only for steps at or beyond the active index so the active step\n * always keeps `current` (otherwise a consumer pre-setting `completed` on\n * every step would silently mask the current position). `unlocked` changes\n * reachability only — see `stepIsReachable` — and never the rendered state.\n */\n status?: StepStatus;\n}\n\nexport function stateForStep(\n index: number,\n activeStep: number,\n status?: StepStatus,\n): StepState {\n if (status === 'error') return 'error';\n if (index === activeStep) return 'current';\n if (status === 'completed') return 'completed';\n if (index < activeStep) return 'completed';\n // `unlocked` deliberately falls through: it is a reachability hint, not a\n // visual state, so the returned `StepState` union is unchanged and any\n // exhaustive switch a consumer already wrote keeps compiling.\n return 'upcoming';\n}\n\n/**\n * May the user open this step?\n *\n * Everything at or before the cursor is reachable, as is any step the\n * consumer has explicitly marked `completed`, `error` or `unlocked`.\n * Steps ahead of the cursor with no status stay locked, exactly as before.\n */\nexport function stepIsReachable(\n index: number,\n activeStep: number,\n status?: StepStatus,\n): boolean {\n if (status !== undefined) return true;\n return index <= activeStep;\n}\n","import {\n forwardRef,\n useImperativeHandle,\n useMemo,\n type ComponentPropsWithoutRef,\n type ReactNode,\n} from 'react';\nimport * as AccordionPrimitive from '@radix-ui/react-accordion';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { ChevronDown, Lock } from 'lucide-react';\nimport { useTranslation } from 'react-i18next';\nimport {\n stateForStep,\n stepIsReachable,\n type StepSpec,\n type StepState,\n} from '../_shared/stepper';\n\n/* -------------------------------------------------------------------- */\n/* StepperAccordion */\n/* */\n/* Vertical disclosure wizard. The current step is expanded inline; */\n/* completed steps collapse to a one-line summary with an \"Edit\" hint */\n/* that re-opens them; upcoming steps are locked. Built on Radix */\n/* Accordion in controlled-single mode with collapsible=false so the */\n/* current panel always stays open. */\n/* -------------------------------------------------------------------- */\n\nconst STEP_VALUE_PREFIX = 'step-';\nconst makeValue = (index: number) => `${STEP_VALUE_PREFIX}${index}`;\nconst indexFromValue = (value: string): number =>\n Number(value.slice(STEP_VALUE_PREFIX.length));\n\n/* -------------------------------------------------------------------- */\n/* Indicator — shared with progress bar visual tone but sized for the */\n/* vertical wizard's dense header row. */\n/* -------------------------------------------------------------------- */\n\nconst iconDrawClasses = [\n 'ds:[stroke-dasharray:1] ds:[stroke-dashoffset:1]',\n 'ds:animate-[stepper-icon-draw_var(--animation-duration)_var(--ease-out)_forwards]',\n 'ds:motion-reduce:animate-none ds:motion-reduce:[stroke-dashoffset:0]',\n].join(' ');\n\nfunction CheckGlyph() {\n return (\n <svg\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"3\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n className=\"ds:size-4\"\n >\n <path pathLength=\"1\" d=\"M5 12l5 5L20 7\" className={iconDrawClasses} />\n </svg>\n );\n}\n\nfunction CrossGlyph() {\n return (\n <svg\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"3\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n className=\"ds:size-4\"\n >\n <path pathLength=\"1\" d=\"M6 6l12 12\" className={iconDrawClasses} />\n <path pathLength=\"1\" d=\"M18 6l-12 12\" className={iconDrawClasses} />\n </svg>\n );\n}\n\nconst indicatorClasses = [\n 'ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center',\n 'ds:min-w-[var(--min-target-size)] ds:min-h-[var(--min-target-size)]',\n 'ds:size-[var(--min-target-size)]',\n 'ds:rounded-[var(--radius-full)]',\n 'ds:text-[var(--font-size-sm)] ds:font-[var(--font-weight-semibold)]',\n 'ds:border ds:border-[var(--border)]',\n 'ds:transition-[background-color,border-color,color]',\n 'ds:duration-[var(--animation-duration)] ds:ease-[var(--ease-out)]',\n 'ds:motion-reduce:transition-none',\n].join(' ');\n\nconst indicatorVariants = cva(indicatorClasses, {\n variants: {\n state: {\n upcoming: 'ds:bg-[var(--background)] ds:text-[var(--muted-foreground)]',\n current: [\n 'ds:border-[var(--primary)] ds:bg-[var(--primary)] ds:text-[var(--primary-foreground)]',\n 'ds:animate-[stepper-indicator-pop_var(--animation-duration)_var(--ease-out)_both]',\n 'ds:motion-reduce:animate-none',\n ].join(' '),\n completed:\n 'ds:border-[var(--primary)] ds:bg-[var(--primary)] ds:text-[var(--primary-foreground)]',\n error: [\n 'ds:border-[var(--destructive)] ds:bg-[var(--destructive)] ds:text-[var(--destructive-foreground)]',\n 'ds:animate-[stepper-indicator-pop_var(--animation-duration)_var(--ease-out)_both]',\n 'ds:motion-reduce:animate-none',\n ].join(' '),\n },\n },\n});\n\n/* -------------------------------------------------------------------- */\n/* Item / trigger / content variants */\n/* -------------------------------------------------------------------- */\n\nconst itemVariants = cva(\n [\n 'ds:group/item ds:overflow-hidden ds:rounded-[var(--radius-md)]',\n 'ds:border ds:border-[color:var(--card-border)] ds:[.theme-accessible_&]:border-2 ds:bg-[var(--card)]',\n 'ds:data-[state=open]:border-[var(--primary)]',\n 'ds:transition-[border-color] ds:duration-[var(--animation-duration)] ds:ease-[var(--ease-out)]',\n 'ds:motion-reduce:transition-none',\n ].join(' '),\n {\n variants: {\n tone: {\n neutral: '',\n error: 'ds:data-[state=open]:border-[var(--destructive)]',\n },\n },\n defaultVariants: { tone: 'neutral' },\n },\n);\n\nconst triggerClasses = [\n 'ds:flex ds:w-full ds:items-center ds:gap-[var(--spacing-sm)]',\n 'ds:min-h-[var(--min-target-size)]',\n 'ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]',\n 'ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]',\n 'ds:text-start',\n 'ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid',\n 'ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]',\n 'ds:disabled:cursor-not-allowed',\n 'ds:transition-[background-color] ds:duration-[var(--animation-duration)] ds:ease-[var(--ease-out)]',\n 'ds:motion-reduce:transition-none',\n 'ds:hover:enabled:bg-[var(--muted)]/40',\n].join(' ');\n\nconst labelClasses = (state: StepState) =>\n [\n 'type-body-sm',\n state === 'current' || state === 'error'\n ? 'ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)]'\n : state === 'completed'\n ? 'ds:text-[var(--foreground)]'\n : 'ds:text-[var(--muted-foreground)]',\n ].join(' ');\n\nconst descriptionClasses = [\n 'type-meta ds:text-[var(--muted-foreground)]',\n 'ds:mt-[var(--spacing-xs)]',\n].join(' ');\n\nconst hintClasses = [\n 'type-meta',\n 'ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]',\n 'ds:text-[var(--muted-foreground)]',\n].join(' ');\n\nconst chevronClasses = [\n 'ds:size-4 ds:shrink-0 ds:text-[var(--muted-foreground)]',\n 'ds:transition-transform ds:duration-[var(--animation-duration)] ds:ease-[var(--ease-out)]',\n 'ds:motion-reduce:transition-none',\n 'ds:group-data-[state=open]/item:rotate-180',\n].join(' ');\n\nconst summaryClasses = [\n 'type-meta ds:text-[var(--muted-foreground)]',\n 'ds:ps-[calc(var(--min-target-size)+var(--spacing-md)+var(--spacing-sm))]',\n 'ds:pe-[var(--spacing-md)] ds:pb-[var(--spacing-sm)]',\n 'ds:group-data-[state=open]/item:hidden',\n].join(' ');\n\nconst contentClasses = [\n 'ds:overflow-hidden',\n 'ds:data-[state=open]:animate-[accordion-down_var(--animation-duration)_var(--ease-out)]',\n 'ds:data-[state=closed]:animate-[accordion-up_var(--animation-duration)_var(--ease-in)]',\n].join(' ');\n\nconst contentInnerClasses = [\n 'ds:ps-[calc(var(--min-target-size)+var(--spacing-md)+var(--spacing-sm))]',\n 'ds:pe-[var(--spacing-md)] ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-md)]',\n].join(' ');\n\n/* -------------------------------------------------------------------- */\n/* Types */\n/* -------------------------------------------------------------------- */\n\nexport interface AccordionStepSpec extends StepSpec {\n /** Form content rendered inside the expanded panel. */\n content: ReactNode;\n /**\n * One-line summary shown under the header when the step is completed\n * and its panel is collapsed. Typically a preview of the captured\n * data — \"Mario Rossi · 12/03/1985\".\n */\n summary?: ReactNode;\n}\n\nconst rootVariants = cva('ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]', {\n variants: {},\n});\n\nexport interface StepperAccordionProps\n extends\n Omit<\n ComponentPropsWithoutRef<typeof AccordionPrimitive.Root>,\n 'type' | 'value' | 'defaultValue' | 'onValueChange' | 'collapsible'\n >,\n VariantProps<typeof rootVariants> {\n /** Active step (0-indexed). The matching panel is the one that is open. */\n activeStep: number;\n /** Step specs — each one provides its own content + optional summary. */\n steps: AccordionStepSpec[];\n /**\n * Fires when the user re-opens a completed step. Upcoming steps cannot\n * be activated — their triggers are disabled. The current step cannot\n * be collapsed (Radix `collapsible=false`).\n */\n onStepChange?: (index: number) => void;\n /** Override the default `aria-label` on the list wrapper. */\n 'aria-label'?: string;\n /**\n * Consumer-supplied instance id, surfaced as `data-component-id` so an\n * agent / UI bridge can address this instance.\n */\n id?: string;\n}\n\n/**\n * Imperative handle for agent-readiness. Routes state mutations through\n * the consumer's `onStepChange`, never mutating directly.\n */\nexport interface StepperAccordionHandle {\n getCurrentStep: () => number;\n getTotalSteps: () => number;\n /** Indices of currently-open panels — singleton under Radix `type=\"single\"`. */\n getOpenSteps: () => number[];\n gotoStep: (step: number) => void;\n next: () => void;\n previous: () => void;\n}\n\n/* -------------------------------------------------------------------- */\n/* Component */\n/* -------------------------------------------------------------------- */\n\nconst StepperAccordion = forwardRef<\n StepperAccordionHandle,\n StepperAccordionProps\n>(\n (\n {\n activeStep,\n steps,\n onStepChange,\n 'aria-label': ariaLabel,\n id,\n className,\n ...rest\n },\n ref,\n ) => {\n const { t } = useTranslation();\n const total = steps.length;\n const clampedActive = Math.max(0, Math.min(activeStep, total - 1));\n const label = ariaLabel ?? t('navigation.stepper.label');\n const editCopy = t('navigation.stepper.edit');\n const openCopy = t('navigation.stepper.open');\n const lockedCopy = t('navigation.stepper.locked');\n const completedCopy = t('navigation.stepper.completed');\n const errorCopy = t('navigation.stepper.error');\n\n const handleValueChange = (value: string) => {\n // `collapsible=false` prevents empty-string values in practice, but the\n // primitive's type still allows one — guard anyway.\n if (!value) return;\n const index = indexFromValue(value);\n if (Number.isFinite(index) && index !== clampedActive) {\n onStepChange?.(index);\n }\n };\n\n const handle = useMemo<StepperAccordionHandle>(\n () => ({\n getCurrentStep: () => clampedActive,\n getTotalSteps: () => total,\n getOpenSteps: () => [clampedActive],\n gotoStep: (step: number) => {\n if (!onStepChange) return;\n const clamped = Math.max(0, Math.min(step, Math.max(total - 1, 0)));\n if (clamped !== clampedActive) onStepChange(clamped);\n },\n next: () => {\n if (!onStepChange) return;\n if (clampedActive < total - 1) onStepChange(clampedActive + 1);\n },\n previous: () => {\n if (!onStepChange) return;\n if (clampedActive > 0) onStepChange(clampedActive - 1);\n },\n }),\n [clampedActive, total, onStepChange],\n );\n useImperativeHandle(ref, () => handle, [handle]);\n\n return (\n <AccordionPrimitive.Root\n type=\"single\"\n value={makeValue(clampedActive)}\n onValueChange={handleValueChange}\n collapsible={false}\n aria-label={label}\n id={id}\n data-component=\"stepper-accordion\"\n data-component-id={id}\n className={rootVariants({ className })}\n {...rest}\n >\n {steps.map((spec, index) => {\n const state = stateForStep(index, clampedActive, spec.status);\n const isCurrent = state === 'current' || state === 'error';\n const isUpcoming = state === 'upcoming';\n // An `unlocked` step renders as `upcoming` but stays reachable —\n // only a step that is BOTH upcoming and unreachable is locked.\n const isLocked =\n isUpcoming && !stepIsReachable(index, clampedActive, spec.status);\n const itemTone = state === 'error' ? 'error' : 'neutral';\n const stepN = t('navigation.stepper.stepN', { n: index + 1 });\n\n const indicatorContent = (() => {\n if (state === 'completed') {\n return (\n <>\n <CheckGlyph />\n <span className=\"ds:sr-only\">{completedCopy}</span>\n </>\n );\n }\n if (state === 'error') {\n return (\n <>\n <CrossGlyph />\n <span className=\"ds:sr-only\">{errorCopy}</span>\n </>\n );\n }\n return <span>{index + 1}</span>;\n })();\n\n const hint = (() => {\n if (state === 'completed') {\n return <span className={hintClasses}>{editCopy}</span>;\n }\n if (isLocked) {\n return (\n <span className={hintClasses}>\n <Lock aria-hidden=\"true\" className=\"ds:size-3\" />\n {lockedCopy}\n </span>\n );\n }\n if (isUpcoming) {\n // Reachable but empty — say so, otherwise the row reads\n // identically to a locked one and nothing signals it opens.\n return <span className={hintClasses}>{openCopy}</span>;\n }\n return null;\n })();\n\n return (\n <AccordionPrimitive.Item\n key={index}\n value={makeValue(index)}\n data-step-id={String(index)}\n className={itemVariants({ tone: itemTone })}\n >\n <AccordionPrimitive.Header className=\"ds:flex\">\n <AccordionPrimitive.Trigger\n // Locked steps (upcoming, and not marked reachable by a\n // `completed` / `error` / `unlocked` status) are *HTML*-\n // disabled — they must not be\n // reachable by Tab or by Radix's arrow-key navigation ring\n // (Radix filters `item.ref.current?.disabled`, which is\n // the HTML attribute). Current is only *ARIA*-disabled so\n // keyboard users can Tab to it as a heading anchor and\n // hear \"current step\"; Radix's `collapsible=false` makes\n // the click a no-op regardless. Setting `disabled` at the\n // Trigger rather than the Item because `...triggerProps`\n // spreads after Collapsible writes its own `disabled`\n // from context, so the Item-level disabled gets overridden.\n disabled={isLocked}\n aria-disabled={isCurrent || undefined}\n // The hint is rendered text, but `aria-label` overrides\n // element content wholesale — so the affordance has to be\n // appended here too or AT hears none of it.\n aria-label={\n state === 'completed'\n ? `${stepN}, ${editCopy}`\n : isUpcoming && !isLocked\n ? `${stepN}, ${openCopy}`\n : stepN\n }\n aria-current={isCurrent ? 'step' : undefined}\n className={triggerClasses}\n >\n <span\n aria-hidden=\"true\"\n className={indicatorVariants({ state })}\n >\n {indicatorContent}\n </span>\n <span className=\"ds:flex ds:min-w-0 ds:flex-1 ds:flex-col\">\n <span className={labelClasses(state)}>{spec.label}</span>\n {spec.description ? (\n <span className={descriptionClasses}>\n {spec.description}\n </span>\n ) : null}\n </span>\n {hint}\n {isCurrent ? null : (\n <ChevronDown\n aria-hidden=\"true\"\n className={chevronClasses}\n />\n )}\n </AccordionPrimitive.Trigger>\n </AccordionPrimitive.Header>\n {spec.summary && state === 'completed' ? (\n <div className={summaryClasses}>{spec.summary}</div>\n ) : null}\n <AccordionPrimitive.Content className={contentClasses}>\n <div className={contentInnerClasses}>{spec.content}</div>\n </AccordionPrimitive.Content>\n </AccordionPrimitive.Item>\n );\n })}\n </AccordionPrimitive.Root>\n );\n },\n);\nStepperAccordion.displayName = 'StepperAccordion';\n\nexport { StepperAccordion };\n"],"names":["stateForStep","index","activeStep","status","stepIsReachable","STEP_VALUE_PREFIX","makeValue","indexFromValue","value","iconDrawClasses","CheckGlyph","jsx","CrossGlyph","jsxs","indicatorClasses","indicatorVariants","cva","itemVariants","triggerClasses","labelClasses","state","descriptionClasses","hintClasses","chevronClasses","summaryClasses","contentClasses","contentInnerClasses","rootVariants","StepperAccordion","forwardRef","steps","onStepChange","ariaLabel","id","className","rest","ref","t","useTranslation","total","clampedActive","label","editCopy","openCopy","lockedCopy","completedCopy","errorCopy","handleValueChange","handle","useMemo","step","clamped","useImperativeHandle","AccordionPrimitive","spec","isCurrent","isUpcoming","isLocked","itemTone","stepN","indicatorContent","Fragment","hint","Lock","ChevronDown"],"mappings":";;;;;;;AA4CO,SAASA,EACdC,GACAC,GACAC,GACW;AACX,SAAIA,MAAW,UAAgB,UAC3BF,MAAUC,IAAmB,YAC7BC,MAAW,eACXF,IAAQC,IAAmB,cAIxB;AACT;AASO,SAASE,EACdH,GACAC,GACAC,GACS;AACT,SAAIA,MAAW,SAAkB,KAC1BF,KAASC;AAClB;AC7CA,MAAMG,IAAoB,SACpBC,IAAY,CAACL,MAAkB,GAAGI,CAAiB,GAAGJ,CAAK,IAC3DM,IAAiB,CAACC,MACtB,OAAOA,EAAM,MAAMH,EAAkB,MAAM,CAAC,GAOxCI,IAAkB;AAAA,EACtB;AAAA,EACA;AAAA,EACA;AACF,EAAE,KAAK,GAAG;AAEV,SAASC,IAAa;AACpB,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,SAAQ;AAAA,MACR,MAAK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AA,CAAQ,EAAA,CACrD;AAAA,cAAA;AAAA,YAAA;AAAA,YA9DKrD;AAAA,UAAA;AAAA,QAiEX,CAAC;AAAA,MAAA;AAAA,IAAA;AAAA,EAGP;AACF;AACA2B,GAAiB,cAAc;"}
|
package/dist/agent-catalog.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"packageVersion": "1.
|
|
3
|
+
"packageVersion": "1.11.0",
|
|
4
4
|
"components": [
|
|
5
5
|
{
|
|
6
6
|
"kind": "component",
|
|
@@ -1253,6 +1253,12 @@
|
|
|
1253
1253
|
"type": "string",
|
|
1254
1254
|
"description": "Active variant — one of `inline-list`, `accordion`, `calendar`, `flexible`, `progress`.",
|
|
1255
1255
|
"descriptionKey": "ui.agent.booking.state.variant"
|
|
1256
|
+
},
|
|
1257
|
+
{
|
|
1258
|
+
"name": "currentStep",
|
|
1259
|
+
"type": "number",
|
|
1260
|
+
"description": "The step the flow is on — 1 insurance, 2 specialty, 3 service, 4 provider, 5 date, 6 time, 7 patient details, 8 confirmation (after a successful submit). Read this back after `goto_step` to see where the clamp landed.",
|
|
1261
|
+
"descriptionKey": "ui.agent.booking.state.currentStep"
|
|
1256
1262
|
}
|
|
1257
1263
|
],
|
|
1258
1264
|
"actions": [
|
|
@@ -1293,7 +1299,8 @@
|
|
|
1293
1299
|
},
|
|
1294
1300
|
"idempotent": true,
|
|
1295
1301
|
"errors": [
|
|
1296
|
-
"Requested step is not yet reachable — clamped to the first incomplete step."
|
|
1302
|
+
"Requested step is not yet reachable — clamped to the first incomplete step.",
|
|
1303
|
+
"Requested step is hidden for this practice (e.g. insurance outside Germany, or provider choice turned off) — clamped to the first incomplete step."
|
|
1297
1304
|
],
|
|
1298
1305
|
"examples": [
|
|
1299
1306
|
{
|
|
@@ -1303,7 +1310,7 @@
|
|
|
1303
1310
|
"note": "Return to the first step."
|
|
1304
1311
|
}
|
|
1305
1312
|
],
|
|
1306
|
-
"description": "Jump to the given step.
|
|
1313
|
+
"description": "Jump to the given step. A step that is hidden for this practice, or that sits ahead of the first incomplete step, clamps to that first incomplete step — read `currentStep` back to see where it landed.",
|
|
1307
1314
|
"descriptionKey": "ui.agent.booking.actions.gotoStep"
|
|
1308
1315
|
}
|
|
1309
1316
|
],
|
|
@@ -10199,7 +10206,7 @@
|
|
|
10199
10206
|
},
|
|
10200
10207
|
"item": {
|
|
10201
10208
|
"attr": "data-result-id",
|
|
10202
|
-
"description": "Stable result id emitted on each rendered result card. Used by scroll_to_result / focus_pin to address a single result. Each card also carries two anchors: data-component=\"practice-result-open-cta\" (practice page) and data-component=\"practice-result-book-cta\" (booking flow; data-slot-aware=\"true\" when it deep-links to a next slot)."
|
|
10209
|
+
"description": "Stable result id emitted on each rendered result card. Used by scroll_to_result / focus_pin to address a single result. Each card also carries two anchors: data-component=\"practice-result-open-cta\" (practice page) and data-component=\"practice-result-book-cta\" (booking flow; data-slot-aware=\"true\" when it deep-links to a next slot). Card content carries its own read-only hooks: data-component=\"practice-result-tagline\", data-component=\"practice-result-description\", and data-component=\"practice-result-price\" (the kit-formatted first-visit cost — present only when the practice set one)."
|
|
10203
10210
|
}
|
|
10204
10211
|
}
|
|
10205
10212
|
},
|
package/dist/agent-i18n/en.json
CHANGED
|
@@ -135,11 +135,12 @@
|
|
|
135
135
|
},
|
|
136
136
|
"booking": {
|
|
137
137
|
"state": {
|
|
138
|
-
"variant": "Active variant — one of `inline-list`, `accordion`, `calendar`, `flexible`, `progress`."
|
|
138
|
+
"variant": "Active variant — one of `inline-list`, `accordion`, `calendar`, `flexible`, `progress`.",
|
|
139
|
+
"currentStep": "The step the flow is on — 1 insurance, 2 specialty, 3 service, 4 provider, 5 date, 6 time, 7 patient details, 8 confirmation (after a successful submit). Read this back after `goto_step` to see where the clamp landed."
|
|
139
140
|
},
|
|
140
141
|
"actions": {
|
|
141
142
|
"reset": "Clear the booking value back to an empty state. Use to abandon an in-progress flow.",
|
|
142
|
-
"gotoStep": "Jump to the given step.
|
|
143
|
+
"gotoStep": "Jump to the given step. A step that is hidden for this practice, or that sits ahead of the first incomplete step, clamps to that first incomplete step — read `currentStep` back to see where it landed."
|
|
143
144
|
}
|
|
144
145
|
},
|
|
145
146
|
"breadcrumb": {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared money formatter for the kit's "price in minor units" convention.
|
|
3
|
+
*
|
|
4
|
+
* Every component that renders a price takes the amount as an integer in
|
|
5
|
+
* the smallest currency unit (cents / centesimi) plus an ISO-4217
|
|
6
|
+
* `currencyCode`, and the KIT does the formatting — the consumer never
|
|
7
|
+
* hands the kit a pre-rendered string. Lifted from the file-local
|
|
8
|
+
* duplicate in `contact-profile-card.tsx` when PracticeResults adopted
|
|
9
|
+
* the same convention, so both surfaces render an identical price for
|
|
10
|
+
* identical input.
|
|
11
|
+
*
|
|
12
|
+
* Not to be confused with `formatPaymentAmount` (payment-form): that one
|
|
13
|
+
* is the checkout formatter and falls back to an `en` currency string so
|
|
14
|
+
* a raw integer can never leak into a payment UI. This is the lightweight
|
|
15
|
+
* leaf helper for read-only price captions — it lives in `_shared` so a
|
|
16
|
+
* SERP card can use it without pulling the payment-form module graph in.
|
|
17
|
+
* Both apply the same zero-decimal divisor rule; only the failure
|
|
18
|
+
* behaviour differs.
|
|
19
|
+
*/
|
|
20
|
+
export declare function formatPrice(minorUnits: number, currency: string, locale: string): string;
|
|
21
|
+
//# sourceMappingURL=format-price.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-price.d.ts","sourceRoot":"","sources":["../../../src/components/_shared/format-price.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAgCH,wBAAgB,WAAW,CACzB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,GACb,MAAM,CAoBR"}
|
|
@@ -8,6 +8,7 @@ export { computeDueDate, trimesterForWeeks, gestationalMilestones, trimesterHigh
|
|
|
8
8
|
export { computeAntenatalSchedule, type AntenatalEvent, type ResolvedAntenatalEvent, type AntenatalScheduleOptions, type AntenatalCategory, type AntenatalStatus, type AntenatalCondition, type ScheduleLocale, type GdmRisk, } from './antenatal-schedule';
|
|
9
9
|
export { AntenatalScheduleTimeline, type AntenatalScheduleTimelineProps, } from './antenatal-schedule-timeline';
|
|
10
10
|
export { InsertButton, buildResultText, buildResultHtml, buildResultCardSvg, svgCardToPngDataUri, svgCardToPng, type InsertButtonProps, type InsertVariant, type InsertPayload, type InsertPngResult, type InsertMode, type InsertCardData, type InsertCardField, type InsertCardGauge, type SvgCardToPngOptions, } from './insert-result';
|
|
11
|
+
export { formatPrice } from './format-price';
|
|
11
12
|
export { normalizeDiacritics } from './normalize-diacritics';
|
|
12
13
|
export { useDebouncedCallback } from './use-debounced-callback';
|
|
13
14
|
export { useFocusTrap, type UseFocusTrapOptions } from './use-focus-trap';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/_shared/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACvB,+BAA+B,EAC/B,qBAAqB,EACrB,cAAc,EACd,KAAK,aAAa,EAClB,KAAK,gBAAgB,GACtB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,KAAK,eAAe,EACpB,KAAK,aAAa,GACnB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,qBAAqB,EACrB,uBAA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E,MAAM,+BAA+B,CAAC;AACzE,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,KAAK,SAAS,GACf,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,uBAAuB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EACL,kBAAkB,EAClB,iCAAiC,GAClC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,sBAAsB,EACtB,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,wBAAwB,EACxB,uBAAuB,EACvB,0BAA0B,GAC3B,MAAM,wBAAwB,CAAC;AAChC,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/_shared/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACvB,+BAA+B,EAC/B,qBAAqB,EACrB,cAAc,EACd,KAAK,aAAa,EAClB,KAAK,gBAAgB,GACtB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,KAAK,eAAe,EACpB,KAAK,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AE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC1E,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,KAAK,SAAS,GACf,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,uBAAuB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EACL,kBAAkB,EAClB,iCAAiC,GAClC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,sBAAsB,EACtB,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,wBAAwB,EACxB,uBAAuB,EACvB,0BAA0B,GAC3B,MAAM,wBAAwB,CAAC;AAChC,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -1,4 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Consumer-supplied override for a step.
|
|
3
|
+
*
|
|
4
|
+
* - `completed` — the step holds a value; render the tick and let the user
|
|
5
|
+
* back in to change it.
|
|
6
|
+
* - `error` — the step's own validation failed; always wins.
|
|
7
|
+
* - `unlocked` (1.11.0) — the step has been *reached* but holds no value of
|
|
8
|
+
* its own. It renders exactly like an upcoming step, but the user may open
|
|
9
|
+
* it. Added for flows whose final step can never report itself "completed"
|
|
10
|
+
* because its validity belongs to a form inside it: without this, moving
|
|
11
|
+
* the cursor backwards left that step HTML-`disabled` and unreachable.
|
|
12
|
+
*
|
|
13
|
+
* `'completed'` and `'error'` behave exactly as before, so consumers passing
|
|
14
|
+
* either (or nothing) are unaffected. A consumer that reads this union back
|
|
15
|
+
* in an exhaustive `switch` needs a case for `'unlocked'`; `StepState` — the
|
|
16
|
+
* union such a switch usually runs on — is deliberately untouched.
|
|
17
|
+
*/
|
|
18
|
+
export type StepStatus = 'completed' | 'error' | 'unlocked';
|
|
2
19
|
export type StepState = 'upcoming' | 'current' | 'completed' | 'error';
|
|
3
20
|
export interface StepSpec {
|
|
4
21
|
/** Visible step label — comes from the consumer, already translated. */
|
|
@@ -9,9 +26,18 @@ export interface StepSpec {
|
|
|
9
26
|
* Consumer-explicit status override. `error` always wins; `completed` is
|
|
10
27
|
* honoured only for steps at or beyond the active index so the active step
|
|
11
28
|
* always keeps `current` (otherwise a consumer pre-setting `completed` on
|
|
12
|
-
* every step would silently mask the current position).
|
|
29
|
+
* every step would silently mask the current position). `unlocked` changes
|
|
30
|
+
* reachability only — see `stepIsReachable` — and never the rendered state.
|
|
13
31
|
*/
|
|
14
32
|
status?: StepStatus;
|
|
15
33
|
}
|
|
16
34
|
export declare function stateForStep(index: number, activeStep: number, status?: StepStatus): StepState;
|
|
35
|
+
/**
|
|
36
|
+
* May the user open this step?
|
|
37
|
+
*
|
|
38
|
+
* Everything at or before the cursor is reachable, as is any step the
|
|
39
|
+
* consumer has explicitly marked `completed`, `error` or `unlocked`.
|
|
40
|
+
* Steps ahead of the cursor with no status stay locked, exactly as before.
|
|
41
|
+
*/
|
|
42
|
+
export declare function stepIsReachable(index: number, activeStep: number, status?: StepStatus): boolean;
|
|
17
43
|
//# sourceMappingURL=stepper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stepper.d.ts","sourceRoot":"","sources":["../../../src/components/_shared/stepper.ts"],"names":[],"mappings":"AAQA,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"stepper.d.ts","sourceRoot":"","sources":["../../../src/components/_shared/stepper.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,OAAO,GAAG,UAAU,CAAC;AAE5D,MAAM,MAAM,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,WAAW,GAAG,OAAO,CAAC;AAEvE,MAAM,WAAW,QAAQ;IACvB,wEAAwE;IACxE,KAAK,EAAE,MAAM,CAAC;IACd,oFAAoF;IACpF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;CACrB;AAED,wBAAgB,YAAY,CAC1B,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,MAAM,EAClB,MAAM,CAAC,EAAE,UAAU,GAClB,SAAS,CASX;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,MAAM,EAClB,MAAM,CAAC,EAAE,UAAU,GAClB,OAAO,CAGT"}
|
|
@@ -116,11 +116,24 @@ export interface BookingValidationResult {
|
|
|
116
116
|
export type BookingValidator = (value: string) => Promise<BookingValidationResult>;
|
|
117
117
|
export interface BookingHandle {
|
|
118
118
|
getVariant: () => BookingVariant;
|
|
119
|
+
/**
|
|
120
|
+
* The step the flow is on — 1-7 while the cascade is in progress, and 8
|
|
121
|
+
* once `onSubmit` has resolved and the confirmation view is showing.
|
|
122
|
+
*
|
|
123
|
+
* This is the read-back for `goToStep`: it reports the **cursor**, which
|
|
124
|
+
* can sit behind the cascade's frontier after a backwards edit. It is
|
|
125
|
+
* therefore NOT always the number `onStepChange` emits — that callback
|
|
126
|
+
* reports the frontier (the first incomplete step), so moving the cursor
|
|
127
|
+
* back to step 3 with everything filled makes this return `3` while
|
|
128
|
+
* `onStepChange` stays silent on `7`.
|
|
129
|
+
*/
|
|
130
|
+
getCurrentStep: () => 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
|
119
131
|
/** Clear `value` back to an empty state via `onChange`. */
|
|
120
132
|
reset: () => void;
|
|
121
133
|
/**
|
|
122
|
-
* Jump to a specific step.
|
|
123
|
-
*
|
|
134
|
+
* Jump to a specific step. A step that is not in the visible ladder, or
|
|
135
|
+
* that sits ahead of the first incomplete step, clamps to that first
|
|
136
|
+
* incomplete step rather than stranding the cursor.
|
|
124
137
|
*/
|
|
125
138
|
goToStep: (step: 1 | 2 | 3 | 4 | 5 | 6 | 7) => void;
|
|
126
139
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"booking-types.d.ts","sourceRoot":"","sources":["../../../src/components/booking/booking-types.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMjE,MAAM,MAAM,cAAc,GACtB,aAAa,GACb,WAAW,GACX,UAAU,GACV,UAAU,GACV,UAAU,CAAC;AAMf,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEjD,sEAAsE;AACtE,MAAM,MAAM,mBAAmB,GAAG,OAAO,GAAG,UAAU,GAAG,KAAK,CAAC;AAE/D,0DAA0D;AAC1D,eAAO,MAAM,0BAA0B,EAAE,SAAS,mBAAmB,EAI3D,CAAC;AAEX,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,yDAAyD;IACzD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kEAAkE;IAClE,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,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,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,4EAA4E;IAC5E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,kBAAkB;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8CAA8C;IAC9C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,0EAA0E;IAC1E,OAAO,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;CACnC;AAMD,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,WAAW,CAAC;IAClB,KAAK,EAAE,YAAY,CAAC;IACpB,oFAAoF;IACpF,OAAO,EAAE,cAAc,CAAC;CACzB;AAMD,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,OAAO,CAAC;IACf,kEAAkE;IAClE,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,gBAAgB,GAAG,CAC7B,KAAK,EAAE,MAAM,KACV,OAAO,CAAC,uBAAuB,CAAC,CAAC;AAMtC,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,MAAM,cAAc,CAAC;IACjC,2DAA2D;IAC3D,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB
|
|
1
|
+
{"version":3,"file":"booking-types.d.ts","sourceRoot":"","sources":["../../../src/components/booking/booking-types.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMjE,MAAM,MAAM,cAAc,GACtB,aAAa,GACb,WAAW,GACX,UAAU,GACV,UAAU,GACV,UAAU,CAAC;AAMf,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEjD,sEAAsE;AACtE,MAAM,MAAM,mBAAmB,GAAG,OAAO,GAAG,UAAU,GAAG,KAAK,CAAC;AAE/D,0DAA0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H,eAAe,CAAC,EAAE,gBAAgB,GAAG,eAAe,CAAC;IACrD;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,iBAAiB,CAAC,EAAE,SAAS,CAAC;IAC9B,wBAAwB,CAAC,EAAE,SAAS,CAAC;IAGrC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"booking.agent.d.ts","sourceRoot":"","sources":["../../../src/components/booking/booking.agent.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,eAAO,MAAM,YAAY,EAAE,YAAY,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"booking.agent.d.ts","sourceRoot":"","sources":["../../../src/components/booking/booking.agent.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,eAAO,MAAM,YAAY,EAAE,YAAY,CAAC,aAAa,CA4EpD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"booking.d.ts","sourceRoot":"","sources":["../../../src/components/booking/booking.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"booking.d.ts","sourceRoot":"","sources":["../../../src/components/booking/booking.tsx"],"names":[],"mappings":"AA8EA,OAAO,KAAK,EAIV,YAAY,EAOb,MAAM,iBAAiB,CAAC;AA2BzB,YAAY,EACV,cAAc,EACd,aAAa,EACb,eAAe,EACf,YAAY,EACZ,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,oBAAoB,EACpB,uBAAuB,EACvB,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,mBAAmB,EACnB,aAAa,GACd,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAm+E1C,eAAO,MAAM,OAAO,yGA4kBnB,CAAC"}
|