@webority/ui-react 0.17.4 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD-PARTY-NOTICES.txt +23 -0
- package/dist/types/components/AppErrorSummary.d.ts +25 -0
- package/dist/types/components/AppFormSection.d.ts +11 -1
- package/dist/types/components/AppQrCode.d.ts +28 -0
- package/dist/types/components/AppRadioGroup.d.ts +51 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/lib/focusField.d.ts +11 -0
- package/dist/types/lib/qrCode.d.ts +72 -0
- package/dist/ui-react.js +929 -193
- package/package.json +5 -4
package/dist/ui-react.js
CHANGED
|
@@ -3049,17 +3049,62 @@ function mn({ items: e = [], columns: t = 2, size: n = "md", bordered: r = !1, t
|
|
|
3049
3049
|
});
|
|
3050
3050
|
}
|
|
3051
3051
|
//#endregion
|
|
3052
|
+
//#region src/lib/focusField.js
|
|
3053
|
+
var hn = "input:not([type=\"hidden\"]):not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
3054
|
+
function gn(e) {
|
|
3055
|
+
if (!e) return !1;
|
|
3056
|
+
let t = [document.getElementById(e), ...document.getElementsByName(e)];
|
|
3057
|
+
for (let e of t) {
|
|
3058
|
+
if (!e) continue;
|
|
3059
|
+
let t = e.matches(hn) ? e : e.querySelector(hn);
|
|
3060
|
+
if (t) return t.scrollIntoView?.({ block: "center" }), t.focus({ preventScroll: !0 }), !0;
|
|
3061
|
+
}
|
|
3062
|
+
return !1;
|
|
3063
|
+
}
|
|
3064
|
+
//#endregion
|
|
3065
|
+
//#region src/components/AppErrorSummary.jsx
|
|
3066
|
+
function _n({ errors: e = [], title: t, autoFocus: n = !0, id: r, className: i = "", ...a }) {
|
|
3067
|
+
W("AppErrorSummary", a);
|
|
3068
|
+
let c = s(), l = r || c, u = d(null), f = d(0), p = e.length;
|
|
3069
|
+
return o(() => {
|
|
3070
|
+
n && p > 0 && f.current === 0 && u.current?.focus(), f.current = p;
|
|
3071
|
+
}, [p, n]), p ? /* @__PURE__ */ D("div", {
|
|
3072
|
+
ref: u,
|
|
3073
|
+
className: ["alert alert-danger wui-error-summary", i].filter(Boolean).join(" "),
|
|
3074
|
+
role: "alert",
|
|
3075
|
+
tabIndex: -1,
|
|
3076
|
+
"aria-labelledby": `${l}-title`,
|
|
3077
|
+
id: l,
|
|
3078
|
+
"data-autofocus": n ? "" : void 0,
|
|
3079
|
+
...a,
|
|
3080
|
+
children: [/* @__PURE__ */ E("h2", {
|
|
3081
|
+
className: "wui-error-summary-title",
|
|
3082
|
+
id: `${l}-title`,
|
|
3083
|
+
children: t ?? `Fix ${p} field${p > 1 ? "s" : ""} to continue`
|
|
3084
|
+
}), /* @__PURE__ */ E("ul", {
|
|
3085
|
+
className: "wui-error-summary-list",
|
|
3086
|
+
children: e.map((e) => /* @__PURE__ */ E("li", { children: /* @__PURE__ */ E("a", {
|
|
3087
|
+
href: `#${e.field}`,
|
|
3088
|
+
onClick: (t) => {
|
|
3089
|
+
t.preventDefault(), gn(e.field);
|
|
3090
|
+
},
|
|
3091
|
+
children: e.message
|
|
3092
|
+
}) }, `${e.field}:${e.message}`))
|
|
3093
|
+
})]
|
|
3094
|
+
}) : null;
|
|
3095
|
+
}
|
|
3096
|
+
//#endregion
|
|
3052
3097
|
//#region src/lib/fileItem.js
|
|
3053
|
-
function
|
|
3098
|
+
function vn(e) {
|
|
3054
3099
|
return e instanceof File ? `${e.name}:${e.size}` : e?.url || e?.name || "item";
|
|
3055
3100
|
}
|
|
3056
|
-
function
|
|
3101
|
+
function yn(e) {
|
|
3057
3102
|
return e instanceof File ? e.name : e?.name;
|
|
3058
3103
|
}
|
|
3059
|
-
function
|
|
3104
|
+
function bn(e) {
|
|
3060
3105
|
return e instanceof File ? `${(e.size / 1024).toFixed(0)} KB` : null;
|
|
3061
3106
|
}
|
|
3062
|
-
function
|
|
3107
|
+
function xn(e, t) {
|
|
3063
3108
|
let [n, r] = f(null);
|
|
3064
3109
|
return o(() => {
|
|
3065
3110
|
if (!t) {
|
|
@@ -3075,8 +3120,8 @@ function vn(e, t) {
|
|
|
3075
3120
|
}
|
|
3076
3121
|
//#endregion
|
|
3077
3122
|
//#region src/lib/FileItemRow.jsx
|
|
3078
|
-
function
|
|
3079
|
-
let i =
|
|
3123
|
+
function Sn({ item: e, isImage: t, onRemove: n, noun: r = "attachment" }) {
|
|
3124
|
+
let i = xn(e, t), a = yn(e), o = bn(e);
|
|
3080
3125
|
return /* @__PURE__ */ D("div", {
|
|
3081
3126
|
className: "attach-item",
|
|
3082
3127
|
children: [
|
|
@@ -3115,9 +3160,9 @@ function yn({ item: e, isImage: t, onRemove: n, noun: r = "attachment" }) {
|
|
|
3115
3160
|
}
|
|
3116
3161
|
//#endregion
|
|
3117
3162
|
//#region src/components/AppFileAttachment.jsx
|
|
3118
|
-
function
|
|
3163
|
+
function Cn({ label: e = "Attachment", value: t, name: n, onChange: r, multiple: i = !1, accept: a = k, maxSizeMb: o = A, optional: c = !1, validate: l = !0, error: u, id: d, ...p }) {
|
|
3119
3164
|
W("AppFileAttachment", p);
|
|
3120
|
-
let m = s(), h = d || m, [g, _] = f(""), v = i && Array.isArray(t) ? t : t ? [t] : [], y = F(a), b = (e) => e instanceof File ? P(e) : y || P(e), x = !i && v.length === 1 && b(v[0]), S =
|
|
3165
|
+
let m = s(), h = d || m, [g, _] = f(""), v = i && Array.isArray(t) ? t : t ? [t] : [], y = F(a), b = (e) => e instanceof File ? P(e) : y || P(e), x = !i && v.length === 1 && b(v[0]), S = wn(a, o);
|
|
3121
3166
|
function C(e) {
|
|
3122
3167
|
let n = Array.from(e.target.files || []);
|
|
3123
3168
|
if (e.target.value = "", !n.length) return;
|
|
@@ -3134,8 +3179,8 @@ function bn({ label: e = "Attachment", value: t, name: n, onChange: r, multiple:
|
|
|
3134
3179
|
s.push(e);
|
|
3135
3180
|
}
|
|
3136
3181
|
if (_(c), s.length) if (i) {
|
|
3137
|
-
let e = Array.isArray(t) ? t : t ? [t] : [], n = new Set(e.map(
|
|
3138
|
-
r(e.concat(s.filter((e) => !n.has(
|
|
3182
|
+
let e = Array.isArray(t) ? t : t ? [t] : [], n = new Set(e.map(vn));
|
|
3183
|
+
r(e.concat(s.filter((e) => !n.has(vn(e)))));
|
|
3139
3184
|
} else r(s[0]);
|
|
3140
3185
|
}
|
|
3141
3186
|
function w(e) {
|
|
@@ -3190,17 +3235,17 @@ function bn({ label: e = "Attachment", value: t, name: n, onChange: r, multiple:
|
|
|
3190
3235
|
onChange: C,
|
|
3191
3236
|
...p
|
|
3192
3237
|
})] }),
|
|
3193
|
-
x ? /* @__PURE__ */ E(
|
|
3238
|
+
x ? /* @__PURE__ */ E(Tn, {
|
|
3194
3239
|
item: v[0],
|
|
3195
3240
|
isImage: !0,
|
|
3196
3241
|
onRemove: () => w(0)
|
|
3197
3242
|
}) : v.length > 0 && /* @__PURE__ */ E("div", {
|
|
3198
3243
|
className: "attach-list",
|
|
3199
|
-
children: v.map((e, t) => /* @__PURE__ */ E(
|
|
3244
|
+
children: v.map((e, t) => /* @__PURE__ */ E(Sn, {
|
|
3200
3245
|
item: e,
|
|
3201
3246
|
isImage: b(e),
|
|
3202
3247
|
onRemove: () => w(t)
|
|
3203
|
-
},
|
|
3248
|
+
}, vn(e)))
|
|
3204
3249
|
}),
|
|
3205
3250
|
O && /* @__PURE__ */ E("div", {
|
|
3206
3251
|
className: "field-error",
|
|
@@ -3210,12 +3255,12 @@ function bn({ label: e = "Attachment", value: t, name: n, onChange: r, multiple:
|
|
|
3210
3255
|
]
|
|
3211
3256
|
});
|
|
3212
3257
|
}
|
|
3213
|
-
function
|
|
3258
|
+
function wn(e, t) {
|
|
3214
3259
|
let n = e?.trim() ? j(e) : "", r = t > 0 ? `up to ${t} MB` : "";
|
|
3215
3260
|
return n && r ? `${n}, ${r}` : r ? `Up to ${t} MB` : n;
|
|
3216
3261
|
}
|
|
3217
|
-
function
|
|
3218
|
-
let r =
|
|
3262
|
+
function Tn({ item: e, isImage: t, onRemove: n }) {
|
|
3263
|
+
let r = xn(e, t), i = yn(e), a = bn(e);
|
|
3219
3264
|
return /* @__PURE__ */ D("div", {
|
|
3220
3265
|
className: "attach-preview",
|
|
3221
3266
|
children: [/* @__PURE__ */ D("div", {
|
|
@@ -3247,7 +3292,7 @@ function Sn({ item: e, isImage: t, onRemove: n }) {
|
|
|
3247
3292
|
}
|
|
3248
3293
|
//#endregion
|
|
3249
3294
|
//#region src/components/AppFilePicker.jsx
|
|
3250
|
-
function
|
|
3295
|
+
function En({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, maxFiles: c, accept: l = ".jpg,.jpeg,.png", maxSizeMb: u = A, required: p, error: m, hint: h, loading: g = !1, className: _ = "", fieldClassName: v = "", style: y, ...b }) {
|
|
3251
3296
|
W("AppFilePicker", b);
|
|
3252
3297
|
let [x, S] = f(null), [C, w] = f(!1), [T, O] = f(""), k = d(null), M = s(), N = r || M;
|
|
3253
3298
|
o(() => {
|
|
@@ -3266,7 +3311,7 @@ function Cn({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, m
|
|
|
3266
3311
|
}, se = (e) => {
|
|
3267
3312
|
let n = Array.from(e || []);
|
|
3268
3313
|
if (!n.length) return;
|
|
3269
|
-
let r = Array.isArray(t) ? t : t ? [t] : [], a = new Set(r.map(
|
|
3314
|
+
let r = Array.isArray(t) ? t : t ? [t] : [], a = new Set(r.map(vn)), o = "", s = [];
|
|
3270
3315
|
for (let e of n) {
|
|
3271
3316
|
let t = L(e, {
|
|
3272
3317
|
accept: l,
|
|
@@ -3276,7 +3321,7 @@ function Cn({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, m
|
|
|
3276
3321
|
o ||= t;
|
|
3277
3322
|
continue;
|
|
3278
3323
|
}
|
|
3279
|
-
a.has(
|
|
3324
|
+
a.has(vn(e)) || (a.add(vn(e)), s.push(e));
|
|
3280
3325
|
}
|
|
3281
3326
|
let d = r.concat(s);
|
|
3282
3327
|
c && d.length > c && (d = d.slice(0, c), o ||= `Up to ${c} files.`), O(o), i(d);
|
|
@@ -3421,12 +3466,12 @@ function Cn({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, m
|
|
|
3421
3466
|
de,
|
|
3422
3467
|
a && I.length > 0 && /* @__PURE__ */ E("div", {
|
|
3423
3468
|
className: "attach-list",
|
|
3424
|
-
children: I.map((e, t) => /* @__PURE__ */ E(
|
|
3469
|
+
children: I.map((e, t) => /* @__PURE__ */ E(Sn, {
|
|
3425
3470
|
item: e,
|
|
3426
3471
|
isImage: e instanceof File ? P(e) : H || P(e),
|
|
3427
3472
|
noun: "file",
|
|
3428
3473
|
onRemove: () => le(t)
|
|
3429
|
-
},
|
|
3474
|
+
}, vn(e)))
|
|
3430
3475
|
})
|
|
3431
3476
|
]
|
|
3432
3477
|
}),
|
|
@@ -3444,7 +3489,7 @@ function Cn({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, m
|
|
|
3444
3489
|
}
|
|
3445
3490
|
//#endregion
|
|
3446
3491
|
//#region src/components/AppFloatingDock.jsx
|
|
3447
|
-
function
|
|
3492
|
+
function Dn({ items: e = [], linkComponent: t, ariaLabel: n = "Quick navigation", magnify: r = !0, maxScale: i, radius: a, className: o = "", ...s }) {
|
|
3448
3493
|
return W("AppFloatingDock", s), /* @__PURE__ */ E("wui-dock", {
|
|
3449
3494
|
role: "navigation",
|
|
3450
3495
|
"aria-label": n,
|
|
@@ -3486,7 +3531,7 @@ function wn({ items: e = [], linkComponent: t, ariaLabel: n = "Quick navigation"
|
|
|
3486
3531
|
}
|
|
3487
3532
|
//#endregion
|
|
3488
3533
|
//#region src/components/AppFormActions.jsx
|
|
3489
|
-
function
|
|
3534
|
+
function On({ children: e, sticky: t = !1, align: n = "end", className: r = "", ...i }) {
|
|
3490
3535
|
return W("AppFormActions", i), /* @__PURE__ */ E("div", {
|
|
3491
3536
|
className: [
|
|
3492
3537
|
"form-actions",
|
|
@@ -3500,7 +3545,7 @@ function Tn({ children: e, sticky: t = !1, align: n = "end", className: r = "",
|
|
|
3500
3545
|
}
|
|
3501
3546
|
//#endregion
|
|
3502
3547
|
//#region src/components/AppFormRow.jsx
|
|
3503
|
-
function
|
|
3548
|
+
function kn({ children: e, columns: t = 2, className: n = "", ...r }) {
|
|
3504
3549
|
W("AppFormRow", r);
|
|
3505
3550
|
let { style: i, ...a } = r;
|
|
3506
3551
|
return /* @__PURE__ */ E("div", {
|
|
@@ -3515,10 +3560,17 @@ function En({ children: e, columns: t = 2, className: n = "", ...r }) {
|
|
|
3515
3560
|
}
|
|
3516
3561
|
//#endregion
|
|
3517
3562
|
//#region src/components/AppFormSection.jsx
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3563
|
+
var An = ["stacked", "side"], jn = ["top", "start"], Mn = ["comfortable", "compact"];
|
|
3564
|
+
function Nn({ children: e, title: t, description: n, layout: r = "stacked", labels: i = "top", density: a = "comfortable", className: o = "", ...s }) {
|
|
3565
|
+
return W("AppFormSection", s), G("AppFormSection", "layout", r, An), G("AppFormSection", "labels", i, jn), G("AppFormSection", "density", a, Mn), /* @__PURE__ */ D("section", {
|
|
3566
|
+
className: [
|
|
3567
|
+
"form-section",
|
|
3568
|
+
r === "side" ? "wui-form-side" : "",
|
|
3569
|
+
i === "start" ? "wui-form-labels-start" : "",
|
|
3570
|
+
a === "compact" ? "wui-form-compact" : "",
|
|
3571
|
+
o
|
|
3572
|
+
].filter(Boolean).join(" "),
|
|
3573
|
+
...s,
|
|
3522
3574
|
children: [(t != null || n != null) && /* @__PURE__ */ D("div", {
|
|
3523
3575
|
className: "form-section-head",
|
|
3524
3576
|
children: [t != null && /* @__PURE__ */ E("h3", {
|
|
@@ -3536,7 +3588,7 @@ function Dn({ children: e, title: t, description: n, className: r = "", ...i })
|
|
|
3536
3588
|
}
|
|
3537
3589
|
//#endregion
|
|
3538
3590
|
//#region src/components/AppInfoList.jsx
|
|
3539
|
-
function
|
|
3591
|
+
function Pn({ items: e = [], className: t = "", ...n }) {
|
|
3540
3592
|
return W("AppInfoList", n), /* @__PURE__ */ E("div", {
|
|
3541
3593
|
className: `info-list${t ? ` ${t}` : ""}`,
|
|
3542
3594
|
...n,
|
|
@@ -3567,23 +3619,23 @@ function On({ items: e = [], className: t = "", ...n }) {
|
|
|
3567
3619
|
}
|
|
3568
3620
|
//#endregion
|
|
3569
3621
|
//#region src/components/AppKpiTile.jsx
|
|
3570
|
-
var
|
|
3571
|
-
function
|
|
3572
|
-
if (!e || e.length < 2) return `0,${
|
|
3573
|
-
let t = Math.min(...e), n = Math.max(...e) - t, r =
|
|
3574
|
-
return e.map((e, i) => `${i * r},${n === 0 ?
|
|
3622
|
+
var Fn = 48, In = 16;
|
|
3623
|
+
function Ln(e) {
|
|
3624
|
+
if (!e || e.length < 2) return `0,${In / 2} ${Fn},${In / 2}`;
|
|
3625
|
+
let t = Math.min(...e), n = Math.max(...e) - t, r = Fn / (e.length - 1);
|
|
3626
|
+
return e.map((e, i) => `${i * r},${n === 0 ? In / 2 : In - (e - t) / n * In}`).join(" ");
|
|
3575
3627
|
}
|
|
3576
|
-
function
|
|
3628
|
+
function Rn(e) {
|
|
3577
3629
|
if (typeof e != "string") return "flat";
|
|
3578
3630
|
let t = e.trim();
|
|
3579
3631
|
return t.startsWith("+") ? "up" : t.startsWith("-") || t.startsWith("−") ? "down" : "flat";
|
|
3580
3632
|
}
|
|
3581
|
-
function
|
|
3633
|
+
function zn({ label: e, value: t, caption: n, icon: r, iconTone: i, delta: a, deltaDirection: o, sparkline: s, variant: c = "plain", size: l = "md", valueSize: u, inline: d = !1, attention: f = !1, href: p, linkComponent: m, className: h = "", style: g, iconClassName: _ = "", labelClassName: v = "", valueClassName: y = "", captionClassName: b = "", deltaClassName: x = "", sparklineClassName: S = "", ...C }) {
|
|
3582
3634
|
W("AppKpiTile", C);
|
|
3583
3635
|
let w = `kpi${d ? " kpi-inline" : ""}${c === "filled" ? " kpi-filled" : c === "accent" ? " kpi-accent" : c === "spotlight" ? " kpi-spotlight" : ""}${l === "lg" ? " kpi-lg" : l === "sm" ? " kpi-sm" : ""}${f ? " kpi-attention" : ""}${h ? ` ${h}` : ""}`, T = typeof u == "number" && u > 0 ? {
|
|
3584
3636
|
...g,
|
|
3585
3637
|
"--wui-kpi-value-size": `${u}px`
|
|
3586
|
-
} : g, O = o ??
|
|
3638
|
+
} : g, O = o ?? Rn(a), k = O === "up" ? "arrow-up" : O === "down" ? "arrow-down" : null, A = {};
|
|
3587
3639
|
return p != null && (A = m ? {
|
|
3588
3640
|
as: m,
|
|
3589
3641
|
to: p
|
|
@@ -3621,12 +3673,12 @@ function Nn({ label: e, value: t, caption: n, icon: r, iconTone: i, delta: a, de
|
|
|
3621
3673
|
}),
|
|
3622
3674
|
s && s.length > 0 && /* @__PURE__ */ E("svg", {
|
|
3623
3675
|
className: `kpi-sparkline${S ? ` ${S}` : ""}`,
|
|
3624
|
-
width:
|
|
3625
|
-
height:
|
|
3626
|
-
viewBox: `0 0 ${
|
|
3676
|
+
width: Fn,
|
|
3677
|
+
height: In,
|
|
3678
|
+
viewBox: `0 0 ${Fn} ${In}`,
|
|
3627
3679
|
"aria-hidden": "true",
|
|
3628
3680
|
children: /* @__PURE__ */ E("polyline", {
|
|
3629
|
-
points:
|
|
3681
|
+
points: Ln(s),
|
|
3630
3682
|
stroke: "currentColor",
|
|
3631
3683
|
fill: "none"
|
|
3632
3684
|
})
|
|
@@ -3636,11 +3688,11 @@ function Nn({ label: e, value: t, caption: n, icon: r, iconTone: i, delta: a, de
|
|
|
3636
3688
|
}
|
|
3637
3689
|
//#endregion
|
|
3638
3690
|
//#region src/components/AppLink.jsx
|
|
3639
|
-
var
|
|
3691
|
+
var Bn = {
|
|
3640
3692
|
sm: 13,
|
|
3641
3693
|
md: 15,
|
|
3642
3694
|
lg: 18
|
|
3643
|
-
},
|
|
3695
|
+
}, Vn = [
|
|
3644
3696
|
"underline",
|
|
3645
3697
|
"underline-center",
|
|
3646
3698
|
"static",
|
|
@@ -3654,35 +3706,35 @@ var Pn = {
|
|
|
3654
3706
|
"shine",
|
|
3655
3707
|
"none"
|
|
3656
3708
|
];
|
|
3657
|
-
function
|
|
3709
|
+
function Hn(e, t, n) {
|
|
3658
3710
|
if (!e) return null;
|
|
3659
3711
|
let r = `wui-link__ic wui-link__ic--${t}`;
|
|
3660
3712
|
return typeof e == "string" ? /* @__PURE__ */ E("span", {
|
|
3661
3713
|
className: r,
|
|
3662
3714
|
children: /* @__PURE__ */ E(Y, {
|
|
3663
3715
|
name: e,
|
|
3664
|
-
size:
|
|
3716
|
+
size: Bn[n] ?? Bn.md
|
|
3665
3717
|
})
|
|
3666
3718
|
}) : /* @__PURE__ */ E("span", {
|
|
3667
3719
|
className: r,
|
|
3668
3720
|
children: e
|
|
3669
3721
|
});
|
|
3670
3722
|
}
|
|
3671
|
-
function
|
|
3672
|
-
W("AppLink", d), G("AppLink", "animation", r,
|
|
3673
|
-
let f =
|
|
3723
|
+
function Un({ 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 }) {
|
|
3724
|
+
W("AppLink", d), G("AppLink", "animation", r, Vn), G("AppLink", "size", o, Object.keys(Bn));
|
|
3725
|
+
let f = Vn.includes(r) ? r : "underline", p = f === "icon" && !a && !i ? "arrow-right" : a, m = [
|
|
3674
3726
|
"wui-link",
|
|
3675
3727
|
`wui-link--${f}`,
|
|
3676
3728
|
o === "md" ? "" : `wui-link--${o}`,
|
|
3677
3729
|
c ? "is-disabled" : "",
|
|
3678
3730
|
u
|
|
3679
3731
|
].filter(Boolean).join(" "), h = /* @__PURE__ */ D(T, { children: [
|
|
3680
|
-
|
|
3732
|
+
Hn(i, "left", o),
|
|
3681
3733
|
/* @__PURE__ */ E("span", {
|
|
3682
3734
|
className: "wui-link__label",
|
|
3683
3735
|
children: e ?? t
|
|
3684
3736
|
}),
|
|
3685
|
-
|
|
3737
|
+
Hn(p, "right", o)
|
|
3686
3738
|
] });
|
|
3687
3739
|
return c ? /* @__PURE__ */ E("span", {
|
|
3688
3740
|
className: m,
|
|
@@ -3705,13 +3757,13 @@ function Ln({ children: e, label: t, href: n, animation: r = "underline", leftIc
|
|
|
3705
3757
|
}
|
|
3706
3758
|
//#endregion
|
|
3707
3759
|
//#region src/components/AppLogoPicker.jsx
|
|
3708
|
-
var
|
|
3760
|
+
var Wn = {
|
|
3709
3761
|
sm: 72,
|
|
3710
3762
|
md: 120,
|
|
3711
3763
|
lg: 160
|
|
3712
3764
|
};
|
|
3713
|
-
function
|
|
3714
|
-
W("AppLogoPicker", k), G("AppLogoPicker", "size", typeof w == "string" ? w : null, Object.keys(
|
|
3765
|
+
function Gn({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a = !1, disabled: c = !1, accept: l = "image/png,image/jpeg,image/webp", maxSizeMb: u = A, overlayIcon: p = "image", overlayLabel: m = "Update photo", ariaLabel: h = "Upload photo", label: g, hint: _, error: v, layout: y = "stacked", title: b, subtitle: x, required: S = !1, variant: C = "initials", size: w = "md", shape: T = "circle", className: O = "", ...k }) {
|
|
3766
|
+
W("AppLogoPicker", k), G("AppLogoPicker", "size", typeof w == "string" ? w : null, Object.keys(Wn));
|
|
3715
3767
|
let j = d(null), M = s(), [N, P] = f(null), [F, I] = f(""), [R, z] = f(!1), [B, V] = f(!1);
|
|
3716
3768
|
o(() => () => N && URL.revokeObjectURL(N), [N]), o(() => {
|
|
3717
3769
|
P(null), z(!1);
|
|
@@ -3737,7 +3789,7 @@ function zn({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
|
|
|
3737
3789
|
t && ae(t);
|
|
3738
3790
|
}, K = () => {
|
|
3739
3791
|
P(null), I(""), z(!1), j.current && (j.current.value = ""), i?.();
|
|
3740
|
-
}, ce = typeof w == "number" ? w :
|
|
3792
|
+
}, ce = typeof w == "number" ? w : Wn[w] ?? Wn.md, le = Math.max(14, Math.round(ce * .18)), ue = Math.round(ce * .5), de = [
|
|
3741
3793
|
"set-uploader",
|
|
3742
3794
|
C === "avatar" ? "set-uploader--avatar" : "",
|
|
3743
3795
|
T === "rounded" ? "set-uploader--rounded" : T === "square" ? "set-uploader--square" : "",
|
|
@@ -3867,27 +3919,27 @@ function zn({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
|
|
|
3867
3919
|
}
|
|
3868
3920
|
//#endregion
|
|
3869
3921
|
//#region src/components/AppMeter.jsx
|
|
3870
|
-
var
|
|
3922
|
+
var Kn = [
|
|
3871
3923
|
"info",
|
|
3872
3924
|
"success",
|
|
3873
3925
|
"warning",
|
|
3874
3926
|
"danger",
|
|
3875
3927
|
"neutral"
|
|
3876
3928
|
];
|
|
3877
|
-
function
|
|
3929
|
+
function qn(e, t, n) {
|
|
3878
3930
|
let r = n - t;
|
|
3879
3931
|
if (!(r > 0)) return 0;
|
|
3880
3932
|
let i = Math.min(100, Math.max(0, (e - t) / r * 100));
|
|
3881
3933
|
return Number(i.toFixed(2));
|
|
3882
3934
|
}
|
|
3883
|
-
function
|
|
3935
|
+
function Jn(e, t, n, r, i) {
|
|
3884
3936
|
if (t == null && n == null) return i;
|
|
3885
3937
|
let a = "mid";
|
|
3886
3938
|
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";
|
|
3887
3939
|
}
|
|
3888
|
-
function
|
|
3940
|
+
function Yn({ 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 }) {
|
|
3889
3941
|
W("AppMeter", d);
|
|
3890
|
-
let f =
|
|
3942
|
+
let f = Jn(e, a, o, i, Kn.includes(r) ? r : "info"), p = qn(e, t, n);
|
|
3891
3943
|
return /* @__PURE__ */ E("div", {
|
|
3892
3944
|
className: `progress${s === "sm" ? " progress-sm" : ""}${u ? ` ${u}` : ""}`,
|
|
3893
3945
|
role: "meter",
|
|
@@ -3905,7 +3957,7 @@ function Un({ value: e = 0, min: t = 0, max: n = 100, tone: r = "info", optimum:
|
|
|
3905
3957
|
}
|
|
3906
3958
|
//#endregion
|
|
3907
3959
|
//#region src/components/AppMultiSelect.jsx
|
|
3908
|
-
var
|
|
3960
|
+
var Xn = i(function({ values: e, onChange: t, options: n, placeholder: r = "Select…", searchPlaceholder: i = "Search…", searchable: a = !0, disabled: c = !1, icon: l, size: u, collapseChips: d = !1, allowCustom: f = !1, validateCustom: p, customPattern: m, customInvalidMessage: h, name: g, id: _, label: v, error: y, hint: b, required: x = !1, help: S, helpLabel: C = "More information", fieldClassName: w = "", ...T }, O) {
|
|
3909
3961
|
W("AppMultiSelect", T);
|
|
3910
3962
|
let k = s(), A = _ || k, { setRef: j, innerRef: M } = Q({
|
|
3911
3963
|
ref: O,
|
|
@@ -3968,7 +4020,7 @@ var Wn = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
|
|
|
3968
4020
|
}) : null
|
|
3969
4021
|
]
|
|
3970
4022
|
});
|
|
3971
|
-
}),
|
|
4023
|
+
}), Zn = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, helpLabel: a = "More information", value: c, onChange: l, min: u, max: d, step: p = 1, precision: m = 0, unit: h, size: g = "md", id: _, name: v, className: b = "", fieldClassName: x = "", disabled: S = !1, ...C }, w) {
|
|
3972
4024
|
W("AppNumberInput", C);
|
|
3973
4025
|
let T = s(), O = _ || T, k = (e) => {
|
|
3974
4026
|
if (m === 0) return Math.round(e);
|
|
@@ -4091,7 +4143,7 @@ var Wn = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
|
|
|
4091
4143
|
}) : null
|
|
4092
4144
|
]
|
|
4093
4145
|
});
|
|
4094
|
-
}),
|
|
4146
|
+
}), Qn = i(function({ value: e, onChange: t, onComplete: n, length: r = 6, mode: i = "numeric", label: a, required: o = !1, hint: c, error: l, disabled: u = !1, name: d, id: f, className: p = "", fieldClassName: m = "", ...h }, g) {
|
|
4095
4147
|
W("AppOtpInput", h);
|
|
4096
4148
|
let _ = s(), v = f || _, y = l ? `${v}-error` : void 0, b = c ? `${v}-hint` : void 0, x = y || b, { setRef: S } = Q({
|
|
4097
4149
|
ref: g,
|
|
@@ -4136,7 +4188,7 @@ var Wn = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
|
|
|
4136
4188
|
});
|
|
4137
4189
|
//#endregion
|
|
4138
4190
|
//#region src/components/AppPageHeader.jsx
|
|
4139
|
-
function
|
|
4191
|
+
function $n({ title: e, subtitle: t, eyebrow: n, icon: r, tone: i = "primary", status: a, breadcrumbs: o, actions: s, size: c = "md", align: l = "start", divider: u = !1, sticky: d = !1, className: f = "", ...p }) {
|
|
4140
4192
|
W("AppPageHeader", p);
|
|
4141
4193
|
let m = [
|
|
4142
4194
|
"page-header",
|
|
@@ -4195,7 +4247,7 @@ function qn({ title: e, subtitle: t, eyebrow: n, icon: r, tone: i = "primary", s
|
|
|
4195
4247
|
}
|
|
4196
4248
|
//#endregion
|
|
4197
4249
|
//#region src/components/AppPagination.jsx
|
|
4198
|
-
function
|
|
4250
|
+
function er({ page: e, totalPages: t, onChange: n, siblings: r = 1, size: i = "md", ariaLabel: a = "Pagination", className: o, ...s }) {
|
|
4199
4251
|
if (W("AppPagination", s), t <= 1) return null;
|
|
4200
4252
|
let c = rn(e, t, { siblingCount: r });
|
|
4201
4253
|
return /* @__PURE__ */ E("nav", {
|
|
@@ -4255,7 +4307,7 @@ function Jn({ page: e, totalPages: t, onChange: n, siblings: r = 1, size: i = "m
|
|
|
4255
4307
|
}
|
|
4256
4308
|
//#endregion
|
|
4257
4309
|
//#region src/components/AppPhoneNumberInput.jsx
|
|
4258
|
-
var
|
|
4310
|
+
var tr = i(function({ value: e, onChange: t, country: n, disabled: r = !1, name: i, id: a, label: o = "Phone number", placeholder: c, required: l = !1, error: u, showFlag: d = !0, showDialCode: f = !0, size: p = "md", fieldClassName: m = "", ...h }, g) {
|
|
4259
4311
|
W("AppPhoneNumberInput", h);
|
|
4260
4312
|
let _ = s(), v = a || _, y = u && v ? `${v}-error` : void 0, { setRef: b } = Q({
|
|
4261
4313
|
ref: g,
|
|
@@ -4296,7 +4348,7 @@ var Yn = i(function({ value: e, onChange: t, country: n, disabled: r = !1, name:
|
|
|
4296
4348
|
});
|
|
4297
4349
|
//#endregion
|
|
4298
4350
|
//#region src/components/AppPricingCard.jsx
|
|
4299
|
-
function
|
|
4351
|
+
function nr({ 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 }) {
|
|
4300
4352
|
return W("AppPricingCard", u), /* @__PURE__ */ D("div", {
|
|
4301
4353
|
className: [
|
|
4302
4354
|
"plan-card",
|
|
@@ -4350,21 +4402,21 @@ function Xn({ name: e, price: t, unit: n, tagline: r, features: i = [], cta: a,
|
|
|
4350
4402
|
}
|
|
4351
4403
|
//#endregion
|
|
4352
4404
|
//#region src/components/AppProgress.jsx
|
|
4353
|
-
var
|
|
4405
|
+
var rr = [
|
|
4354
4406
|
"info",
|
|
4355
4407
|
"success",
|
|
4356
4408
|
"warning",
|
|
4357
4409
|
"danger",
|
|
4358
4410
|
"neutral"
|
|
4359
4411
|
];
|
|
4360
|
-
function
|
|
4412
|
+
function ir(e, t) {
|
|
4361
4413
|
if (!(t > 0)) return 0;
|
|
4362
4414
|
let n = Math.min(100, Math.max(0, e / t * 100));
|
|
4363
4415
|
return Number(n.toFixed(2));
|
|
4364
4416
|
}
|
|
4365
|
-
function
|
|
4417
|
+
function ar({ 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 }) {
|
|
4366
4418
|
W("AppProgress", u);
|
|
4367
|
-
let d =
|
|
4419
|
+
let d = rr.includes(n) ? n : "info", f = ir(e, t), p = `progress${r === "sm" ? " progress-sm" : ""}${l ? ` ${l}` : ""}`, m = [
|
|
4368
4420
|
"progress-bar",
|
|
4369
4421
|
`wui-progress-${d}`,
|
|
4370
4422
|
o || s ? "progress-bar-striped" : "",
|
|
@@ -4387,8 +4439,619 @@ function $n({ value: e = 0, max: t = 100, tone: n = "info", size: r = "md", labe
|
|
|
4387
4439
|
});
|
|
4388
4440
|
}
|
|
4389
4441
|
//#endregion
|
|
4442
|
+
//#region src/lib/qrCode.js
|
|
4443
|
+
var or = {
|
|
4444
|
+
L: 0,
|
|
4445
|
+
M: 1,
|
|
4446
|
+
Q: 2,
|
|
4447
|
+
H: 3
|
|
4448
|
+
}, sr = [
|
|
4449
|
+
1,
|
|
4450
|
+
0,
|
|
4451
|
+
3,
|
|
4452
|
+
2
|
|
4453
|
+
], cr = [
|
|
4454
|
+
"L",
|
|
4455
|
+
"M",
|
|
4456
|
+
"Q",
|
|
4457
|
+
"H"
|
|
4458
|
+
], lr = 3, ur = 3, dr = 40, fr = 10, pr = [
|
|
4459
|
+
[
|
|
4460
|
+
-1,
|
|
4461
|
+
7,
|
|
4462
|
+
10,
|
|
4463
|
+
15,
|
|
4464
|
+
20,
|
|
4465
|
+
26,
|
|
4466
|
+
18,
|
|
4467
|
+
20,
|
|
4468
|
+
24,
|
|
4469
|
+
30,
|
|
4470
|
+
18,
|
|
4471
|
+
20,
|
|
4472
|
+
24,
|
|
4473
|
+
26,
|
|
4474
|
+
30,
|
|
4475
|
+
22,
|
|
4476
|
+
24,
|
|
4477
|
+
28,
|
|
4478
|
+
30,
|
|
4479
|
+
28,
|
|
4480
|
+
28,
|
|
4481
|
+
28,
|
|
4482
|
+
28,
|
|
4483
|
+
30,
|
|
4484
|
+
30,
|
|
4485
|
+
26,
|
|
4486
|
+
28,
|
|
4487
|
+
30,
|
|
4488
|
+
30,
|
|
4489
|
+
30,
|
|
4490
|
+
30,
|
|
4491
|
+
30,
|
|
4492
|
+
30,
|
|
4493
|
+
30,
|
|
4494
|
+
30,
|
|
4495
|
+
30,
|
|
4496
|
+
30,
|
|
4497
|
+
30,
|
|
4498
|
+
30,
|
|
4499
|
+
30,
|
|
4500
|
+
30
|
|
4501
|
+
],
|
|
4502
|
+
[
|
|
4503
|
+
-1,
|
|
4504
|
+
10,
|
|
4505
|
+
16,
|
|
4506
|
+
26,
|
|
4507
|
+
18,
|
|
4508
|
+
24,
|
|
4509
|
+
16,
|
|
4510
|
+
18,
|
|
4511
|
+
22,
|
|
4512
|
+
22,
|
|
4513
|
+
26,
|
|
4514
|
+
30,
|
|
4515
|
+
22,
|
|
4516
|
+
22,
|
|
4517
|
+
24,
|
|
4518
|
+
24,
|
|
4519
|
+
28,
|
|
4520
|
+
28,
|
|
4521
|
+
26,
|
|
4522
|
+
26,
|
|
4523
|
+
26,
|
|
4524
|
+
26,
|
|
4525
|
+
28,
|
|
4526
|
+
28,
|
|
4527
|
+
28,
|
|
4528
|
+
28,
|
|
4529
|
+
28,
|
|
4530
|
+
28,
|
|
4531
|
+
28,
|
|
4532
|
+
28,
|
|
4533
|
+
28,
|
|
4534
|
+
28,
|
|
4535
|
+
28,
|
|
4536
|
+
28,
|
|
4537
|
+
28,
|
|
4538
|
+
28,
|
|
4539
|
+
28,
|
|
4540
|
+
28,
|
|
4541
|
+
28,
|
|
4542
|
+
28,
|
|
4543
|
+
28
|
|
4544
|
+
],
|
|
4545
|
+
[
|
|
4546
|
+
-1,
|
|
4547
|
+
13,
|
|
4548
|
+
22,
|
|
4549
|
+
18,
|
|
4550
|
+
26,
|
|
4551
|
+
18,
|
|
4552
|
+
24,
|
|
4553
|
+
18,
|
|
4554
|
+
22,
|
|
4555
|
+
20,
|
|
4556
|
+
24,
|
|
4557
|
+
28,
|
|
4558
|
+
26,
|
|
4559
|
+
24,
|
|
4560
|
+
20,
|
|
4561
|
+
30,
|
|
4562
|
+
24,
|
|
4563
|
+
28,
|
|
4564
|
+
28,
|
|
4565
|
+
26,
|
|
4566
|
+
30,
|
|
4567
|
+
28,
|
|
4568
|
+
30,
|
|
4569
|
+
30,
|
|
4570
|
+
30,
|
|
4571
|
+
30,
|
|
4572
|
+
28,
|
|
4573
|
+
30,
|
|
4574
|
+
30,
|
|
4575
|
+
30,
|
|
4576
|
+
30,
|
|
4577
|
+
30,
|
|
4578
|
+
30,
|
|
4579
|
+
30,
|
|
4580
|
+
30,
|
|
4581
|
+
30,
|
|
4582
|
+
30,
|
|
4583
|
+
30,
|
|
4584
|
+
30,
|
|
4585
|
+
30,
|
|
4586
|
+
30
|
|
4587
|
+
],
|
|
4588
|
+
[
|
|
4589
|
+
-1,
|
|
4590
|
+
17,
|
|
4591
|
+
28,
|
|
4592
|
+
22,
|
|
4593
|
+
16,
|
|
4594
|
+
22,
|
|
4595
|
+
28,
|
|
4596
|
+
26,
|
|
4597
|
+
26,
|
|
4598
|
+
24,
|
|
4599
|
+
28,
|
|
4600
|
+
24,
|
|
4601
|
+
28,
|
|
4602
|
+
22,
|
|
4603
|
+
24,
|
|
4604
|
+
24,
|
|
4605
|
+
30,
|
|
4606
|
+
28,
|
|
4607
|
+
28,
|
|
4608
|
+
26,
|
|
4609
|
+
28,
|
|
4610
|
+
30,
|
|
4611
|
+
24,
|
|
4612
|
+
30,
|
|
4613
|
+
30,
|
|
4614
|
+
30,
|
|
4615
|
+
30,
|
|
4616
|
+
30,
|
|
4617
|
+
30,
|
|
4618
|
+
30,
|
|
4619
|
+
30,
|
|
4620
|
+
30,
|
|
4621
|
+
30,
|
|
4622
|
+
30,
|
|
4623
|
+
30,
|
|
4624
|
+
30,
|
|
4625
|
+
30,
|
|
4626
|
+
30,
|
|
4627
|
+
30,
|
|
4628
|
+
30,
|
|
4629
|
+
30
|
|
4630
|
+
]
|
|
4631
|
+
], mr = [
|
|
4632
|
+
[
|
|
4633
|
+
-1,
|
|
4634
|
+
1,
|
|
4635
|
+
1,
|
|
4636
|
+
1,
|
|
4637
|
+
1,
|
|
4638
|
+
1,
|
|
4639
|
+
2,
|
|
4640
|
+
2,
|
|
4641
|
+
2,
|
|
4642
|
+
2,
|
|
4643
|
+
4,
|
|
4644
|
+
4,
|
|
4645
|
+
4,
|
|
4646
|
+
4,
|
|
4647
|
+
4,
|
|
4648
|
+
6,
|
|
4649
|
+
6,
|
|
4650
|
+
6,
|
|
4651
|
+
6,
|
|
4652
|
+
7,
|
|
4653
|
+
8,
|
|
4654
|
+
8,
|
|
4655
|
+
9,
|
|
4656
|
+
9,
|
|
4657
|
+
10,
|
|
4658
|
+
12,
|
|
4659
|
+
12,
|
|
4660
|
+
12,
|
|
4661
|
+
13,
|
|
4662
|
+
14,
|
|
4663
|
+
15,
|
|
4664
|
+
16,
|
|
4665
|
+
17,
|
|
4666
|
+
18,
|
|
4667
|
+
19,
|
|
4668
|
+
19,
|
|
4669
|
+
20,
|
|
4670
|
+
21,
|
|
4671
|
+
22,
|
|
4672
|
+
24,
|
|
4673
|
+
25
|
|
4674
|
+
],
|
|
4675
|
+
[
|
|
4676
|
+
-1,
|
|
4677
|
+
1,
|
|
4678
|
+
1,
|
|
4679
|
+
1,
|
|
4680
|
+
2,
|
|
4681
|
+
2,
|
|
4682
|
+
4,
|
|
4683
|
+
4,
|
|
4684
|
+
4,
|
|
4685
|
+
5,
|
|
4686
|
+
5,
|
|
4687
|
+
5,
|
|
4688
|
+
8,
|
|
4689
|
+
9,
|
|
4690
|
+
9,
|
|
4691
|
+
10,
|
|
4692
|
+
10,
|
|
4693
|
+
11,
|
|
4694
|
+
13,
|
|
4695
|
+
14,
|
|
4696
|
+
16,
|
|
4697
|
+
17,
|
|
4698
|
+
17,
|
|
4699
|
+
18,
|
|
4700
|
+
20,
|
|
4701
|
+
21,
|
|
4702
|
+
23,
|
|
4703
|
+
25,
|
|
4704
|
+
26,
|
|
4705
|
+
28,
|
|
4706
|
+
29,
|
|
4707
|
+
31,
|
|
4708
|
+
33,
|
|
4709
|
+
35,
|
|
4710
|
+
37,
|
|
4711
|
+
38,
|
|
4712
|
+
40,
|
|
4713
|
+
43,
|
|
4714
|
+
45,
|
|
4715
|
+
47,
|
|
4716
|
+
49
|
|
4717
|
+
],
|
|
4718
|
+
[
|
|
4719
|
+
-1,
|
|
4720
|
+
1,
|
|
4721
|
+
1,
|
|
4722
|
+
2,
|
|
4723
|
+
2,
|
|
4724
|
+
4,
|
|
4725
|
+
4,
|
|
4726
|
+
6,
|
|
4727
|
+
6,
|
|
4728
|
+
8,
|
|
4729
|
+
8,
|
|
4730
|
+
8,
|
|
4731
|
+
10,
|
|
4732
|
+
12,
|
|
4733
|
+
16,
|
|
4734
|
+
12,
|
|
4735
|
+
17,
|
|
4736
|
+
16,
|
|
4737
|
+
18,
|
|
4738
|
+
21,
|
|
4739
|
+
20,
|
|
4740
|
+
23,
|
|
4741
|
+
23,
|
|
4742
|
+
25,
|
|
4743
|
+
27,
|
|
4744
|
+
29,
|
|
4745
|
+
34,
|
|
4746
|
+
34,
|
|
4747
|
+
35,
|
|
4748
|
+
38,
|
|
4749
|
+
40,
|
|
4750
|
+
43,
|
|
4751
|
+
45,
|
|
4752
|
+
48,
|
|
4753
|
+
51,
|
|
4754
|
+
53,
|
|
4755
|
+
56,
|
|
4756
|
+
59,
|
|
4757
|
+
62,
|
|
4758
|
+
65,
|
|
4759
|
+
68
|
|
4760
|
+
],
|
|
4761
|
+
[
|
|
4762
|
+
-1,
|
|
4763
|
+
1,
|
|
4764
|
+
1,
|
|
4765
|
+
2,
|
|
4766
|
+
4,
|
|
4767
|
+
4,
|
|
4768
|
+
4,
|
|
4769
|
+
5,
|
|
4770
|
+
6,
|
|
4771
|
+
8,
|
|
4772
|
+
8,
|
|
4773
|
+
11,
|
|
4774
|
+
11,
|
|
4775
|
+
16,
|
|
4776
|
+
16,
|
|
4777
|
+
18,
|
|
4778
|
+
16,
|
|
4779
|
+
19,
|
|
4780
|
+
21,
|
|
4781
|
+
25,
|
|
4782
|
+
25,
|
|
4783
|
+
25,
|
|
4784
|
+
34,
|
|
4785
|
+
30,
|
|
4786
|
+
32,
|
|
4787
|
+
35,
|
|
4788
|
+
37,
|
|
4789
|
+
40,
|
|
4790
|
+
42,
|
|
4791
|
+
45,
|
|
4792
|
+
48,
|
|
4793
|
+
51,
|
|
4794
|
+
54,
|
|
4795
|
+
57,
|
|
4796
|
+
60,
|
|
4797
|
+
63,
|
|
4798
|
+
66,
|
|
4799
|
+
70,
|
|
4800
|
+
74,
|
|
4801
|
+
77,
|
|
4802
|
+
81
|
|
4803
|
+
]
|
|
4804
|
+
];
|
|
4805
|
+
function hr(e, t = "M", { mask: n = -1, boostEcc: r = !0 } = {}) {
|
|
4806
|
+
if (!Object.hasOwn(or, t)) throw RangeError(`Unknown error correction level "${t}"`);
|
|
4807
|
+
if (!Number.isInteger(n) || n < -1 || n > 7) throw RangeError("Mask must be -1 to 7");
|
|
4808
|
+
let i = new TextEncoder().encode(String(e)), a = or[t], o = 1, s = 0;
|
|
4809
|
+
for (; s = _r(i.length, o), !(s <= Er(o, a) * 8); o++) if (o >= 40) throw RangeError(`Data too long for a QR code: ${i.length} bytes`);
|
|
4810
|
+
for (let e = 1; e <= 3; e++) r && s <= Er(o, e) * 8 && (a = Math.max(a, e));
|
|
4811
|
+
let c = [];
|
|
4812
|
+
jr(4, 4, c), jr(i.length, o <= 9 ? 8 : 16, c);
|
|
4813
|
+
for (let e of i) jr(e, 8, c);
|
|
4814
|
+
let l = Er(o, a) * 8;
|
|
4815
|
+
jr(0, Math.min(4, l - c.length), c), jr(0, (8 - c.length % 8) % 8, c);
|
|
4816
|
+
for (let e = 236; c.length < l; e ^= 253) jr(e, 8, c);
|
|
4817
|
+
let u = new Uint8Array(c.length / 8);
|
|
4818
|
+
return c.forEach((e, t) => {
|
|
4819
|
+
u[t >>> 3] |= e << 7 - (t & 7);
|
|
4820
|
+
}), vr(o, a, u, n);
|
|
4821
|
+
}
|
|
4822
|
+
function gr(e, t = 4) {
|
|
4823
|
+
let { size: n } = e, r = "";
|
|
4824
|
+
for (let i = 0; i < n; i++) {
|
|
4825
|
+
let a = 0;
|
|
4826
|
+
for (; a < n;) {
|
|
4827
|
+
if (!e.isDark(i, a)) {
|
|
4828
|
+
a++;
|
|
4829
|
+
continue;
|
|
4830
|
+
}
|
|
4831
|
+
let o = a;
|
|
4832
|
+
for (; a < n && e.isDark(i, a);) a++;
|
|
4833
|
+
let s = a - o;
|
|
4834
|
+
r += `M${o + t} ${i + t}h${s}v1h-${s}z`;
|
|
4835
|
+
}
|
|
4836
|
+
}
|
|
4837
|
+
return r;
|
|
4838
|
+
}
|
|
4839
|
+
function _r(e, t) {
|
|
4840
|
+
let n = t <= 9 ? 8 : 16;
|
|
4841
|
+
return e >= 1 << n ? Infinity : 4 + n + e * 8;
|
|
4842
|
+
}
|
|
4843
|
+
function vr(e, t, n, r) {
|
|
4844
|
+
let i = e * 4 + 17, a = new Uint8Array(i * i), o = new Uint8Array(i * i), s = (e, t, n) => {
|
|
4845
|
+
a[t * i + e] = +!!n, o[t * i + e] = 1;
|
|
4846
|
+
}, c = (e) => {
|
|
4847
|
+
let n = sr[t] << 3 | e, r = n;
|
|
4848
|
+
for (let e = 0; e < 10; e++) r = r << 1 ^ (r >>> 9) * 1335;
|
|
4849
|
+
let a = (n << 10 | r) ^ 21522;
|
|
4850
|
+
for (let e = 0; e <= 5; e++) s(8, e, Mr(a, e));
|
|
4851
|
+
s(8, 7, Mr(a, 6)), s(8, 8, Mr(a, 7)), s(7, 8, Mr(a, 8));
|
|
4852
|
+
for (let e = 9; e < 15; e++) s(14 - e, 8, Mr(a, e));
|
|
4853
|
+
for (let e = 0; e < 8; e++) s(i - 1 - e, 8, Mr(a, e));
|
|
4854
|
+
for (let e = 8; e < 15; e++) s(8, i - 15 + e, Mr(a, e));
|
|
4855
|
+
s(8, i - 8, !0);
|
|
4856
|
+
}, l = (e, t) => {
|
|
4857
|
+
for (let n = -4; n <= 4; n++) for (let r = -4; r <= 4; r++) {
|
|
4858
|
+
let a = Math.max(Math.abs(r), Math.abs(n)), o = e + r, c = t + n;
|
|
4859
|
+
o >= 0 && o < i && c >= 0 && c < i && s(o, c, a !== 2 && a !== 4);
|
|
4860
|
+
}
|
|
4861
|
+
}, u = (e, t) => {
|
|
4862
|
+
for (let n = -2; n <= 2; n++) for (let r = -2; r <= 2; r++) s(e + r, t + n, Math.max(Math.abs(r), Math.abs(n)) !== 1);
|
|
4863
|
+
};
|
|
4864
|
+
for (let e = 0; e < i; e++) s(6, e, e % 2 == 0), s(e, 6, e % 2 == 0);
|
|
4865
|
+
l(3, 3), l(i - 4, 3), l(3, i - 4);
|
|
4866
|
+
let d = wr(e, i), f = d.length;
|
|
4867
|
+
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]);
|
|
4868
|
+
if (c(0), e >= 7) {
|
|
4869
|
+
let t = e;
|
|
4870
|
+
for (let e = 0; e < 12; e++) t = t << 1 ^ (t >>> 11) * 7973;
|
|
4871
|
+
let n = e << 12 | t;
|
|
4872
|
+
for (let e = 0; e < 18; e++) {
|
|
4873
|
+
let t = Mr(n, e), r = i - 11 + e % 3, a = Math.floor(e / 3);
|
|
4874
|
+
s(r, a, t), s(a, r, t);
|
|
4875
|
+
}
|
|
4876
|
+
}
|
|
4877
|
+
let p = Dr(n, e, t), m = 0, h = p.length * 8;
|
|
4878
|
+
for (let e = i - 1; e >= 1; e -= 2) {
|
|
4879
|
+
e === 6 && (e = 5);
|
|
4880
|
+
for (let t = 0; t < i; t++) for (let n = 0; n < 2; n++) {
|
|
4881
|
+
let r = e - n, s = e + 1 & 2 ? t : i - 1 - t;
|
|
4882
|
+
!o[s * i + r] && m < h && (a[s * i + r] = +!!Mr(p[m >>> 3], 7 - (m & 7)), m++);
|
|
4883
|
+
}
|
|
4884
|
+
}
|
|
4885
|
+
let g = (e) => {
|
|
4886
|
+
for (let t = 0; t < i; t++) for (let n = 0; n < i; n++) !o[t * i + n] && yr(e, n, t) && (a[t * i + n] ^= 1);
|
|
4887
|
+
}, _ = r;
|
|
4888
|
+
if (_ === -1) {
|
|
4889
|
+
let e = Infinity;
|
|
4890
|
+
for (let t = 0; t < 8; t++) {
|
|
4891
|
+
g(t), c(t);
|
|
4892
|
+
let n = br(a, i);
|
|
4893
|
+
n < e && (_ = t, e = n), g(t);
|
|
4894
|
+
}
|
|
4895
|
+
}
|
|
4896
|
+
return g(_), c(_), Object.freeze({
|
|
4897
|
+
size: i,
|
|
4898
|
+
version: e,
|
|
4899
|
+
ecc: cr[t],
|
|
4900
|
+
mask: _,
|
|
4901
|
+
isDark: (e, t) => e >= 0 && e < i && t >= 0 && t < i && a[e * i + t] === 1
|
|
4902
|
+
});
|
|
4903
|
+
}
|
|
4904
|
+
function yr(e, t, n) {
|
|
4905
|
+
switch (e) {
|
|
4906
|
+
case 0: return (t + n) % 2 == 0;
|
|
4907
|
+
case 1: return n % 2 == 0;
|
|
4908
|
+
case 2: return t % 3 == 0;
|
|
4909
|
+
case 3: return (t + n) % 3 == 0;
|
|
4910
|
+
case 4: return (Math.floor(t / 3) + Math.floor(n / 2)) % 2 == 0;
|
|
4911
|
+
case 5: return t * n % 2 + t * n % 3 == 0;
|
|
4912
|
+
case 6: return (t * n % 2 + t * n % 3) % 2 == 0;
|
|
4913
|
+
default: return ((t + n) % 2 + t * n % 3) % 2 == 0;
|
|
4914
|
+
}
|
|
4915
|
+
}
|
|
4916
|
+
function br(e, t) {
|
|
4917
|
+
let n = 0, r = (n, r) => e[r * t + n] === 1;
|
|
4918
|
+
for (let e = 0; e < 2; e++) for (let i = 0; i < t; i++) {
|
|
4919
|
+
let a = !1, o = 0, s = [
|
|
4920
|
+
0,
|
|
4921
|
+
0,
|
|
4922
|
+
0,
|
|
4923
|
+
0,
|
|
4924
|
+
0,
|
|
4925
|
+
0,
|
|
4926
|
+
0
|
|
4927
|
+
];
|
|
4928
|
+
for (let c = 0; c < t; c++) {
|
|
4929
|
+
let l = e === 0 ? r(c, i) : r(i, c);
|
|
4930
|
+
l === a ? (o++, o === 5 ? n += lr : o > 5 && n++) : (Cr(o, s, t), a || (n += xr(s) * dr), a = l, o = 1);
|
|
4931
|
+
}
|
|
4932
|
+
n += Sr(a, o, s, t) * dr;
|
|
4933
|
+
}
|
|
4934
|
+
for (let e = 0; e < t - 1; e++) for (let i = 0; i < t - 1; i++) {
|
|
4935
|
+
let t = r(i, e);
|
|
4936
|
+
t === r(i + 1, e) && t === r(i, e + 1) && t === r(i + 1, e + 1) && (n += ur);
|
|
4937
|
+
}
|
|
4938
|
+
let i = 0;
|
|
4939
|
+
for (let t of e) i += t;
|
|
4940
|
+
let a = t * t, o = Math.ceil(Math.abs(i * 20 - a * 10) / a) - 1;
|
|
4941
|
+
return n += o * fr, n;
|
|
4942
|
+
}
|
|
4943
|
+
function xr(e) {
|
|
4944
|
+
let t = e[1], n = t > 0 && e[2] === t && e[3] === t * 3 && e[4] === t && e[5] === t;
|
|
4945
|
+
return (n && e[0] >= t * 4 && e[6] >= t ? 1 : 0) + (n && e[6] >= t * 4 && e[0] >= t ? 1 : 0);
|
|
4946
|
+
}
|
|
4947
|
+
function Sr(e, t, n, r) {
|
|
4948
|
+
let i = t;
|
|
4949
|
+
return e && (Cr(i, n, r), i = 0), i += r, Cr(i, n, r), xr(n);
|
|
4950
|
+
}
|
|
4951
|
+
function Cr(e, t, n) {
|
|
4952
|
+
let r = t[0] === 0 ? e + n : e;
|
|
4953
|
+
t.pop(), t.unshift(r);
|
|
4954
|
+
}
|
|
4955
|
+
function wr(e, t) {
|
|
4956
|
+
if (e === 1) return [];
|
|
4957
|
+
let n = Math.floor(e / 7) + 2, r = Math.floor((e * 8 + n * 3 + 5) / (n * 4 - 4)) * 2, i = [6];
|
|
4958
|
+
for (let e = t - 7; i.length < n; e -= r) i.splice(1, 0, e);
|
|
4959
|
+
return i;
|
|
4960
|
+
}
|
|
4961
|
+
function Tr(e) {
|
|
4962
|
+
let t = (16 * e + 128) * e + 64;
|
|
4963
|
+
if (e >= 2) {
|
|
4964
|
+
let n = Math.floor(e / 7) + 2;
|
|
4965
|
+
t -= (25 * n - 10) * n - 55, e >= 7 && (t -= 36);
|
|
4966
|
+
}
|
|
4967
|
+
return t;
|
|
4968
|
+
}
|
|
4969
|
+
function Er(e, t) {
|
|
4970
|
+
return Math.floor(Tr(e) / 8) - pr[t][e] * mr[t][e];
|
|
4971
|
+
}
|
|
4972
|
+
function Dr(e, t, n) {
|
|
4973
|
+
let r = mr[n][t], i = pr[n][t], a = Math.floor(Tr(t) / 8), o = r - a % r, s = Math.floor(a / r), c = [], l = Or(i);
|
|
4974
|
+
for (let t = 0, n = 0; t < r; t++) {
|
|
4975
|
+
let r = Array.from(e.subarray(n, n + s - i + (t < o ? 0 : 1)));
|
|
4976
|
+
n += r.length;
|
|
4977
|
+
let a = kr(r, l);
|
|
4978
|
+
t < o && r.push(0), c.push(r.concat(a));
|
|
4979
|
+
}
|
|
4980
|
+
let u = [];
|
|
4981
|
+
for (let e = 0; e < c[0].length; e++) c.forEach((t, n) => {
|
|
4982
|
+
(e !== s - i || n >= o) && u.push(t[e]);
|
|
4983
|
+
});
|
|
4984
|
+
return u;
|
|
4985
|
+
}
|
|
4986
|
+
function Or(e) {
|
|
4987
|
+
let t = Array(e).fill(0);
|
|
4988
|
+
t[e - 1] = 1;
|
|
4989
|
+
let n = 1;
|
|
4990
|
+
for (let r = 0; r < e; r++) {
|
|
4991
|
+
for (let e = 0; e < t.length; e++) t[e] = Ar(t[e], n), e + 1 < t.length && (t[e] ^= t[e + 1]);
|
|
4992
|
+
n = Ar(n, 2);
|
|
4993
|
+
}
|
|
4994
|
+
return t;
|
|
4995
|
+
}
|
|
4996
|
+
function kr(e, t) {
|
|
4997
|
+
let n = t.map(() => 0);
|
|
4998
|
+
for (let r of e) {
|
|
4999
|
+
let e = r ^ n.shift();
|
|
5000
|
+
n.push(0), t.forEach((t, r) => {
|
|
5001
|
+
n[r] ^= Ar(t, e);
|
|
5002
|
+
});
|
|
5003
|
+
}
|
|
5004
|
+
return n;
|
|
5005
|
+
}
|
|
5006
|
+
function Ar(e, t) {
|
|
5007
|
+
let n = 0;
|
|
5008
|
+
for (let r = 7; r >= 0; r--) n = n << 1 ^ (n >>> 7) * 285, n ^= (t >>> r & 1) * e;
|
|
5009
|
+
return n;
|
|
5010
|
+
}
|
|
5011
|
+
function jr(e, t, n) {
|
|
5012
|
+
for (let r = t - 1; r >= 0; r--) n.push(e >>> r & 1);
|
|
5013
|
+
}
|
|
5014
|
+
function Mr(e, t) {
|
|
5015
|
+
return (e >>> t & 1) != 0;
|
|
5016
|
+
}
|
|
5017
|
+
//#endregion
|
|
5018
|
+
//#region src/components/AppQrCode.jsx
|
|
5019
|
+
var Nr = 4;
|
|
5020
|
+
function Pr({ value: e, size: t = 240, title: n = "QR code", className: r, style: i, ...a }) {
|
|
5021
|
+
W("AppQrCode", a);
|
|
5022
|
+
let o = u(() => {
|
|
5023
|
+
if (!e) return null;
|
|
5024
|
+
let t = hr(String(e));
|
|
5025
|
+
return {
|
|
5026
|
+
modules: t.size + Nr * 2,
|
|
5027
|
+
path: gr(t, Nr)
|
|
5028
|
+
};
|
|
5029
|
+
}, [e]);
|
|
5030
|
+
if (!o) return null;
|
|
5031
|
+
let { modules: s, path: c } = o, l = Math.max(1, Math.floor(Number(t) / s) || 1) * s;
|
|
5032
|
+
return /* @__PURE__ */ D("svg", {
|
|
5033
|
+
viewBox: `0 0 ${s} ${s}`,
|
|
5034
|
+
width: l,
|
|
5035
|
+
height: l,
|
|
5036
|
+
role: "img",
|
|
5037
|
+
"aria-label": n,
|
|
5038
|
+
shapeRendering: "crispEdges",
|
|
5039
|
+
className: r || void 0,
|
|
5040
|
+
style: i,
|
|
5041
|
+
...a,
|
|
5042
|
+
children: [/* @__PURE__ */ E("rect", {
|
|
5043
|
+
width: s,
|
|
5044
|
+
height: s,
|
|
5045
|
+
fill: "#ffffff"
|
|
5046
|
+
}), /* @__PURE__ */ E("path", {
|
|
5047
|
+
d: c,
|
|
5048
|
+
fill: "#000000"
|
|
5049
|
+
})]
|
|
5050
|
+
});
|
|
5051
|
+
}
|
|
5052
|
+
//#endregion
|
|
4390
5053
|
//#region src/components/AppRadio.jsx
|
|
4391
|
-
var
|
|
5054
|
+
var Fr = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", ...o }, s) {
|
|
4392
5055
|
return W("AppRadio", o), /* @__PURE__ */ E(vt, {
|
|
4393
5056
|
ref: s,
|
|
4394
5057
|
label: e,
|
|
@@ -4403,8 +5066,81 @@ var er = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a
|
|
|
4403
5066
|
});
|
|
4404
5067
|
});
|
|
4405
5068
|
//#endregion
|
|
5069
|
+
//#region src/components/AppRadioGroup.jsx
|
|
5070
|
+
function Ir({ label: e, options: t = [], name: n, value: r, defaultValue: i, onChange: a, inline: o = !1, required: c = !1, disabled: l = !1, error: u, hint: d, help: f, helpLabel: p = "More information", id: m, className: h = "", fieldClassName: g = "", style: _, ...v }) {
|
|
5071
|
+
W("AppRadioGroup", v);
|
|
5072
|
+
let y = s(), b = m || y, x = n || b, S = `${b}-error`, C = `${b}-hint`, w = r !== void 0;
|
|
5073
|
+
return /* @__PURE__ */ D("div", {
|
|
5074
|
+
className: `field${g ? ` ${g}` : ""}`,
|
|
5075
|
+
children: [
|
|
5076
|
+
e != null && /* @__PURE__ */ D("span", {
|
|
5077
|
+
className: "label",
|
|
5078
|
+
id: `${b}-label`,
|
|
5079
|
+
children: [
|
|
5080
|
+
e,
|
|
5081
|
+
c && /* @__PURE__ */ E(Z, {}),
|
|
5082
|
+
f && /* @__PURE__ */ E(qe, {
|
|
5083
|
+
label: p,
|
|
5084
|
+
children: f
|
|
5085
|
+
})
|
|
5086
|
+
]
|
|
5087
|
+
}),
|
|
5088
|
+
/* @__PURE__ */ E("div", {
|
|
5089
|
+
className: [
|
|
5090
|
+
"wui-radio-group",
|
|
5091
|
+
o ? "wui-radio-group-inline" : "",
|
|
5092
|
+
h
|
|
5093
|
+
].filter(Boolean).join(" "),
|
|
5094
|
+
style: _,
|
|
5095
|
+
id: b,
|
|
5096
|
+
role: "radiogroup",
|
|
5097
|
+
"aria-labelledby": e == null ? void 0 : `${b}-label`,
|
|
5098
|
+
"aria-required": c ? "true" : void 0,
|
|
5099
|
+
"aria-invalid": u ? "true" : void 0,
|
|
5100
|
+
"aria-describedby": u ? S : d ? C : void 0,
|
|
5101
|
+
...v,
|
|
5102
|
+
children: t.map((e, t) => {
|
|
5103
|
+
let n = `${b}-${t}`;
|
|
5104
|
+
return /* @__PURE__ */ D("div", {
|
|
5105
|
+
className: "form-check",
|
|
5106
|
+
children: [/* @__PURE__ */ E("input", {
|
|
5107
|
+
type: "radio",
|
|
5108
|
+
className: "form-check-input",
|
|
5109
|
+
id: n,
|
|
5110
|
+
name: x,
|
|
5111
|
+
value: e.value,
|
|
5112
|
+
disabled: l || e.disabled || void 0,
|
|
5113
|
+
required: c || void 0,
|
|
5114
|
+
...w ? {
|
|
5115
|
+
checked: r === e.value,
|
|
5116
|
+
onChange: () => a?.(e.value)
|
|
5117
|
+
} : {
|
|
5118
|
+
defaultChecked: i === e.value,
|
|
5119
|
+
onChange: () => a?.(e.value)
|
|
5120
|
+
}
|
|
5121
|
+
}), /* @__PURE__ */ E("label", {
|
|
5122
|
+
className: "form-check-label",
|
|
5123
|
+
htmlFor: n,
|
|
5124
|
+
children: e.label
|
|
5125
|
+
})]
|
|
5126
|
+
}, e.value);
|
|
5127
|
+
})
|
|
5128
|
+
}),
|
|
5129
|
+
u ? /* @__PURE__ */ E("div", {
|
|
5130
|
+
className: "field-error",
|
|
5131
|
+
id: S,
|
|
5132
|
+
children: u
|
|
5133
|
+
}) : d ? /* @__PURE__ */ E("div", {
|
|
5134
|
+
className: "field-hint",
|
|
5135
|
+
id: C,
|
|
5136
|
+
children: d
|
|
5137
|
+
}) : null
|
|
5138
|
+
]
|
|
5139
|
+
});
|
|
5140
|
+
}
|
|
5141
|
+
//#endregion
|
|
4406
5142
|
//#region src/components/AppRepeater.jsx
|
|
4407
|
-
function
|
|
5143
|
+
function Lr({ 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 }) {
|
|
4408
5144
|
W("AppRepeater", p);
|
|
4409
5145
|
let m = typeof u == "number" && e.length >= u, h = !!i && e.length > l;
|
|
4410
5146
|
return /* @__PURE__ */ D("div", {
|
|
@@ -4456,7 +5192,7 @@ function tr({ rows: e = [], renderRow: t, rowLabel: n, onAdd: r, onRemove: i, ad
|
|
|
4456
5192
|
}
|
|
4457
5193
|
//#endregion
|
|
4458
5194
|
//#region src/components/AppResourceCard.jsx
|
|
4459
|
-
function
|
|
5195
|
+
function Rr({ icon: e, title: t, text: n, href: r, external: i = !1, linkComponent: a, className: o = "", ...s }) {
|
|
4460
5196
|
W("AppResourceCard", s);
|
|
4461
5197
|
let c = /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E("span", {
|
|
4462
5198
|
className: "res-card-icon",
|
|
@@ -4490,7 +5226,7 @@ function nr({ icon: e, title: t, text: n, href: r, external: i = !1, linkCompone
|
|
|
4490
5226
|
}
|
|
4491
5227
|
//#endregion
|
|
4492
5228
|
//#region src/components/AppResult.jsx
|
|
4493
|
-
var
|
|
5229
|
+
var zr = {
|
|
4494
5230
|
success: {
|
|
4495
5231
|
icon: "check-circle",
|
|
4496
5232
|
tone: "success"
|
|
@@ -4511,9 +5247,9 @@ var rr = {
|
|
|
4511
5247
|
404: { tone: "muted" },
|
|
4512
5248
|
500: { tone: "muted" }
|
|
4513
5249
|
};
|
|
4514
|
-
function
|
|
4515
|
-
W("AppResult", s), G("AppResult", "status", e, Object.keys(
|
|
4516
|
-
let c =
|
|
5250
|
+
function Br({ status: e = "info", title: t, subtitle: n, icon: r, actions: i, children: a, className: o = "", ...s }) {
|
|
5251
|
+
W("AppResult", s), G("AppResult", "status", e, Object.keys(zr));
|
|
5252
|
+
let c = zr[e] || zr.info, l = c.tone, u = /^\d+$/.test(e), d = r ?? (u ? null : c.icon);
|
|
4517
5253
|
return /* @__PURE__ */ D("div", {
|
|
4518
5254
|
className: [
|
|
4519
5255
|
"result",
|
|
@@ -4551,7 +5287,7 @@ function ir({ status: e = "info", title: t, subtitle: n, icon: r, actions: i, ch
|
|
|
4551
5287
|
}
|
|
4552
5288
|
//#endregion
|
|
4553
5289
|
//#region src/components/AppScrollbar.jsx
|
|
4554
|
-
function
|
|
5290
|
+
function Vr({ children: e, className: t = "", maxHeight: n, style: r, ...i }) {
|
|
4555
5291
|
return W("AppScrollbar", i), /* @__PURE__ */ E("div", {
|
|
4556
5292
|
className: t ? `wui-scroll ${t}` : "wui-scroll",
|
|
4557
5293
|
style: n == null ? r : {
|
|
@@ -4564,7 +5300,7 @@ function ar({ children: e, className: t = "", maxHeight: n, style: r, ...i }) {
|
|
|
4564
5300
|
}
|
|
4565
5301
|
//#endregion
|
|
4566
5302
|
//#region src/components/AppSearch.jsx
|
|
4567
|
-
function
|
|
5303
|
+
function Hr({ value: e, onChange: t, onValueChange: n, placeholder: r = "Search…", ariaLabel: i, iconSize: a = 18, size: o, loading: s = !1, disabled: c = !1, className: l = "", ...u }) {
|
|
4568
5304
|
W("AppSearch", u);
|
|
4569
5305
|
let d = t || n;
|
|
4570
5306
|
return /* @__PURE__ */ D("div", {
|
|
@@ -4611,17 +5347,17 @@ function or({ value: e, onChange: t, onValueChange: n, placeholder: r = "Search
|
|
|
4611
5347
|
}
|
|
4612
5348
|
//#endregion
|
|
4613
5349
|
//#region src/components/AppSegmented.jsx
|
|
4614
|
-
var
|
|
5350
|
+
var Ur = {
|
|
4615
5351
|
sm: "segmented-sm",
|
|
4616
5352
|
md: "",
|
|
4617
5353
|
lg: "segmented-lg",
|
|
4618
5354
|
xl: "wui-segmented-xl"
|
|
4619
5355
|
};
|
|
4620
|
-
function
|
|
4621
|
-
W("AppSegmented", m), G("AppSegmented", "size", a, Object.keys(
|
|
5356
|
+
function Wr({ options: e = [], value: t, onChange: n, label: r, name: i, size: a = "md", fullWidth: c = !1, bordered: u = !0, disabled: f = !1, className: p = "", ...m }) {
|
|
5357
|
+
W("AppSegmented", m), G("AppSegmented", "size", a, Object.keys(Ur));
|
|
4622
5358
|
let h = s(), g = i || h, _ = d(null), v = d(null), y = [
|
|
4623
5359
|
"segmented",
|
|
4624
|
-
|
|
5360
|
+
Ur[a] ?? "",
|
|
4625
5361
|
c ? "segmented-full" : "",
|
|
4626
5362
|
u ? "" : "wui-segmented-borderless",
|
|
4627
5363
|
f ? "is-disabled" : "",
|
|
@@ -4692,7 +5428,7 @@ function cr({ options: e = [], value: t, onChange: n, label: r, name: i, size: a
|
|
|
4692
5428
|
}
|
|
4693
5429
|
//#endregion
|
|
4694
5430
|
//#region src/components/AppSelect.jsx
|
|
4695
|
-
var
|
|
5431
|
+
var Gr = (e) => e == null ? "" : e.label ?? e.text ?? "", Kr = i(function({ value: e, onChange: t, options: n = [], placeholder: r = "Select...", searchPlaceholder: i = "Search...", searchable: a = !1, clearable: c = !1, size: l, icon: u, prefix: d, suffix: f, floatingLabel: p = !1, disabled: m, label: h, required: g = !1, error: _, hint: v, help: y, helpLabel: b = "More information", id: x, name: S, className: C = "", fieldClassName: w = "", "aria-label": T, "aria-labelledby": O, "aria-describedby": k, ...A }, j) {
|
|
4696
5432
|
W("AppSelect", A);
|
|
4697
5433
|
let M = s(), { setRef: N, innerRef: P } = Q({
|
|
4698
5434
|
ref: j,
|
|
@@ -4704,7 +5440,7 @@ var lr = (e) => e == null ? "" : e.label ?? e.text ?? "", ur = i(function({ valu
|
|
|
4704
5440
|
if (!e) return;
|
|
4705
5441
|
let t = n.map((e) => ({
|
|
4706
5442
|
value: e.value,
|
|
4707
|
-
label:
|
|
5443
|
+
label: Gr(e),
|
|
4708
5444
|
icon: e.icon
|
|
4709
5445
|
}));
|
|
4710
5446
|
Ze(t, e.options) || (e.options = t);
|
|
@@ -4778,7 +5514,7 @@ var lr = (e) => e == null ? "" : e.label ?? e.text ?? "", ur = i(function({ valu
|
|
|
4778
5514
|
});
|
|
4779
5515
|
//#endregion
|
|
4780
5516
|
//#region src/components/AppShell.jsx
|
|
4781
|
-
function
|
|
5517
|
+
function qr({ groups: e = [], brand: t, sidebarStart: n, sidebarStartCompact: r, sidebarFooter: i, topbarStart: a, topbarEnd: s, footer: c, children: l, collapsed: u, onCollapsedChange: d, noSidebar: p = !1, navLabel: m = "Main navigation", linkComponent: h, className: g = "", ..._ }) {
|
|
4782
5518
|
W("AppShell", _);
|
|
4783
5519
|
let [v, y] = f(!1), [b, x] = f(!1), [S, C] = f(!1), w = u ?? v, T = () => {
|
|
4784
5520
|
let e = !w;
|
|
@@ -4826,7 +5562,7 @@ function dr({ groups: e = [], brand: t, sidebarStart: n, sidebarStartCompact: r,
|
|
|
4826
5562
|
children: [e.label && /* @__PURE__ */ E("div", {
|
|
4827
5563
|
className: "app-nav-group-label",
|
|
4828
5564
|
children: e.label
|
|
4829
|
-
}), e.items.map((e) => /* @__PURE__ */ E(
|
|
5565
|
+
}), e.items.map((e) => /* @__PURE__ */ E(Jr, {
|
|
4830
5566
|
item: e,
|
|
4831
5567
|
linkComponent: h,
|
|
4832
5568
|
onNavigate: () => x(!1)
|
|
@@ -4893,7 +5629,7 @@ function dr({ groups: e = [], brand: t, sidebarStart: n, sidebarStartCompact: r,
|
|
|
4893
5629
|
]
|
|
4894
5630
|
});
|
|
4895
5631
|
}
|
|
4896
|
-
function
|
|
5632
|
+
function Jr({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
|
|
4897
5633
|
let i = Array.isArray(e.children) && e.children.length > 0, a = i && e.children.some((e) => e.active), [s, c] = f(a);
|
|
4898
5634
|
o(() => {
|
|
4899
5635
|
a && !s && c(!0);
|
|
@@ -4935,7 +5671,7 @@ function fr({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
|
|
|
4935
5671
|
"aria-hidden": !s || void 0,
|
|
4936
5672
|
children: /* @__PURE__ */ E("div", {
|
|
4937
5673
|
className: "app-nav-sub-inner",
|
|
4938
|
-
children: e.children.map((e) => /* @__PURE__ */ E(
|
|
5674
|
+
children: e.children.map((e) => /* @__PURE__ */ E(Jr, {
|
|
4939
5675
|
item: e,
|
|
4940
5676
|
linkComponent: t,
|
|
4941
5677
|
onNavigate: n,
|
|
@@ -4976,7 +5712,7 @@ function fr({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
|
|
|
4976
5712
|
}
|
|
4977
5713
|
//#endregion
|
|
4978
5714
|
//#region src/components/AppSidebarMenu.jsx
|
|
4979
|
-
var
|
|
5715
|
+
var Yr = {
|
|
4980
5716
|
left: "start",
|
|
4981
5717
|
right: "end",
|
|
4982
5718
|
start: "start",
|
|
@@ -4984,9 +5720,9 @@ var pr = {
|
|
|
4984
5720
|
top: "top",
|
|
4985
5721
|
bottom: "bottom"
|
|
4986
5722
|
};
|
|
4987
|
-
function
|
|
4988
|
-
W("AppSidebarMenu", v), G("AppSidebarMenu", "side", n, Object.keys(
|
|
4989
|
-
let { style: y, ...b } = v, S =
|
|
5723
|
+
function Xr({ 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, responsive: m, className: h = "", bodyClassName: g = "", ariaLabel: _, ...v }) {
|
|
5724
|
+
W("AppSidebarMenu", v), G("AppSidebarMenu", "side", n, Object.keys(Yr));
|
|
5725
|
+
let { style: y, ...b } = v, S = Yr[n] || "end", C = c || l || y ? {
|
|
4990
5726
|
...c && { "--asm-width": c },
|
|
4991
5727
|
...l && { "--asm-max-width": l },
|
|
4992
5728
|
...y
|
|
@@ -5047,7 +5783,7 @@ function mr({ show: e, onHide: t, side: n = "right", title: r, titleIcon: i, hea
|
|
|
5047
5783
|
}
|
|
5048
5784
|
//#endregion
|
|
5049
5785
|
//#region src/components/AppSlider.jsx
|
|
5050
|
-
var
|
|
5786
|
+
var Zr = i(function({ value: e, start: t, end: n, range: r = !1, onChange: i, label: a, required: c = !1, hint: l, error: u, name: d, startName: f, endName: p, min: m = 0, max: h = 100, step: g = 1, disabled: _, size: v, showValue: y, unit: b, id: x, ariaLabel: S, className: C = "", fieldClassName: w = "", ...T }, O) {
|
|
5051
5787
|
W("AppSlider", T);
|
|
5052
5788
|
let k = s(), A = x || k, j = r, { setRef: M, innerRef: N } = Q({
|
|
5053
5789
|
ref: O,
|
|
@@ -5108,14 +5844,14 @@ var hr = i(function({ value: e, start: t, end: n, range: r = !1, onChange: i, la
|
|
|
5108
5844
|
})
|
|
5109
5845
|
]
|
|
5110
5846
|
});
|
|
5111
|
-
}),
|
|
5847
|
+
}), Qr = {
|
|
5112
5848
|
sm: 44,
|
|
5113
5849
|
md: 56,
|
|
5114
5850
|
lg: 72
|
|
5115
5851
|
};
|
|
5116
|
-
function
|
|
5117
|
-
W("AppSplash", c), G("AppSplash", "size", typeof a == "string" ? a : null, Object.keys(
|
|
5118
|
-
let { style: l, ...u } = c, d = typeof a == "number" ? a :
|
|
5852
|
+
function $r({ logo: e, initials: t, text: n, subtext: r, variant: i = "bar", size: a = "md", label: o = "Loading", className: s = "", ...c }) {
|
|
5853
|
+
W("AppSplash", c), G("AppSplash", "size", typeof a == "string" ? a : null, Object.keys(Qr));
|
|
5854
|
+
let { style: l, ...u } = c, d = typeof a == "number" ? a : Qr[a] ?? Qr.md, f = i === "ring" ? /* @__PURE__ */ E("span", {
|
|
5119
5855
|
className: "splash-ring",
|
|
5120
5856
|
"aria-hidden": "true"
|
|
5121
5857
|
}) : i === "dots" ? /* @__PURE__ */ D("span", {
|
|
@@ -5162,7 +5898,7 @@ function _r({ logo: e, initials: t, text: n, subtext: r, variant: i = "bar", siz
|
|
|
5162
5898
|
}
|
|
5163
5899
|
//#endregion
|
|
5164
5900
|
//#region src/components/AppStatusBadge.jsx
|
|
5165
|
-
function
|
|
5901
|
+
function ei({ label: e, tone: t = "neutral", className: n = "", tooltip: r, tooltipPlacement: i, ...a }) {
|
|
5166
5902
|
return W("AppStatusBadge", a), e == null || e === "" ? "-" : q(/* @__PURE__ */ E("span", {
|
|
5167
5903
|
className: `status-label ${t}${n ? ` ${n}` : ""}`,
|
|
5168
5904
|
...a,
|
|
@@ -5171,7 +5907,7 @@ function vr({ label: e, tone: t = "neutral", className: n = "", tooltip: r, tool
|
|
|
5171
5907
|
}
|
|
5172
5908
|
//#endregion
|
|
5173
5909
|
//#region src/components/AppStepper.jsx
|
|
5174
|
-
function
|
|
5910
|
+
function ti({ steps: e = [], variant: t = "steps", orientation: n = "horizontal", activeStep: r, onStepClick: i, label: a = "Progress", linkComponent: o, className: s = "", ...c }) {
|
|
5175
5911
|
W("AppStepper", c);
|
|
5176
5912
|
let l = t === "journey";
|
|
5177
5913
|
return /* @__PURE__ */ E("nav", {
|
|
@@ -5184,7 +5920,7 @@ function yr({ steps: e = [], variant: t = "steps", orientation: n = "horizontal"
|
|
|
5184
5920
|
"aria-label": a,
|
|
5185
5921
|
...c,
|
|
5186
5922
|
children: e.map((t, n) => {
|
|
5187
|
-
let a = t.status ||
|
|
5923
|
+
let a = t.status || ni(n, r), s = `step${a === "pending" ? "" : ` ${a}`}`, c;
|
|
5188
5924
|
c = a === "done" ? /* @__PURE__ */ E(Y, {
|
|
5189
5925
|
name: "check",
|
|
5190
5926
|
size: 14
|
|
@@ -5248,12 +5984,12 @@ function yr({ steps: e = [], variant: t = "steps", orientation: n = "horizontal"
|
|
|
5248
5984
|
})
|
|
5249
5985
|
});
|
|
5250
5986
|
}
|
|
5251
|
-
function
|
|
5987
|
+
function ni(e, t) {
|
|
5252
5988
|
return typeof t == "number" ? e < t ? "done" : e === t ? "active" : "pending" : "pending";
|
|
5253
5989
|
}
|
|
5254
5990
|
//#endregion
|
|
5255
5991
|
//#region src/components/AppSwitch.jsx
|
|
5256
|
-
var
|
|
5992
|
+
var ri = i(function({ label: e, id: t, name: n, error: r, hint: i, shape: a = "round", className: o = "", ...s }, c) {
|
|
5257
5993
|
return W("AppSwitch", s), /* @__PURE__ */ E(vt, {
|
|
5258
5994
|
ref: c,
|
|
5259
5995
|
label: e,
|
|
@@ -5269,7 +6005,7 @@ var xr = i(function({ label: e, id: t, name: n, error: r, hint: i, shape: a = "r
|
|
|
5269
6005
|
});
|
|
5270
6006
|
//#endregion
|
|
5271
6007
|
//#region src/components/AppTableEmptyState.jsx
|
|
5272
|
-
function
|
|
6008
|
+
function ii({ icon: e, title: t, text: n, action: r, ...i }) {
|
|
5273
6009
|
return W("AppTableEmptyState", i), /* @__PURE__ */ D("div", {
|
|
5274
6010
|
className: "tbl-empty",
|
|
5275
6011
|
...i,
|
|
@@ -5295,7 +6031,7 @@ function Sr({ icon: e, title: t, text: n, action: r, ...i }) {
|
|
|
5295
6031
|
}
|
|
5296
6032
|
//#endregion
|
|
5297
6033
|
//#region src/components/AppTableToolbar.jsx
|
|
5298
|
-
function
|
|
6034
|
+
function ai({ filters: e, actions: t, selectedCount: n = 0, bulkActions: r, onClearSelection: i, className: a = "", ...o }) {
|
|
5299
6035
|
W("AppTableToolbar", o);
|
|
5300
6036
|
let s = n > 0;
|
|
5301
6037
|
return /* @__PURE__ */ D("div", {
|
|
@@ -5333,8 +6069,8 @@ function Cr({ filters: e, actions: t, selectedCount: n = 0, bulkActions: r, onCl
|
|
|
5333
6069
|
}
|
|
5334
6070
|
//#endregion
|
|
5335
6071
|
//#region src/components/AppTabs.jsx
|
|
5336
|
-
var
|
|
5337
|
-
function
|
|
6072
|
+
var oi = 1, si = 28, ci = .7;
|
|
6073
|
+
function li({ tabs: e, value: t, onChange: n, linkComponent: r, variant: i = "underline", orientation: s = "horizontal", size: c = "md", fitted: u = !1, activation: p = "automatic", ariaLabel: m, className: h = "", style: g, ..._ }) {
|
|
5338
6074
|
W("AppTabs", _);
|
|
5339
6075
|
let v = d(null), y = d(null), b = s === "vertical", [x, S] = f(t);
|
|
5340
6076
|
o(() => {
|
|
@@ -5346,7 +6082,7 @@ function Dr({ tabs: e, value: t, onChange: n, linkComponent: r, variant: i = "un
|
|
|
5346
6082
|
let e = v.current, t = y.current;
|
|
5347
6083
|
if (!e || !t || b) return;
|
|
5348
6084
|
let n = e.scrollWidth - e.clientWidth;
|
|
5349
|
-
t.classList.toggle("is-overflow-start", e.scrollLeft >
|
|
6085
|
+
t.classList.toggle("is-overflow-start", e.scrollLeft > oi), t.classList.toggle("is-overflow-end", n > oi && e.scrollLeft < n - oi);
|
|
5350
6086
|
}, [b]), M = a(() => {
|
|
5351
6087
|
let n = v.current;
|
|
5352
6088
|
if (!n) return;
|
|
@@ -5362,7 +6098,7 @@ function Dr({ tabs: e, value: t, onChange: n, linkComponent: r, variant: i = "un
|
|
|
5362
6098
|
if (!e || b) return;
|
|
5363
6099
|
let t = e.querySelector(".app-tab.active");
|
|
5364
6100
|
if (!t) return;
|
|
5365
|
-
let n =
|
|
6101
|
+
let n = si, r = t.offsetLeft, i = r + t.offsetWidth;
|
|
5366
6102
|
r - n < e.scrollLeft ? e.scrollLeft = Math.max(0, r - n) : i + n > e.scrollLeft + e.clientWidth && (e.scrollLeft = i + n - e.clientWidth);
|
|
5367
6103
|
}, [b]);
|
|
5368
6104
|
l(() => {
|
|
@@ -5397,7 +6133,7 @@ function Dr({ tabs: e, value: t, onChange: n, linkComponent: r, variant: i = "un
|
|
|
5397
6133
|
}
|
|
5398
6134
|
let I = (e) => {
|
|
5399
6135
|
let t = v.current;
|
|
5400
|
-
t && t.scrollBy({ left: e * t.clientWidth *
|
|
6136
|
+
t && t.scrollBy({ left: e * t.clientWidth * ci });
|
|
5401
6137
|
}, L = [
|
|
5402
6138
|
"app-tabs",
|
|
5403
6139
|
i === "pills" ? "app-tabs-pills" : "",
|
|
@@ -5510,7 +6246,7 @@ function Dr({ tabs: e, value: t, onChange: n, linkComponent: r, variant: i = "un
|
|
|
5510
6246
|
}
|
|
5511
6247
|
//#endregion
|
|
5512
6248
|
//#region src/components/AppTagInput.jsx
|
|
5513
|
-
var
|
|
6249
|
+
var ui = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r, label: i, error: a, hint: o, required: c = !1, size: l, maxTags: u, allowDuplicates: d = !1, disabled: f = !1, id: p, ariaLabel: m, className: h = "", fieldClassName: g = "", help: _, helpLabel: v = "More information", ...y }, b) {
|
|
5514
6250
|
W("AppTagInput", y);
|
|
5515
6251
|
let x = s(), S = p || x, { setRef: C } = Q({
|
|
5516
6252
|
ref: b,
|
|
@@ -5561,7 +6297,7 @@ var Or = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r
|
|
|
5561
6297
|
}) : null
|
|
5562
6298
|
]
|
|
5563
6299
|
});
|
|
5564
|
-
}),
|
|
6300
|
+
}), di = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, helpLabel: c = "More information", id: u, name: p, rows: m = 4, autoGrow: h = !1, showCount: g = !1, maxLength: _, className: v = "", fieldClassName: b = "", ...x }, S) {
|
|
5565
6301
|
W("AppTextarea", x);
|
|
5566
6302
|
let C = s(), w = u || C, T = [
|
|
5567
6303
|
"textarea",
|
|
@@ -5632,7 +6368,7 @@ var Or = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r
|
|
|
5632
6368
|
})
|
|
5633
6369
|
]
|
|
5634
6370
|
});
|
|
5635
|
-
}),
|
|
6371
|
+
}), fi = {
|
|
5636
6372
|
done: "check",
|
|
5637
6373
|
current: "clock",
|
|
5638
6374
|
"on-hold": "lock",
|
|
@@ -5641,7 +6377,7 @@ var Or = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r
|
|
|
5641
6377
|
skipped: "arrow-right",
|
|
5642
6378
|
upcoming: null
|
|
5643
6379
|
};
|
|
5644
|
-
function
|
|
6380
|
+
function pi({ items: e = [], variant: t = "feed", orientation: n = "vertical", size: r, className: i = "", style: a, ...o }) {
|
|
5645
6381
|
W("AppTimeline", o);
|
|
5646
6382
|
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;
|
|
5647
6383
|
return /* @__PURE__ */ E("ol", {
|
|
@@ -5652,7 +6388,7 @@ function jr({ items: e = [], variant: t = "feed", orientation: n = "vertical", s
|
|
|
5652
6388
|
} : a,
|
|
5653
6389
|
...o,
|
|
5654
6390
|
children: e.map((e, t) => {
|
|
5655
|
-
let n = s ? e.status : void 0, r = n ? ` is-${n}` : "", i = e.tone && e.tone !== "neutral" ? ` ${e.tone}` : "", a = s ? e.icon ?? (n ?
|
|
6391
|
+
let n = s ? e.status : void 0, r = n ? ` is-${n}` : "", i = e.tone && e.tone !== "neutral" ? ` ${e.tone}` : "", a = s ? e.icon ?? (n ? fi[n] : void 0) : e.icon || "circle";
|
|
5656
6392
|
return /* @__PURE__ */ D("li", {
|
|
5657
6393
|
className: `timeline-item${r}${i}`,
|
|
5658
6394
|
children: [/* @__PURE__ */ E("span", {
|
|
@@ -5722,7 +6458,7 @@ function jr({ items: e = [], variant: t = "feed", orientation: n = "vertical", s
|
|
|
5722
6458
|
}
|
|
5723
6459
|
//#endregion
|
|
5724
6460
|
//#region src/components/AppTimePicker.jsx
|
|
5725
|
-
var
|
|
6461
|
+
var mi = i(function({ value: e, onChange: t, label: n, required: r = !1, hint: i, error: a, name: o, min: c, max: l, step: u, format: d = "24", placeholder: f = "Select time", disabled: p, size: m, id: h, ariaLabel: g, className: _ = "", fieldClassName: v = "", ...y }, b) {
|
|
5726
6462
|
W("AppTimePicker", y);
|
|
5727
6463
|
let x = s(), S = h || o || x, { setRef: C } = Q({
|
|
5728
6464
|
ref: b,
|
|
@@ -5767,35 +6503,35 @@ var Mr = i(function({ value: e, onChange: t, label: n, required: r = !1, hint: i
|
|
|
5767
6503
|
})
|
|
5768
6504
|
]
|
|
5769
6505
|
});
|
|
5770
|
-
}),
|
|
5771
|
-
function
|
|
5772
|
-
for (let e of
|
|
6506
|
+
}), hi = 6, $ = [], gi = /* @__PURE__ */ new Set(), _i = /* @__PURE__ */ new Map(), vi = /* @__PURE__ */ new Set(), yi = 0;
|
|
6507
|
+
function bi() {
|
|
6508
|
+
for (let e of gi) e($);
|
|
5773
6509
|
}
|
|
5774
|
-
function
|
|
5775
|
-
let t =
|
|
5776
|
-
t !== void 0 && (clearTimeout(t),
|
|
6510
|
+
function xi(e) {
|
|
6511
|
+
let t = _i.get(e);
|
|
6512
|
+
t !== void 0 && (clearTimeout(t), _i.delete(e));
|
|
5777
6513
|
}
|
|
5778
|
-
function
|
|
5779
|
-
if (e.length <=
|
|
6514
|
+
function Si(e, t) {
|
|
6515
|
+
if (e.length <= hi) return e;
|
|
5780
6516
|
let n = [...e], r = [];
|
|
5781
|
-
for (; n.length >
|
|
6517
|
+
for (; n.length > hi;) {
|
|
5782
6518
|
let e = n.findIndex((e) => e.id !== t && e.duration !== 0);
|
|
5783
6519
|
r.push(n.splice(e === -1 ? n.findIndex((e) => e.id !== t) : e, 1)[0]);
|
|
5784
6520
|
}
|
|
5785
|
-
for (let e of r)
|
|
6521
|
+
for (let e of r) xi(e.id), vi.delete(e.id);
|
|
5786
6522
|
return n;
|
|
5787
6523
|
}
|
|
5788
|
-
function
|
|
5789
|
-
return
|
|
5790
|
-
if (
|
|
6524
|
+
function Ci(e) {
|
|
6525
|
+
return gi.add(e), e($), () => {
|
|
6526
|
+
if (gi.delete(e), gi.size === 0) for (let e of $) e.duration > 0 && !_i.has(e.id) && (vi.delete(e.id), _i.set(e.id, setTimeout(() => Ei(e.id), e.duration)));
|
|
5791
6527
|
};
|
|
5792
6528
|
}
|
|
5793
|
-
function
|
|
6529
|
+
function wi(e, t, n = {}) {
|
|
5794
6530
|
let r = n.id, i = r || typeof e != "string" ? void 0 : `${t}:${e}`;
|
|
5795
6531
|
if (r) {
|
|
5796
6532
|
let i = $.find((e) => e.externalId === r);
|
|
5797
6533
|
if (i) {
|
|
5798
|
-
|
|
6534
|
+
xi(i.id);
|
|
5799
6535
|
let r = n.duration === void 0 ? 5e3 : n.duration;
|
|
5800
6536
|
$ = $.map((a) => a.id === i.id ? {
|
|
5801
6537
|
...a,
|
|
@@ -5808,12 +6544,12 @@ function Hr(e, t, n = {}) {
|
|
|
5808
6544
|
shape: n.shape,
|
|
5809
6545
|
surface: n.surface,
|
|
5810
6546
|
progress: n.progress
|
|
5811
|
-
} : a),
|
|
6547
|
+
} : a), bi(), r > 0 && !vi.has(i.id) && _i.set(i.id, setTimeout(() => Ei(i.id), r));
|
|
5812
6548
|
return;
|
|
5813
6549
|
}
|
|
5814
6550
|
} else if (i && $.some((e) => e.key === i)) return;
|
|
5815
|
-
let a = ++
|
|
5816
|
-
$ =
|
|
6551
|
+
let a = ++yi, o = n.duration === void 0 ? 5e3 : n.duration;
|
|
6552
|
+
$ = Si([...$, {
|
|
5817
6553
|
id: a,
|
|
5818
6554
|
externalId: r,
|
|
5819
6555
|
message: e,
|
|
@@ -5826,25 +6562,25 @@ function Hr(e, t, n = {}) {
|
|
|
5826
6562
|
surface: n.surface,
|
|
5827
6563
|
progress: n.progress,
|
|
5828
6564
|
key: i
|
|
5829
|
-
}], a),
|
|
6565
|
+
}], a), bi(), o > 0 && _i.set(a, setTimeout(() => Ei(a), o));
|
|
5830
6566
|
}
|
|
5831
|
-
function
|
|
5832
|
-
|
|
6567
|
+
function Ti(e) {
|
|
6568
|
+
xi(e), vi.add(e);
|
|
5833
6569
|
}
|
|
5834
|
-
function
|
|
5835
|
-
|
|
6570
|
+
function Ei(e) {
|
|
6571
|
+
xi(e), vi.delete(e);
|
|
5836
6572
|
let t = $.filter((t) => t.id !== e);
|
|
5837
|
-
t.length !== $.length && ($ = t,
|
|
6573
|
+
t.length !== $.length && ($ = t, bi());
|
|
5838
6574
|
}
|
|
5839
|
-
function
|
|
5840
|
-
if (!($.length === 0 &&
|
|
5841
|
-
for (let e of
|
|
5842
|
-
|
|
6575
|
+
function Di() {
|
|
6576
|
+
if (!($.length === 0 && _i.size === 0 && vi.size === 0)) {
|
|
6577
|
+
for (let e of _i.values()) clearTimeout(e);
|
|
6578
|
+
_i.clear(), vi.clear(), $.length !== 0 && ($ = [], bi());
|
|
5843
6579
|
}
|
|
5844
6580
|
}
|
|
5845
6581
|
//#endregion
|
|
5846
6582
|
//#region src/components/AppToast.jsx
|
|
5847
|
-
var
|
|
6583
|
+
var Oi = {
|
|
5848
6584
|
success: {
|
|
5849
6585
|
icon: "check-circle",
|
|
5850
6586
|
assertive: !1
|
|
@@ -5861,7 +6597,7 @@ var Kr = {
|
|
|
5861
6597
|
icon: "alert-circle",
|
|
5862
6598
|
assertive: !0
|
|
5863
6599
|
}
|
|
5864
|
-
},
|
|
6600
|
+
}, ki = {
|
|
5865
6601
|
"top-start": "top-0 start-0",
|
|
5866
6602
|
"top-center": "top-0 start-50 translate-middle-x",
|
|
5867
6603
|
"top-end": "top-0 end-0",
|
|
@@ -5869,21 +6605,21 @@ var Kr = {
|
|
|
5869
6605
|
"bottom-start": "bottom-0 start-0",
|
|
5870
6606
|
"bottom-center": "bottom-0 start-50 translate-middle-x",
|
|
5871
6607
|
"bottom-end": "bottom-0 end-0"
|
|
5872
|
-
},
|
|
6608
|
+
}, Ai = 64, ji = /* @__PURE__ */ new Set([
|
|
5873
6609
|
"rise",
|
|
5874
6610
|
"organic",
|
|
5875
6611
|
"jelly",
|
|
5876
6612
|
"spring"
|
|
5877
|
-
]),
|
|
6613
|
+
]), Mi = /* @__PURE__ */ new Set([
|
|
5878
6614
|
"rounded",
|
|
5879
6615
|
"pill",
|
|
5880
6616
|
"sharp"
|
|
5881
|
-
]),
|
|
5882
|
-
function
|
|
5883
|
-
W("AppToast", s), G("AppToast", "position", e, Object.keys(
|
|
6617
|
+
]), Ni = /* @__PURE__ */ new Set(["auto", "inverse"]);
|
|
6618
|
+
function Pi({ position: e = "bottom-end", maxVisible: t = 4, animation: n = "rise", shape: r = "rounded", surface: i = "auto", className: a = "", ...s }) {
|
|
6619
|
+
W("AppToast", s), G("AppToast", "position", e, Object.keys(ki)), G("AppToast", "animation", n, ji), G("AppToast", "shape", r, Mi), G("AppToast", "surface", i, Ni);
|
|
5884
6620
|
let [c, l] = f([]);
|
|
5885
|
-
o(() =>
|
|
5886
|
-
let u = Math.max(0, c.length - t), d = u ? c.slice(u) : c, p =
|
|
6621
|
+
o(() => Ci(l), []);
|
|
6622
|
+
let u = Math.max(0, c.length - t), d = u ? c.slice(u) : c, p = ki[e] ?? ki["bottom-end"];
|
|
5887
6623
|
return /* @__PURE__ */ D("div", {
|
|
5888
6624
|
...s,
|
|
5889
6625
|
className: `wui-toast-container toast-container position-fixed ${p} p-3 ${a}`.trim(),
|
|
@@ -5895,7 +6631,7 @@ function Qr({ position: e = "bottom-end", maxVisible: t = 4, animation: n = "ris
|
|
|
5895
6631
|
u,
|
|
5896
6632
|
" more"
|
|
5897
6633
|
]
|
|
5898
|
-
}), d.map((e) => /* @__PURE__ */ E(
|
|
6634
|
+
}), d.map((e) => /* @__PURE__ */ E(Fi, {
|
|
5899
6635
|
toast: e,
|
|
5900
6636
|
defaultAnimation: n,
|
|
5901
6637
|
defaultShape: r,
|
|
@@ -5903,14 +6639,14 @@ function Qr({ position: e = "bottom-end", maxVisible: t = 4, animation: n = "ris
|
|
|
5903
6639
|
}, e.id))]
|
|
5904
6640
|
});
|
|
5905
6641
|
}
|
|
5906
|
-
function
|
|
5907
|
-
let i =
|
|
6642
|
+
function Fi({ toast: e, defaultAnimation: t = "rise", defaultShape: n = "rounded", defaultSurface: r = "auto" }) {
|
|
6643
|
+
let i = Oi[e.variant] ?? Oi.success, a = ji.has(e.animation) ? e.animation : t, s = Mi.has(e.shape) ? e.shape : n, c = Ni.has(e.surface) ? e.surface : r, l = (a !== "rise" && ji.has(a) ? ` wui-toast--anim-${a}` : "") + (s !== "rounded" && Mi.has(s) ? ` wui-toast--shape-${s}` : "") + (c === "inverse" ? " wui-toast--surface-inverse" : ""), u = e.duration === 0, [p, m] = f(0), [h, g] = f(!1), _ = d(null), v = () => Ei(e.id), y = d(null);
|
|
5908
6644
|
o(() => {
|
|
5909
6645
|
if (e.duration === 0) return;
|
|
5910
|
-
|
|
6646
|
+
Ti(e.id);
|
|
5911
6647
|
let t = y.current, n = t == null ? "" : getComputedStyle(t).animationName;
|
|
5912
6648
|
if (t != null && (typeof t.getAnimations == "function" ? t.getAnimations().length > 0 : n !== "" && n !== "none")) return;
|
|
5913
|
-
let r = setTimeout(() =>
|
|
6649
|
+
let r = setTimeout(() => Ei(e.id), e.duration);
|
|
5914
6650
|
return () => clearTimeout(r);
|
|
5915
6651
|
}, [e.id, e.duration]);
|
|
5916
6652
|
let b = (e) => {
|
|
@@ -5922,7 +6658,7 @@ function $r({ toast: e, defaultAnimation: t = "rise", defaultShape: n = "rounded
|
|
|
5922
6658
|
}, C = (e) => {
|
|
5923
6659
|
if (_.current === null) return;
|
|
5924
6660
|
let t = e.clientX - _.current;
|
|
5925
|
-
if (Math.abs(t) >
|
|
6661
|
+
if (Math.abs(t) > Ai) {
|
|
5926
6662
|
v();
|
|
5927
6663
|
return;
|
|
5928
6664
|
}
|
|
@@ -6006,7 +6742,7 @@ function $r({ toast: e, defaultAnimation: t = "rise", defaultShape: n = "rounded
|
|
|
6006
6742
|
}
|
|
6007
6743
|
//#endregion
|
|
6008
6744
|
//#region src/components/AppToolbar.jsx
|
|
6009
|
-
function
|
|
6745
|
+
function Ii({ items: e = [], actions: t = [], value: n, defaultValue: r, onSelect: i, label: a, name: o, disabled: c = !1, className: l = "", ...u }) {
|
|
6010
6746
|
W("AppToolbar", u);
|
|
6011
6747
|
let d = s(), p = o || d, [m, h] = f(r), g = n === void 0 ? m : n;
|
|
6012
6748
|
return /* @__PURE__ */ D("div", {
|
|
@@ -6064,7 +6800,7 @@ function ei({ items: e = [], actions: t = [], value: n, defaultValue: r, onSelec
|
|
|
6064
6800
|
}
|
|
6065
6801
|
//#endregion
|
|
6066
6802
|
//#region src/components/AppWizard.jsx
|
|
6067
|
-
var
|
|
6803
|
+
var Li = i(function({ steps: t = [], children: n, active: r, defaultActive: i = 0, onStepChange: a, onFinish: s, onSkip: c, beforeNext: l, onInvalid: u, variant: f = "steps", tone: p, orientation: m = "horizontal", skippable: h = !1, nonLinear: g = !1, hideStepper: _ = !1, disabled: v = !1, label: y = "Progress", backLabel: b = "Back", nextLabel: x = "Next", skipLabel: S = "Skip", finishLabel: C = "Finish", className: w = "", ...T }, D) {
|
|
6068
6804
|
W("AppWizard", T);
|
|
6069
6805
|
let O = d(null), k = (e) => {
|
|
6070
6806
|
O.current = e, typeof D == "function" ? D(e) : D && (D.current = e);
|
|
@@ -6116,13 +6852,13 @@ var ti = i(function({ steps: t = [], children: n, active: r, defaultActive: i =
|
|
|
6116
6852
|
children: A[t]
|
|
6117
6853
|
}, e.key ?? `${e.label}-${t}`))
|
|
6118
6854
|
});
|
|
6119
|
-
}),
|
|
6855
|
+
}), Ri = /* @__PURE__ */ new Set([
|
|
6120
6856
|
"ArrowUp",
|
|
6121
6857
|
"ArrowDown",
|
|
6122
6858
|
"ArrowLeft",
|
|
6123
6859
|
"ArrowRight"
|
|
6124
6860
|
]);
|
|
6125
|
-
function
|
|
6861
|
+
function zi({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAction: i, linkComponent: a, searchable: s = !1, onCreate: c, canCreate: l = !1, createLabel: p = "Create workspace", compact: m = !1, size: h = "md", ariaLabel: g, ..._ }) {
|
|
6126
6862
|
let { onToggle: y, ...b } = _;
|
|
6127
6863
|
W("AppWorkspaceSwitcher", b);
|
|
6128
6864
|
let [x, S] = f(""), [C, w] = f(!1), T = d(null), O = (e, t) => {
|
|
@@ -6142,7 +6878,7 @@ function ri({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
|
|
|
6142
6878
|
let e = T.current;
|
|
6143
6879
|
if (!e) return;
|
|
6144
6880
|
let t = (e) => {
|
|
6145
|
-
if (
|
|
6881
|
+
if (Ri.has(e.key)) {
|
|
6146
6882
|
e.stopPropagation();
|
|
6147
6883
|
return;
|
|
6148
6884
|
}
|
|
@@ -6160,7 +6896,7 @@ function ri({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
|
|
|
6160
6896
|
onToggle: O,
|
|
6161
6897
|
...b,
|
|
6162
6898
|
children: [/* @__PURE__ */ E(v.Toggle, {
|
|
6163
|
-
as:
|
|
6899
|
+
as: Ui,
|
|
6164
6900
|
compact: m,
|
|
6165
6901
|
tenant: k,
|
|
6166
6902
|
"aria-label": M
|
|
@@ -6195,7 +6931,7 @@ function ri({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
|
|
|
6195
6931
|
className: `workspace-switcher-option${e.id === k?.id ? " is-active" : ""}`,
|
|
6196
6932
|
onClick: () => n?.(e),
|
|
6197
6933
|
children: [
|
|
6198
|
-
/* @__PURE__ */ E(
|
|
6934
|
+
/* @__PURE__ */ E(Vi, { tenant: e }),
|
|
6199
6935
|
/* @__PURE__ */ E("span", {
|
|
6200
6936
|
className: "workspace-switcher-option-name",
|
|
6201
6937
|
children: e.name
|
|
@@ -6227,17 +6963,17 @@ function ri({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
|
|
|
6227
6963
|
}) : null,
|
|
6228
6964
|
i ? /* @__PURE__ */ E("div", {
|
|
6229
6965
|
className: "workspace-switcher-footer",
|
|
6230
|
-
children:
|
|
6966
|
+
children: Hi(i, a)
|
|
6231
6967
|
}) : null
|
|
6232
6968
|
]
|
|
6233
6969
|
})]
|
|
6234
6970
|
});
|
|
6235
6971
|
}
|
|
6236
|
-
function
|
|
6972
|
+
function Bi(e) {
|
|
6237
6973
|
let t = String(e ?? "").trim().split(/\s+/).filter(Boolean);
|
|
6238
6974
|
return t.length === 0 ? "" : (t[0][0] + (t.length > 1 ? t[t.length - 1][0] : "")).toUpperCase();
|
|
6239
6975
|
}
|
|
6240
|
-
function
|
|
6976
|
+
function Vi({ tenant: e }) {
|
|
6241
6977
|
return e?.logoUrl ? /* @__PURE__ */ E("img", {
|
|
6242
6978
|
className: "workspace-switcher-mark",
|
|
6243
6979
|
src: e.logoUrl,
|
|
@@ -6245,10 +6981,10 @@ function ai({ tenant: e }) {
|
|
|
6245
6981
|
loading: "lazy"
|
|
6246
6982
|
}) : /* @__PURE__ */ E("span", {
|
|
6247
6983
|
className: "workspace-switcher-mark",
|
|
6248
|
-
children:
|
|
6984
|
+
children: Bi(e?.name)
|
|
6249
6985
|
});
|
|
6250
6986
|
}
|
|
6251
|
-
function
|
|
6987
|
+
function Hi(e, t) {
|
|
6252
6988
|
if (typeof e != "object" || !e || !("label" in e)) return e;
|
|
6253
6989
|
let { label: n, icon: r, href: i } = e;
|
|
6254
6990
|
return /* @__PURE__ */ D(i ? t ?? "a" : "button", {
|
|
@@ -6260,7 +6996,7 @@ function oi(e, t) {
|
|
|
6260
6996
|
}) : null, n]
|
|
6261
6997
|
});
|
|
6262
6998
|
}
|
|
6263
|
-
var
|
|
6999
|
+
var Ui = i(function({ compact: e, tenant: t, "aria-label": n, className: r, ...i }, a) {
|
|
6264
7000
|
return /* @__PURE__ */ D("button", {
|
|
6265
7001
|
ref: a,
|
|
6266
7002
|
type: "button",
|
|
@@ -6268,7 +7004,7 @@ var si = i(function({ compact: e, tenant: t, "aria-label": n, className: r, ...i
|
|
|
6268
7004
|
"aria-haspopup": "true",
|
|
6269
7005
|
"aria-label": n,
|
|
6270
7006
|
...i,
|
|
6271
|
-
children: [/* @__PURE__ */ E(
|
|
7007
|
+
children: [/* @__PURE__ */ E(Vi, { tenant: t }), e ? null : /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E("span", {
|
|
6272
7008
|
className: "workspace-switcher-trigger-name",
|
|
6273
7009
|
children: t?.name
|
|
6274
7010
|
}), /* @__PURE__ */ E(Y, {
|
|
@@ -6280,36 +7016,36 @@ var si = i(function({ compact: e, tenant: t, "aria-label": n, className: r, ...i
|
|
|
6280
7016
|
});
|
|
6281
7017
|
//#endregion
|
|
6282
7018
|
//#region src/components/toast.js
|
|
6283
|
-
function
|
|
6284
|
-
|
|
7019
|
+
function Wi() {
|
|
7020
|
+
Di();
|
|
6285
7021
|
}
|
|
6286
|
-
var
|
|
7022
|
+
var Gi = /* @__PURE__ */ new Set([
|
|
6287
7023
|
"success",
|
|
6288
7024
|
"info",
|
|
6289
7025
|
"warning",
|
|
6290
7026
|
"danger"
|
|
6291
7027
|
]);
|
|
6292
|
-
function
|
|
7028
|
+
function Ki(e, t = "info") {
|
|
6293
7029
|
let n = "info", r = {};
|
|
6294
|
-
typeof t == "string" ? n =
|
|
7030
|
+
typeof t == "string" ? n = Gi.has(t) ? t : "info" : typeof t == "object" && t && (r = t, n = Gi.has(r.variant) ? r.variant : "info"), wi(e, n, r);
|
|
6295
7031
|
}
|
|
6296
|
-
function
|
|
6297
|
-
|
|
7032
|
+
function qi(e, t = {}) {
|
|
7033
|
+
wi(e, "danger", t);
|
|
6298
7034
|
}
|
|
6299
|
-
|
|
7035
|
+
Ki.promise = (e, t, n = {}) => {
|
|
6300
7036
|
let r = n.id || `promise-${Date.now()}-${Math.random()}`;
|
|
6301
|
-
return
|
|
7037
|
+
return Ki(t.loading || "Loading...", {
|
|
6302
7038
|
...n,
|
|
6303
7039
|
variant: "info",
|
|
6304
7040
|
id: r,
|
|
6305
7041
|
duration: 0
|
|
6306
|
-
}), e.then((e) => (
|
|
7042
|
+
}), e.then((e) => (Ki((typeof t.success == "function" ? t.success(e) : t.success) || "Done", {
|
|
6307
7043
|
...n,
|
|
6308
7044
|
variant: "success",
|
|
6309
7045
|
id: r,
|
|
6310
7046
|
duration: n.duration === void 0 ? 5e3 : n.duration
|
|
6311
7047
|
}), e)).catch((e) => {
|
|
6312
|
-
throw
|
|
7048
|
+
throw Ki((typeof t.error == "function" ? t.error(e) : t.error) || "Error", {
|
|
6313
7049
|
...n,
|
|
6314
7050
|
variant: "danger",
|
|
6315
7051
|
id: r,
|
|
@@ -6319,7 +7055,7 @@ ui.promise = (e, t, n = {}) => {
|
|
|
6319
7055
|
};
|
|
6320
7056
|
//#endregion
|
|
6321
7057
|
//#region src/lib/useCommandPaletteShortcut.js
|
|
6322
|
-
function
|
|
7058
|
+
function Ji(e, { key: t = "k" } = {}) {
|
|
6323
7059
|
let n = d(e);
|
|
6324
7060
|
o(() => {
|
|
6325
7061
|
n.current = e;
|
|
@@ -6332,7 +7068,7 @@ function fi(e, { key: t = "k" } = {}) {
|
|
|
6332
7068
|
}
|
|
6333
7069
|
//#endregion
|
|
6334
7070
|
//#region src/lib/usePagination.js
|
|
6335
|
-
function
|
|
7071
|
+
function Yi(e, t = 10) {
|
|
6336
7072
|
let [n, r] = f(1), [i, a] = f(t), s = e.length, c = Math.max(1, Math.ceil(s / i));
|
|
6337
7073
|
o(() => {
|
|
6338
7074
|
n > c && r(c);
|
|
@@ -6359,10 +7095,10 @@ function pi(e, t = 10) {
|
|
|
6359
7095
|
}
|
|
6360
7096
|
//#endregion
|
|
6361
7097
|
//#region src/lib/useTableView.js
|
|
6362
|
-
var
|
|
6363
|
-
function
|
|
7098
|
+
var Xi = (e) => `wui-view:${e}`;
|
|
7099
|
+
function Zi(e, t) {
|
|
6364
7100
|
try {
|
|
6365
|
-
let n = window.localStorage.getItem(
|
|
7101
|
+
let n = window.localStorage.getItem(Xi(e));
|
|
6366
7102
|
if (!n) return t;
|
|
6367
7103
|
let r = JSON.parse(n);
|
|
6368
7104
|
return {
|
|
@@ -6373,14 +7109,14 @@ function hi(e, t) {
|
|
|
6373
7109
|
return t;
|
|
6374
7110
|
}
|
|
6375
7111
|
}
|
|
6376
|
-
function
|
|
6377
|
-
let [n, r] = f(() =>
|
|
7112
|
+
function Qi(e, { sort: t } = {}) {
|
|
7113
|
+
let [n, r] = f(() => Zi(e, {
|
|
6378
7114
|
hidden: [],
|
|
6379
7115
|
sort: t
|
|
6380
7116
|
}));
|
|
6381
7117
|
o(() => {
|
|
6382
7118
|
try {
|
|
6383
|
-
window.localStorage.setItem(
|
|
7119
|
+
window.localStorage.setItem(Xi(e), JSON.stringify(n));
|
|
6384
7120
|
} catch {}
|
|
6385
7121
|
}, [e, n]);
|
|
6386
7122
|
let i = a((e) => r((t) => ({
|
|
@@ -6398,4 +7134,4 @@ function gi(e, { sort: t } = {}) {
|
|
|
6398
7134
|
};
|
|
6399
7135
|
}
|
|
6400
7136
|
//#endregion
|
|
6401
|
-
export { ke as AppAccordion, je as AppActionIcon, Ie as AppAlert, Ue as AppAsyncBlock, nt as AppAutocomplete, ct as AppAvatar, dt as AppAvatarGroup, ft as AppBadge, mt as AppBanner, ht as AppBreadcrumbs, Be as AppButton, _t as AppCard, yt as AppCheckbox, bt as AppChip, wt as AppChoiceCard, Tt as AppChoiceChip, Et as AppColorField, jt as AppColumnMenu, Rt as AppCommandPalette, Ut as AppCompareTable, qt as AppConfirmDialog, Yt as AppConsentBanner, Zt as AppCopyButton, $t as AppCountrySelect, dn as AppDataTable, fn as AppDatePicker, pn as AppDateRangePicker, mn as AppDescriptions, kt as AppDropdown, Ve as AppEmptyState,
|
|
7137
|
+
export { ke as AppAccordion, je as AppActionIcon, Ie as AppAlert, Ue as AppAsyncBlock, nt as AppAutocomplete, ct as AppAvatar, dt as AppAvatarGroup, ft as AppBadge, mt as AppBanner, ht as AppBreadcrumbs, Be as AppButton, _t as AppCard, yt as AppCheckbox, bt as AppChip, wt as AppChoiceCard, Tt as AppChoiceChip, Et as AppColorField, jt as AppColumnMenu, Rt as AppCommandPalette, Ut as AppCompareTable, qt as AppConfirmDialog, Yt as AppConsentBanner, Zt as AppCopyButton, $t as AppCountrySelect, dn as AppDataTable, fn as AppDatePicker, pn as AppDateRangePicker, mn as AppDescriptions, kt as AppDropdown, Ve as AppEmptyState, _n as AppErrorSummary, Cn as AppFileAttachment, En as AppFilePicker, Dn as AppFloatingDock, On as AppFormActions, kn as AppFormRow, Nn as AppFormSection, Y as AppIcon, Pn as AppInfoList, qe as AppInfoTip, Wt as AppInput, zn as AppKpiTile, Un as AppLink, Gn as AppLogoPicker, Yn as AppMeter, It as AppModal, Xn as AppMultiSelect, Zn as AppNumberInput, Qn as AppOtpInput, $n as AppPageHeader, er as AppPagination, tr as AppPhoneNumberInput, Ge as AppPopover, nr as AppPricingCard, ar as AppProgress, Pr as AppQrCode, Fr as AppRadio, Ir as AppRadioGroup, Lr as AppRepeater, Z as AppRequiredMark, Rr as AppResourceCard, Br as AppResult, Vr as AppScrollbar, Hr as AppSearch, Wr as AppSegmented, Kr as AppSelect, an as AppSelectMini, qr as AppShell, Xr as AppSidebarMenu, en as AppSkeleton, tn as AppSkeletonRows, Zr as AppSlider, He as AppSpinner, $r as AppSplash, ei as AppStatusBadge, ti as AppStepper, ri as AppSwitch, ii as AppTableEmptyState, sn as AppTablePagination, ai as AppTableToolbar, li as AppTabs, ui as AppTagInput, di as AppTextarea, mi as AppTimePicker, pi as AppTimeline, Pi as AppToast, Ii as AppToolbar, ce as AppTooltip, Li as AppWizard, zi as AppWorkspaceSwitcher, Kt as MODAL_ICONS, Wi as dismissAll, qi as errorToast, Ee as iconNames, Oe as registerIcons, Ki as toast, Ji as useCommandPaletteShortcut, Yi as usePagination, Qi as useTableView };
|