stratosphere-ui 0.1.2 → 0.1.3
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/components/AlertMessages/AlertMessages.d.ts +3 -4
- package/dist/components/AlertMessages/constants.d.ts +7 -0
- package/dist/components/AlertMessages/index.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/stratosphere-ui.js +280 -275
- package/package.json +4 -2
- package/dist/components/AlertMessages/AlertMessagesList.d.ts +0 -5
package/dist/stratosphere-ui.js
CHANGED
|
@@ -4459,7 +4459,7 @@ const HT = {
|
|
|
4459
4459
|
},
|
|
4460
4460
|
dismissAlertMessage: () => {
|
|
4461
4461
|
}
|
|
4462
|
-
}, PT = oi(HT), Ez = () => ya(PT),
|
|
4462
|
+
}, PT = oi(HT), Ez = () => ya(PT), oU = ({
|
|
4463
4463
|
children: o,
|
|
4464
4464
|
initialData: d
|
|
4465
4465
|
}) => {
|
|
@@ -4480,7 +4480,7 @@ const HT = {
|
|
|
4480
4480
|
children: o
|
|
4481
4481
|
}
|
|
4482
4482
|
);
|
|
4483
|
-
},
|
|
4483
|
+
}, Tz = () => /* @__PURE__ */ $(
|
|
4484
4484
|
"svg",
|
|
4485
4485
|
{
|
|
4486
4486
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4498,7 +4498,7 @@ const HT = {
|
|
|
4498
4498
|
}
|
|
4499
4499
|
)
|
|
4500
4500
|
}
|
|
4501
|
-
),
|
|
4501
|
+
), wz = () => /* @__PURE__ */ $(
|
|
4502
4502
|
"svg",
|
|
4503
4503
|
{
|
|
4504
4504
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4516,7 +4516,7 @@ const HT = {
|
|
|
4516
4516
|
}
|
|
4517
4517
|
)
|
|
4518
4518
|
}
|
|
4519
|
-
),
|
|
4519
|
+
), Rz = () => /* @__PURE__ */ $(
|
|
4520
4520
|
"svg",
|
|
4521
4521
|
{
|
|
4522
4522
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4524,7 +4524,7 @@ const HT = {
|
|
|
4524
4524
|
viewBox: "0 0 24 24",
|
|
4525
4525
|
strokeWidth: 1.5,
|
|
4526
4526
|
stroke: "currentColor",
|
|
4527
|
-
className: "w-
|
|
4527
|
+
className: "w-5 h-5",
|
|
4528
4528
|
children: /* @__PURE__ */ $(
|
|
4529
4529
|
"path",
|
|
4530
4530
|
{
|
|
@@ -4534,7 +4534,7 @@ const HT = {
|
|
|
4534
4534
|
}
|
|
4535
4535
|
)
|
|
4536
4536
|
}
|
|
4537
|
-
),
|
|
4537
|
+
), kz = () => /* @__PURE__ */ $(
|
|
4538
4538
|
"svg",
|
|
4539
4539
|
{
|
|
4540
4540
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4542,7 +4542,7 @@ const HT = {
|
|
|
4542
4542
|
viewBox: "0 0 24 24",
|
|
4543
4543
|
strokeWidth: 1.5,
|
|
4544
4544
|
stroke: "currentColor",
|
|
4545
|
-
className: "w-
|
|
4545
|
+
className: "w-5 h-5",
|
|
4546
4546
|
children: /* @__PURE__ */ $(
|
|
4547
4547
|
"path",
|
|
4548
4548
|
{
|
|
@@ -4552,7 +4552,7 @@ const HT = {
|
|
|
4552
4552
|
}
|
|
4553
4553
|
)
|
|
4554
4554
|
}
|
|
4555
|
-
),
|
|
4555
|
+
), Nz = () => /* @__PURE__ */ $(
|
|
4556
4556
|
"svg",
|
|
4557
4557
|
{
|
|
4558
4558
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4560,7 +4560,7 @@ const HT = {
|
|
|
4560
4560
|
viewBox: "0 0 24 24",
|
|
4561
4561
|
strokeWidth: 1.5,
|
|
4562
4562
|
stroke: "currentColor",
|
|
4563
|
-
className: "w-
|
|
4563
|
+
className: "w-5 h-5",
|
|
4564
4564
|
children: /* @__PURE__ */ $(
|
|
4565
4565
|
"path",
|
|
4566
4566
|
{
|
|
@@ -4570,7 +4570,7 @@ const HT = {
|
|
|
4570
4570
|
}
|
|
4571
4571
|
)
|
|
4572
4572
|
}
|
|
4573
|
-
),
|
|
4573
|
+
), Dz = () => /* @__PURE__ */ $(
|
|
4574
4574
|
"svg",
|
|
4575
4575
|
{
|
|
4576
4576
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4578,7 +4578,7 @@ const HT = {
|
|
|
4578
4578
|
viewBox: "0 0 24 24",
|
|
4579
4579
|
strokeWidth: 1.5,
|
|
4580
4580
|
stroke: "currentColor",
|
|
4581
|
-
className: "w-
|
|
4581
|
+
className: "w-5 h-5",
|
|
4582
4582
|
children: /* @__PURE__ */ $(
|
|
4583
4583
|
"path",
|
|
4584
4584
|
{
|
|
@@ -4588,12 +4588,12 @@ const HT = {
|
|
|
4588
4588
|
}
|
|
4589
4589
|
)
|
|
4590
4590
|
}
|
|
4591
|
-
),
|
|
4592
|
-
info:
|
|
4593
|
-
success:
|
|
4594
|
-
warning:
|
|
4595
|
-
error:
|
|
4596
|
-
},
|
|
4591
|
+
), Oz = {
|
|
4592
|
+
info: kz,
|
|
4593
|
+
success: Nz,
|
|
4594
|
+
warning: Dz,
|
|
4595
|
+
error: Rz
|
|
4596
|
+
}, uU = ({
|
|
4597
4597
|
maxMessages: o
|
|
4598
4598
|
}) => {
|
|
4599
4599
|
const { alertMessages: d, dismissAlertMessage: f } = Ez();
|
|
@@ -4601,15 +4601,15 @@ const HT = {
|
|
|
4601
4601
|
var v;
|
|
4602
4602
|
if (d[h] === void 0)
|
|
4603
4603
|
return null;
|
|
4604
|
-
const g = ((v = d[h]) == null ? void 0 : v.status) ?? "success", S =
|
|
4604
|
+
const g = ((v = d[h]) == null ? void 0 : v.status) ?? "success", S = Oz[g];
|
|
4605
4605
|
return /* @__PURE__ */ qt(
|
|
4606
4606
|
DT,
|
|
4607
4607
|
{
|
|
4608
|
-
className: "
|
|
4608
|
+
className: "w-full flex mb-2",
|
|
4609
4609
|
status: d[h].status,
|
|
4610
4610
|
icon: /* @__PURE__ */ $(S, {}),
|
|
4611
4611
|
children: [
|
|
4612
|
-
/* @__PURE__ */ $("div", { className: "
|
|
4612
|
+
/* @__PURE__ */ $("div", { className: "flex-1 flex justify-between gap-2", children: d[h].message }),
|
|
4613
4613
|
/* @__PURE__ */ $(
|
|
4614
4614
|
Vl,
|
|
4615
4615
|
{
|
|
@@ -4625,11 +4625,8 @@ const HT = {
|
|
|
4625
4625
|
`error_message_${h}`
|
|
4626
4626
|
);
|
|
4627
4627
|
}) });
|
|
4628
|
-
}
|
|
4629
|
-
|
|
4630
|
-
maxMessages: d
|
|
4631
|
-
}) => /* @__PURE__ */ $(Tz, { initialData: o, children: /* @__PURE__ */ $(Lz, { maxMessages: d }) });
|
|
4632
|
-
var XS = {}, Mz = {
|
|
4628
|
+
};
|
|
4629
|
+
var XS = {}, _z = {
|
|
4633
4630
|
get exports() {
|
|
4634
4631
|
return XS;
|
|
4635
4632
|
},
|
|
@@ -4671,8 +4668,8 @@ var XS = {}, Mz = {
|
|
|
4671
4668
|
}
|
|
4672
4669
|
o.exports ? (f.default = f, o.exports = f) : window.classNames = f;
|
|
4673
4670
|
})();
|
|
4674
|
-
})(
|
|
4675
|
-
const rl = XS,
|
|
4671
|
+
})(_z);
|
|
4672
|
+
const rl = XS, Lz = ({
|
|
4676
4673
|
children: o,
|
|
4677
4674
|
className: d,
|
|
4678
4675
|
dismissable: f,
|
|
@@ -4700,7 +4697,7 @@ const rl = XS, zz = ({
|
|
|
4700
4697
|
v.stopPropagation();
|
|
4701
4698
|
},
|
|
4702
4699
|
children: [
|
|
4703
|
-
/* @__PURE__ */ $(
|
|
4700
|
+
/* @__PURE__ */ $(wz, {}),
|
|
4704
4701
|
/* @__PURE__ */ $("span", { className: "sr-only", children: "Remove badge" })
|
|
4705
4702
|
]
|
|
4706
4703
|
}
|
|
@@ -4724,8 +4721,6 @@ const u1 = Ft(
|
|
|
4724
4721
|
FT,
|
|
4725
4722
|
{
|
|
4726
4723
|
className: rl(
|
|
4727
|
-
"bg-base-100",
|
|
4728
|
-
"shadow-xl",
|
|
4729
4724
|
"p-2",
|
|
4730
4725
|
"rounded-box",
|
|
4731
4726
|
r_.toArray(o).length === 0 && "hidden",
|
|
@@ -4739,18 +4734,18 @@ const u1 = Ft(
|
|
|
4739
4734
|
);
|
|
4740
4735
|
u1.displayName = "DropdownMenu";
|
|
4741
4736
|
const Qy = Ft(
|
|
4742
|
-
({ active: o, children: d, className: f,
|
|
4743
|
-
|
|
4737
|
+
({ active: o, children: d, className: f, disabled: h, selected: g, ...S }, v) => /* @__PURE__ */ $(FT.Item, { className: f, disabled: h, ref: v, children: /* @__PURE__ */ qt("a", { className: rl(o === !0 && "active"), ...S, children: [
|
|
4738
|
+
g !== void 0 ? /* @__PURE__ */ $("div", { className: "w-6 flex justify-center", children: g ? /* @__PURE__ */ $(Tz, {}) : null }) : null,
|
|
4744
4739
|
d
|
|
4745
4740
|
] }) })
|
|
4746
4741
|
);
|
|
4747
4742
|
Qy.displayName = "DropdownOption";
|
|
4748
|
-
var
|
|
4749
|
-
const
|
|
4750
|
-
var Mv = (o) => !VT(o) && !Array.isArray(o) &&
|
|
4743
|
+
var Mz = (o) => o.type === "checkbox", zz = (o) => o instanceof Date, VT = (o) => o == null;
|
|
4744
|
+
const Az = (o) => typeof o == "object";
|
|
4745
|
+
var Mv = (o) => !VT(o) && !Array.isArray(o) && Az(o) && !zz(o), Uz = (o) => Mv(o) && o.target ? Mz(o.target) ? o.target.checked : o.target.value : o, Fz = (o) => o.substring(0, o.search(/\.\d+(\.|$)/)) || o, $z = (o, d) => o.has(Fz(d)), jz = (o) => Array.isArray(o) ? o.filter(Boolean) : [], uT = (o) => o === void 0, nl = (o, d, f) => {
|
|
4751
4746
|
if (!d || !Mv(o))
|
|
4752
4747
|
return f;
|
|
4753
|
-
const h =
|
|
4748
|
+
const h = jz(d.split(/[,[\].]+?/)).reduce((g, S) => VT(g) ? g : g[S], o);
|
|
4754
4749
|
return uT(h) || h === o ? uT(o[d]) ? f : o[d] : h;
|
|
4755
4750
|
};
|
|
4756
4751
|
const sT = {
|
|
@@ -4763,11 +4758,11 @@ const sT = {
|
|
|
4763
4758
|
onSubmit: "onSubmit",
|
|
4764
4759
|
onTouched: "onTouched",
|
|
4765
4760
|
all: "all"
|
|
4766
|
-
}, BT = ee.createContext(null), oc = () => ee.useContext(BT),
|
|
4761
|
+
}, BT = ee.createContext(null), oc = () => ee.useContext(BT), Hz = (o) => {
|
|
4767
4762
|
const { children: d, ...f } = o;
|
|
4768
4763
|
return ee.createElement(BT.Provider, { value: f }, d);
|
|
4769
4764
|
};
|
|
4770
|
-
var
|
|
4765
|
+
var Pz = (o, d, f, h = !0) => {
|
|
4771
4766
|
const g = {
|
|
4772
4767
|
defaultValues: d._defaultValues
|
|
4773
4768
|
};
|
|
@@ -4779,10 +4774,10 @@ var Bz = (o, d, f, h = !0) => {
|
|
|
4779
4774
|
}
|
|
4780
4775
|
});
|
|
4781
4776
|
return g;
|
|
4782
|
-
},
|
|
4777
|
+
}, Vz = (o) => Mv(o) && !Object.keys(o).length, Bz = (o, d, f) => {
|
|
4783
4778
|
const { name: h, ...g } = o;
|
|
4784
|
-
return
|
|
4785
|
-
},
|
|
4779
|
+
return Vz(g) || Object.keys(g).length >= Object.keys(d).length || Object.keys(g).find((S) => d[S] === (!f || qS.all));
|
|
4780
|
+
}, Iz = (o) => Array.isArray(o) ? o : [o], IT = (o, d, f) => f && d ? o === d : !o || !d || o === d || Iz(o).some((h) => h && (h.startsWith(d) || d.startsWith(h)));
|
|
4786
4781
|
function YT(o) {
|
|
4787
4782
|
const d = ee.useRef(o);
|
|
4788
4783
|
d.current = o, ee.useEffect(() => {
|
|
@@ -4794,7 +4789,7 @@ function YT(o) {
|
|
|
4794
4789
|
};
|
|
4795
4790
|
}, [o.disabled]);
|
|
4796
4791
|
}
|
|
4797
|
-
function
|
|
4792
|
+
function Yz(o) {
|
|
4798
4793
|
const d = oc(), { control: f = d.control, disabled: h, name: g, exact: S } = o || {}, [v, E] = ee.useState(f._formState), w = ee.useRef(!0), T = ee.useRef({
|
|
4799
4794
|
isDirty: !1,
|
|
4800
4795
|
isLoading: !1,
|
|
@@ -4806,7 +4801,7 @@ function Gz(o) {
|
|
|
4806
4801
|
}), N = ee.useRef(g);
|
|
4807
4802
|
return N.current = g, YT({
|
|
4808
4803
|
disabled: h,
|
|
4809
|
-
next: (O) => w.current && IT(N.current, O.name, S) &&
|
|
4804
|
+
next: (O) => w.current && IT(N.current, O.name, S) && Bz(O, T.current) && E({
|
|
4810
4805
|
...f._formState,
|
|
4811
4806
|
...O
|
|
4812
4807
|
}),
|
|
@@ -4819,12 +4814,12 @@ function Gz(o) {
|
|
|
4819
4814
|
}), f._updateValid(), () => {
|
|
4820
4815
|
w.current = !1;
|
|
4821
4816
|
};
|
|
4822
|
-
}, [f]),
|
|
4817
|
+
}, [f]), Pz(v, f, T.current, !1);
|
|
4823
4818
|
}
|
|
4824
|
-
var
|
|
4819
|
+
var Qz = (o) => typeof o == "string", Gz = (o, d, f, h, g) => Qz(o) ? (h && d.watch.add(o), nl(f, o, g)) : Array.isArray(o) ? o.map((S) => (h && d.watch.add(S), nl(f, S))) : (h && (d.watchAll = !0), f), Wz = (o) => {
|
|
4825
4820
|
const d = o.constructor && o.constructor.prototype;
|
|
4826
4821
|
return Mv(d) && d.hasOwnProperty("isPrototypeOf");
|
|
4827
|
-
},
|
|
4822
|
+
}, Xz = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
|
|
4828
4823
|
function QT(o) {
|
|
4829
4824
|
let d;
|
|
4830
4825
|
const f = Array.isArray(o);
|
|
@@ -4832,8 +4827,8 @@ function QT(o) {
|
|
|
4832
4827
|
d = new Date(o);
|
|
4833
4828
|
else if (o instanceof Set)
|
|
4834
4829
|
d = new Set(o);
|
|
4835
|
-
else if (!(
|
|
4836
|
-
if (d = f ? [] : {}, !Array.isArray(o) && !
|
|
4830
|
+
else if (!(Xz && (o instanceof Blob || o instanceof FileList)) && (f || Mv(o)))
|
|
4831
|
+
if (d = f ? [] : {}, !Array.isArray(o) && !Wz(o))
|
|
4837
4832
|
d = o;
|
|
4838
4833
|
else
|
|
4839
4834
|
for (const h in o)
|
|
@@ -4842,25 +4837,25 @@ function QT(o) {
|
|
|
4842
4837
|
return o;
|
|
4843
4838
|
return d;
|
|
4844
4839
|
}
|
|
4845
|
-
function
|
|
4840
|
+
function qz(o) {
|
|
4846
4841
|
const d = oc(), { control: f = d.control, name: h, defaultValue: g, disabled: S, exact: v } = o || {}, E = ee.useRef(h);
|
|
4847
4842
|
E.current = h, YT({
|
|
4848
4843
|
disabled: S,
|
|
4849
4844
|
subject: f._subjects.watch,
|
|
4850
4845
|
next: (N) => {
|
|
4851
|
-
IT(E.current, N.name, v) && T(QT(
|
|
4846
|
+
IT(E.current, N.name, v) && T(QT(Gz(E.current, f._names, N.values || f._formValues, !1, g)));
|
|
4852
4847
|
}
|
|
4853
4848
|
});
|
|
4854
4849
|
const [w, T] = ee.useState(f._getWatch(h, g));
|
|
4855
4850
|
return ee.useEffect(() => f._removeUnmounted()), w;
|
|
4856
4851
|
}
|
|
4857
4852
|
function od(o) {
|
|
4858
|
-
const d = oc(), { name: f, control: h = d.control, shouldUnregister: g } = o, S =
|
|
4853
|
+
const d = oc(), { name: f, control: h = d.control, shouldUnregister: g } = o, S = $z(h._names.array, f), v = qz({
|
|
4859
4854
|
control: h,
|
|
4860
4855
|
name: f,
|
|
4861
4856
|
defaultValue: nl(h._formValues, f, nl(h._defaultValues, f, o.defaultValue)),
|
|
4862
4857
|
exact: !0
|
|
4863
|
-
}), E =
|
|
4858
|
+
}), E = Yz({
|
|
4864
4859
|
control: h,
|
|
4865
4860
|
name: f
|
|
4866
4861
|
}), w = ee.useRef(h.register(f, {
|
|
@@ -4882,7 +4877,7 @@ function od(o) {
|
|
|
4882
4877
|
value: v,
|
|
4883
4878
|
onChange: ee.useCallback((T) => w.current.onChange({
|
|
4884
4879
|
target: {
|
|
4885
|
-
value:
|
|
4880
|
+
value: Uz(T),
|
|
4886
4881
|
name: f
|
|
4887
4882
|
},
|
|
4888
4883
|
type: sT.CHANGE
|
|
@@ -4925,12 +4920,12 @@ function od(o) {
|
|
|
4925
4920
|
})
|
|
4926
4921
|
};
|
|
4927
4922
|
}
|
|
4928
|
-
const
|
|
4923
|
+
const sU = ({
|
|
4929
4924
|
children: o,
|
|
4930
4925
|
methods: d,
|
|
4931
4926
|
onFormSubmit: f,
|
|
4932
4927
|
...h
|
|
4933
|
-
}) => /* @__PURE__ */ $(
|
|
4928
|
+
}) => /* @__PURE__ */ $(Hz, { ...d, children: /* @__PURE__ */ $("form", { noValidate: !0, onSubmit: d.handleSubmit(f), ...h, children: o }) }), Ho = Ft(
|
|
4934
4929
|
({ children: o, className: d, isRequired: f, ...h }, g) => /* @__PURE__ */ $(
|
|
4935
4930
|
"label",
|
|
4936
4931
|
{
|
|
@@ -4946,7 +4941,7 @@ const cU = ({
|
|
|
4946
4941
|
)
|
|
4947
4942
|
);
|
|
4948
4943
|
Ho.displayName = "FormLabel";
|
|
4949
|
-
const
|
|
4944
|
+
const cU = ({
|
|
4950
4945
|
children: o,
|
|
4951
4946
|
inputProps: d,
|
|
4952
4947
|
...f
|
|
@@ -4960,7 +4955,7 @@ const fU = ({
|
|
|
4960
4955
|
({ children: o, className: d, ...f }, h) => /* @__PURE__ */ $("label", { className: rl("label", d), ref: h, ...f, children: /* @__PURE__ */ $("span", { className: "label-text-alt text-error", children: o }) })
|
|
4961
4956
|
);
|
|
4962
4957
|
zv.displayName = "FormError";
|
|
4963
|
-
const
|
|
4958
|
+
const fU = ({
|
|
4964
4959
|
controllerProps: o,
|
|
4965
4960
|
isRequired: d,
|
|
4966
4961
|
labelText: f,
|
|
@@ -4995,7 +4990,7 @@ const dU = ({
|
|
|
4995
4990
|
),
|
|
4996
4991
|
(E == null ? void 0 : E.message) !== void 0 ? /* @__PURE__ */ $(zv, { children: E.message }) : null
|
|
4997
4992
|
] });
|
|
4998
|
-
},
|
|
4993
|
+
}, dU = ({
|
|
4999
4994
|
isRequired: o,
|
|
5000
4995
|
labelText: d,
|
|
5001
4996
|
options: f,
|
|
@@ -5021,27 +5016,27 @@ const dU = ({
|
|
|
5021
5016
|
] });
|
|
5022
5017
|
};
|
|
5023
5018
|
var GT = {};
|
|
5024
|
-
var
|
|
5019
|
+
var Kz = id && id.__createBinding || (Object.create ? function(o, d, f, h) {
|
|
5025
5020
|
h === void 0 && (h = f), Object.defineProperty(o, h, { enumerable: !0, get: function() {
|
|
5026
5021
|
return d[f];
|
|
5027
5022
|
} });
|
|
5028
5023
|
} : function(o, d, f, h) {
|
|
5029
5024
|
h === void 0 && (h = f), o[h] = d[f];
|
|
5030
|
-
}),
|
|
5025
|
+
}), Zz = id && id.__setModuleDefault || (Object.create ? function(o, d) {
|
|
5031
5026
|
Object.defineProperty(o, "default", { enumerable: !0, value: d });
|
|
5032
5027
|
} : function(o, d) {
|
|
5033
5028
|
o.default = d;
|
|
5034
|
-
}),
|
|
5029
|
+
}), Jz = id && id.__importStar || function(o) {
|
|
5035
5030
|
if (o && o.__esModule)
|
|
5036
5031
|
return o;
|
|
5037
5032
|
var d = {};
|
|
5038
5033
|
if (o != null)
|
|
5039
5034
|
for (var f in o)
|
|
5040
|
-
f !== "default" && Object.prototype.hasOwnProperty.call(o, f) &&
|
|
5041
|
-
return
|
|
5035
|
+
f !== "default" && Object.prototype.hasOwnProperty.call(o, f) && Kz(d, o, f);
|
|
5036
|
+
return Zz(d, o), d;
|
|
5042
5037
|
};
|
|
5043
5038
|
Object.defineProperty(GT, "__esModule", { value: !0 });
|
|
5044
|
-
const Ut =
|
|
5039
|
+
const Ut = Jz(ee), eA = (o, d) => {
|
|
5045
5040
|
let f = o.ruler === void 0 || o.ruler === null ? !0 : o.ruler, h = o.label === void 0 || o.label === null ? !0 : o.label, g = o.subSteps === void 0 || o.subSteps === null ? !1 : o.subSteps, S = o.stepOnly === void 0 || o.stepOnly === null ? !1 : o.stepOnly, v = o.preventWheel === void 0 || o.preventWheel === null ? !1 : o.preventWheel, E = (0, Ut.useRef)(null), w = +(o.min || 0), T = +(o.max || 100), N = +(o.step || 5), O = 0, L = Math.floor((+T - +w) / +N), M = o.labels || [];
|
|
5046
5041
|
M.length === 0 ? (M = [], M.push(w.toString()), M.push(T.toString())) : L = M.length - 1, typeof h == "string" && (h = h === "true"), typeof f == "string" && (f = f === "true"), typeof v == "string" && (v = v === "true"), N.toString().includes(".") && (O = 2);
|
|
5047
5042
|
let j = o.minValue;
|
|
@@ -5175,8 +5170,8 @@ const Ut = tA(ee), nA = (o, d) => {
|
|
|
5175
5170
|
h && Ut.default.createElement("div", { className: "labels" }, M.map((pe) => Ut.default.createElement("div", { key: pe.toString(), className: "label" }, pe)))
|
|
5176
5171
|
);
|
|
5177
5172
|
};
|
|
5178
|
-
var
|
|
5179
|
-
const
|
|
5173
|
+
var tA = GT.default = Ut.default.memo((0, Ut.forwardRef)(eA));
|
|
5174
|
+
const nA = Ft(
|
|
5180
5175
|
({
|
|
5181
5176
|
barColor: o,
|
|
5182
5177
|
barInnerColor: d,
|
|
@@ -5203,7 +5198,7 @@ const aA = Ft(
|
|
|
5203
5198
|
f
|
|
5204
5199
|
] }),
|
|
5205
5200
|
/* @__PURE__ */ $(
|
|
5206
|
-
|
|
5201
|
+
tA,
|
|
5207
5202
|
{
|
|
5208
5203
|
ref: Z,
|
|
5209
5204
|
label: L,
|
|
@@ -5228,7 +5223,7 @@ const aA = Ft(
|
|
|
5228
5223
|
] });
|
|
5229
5224
|
}
|
|
5230
5225
|
);
|
|
5231
|
-
|
|
5226
|
+
nA.displayName = "FormRangeSlider";
|
|
5232
5227
|
const Zy = typeof window > "u" || typeof document > "u";
|
|
5233
5228
|
let Rn = Zy ? Et : a_;
|
|
5234
5229
|
function Ri(o) {
|
|
@@ -5300,9 +5295,9 @@ function ud() {
|
|
|
5300
5295
|
}, []), o;
|
|
5301
5296
|
}
|
|
5302
5297
|
var cT;
|
|
5303
|
-
let
|
|
5298
|
+
let rA = 0;
|
|
5304
5299
|
function fT() {
|
|
5305
|
-
return ++
|
|
5300
|
+
return ++rA;
|
|
5306
5301
|
}
|
|
5307
5302
|
let ga = (cT = ee.useId) != null ? cT : function() {
|
|
5308
5303
|
let o = ud(), [d, f] = ee.useState(o ? fT : null);
|
|
@@ -5322,8 +5317,8 @@ function Uv(o) {
|
|
|
5322
5317
|
return Zy ? null : o instanceof Node ? o.ownerDocument : o != null && o.hasOwnProperty("current") && o.current instanceof Node ? o.current.ownerDocument : document;
|
|
5323
5318
|
}
|
|
5324
5319
|
let KS = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((o) => `${o}:not([tabindex='-1'])`).join(",");
|
|
5325
|
-
var ic = ((o) => (o[o.First = 1] = "First", o[o.Previous = 2] = "Previous", o[o.Next = 4] = "Next", o[o.Last = 8] = "Last", o[o.WrapAround = 16] = "WrapAround", o[o.NoScroll = 32] = "NoScroll", o))(ic || {}), WT = ((o) => (o[o.Error = 0] = "Error", o[o.Overflow = 1] = "Overflow", o[o.Success = 2] = "Success", o[o.Underflow = 3] = "Underflow", o))(WT || {}),
|
|
5326
|
-
function
|
|
5320
|
+
var ic = ((o) => (o[o.First = 1] = "First", o[o.Previous = 2] = "Previous", o[o.Next = 4] = "Next", o[o.Last = 8] = "Last", o[o.WrapAround = 16] = "WrapAround", o[o.NoScroll = 32] = "NoScroll", o))(ic || {}), WT = ((o) => (o[o.Error = 0] = "Error", o[o.Overflow = 1] = "Overflow", o[o.Success = 2] = "Success", o[o.Underflow = 3] = "Underflow", o))(WT || {}), aA = ((o) => (o[o.Previous = -1] = "Previous", o[o.Next = 1] = "Next", o))(aA || {});
|
|
5321
|
+
function iA(o = document.body) {
|
|
5327
5322
|
return o == null ? [] : Array.from(o.querySelectorAll(KS)).sort((d, f) => Math.sign((d.tabIndex || Number.MAX_SAFE_INTEGER) - (f.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
5328
5323
|
}
|
|
5329
5324
|
var s1 = ((o) => (o[o.Strict = 0] = "Strict", o[o.Loose = 1] = "Loose", o))(s1 || {});
|
|
@@ -5344,10 +5339,10 @@ function XT(o, d = 0) {
|
|
|
5344
5339
|
function lc(o) {
|
|
5345
5340
|
o == null || o.focus({ preventScroll: !0 });
|
|
5346
5341
|
}
|
|
5347
|
-
let
|
|
5348
|
-
function
|
|
5342
|
+
let lA = ["textarea", "input"].join(",");
|
|
5343
|
+
function oA(o) {
|
|
5349
5344
|
var d, f;
|
|
5350
|
-
return (f = (d = o == null ? void 0 : o.matches) == null ? void 0 : d.call(o,
|
|
5345
|
+
return (f = (d = o == null ? void 0 : o.matches) == null ? void 0 : d.call(o, lA)) != null ? f : !1;
|
|
5351
5346
|
}
|
|
5352
5347
|
function c1(o, d = (f) => f) {
|
|
5353
5348
|
return o.slice().sort((f, h) => {
|
|
@@ -5359,7 +5354,7 @@ function c1(o, d = (f) => f) {
|
|
|
5359
5354
|
});
|
|
5360
5355
|
}
|
|
5361
5356
|
function Yy(o, d, { sorted: f = !0, relativeTo: h = null, skipElements: g = [] } = {}) {
|
|
5362
|
-
let S = Array.isArray(o) ? o.length > 0 ? o[0].ownerDocument : document : o.ownerDocument, v = Array.isArray(o) ? f ? c1(o) : o :
|
|
5357
|
+
let S = Array.isArray(o) ? o.length > 0 ? o[0].ownerDocument : document : o.ownerDocument, v = Array.isArray(o) ? f ? c1(o) : o : iA(o);
|
|
5363
5358
|
g.length > 0 && (v = v.filter((M) => !g.includes(M))), h = h ?? S.activeElement;
|
|
5364
5359
|
let E = (() => {
|
|
5365
5360
|
if (d & 5)
|
|
@@ -5392,7 +5387,7 @@ function Yy(o, d, { sorted: f = !0, relativeTo: h = null, skipElements: g = [] }
|
|
|
5392
5387
|
}
|
|
5393
5388
|
L = v[M], L == null || L.focus(T), N += E;
|
|
5394
5389
|
} while (L !== S.activeElement);
|
|
5395
|
-
return d & 6 &&
|
|
5390
|
+
return d & 6 && oA(L) && L.select(), L.hasAttribute("tabindex") || L.setAttribute("tabindex", "0"), 2;
|
|
5396
5391
|
}
|
|
5397
5392
|
function $S(o, d, f) {
|
|
5398
5393
|
let h = Ri(d);
|
|
@@ -5452,7 +5447,7 @@ function qT(o, d) {
|
|
|
5452
5447
|
}, [f, d]), f;
|
|
5453
5448
|
}
|
|
5454
5449
|
let KT = Symbol();
|
|
5455
|
-
function
|
|
5450
|
+
function uA(o, d = !0) {
|
|
5456
5451
|
return Object.assign(o, { [KT]: d });
|
|
5457
5452
|
}
|
|
5458
5453
|
function qn(...o) {
|
|
@@ -5466,7 +5461,7 @@ function qn(...o) {
|
|
|
5466
5461
|
});
|
|
5467
5462
|
return o.every((h) => h == null || (h == null ? void 0 : h[KT])) ? void 0 : f;
|
|
5468
5463
|
}
|
|
5469
|
-
function
|
|
5464
|
+
function sA({ container: o, accept: d, walk: f, enabled: h = !0 }) {
|
|
5470
5465
|
let g = et(d), S = et(f);
|
|
5471
5466
|
Et(() => {
|
|
5472
5467
|
g.current = d, S.current = f;
|
|
@@ -5481,7 +5476,7 @@ function fA({ container: o, accept: d, walk: f, enabled: h = !0 }) {
|
|
|
5481
5476
|
w(N.currentNode);
|
|
5482
5477
|
}, [o, h, g, S]);
|
|
5483
5478
|
}
|
|
5484
|
-
function
|
|
5479
|
+
function cA(o) {
|
|
5485
5480
|
throw new Error("Unexpected object: " + o);
|
|
5486
5481
|
}
|
|
5487
5482
|
var Wt = ((o) => (o[o.First = 0] = "First", o[o.Previous = 1] = "Previous", o[o.Next = 2] = "Next", o[o.Last = 3] = "Last", o[o.Specific = 4] = "Specific", o[o.Nothing = 5] = "Nothing", o))(Wt || {});
|
|
@@ -5508,7 +5503,7 @@ function ZT(o, d) {
|
|
|
5508
5503
|
case 5:
|
|
5509
5504
|
return null;
|
|
5510
5505
|
default:
|
|
5511
|
-
|
|
5506
|
+
cA(o);
|
|
5512
5507
|
}
|
|
5513
5508
|
})();
|
|
5514
5509
|
return S === -1 ? h : S;
|
|
@@ -5550,11 +5545,11 @@ function By(o, d = {}, f, h) {
|
|
|
5550
5545
|
`), "", "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((O) => ` - ${O}`).join(`
|
|
5551
5546
|
`)].join(`
|
|
5552
5547
|
`));
|
|
5553
|
-
return ad(T, Object.assign({}, JT(T.props, Gy(jS(E, ["ref"]))), N, w,
|
|
5548
|
+
return ad(T, Object.assign({}, JT(T.props, Gy(jS(E, ["ref"]))), N, w, fA(T.ref, w.ref)));
|
|
5554
5549
|
}
|
|
5555
5550
|
return l_(g, Object.assign({}, jS(E, ["ref"]), g !== ii && w, g !== ii && N), T);
|
|
5556
5551
|
}
|
|
5557
|
-
function
|
|
5552
|
+
function fA(...o) {
|
|
5558
5553
|
return { ref: o.every((d) => d == null) ? void 0 : (d) => {
|
|
5559
5554
|
for (let f of o)
|
|
5560
5555
|
f != null && (typeof f == "function" ? f(d) : f.current = d);
|
|
@@ -5603,9 +5598,9 @@ function d1(o) {
|
|
|
5603
5598
|
for (; d && !(d instanceof HTMLFieldSetElement); )
|
|
5604
5599
|
d instanceof HTMLLegendElement && (f = d), d = d.parentElement;
|
|
5605
5600
|
let h = (d == null ? void 0 : d.getAttribute("disabled")) === "";
|
|
5606
|
-
return h &&
|
|
5601
|
+
return h && dA(f) ? !1 : h;
|
|
5607
5602
|
}
|
|
5608
|
-
function
|
|
5603
|
+
function dA(o) {
|
|
5609
5604
|
if (!o)
|
|
5610
5605
|
return !1;
|
|
5611
5606
|
let d = o.previousElementSibling;
|
|
@@ -5631,11 +5626,11 @@ function tw(o, d, f) {
|
|
|
5631
5626
|
else
|
|
5632
5627
|
f instanceof Date ? o.push([d, f.toISOString()]) : typeof f == "boolean" ? o.push([d, f ? "1" : "0"]) : typeof f == "string" ? o.push([d, f]) : typeof f == "number" ? o.push([d, `${f}`]) : f == null ? o.push([d, ""]) : p1(f, d, o);
|
|
5633
5628
|
}
|
|
5634
|
-
let
|
|
5629
|
+
let pA = "div";
|
|
5635
5630
|
var ld = ((o) => (o[o.None = 1] = "None", o[o.Focusable = 2] = "Focusable", o[o.Hidden = 4] = "Hidden", o))(ld || {});
|
|
5636
5631
|
let Lv = Nn(function(o, d) {
|
|
5637
5632
|
let { features: f = 1, ...h } = o, g = { ref: d, "aria-hidden": (f & 2) === 2 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(f & 4) === 4 && (f & 2) !== 2 && { display: "none" } } };
|
|
5638
|
-
return An({ ourProps: g, theirProps: h, slot: {}, defaultTag:
|
|
5633
|
+
return An({ ourProps: g, theirProps: h, slot: {}, defaultTag: pA, name: "Hidden" });
|
|
5639
5634
|
}), v1 = oi(null);
|
|
5640
5635
|
v1.displayName = "OpenClosedContext";
|
|
5641
5636
|
var li = ((o) => (o[o.Open = 0] = "Open", o[o.Closed = 1] = "Closed", o))(li || {});
|
|
@@ -5673,12 +5668,12 @@ function rw() {
|
|
|
5673
5668
|
o.current = pT(d);
|
|
5674
5669
|
} };
|
|
5675
5670
|
}
|
|
5676
|
-
var
|
|
5671
|
+
var vA = ((o) => (o[o.Open = 0] = "Open", o[o.Closed = 1] = "Closed", o))(vA || {}), hA = ((o) => (o[o.Single = 0] = "Single", o[o.Multi = 1] = "Multi", o))(hA || {}), mA = ((o) => (o[o.Pointer = 0] = "Pointer", o[o.Other = 1] = "Other", o))(mA || {}), yA = ((o) => (o[o.OpenCombobox = 0] = "OpenCombobox", o[o.CloseCombobox = 1] = "CloseCombobox", o[o.GoToOption = 2] = "GoToOption", o[o.RegisterOption = 3] = "RegisterOption", o[o.UnregisterOption = 4] = "UnregisterOption", o[o.RegisterLabel = 5] = "RegisterLabel", o))(yA || {});
|
|
5677
5672
|
function HS(o, d = (f) => f) {
|
|
5678
5673
|
let f = o.activeOptionIndex !== null ? o.options[o.activeOptionIndex] : null, h = c1(d(o.options.slice()), (S) => S.dataRef.current.domRef.current), g = f ? h.indexOf(f) : null;
|
|
5679
5674
|
return g === -1 && (g = null), { options: h, activeOptionIndex: g };
|
|
5680
5675
|
}
|
|
5681
|
-
let
|
|
5676
|
+
let gA = { [1](o) {
|
|
5682
5677
|
return o.dataRef.current.disabled || o.comboboxState === 1 ? o : { ...o, activeOptionIndex: null, comboboxState: 1 };
|
|
5683
5678
|
}, [0](o) {
|
|
5684
5679
|
if (o.dataRef.current.disabled || o.comboboxState === 0)
|
|
@@ -5727,12 +5722,12 @@ function sd(o) {
|
|
|
5727
5722
|
}
|
|
5728
5723
|
return d;
|
|
5729
5724
|
}
|
|
5730
|
-
function
|
|
5731
|
-
return Xt(d.type,
|
|
5725
|
+
function bA(o, d) {
|
|
5726
|
+
return Xt(d.type, gA, o, d);
|
|
5732
5727
|
}
|
|
5733
|
-
let
|
|
5734
|
-
function
|
|
5735
|
-
let { value: f, defaultValue: h, onChange: g, name: S, by: v = (ze, Ce) => ze === Ce, disabled: E = !1, __demoMode: w = !1, nullable: T = !1, multiple: N = !1, ...O } = o, [L = N ? [] : void 0, M] = nw(f, g, h), [j, I] = r1(
|
|
5728
|
+
let SA = ii;
|
|
5729
|
+
function xA(o, d) {
|
|
5730
|
+
let { value: f, defaultValue: h, onChange: g, name: S, by: v = (ze, Ce) => ze === Ce, disabled: E = !1, __demoMode: w = !1, nullable: T = !1, multiple: N = !1, ...O } = o, [L = N ? [] : void 0, M] = nw(f, g, h), [j, I] = r1(bA, { dataRef: qy(), comboboxState: w ? 0 : 1, options: [], activeOptionIndex: null, activationTrigger: 1, labelId: null }), H = et(!1), Z = et({ static: !1, hold: !1 }), X = et(null), ue = et(null), me = et(null), ye = et(null), Me = Pe(typeof v == "string" ? (ze, Ce) => {
|
|
5736
5731
|
let Ye = v;
|
|
5737
5732
|
return (ze == null ? void 0 : ze[Ye]) === (Ce == null ? void 0 : Ce[Ye]);
|
|
5738
5733
|
} : v), ie = CT((ze) => Xt($e.mode, { [1]: () => L.some((Ce) => Me(Ce, ze)), [0]: () => Me(L, ze) }), [L]), $e = tn(() => ({ ...j, optionsPropsRef: Z, labelRef: X, inputRef: ue, buttonRef: me, optionsRef: ye, value: L, defaultValue: h, disabled: E, mode: N ? 1 : 0, get activeOptionIndex() {
|
|
@@ -5771,9 +5766,9 @@ function EA(o, d) {
|
|
|
5771
5766
|
}, [oe, Tt]), ee.createElement(y1.Provider, { value: te }, ee.createElement(g1.Provider, { value: $e }, ee.createElement(h1, { value: Xt($e.comboboxState, { [0]: li.Open, [1]: li.Closed }) }, S != null && L != null && p1({ [S]: L }).map(([ze, Ce], Ye) => ee.createElement(Lv, { features: ld.Hidden, ref: Ye === 0 ? (pe) => {
|
|
5772
5767
|
var ve;
|
|
5773
5768
|
oe.current = (ve = pe == null ? void 0 : pe.closest("form")) != null ? ve : null;
|
|
5774
|
-
} : void 0, ...Gy({ key: ze, as: "input", type: "hidden", hidden: !0, readOnly: !0, name: ze, value: Ce }) })), An({ ourProps: _e, theirProps: O, slot: Xe, defaultTag:
|
|
5769
|
+
} : void 0, ...Gy({ key: ze, as: "input", type: "hidden", hidden: !0, readOnly: !0, name: ze, value: Ce }) })), An({ ourProps: _e, theirProps: O, slot: Xe, defaultTag: SA, name: "Combobox" }))));
|
|
5775
5770
|
}
|
|
5776
|
-
let
|
|
5771
|
+
let CA = Nn(xA), EA = "input", TA = Nn(function(o, d) {
|
|
5777
5772
|
var f, h, g, S;
|
|
5778
5773
|
let v = ga(), { id: E = `headlessui-combobox-input-${v}`, onChange: w, displayValue: T, type: N = "text", ...O } = o, L = sd("Combobox.Input"), M = $v("Combobox.Input"), j = qn(L.inputRef, d), I = et(!1), H = Il(), Z = function() {
|
|
5779
5774
|
var he;
|
|
@@ -5850,8 +5845,8 @@ let TA = Nn(EA), wA = "input", RA = Nn(function(o, d) {
|
|
|
5850
5845
|
if (L.labelId)
|
|
5851
5846
|
return [L.labelId].join(" ");
|
|
5852
5847
|
}, [L.labelId]), Xe = tn(() => ({ open: L.comboboxState === 0, disabled: L.disabled }), [L]), ft = { ref: j, id: E, role: "combobox", type: N, "aria-controls": (f = L.optionsRef.current) == null ? void 0 : f.id, "aria-expanded": L.disabled ? void 0 : L.comboboxState === 0, "aria-activedescendant": L.activeOptionIndex === null || (h = L.options[L.activeOptionIndex]) == null ? void 0 : h.id, "aria-multiselectable": L.mode === 1 ? !0 : void 0, "aria-labelledby": $e, defaultValue: (S = (g = o.defaultValue) != null ? g : L.defaultValue !== void 0 ? T == null ? void 0 : T(L.defaultValue) : null) != null ? S : L.defaultValue, disabled: L.disabled, onCompositionStart: ue, onCompositionEnd: me, onKeyDown: ye, onChange: Me, onBlur: ie };
|
|
5853
|
-
return An({ ourProps: ft, theirProps: O, slot: Xe, defaultTag:
|
|
5854
|
-
}),
|
|
5848
|
+
return An({ ourProps: ft, theirProps: O, slot: Xe, defaultTag: EA, name: "Combobox.Input" });
|
|
5849
|
+
}), wA = "button", RA = Nn(function(o, d) {
|
|
5855
5850
|
var f;
|
|
5856
5851
|
let h = sd("Combobox.Button"), g = $v("Combobox.Button"), S = qn(h.buttonRef, d), v = ga(), { id: E = `headlessui-combobox-button-${v}`, ...w } = o, T = Il(), N = Pe((I) => {
|
|
5857
5852
|
switch (I.key) {
|
|
@@ -5886,16 +5881,16 @@ let TA = Nn(EA), wA = "input", RA = Nn(function(o, d) {
|
|
|
5886
5881
|
if (h.labelId)
|
|
5887
5882
|
return [h.labelId, E].join(" ");
|
|
5888
5883
|
}, [h.labelId, E]), M = tn(() => ({ open: h.comboboxState === 0, disabled: h.disabled, value: h.value }), [h]), j = { ref: S, id: E, type: qT(o, h.buttonRef), tabIndex: -1, "aria-haspopup": "listbox", "aria-controls": (f = h.optionsRef.current) == null ? void 0 : f.id, "aria-expanded": h.disabled ? void 0 : h.comboboxState === 0, "aria-labelledby": L, disabled: h.disabled, onClick: O, onKeyDown: N };
|
|
5889
|
-
return An({ ourProps: j, theirProps: w, slot: M, defaultTag:
|
|
5890
|
-
}),
|
|
5884
|
+
return An({ ourProps: j, theirProps: w, slot: M, defaultTag: wA, name: "Combobox.Button" });
|
|
5885
|
+
}), kA = "label", NA = Nn(function(o, d) {
|
|
5891
5886
|
let f = ga(), { id: h = `headlessui-combobox-label-${f}`, ...g } = o, S = sd("Combobox.Label"), v = $v("Combobox.Label"), E = qn(S.labelRef, d);
|
|
5892
5887
|
Rn(() => v.registerLabel(h), [h]);
|
|
5893
5888
|
let w = Pe(() => {
|
|
5894
5889
|
var N;
|
|
5895
5890
|
return (N = S.inputRef.current) == null ? void 0 : N.focus({ preventScroll: !0 });
|
|
5896
5891
|
}), T = tn(() => ({ open: S.comboboxState === 0, disabled: S.disabled }), [S]);
|
|
5897
|
-
return An({ ourProps: { ref: E, id: h, onClick: w }, theirProps: g, slot: T, defaultTag:
|
|
5898
|
-
}),
|
|
5892
|
+
return An({ ourProps: { ref: E, id: h, onClick: w }, theirProps: g, slot: T, defaultTag: kA, name: "Combobox.Label" });
|
|
5893
|
+
}), DA = "ul", OA = Qu.RenderStrategy | Qu.Static, _A = Nn(function(o, d) {
|
|
5899
5894
|
var f;
|
|
5900
5895
|
let h = ga(), { id: g = `headlessui-combobox-options-${h}`, hold: S = !1, ...v } = o, E = sd("Combobox.Options"), w = qn(E.optionsRef, d), T = Fv(), N = (() => T !== null ? T === li.Open : E.comboboxState === 0)();
|
|
5901
5896
|
Rn(() => {
|
|
@@ -5903,7 +5898,7 @@ let TA = Nn(EA), wA = "input", RA = Nn(function(o, d) {
|
|
|
5903
5898
|
E.optionsPropsRef.current.static = (j = o.static) != null ? j : !1;
|
|
5904
5899
|
}, [E.optionsPropsRef, o.static]), Rn(() => {
|
|
5905
5900
|
E.optionsPropsRef.current.hold = S;
|
|
5906
|
-
}, [E.optionsPropsRef, S]),
|
|
5901
|
+
}, [E.optionsPropsRef, S]), sA({ container: E.optionsRef.current, enabled: E.comboboxState === 0, accept(j) {
|
|
5907
5902
|
return j.getAttribute("role") === "option" ? NodeFilter.FILTER_REJECT : j.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
|
|
5908
5903
|
}, walk(j) {
|
|
5909
5904
|
j.setAttribute("role", "none");
|
|
@@ -5912,8 +5907,8 @@ let TA = Nn(EA), wA = "input", RA = Nn(function(o, d) {
|
|
|
5912
5907
|
var j, I;
|
|
5913
5908
|
return (I = E.labelId) != null ? I : (j = E.buttonRef.current) == null ? void 0 : j.id;
|
|
5914
5909
|
}, [E.labelId, E.buttonRef.current]), L = tn(() => ({ open: E.comboboxState === 0 }), [E]), M = { "aria-activedescendant": E.activeOptionIndex === null || (f = E.options[E.activeOptionIndex]) == null ? void 0 : f.id, "aria-labelledby": O, role: "listbox", id: g, ref: w };
|
|
5915
|
-
return An({ ourProps: M, theirProps: v, slot: L, defaultTag:
|
|
5916
|
-
}),
|
|
5910
|
+
return An({ ourProps: M, theirProps: v, slot: L, defaultTag: DA, features: OA, visible: N, name: "Combobox.Options" });
|
|
5911
|
+
}), LA = "li", MA = Nn(function(o, d) {
|
|
5917
5912
|
var f, h;
|
|
5918
5913
|
let g = ga(), { id: S = `headlessui-combobox-option-${g}`, disabled: v = !1, value: E, ...w } = o, T = sd("Combobox.Option"), N = $v("Combobox.Option"), O = T.activeOptionIndex !== null ? T.options[T.activeOptionIndex].id === S : !1, L = T.isSelected(E), M = et(null), j = Ri({ disabled: v, value: E, domRef: M, textValue: (h = (f = M.current) == null ? void 0 : f.textContent) == null ? void 0 : h.toLowerCase() }), I = qn(d, M), H = Pe(() => N.selectOption(S));
|
|
5919
5914
|
Rn(() => N.registerOption(S, j), [j, S]);
|
|
@@ -5947,9 +5942,9 @@ let TA = Nn(EA), wA = "input", RA = Nn(function(o, d) {
|
|
|
5947
5942
|
}), ie = Pe((Xe) => {
|
|
5948
5943
|
!me.wasMoved(Xe) || v || !O || T.optionsPropsRef.current.hold || N.goToOption(Wt.Nothing);
|
|
5949
5944
|
}), $e = tn(() => ({ active: O, selected: L, disabled: v }), [O, L, v]);
|
|
5950
|
-
return An({ ourProps: { id: S, ref: I, role: "option", tabIndex: v === !0 ? void 0 : -1, "aria-disabled": v === !0 ? !0 : void 0, "aria-selected": L, disabled: void 0, onClick: X, onFocus: ue, onPointerEnter: ye, onMouseEnter: ye, onPointerMove: Me, onMouseMove: Me, onPointerLeave: ie, onMouseLeave: ie }, theirProps: w, slot: $e, defaultTag:
|
|
5951
|
-
}), Yu = Object.assign(
|
|
5952
|
-
function
|
|
5945
|
+
return An({ ourProps: { id: S, ref: I, role: "option", tabIndex: v === !0 ? void 0 : -1, "aria-disabled": v === !0 ? !0 : void 0, "aria-selected": L, disabled: void 0, onClick: X, onFocus: ue, onPointerEnter: ye, onMouseEnter: ye, onPointerMove: Me, onMouseMove: Me, onPointerLeave: ie, onMouseLeave: ie }, theirProps: w, slot: $e, defaultTag: LA, name: "Combobox.Option" });
|
|
5946
|
+
}), Yu = Object.assign(CA, { Input: TA, Button: RA, Label: NA, Options: _A, Option: MA });
|
|
5947
|
+
function zA(o, d, f) {
|
|
5953
5948
|
let h = Ri(d);
|
|
5954
5949
|
Et(() => {
|
|
5955
5950
|
function g(S) {
|
|
@@ -5959,9 +5954,9 @@ function UA(o, d, f) {
|
|
|
5959
5954
|
}, [o, f]);
|
|
5960
5955
|
}
|
|
5961
5956
|
var Ov = ((o) => (o[o.Forwards = 0] = "Forwards", o[o.Backwards = 1] = "Backwards", o))(Ov || {});
|
|
5962
|
-
function
|
|
5957
|
+
function AA() {
|
|
5963
5958
|
let o = et(0);
|
|
5964
|
-
return
|
|
5959
|
+
return zA("keydown", (d) => {
|
|
5965
5960
|
d.key === "Tab" && (o.current = d.shiftKey ? 1 : 0);
|
|
5966
5961
|
}, !0), o;
|
|
5967
5962
|
}
|
|
@@ -5984,16 +5979,16 @@ function b1(o, d, f, h) {
|
|
|
5984
5979
|
return o.addEventListener(d, S, h), () => o.removeEventListener(d, S, h);
|
|
5985
5980
|
}, [o, d, h]);
|
|
5986
5981
|
}
|
|
5987
|
-
let
|
|
5982
|
+
let UA = "div";
|
|
5988
5983
|
var aw = ((o) => (o[o.None = 1] = "None", o[o.InitialFocus = 2] = "InitialFocus", o[o.TabLock = 4] = "TabLock", o[o.FocusLock = 8] = "FocusLock", o[o.RestoreFocus = 16] = "RestoreFocus", o[o.All = 30] = "All", o))(aw || {});
|
|
5989
5984
|
let Dv = Object.assign(Nn(function(o, d) {
|
|
5990
5985
|
let f = et(null), h = qn(f, d), { initialFocus: g, containers: S, features: v = 30, ...E } = o;
|
|
5991
5986
|
ud() || (v = 1);
|
|
5992
5987
|
let w = tg(f);
|
|
5993
|
-
|
|
5994
|
-
let T =
|
|
5995
|
-
|
|
5996
|
-
let N =
|
|
5988
|
+
FA({ ownerDocument: w }, Boolean(v & 16));
|
|
5989
|
+
let T = $A({ ownerDocument: w, container: f, initialFocus: g }, Boolean(v & 2));
|
|
5990
|
+
jA({ ownerDocument: w, container: f, containers: S, previousActiveElement: T }, Boolean(v & 8));
|
|
5991
|
+
let N = AA(), O = Pe((I) => {
|
|
5997
5992
|
let H = f.current;
|
|
5998
5993
|
H && ((Z) => Z())(() => {
|
|
5999
5994
|
Xt(N.current, { [Ov.Forwards]: () => Yy(H, ic.First, { skipElements: [I.relatedTarget] }), [Ov.Backwards]: () => Yy(H, ic.Last, { skipElements: [I.relatedTarget] }) });
|
|
@@ -6008,9 +6003,9 @@ let Dv = Object.assign(Nn(function(o, d) {
|
|
|
6008
6003
|
let Z = I.relatedTarget;
|
|
6009
6004
|
!Z || Z.dataset.headlessuiFocusGuard !== "true" && (iw(H, Z) || (M.current ? Yy(f.current, Xt(N.current, { [Ov.Forwards]: () => ic.Next, [Ov.Backwards]: () => ic.Previous }) | ic.WrapAround, { relativeTo: I.target }) : I.target instanceof HTMLElement && lc(I.target)));
|
|
6010
6005
|
} };
|
|
6011
|
-
return ee.createElement(ee.Fragment, null, Boolean(v & 4) && ee.createElement(Lv, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: O, features: ld.Focusable }), An({ ourProps: j, theirProps: E, defaultTag:
|
|
6006
|
+
return ee.createElement(ee.Fragment, null, Boolean(v & 4) && ee.createElement(Lv, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: O, features: ld.Focusable }), An({ ourProps: j, theirProps: E, defaultTag: UA, name: "FocusTrap" }), Boolean(v & 4) && ee.createElement(Lv, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: O, features: ld.Focusable }));
|
|
6012
6007
|
}), { features: aw });
|
|
6013
|
-
function
|
|
6008
|
+
function FA({ ownerDocument: o }, d) {
|
|
6014
6009
|
let f = et(null);
|
|
6015
6010
|
b1(o == null ? void 0 : o.defaultView, "focusout", (g) => {
|
|
6016
6011
|
!d || f.current || (f.current = g.target);
|
|
@@ -6024,7 +6019,7 @@ function jA({ ownerDocument: o }, d) {
|
|
|
6024
6019
|
});
|
|
6025
6020
|
}), []);
|
|
6026
6021
|
}
|
|
6027
|
-
function
|
|
6022
|
+
function $A({ ownerDocument: o, container: d, initialFocus: f }, h) {
|
|
6028
6023
|
let g = et(null), S = eg();
|
|
6029
6024
|
return m1(() => {
|
|
6030
6025
|
if (!h)
|
|
@@ -6047,7 +6042,7 @@ function HA({ ownerDocument: o, container: d, initialFocus: f }, h) {
|
|
|
6047
6042
|
});
|
|
6048
6043
|
}, [h]), g;
|
|
6049
6044
|
}
|
|
6050
|
-
function
|
|
6045
|
+
function jA({ ownerDocument: o, container: d, containers: f, previousActiveElement: h }, g) {
|
|
6051
6046
|
let S = eg();
|
|
6052
6047
|
b1(o == null ? void 0 : o.defaultView, "focus", (v) => {
|
|
6053
6048
|
if (!g || !S.current)
|
|
@@ -6076,7 +6071,7 @@ function hT(o) {
|
|
|
6076
6071
|
let d = Iu.get(o);
|
|
6077
6072
|
!d || (d["aria-hidden"] === null ? o.removeAttribute("aria-hidden") : o.setAttribute("aria-hidden", d["aria-hidden"]), o.inert = d.inert);
|
|
6078
6073
|
}
|
|
6079
|
-
function
|
|
6074
|
+
function HA(o, d = !0) {
|
|
6080
6075
|
Rn(() => {
|
|
6081
6076
|
if (!d || !o.current)
|
|
6082
6077
|
return;
|
|
@@ -6109,14 +6104,14 @@ function VA(o, d = !0) {
|
|
|
6109
6104
|
}
|
|
6110
6105
|
}, [d]);
|
|
6111
6106
|
}
|
|
6112
|
-
var ZS = {},
|
|
6107
|
+
var ZS = {}, PA = {
|
|
6113
6108
|
get exports() {
|
|
6114
6109
|
return ZS;
|
|
6115
6110
|
},
|
|
6116
6111
|
set exports(o) {
|
|
6117
6112
|
ZS = o;
|
|
6118
6113
|
}
|
|
6119
|
-
}, Pa = {}, Wy = {},
|
|
6114
|
+
}, Pa = {}, Wy = {}, VA = {
|
|
6120
6115
|
get exports() {
|
|
6121
6116
|
return Wy;
|
|
6122
6117
|
},
|
|
@@ -6134,7 +6129,7 @@ var ZS = {}, BA = {
|
|
|
6134
6129
|
* LICENSE file in the root directory of this source tree.
|
|
6135
6130
|
*/
|
|
6136
6131
|
var mT;
|
|
6137
|
-
function
|
|
6132
|
+
function BA() {
|
|
6138
6133
|
return mT || (mT = 1, function(o) {
|
|
6139
6134
|
function d(te, _e) {
|
|
6140
6135
|
var oe = te.length;
|
|
@@ -6362,7 +6357,7 @@ var VS = {};
|
|
|
6362
6357
|
* LICENSE file in the root directory of this source tree.
|
|
6363
6358
|
*/
|
|
6364
6359
|
var yT;
|
|
6365
|
-
function
|
|
6360
|
+
function IA() {
|
|
6366
6361
|
return yT || (yT = 1, function(o) {
|
|
6367
6362
|
process.env.NODE_ENV !== "production" && function() {
|
|
6368
6363
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
@@ -6629,8 +6624,8 @@ function QA() {
|
|
|
6629
6624
|
var gT;
|
|
6630
6625
|
function lw() {
|
|
6631
6626
|
return gT || (gT = 1, function(o) {
|
|
6632
|
-
process.env.NODE_ENV === "production" ? o.exports =
|
|
6633
|
-
}(
|
|
6627
|
+
process.env.NODE_ENV === "production" ? o.exports = BA() : o.exports = IA();
|
|
6628
|
+
}(VA)), Wy;
|
|
6634
6629
|
}
|
|
6635
6630
|
/**
|
|
6636
6631
|
* @license React
|
|
@@ -6642,7 +6637,7 @@ function lw() {
|
|
|
6642
6637
|
* LICENSE file in the root directory of this source tree.
|
|
6643
6638
|
*/
|
|
6644
6639
|
var bT;
|
|
6645
|
-
function
|
|
6640
|
+
function YA() {
|
|
6646
6641
|
if (bT)
|
|
6647
6642
|
return Pa;
|
|
6648
6643
|
bT = 1;
|
|
@@ -12278,7 +12273,7 @@ var Va = {};
|
|
|
12278
12273
|
* LICENSE file in the root directory of this source tree.
|
|
12279
12274
|
*/
|
|
12280
12275
|
var ST;
|
|
12281
|
-
function
|
|
12276
|
+
function QA() {
|
|
12282
12277
|
return ST || (ST = 1, process.env.NODE_ENV !== "production" && function() {
|
|
12283
12278
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
12284
12279
|
var o = ee, d = lw(), f = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, h = !1;
|
|
@@ -17664,7 +17659,7 @@ Check the render method of \`` + e + "`." : "";
|
|
|
17664
17659
|
};
|
|
17665
17660
|
}
|
|
17666
17661
|
}
|
|
17667
|
-
function
|
|
17662
|
+
function rU(e) {
|
|
17668
17663
|
return e;
|
|
17669
17664
|
}
|
|
17670
17665
|
function iR(e) {
|
|
@@ -20146,9 +20141,9 @@ Incoming: %s`, ne, "[" + t.join(", ") + "]", "[" + e.join(", ") + "]");
|
|
|
20146
20141
|
}
|
|
20147
20142
|
return [b, c];
|
|
20148
20143
|
}
|
|
20149
|
-
function
|
|
20144
|
+
function aU(e, t, a) {
|
|
20150
20145
|
}
|
|
20151
|
-
function
|
|
20146
|
+
function iU(e, t, a) {
|
|
20152
20147
|
}
|
|
20153
20148
|
function vb(e, t, a) {
|
|
20154
20149
|
var i = Qt, u = Al(), c, m = Or();
|
|
@@ -25643,17 +25638,17 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
|
|
|
25643
25638
|
}
|
|
25644
25639
|
}
|
|
25645
25640
|
}
|
|
25646
|
-
process.env.NODE_ENV === "production" ? (d(), o.exports =
|
|
25647
|
-
})(
|
|
25641
|
+
process.env.NODE_ENV === "production" ? (d(), o.exports = YA()) : o.exports = QA();
|
|
25642
|
+
})(PA);
|
|
25648
25643
|
let ow = oi(!1);
|
|
25649
|
-
function
|
|
25644
|
+
function GA() {
|
|
25650
25645
|
return ya(ow);
|
|
25651
25646
|
}
|
|
25652
25647
|
function JS(o) {
|
|
25653
25648
|
return ee.createElement(ow.Provider, { value: o.force }, o.children);
|
|
25654
25649
|
}
|
|
25655
|
-
function
|
|
25656
|
-
let d =
|
|
25650
|
+
function WA(o) {
|
|
25651
|
+
let d = GA(), f = ya(uw), h = tg(o), [g, S] = kn(() => {
|
|
25657
25652
|
if (!d && f !== null || Zy)
|
|
25658
25653
|
return null;
|
|
25659
25654
|
let v = h == null ? void 0 : h.getElementById("headlessui-portal-root");
|
|
@@ -25670,10 +25665,10 @@ function qA(o) {
|
|
|
25670
25665
|
d || f !== null && S(f.current);
|
|
25671
25666
|
}, [f, S, d]), g;
|
|
25672
25667
|
}
|
|
25673
|
-
let
|
|
25674
|
-
let f = o, h = et(null), g = qn(
|
|
25668
|
+
let XA = ii, qA = Nn(function(o, d) {
|
|
25669
|
+
let f = o, h = et(null), g = qn(uA((N) => {
|
|
25675
25670
|
h.current = N;
|
|
25676
|
-
}), d), S = tg(h), v =
|
|
25671
|
+
}), d), S = tg(h), v = WA(h), [E] = kn(() => {
|
|
25677
25672
|
var N;
|
|
25678
25673
|
return Zy ? null : (N = S == null ? void 0 : S.createElement("div")) != null ? N : null;
|
|
25679
25674
|
}), w = ud(), T = et(!1);
|
|
@@ -25685,11 +25680,11 @@ let KA = ii, ZA = Nn(function(o, d) {
|
|
|
25685
25680
|
!T.current || !v || !E || (v.removeChild(E), v.childNodes.length <= 0 && ((N = v.parentElement) == null || N.removeChild(v)));
|
|
25686
25681
|
});
|
|
25687
25682
|
};
|
|
25688
|
-
}, [v, E]), w ? !v || !E ? null : ZS.createPortal(An({ ourProps: { ref: g }, theirProps: f, defaultTag:
|
|
25689
|
-
}),
|
|
25683
|
+
}, [v, E]), w ? !v || !E ? null : ZS.createPortal(An({ ourProps: { ref: g }, theirProps: f, defaultTag: XA, name: "Portal" }), E) : null;
|
|
25684
|
+
}), KA = ii, uw = oi(null), ZA = Nn(function(o, d) {
|
|
25690
25685
|
let { target: f, ...h } = o, g = { ref: qn(d) };
|
|
25691
|
-
return ee.createElement(uw.Provider, { value: f }, An({ ourProps: g, theirProps: h, defaultTag:
|
|
25692
|
-
}), e1 = Object.assign(
|
|
25686
|
+
return ee.createElement(uw.Provider, { value: f }, An({ ourProps: g, theirProps: h, defaultTag: KA, name: "Popover.Group" }));
|
|
25687
|
+
}), e1 = Object.assign(qA, { Group: ZA }), sw = oi(null);
|
|
25693
25688
|
function cw() {
|
|
25694
25689
|
let o = ya(sw);
|
|
25695
25690
|
if (o === null) {
|
|
@@ -25698,7 +25693,7 @@ function cw() {
|
|
|
25698
25693
|
}
|
|
25699
25694
|
return o;
|
|
25700
25695
|
}
|
|
25701
|
-
function
|
|
25696
|
+
function JA() {
|
|
25702
25697
|
let [o, d] = kn([]);
|
|
25703
25698
|
return [o.length > 0 ? o.join(" ") : void 0, tn(() => function(f) {
|
|
25704
25699
|
let h = Pe((S) => (d((v) => [...v, S]), () => d((v) => {
|
|
@@ -25708,20 +25703,20 @@ function t2() {
|
|
|
25708
25703
|
return ee.createElement(sw.Provider, { value: g }, f.children);
|
|
25709
25704
|
}, [d])];
|
|
25710
25705
|
}
|
|
25711
|
-
let
|
|
25706
|
+
let e2 = "p", t2 = Nn(function(o, d) {
|
|
25712
25707
|
let f = ga(), { id: h = `headlessui-description-${f}`, ...g } = o, S = cw(), v = qn(d);
|
|
25713
25708
|
Rn(() => S.register(h), [h, S.register]);
|
|
25714
25709
|
let E = { ref: v, ...S.props, id: h };
|
|
25715
|
-
return An({ ourProps: E, theirProps: g, slot: S.slot || {}, defaultTag:
|
|
25710
|
+
return An({ ourProps: E, theirProps: g, slot: S.slot || {}, defaultTag: e2, name: S.name || "Description" });
|
|
25716
25711
|
}), S1 = oi(() => {
|
|
25717
25712
|
});
|
|
25718
25713
|
S1.displayName = "StackContext";
|
|
25719
25714
|
var t1 = ((o) => (o[o.Add = 0] = "Add", o[o.Remove = 1] = "Remove", o))(t1 || {});
|
|
25720
|
-
function
|
|
25715
|
+
function n2() {
|
|
25721
25716
|
return ya(S1);
|
|
25722
25717
|
}
|
|
25723
|
-
function
|
|
25724
|
-
let S =
|
|
25718
|
+
function r2({ children: o, onUpdate: d, type: f, element: h, enabled: g }) {
|
|
25719
|
+
let S = n2(), v = Pe((...E) => {
|
|
25725
25720
|
d == null || d(...E), S(...E);
|
|
25726
25721
|
});
|
|
25727
25722
|
return Rn(() => {
|
|
@@ -25731,11 +25726,11 @@ function i2({ children: o, onUpdate: d, type: f, element: h, enabled: g }) {
|
|
|
25731
25726
|
};
|
|
25732
25727
|
}, [v, f, h, g]), ee.createElement(S1.Provider, { value: v }, o);
|
|
25733
25728
|
}
|
|
25734
|
-
function
|
|
25729
|
+
function a2() {
|
|
25735
25730
|
return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
|
|
25736
25731
|
}
|
|
25737
|
-
var
|
|
25738
|
-
let
|
|
25732
|
+
var i2 = ((o) => (o[o.Open = 0] = "Open", o[o.Closed = 1] = "Closed", o))(i2 || {}), l2 = ((o) => (o[o.SetTitleId = 0] = "SetTitleId", o))(l2 || {});
|
|
25733
|
+
let o2 = { [0](o, d) {
|
|
25739
25734
|
return o.titleId === d.id ? o : { ...o, titleId: d.id };
|
|
25740
25735
|
} }, Xy = oi(null);
|
|
25741
25736
|
Xy.displayName = "DialogContext";
|
|
@@ -25747,7 +25742,7 @@ function jv(o) {
|
|
|
25747
25742
|
}
|
|
25748
25743
|
return d;
|
|
25749
25744
|
}
|
|
25750
|
-
function
|
|
25745
|
+
function u2(o, d, f = () => [document.body]) {
|
|
25751
25746
|
Et(() => {
|
|
25752
25747
|
var h;
|
|
25753
25748
|
if (!d || !o)
|
|
@@ -25764,7 +25759,7 @@ function c2(o, d, f = () => [document.body]) {
|
|
|
25764
25759
|
let T = E.clientWidth - E.offsetWidth, N = w - T;
|
|
25765
25760
|
v(E, "paddingRight", `${N}px`);
|
|
25766
25761
|
}
|
|
25767
|
-
if (
|
|
25762
|
+
if (a2()) {
|
|
25768
25763
|
v(o.body, "marginTop", `-${S}px`), window.scrollTo(0, 0);
|
|
25769
25764
|
let T = null;
|
|
25770
25765
|
g.addEventListener(o, "click", (N) => {
|
|
@@ -25786,10 +25781,10 @@ function c2(o, d, f = () => [document.body]) {
|
|
|
25786
25781
|
return g.dispose;
|
|
25787
25782
|
}, [o, d]);
|
|
25788
25783
|
}
|
|
25789
|
-
function
|
|
25790
|
-
return Xt(d.type,
|
|
25784
|
+
function s2(o, d) {
|
|
25785
|
+
return Xt(d.type, o2, o, d);
|
|
25791
25786
|
}
|
|
25792
|
-
let
|
|
25787
|
+
let c2 = "div", f2 = Qu.RenderStrategy | Qu.Static, d2 = Nn(function(o, d) {
|
|
25793
25788
|
let f = ga(), { id: h = `headlessui-dialog-${f}`, open: g, onClose: S, initialFocus: v, __demoMode: E = !1, ...w } = o, [T, N] = kn(0), O = Fv();
|
|
25794
25789
|
g === void 0 && O !== null && (g = Xt(O, { [li.Open]: !0, [li.Closed]: !1 }));
|
|
25795
25790
|
let L = et(/* @__PURE__ */ new Set()), M = et(null), j = qn(M, d), I = et(null), H = tg(M), Z = o.hasOwnProperty("open") || O !== null, X = o.hasOwnProperty("onClose");
|
|
@@ -25803,15 +25798,15 @@ let d2 = "div", p2 = Qu.RenderStrategy | Qu.Static, v2 = Nn(function(o, d) {
|
|
|
25803
25798
|
throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${g}`);
|
|
25804
25799
|
if (typeof S != "function")
|
|
25805
25800
|
throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${S}`);
|
|
25806
|
-
let ue = g ? 0 : 1, [me, ye] = r1(
|
|
25807
|
-
|
|
25801
|
+
let ue = g ? 0 : 1, [me, ye] = r1(s2, { titleId: null, descriptionId: null, panelRef: qy() }), Me = Pe(() => S(!1)), ie = Pe((te) => ye({ type: 0, id: te })), $e = ud() ? E ? !1 : ue === 0 : !1, Xe = T > 1, ft = ya(Xy) !== null, he = Xe ? "parent" : "leaf";
|
|
25802
|
+
HA(M, Xe ? $e : !1);
|
|
25808
25803
|
let bt = Pe(() => {
|
|
25809
25804
|
var te, _e;
|
|
25810
25805
|
return [...Array.from((te = H == null ? void 0 : H.querySelectorAll("body > *, [data-headlessui-portal]")) != null ? te : []).filter((oe) => !(!(oe instanceof HTMLElement) || oe.contains(I.current) || me.panelRef.current && oe.contains(me.panelRef.current))), (_e = me.panelRef.current) != null ? _e : M.current];
|
|
25811
25806
|
});
|
|
25812
25807
|
f1(() => bt(), Me, $e && !Xe), b1(H == null ? void 0 : H.defaultView, "keydown", (te) => {
|
|
25813
25808
|
te.defaultPrevented || te.key === jt.Escape && ue === 0 && (Xe || (te.preventDefault(), te.stopPropagation(), Me()));
|
|
25814
|
-
}),
|
|
25809
|
+
}), u2(H, ue === 0 && !ft, bt), Et(() => {
|
|
25815
25810
|
if (ue !== 0 || !M.current)
|
|
25816
25811
|
return;
|
|
25817
25812
|
let te = new IntersectionObserver((_e) => {
|
|
@@ -25820,15 +25815,15 @@ let d2 = "div", p2 = Qu.RenderStrategy | Qu.Static, v2 = Nn(function(o, d) {
|
|
|
25820
25815
|
});
|
|
25821
25816
|
return te.observe(M.current), () => te.disconnect();
|
|
25822
25817
|
}, [ue, M, Me]);
|
|
25823
|
-
let [we, tt] =
|
|
25824
|
-
return ee.createElement(
|
|
25818
|
+
let [we, tt] = JA(), Lt = tn(() => [{ dialogState: ue, close: Me, setTitleId: ie }, me], [ue, me, Me, ie]), lt = tn(() => ({ open: ue === 0 }), [ue]), Tt = { ref: j, id: h, role: "dialog", "aria-modal": ue === 0 ? !0 : void 0, "aria-labelledby": me.titleId, "aria-describedby": we };
|
|
25819
|
+
return ee.createElement(r2, { type: "Dialog", enabled: ue === 0, element: M, onUpdate: Pe((te, _e, oe) => {
|
|
25825
25820
|
_e === "Dialog" && Xt(te, { [t1.Add]() {
|
|
25826
25821
|
L.current.add(oe), N((ut) => ut + 1);
|
|
25827
25822
|
}, [t1.Remove]() {
|
|
25828
25823
|
L.current.add(oe), N((ut) => ut - 1);
|
|
25829
25824
|
} });
|
|
25830
|
-
}) }, ee.createElement(JS, { force: !0 }, ee.createElement(e1, null, ee.createElement(Xy.Provider, { value: Lt }, ee.createElement(e1.Group, { target: M }, ee.createElement(JS, { force: !1 }, ee.createElement(tt, { slot: lt, name: "Dialog.Description" }, ee.createElement(Dv, { initialFocus: v, containers: L, features: $e ? Xt(he, { parent: Dv.features.RestoreFocus, leaf: Dv.features.All & ~Dv.features.FocusLock }) : Dv.features.None }, An({ ourProps: Tt, theirProps: w, slot: lt, defaultTag:
|
|
25831
|
-
}),
|
|
25825
|
+
}) }, ee.createElement(JS, { force: !0 }, ee.createElement(e1, null, ee.createElement(Xy.Provider, { value: Lt }, ee.createElement(e1.Group, { target: M }, ee.createElement(JS, { force: !1 }, ee.createElement(tt, { slot: lt, name: "Dialog.Description" }, ee.createElement(Dv, { initialFocus: v, containers: L, features: $e ? Xt(he, { parent: Dv.features.RestoreFocus, leaf: Dv.features.All & ~Dv.features.FocusLock }) : Dv.features.None }, An({ ourProps: Tt, theirProps: w, slot: lt, defaultTag: c2, features: f2, visible: ue === 0, name: "Dialog" })))))))), ee.createElement(Lv, { features: ld.Hidden, ref: I }));
|
|
25826
|
+
}), p2 = "div", v2 = Nn(function(o, d) {
|
|
25832
25827
|
let f = ga(), { id: h = `headlessui-dialog-overlay-${f}`, ...g } = o, [{ dialogState: S, close: v }] = jv("Dialog.Overlay"), E = qn(d), w = Pe((N) => {
|
|
25833
25828
|
if (N.target === N.currentTarget) {
|
|
25834
25829
|
if (d1(N.currentTarget))
|
|
@@ -25836,32 +25831,32 @@ let d2 = "div", p2 = Qu.RenderStrategy | Qu.Static, v2 = Nn(function(o, d) {
|
|
|
25836
25831
|
N.preventDefault(), N.stopPropagation(), v();
|
|
25837
25832
|
}
|
|
25838
25833
|
}), T = tn(() => ({ open: S === 0 }), [S]);
|
|
25839
|
-
return An({ ourProps: { ref: E, id: h, "aria-hidden": !0, onClick: w }, theirProps: g, slot: T, defaultTag:
|
|
25840
|
-
}),
|
|
25834
|
+
return An({ ourProps: { ref: E, id: h, "aria-hidden": !0, onClick: w }, theirProps: g, slot: T, defaultTag: p2, name: "Dialog.Overlay" });
|
|
25835
|
+
}), h2 = "div", m2 = Nn(function(o, d) {
|
|
25841
25836
|
let f = ga(), { id: h = `headlessui-dialog-backdrop-${f}`, ...g } = o, [{ dialogState: S }, v] = jv("Dialog.Backdrop"), E = qn(d);
|
|
25842
25837
|
Et(() => {
|
|
25843
25838
|
if (v.panelRef.current === null)
|
|
25844
25839
|
throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.");
|
|
25845
25840
|
}, [v.panelRef]);
|
|
25846
25841
|
let w = tn(() => ({ open: S === 0 }), [S]);
|
|
25847
|
-
return ee.createElement(JS, { force: !0 }, ee.createElement(e1, null, An({ ourProps: { ref: E, id: h, "aria-hidden": !0 }, theirProps: g, slot: w, defaultTag:
|
|
25848
|
-
}),
|
|
25842
|
+
return ee.createElement(JS, { force: !0 }, ee.createElement(e1, null, An({ ourProps: { ref: E, id: h, "aria-hidden": !0 }, theirProps: g, slot: w, defaultTag: h2, name: "Dialog.Backdrop" })));
|
|
25843
|
+
}), y2 = "div", g2 = Nn(function(o, d) {
|
|
25849
25844
|
let f = ga(), { id: h = `headlessui-dialog-panel-${f}`, ...g } = o, [{ dialogState: S }, v] = jv("Dialog.Panel"), E = qn(d, v.panelRef), w = tn(() => ({ open: S === 0 }), [S]), T = Pe((N) => {
|
|
25850
25845
|
N.stopPropagation();
|
|
25851
25846
|
});
|
|
25852
|
-
return An({ ourProps: { ref: E, id: h, onClick: T }, theirProps: g, slot: w, defaultTag:
|
|
25853
|
-
}),
|
|
25847
|
+
return An({ ourProps: { ref: E, id: h, onClick: T }, theirProps: g, slot: w, defaultTag: y2, name: "Dialog.Panel" });
|
|
25848
|
+
}), b2 = "h2", S2 = Nn(function(o, d) {
|
|
25854
25849
|
let f = ga(), { id: h = `headlessui-dialog-title-${f}`, ...g } = o, [{ dialogState: S, setTitleId: v }] = jv("Dialog.Title"), E = qn(d);
|
|
25855
25850
|
Et(() => (v(h), () => v(null)), [h, v]);
|
|
25856
25851
|
let w = tn(() => ({ open: S === 0 }), [S]);
|
|
25857
|
-
return An({ ourProps: { ref: E, id: h }, theirProps: g, slot: w, defaultTag:
|
|
25858
|
-
}), BS = Object.assign(
|
|
25859
|
-
var
|
|
25852
|
+
return An({ ourProps: { ref: E, id: h }, theirProps: g, slot: w, defaultTag: b2, name: "Dialog.Title" });
|
|
25853
|
+
}), BS = Object.assign(d2, { Backdrop: m2, Panel: g2, Overlay: v2, Title: S2, Description: t2 });
|
|
25854
|
+
var x2 = ((o) => (o[o.Open = 0] = "Open", o[o.Closed = 1] = "Closed", o))(x2 || {}), C2 = ((o) => (o[o.Single = 0] = "Single", o[o.Multi = 1] = "Multi", o))(C2 || {}), E2 = ((o) => (o[o.Pointer = 0] = "Pointer", o[o.Other = 1] = "Other", o))(E2 || {}), T2 = ((o) => (o[o.OpenListbox = 0] = "OpenListbox", o[o.CloseListbox = 1] = "CloseListbox", o[o.GoToOption = 2] = "GoToOption", o[o.Search = 3] = "Search", o[o.ClearSearch = 4] = "ClearSearch", o[o.RegisterOption = 5] = "RegisterOption", o[o.UnregisterOption = 6] = "UnregisterOption", o[o.RegisterLabel = 7] = "RegisterLabel", o))(T2 || {});
|
|
25860
25855
|
function IS(o, d = (f) => f) {
|
|
25861
25856
|
let f = o.activeOptionIndex !== null ? o.options[o.activeOptionIndex] : null, h = c1(d(o.options.slice()), (S) => S.dataRef.current.domRef.current), g = f ? h.indexOf(f) : null;
|
|
25862
25857
|
return g === -1 && (g = null), { options: h, activeOptionIndex: g };
|
|
25863
25858
|
}
|
|
25864
|
-
let
|
|
25859
|
+
let w2 = { [1](o) {
|
|
25865
25860
|
return o.dataRef.current.disabled || o.listboxState === 1 ? o : { ...o, activeOptionIndex: null, listboxState: 1 };
|
|
25866
25861
|
}, [0](o) {
|
|
25867
25862
|
if (o.dataRef.current.disabled || o.listboxState === 0)
|
|
@@ -25913,13 +25908,13 @@ function Pv(o) {
|
|
|
25913
25908
|
}
|
|
25914
25909
|
return d;
|
|
25915
25910
|
}
|
|
25916
|
-
function
|
|
25917
|
-
return Xt(d.type,
|
|
25911
|
+
function R2(o, d) {
|
|
25912
|
+
return Xt(d.type, w2, o, d);
|
|
25918
25913
|
}
|
|
25919
|
-
let
|
|
25914
|
+
let k2 = ii, N2 = Nn(function(o, d) {
|
|
25920
25915
|
let { value: f, defaultValue: h, name: g, onChange: S, by: v = (Ce, Ye) => Ce === Ye, disabled: E = !1, horizontal: w = !1, multiple: T = !1, ...N } = o;
|
|
25921
25916
|
const O = w ? "horizontal" : "vertical";
|
|
25922
|
-
let L = qn(d), [M = T ? [] : void 0, j] = nw(f, S, h), [I, H] = r1(
|
|
25917
|
+
let L = qn(d), [M = T ? [] : void 0, j] = nw(f, S, h), [I, H] = r1(R2, { dataRef: qy(), listboxState: 1, options: [], searchQuery: "", labelId: null, activeOptionIndex: null, activationTrigger: 1 }), Z = et({ static: !1, hold: !1 }), X = et(null), ue = et(null), me = et(null), ye = Pe(typeof v == "string" ? (Ce, Ye) => {
|
|
25923
25918
|
let pe = v;
|
|
25924
25919
|
return (Ce == null ? void 0 : Ce[pe]) === (Ye == null ? void 0 : Ye[pe]);
|
|
25925
25920
|
} : v), Me = CT((Ce) => Xt(ie.mode, { [1]: () => M.some((Ye) => ye(Ye, Ce)), [0]: () => ye(M, Ce) }), [M]), ie = tn(() => ({ ...I, value: M, disabled: E, mode: T ? 1 : 0, orientation: O, compare: ye, isSelected: Me, optionsPropsRef: Z, labelRef: X, buttonRef: ue, optionsRef: me }), [M, E, T, I]);
|
|
@@ -25950,8 +25945,8 @@ let D2 = ii, O2 = Nn(function(o, d) {
|
|
|
25950
25945
|
}, [ut, lt]), ee.createElement(x1.Provider, { value: _e }, ee.createElement(C1.Provider, { value: ie }, ee.createElement(h1, { value: Xt(ie.listboxState, { [0]: li.Open, [1]: li.Closed }) }, g != null && M != null && p1({ [g]: M }).map(([Ce, Ye], pe) => ee.createElement(Lv, { features: ld.Hidden, ref: pe === 0 ? (ve) => {
|
|
25951
25946
|
var wt;
|
|
25952
25947
|
ut.current = (wt = ve == null ? void 0 : ve.closest("form")) != null ? wt : null;
|
|
25953
|
-
} : void 0, ...Gy({ key: Ce, as: "input", type: "hidden", hidden: !0, readOnly: !0, name: Ce, value: Ye }) })), An({ ourProps: oe, theirProps: N, slot: $e, defaultTag:
|
|
25954
|
-
}),
|
|
25948
|
+
} : void 0, ...Gy({ key: Ce, as: "input", type: "hidden", hidden: !0, readOnly: !0, name: Ce, value: Ye }) })), An({ ourProps: oe, theirProps: N, slot: $e, defaultTag: k2, name: "Listbox" }))));
|
|
25949
|
+
}), D2 = "button", O2 = Nn(function(o, d) {
|
|
25955
25950
|
var f;
|
|
25956
25951
|
let h = ga(), { id: g = `headlessui-listbox-button-${h}`, ...S } = o, v = Pv("Listbox.Button"), E = Hv("Listbox.Button"), w = qn(v.buttonRef, d), T = Il(), N = Pe((H) => {
|
|
25957
25952
|
switch (H.key) {
|
|
@@ -25985,16 +25980,16 @@ let D2 = ii, O2 = Nn(function(o, d) {
|
|
|
25985
25980
|
if (v.labelId)
|
|
25986
25981
|
return [v.labelId, g].join(" ");
|
|
25987
25982
|
}, [v.labelId, g]), j = tn(() => ({ open: v.listboxState === 0, disabled: v.disabled, value: v.value }), [v]), I = { ref: w, id: g, type: qT(o, v.buttonRef), "aria-haspopup": "listbox", "aria-controls": (f = v.optionsRef.current) == null ? void 0 : f.id, "aria-expanded": v.disabled ? void 0 : v.listboxState === 0, "aria-labelledby": M, disabled: v.disabled, onKeyDown: N, onKeyUp: O, onClick: L };
|
|
25988
|
-
return An({ ourProps: I, theirProps: S, slot: j, defaultTag:
|
|
25989
|
-
}),
|
|
25983
|
+
return An({ ourProps: I, theirProps: S, slot: j, defaultTag: D2, name: "Listbox.Button" });
|
|
25984
|
+
}), _2 = "label", L2 = Nn(function(o, d) {
|
|
25990
25985
|
let f = ga(), { id: h = `headlessui-listbox-label-${f}`, ...g } = o, S = Pv("Listbox.Label"), v = Hv("Listbox.Label"), E = qn(S.labelRef, d);
|
|
25991
25986
|
Rn(() => v.registerLabel(h), [h]);
|
|
25992
25987
|
let w = Pe(() => {
|
|
25993
25988
|
var N;
|
|
25994
25989
|
return (N = S.buttonRef.current) == null ? void 0 : N.focus({ preventScroll: !0 });
|
|
25995
25990
|
}), T = tn(() => ({ open: S.listboxState === 0, disabled: S.disabled }), [S]);
|
|
25996
|
-
return An({ ourProps: { ref: E, id: h, onClick: w }, theirProps: g, slot: T, defaultTag:
|
|
25997
|
-
}),
|
|
25991
|
+
return An({ ourProps: { ref: E, id: h, onClick: w }, theirProps: g, slot: T, defaultTag: _2, name: "Listbox.Label" });
|
|
25992
|
+
}), M2 = "ul", z2 = Qu.RenderStrategy | Qu.Static, A2 = Nn(function(o, d) {
|
|
25998
25993
|
var f;
|
|
25999
25994
|
let h = ga(), { id: g = `headlessui-listbox-options-${h}`, ...S } = o, v = Pv("Listbox.Options"), E = Hv("Listbox.Options"), w = qn(v.optionsRef, d), T = Il(), N = Il(), O = Fv(), L = (() => O !== null ? O === li.Open : v.listboxState === 0)();
|
|
26000
25995
|
Et(() => {
|
|
@@ -26043,8 +26038,8 @@ let D2 = ii, O2 = Nn(function(o, d) {
|
|
|
26043
26038
|
var Z, X, ue;
|
|
26044
26039
|
return (ue = (Z = v.labelRef.current) == null ? void 0 : Z.id) != null ? ue : (X = v.buttonRef.current) == null ? void 0 : X.id;
|
|
26045
26040
|
}, [v.labelRef.current, v.buttonRef.current]), I = tn(() => ({ open: v.listboxState === 0 }), [v]), H = { "aria-activedescendant": v.activeOptionIndex === null || (f = v.options[v.activeOptionIndex]) == null ? void 0 : f.id, "aria-multiselectable": v.mode === 1 ? !0 : void 0, "aria-labelledby": j, "aria-orientation": v.orientation, id: g, onKeyDown: M, role: "listbox", tabIndex: 0, ref: w };
|
|
26046
|
-
return An({ ourProps: H, theirProps: S, slot: I, defaultTag:
|
|
26047
|
-
}),
|
|
26041
|
+
return An({ ourProps: H, theirProps: S, slot: I, defaultTag: M2, features: z2, visible: L, name: "Listbox.Options" });
|
|
26042
|
+
}), U2 = "li", F2 = Nn(function(o, d) {
|
|
26048
26043
|
let f = ga(), { id: h = `headlessui-listbox-option-${f}`, disabled: g = !1, value: S, ...v } = o, E = Pv("Listbox.Option"), w = Hv("Listbox.Option"), T = E.activeOptionIndex !== null ? E.options[E.activeOptionIndex].id === h : !1, N = E.isSelected(S), O = et(null), L = Ri({ disabled: g, value: S, domRef: O, get textValue() {
|
|
26049
26044
|
var ye, Me;
|
|
26050
26045
|
return (Me = (ye = O.current) == null ? void 0 : ye.textContent) == null ? void 0 : Me.toLowerCase();
|
|
@@ -26074,9 +26069,9 @@ let D2 = ii, O2 = Nn(function(o, d) {
|
|
|
26074
26069
|
}), ue = Pe((ye) => {
|
|
26075
26070
|
!H.wasMoved(ye) || g || !T || w.goToOption(Wt.Nothing);
|
|
26076
26071
|
}), me = tn(() => ({ active: T, selected: N, disabled: g }), [T, N, g]);
|
|
26077
|
-
return An({ ourProps: { id: h, ref: M, role: "option", tabIndex: g === !0 ? void 0 : -1, "aria-disabled": g === !0 ? !0 : void 0, "aria-selected": N, disabled: void 0, onClick: j, onFocus: I, onPointerEnter: Z, onMouseEnter: Z, onPointerMove: X, onMouseMove: X, onPointerLeave: ue, onMouseLeave: ue }, theirProps: v, slot: me, defaultTag:
|
|
26078
|
-
}), Iy = Object.assign(
|
|
26079
|
-
function
|
|
26072
|
+
return An({ ourProps: { id: h, ref: M, role: "option", tabIndex: g === !0 ? void 0 : -1, "aria-disabled": g === !0 ? !0 : void 0, "aria-selected": N, disabled: void 0, onClick: j, onFocus: I, onPointerEnter: Z, onMouseEnter: Z, onPointerMove: X, onMouseMove: X, onPointerLeave: ue, onMouseLeave: ue }, theirProps: v, slot: me, defaultTag: U2, name: "Listbox.Option" });
|
|
26073
|
+
}), Iy = Object.assign(N2, { Button: O2, Label: L2, Options: A2, Option: F2 });
|
|
26074
|
+
function $2(o) {
|
|
26080
26075
|
let d = { called: !1 };
|
|
26081
26076
|
return (...f) => {
|
|
26082
26077
|
if (!d.called)
|
|
@@ -26089,7 +26084,7 @@ function YS(o, ...d) {
|
|
|
26089
26084
|
function QS(o, ...d) {
|
|
26090
26085
|
o && d.length > 0 && o.classList.remove(...d);
|
|
26091
26086
|
}
|
|
26092
|
-
function
|
|
26087
|
+
function j2(o, d) {
|
|
26093
26088
|
let f = Bl();
|
|
26094
26089
|
if (!o)
|
|
26095
26090
|
return f.dispose;
|
|
@@ -26105,28 +26100,28 @@ function P2(o, d) {
|
|
|
26105
26100
|
d();
|
|
26106
26101
|
return f.add(() => d()), f.dispose;
|
|
26107
26102
|
}
|
|
26108
|
-
function
|
|
26109
|
-
let g = f ? "enter" : "leave", S = Bl(), v = h !== void 0 ?
|
|
26103
|
+
function H2(o, d, f, h) {
|
|
26104
|
+
let g = f ? "enter" : "leave", S = Bl(), v = h !== void 0 ? $2(h) : () => {
|
|
26110
26105
|
};
|
|
26111
26106
|
g === "enter" && (o.removeAttribute("hidden"), o.style.display = "");
|
|
26112
26107
|
let E = Xt(g, { enter: () => d.enter, leave: () => d.leave }), w = Xt(g, { enter: () => d.enterTo, leave: () => d.leaveTo }), T = Xt(g, { enter: () => d.enterFrom, leave: () => d.leaveFrom });
|
|
26113
26108
|
return QS(o, ...d.enter, ...d.enterTo, ...d.enterFrom, ...d.leave, ...d.leaveFrom, ...d.leaveTo, ...d.entered), YS(o, ...E, ...T), S.nextFrame(() => {
|
|
26114
|
-
QS(o, ...T), YS(o, ...w),
|
|
26109
|
+
QS(o, ...T), YS(o, ...w), j2(o, () => (QS(o, ...E), YS(o, ...d.entered), v()));
|
|
26115
26110
|
}), S.dispose;
|
|
26116
26111
|
}
|
|
26117
|
-
function
|
|
26112
|
+
function P2({ container: o, direction: d, classes: f, onStart: h, onStop: g }) {
|
|
26118
26113
|
let S = eg(), v = Il(), E = Ri(d);
|
|
26119
26114
|
Rn(() => {
|
|
26120
26115
|
let w = Bl();
|
|
26121
26116
|
v.add(w.dispose);
|
|
26122
26117
|
let T = o.current;
|
|
26123
26118
|
if (T && E.current !== "idle" && S.current)
|
|
26124
|
-
return w.dispose(), h.current(E.current), w.add(
|
|
26119
|
+
return w.dispose(), h.current(E.current), w.add(H2(T, f.current, E.current === "enter", () => {
|
|
26125
26120
|
w.dispose(), g.current(E.current);
|
|
26126
26121
|
})), w.dispose;
|
|
26127
26122
|
}, [d]);
|
|
26128
26123
|
}
|
|
26129
|
-
function
|
|
26124
|
+
function V2(...o) {
|
|
26130
26125
|
return o.filter(Boolean).join(" ");
|
|
26131
26126
|
}
|
|
26132
26127
|
function rc(o = "") {
|
|
@@ -26134,14 +26129,14 @@ function rc(o = "") {
|
|
|
26134
26129
|
}
|
|
26135
26130
|
let ng = oi(null);
|
|
26136
26131
|
ng.displayName = "TransitionContext";
|
|
26137
|
-
var
|
|
26138
|
-
function
|
|
26132
|
+
var B2 = ((o) => (o.Visible = "visible", o.Hidden = "hidden", o))(B2 || {});
|
|
26133
|
+
function I2() {
|
|
26139
26134
|
let o = ya(ng);
|
|
26140
26135
|
if (o === null)
|
|
26141
26136
|
throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
26142
26137
|
return o;
|
|
26143
26138
|
}
|
|
26144
|
-
function
|
|
26139
|
+
function Y2() {
|
|
26145
26140
|
let o = ya(rg);
|
|
26146
26141
|
if (o === null)
|
|
26147
26142
|
throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
@@ -26180,24 +26175,24 @@ function fw(o, d) {
|
|
|
26180
26175
|
});
|
|
26181
26176
|
return tn(() => ({ children: h, register: E, unregister: v, onStart: O, onStop: L, wait: T, chains: N }), [E, v, h, O, L, N, T]);
|
|
26182
26177
|
}
|
|
26183
|
-
function
|
|
26178
|
+
function Q2() {
|
|
26184
26179
|
}
|
|
26185
|
-
let
|
|
26180
|
+
let G2 = ["beforeEnter", "afterEnter", "beforeLeave", "afterLeave"];
|
|
26186
26181
|
function xT(o) {
|
|
26187
26182
|
var d;
|
|
26188
26183
|
let f = {};
|
|
26189
|
-
for (let h of
|
|
26190
|
-
f[h] = (d = o[h]) != null ? d :
|
|
26184
|
+
for (let h of G2)
|
|
26185
|
+
f[h] = (d = o[h]) != null ? d : Q2;
|
|
26191
26186
|
return f;
|
|
26192
26187
|
}
|
|
26193
|
-
function
|
|
26188
|
+
function W2(o) {
|
|
26194
26189
|
let d = et(xT(o));
|
|
26195
26190
|
return Et(() => {
|
|
26196
26191
|
d.current = xT(o);
|
|
26197
26192
|
}, [o]), d;
|
|
26198
26193
|
}
|
|
26199
|
-
let
|
|
26200
|
-
let { beforeEnter: f, afterEnter: h, beforeLeave: g, afterLeave: S, enter: v, enterFrom: E, enterTo: w, entered: T, leave: N, leaveFrom: O, leaveTo: L, ...M } = o, j = et(null), I = qn(j, d), H = M.unmount ? $o.Unmount : $o.Hidden, { show: Z, appear: X, initial: ue } =
|
|
26194
|
+
let X2 = "div", dw = Qu.RenderStrategy, pw = Nn(function(o, d) {
|
|
26195
|
+
let { beforeEnter: f, afterEnter: h, beforeLeave: g, afterLeave: S, enter: v, enterFrom: E, enterTo: w, entered: T, leave: N, leaveFrom: O, leaveTo: L, ...M } = o, j = et(null), I = qn(j, d), H = M.unmount ? $o.Unmount : $o.Hidden, { show: Z, appear: X, initial: ue } = I2(), [me, ye] = kn(Z ? "visible" : "hidden"), Me = Y2(), { register: ie, unregister: $e } = Me, Xe = et(null);
|
|
26201
26196
|
Et(() => ie(j), [ie, j]), Et(() => {
|
|
26202
26197
|
if (H === $o.Hidden && j.current) {
|
|
26203
26198
|
if (Z && me !== "visible") {
|
|
@@ -26207,7 +26202,7 @@ let K2 = "div", dw = Qu.RenderStrategy, pw = Nn(function(o, d) {
|
|
|
26207
26202
|
return Xt(me, { hidden: () => $e(j), visible: () => ie(j) });
|
|
26208
26203
|
}
|
|
26209
26204
|
}, [me, j, ie, $e, Z, H]);
|
|
26210
|
-
let ft = Ri({ enter: rc(v), enterFrom: rc(E), enterTo: rc(w), entered: rc(T), leave: rc(N), leaveFrom: rc(O), leaveTo: rc(L) }), he =
|
|
26205
|
+
let ft = Ri({ enter: rc(v), enterFrom: rc(E), enterTo: rc(w), entered: rc(T), leave: rc(N), leaveFrom: rc(O), leaveTo: rc(L) }), he = W2({ beforeEnter: f, afterEnter: h, beforeLeave: g, afterLeave: S }), bt = ud();
|
|
26211
26206
|
Et(() => {
|
|
26212
26207
|
if (bt && me === "visible" && j.current === null)
|
|
26213
26208
|
throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
@@ -26217,7 +26212,7 @@ let K2 = "div", dw = Qu.RenderStrategy, pw = Nn(function(o, d) {
|
|
|
26217
26212
|
} })), Tt = fw(() => {
|
|
26218
26213
|
ye("hidden"), $e(j);
|
|
26219
26214
|
}, Me);
|
|
26220
|
-
|
|
26215
|
+
P2({ container: j, classes: ft, direction: tt, onStart: Ri((oe) => {
|
|
26221
26216
|
Tt.onStart(j, oe, Lt);
|
|
26222
26217
|
}), onStop: Ri((oe) => {
|
|
26223
26218
|
Tt.onStop(j, oe, lt), oe === "leave" && !ag(Tt) && (ye("hidden"), $e(j));
|
|
@@ -26225,7 +26220,7 @@ let K2 = "div", dw = Qu.RenderStrategy, pw = Nn(function(o, d) {
|
|
|
26225
26220
|
!we || (H === $o.Hidden ? Xe.current = null : Xe.current = Z);
|
|
26226
26221
|
}, [Z, we, me]);
|
|
26227
26222
|
let te = M, _e = { ref: I };
|
|
26228
|
-
return X && Z && (typeof window > "u" || typeof document > "u") && (te = { ...te, className:
|
|
26223
|
+
return X && Z && (typeof window > "u" || typeof document > "u") && (te = { ...te, className: V2(M.className, ...ft.current.enter, ...ft.current.enterFrom) }), ee.createElement(rg.Provider, { value: Tt }, ee.createElement(h1, { value: Xt(me, { visible: li.Open, hidden: li.Closed }) }, An({ ourProps: _e, theirProps: te, defaultTag: X2, features: dw, visible: me === "visible", name: "Transition.Child" })));
|
|
26229
26224
|
}), n1 = Nn(function(o, d) {
|
|
26230
26225
|
let { show: f, appear: h = !1, unmount: g, ...S } = o, v = et(null), E = qn(v, d);
|
|
26231
26226
|
ud();
|
|
@@ -26254,11 +26249,11 @@ let K2 = "div", dw = Qu.RenderStrategy, pw = Nn(function(o, d) {
|
|
|
26254
26249
|
}, [f, O]);
|
|
26255
26250
|
let H = { unmount: g };
|
|
26256
26251
|
return ee.createElement(rg.Provider, { value: O }, ee.createElement(ng.Provider, { value: I }, An({ ourProps: { ...H, as: ii, children: ee.createElement(pw, { ref: E, ...H, ...S }) }, theirProps: {}, defaultTag: ii, features: dw, visible: T === "visible", name: "Transition" })));
|
|
26257
|
-
}),
|
|
26252
|
+
}), q2 = Nn(function(o, d) {
|
|
26258
26253
|
let f = ya(ng) !== null, h = Fv() !== null;
|
|
26259
26254
|
return ee.createElement(ee.Fragment, null, !f && h ? ee.createElement(n1, { ref: d, ...o }) : ee.createElement(pw, { ref: d, ...o }));
|
|
26260
|
-
}),
|
|
26261
|
-
const
|
|
26255
|
+
}), K2 = Object.assign(n1, { Child: q2, Root: n1 });
|
|
26256
|
+
const pU = ({
|
|
26262
26257
|
buttonRef: o,
|
|
26263
26258
|
className: d,
|
|
26264
26259
|
dropdownIcon: f,
|
|
@@ -26297,7 +26292,7 @@ const vU = ({
|
|
|
26297
26292
|
] })
|
|
26298
26293
|
}
|
|
26299
26294
|
),
|
|
26300
|
-
/* @__PURE__ */ $(o1, { children: /* @__PURE__ */ $(Iy.Options, { as: u1, children: w == null ? void 0 : w.map((L) => /* @__PURE__ */ $(
|
|
26295
|
+
/* @__PURE__ */ $(o1, { children: /* @__PURE__ */ $(Iy.Options, { as: u1, className: "bg-base-100 shadow-xl", children: w == null ? void 0 : w.map((L) => /* @__PURE__ */ $(
|
|
26301
26296
|
Iy.Option,
|
|
26302
26297
|
{
|
|
26303
26298
|
as: ii,
|
|
@@ -26317,7 +26312,7 @@ const vU = ({
|
|
|
26317
26312
|
]
|
|
26318
26313
|
}
|
|
26319
26314
|
);
|
|
26320
|
-
},
|
|
26315
|
+
}, vU = ({
|
|
26321
26316
|
color: o,
|
|
26322
26317
|
label: d,
|
|
26323
26318
|
className: f,
|
|
@@ -26330,11 +26325,11 @@ const vU = ({
|
|
|
26330
26325
|
/* @__PURE__ */ $(AT, { ...S, className: f, checked: g, color: o }),
|
|
26331
26326
|
/* @__PURE__ */ $(Ho, { children: d })
|
|
26332
26327
|
] });
|
|
26333
|
-
},
|
|
26328
|
+
}, Z2 = () => /* @__PURE__ */ $("div", { className: "flex-1 flex items-center justify-center", children: /* @__PURE__ */ $(i1, { className: "w-56" }) }), hU = ({
|
|
26334
26329
|
children: o,
|
|
26335
26330
|
isLoading: d,
|
|
26336
26331
|
...f
|
|
26337
|
-
}) => /* @__PURE__ */ $(fL, { ...f, children: d === !0 ? /* @__PURE__ */ $(
|
|
26332
|
+
}) => /* @__PURE__ */ $(fL, { ...f, children: d === !0 ? /* @__PURE__ */ $(Z2, {}) : o }), mU = ({
|
|
26338
26333
|
actionButtons: o,
|
|
26339
26334
|
children: d,
|
|
26340
26335
|
onClose: f,
|
|
@@ -26343,7 +26338,7 @@ const vU = ({
|
|
|
26343
26338
|
}) => {
|
|
26344
26339
|
const S = et(null);
|
|
26345
26340
|
return /* @__PURE__ */ $(
|
|
26346
|
-
|
|
26341
|
+
K2,
|
|
26347
26342
|
{
|
|
26348
26343
|
show: h,
|
|
26349
26344
|
enter: "transition duration-100 ease-out",
|
|
@@ -26378,7 +26373,7 @@ const vU = ({
|
|
|
26378
26373
|
] }) })
|
|
26379
26374
|
}
|
|
26380
26375
|
);
|
|
26381
|
-
},
|
|
26376
|
+
}, J2 = (o, d) => {
|
|
26382
26377
|
const [f, h] = kn(o), [g, S] = kn(o);
|
|
26383
26378
|
return Et(() => {
|
|
26384
26379
|
const E = setTimeout(() => {
|
|
@@ -26388,7 +26383,7 @@ const vU = ({
|
|
|
26388
26383
|
clearTimeout(E);
|
|
26389
26384
|
};
|
|
26390
26385
|
}, [f, d]), [f, h, g, !!f && f !== g];
|
|
26391
|
-
},
|
|
26386
|
+
}, eU = (o, d) => Et(() => {
|
|
26392
26387
|
const f = (h) => {
|
|
26393
26388
|
o.current !== null && !o.current.contains(h.target) && d(h);
|
|
26394
26389
|
};
|
|
@@ -26406,7 +26401,7 @@ const vU = ({
|
|
|
26406
26401
|
showSelected: E
|
|
26407
26402
|
}) => {
|
|
26408
26403
|
const w = et(null);
|
|
26409
|
-
return
|
|
26404
|
+
return eU(w, () => g == null ? void 0 : g()), /* @__PURE__ */ $(
|
|
26410
26405
|
o1,
|
|
26411
26406
|
{
|
|
26412
26407
|
className: "text-left",
|
|
@@ -26414,36 +26409,44 @@ const vU = ({
|
|
|
26414
26409
|
T === "Escape" && (g == null || g());
|
|
26415
26410
|
},
|
|
26416
26411
|
ref: w,
|
|
26417
|
-
children: v === void 0 || v ? /* @__PURE__ */ qt(
|
|
26418
|
-
|
|
26419
|
-
|
|
26420
|
-
|
|
26421
|
-
|
|
26422
|
-
|
|
26423
|
-
|
|
26424
|
-
|
|
26425
|
-
|
|
26426
|
-
|
|
26427
|
-
Yu.Option,
|
|
26428
|
-
{
|
|
26429
|
-
as: ii,
|
|
26430
|
-
value: T,
|
|
26431
|
-
children: ({ active: O, disabled: L, selected: M }) => /* @__PURE__ */ $(
|
|
26432
|
-
Qy,
|
|
26412
|
+
children: v === void 0 || v ? /* @__PURE__ */ qt(
|
|
26413
|
+
Yu.Options,
|
|
26414
|
+
{
|
|
26415
|
+
as: u1,
|
|
26416
|
+
className: "bg-base-100 shadow-xl",
|
|
26417
|
+
static: v !== void 0,
|
|
26418
|
+
children: [
|
|
26419
|
+
o,
|
|
26420
|
+
h ? /* @__PURE__ */ $(
|
|
26421
|
+
i1,
|
|
26433
26422
|
{
|
|
26434
|
-
|
|
26435
|
-
className: rl(
|
|
26436
|
-
o !== void 0 && N === 0 && "mt-2"
|
|
26437
|
-
),
|
|
26438
|
-
disabled: L,
|
|
26439
|
-
selected: E === !0 ? M : void 0,
|
|
26440
|
-
children: d(T)
|
|
26423
|
+
className: rl(o !== void 0 && "mt-2")
|
|
26441
26424
|
}
|
|
26442
|
-
)
|
|
26443
|
-
|
|
26444
|
-
|
|
26445
|
-
|
|
26446
|
-
|
|
26425
|
+
) : null,
|
|
26426
|
+
!h && (S == null ? void 0 : S.length) === 0 ? /* @__PURE__ */ $(Qy, { disabled: !0, children: "No Results" }) : null,
|
|
26427
|
+
!h && (S == null ? void 0 : S.map((T, N) => /* @__PURE__ */ $(
|
|
26428
|
+
Yu.Option,
|
|
26429
|
+
{
|
|
26430
|
+
as: ii,
|
|
26431
|
+
value: T,
|
|
26432
|
+
children: ({ active: O, disabled: L, selected: M }) => /* @__PURE__ */ $(
|
|
26433
|
+
Qy,
|
|
26434
|
+
{
|
|
26435
|
+
active: O,
|
|
26436
|
+
className: rl(
|
|
26437
|
+
o !== void 0 && N === 0 && "mt-2"
|
|
26438
|
+
),
|
|
26439
|
+
disabled: L,
|
|
26440
|
+
selected: E === !0 ? M : void 0,
|
|
26441
|
+
children: d(T)
|
|
26442
|
+
}
|
|
26443
|
+
)
|
|
26444
|
+
},
|
|
26445
|
+
f(T)
|
|
26446
|
+
)))
|
|
26447
|
+
]
|
|
26448
|
+
}
|
|
26449
|
+
) : null
|
|
26447
26450
|
}
|
|
26448
26451
|
);
|
|
26449
26452
|
}, hw = ({
|
|
@@ -26451,7 +26454,7 @@ const vU = ({
|
|
|
26451
26454
|
onDebouncedChange: d,
|
|
26452
26455
|
options: f
|
|
26453
26456
|
}) => {
|
|
26454
|
-
const [h, g] = kn(!1), [S, v, E] =
|
|
26457
|
+
const [h, g] = kn(!1), [S, v, E] = J2(
|
|
26455
26458
|
"",
|
|
26456
26459
|
o ?? 400
|
|
26457
26460
|
), [w, T] = kn(null), N = tn(() => {
|
|
@@ -26471,7 +26474,7 @@ const vU = ({
|
|
|
26471
26474
|
setQuery: v,
|
|
26472
26475
|
setSelectedItem: T
|
|
26473
26476
|
};
|
|
26474
|
-
},
|
|
26477
|
+
}, tU = ({
|
|
26475
26478
|
className: o,
|
|
26476
26479
|
controllerProps: d,
|
|
26477
26480
|
debounceTime: f,
|
|
@@ -26538,7 +26541,7 @@ const vU = ({
|
|
|
26538
26541
|
ref: S,
|
|
26539
26542
|
tabIndex: 0,
|
|
26540
26543
|
children: I.length > 0 ? I.map((ie, $e) => /* @__PURE__ */ $(
|
|
26541
|
-
|
|
26544
|
+
Lz,
|
|
26542
26545
|
{
|
|
26543
26546
|
dismissable: !0,
|
|
26544
26547
|
onDismiss: () => H(
|
|
@@ -26580,7 +26583,7 @@ const vU = ({
|
|
|
26580
26583
|
]
|
|
26581
26584
|
}
|
|
26582
26585
|
);
|
|
26583
|
-
},
|
|
26586
|
+
}, nU = ({
|
|
26584
26587
|
className: o,
|
|
26585
26588
|
controllerProps: d,
|
|
26586
26589
|
debounceTime: f,
|
|
@@ -26648,36 +26651,38 @@ const vU = ({
|
|
|
26648
26651
|
]
|
|
26649
26652
|
}
|
|
26650
26653
|
);
|
|
26651
|
-
},
|
|
26654
|
+
}, yU = ({
|
|
26652
26655
|
multi: o,
|
|
26653
26656
|
...d
|
|
26654
|
-
}) => /* @__PURE__ */ $(o === !0 ?
|
|
26657
|
+
}) => /* @__PURE__ */ $(o === !0 ? tU : nU, { ...d });
|
|
26655
26658
|
export {
|
|
26656
|
-
|
|
26657
|
-
|
|
26658
|
-
|
|
26659
|
-
|
|
26659
|
+
uU as AlertMessages,
|
|
26660
|
+
oU as AlertMessagesProvider,
|
|
26661
|
+
Lz as Badge,
|
|
26662
|
+
Tz as CheckIcon,
|
|
26663
|
+
wz as CloseIcon,
|
|
26660
26664
|
o1 as Dropdown,
|
|
26661
26665
|
u1 as DropdownMenu,
|
|
26662
26666
|
Qy as DropdownOption,
|
|
26663
|
-
|
|
26664
|
-
|
|
26665
|
-
|
|
26666
|
-
|
|
26667
|
+
Rz as ErrorIcon,
|
|
26668
|
+
sU as Form,
|
|
26669
|
+
cU as FormCheckbox,
|
|
26670
|
+
fU as FormControl,
|
|
26667
26671
|
zv as FormError,
|
|
26668
26672
|
Ho as FormLabel,
|
|
26669
|
-
|
|
26670
|
-
|
|
26671
|
-
|
|
26672
|
-
|
|
26673
|
-
|
|
26674
|
-
|
|
26675
|
-
|
|
26676
|
-
|
|
26677
|
-
|
|
26678
|
-
|
|
26679
|
-
|
|
26680
|
-
|
|
26681
|
-
|
|
26673
|
+
dU as FormRadio,
|
|
26674
|
+
nA as FormRangeSlider,
|
|
26675
|
+
pU as FormSelect,
|
|
26676
|
+
vU as FormToggleSwitch,
|
|
26677
|
+
Z2 as FullScreenLoader,
|
|
26678
|
+
kz as InfoIcon,
|
|
26679
|
+
hU as LoadingCard,
|
|
26680
|
+
mU as Modal,
|
|
26681
|
+
Nz as SuccessIcon,
|
|
26682
|
+
yU as TypeaheadSelect,
|
|
26683
|
+
Dz as WarningIcon,
|
|
26684
|
+
Ez as useAlertMessages,
|
|
26685
|
+
J2 as useDebouncedState,
|
|
26686
|
+
eU as useOutsideClick,
|
|
26682
26687
|
hw as useTypeaheadInput
|
|
26683
26688
|
};
|