@scbt-ecom/ui 0.30.0 → 0.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui.js +160 -158
- package/dist/ui.js.map +1 -1
- package/package.json +1 -1
package/dist/ui.js
CHANGED
|
@@ -6,7 +6,7 @@ var pe = (t, e, n) => (yc(t, e, "read from private field"), n ? n.call(t) : e.ge
|
|
|
6
6
|
import { j as T, c as Wo, R as _E, B as mx, I as Be, e as Tt, f as Kr, g as gx, u as In, h as zE, i as tt, k as Iu, D as WE, l as HE, m as $E, n as XE, o as Ip, p as $i, q as YE, r as bx, s as Tu, t as UE, A as ZE, H as JE, d as KE, v as Au, w as qE, x as ca, y as QE, z as vx, E as xc, F as Cc, G as eI, J as tI, K as nI, M as rI, N as iI, O as yx, a as Mu, _ as Xi, L as oI } from "./CustomLink-CKaoTS8A.js";
|
|
7
7
|
import { C as qU, P as QU, S as eZ, b as tZ } from "./CustomLink-CKaoTS8A.js";
|
|
8
8
|
import * as B from "react";
|
|
9
|
-
import oe, { forwardRef as gt, createContext as st, useContext as _e, useState as De, useEffect as ze, useMemo as Pe, useCallback as ve, useRef as Ce, useId as
|
|
9
|
+
import oe, { forwardRef as gt, createContext as st, useContext as _e, useState as De, useEffect as ze, useMemo as Pe, useCallback as ve, useRef as Ce, useId as Yt, useInsertionEffect as xx, Children as aI, isValidElement as Cx, useLayoutEffect as Ho, Fragment as tn, createElement as Tp, Component as wx, cloneElement as sI, useReducer as Ap, useSyncExternalStore as lI, createRef as uI, useDebugValue as Sx, memo as Fn, useImperativeHandle as cI } from "react";
|
|
10
10
|
import { c as z } from "./cn-DIfn7EPB.js";
|
|
11
11
|
import { t as kt, c as Dn, g as Om, m as dI, a as kx, b as Ex, d as fI, e as pI, f as Ix, h as Tx, j as Mp, i as Op, l as hI, k as mI, n as gI, w as bI, s as Gd, o as wc, q as ea, r as vI, u as ta, v as yI, x as xI, z as Sc, V as Pm, p as Ax } from "./parse-C_80L3wX.js";
|
|
12
12
|
import { u as CI } from "./useDevice-L83kSsN7.js";
|
|
@@ -1081,11 +1081,11 @@ function na(t, e) {
|
|
|
1081
1081
|
const n = e % 10, r = e % 100;
|
|
1082
1082
|
return n === 1 && r !== 11 ? t.singularNominative.replace("{{count}}", String(e)) : n >= 2 && n <= 4 && (r < 10 || r > 20) ? t.singularGenitive.replace("{{count}}", String(e)) : t.pluralGenitive.replace("{{count}}", String(e));
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1084
|
+
function Kt(t) {
|
|
1085
1085
|
return (e, n) => n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? t.future ? na(t.future, e) : "через " + na(t.regular, e) : t.past ? na(t.past, e) : na(t.regular, e) + " назад" : na(t.regular, e);
|
|
1086
1086
|
}
|
|
1087
1087
|
const iT = {
|
|
1088
|
-
lessThanXSeconds:
|
|
1088
|
+
lessThanXSeconds: Kt({
|
|
1089
1089
|
regular: {
|
|
1090
1090
|
one: "меньше секунды",
|
|
1091
1091
|
singularNominative: "меньше {{count}} секунды",
|
|
@@ -1099,7 +1099,7 @@ const iT = {
|
|
|
1099
1099
|
pluralGenitive: "меньше, чем через {{count}} секунд"
|
|
1100
1100
|
}
|
|
1101
1101
|
}),
|
|
1102
|
-
xSeconds:
|
|
1102
|
+
xSeconds: Kt({
|
|
1103
1103
|
regular: {
|
|
1104
1104
|
singularNominative: "{{count}} секунда",
|
|
1105
1105
|
singularGenitive: "{{count}} секунды",
|
|
@@ -1117,7 +1117,7 @@ const iT = {
|
|
|
1117
1117
|
}
|
|
1118
1118
|
}),
|
|
1119
1119
|
halfAMinute: (t, e) => e != null && e.addSuffix ? e.comparison && e.comparison > 0 ? "через полминуты" : "полминуты назад" : "полминуты",
|
|
1120
|
-
lessThanXMinutes:
|
|
1120
|
+
lessThanXMinutes: Kt({
|
|
1121
1121
|
regular: {
|
|
1122
1122
|
one: "меньше минуты",
|
|
1123
1123
|
singularNominative: "меньше {{count}} минуты",
|
|
@@ -1131,7 +1131,7 @@ const iT = {
|
|
|
1131
1131
|
pluralGenitive: "меньше, чем через {{count}} минут"
|
|
1132
1132
|
}
|
|
1133
1133
|
}),
|
|
1134
|
-
xMinutes:
|
|
1134
|
+
xMinutes: Kt({
|
|
1135
1135
|
regular: {
|
|
1136
1136
|
singularNominative: "{{count}} минута",
|
|
1137
1137
|
singularGenitive: "{{count}} минуты",
|
|
@@ -1148,7 +1148,7 @@ const iT = {
|
|
|
1148
1148
|
pluralGenitive: "через {{count}} минут"
|
|
1149
1149
|
}
|
|
1150
1150
|
}),
|
|
1151
|
-
aboutXHours:
|
|
1151
|
+
aboutXHours: Kt({
|
|
1152
1152
|
regular: {
|
|
1153
1153
|
singularNominative: "около {{count}} часа",
|
|
1154
1154
|
singularGenitive: "около {{count}} часов",
|
|
@@ -1160,21 +1160,21 @@ const iT = {
|
|
|
1160
1160
|
pluralGenitive: "приблизительно через {{count}} часов"
|
|
1161
1161
|
}
|
|
1162
1162
|
}),
|
|
1163
|
-
xHours:
|
|
1163
|
+
xHours: Kt({
|
|
1164
1164
|
regular: {
|
|
1165
1165
|
singularNominative: "{{count}} час",
|
|
1166
1166
|
singularGenitive: "{{count}} часа",
|
|
1167
1167
|
pluralGenitive: "{{count}} часов"
|
|
1168
1168
|
}
|
|
1169
1169
|
}),
|
|
1170
|
-
xDays:
|
|
1170
|
+
xDays: Kt({
|
|
1171
1171
|
regular: {
|
|
1172
1172
|
singularNominative: "{{count}} день",
|
|
1173
1173
|
singularGenitive: "{{count}} дня",
|
|
1174
1174
|
pluralGenitive: "{{count}} дней"
|
|
1175
1175
|
}
|
|
1176
1176
|
}),
|
|
1177
|
-
aboutXWeeks:
|
|
1177
|
+
aboutXWeeks: Kt({
|
|
1178
1178
|
regular: {
|
|
1179
1179
|
singularNominative: "около {{count}} недели",
|
|
1180
1180
|
singularGenitive: "около {{count}} недель",
|
|
@@ -1186,14 +1186,14 @@ const iT = {
|
|
|
1186
1186
|
pluralGenitive: "приблизительно через {{count}} недель"
|
|
1187
1187
|
}
|
|
1188
1188
|
}),
|
|
1189
|
-
xWeeks:
|
|
1189
|
+
xWeeks: Kt({
|
|
1190
1190
|
regular: {
|
|
1191
1191
|
singularNominative: "{{count}} неделя",
|
|
1192
1192
|
singularGenitive: "{{count}} недели",
|
|
1193
1193
|
pluralGenitive: "{{count}} недель"
|
|
1194
1194
|
}
|
|
1195
1195
|
}),
|
|
1196
|
-
aboutXMonths:
|
|
1196
|
+
aboutXMonths: Kt({
|
|
1197
1197
|
regular: {
|
|
1198
1198
|
singularNominative: "около {{count}} месяца",
|
|
1199
1199
|
singularGenitive: "около {{count}} месяцев",
|
|
@@ -1205,14 +1205,14 @@ const iT = {
|
|
|
1205
1205
|
pluralGenitive: "приблизительно через {{count}} месяцев"
|
|
1206
1206
|
}
|
|
1207
1207
|
}),
|
|
1208
|
-
xMonths:
|
|
1208
|
+
xMonths: Kt({
|
|
1209
1209
|
regular: {
|
|
1210
1210
|
singularNominative: "{{count}} месяц",
|
|
1211
1211
|
singularGenitive: "{{count}} месяца",
|
|
1212
1212
|
pluralGenitive: "{{count}} месяцев"
|
|
1213
1213
|
}
|
|
1214
1214
|
}),
|
|
1215
|
-
aboutXYears:
|
|
1215
|
+
aboutXYears: Kt({
|
|
1216
1216
|
regular: {
|
|
1217
1217
|
singularNominative: "около {{count}} года",
|
|
1218
1218
|
singularGenitive: "около {{count}} лет",
|
|
@@ -1224,14 +1224,14 @@ const iT = {
|
|
|
1224
1224
|
pluralGenitive: "приблизительно через {{count}} лет"
|
|
1225
1225
|
}
|
|
1226
1226
|
}),
|
|
1227
|
-
xYears:
|
|
1227
|
+
xYears: Kt({
|
|
1228
1228
|
regular: {
|
|
1229
1229
|
singularNominative: "{{count}} год",
|
|
1230
1230
|
singularGenitive: "{{count}} года",
|
|
1231
1231
|
pluralGenitive: "{{count}} лет"
|
|
1232
1232
|
}
|
|
1233
1233
|
}),
|
|
1234
|
-
overXYears:
|
|
1234
|
+
overXYears: Kt({
|
|
1235
1235
|
regular: {
|
|
1236
1236
|
singularNominative: "больше {{count}} года",
|
|
1237
1237
|
singularGenitive: "больше {{count}} лет",
|
|
@@ -1243,7 +1243,7 @@ const iT = {
|
|
|
1243
1243
|
pluralGenitive: "больше, чем через {{count}} лет"
|
|
1244
1244
|
}
|
|
1245
1245
|
}),
|
|
1246
|
-
almostXYears:
|
|
1246
|
+
almostXYears: Kt({
|
|
1247
1247
|
regular: {
|
|
1248
1248
|
singularNominative: "почти {{count}} год",
|
|
1249
1249
|
singularGenitive: "почти {{count}} года",
|
|
@@ -2649,8 +2649,8 @@ function cM(t) {
|
|
|
2649
2649
|
const { from: An, to: ri } = D;
|
|
2650
2650
|
Te[Pn.range_start] = !!(An && ri && i.isSameDay(Gt, An)), Te[Pn.range_end] = !!(An && ri && i.isSameDay(Gt, ri)), Te[Pn.range_middle] = cr(D, Gt, !0, i);
|
|
2651
2651
|
}
|
|
2652
|
-
const no = TA(Te, x, t.modifiersStyles), Qo = GT(Te, a, t.modifiersClassNames),
|
|
2653
|
-
return oe.createElement(e.Day, { key: `${i.format(Gt, "yyyy-MM-dd")}_${i.format(rt.displayMonth, "yyyy-MM")}`, day: rt, modifiers: Te, className: Qo.join(" "), style: no, role: "gridcell", "aria-selected": Te.selected || void 0, "aria-label":
|
|
2652
|
+
const no = TA(Te, x, t.modifiersStyles), Qo = GT(Te, a, t.modifiersClassNames), Jt = !re && !Te.hidden ? $(Gt, Te, i.options, i) : void 0;
|
|
2653
|
+
return oe.createElement(e.Day, { key: `${i.format(Gt, "yyyy-MM-dd")}_${i.format(rt.displayMonth, "yyyy-MM")}`, day: rt, modifiers: Te, className: Qo.join(" "), style: no, role: "gridcell", "aria-selected": Te.selected || void 0, "aria-label": Jt, "data-day": i.format(Gt, "yyyy-MM-dd"), "data-month": rt.outside ? i.format(Gt, "yyyy-MM") : void 0, "data-selected": Te.selected || void 0, "data-disabled": Te.disabled || void 0, "data-hidden": Te.hidden || void 0, "data-outside": rt.outside || void 0, "data-focused": Te.focused || void 0, "data-today": Te.today || void 0 }, !Te.hidden && re ? oe.createElement(e.DayButton, { className: a[Ae.DayButton], style: x == null ? void 0 : x[Ae.DayButton], type: "button", day: rt, modifiers: Te, disabled: Te.disabled || void 0, tabIndex: W(rt) ? 0 : -1, "aria-label": q(Gt, Te, i.options, i), onClick: we(rt, Te), onBlur: Z(rt, Te), onFocus: ae(rt, Te), onKeyDown: ee(rt, Te), onMouseEnter: K(rt, Te), onMouseLeave: Q(rt, Te) }, y(Gt, i.options, i)) : !Te.hidden && y(rt.date, i.options, i));
|
|
2654
2654
|
})
|
|
2655
2655
|
)))
|
|
2656
2656
|
)
|
|
@@ -2690,7 +2690,7 @@ class dM extends B.Component {
|
|
|
2690
2690
|
}
|
|
2691
2691
|
}
|
|
2692
2692
|
function fM({ children: t, isPresent: e }) {
|
|
2693
|
-
const n =
|
|
2693
|
+
const n = Yt(), r = Ce(null), i = Ce({
|
|
2694
2694
|
width: 0,
|
|
2695
2695
|
height: 0,
|
|
2696
2696
|
top: 0,
|
|
@@ -2716,7 +2716,7 @@ function fM({ children: t, isPresent: e }) {
|
|
|
2716
2716
|
}, [e]), T.jsx(dM, { isPresent: e, childRef: r, sizeRef: i, children: B.cloneElement(t, { ref: r }) });
|
|
2717
2717
|
}
|
|
2718
2718
|
const pM = ({ children: t, initial: e, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: o, mode: a }) => {
|
|
2719
|
-
const s = Fp(hM), l =
|
|
2719
|
+
const s = Fp(hM), l = Yt(), u = ve((d) => {
|
|
2720
2720
|
s.set(d, !0);
|
|
2721
2721
|
for (const f of s.values())
|
|
2722
2722
|
if (!f)
|
|
@@ -2751,7 +2751,7 @@ function Ux(t = !0) {
|
|
|
2751
2751
|
const e = _e(Ru);
|
|
2752
2752
|
if (e === null)
|
|
2753
2753
|
return [!0, null];
|
|
2754
|
-
const { isPresent: n, onExitComplete: r, register: i } = e, o =
|
|
2754
|
+
const { isPresent: n, onExitComplete: r, register: i } = e, o = Yt();
|
|
2755
2755
|
ze(() => {
|
|
2756
2756
|
t && i(o);
|
|
2757
2757
|
}, [t]);
|
|
@@ -3595,7 +3595,7 @@ function oO(t, e, n, r) {
|
|
|
3595
3595
|
}
|
|
3596
3596
|
function aO(t = !1) {
|
|
3597
3597
|
return (n, r, i, { latestValues: o }, a) => {
|
|
3598
|
-
const l = (Wp(n) ? oO : iO)(r, o, a, n), u = CM(r, typeof n == "string", t), c = n !==
|
|
3598
|
+
const l = (Wp(n) ? oO : iO)(r, o, a, n), u = CM(r, typeof n == "string", t), c = n !== tn ? { ...u, ...l, ref: i } : {}, { children: d } = r, f = Pe(() => Ht(d) ? d.get() : d, [d]);
|
|
3599
3599
|
return Tp(n, {
|
|
3600
3600
|
...c,
|
|
3601
3601
|
children: f
|
|
@@ -7472,7 +7472,7 @@ class NR extends w1 {
|
|
|
7472
7472
|
}
|
|
7473
7473
|
}
|
|
7474
7474
|
const FR = (t, e) => Wp(t) ? new NR(e) : new RR(e, {
|
|
7475
|
-
allowProjection: t !==
|
|
7475
|
+
allowProjection: t !== tn
|
|
7476
7476
|
}), jR = /* @__PURE__ */ sO({
|
|
7477
7477
|
...oD,
|
|
7478
7478
|
...ER,
|
|
@@ -8711,23 +8711,23 @@ var _N = (t) => typeof t == "function", Il = (t, e) => _N(t) ? t(e) : t, zN = /*
|
|
|
8711
8711
|
}, $N = (t, e = "blank", n) => ({ createdAt: Date.now(), visible: !0, dismissed: !1, type: e, ariaProps: { role: "status", "aria-live": "polite" }, message: t, pauseDuration: 0, ...n, id: (n == null ? void 0 : n.id) || zN() }), ys = (t) => (e, n) => {
|
|
8712
8712
|
let r = $N(e, t, n);
|
|
8713
8713
|
return Ji({ type: 2, toast: r }), r.id;
|
|
8714
|
-
},
|
|
8715
|
-
|
|
8716
|
-
|
|
8717
|
-
|
|
8718
|
-
|
|
8719
|
-
|
|
8714
|
+
}, en = (t, e) => ys("blank")(t, e);
|
|
8715
|
+
en.error = ys("error");
|
|
8716
|
+
en.success = ys("success");
|
|
8717
|
+
en.loading = ys("loading");
|
|
8718
|
+
en.custom = ys("custom");
|
|
8719
|
+
en.dismiss = (t) => {
|
|
8720
8720
|
Ji({ type: 3, toastId: t });
|
|
8721
8721
|
};
|
|
8722
|
-
|
|
8723
|
-
|
|
8724
|
-
let r =
|
|
8722
|
+
en.remove = (t) => Ji({ type: 4, toastId: t });
|
|
8723
|
+
en.promise = (t, e, n) => {
|
|
8724
|
+
let r = en.loading(e.loading, { ...n, ...n == null ? void 0 : n.loading });
|
|
8725
8725
|
return typeof t == "function" && (t = t()), t.then((i) => {
|
|
8726
8726
|
let o = e.success ? Il(e.success, i) : void 0;
|
|
8727
|
-
return o ?
|
|
8727
|
+
return o ? en.success(o, { id: r, ...n, ...n == null ? void 0 : n.success }) : en.dismiss(r), i;
|
|
8728
8728
|
}).catch((i) => {
|
|
8729
8729
|
let o = e.error ? Il(e.error, i) : void 0;
|
|
8730
|
-
o ?
|
|
8730
|
+
o ? en.error(o, { id: r, ...n, ...n == null ? void 0 : n.error }) : en.dismiss(r);
|
|
8731
8731
|
}), t;
|
|
8732
8732
|
};
|
|
8733
8733
|
var XN = (t, e) => {
|
|
@@ -8748,10 +8748,10 @@ var XN = (t, e) => {
|
|
|
8748
8748
|
if (s.duration === 1 / 0) return;
|
|
8749
8749
|
let l = (s.duration || 0) + s.pauseDuration - (o - s.createdAt);
|
|
8750
8750
|
if (l < 0) {
|
|
8751
|
-
s.visible &&
|
|
8751
|
+
s.visible && en.dismiss(s.id);
|
|
8752
8752
|
return;
|
|
8753
8753
|
}
|
|
8754
|
-
return setTimeout(() =>
|
|
8754
|
+
return setTimeout(() => en.dismiss(s.id), l);
|
|
8755
8755
|
});
|
|
8756
8756
|
return () => {
|
|
8757
8757
|
a.forEach((s) => s && clearTimeout(s));
|
|
@@ -8979,7 +8979,7 @@ var y2 = ({ id: t, className: e, style: n, onHeightUpdate: r, children: i }) =>
|
|
|
8979
8979
|
let c = u.position || e, d = l.calculateOffset(u, { reverseOrder: t, gutter: r, defaultPosition: e }), f = x2(c, d);
|
|
8980
8980
|
return B.createElement(y2, { id: u.id, key: u.id, onHeightUpdate: l.updateHeight, className: u.visible ? C2 : "", style: f }, u.type === "custom" ? Il(u.message, u) : i ? i(u) : B.createElement(v2, { toast: u, position: c }));
|
|
8981
8981
|
}));
|
|
8982
|
-
}, Tl =
|
|
8982
|
+
}, Tl = en;
|
|
8983
8983
|
const S2 = Wo(
|
|
8984
8984
|
"flex justify-between items-center gap-4 shadow-sm p-4 rounded-sm max-w-[328px] desktop:max-w-[576px]",
|
|
8985
8985
|
{
|
|
@@ -9229,7 +9229,7 @@ const S2 = Wo(
|
|
|
9229
9229
|
onKeyDownIcon: c,
|
|
9230
9230
|
...d
|
|
9231
9231
|
}) => {
|
|
9232
|
-
const f =
|
|
9232
|
+
const f = Yt();
|
|
9233
9233
|
return /* @__PURE__ */ T.jsx(
|
|
9234
9234
|
jn,
|
|
9235
9235
|
{
|
|
@@ -11030,7 +11030,7 @@ function Vs(t, e = {}, n, r, i) {
|
|
|
11030
11030
|
for (let h of p) d[`data-${h}`] = "";
|
|
11031
11031
|
}
|
|
11032
11032
|
}
|
|
11033
|
-
if (o ===
|
|
11033
|
+
if (o === tn && (Object.keys(ci(l)).length > 0 || Object.keys(ci(d)).length > 0)) if (!Cx(c) || Array.isArray(c) && c.length > 1) {
|
|
11034
11034
|
if (Object.keys(ci(l)).length > 0) throw new Error(['Passing props on "Fragment"!', "", `The current component <${r} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(ci(l)).concat(Object.keys(ci(d))).map((f) => ` - ${f}`).join(`
|
|
11035
11035
|
`), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".', "Render a single element as the child so that we can forward the props onto that element."].map((f) => ` - ${f}`).join(`
|
|
11036
11036
|
`)].join(`
|
|
@@ -11040,7 +11040,7 @@ function Vs(t, e = {}, n, r, i) {
|
|
|
11040
11040
|
for (let b in d) b in g && delete d[b];
|
|
11041
11041
|
return sI(c, Object.assign({}, g, d, u, { ref: i(zF(c), u.ref) }, m));
|
|
11042
11042
|
}
|
|
11043
|
-
return Tp(o, Object.assign({}, Wc(l, ["ref"]), o !==
|
|
11043
|
+
return Tp(o, Object.assign({}, Wc(l, ["ref"]), o !== tn && u, o !== tn && d), c);
|
|
11044
11044
|
}
|
|
11045
11045
|
function GF() {
|
|
11046
11046
|
let t = Ce([]), e = ve((n) => {
|
|
@@ -11201,14 +11201,14 @@ function tj() {
|
|
|
11201
11201
|
}
|
|
11202
11202
|
let nj = "p";
|
|
11203
11203
|
function rj(t, e) {
|
|
11204
|
-
let n =
|
|
11204
|
+
let n = Yt(), r = Sh(), { id: i = `headlessui-description-${n}`, ...o } = t, a = HC(), s = Cr(e);
|
|
11205
11205
|
ft(() => a.register(i), [i, a.register]);
|
|
11206
11206
|
let l = r || !1, u = Pe(() => ({ ...a.slot, disabled: l }), [a.slot, l]), c = { ref: s, ...a.props, id: i };
|
|
11207
11207
|
return Bn()({ ourProps: c, theirProps: o, slot: u, defaultTag: nj, name: a.name || "Description" });
|
|
11208
11208
|
}
|
|
11209
11209
|
let ij = Vn(rj);
|
|
11210
11210
|
Object.assign(ij, {});
|
|
11211
|
-
var
|
|
11211
|
+
var Qt = ((t) => (t.Space = " ", t.Enter = "Enter", t.Escape = "Escape", t.Backspace = "Backspace", t.Delete = "Delete", t.ArrowLeft = "ArrowLeft", t.ArrowUp = "ArrowUp", t.ArrowRight = "ArrowRight", t.ArrowDown = "ArrowDown", t.Home = "Home", t.End = "End", t.PageUp = "PageUp", t.PageDown = "PageDown", t.Tab = "Tab", t))(Qt || {});
|
|
11212
11212
|
let Ju = st(null);
|
|
11213
11213
|
Ju.displayName = "LabelContext";
|
|
11214
11214
|
function $C() {
|
|
@@ -11237,7 +11237,7 @@ function oj({ inherit: t = !1 } = {}) {
|
|
|
11237
11237
|
let aj = "label";
|
|
11238
11238
|
function sj(t, e) {
|
|
11239
11239
|
var n;
|
|
11240
|
-
let r =
|
|
11240
|
+
let r = Yt(), i = $C(), o = zC(), a = Sh(), { id: s = `headlessui-label-${r}`, htmlFor: l = o ?? ((n = i.props) == null ? void 0 : n.htmlFor), passive: u = !1, ...c } = t, d = Cr(e);
|
|
11241
11241
|
ft(() => i.register(s), [s, i.register]);
|
|
11242
11242
|
let f = Ne((g) => {
|
|
11243
11243
|
let b = g.currentTarget;
|
|
@@ -11812,7 +11812,7 @@ let Tj = new Ij(() => YC(() => [], { ADD(t) {
|
|
|
11812
11812
|
return n.splice(e, 1), n;
|
|
11813
11813
|
} }));
|
|
11814
11814
|
function Th(t, e) {
|
|
11815
|
-
let n = Tj.get(e), r =
|
|
11815
|
+
let n = Tj.get(e), r = Yt(), i = UC(n);
|
|
11816
11816
|
if (ft(() => {
|
|
11817
11817
|
if (t) return n.dispatch("ADD", r), () => n.dispatch("REMOVE", r);
|
|
11818
11818
|
}, [n, t]), !t) return !1;
|
|
@@ -12784,7 +12784,7 @@ function LB(t) {
|
|
|
12784
12784
|
e || n !== null && o(n.current);
|
|
12785
12785
|
}, [n, o, e]), i;
|
|
12786
12786
|
}
|
|
12787
|
-
let nw =
|
|
12787
|
+
let nw = tn, GB = Vn(function(t, e) {
|
|
12788
12788
|
let n = t, r = Ce(null), i = Cr(ej((d) => {
|
|
12789
12789
|
r.current = d;
|
|
12790
12790
|
}), e), o = qu(r), a = LB(r), [s] = De(() => {
|
|
@@ -12806,7 +12806,7 @@ function _B(t, e) {
|
|
|
12806
12806
|
let n = Cr(e), { enabled: r = !0, ...i } = t, o = Bn();
|
|
12807
12807
|
return r ? oe.createElement(GB, { ...i, ref: n }) : o({ ourProps: { ref: n }, theirProps: i, slot: {}, defaultTag: nw, name: "Portal" });
|
|
12808
12808
|
}
|
|
12809
|
-
let zB =
|
|
12809
|
+
let zB = tn, rw = st(null);
|
|
12810
12810
|
function WB(t, e) {
|
|
12811
12811
|
let { target: n, ...r } = t, i = { ref: Cr(e) }, o = Bn();
|
|
12812
12812
|
return oe.createElement(rw.Provider, { value: n }, o({ ourProps: i, theirProps: r, defaultTag: zB, name: "Popover.Group" }));
|
|
@@ -12904,7 +12904,7 @@ function QB(t) {
|
|
|
12904
12904
|
u && e.activationTrigger !== 0 && e.activeOptionIndex !== null && n.length > e.activeOptionIndex && o.scrollToIndex(e.activeOptionIndex);
|
|
12905
12905
|
} }, l.map((u) => {
|
|
12906
12906
|
var c;
|
|
12907
|
-
return oe.createElement(
|
|
12907
|
+
return oe.createElement(tn, { key: u.key }, oe.cloneElement((c = t.children) == null ? void 0 : c.call(t, { ...t.slot, option: n[u.index] }), { key: `${a}-${u.key}`, "data-index": u.index, "aria-setsize": n.length, "aria-posinset": u.index + 1, style: { position: "absolute", top: 0, left: 0, transform: `translateY(${u.start}px)`, overflowAnchor: "none" } }));
|
|
12908
12908
|
})));
|
|
12909
12909
|
}
|
|
12910
12910
|
let Za = st(null);
|
|
@@ -12920,7 +12920,7 @@ function Uo(t) {
|
|
|
12920
12920
|
function eV(t, e) {
|
|
12921
12921
|
return hr(e.type, qB, t, e);
|
|
12922
12922
|
}
|
|
12923
|
-
let tV =
|
|
12923
|
+
let tV = tn;
|
|
12924
12924
|
function nV(t, e) {
|
|
12925
12925
|
var n, r;
|
|
12926
12926
|
let i = Sh(), { value: o, defaultValue: a, onChange: s, form: l, name: u, by: c, disabled: d = i || !1, onClose: f, __demoMode: p = !1, multiple: h = !1, immediate: m = !1, virtual: g = null, nullable: b, ...x } = t, w = HF(a), [y = h ? [] : void 0, v] = WF(o, s, w), [C, k] = Ap(eV, { dataRef: uI(), comboboxState: p ? 0 : 1, isTyping: !1, options: [], virtual: g ? { options: g.options, disabled: (n = g.disabled) != null ? n : () => !1 } : null, activeOptionIndex: null, activationTrigger: 2, inputElement: null, buttonElement: null, optionsElement: null, __demoMode: p }), S = Ce(!1), E = Ce({ static: !1, hold: !1 }), I = kj(c), A = Ne((Y) => g ? c === null ? g.options.indexOf(Y) : g.options.findIndex((ne) => I(ne, Y)) : C.options.findIndex((ne) => I(ne.dataRef.current.value, Y))), O = ve((Y) => hr(R.mode, { 1: () => y.some((ne) => I(ne, Y)), 0: () => I(y, Y) }), [y]), P = Ne((Y) => C.activeOptionIndex === A(Y)), R = Pe(() => ({ ...C, immediate: m, optionsPropsRef: E, value: y, defaultValue: w, disabled: d, mode: h ? 1 : 0, virtual: g ? C.virtual : null, get activeOptionIndex() {
|
|
@@ -12986,7 +12986,7 @@ function nV(t, e) {
|
|
|
12986
12986
|
let rV = "input";
|
|
12987
12987
|
function iV(t, e) {
|
|
12988
12988
|
var n, r, i, o, a;
|
|
12989
|
-
let s = Uo("Combobox.Input"), l = Es("Combobox.Input"), u =
|
|
12989
|
+
let s = Uo("Combobox.Input"), l = Es("Combobox.Input"), u = Yt(), c = zC(), { id: d = c || `headlessui-combobox-input-${u}`, onChange: f, displayValue: p, disabled: h = s.disabled || !1, autoFocus: m = !1, type: g = "text", ...b } = t, x = Ce(null), w = Cr(x, e, SB(), l.setInputElement), y = qu(s.inputElement), v = Ss(), C = Ne(() => {
|
|
12990
12990
|
l.onChange(null), s.optionsElement && (s.optionsElement.scrollTop = 0), l.goToOption(Ct.Nothing);
|
|
12991
12991
|
}), k = Pe(() => {
|
|
12992
12992
|
var N;
|
|
@@ -13017,7 +13017,7 @@ function iV(t, e) {
|
|
|
13017
13017
|
});
|
|
13018
13018
|
}), A = Ne((N) => {
|
|
13019
13019
|
switch (l.setIsTyping(!0), N.key) {
|
|
13020
|
-
case
|
|
13020
|
+
case Qt.Enter:
|
|
13021
13021
|
if (s.comboboxState !== 0 || S.current) return;
|
|
13022
13022
|
if (N.preventDefault(), N.stopPropagation(), s.activeOptionIndex === null) {
|
|
13023
13023
|
l.closeCombobox();
|
|
@@ -13025,25 +13025,25 @@ function iV(t, e) {
|
|
|
13025
13025
|
}
|
|
13026
13026
|
l.selectActiveOption(), s.mode === 0 && l.closeCombobox();
|
|
13027
13027
|
break;
|
|
13028
|
-
case
|
|
13028
|
+
case Qt.ArrowDown:
|
|
13029
13029
|
return N.preventDefault(), N.stopPropagation(), hr(s.comboboxState, { 0: () => l.goToOption(Ct.Next), 1: () => l.openCombobox() });
|
|
13030
|
-
case
|
|
13030
|
+
case Qt.ArrowUp:
|
|
13031
13031
|
return N.preventDefault(), N.stopPropagation(), hr(s.comboboxState, { 0: () => l.goToOption(Ct.Previous), 1: () => {
|
|
13032
13032
|
mi(() => l.openCombobox()), s.value || l.goToOption(Ct.Last);
|
|
13033
13033
|
} });
|
|
13034
|
-
case
|
|
13034
|
+
case Qt.Home:
|
|
13035
13035
|
if (N.shiftKey) break;
|
|
13036
13036
|
return N.preventDefault(), N.stopPropagation(), l.goToOption(Ct.First);
|
|
13037
|
-
case
|
|
13037
|
+
case Qt.PageUp:
|
|
13038
13038
|
return N.preventDefault(), N.stopPropagation(), l.goToOption(Ct.First);
|
|
13039
|
-
case
|
|
13039
|
+
case Qt.End:
|
|
13040
13040
|
if (N.shiftKey) break;
|
|
13041
13041
|
return N.preventDefault(), N.stopPropagation(), l.goToOption(Ct.Last);
|
|
13042
|
-
case
|
|
13042
|
+
case Qt.PageDown:
|
|
13043
13043
|
return N.preventDefault(), N.stopPropagation(), l.goToOption(Ct.Last);
|
|
13044
|
-
case
|
|
13044
|
+
case Qt.Escape:
|
|
13045
13045
|
return s.comboboxState !== 0 ? void 0 : (N.preventDefault(), s.optionsElement && !s.optionsPropsRef.current.static && N.stopPropagation(), s.mode === 0 && s.value === null && C(), l.closeCombobox());
|
|
13046
|
-
case
|
|
13046
|
+
case Qt.Tab:
|
|
13047
13047
|
if (s.comboboxState !== 0) return;
|
|
13048
13048
|
s.mode === 0 && s.activationTrigger !== 1 && l.selectActiveOption(), l.closeCombobox();
|
|
13049
13049
|
break;
|
|
@@ -13066,19 +13066,19 @@ function iV(t, e) {
|
|
|
13066
13066
|
let oV = "button";
|
|
13067
13067
|
function aV(t, e) {
|
|
13068
13068
|
var n;
|
|
13069
|
-
let r = Uo("Combobox.Button"), i = Es("Combobox.Button"), o = Cr(e, i.setButtonElement), a =
|
|
13069
|
+
let r = Uo("Combobox.Button"), i = Es("Combobox.Button"), o = Cr(e, i.setButtonElement), a = Yt(), { id: s = `headlessui-combobox-button-${a}`, disabled: l = r.disabled || !1, autoFocus: u = !1, ...c } = t, d = qC(r.inputElement), f = Ne((k) => {
|
|
13070
13070
|
switch (k.key) {
|
|
13071
|
-
case
|
|
13072
|
-
case
|
|
13071
|
+
case Qt.Space:
|
|
13072
|
+
case Qt.Enter:
|
|
13073
13073
|
k.preventDefault(), k.stopPropagation(), r.comboboxState === 1 && mi(() => i.openCombobox()), d();
|
|
13074
13074
|
return;
|
|
13075
|
-
case
|
|
13075
|
+
case Qt.ArrowDown:
|
|
13076
13076
|
k.preventDefault(), k.stopPropagation(), r.comboboxState === 1 && (mi(() => i.openCombobox()), r.value || i.goToOption(Ct.First)), d();
|
|
13077
13077
|
return;
|
|
13078
|
-
case
|
|
13078
|
+
case Qt.ArrowUp:
|
|
13079
13079
|
k.preventDefault(), k.stopPropagation(), r.comboboxState === 1 && (mi(() => i.openCombobox()), r.value || i.goToOption(Ct.Last)), d();
|
|
13080
13080
|
return;
|
|
13081
|
-
case
|
|
13081
|
+
case Qt.Escape:
|
|
13082
13082
|
if (r.comboboxState !== 0) return;
|
|
13083
13083
|
k.preventDefault(), r.optionsElement && !r.optionsPropsRef.current.static && k.stopPropagation(), mi(() => i.closeCombobox()), d();
|
|
13084
13084
|
return;
|
|
@@ -13093,7 +13093,7 @@ function aV(t, e) {
|
|
|
13093
13093
|
let sV = "div", lV = mf.RenderStrategy | mf.Static;
|
|
13094
13094
|
function uV(t, e) {
|
|
13095
13095
|
var n, r, i;
|
|
13096
|
-
let o =
|
|
13096
|
+
let o = Yt(), { id: a = `headlessui-combobox-options-${o}`, hold: s = !1, anchor: l, portal: u = !1, modal: c = !0, transition: d = !1, ...f } = t, p = Uo("Combobox.Options"), h = Es("Combobox.Options"), m = wB(l);
|
|
13097
13097
|
m && (u = !0);
|
|
13098
13098
|
let [g, b] = EB(m), [x, w] = De(null), y = kB(), v = Cr(e, m ? g : null, h.setOptionsElement, w), C = qu(p.optionsElement), k = OB(), [S, E] = Kj(d, x, k !== null ? (k & Ua.Open) === Ua.Open : p.comboboxState === 0);
|
|
13099
13099
|
Mj(S, p.inputElement, h.closeCombobox);
|
|
@@ -13125,7 +13125,7 @@ function uV(t, e) {
|
|
|
13125
13125
|
let cV = "div";
|
|
13126
13126
|
function dV(t, e) {
|
|
13127
13127
|
var n, r, i, o;
|
|
13128
|
-
let a = Uo("Combobox.Option"), s = Es("Combobox.Option"), l =
|
|
13128
|
+
let a = Uo("Combobox.Option"), s = Es("Combobox.Option"), l = Yt(), { id: u = `headlessui-combobox-option-${l}`, value: c, disabled: d = (i = (r = (n = a.virtual) == null ? void 0 : n.disabled) == null ? void 0 : r.call(n, c)) != null ? i : !1, order: f = null, ...p } = t, h = qC(a.inputElement), m = a.virtual ? a.activeOptionIndex === a.calculateIndex(c) : a.activeOptionIndex === null ? !1 : ((o = a.options[a.activeOptionIndex]) == null ? void 0 : o.id) === u, g = a.isSelected(c), b = Ce(null), x = Qi({ disabled: d, value: c, domRef: b, order: f }), w = _e(iw), y = Cr(e, b, w ? w.measureElement : null), v = Ne(() => {
|
|
13129
13129
|
s.setIsTyping(!1), s.onChange(c);
|
|
13130
13130
|
});
|
|
13131
13131
|
ft(() => s.registerOption(u, x), [x, u]);
|
|
@@ -13416,14 +13416,14 @@ function SV(t, e) {
|
|
|
13416
13416
|
}
|
|
13417
13417
|
};
|
|
13418
13418
|
}
|
|
13419
|
-
var an, $e, ps,
|
|
13419
|
+
var an, $e, ps, qt, Ei, To, jr, Hn, hs, Ao, Mo, Ii, Ti, Br, Oo, qe, ma, Sf, kf, Ef, If, Tf, Af, Mf, sw, hx, kV = (hx = class extends Fh {
|
|
13420
13420
|
constructor(e, n) {
|
|
13421
13421
|
super();
|
|
13422
13422
|
lt(this, qe);
|
|
13423
13423
|
lt(this, an);
|
|
13424
13424
|
lt(this, $e);
|
|
13425
13425
|
lt(this, ps);
|
|
13426
|
-
lt(this,
|
|
13426
|
+
lt(this, qt);
|
|
13427
13427
|
lt(this, Ei);
|
|
13428
13428
|
lt(this, To);
|
|
13429
13429
|
lt(this, jr);
|
|
@@ -13490,10 +13490,10 @@ var an, $e, ps, Qt, Ei, To, jr, Hn, hs, Ao, Mo, Ii, Ti, Br, Oo, qe, ma, Sf, kf,
|
|
|
13490
13490
|
}
|
|
13491
13491
|
getOptimisticResult(e) {
|
|
13492
13492
|
const n = pe(this, an).getQueryCache().build(pe(this, an), e), r = this.createResult(n, e);
|
|
13493
|
-
return IV(this, r) && (He(this,
|
|
13493
|
+
return IV(this, r) && (He(this, qt, r), He(this, To, this.options), He(this, Ei, pe(this, $e).state)), r;
|
|
13494
13494
|
}
|
|
13495
13495
|
getCurrentResult() {
|
|
13496
|
-
return pe(this,
|
|
13496
|
+
return pe(this, qt);
|
|
13497
13497
|
}
|
|
13498
13498
|
trackResult(e, n) {
|
|
13499
13499
|
const r = {};
|
|
@@ -13524,11 +13524,11 @@ var an, $e, ps, Qt, Ei, To, jr, Hn, hs, Ao, Mo, Ii, Ti, Br, Oo, qe, ma, Sf, kf,
|
|
|
13524
13524
|
return xt(this, qe, ma).call(this, {
|
|
13525
13525
|
...e,
|
|
13526
13526
|
cancelRefetch: e.cancelRefetch ?? !0
|
|
13527
|
-
}).then(() => (this.updateResult(), pe(this,
|
|
13527
|
+
}).then(() => (this.updateResult(), pe(this, qt)));
|
|
13528
13528
|
}
|
|
13529
13529
|
createResult(e, n) {
|
|
13530
13530
|
var S;
|
|
13531
|
-
const r = pe(this, $e), i = this.options, o = pe(this,
|
|
13531
|
+
const r = pe(this, $e), i = this.options, o = pe(this, qt), a = pe(this, Ei), s = pe(this, To), u = e !== r ? e.state : pe(this, ps), { state: c } = e;
|
|
13532
13532
|
let d = { ...c }, f = !1, p;
|
|
13533
13533
|
if (n._optimisticResults) {
|
|
13534
13534
|
const E = this.hasListeners(), I = !E && Gb(e, n), A = E && _b(e, r, n, i);
|
|
@@ -13618,10 +13618,10 @@ var an, $e, ps, Qt, Ei, To, jr, Hn, hs, Ao, Mo, Ii, Ti, Br, Oo, qe, ma, Sf, kf,
|
|
|
13618
13618
|
return k;
|
|
13619
13619
|
}
|
|
13620
13620
|
updateResult(e) {
|
|
13621
|
-
const n = pe(this,
|
|
13621
|
+
const n = pe(this, qt), r = this.createResult(pe(this, $e), this.options);
|
|
13622
13622
|
if (He(this, Ei, pe(this, $e).state), He(this, To, this.options), pe(this, Ei).data !== void 0 && He(this, Mo, pe(this, $e)), wf(r, n))
|
|
13623
13623
|
return;
|
|
13624
|
-
He(this,
|
|
13624
|
+
He(this, qt, r);
|
|
13625
13625
|
const i = {}, o = () => {
|
|
13626
13626
|
if (!n)
|
|
13627
13627
|
return !0;
|
|
@@ -13631,9 +13631,9 @@ var an, $e, ps, Qt, Ei, To, jr, Hn, hs, Ao, Mo, Ii, Ti, Br, Oo, qe, ma, Sf, kf,
|
|
|
13631
13631
|
const l = new Set(
|
|
13632
13632
|
s ?? pe(this, Oo)
|
|
13633
13633
|
);
|
|
13634
|
-
return this.options.throwOnError && l.add("error"), Object.keys(pe(this,
|
|
13634
|
+
return this.options.throwOnError && l.add("error"), Object.keys(pe(this, qt)).some((u) => {
|
|
13635
13635
|
const c = u;
|
|
13636
|
-
return pe(this,
|
|
13636
|
+
return pe(this, qt)[c] !== n[c] && l.has(c);
|
|
13637
13637
|
});
|
|
13638
13638
|
};
|
|
13639
13639
|
(e == null ? void 0 : e.listeners) !== !1 && o() && (i.listeners = !0), xt(this, qe, sw).call(this, { ...i, ...e });
|
|
@@ -13641,7 +13641,7 @@ var an, $e, ps, Qt, Ei, To, jr, Hn, hs, Ao, Mo, Ii, Ti, Br, Oo, qe, ma, Sf, kf,
|
|
|
13641
13641
|
onQueryUpdate() {
|
|
13642
13642
|
this.updateResult(), this.hasListeners() && xt(this, qe, If).call(this);
|
|
13643
13643
|
}
|
|
13644
|
-
}, an = new WeakMap(), $e = new WeakMap(), ps = new WeakMap(),
|
|
13644
|
+
}, an = new WeakMap(), $e = new WeakMap(), ps = new WeakMap(), qt = new WeakMap(), Ei = new WeakMap(), To = new WeakMap(), jr = new WeakMap(), Hn = new WeakMap(), hs = new WeakMap(), Ao = new WeakMap(), Mo = new WeakMap(), Ii = new WeakMap(), Ti = new WeakMap(), Br = new WeakMap(), Oo = new WeakMap(), qe = new WeakSet(), ma = function(e) {
|
|
13645
13645
|
xt(this, qe, Mf).call(this);
|
|
13646
13646
|
let n = pe(this, $e).fetch(
|
|
13647
13647
|
this.options,
|
|
@@ -13654,11 +13654,11 @@ var an, $e, ps, Qt, Ei, To, jr, Hn, hs, Ao, Mo, Ii, Ti, Br, Oo, qe, ma, Sf, kf,
|
|
|
13654
13654
|
this.options.staleTime,
|
|
13655
13655
|
pe(this, $e)
|
|
13656
13656
|
);
|
|
13657
|
-
if (Ja || pe(this,
|
|
13657
|
+
if (Ja || pe(this, qt).isStale || !Nb(e))
|
|
13658
13658
|
return;
|
|
13659
|
-
const r = mV(pe(this,
|
|
13659
|
+
const r = mV(pe(this, qt).dataUpdatedAt, e) + 1;
|
|
13660
13660
|
He(this, Ii, setTimeout(() => {
|
|
13661
|
-
pe(this,
|
|
13661
|
+
pe(this, qt).isStale || this.updateResult();
|
|
13662
13662
|
}, r));
|
|
13663
13663
|
}, kf = function() {
|
|
13664
13664
|
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(pe(this, $e)) : this.options.refetchInterval) ?? !1;
|
|
@@ -13681,7 +13681,7 @@ var an, $e, ps, Qt, Ei, To, jr, Hn, hs, Ao, Mo, Ii, Ti, Br, Oo, qe, ma, Sf, kf,
|
|
|
13681
13681
|
}, sw = function(e) {
|
|
13682
13682
|
aw.batch(() => {
|
|
13683
13683
|
e.listeners && this.listeners.forEach((n) => {
|
|
13684
|
-
n(pe(this,
|
|
13684
|
+
n(pe(this, qt));
|
|
13685
13685
|
}), pe(this, an).getQueryCache().notify({
|
|
13686
13686
|
query: pe(this, $e),
|
|
13687
13687
|
type: "observerResultsUpdated"
|
|
@@ -16292,7 +16292,7 @@ var L4 = process.env.NODE_ENV === "production" ? {
|
|
|
16292
16292
|
});
|
|
16293
16293
|
}
|
|
16294
16294
|
return V;
|
|
16295
|
-
}, [C, r, i, h, m, g, b, S, s, y, O]), R = Se(
|
|
16295
|
+
}, [C, r, i, h, m, g, b, S, s, y, O]), R = Se(tn, null, Se("span", {
|
|
16296
16296
|
id: "aria-selection"
|
|
16297
16297
|
}, E), Se("span", {
|
|
16298
16298
|
id: "aria-focused"
|
|
@@ -16301,7 +16301,7 @@ var L4 = process.env.NODE_ENV === "production" ? {
|
|
|
16301
16301
|
}, A), Se("span", {
|
|
16302
16302
|
id: "aria-guidance"
|
|
16303
16303
|
}, P));
|
|
16304
|
-
return Se(
|
|
16304
|
+
return Se(tn, null, Se(ov, {
|
|
16305
16305
|
id: u
|
|
16306
16306
|
}, O && R), Se(ov, {
|
|
16307
16307
|
"aria-live": k,
|
|
@@ -16740,7 +16740,7 @@ function nG(t) {
|
|
|
16740
16740
|
}), d = function(p) {
|
|
16741
16741
|
u(p), c(p);
|
|
16742
16742
|
};
|
|
16743
|
-
return Se(
|
|
16743
|
+
return Se(tn, null, n && Se("div", {
|
|
16744
16744
|
onClick: eG,
|
|
16745
16745
|
css: tG
|
|
16746
16746
|
}), e(d));
|
|
@@ -21134,7 +21134,7 @@ class xo {
|
|
|
21134
21134
|
}
|
|
21135
21135
|
}
|
|
21136
21136
|
const rd = /* @__PURE__ */ Object.create(null);
|
|
21137
|
-
class
|
|
21137
|
+
class Ut {
|
|
21138
21138
|
/**
|
|
21139
21139
|
Get the step map that represents the changes made by this step,
|
|
21140
21140
|
and which can be used to transform between positions in the old
|
|
@@ -21217,7 +21217,7 @@ function $h(t, e, n) {
|
|
|
21217
21217
|
}
|
|
21218
21218
|
return se.fromArray(r);
|
|
21219
21219
|
}
|
|
21220
|
-
class Vr extends
|
|
21220
|
+
class Vr extends Ut {
|
|
21221
21221
|
/**
|
|
21222
21222
|
Create a mark step.
|
|
21223
21223
|
*/
|
|
@@ -21255,8 +21255,8 @@ class Vr extends Zt {
|
|
|
21255
21255
|
return new Vr(n.from, n.to, e.markFromJSON(n.mark));
|
|
21256
21256
|
}
|
|
21257
21257
|
}
|
|
21258
|
-
|
|
21259
|
-
class Zn extends
|
|
21258
|
+
Ut.jsonID("addMark", Vr);
|
|
21259
|
+
class Zn extends Ut {
|
|
21260
21260
|
/**
|
|
21261
21261
|
Create a mark-removing step.
|
|
21262
21262
|
*/
|
|
@@ -21294,8 +21294,8 @@ class Zn extends Zt {
|
|
|
21294
21294
|
return new Zn(n.from, n.to, e.markFromJSON(n.mark));
|
|
21295
21295
|
}
|
|
21296
21296
|
}
|
|
21297
|
-
|
|
21298
|
-
class Lr extends
|
|
21297
|
+
Ut.jsonID("removeMark", Zn);
|
|
21298
|
+
class Lr extends Ut {
|
|
21299
21299
|
/**
|
|
21300
21300
|
Create a node mark step.
|
|
21301
21301
|
*/
|
|
@@ -21338,8 +21338,8 @@ class Lr extends Zt {
|
|
|
21338
21338
|
return new Lr(n.pos, e.markFromJSON(n.mark));
|
|
21339
21339
|
}
|
|
21340
21340
|
}
|
|
21341
|
-
|
|
21342
|
-
class jo extends
|
|
21341
|
+
Ut.jsonID("addNodeMark", Lr);
|
|
21342
|
+
class jo extends Ut {
|
|
21343
21343
|
/**
|
|
21344
21344
|
Create a mark-removing step.
|
|
21345
21345
|
*/
|
|
@@ -21373,8 +21373,8 @@ class jo extends Zt {
|
|
|
21373
21373
|
return new jo(n.pos, e.markFromJSON(n.mark));
|
|
21374
21374
|
}
|
|
21375
21375
|
}
|
|
21376
|
-
|
|
21377
|
-
class Mt extends
|
|
21376
|
+
Ut.jsonID("removeNodeMark", jo);
|
|
21377
|
+
class Mt extends Ut {
|
|
21378
21378
|
/**
|
|
21379
21379
|
The given `slice` should fit the 'gap' between `from` and
|
|
21380
21380
|
`to`—the depths must line up, and the surrounding nodes must be
|
|
@@ -21425,8 +21425,8 @@ class Mt extends Zt {
|
|
|
21425
21425
|
return new Mt(n.from, n.to, me.fromJSON(e, n.slice), !!n.structure);
|
|
21426
21426
|
}
|
|
21427
21427
|
}
|
|
21428
|
-
|
|
21429
|
-
class Ot extends
|
|
21428
|
+
Ut.jsonID("replace", Mt);
|
|
21429
|
+
class Ot extends Ut {
|
|
21430
21430
|
/**
|
|
21431
21431
|
Create a replace-around step with the given range and gap.
|
|
21432
21432
|
`insert` should be the point in the slice into which the content
|
|
@@ -21483,7 +21483,7 @@ class Ot extends Zt {
|
|
|
21483
21483
|
return new Ot(n.from, n.to, n.gapFrom, n.gapTo, me.fromJSON(e, n.slice), n.insert, !!n.structure);
|
|
21484
21484
|
}
|
|
21485
21485
|
}
|
|
21486
|
-
|
|
21486
|
+
Ut.jsonID("replaceAround", Ot);
|
|
21487
21487
|
function Hf(t, e, n) {
|
|
21488
21488
|
let r = t.resolve(e), i = n - e, o = r.depth;
|
|
21489
21489
|
for (; i > 0 && o > 0 && r.indexAfter(o) == r.node(o).childCount; )
|
|
@@ -22069,7 +22069,7 @@ function kS(t, e) {
|
|
|
22069
22069
|
}
|
|
22070
22070
|
return n;
|
|
22071
22071
|
}
|
|
22072
|
-
class wo extends
|
|
22072
|
+
class wo extends Ut {
|
|
22073
22073
|
/**
|
|
22074
22074
|
Construct an attribute step.
|
|
22075
22075
|
*/
|
|
@@ -22106,8 +22106,8 @@ class wo extends Zt {
|
|
|
22106
22106
|
return new wo(n.pos, n.attr, n.value);
|
|
22107
22107
|
}
|
|
22108
22108
|
}
|
|
22109
|
-
|
|
22110
|
-
class ns extends
|
|
22109
|
+
Ut.jsonID("attr", wo);
|
|
22110
|
+
class ns extends Ut {
|
|
22111
22111
|
/**
|
|
22112
22112
|
Construct an attribute step.
|
|
22113
22113
|
*/
|
|
@@ -22140,7 +22140,7 @@ class ns extends Zt {
|
|
|
22140
22140
|
return new ns(n.attr, n.value);
|
|
22141
22141
|
}
|
|
22142
22142
|
}
|
|
22143
|
-
|
|
22143
|
+
Ut.jsonID("docAttr", ns);
|
|
22144
22144
|
let Bo = class extends Error {
|
|
22145
22145
|
};
|
|
22146
22146
|
Bo = function t(e) {
|
|
@@ -28288,7 +28288,7 @@ class vo {
|
|
|
28288
28288
|
});
|
|
28289
28289
|
}
|
|
28290
28290
|
}
|
|
28291
|
-
class
|
|
28291
|
+
class Xt {
|
|
28292
28292
|
constructor(e = {}) {
|
|
28293
28293
|
this.type = "extension", this.name = "extension", this.parent = null, this.child = null, this.config = {
|
|
28294
28294
|
name: this.name,
|
|
@@ -28304,7 +28304,7 @@ class Yt {
|
|
|
28304
28304
|
})) || {};
|
|
28305
28305
|
}
|
|
28306
28306
|
static create(e = {}) {
|
|
28307
|
-
return new
|
|
28307
|
+
return new Xt(e);
|
|
28308
28308
|
}
|
|
28309
28309
|
configure(e = {}) {
|
|
28310
28310
|
const n = this.extend({
|
|
@@ -28314,7 +28314,7 @@ class Yt {
|
|
|
28314
28314
|
return n.name = this.name, n.parent = this.parent, n;
|
|
28315
28315
|
}
|
|
28316
28316
|
extend(e = {}) {
|
|
28317
|
-
const n = new
|
|
28317
|
+
const n = new Xt({ ...this.config, ...e });
|
|
28318
28318
|
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 = Ge(xe(n, "addOptions", {
|
|
28319
28319
|
name: n.name
|
|
28320
28320
|
})), n.storage = Ge(xe(n, "addStorage", {
|
|
@@ -28346,7 +28346,7 @@ function bk(t, e, n) {
|
|
|
28346
28346
|
function vk(t) {
|
|
28347
28347
|
return Object.fromEntries(Object.entries(t.nodes).filter(([, e]) => e.spec.toText).map(([e, n]) => [e, n.spec.toText]));
|
|
28348
28348
|
}
|
|
28349
|
-
const e9 =
|
|
28349
|
+
const e9 = Xt.create({
|
|
28350
28350
|
name: "clipboardTextSerializer",
|
|
28351
28351
|
addOptions() {
|
|
28352
28352
|
return {
|
|
@@ -29299,14 +29299,14 @@ var x5 = /* @__PURE__ */ Object.freeze({
|
|
|
29299
29299
|
wrapIn: v5,
|
|
29300
29300
|
wrapInList: y5
|
|
29301
29301
|
});
|
|
29302
|
-
const C5 =
|
|
29302
|
+
const C5 = Xt.create({
|
|
29303
29303
|
name: "commands",
|
|
29304
29304
|
addCommands() {
|
|
29305
29305
|
return {
|
|
29306
29306
|
...x5
|
|
29307
29307
|
};
|
|
29308
29308
|
}
|
|
29309
|
-
}), w5 =
|
|
29309
|
+
}), w5 = Xt.create({
|
|
29310
29310
|
name: "drop",
|
|
29311
29311
|
addProseMirrorPlugins() {
|
|
29312
29312
|
return [
|
|
@@ -29325,7 +29325,7 @@ const C5 = Yt.create({
|
|
|
29325
29325
|
})
|
|
29326
29326
|
];
|
|
29327
29327
|
}
|
|
29328
|
-
}), S5 =
|
|
29328
|
+
}), S5 = Xt.create({
|
|
29329
29329
|
name: "editable",
|
|
29330
29330
|
addProseMirrorPlugins() {
|
|
29331
29331
|
return [
|
|
@@ -29337,7 +29337,7 @@ const C5 = Yt.create({
|
|
|
29337
29337
|
})
|
|
29338
29338
|
];
|
|
29339
29339
|
}
|
|
29340
|
-
}), k5 =
|
|
29340
|
+
}), k5 = Xt.create({
|
|
29341
29341
|
name: "focusEvents",
|
|
29342
29342
|
addProseMirrorPlugins() {
|
|
29343
29343
|
const { editor: t } = this;
|
|
@@ -29361,7 +29361,7 @@ const C5 = Yt.create({
|
|
|
29361
29361
|
})
|
|
29362
29362
|
];
|
|
29363
29363
|
}
|
|
29364
|
-
}), E5 =
|
|
29364
|
+
}), E5 = Xt.create({
|
|
29365
29365
|
name: "keymap",
|
|
29366
29366
|
addKeyboardShortcuts() {
|
|
29367
29367
|
const t = () => this.editor.commands.first(({ commands: a }) => [
|
|
@@ -29437,7 +29437,7 @@ const C5 = Yt.create({
|
|
|
29437
29437
|
})
|
|
29438
29438
|
];
|
|
29439
29439
|
}
|
|
29440
|
-
}), I5 =
|
|
29440
|
+
}), I5 = Xt.create({
|
|
29441
29441
|
name: "paste",
|
|
29442
29442
|
addProseMirrorPlugins() {
|
|
29443
29443
|
return [
|
|
@@ -29455,7 +29455,7 @@ const C5 = Yt.create({
|
|
|
29455
29455
|
})
|
|
29456
29456
|
];
|
|
29457
29457
|
}
|
|
29458
|
-
}), T5 =
|
|
29458
|
+
}), T5 = Xt.create({
|
|
29459
29459
|
name: "tabindex",
|
|
29460
29460
|
addProseMirrorPlugins() {
|
|
29461
29461
|
return [
|
|
@@ -30775,7 +30775,7 @@ const tH = (t) => {
|
|
|
30775
30775
|
}
|
|
30776
30776
|
};
|
|
30777
30777
|
}
|
|
30778
|
-
}), rH =
|
|
30778
|
+
}), rH = Xt.create({
|
|
30779
30779
|
name: "color",
|
|
30780
30780
|
addOptions() {
|
|
30781
30781
|
return {
|
|
@@ -32254,7 +32254,7 @@ class $H {
|
|
|
32254
32254
|
(e.target == this.editorView.dom || !this.editorView.dom.contains(e.relatedTarget)) && this.setCursor(null);
|
|
32255
32255
|
}
|
|
32256
32256
|
}
|
|
32257
|
-
const XH =
|
|
32257
|
+
const XH = Xt.create({
|
|
32258
32258
|
name: "dropCursor",
|
|
32259
32259
|
addOptions() {
|
|
32260
32260
|
return {
|
|
@@ -32462,7 +32462,7 @@ function QH(t) {
|
|
|
32462
32462
|
let e = document.createElement("div");
|
|
32463
32463
|
return e.className = "ProseMirror-gapcursor", It.create(t.doc, [Sn.widget(t.selection.head, e, { key: "gapcursor" })]);
|
|
32464
32464
|
}
|
|
32465
|
-
const e$ =
|
|
32465
|
+
const e$ = Xt.create({
|
|
32466
32466
|
name: "gapCursor",
|
|
32467
32467
|
addProseMirrorPlugins() {
|
|
32468
32468
|
return [
|
|
@@ -32867,7 +32867,7 @@ function Vk(t, e) {
|
|
|
32867
32867
|
return !0;
|
|
32868
32868
|
};
|
|
32869
32869
|
}
|
|
32870
|
-
const Lk = Vk(!1, !0), Gk = Vk(!0, !0), d$ =
|
|
32870
|
+
const Lk = Vk(!1, !0), Gk = Vk(!0, !0), d$ = Xt.create({
|
|
32871
32871
|
name: "history",
|
|
32872
32872
|
addOptions() {
|
|
32873
32873
|
return {
|
|
@@ -33192,7 +33192,7 @@ const Lk = Vk(!1, !0), Gk = Vk(!0, !0), d$ = Yt.create({
|
|
|
33192
33192
|
}), E$ = Ln.create({
|
|
33193
33193
|
name: "text",
|
|
33194
33194
|
group: "inline"
|
|
33195
|
-
}), I$ =
|
|
33195
|
+
}), I$ = Xt.create({
|
|
33196
33196
|
name: "starterKit",
|
|
33197
33197
|
addExtensions() {
|
|
33198
33198
|
var t, e, n, r, i, o, a, s, l, u, c, d, f, p, h, m, g, b;
|
|
@@ -34243,7 +34243,7 @@ const YU = ({
|
|
|
34243
34243
|
);
|
|
34244
34244
|
}, Sm = gt(
|
|
34245
34245
|
({ label: t, value: e, invalid: n, disabled: r, classes: i, renderValues: o, attachmentProps: a, externalHandlers: s, onChange: l, ...u }, c) => {
|
|
34246
|
-
const d =
|
|
34246
|
+
const d = Yt(), { onChange: f, ...p } = s || {}, h = (m) => {
|
|
34247
34247
|
l && l(m), f && f(m);
|
|
34248
34248
|
};
|
|
34249
34249
|
return /* @__PURE__ */ T.jsxs(
|
|
@@ -37466,26 +37466,26 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
37466
37466
|
var Te = ee[Gt], no = !1;
|
|
37467
37467
|
Te.alternation = Te.alternation || ge, we(Te);
|
|
37468
37468
|
for (var Qo = 0; Qo < Q.length; Qo++) {
|
|
37469
|
-
var
|
|
37469
|
+
var Jt = Q[Qo];
|
|
37470
37470
|
if (typeof ye != "string" || Te.alternation !== void 0 && be.includes(Te.locator[Te.alternation].toString())) {
|
|
37471
|
-
if (Te.match.nativeDef ===
|
|
37472
|
-
no = !0, we(
|
|
37471
|
+
if (Te.match.nativeDef === Jt.match.nativeDef) {
|
|
37472
|
+
no = !0, we(Jt, Te);
|
|
37473
37473
|
break;
|
|
37474
37474
|
}
|
|
37475
|
-
if (w(Te,
|
|
37476
|
-
we(Te,
|
|
37475
|
+
if (w(Te, Jt, P)) {
|
|
37476
|
+
we(Te, Jt) && (no = !0, Q.splice(Q.indexOf(Jt), 0, Te));
|
|
37477
37477
|
break;
|
|
37478
37478
|
}
|
|
37479
|
-
if (w(
|
|
37480
|
-
we(
|
|
37479
|
+
if (w(Jt, Te, P)) {
|
|
37480
|
+
we(Jt, Te);
|
|
37481
37481
|
break;
|
|
37482
37482
|
}
|
|
37483
|
-
if (de(Te,
|
|
37484
|
-
ae(Te,
|
|
37483
|
+
if (de(Te, Jt)) {
|
|
37484
|
+
ae(Te, Jt) || R.inputmask.userOptions.keepStatic !== void 0 ? we(Te, Jt) && (no = !0, Q.splice(Q.indexOf(Jt), 0, Te)) : P.keepStatic = !0;
|
|
37485
37485
|
break;
|
|
37486
37486
|
}
|
|
37487
|
-
if (de(
|
|
37488
|
-
we(
|
|
37487
|
+
if (de(Jt, Te)) {
|
|
37488
|
+
we(Jt, Te);
|
|
37489
37489
|
break;
|
|
37490
37490
|
}
|
|
37491
37491
|
}
|
|
@@ -37997,8 +37997,8 @@ const UU = (t) => !!t && !Array.isArray(t), wX = ({
|
|
|
37997
37997
|
} };
|
|
37998
37998
|
}, $y = gt(
|
|
37999
37999
|
({ option: t, classes: e, displayValue: n, isMulti: r, motionProps: i, ...o }, a) => {
|
|
38000
|
-
const s = n ? n(t) : t.label, { item: l, helperText: u } = e || {}, c = r || t.attachment || t.helperText ? "div" :
|
|
38001
|
-
return /* @__PURE__ */ T.jsx(Nh, { ...o, as:
|
|
38000
|
+
const s = n ? n(t) : t.label, { item: l, helperText: u } = e || {}, c = r || t.attachment || t.helperText ? "div" : tn;
|
|
38001
|
+
return /* @__PURE__ */ T.jsx(Nh, { ...o, as: tn, disabled: t.disabled, value: t, children: ({ disabled: d, selected: f }) => /* @__PURE__ */ T.jsxs(
|
|
38002
38002
|
ji.li,
|
|
38003
38003
|
{
|
|
38004
38004
|
...i,
|
|
@@ -38007,15 +38007,17 @@ const UU = (t) => !!t && !Array.isArray(t), wX = ({
|
|
|
38007
38007
|
"unset-all-apply desk-body-regular-l cursor-pointer rounded-sm bg-color-white px-2",
|
|
38008
38008
|
"flex h-12 items-center gap-x-4 text-color-dark hover:bg-color-primary-tr-hover hover:text-color-primary-hover",
|
|
38009
38009
|
"[&:not(:disabled)]:cursor-pointer [&:not(:last-child)]:mb-1 [&>p]:hover:text-color-secondary",
|
|
38010
|
+
"data-[selected]:bg-color-primary-tr-hover data-[selected]:text-color-primary-hover",
|
|
38011
|
+
"data-[focus]:bg-color-primary-tr-hover data-[focus]:text-color-primary-hover",
|
|
38010
38012
|
{
|
|
38011
|
-
|
|
38013
|
+
// 'bg-color-primary-tr-hover text-color-primary-hover': selected || focus,
|
|
38012
38014
|
"pointer-events-none !text-color-disabled": d,
|
|
38013
38015
|
"!flex items-center gap-x-4": r || t.attachment && t.attachment.left
|
|
38014
38016
|
},
|
|
38015
38017
|
l
|
|
38016
38018
|
),
|
|
38017
38019
|
children: [
|
|
38018
|
-
r ? /* @__PURE__ */ T.jsx(
|
|
38020
|
+
r ? /* @__PURE__ */ T.jsx(Zt.CheckboxBase, { checked: f, disabled: d, classes: { root: "z-10" } }) : t.attachment && t.attachment.left && /* @__PURE__ */ T.jsx(qi, { ...t.attachment.left }),
|
|
38019
38021
|
/* @__PURE__ */ T.jsxs(c, { children: [
|
|
38020
38022
|
s,
|
|
38021
38023
|
t.helperText && /* @__PURE__ */ T.jsx(
|
|
@@ -38077,16 +38079,16 @@ const UU = (t) => !!t && !Array.isArray(t), wX = ({
|
|
|
38077
38079
|
onBlur: h == null ? void 0 : h.onBlur,
|
|
38078
38080
|
onFocus: h == null ? void 0 : h.onFocus,
|
|
38079
38081
|
onClick: h == null ? void 0 : h.onClick,
|
|
38080
|
-
value: s
|
|
38082
|
+
value: s || (n ? [] : ""),
|
|
38081
38083
|
onChange: C,
|
|
38082
38084
|
multiple: n,
|
|
38083
38085
|
children: ({ disabled: E, open: I, value: A }) => {
|
|
38084
38086
|
const O = () => n && r ? S(A) : r ? v : S(A);
|
|
38085
38087
|
return /* @__PURE__ */ T.jsxs("div", { className: z("relative w-full", b), children: [
|
|
38086
|
-
/* @__PURE__ */ T.jsx(xf, {
|
|
38088
|
+
/* @__PURE__ */ T.jsx(xf, { className: "w-full", children: /* @__PURE__ */ T.jsx(
|
|
38087
38089
|
Dh,
|
|
38088
38090
|
{
|
|
38089
|
-
as:
|
|
38091
|
+
as: Zt.InputBase,
|
|
38090
38092
|
label: t,
|
|
38091
38093
|
disabled: E,
|
|
38092
38094
|
readOnly: !r,
|
|
@@ -38228,7 +38230,7 @@ const cE = gt(
|
|
|
38228
38230
|
};
|
|
38229
38231
|
return /* @__PURE__ */ T.jsx("div", { ref: c, className: "relative w-full", children: /* @__PURE__ */ T.jsxs(Jx, { mode: "sync", children: [
|
|
38230
38232
|
/* @__PURE__ */ T.jsx(
|
|
38231
|
-
|
|
38233
|
+
Zt.MaskInput,
|
|
38232
38234
|
{
|
|
38233
38235
|
ref: a,
|
|
38234
38236
|
...o,
|
|
@@ -38320,7 +38322,7 @@ const kX = ({
|
|
|
38320
38322
|
!p || Array.isArray(p) || i && i(r ? r(p) : p.value);
|
|
38321
38323
|
}, f = Pe(() => c.find((p) => r ? r(p) : p.value === n), [c, r, n]);
|
|
38322
38324
|
return /* @__PURE__ */ T.jsx(
|
|
38323
|
-
|
|
38325
|
+
Zt.SelectBase,
|
|
38324
38326
|
{
|
|
38325
38327
|
...o,
|
|
38326
38328
|
options: c,
|
|
@@ -38850,7 +38852,7 @@ const UX = /* @__PURE__ */ T.jsx(
|
|
|
38850
38852
|
return /* @__PURE__ */ T.jsxs("div", { className: z("flex w-full flex-col gap-1", S), children: [
|
|
38851
38853
|
/* @__PURE__ */ T.jsxs("div", { className: z("relative w-full", V), children: [
|
|
38852
38854
|
/* @__PURE__ */ T.jsx(
|
|
38853
|
-
|
|
38855
|
+
Zt.InputBase,
|
|
38854
38856
|
{
|
|
38855
38857
|
label: d,
|
|
38856
38858
|
value: a,
|
|
@@ -38920,7 +38922,7 @@ const UX = /* @__PURE__ */ T.jsx(
|
|
|
38920
38922
|
}
|
|
38921
38923
|
), JX = Fn(
|
|
38922
38924
|
({ item: t, disabled: e, displayValue: n, returnValue: r, classes: i, className: o, invalid: a, ...s }) => {
|
|
38923
|
-
const l = n ? n(t) : t.label, u = r ? r(t) : t.value, c =
|
|
38925
|
+
const l = n ? n(t) : t.label, u = r ? r(t) : t.value, c = Yt();
|
|
38924
38926
|
return /* @__PURE__ */ T.jsx(Qk, { ...s, asChild: !0, disabled: e, value: u, id: c, children: /* @__PURE__ */ T.jsxs(
|
|
38925
38927
|
"li",
|
|
38926
38928
|
{
|
|
@@ -39005,7 +39007,7 @@ const UX = /* @__PURE__ */ T.jsx(
|
|
|
39005
39007
|
}
|
|
39006
39008
|
), IE = gt(
|
|
39007
39009
|
({ label: t, value: e, invalid: n, disabled: r, classes: i, attachmentProps: o, rows: a = 4, externalHandlers: s, onChange: l, ...u }, c) => {
|
|
39008
|
-
const d =
|
|
39010
|
+
const d = Yt(), { onChange: f, ...p } = s || {}, h = (m) => {
|
|
39009
39011
|
l && l(m), f && f(m);
|
|
39010
39012
|
};
|
|
39011
39013
|
return /* @__PURE__ */ T.jsxs(
|
|
@@ -41405,7 +41407,7 @@ var Tm = /* @__PURE__ */ gt(function(t, e) {
|
|
|
41405
41407
|
return {
|
|
41406
41408
|
open: o
|
|
41407
41409
|
};
|
|
41408
|
-
}, [o]), /* @__PURE__ */ oe.createElement(
|
|
41410
|
+
}, [o]), /* @__PURE__ */ oe.createElement(tn, null, n(ut(ut({}, a), {}, {
|
|
41409
41411
|
open: o
|
|
41410
41412
|
})));
|
|
41411
41413
|
});
|
|
@@ -41986,7 +41988,7 @@ const n6 = ({ dropzoneOptions: t, controlledFiles: e, onChange: n }) => {
|
|
|
41986
41988
|
/* @__PURE__ */ T.jsx(a6, { files: r, removeFile: u, classes: p, filesStatus: l })
|
|
41987
41989
|
] });
|
|
41988
41990
|
}
|
|
41989
|
-
),
|
|
41991
|
+
), Zt = {
|
|
41990
41992
|
InputBase: Sm,
|
|
41991
41993
|
SliderBase: ZX,
|
|
41992
41994
|
AutocompleteBase: kX,
|
|
@@ -42018,7 +42020,7 @@ const n6 = ({ dropzoneOptions: t, controlledFiles: e, onChange: n }) => {
|
|
|
42018
42020
|
shouldUnregister: a
|
|
42019
42021
|
}), { ref: d, ...f } = u, { error: p, invalid: h } = c, { container: m, message: g } = s || {};
|
|
42020
42022
|
return /* @__PURE__ */ T.jsxs("div", { className: z("w-full", m), children: [
|
|
42021
|
-
/* @__PURE__ */ T.jsx(
|
|
42023
|
+
/* @__PURE__ */ T.jsx(Zt.AutocompleteBase, { ...l, ...f, invalid: h }),
|
|
42022
42024
|
/* @__PURE__ */ T.jsx(yt, { className: g, text: (p == null ? void 0 : p.message) || i, intent: p ? "error" : "simple" })
|
|
42023
42025
|
] });
|
|
42024
42026
|
}, c6 = Fn(u6), d6 = ({
|
|
@@ -42041,11 +42043,11 @@ const n6 = ({ dropzoneOptions: t, controlledFiles: e, onChange: n }) => {
|
|
|
42041
42043
|
shouldUnregister: o,
|
|
42042
42044
|
defaultValue: a,
|
|
42043
42045
|
disabled: s
|
|
42044
|
-
}), { container: p, message: h, label: m, ...g } = e || {}, { value: b, onChange: x, ...w } = d, { invalid: y, error: v } = f, C =
|
|
42046
|
+
}), { container: p, message: h, label: m, ...g } = e || {}, { value: b, onChange: x, ...w } = d, { invalid: y, error: v } = f, C = Yt();
|
|
42045
42047
|
return /* @__PURE__ */ T.jsxs("div", { className: z("flex flex-col gap-y-2", n), children: [
|
|
42046
42048
|
/* @__PURE__ */ T.jsxs("div", { className: z("flex items-center justify-items-start gap-x-3", p), children: [
|
|
42047
42049
|
/* @__PURE__ */ T.jsx(
|
|
42048
|
-
|
|
42050
|
+
Zt.CheckboxBase,
|
|
42049
42051
|
{
|
|
42050
42052
|
id: C,
|
|
42051
42053
|
checked: b,
|
|
@@ -42423,7 +42425,7 @@ const B6 = ({ inputProps: t, classes: e, value: n, onChange: r, externalHandlers
|
|
|
42423
42425
|
};
|
|
42424
42426
|
return /* @__PURE__ */ T.jsxs("div", { ref: u, className: z("relative w-full", e == null ? void 0 : e.container), children: [
|
|
42425
42427
|
/* @__PURE__ */ T.jsx(
|
|
42426
|
-
|
|
42428
|
+
Zt.MaskInput,
|
|
42427
42429
|
{
|
|
42428
42430
|
mask: R6,
|
|
42429
42431
|
...t,
|
|
@@ -42525,7 +42527,7 @@ const B6 = ({ inputProps: t, classes: e, value: n, onChange: r, externalHandlers
|
|
|
42525
42527
|
}), { error: d, invalid: f, isTouched: p } = c, { message: h, container: m, ...g } = s || {};
|
|
42526
42528
|
return /* @__PURE__ */ T.jsxs("div", { className: z("w-full", m), children: [
|
|
42527
42529
|
/* @__PURE__ */ T.jsx(
|
|
42528
|
-
|
|
42530
|
+
Zt.InputBase,
|
|
42529
42531
|
{
|
|
42530
42532
|
...l,
|
|
42531
42533
|
...u,
|
|
@@ -42570,7 +42572,7 @@ const B6 = ({ inputProps: t, classes: e, value: n, onChange: r, externalHandlers
|
|
|
42570
42572
|
}), { error: d, invalid: f, isTouched: p } = c, { message: h, container: m, ...g } = a || {};
|
|
42571
42573
|
return /* @__PURE__ */ T.jsxs("div", { className: z("w-full", m), children: [
|
|
42572
42574
|
/* @__PURE__ */ T.jsx(
|
|
42573
|
-
|
|
42575
|
+
Zt.MaskInput,
|
|
42574
42576
|
{
|
|
42575
42577
|
...l,
|
|
42576
42578
|
...u,
|
|
@@ -42618,7 +42620,7 @@ const B6 = ({ inputProps: t, classes: e, value: n, onChange: r, externalHandlers
|
|
|
42618
42620
|
return /* @__PURE__ */ T.jsxs("div", { className: b, children: [
|
|
42619
42621
|
/* @__PURE__ */ T.jsx("p", { className: z("desk-body-regular-l w-full pb-4 text-color-dark", w), children: u }),
|
|
42620
42622
|
/* @__PURE__ */ T.jsx(
|
|
42621
|
-
|
|
42623
|
+
Zt.RadioGroupBase,
|
|
42622
42624
|
{
|
|
42623
42625
|
...c,
|
|
42624
42626
|
...h,
|
|
@@ -42670,7 +42672,7 @@ const Y6 = ({
|
|
|
42670
42672
|
}, C = Pe(() => Array.isArray(x) ? l.filter((k) => x.includes(s ? s(k) : k.value)) : l.find((k) => (s ? s(k) : k.value) === x), [l, s, x]);
|
|
42671
42673
|
return /* @__PURE__ */ T.jsxs("div", { className: z("w-full items-start gap-y-2", m), children: [
|
|
42672
42674
|
/* @__PURE__ */ T.jsx(
|
|
42673
|
-
|
|
42675
|
+
Zt.SelectBase,
|
|
42674
42676
|
{
|
|
42675
42677
|
...c,
|
|
42676
42678
|
...y,
|
|
@@ -42710,7 +42712,7 @@ const Y6 = ({
|
|
|
42710
42712
|
rules: i,
|
|
42711
42713
|
shouldUnregister: o
|
|
42712
42714
|
}), { invalid: c } = u, { container: d, ...f } = a || {};
|
|
42713
|
-
return /* @__PURE__ */ T.jsx("div", { className: z("w-full", d), children: /* @__PURE__ */ T.jsx(
|
|
42715
|
+
return /* @__PURE__ */ T.jsx("div", { className: z("w-full", d), children: /* @__PURE__ */ T.jsx(Zt.SliderBase, { ...s, ...l, classes: f, invalid: c }) });
|
|
42714
42716
|
}, J6 = Fn(Z6), K6 = ({
|
|
42715
42717
|
classes: t,
|
|
42716
42718
|
className: e,
|
|
@@ -42733,7 +42735,7 @@ const Y6 = ({
|
|
|
42733
42735
|
defaultValue: o,
|
|
42734
42736
|
disabled: a,
|
|
42735
42737
|
shouldUnregister: s
|
|
42736
|
-
}), { value: h, onChange: m, ...g } = p, { container: b, message: x, ...w } = t || {}, y =
|
|
42738
|
+
}), { value: h, onChange: m, ...g } = p, { container: b, message: x, ...w } = t || {}, y = Yt();
|
|
42737
42739
|
return /* @__PURE__ */ T.jsxs(
|
|
42738
42740
|
"div",
|
|
42739
42741
|
{
|
|
@@ -42747,7 +42749,7 @@ const Y6 = ({
|
|
|
42747
42749
|
),
|
|
42748
42750
|
children: [
|
|
42749
42751
|
/* @__PURE__ */ T.jsx(
|
|
42750
|
-
|
|
42752
|
+
Zt.SwitchBase,
|
|
42751
42753
|
{
|
|
42752
42754
|
...f,
|
|
42753
42755
|
...g,
|
|
@@ -42825,7 +42827,7 @@ const Y6 = ({
|
|
|
42825
42827
|
}), { error: d, invalid: f, isTouched: p } = c, { message: h, container: m, ...g } = t || {};
|
|
42826
42828
|
return /* @__PURE__ */ T.jsxs("div", { className: z("w-full", m), children: [
|
|
42827
42829
|
/* @__PURE__ */ T.jsx(
|
|
42828
|
-
|
|
42830
|
+
Zt.TextareaBase,
|
|
42829
42831
|
{
|
|
42830
42832
|
...l,
|
|
42831
42833
|
...u,
|
|
@@ -42868,7 +42870,7 @@ const Y6 = ({
|
|
|
42868
42870
|
shouldUnregister: i
|
|
42869
42871
|
}), { error: d, invalid: f } = c, { message: p, container: h, ...m } = o || {};
|
|
42870
42872
|
return /* @__PURE__ */ T.jsx(T.Fragment, { children: /* @__PURE__ */ T.jsxs("div", { className: z("w-full", h), children: [
|
|
42871
|
-
/* @__PURE__ */ T.jsx(
|
|
42873
|
+
/* @__PURE__ */ T.jsx(Zt.UploaderBase, { ...l, ...u, invalid: f, disabled: s, classes: m }),
|
|
42872
42874
|
/* @__PURE__ */ T.jsx(
|
|
42873
42875
|
yt,
|
|
42874
42876
|
{
|
|
@@ -42941,7 +42943,7 @@ export {
|
|
|
42941
42943
|
DU as SwitchControl,
|
|
42942
42944
|
wU as TabsSwitcher,
|
|
42943
42945
|
RU as TextareaControl,
|
|
42944
|
-
|
|
42946
|
+
Zt as Uncontrolled,
|
|
42945
42947
|
tZ as brandLogos,
|
|
42946
42948
|
oi as defaultClassNames,
|
|
42947
42949
|
Bc as formatDateToLocaleString,
|