@webority/ui-react 0.27.1 → 0.27.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/types/components/AppFilterBar.d.ts +3 -3
- package/dist/ui-react.js +393 -392
- package/package.json +3 -3
package/dist/ui-react.js
CHANGED
|
@@ -4498,17 +4498,17 @@ var Ii = ["sm", "lg"], Li = (e) => e == null ? "" : e.label ?? e.text ?? "", Ri
|
|
|
4498
4498
|
"multiEnum",
|
|
4499
4499
|
"dateRange",
|
|
4500
4500
|
"text"
|
|
4501
|
-
], Bi = 4, Vi = (e, t) => e.options?.find((e) => e.value === t)?.label ?? t;
|
|
4502
|
-
function
|
|
4501
|
+
], Bi = 4, Vi = (e) => (e.type === "enum" || e.type === "multiEnum") && !e.options?.length, Hi = (e, t) => e.options?.find((e) => e.value === t)?.label ?? t;
|
|
4502
|
+
function Ui(e, t) {
|
|
4503
4503
|
if (!Oi(e, t)) return [];
|
|
4504
4504
|
if (e.type === "enum") return [{
|
|
4505
4505
|
id: e.key,
|
|
4506
|
-
text:
|
|
4506
|
+
text: Hi(e, t),
|
|
4507
4507
|
clear: () => Di(e)
|
|
4508
4508
|
}];
|
|
4509
4509
|
if (e.type === "multiEnum") return t.map((n) => ({
|
|
4510
4510
|
id: `${e.key}:${n}`,
|
|
4511
|
-
text:
|
|
4511
|
+
text: Hi(e, n),
|
|
4512
4512
|
clear: () => t.filter((e) => e !== n)
|
|
4513
4513
|
}));
|
|
4514
4514
|
if (e.type === "dateRange") {
|
|
@@ -4521,40 +4521,40 @@ function Hi(e, t) {
|
|
|
4521
4521
|
}
|
|
4522
4522
|
return [];
|
|
4523
4523
|
}
|
|
4524
|
-
function
|
|
4524
|
+
function Wi({ facets: e, value: t, onChange: n, className: r = "", ...i }) {
|
|
4525
4525
|
Y("AppFilterBar", i);
|
|
4526
4526
|
for (let t of e) J("AppFilterBar", "facets[].type", t.type, zi);
|
|
4527
|
-
let a = e.flatMap((e) =>
|
|
4527
|
+
let a = e.filter((e) => !Vi(e)), o = a.flatMap((e) => Ui(e, t[e.key]).map((t) => ({
|
|
4528
4528
|
...t,
|
|
4529
4529
|
facet: e
|
|
4530
|
-
}))),
|
|
4530
|
+
}))), s = a.filter((e) => Oi(e, t[e.key]));
|
|
4531
4531
|
return /* @__PURE__ */ q("div", {
|
|
4532
4532
|
className: `wui-filter-bar d-flex flex-wrap align-items-center gap-2${r ? ` ${r}` : ""}`,
|
|
4533
4533
|
...i,
|
|
4534
4534
|
children: [
|
|
4535
|
-
|
|
4535
|
+
a.map((e) => /* @__PURE__ */ K(Gi, {
|
|
4536
4536
|
facet: e,
|
|
4537
4537
|
value: t[e.key],
|
|
4538
4538
|
onChange: (t) => n(e.key, t)
|
|
4539
4539
|
}, e.key)),
|
|
4540
|
-
|
|
4540
|
+
o.map((e) => /* @__PURE__ */ K(Zn, {
|
|
4541
4541
|
size: "sm",
|
|
4542
4542
|
label: `${e.facet.label}: ${e.text}`,
|
|
4543
4543
|
removeLabel: `Remove ${e.facet.label} filter ${e.text}`,
|
|
4544
4544
|
onRemove: () => n(e.facet.key, e.clear())
|
|
4545
4545
|
}, e.id)),
|
|
4546
|
-
|
|
4546
|
+
s.length > 1 && /* @__PURE__ */ K(gt, {
|
|
4547
4547
|
variant: "ghost",
|
|
4548
4548
|
size: "sm",
|
|
4549
4549
|
onClick: () => {
|
|
4550
|
-
for (let e of
|
|
4550
|
+
for (let e of s) n(e.key, Di(e));
|
|
4551
4551
|
},
|
|
4552
4552
|
children: "Clear all"
|
|
4553
4553
|
})
|
|
4554
4554
|
]
|
|
4555
4555
|
});
|
|
4556
4556
|
}
|
|
4557
|
-
function
|
|
4557
|
+
function Gi({ facet: e, value: t, onChange: n }) {
|
|
4558
4558
|
if (e.type === "enum") {
|
|
4559
4559
|
let r = e.options ?? [];
|
|
4560
4560
|
return r.length < Bi ? /* @__PURE__ */ K(zn, {
|
|
@@ -4610,7 +4610,7 @@ function Wi({ facet: e, value: t, onChange: n }) {
|
|
|
4610
4610
|
}
|
|
4611
4611
|
//#endregion
|
|
4612
4612
|
//#region src/components/AppFloatingDock.jsx
|
|
4613
|
-
function
|
|
4613
|
+
function Ki({ items: e = [], linkComponent: t, ariaLabel: n = "Quick navigation", magnify: r = !0, maxScale: i, radius: a, className: o = "", ...s }) {
|
|
4614
4614
|
return Y("AppFloatingDock", s), /* @__PURE__ */ K("wui-dock", {
|
|
4615
4615
|
role: "navigation",
|
|
4616
4616
|
"aria-label": n,
|
|
@@ -4652,13 +4652,13 @@ function Gi({ items: e = [], linkComponent: t, ariaLabel: n = "Quick navigation"
|
|
|
4652
4652
|
}
|
|
4653
4653
|
//#endregion
|
|
4654
4654
|
//#region src/components/AppFormActions.jsx
|
|
4655
|
-
var
|
|
4655
|
+
var qi = [
|
|
4656
4656
|
"end",
|
|
4657
4657
|
"start",
|
|
4658
4658
|
"between"
|
|
4659
4659
|
];
|
|
4660
|
-
function
|
|
4661
|
-
return Y("AppFormActions", i), J("AppFormActions", "align", n,
|
|
4660
|
+
function Ji({ children: e, sticky: t = !1, align: n = "end", className: r = "", ...i }) {
|
|
4661
|
+
return Y("AppFormActions", i), J("AppFormActions", "align", n, qi), /* @__PURE__ */ K("div", {
|
|
4662
4662
|
className: [
|
|
4663
4663
|
"form-actions",
|
|
4664
4664
|
t ? "form-actions-sticky" : "",
|
|
@@ -4671,13 +4671,13 @@ function qi({ children: e, sticky: t = !1, align: n = "end", className: r = "",
|
|
|
4671
4671
|
}
|
|
4672
4672
|
//#endregion
|
|
4673
4673
|
//#region src/components/AppFormRow.jsx
|
|
4674
|
-
var
|
|
4674
|
+
var Yi = [
|
|
4675
4675
|
1,
|
|
4676
4676
|
2,
|
|
4677
4677
|
3
|
|
4678
4678
|
];
|
|
4679
|
-
function
|
|
4680
|
-
Y("AppFormRow", r), J("AppFormRow", "columns", t,
|
|
4679
|
+
function Xi({ children: e, columns: t = 2, className: n = "", ...r }) {
|
|
4680
|
+
Y("AppFormRow", r), J("AppFormRow", "columns", t, Yi);
|
|
4681
4681
|
let { style: i, ...a } = r;
|
|
4682
4682
|
return /* @__PURE__ */ K("div", {
|
|
4683
4683
|
className: ["form-row-grid", n].filter(Boolean).join(" "),
|
|
@@ -4691,9 +4691,9 @@ function Yi({ children: e, columns: t = 2, className: n = "", ...r }) {
|
|
|
4691
4691
|
}
|
|
4692
4692
|
//#endregion
|
|
4693
4693
|
//#region src/components/AppFormSection.jsx
|
|
4694
|
-
var
|
|
4695
|
-
function
|
|
4696
|
-
return Y("AppFormSection", s), J("AppFormSection", "layout", r,
|
|
4694
|
+
var Zi = ["stacked", "side"], Qi = ["top", "start"], $i = ["comfortable", "compact"];
|
|
4695
|
+
function ea({ children: e, title: t, description: n, layout: r = "stacked", labels: i = "top", density: a = "comfortable", className: o = "", ...s }) {
|
|
4696
|
+
return Y("AppFormSection", s), J("AppFormSection", "layout", r, Zi), J("AppFormSection", "labels", i, Qi), J("AppFormSection", "density", a, $i), /* @__PURE__ */ q("section", {
|
|
4697
4697
|
className: [
|
|
4698
4698
|
"form-section",
|
|
4699
4699
|
r === "side" ? "wui-form-side" : "",
|
|
@@ -4719,7 +4719,7 @@ function $i({ children: e, title: t, description: n, layout: r = "stacked", labe
|
|
|
4719
4719
|
}
|
|
4720
4720
|
//#endregion
|
|
4721
4721
|
//#region src/components/AppInfoList.jsx
|
|
4722
|
-
function
|
|
4722
|
+
function ta({ items: e = [], className: t = "", ...n }) {
|
|
4723
4723
|
return Y("AppInfoList", n), /* @__PURE__ */ K("div", {
|
|
4724
4724
|
className: `info-list${t ? ` ${t}` : ""}`,
|
|
4725
4725
|
...n,
|
|
@@ -4750,37 +4750,37 @@ function ea({ items: e = [], className: t = "", ...n }) {
|
|
|
4750
4750
|
}
|
|
4751
4751
|
//#endregion
|
|
4752
4752
|
//#region src/components/toastStore.js
|
|
4753
|
-
var
|
|
4754
|
-
function
|
|
4755
|
-
for (let e of
|
|
4753
|
+
var na = 6, ra = [], ia = /* @__PURE__ */ new Set(), aa = /* @__PURE__ */ new Map(), oa = /* @__PURE__ */ new Set(), sa = 0;
|
|
4754
|
+
function ca() {
|
|
4755
|
+
for (let e of ia) e(ra);
|
|
4756
4756
|
}
|
|
4757
|
-
function
|
|
4758
|
-
let t =
|
|
4759
|
-
t !== void 0 && (clearTimeout(t),
|
|
4757
|
+
function la(e) {
|
|
4758
|
+
let t = aa.get(e);
|
|
4759
|
+
t !== void 0 && (clearTimeout(t), aa.delete(e));
|
|
4760
4760
|
}
|
|
4761
|
-
function
|
|
4762
|
-
if (e.length <=
|
|
4761
|
+
function ua(e, t) {
|
|
4762
|
+
if (e.length <= na) return e;
|
|
4763
4763
|
let n = [...e], r = [];
|
|
4764
|
-
for (; n.length >
|
|
4764
|
+
for (; n.length > na;) {
|
|
4765
4765
|
let e = n.findIndex((e) => e.id !== t && e.duration !== 0);
|
|
4766
4766
|
r.push(n.splice(e === -1 ? n.findIndex((e) => e.id !== t) : e, 1)[0]);
|
|
4767
4767
|
}
|
|
4768
|
-
for (let e of r)
|
|
4768
|
+
for (let e of r) la(e.id), oa.delete(e.id);
|
|
4769
4769
|
return n;
|
|
4770
4770
|
}
|
|
4771
|
-
function
|
|
4772
|
-
return
|
|
4773
|
-
if (
|
|
4771
|
+
function da(e) {
|
|
4772
|
+
return ia.add(e), e(ra), () => {
|
|
4773
|
+
if (ia.delete(e), ia.size === 0) for (let e of ra) e.duration > 0 && !aa.has(e.id) && (oa.delete(e.id), aa.set(e.id, setTimeout(() => ma(e.id), e.duration)));
|
|
4774
4774
|
};
|
|
4775
4775
|
}
|
|
4776
|
-
function
|
|
4776
|
+
function fa(e, t, n = {}) {
|
|
4777
4777
|
let r = n.id, i = r || typeof e != "string" ? void 0 : `${t}:${e}`;
|
|
4778
4778
|
if (r) {
|
|
4779
|
-
let i =
|
|
4779
|
+
let i = ra.find((e) => e.externalId === r);
|
|
4780
4780
|
if (i) {
|
|
4781
|
-
|
|
4781
|
+
la(i.id);
|
|
4782
4782
|
let r = n.duration === void 0 ? 5e3 : n.duration;
|
|
4783
|
-
|
|
4783
|
+
ra = ra.map((a) => a.id === i.id ? {
|
|
4784
4784
|
...a,
|
|
4785
4785
|
message: e,
|
|
4786
4786
|
variant: t,
|
|
@@ -4791,12 +4791,12 @@ function da(e, t, n = {}) {
|
|
|
4791
4791
|
shape: n.shape,
|
|
4792
4792
|
surface: n.surface,
|
|
4793
4793
|
progress: n.progress
|
|
4794
|
-
} : a),
|
|
4794
|
+
} : a), ca(), r > 0 && !oa.has(i.id) && aa.set(i.id, setTimeout(() => ma(i.id), r));
|
|
4795
4795
|
return;
|
|
4796
4796
|
}
|
|
4797
|
-
} else if (i &&
|
|
4798
|
-
let a = ++
|
|
4799
|
-
|
|
4797
|
+
} else if (i && ra.some((e) => e.key === i)) return;
|
|
4798
|
+
let a = ++sa, o = n.duration === void 0 ? 5e3 : n.duration;
|
|
4799
|
+
ra = ua([...ra, {
|
|
4800
4800
|
id: a,
|
|
4801
4801
|
externalId: r,
|
|
4802
4802
|
message: e,
|
|
@@ -4809,54 +4809,54 @@ function da(e, t, n = {}) {
|
|
|
4809
4809
|
surface: n.surface,
|
|
4810
4810
|
progress: n.progress,
|
|
4811
4811
|
key: i
|
|
4812
|
-
}], a),
|
|
4813
|
-
}
|
|
4814
|
-
function fa(e) {
|
|
4815
|
-
ca(e), aa.add(e);
|
|
4812
|
+
}], a), ca(), o > 0 && aa.set(a, setTimeout(() => ma(a), o));
|
|
4816
4813
|
}
|
|
4817
4814
|
function pa(e) {
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4815
|
+
la(e), oa.add(e);
|
|
4816
|
+
}
|
|
4817
|
+
function ma(e) {
|
|
4818
|
+
la(e), oa.delete(e);
|
|
4819
|
+
let t = ra.filter((t) => t.id !== e);
|
|
4820
|
+
t.length !== ra.length && (ra = t, ca());
|
|
4821
|
+
}
|
|
4822
|
+
function ha() {
|
|
4823
|
+
if (!(ra.length === 0 && aa.size === 0 && oa.size === 0)) {
|
|
4824
|
+
for (let e of aa.values()) clearTimeout(e);
|
|
4825
|
+
aa.clear(), oa.clear(), ra.length !== 0 && (ra = [], ca());
|
|
4826
4826
|
}
|
|
4827
4827
|
}
|
|
4828
4828
|
//#endregion
|
|
4829
4829
|
//#region src/components/toast.js
|
|
4830
|
-
function
|
|
4831
|
-
|
|
4830
|
+
function ga() {
|
|
4831
|
+
ha();
|
|
4832
4832
|
}
|
|
4833
|
-
var
|
|
4833
|
+
var _a = /* @__PURE__ */ new Set([
|
|
4834
4834
|
"success",
|
|
4835
4835
|
"info",
|
|
4836
4836
|
"warning",
|
|
4837
4837
|
"danger"
|
|
4838
4838
|
]);
|
|
4839
|
-
function
|
|
4839
|
+
function va(e, t = "info") {
|
|
4840
4840
|
let n = "info", r = {};
|
|
4841
|
-
typeof t == "string" ? n =
|
|
4841
|
+
typeof t == "string" ? n = _a.has(t) ? t : "info" : typeof t == "object" && t && (r = t, n = _a.has(r.variant) ? r.variant : "info"), fa(e, n, r);
|
|
4842
4842
|
}
|
|
4843
|
-
function
|
|
4844
|
-
|
|
4843
|
+
function ya(e, t = {}) {
|
|
4844
|
+
fa(e, "danger", t);
|
|
4845
4845
|
}
|
|
4846
|
-
|
|
4846
|
+
va.promise = (e, t, n = {}) => {
|
|
4847
4847
|
let r = n.id || `promise-${Date.now()}-${Math.random()}`;
|
|
4848
|
-
return
|
|
4848
|
+
return va(t.loading || "Loading...", {
|
|
4849
4849
|
...n,
|
|
4850
4850
|
variant: "info",
|
|
4851
4851
|
id: r,
|
|
4852
4852
|
duration: 0
|
|
4853
|
-
}), e.then((e) => (
|
|
4853
|
+
}), e.then((e) => (va((typeof t.success == "function" ? t.success(e) : t.success) || "Done", {
|
|
4854
4854
|
...n,
|
|
4855
4855
|
variant: "success",
|
|
4856
4856
|
id: r,
|
|
4857
4857
|
duration: n.duration === void 0 ? 5e3 : n.duration
|
|
4858
4858
|
}), e)).catch((e) => {
|
|
4859
|
-
throw
|
|
4859
|
+
throw va((typeof t.error == "function" ? t.error(e) : t.error) || "Error", {
|
|
4860
4860
|
...n,
|
|
4861
4861
|
variant: "danger",
|
|
4862
4862
|
id: r,
|
|
@@ -4866,9 +4866,9 @@ _a.promise = (e, t, n = {}) => {
|
|
|
4866
4866
|
};
|
|
4867
4867
|
//#endregion
|
|
4868
4868
|
//#region src/components/AppKanban.jsx
|
|
4869
|
-
var
|
|
4870
|
-
function
|
|
4871
|
-
Y("AppKanban", w), J("AppKanban", "summaryFormat", v, a), J("AppKanban", "summaryUnit", b,
|
|
4869
|
+
var ba = (e) => e.key ?? e.id, xa = (e) => e.column, Sa = ["rupees", "paise"];
|
|
4870
|
+
function Ca({ columns: e = [], cards: t = [], renderCard: n, getCardKey: r = ba, getCardColumn: i = xa, getCardValue: c, cardLabel: l, isCardLocked: u, onMove: d, accept: f, filter: p, boardId: m, ariaLabel: h = "Board", emptyText: g = o.empty, readOnly: _ = !1, summaryFormat: v, summaryUnit: b, className: x = "", id: S, ...w }) {
|
|
4871
|
+
Y("AppKanban", w), J("AppKanban", "summaryFormat", v, a), J("AppKanban", "summaryUnit", b, Sa);
|
|
4872
4872
|
for (let t of e) J("AppKanban", "columns[].tone", t.tone, s);
|
|
4873
4873
|
let T = z(), E = S || `kanban-${T.replace(/[^a-zA-Z0-9_-]/g, "")}`, D = V(null), [O, k] = H(() => /* @__PURE__ */ new Map()), A = ie(() => new Map(t.map((e) => [String(r(e)), e])), [t, r]), M = V(null);
|
|
4874
4874
|
M.current = {
|
|
@@ -4876,7 +4876,7 @@ function Sa({ columns: e = [], cards: t = [], renderCard: n, getCardKey: r = ya,
|
|
|
4876
4876
|
onMove: d,
|
|
4877
4877
|
byKey: A
|
|
4878
4878
|
};
|
|
4879
|
-
let N = v && a.includes(v) && (b == null ||
|
|
4879
|
+
let N = v && a.includes(v) && (b == null || Sa.includes(b)) ? C(v, b) : null, ee = ie(() => {
|
|
4880
4880
|
let n = new Map(e.map((e) => [e.key, []])), a = [];
|
|
4881
4881
|
for (let e of t) {
|
|
4882
4882
|
let t = String(r(e)), o = O.get(t);
|
|
@@ -4924,7 +4924,7 @@ function Sa({ columns: e = [], cards: t = [], renderCard: n, getCardKey: r = ya,
|
|
|
4924
4924
|
l = Promise.reject(e);
|
|
4925
4925
|
}
|
|
4926
4926
|
Promise.resolve(l).then(c, (e) => {
|
|
4927
|
-
c(),
|
|
4927
|
+
c(), ya(e?.message || o.failed.server);
|
|
4928
4928
|
});
|
|
4929
4929
|
};
|
|
4930
4930
|
return e.addEventListener("wui:kanban:move", t), () => {
|
|
@@ -5070,18 +5070,18 @@ function Sa({ columns: e = [], cards: t = [], renderCard: n, getCardKey: r = ya,
|
|
|
5070
5070
|
}
|
|
5071
5071
|
//#endregion
|
|
5072
5072
|
//#region src/components/AppSparkline.jsx
|
|
5073
|
-
var
|
|
5073
|
+
var wa = () => {
|
|
5074
5074
|
try {
|
|
5075
5075
|
return process.env.NODE_ENV !== "production";
|
|
5076
5076
|
} catch {
|
|
5077
5077
|
return !0;
|
|
5078
5078
|
}
|
|
5079
|
-
},
|
|
5080
|
-
function
|
|
5081
|
-
|
|
5079
|
+
}, Ta = !1;
|
|
5080
|
+
function Ea(e) {
|
|
5081
|
+
Ta || !wa() || (Ta = !0, console.warn(`[@webority/ui-react] <AppSparkline> left out ${e} value(s) in \`data\` that are not finite numbers.`));
|
|
5082
5082
|
}
|
|
5083
|
-
var
|
|
5084
|
-
function
|
|
5083
|
+
var Da = (e) => typeof e == "number" && Number.isFinite(e);
|
|
5084
|
+
function Oa(e, t, n) {
|
|
5085
5085
|
if (e.length < 2) return `0,${n / 2} ${t},${n / 2}`;
|
|
5086
5086
|
let r = Math.min(...e), i = Math.max(...e) - r, a = t / (e.length - 1);
|
|
5087
5087
|
return e.map((e, t) => {
|
|
@@ -5089,24 +5089,24 @@ function Da(e, t, n) {
|
|
|
5089
5089
|
return `${t * a},${o}`;
|
|
5090
5090
|
}).join(" ");
|
|
5091
5091
|
}
|
|
5092
|
-
var
|
|
5093
|
-
function
|
|
5092
|
+
var ka = (e) => String(Number(e.toFixed(2)));
|
|
5093
|
+
function Aa(e, t) {
|
|
5094
5094
|
let n = t ? `${t} trend` : "Trend";
|
|
5095
|
-
return e.length === 1 ? `${n} has one value, ${
|
|
5095
|
+
return e.length === 1 ? `${n} has one value, ${ka(e[0])}.` : `${n} from ${ka(e[0])} to ${ka(e[e.length - 1])} across ${e.length} points.`;
|
|
5096
5096
|
}
|
|
5097
|
-
function
|
|
5097
|
+
function ja({ data: e, label: t, width: n = 48, height: r = 16, className: i = "", ...a }) {
|
|
5098
5098
|
Y("AppSparkline", a);
|
|
5099
|
-
let o = Array.isArray(e) ? e.filter(
|
|
5100
|
-
return Array.isArray(e) && o.length < e.length &&
|
|
5099
|
+
let o = Array.isArray(e) ? e.filter(Da) : [];
|
|
5100
|
+
return Array.isArray(e) && o.length < e.length && Ea(e.length - o.length), o.length === 0 ? null : /* @__PURE__ */ K("svg", {
|
|
5101
5101
|
className: `wui-sparkline${i ? ` ${i}` : ""}`,
|
|
5102
5102
|
width: n,
|
|
5103
5103
|
height: r,
|
|
5104
5104
|
viewBox: `0 0 ${n} ${r}`,
|
|
5105
5105
|
role: "img",
|
|
5106
|
-
"aria-label":
|
|
5106
|
+
"aria-label": Aa(o, t),
|
|
5107
5107
|
...a,
|
|
5108
5108
|
children: /* @__PURE__ */ K("polyline", {
|
|
5109
|
-
points:
|
|
5109
|
+
points: Oa(o, n, r),
|
|
5110
5110
|
stroke: "currentColor",
|
|
5111
5111
|
fill: "none"
|
|
5112
5112
|
})
|
|
@@ -5114,46 +5114,46 @@ function Aa({ data: e, label: t, width: n = 48, height: r = 16, className: i = "
|
|
|
5114
5114
|
}
|
|
5115
5115
|
//#endregion
|
|
5116
5116
|
//#region src/components/AppKpiTile.jsx
|
|
5117
|
-
var
|
|
5117
|
+
var Ma = [
|
|
5118
5118
|
"plain",
|
|
5119
5119
|
"filled",
|
|
5120
5120
|
"accent",
|
|
5121
5121
|
"spotlight"
|
|
5122
|
-
],
|
|
5122
|
+
], Na = [
|
|
5123
5123
|
"sm",
|
|
5124
5124
|
"md",
|
|
5125
5125
|
"lg"
|
|
5126
|
-
],
|
|
5126
|
+
], Pa = [
|
|
5127
5127
|
"primary",
|
|
5128
5128
|
"success",
|
|
5129
5129
|
"warning",
|
|
5130
5130
|
"danger",
|
|
5131
5131
|
"info",
|
|
5132
5132
|
"neutral"
|
|
5133
|
-
],
|
|
5133
|
+
], Fa = [
|
|
5134
5134
|
"up",
|
|
5135
5135
|
"down",
|
|
5136
5136
|
"flat"
|
|
5137
|
-
],
|
|
5137
|
+
], Ia = [
|
|
5138
5138
|
"success",
|
|
5139
5139
|
"danger",
|
|
5140
5140
|
"neutral"
|
|
5141
|
-
],
|
|
5141
|
+
], La = {
|
|
5142
5142
|
success: " wui-kpi-delta--success",
|
|
5143
5143
|
danger: " wui-kpi-delta--danger",
|
|
5144
5144
|
neutral: " wui-kpi-delta--neutral"
|
|
5145
5145
|
};
|
|
5146
|
-
function
|
|
5146
|
+
function Ra(e) {
|
|
5147
5147
|
if (typeof e != "string") return "flat";
|
|
5148
5148
|
let t = e.trim();
|
|
5149
5149
|
return t.startsWith("+") ? "up" : t.startsWith("-") || t.startsWith("−") ? "down" : "flat";
|
|
5150
5150
|
}
|
|
5151
|
-
function
|
|
5152
|
-
Y("AppKpiTile", w), J("AppKpiTile", "variant", l,
|
|
5151
|
+
function za({ label: e, value: t, caption: n, icon: r, iconTone: i, delta: a, deltaDirection: o, deltaTone: s, sparkline: c, variant: l = "plain", size: u = "md", valueSize: d, inline: f = !1, attention: p = !1, href: m, linkComponent: h, className: g = "", style: _, iconClassName: v = "", labelClassName: y = "", valueClassName: b = "", captionClassName: x = "", deltaClassName: S = "", sparklineClassName: C = "", ...w }) {
|
|
5152
|
+
Y("AppKpiTile", w), J("AppKpiTile", "variant", l, Ma), J("AppKpiTile", "size", u, Na), J("AppKpiTile", "iconTone", i, Pa), J("AppKpiTile", "deltaDirection", o, Fa), J("AppKpiTile", "deltaTone", s, Ia);
|
|
5153
5153
|
let T = `kpi${f ? " kpi-inline" : ""}${l === "filled" ? " kpi-filled" : l === "accent" ? " kpi-accent" : l === "spotlight" ? " kpi-spotlight" : ""}${u === "lg" ? " kpi-lg" : u === "sm" ? " kpi-sm" : ""}${p ? " kpi-attention" : ""}${g ? ` ${g}` : ""}`, E = typeof d == "number" && d > 0 ? {
|
|
5154
5154
|
..._,
|
|
5155
5155
|
"--wui-kpi-value-size": `${d}px`
|
|
5156
|
-
} : _, D = o ??
|
|
5156
|
+
} : _, D = o ?? Ra(a), O = D === "up" ? "arrow-up" : D === "down" ? "arrow-down" : null, k = Object.hasOwn(La, s ?? "") ? La[s] : "", A = {};
|
|
5157
5157
|
return m != null && (A = h ? {
|
|
5158
5158
|
as: h,
|
|
5159
5159
|
to: m
|
|
@@ -5189,7 +5189,7 @@ function Ra({ label: e, value: t, caption: n, icon: r, iconTone: i, delta: a, de
|
|
|
5189
5189
|
size: 13
|
|
5190
5190
|
}), a]
|
|
5191
5191
|
}),
|
|
5192
|
-
c && c.length > 0 && /* @__PURE__ */ K(
|
|
5192
|
+
c && c.length > 0 && /* @__PURE__ */ K(ja, {
|
|
5193
5193
|
data: c,
|
|
5194
5194
|
className: `kpi-sparkline${C ? ` ${C}` : ""}`
|
|
5195
5195
|
})
|
|
@@ -5198,42 +5198,42 @@ function Ra({ label: e, value: t, caption: n, icon: r, iconTone: i, delta: a, de
|
|
|
5198
5198
|
}
|
|
5199
5199
|
//#endregion
|
|
5200
5200
|
//#region src/components/AppLineChart.jsx
|
|
5201
|
-
var
|
|
5201
|
+
var Ba = [
|
|
5202
5202
|
"neutral",
|
|
5203
5203
|
"info",
|
|
5204
5204
|
"success",
|
|
5205
5205
|
"warning",
|
|
5206
5206
|
"danger"
|
|
5207
|
-
],
|
|
5208
|
-
function
|
|
5207
|
+
], Va = 10, Ha = 6, Ua = 12, Wa = (e) => String(e), Ga = (e) => typeof e == "number" && Number.isFinite(e);
|
|
5208
|
+
function Ka(e) {
|
|
5209
5209
|
let t = e / 4, n = 10 ** Math.floor(Math.log10(t)), r = t / n;
|
|
5210
5210
|
return (r <= 1 ? 1 : r <= 2 ? 2 : r <= 2.5 ? 2.5 : r <= 5 ? 5 : 10) * n;
|
|
5211
5211
|
}
|
|
5212
|
-
var
|
|
5213
|
-
function
|
|
5214
|
-
let i = [...e.filter(
|
|
5215
|
-
o > a || (
|
|
5216
|
-
let s =
|
|
5217
|
-
|
|
5212
|
+
var qa = (e) => Number(e.toFixed(10));
|
|
5213
|
+
function Ja(e, t, n, r) {
|
|
5214
|
+
let i = [...e.filter(Ga), ...t.map((e) => e.value).filter(Ga)], a = Ga(n) ? n : i.length ? Math.min(...i) : 0, o = Ga(r) ? r : i.length ? Math.max(...i) : 1;
|
|
5215
|
+
o > a || (Ga(r) ? a = o - 1 : o = a + 1);
|
|
5216
|
+
let s = Ka(o - a);
|
|
5217
|
+
Ga(n) || (a = qa(Math.floor(a / s) * s)), Ga(r) || (o = qa(Math.ceil(o / s) * s));
|
|
5218
5218
|
let c = [];
|
|
5219
|
-
for (let e = Math.ceil(a / s) * s; e <= o + s / 1e6; e += s) c.push(
|
|
5219
|
+
for (let e = Math.ceil(a / s) * s; e <= o + s / 1e6; e += s) c.push(qa(e));
|
|
5220
5220
|
return {
|
|
5221
5221
|
lo: a,
|
|
5222
5222
|
hi: o,
|
|
5223
5223
|
ticks: c
|
|
5224
5224
|
};
|
|
5225
5225
|
}
|
|
5226
|
-
function
|
|
5226
|
+
function Ya({ data: e = [], name: t, yMin: n, yMax: r, bands: i = [], referenceLines: a = [], formatValue: o, height: s = 240, title: c, ariaLabel: l, className: u = "", ...d }) {
|
|
5227
5227
|
Y("AppLineChart", d);
|
|
5228
|
-
for (let e of i) J("AppLineChart", "bands.tone", e.tone,
|
|
5229
|
-
let f = o ??
|
|
5228
|
+
for (let e of i) J("AppLineChart", "bands.tone", e.tone, Ba);
|
|
5229
|
+
let f = o ?? Wa, p = (e) => Ga(e) ? f(e) : "No data", m = e.length, { lo: h, hi: g, ticks: _ } = Ja(e.map((e) => e.value), a, n, r), v = (e) => Math.min(g, Math.max(h, e)), y = (e) => Number((Va + (g - v(e)) / (g - h) * (s - Va * 2)).toFixed(2)), b = (e) => `${Number(((e + .5) / m * 100).toFixed(3))}%`, x = Math.ceil(m / Ha), S = Math.ceil(m / Ua), C = i.map((e) => {
|
|
5230
5230
|
let t = y(Math.max(e.from, e.to)), n = y(Math.min(e.from, e.to));
|
|
5231
5231
|
return {
|
|
5232
5232
|
...e,
|
|
5233
5233
|
top: t,
|
|
5234
5234
|
size: n - t
|
|
5235
5235
|
};
|
|
5236
|
-
}).filter((e) => e.size > 0), w = a.filter((e) =>
|
|
5236
|
+
}).filter((e) => e.size > 0), w = a.filter((e) => Ga(e.value) && e.value >= h && e.value <= g), T = c || l, E = (e) => `${t ? `${t}, ` : ""}${e.label}: ${p(e.value)}`;
|
|
5237
5237
|
return /* @__PURE__ */ q("figure", {
|
|
5238
5238
|
className: `wui-chart wui-line-chart${u ? ` ${u}` : ""}`,
|
|
5239
5239
|
"aria-label": c ? void 0 : l || void 0,
|
|
@@ -5255,7 +5255,7 @@ function Ja({ data: e = [], name: t, yMin: n, yMax: r, bands: i = [], referenceL
|
|
|
5255
5255
|
focusable: "false",
|
|
5256
5256
|
children: [
|
|
5257
5257
|
C.map((e) => /* @__PURE__ */ K("rect", {
|
|
5258
|
-
className: `wui-chart-band${
|
|
5258
|
+
className: `wui-chart-band${Ba.includes(e.tone) && e.tone !== "neutral" ? ` wui-chart-band-${e.tone}` : ""}`,
|
|
5259
5259
|
x: "0",
|
|
5260
5260
|
y: e.top,
|
|
5261
5261
|
width: "100%",
|
|
@@ -5275,7 +5275,7 @@ function Ja({ data: e = [], name: t, yMin: n, yMax: r, bands: i = [], referenceL
|
|
|
5275
5275
|
y1: y(e.value),
|
|
5276
5276
|
y2: y(e.value)
|
|
5277
5277
|
}, `ref-${e.value}`)),
|
|
5278
|
-
e.slice(1).map((t, n) =>
|
|
5278
|
+
e.slice(1).map((t, n) => Ga(e[n].value) && Ga(t.value) ? /* @__PURE__ */ K("line", {
|
|
5279
5279
|
className: "wui-chart-line",
|
|
5280
5280
|
x1: b(n),
|
|
5281
5281
|
y1: y(e[n].value),
|
|
@@ -5304,7 +5304,7 @@ function Ja({ data: e = [], name: t, yMin: n, yMax: r, bands: i = [], referenceL
|
|
|
5304
5304
|
}, `ref-label-${e.value}`) : null)
|
|
5305
5305
|
]
|
|
5306
5306
|
}),
|
|
5307
|
-
e.map((e, t) =>
|
|
5307
|
+
e.map((e, t) => Ga(e.value) ? /* @__PURE__ */ q("button", {
|
|
5308
5308
|
type: "button",
|
|
5309
5309
|
className: `wui-chart-point${t === 0 && m > 1 ? " wui-chart-point-start" : ""}${t === m - 1 && m > 1 ? " wui-chart-point-end" : ""}`,
|
|
5310
5310
|
style: {
|
|
@@ -5356,11 +5356,11 @@ function Ja({ data: e = [], name: t, yMin: n, yMax: r, bands: i = [], referenceL
|
|
|
5356
5356
|
}
|
|
5357
5357
|
//#endregion
|
|
5358
5358
|
//#region src/components/AppLink.jsx
|
|
5359
|
-
var
|
|
5359
|
+
var Xa = {
|
|
5360
5360
|
sm: 13,
|
|
5361
5361
|
md: 15,
|
|
5362
5362
|
lg: 18
|
|
5363
|
-
},
|
|
5363
|
+
}, Za = [
|
|
5364
5364
|
"underline",
|
|
5365
5365
|
"underline-center",
|
|
5366
5366
|
"static",
|
|
@@ -5374,35 +5374,35 @@ var Ya = {
|
|
|
5374
5374
|
"shine",
|
|
5375
5375
|
"none"
|
|
5376
5376
|
];
|
|
5377
|
-
function
|
|
5377
|
+
function Qa(e, t, n) {
|
|
5378
5378
|
if (!e) return null;
|
|
5379
5379
|
let r = `wui-link__ic wui-link__ic--${t}`;
|
|
5380
5380
|
return typeof e == "string" ? /* @__PURE__ */ K("span", {
|
|
5381
5381
|
className: r,
|
|
5382
5382
|
children: /* @__PURE__ */ K(Z, {
|
|
5383
5383
|
name: e,
|
|
5384
|
-
size:
|
|
5384
|
+
size: Xa[n] ?? Xa.md
|
|
5385
5385
|
})
|
|
5386
5386
|
}) : /* @__PURE__ */ K("span", {
|
|
5387
5387
|
className: r,
|
|
5388
5388
|
children: e
|
|
5389
5389
|
});
|
|
5390
5390
|
}
|
|
5391
|
-
function
|
|
5392
|
-
Y("AppLink", d), J("AppLink", "animation", r,
|
|
5393
|
-
let f =
|
|
5391
|
+
function $a({ children: e, label: t, href: n, animation: r = "underline", leftIcon: i = null, rightIcon: a = null, size: o = "md", external: s = !1, disabled: c = !1, linkComponent: l, className: u = "", ...d }) {
|
|
5392
|
+
Y("AppLink", d), J("AppLink", "animation", r, Za), J("AppLink", "size", o, Object.keys(Xa));
|
|
5393
|
+
let f = Za.includes(r) ? r : "underline", p = f === "icon" && !a && !i ? "arrow-right" : a, m = [
|
|
5394
5394
|
"wui-link",
|
|
5395
5395
|
`wui-link--${f}`,
|
|
5396
5396
|
o === "md" ? "" : `wui-link--${o}`,
|
|
5397
5397
|
c ? "is-disabled" : "",
|
|
5398
5398
|
u
|
|
5399
5399
|
].filter(Boolean).join(" "), h = /* @__PURE__ */ q(G, { children: [
|
|
5400
|
-
|
|
5400
|
+
Qa(i, "left", o),
|
|
5401
5401
|
/* @__PURE__ */ K("span", {
|
|
5402
5402
|
className: "wui-link__label",
|
|
5403
5403
|
children: e ?? t
|
|
5404
5404
|
}),
|
|
5405
|
-
|
|
5405
|
+
Qa(p, "right", o)
|
|
5406
5406
|
] });
|
|
5407
5407
|
return c ? /* @__PURE__ */ K("span", {
|
|
5408
5408
|
className: m,
|
|
@@ -5425,21 +5425,21 @@ function Qa({ children: e, label: t, href: n, animation: r = "underline", leftIc
|
|
|
5425
5425
|
}
|
|
5426
5426
|
//#endregion
|
|
5427
5427
|
//#region src/components/AppLogoPicker.jsx
|
|
5428
|
-
var
|
|
5428
|
+
var eo = [
|
|
5429
5429
|
"stacked",
|
|
5430
5430
|
"inline",
|
|
5431
5431
|
"profile"
|
|
5432
|
-
],
|
|
5432
|
+
], to = ["initials", "avatar"], no = [
|
|
5433
5433
|
"circle",
|
|
5434
5434
|
"rounded",
|
|
5435
5435
|
"square"
|
|
5436
|
-
],
|
|
5436
|
+
], ro = {
|
|
5437
5437
|
sm: 72,
|
|
5438
5438
|
md: 120,
|
|
5439
5439
|
lg: 160
|
|
5440
|
-
},
|
|
5441
|
-
function
|
|
5442
|
-
Y("AppLogoPicker", T), J("AppLogoPicker", "layout", _,
|
|
5440
|
+
}, io = "That image could not be cropped. Choose another one.", ao = "That image could not be opened. Choose another one.";
|
|
5441
|
+
function oo({ value: e, fallback: t, name: r, onPick: i, onRemove: a, loading: o = !1, disabled: s = !1, accept: c = "image/png,image/jpeg,image/webp", maxSizeMb: l = n, crop: u, overlayIcon: d = "image", overlayLabel: f = "Update photo", ariaLabel: p = "Upload photo", label: m, hint: h, error: g, layout: _ = "stacked", title: v, subtitle: y, required: b = !1, variant: x = "initials", size: S = "md", shape: C = "circle", className: w = "", ...T }) {
|
|
5442
|
+
Y("AppLogoPicker", T), J("AppLogoPicker", "layout", _, eo), J("AppLogoPicker", "variant", x, to), J("AppLogoPicker", "shape", C, no), J("AppLogoPicker", "size", typeof S == "string" ? S : null, Object.keys(ro));
|
|
5443
5443
|
let E = u === "free" ? null : typeof u == "number" && Number.isFinite(u) && u > 0 ? u : void 0;
|
|
5444
5444
|
u != null && E === void 0 && J("AppLogoPicker", "crop", String(u), ["free", "a positive number"]);
|
|
5445
5445
|
let D = V(null), O = V(null), k = z(), [A, j] = H(null), [M, ee] = H(""), [P, te] = H(!1), [ne, F] = H(!1), [I, re] = H(null), [B, ie] = H(!1), [ae, oe] = H("loading"), [se, ce] = H(""), le = L((e) => {
|
|
@@ -5487,7 +5487,7 @@ function ao({ value: e, fallback: t, name: r, onPick: i, onRemove: a, loading: o
|
|
|
5487
5487
|
t = null;
|
|
5488
5488
|
}
|
|
5489
5489
|
if (ie(!1), !t) {
|
|
5490
|
-
ce(
|
|
5490
|
+
ce(io);
|
|
5491
5491
|
return;
|
|
5492
5492
|
}
|
|
5493
5493
|
re(null);
|
|
@@ -5507,7 +5507,7 @@ function ao({ value: e, fallback: t, name: r, onPick: i, onRemove: a, loading: o
|
|
|
5507
5507
|
t && ge(t);
|
|
5508
5508
|
}, xe = () => {
|
|
5509
5509
|
j(null), ee(""), te(!1), D.current && (D.current.value = ""), a?.();
|
|
5510
|
-
}, Se = typeof S == "number" ? S :
|
|
5510
|
+
}, Se = typeof S == "number" ? S : ro[S] ?? ro.md, Ce = Math.max(14, Math.round(Se * .18)), we = Math.round(Se * .5), Te = [
|
|
5511
5511
|
"set-uploader",
|
|
5512
5512
|
x === "avatar" ? "set-uploader--avatar" : "",
|
|
5513
5513
|
C === "rounded" ? "set-uploader--rounded" : C === "square" ? "set-uploader--square" : "",
|
|
@@ -5609,7 +5609,7 @@ function ao({ value: e, fallback: t, name: r, onPick: i, onRemove: a, loading: o
|
|
|
5609
5609
|
children: [
|
|
5610
5610
|
ae === "error" && /* @__PURE__ */ K(ft, {
|
|
5611
5611
|
variant: "danger",
|
|
5612
|
-
children:
|
|
5612
|
+
children: ao
|
|
5613
5613
|
}),
|
|
5614
5614
|
se && /* @__PURE__ */ K(ft, {
|
|
5615
5615
|
variant: "danger",
|
|
@@ -5676,27 +5676,27 @@ function ao({ value: e, fallback: t, name: r, onPick: i, onRemove: a, loading: o
|
|
|
5676
5676
|
}
|
|
5677
5677
|
//#endregion
|
|
5678
5678
|
//#region src/components/AppMeter.jsx
|
|
5679
|
-
var
|
|
5679
|
+
var so = ["high", "low"], co = ["sm", "md"], lo = [
|
|
5680
5680
|
"info",
|
|
5681
5681
|
"success",
|
|
5682
5682
|
"warning",
|
|
5683
5683
|
"danger",
|
|
5684
5684
|
"neutral"
|
|
5685
5685
|
];
|
|
5686
|
-
function
|
|
5686
|
+
function uo(e, t, n) {
|
|
5687
5687
|
let r = n - t;
|
|
5688
5688
|
if (!(r > 0)) return 0;
|
|
5689
5689
|
let i = Math.min(100, Math.max(0, (e - t) / r * 100));
|
|
5690
5690
|
return Number(i.toFixed(2));
|
|
5691
5691
|
}
|
|
5692
|
-
function
|
|
5692
|
+
function fo(e, t, n, r, i) {
|
|
5693
5693
|
if (t == null && n == null) return i;
|
|
5694
5694
|
let a = "mid";
|
|
5695
5695
|
return t != null && e <= t ? a = "low" : n != null && e >= n && (a = "high"), r === "low" ? a === "low" ? "success" : a === "high" ? "danger" : "warning" : a === "high" ? "success" : a === "low" ? "danger" : "warning";
|
|
5696
5696
|
}
|
|
5697
|
-
function
|
|
5698
|
-
Y("AppMeter", d), J("AppMeter", "tone", r,
|
|
5699
|
-
let f =
|
|
5697
|
+
function po({ value: e = 0, min: t = 0, max: n = 100, tone: r = "info", optimum: i = "high", low: a, high: o, size: s = "md", label: c, showLabel: l = !1, className: u = "", ...d }) {
|
|
5698
|
+
Y("AppMeter", d), J("AppMeter", "tone", r, lo), J("AppMeter", "optimum", i, so), J("AppMeter", "size", s, co);
|
|
5699
|
+
let f = fo(e, a, o, i, lo.includes(r) ? r : "info"), p = uo(e, t, n);
|
|
5700
5700
|
return /* @__PURE__ */ K("div", {
|
|
5701
5701
|
className: `progress${s === "sm" ? " progress-sm" : ""}${u ? ` ${u}` : ""}`,
|
|
5702
5702
|
role: "meter",
|
|
@@ -5714,12 +5714,12 @@ function fo({ value: e = 0, min: t = 0, max: n = 100, tone: r = "info", optimum:
|
|
|
5714
5714
|
}
|
|
5715
5715
|
//#endregion
|
|
5716
5716
|
//#region src/components/AppNumberInput.jsx
|
|
5717
|
-
var
|
|
5717
|
+
var mo = [
|
|
5718
5718
|
"sm",
|
|
5719
5719
|
"md",
|
|
5720
5720
|
"lg"
|
|
5721
|
-
],
|
|
5722
|
-
Y("AppNumberInput", y), J("AppNumberInput", "size", p,
|
|
5721
|
+
], ho = I(function({ label: e, required: t = !1, error: n, hint: r, help: i, helpLabel: a = "More information", value: o, onChange: s, min: c, max: l, step: u = 1, precision: d = 0, unit: f, size: p = "md", id: m, name: h, className: g = "", fieldClassName: _ = "", disabled: v = !1, ...y }, b) {
|
|
5722
|
+
Y("AppNumberInput", y), J("AppNumberInput", "size", p, mo);
|
|
5723
5723
|
let x = z(), S = m || x, C = (e) => {
|
|
5724
5724
|
if (d === 0) return Math.round(e);
|
|
5725
5725
|
let t = 10 ** d;
|
|
@@ -5841,8 +5841,8 @@ var po = [
|
|
|
5841
5841
|
}) : null
|
|
5842
5842
|
]
|
|
5843
5843
|
});
|
|
5844
|
-
}),
|
|
5845
|
-
Y("AppOtpInput", m), J("AppOtpInput", "mode", i,
|
|
5844
|
+
}), go = ["numeric", "alphanumeric"], _o = I(function({ value: e, onChange: t, onComplete: n, length: r = 6, mode: i = "numeric", label: a, required: o = !1, hint: s, error: c, disabled: l = !1, name: u, id: d, className: f = "", fieldClassName: p = "", ...m }, h) {
|
|
5845
|
+
Y("AppOtpInput", m), J("AppOtpInput", "mode", i, go);
|
|
5846
5846
|
let g = z(), _ = d || g, v = c ? `${_}-error` : void 0, y = s ? `${_}-hint` : void 0, b = v || y, { setRef: x } = $({
|
|
5847
5847
|
ref: h,
|
|
5848
5848
|
value: e ?? "",
|
|
@@ -5883,17 +5883,17 @@ var po = [
|
|
|
5883
5883
|
})
|
|
5884
5884
|
]
|
|
5885
5885
|
});
|
|
5886
|
-
}),
|
|
5886
|
+
}), vo = [
|
|
5887
5887
|
"primary",
|
|
5888
5888
|
"success",
|
|
5889
5889
|
"warning",
|
|
5890
5890
|
"danger",
|
|
5891
5891
|
"info"
|
|
5892
|
-
],
|
|
5892
|
+
], yo = [
|
|
5893
5893
|
"sm",
|
|
5894
5894
|
"md",
|
|
5895
5895
|
"lg"
|
|
5896
|
-
],
|
|
5896
|
+
], bo = ["start", "center"], xo = [
|
|
5897
5897
|
"h1",
|
|
5898
5898
|
"h2",
|
|
5899
5899
|
"h3",
|
|
@@ -5901,9 +5901,9 @@ var po = [
|
|
|
5901
5901
|
"h5",
|
|
5902
5902
|
"h6"
|
|
5903
5903
|
];
|
|
5904
|
-
function
|
|
5905
|
-
Y("AppPageHeader", m), J("AppPageHeader", "tone", a,
|
|
5906
|
-
let h =
|
|
5904
|
+
function So({ title: e, as: t = "h1", subtitle: n, eyebrow: r, icon: i, tone: a = "primary", status: o, breadcrumbs: s, actions: c, size: l = "md", align: u = "start", divider: d = !1, sticky: f = !1, className: p = "", ...m }) {
|
|
5905
|
+
Y("AppPageHeader", m), J("AppPageHeader", "tone", a, vo), J("AppPageHeader", "size", l, yo), J("AppPageHeader", "align", u, bo), J("AppPageHeader", "as", t, xo);
|
|
5906
|
+
let h = xo.includes(t) ? t : "h1", g = [
|
|
5907
5907
|
"page-header",
|
|
5908
5908
|
l && l !== "md" ? `page-header-${l}` : "",
|
|
5909
5909
|
u === "center" ? "page-header-center" : "",
|
|
@@ -5960,9 +5960,9 @@ function xo({ title: e, as: t = "h1", subtitle: n, eyebrow: r, icon: i, tone: a
|
|
|
5960
5960
|
}
|
|
5961
5961
|
//#endregion
|
|
5962
5962
|
//#region src/components/AppPagination.jsx
|
|
5963
|
-
var
|
|
5964
|
-
function
|
|
5965
|
-
if (Y("AppPagination", s), J("AppPagination", "size", i,
|
|
5963
|
+
var Co = ["sm", "md"];
|
|
5964
|
+
function wo({ page: e, totalPages: t, onChange: n, siblings: r = 1, size: i = "md", ariaLabel: a = "Pagination", className: o, ...s }) {
|
|
5965
|
+
if (Y("AppPagination", s), J("AppPagination", "size", i, Co), t <= 1) return null;
|
|
5966
5966
|
let c = Hr(e, t, { siblingCount: r });
|
|
5967
5967
|
return /* @__PURE__ */ K("nav", {
|
|
5968
5968
|
className: [
|
|
@@ -6021,12 +6021,12 @@ function Co({ page: e, totalPages: t, onChange: n, siblings: r = 1, size: i = "m
|
|
|
6021
6021
|
}
|
|
6022
6022
|
//#endregion
|
|
6023
6023
|
//#region src/components/AppPhoneNumberInput.jsx
|
|
6024
|
-
var
|
|
6024
|
+
var To = [
|
|
6025
6025
|
"sm",
|
|
6026
6026
|
"md",
|
|
6027
6027
|
"lg"
|
|
6028
|
-
],
|
|
6029
|
-
Y("AppPhoneNumberInput", m), J("AppPhoneNumberInput", "size", f,
|
|
6028
|
+
], Eo = I(function({ value: e, onChange: t, country: n, disabled: r = !1, name: i, id: a, label: o = "Phone number", placeholder: s, required: c = !1, error: l, showFlag: u = !0, showDialCode: d = !0, size: f = "md", fieldClassName: p = "", ...m }, h) {
|
|
6029
|
+
Y("AppPhoneNumberInput", m), J("AppPhoneNumberInput", "size", f, To);
|
|
6030
6030
|
let g = z(), _ = a || g, v = l && _ ? `${_}-error` : void 0, { setRef: y } = $({
|
|
6031
6031
|
ref: h,
|
|
6032
6032
|
value: e ?? "",
|
|
@@ -6066,7 +6066,7 @@ var wo = [
|
|
|
6066
6066
|
});
|
|
6067
6067
|
//#endregion
|
|
6068
6068
|
//#region src/components/AppPricingCard.jsx
|
|
6069
|
-
function
|
|
6069
|
+
function Do({ name: e, price: t, unit: n, tagline: r, features: i = [], cta: a, featured: o = !1, current: s = !1, badge: c = "Most popular", className: l = "", ...u }) {
|
|
6070
6070
|
return Y("AppPricingCard", u), /* @__PURE__ */ q("div", {
|
|
6071
6071
|
className: [
|
|
6072
6072
|
"plan-card",
|
|
@@ -6120,21 +6120,21 @@ function Eo({ name: e, price: t, unit: n, tagline: r, features: i = [], cta: a,
|
|
|
6120
6120
|
}
|
|
6121
6121
|
//#endregion
|
|
6122
6122
|
//#region src/components/AppProgress.jsx
|
|
6123
|
-
var
|
|
6123
|
+
var Oo = ["sm", "md"], ko = [
|
|
6124
6124
|
"info",
|
|
6125
6125
|
"success",
|
|
6126
6126
|
"warning",
|
|
6127
6127
|
"danger",
|
|
6128
6128
|
"neutral"
|
|
6129
6129
|
];
|
|
6130
|
-
function
|
|
6130
|
+
function Ao(e, t) {
|
|
6131
6131
|
if (!(t > 0)) return 0;
|
|
6132
6132
|
let n = Math.min(100, Math.max(0, e / t * 100));
|
|
6133
6133
|
return Number(n.toFixed(2));
|
|
6134
6134
|
}
|
|
6135
|
-
function
|
|
6136
|
-
Y("AppProgress", u), J("AppProgress", "tone", n,
|
|
6137
|
-
let d =
|
|
6135
|
+
function jo({ value: e = 0, max: t = 100, tone: n = "info", size: r = "md", label: i, showLabel: a = !1, striped: o = !1, animated: s = !1, indeterminate: c = !1, className: l = "", ...u }) {
|
|
6136
|
+
Y("AppProgress", u), J("AppProgress", "tone", n, ko), J("AppProgress", "size", r, Oo);
|
|
6137
|
+
let d = ko.includes(n) ? n : "info", f = Ao(e, t), p = `progress${r === "sm" ? " progress-sm" : ""}${l ? ` ${l}` : ""}`, m = [
|
|
6138
6138
|
"progress-bar",
|
|
6139
6139
|
`wui-progress-${d}`,
|
|
6140
6140
|
o || s ? "progress-bar-striped" : "",
|
|
@@ -6158,22 +6158,22 @@ function Ao({ value: e = 0, max: t = 100, tone: n = "info", size: r = "md", labe
|
|
|
6158
6158
|
}
|
|
6159
6159
|
//#endregion
|
|
6160
6160
|
//#region src/lib/qrCode.js
|
|
6161
|
-
var
|
|
6161
|
+
var Mo = {
|
|
6162
6162
|
L: 0,
|
|
6163
6163
|
M: 1,
|
|
6164
6164
|
Q: 2,
|
|
6165
6165
|
H: 3
|
|
6166
|
-
},
|
|
6166
|
+
}, No = [
|
|
6167
6167
|
1,
|
|
6168
6168
|
0,
|
|
6169
6169
|
3,
|
|
6170
6170
|
2
|
|
6171
|
-
],
|
|
6171
|
+
], Po = [
|
|
6172
6172
|
"L",
|
|
6173
6173
|
"M",
|
|
6174
6174
|
"Q",
|
|
6175
6175
|
"H"
|
|
6176
|
-
],
|
|
6176
|
+
], Fo = 3, Io = 3, Lo = 40, Ro = 10, zo = [
|
|
6177
6177
|
[
|
|
6178
6178
|
-1,
|
|
6179
6179
|
7,
|
|
@@ -6346,7 +6346,7 @@ var jo = {
|
|
|
6346
6346
|
30,
|
|
6347
6347
|
30
|
|
6348
6348
|
]
|
|
6349
|
-
],
|
|
6349
|
+
], Bo = [
|
|
6350
6350
|
[
|
|
6351
6351
|
-1,
|
|
6352
6352
|
1,
|
|
@@ -6520,24 +6520,24 @@ var jo = {
|
|
|
6520
6520
|
81
|
|
6521
6521
|
]
|
|
6522
6522
|
];
|
|
6523
|
-
function
|
|
6524
|
-
if (!Object.hasOwn(
|
|
6523
|
+
function Vo(e, t = "M", { mask: n = -1, boostEcc: r = !0 } = {}) {
|
|
6524
|
+
if (!Object.hasOwn(Mo, t)) throw RangeError(`Unknown error correction level "${t}"`);
|
|
6525
6525
|
if (!Number.isInteger(n) || n < -1 || n > 7) throw RangeError("Mask must be -1 to 7");
|
|
6526
|
-
let i = new TextEncoder().encode(String(e)), a =
|
|
6527
|
-
for (; s =
|
|
6528
|
-
for (let e = 1; e <= 3; e++) r && s <=
|
|
6526
|
+
let i = new TextEncoder().encode(String(e)), a = Mo[t], o = 1, s = 0;
|
|
6527
|
+
for (; s = Uo(i.length, o), !(s <= Qo(o, a) * 8); o++) if (o >= 40) throw RangeError(`Data too long for a QR code: ${i.length} bytes`);
|
|
6528
|
+
for (let e = 1; e <= 3; e++) r && s <= Qo(o, e) * 8 && (a = Math.max(a, e));
|
|
6529
6529
|
let c = [];
|
|
6530
|
-
|
|
6531
|
-
for (let e of i)
|
|
6532
|
-
let l =
|
|
6533
|
-
|
|
6534
|
-
for (let e = 236; c.length < l; e ^= 253)
|
|
6530
|
+
rs(4, 4, c), rs(i.length, o <= 9 ? 8 : 16, c);
|
|
6531
|
+
for (let e of i) rs(e, 8, c);
|
|
6532
|
+
let l = Qo(o, a) * 8;
|
|
6533
|
+
rs(0, Math.min(4, l - c.length), c), rs(0, (8 - c.length % 8) % 8, c);
|
|
6534
|
+
for (let e = 236; c.length < l; e ^= 253) rs(e, 8, c);
|
|
6535
6535
|
let u = new Uint8Array(c.length / 8);
|
|
6536
6536
|
return c.forEach((e, t) => {
|
|
6537
6537
|
u[t >>> 3] |= e << 7 - (t & 7);
|
|
6538
|
-
}),
|
|
6538
|
+
}), Wo(o, a, u, n);
|
|
6539
6539
|
}
|
|
6540
|
-
function
|
|
6540
|
+
function Ho(e, t = 4) {
|
|
6541
6541
|
let { size: n } = e, r = "";
|
|
6542
6542
|
for (let i = 0; i < n; i++) {
|
|
6543
6543
|
let a = 0;
|
|
@@ -6554,22 +6554,22 @@ function Vo(e, t = 4) {
|
|
|
6554
6554
|
}
|
|
6555
6555
|
return r;
|
|
6556
6556
|
}
|
|
6557
|
-
function
|
|
6557
|
+
function Uo(e, t) {
|
|
6558
6558
|
let n = t <= 9 ? 8 : 16;
|
|
6559
6559
|
return e >= 1 << n ? Infinity : 4 + n + e * 8;
|
|
6560
6560
|
}
|
|
6561
|
-
function
|
|
6561
|
+
function Wo(e, t, n, r) {
|
|
6562
6562
|
let i = e * 4 + 17, a = new Uint8Array(i * i), o = new Uint8Array(i * i), s = (e, t, n) => {
|
|
6563
6563
|
a[t * i + e] = +!!n, o[t * i + e] = 1;
|
|
6564
6564
|
}, c = (e) => {
|
|
6565
|
-
let n =
|
|
6565
|
+
let n = No[t] << 3 | e, r = n;
|
|
6566
6566
|
for (let e = 0; e < 10; e++) r = r << 1 ^ (r >>> 9) * 1335;
|
|
6567
6567
|
let a = (n << 10 | r) ^ 21522;
|
|
6568
|
-
for (let e = 0; e <= 5; e++) s(8, e,
|
|
6569
|
-
s(8, 7,
|
|
6570
|
-
for (let e = 9; e < 15; e++) s(14 - e, 8,
|
|
6571
|
-
for (let e = 0; e < 8; e++) s(i - 1 - e, 8,
|
|
6572
|
-
for (let e = 8; e < 15; e++) s(8, i - 15 + e,
|
|
6568
|
+
for (let e = 0; e <= 5; e++) s(8, e, is(a, e));
|
|
6569
|
+
s(8, 7, is(a, 6)), s(8, 8, is(a, 7)), s(7, 8, is(a, 8));
|
|
6570
|
+
for (let e = 9; e < 15; e++) s(14 - e, 8, is(a, e));
|
|
6571
|
+
for (let e = 0; e < 8; e++) s(i - 1 - e, 8, is(a, e));
|
|
6572
|
+
for (let e = 8; e < 15; e++) s(8, i - 15 + e, is(a, e));
|
|
6573
6573
|
s(8, i - 8, !0);
|
|
6574
6574
|
}, l = (e, t) => {
|
|
6575
6575
|
for (let n = -4; n <= 4; n++) for (let r = -4; r <= 4; r++) {
|
|
@@ -6581,45 +6581,45 @@ function Uo(e, t, n, r) {
|
|
|
6581
6581
|
};
|
|
6582
6582
|
for (let e = 0; e < i; e++) s(6, e, e % 2 == 0), s(e, 6, e % 2 == 0);
|
|
6583
6583
|
l(3, 3), l(i - 4, 3), l(3, i - 4);
|
|
6584
|
-
let d =
|
|
6584
|
+
let d = Xo(e, i), f = d.length;
|
|
6585
6585
|
for (let e = 0; e < f; e++) for (let t = 0; t < f; t++) e === 0 && t === 0 || e === 0 && t === f - 1 || e === f - 1 && t === 0 || u(d[e], d[t]);
|
|
6586
6586
|
if (c(0), e >= 7) {
|
|
6587
6587
|
let t = e;
|
|
6588
6588
|
for (let e = 0; e < 12; e++) t = t << 1 ^ (t >>> 11) * 7973;
|
|
6589
6589
|
let n = e << 12 | t;
|
|
6590
6590
|
for (let e = 0; e < 18; e++) {
|
|
6591
|
-
let t =
|
|
6591
|
+
let t = is(n, e), r = i - 11 + e % 3, a = Math.floor(e / 3);
|
|
6592
6592
|
s(r, a, t), s(a, r, t);
|
|
6593
6593
|
}
|
|
6594
6594
|
}
|
|
6595
|
-
let p =
|
|
6595
|
+
let p = $o(n, e, t), m = 0, h = p.length * 8;
|
|
6596
6596
|
for (let e = i - 1; e >= 1; e -= 2) {
|
|
6597
6597
|
e === 6 && (e = 5);
|
|
6598
6598
|
for (let t = 0; t < i; t++) for (let n = 0; n < 2; n++) {
|
|
6599
6599
|
let r = e - n, s = e + 1 & 2 ? t : i - 1 - t;
|
|
6600
|
-
!o[s * i + r] && m < h && (a[s * i + r] = +!!
|
|
6600
|
+
!o[s * i + r] && m < h && (a[s * i + r] = +!!is(p[m >>> 3], 7 - (m & 7)), m++);
|
|
6601
6601
|
}
|
|
6602
6602
|
}
|
|
6603
6603
|
let g = (e) => {
|
|
6604
|
-
for (let t = 0; t < i; t++) for (let n = 0; n < i; n++) !o[t * i + n] &&
|
|
6604
|
+
for (let t = 0; t < i; t++) for (let n = 0; n < i; n++) !o[t * i + n] && Go(e, n, t) && (a[t * i + n] ^= 1);
|
|
6605
6605
|
}, _ = r;
|
|
6606
6606
|
if (_ === -1) {
|
|
6607
6607
|
let e = Infinity;
|
|
6608
6608
|
for (let t = 0; t < 8; t++) {
|
|
6609
6609
|
g(t), c(t);
|
|
6610
|
-
let n =
|
|
6610
|
+
let n = Ko(a, i);
|
|
6611
6611
|
n < e && (_ = t, e = n), g(t);
|
|
6612
6612
|
}
|
|
6613
6613
|
}
|
|
6614
6614
|
return g(_), c(_), Object.freeze({
|
|
6615
6615
|
size: i,
|
|
6616
6616
|
version: e,
|
|
6617
|
-
ecc:
|
|
6617
|
+
ecc: Po[t],
|
|
6618
6618
|
mask: _,
|
|
6619
6619
|
isDark: (e, t) => e >= 0 && e < i && t >= 0 && t < i && a[e * i + t] === 1
|
|
6620
6620
|
});
|
|
6621
6621
|
}
|
|
6622
|
-
function
|
|
6622
|
+
function Go(e, t, n) {
|
|
6623
6623
|
switch (e) {
|
|
6624
6624
|
case 0: return (t + n) % 2 == 0;
|
|
6625
6625
|
case 1: return n % 2 == 0;
|
|
@@ -6631,7 +6631,7 @@ function Wo(e, t, n) {
|
|
|
6631
6631
|
default: return ((t + n) % 2 + t * n % 3) % 2 == 0;
|
|
6632
6632
|
}
|
|
6633
6633
|
}
|
|
6634
|
-
function
|
|
6634
|
+
function Ko(e, t) {
|
|
6635
6635
|
let n = 0, r = (n, r) => e[r * t + n] === 1;
|
|
6636
6636
|
for (let e = 0; e < 2; e++) for (let i = 0; i < t; i++) {
|
|
6637
6637
|
let a = !1, o = 0, s = [
|
|
@@ -6645,38 +6645,38 @@ function Go(e, t) {
|
|
|
6645
6645
|
];
|
|
6646
6646
|
for (let c = 0; c < t; c++) {
|
|
6647
6647
|
let l = e === 0 ? r(c, i) : r(i, c);
|
|
6648
|
-
l === a ? (o++, o === 5 ? n +=
|
|
6648
|
+
l === a ? (o++, o === 5 ? n += Fo : o > 5 && n++) : (Yo(o, s, t), a || (n += qo(s) * Lo), a = l, o = 1);
|
|
6649
6649
|
}
|
|
6650
|
-
n +=
|
|
6650
|
+
n += Jo(a, o, s, t) * Lo;
|
|
6651
6651
|
}
|
|
6652
6652
|
for (let e = 0; e < t - 1; e++) for (let i = 0; i < t - 1; i++) {
|
|
6653
6653
|
let t = r(i, e);
|
|
6654
|
-
t === r(i + 1, e) && t === r(i, e + 1) && t === r(i + 1, e + 1) && (n +=
|
|
6654
|
+
t === r(i + 1, e) && t === r(i, e + 1) && t === r(i + 1, e + 1) && (n += Io);
|
|
6655
6655
|
}
|
|
6656
6656
|
let i = 0;
|
|
6657
6657
|
for (let t of e) i += t;
|
|
6658
6658
|
let a = t * t, o = Math.ceil(Math.abs(i * 20 - a * 10) / a) - 1;
|
|
6659
|
-
return n += o *
|
|
6659
|
+
return n += o * Ro, n;
|
|
6660
6660
|
}
|
|
6661
|
-
function
|
|
6661
|
+
function qo(e) {
|
|
6662
6662
|
let t = e[1], n = t > 0 && e[2] === t && e[3] === t * 3 && e[4] === t && e[5] === t;
|
|
6663
6663
|
return (n && e[0] >= t * 4 && e[6] >= t ? 1 : 0) + (n && e[6] >= t * 4 && e[0] >= t ? 1 : 0);
|
|
6664
6664
|
}
|
|
6665
|
-
function
|
|
6665
|
+
function Jo(e, t, n, r) {
|
|
6666
6666
|
let i = t;
|
|
6667
|
-
return e && (
|
|
6667
|
+
return e && (Yo(i, n, r), i = 0), i += r, Yo(i, n, r), qo(n);
|
|
6668
6668
|
}
|
|
6669
|
-
function
|
|
6669
|
+
function Yo(e, t, n) {
|
|
6670
6670
|
let r = t[0] === 0 ? e + n : e;
|
|
6671
6671
|
t.pop(), t.unshift(r);
|
|
6672
6672
|
}
|
|
6673
|
-
function
|
|
6673
|
+
function Xo(e, t) {
|
|
6674
6674
|
if (e === 1) return [];
|
|
6675
6675
|
let n = Math.floor(e / 7) + 2, r = Math.floor((e * 8 + n * 3 + 5) / (n * 4 - 4)) * 2, i = [6];
|
|
6676
6676
|
for (let e = t - 7; i.length < n; e -= r) i.splice(1, 0, e);
|
|
6677
6677
|
return i;
|
|
6678
6678
|
}
|
|
6679
|
-
function
|
|
6679
|
+
function Zo(e) {
|
|
6680
6680
|
let t = (16 * e + 128) * e + 64;
|
|
6681
6681
|
if (e >= 2) {
|
|
6682
6682
|
let n = Math.floor(e / 7) + 2;
|
|
@@ -6684,15 +6684,15 @@ function Xo(e) {
|
|
|
6684
6684
|
}
|
|
6685
6685
|
return t;
|
|
6686
6686
|
}
|
|
6687
|
-
function
|
|
6688
|
-
return Math.floor(
|
|
6687
|
+
function Qo(e, t) {
|
|
6688
|
+
return Math.floor(Zo(e) / 8) - zo[t][e] * Bo[t][e];
|
|
6689
6689
|
}
|
|
6690
|
-
function
|
|
6691
|
-
let r =
|
|
6690
|
+
function $o(e, t, n) {
|
|
6691
|
+
let r = Bo[n][t], i = zo[n][t], a = Math.floor(Zo(t) / 8), o = r - a % r, s = Math.floor(a / r), c = [], l = es(i);
|
|
6692
6692
|
for (let t = 0, n = 0; t < r; t++) {
|
|
6693
6693
|
let r = Array.from(e.subarray(n, n + s - i + (t < o ? 0 : 1)));
|
|
6694
6694
|
n += r.length;
|
|
6695
|
-
let a =
|
|
6695
|
+
let a = ts(r, l);
|
|
6696
6696
|
t < o && r.push(0), c.push(r.concat(a));
|
|
6697
6697
|
}
|
|
6698
6698
|
let u = [];
|
|
@@ -6701,48 +6701,48 @@ function Qo(e, t, n) {
|
|
|
6701
6701
|
});
|
|
6702
6702
|
return u;
|
|
6703
6703
|
}
|
|
6704
|
-
function
|
|
6704
|
+
function es(e) {
|
|
6705
6705
|
let t = Array(e).fill(0);
|
|
6706
6706
|
t[e - 1] = 1;
|
|
6707
6707
|
let n = 1;
|
|
6708
6708
|
for (let r = 0; r < e; r++) {
|
|
6709
|
-
for (let e = 0; e < t.length; e++) t[e] =
|
|
6710
|
-
n =
|
|
6709
|
+
for (let e = 0; e < t.length; e++) t[e] = ns(t[e], n), e + 1 < t.length && (t[e] ^= t[e + 1]);
|
|
6710
|
+
n = ns(n, 2);
|
|
6711
6711
|
}
|
|
6712
6712
|
return t;
|
|
6713
6713
|
}
|
|
6714
|
-
function
|
|
6714
|
+
function ts(e, t) {
|
|
6715
6715
|
let n = t.map(() => 0);
|
|
6716
6716
|
for (let r of e) {
|
|
6717
6717
|
let e = r ^ n.shift();
|
|
6718
6718
|
n.push(0), t.forEach((t, r) => {
|
|
6719
|
-
n[r] ^=
|
|
6719
|
+
n[r] ^= ns(t, e);
|
|
6720
6720
|
});
|
|
6721
6721
|
}
|
|
6722
6722
|
return n;
|
|
6723
6723
|
}
|
|
6724
|
-
function
|
|
6724
|
+
function ns(e, t) {
|
|
6725
6725
|
let n = 0;
|
|
6726
6726
|
for (let r = 7; r >= 0; r--) n = n << 1 ^ (n >>> 7) * 285, n ^= (t >>> r & 1) * e;
|
|
6727
6727
|
return n;
|
|
6728
6728
|
}
|
|
6729
|
-
function
|
|
6729
|
+
function rs(e, t, n) {
|
|
6730
6730
|
for (let r = t - 1; r >= 0; r--) n.push(e >>> r & 1);
|
|
6731
6731
|
}
|
|
6732
|
-
function
|
|
6732
|
+
function is(e, t) {
|
|
6733
6733
|
return (e >>> t & 1) != 0;
|
|
6734
6734
|
}
|
|
6735
6735
|
//#endregion
|
|
6736
6736
|
//#region src/components/AppQrCode.jsx
|
|
6737
|
-
var
|
|
6738
|
-
function
|
|
6737
|
+
var as = 4;
|
|
6738
|
+
function os({ value: e, size: t = 240, title: n = "QR code", className: r, style: i, ...a }) {
|
|
6739
6739
|
Y("AppQrCode", a);
|
|
6740
6740
|
let o = ie(() => {
|
|
6741
6741
|
if (!e) return null;
|
|
6742
|
-
let t =
|
|
6742
|
+
let t = Vo(String(e));
|
|
6743
6743
|
return {
|
|
6744
|
-
modules: t.size +
|
|
6745
|
-
path:
|
|
6744
|
+
modules: t.size + as * 2,
|
|
6745
|
+
path: Ho(t, as)
|
|
6746
6746
|
};
|
|
6747
6747
|
}, [e]);
|
|
6748
6748
|
if (!o) return null;
|
|
@@ -6769,7 +6769,7 @@ function as({ value: e, size: t = 240, title: n = "QR code", className: r, style
|
|
|
6769
6769
|
}
|
|
6770
6770
|
//#endregion
|
|
6771
6771
|
//#region src/components/AppRadio.jsx
|
|
6772
|
-
var
|
|
6772
|
+
var ss = I(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", ...o }, s) {
|
|
6773
6773
|
return Y("AppRadio", o), /* @__PURE__ */ K(Kn, {
|
|
6774
6774
|
ref: s,
|
|
6775
6775
|
label: e,
|
|
@@ -6785,7 +6785,7 @@ var os = I(function({ label: e, id: t, name: n, error: r, hint: i, className: a
|
|
|
6785
6785
|
});
|
|
6786
6786
|
//#endregion
|
|
6787
6787
|
//#region src/components/AppRadioGroup.jsx
|
|
6788
|
-
function
|
|
6788
|
+
function cs({ label: e, options: t = [], name: n, value: r, defaultValue: i, onChange: a, inline: o = !1, required: s = !1, disabled: c = !1, error: l, hint: u, help: d, helpLabel: f = "More information", id: p, className: m = "", fieldClassName: h = "", style: g, ..._ }) {
|
|
6789
6789
|
Y("AppRadioGroup", _);
|
|
6790
6790
|
let v = z(), y = p || v, b = n || y, x = `${y}-error`, S = `${y}-hint`, C = r !== void 0;
|
|
6791
6791
|
return /* @__PURE__ */ q("div", {
|
|
@@ -6858,7 +6858,7 @@ function ss({ label: e, options: t = [], name: n, value: r, defaultValue: i, onC
|
|
|
6858
6858
|
}
|
|
6859
6859
|
//#endregion
|
|
6860
6860
|
//#region src/components/AppRepeater.jsx
|
|
6861
|
-
function
|
|
6861
|
+
function ls({ rows: e = [], renderRow: t, rowLabel: n, onAdd: r, onRemove: i, addLabel: a = "Add another", addVariant: o = "secondary", removeLabel: s = "Remove row", emptyText: c, min: l = 0, max: u, numbered: d = !0, className: f = "", ...p }) {
|
|
6862
6862
|
Y("AppRepeater", p);
|
|
6863
6863
|
let m = typeof u == "number" && e.length >= u, h = !!i && e.length > l;
|
|
6864
6864
|
return /* @__PURE__ */ q("div", {
|
|
@@ -6910,7 +6910,7 @@ function cs({ rows: e = [], renderRow: t, rowLabel: n, onAdd: r, onRemove: i, ad
|
|
|
6910
6910
|
}
|
|
6911
6911
|
//#endregion
|
|
6912
6912
|
//#region src/components/AppResourceCard.jsx
|
|
6913
|
-
function
|
|
6913
|
+
function us({ icon: e, title: t, text: n, href: r, external: i = !1, linkComponent: a, className: o = "", ...s }) {
|
|
6914
6914
|
Y("AppResourceCard", s);
|
|
6915
6915
|
let c = /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ K("span", {
|
|
6916
6916
|
className: "res-card-icon",
|
|
@@ -6944,7 +6944,7 @@ function ls({ icon: e, title: t, text: n, href: r, external: i = !1, linkCompone
|
|
|
6944
6944
|
}
|
|
6945
6945
|
//#endregion
|
|
6946
6946
|
//#region src/components/AppResult.jsx
|
|
6947
|
-
var
|
|
6947
|
+
var ds = {
|
|
6948
6948
|
success: {
|
|
6949
6949
|
icon: "check-circle",
|
|
6950
6950
|
tone: "success"
|
|
@@ -6965,9 +6965,9 @@ var us = {
|
|
|
6965
6965
|
404: { tone: "muted" },
|
|
6966
6966
|
500: { tone: "muted" }
|
|
6967
6967
|
};
|
|
6968
|
-
function
|
|
6969
|
-
Y("AppResult", s), J("AppResult", "status", e, Object.keys(
|
|
6970
|
-
let c =
|
|
6968
|
+
function fs({ status: e = "info", title: t, subtitle: n, icon: r, actions: i, children: a, className: o = "", ...s }) {
|
|
6969
|
+
Y("AppResult", s), J("AppResult", "status", e, Object.keys(ds));
|
|
6970
|
+
let c = ds[e] || ds.info, l = c.tone, u = /^\d+$/.test(e), d = r ?? (u ? null : c.icon);
|
|
6971
6971
|
return /* @__PURE__ */ q("div", {
|
|
6972
6972
|
className: [
|
|
6973
6973
|
"result",
|
|
@@ -7005,13 +7005,13 @@ function ds({ status: e = "info", title: t, subtitle: n, icon: r, actions: i, ch
|
|
|
7005
7005
|
}
|
|
7006
7006
|
//#endregion
|
|
7007
7007
|
//#region src/components/AppRichText.jsx
|
|
7008
|
-
var
|
|
7009
|
-
Y("AppRichText", _), J("AppRichText", "format", n,
|
|
7008
|
+
var ps = ["html", "markdown"], ms = ["input", "change"], hs = "The editor couldn't load. Reload the page and try again.", gs = I(function({ value: e, onChange: t, format: n, placeholder: r, name: i, label: a, error: o, hint: s, required: c = !1, disabled: l = !1, readOnly: u = !1, id: d, ariaLabel: f, className: p = "", fieldClassName: m = "", help: h, helpLabel: g = "More information", ..._ }, v) {
|
|
7009
|
+
Y("AppRichText", _), J("AppRichText", "format", n, ps);
|
|
7010
7010
|
let y = z(), b = d || y, [x, S] = H(!1), { setRef: C } = $({
|
|
7011
7011
|
ref: v,
|
|
7012
7012
|
value: e,
|
|
7013
7013
|
onChange: t,
|
|
7014
|
-
events:
|
|
7014
|
+
events: ms
|
|
7015
7015
|
});
|
|
7016
7016
|
return R(() => {
|
|
7017
7017
|
let e = !0;
|
|
@@ -7038,10 +7038,11 @@ var fs = ["html", "markdown"], ps = ["input", "change"], ms = "The editor couldn
|
|
|
7038
7038
|
x ? /* @__PURE__ */ K("div", {
|
|
7039
7039
|
className: "field-error",
|
|
7040
7040
|
role: "status",
|
|
7041
|
-
children:
|
|
7041
|
+
children: hs
|
|
7042
7042
|
}) : /* @__PURE__ */ K("wui-rich-text", {
|
|
7043
7043
|
ref: C,
|
|
7044
7044
|
id: b,
|
|
7045
|
+
role: "group",
|
|
7045
7046
|
name: i,
|
|
7046
7047
|
format: n || void 0,
|
|
7047
7048
|
placeholder: r,
|
|
@@ -7068,7 +7069,7 @@ var fs = ["html", "markdown"], ps = ["input", "change"], ms = "The editor couldn
|
|
|
7068
7069
|
});
|
|
7069
7070
|
//#endregion
|
|
7070
7071
|
//#region src/components/AppScrollbar.jsx
|
|
7071
|
-
function
|
|
7072
|
+
function _s({ children: e, className: t = "", maxHeight: n, style: r, ...i }) {
|
|
7072
7073
|
return Y("AppScrollbar", i), /* @__PURE__ */ K("div", {
|
|
7073
7074
|
className: t ? `wui-scroll ${t}` : "wui-scroll",
|
|
7074
7075
|
style: n == null ? r : {
|
|
@@ -7081,36 +7082,36 @@ function gs({ children: e, className: t = "", maxHeight: n, style: r, ...i }) {
|
|
|
7081
7082
|
}
|
|
7082
7083
|
//#endregion
|
|
7083
7084
|
//#region src/lib/navMatch.js
|
|
7084
|
-
var
|
|
7085
|
-
function
|
|
7085
|
+
var vs = /^[a-z][a-z0-9+.-]*:/i;
|
|
7086
|
+
function ys(e) {
|
|
7086
7087
|
if (typeof e != "string" || e.trim() === "") return null;
|
|
7087
7088
|
let t = e.trim(), n = t.search(/[?#]/);
|
|
7088
|
-
if (n >= 0 && (t = t.slice(0, n)), t.startsWith("~/") && (t = t.slice(1)), t === "" || t.startsWith("//") ||
|
|
7089
|
+
if (n >= 0 && (t = t.slice(0, n)), t.startsWith("~/") && (t = t.slice(1)), t === "" || t.startsWith("//") || vs.test(t)) return null;
|
|
7089
7090
|
for (t[0] !== "/" && (t = `/${t}`); t.length > 1 && t.endsWith("/");) t = t.slice(0, -1);
|
|
7090
7091
|
return t;
|
|
7091
7092
|
}
|
|
7092
|
-
function
|
|
7093
|
+
function bs(e, t, n) {
|
|
7093
7094
|
return e.toLowerCase() === t.toLowerCase() ? !0 : n || t === "/" ? !1 : e.toLowerCase().startsWith(`${t.toLowerCase()}/`);
|
|
7094
7095
|
}
|
|
7095
|
-
function
|
|
7096
|
+
function xs(e, t) {
|
|
7096
7097
|
return e == null || t == null ? e : e.toLowerCase() === t.toLowerCase() ? "/" : e.toLowerCase().startsWith(`${t.toLowerCase()}/`) ? e.slice(t.length) : e;
|
|
7097
7098
|
}
|
|
7098
|
-
function
|
|
7099
|
-
let a =
|
|
7099
|
+
function Ss(e, t, { exact: n = !1, also: r, pathBase: i } = {}) {
|
|
7100
|
+
let a = ys(e);
|
|
7100
7101
|
if (a == null) return -1;
|
|
7101
|
-
let o =
|
|
7102
|
+
let o = ys(i);
|
|
7102
7103
|
o === "/" && (o = null);
|
|
7103
7104
|
let s = -1, c = (e, t) => {
|
|
7104
|
-
e != null &&
|
|
7105
|
+
e != null && bs(a, e, t) && (s = Math.max(s, e.length));
|
|
7105
7106
|
};
|
|
7106
|
-
c(
|
|
7107
|
-
for (let e of r ?? []) c(
|
|
7107
|
+
c(xs(ys(t), o), n);
|
|
7108
|
+
for (let e of r ?? []) c(xs(ys(e), o), !1);
|
|
7108
7109
|
return s;
|
|
7109
7110
|
}
|
|
7110
7111
|
//#endregion
|
|
7111
7112
|
//#region src/lib/shellCookie.js
|
|
7112
|
-
var
|
|
7113
|
-
function
|
|
7113
|
+
var Cs = "wui-shell-collapsed", ws = 31536e3;
|
|
7114
|
+
function Ts(e = Cs, t = document) {
|
|
7114
7115
|
for (let n of t.cookie.split(";")) {
|
|
7115
7116
|
let t = n.indexOf("=");
|
|
7116
7117
|
if (t < 0 || n.slice(0, t).trim() !== e) continue;
|
|
@@ -7119,18 +7120,18 @@ function ws(e = Ss, t = document) {
|
|
|
7119
7120
|
}
|
|
7120
7121
|
return null;
|
|
7121
7122
|
}
|
|
7122
|
-
function
|
|
7123
|
-
n.cookie = `${t}=${e ? "1" : "0"}; Path=/; Max-Age=${
|
|
7123
|
+
function Es(e, t = Cs, n = document) {
|
|
7124
|
+
n.cookie = `${t}=${e ? "1" : "0"}; Path=/; Max-Age=${ws}; SameSite=Lax`;
|
|
7124
7125
|
}
|
|
7125
7126
|
//#endregion
|
|
7126
7127
|
//#region src/components/AppShell.jsx
|
|
7127
|
-
var
|
|
7128
|
-
function
|
|
7128
|
+
var Ds = 99, Os = 4, ks = 5, As = ["prefix", "exact"], js = (e) => e > Ds ? `${Ds}+` : String(e);
|
|
7129
|
+
function Ms({ groups: e = [], brand: t, sidebarStart: n, sidebarStartCompact: r, sidebarFooter: i, topbarStart: a, topbarEnd: o, footer: s, children: c, collapsed: l, onCollapsedChange: u, noSidebar: d = !1, navLabel: f = "Main navigation", linkComponent: p, currentPath: m, rememberCollapsed: h = !1, collapsedCookie: g = "wui-shell-collapsed", tabBarLabel: _ = "Quick navigation", moreLabel: v = "More", userMenu: y, notifications: b, search: x, className: S = "", ...C }) {
|
|
7129
7130
|
Y("AppShell", C);
|
|
7130
|
-
let [w, T] = H(() => h && l === void 0 && typeof document < "u" ?
|
|
7131
|
+
let [w, T] = H(() => h && l === void 0 && typeof document < "u" ? Ts(g) ?? !1 : !1), [E, D] = H(!1), [O, k] = H(!1), A = l ?? w, j = () => {
|
|
7131
7132
|
let e = !A;
|
|
7132
|
-
l === void 0 && T(e), h &&
|
|
7133
|
-
}, M = ie(() =>
|
|
7133
|
+
l === void 0 && T(e), h && Es(e, g), u?.(e);
|
|
7134
|
+
}, M = ie(() => Ns(e, m), [e, m]), N = d ? null : Ps(M);
|
|
7134
7135
|
return R(() => {
|
|
7135
7136
|
let e = () => k(window.scrollY > 4);
|
|
7136
7137
|
return e(), window.addEventListener("scroll", e, { passive: !0 }), () => window.removeEventListener("scroll", e);
|
|
@@ -7173,7 +7174,7 @@ function js({ groups: e = [], brand: t, sidebarStart: n, sidebarStartCompact: r,
|
|
|
7173
7174
|
children: [e.label && /* @__PURE__ */ K("div", {
|
|
7174
7175
|
className: "app-nav-group-label",
|
|
7175
7176
|
children: e.label
|
|
7176
|
-
}), e.items.map((e) => /* @__PURE__ */ K(
|
|
7177
|
+
}), e.items.map((e) => /* @__PURE__ */ K(Is, {
|
|
7177
7178
|
item: e,
|
|
7178
7179
|
linkComponent: p,
|
|
7179
7180
|
onNavigate: () => D(!1)
|
|
@@ -7217,14 +7218,14 @@ function js({ groups: e = [], brand: t, sidebarStart: n, sidebarStartCompact: r,
|
|
|
7217
7218
|
})
|
|
7218
7219
|
}),
|
|
7219
7220
|
a,
|
|
7220
|
-
x && /* @__PURE__ */ K(
|
|
7221
|
+
x && /* @__PURE__ */ K(Vs, { config: x })
|
|
7221
7222
|
]
|
|
7222
7223
|
}), /* @__PURE__ */ q("div", {
|
|
7223
7224
|
className: "app-topbar-end",
|
|
7224
7225
|
children: [
|
|
7225
7226
|
o,
|
|
7226
|
-
b && /* @__PURE__ */ K(
|
|
7227
|
-
y && /* @__PURE__ */ K(
|
|
7227
|
+
b && /* @__PURE__ */ K(zs, { config: b }),
|
|
7228
|
+
y && /* @__PURE__ */ K(Rs, {
|
|
7228
7229
|
config: y,
|
|
7229
7230
|
linkComponent: p
|
|
7230
7231
|
})
|
|
@@ -7244,7 +7245,7 @@ function js({ groups: e = [], brand: t, sidebarStart: n, sidebarStartCompact: r,
|
|
|
7244
7245
|
N && /* @__PURE__ */ q("nav", {
|
|
7245
7246
|
className: "wui-tabbar",
|
|
7246
7247
|
"aria-label": _,
|
|
7247
|
-
children: [N.tabs.map((e) => /* @__PURE__ */ K(
|
|
7248
|
+
children: [N.tabs.map((e) => /* @__PURE__ */ K(Fs, {
|
|
7248
7249
|
tab: e,
|
|
7249
7250
|
linkComponent: p
|
|
7250
7251
|
}, e.key ?? e.href)), N.hasMore && /* @__PURE__ */ q("button", {
|
|
@@ -7273,7 +7274,7 @@ function js({ groups: e = [], brand: t, sidebarStart: n, sidebarStartCompact: r,
|
|
|
7273
7274
|
]
|
|
7274
7275
|
});
|
|
7275
7276
|
}
|
|
7276
|
-
function
|
|
7277
|
+
function Ns(e, t) {
|
|
7277
7278
|
let n = (e) => (e ?? []).map((e) => Array.isArray(e.children) ? {
|
|
7278
7279
|
...e,
|
|
7279
7280
|
children: n(e.children)
|
|
@@ -7284,13 +7285,13 @@ function Ms(e, t) {
|
|
|
7284
7285
|
for (let t of e) i.push(t), t.children && a(t.children);
|
|
7285
7286
|
};
|
|
7286
7287
|
for (let e of r) a(e.items);
|
|
7287
|
-
for (let e of i) J("AppShell", "match", e.match,
|
|
7288
|
+
for (let e of i) J("AppShell", "match", e.match, As);
|
|
7288
7289
|
let o = null;
|
|
7289
7290
|
if (t != null && !i.some((e) => e.active === !0)) {
|
|
7290
7291
|
let e = -1;
|
|
7291
7292
|
for (let n of i) {
|
|
7292
7293
|
if (n.active != null || n.children?.length) continue;
|
|
7293
|
-
let r =
|
|
7294
|
+
let r = Ss(t, n.href, {
|
|
7294
7295
|
exact: n.match === "exact",
|
|
7295
7296
|
also: n.matchAlso
|
|
7296
7297
|
});
|
|
@@ -7300,14 +7301,14 @@ function Ms(e, t) {
|
|
|
7300
7301
|
for (let e of i) e.active = e.active ?? e === o;
|
|
7301
7302
|
return r;
|
|
7302
7303
|
}
|
|
7303
|
-
function
|
|
7304
|
+
function Ps(e) {
|
|
7304
7305
|
let t = [], n = (e) => {
|
|
7305
7306
|
for (let r of e) r.children?.length ? n(r.children) : t.push(r);
|
|
7306
7307
|
};
|
|
7307
7308
|
for (let t of e) n(t.items);
|
|
7308
7309
|
let r = t.filter((e) => e.tab);
|
|
7309
7310
|
if (r.length === 0) return null;
|
|
7310
|
-
let i = r.length < t.length, a = i ?
|
|
7311
|
+
let i = r.length < t.length, a = i ? Os : ks;
|
|
7311
7312
|
if (r.length > a) throw Error(`<AppShell>: ${r.length} items carry tab: true, but the phone tab bar holds ${a} (${i ? "4 plus More, because other items exist" : "5 when every item is a tab"}). Flag fewer items.`);
|
|
7312
7313
|
return {
|
|
7313
7314
|
tabs: r,
|
|
@@ -7315,7 +7316,7 @@ function Ns(e) {
|
|
|
7315
7316
|
moreActive: t.some((e) => !e.tab && e.active)
|
|
7316
7317
|
};
|
|
7317
7318
|
}
|
|
7318
|
-
function
|
|
7319
|
+
function Fs({ tab: e, linkComponent: t }) {
|
|
7319
7320
|
let n = `wui-tabbar-item${e.active ? " active" : ""}`, r = /* @__PURE__ */ q(G, { children: [
|
|
7320
7321
|
e.icon && /* @__PURE__ */ K("span", {
|
|
7321
7322
|
className: "wui-tabbar-icon",
|
|
@@ -7345,7 +7346,7 @@ function Ps({ tab: e, linkComponent: t }) {
|
|
|
7345
7346
|
children: r
|
|
7346
7347
|
});
|
|
7347
7348
|
}
|
|
7348
|
-
function
|
|
7349
|
+
function Is({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
|
|
7349
7350
|
let i = Array.isArray(e.children) && e.children.length > 0, a = i && e.children.some((e) => e.active), [o, s] = H(a);
|
|
7350
7351
|
R(() => {
|
|
7351
7352
|
a && !o && s(!0);
|
|
@@ -7387,7 +7388,7 @@ function Fs({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
|
|
|
7387
7388
|
"aria-hidden": !o || void 0,
|
|
7388
7389
|
children: /* @__PURE__ */ K("div", {
|
|
7389
7390
|
className: "app-nav-sub-inner",
|
|
7390
|
-
children: e.children.map((e) => /* @__PURE__ */ K(
|
|
7391
|
+
children: e.children.map((e) => /* @__PURE__ */ K(Is, {
|
|
7391
7392
|
item: e,
|
|
7392
7393
|
linkComponent: t,
|
|
7393
7394
|
onNavigate: n,
|
|
@@ -7426,7 +7427,7 @@ function Fs({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
|
|
|
7426
7427
|
children: f
|
|
7427
7428
|
});
|
|
7428
7429
|
}
|
|
7429
|
-
function
|
|
7430
|
+
function Ls() {
|
|
7430
7431
|
let [e, t] = H(!1), n = V(null);
|
|
7431
7432
|
return R(() => {
|
|
7432
7433
|
if (!e) return;
|
|
@@ -7444,8 +7445,8 @@ function Is() {
|
|
|
7444
7445
|
ref: n
|
|
7445
7446
|
};
|
|
7446
7447
|
}
|
|
7447
|
-
function
|
|
7448
|
-
let n = z(), { open: r, setOpen: i, ref: a } =
|
|
7448
|
+
function Rs({ config: e, linkComponent: t }) {
|
|
7449
|
+
let n = z(), { open: r, setOpen: i, ref: a } = Ls(), { name: o, role: s, photo: c, profileHref: l, profileLabel: u = "My profile", onLogout: d, logoutAction: f, logoutLabel: p = "Sign out", items: m = [] } = e;
|
|
7449
7450
|
if (!o) throw Error("<AppShell> userMenu.name is required; the trigger and the avatar are named from it.");
|
|
7450
7451
|
let h = () => i(!1), g = (e, n, r, i) => t ? /* @__PURE__ */ K(t, {
|
|
7451
7452
|
className: "dropdown-item",
|
|
@@ -7556,10 +7557,10 @@ function Ls({ config: e, linkComponent: t }) {
|
|
|
7556
7557
|
})]
|
|
7557
7558
|
});
|
|
7558
7559
|
}
|
|
7559
|
-
function
|
|
7560
|
-
let t = z(), { open: n, setOpen: r, ref: i } =
|
|
7560
|
+
function zs({ config: e }) {
|
|
7561
|
+
let t = z(), { open: n, setOpen: r, ref: i } = Ls(), { unread: a = 0, items: o, loading: s = !1, onOpen: c, onMarkAllRead: l, viewAllHref: u, label: d = "Notifications", emptyText: f = "You are all caught up." } = e, [p, m] = H(""), h = V(a);
|
|
7561
7562
|
R(() => {
|
|
7562
|
-
h.current !== a && (h.current = a, m(a === 0 ? "No unread notifications" : `${
|
|
7563
|
+
h.current !== a && (h.current = a, m(a === 0 ? "No unread notifications" : `${js(a)} unread notifications`));
|
|
7563
7564
|
}, [a]);
|
|
7564
7565
|
let g = null;
|
|
7565
7566
|
return o?.length ? g = /* @__PURE__ */ K("div", {
|
|
@@ -7621,7 +7622,7 @@ function Rs({ config: e }) {
|
|
|
7621
7622
|
id: t,
|
|
7622
7623
|
className: "topbar-icon-btn wui-bell-trigger",
|
|
7623
7624
|
"aria-expanded": n,
|
|
7624
|
-
"aria-label": a === 0 ? d : `${d}, ${
|
|
7625
|
+
"aria-label": a === 0 ? d : `${d}, ${js(a)} unread`,
|
|
7625
7626
|
onClick: () => {
|
|
7626
7627
|
let e = !n;
|
|
7627
7628
|
r(e), e && c?.();
|
|
@@ -7633,7 +7634,7 @@ function Rs({ config: e }) {
|
|
|
7633
7634
|
className: "wui-bell-count",
|
|
7634
7635
|
"aria-hidden": "true",
|
|
7635
7636
|
hidden: a === 0,
|
|
7636
|
-
children:
|
|
7637
|
+
children: js(a)
|
|
7637
7638
|
})]
|
|
7638
7639
|
}),
|
|
7639
7640
|
/* @__PURE__ */ K("span", {
|
|
@@ -7673,8 +7674,8 @@ function Rs({ config: e }) {
|
|
|
7673
7674
|
]
|
|
7674
7675
|
});
|
|
7675
7676
|
}
|
|
7676
|
-
var
|
|
7677
|
-
function
|
|
7677
|
+
var Bs = (e) => !!e && (e.isContentEditable || /^(INPUT|TEXTAREA|SELECT)$/.test(e.tagName));
|
|
7678
|
+
function Vs({ config: e }) {
|
|
7678
7679
|
let t = z(), { value: n = "", onChange: r, results: i = null, loading: a = !1, onSelect: o, onSubmit: s, placeholder: c = "Search" } = e, [l, u] = H(!1), [d, f] = H(!1), [p, m] = H({
|
|
7679
7680
|
results: null,
|
|
7680
7681
|
index: -1
|
|
@@ -7684,7 +7685,7 @@ function Bs({ config: e }) {
|
|
|
7684
7685
|
}), _ = V(null), v = V(null), y = V([]), b = ie(() => (i ?? []).flatMap((e) => e.hits ?? []), [i]), x = i != null && !d, S = b.length;
|
|
7685
7686
|
R(() => {
|
|
7686
7687
|
let e = (e) => {
|
|
7687
|
-
e.key !== "/" || e.ctrlKey || e.metaKey || e.altKey ||
|
|
7688
|
+
e.key !== "/" || e.ctrlKey || e.metaKey || e.altKey || Bs(e.target) || (e.preventDefault(), u(!0), v.current?.focus());
|
|
7688
7689
|
}, t = (e) => {
|
|
7689
7690
|
_.current?.contains(e.target) || (f(!0), u(!1));
|
|
7690
7691
|
};
|
|
@@ -7817,7 +7818,7 @@ function Bs({ config: e }) {
|
|
|
7817
7818
|
}
|
|
7818
7819
|
//#endregion
|
|
7819
7820
|
//#region src/components/AppSidebarMenu.jsx
|
|
7820
|
-
var
|
|
7821
|
+
var Hs = {
|
|
7821
7822
|
left: "start",
|
|
7822
7823
|
right: "end",
|
|
7823
7824
|
start: "start",
|
|
@@ -7825,9 +7826,9 @@ var Vs = {
|
|
|
7825
7826
|
top: "top",
|
|
7826
7827
|
bottom: "bottom"
|
|
7827
7828
|
};
|
|
7828
|
-
function
|
|
7829
|
-
Y("AppSidebarMenu", y), J("AppSidebarMenu", "side", n, Object.keys(
|
|
7830
|
-
let { style: b, ...x } = y, S =
|
|
7829
|
+
function Us({ show: e, onHide: t, side: n = "right", title: r, titleIcon: i, header: a, children: o, footer: s, width: c, maxWidth: l, backdrop: u = !0, scroll: d = !1, keyboard: f = !0, closeButton: p = !0, closeLabel: m = "Close", responsive: h, className: g = "", bodyClassName: _ = "", ariaLabel: v, ...y }) {
|
|
7830
|
+
Y("AppSidebarMenu", y), J("AppSidebarMenu", "side", n, Object.keys(Hs));
|
|
7831
|
+
let { style: b, ...x } = y, S = Hs[n] || "end", C = c || l || b ? {
|
|
7831
7832
|
...c && { "--asm-width": c },
|
|
7832
7833
|
...l && { "--asm-max-width": l },
|
|
7833
7834
|
...b
|
|
@@ -7888,12 +7889,12 @@ function Hs({ show: e, onHide: t, side: n = "right", title: r, titleIcon: i, hea
|
|
|
7888
7889
|
}
|
|
7889
7890
|
//#endregion
|
|
7890
7891
|
//#region src/components/AppSlider.jsx
|
|
7891
|
-
var
|
|
7892
|
+
var Ws = [
|
|
7892
7893
|
"sm",
|
|
7893
7894
|
"md",
|
|
7894
7895
|
"lg"
|
|
7895
|
-
],
|
|
7896
|
-
Y("AppSlider", C), J("AppSlider", "size", g,
|
|
7896
|
+
], Gs = I(function({ value: e, start: t, end: n, range: r = !1, onChange: i, label: a, required: o = !1, hint: s, error: c, name: l, startName: u, endName: d, min: f = 0, max: p = 100, step: m = 1, disabled: h, size: g, showValue: _, unit: v, id: y, ariaLabel: b, className: x = "", fieldClassName: S = "", ...C }, w) {
|
|
7897
|
+
Y("AppSlider", C), J("AppSlider", "size", g, Ws);
|
|
7897
7898
|
let T = z(), E = y || T, D = r, { setRef: O, innerRef: k } = $({
|
|
7898
7899
|
ref: w,
|
|
7899
7900
|
value: D ? void 0 : e,
|
|
@@ -7953,12 +7954,12 @@ var Us = [
|
|
|
7953
7954
|
})
|
|
7954
7955
|
]
|
|
7955
7956
|
});
|
|
7956
|
-
}),
|
|
7957
|
+
}), Ks = ["vertical", "horizontal"], qs = (e, t) => {
|
|
7957
7958
|
e.controlled = !0;
|
|
7958
7959
|
let n = e.order;
|
|
7959
7960
|
(n.length !== t.length || t.some((e, t) => e !== n[t])) && (e.order = t);
|
|
7960
|
-
},
|
|
7961
|
-
Y("AppSortableList", l), J("AppSortableList", "orientation", s,
|
|
7961
|
+
}, Js = I(function({ items: e = [], onReorder: t, ariaLabel: n, handle: r = !1, group: i, name: a, disabled: o = !1, orientation: s = "vertical", className: c = "", ...l }, u) {
|
|
7962
|
+
Y("AppSortableList", l), J("AppSortableList", "orientation", s, Ks);
|
|
7962
7963
|
let d = e.map((e) => e.id), f = V(d);
|
|
7963
7964
|
R(() => {
|
|
7964
7965
|
f.current = d;
|
|
@@ -7966,10 +7967,10 @@ var Us = [
|
|
|
7966
7967
|
let { setRef: p, innerRef: m } = $({
|
|
7967
7968
|
ref: u,
|
|
7968
7969
|
value: d,
|
|
7969
|
-
writeValue:
|
|
7970
|
+
writeValue: qs,
|
|
7970
7971
|
on: { "wui-sortable:change": (e) => {
|
|
7971
7972
|
e.target === e.currentTarget && (t?.(e.detail.ids, e.detail), requestAnimationFrame(() => {
|
|
7972
|
-
m.current &&
|
|
7973
|
+
m.current && qs(m.current, f.current);
|
|
7973
7974
|
}));
|
|
7974
7975
|
} }
|
|
7975
7976
|
});
|
|
@@ -8005,18 +8006,18 @@ var Us = [
|
|
|
8005
8006
|
})]
|
|
8006
8007
|
}, e.id))
|
|
8007
8008
|
});
|
|
8008
|
-
}),
|
|
8009
|
+
}), Ys = [
|
|
8009
8010
|
"bar",
|
|
8010
8011
|
"ring",
|
|
8011
8012
|
"dots"
|
|
8012
|
-
],
|
|
8013
|
+
], Xs = {
|
|
8013
8014
|
sm: 44,
|
|
8014
8015
|
md: 56,
|
|
8015
8016
|
lg: 72
|
|
8016
8017
|
};
|
|
8017
|
-
function
|
|
8018
|
-
Y("AppSplash", c), J("AppSplash", "variant", i,
|
|
8019
|
-
let { style: l, ...u } = c, d = typeof a == "number" ? a :
|
|
8018
|
+
function Zs({ logo: e, initials: t, text: n, subtext: r, variant: i = "bar", size: a = "md", label: o = "Loading", className: s = "", ...c }) {
|
|
8019
|
+
Y("AppSplash", c), J("AppSplash", "variant", i, Ys), J("AppSplash", "size", typeof a == "string" ? a : null, Object.keys(Xs));
|
|
8020
|
+
let { style: l, ...u } = c, d = typeof a == "number" ? a : Xs[a] ?? Xs.md, f = i === "ring" ? /* @__PURE__ */ K("span", {
|
|
8020
8021
|
className: "splash-ring",
|
|
8021
8022
|
"aria-hidden": "true"
|
|
8022
8023
|
}) : i === "dots" ? /* @__PURE__ */ q("span", {
|
|
@@ -8063,7 +8064,7 @@ function Xs({ logo: e, initials: t, text: n, subtext: r, variant: i = "bar", siz
|
|
|
8063
8064
|
}
|
|
8064
8065
|
//#endregion
|
|
8065
8066
|
//#region src/components/AppStatusBadge.jsx
|
|
8066
|
-
var
|
|
8067
|
+
var Qs = [
|
|
8067
8068
|
"neutral",
|
|
8068
8069
|
"primary",
|
|
8069
8070
|
"success",
|
|
@@ -8071,8 +8072,8 @@ var Zs = [
|
|
|
8071
8072
|
"danger",
|
|
8072
8073
|
"info"
|
|
8073
8074
|
];
|
|
8074
|
-
function
|
|
8075
|
-
return Y("AppStatusBadge", a), J("AppStatusBadge", "tone", t,
|
|
8075
|
+
function $s({ label: e, tone: t = "neutral", className: n = "", tooltip: r, tooltipPlacement: i, ...a }) {
|
|
8076
|
+
return Y("AppStatusBadge", a), J("AppStatusBadge", "tone", t, Qs), e == null || e === "" ? "-" : X(/* @__PURE__ */ K("span", {
|
|
8076
8077
|
className: `status-label ${t}${n ? ` ${n}` : ""}`,
|
|
8077
8078
|
...a,
|
|
8078
8079
|
children: e
|
|
@@ -8080,15 +8081,15 @@ function Qs({ label: e, tone: t = "neutral", className: n = "", tooltip: r, tool
|
|
|
8080
8081
|
}
|
|
8081
8082
|
//#endregion
|
|
8082
8083
|
//#region src/components/AppStepper.jsx
|
|
8083
|
-
var
|
|
8084
|
+
var ec = ["steps", "journey"], tc = ["horizontal", "vertical"], nc = [
|
|
8084
8085
|
"done",
|
|
8085
8086
|
"active",
|
|
8086
8087
|
"pending",
|
|
8087
8088
|
"error"
|
|
8088
8089
|
];
|
|
8089
|
-
function
|
|
8090
|
-
Y("AppStepper", c), J("AppStepper", "variant", t,
|
|
8091
|
-
for (let t of e) J("AppStepper", "steps[].status", t.status,
|
|
8090
|
+
function rc({ steps: e = [], variant: t = "steps", orientation: n = "horizontal", activeStep: r, onStepClick: i, label: a = "Progress", linkComponent: o, className: s = "", ...c }) {
|
|
8091
|
+
Y("AppStepper", c), J("AppStepper", "variant", t, ec), J("AppStepper", "orientation", n, tc);
|
|
8092
|
+
for (let t of e) J("AppStepper", "steps[].status", t.status, nc);
|
|
8092
8093
|
let l = t === "journey";
|
|
8093
8094
|
return /* @__PURE__ */ K("nav", {
|
|
8094
8095
|
className: [
|
|
@@ -8100,7 +8101,7 @@ function nc({ steps: e = [], variant: t = "steps", orientation: n = "horizontal"
|
|
|
8100
8101
|
"aria-label": a,
|
|
8101
8102
|
...c,
|
|
8102
8103
|
children: e.map((t, n) => {
|
|
8103
|
-
let a = t.status ||
|
|
8104
|
+
let a = t.status || ic(n, r), s = `step${a === "pending" ? "" : ` ${a}`}`, c;
|
|
8104
8105
|
c = a === "done" ? /* @__PURE__ */ K(Z, {
|
|
8105
8106
|
name: "check",
|
|
8106
8107
|
size: 14
|
|
@@ -8164,17 +8165,17 @@ function nc({ steps: e = [], variant: t = "steps", orientation: n = "horizontal"
|
|
|
8164
8165
|
})
|
|
8165
8166
|
});
|
|
8166
8167
|
}
|
|
8167
|
-
function
|
|
8168
|
+
function ic(e, t) {
|
|
8168
8169
|
return typeof t == "number" ? e < t ? "done" : e === t ? "active" : "pending" : "pending";
|
|
8169
8170
|
}
|
|
8170
8171
|
//#endregion
|
|
8171
8172
|
//#region src/components/AppSwitch.jsx
|
|
8172
|
-
var
|
|
8173
|
+
var ac = [
|
|
8173
8174
|
"round",
|
|
8174
8175
|
"pill",
|
|
8175
8176
|
"circle"
|
|
8176
|
-
],
|
|
8177
|
-
return Y("AppSwitch", s), J("AppSwitch", "shape", a,
|
|
8177
|
+
], oc = I(function({ label: e, id: t, name: n, error: r, hint: i, shape: a = "round", className: o = "", ...s }, c) {
|
|
8178
|
+
return Y("AppSwitch", s), J("AppSwitch", "shape", a, ac), /* @__PURE__ */ K(Kn, {
|
|
8178
8179
|
ref: c,
|
|
8179
8180
|
label: e,
|
|
8180
8181
|
id: t,
|
|
@@ -8189,7 +8190,7 @@ var ic = [
|
|
|
8189
8190
|
});
|
|
8190
8191
|
//#endregion
|
|
8191
8192
|
//#region src/components/AppTableEmptyState.jsx
|
|
8192
|
-
function
|
|
8193
|
+
function sc({ icon: e, title: t, text: n, action: r, ...i }) {
|
|
8193
8194
|
return Y("AppTableEmptyState", i), /* @__PURE__ */ q("div", {
|
|
8194
8195
|
className: "tbl-empty",
|
|
8195
8196
|
...i,
|
|
@@ -8215,7 +8216,7 @@ function oc({ icon: e, title: t, text: n, action: r, ...i }) {
|
|
|
8215
8216
|
}
|
|
8216
8217
|
//#endregion
|
|
8217
8218
|
//#region src/components/AppTableToolbar.jsx
|
|
8218
|
-
function
|
|
8219
|
+
function cc({ filters: e, actions: t, selectedCount: n = 0, bulkActions: r, onClearSelection: i, className: a = "", ...o }) {
|
|
8219
8220
|
Y("AppTableToolbar", o);
|
|
8220
8221
|
let s = n > 0;
|
|
8221
8222
|
return /* @__PURE__ */ q("div", {
|
|
@@ -8253,19 +8254,19 @@ function sc({ filters: e, actions: t, selectedCount: n = 0, bulkActions: r, onCl
|
|
|
8253
8254
|
}
|
|
8254
8255
|
//#endregion
|
|
8255
8256
|
//#region src/components/AppTabs.jsx
|
|
8256
|
-
var
|
|
8257
|
+
var lc = ["underline", "pills"], uc = ["horizontal", "vertical"], dc = [
|
|
8257
8258
|
"sm",
|
|
8258
8259
|
"md",
|
|
8259
8260
|
"lg"
|
|
8260
|
-
],
|
|
8261
|
+
], fc = ["automatic", "manual"], pc = [
|
|
8261
8262
|
"success",
|
|
8262
8263
|
"warning",
|
|
8263
8264
|
"danger",
|
|
8264
8265
|
"info"
|
|
8265
|
-
],
|
|
8266
|
-
function
|
|
8267
|
-
Y("AppTabs", f), J("AppTabs", "variant", i,
|
|
8268
|
-
for (let t of e) J("AppTabs", "tabs[].tone", t.tone,
|
|
8266
|
+
], mc = 1, hc = 28, gc = .7;
|
|
8267
|
+
function _c({ tabs: e, value: t, onChange: n, linkComponent: r, variant: i = "underline", orientation: a = "horizontal", size: o = "md", fitted: s = !1, activation: c = "automatic", ariaLabel: l, className: u = "", style: d, ...f }) {
|
|
8268
|
+
Y("AppTabs", f), J("AppTabs", "variant", i, lc), J("AppTabs", "orientation", a, uc), J("AppTabs", "size", o, dc), J("AppTabs", "activation", c, fc);
|
|
8269
|
+
for (let t of e) J("AppTabs", "tabs[].tone", t.tone, pc);
|
|
8269
8270
|
let p = V(null), m = V(null), h = a === "vertical", [g, _] = H(t);
|
|
8270
8271
|
R(() => {
|
|
8271
8272
|
_(t);
|
|
@@ -8276,7 +8277,7 @@ function gc({ tabs: e, value: t, onChange: n, linkComponent: r, variant: i = "un
|
|
|
8276
8277
|
let e = p.current, t = m.current;
|
|
8277
8278
|
if (!e || !t || h) return;
|
|
8278
8279
|
let n = e.scrollWidth - e.clientWidth;
|
|
8279
|
-
t.classList.toggle("is-overflow-start", e.scrollLeft >
|
|
8280
|
+
t.classList.toggle("is-overflow-start", e.scrollLeft > mc), t.classList.toggle("is-overflow-end", n > mc && e.scrollLeft < n - mc);
|
|
8280
8281
|
}, [h]), w = L(() => {
|
|
8281
8282
|
let n = p.current;
|
|
8282
8283
|
if (!n) return;
|
|
@@ -8292,7 +8293,7 @@ function gc({ tabs: e, value: t, onChange: n, linkComponent: r, variant: i = "un
|
|
|
8292
8293
|
if (!e || h) return;
|
|
8293
8294
|
let t = e.querySelector(".app-tab.active");
|
|
8294
8295
|
if (!t) return;
|
|
8295
|
-
let n =
|
|
8296
|
+
let n = hc, r = t.offsetLeft, i = r + t.offsetWidth;
|
|
8296
8297
|
r - n < e.scrollLeft ? e.scrollLeft = Math.max(0, r - n) : i + n > e.scrollLeft + e.clientWidth && (e.scrollLeft = i + n - e.clientWidth);
|
|
8297
8298
|
}, [h]);
|
|
8298
8299
|
B(() => {
|
|
@@ -8327,7 +8328,7 @@ function gc({ tabs: e, value: t, onChange: n, linkComponent: r, variant: i = "un
|
|
|
8327
8328
|
}
|
|
8328
8329
|
let O = (e) => {
|
|
8329
8330
|
let t = p.current;
|
|
8330
|
-
t && t.scrollBy({ left: e * t.clientWidth *
|
|
8331
|
+
t && t.scrollBy({ left: e * t.clientWidth * gc });
|
|
8331
8332
|
}, k = [
|
|
8332
8333
|
"app-tabs",
|
|
8333
8334
|
i === "pills" ? "app-tabs-pills" : "",
|
|
@@ -8440,8 +8441,8 @@ function gc({ tabs: e, value: t, onChange: n, linkComponent: r, variant: i = "un
|
|
|
8440
8441
|
}
|
|
8441
8442
|
//#endregion
|
|
8442
8443
|
//#region src/components/AppTagInput.jsx
|
|
8443
|
-
var
|
|
8444
|
-
Y("AppTagInput", v), J("AppTagInput", "size", c,
|
|
8444
|
+
var vc = ["sm", "lg"], yc = I(function({ values: e, onChange: t, placeholder: n = "Add…", name: r, label: i, error: a, hint: o, required: s = !1, size: c, maxTags: l, allowDuplicates: u = !1, disabled: d = !1, id: f, ariaLabel: p, className: m = "", fieldClassName: h = "", help: g, helpLabel: _ = "More information", ...v }, y) {
|
|
8445
|
+
Y("AppTagInput", v), J("AppTagInput", "size", c, vc);
|
|
8445
8446
|
let b = z(), x = f || b, { setRef: S } = $({
|
|
8446
8447
|
ref: y,
|
|
8447
8448
|
value: e,
|
|
@@ -8491,7 +8492,7 @@ var _c = ["sm", "lg"], vc = I(function({ values: e, onChange: t, placeholder: n
|
|
|
8491
8492
|
}) : null
|
|
8492
8493
|
]
|
|
8493
8494
|
});
|
|
8494
|
-
}),
|
|
8495
|
+
}), bc = I(function({ label: e, required: t = !1, error: n, hint: r, help: i, helpLabel: a = "More information", id: o, name: s, rows: c = 4, autoGrow: l = !1, showCount: u = !1, maxLength: d, className: f = "", fieldClassName: p = "", ...m }, h) {
|
|
8495
8496
|
Y("AppTextarea", m);
|
|
8496
8497
|
let g = z(), _ = o || g, v = [
|
|
8497
8498
|
"textarea",
|
|
@@ -8562,18 +8563,18 @@ var _c = ["sm", "lg"], vc = I(function({ values: e, onChange: t, placeholder: n
|
|
|
8562
8563
|
})
|
|
8563
8564
|
]
|
|
8564
8565
|
});
|
|
8565
|
-
}),
|
|
8566
|
+
}), xc = {
|
|
8566
8567
|
light: "sun",
|
|
8567
8568
|
dark: "moon",
|
|
8568
8569
|
auto: "refresh-cw"
|
|
8569
|
-
},
|
|
8570
|
+
}, Sc = ["icon", "segmented"], Cc = {
|
|
8570
8571
|
sm: 16,
|
|
8571
8572
|
md: 20,
|
|
8572
8573
|
lg: 24,
|
|
8573
8574
|
xl: 28
|
|
8574
8575
|
};
|
|
8575
|
-
function
|
|
8576
|
-
Y("AppThemeToggle", b), J("AppThemeToggle", "variant", e,
|
|
8576
|
+
function wc({ variant: e = "icon", effect: t = r, includeAuto: n = !1, storageKey: a = i, duration: o, label: s = "Theme", lightLabel: c = "Light", darkLabel: l = "Dark", autoLabel: p = "System", name: h, size: g = "md", tooltipPlacement: _ = "auto", onChange: v, className: y = "", ...b }) {
|
|
8577
|
+
Y("AppThemeToggle", b), J("AppThemeToggle", "variant", e, Sc), J("AppThemeToggle", "effect", t, d), J("AppThemeToggle", "size", g, Object.keys(Cc));
|
|
8577
8578
|
let [x, S] = H(() => typeof window > "u" ? "light" : O(a, { includeAuto: n })), C = z(), w = h || C, E = L((e) => e === "auto" && !n ? k(e) : e, [n]);
|
|
8578
8579
|
R(() => {
|
|
8579
8580
|
let e = document.documentElement.getAttribute("data-theme");
|
|
@@ -8615,16 +8616,16 @@ function Cc({ variant: e = "icon", effect: t = r, includeAuto: n = !1, storageKe
|
|
|
8615
8616
|
let e = [{
|
|
8616
8617
|
value: "light",
|
|
8617
8618
|
label: c,
|
|
8618
|
-
icon:
|
|
8619
|
+
icon: xc.light
|
|
8619
8620
|
}, {
|
|
8620
8621
|
value: "dark",
|
|
8621
8622
|
label: l,
|
|
8622
|
-
icon:
|
|
8623
|
+
icon: xc.dark
|
|
8623
8624
|
}];
|
|
8624
8625
|
return n && e.push({
|
|
8625
8626
|
value: "auto",
|
|
8626
8627
|
label: p,
|
|
8627
|
-
icon:
|
|
8628
|
+
icon: xc.auto
|
|
8628
8629
|
}), /* @__PURE__ */ K(zn, {
|
|
8629
8630
|
options: e,
|
|
8630
8631
|
value: x,
|
|
@@ -8644,9 +8645,9 @@ function Cc({ variant: e = "icon", effect: t = r, includeAuto: n = !1, storageKe
|
|
|
8644
8645
|
});
|
|
8645
8646
|
}
|
|
8646
8647
|
return /* @__PURE__ */ K(ot, {
|
|
8647
|
-
icon:
|
|
8648
|
+
icon: xc[x],
|
|
8648
8649
|
label: `${s}: ${x}`,
|
|
8649
|
-
size:
|
|
8650
|
+
size: Cc[g] ?? Cc.md,
|
|
8650
8651
|
tooltipPlacement: _,
|
|
8651
8652
|
onClick: (e) => D(T(x, { includeAuto: n }), e.currentTarget, e.currentTarget),
|
|
8652
8653
|
className: ["wui-theme-toggle", y].filter(Boolean).join(" ")
|
|
@@ -8654,13 +8655,13 @@ function Cc({ variant: e = "icon", effect: t = r, includeAuto: n = !1, storageKe
|
|
|
8654
8655
|
}
|
|
8655
8656
|
//#endregion
|
|
8656
8657
|
//#region src/components/AppTimeline.jsx
|
|
8657
|
-
var
|
|
8658
|
+
var Tc = ["feed", "progress"], Ec = ["vertical", "horizontal"], Dc = [
|
|
8658
8659
|
"neutral",
|
|
8659
8660
|
"success",
|
|
8660
8661
|
"warning",
|
|
8661
8662
|
"danger",
|
|
8662
8663
|
"info"
|
|
8663
|
-
],
|
|
8664
|
+
], Oc = {
|
|
8664
8665
|
done: "check",
|
|
8665
8666
|
current: "clock",
|
|
8666
8667
|
"on-hold": "lock",
|
|
@@ -8669,9 +8670,9 @@ var wc = ["feed", "progress"], Tc = ["vertical", "horizontal"], Ec = [
|
|
|
8669
8670
|
skipped: "arrow-right",
|
|
8670
8671
|
upcoming: null
|
|
8671
8672
|
};
|
|
8672
|
-
function
|
|
8673
|
-
Y("AppTimeline", o), J("AppTimeline", "variant", t,
|
|
8674
|
-
for (let n of e) J("AppTimeline", "items[].tone", n.tone,
|
|
8673
|
+
function kc({ items: e = [], variant: t = "feed", orientation: n = "vertical", size: r, className: i = "", style: a, ...o }) {
|
|
8674
|
+
Y("AppTimeline", o), J("AppTimeline", "variant", t, Tc), J("AppTimeline", "orientation", n, Ec);
|
|
8675
|
+
for (let n of e) J("AppTimeline", "items[].tone", n.tone, Dc), t === "progress" && J("AppTimeline", "items[].status", n.status, Object.keys(Oc));
|
|
8675
8676
|
let s = t === "progress", c = `timeline${s ? " timeline--progress" : ""}${n === "horizontal" ? " timeline--horizontal" : ""}${i ? ` ${i}` : ""}`, l = typeof r == "number" && r > 0 ? r : void 0, u = l ? Math.round(l * .54) : s ? 13 : 12;
|
|
8676
8677
|
return /* @__PURE__ */ K("ol", {
|
|
8677
8678
|
className: c,
|
|
@@ -8681,7 +8682,7 @@ function Oc({ items: e = [], variant: t = "feed", orientation: n = "vertical", s
|
|
|
8681
8682
|
} : a,
|
|
8682
8683
|
...o,
|
|
8683
8684
|
children: e.map((e, t) => {
|
|
8684
|
-
let n = s ? e.status : void 0, r = n ? ` is-${n}` : "", i = e.tone && e.tone !== "neutral" ? ` ${e.tone}` : "", a = s ? e.icon ?? (n ?
|
|
8685
|
+
let n = s ? e.status : void 0, r = n ? ` is-${n}` : "", i = e.tone && e.tone !== "neutral" ? ` ${e.tone}` : "", a = s ? e.icon ?? (n ? Oc[n] : void 0) : e.icon || "circle";
|
|
8685
8686
|
return /* @__PURE__ */ q("li", {
|
|
8686
8687
|
className: `timeline-item${r}${i}`,
|
|
8687
8688
|
children: [/* @__PURE__ */ K("span", {
|
|
@@ -8751,12 +8752,12 @@ function Oc({ items: e = [], variant: t = "feed", orientation: n = "vertical", s
|
|
|
8751
8752
|
}
|
|
8752
8753
|
//#endregion
|
|
8753
8754
|
//#region src/components/AppTimePicker.jsx
|
|
8754
|
-
var
|
|
8755
|
+
var Ac = [
|
|
8755
8756
|
"sm",
|
|
8756
8757
|
"md",
|
|
8757
8758
|
"lg"
|
|
8758
|
-
],
|
|
8759
|
-
Y("AppTimePicker", b), J("AppTimePicker", "size", h,
|
|
8759
|
+
], jc = ["12", "24"], Mc = I(function({ value: e, onChange: t, label: n, required: r = !1, hint: i, error: a, help: o, helpLabel: s = "More information", name: c, min: l, max: u, step: d, format: f = "24", placeholder: p = "Select time", disabled: m, size: h, id: g, ariaLabel: _, className: v = "", fieldClassName: y = "", ...b }, x) {
|
|
8760
|
+
Y("AppTimePicker", b), J("AppTimePicker", "size", h, Ac), J("AppTimePicker", "format", f, jc);
|
|
8760
8761
|
let S = z(), C = g || c || S, { setRef: w } = $({
|
|
8761
8762
|
ref: x,
|
|
8762
8763
|
value: e ?? "",
|
|
@@ -8807,7 +8808,7 @@ var kc = [
|
|
|
8807
8808
|
})
|
|
8808
8809
|
]
|
|
8809
8810
|
});
|
|
8810
|
-
}),
|
|
8811
|
+
}), Nc = {
|
|
8811
8812
|
success: {
|
|
8812
8813
|
icon: "check-circle",
|
|
8813
8814
|
assertive: !1
|
|
@@ -8824,7 +8825,7 @@ var kc = [
|
|
|
8824
8825
|
icon: "alert-circle",
|
|
8825
8826
|
assertive: !0
|
|
8826
8827
|
}
|
|
8827
|
-
},
|
|
8828
|
+
}, Pc = {
|
|
8828
8829
|
"top-start": "top-0 start-0",
|
|
8829
8830
|
"top-center": "top-0 start-50 translate-middle-x",
|
|
8830
8831
|
"top-end": "top-0 end-0",
|
|
@@ -8832,21 +8833,21 @@ var kc = [
|
|
|
8832
8833
|
"bottom-start": "bottom-0 start-0",
|
|
8833
8834
|
"bottom-center": "bottom-0 start-50 translate-middle-x",
|
|
8834
8835
|
"bottom-end": "bottom-0 end-0"
|
|
8835
|
-
},
|
|
8836
|
+
}, Fc = 64, Ic = /* @__PURE__ */ new Set([
|
|
8836
8837
|
"rise",
|
|
8837
8838
|
"organic",
|
|
8838
8839
|
"jelly",
|
|
8839
8840
|
"spring"
|
|
8840
|
-
]),
|
|
8841
|
+
]), Lc = /* @__PURE__ */ new Set([
|
|
8841
8842
|
"rounded",
|
|
8842
8843
|
"pill",
|
|
8843
8844
|
"sharp"
|
|
8844
|
-
]),
|
|
8845
|
-
function
|
|
8846
|
-
Y("AppToast", o), J("AppToast", "position", e, Object.keys(
|
|
8845
|
+
]), Rc = /* @__PURE__ */ new Set(["auto", "inverse"]);
|
|
8846
|
+
function zc({ position: e = "bottom-end", maxVisible: t = 4, animation: n = "rise", shape: r = "rounded", surface: i = "auto", className: a = "", ...o }) {
|
|
8847
|
+
Y("AppToast", o), J("AppToast", "position", e, Object.keys(Pc)), J("AppToast", "animation", n, Ic), J("AppToast", "shape", r, Lc), J("AppToast", "surface", i, Rc);
|
|
8847
8848
|
let [s, c] = H([]);
|
|
8848
|
-
R(() =>
|
|
8849
|
-
let l = Math.max(0, s.length - t), u = l ? s.slice(l) : s, d =
|
|
8849
|
+
R(() => da(c), []);
|
|
8850
|
+
let l = Math.max(0, s.length - t), u = l ? s.slice(l) : s, d = Pc[e] ?? Pc["bottom-end"];
|
|
8850
8851
|
return /* @__PURE__ */ q("div", {
|
|
8851
8852
|
...o,
|
|
8852
8853
|
className: `wui-toast-container toast-container position-fixed ${d} p-3 ${a}`.trim(),
|
|
@@ -8858,7 +8859,7 @@ function Rc({ position: e = "bottom-end", maxVisible: t = 4, animation: n = "ris
|
|
|
8858
8859
|
l,
|
|
8859
8860
|
" more"
|
|
8860
8861
|
]
|
|
8861
|
-
}), u.map((e) => /* @__PURE__ */ K(
|
|
8862
|
+
}), u.map((e) => /* @__PURE__ */ K(Bc, {
|
|
8862
8863
|
toast: e,
|
|
8863
8864
|
defaultAnimation: n,
|
|
8864
8865
|
defaultShape: r,
|
|
@@ -8866,14 +8867,14 @@ function Rc({ position: e = "bottom-end", maxVisible: t = 4, animation: n = "ris
|
|
|
8866
8867
|
}, e.id))]
|
|
8867
8868
|
});
|
|
8868
8869
|
}
|
|
8869
|
-
function
|
|
8870
|
-
let i =
|
|
8870
|
+
function Bc({ toast: e, defaultAnimation: t = "rise", defaultShape: n = "rounded", defaultSurface: r = "auto" }) {
|
|
8871
|
+
let i = Nc[e.variant] ?? Nc.success, a = Ic.has(e.animation) ? e.animation : t, o = Lc.has(e.shape) ? e.shape : n, s = Rc.has(e.surface) ? e.surface : r, c = (a !== "rise" && Ic.has(a) ? ` wui-toast--anim-${a}` : "") + (o !== "rounded" && Lc.has(o) ? ` wui-toast--shape-${o}` : "") + (s === "inverse" ? " wui-toast--surface-inverse" : ""), l = e.duration === 0, [u, d] = H(0), [f, p] = H(!1), m = V(null), h = () => ma(e.id), g = V(null);
|
|
8871
8872
|
R(() => {
|
|
8872
8873
|
if (e.duration === 0) return;
|
|
8873
|
-
|
|
8874
|
+
pa(e.id);
|
|
8874
8875
|
let t = g.current, n = t == null ? "" : getComputedStyle(t).animationName;
|
|
8875
8876
|
if (t != null && (typeof t.getAnimations == "function" ? t.getAnimations().length > 0 : n !== "" && n !== "none")) return;
|
|
8876
|
-
let r = setTimeout(() =>
|
|
8877
|
+
let r = setTimeout(() => ma(e.id), e.duration);
|
|
8877
8878
|
return () => clearTimeout(r);
|
|
8878
8879
|
}, [e.id, e.duration]);
|
|
8879
8880
|
let _ = (e) => {
|
|
@@ -8885,7 +8886,7 @@ function zc({ toast: e, defaultAnimation: t = "rise", defaultShape: n = "rounded
|
|
|
8885
8886
|
}, b = (e) => {
|
|
8886
8887
|
if (m.current === null) return;
|
|
8887
8888
|
let t = e.clientX - m.current;
|
|
8888
|
-
if (Math.abs(t) >
|
|
8889
|
+
if (Math.abs(t) > Fc) {
|
|
8889
8890
|
h();
|
|
8890
8891
|
return;
|
|
8891
8892
|
}
|
|
@@ -8969,7 +8970,7 @@ function zc({ toast: e, defaultAnimation: t = "rise", defaultShape: n = "rounded
|
|
|
8969
8970
|
}
|
|
8970
8971
|
//#endregion
|
|
8971
8972
|
//#region src/components/AppToolbar.jsx
|
|
8972
|
-
function
|
|
8973
|
+
function Vc({ items: e = [], actions: t = [], value: n, defaultValue: r, onSelect: i, label: a, name: o, disabled: s = !1, className: c = "", ...l }) {
|
|
8973
8974
|
Y("AppToolbar", l);
|
|
8974
8975
|
let u = z(), d = o || u, [f, p] = H(r), m = n === void 0 ? f : n;
|
|
8975
8976
|
return /* @__PURE__ */ q("div", {
|
|
@@ -9027,12 +9028,12 @@ function Bc({ items: e = [], actions: t = [], value: n, defaultValue: r, onSelec
|
|
|
9027
9028
|
}
|
|
9028
9029
|
//#endregion
|
|
9029
9030
|
//#region src/components/AppTreeView.jsx
|
|
9030
|
-
var
|
|
9031
|
+
var Hc = [
|
|
9031
9032
|
"none",
|
|
9032
9033
|
"single",
|
|
9033
9034
|
"multiple"
|
|
9034
|
-
],
|
|
9035
|
-
Y("AppTreeView", h), J("AppTreeView", "selection", t,
|
|
9035
|
+
], Uc = I(function({ nodes: e, selection: t, selected: n, onSelect: r, checked: i, onCheck: a, loadChildren: o, loadUrl: s, onLoadError: c, name: l, loadingText: u, errorText: d, ariaLabel: f, id: p, className: m = "", ...h }, g) {
|
|
9036
|
+
Y("AppTreeView", h), J("AppTreeView", "selection", t, Hc);
|
|
9036
9037
|
let { setRef: _, innerRef: v } = $({
|
|
9037
9038
|
ref: g,
|
|
9038
9039
|
value: i,
|
|
@@ -9078,24 +9079,24 @@ var Vc = [
|
|
|
9078
9079
|
className: m || void 0,
|
|
9079
9080
|
...h
|
|
9080
9081
|
});
|
|
9081
|
-
}),
|
|
9082
|
+
}), Wc = [
|
|
9082
9083
|
"steps",
|
|
9083
9084
|
"journey",
|
|
9084
9085
|
"icons"
|
|
9085
|
-
],
|
|
9086
|
+
], Gc = [
|
|
9086
9087
|
"primary",
|
|
9087
9088
|
"success",
|
|
9088
9089
|
"warning",
|
|
9089
9090
|
"danger",
|
|
9090
9091
|
"info"
|
|
9091
|
-
],
|
|
9092
|
+
], Kc = ["horizontal", "vertical"], qc = [
|
|
9092
9093
|
"done",
|
|
9093
9094
|
"active",
|
|
9094
9095
|
"pending",
|
|
9095
9096
|
"error"
|
|
9096
|
-
],
|
|
9097
|
-
Y("AppWizard", S), J("AppWizard", "variant", l,
|
|
9098
|
-
for (let t of e) J("AppWizard", "steps[].status", t.status,
|
|
9097
|
+
], Jc = I(function({ steps: e = [], children: t, active: n, defaultActive: r = 0, onStepChange: i, onFinish: a, onSkip: o, beforeNext: s, onInvalid: c, variant: l = "steps", tone: u, orientation: d = "horizontal", skippable: f = !1, nonLinear: p = !1, hideStepper: m = !1, disabled: h = !1, label: g = "Progress", backLabel: _ = "Back", nextLabel: v = "Next", skipLabel: y = "Skip", finishLabel: b = "Finish", className: x = "", ...S }, C) {
|
|
9098
|
+
Y("AppWizard", S), J("AppWizard", "variant", l, Wc), J("AppWizard", "tone", u, Gc), J("AppWizard", "orientation", d, Kc);
|
|
9099
|
+
for (let t of e) J("AppWizard", "steps[].status", t.status, qc);
|
|
9099
9100
|
let w = V(null), T = (e) => {
|
|
9100
9101
|
w.current = e, typeof C == "function" ? C(e) : C && (C.current = e);
|
|
9101
9102
|
}, E = P.toArray(t), D = [u && `wui-step-tone-${u}`, x].filter(Boolean).join(" ");
|
|
@@ -9146,19 +9147,19 @@ var Vc = [
|
|
|
9146
9147
|
children: E[t]
|
|
9147
9148
|
}, e.key ?? `${e.label}-${t}`))
|
|
9148
9149
|
});
|
|
9149
|
-
}),
|
|
9150
|
+
}), Yc = [
|
|
9150
9151
|
"sm",
|
|
9151
9152
|
"md",
|
|
9152
9153
|
"lg"
|
|
9153
|
-
],
|
|
9154
|
+
], Xc = /* @__PURE__ */ new Set([
|
|
9154
9155
|
"ArrowUp",
|
|
9155
9156
|
"ArrowDown",
|
|
9156
9157
|
"ArrowLeft",
|
|
9157
9158
|
"ArrowRight"
|
|
9158
9159
|
]);
|
|
9159
|
-
function
|
|
9160
|
+
function Zc({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAction: i, linkComponent: a, searchable: o = !1, onCreate: s, canCreate: c = !1, createLabel: l = "Create workspace", compact: u = !1, size: d = "md", ariaLabel: f, ...p }) {
|
|
9160
9161
|
let { onToggle: m, ...h } = p;
|
|
9161
|
-
Y("AppWorkspaceSwitcher", h), J("AppWorkspaceSwitcher", "size", d,
|
|
9162
|
+
Y("AppWorkspaceSwitcher", h), J("AppWorkspaceSwitcher", "size", d, Yc);
|
|
9162
9163
|
let [g, _] = H(""), [v, y] = H(!1), b = V(null), x = (e, t) => {
|
|
9163
9164
|
y(e), m?.(e, t);
|
|
9164
9165
|
}, S = e.find((e) => e.id === t) ?? e[0], C = ie(() => {
|
|
@@ -9176,7 +9177,7 @@ function Xc({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
|
|
|
9176
9177
|
let e = b.current;
|
|
9177
9178
|
if (!e) return;
|
|
9178
9179
|
let t = (e) => {
|
|
9179
|
-
if (
|
|
9180
|
+
if (Xc.has(e.key)) {
|
|
9180
9181
|
e.stopPropagation();
|
|
9181
9182
|
return;
|
|
9182
9183
|
}
|
|
@@ -9194,7 +9195,7 @@ function Xc({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
|
|
|
9194
9195
|
onToggle: x,
|
|
9195
9196
|
...h,
|
|
9196
9197
|
children: [/* @__PURE__ */ K(U.Toggle, {
|
|
9197
|
-
as:
|
|
9198
|
+
as: tl,
|
|
9198
9199
|
compact: u,
|
|
9199
9200
|
tenant: S,
|
|
9200
9201
|
"aria-label": T
|
|
@@ -9229,7 +9230,7 @@ function Xc({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
|
|
|
9229
9230
|
className: `workspace-switcher-option${e.id === S?.id ? " is-active" : ""}`,
|
|
9230
9231
|
onClick: () => n?.(e),
|
|
9231
9232
|
children: [
|
|
9232
|
-
/* @__PURE__ */ K(
|
|
9233
|
+
/* @__PURE__ */ K($c, { tenant: e }),
|
|
9233
9234
|
/* @__PURE__ */ K("span", {
|
|
9234
9235
|
className: "workspace-switcher-option-name",
|
|
9235
9236
|
children: e.name
|
|
@@ -9261,17 +9262,17 @@ function Xc({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
|
|
|
9261
9262
|
}) : null,
|
|
9262
9263
|
i ? /* @__PURE__ */ K("div", {
|
|
9263
9264
|
className: "workspace-switcher-footer",
|
|
9264
|
-
children:
|
|
9265
|
+
children: el(i, a)
|
|
9265
9266
|
}) : null
|
|
9266
9267
|
]
|
|
9267
9268
|
})]
|
|
9268
9269
|
});
|
|
9269
9270
|
}
|
|
9270
|
-
function
|
|
9271
|
+
function Qc(e) {
|
|
9271
9272
|
let t = String(e ?? "").trim().split(/\s+/).filter(Boolean);
|
|
9272
9273
|
return t.length === 0 ? "" : (t[0][0] + (t.length > 1 ? t[t.length - 1][0] : "")).toUpperCase();
|
|
9273
9274
|
}
|
|
9274
|
-
function
|
|
9275
|
+
function $c({ tenant: e }) {
|
|
9275
9276
|
return e?.logoUrl ? /* @__PURE__ */ K("img", {
|
|
9276
9277
|
className: "workspace-switcher-mark",
|
|
9277
9278
|
src: e.logoUrl,
|
|
@@ -9279,10 +9280,10 @@ function Qc({ tenant: e }) {
|
|
|
9279
9280
|
loading: "lazy"
|
|
9280
9281
|
}) : /* @__PURE__ */ K("span", {
|
|
9281
9282
|
className: "workspace-switcher-mark",
|
|
9282
|
-
children:
|
|
9283
|
+
children: Qc(e?.name)
|
|
9283
9284
|
});
|
|
9284
9285
|
}
|
|
9285
|
-
function
|
|
9286
|
+
function el(e, t) {
|
|
9286
9287
|
if (typeof e != "object" || !e || !("label" in e)) return e;
|
|
9287
9288
|
let { label: n, icon: r, href: i } = e;
|
|
9288
9289
|
return /* @__PURE__ */ q(i ? t ?? "a" : "button", {
|
|
@@ -9294,7 +9295,7 @@ function $c(e, t) {
|
|
|
9294
9295
|
}) : null, n]
|
|
9295
9296
|
});
|
|
9296
9297
|
}
|
|
9297
|
-
var
|
|
9298
|
+
var tl = I(function({ compact: e, tenant: t, "aria-label": n, className: r, ...i }, a) {
|
|
9298
9299
|
return /* @__PURE__ */ q("button", {
|
|
9299
9300
|
ref: a,
|
|
9300
9301
|
type: "button",
|
|
@@ -9302,7 +9303,7 @@ var el = I(function({ compact: e, tenant: t, "aria-label": n, className: r, ...i
|
|
|
9302
9303
|
"aria-haspopup": "true",
|
|
9303
9304
|
"aria-label": n,
|
|
9304
9305
|
...i,
|
|
9305
|
-
children: [/* @__PURE__ */ K(
|
|
9306
|
+
children: [/* @__PURE__ */ K($c, { tenant: t }), e ? null : /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ K("span", {
|
|
9306
9307
|
className: "workspace-switcher-trigger-name",
|
|
9307
9308
|
children: t?.name
|
|
9308
9309
|
}), /* @__PURE__ */ K(Z, {
|
|
@@ -9314,7 +9315,7 @@ var el = I(function({ compact: e, tenant: t, "aria-label": n, className: r, ...i
|
|
|
9314
9315
|
});
|
|
9315
9316
|
//#endregion
|
|
9316
9317
|
//#region src/lib/useCommandPaletteShortcut.js
|
|
9317
|
-
function
|
|
9318
|
+
function nl(e, { key: t = "k" } = {}) {
|
|
9318
9319
|
let n = V(e);
|
|
9319
9320
|
R(() => {
|
|
9320
9321
|
n.current = e;
|
|
@@ -9327,13 +9328,13 @@ function tl(e, { key: t = "k" } = {}) {
|
|
|
9327
9328
|
}
|
|
9328
9329
|
//#endregion
|
|
9329
9330
|
//#region src/lib/useListQuery.js
|
|
9330
|
-
function
|
|
9331
|
+
function rl(e, t) {
|
|
9331
9332
|
let n = new URL(window.location.href);
|
|
9332
9333
|
for (let e of ki(t)) n.searchParams.delete(e);
|
|
9333
9334
|
for (let [t, r] of Ei(e)) n.searchParams.append(t, r);
|
|
9334
9335
|
window.history.replaceState(window.history.state, "", `${n.pathname}${n.search}${n.hash}`);
|
|
9335
9336
|
}
|
|
9336
|
-
function
|
|
9337
|
+
function il({ fetchPage: e, facets: t = [], defaults: n, debounceMs: r = 250 }) {
|
|
9337
9338
|
let [i, a] = H(() => ji(window.location.search, {
|
|
9338
9339
|
facets: t,
|
|
9339
9340
|
defaults: n
|
|
@@ -9342,7 +9343,7 @@ function rl({ fetchPage: e, facets: t = [], defaults: n, debounceMs: r = 250 })
|
|
|
9342
9343
|
p.current = e, m.current = t, h.current = n;
|
|
9343
9344
|
});
|
|
9344
9345
|
let _ = L((e, t = !1) => {
|
|
9345
|
-
g.current = t, f.current = e, a(e),
|
|
9346
|
+
g.current = t, f.current = e, a(e), rl(e, m.current);
|
|
9346
9347
|
}, []);
|
|
9347
9348
|
R(() => {
|
|
9348
9349
|
let e = () => {
|
|
@@ -9444,7 +9445,7 @@ function rl({ fetchPage: e, facets: t = [], defaults: n, debounceMs: r = 250 })
|
|
|
9444
9445
|
}
|
|
9445
9446
|
//#endregion
|
|
9446
9447
|
//#region src/lib/usePagination.js
|
|
9447
|
-
function
|
|
9448
|
+
function al(e, t = 10) {
|
|
9448
9449
|
let [n, r] = H(1), [i, a] = H(t), o = e.length, s = Math.max(1, Math.ceil(o / i));
|
|
9449
9450
|
R(() => {
|
|
9450
9451
|
n > s && r(s);
|
|
@@ -9471,10 +9472,10 @@ function il(e, t = 10) {
|
|
|
9471
9472
|
}
|
|
9472
9473
|
//#endregion
|
|
9473
9474
|
//#region src/lib/useTableView.js
|
|
9474
|
-
var
|
|
9475
|
-
function
|
|
9475
|
+
var ol = (e) => `wui-view:${e}`;
|
|
9476
|
+
function sl(e, t) {
|
|
9476
9477
|
try {
|
|
9477
|
-
let n = window.localStorage.getItem(
|
|
9478
|
+
let n = window.localStorage.getItem(ol(e));
|
|
9478
9479
|
if (!n) return t;
|
|
9479
9480
|
let r = JSON.parse(n);
|
|
9480
9481
|
return {
|
|
@@ -9485,14 +9486,14 @@ function ol(e, t) {
|
|
|
9485
9486
|
return t;
|
|
9486
9487
|
}
|
|
9487
9488
|
}
|
|
9488
|
-
function
|
|
9489
|
-
let [n, r] = H(() =>
|
|
9489
|
+
function cl(e, { sort: t } = {}) {
|
|
9490
|
+
let [n, r] = H(() => sl(e, {
|
|
9490
9491
|
hidden: [],
|
|
9491
9492
|
sort: t
|
|
9492
9493
|
}));
|
|
9493
9494
|
R(() => {
|
|
9494
9495
|
try {
|
|
9495
|
-
window.localStorage.setItem(
|
|
9496
|
+
window.localStorage.setItem(ol(e), JSON.stringify(n));
|
|
9496
9497
|
} catch {}
|
|
9497
9498
|
}, [e, n]);
|
|
9498
9499
|
let i = L((e) => r((t) => ({
|
|
@@ -9510,4 +9511,4 @@ function sl(e, { sort: t } = {}) {
|
|
|
9510
9511
|
};
|
|
9511
9512
|
}
|
|
9512
9513
|
//#endregion
|
|
9513
|
-
export { rt as AppAccordion, ot as AppActionIcon, ft as AppAlert, xt as AppAsyncBlock, Ft as AppAutocomplete, Wt as AppAvatar, Jt as AppAvatarGroup, Xt as AppBadge, Qt as AppBanner, nn as AppBarChart, rn as AppBreadcrumbs, gt as AppButton, un as AppCalendar, hn as AppCard, Nn as AppChart, Gn as AppChartCard, qn as AppCheckbox, Zn as AppChip, tr as AppChoiceCard, rr as AppChoiceChip, ar as AppColorField, or as AppColumnMenu, gr as AppCommandPalette, xr as AppCompareTable, Or as AppConfirmDialog, Ar as AppConsentBanner, jr as AppContextMenu, Nr as AppCopyButton, Fr as AppCountrySelect, Lr as AppDashboardCell, Rr as AppDashboardGrid, Zr as AppDataTable, $r as AppDatePicker, ti as AppDateRangePicker, ri as AppDescriptions, In as AppDropdown, vt as AppEmptyState, oi as AppErrorSummary, fi as AppFileAttachment, hi as AppFilePicker, yi as AppFileViewer,
|
|
9514
|
+
export { rt as AppAccordion, ot as AppActionIcon, ft as AppAlert, xt as AppAsyncBlock, Ft as AppAutocomplete, Wt as AppAvatar, Jt as AppAvatarGroup, Xt as AppBadge, Qt as AppBanner, nn as AppBarChart, rn as AppBreadcrumbs, gt as AppButton, un as AppCalendar, hn as AppCard, Nn as AppChart, Gn as AppChartCard, qn as AppCheckbox, Zn as AppChip, tr as AppChoiceCard, rr as AppChoiceChip, ar as AppColorField, or as AppColumnMenu, gr as AppCommandPalette, xr as AppCompareTable, Or as AppConfirmDialog, Ar as AppConsentBanner, jr as AppContextMenu, Nr as AppCopyButton, Fr as AppCountrySelect, Lr as AppDashboardCell, Rr as AppDashboardGrid, Zr as AppDataTable, $r as AppDatePicker, ti as AppDateRangePicker, ri as AppDescriptions, In as AppDropdown, vt as AppEmptyState, oi as AppErrorSummary, fi as AppFileAttachment, hi as AppFilePicker, yi as AppFileViewer, Wi as AppFilterBar, Ki as AppFloatingDock, Ji as AppFormActions, Xi as AppFormRow, ea as AppFormSection, Z as AppIcon, ta as AppInfoList, Tt as AppInfoTip, wr as AppInput, Ca as AppKanban, za as AppKpiTile, Ya as AppLineChart, $a as AppLink, oo as AppLogoPicker, po as AppMeter, mr as AppModal, Ni as AppMultiSelect, ho as AppNumberInput, _o as AppOtpInput, So as AppPageHeader, wo as AppPagination, Eo as AppPhoneNumberInput, Ct as AppPopover, Do as AppPricingCard, jo as AppProgress, os as AppQrCode, ss as AppRadio, cs as AppRadioGroup, ls as AppRepeater, Q as AppRequiredMark, us as AppResourceCard, fs as AppResult, gs as AppRichText, _s as AppScrollbar, Fi as AppSearch, zn as AppSegmented, Ri as AppSelect, Wr as AppSelectMini, Ms as AppShell, Us as AppSidebarMenu, zr as AppSkeleton, Br as AppSkeletonRows, Gs as AppSlider, Js as AppSortableList, ja as AppSparkline, bt as AppSpinner, Zs as AppSplash, $s as AppStatusBadge, rc as AppStepper, oc as AppSwitch, sc as AppTableEmptyState, qr as AppTablePagination, cc as AppTableToolbar, _c as AppTabs, yc as AppTagInput, bc as AppTextarea, wc as AppThemeToggle, Mc as AppTimePicker, kc as AppTimeline, zc as AppToast, Vc as AppToolbar, Pe as AppTooltip, Uc as AppTreeView, Jc as AppWizard, Zc as AppWorkspaceSwitcher, Er as MODAL_ICONS, Ei as buildListQuery, ga as dismissAll, ya as errorToast, et as iconNames, ji as parseListQuery, E as postedMasked, nt as registerIcons, va as toast, nl as useCommandPaletteShortcut, il as useListQuery, al as usePagination, cl as useTableView };
|