@wojciechpiskorz/astroix 0.0.23 → 0.0.24
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/chrome.js +360 -356
- package/package.json +1 -1
package/dist/chrome.js
CHANGED
|
@@ -55464,8 +55464,17 @@ function LU(e, t, n) {
|
|
|
55464
55464
|
return eB(e) && !r ? e.toString(n) : new wH(e, r, n).toString(n);
|
|
55465
55465
|
}
|
|
55466
55466
|
//#endregion
|
|
55467
|
+
//#region src/client/components/ui/textarea.tsx
|
|
55468
|
+
function RU({ className: e, ...t }) {
|
|
55469
|
+
return /* @__PURE__ */ (0, g.jsx)("textarea", {
|
|
55470
|
+
"data-slot": "textarea",
|
|
55471
|
+
className: zi("flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40", e),
|
|
55472
|
+
...t
|
|
55473
|
+
});
|
|
55474
|
+
}
|
|
55475
|
+
//#endregion
|
|
55467
55476
|
//#region node_modules/@base-ui/utils/getDefaultFormSubmitter.mjs
|
|
55468
|
-
function
|
|
55477
|
+
function zU(e) {
|
|
55469
55478
|
if (!e) return null;
|
|
55470
55479
|
for (let t of e.elements) {
|
|
55471
55480
|
let e = t.tagName;
|
|
@@ -55478,7 +55487,7 @@ function RU(e) {
|
|
|
55478
55487
|
}
|
|
55479
55488
|
//#endregion
|
|
55480
55489
|
//#region node_modules/@base-ui/react/checkbox/utils/getCheckboxStateAttributesMapping.mjs
|
|
55481
|
-
function
|
|
55490
|
+
function BU(e) {
|
|
55482
55491
|
return {
|
|
55483
55492
|
checked(t) {
|
|
55484
55493
|
return e.indeterminate ? {} : t ? { "data-checked": "" } : { "data-unchecked": "" };
|
|
@@ -55488,24 +55497,24 @@ function zU(e) {
|
|
|
55488
55497
|
}
|
|
55489
55498
|
//#endregion
|
|
55490
55499
|
//#region node_modules/@base-ui/react/checkbox-group/CheckboxGroupContext.mjs
|
|
55491
|
-
var
|
|
55492
|
-
process.env.NODE_ENV !== "production" && (
|
|
55493
|
-
function
|
|
55494
|
-
return h.useContext(
|
|
55500
|
+
var VU = /*#__PURE__*/ h.createContext(void 0);
|
|
55501
|
+
process.env.NODE_ENV !== "production" && (VU.displayName = "CheckboxGroupContext");
|
|
55502
|
+
function HU() {
|
|
55503
|
+
return h.useContext(VU);
|
|
55495
55504
|
}
|
|
55496
55505
|
//#endregion
|
|
55497
55506
|
//#region node_modules/@base-ui/react/checkbox/root/CheckboxRootContext.mjs
|
|
55498
|
-
var
|
|
55499
|
-
process.env.NODE_ENV !== "production" && (
|
|
55500
|
-
function
|
|
55501
|
-
let e = h.useContext(
|
|
55507
|
+
var UU = /*#__PURE__*/ h.createContext(void 0);
|
|
55508
|
+
process.env.NODE_ENV !== "production" && (UU.displayName = "CheckboxRootContext");
|
|
55509
|
+
function WU() {
|
|
55510
|
+
let e = h.useContext(UU);
|
|
55502
55511
|
if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? Ct(14) : "Base UI: CheckboxRootContext is missing. Checkbox parts must be placed within <Checkbox.Root>.");
|
|
55503
55512
|
return e;
|
|
55504
55513
|
}
|
|
55505
55514
|
//#endregion
|
|
55506
55515
|
//#region node_modules/@base-ui/react/checkbox/root/CheckboxRoot.mjs
|
|
55507
|
-
var
|
|
55508
|
-
let { checked: n, className: r, defaultChecked: i = !1, "aria-labelledby": a, disabled: o = !1, form: s, id: c, indeterminate: l = !1, inputRef: u, name: d, onCheckedChange: f, parent: p = !1, readOnly: m = !1, render: _, required: v = !1, uncheckedValue: y, value: b, nativeButton: x = !1, style: S, ...C } = e, { clearErrors: w } = Yi(), { disabled: T, name: E, setDirty: D, setFilled: O, setFocused: k, setTouched: A, state: j, validationMode: M, validityData: N, validation: P } = qi(), F = Yo(), { labelId: I, controlId: ee, registerControlId: L, getDescriptionProps: te } = na(), R =
|
|
55516
|
+
var GU = "data-parent", KU = /*#__PURE__*/ h.forwardRef(function(e, t) {
|
|
55517
|
+
let { checked: n, className: r, defaultChecked: i = !1, "aria-labelledby": a, disabled: o = !1, form: s, id: c, indeterminate: l = !1, inputRef: u, name: d, onCheckedChange: f, parent: p = !1, readOnly: m = !1, render: _, required: v = !1, uncheckedValue: y, value: b, nativeButton: x = !1, style: S, ...C } = e, { clearErrors: w } = Yi(), { disabled: T, name: E, setDirty: D, setFilled: O, setFocused: k, setTouched: A, state: j, validationMode: M, validityData: N, validation: P } = qi(), F = Yo(), { labelId: I, controlId: ee, registerControlId: L, getDescriptionProps: te } = na(), R = HU(), z = R?.allValues === void 0 ? void 0 : R.parent, B = z !== void 0, ne = T || F.disabled || R?.disabled || o, re = E ?? d, ie = b ?? re, ae = ea(), oe = ea(), se = c || ee;
|
|
55509
55518
|
B && (p ? se = oe : ie === void 0 ? se ||= oe : se = `${z.id}-${ie}`);
|
|
55510
55519
|
let V = {};
|
|
55511
55520
|
B && (p ? V = z.getParentProps() : ie !== void 0 && (V = z.getChildProps(ie)));
|
|
@@ -55599,7 +55608,7 @@ var WU = "data-parent", GU = /*#__PURE__*/ h.forwardRef(function(e, t) {
|
|
|
55599
55608
|
m,
|
|
55600
55609
|
v,
|
|
55601
55610
|
Se
|
|
55602
|
-
]), je =
|
|
55611
|
+
]), je = BU(Ae), Me = Ut("span", e, {
|
|
55603
55612
|
state: Ae,
|
|
55604
55613
|
ref: [
|
|
55605
55614
|
_e,
|
|
@@ -55614,7 +55623,7 @@ var WU = "data-parent", GU = /*#__PURE__*/ h.forwardRef(function(e, t) {
|
|
|
55614
55623
|
"aria-readonly": m || void 0,
|
|
55615
55624
|
"aria-required": v || void 0,
|
|
55616
55625
|
"aria-labelledby": Oe,
|
|
55617
|
-
[
|
|
55626
|
+
[GU]: p ? "" : void 0,
|
|
55618
55627
|
onFocus() {
|
|
55619
55628
|
ne || k(!0);
|
|
55620
55629
|
},
|
|
@@ -55630,7 +55639,7 @@ var WU = "data-parent", GU = /*#__PURE__*/ h.forwardRef(function(e, t) {
|
|
|
55630
55639
|
}, r.preventDefault = () => {
|
|
55631
55640
|
o = !0, a.call(r);
|
|
55632
55641
|
}, a.call(r), En(n).queueMicrotask(() => {
|
|
55633
|
-
e.preventDefault = i, r.preventDefault = a, o ||
|
|
55642
|
+
e.preventDefault = i, r.preventDefault = a, o || zU(t)?.click();
|
|
55634
55643
|
});
|
|
55635
55644
|
},
|
|
55636
55645
|
onClick(e) {
|
|
@@ -55648,7 +55657,7 @@ var WU = "data-parent", GU = /*#__PURE__*/ h.forwardRef(function(e, t) {
|
|
|
55648
55657
|
],
|
|
55649
55658
|
stateAttributesMapping: je
|
|
55650
55659
|
});
|
|
55651
|
-
return /*#__PURE__*/ (0, g.jsxs)(
|
|
55660
|
+
return /*#__PURE__*/ (0, g.jsxs)(UU.Provider, {
|
|
55652
55661
|
value: Ae,
|
|
55653
55662
|
children: [
|
|
55654
55663
|
Me,
|
|
@@ -55666,11 +55675,11 @@ var WU = "data-parent", GU = /*#__PURE__*/ h.forwardRef(function(e, t) {
|
|
|
55666
55675
|
]
|
|
55667
55676
|
});
|
|
55668
55677
|
});
|
|
55669
|
-
process.env.NODE_ENV !== "production" && (
|
|
55678
|
+
process.env.NODE_ENV !== "production" && (KU.displayName = "CheckboxRoot");
|
|
55670
55679
|
//#endregion
|
|
55671
55680
|
//#region node_modules/@base-ui/react/checkbox/indicator/CheckboxIndicator.mjs
|
|
55672
|
-
var
|
|
55673
|
-
let { render: n, className: r, style: i, keepMounted: a = !1, ...o } = e, s =
|
|
55681
|
+
var qU = /*#__PURE__*/ h.forwardRef(function(e, t) {
|
|
55682
|
+
let { render: n, className: r, style: i, keepMounted: a = !1, ...o } = e, s = WU(), c = s.checked || s.indeterminate, { mounted: l, transitionStatus: u, setMounted: d } = ls(c), f = h.useRef(null), p = {
|
|
55674
55683
|
...s,
|
|
55675
55684
|
transitionStatus: u
|
|
55676
55685
|
};
|
|
@@ -55682,7 +55691,7 @@ var KU = /*#__PURE__*/ h.forwardRef(function(e, t) {
|
|
|
55682
55691
|
}
|
|
55683
55692
|
});
|
|
55684
55693
|
let m = {
|
|
55685
|
-
...
|
|
55694
|
+
...BU(s),
|
|
55686
55695
|
...cs
|
|
55687
55696
|
}, g = a || l, _ = Ut("span", e, {
|
|
55688
55697
|
ref: [t, f],
|
|
@@ -55692,15 +55701,15 @@ var KU = /*#__PURE__*/ h.forwardRef(function(e, t) {
|
|
|
55692
55701
|
});
|
|
55693
55702
|
return g ? _ : null;
|
|
55694
55703
|
});
|
|
55695
|
-
process.env.NODE_ENV !== "production" && (
|
|
55704
|
+
process.env.NODE_ENV !== "production" && (qU.displayName = "CheckboxIndicator");
|
|
55696
55705
|
//#endregion
|
|
55697
55706
|
//#region src/client/components/ui/checkbox.tsx
|
|
55698
|
-
function
|
|
55699
|
-
return /* @__PURE__ */ (0, g.jsx)(
|
|
55707
|
+
function JU({ className: e, ...t }) {
|
|
55708
|
+
return /* @__PURE__ */ (0, g.jsx)(KU, {
|
|
55700
55709
|
"data-slot": "checkbox",
|
|
55701
55710
|
className: zi("peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input transition-colors outline-none group-has-disabled/field:opacity-50 group-has-[:focus-visible]/field-label:ring-0 group-has-[:focus-visible]/field-label:not-data-checked:border-input after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground group-has-[:focus-visible]/field-label:data-checked:border-primary dark:data-checked:bg-primary", e),
|
|
55702
55711
|
...t,
|
|
55703
|
-
children: /* @__PURE__ */ (0, g.jsx)(
|
|
55712
|
+
children: /* @__PURE__ */ (0, g.jsx)(qU, {
|
|
55704
55713
|
"data-slot": "checkbox-indicator",
|
|
55705
55714
|
className: "grid place-content-center text-current transition-none [&>svg]:size-3.5",
|
|
55706
55715
|
children: /* @__PURE__ */ (0, g.jsx)(gn, {})
|
|
@@ -55709,39 +55718,39 @@ function qU({ className: e, ...t }) {
|
|
|
55709
55718
|
}
|
|
55710
55719
|
//#endregion
|
|
55711
55720
|
//#region node_modules/@base-ui/utils/useOnFirstRender.mjs
|
|
55712
|
-
function
|
|
55721
|
+
function YU(e) {
|
|
55713
55722
|
let t = h.useRef(!0);
|
|
55714
55723
|
t.current && (t.current = !1, e());
|
|
55715
55724
|
}
|
|
55716
55725
|
//#endregion
|
|
55717
55726
|
//#region node_modules/@base-ui/utils/isElementDisabled.mjs
|
|
55718
|
-
function
|
|
55727
|
+
function XU(e) {
|
|
55719
55728
|
return e == null || e.hasAttribute("disabled") || e.getAttribute("aria-disabled") === "true";
|
|
55720
55729
|
}
|
|
55721
55730
|
//#endregion
|
|
55722
55731
|
//#region node_modules/@base-ui/react/select/root/SelectRootContext.mjs
|
|
55723
|
-
var
|
|
55724
|
-
process.env.NODE_ENV !== "production" && (
|
|
55725
|
-
function
|
|
55726
|
-
let e = h.useContext(
|
|
55732
|
+
var ZU = /*#__PURE__*/ h.createContext(null);
|
|
55733
|
+
process.env.NODE_ENV !== "production" && (ZU.displayName = "SelectRootContext");
|
|
55734
|
+
function QU() {
|
|
55735
|
+
let e = h.useContext(ZU);
|
|
55727
55736
|
if (e === null) throw Error(process.env.NODE_ENV === "production" ? Ct(60) : "Base UI: SelectRootContext is missing. Select parts must be placed within <Select.Root>.");
|
|
55728
55737
|
return e;
|
|
55729
55738
|
}
|
|
55730
55739
|
//#endregion
|
|
55731
55740
|
//#region node_modules/@base-ui/react/internals/itemEquality.mjs
|
|
55732
|
-
var
|
|
55733
|
-
function $U(e, t, n) {
|
|
55734
|
-
return e == null || t == null ? Object.is(e, t) : n(e, t);
|
|
55735
|
-
}
|
|
55741
|
+
var $U = (e, t) => Object.is(e, t);
|
|
55736
55742
|
function eW(e, t, n) {
|
|
55737
|
-
return
|
|
55743
|
+
return e == null || t == null ? Object.is(e, t) : n(e, t);
|
|
55738
55744
|
}
|
|
55739
55745
|
function tW(e, t, n) {
|
|
55740
|
-
return e.
|
|
55746
|
+
return !e || e.length === 0 ? -1 : e.findIndex((e) => e !== void 0 && eW(e, t, n));
|
|
55747
|
+
}
|
|
55748
|
+
function nW(e, t, n) {
|
|
55749
|
+
return e.filter((e) => !eW(t, e, n));
|
|
55741
55750
|
}
|
|
55742
55751
|
//#endregion
|
|
55743
55752
|
//#region node_modules/@base-ui/react/internals/serializeValue.mjs
|
|
55744
|
-
function
|
|
55753
|
+
function rW(e) {
|
|
55745
55754
|
if (e == null) return "";
|
|
55746
55755
|
if (typeof e == "string") return e;
|
|
55747
55756
|
try {
|
|
@@ -55752,39 +55761,39 @@ function nW(e) {
|
|
|
55752
55761
|
}
|
|
55753
55762
|
//#endregion
|
|
55754
55763
|
//#region node_modules/@base-ui/react/internals/resolveValueLabel.mjs
|
|
55755
|
-
function
|
|
55764
|
+
function iW(e) {
|
|
55756
55765
|
return e != null && e.length > 0 && typeof e[0] == "object" && e[0] != null && "items" in e[0];
|
|
55757
55766
|
}
|
|
55758
|
-
function
|
|
55767
|
+
function aW(e) {
|
|
55759
55768
|
if (!Array.isArray(e)) return e != null && "null" in e;
|
|
55760
55769
|
let t = e;
|
|
55761
|
-
if (
|
|
55770
|
+
if (iW(t)) {
|
|
55762
55771
|
for (let e of t) for (let t of e.items) if (t && t.value == null && t.label != null) return !0;
|
|
55763
55772
|
return !1;
|
|
55764
55773
|
}
|
|
55765
55774
|
for (let e of t) if (e && e.value == null && e.label != null) return !0;
|
|
55766
55775
|
return !1;
|
|
55767
55776
|
}
|
|
55768
|
-
function
|
|
55777
|
+
function oW(e, t) {
|
|
55769
55778
|
if (t && e != null) return t(e) ?? "";
|
|
55770
55779
|
if (e && typeof e == "object") {
|
|
55771
55780
|
if ("label" in e && e.label != null) return String(e.label);
|
|
55772
55781
|
if ("value" in e) return String(e.value);
|
|
55773
55782
|
}
|
|
55774
|
-
return
|
|
55783
|
+
return rW(e);
|
|
55775
55784
|
}
|
|
55776
|
-
function
|
|
55777
|
-
return t && e != null ? t(e) ?? "" : e && typeof e == "object" && "value" in e && "label" in e ?
|
|
55785
|
+
function sW(e, t) {
|
|
55786
|
+
return t && e != null ? t(e) ?? "" : e && typeof e == "object" && "value" in e && "label" in e ? rW(e.value) : rW(e);
|
|
55778
55787
|
}
|
|
55779
|
-
function
|
|
55788
|
+
function cW(e, t, n) {
|
|
55780
55789
|
function r() {
|
|
55781
|
-
return
|
|
55790
|
+
return oW(e, n);
|
|
55782
55791
|
}
|
|
55783
55792
|
if (n && e != null) return n(e);
|
|
55784
55793
|
if (e && typeof e == "object" && "label" in e && e.label != null) return e.label;
|
|
55785
55794
|
if (t && !Array.isArray(t)) return t[e] ?? r();
|
|
55786
55795
|
if (Array.isArray(t)) {
|
|
55787
|
-
let n = t, i =
|
|
55796
|
+
let n = t, i = iW(n) ? n.flatMap((e) => e.items) : n;
|
|
55788
55797
|
if (typeof e != "object" || !e) {
|
|
55789
55798
|
let t = i.find((t) => t.value === e);
|
|
55790
55799
|
return t && t.label != null ? t.label : r();
|
|
@@ -55796,12 +55805,12 @@ function sW(e, t, n) {
|
|
|
55796
55805
|
}
|
|
55797
55806
|
return r();
|
|
55798
55807
|
}
|
|
55799
|
-
function
|
|
55800
|
-
return e.reduce((e, r, i) => (i > 0 && e.push(", "), e.push(/*#__PURE__*/ (0, g.jsx)(h.Fragment, { children:
|
|
55808
|
+
function lW(e, t, n) {
|
|
55809
|
+
return e.reduce((e, r, i) => (i > 0 && e.push(", "), e.push(/*#__PURE__*/ (0, g.jsx)(h.Fragment, { children: cW(r, t, n) }, i)), e), []);
|
|
55801
55810
|
}
|
|
55802
55811
|
//#endregion
|
|
55803
55812
|
//#region node_modules/@base-ui/react/select/store.mjs
|
|
55804
|
-
var
|
|
55813
|
+
var uW = {
|
|
55805
55814
|
id: (e) => e.id,
|
|
55806
55815
|
labelId: (e) => e.labelId,
|
|
55807
55816
|
modal: (e) => e.modal,
|
|
@@ -55811,9 +55820,9 @@ var lW = {
|
|
|
55811
55820
|
value: (e) => e.value,
|
|
55812
55821
|
hasSelectedValue: (e) => {
|
|
55813
55822
|
let { value: t, multiple: n, itemToStringValue: r } = e;
|
|
55814
|
-
return t == null ? !1 : n && Array.isArray(t) ? t.length > 0 :
|
|
55823
|
+
return t == null ? !1 : n && Array.isArray(t) ? t.length > 0 : sW(t, r) !== "";
|
|
55815
55824
|
},
|
|
55816
|
-
hasNullItemLabel: (e, t) => t ?
|
|
55825
|
+
hasNullItemLabel: (e, t) => t ? aW(e.items) : !1,
|
|
55817
55826
|
open: (e) => e.open,
|
|
55818
55827
|
mounted: (e) => e.mounted,
|
|
55819
55828
|
forceMount: (e) => e.forceMount,
|
|
@@ -55824,7 +55833,7 @@ var lW = {
|
|
|
55824
55833
|
isActive: (e, t) => e.activeIndex === t,
|
|
55825
55834
|
isSelected: (e, t) => {
|
|
55826
55835
|
let n = e.isItemEqualToValue, r = e.value;
|
|
55827
|
-
return e.multiple ? Array.isArray(r) && r.some((e) =>
|
|
55836
|
+
return e.multiple ? Array.isArray(r) && r.some((e) => eW(t, e, n)) : eW(t, r, n);
|
|
55828
55837
|
},
|
|
55829
55838
|
isSelectedByFocus: (e, t) => e.selectedIndex === t,
|
|
55830
55839
|
popupProps: (e) => e.popupProps,
|
|
@@ -55839,26 +55848,26 @@ var lW = {
|
|
|
55839
55848
|
};
|
|
55840
55849
|
//#endregion
|
|
55841
55850
|
//#region node_modules/@base-ui/react/internals/areArraysEqual.mjs
|
|
55842
|
-
function
|
|
55851
|
+
function dW(e, t, n = (e, t) => e === t) {
|
|
55843
55852
|
return e.length === t.length && e.every((e, r) => n(e, t[r]));
|
|
55844
55853
|
}
|
|
55845
55854
|
//#endregion
|
|
55846
55855
|
//#region node_modules/@base-ui/react/internals/clamp.mjs
|
|
55847
|
-
function
|
|
55856
|
+
function fW(e, t = -(2 ** 53 - 1), n = 2 ** 53 - 1) {
|
|
55848
55857
|
return Math.max(t, Math.min(e, n));
|
|
55849
55858
|
}
|
|
55850
|
-
function
|
|
55859
|
+
function pW(e, t) {
|
|
55851
55860
|
return Math.max(0, e - t);
|
|
55852
55861
|
}
|
|
55853
|
-
function
|
|
55862
|
+
function mW(e, t) {
|
|
55854
55863
|
if (t <= 0) return 0;
|
|
55855
|
-
let n =
|
|
55864
|
+
let n = fW(e, 0, t), r = n, i = t - n, a = r <= 1, o = i <= 1;
|
|
55856
55865
|
return a && o ? r <= i ? 0 : t : a ? 0 : o ? t : n;
|
|
55857
55866
|
}
|
|
55858
55867
|
//#endregion
|
|
55859
55868
|
//#region node_modules/@base-ui/react/select/root/SelectRoot.mjs
|
|
55860
|
-
function
|
|
55861
|
-
let { id: t, value: n, defaultValue: r = null, onValueChange: i, open: a, defaultOpen: o = !1, onOpenChange: s, name: c, form: l, autoComplete: u, disabled: d = !1, readOnly: f = !1, required: p = !1, modal: m = !0, actionsRef: _, inputRef: v, onOpenChangeComplete: y, items: b, multiple: x = !1, itemToStringLabel: S, itemToStringValue: C, isItemEqualToValue: w =
|
|
55869
|
+
function hW(e) {
|
|
55870
|
+
let { id: t, value: n, defaultValue: r = null, onValueChange: i, open: a, defaultOpen: o = !1, onOpenChange: s, name: c, form: l, autoComplete: u, disabled: d = !1, readOnly: f = !1, required: p = !1, modal: m = !0, actionsRef: _, inputRef: v, onOpenChangeComplete: y, items: b, multiple: x = !1, itemToStringLabel: S, itemToStringValue: C, isItemEqualToValue: w = $U, highlightItemOnHover: T = !0, children: E } = e, { clearErrors: D } = Yi(), { setDirty: O, setTouched: k, setFocused: A, validityData: j, setFilled: M, name: N, disabled: P, validation: F, validationMode: I } = qi(), ee = oa({ id: t }), L = P || d, te = N ?? c, [R, z] = us({
|
|
55862
55871
|
controlled: n,
|
|
55863
55872
|
default: x ? r ?? Rt : r,
|
|
55864
55873
|
name: "Select",
|
|
@@ -55898,11 +55907,11 @@ function mW(e) {
|
|
|
55898
55907
|
scrollUpArrowVisible: !1,
|
|
55899
55908
|
scrollDownArrowVisible: !1,
|
|
55900
55909
|
hasScrollArrows: !1
|
|
55901
|
-
})).current, be = G(ye,
|
|
55910
|
+
})).current, be = G(ye, uW.activeIndex), xe = G(ye, uW.selectedIndex), Se = G(ye, uW.triggerElement), Ce = G(ye, uW.positionerElement), we = Qd(_e), Te = _e ?? we, Ee = h.useMemo(() => x ? "" : sW(R, C), [
|
|
55902
55911
|
x,
|
|
55903
55912
|
R,
|
|
55904
55913
|
C
|
|
55905
|
-
]), De = h.useMemo(() => x && Array.isArray(R) ? R.map((e) =>
|
|
55914
|
+
]), De = h.useMemo(() => x && Array.isArray(R) ? R.map((e) => sW(e, C)) : sW(R, C), [
|
|
55906
55915
|
x,
|
|
55907
55916
|
R,
|
|
55908
55917
|
C
|
|
@@ -55917,7 +55926,7 @@ function mW(e) {
|
|
|
55917
55926
|
let n = Array.isArray(R) ? R : [];
|
|
55918
55927
|
t = n.length === 0, e = n[n.length - 1];
|
|
55919
55928
|
}
|
|
55920
|
-
let n = t ? -1 :
|
|
55929
|
+
let n = t ? -1 : tW(ce.current, e, w), r = n === -1 ? null : n;
|
|
55921
55930
|
r === null && (de.current = null), !B && ye.set("selectedIndex", r);
|
|
55922
55931
|
}, [
|
|
55923
55932
|
x,
|
|
@@ -55928,7 +55937,7 @@ function mW(e) {
|
|
|
55928
55937
|
]);
|
|
55929
55938
|
function Ae(e) {
|
|
55930
55939
|
let t = j.initialValue;
|
|
55931
|
-
return Array.isArray(e) && Array.isArray(t) ? !
|
|
55940
|
+
return Array.isArray(e) && Array.isArray(t) ? !dW(e, t, (e, t) => eW(e, t, w)) : e !== t;
|
|
55932
55941
|
}
|
|
55933
55942
|
Dd(R, () => {
|
|
55934
55943
|
D(te), O(Ae(R)), F.change(R);
|
|
@@ -55954,7 +55963,7 @@ function mW(e) {
|
|
|
55954
55963
|
let Ne = Qn((e, t) => {
|
|
55955
55964
|
i?.(e, t), !t.isCanceled && z(e);
|
|
55956
55965
|
}), Pe = Qn((e) => {
|
|
55957
|
-
let t =
|
|
55966
|
+
let t = pW(e.scrollHeight, e.clientHeight), n = mW(e.scrollTop, t), r = n > 0, i = n < t;
|
|
55958
55967
|
ye.set("scrollUpArrowVisible", r), ye.set("scrollDownArrowVisible", i);
|
|
55959
55968
|
}), Fe = ju({
|
|
55960
55969
|
open: B,
|
|
@@ -55981,7 +55990,7 @@ function mW(e) {
|
|
|
55981
55990
|
listRef: ie,
|
|
55982
55991
|
activeIndex: be,
|
|
55983
55992
|
selectedIndex: xe,
|
|
55984
|
-
disabledIndices: (e) =>
|
|
55993
|
+
disabledIndices: (e) => XU(re.current[e]),
|
|
55985
55994
|
onMatch(e) {
|
|
55986
55995
|
B ? ye.set("activeIndex", e) : Ne(ce.current[e], Ds(ps));
|
|
55987
55996
|
},
|
|
@@ -55999,7 +56008,7 @@ function mW(e) {
|
|
|
55999
56008
|
Re.floating,
|
|
56000
56009
|
Le.floating
|
|
56001
56010
|
]), He = Re.item ?? zt;
|
|
56002
|
-
|
|
56011
|
+
YU(() => {
|
|
56003
56012
|
ye.update({
|
|
56004
56013
|
popupProps: Ve,
|
|
56005
56014
|
triggerProps: Be
|
|
@@ -56062,7 +56071,7 @@ function mW(e) {
|
|
|
56062
56071
|
y,
|
|
56063
56072
|
Pe
|
|
56064
56073
|
]), We = Et(v, F.inputRef), Ge = x ? void 0 : te, Ke = h.useMemo(() => !x || !Array.isArray(R) || !te ? null : R.map((e) => {
|
|
56065
|
-
let t =
|
|
56074
|
+
let t = sW(e, C);
|
|
56066
56075
|
return /*#__PURE__*/ (0, g.jsx)("input", {
|
|
56067
56076
|
type: "hidden",
|
|
56068
56077
|
form: l,
|
|
@@ -56078,7 +56087,7 @@ function mW(e) {
|
|
|
56078
56087
|
C,
|
|
56079
56088
|
L
|
|
56080
56089
|
]);
|
|
56081
|
-
return /*#__PURE__*/ (0, g.jsxs)(
|
|
56090
|
+
return /*#__PURE__*/ (0, g.jsxs)(ZU.Provider, {
|
|
56082
56091
|
value: Ue,
|
|
56083
56092
|
children: [
|
|
56084
56093
|
E,
|
|
@@ -56092,7 +56101,7 @@ function mW(e) {
|
|
|
56092
56101
|
let t = e.currentTarget.value, n = Ds(ps, e.nativeEvent);
|
|
56093
56102
|
function r() {
|
|
56094
56103
|
if (x) return;
|
|
56095
|
-
let e = t.toLowerCase(), r = ce.current.findIndex((t) =>
|
|
56104
|
+
let e = t.toLowerCase(), r = ce.current.findIndex((t) => sW(t, C).toLowerCase() === e || oW(t, S).toLowerCase() === e);
|
|
56096
56105
|
r === -1 && (r = ce.current.findIndex((t, n) => {
|
|
56097
56106
|
let r = ie.current[n];
|
|
56098
56107
|
return r != null && r.toLowerCase() === e;
|
|
@@ -56123,17 +56132,17 @@ function mW(e) {
|
|
|
56123
56132
|
}
|
|
56124
56133
|
//#endregion
|
|
56125
56134
|
//#region node_modules/@base-ui/react/utils/resolveAriaLabelledBy.mjs
|
|
56126
|
-
function
|
|
56135
|
+
function gW(e, t) {
|
|
56127
56136
|
return e ?? t;
|
|
56128
56137
|
}
|
|
56129
56138
|
//#endregion
|
|
56130
56139
|
//#region node_modules/@base-ui/react/utils/getPseudoElementBounds.mjs
|
|
56131
|
-
var
|
|
56132
|
-
function
|
|
56133
|
-
let n =
|
|
56134
|
-
return e.clientX >= n.left -
|
|
56140
|
+
var _W = 5;
|
|
56141
|
+
function vW(e, t) {
|
|
56142
|
+
let n = yW(t);
|
|
56143
|
+
return e.clientX >= n.left - _W && e.clientX <= n.right + _W && e.clientY >= n.top - _W && e.clientY <= n.bottom + _W;
|
|
56135
56144
|
}
|
|
56136
|
-
function
|
|
56145
|
+
function yW(e) {
|
|
56137
56146
|
let t = e.getBoundingClientRect(), n = En(e);
|
|
56138
56147
|
if (ya) return t;
|
|
56139
56148
|
let r = n.getComputedStyle(e, "::before"), i = n.getComputedStyle(e, "::after");
|
|
@@ -56148,20 +56157,20 @@ function vW(e) {
|
|
|
56148
56157
|
}
|
|
56149
56158
|
//#endregion
|
|
56150
56159
|
//#region node_modules/@base-ui/react/select/trigger/SelectTrigger.mjs
|
|
56151
|
-
var
|
|
56160
|
+
var bW = 400, xW = {
|
|
56152
56161
|
...zs,
|
|
56153
56162
|
...Wi,
|
|
56154
56163
|
popupSide: (e) => e ? { "data-popup-side": e } : null,
|
|
56155
56164
|
value: () => null
|
|
56156
|
-
},
|
|
56157
|
-
let { render: n, className: r, id: i, disabled: a = !1, nativeButton: o = !0, style: s, ...c } = e, { setTouched: l, setFocused: u, validationMode: d, state: f, disabled: p } = qi(), { labelId: m } = na(), { store: g, setOpen: _, selectionRef: v, validation: y, readOnly: b, required: x, alignItemWithTriggerActiveRef: S, disabled: C } =
|
|
56165
|
+
}, SW = /*#__PURE__*/ h.forwardRef(function(e, t) {
|
|
56166
|
+
let { render: n, className: r, id: i, disabled: a = !1, nativeButton: o = !0, style: s, ...c } = e, { setTouched: l, setFocused: u, validationMode: d, state: f, disabled: p } = qi(), { labelId: m } = na(), { store: g, setOpen: _, selectionRef: v, validation: y, readOnly: b, required: x, alignItemWithTriggerActiveRef: S, disabled: C } = QU(), w = p || C || a, T = G(g, uW.open), E = G(g, uW.mounted), D = G(g, uW.value), O = G(g, uW.triggerProps), k = G(g, uW.positionerElement), A = G(g, uW.listElement), j = G(g, uW.popupSide), M = G(g, uW.id), N = G(g, uW.labelId), P = G(g, uW.hasSelectedValue), F = E && k ? j : null, I = i ?? M, ee = gW(m, N);
|
|
56158
56167
|
oa({ id: I });
|
|
56159
56168
|
let L = qs(k), te = h.useRef(null), { getButtonProps: R, buttonRef: z } = lr({
|
|
56160
56169
|
disabled: w,
|
|
56161
56170
|
native: o
|
|
56162
56171
|
}), B = g.useStateSetter("triggerElement"), ne = qo(), re = qo(), ie = qo();
|
|
56163
56172
|
h.useEffect(() => {
|
|
56164
|
-
if (T) return ie.start(
|
|
56173
|
+
if (T) return ie.start(bW, () => {
|
|
56165
56174
|
v.current.allowUnselectedMouseUp = !0, v.current.allowSelectedMouseUp = !0;
|
|
56166
56175
|
}), () => {
|
|
56167
56176
|
ie.clear();
|
|
@@ -56201,7 +56210,7 @@ var yW = 400, bW = {
|
|
|
56201
56210
|
function n(e) {
|
|
56202
56211
|
if (!te.current) return;
|
|
56203
56212
|
let t = e.target;
|
|
56204
|
-
Ea(te.current, t) || Ea(L.current, t) ||
|
|
56213
|
+
Ea(te.current, t) || Ea(L.current, t) || vW(e, te.current) || _(!1, Ds(xs, e));
|
|
56205
56214
|
}
|
|
56206
56215
|
re.start(0, () => {
|
|
56207
56216
|
t.addEventListener("mouseup", n, { once: !0 });
|
|
@@ -56226,32 +56235,32 @@ var yW = 400, bW = {
|
|
|
56226
56235
|
B
|
|
56227
56236
|
],
|
|
56228
56237
|
state: se,
|
|
56229
|
-
stateAttributesMapping:
|
|
56238
|
+
stateAttributesMapping: xW,
|
|
56230
56239
|
props: oe
|
|
56231
56240
|
});
|
|
56232
56241
|
});
|
|
56233
|
-
process.env.NODE_ENV !== "production" && (
|
|
56242
|
+
process.env.NODE_ENV !== "production" && (SW.displayName = "SelectTrigger");
|
|
56234
56243
|
//#endregion
|
|
56235
56244
|
//#region node_modules/@base-ui/react/select/value/SelectValue.mjs
|
|
56236
|
-
var
|
|
56237
|
-
let { className: n, render: r, children: i, placeholder: a, style: o, ...s } = e, { store: c, valueRef: l } =
|
|
56245
|
+
var CW = { value: () => null }, wW = /*#__PURE__*/ h.forwardRef(function(e, t) {
|
|
56246
|
+
let { className: n, render: r, children: i, placeholder: a, style: o, ...s } = e, { store: c, valueRef: l } = QU(), u = G(c, uW.value), d = G(c, uW.items), f = G(c, uW.itemToStringLabel), p = G(c, uW.hasSelectedValue), m = !p && a != null && i == null, h = G(c, uW.hasNullItemLabel, m), g = {
|
|
56238
56247
|
value: u,
|
|
56239
56248
|
placeholder: !p
|
|
56240
56249
|
}, _ = null;
|
|
56241
|
-
return _ = typeof i == "function" ? i(u) : i ?? (m && !h ? a : Array.isArray(u) ?
|
|
56250
|
+
return _ = typeof i == "function" ? i(u) : i ?? (m && !h ? a : Array.isArray(u) ? lW(u, d, f) : cW(u, d, f)), Ut("span", e, {
|
|
56242
56251
|
state: g,
|
|
56243
56252
|
ref: [t, l],
|
|
56244
56253
|
props: [{ children: _ }, s],
|
|
56245
|
-
stateAttributesMapping:
|
|
56254
|
+
stateAttributesMapping: CW
|
|
56246
56255
|
});
|
|
56247
56256
|
});
|
|
56248
|
-
process.env.NODE_ENV !== "production" && (
|
|
56257
|
+
process.env.NODE_ENV !== "production" && (wW.displayName = "SelectValue");
|
|
56249
56258
|
//#endregion
|
|
56250
56259
|
//#region node_modules/@base-ui/react/select/icon/SelectIcon.mjs
|
|
56251
|
-
var
|
|
56252
|
-
let { render: n, className: r, style: i, ...a } = e, { store: o } =
|
|
56260
|
+
var TW = /*#__PURE__*/ h.forwardRef(function(e, t) {
|
|
56261
|
+
let { render: n, className: r, style: i, ...a } = e, { store: o } = QU();
|
|
56253
56262
|
return Ut("span", e, {
|
|
56254
|
-
state: { open: G(o,
|
|
56263
|
+
state: { open: G(o, uW.open) },
|
|
56255
56264
|
ref: t,
|
|
56256
56265
|
props: [{
|
|
56257
56266
|
"aria-hidden": !0,
|
|
@@ -56260,33 +56269,33 @@ var wW = /*#__PURE__*/ h.forwardRef(function(e, t) {
|
|
|
56260
56269
|
stateAttributesMapping: Rs
|
|
56261
56270
|
});
|
|
56262
56271
|
});
|
|
56263
|
-
process.env.NODE_ENV !== "production" && (
|
|
56272
|
+
process.env.NODE_ENV !== "production" && (TW.displayName = "SelectIcon");
|
|
56264
56273
|
//#endregion
|
|
56265
56274
|
//#region node_modules/@base-ui/react/select/portal/SelectPortal.mjs
|
|
56266
|
-
var
|
|
56267
|
-
let { store: n } =
|
|
56275
|
+
var EW = /*#__PURE__*/ h.forwardRef(function(e, t) {
|
|
56276
|
+
let { store: n } = QU(), r = G(n, uW.mounted), i = G(n, uW.forceMount);
|
|
56268
56277
|
return r || i ? /*#__PURE__*/ (0, g.jsx)(xc, {
|
|
56269
56278
|
ref: t,
|
|
56270
56279
|
...e
|
|
56271
56280
|
}) : null;
|
|
56272
56281
|
});
|
|
56273
|
-
process.env.NODE_ENV !== "production" && (
|
|
56282
|
+
process.env.NODE_ENV !== "production" && (EW.displayName = "SelectPortal");
|
|
56274
56283
|
//#endregion
|
|
56275
56284
|
//#region node_modules/@base-ui/react/internals/composite/list/CompositeListContext.mjs
|
|
56276
|
-
var
|
|
56285
|
+
var DW = /*#__PURE__*/ h.createContext({
|
|
56277
56286
|
register: () => {},
|
|
56278
56287
|
unregister: () => {},
|
|
56279
56288
|
subscribeMapChange: () => () => {},
|
|
56280
56289
|
nextIndexRef: { current: 0 }
|
|
56281
56290
|
});
|
|
56282
|
-
process.env.NODE_ENV !== "production" && (
|
|
56283
|
-
function
|
|
56284
|
-
return h.useContext(
|
|
56291
|
+
process.env.NODE_ENV !== "production" && (DW.displayName = "CompositeListContext");
|
|
56292
|
+
function OW() {
|
|
56293
|
+
return h.useContext(DW);
|
|
56285
56294
|
}
|
|
56286
56295
|
//#endregion
|
|
56287
56296
|
//#region node_modules/@base-ui/react/internals/composite/list/CompositeList.mjs
|
|
56288
|
-
function
|
|
56289
|
-
let { children: t, elementsRef: n, labelsRef: r, onMapChange: i } = e, a = Qn(i), [, o] = h.useState(!1), s = Tt(
|
|
56297
|
+
function kW(e) {
|
|
56298
|
+
let { children: t, elementsRef: n, labelsRef: r, onMapChange: i } = e, a = Qn(i), [, o] = h.useState(!1), s = Tt(jW).current, c = Tt(AW).current, l = h.useRef(0), u = h.useRef(!0), d = h.useRef([]), f = h.useRef(null), p = Qn(() => {
|
|
56290
56299
|
u.current || (u.current = !0, o((e) => !e));
|
|
56291
56300
|
}), m = Qn((e, t) => {
|
|
56292
56301
|
c.set(e, t), p();
|
|
@@ -56304,10 +56313,10 @@ function OW(e) {
|
|
|
56304
56313
|
function y(e) {
|
|
56305
56314
|
if (f.current?.disconnect(), f.current = null, typeof MutationObserver != "function" || e.length < 2) return;
|
|
56306
56315
|
let t = new MutationObserver((n) => {
|
|
56307
|
-
if (!
|
|
56316
|
+
if (!PW(n)) return;
|
|
56308
56317
|
let r = null;
|
|
56309
56318
|
for (let n of e) if (n.isConnected) {
|
|
56310
|
-
if (r &&
|
|
56319
|
+
if (r && FW(r, n) > 0) {
|
|
56311
56320
|
t.disconnect(), p();
|
|
56312
56321
|
return;
|
|
56313
56322
|
}
|
|
@@ -56317,13 +56326,13 @@ function OW(e) {
|
|
|
56317
56326
|
f.current = t;
|
|
56318
56327
|
let n = /* @__PURE__ */ new Set();
|
|
56319
56328
|
for (let t = 1; t < e.length; t += 1) {
|
|
56320
|
-
let r =
|
|
56329
|
+
let r = NW(e[t - 1], e[t]);
|
|
56321
56330
|
r && n.add(r);
|
|
56322
56331
|
}
|
|
56323
56332
|
n.forEach((e) => t.observe(e, { childList: !0 }));
|
|
56324
56333
|
}
|
|
56325
56334
|
let b = Qn(() => {
|
|
56326
|
-
let [e, t] =
|
|
56335
|
+
let [e, t] = MW(c), n = v(e);
|
|
56327
56336
|
y(t), d.current = e, u.current = !1, s.forEach((e) => e(n)), a(n);
|
|
56328
56337
|
});
|
|
56329
56338
|
rr(() => (u.current || v(d.current), () => {
|
|
@@ -56350,18 +56359,18 @@ function OW(e) {
|
|
|
56350
56359
|
x,
|
|
56351
56360
|
l
|
|
56352
56361
|
]);
|
|
56353
|
-
return /*#__PURE__*/ (0, g.jsx)(
|
|
56362
|
+
return /*#__PURE__*/ (0, g.jsx)(DW.Provider, {
|
|
56354
56363
|
value: S,
|
|
56355
56364
|
children: t
|
|
56356
56365
|
});
|
|
56357
56366
|
}
|
|
56358
|
-
function
|
|
56367
|
+
function AW() {
|
|
56359
56368
|
return /* @__PURE__ */ new Map();
|
|
56360
56369
|
}
|
|
56361
|
-
function
|
|
56370
|
+
function jW() {
|
|
56362
56371
|
return /* @__PURE__ */ new Set();
|
|
56363
56372
|
}
|
|
56364
|
-
function
|
|
56373
|
+
function MW(e) {
|
|
56365
56374
|
let t = /* @__PURE__ */ new Set(), n = [], r = [];
|
|
56366
56375
|
e.forEach((e, i) => {
|
|
56367
56376
|
if (!i.isConnected) return;
|
|
@@ -56373,44 +56382,44 @@ function jW(e) {
|
|
|
56373
56382
|
a === null ? r.push(o) : a >= 0 && (t.add(a), n.push(o));
|
|
56374
56383
|
});
|
|
56375
56384
|
let i = 0;
|
|
56376
|
-
return r.sort((e, t) =>
|
|
56385
|
+
return r.sort((e, t) => FW(e.element, t.element)), r.forEach((e) => {
|
|
56377
56386
|
for (; t.has(i);) i += 1;
|
|
56378
56387
|
e.index = i, n.push(e), i += 1;
|
|
56379
56388
|
}), t.size > 0 && n.sort((e, t) => e.index - t.index), [n, r.map((e) => e.element)];
|
|
56380
56389
|
}
|
|
56381
|
-
function
|
|
56390
|
+
function NW(e, t) {
|
|
56382
56391
|
let n = e.parentElement;
|
|
56383
56392
|
for (; n && !n.contains(t);) n = n.parentElement;
|
|
56384
56393
|
return n;
|
|
56385
56394
|
}
|
|
56386
|
-
function
|
|
56395
|
+
function PW(e) {
|
|
56387
56396
|
for (let t of e) for (let e = 0; e < t.removedNodes.length; e += 1) if (t.removedNodes[e].isConnected) return !0;
|
|
56388
56397
|
return !1;
|
|
56389
56398
|
}
|
|
56390
|
-
function
|
|
56399
|
+
function FW(e, t) {
|
|
56391
56400
|
return e.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
|
|
56392
56401
|
}
|
|
56393
56402
|
//#endregion
|
|
56394
56403
|
//#region node_modules/@base-ui/react/select/positioner/SelectPositionerContext.mjs
|
|
56395
|
-
var
|
|
56396
|
-
process.env.NODE_ENV !== "production" && (
|
|
56397
|
-
function
|
|
56398
|
-
let e = h.useContext(
|
|
56404
|
+
var IW = /*#__PURE__*/ h.createContext(void 0);
|
|
56405
|
+
process.env.NODE_ENV !== "production" && (IW.displayName = "SelectPositionerContext");
|
|
56406
|
+
function LW() {
|
|
56407
|
+
let e = h.useContext(IW);
|
|
56399
56408
|
if (!e) throw Error(process.env.NODE_ENV === "production" ? Ct(59) : "Base UI: SelectPositionerContext is missing. SelectPositioner parts must be placed within <Select.Positioner>.");
|
|
56400
56409
|
return e;
|
|
56401
56410
|
}
|
|
56402
56411
|
//#endregion
|
|
56403
56412
|
//#region node_modules/@base-ui/react/select/popup/utils.mjs
|
|
56404
|
-
function
|
|
56413
|
+
function RW(e, t) {
|
|
56405
56414
|
e && Object.assign(e.style, t);
|
|
56406
56415
|
}
|
|
56407
|
-
var
|
|
56416
|
+
var zW = {
|
|
56408
56417
|
position: "relative",
|
|
56409
56418
|
maxHeight: "100%",
|
|
56410
56419
|
overflowX: "hidden",
|
|
56411
56420
|
overflowY: "auto"
|
|
56412
|
-
},
|
|
56413
|
-
function
|
|
56421
|
+
}, BW = 20;
|
|
56422
|
+
function VW(e, t, n, r) {
|
|
56414
56423
|
let [i, a] = h.useState(!1);
|
|
56415
56424
|
rr(() => {
|
|
56416
56425
|
if (!e || !t || n == null) {
|
|
@@ -56418,7 +56427,7 @@ function BW(e, t, n, r) {
|
|
|
56418
56427
|
return;
|
|
56419
56428
|
}
|
|
56420
56429
|
let r = sr(n).documentElement.clientWidth, i = n.offsetWidth;
|
|
56421
|
-
a(r > 0 && i > 0 && i >= r -
|
|
56430
|
+
a(r > 0 && i > 0 && i >= r - BW);
|
|
56422
56431
|
}, [
|
|
56423
56432
|
e,
|
|
56424
56433
|
t,
|
|
@@ -56427,9 +56436,9 @@ function BW(e, t, n, r) {
|
|
|
56427
56436
|
}
|
|
56428
56437
|
//#endregion
|
|
56429
56438
|
//#region node_modules/@base-ui/react/select/positioner/SelectPositioner.mjs
|
|
56430
|
-
var
|
|
56431
|
-
let { anchor: n, className: r, render: i, positionMethod: a, side: o, align: s, sideOffset: c, alignOffset: l, collisionBoundary: u = "clipping-ancestors", collisionPadding: d, arrowPadding: f, sticky: p, disableAnchorTracking: m, alignItemWithTrigger: _ = !0, collisionAvoidance: v = hc, style: y, ...b } = e, { store: x, listRef: S, labelsRef: C, alignItemWithTriggerActiveRef: w, selectedItemTextRef: T, valuesRef: E, initialValueRef: D, popupRef: O, setValue: k, floatingContext: A } =
|
|
56432
|
-
!M && B !== _ && ne(_), h.useImperativeHandle(w, () => re),
|
|
56439
|
+
var HW = { position: "fixed" }, UW = /*#__PURE__*/ h.forwardRef(function(e, t) {
|
|
56440
|
+
let { anchor: n, className: r, render: i, positionMethod: a, side: o, align: s, sideOffset: c, alignOffset: l, collisionBoundary: u = "clipping-ancestors", collisionPadding: d, arrowPadding: f, sticky: p, disableAnchorTracking: m, alignItemWithTrigger: _ = !0, collisionAvoidance: v = hc, style: y, ...b } = e, { store: x, listRef: S, labelsRef: C, alignItemWithTriggerActiveRef: w, selectedItemTextRef: T, valuesRef: E, initialValueRef: D, popupRef: O, setValue: k, floatingContext: A } = QU(), j = G(x, uW.open), M = G(x, uW.mounted), N = G(x, uW.modal), P = G(x, uW.value), F = G(x, uW.openMethod), I = G(x, uW.positionerElement), ee = G(x, uW.triggerElement), L = G(x, uW.isItemEqualToValue), te = G(x, uW.transitionStatus), R = h.useRef(null), z = h.useRef(null), [B, ne] = h.useState(_), re = M && B && F !== "touch";
|
|
56441
|
+
!M && B !== _ && ne(_), h.useImperativeHandle(w, () => re), VW((re || N) && j, F === "touch", I, ee);
|
|
56433
56442
|
let ie = qd({
|
|
56434
56443
|
anchor: n,
|
|
56435
56444
|
floatingRootContext: A,
|
|
@@ -56446,7 +56455,7 @@ var VW = { position: "fixed" }, HW = /*#__PURE__*/ h.forwardRef(function(e, t) {
|
|
|
56446
56455
|
disableAnchorTracking: m ?? re,
|
|
56447
56456
|
collisionAvoidance: v,
|
|
56448
56457
|
keepMounted: !0
|
|
56449
|
-
}), ae = re ? "none" : ie.side, oe = re ?
|
|
56458
|
+
}), ae = re ? "none" : ie.side, oe = re ? HW : ie.positionerStyles, se = {
|
|
56450
56459
|
open: j,
|
|
56451
56460
|
side: ae,
|
|
56452
56461
|
align: ie.align,
|
|
@@ -56467,12 +56476,12 @@ var VW = { position: "fixed" }, HW = /*#__PURE__*/ h.forwardRef(function(e, t) {
|
|
|
56467
56476
|
let t = ce.current;
|
|
56468
56477
|
if (ce.current = e.size, e.size === t) return;
|
|
56469
56478
|
let n = Ds(ps);
|
|
56470
|
-
if (t !== 0 && !x.state.multiple && P !== null &&
|
|
56471
|
-
let e = D.current, t = e != null &&
|
|
56479
|
+
if (t !== 0 && !x.state.multiple && P !== null && tW(E.current, P, L) === -1) {
|
|
56480
|
+
let e = D.current, t = e != null && tW(E.current, e, L) !== -1 ? e : null;
|
|
56472
56481
|
k(t, n), t === null && (x.set("selectedIndex", null), T.current = null);
|
|
56473
56482
|
}
|
|
56474
56483
|
if (t !== 0 && x.state.multiple && Array.isArray(P)) {
|
|
56475
|
-
let e = P.filter((e) =>
|
|
56484
|
+
let e = P.filter((e) => tW(E.current, e, L) !== -1);
|
|
56476
56485
|
e.length !== P.length && (k(e, n), e.length === 0 && (x.set("selectedIndex", null), T.current = null));
|
|
56477
56486
|
}
|
|
56478
56487
|
if (j && re) {
|
|
@@ -56481,7 +56490,7 @@ var VW = { position: "fixed" }, HW = /*#__PURE__*/ h.forwardRef(function(e, t) {
|
|
|
56481
56490
|
scrollDownArrowVisible: !1
|
|
56482
56491
|
});
|
|
56483
56492
|
let e = { height: "" };
|
|
56484
|
-
|
|
56493
|
+
RW(I, e), RW(O.current, e);
|
|
56485
56494
|
}
|
|
56486
56495
|
}), ue = h.useMemo(() => ({
|
|
56487
56496
|
...ie,
|
|
@@ -56496,11 +56505,11 @@ var VW = { position: "fixed" }, HW = /*#__PURE__*/ h.forwardRef(function(e, t) {
|
|
|
56496
56505
|
re,
|
|
56497
56506
|
ne
|
|
56498
56507
|
]);
|
|
56499
|
-
return /*#__PURE__*/ (0, g.jsx)(
|
|
56508
|
+
return /*#__PURE__*/ (0, g.jsx)(kW, {
|
|
56500
56509
|
elementsRef: S,
|
|
56501
56510
|
labelsRef: C,
|
|
56502
56511
|
onMapChange: le,
|
|
56503
|
-
children: /*#__PURE__*/ (0, g.jsxs)(
|
|
56512
|
+
children: /*#__PURE__*/ (0, g.jsxs)(IW.Provider, {
|
|
56504
56513
|
value: ue,
|
|
56505
56514
|
children: [M && N && /*#__PURE__*/ (0, g.jsx)(ad, {
|
|
56506
56515
|
inert: id(!j),
|
|
@@ -56509,63 +56518,63 @@ var VW = { position: "fixed" }, HW = /*#__PURE__*/ h.forwardRef(function(e, t) {
|
|
|
56509
56518
|
})
|
|
56510
56519
|
});
|
|
56511
56520
|
});
|
|
56512
|
-
process.env.NODE_ENV !== "production" && (
|
|
56521
|
+
process.env.NODE_ENV !== "production" && (UW.displayName = "SelectPositioner");
|
|
56513
56522
|
//#endregion
|
|
56514
56523
|
//#region node_modules/@base-ui/react/utils/styles.mjs
|
|
56515
|
-
var
|
|
56516
|
-
className:
|
|
56524
|
+
var WW = "base-ui-disable-scrollbar", GW = {
|
|
56525
|
+
className: WW,
|
|
56517
56526
|
getElement(e) {
|
|
56518
56527
|
return /*#__PURE__*/ (0, g.jsx)("style", {
|
|
56519
56528
|
nonce: e,
|
|
56520
|
-
href:
|
|
56529
|
+
href: WW,
|
|
56521
56530
|
precedence: "base-ui:low",
|
|
56522
|
-
children: `.${
|
|
56531
|
+
children: `.${WW}{scrollbar-width:none}.${WW}::-webkit-scrollbar{display:none}`
|
|
56523
56532
|
});
|
|
56524
56533
|
}
|
|
56525
56534
|
};
|
|
56526
|
-
process.env.NODE_ENV !== "production" && (
|
|
56535
|
+
process.env.NODE_ENV !== "production" && (GW.getElement.displayName = "styleDisableScrollbar.getElement");
|
|
56527
56536
|
//#endregion
|
|
56528
56537
|
//#region node_modules/@base-ui/react/toolbar/root/ToolbarRootContext.mjs
|
|
56529
|
-
var
|
|
56530
|
-
process.env.NODE_ENV !== "production" && (
|
|
56531
|
-
function
|
|
56532
|
-
let t = h.useContext(
|
|
56538
|
+
var KW = /*#__PURE__*/ h.createContext(void 0);
|
|
56539
|
+
process.env.NODE_ENV !== "production" && (KW.displayName = "ToolbarRootContext");
|
|
56540
|
+
function qW(e) {
|
|
56541
|
+
let t = h.useContext(KW);
|
|
56533
56542
|
if (t === void 0 && !e) throw Error(process.env.NODE_ENV === "production" ? Ct(69) : "Base UI: ToolbarRootContext is missing. Toolbar parts must be placed within <Toolbar.Root>.");
|
|
56534
56543
|
return t;
|
|
56535
56544
|
}
|
|
56536
56545
|
//#endregion
|
|
56537
56546
|
//#region node_modules/@base-ui/react/internals/csp-context/CSPContext.mjs
|
|
56538
|
-
var
|
|
56539
|
-
process.env.NODE_ENV !== "production" && (
|
|
56540
|
-
var
|
|
56541
|
-
function
|
|
56542
|
-
return h.useContext(
|
|
56547
|
+
var JW = /*#__PURE__*/ h.createContext(void 0);
|
|
56548
|
+
process.env.NODE_ENV !== "production" && (JW.displayName = "CSPContext");
|
|
56549
|
+
var YW = { disableStyleElements: !1 };
|
|
56550
|
+
function XW() {
|
|
56551
|
+
return h.useContext(JW) ?? YW;
|
|
56543
56552
|
}
|
|
56544
56553
|
//#endregion
|
|
56545
56554
|
//#region node_modules/@base-ui/react/select/popup/SelectPopup.mjs
|
|
56546
|
-
var
|
|
56555
|
+
var ZW = {
|
|
56547
56556
|
...Bs,
|
|
56548
56557
|
...cs
|
|
56549
|
-
},
|
|
56550
|
-
let { render: n, className: r, style: i, finalFocus: a, ...o } = e, { store: s, popupRef: c, onOpenChangeComplete: l, setOpen: u, valueRef: d, firstItemTextRef: f, selectedItemTextRef: p, multiple: m, handleScrollArrowVisibility: _, scrollHandlerRef: v, listRef: y, highlightItemOnHover: b, floatingContext: x } =
|
|
56558
|
+
}, QW = /*#__PURE__*/ h.forwardRef(function(e, t) {
|
|
56559
|
+
let { render: n, className: r, style: i, finalFocus: a, ...o } = e, { store: s, popupRef: c, onOpenChangeComplete: l, setOpen: u, valueRef: d, firstItemTextRef: f, selectedItemTextRef: p, multiple: m, handleScrollArrowVisibility: _, scrollHandlerRef: v, listRef: y, highlightItemOnHover: b, floatingContext: x } = QU(), { side: S, align: C, alignItemWithTriggerActive: w, isPositioned: T, setControlledAlignItemWithTrigger: E } = LW(), D = qW(!0) != null, O = Rd(), { nonce: k, disableStyleElements: A } = XW(), j = G(s, uW.id), M = G(s, uW.open), N = G(s, uW.openMethod), P = G(s, uW.mounted), F = G(s, uW.popupProps), I = G(s, uW.transitionStatus), ee = G(s, uW.triggerElement), L = G(s, uW.positionerElement), te = G(s, uW.listElement), R = h.useRef(!1), z = h.useRef(!1), B = h.useRef({}), ne = es(), re = Qn((e) => {
|
|
56551
56560
|
if (!L || !c.current || !z.current) return;
|
|
56552
56561
|
let t = L.style.top === "0px", n = L.style.bottom === "0px";
|
|
56553
56562
|
if (R.current || !w || !t && !n) {
|
|
56554
56563
|
_(e);
|
|
56555
56564
|
return;
|
|
56556
56565
|
}
|
|
56557
|
-
let r =
|
|
56566
|
+
let r = tG(L), i = nG(L.getBoundingClientRect().height, "y", r), a = sr(L), o = En(L), s = o.getComputedStyle(L), l = parseFloat(s.marginTop), u = parseFloat(s.marginBottom), d = $W(o.getComputedStyle(c.current)), f = Math.min(a.documentElement.clientHeight - l - u, d), p = e.scrollTop, m = eG(e), h = null, g = (e) => {
|
|
56558
56567
|
L.style.height = `${e}px`;
|
|
56559
56568
|
}, v = t ? m - p : p, y = Math.min(i + v, f);
|
|
56560
56569
|
if (v <= 1) {
|
|
56561
|
-
let n =
|
|
56570
|
+
let n = fW(v, 0, f - i);
|
|
56562
56571
|
n > 0 && g(i + n), e.scrollTop = t ? m : 0, f - (i + n) <= 1 && (R.current = !0), _(e);
|
|
56563
56572
|
return;
|
|
56564
56573
|
}
|
|
56565
56574
|
f - y > 1 ? h = t ? Infinity : 0 : n && p < m && (h = p - (v - (i + v - f)));
|
|
56566
56575
|
let b = Math.ceil(y);
|
|
56567
56576
|
if (b !== 0 && g(b), h != null) {
|
|
56568
|
-
let t =
|
|
56577
|
+
let t = fW(h, 0, eG(e));
|
|
56569
56578
|
Math.abs(e.scrollTop - t) > 1 && (e.scrollTop = t);
|
|
56570
56579
|
}
|
|
56571
56580
|
b >= f - 1 && (R.current = !0), _(e);
|
|
@@ -56596,7 +56605,7 @@ var XW = {
|
|
|
56596
56605
|
marginBottom: L.style.marginBottom
|
|
56597
56606
|
});
|
|
56598
56607
|
}, [c, L]), rr(() => {
|
|
56599
|
-
M || w || (z.current = !1, R.current = !1,
|
|
56608
|
+
M || w || (z.current = !1, R.current = !1, RW(L, B.current));
|
|
56600
56609
|
}, [
|
|
56601
56610
|
M,
|
|
56602
56611
|
w,
|
|
@@ -56609,33 +56618,33 @@ var XW = {
|
|
|
56609
56618
|
ne.request(() => _(te || e));
|
|
56610
56619
|
return;
|
|
56611
56620
|
}
|
|
56612
|
-
let t =
|
|
56621
|
+
let t = aG(e);
|
|
56613
56622
|
try {
|
|
56614
56623
|
let t = p.current;
|
|
56615
|
-
t?.isConnected || (t = !
|
|
56616
|
-
let n = d.current, r = En(L), i = r.getComputedStyle(L), a = r.getComputedStyle(e), o = sr(ee), c =
|
|
56624
|
+
t?.isConnected || (t = !uW.hasSelectedValue(s.state) && f.current?.isConnected ? f.current : null);
|
|
56625
|
+
let n = d.current, r = En(L), i = r.getComputedStyle(L), a = r.getComputedStyle(e), o = sr(ee), c = tG(ee), l = rG(ee.getBoundingClientRect(), c), u = rG(L.getBoundingClientRect(), c), m = l.height, h = te || e, g = h.scrollHeight, v = parseFloat(a.borderBottomWidth), x = parseFloat(i.marginTop) || 10, S = parseFloat(i.marginBottom) || 10, C = parseFloat(i.minHeight) || 100, w = $W(a), T = o.documentElement.clientHeight - x - S, D = o.documentElement.clientWidth, k = T - l.bottom + m, A, j = O === "rtl" ? l.right - u.width : l.left, M = 0;
|
|
56617
56626
|
if (t && n) {
|
|
56618
|
-
let e =
|
|
56619
|
-
A =
|
|
56627
|
+
let e = rG(n.getBoundingClientRect(), c);
|
|
56628
|
+
A = rG(t.getBoundingClientRect(), c), j = u.left + (O === "rtl" ? e.right - A.right : e.left - A.left);
|
|
56620
56629
|
let r = e.top - l.top + e.height / 2;
|
|
56621
56630
|
M = A.top - u.top + A.height / 2 - r;
|
|
56622
56631
|
}
|
|
56623
56632
|
let N = k + M + S + v, P = Math.min(T, N), F = T - x - S, I = N - P, z = D - 5;
|
|
56624
|
-
L.style.left = `${
|
|
56625
|
-
let ne =
|
|
56633
|
+
L.style.left = `${fW(j, 5, z - u.width)}px`, L.style.height = `${P}px`, L.style.maxHeight = "none", L.style.marginTop = `${x}px`, L.style.marginBottom = `${S}px`, e.style.height = "100%";
|
|
56634
|
+
let ne = eG(h), re = I >= ne - 1;
|
|
56626
56635
|
re && (P = Math.min(T, u.height) - (I - ne));
|
|
56627
56636
|
let ie = l.top < 20 || l.bottom > T - 20 || Math.ceil(P) + 1 < Math.min(g, C), ae = (r.visualViewport?.scale ?? 1) !== 1 && _a;
|
|
56628
56637
|
if (ie || ae) {
|
|
56629
|
-
|
|
56638
|
+
RW(L, B.current), E(!1);
|
|
56630
56639
|
return;
|
|
56631
56640
|
}
|
|
56632
56641
|
let oe = Math.max(C, P);
|
|
56633
56642
|
if (re) {
|
|
56634
56643
|
let e = Math.max(0, T - N);
|
|
56635
|
-
L.style.top = u.height >= F ? "0" : `${e}px`, L.style.height = `${P}px`, h.scrollTop =
|
|
56644
|
+
L.style.top = u.height >= F ? "0" : `${e}px`, L.style.height = `${P}px`, h.scrollTop = eG(h);
|
|
56636
56645
|
} else L.style.bottom = "0", h.scrollTop = I;
|
|
56637
56646
|
if (A) {
|
|
56638
|
-
let t = u.top, n = u.height, r = A.top + A.height / 2, i =
|
|
56647
|
+
let t = u.top, n = u.height, r = A.top + A.height / 2, i = fW(n > 0 ? (r - t) / n * 100 : 50, 0, 100);
|
|
56639
56648
|
e.style.setProperty("--transform-origin", `50% ${i}%`);
|
|
56640
56649
|
}
|
|
56641
56650
|
(oe === T || P >= w) && (R.current = !0), _(h), b && s.state.selectedIndex === null && s.state.activeIndex === null && y.current[0] != null && s.set("activeIndex", 0);
|
|
@@ -56688,12 +56697,12 @@ var XW = {
|
|
|
56688
56697
|
onScroll(e) {
|
|
56689
56698
|
te || re(e.currentTarget);
|
|
56690
56699
|
},
|
|
56691
|
-
...w && { style: te ? { height: "100%" } :
|
|
56692
|
-
className: !te && w ?
|
|
56700
|
+
...w && { style: te ? { height: "100%" } : zW },
|
|
56701
|
+
className: !te && w ? GW.className : void 0
|
|
56693
56702
|
}, oe = Ut("div", e, {
|
|
56694
56703
|
ref: [t, c],
|
|
56695
56704
|
state: ie,
|
|
56696
|
-
stateAttributesMapping:
|
|
56705
|
+
stateAttributesMapping: ZW,
|
|
56697
56706
|
props: [
|
|
56698
56707
|
F,
|
|
56699
56708
|
ae,
|
|
@@ -56701,7 +56710,7 @@ var XW = {
|
|
|
56701
56710
|
o
|
|
56702
56711
|
]
|
|
56703
56712
|
});
|
|
56704
|
-
return /*#__PURE__*/ (0, g.jsxs)(h.Fragment, { children: [!A &&
|
|
56713
|
+
return /*#__PURE__*/ (0, g.jsxs)(h.Fragment, { children: [!A && GW.getElement(k), /*#__PURE__*/ (0, g.jsx)(Fc, {
|
|
56705
56714
|
context: x,
|
|
56706
56715
|
modal: !1,
|
|
56707
56716
|
disabled: !P,
|
|
@@ -56711,38 +56720,38 @@ var XW = {
|
|
|
56711
56720
|
children: oe
|
|
56712
56721
|
})] });
|
|
56713
56722
|
});
|
|
56714
|
-
process.env.NODE_ENV !== "production" && (
|
|
56715
|
-
function
|
|
56723
|
+
process.env.NODE_ENV !== "production" && (QW.displayName = "SelectPopup");
|
|
56724
|
+
function $W(e) {
|
|
56716
56725
|
let t = e.maxHeight;
|
|
56717
56726
|
return t.endsWith("px") && parseFloat(t) || Infinity;
|
|
56718
56727
|
}
|
|
56719
|
-
function $W(e) {
|
|
56720
|
-
return fW(e.scrollHeight, e.clientHeight);
|
|
56721
|
-
}
|
|
56722
56728
|
function eG(e) {
|
|
56729
|
+
return pW(e.scrollHeight, e.clientHeight);
|
|
56730
|
+
}
|
|
56731
|
+
function tG(e) {
|
|
56723
56732
|
return Sl.getScale(e);
|
|
56724
56733
|
}
|
|
56725
|
-
function
|
|
56734
|
+
function nG(e, t, n) {
|
|
56726
56735
|
return e / n[t];
|
|
56727
56736
|
}
|
|
56728
|
-
function
|
|
56737
|
+
function rG(e, t) {
|
|
56729
56738
|
return mo({
|
|
56730
|
-
x:
|
|
56731
|
-
y:
|
|
56732
|
-
width:
|
|
56733
|
-
height:
|
|
56739
|
+
x: nG(e.x, "x", t),
|
|
56740
|
+
y: nG(e.y, "y", t),
|
|
56741
|
+
width: nG(e.width, "x", t),
|
|
56742
|
+
height: nG(e.height, "y", t)
|
|
56734
56743
|
});
|
|
56735
56744
|
}
|
|
56736
|
-
var
|
|
56745
|
+
var iG = [
|
|
56737
56746
|
["transform", "none"],
|
|
56738
56747
|
["scale", "1"],
|
|
56739
56748
|
["translate", "0 0"]
|
|
56740
56749
|
];
|
|
56741
|
-
function
|
|
56750
|
+
function aG(e) {
|
|
56742
56751
|
let { style: t } = e, n = {};
|
|
56743
|
-
for (let [e, r] of
|
|
56752
|
+
for (let [e, r] of iG) n[e] = t.getPropertyValue(e), t.setProperty(e, r, "important");
|
|
56744
56753
|
return () => {
|
|
56745
|
-
for (let [e] of
|
|
56754
|
+
for (let [e] of iG) {
|
|
56746
56755
|
let r = n[e];
|
|
56747
56756
|
r ? t.setProperty(e, r) : t.removeProperty(e);
|
|
56748
56757
|
}
|
|
@@ -56750,27 +56759,27 @@ function iG(e) {
|
|
|
56750
56759
|
}
|
|
56751
56760
|
//#endregion
|
|
56752
56761
|
//#region node_modules/@base-ui/react/select/list/SelectList.mjs
|
|
56753
|
-
var
|
|
56754
|
-
let { render: n, className: r, style: i, ...a } = e, { store: o, scrollHandlerRef: s, multiple: c } =
|
|
56755
|
-
id: `${G(o,
|
|
56762
|
+
var oG = /*#__PURE__*/ h.forwardRef(function(e, t) {
|
|
56763
|
+
let { render: n, className: r, style: i, ...a } = e, { store: o, scrollHandlerRef: s, multiple: c } = QU(), { alignItemWithTriggerActive: l } = LW(), u = G(o, uW.hasScrollArrows), d = G(o, uW.openMethod), f = {
|
|
56764
|
+
id: `${G(o, uW.id)}-list`,
|
|
56756
56765
|
role: "listbox",
|
|
56757
56766
|
"aria-multiselectable": c || void 0,
|
|
56758
56767
|
onScroll(e) {
|
|
56759
56768
|
s.current?.(e.currentTarget);
|
|
56760
56769
|
},
|
|
56761
|
-
...l && { style:
|
|
56762
|
-
className: u && d !== "touch" ?
|
|
56770
|
+
...l && { style: zW },
|
|
56771
|
+
className: u && d !== "touch" ? GW.className : void 0
|
|
56763
56772
|
};
|
|
56764
56773
|
return Ut("div", e, {
|
|
56765
56774
|
ref: [t, o.useStateSetter("listElement")],
|
|
56766
56775
|
props: [f, a]
|
|
56767
56776
|
});
|
|
56768
56777
|
});
|
|
56769
|
-
process.env.NODE_ENV !== "production" && (
|
|
56778
|
+
process.env.NODE_ENV !== "production" && (oG.displayName = "SelectList");
|
|
56770
56779
|
//#endregion
|
|
56771
56780
|
//#region node_modules/@base-ui/react/internals/composite/list/useCompositeListItem.mjs
|
|
56772
|
-
function
|
|
56773
|
-
let { guess: t, label: n, metadata: r, textRef: i, index: a } = e, { register: o, unregister: s, subscribeMapChange: c, nextIndexRef: l } =
|
|
56781
|
+
function sG(e = {}) {
|
|
56782
|
+
let { guess: t, label: n, metadata: r, textRef: i, index: a } = e, { register: o, unregister: s, subscribeMapChange: c, nextIndexRef: l } = OW(), u = h.useRef(-1), [d, f] = h.useState(a == null && t ? () => {
|
|
56774
56783
|
if (u.current === -1) {
|
|
56775
56784
|
let e = l.current;
|
|
56776
56785
|
l.current += 1, u.current = e;
|
|
@@ -56804,21 +56813,21 @@ function oG(e = {}) {
|
|
|
56804
56813
|
}
|
|
56805
56814
|
//#endregion
|
|
56806
56815
|
//#region node_modules/@base-ui/react/select/item/SelectItemContext.mjs
|
|
56807
|
-
var
|
|
56808
|
-
process.env.NODE_ENV !== "production" && (
|
|
56809
|
-
function
|
|
56810
|
-
let e = h.useContext(
|
|
56816
|
+
var cG = /*#__PURE__*/ h.createContext(void 0);
|
|
56817
|
+
process.env.NODE_ENV !== "production" && (cG.displayName = "SelectItemContext");
|
|
56818
|
+
function lG() {
|
|
56819
|
+
let e = h.useContext(cG);
|
|
56811
56820
|
if (!e) throw Error(process.env.NODE_ENV === "production" ? Ct(57) : "Base UI: SelectItemContext is missing. SelectItem parts must be placed within <Select.Item>.");
|
|
56812
56821
|
return e;
|
|
56813
56822
|
}
|
|
56814
56823
|
//#endregion
|
|
56815
56824
|
//#region node_modules/@base-ui/react/select/item/SelectItem.mjs
|
|
56816
|
-
var
|
|
56817
|
-
let { render: n, className: r, style: i, value: a = null, label: o, disabled: s = !1, nativeButton: c = !1, ...l } = e, u = h.useRef(null), d =
|
|
56825
|
+
var uG = /*#__PURE__*/ h.memo(/*#__PURE__*/ h.forwardRef(function(e, t) {
|
|
56826
|
+
let { render: n, className: r, style: i, value: a = null, label: o, disabled: s = !1, nativeButton: c = !1, ...l } = e, u = h.useRef(null), d = sG({
|
|
56818
56827
|
guess: !0,
|
|
56819
56828
|
label: o,
|
|
56820
56829
|
textRef: u
|
|
56821
|
-
}), { store: f, itemProps: p, setOpen: m, setValue: _, selectionRef: v, typingRef: y, valuesRef: b, multiple: x, selectedItemTextRef: S, disabled: C, readOnly: w } =
|
|
56830
|
+
}), { store: f, itemProps: p, setOpen: m, setValue: _, selectionRef: v, typingRef: y, valuesRef: b, multiple: x, selectedItemTextRef: S, disabled: C, readOnly: w } = QU(), T = C || s, E = G(f, uW.isActive, d.index), D = G(f, uW.open), O = G(f, uW.isSelected, a), k = G(f, uW.isSelectedByFocus, d.index), A = G(f, uW.isItemEqualToValue), j = d.index, M = h.useRef(null);
|
|
56822
56831
|
rr(() => {
|
|
56823
56832
|
let e = b.current;
|
|
56824
56833
|
return e[j] = a, () => {
|
|
@@ -56830,7 +56839,7 @@ var lG = /*#__PURE__*/ h.memo(/*#__PURE__*/ h.forwardRef(function(e, t) {
|
|
|
56830
56839
|
b
|
|
56831
56840
|
]), rr(() => {
|
|
56832
56841
|
let e = f.state.value, t = e;
|
|
56833
|
-
x && Array.isArray(e) && (t = e.length > 0 ? e[e.length - 1] : void 0), t !== void 0 &&
|
|
56842
|
+
x && Array.isArray(e) && (t = e.length > 0 ? e[e.length - 1] : void 0), t !== void 0 && eW(a, t, A) && (f.set("selectedIndex", j), u.current && (S.current = u.current));
|
|
56834
56843
|
}, [
|
|
56835
56844
|
j,
|
|
56836
56845
|
x,
|
|
@@ -56853,7 +56862,7 @@ var lG = /*#__PURE__*/ h.memo(/*#__PURE__*/ h.forwardRef(function(e, t) {
|
|
|
56853
56862
|
if (C || w) return;
|
|
56854
56863
|
let t = f.state.value;
|
|
56855
56864
|
if (x) {
|
|
56856
|
-
let n = Array.isArray(t) ? t : [], r = O ?
|
|
56865
|
+
let n = Array.isArray(t) ? t : [], r = O ? nW(n, a, A) : [...n, a];
|
|
56857
56866
|
_(r, Ds(gs, e));
|
|
56858
56867
|
} else _(a, Ds(gs, e)), m(!1, Ds(gs, e));
|
|
56859
56868
|
}
|
|
@@ -56913,24 +56922,24 @@ var lG = /*#__PURE__*/ h.memo(/*#__PURE__*/ h.forwardRef(function(e, t) {
|
|
|
56913
56922
|
u,
|
|
56914
56923
|
k
|
|
56915
56924
|
]);
|
|
56916
|
-
return /*#__PURE__*/ (0, g.jsx)(
|
|
56925
|
+
return /*#__PURE__*/ (0, g.jsx)(cG.Provider, {
|
|
56917
56926
|
value: B,
|
|
56918
56927
|
children: z
|
|
56919
56928
|
});
|
|
56920
56929
|
}));
|
|
56921
|
-
process.env.NODE_ENV !== "production" && (
|
|
56930
|
+
process.env.NODE_ENV !== "production" && (uG.displayName = "SelectItem");
|
|
56922
56931
|
//#endregion
|
|
56923
56932
|
//#region node_modules/@base-ui/react/select/item-indicator/SelectItemIndicator.mjs
|
|
56924
|
-
var
|
|
56925
|
-
let { selected: n } =
|
|
56926
|
-
return e.keepMounted || n ? /*#__PURE__*/ (0, g.jsx)(
|
|
56933
|
+
var dG = /*#__PURE__*/ h.forwardRef(function(e, t) {
|
|
56934
|
+
let { selected: n } = lG();
|
|
56935
|
+
return e.keepMounted || n ? /*#__PURE__*/ (0, g.jsx)(fG, {
|
|
56927
56936
|
...e,
|
|
56928
56937
|
ref: t
|
|
56929
56938
|
}) : null;
|
|
56930
56939
|
});
|
|
56931
|
-
process.env.NODE_ENV !== "production" && (
|
|
56932
|
-
var
|
|
56933
|
-
let { render: n, className: r, style: i, keepMounted: a, ...o } = e, { selected: s } =
|
|
56940
|
+
process.env.NODE_ENV !== "production" && (dG.displayName = "SelectItemIndicator");
|
|
56941
|
+
var fG = /*#__PURE__*/ h.memo(/*#__PURE__*/ h.forwardRef((e, t) => {
|
|
56942
|
+
let { render: n, className: r, style: i, keepMounted: a, ...o } = e, { selected: s } = lG(), c = h.useRef(null), { transitionStatus: l, setMounted: u } = ls(s), d = Ut("span", e, {
|
|
56934
56943
|
ref: [t, c],
|
|
56935
56944
|
state: {
|
|
56936
56945
|
selected: s,
|
|
@@ -56950,11 +56959,11 @@ var dG = /*#__PURE__*/ h.memo(/*#__PURE__*/ h.forwardRef((e, t) => {
|
|
|
56950
56959
|
}
|
|
56951
56960
|
}), d;
|
|
56952
56961
|
}));
|
|
56953
|
-
process.env.NODE_ENV !== "production" && (
|
|
56962
|
+
process.env.NODE_ENV !== "production" && (fG.displayName = "Inner");
|
|
56954
56963
|
//#endregion
|
|
56955
56964
|
//#region node_modules/@base-ui/react/select/item-text/SelectItemText.mjs
|
|
56956
|
-
var
|
|
56957
|
-
let { index: n, textRef: r, selectedByFocus: i } =
|
|
56965
|
+
var pG = /*#__PURE__*/ h.memo(/*#__PURE__*/ h.forwardRef(function(e, t) {
|
|
56966
|
+
let { index: n, textRef: r, selectedByFocus: i } = lG(), { firstItemTextRef: a, selectedItemTextRef: o } = QU(), { render: s, className: c, style: l, ...u } = e;
|
|
56958
56967
|
return Ut("div", e, {
|
|
56959
56968
|
ref: [
|
|
56960
56969
|
h.useCallback((e) => {
|
|
@@ -56971,11 +56980,11 @@ var fG = /*#__PURE__*/ h.memo(/*#__PURE__*/ h.forwardRef(function(e, t) {
|
|
|
56971
56980
|
props: u
|
|
56972
56981
|
});
|
|
56973
56982
|
}));
|
|
56974
|
-
process.env.NODE_ENV !== "production" && (
|
|
56983
|
+
process.env.NODE_ENV !== "production" && (pG.displayName = "SelectItemText");
|
|
56975
56984
|
//#endregion
|
|
56976
56985
|
//#region node_modules/@base-ui/react/select/scroll-arrow/SelectScrollArrow.mjs
|
|
56977
|
-
var
|
|
56978
|
-
let { render: n, className: r, style: i, direction: a, keepMounted: o, ...s } = e, c = a === "up", { store: l, popupRef: u, listRef: d, handleScrollArrowVisibility: f, scrollArrowsMountedCountRef: p } =
|
|
56986
|
+
var mG = /*#__PURE__*/ h.forwardRef(function(e, t) {
|
|
56987
|
+
let { render: n, className: r, style: i, direction: a, keepMounted: o, ...s } = e, c = a === "up", { store: l, popupRef: u, listRef: d, handleScrollArrowVisibility: f, scrollArrowsMountedCountRef: p } = QU(), { side: m, scrollDownArrowRef: h, scrollUpArrowRef: g } = LW(), _ = G(l, c ? uW.scrollUpArrowVisible : uW.scrollDownArrowVisible), v = G(l, uW.openMethod), y = _ && v !== "touch", b = qo(), x = c ? g : h, { mounted: S, transitionStatus: C, setMounted: w } = ls(y);
|
|
56979
56988
|
rr(() => (p.current += 1, l.set("hasScrollArrows", !0), () => {
|
|
56980
56989
|
p.current = Math.max(0, p.current - 1), p.current === 0 && l.set("hasScrollArrows", !1);
|
|
56981
56990
|
}), [l, p]), is({
|
|
@@ -57004,14 +57013,14 @@ var pG = /*#__PURE__*/ h.forwardRef(function(e, t) {
|
|
|
57004
57013
|
let e = l.state.listElement ?? u.current;
|
|
57005
57014
|
if (!e) return;
|
|
57006
57015
|
l.set("activeIndex", null), f(e);
|
|
57007
|
-
let n =
|
|
57016
|
+
let n = pW(e.scrollHeight, e.clientHeight), r = mW(e.scrollTop, n), i = r === (c ? 0 : n), a = d.current;
|
|
57008
57017
|
if (r !== e.scrollTop && (e.scrollTop = r), i) {
|
|
57009
57018
|
b.clear();
|
|
57010
57019
|
return;
|
|
57011
57020
|
}
|
|
57012
57021
|
if (a.length > 0) {
|
|
57013
57022
|
let t = x.current?.offsetHeight || 0;
|
|
57014
|
-
e.scrollTop =
|
|
57023
|
+
e.scrollTop = hG(a, c, r, e.clientHeight, t, n);
|
|
57015
57024
|
}
|
|
57016
57025
|
b.start(40, t);
|
|
57017
57026
|
}
|
|
@@ -57025,8 +57034,8 @@ var pG = /*#__PURE__*/ h.forwardRef(function(e, t) {
|
|
|
57025
57034
|
});
|
|
57026
57035
|
return S || o ? T : null;
|
|
57027
57036
|
});
|
|
57028
|
-
process.env.NODE_ENV !== "production" && (
|
|
57029
|
-
function
|
|
57037
|
+
process.env.NODE_ENV !== "production" && (mG.displayName = "SelectScrollArrow");
|
|
57038
|
+
function hG(e, t, n, r, i, a) {
|
|
57030
57039
|
if (t) {
|
|
57031
57040
|
let t = 0, r = n + i - 1;
|
|
57032
57041
|
for (let n = 0; n < e.length; n += 1) {
|
|
@@ -57037,7 +57046,7 @@ function mG(e, t, n, r, i, a) {
|
|
|
57037
57046
|
}
|
|
57038
57047
|
}
|
|
57039
57048
|
let o = Math.max(0, t - 1), s = e[o];
|
|
57040
|
-
return o < t && s ?
|
|
57049
|
+
return o < t && s ? mW(s.offsetTop - i, a) : 0;
|
|
57041
57050
|
}
|
|
57042
57051
|
let o = e.length - 1, s = n + r - i + 1;
|
|
57043
57052
|
for (let t = 0; t < e.length; t += 1) {
|
|
@@ -57048,92 +57057,92 @@ function mG(e, t, n, r, i, a) {
|
|
|
57048
57057
|
}
|
|
57049
57058
|
}
|
|
57050
57059
|
let c = Math.min(e.length - 1, o + 1), l = e[c];
|
|
57051
|
-
return c > o && l ?
|
|
57060
|
+
return c > o && l ? mW(l.offsetTop + l.offsetHeight - r + i, a) : a;
|
|
57052
57061
|
}
|
|
57053
57062
|
//#endregion
|
|
57054
57063
|
//#region node_modules/@base-ui/react/select/scroll-down-arrow/SelectScrollDownArrow.mjs
|
|
57055
|
-
var
|
|
57056
|
-
return /*#__PURE__*/ (0, g.jsx)(
|
|
57064
|
+
var gG = /*#__PURE__*/ h.forwardRef(function(e, t) {
|
|
57065
|
+
return /*#__PURE__*/ (0, g.jsx)(mG, {
|
|
57057
57066
|
...e,
|
|
57058
57067
|
ref: t,
|
|
57059
57068
|
direction: "down"
|
|
57060
57069
|
});
|
|
57061
57070
|
});
|
|
57062
|
-
process.env.NODE_ENV !== "production" && (
|
|
57071
|
+
process.env.NODE_ENV !== "production" && (gG.displayName = "SelectScrollDownArrow");
|
|
57063
57072
|
//#endregion
|
|
57064
57073
|
//#region node_modules/@base-ui/react/select/scroll-up-arrow/SelectScrollUpArrow.mjs
|
|
57065
|
-
var
|
|
57066
|
-
return /*#__PURE__*/ (0, g.jsx)(
|
|
57074
|
+
var _G = /*#__PURE__*/ h.forwardRef(function(e, t) {
|
|
57075
|
+
return /*#__PURE__*/ (0, g.jsx)(mG, {
|
|
57067
57076
|
...e,
|
|
57068
57077
|
ref: t,
|
|
57069
57078
|
direction: "up"
|
|
57070
57079
|
});
|
|
57071
57080
|
});
|
|
57072
|
-
process.env.NODE_ENV !== "production" && (
|
|
57081
|
+
process.env.NODE_ENV !== "production" && (_G.displayName = "SelectScrollUpArrow");
|
|
57073
57082
|
//#endregion
|
|
57074
57083
|
//#region src/client/components/ui/select.tsx
|
|
57075
|
-
var
|
|
57076
|
-
function
|
|
57077
|
-
return /* @__PURE__ */ (0, g.jsx)(
|
|
57084
|
+
var vG = hW;
|
|
57085
|
+
function yG({ className: e, ...t }) {
|
|
57086
|
+
return /* @__PURE__ */ (0, g.jsx)(wW, {
|
|
57078
57087
|
"data-slot": "select-value",
|
|
57079
57088
|
className: zi("flex flex-1 text-left", e),
|
|
57080
57089
|
...t
|
|
57081
57090
|
});
|
|
57082
57091
|
}
|
|
57083
|
-
function
|
|
57084
|
-
return /* @__PURE__ */ (0, g.jsxs)(
|
|
57092
|
+
function bG({ className: e, size: t = "default", children: n, ...r }) {
|
|
57093
|
+
return /* @__PURE__ */ (0, g.jsxs)(SW, {
|
|
57085
57094
|
"data-slot": "select-trigger",
|
|
57086
57095
|
"data-size": t,
|
|
57087
57096
|
className: zi("flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
|
|
57088
57097
|
...r,
|
|
57089
|
-
children: [n, /* @__PURE__ */ (0, g.jsx)(
|
|
57098
|
+
children: [n, /* @__PURE__ */ (0, g.jsx)(TW, { render: /* @__PURE__ */ (0, g.jsx)(_n, { className: "pointer-events-none size-4 text-muted-foreground" }) })]
|
|
57090
57099
|
});
|
|
57091
57100
|
}
|
|
57092
|
-
function
|
|
57093
|
-
return /* @__PURE__ */ (0, g.jsx)(
|
|
57101
|
+
function xG({ className: e, children: t, side: n = "bottom", sideOffset: r = 4, align: i = "center", alignOffset: a = 0, alignItemWithTrigger: o = !0, ...s }) {
|
|
57102
|
+
return /* @__PURE__ */ (0, g.jsx)(EW, { children: /* @__PURE__ */ (0, g.jsx)(UW, {
|
|
57094
57103
|
side: n,
|
|
57095
57104
|
sideOffset: r,
|
|
57096
57105
|
align: i,
|
|
57097
57106
|
alignOffset: a,
|
|
57098
57107
|
alignItemWithTrigger: o,
|
|
57099
57108
|
className: "isolate z-50",
|
|
57100
|
-
children: /* @__PURE__ */ (0, g.jsxs)(
|
|
57109
|
+
children: /* @__PURE__ */ (0, g.jsxs)(QW, {
|
|
57101
57110
|
"data-slot": "select-content",
|
|
57102
57111
|
"data-align-trigger": o,
|
|
57103
57112
|
className: zi("relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", e),
|
|
57104
57113
|
...s,
|
|
57105
57114
|
children: [
|
|
57106
|
-
/* @__PURE__ */ (0, g.jsx)(
|
|
57107
|
-
/* @__PURE__ */ (0, g.jsx)(
|
|
57108
|
-
/* @__PURE__ */ (0, g.jsx)(
|
|
57115
|
+
/* @__PURE__ */ (0, g.jsx)(CG, {}),
|
|
57116
|
+
/* @__PURE__ */ (0, g.jsx)(oG, { children: t }),
|
|
57117
|
+
/* @__PURE__ */ (0, g.jsx)(wG, {})
|
|
57109
57118
|
]
|
|
57110
57119
|
})
|
|
57111
57120
|
}) });
|
|
57112
57121
|
}
|
|
57113
|
-
function
|
|
57114
|
-
return /* @__PURE__ */ (0, g.jsxs)(
|
|
57122
|
+
function SG({ className: e, children: t, ...n }) {
|
|
57123
|
+
return /* @__PURE__ */ (0, g.jsxs)(uG, {
|
|
57115
57124
|
"data-slot": "select-item",
|
|
57116
57125
|
className: zi("relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", e),
|
|
57117
57126
|
...n,
|
|
57118
|
-
children: [/* @__PURE__ */ (0, g.jsx)(
|
|
57127
|
+
children: [/* @__PURE__ */ (0, g.jsx)(pG, {
|
|
57119
57128
|
className: "flex flex-1 shrink-0 gap-2 whitespace-nowrap",
|
|
57120
57129
|
children: t
|
|
57121
|
-
}), /* @__PURE__ */ (0, g.jsx)(
|
|
57130
|
+
}), /* @__PURE__ */ (0, g.jsx)(dG, {
|
|
57122
57131
|
render: /* @__PURE__ */ (0, g.jsx)("span", { className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center" }),
|
|
57123
57132
|
children: /* @__PURE__ */ (0, g.jsx)(gn, { className: "pointer-events-none" })
|
|
57124
57133
|
})]
|
|
57125
57134
|
});
|
|
57126
57135
|
}
|
|
57127
|
-
function
|
|
57128
|
-
return /* @__PURE__ */ (0, g.jsx)(
|
|
57136
|
+
function CG({ className: e, ...t }) {
|
|
57137
|
+
return /* @__PURE__ */ (0, g.jsx)(_G, {
|
|
57129
57138
|
"data-slot": "select-scroll-up-button",
|
|
57130
57139
|
className: zi("top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", e),
|
|
57131
57140
|
...t,
|
|
57132
57141
|
children: /* @__PURE__ */ (0, g.jsx)(yn, {})
|
|
57133
57142
|
});
|
|
57134
57143
|
}
|
|
57135
|
-
function
|
|
57136
|
-
return /* @__PURE__ */ (0, g.jsx)(
|
|
57144
|
+
function wG({ className: e, ...t }) {
|
|
57145
|
+
return /* @__PURE__ */ (0, g.jsx)(gG, {
|
|
57137
57146
|
"data-slot": "select-scroll-down-button",
|
|
57138
57147
|
className: zi("bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", e),
|
|
57139
57148
|
...t,
|
|
@@ -57141,62 +57150,8 @@ function CG({ className: e, ...t }) {
|
|
|
57141
57150
|
});
|
|
57142
57151
|
}
|
|
57143
57152
|
//#endregion
|
|
57144
|
-
//#region src/client/
|
|
57145
|
-
function
|
|
57146
|
-
return /* @__PURE__ */ (0, g.jsx)("textarea", {
|
|
57147
|
-
"data-slot": "textarea",
|
|
57148
|
-
className: zi("flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40", e),
|
|
57149
|
-
...t
|
|
57150
|
-
});
|
|
57151
|
-
}
|
|
57152
|
-
//#endregion
|
|
57153
|
-
//#region src/client/features/content/field-widgets.tsx
|
|
57154
|
-
function TG(e) {
|
|
57155
|
-
return e.initial === void 0 || e.initial === null ? void 0 : String(e.initial);
|
|
57156
|
-
}
|
|
57157
|
-
function EG({ node: e, value: t, onChange: n, issues: r, id: i, display: a }) {
|
|
57158
|
-
switch (e.kind) {
|
|
57159
|
-
case "string": return /* @__PURE__ */ (0, g.jsx)(DG, {
|
|
57160
|
-
id: i,
|
|
57161
|
-
value: t,
|
|
57162
|
-
onChange: n,
|
|
57163
|
-
placeholder: TG(e)
|
|
57164
|
-
});
|
|
57165
|
-
case "number": return /* @__PURE__ */ (0, g.jsx)(OG, {
|
|
57166
|
-
id: i,
|
|
57167
|
-
value: t,
|
|
57168
|
-
onChange: n,
|
|
57169
|
-
placeholder: TG(e)
|
|
57170
|
-
});
|
|
57171
|
-
case "boolean": return /* @__PURE__ */ (0, g.jsx)(AG, {
|
|
57172
|
-
label: e.label,
|
|
57173
|
-
value: t,
|
|
57174
|
-
onChange: n,
|
|
57175
|
-
initial: e.initial
|
|
57176
|
-
});
|
|
57177
|
-
case "enum": return /* @__PURE__ */ (0, g.jsx)(jG, {
|
|
57178
|
-
id: i,
|
|
57179
|
-
options: e.options,
|
|
57180
|
-
value: t,
|
|
57181
|
-
onChange: n,
|
|
57182
|
-
placeholder: TG(e) ?? "—"
|
|
57183
|
-
});
|
|
57184
|
-
case "image": return /* @__PURE__ */ (0, g.jsx)(MG, { value: a ?? t });
|
|
57185
|
-
case "array": return /* @__PURE__ */ (0, g.jsx)(PG, {
|
|
57186
|
-
node: e,
|
|
57187
|
-
value: t,
|
|
57188
|
-
onChange: n,
|
|
57189
|
-
issues: r
|
|
57190
|
-
});
|
|
57191
|
-
case "raw": return /* @__PURE__ */ (0, g.jsx)(IG, {
|
|
57192
|
-
id: i,
|
|
57193
|
-
node: e,
|
|
57194
|
-
value: t,
|
|
57195
|
-
onChange: n
|
|
57196
|
-
});
|
|
57197
|
-
}
|
|
57198
|
-
}
|
|
57199
|
-
function DG({ value: e, onChange: t, id: n, ariaLabel: r, placeholder: i }) {
|
|
57153
|
+
//#region src/client/features/content/value-widgets.tsx
|
|
57154
|
+
function TG({ value: e, onChange: t, id: n, ariaLabel: r, placeholder: i }) {
|
|
57200
57155
|
return /* @__PURE__ */ (0, g.jsx)(As, {
|
|
57201
57156
|
id: n,
|
|
57202
57157
|
"aria-label": r,
|
|
@@ -57205,92 +57160,69 @@ function DG({ value: e, onChange: t, id: n, ariaLabel: r, placeholder: i }) {
|
|
|
57205
57160
|
onChange: (e) => t(e.target.value)
|
|
57206
57161
|
});
|
|
57207
57162
|
}
|
|
57208
|
-
function
|
|
57163
|
+
function EG({ value: e, onChange: t, id: n, ariaLabel: r, placeholder: i }) {
|
|
57209
57164
|
return /* @__PURE__ */ (0, g.jsx)(As, {
|
|
57210
57165
|
id: n,
|
|
57211
57166
|
"aria-label": r,
|
|
57212
57167
|
type: "number",
|
|
57213
57168
|
value: e == null ? "" : String(e),
|
|
57214
57169
|
placeholder: i,
|
|
57215
|
-
onChange: (e) => t(
|
|
57170
|
+
onChange: (e) => t(DG(e.target.value))
|
|
57216
57171
|
});
|
|
57217
57172
|
}
|
|
57218
|
-
function
|
|
57173
|
+
function DG(e) {
|
|
57219
57174
|
if (e === "") return;
|
|
57220
57175
|
let t = Number(e);
|
|
57221
57176
|
return Number.isNaN(t) ? void 0 : t;
|
|
57222
57177
|
}
|
|
57223
|
-
function
|
|
57224
|
-
return /* @__PURE__ */ (0, g.jsx)(
|
|
57178
|
+
function OG({ label: e, value: t, onChange: n, initial: r }) {
|
|
57179
|
+
return /* @__PURE__ */ (0, g.jsx)(JU, {
|
|
57225
57180
|
"aria-label": e,
|
|
57226
57181
|
checked: t === void 0 ? !!r : !!t,
|
|
57227
57182
|
onCheckedChange: (e) => n(!!e)
|
|
57228
57183
|
});
|
|
57229
57184
|
}
|
|
57230
|
-
function
|
|
57231
|
-
return /* @__PURE__ */ (0, g.jsxs)(
|
|
57185
|
+
function kG({ options: e, value: t, onChange: n, id: r, ariaLabel: i, placeholder: a }) {
|
|
57186
|
+
return /* @__PURE__ */ (0, g.jsxs)(vG, {
|
|
57232
57187
|
items: e.map((e) => ({
|
|
57233
57188
|
value: e,
|
|
57234
57189
|
label: String(e)
|
|
57235
57190
|
})),
|
|
57236
57191
|
value: t ?? null,
|
|
57237
57192
|
onValueChange: (e) => n(e),
|
|
57238
|
-
children: [/* @__PURE__ */ (0, g.jsx)(
|
|
57193
|
+
children: [/* @__PURE__ */ (0, g.jsx)(bG, {
|
|
57239
57194
|
id: r,
|
|
57240
57195
|
"aria-label": i,
|
|
57241
|
-
children: /* @__PURE__ */ (0, g.jsx)(
|
|
57242
|
-
}), /* @__PURE__ */ (0, g.jsx)(
|
|
57196
|
+
children: /* @__PURE__ */ (0, g.jsx)(yG, { placeholder: a })
|
|
57197
|
+
}), /* @__PURE__ */ (0, g.jsx)(xG, {
|
|
57243
57198
|
className: "dark",
|
|
57244
|
-
children: e.map((e) => /* @__PURE__ */ (0, g.jsx)(
|
|
57199
|
+
children: e.map((e) => /* @__PURE__ */ (0, g.jsx)(SG, {
|
|
57245
57200
|
value: e,
|
|
57246
57201
|
children: String(e)
|
|
57247
57202
|
}, String(e)))
|
|
57248
57203
|
})]
|
|
57249
57204
|
});
|
|
57250
57205
|
}
|
|
57251
|
-
|
|
57252
|
-
|
|
57253
|
-
|
|
57254
|
-
["width", t.width],
|
|
57255
|
-
["height", t.height]
|
|
57256
|
-
].filter(([, e]) => e != null);
|
|
57257
|
-
return n.length === 0 ? /* @__PURE__ */ (0, g.jsx)("p", {
|
|
57258
|
-
"data-astroix-image-field": "empty",
|
|
57259
|
-
className: "text-xs text-muted-foreground",
|
|
57260
|
-
children: "no image data"
|
|
57261
|
-
}) : /* @__PURE__ */ (0, g.jsx)("dl", {
|
|
57262
|
-
"data-astroix-image-field": "meta",
|
|
57263
|
-
className: "flex flex-col gap-0.5 text-xs text-muted-foreground",
|
|
57264
|
-
children: n.map(([e, t]) => /* @__PURE__ */ (0, g.jsxs)("div", {
|
|
57265
|
-
className: "flex gap-2",
|
|
57266
|
-
children: [/* @__PURE__ */ (0, g.jsx)("dt", {
|
|
57267
|
-
className: "w-12 shrink-0",
|
|
57268
|
-
children: e
|
|
57269
|
-
}), /* @__PURE__ */ (0, g.jsx)("dd", {
|
|
57270
|
-
className: "truncate font-mono",
|
|
57271
|
-
children: String(t)
|
|
57272
|
-
})]
|
|
57273
|
-
}, e))
|
|
57274
|
-
});
|
|
57275
|
-
}
|
|
57276
|
-
function NG({ item: e, value: t, onChange: n, ariaLabel: r }) {
|
|
57206
|
+
//#endregion
|
|
57207
|
+
//#region src/client/features/content/array-rows.tsx
|
|
57208
|
+
function AG({ item: e, value: t, onChange: n, ariaLabel: r }) {
|
|
57277
57209
|
switch (e.kind) {
|
|
57278
|
-
case "string": return /* @__PURE__ */ (0, g.jsx)(
|
|
57210
|
+
case "string": return /* @__PURE__ */ (0, g.jsx)(TG, {
|
|
57279
57211
|
ariaLabel: r,
|
|
57280
57212
|
value: t,
|
|
57281
57213
|
onChange: n
|
|
57282
57214
|
});
|
|
57283
|
-
case "number": return /* @__PURE__ */ (0, g.jsx)(
|
|
57215
|
+
case "number": return /* @__PURE__ */ (0, g.jsx)(EG, {
|
|
57284
57216
|
ariaLabel: r,
|
|
57285
57217
|
value: t,
|
|
57286
57218
|
onChange: n
|
|
57287
57219
|
});
|
|
57288
|
-
case "boolean": return /* @__PURE__ */ (0, g.jsx)(
|
|
57220
|
+
case "boolean": return /* @__PURE__ */ (0, g.jsx)(OG, {
|
|
57289
57221
|
label: r,
|
|
57290
57222
|
value: t,
|
|
57291
57223
|
onChange: n
|
|
57292
57224
|
});
|
|
57293
|
-
case "enum": return /* @__PURE__ */ (0, g.jsx)(
|
|
57225
|
+
case "enum": return /* @__PURE__ */ (0, g.jsx)(kG, {
|
|
57294
57226
|
ariaLabel: r,
|
|
57295
57227
|
options: e.options ?? [],
|
|
57296
57228
|
value: t,
|
|
@@ -57298,7 +57230,7 @@ function NG({ item: e, value: t, onChange: n, ariaLabel: r }) {
|
|
|
57298
57230
|
});
|
|
57299
57231
|
}
|
|
57300
57232
|
}
|
|
57301
|
-
function
|
|
57233
|
+
function jG({ node: e, value: t, onChange: n, issues: r }) {
|
|
57302
57234
|
let i = Array.isArray(t) ? t : [];
|
|
57303
57235
|
return /* @__PURE__ */ (0, g.jsxs)("div", {
|
|
57304
57236
|
className: "flex flex-col gap-2",
|
|
@@ -57307,7 +57239,7 @@ function PG({ node: e, value: t, onChange: n, issues: r }) {
|
|
|
57307
57239
|
children: [/* @__PURE__ */ (0, g.jsxs)("div", {
|
|
57308
57240
|
className: "min-w-0 flex-1",
|
|
57309
57241
|
"data-astroix-form-field": `${e.path}.${a}`,
|
|
57310
|
-
children: [/* @__PURE__ */ (0, g.jsx)(
|
|
57242
|
+
children: [/* @__PURE__ */ (0, g.jsx)(AG, {
|
|
57311
57243
|
item: e.item,
|
|
57312
57244
|
value: t,
|
|
57313
57245
|
ariaLabel: `${e.label} ${a + 1}`,
|
|
@@ -57332,7 +57264,7 @@ function PG({ node: e, value: t, onChange: n, issues: r }) {
|
|
|
57332
57264
|
size: "xs",
|
|
57333
57265
|
className: "w-fit",
|
|
57334
57266
|
"data-astroix-array-add": e.path,
|
|
57335
|
-
onClick: () => n([...i,
|
|
57267
|
+
onClick: () => n([...i, MG(e.item)]),
|
|
57336
57268
|
children: [
|
|
57337
57269
|
"Add ",
|
|
57338
57270
|
e.label,
|
|
@@ -57341,7 +57273,7 @@ function PG({ node: e, value: t, onChange: n, issues: r }) {
|
|
|
57341
57273
|
})]
|
|
57342
57274
|
});
|
|
57343
57275
|
}
|
|
57344
|
-
function
|
|
57276
|
+
function MG(e) {
|
|
57345
57277
|
switch (e.kind) {
|
|
57346
57278
|
case "string": return "";
|
|
57347
57279
|
case "number": return 0;
|
|
@@ -57349,6 +57281,78 @@ function FG(e) {
|
|
|
57349
57281
|
case "enum": return e.options?.[0] ?? "";
|
|
57350
57282
|
}
|
|
57351
57283
|
}
|
|
57284
|
+
//#endregion
|
|
57285
|
+
//#region src/client/features/content/field-widgets.tsx
|
|
57286
|
+
function NG(e) {
|
|
57287
|
+
return e.initial === void 0 || e.initial === null ? void 0 : String(e.initial);
|
|
57288
|
+
}
|
|
57289
|
+
function PG({ node: e, value: t, onChange: n, issues: r, id: i, display: a }) {
|
|
57290
|
+
switch (e.kind) {
|
|
57291
|
+
case "string": return /* @__PURE__ */ (0, g.jsx)(TG, {
|
|
57292
|
+
id: i,
|
|
57293
|
+
value: t,
|
|
57294
|
+
onChange: n,
|
|
57295
|
+
placeholder: NG(e)
|
|
57296
|
+
});
|
|
57297
|
+
case "number": return /* @__PURE__ */ (0, g.jsx)(EG, {
|
|
57298
|
+
id: i,
|
|
57299
|
+
value: t,
|
|
57300
|
+
onChange: n,
|
|
57301
|
+
placeholder: NG(e)
|
|
57302
|
+
});
|
|
57303
|
+
case "boolean": return /* @__PURE__ */ (0, g.jsx)(OG, {
|
|
57304
|
+
label: e.label,
|
|
57305
|
+
value: t,
|
|
57306
|
+
onChange: n,
|
|
57307
|
+
initial: e.initial
|
|
57308
|
+
});
|
|
57309
|
+
case "enum": return /* @__PURE__ */ (0, g.jsx)(kG, {
|
|
57310
|
+
id: i,
|
|
57311
|
+
options: e.options,
|
|
57312
|
+
value: t,
|
|
57313
|
+
onChange: n,
|
|
57314
|
+
placeholder: NG(e) ?? "—"
|
|
57315
|
+
});
|
|
57316
|
+
case "image": return /* @__PURE__ */ (0, g.jsx)(FG, { value: a ?? t });
|
|
57317
|
+
case "array": return /* @__PURE__ */ (0, g.jsx)(jG, {
|
|
57318
|
+
node: e,
|
|
57319
|
+
value: t,
|
|
57320
|
+
onChange: n,
|
|
57321
|
+
issues: r
|
|
57322
|
+
});
|
|
57323
|
+
case "raw": return /* @__PURE__ */ (0, g.jsx)(IG, {
|
|
57324
|
+
id: i,
|
|
57325
|
+
node: e,
|
|
57326
|
+
value: t,
|
|
57327
|
+
onChange: n
|
|
57328
|
+
});
|
|
57329
|
+
}
|
|
57330
|
+
}
|
|
57331
|
+
function FG({ value: e }) {
|
|
57332
|
+
let t = e ?? {}, n = [
|
|
57333
|
+
["src", t.src],
|
|
57334
|
+
["width", t.width],
|
|
57335
|
+
["height", t.height]
|
|
57336
|
+
].filter(([, e]) => e != null);
|
|
57337
|
+
return n.length === 0 ? /* @__PURE__ */ (0, g.jsx)("p", {
|
|
57338
|
+
"data-astroix-image-field": "empty",
|
|
57339
|
+
className: "text-xs text-muted-foreground",
|
|
57340
|
+
children: "no image data"
|
|
57341
|
+
}) : /* @__PURE__ */ (0, g.jsx)("dl", {
|
|
57342
|
+
"data-astroix-image-field": "meta",
|
|
57343
|
+
className: "flex flex-col gap-0.5 text-xs text-muted-foreground",
|
|
57344
|
+
children: n.map(([e, t]) => /* @__PURE__ */ (0, g.jsxs)("div", {
|
|
57345
|
+
className: "flex gap-2",
|
|
57346
|
+
children: [/* @__PURE__ */ (0, g.jsx)("dt", {
|
|
57347
|
+
className: "w-12 shrink-0",
|
|
57348
|
+
children: e
|
|
57349
|
+
}), /* @__PURE__ */ (0, g.jsx)("dd", {
|
|
57350
|
+
className: "truncate font-mono",
|
|
57351
|
+
children: String(t)
|
|
57352
|
+
})]
|
|
57353
|
+
}, e))
|
|
57354
|
+
});
|
|
57355
|
+
}
|
|
57352
57356
|
function IG({ node: e, value: t, onChange: n, id: r, ariaLabel: i }) {
|
|
57353
57357
|
let [a, o] = (0, h.useState)(() => LG(t)), [s, c] = (0, h.useState)(null), l = (e) => {
|
|
57354
57358
|
if (o(e), e.trim() === "") {
|
|
@@ -57364,7 +57368,7 @@ function IG({ node: e, value: t, onChange: n, id: r, ariaLabel: i }) {
|
|
|
57364
57368
|
return /* @__PURE__ */ (0, g.jsxs)("div", {
|
|
57365
57369
|
className: "flex flex-col gap-1",
|
|
57366
57370
|
children: [
|
|
57367
|
-
/* @__PURE__ */ (0, g.jsx)(
|
|
57371
|
+
/* @__PURE__ */ (0, g.jsx)(RU, {
|
|
57368
57372
|
id: r,
|
|
57369
57373
|
"aria-label": i,
|
|
57370
57374
|
"data-astroix-raw-field": e.path,
|
|
@@ -57506,7 +57510,7 @@ function qG({ node: e, form: t, issues: n, onFlushValidation: r, projectionData:
|
|
|
57506
57510
|
htmlFor: GG(e) ? a : void 0,
|
|
57507
57511
|
children: [e.label, e.required ? " *" : ""]
|
|
57508
57512
|
}),
|
|
57509
|
-
/* @__PURE__ */ (0, g.jsx)(
|
|
57513
|
+
/* @__PURE__ */ (0, g.jsx)(PG, {
|
|
57510
57514
|
node: e,
|
|
57511
57515
|
value: t.state.value,
|
|
57512
57516
|
onChange: t.handleChange,
|
|
@@ -58247,7 +58251,7 @@ function RK({ step: e, index: t, onBack: n, onNext: r }) {
|
|
|
58247
58251
|
})] }),
|
|
58248
58252
|
/* @__PURE__ */ (0, g.jsxs)("span", {
|
|
58249
58253
|
className: "flex items-center gap-2 text-xs text-slate-300",
|
|
58250
|
-
children: [/* @__PURE__ */ (0, g.jsx)(
|
|
58254
|
+
children: [/* @__PURE__ */ (0, g.jsx)(JU, {
|
|
58251
58255
|
checked: i[e.id] === !0,
|
|
58252
58256
|
onCheckedChange: () => o(e.id),
|
|
58253
58257
|
"aria-label": `Step ${e.id} verified`
|
|
@@ -58341,7 +58345,7 @@ function VK({ onBackToSteps: e }) {
|
|
|
58341
58345
|
className: "max-h-44 overflow-y-auto text-xs",
|
|
58342
58346
|
children: IK.map((e) => /* @__PURE__ */ (0, g.jsxs)("li", {
|
|
58343
58347
|
className: "flex items-center gap-2 py-0.5",
|
|
58344
|
-
children: [/* @__PURE__ */ (0, g.jsx)(
|
|
58348
|
+
children: [/* @__PURE__ */ (0, g.jsx)(JU, {
|
|
58345
58349
|
checked: t[e.id] === !0,
|
|
58346
58350
|
onCheckedChange: () => r(e.id),
|
|
58347
58351
|
"aria-label": `Step ${e.id} verified`
|
|
@@ -58538,7 +58542,7 @@ var YK = { tabActivationDirection: (e) => ({ "data-activation-direction": e }) }
|
|
|
58538
58542
|
});
|
|
58539
58543
|
return /*#__PURE__*/ (0, g.jsx)(qK.Provider, {
|
|
58540
58544
|
value: I,
|
|
58541
|
-
children: /*#__PURE__*/ (0, g.jsx)(
|
|
58545
|
+
children: /*#__PURE__*/ (0, g.jsx)(kW, {
|
|
58542
58546
|
elementsRef: d,
|
|
58543
58547
|
children: ne
|
|
58544
58548
|
})
|
|
@@ -58570,7 +58574,7 @@ var $K = "data-composite-item-active";
|
|
|
58570
58574
|
//#endregion
|
|
58571
58575
|
//#region node_modules/@base-ui/react/internals/composite/item/useCompositeItem.mjs
|
|
58572
58576
|
function eq(e = {}) {
|
|
58573
|
-
let { highlightItemOnHover: t, highlightedIndex: n, onHighlightedIndexChange: r } = ar(), { ref: i, index: a } =
|
|
58577
|
+
let { highlightItemOnHover: t, highlightedIndex: n, onHighlightedIndexChange: r } = ar(), { ref: i, index: a } = sG(e), o = n === a, s = h.useRef(null), c = Et(i, s);
|
|
58574
58578
|
return {
|
|
58575
58579
|
compositeProps: {
|
|
58576
58580
|
tabIndex: o ? 0 : -1,
|
|
@@ -58695,7 +58699,7 @@ var iq = {
|
|
|
58695
58699
|
...YK,
|
|
58696
58700
|
...cs
|
|
58697
58701
|
}, aq = /*#__PURE__*/ h.forwardRef(function(e, t) {
|
|
58698
|
-
let { className: n, value: r, render: i, keepMounted: a = !1, style: o, ...s } = e, { value: c, getTabIdByPanelValue: l, orientation: u, tabActivationDirection: d, registerMountedTabPanel: f } = JK(), p = ea(), { ref: m, index: g } =
|
|
58702
|
+
let { className: n, value: r, render: i, keepMounted: a = !1, style: o, ...s } = e, { value: c, getTabIdByPanelValue: l, orientation: u, tabActivationDirection: d, registerMountedTabPanel: f } = JK(), p = ea(), { ref: m, index: g } = sG(), _ = r === c, { mounted: v, transitionStatus: y, setMounted: b } = ls(_), x = !v, S = l(r), C = {
|
|
58699
58703
|
hidden: x,
|
|
58700
58704
|
orientation: u,
|
|
58701
58705
|
tabActivationDirection: d,
|
|
@@ -58773,7 +58777,7 @@ function sq(e) {
|
|
|
58773
58777
|
let o = e.key === "Home" || e.key === "End";
|
|
58774
58778
|
if (!Yu.has(e.key) || !l && o || cq(e, f) || !_.current) return;
|
|
58775
58779
|
let s = a === "rtl", c = s ? qu : Ju, p = s ? Ju : qu, m = n === "vertical" ? Ku : c, h = n === "vertical" ? Gu : p, v = Da(e.nativeEvent);
|
|
58776
|
-
if (v != null && Qu(v) && !
|
|
58780
|
+
if (v != null && Qu(v) && !XU(v)) {
|
|
58777
58781
|
let t = v.selectionStart, n = v.selectionEnd, r = v.value;
|
|
58778
58782
|
if (t == null || e.shiftKey || t !== n || e.key !== h && t < r.length || e.key !== m && t > 0) return;
|
|
58779
58783
|
}
|
|
@@ -58857,7 +58861,7 @@ function lq(e) {
|
|
|
58857
58861
|
]);
|
|
58858
58862
|
return /*#__PURE__*/ (0, g.jsx)(ir.Provider, {
|
|
58859
58863
|
value: M,
|
|
58860
|
-
children: /*#__PURE__*/ (0, g.jsx)(
|
|
58864
|
+
children: /*#__PURE__*/ (0, g.jsx)(kW, {
|
|
58861
58865
|
elementsRef: O,
|
|
58862
58866
|
onMapChange: (e) => {
|
|
58863
58867
|
_?.(e), k(e);
|