@scbt-ecom/ui 0.42.3 → 0.42.5

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/ui.js CHANGED
@@ -2,11 +2,11 @@ var Pd = (t) => {
2
2
  throw TypeError(t);
3
3
  };
4
4
  var Qa = (t, e, n) => e.has(t) || Pd("Cannot " + n);
5
- var pe = (t, e, n) => (Qa(t, e, "read from private field"), n ? n.call(t) : e.get(t)), Qe = (t, e, n) => e.has(t) ? Pd("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), Le = (t, e, n, r) => (Qa(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), ot = (t, e, n) => (Qa(t, e, "access private method"), n);
6
- import { j as A, c as ha, R as Bb, B as Ph, I as $e, m as Wr, e as dt, f as _n, g as Rh, u as mu, h as Jr, i as $b, k as $t, l as zb, n as Ue, o as ma, p as Vb, D as Wb, q as Hb, r as qb, s as Rd, t as Ub, A as Gb, H as Kb, v as Ih, d as Yb, w as Jb, x as Wi, y as Qb, z as jh, E as Xa, F as Za, G as Xb, J as Zb, K as ex, M as tx, N as nx, O as rx, Q as ga, _ as Qr, L as ix, a as ya } from "./CustomLink-DRb2l2sC.js";
7
- import { C as rF, P as iF, S as oF, b as sF } from "./CustomLink-DRb2l2sC.js";
5
+ var pe = (t, e, n) => (Qa(t, e, "read from private field"), n ? n.call(t) : e.get(t)), Qe = (t, e, n) => e.has(t) ? Pd("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), Fe = (t, e, n, r) => (Qa(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), ot = (t, e, n) => (Qa(t, e, "access private method"), n);
6
+ import { j as A, c as ha, R as Bb, B as Ph, I as $e, m as Wr, e as dt, f as _n, g as Rh, u as mu, h as Jr, i as $b, k as $t, l as zb, n as Ue, o as ma, p as Vb, D as Wb, q as Hb, r as qb, s as Rd, t as Ub, A as Gb, H as Kb, v as Ih, d as Yb, w as Jb, x as Wi, y as Qb, z as jh, E as Xa, F as Za, G as Xb, J as Zb, K as ex, M as tx, N as nx, O as rx, Q as ga, _ as Qr, L as ix, a as ya } from "./CustomLink-BrBUFe53.js";
7
+ import { C as nF, P as rF, S as iF, b as oF } from "./CustomLink-BrBUFe53.js";
8
8
  import * as B from "react";
9
- import re, { forwardRef as nt, createContext as kt, useContext as rt, useState as Ie, useEffect as Be, useMemo as je, useCallback as Ce, isValidElement as po, cloneElement as gu, Children as Qi, useId as Zt, useRef as Oe, useLayoutEffect as va, Fragment as bn, createElement as _h, useReducer as yu, useSyncExternalStore as ox, createRef as sx, memo as Lh, useImperativeHandle as ax, useDebugValue as Fh } from "react";
9
+ import re, { forwardRef as nt, createContext as kt, useContext as rt, useState as Ie, useEffect as _e, useMemo as je, useCallback as Ce, isValidElement as po, cloneElement as gu, Children as Qi, useId as Zt, useRef as Oe, useLayoutEffect as va, Fragment as bn, createElement as _h, useReducer as yu, useSyncExternalStore as ox, createRef as sx, memo as Lh, useImperativeHandle as ax, useDebugValue as Fh } from "react";
10
10
  import { c as ee } from "./cn-DIfn7EPB.js";
11
11
  import { t as lt, c as on, g as Id, m as lx, a as Bh, b as $h, d as zh, e as Vh, f as cx, h as ux, j as vu, i as bu, l as dx, k as fx, n as px, w as hx, s as Zl, o as el, q as _i, r as Li, u as mx, v as gx, x as yx, y as Wh, A as Hh, B as gr, D as Xi, p as qh, C as tl, z as nl } from "./utils-Baa0uHhG.js";
12
12
  import { u as vx } from "./useDevice-L83kSsN7.js";
@@ -891,35 +891,7 @@ const Qx = ha(
891
891
  /* @__PURE__ */ A.jsx(Ph, { size: "lg", className: ee("m-auto w-full", e == null ? void 0 : e.button), ...r, children: "Оформить заявку" })
892
892
  ]
893
893
  }
894
- ), FL = ({ text: t, classes: e }) => {
895
- const [n, r] = B.useState(!1), [i, o] = B.useState(!1), s = B.useRef(null);
896
- return B.useEffect(() => {
897
- const a = s.current;
898
- a && o(a.scrollHeight > a.clientHeight);
899
- }, []), /* @__PURE__ */ A.jsxs("div", { className: ee("mt-8 flex flex-col gap-4", e == null ? void 0 : e.ligalRoot), children: [
900
- /* @__PURE__ */ A.jsx(
901
- "p",
902
- {
903
- ref: s,
904
- className: ee("desk-body-regular-m text-color-footer", { "line-clamp-3": !n }, e == null ? void 0 : e.ligalText),
905
- children: t
906
- }
907
- ),
908
- i && /* @__PURE__ */ A.jsx(
909
- "div",
910
- {
911
- tabIndex: 0,
912
- role: "button",
913
- onClick: () => r((a) => !a),
914
- className: ee(
915
- "desk-body-regular-l w-max cursor-pointer font-medium text-color-footer transition-colors hover:text-color-white",
916
- e == null ? void 0 : e.ligalButton
917
- ),
918
- children: "Подробнее"
919
- }
920
- )
921
- ] });
922
- };
894
+ );
923
895
  var Ee;
924
896
  (function(t) {
925
897
  t.Root = "root", t.Chevron = "chevron", t.Day = "day", t.DayButton = "day_button", t.CaptionLabel = "caption_label", t.Dropdowns = "dropdowns", t.Dropdown = "dropdown", t.DropdownRoot = "dropdown_root", t.Footer = "footer", t.MonthGrid = "month_grid", t.MonthCaption = "month_caption", t.MonthsDropdown = "months_dropdown", t.Month = "month", t.Months = "months", t.Nav = "nav", t.NextMonthButton = "button_next", t.PreviousMonthButton = "button_previous", t.Week = "week", t.Weeks = "weeks", t.Weekday = "weekday", t.Weekdays = "weekdays", t.WeekNumber = "week_number", t.WeekNumberHeader = "week_number_header", t.YearsDropdown = "years_dropdown";
@@ -2249,7 +2221,7 @@ function Yk(t, e) {
2249
2221
  // initialMonth is always computed from props.month if provided
2250
2222
  t.month ? s : void 0
2251
2223
  );
2252
- Be(() => {
2224
+ _e(() => {
2253
2225
  const b = Wd(t, e);
2254
2226
  l(b);
2255
2227
  }, [t.timeZone]);
@@ -2558,13 +2530,13 @@ function aw(t) {
2558
2530
  L && (j(L), g == null || g(L));
2559
2531
  }, [L, j, g]), ue = Ce(() => {
2560
2532
  _ && (j(_), m == null || m(_));
2561
- }, [j, _, m]), xe = Ce((ye, _e) => (Pe) => {
2562
- Pe.preventDefault(), Pe.stopPropagation(), K(ye), M == null || M(ye.date, _e, Pe), u == null || u(ye.date, _e, Pe);
2563
- }, [M, u, K]), oe = Ce((ye, _e) => (Pe) => {
2564
- K(ye), d == null || d(ye.date, _e, Pe);
2565
- }, [d, K]), G = Ce((ye, _e) => (Pe) => {
2566
- F(), c == null || c(ye.date, _e, Pe);
2567
- }, [F, c]), Z = Ce((ye, _e) => (Pe) => {
2533
+ }, [j, _, m]), xe = Ce((ye, Le) => (Pe) => {
2534
+ Pe.preventDefault(), Pe.stopPropagation(), K(ye), M == null || M(ye.date, Le, Pe), u == null || u(ye.date, Le, Pe);
2535
+ }, [M, u, K]), oe = Ce((ye, Le) => (Pe) => {
2536
+ K(ye), d == null || d(ye.date, Le, Pe);
2537
+ }, [d, K]), G = Ce((ye, Le) => (Pe) => {
2538
+ F(), c == null || c(ye.date, Le, Pe);
2539
+ }, [F, c]), Z = Ce((ye, Le) => (Pe) => {
2568
2540
  const St = {
2569
2541
  ArrowLeft: ["day", t.dir === "rtl" ? "after" : "before"],
2570
2542
  ArrowRight: ["day", t.dir === "rtl" ? "before" : "after"],
@@ -2580,16 +2552,16 @@ function aw(t) {
2580
2552
  const [ft, Vt] = St[Pe.key];
2581
2553
  q(ft, Vt);
2582
2554
  }
2583
- f == null || f(ye.date, _e, Pe);
2584
- }, [q, f, t.dir]), Y = Ce((ye, _e) => (Pe) => {
2585
- p == null || p(ye.date, _e, Pe);
2586
- }, [p]), Q = Ce((ye, _e) => (Pe) => {
2587
- h == null || h(ye.date, _e, Pe);
2588
- }, [h]), ce = Ce((ye) => (_e) => {
2589
- const Pe = Number(_e.target.value), St = i.setMonth(i.startOfMonth(ye), Pe);
2555
+ f == null || f(ye.date, Le, Pe);
2556
+ }, [q, f, t.dir]), Y = Ce((ye, Le) => (Pe) => {
2557
+ p == null || p(ye.date, Le, Pe);
2558
+ }, [p]), Q = Ce((ye, Le) => (Pe) => {
2559
+ h == null || h(ye.date, Le, Pe);
2560
+ }, [h]), ce = Ce((ye) => (Le) => {
2561
+ const Pe = Number(Le.target.value), St = i.setMonth(i.startOfMonth(ye), Pe);
2590
2562
  j(St);
2591
- }, [i, j]), ge = Ce((ye) => (_e) => {
2592
- const Pe = Number(_e.target.value), St = i.setYear(i.startOfMonth(ye), Pe);
2563
+ }, [i, j]), ge = Ce((ye) => (Le) => {
2564
+ const Pe = Number(Le.target.value), St = i.setYear(i.startOfMonth(ye), Pe);
2593
2565
  j(St);
2594
2566
  }, [i, j]), { className: ve, style: we } = je(() => ({
2595
2567
  className: [s[Ee.Root], t.className].filter(Boolean).join(" "),
@@ -2620,12 +2592,12 @@ function aw(t) {
2620
2592
  e.Months,
2621
2593
  { className: s[Ee.Months], style: x == null ? void 0 : x[Ee.Months] },
2622
2594
  !t.hideNavigation && re.createElement(e.Nav, { className: s[Ee.Nav], style: x == null ? void 0 : x[Ee.Nav], "aria-label": te(), onPreviousClick: le, onNextClick: ue, previousMonth: L, nextMonth: _ }),
2623
- D.map((ye, _e) => {
2595
+ D.map((ye, Le) => {
2624
2596
  const Pe = Sk(ye.date, N, R, n, i), St = Ok(N, R, n, i);
2625
2597
  return re.createElement(
2626
2598
  e.Month,
2627
- { className: s[Ee.Month], style: x == null ? void 0 : x[Ee.Month], key: _e, displayIndex: _e, calendarMonth: ye },
2628
- re.createElement(e.MonthCaption, { className: s[Ee.MonthCaption], style: x == null ? void 0 : x[Ee.MonthCaption], calendarMonth: ye, displayIndex: _e }, a != null && a.startsWith("dropdown") ? re.createElement(
2599
+ { className: s[Ee.Month], style: x == null ? void 0 : x[Ee.Month], key: Le, displayIndex: Le, calendarMonth: ye },
2600
+ re.createElement(e.MonthCaption, { className: s[Ee.MonthCaption], style: x == null ? void 0 : x[Ee.MonthCaption], calendarMonth: ye, displayIndex: Le }, a != null && a.startsWith("dropdown") ? re.createElement(
2629
2601
  e.DropdownNav,
2630
2602
  { className: s[Ee.Dropdowns], style: x == null ? void 0 : x[Ee.Dropdowns] },
2631
2603
  a === "dropdown" || a === "dropdown-months" ? re.createElement(e.MonthsDropdown, { className: s[Ee.MonthsDropdown], "aria-label": se(), classNames: s, components: e, disabled: !!t.disableNavigation, onChange: ce(ye.date), options: Pe, style: x == null ? void 0 : x[Ee.Dropdown], value: i.getMonth(ye.date) }) : re.createElement("span", { role: "status", "aria-live": "polite" }, S(ye.date, i)),
@@ -3008,7 +2980,7 @@ var bw = "VisuallyHidden", um = B.forwardRef(
3008
2980
  )
3009
2981
  );
3010
2982
  um.displayName = bw;
3011
- var xw = um, [wa, BL] = _n("Tooltip", [
2983
+ var xw = um, [wa, FL] = _n("Tooltip", [
3012
2984
  Rh
3013
2985
  ]), Sa = Rh(), dm = "TooltipProvider", kw = 700, nc = "tooltip.open", [ww, Eu] = wa(dm), fm = (t) => {
3014
2986
  const {
@@ -3124,7 +3096,7 @@ var rc = "TooltipTrigger", hm = B.forwardRef(
3124
3096
  }
3125
3097
  );
3126
3098
  hm.displayName = rc;
3127
- var Ew = "TooltipPortal", [$L, Cw] = wa(Ew, {
3099
+ var Ew = "TooltipPortal", [BL, Cw] = wa(Ew, {
3128
3100
  forceMount: void 0
3129
3101
  }), Ei = "TooltipContent", mm = B.forwardRef(
3130
3102
  (t, e) => {
@@ -3347,7 +3319,7 @@ const bm = ({
3347
3319
  }
3348
3320
  )
3349
3321
  ] }) }) });
3350
- }, zL = ({ topContent: t, bottomContent: e, progress: n, maxPercent: r = 100, classes: i }) => /* @__PURE__ */ A.jsxs("div", { className: ee("flex w-full flex-col", i == null ? void 0 : i.root), children: [
3322
+ }, $L = ({ topContent: t, bottomContent: e, progress: n, maxPercent: r = 100, classes: i }) => /* @__PURE__ */ A.jsxs("div", { className: ee("flex w-full flex-col", i == null ? void 0 : i.root), children: [
3351
3323
  t && /* @__PURE__ */ A.jsx("div", { className: ee("mb-2 flex justify-between gap-5", i == null ? void 0 : i.topContent), children: t }),
3352
3324
  /* @__PURE__ */ A.jsxs("div", { className: ee("relative h-2 w-[328xp] rounded-md bg-color-blue-grey-100 desktop:w-[524px]", i == null ? void 0 : i.progressBar), children: [
3353
3325
  /* @__PURE__ */ A.jsx(
@@ -3576,7 +3548,7 @@ function Cm(t, e = !1) {
3576
3548
  function Jw(t, e) {
3577
3549
  return t.map((n, r) => t[(e + r) % t.length]);
3578
3550
  }
3579
- var Om = wm, Tm = Em, Cu = "Tabs", [Qw, VL] = _n(Cu, [
3551
+ var Om = wm, Tm = Em, Cu = "Tabs", [Qw, zL] = _n(Cu, [
3580
3552
  Ma
3581
3553
  ]), Mm = Ma(), [Xw, Ou] = Qw(Cu), Dm = B.forwardRef(
3582
3554
  (t, e) => {
@@ -3718,7 +3690,7 @@ function Lm(t, e) {
3718
3690
  return `${t}-content-${e}`;
3719
3691
  }
3720
3692
  var Zw = Dm, e1 = Nm, t1 = Rm, Gd = jm;
3721
- const n1 = ({ classes: t, contents: e }) => /* @__PURE__ */ A.jsx("div", { className: ee("flex flex-col gap-4", t == null ? void 0 : t.contentsWrapper), children: e == null ? void 0 : e.map(({ id: n, body: r, accordion: i }) => i && (i != null && i.title) ? /* @__PURE__ */ A.jsx(Gd, { value: n, className: ee("py-8", t == null ? void 0 : t.content), children: /* @__PURE__ */ A.jsx(Gb, { label: i == null ? void 0 : i.title, children: r }) }, n) : /* @__PURE__ */ A.jsx(Gd, { value: n, className: ee("py-8", t == null ? void 0 : t.content), children: r }, n)) }), WL = ({ renderContent: t, defaultActiveTabId: e = "1", value: n, onChangeTab: r, classes: i }) => {
3693
+ const n1 = ({ classes: t, contents: e }) => /* @__PURE__ */ A.jsx("div", { className: ee("flex flex-col gap-4", t == null ? void 0 : t.contentsWrapper), children: e == null ? void 0 : e.map(({ id: n, body: r, accordion: i }) => i && (i != null && i.title) ? /* @__PURE__ */ A.jsx(Gd, { value: n, className: ee("py-8", t == null ? void 0 : t.content), children: /* @__PURE__ */ A.jsx(Gb, { label: i == null ? void 0 : i.title, children: r }) }, n) : /* @__PURE__ */ A.jsx(Gd, { value: n, className: ee("py-8", t == null ? void 0 : t.content), children: r }, n)) }), VL = ({ renderContent: t, defaultActiveTabId: e = "1", value: n, onChangeTab: r, classes: i }) => {
3722
3694
  var o;
3723
3695
  return /* @__PURE__ */ A.jsxs(
3724
3696
  Zw,
@@ -3764,7 +3736,7 @@ const n1 = ({ classes: t, contents: e }) => /* @__PURE__ */ A.jsx("div", { class
3764
3736
  className: ee("size-8 cursor-pointer text-icon-dark-hover", n == null ? void 0 : n.icon)
3765
3737
  }
3766
3738
  )
3767
- ] }), HL = ({
3739
+ ] }), WL = ({
3768
3740
  title: t,
3769
3741
  children: e,
3770
3742
  isModalOpen: n,
@@ -3909,7 +3881,7 @@ var p1 = (t) => typeof t == "function", xs = (t, e) => p1(t) ? t(e) : t, h1 = /*
3909
3881
  });
3910
3882
  }, g1 = { blank: 4e3, error: 4e3, success: 2e3, loading: 1 / 0, custom: 4e3 }, Vm = (t = {}) => {
3911
3883
  let [e, n] = Ie(us);
3912
- Be(() => (cs.push(n), () => {
3884
+ _e(() => (cs.push(n), () => {
3913
3885
  let i = cs.indexOf(n);
3914
3886
  i > -1 && cs.splice(i, 1);
3915
3887
  }), [e]);
@@ -3952,7 +3924,7 @@ var v1 = (t, e) => {
3952
3924
  eo.set(t, n);
3953
3925
  }, w1 = (t) => {
3954
3926
  let { toasts: e, pausedAt: n } = Vm(t);
3955
- Be(() => {
3927
+ _e(() => {
3956
3928
  if (n) return;
3957
3929
  let o = Date.now(), s = e.map((a) => {
3958
3930
  if (a.duration === 1 / 0) return;
@@ -3973,7 +3945,7 @@ var v1 = (t, e) => {
3973
3945
  let { reverseOrder: a = !1, gutter: l = 8, defaultPosition: c } = s || {}, u = e.filter((p) => (p.position || c) === (o.position || c) && p.height), d = u.findIndex((p) => p.id === o.id), f = u.filter((p, h) => h < d && p.visible).length;
3974
3946
  return u.filter((p) => p.visible).slice(...a ? [f + 1] : [0, f]).reduce((p, h) => p + (h.height || 0) + l, 0);
3975
3947
  }, [e]);
3976
- return Be(() => {
3948
+ return _e(() => {
3977
3949
  e.forEach((o) => {
3978
3950
  if (o.dismissed) k1(o.id, o.removeDelay);
3979
3951
  else {
@@ -4233,9 +4205,9 @@ const Y1 = ha(
4233
4205
  default:
4234
4206
  return null;
4235
4207
  }
4236
- }, ol = (t) => J1(t), qL = ({ maxToastViewLimit: t = 2, toastDuration: e = 5e3 }) => {
4208
+ }, ol = (t) => J1(t), HL = ({ maxToastViewLimit: t = 2, toastDuration: e = 5e3 }) => {
4237
4209
  const { toasts: n } = Vm();
4238
- return Be(() => {
4210
+ return _e(() => {
4239
4211
  n.filter((r) => r.visible).filter((r, i) => i >= t).forEach((r) => ks.dismiss(r.id));
4240
4212
  }, [t, n]), /* @__PURE__ */ A.jsx(
4241
4213
  K1,
@@ -4246,7 +4218,7 @@ const Y1 = ha(
4246
4218
  }
4247
4219
  }
4248
4220
  );
4249
- }, UL = ({ linksList: t }) => /* @__PURE__ */ A.jsx("div", { "aria-label": "Breadcrumb", className: "flex max-w-[840px] items-center gap-2", children: t.map((e) => /* @__PURE__ */ A.jsx(A.Fragment, { children: "path" in e ? /* @__PURE__ */ A.jsxs(
4221
+ }, qL = ({ linksList: t }) => /* @__PURE__ */ A.jsx("div", { "aria-label": "Breadcrumb", className: "flex max-w-[840px] items-center gap-2", children: t.map((e) => /* @__PURE__ */ A.jsx(A.Fragment, { children: "path" in e ? /* @__PURE__ */ A.jsxs(
4250
4222
  "div",
4251
4223
  {
4252
4224
  className: ee(
@@ -4289,7 +4261,7 @@ const Y1 = ha(
4289
4261
  }), X1 = {
4290
4262
  filled: "files/documentFilled",
4291
4263
  outline: "files/documentOutline"
4292
- }, GL = ({ text: t, size: e, sizeType: n, href: r, intent: i = "outline" }) => /* @__PURE__ */ A.jsxs(
4264
+ }, UL = ({ text: t, size: e, sizeType: n, href: r, intent: i = "outline" }) => /* @__PURE__ */ A.jsxs(
4293
4265
  "a",
4294
4266
  {
4295
4267
  href: r,
@@ -7659,11 +7631,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7659
7631
  if (typeof ve == "string") ye = ve.split(",");
7660
7632
  else for (we = 0; we < Y.matches.length; we++) ye.push(we.toString());
7661
7633
  if (D.excludes[S] !== void 0) {
7662
- for (var _e = ye.slice(), Pe = 0, St = D.excludes[S].length; Pe < St; Pe++) {
7634
+ for (var Le = ye.slice(), Pe = 0, St = D.excludes[S].length; Pe < St; Pe++) {
7663
7635
  var ft = D.excludes[S][Pe].toString().split(":");
7664
7636
  ne.length == ft[1] && ye.splice(ye.indexOf(ft[0]), 1);
7665
7637
  }
7666
- ye.length === 0 && (delete D.excludes[S], ye = _e);
7638
+ ye.length === 0 && (delete D.excludes[S], ye = Le);
7667
7639
  }
7668
7640
  (N.keepStatic === !0 || isFinite(parseInt(N.keepStatic)) && Ne >= N.keepStatic) && (ye = ye.slice(0, 1));
7669
7641
  for (var Vt = 0; Vt < ye.length; Vt++) {
@@ -8144,7 +8116,7 @@ const Qd = !(typeof window < "u" && window.document && window.document.createEle
8144
8116
  };
8145
8117
  }, hS = (t) => {
8146
8118
  const { mask: e, register: n, options: r } = t, i = Oe(null);
8147
- return Qd || Be(() => {
8119
+ return Qd || _e(() => {
8148
8120
  if (!Qd) {
8149
8121
  if (!i.current) return;
8150
8122
  fS(pS(e, r)).mask(i.current), n && i.current && n(i.current);
@@ -8370,7 +8342,7 @@ function MS(t, e, n) {
8370
8342
  return t = t || (n == null ? void 0 : n.target) instanceof i && !TS.has(n == null || (r = n.target) === null || r === void 0 ? void 0 : r.type) || (n == null ? void 0 : n.target) instanceof o || (n == null ? void 0 : n.target) instanceof s && (n == null ? void 0 : n.target.isContentEditable), !(t && e === "keyboard" && n instanceof a && !ES[n.key]);
8371
8343
  }
8372
8344
  function DS(t, e, n) {
8373
- uc(), Be(() => {
8345
+ uc(), _e(() => {
8374
8346
  let r = (i, o) => {
8375
8347
  MS(!!(n != null && n.isTextInput), i, o) && t(Xm());
8376
8348
  };
@@ -8430,7 +8402,7 @@ function Zm(t) {
8430
8402
  pointerType: "",
8431
8403
  target: null
8432
8404
  }).current;
8433
- Be(NS, []);
8405
+ _e(NS, []);
8434
8406
  let { hoverProps: l, triggerHoverEnd: c } = je(() => {
8435
8407
  let u = (p, h) => {
8436
8408
  if (a.pointerType = h, i || h === "touch" || a.isHovered || !p.currentTarget.contains(p.target)) return;
@@ -8472,7 +8444,7 @@ function Zm(t) {
8472
8444
  i,
8473
8445
  a
8474
8446
  ]);
8475
- return Be(() => {
8447
+ return _e(() => {
8476
8448
  i && c({
8477
8449
  currentTarget: a.target
8478
8450
  }, a.pointerType);
@@ -8586,10 +8558,10 @@ function xn() {
8586
8558
  }
8587
8559
  function Bo() {
8588
8560
  let [t] = Ie(xn);
8589
- return Be(() => () => t.dispose(), [t]), t;
8561
+ return _e(() => () => t.dispose(), [t]), t;
8590
8562
  }
8591
8563
  let Ze = (t, e) => {
8592
- Lr.isServer ? Be(t, e) : va(t, e);
8564
+ Lr.isServer ? _e(t, e) : va(t, e);
8593
8565
  };
8594
8566
  function ti(t) {
8595
8567
  let e = Oe(t);
@@ -8784,12 +8756,12 @@ function YS({ children: t }) {
8784
8756
  }
8785
8757
  function JS({ data: t, form: e, disabled: n, onReset: r, overrides: i }) {
8786
8758
  let [o, s] = Ie(null), a = Bo();
8787
- return Be(() => {
8759
+ return _e(() => {
8788
8760
  if (r && o) return a.addEventListener(o, "reset", r);
8789
8761
  }, [o, e, r]), re.createElement(YS, null, re.createElement(QS, { setForm: s, formId: e }), rg(t).map(([l, c]) => re.createElement(sg, { features: Pu.Hidden, ...br({ key: l, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: e, disabled: n, name: l, value: c, ...i }) })));
8790
8762
  }
8791
8763
  function QS({ setForm: t, formId: e }) {
8792
- return Be(() => {
8764
+ return _e(() => {
8793
8765
  if (e) {
8794
8766
  let n = document.getElementById(e);
8795
8767
  n && t(n);
@@ -8825,7 +8797,7 @@ function tE(t, e = !0) {
8825
8797
  }
8826
8798
  function Bn(...t) {
8827
8799
  let e = Oe(t);
8828
- Be(() => {
8800
+ _e(() => {
8829
8801
  e.current = t;
8830
8802
  }, [t]);
8831
8803
  let n = Me((r) => {
@@ -9511,7 +9483,7 @@ function AE(t, e, n) {
9511
9483
  let o = i.getBoundingClientRect();
9512
9484
  o.x === 0 && o.y === 0 && o.width === 0 && o.height === 0 && n();
9513
9485
  });
9514
- Be(() => {
9486
+ _e(() => {
9515
9487
  if (!t) return;
9516
9488
  let i = e === null ? null : e instanceof HTMLElement ? e : e.current;
9517
9489
  if (!i) return;
@@ -9567,7 +9539,7 @@ function gg() {
9567
9539
  }
9568
9540
  function Bi(t, e, n, r) {
9569
9541
  let i = ti(n);
9570
- Be(() => {
9542
+ _e(() => {
9571
9543
  if (!t) return;
9572
9544
  function o(s) {
9573
9545
  i.current(s);
@@ -9577,7 +9549,7 @@ function Bi(t, e, n, r) {
9577
9549
  }
9578
9550
  function FE(t, e, n, r) {
9579
9551
  let i = ti(n);
9580
- Be(() => {
9552
+ _e(() => {
9581
9553
  if (!t) return;
9582
9554
  function o(s) {
9583
9555
  i.current(s);
@@ -9619,7 +9591,7 @@ function Pa(...t) {
9619
9591
  }
9620
9592
  function $E(t, e, n, r) {
9621
9593
  let i = ti(n);
9622
- Be(() => {
9594
+ _e(() => {
9623
9595
  t = t ?? window;
9624
9596
  function o(s) {
9625
9597
  i.current(s);
@@ -9829,7 +9801,7 @@ function tC(t, { inFlight: e, prepare: n }) {
9829
9801
  }
9830
9802
  function nC(t, { container: e, accept: n, walk: r }) {
9831
9803
  let i = Oe(n), o = Oe(r);
9832
- Be(() => {
9804
+ _e(() => {
9833
9805
  i.current = n, o.current = r;
9834
9806
  }, [n, r]), Ze(() => {
9835
9807
  if (!e || !t) return;
@@ -9841,7 +9813,7 @@ function nC(t, { container: e, accept: n, walk: r }) {
9841
9813
  }
9842
9814
  function df(t, e) {
9843
9815
  let n = Oe([]), r = Me(t);
9844
- Be(() => {
9816
+ _e(() => {
9845
9817
  let i = [...n.current];
9846
9818
  for (let [o, s] of e.entries()) if (n.current[o] !== s) {
9847
9819
  let a = r(e, i);
@@ -9875,7 +9847,7 @@ function bg(t) {
9875
9847
  return e.current == null ? void 0 : e.current(...r);
9876
9848
  }, []);
9877
9849
  }
9878
- var mc = typeof document < "u" ? va : Be;
9850
+ var mc = typeof document < "u" ? va : _e;
9879
9851
  let ff = !1, sC = 0;
9880
9852
  const pf = () => (
9881
9853
  // Ensure the id is unique with multiple independent versions of Floating UI
@@ -10399,7 +10371,7 @@ function bf(t, e) {
10399
10371
  var Lu = ((t) => (t[t.Left = 0] = "Left", t[t.Right = 2] = "Right", t))(Lu || {});
10400
10372
  function jC(t) {
10401
10373
  let e = Me(t), n = Oe(!1);
10402
- Be(() => (n.current = !1, () => {
10374
+ _e(() => (n.current = !1, () => {
10403
10375
  n.current = !0, tg(() => {
10404
10376
  n.current && e();
10405
10377
  });
@@ -10431,9 +10403,9 @@ function $C(t) {
10431
10403
  let l = r.createElement("div");
10432
10404
  return l.setAttribute("id", "headlessui-portal-root"), r.body.appendChild(l);
10433
10405
  });
10434
- return Be(() => {
10406
+ return _e(() => {
10435
10407
  i !== null && (r != null && r.body.contains(i) || r == null || r.body.appendChild(i));
10436
- }, [i, r]), Be(() => {
10408
+ }, [i, r]), _e(() => {
10437
10409
  e || n !== null && o(n.current);
10438
10410
  }, [n, o, e]), i;
10439
10411
  }
@@ -11040,7 +11012,7 @@ function Ra(t) {
11040
11012
  const e = B.useRef({ value: t, previous: t });
11041
11013
  return B.useMemo(() => (e.current.value !== t && (e.current.previous = e.current.value, e.current.value = t), e.current.previous), [t]);
11042
11014
  }
11043
- var Bu = "Checkbox", [bO, JL] = _n(Bu), [xO, kO] = bO(Bu), Tg = B.forwardRef(
11015
+ var Bu = "Checkbox", [bO, YL] = _n(Bu), [xO, kO] = bO(Bu), Tg = B.forwardRef(
11044
11016
  (t, e) => {
11045
11017
  const {
11046
11018
  __scopeCheckbox: n,
@@ -11263,7 +11235,7 @@ const Pg = nt(
11263
11235
  }
11264
11236
  );
11265
11237
  Pg.displayName = "DayPickerBase";
11266
- var $u = "Switch", [CO, QL] = _n($u), [OO, TO] = CO($u), Rg = B.forwardRef(
11238
+ var $u = "Switch", [CO, JL] = _n($u), [OO, TO] = CO($u), Rg = B.forwardRef(
11267
11239
  (t, e) => {
11268
11240
  const {
11269
11241
  __scopeSwitch: n,
@@ -11408,7 +11380,11 @@ const Lg = nt(
11408
11380
  Lg.displayName = "SwitchBase";
11409
11381
  const NO = nt(
11410
11382
  ({ formatter: t, query: e, value: n, returnValue: r, onChange: i, ...o }, s) => {
11411
- const [a, l] = Ie(""), c = bx(a, 100), { data: u } = e(c), d = u ? u.map(t) : [], f = (h) => {
11383
+ const [a, l] = Ie(""), c = bx(a, 100), { data: u } = e(c);
11384
+ _e(() => {
11385
+ l(n || "");
11386
+ }, [n]);
11387
+ const d = u ? u.map(t) : [], f = (h) => {
11412
11388
  !h || Array.isArray(h) || i && i(r ? r(h) : h.value);
11413
11389
  }, p = je(() => d.find((h) => r ? r(h) : h.value === n), [d, r, n]);
11414
11390
  return /* @__PURE__ */ A.jsx(
@@ -11694,7 +11670,7 @@ function GO(t) {
11694
11670
  setCaretTimeout: null,
11695
11671
  focusTimeout: null
11696
11672
  });
11697
- Be(function() {
11673
+ _e(function() {
11698
11674
  return _(!0), function() {
11699
11675
  clearTimeout($.current.setCaretTimeout), clearTimeout($.current.focusTimeout);
11700
11676
  };
@@ -11725,14 +11701,14 @@ function GO(t) {
11725
11701
  }
11726
11702
  le !== w && N(M(le, G), { event: oe, source: xe });
11727
11703
  };
11728
- Be(function() {
11704
+ _e(function() {
11729
11705
  var ie = D.current, le = ie.formattedValue, ue = ie.numAsString;
11730
11706
  (w !== le || k !== ue) && N(M(w, k), {
11731
11707
  event: void 0,
11732
11708
  source: vo.props
11733
11709
  });
11734
11710
  }, [w, k]);
11735
- var q = j.current ? pl(j.current) : void 0, K = typeof window < "u" ? va : Be;
11711
+ var q = j.current ? pl(j.current) : void 0, K = typeof window < "u" ? va : _e;
11736
11712
  K(function() {
11737
11713
  var ie = j.current;
11738
11714
  if (w !== D.current.formattedValue && ie) {
@@ -12024,7 +12000,7 @@ var Gg = ["PageUp", "PageDown"], Kg = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
12024
12000
  "from-right": ["Home", "PageDown", "ArrowDown", "ArrowRight"],
12025
12001
  "from-bottom": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
12026
12002
  "from-top": ["Home", "PageDown", "ArrowUp", "ArrowLeft"]
12027
- }, Ri = "Slider", [vc, oT, sT] = xm(Ri), [Jg, XL] = _n(Ri, [
12003
+ }, Ri = "Slider", [vc, oT, sT] = xm(Ri), [Jg, QL] = _n(Ri, [
12028
12004
  sT
12029
12005
  ]), [aT, ja] = Jg(Ri), Vu = B.forwardRef(
12030
12006
  (t, e) => {
@@ -12663,7 +12639,7 @@ var DT = (t) => {
12663
12639
  function uy(t) {
12664
12640
  return t ? "checked" : "unchecked";
12665
12641
  }
12666
- var AT = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], qu = "RadioGroup", [NT, ZL] = _n(qu, [
12642
+ var AT = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], qu = "RadioGroup", [NT, XL] = _n(qu, [
12667
12643
  Ma,
12668
12644
  sy
12669
12645
  ]), dy = Ma(), fy = sy(), [PT, RT] = NT(qu), py = B.forwardRef(
@@ -15488,7 +15464,7 @@ function Ny() {
15488
15464
  }
15489
15465
  }, 300);
15490
15466
  };
15491
- Be(function() {
15467
+ _e(function() {
15492
15468
  return window.addEventListener("focus", I, !1), function() {
15493
15469
  window.removeEventListener("focus", I, !1);
15494
15470
  };
@@ -15496,11 +15472,11 @@ function Ny() {
15496
15472
  var z = Oe([]), q = function(Q) {
15497
15473
  R.current && R.current.contains(Q.target) || (Q.preventDefault(), z.current = []);
15498
15474
  };
15499
- Be(function() {
15475
+ _e(function() {
15500
15476
  return O && (document.addEventListener("dragover", Wf, !1), document.addEventListener("drop", q, !1)), function() {
15501
15477
  O && (document.removeEventListener("dragover", Wf), document.removeEventListener("drop", q));
15502
15478
  };
15503
- }, [R, O]), Be(function() {
15479
+ }, [R, O]), _e(function() {
15504
15480
  return !r && x && R.current && R.current.focus(), function() {
15505
15481
  };
15506
15482
  }, [R, x, r]);
@@ -15551,7 +15527,7 @@ function Ny() {
15551
15527
  }, [R, u, C]), se = Ce(function(Y, Q) {
15552
15528
  var ce = [], ge = [];
15553
15529
  Y.forEach(function(ve) {
15554
- var we = Cy(ve, E), Ne = wl(we, 2), ct = Ne[0], ye = Ne[1], _e = Oy(ve, s, o), Pe = wl(_e, 2), St = Pe[0], ft = Pe[1], Vt = k ? k(ve) : null;
15530
+ var we = Cy(ve, E), Ne = wl(we, 2), ct = Ne[0], ye = Ne[1], Le = Oy(ve, s, o), Pe = wl(Le, 2), St = Pe[0], ft = Pe[1], Vt = k ? k(ve) : null;
15555
15531
  if (ct && St && !Vt)
15556
15532
  ce.push(ve);
15557
15533
  else {
@@ -15629,14 +15605,14 @@ function Ny() {
15629
15605
  C && Q.stopPropagation();
15630
15606
  }, oe = je(function() {
15631
15607
  return function() {
15632
- var Y = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, Q = Y.refKey, ce = Q === void 0 ? "ref" : Q, ge = Y.role, ve = Y.onKeyDown, we = Y.onFocus, Ne = Y.onBlur, ct = Y.onClick, ye = Y.onDragEnter, _e = Y.onDragOver, Pe = Y.onDragLeave, St = Y.onDrop, ft = Os(Y, RM);
15608
+ var Y = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, Q = Y.refKey, ce = Q === void 0 ? "ref" : Q, ge = Y.role, ve = Y.onKeyDown, we = Y.onFocus, Ne = Y.onBlur, ct = Y.onClick, ye = Y.onDragEnter, Le = Y.onDragOver, Pe = Y.onDragLeave, St = Y.onDrop, ft = Os(Y, RM);
15633
15609
  return Xe(Xe(Cc({
15634
15610
  onKeyDown: le(dn(ve, fe)),
15635
15611
  onFocus: le(dn(we, U)),
15636
15612
  onBlur: le(dn(Ne, ne)),
15637
15613
  onClick: ie(dn(ct, he)),
15638
15614
  onDragEnter: ue(dn(ye, X)),
15639
- onDragOver: ue(dn(_e, H)),
15615
+ onDragOver: ue(dn(Le, H)),
15640
15616
  onDragLeave: ue(dn(Pe, J)),
15641
15617
  onDrop: ue(dn(St, te)),
15642
15618
  role: typeof ge == "string" && ge !== "" ? ge : "presentation"
@@ -15761,7 +15737,7 @@ const HM = ({ dropzoneOptions: t, controlledFiles: e = [], onChange: n }) => {
15761
15737
  const { current: i } = t, o = !!i && i.scrollWidth > i.clientWidth;
15762
15738
  n(o);
15763
15739
  }, [t]);
15764
- return Be(() => (r(), window.addEventListener("resize", r), () => {
15740
+ return _e(() => (r(), window.addEventListener("resize", r), () => {
15765
15741
  window.removeEventListener("resize", r);
15766
15742
  }), [r]), e;
15767
15743
  }, UM = ({ file: t, classes: e }) => {
@@ -15800,10 +15776,14 @@ const HM = ({ dropzoneOptions: t, controlledFiles: e = [], onChange: n }) => {
15800
15776
  "div",
15801
15777
  {
15802
15778
  className: ee(
15803
- 'flex h-[64px] w-[476px] rounded-sm bg-[length:100%_100%] bg-no-repeat hover:border hover:border-primary-hover hover:bg-color-primary-tr-hover focus-visible:border focus-visible:border-primary-hover focus-visible:bg-color-primary-tr-hover focus-visible:outline-none active:border active:border-primary-hover active:bg-color-primary-tr-pressed [&:not(:hover)(:focus-visible)(:active)(:disabled)]:bg-[url("/static/files/border.svg")]',
15779
+ "flex h-[64px] w-[476px] rounded-sm",
15780
+ "active:border-1 active:border-solid active:border-primary-hover active:bg-color-primary-tr-pressed",
15781
+ "focus-visible:border-1 focus-visible:border-solid focus-visible:border-primary-hover focus-visible:bg-color-primary-tr-hover focus-visible:outline-none",
15782
+ "hover:border-1 hover:border-solid hover:border-primary-hover hover:bg-color-primary-tr-hover",
15783
+ "border-[1.5px] border-dashed border-blue-grey-700",
15804
15784
  e == null ? void 0 : e.root,
15805
15785
  { "bg-color-primary-light-default opacity-50": n },
15806
- { '[&:not(:hover)(:focus-visible)(:active)(:disabled)]:bg-[url("/static/files/borderError.svg")]': r }
15786
+ { "border-negative": r }
15807
15787
  ),
15808
15788
  ref: s,
15809
15789
  ...a,
@@ -15924,17 +15904,17 @@ var jy = B.createContext({}), _y = B.forwardRef((t, e) => {
15924
15904
  if (Z.length !== 0 && ue !== null && xe !== null) {
15925
15905
  let ct = ue === xe, ye = ue === Z.length && Z.length < G;
15926
15906
  if (ct && !ye) {
15927
- let _e = ue;
15928
- if (_e === 0) Q = 0, ce = 1, ge = "forward";
15929
- else if (_e === G) Q = _e - 1, ce = _e, ge = "backward";
15907
+ let Le = ue;
15908
+ if (Le === 0) Q = 0, ce = 1, ge = "forward";
15909
+ else if (Le === G) Q = Le - 1, ce = Le, ge = "backward";
15930
15910
  else if (G > 1 && Z.length > 1) {
15931
15911
  let Pe = 0;
15932
15912
  if (Y[0] !== null && Y[1] !== null) {
15933
- ge = _e < Y[1] ? "backward" : "forward";
15913
+ ge = Le < Y[1] ? "backward" : "forward";
15934
15914
  let St = Y[0] === Y[1] && Y[0] < G;
15935
15915
  ge === "backward" && !St && (Pe = -1);
15936
15916
  }
15937
- Q = Pe + _e, ce = Pe + _e + 1;
15917
+ Q = Pe + Le, ce = Pe + Le + 1;
15938
15918
  }
15939
15919
  }
15940
15920
  Q !== -1 && ce !== -1 && Q !== ce && N.current.setSelectionRange(Q, ce, ge);
@@ -16076,7 +16056,7 @@ Ly.displayName = "InputOTPSlot";
16076
16056
  const dD = nt(
16077
16057
  ({ value: t, onChange: e, classes: n, maxLength: r = 4, initialFocus: i = !0, externalHandlers: o, invalid: s, ...a }, l) => {
16078
16058
  const c = Oe(null);
16079
- return Be(() => {
16059
+ return _e(() => {
16080
16060
  c.current && i && c.current.focus();
16081
16061
  }, [i]), /* @__PURE__ */ A.jsx(A.Fragment, { children: /* @__PURE__ */ A.jsx(
16082
16062
  _y,
@@ -16266,7 +16246,7 @@ var Rr, Jn, yi, Dh, mD = (Dh = class extends Ku {
16266
16246
  Qe(this, Rr);
16267
16247
  Qe(this, Jn);
16268
16248
  Qe(this, yi);
16269
- Le(this, yi, (e) => {
16249
+ Fe(this, yi, (e) => {
16270
16250
  if (!ko && window.addEventListener) {
16271
16251
  const n = () => e();
16272
16252
  return window.addEventListener("visibilitychange", n, !1), () => {
@@ -16280,16 +16260,16 @@ var Rr, Jn, yi, Dh, mD = (Dh = class extends Ku {
16280
16260
  }
16281
16261
  onUnsubscribe() {
16282
16262
  var e;
16283
- this.hasListeners() || ((e = pe(this, Jn)) == null || e.call(this), Le(this, Jn, void 0));
16263
+ this.hasListeners() || ((e = pe(this, Jn)) == null || e.call(this), Fe(this, Jn, void 0));
16284
16264
  }
16285
16265
  setEventListener(e) {
16286
16266
  var n;
16287
- Le(this, yi, e), (n = pe(this, Jn)) == null || n.call(this), Le(this, Jn, e((r) => {
16267
+ Fe(this, yi, e), (n = pe(this, Jn)) == null || n.call(this), Fe(this, Jn, e((r) => {
16288
16268
  typeof r == "boolean" ? this.setFocused(r) : this.onFocus();
16289
16269
  }));
16290
16270
  }
16291
16271
  setFocused(e) {
16292
- pe(this, Rr) !== e && (Le(this, Rr, e), this.onFocus());
16272
+ pe(this, Rr) !== e && (Fe(this, Rr, e), this.onFocus());
16293
16273
  }
16294
16274
  onFocus() {
16295
16275
  const e = this.isFocused();
@@ -16307,7 +16287,7 @@ var Rr, Jn, yi, Dh, mD = (Dh = class extends Ku {
16307
16287
  Qe(this, vi, !0);
16308
16288
  Qe(this, Qn);
16309
16289
  Qe(this, bi);
16310
- Le(this, bi, (e) => {
16290
+ Fe(this, bi, (e) => {
16311
16291
  if (!ko && window.addEventListener) {
16312
16292
  const n = () => e(!0), r = () => e(!1);
16313
16293
  return window.addEventListener("online", n, !1), window.addEventListener("offline", r, !1), () => {
@@ -16321,14 +16301,14 @@ var Rr, Jn, yi, Dh, mD = (Dh = class extends Ku {
16321
16301
  }
16322
16302
  onUnsubscribe() {
16323
16303
  var e;
16324
- this.hasListeners() || ((e = pe(this, Qn)) == null || e.call(this), Le(this, Qn, void 0));
16304
+ this.hasListeners() || ((e = pe(this, Qn)) == null || e.call(this), Fe(this, Qn, void 0));
16325
16305
  }
16326
16306
  setEventListener(e) {
16327
16307
  var n;
16328
- Le(this, bi, e), (n = pe(this, Qn)) == null || n.call(this), Le(this, Qn, e(this.setOnline.bind(this)));
16308
+ Fe(this, bi, e), (n = pe(this, Qn)) == null || n.call(this), Fe(this, Qn, e(this.setOnline.bind(this)));
16329
16309
  }
16330
16310
  setOnline(e) {
16331
- pe(this, vi) !== e && (Le(this, vi, e), this.listeners.forEach((r) => {
16311
+ pe(this, vi) !== e && (Fe(this, vi, e), this.listeners.forEach((r) => {
16332
16312
  r(e);
16333
16313
  }));
16334
16314
  }
@@ -16432,12 +16412,12 @@ function kD(t, e) {
16432
16412
  }
16433
16413
  };
16434
16414
  }
16435
- var Lt, Fe, Ro, Nt, Ir, xi, Xn, mn, Io, ki, wi, jr, _r, Zn, Si, We, qi, Dc, Ac, Nc, Pc, Rc, Ic, jc, By, Nh, wD = (Nh = class extends Ku {
16415
+ var Lt, Be, Ro, Nt, Ir, xi, Xn, mn, Io, ki, wi, jr, _r, Zn, Si, We, qi, Dc, Ac, Nc, Pc, Rc, Ic, jc, By, Nh, wD = (Nh = class extends Ku {
16436
16416
  constructor(e, n) {
16437
16417
  super();
16438
16418
  Qe(this, We);
16439
16419
  Qe(this, Lt);
16440
- Qe(this, Fe);
16420
+ Qe(this, Be);
16441
16421
  Qe(this, Ro);
16442
16422
  Qe(this, Nt);
16443
16423
  Qe(this, Ir);
@@ -16453,7 +16433,7 @@ var Lt, Fe, Ro, Nt, Ir, xi, Xn, mn, Io, ki, wi, jr, _r, Zn, Si, We, qi, Dc, Ac,
16453
16433
  Qe(this, _r);
16454
16434
  Qe(this, Zn);
16455
16435
  Qe(this, Si, /* @__PURE__ */ new Set());
16456
- this.options = n, Le(this, Lt, e), Le(this, mn, null), Le(this, Xn, Xf()), this.options.experimental_prefetchInRender || pe(this, Xn).reject(
16436
+ this.options = n, Fe(this, Lt, e), Fe(this, mn, null), Fe(this, Xn, Xf()), this.options.experimental_prefetchInRender || pe(this, Xn).reject(
16457
16437
  new Error("experimental_prefetchInRender feature flag is not enabled")
16458
16438
  ), this.bindMethods(), this.setOptions(n);
16459
16439
  }
@@ -16461,52 +16441,52 @@ var Lt, Fe, Ro, Nt, Ir, xi, Xn, mn, Io, ki, wi, jr, _r, Zn, Si, We, qi, Dc, Ac,
16461
16441
  this.refetch = this.refetch.bind(this);
16462
16442
  }
16463
16443
  onSubscribe() {
16464
- this.listeners.size === 1 && (pe(this, Fe).addObserver(this), Zf(pe(this, Fe), this.options) ? ot(this, We, qi).call(this) : this.updateResult(), ot(this, We, Pc).call(this));
16444
+ this.listeners.size === 1 && (pe(this, Be).addObserver(this), Zf(pe(this, Be), this.options) ? ot(this, We, qi).call(this) : this.updateResult(), ot(this, We, Pc).call(this));
16465
16445
  }
16466
16446
  onUnsubscribe() {
16467
16447
  this.hasListeners() || this.destroy();
16468
16448
  }
16469
16449
  shouldFetchOnReconnect() {
16470
16450
  return _c(
16471
- pe(this, Fe),
16451
+ pe(this, Be),
16472
16452
  this.options,
16473
16453
  this.options.refetchOnReconnect
16474
16454
  );
16475
16455
  }
16476
16456
  shouldFetchOnWindowFocus() {
16477
16457
  return _c(
16478
- pe(this, Fe),
16458
+ pe(this, Be),
16479
16459
  this.options,
16480
16460
  this.options.refetchOnWindowFocus
16481
16461
  );
16482
16462
  }
16483
16463
  destroy() {
16484
- this.listeners = /* @__PURE__ */ new Set(), ot(this, We, Rc).call(this), ot(this, We, Ic).call(this), pe(this, Fe).removeObserver(this);
16464
+ this.listeners = /* @__PURE__ */ new Set(), ot(this, We, Rc).call(this), ot(this, We, Ic).call(this), pe(this, Be).removeObserver(this);
16485
16465
  }
16486
16466
  setOptions(e, n) {
16487
- const r = this.options, i = pe(this, Fe);
16488
- if (this.options = pe(this, Lt).defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof gn(this.options.enabled, pe(this, Fe)) != "boolean")
16467
+ const r = this.options, i = pe(this, Be);
16468
+ if (this.options = pe(this, Lt).defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof gn(this.options.enabled, pe(this, Be)) != "boolean")
16489
16469
  throw new Error(
16490
16470
  "Expected enabled to be a boolean or a callback that returns a boolean"
16491
16471
  );
16492
- ot(this, We, jc).call(this), pe(this, Fe).setOptions(this.options), r._defaulted && !Mc(this.options, r) && pe(this, Lt).getQueryCache().notify({
16472
+ ot(this, We, jc).call(this), pe(this, Be).setOptions(this.options), r._defaulted && !Mc(this.options, r) && pe(this, Lt).getQueryCache().notify({
16493
16473
  type: "observerOptionsUpdated",
16494
- query: pe(this, Fe),
16474
+ query: pe(this, Be),
16495
16475
  observer: this
16496
16476
  });
16497
16477
  const o = this.hasListeners();
16498
16478
  o && ep(
16499
- pe(this, Fe),
16479
+ pe(this, Be),
16500
16480
  i,
16501
16481
  this.options,
16502
16482
  r
16503
- ) && ot(this, We, qi).call(this), this.updateResult(n), o && (pe(this, Fe) !== i || gn(this.options.enabled, pe(this, Fe)) !== gn(r.enabled, pe(this, Fe)) || fs(this.options.staleTime, pe(this, Fe)) !== fs(r.staleTime, pe(this, Fe))) && ot(this, We, Dc).call(this);
16483
+ ) && ot(this, We, qi).call(this), this.updateResult(n), o && (pe(this, Be) !== i || gn(this.options.enabled, pe(this, Be)) !== gn(r.enabled, pe(this, Be)) || fs(this.options.staleTime, pe(this, Be)) !== fs(r.staleTime, pe(this, Be))) && ot(this, We, Dc).call(this);
16504
16484
  const s = ot(this, We, Ac).call(this);
16505
- o && (pe(this, Fe) !== i || gn(this.options.enabled, pe(this, Fe)) !== gn(r.enabled, pe(this, Fe)) || s !== pe(this, Zn)) && ot(this, We, Nc).call(this, s);
16485
+ o && (pe(this, Be) !== i || gn(this.options.enabled, pe(this, Be)) !== gn(r.enabled, pe(this, Be)) || s !== pe(this, Zn)) && ot(this, We, Nc).call(this, s);
16506
16486
  }
16507
16487
  getOptimisticResult(e) {
16508
16488
  const n = pe(this, Lt).getQueryCache().build(pe(this, Lt), e), r = this.createResult(n, e);
16509
- return ED(this, r) && (Le(this, Nt, r), Le(this, xi, this.options), Le(this, Ir, pe(this, Fe).state)), r;
16489
+ return ED(this, r) && (Fe(this, Nt, r), Fe(this, xi, this.options), Fe(this, Ir, pe(this, Be).state)), r;
16510
16490
  }
16511
16491
  getCurrentResult() {
16512
16492
  return pe(this, Nt);
@@ -16525,7 +16505,7 @@ var Lt, Fe, Ro, Nt, Ir, xi, Xn, mn, Io, ki, wi, jr, _r, Zn, Si, We, qi, Dc, Ac,
16525
16505
  pe(this, Si).add(e);
16526
16506
  }
16527
16507
  getCurrentQuery() {
16528
- return pe(this, Fe);
16508
+ return pe(this, Be);
16529
16509
  }
16530
16510
  refetch({ ...e } = {}) {
16531
16511
  return this.fetch({
@@ -16544,7 +16524,7 @@ var Lt, Fe, Ro, Nt, Ir, xi, Xn, mn, Io, ki, wi, jr, _r, Zn, Si, We, qi, Dc, Ac,
16544
16524
  }
16545
16525
  createResult(e, n) {
16546
16526
  var w;
16547
- const r = pe(this, Fe), i = this.options, o = pe(this, Nt), s = pe(this, Ir), a = pe(this, xi), c = e !== r ? e.state : pe(this, Ro), { state: u } = e;
16527
+ const r = pe(this, Be), i = this.options, o = pe(this, Nt), s = pe(this, Ir), a = pe(this, xi), c = e !== r ? e.state : pe(this, Ro), { state: u } = e;
16548
16528
  let d = { ...u }, f = !1, p;
16549
16529
  if (n._optimisticResults) {
16550
16530
  const k = this.hasListeners(), E = !k && Zf(e, n), T = k && ep(e, r, n, i);
@@ -16559,9 +16539,9 @@ var Lt, Fe, Ro, Nt, Ir, xi, Xn, mn, Io, ki, wi, jr, _r, Zn, Si, We, qi, Dc, Ac,
16559
16539
  p = pe(this, ki);
16560
16540
  else
16561
16541
  try {
16562
- Le(this, Io, n.select), p = n.select(d.data), p = Qf(o == null ? void 0 : o.data, p, n), Le(this, ki, p), Le(this, mn, null);
16542
+ Fe(this, Io, n.select), p = n.select(d.data), p = Qf(o == null ? void 0 : o.data, p, n), Fe(this, ki, p), Fe(this, mn, null);
16563
16543
  } catch (k) {
16564
- Le(this, mn, k);
16544
+ Fe(this, mn, k);
16565
16545
  }
16566
16546
  else
16567
16547
  p = d.data;
@@ -16574,9 +16554,9 @@ var Lt, Fe, Ro, Nt, Ir, xi, Xn, mn, Io, ki, wi, jr, _r, Zn, Si, We, qi, Dc, Ac,
16574
16554
  pe(this, wi)
16575
16555
  ) : n.placeholderData, n.select && k !== void 0)
16576
16556
  try {
16577
- k = n.select(k), Le(this, mn, null);
16557
+ k = n.select(k), Fe(this, mn, null);
16578
16558
  } catch (E) {
16579
- Le(this, mn, E);
16559
+ Fe(this, mn, E);
16580
16560
  }
16581
16561
  k !== void 0 && (g = "success", p = Qf(
16582
16562
  o == null ? void 0 : o.data,
@@ -16616,7 +16596,7 @@ var Lt, Fe, Ro, Nt, Ir, xi, Xn, mn, Io, ki, wi, jr, _r, Zn, Si, We, qi, Dc, Ac,
16616
16596
  const k = (D) => {
16617
16597
  C.status === "error" ? D.reject(C.error) : C.data !== void 0 && D.resolve(C.data);
16618
16598
  }, E = () => {
16619
- const D = Le(this, Xn, C.promise = Xf());
16599
+ const D = Fe(this, Xn, C.promise = Xf());
16620
16600
  k(D);
16621
16601
  }, T = pe(this, Xn);
16622
16602
  switch (T.status) {
@@ -16634,10 +16614,10 @@ var Lt, Fe, Ro, Nt, Ir, xi, Xn, mn, Io, ki, wi, jr, _r, Zn, Si, We, qi, Dc, Ac,
16634
16614
  return C;
16635
16615
  }
16636
16616
  updateResult(e) {
16637
- const n = pe(this, Nt), r = this.createResult(pe(this, Fe), this.options);
16638
- if (Le(this, Ir, pe(this, Fe).state), Le(this, xi, this.options), pe(this, Ir).data !== void 0 && Le(this, wi, pe(this, Fe)), Mc(r, n))
16617
+ const n = pe(this, Nt), r = this.createResult(pe(this, Be), this.options);
16618
+ if (Fe(this, Ir, pe(this, Be).state), Fe(this, xi, this.options), pe(this, Ir).data !== void 0 && Fe(this, wi, pe(this, Be)), Mc(r, n))
16639
16619
  return;
16640
- Le(this, Nt, r);
16620
+ Fe(this, Nt, r);
16641
16621
  const i = {}, o = () => {
16642
16622
  if (!n)
16643
16623
  return !0;
@@ -16657,9 +16637,9 @@ var Lt, Fe, Ro, Nt, Ir, xi, Xn, mn, Io, ki, wi, jr, _r, Zn, Si, We, qi, Dc, Ac,
16657
16637
  onQueryUpdate() {
16658
16638
  this.updateResult(), this.hasListeners() && ot(this, We, Pc).call(this);
16659
16639
  }
16660
- }, Lt = new WeakMap(), Fe = new WeakMap(), Ro = new WeakMap(), Nt = new WeakMap(), Ir = new WeakMap(), xi = new WeakMap(), Xn = new WeakMap(), mn = new WeakMap(), Io = new WeakMap(), ki = new WeakMap(), wi = new WeakMap(), jr = new WeakMap(), _r = new WeakMap(), Zn = new WeakMap(), Si = new WeakMap(), We = new WeakSet(), qi = function(e) {
16640
+ }, Lt = new WeakMap(), Be = new WeakMap(), Ro = new WeakMap(), Nt = new WeakMap(), Ir = new WeakMap(), xi = new WeakMap(), Xn = new WeakMap(), mn = new WeakMap(), Io = new WeakMap(), ki = new WeakMap(), wi = new WeakMap(), jr = new WeakMap(), _r = new WeakMap(), Zn = new WeakMap(), Si = new WeakMap(), We = new WeakSet(), qi = function(e) {
16661
16641
  ot(this, We, jc).call(this);
16662
- let n = pe(this, Fe).fetch(
16642
+ let n = pe(this, Be).fetch(
16663
16643
  this.options,
16664
16644
  e
16665
16645
  );
@@ -16668,38 +16648,38 @@ var Lt, Fe, Ro, Nt, Ir, xi, Xn, mn, Io, ki, wi, jr, _r, Zn, Si, We, qi, Dc, Ac,
16668
16648
  ot(this, We, Rc).call(this);
16669
16649
  const e = fs(
16670
16650
  this.options.staleTime,
16671
- pe(this, Fe)
16651
+ pe(this, Be)
16672
16652
  );
16673
16653
  if (ko || pe(this, Nt).isStale || !Gf(e))
16674
16654
  return;
16675
16655
  const r = hD(pe(this, Nt).dataUpdatedAt, e) + 1;
16676
- Le(this, jr, setTimeout(() => {
16656
+ Fe(this, jr, setTimeout(() => {
16677
16657
  pe(this, Nt).isStale || this.updateResult();
16678
16658
  }, r));
16679
16659
  }, Ac = function() {
16680
- return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(pe(this, Fe)) : this.options.refetchInterval) ?? !1;
16660
+ return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(pe(this, Be)) : this.options.refetchInterval) ?? !1;
16681
16661
  }, Nc = function(e) {
16682
- ot(this, We, Ic).call(this), Le(this, Zn, e), !(ko || gn(this.options.enabled, pe(this, Fe)) === !1 || !Gf(pe(this, Zn)) || pe(this, Zn) === 0) && Le(this, _r, setInterval(() => {
16662
+ ot(this, We, Ic).call(this), Fe(this, Zn, e), !(ko || gn(this.options.enabled, pe(this, Be)) === !1 || !Gf(pe(this, Zn)) || pe(this, Zn) === 0) && Fe(this, _r, setInterval(() => {
16683
16663
  (this.options.refetchIntervalInBackground || gD.isFocused()) && ot(this, We, qi).call(this);
16684
16664
  }, pe(this, Zn)));
16685
16665
  }, Pc = function() {
16686
16666
  ot(this, We, Dc).call(this), ot(this, We, Nc).call(this, ot(this, We, Ac).call(this));
16687
16667
  }, Rc = function() {
16688
- pe(this, jr) && (clearTimeout(pe(this, jr)), Le(this, jr, void 0));
16668
+ pe(this, jr) && (clearTimeout(pe(this, jr)), Fe(this, jr, void 0));
16689
16669
  }, Ic = function() {
16690
- pe(this, _r) && (clearInterval(pe(this, _r)), Le(this, _r, void 0));
16670
+ pe(this, _r) && (clearInterval(pe(this, _r)), Fe(this, _r, void 0));
16691
16671
  }, jc = function() {
16692
16672
  const e = pe(this, Lt).getQueryCache().build(pe(this, Lt), this.options);
16693
- if (e === pe(this, Fe))
16673
+ if (e === pe(this, Be))
16694
16674
  return;
16695
- const n = pe(this, Fe);
16696
- Le(this, Fe, e), Le(this, Ro, e.state), this.hasListeners() && (n == null || n.removeObserver(this), e.addObserver(this));
16675
+ const n = pe(this, Be);
16676
+ Fe(this, Be, e), Fe(this, Ro, e.state), this.hasListeners() && (n == null || n.removeObserver(this), e.addObserver(this));
16697
16677
  }, By = function(e) {
16698
16678
  Fy.batch(() => {
16699
16679
  e.listeners && this.listeners.forEach((n) => {
16700
16680
  n(pe(this, Nt));
16701
16681
  }), pe(this, Lt).getQueryCache().notify({
16702
- query: pe(this, Fe),
16682
+ query: pe(this, Be),
16703
16683
  type: "observerResultsUpdated"
16704
16684
  });
16705
16685
  });
@@ -17013,7 +16993,7 @@ const rA = ({
17013
16993
  const { onChange: l, onFocus: c, ...u } = i || {}, d = Oe(null), { calendar: f, ...p } = e || {}, [h, m] = Ie(!1), g = () => {
17014
16994
  m((b) => !b);
17015
16995
  }, y = nA("single", n), [x, O] = Ie(rp("single", n));
17016
- Be(() => {
16996
+ _e(() => {
17017
16997
  n && !er.isStringEmpty(n) && (O(rp("single", n)), s && s(new Date(n)));
17018
16998
  }, [n]), ba(d, () => m(!1));
17019
16999
  const v = (b) => {
@@ -29637,7 +29617,7 @@ function pj() {
29637
29617
  }
29638
29618
  process.env.NODE_ENV === "production" ? ou.exports = fj() : ou.exports = pj();
29639
29619
  var hj = ou.exports;
29640
- const mj = typeof window < "u" ? va : Be;
29620
+ const mj = typeof window < "u" ? va : _e;
29641
29621
  class gj {
29642
29622
  constructor(e) {
29643
29623
  this.transactionNumber = 0, this.lastTransactionNumber = 0, this.subscribers = /* @__PURE__ */ new Set(), this.editor = e, this.lastSnapshot = { editor: e, transactionNumber: 0 }, this.getSnapshot = this.getSnapshot.bind(this), this.getServerSnapshot = this.getServerSnapshot.bind(this), this.watch = this.watch.bind(this), this.subscribe = this.subscribe.bind(this);
@@ -29823,7 +29803,7 @@ function bj(t = {}, e = []) {
29823
29803
  const n = Oe(t);
29824
29804
  n.current = t;
29825
29805
  const [r] = Ie(() => new xd(n)), i = Ya.useSyncExternalStore(r.subscribe, r.getEditor, r.getServerSnapshot);
29826
- return Fh(i), Be(r.onRender(e)), yj({
29806
+ return Fh(i), _e(r.onRender(e)), yj({
29827
29807
  editor: i,
29828
29808
  selector: ({ transactionNumber: o }) => t.shouldRerenderOnTransaction === !1 ? null : t.immediatelyRender && o === 0 ? 0 : o + 1
29829
29809
  }), i;
@@ -33236,34 +33216,33 @@ const bL = ({
33236
33216
  export {
33237
33217
  Gb as Accordion,
33238
33218
  Yb as Badge,
33239
- UL as Breadcrumbs,
33219
+ qL as Breadcrumbs,
33240
33220
  Ph as Button,
33241
33221
  jL as ButtonIcon,
33242
33222
  cm as Calendar,
33243
33223
  Yr as Controlled,
33244
- rF as CustomLink,
33224
+ nF as CustomLink,
33245
33225
  Xi as DATE_VISIBLE_PATTERN,
33246
- GL as Document,
33226
+ UL as Document,
33247
33227
  LL as FloatButton,
33248
33228
  Kb as Heading,
33249
33229
  bm as Hint,
33250
33230
  $e as Icon,
33251
33231
  Z1 as KeyboardShortcuts,
33252
- FL as Ligal,
33253
33232
  ix as Loader,
33254
- HL as Modal,
33233
+ WL as Modal,
33255
33234
  ol as Notification,
33256
- qL as NotificationProvider,
33257
- iF as PhoneView,
33235
+ HL as NotificationProvider,
33236
+ rF as PhoneView,
33258
33237
  ya as Popover,
33259
- zL as ProgressBar,
33238
+ $L as ProgressBar,
33260
33239
  Bb as ResponsiveContainer,
33261
- oF as Section,
33240
+ iF as Section,
33262
33241
  _L as Skeleton,
33263
33242
  Wm as Slot,
33264
- WL as TabsSwitcher,
33243
+ VL as TabsSwitcher,
33265
33244
  yt as Uncontrolled,
33266
- sF as brandLogos,
33245
+ oF as brandLogos,
33267
33246
  gr as defaultClassNames,
33268
33247
  tl as formatDateToLocaleString,
33269
33248
  Hh as formatDateToMonthString,