@alfadocs/ui-kit-debug 1.74.0 → 1.75.1

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.
Files changed (56) hide show
  1. package/dist/_chunks/booking-D2r19Lia.js +3901 -0
  2. package/dist/_chunks/booking-D2r19Lia.js.map +1 -0
  3. package/dist/_chunks/{calendar-appointment-editor-dialog-CctI6mpd.js → calendar-appointment-editor-dialog-B4My4eiB.js} +2 -2
  4. package/dist/_chunks/{calendar-appointment-editor-dialog-CctI6mpd.js.map → calendar-appointment-editor-dialog-B4My4eiB.js.map} +1 -1
  5. package/dist/_chunks/{header-settings-DBlTL6Qj.js → header-settings-Coh1r41O.js} +148 -154
  6. package/dist/_chunks/header-settings-Coh1r41O.js.map +1 -0
  7. package/dist/_chunks/{locale-picker-KT-Vz3bx.js → locale-picker-DzdGDSBI.js} +311 -282
  8. package/dist/_chunks/locale-picker-DzdGDSBI.js.map +1 -0
  9. package/dist/_chunks/{marketplace-app-shell-B0ix9yNI.js → marketplace-app-shell-Ck5NVJcO.js} +2 -2
  10. package/dist/_chunks/{marketplace-app-shell-B0ix9yNI.js.map → marketplace-app-shell-Ck5NVJcO.js.map} +1 -1
  11. package/dist/_chunks/{patient-details-Dgd_tocD.js → patient-details-B-I9Xkh9.js} +2 -2
  12. package/dist/_chunks/{patient-details-Dgd_tocD.js.map → patient-details-B-I9Xkh9.js.map} +1 -1
  13. package/dist/_chunks/{patient-field-row-BFVlJnS9.js → patient-field-row-Bn0z6lAZ.js} +2 -2
  14. package/dist/_chunks/{patient-field-row-BFVlJnS9.js.map → patient-field-row-Bn0z6lAZ.js.map} +1 -1
  15. package/dist/_chunks/{patient-summary-card-BTKvFUmh.js → patient-summary-card-bhDo0gVX.js} +2 -2
  16. package/dist/_chunks/{patient-summary-card-BTKvFUmh.js.map → patient-summary-card-bhDo0gVX.js.map} +1 -1
  17. package/dist/_chunks/{phone-input-EwVuqFik.js → phone-input-C3NrD-nl.js} +78 -73
  18. package/dist/_chunks/phone-input-C3NrD-nl.js.map +1 -0
  19. package/dist/_chunks/{registration-form-B6qqeXP1.js → registration-form-DeK2QiJu.js} +2 -2
  20. package/dist/_chunks/{registration-form-B6qqeXP1.js.map → registration-form-DeK2QiJu.js.map} +1 -1
  21. package/dist/_chunks/{send-registration-link-form-pO2bGjGa.js → send-registration-link-form-__DWY62q.js} +2 -2
  22. package/dist/_chunks/{send-registration-link-form-pO2bGjGa.js.map → send-registration-link-form-__DWY62q.js.map} +1 -1
  23. package/dist/_chunks/{use-appointment-details-read-BFslxbRr.js → use-appointment-details-read-lFUL4kkd.js} +2 -2
  24. package/dist/_chunks/{use-appointment-details-read-BFslxbRr.js.map → use-appointment-details-read-lFUL4kkd.js.map} +1 -1
  25. package/dist/agent-catalog.json +4 -4
  26. package/dist/agent-i18n/en.json +2 -2
  27. package/dist/components/appointment-details-panel/index.js +1 -1
  28. package/dist/components/booking/booking-types.d.ts +9 -1
  29. package/dist/components/booking/booking-types.d.ts.map +1 -1
  30. package/dist/components/booking/booking.agent.d.ts.map +1 -1
  31. package/dist/components/booking/booking.d.ts.map +1 -1
  32. package/dist/components/booking/details-form.d.ts +2 -0
  33. package/dist/components/booking/details-form.d.ts.map +1 -1
  34. package/dist/components/booking/index.js +1 -1
  35. package/dist/components/header-settings/header-settings.d.ts +6 -0
  36. package/dist/components/header-settings/header-settings.d.ts.map +1 -1
  37. package/dist/components/header-settings/index.js +1 -1
  38. package/dist/components/locale-picker/index.js +1 -1
  39. package/dist/components/locale-picker/locale-picker.d.ts +16 -4
  40. package/dist/components/locale-picker/locale-picker.d.ts.map +1 -1
  41. package/dist/components/patient-details/index.js +1 -1
  42. package/dist/components/patient-summary-card/index.js +1 -1
  43. package/dist/components/phone-input/index.js +1 -1
  44. package/dist/components/phone-input/phone-input.d.ts.map +1 -1
  45. package/dist/index.js +9 -9
  46. package/dist/patterns/calendar/index.js +1 -1
  47. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  48. package/dist/patterns/registration-form/index.js +1 -1
  49. package/dist/patterns/send-registration-link-form/index.js +1 -1
  50. package/dist/tokens.css +1 -1
  51. package/package.json +1 -1
  52. package/dist/_chunks/booking-sq9sa29d.js +0 -3889
  53. package/dist/_chunks/booking-sq9sa29d.js.map +0 -1
  54. package/dist/_chunks/header-settings-DBlTL6Qj.js.map +0 -1
  55. package/dist/_chunks/locale-picker-KT-Vz3bx.js.map +0 -1
  56. package/dist/_chunks/phone-input-EwVuqFik.js.map +0 -1
@@ -1,22 +1,22 @@
1
- import { jsx as t, jsxs as g, Fragment as Q } from "react/jsx-runtime";
2
- import { forwardRef as se, useRef as d, useImperativeHandle as ie, useState as oe, useCallback as ce, useMemo as le } from "react";
3
- import { c as P } from "./index-D2ZczOXr.js";
4
- import { useTranslation as J } from "react-i18next";
5
- import { B as de } from "./button-DohK_Ak_.js";
6
- import { I as ue } from "./icon-button-S8_weU3g.js";
7
- import { D as r } from "./dropdown-menu-D1we7oAY.js";
8
- import { u as pe, c as v, a as X, L as ge } from "./locale-picker-KT-Vz3bx.js";
9
- import { u as me } from "./use-media-query-CcAx5SMM.js";
10
- import { u as he } from "./use-locale-BExNy9Dl.js";
11
- import { u as fe } from "./use-theme-CAuo6EYT.js";
12
- import { a as ye } from "./use-direction-Dp8h70PP.js";
13
- import { u as be } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
1
+ import { jsx as t, jsxs as m, Fragment as $ } from "react/jsx-runtime";
2
+ import { forwardRef as ie, useRef as l, useImperativeHandle as oe, useState as ce, useCallback as le, useMemo as de } from "react";
3
+ import { c as N } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as Y } from "react-i18next";
5
+ import { B as ue } from "./button-DohK_Ak_.js";
6
+ import { I as pe } from "./icon-button-S8_weU3g.js";
7
+ import { D as n } from "./dropdown-menu-D1we7oAY.js";
8
+ import { u as me, p as ge, c as w, a as Z } from "./locale-picker-DzdGDSBI.js";
9
+ import { u as he } from "./use-media-query-CcAx5SMM.js";
10
+ import { u as fe } from "./use-locale-BExNy9Dl.js";
11
+ import { u as ye } from "./use-theme-CAuo6EYT.js";
12
+ import { a as be } from "./use-direction-Dp8h70PP.js";
13
+ import { u as ve } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
14
14
  import { u as we } from "./registry-DvAUVLHh.js";
15
- import { u as ve } from "./length-token-DwMnGEYT.js";
16
- import { S as Se } from "./settings-d25ju_6L.js";
17
- import { A as Y } from "./arrow-left-BfaGqVam.js";
18
- import { C as $ } from "./chevron-right-I9AeSxH2.js";
19
- const ke = {
15
+ import { u as Se } from "./length-token-DwMnGEYT.js";
16
+ import { S as ke } from "./settings-d25ju_6L.js";
17
+ import { A as J } from "./arrow-left-BfaGqVam.js";
18
+ import { C as X } from "./chevron-right-I9AeSxH2.js";
19
+ const Te = {
20
20
  id: "header-settings",
21
21
  // Each setter persists a single preference value (locale / theme /
22
22
  // accessibility) — `set_value` semantics, not an ephemeral view switch.
@@ -32,7 +32,7 @@ const ke = {
32
32
  locale: {
33
33
  type: "string",
34
34
  descriptionKey: "ui.agent.headerSettings.state.locale",
35
- description: 'Active IETF language tag (e.g. "en", "it", "ar"). Read after `set_locale` to confirm the switch landed — an unknown tag is silently dropped and leaves this unchanged.',
35
+ description: 'Active IETF language tag (e.g. "en", "it", "ar"). Initially uses storage, then HTML lang when initialLocaleFromHtmlLang is enabled, then the browser. Read after set_locale to confirm the switch; unknown tags leave it unchanged.',
36
36
  read: (a) => a.getLocale()
37
37
  },
38
38
  theme: {
@@ -75,8 +75,8 @@ const ke = {
75
75
  "Silently ignored when the tag names a locale the kit ships no bundle for — `locale` is unchanged."
76
76
  ],
77
77
  examples: [{ args: { locale: "it" }, note: "Switch to Italian." }],
78
- invoke: (a, n) => {
79
- a.setLocale(n.locale);
78
+ invoke: (a, s) => {
79
+ a.setLocale(s.locale);
80
80
  }
81
81
  },
82
82
  set_theme: {
@@ -93,8 +93,8 @@ const ke = {
93
93
  examples: [
94
94
  { args: { theme: "dark" }, note: "Switch to the dark theme." }
95
95
  ],
96
- invoke: (a, n) => {
97
- a.setTheme(n.theme);
96
+ invoke: (a, s) => {
97
+ a.setTheme(s.theme);
98
98
  }
99
99
  },
100
100
  set_accessibility: {
@@ -119,8 +119,8 @@ const ke = {
119
119
  note: "Enable the AAA-accessible profile."
120
120
  }
121
121
  ],
122
- invoke: (a, n) => {
123
- a.setAccessibility(n.accessibility);
122
+ invoke: (a, s) => {
123
+ a.setAccessibility(s.accessibility);
124
124
  }
125
125
  }
126
126
  },
@@ -137,19 +137,12 @@ const ke = {
137
137
  }
138
138
  }
139
139
  };
140
- function Te(a, n) {
141
- if (!(typeof window > "u"))
142
- try {
143
- window.localStorage.setItem(a, n);
144
- } catch {
145
- }
146
- }
147
140
  function Le(a) {
148
141
  if (typeof document > "u") return;
149
- const n = document.documentElement;
150
- n.lang = a, n.dir = v[a].dir;
142
+ const s = document.documentElement;
143
+ s.lang = a, s.dir = w[a].dir;
151
144
  }
152
- const Ae = P("ds:inline-flex ds:items-center", {
145
+ const Ae = N("ds:inline-flex ds:items-center", {
153
146
  variants: {
154
147
  align: {
155
148
  start: "",
@@ -157,115 +150,116 @@ const Ae = P("ds:inline-flex ds:items-center", {
157
150
  }
158
151
  },
159
152
  defaultVariants: { align: "end" }
160
- }), Re = "ds:w-[var(--popover-size-md)]", Ce = P("", {
153
+ }), Re = "ds:w-[var(--popover-size-md)]", De = N("", {
161
154
  variants: {
162
155
  language: {
163
156
  true: "ds:[inline-size:var(--popover-size-md)] ds:[min-inline-size:0] ds:[max-inline-size:calc(100vw_-_2_*_var(--spacing-lg))] ds:[&_input]:min-w-0",
164
157
  false: ""
165
158
  }
166
159
  }
167
- }), De = P(
160
+ }), Ie = N(
168
161
  "ds:flex ds:flex-1 ds:min-w-0 ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]"
169
162
  );
170
163
  function A({
171
164
  label: a,
172
- value: n,
173
- lang: u
165
+ value: s,
166
+ lang: d
174
167
  }) {
175
- return /* @__PURE__ */ g("span", { className: De(), children: [
168
+ return /* @__PURE__ */ m("span", { className: Ie(), children: [
176
169
  /* @__PURE__ */ t("span", { className: "ds:truncate", children: a }),
177
170
  /* @__PURE__ */ t(
178
171
  "span",
179
172
  {
180
- lang: u,
173
+ lang: d,
181
174
  className: "ds:shrink-0 ds:text-muted-foreground ds:[[data-highlighted]_&]:text-current",
182
- children: n
175
+ children: s
183
176
  }
184
177
  )
185
178
  ] });
186
179
  }
187
- function Z(a) {
188
- return Object.prototype.hasOwnProperty.call(v, a);
180
+ function ee(a) {
181
+ return Object.prototype.hasOwnProperty.call(w, a);
189
182
  }
190
- function Ie({ locale: a }) {
191
- const { t: n } = J("ui"), u = v[Z(a) ? a : "en"], R = (s) => {
192
- var l;
193
- s.target === s.currentTarget && ((l = s.currentTarget.querySelector("input")) == null || l.focus({ preventScroll: !0 }));
194
- }, C = (s) => {
195
- const l = s.target;
196
- if (l instanceof HTMLInputElement) {
197
- if (s.nativeEvent.isComposing) {
198
- s.stopPropagation();
183
+ function Ce({ locale: a }) {
184
+ const { t: s } = Y("ui"), d = w[ee(a) ? a : "en"], R = (r) => {
185
+ var u;
186
+ r.target === r.currentTarget && ((u = r.currentTarget.querySelector("input")) == null || u.focus({ preventScroll: !0 }));
187
+ }, D = (r) => {
188
+ const u = r.target;
189
+ if (u instanceof HTMLInputElement) {
190
+ if (r.nativeEvent.isComposing) {
191
+ r.stopPropagation();
199
192
  return;
200
193
  }
201
- s.key !== "ArrowLeft" && s.key !== "ArrowRight" || (l.selectionStart !== 0 || l.selectionEnd !== 0) && s.stopPropagation();
194
+ r.key !== "ArrowLeft" && r.key !== "ArrowRight" || (u.selectionStart !== 0 || u.selectionEnd !== 0) && r.stopPropagation();
202
195
  }
203
196
  };
204
- return /* @__PURE__ */ g(r.Sub, { children: [
205
- /* @__PURE__ */ t(r.SubTrigger, { "aria-haspopup": "dialog", "data-value": u.code, children: /* @__PURE__ */ g("span", { className: "ds:flex ds:min-w-0 ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
206
- /* @__PURE__ */ t("span", { className: "ds:truncate", children: n("navigation.headerSettings.language.label") }),
197
+ return /* @__PURE__ */ m(n.Sub, { children: [
198
+ /* @__PURE__ */ t(n.SubTrigger, { "aria-haspopup": "dialog", "data-value": d.code, children: /* @__PURE__ */ m("span", { className: "ds:flex ds:min-w-0 ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
199
+ /* @__PURE__ */ t("span", { className: "ds:truncate", children: s("navigation.headerSettings.language.label") }),
207
200
  /* @__PURE__ */ t(
208
201
  "span",
209
202
  {
210
- lang: u.code,
203
+ lang: d.code,
211
204
  className: "ds:shrink-0 ds:text-[color:var(--muted-foreground)] ds:[[data-highlighted]_&]:text-current",
212
- children: u.nativeName
205
+ children: d.nativeName
213
206
  }
214
207
  )
215
208
  ] }) }),
216
209
  /* @__PURE__ */ t(
217
- r.SubContent,
210
+ n.SubContent,
218
211
  {
219
212
  role: "dialog",
220
213
  "aria-orientation": void 0,
221
214
  className: Re,
222
215
  onFocus: R,
223
- onKeyDownCapture: C,
224
- onEscapeKeyDown: (s) => {
225
- s.isComposing && s.preventDefault();
216
+ onKeyDownCapture: D,
217
+ onEscapeKeyDown: (r) => {
218
+ r.isComposing && r.preventDefault();
226
219
  },
227
- children: /* @__PURE__ */ t(X.SearchList, {})
220
+ children: /* @__PURE__ */ t(Z.SearchList, {})
228
221
  }
229
222
  )
230
223
  ] });
231
224
  }
232
- const Ke = se(
233
- (a, n) => {
234
- var B;
225
+ const Ke = ie(
226
+ (a, s) => {
227
+ var U;
235
228
  const {
236
- align: u = "end",
229
+ align: d = "end",
237
230
  size: R = "md",
238
- disabled: C = !1,
239
- className: s,
240
- id: l,
241
- ...ee
242
- } = a, { t: p } = J("ui"), o = fe(), { locale: b, setLocale: _ } = he();
243
- pe();
244
- const D = d(null);
245
- ie(n, () => D.current, []);
246
- const m = me("(width < 48rem)"), z = ye(), [S, h] = oe("main"), c = m ? S : "main", k = d(null), H = d(null), O = d(null), f = d(null), T = d("keyboard");
247
- be(() => {
248
- var e, i, w, G, U;
249
- if (!m && S !== "main" && (f.current = S, h("main")), c === "language")
231
+ disabled: D = !1,
232
+ initialLocaleFromHtmlLang: r = !1,
233
+ className: u,
234
+ id: _,
235
+ ...te
236
+ } = a, { t: p } = Y("ui"), o = ye(), { locale: b, setLocale: H } = fe();
237
+ me(r);
238
+ const I = l(null);
239
+ oe(s, () => I.current, []);
240
+ const g = he("(width < 48rem)"), z = be(), [S, h] = ce("main"), c = g ? S : "main", k = l(null), M = l(null), j = l(null), f = l(null), T = l("keyboard");
241
+ ve(() => {
242
+ var e, i, v, G, Q;
243
+ if (!g && S !== "main" && (f.current = S, h("main")), c === "language")
250
244
  (i = (e = k.current) == null ? void 0 : e.querySelector(
251
245
  T.current === "keyboard" ? "input" : "button"
252
246
  )) == null || i.focus({ preventScroll: !0 });
253
247
  else if (c === "appearance")
254
- (G = (w = k.current) == null ? void 0 : w.querySelector('[role="menuitem"]')) == null || G.focus({ preventScroll: !0 });
248
+ (G = (v = k.current) == null ? void 0 : v.querySelector('[role="menuitem"]')) == null || G.focus({ preventScroll: !0 });
255
249
  else if (f.current) {
256
- const W = f.current, N = m ? (W === "language" ? H : O).current : (U = k.current) == null ? void 0 : U.querySelector(
250
+ const W = f.current, E = g ? (W === "language" ? M : j).current : (Q = k.current) == null ? void 0 : Q.querySelector(
257
251
  `[role="menuitem"][aria-haspopup="${W === "language" ? "dialog" : "menu"}"]`
258
252
  );
259
- N == null || N.focus({ preventScroll: !0 }), f.current = null;
253
+ E == null || E.focus({ preventScroll: !0 }), f.current = null;
260
254
  }
261
- }, [m, S, c]);
262
- const j = (e, i) => {
255
+ }, [g, S, c]);
256
+ const F = (e, i) => {
263
257
  if (e.nativeEvent.isComposing) return;
264
- const w = z === "rtl" ? "ArrowLeft" : "ArrowRight";
265
- (e.key === "Enter" || e.key === " " || e.key === w) && (T.current = "keyboard"), e.key === w && (e.preventDefault(), h(i));
266
- }, I = () => {
258
+ const v = z === "rtl" ? "ArrowLeft" : "ArrowRight";
259
+ (e.key === "Enter" || e.key === " " || e.key === v) && (T.current = "keyboard"), e.key === v && (e.preventDefault(), h(i));
260
+ }, C = () => {
267
261
  c !== "main" && (f.current = c, h("main"));
268
- }, te = (e) => {
262
+ }, ae = (e) => {
269
263
  if (c === "main") return;
270
264
  if (e.nativeEvent.isComposing) {
271
265
  e.stopPropagation();
@@ -274,22 +268,22 @@ const Ke = se(
274
268
  if (e.key !== (z === "rtl" ? "ArrowRight" : "ArrowLeft"))
275
269
  return;
276
270
  const i = e.target;
277
- i instanceof HTMLInputElement && (i.selectionStart !== 0 || i.selectionEnd !== 0) || (e.preventDefault(), e.stopPropagation(), I());
278
- }, M = ce(
271
+ i instanceof HTMLInputElement && (i.selectionStart !== 0 || i.selectionEnd !== 0) || (e.preventDefault(), e.stopPropagation(), C());
272
+ }, O = le(
279
273
  (e) => {
280
- _(e), Le(e), Te(ge, e);
274
+ H(e), Le(e), ge(e);
281
275
  },
282
- [_]
283
- ), V = d(M);
284
- V.current = M;
285
- const q = d(b);
276
+ [H]
277
+ ), V = l(O);
278
+ V.current = O;
279
+ const q = l(b);
286
280
  q.current = b;
287
- const y = d(o);
281
+ const y = l(o);
288
282
  y.current = o;
289
- const ae = le(
283
+ const ne = de(
290
284
  () => ({
291
285
  setLocale: (e) => {
292
- Object.prototype.hasOwnProperty.call(v, e) && V.current(e);
286
+ Object.prototype.hasOwnProperty.call(w, e) && V.current(e);
293
287
  },
294
288
  setTheme: (e) => y.current.setTheme(e),
295
289
  setAccessibility: (e) => y.current.setAccessibility(e),
@@ -305,8 +299,8 @@ const Ke = se(
305
299
  }),
306
300
  []
307
301
  );
308
- we(ke, ae, l);
309
- const ne = o.accessibility === "accessible", re = ve("--spacing-lg", D, 24), K = p("navigation.headerSettings.language.label"), L = p("navigation.headerSettings.appearance.label"), E = v[Z(b) ? b : "en"], x = [
302
+ we(Te, ne, _);
303
+ const re = o.accessibility === "accessible", se = Se("--spacing-lg", I, 24), K = p("navigation.headerSettings.language.label"), L = p("navigation.headerSettings.appearance.label"), P = w[ee(b) ? b : "en"], x = [
310
304
  {
311
305
  value: "light",
312
306
  label: p("navigation.headerSettings.appearance.light")
@@ -316,49 +310,49 @@ const Ke = se(
316
310
  value: "system",
317
311
  label: p("navigation.headerSettings.appearance.system")
318
312
  }
319
- ], F = p("navigation.headerSettings.back");
313
+ ], B = p("navigation.headerSettings.back");
320
314
  return /* @__PURE__ */ t(
321
315
  "div",
322
316
  {
323
- ref: D,
317
+ ref: I,
324
318
  "data-component": "header-settings",
325
- "data-component-id": l,
326
- className: Ae({ align: u, className: s }),
327
- ...ee,
328
- children: /* @__PURE__ */ g(
329
- r.Root,
319
+ "data-component-id": _,
320
+ className: Ae({ align: d, className: u }),
321
+ ...te,
322
+ children: /* @__PURE__ */ m(
323
+ n.Root,
330
324
  {
331
325
  onOpenChange: (e) => {
332
326
  e || (f.current = null, h("main"));
333
327
  },
334
328
  children: [
335
- /* @__PURE__ */ t(r.Trigger, { asChild: !0, children: /* @__PURE__ */ t(
336
- ue,
329
+ /* @__PURE__ */ t(n.Trigger, { asChild: !0, children: /* @__PURE__ */ t(
330
+ pe,
337
331
  {
338
332
  size: R,
339
- disabled: C,
340
- icon: /* @__PURE__ */ t(Se, { "aria-hidden": !0 }),
333
+ disabled: D,
334
+ icon: /* @__PURE__ */ t(ke, { "aria-hidden": !0 }),
341
335
  "aria-label": p("navigation.headerSettings.trigger")
342
336
  }
343
337
  ) }),
344
338
  /* @__PURE__ */ t(
345
- r.Content,
339
+ n.Content,
346
340
  {
347
341
  ref: k,
348
- align: u,
349
- collisionPadding: re,
350
- className: Ce({ language: c === "language" }),
342
+ align: d,
343
+ collisionPadding: se,
344
+ className: De({ language: c === "language" }),
351
345
  ...c === "language" ? {
352
346
  role: "dialog",
353
347
  "aria-orientation": void 0,
354
348
  "aria-label": K,
355
349
  "aria-labelledby": void 0
356
350
  } : {},
357
- onKeyDownCapture: te,
351
+ onKeyDownCapture: ae,
358
352
  onEscapeKeyDown: (e) => {
359
353
  e.isComposing && e.preventDefault();
360
354
  },
361
- children: c === "language" ? /* @__PURE__ */ g(
355
+ children: c === "language" ? /* @__PURE__ */ m(
362
356
  "div",
363
357
  {
364
358
  role: "presentation",
@@ -370,47 +364,47 @@ const Ke = se(
370
364
  },
371
365
  children: [
372
366
  /* @__PURE__ */ t(
373
- de,
367
+ ue,
374
368
  {
375
369
  intent: "ghost",
376
370
  size: "sm",
377
371
  className: "ds:w-full ds:justify-start ds:text-start ds:font-normal ds:min-h-[var(--min-target-size)] ds:sm:min-h-[var(--min-target-size)] ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:gap-[var(--spacing-sm)] ds:[&>span:last-child]:flex-1",
378
- startIcon: /* @__PURE__ */ t(Y, { "aria-hidden": !0, className: "ds:size-4" }),
372
+ startIcon: /* @__PURE__ */ t(J, { "aria-hidden": !0, className: "ds:size-4" }),
379
373
  flipIconInRtl: !0,
380
- onClick: I,
381
- children: /* @__PURE__ */ t(A, { label: F, value: K })
374
+ onClick: C,
375
+ children: /* @__PURE__ */ t(A, { label: B, value: K })
382
376
  }
383
377
  ),
384
- /* @__PURE__ */ t(r.Separator, {}),
385
- /* @__PURE__ */ t(X.SearchList, {})
378
+ /* @__PURE__ */ t(n.Separator, {}),
379
+ /* @__PURE__ */ t(Z.SearchList, {})
386
380
  ]
387
381
  }
388
- ) : c === "appearance" ? /* @__PURE__ */ g(Q, { children: [
382
+ ) : c === "appearance" ? /* @__PURE__ */ m($, { children: [
389
383
  /* @__PURE__ */ t(
390
- r.Item,
384
+ n.Item,
391
385
  {
392
386
  startIcon: /* @__PURE__ */ t(
393
- Y,
387
+ J,
394
388
  {
395
389
  "aria-hidden": !0,
396
390
  className: "ds:size-4 ds:rtl:-scale-x-100"
397
391
  }
398
392
  ),
399
393
  onSelect: (e) => {
400
- e.preventDefault(), I();
394
+ e.preventDefault(), C();
401
395
  },
402
- children: /* @__PURE__ */ t(A, { label: F, value: L })
396
+ children: /* @__PURE__ */ t(A, { label: B, value: L })
403
397
  }
404
398
  ),
405
- /* @__PURE__ */ t(r.Separator, {}),
399
+ /* @__PURE__ */ t(n.Separator, {}),
406
400
  /* @__PURE__ */ t(
407
- r.RadioGroup,
401
+ n.RadioGroup,
408
402
  {
409
403
  "aria-label": L,
410
404
  value: o.theme,
411
405
  onValueChange: (e) => o.setTheme(e),
412
406
  children: x.map((e) => /* @__PURE__ */ t(
413
- r.RadioItem,
407
+ n.RadioItem,
414
408
  {
415
409
  value: e.value,
416
410
  onSelect: (i) => i.preventDefault(),
@@ -420,15 +414,15 @@ const Ke = se(
420
414
  ))
421
415
  }
422
416
  )
423
- ] }) : /* @__PURE__ */ g(Q, { children: [
424
- m ? /* @__PURE__ */ t(
425
- r.Item,
417
+ ] }) : /* @__PURE__ */ m($, { children: [
418
+ g ? /* @__PURE__ */ t(
419
+ n.Item,
426
420
  {
427
- ref: H,
421
+ ref: M,
428
422
  "aria-haspopup": "dialog",
429
- "data-value": E.code,
423
+ "data-value": P.code,
430
424
  endIcon: /* @__PURE__ */ t(
431
- $,
425
+ X,
432
426
  {
433
427
  "aria-hidden": !0,
434
428
  className: "ds:size-4 ds:rtl:-scale-x-100"
@@ -437,7 +431,7 @@ const Ke = se(
437
431
  onPointerDown: (e) => {
438
432
  T.current = e.pointerType;
439
433
  },
440
- onKeyDown: (e) => j(e, "language"),
434
+ onKeyDown: (e) => F(e, "language"),
441
435
  onSelect: (e) => {
442
436
  e.preventDefault(), h("language");
443
437
  },
@@ -445,21 +439,21 @@ const Ke = se(
445
439
  A,
446
440
  {
447
441
  label: K,
448
- value: E.nativeName,
449
- lang: E.code
442
+ value: P.nativeName,
443
+ lang: P.code
450
444
  }
451
445
  )
452
446
  }
453
- ) : /* @__PURE__ */ t(Ie, { locale: b }),
454
- /* @__PURE__ */ t(r.Separator, {}),
455
- m ? /* @__PURE__ */ t(
456
- r.Item,
447
+ ) : /* @__PURE__ */ t(Ce, { locale: b }),
448
+ /* @__PURE__ */ t(n.Separator, {}),
449
+ g ? /* @__PURE__ */ t(
450
+ n.Item,
457
451
  {
458
- ref: O,
452
+ ref: j,
459
453
  "aria-haspopup": "menu",
460
454
  "data-value": o.theme,
461
455
  endIcon: /* @__PURE__ */ t(
462
- $,
456
+ X,
463
457
  {
464
458
  "aria-hidden": !0,
465
459
  className: "ds:size-4 ds:rtl:-scale-x-100"
@@ -468,7 +462,7 @@ const Ke = se(
468
462
  onPointerDown: (e) => {
469
463
  T.current = e.pointerType;
470
464
  },
471
- onKeyDown: (e) => j(e, "appearance"),
465
+ onKeyDown: (e) => F(e, "appearance"),
472
466
  onSelect: (e) => {
473
467
  e.preventDefault(), h("appearance");
474
468
  },
@@ -476,14 +470,14 @@ const Ke = se(
476
470
  A,
477
471
  {
478
472
  label: L,
479
- value: ((B = x.find(
473
+ value: ((U = x.find(
480
474
  (e) => e.value === o.theme
481
- )) == null ? void 0 : B.label) ?? ""
475
+ )) == null ? void 0 : U.label) ?? ""
482
476
  }
483
477
  )
484
478
  }
485
479
  ) : /* @__PURE__ */ t(
486
- r.ChoiceSub,
480
+ n.ChoiceSub,
487
481
  {
488
482
  label: L,
489
483
  value: o.theme,
@@ -492,9 +486,9 @@ const Ke = se(
492
486
  }
493
487
  ),
494
488
  /* @__PURE__ */ t(
495
- r.SwitchItem,
489
+ n.SwitchItem,
496
490
  {
497
- checked: ne,
491
+ checked: re,
498
492
  onCheckedChange: (e) => o.setAccessibility(e ? "accessible" : "default"),
499
493
  children: p("navigation.headerSettings.appearance.accessible")
500
494
  }
@@ -513,4 +507,4 @@ Ke.displayName = "HeaderSettings";
513
507
  export {
514
508
  Ke as H
515
509
  };
516
- //# sourceMappingURL=header-settings-DBlTL6Qj.js.map
510
+ //# sourceMappingURL=header-settings-Coh1r41O.js.map