@scbt-ecom/ui 0.41.0 → 0.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui.js CHANGED
@@ -6,7 +6,7 @@ var pe = (t, e, n) => (Qa(t, e, "read from private field"), n ? n.call(t) : e.ge
6
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-CpZlV4yg.js";
7
7
  import { C as rF, P as iF, S as oF, b as sF } from "./CustomLink-CpZlV4yg.js";
8
8
  import * as B from "react";
9
- import re, { forwardRef as nt, createContext as kt, useContext as rt, useState as Ne, 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 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";
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";
@@ -2240,7 +2240,7 @@ function Kk(t) {
2240
2240
  return t.reduce((n, r) => [...n, ...r.weeks], e);
2241
2241
  }
2242
2242
  function ka(t, e) {
2243
- const [n, r] = Ne(t);
2243
+ const [n, r] = Ie(t);
2244
2244
  return [e === void 0 ? n : e, r];
2245
2245
  }
2246
2246
  function Yk(t, e) {
@@ -2355,7 +2355,7 @@ function lm(t, e, n, r, i, o, s, a = 0) {
2355
2355
  return !c && !u ? f : lm(t, e, f, r, i, o, s, a + 1);
2356
2356
  }
2357
2357
  function Xk(t, e, n, r, i) {
2358
- const { autoFocus: o } = t, [s, a] = Ne(), l = Jk(e.days, n, r || (() => !1), s), [c, u] = Ne(o ? l : void 0);
2358
+ const { autoFocus: o } = t, [s, a] = Ie(), l = Jk(e.days, n, r || (() => !1), s), [c, u] = Ie(o ? l : void 0);
2359
2359
  return {
2360
2360
  isFocusTarget: (m) => !!(l != null && l.isEqualTo(m)),
2361
2361
  setFocused: u,
@@ -2558,43 +2558,43 @@ function aw(t) {
2558
2558
  L && (j(L), g == null || g(L));
2559
2559
  }, [L, j, g]), ue = Ce(() => {
2560
2560
  _ && (j(_), m == null || m(_));
2561
- }, [j, _, m]), xe = Ce((ye, _e) => (Re) => {
2562
- Re.preventDefault(), Re.stopPropagation(), K(ye), M == null || M(ye.date, _e, Re), u == null || u(ye.date, _e, Re);
2563
- }, [M, u, K]), oe = Ce((ye, _e) => (Re) => {
2564
- K(ye), d == null || d(ye.date, _e, Re);
2565
- }, [d, K]), G = Ce((ye, _e) => (Re) => {
2566
- F(), c == null || c(ye.date, _e, Re);
2567
- }, [F, c]), Z = Ce((ye, _e) => (Re) => {
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) => {
2568
2568
  const St = {
2569
2569
  ArrowLeft: ["day", t.dir === "rtl" ? "after" : "before"],
2570
2570
  ArrowRight: ["day", t.dir === "rtl" ? "before" : "after"],
2571
2571
  ArrowDown: ["week", "after"],
2572
2572
  ArrowUp: ["week", "before"],
2573
- PageUp: [Re.shiftKey ? "year" : "month", "before"],
2574
- PageDown: [Re.shiftKey ? "year" : "month", "after"],
2573
+ PageUp: [Pe.shiftKey ? "year" : "month", "before"],
2574
+ PageDown: [Pe.shiftKey ? "year" : "month", "after"],
2575
2575
  Home: ["startOfWeek", "before"],
2576
2576
  End: ["endOfWeek", "after"]
2577
2577
  };
2578
- if (St[Re.key]) {
2579
- Re.preventDefault(), Re.stopPropagation();
2580
- const [ft, Vt] = St[Re.key];
2578
+ if (St[Pe.key]) {
2579
+ Pe.preventDefault(), Pe.stopPropagation();
2580
+ const [ft, Vt] = St[Pe.key];
2581
2581
  q(ft, Vt);
2582
2582
  }
2583
- f == null || f(ye.date, _e, Re);
2584
- }, [q, f, t.dir]), Y = Ce((ye, _e) => (Re) => {
2585
- p == null || p(ye.date, _e, Re);
2586
- }, [p]), Q = Ce((ye, _e) => (Re) => {
2587
- h == null || h(ye.date, _e, Re);
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
2588
  }, [h]), ce = Ce((ye) => (_e) => {
2589
- const Re = Number(_e.target.value), St = i.setMonth(i.startOfMonth(ye), Re);
2589
+ const Pe = Number(_e.target.value), St = i.setMonth(i.startOfMonth(ye), Pe);
2590
2590
  j(St);
2591
2591
  }, [i, j]), ge = Ce((ye) => (_e) => {
2592
- const Re = Number(_e.target.value), St = i.setYear(i.startOfMonth(ye), Re);
2592
+ const Pe = Number(_e.target.value), St = i.setYear(i.startOfMonth(ye), Pe);
2593
2593
  j(St);
2594
2594
  }, [i, j]), { className: ve, style: we } = je(() => ({
2595
2595
  className: [s[Ee.Root], t.className].filter(Boolean).join(" "),
2596
2596
  style: { ...x == null ? void 0 : x[Ee.Root], ...t.style }
2597
- }), [s, t.className, t.style, x]), Pe = fk(t), ct = {
2597
+ }), [s, t.className, t.style, x]), Ne = fk(t), ct = {
2598
2598
  dayPickerProps: t,
2599
2599
  selected: P,
2600
2600
  select: M,
@@ -2615,20 +2615,20 @@ function aw(t) {
2615
2615
  { value: ct },
2616
2616
  re.createElement(
2617
2617
  e.Root,
2618
- { className: ve, style: we, dir: t.dir, id: t.id, lang: t.lang, nonce: t.nonce, title: t.title, role: t.role, "aria-label": t["aria-label"], ...Pe },
2618
+ { className: ve, style: we, dir: t.dir, id: t.id, lang: t.lang, nonce: t.nonce, title: t.title, role: t.role, "aria-label": t["aria-label"], ...Ne },
2619
2619
  re.createElement(
2620
2620
  e.Months,
2621
2621
  { className: s[Ee.Months], style: x == null ? void 0 : x[Ee.Months] },
2622
2622
  !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
2623
  D.map((ye, _e) => {
2624
- const Re = Sk(ye.date, N, R, n, i), St = Ok(N, R, n, i);
2624
+ const Pe = Sk(ye.date, N, R, n, i), St = Ok(N, R, n, i);
2625
2625
  return re.createElement(
2626
2626
  e.Month,
2627
2627
  { className: s[Ee.Month], style: x == null ? void 0 : x[Ee.Month], key: _e, displayIndex: _e, calendarMonth: ye },
2628
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(
2629
2629
  e.DropdownNav,
2630
2630
  { className: s[Ee.Dropdowns], style: x == null ? void 0 : x[Ee.Dropdowns] },
2631
- 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: Re, 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)),
2631
+ 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)),
2632
2632
  a === "dropdown" || a === "dropdown-years" ? re.createElement(e.YearsDropdown, { className: s[Ee.YearsDropdown], "aria-label": ne(i.options), classNames: s, components: e, disabled: !!t.disableNavigation, onChange: ge(ye.date), options: St, style: x == null ? void 0 : x[Ee.Dropdown], value: i.getYear(ye.date) }) : re.createElement("span", { role: "status", "aria-live": "polite" }, k(ye.date, i))
2633
2633
  ) : re.createElement(e.CaptionLabel, { className: s[Ee.CaptionLabel], role: "status", "aria-live": "polite" }, O(ye.date, i.options, i))),
2634
2634
  re.createElement(
@@ -2885,7 +2885,7 @@ const lw = ({ className: t, ...e }) => /* @__PURE__ */ A.jsx(
2885
2885
  selectOptions: r,
2886
2886
  ...i
2887
2887
  }) => {
2888
- const [o, s] = Ne(null), a = (d) => {
2888
+ const [o, s] = Ie(null), a = (d) => {
2889
2889
  s((f) => f === d ? null : d);
2890
2890
  }, { goToMonth: l } = Zr(), c = r && r.month !== void 0 ? r.month : qd.month, u = r && r.year !== void 0 ? r.year : qd.year;
2891
2891
  return /* @__PURE__ */ A.jsxs(
@@ -3908,7 +3908,7 @@ var p1 = (t) => typeof t == "function", xs = (t, e) => p1(t) ? t(e) : t, h1 = /*
3908
3908
  e(us);
3909
3909
  });
3910
3910
  }, g1 = { blank: 4e3, error: 4e3, success: 2e3, loading: 1 / 0, custom: 4e3 }, Vm = (t = {}) => {
3911
- let [e, n] = Ne(us);
3911
+ let [e, n] = Ie(us);
3912
3912
  Be(() => (cs.push(n), () => {
3913
3913
  let i = cs.indexOf(n);
3914
3914
  i > -1 && cs.splice(i, 1);
@@ -4203,14 +4203,22 @@ const Y1 = ha(
4203
4203
  intent: "info"
4204
4204
  }
4205
4205
  }
4206
- ), Yd = ({ intent: t, text: e, customIcon: n, closure: r = !0, content: i, id: o }) => /* @__PURE__ */ A.jsxs("div", { className: ee(Y1({ intent: t })), children: [
4206
+ ), Yd = ({
4207
+ intent: t,
4208
+ text: e,
4209
+ customIcon: n,
4210
+ closure: r = !0,
4211
+ link: i,
4212
+ linkText: o = "Подробнее",
4213
+ id: s
4214
+ }) => /* @__PURE__ */ A.jsxs("div", { className: ee(Y1({ intent: t })), children: [
4207
4215
  /* @__PURE__ */ A.jsxs("div", { className: "flex items-center gap-2", children: [
4208
- /* @__PURE__ */ A.jsx("span", { className: "size-6", children: n }),
4216
+ n && /* @__PURE__ */ A.jsx("span", { className: "size-6", children: n }),
4209
4217
  /* @__PURE__ */ A.jsx("div", { className: "desk-body-regular-m text-color-white", children: e })
4210
4218
  ] }),
4211
- /* @__PURE__ */ A.jsxs("div", { className: "flex items-center gap-6", children: [
4212
- i,
4213
- r && /* @__PURE__ */ A.jsx($e, { onClick: () => ks.dismiss(o), name: "general/close", className: "size-5 cursor-pointer text-icon-white" })
4219
+ (i || r) && /* @__PURE__ */ A.jsxs("div", { className: "flex items-center gap-6", children: [
4220
+ i && /* @__PURE__ */ A.jsx("a", { href: i, className: "mob-body-medium-m cursor-pointer underline", target: "_blank", rel: "noreferrer", children: o }),
4221
+ r && /* @__PURE__ */ A.jsx($e, { onClick: () => ks.dismiss(s), name: "general/close", className: "size-5 cursor-pointer text-icon-white" })
4214
4222
  ] })
4215
4223
  ] }), J1 = (t) => {
4216
4224
  switch (t.intent) {
@@ -4909,13 +4917,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4909
4917
  function Z(Q, ce, ge, ve) {
4910
4918
  var we = M(oe[Q], oe, ce);
4911
4919
  if (we.type !== "throw") {
4912
- var Pe = we.arg, ct = Pe.value;
4920
+ var Ne = we.arg, ct = Ne.value;
4913
4921
  return ct && c(ct) == "object" && D.call(ct, "__await") ? G.resolve(ct.__await).then(function(ye) {
4914
4922
  Z("next", ye, ge, ve);
4915
4923
  }, function(ye) {
4916
4924
  Z("throw", ye, ge, ve);
4917
4925
  }) : G.resolve(ct).then(function(ye) {
4918
- Pe.value = ye, ge(Pe);
4926
+ Ne.value = ye, ge(Ne);
4919
4927
  }, function(ye) {
4920
4928
  return Z("throw", ye, ge, ve);
4921
4929
  });
@@ -5061,8 +5069,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
5061
5069
  dispatchException: function(oe) {
5062
5070
  if (this.done) throw oe;
5063
5071
  var G = this;
5064
- function Z(we, Pe) {
5065
- return ce.type = "throw", ce.arg = oe, G.next = we, Pe && (G.method = "next", G.arg = k), !!Pe;
5072
+ function Z(we, Ne) {
5073
+ return ce.type = "throw", ce.arg = oe, G.next = we, Ne && (G.method = "next", G.arg = k), !!Ne;
5066
5074
  }
5067
5075
  for (var Y = this.tryEntries.length - 1; Y >= 0; --Y) {
5068
5076
  var Q = this.tryEntries[Y], ce = Q.completion;
@@ -5848,7 +5856,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
5848
5856
  for (ie.reset(), N(ue).lastIndex = 0; G = N(ue).exec(ue.inputFormat); ) {
5849
5857
  var Z;
5850
5858
  if ((Z = D(G)) && Z[3]) {
5851
- for (var Y = Z[1], Q = ie[Z[2]], ce = ue.min[Z[2]], ge = ue.max ? ue.max[Z[2]] : ce + 1, ve = [], we = !1, Pe = 0; Pe < ce.length; Pe++) xe.validPositions[Pe + G.index] !== void 0 || we ? (ve[Pe] = Q[Pe], we = we || Q[Pe] > ce[Pe]) : (Pe + G.index == 0 && Q[Pe] < ce[Pe] ? (ve[Pe] = Q[Pe], we = !0) : ve[Pe] = ce[Pe], Z[2] === "year" && Q.length - 1 == Pe && ce != ge && (ve = (parseInt(ve.join("")) + 1).toString().split("")), Z[2] === "ampm" && ce != ge && ue.min.date.getTime() > ie.date.getTime() && (ve[Pe] = ge[Pe]));
5859
+ for (var Y = Z[1], Q = ie[Z[2]], ce = ue.min[Z[2]], ge = ue.max ? ue.max[Z[2]] : ce + 1, ve = [], we = !1, Ne = 0; Ne < ce.length; Ne++) xe.validPositions[Ne + G.index] !== void 0 || we ? (ve[Ne] = Q[Ne], we = we || Q[Ne] > ce[Ne]) : (Ne + G.index == 0 && Q[Ne] < ce[Ne] ? (ve[Ne] = Q[Ne], we = !0) : ve[Ne] = ce[Ne], Z[2] === "year" && Q.length - 1 == Ne && ce != ge && (ve = (parseInt(ve.join("")) + 1).toString().split("")), Z[2] === "ampm" && ce != ge && ue.min.date.getTime() > ie.date.getTime() && (ve[Ne] = ge[Ne]));
5852
5860
  Y.call(ie._date, ve.join(""));
5853
5861
  }
5854
5862
  }
@@ -7578,7 +7586,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7578
7586
  }
7579
7587
  function le(G, Z, Y) {
7580
7588
  var Q, ce;
7581
- if ((D.tests[G] || D.validPositions[G]) && (D.validPositions[G] ? [D.validPositions[G]] : D.tests[G]).every(function(we, Pe) {
7589
+ if ((D.tests[G] || D.validPositions[G]) && (D.validPositions[G] ? [D.validPositions[G]] : D.tests[G]).every(function(we, Ne) {
7582
7590
  if (we.mloc[Z]) return Q = we, !1;
7583
7591
  var ct = Y !== void 0 ? Y : we.alternation, ye = we.locator[ct] !== void 0 ? we.locator[ct].toString().indexOf(Z) : -1;
7584
7592
  return (ce === void 0 || ye < ce) && ye !== -1 && (Q = we, ce = ye), !0;
@@ -7647,23 +7655,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7647
7655
  E.hasAlternator = !0;
7648
7656
  var Z, Y = U, Q = [], ce = $.slice(), ge = ne.length, ve = H.length > 0 ? H.shift() : -1;
7649
7657
  if (ve === -1 || typeof ve == "string") {
7650
- var we, Pe = _, ct = H.slice(), ye = [];
7658
+ var we, Ne = _, ct = H.slice(), ye = [];
7651
7659
  if (typeof ve == "string") ye = ve.split(",");
7652
7660
  else for (we = 0; we < Y.matches.length; we++) ye.push(we.toString());
7653
7661
  if (D.excludes[S] !== void 0) {
7654
- for (var _e = ye.slice(), Re = 0, St = D.excludes[S].length; Re < St; Re++) {
7655
- var ft = D.excludes[S][Re].toString().split(":");
7662
+ for (var _e = ye.slice(), Pe = 0, St = D.excludes[S].length; Pe < St; Pe++) {
7663
+ var ft = D.excludes[S][Pe].toString().split(":");
7656
7664
  ne.length == ft[1] && ye.splice(ye.indexOf(ft[0]), 1);
7657
7665
  }
7658
7666
  ye.length === 0 && (delete D.excludes[S], ye = _e);
7659
7667
  }
7660
- (N.keepStatic === !0 || isFinite(parseInt(N.keepStatic)) && Pe >= N.keepStatic) && (ye = ye.slice(0, 1));
7668
+ (N.keepStatic === !0 || isFinite(parseInt(N.keepStatic)) && Ne >= N.keepStatic) && (ye = ye.slice(0, 1));
7661
7669
  for (var Vt = 0; Vt < ye.length; Vt++) {
7662
7670
  we = parseInt(ye[Vt]), $ = [], H = typeof ve == "string" && le(_, we, ge) || ct.slice();
7663
7671
  var Ke = Y.matches[we];
7664
7672
  if (Ke && te(Ke, [we].concat(ne), he)) U = !0;
7665
7673
  else if (Vt === 0 && (P = G(Y)), Ke && Ke.matches && Ke.matches.length > Y.matches[0].matches.length) break;
7666
- Z = $.slice(), _ = Pe, $ = [];
7674
+ Z = $.slice(), _ = Ne, $ = [];
7667
7675
  for (var Et = 0; Et < Z.length; Et++) {
7668
7676
  var Se = Z[Et], ri = !1;
7669
7677
  Se.alternation = Se.alternation || ge, xe(Se);
@@ -8416,7 +8424,7 @@ function NS() {
8416
8424
  };
8417
8425
  }
8418
8426
  function Zm(t) {
8419
- let { onHoverStart: e, onHoverChange: n, onHoverEnd: r, isDisabled: i } = t, [o, s] = Ne(!1), a = Oe({
8427
+ let { onHoverStart: e, onHoverChange: n, onHoverEnd: r, isDisabled: i } = t, [o, s] = Ie(!1), a = Oe({
8420
8428
  isHovered: !1,
8421
8429
  ignoreEmulatedMouseEvents: !1,
8422
8430
  pointerType: "",
@@ -8479,7 +8487,7 @@ function eg(t = {}) {
8479
8487
  let { autoFocus: e = !1, isTextInput: n, within: r } = t, i = Oe({
8480
8488
  isFocused: !1,
8481
8489
  isFocusVisible: e || Xm()
8482
- }), [o, s] = Ne(!1), [a, l] = Ne(() => i.current.isFocused && i.current.isFocusVisible), c = Ce(() => l(i.current.isFocused && i.current.isFocusVisible), []), u = Ce((p) => {
8490
+ }), [o, s] = Ie(!1), [a, l] = Ie(() => i.current.isFocused && i.current.isFocusVisible), c = Ce(() => l(i.current.isFocused && i.current.isFocusVisible), []), u = Ce((p) => {
8483
8491
  i.current.isFocused = p, s(p), c();
8484
8492
  }, [
8485
8493
  c
@@ -8577,7 +8585,7 @@ function xn() {
8577
8585
  return e;
8578
8586
  }
8579
8587
  function Bo() {
8580
- let [t] = Ne(xn);
8588
+ let [t] = Ie(xn);
8581
8589
  return Be(() => () => t.dispose(), [t]), t;
8582
8590
  }
8583
8591
  let Ze = (t, e) => {
@@ -8601,7 +8609,7 @@ function _S(t, e) {
8601
8609
  return !(!t || !e || t.right < e.left || t.left > e.right || t.bottom < e.top || t.top > e.bottom);
8602
8610
  }
8603
8611
  function LS({ disabled: t = !1 } = {}) {
8604
- let e = Oe(null), [n, r] = Ne(!1), i = Bo(), o = Me(() => {
8612
+ let e = Oe(null), [n, r] = Ie(!1), i = Bo(), o = Me(() => {
8605
8613
  e.current = null, r(!1), i.dispose();
8606
8614
  }), s = Me((a) => {
8607
8615
  if (i.dispose(), e.current === null) {
@@ -8742,11 +8750,11 @@ function WS(t) {
8742
8750
  return re.version.split(".")[0] >= "19" ? t.props.ref : t.ref;
8743
8751
  }
8744
8752
  function HS(t, e, n) {
8745
- let [r, i] = Ne(n), o = t !== void 0, s = Oe(o), a = Oe(!1), l = Oe(!1);
8753
+ let [r, i] = Ie(n), o = t !== void 0, s = Oe(o), a = Oe(!1), l = Oe(!1);
8746
8754
  return o && !s.current && !a.current ? (a.current = !0, s.current = o, console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")) : !o && s.current && !l.current && (l.current = !0, s.current = o, console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")), [o ? t : r, Me((c) => (o || i(c), e == null ? void 0 : e(c)))];
8747
8755
  }
8748
8756
  function qS(t) {
8749
- let [e] = Ne(t);
8757
+ let [e] = Ie(t);
8750
8758
  return e;
8751
8759
  }
8752
8760
  function rg(t = {}, e = null, n = []) {
@@ -8775,7 +8783,7 @@ function YS({ children: t }) {
8775
8783
  return n ? xu(re.createElement(re.Fragment, null, t), n) : null;
8776
8784
  }
8777
8785
  function JS({ data: t, form: e, disabled: n, onReset: r, overrides: i }) {
8778
- let [o, s] = Ne(null), a = Bo();
8786
+ let [o, s] = Ie(null), a = Bo();
8779
8787
  return Be(() => {
8780
8788
  if (r && o) return a.addEventListener(o, "reset", r);
8781
8789
  }, [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 }) })));
@@ -8865,7 +8873,7 @@ function Na(t) {
8865
8873
  return ((r = t == null ? void 0 : t.length) != null ? r : 0) > 0 ? [i, ...t].filter(Boolean).join(" ") : i;
8866
8874
  }
8867
8875
  function sE({ inherit: t = !1 } = {}) {
8868
- let e = Na(), [n, r] = Ne([]), i = t ? [e, ...n].filter(Boolean) : n;
8876
+ let e = Na(), [n, r] = Ie([]), i = t ? [e, ...n].filter(Boolean) : n;
8869
8877
  return [i.length > 0 ? i.join(" ") : void 0, je(() => function(o) {
8870
8878
  let s = Me((l) => (r((c) => [...c, l]), () => r((c) => {
8871
8879
  let u = c.slice(), d = u.indexOf(l);
@@ -9756,7 +9764,7 @@ function KE() {
9756
9764
  } };
9757
9765
  }
9758
9766
  function YE(t = 0) {
9759
- let [e, n] = Ne(t), r = Ce((l) => n(l), [e]), i = Ce((l) => n((c) => c | l), [e]), o = Ce((l) => (e & l) === l, [e]), s = Ce((l) => n((c) => c & ~l), [n]), a = Ce((l) => n((c) => c ^ l), [n]);
9767
+ let [e, n] = Ie(t), r = Ce((l) => n(l), [e]), i = Ce((l) => n((c) => c | l), [e]), o = Ce((l) => (e & l) === l, [e]), s = Ce((l) => n((c) => c & ~l), [n]), a = Ce((l) => n((c) => c ^ l), [n]);
9760
9768
  return { flags: e, setFlag: r, addFlag: i, hasFlag: o, removeFlag: s, toggleFlag: a };
9761
9769
  }
9762
9770
  var cf, uf;
@@ -9771,7 +9779,7 @@ function QE(t) {
9771
9779
  return e;
9772
9780
  }
9773
9781
  function XE(t, e, n, r) {
9774
- let [i, o] = Ne(n), { hasFlag: s, addFlag: a, removeFlag: l } = YE(t && i ? 3 : 0), c = Oe(!1), u = Oe(!1), d = Bo();
9782
+ let [i, o] = Ie(n), { hasFlag: s, addFlag: a, removeFlag: l } = YE(t && i ? 3 : 0), c = Oe(!1), u = Oe(!1), d = Bo();
9775
9783
  return Ze(() => {
9776
9784
  var f;
9777
9785
  if (t) {
@@ -10216,7 +10224,7 @@ function OC(t = null) {
10216
10224
  }
10217
10225
  let yf = 4;
10218
10226
  function TC({ children: t, enabled: e = !0 }) {
10219
- let [n, r] = Ne(null), [i, o] = Ne(0), s = Oe(null), [a, l] = Ne(null);
10227
+ let [n, r] = Ie(null), [i, o] = Ie(0), s = Oe(null), [a, l] = Ie(null);
10220
10228
  MC(a);
10221
10229
  let c = e && n !== null && a !== null, { to: u = "bottom", gap: d = 0, offset: f = 0, padding: p = 0, inner: h } = DC(n, a), [m, g = "center"] = u.split(" ");
10222
10230
  Ze(() => {
@@ -10298,7 +10306,7 @@ function dl(t, e, n = void 0) {
10298
10306
  }];
10299
10307
  }
10300
10308
  return [n, null];
10301
- }), o = je(() => i(t, e)[0], [t, e]), [s = o, a] = Ne();
10309
+ }), o = je(() => i(t, e)[0], [t, e]), [s = o, a] = Ie();
10302
10310
  return Ze(() => {
10303
10311
  let [l, c] = i(t, e);
10304
10312
  if (a(l), !!c) return c(a);
@@ -10325,7 +10333,7 @@ function AC({ children: t, freeze: e }) {
10325
10333
  return re.createElement(re.Fragment, null, n);
10326
10334
  }
10327
10335
  function gc(t, e) {
10328
- let [n, r] = Ne(e);
10336
+ let [n, r] = Ie(e);
10329
10337
  return !t && n !== e && r(e), t ? n : e;
10330
10338
  }
10331
10339
  let _u = kt(null);
@@ -10413,7 +10421,7 @@ function BC() {
10413
10421
  return rt(FC);
10414
10422
  }
10415
10423
  function $C(t) {
10416
- let e = BC(), n = rt(wg), r = Pa(t), [i, o] = Ne(() => {
10424
+ let e = BC(), n = rt(wg), r = Pa(t), [i, o] = Ie(() => {
10417
10425
  var s;
10418
10426
  if (!e && n !== null) return (s = n.current) != null ? s : null;
10419
10427
  if (Lr.isServer) return null;
@@ -10432,7 +10440,7 @@ function $C(t) {
10432
10440
  let kg = bn, zC = cn(function(t, e) {
10433
10441
  let n = t, r = Oe(null), i = Bn(tE((d) => {
10434
10442
  r.current = d;
10435
- }), e), o = Pa(r), s = $C(r), [a] = Ne(() => {
10443
+ }), e), o = Pa(r), s = $C(r), [a] = Ie(() => {
10436
10444
  var d;
10437
10445
  return Lr.isServer ? null : (d = o == null ? void 0 : o.createElement("div")) != null ? d : null;
10438
10446
  }), l = rt(qC), c = LC();
@@ -10540,7 +10548,7 @@ function eO(t) {
10540
10548
  return 40;
10541
10549
  }, getScrollElement() {
10542
10550
  return e.optionsElement;
10543
- }, overscan: 12 }), [s, a] = Ne(0);
10551
+ }, overscan: 12 }), [s, a] = Ie(0);
10544
10552
  Ze(() => {
10545
10553
  a((c) => c + 1);
10546
10554
  }, [n]);
@@ -10740,7 +10748,7 @@ function uO(t, e) {
10740
10748
  var n, r, i;
10741
10749
  let o = Zt(), { id: s = `headlessui-combobox-options-${o}`, hold: a = !1, anchor: l, portal: c = !1, modal: u = !0, transition: d = !1, ...f } = t, p = Pi("Combobox.Options"), h = zo("Combobox.Options"), m = SC(l);
10742
10750
  m && (c = !0);
10743
- let [g, y] = OC(m), [x, O] = Ne(null), v = CC(), S = Bn(e, m ? g : null, h.setOptionsElement, O), b = Pa(p.optionsElement), C = NC(), [w, k] = XE(d, x, C !== null ? (C & go.Open) === go.Open : p.comboboxState === 0);
10751
+ let [g, y] = OC(m), [x, O] = Ie(null), v = CC(), S = Bn(e, m ? g : null, h.setOptionsElement, O), b = Pa(p.optionsElement), C = NC(), [w, k] = XE(d, x, C !== null ? (C & go.Open) === go.Open : p.comboboxState === 0);
10744
10752
  AE(w, p.inputElement, h.closeCombobox);
10745
10753
  let E = p.__demoMode ? !1 : u && p.comboboxState === 0;
10746
10754
  GE(E, b);
@@ -10811,7 +10819,7 @@ const gO = ({
10811
10819
  externalOnInputChange: s,
10812
10820
  externalHandlers: a
10813
10821
  }) => {
10814
- const [l, c] = Ne(""), u = (g) => e ? e(g) : g.label, d = (g) => {
10822
+ const [l, c] = Ie(""), u = (g) => e ? e(g) : g.label, d = (g) => {
10815
10823
  const { value: y } = g.target;
10816
10824
  c(y);
10817
10825
  }, f = je(() => i || !n ? t : t.filter(
@@ -11195,9 +11203,9 @@ const Ng = nt(
11195
11203
  Ng.displayName = "CheckboxBase";
11196
11204
  const Pg = nt(
11197
11205
  ({ defaultOpen: t = !1, value: e, onChange: n, disabled: r, externalHandlers: i, classes: o, ...s }, a) => {
11198
- const { onChange: l, onFocus: c, ...u } = i || {}, d = Oe(null), [f, p] = Ne(t), h = () => {
11206
+ const { onChange: l, onFocus: c, ...u } = i || {}, d = Oe(null), [f, p] = Ie(t), h = () => {
11199
11207
  p((w) => !w);
11200
- }, [m, g] = Ne(/* @__PURE__ */ new Date()), [y, x] = Ne(bs(/* @__PURE__ */ new Date(), Xi));
11208
+ }, [m, g] = Ie(/* @__PURE__ */ new Date()), [y, x] = Ie(bs(/* @__PURE__ */ new Date(), Xi));
11201
11209
  ba(d, () => p(!1));
11202
11210
  const O = e ? new Date(e) : /* @__PURE__ */ new Date(), v = (w) => {
11203
11211
  if (x(w), !/^(\d{2})\.(\d{2})\.(\d{4})$/.test(w))
@@ -11400,7 +11408,7 @@ const Lg = nt(
11400
11408
  Lg.displayName = "SwitchBase";
11401
11409
  const NO = nt(
11402
11410
  ({ formatter: t, query: e, value: n, returnValue: r, onChange: i, ...o }, s) => {
11403
- const [a, l] = Ne(""), c = bx(a, 100), { data: u } = e(c), d = u ? u.map(t) : [], f = (h) => {
11411
+ const [a, l] = Ie(""), c = bx(a, 100), { data: u } = e(c), d = u ? u.map(t) : [], f = (h) => {
11404
11412
  !h || Array.isArray(h) || i && i(r ? r(h) : h.value);
11405
11413
  }, p = je(() => d.find((h) => r ? r(h) : h.value === n), [d, r, n]);
11406
11414
  return /* @__PURE__ */ A.jsx(
@@ -11637,7 +11645,7 @@ function Hg(t, e, n, r, i, o) {
11637
11645
  var s = _O(function(h, m) {
11638
11646
  var g, y;
11639
11647
  return Bg(h) ? (y = "", g = "") : typeof h == "number" || m ? (y = typeof h == "number" ? Vg(h) : h, g = r(y)) : (y = i(h, void 0), g = r(y)), { formattedValue: g, numAsString: y };
11640
- }), a = Ne(function() {
11648
+ }), a = Ie(function() {
11641
11649
  return s(pi(t) ? e : t, n);
11642
11650
  }), l = a[0], c = a[1], u = function(h, m) {
11643
11651
  h.formattedValue !== l.formattedValue && c({
@@ -11682,7 +11690,7 @@ function GO(t) {
11682
11690
  O === void 0 && (O = bo);
11683
11691
  var v = t.isCharacterSame, S = Fg(t, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), b = Hg(y, l, !!c, s, a, u), C = b[0], w = C.formattedValue, k = C.numAsString, E = b[1], T = Oe(), D = Oe({ formattedValue: w, numAsString: k }), N = function(ie, le) {
11684
11692
  D.current = { formattedValue: ie.formattedValue, numAsString: ie.value }, E(ie, le);
11685
- }, R = Ne(!1), L = R[0], _ = R[1], j = Oe(null), $ = Oe({
11693
+ }, R = Ie(!1), L = R[0], _ = R[1], j = Oe(null), $ = Oe({
11686
11694
  setCaretTimeout: null,
11687
11695
  focusTimeout: null
11688
11696
  });
@@ -15543,7 +15551,7 @@ function Ny() {
15543
15551
  }, [R, u, C]), se = Ce(function(Y, Q) {
15544
15552
  var ce = [], ge = [];
15545
15553
  Y.forEach(function(ve) {
15546
- var we = Cy(ve, E), Pe = wl(we, 2), ct = Pe[0], ye = Pe[1], _e = Oy(ve, s, o), Re = wl(_e, 2), St = Re[0], ft = Re[1], Vt = k ? k(ve) : null;
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;
15547
15555
  if (ct && St && !Vt)
15548
15556
  ce.push(ve);
15549
15557
  else {
@@ -15621,15 +15629,15 @@ function Ny() {
15621
15629
  C && Q.stopPropagation();
15622
15630
  }, oe = je(function() {
15623
15631
  return function() {
15624
- 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, Pe = Y.onBlur, ct = Y.onClick, ye = Y.onDragEnter, _e = Y.onDragOver, Re = Y.onDragLeave, St = Y.onDrop, ft = Os(Y, RM);
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);
15625
15633
  return Xe(Xe(Cc({
15626
15634
  onKeyDown: le(dn(ve, fe)),
15627
15635
  onFocus: le(dn(we, U)),
15628
- onBlur: le(dn(Pe, ne)),
15636
+ onBlur: le(dn(Ne, ne)),
15629
15637
  onClick: ie(dn(ct, he)),
15630
15638
  onDragEnter: ue(dn(ye, X)),
15631
15639
  onDragOver: ue(dn(_e, H)),
15632
- onDragLeave: ue(dn(Re, J)),
15640
+ onDragLeave: ue(dn(Pe, J)),
15633
15641
  onDrop: ue(dn(St, te)),
15634
15642
  role: typeof ge == "string" && ge !== "" ? ge : "presentation"
15635
15643
  }, ce, R), !r && !S ? {
@@ -15640,7 +15648,7 @@ function Ny() {
15640
15648
  Y.stopPropagation();
15641
15649
  }, []), Z = je(function() {
15642
15650
  return function() {
15643
- var Y = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, Q = Y.refKey, ce = Q === void 0 ? "ref" : Q, ge = Y.onChange, ve = Y.onClick, we = Os(Y, IM), Pe = Cc({
15651
+ var Y = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, Q = Y.refKey, ce = Q === void 0 ? "ref" : Q, ge = Y.onChange, ve = Y.onClick, we = Os(Y, IM), Ne = Cc({
15644
15652
  accept: E,
15645
15653
  multiple: a,
15646
15654
  type: "file",
@@ -15660,7 +15668,7 @@ function Ny() {
15660
15668
  onClick: ie(dn(ve, G)),
15661
15669
  tabIndex: -1
15662
15670
  }, ce, L);
15663
- return Xe(Xe({}, Pe), we);
15671
+ return Xe(Xe({}, Ne), we);
15664
15672
  };
15665
15673
  }, [L, n, a, te, r]);
15666
15674
  return Xe(Xe({}, $), {}, {
@@ -15711,7 +15719,7 @@ function WM(t, e) {
15711
15719
  function qf() {
15712
15720
  }
15713
15721
  const HM = ({ dropzoneOptions: t, controlledFiles: e = [], onChange: n }) => {
15714
- const [r, i] = Ne({}), o = (l) => {
15722
+ const [r, i] = Ie({}), o = (l) => {
15715
15723
  const c = e == null ? void 0 : e.filter((u, d) => d !== l);
15716
15724
  n && n(c);
15717
15725
  }, a = Ny({
@@ -15749,7 +15757,7 @@ const HM = ({ dropzoneOptions: t, controlledFiles: e = [], onChange: n }) => {
15749
15757
  });
15750
15758
  return { filesStatus: r, removeFile: o, dropzoneState: a };
15751
15759
  }, qM = (t) => {
15752
- const [e, n] = Ne(!1), r = Ce(() => {
15760
+ const [e, n] = Ie(!1), r = Ce(() => {
15753
15761
  const { current: i } = t, o = !!i && i.scrollWidth > i.clientWidth;
15754
15762
  n(o);
15755
15763
  }, [t]);
@@ -15920,19 +15928,19 @@ var jy = B.createContext({}), _y = B.forwardRef((t, e) => {
15920
15928
  if (_e === 0) Q = 0, ce = 1, ge = "forward";
15921
15929
  else if (_e === G) Q = _e - 1, ce = _e, ge = "backward";
15922
15930
  else if (G > 1 && Z.length > 1) {
15923
- let Re = 0;
15931
+ let Pe = 0;
15924
15932
  if (Y[0] !== null && Y[1] !== null) {
15925
15933
  ge = _e < Y[1] ? "backward" : "forward";
15926
15934
  let St = Y[0] === Y[1] && Y[0] < G;
15927
- ge === "backward" && !St && (Re = -1);
15935
+ ge === "backward" && !St && (Pe = -1);
15928
15936
  }
15929
- Q = Re + _e, ce = Re + _e + 1;
15937
+ Q = Pe + _e, ce = Pe + _e + 1;
15930
15938
  }
15931
15939
  }
15932
15940
  Q !== -1 && ce !== -1 && Q !== ce && N.current.setSelectionRange(Q, ce, ge);
15933
15941
  }
15934
- let ve = Q !== -1 ? Q : ue, we = ce !== -1 ? ce : xe, Pe = ge ?? oe;
15935
- F(ve), z(we), _.current.prev = [ve, we, Pe];
15942
+ let ve = Q !== -1 ? Q : ue, we = ce !== -1 ? ce : xe, Ne = ge ?? oe;
15943
+ F(ve), z(we), _.current.prev = [ve, we, Ne];
15936
15944
  }
15937
15945
  if (document.addEventListener("selectionchange", he, { capture: !0 }), he(), document.activeElement === U && M(!0), !document.getElementById("input-otp-style")) {
15938
15946
  let ue = document.createElement("style");
@@ -16992,13 +17000,22 @@ function nA(t, e) {
16992
17000
  return e ? new Date(e) : /* @__PURE__ */ new Date();
16993
17001
  }
16994
17002
  }
16995
- const rA = ({ inputProps: t, classes: e, value: n, onChange: r, externalHandlers: i, ...o }) => {
16996
- const { onChange: s, onFocus: a, ...l } = i || {}, c = Oe(null), { calendar: u, ...d } = e || {}, [f, p] = Ne(!1), h = () => {
16997
- p((b) => !b);
16998
- }, [m, g] = Ne(/* @__PURE__ */ new Date()), y = nA("single", n), [x, O] = Ne(rp("single", n));
17003
+ const rA = ({
17004
+ inputProps: t,
17005
+ classes: e,
17006
+ value: n,
17007
+ onChange: r,
17008
+ externalHandlers: i,
17009
+ month: o,
17010
+ onMonthChange: s,
17011
+ ...a
17012
+ }) => {
17013
+ const { onChange: l, onFocus: c, ...u } = i || {}, d = Oe(null), { calendar: f, ...p } = e || {}, [h, m] = Ie(!1), g = () => {
17014
+ m((b) => !b);
17015
+ }, y = nA("single", n), [x, O] = Ie(rp("single", n));
16999
17016
  Be(() => {
17000
- n && !er.isStringEmpty(n) && (O(rp("single", n)), g(new Date(n)));
17001
- }, [n]), ba(c, () => p(!1));
17017
+ n && !er.isStringEmpty(n) && (O(rp("single", n)), s && s(new Date(n)));
17018
+ }, [n]), ba(d, () => m(!1));
17002
17019
  const v = (b) => {
17003
17020
  const { value: C } = b.target;
17004
17021
  if (O(C), er.isStringEmpty(C))
@@ -17008,46 +17025,47 @@ const rA = ({ inputProps: t, classes: e, value: n, onChange: r, externalHandlers
17008
17025
  const w = qh(C, Xi, /* @__PURE__ */ new Date());
17009
17026
  if (bu(w)) {
17010
17027
  const k = w.toISOString();
17011
- r(k), g(w), s && s(k);
17028
+ r(k), s && s(w), l && l(k);
17012
17029
  }
17013
17030
  }, S = (b) => {
17014
- g(b);
17031
+ s && s(b);
17015
17032
  const C = b.toISOString();
17016
- r(C), O(bs(b, Xi)), p(!1), s && s(C);
17033
+ r(C), O(bs(b, Xi)), m(!1), l && l(C);
17017
17034
  };
17018
- return /* @__PURE__ */ A.jsxs("div", { ref: c, className: ee("relative w-full", e == null ? void 0 : e.container), children: [
17035
+ return /* @__PURE__ */ A.jsxs("div", { ref: d, className: ee("relative w-full", e == null ? void 0 : e.container), children: [
17019
17036
  /* @__PURE__ */ A.jsx(
17020
17037
  yt.MaskInput,
17021
17038
  {
17022
17039
  mask: eA,
17023
17040
  ...t,
17024
- ...l,
17025
- classes: d,
17041
+ ...u,
17042
+ classes: p,
17026
17043
  value: x,
17027
17044
  onChange: v,
17028
17045
  onFocus: (b) => {
17029
- p(!0), a && a(b);
17046
+ m(!0), c && c(b);
17030
17047
  },
17031
17048
  onKeyDown: (b) => {
17032
- b.key === "Enter" && h();
17049
+ b.key === "Enter" && g();
17033
17050
  },
17034
17051
  attachmentProps: {
17035
17052
  icon: /* @__PURE__ */ A.jsx($e, { name: "general/calendar", className: "text-icon-blue-grey-600" }),
17036
- onClickIcon: h
17053
+ onClickIcon: g
17037
17054
  }
17038
17055
  }
17039
17056
  ),
17040
- f && /* @__PURE__ */ A.jsx(
17057
+ h && /* @__PURE__ */ A.jsx(
17041
17058
  cm,
17042
17059
  {
17043
- ...o,
17060
+ ...a,
17044
17061
  required: !0,
17045
17062
  mode: "single",
17046
- month: m,
17047
- onMonthChange: g,
17063
+ month: o,
17064
+ onMonthChange: s,
17048
17065
  selected: y,
17049
17066
  onSelect: S,
17050
- className: ee("absolute right-0 top-full z-10", u)
17067
+ className: ee("absolute right-0 top-full z-10", f),
17068
+ "data-test-id": "calendar"
17051
17069
  }
17052
17070
  )
17053
17071
  ] });
@@ -17070,7 +17088,7 @@ const rA = ({ inputProps: t, classes: e, value: n, onChange: r, externalHandlers
17070
17088
  disabled: n,
17071
17089
  rules: r,
17072
17090
  shouldUnregister: i
17073
- }), { value: f, onChange: p, ...h } = u, { error: m, invalid: g } = d, { message: y, container: x, ...O } = l || {}, [v, S] = Ne(/* @__PURE__ */ new Date());
17091
+ }), { value: f, onChange: p, ...h } = u, { error: m, invalid: g } = d, { message: y, container: x, ...O } = l || {}, [v, S] = Ie(/* @__PURE__ */ new Date());
17074
17092
  return /* @__PURE__ */ A.jsxs("div", { className: ee("w-full", x), children: [
17075
17093
  /* @__PURE__ */ A.jsx(
17076
17094
  rA,
@@ -26730,7 +26748,7 @@ function Zc(t, e) {
26730
26748
  function mb(t) {
26731
26749
  return typeof t == "function";
26732
26750
  }
26733
- function Ie(t, e = void 0, ...n) {
26751
+ function Re(t, e = void 0, ...n) {
26734
26752
  return mb(t) ? e ? t.bind(e)(...n) : t(...n) : t;
26735
26753
  }
26736
26754
  function lR(t = {}) {
@@ -26779,23 +26797,23 @@ function uR(t, e) {
26779
26797
  };
26780
26798
  }, {}), p = oh({
26781
26799
  ...f,
26782
- content: Ie(be(c, "content", d)),
26783
- marks: Ie(be(c, "marks", d)),
26784
- group: Ie(be(c, "group", d)),
26785
- inline: Ie(be(c, "inline", d)),
26786
- atom: Ie(be(c, "atom", d)),
26787
- selectable: Ie(be(c, "selectable", d)),
26788
- draggable: Ie(be(c, "draggable", d)),
26789
- code: Ie(be(c, "code", d)),
26790
- whitespace: Ie(be(c, "whitespace", d)),
26791
- linebreakReplacement: Ie(be(c, "linebreakReplacement", d)),
26792
- defining: Ie(be(c, "defining", d)),
26793
- isolating: Ie(be(c, "isolating", d)),
26800
+ content: Re(be(c, "content", d)),
26801
+ marks: Re(be(c, "marks", d)),
26802
+ group: Re(be(c, "group", d)),
26803
+ inline: Re(be(c, "inline", d)),
26804
+ atom: Re(be(c, "atom", d)),
26805
+ selectable: Re(be(c, "selectable", d)),
26806
+ draggable: Re(be(c, "draggable", d)),
26807
+ code: Re(be(c, "code", d)),
26808
+ whitespace: Re(be(c, "whitespace", d)),
26809
+ linebreakReplacement: Re(be(c, "linebreakReplacement", d)),
26810
+ defining: Re(be(c, "defining", d)),
26811
+ isolating: Re(be(c, "isolating", d)),
26794
26812
  attrs: Object.fromEntries(u.map((y) => {
26795
26813
  var x;
26796
26814
  return [y.name, { default: (x = y == null ? void 0 : y.attribute) === null || x === void 0 ? void 0 : x.default }];
26797
26815
  }))
26798
- }), h = Ie(be(c, "parseHTML", d));
26816
+ }), h = Re(be(c, "parseHTML", d));
26799
26817
  h && (p.parseDOM = h.map((y) => ih(y, u)));
26800
26818
  const m = be(c, "renderHTML", d);
26801
26819
  m && (p.toDOM = (y) => m({
@@ -26818,16 +26836,16 @@ function uR(t, e) {
26818
26836
  };
26819
26837
  }, {}), p = oh({
26820
26838
  ...f,
26821
- inclusive: Ie(be(c, "inclusive", d)),
26822
- excludes: Ie(be(c, "excludes", d)),
26823
- group: Ie(be(c, "group", d)),
26824
- spanning: Ie(be(c, "spanning", d)),
26825
- code: Ie(be(c, "code", d)),
26839
+ inclusive: Re(be(c, "inclusive", d)),
26840
+ excludes: Re(be(c, "excludes", d)),
26841
+ group: Re(be(c, "group", d)),
26842
+ spanning: Re(be(c, "spanning", d)),
26843
+ code: Re(be(c, "code", d)),
26826
26844
  attrs: Object.fromEntries(u.map((g) => {
26827
26845
  var y;
26828
26846
  return [g.name, { default: (y = g == null ? void 0 : g.attribute) === null || y === void 0 ? void 0 : y.default }];
26829
26847
  }))
26830
- }), h = Ie(be(c, "parseHTML", d));
26848
+ }), h = Re(be(c, "parseHTML", d));
26831
26849
  h && (p.parseDOM = h.map((g) => ih(g, u)));
26832
26850
  const m = be(c, "renderHTML", d);
26833
26851
  return m && (p.toDOM = (g) => m({
@@ -27018,9 +27036,9 @@ class an {
27018
27036
  }, this.config = {
27019
27037
  ...this.config,
27020
27038
  ...e
27021
- }, this.name = this.config.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = Ie(be(this, "addOptions", {
27039
+ }, this.name = this.config.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = Re(be(this, "addOptions", {
27022
27040
  name: this.name
27023
- }))), this.storage = Ie(be(this, "addStorage", {
27041
+ }))), this.storage = Re(be(this, "addStorage", {
27024
27042
  name: this.name,
27025
27043
  options: this.options
27026
27044
  })) || {};
@@ -27037,9 +27055,9 @@ class an {
27037
27055
  }
27038
27056
  extend(e = {}) {
27039
27057
  const n = new an(e);
27040
- return n.parent = this, this.child = n, n.name = e.name ? e.name : n.parent.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`), n.options = Ie(be(n, "addOptions", {
27058
+ return n.parent = this, this.child = n, n.name = e.name ? e.name : n.parent.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`), n.options = Re(be(n, "addOptions", {
27041
27059
  name: n.name
27042
- })), n.storage = Ie(be(n, "addStorage", {
27060
+ })), n.storage = Re(be(n, "addStorage", {
27043
27061
  name: n.name,
27044
27062
  options: n.options
27045
27063
  })), n;
@@ -27364,7 +27382,7 @@ class fi {
27364
27382
  editor: this.editor,
27365
27383
  type: Fl(e.name, this.schema)
27366
27384
  };
27367
- e.type === "mark" && (!((n = Ie(be(e, "keepOnSplit", r))) !== null && n !== void 0) || n) && this.splittableMarks.push(e.name);
27385
+ e.type === "mark" && (!((n = Re(be(e, "keepOnSplit", r))) !== null && n !== void 0) || n) && this.splittableMarks.push(e.name);
27368
27386
  const i = be(e, "onBeforeCreate", r), o = be(e, "onCreate", r), s = be(e, "onUpdate", r), a = be(e, "onSelectionUpdate", r), l = be(e, "onTransaction", r), c = be(e, "onFocus", r), u = be(e, "onBlur", r), d = be(e, "onDestroy", r);
27369
27387
  i && this.editor.on("beforeCreate", i), o && this.editor.on("create", o), s && this.editor.on("update", s), a && this.editor.on("selectionUpdate", a), l && this.editor.on("transaction", l), c && this.editor.on("focus", c), u && this.editor.on("blur", u), d && this.editor.on("destroy", d);
27370
27388
  });
@@ -27378,9 +27396,9 @@ class Tt {
27378
27396
  }, this.config = {
27379
27397
  ...this.config,
27380
27398
  ...e
27381
- }, this.name = this.config.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = Ie(be(this, "addOptions", {
27399
+ }, this.name = this.config.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = Re(be(this, "addOptions", {
27382
27400
  name: this.name
27383
- }))), this.storage = Ie(be(this, "addStorage", {
27401
+ }))), this.storage = Re(be(this, "addStorage", {
27384
27402
  name: this.name,
27385
27403
  options: this.options
27386
27404
  })) || {};
@@ -27397,9 +27415,9 @@ class Tt {
27397
27415
  }
27398
27416
  extend(e = {}) {
27399
27417
  const n = new Tt({ ...this.config, ...e });
27400
- return n.parent = this, this.child = n, n.name = e.name ? e.name : n.parent.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`), n.options = Ie(be(n, "addOptions", {
27418
+ return n.parent = this, this.child = n, n.name = e.name ? e.name : n.parent.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`), n.options = Re(be(n, "addOptions", {
27401
27419
  name: n.name
27402
- })), n.storage = Ie(be(n, "addStorage", {
27420
+ })), n.storage = Re(be(n, "addStorage", {
27403
27421
  name: n.name,
27404
27422
  options: n.options
27405
27423
  })), n;
@@ -28022,7 +28040,7 @@ function ch(t, e) {
28022
28040
  name: r.name,
28023
28041
  options: r.options,
28024
28042
  storage: r.storage
28025
- }, o = Ie(be(r, "group", i));
28043
+ }, o = Re(be(r, "group", i));
28026
28044
  return typeof o != "string" ? !1 : o.split(" ").includes("list");
28027
28045
  }
28028
28046
  function bd(t, { checkChildren: e = !0, ignoreWhitespace: n = !1 } = {}) {
@@ -29110,7 +29128,7 @@ function Ai(t) {
29110
29128
  return new Ua({
29111
29129
  find: t.find,
29112
29130
  handler: ({ state: e, range: n, match: r }) => {
29113
- const i = Ie(t.getAttributes, void 0, r);
29131
+ const i = Re(t.getAttributes, void 0, r);
29114
29132
  if (i === !1 || i === null)
29115
29133
  return null;
29116
29134
  const { tr: o } = e, s = r[r.length - 1], a = r[0];
@@ -29129,7 +29147,7 @@ function ej(t) {
29129
29147
  return new Ua({
29130
29148
  find: t.find,
29131
29149
  handler: ({ state: e, range: n, match: r }) => {
29132
- const i = Ie(t.getAttributes, void 0, r) || {}, { tr: o } = e, s = n.from;
29150
+ const i = Re(t.getAttributes, void 0, r) || {}, { tr: o } = e, s = n.from;
29133
29151
  let a = n.to;
29134
29152
  const l = t.type.create(i);
29135
29153
  if (r[1]) {
@@ -29150,7 +29168,7 @@ function nu(t) {
29150
29168
  return new Ua({
29151
29169
  find: t.find,
29152
29170
  handler: ({ state: e, range: n, match: r }) => {
29153
- const i = e.doc.resolve(n.from), o = Ie(t.getAttributes, void 0, r) || {};
29171
+ const i = e.doc.resolve(n.from), o = Re(t.getAttributes, void 0, r) || {};
29154
29172
  if (!i.node(-1).canReplaceWith(i.index(-1), i.indexAfter(-1), t.type))
29155
29173
  return null;
29156
29174
  e.tr.delete(n.from, n.to).setBlockType(n.from, n.from, t.type, o);
@@ -29161,7 +29179,7 @@ function Ao(t) {
29161
29179
  return new Ua({
29162
29180
  find: t.find,
29163
29181
  handler: ({ state: e, range: n, match: r, chain: i }) => {
29164
- const o = Ie(t.getAttributes, void 0, r) || {}, s = e.tr.delete(n.from, n.to), l = s.doc.resolve(n.from).blockRange(), c = l && Xu(l, t.type, o);
29182
+ const o = Re(t.getAttributes, void 0, r) || {}, s = e.tr.delete(n.from, n.to), l = s.doc.resolve(n.from).blockRange(), c = l && Xu(l, t.type, o);
29165
29183
  if (!c)
29166
29184
  return null;
29167
29185
  if (s.wrap(l, c), t.keepMarks && t.editor) {
@@ -29188,9 +29206,9 @@ let un = class ru {
29188
29206
  }, this.config = {
29189
29207
  ...this.config,
29190
29208
  ...e
29191
- }, this.name = this.config.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = Ie(be(this, "addOptions", {
29209
+ }, this.name = this.config.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = Re(be(this, "addOptions", {
29192
29210
  name: this.name
29193
- }))), this.storage = Ie(be(this, "addStorage", {
29211
+ }))), this.storage = Re(be(this, "addStorage", {
29194
29212
  name: this.name,
29195
29213
  options: this.options
29196
29214
  })) || {};
@@ -29207,9 +29225,9 @@ let un = class ru {
29207
29225
  }
29208
29226
  extend(e = {}) {
29209
29227
  const n = new ru(e);
29210
- return n.parent = this, this.child = n, n.name = e.name ? e.name : n.parent.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`), n.options = Ie(be(n, "addOptions", {
29228
+ return n.parent = this, this.child = n, n.name = e.name ? e.name : n.parent.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`), n.options = Re(be(n, "addOptions", {
29211
29229
  name: n.name
29212
- })), n.storage = Ie(be(n, "addStorage", {
29230
+ })), n.storage = Re(be(n, "addStorage", {
29213
29231
  name: n.name,
29214
29232
  options: n.options
29215
29233
  })), n;
@@ -29219,7 +29237,7 @@ function Kr(t) {
29219
29237
  return new gR({
29220
29238
  find: t.find,
29221
29239
  handler: ({ state: e, range: n, match: r, pasteEvent: i }) => {
29222
- const o = Ie(t.getAttributes, void 0, r, i);
29240
+ const o = Re(t.getAttributes, void 0, r, i);
29223
29241
  if (o === !1 || o === null)
29224
29242
  return null;
29225
29243
  const { tr: s } = e, a = r[r.length - 1], l = r[0];
@@ -29660,7 +29678,7 @@ class gj {
29660
29678
  }
29661
29679
  function yj(t) {
29662
29680
  var e;
29663
- const [n] = Ne(() => new gj(t.editor)), r = hj.useSyncExternalStoreWithSelector(n.subscribe, n.getSnapshot, n.getServerSnapshot, t.selector, (e = t.equalityFn) !== null && e !== void 0 ? e : dj);
29681
+ const [n] = Ie(() => new gj(t.editor)), r = hj.useSyncExternalStoreWithSelector(n.subscribe, n.getSnapshot, n.getServerSnapshot, t.selector, (e = t.equalityFn) !== null && e !== void 0 ? e : dj);
29664
29682
  return mj(() => n.watch(t.editor), [t.editor, n]), Fh(r), r;
29665
29683
  }
29666
29684
  const mh = process.env.NODE_ENV !== "production", su = typeof window > "u", vj = su || !!(typeof window < "u" && window.next);
@@ -29804,7 +29822,7 @@ class xd {
29804
29822
  function bj(t = {}, e = []) {
29805
29823
  const n = Oe(t);
29806
29824
  n.current = t;
29807
- const [r] = Ne(() => new xd(n)), i = Ya.useSyncExternalStore(r.subscribe, r.getEditor, r.getServerSnapshot);
29825
+ const [r] = Ie(() => new xd(n)), i = Ya.useSyncExternalStore(r.subscribe, r.getEditor, r.getServerSnapshot);
29808
29826
  return Fh(i), Be(r.onRender(e)), yj({
29809
29827
  editor: i,
29810
29828
  selector: ({ transactionNumber: o }) => t.shouldRerenderOnTransaction === !1 ? null : t.immediatelyRender && o === 0 ? 0 : o + 1
@@ -31570,7 +31588,7 @@ const w_ = Tt.create({
31570
31588
  storage: t.storage
31571
31589
  };
31572
31590
  return {
31573
- allowGapCursor: (e = Ie(be(t, "allowGapCursor", n))) !== null && e !== void 0 ? e : null
31591
+ allowGapCursor: (e = Re(be(t, "allowGapCursor", n))) !== null && e !== void 0 ? e : null
31574
31592
  };
31575
31593
  }
31576
31594
  }), S_ = un.create({