@alfadocs/ui-kit 1.90.0 → 1.90.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/address-autocomplete-DR4Xn23Z.js +519 -0
- package/dist/_chunks/{address-fields-CfnXK8RT.js → address-fields-qxQkGwPf.js} +5 -5
- package/dist/_chunks/{ai-permission-notice-CoW22jx1.js → ai-permission-notice-VNh3W57L.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-DUMERHK3.js → anamnesis-summary-rows-EKPfVCmh.js} +662 -654
- package/dist/_chunks/autocomplete-BXMcNoa3.js +562 -0
- package/dist/_chunks/{balance-badge-cell-C9-hyfxy.js → balance-badge-cell-D9VhFp0L.js} +3 -3
- package/dist/_chunks/{booking-C0FoW8Yx.js → booking-CcE_oviI.js} +1896 -1859
- package/dist/_chunks/browser-D5CD3WOj.js +565 -0
- package/dist/_chunks/{calendar-appointment-editor-dialog-D8Wkbm8_.js → calendar-appointment-editor-dialog-CiAGAX2t.js} +7 -7
- package/dist/_chunks/{checkbox-BjDv-r3o.js → checkbox-a7Sh-dXb.js} +32 -31
- package/dist/_chunks/{checkbox-group-Cw2H5qaq.js → checkbox-group-eGdv9fZc.js} +2 -2
- package/dist/_chunks/{city-input-CJVGswxp.js → city-input-CA59CjnV.js} +2 -2
- package/dist/_chunks/{combobox-CDPm_n0p.js → combobox-D-gpgEDy.js} +314 -294
- package/dist/_chunks/{country-select-DQ8q7ypA.js → country-select-BfmX9y5i.js} +2 -2
- package/dist/_chunks/{data-table-D7EGpqOn.js → data-table-CqQgoNsU.js} +553 -552
- package/dist/_chunks/{face-scheme-BgJGFDTa.js → face-scheme-BKSE98bo.js} +2 -2
- package/dist/_chunks/{file-manager-DQbWBTfk.js → file-manager-BnI1ZWZu.js} +2 -2
- package/dist/_chunks/{header-settings-BVhjndtV.js → header-settings-BeA2fnol.js} +24 -23
- package/dist/_chunks/{heatmap-BJB6V9yJ.js → heatmap-fCxwNz2o.js} +2 -2
- package/dist/_chunks/index-CpVcVNBu.js +2326 -0
- package/dist/_chunks/{index.es-Bpb8_NrX.js → index.es-Beo-XicE.js} +2 -2
- package/dist/_chunks/jspdf.es.min-BW7y6yhl.js +9674 -0
- package/dist/_chunks/{link-cell-renderer-C0ynDik7.js → link-cell-renderer-CnCgudvq.js} +3 -3
- package/dist/_chunks/{login-dev-card-DYwbL5sD.js → login-dev-card-BZBR58mu.js} +2 -2
- package/dist/_chunks/{map-view-Bvi06RVh.js → map-view-UrNgxBy3.js} +260 -237
- package/dist/_chunks/{index.modern-BeRXQVdc.js → maps-core-gate-DkNqGkm3.js} +360 -319
- package/dist/_chunks/{marketplace-app-shell-x_abo_ye.js → marketplace-app-shell-CmZx0Oam.js} +2 -2
- package/dist/_chunks/{notes-panel-CZO1qsD-.js → notes-panel-Dywo6R55.js} +2 -2
- package/dist/_chunks/{patient-details-D0P5eog5.js → patient-details-BUr7Oemx.js} +2 -2
- package/dist/_chunks/{patient-field-row-R73dZJY6.js → patient-field-row-bJk8Q_qr.js} +5 -5
- package/dist/_chunks/patient-search-Ca9j5cWb.js +1306 -0
- package/dist/_chunks/{patient-summary-card-6U74-ivO.js → patient-summary-card-CCQZ8X37.js} +2 -2
- package/dist/_chunks/{periodontal-diagnosis-B9YmmVmM.js → periodontal-diagnosis-DD3hrg9X.js} +2 -2
- package/dist/_chunks/{permission-matrix-BoQjENGV.js → permission-matrix-BJ6sg3Zp.js} +3 -3
- package/dist/_chunks/{practice-results-B61krlwu.js → practice-results-DQuOfqej.js} +2 -2
- package/dist/_chunks/{province-select-CPdTwEob.js → province-select-D64whw0m.js} +2 -2
- package/dist/_chunks/{registration-form-DmP3YUfp.js → registration-form-CRm6DaB9.js} +2 -2
- package/dist/_chunks/{reviews-panel-UzQQLb-z.js → reviews-panel-B7InBORU.js} +42 -41
- package/dist/_chunks/{rich-text-editor-BZTyxQBd.js → rich-text-editor-BfEu57dk.js} +3 -3
- package/dist/_chunks/{slot-grid-Bb13H9Rl.js → slot-grid-DrwynKeN.js} +91 -89
- package/dist/_chunks/{task-editor-BOETWbjU.js → task-editor-CI1SKUNc.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-CWN-nJCZ.js → use-appointment-details-read-BytPq3Ux.js} +2 -2
- package/dist/_chunks/{voice-control-panel-BziKE-KK.js → voice-control-panel-BP0otrID.js} +2 -2
- package/dist/_chunks/{workflow-webhook-action-DulCpCRz.js → workflow-webhook-action-B_nBJ_ht.js} +2 -2
- package/dist/agent-catalog.json +2 -2
- package/dist/agent-i18n/en.json +1 -1
- package/dist/components/_shared/maps-core-gate.d.ts +18 -0
- package/dist/components/address-autocomplete/index.js +1 -1
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/ai-permission-notice/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/booking/index.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox-group/index.js +1 -1
- package/dist/components/city-input/index.js +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/country-select/index.js +1 -1
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/data-table/xlsx-export.d.ts +13 -0
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/header-settings/header-settings.d.ts +2 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/periodontal-diagnosis/index.js +1 -1
- package/dist/components/permission-matrix/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/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/host-compat.css +1 -10
- package/dist/index.js +37 -37
- package/dist/patterns/anamnesis/anamnesis-export-download.d.ts +1 -1
- package/dist/patterns/anamnesis/anamnesis-export.d.ts +3 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/login-form/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/workflow-webhook-action/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +4 -8
- package/dist/_chunks/address-autocomplete-bPR2mNBt.js +0 -498
- package/dist/_chunks/autocomplete-CnB1mHGc.js +0 -539
- package/dist/_chunks/exceljs.min-D2MHbJsF.js +0 -23046
- package/dist/_chunks/jspdf.es.min-Cal6Nuw_.js +0 -10007
- package/dist/_chunks/patient-search-CCOUZABE.js +0 -1196
|
@@ -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-bJk8Q_qr.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-CCQZ8X37.js.map
|
package/dist/_chunks/{periodontal-diagnosis-B9YmmVmM.js → periodontal-diagnosis-DD3hrg9X.js}
RENAMED
|
@@ -4,7 +4,7 @@ import { c as Z } from "./index-D2ZczOXr.js";
|
|
|
4
4
|
import { useTranslation as ee } from "react-i18next";
|
|
5
5
|
import { B as te } from "./badge-BUk4RjTS.js";
|
|
6
6
|
import { C as j } from "./card-BA4Ig_kn.js";
|
|
7
|
-
import { C as ae } from "./checkbox-
|
|
7
|
+
import { C as ae } from "./checkbox-a7Sh-dXb.js";
|
|
8
8
|
import { R as y } from "./radio-BZQs6_36.js";
|
|
9
9
|
import { R as D } from "./radio-group-ChIKyeSJ.js";
|
|
10
10
|
import { u as oe } from "./registry-DvAUVLHh.js";
|
|
@@ -342,4 +342,4 @@ export {
|
|
|
342
342
|
k as i,
|
|
343
343
|
ne as p
|
|
344
344
|
};
|
|
345
|
-
//# sourceMappingURL=periodontal-diagnosis-
|
|
345
|
+
//# sourceMappingURL=periodontal-diagnosis-DD3hrg9X.js.map
|
|
@@ -2,8 +2,8 @@ import { jsx as a, jsxs as K } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as U, useMemo as h, useRef as d } from "react";
|
|
3
3
|
import { c as V } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as A } from "react-i18next";
|
|
5
|
-
import { C as H } from "./checkbox-group-
|
|
6
|
-
import { C as T } from "./checkbox-
|
|
5
|
+
import { C as H } from "./checkbox-group-eGdv9fZc.js";
|
|
6
|
+
import { C as T } from "./checkbox-a7Sh-dXb.js";
|
|
7
7
|
import { u as _ } from "./registry-DvAUVLHh.js";
|
|
8
8
|
import { L as q } from "./lock-ClAFG1gy.js";
|
|
9
9
|
const z = {
|
|
@@ -171,4 +171,4 @@ export {
|
|
|
171
171
|
I as a,
|
|
172
172
|
z as p
|
|
173
173
|
};
|
|
174
|
-
//# sourceMappingURL=permission-matrix-
|
|
174
|
+
//# sourceMappingURL=permission-matrix-BJ6sg3Zp.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-UrNgxBy3.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-DQuOfqej.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as P } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as y, useMemo as g, useCallback as R, useRef as D, useEffect as _ } from "react";
|
|
3
3
|
import { useTranslation as k } from "react-i18next";
|
|
4
|
-
import { C as x } from "./combobox-
|
|
4
|
+
import { C as x } from "./combobox-D-gpgEDy.js";
|
|
5
5
|
import { n as t } from "./normalize-diacritics-BNGbFNlJ.js";
|
|
6
6
|
import { u as K } from "./use-controllable-state-BiY4xTzM.js";
|
|
7
7
|
import { u as j } from "./registry-DvAUVLHh.js";
|
|
@@ -271,4 +271,4 @@ export {
|
|
|
271
271
|
Z as P,
|
|
272
272
|
H as p
|
|
273
273
|
};
|
|
274
|
-
//# sourceMappingURL=province-select-
|
|
274
|
+
//# sourceMappingURL=province-select-D64whw0m.js.map
|
|
@@ -7,7 +7,7 @@ import { i as tr, E as Ar } from "./email-input-C7THAwh2.js";
|
|
|
7
7
|
import { A as le } from "./alert-9kEwDza3.js";
|
|
8
8
|
import { B as K } from "./button-DohK_Ak_.js";
|
|
9
9
|
import { C as Pr } from "./card-BA4Ig_kn.js";
|
|
10
|
-
import { C as En } from "./checkbox-
|
|
10
|
+
import { C as En } from "./checkbox-a7Sh-dXb.js";
|
|
11
11
|
import { D as kn } from "./dev-bypass-button-B7ePcJcg.js";
|
|
12
12
|
import { E as In } from "./error-summary-mGxIyDAY.js";
|
|
13
13
|
import { F as W } from "./form-field-CyHfOVKF.js";
|
|
@@ -1334,4 +1334,4 @@ export {
|
|
|
1334
1334
|
Gr as R,
|
|
1335
1335
|
cs as a
|
|
1336
1336
|
};
|
|
1337
|
-
//# sourceMappingURL=registration-form-
|
|
1337
|
+
//# sourceMappingURL=registration-form-CRm6DaB9.js.map
|
|
@@ -126,14 +126,14 @@ function de({
|
|
|
126
126
|
totalCount: a,
|
|
127
127
|
onChange: c
|
|
128
128
|
}) {
|
|
129
|
-
const { t:
|
|
129
|
+
const { t: f } = E("ui"), y = B(), [N, o] = H(
|
|
130
130
|
() => Math.max(0, w.indexOf(e))
|
|
131
131
|
);
|
|
132
132
|
W(() => {
|
|
133
133
|
const r = w.indexOf(e);
|
|
134
134
|
r >= 0 && o(r);
|
|
135
135
|
}, [e]);
|
|
136
|
-
const u = F(/* @__PURE__ */ new Map()),
|
|
136
|
+
const u = F(/* @__PURE__ */ new Map()), v = L((r) => {
|
|
137
137
|
var d;
|
|
138
138
|
(d = u.current.get(r)) == null || d.focus();
|
|
139
139
|
}, []), p = w.length, P = L(
|
|
@@ -143,24 +143,24 @@ function de({
|
|
|
143
143
|
case "ArrowRight": {
|
|
144
144
|
r.preventDefault();
|
|
145
145
|
const s = (d + 1) % p;
|
|
146
|
-
o(s),
|
|
146
|
+
o(s), v(s), c(w[s]);
|
|
147
147
|
break;
|
|
148
148
|
}
|
|
149
149
|
case "ArrowUp":
|
|
150
150
|
case "ArrowLeft": {
|
|
151
151
|
r.preventDefault();
|
|
152
152
|
const s = (d - 1 + p) % p;
|
|
153
|
-
o(s),
|
|
153
|
+
o(s), v(s), c(w[s]);
|
|
154
154
|
break;
|
|
155
155
|
}
|
|
156
156
|
case "Home": {
|
|
157
|
-
r.preventDefault(), o(0),
|
|
157
|
+
r.preventDefault(), o(0), v(0), c(w[0]);
|
|
158
158
|
break;
|
|
159
159
|
}
|
|
160
160
|
case "End": {
|
|
161
161
|
r.preventDefault();
|
|
162
162
|
const s = p - 1;
|
|
163
|
-
o(s),
|
|
163
|
+
o(s), v(s), c(w[s]);
|
|
164
164
|
break;
|
|
165
165
|
}
|
|
166
166
|
case "Enter":
|
|
@@ -170,7 +170,7 @@ function de({
|
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
},
|
|
173
|
-
[p,
|
|
173
|
+
[p, v, c]
|
|
174
174
|
);
|
|
175
175
|
return /* @__PURE__ */ n(K, { children: [
|
|
176
176
|
/* @__PURE__ */ t(
|
|
@@ -178,7 +178,7 @@ function de({
|
|
|
178
178
|
{
|
|
179
179
|
id: y,
|
|
180
180
|
className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0",
|
|
181
|
-
children:
|
|
181
|
+
children: f("reviewsPanel.filterTitle")
|
|
182
182
|
}
|
|
183
183
|
),
|
|
184
184
|
/* @__PURE__ */ t(
|
|
@@ -188,7 +188,7 @@ function de({
|
|
|
188
188
|
"aria-labelledby": y,
|
|
189
189
|
className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-2xs)]",
|
|
190
190
|
children: w.map((r, d) => {
|
|
191
|
-
const s = r === "all", x = s ? 0 : r,
|
|
191
|
+
const s = r === "all", x = s ? 0 : r, h = s ? a : i[x], S = r === e, V = N === d, m = s ? f("reviewsPanel.filter.allLabel", { count: h }) : f("reviewsPanel.filter.starsLabel", { stars: x, count: h });
|
|
192
192
|
return /* @__PURE__ */ n(
|
|
193
193
|
"button",
|
|
194
194
|
{
|
|
@@ -215,7 +215,7 @@ function de({
|
|
|
215
215
|
{
|
|
216
216
|
"aria-hidden": "true",
|
|
217
217
|
className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
218
|
-
children: s ? /* @__PURE__ */ t("span", { className: "type-label", children:
|
|
218
|
+
children: s ? /* @__PURE__ */ t("span", { className: "type-label", children: f("reviewsPanel.filter.allShort") }) : /* @__PURE__ */ t(k, { value: x, size: "sm", decorative: !0 })
|
|
219
219
|
}
|
|
220
220
|
),
|
|
221
221
|
/* @__PURE__ */ t(
|
|
@@ -234,7 +234,7 @@ function de({
|
|
|
234
234
|
// keeps the count secondary to the label.
|
|
235
235
|
S ? "ds:text-[color:var(--primary-foreground)]" : "ds:text-[var(--muted-foreground)]"
|
|
236
236
|
].join(" "),
|
|
237
|
-
children:
|
|
237
|
+
children: h
|
|
238
238
|
}
|
|
239
239
|
)
|
|
240
240
|
]
|
|
@@ -248,12 +248,12 @@ function de({
|
|
|
248
248
|
}
|
|
249
249
|
function ce({ review: e, locale: i }) {
|
|
250
250
|
var r, d, s, x;
|
|
251
|
-
const { t: a } = E("ui"), c = B(),
|
|
251
|
+
const { t: a } = E("ui"), c = B(), f = B(), [y, N] = H(!1), o = !!(e.breakdown && Object.values(e.breakdown).some((h) => h != null)), u = !!e.reply || o || !!e.futureVisit || !!e.recommendation, v = C(() => {
|
|
252
252
|
if (!e.authoredAt) return "";
|
|
253
253
|
try {
|
|
254
|
-
const
|
|
255
|
-
return Number.isNaN(
|
|
256
|
-
|
|
254
|
+
const h = new Date(e.authoredAt);
|
|
255
|
+
return Number.isNaN(h.getTime()) ? e.authoredAt : new Intl.DateTimeFormat(i, { dateStyle: "medium" }).format(
|
|
256
|
+
h
|
|
257
257
|
);
|
|
258
258
|
} catch {
|
|
259
259
|
return e.authoredAt;
|
|
@@ -265,14 +265,15 @@ function ce({ review: e, locale: i }) {
|
|
|
265
265
|
onOpenChange: u ? N : void 0,
|
|
266
266
|
children: [
|
|
267
267
|
/* @__PURE__ */ n(A.Footer, { children: [
|
|
268
|
-
/* @__PURE__ */ t("span", { className: "type-meta ds:text-[var(--muted-foreground)]", children:
|
|
268
|
+
/* @__PURE__ */ t("span", { className: "type-meta ds:text-[var(--muted-foreground)]", children: v }),
|
|
269
269
|
u ? /* @__PURE__ */ t(Z, { asChild: !0, children: /* @__PURE__ */ n(
|
|
270
270
|
"button",
|
|
271
271
|
{
|
|
272
272
|
id: c,
|
|
273
273
|
type: "button",
|
|
274
274
|
"data-review-trigger": !0,
|
|
275
|
-
|
|
275
|
+
"aria-controls": f,
|
|
276
|
+
className: "ds:ms-auto ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)] ds:rounded-[var(--radius-sm)] ds:ps-[var(--spacing-2xs)] ds:pe-[var(--spacing-2xs)] ds:pt-[var(--spacing-2xs)] ds:pb-[var(--spacing-2xs)] ds:bg-transparent ds:border-0 ds:text-[length:var(--font-size-sm)] ds:text-[var(--review-details-foreground)] ds:min-w-[var(--min-target-size)] ds:min-h-[var(--min-target-size)] ds:hover:underline ds:cursor-pointer ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)] ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
276
277
|
children: [
|
|
277
278
|
a(y ? "reviewsPanel.card.collapse" : "reviewsPanel.card.expand"),
|
|
278
279
|
/* @__PURE__ */ t(
|
|
@@ -289,7 +290,7 @@ function ce({ review: e, locale: i }) {
|
|
|
289
290
|
}
|
|
290
291
|
) }) : null
|
|
291
292
|
] }),
|
|
292
|
-
u ? /* @__PURE__ */ t(ee, { id:
|
|
293
|
+
u ? /* @__PURE__ */ t(ee, { id: f, "aria-labelledby": c, children: /* @__PURE__ */ n("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)] ds:pb-[var(--spacing-md)]", children: [
|
|
293
294
|
o || e.futureVisit || e.recommendation ? /* @__PURE__ */ n(l, { layout: "inline", density: "compact", children: [
|
|
294
295
|
((r = e.breakdown) == null ? void 0 : r.appointmentScore) != null ? /* @__PURE__ */ n(l.Row, { children: [
|
|
295
296
|
/* @__PURE__ */ t(l.Term, { children: a("reviewsPanel.breakdown.appointment") }),
|
|
@@ -384,7 +385,7 @@ function ue({ hideFilter: e }) {
|
|
|
384
385
|
/* @__PURE__ */ t("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: Array.from({ length: 3 }, (i, a) => /* @__PURE__ */ t(T, { variant: "rounded", height: "6rem" }, `rp-rs-${a}`)) })
|
|
385
386
|
] });
|
|
386
387
|
}
|
|
387
|
-
const
|
|
388
|
+
const I = _(
|
|
388
389
|
// No root padding: the shared `PanelHeader` owns the header's edge
|
|
389
390
|
// padding (px/pt/pb) and the body wrapper below owns the content
|
|
390
391
|
// padding, so the header divider can span flush to the panel edge.
|
|
@@ -415,53 +416,53 @@ const z = _(
|
|
|
415
416
|
aggregate: i,
|
|
416
417
|
filter: a,
|
|
417
418
|
onFilterChange: c,
|
|
418
|
-
introSlot:
|
|
419
|
+
introSlot: f,
|
|
419
420
|
headerActionSlot: y,
|
|
420
421
|
"aria-label": N,
|
|
421
422
|
id: o,
|
|
422
423
|
className: u,
|
|
423
|
-
hideFilter:
|
|
424
|
+
hideFilter: v = !1,
|
|
424
425
|
surface: p = "flat",
|
|
425
426
|
loading: P = !1,
|
|
426
427
|
...r
|
|
427
428
|
}, d) => {
|
|
428
|
-
const { t: s, i18n: x } = E("ui"),
|
|
429
|
-
(
|
|
430
|
-
a === void 0 && V(
|
|
429
|
+
const { t: s, i18n: x } = E("ui"), h = x.language ?? "en", [S, V] = H("all"), m = a ?? S, b = L(
|
|
430
|
+
(g) => {
|
|
431
|
+
a === void 0 && V(g), c == null || c(g);
|
|
431
432
|
},
|
|
432
433
|
[a, c]
|
|
433
434
|
), U = C(
|
|
434
435
|
() => i.histogram ?? le(e),
|
|
435
436
|
[i.histogram, e]
|
|
436
|
-
), R = C(() => m === "all" ? e : e.filter((
|
|
437
|
+
), R = C(() => m === "all" ? e : e.filter((g) => $(g.overallScore) === m), [e, m]), M = F(m);
|
|
437
438
|
M.current = m;
|
|
438
439
|
const O = F(R.length);
|
|
439
440
|
O.current = R.length;
|
|
440
441
|
const q = C(
|
|
441
442
|
() => ({
|
|
442
443
|
getFilter: () => M.current,
|
|
443
|
-
setFilter: (
|
|
444
|
+
setFilter: (g) => b(g),
|
|
444
445
|
getVisibleCount: () => O.current
|
|
445
446
|
}),
|
|
446
447
|
[b]
|
|
447
448
|
), D = F(null);
|
|
448
449
|
Q(d, () => D.current, []), X(ie, q, o);
|
|
449
|
-
const
|
|
450
|
+
const z = N ?? s("reviewsPanel.regionLabel"), j = String(m);
|
|
450
451
|
if (P)
|
|
451
452
|
return /* @__PURE__ */ t(
|
|
452
453
|
"section",
|
|
453
454
|
{
|
|
454
455
|
ref: D,
|
|
455
|
-
"aria-label":
|
|
456
|
+
"aria-label": z,
|
|
456
457
|
"aria-busy": "true",
|
|
457
458
|
id: o,
|
|
458
459
|
"data-component": "reviews-panel",
|
|
459
460
|
"data-component-id": o,
|
|
460
|
-
"data-filter":
|
|
461
|
+
"data-filter": j,
|
|
461
462
|
"data-state": "loading",
|
|
462
|
-
className:
|
|
463
|
+
className: I({ surface: p, className: u }),
|
|
463
464
|
...r,
|
|
464
|
-
children: /* @__PURE__ */ t("div", { className: "ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ t(ue, { hideFilter:
|
|
465
|
+
children: /* @__PURE__ */ t("div", { className: "ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ t(ue, { hideFilter: v }) })
|
|
465
466
|
}
|
|
466
467
|
);
|
|
467
468
|
if (i.count === 0 && e.length === 0)
|
|
@@ -469,13 +470,13 @@ const z = _(
|
|
|
469
470
|
"section",
|
|
470
471
|
{
|
|
471
472
|
ref: D,
|
|
472
|
-
"aria-label":
|
|
473
|
+
"aria-label": z,
|
|
473
474
|
id: o,
|
|
474
475
|
"data-component": "reviews-panel",
|
|
475
476
|
"data-component-id": o,
|
|
476
|
-
"data-filter":
|
|
477
|
+
"data-filter": j,
|
|
477
478
|
"data-state": "empty",
|
|
478
|
-
className:
|
|
479
|
+
className: I({ surface: p, className: u }),
|
|
479
480
|
...r,
|
|
480
481
|
children: /* @__PURE__ */ t("div", { className: "ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ t(
|
|
481
482
|
te,
|
|
@@ -487,17 +488,17 @@ const z = _(
|
|
|
487
488
|
) })
|
|
488
489
|
}
|
|
489
490
|
);
|
|
490
|
-
const G = !
|
|
491
|
+
const G = !v;
|
|
491
492
|
return /* @__PURE__ */ n(
|
|
492
493
|
"section",
|
|
493
494
|
{
|
|
494
495
|
ref: D,
|
|
495
|
-
"aria-label":
|
|
496
|
+
"aria-label": z,
|
|
496
497
|
id: o,
|
|
497
498
|
"data-component": "reviews-panel",
|
|
498
499
|
"data-component-id": o,
|
|
499
|
-
"data-filter":
|
|
500
|
-
className:
|
|
500
|
+
"data-filter": j,
|
|
501
|
+
className: I({ surface: p, className: u }),
|
|
501
502
|
...r,
|
|
502
503
|
children: [
|
|
503
504
|
/* @__PURE__ */ t(
|
|
@@ -531,7 +532,7 @@ const z = _(
|
|
|
531
532
|
}
|
|
532
533
|
),
|
|
533
534
|
/* @__PURE__ */ n("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:min-w-0 ds:p-[var(--spacing-md)]", children: [
|
|
534
|
-
|
|
535
|
+
f || null,
|
|
535
536
|
R.length === 0 ? (
|
|
536
537
|
// `role="status"` already implies `aria-live="polite"` —
|
|
537
538
|
// declaring both would queue two announcements when the
|
|
@@ -564,7 +565,7 @@ const z = _(
|
|
|
564
565
|
{
|
|
565
566
|
"aria-label": s("reviewsPanel.listLabel"),
|
|
566
567
|
className: "ds:list-none ds:m-0 ds:p-0 ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
567
|
-
children: R.map((
|
|
568
|
+
children: R.map((g) => /* @__PURE__ */ t("li", { "data-review-id": g.id, children: /* @__PURE__ */ t(ce, { review: g, locale: h }) }, g.id))
|
|
568
569
|
}
|
|
569
570
|
)
|
|
570
571
|
] })
|
|
@@ -578,4 +579,4 @@ export {
|
|
|
578
579
|
me as R,
|
|
579
580
|
ie as r
|
|
580
581
|
};
|
|
581
|
-
//# sourceMappingURL=reviews-panel-
|
|
582
|
+
//# sourceMappingURL=reviews-panel-B7InBORU.js.map
|
|
@@ -10,7 +10,7 @@ import { S as Bn } from "./spinner-CoflYlEx.js";
|
|
|
10
10
|
import { A as ra } from "./ai-sparkle-D23NT8Z_.js";
|
|
11
11
|
import { B as Me } from "./button-DohK_Ak_.js";
|
|
12
12
|
import { I as K } from "./icon-button-S8_weU3g.js";
|
|
13
|
-
import { A as oa } from "./ai-permission-notice-
|
|
13
|
+
import { A as oa } from "./ai-permission-notice-VNh3W57L.js";
|
|
14
14
|
import { T as aa } from "./text-area-COMVJ1yE.js";
|
|
15
15
|
import { E as _n } from "./editor-overlay-Dc8uVxEp.js";
|
|
16
16
|
import { X as Lr } from "./x-B5YnXwCz.js";
|
|
@@ -28,7 +28,7 @@ import { P as ne } from "./popover-Da1ekjV1.js";
|
|
|
28
28
|
import { D as ie } from "./dialog-C7RWaH08.js";
|
|
29
29
|
import { C as jn } from "./color-picker-AcaWuKah.js";
|
|
30
30
|
import { S as nn } from "./state-backed-text-input-Cgh4ms3p.js";
|
|
31
|
-
import { C as ua } from "./checkbox-
|
|
31
|
+
import { C as ua } from "./checkbox-a7Sh-dXb.js";
|
|
32
32
|
import { F as ma } from "./file-upload-CxjCs7TX.js";
|
|
33
33
|
import { c as I } from "./createLucideIcon-DhHxpK9K.js";
|
|
34
34
|
import { E as fa } from "./ellipsis-dRo9ouSU.js";
|
|
@@ -4145,4 +4145,4 @@ export {
|
|
|
4145
4145
|
Ii as r,
|
|
4146
4146
|
Ts as w
|
|
4147
4147
|
};
|
|
4148
|
-
//# sourceMappingURL=rich-text-editor-
|
|
4148
|
+
//# sourceMappingURL=rich-text-editor-BfEu57dk.js.map
|