@oliasoft-open-source/react-ui-library 6.16.2 → 6.17.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/dist/components/number-input/number-input.d.ts.map +1 -1
- package/dist/components/unit-table/unit-table.d.ts.map +1 -1
- package/dist/index.js +661 -661
- package/package.json +3 -3
- package/dist/helpers/cosmetic-rounding/cosmetic-rounding.d.ts +0 -3
- package/dist/helpers/cosmetic-rounding/cosmetic-rounding.d.ts.map +0 -1
package/dist/index.js
CHANGED
|
@@ -12,7 +12,7 @@ import { parseColor as Nn } from "react-aria-components/ColorPicker";
|
|
|
12
12
|
import { Dialog as Pn, Modal as Fn, ModalOverlay as In } from "react-aria-components/Modal";
|
|
13
13
|
import { Heading as Ln } from "react-aria-components/Heading";
|
|
14
14
|
import { Resizable as Rn } from "react-resizable";
|
|
15
|
-
import { ALT_UNITS as zn, KNOWN_UNITS as Bn, altUnitsList as Vn, cleanNumStr as Hn, convertAndGetValue as Un, convertSamePrecision as Wn, getAltUnitsListByQuantity as Gn, getUnit as Kn, getUnitsForQuantity as qn, getValue as Jn, isNumeric as Yn, isScientificStringNum as Xn, isValidNum as Zn, isValueWithUnit as Qn, label as $n, roundByMagnitude as er, roundByMagnitudeToFixed as tr,
|
|
15
|
+
import { ALT_UNITS as zn, KNOWN_UNITS as Bn, altUnitsList as Vn, cleanNumStr as Hn, convertAndGetValue as Un, convertSamePrecision as Wn, getAltUnitsListByQuantity as Gn, getUnit as Kn, getUnitsForQuantity as qn, getValue as Jn, isNumeric as Yn, isScientificStringNum as Xn, isValidNum as Zn, isValueWithUnit as Qn, label as $n, roundByMagnitude as er, roundByMagnitudeToFixed as tr, roundCosmetic as nr, roundToFixed as rr, split as ir, stripLeadingZeros as ar, toNum as or, toString as sr, unitFromQuantity as cr, validateNumber as lr, withPrettyUnitLabel as ur, withUnit as dr } from "@oliasoft-open-source/units";
|
|
16
16
|
import { List as fr } from "react-window";
|
|
17
17
|
import { SortableContext as pr, useSortable as mr, verticalListSortingStrategy as hr } from "@dnd-kit/sortable";
|
|
18
18
|
import { CSS as gr } from "@dnd-kit/utilities";
|
|
@@ -3453,7 +3453,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
3453
3453
|
tabIndex: e.disabled ? -1 : 0,
|
|
3454
3454
|
tooltip: e.tooltip,
|
|
3455
3455
|
type: r
|
|
3456
|
-
}), Nc =
|
|
3456
|
+
}), Nc = (e) => e ? typeof e == "string" ? e : nn(e) ? e[0] : e.fieldName : "", Pc = ({ name: e, placeholder: t = "", disabled: n = !1, error: r = !1, left: i = !1, small: a = !1, width: o = "100%", value: s = "", onChange: c = () => {}, onFocus: u = () => {}, onBlur: d = () => {}, selectOnFocus: f = !0, tabIndex: p = 0, testId: g, tooltip: _ = null, warning: v = !1, validationCallback: b = () => {}, allowEmpty: x = !1, isInTable: S, groupOrder: C, enableCosmeticRounding: w = !0, enableDisplayRounding: T = !1, roundDisplayValue: E, disableInternalErrorValidationMessages: D = !1, disableValidationOnFocus: O = !1 }) => {
|
|
3457
3457
|
let k = (e) => {
|
|
3458
3458
|
let n = lr(e), r = t && ac(e);
|
|
3459
3459
|
return [Infinity, -Infinity].includes(Number(e)) || r ? {
|
|
@@ -3467,10 +3467,10 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
3467
3467
|
}, A = (e) => {
|
|
3468
3468
|
var t;
|
|
3469
3469
|
let n = !!(e != null && e.endsWith("0"));
|
|
3470
|
-
return
|
|
3471
|
-
}, j = m(null), [M, N] = h(A(
|
|
3470
|
+
return sr(w && e && !n && (t = k(e)) != null && t.valid ? nr(e) : e);
|
|
3471
|
+
}, j = m(null), [M, N] = h(A(sr(s))), [P, F] = h(!1), I = Nc(e), { valid: L, errors: R } = k(M), z = R && R.length && !D ? R[0] : null;
|
|
3472
3472
|
l(() => {
|
|
3473
|
-
let e = A(
|
|
3473
|
+
let e = A(sr(s));
|
|
3474
3474
|
or(M) !== or(e) && N(e);
|
|
3475
3475
|
}, [
|
|
3476
3476
|
s,
|
|
@@ -3490,7 +3490,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
3490
3490
|
...e,
|
|
3491
3491
|
target: {
|
|
3492
3492
|
...e.target,
|
|
3493
|
-
value: ar(
|
|
3493
|
+
value: ar(sr(a)),
|
|
3494
3494
|
name: I
|
|
3495
3495
|
}
|
|
3496
3496
|
});
|
|
@@ -3499,7 +3499,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
3499
3499
|
if (j && j != null && j.current && T && P) {
|
|
3500
3500
|
let e = j.current;
|
|
3501
3501
|
e && !f && setTimeout(() => {
|
|
3502
|
-
let { length: t } =
|
|
3502
|
+
let { length: t } = sr(M);
|
|
3503
3503
|
e.setSelectionRange(t, t);
|
|
3504
3504
|
}, 0);
|
|
3505
3505
|
}
|
|
@@ -3509,7 +3509,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
3509
3509
|
testId: g,
|
|
3510
3510
|
disabled: n,
|
|
3511
3511
|
placeholder: t,
|
|
3512
|
-
value: T && !P && L ? E ?
|
|
3512
|
+
value: T && !P && L ? E ? sr(E(M)) : ((e) => S ? rr(e, 2) : er(e, 4))(s) : M,
|
|
3513
3513
|
onChange: ee,
|
|
3514
3514
|
onFocus: (e) => {
|
|
3515
3515
|
F(!0), u(e);
|
|
@@ -3532,9 +3532,9 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
3532
3532
|
tooltip: _,
|
|
3533
3533
|
ref: j
|
|
3534
3534
|
}, I);
|
|
3535
|
-
},
|
|
3535
|
+
}, Fc = ({ cell: e, columnAlignment: t, testId: n }) => {
|
|
3536
3536
|
var r;
|
|
3537
|
-
return /* @__PURE__ */ y(
|
|
3537
|
+
return /* @__PURE__ */ y(Pc, {
|
|
3538
3538
|
name: e.name,
|
|
3539
3539
|
value: e.value,
|
|
3540
3540
|
onChange: (t) => {
|
|
@@ -3560,7 +3560,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
3560
3560
|
roundDisplayValue: e.roundDisplayValue,
|
|
3561
3561
|
disableValidationOnFocus: e.disableValidationOnFocus
|
|
3562
3562
|
});
|
|
3563
|
-
},
|
|
3563
|
+
}, Ic = ({ cell: e, columnAlignment: t, testId: n }) => /* @__PURE__ */ y(hc, {
|
|
3564
3564
|
name: e.name,
|
|
3565
3565
|
borderRadius: 0,
|
|
3566
3566
|
options: e.options,
|
|
@@ -3586,13 +3586,13 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
3586
3586
|
right: t === Yr.RIGHT,
|
|
3587
3587
|
testId: n,
|
|
3588
3588
|
tabIndex: e.disabled ? -1 : 0
|
|
3589
|
-
}),
|
|
3589
|
+
}), Lc = ({ cell: e, columnAlignment: t, testId: n }) => /* @__PURE__ */ y("div", {
|
|
3590
3590
|
className: _(X.inputWrapper, e.type === "NumberInput" ? X.numberInputWrapper : ""),
|
|
3591
3591
|
children: e.type === "Input" ? /* @__PURE__ */ y(Mc, {
|
|
3592
3592
|
cell: e,
|
|
3593
3593
|
columnAlignment: t,
|
|
3594
3594
|
testId: n
|
|
3595
|
-
}) : e.type === "NumberInput" ? /* @__PURE__ */ y(
|
|
3595
|
+
}) : e.type === "NumberInput" ? /* @__PURE__ */ y(Fc, {
|
|
3596
3596
|
cell: e,
|
|
3597
3597
|
columnAlignment: t,
|
|
3598
3598
|
testId: n
|
|
@@ -3600,12 +3600,12 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
3600
3600
|
cell: e,
|
|
3601
3601
|
testId: n,
|
|
3602
3602
|
type: "date"
|
|
3603
|
-
}) : e.type === "Select" ? /* @__PURE__ */ y(
|
|
3603
|
+
}) : e.type === "Select" ? /* @__PURE__ */ y(Ic, {
|
|
3604
3604
|
cell: e,
|
|
3605
3605
|
columnAlignment: t,
|
|
3606
3606
|
testId: n
|
|
3607
3607
|
}) : null
|
|
3608
|
-
}),
|
|
3608
|
+
}), Rc = ({ cell: e, testId: t }) => {
|
|
3609
3609
|
let n = c(U), { error: r, warning: i, tooltip: a, maxTooltipWidth: o } = e, s = (e) => J(e);
|
|
3610
3610
|
return /* @__PURE__ */ y("div", {
|
|
3611
3611
|
className: X.inputWrapper,
|
|
@@ -3631,7 +3631,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
3631
3631
|
})
|
|
3632
3632
|
})
|
|
3633
3633
|
});
|
|
3634
|
-
},
|
|
3634
|
+
}, zc = ({ cell: e, testId: t }) => /* @__PURE__ */ y("div", {
|
|
3635
3635
|
className: e.label ? "" : X.standaloneCheckbox,
|
|
3636
3636
|
children: /* @__PURE__ */ y(G, {
|
|
3637
3637
|
text: e.tooltip,
|
|
@@ -3647,7 +3647,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
3647
3647
|
indeterminate: e.indeterminate
|
|
3648
3648
|
})
|
|
3649
3649
|
})
|
|
3650
|
-
}),
|
|
3650
|
+
}), Bc = {
|
|
3651
3651
|
container: "_container_3cdfx_1",
|
|
3652
3652
|
small: "_small_3cdfx_9",
|
|
3653
3653
|
vertical: "_vertical_3cdfx_12",
|
|
@@ -3663,17 +3663,17 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
3663
3663
|
markActive: "_markActive_3cdfx_146",
|
|
3664
3664
|
sliderDisabled: "_sliderDisabled_3cdfx_149",
|
|
3665
3665
|
label: "_label_3cdfx_161"
|
|
3666
|
-
},
|
|
3666
|
+
}, Vc = (e, t) => gn(nn(e) ? e : [e]).slice(0, t ? 2 : 1), Hc = (e, t) => t ? e : e[0], Uc = vr((e) => e.map(({ label: e, tooltip: t, value: n }) => ({
|
|
3667
3667
|
label: e,
|
|
3668
3668
|
tooltip: t,
|
|
3669
3669
|
value: Number(n)
|
|
3670
|
-
})), yr),
|
|
3670
|
+
})), yr), Wc = ({ name: e, label: t, width: n = "100%", labelWidth: r = "auto", testId: i, value: a, min: o, max: s, step: l = 1, marks: u = [], showArrows: d = !1, showTooltip: p = !1, tooltipFormatter: m = (e) => e, disabled: g = !1, range: x = !1, small: S = !1, vertical: C = {
|
|
3671
3671
|
enabled: !1,
|
|
3672
3672
|
width: "100px",
|
|
3673
3673
|
height: "400px"
|
|
3674
3674
|
}, onChange: w, onChangeComplete: T }) => {
|
|
3675
|
-
let E = c(U), D = g || E, [O, k] = h(null), A =
|
|
3676
|
-
let r =
|
|
3675
|
+
let E = c(U), D = g || E, [O, k] = h(null), A = Uc(u), j = f(() => Vc(a, x), [x, a]), M = (n) => {
|
|
3676
|
+
let r = Hc(n, x);
|
|
3677
3677
|
return { target: {
|
|
3678
3678
|
name: e == null ? "" : e,
|
|
3679
3679
|
value: r,
|
|
@@ -3686,7 +3686,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
3686
3686
|
}, F = (e) => {
|
|
3687
3687
|
N(e), P(e);
|
|
3688
3688
|
}, I = () => /* @__PURE__ */ y("div", {
|
|
3689
|
-
className:
|
|
3689
|
+
className: Bc.button,
|
|
3690
3690
|
children: /* @__PURE__ */ y(K, {
|
|
3691
3691
|
basic: !0,
|
|
3692
3692
|
small: !0,
|
|
@@ -3698,7 +3698,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
3698
3698
|
icon: H.FAST_BACKWARD
|
|
3699
3699
|
})
|
|
3700
3700
|
}), L = () => /* @__PURE__ */ y("div", {
|
|
3701
|
-
className:
|
|
3701
|
+
className: Bc.button,
|
|
3702
3702
|
children: /* @__PURE__ */ y(K, {
|
|
3703
3703
|
basic: !0,
|
|
3704
3704
|
small: !0,
|
|
@@ -3716,7 +3716,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
3716
3716
|
if (i) return x ? `${i}-handle-${e}` : `${i}-handle`;
|
|
3717
3717
|
}, te = (e) => x ? j[0] <= e && e <= j[1] : j[0] >= e, ne = (e) => x ? Math.abs(e - j[0]) <= Math.abs(e - j[1]) ? [Xt(e, o, j[1]), j[1]] : [j[0], Xt(e, j[0], s)] : [Xt(e, o, s)];
|
|
3718
3718
|
return /* @__PURE__ */ b("div", {
|
|
3719
|
-
className: _(
|
|
3719
|
+
className: _(Bc.container, S ? Bc.small : "", C.enabled ? Bc.vertical : ""),
|
|
3720
3720
|
style: C.enabled ? {
|
|
3721
3721
|
width: C.width,
|
|
3722
3722
|
height: C.height
|
|
@@ -3724,7 +3724,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
3724
3724
|
children: [
|
|
3725
3725
|
d && (C.enabled ? /* @__PURE__ */ y(L, {}) : /* @__PURE__ */ y(I, {})),
|
|
3726
3726
|
/* @__PURE__ */ b(_r.Root, {
|
|
3727
|
-
className: _(
|
|
3727
|
+
className: _(Bc.slider, D && Bc.sliderDisabled, d && Bc.hasArrows),
|
|
3728
3728
|
"data-testid": i,
|
|
3729
3729
|
disabled: D,
|
|
3730
3730
|
max: s,
|
|
@@ -3739,14 +3739,14 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
3739
3739
|
step: l,
|
|
3740
3740
|
value: j,
|
|
3741
3741
|
children: [/* @__PURE__ */ b(_r.Track, {
|
|
3742
|
-
className:
|
|
3743
|
-
children: [/* @__PURE__ */ y(_r.Range, { className:
|
|
3744
|
-
className:
|
|
3742
|
+
className: Bc.track,
|
|
3743
|
+
children: [/* @__PURE__ */ y(_r.Range, { className: Bc.range }), A.length > 0 && /* @__PURE__ */ y("span", {
|
|
3744
|
+
className: Bc.marks,
|
|
3745
3745
|
children: A.map(({ label: e, tooltip: t, value: n }) => {
|
|
3746
3746
|
let r = Number(n), i = te(r), a = { [C.enabled ? "bottom" : "left"]: R(r) };
|
|
3747
3747
|
return /* @__PURE__ */ y("button", {
|
|
3748
3748
|
"aria-label": String(e == null ? n : e),
|
|
3749
|
-
className: _(
|
|
3749
|
+
className: _(Bc.mark, i && Bc.markActive),
|
|
3750
3750
|
disabled: D,
|
|
3751
3751
|
onClick: () => F(ne(r)),
|
|
3752
3752
|
style: a,
|
|
@@ -3757,7 +3757,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
3757
3757
|
t ? ": " : "",
|
|
3758
3758
|
e == null ? n : e
|
|
3759
3759
|
] }),
|
|
3760
|
-
children: /* @__PURE__ */ y("span", { className:
|
|
3760
|
+
children: /* @__PURE__ */ y("span", { className: Bc.dot })
|
|
3761
3761
|
})
|
|
3762
3762
|
}, String(n));
|
|
3763
3763
|
})
|
|
@@ -3766,7 +3766,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
3766
3766
|
var i;
|
|
3767
3767
|
return /* @__PURE__ */ y(_r.Thumb, {
|
|
3768
3768
|
"aria-label": String((i = t == null ? e : t) == null ? "Slider" : i),
|
|
3769
|
-
className:
|
|
3769
|
+
className: Bc.thumb,
|
|
3770
3770
|
"data-testid": ee(r),
|
|
3771
3771
|
onKeyDown: () => k(r),
|
|
3772
3772
|
onKeyUp: () => k(null),
|
|
@@ -3775,7 +3775,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
3775
3775
|
style: z(n),
|
|
3776
3776
|
children: p && O === r && /* @__PURE__ */ y(G, {
|
|
3777
3777
|
display: "block",
|
|
3778
|
-
text: m(
|
|
3778
|
+
text: m(Hc(j, x)),
|
|
3779
3779
|
forceOpen: !0,
|
|
3780
3780
|
updateOnAnimationFrame: !0,
|
|
3781
3781
|
triggerStyle: {
|
|
@@ -3788,15 +3788,15 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
3788
3788
|
}),
|
|
3789
3789
|
d && (C.enabled ? /* @__PURE__ */ y(I, {}) : /* @__PURE__ */ y(L, {})),
|
|
3790
3790
|
t && /* @__PURE__ */ y("label", {
|
|
3791
|
-
className:
|
|
3791
|
+
className: Bc.label,
|
|
3792
3792
|
style: { width: r },
|
|
3793
3793
|
children: t
|
|
3794
3794
|
})
|
|
3795
3795
|
]
|
|
3796
3796
|
});
|
|
3797
|
-
},
|
|
3797
|
+
}, Gc = ({ cell: e }) => /* @__PURE__ */ y("div", {
|
|
3798
3798
|
className: X.inputWrapper,
|
|
3799
|
-
children: /* @__PURE__ */ y(
|
|
3799
|
+
children: /* @__PURE__ */ y(Wc, {
|
|
3800
3800
|
label: e.label,
|
|
3801
3801
|
testId: e.testId,
|
|
3802
3802
|
value: e.value,
|
|
@@ -3810,7 +3810,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
3810
3810
|
tooltipFormatter: e.tooltipFormatter,
|
|
3811
3811
|
disabled: e.disabled
|
|
3812
3812
|
})
|
|
3813
|
-
}),
|
|
3813
|
+
}), Kc = ({ cell: e }) => {
|
|
3814
3814
|
let { tooltip: t, icon: n } = e;
|
|
3815
3815
|
return /* @__PURE__ */ y("div", {
|
|
3816
3816
|
className: X.iconCellWrapper,
|
|
@@ -3822,7 +3822,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
3822
3822
|
children: /* @__PURE__ */ y(W, { icon: n })
|
|
3823
3823
|
})
|
|
3824
3824
|
});
|
|
3825
|
-
},
|
|
3825
|
+
}, qc = ({ cell: e }) => /* @__PURE__ */ y(Ca, { actions: e.actions }), Jc = ({ cell: e }) => {
|
|
3826
3826
|
let { helpIcon: t } = e;
|
|
3827
3827
|
return t ? /* @__PURE__ */ y("div", {
|
|
3828
3828
|
className: X.icon,
|
|
@@ -3831,7 +3831,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
3831
3831
|
text: t.tooltip
|
|
3832
3832
|
})
|
|
3833
3833
|
}) : null;
|
|
3834
|
-
},
|
|
3834
|
+
}, Yc = ({ cell: e }) => {
|
|
3835
3835
|
let { libraryIcon: t } = e;
|
|
3836
3836
|
return t ? /* @__PURE__ */ y("div", {
|
|
3837
3837
|
className: X.icon,
|
|
@@ -3841,7 +3841,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
3841
3841
|
icon: H.LIBRARY
|
|
3842
3842
|
})
|
|
3843
3843
|
}) : null;
|
|
3844
|
-
},
|
|
3844
|
+
}, Xc = ({ cell: e }) => {
|
|
3845
3845
|
let { hasSort: t, sort: n, sortPriority: r } = e;
|
|
3846
3846
|
return t ? /* @__PURE__ */ b("span", {
|
|
3847
3847
|
className: X.sortingCellIcon,
|
|
@@ -3856,7 +3856,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
3856
3856
|
children: /* @__PURE__ */ y(W, { icon: H.SORT_DESCENDING })
|
|
3857
3857
|
}), r && n ? /* @__PURE__ */ y("sup", { children: r }) : null]
|
|
3858
3858
|
}) : null;
|
|
3859
|
-
},
|
|
3859
|
+
}, Zc = ({ cell: e, isHeader: t, testId: n }) => {
|
|
3860
3860
|
let { error: r, warning: i, tooltip: a, maxTooltipWidth: o, hasSort: s, onSort: c, type: l } = e, u = /* @__PURE__ */ b("div", {
|
|
3861
3861
|
className: _(X.staticCellContent, l === "Unit" ? X.unit : ""),
|
|
3862
3862
|
onClick: s ? (e) => c && c(e) : () => {},
|
|
@@ -3864,9 +3864,9 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
3864
3864
|
"data-warning": i || null,
|
|
3865
3865
|
"data-testid": n,
|
|
3866
3866
|
children: [e.value, t ? /* @__PURE__ */ b(v, { children: [
|
|
3867
|
-
/* @__PURE__ */ y(
|
|
3868
|
-
/* @__PURE__ */ y(
|
|
3869
|
-
/* @__PURE__ */ y(
|
|
3867
|
+
/* @__PURE__ */ y(Jc, { cell: e }),
|
|
3868
|
+
/* @__PURE__ */ y(Yc, { cell: e }),
|
|
3869
|
+
/* @__PURE__ */ y(Xc, { cell: e })
|
|
3870
3870
|
] }) : null]
|
|
3871
3871
|
});
|
|
3872
3872
|
return /* @__PURE__ */ y("div", {
|
|
@@ -3881,7 +3881,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
3881
3881
|
children: u
|
|
3882
3882
|
})
|
|
3883
3883
|
});
|
|
3884
|
-
},
|
|
3884
|
+
}, Qc = ({ cell: e, testId: t }) => {
|
|
3885
3885
|
let { content: n, fullWidth: r, closeOnOutsideClick: i, disabled: a } = e;
|
|
3886
3886
|
return /* @__PURE__ */ y(Pa, {
|
|
3887
3887
|
content: n,
|
|
@@ -3890,13 +3890,13 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
3890
3890
|
disabled: a,
|
|
3891
3891
|
children: /* @__PURE__ */ y("div", {
|
|
3892
3892
|
className: X.popover,
|
|
3893
|
-
children: /* @__PURE__ */ y(
|
|
3893
|
+
children: /* @__PURE__ */ y(Zc, {
|
|
3894
3894
|
cell: e,
|
|
3895
3895
|
testId: t
|
|
3896
3896
|
})
|
|
3897
3897
|
})
|
|
3898
3898
|
});
|
|
3899
|
-
},
|
|
3899
|
+
}, $c = {
|
|
3900
3900
|
wrapper: "_wrapper_1u1qo_1",
|
|
3901
3901
|
inline: "_inline_1u1qo_1",
|
|
3902
3902
|
radio: "_radio_1u1qo_5",
|
|
@@ -3907,10 +3907,10 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
3907
3907
|
disabled: "_disabled_1u1qo_98",
|
|
3908
3908
|
isInTable: "_isInTable_1u1qo_114",
|
|
3909
3909
|
helpIconEnabled: "_helpIconEnabled_1u1qo_119"
|
|
3910
|
-
},
|
|
3910
|
+
}, el = ({ name: e, label: t, value: n, selected: r, disabled: i = !1, small: a = !1, onChange: o, noMargin: s = !1, testId: c, helpText: l, onClickHelp: u, textTransform: d = Zr.CAPITALIZE }) => {
|
|
3911
3911
|
let f = l || u;
|
|
3912
3912
|
return /* @__PURE__ */ b("div", {
|
|
3913
|
-
className: _(
|
|
3913
|
+
className: _($c.radio, i ? $c.disabled : null, a ? $c.small : null, s ? $c.noMargin : null, t ? null : $c.noLabel),
|
|
3914
3914
|
onClick: o,
|
|
3915
3915
|
"data-testid": c,
|
|
3916
3916
|
children: [
|
|
@@ -3928,13 +3928,13 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
3928
3928
|
children: t
|
|
3929
3929
|
}),
|
|
3930
3930
|
f && /* @__PURE__ */ y("div", {
|
|
3931
|
-
className:
|
|
3931
|
+
className: $c.helpIconEnabled,
|
|
3932
3932
|
onClick: u,
|
|
3933
3933
|
children: /* @__PURE__ */ y(Fi, { text: l })
|
|
3934
3934
|
})
|
|
3935
3935
|
]
|
|
3936
3936
|
});
|
|
3937
|
-
},
|
|
3937
|
+
}, tl = ({ cell: e, testId: t }) => /* @__PURE__ */ y(el, {
|
|
3938
3938
|
selected: e.selected,
|
|
3939
3939
|
name: e.name,
|
|
3940
3940
|
value: e.value,
|
|
@@ -3942,42 +3942,42 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
3942
3942
|
disabled: e.disabled,
|
|
3943
3943
|
onChange: (t) => e.onChange(t),
|
|
3944
3944
|
testId: t
|
|
3945
|
-
}),
|
|
3945
|
+
}), nl = ({ cell: e, isHeader: t, columnAlignment: n, testId: r }) => {
|
|
3946
3946
|
if (!e) return null;
|
|
3947
3947
|
switch (e.type) {
|
|
3948
3948
|
case "Input":
|
|
3949
3949
|
case "NumberInput":
|
|
3950
3950
|
case "DateInput":
|
|
3951
|
-
case "Select": return /* @__PURE__ */ y(
|
|
3951
|
+
case "Select": return /* @__PURE__ */ y(Lc, {
|
|
3952
3952
|
cell: e,
|
|
3953
3953
|
columnAlignment: n,
|
|
3954
3954
|
testId: r
|
|
3955
3955
|
});
|
|
3956
|
-
case "Link": return /* @__PURE__ */ y(
|
|
3956
|
+
case "Link": return /* @__PURE__ */ y(Rc, {
|
|
3957
3957
|
cell: e,
|
|
3958
3958
|
testId: r
|
|
3959
3959
|
});
|
|
3960
|
-
case "CheckBox": return /* @__PURE__ */ y(
|
|
3960
|
+
case "CheckBox": return /* @__PURE__ */ y(zc, {
|
|
3961
3961
|
cell: e,
|
|
3962
3962
|
testId: r
|
|
3963
3963
|
});
|
|
3964
|
-
case "Radio": return /* @__PURE__ */ y(
|
|
3964
|
+
case "Radio": return /* @__PURE__ */ y(tl, {
|
|
3965
3965
|
cell: e,
|
|
3966
3966
|
testId: r
|
|
3967
3967
|
});
|
|
3968
|
-
case "Slider": return /* @__PURE__ */ y(
|
|
3969
|
-
case "Icon": return /* @__PURE__ */ y(
|
|
3970
|
-
case "Actions": return /* @__PURE__ */ y(
|
|
3971
|
-
case "Popover": return /* @__PURE__ */ y(
|
|
3972
|
-
default: return /* @__PURE__ */ y(
|
|
3968
|
+
case "Slider": return /* @__PURE__ */ y(Gc, { cell: e });
|
|
3969
|
+
case "Icon": return /* @__PURE__ */ y(Kc, { cell: e });
|
|
3970
|
+
case "Actions": return /* @__PURE__ */ y(qc, { cell: e });
|
|
3971
|
+
case "Popover": return /* @__PURE__ */ y(Qc, { cell: e });
|
|
3972
|
+
default: return /* @__PURE__ */ y(Zc, {
|
|
3973
3973
|
cell: e,
|
|
3974
3974
|
isHeader: t,
|
|
3975
3975
|
testId: r
|
|
3976
3976
|
});
|
|
3977
3977
|
}
|
|
3978
|
-
},
|
|
3978
|
+
}, rl = /* @__PURE__ */ function(e) {
|
|
3979
3979
|
return e.INPUT = "Input", e.NUMBER_INPUT = "NumberInput", e.SELECT = "Select", e.POPOVER = "Popover", e.SLIDER = "Slider", e.CHECKBOX = "CheckBox", e.RADIO = "Radio", e.ACTIONS = "Actions", e.AUTO_UNIT = "AutoUnit", e.UNIT = "Unit", e.STATIC = "Static", e;
|
|
3980
|
-
}({}),
|
|
3980
|
+
}({}), il = ({ cell: e, isHeader: t, columnHeaderAlignment: n, columnAlignment: r = Yr.LEFT, width: i, testId: a }) => {
|
|
3981
3981
|
var o;
|
|
3982
3982
|
if (!e) return null;
|
|
3983
3983
|
let { style: s, colSpan: c, rowSpan: l, width: u, textAlign: d } = e, f = m(null), p = {
|
|
@@ -3985,7 +3985,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
3985
3985
|
headerAlignment: n,
|
|
3986
3986
|
textAlign: d,
|
|
3987
3987
|
isHeader: t
|
|
3988
|
-
}, h = Ac(p, X), g = Ac(p, X, !0), v = e.type ===
|
|
3988
|
+
}, h = Ac(p, X), g = Ac(p, X, !0), v = e.type === rl.INPUT || e.type === rl.NUMBER_INPUT || e.type === rl.SELECT || e.type === rl.POPOVER ? X.inputCell : e.type === rl.SLIDER ? X.sliderCell : e.type === rl.CHECKBOX || e.type === rl.RADIO ? X.checkBoxCell : e.type === rl.ACTIONS ? X.actionsCell : X.staticCell, b = _(X.cell, v, e.hasSort ? X.sortingCell : null, h, e.breakWord ? X.breakWord : ""), x = (o = u == null ? i : u) == null ? void 0 : o, S = e.type === rl.STATIC || !e.type, C = {
|
|
3989
3989
|
width: x,
|
|
3990
3990
|
minWidth: x,
|
|
3991
3991
|
textTransform: t && S ? Zr.CAPITALIZE : void 0,
|
|
@@ -3997,17 +3997,17 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
3997
3997
|
style: C,
|
|
3998
3998
|
colSpan: c,
|
|
3999
3999
|
rowSpan: l,
|
|
4000
|
-
children: /* @__PURE__ */ y(
|
|
4000
|
+
children: /* @__PURE__ */ y(nl, {
|
|
4001
4001
|
cell: e,
|
|
4002
4002
|
columnAlignment: g == null ? Yr.RIGHT : g,
|
|
4003
4003
|
isHeader: t,
|
|
4004
4004
|
testId: a
|
|
4005
4005
|
})
|
|
4006
4006
|
});
|
|
4007
|
-
},
|
|
4007
|
+
}, al = ({ row: e, rowIndex: t, isHeader: n = !1, columnCount: r, colSpan: i, columnHeaderAlignments: a = [], columnAlignment: o = [], hasRowActions: s, draggableTable: c = !1, columnWidths: l, dropDisabled: u = !1, height: d, testId: f }) => {
|
|
4008
4008
|
let p = jc(a, n, t), { onRowClick: m, onRowFocus: h, onRowMouseEnter: g, onRowMouseLeave: x, expandedContent: S, error: C, warning: w, active: T } = e, E = e.cells.map((e, r) => {
|
|
4009
4009
|
let i = `${+!n}_${t}_${r}`;
|
|
4010
|
-
return /* @__PURE__ */ y(
|
|
4010
|
+
return /* @__PURE__ */ y(il, {
|
|
4011
4011
|
cell: e,
|
|
4012
4012
|
isHeader: n,
|
|
4013
4013
|
columnAlignment: o[r],
|
|
@@ -4015,9 +4015,9 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
4015
4015
|
width: l ? l[r] : void 0,
|
|
4016
4016
|
testId: e.testId
|
|
4017
4017
|
}, i);
|
|
4018
|
-
}), D = s && /* @__PURE__ */ y(
|
|
4018
|
+
}), D = s && /* @__PURE__ */ y(il, {
|
|
4019
4019
|
cell: {
|
|
4020
|
-
type:
|
|
4020
|
+
type: rl.ACTIONS,
|
|
4021
4021
|
actions: e.actions
|
|
4022
4022
|
},
|
|
4023
4023
|
isHeader: n
|
|
@@ -4078,7 +4078,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
4078
4078
|
flush: S.flush === !0,
|
|
4079
4079
|
children: S.content
|
|
4080
4080
|
}, `${t}_expanded_content`) : null] });
|
|
4081
|
-
},
|
|
4081
|
+
}, ol = (e) => {
|
|
4082
4082
|
let { children: t, colSpan: n, columnAlignment: r, columnCount: i, draggable: a, onListReorder: o = () => {}, canListReorder: s = () => !0, rowActions: c, rows: l = [], tbodyRef: u } = e, [d, p] = h(null), [m, g] = h(!1), v = f(() => l.map((e, t) => t.toString()), [l]);
|
|
4083
4083
|
return a ? /* @__PURE__ */ b(xr, {
|
|
4084
4084
|
collisionDetection: Cr,
|
|
@@ -4113,7 +4113,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
4113
4113
|
dropAnimation: null,
|
|
4114
4114
|
children: /* @__PURE__ */ y("table", {
|
|
4115
4115
|
className: _(os.table, os.dragOverlay),
|
|
4116
|
-
children: /* @__PURE__ */ y("tbody", { children: /* @__PURE__ */ y(
|
|
4116
|
+
children: /* @__PURE__ */ y("tbody", { children: /* @__PURE__ */ y(al, {
|
|
4117
4117
|
rowIndex: Number(d),
|
|
4118
4118
|
row: l[Number(d)],
|
|
4119
4119
|
columnCount: i,
|
|
@@ -4133,7 +4133,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
4133
4133
|
})
|
|
4134
4134
|
}), document.body)]
|
|
4135
4135
|
}) : t({});
|
|
4136
|
-
},
|
|
4136
|
+
}, sl = ({ table: e, children: t }) => {
|
|
4137
4137
|
var n, r, i;
|
|
4138
4138
|
let a = m(null), o = wr({
|
|
4139
4139
|
count: (n = (r = e == null ? void 0 : e.rowCount) == null ? (i = e.rows) == null ? void 0 : i.length : r) == null ? 0 : n,
|
|
@@ -4156,7 +4156,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
4156
4156
|
})()
|
|
4157
4157
|
})
|
|
4158
4158
|
});
|
|
4159
|
-
},
|
|
4159
|
+
}, cl = ({ activeIndex: e, triggerScrollToActiveRow: t, isVirtualized: n, virtualizer: r }) => (l(() => {
|
|
4160
4160
|
if (t && !(e == null || e < 0)) {
|
|
4161
4161
|
if (n && r) r.scrollToIndex(e, {
|
|
4162
4162
|
behavior: "auto",
|
|
@@ -4175,11 +4175,11 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
4175
4175
|
t,
|
|
4176
4176
|
n,
|
|
4177
4177
|
r
|
|
4178
|
-
]), null),
|
|
4178
|
+
]), null), ll = ({ table: e, children: t }) => {
|
|
4179
4179
|
let { infiniteScroll: n = !1, triggerScrollToActiveRow: r = !1, rows: i } = e, a = f(() => typeof e.activeRowIndex == "number" ? e.activeRowIndex : Array.isArray(i) && i.length ? i.findIndex((e) => e && e.active) : -1, [i, e.activeRowIndex]);
|
|
4180
|
-
return n ? /* @__PURE__ */ y(
|
|
4180
|
+
return n ? /* @__PURE__ */ y(sl, {
|
|
4181
4181
|
table: e,
|
|
4182
|
-
children: ({ virtualizer: e, tableStyle: n }) => /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(
|
|
4182
|
+
children: ({ virtualizer: e, tableStyle: n }) => /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(cl, {
|
|
4183
4183
|
isVirtualized: !0,
|
|
4184
4184
|
virtualizer: e,
|
|
4185
4185
|
activeIndex: a,
|
|
@@ -4191,13 +4191,13 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
4191
4191
|
}) : /* @__PURE__ */ b("div", {
|
|
4192
4192
|
id: "scrollWrapper",
|
|
4193
4193
|
className: os.scroll,
|
|
4194
|
-
children: [/* @__PURE__ */ y(
|
|
4194
|
+
children: [/* @__PURE__ */ y(cl, {
|
|
4195
4195
|
isVirtualized: !1,
|
|
4196
4196
|
activeIndex: a,
|
|
4197
4197
|
triggerScrollToActiveRow: r
|
|
4198
4198
|
}), t({})]
|
|
4199
4199
|
});
|
|
4200
|
-
},
|
|
4200
|
+
}, ul = (e) => {
|
|
4201
4201
|
var t, n, r, i, a;
|
|
4202
4202
|
let { onListReorder: o = () => {}, canListReorder: s = () => !0, beforeRenderRow: c, table: l } = e, { columnWidths: u, footer: d, name: f, rows: p = [], actions: h, actionsRight: g, columnHeaderAlignments: v, columnAlignment: x, striped: S = !0, testId: C, draggable: w, defaultEmptyRow: T = null, onAddRow: E = null, bordered: D = !0, maxHeight: O, fixedWidth: k } = l, A = m(null), j = tn(e, "table.headers", []), M = Tc(p, j), N = Dc(p, j), P = M + +!!N, F = d ? (d == null || (t = d.pagination) == null || (t = t.rowsPerPage) == null ? void 0 : t.value) === 0 || Number(d == null || (n = d.pagination) == null ? void 0 : n.selectedPage) >= Number(d == null || (r = d.pagination) == null ? void 0 : r.rowCount) / Number(d == null || (i = d.pagination) == null || (i = i.rowsPerPage) == null ? void 0 : i.value) : !0, I = (T == null || (a = T.cells) == null ? void 0 : a.length) && E && F, L = {
|
|
4203
4203
|
cells: I ? T.cells.map((e, t) => (e == null ? void 0 : e.type) === "Input" ? {
|
|
@@ -4236,7 +4236,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
4236
4236
|
name: f,
|
|
4237
4237
|
testId: C && `${C}-title`
|
|
4238
4238
|
}),
|
|
4239
|
-
/* @__PURE__ */ y(
|
|
4239
|
+
/* @__PURE__ */ y(ol, {
|
|
4240
4240
|
colSpan: P,
|
|
4241
4241
|
columnAlignment: x,
|
|
4242
4242
|
columnCount: M,
|
|
@@ -4246,13 +4246,13 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
4246
4246
|
rows: R,
|
|
4247
4247
|
tbodyRef: A,
|
|
4248
4248
|
canListReorder: s,
|
|
4249
|
-
children: ({ dropDisabled: e }) => /* @__PURE__ */ y(
|
|
4249
|
+
children: ({ dropDisabled: e }) => /* @__PURE__ */ y(ll, {
|
|
4250
4250
|
table: z,
|
|
4251
4251
|
children: ({ virtualizer: t, tableStyle: n }) => /* @__PURE__ */ b("table", {
|
|
4252
4252
|
className: _(os.table, S ? os.striped : ""),
|
|
4253
4253
|
"data-testid": C,
|
|
4254
4254
|
style: n,
|
|
4255
|
-
children: [/* @__PURE__ */ y("thead", { children: j.map((e, t) => /* @__PURE__ */ y(
|
|
4255
|
+
children: [/* @__PURE__ */ y("thead", { children: j.map((e, t) => /* @__PURE__ */ y(al, {
|
|
4256
4256
|
rowIndex: t,
|
|
4257
4257
|
isHeader: !0,
|
|
4258
4258
|
row: e,
|
|
@@ -4267,7 +4267,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
4267
4267
|
ref: A,
|
|
4268
4268
|
children: t ? t.getVirtualItems().map((t) => {
|
|
4269
4269
|
let n = t.index, r = R[n];
|
|
4270
|
-
return /* @__PURE__ */ y(
|
|
4270
|
+
return /* @__PURE__ */ y(al, {
|
|
4271
4271
|
rowIndex: n,
|
|
4272
4272
|
row: c ? c({
|
|
4273
4273
|
row: r,
|
|
@@ -4282,7 +4282,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
4282
4282
|
height: t.size,
|
|
4283
4283
|
dropDisabled: e
|
|
4284
4284
|
}, `1_${n}`);
|
|
4285
|
-
}) : R.map((t, n) => /* @__PURE__ */ y(
|
|
4285
|
+
}) : R.map((t, n) => /* @__PURE__ */ y(al, {
|
|
4286
4286
|
rowIndex: n,
|
|
4287
4287
|
row: c ? c({
|
|
4288
4288
|
row: t,
|
|
@@ -4307,14 +4307,14 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
4307
4307
|
})
|
|
4308
4308
|
]
|
|
4309
4309
|
});
|
|
4310
|
-
},
|
|
4310
|
+
}, dl = "blank", fl = 1e4, pl = (e, t, n, r) => {
|
|
4311
4311
|
let i = `${t} → ${n}:`, a = e.filter((e) => !e.startsWith(i)), o = r ? [...a, `${i} ${r}`] : a;
|
|
4312
4312
|
return {
|
|
4313
4313
|
updatedErrors: o,
|
|
4314
4314
|
isValid: o.length === 0
|
|
4315
4315
|
};
|
|
4316
|
-
},
|
|
4317
|
-
let i = f(() => t.fields.map((e) => ({ value: e })), [t.fields]), [a, o] = h(
|
|
4316
|
+
}, ml = 20, hl = 1, gl = ({ validationRules: e, parsedResult: t, updateState: n, testId: r }) => {
|
|
4317
|
+
let i = f(() => t.fields.map((e) => ({ value: e })), [t.fields]), [a, o] = h(ml), [c, u] = h(hl), d = m([]), p = (c - 1) * a, g = a === 0 ? t.rows.length : p + a, [_, v] = h([]), b = f(() => {
|
|
4318
4318
|
let n = e.filter((e) => !e.optionalColumn);
|
|
4319
4319
|
return t.fields.length === n.length ? n : e;
|
|
4320
4320
|
}, [e, t.fields.length]), x = s((e, r) => (!d.current.length && t.rows.length && (d.current = t.rows[0].map((e) => oc(e) ? "NumberInput" : "Input")), {
|
|
@@ -4328,7 +4328,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
4328
4328
|
disableValidationOnFocus: !0,
|
|
4329
4329
|
error: y,
|
|
4330
4330
|
validationCallback: (e, i) => {
|
|
4331
|
-
let a = `Row ${r + 1}`, { updatedErrors: o, isValid: s } =
|
|
4331
|
+
let a = `Row ${r + 1}`, { updatedErrors: o, isValid: s } = pl(t.errors, a, e, i);
|
|
4332
4332
|
n({ parsedResult: {
|
|
4333
4333
|
...t,
|
|
4334
4334
|
errors: o,
|
|
@@ -4337,7 +4337,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
4337
4337
|
},
|
|
4338
4338
|
onChange: (e) => {
|
|
4339
4339
|
var i;
|
|
4340
|
-
let { value: o } = (i = e == null ? void 0 : e.target) == null ? {} : i, s = `Row ${r + 1}`, c = p(o), { updatedErrors: l, isValid: u } =
|
|
4340
|
+
let { value: o } = (i = e == null ? void 0 : e.target) == null ? {} : i, s = `Row ${r + 1}`, c = p(o), { updatedErrors: l, isValid: u } = pl(t.errors, s, m, c), d = t.rows.map((e, t) => t === r ? e.map((e, t) => t === a ? o : e) : e);
|
|
4341
4341
|
n({ parsedResult: {
|
|
4342
4342
|
...t,
|
|
4343
4343
|
rows: d,
|
|
@@ -4379,7 +4379,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
4379
4379
|
]);
|
|
4380
4380
|
let S = f(() => t.fields.map((e, r) => {
|
|
4381
4381
|
var a, o, s;
|
|
4382
|
-
let c = b == null ? void 0 : b[r], l = Array.isArray(c == null ? void 0 : c.validUnits) ? c.validUnits : [], u = l == null ? void 0 : l.some((e) => _n(e) ===
|
|
4382
|
+
let c = b == null ? void 0 : b[r], l = Array.isArray(c == null ? void 0 : c.validUnits) ? c.validUnits : [], u = l == null ? void 0 : l.some((e) => _n(e) === dl);
|
|
4383
4383
|
if (!l.length || u) return {};
|
|
4384
4384
|
let d = t == null || (a = t.units) == null ? void 0 : a[r], f = _n(d), p = l != null && l.some((e) => _n(e) === f) ? d : (o = c == null ? void 0 : c.defaultUnit) == null ? "" : o;
|
|
4385
4385
|
return {
|
|
@@ -4417,7 +4417,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
4417
4417
|
p,
|
|
4418
4418
|
g
|
|
4419
4419
|
]);
|
|
4420
|
-
return /* @__PURE__ */ y(
|
|
4420
|
+
return /* @__PURE__ */ y(ul, {
|
|
4421
4421
|
beforeRenderRow: s(({ rowIndex: e }) => {
|
|
4422
4422
|
let n = p + e, r = t.rows[n];
|
|
4423
4423
|
return r ? x(r, n) : {
|
|
@@ -4490,7 +4490,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
4490
4490
|
} }
|
|
4491
4491
|
}
|
|
4492
4492
|
});
|
|
4493
|
-
},
|
|
4493
|
+
}, _l = { listStyle: "_listStyle_yjfjw_1" }, vl = ({ errors: e, t }) => {
|
|
4494
4494
|
var n;
|
|
4495
4495
|
let r = (n = [...e]) == null ? void 0 : n.sort((e, t) => {
|
|
4496
4496
|
let n = (e) => {
|
|
@@ -4506,18 +4506,18 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
4506
4506
|
content: t("unableToImportPleaseCorrectError", { rows: e == null ? void 0 : e.length }),
|
|
4507
4507
|
type: "Error",
|
|
4508
4508
|
details: /* @__PURE__ */ y("ul", {
|
|
4509
|
-
className:
|
|
4509
|
+
className: _l.listStyle,
|
|
4510
4510
|
children: r.map((e, t) => /* @__PURE__ */ y("li", { children: e }, t))
|
|
4511
4511
|
})
|
|
4512
4512
|
};
|
|
4513
|
-
},
|
|
4513
|
+
}, yl = ({ errors: e, t }) => e.length ? /* @__PURE__ */ y(as, { message: vl({
|
|
4514
4514
|
errors: e,
|
|
4515
4515
|
t
|
|
4516
|
-
}) }) : null,
|
|
4516
|
+
}) }) : null, bl = {
|
|
4517
4517
|
empty: "_empty_fe425_1",
|
|
4518
4518
|
text: "_text_fe425_11"
|
|
4519
|
-
},
|
|
4520
|
-
className:
|
|
4519
|
+
}, xl = ({ width: e = "auto", height: t = "auto", text: n = "No data", children: r, testId: i }) => /* @__PURE__ */ b("div", {
|
|
4520
|
+
className: bl.empty,
|
|
4521
4521
|
style: {
|
|
4522
4522
|
width: e,
|
|
4523
4523
|
height: t
|
|
@@ -4553,7 +4553,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
4553
4553
|
})
|
|
4554
4554
|
}),
|
|
4555
4555
|
n !== "" && /* @__PURE__ */ y("div", {
|
|
4556
|
-
className:
|
|
4556
|
+
className: bl.text,
|
|
4557
4557
|
children: /* @__PURE__ */ y(so, {
|
|
4558
4558
|
faint: !0,
|
|
4559
4559
|
children: n
|
|
@@ -4561,52 +4561,52 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
4561
4561
|
}),
|
|
4562
4562
|
r
|
|
4563
4563
|
]
|
|
4564
|
-
}),
|
|
4564
|
+
}), Sl = (e) => {
|
|
4565
4565
|
var t;
|
|
4566
4566
|
return e == null || (t = e.split(/;|\t|\n/)) == null ? void 0 : t.some((e) => {
|
|
4567
4567
|
let t = e == null ? void 0 : e.match(/[.,]/g);
|
|
4568
4568
|
return t && t.length > 1;
|
|
4569
4569
|
});
|
|
4570
|
-
},
|
|
4570
|
+
}, Cl = (e) => {
|
|
4571
4571
|
var t;
|
|
4572
4572
|
return e == null || (t = e.split(/;|\t|\n/)) == null ? void 0 : t.some((e) => {
|
|
4573
4573
|
var t;
|
|
4574
4574
|
return !(e != null && e.includes(".")) && (e == null || (t = e.match(/,/g)) == null ? void 0 : t.length) === 1;
|
|
4575
4575
|
});
|
|
4576
|
-
},
|
|
4576
|
+
}, wl = (e, t, n) => e >= t - n, Tl = (e) => !!e && e !== "blank" && e.trim() !== "", El = (e, t, n, r, i, a, o) => {
|
|
4577
4577
|
let s = [], c = r.filter((e) => e.optionalColumn).length, l = r.length, u = c ? `${l - c} or ${l}` : `${l}`, d = i && a ? 2 : i || a ? 1 : 0;
|
|
4578
|
-
if (i && !
|
|
4578
|
+
if (i && !wl(e.length, l, c) && s.push(o("incorrectNumberOfFieldNameHeaderColumns", { expectedLengthMessage: u })), a) {
|
|
4579
4579
|
var f, p;
|
|
4580
4580
|
let e = r.filter((e) => {
|
|
4581
4581
|
var t;
|
|
4582
|
-
return !e.optionalColumn && Array.isArray(e == null ? void 0 : e.validUnits) && (e == null || (t = e.validUnits) == null ? void 0 : t.some(
|
|
4582
|
+
return !e.optionalColumn && Array.isArray(e == null ? void 0 : e.validUnits) && (e == null || (t = e.validUnits) == null ? void 0 : t.some(Tl));
|
|
4583
4583
|
}).length;
|
|
4584
|
-
|
|
4584
|
+
wl(t == null || (f = t.filter(Tl)) == null ? void 0 : f.length, e, r == null || (p = r.filter((e) => (e == null ? void 0 : e.optionalColumn) || !Array.isArray(e == null ? void 0 : e.validUnits) || e.validUnits.includes("blank"))) == null ? void 0 : p.length) || s.push(o("incorrectNumberOfUnitHeaderColumns", { expectedLengthMessage: u }));
|
|
4585
4585
|
}
|
|
4586
4586
|
return n.length === 0 ? s.push(o("incorrectNumberOfDataColumns", {
|
|
4587
4587
|
expectedLengthMessage: u,
|
|
4588
4588
|
dataRowStartIndex: d
|
|
4589
4589
|
})) : n.forEach((e, t) => {
|
|
4590
|
-
|
|
4590
|
+
wl(e.length, l, c) || s.push(o("incorrectNumberOfDataColumns", {
|
|
4591
4591
|
expectedLengthMessage: u,
|
|
4592
4592
|
dataRowStartIndex: d + t
|
|
4593
4593
|
}));
|
|
4594
4594
|
}), s;
|
|
4595
|
-
},
|
|
4595
|
+
}, Dl = (e) => e.toUpperCase().replace(/\(.*?\)/g, "").replace(/[^A-Z0-9]/g, "").trim(), Ol = ({ value: e, defaultAllowedValues: t }) => {
|
|
4596
4596
|
var n;
|
|
4597
|
-
let r =
|
|
4598
|
-
return (n = t == null ? void 0 : t.some((e) =>
|
|
4599
|
-
},
|
|
4597
|
+
let r = Dl(e);
|
|
4598
|
+
return (n = t == null ? void 0 : t.some((e) => Dl(e).includes(r) || r.includes(Dl(e)))) == null ? !1 : n;
|
|
4599
|
+
}, kl = ({ value: e, defaultAllowedValues: t }) => {
|
|
4600
4600
|
var n;
|
|
4601
4601
|
return (n = t == null ? void 0 : t.includes(e)) == null ? !1 : n;
|
|
4602
|
-
},
|
|
4602
|
+
}, Al = (e, t, n, r, i, a) => {
|
|
4603
4603
|
let o = [];
|
|
4604
4604
|
if (r) {
|
|
4605
4605
|
let r = n.map((e) => e.fieldName).filter(Boolean);
|
|
4606
4606
|
e.forEach((i, s) => {
|
|
4607
4607
|
var c, l;
|
|
4608
4608
|
let u = n[s];
|
|
4609
|
-
if (!(!u || !(u != null && u.fieldName)) && !((c = (l = n[s]) == null ? void 0 : l.fieldNameValidator) == null ?
|
|
4609
|
+
if (!(!u || !(u != null && u.fieldName)) && !((c = (l = n[s]) == null ? void 0 : l.fieldNameValidator) == null ? Ol : c)({
|
|
4610
4610
|
value: i,
|
|
4611
4611
|
defaultAllowedValues: r,
|
|
4612
4612
|
columnIndex: s,
|
|
@@ -4628,7 +4628,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
4628
4628
|
var l, u;
|
|
4629
4629
|
let d = n[c];
|
|
4630
4630
|
if (!d || d != null && d.optionalColumn) return;
|
|
4631
|
-
let f = (l = d.unitsValidator) == null ?
|
|
4631
|
+
let f = (l = d.unitsValidator) == null ? kl : l, p = (u = i == null ? void 0 : i[c]) == null ? [] : u;
|
|
4632
4632
|
f({
|
|
4633
4633
|
value: r,
|
|
4634
4634
|
defaultAllowedValues: p,
|
|
@@ -4644,7 +4644,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
4644
4644
|
});
|
|
4645
4645
|
}
|
|
4646
4646
|
return o;
|
|
4647
|
-
},
|
|
4647
|
+
}, jl = (e, t, n) => {
|
|
4648
4648
|
let r = [];
|
|
4649
4649
|
return e.forEach((e, i) => {
|
|
4650
4650
|
e.forEach((e, a) => {
|
|
@@ -4657,91 +4657,91 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
4657
4657
|
})}`);
|
|
4658
4658
|
});
|
|
4659
4659
|
}), r;
|
|
4660
|
-
},
|
|
4661
|
-
let s =
|
|
4662
|
-
return s.length === 0 && (s = s.concat(
|
|
4660
|
+
}, Ml = (e, t, n, r, i, a, o) => {
|
|
4661
|
+
let s = El(e, t, n, r, i, a, o);
|
|
4662
|
+
return s.length === 0 && (s = s.concat(Al(e, t, r, i, a, o), jl(n, r, o))), {
|
|
4663
4663
|
isValid: s.length === 0,
|
|
4664
4664
|
errors: s
|
|
4665
4665
|
};
|
|
4666
|
-
},
|
|
4666
|
+
}, Nl = (e, t, n) => {
|
|
4667
4667
|
var r, i, a, o, s, c, l, u, d, f, p, m, h, g;
|
|
4668
4668
|
let _ = (e) => e.replace(/,/g, "."), v = (r = (i = e[0]) == null ? void 0 : i.some((e) => isNaN(Number(_(e))))) == null ? !1 : r, y = (a = (o = e[1]) == null ? void 0 : o.some((e) => isNaN(Number(_(e))))) == null ? !1 : a, b = (s = (c = e[0]) == null ? void 0 : c.some((e) => t.includes(e))) == null ? !1 : s, x = (l = (u = e[0]) == null ? void 0 : u.some((e) => n.includes(e))) == null ? !1 : l, S = (d = (f = e[1]) == null ? void 0 : f.some((e) => n.includes(e))) == null ? !1 : d, C = (p = (m = e[0]) == null ? void 0 : m.some((e) => !isNaN(Number(_(e))))) == null ? !1 : p, w = (h = (g = e[1]) == null ? void 0 : g.some((e) => !isNaN(Number(_(e))))) == null ? !1 : h;
|
|
4669
4669
|
return {
|
|
4670
4670
|
hasFieldNameHeader: b || v && !x && !C || v && y && !C,
|
|
4671
4671
|
hasUnitHeader: x || S || v && y && !x && !C && !w || v && y && !C && !w
|
|
4672
4672
|
};
|
|
4673
|
-
},
|
|
4673
|
+
}, Pl = (e, { validationRules: t }) => {
|
|
4674
4674
|
var n, r, i;
|
|
4675
4675
|
let a = (t == null ? void 0 : t.length) === ((n = e == null || (r = e[0]) == null ? void 0 : r.length) == null ? 0 : n) ? t : t == null ? void 0 : t.filter((e) => !(e != null && e.optionalColumn)), o = a == null ? void 0 : a.map((e) => e == null ? void 0 : e.fieldName), s = (e) => Array.isArray(e) && e.length ? e[0] : "", c = a == null ? void 0 : a.map((e) => {
|
|
4676
4676
|
var t;
|
|
4677
4677
|
return (t = e == null ? void 0 : e.defaultUnit) == null ? s(e == null ? void 0 : e.validUnits) : t;
|
|
4678
|
-
}), { hasFieldNameHeader: l, hasUnitHeader: u } =
|
|
4678
|
+
}), { hasFieldNameHeader: l, hasUnitHeader: u } = Nl(e, o, a == null || (i = a.map((e) => e == null ? void 0 : e.validUnits)) == null || (i = i.filter((e) => !!e)) == null ? void 0 : i.flat());
|
|
4679
4679
|
return l || e == null || e.unshift(o), u || e == null || e.splice(1, 0, c), {
|
|
4680
4680
|
hasFieldNameHeader: l,
|
|
4681
4681
|
hasUnitHeader: u
|
|
4682
4682
|
};
|
|
4683
|
-
},
|
|
4683
|
+
}, Fl = (e) => Math.round(e * 100) / 100, Il = (e) => e.join(", ").replace(/,\s*$/, ""), Ll = {
|
|
4684
4684
|
skipEmptyLines: !0,
|
|
4685
4685
|
delimiter: (e) => {
|
|
4686
4686
|
var t, n;
|
|
4687
4687
|
let r = e.substring(0, 200), i = ((t = r.match(/\t/g)) == null ? [] : t).length, a = ((n = r.match(/;/g)) == null ? [] : n).length;
|
|
4688
4688
|
return i === 0 && a === 0 ? "," : i > a ? " " : ";";
|
|
4689
4689
|
}
|
|
4690
|
-
},
|
|
4690
|
+
}, Rl = [
|
|
4691
4691
|
"text/csv",
|
|
4692
4692
|
"text/plain",
|
|
4693
4693
|
"application/json",
|
|
4694
4694
|
"application/vnd.ms-excel"
|
|
4695
|
-
],
|
|
4695
|
+
], zl = (e) => Rl.includes(e.type), Bl = (e) => e instanceof File, Vl = (e) => e.trim().startsWith("["), Hl = (e) => {
|
|
4696
4696
|
try {
|
|
4697
4697
|
var t;
|
|
4698
4698
|
return !!((t = JSON.parse(e)) != null && t.path);
|
|
4699
4699
|
} catch {
|
|
4700
4700
|
return !1;
|
|
4701
4701
|
}
|
|
4702
|
-
},
|
|
4702
|
+
}, Ul = (e) => new Promise((t, n) => {
|
|
4703
4703
|
let r = new FileReader();
|
|
4704
4704
|
r.onload = () => t(String(r.result)), r.onerror = n, r.readAsText(e);
|
|
4705
|
-
}),
|
|
4705
|
+
}), Wl = async (e, t, n) => {
|
|
4706
4706
|
try {
|
|
4707
|
-
return
|
|
4707
|
+
return Zl({
|
|
4708
4708
|
data: JSON.parse(e),
|
|
4709
4709
|
errors: []
|
|
4710
4710
|
}, t, n);
|
|
4711
4711
|
} catch (e) {
|
|
4712
4712
|
throw Error(`${n("jsonParseFailed")} ${e.message}`);
|
|
4713
4713
|
}
|
|
4714
|
-
},
|
|
4714
|
+
}, Gl = async (e, t, n) => {
|
|
4715
4715
|
try {
|
|
4716
4716
|
let r = JSON.parse(e).path.map((e) => [
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4717
|
+
Fl(e.md),
|
|
4718
|
+
Fl(e.inclination),
|
|
4719
|
+
Fl(e.gridAzimuth)
|
|
4720
4720
|
]);
|
|
4721
4721
|
return r.unshift([
|
|
4722
4722
|
"m",
|
|
4723
4723
|
"deg",
|
|
4724
4724
|
"deg"
|
|
4725
|
-
]),
|
|
4725
|
+
]), Zl({
|
|
4726
4726
|
data: r,
|
|
4727
4727
|
errors: []
|
|
4728
4728
|
}, t, n);
|
|
4729
4729
|
} catch (e) {
|
|
4730
4730
|
throw Error(`${n("jsonParseFailed")} ${e.message}`);
|
|
4731
4731
|
}
|
|
4732
|
-
},
|
|
4732
|
+
}, Kl = (e) => e.replace(",", "."), ql = (e) => e.map((e) => e.map((e) => Kl(e))), Jl = (e, { importLimit: t, ...n }, r) => new Promise((i) => {
|
|
4733
4733
|
Er.parse(e, {
|
|
4734
|
-
...
|
|
4734
|
+
...Ll,
|
|
4735
4735
|
preview: t,
|
|
4736
4736
|
complete: (e) => {
|
|
4737
|
-
let a =
|
|
4737
|
+
let a = Zl(e, {
|
|
4738
4738
|
importLimit: t,
|
|
4739
4739
|
...n
|
|
4740
4740
|
}, r);
|
|
4741
|
-
a.rows =
|
|
4741
|
+
a.rows = ql(a.rows), i(a);
|
|
4742
4742
|
}
|
|
4743
4743
|
});
|
|
4744
|
-
}),
|
|
4744
|
+
}), Yl = async (e, t, n) => {
|
|
4745
4745
|
let r = {
|
|
4746
4746
|
isValid: !1,
|
|
4747
4747
|
fields: [],
|
|
@@ -4750,13 +4750,13 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
4750
4750
|
errors: []
|
|
4751
4751
|
};
|
|
4752
4752
|
try {
|
|
4753
|
-
if (
|
|
4754
|
-
let i =
|
|
4755
|
-
return
|
|
4753
|
+
if (Bl(e) && !zl(e)) return r.errors.push(`${n("wrongFileFormatExpectedOneOf")} ${Il(Array.from(Rl))}`), r;
|
|
4754
|
+
let i = Bl(e) ? await Ul(e) : e;
|
|
4755
|
+
return Vl(i) ? await Wl(i, t, n) : Hl(i) ? await Gl(i, t, n) : await Jl(e, t, n);
|
|
4756
4756
|
} catch (e) {
|
|
4757
4757
|
return r.errors.push(e.message), r;
|
|
4758
4758
|
}
|
|
4759
|
-
},
|
|
4759
|
+
}, Xl = (e, t, n, r) => {
|
|
4760
4760
|
var i;
|
|
4761
4761
|
let a = (i = r == null ? void 0 : r.delimiter) == null ? "," : i, o = [
|
|
4762
4762
|
e,
|
|
@@ -4768,7 +4768,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
4768
4768
|
header: !0,
|
|
4769
4769
|
delimiter: a
|
|
4770
4770
|
});
|
|
4771
|
-
},
|
|
4771
|
+
}, Zl = (e, t, n) => {
|
|
4772
4772
|
let { data: r, errors: i } = e, a = {
|
|
4773
4773
|
isValid: !1,
|
|
4774
4774
|
fields: [],
|
|
@@ -4777,15 +4777,15 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
4777
4777
|
errors: i.map((e) => e.message)
|
|
4778
4778
|
};
|
|
4779
4779
|
if (i.length > 0) return a;
|
|
4780
|
-
let { hasFieldNameHeader: o, hasUnitHeader: s } =
|
|
4780
|
+
let { hasFieldNameHeader: o, hasUnitHeader: s } = Pl(r, t);
|
|
4781
4781
|
a.fields = r[0].map((e) => e.trim()), a.units = r[1].map((e) => e.trim()).filter(Boolean), a.rows = r.slice(2);
|
|
4782
4782
|
let { validationRules: c } = t;
|
|
4783
4783
|
if (c.length) {
|
|
4784
|
-
let { isValid: e, errors: t } =
|
|
4784
|
+
let { isValid: e, errors: t } = Ml(a.fields, a.units, a.rows, c, o, s, n);
|
|
4785
4785
|
a.errors.push(...t), a.isValid = e && t.length === 0;
|
|
4786
4786
|
} else a.isValid = a.errors.length === 0;
|
|
4787
4787
|
return a;
|
|
4788
|
-
},
|
|
4788
|
+
}, Ql = ({ id: e, message: t = {
|
|
4789
4789
|
type: $o.INFO,
|
|
4790
4790
|
content: ""
|
|
4791
4791
|
}, autoClose: n = 6e3, onClose: r }) => {
|
|
@@ -4826,22 +4826,22 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
4826
4826
|
transition: Dr,
|
|
4827
4827
|
type: s
|
|
4828
4828
|
});
|
|
4829
|
-
},
|
|
4829
|
+
}, $l = (e) => {
|
|
4830
4830
|
kr.dismiss(e);
|
|
4831
|
-
},
|
|
4831
|
+
}, eu = (e, t) => {
|
|
4832
4832
|
t(() => {
|
|
4833
|
-
|
|
4833
|
+
Ql({ ...e });
|
|
4834
4834
|
});
|
|
4835
|
-
},
|
|
4835
|
+
}, tu = {
|
|
4836
4836
|
toggle: "_toggle_18fme_9",
|
|
4837
4837
|
small: "_small_18fme_25",
|
|
4838
4838
|
disabled: "_disabled_18fme_105",
|
|
4839
4839
|
noMargin: "_noMargin_18fme_113",
|
|
4840
4840
|
helpIconEnabled: "_helpIconEnabled_18fme_116"
|
|
4841
|
-
},
|
|
4841
|
+
}, nu = ({ name: e, label: t, checked: n = !1, disabled: r, display: i, small: a = !1, onChange: o, noMargin: s = !1, testId: l, helpText: u, onClickHelp: d, textTransform: f = Zr.CAPITALIZE }) => {
|
|
4842
4842
|
let p = c(U), m = u || d, h = r || p;
|
|
4843
4843
|
return /* @__PURE__ */ b("div", {
|
|
4844
|
-
className: _(
|
|
4844
|
+
className: _(tu.toggle, h ? tu.disabled : null, a ? tu.small : null, s ? tu.noMargin : null),
|
|
4845
4845
|
style: { display: i },
|
|
4846
4846
|
onClick: (t) => {
|
|
4847
4847
|
h || (t.target.name = e, t.target.checked = !n, t.target.value = !n, o(t));
|
|
@@ -4861,13 +4861,13 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
4861
4861
|
children: t
|
|
4862
4862
|
}),
|
|
4863
4863
|
m && /* @__PURE__ */ y("div", {
|
|
4864
|
-
className:
|
|
4864
|
+
className: tu.helpIconEnabled,
|
|
4865
4865
|
onClick: d,
|
|
4866
4866
|
children: /* @__PURE__ */ y(Fi, { text: u })
|
|
4867
4867
|
})
|
|
4868
4868
|
]
|
|
4869
4869
|
});
|
|
4870
|
-
},
|
|
4870
|
+
}, ru = ({ config: e, state: t, updateState: n, setModalVisibility: r, onCloseModal: i, readAndParseInput: a, validationRules: o = [], onCompleteImport: c = () => {}, prevalidationConfig: l, t: u, loading: d, startTransition: f, testId: p }) => {
|
|
4871
4871
|
let { modalVisibility: { reviewPasteModal: g, pasteModalHelpVisible: _, helpModal: x } } = t, { warningMessage: S, actionButtonLabel: C, changeRulesAction: w, checkPrevalidationNeed: T } = l == null ? {} : l, E = m(null), [D, O] = h(!1), [k, A] = h({
|
|
4872
4872
|
pastedText: "",
|
|
4873
4873
|
parsedResult: {
|
|
@@ -4890,8 +4890,8 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
4890
4890
|
var n, r, i;
|
|
4891
4891
|
let t = Tr(I == null || (n = I.rows) == null ? void 0 : n.map(([e, t]) => [Number(e), Number(t)]), .001).map(([e, t]) => [e.toString(), t.toString()]), a = {
|
|
4892
4892
|
validationRules: o,
|
|
4893
|
-
importLimit: (r = e.importLimit) == null ?
|
|
4894
|
-
}, s =
|
|
4893
|
+
importLimit: (r = e.importLimit) == null ? fl : r
|
|
4894
|
+
}, s = Xl(I.fields.slice(0, 2), ((i = I.units) == null ? [] : i).slice(0, 2), t, a);
|
|
4895
4895
|
f(() => A({
|
|
4896
4896
|
parsedResult: {
|
|
4897
4897
|
...I,
|
|
@@ -4921,17 +4921,17 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
4921
4921
|
}, N = () => {
|
|
4922
4922
|
r("helpModal", !x);
|
|
4923
4923
|
}, P = () => {
|
|
4924
|
-
n(k), c(k.parsedResult), i(),
|
|
4924
|
+
n(k), c(k.parsedResult), i(), eu({ message: {
|
|
4925
4925
|
type: "Success",
|
|
4926
4926
|
content: u("pasteSuccessful")
|
|
4927
4927
|
} }, f);
|
|
4928
|
-
}, { pastedText: F, parsedResult: I } = k, L = T && T(I), { isValid: R, errors: z } = I, ee = z.length, te = F === "", ne =
|
|
4928
|
+
}, { pastedText: F, parsedResult: I } = k, L = T && T(I), { isValid: R, errors: z } = I, ee = z.length, te = F === "", ne = Cl(F), re = Sl(F), B = /* @__PURE__ */ b(v, { children: [
|
|
4929
4929
|
/* @__PURE__ */ b("div", {
|
|
4930
4930
|
className: Zo.headerContainer,
|
|
4931
4931
|
children: [
|
|
4932
4932
|
/* @__PURE__ */ y(G, {
|
|
4933
4933
|
text: u("downsampleTooltip"),
|
|
4934
|
-
children: /* @__PURE__ */ y(
|
|
4934
|
+
children: /* @__PURE__ */ y(nu, {
|
|
4935
4935
|
label: u("downsampled"),
|
|
4936
4936
|
checked: D,
|
|
4937
4937
|
onChange: () => j(!D),
|
|
@@ -4964,7 +4964,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
4964
4964
|
}),
|
|
4965
4965
|
te ? /* @__PURE__ */ y("div", {
|
|
4966
4966
|
className: Zo.resultContainer,
|
|
4967
|
-
children: /* @__PURE__ */ y(
|
|
4967
|
+
children: /* @__PURE__ */ y(xl, {
|
|
4968
4968
|
text: null,
|
|
4969
4969
|
children: /* @__PURE__ */ b("div", {
|
|
4970
4970
|
className: Zo.emptyState,
|
|
@@ -5000,7 +5000,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
5000
5000
|
}) : /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ b("div", {
|
|
5001
5001
|
className: Zo.messagesContainer,
|
|
5002
5002
|
children: [
|
|
5003
|
-
ee ? /* @__PURE__ */ y(
|
|
5003
|
+
ee ? /* @__PURE__ */ y(yl, {
|
|
5004
5004
|
errors: z,
|
|
5005
5005
|
t: u
|
|
5006
5006
|
}) : null,
|
|
@@ -5023,7 +5023,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
5023
5023
|
type: "Warning"
|
|
5024
5024
|
} })
|
|
5025
5025
|
]
|
|
5026
|
-
}), /* @__PURE__ */ y(
|
|
5026
|
+
}), /* @__PURE__ */ y(gl, {
|
|
5027
5027
|
validationRules: o,
|
|
5028
5028
|
parsedResult: I,
|
|
5029
5029
|
updateState: (e) => A((t) => ({
|
|
@@ -5065,7 +5065,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
5065
5065
|
onClose: i
|
|
5066
5066
|
} })
|
|
5067
5067
|
});
|
|
5068
|
-
},
|
|
5068
|
+
}, iu = ({ modals: e = [], modalVisibility: n, onCloseModal: r, testId: i }) => e.length ? /* @__PURE__ */ y(v, { children: e.map(({ name: e, component: a, props: o = {} }) => {
|
|
5069
5069
|
var s;
|
|
5070
5070
|
return /* @__PURE__ */ y(t, { children: /* @__PURE__ */ y(a, {
|
|
5071
5071
|
testId: `${i}-modal-render-${e}`,
|
|
@@ -5073,7 +5073,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
5073
5073
|
onClose: () => r({ name: e }),
|
|
5074
5074
|
...o
|
|
5075
5075
|
}) }, e);
|
|
5076
|
-
}) }) : null,
|
|
5076
|
+
}) }) : null, au = ({ sections: e, iconName: t, testId: n, tooltip: r }) => /* @__PURE__ */ y(xa, {
|
|
5077
5077
|
loading: !0,
|
|
5078
5078
|
menu: {
|
|
5079
5079
|
component: /* @__PURE__ */ y(K, {
|
|
@@ -5089,18 +5089,18 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
5089
5089
|
sections: e
|
|
5090
5090
|
},
|
|
5091
5091
|
testId: n
|
|
5092
|
-
}),
|
|
5092
|
+
}), ou = (e, t, n) => s(async () => {
|
|
5093
5093
|
if (n) try {
|
|
5094
5094
|
return await n();
|
|
5095
5095
|
} catch (t) {
|
|
5096
|
-
console.error("beforeExportData failed", t),
|
|
5096
|
+
console.error("beforeExportData failed", t), Ql({ message: {
|
|
5097
5097
|
type: "Error",
|
|
5098
5098
|
content: e("unableToPrepareExportData")
|
|
5099
5099
|
} });
|
|
5100
5100
|
return;
|
|
5101
5101
|
}
|
|
5102
5102
|
return t;
|
|
5103
|
-
}, [t, n]),
|
|
5103
|
+
}, [t, n]), su = {
|
|
5104
5104
|
cancel: "Cancel",
|
|
5105
5105
|
chooseFile: "Choose file",
|
|
5106
5106
|
copyDecimalComma: "Copy (decimal comma)",
|
|
@@ -5159,26 +5159,26 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
5159
5159
|
smartUpload_description: "Upload image and extract table content using a LLM",
|
|
5160
5160
|
smartUpload_smartUpload: "Smart Upload",
|
|
5161
5161
|
toUploadOrImportFromClipboardMessage: "To upload or import from clipboard please select your preferred unit in the table header and upload or paste numbers only for Depth, Inc, Azi. Follow example below"
|
|
5162
|
-
},
|
|
5163
|
-
let t = Object.keys(
|
|
5164
|
-
let r =
|
|
5162
|
+
}, cu = (e, t = {}) => e == null ? void 0 : e.replace(/\{\{(\w+)\}\}/g, (e, n) => (t == null ? void 0 : t[n]) === void 0 ? "" : String(t == null ? void 0 : t[n])), lu = (e) => f(() => {
|
|
5163
|
+
let t = Object.keys(su).reduce((t, n) => {
|
|
5164
|
+
let r = su == null ? void 0 : su[n], i = e == null ? void 0 : e[n];
|
|
5165
5165
|
return t[n] = i == null ? r : i, t;
|
|
5166
5166
|
}, {});
|
|
5167
5167
|
return (e, n) => {
|
|
5168
5168
|
let r = t[e];
|
|
5169
|
-
return n ?
|
|
5169
|
+
return n ? cu(r, n) : r;
|
|
5170
5170
|
};
|
|
5171
|
-
}, [e]),
|
|
5171
|
+
}, [e]), uu = /^\s*-?\d+(?:[.,]\d+)?(?:e[+-]?\d+)?\s*$/i, du = (e) => {
|
|
5172
5172
|
var t;
|
|
5173
5173
|
return {
|
|
5174
5174
|
...e,
|
|
5175
5175
|
rows: e == null || (t = e.rows) == null ? void 0 : t.map((e) => e.map((e) => {
|
|
5176
5176
|
let t = String(e == null ? "" : e);
|
|
5177
|
-
return
|
|
5177
|
+
return uu.test(t) ? Hn(t) : t;
|
|
5178
5178
|
}))
|
|
5179
5179
|
};
|
|
5180
|
-
},
|
|
5181
|
-
let { exportData: a, beforeExportData: o, importLimit: c =
|
|
5180
|
+
}, fu = ({ config: e, state: t, setState: n, smartUploadConfig: r, startTransition: i }) => {
|
|
5181
|
+
let { exportData: a, beforeExportData: o, importLimit: c = fl, validationRules: l = [], translations: u, onImportComplete: d = () => {}, disablePasteSuccessfulToast: f, prevalidationConfig: p, onDeleteRows: m } = e == null ? {} : e, { parsedResult: h } = t, { checkPrevalidationNeed: g } = p == null ? {} : p, _ = lu(u), v = ou(_, a, o), y = s((e) => {
|
|
5182
5182
|
n((t) => ({
|
|
5183
5183
|
...t,
|
|
5184
5184
|
...e
|
|
@@ -5222,9 +5222,9 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
5222
5222
|
let t = {
|
|
5223
5223
|
validationRules: l,
|
|
5224
5224
|
importLimit: c
|
|
5225
|
-
}, n =
|
|
5225
|
+
}, n = du(await Yl(e, t, _));
|
|
5226
5226
|
if (g && g(h)) {
|
|
5227
|
-
let { fields: e, units: r, rows: a } = n, o =
|
|
5227
|
+
let { fields: e, units: r, rows: a } = n, o = Xl(e, r == null ? [] : r, a, t);
|
|
5228
5228
|
return i(() => y({
|
|
5229
5229
|
pastedText: o,
|
|
5230
5230
|
parsedResult: h
|
|
@@ -5250,20 +5250,20 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
5250
5250
|
let { fromFile: t, showSuccessToast: n = !0 } = e == null ? {} : e, r;
|
|
5251
5251
|
try {
|
|
5252
5252
|
if (r = t ? await t.text() : await navigator.clipboard.readText(), !r) {
|
|
5253
|
-
|
|
5253
|
+
eu({ message: {
|
|
5254
5254
|
type: "Error",
|
|
5255
5255
|
content: _(t ? "fileReadOrParseFailed" : "clipboardReadNotAllowed")
|
|
5256
5256
|
} }, i);
|
|
5257
5257
|
return;
|
|
5258
5258
|
}
|
|
5259
|
-
let e =
|
|
5259
|
+
let e = du(await Yl(r, {
|
|
5260
5260
|
validationRules: l,
|
|
5261
5261
|
importLimit: c
|
|
5262
5262
|
}, _));
|
|
5263
|
-
return e != null && e.isValid ||
|
|
5263
|
+
return e != null && e.isValid || eu({ message: {
|
|
5264
5264
|
type: "Error",
|
|
5265
5265
|
content: _("clipboardReadFailed")
|
|
5266
|
-
} }, i), n &&
|
|
5266
|
+
} }, i), n && eu({ message: {
|
|
5267
5267
|
type: "Success",
|
|
5268
5268
|
content: _("pasteSuccessful")
|
|
5269
5269
|
} }, i), {
|
|
@@ -5271,7 +5271,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
5271
5271
|
parsedResult: e
|
|
5272
5272
|
};
|
|
5273
5273
|
} catch (e) {
|
|
5274
|
-
|
|
5274
|
+
eu({ message: {
|
|
5275
5275
|
type: "Error",
|
|
5276
5276
|
content: _(t ? "fileReadOrParseFailed" : "clipboardReadNotAllowed"),
|
|
5277
5277
|
details: e.message
|
|
@@ -5284,10 +5284,10 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
5284
5284
|
let n = e == null || (t = e.target) == null || (t = t.files) == null ? void 0 : t[0];
|
|
5285
5285
|
if (!n) return;
|
|
5286
5286
|
let r = await C(await n.text());
|
|
5287
|
-
r.isValid ? (f ||
|
|
5287
|
+
r.isValid ? (f || eu({ message: {
|
|
5288
5288
|
type: "Success",
|
|
5289
5289
|
content: _("pasteSuccessful")
|
|
5290
|
-
} }, i), i(() => d(r))) :
|
|
5290
|
+
} }, i), i(() => d(r))) : eu({ message: {
|
|
5291
5291
|
type: "Error",
|
|
5292
5292
|
content: _("fileParsingFailed")
|
|
5293
5293
|
} }, i);
|
|
@@ -5301,7 +5301,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
5301
5301
|
try {
|
|
5302
5302
|
let t = await navigator.clipboard.readText();
|
|
5303
5303
|
if (!t) {
|
|
5304
|
-
|
|
5304
|
+
eu({ message: {
|
|
5305
5305
|
type: "Error",
|
|
5306
5306
|
content: _("clipboardIsEmpty")
|
|
5307
5307
|
} }, i);
|
|
@@ -5309,18 +5309,18 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
5309
5309
|
}
|
|
5310
5310
|
let n = await C(t);
|
|
5311
5311
|
if (!n.isValid) {
|
|
5312
|
-
|
|
5312
|
+
eu({ message: {
|
|
5313
5313
|
type: "Error",
|
|
5314
5314
|
content: _("clipboardReadFailed")
|
|
5315
5315
|
} }, i);
|
|
5316
5316
|
return;
|
|
5317
5317
|
}
|
|
5318
|
-
f ||
|
|
5318
|
+
f || eu({ message: {
|
|
5319
5319
|
type: "Success",
|
|
5320
5320
|
content: _("pasteSuccessful")
|
|
5321
5321
|
} }, i), e && i(() => d(n));
|
|
5322
5322
|
} catch {
|
|
5323
|
-
|
|
5323
|
+
eu({ message: {
|
|
5324
5324
|
type: "Error",
|
|
5325
5325
|
content: _("clipboardReadNotAllowed")
|
|
5326
5326
|
} }, i);
|
|
@@ -5335,14 +5335,14 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
5335
5335
|
onClickCopyClipboard: s(async (e) => {
|
|
5336
5336
|
let t = await v();
|
|
5337
5337
|
if (!t) return;
|
|
5338
|
-
let { fields: n = [], units: r = [], rows: a = [] } = t, o = (r == null ? [] : r).map((e) => e != null && e.length ? e :
|
|
5338
|
+
let { fields: n = [], units: r = [], rows: a = [] } = t, o = (r == null ? [] : r).map((e) => e != null && e.length ? e : dl).slice(0, n.length), s = (e, t) => t === "comma" ? e.replace(/\./g, ",") : e, c = Xl(n, o, a.map((t) => t.map((t) => Ar(t) ? "" : s(t.toString(), e))), { delimiter: " " });
|
|
5339
5339
|
try {
|
|
5340
|
-
await navigator.clipboard.writeText(c),
|
|
5340
|
+
await navigator.clipboard.writeText(c), eu({ message: {
|
|
5341
5341
|
type: "Success",
|
|
5342
5342
|
content: _("copiedToClipboard")
|
|
5343
5343
|
} }, i);
|
|
5344
5344
|
} catch (e) {
|
|
5345
|
-
|
|
5345
|
+
eu({ message: {
|
|
5346
5346
|
type: "Error",
|
|
5347
5347
|
content: _("unableToCopyToClipboard"),
|
|
5348
5348
|
details: e.message
|
|
@@ -5352,14 +5352,14 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
5352
5352
|
onSmartUploadResult: s((e) => {
|
|
5353
5353
|
let t = dn(e) && fn(e.errorMessage) ? e.errorMessage : void 0;
|
|
5354
5354
|
if (t) {
|
|
5355
|
-
|
|
5355
|
+
eu({ message: {
|
|
5356
5356
|
type: "Error",
|
|
5357
5357
|
content: t || "Smart upload failed."
|
|
5358
5358
|
} }, i);
|
|
5359
5359
|
return;
|
|
5360
5360
|
}
|
|
5361
5361
|
if (!nn(e) || e.length < 2 || !en(e, (e) => dn(e) && en(bn(e), fn))) {
|
|
5362
|
-
|
|
5362
|
+
eu({ message: {
|
|
5363
5363
|
type: "Error",
|
|
5364
5364
|
content: "Smart upload returned unexpected format.",
|
|
5365
5365
|
details: JSON.stringify(e)
|
|
@@ -5391,14 +5391,14 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
5391
5391
|
]),
|
|
5392
5392
|
deleteAllRows: x
|
|
5393
5393
|
};
|
|
5394
|
-
},
|
|
5394
|
+
}, pu = (e, t) => {
|
|
5395
5395
|
var n, r;
|
|
5396
|
-
let { fields: i, rows: a } = e, o =
|
|
5396
|
+
let { fields: i, rows: a } = e, o = Xl(i, (n = (r = e.units) == null ? void 0 : r.map((e) => e || "blank")) == null ? [] : n, a, { delimiter: " " }), s = new Blob([o], { type: "text/plain" }), c = document.createElement("a");
|
|
5397
5397
|
c.href = window.URL.createObjectURL(s), c.download = `${t}.csv`, document.body.appendChild(c), c.click(), document.body.removeChild(c);
|
|
5398
|
-
},
|
|
5398
|
+
}, mu = (e) => un(e) && "modalKey" in e, hu = (e, t, n) => Qt(e, (e) => {
|
|
5399
5399
|
if (nn(e) || !dn(e)) return;
|
|
5400
5400
|
let { modalKey: r } = e == null ? {} : e;
|
|
5401
|
-
if (
|
|
5401
|
+
if (mu(e) && typeof e.onClick != "function") {
|
|
5402
5402
|
let i = () => {
|
|
5403
5403
|
var e;
|
|
5404
5404
|
n(r, !((e = t.modalVisibility) != null && e[r]));
|
|
@@ -5408,7 +5408,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
5408
5408
|
onClick: i
|
|
5409
5409
|
};
|
|
5410
5410
|
}
|
|
5411
|
-
}),
|
|
5411
|
+
}), gu = (e, t, n) => hu(e, t, n), _u = {
|
|
5412
5412
|
pastedText: "",
|
|
5413
5413
|
parsedResult: {
|
|
5414
5414
|
isValid: !1,
|
|
@@ -5423,9 +5423,9 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
5423
5423
|
reviewPasteModal: !1,
|
|
5424
5424
|
helpModal: !1
|
|
5425
5425
|
}
|
|
5426
|
-
},
|
|
5426
|
+
}, vu = ({ config: e, smartUploadConfig: t, testId: n }) => {
|
|
5427
5427
|
var r, i, a, o;
|
|
5428
|
-
let { exportData: s, beforeExportData: c, prevalidationConfig: l, validationRules: u, title: d, translations: f, textOnly: p = !1, showImportOptions: m = !0, copyFromClipBoard: _ = !0, showDeleteOptions: v = !0, showHelpOption: x = !0, showUploadFileOption: S = !0, modals: C = [], dynamicOptions: w, onImportComplete: T } = e == null ? {} : e, [E, D] = h(
|
|
5428
|
+
let { exportData: s, beforeExportData: c, prevalidationConfig: l, validationRules: u, title: d, translations: f, textOnly: p = !1, showImportOptions: m = !0, copyFromClipBoard: _ = !0, showDeleteOptions: v = !0, showHelpOption: x = !0, showUploadFileOption: S = !0, modals: C = [], dynamicOptions: w, onImportComplete: T } = e == null ? {} : e, [E, D] = h(_u), { modalVisibility: { smartUploadModal: O = !1, reviewPasteModal: k = !1, helpModal: A = !1 } } = E, { enabled: j, prompt: M = "", onClose: N, onError: P, service: F = () => Promise.resolve() } = t == null ? {} : t, I = lu(f), L = ou(I, s, c), [R, z] = g(), ee = fu({
|
|
5429
5429
|
config: e,
|
|
5430
5430
|
state: E,
|
|
5431
5431
|
setState: D,
|
|
@@ -5460,14 +5460,14 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
5460
5460
|
onClick: () => B("smartUploadModal", !O),
|
|
5461
5461
|
testId: `${n}-smart-upload`
|
|
5462
5462
|
}] : [],
|
|
5463
|
-
...
|
|
5463
|
+
...gu((r = w == null ? void 0 : w.importOptions) == null ? [] : r, E, B)
|
|
5464
5464
|
] : [], ue = [
|
|
5465
5465
|
{
|
|
5466
5466
|
type: "Option",
|
|
5467
5467
|
label: I("downloadFile"),
|
|
5468
5468
|
onClick: async () => {
|
|
5469
5469
|
let e = await L();
|
|
5470
|
-
e && e &&
|
|
5470
|
+
e && e && pu(e, d);
|
|
5471
5471
|
}
|
|
5472
5472
|
},
|
|
5473
5473
|
...p ? [{
|
|
@@ -5492,20 +5492,20 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
5492
5492
|
}]
|
|
5493
5493
|
}
|
|
5494
5494
|
}],
|
|
5495
|
-
...
|
|
5495
|
+
...gu((i = w == null ? void 0 : w.exportOptions) == null ? [] : i, E, B)
|
|
5496
5496
|
], de = v ? [{
|
|
5497
5497
|
type: "Option",
|
|
5498
5498
|
label: I("deleteAllRows"),
|
|
5499
5499
|
onClick: () => ce(),
|
|
5500
5500
|
testId: `${n}-delete-all-rows`
|
|
5501
|
-
}, ...
|
|
5501
|
+
}, ...gu((a = w == null ? void 0 : w.deleteOptions) == null ? [] : a, E, B)] : [], fe = x ? [
|
|
5502
5502
|
{ type: "Divider" },
|
|
5503
5503
|
{
|
|
5504
5504
|
type: "Option",
|
|
5505
5505
|
label: I("help"),
|
|
5506
5506
|
onClick: () => B("helpModal", !A)
|
|
5507
5507
|
},
|
|
5508
|
-
...
|
|
5508
|
+
...gu((o = w == null ? void 0 : w.helpOptions) == null ? [] : o, E, B)
|
|
5509
5509
|
] : [], pe = [
|
|
5510
5510
|
...le.length ? [{
|
|
5511
5511
|
section: [...le, ...fe],
|
|
@@ -5531,13 +5531,13 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
5531
5531
|
small: !0,
|
|
5532
5532
|
dark: !0
|
|
5533
5533
|
}),
|
|
5534
|
-
pe.map((e, t) => /* @__PURE__ */ y(
|
|
5534
|
+
pe.map((e, t) => /* @__PURE__ */ y(au, {
|
|
5535
5535
|
sections: e.section,
|
|
5536
5536
|
iconName: e.iconName,
|
|
5537
5537
|
tooltip: e.tooltip,
|
|
5538
5538
|
testId: `data-${e == null ? void 0 : e.name}-menu`
|
|
5539
5539
|
}, t)),
|
|
5540
|
-
k && /* @__PURE__ */ y(
|
|
5540
|
+
k && /* @__PURE__ */ y(ru, {
|
|
5541
5541
|
config: e,
|
|
5542
5542
|
state: E,
|
|
5543
5543
|
updateState: ne,
|
|
@@ -5573,14 +5573,14 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
5573
5573
|
cancelText: I("cancel"),
|
|
5574
5574
|
testId: n
|
|
5575
5575
|
}),
|
|
5576
|
-
/* @__PURE__ */ y(
|
|
5576
|
+
/* @__PURE__ */ y(iu, {
|
|
5577
5577
|
modals: C,
|
|
5578
5578
|
modalVisibility: E == null ? void 0 : E.modalVisibility,
|
|
5579
5579
|
onCloseModal: re,
|
|
5580
5580
|
testId: n
|
|
5581
5581
|
})
|
|
5582
5582
|
] });
|
|
5583
|
-
},
|
|
5583
|
+
}, yu = ({ file: e, accept: t, multi: n, name: r, disabled: i, onChange: a = mn, ...o }) => {
|
|
5584
5584
|
let s = c(U), l = m(null), u = () => {
|
|
5585
5585
|
var e;
|
|
5586
5586
|
i || s || (e = l.current) == null || e.click();
|
|
@@ -5608,12 +5608,12 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
5608
5608
|
multiple: n,
|
|
5609
5609
|
onChange: d
|
|
5610
5610
|
})] });
|
|
5611
|
-
},
|
|
5611
|
+
}, bu = {
|
|
5612
5612
|
label: "_label_uxk69_1",
|
|
5613
5613
|
labelLeft: "_labelLeft_uxk69_5",
|
|
5614
5614
|
icons: "_icons_uxk69_13",
|
|
5615
5615
|
small: "_small_uxk69_27"
|
|
5616
|
-
},
|
|
5616
|
+
}, xu = ({ label: e = null, width: t = "auto", helpText: n = "", helpTextMaxWidth: r = "300px", onClickHelp: i = void 0, lock: a = {
|
|
5617
5617
|
visible: !1,
|
|
5618
5618
|
active: !1,
|
|
5619
5619
|
onClick: () => {},
|
|
@@ -5622,14 +5622,14 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
5622
5622
|
}, info: o, libraryIcon: s, labelLeft: c = !1, small: l = !1, textTransform: u = Zr.CAPITALIZE }) => {
|
|
5623
5623
|
var d;
|
|
5624
5624
|
return /* @__PURE__ */ y("div", {
|
|
5625
|
-
className: _(
|
|
5625
|
+
className: _(bu.label, c ? bu.labelLeft : "", l ? bu.small : ""),
|
|
5626
5626
|
children: /* @__PURE__ */ b("label", {
|
|
5627
5627
|
style: {
|
|
5628
5628
|
textTransform: u,
|
|
5629
5629
|
width: t || ""
|
|
5630
5630
|
},
|
|
5631
5631
|
children: [e, /* @__PURE__ */ b("div", {
|
|
5632
|
-
className:
|
|
5632
|
+
className: bu.icons,
|
|
5633
5633
|
children: [
|
|
5634
5634
|
(n || i) && /* @__PURE__ */ y(Fi, {
|
|
5635
5635
|
text: n,
|
|
@@ -5655,23 +5655,23 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
5655
5655
|
})]
|
|
5656
5656
|
})
|
|
5657
5657
|
});
|
|
5658
|
-
},
|
|
5658
|
+
}, Su = {
|
|
5659
5659
|
field: "_field_1xoss_1",
|
|
5660
5660
|
labelLeft: "_labelLeft_1xoss_5",
|
|
5661
5661
|
fieldInput: "_fieldInput_1xoss_9",
|
|
5662
5662
|
formRow: "_formRow_1xoss_12",
|
|
5663
5663
|
"form-row": "_form-row_1xoss_13",
|
|
5664
5664
|
button: "_button_1xoss_22"
|
|
5665
|
-
},
|
|
5665
|
+
}, Cu = ({ label: e, labelLeft: t = !1, labelWidth: n = "auto", children: r, helpText: i, helpTextMaxWidth: a = "300px", onClickHelp: o, lock: s = {
|
|
5666
5666
|
visible: !1,
|
|
5667
5667
|
active: !1,
|
|
5668
5668
|
onClick: () => {},
|
|
5669
5669
|
tooltip: "",
|
|
5670
5670
|
testId: void 0
|
|
5671
5671
|
}, info: c, libraryIcon: l, small: u = !1, testId: d, textTransform: f = Zr.CAPITALIZE }) => /* @__PURE__ */ b("div", {
|
|
5672
|
-
className: _(
|
|
5672
|
+
className: _(Su.field, t ? Su.labelLeft : ""),
|
|
5673
5673
|
"data-testid": d,
|
|
5674
|
-
children: [(e || t) && /* @__PURE__ */ y(
|
|
5674
|
+
children: [(e || t) && /* @__PURE__ */ y(xu, {
|
|
5675
5675
|
label: e,
|
|
5676
5676
|
width: n,
|
|
5677
5677
|
helpText: i,
|
|
@@ -5684,10 +5684,10 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
5684
5684
|
small: u,
|
|
5685
5685
|
textTransform: f
|
|
5686
5686
|
}), /* @__PURE__ */ y("div", {
|
|
5687
|
-
className:
|
|
5687
|
+
className: Su.fieldInput,
|
|
5688
5688
|
children: r
|
|
5689
5689
|
})]
|
|
5690
|
-
}),
|
|
5690
|
+
}), wu = ({ alignItems: e = "initial", justifyContent: t = "initial", direction: n = "initial", height: r = "initial", width: i = "initial", children: a = null, wrap: o = !0, gap: s = !1 }) => /* @__PURE__ */ y("div", {
|
|
5691
5691
|
style: {
|
|
5692
5692
|
display: "flex",
|
|
5693
5693
|
flexDirection: n,
|
|
@@ -5699,8 +5699,8 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
5699
5699
|
gap: s === !1 ? 0 : s === !0 ? "var(--padding)" : typeof s == "number" ? `${s}px` : s
|
|
5700
5700
|
},
|
|
5701
5701
|
children: a
|
|
5702
|
-
}),
|
|
5703
|
-
className:
|
|
5702
|
+
}), Tu = { formRow: "_formRow_odewu_1" }, Eu = ({ children: e }) => /* @__PURE__ */ y("div", {
|
|
5703
|
+
className: Tu.formRow,
|
|
5704
5704
|
children: e
|
|
5705
5705
|
}), Z = {
|
|
5706
5706
|
inputInTable: "_inputInTable_1dcn1_1",
|
|
@@ -5745,15 +5745,15 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
5745
5745
|
hideScrollbar: "_hideScrollbar_1dcn1_67",
|
|
5746
5746
|
noPointerEvents: "_noPointerEvents_1dcn1_309",
|
|
5747
5747
|
virtualRows: "_virtualRows_1dcn1_312"
|
|
5748
|
-
},
|
|
5748
|
+
}, Du = ({ toggleNarrow: e, onClickToggleNarrow: t }) => e ? /* @__PURE__ */ y("a", {
|
|
5749
5749
|
className: Z.toggleNarrow,
|
|
5750
5750
|
onClick: t,
|
|
5751
5751
|
children: /* @__PURE__ */ y(W, { icon: H.CHEVRON_LEFT })
|
|
5752
|
-
}) : null,
|
|
5752
|
+
}) : null, Ou = i(({ name: e, actions: t = [], toggleNarrow: n = !1, onToggleNarrow: r = () => {}, stickyHeader: i }, a) => /* @__PURE__ */ b("div", {
|
|
5753
5753
|
ref: a,
|
|
5754
5754
|
className: _(Z.header, i ? Z.stickyHeader : ""),
|
|
5755
5755
|
children: [
|
|
5756
|
-
/* @__PURE__ */ y(
|
|
5756
|
+
/* @__PURE__ */ y(Du, {
|
|
5757
5757
|
toggleNarrow: n,
|
|
5758
5758
|
onClickToggleNarrow: r
|
|
5759
5759
|
}),
|
|
@@ -5773,14 +5773,14 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
5773
5773
|
})
|
|
5774
5774
|
})
|
|
5775
5775
|
]
|
|
5776
|
-
})),
|
|
5776
|
+
})), ku = ({ label: e }) => e ? /* @__PURE__ */ y("span", {
|
|
5777
5777
|
className: Z.label,
|
|
5778
5778
|
children: /* @__PURE__ */ y(la, {
|
|
5779
5779
|
color: e.color,
|
|
5780
5780
|
title: e.value,
|
|
5781
5781
|
small: e.small
|
|
5782
5782
|
})
|
|
5783
|
-
}) : null,
|
|
5783
|
+
}) : null, Au = ({ name: e, icon: t, testId: n }) => {
|
|
5784
5784
|
let r = t && /* @__PURE__ */ y(W, {
|
|
5785
5785
|
icon: t.icon,
|
|
5786
5786
|
color: t.color || "#db2828"
|
|
@@ -5800,8 +5800,8 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
5800
5800
|
children: r
|
|
5801
5801
|
})]
|
|
5802
5802
|
});
|
|
5803
|
-
},
|
|
5804
|
-
let { name: t, icon: n, details: r, metadata: i, invalid: a, testId: o } = e, s = /* @__PURE__ */ y(
|
|
5803
|
+
}, ju = ({ item: e }) => {
|
|
5804
|
+
let { name: t, icon: n, details: r, metadata: i, invalid: a, testId: o } = e, s = /* @__PURE__ */ y(Au, {
|
|
5805
5805
|
name: t,
|
|
5806
5806
|
icon: n,
|
|
5807
5807
|
testId: o && `${o}-name`
|
|
@@ -5827,10 +5827,10 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
5827
5827
|
})
|
|
5828
5828
|
]
|
|
5829
5829
|
});
|
|
5830
|
-
},
|
|
5830
|
+
}, Mu = ({ item: e }) => e.metaCount === void 0 ? null : /* @__PURE__ */ y(la, {
|
|
5831
5831
|
color: "rgba(0,0,0,0.25)",
|
|
5832
5832
|
title: e.metaCount
|
|
5833
|
-
}),
|
|
5833
|
+
}), Nu = ({ item: e, expanding: t }) => /* @__PURE__ */ y(mi, {
|
|
5834
5834
|
expanded: !!t && !!e.active && !!e.content,
|
|
5835
5835
|
children: /* @__PURE__ */ y("div", {
|
|
5836
5836
|
className: Z.itemContent,
|
|
@@ -5839,7 +5839,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
5839
5839
|
},
|
|
5840
5840
|
children: e.content
|
|
5841
5841
|
})
|
|
5842
|
-
}),
|
|
5842
|
+
}), Pu = i(({ item: e, index: t }, n) => {
|
|
5843
5843
|
var r;
|
|
5844
5844
|
let i = c(U), { actions: a, disabled: o, expanded: s, onClick: l, title: u, name: d, icon: f, testId: p } = e;
|
|
5845
5845
|
return /* @__PURE__ */ y("div", {
|
|
@@ -5859,13 +5859,13 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
5859
5859
|
className: _(Z.expandIcon, s && Z.expanded),
|
|
5860
5860
|
children: /* @__PURE__ */ y(W, { icon: H.CHEVRON_RIGHT })
|
|
5861
5861
|
}),
|
|
5862
|
-
/* @__PURE__ */ y(
|
|
5862
|
+
/* @__PURE__ */ y(Au, {
|
|
5863
5863
|
name: d,
|
|
5864
5864
|
icon: f
|
|
5865
5865
|
}),
|
|
5866
5866
|
/* @__PURE__ */ b("div", {
|
|
5867
5867
|
className: Z.right,
|
|
5868
|
-
children: [/* @__PURE__ */ y(
|
|
5868
|
+
children: [/* @__PURE__ */ y(Mu, { item: e }), !(o || i) && a && /* @__PURE__ */ y("div", {
|
|
5869
5869
|
className: Z.actions,
|
|
5870
5870
|
children: /* @__PURE__ */ y(Ca, { actions: (r = e.actions) == null ? [] : r })
|
|
5871
5871
|
})]
|
|
@@ -5873,7 +5873,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
5873
5873
|
]
|
|
5874
5874
|
}) })
|
|
5875
5875
|
});
|
|
5876
|
-
}),
|
|
5876
|
+
}), Fu = i(({ item: e, index: t, expanding: n, invokeEditOnRowClick: r, draggable: i }, a) => {
|
|
5877
5877
|
let o = c(U), s = (e, t, s, c, l, u) => {
|
|
5878
5878
|
let d = t.actions && t.actions.find((e) => {
|
|
5879
5879
|
var t;
|
|
@@ -5909,24 +5909,24 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
5909
5909
|
className: Z.indentIcon,
|
|
5910
5910
|
children: /* @__PURE__ */ y(W, { icon: H.INDENT })
|
|
5911
5911
|
}) : null,
|
|
5912
|
-
/* @__PURE__ */ y(
|
|
5913
|
-
/* @__PURE__ */ y(
|
|
5912
|
+
/* @__PURE__ */ y(ku, { label: t.label }),
|
|
5913
|
+
/* @__PURE__ */ y(ju, { item: t }),
|
|
5914
5914
|
/* @__PURE__ */ b("div", {
|
|
5915
5915
|
className: Z.right,
|
|
5916
|
-
children: [/* @__PURE__ */ y(
|
|
5916
|
+
children: [/* @__PURE__ */ y(Mu, { item: t }), !(t.disabled || o) && t.actions && /* @__PURE__ */ y("div", {
|
|
5917
5917
|
className: Z.actions,
|
|
5918
5918
|
children: /* @__PURE__ */ y(Ca, { actions: t.actions })
|
|
5919
5919
|
})]
|
|
5920
5920
|
})
|
|
5921
5921
|
]
|
|
5922
|
-
}), /* @__PURE__ */ y(
|
|
5922
|
+
}), /* @__PURE__ */ y(Nu, {
|
|
5923
5923
|
item: t,
|
|
5924
5924
|
expanding: n
|
|
5925
5925
|
})]
|
|
5926
5926
|
})
|
|
5927
5927
|
}, e);
|
|
5928
5928
|
};
|
|
5929
|
-
return e.type === "Heading" ? /* @__PURE__ */ y(
|
|
5929
|
+
return e.type === "Heading" ? /* @__PURE__ */ y(Pu, {
|
|
5930
5930
|
ref: a,
|
|
5931
5931
|
item: e,
|
|
5932
5932
|
index: t
|
|
@@ -5941,7 +5941,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
5941
5941
|
opacity: +!c
|
|
5942
5942
|
}, n, r, i);
|
|
5943
5943
|
})(t, e) : s(t, e);
|
|
5944
|
-
}),
|
|
5944
|
+
}), Iu = ({ children: e, draggable: t, list: n, onListReorder: r }) => {
|
|
5945
5945
|
let [i, a] = h(null), o = (e) => {
|
|
5946
5946
|
a(e.active.id);
|
|
5947
5947
|
}, s = (e) => {
|
|
@@ -5964,7 +5964,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
5964
5964
|
dropAnimation: null,
|
|
5965
5965
|
children: /* @__PURE__ */ y("div", {
|
|
5966
5966
|
className: Z.dragOverlay,
|
|
5967
|
-
children: /* @__PURE__ */ y(
|
|
5967
|
+
children: /* @__PURE__ */ y(Fu, {
|
|
5968
5968
|
draggable: t,
|
|
5969
5969
|
item: n.items[Number(i)],
|
|
5970
5970
|
index: Number(i)
|
|
@@ -5972,7 +5972,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
5972
5972
|
})
|
|
5973
5973
|
}), document.body)]
|
|
5974
5974
|
}) : e;
|
|
5975
|
-
},
|
|
5975
|
+
}, Lu = ({ items: e, scrollDetails: t, children: n }) => {
|
|
5976
5976
|
let { scrollable: r, hideScrollbar: i, triggerScrollToActiveItem: a, infiniteScroll: o } = t, c = m(null), u = wr({
|
|
5977
5977
|
count: e.length,
|
|
5978
5978
|
getScrollElement: () => c.current,
|
|
@@ -6002,9 +6002,9 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6002
6002
|
children: n({ virtualizer: u })
|
|
6003
6003
|
})
|
|
6004
6004
|
});
|
|
6005
|
-
},
|
|
6005
|
+
}, Ru = ({ items: e, scrollDetails: t, children: n }) => {
|
|
6006
6006
|
let { scrollable: r, hideScrollbar: i, infiniteScroll: a } = t;
|
|
6007
|
-
return a ? /* @__PURE__ */ y(
|
|
6007
|
+
return a ? /* @__PURE__ */ y(Lu, {
|
|
6008
6008
|
items: e,
|
|
6009
6009
|
scrollDetails: t,
|
|
6010
6010
|
children: ({ virtualizer: e }) => n({ virtualizer: e })
|
|
@@ -6015,7 +6015,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6015
6015
|
children: n({})
|
|
6016
6016
|
})
|
|
6017
6017
|
});
|
|
6018
|
-
},
|
|
6018
|
+
}, zu = ({ list: e, bordered: t = !1, expanding: n = !1, narrow: r = !1, toggleNarrow: i = !1, onToggleNarrow: a = () => {}, invokeEditOnRowClick: o = !0, noHeader: s = !1, stickyHeader: c, draggable: l = !1, onListReorder: u = () => {}, marginBottom: d = 0, height: f, testId: p, scrollDetails: m = {
|
|
6019
6019
|
scrollable: !1,
|
|
6020
6020
|
hideScrollbar: !1,
|
|
6021
6021
|
triggerScrollToActiveItem: !1,
|
|
@@ -6028,17 +6028,17 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6028
6028
|
marginBottom: d
|
|
6029
6029
|
},
|
|
6030
6030
|
id: "scrollableDiv",
|
|
6031
|
-
children: [!s && /* @__PURE__ */ y(
|
|
6031
|
+
children: [!s && /* @__PURE__ */ y(Ou, {
|
|
6032
6032
|
name: e.name,
|
|
6033
6033
|
actions: e.actions,
|
|
6034
6034
|
toggleNarrow: i,
|
|
6035
6035
|
onToggleNarrow: a,
|
|
6036
6036
|
stickyHeader: c
|
|
6037
|
-
}), /* @__PURE__ */ y(
|
|
6037
|
+
}), /* @__PURE__ */ y(Iu, {
|
|
6038
6038
|
draggable: l,
|
|
6039
6039
|
list: e,
|
|
6040
6040
|
onListReorder: u,
|
|
6041
|
-
children: /* @__PURE__ */ y(
|
|
6041
|
+
children: /* @__PURE__ */ y(Ru, {
|
|
6042
6042
|
items: e.items,
|
|
6043
6043
|
scrollDetails: m,
|
|
6044
6044
|
children: ({ virtualizer: t }) => t ? t.getVirtualItems().map((r) => /* @__PURE__ */ y("div", {
|
|
@@ -6046,14 +6046,14 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6046
6046
|
className: Z.virtualRow,
|
|
6047
6047
|
style: { transform: `translateY(${r.start}px)` },
|
|
6048
6048
|
ref: t.measureElement,
|
|
6049
|
-
children: /* @__PURE__ */ y(
|
|
6049
|
+
children: /* @__PURE__ */ y(Fu, {
|
|
6050
6050
|
index: r.index,
|
|
6051
6051
|
draggable: l,
|
|
6052
6052
|
item: e.items[r.index],
|
|
6053
6053
|
expanding: n,
|
|
6054
6054
|
invokeEditOnRowClick: o
|
|
6055
6055
|
})
|
|
6056
|
-
}, r.key)) : e.items.map((e, t) => /* @__PURE__ */ y("div", { children: /* @__PURE__ */ y(
|
|
6056
|
+
}, r.key)) : e.items.map((e, t) => /* @__PURE__ */ y("div", { children: /* @__PURE__ */ y(Fu, {
|
|
6057
6057
|
index: t,
|
|
6058
6058
|
draggable: l,
|
|
6059
6059
|
item: e,
|
|
@@ -6062,7 +6062,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6062
6062
|
}) }, t))
|
|
6063
6063
|
})
|
|
6064
6064
|
})]
|
|
6065
|
-
}),
|
|
6065
|
+
}), Bu = {
|
|
6066
6066
|
loader: "_loader_477i5_1",
|
|
6067
6067
|
fullViewPortSize: "_fullViewPortSize_477i5_7",
|
|
6068
6068
|
cover: "_cover_477i5_14",
|
|
@@ -6070,33 +6070,33 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6070
6070
|
content: "_content_477i5_44",
|
|
6071
6071
|
text: "_text_477i5_49",
|
|
6072
6072
|
details: "_details_477i5_53"
|
|
6073
|
-
},
|
|
6073
|
+
}, Vu = ({ width: e, height: t, text: n = "", details: r = "", fullViewPortSize: i = !1, cover: a = !1, children: o = null, theme: s = Qr.DARK, testId: c = null }) => {
|
|
6074
6074
|
let l = s === Qr.DARK ? Qr.WHITE : Qr.INHERIT, u = s === "white" ? "var(--color-background-raised)" : s === "light" ? "var(--color-background)" : "black";
|
|
6075
6075
|
return /* @__PURE__ */ y("div", {
|
|
6076
|
-
className: _(
|
|
6076
|
+
className: _(Bu.loader, a ? Bu.cover : "", { [Bu.fullViewPortSize]: i }),
|
|
6077
6077
|
style: {
|
|
6078
6078
|
width: e,
|
|
6079
6079
|
height: t
|
|
6080
6080
|
},
|
|
6081
6081
|
"data-testid": c,
|
|
6082
6082
|
children: /* @__PURE__ */ y("div", {
|
|
6083
|
-
className:
|
|
6083
|
+
className: Bu.dimmer,
|
|
6084
6084
|
style: {
|
|
6085
6085
|
background: u,
|
|
6086
6086
|
color: l
|
|
6087
6087
|
},
|
|
6088
6088
|
children: /* @__PURE__ */ b("div", {
|
|
6089
|
-
className:
|
|
6089
|
+
className: Bu.content,
|
|
6090
6090
|
"data-testid": c && `${c}-content`,
|
|
6091
6091
|
children: [
|
|
6092
6092
|
o,
|
|
6093
6093
|
n && /* @__PURE__ */ y("div", {
|
|
6094
|
-
className:
|
|
6094
|
+
className: Bu.text,
|
|
6095
6095
|
"data-testid": c && `${c}-text`,
|
|
6096
6096
|
children: n
|
|
6097
6097
|
}),
|
|
6098
6098
|
r && /* @__PURE__ */ y("div", {
|
|
6099
|
-
className:
|
|
6099
|
+
className: Bu.details,
|
|
6100
6100
|
"data-testid": c && `${c}-details`,
|
|
6101
6101
|
children: r
|
|
6102
6102
|
})
|
|
@@ -6104,15 +6104,15 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6104
6104
|
})
|
|
6105
6105
|
})
|
|
6106
6106
|
});
|
|
6107
|
-
},
|
|
6107
|
+
}, Hu = {
|
|
6108
6108
|
menu: "_menu_12x4u_1",
|
|
6109
6109
|
header: "_header_12x4u_11",
|
|
6110
6110
|
item: "_item_12x4u_27",
|
|
6111
6111
|
heading: "_heading_12x4u_32"
|
|
6112
|
-
},
|
|
6112
|
+
}, Uu = ({ option: e, onChange: t }) => {
|
|
6113
6113
|
let { key: n, selected: r, label: i, disabled: a, testId: o, helpText: s, onClickHelp: c, textTransform: l } = e;
|
|
6114
6114
|
return /* @__PURE__ */ y("div", {
|
|
6115
|
-
className:
|
|
6115
|
+
className: Hu.item,
|
|
6116
6116
|
children: /* @__PURE__ */ y(Ii, {
|
|
6117
6117
|
label: i,
|
|
6118
6118
|
noMargin: !0,
|
|
@@ -6125,21 +6125,21 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6125
6125
|
textTransform: l
|
|
6126
6126
|
})
|
|
6127
6127
|
}, n);
|
|
6128
|
-
},
|
|
6129
|
-
className:
|
|
6128
|
+
}, Wu = ({ label: e }) => /* @__PURE__ */ y("div", {
|
|
6129
|
+
className: Hu.heading,
|
|
6130
6130
|
children: e
|
|
6131
|
-
}),
|
|
6131
|
+
}), Gu = /* @__PURE__ */ function(e) {
|
|
6132
6132
|
return e.HEADING = "Heading", e.DIVIDER = "Divider", e.DEFAULT = "Default", e;
|
|
6133
|
-
}({}),
|
|
6134
|
-
className: _("menu",
|
|
6133
|
+
}({}), Ku = (e) => e.type !== Gu.HEADING && e.type !== Gu.DIVIDER && !e.disabled, qu = ({ options: e, onChangeOptions: t, showHeader: n, maxHeight: r, testId: i }) => /* @__PURE__ */ b("div", {
|
|
6134
|
+
className: _("menu", Hu.menu),
|
|
6135
6135
|
style: { maxHeight: r },
|
|
6136
6136
|
"data-testid": i ? `${i}-option-dropdown-layer` : void 0,
|
|
6137
6137
|
children: [n && /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ b("div", {
|
|
6138
|
-
className:
|
|
6138
|
+
className: Hu.header,
|
|
6139
6139
|
children: [
|
|
6140
6140
|
/* @__PURE__ */ y("a", {
|
|
6141
6141
|
onClick: (n) => {
|
|
6142
|
-
t(n, e.map((e) =>
|
|
6142
|
+
t(n, e.map((e) => Ku(e) ? {
|
|
6143
6143
|
...e,
|
|
6144
6144
|
selected: !0
|
|
6145
6145
|
} : e));
|
|
@@ -6148,7 +6148,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6148
6148
|
}),
|
|
6149
6149
|
/* @__PURE__ */ y("a", {
|
|
6150
6150
|
onClick: (n) => {
|
|
6151
|
-
t(n, e.map((e) =>
|
|
6151
|
+
t(n, e.map((e) => Ku(e) ? {
|
|
6152
6152
|
...e,
|
|
6153
6153
|
selected: !1
|
|
6154
6154
|
} : e));
|
|
@@ -6157,7 +6157,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6157
6157
|
}),
|
|
6158
6158
|
/* @__PURE__ */ y("a", {
|
|
6159
6159
|
onClick: (n) => {
|
|
6160
|
-
t(n, e.map((e) =>
|
|
6160
|
+
t(n, e.map((e) => Ku(e) ? {
|
|
6161
6161
|
...e,
|
|
6162
6162
|
selected: !e.selected
|
|
6163
6163
|
} : e));
|
|
@@ -6167,19 +6167,19 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6167
6167
|
]
|
|
6168
6168
|
}), /* @__PURE__ */ y(lo, { margin: 0 })] }), e.map((n, r) => {
|
|
6169
6169
|
switch (n.type) {
|
|
6170
|
-
case
|
|
6170
|
+
case Gu.HEADING:
|
|
6171
6171
|
var i;
|
|
6172
|
-
return /* @__PURE__ */ y(
|
|
6173
|
-
case
|
|
6172
|
+
return /* @__PURE__ */ y(Wu, { label: n.label }, (i = n.key) == null ? r : i);
|
|
6173
|
+
case Gu.DIVIDER:
|
|
6174
6174
|
var a;
|
|
6175
6175
|
return /* @__PURE__ */ y(lo, { margin: 0 }, (a = n.key) == null ? r : a);
|
|
6176
6176
|
default:
|
|
6177
6177
|
var o;
|
|
6178
|
-
return /* @__PURE__ */ y(
|
|
6178
|
+
return /* @__PURE__ */ y(Uu, {
|
|
6179
6179
|
option: n,
|
|
6180
6180
|
onChange: (r) => {
|
|
6181
6181
|
let { value: i } = n;
|
|
6182
|
-
t(r, e.map((e) => e.type ===
|
|
6182
|
+
t(r, e.map((e) => e.type === Gu.HEADING || e.type === Gu.DIVIDER || e.value !== i ? e : {
|
|
6183
6183
|
...e,
|
|
6184
6184
|
selected: !e.selected
|
|
6185
6185
|
}));
|
|
@@ -6187,7 +6187,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6187
6187
|
}, (o = n.key) == null ? r : o);
|
|
6188
6188
|
}
|
|
6189
6189
|
})]
|
|
6190
|
-
}),
|
|
6190
|
+
}), Ju = ({ name: e, disabled: t, label: n, options: r, onChange: i, small: a = !1, showHeader: o = !0, maxHeight: s = "40vh", testId: c }) => /* @__PURE__ */ y(xa, {
|
|
6191
6191
|
testId: c,
|
|
6192
6192
|
disabled: t,
|
|
6193
6193
|
menu: {
|
|
@@ -6196,7 +6196,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6196
6196
|
label: n,
|
|
6197
6197
|
trigger: qr.DROP_DOWN_BUTTON,
|
|
6198
6198
|
possiblePlacements: ["top-start", "bottom-start"],
|
|
6199
|
-
sections: /* @__PURE__ */ y(
|
|
6199
|
+
sections: /* @__PURE__ */ y(qu, {
|
|
6200
6200
|
testId: c,
|
|
6201
6201
|
options: r,
|
|
6202
6202
|
onChangeOptions: (t, n) => {
|
|
@@ -6206,13 +6206,13 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6206
6206
|
maxHeight: s
|
|
6207
6207
|
})
|
|
6208
6208
|
}
|
|
6209
|
-
}),
|
|
6209
|
+
}), Yu = {
|
|
6210
6210
|
page: "_page_beskc_1",
|
|
6211
6211
|
scroll: "_scroll_beskc_23"
|
|
6212
|
-
},
|
|
6212
|
+
}, Xu = ({ children: e, left: t = "var(--size-sidebar)", padding: n = !0, scroll: r = !0, top: i = "var(--size-topbar)" }) => {
|
|
6213
6213
|
let a = typeof n == "string" ? n : n === !0 ? "var(--padding)" : "0";
|
|
6214
6214
|
return /* @__PURE__ */ y("div", {
|
|
6215
|
-
className: _(
|
|
6215
|
+
className: _(Yu.page, r ? Yu.scroll : ""),
|
|
6216
6216
|
style: {
|
|
6217
6217
|
left: t,
|
|
6218
6218
|
padding: a,
|
|
@@ -6220,30 +6220,30 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6220
6220
|
},
|
|
6221
6221
|
children: e
|
|
6222
6222
|
});
|
|
6223
|
-
},
|
|
6223
|
+
}, Zu = ({ id: e, children: t }) => {
|
|
6224
6224
|
let n = document.querySelector(`#${e}`), [r, i] = h(!1);
|
|
6225
6225
|
return d(() => {
|
|
6226
6226
|
r || i(!0);
|
|
6227
6227
|
}, [e]), n ? br(t, n) : null;
|
|
6228
|
-
},
|
|
6228
|
+
}, Qu = { printHeader: "_printHeader_o7xxx_1" }, $u = ({ logo: e, alt: t, logoWidth: n = "100px" }) => /* @__PURE__ */ y("img", {
|
|
6229
6229
|
src: e,
|
|
6230
6230
|
alt: t,
|
|
6231
|
-
className:
|
|
6231
|
+
className: Qu.printHeader,
|
|
6232
6232
|
style: { width: n }
|
|
6233
|
-
}),
|
|
6233
|
+
}), ed = ({ name: e, label: t, options: n, value: r, onChange: i, disabled: a = !1, small: o = !1, noMargin: s = !1, onClick: l = () => {}, inline: u = !1, mainLabel: d = "", radioButtonsData: f, classForContainer: p = "grouped fields" }) => {
|
|
6234
6234
|
let m = c(U), h = f !== void 0, { simpleInputs: g, options: v, selectedOptions: x } = h ? {
|
|
6235
6235
|
simpleInputs: !1,
|
|
6236
6236
|
options: f,
|
|
6237
6237
|
selectedOptions: void 0
|
|
6238
6238
|
} : mc(n, r), S = h || x == null ? void 0 : g ? x : x.value, C = h ? d : t;
|
|
6239
6239
|
return /* @__PURE__ */ b("div", {
|
|
6240
|
-
className: _(
|
|
6240
|
+
className: _($c.wrapper, u ? $c.inline : null, p === "inline fields" ? $c.inline : null),
|
|
6241
6241
|
children: [d && /* @__PURE__ */ y("label", {
|
|
6242
|
-
className: _(u &&
|
|
6242
|
+
className: _(u && $c.labelMargin),
|
|
6243
6243
|
children: C
|
|
6244
6244
|
}), v.map((t, n) => {
|
|
6245
6245
|
let r = (t == null ? void 0 : t.checked) || (t == null ? void 0 : t.value) === S || !1;
|
|
6246
|
-
return /* @__PURE__ */ y(
|
|
6246
|
+
return /* @__PURE__ */ y(el, {
|
|
6247
6247
|
name: t.name || t.value,
|
|
6248
6248
|
label: t.label,
|
|
6249
6249
|
value: t.value,
|
|
@@ -6261,44 +6261,44 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6261
6261
|
}, n);
|
|
6262
6262
|
})]
|
|
6263
6263
|
});
|
|
6264
|
-
},
|
|
6264
|
+
}, td = {
|
|
6265
6265
|
richTextToolbar: "_richTextToolbar_1gbkk_1",
|
|
6266
6266
|
richTextToolbarContainer: "_richTextToolbarContainer_1gbkk_5"
|
|
6267
|
-
},
|
|
6267
|
+
}, nd = /* @__PURE__ */ function(e) {
|
|
6268
6268
|
return e.BOLD = "bold", e.ITALIC = "italic", e.CODE = "code", e.UL = "ul", e.OL = "ol", e;
|
|
6269
|
-
}({}),
|
|
6269
|
+
}({}), rd = ({ editor: e, disabled: t = !1, toolbarComponent: n = null }) => {
|
|
6270
6270
|
var r, i, a, o, s;
|
|
6271
6271
|
let c = [
|
|
6272
6272
|
{
|
|
6273
|
-
icon:
|
|
6273
|
+
icon: nd.BOLD,
|
|
6274
6274
|
onClick: () => e == null ? void 0 : e.chain().focus().toggleBold().run(),
|
|
6275
6275
|
active: (r = e == null ? void 0 : e.isActive("bold")) == null ? !1 : r
|
|
6276
6276
|
},
|
|
6277
6277
|
{
|
|
6278
|
-
icon:
|
|
6278
|
+
icon: nd.ITALIC,
|
|
6279
6279
|
onClick: () => e == null ? void 0 : e.chain().focus().toggleItalic().run(),
|
|
6280
6280
|
active: (i = e == null ? void 0 : e.isActive("italic")) == null ? !1 : i
|
|
6281
6281
|
},
|
|
6282
6282
|
{
|
|
6283
|
-
icon:
|
|
6283
|
+
icon: nd.CODE,
|
|
6284
6284
|
onClick: () => e == null ? void 0 : e.chain().focus().toggleCode().run(),
|
|
6285
6285
|
active: (a = e == null ? void 0 : e.isActive("code")) == null ? !1 : a
|
|
6286
6286
|
},
|
|
6287
6287
|
{
|
|
6288
|
-
icon:
|
|
6288
|
+
icon: nd.UL,
|
|
6289
6289
|
onClick: () => e == null ? void 0 : e.chain().focus().toggleBulletList().run(),
|
|
6290
6290
|
active: (o = e == null ? void 0 : e.isActive("bulletList")) == null ? !1 : o
|
|
6291
6291
|
},
|
|
6292
6292
|
{
|
|
6293
|
-
icon:
|
|
6293
|
+
icon: nd.OL,
|
|
6294
6294
|
onClick: () => e == null ? void 0 : e.chain().focus().toggleOrderedList().run(),
|
|
6295
6295
|
active: (s = e == null ? void 0 : e.isActive("orderedList")) == null ? !1 : s
|
|
6296
6296
|
}
|
|
6297
6297
|
];
|
|
6298
6298
|
return /* @__PURE__ */ b("div", {
|
|
6299
|
-
className:
|
|
6299
|
+
className: td.richTextToolbarContainer,
|
|
6300
6300
|
children: [/* @__PURE__ */ y("div", {
|
|
6301
|
-
className:
|
|
6301
|
+
className: td.richTextToolbar,
|
|
6302
6302
|
children: c.map((e, n) => /* @__PURE__ */ y(K, {
|
|
6303
6303
|
small: !0,
|
|
6304
6304
|
round: !0,
|
|
@@ -6311,7 +6311,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6311
6311
|
}, n))
|
|
6312
6312
|
}), n]
|
|
6313
6313
|
});
|
|
6314
|
-
},
|
|
6314
|
+
}, id = {
|
|
6315
6315
|
inputInTable: "_inputInTable_gb097_1",
|
|
6316
6316
|
inputHover: "_inputHover_gb097_13",
|
|
6317
6317
|
inputFocus: "_inputFocus_gb097_18",
|
|
@@ -6320,7 +6320,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6320
6320
|
inputDisabled: "_inputDisabled_gb097_61",
|
|
6321
6321
|
hideScrollbars: "_hideScrollbars_gb097_67",
|
|
6322
6322
|
richTextInput: "_richTextInput_gb097_77"
|
|
6323
|
-
},
|
|
6323
|
+
}, ad = o(i(({ placeholder: e, onChange: t, value: n, disabled: r, toolbarComponent: i }, a) => {
|
|
6324
6324
|
let o = c(U), s = r || o, d = Mr({
|
|
6325
6325
|
extensions: [
|
|
6326
6326
|
Nr,
|
|
@@ -6347,17 +6347,17 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6347
6347
|
clearContent: () => d == null ? void 0 : d.commands.clearContent(!1),
|
|
6348
6348
|
editor: d
|
|
6349
6349
|
}), [d]), /* @__PURE__ */ b("div", {
|
|
6350
|
-
className:
|
|
6351
|
-
children: [/* @__PURE__ */ y(
|
|
6350
|
+
className: id.richTextInput,
|
|
6351
|
+
children: [/* @__PURE__ */ y(rd, {
|
|
6352
6352
|
editor: d,
|
|
6353
6353
|
disabled: s,
|
|
6354
6354
|
toolbarComponent: i
|
|
6355
6355
|
}), /* @__PURE__ */ y(jr, { editor: d })]
|
|
6356
6356
|
});
|
|
6357
|
-
})),
|
|
6357
|
+
})), od = { row: "_row_n16je_1" }, sd = ({ alignItems: t = "initial", justifyContent: n = "initial", children: r = null, flex: i = !1, height: o = "auto", marginBottom: s = "0", marginTop: c = "0", spacing: l = "var(--padding)", wrap: u = !1, testId: d = null }) => {
|
|
6358
6358
|
let f = typeof l == "number" ? `${l}px` : l, p = (r === null || r === !1 ? [] : Array.isArray(r) ? r.filter((e) => a(e)) : [r]).map((t, n) => /* @__PURE__ */ y(e.Fragment, { children: e.cloneElement(t, { spacing: f }) }, n));
|
|
6359
6359
|
return /* @__PURE__ */ y("div", {
|
|
6360
|
-
className: _(
|
|
6360
|
+
className: _(od.row),
|
|
6361
6361
|
style: {
|
|
6362
6362
|
alignItems: t,
|
|
6363
6363
|
justifyContent: n,
|
|
@@ -6373,7 +6373,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6373
6373
|
"data-testid": d,
|
|
6374
6374
|
children: p
|
|
6375
6375
|
});
|
|
6376
|
-
},
|
|
6376
|
+
}, cd = {
|
|
6377
6377
|
inputInTable: "_inputInTable_1oy1z_1",
|
|
6378
6378
|
inputHover: "_inputHover_1oy1z_13",
|
|
6379
6379
|
inputFocus: "_inputFocus_1oy1z_18",
|
|
@@ -6392,7 +6392,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6392
6392
|
experimental: "_experimental_1oy1z_155",
|
|
6393
6393
|
active: "_active_1oy1z_159",
|
|
6394
6394
|
icon: "_icon_1oy1z_163"
|
|
6395
|
-
},
|
|
6395
|
+
}, ld = o(({ isOpen: e, label: t, icon: n, invalid: r }) => /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(G, {
|
|
6396
6396
|
text: t,
|
|
6397
6397
|
enabled: !e,
|
|
6398
6398
|
placement: "right-center",
|
|
@@ -6401,7 +6401,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6401
6401
|
padding: "var(--padding-sm)",
|
|
6402
6402
|
display: "block",
|
|
6403
6403
|
children: /* @__PURE__ */ y("span", {
|
|
6404
|
-
className:
|
|
6404
|
+
className: cd.icon,
|
|
6405
6405
|
children: /* @__PURE__ */ y(la, {
|
|
6406
6406
|
small: !0,
|
|
6407
6407
|
title: r ? "!" : void 0,
|
|
@@ -6410,18 +6410,18 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6410
6410
|
})
|
|
6411
6411
|
})
|
|
6412
6412
|
}), /* @__PURE__ */ y("span", {
|
|
6413
|
-
className:
|
|
6413
|
+
className: cd.label,
|
|
6414
6414
|
children: t
|
|
6415
|
-
})] }), (e, t) => yr(e, t)),
|
|
6416
|
-
className:
|
|
6415
|
+
})] }), (e, t) => yr(e, t)), ud = ({ isOpen: e, items: t, sectionIndex: n, onClick: r, testId: i }) => /* @__PURE__ */ y("div", {
|
|
6416
|
+
className: cd.list,
|
|
6417
6417
|
children: t.map((t, a) => {
|
|
6418
6418
|
let o = `${n}_${a}`;
|
|
6419
6419
|
return /* @__PURE__ */ y("a", {
|
|
6420
6420
|
href: t.value,
|
|
6421
|
-
className: _(
|
|
6421
|
+
className: _(cd.item, t.isActive ? cd.active : "", t.isExperimental ? cd.experimental : ""),
|
|
6422
6422
|
onClick: (e) => r(e, t.value, t.label, t.onClick),
|
|
6423
6423
|
"data-testid": i,
|
|
6424
|
-
children: /* @__PURE__ */ y(
|
|
6424
|
+
children: /* @__PURE__ */ y(ld, {
|
|
6425
6425
|
label: t.label,
|
|
6426
6426
|
icon: t.icon,
|
|
6427
6427
|
invalid: t.invalid,
|
|
@@ -6429,16 +6429,16 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6429
6429
|
}, o)
|
|
6430
6430
|
}, o);
|
|
6431
6431
|
})
|
|
6432
|
-
}),
|
|
6433
|
-
className:
|
|
6432
|
+
}), dd = ({ isOpen: t, sections: n, onClick: r }) => /* @__PURE__ */ y(v, { children: n.map((n, i) => /* @__PURE__ */ b(e.Fragment, { children: [/* @__PURE__ */ y("h5", {
|
|
6433
|
+
className: cd.subtitle,
|
|
6434
6434
|
children: n.heading.toUpperCase()
|
|
6435
|
-
}), /* @__PURE__ */ y(
|
|
6435
|
+
}), /* @__PURE__ */ y(ud, {
|
|
6436
6436
|
isOpen: t,
|
|
6437
6437
|
items: n.items,
|
|
6438
6438
|
sectionIndex: i,
|
|
6439
6439
|
onClick: r,
|
|
6440
6440
|
testId: n.testId
|
|
6441
|
-
})] }, i)) }),
|
|
6441
|
+
})] }, i)) }), fd = o(({ options: e, startOpen: t = !1, onShiftClickToggleOpen: n = () => {}, top: r }) => {
|
|
6442
6442
|
let [i, a] = h(t), o = (e, t, n, r) => {
|
|
6443
6443
|
e.preventDefault(), typeof r == "function" && (e.currentTarget.value = t, e.currentTarget.label = n, r(e)), a(!1);
|
|
6444
6444
|
}, s = e.sections.length > 0;
|
|
@@ -6459,13 +6459,13 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6459
6459
|
icon: H.LEFT
|
|
6460
6460
|
}),
|
|
6461
6461
|
children: /* @__PURE__ */ y("div", {
|
|
6462
|
-
className: _(
|
|
6462
|
+
className: _(cd.sidebar, i ? "" : cd.collapsed),
|
|
6463
6463
|
children: s && /* @__PURE__ */ b("div", {
|
|
6464
|
-
className:
|
|
6464
|
+
className: cd.inner,
|
|
6465
6465
|
children: [/* @__PURE__ */ y("h4", {
|
|
6466
|
-
className:
|
|
6466
|
+
className: cd.title,
|
|
6467
6467
|
children: e.title
|
|
6468
|
-
}), /* @__PURE__ */ y(
|
|
6468
|
+
}), /* @__PURE__ */ y(dd, {
|
|
6469
6469
|
isOpen: i,
|
|
6470
6470
|
sections: e.sections,
|
|
6471
6471
|
onClick: o
|
|
@@ -6473,18 +6473,18 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6473
6473
|
})
|
|
6474
6474
|
})
|
|
6475
6475
|
});
|
|
6476
|
-
}, (e, t) => yr(e, t)),
|
|
6476
|
+
}, (e, t) => yr(e, t)), pd = {
|
|
6477
6477
|
skeletonContainer: "_skeletonContainer_mcfxp_9",
|
|
6478
6478
|
skeleton: "_skeleton_mcfxp_9"
|
|
6479
|
-
},
|
|
6479
|
+
}, md = ({ count: e, width: t, height: n }) => /* @__PURE__ */ y(Ir, {
|
|
6480
6480
|
baseColor: "var(--color-skeleton-base)",
|
|
6481
6481
|
highlightColor: "var(--color-skeleton-highlight)",
|
|
6482
|
-
containerClassName:
|
|
6483
|
-
className:
|
|
6482
|
+
containerClassName: pd.skeletonContainer,
|
|
6483
|
+
className: pd.skeleton,
|
|
6484
6484
|
count: e,
|
|
6485
6485
|
width: t,
|
|
6486
6486
|
height: n
|
|
6487
|
-
}),
|
|
6487
|
+
}), hd = {
|
|
6488
6488
|
wrapper: "_wrapper_j8x9r_1",
|
|
6489
6489
|
label: "_label_j8x9r_5",
|
|
6490
6490
|
input: "_input_j8x9r_9",
|
|
@@ -6492,38 +6492,38 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6492
6492
|
editable: "_editable_j8x9r_22",
|
|
6493
6493
|
inputControl: "_inputControl_j8x9r_25",
|
|
6494
6494
|
actions: "_actions_j8x9r_28"
|
|
6495
|
-
},
|
|
6495
|
+
}, gd = () => {
|
|
6496
6496
|
let e = m(null);
|
|
6497
6497
|
return d(() => {
|
|
6498
6498
|
e.current && (e.current(), e.current = null);
|
|
6499
6499
|
}), (t) => {
|
|
6500
6500
|
e.current = t;
|
|
6501
6501
|
};
|
|
6502
|
-
},
|
|
6502
|
+
}, _d = (e) => {
|
|
6503
6503
|
let t = m(void 0);
|
|
6504
6504
|
return l(() => {
|
|
6505
6505
|
t.current = e;
|
|
6506
6506
|
}, [e]), t.current;
|
|
6507
|
-
},
|
|
6507
|
+
}, vd = (e, t) => {
|
|
6508
6508
|
let n = t == null ? void 0 : t[e];
|
|
6509
6509
|
if (!n) {
|
|
6510
6510
|
var r;
|
|
6511
6511
|
return console.log(`Warning: 'unitTemplate' missing for '${e}'. Using initial unit, preferred unit or value unit.`), (r = cr(e)) == null ? "" : r;
|
|
6512
6512
|
}
|
|
6513
6513
|
return n;
|
|
6514
|
-
},
|
|
6514
|
+
}, yd = /* @__PURE__ */ function(e) {
|
|
6515
6515
|
return e.CUSTOM = "custom", e.PREDEFINED = "predefined", e;
|
|
6516
|
-
}({}),
|
|
6516
|
+
}({}), bd = (e) => e === "undefined" || e === void 0 || e === "" || e === "null" || e === null || e === "NaN" || isNaN(e), xd = (e) => {
|
|
6517
6517
|
if (!e) return !1;
|
|
6518
6518
|
let t = Kn(e);
|
|
6519
6519
|
return !Bn.includes(t);
|
|
6520
|
-
},
|
|
6520
|
+
}, Sd = ({ value: e, unitkey: t, toUnit: n }) => {
|
|
6521
6521
|
var r;
|
|
6522
6522
|
let i = zn[t];
|
|
6523
6523
|
if (!i || i.length === 0 || !((r = lr(e)) != null && r.valid) || !i.includes(n)) return !1;
|
|
6524
6524
|
let a = Kn(String(e));
|
|
6525
6525
|
return !(a && !i.includes(a));
|
|
6526
|
-
},
|
|
6526
|
+
}, Cd = ({ value: e, unitkey: t, toUnit: n, fromUnit: r, doNotConvertValue: i = !1, exactPrecision: a = !1 }) => {
|
|
6527
6527
|
var o;
|
|
6528
6528
|
let s = Qn(e) ? Jn(e) : e, c = [Infinity, -Infinity].includes(Number(s));
|
|
6529
6529
|
if (i || c) return {
|
|
@@ -6543,18 +6543,18 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6543
6543
|
value: void 0,
|
|
6544
6544
|
error: "Source unit is missing"
|
|
6545
6545
|
};
|
|
6546
|
-
if (
|
|
6546
|
+
if (bd(s)) return {
|
|
6547
6547
|
value: void 0,
|
|
6548
6548
|
error: "Value is invalid for conversion"
|
|
6549
6549
|
};
|
|
6550
6550
|
try {
|
|
6551
6551
|
let e = dr(s, l);
|
|
6552
|
-
return
|
|
6552
|
+
return Sd({
|
|
6553
6553
|
value: e,
|
|
6554
6554
|
toUnit: n,
|
|
6555
6555
|
unitkey: t
|
|
6556
6556
|
}) ? {
|
|
6557
|
-
value: Jn(
|
|
6557
|
+
value: Jn(sr(a ? Wn(e, n) : Un(e, n))),
|
|
6558
6558
|
error: null
|
|
6559
6559
|
} : {
|
|
6560
6560
|
value: Jn(e),
|
|
@@ -6566,13 +6566,13 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6566
6566
|
error: "Conversion not possible"
|
|
6567
6567
|
};
|
|
6568
6568
|
}
|
|
6569
|
-
},
|
|
6570
|
-
let a = Jn(e), o =
|
|
6571
|
-
return !
|
|
6569
|
+
}, wd = ({ value: e = "", toUnit: t, unitkey: n, defaultFromUnit: r, doNotConvertValue: i }) => {
|
|
6570
|
+
let a = Jn(e), o = bd(a);
|
|
6571
|
+
return !Sd({
|
|
6572
6572
|
value: e,
|
|
6573
6573
|
unitkey: n,
|
|
6574
6574
|
toUnit: t
|
|
6575
|
-
}) ||
|
|
6575
|
+
}) || xd(e) || o ? { value: a } : Qn(e) ? Cd({
|
|
6576
6576
|
value: e,
|
|
6577
6577
|
unitkey: n,
|
|
6578
6578
|
toUnit: t,
|
|
@@ -6580,25 +6580,25 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6580
6580
|
doNotConvertValue: i,
|
|
6581
6581
|
exactPrecision: !0
|
|
6582
6582
|
}) : { value: e };
|
|
6583
|
-
},
|
|
6583
|
+
}, Td = (e) => un(e) && !nn(e) && !sn(e) ? tn(e, "fieldName", "") : typeof e == "string" ? e : "", Ed = (e = "") => Bn == null ? void 0 : Bn.includes(e), Dd = (e, t) => {
|
|
6584
6584
|
let n = Kn(e || "");
|
|
6585
|
-
return
|
|
6586
|
-
},
|
|
6587
|
-
|
|
6588
|
-
},
|
|
6585
|
+
return Ed(t) && Ed(n);
|
|
6586
|
+
}, Od = n(null), kd = () => c(Od), Ad = !1, jd = (e) => {
|
|
6587
|
+
Ad || (Ad = !0, Od = e);
|
|
6588
|
+
}, Md = (e) => Xn(e) ? e : er(e), Nd = {
|
|
6589
6589
|
predefinedMenuActive: "_predefinedMenuActive_ye9w9_1",
|
|
6590
6590
|
inputWrapper: "_inputWrapper_ye9w9_4"
|
|
6591
|
-
},
|
|
6591
|
+
}, Pd = ({ name: e, placeholder: t = "", disabled: n = !1, disabledUnit: r = !1, error: i = null, left: a = !1, small: o = !1, width: s = "100%", value: c, unitkey: u = "", initUnit: d, noConversion: p = !1, onChange: m = mn, onClick: g = mn, onFocus: x = mn, onSwitchUnit: S = mn, unitTemplate: C, testId: w, warning: T = null, predefinedOptions: E, initialPredefinedOption: D = !1, shouldLinkAutomaticly: O = !0, selectedPredefinedOptionKey: k, validationCallback: A = () => ({
|
|
6592
6592
|
name: "",
|
|
6593
6593
|
error: null
|
|
6594
6594
|
}), disabledValidation: j = !1, allowEmpty: M = !1, convertBackToStorageUnit: N = !1, enableCosmeticRounding: P = !0, enableDisplayRounding: F = !1, roundDisplayValue: I, selectOnFocus: L = !0, groupOrder: R, tooltip: z = null }) => {
|
|
6595
|
-
let ee =
|
|
6595
|
+
let ee = kd(), te = gd();
|
|
6596
6596
|
typeof c == "number" && (c = `${c}`);
|
|
6597
|
-
let [ne = "", re = ""] = c === void 0 ? [] : ir(c), B = f(() =>
|
|
6597
|
+
let [ne = "", re = ""] = c === void 0 ? [] : ir(c), B = f(() => vd(u, C || (ee == null ? void 0 : ee.unitTemplate)), [
|
|
6598
6598
|
u,
|
|
6599
6599
|
C,
|
|
6600
6600
|
ee == null ? void 0 : ee.unitTemplate
|
|
6601
|
-
]), ie =
|
|
6601
|
+
]), ie = Dd(c, B), ae = d || B || re, oe = _d(ae), { value: se } = wd({
|
|
6602
6602
|
value: c,
|
|
6603
6603
|
toUnit: ae,
|
|
6604
6604
|
unitkey: u,
|
|
@@ -6610,10 +6610,10 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6610
6610
|
} : {
|
|
6611
6611
|
value: se,
|
|
6612
6612
|
unit: ae
|
|
6613
|
-
}), ue = M || (ce == null ? void 0 : ce.value) === void 0, [de, fe] = h(D ?
|
|
6613
|
+
}), ue = M || (ce == null ? void 0 : ce.value) === void 0, [de, fe] = h(D ? yd.PREDEFINED : yd.CUSTOM), pe = !!(j || n), me = E && E.find((e) => {
|
|
6614
6614
|
if (!(e != null && e.value)) return;
|
|
6615
6615
|
if (k) return k === e.valueKey;
|
|
6616
|
-
let t = Qn(e.value) ? Kn(e.value) : "", { value: n = c } =
|
|
6616
|
+
let t = Qn(e.value) ? Kn(e.value) : "", { value: n = c } = Cd({
|
|
6617
6617
|
value: String(c),
|
|
6618
6618
|
unitkey: u,
|
|
6619
6619
|
toUnit: t
|
|
@@ -6622,7 +6622,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6622
6622
|
}), he = () => {
|
|
6623
6623
|
var e;
|
|
6624
6624
|
let t = (e = c) == null ? "" : e, n = ce.unit;
|
|
6625
|
-
if (!
|
|
6625
|
+
if (!Sd({
|
|
6626
6626
|
value: t,
|
|
6627
6627
|
unitkey: u,
|
|
6628
6628
|
toUnit: n
|
|
@@ -6636,7 +6636,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6636
6636
|
return null;
|
|
6637
6637
|
}
|
|
6638
6638
|
}, ge = (t) => {
|
|
6639
|
-
let n =
|
|
6639
|
+
let n = Td(e), r = t.target, { value: i, selectionStart: a } = r, o = dr(i, (ce == null ? void 0 : ce.unit) || "");
|
|
6640
6640
|
m({ target: {
|
|
6641
6641
|
value: N ? dr(Un(o, re), re) : o,
|
|
6642
6642
|
name: n
|
|
@@ -6658,7 +6658,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6658
6658
|
if (ae) {
|
|
6659
6659
|
let e, t = "";
|
|
6660
6660
|
if (oe !== ae) {
|
|
6661
|
-
let { value: n } =
|
|
6661
|
+
let { value: n } = wd({
|
|
6662
6662
|
value: c,
|
|
6663
6663
|
toUnit: ae,
|
|
6664
6664
|
unitkey: u,
|
|
@@ -6667,7 +6667,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6667
6667
|
});
|
|
6668
6668
|
e = n, t = ae;
|
|
6669
6669
|
} else if (dr(ce.value, ce.unit) !== c) {
|
|
6670
|
-
let { value: n } =
|
|
6670
|
+
let { value: n } = wd({
|
|
6671
6671
|
value: c,
|
|
6672
6672
|
toUnit: ce.unit,
|
|
6673
6673
|
unitkey: u,
|
|
@@ -6679,7 +6679,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6679
6679
|
e !== void 0 && le({
|
|
6680
6680
|
value: e,
|
|
6681
6681
|
unit: t
|
|
6682
|
-
}), fe(E && me && O ?
|
|
6682
|
+
}), fe(E && me && O ? yd.PREDEFINED : yd.CUSTOM);
|
|
6683
6683
|
}
|
|
6684
6684
|
}, [
|
|
6685
6685
|
ae,
|
|
@@ -6687,14 +6687,14 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6687
6687
|
i,
|
|
6688
6688
|
O
|
|
6689
6689
|
]);
|
|
6690
|
-
let ve = he(), ye = $n(ce.unit) || ce.unit || "", be = p || !ve || ve && ve.length === 1, xe =
|
|
6690
|
+
let ve = he(), ye = $n(ce.unit) || ce.unit || "", be = p || !ve || ve && ve.length === 1, xe = Td(e), Se, Ce = (t) => {
|
|
6691
6691
|
let r = t != null && t.value ? t.value : "", [i = "", a = ""] = Qn(r) ? ir(r) : [r], o = ur(r);
|
|
6692
|
-
if (
|
|
6692
|
+
if (Sd({
|
|
6693
6693
|
value: r,
|
|
6694
6694
|
unitkey: u,
|
|
6695
6695
|
toUnit: a
|
|
6696
6696
|
})) {
|
|
6697
|
-
let { value: e = "" } =
|
|
6697
|
+
let { value: e = "" } = wd({
|
|
6698
6698
|
value: r,
|
|
6699
6699
|
toUnit: B,
|
|
6700
6700
|
unitkey: u,
|
|
@@ -6707,7 +6707,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6707
6707
|
type: Xi.OPTION,
|
|
6708
6708
|
inline: !0,
|
|
6709
6709
|
onClick: () => {
|
|
6710
|
-
lr(i).valid && !n && (fe(
|
|
6710
|
+
lr(i).valid && !n && (fe(yd.PREDEFINED), m({ target: {
|
|
6711
6711
|
value: r,
|
|
6712
6712
|
name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || "",
|
|
6713
6713
|
predefinedSelected: !0,
|
|
@@ -6719,27 +6719,27 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6719
6719
|
height: "0"
|
|
6720
6720
|
})] }),
|
|
6721
6721
|
description: o,
|
|
6722
|
-
selected: me === t && de ===
|
|
6722
|
+
selected: me === t && de === yd.PREDEFINED
|
|
6723
6723
|
};
|
|
6724
6724
|
};
|
|
6725
6725
|
if (Se = [{
|
|
6726
6726
|
type: Xi.OPTION,
|
|
6727
6727
|
inline: !0,
|
|
6728
6728
|
onClick: () => {
|
|
6729
|
-
de !==
|
|
6729
|
+
de !== yd.CUSTOM && !n && m({ target: {
|
|
6730
6730
|
value: dr(ce.value, ce.unit),
|
|
6731
6731
|
name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || ""
|
|
6732
6732
|
} });
|
|
6733
6733
|
},
|
|
6734
6734
|
label: "Custom",
|
|
6735
|
-
selected: de ===
|
|
6735
|
+
selected: de === yd.CUSTOM
|
|
6736
6736
|
}], E != null && E.length) {
|
|
6737
6737
|
let e = E.map(Ce);
|
|
6738
6738
|
Se = [...Se, ...e];
|
|
6739
6739
|
}
|
|
6740
6740
|
let we = (e) => {
|
|
6741
6741
|
if (Qn(e)) {
|
|
6742
|
-
let t = Kn(e), { value: n } =
|
|
6742
|
+
let t = Kn(e), { value: n } = wd({
|
|
6743
6743
|
value: e,
|
|
6744
6744
|
toUnit: ce.unit,
|
|
6745
6745
|
unitkey: u,
|
|
@@ -6751,7 +6751,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6751
6751
|
return e;
|
|
6752
6752
|
}, Te = !E && (!R || R === V.FIRST) ? V.FIRST : V.MIDDLE, Ee = !R || R === V.LAST ? V.LAST : V.MIDDLE;
|
|
6753
6753
|
return /* @__PURE__ */ y("div", {
|
|
6754
|
-
className: de ===
|
|
6754
|
+
className: de === yd.PREDEFINED ? _(Nd.predefinedMenuActive) : "",
|
|
6755
6755
|
children: /* @__PURE__ */ b(Do, {
|
|
6756
6756
|
small: o,
|
|
6757
6757
|
width: s,
|
|
@@ -6766,18 +6766,18 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6766
6766
|
trigger: "Component",
|
|
6767
6767
|
component: /* @__PURE__ */ y(K, {
|
|
6768
6768
|
groupOrder: "first",
|
|
6769
|
-
active: de ===
|
|
6770
|
-
icon: de ===
|
|
6769
|
+
active: de === yd.PREDEFINED,
|
|
6770
|
+
icon: de === yd.PREDEFINED ? "link" : "unlink",
|
|
6771
6771
|
small: o
|
|
6772
6772
|
}),
|
|
6773
6773
|
small: o,
|
|
6774
6774
|
sections: Se
|
|
6775
6775
|
},
|
|
6776
|
-
tooltip: de ===
|
|
6776
|
+
tooltip: de === yd.PREDEFINED ? me == null ? void 0 : me.label : ""
|
|
6777
6777
|
}),
|
|
6778
6778
|
/* @__PURE__ */ y("div", {
|
|
6779
|
-
className:
|
|
6780
|
-
children: /* @__PURE__ */ y(
|
|
6779
|
+
className: Nd.inputWrapper,
|
|
6780
|
+
children: /* @__PURE__ */ y(Pc, {
|
|
6781
6781
|
name: xe,
|
|
6782
6782
|
testId: w,
|
|
6783
6783
|
disabled: n,
|
|
@@ -6818,7 +6818,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6818
6818
|
let r = n || t || "", i = Zn(e) ? e : "";
|
|
6819
6819
|
return {
|
|
6820
6820
|
type: "Option",
|
|
6821
|
-
label: P ?
|
|
6821
|
+
label: P ? Md(i) : i,
|
|
6822
6822
|
inline: !0,
|
|
6823
6823
|
onClick: (n) => {
|
|
6824
6824
|
n.stopPropagation(), _e(e, t);
|
|
@@ -6833,10 +6833,10 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6833
6833
|
]
|
|
6834
6834
|
})
|
|
6835
6835
|
});
|
|
6836
|
-
},
|
|
6836
|
+
}, Fd = (e, t) => ({ target: {
|
|
6837
6837
|
name: e,
|
|
6838
6838
|
value: t
|
|
6839
|
-
} }),
|
|
6839
|
+
} }), Id = (e) => `Value cannot be less than ${e}`, Ld = (e) => `Value cannot be greater than ${e}`, Rd = ({ name: e = "", value: t, min: n, max: r, label: i, step: a = .01, onChange: o, onChangeComplete: s, preferredUnit: c = "m", enableEditUnitInput: u = !1, disabled: d = !1, showUnitInput: f = !0, showArrows: p = !0, unitkey: m = "length", testId: g, noConversion: v = !1, small: x = !1, marks: S, minErrorMessage: C = Id, maxErrorMessage: w = Ld }) => {
|
|
6840
6840
|
let T = dr(t, c), [E, D] = h(T), [O, k] = h(!1);
|
|
6841
6841
|
l(() => {
|
|
6842
6842
|
O || D(T);
|
|
@@ -6852,11 +6852,11 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6852
6852
|
}, I = () => {
|
|
6853
6853
|
D(T), k(!1);
|
|
6854
6854
|
}, L = () => {
|
|
6855
|
-
P || N === null || (o(
|
|
6855
|
+
P || N === null || (o(Fd(e, N)), s == null || s(Fd(e, N)), k(!1));
|
|
6856
6856
|
}, R = (e) => {
|
|
6857
6857
|
e.key === "Enter" && L(), e.key === "Escape" && I();
|
|
6858
6858
|
}, z = d || O, ee = /* @__PURE__ */ b("div", {
|
|
6859
|
-
className:
|
|
6859
|
+
className: hd.actions,
|
|
6860
6860
|
children: [/* @__PURE__ */ y(K, {
|
|
6861
6861
|
icon: "close",
|
|
6862
6862
|
small: !0,
|
|
@@ -6871,18 +6871,18 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6871
6871
|
})]
|
|
6872
6872
|
});
|
|
6873
6873
|
return /* @__PURE__ */ b("div", {
|
|
6874
|
-
className:
|
|
6874
|
+
className: hd.wrapper,
|
|
6875
6875
|
"data-testid": g && `${g}-wrapper`,
|
|
6876
6876
|
children: [
|
|
6877
6877
|
i && /* @__PURE__ */ y("span", {
|
|
6878
|
-
className:
|
|
6878
|
+
className: hd.label,
|
|
6879
6879
|
children: /* @__PURE__ */ y(so, {
|
|
6880
6880
|
small: x,
|
|
6881
6881
|
children: i
|
|
6882
6882
|
})
|
|
6883
6883
|
}),
|
|
6884
6884
|
f && /* @__PURE__ */ y("div", {
|
|
6885
|
-
className: _(
|
|
6885
|
+
className: _(hd.input, x && hd.inputSmall, u && !d && hd.editable),
|
|
6886
6886
|
children: /* @__PURE__ */ y(Pa, {
|
|
6887
6887
|
content: ee,
|
|
6888
6888
|
isOpen: O,
|
|
@@ -6894,11 +6894,11 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6894
6894
|
testId: g && `${g}-edit-popover`,
|
|
6895
6895
|
toggleOnTriggerClick: !1,
|
|
6896
6896
|
children: /* @__PURE__ */ y("div", {
|
|
6897
|
-
className:
|
|
6897
|
+
className: hd.inputControl,
|
|
6898
6898
|
"data-testid": g && `${g}-edit-trigger`,
|
|
6899
6899
|
onClick: F,
|
|
6900
6900
|
onKeyDown: R,
|
|
6901
|
-
children: /* @__PURE__ */ y(
|
|
6901
|
+
children: /* @__PURE__ */ y(Pd, {
|
|
6902
6902
|
name: e,
|
|
6903
6903
|
value: O ? E : T,
|
|
6904
6904
|
unitkey: m,
|
|
@@ -6914,7 +6914,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6914
6914
|
})
|
|
6915
6915
|
})
|
|
6916
6916
|
}),
|
|
6917
|
-
/* @__PURE__ */ y(
|
|
6917
|
+
/* @__PURE__ */ y(Wc, {
|
|
6918
6918
|
name: e,
|
|
6919
6919
|
value: t,
|
|
6920
6920
|
min: n,
|
|
@@ -6932,7 +6932,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6932
6932
|
})
|
|
6933
6933
|
]
|
|
6934
6934
|
});
|
|
6935
|
-
},
|
|
6935
|
+
}, zd = ({ label: e, invalid: t, badge: n }) => t ? /* @__PURE__ */ y(la, {
|
|
6936
6936
|
small: !0,
|
|
6937
6937
|
margin: "-4px",
|
|
6938
6938
|
color: "var(--color-text-error)",
|
|
@@ -6943,7 +6943,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6943
6943
|
margin: "-4px",
|
|
6944
6944
|
title: n == null ? void 0 : n.toString(),
|
|
6945
6945
|
children: e
|
|
6946
|
-
}) : /* @__PURE__ */ y(v, { children: e }),
|
|
6946
|
+
}) : /* @__PURE__ */ y(v, { children: e }), Bd = {
|
|
6947
6947
|
tabs: "_tabs_1rtn8_1",
|
|
6948
6948
|
padding: "_padding_1rtn8_7",
|
|
6949
6949
|
margin: "_margin_1rtn8_11",
|
|
@@ -6952,7 +6952,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6952
6952
|
left: "_left_1rtn8_64",
|
|
6953
6953
|
right: "_right_1rtn8_64",
|
|
6954
6954
|
selectionIndicator: "_selectionIndicator_1rtn8_67"
|
|
6955
|
-
},
|
|
6955
|
+
}, Vd = ({ name: e = void 0, options: t = null, value: n = void 0, onChange: r = mn, padding: i = !1, margin: a = !0, testId: o, linkComponent: s }) => {
|
|
6956
6956
|
let l = c(U), { simpleInputs: u, options: d, selectedOptions: f } = mc(t, n), p = cn(f) ? void 0 : u ? f : f.value, m = (e) => {
|
|
6957
6957
|
var t;
|
|
6958
6958
|
return (t = e.component) == null ? s : t;
|
|
@@ -6973,7 +6973,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6973
6973
|
"data-testid": o,
|
|
6974
6974
|
children: /* @__PURE__ */ y(zr, {
|
|
6975
6975
|
"aria-label": e == null ? "Tabs" : e,
|
|
6976
|
-
className: _(
|
|
6976
|
+
className: _(Bd.tabs, i ? Bd.padding : "", a ? Bd.margin : ""),
|
|
6977
6977
|
children: v.map((e) => {
|
|
6978
6978
|
let { label: t, url: n, to: r, disabled: i, value: a, right: o, invalid: s, badge: c, testId: u } = e, d = h(e), f = m(e);
|
|
6979
6979
|
return /* @__PURE__ */ b(Rr, {
|
|
@@ -6981,23 +6981,23 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
6981
6981
|
...!d && n ? { href: n } : {},
|
|
6982
6982
|
shouldSelectOnPressUp: !0,
|
|
6983
6983
|
isDisabled: i || l,
|
|
6984
|
-
className: _(
|
|
6984
|
+
className: _(Bd.item, o ? Bd.right : Bd.left),
|
|
6985
6985
|
"data-testid": u,
|
|
6986
6986
|
render: d && f ? (e) => /* @__PURE__ */ y(f, {
|
|
6987
6987
|
...e,
|
|
6988
6988
|
href: r,
|
|
6989
6989
|
to: r
|
|
6990
6990
|
}) : void 0,
|
|
6991
|
-
children: [/* @__PURE__ */ y(
|
|
6991
|
+
children: [/* @__PURE__ */ y(zd, {
|
|
6992
6992
|
label: t,
|
|
6993
6993
|
invalid: s,
|
|
6994
6994
|
badge: c
|
|
6995
|
-
}), /* @__PURE__ */ y(Lr, { className:
|
|
6995
|
+
}), /* @__PURE__ */ y(Lr, { className: Bd.selectionIndicator })]
|
|
6996
6996
|
}, a);
|
|
6997
6997
|
})
|
|
6998
6998
|
})
|
|
6999
6999
|
}) : null;
|
|
7000
|
-
},
|
|
7000
|
+
}, Hd = ({ children: e, href: t = void 0, target: n = void 0, testId: r, onClick: i, component: a = "a" }) => /* @__PURE__ */ y(a, {
|
|
7001
7001
|
href: t,
|
|
7002
7002
|
to: t,
|
|
7003
7003
|
target: n,
|
|
@@ -7007,7 +7007,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
7007
7007
|
link: !0,
|
|
7008
7008
|
children: e
|
|
7009
7009
|
})
|
|
7010
|
-
}),
|
|
7010
|
+
}), Ud = {
|
|
7011
7011
|
inputInTable: "_inputInTable_q0tl0_1",
|
|
7012
7012
|
inputHover: "_inputHover_q0tl0_13",
|
|
7013
7013
|
inputFocus: "_inputFocus_q0tl0_18",
|
|
@@ -7018,9 +7018,9 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
7018
7018
|
textarea: "_textarea_q0tl0_77",
|
|
7019
7019
|
small: "_small_q0tl0_116",
|
|
7020
7020
|
monospace: "_monospace_q0tl0_155"
|
|
7021
|
-
},
|
|
7021
|
+
}, Wd = ({ name: e, value: t = "", placeholder: n = "", cols: r, rows: i, disabled: a = !1, onChange: o = mn, onKeyPress: s = mn, onFocus: l = mn, onBlur: u = mn, tabIndex: d = 0, error: f = null, warning: p = null, tooltip: m = null, maxTooltipWidth: h, resize: g, monospace: v = !1, small: b = !1, testId: x }) => {
|
|
7022
7022
|
let S = c(U), C = /* @__PURE__ */ y("textarea", {
|
|
7023
|
-
className: _(
|
|
7023
|
+
className: _(Ud.textarea, f ? Ud.error : "", p ? Ud.warning : "", v ? Ud.monospace : "", b ? Ud.small : ""),
|
|
7024
7024
|
name: e,
|
|
7025
7025
|
value: t,
|
|
7026
7026
|
placeholder: n,
|
|
@@ -7062,10 +7062,10 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
7062
7062
|
menu: "_menu_oyr59_139",
|
|
7063
7063
|
active: "_active_oyr59_168",
|
|
7064
7064
|
alert: "_alert_oyr59_193"
|
|
7065
|
-
},
|
|
7065
|
+
}, Gd = ({ warning: e }) => /* @__PURE__ */ y("div", {
|
|
7066
7066
|
className: Q.alert,
|
|
7067
7067
|
children: e
|
|
7068
|
-
}),
|
|
7068
|
+
}), Kd = ({ icon: e, url: t, onClick: n }) => {
|
|
7069
7069
|
let r = /* @__PURE__ */ y(W, { icon: e });
|
|
7070
7070
|
return t ? /* @__PURE__ */ y("a", {
|
|
7071
7071
|
href: t,
|
|
@@ -7077,7 +7077,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
7077
7077
|
className: Q.appSwitcher,
|
|
7078
7078
|
children: r
|
|
7079
7079
|
});
|
|
7080
|
-
},
|
|
7080
|
+
}, qd = ({ label: e, logo: t, url: n, version: r, onClick: i }) => {
|
|
7081
7081
|
let a = /* @__PURE__ */ b("div", {
|
|
7082
7082
|
className: Q.title,
|
|
7083
7083
|
children: [
|
|
@@ -7106,9 +7106,9 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
7106
7106
|
children: a
|
|
7107
7107
|
})
|
|
7108
7108
|
});
|
|
7109
|
-
},
|
|
7109
|
+
}, Jd = /* @__PURE__ */ function(e) {
|
|
7110
7110
|
return e.LINK = "Link", e.BUTTON = "Button", e.MENU = "Menu", e.COMPONENT = "Component", e;
|
|
7111
|
-
}({}),
|
|
7111
|
+
}({}), Yd = ({ label: e, url: t, icon: n, onClick: r, active: i, disabled: a, testId: o, component: s = "a" }) => {
|
|
7112
7112
|
let l = c(U);
|
|
7113
7113
|
return /* @__PURE__ */ b(s, {
|
|
7114
7114
|
className: _(Q.link, i ? Q.active : ""),
|
|
@@ -7125,11 +7125,11 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
7125
7125
|
children: e
|
|
7126
7126
|
})]
|
|
7127
7127
|
});
|
|
7128
|
-
},
|
|
7128
|
+
}, Xd = ({ element: e }) => {
|
|
7129
7129
|
switch (e.type) {
|
|
7130
|
-
case
|
|
7130
|
+
case Jd.LINK: return /* @__PURE__ */ y("div", {
|
|
7131
7131
|
className: Q.item,
|
|
7132
|
-
children: /* @__PURE__ */ y(
|
|
7132
|
+
children: /* @__PURE__ */ y(Yd, {
|
|
7133
7133
|
label: e.label,
|
|
7134
7134
|
url: e.url,
|
|
7135
7135
|
icon: e.icon,
|
|
@@ -7140,7 +7140,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
7140
7140
|
component: e.component
|
|
7141
7141
|
})
|
|
7142
7142
|
});
|
|
7143
|
-
case
|
|
7143
|
+
case Jd.BUTTON: return /* @__PURE__ */ y("div", {
|
|
7144
7144
|
className: _(Q.item, Q.button),
|
|
7145
7145
|
children: /* @__PURE__ */ y(K, {
|
|
7146
7146
|
label: e.label,
|
|
@@ -7152,7 +7152,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
7152
7152
|
testId: e.testId
|
|
7153
7153
|
})
|
|
7154
7154
|
});
|
|
7155
|
-
case
|
|
7155
|
+
case Jd.MENU: return /* @__PURE__ */ y("div", {
|
|
7156
7156
|
className: _(Q.item, Q.menu),
|
|
7157
7157
|
children: /* @__PURE__ */ y(xa, {
|
|
7158
7158
|
maxHeight: "100%",
|
|
@@ -7160,7 +7160,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
7160
7160
|
trigger: qr.COMPONENT,
|
|
7161
7161
|
fullHeightTrigger: !0,
|
|
7162
7162
|
placement: "bottom-start",
|
|
7163
|
-
component: /* @__PURE__ */ y(
|
|
7163
|
+
component: /* @__PURE__ */ y(Yd, {
|
|
7164
7164
|
label: e.label,
|
|
7165
7165
|
icon: e.icon,
|
|
7166
7166
|
onClick: e.onClick
|
|
@@ -7169,50 +7169,50 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
7169
7169
|
}
|
|
7170
7170
|
})
|
|
7171
7171
|
});
|
|
7172
|
-
case
|
|
7172
|
+
case Jd.COMPONENT: return /* @__PURE__ */ y("div", {
|
|
7173
7173
|
className: Q.item,
|
|
7174
7174
|
children: e.component
|
|
7175
7175
|
});
|
|
7176
7176
|
default: return null;
|
|
7177
7177
|
}
|
|
7178
|
-
},
|
|
7178
|
+
}, Zd = ({ title: e, appSwitcher: t, content: n = [], contentRight: r = [], warning: i = "", height: a = "var(--size-topbar)", fixedPosition: o = !0 }) => /* @__PURE__ */ b("div", { children: [i && /* @__PURE__ */ y(Gd, { warning: i }), /* @__PURE__ */ b("div", {
|
|
7179
7179
|
className: _(Q.topbar, o ? Q.fixed : ""),
|
|
7180
7180
|
style: { height: a },
|
|
7181
7181
|
children: [
|
|
7182
|
-
!!t && /* @__PURE__ */ y(
|
|
7182
|
+
!!t && /* @__PURE__ */ y(Kd, {
|
|
7183
7183
|
icon: t.icon,
|
|
7184
7184
|
url: t.url,
|
|
7185
7185
|
onClick: t.onClick
|
|
7186
7186
|
}),
|
|
7187
7187
|
/* @__PURE__ */ b("div", {
|
|
7188
7188
|
className: Q.left,
|
|
7189
|
-
children: [e && /* @__PURE__ */ y(
|
|
7189
|
+
children: [e && /* @__PURE__ */ y(qd, {
|
|
7190
7190
|
label: e.label,
|
|
7191
7191
|
logo: e.logo,
|
|
7192
7192
|
url: e.url,
|
|
7193
7193
|
version: e.version,
|
|
7194
7194
|
onClick: e.onClick
|
|
7195
|
-
}), n.map((e, t) => e ? /* @__PURE__ */ y(
|
|
7195
|
+
}), n.map((e, t) => e ? /* @__PURE__ */ y(Xd, { element: e }, t) : null)]
|
|
7196
7196
|
}),
|
|
7197
7197
|
/* @__PURE__ */ y("div", {
|
|
7198
7198
|
className: Q.right,
|
|
7199
|
-
children: r.map((e, t) => e ? /* @__PURE__ */ y(
|
|
7199
|
+
children: r.map((e, t) => e ? /* @__PURE__ */ y(Xd, { element: e }, t) : null)
|
|
7200
7200
|
})
|
|
7201
7201
|
]
|
|
7202
|
-
})] }),
|
|
7202
|
+
})] }), Qd = {
|
|
7203
7203
|
popConfirm: "_popConfirm_1x6ye_1",
|
|
7204
7204
|
content: "_content_1x6ye_7",
|
|
7205
7205
|
buttons: "_buttons_1x6ye_13"
|
|
7206
|
-
},
|
|
7207
|
-
className:
|
|
7206
|
+
}, $d = ({ title: e, okText: t, onClickOk: n, disableConfirmButton: r, cancelText: i, onClickCancel: a, close: o, testId: s }) => /* @__PURE__ */ b("div", {
|
|
7207
|
+
className: Qd.popConfirm,
|
|
7208
7208
|
children: [e && /* @__PURE__ */ y("div", {
|
|
7209
|
-
className:
|
|
7209
|
+
className: Qd.content,
|
|
7210
7210
|
children: /* @__PURE__ */ y(so, {
|
|
7211
7211
|
small: !0,
|
|
7212
7212
|
children: e
|
|
7213
7213
|
})
|
|
7214
7214
|
}), /* @__PURE__ */ b("div", {
|
|
7215
|
-
className:
|
|
7215
|
+
className: Qd.buttons,
|
|
7216
7216
|
children: [/* @__PURE__ */ y(K, {
|
|
7217
7217
|
small: !0,
|
|
7218
7218
|
colored: !0,
|
|
@@ -7227,8 +7227,8 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
7227
7227
|
testId: `${s}-cancel-button`
|
|
7228
7228
|
})]
|
|
7229
7229
|
})]
|
|
7230
|
-
}),
|
|
7231
|
-
content: /* @__PURE__ */ y(
|
|
7230
|
+
}), ef = ({ children: e, placement: t = "top-center", closeOnOutsideClick: n = !0, fullWidth: r = !1, title: i = "", cancelText: a = "Cancel", onClickCancel: o = (e) => e && e(), okText: s = "Ok", onClickOk: c = () => {}, disableConfirmButton: l = !1, overflowContainer: u = !1, testId: d = void 0 }) => /* @__PURE__ */ y(Pa, {
|
|
7231
|
+
content: /* @__PURE__ */ y($d, {
|
|
7232
7232
|
title: i,
|
|
7233
7233
|
okText: s,
|
|
7234
7234
|
onClickOk: c,
|
|
@@ -7243,14 +7243,14 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
7243
7243
|
overflowContainer: u,
|
|
7244
7244
|
testId: d,
|
|
7245
7245
|
children: e
|
|
7246
|
-
}),
|
|
7246
|
+
}), tf = {
|
|
7247
7247
|
tree: "_tree_coxxe_1",
|
|
7248
7248
|
toggle: "_toggle_coxxe_8",
|
|
7249
7249
|
dropTarget: "_dropTarget_coxxe_15",
|
|
7250
7250
|
placeholder: "_placeholder_coxxe_30",
|
|
7251
7251
|
draggingSource: "_draggingSource_coxxe_36",
|
|
7252
7252
|
placeholderContainer: "_placeholderContainer_coxxe_39"
|
|
7253
|
-
},
|
|
7253
|
+
}, nf = ({ node: t, depth: n, isOpen: r, onToggle: i, hasChild: a, draggable: o, icons: s, onDrop: c }) => {
|
|
7254
7254
|
let { id: l, data: u } = t, { active: d, disabled: f, testId: p, onClick: m, actions: h = [] } = u, [g, v] = e.useState(!1), [x, S] = e.useState(0), C = (e) => {
|
|
7255
7255
|
e.stopPropagation(), i(l);
|
|
7256
7256
|
}, w = (e) => {
|
|
@@ -7277,7 +7277,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
7277
7277
|
className: _(Z.itemHeader, g ? Z.noPointerEvents : ""),
|
|
7278
7278
|
children: [
|
|
7279
7279
|
a && /* @__PURE__ */ y("div", {
|
|
7280
|
-
className:
|
|
7280
|
+
className: tf.toggle,
|
|
7281
7281
|
children: /* @__PURE__ */ y(K, {
|
|
7282
7282
|
basic: !0,
|
|
7283
7283
|
colored: r ? !0 : Jr.MUTED,
|
|
@@ -7291,10 +7291,10 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
7291
7291
|
className: Z.drag,
|
|
7292
7292
|
children: /* @__PURE__ */ y(W, { icon: H.DRAG })
|
|
7293
7293
|
}),
|
|
7294
|
-
/* @__PURE__ */ y(
|
|
7294
|
+
/* @__PURE__ */ y(ju, { item: u }),
|
|
7295
7295
|
/* @__PURE__ */ b("div", {
|
|
7296
7296
|
className: Z.right,
|
|
7297
|
-
children: [/* @__PURE__ */ y(
|
|
7297
|
+
children: [/* @__PURE__ */ y(Mu, { item: u }), !f && h.length > 0 && /* @__PURE__ */ y("div", {
|
|
7298
7298
|
className: Z.actions,
|
|
7299
7299
|
children: /* @__PURE__ */ y(Ca, { actions: h })
|
|
7300
7300
|
})]
|
|
@@ -7302,10 +7302,10 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
7302
7302
|
]
|
|
7303
7303
|
})
|
|
7304
7304
|
});
|
|
7305
|
-
},
|
|
7306
|
-
className:
|
|
7305
|
+
}, rf = ({ depth: e, indent: t = "var(--size-sm)" }) => /* @__PURE__ */ y("div", {
|
|
7306
|
+
className: tf.placeholder,
|
|
7307
7307
|
style: { left: `calc(${t} * ${e})` }
|
|
7308
|
-
}),
|
|
7308
|
+
}), af = ({ list: e, canDrop: t, draggable: n = !1, onListReorder: r, onChangeOpen: i, testId: a, isInitialOpen: o = !1, autoOpenActiveItems: s = !1, treeRef: c, itemHasChild: u, onItemToggle: d, icons: f, allowParentReassignment: p, stickyHeader: h, height: g, render: _, placeholderIndent: v }) => {
|
|
7309
7309
|
var x;
|
|
7310
7310
|
let S = c == null ? m(null) : c, C = (e) => {
|
|
7311
7311
|
i && i(e);
|
|
@@ -7363,7 +7363,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
7363
7363
|
"data-testid": a,
|
|
7364
7364
|
className: Z.list,
|
|
7365
7365
|
style: { height: g },
|
|
7366
|
-
children: [e.name && !e.noHeader && /* @__PURE__ */ y(
|
|
7366
|
+
children: [e.name && !e.noHeader && /* @__PURE__ */ y(Ou, {
|
|
7367
7367
|
name: e.name,
|
|
7368
7368
|
actions: e.actions,
|
|
7369
7369
|
stickyHeader: h
|
|
@@ -7390,7 +7390,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
7390
7390
|
hasChild: r,
|
|
7391
7391
|
isOpen: a,
|
|
7392
7392
|
onToggle: o
|
|
7393
|
-
}) : /* @__PURE__ */ y(
|
|
7393
|
+
}) : /* @__PURE__ */ y(nf, {
|
|
7394
7394
|
hasChild: u ? u(e) : r,
|
|
7395
7395
|
node: e,
|
|
7396
7396
|
depth: t,
|
|
@@ -7406,7 +7406,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
7406
7406
|
onDrop: A,
|
|
7407
7407
|
onChangeOpen: C,
|
|
7408
7408
|
dropTargetOffset: 10,
|
|
7409
|
-
placeholderRender: (e, { depth: t }) => /* @__PURE__ */ y(
|
|
7409
|
+
placeholderRender: (e, { depth: t }) => /* @__PURE__ */ y(rf, {
|
|
7410
7410
|
depth: t,
|
|
7411
7411
|
indent: v
|
|
7412
7412
|
}),
|
|
@@ -7414,17 +7414,17 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
7414
7414
|
listComponent: "div",
|
|
7415
7415
|
listItemComponent: "div",
|
|
7416
7416
|
classes: {
|
|
7417
|
-
root:
|
|
7418
|
-
draggingSource:
|
|
7419
|
-
dropTarget:
|
|
7420
|
-
placeholder:
|
|
7417
|
+
root: tf.tree,
|
|
7418
|
+
draggingSource: tf.draggingSource,
|
|
7419
|
+
dropTarget: tf.dropTarget,
|
|
7420
|
+
placeholder: tf.placeholderContainer
|
|
7421
7421
|
},
|
|
7422
7422
|
initialOpen: o,
|
|
7423
7423
|
enableAnimateExpand: !0
|
|
7424
7424
|
})
|
|
7425
7425
|
})]
|
|
7426
7426
|
});
|
|
7427
|
-
},
|
|
7427
|
+
}, of = {
|
|
7428
7428
|
treeTable: "_treeTable_1ywvy_1",
|
|
7429
7429
|
treeTableHeader: "_treeTableHeader_1ywvy_22",
|
|
7430
7430
|
folderCell: "_folderCell_1ywvy_30",
|
|
@@ -7432,48 +7432,48 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
7432
7432
|
drag: "_drag_1ywvy_31",
|
|
7433
7433
|
folder: "_folder_1ywvy_30",
|
|
7434
7434
|
active: "_active_1ywvy_61"
|
|
7435
|
-
},
|
|
7435
|
+
}, sf = (e, t) => e.filter((e) => e.parent === t).flatMap((t) => [t.id, ...sf(e, t.id)]), cf = (e, t) => {
|
|
7436
7436
|
let n = new Set(t);
|
|
7437
7437
|
return e.filter((e) => !n.has(e.id)).map((e) => e.id);
|
|
7438
|
-
},
|
|
7438
|
+
}, lf = (e, t, n) => e.filter((e) => n.has(e) || !t.has(e)), uf = (e, t, n, r = []) => {
|
|
7439
7439
|
let i = new Set(n), a = new Set(r), o = e.filter((e) => e.parent === t && !a.has(e.id));
|
|
7440
7440
|
if (o.length === 0) return {
|
|
7441
7441
|
checked: i.has(t),
|
|
7442
7442
|
indeterminate: !1
|
|
7443
7443
|
};
|
|
7444
|
-
let s = o.map((t) =>
|
|
7444
|
+
let s = o.map((t) => uf(e, t.id, n, r)), c = s.filter((e) => e.checked).length, l = s.filter((e) => e.indeterminate).length, u = c === o.length;
|
|
7445
7445
|
return {
|
|
7446
7446
|
checked: u,
|
|
7447
7447
|
indeterminate: c + l > 0 && !u
|
|
7448
7448
|
};
|
|
7449
|
-
},
|
|
7450
|
-
let r =
|
|
7449
|
+
}, df = (e, t, n = []) => {
|
|
7450
|
+
let r = cf(e, n), i = new Set(t), a = r.filter((e) => i.has(e)).length;
|
|
7451
7451
|
return {
|
|
7452
7452
|
checked: r.length > 0 && a === r.length,
|
|
7453
7453
|
indeterminate: a > 0 && a < r.length
|
|
7454
7454
|
};
|
|
7455
|
-
},
|
|
7455
|
+
}, ff = n(null), pf = () => c(ff), mf = ({ children: e, rowCheckboxes: t, rows: n }) => {
|
|
7456
7456
|
let r = t !== void 0, { checkedIds: i = [], disabledIds: a = [], getTooltip: o, onChange: c } = t == null ? {} : t, l = f(() => new Set(a), [a]), u = f(() => {
|
|
7457
7457
|
if (!r) return null;
|
|
7458
7458
|
let e = /* @__PURE__ */ new Map();
|
|
7459
|
-
for (let t of n) e.set(t.id,
|
|
7459
|
+
for (let t of n) e.set(t.id, uf(n, t.id, i, a));
|
|
7460
7460
|
return e;
|
|
7461
7461
|
}, [
|
|
7462
7462
|
i,
|
|
7463
7463
|
a,
|
|
7464
7464
|
r,
|
|
7465
7465
|
n
|
|
7466
|
-
]), d = f(() => r ?
|
|
7466
|
+
]), d = f(() => r ? df(n, i, a) : void 0, [
|
|
7467
7467
|
i,
|
|
7468
7468
|
a,
|
|
7469
7469
|
r,
|
|
7470
7470
|
n
|
|
7471
7471
|
]), p = s((e) => u == null ? void 0 : u.get(e), [u]), m = s((e) => l.has(e), [l]), h = s((e) => o == null ? void 0 : o(e), [o]), g = s((e) => {
|
|
7472
7472
|
if (!r || l.has(e)) return;
|
|
7473
|
-
let t =
|
|
7473
|
+
let t = sf(n, e), o = [e, ...t.filter((e) => !l.has(e))], s = [e, ...t], { checked: u } = uf(n, e, i, a);
|
|
7474
7474
|
if (u) {
|
|
7475
7475
|
let e = new Set(s);
|
|
7476
|
-
c == null || c(
|
|
7476
|
+
c == null || c(lf(i, e, l));
|
|
7477
7477
|
} else c == null || c([...new Set([...i, ...o])]);
|
|
7478
7478
|
}, [
|
|
7479
7479
|
i,
|
|
@@ -7484,7 +7484,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
7484
7484
|
n
|
|
7485
7485
|
]), _ = s(() => {
|
|
7486
7486
|
if (!r) return;
|
|
7487
|
-
let e =
|
|
7487
|
+
let e = cf(n, a), { checked: t } = df(n, i, a);
|
|
7488
7488
|
t ? c == null || c(i.filter((e) => l.has(e))) : c == null || c([...new Set([...i, ...e])]);
|
|
7489
7489
|
}, [
|
|
7490
7490
|
i,
|
|
@@ -7510,12 +7510,12 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
7510
7510
|
_,
|
|
7511
7511
|
g
|
|
7512
7512
|
]);
|
|
7513
|
-
return /* @__PURE__ */ y(
|
|
7513
|
+
return /* @__PURE__ */ y(ff.Provider, {
|
|
7514
7514
|
value: v,
|
|
7515
7515
|
children: e
|
|
7516
7516
|
});
|
|
7517
|
-
},
|
|
7518
|
-
let h =
|
|
7517
|
+
}, hf = ({ columnAlignment: e, columnWidths: t, depth: n, draggable: r, handleRef: i, hasChild: a, hasRowActions: o, icons: s, isOpen: c, node: l, onDragEnter: u, onDragOver: d, onDragLeave: f, onDrop: p, onToggle: m }) => {
|
|
7518
|
+
let h = pf(), g = h != null && h.enabled ? h.getRowCheckState(l.id) : void 0, v = g == null ? void 0 : g.checked, x = g == null ? void 0 : g.indeterminate, S = h == null ? void 0 : h.isRowCheckDisabled(l.id), C = h == null ? void 0 : h.enabled, { data: w, droppable: T } = l, { id: E, cells: D, testId: O, actions: k = [], active: A, onRowClick: j } = w, M = T || a, N = (e) => {
|
|
7519
7519
|
let r = t ? t[e] : void 0;
|
|
7520
7520
|
return e === 0 ? `calc(${r} - ${`calc(var(--size) * ${M ? n + 1 : n})`})` : r;
|
|
7521
7521
|
};
|
|
@@ -7528,12 +7528,12 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
7528
7528
|
onDragLeave: f,
|
|
7529
7529
|
children: /* @__PURE__ */ y("tbody", { children: /* @__PURE__ */ b("tr", {
|
|
7530
7530
|
onClick: j,
|
|
7531
|
-
className: _(
|
|
7531
|
+
className: _(of.treeTableRow, A ? of.active : void 0),
|
|
7532
7532
|
children: [
|
|
7533
|
-
C && /* @__PURE__ */ y(
|
|
7533
|
+
C && /* @__PURE__ */ y(il, {
|
|
7534
7534
|
isHeader: !1,
|
|
7535
7535
|
cell: {
|
|
7536
|
-
type:
|
|
7536
|
+
type: rl.CHECKBOX,
|
|
7537
7537
|
checked: v,
|
|
7538
7538
|
disabled: S,
|
|
7539
7539
|
indeterminate: x,
|
|
@@ -7542,19 +7542,19 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
7542
7542
|
}
|
|
7543
7543
|
}),
|
|
7544
7544
|
r && /* @__PURE__ */ y("td", {
|
|
7545
|
-
className:
|
|
7545
|
+
className: of.dragCell,
|
|
7546
7546
|
children: /* @__PURE__ */ y("div", {
|
|
7547
|
-
className:
|
|
7547
|
+
className: of.drag,
|
|
7548
7548
|
onClick: (e) => e.stopPropagation(),
|
|
7549
7549
|
ref: i,
|
|
7550
7550
|
children: /* @__PURE__ */ y(W, { icon: H.DRAG })
|
|
7551
7551
|
})
|
|
7552
7552
|
}),
|
|
7553
|
-
Array.from({ length: n }).map((e, t) => /* @__PURE__ */ y("td", { className:
|
|
7553
|
+
Array.from({ length: n }).map((e, t) => /* @__PURE__ */ y("td", { className: of.folderCell }, t)),
|
|
7554
7554
|
M && /* @__PURE__ */ y("td", {
|
|
7555
|
-
className:
|
|
7555
|
+
className: of.folderCell,
|
|
7556
7556
|
children: /* @__PURE__ */ y("div", {
|
|
7557
|
-
className:
|
|
7557
|
+
className: of.folder,
|
|
7558
7558
|
onClick: () => m(E),
|
|
7559
7559
|
onMouseDown: (e) => e.stopPropagation(),
|
|
7560
7560
|
children: /* @__PURE__ */ y(K, {
|
|
@@ -7567,69 +7567,69 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
7567
7567
|
})
|
|
7568
7568
|
})
|
|
7569
7569
|
}),
|
|
7570
|
-
D.map((t, n) => /* @__PURE__ */ y(
|
|
7570
|
+
D.map((t, n) => /* @__PURE__ */ y(il, {
|
|
7571
7571
|
isHeader: !1,
|
|
7572
7572
|
cell: t,
|
|
7573
7573
|
width: N(n),
|
|
7574
7574
|
columnAlignment: e ? e[n] : null
|
|
7575
7575
|
}, n)),
|
|
7576
|
-
o && /* @__PURE__ */ y(
|
|
7576
|
+
o && /* @__PURE__ */ y(il, {
|
|
7577
7577
|
isHeader: !1,
|
|
7578
7578
|
cell: {
|
|
7579
|
-
type:
|
|
7579
|
+
type: rl.ACTIONS,
|
|
7580
7580
|
actions: k
|
|
7581
7581
|
}
|
|
7582
7582
|
})
|
|
7583
7583
|
]
|
|
7584
7584
|
}) })
|
|
7585
7585
|
});
|
|
7586
|
-
},
|
|
7587
|
-
let a =
|
|
7586
|
+
}, gf = ({ columnAlignment: e, columnWidths: t, draggable: n, hasRowActions: r, headers: i }) => {
|
|
7587
|
+
let a = pf(), o = a == null ? void 0 : a.headerCheckState, s = (a == null ? void 0 : a.enabled) && o !== void 0;
|
|
7588
7588
|
return /* @__PURE__ */ y("table", {
|
|
7589
|
-
className: _(os.table,
|
|
7589
|
+
className: _(os.table, of.treeTableHeader),
|
|
7590
7590
|
children: /* @__PURE__ */ y("thead", { children: i.map((i, c) => /* @__PURE__ */ b("tr", { children: [
|
|
7591
|
-
s && c === 0 ? /* @__PURE__ */ y(
|
|
7591
|
+
s && c === 0 ? /* @__PURE__ */ y(il, {
|
|
7592
7592
|
isHeader: !0,
|
|
7593
7593
|
cell: {
|
|
7594
|
-
type:
|
|
7594
|
+
type: rl.CHECKBOX,
|
|
7595
7595
|
checked: o.checked,
|
|
7596
7596
|
indeterminate: o.indeterminate,
|
|
7597
7597
|
onChange: a.toggleHeaderCheck
|
|
7598
7598
|
}
|
|
7599
7599
|
}) : s ? /* @__PURE__ */ y("td", {}) : null,
|
|
7600
|
-
n && /* @__PURE__ */ y("th", { className:
|
|
7601
|
-
i.cells.map((n, r) => /* @__PURE__ */ y(
|
|
7600
|
+
n && /* @__PURE__ */ y("th", { className: of.dragCell }),
|
|
7601
|
+
i.cells.map((n, r) => /* @__PURE__ */ y(il, {
|
|
7602
7602
|
isHeader: !0,
|
|
7603
7603
|
cell: n,
|
|
7604
7604
|
width: t ? t[r] : void 0,
|
|
7605
7605
|
columnAlignment: e ? e[r] : void 0
|
|
7606
7606
|
}, r)),
|
|
7607
|
-
r && /* @__PURE__ */ y(
|
|
7607
|
+
r && /* @__PURE__ */ y(il, {
|
|
7608
7608
|
isHeader: !0,
|
|
7609
7609
|
cell: {
|
|
7610
|
-
type:
|
|
7610
|
+
type: rl.ACTIONS,
|
|
7611
7611
|
actions: i.actions,
|
|
7612
7612
|
width: 31
|
|
7613
7613
|
}
|
|
7614
7614
|
})
|
|
7615
7615
|
] }, c)) })
|
|
7616
7616
|
});
|
|
7617
|
-
},
|
|
7617
|
+
}, _f = ({ allowParentReassignment: e, autoOpenActiveItems: t = !1, canDrop: n, draggable: r = !1, icons: i, isInitialOpen: a = !1, itemHasChild: o, onItemToggle: s, onListReorder: c, onChangeOpen: l, rowCheckboxes: u, table: d, testId: f, treeRef: p }) => {
|
|
7618
7618
|
let { columnAlignment: m, columnWidths: h, fixedWidth: g, headers: _, rows: v = [] } = d, x = Dc(v, _ == null ? [] : _);
|
|
7619
|
-
return /* @__PURE__ */ y(
|
|
7619
|
+
return /* @__PURE__ */ y(mf, {
|
|
7620
7620
|
rowCheckboxes: u,
|
|
7621
7621
|
rows: v,
|
|
7622
7622
|
children: /* @__PURE__ */ b("div", {
|
|
7623
|
-
className:
|
|
7623
|
+
className: of.treeTable,
|
|
7624
7624
|
"data-testid": f,
|
|
7625
7625
|
style: { width: g },
|
|
7626
|
-
children: [!!_ && /* @__PURE__ */ y(
|
|
7626
|
+
children: [!!_ && /* @__PURE__ */ y(gf, {
|
|
7627
7627
|
columnAlignment: m,
|
|
7628
7628
|
columnWidths: h,
|
|
7629
7629
|
draggable: r,
|
|
7630
7630
|
hasRowActions: x,
|
|
7631
7631
|
headers: _
|
|
7632
|
-
}), /* @__PURE__ */ y(
|
|
7632
|
+
}), /* @__PURE__ */ y(af, {
|
|
7633
7633
|
allowParentReassignment: e,
|
|
7634
7634
|
autoOpenActiveItems: t,
|
|
7635
7635
|
canDrop: n,
|
|
@@ -7645,7 +7645,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
7645
7645
|
onItemToggle: s,
|
|
7646
7646
|
onListReorder: c,
|
|
7647
7647
|
placeholderIndent: "var(--size)",
|
|
7648
|
-
render: (e, { depth: t, draggable: n, handleRef: r, hasChild: a, isOpen: o, onToggle: s }) => /* @__PURE__ */ y(
|
|
7648
|
+
render: (e, { depth: t, draggable: n, handleRef: r, hasChild: a, isOpen: o, onToggle: s }) => /* @__PURE__ */ y(hf, {
|
|
7649
7649
|
node: e,
|
|
7650
7650
|
columnAlignment: m,
|
|
7651
7651
|
columnWidths: h,
|
|
@@ -7662,10 +7662,10 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
7662
7662
|
})]
|
|
7663
7663
|
})
|
|
7664
7664
|
});
|
|
7665
|
-
},
|
|
7665
|
+
}, vf = Object.freeze({
|
|
7666
7666
|
Translations: "translations",
|
|
7667
7667
|
LanguageKey: "languageKey"
|
|
7668
|
-
}),
|
|
7668
|
+
}), yf = {
|
|
7669
7669
|
unified: "Unified",
|
|
7670
7670
|
split: "Split",
|
|
7671
7671
|
changesTooLarge: "Changes are too large to be shown",
|
|
@@ -7687,30 +7687,30 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
7687
7687
|
pluralChanges: "changes",
|
|
7688
7688
|
showAll: "Show all",
|
|
7689
7689
|
unknown: "Unknown"
|
|
7690
|
-
},
|
|
7690
|
+
}, bf = (e) => Object.keys(yf).reduce((t, n) => ({
|
|
7691
7691
|
...t,
|
|
7692
|
-
[n]: (e == null ? void 0 : e[n]) || (
|
|
7693
|
-
}), {}),
|
|
7694
|
-
[
|
|
7695
|
-
[
|
|
7696
|
-
},
|
|
7697
|
-
|
|
7698
|
-
},
|
|
7692
|
+
[n]: (e == null ? void 0 : e[n]) || (yf == null ? void 0 : yf[n])
|
|
7693
|
+
}), {}), xf = {
|
|
7694
|
+
[vf.Translations]: bf(),
|
|
7695
|
+
[vf.LanguageKey]: "en"
|
|
7696
|
+
}, Sf = (e) => e ? xf[e] : xf, Cf = (e, t) => {
|
|
7697
|
+
xf[e] = t;
|
|
7698
|
+
}, wf = (e) => e.reduce(({ preferredUnits: e, storageUnits: t }, { unitKey: n, preferredUnit: r, storageUnit: i }) => {
|
|
7699
7699
|
var a;
|
|
7700
|
-
let { unitTemplate: o = null } = (a =
|
|
7701
|
-
return e[n] = r == null ?
|
|
7700
|
+
let { unitTemplate: o = null } = (a = kd()) == null ? {} : a;
|
|
7701
|
+
return e[n] = r == null ? vd(n, o) : r, t[n] = i, {
|
|
7702
7702
|
preferredUnits: e,
|
|
7703
7703
|
storageUnits: t
|
|
7704
7704
|
};
|
|
7705
7705
|
}, {
|
|
7706
7706
|
preferredUnits: {},
|
|
7707
7707
|
storageUnits: {}
|
|
7708
|
-
}),
|
|
7708
|
+
}), Tf = ({ row: e, rowIndex: t, selectedUnits: n, storageUnits: r, convertBackToStorageUnit: i, enableCosmeticRounding: a, enableDisplayRounding: o }) => ({
|
|
7709
7709
|
...e,
|
|
7710
7710
|
cells: e.cells.map((e, s) => {
|
|
7711
7711
|
if ("autoUnit" in e && e != null && e.autoUnit && (typeof (e == null ? void 0 : e.value) == "string" || typeof (e == null ? void 0 : e.value) == "number")) {
|
|
7712
|
-
let { unitKey: c, value: l, formatDisplayValue: u } = e, d = o && "roundDisplayValue" in e ? e == null ? void 0 : e.roundDisplayValue : null, f = n[c], p = r[c], m = p && f !== p, { value: h = l } =
|
|
7713
|
-
value:
|
|
7712
|
+
let { unitKey: c, value: l, formatDisplayValue: u } = e, d = o && "roundDisplayValue" in e ? e == null ? void 0 : e.roundDisplayValue : null, f = n[c], p = r[c], m = p && f !== p, { value: h = l } = Cd({
|
|
7713
|
+
value: sr(l),
|
|
7714
7714
|
unitkey: c,
|
|
7715
7715
|
toUnit: f,
|
|
7716
7716
|
fromUnit: p
|
|
@@ -7723,7 +7723,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
7723
7723
|
roundDisplayValue: d,
|
|
7724
7724
|
selectOnFocus: !0,
|
|
7725
7725
|
onChange: (n) => {
|
|
7726
|
-
let { value: r } = n.target, a = i ? p : f, { value: o = r } =
|
|
7726
|
+
let { value: r } = n.target, a = i ? p : f, { value: o = r } = Cd({
|
|
7727
7727
|
value: String(r),
|
|
7728
7728
|
unitkey: c,
|
|
7729
7729
|
toUnit: a,
|
|
@@ -7747,17 +7747,17 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
7747
7747
|
}
|
|
7748
7748
|
return e;
|
|
7749
7749
|
})
|
|
7750
|
-
}),
|
|
7751
|
-
let { translations: i } =
|
|
7750
|
+
}), Ef = ({ headers: e, selectedUnits: t, storageUnits: n, onChangeUnit: r }) => {
|
|
7751
|
+
let { translations: i } = Sf();
|
|
7752
7752
|
return e ? e.map((e) => ({
|
|
7753
7753
|
...e,
|
|
7754
7754
|
cells: e.cells.map((e) => {
|
|
7755
|
-
if (e.type ===
|
|
7755
|
+
if (e.type === rl.AUTO_UNIT) {
|
|
7756
7756
|
var a;
|
|
7757
7757
|
let { testId: o, unitKey: s, disabled: c = !1, error: l } = e, u = n[s];
|
|
7758
7758
|
return {
|
|
7759
7759
|
value: u && t[s],
|
|
7760
|
-
type:
|
|
7760
|
+
type: rl.SELECT,
|
|
7761
7761
|
error: !u && (i == null ? void 0 : i.unitIsMissing) || l,
|
|
7762
7762
|
disabled: c || !u,
|
|
7763
7763
|
searchable: !1,
|
|
@@ -7777,8 +7777,8 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
7777
7777
|
return e;
|
|
7778
7778
|
})
|
|
7779
7779
|
})) : [];
|
|
7780
|
-
},
|
|
7781
|
-
let { headers: u, ...d } = e, { storageUnits: f, preferredUnits: p } =
|
|
7780
|
+
}, Df = ({ table: e, unitConfig: t, convertBackToStorageUnit: n = !0, enableCosmeticRounding: r = !0, enableDisplayRounding: i = !0, onListReorder: a, canListReorder: o, beforeRenderRow: c }) => {
|
|
7781
|
+
let { headers: u, ...d } = e, { storageUnits: f, preferredUnits: p } = wf(t), m = _d(p), [g, _] = h(p), v = ({ unitKey: e, value: n }) => {
|
|
7782
7782
|
_({
|
|
7783
7783
|
...g,
|
|
7784
7784
|
[e]: n
|
|
@@ -7789,7 +7789,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
7789
7789
|
newUnit: n,
|
|
7790
7790
|
unitKey: e
|
|
7791
7791
|
});
|
|
7792
|
-
}, b = s(({ row: e, rowIndex: t }) =>
|
|
7792
|
+
}, b = s(({ row: e, rowIndex: t }) => Tf({
|
|
7793
7793
|
row: c ? c({
|
|
7794
7794
|
row: e,
|
|
7795
7795
|
rowIndex: t
|
|
@@ -7815,10 +7815,10 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
7815
7815
|
value: n
|
|
7816
7816
|
});
|
|
7817
7817
|
});
|
|
7818
|
-
}, [t]), /* @__PURE__ */ y(
|
|
7818
|
+
}, [t]), /* @__PURE__ */ y(ul, {
|
|
7819
7819
|
table: {
|
|
7820
7820
|
...d,
|
|
7821
|
-
headers:
|
|
7821
|
+
headers: Ef({
|
|
7822
7822
|
headers: e.headers,
|
|
7823
7823
|
selectedUnits: g,
|
|
7824
7824
|
storageUnits: f,
|
|
@@ -7829,8 +7829,8 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
7829
7829
|
canListReorder: o,
|
|
7830
7830
|
beforeRenderRow: b
|
|
7831
7831
|
});
|
|
7832
|
-
},
|
|
7833
|
-
let { translations: d } =
|
|
7832
|
+
}, Of = { settingField: "_settingField_1x02n_1" }, kf = ({ helpText: t, disabled: n = !1, showCustom: r = !1, children: i, userValue: a = void 0, companyValue: o = void 0, noPermission: s = !1, selectedOption: c, handleSelectChange: l, testId: u }) => {
|
|
7833
|
+
let { translations: d } = Sf(), f = (t) => t.replace(/\\n/g, "\n").split(/\n/).map((t, n) => /* @__PURE__ */ b(e.Fragment, { children: [t, /* @__PURE__ */ y("br", {})] }, n)), p = [
|
|
7834
7834
|
...r ? [] : [{
|
|
7835
7835
|
label: d == null ? void 0 : d.allUsers,
|
|
7836
7836
|
value: !1
|
|
@@ -7845,14 +7845,14 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
7845
7845
|
}] : []
|
|
7846
7846
|
], m = a !== void 0 && o !== void 0 && !on(a, o);
|
|
7847
7847
|
return /* @__PURE__ */ b("div", {
|
|
7848
|
-
className:
|
|
7848
|
+
className: Of.settingField,
|
|
7849
7849
|
"data-testid": u,
|
|
7850
|
-
children: [/* @__PURE__ */ b(
|
|
7850
|
+
children: [/* @__PURE__ */ b(wu, {
|
|
7851
7851
|
justifyContent: "space-between",
|
|
7852
7852
|
wrap: !1,
|
|
7853
7853
|
children: [i, !s && /* @__PURE__ */ y("div", {
|
|
7854
7854
|
style: { flexShrink: 0 },
|
|
7855
|
-
children: /* @__PURE__ */ b(
|
|
7855
|
+
children: /* @__PURE__ */ b(wu, {
|
|
7856
7856
|
gap: "8px",
|
|
7857
7857
|
alignItems: "center",
|
|
7858
7858
|
children: [m && /* @__PURE__ */ y(Fi, {
|
|
@@ -7877,19 +7877,19 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
7877
7877
|
children: f(t)
|
|
7878
7878
|
})]
|
|
7879
7879
|
});
|
|
7880
|
-
},
|
|
7880
|
+
}, Af = (e, t) => {
|
|
7881
7881
|
let n = e.replace(/\r\n/g, "\n").split("\n"), r = t.replace(/\r\n/g, "\n").split("\n"), i = r.length - n.length, a = n.length - r.length;
|
|
7882
7882
|
return {
|
|
7883
7883
|
added: Math.max(0, i),
|
|
7884
7884
|
removed: Math.max(0, a)
|
|
7885
7885
|
};
|
|
7886
|
-
},
|
|
7886
|
+
}, jf = "split", Mf = "unified", Nf = ({ oldJson: e, newJson: t, viewType: n = jf }) => {
|
|
7887
7887
|
var r, i;
|
|
7888
|
-
let { translations: a } =
|
|
7889
|
-
value:
|
|
7888
|
+
let { translations: a } = Sf(), [o, s] = h(n), c = [{
|
|
7889
|
+
value: jf,
|
|
7890
7890
|
label: (r = a == null ? void 0 : a.split) == null ? "Split" : r
|
|
7891
7891
|
}, {
|
|
7892
|
-
value:
|
|
7892
|
+
value: Mf,
|
|
7893
7893
|
label: (i = a == null ? void 0 : a.unified) == null ? "Unified" : i
|
|
7894
7894
|
}];
|
|
7895
7895
|
l(() => {
|
|
@@ -7897,10 +7897,10 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
7897
7897
|
}, [n]);
|
|
7898
7898
|
let u = ({ target: { value: e } }) => {
|
|
7899
7899
|
s(e);
|
|
7900
|
-
}, { added: d, removed: f } =
|
|
7900
|
+
}, { added: d, removed: f } = Af(e, t), p = d + f > 3500;
|
|
7901
7901
|
return /* @__PURE__ */ y(v, { children: /* @__PURE__ */ y(ja, {
|
|
7902
7902
|
bordered: !0,
|
|
7903
|
-
heading: /* @__PURE__ */ b(
|
|
7903
|
+
heading: /* @__PURE__ */ b(wu, {
|
|
7904
7904
|
gap: !0,
|
|
7905
7905
|
children: [/* @__PURE__ */ y(mo, { children: /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ b(so, {
|
|
7906
7906
|
success: !0,
|
|
@@ -7912,7 +7912,7 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
7912
7912
|
}), /* @__PURE__ */ b(so, {
|
|
7913
7913
|
error: !0,
|
|
7914
7914
|
children: ["-", f]
|
|
7915
|
-
})] }) }), !p && /* @__PURE__ */ y(
|
|
7915
|
+
})] }) }), !p && /* @__PURE__ */ y(ed, {
|
|
7916
7916
|
name: "viewType",
|
|
7917
7917
|
options: c,
|
|
7918
7918
|
value: o,
|
|
@@ -7930,14 +7930,14 @@ var Va = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ha =
|
|
|
7930
7930
|
}) : /* @__PURE__ */ y(Gr, {
|
|
7931
7931
|
oldValue: e,
|
|
7932
7932
|
newValue: t,
|
|
7933
|
-
splitView: o ===
|
|
7933
|
+
splitView: o === jf,
|
|
7934
7934
|
compareMethod: Kr.WORDS
|
|
7935
7935
|
})
|
|
7936
7936
|
}) });
|
|
7937
7937
|
};
|
|
7938
7938
|
//#endregion
|
|
7939
7939
|
//#region src/helpers/date.ts
|
|
7940
|
-
function
|
|
7940
|
+
function Pf({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i, locale: a }) {
|
|
7941
7941
|
return e ? new Date(e).toLocaleString(a, {
|
|
7942
7942
|
year: "numeric",
|
|
7943
7943
|
month: "short",
|
|
@@ -7951,28 +7951,28 @@ function Lf({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i
|
|
|
7951
7951
|
}
|
|
7952
7952
|
//#endregion
|
|
7953
7953
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/clone.js
|
|
7954
|
-
function
|
|
7954
|
+
function Ff(e) {
|
|
7955
7955
|
var t;
|
|
7956
7956
|
let n = /^\/(.*)\/([gimyu]*)$/.exec(e.toString());
|
|
7957
7957
|
if (!n) throw Error("Invalid RegExp");
|
|
7958
7958
|
return new RegExp((t = n[1]) == null ? "" : t, n[2]);
|
|
7959
7959
|
}
|
|
7960
|
-
function
|
|
7960
|
+
function If(e) {
|
|
7961
7961
|
if (typeof e != "object") return e;
|
|
7962
7962
|
if (e === null) return null;
|
|
7963
|
-
if (Array.isArray(e)) return e.map(
|
|
7963
|
+
if (Array.isArray(e)) return e.map(If);
|
|
7964
7964
|
if (e instanceof Date) return new Date(e.getTime());
|
|
7965
|
-
if (e instanceof RegExp) return
|
|
7965
|
+
if (e instanceof RegExp) return Ff(e);
|
|
7966
7966
|
let t = {};
|
|
7967
|
-
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
7967
|
+
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = If(e[n]));
|
|
7968
7968
|
return t;
|
|
7969
7969
|
}
|
|
7970
7970
|
//#endregion
|
|
7971
7971
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/assertions/arrays.js
|
|
7972
|
-
function
|
|
7972
|
+
function Lf(e, t) {
|
|
7973
7973
|
if (e.length === 0) throw Error(t || "Expected a non-empty array");
|
|
7974
7974
|
}
|
|
7975
|
-
var
|
|
7975
|
+
var Rf = (e) => e[e.length - 1], zf = class {
|
|
7976
7976
|
setResult(e) {
|
|
7977
7977
|
return this.result = e, this.hasResult = !0, this;
|
|
7978
7978
|
}
|
|
@@ -7980,16 +7980,16 @@ var Vf = (e) => e[e.length - 1], Hf = class {
|
|
|
7980
7980
|
return this.exiting = !0, this;
|
|
7981
7981
|
}
|
|
7982
7982
|
push(e, t) {
|
|
7983
|
-
return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? (
|
|
7983
|
+
return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? (Lf(this.children), Rf(this.children).next = e, this.children.push(e)) : (this.children = [e], this.nextAfterChildren = this.next || null, this.next = e), e.next = this, this;
|
|
7984
7984
|
}
|
|
7985
|
-
},
|
|
7985
|
+
}, Bf = class extends zf {
|
|
7986
7986
|
constructor(e, t) {
|
|
7987
7987
|
super(), this.left = e, this.right = t, this.pipe = "diff";
|
|
7988
7988
|
}
|
|
7989
7989
|
prepareDeltaResult(e) {
|
|
7990
7990
|
var t, n, r, i;
|
|
7991
7991
|
if (typeof e == "object" && ((t = this.options) != null && t.omitRemovedValues && Array.isArray(e) && e.length > 1 && (e.length === 2 || e[2] === 0 || e[2] === 3) && (e[0] = 0), (n = this.options) != null && n.cloneDiffValues)) {
|
|
7992
|
-
let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues :
|
|
7992
|
+
let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues : If;
|
|
7993
7993
|
typeof e[0] == "object" && (e[0] = t(e[0])), typeof e[1] == "object" && (e[1] = t(e[1]));
|
|
7994
7994
|
}
|
|
7995
7995
|
return e;
|
|
@@ -7997,15 +7997,15 @@ var Vf = (e) => e[e.length - 1], Hf = class {
|
|
|
7997
7997
|
setResult(e) {
|
|
7998
7998
|
return this.prepareDeltaResult(e), super.setResult(e);
|
|
7999
7999
|
}
|
|
8000
|
-
},
|
|
8000
|
+
}, Vf = class extends zf {
|
|
8001
8001
|
constructor(e, t) {
|
|
8002
8002
|
super(), this.left = e, this.delta = t, this.pipe = "patch";
|
|
8003
8003
|
}
|
|
8004
|
-
},
|
|
8004
|
+
}, Hf = class extends zf {
|
|
8005
8005
|
constructor(e) {
|
|
8006
8006
|
super(), this.delta = e, this.pipe = "reverse";
|
|
8007
8007
|
}
|
|
8008
|
-
},
|
|
8008
|
+
}, Uf = class {
|
|
8009
8009
|
constructor(e) {
|
|
8010
8010
|
this.name = e, this.filters = [];
|
|
8011
8011
|
}
|
|
@@ -8069,7 +8069,7 @@ var Vf = (e) => e[e.length - 1], Hf = class {
|
|
|
8069
8069
|
}
|
|
8070
8070
|
}), this);
|
|
8071
8071
|
}
|
|
8072
|
-
},
|
|
8072
|
+
}, Wf = class {
|
|
8073
8073
|
constructor(e) {
|
|
8074
8074
|
this.selfOptions = e || {}, this.pipes = {};
|
|
8075
8075
|
}
|
|
@@ -8096,7 +8096,7 @@ var Vf = (e) => e[e.length - 1], Hf = class {
|
|
|
8096
8096
|
for (; r;) n.nextAfterChildren !== void 0 && (n.next = n.nextAfterChildren, n.nextAfterChildren = null), typeof r == "string" && (r = this.pipe(r)), r.process(n), i = r, r = null, n && n.next && (n = n.next, r = n.pipe || i);
|
|
8097
8097
|
return n.hasResult ? n.result : void 0;
|
|
8098
8098
|
}
|
|
8099
|
-
},
|
|
8099
|
+
}, Gf = (e, t, n, r) => e[n] === t[r], Kf = (e, t, n, r) => {
|
|
8100
8100
|
var i, a, o;
|
|
8101
8101
|
let s = e.length, c = t.length, l, u, d = Array(s + 1);
|
|
8102
8102
|
for (l = 0; l < s + 1; l++) {
|
|
@@ -8112,7 +8112,7 @@ var Vf = (e) => e[e.length - 1], Hf = class {
|
|
|
8112
8112
|
for (u = 1; u < c + 1; u++) n(e, t, l - 1, u - 1, r) ? s[u] = ((i = f[u - 1]) == null ? 0 : i) + 1 : s[u] = Math.max((a = f[u]) == null ? 0 : a, (o = s[u - 1]) == null ? 0 : o);
|
|
8113
8113
|
}
|
|
8114
8114
|
return d;
|
|
8115
|
-
},
|
|
8115
|
+
}, qf = (e, t, n, r) => {
|
|
8116
8116
|
let i = t.length, a = n.length, o = {
|
|
8117
8117
|
sequence: [],
|
|
8118
8118
|
indices1: [],
|
|
@@ -8134,11 +8134,11 @@ var Vf = (e) => e[e.length - 1], Hf = class {
|
|
|
8134
8134
|
}
|
|
8135
8135
|
}
|
|
8136
8136
|
return o;
|
|
8137
|
-
},
|
|
8137
|
+
}, Jf = { get: (e, t, n, r) => {
|
|
8138
8138
|
let i = r || {};
|
|
8139
|
-
return
|
|
8140
|
-
} },
|
|
8141
|
-
function
|
|
8139
|
+
return qf(Kf(e, t, n || Gf, i), e, t, i);
|
|
8140
|
+
} }, Yf = 3;
|
|
8141
|
+
function Xf(e, t, n, r) {
|
|
8142
8142
|
for (let i = 0; i < n; i++) {
|
|
8143
8143
|
let n = e[i];
|
|
8144
8144
|
for (let e = 0; e < r; e++) {
|
|
@@ -8148,7 +8148,7 @@ function $f(e, t, n, r) {
|
|
|
8148
8148
|
}
|
|
8149
8149
|
return !1;
|
|
8150
8150
|
}
|
|
8151
|
-
function
|
|
8151
|
+
function Zf(e, t, n, r, i) {
|
|
8152
8152
|
let a = e[n], o = t[r];
|
|
8153
8153
|
if (a === o) return !0;
|
|
8154
8154
|
if (typeof a != "object" || typeof o != "object") return !1;
|
|
@@ -8161,15 +8161,15 @@ function ep(e, t, n, r, i) {
|
|
|
8161
8161
|
let l = i.hashCache2[r];
|
|
8162
8162
|
return l === void 0 && (i.hashCache2[r] = l = s(o, r)), l === void 0 ? !1 : c === l;
|
|
8163
8163
|
}
|
|
8164
|
-
var
|
|
8164
|
+
var Qf = function(e) {
|
|
8165
8165
|
var t, n, r, i, a;
|
|
8166
8166
|
if (!e.leftIsArray) return;
|
|
8167
8167
|
let o = {
|
|
8168
8168
|
objectHash: (t = e.options) == null ? void 0 : t.objectHash,
|
|
8169
8169
|
matchByPosition: (n = e.options) == null ? void 0 : n.matchByPosition
|
|
8170
8170
|
}, s = 0, c = 0, l, u, d, f = e.left, p = e.right, m = f.length, h = p.length, g;
|
|
8171
|
-
for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition =
|
|
8172
|
-
for (; c + s < m && c + s < h &&
|
|
8171
|
+
for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !Xf(f, p, m, h)); s < m && s < h && Zf(f, p, s, s, o);) l = s, g = new Bf(f[l], p[l]), e.push(g, l), s++;
|
|
8172
|
+
for (; c + s < m && c + s < h && Zf(f, p, m - 1 - c, h - 1 - c, o);) u = m - 1 - c, d = h - 1 - c, g = new Bf(f[u], p[d]), e.push(g, d), c++;
|
|
8173
8173
|
let _;
|
|
8174
8174
|
if (s + c === m) {
|
|
8175
8175
|
if (m === h) {
|
|
@@ -8193,7 +8193,7 @@ var tp = function(e) {
|
|
|
8193
8193
|
return;
|
|
8194
8194
|
}
|
|
8195
8195
|
o.hashCache1 = void 0, o.hashCache2 = void 0;
|
|
8196
|
-
let v = f.slice(s, m - c), y = p.slice(s, h - c), b =
|
|
8196
|
+
let v = f.slice(s, m - c), y = p.slice(s, h - c), b = Jf.get(v, y, Zf, o), x = [];
|
|
8197
8197
|
for (_ = _ || { _t: "a" }, l = s; l < m - c; l++) if (b.indices1.indexOf(l - s) < 0) {
|
|
8198
8198
|
let t = `_${l}`;
|
|
8199
8199
|
_[t] = [
|
|
@@ -8214,8 +8214,8 @@ var tp = function(e) {
|
|
|
8214
8214
|
if (S && w > 0) for (let n = 0; n < w; n++) {
|
|
8215
8215
|
u = x[n];
|
|
8216
8216
|
let r = u === void 0 ? void 0 : _[`_${u}`];
|
|
8217
|
-
if (u !== void 0 && r &&
|
|
8218
|
-
r.splice(1, 2, l,
|
|
8217
|
+
if (u !== void 0 && r && Zf(v, y, u - s, l - s, o)) {
|
|
8218
|
+
r.splice(1, 2, l, Yf), r.splice(1, 2, l, Yf), C || (r[0] = ""), d = l, g = new Bf(f[u], p[d]), e.push(g, d), x.splice(n, 1), t = !0;
|
|
8219
8219
|
break;
|
|
8220
8220
|
}
|
|
8221
8221
|
}
|
|
@@ -8223,20 +8223,20 @@ var tp = function(e) {
|
|
|
8223
8223
|
} else {
|
|
8224
8224
|
if (b.indices1[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices1: ${b.indices1}`);
|
|
8225
8225
|
if (u = b.indices1[t] + s, b.indices2[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices2: ${b.indices2}`);
|
|
8226
|
-
d = b.indices2[t] + s, g = new
|
|
8226
|
+
d = b.indices2[t] + s, g = new Bf(f[u], p[d]), e.push(g, d);
|
|
8227
8227
|
}
|
|
8228
8228
|
}
|
|
8229
8229
|
e.setResult(_).exit();
|
|
8230
8230
|
};
|
|
8231
|
-
|
|
8232
|
-
var
|
|
8231
|
+
Qf.filterName = "arrays";
|
|
8232
|
+
var $f = {
|
|
8233
8233
|
numerically(e, t) {
|
|
8234
8234
|
return e - t;
|
|
8235
8235
|
},
|
|
8236
8236
|
numericallyBy(e) {
|
|
8237
8237
|
return (t, n) => t[e] - n[e];
|
|
8238
8238
|
}
|
|
8239
|
-
},
|
|
8239
|
+
}, ep = function(e) {
|
|
8240
8240
|
var t;
|
|
8241
8241
|
if (!e.nested) return;
|
|
8242
8242
|
let n = e.delta;
|
|
@@ -8244,7 +8244,7 @@ var np = {
|
|
|
8244
8244
|
let r, i, a = n, o = e.left, s = [], c = [], l = [];
|
|
8245
8245
|
for (r in a) if (r !== "_t") if (r[0] === "_") {
|
|
8246
8246
|
let e = r;
|
|
8247
|
-
if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] ===
|
|
8247
|
+
if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] === Yf)) s.push(Number.parseInt(r.slice(1), 10));
|
|
8248
8248
|
else throw Error(`only removal or move can be applied at original array indices, invalid diff type: ${(t = a[e]) == null ? void 0 : t[2]}`);
|
|
8249
8249
|
} else {
|
|
8250
8250
|
let e = r;
|
|
@@ -8256,15 +8256,15 @@ var np = {
|
|
|
8256
8256
|
delta: a[e]
|
|
8257
8257
|
});
|
|
8258
8258
|
}
|
|
8259
|
-
for (s = s.sort(
|
|
8259
|
+
for (s = s.sort($f.numerically), r = s.length - 1; r >= 0; r--) {
|
|
8260
8260
|
if (i = s[r], i === void 0) continue;
|
|
8261
8261
|
let e = a[`_${i}`], t = o.splice(i, 1)[0];
|
|
8262
|
-
(e == null ? void 0 : e[2]) ===
|
|
8262
|
+
(e == null ? void 0 : e[2]) === Yf && c.push({
|
|
8263
8263
|
index: e[1],
|
|
8264
8264
|
value: t
|
|
8265
8265
|
});
|
|
8266
8266
|
}
|
|
8267
|
-
c = c.sort(
|
|
8267
|
+
c = c.sort($f.numericallyBy("index"));
|
|
8268
8268
|
let u = c.length;
|
|
8269
8269
|
for (r = 0; r < u; r++) {
|
|
8270
8270
|
let e = c[r];
|
|
@@ -8274,7 +8274,7 @@ var np = {
|
|
|
8274
8274
|
if (d > 0) for (r = 0; r < d; r++) {
|
|
8275
8275
|
let t = l[r];
|
|
8276
8276
|
if (t === void 0) continue;
|
|
8277
|
-
let n = new
|
|
8277
|
+
let n = new Vf(o[t.index], t.delta);
|
|
8278
8278
|
e.push(n, t.index);
|
|
8279
8279
|
}
|
|
8280
8280
|
if (!e.children) {
|
|
@@ -8283,8 +8283,8 @@ var np = {
|
|
|
8283
8283
|
}
|
|
8284
8284
|
e.exit();
|
|
8285
8285
|
};
|
|
8286
|
-
|
|
8287
|
-
var
|
|
8286
|
+
ep.filterName = "arrays";
|
|
8287
|
+
var tp = function(e) {
|
|
8288
8288
|
if (!e || !e.children || e.delta._t !== "a") return;
|
|
8289
8289
|
let t = e.left, n = e.children.length;
|
|
8290
8290
|
for (let r = 0; r < n; r++) {
|
|
@@ -8295,16 +8295,16 @@ var ip = function(e) {
|
|
|
8295
8295
|
}
|
|
8296
8296
|
e.setResult(t).exit();
|
|
8297
8297
|
};
|
|
8298
|
-
|
|
8299
|
-
var
|
|
8298
|
+
tp.filterName = "arraysCollectChildren";
|
|
8299
|
+
var np = function(e) {
|
|
8300
8300
|
if (!e.nested) {
|
|
8301
8301
|
let t = e.delta;
|
|
8302
|
-
if (t[2] ===
|
|
8302
|
+
if (t[2] === Yf) {
|
|
8303
8303
|
let n = t;
|
|
8304
8304
|
e.newName = `_${n[1]}`, e.setResult([
|
|
8305
8305
|
n[0],
|
|
8306
8306
|
Number.parseInt(e.childName.substring(1), 10),
|
|
8307
|
-
|
|
8307
|
+
Yf
|
|
8308
8308
|
]).exit();
|
|
8309
8309
|
}
|
|
8310
8310
|
return;
|
|
@@ -8314,26 +8314,26 @@ var ap = function(e) {
|
|
|
8314
8314
|
let n = t;
|
|
8315
8315
|
for (let t in n) {
|
|
8316
8316
|
if (t === "_t") continue;
|
|
8317
|
-
let r = new
|
|
8317
|
+
let r = new Hf(n[t]);
|
|
8318
8318
|
e.push(r, t);
|
|
8319
8319
|
}
|
|
8320
8320
|
e.exit();
|
|
8321
8321
|
};
|
|
8322
|
-
|
|
8323
|
-
var
|
|
8322
|
+
np.filterName = "arrays";
|
|
8323
|
+
var rp = (e, t, n) => {
|
|
8324
8324
|
if (typeof t == "string" && t[0] === "_") return Number.parseInt(t.substring(1), 10);
|
|
8325
8325
|
if (Array.isArray(n) && n[2] === 0) return `_${t}`;
|
|
8326
8326
|
let r = +t;
|
|
8327
8327
|
for (let n in e) {
|
|
8328
8328
|
let i = e[n];
|
|
8329
|
-
if (Array.isArray(i)) if (i[2] ===
|
|
8329
|
+
if (Array.isArray(i)) if (i[2] === Yf) {
|
|
8330
8330
|
let e = Number.parseInt(n.substring(1), 10), a = i[1];
|
|
8331
8331
|
if (a === +t) return e;
|
|
8332
8332
|
e <= r && a > r ? r++ : e >= r && a < r && r--;
|
|
8333
8333
|
} else i[2] === 0 ? Number.parseInt(n.substring(1), 10) <= r && r++ : i.length === 1 && Number.parseInt(n, 10) <= r && r--;
|
|
8334
8334
|
}
|
|
8335
8335
|
return r;
|
|
8336
|
-
},
|
|
8336
|
+
}, ip = (e) => {
|
|
8337
8337
|
if (!e || !e.children) return;
|
|
8338
8338
|
let t = e.delta;
|
|
8339
8339
|
if (t._t !== "a") return;
|
|
@@ -8344,22 +8344,22 @@ var op = (e, t, n) => {
|
|
|
8344
8344
|
let a = r.newName;
|
|
8345
8345
|
if (a === void 0) {
|
|
8346
8346
|
if (r.childName === void 0) throw Error("child.childName is undefined");
|
|
8347
|
-
a =
|
|
8347
|
+
a = rp(n, r.childName, r.result);
|
|
8348
8348
|
}
|
|
8349
8349
|
i[a] !== r.result && (i[a] = r.result);
|
|
8350
8350
|
}
|
|
8351
8351
|
e.setResult(i).exit();
|
|
8352
8352
|
};
|
|
8353
|
-
|
|
8353
|
+
ip.filterName = "arraysCollectChildren";
|
|
8354
8354
|
//#endregion
|
|
8355
8355
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/dates.js
|
|
8356
|
-
var
|
|
8356
|
+
var ap = function(e) {
|
|
8357
8357
|
e.left instanceof Date ? (e.right instanceof Date && e.left.getTime() === e.right.getTime() ? e.setResult(void 0) : e.setResult([e.left, e.right]), e.exit()) : e.right instanceof Date && e.setResult([e.left, e.right]).exit();
|
|
8358
8358
|
};
|
|
8359
|
-
|
|
8359
|
+
ap.filterName = "dates";
|
|
8360
8360
|
//#endregion
|
|
8361
8361
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/nested.js
|
|
8362
|
-
var
|
|
8362
|
+
var op = new Set(["__proto__"]), sp = (e) => {
|
|
8363
8363
|
if (!e || !e.children) return;
|
|
8364
8364
|
let t = e.children.length, n = e.result;
|
|
8365
8365
|
for (let r = 0; r < t; r++) {
|
|
@@ -8371,18 +8371,18 @@ var lp = new Set(["__proto__"]), up = (e) => {
|
|
|
8371
8371
|
}
|
|
8372
8372
|
n && e.leftIsArray && (n._t = "a"), e.setResult(n).exit();
|
|
8373
8373
|
};
|
|
8374
|
-
|
|
8375
|
-
var
|
|
8374
|
+
sp.filterName = "collectChildren";
|
|
8375
|
+
var cp = (e) => {
|
|
8376
8376
|
var t;
|
|
8377
8377
|
if (e.leftIsArray || e.leftType !== "object") return;
|
|
8378
8378
|
let n = e.left, r = e.right, i = (t = e.options) == null ? void 0 : t.propertyFilter;
|
|
8379
8379
|
for (let t in n) {
|
|
8380
8380
|
if (!Object.prototype.hasOwnProperty.call(n, t) || i && !i(t, e)) continue;
|
|
8381
|
-
let a = new
|
|
8381
|
+
let a = new Bf(n[t], r[t]);
|
|
8382
8382
|
e.push(a, t);
|
|
8383
8383
|
}
|
|
8384
8384
|
for (let t in r) if (Object.prototype.hasOwnProperty.call(r, t) && !(i && !i(t, e)) && n[t] === void 0) {
|
|
8385
|
-
let n = new
|
|
8385
|
+
let n = new Bf(void 0, r[t]);
|
|
8386
8386
|
e.push(n, t);
|
|
8387
8387
|
}
|
|
8388
8388
|
if (!e.children || e.children.length === 0) {
|
|
@@ -8391,15 +8391,15 @@ var dp = (e) => {
|
|
|
8391
8391
|
}
|
|
8392
8392
|
e.exit();
|
|
8393
8393
|
};
|
|
8394
|
-
|
|
8395
|
-
var
|
|
8394
|
+
cp.filterName = "objects";
|
|
8395
|
+
var lp = function(e) {
|
|
8396
8396
|
if (!e.nested) return;
|
|
8397
8397
|
let t = e.delta;
|
|
8398
8398
|
if (t._t) return;
|
|
8399
8399
|
let n = t, r = !1;
|
|
8400
8400
|
for (let t in n) {
|
|
8401
|
-
if (
|
|
8402
|
-
let i = e.left, a = new
|
|
8401
|
+
if (op.has(t) || !Object.prototype.hasOwnProperty.call(n, t)) continue;
|
|
8402
|
+
let i = e.left, a = new Vf(typeof i == "object" && i && Object.prototype.hasOwnProperty.call(i, t) ? i[t] : void 0, n[t]);
|
|
8403
8403
|
e.push(a, t), r = !0;
|
|
8404
8404
|
}
|
|
8405
8405
|
if (!r) {
|
|
@@ -8408,8 +8408,8 @@ var fp = function(e) {
|
|
|
8408
8408
|
}
|
|
8409
8409
|
e.exit();
|
|
8410
8410
|
};
|
|
8411
|
-
|
|
8412
|
-
var
|
|
8411
|
+
lp.filterName = "objects";
|
|
8412
|
+
var up = function(e) {
|
|
8413
8413
|
if (!e || !e.children || e.delta._t) return;
|
|
8414
8414
|
if (e.left === null || typeof e.left != "object") {
|
|
8415
8415
|
e.setResult(e.left).exit();
|
|
@@ -8420,17 +8420,17 @@ var pp = function(e) {
|
|
|
8420
8420
|
let n = e.children[r];
|
|
8421
8421
|
if (n === void 0) continue;
|
|
8422
8422
|
let i = n.childName;
|
|
8423
|
-
|
|
8423
|
+
op.has(i) || (Object.prototype.hasOwnProperty.call(e.left, i) && n.result === void 0 ? delete t[i] : t[i] !== n.result && (t[i] = n.result));
|
|
8424
8424
|
}
|
|
8425
8425
|
e.setResult(t).exit();
|
|
8426
8426
|
};
|
|
8427
|
-
|
|
8428
|
-
var
|
|
8427
|
+
up.filterName = "collectChildren";
|
|
8428
|
+
var dp = function(e) {
|
|
8429
8429
|
if (!e.nested || e.delta._t) return;
|
|
8430
8430
|
let t = e.delta, n = !1;
|
|
8431
8431
|
for (let r in t) {
|
|
8432
|
-
if (
|
|
8433
|
-
let i = new
|
|
8432
|
+
if (op.has(r) || !Object.prototype.hasOwnProperty.call(t, r)) continue;
|
|
8433
|
+
let i = new Hf(t[r]);
|
|
8434
8434
|
e.push(i, r), n = !0;
|
|
8435
8435
|
}
|
|
8436
8436
|
if (!n) {
|
|
@@ -8439,25 +8439,25 @@ var mp = function(e) {
|
|
|
8439
8439
|
}
|
|
8440
8440
|
e.exit();
|
|
8441
8441
|
};
|
|
8442
|
-
|
|
8443
|
-
var
|
|
8442
|
+
dp.filterName = "objects";
|
|
8443
|
+
var fp = (e) => {
|
|
8444
8444
|
if (!e || !e.children || e.delta._t) return;
|
|
8445
8445
|
let t = e.children.length, n = {};
|
|
8446
8446
|
for (let r = 0; r < t; r++) {
|
|
8447
8447
|
let t = e.children[r];
|
|
8448
8448
|
if (t === void 0) continue;
|
|
8449
8449
|
let i = t.childName;
|
|
8450
|
-
|
|
8450
|
+
op.has(i) || n[i] !== t.result && (n[i] = t.result);
|
|
8451
8451
|
}
|
|
8452
8452
|
e.setResult(n).exit();
|
|
8453
8453
|
};
|
|
8454
|
-
|
|
8454
|
+
fp.filterName = "collectChildren";
|
|
8455
8455
|
//#endregion
|
|
8456
8456
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/texts.js
|
|
8457
|
-
var
|
|
8458
|
-
function
|
|
8457
|
+
var pp = 2, mp = 60, hp = null;
|
|
8458
|
+
function gp(e, t) {
|
|
8459
8459
|
var n;
|
|
8460
|
-
if (!
|
|
8460
|
+
if (!hp) {
|
|
8461
8461
|
let r;
|
|
8462
8462
|
if ((n = e == null ? void 0 : e.textDiff) != null && n.diffMatchPatch) r = new e.textDiff.diffMatchPatch();
|
|
8463
8463
|
else {
|
|
@@ -8465,7 +8465,7 @@ function yp(e, t) {
|
|
|
8465
8465
|
let e = /* @__PURE__ */ Error("The diff-match-patch library was not provided. Pass the library in through the options or use the `jsondiffpatch/with-text-diffs` entry-point.");
|
|
8466
8466
|
throw e.diff_match_patch_not_found = !0, e;
|
|
8467
8467
|
}
|
|
8468
|
-
|
|
8468
|
+
hp = {
|
|
8469
8469
|
diff: (e, t) => r.patch_toText(r.patch_make(e, t)),
|
|
8470
8470
|
patch: (e, t) => {
|
|
8471
8471
|
let n = r.patch_apply(r.patch_fromText(t), e);
|
|
@@ -8477,17 +8477,17 @@ function yp(e, t) {
|
|
|
8477
8477
|
}
|
|
8478
8478
|
};
|
|
8479
8479
|
}
|
|
8480
|
-
return
|
|
8480
|
+
return hp;
|
|
8481
8481
|
}
|
|
8482
|
-
var
|
|
8482
|
+
var _p = function(e) {
|
|
8483
8483
|
var t, n;
|
|
8484
8484
|
if (e.leftType !== "string") return;
|
|
8485
|
-
let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) ||
|
|
8485
|
+
let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) || mp;
|
|
8486
8486
|
if (r.length < a || i.length < a) {
|
|
8487
8487
|
e.setResult([r, i]).exit();
|
|
8488
8488
|
return;
|
|
8489
8489
|
}
|
|
8490
|
-
let o =
|
|
8490
|
+
let o = gp(e.options);
|
|
8491
8491
|
if (!o) {
|
|
8492
8492
|
e.setResult([r, i]).exit();
|
|
8493
8493
|
return;
|
|
@@ -8496,19 +8496,19 @@ var bp = function(e) {
|
|
|
8496
8496
|
e.setResult([
|
|
8497
8497
|
s(r, i),
|
|
8498
8498
|
0,
|
|
8499
|
-
|
|
8499
|
+
pp
|
|
8500
8500
|
]).exit();
|
|
8501
8501
|
};
|
|
8502
|
-
|
|
8503
|
-
var
|
|
8502
|
+
_p.filterName = "texts";
|
|
8503
|
+
var vp = function(e) {
|
|
8504
8504
|
if (e.nested) return;
|
|
8505
8505
|
let t = e.delta;
|
|
8506
|
-
if (t[2] !==
|
|
8507
|
-
let n = t, r =
|
|
8506
|
+
if (t[2] !== pp) return;
|
|
8507
|
+
let n = t, r = gp(e.options, !0).patch;
|
|
8508
8508
|
e.setResult(r(e.left, n[0])).exit();
|
|
8509
8509
|
};
|
|
8510
|
-
|
|
8511
|
-
var
|
|
8510
|
+
vp.filterName = "texts";
|
|
8511
|
+
var yp = (e) => {
|
|
8512
8512
|
var t, n, r;
|
|
8513
8513
|
let i = /^@@ +-(\d+),(\d+) +\+(\d+),(\d+) +@@$/, a = e.split("\n");
|
|
8514
8514
|
for (let e = 0; e < a.length; e++) {
|
|
@@ -8529,21 +8529,21 @@ var Sp = (e) => {
|
|
|
8529
8529
|
} else s === "-" && (a[e] = `+${(r = a[e]) == null ? void 0 : r.slice(1)}`);
|
|
8530
8530
|
}
|
|
8531
8531
|
return a.join("\n");
|
|
8532
|
-
},
|
|
8532
|
+
}, bp = function(e) {
|
|
8533
8533
|
if (e.nested) return;
|
|
8534
8534
|
let t = e.delta;
|
|
8535
|
-
if (t[2] !==
|
|
8535
|
+
if (t[2] !== pp) return;
|
|
8536
8536
|
let n = t;
|
|
8537
8537
|
e.setResult([
|
|
8538
|
-
|
|
8538
|
+
yp(n[0]),
|
|
8539
8539
|
0,
|
|
8540
|
-
|
|
8540
|
+
pp
|
|
8541
8541
|
]).exit();
|
|
8542
8542
|
};
|
|
8543
|
-
|
|
8543
|
+
bp.filterName = "texts";
|
|
8544
8544
|
//#endregion
|
|
8545
8545
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/trivial.js
|
|
8546
|
-
var
|
|
8546
|
+
var xp = function(e) {
|
|
8547
8547
|
if (e.left === e.right) {
|
|
8548
8548
|
e.setResult(void 0).exit();
|
|
8549
8549
|
return;
|
|
@@ -8576,8 +8576,8 @@ var wp = function(e) {
|
|
|
8576
8576
|
}
|
|
8577
8577
|
e.left instanceof RegExp && (e.right instanceof RegExp ? e.setResult([e.left.toString(), e.right.toString()]).exit() : e.setResult([e.left, e.right]).exit());
|
|
8578
8578
|
};
|
|
8579
|
-
|
|
8580
|
-
var
|
|
8579
|
+
xp.filterName = "trivial";
|
|
8580
|
+
var Sp = function(e) {
|
|
8581
8581
|
if (e.delta === void 0) {
|
|
8582
8582
|
e.setResult(e.left).exit();
|
|
8583
8583
|
return;
|
|
@@ -8601,8 +8601,8 @@ var Tp = function(e) {
|
|
|
8601
8601
|
}
|
|
8602
8602
|
t.length === 3 && t[2] === 0 && e.setResult(void 0).exit();
|
|
8603
8603
|
};
|
|
8604
|
-
|
|
8605
|
-
var
|
|
8604
|
+
Sp.filterName = "trivial";
|
|
8605
|
+
var Cp = function(e) {
|
|
8606
8606
|
if (e.delta === void 0) {
|
|
8607
8607
|
e.setResult(e.delta).exit();
|
|
8608
8608
|
return;
|
|
@@ -8623,36 +8623,36 @@ var Ep = function(e) {
|
|
|
8623
8623
|
}
|
|
8624
8624
|
t.length === 3 && t[2] === 0 && e.setResult([t[0]]).exit();
|
|
8625
8625
|
};
|
|
8626
|
-
|
|
8626
|
+
Cp.filterName = "trivial";
|
|
8627
8627
|
//#endregion
|
|
8628
8628
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/diffpatcher.js
|
|
8629
|
-
var
|
|
8629
|
+
var wp = class {
|
|
8630
8630
|
constructor(e) {
|
|
8631
|
-
this.processor = new
|
|
8631
|
+
this.processor = new Wf(e), this.processor.pipe(new Uf("diff").append(sp, xp, ap, _p, cp, Qf).shouldHaveResult()), this.processor.pipe(new Uf("patch").append(up, tp, Sp, vp, lp, ep).shouldHaveResult()), this.processor.pipe(new Uf("reverse").append(fp, ip, Cp, bp, dp, np).shouldHaveResult());
|
|
8632
8632
|
}
|
|
8633
8633
|
options(e) {
|
|
8634
8634
|
return this.processor.options(e);
|
|
8635
8635
|
}
|
|
8636
8636
|
diff(e, t) {
|
|
8637
|
-
return this.processor.process(new
|
|
8637
|
+
return this.processor.process(new Bf(e, t));
|
|
8638
8638
|
}
|
|
8639
8639
|
patch(e, t) {
|
|
8640
|
-
return this.processor.process(new
|
|
8640
|
+
return this.processor.process(new Vf(e, t));
|
|
8641
8641
|
}
|
|
8642
8642
|
reverse(e) {
|
|
8643
|
-
return this.processor.process(new
|
|
8643
|
+
return this.processor.process(new Hf(e));
|
|
8644
8644
|
}
|
|
8645
8645
|
unpatch(e, t) {
|
|
8646
8646
|
return this.patch(e, this.reverse(t));
|
|
8647
8647
|
}
|
|
8648
8648
|
clone(e) {
|
|
8649
|
-
return
|
|
8649
|
+
return If(e);
|
|
8650
8650
|
}
|
|
8651
8651
|
};
|
|
8652
8652
|
//#endregion
|
|
8653
8653
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/index.js
|
|
8654
|
-
function
|
|
8655
|
-
return new
|
|
8654
|
+
function Tp(e) {
|
|
8655
|
+
return new wp(e);
|
|
8656
8656
|
}
|
|
8657
8657
|
//#endregion
|
|
8658
8658
|
//#region node_modules/.pnpm/@dmsnell+diff-match-patch@1.1.0/node_modules/@dmsnell/diff-match-patch/index.js
|
|
@@ -9225,46 +9225,46 @@ $.Diff = function(e, t) {
|
|
|
9225
9225
|
};
|
|
9226
9226
|
//#endregion
|
|
9227
9227
|
//#region src/components/audit-log/create-diff-patcher.tsx
|
|
9228
|
-
var
|
|
9228
|
+
var Ep = (e = {}) => Tp({
|
|
9229
9229
|
...e,
|
|
9230
9230
|
textDiff: {
|
|
9231
9231
|
diffMatchPatch: $,
|
|
9232
9232
|
minLength: 120
|
|
9233
9233
|
},
|
|
9234
9234
|
cloneDiffValues: !0
|
|
9235
|
-
}),
|
|
9235
|
+
}), Dp = ["user", "unittemplate"], Op = Ep(), kp = (e, t, n) => {
|
|
9236
9236
|
let r = Object.fromEntries(e.map((e) => [e.sectionKey, e.sectionLabel]));
|
|
9237
9237
|
for (let e = t.length - 1; e >= 0; e--) {
|
|
9238
9238
|
let n = r[t[e]];
|
|
9239
9239
|
if (n) return n;
|
|
9240
9240
|
}
|
|
9241
9241
|
return n || "";
|
|
9242
|
-
},
|
|
9242
|
+
}, Ap = (e) => {
|
|
9243
9243
|
let t = (e) => Qn(e) ? ur(e) : String(e);
|
|
9244
9244
|
return Array.isArray(e) ? e.length === 0 ? "" : e.some((e) => e && typeof e == "object") ? "Multiple changes..." : e.map(t).join(", ") : e && typeof e == "object" ? Object.keys(e).length === 0 ? "" : "Multiple changes..." : t(e);
|
|
9245
|
-
},
|
|
9245
|
+
}, jp = (e) => {
|
|
9246
9246
|
switch (e.length) {
|
|
9247
9247
|
case 1: {
|
|
9248
9248
|
let [t] = e;
|
|
9249
9249
|
return {
|
|
9250
9250
|
type: "created",
|
|
9251
9251
|
before: "",
|
|
9252
|
-
after:
|
|
9252
|
+
after: Ap(t)
|
|
9253
9253
|
};
|
|
9254
9254
|
}
|
|
9255
9255
|
case 2: {
|
|
9256
9256
|
let [t, n] = e;
|
|
9257
9257
|
return {
|
|
9258
9258
|
type: "modified",
|
|
9259
|
-
before:
|
|
9260
|
-
after:
|
|
9259
|
+
before: Ap(t),
|
|
9260
|
+
after: Ap(n)
|
|
9261
9261
|
};
|
|
9262
9262
|
}
|
|
9263
9263
|
case 3: {
|
|
9264
9264
|
let [t] = e;
|
|
9265
9265
|
return {
|
|
9266
9266
|
type: "deleted",
|
|
9267
|
-
before:
|
|
9267
|
+
before: Ap(t),
|
|
9268
9268
|
after: ""
|
|
9269
9269
|
};
|
|
9270
9270
|
}
|
|
@@ -9274,15 +9274,15 @@ var kp = (e = {}) => Op({
|
|
|
9274
9274
|
after: ""
|
|
9275
9275
|
};
|
|
9276
9276
|
}
|
|
9277
|
-
},
|
|
9278
|
-
let r =
|
|
9277
|
+
}, Mp = (e) => Array.isArray(e), Np = (e, t) => t ? Mp(t) ? t.length === 0 ? e : t.reduce((e, t) => Op.unpatch(Zt(e), Zt(t)), Zt(e)) : Op.unpatch(Zt(e), Zt(t)) : e, Pp = (e) => e.createdAt || e.date, Fp = (e, t, n) => {
|
|
9278
|
+
let r = Pp(e);
|
|
9279
9279
|
if (!r) return {
|
|
9280
9280
|
oldJson: "",
|
|
9281
9281
|
newJson: "",
|
|
9282
9282
|
error: `Cannot create comparison view: missing date for audit log ${e.id}`
|
|
9283
9283
|
};
|
|
9284
9284
|
let i = t.filter((e) => {
|
|
9285
|
-
let t =
|
|
9285
|
+
let t = Pp(e);
|
|
9286
9286
|
return !!(e.diffs && t && t >= r);
|
|
9287
9287
|
}), a = Array.from({ length: i.length + 1 });
|
|
9288
9288
|
a[0] = Zt(n);
|
|
@@ -9295,7 +9295,7 @@ var kp = (e = {}) => Op({
|
|
|
9295
9295
|
a[e + 1] = a[e];
|
|
9296
9296
|
continue;
|
|
9297
9297
|
}
|
|
9298
|
-
a[e + 1] =
|
|
9298
|
+
a[e + 1] = Np(a[e], t);
|
|
9299
9299
|
}
|
|
9300
9300
|
let e = i.length > 0 ? a[i.length - 1] : n, t = i.length > 0 ? a[i.length] : n;
|
|
9301
9301
|
o = JSON.stringify(t == null ? "" : t, null, 2), s = JSON.stringify(e == null ? "" : e, null, 2);
|
|
@@ -9310,10 +9310,10 @@ var kp = (e = {}) => Op({
|
|
|
9310
9310
|
oldJson: o,
|
|
9311
9311
|
newJson: s
|
|
9312
9312
|
};
|
|
9313
|
-
},
|
|
9313
|
+
}, Ip = (e, t, n = {}, r = []) => {
|
|
9314
9314
|
var i;
|
|
9315
9315
|
if (!e) return;
|
|
9316
|
-
let a = [...
|
|
9316
|
+
let a = [...Dp, ...(i = n.hiddenKeys) == null ? [] : i];
|
|
9317
9317
|
Object.keys(e).forEach((i) => {
|
|
9318
9318
|
var o;
|
|
9319
9319
|
let s = e[i];
|
|
@@ -9326,12 +9326,12 @@ var kp = (e = {}) => Op({
|
|
|
9326
9326
|
nn(s) ? t.push({
|
|
9327
9327
|
deltaFormat: [...s],
|
|
9328
9328
|
path: c
|
|
9329
|
-
}) : un(s) &&
|
|
9329
|
+
}) : un(s) && Ip(s, t, n, c);
|
|
9330
9330
|
});
|
|
9331
|
-
},
|
|
9331
|
+
}, Lp = (e, t = {}) => {
|
|
9332
9332
|
let n = [];
|
|
9333
|
-
return e ? (
|
|
9334
|
-
},
|
|
9333
|
+
return e ? (Ip(e, n, t), n) : [];
|
|
9334
|
+
}, Rp = (e) => e.replace(/\[\d+\]/g, "").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]/g, " ").replace(/\s+/g, " ").trim().replace(/^./, (e) => e.toUpperCase()), zp = (e) => {
|
|
9335
9335
|
if (e == null || e === "") return "empty";
|
|
9336
9336
|
if (typeof e == "boolean") return e ? "true" : "false";
|
|
9337
9337
|
if (typeof e == "string") return e;
|
|
@@ -9342,32 +9342,32 @@ var kp = (e = {}) => Op({
|
|
|
9342
9342
|
} catch {
|
|
9343
9343
|
return String(e);
|
|
9344
9344
|
}
|
|
9345
|
-
},
|
|
9345
|
+
}, Bp = (e, t = e.length - 1) => {
|
|
9346
9346
|
if (t >= e.length) return "Value";
|
|
9347
9347
|
let n = e[t];
|
|
9348
|
-
return !n || Yn(n) ?
|
|
9349
|
-
},
|
|
9350
|
-
let o =
|
|
9348
|
+
return !n || Yn(n) ? Bp(e, t - 1) : Rp(n);
|
|
9349
|
+
}, Vp = ({ userName: e, type: t, property: n, before: r, after: i, sectionName: a }) => {
|
|
9350
|
+
let o = zp(r), s = zp(i), c = a ? ` in ${a}` : "";
|
|
9351
9351
|
switch (t) {
|
|
9352
9352
|
case "modified": return `${e} updated ${n} from ${o} to ${s}${c}.`;
|
|
9353
9353
|
case "created": return `${e} created ${s}${c}.`;
|
|
9354
9354
|
case "deleted": return `${e} deleted ${o}${c}.`;
|
|
9355
9355
|
default: return `${e} changed ${n}${c}.`;
|
|
9356
9356
|
}
|
|
9357
|
-
},
|
|
9357
|
+
}, Hp = ({ sectionNames: e, userName: t, diffs: n, defaultSectionName: r }) => /* @__PURE__ */ y(ul, { table: {
|
|
9358
9358
|
headers: [{ cells: [{ value: "Changes" }] }],
|
|
9359
9359
|
rows: n.map((n) => {
|
|
9360
|
-
let { deltaFormat: i, path: a } = n, o =
|
|
9361
|
-
return { cells: [{ value:
|
|
9360
|
+
let { deltaFormat: i, path: a } = n, o = kp(e, a, r), { type: s, before: c, after: l } = jp(i);
|
|
9361
|
+
return { cells: [{ value: Vp({
|
|
9362
9362
|
userName: t,
|
|
9363
9363
|
type: s,
|
|
9364
|
-
property:
|
|
9364
|
+
property: Bp(a),
|
|
9365
9365
|
before: c,
|
|
9366
9366
|
after: l,
|
|
9367
9367
|
sectionName: o
|
|
9368
9368
|
}) }] };
|
|
9369
9369
|
})
|
|
9370
|
-
} }),
|
|
9370
|
+
} }), Up = Object.freeze({
|
|
9371
9371
|
summary: {
|
|
9372
9372
|
label: "Summary",
|
|
9373
9373
|
value: "summary"
|
|
@@ -9376,33 +9376,33 @@ var kp = (e = {}) => Op({
|
|
|
9376
9376
|
label: "Compare",
|
|
9377
9377
|
value: "compare"
|
|
9378
9378
|
}
|
|
9379
|
-
}),
|
|
9380
|
-
let c = [
|
|
9379
|
+
}), Wp = ({ auditLog: e, auditLogs: t, data: n, isOpen: r, transformDiffsConfig: i, sectionNames: a, defaultSectionName: o, onClose: s }) => {
|
|
9380
|
+
let c = [Up.summary, Up.compare].map(({ label: e, value: t }) => ({
|
|
9381
9381
|
label: e,
|
|
9382
9382
|
value: t
|
|
9383
9383
|
})), [l, u] = h(c[0]), { diffs: d = void 0 } = e || {};
|
|
9384
9384
|
if (!d) return null;
|
|
9385
|
-
let { oldJson: f, newJson: p, error: m } =
|
|
9385
|
+
let { oldJson: f, newJson: p, error: m } = Fp(e, t, n);
|
|
9386
9386
|
return /* @__PURE__ */ y(zo, {
|
|
9387
9387
|
visible: r,
|
|
9388
9388
|
centered: !0,
|
|
9389
9389
|
children: /* @__PURE__ */ y(_o, { dialog: {
|
|
9390
9390
|
scroll: !0,
|
|
9391
9391
|
heading: "Comparison view",
|
|
9392
|
-
content: /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(
|
|
9392
|
+
content: /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(Vd, {
|
|
9393
9393
|
name: "ViewTab",
|
|
9394
9394
|
onChange: (e) => u(c.find((t) => t.value === e.target.value)),
|
|
9395
9395
|
options: c,
|
|
9396
9396
|
value: l
|
|
9397
|
-
}), l.value === "summary" ? /* @__PURE__ */ y(
|
|
9397
|
+
}), l.value === "summary" ? /* @__PURE__ */ y(Hp, {
|
|
9398
9398
|
userName: e.userName,
|
|
9399
9399
|
sectionNames: a,
|
|
9400
|
-
diffs:
|
|
9400
|
+
diffs: Lp(d, i),
|
|
9401
9401
|
defaultSectionName: o
|
|
9402
9402
|
}) : m ? /* @__PURE__ */ y("div", {
|
|
9403
9403
|
style: { padding: 16 },
|
|
9404
9404
|
children: m
|
|
9405
|
-
}) : /* @__PURE__ */ y(
|
|
9405
|
+
}) : /* @__PURE__ */ y(Nf, {
|
|
9406
9406
|
oldJson: f,
|
|
9407
9407
|
newJson: p
|
|
9408
9408
|
})] }),
|
|
@@ -9415,7 +9415,7 @@ var kp = (e = {}) => Op({
|
|
|
9415
9415
|
height: "90vh"
|
|
9416
9416
|
} })
|
|
9417
9417
|
});
|
|
9418
|
-
},
|
|
9418
|
+
}, Gp = [
|
|
9419
9419
|
{
|
|
9420
9420
|
label: "10 / page",
|
|
9421
9421
|
value: 10
|
|
@@ -9428,8 +9428,8 @@ var kp = (e = {}) => Op({
|
|
|
9428
9428
|
label: "50 / page",
|
|
9429
9429
|
value: 50
|
|
9430
9430
|
}
|
|
9431
|
-
],
|
|
9432
|
-
let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s =
|
|
9431
|
+
], Kp = (e, t = {}) => {
|
|
9432
|
+
let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s = Lp(n, t).length, c = s ? `${s} change${s === 1 ? "" : "s"}` : "no field changes";
|
|
9433
9433
|
if (i === "API" && !r) return a === "Created" ? "Created through API" : "Changed through API";
|
|
9434
9434
|
switch (a) {
|
|
9435
9435
|
case "Created": return `Created by ${r}`;
|
|
@@ -9439,7 +9439,7 @@ var kp = (e = {}) => Op({
|
|
|
9439
9439
|
case "Updated": return `Updated by ${r} (${c})`;
|
|
9440
9440
|
default: return `Change by ${r}`;
|
|
9441
9441
|
}
|
|
9442
|
-
},
|
|
9442
|
+
}, qp = ({ logs: e, data: t, total: n, loading: r, selectedPage: i, rowsPerPage: a, sectionNames: o, defaultSectionName: s, filterToggles: c = [], transformDiffsConfig: l, onChangeRowsPerPage: u, onSelectPage: d, onClickSnapshot: f, snapshotLoading: p, getActions: m, isLogDisabled: g }) => {
|
|
9443
9443
|
let [_, x] = h(!1), [S, C] = h(null), w = (e) => {
|
|
9444
9444
|
if (e.snapshot) {
|
|
9445
9445
|
f == null || f(e.snapshot, e);
|
|
@@ -9458,7 +9458,7 @@ var kp = (e = {}) => Op({
|
|
|
9458
9458
|
return {
|
|
9459
9459
|
cells: [
|
|
9460
9460
|
{
|
|
9461
|
-
value: e.snapshot ? `Snapshot: ${e.snapshot}` :
|
|
9461
|
+
value: e.snapshot ? `Snapshot: ${e.snapshot}` : Kp(e, l),
|
|
9462
9462
|
type: "Link",
|
|
9463
9463
|
disabled: n,
|
|
9464
9464
|
onClick: n ? void 0 : () => w(e),
|
|
@@ -9477,8 +9477,8 @@ var kp = (e = {}) => Op({
|
|
|
9477
9477
|
type: "Static"
|
|
9478
9478
|
},
|
|
9479
9479
|
{
|
|
9480
|
-
value:
|
|
9481
|
-
date:
|
|
9480
|
+
value: Pf({
|
|
9481
|
+
date: Pp(e),
|
|
9482
9482
|
showTime: !0
|
|
9483
9483
|
}),
|
|
9484
9484
|
type: "Static"
|
|
@@ -9488,12 +9488,12 @@ var kp = (e = {}) => Op({
|
|
|
9488
9488
|
};
|
|
9489
9489
|
});
|
|
9490
9490
|
return /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(ja, {
|
|
9491
|
-
heading: /* @__PURE__ */ b(
|
|
9491
|
+
heading: /* @__PURE__ */ b(wu, {
|
|
9492
9492
|
gap: !0,
|
|
9493
9493
|
wrap: !0,
|
|
9494
9494
|
children: [/* @__PURE__ */ y(mo, { children: "Changes" }), c.map((e) => {
|
|
9495
9495
|
var t;
|
|
9496
|
-
return /* @__PURE__ */ y(
|
|
9496
|
+
return /* @__PURE__ */ y(nu, {
|
|
9497
9497
|
small: (t = e.small) == null ? !0 : t,
|
|
9498
9498
|
checked: e.checked,
|
|
9499
9499
|
onChange: e.onChange,
|
|
@@ -9503,11 +9503,11 @@ var kp = (e = {}) => Op({
|
|
|
9503
9503
|
})]
|
|
9504
9504
|
}),
|
|
9505
9505
|
padding: !1,
|
|
9506
|
-
children: r ? /* @__PURE__ */ y(
|
|
9506
|
+
children: r ? /* @__PURE__ */ y(Vu, {
|
|
9507
9507
|
height: "100px",
|
|
9508
9508
|
theme: Qr.WHITE,
|
|
9509
9509
|
children: /* @__PURE__ */ y(Ui, { dark: !0 })
|
|
9510
|
-
}) : /* @__PURE__ */ y(
|
|
9510
|
+
}) : /* @__PURE__ */ y(ul, { table: {
|
|
9511
9511
|
headers: T,
|
|
9512
9512
|
testId: "auditlog-table",
|
|
9513
9513
|
rows: E,
|
|
@@ -9521,14 +9521,14 @@ var kp = (e = {}) => Op({
|
|
|
9521
9521
|
onChange: (e) => {
|
|
9522
9522
|
u(Number(e.target.value));
|
|
9523
9523
|
},
|
|
9524
|
-
options:
|
|
9524
|
+
options: Gp,
|
|
9525
9525
|
value: a
|
|
9526
9526
|
},
|
|
9527
9527
|
onSelectPage: (e) => d(e),
|
|
9528
9528
|
small: !0
|
|
9529
9529
|
} }
|
|
9530
9530
|
} })
|
|
9531
|
-
}), _ && S && S.diffs && /* @__PURE__ */ y(
|
|
9531
|
+
}), _ && S && S.diffs && /* @__PURE__ */ y(Wp, {
|
|
9532
9532
|
sectionNames: o,
|
|
9533
9533
|
isOpen: _,
|
|
9534
9534
|
onClose: () => x(!1),
|
|
@@ -9538,7 +9538,7 @@ var kp = (e = {}) => Op({
|
|
|
9538
9538
|
data: t,
|
|
9539
9539
|
transformDiffsConfig: l
|
|
9540
9540
|
})] });
|
|
9541
|
-
},
|
|
9541
|
+
}, Jp = ({ pathName: e, moduleName: t, onNavigate: n, onStartTimingEvent: r }) => {
|
|
9542
9542
|
let i = window.location.href, a = m(i);
|
|
9543
9543
|
return l(() => {
|
|
9544
9544
|
a.current = i;
|
|
@@ -9561,10 +9561,10 @@ var kp = (e = {}) => Op({
|
|
|
9561
9561
|
});
|
|
9562
9562
|
};
|
|
9563
9563
|
}, [e, t]), null;
|
|
9564
|
-
},
|
|
9565
|
-
|
|
9566
|
-
e ===
|
|
9564
|
+
}, Yp = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, Xp = (e) => {
|
|
9565
|
+
Cf(vf.LanguageKey, e.languageKey), Object.entries(e).forEach(([e, t]) => {
|
|
9566
|
+
e === vf.Translations ? Cf(e, bf(t)) : Cf(e, Yp(t) ? t : { ...t });
|
|
9567
9567
|
});
|
|
9568
9568
|
};
|
|
9569
9569
|
//#endregion
|
|
9570
|
-
export { _i as Accordion, Bi as AccordionWithDefaultToggle, Ca as Actions, Yr as Align,
|
|
9570
|
+
export { _i as Accordion, Bi as AccordionWithDefaultToggle, Ca as Actions, Yr as Align, qp as AuditLog, la as Badge, Da as Breadcrumb, Ta as BreadcrumbLinkType, K as Button, ka as ButtonGroup, Xr as ButtonPosition, Wi as ButtonType, ja as Card, Ii as CheckBox, di as Chevron, mi as Collapse, Jr as Color, $a as ColorInput, Qa as ColorInputPopover, io as Column, _o as Dialog, Nf as DiffViewer, U as DisabledContext, lo as Divider, wo as Drawer, Jd as ElementType, xl as Empty, Cu as Field, yu as FileButton, Po as FileInput, wu as Flex, Eu as FormRow, Ra as Grid, V as GroupOrder, mo as Heading, Fi as HelpIcon, W as Icon, H as IconType, ko as Input, Do as InputGroup, xc as InputGroupAddon, jo as InputReaderMethods, $r as InputType, xu as Label, zu as List, Ou as ListHeading, Pu as ListSubheading, Vu as Loader, xa as Menu, Zi as MenuCarat, Xi as MenuType, as as Message, $o as MessageType, zo as Modal, ds as NativeSelect, Pc as NumberInput, Ju as OptionDropdown, Xu as Page, Sc as Pagination, ef as PopConfirm, Pa as Popover, Zu as Portal, $u as PrintHeader, Ho as ProgressBar, ed as RadioButton, ad as RichTextInput, sd as Row, hc as Select, kf as SettingField, fd as SideBar, md as Skeleton, Wc as Slider, qo as SmartUploadModal, Fo as Spacer, Ui as Spinner, ul as Table, vu as TableImportExport, Vd as Tabs, so as Text, Wd as TextArea, Hd as TextLink, Zr as TextTransform, Qr as Theme, Or as Toaster, nu as Toggle, G as Tooltip, Zd as TopBar, af as Tree, _f as TreeTable, qr as TriggerType, Pd as UnitInput, Rd as UnitSlider, Df as UnitTable, Jp as UsageTracker, $l as dismissToast, jd as initializeContext, Xp as initializeGuiLibrary, Mo as readFile, Ql as toast, fs as useFocus, Io as useKeyboardEvent, hs as useWindowWidth };
|