@oliasoft-open-source/react-ui-library 10.2.4-beta-1 → 10.2.5-beta-1
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/index.d.ts +1 -1
- package/dist/index.js +745 -745
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3620,7 +3620,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3620
3620
|
tabIndex: e.disabled ? -1 : 0,
|
|
3621
3621
|
tooltip: e.tooltip,
|
|
3622
3622
|
type: r
|
|
3623
|
-
}), vl = (e) => e ? typeof e == "string" ? e : sn(e) ? e[0] : e.fieldName : "", yl = ({ name: e, placeholder: t = "", disabled: n = !1, error: r = !1, left: i = !1, small: a = !1, width: o = "100%", value: s = "", onChange: c = () => {}, onFocus: l = () => {}, onBlur: u = () => {}, selectOnFocus: f = !0, tabIndex: p = 0, testId: m, tooltip: h = null, warning: g = !1, validationCallback: y = () => {}, allowEmpty: b = !1, isInTable: x, groupOrder: C, enableCosmeticRounding: w = !0, enableDisplayRounding: T = !1, roundDisplayValue: E, disableInternalErrorValidationMessages: D = !1, disableValidationOnFocus: O = !1 }) => {
|
|
3623
|
+
}), vl = (e) => e ? typeof e == "string" ? e : sn(e) ? e[0] : e.fieldName : "", yl = (e) => e.startsWith("."), bl = (e, t) => yl(e) && t === `0${e}` ? e : t, xl = ({ name: e, placeholder: t = "", disabled: n = !1, error: r = !1, left: i = !1, small: a = !1, width: o = "100%", value: s = "", onChange: c = () => {}, onFocus: l = () => {}, onBlur: u = () => {}, selectOnFocus: f = !0, tabIndex: p = 0, testId: m, tooltip: h = null, warning: g = !1, validationCallback: y = () => {}, allowEmpty: b = !1, isInTable: x, groupOrder: C, enableCosmeticRounding: w = !0, enableDisplayRounding: T = !1, roundDisplayValue: E, disableInternalErrorValidationMessages: D = !1, disableValidationOnFocus: O = !1 }) => {
|
|
3624
3624
|
let k = (e) => {
|
|
3625
3625
|
let n = Or(e), r = t && Wc(e);
|
|
3626
3626
|
return [Infinity, -Infinity].includes(Number(e)) || r ? {
|
|
@@ -3652,12 +3652,12 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3652
3652
|
]);
|
|
3653
3653
|
let B = (e) => {
|
|
3654
3654
|
var n, r;
|
|
3655
|
-
let i = "key" in e ? M : e == null || (n = e.target) == null ? void 0 : n.value, a =
|
|
3656
|
-
N(a), ((r = k(
|
|
3655
|
+
let i = "key" in e ? M : e == null || (n = e.target) == null ? void 0 : n.value, a = i.replaceAll(" ", "").replaceAll("|", ""), o = sr(a);
|
|
3656
|
+
N(bl(a, o)), ((r = k(o)) != null && r.valid || t && Wc(i)) && c({
|
|
3657
3657
|
...e,
|
|
3658
3658
|
target: {
|
|
3659
3659
|
...e.target,
|
|
3660
|
-
value: wr(Er(
|
|
3660
|
+
value: wr(Er(o)),
|
|
3661
3661
|
name: I
|
|
3662
3662
|
}
|
|
3663
3663
|
});
|
|
@@ -3674,7 +3674,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3674
3674
|
let ee = (e) => {
|
|
3675
3675
|
F(!0), l(e);
|
|
3676
3676
|
}, te = (e) => {
|
|
3677
|
-
F(!1), u(e);
|
|
3677
|
+
F(!1), yl(M) && N(sr(M)), u(e);
|
|
3678
3678
|
}, ne = T && !P && L ? E ? Er(E(M)) : ((e) => x ? Sr(e, 2) : yr(e, 4))(s) : M;
|
|
3679
3679
|
return /* @__PURE__ */ S(hs, {
|
|
3680
3680
|
type: "text",
|
|
@@ -3701,9 +3701,9 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3701
3701
|
tooltip: h,
|
|
3702
3702
|
ref: j
|
|
3703
3703
|
}, I);
|
|
3704
|
-
},
|
|
3704
|
+
}, Sl = ({ cell: e, columnAlignment: t, testId: n }) => {
|
|
3705
3705
|
var r;
|
|
3706
|
-
return /* @__PURE__ */ S(
|
|
3706
|
+
return /* @__PURE__ */ S(xl, {
|
|
3707
3707
|
name: e.name,
|
|
3708
3708
|
value: e.value,
|
|
3709
3709
|
onChange: (t) => {
|
|
@@ -3729,7 +3729,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3729
3729
|
roundDisplayValue: e.roundDisplayValue,
|
|
3730
3730
|
disableValidationOnFocus: e.disableValidationOnFocus
|
|
3731
3731
|
});
|
|
3732
|
-
},
|
|
3732
|
+
}, Cl = ({ cell: e, columnAlignment: t, testId: n }) => /* @__PURE__ */ S(el, {
|
|
3733
3733
|
name: e.name,
|
|
3734
3734
|
options: e.options,
|
|
3735
3735
|
onChange: (t) => {
|
|
@@ -3753,13 +3753,13 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3753
3753
|
right: t === ki.RIGHT,
|
|
3754
3754
|
testId: n,
|
|
3755
3755
|
tabIndex: e.disabled ? -1 : 0
|
|
3756
|
-
}),
|
|
3756
|
+
}), wl = ({ cell: e, columnAlignment: t, testId: n }) => /* @__PURE__ */ S("div", {
|
|
3757
3757
|
className: b(X.inputWrapper, e.type === "NumberInput" ? X.numberInputWrapper : ""),
|
|
3758
3758
|
children: e.type === "Input" ? /* @__PURE__ */ S(_l, {
|
|
3759
3759
|
cell: e,
|
|
3760
3760
|
columnAlignment: t,
|
|
3761
3761
|
testId: n
|
|
3762
|
-
}) : e.type === "NumberInput" ? /* @__PURE__ */ S(
|
|
3762
|
+
}) : e.type === "NumberInput" ? /* @__PURE__ */ S(Sl, {
|
|
3763
3763
|
cell: e,
|
|
3764
3764
|
columnAlignment: t,
|
|
3765
3765
|
testId: n
|
|
@@ -3767,12 +3767,12 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3767
3767
|
cell: e,
|
|
3768
3768
|
testId: n,
|
|
3769
3769
|
type: "date"
|
|
3770
|
-
}) : e.type === "Select" ? /* @__PURE__ */ S(
|
|
3770
|
+
}) : e.type === "Select" ? /* @__PURE__ */ S(Cl, {
|
|
3771
3771
|
cell: e,
|
|
3772
3772
|
columnAlignment: t,
|
|
3773
3773
|
testId: n
|
|
3774
3774
|
}) : null
|
|
3775
|
-
}),
|
|
3775
|
+
}), Tl = ({ cell: e, testId: t }) => {
|
|
3776
3776
|
let n = u(W), { error: r, warning: i, tooltip: a, maxTooltipWidth: o } = e, s = (e) => Y(e);
|
|
3777
3777
|
return /* @__PURE__ */ S("div", {
|
|
3778
3778
|
className: X.inputWrapper,
|
|
@@ -3798,7 +3798,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3798
3798
|
})
|
|
3799
3799
|
})
|
|
3800
3800
|
});
|
|
3801
|
-
},
|
|
3801
|
+
}, El = ({ cell: e, testId: t }) => /* @__PURE__ */ S("div", {
|
|
3802
3802
|
className: e.label ? "" : X.standaloneCheckbox,
|
|
3803
3803
|
children: /* @__PURE__ */ S(K, {
|
|
3804
3804
|
text: e.tooltip,
|
|
@@ -3814,7 +3814,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3814
3814
|
indeterminate: e.indeterminate
|
|
3815
3815
|
})
|
|
3816
3816
|
})
|
|
3817
|
-
}),
|
|
3817
|
+
}), Dl = {
|
|
3818
3818
|
container: "_container_3cdfx_1",
|
|
3819
3819
|
small: "_small_3cdfx_9",
|
|
3820
3820
|
vertical: "_vertical_3cdfx_12",
|
|
@@ -3830,17 +3830,17 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3830
3830
|
markActive: "_markActive_3cdfx_146",
|
|
3831
3831
|
sliderDisabled: "_sliderDisabled_3cdfx_149",
|
|
3832
3832
|
label: "_label_3cdfx_161"
|
|
3833
|
-
},
|
|
3833
|
+
}, Ol = (e, t) => bn(sn(e) ? e : [e]).slice(0, t ? 2 : 1), kl = (e, t) => t ? e : e[0], Al = Br((e) => e.map(({ label: e, tooltip: t, value: n }) => ({
|
|
3834
3834
|
label: e,
|
|
3835
3835
|
tooltip: t,
|
|
3836
3836
|
value: Number(n)
|
|
3837
|
-
})), Vr),
|
|
3837
|
+
})), Vr), jl = ({ name: e, label: t, width: n = "100%", labelWidth: r = "auto", testId: i, value: a, min: o, max: s, step: c = 1, marks: l = [], showArrows: d = !1, showTooltip: f = !1, tooltipFormatter: p = (e) => e, disabled: m = !1, range: g = !1, small: _ = !1, vertical: y = {
|
|
3838
3838
|
enabled: !1,
|
|
3839
3839
|
width: "100px",
|
|
3840
3840
|
height: "400px"
|
|
3841
3841
|
}, onChange: w, onChangeComplete: T }) => {
|
|
3842
|
-
let E = u(W), D = m || E, [O, k] = v(null), A =
|
|
3843
|
-
let r =
|
|
3842
|
+
let E = u(W), D = m || E, [O, k] = v(null), A = Al(l), j = h(() => Ol(a, g), [g, a]), M = (n) => {
|
|
3843
|
+
let r = kl(n, g);
|
|
3844
3844
|
return { target: {
|
|
3845
3845
|
name: e == null ? "" : e,
|
|
3846
3846
|
value: r,
|
|
@@ -3853,7 +3853,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3853
3853
|
}, F = (e) => {
|
|
3854
3854
|
N(e), P(e);
|
|
3855
3855
|
}, I = () => /* @__PURE__ */ S("div", {
|
|
3856
|
-
className:
|
|
3856
|
+
className: Dl.button,
|
|
3857
3857
|
children: /* @__PURE__ */ S(q, {
|
|
3858
3858
|
basic: !0,
|
|
3859
3859
|
small: !0,
|
|
@@ -3867,7 +3867,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3867
3867
|
testId: i ? `${i}-min` : void 0
|
|
3868
3868
|
})
|
|
3869
3869
|
}), L = () => /* @__PURE__ */ S("div", {
|
|
3870
|
-
className:
|
|
3870
|
+
className: Dl.button,
|
|
3871
3871
|
children: /* @__PURE__ */ S(q, {
|
|
3872
3872
|
basic: !0,
|
|
3873
3873
|
small: !0,
|
|
@@ -3887,7 +3887,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3887
3887
|
if (i) return g ? `${i}-handle-${e}` : `${i}-handle`;
|
|
3888
3888
|
}, ee = (e) => g ? j[0] <= e && e <= j[1] : j[0] >= e, te = (e) => g ? Math.abs(e - j[0]) <= Math.abs(e - j[1]) ? [en(e, o, j[1]), j[1]] : [j[0], en(e, j[0], s)] : [en(e, o, s)];
|
|
3889
3889
|
return /* @__PURE__ */ C("div", {
|
|
3890
|
-
className: b(
|
|
3890
|
+
className: b(Dl.container, _ ? Dl.small : "", y.enabled ? Dl.vertical : ""),
|
|
3891
3891
|
style: y.enabled ? {
|
|
3892
3892
|
width: y.width,
|
|
3893
3893
|
height: y.height
|
|
@@ -3895,7 +3895,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3895
3895
|
children: [
|
|
3896
3896
|
d && (y.enabled ? /* @__PURE__ */ S(L, {}) : /* @__PURE__ */ S(I, {})),
|
|
3897
3897
|
/* @__PURE__ */ C(zr.Root, {
|
|
3898
|
-
className: b(
|
|
3898
|
+
className: b(Dl.slider, D && Dl.sliderDisabled, d && Dl.hasArrows),
|
|
3899
3899
|
"data-testid": i,
|
|
3900
3900
|
disabled: D,
|
|
3901
3901
|
max: s,
|
|
@@ -3910,14 +3910,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3910
3910
|
step: c,
|
|
3911
3911
|
value: j,
|
|
3912
3912
|
children: [/* @__PURE__ */ C(zr.Track, {
|
|
3913
|
-
className:
|
|
3914
|
-
children: [/* @__PURE__ */ S(zr.Range, { className:
|
|
3915
|
-
className:
|
|
3913
|
+
className: Dl.track,
|
|
3914
|
+
children: [/* @__PURE__ */ S(zr.Range, { className: Dl.range }), A.length > 0 && /* @__PURE__ */ S("span", {
|
|
3915
|
+
className: Dl.marks,
|
|
3916
3916
|
children: A.map(({ label: e, tooltip: t, value: n }) => {
|
|
3917
3917
|
let r = Number(n), i = ee(r), a = { [y.enabled ? "bottom" : "left"]: R(r) };
|
|
3918
3918
|
return /* @__PURE__ */ S("button", {
|
|
3919
3919
|
"aria-label": String(e == null ? n : e),
|
|
3920
|
-
className: b(
|
|
3920
|
+
className: b(Dl.mark, i && Dl.markActive),
|
|
3921
3921
|
disabled: D,
|
|
3922
3922
|
onClick: (e) => {
|
|
3923
3923
|
e.stopPropagation(), F(te(r));
|
|
@@ -3931,7 +3931,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3931
3931
|
t ? ": " : "",
|
|
3932
3932
|
e == null ? n : e
|
|
3933
3933
|
] }),
|
|
3934
|
-
children: /* @__PURE__ */ S("span", { className:
|
|
3934
|
+
children: /* @__PURE__ */ S("span", { className: Dl.dot })
|
|
3935
3935
|
})
|
|
3936
3936
|
}, String(n));
|
|
3937
3937
|
})
|
|
@@ -3940,7 +3940,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3940
3940
|
var i;
|
|
3941
3941
|
return /* @__PURE__ */ S(zr.Thumb, {
|
|
3942
3942
|
"aria-label": String((i = t == null ? e : t) == null ? "Slider" : i),
|
|
3943
|
-
className:
|
|
3943
|
+
className: Dl.thumb,
|
|
3944
3944
|
"data-testid": B(r),
|
|
3945
3945
|
onKeyDown: () => k(r),
|
|
3946
3946
|
onKeyUp: () => k(null),
|
|
@@ -3949,7 +3949,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3949
3949
|
style: z(n),
|
|
3950
3950
|
children: f && O === r && /* @__PURE__ */ S(K, {
|
|
3951
3951
|
display: "block",
|
|
3952
|
-
text: p(
|
|
3952
|
+
text: p(kl(j, g)),
|
|
3953
3953
|
forceOpen: !0,
|
|
3954
3954
|
updateOnAnimationFrame: !0,
|
|
3955
3955
|
triggerStyle: {
|
|
@@ -3962,15 +3962,15 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3962
3962
|
}),
|
|
3963
3963
|
d && (y.enabled ? /* @__PURE__ */ S(I, {}) : /* @__PURE__ */ S(L, {})),
|
|
3964
3964
|
t && /* @__PURE__ */ S("label", {
|
|
3965
|
-
className:
|
|
3965
|
+
className: Dl.label,
|
|
3966
3966
|
style: { width: r },
|
|
3967
3967
|
children: t
|
|
3968
3968
|
})
|
|
3969
3969
|
]
|
|
3970
3970
|
});
|
|
3971
|
-
},
|
|
3971
|
+
}, Ml = ({ cell: e }) => /* @__PURE__ */ S("div", {
|
|
3972
3972
|
className: X.inputWrapper,
|
|
3973
|
-
children: /* @__PURE__ */ S(
|
|
3973
|
+
children: /* @__PURE__ */ S(jl, {
|
|
3974
3974
|
label: e.label,
|
|
3975
3975
|
testId: e.testId,
|
|
3976
3976
|
value: e.value,
|
|
@@ -3984,7 +3984,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3984
3984
|
tooltipFormatter: e.tooltipFormatter,
|
|
3985
3985
|
disabled: e.disabled
|
|
3986
3986
|
})
|
|
3987
|
-
}),
|
|
3987
|
+
}), Nl = ({ cell: e }) => {
|
|
3988
3988
|
let { tooltip: t, icon: n } = e;
|
|
3989
3989
|
return /* @__PURE__ */ S("div", {
|
|
3990
3990
|
className: X.iconCellWrapper,
|
|
@@ -3996,7 +3996,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
3996
3996
|
children: /* @__PURE__ */ S(G, { icon: n })
|
|
3997
3997
|
})
|
|
3998
3998
|
});
|
|
3999
|
-
},
|
|
3999
|
+
}, Pl = ({ cell: e }) => /* @__PURE__ */ S(fo, { actions: e.actions }), Fl = ({ cell: e }) => {
|
|
4000
4000
|
let { helpIcon: t } = e;
|
|
4001
4001
|
return t ? /* @__PURE__ */ S("div", {
|
|
4002
4002
|
className: X.icon,
|
|
@@ -4005,7 +4005,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4005
4005
|
text: t.tooltip
|
|
4006
4006
|
})
|
|
4007
4007
|
}) : null;
|
|
4008
|
-
},
|
|
4008
|
+
}, Il = ({ cell: e }) => {
|
|
4009
4009
|
let { libraryIcon: t } = e;
|
|
4010
4010
|
return t ? /* @__PURE__ */ S("div", {
|
|
4011
4011
|
className: X.icon,
|
|
@@ -4015,7 +4015,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4015
4015
|
icon: U.LIBRARY
|
|
4016
4016
|
})
|
|
4017
4017
|
}) : null;
|
|
4018
|
-
},
|
|
4018
|
+
}, Ll = ({ cell: e }) => {
|
|
4019
4019
|
let { hasSort: t, sort: n, sortPriority: r } = e;
|
|
4020
4020
|
return t ? /* @__PURE__ */ C("span", {
|
|
4021
4021
|
className: X.sortingCellIcon,
|
|
@@ -4030,7 +4030,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4030
4030
|
children: /* @__PURE__ */ S(G, { icon: U.SORT_DESCENDING })
|
|
4031
4031
|
}), r && n ? /* @__PURE__ */ S("sup", { children: r }) : null]
|
|
4032
4032
|
}) : null;
|
|
4033
|
-
},
|
|
4033
|
+
}, Rl = ({ cell: e, isHeader: t, testId: n }) => {
|
|
4034
4034
|
let { error: r, warning: i, tooltip: a, maxTooltipWidth: o, hasSort: s, onSort: c, type: l } = e, u = /* @__PURE__ */ C("div", {
|
|
4035
4035
|
className: b(X.staticCellContent, l === "Unit" ? X.unit : ""),
|
|
4036
4036
|
onClick: s ? (e) => c && c(e) : () => {},
|
|
@@ -4038,9 +4038,9 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4038
4038
|
"data-warning": i || null,
|
|
4039
4039
|
"data-testid": n,
|
|
4040
4040
|
children: [e.value, t ? /* @__PURE__ */ C(x, { children: [
|
|
4041
|
-
/* @__PURE__ */ S(
|
|
4042
|
-
/* @__PURE__ */ S(
|
|
4043
|
-
/* @__PURE__ */ S(
|
|
4041
|
+
/* @__PURE__ */ S(Fl, { cell: e }),
|
|
4042
|
+
/* @__PURE__ */ S(Il, { cell: e }),
|
|
4043
|
+
/* @__PURE__ */ S(Ll, { cell: e })
|
|
4044
4044
|
] }) : null]
|
|
4045
4045
|
});
|
|
4046
4046
|
return /* @__PURE__ */ S("div", {
|
|
@@ -4055,7 +4055,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4055
4055
|
children: u
|
|
4056
4056
|
})
|
|
4057
4057
|
});
|
|
4058
|
-
},
|
|
4058
|
+
}, zl = ({ cell: e, testId: t }) => {
|
|
4059
4059
|
let { content: n, fullWidth: r, closeOnOutsideClick: i, disabled: a } = e;
|
|
4060
4060
|
return /* @__PURE__ */ S(So, {
|
|
4061
4061
|
content: n,
|
|
@@ -4064,13 +4064,13 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4064
4064
|
disabled: a,
|
|
4065
4065
|
children: /* @__PURE__ */ S("div", {
|
|
4066
4066
|
className: X.popover,
|
|
4067
|
-
children: /* @__PURE__ */ S(
|
|
4067
|
+
children: /* @__PURE__ */ S(Rl, {
|
|
4068
4068
|
cell: e,
|
|
4069
4069
|
testId: t
|
|
4070
4070
|
})
|
|
4071
4071
|
})
|
|
4072
4072
|
});
|
|
4073
|
-
},
|
|
4073
|
+
}, Bl = {
|
|
4074
4074
|
inputInTable: "_inputInTable_abetp_1",
|
|
4075
4075
|
inputHover: "_inputHover_abetp_13",
|
|
4076
4076
|
inputFocus: "_inputFocus_abetp_18",
|
|
@@ -4090,18 +4090,18 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4090
4090
|
control: "_control_abetp_25",
|
|
4091
4091
|
labelText: "_labelText_abetp_151",
|
|
4092
4092
|
isInTable: "_isInTable_abetp_214"
|
|
4093
|
-
},
|
|
4093
|
+
}, Vl = ({ name: e, label: t, value: n = "", selected: r = !1, disabled: i = !1, small: a = !1, onChange: o, noMargin: s = !1, testId: c, helpText: l, onClickHelp: d, textTransform: f = ji.CAPITALIZE }) => {
|
|
4094
4094
|
var p, m;
|
|
4095
4095
|
let h = u(Kr) != null, g = l || d, _ = (p = n == null ? void 0 : n.toString()) == null ? "" : p, v = /* @__PURE__ */ C(Wr, {
|
|
4096
4096
|
value: _,
|
|
4097
4097
|
isDisabled: i,
|
|
4098
|
-
className:
|
|
4098
|
+
className: Bl.radioContainer,
|
|
4099
4099
|
"data-testid": c ? `${c}-field` : void 0,
|
|
4100
4100
|
children: [/* @__PURE__ */ C(Ur, {
|
|
4101
|
-
className: b(
|
|
4101
|
+
className: b(Bl.radio, a && Bl.small, s && Bl.noMargin, !t && Bl.noLabel),
|
|
4102
4102
|
"data-testid": c,
|
|
4103
|
-
children: [/* @__PURE__ */ S("span", { className:
|
|
4104
|
-
className:
|
|
4103
|
+
children: [/* @__PURE__ */ S("span", { className: Bl.control }), t && /* @__PURE__ */ S("span", {
|
|
4104
|
+
className: Bl.labelText,
|
|
4105
4105
|
style: { textTransform: f },
|
|
4106
4106
|
children: t
|
|
4107
4107
|
})]
|
|
@@ -4123,12 +4123,12 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4123
4123
|
} });
|
|
4124
4124
|
},
|
|
4125
4125
|
isDisabled: i,
|
|
4126
|
-
className:
|
|
4126
|
+
className: Bl.radioGroupStandalone,
|
|
4127
4127
|
children: v
|
|
4128
4128
|
});
|
|
4129
|
-
},
|
|
4129
|
+
}, Hl = ({ cell: e, testId: t }) => {
|
|
4130
4130
|
var n;
|
|
4131
|
-
return /* @__PURE__ */ S(
|
|
4131
|
+
return /* @__PURE__ */ S(Vl, {
|
|
4132
4132
|
selected: e.selected,
|
|
4133
4133
|
name: e.name,
|
|
4134
4134
|
value: (n = e.value) == null ? "" : n,
|
|
@@ -4137,42 +4137,42 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4137
4137
|
onChange: (t) => e.onChange(t),
|
|
4138
4138
|
testId: t
|
|
4139
4139
|
});
|
|
4140
|
-
},
|
|
4140
|
+
}, Ul = ({ cell: e, isHeader: t, columnAlignment: n, testId: r }) => {
|
|
4141
4141
|
if (!e) return null;
|
|
4142
4142
|
switch (e.type) {
|
|
4143
4143
|
case "Input":
|
|
4144
4144
|
case "NumberInput":
|
|
4145
4145
|
case "DateInput":
|
|
4146
|
-
case "Select": return /* @__PURE__ */ S(
|
|
4146
|
+
case "Select": return /* @__PURE__ */ S(wl, {
|
|
4147
4147
|
cell: e,
|
|
4148
4148
|
columnAlignment: n,
|
|
4149
4149
|
testId: r
|
|
4150
4150
|
});
|
|
4151
|
-
case "Link": return /* @__PURE__ */ S(
|
|
4151
|
+
case "Link": return /* @__PURE__ */ S(Tl, {
|
|
4152
4152
|
cell: e,
|
|
4153
4153
|
testId: r
|
|
4154
4154
|
});
|
|
4155
|
-
case "CheckBox": return /* @__PURE__ */ S(
|
|
4155
|
+
case "CheckBox": return /* @__PURE__ */ S(El, {
|
|
4156
4156
|
cell: e,
|
|
4157
4157
|
testId: r
|
|
4158
4158
|
});
|
|
4159
|
-
case "Radio": return /* @__PURE__ */ S(
|
|
4159
|
+
case "Radio": return /* @__PURE__ */ S(Hl, {
|
|
4160
4160
|
cell: e,
|
|
4161
4161
|
testId: r
|
|
4162
4162
|
});
|
|
4163
|
-
case "Slider": return /* @__PURE__ */ S(
|
|
4164
|
-
case "Icon": return /* @__PURE__ */ S(
|
|
4165
|
-
case "Actions": return /* @__PURE__ */ S(
|
|
4166
|
-
case "Popover": return /* @__PURE__ */ S(
|
|
4167
|
-
default: return /* @__PURE__ */ S(
|
|
4163
|
+
case "Slider": return /* @__PURE__ */ S(Ml, { cell: e });
|
|
4164
|
+
case "Icon": return /* @__PURE__ */ S(Nl, { cell: e });
|
|
4165
|
+
case "Actions": return /* @__PURE__ */ S(Pl, { cell: e });
|
|
4166
|
+
case "Popover": return /* @__PURE__ */ S(zl, { cell: e });
|
|
4167
|
+
default: return /* @__PURE__ */ S(Rl, {
|
|
4168
4168
|
cell: e,
|
|
4169
4169
|
isHeader: t,
|
|
4170
4170
|
testId: r
|
|
4171
4171
|
});
|
|
4172
4172
|
}
|
|
4173
|
-
},
|
|
4173
|
+
}, Wl = /* @__PURE__ */ function(e) {
|
|
4174
4174
|
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;
|
|
4175
|
-
}({}),
|
|
4175
|
+
}({}), Gl = ({ cell: e, isHeader: t, columnHeaderAlignment: n, columnAlignment: r = ki.LEFT, width: i, testId: a }) => {
|
|
4176
4176
|
var o;
|
|
4177
4177
|
if (!e) return null;
|
|
4178
4178
|
let { style: s, colSpan: c, rowSpan: l, width: u, textAlign: d } = e, f = _(null), p = {
|
|
@@ -4180,7 +4180,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4180
4180
|
headerAlignment: n,
|
|
4181
4181
|
textAlign: d,
|
|
4182
4182
|
isHeader: t
|
|
4183
|
-
}, m = hl(p, X), h = hl(p, X, !0), g = e.type ===
|
|
4183
|
+
}, m = hl(p, X), h = hl(p, X, !0), g = e.type === Wl.INPUT || e.type === Wl.NUMBER_INPUT || e.type === Wl.SELECT || e.type === Wl.POPOVER ? X.inputCell : e.type === Wl.SLIDER ? X.sliderCell : e.type === Wl.CHECKBOX || e.type === Wl.RADIO ? X.checkBoxCell : e.type === Wl.ACTIONS ? X.actionsCell : X.staticCell, v = b(X.cell, g, e.hasSort ? X.sortingCell : null, m, e.breakWord ? X.breakWord : ""), y = (o = u == null ? i : u) == null ? void 0 : o, x = e.type === Wl.STATIC || !e.type, C = {
|
|
4184
4184
|
width: y,
|
|
4185
4185
|
minWidth: y,
|
|
4186
4186
|
textTransform: t && x ? ji.CAPITALIZE : void 0,
|
|
@@ -4192,40 +4192,40 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4192
4192
|
style: C,
|
|
4193
4193
|
colSpan: c,
|
|
4194
4194
|
rowSpan: l,
|
|
4195
|
-
children: /* @__PURE__ */ S(
|
|
4195
|
+
children: /* @__PURE__ */ S(Ul, {
|
|
4196
4196
|
cell: e,
|
|
4197
4197
|
columnAlignment: h == null ? ki.RIGHT : h,
|
|
4198
4198
|
isHeader: t,
|
|
4199
4199
|
testId: a
|
|
4200
4200
|
})
|
|
4201
4201
|
});
|
|
4202
|
-
},
|
|
4202
|
+
}, Kl = (e) => e.type === Wl.INPUT || e.type === Wl.NUMBER_INPUT, ql = ({ event: e, rowIndex: t, cellIndex: n }) => ({
|
|
4203
4203
|
...e,
|
|
4204
4204
|
target: Object.assign(e.target, {
|
|
4205
4205
|
rowIndex: t,
|
|
4206
4206
|
cellIndex: n
|
|
4207
4207
|
})
|
|
4208
|
-
}),
|
|
4209
|
-
if (!
|
|
4208
|
+
}), Jl = ({ cell: e, rowIndex: t, cellIndex: n }) => {
|
|
4209
|
+
if (!Kl(e) || typeof e.onChange != "function") return e;
|
|
4210
4210
|
let r = e.onChange;
|
|
4211
4211
|
return {
|
|
4212
4212
|
...e,
|
|
4213
4213
|
onChange: (e) => {
|
|
4214
|
-
r(
|
|
4214
|
+
r(ql({
|
|
4215
4215
|
event: e,
|
|
4216
4216
|
rowIndex: t,
|
|
4217
4217
|
cellIndex: n
|
|
4218
4218
|
}));
|
|
4219
4219
|
}
|
|
4220
4220
|
};
|
|
4221
|
-
},
|
|
4221
|
+
}, Yl = ({ row: e, rowIndex: t, isHeader: n = !1, columnCount: r, colSpan: i, columnHeaderAlignments: a = [], columnAlignment: o = [], hasRowActions: s, draggableTable: c = !1, columnWidths: u, dropDisabled: d = !1, height: f, testId: p, measureRef: m }) => {
|
|
4222
4222
|
let h = gl(a, n, t), { onRowClick: g, onRowFocus: _, onRowMouseEnter: v, onRowMouseLeave: y, expandedContent: w, error: T, warning: E, active: D } = e, O = e.cells.map((e, r) => {
|
|
4223
|
-
let i = `${+!n}_${t}_${r}`, a = n ? e :
|
|
4223
|
+
let i = `${+!n}_${t}_${r}`, a = n ? e : Jl({
|
|
4224
4224
|
cell: e,
|
|
4225
4225
|
rowIndex: t,
|
|
4226
4226
|
cellIndex: r
|
|
4227
4227
|
});
|
|
4228
|
-
return /* @__PURE__ */ S(
|
|
4228
|
+
return /* @__PURE__ */ S(Gl, {
|
|
4229
4229
|
cell: a,
|
|
4230
4230
|
isHeader: n,
|
|
4231
4231
|
columnAlignment: o[r],
|
|
@@ -4233,9 +4233,9 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4233
4233
|
width: u ? u[r] : void 0,
|
|
4234
4234
|
testId: e.testId
|
|
4235
4235
|
}, i);
|
|
4236
|
-
}), k = s && /* @__PURE__ */ S(
|
|
4236
|
+
}), k = s && /* @__PURE__ */ S(Gl, {
|
|
4237
4237
|
cell: {
|
|
4238
|
-
type:
|
|
4238
|
+
type: Wl.ACTIONS,
|
|
4239
4239
|
actions: e.actions
|
|
4240
4240
|
},
|
|
4241
4241
|
isHeader: n
|
|
@@ -4302,7 +4302,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4302
4302
|
flush: w.flush === !0,
|
|
4303
4303
|
children: w.content
|
|
4304
4304
|
}, `${t}_expanded_content`) : null] });
|
|
4305
|
-
},
|
|
4305
|
+
}, Xl = (e) => {
|
|
4306
4306
|
let { children: t, colSpan: n, columnAlignment: r, columnCount: i, draggable: a, onListReorder: o = () => {}, canListReorder: s = () => !0, rowActions: c, rows: l = [], tbodyRef: u } = e, [d, f] = v(null), [p, m] = v(!1), g = h(() => l.map((e, t) => t.toString()), [l]);
|
|
4307
4307
|
return a ? /* @__PURE__ */ C(Jr, {
|
|
4308
4308
|
collisionDetection: Xr,
|
|
@@ -4337,7 +4337,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4337
4337
|
dropAnimation: null,
|
|
4338
4338
|
children: /* @__PURE__ */ S("table", {
|
|
4339
4339
|
className: b(Ks.table, Ks.dragOverlay),
|
|
4340
|
-
children: /* @__PURE__ */ S("tbody", { children: /* @__PURE__ */ S(
|
|
4340
|
+
children: /* @__PURE__ */ S("tbody", { children: /* @__PURE__ */ S(Yl, {
|
|
4341
4341
|
rowIndex: Number(d),
|
|
4342
4342
|
row: l[Number(d)],
|
|
4343
4343
|
columnCount: i,
|
|
@@ -4357,17 +4357,17 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4357
4357
|
})
|
|
4358
4358
|
}), document.body)]
|
|
4359
4359
|
}) : t({});
|
|
4360
|
-
},
|
|
4360
|
+
}, Zl = 31, Ql = 2, $l = ({ table: e, children: t }) => {
|
|
4361
4361
|
var n;
|
|
4362
4362
|
let r = _(null), i = _(/* @__PURE__ */ new Map()), { estimateRowHeight: a, rowCount: o, rows: s } = e, c = (n = o == null ? s == null ? void 0 : s.length : o) == null ? 0 : n, l = !!a, u = (e) => {
|
|
4363
4363
|
var t, n;
|
|
4364
|
-
return (t = (n = i.current.get(e)) == null ? a == null ? void 0 : a(e) : n) == null ?
|
|
4364
|
+
return (t = (n = i.current.get(e)) == null ? a == null ? void 0 : a(e) : n) == null ? Zl : t;
|
|
4365
4365
|
}, d = Zr({
|
|
4366
4366
|
count: c,
|
|
4367
4367
|
getScrollElement: () => r.current,
|
|
4368
|
-
estimateSize: l ? u : () =>
|
|
4368
|
+
estimateSize: l ? u : () => Zl,
|
|
4369
4369
|
...l ? { measureElement: (e) => {
|
|
4370
|
-
let t = e.getAttribute("data-index"), n = t == null ? -1 : Number(t), r = Math.ceil(e.getBoundingClientRect().height), a = n >= 0 ? u(n) :
|
|
4370
|
+
let t = e.getAttribute("data-index"), n = t == null ? -1 : Number(t), r = Math.ceil(e.getBoundingClientRect().height), a = n >= 0 ? u(n) : Zl, o = Math.abs(r - a) <= Ql ? a : r;
|
|
4371
4371
|
return n >= 0 && i.current.set(n, o), o;
|
|
4372
4372
|
} } : {},
|
|
4373
4373
|
overscan: 10
|
|
@@ -4387,7 +4387,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4387
4387
|
})()
|
|
4388
4388
|
})
|
|
4389
4389
|
});
|
|
4390
|
-
},
|
|
4390
|
+
}, eu = ({ activeIndex: e, triggerScrollToActiveRow: t, isVirtualized: n, virtualizer: r }) => (d(() => {
|
|
4391
4391
|
if (t && !(e == null || e < 0)) {
|
|
4392
4392
|
if (n && r) r.scrollToIndex(e, {
|
|
4393
4393
|
behavior: "auto",
|
|
@@ -4406,11 +4406,11 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4406
4406
|
t,
|
|
4407
4407
|
n,
|
|
4408
4408
|
r
|
|
4409
|
-
]), null),
|
|
4409
|
+
]), null), tu = ({ table: e, children: t }) => {
|
|
4410
4410
|
let { infiniteScroll: n = !1, triggerScrollToActiveRow: r = !1, rows: i } = e, a = h(() => typeof e.activeRowIndex == "number" ? e.activeRowIndex : Array.isArray(i) && i.length ? i.findIndex((e) => e && e.active) : -1, [i, e.activeRowIndex]);
|
|
4411
|
-
return n ? /* @__PURE__ */ S(
|
|
4411
|
+
return n ? /* @__PURE__ */ S($l, {
|
|
4412
4412
|
table: e,
|
|
4413
|
-
children: ({ virtualizer: e, tableStyle: n }) => /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(
|
|
4413
|
+
children: ({ virtualizer: e, tableStyle: n }) => /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(eu, {
|
|
4414
4414
|
isVirtualized: !0,
|
|
4415
4415
|
virtualizer: e,
|
|
4416
4416
|
activeIndex: a,
|
|
@@ -4422,13 +4422,13 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4422
4422
|
}) : /* @__PURE__ */ C("div", {
|
|
4423
4423
|
id: "scrollWrapper",
|
|
4424
4424
|
className: Ks.scroll,
|
|
4425
|
-
children: [/* @__PURE__ */ S(
|
|
4425
|
+
children: [/* @__PURE__ */ S(eu, {
|
|
4426
4426
|
isVirtualized: !1,
|
|
4427
4427
|
activeIndex: a,
|
|
4428
4428
|
triggerScrollToActiveRow: r
|
|
4429
4429
|
}), t({})]
|
|
4430
4430
|
});
|
|
4431
|
-
},
|
|
4431
|
+
}, nu = (e) => {
|
|
4432
4432
|
var t, n, r, i, a;
|
|
4433
4433
|
let { onListReorder: o = () => {}, canListReorder: s = () => !0, beforeRenderRow: c, table: l } = e, { columnWidths: u, footer: d, name: f, rows: p = [], actions: m, actionsRight: h, columnHeaderAlignments: g, columnAlignment: v, striped: y = !0, testId: x, draggable: w, defaultEmptyRow: T = null, onAddRow: E = null, bordered: D = !0, maxHeight: O, fixedWidth: k } = l, A = _(null), j = on(e, "table.headers", []), M = ul(p, j), N = fl(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), I = (T == null || (a = T.cells) == null ? void 0 : a.length) && E && F, L = {
|
|
4434
4434
|
cells: I ? T.cells.map((e, t) => (e == null ? void 0 : e.type) === "Input" ? {
|
|
@@ -4467,7 +4467,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4467
4467
|
name: f,
|
|
4468
4468
|
testId: x && `${x}-title`
|
|
4469
4469
|
}),
|
|
4470
|
-
/* @__PURE__ */ S(
|
|
4470
|
+
/* @__PURE__ */ S(Xl, {
|
|
4471
4471
|
colSpan: P,
|
|
4472
4472
|
columnAlignment: v,
|
|
4473
4473
|
columnCount: M,
|
|
@@ -4477,13 +4477,13 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4477
4477
|
rows: R,
|
|
4478
4478
|
tbodyRef: A,
|
|
4479
4479
|
canListReorder: s,
|
|
4480
|
-
children: ({ dropDisabled: e }) => /* @__PURE__ */ S(
|
|
4480
|
+
children: ({ dropDisabled: e }) => /* @__PURE__ */ S(tu, {
|
|
4481
4481
|
table: z,
|
|
4482
4482
|
children: ({ virtualizer: t, tableStyle: n }) => /* @__PURE__ */ C("table", {
|
|
4483
4483
|
className: b(Ks.table, y ? Ks.striped : ""),
|
|
4484
4484
|
"data-testid": x,
|
|
4485
4485
|
style: n,
|
|
4486
|
-
children: [/* @__PURE__ */ S("thead", { children: j.map((e, t) => /* @__PURE__ */ S(
|
|
4486
|
+
children: [/* @__PURE__ */ S("thead", { children: j.map((e, t) => /* @__PURE__ */ S(Yl, {
|
|
4487
4487
|
rowIndex: t,
|
|
4488
4488
|
isHeader: !0,
|
|
4489
4489
|
row: e,
|
|
@@ -4501,7 +4501,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4501
4501
|
row: i,
|
|
4502
4502
|
rowIndex: r
|
|
4503
4503
|
}) : i;
|
|
4504
|
-
return /* @__PURE__ */ S(
|
|
4504
|
+
return /* @__PURE__ */ S(Yl, {
|
|
4505
4505
|
rowIndex: r,
|
|
4506
4506
|
row: a,
|
|
4507
4507
|
columnCount: M,
|
|
@@ -4519,7 +4519,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4519
4519
|
row: t,
|
|
4520
4520
|
rowIndex: n
|
|
4521
4521
|
}) : t;
|
|
4522
|
-
return /* @__PURE__ */ S(
|
|
4522
|
+
return /* @__PURE__ */ S(Yl, {
|
|
4523
4523
|
rowIndex: n,
|
|
4524
4524
|
row: r,
|
|
4525
4525
|
columnCount: M,
|
|
@@ -4542,14 +4542,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4542
4542
|
})
|
|
4543
4543
|
]
|
|
4544
4544
|
});
|
|
4545
|
-
},
|
|
4545
|
+
}, ru = "blank", iu = 1e4, au = (e, t, n, r) => {
|
|
4546
4546
|
let i = `${t} → ${n}:`, a = e.filter((e) => !e.startsWith(i)), o = r ? [...a, `${i} ${r}`] : a;
|
|
4547
4547
|
return {
|
|
4548
4548
|
updatedErrors: o,
|
|
4549
4549
|
isValid: o.length === 0
|
|
4550
4550
|
};
|
|
4551
|
-
},
|
|
4552
|
-
let i = h(() => t.fields.map((e) => ({ value: e })), [t.fields]), [a, o] = v(
|
|
4551
|
+
}, ou = 20, su = 1, cu = ({ validationRules: e, parsedResult: t, updateState: n, testId: r }) => {
|
|
4552
|
+
let i = h(() => t.fields.map((e) => ({ value: e })), [t.fields]), [a, o] = v(ou), [s, c] = v(su), u = _([]), f = (s - 1) * a, p = a === 0 ? t.rows.length : f + a, [m, g] = v([]), y = h(() => {
|
|
4553
4553
|
let n = e.filter((e) => !e.optionalColumn);
|
|
4554
4554
|
return t.fields.length === n.length ? n : e;
|
|
4555
4555
|
}, [e, t.fields.length]), b = l((e, r) => (!u.current.length && t.rows.length && (u.current = t.rows[0].map((e) => Gc(e) ? "NumberInput" : "Input")), {
|
|
@@ -4563,7 +4563,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4563
4563
|
disableValidationOnFocus: !0,
|
|
4564
4564
|
error: x,
|
|
4565
4565
|
validationCallback: (e, i) => {
|
|
4566
|
-
let a = `Row ${r + 1}`, { updatedErrors: o, isValid: s } =
|
|
4566
|
+
let a = `Row ${r + 1}`, { updatedErrors: o, isValid: s } = au(t.errors, a, e, i);
|
|
4567
4567
|
n({ parsedResult: {
|
|
4568
4568
|
...t,
|
|
4569
4569
|
errors: o,
|
|
@@ -4572,7 +4572,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4572
4572
|
},
|
|
4573
4573
|
onChange: (e) => {
|
|
4574
4574
|
var i;
|
|
4575
|
-
let { value: o } = (i = e == null ? void 0 : e.target) == null ? {} : i, s = `Row ${r + 1}`, c = p(o), { updatedErrors: l, isValid: u } =
|
|
4575
|
+
let { value: o } = (i = e == null ? void 0 : e.target) == null ? {} : i, s = `Row ${r + 1}`, c = p(o), { updatedErrors: l, isValid: u } = au(t.errors, s, m, c), d = t.rows.map((e, t) => t === r ? e.map((e, t) => t === a ? o : e) : e);
|
|
4576
4576
|
n({ parsedResult: {
|
|
4577
4577
|
...t,
|
|
4578
4578
|
rows: d,
|
|
@@ -4614,7 +4614,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4614
4614
|
]);
|
|
4615
4615
|
let x = h(() => t.fields.map((e, r) => {
|
|
4616
4616
|
var a, o, s;
|
|
4617
|
-
let c = y == null ? void 0 : y[r], l = Array.isArray(c == null ? void 0 : c.validUnits) ? c.validUnits : [], u = l == null ? void 0 : l.some((e) => xn(e) ===
|
|
4617
|
+
let c = y == null ? void 0 : y[r], l = Array.isArray(c == null ? void 0 : c.validUnits) ? c.validUnits : [], u = l == null ? void 0 : l.some((e) => xn(e) === ru);
|
|
4618
4618
|
if (!l.length || u) return {};
|
|
4619
4619
|
let d = t == null || (a = t.units) == null ? void 0 : a[r], f = xn(d), p = l != null && l.some((e) => xn(e) === f) ? d : (o = c == null ? void 0 : c.defaultUnit) == null ? "" : o;
|
|
4620
4620
|
return {
|
|
@@ -4662,7 +4662,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4662
4662
|
b,
|
|
4663
4663
|
f
|
|
4664
4664
|
]);
|
|
4665
|
-
return /* @__PURE__ */ S(
|
|
4665
|
+
return /* @__PURE__ */ S(nu, {
|
|
4666
4666
|
beforeRenderRow: E,
|
|
4667
4667
|
onListReorder: ({ from: e, to: r }) => {
|
|
4668
4668
|
let i = [...t.rows], [a] = i.splice(e, 1);
|
|
@@ -4725,7 +4725,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4725
4725
|
} }
|
|
4726
4726
|
}
|
|
4727
4727
|
});
|
|
4728
|
-
},
|
|
4728
|
+
}, lu = { listStyle: "_listStyle_yjfjw_1" }, uu = ({ errors: e, t }) => {
|
|
4729
4729
|
var n;
|
|
4730
4730
|
let r = (n = [...e]) == null ? void 0 : n.sort((e, t) => {
|
|
4731
4731
|
let n = (e) => {
|
|
@@ -4741,18 +4741,18 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4741
4741
|
content: t("unableToImportPleaseCorrectError", { rows: e == null ? void 0 : e.length }),
|
|
4742
4742
|
type: "Error",
|
|
4743
4743
|
details: /* @__PURE__ */ S("ul", {
|
|
4744
|
-
className:
|
|
4744
|
+
className: lu.listStyle,
|
|
4745
4745
|
children: r.map((e, t) => /* @__PURE__ */ S("li", { children: e }, t))
|
|
4746
4746
|
})
|
|
4747
4747
|
};
|
|
4748
|
-
},
|
|
4748
|
+
}, du = ({ errors: e, t }) => e.length ? /* @__PURE__ */ S(Gs, { message: uu({
|
|
4749
4749
|
errors: e,
|
|
4750
4750
|
t
|
|
4751
|
-
}) }) : null,
|
|
4751
|
+
}) }) : null, fu = {
|
|
4752
4752
|
empty: "_empty_fe425_1",
|
|
4753
4753
|
text: "_text_fe425_11"
|
|
4754
|
-
},
|
|
4755
|
-
className:
|
|
4754
|
+
}, pu = ({ width: e = "auto", height: t = "auto", text: n = "No data", children: r, testId: i }) => /* @__PURE__ */ C("div", {
|
|
4755
|
+
className: fu.empty,
|
|
4756
4756
|
style: {
|
|
4757
4757
|
width: e,
|
|
4758
4758
|
height: t
|
|
@@ -4788,7 +4788,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4788
4788
|
})
|
|
4789
4789
|
}),
|
|
4790
4790
|
n !== "" && /* @__PURE__ */ S("div", {
|
|
4791
|
-
className:
|
|
4791
|
+
className: fu.text,
|
|
4792
4792
|
children: /* @__PURE__ */ S(Yo, {
|
|
4793
4793
|
faint: !0,
|
|
4794
4794
|
children: n
|
|
@@ -4796,52 +4796,52 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4796
4796
|
}),
|
|
4797
4797
|
r
|
|
4798
4798
|
]
|
|
4799
|
-
}),
|
|
4799
|
+
}), mu = (e) => {
|
|
4800
4800
|
var t;
|
|
4801
4801
|
return e == null || (t = e.split(/;|\t|\n/)) == null ? void 0 : t.some((e) => {
|
|
4802
4802
|
let t = e == null ? void 0 : e.match(/[.,]/g);
|
|
4803
4803
|
return t && t.length > 1;
|
|
4804
4804
|
});
|
|
4805
|
-
},
|
|
4805
|
+
}, hu = (e) => {
|
|
4806
4806
|
var t;
|
|
4807
4807
|
return e == null || (t = e.split(/;|\t|\n/)) == null ? void 0 : t.some((e) => {
|
|
4808
4808
|
var t;
|
|
4809
4809
|
return !(e != null && e.includes(".")) && (e == null || (t = e.match(/,/g)) == null ? void 0 : t.length) === 1;
|
|
4810
4810
|
});
|
|
4811
|
-
},
|
|
4811
|
+
}, gu = (e, t, n) => e >= t - n, _u = (e) => !!e && e !== "blank" && e.trim() !== "", vu = (e, t, n, r, i, a, o) => {
|
|
4812
4812
|
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;
|
|
4813
|
-
if (i && !
|
|
4813
|
+
if (i && !gu(e.length, l, c) && s.push(o("incorrectNumberOfFieldNameHeaderColumns", { expectedLengthMessage: u })), a) {
|
|
4814
4814
|
var f, p;
|
|
4815
4815
|
let e = r.filter((e) => {
|
|
4816
4816
|
var t;
|
|
4817
|
-
return !e.optionalColumn && Array.isArray(e == null ? void 0 : e.validUnits) && (e == null || (t = e.validUnits) == null ? void 0 : t.some(
|
|
4817
|
+
return !e.optionalColumn && Array.isArray(e == null ? void 0 : e.validUnits) && (e == null || (t = e.validUnits) == null ? void 0 : t.some(_u));
|
|
4818
4818
|
}).length;
|
|
4819
|
-
|
|
4819
|
+
gu(t == null || (f = t.filter(_u)) == 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 }));
|
|
4820
4820
|
}
|
|
4821
4821
|
return n.length === 0 ? s.push(o("incorrectNumberOfDataColumns", {
|
|
4822
4822
|
expectedLengthMessage: u,
|
|
4823
4823
|
dataRowStartIndex: d
|
|
4824
4824
|
})) : n.forEach((e, t) => {
|
|
4825
|
-
|
|
4825
|
+
gu(e.length, l, c) || s.push(o("incorrectNumberOfDataColumns", {
|
|
4826
4826
|
expectedLengthMessage: u,
|
|
4827
4827
|
dataRowStartIndex: d + t
|
|
4828
4828
|
}));
|
|
4829
4829
|
}), s;
|
|
4830
|
-
},
|
|
4830
|
+
}, yu = (e) => e.toUpperCase().replace(/\(.*?\)/g, "").replace(/[^A-Z0-9]/g, "").trim(), bu = ({ value: e, defaultAllowedValues: t }) => {
|
|
4831
4831
|
var n;
|
|
4832
|
-
let r =
|
|
4833
|
-
return (n = t == null ? void 0 : t.some((e) =>
|
|
4834
|
-
},
|
|
4832
|
+
let r = yu(e);
|
|
4833
|
+
return (n = t == null ? void 0 : t.some((e) => yu(e).includes(r) || r.includes(yu(e)))) != null && n;
|
|
4834
|
+
}, xu = ({ value: e, defaultAllowedValues: t }) => {
|
|
4835
4835
|
var n;
|
|
4836
4836
|
return (n = t == null ? void 0 : t.includes(e)) != null && n;
|
|
4837
|
-
},
|
|
4837
|
+
}, Su = (e, t, n, r, i, a) => {
|
|
4838
4838
|
let o = [];
|
|
4839
4839
|
if (r) {
|
|
4840
4840
|
let r = n.map((e) => e.fieldName).filter(Boolean);
|
|
4841
4841
|
e.forEach((i, s) => {
|
|
4842
4842
|
var c, l;
|
|
4843
4843
|
let u = n[s];
|
|
4844
|
-
if (!(!u || !(u != null && u.fieldName)) && !((c = (l = n[s]) == null ? void 0 : l.fieldNameValidator) == null ?
|
|
4844
|
+
if (!(!u || !(u != null && u.fieldName)) && !((c = (l = n[s]) == null ? void 0 : l.fieldNameValidator) == null ? bu : c)({
|
|
4845
4845
|
value: i,
|
|
4846
4846
|
defaultAllowedValues: r,
|
|
4847
4847
|
columnIndex: s,
|
|
@@ -4863,7 +4863,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4863
4863
|
var l, u;
|
|
4864
4864
|
let d = n[c];
|
|
4865
4865
|
if (!d || d != null && d.optionalColumn) return;
|
|
4866
|
-
let f = (l = d.unitsValidator) == null ?
|
|
4866
|
+
let f = (l = d.unitsValidator) == null ? xu : l, p = (u = i == null ? void 0 : i[c]) == null ? [] : u;
|
|
4867
4867
|
f({
|
|
4868
4868
|
value: r,
|
|
4869
4869
|
defaultAllowedValues: p,
|
|
@@ -4879,7 +4879,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4879
4879
|
});
|
|
4880
4880
|
}
|
|
4881
4881
|
return o;
|
|
4882
|
-
},
|
|
4882
|
+
}, Cu = (e, t, n) => {
|
|
4883
4883
|
let r = [];
|
|
4884
4884
|
return e.forEach((e, i) => {
|
|
4885
4885
|
e.forEach((e, a) => {
|
|
@@ -4892,91 +4892,91 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4892
4892
|
})}`);
|
|
4893
4893
|
});
|
|
4894
4894
|
}), r;
|
|
4895
|
-
},
|
|
4896
|
-
let s =
|
|
4897
|
-
return s.length === 0 && (s = s.concat(
|
|
4895
|
+
}, wu = (e, t, n, r, i, a, o) => {
|
|
4896
|
+
let s = vu(e, t, n, r, i, a, o);
|
|
4897
|
+
return s.length === 0 && (s = s.concat(Su(e, t, r, i, a, o), Cu(n, r, o))), {
|
|
4898
4898
|
isValid: s.length === 0,
|
|
4899
4899
|
errors: s
|
|
4900
4900
|
};
|
|
4901
|
-
},
|
|
4901
|
+
}, Tu = (e, t, n) => {
|
|
4902
4902
|
var r, i, a, o, s, c, l, u, d, f, p, m, h, g;
|
|
4903
4903
|
let _ = (e) => e.replace(/,/g, "."), v = (r = (i = e[0]) == null ? void 0 : i.some((e) => isNaN(Number(_(e))))) != null && r, y = (a = (o = e[1]) == null ? void 0 : o.some((e) => isNaN(Number(_(e))))) != null && a, b = (s = (c = e[0]) == null ? void 0 : c.some((e) => t.includes(e))) != null && s, x = (l = (u = e[0]) == null ? void 0 : u.some((e) => n.includes(e))) != null && l, S = (d = (f = e[1]) == null ? void 0 : f.some((e) => n.includes(e))) != null && d, C = (p = (m = e[0]) == null ? void 0 : m.some((e) => !isNaN(Number(_(e))))) != null && p, w = (h = (g = e[1]) == null ? void 0 : g.some((e) => !isNaN(Number(_(e))))) != null && h;
|
|
4904
4904
|
return {
|
|
4905
4905
|
hasFieldNameHeader: b || v && !x && !C || v && y && !C,
|
|
4906
4906
|
hasUnitHeader: x || S || v && y && !x && !C && !w || v && y && !C && !w
|
|
4907
4907
|
};
|
|
4908
|
-
},
|
|
4908
|
+
}, Eu = (e, { validationRules: t }) => {
|
|
4909
4909
|
var n, r, i;
|
|
4910
4910
|
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) => {
|
|
4911
4911
|
var t;
|
|
4912
4912
|
return (t = e == null ? void 0 : e.defaultUnit) == null ? s(e == null ? void 0 : e.validUnits) : t;
|
|
4913
|
-
}), { hasFieldNameHeader: l, hasUnitHeader: u } =
|
|
4913
|
+
}), { hasFieldNameHeader: l, hasUnitHeader: u } = Tu(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());
|
|
4914
4914
|
return l || e == null || e.unshift(o), u || e == null || e.splice(1, 0, c), {
|
|
4915
4915
|
hasFieldNameHeader: l,
|
|
4916
4916
|
hasUnitHeader: u
|
|
4917
4917
|
};
|
|
4918
|
-
},
|
|
4918
|
+
}, Du = (e) => Math.round(e * 100) / 100, Ou = (e) => e.join(", ").replace(/,\s*$/, ""), ku = {
|
|
4919
4919
|
skipEmptyLines: !0,
|
|
4920
4920
|
delimiter: (e) => {
|
|
4921
4921
|
var t, n;
|
|
4922
4922
|
let r = e.substring(0, 200), i = ((t = r.match(/\t/g)) == null ? [] : t).length, a = ((n = r.match(/;/g)) == null ? [] : n).length;
|
|
4923
4923
|
return i === 0 && a === 0 ? "," : i > a ? " " : ";";
|
|
4924
4924
|
}
|
|
4925
|
-
},
|
|
4925
|
+
}, Au = [
|
|
4926
4926
|
"text/csv",
|
|
4927
4927
|
"text/plain",
|
|
4928
4928
|
"application/json",
|
|
4929
4929
|
"application/vnd.ms-excel"
|
|
4930
|
-
],
|
|
4930
|
+
], ju = (e) => Au.includes(e.type), Mu = (e) => e instanceof File, Nu = (e) => e.trim().startsWith("["), Pu = (e) => {
|
|
4931
4931
|
try {
|
|
4932
4932
|
var t;
|
|
4933
4933
|
return !!((t = JSON.parse(e)) != null && t.path);
|
|
4934
4934
|
} catch {
|
|
4935
4935
|
return !1;
|
|
4936
4936
|
}
|
|
4937
|
-
},
|
|
4937
|
+
}, Fu = (e) => new Promise((t, n) => {
|
|
4938
4938
|
let r = new FileReader();
|
|
4939
4939
|
r.onload = () => t(String(r.result)), r.onerror = n, r.readAsText(e);
|
|
4940
|
-
}),
|
|
4940
|
+
}), Iu = async (e, t, n) => {
|
|
4941
4941
|
try {
|
|
4942
|
-
return
|
|
4942
|
+
return Gu({
|
|
4943
4943
|
data: JSON.parse(e),
|
|
4944
4944
|
errors: []
|
|
4945
4945
|
}, t, n);
|
|
4946
4946
|
} catch (e) {
|
|
4947
4947
|
throw Error(`${n("jsonParseFailed")} ${e.message}`);
|
|
4948
4948
|
}
|
|
4949
|
-
},
|
|
4949
|
+
}, Lu = async (e, t, n) => {
|
|
4950
4950
|
try {
|
|
4951
4951
|
let r = JSON.parse(e).path.map((e) => [
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4952
|
+
Du(e.md),
|
|
4953
|
+
Du(e.inclination),
|
|
4954
|
+
Du(e.gridAzimuth)
|
|
4955
4955
|
]);
|
|
4956
4956
|
return r.unshift([
|
|
4957
4957
|
"m",
|
|
4958
4958
|
"deg",
|
|
4959
4959
|
"deg"
|
|
4960
|
-
]),
|
|
4960
|
+
]), Gu({
|
|
4961
4961
|
data: r,
|
|
4962
4962
|
errors: []
|
|
4963
4963
|
}, t, n);
|
|
4964
4964
|
} catch (e) {
|
|
4965
4965
|
throw Error(`${n("jsonParseFailed")} ${e.message}`);
|
|
4966
4966
|
}
|
|
4967
|
-
},
|
|
4967
|
+
}, Ru = (e) => e.replace(",", "."), zu = (e) => e.map((e) => e.map((e) => Ru(e))), Bu = (e, { importLimit: t, ...n }, r) => new Promise((i) => {
|
|
4968
4968
|
Qr.parse(e, {
|
|
4969
|
-
...
|
|
4969
|
+
...ku,
|
|
4970
4970
|
preview: t,
|
|
4971
4971
|
complete: (e) => {
|
|
4972
|
-
let a =
|
|
4972
|
+
let a = Gu(e, {
|
|
4973
4973
|
importLimit: t,
|
|
4974
4974
|
...n
|
|
4975
4975
|
}, r);
|
|
4976
|
-
a.rows =
|
|
4976
|
+
a.rows = zu(a.rows), i(a);
|
|
4977
4977
|
}
|
|
4978
4978
|
});
|
|
4979
|
-
}),
|
|
4979
|
+
}), Vu = async (e, t, n) => {
|
|
4980
4980
|
let r = {
|
|
4981
4981
|
isValid: !1,
|
|
4982
4982
|
fields: [],
|
|
@@ -4985,16 +4985,16 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4985
4985
|
errors: []
|
|
4986
4986
|
};
|
|
4987
4987
|
try {
|
|
4988
|
-
if (
|
|
4989
|
-
let i =
|
|
4990
|
-
return
|
|
4988
|
+
if (Mu(e) && !ju(e)) return r.errors.push(`${n("wrongFileFormatExpectedOneOf")} ${Ou(Array.from(Au))}`), r;
|
|
4989
|
+
let i = Mu(e) ? await Fu(e) : e;
|
|
4990
|
+
return Nu(i) ? await Iu(i, t, n) : Pu(i) ? await Lu(i, t, n) : await Bu(e, t, n);
|
|
4991
4991
|
} catch (e) {
|
|
4992
4992
|
return r.errors.push(e.message), r;
|
|
4993
4993
|
}
|
|
4994
|
-
},
|
|
4994
|
+
}, Hu = (e) => Array.isArray(e[0]) ? e : [e], Uu = (e) => Math.max(0, ...Hu(e).map((e) => e.length)), Wu = (e, t, n, r) => {
|
|
4995
4995
|
var i;
|
|
4996
4996
|
let a = (i = r == null ? void 0 : r.delimiter) == null ? "," : i, o = [
|
|
4997
|
-
...
|
|
4997
|
+
...Hu(e),
|
|
4998
4998
|
t,
|
|
4999
4999
|
...n
|
|
5000
5000
|
].filter(Boolean);
|
|
@@ -5003,7 +5003,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5003
5003
|
header: !0,
|
|
5004
5004
|
delimiter: a
|
|
5005
5005
|
});
|
|
5006
|
-
},
|
|
5006
|
+
}, Gu = (e, t, n) => {
|
|
5007
5007
|
let { data: r, errors: i } = e, a = {
|
|
5008
5008
|
isValid: !1,
|
|
5009
5009
|
fields: [],
|
|
@@ -5012,22 +5012,22 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5012
5012
|
errors: i.map((e) => e.message)
|
|
5013
5013
|
};
|
|
5014
5014
|
if (i.length > 0) return a;
|
|
5015
|
-
let { hasFieldNameHeader: o, hasUnitHeader: s } =
|
|
5015
|
+
let { hasFieldNameHeader: o, hasUnitHeader: s } = Eu(r, t);
|
|
5016
5016
|
a.fields = r[0].map((e) => e.trim()), a.units = r[1].map((e) => e.trim()).filter(Boolean), a.rows = r.slice(2);
|
|
5017
5017
|
let { validationRules: c } = t;
|
|
5018
5018
|
if (c.length) {
|
|
5019
|
-
let { isValid: e, errors: t } =
|
|
5019
|
+
let { isValid: e, errors: t } = wu(a.fields, a.units, a.rows, c, o, s, n);
|
|
5020
5020
|
a.errors.push(...t), a.isValid = e && t.length === 0;
|
|
5021
5021
|
} else a.isValid = a.errors.length === 0;
|
|
5022
5022
|
return a;
|
|
5023
|
-
},
|
|
5023
|
+
}, Ku = .001, qu = 0, Ju = (e, t) => e.every((e) => {
|
|
5024
5024
|
let n = e[t];
|
|
5025
5025
|
return n !== void 0 && n.trim() !== "" && dn(Tr(n));
|
|
5026
|
-
}),
|
|
5026
|
+
}), Yu = (e, t = {}) => {
|
|
5027
5027
|
var n, r;
|
|
5028
|
-
let { independentColumnIndex: i =
|
|
5029
|
-
if (e.length <= 2 || !
|
|
5030
|
-
let s = (n = (r = ti(e, (e) => e.length)) == null ? void 0 : r.length) == null ? 0 : n, c = ri(a == null ? ni(s) : a).filter((t) => t !== i &&
|
|
5028
|
+
let { independentColumnIndex: i = qu, dependentColumnIndexes: a, tolerance: o = Ku } = t;
|
|
5029
|
+
if (e.length <= 2 || !Ju(e, i)) return e.slice();
|
|
5030
|
+
let s = (n = (r = ti(e, (e) => e.length)) == null ? void 0 : r.length) == null ? 0 : n, c = ri(a == null ? ni(s) : a).filter((t) => t !== i && Ju(e, t));
|
|
5031
5031
|
if (c.length === 0) return e.slice();
|
|
5032
5032
|
let l = /* @__PURE__ */ new Set();
|
|
5033
5033
|
for (let t of c) {
|
|
@@ -5041,7 +5041,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5041
5041
|
}
|
|
5042
5042
|
}
|
|
5043
5043
|
return e.filter((e, t) => l.has(t));
|
|
5044
|
-
},
|
|
5044
|
+
}, Xu = ({ id: e, message: t = {
|
|
5045
5045
|
type: zs.INFO,
|
|
5046
5046
|
content: ""
|
|
5047
5047
|
}, autoClose: n = 6e3, onClose: r }) => {
|
|
@@ -5082,13 +5082,13 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5082
5082
|
transition: ii,
|
|
5083
5083
|
type: s
|
|
5084
5084
|
});
|
|
5085
|
-
},
|
|
5085
|
+
}, Zu = (e) => {
|
|
5086
5086
|
oi.dismiss(e);
|
|
5087
|
-
},
|
|
5087
|
+
}, Qu = (e, t) => {
|
|
5088
5088
|
t(() => {
|
|
5089
|
-
|
|
5089
|
+
Xu({ ...e });
|
|
5090
5090
|
});
|
|
5091
|
-
},
|
|
5091
|
+
}, $u = {
|
|
5092
5092
|
inputInTable: "_inputInTable_h6wco_1",
|
|
5093
5093
|
inputHover: "_inputHover_h6wco_13",
|
|
5094
5094
|
inputFocus: "_inputFocus_h6wco_18",
|
|
@@ -5104,7 +5104,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5104
5104
|
control: "_control_h6wco_25",
|
|
5105
5105
|
labelText: "_labelText_h6wco_137",
|
|
5106
5106
|
noMargin: "_noMargin_h6wco_201"
|
|
5107
|
-
},
|
|
5107
|
+
}, ed = ({ name: e, label: t, checked: n = !1, disabled: r, display: i, small: a = !1, onChange: o, noMargin: s = !1, testId: c, helpText: l, onClickHelp: d, textTransform: f = ji.CAPITALIZE }) => {
|
|
5108
5108
|
let p = u(W), m = l || d;
|
|
5109
5109
|
return /* @__PURE__ */ C(ci, {
|
|
5110
5110
|
name: e,
|
|
@@ -5117,14 +5117,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5117
5117
|
value: t
|
|
5118
5118
|
} });
|
|
5119
5119
|
},
|
|
5120
|
-
className: b(
|
|
5120
|
+
className: b($u.toggleContainer, s && $u.noMargin),
|
|
5121
5121
|
style: { display: i },
|
|
5122
5122
|
"data-testid": c ? `${c}-field` : void 0,
|
|
5123
5123
|
children: [/* @__PURE__ */ C(si, {
|
|
5124
|
-
className: b(
|
|
5124
|
+
className: b($u.toggle, a && $u.small, !t && $u.noLabel),
|
|
5125
5125
|
"data-testid": c,
|
|
5126
|
-
children: [/* @__PURE__ */ S("span", { className:
|
|
5127
|
-
className:
|
|
5126
|
+
children: [/* @__PURE__ */ S("span", { className: $u.control }), t && /* @__PURE__ */ S("span", {
|
|
5127
|
+
className: $u.labelText,
|
|
5128
5128
|
style: { textTransform: f },
|
|
5129
5129
|
children: t
|
|
5130
5130
|
})]
|
|
@@ -5133,7 +5133,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5133
5133
|
onClick: d
|
|
5134
5134
|
})]
|
|
5135
5135
|
});
|
|
5136
|
-
},
|
|
5136
|
+
}, td = ({ config: e, state: t, updateState: n, setModalVisibility: r, onCloseModal: i, readAndParseInput: a, validationRules: o = [], onCompleteImport: s = () => {}, prevalidationConfig: c, t: u, loading: d, startTransition: f, testId: p }) => {
|
|
5137
5137
|
let { modalVisibility: { reviewPasteModal: m, pasteModalHelpVisible: h, helpModal: g } } = t, { warningMessage: y, actionButtonLabel: b, changeRulesAction: w, checkPrevalidationNeed: T } = c == null ? {} : c, E = _(null), [D, O] = v(!1), [k, A] = v({
|
|
5138
5138
|
pastedText: "",
|
|
5139
5139
|
parsedResult: {
|
|
@@ -5154,10 +5154,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5154
5154
|
let { pastedText: j, parsedResult: M } = k, N = l((t) => {
|
|
5155
5155
|
if (t) {
|
|
5156
5156
|
var n, r;
|
|
5157
|
-
let t =
|
|
5157
|
+
let t = Yu(M.rows, e.downsampleConfig), i = {
|
|
5158
5158
|
validationRules: o,
|
|
5159
|
-
importLimit: (n = e.importLimit) == null ?
|
|
5160
|
-
}, a =
|
|
5159
|
+
importLimit: (n = e.importLimit) == null ? iu : n
|
|
5160
|
+
}, a = Wu(M.fields, (r = M.units) == null ? [] : r, t, i);
|
|
5161
5161
|
f(() => A({
|
|
5162
5162
|
parsedResult: {
|
|
5163
5163
|
...M,
|
|
@@ -5190,17 +5190,17 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5190
5190
|
}, F = () => {
|
|
5191
5191
|
r("helpModal", !g);
|
|
5192
5192
|
}, I = () => {
|
|
5193
|
-
n(k), s(k.parsedResult), i(),
|
|
5193
|
+
n(k), s(k.parsedResult), i(), Qu({ message: {
|
|
5194
5194
|
type: "Success",
|
|
5195
5195
|
content: u("pasteSuccessful")
|
|
5196
5196
|
} }, f);
|
|
5197
|
-
}, L = T && T(M), { isValid: R, errors: z } = M, B = z.length, ee = j === "", te =
|
|
5197
|
+
}, L = T && T(M), { isValid: R, errors: z } = M, B = z.length, ee = j === "", te = hu(j), ne = mu(j), V = /* @__PURE__ */ C(x, { children: [
|
|
5198
5198
|
/* @__PURE__ */ C("div", {
|
|
5199
5199
|
className: Ls.headerContainer,
|
|
5200
5200
|
children: [
|
|
5201
5201
|
/* @__PURE__ */ S(K, {
|
|
5202
5202
|
text: u("downsampleTooltip"),
|
|
5203
|
-
children: /* @__PURE__ */ S(
|
|
5203
|
+
children: /* @__PURE__ */ S(ed, {
|
|
5204
5204
|
label: u("downsampled"),
|
|
5205
5205
|
checked: D,
|
|
5206
5206
|
onChange: () => N(!D),
|
|
@@ -5233,7 +5233,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5233
5233
|
}),
|
|
5234
5234
|
ee ? /* @__PURE__ */ S("div", {
|
|
5235
5235
|
className: Ls.resultContainer,
|
|
5236
|
-
children: /* @__PURE__ */ S(
|
|
5236
|
+
children: /* @__PURE__ */ S(pu, {
|
|
5237
5237
|
text: null,
|
|
5238
5238
|
children: /* @__PURE__ */ C("div", {
|
|
5239
5239
|
className: Ls.emptyState,
|
|
@@ -5269,7 +5269,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5269
5269
|
}) : /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ C("div", {
|
|
5270
5270
|
className: Ls.messagesContainer,
|
|
5271
5271
|
children: [
|
|
5272
|
-
B ? /* @__PURE__ */ S(
|
|
5272
|
+
B ? /* @__PURE__ */ S(du, {
|
|
5273
5273
|
errors: z,
|
|
5274
5274
|
t: u
|
|
5275
5275
|
}) : null,
|
|
@@ -5292,7 +5292,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5292
5292
|
type: "Warning"
|
|
5293
5293
|
} })
|
|
5294
5294
|
]
|
|
5295
|
-
}), /* @__PURE__ */ S(
|
|
5295
|
+
}), /* @__PURE__ */ S(cu, {
|
|
5296
5296
|
validationRules: o,
|
|
5297
5297
|
parsedResult: M,
|
|
5298
5298
|
updateState: (e) => A((t) => ({
|
|
@@ -5335,7 +5335,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5335
5335
|
onClose: i
|
|
5336
5336
|
} })
|
|
5337
5337
|
});
|
|
5338
|
-
},
|
|
5338
|
+
}, nd = ({ modals: e = [], modalVisibility: t, onCloseModal: r, testId: i }) => e.length ? /* @__PURE__ */ S(x, { children: e.map(({ name: e, component: a, props: o = {} }) => {
|
|
5339
5339
|
var s;
|
|
5340
5340
|
return /* @__PURE__ */ S(n, { children: /* @__PURE__ */ S(a, {
|
|
5341
5341
|
testId: `${i}-modal-render-${e}`,
|
|
@@ -5343,7 +5343,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5343
5343
|
onClose: () => r({ name: e }),
|
|
5344
5344
|
...o
|
|
5345
5345
|
}) }, e);
|
|
5346
|
-
}) }) : null,
|
|
5346
|
+
}) }) : null, rd = ({ sections: e, iconName: t, testId: n, tooltip: r }) => /* @__PURE__ */ S(lo, {
|
|
5347
5347
|
loading: !0,
|
|
5348
5348
|
menu: {
|
|
5349
5349
|
component: /* @__PURE__ */ S(q, {
|
|
@@ -5359,18 +5359,18 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5359
5359
|
sections: e
|
|
5360
5360
|
},
|
|
5361
5361
|
testId: n
|
|
5362
|
-
}),
|
|
5362
|
+
}), id = (e, t, n) => l(async () => {
|
|
5363
5363
|
if (n) try {
|
|
5364
5364
|
return await n();
|
|
5365
5365
|
} catch (t) {
|
|
5366
|
-
console.error("beforeExportData failed", t),
|
|
5366
|
+
console.error("beforeExportData failed", t), Xu({ message: {
|
|
5367
5367
|
type: "Error",
|
|
5368
5368
|
content: e("unableToPrepareExportData")
|
|
5369
5369
|
} });
|
|
5370
5370
|
return;
|
|
5371
5371
|
}
|
|
5372
5372
|
return t;
|
|
5373
|
-
}, [t, n]),
|
|
5373
|
+
}, [t, n]), ad = {
|
|
5374
5374
|
cancel: "Cancel",
|
|
5375
5375
|
chooseFile: "Choose file",
|
|
5376
5376
|
copyDecimalComma: "Copy (decimal comma)",
|
|
@@ -5429,26 +5429,26 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5429
5429
|
smartUpload_description: "Upload image and extract table content using a LLM",
|
|
5430
5430
|
smartUpload_smartUpload: "Smart Upload",
|
|
5431
5431
|
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"
|
|
5432
|
-
},
|
|
5433
|
-
let t = Object.keys(
|
|
5434
|
-
let r =
|
|
5432
|
+
}, od = (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])), sd = (e) => h(() => {
|
|
5433
|
+
let t = Object.keys(ad).reduce((t, n) => {
|
|
5434
|
+
let r = ad == null ? void 0 : ad[n], i = e == null ? void 0 : e[n];
|
|
5435
5435
|
return t[n] = i == null ? r : i, t;
|
|
5436
5436
|
}, {});
|
|
5437
5437
|
return (e, n) => {
|
|
5438
5438
|
let r = t[e];
|
|
5439
|
-
return n ?
|
|
5439
|
+
return n ? od(r, n) : r;
|
|
5440
5440
|
};
|
|
5441
|
-
}, [e]),
|
|
5441
|
+
}, [e]), cd = /^\s*-?\d+(?:[.,]\d+)?(?:e[+-]?\d+)?\s*$/i, ld = (e) => {
|
|
5442
5442
|
var t;
|
|
5443
5443
|
return {
|
|
5444
5444
|
...e,
|
|
5445
5445
|
rows: e == null || (t = e.rows) == null ? void 0 : t.map((e) => e.map((e) => {
|
|
5446
5446
|
let t = String(e == null ? "" : e);
|
|
5447
|
-
return
|
|
5447
|
+
return cd.test(t) ? sr(t) : t;
|
|
5448
5448
|
}))
|
|
5449
5449
|
};
|
|
5450
|
-
},
|
|
5451
|
-
let { exportData: a, beforeExportData: o, importLimit: s =
|
|
5450
|
+
}, ud = ({ config: e, state: t, setState: n, smartUploadConfig: r, startTransition: i }) => {
|
|
5451
|
+
let { exportData: a, beforeExportData: o, importLimit: s = iu, validationRules: c = [], translations: u, onImportComplete: d = () => {}, disablePasteSuccessfulToast: f, prevalidationConfig: p, onDeleteRows: m } = e == null ? {} : e, { parsedResult: h } = t, { checkPrevalidationNeed: g } = p == null ? {} : p, _ = sd(u), v = id(_, a, o), y = l((e) => {
|
|
5452
5452
|
n((t) => ({
|
|
5453
5453
|
...t,
|
|
5454
5454
|
...e
|
|
@@ -5492,9 +5492,9 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5492
5492
|
let t = {
|
|
5493
5493
|
validationRules: c,
|
|
5494
5494
|
importLimit: s
|
|
5495
|
-
}, n =
|
|
5495
|
+
}, n = ld(await Vu(e, t, _));
|
|
5496
5496
|
if (g && g(h)) {
|
|
5497
|
-
let { fields: e, units: r, rows: a } = n, o =
|
|
5497
|
+
let { fields: e, units: r, rows: a } = n, o = Wu(e, r == null ? [] : r, a, t);
|
|
5498
5498
|
return i(() => y({
|
|
5499
5499
|
pastedText: o,
|
|
5500
5500
|
parsedResult: h
|
|
@@ -5520,20 +5520,20 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5520
5520
|
let { fromFile: t, showSuccessToast: n = !0 } = e == null ? {} : e, r;
|
|
5521
5521
|
try {
|
|
5522
5522
|
if (r = t ? await t.text() : await navigator.clipboard.readText(), !r) {
|
|
5523
|
-
|
|
5523
|
+
Qu({ message: {
|
|
5524
5524
|
type: "Error",
|
|
5525
5525
|
content: _(t ? "fileReadOrParseFailed" : "clipboardReadNotAllowed")
|
|
5526
5526
|
} }, i);
|
|
5527
5527
|
return;
|
|
5528
5528
|
}
|
|
5529
|
-
let e =
|
|
5529
|
+
let e = ld(await Vu(r, {
|
|
5530
5530
|
validationRules: c,
|
|
5531
5531
|
importLimit: s
|
|
5532
5532
|
}, _));
|
|
5533
|
-
return e != null && e.isValid ||
|
|
5533
|
+
return e != null && e.isValid || Qu({ message: {
|
|
5534
5534
|
type: "Error",
|
|
5535
5535
|
content: _("clipboardReadFailed")
|
|
5536
|
-
} }, i), n &&
|
|
5536
|
+
} }, i), n && Qu({ message: {
|
|
5537
5537
|
type: "Success",
|
|
5538
5538
|
content: _("pasteSuccessful")
|
|
5539
5539
|
} }, i), {
|
|
@@ -5541,7 +5541,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5541
5541
|
parsedResult: e
|
|
5542
5542
|
};
|
|
5543
5543
|
} catch (e) {
|
|
5544
|
-
|
|
5544
|
+
Qu({ message: {
|
|
5545
5545
|
type: "Error",
|
|
5546
5546
|
content: _(t ? "fileReadOrParseFailed" : "clipboardReadNotAllowed"),
|
|
5547
5547
|
details: e.message
|
|
@@ -5554,10 +5554,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5554
5554
|
let n = e == null || (t = e.target) == null || (t = t.files) == null ? void 0 : t[0];
|
|
5555
5555
|
if (!n) return;
|
|
5556
5556
|
let r = await n.text(), a = await C(r);
|
|
5557
|
-
a.isValid ? (f ||
|
|
5557
|
+
a.isValid ? (f || Qu({ message: {
|
|
5558
5558
|
type: "Success",
|
|
5559
5559
|
content: _("pasteSuccessful")
|
|
5560
|
-
} }, i), i(() => d(a))) :
|
|
5560
|
+
} }, i), i(() => d(a))) : Qu({ message: {
|
|
5561
5561
|
type: "Error",
|
|
5562
5562
|
content: _("fileParsingFailed")
|
|
5563
5563
|
} }, i);
|
|
@@ -5571,7 +5571,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5571
5571
|
try {
|
|
5572
5572
|
let t = await navigator.clipboard.readText();
|
|
5573
5573
|
if (!t) {
|
|
5574
|
-
|
|
5574
|
+
Qu({ message: {
|
|
5575
5575
|
type: "Error",
|
|
5576
5576
|
content: _("clipboardIsEmpty")
|
|
5577
5577
|
} }, i);
|
|
@@ -5579,18 +5579,18 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5579
5579
|
}
|
|
5580
5580
|
let n = await C(t);
|
|
5581
5581
|
if (!n.isValid) {
|
|
5582
|
-
|
|
5582
|
+
Qu({ message: {
|
|
5583
5583
|
type: "Error",
|
|
5584
5584
|
content: _("clipboardReadFailed")
|
|
5585
5585
|
} }, i);
|
|
5586
5586
|
return;
|
|
5587
5587
|
}
|
|
5588
|
-
f ||
|
|
5588
|
+
f || Qu({ message: {
|
|
5589
5589
|
type: "Success",
|
|
5590
5590
|
content: _("pasteSuccessful")
|
|
5591
5591
|
} }, i), e && i(() => d(n));
|
|
5592
5592
|
} catch {
|
|
5593
|
-
|
|
5593
|
+
Qu({ message: {
|
|
5594
5594
|
type: "Error",
|
|
5595
5595
|
content: _("clipboardReadNotAllowed")
|
|
5596
5596
|
} }, i);
|
|
@@ -5605,14 +5605,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5605
5605
|
onClickCopyClipboard: l(async (e) => {
|
|
5606
5606
|
let t = await v();
|
|
5607
5607
|
if (!t) return;
|
|
5608
|
-
let { fields: n = [], units: r = [], rows: a = [] } = t, o = (r == null ? [] : r).map((e) => e != null && e.length ? e :
|
|
5608
|
+
let { fields: n = [], units: r = [], rows: a = [] } = t, o = (r == null ? [] : r).map((e) => e != null && e.length ? e : ru).slice(0, Uu(n)), s = (e, t) => t === "comma" ? e.replace(/\./g, ",") : e, c = Wu(n, o, a.map((t) => t.map((t) => ei(t) ? "" : s(t.toString(), e))), { delimiter: " " });
|
|
5609
5609
|
try {
|
|
5610
|
-
await navigator.clipboard.writeText(c),
|
|
5610
|
+
await navigator.clipboard.writeText(c), Qu({ message: {
|
|
5611
5611
|
type: "Success",
|
|
5612
5612
|
content: _("copiedToClipboard")
|
|
5613
5613
|
} }, i);
|
|
5614
5614
|
} catch (e) {
|
|
5615
|
-
|
|
5615
|
+
Qu({ message: {
|
|
5616
5616
|
type: "Error",
|
|
5617
5617
|
content: _("unableToCopyToClipboard"),
|
|
5618
5618
|
details: e.message
|
|
@@ -5622,14 +5622,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5622
5622
|
onSmartUploadResult: l((e) => {
|
|
5623
5623
|
let t = gn(e) && _n(e.errorMessage) ? e.errorMessage : void 0;
|
|
5624
5624
|
if (t) {
|
|
5625
|
-
|
|
5625
|
+
Qu({ message: {
|
|
5626
5626
|
type: "Error",
|
|
5627
5627
|
content: t || "Smart upload failed."
|
|
5628
5628
|
} }, i);
|
|
5629
5629
|
return;
|
|
5630
5630
|
}
|
|
5631
5631
|
if (!sn(e) || e.length < 2 || !an(e, (e) => gn(e) && an(wn(e), _n))) {
|
|
5632
|
-
|
|
5632
|
+
Qu({ message: {
|
|
5633
5633
|
type: "Error",
|
|
5634
5634
|
content: "Smart upload returned unexpected format.",
|
|
5635
5635
|
details: JSON.stringify(e)
|
|
@@ -5661,14 +5661,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5661
5661
|
]),
|
|
5662
5662
|
deleteAllRows: x
|
|
5663
5663
|
};
|
|
5664
|
-
},
|
|
5664
|
+
}, dd = (e, t) => {
|
|
5665
5665
|
var n, r;
|
|
5666
|
-
let { fields: i, rows: a } = e, o =
|
|
5666
|
+
let { fields: i, rows: a } = e, o = Wu(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");
|
|
5667
5667
|
c.href = window.URL.createObjectURL(s), c.download = `${t}.csv`, document.body.appendChild(c), c.click(), document.body.removeChild(c);
|
|
5668
|
-
},
|
|
5668
|
+
}, fd = (e) => hn(e) && "modalKey" in e, pd = (e, t, n) => nn(e, (e) => {
|
|
5669
5669
|
if (sn(e) || !gn(e)) return;
|
|
5670
5670
|
let { modalKey: r } = e == null ? {} : e;
|
|
5671
|
-
if (
|
|
5671
|
+
if (fd(e) && typeof e.onClick != "function") {
|
|
5672
5672
|
let i = () => {
|
|
5673
5673
|
var e;
|
|
5674
5674
|
n(r, !((e = t.modalVisibility) != null && e[r]));
|
|
@@ -5678,7 +5678,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5678
5678
|
onClick: i
|
|
5679
5679
|
};
|
|
5680
5680
|
}
|
|
5681
|
-
}),
|
|
5681
|
+
}), md = (e, t, n) => pd(e, t, n), hd = {
|
|
5682
5682
|
pastedText: "",
|
|
5683
5683
|
parsedResult: {
|
|
5684
5684
|
isValid: !1,
|
|
@@ -5693,9 +5693,9 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5693
5693
|
reviewPasteModal: !1,
|
|
5694
5694
|
helpModal: !1
|
|
5695
5695
|
}
|
|
5696
|
-
},
|
|
5696
|
+
}, gd = ({ config: e, smartUploadConfig: t, testId: n }) => {
|
|
5697
5697
|
var r, i, a, o;
|
|
5698
|
-
let { exportData: s, beforeExportData: c, prevalidationConfig: l, validationRules: u, title: d, translations: f, textOnly: p = !1, showImportOptions: m = !0, copyFromClipBoard: h = !0, showDeleteOptions: g = !0, showHelpOption: _ = !0, showUploadFileOption: b = !0, modals: x = [], dynamicOptions: w, onImportComplete: T } = e == null ? {} : e, [E, D] = v(
|
|
5698
|
+
let { exportData: s, beforeExportData: c, prevalidationConfig: l, validationRules: u, title: d, translations: f, textOnly: p = !1, showImportOptions: m = !0, copyFromClipBoard: h = !0, showDeleteOptions: g = !0, showHelpOption: _ = !0, showUploadFileOption: b = !0, modals: x = [], dynamicOptions: w, onImportComplete: T } = e == null ? {} : e, [E, D] = v(hd), { 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 = sd(f), L = id(I, s, c), [R, z] = y(), B = ud({
|
|
5699
5699
|
config: e,
|
|
5700
5700
|
state: E,
|
|
5701
5701
|
setState: D,
|
|
@@ -5728,14 +5728,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5728
5728
|
onClick: () => V("smartUploadModal", !O),
|
|
5729
5729
|
testId: `${n}-smart-upload`
|
|
5730
5730
|
}] : [],
|
|
5731
|
-
...
|
|
5731
|
+
...md((r = w == null ? void 0 : w.importOptions) == null ? [] : r, E, V)
|
|
5732
5732
|
] : [], le = [
|
|
5733
5733
|
{
|
|
5734
5734
|
type: "Option",
|
|
5735
5735
|
label: I("downloadFile"),
|
|
5736
5736
|
onClick: async () => {
|
|
5737
5737
|
let e = await L();
|
|
5738
|
-
e && e &&
|
|
5738
|
+
e && e && dd(e, d);
|
|
5739
5739
|
}
|
|
5740
5740
|
},
|
|
5741
5741
|
...p ? [{
|
|
@@ -5760,20 +5760,20 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5760
5760
|
}]
|
|
5761
5761
|
}
|
|
5762
5762
|
}],
|
|
5763
|
-
...
|
|
5763
|
+
...md((i = w == null ? void 0 : w.exportOptions) == null ? [] : i, E, V)
|
|
5764
5764
|
], ue = g ? [{
|
|
5765
5765
|
type: "Option",
|
|
5766
5766
|
label: I("deleteAllRows"),
|
|
5767
5767
|
onClick: () => se(),
|
|
5768
5768
|
testId: `${n}-delete-all-rows`
|
|
5769
|
-
}, ...
|
|
5769
|
+
}, ...md((a = w == null ? void 0 : w.deleteOptions) == null ? [] : a, E, V)] : [], de = _ ? [
|
|
5770
5770
|
{ type: "Divider" },
|
|
5771
5771
|
{
|
|
5772
5772
|
type: "Option",
|
|
5773
5773
|
label: I("help"),
|
|
5774
5774
|
onClick: () => V("helpModal", !A)
|
|
5775
5775
|
},
|
|
5776
|
-
...
|
|
5776
|
+
...md((o = w == null ? void 0 : w.helpOptions) == null ? [] : o, E, V)
|
|
5777
5777
|
] : [], fe = [
|
|
5778
5778
|
...ce.length ? [{
|
|
5779
5779
|
section: [...ce, ...de],
|
|
@@ -5799,13 +5799,13 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5799
5799
|
small: !0,
|
|
5800
5800
|
dark: !0
|
|
5801
5801
|
}),
|
|
5802
|
-
fe.map((e, t) => /* @__PURE__ */ S(
|
|
5802
|
+
fe.map((e, t) => /* @__PURE__ */ S(rd, {
|
|
5803
5803
|
sections: e.section,
|
|
5804
5804
|
iconName: e.iconName,
|
|
5805
5805
|
tooltip: e.tooltip,
|
|
5806
5806
|
testId: `data-${e == null ? void 0 : e.name}-menu`
|
|
5807
5807
|
}, t)),
|
|
5808
|
-
k && /* @__PURE__ */ S(
|
|
5808
|
+
k && /* @__PURE__ */ S(td, {
|
|
5809
5809
|
config: e,
|
|
5810
5810
|
state: E,
|
|
5811
5811
|
updateState: te,
|
|
@@ -5841,14 +5841,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5841
5841
|
cancelText: I("cancel"),
|
|
5842
5842
|
testId: n
|
|
5843
5843
|
}),
|
|
5844
|
-
/* @__PURE__ */ S(
|
|
5844
|
+
/* @__PURE__ */ S(nd, {
|
|
5845
5845
|
modals: x,
|
|
5846
5846
|
modalVisibility: E == null ? void 0 : E.modalVisibility,
|
|
5847
5847
|
onCloseModal: ne,
|
|
5848
5848
|
testId: n
|
|
5849
5849
|
})
|
|
5850
5850
|
] });
|
|
5851
|
-
},
|
|
5851
|
+
}, _d = ({ file: e, accept: t, multi: n, name: r, disabled: i, onChange: a = yn, ...o }) => {
|
|
5852
5852
|
let s = u(W), c = _(null), l = () => {
|
|
5853
5853
|
var e;
|
|
5854
5854
|
i || s || (e = c.current) == null || e.click();
|
|
@@ -5876,12 +5876,12 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5876
5876
|
multiple: n,
|
|
5877
5877
|
onChange: d
|
|
5878
5878
|
})] });
|
|
5879
|
-
},
|
|
5879
|
+
}, vd = {
|
|
5880
5880
|
label: "_label_uxk69_1",
|
|
5881
5881
|
labelLeft: "_labelLeft_uxk69_5",
|
|
5882
5882
|
icons: "_icons_uxk69_13",
|
|
5883
5883
|
small: "_small_uxk69_27"
|
|
5884
|
-
},
|
|
5884
|
+
}, yd = ({ label: e = null, width: t = "auto", helpText: n = "", helpTextMaxWidth: r = "300px", onClickHelp: i = void 0, lock: a = {
|
|
5885
5885
|
visible: !1,
|
|
5886
5886
|
active: !1,
|
|
5887
5887
|
onClick: () => {},
|
|
@@ -5890,14 +5890,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5890
5890
|
}, info: o, libraryIcon: s, labelLeft: c = !1, small: l = !1, textTransform: u = ji.CAPITALIZE }) => {
|
|
5891
5891
|
var d;
|
|
5892
5892
|
return /* @__PURE__ */ S("div", {
|
|
5893
|
-
className: b(
|
|
5893
|
+
className: b(vd.label, c ? vd.labelLeft : "", l ? vd.small : ""),
|
|
5894
5894
|
children: /* @__PURE__ */ C("label", {
|
|
5895
5895
|
style: {
|
|
5896
5896
|
textTransform: u,
|
|
5897
5897
|
width: t || ""
|
|
5898
5898
|
},
|
|
5899
5899
|
children: [e, /* @__PURE__ */ C("div", {
|
|
5900
|
-
className:
|
|
5900
|
+
className: vd.icons,
|
|
5901
5901
|
children: [
|
|
5902
5902
|
(n || i) && /* @__PURE__ */ S(ma, {
|
|
5903
5903
|
text: n,
|
|
@@ -5923,23 +5923,23 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5923
5923
|
})]
|
|
5924
5924
|
})
|
|
5925
5925
|
});
|
|
5926
|
-
},
|
|
5926
|
+
}, bd = {
|
|
5927
5927
|
field: "_field_1xoss_1",
|
|
5928
5928
|
labelLeft: "_labelLeft_1xoss_5",
|
|
5929
5929
|
fieldInput: "_fieldInput_1xoss_9",
|
|
5930
5930
|
formRow: "_formRow_1xoss_12",
|
|
5931
5931
|
"form-row": "_form-row_1xoss_13",
|
|
5932
5932
|
button: "_button_1xoss_22"
|
|
5933
|
-
},
|
|
5933
|
+
}, xd = ({ label: e, labelLeft: t = !1, labelWidth: n = "auto", children: r, helpText: i, helpTextMaxWidth: a = "300px", onClickHelp: o, lock: s = {
|
|
5934
5934
|
visible: !1,
|
|
5935
5935
|
active: !1,
|
|
5936
5936
|
onClick: () => {},
|
|
5937
5937
|
tooltip: "",
|
|
5938
5938
|
testId: void 0
|
|
5939
5939
|
}, info: c, libraryIcon: l, small: u = !1, testId: d, textTransform: f = ji.CAPITALIZE }) => /* @__PURE__ */ C("div", {
|
|
5940
|
-
className: b(
|
|
5940
|
+
className: b(bd.field, t ? bd.labelLeft : ""),
|
|
5941
5941
|
"data-testid": d,
|
|
5942
|
-
children: [(e || t) && /* @__PURE__ */ S(
|
|
5942
|
+
children: [(e || t) && /* @__PURE__ */ S(yd, {
|
|
5943
5943
|
label: e,
|
|
5944
5944
|
width: n,
|
|
5945
5945
|
helpText: i,
|
|
@@ -5952,10 +5952,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5952
5952
|
small: u,
|
|
5953
5953
|
textTransform: f
|
|
5954
5954
|
}), /* @__PURE__ */ S("div", {
|
|
5955
|
-
className:
|
|
5955
|
+
className: bd.fieldInput,
|
|
5956
5956
|
children: r
|
|
5957
5957
|
})]
|
|
5958
|
-
}),
|
|
5958
|
+
}), Sd = ({ 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__ */ S("div", {
|
|
5959
5959
|
style: {
|
|
5960
5960
|
display: "flex",
|
|
5961
5961
|
flexDirection: n,
|
|
@@ -5967,8 +5967,8 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5967
5967
|
gap: s === !1 ? 0 : s === !0 ? "var(--padding)" : typeof s == "number" ? `${s}px` : s
|
|
5968
5968
|
},
|
|
5969
5969
|
children: a
|
|
5970
|
-
}),
|
|
5971
|
-
className:
|
|
5970
|
+
}), Cd = { formRow: "_formRow_odewu_1" }, wd = ({ children: e }) => /* @__PURE__ */ S("div", {
|
|
5971
|
+
className: Cd.formRow,
|
|
5972
5972
|
children: e
|
|
5973
5973
|
}), Z = {
|
|
5974
5974
|
inputInTable: "_inputInTable_15rr3_1",
|
|
@@ -6014,15 +6014,15 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6014
6014
|
hideScrollbar: "_hideScrollbar_15rr3_71",
|
|
6015
6015
|
noPointerEvents: "_noPointerEvents_15rr3_313",
|
|
6016
6016
|
virtualRows: "_virtualRows_15rr3_316"
|
|
6017
|
-
},
|
|
6017
|
+
}, Td = ({ toggleNarrow: e, onClickToggleNarrow: t }) => e ? /* @__PURE__ */ S("a", {
|
|
6018
6018
|
className: Z.toggleNarrow,
|
|
6019
6019
|
onClick: t,
|
|
6020
6020
|
children: /* @__PURE__ */ S(G, { icon: U.CHEVRON_LEFT })
|
|
6021
|
-
}) : null,
|
|
6021
|
+
}) : null, Ed = o(({ name: e, actions: t = [], toggleNarrow: n = !1, onToggleNarrow: r = () => {}, stickyHeader: i }, a) => /* @__PURE__ */ C("div", {
|
|
6022
6022
|
ref: a,
|
|
6023
6023
|
className: b(Z.header, i ? Z.stickyHeader : ""),
|
|
6024
6024
|
children: [
|
|
6025
|
-
/* @__PURE__ */ S(
|
|
6025
|
+
/* @__PURE__ */ S(Td, {
|
|
6026
6026
|
toggleNarrow: n,
|
|
6027
6027
|
onClickToggleNarrow: r
|
|
6028
6028
|
}),
|
|
@@ -6042,14 +6042,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6042
6042
|
})
|
|
6043
6043
|
})
|
|
6044
6044
|
]
|
|
6045
|
-
})),
|
|
6045
|
+
})), Dd = ({ label: e }) => e ? /* @__PURE__ */ S("span", {
|
|
6046
6046
|
className: Z.label,
|
|
6047
6047
|
children: /* @__PURE__ */ S(no, {
|
|
6048
6048
|
color: e.color,
|
|
6049
6049
|
title: e.value,
|
|
6050
6050
|
small: e.small
|
|
6051
6051
|
})
|
|
6052
|
-
}) : null,
|
|
6052
|
+
}) : null, Od = ({ name: e, icon: t, testId: n }) => {
|
|
6053
6053
|
let r = t && /* @__PURE__ */ S(G, {
|
|
6054
6054
|
icon: t.icon,
|
|
6055
6055
|
color: t.color || "#db2828"
|
|
@@ -6069,8 +6069,8 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6069
6069
|
children: r
|
|
6070
6070
|
})]
|
|
6071
6071
|
});
|
|
6072
|
-
},
|
|
6073
|
-
let { name: t, icon: n, details: r, metadata: i, invalid: a, testId: o } = e, s = /* @__PURE__ */ S(
|
|
6072
|
+
}, kd = ({ item: e }) => {
|
|
6073
|
+
let { name: t, icon: n, details: r, metadata: i, invalid: a, testId: o } = e, s = /* @__PURE__ */ S(Od, {
|
|
6074
6074
|
name: t,
|
|
6075
6075
|
icon: n,
|
|
6076
6076
|
testId: o && `${o}-name`
|
|
@@ -6096,10 +6096,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6096
6096
|
})
|
|
6097
6097
|
]
|
|
6098
6098
|
});
|
|
6099
|
-
},
|
|
6099
|
+
}, Ad = ({ item: e }) => e.metaCount === void 0 ? null : /* @__PURE__ */ S(no, {
|
|
6100
6100
|
color: "rgba(0,0,0,0.25)",
|
|
6101
6101
|
title: e.metaCount
|
|
6102
|
-
}),
|
|
6102
|
+
}), jd = ({ item: e, expanding: t }) => {
|
|
6103
6103
|
let n = (e) => {
|
|
6104
6104
|
e.preventDefault(), e.stopPropagation();
|
|
6105
6105
|
}, r = !!t && !!e.active && !!e.content;
|
|
@@ -6111,7 +6111,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6111
6111
|
children: e.content
|
|
6112
6112
|
})
|
|
6113
6113
|
});
|
|
6114
|
-
},
|
|
6114
|
+
}, Md = o(({ item: e, index: t }, n) => {
|
|
6115
6115
|
var r;
|
|
6116
6116
|
let i = u(W), { actions: a, disabled: o, expanded: s, onClick: c, title: l, name: d, icon: f, testId: p } = e;
|
|
6117
6117
|
return /* @__PURE__ */ S("div", {
|
|
@@ -6131,13 +6131,13 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6131
6131
|
className: b(Z.expandIcon, s && Z.expanded),
|
|
6132
6132
|
children: /* @__PURE__ */ S(G, { icon: U.CHEVRON_RIGHT })
|
|
6133
6133
|
}),
|
|
6134
|
-
/* @__PURE__ */ S(
|
|
6134
|
+
/* @__PURE__ */ S(Od, {
|
|
6135
6135
|
name: d,
|
|
6136
6136
|
icon: f
|
|
6137
6137
|
}),
|
|
6138
6138
|
/* @__PURE__ */ C("div", {
|
|
6139
6139
|
className: Z.right,
|
|
6140
|
-
children: [/* @__PURE__ */ S(
|
|
6140
|
+
children: [/* @__PURE__ */ S(Ad, { item: e }), !(o || i) && a && /* @__PURE__ */ S("div", {
|
|
6141
6141
|
className: Z.actions,
|
|
6142
6142
|
children: /* @__PURE__ */ S(fo, { actions: (r = e.actions) == null ? [] : r })
|
|
6143
6143
|
})]
|
|
@@ -6145,7 +6145,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6145
6145
|
]
|
|
6146
6146
|
}) })
|
|
6147
6147
|
});
|
|
6148
|
-
}),
|
|
6148
|
+
}), Nd = o(({ item: e, index: t, expanding: n, invokeEditOnRowClick: r, draggable: i }, a) => {
|
|
6149
6149
|
let o = u(W), s = (e, t, s, c, l, u) => {
|
|
6150
6150
|
let d = t.actions && t.actions.find((e) => {
|
|
6151
6151
|
var t;
|
|
@@ -6181,24 +6181,24 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6181
6181
|
className: Z.indentIcon,
|
|
6182
6182
|
children: /* @__PURE__ */ S(G, { icon: U.INDENT })
|
|
6183
6183
|
}) : null,
|
|
6184
|
-
/* @__PURE__ */ S(
|
|
6185
|
-
/* @__PURE__ */ S(
|
|
6184
|
+
/* @__PURE__ */ S(Dd, { label: t.label }),
|
|
6185
|
+
/* @__PURE__ */ S(kd, { item: t }),
|
|
6186
6186
|
/* @__PURE__ */ C("div", {
|
|
6187
6187
|
className: Z.right,
|
|
6188
|
-
children: [/* @__PURE__ */ S(
|
|
6188
|
+
children: [/* @__PURE__ */ S(Ad, { item: t }), !(t.disabled || o) && t.actions && /* @__PURE__ */ S("div", {
|
|
6189
6189
|
className: Z.actions,
|
|
6190
6190
|
children: /* @__PURE__ */ S(fo, { actions: t.actions })
|
|
6191
6191
|
})]
|
|
6192
6192
|
})
|
|
6193
6193
|
]
|
|
6194
|
-
}), /* @__PURE__ */ S(
|
|
6194
|
+
}), /* @__PURE__ */ S(jd, {
|
|
6195
6195
|
item: t,
|
|
6196
6196
|
expanding: n
|
|
6197
6197
|
})]
|
|
6198
6198
|
})
|
|
6199
6199
|
}, e);
|
|
6200
6200
|
};
|
|
6201
|
-
return e.type === "Heading" ? /* @__PURE__ */ S(
|
|
6201
|
+
return e.type === "Heading" ? /* @__PURE__ */ S(Md, {
|
|
6202
6202
|
ref: a,
|
|
6203
6203
|
item: e,
|
|
6204
6204
|
index: t
|
|
@@ -6213,7 +6213,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6213
6213
|
};
|
|
6214
6214
|
return s(e, t, l, n, r, i);
|
|
6215
6215
|
})(t, e) : s(t, e);
|
|
6216
|
-
}),
|
|
6216
|
+
}), Pd = ({ children: e, draggable: t, list: n, onListReorder: r }) => {
|
|
6217
6217
|
let [i, a] = v(null), o = (e) => {
|
|
6218
6218
|
a(e.active.id);
|
|
6219
6219
|
}, s = (e) => {
|
|
@@ -6236,7 +6236,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6236
6236
|
dropAnimation: null,
|
|
6237
6237
|
children: /* @__PURE__ */ S("div", {
|
|
6238
6238
|
className: Z.dragOverlay,
|
|
6239
|
-
children: /* @__PURE__ */ S(
|
|
6239
|
+
children: /* @__PURE__ */ S(Nd, {
|
|
6240
6240
|
draggable: t,
|
|
6241
6241
|
item: n.items[Number(i)],
|
|
6242
6242
|
index: Number(i)
|
|
@@ -6244,7 +6244,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6244
6244
|
})
|
|
6245
6245
|
}), document.body)]
|
|
6246
6246
|
}) : e;
|
|
6247
|
-
},
|
|
6247
|
+
}, Fd = ({ items: e, scrollDetails: t, children: n }) => {
|
|
6248
6248
|
let { scrollable: r, hideScrollbar: i, triggerScrollToActiveItem: a, infiniteScroll: o } = t, s = _(null), c = Zr({
|
|
6249
6249
|
count: e.length,
|
|
6250
6250
|
getScrollElement: () => s.current,
|
|
@@ -6277,9 +6277,9 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6277
6277
|
children: n({ virtualizer: c })
|
|
6278
6278
|
})
|
|
6279
6279
|
});
|
|
6280
|
-
},
|
|
6280
|
+
}, Id = ({ items: e, scrollDetails: t, children: n }) => {
|
|
6281
6281
|
let { scrollable: r, hideScrollbar: i, infiniteScroll: a } = t;
|
|
6282
|
-
return a ? /* @__PURE__ */ S(
|
|
6282
|
+
return a ? /* @__PURE__ */ S(Fd, {
|
|
6283
6283
|
items: e,
|
|
6284
6284
|
scrollDetails: t,
|
|
6285
6285
|
children: ({ virtualizer: e }) => n({ virtualizer: e })
|
|
@@ -6290,7 +6290,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6290
6290
|
children: n({})
|
|
6291
6291
|
})
|
|
6292
6292
|
});
|
|
6293
|
-
},
|
|
6293
|
+
}, Ld = ({ 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 = {
|
|
6294
6294
|
scrollable: !1,
|
|
6295
6295
|
hideScrollbar: !1,
|
|
6296
6296
|
triggerScrollToActiveItem: !1,
|
|
@@ -6303,17 +6303,17 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6303
6303
|
marginBottom: d
|
|
6304
6304
|
},
|
|
6305
6305
|
id: "scrollableDiv",
|
|
6306
|
-
children: [!s && /* @__PURE__ */ S(
|
|
6306
|
+
children: [!s && /* @__PURE__ */ S(Ed, {
|
|
6307
6307
|
name: e.name,
|
|
6308
6308
|
actions: e.actions,
|
|
6309
6309
|
toggleNarrow: i,
|
|
6310
6310
|
onToggleNarrow: a,
|
|
6311
6311
|
stickyHeader: c
|
|
6312
|
-
}), /* @__PURE__ */ S(
|
|
6312
|
+
}), /* @__PURE__ */ S(Pd, {
|
|
6313
6313
|
draggable: l,
|
|
6314
6314
|
list: e,
|
|
6315
6315
|
onListReorder: u,
|
|
6316
|
-
children: /* @__PURE__ */ S(
|
|
6316
|
+
children: /* @__PURE__ */ S(Id, {
|
|
6317
6317
|
items: e.items,
|
|
6318
6318
|
scrollDetails: m,
|
|
6319
6319
|
children: ({ virtualizer: t }) => t ? t.getVirtualItems().map((r) => /* @__PURE__ */ S("div", {
|
|
@@ -6321,14 +6321,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6321
6321
|
className: Z.virtualRow,
|
|
6322
6322
|
style: { transform: `translateY(${r.start}px)` },
|
|
6323
6323
|
ref: t.measureElement,
|
|
6324
|
-
children: /* @__PURE__ */ S(
|
|
6324
|
+
children: /* @__PURE__ */ S(Nd, {
|
|
6325
6325
|
index: r.index,
|
|
6326
6326
|
draggable: l,
|
|
6327
6327
|
item: e.items[r.index],
|
|
6328
6328
|
expanding: n,
|
|
6329
6329
|
invokeEditOnRowClick: o
|
|
6330
6330
|
})
|
|
6331
|
-
}, r.key)) : e.items.map((e, t) => /* @__PURE__ */ S("div", { children: /* @__PURE__ */ S(
|
|
6331
|
+
}, r.key)) : e.items.map((e, t) => /* @__PURE__ */ S("div", { children: /* @__PURE__ */ S(Nd, {
|
|
6332
6332
|
index: t,
|
|
6333
6333
|
draggable: l,
|
|
6334
6334
|
item: e,
|
|
@@ -6337,7 +6337,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6337
6337
|
}) }, t))
|
|
6338
6338
|
})
|
|
6339
6339
|
})]
|
|
6340
|
-
}),
|
|
6340
|
+
}), Rd = {
|
|
6341
6341
|
loader: "_loader_477i5_1",
|
|
6342
6342
|
fullViewPortSize: "_fullViewPortSize_477i5_7",
|
|
6343
6343
|
cover: "_cover_477i5_14",
|
|
@@ -6345,33 +6345,33 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6345
6345
|
content: "_content_477i5_44",
|
|
6346
6346
|
text: "_text_477i5_49",
|
|
6347
6347
|
details: "_details_477i5_53"
|
|
6348
|
-
},
|
|
6348
|
+
}, zd = ({ width: e, height: t, text: n = "", details: r = "", fullViewPortSize: i = !1, cover: a = !1, children: o = null, theme: s = Mi.DARK, testId: c = null }) => {
|
|
6349
6349
|
let l = s === Mi.DARK ? Mi.WHITE : Mi.INHERIT, u = s === "white" ? "var(--color-background-raised)" : s === "light" ? "var(--color-background)" : "black";
|
|
6350
6350
|
return /* @__PURE__ */ S("div", {
|
|
6351
|
-
className: b(
|
|
6351
|
+
className: b(Rd.loader, a ? Rd.cover : "", { [Rd.fullViewPortSize]: i }),
|
|
6352
6352
|
style: {
|
|
6353
6353
|
width: e,
|
|
6354
6354
|
height: t
|
|
6355
6355
|
},
|
|
6356
6356
|
"data-testid": c,
|
|
6357
6357
|
children: /* @__PURE__ */ S("div", {
|
|
6358
|
-
className:
|
|
6358
|
+
className: Rd.dimmer,
|
|
6359
6359
|
style: {
|
|
6360
6360
|
background: u,
|
|
6361
6361
|
color: l
|
|
6362
6362
|
},
|
|
6363
6363
|
children: /* @__PURE__ */ C("div", {
|
|
6364
|
-
className:
|
|
6364
|
+
className: Rd.content,
|
|
6365
6365
|
"data-testid": c && `${c}-content`,
|
|
6366
6366
|
children: [
|
|
6367
6367
|
o,
|
|
6368
6368
|
n && /* @__PURE__ */ S("div", {
|
|
6369
|
-
className:
|
|
6369
|
+
className: Rd.text,
|
|
6370
6370
|
"data-testid": c && `${c}-text`,
|
|
6371
6371
|
children: n
|
|
6372
6372
|
}),
|
|
6373
6373
|
r && /* @__PURE__ */ S("div", {
|
|
6374
|
-
className:
|
|
6374
|
+
className: Rd.details,
|
|
6375
6375
|
"data-testid": c && `${c}-details`,
|
|
6376
6376
|
children: r
|
|
6377
6377
|
})
|
|
@@ -6379,15 +6379,15 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6379
6379
|
})
|
|
6380
6380
|
})
|
|
6381
6381
|
});
|
|
6382
|
-
},
|
|
6382
|
+
}, Bd = {
|
|
6383
6383
|
menu: "_menu_12x4u_1",
|
|
6384
6384
|
header: "_header_12x4u_11",
|
|
6385
6385
|
item: "_item_12x4u_27",
|
|
6386
6386
|
heading: "_heading_12x4u_32"
|
|
6387
|
-
},
|
|
6387
|
+
}, Vd = ({ option: e, onChange: t }) => {
|
|
6388
6388
|
let { key: n, selected: r, label: i, disabled: a, testId: o, helpText: s, onClickHelp: c, textTransform: l } = e;
|
|
6389
6389
|
return /* @__PURE__ */ S("div", {
|
|
6390
|
-
className:
|
|
6390
|
+
className: Bd.item,
|
|
6391
6391
|
children: /* @__PURE__ */ S(ha, {
|
|
6392
6392
|
label: i,
|
|
6393
6393
|
noMargin: !0,
|
|
@@ -6400,21 +6400,21 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6400
6400
|
textTransform: l
|
|
6401
6401
|
})
|
|
6402
6402
|
}, n);
|
|
6403
|
-
},
|
|
6404
|
-
className:
|
|
6403
|
+
}, Hd = ({ label: e }) => /* @__PURE__ */ S("div", {
|
|
6404
|
+
className: Bd.heading,
|
|
6405
6405
|
children: e
|
|
6406
|
-
}),
|
|
6406
|
+
}), Ud = /* @__PURE__ */ function(e) {
|
|
6407
6407
|
return e.HEADING = "Heading", e.DIVIDER = "Divider", e.DEFAULT = "Default", e;
|
|
6408
|
-
}({}),
|
|
6409
|
-
className: b("menu",
|
|
6408
|
+
}({}), Wd = (e) => e.type !== Ud.HEADING && e.type !== Ud.DIVIDER && !e.disabled, Gd = ({ options: e, onChangeOptions: t, showHeader: n, maxHeight: r, testId: i }) => /* @__PURE__ */ C("div", {
|
|
6409
|
+
className: b("menu", Bd.menu),
|
|
6410
6410
|
style: { maxHeight: r },
|
|
6411
6411
|
"data-testid": i ? `${i}-option-dropdown-layer` : void 0,
|
|
6412
6412
|
children: [n && /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ C("div", {
|
|
6413
|
-
className:
|
|
6413
|
+
className: Bd.header,
|
|
6414
6414
|
children: [
|
|
6415
6415
|
/* @__PURE__ */ S("a", {
|
|
6416
6416
|
onClick: (n) => {
|
|
6417
|
-
t(n, e.map((e) =>
|
|
6417
|
+
t(n, e.map((e) => Wd(e) ? {
|
|
6418
6418
|
...e,
|
|
6419
6419
|
selected: !0
|
|
6420
6420
|
} : e));
|
|
@@ -6423,7 +6423,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6423
6423
|
}),
|
|
6424
6424
|
/* @__PURE__ */ S("a", {
|
|
6425
6425
|
onClick: (n) => {
|
|
6426
|
-
t(n, e.map((e) =>
|
|
6426
|
+
t(n, e.map((e) => Wd(e) ? {
|
|
6427
6427
|
...e,
|
|
6428
6428
|
selected: !1
|
|
6429
6429
|
} : e));
|
|
@@ -6432,7 +6432,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6432
6432
|
}),
|
|
6433
6433
|
/* @__PURE__ */ S("a", {
|
|
6434
6434
|
onClick: (n) => {
|
|
6435
|
-
t(n, e.map((e) =>
|
|
6435
|
+
t(n, e.map((e) => Wd(e) ? {
|
|
6436
6436
|
...e,
|
|
6437
6437
|
selected: !e.selected
|
|
6438
6438
|
} : e));
|
|
@@ -6442,19 +6442,19 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6442
6442
|
]
|
|
6443
6443
|
}), /* @__PURE__ */ S(Zo, { margin: 0 })] }), e.map((n, r) => {
|
|
6444
6444
|
switch (n.type) {
|
|
6445
|
-
case
|
|
6445
|
+
case Ud.HEADING:
|
|
6446
6446
|
var i;
|
|
6447
|
-
return /* @__PURE__ */ S(
|
|
6448
|
-
case
|
|
6447
|
+
return /* @__PURE__ */ S(Hd, { label: n.label }, (i = n.key) == null ? r : i);
|
|
6448
|
+
case Ud.DIVIDER:
|
|
6449
6449
|
var a;
|
|
6450
6450
|
return /* @__PURE__ */ S(Zo, { margin: 0 }, (a = n.key) == null ? r : a);
|
|
6451
6451
|
default:
|
|
6452
6452
|
var o;
|
|
6453
|
-
return /* @__PURE__ */ S(
|
|
6453
|
+
return /* @__PURE__ */ S(Vd, {
|
|
6454
6454
|
option: n,
|
|
6455
6455
|
onChange: (r) => {
|
|
6456
6456
|
let { value: i } = n;
|
|
6457
|
-
t(r, e.map((e) => e.type ===
|
|
6457
|
+
t(r, e.map((e) => e.type === Ud.HEADING || e.type === Ud.DIVIDER || e.value !== i ? e : {
|
|
6458
6458
|
...e,
|
|
6459
6459
|
selected: !e.selected
|
|
6460
6460
|
}));
|
|
@@ -6462,7 +6462,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6462
6462
|
}, (o = n.key) == null ? r : o);
|
|
6463
6463
|
}
|
|
6464
6464
|
})]
|
|
6465
|
-
}),
|
|
6465
|
+
}), Kd = ({ name: e, disabled: t, label: n, options: r, onChange: i, small: a = !1, showHeader: o = !0, maxHeight: s = "40vh", testId: c }) => /* @__PURE__ */ S(lo, {
|
|
6466
6466
|
testId: c,
|
|
6467
6467
|
disabled: t,
|
|
6468
6468
|
menu: {
|
|
@@ -6470,7 +6470,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6470
6470
|
small: a,
|
|
6471
6471
|
label: n,
|
|
6472
6472
|
trigger: Di.DROP_DOWN_BUTTON,
|
|
6473
|
-
sections: /* @__PURE__ */ S(
|
|
6473
|
+
sections: /* @__PURE__ */ S(Gd, {
|
|
6474
6474
|
testId: c,
|
|
6475
6475
|
options: r,
|
|
6476
6476
|
onChangeOptions: (t, n) => {
|
|
@@ -6480,13 +6480,13 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6480
6480
|
maxHeight: s
|
|
6481
6481
|
})
|
|
6482
6482
|
}
|
|
6483
|
-
}),
|
|
6483
|
+
}), qd = {
|
|
6484
6484
|
page: "_page_beskc_1",
|
|
6485
6485
|
scroll: "_scroll_beskc_23"
|
|
6486
|
-
},
|
|
6486
|
+
}, Jd = ({ children: e, left: t = "var(--size-sidebar)", padding: n = !0, scroll: r = !0, top: i = "var(--size-topbar)" }) => {
|
|
6487
6487
|
let a = typeof n == "string" ? n : n === !0 ? "var(--padding)" : "0";
|
|
6488
6488
|
return /* @__PURE__ */ S("div", {
|
|
6489
|
-
className: b(
|
|
6489
|
+
className: b(qd.page, r ? qd.scroll : ""),
|
|
6490
6490
|
style: {
|
|
6491
6491
|
left: t,
|
|
6492
6492
|
padding: a,
|
|
@@ -6494,17 +6494,17 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6494
6494
|
},
|
|
6495
6495
|
children: e
|
|
6496
6496
|
});
|
|
6497
|
-
},
|
|
6497
|
+
}, Yd = ({ id: e, children: t }) => {
|
|
6498
6498
|
let n = document.querySelector(`#${e}`), [r, i] = v(!1);
|
|
6499
6499
|
return m(() => {
|
|
6500
6500
|
r || i(!0);
|
|
6501
6501
|
}, [e]), n ? qr(t, n) : null;
|
|
6502
|
-
},
|
|
6502
|
+
}, Xd = { printHeader: "_printHeader_o7xxx_1" }, Zd = ({ logo: e, alt: t, logoWidth: n = "100px" }) => /* @__PURE__ */ S("img", {
|
|
6503
6503
|
src: e,
|
|
6504
6504
|
alt: t,
|
|
6505
|
-
className:
|
|
6505
|
+
className: Xd.printHeader,
|
|
6506
6506
|
style: { width: n }
|
|
6507
|
-
}),
|
|
6507
|
+
}), Qd = ({ name: e, label: t, options: n, value: r, onChange: i, disabled: a = !1, small: o = !1, noMargin: s = !1, inline: c = !1, testId: l }) => {
|
|
6508
6508
|
var d;
|
|
6509
6509
|
let f = u(W), { simpleInputs: p, options: m, selectedOptions: h } = $c(n, r), g = h == null ? void 0 : p ? h : h.value, _ = a || f;
|
|
6510
6510
|
return /* @__PURE__ */ C(Gr, {
|
|
@@ -6524,15 +6524,15 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6524
6524
|
} });
|
|
6525
6525
|
},
|
|
6526
6526
|
isDisabled: _,
|
|
6527
|
-
className:
|
|
6527
|
+
className: Bl.wrapper,
|
|
6528
6528
|
"data-testid": l,
|
|
6529
6529
|
children: [t && /* @__PURE__ */ S(Hr, {
|
|
6530
|
-
className:
|
|
6530
|
+
className: Bl.groupLabel,
|
|
6531
6531
|
children: t
|
|
6532
6532
|
}), m.map((e) => {
|
|
6533
6533
|
var t, n;
|
|
6534
6534
|
let r = a || e.disabled || f;
|
|
6535
|
-
return /* @__PURE__ */ S(
|
|
6535
|
+
return /* @__PURE__ */ S(Vl, {
|
|
6536
6536
|
value: e.value,
|
|
6537
6537
|
label: e.label,
|
|
6538
6538
|
disabled: r,
|
|
@@ -6545,40 +6545,40 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6545
6545
|
}, (t = (n = e.value) == null ? void 0 : n.toString()) == null ? "" : t);
|
|
6546
6546
|
})]
|
|
6547
6547
|
});
|
|
6548
|
-
},
|
|
6548
|
+
}, $d = {
|
|
6549
6549
|
richTextToolbar: "_richTextToolbar_1gbkk_1",
|
|
6550
6550
|
richTextToolbarContainer: "_richTextToolbarContainer_1gbkk_5"
|
|
6551
|
-
},
|
|
6551
|
+
}, ef = /* @__PURE__ */ function(e) {
|
|
6552
6552
|
return e.BOLD = "bold", e.ITALIC = "italic", e.CODE = "code", e.UL = "ul", e.OL = "ol", e.MENTION = "at", e;
|
|
6553
|
-
}({}),
|
|
6553
|
+
}({}), tf = ({ editor: e, disabled: t = !1, showMentionButton: n = !1, toolbarComponent: r = null, testId: i }) => {
|
|
6554
6554
|
var a, o, s, c, l;
|
|
6555
6555
|
let u = [
|
|
6556
6556
|
{
|
|
6557
|
-
icon:
|
|
6557
|
+
icon: ef.BOLD,
|
|
6558
6558
|
onClick: () => e == null ? void 0 : e.chain().focus().toggleBold().run(),
|
|
6559
6559
|
active: (a = e == null ? void 0 : e.isActive("bold")) != null && a,
|
|
6560
6560
|
testId: "bold"
|
|
6561
6561
|
},
|
|
6562
6562
|
{
|
|
6563
|
-
icon:
|
|
6563
|
+
icon: ef.ITALIC,
|
|
6564
6564
|
onClick: () => e == null ? void 0 : e.chain().focus().toggleItalic().run(),
|
|
6565
6565
|
active: (o = e == null ? void 0 : e.isActive("italic")) != null && o,
|
|
6566
6566
|
testId: "italic"
|
|
6567
6567
|
},
|
|
6568
6568
|
{
|
|
6569
|
-
icon:
|
|
6569
|
+
icon: ef.CODE,
|
|
6570
6570
|
onClick: () => e == null ? void 0 : e.chain().focus().toggleCode().run(),
|
|
6571
6571
|
active: (s = e == null ? void 0 : e.isActive("code")) != null && s,
|
|
6572
6572
|
testId: "code"
|
|
6573
6573
|
},
|
|
6574
6574
|
{
|
|
6575
|
-
icon:
|
|
6575
|
+
icon: ef.UL,
|
|
6576
6576
|
onClick: () => e == null ? void 0 : e.chain().focus().toggleBulletList().run(),
|
|
6577
6577
|
active: (c = e == null ? void 0 : e.isActive("bulletList")) != null && c,
|
|
6578
6578
|
testId: "bulletList"
|
|
6579
6579
|
},
|
|
6580
6580
|
{
|
|
6581
|
-
icon:
|
|
6581
|
+
icon: ef.OL,
|
|
6582
6582
|
onClick: () => e == null ? void 0 : e.chain().focus().toggleOrderedList().run(),
|
|
6583
6583
|
active: (l = e == null ? void 0 : e.isActive("orderedList")) != null && l,
|
|
6584
6584
|
testId: "orderedList"
|
|
@@ -6587,17 +6587,17 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6587
6587
|
if (n) {
|
|
6588
6588
|
var d;
|
|
6589
6589
|
u.push({
|
|
6590
|
-
icon:
|
|
6590
|
+
icon: ef.MENTION,
|
|
6591
6591
|
onClick: () => e == null ? void 0 : e.chain().focus().insertContent("@").run(),
|
|
6592
6592
|
active: (d = e == null ? void 0 : e.isActive("mention")) != null && d,
|
|
6593
6593
|
testId: "mention"
|
|
6594
6594
|
});
|
|
6595
6595
|
}
|
|
6596
6596
|
return /* @__PURE__ */ C("div", {
|
|
6597
|
-
className:
|
|
6597
|
+
className: $d.richTextToolbarContainer,
|
|
6598
6598
|
"data-testid": i,
|
|
6599
6599
|
children: [/* @__PURE__ */ S("div", {
|
|
6600
|
-
className:
|
|
6600
|
+
className: $d.richTextToolbar,
|
|
6601
6601
|
children: u.map((e, n) => /* @__PURE__ */ S(q, {
|
|
6602
6602
|
small: !0,
|
|
6603
6603
|
round: !0,
|
|
@@ -6611,36 +6611,36 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6611
6611
|
}, n))
|
|
6612
6612
|
}), r]
|
|
6613
6613
|
});
|
|
6614
|
-
},
|
|
6615
|
-
let t =
|
|
6614
|
+
}, nf = 8, rf = /^\[@((?:\\.|[^\\\]])*)\]\(mention:((?:\\.|[^\\)])+)\)/, af = (e) => e.replace(/[\\\][()]/g, "\\$&"), of = (e) => e.replace(/\\(.)/g, "$1"), sf = (e) => typeof e == "string" ? e : "", cf = (e) => {
|
|
6615
|
+
let t = rf.exec(e);
|
|
6616
6616
|
if (!t) return;
|
|
6617
6617
|
let [n, r, i] = t;
|
|
6618
6618
|
return {
|
|
6619
6619
|
raw: n,
|
|
6620
|
-
id:
|
|
6621
|
-
label:
|
|
6620
|
+
id: of(i),
|
|
6621
|
+
label: of(r)
|
|
6622
6622
|
};
|
|
6623
|
-
},
|
|
6623
|
+
}, lf = (e) => {
|
|
6624
6624
|
if (!e) return [];
|
|
6625
6625
|
let t = /* @__PURE__ */ new Set();
|
|
6626
6626
|
return e.state.doc.descendants((e) => {
|
|
6627
6627
|
e.type.name === mi.name && typeof e.attrs.id == "string" && t.add(e.attrs.id);
|
|
6628
6628
|
}), [...t];
|
|
6629
|
-
},
|
|
6629
|
+
}, uf = (e, t) => `[@${af(e)}](mention:${af(t)})`, df = (e, t) => mi.extend({
|
|
6630
6630
|
renderMarkdown: (e) => {
|
|
6631
6631
|
var t, n;
|
|
6632
|
-
return
|
|
6632
|
+
return uf(sf((t = e.attrs) == null ? void 0 : t.label), sf((n = e.attrs) == null ? void 0 : n.id));
|
|
6633
6633
|
},
|
|
6634
6634
|
parseMarkdown: (e, t) => t.createNode(mi.name, {
|
|
6635
|
-
id:
|
|
6636
|
-
label:
|
|
6635
|
+
id: sf(e.id),
|
|
6636
|
+
label: sf(e.label)
|
|
6637
6637
|
}),
|
|
6638
6638
|
markdownTokenizer: {
|
|
6639
6639
|
name: mi.name,
|
|
6640
6640
|
level: "inline",
|
|
6641
6641
|
start: (e) => e.indexOf("[@"),
|
|
6642
6642
|
tokenize: (e) => {
|
|
6643
|
-
let t =
|
|
6643
|
+
let t = cf(e);
|
|
6644
6644
|
return t && {
|
|
6645
6645
|
type: mi.name,
|
|
6646
6646
|
...t
|
|
@@ -6656,11 +6656,11 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6656
6656
|
var r;
|
|
6657
6657
|
let i = e();
|
|
6658
6658
|
if (!i) return [];
|
|
6659
|
-
let a = new Set(
|
|
6660
|
-
return (await i.getItems(t)).filter(({ id: e }) => !a.has(e)).slice(0, (r = i.maxItems) == null ?
|
|
6659
|
+
let a = new Set(lf(n));
|
|
6660
|
+
return (await i.getItems(t)).filter(({ id: e }) => !a.has(e)).slice(0, (r = i.maxItems) == null ? nf : r);
|
|
6661
6661
|
},
|
|
6662
6662
|
render: t
|
|
6663
|
-
} }),
|
|
6663
|
+
} }), ff = {
|
|
6664
6664
|
inputInTable: "_inputInTable_1xhvx_1",
|
|
6665
6665
|
inputHover: "_inputHover_1xhvx_13",
|
|
6666
6666
|
inputFocus: "_inputFocus_1xhvx_18",
|
|
@@ -6675,7 +6675,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6675
6675
|
mentionLayer: "_mentionLayer_1xhvx_133",
|
|
6676
6676
|
mentionOption: "_mentionOption_1xhvx_144",
|
|
6677
6677
|
focused: "_focused_1xhvx_150"
|
|
6678
|
-
},
|
|
6678
|
+
}, pf = o(({ editable: e, getRect: t, items: n, onDismiss: r, onSelect: i }, a) => {
|
|
6679
6679
|
let [o, s] = v(0), c = n.length > 0, u = f(), m = l((e) => `${u}-option-${e}`, [u]), { renderLayer: g, layerProps: y, triggerProps: x } = ca({
|
|
6680
6680
|
isOpen: c,
|
|
6681
6681
|
placement: "bottom-start",
|
|
@@ -6737,14 +6737,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6737
6737
|
i
|
|
6738
6738
|
]), c ? g(/* @__PURE__ */ S("div", {
|
|
6739
6739
|
...y,
|
|
6740
|
-
className:
|
|
6740
|
+
className: ff.mentionLayer,
|
|
6741
6741
|
id: u,
|
|
6742
6742
|
role: "listbox",
|
|
6743
6743
|
children: n.map((e, t) => /* @__PURE__ */ S("div", {
|
|
6744
6744
|
id: m(t),
|
|
6745
6745
|
role: "option",
|
|
6746
6746
|
"aria-selected": t === o,
|
|
6747
|
-
className: b(
|
|
6747
|
+
className: b(ff.mentionOption, { [ff.focused]: t === o }),
|
|
6748
6748
|
onMouseEnter: () => s(t),
|
|
6749
6749
|
onMouseDown: (t) => {
|
|
6750
6750
|
t.preventDefault(), i(e);
|
|
@@ -6752,12 +6752,12 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6752
6752
|
children: e.label
|
|
6753
6753
|
}, e.id))
|
|
6754
6754
|
})) : null;
|
|
6755
|
-
}),
|
|
6755
|
+
}), mf = ({ clientRect: e, command: t, editor: n, items: r }) => ({
|
|
6756
6756
|
clientRect: e,
|
|
6757
6757
|
command: t,
|
|
6758
6758
|
items: r,
|
|
6759
6759
|
editable: n.view.dom
|
|
6760
|
-
}),
|
|
6760
|
+
}), hf = c(o(({ placeholder: e, onChange: t, value: n, disabled: r, toolbarComponent: i, mentions: a, testId: o }, s) => {
|
|
6761
6761
|
var c, l, f, m;
|
|
6762
6762
|
let g = u(W), y = r || g, b = !!a, x = _(a), w = _(null), T = _(n == null ? "" : n), [E, D] = v(null);
|
|
6763
6763
|
d(() => {
|
|
@@ -6767,9 +6767,9 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6767
6767
|
di,
|
|
6768
6768
|
fi.configure({ placeholder: e }),
|
|
6769
6769
|
pi,
|
|
6770
|
-
|
|
6771
|
-
onStart: (e) => D(
|
|
6772
|
-
onUpdate: (e) => D(
|
|
6770
|
+
df(() => x.current, () => ({
|
|
6771
|
+
onStart: (e) => D(mf(e)),
|
|
6772
|
+
onUpdate: (e) => D(mf(e)),
|
|
6773
6773
|
onExit: () => D(null),
|
|
6774
6774
|
onKeyDown: ({ event: e }) => {
|
|
6775
6775
|
var t, n;
|
|
@@ -6781,9 +6781,9 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6781
6781
|
content: T.current,
|
|
6782
6782
|
contentType: "markdown",
|
|
6783
6783
|
editable: !y,
|
|
6784
|
-
editorProps: { attributes: { class:
|
|
6784
|
+
editorProps: { attributes: { class: ff.editable } },
|
|
6785
6785
|
onUpdate: ({ editor: e }) => {
|
|
6786
|
-
t == null || t(e.getMarkdown(), { mentionedIds:
|
|
6786
|
+
t == null || t(e.getMarkdown(), { mentionedIds: lf(e) });
|
|
6787
6787
|
}
|
|
6788
6788
|
});
|
|
6789
6789
|
return d(() => {
|
|
@@ -6796,12 +6796,12 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6796
6796
|
}, [y, k]), p(s, () => ({
|
|
6797
6797
|
clearContent: () => k == null ? void 0 : k.commands.clearContent(!1),
|
|
6798
6798
|
editor: k,
|
|
6799
|
-
getMentionedIds: () =>
|
|
6799
|
+
getMentionedIds: () => lf(k)
|
|
6800
6800
|
}), [k]), /* @__PURE__ */ C("div", {
|
|
6801
|
-
className:
|
|
6801
|
+
className: ff.richTextInput,
|
|
6802
6802
|
"data-testid": o,
|
|
6803
6803
|
children: [
|
|
6804
|
-
/* @__PURE__ */ S(
|
|
6804
|
+
/* @__PURE__ */ S(tf, {
|
|
6805
6805
|
editor: k,
|
|
6806
6806
|
disabled: y,
|
|
6807
6807
|
showMentionButton: b && ((c = a == null ? void 0 : a.showMentionButton) == null || c),
|
|
@@ -6812,7 +6812,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6812
6812
|
editor: k,
|
|
6813
6813
|
"data-testid": o && `${o}-editor`
|
|
6814
6814
|
}),
|
|
6815
|
-
b && /* @__PURE__ */ S($i, { children: /* @__PURE__ */ S(
|
|
6815
|
+
b && /* @__PURE__ */ S($i, { children: /* @__PURE__ */ S(pf, {
|
|
6816
6816
|
ref: w,
|
|
6817
6817
|
editable: (l = E == null ? void 0 : E.editable) == null ? null : l,
|
|
6818
6818
|
getRect: (f = E == null ? void 0 : E.clientRect) == null ? null : f,
|
|
@@ -6822,13 +6822,13 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6822
6822
|
}) })
|
|
6823
6823
|
]
|
|
6824
6824
|
});
|
|
6825
|
-
})),
|
|
6826
|
-
className:
|
|
6825
|
+
})), gf = ({ children: e }) => /* @__PURE__ */ S("span", {
|
|
6826
|
+
className: ff.mention,
|
|
6827
6827
|
children: e
|
|
6828
|
-
}),
|
|
6828
|
+
}), _f = { row: "_row_n16je_1" }, vf = ({ alignItems: t = "initial", justifyContent: r = "initial", children: i = null, flex: a = !1, height: o = "auto", marginBottom: c = "0", marginTop: l = "0", spacing: u = "var(--padding)", wrap: d = !1, testId: f = null }) => {
|
|
6829
6829
|
let p = typeof u == "number" ? `${u}px` : u, m = (i === null || i === !1 ? [] : Array.isArray(i) ? i.filter((e) => s(e)) : [i]).map((t, r) => /* @__PURE__ */ S(n, { children: t.type === Ko ? e.cloneElement(t, { spacing: p }) : t }, r));
|
|
6830
6830
|
return /* @__PURE__ */ S("div", {
|
|
6831
|
-
className: b(
|
|
6831
|
+
className: b(_f.row),
|
|
6832
6832
|
style: {
|
|
6833
6833
|
alignItems: t,
|
|
6834
6834
|
justifyContent: r,
|
|
@@ -6844,7 +6844,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6844
6844
|
"data-testid": f,
|
|
6845
6845
|
children: m
|
|
6846
6846
|
});
|
|
6847
|
-
},
|
|
6847
|
+
}, yf = {
|
|
6848
6848
|
inputInTable: "_inputInTable_t1w93_1",
|
|
6849
6849
|
inputHover: "_inputHover_t1w93_13",
|
|
6850
6850
|
inputFocus: "_inputFocus_t1w93_18",
|
|
@@ -6864,7 +6864,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6864
6864
|
experimental: "_experimental_t1w93_159",
|
|
6865
6865
|
active: "_active_t1w93_163",
|
|
6866
6866
|
icon: "_icon_t1w93_167"
|
|
6867
|
-
},
|
|
6867
|
+
}, bf = c(({ isOpen: e, label: t, icon: n, invalid: r }) => /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(K, {
|
|
6868
6868
|
text: t,
|
|
6869
6869
|
enabled: !e,
|
|
6870
6870
|
placement: "right-center",
|
|
@@ -6873,7 +6873,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6873
6873
|
padding: "var(--padding-sm)",
|
|
6874
6874
|
display: "block",
|
|
6875
6875
|
children: /* @__PURE__ */ S("span", {
|
|
6876
|
-
className:
|
|
6876
|
+
className: yf.icon,
|
|
6877
6877
|
children: /* @__PURE__ */ S(no, {
|
|
6878
6878
|
small: !0,
|
|
6879
6879
|
title: r ? "!" : void 0,
|
|
@@ -6882,18 +6882,18 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6882
6882
|
})
|
|
6883
6883
|
})
|
|
6884
6884
|
}), /* @__PURE__ */ S("span", {
|
|
6885
|
-
className:
|
|
6885
|
+
className: yf.label,
|
|
6886
6886
|
children: t
|
|
6887
|
-
})] }), (e, t) => Vr(e, t)),
|
|
6888
|
-
className:
|
|
6887
|
+
})] }), (e, t) => Vr(e, t)), xf = ({ isOpen: e, items: t, sectionIndex: n, onClick: r, testId: i }) => /* @__PURE__ */ S("div", {
|
|
6888
|
+
className: yf.list,
|
|
6889
6889
|
children: t.map((t, a) => {
|
|
6890
6890
|
let o = `${n}_${a}`;
|
|
6891
6891
|
return /* @__PURE__ */ S("a", {
|
|
6892
6892
|
href: t.value,
|
|
6893
|
-
className: b(
|
|
6893
|
+
className: b(yf.item, t.isActive ? yf.active : "", t.isExperimental ? yf.experimental : ""),
|
|
6894
6894
|
onClick: (e) => r(e, t.value, t.label, t.onClick),
|
|
6895
6895
|
"data-testid": i,
|
|
6896
|
-
children: /* @__PURE__ */ S(
|
|
6896
|
+
children: /* @__PURE__ */ S(bf, {
|
|
6897
6897
|
label: t.label,
|
|
6898
6898
|
icon: t.icon,
|
|
6899
6899
|
invalid: t.invalid,
|
|
@@ -6901,16 +6901,16 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6901
6901
|
}, o)
|
|
6902
6902
|
}, o);
|
|
6903
6903
|
})
|
|
6904
|
-
}),
|
|
6905
|
-
className:
|
|
6904
|
+
}), Sf = ({ isOpen: t, sections: n, onClick: r }) => /* @__PURE__ */ S(x, { children: n.map((n, i) => /* @__PURE__ */ C(e.Fragment, { children: [/* @__PURE__ */ S("h5", {
|
|
6905
|
+
className: yf.subtitle,
|
|
6906
6906
|
children: n.heading.toUpperCase()
|
|
6907
|
-
}), /* @__PURE__ */ S(
|
|
6907
|
+
}), /* @__PURE__ */ S(xf, {
|
|
6908
6908
|
isOpen: t,
|
|
6909
6909
|
items: n.items,
|
|
6910
6910
|
sectionIndex: i,
|
|
6911
6911
|
onClick: r,
|
|
6912
6912
|
testId: n.testId
|
|
6913
|
-
})] }, i)) }),
|
|
6913
|
+
})] }, i)) }), Cf = c(({ options: e, startOpen: t = !1, onShiftClickToggleOpen: n = () => {}, top: r, testId: i }) => {
|
|
6914
6914
|
let [a, o] = v(t), s = (e, t, n, r) => {
|
|
6915
6915
|
e.preventDefault(), typeof r == "function" && (e.currentTarget.value = t, e.currentTarget.label = n, r(e)), o(!1);
|
|
6916
6916
|
}, c = e.sections.length > 0;
|
|
@@ -6933,13 +6933,13 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6933
6933
|
testId: i ? `${i}-toggle` : void 0
|
|
6934
6934
|
}),
|
|
6935
6935
|
children: /* @__PURE__ */ S("div", {
|
|
6936
|
-
className: b(
|
|
6936
|
+
className: b(yf.sidebar, a ? "" : yf.collapsed),
|
|
6937
6937
|
children: c && /* @__PURE__ */ C("div", {
|
|
6938
|
-
className:
|
|
6938
|
+
className: yf.inner,
|
|
6939
6939
|
children: [/* @__PURE__ */ S("h4", {
|
|
6940
|
-
className:
|
|
6940
|
+
className: yf.title,
|
|
6941
6941
|
children: e.title
|
|
6942
|
-
}), /* @__PURE__ */ S(
|
|
6942
|
+
}), /* @__PURE__ */ S(Sf, {
|
|
6943
6943
|
isOpen: a,
|
|
6944
6944
|
sections: e.sections,
|
|
6945
6945
|
onClick: s
|
|
@@ -6947,18 +6947,18 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6947
6947
|
})
|
|
6948
6948
|
})
|
|
6949
6949
|
});
|
|
6950
|
-
}, (e, t) => Vr(e, t)),
|
|
6950
|
+
}, (e, t) => Vr(e, t)), wf = {
|
|
6951
6951
|
skeletonContainer: "_skeletonContainer_mcfxp_9",
|
|
6952
6952
|
skeleton: "_skeleton_mcfxp_9"
|
|
6953
|
-
},
|
|
6953
|
+
}, Tf = ({ count: e, width: t, height: n }) => /* @__PURE__ */ S(hi, {
|
|
6954
6954
|
baseColor: "var(--color-skeleton-base)",
|
|
6955
6955
|
highlightColor: "var(--color-skeleton-highlight)",
|
|
6956
|
-
containerClassName:
|
|
6957
|
-
className:
|
|
6956
|
+
containerClassName: wf.skeletonContainer,
|
|
6957
|
+
className: wf.skeleton,
|
|
6958
6958
|
count: e,
|
|
6959
6959
|
width: t,
|
|
6960
6960
|
height: n
|
|
6961
|
-
}),
|
|
6961
|
+
}), Ef = {
|
|
6962
6962
|
wrapper: "_wrapper_j8x9r_1",
|
|
6963
6963
|
label: "_label_j8x9r_5",
|
|
6964
6964
|
input: "_input_j8x9r_9",
|
|
@@ -6966,38 +6966,38 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6966
6966
|
editable: "_editable_j8x9r_22",
|
|
6967
6967
|
inputControl: "_inputControl_j8x9r_25",
|
|
6968
6968
|
actions: "_actions_j8x9r_28"
|
|
6969
|
-
},
|
|
6969
|
+
}, Df = () => {
|
|
6970
6970
|
let e = _(null);
|
|
6971
6971
|
return m(() => {
|
|
6972
6972
|
e.current && (e.current(), e.current = null);
|
|
6973
6973
|
}), (t) => {
|
|
6974
6974
|
e.current = t;
|
|
6975
6975
|
};
|
|
6976
|
-
},
|
|
6976
|
+
}, Of = (e) => {
|
|
6977
6977
|
let t = _(void 0);
|
|
6978
6978
|
return d(() => {
|
|
6979
6979
|
t.current = e;
|
|
6980
6980
|
}, [e]), t.current;
|
|
6981
|
-
},
|
|
6981
|
+
}, kf = (e, t) => {
|
|
6982
6982
|
let n = t == null ? void 0 : t[e];
|
|
6983
6983
|
if (!n) {
|
|
6984
6984
|
var r;
|
|
6985
6985
|
return console.log(`Warning: 'unitTemplate' missing for '${e}'. Using initial unit, preferred unit or value unit.`), (r = Dr(e)) == null ? "" : r;
|
|
6986
6986
|
}
|
|
6987
6987
|
return n;
|
|
6988
|
-
},
|
|
6988
|
+
}, Af = /* @__PURE__ */ function(e) {
|
|
6989
6989
|
return e.CUSTOM = "custom", e.PREDEFINED = "predefined", e;
|
|
6990
|
-
}({}),
|
|
6990
|
+
}({}), jf = (e) => e === "undefined" || e === void 0 || e === "" || e === "null" || e === null || e === "NaN" || isNaN(e), Mf = (e) => {
|
|
6991
6991
|
if (!e) return !1;
|
|
6992
6992
|
let t = dr(e);
|
|
6993
6993
|
return !ar.includes(t);
|
|
6994
|
-
},
|
|
6994
|
+
}, Nf = ({ value: e, unitkey: t, toUnit: n }) => {
|
|
6995
6995
|
var r;
|
|
6996
6996
|
let i = ir[t];
|
|
6997
6997
|
if (!i || i.length === 0 || !((r = Or(e)) != null && r.valid) || !i.includes(n)) return !1;
|
|
6998
6998
|
let a = dr(String(e));
|
|
6999
6999
|
return !(a && !i.includes(a));
|
|
7000
|
-
},
|
|
7000
|
+
}, Pf = ({ value: e, unitkey: t, toUnit: n, fromUnit: r, doNotConvertValue: i = !1, exactPrecision: a = !1 }) => {
|
|
7001
7001
|
var o;
|
|
7002
7002
|
let s = _r(e) ? pr(e) : e, c = [Infinity, -Infinity].includes(Number(s));
|
|
7003
7003
|
if (i || c) return {
|
|
@@ -7017,13 +7017,13 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7017
7017
|
value: void 0,
|
|
7018
7018
|
error: "Source unit is missing"
|
|
7019
7019
|
};
|
|
7020
|
-
if (
|
|
7020
|
+
if (jf(s)) return {
|
|
7021
7021
|
value: void 0,
|
|
7022
7022
|
error: "Value is invalid for conversion"
|
|
7023
7023
|
};
|
|
7024
7024
|
try {
|
|
7025
7025
|
let e = Ar(s, l);
|
|
7026
|
-
if (
|
|
7026
|
+
if (Nf({
|
|
7027
7027
|
value: e,
|
|
7028
7028
|
toUnit: n,
|
|
7029
7029
|
unitkey: t
|
|
@@ -7044,13 +7044,13 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7044
7044
|
error: "Conversion not possible"
|
|
7045
7045
|
};
|
|
7046
7046
|
}
|
|
7047
|
-
},
|
|
7048
|
-
let a = pr(e), o =
|
|
7049
|
-
return !
|
|
7047
|
+
}, Ff = ({ value: e = "", toUnit: t, unitkey: n, defaultFromUnit: r, doNotConvertValue: i }) => {
|
|
7048
|
+
let a = pr(e), o = jf(a);
|
|
7049
|
+
return !Nf({
|
|
7050
7050
|
value: e,
|
|
7051
7051
|
unitkey: n,
|
|
7052
7052
|
toUnit: t
|
|
7053
|
-
}) ||
|
|
7053
|
+
}) || Mf(e) || o ? { value: a } : _r(e) ? Pf({
|
|
7054
7054
|
value: e,
|
|
7055
7055
|
unitkey: n,
|
|
7056
7056
|
toUnit: t,
|
|
@@ -7058,25 +7058,25 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7058
7058
|
doNotConvertValue: i,
|
|
7059
7059
|
exactPrecision: !0
|
|
7060
7060
|
}) : { value: e };
|
|
7061
|
-
},
|
|
7061
|
+
}, If = (e) => hn(e) && !sn(e) && !fn(e) ? on(e, "fieldName", "") : typeof e == "string" ? e : "", Lf = (e = "") => ar == null ? void 0 : ar.includes(e), Rf = (e, t) => {
|
|
7062
7062
|
let n = dr(e || "");
|
|
7063
|
-
return
|
|
7064
|
-
},
|
|
7065
|
-
|
|
7066
|
-
},
|
|
7063
|
+
return Lf(t) && Lf(n);
|
|
7064
|
+
}, zf = i(null), Bf = () => u(zf), Vf = !1, Hf = (e) => {
|
|
7065
|
+
Vf || (Vf = !0, zf = e);
|
|
7066
|
+
}, Uf = (e) => hr(e) ? e : yr(e), Wf = {
|
|
7067
7067
|
predefinedMenuActive: "_predefinedMenuActive_ye9w9_1",
|
|
7068
7068
|
inputWrapper: "_inputWrapper_ye9w9_4"
|
|
7069
|
-
},
|
|
7069
|
+
}, Gf = ({ 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: l = "", initUnit: u, noConversion: f = !1, onChange: p = yn, onClick: m = yn, onFocus: g = yn, onSwitchUnit: _ = yn, unitTemplate: y, testId: w, warning: T = null, predefinedOptions: E, initialPredefinedOption: D = !1, shouldLinkAutomaticly: O = !0, selectedPredefinedOptionKey: k, validationCallback: A = () => ({
|
|
7070
7070
|
name: "",
|
|
7071
7071
|
error: null
|
|
7072
7072
|
}), 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 }) => {
|
|
7073
|
-
let B =
|
|
7073
|
+
let B = Bf(), ee = Df();
|
|
7074
7074
|
typeof c == "number" && (c = `${c}`);
|
|
7075
|
-
let [te = "", ne = ""] = c === void 0 ? [] : Cr(c), V = h(() =>
|
|
7075
|
+
let [te = "", ne = ""] = c === void 0 ? [] : Cr(c), V = h(() => kf(l, y || (B == null ? void 0 : B.unitTemplate)), [
|
|
7076
7076
|
l,
|
|
7077
7077
|
y,
|
|
7078
7078
|
B == null ? void 0 : B.unitTemplate
|
|
7079
|
-
]), re =
|
|
7079
|
+
]), re = Rf(c, V), ie = u || V || ne, ae = Of(ie), { value: oe } = Ff({
|
|
7080
7080
|
value: c,
|
|
7081
7081
|
toUnit: ie,
|
|
7082
7082
|
unitkey: l,
|
|
@@ -7088,10 +7088,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7088
7088
|
} : {
|
|
7089
7089
|
value: oe,
|
|
7090
7090
|
unit: ie
|
|
7091
|
-
}), le = M || (se == null ? void 0 : se.value) === void 0, [ue, de] = v(D ?
|
|
7091
|
+
}), le = M || (se == null ? void 0 : se.value) === void 0, [ue, de] = v(D ? Af.PREDEFINED : Af.CUSTOM), fe = !!(j || n), pe = E && E.find((e) => {
|
|
7092
7092
|
if (!(e != null && e.value)) return;
|
|
7093
7093
|
if (k) return k === e.valueKey;
|
|
7094
|
-
let t = _r(e.value) ? dr(e.value) : "", { value: n = c } =
|
|
7094
|
+
let t = _r(e.value) ? dr(e.value) : "", { value: n = c } = Pf({
|
|
7095
7095
|
value: String(c),
|
|
7096
7096
|
unitkey: l,
|
|
7097
7097
|
toUnit: t
|
|
@@ -7100,7 +7100,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7100
7100
|
}), me = () => {
|
|
7101
7101
|
var e;
|
|
7102
7102
|
let t = (e = c) == null ? "" : e, n = se.unit;
|
|
7103
|
-
if (!
|
|
7103
|
+
if (!Nf({
|
|
7104
7104
|
value: t,
|
|
7105
7105
|
unitkey: l,
|
|
7106
7106
|
toUnit: n
|
|
@@ -7115,7 +7115,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7115
7115
|
return null;
|
|
7116
7116
|
}
|
|
7117
7117
|
}, he = (t) => {
|
|
7118
|
-
let n =
|
|
7118
|
+
let n = If(e), r = t.target, { value: i, selectionStart: a } = r, o = Ar(i, (se == null ? void 0 : se.unit) || "");
|
|
7119
7119
|
p({ target: {
|
|
7120
7120
|
value: N ? Ar(cr(o, ne), ne) : o,
|
|
7121
7121
|
name: n
|
|
@@ -7134,10 +7134,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7134
7134
|
}), _ && _(t));
|
|
7135
7135
|
};
|
|
7136
7136
|
d(() => {
|
|
7137
|
+
let e, t = "";
|
|
7137
7138
|
if (ie) {
|
|
7138
|
-
let e, t = "";
|
|
7139
7139
|
if (ae !== ie) {
|
|
7140
|
-
let { value: n } =
|
|
7140
|
+
let { value: n } = Ff({
|
|
7141
7141
|
value: c,
|
|
7142
7142
|
toUnit: ie,
|
|
7143
7143
|
unitkey: l,
|
|
@@ -7146,7 +7146,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7146
7146
|
});
|
|
7147
7147
|
e = n, t = ie;
|
|
7148
7148
|
} else if (Ar(se.value, se.unit) !== c) {
|
|
7149
|
-
let { value: n } =
|
|
7149
|
+
let { value: n } = Ff({
|
|
7150
7150
|
value: c,
|
|
7151
7151
|
toUnit: se.unit,
|
|
7152
7152
|
unitkey: l,
|
|
@@ -7155,25 +7155,25 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7155
7155
|
});
|
|
7156
7156
|
e = n, t = se.unit;
|
|
7157
7157
|
}
|
|
7158
|
-
|
|
7159
|
-
|
|
7160
|
-
|
|
7161
|
-
|
|
7162
|
-
}
|
|
7158
|
+
} else (se.value !== te || se.unit !== ne) && (e = te, t = ne);
|
|
7159
|
+
e !== void 0 && ce({
|
|
7160
|
+
value: e,
|
|
7161
|
+
unit: t
|
|
7162
|
+
}), de(E && pe && O ? Af.PREDEFINED : Af.CUSTOM);
|
|
7163
7163
|
}, [
|
|
7164
7164
|
ie,
|
|
7165
7165
|
c,
|
|
7166
7166
|
i,
|
|
7167
7167
|
O
|
|
7168
7168
|
]);
|
|
7169
|
-
let _e = me(), ve = vr(se.unit) || se.unit || "", ye = f || !_e || _e && _e.length === 1, be =
|
|
7169
|
+
let _e = me(), ve = vr(se.unit) || se.unit || "", ye = f || !_e || _e && _e.length === 1, be = If(e), xe, Se = (t) => {
|
|
7170
7170
|
let r = t != null && t.value ? t.value : "", [i = "", a = ""] = _r(r) ? Cr(r) : [r], o = kr(r);
|
|
7171
|
-
if (
|
|
7171
|
+
if (Nf({
|
|
7172
7172
|
value: r,
|
|
7173
7173
|
unitkey: l,
|
|
7174
7174
|
toUnit: a
|
|
7175
7175
|
})) {
|
|
7176
|
-
let { value: e = "" } =
|
|
7176
|
+
let { value: e = "" } = Ff({
|
|
7177
7177
|
value: r,
|
|
7178
7178
|
toUnit: V,
|
|
7179
7179
|
unitkey: l,
|
|
@@ -7186,7 +7186,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7186
7186
|
type: Ga.OPTION,
|
|
7187
7187
|
inline: !0,
|
|
7188
7188
|
onClick: () => {
|
|
7189
|
-
Or(i).valid && !n && (de(
|
|
7189
|
+
Or(i).valid && !n && (de(Af.PREDEFINED), p({ target: {
|
|
7190
7190
|
value: r,
|
|
7191
7191
|
name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || "",
|
|
7192
7192
|
predefinedSelected: !0,
|
|
@@ -7198,27 +7198,27 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7198
7198
|
height: "0"
|
|
7199
7199
|
})] }),
|
|
7200
7200
|
description: o,
|
|
7201
|
-
selected: pe === t && ue ===
|
|
7201
|
+
selected: pe === t && ue === Af.PREDEFINED
|
|
7202
7202
|
};
|
|
7203
7203
|
};
|
|
7204
7204
|
if (xe = [{
|
|
7205
7205
|
type: Ga.OPTION,
|
|
7206
7206
|
inline: !0,
|
|
7207
7207
|
onClick: () => {
|
|
7208
|
-
ue !==
|
|
7208
|
+
ue !== Af.CUSTOM && !n && p({ target: {
|
|
7209
7209
|
value: Ar(se.value, se.unit),
|
|
7210
7210
|
name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || ""
|
|
7211
7211
|
} });
|
|
7212
7212
|
},
|
|
7213
7213
|
label: "Custom",
|
|
7214
|
-
selected: ue ===
|
|
7214
|
+
selected: ue === Af.CUSTOM
|
|
7215
7215
|
}], E != null && E.length) {
|
|
7216
7216
|
let e = E.map(Se);
|
|
7217
7217
|
xe = [...xe, ...e];
|
|
7218
7218
|
}
|
|
7219
7219
|
let Ce = (e) => {
|
|
7220
7220
|
if (_r(e)) {
|
|
7221
|
-
let t = dr(e), { value: n } =
|
|
7221
|
+
let t = dr(e), { value: n } = Ff({
|
|
7222
7222
|
value: e,
|
|
7223
7223
|
toUnit: se.unit,
|
|
7224
7224
|
unitkey: l,
|
|
@@ -7230,7 +7230,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7230
7230
|
return e;
|
|
7231
7231
|
}, we = !E && (!R || R === H.FIRST) ? H.FIRST : H.MIDDLE, Te = !R || R === H.LAST ? H.LAST : H.MIDDLE;
|
|
7232
7232
|
return /* @__PURE__ */ S("div", {
|
|
7233
|
-
className: ue ===
|
|
7233
|
+
className: ue === Af.PREDEFINED ? b(Wf.predefinedMenuActive) : "",
|
|
7234
7234
|
children: /* @__PURE__ */ C(ps, {
|
|
7235
7235
|
small: o,
|
|
7236
7236
|
width: s,
|
|
@@ -7245,18 +7245,18 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7245
7245
|
trigger: "Component",
|
|
7246
7246
|
component: /* @__PURE__ */ S(q, {
|
|
7247
7247
|
groupOrder: "first",
|
|
7248
|
-
active: ue ===
|
|
7249
|
-
icon: ue ===
|
|
7248
|
+
active: ue === Af.PREDEFINED,
|
|
7249
|
+
icon: ue === Af.PREDEFINED ? "link" : "unlink",
|
|
7250
7250
|
small: o
|
|
7251
7251
|
}),
|
|
7252
7252
|
small: o,
|
|
7253
7253
|
sections: xe
|
|
7254
7254
|
},
|
|
7255
|
-
tooltip: ue ===
|
|
7255
|
+
tooltip: ue === Af.PREDEFINED ? pe == null ? void 0 : pe.label : ""
|
|
7256
7256
|
}),
|
|
7257
7257
|
/* @__PURE__ */ S("div", {
|
|
7258
|
-
className:
|
|
7259
|
-
children: /* @__PURE__ */ S(
|
|
7258
|
+
className: Wf.inputWrapper,
|
|
7259
|
+
children: /* @__PURE__ */ S(xl, {
|
|
7260
7260
|
name: be,
|
|
7261
7261
|
testId: w,
|
|
7262
7262
|
disabled: n,
|
|
@@ -7297,7 +7297,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7297
7297
|
let r = n || t || "", i = gr(e) ? e : "";
|
|
7298
7298
|
return {
|
|
7299
7299
|
type: "Option",
|
|
7300
|
-
label: P ?
|
|
7300
|
+
label: P ? Uf(i) : i,
|
|
7301
7301
|
inline: !0,
|
|
7302
7302
|
onClick: (n) => {
|
|
7303
7303
|
n.stopPropagation(), ge(e, t);
|
|
@@ -7312,10 +7312,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7312
7312
|
]
|
|
7313
7313
|
})
|
|
7314
7314
|
});
|
|
7315
|
-
},
|
|
7315
|
+
}, Kf = (e, t) => ({ target: {
|
|
7316
7316
|
name: e,
|
|
7317
7317
|
value: t
|
|
7318
|
-
} }),
|
|
7318
|
+
} }), qf = (e) => `Value cannot be less than ${e}`, Jf = (e) => `Value cannot be greater than ${e}`, Yf = ({ name: e = "", value: t, min: n, max: r, label: i, step: a = .01, onChange: o, onChangeComplete: s, preferredUnit: c = "m", onSwitchUnit: l, enableEditUnitInput: u = !1, disabled: f = !1, showUnitInput: p = !0, showArrows: m = !0, unitkey: h = "length", testId: g, noConversion: _ = !1, small: y = !1, marks: x, minErrorMessage: w = qf, maxErrorMessage: T = Jf }) => {
|
|
7319
7319
|
let E = Ar(t, c), [D, O] = v(E), [k, A] = v(!1), [j, M] = v(c);
|
|
7320
7320
|
d(() => {
|
|
7321
7321
|
k || O(E);
|
|
@@ -7333,7 +7333,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7333
7333
|
}, z = () => {
|
|
7334
7334
|
O(E), A(!1);
|
|
7335
7335
|
}, B = () => {
|
|
7336
|
-
L || I === null || (o(
|
|
7336
|
+
L || I === null || (o(Kf(e, I)), s == null || s(Kf(e, I)), A(!1));
|
|
7337
7337
|
}, ee = (e) => {
|
|
7338
7338
|
M(e), l == null || l(e);
|
|
7339
7339
|
}, te = (e) => {
|
|
@@ -7348,7 +7348,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7348
7348
|
}, ne = (e) => {
|
|
7349
7349
|
e.key === "Enter" && B(), e.key === "Escape" && z();
|
|
7350
7350
|
}, V = f || k, re = /* @__PURE__ */ C("div", {
|
|
7351
|
-
className:
|
|
7351
|
+
className: Ef.actions,
|
|
7352
7352
|
children: [/* @__PURE__ */ S(q, {
|
|
7353
7353
|
icon: "close",
|
|
7354
7354
|
small: !0,
|
|
@@ -7363,18 +7363,18 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7363
7363
|
})]
|
|
7364
7364
|
});
|
|
7365
7365
|
return /* @__PURE__ */ C("div", {
|
|
7366
|
-
className:
|
|
7366
|
+
className: Ef.wrapper,
|
|
7367
7367
|
"data-testid": g && `${g}-wrapper`,
|
|
7368
7368
|
children: [
|
|
7369
7369
|
i && /* @__PURE__ */ S("span", {
|
|
7370
|
-
className:
|
|
7370
|
+
className: Ef.label,
|
|
7371
7371
|
children: /* @__PURE__ */ S(Yo, {
|
|
7372
7372
|
small: y,
|
|
7373
7373
|
children: i
|
|
7374
7374
|
})
|
|
7375
7375
|
}),
|
|
7376
7376
|
p && /* @__PURE__ */ S("div", {
|
|
7377
|
-
className: b(
|
|
7377
|
+
className: b(Ef.input, y && Ef.inputSmall, u && !f && Ef.editable),
|
|
7378
7378
|
children: /* @__PURE__ */ S(So, {
|
|
7379
7379
|
content: re,
|
|
7380
7380
|
isOpen: k,
|
|
@@ -7388,11 +7388,11 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7388
7388
|
testId: g && `${g}-edit-popover`,
|
|
7389
7389
|
toggleOnTriggerClick: !1,
|
|
7390
7390
|
children: /* @__PURE__ */ S("div", {
|
|
7391
|
-
className:
|
|
7391
|
+
className: Ef.inputControl,
|
|
7392
7392
|
"data-testid": g && `${g}-edit-trigger`,
|
|
7393
7393
|
onClick: R,
|
|
7394
7394
|
onKeyDown: ne,
|
|
7395
|
-
children: /* @__PURE__ */ S(
|
|
7395
|
+
children: /* @__PURE__ */ S(Gf, {
|
|
7396
7396
|
name: e,
|
|
7397
7397
|
value: k ? D : E,
|
|
7398
7398
|
unitkey: h,
|
|
@@ -7409,7 +7409,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7409
7409
|
})
|
|
7410
7410
|
})
|
|
7411
7411
|
}),
|
|
7412
|
-
/* @__PURE__ */ S(
|
|
7412
|
+
/* @__PURE__ */ S(jl, {
|
|
7413
7413
|
name: e,
|
|
7414
7414
|
value: t,
|
|
7415
7415
|
min: n,
|
|
@@ -7427,7 +7427,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7427
7427
|
})
|
|
7428
7428
|
]
|
|
7429
7429
|
});
|
|
7430
|
-
},
|
|
7430
|
+
}, Xf = ({ label: e, invalid: t, badge: n }) => t ? /* @__PURE__ */ S(no, {
|
|
7431
7431
|
small: !0,
|
|
7432
7432
|
margin: "-4px",
|
|
7433
7433
|
color: "var(--color-text-error)",
|
|
@@ -7438,7 +7438,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7438
7438
|
margin: "-4px",
|
|
7439
7439
|
title: n == null ? void 0 : n.toString(),
|
|
7440
7440
|
children: e
|
|
7441
|
-
}) : /* @__PURE__ */ S(x, { children: e }),
|
|
7441
|
+
}) : /* @__PURE__ */ S(x, { children: e }), Zf = {
|
|
7442
7442
|
tabs: "_tabs_vkne2_1",
|
|
7443
7443
|
padding: "_padding_vkne2_7",
|
|
7444
7444
|
margin: "_margin_vkne2_11",
|
|
@@ -7447,7 +7447,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7447
7447
|
left: "_left_vkne2_64",
|
|
7448
7448
|
right: "_right_vkne2_64",
|
|
7449
7449
|
selectionIndicator: "_selectionIndicator_vkne2_67"
|
|
7450
|
-
},
|
|
7450
|
+
}, Qf = ({ name: e = void 0, options: t = null, value: n = void 0, onChange: r = yn, padding: i = !1, margin: a = !0, testId: o, linkComponent: s }) => {
|
|
7451
7451
|
let c = u(W), { simpleInputs: l, options: d, selectedOptions: f } = $c(t, n), p = pn(f) ? void 0 : l ? f : f.value, m = (e) => {
|
|
7452
7452
|
var t;
|
|
7453
7453
|
return (t = e.component) == null ? s : t;
|
|
@@ -7473,7 +7473,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7473
7473
|
...p ? { href: p } : {},
|
|
7474
7474
|
shouldSelectOnPressUp: !0,
|
|
7475
7475
|
isDisabled: i || c,
|
|
7476
|
-
className: b(
|
|
7476
|
+
className: b(Zf.item, o ? Zf.right : Zf.left),
|
|
7477
7477
|
"data-testid": u,
|
|
7478
7478
|
render: d && f ? (e) => "href" in e ? /* @__PURE__ */ S(f, {
|
|
7479
7479
|
...e,
|
|
@@ -7483,11 +7483,11 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7483
7483
|
(n = e.onClick) == null || n.call(e, t), v(t, a);
|
|
7484
7484
|
}
|
|
7485
7485
|
}) : /* @__PURE__ */ S("div", { ...e }) : void 0,
|
|
7486
|
-
children: [/* @__PURE__ */ S(
|
|
7486
|
+
children: [/* @__PURE__ */ S(Xf, {
|
|
7487
7487
|
label: t,
|
|
7488
7488
|
invalid: s,
|
|
7489
7489
|
badge: l
|
|
7490
|
-
}), /* @__PURE__ */ S(gi, { className:
|
|
7490
|
+
}), /* @__PURE__ */ S(gi, { className: Zf.selectionIndicator })]
|
|
7491
7491
|
}, a);
|
|
7492
7492
|
};
|
|
7493
7493
|
if (d) {
|
|
@@ -7497,7 +7497,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7497
7497
|
"data-testid": o,
|
|
7498
7498
|
children: /* @__PURE__ */ S(vi, {
|
|
7499
7499
|
"aria-label": e == null ? "Tabs" : e,
|
|
7500
|
-
className: b(
|
|
7500
|
+
className: b(Zf.tabs, i ? Zf.padding : "", a ? Zf.margin : ""),
|
|
7501
7501
|
children: y.map(w)
|
|
7502
7502
|
})
|
|
7503
7503
|
});
|
|
@@ -7507,7 +7507,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7507
7507
|
}) : t;
|
|
7508
7508
|
}
|
|
7509
7509
|
return null;
|
|
7510
|
-
},
|
|
7510
|
+
}, $f = ({ children: e, href: t = void 0, target: n = void 0, testId: r, onClick: i, component: a = "a" }) => /* @__PURE__ */ S(a, {
|
|
7511
7511
|
href: t,
|
|
7512
7512
|
to: t,
|
|
7513
7513
|
target: n,
|
|
@@ -7517,7 +7517,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7517
7517
|
link: !0,
|
|
7518
7518
|
children: e
|
|
7519
7519
|
})
|
|
7520
|
-
}),
|
|
7520
|
+
}), ep = {
|
|
7521
7521
|
inputInTable: "_inputInTable_qbe2o_1",
|
|
7522
7522
|
inputHover: "_inputHover_qbe2o_13",
|
|
7523
7523
|
inputFocus: "_inputFocus_qbe2o_18",
|
|
@@ -7529,9 +7529,9 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7529
7529
|
textarea: "_textarea_qbe2o_81",
|
|
7530
7530
|
small: "_small_qbe2o_120",
|
|
7531
7531
|
monospace: "_monospace_qbe2o_159"
|
|
7532
|
-
},
|
|
7532
|
+
}, tp = ({ name: e, value: t = "", placeholder: n = "", cols: r, rows: i, disabled: a = !1, onChange: o = yn, onKeyPress: s = yn, onFocus: c = yn, onBlur: l = yn, tabIndex: d = 0, error: f = null, warning: p = null, tooltip: m = null, maxTooltipWidth: h, resize: g, monospace: _ = !1, small: v = !1, testId: y }) => {
|
|
7533
7533
|
let x = u(W), C = /* @__PURE__ */ S("textarea", {
|
|
7534
|
-
className: b(
|
|
7534
|
+
className: b(ep.textarea, f ? ep.error : "", p ? ep.warning : "", _ ? ep.monospace : "", v ? ep.small : ""),
|
|
7535
7535
|
name: e,
|
|
7536
7536
|
value: t,
|
|
7537
7537
|
placeholder: n,
|
|
@@ -7573,10 +7573,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7573
7573
|
menu: "_menu_oyr59_139",
|
|
7574
7574
|
active: "_active_oyr59_168",
|
|
7575
7575
|
alert: "_alert_oyr59_193"
|
|
7576
|
-
},
|
|
7576
|
+
}, np = ({ warning: e }) => /* @__PURE__ */ S("div", {
|
|
7577
7577
|
className: Q.alert,
|
|
7578
7578
|
children: e
|
|
7579
|
-
}),
|
|
7579
|
+
}), rp = ({ icon: e, url: t, onClick: n }) => {
|
|
7580
7580
|
let r = /* @__PURE__ */ S(G, { icon: e });
|
|
7581
7581
|
return t ? /* @__PURE__ */ S("a", {
|
|
7582
7582
|
href: t,
|
|
@@ -7588,7 +7588,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7588
7588
|
className: Q.appSwitcher,
|
|
7589
7589
|
children: r
|
|
7590
7590
|
});
|
|
7591
|
-
},
|
|
7591
|
+
}, ip = ({ label: e, logo: t, url: n, version: r, onClick: i }) => {
|
|
7592
7592
|
let a = /* @__PURE__ */ C("div", {
|
|
7593
7593
|
className: Q.title,
|
|
7594
7594
|
children: [
|
|
@@ -7617,9 +7617,9 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7617
7617
|
children: a
|
|
7618
7618
|
})
|
|
7619
7619
|
});
|
|
7620
|
-
},
|
|
7620
|
+
}, ap = /* @__PURE__ */ function(e) {
|
|
7621
7621
|
return e.LINK = "Link", e.BUTTON = "Button", e.MENU = "Menu", e.COMPONENT = "Component", e;
|
|
7622
|
-
}({}),
|
|
7622
|
+
}({}), op = ({ label: e, url: t, icon: n, onClick: r, active: i, disabled: a, testId: o, component: s = "a" }) => {
|
|
7623
7623
|
let c = u(W);
|
|
7624
7624
|
return /* @__PURE__ */ C(s, {
|
|
7625
7625
|
className: b(Q.link, i ? Q.active : ""),
|
|
@@ -7636,11 +7636,11 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7636
7636
|
children: e
|
|
7637
7637
|
})]
|
|
7638
7638
|
});
|
|
7639
|
-
},
|
|
7639
|
+
}, sp = ({ element: e }) => {
|
|
7640
7640
|
switch (e.type) {
|
|
7641
|
-
case
|
|
7641
|
+
case ap.LINK: return /* @__PURE__ */ S("div", {
|
|
7642
7642
|
className: Q.item,
|
|
7643
|
-
children: /* @__PURE__ */ S(
|
|
7643
|
+
children: /* @__PURE__ */ S(op, {
|
|
7644
7644
|
label: e.label,
|
|
7645
7645
|
url: e.url,
|
|
7646
7646
|
icon: e.icon,
|
|
@@ -7651,7 +7651,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7651
7651
|
component: e.component
|
|
7652
7652
|
})
|
|
7653
7653
|
});
|
|
7654
|
-
case
|
|
7654
|
+
case ap.BUTTON: return /* @__PURE__ */ S("div", {
|
|
7655
7655
|
className: b(Q.item, Q.button),
|
|
7656
7656
|
children: /* @__PURE__ */ S(q, {
|
|
7657
7657
|
label: e.label,
|
|
@@ -7663,14 +7663,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7663
7663
|
testId: e.testId
|
|
7664
7664
|
})
|
|
7665
7665
|
});
|
|
7666
|
-
case
|
|
7666
|
+
case ap.MENU: return /* @__PURE__ */ S("div", {
|
|
7667
7667
|
className: b(Q.item, Q.menu),
|
|
7668
7668
|
children: /* @__PURE__ */ S(lo, {
|
|
7669
7669
|
maxHeight: "100%",
|
|
7670
7670
|
menu: {
|
|
7671
7671
|
trigger: Di.COMPONENT,
|
|
7672
7672
|
placement: "bottom-start",
|
|
7673
|
-
component: /* @__PURE__ */ S(
|
|
7673
|
+
component: /* @__PURE__ */ S(op, {
|
|
7674
7674
|
label: e.label,
|
|
7675
7675
|
icon: e.icon,
|
|
7676
7676
|
onClick: e.onClick
|
|
@@ -7679,50 +7679,50 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7679
7679
|
}
|
|
7680
7680
|
})
|
|
7681
7681
|
});
|
|
7682
|
-
case
|
|
7682
|
+
case ap.COMPONENT: return /* @__PURE__ */ S("div", {
|
|
7683
7683
|
className: Q.item,
|
|
7684
7684
|
children: e.component
|
|
7685
7685
|
});
|
|
7686
7686
|
default: return null;
|
|
7687
7687
|
}
|
|
7688
|
-
},
|
|
7688
|
+
}, cp = ({ title: e, appSwitcher: t, content: n = [], contentRight: r = [], warning: i = "", height: a = "var(--size-topbar)", fixedPosition: o = !0 }) => /* @__PURE__ */ C("div", { children: [i && /* @__PURE__ */ S(np, { warning: i }), /* @__PURE__ */ C("div", {
|
|
7689
7689
|
className: b(Q.topbar, o ? Q.fixed : ""),
|
|
7690
7690
|
style: { height: a },
|
|
7691
7691
|
children: [
|
|
7692
|
-
!!t && /* @__PURE__ */ S(
|
|
7692
|
+
!!t && /* @__PURE__ */ S(rp, {
|
|
7693
7693
|
icon: t.icon,
|
|
7694
7694
|
url: t.url,
|
|
7695
7695
|
onClick: t.onClick
|
|
7696
7696
|
}),
|
|
7697
7697
|
/* @__PURE__ */ C("div", {
|
|
7698
7698
|
className: Q.left,
|
|
7699
|
-
children: [e && /* @__PURE__ */ S(
|
|
7699
|
+
children: [e && /* @__PURE__ */ S(ip, {
|
|
7700
7700
|
label: e.label,
|
|
7701
7701
|
logo: e.logo,
|
|
7702
7702
|
url: e.url,
|
|
7703
7703
|
version: e.version,
|
|
7704
7704
|
onClick: e.onClick
|
|
7705
|
-
}), n.map((e, t) => e ? /* @__PURE__ */ S(
|
|
7705
|
+
}), n.map((e, t) => e ? /* @__PURE__ */ S(sp, { element: e }, t) : null)]
|
|
7706
7706
|
}),
|
|
7707
7707
|
/* @__PURE__ */ S("div", {
|
|
7708
7708
|
className: Q.right,
|
|
7709
|
-
children: r.map((e, t) => e ? /* @__PURE__ */ S(
|
|
7709
|
+
children: r.map((e, t) => e ? /* @__PURE__ */ S(sp, { element: e }, t) : null)
|
|
7710
7710
|
})
|
|
7711
7711
|
]
|
|
7712
|
-
})] }),
|
|
7712
|
+
})] }), lp = {
|
|
7713
7713
|
popConfirm: "_popConfirm_1x6ye_1",
|
|
7714
7714
|
content: "_content_1x6ye_7",
|
|
7715
7715
|
buttons: "_buttons_1x6ye_13"
|
|
7716
|
-
},
|
|
7717
|
-
className:
|
|
7716
|
+
}, up = ({ title: e, okText: t, onClickOk: n, disableConfirmButton: r, cancelText: i, onClickCancel: a, close: o, testId: s }) => /* @__PURE__ */ C("div", {
|
|
7717
|
+
className: lp.popConfirm,
|
|
7718
7718
|
children: [e && /* @__PURE__ */ S("div", {
|
|
7719
|
-
className:
|
|
7719
|
+
className: lp.content,
|
|
7720
7720
|
children: /* @__PURE__ */ S(Yo, {
|
|
7721
7721
|
small: !0,
|
|
7722
7722
|
children: e
|
|
7723
7723
|
})
|
|
7724
7724
|
}), /* @__PURE__ */ C("div", {
|
|
7725
|
-
className:
|
|
7725
|
+
className: lp.buttons,
|
|
7726
7726
|
children: [/* @__PURE__ */ S(q, {
|
|
7727
7727
|
small: !0,
|
|
7728
7728
|
colored: !0,
|
|
@@ -7737,8 +7737,8 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7737
7737
|
testId: `${s}-cancel-button`
|
|
7738
7738
|
})]
|
|
7739
7739
|
})]
|
|
7740
|
-
}),
|
|
7741
|
-
content: /* @__PURE__ */ S(
|
|
7740
|
+
}), dp = ({ 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, testId: u = void 0 }) => /* @__PURE__ */ S(So, {
|
|
7741
|
+
content: /* @__PURE__ */ S(up, {
|
|
7742
7742
|
title: i,
|
|
7743
7743
|
okText: s,
|
|
7744
7744
|
onClickOk: c,
|
|
@@ -7752,14 +7752,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7752
7752
|
fullWidth: r,
|
|
7753
7753
|
testId: u,
|
|
7754
7754
|
children: e
|
|
7755
|
-
}),
|
|
7755
|
+
}), fp = {
|
|
7756
7756
|
tree: "_tree_coxxe_1",
|
|
7757
7757
|
toggle: "_toggle_coxxe_8",
|
|
7758
7758
|
dropTarget: "_dropTarget_coxxe_15",
|
|
7759
7759
|
placeholder: "_placeholder_coxxe_30",
|
|
7760
7760
|
draggingSource: "_draggingSource_coxxe_36",
|
|
7761
7761
|
placeholderContainer: "_placeholderContainer_coxxe_39"
|
|
7762
|
-
},
|
|
7762
|
+
}, pp = ({ node: t, depth: n, isOpen: r, onToggle: i, hasChild: a, draggable: o, icons: s, onDrop: c }) => {
|
|
7763
7763
|
let { id: l, data: u } = t, { active: d, disabled: f, testId: p, onClick: m, actions: h = [] } = u, [g, _] = e.useState(!1), [v, y] = e.useState(0), x = (e) => {
|
|
7764
7764
|
e.stopPropagation(), i(l);
|
|
7765
7765
|
}, w = (e) => {
|
|
@@ -7786,7 +7786,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7786
7786
|
className: b(Z.itemHeader, g ? Z.noPointerEvents : ""),
|
|
7787
7787
|
children: [
|
|
7788
7788
|
a && /* @__PURE__ */ S("div", {
|
|
7789
|
-
className:
|
|
7789
|
+
className: fp.toggle,
|
|
7790
7790
|
children: /* @__PURE__ */ S(q, {
|
|
7791
7791
|
basic: !0,
|
|
7792
7792
|
colored: r ? !0 : Oi.MUTED,
|
|
@@ -7800,10 +7800,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7800
7800
|
className: Z.drag,
|
|
7801
7801
|
children: /* @__PURE__ */ S(G, { icon: U.DRAG })
|
|
7802
7802
|
}),
|
|
7803
|
-
/* @__PURE__ */ S(
|
|
7803
|
+
/* @__PURE__ */ S(kd, { item: u }),
|
|
7804
7804
|
/* @__PURE__ */ C("div", {
|
|
7805
7805
|
className: Z.right,
|
|
7806
|
-
children: [/* @__PURE__ */ S(
|
|
7806
|
+
children: [/* @__PURE__ */ S(Ad, { item: u }), !f && h.length > 0 && /* @__PURE__ */ S("div", {
|
|
7807
7807
|
className: Z.actions,
|
|
7808
7808
|
children: /* @__PURE__ */ S(fo, { actions: h })
|
|
7809
7809
|
})]
|
|
@@ -7811,13 +7811,13 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7811
7811
|
]
|
|
7812
7812
|
})
|
|
7813
7813
|
});
|
|
7814
|
-
},
|
|
7815
|
-
className:
|
|
7814
|
+
}, mp = ({ depth: e, indent: t = "var(--size-sm)" }) => /* @__PURE__ */ S("div", {
|
|
7815
|
+
className: fp.placeholder,
|
|
7816
7816
|
style: { left: `calc(${t} * ${e})` }
|
|
7817
|
-
}),
|
|
7817
|
+
}), hp = (e, t) => {
|
|
7818
7818
|
var n;
|
|
7819
7819
|
return e && (t == null || (n = t.data) == null ? void 0 : n.draggable) !== !1;
|
|
7820
|
-
},
|
|
7820
|
+
}, gp = ({ list: e, canDrop: t, draggable: n = !1, onListReorder: r, onChangeOpen: i, testId: a, isInitialOpen: o = !1, autoOpenActiveItems: s = !1, treeRef: c, itemHasChild: l, onItemToggle: u, icons: f, allowParentReassignment: p, stickyHeader: m, height: h, render: g, placeholderIndent: v }) => {
|
|
7821
7821
|
var y, b;
|
|
7822
7822
|
let x = c == null ? _(null) : c, w = (e) => {
|
|
7823
7823
|
i && i(e);
|
|
@@ -7885,7 +7885,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7885
7885
|
"data-testid": a,
|
|
7886
7886
|
className: Z.list,
|
|
7887
7887
|
style: { height: h },
|
|
7888
|
-
children: [e.name && !e.noHeader && /* @__PURE__ */ S(
|
|
7888
|
+
children: [e.name && !e.noHeader && /* @__PURE__ */ S(Ed, {
|
|
7889
7889
|
name: e.name,
|
|
7890
7890
|
actions: e.actions,
|
|
7891
7891
|
stickyHeader: m
|
|
@@ -7898,7 +7898,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7898
7898
|
tree: N,
|
|
7899
7899
|
sort: !1,
|
|
7900
7900
|
insertDroppableFirst: !1,
|
|
7901
|
-
canDrag: (e) =>
|
|
7901
|
+
canDrag: (e) => hp(n, e),
|
|
7902
7902
|
canDrop: t || ((e, { dragSource: t, dropTargetId: n }) => {
|
|
7903
7903
|
if ((t == null ? void 0 : t.parent) === n) return !0;
|
|
7904
7904
|
}),
|
|
@@ -7912,7 +7912,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7912
7912
|
hasChild: n,
|
|
7913
7913
|
isOpen: i,
|
|
7914
7914
|
onToggle: a
|
|
7915
|
-
}) : /* @__PURE__ */ S(
|
|
7915
|
+
}) : /* @__PURE__ */ S(pp, {
|
|
7916
7916
|
hasChild: l ? l(e) : n,
|
|
7917
7917
|
node: e,
|
|
7918
7918
|
depth: t,
|
|
@@ -7928,7 +7928,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7928
7928
|
onDrop: M,
|
|
7929
7929
|
onChangeOpen: w,
|
|
7930
7930
|
dropTargetOffset: 10,
|
|
7931
|
-
placeholderRender: (e, { depth: t }) => /* @__PURE__ */ S(
|
|
7931
|
+
placeholderRender: (e, { depth: t }) => /* @__PURE__ */ S(mp, {
|
|
7932
7932
|
depth: t,
|
|
7933
7933
|
indent: v
|
|
7934
7934
|
}),
|
|
@@ -7936,17 +7936,17 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7936
7936
|
listComponent: "div",
|
|
7937
7937
|
listItemComponent: "div",
|
|
7938
7938
|
classes: {
|
|
7939
|
-
root:
|
|
7940
|
-
draggingSource:
|
|
7941
|
-
dropTarget:
|
|
7942
|
-
placeholder:
|
|
7939
|
+
root: fp.tree,
|
|
7940
|
+
draggingSource: fp.draggingSource,
|
|
7941
|
+
dropTarget: fp.dropTarget,
|
|
7942
|
+
placeholder: fp.placeholderContainer
|
|
7943
7943
|
},
|
|
7944
7944
|
initialOpen: o,
|
|
7945
7945
|
enableAnimateExpand: !0
|
|
7946
7946
|
})
|
|
7947
7947
|
})]
|
|
7948
7948
|
});
|
|
7949
|
-
},
|
|
7949
|
+
}, _p = {
|
|
7950
7950
|
treeTable: "_treeTable_1ywvy_1",
|
|
7951
7951
|
treeTableHeader: "_treeTableHeader_1ywvy_22",
|
|
7952
7952
|
folderCell: "_folderCell_1ywvy_30",
|
|
@@ -7954,48 +7954,48 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7954
7954
|
drag: "_drag_1ywvy_31",
|
|
7955
7955
|
folder: "_folder_1ywvy_30",
|
|
7956
7956
|
active: "_active_1ywvy_61"
|
|
7957
|
-
},
|
|
7957
|
+
}, vp = (e, t) => e.filter((e) => e.parent === t).flatMap((t) => [t.id, ...vp(e, t.id)]), yp = (e, t) => {
|
|
7958
7958
|
let n = new Set(t);
|
|
7959
7959
|
return e.filter((e) => !n.has(e.id)).map((e) => e.id);
|
|
7960
|
-
},
|
|
7960
|
+
}, bp = (e, t, n) => e.filter((e) => n.has(e) || !t.has(e)), xp = (e, t, n, r = []) => {
|
|
7961
7961
|
let i = new Set(n), a = new Set(r), o = e.filter((e) => e.parent === t && !a.has(e.id));
|
|
7962
7962
|
if (o.length === 0) return {
|
|
7963
7963
|
checked: i.has(t),
|
|
7964
7964
|
indeterminate: !1
|
|
7965
7965
|
};
|
|
7966
|
-
let s = o.map((t) =>
|
|
7966
|
+
let s = o.map((t) => xp(e, t.id, n, r)), c = s.filter((e) => e.checked).length, l = s.filter((e) => e.indeterminate).length, u = c === o.length;
|
|
7967
7967
|
return {
|
|
7968
7968
|
checked: u,
|
|
7969
7969
|
indeterminate: c + l > 0 && !u
|
|
7970
7970
|
};
|
|
7971
|
-
},
|
|
7972
|
-
let r =
|
|
7971
|
+
}, Sp = (e, t, n = []) => {
|
|
7972
|
+
let r = yp(e, n), i = new Set(t), a = r.filter((e) => i.has(e)).length;
|
|
7973
7973
|
return {
|
|
7974
7974
|
checked: r.length > 0 && a === r.length,
|
|
7975
7975
|
indeterminate: a > 0 && a < r.length
|
|
7976
7976
|
};
|
|
7977
|
-
},
|
|
7977
|
+
}, Cp = i(null), wp = () => u(Cp), Tp = ({ children: e, rowCheckboxes: t, rows: n }) => {
|
|
7978
7978
|
let r = t !== void 0, { checkedIds: i = [], disabledIds: a = [], getTooltip: o, onChange: s } = t == null ? {} : t, c = h(() => new Set(a), [a]), u = h(() => {
|
|
7979
7979
|
if (!r) return null;
|
|
7980
7980
|
let e = /* @__PURE__ */ new Map();
|
|
7981
|
-
for (let t of n) e.set(t.id,
|
|
7981
|
+
for (let t of n) e.set(t.id, xp(n, t.id, i, a));
|
|
7982
7982
|
return e;
|
|
7983
7983
|
}, [
|
|
7984
7984
|
i,
|
|
7985
7985
|
a,
|
|
7986
7986
|
r,
|
|
7987
7987
|
n
|
|
7988
|
-
]), d = h(() => r ?
|
|
7988
|
+
]), d = h(() => r ? Sp(n, i, a) : void 0, [
|
|
7989
7989
|
i,
|
|
7990
7990
|
a,
|
|
7991
7991
|
r,
|
|
7992
7992
|
n
|
|
7993
7993
|
]), f = l((e) => u == null ? void 0 : u.get(e), [u]), p = l((e) => c.has(e), [c]), m = l((e) => o == null ? void 0 : o(e), [o]), g = l((e) => {
|
|
7994
7994
|
if (!r || c.has(e)) return;
|
|
7995
|
-
let t =
|
|
7995
|
+
let t = vp(n, e), o = [e, ...t.filter((e) => !c.has(e))], l = [e, ...t], { checked: u } = xp(n, e, i, a);
|
|
7996
7996
|
if (u) {
|
|
7997
7997
|
let e = new Set(l);
|
|
7998
|
-
s == null || s(
|
|
7998
|
+
s == null || s(bp(i, e, c));
|
|
7999
7999
|
} else s == null || s([.../* @__PURE__ */ new Set([...i, ...o])]);
|
|
8000
8000
|
}, [
|
|
8001
8001
|
i,
|
|
@@ -8006,7 +8006,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8006
8006
|
n
|
|
8007
8007
|
]), _ = l(() => {
|
|
8008
8008
|
if (!r) return;
|
|
8009
|
-
let e =
|
|
8009
|
+
let e = yp(n, a), { checked: t } = Sp(n, i, a);
|
|
8010
8010
|
t ? s == null || s(i.filter((e) => c.has(e))) : s == null || s([.../* @__PURE__ */ new Set([...i, ...e])]);
|
|
8011
8011
|
}, [
|
|
8012
8012
|
i,
|
|
@@ -8032,12 +8032,12 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8032
8032
|
_,
|
|
8033
8033
|
g
|
|
8034
8034
|
]);
|
|
8035
|
-
return /* @__PURE__ */ S(
|
|
8035
|
+
return /* @__PURE__ */ S(Cp.Provider, {
|
|
8036
8036
|
value: v,
|
|
8037
8037
|
children: e
|
|
8038
8038
|
});
|
|
8039
|
-
},
|
|
8040
|
-
let g =
|
|
8039
|
+
}, Ep = ({ columnAlignment: e, columnWidths: t, depth: n, draggable: r, handleRef: i, hasChild: a, hasRowActions: o, icons: s, isItemDraggable: c = !0, isOpen: l, node: u, onDragEnter: d, onDragOver: f, onDragLeave: p, onDrop: m, onToggle: h }) => {
|
|
8040
|
+
let g = wp(), _ = g != null && g.enabled ? g.getRowCheckState(u.id) : void 0, v = _ == null ? void 0 : _.checked, y = _ == null ? void 0 : _.indeterminate, x = g == null ? void 0 : g.isRowCheckDisabled(u.id), w = g == null ? void 0 : g.enabled, { data: T, droppable: E } = u, { id: D, cells: O, testId: k, actions: A = [], active: j, onRowClick: M } = T, N = E || a, P = (e) => {
|
|
8041
8041
|
let r = t ? t[e] : void 0;
|
|
8042
8042
|
return e === 0 ? `calc(${r} - ${`calc(var(--size) * ${N ? n + 1 : n})`})` : r;
|
|
8043
8043
|
};
|
|
@@ -8050,12 +8050,12 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8050
8050
|
onDragLeave: p,
|
|
8051
8051
|
children: /* @__PURE__ */ S("tbody", { children: /* @__PURE__ */ C("tr", {
|
|
8052
8052
|
onClick: M,
|
|
8053
|
-
className: b(
|
|
8053
|
+
className: b(_p.treeTableRow, j ? _p.active : void 0),
|
|
8054
8054
|
children: [
|
|
8055
|
-
w && /* @__PURE__ */ S(
|
|
8055
|
+
w && /* @__PURE__ */ S(Gl, {
|
|
8056
8056
|
isHeader: !1,
|
|
8057
8057
|
cell: {
|
|
8058
|
-
type:
|
|
8058
|
+
type: Wl.CHECKBOX,
|
|
8059
8059
|
checked: v,
|
|
8060
8060
|
disabled: x,
|
|
8061
8061
|
indeterminate: y,
|
|
@@ -8064,19 +8064,19 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8064
8064
|
}
|
|
8065
8065
|
}),
|
|
8066
8066
|
r && /* @__PURE__ */ S("td", {
|
|
8067
|
-
className:
|
|
8067
|
+
className: _p.dragCell,
|
|
8068
8068
|
children: c && /* @__PURE__ */ S("div", {
|
|
8069
|
-
className:
|
|
8069
|
+
className: _p.drag,
|
|
8070
8070
|
onClick: (e) => e.stopPropagation(),
|
|
8071
8071
|
ref: i,
|
|
8072
8072
|
children: /* @__PURE__ */ S(G, { icon: U.DRAG })
|
|
8073
8073
|
})
|
|
8074
8074
|
}),
|
|
8075
|
-
Array.from({ length: n }).map((e, t) => /* @__PURE__ */ S("td", { className:
|
|
8075
|
+
Array.from({ length: n }).map((e, t) => /* @__PURE__ */ S("td", { className: _p.folderCell }, t)),
|
|
8076
8076
|
N && /* @__PURE__ */ S("td", {
|
|
8077
|
-
className:
|
|
8077
|
+
className: _p.folderCell,
|
|
8078
8078
|
children: /* @__PURE__ */ S("div", {
|
|
8079
|
-
className:
|
|
8079
|
+
className: _p.folder,
|
|
8080
8080
|
onClick: () => h(D),
|
|
8081
8081
|
onMouseDown: (e) => e.stopPropagation(),
|
|
8082
8082
|
children: /* @__PURE__ */ S(q, {
|
|
@@ -8091,73 +8091,73 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8091
8091
|
}),
|
|
8092
8092
|
O.map((t, n) => {
|
|
8093
8093
|
let r = P(n), i = e ? e[n] : null;
|
|
8094
|
-
return /* @__PURE__ */ S(
|
|
8094
|
+
return /* @__PURE__ */ S(Gl, {
|
|
8095
8095
|
isHeader: !1,
|
|
8096
8096
|
cell: t,
|
|
8097
8097
|
width: r,
|
|
8098
8098
|
columnAlignment: i
|
|
8099
8099
|
}, n);
|
|
8100
8100
|
}),
|
|
8101
|
-
o && /* @__PURE__ */ S(
|
|
8101
|
+
o && /* @__PURE__ */ S(Gl, {
|
|
8102
8102
|
isHeader: !1,
|
|
8103
8103
|
cell: {
|
|
8104
|
-
type:
|
|
8104
|
+
type: Wl.ACTIONS,
|
|
8105
8105
|
actions: A
|
|
8106
8106
|
}
|
|
8107
8107
|
})
|
|
8108
8108
|
]
|
|
8109
8109
|
}) })
|
|
8110
8110
|
});
|
|
8111
|
-
},
|
|
8112
|
-
let a =
|
|
8111
|
+
}, Dp = ({ columnAlignment: e, columnWidths: t, draggable: n, hasRowActions: r, headers: i }) => {
|
|
8112
|
+
let a = wp(), o = a == null ? void 0 : a.headerCheckState, s = (a == null ? void 0 : a.enabled) && o !== void 0;
|
|
8113
8113
|
return /* @__PURE__ */ S("table", {
|
|
8114
|
-
className: b(Ks.table,
|
|
8114
|
+
className: b(Ks.table, _p.treeTableHeader),
|
|
8115
8115
|
children: /* @__PURE__ */ S("thead", { children: i.map((i, c) => /* @__PURE__ */ C("tr", { children: [
|
|
8116
|
-
s && c === 0 ? /* @__PURE__ */ S(
|
|
8116
|
+
s && c === 0 ? /* @__PURE__ */ S(Gl, {
|
|
8117
8117
|
isHeader: !0,
|
|
8118
8118
|
cell: {
|
|
8119
|
-
type:
|
|
8119
|
+
type: Wl.CHECKBOX,
|
|
8120
8120
|
checked: o.checked,
|
|
8121
8121
|
indeterminate: o.indeterminate,
|
|
8122
8122
|
onChange: a.toggleHeaderCheck
|
|
8123
8123
|
}
|
|
8124
8124
|
}) : s ? /* @__PURE__ */ S("td", {}) : null,
|
|
8125
|
-
n && /* @__PURE__ */ S("th", { className:
|
|
8125
|
+
n && /* @__PURE__ */ S("th", { className: _p.dragCell }),
|
|
8126
8126
|
i.cells.map((n, r) => {
|
|
8127
8127
|
let i = t ? t[r] : void 0, a = e ? e[r] : void 0;
|
|
8128
|
-
return /* @__PURE__ */ S(
|
|
8128
|
+
return /* @__PURE__ */ S(Gl, {
|
|
8129
8129
|
isHeader: !0,
|
|
8130
8130
|
cell: n,
|
|
8131
8131
|
width: i,
|
|
8132
8132
|
columnAlignment: a
|
|
8133
8133
|
}, r);
|
|
8134
8134
|
}),
|
|
8135
|
-
r && /* @__PURE__ */ S(
|
|
8135
|
+
r && /* @__PURE__ */ S(Gl, {
|
|
8136
8136
|
isHeader: !0,
|
|
8137
8137
|
cell: {
|
|
8138
|
-
type:
|
|
8138
|
+
type: Wl.ACTIONS,
|
|
8139
8139
|
actions: i.actions,
|
|
8140
8140
|
width: 31
|
|
8141
8141
|
}
|
|
8142
8142
|
})
|
|
8143
8143
|
] }, c)) })
|
|
8144
8144
|
});
|
|
8145
|
-
},
|
|
8145
|
+
}, Op = ({ 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 }) => {
|
|
8146
8146
|
let { columnAlignment: m, columnWidths: h, fixedWidth: g, headers: _, rows: v = [] } = d, y = fl(v, _ == null ? [] : _);
|
|
8147
|
-
return /* @__PURE__ */ S(
|
|
8147
|
+
return /* @__PURE__ */ S(Tp, {
|
|
8148
8148
|
rowCheckboxes: u,
|
|
8149
8149
|
rows: v,
|
|
8150
8150
|
children: /* @__PURE__ */ C("div", {
|
|
8151
|
-
className:
|
|
8151
|
+
className: _p.treeTable,
|
|
8152
8152
|
"data-testid": f,
|
|
8153
8153
|
style: { width: g },
|
|
8154
|
-
children: [!!_ && /* @__PURE__ */ S(
|
|
8154
|
+
children: [!!_ && /* @__PURE__ */ S(Dp, {
|
|
8155
8155
|
columnAlignment: m,
|
|
8156
8156
|
columnWidths: h,
|
|
8157
8157
|
draggable: r,
|
|
8158
8158
|
hasRowActions: y,
|
|
8159
8159
|
headers: _
|
|
8160
|
-
}), /* @__PURE__ */ S(
|
|
8160
|
+
}), /* @__PURE__ */ S(gp, {
|
|
8161
8161
|
allowParentReassignment: e,
|
|
8162
8162
|
autoOpenActiveItems: t,
|
|
8163
8163
|
canDrop: n,
|
|
@@ -8173,7 +8173,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8173
8173
|
onItemToggle: s,
|
|
8174
8174
|
onListReorder: c,
|
|
8175
8175
|
placeholderIndent: "var(--size)",
|
|
8176
|
-
render: (e, { depth: t, draggable: n, handleRef: a, hasChild: o, isOpen: s, onToggle: c }) => /* @__PURE__ */ S(
|
|
8176
|
+
render: (e, { depth: t, draggable: n, handleRef: a, hasChild: o, isOpen: s, onToggle: c }) => /* @__PURE__ */ S(Ep, {
|
|
8177
8177
|
node: e,
|
|
8178
8178
|
columnAlignment: m,
|
|
8179
8179
|
columnWidths: h,
|
|
@@ -8191,10 +8191,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8191
8191
|
})]
|
|
8192
8192
|
})
|
|
8193
8193
|
});
|
|
8194
|
-
},
|
|
8194
|
+
}, kp = Object.freeze({
|
|
8195
8195
|
Translations: "translations",
|
|
8196
8196
|
LanguageKey: "languageKey"
|
|
8197
|
-
}),
|
|
8197
|
+
}), Ap = {
|
|
8198
8198
|
unified: "Unified",
|
|
8199
8199
|
split: "Split",
|
|
8200
8200
|
changesTooLarge: "Changes are too large to be shown",
|
|
@@ -8217,39 +8217,39 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8217
8217
|
showAll: "Show all",
|
|
8218
8218
|
unknown: "Unknown",
|
|
8219
8219
|
unexpectedError: "Unexpected error"
|
|
8220
|
-
},
|
|
8220
|
+
}, jp = (e) => Object.keys(Ap).reduce((t, n) => ({
|
|
8221
8221
|
...t,
|
|
8222
|
-
[n]: (e == null ? void 0 : e[n]) || (
|
|
8223
|
-
}), {}),
|
|
8224
|
-
[
|
|
8225
|
-
[
|
|
8226
|
-
},
|
|
8227
|
-
|
|
8228
|
-
},
|
|
8222
|
+
[n]: (e == null ? void 0 : e[n]) || (Ap == null ? void 0 : Ap[n])
|
|
8223
|
+
}), {}), Mp = {
|
|
8224
|
+
[kp.Translations]: jp(),
|
|
8225
|
+
[kp.LanguageKey]: "en"
|
|
8226
|
+
}, Np = (e) => e ? Mp[e] : Mp, Pp = (e, t) => {
|
|
8227
|
+
Mp[e] = t;
|
|
8228
|
+
}, Fp = (e) => e.reduce(({ preferredUnits: e, storageUnits: t }, { unitKey: n, preferredUnit: r, storageUnit: i }) => {
|
|
8229
8229
|
var a;
|
|
8230
|
-
let { unitTemplate: o = null } = (a =
|
|
8231
|
-
return e[n] = r == null ?
|
|
8230
|
+
let { unitTemplate: o = null } = (a = Bf()) == null ? {} : a;
|
|
8231
|
+
return e[n] = r == null ? kf(n, o) : r, t[n] = i, {
|
|
8232
8232
|
preferredUnits: e,
|
|
8233
8233
|
storageUnits: t
|
|
8234
8234
|
};
|
|
8235
8235
|
}, {
|
|
8236
8236
|
preferredUnits: {},
|
|
8237
8237
|
storageUnits: {}
|
|
8238
|
-
}),
|
|
8238
|
+
}), Ip = ({ value: e, unitKey: t, selectedUnits: n, storageUnits: r }) => {
|
|
8239
8239
|
let i = n[t], a = r[t];
|
|
8240
8240
|
if (!(a && i !== a) || e === null || e === "") return e;
|
|
8241
|
-
let { value: o = e } =
|
|
8241
|
+
let { value: o = e } = Pf({
|
|
8242
8242
|
value: Er(e),
|
|
8243
8243
|
unitkey: t,
|
|
8244
8244
|
toUnit: i,
|
|
8245
8245
|
fromUnit: a
|
|
8246
8246
|
});
|
|
8247
8247
|
return o;
|
|
8248
|
-
},
|
|
8248
|
+
}, Lp = ({ row: e, selectedUnits: t, storageUnits: n, convertBackToStorageUnit: r, enableCosmeticRounding: i, enableDisplayRounding: a }) => ({
|
|
8249
8249
|
...e,
|
|
8250
8250
|
cells: e.cells.map((e) => {
|
|
8251
8251
|
if ("autoUnit" in e && e.autoUnit && (typeof e.value == "string" || typeof e.value == "number")) {
|
|
8252
|
-
let { unitKey: o, value: s, formatDisplayValue: c } = e, l = a && "roundDisplayValue" in e ? e.roundDisplayValue : null, u = t[o], d = n[o], f = d && u !== d, p =
|
|
8252
|
+
let { unitKey: o, value: s, formatDisplayValue: c } = e, l = a && "roundDisplayValue" in e ? e.roundDisplayValue : null, u = t[o], d = n[o], f = d && u !== d, p = Ip({
|
|
8253
8253
|
value: s,
|
|
8254
8254
|
unitKey: o,
|
|
8255
8255
|
selectedUnits: t,
|
|
@@ -8263,7 +8263,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8263
8263
|
roundDisplayValue: l,
|
|
8264
8264
|
selectOnFocus: !0,
|
|
8265
8265
|
onChange: (t) => {
|
|
8266
|
-
let n = t, { value: i } = n.target, a = r ? d : u, { value: s = i } =
|
|
8266
|
+
let n = t, { value: i } = n.target, a = r ? d : u, { value: s = i } = Pf({
|
|
8267
8267
|
value: String(i),
|
|
8268
8268
|
unitkey: o,
|
|
8269
8269
|
toUnit: a,
|
|
@@ -8282,17 +8282,17 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8282
8282
|
}
|
|
8283
8283
|
return e;
|
|
8284
8284
|
})
|
|
8285
|
-
}),
|
|
8286
|
-
let { translations: i } =
|
|
8285
|
+
}), Rp = ({ headers: e, selectedUnits: t, storageUnits: n, onChangeUnit: r }) => {
|
|
8286
|
+
let { translations: i } = Np();
|
|
8287
8287
|
return e ? e.map((e) => ({
|
|
8288
8288
|
...e,
|
|
8289
8289
|
cells: e.cells.map((e) => {
|
|
8290
|
-
if (e.type ===
|
|
8290
|
+
if (e.type === Wl.AUTO_UNIT) {
|
|
8291
8291
|
var a;
|
|
8292
8292
|
let { testId: o, unitKey: s, disabled: c = !1, error: l } = e, u = n[s];
|
|
8293
8293
|
return {
|
|
8294
8294
|
value: u && t[s],
|
|
8295
|
-
type:
|
|
8295
|
+
type: Wl.SELECT,
|
|
8296
8296
|
error: !u && (i == null ? void 0 : i.unitIsMissing) || l,
|
|
8297
8297
|
disabled: c || !u,
|
|
8298
8298
|
searchable: !1,
|
|
@@ -8312,8 +8312,8 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8312
8312
|
return e;
|
|
8313
8313
|
})
|
|
8314
8314
|
})) : [];
|
|
8315
|
-
},
|
|
8316
|
-
let { headers: c, ...u } = e, { storageUnits: f, preferredUnits: p } =
|
|
8315
|
+
}, zp = ({ table: e, unitConfig: t, convertBackToStorageUnit: n = !0, enableCosmeticRounding: r = !0, enableDisplayRounding: i = !0, onListReorder: a, canListReorder: o, beforeRenderRow: s }) => {
|
|
8316
|
+
let { headers: c, ...u } = e, { storageUnits: f, preferredUnits: p } = Fp(t), m = Of(p), [h, g] = v(p), _ = ({ unitKey: e, value: n }) => {
|
|
8317
8317
|
g((t) => ({
|
|
8318
8318
|
...t,
|
|
8319
8319
|
[e]: n
|
|
@@ -8324,13 +8324,13 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8324
8324
|
newUnit: n,
|
|
8325
8325
|
unitKey: e
|
|
8326
8326
|
});
|
|
8327
|
-
}, y = l(({ row: e, rowIndex: t }) =>
|
|
8327
|
+
}, y = l(({ row: e, rowIndex: t }) => Lp({
|
|
8328
8328
|
row: s ? s({
|
|
8329
8329
|
row: e,
|
|
8330
8330
|
rowIndex: t,
|
|
8331
8331
|
selectedUnits: h,
|
|
8332
8332
|
storageUnits: f,
|
|
8333
|
-
convertValue: (e, t) =>
|
|
8333
|
+
convertValue: (e, t) => Ip({
|
|
8334
8334
|
value: e,
|
|
8335
8335
|
unitKey: t,
|
|
8336
8336
|
selectedUnits: h,
|
|
@@ -8358,10 +8358,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8358
8358
|
value: n
|
|
8359
8359
|
});
|
|
8360
8360
|
});
|
|
8361
|
-
}, [t]), /* @__PURE__ */ S(
|
|
8361
|
+
}, [t]), /* @__PURE__ */ S(nu, {
|
|
8362
8362
|
table: {
|
|
8363
8363
|
...u,
|
|
8364
|
-
headers:
|
|
8364
|
+
headers: Rp({
|
|
8365
8365
|
headers: e.headers,
|
|
8366
8366
|
selectedUnits: h,
|
|
8367
8367
|
storageUnits: f,
|
|
@@ -8372,8 +8372,8 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8372
8372
|
canListReorder: o,
|
|
8373
8373
|
beforeRenderRow: y
|
|
8374
8374
|
});
|
|
8375
|
-
},
|
|
8376
|
-
let { translations: d } =
|
|
8375
|
+
}, Bp = { settingField: "_settingField_1x02n_1" }, Vp = ({ 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 }) => {
|
|
8376
|
+
let { translations: d } = Np(), f = (t) => t.replace(/\\n/g, "\n").split(/\n/).map((t, n) => /* @__PURE__ */ C(e.Fragment, { children: [t, /* @__PURE__ */ S("br", {})] }, n)), p = [
|
|
8377
8377
|
...r ? [] : [{
|
|
8378
8378
|
label: d == null ? void 0 : d.allUsers,
|
|
8379
8379
|
value: !1
|
|
@@ -8388,14 +8388,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8388
8388
|
}] : []
|
|
8389
8389
|
], m = a !== void 0 && o !== void 0 && !un(a, o);
|
|
8390
8390
|
return /* @__PURE__ */ C("div", {
|
|
8391
|
-
className:
|
|
8391
|
+
className: Bp.settingField,
|
|
8392
8392
|
"data-testid": u,
|
|
8393
|
-
children: [/* @__PURE__ */ C(
|
|
8393
|
+
children: [/* @__PURE__ */ C(Sd, {
|
|
8394
8394
|
justifyContent: "space-between",
|
|
8395
8395
|
wrap: !1,
|
|
8396
8396
|
children: [i, !s && /* @__PURE__ */ S("div", {
|
|
8397
8397
|
style: { flexShrink: 0 },
|
|
8398
|
-
children: /* @__PURE__ */ C(
|
|
8398
|
+
children: /* @__PURE__ */ C(Sd, {
|
|
8399
8399
|
gap: "8px",
|
|
8400
8400
|
alignItems: "center",
|
|
8401
8401
|
children: [m && /* @__PURE__ */ S(ma, {
|
|
@@ -8420,7 +8420,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8420
8420
|
children: f(t)
|
|
8421
8421
|
})]
|
|
8422
8422
|
});
|
|
8423
|
-
},
|
|
8423
|
+
}, Hp = { backgroundColor: "var(--color-background-error-muted)" }, Up = { backgroundColor: "var(--color-background-success-muted)" }, Wp = { backgroundColor: "var(--color-background-warning-muted)" }, Gp = {
|
|
8424
8424
|
addedBackground: "var(--color-diff-added-background)",
|
|
8425
8425
|
addedGutterBackground: "var(--color-diff-added-gutter-background)",
|
|
8426
8426
|
codeFoldBackground: "var(--color-diff-code-fold-background)",
|
|
@@ -8439,10 +8439,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8439
8439
|
removedGutterBackground: "var(--color-diff-removed-gutter-background)",
|
|
8440
8440
|
wordAddedBackground: "var(--color-diff-word-added-background)",
|
|
8441
8441
|
wordRemovedBackground: "var(--color-diff-word-removed-background)"
|
|
8442
|
-
},
|
|
8442
|
+
}, Kp = {
|
|
8443
8443
|
variables: {
|
|
8444
|
-
light:
|
|
8445
|
-
dark:
|
|
8444
|
+
light: Gp,
|
|
8445
|
+
dark: Gp
|
|
8446
8446
|
},
|
|
8447
8447
|
diffContainer: { minWidth: "unset" },
|
|
8448
8448
|
codeFoldGutter: {
|
|
@@ -8457,10 +8457,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8457
8457
|
pre: { opacity: .5 }
|
|
8458
8458
|
} },
|
|
8459
8459
|
marker: { pre: { opacity: .4 } }
|
|
8460
|
-
},
|
|
8460
|
+
}, qp = { codeOnly: "_codeOnly_1lph2_42" }, Jp = ({ value: e, compareValue: t, splitView: n = !1, showDiffOnly: r = !1, compareMethod: i = Ti.LINES, extraLinesSurroundingDiff: a, hideSummary: o = !0, className: s }) => {
|
|
8461
8461
|
let c = t !== void 0, l = c ? t : e, u = i !== Ti.WORDS;
|
|
8462
8462
|
return /* @__PURE__ */ S("div", {
|
|
8463
|
-
className: b(s, { [
|
|
8463
|
+
className: b(s, { [qp.codeOnly]: !c && !n }),
|
|
8464
8464
|
children: /* @__PURE__ */ S(wi, {
|
|
8465
8465
|
oldValue: l,
|
|
8466
8466
|
newValue: e,
|
|
@@ -8472,22 +8472,22 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8472
8472
|
hideLineNumbers: !1,
|
|
8473
8473
|
hideSummary: o,
|
|
8474
8474
|
disableWorker: !0,
|
|
8475
|
-
styles:
|
|
8475
|
+
styles: Kp
|
|
8476
8476
|
})
|
|
8477
8477
|
});
|
|
8478
|
-
},
|
|
8478
|
+
}, Yp = (e, t) => {
|
|
8479
8479
|
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;
|
|
8480
8480
|
return {
|
|
8481
8481
|
added: Math.max(0, i),
|
|
8482
8482
|
removed: Math.max(0, a)
|
|
8483
8483
|
};
|
|
8484
|
-
},
|
|
8484
|
+
}, Xp = "split", Zp = "unified", Qp = ({ oldJson: e, newJson: t, viewType: n = Xp }) => {
|
|
8485
8485
|
var r, i;
|
|
8486
|
-
let { translations: a } =
|
|
8487
|
-
value:
|
|
8486
|
+
let { translations: a } = Np(), [o, s] = v(n), c = [{
|
|
8487
|
+
value: Xp,
|
|
8488
8488
|
label: (r = a == null ? void 0 : a.split) == null ? "Split" : r
|
|
8489
8489
|
}, {
|
|
8490
|
-
value:
|
|
8490
|
+
value: Zp,
|
|
8491
8491
|
label: (i = a == null ? void 0 : a.unified) == null ? "Unified" : i
|
|
8492
8492
|
}];
|
|
8493
8493
|
d(() => {
|
|
@@ -8495,10 +8495,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8495
8495
|
}, [n]);
|
|
8496
8496
|
let l = ({ target: { value: e } }) => {
|
|
8497
8497
|
s(e);
|
|
8498
|
-
}, { added: u, removed: f } =
|
|
8498
|
+
}, { added: u, removed: f } = Yp(e, t), p = u + f > 3500;
|
|
8499
8499
|
return /* @__PURE__ */ S(x, { children: /* @__PURE__ */ S(bo, {
|
|
8500
8500
|
bordered: !0,
|
|
8501
|
-
heading: /* @__PURE__ */ C(
|
|
8501
|
+
heading: /* @__PURE__ */ C(Sd, {
|
|
8502
8502
|
gap: !0,
|
|
8503
8503
|
children: [/* @__PURE__ */ S(es, { children: /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ C(Yo, {
|
|
8504
8504
|
success: !0,
|
|
@@ -8510,7 +8510,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8510
8510
|
}), /* @__PURE__ */ C(Yo, {
|
|
8511
8511
|
error: !0,
|
|
8512
8512
|
children: ["-", f]
|
|
8513
|
-
})] }) }), !p && /* @__PURE__ */ S(
|
|
8513
|
+
})] }) }), !p && /* @__PURE__ */ S(Qd, {
|
|
8514
8514
|
name: "viewType",
|
|
8515
8515
|
options: c,
|
|
8516
8516
|
value: o,
|
|
@@ -8525,21 +8525,21 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8525
8525
|
muted: !0,
|
|
8526
8526
|
children: a == null ? void 0 : a.changesTooLarge
|
|
8527
8527
|
})
|
|
8528
|
-
}) : /* @__PURE__ */ S(
|
|
8528
|
+
}) : /* @__PURE__ */ S(Jp, {
|
|
8529
8529
|
value: t,
|
|
8530
8530
|
compareValue: e,
|
|
8531
|
-
splitView: o ===
|
|
8531
|
+
splitView: o === Xp,
|
|
8532
8532
|
compareMethod: Ti.WORDS,
|
|
8533
8533
|
showDiffOnly: !0,
|
|
8534
8534
|
hideSummary: !1
|
|
8535
8535
|
})
|
|
8536
8536
|
}) });
|
|
8537
|
-
},
|
|
8537
|
+
}, $p = (e) => typeof e == "object" && e && "value" in e ? e.value : e, em = (e) => {
|
|
8538
8538
|
var t;
|
|
8539
8539
|
if (e.id != null) return String(e.id);
|
|
8540
|
-
let n =
|
|
8540
|
+
let n = $p((t = e.cells) == null || (t = t[0]) == null ? void 0 : t.value);
|
|
8541
8541
|
return n == null ? "" : String(n);
|
|
8542
|
-
},
|
|
8542
|
+
}, tm = (e, t) => ({
|
|
8543
8543
|
...e,
|
|
8544
8544
|
cells: e.cells.map((e) => ({
|
|
8545
8545
|
...e,
|
|
@@ -8548,7 +8548,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8548
8548
|
...t
|
|
8549
8549
|
}
|
|
8550
8550
|
}))
|
|
8551
|
-
}),
|
|
8551
|
+
}), nm = (e, t) => ({
|
|
8552
8552
|
...e,
|
|
8553
8553
|
cells: e.cells.map((e, n) => {
|
|
8554
8554
|
var r;
|
|
@@ -8557,17 +8557,17 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8557
8557
|
...e,
|
|
8558
8558
|
style: {
|
|
8559
8559
|
...e.style,
|
|
8560
|
-
...
|
|
8560
|
+
...Wp
|
|
8561
8561
|
},
|
|
8562
8562
|
tooltip: typeof a == "number" ? String(a) : a
|
|
8563
8563
|
};
|
|
8564
8564
|
})
|
|
8565
|
-
}),
|
|
8565
|
+
}), rm = (e = [], t = []) => {
|
|
8566
8566
|
let n = /* @__PURE__ */ new Map();
|
|
8567
|
-
for (let e of t) n.set(
|
|
8568
|
-
let r = new Set(e.map(
|
|
8567
|
+
for (let e of t) n.set(em(e), e);
|
|
8568
|
+
let r = new Set(e.map(em)), i = /* @__PURE__ */ new Map(), a = [], o = null;
|
|
8569
8569
|
for (let e = t.length - 1; e >= 0; e--) {
|
|
8570
|
-
let n = t[e], c =
|
|
8570
|
+
let n = t[e], c = em(n);
|
|
8571
8571
|
if (r.has(c)) {
|
|
8572
8572
|
o = c;
|
|
8573
8573
|
continue;
|
|
@@ -8582,7 +8582,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8582
8582
|
a.reverse();
|
|
8583
8583
|
let c = [];
|
|
8584
8584
|
for (let t of e) {
|
|
8585
|
-
let e =
|
|
8585
|
+
let e = em(t), r = i.get(e);
|
|
8586
8586
|
if (r) for (let e of r) c.push({
|
|
8587
8587
|
status: "deleted",
|
|
8588
8588
|
row: e
|
|
@@ -8602,17 +8602,17 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8602
8602
|
row: e
|
|
8603
8603
|
});
|
|
8604
8604
|
return c;
|
|
8605
|
-
},
|
|
8606
|
-
let i = h(() =>
|
|
8605
|
+
}, im = (e) => e.status === "deleted" ? tm(e.row, Hp) : e.status === "added" ? tm(e.row, Up) : nm(e.row, e.compareRow), am = ({ table: e, compareRows: t, beforeRenderRow: n, ...r }) => {
|
|
8606
|
+
let i = h(() => rm(e.rows, t), [e.rows, t]), a = !!e.infiniteScroll, o = h(() => {
|
|
8607
8607
|
if (!a) return i.map((e) => e.row);
|
|
8608
8608
|
}, [a, i]), s = l(({ row: e, rowIndex: t }) => {
|
|
8609
|
-
let r = i[t], a = r ?
|
|
8609
|
+
let r = i[t], a = r ? im(r) : e;
|
|
8610
8610
|
return n ? n({
|
|
8611
8611
|
row: a,
|
|
8612
8612
|
rowIndex: t
|
|
8613
8613
|
}) : a;
|
|
8614
8614
|
}, [i, n]);
|
|
8615
|
-
return /* @__PURE__ */ S(
|
|
8615
|
+
return /* @__PURE__ */ S(nu, {
|
|
8616
8616
|
...r,
|
|
8617
8617
|
beforeRenderRow: s,
|
|
8618
8618
|
table: {
|
|
@@ -8625,7 +8625,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8625
8625
|
};
|
|
8626
8626
|
//#endregion
|
|
8627
8627
|
//#region src/helpers/date.ts
|
|
8628
|
-
function
|
|
8628
|
+
function om({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i, locale: a }) {
|
|
8629
8629
|
return e ? new Date(e).toLocaleString(a, {
|
|
8630
8630
|
year: "numeric",
|
|
8631
8631
|
month: "short",
|
|
@@ -8639,28 +8639,28 @@ function im({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i
|
|
|
8639
8639
|
}
|
|
8640
8640
|
//#endregion
|
|
8641
8641
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/clone.js
|
|
8642
|
-
function
|
|
8642
|
+
function sm(e) {
|
|
8643
8643
|
var t;
|
|
8644
8644
|
let n = /^\/(.*)\/([gimyu]*)$/.exec(e.toString());
|
|
8645
8645
|
if (!n) throw Error("Invalid RegExp");
|
|
8646
8646
|
return new RegExp((t = n[1]) == null ? "" : t, n[2]);
|
|
8647
8647
|
}
|
|
8648
|
-
function
|
|
8648
|
+
function cm(e) {
|
|
8649
8649
|
if (typeof e != "object") return e;
|
|
8650
8650
|
if (e === null) return null;
|
|
8651
|
-
if (Array.isArray(e)) return e.map(
|
|
8651
|
+
if (Array.isArray(e)) return e.map(cm);
|
|
8652
8652
|
if (e instanceof Date) return new Date(e.getTime());
|
|
8653
|
-
if (e instanceof RegExp) return
|
|
8653
|
+
if (e instanceof RegExp) return sm(e);
|
|
8654
8654
|
let t = {};
|
|
8655
|
-
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
8655
|
+
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = cm(e[n]));
|
|
8656
8656
|
return t;
|
|
8657
8657
|
}
|
|
8658
8658
|
//#endregion
|
|
8659
8659
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/assertions/arrays.js
|
|
8660
|
-
function
|
|
8660
|
+
function lm(e, t) {
|
|
8661
8661
|
if (e.length === 0) throw Error(t || "Expected a non-empty array");
|
|
8662
8662
|
}
|
|
8663
|
-
var
|
|
8663
|
+
var um = (e) => e[e.length - 1], dm = class {
|
|
8664
8664
|
setResult(e) {
|
|
8665
8665
|
return this.result = e, this.hasResult = !0, this;
|
|
8666
8666
|
}
|
|
@@ -8668,16 +8668,16 @@ var cm = (e) => e[e.length - 1], lm = class {
|
|
|
8668
8668
|
return this.exiting = !0, this;
|
|
8669
8669
|
}
|
|
8670
8670
|
push(e, t) {
|
|
8671
|
-
return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? (
|
|
8671
|
+
return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? (lm(this.children), um(this.children).next = e, this.children.push(e)) : (this.children = [e], this.nextAfterChildren = this.next || null, this.next = e), e.next = this, this;
|
|
8672
8672
|
}
|
|
8673
|
-
},
|
|
8673
|
+
}, fm = class extends dm {
|
|
8674
8674
|
constructor(e, t) {
|
|
8675
8675
|
super(), this.left = e, this.right = t, this.pipe = "diff";
|
|
8676
8676
|
}
|
|
8677
8677
|
prepareDeltaResult(e) {
|
|
8678
8678
|
var t, n, r, i;
|
|
8679
8679
|
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)) {
|
|
8680
|
-
let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues :
|
|
8680
|
+
let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues : cm;
|
|
8681
8681
|
typeof e[0] == "object" && (e[0] = t(e[0])), typeof e[1] == "object" && (e[1] = t(e[1]));
|
|
8682
8682
|
}
|
|
8683
8683
|
return e;
|
|
@@ -8685,15 +8685,15 @@ var cm = (e) => e[e.length - 1], lm = class {
|
|
|
8685
8685
|
setResult(e) {
|
|
8686
8686
|
return this.prepareDeltaResult(e), super.setResult(e);
|
|
8687
8687
|
}
|
|
8688
|
-
},
|
|
8688
|
+
}, pm = class extends dm {
|
|
8689
8689
|
constructor(e, t) {
|
|
8690
8690
|
super(), this.left = e, this.delta = t, this.pipe = "patch";
|
|
8691
8691
|
}
|
|
8692
|
-
},
|
|
8692
|
+
}, mm = class extends dm {
|
|
8693
8693
|
constructor(e) {
|
|
8694
8694
|
super(), this.delta = e, this.pipe = "reverse";
|
|
8695
8695
|
}
|
|
8696
|
-
},
|
|
8696
|
+
}, hm = class {
|
|
8697
8697
|
constructor(e) {
|
|
8698
8698
|
this.name = e, this.filters = [];
|
|
8699
8699
|
}
|
|
@@ -8757,7 +8757,7 @@ var cm = (e) => e[e.length - 1], lm = class {
|
|
|
8757
8757
|
}
|
|
8758
8758
|
}), this);
|
|
8759
8759
|
}
|
|
8760
|
-
},
|
|
8760
|
+
}, gm = class {
|
|
8761
8761
|
constructor(e) {
|
|
8762
8762
|
this.selfOptions = e || {}, this.pipes = {};
|
|
8763
8763
|
}
|
|
@@ -8784,7 +8784,7 @@ var cm = (e) => e[e.length - 1], lm = class {
|
|
|
8784
8784
|
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);
|
|
8785
8785
|
return n.hasResult ? n.result : void 0;
|
|
8786
8786
|
}
|
|
8787
|
-
},
|
|
8787
|
+
}, _m = (e, t, n, r) => e[n] === t[r], vm = (e, t, n, r) => {
|
|
8788
8788
|
var i, a, o;
|
|
8789
8789
|
let s = e.length, c = t.length, l, u, d = Array(s + 1);
|
|
8790
8790
|
for (l = 0; l < s + 1; l++) {
|
|
@@ -8800,7 +8800,7 @@ var cm = (e) => e[e.length - 1], lm = class {
|
|
|
8800
8800
|
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);
|
|
8801
8801
|
}
|
|
8802
8802
|
return d;
|
|
8803
|
-
},
|
|
8803
|
+
}, ym = (e, t, n, r) => {
|
|
8804
8804
|
let i = t.length, a = n.length, o = {
|
|
8805
8805
|
sequence: [],
|
|
8806
8806
|
indices1: [],
|
|
@@ -8822,11 +8822,11 @@ var cm = (e) => e[e.length - 1], lm = class {
|
|
|
8822
8822
|
}
|
|
8823
8823
|
}
|
|
8824
8824
|
return o;
|
|
8825
|
-
},
|
|
8825
|
+
}, bm = { get: (e, t, n, r) => {
|
|
8826
8826
|
let i = r || {};
|
|
8827
|
-
return
|
|
8828
|
-
} },
|
|
8829
|
-
function
|
|
8827
|
+
return ym(vm(e, t, n || _m, i), e, t, i);
|
|
8828
|
+
} }, xm = 3;
|
|
8829
|
+
function Sm(e, t, n, r) {
|
|
8830
8830
|
for (let i = 0; i < n; i++) {
|
|
8831
8831
|
let n = e[i];
|
|
8832
8832
|
for (let e = 0; e < r; e++) {
|
|
@@ -8836,7 +8836,7 @@ function bm(e, t, n, r) {
|
|
|
8836
8836
|
}
|
|
8837
8837
|
return !1;
|
|
8838
8838
|
}
|
|
8839
|
-
function
|
|
8839
|
+
function Cm(e, t, n, r, i) {
|
|
8840
8840
|
let a = e[n], o = t[r];
|
|
8841
8841
|
if (a === o) return !0;
|
|
8842
8842
|
if (typeof a != "object" || typeof o != "object") return !1;
|
|
@@ -8849,15 +8849,15 @@ function xm(e, t, n, r, i) {
|
|
|
8849
8849
|
let l = i.hashCache2[r];
|
|
8850
8850
|
return l === void 0 && (i.hashCache2[r] = l = s(o, r)), l !== void 0 && c === l;
|
|
8851
8851
|
}
|
|
8852
|
-
var
|
|
8852
|
+
var wm = function(e) {
|
|
8853
8853
|
var t, n, r, i, a;
|
|
8854
8854
|
if (!e.leftIsArray) return;
|
|
8855
8855
|
let o = {
|
|
8856
8856
|
objectHash: (t = e.options) == null ? void 0 : t.objectHash,
|
|
8857
8857
|
matchByPosition: (n = e.options) == null ? void 0 : n.matchByPosition
|
|
8858
8858
|
}, s = 0, c = 0, l, u, d, f = e.left, p = e.right, m = f.length, h = p.length, g;
|
|
8859
|
-
for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !
|
|
8860
|
-
for (; c + s < m && c + s < h &&
|
|
8859
|
+
for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !Sm(f, p, m, h)); s < m && s < h && Cm(f, p, s, s, o);) l = s, g = new fm(f[l], p[l]), e.push(g, l), s++;
|
|
8860
|
+
for (; c + s < m && c + s < h && Cm(f, p, m - 1 - c, h - 1 - c, o);) u = m - 1 - c, d = h - 1 - c, g = new fm(f[u], p[d]), e.push(g, d), c++;
|
|
8861
8861
|
let _;
|
|
8862
8862
|
if (s + c === m) {
|
|
8863
8863
|
if (m === h) {
|
|
@@ -8881,7 +8881,7 @@ var Sm = function(e) {
|
|
|
8881
8881
|
return;
|
|
8882
8882
|
}
|
|
8883
8883
|
o.hashCache1 = void 0, o.hashCache2 = void 0;
|
|
8884
|
-
let v = f.slice(s, m - c), y = p.slice(s, h - c), b =
|
|
8884
|
+
let v = f.slice(s, m - c), y = p.slice(s, h - c), b = bm.get(v, y, Cm, o), x = [];
|
|
8885
8885
|
for (_ = _ || { _t: "a" }, l = s; l < m - c; l++) if (b.indices1.indexOf(l - s) < 0) {
|
|
8886
8886
|
let t = `_${l}`;
|
|
8887
8887
|
_[t] = [
|
|
@@ -8902,8 +8902,8 @@ var Sm = function(e) {
|
|
|
8902
8902
|
if (S && w > 0) for (let n = 0; n < w; n++) {
|
|
8903
8903
|
u = x[n];
|
|
8904
8904
|
let r = u === void 0 ? void 0 : _[`_${u}`];
|
|
8905
|
-
if (u !== void 0 && r &&
|
|
8906
|
-
r.splice(1, 2, l,
|
|
8905
|
+
if (u !== void 0 && r && Cm(v, y, u - s, l - s, o)) {
|
|
8906
|
+
r.splice(1, 2, l, xm), r.splice(1, 2, l, xm), C || (r[0] = ""), d = l, g = new fm(f[u], p[d]), e.push(g, d), x.splice(n, 1), t = !0;
|
|
8907
8907
|
break;
|
|
8908
8908
|
}
|
|
8909
8909
|
}
|
|
@@ -8911,20 +8911,20 @@ var Sm = function(e) {
|
|
|
8911
8911
|
} else {
|
|
8912
8912
|
if (b.indices1[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices1: ${b.indices1}`);
|
|
8913
8913
|
if (u = b.indices1[t] + s, b.indices2[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices2: ${b.indices2}`);
|
|
8914
|
-
d = b.indices2[t] + s, g = new
|
|
8914
|
+
d = b.indices2[t] + s, g = new fm(f[u], p[d]), e.push(g, d);
|
|
8915
8915
|
}
|
|
8916
8916
|
}
|
|
8917
8917
|
e.setResult(_).exit();
|
|
8918
8918
|
};
|
|
8919
|
-
|
|
8920
|
-
var
|
|
8919
|
+
wm.filterName = "arrays";
|
|
8920
|
+
var Tm = {
|
|
8921
8921
|
numerically(e, t) {
|
|
8922
8922
|
return e - t;
|
|
8923
8923
|
},
|
|
8924
8924
|
numericallyBy(e) {
|
|
8925
8925
|
return (t, n) => t[e] - n[e];
|
|
8926
8926
|
}
|
|
8927
|
-
},
|
|
8927
|
+
}, Em = function(e) {
|
|
8928
8928
|
var t;
|
|
8929
8929
|
if (!e.nested) return;
|
|
8930
8930
|
let n = e.delta;
|
|
@@ -8933,7 +8933,7 @@ var Cm = {
|
|
|
8933
8933
|
for (r in a) if (r !== "_t") {
|
|
8934
8934
|
if (r[0] === "_") {
|
|
8935
8935
|
let e = r;
|
|
8936
|
-
if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] ===
|
|
8936
|
+
if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] === xm)) s.push(Number.parseInt(r.slice(1), 10));
|
|
8937
8937
|
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]}`);
|
|
8938
8938
|
} else {
|
|
8939
8939
|
let e = r;
|
|
@@ -8946,15 +8946,15 @@ var Cm = {
|
|
|
8946
8946
|
});
|
|
8947
8947
|
}
|
|
8948
8948
|
}
|
|
8949
|
-
for (s = s.sort(
|
|
8949
|
+
for (s = s.sort(Tm.numerically), r = s.length - 1; r >= 0; r--) {
|
|
8950
8950
|
if (i = s[r], i === void 0) continue;
|
|
8951
8951
|
let e = a[`_${i}`], t = o.splice(i, 1)[0];
|
|
8952
|
-
(e == null ? void 0 : e[2]) ===
|
|
8952
|
+
(e == null ? void 0 : e[2]) === xm && c.push({
|
|
8953
8953
|
index: e[1],
|
|
8954
8954
|
value: t
|
|
8955
8955
|
});
|
|
8956
8956
|
}
|
|
8957
|
-
c = c.sort(
|
|
8957
|
+
c = c.sort(Tm.numericallyBy("index"));
|
|
8958
8958
|
let u = c.length;
|
|
8959
8959
|
for (r = 0; r < u; r++) {
|
|
8960
8960
|
let e = c[r];
|
|
@@ -8964,7 +8964,7 @@ var Cm = {
|
|
|
8964
8964
|
if (d > 0) for (r = 0; r < d; r++) {
|
|
8965
8965
|
let t = l[r];
|
|
8966
8966
|
if (t === void 0) continue;
|
|
8967
|
-
let n = new
|
|
8967
|
+
let n = new pm(o[t.index], t.delta);
|
|
8968
8968
|
e.push(n, t.index);
|
|
8969
8969
|
}
|
|
8970
8970
|
if (!e.children) {
|
|
@@ -8973,8 +8973,8 @@ var Cm = {
|
|
|
8973
8973
|
}
|
|
8974
8974
|
e.exit();
|
|
8975
8975
|
};
|
|
8976
|
-
|
|
8977
|
-
var
|
|
8976
|
+
Em.filterName = "arrays";
|
|
8977
|
+
var Dm = function(e) {
|
|
8978
8978
|
if (!e || !e.children || e.delta._t !== "a") return;
|
|
8979
8979
|
let t = e.left, n = e.children.length;
|
|
8980
8980
|
for (let r = 0; r < n; r++) {
|
|
@@ -8985,16 +8985,16 @@ var Tm = function(e) {
|
|
|
8985
8985
|
}
|
|
8986
8986
|
e.setResult(t).exit();
|
|
8987
8987
|
};
|
|
8988
|
-
|
|
8989
|
-
var
|
|
8988
|
+
Dm.filterName = "arraysCollectChildren";
|
|
8989
|
+
var Om = function(e) {
|
|
8990
8990
|
if (!e.nested) {
|
|
8991
8991
|
let t = e.delta;
|
|
8992
|
-
if (t[2] ===
|
|
8992
|
+
if (t[2] === xm) {
|
|
8993
8993
|
let n = t;
|
|
8994
8994
|
e.newName = `_${n[1]}`, e.setResult([
|
|
8995
8995
|
n[0],
|
|
8996
8996
|
Number.parseInt(e.childName.substring(1), 10),
|
|
8997
|
-
|
|
8997
|
+
xm
|
|
8998
8998
|
]).exit();
|
|
8999
8999
|
}
|
|
9000
9000
|
return;
|
|
@@ -9004,20 +9004,20 @@ var Em = function(e) {
|
|
|
9004
9004
|
let n = t;
|
|
9005
9005
|
for (let t in n) {
|
|
9006
9006
|
if (t === "_t") continue;
|
|
9007
|
-
let r = new
|
|
9007
|
+
let r = new mm(n[t]);
|
|
9008
9008
|
e.push(r, t);
|
|
9009
9009
|
}
|
|
9010
9010
|
e.exit();
|
|
9011
9011
|
};
|
|
9012
|
-
|
|
9013
|
-
var
|
|
9012
|
+
Om.filterName = "arrays";
|
|
9013
|
+
var km = (e, t, n) => {
|
|
9014
9014
|
if (typeof t == "string" && t[0] === "_") return Number.parseInt(t.substring(1), 10);
|
|
9015
9015
|
if (Array.isArray(n) && n[2] === 0) return `_${t}`;
|
|
9016
9016
|
let r = +t;
|
|
9017
9017
|
for (let n in e) {
|
|
9018
9018
|
let i = e[n];
|
|
9019
9019
|
if (Array.isArray(i)) {
|
|
9020
|
-
if (i[2] ===
|
|
9020
|
+
if (i[2] === xm) {
|
|
9021
9021
|
let e = Number.parseInt(n.substring(1), 10), a = i[1];
|
|
9022
9022
|
if (a === +t) return e;
|
|
9023
9023
|
e <= r && a > r ? r++ : e >= r && a < r && r--;
|
|
@@ -9025,7 +9025,7 @@ var Dm = (e, t, n) => {
|
|
|
9025
9025
|
}
|
|
9026
9026
|
}
|
|
9027
9027
|
return r;
|
|
9028
|
-
},
|
|
9028
|
+
}, Am = (e) => {
|
|
9029
9029
|
if (!e || !e.children) return;
|
|
9030
9030
|
let t = e.delta;
|
|
9031
9031
|
if (t._t !== "a") return;
|
|
@@ -9036,22 +9036,22 @@ var Dm = (e, t, n) => {
|
|
|
9036
9036
|
let a = r.newName;
|
|
9037
9037
|
if (a === void 0) {
|
|
9038
9038
|
if (r.childName === void 0) throw Error("child.childName is undefined");
|
|
9039
|
-
a =
|
|
9039
|
+
a = km(n, r.childName, r.result);
|
|
9040
9040
|
}
|
|
9041
9041
|
i[a] !== r.result && (i[a] = r.result);
|
|
9042
9042
|
}
|
|
9043
9043
|
e.setResult(i).exit();
|
|
9044
9044
|
};
|
|
9045
|
-
|
|
9045
|
+
Am.filterName = "arraysCollectChildren";
|
|
9046
9046
|
//#endregion
|
|
9047
9047
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/dates.js
|
|
9048
|
-
var
|
|
9048
|
+
var jm = function(e) {
|
|
9049
9049
|
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();
|
|
9050
9050
|
};
|
|
9051
|
-
|
|
9051
|
+
jm.filterName = "dates";
|
|
9052
9052
|
//#endregion
|
|
9053
9053
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/nested.js
|
|
9054
|
-
var
|
|
9054
|
+
var Mm = /* @__PURE__ */ new Set(["__proto__"]), Nm = (e) => {
|
|
9055
9055
|
if (!e || !e.children) return;
|
|
9056
9056
|
let t = e.children.length, n = e.result;
|
|
9057
9057
|
for (let r = 0; r < t; r++) {
|
|
@@ -9063,18 +9063,18 @@ var Am = /* @__PURE__ */ new Set(["__proto__"]), jm = (e) => {
|
|
|
9063
9063
|
}
|
|
9064
9064
|
n && e.leftIsArray && (n._t = "a"), e.setResult(n).exit();
|
|
9065
9065
|
};
|
|
9066
|
-
|
|
9067
|
-
var
|
|
9066
|
+
Nm.filterName = "collectChildren";
|
|
9067
|
+
var Pm = (e) => {
|
|
9068
9068
|
var t;
|
|
9069
9069
|
if (e.leftIsArray || e.leftType !== "object") return;
|
|
9070
9070
|
let n = e.left, r = e.right, i = (t = e.options) == null ? void 0 : t.propertyFilter;
|
|
9071
9071
|
for (let t in n) {
|
|
9072
9072
|
if (!Object.prototype.hasOwnProperty.call(n, t) || i && !i(t, e)) continue;
|
|
9073
|
-
let a = new
|
|
9073
|
+
let a = new fm(n[t], r[t]);
|
|
9074
9074
|
e.push(a, t);
|
|
9075
9075
|
}
|
|
9076
9076
|
for (let t in r) if (Object.prototype.hasOwnProperty.call(r, t) && !(i && !i(t, e)) && n[t] === void 0) {
|
|
9077
|
-
let n = new
|
|
9077
|
+
let n = new fm(void 0, r[t]);
|
|
9078
9078
|
e.push(n, t);
|
|
9079
9079
|
}
|
|
9080
9080
|
if (!e.children || e.children.length === 0) {
|
|
@@ -9083,15 +9083,15 @@ var Mm = (e) => {
|
|
|
9083
9083
|
}
|
|
9084
9084
|
e.exit();
|
|
9085
9085
|
};
|
|
9086
|
-
|
|
9087
|
-
var
|
|
9086
|
+
Pm.filterName = "objects";
|
|
9087
|
+
var Fm = function(e) {
|
|
9088
9088
|
if (!e.nested) return;
|
|
9089
9089
|
let t = e.delta;
|
|
9090
9090
|
if (t._t) return;
|
|
9091
9091
|
let n = t, r = !1;
|
|
9092
9092
|
for (let t in n) {
|
|
9093
|
-
if (
|
|
9094
|
-
let i = e.left, a = new
|
|
9093
|
+
if (Mm.has(t) || !Object.prototype.hasOwnProperty.call(n, t)) continue;
|
|
9094
|
+
let i = e.left, a = new pm(typeof i == "object" && i && Object.prototype.hasOwnProperty.call(i, t) ? i[t] : void 0, n[t]);
|
|
9095
9095
|
e.push(a, t), r = !0;
|
|
9096
9096
|
}
|
|
9097
9097
|
if (!r) {
|
|
@@ -9100,8 +9100,8 @@ var Nm = function(e) {
|
|
|
9100
9100
|
}
|
|
9101
9101
|
e.exit();
|
|
9102
9102
|
};
|
|
9103
|
-
|
|
9104
|
-
var
|
|
9103
|
+
Fm.filterName = "objects";
|
|
9104
|
+
var Im = function(e) {
|
|
9105
9105
|
if (!e || !e.children || e.delta._t) return;
|
|
9106
9106
|
if (e.left === null || typeof e.left != "object") {
|
|
9107
9107
|
e.setResult(e.left).exit();
|
|
@@ -9112,17 +9112,17 @@ var Pm = function(e) {
|
|
|
9112
9112
|
let n = e.children[r];
|
|
9113
9113
|
if (n === void 0) continue;
|
|
9114
9114
|
let i = n.childName;
|
|
9115
|
-
|
|
9115
|
+
Mm.has(i) || (Object.prototype.hasOwnProperty.call(e.left, i) && n.result === void 0 ? delete t[i] : t[i] !== n.result && (t[i] = n.result));
|
|
9116
9116
|
}
|
|
9117
9117
|
e.setResult(t).exit();
|
|
9118
9118
|
};
|
|
9119
|
-
|
|
9120
|
-
var
|
|
9119
|
+
Im.filterName = "collectChildren";
|
|
9120
|
+
var Lm = function(e) {
|
|
9121
9121
|
if (!e.nested || e.delta._t) return;
|
|
9122
9122
|
let t = e.delta, n = !1;
|
|
9123
9123
|
for (let r in t) {
|
|
9124
|
-
if (
|
|
9125
|
-
let i = new
|
|
9124
|
+
if (Mm.has(r) || !Object.prototype.hasOwnProperty.call(t, r)) continue;
|
|
9125
|
+
let i = new mm(t[r]);
|
|
9126
9126
|
e.push(i, r), n = !0;
|
|
9127
9127
|
}
|
|
9128
9128
|
if (!n) {
|
|
@@ -9131,25 +9131,25 @@ var Fm = function(e) {
|
|
|
9131
9131
|
}
|
|
9132
9132
|
e.exit();
|
|
9133
9133
|
};
|
|
9134
|
-
|
|
9135
|
-
var
|
|
9134
|
+
Lm.filterName = "objects";
|
|
9135
|
+
var Rm = (e) => {
|
|
9136
9136
|
if (!e || !e.children || e.delta._t) return;
|
|
9137
9137
|
let t = e.children.length, n = {};
|
|
9138
9138
|
for (let r = 0; r < t; r++) {
|
|
9139
9139
|
let t = e.children[r];
|
|
9140
9140
|
if (t === void 0) continue;
|
|
9141
9141
|
let i = t.childName;
|
|
9142
|
-
|
|
9142
|
+
Mm.has(i) || n[i] !== t.result && (n[i] = t.result);
|
|
9143
9143
|
}
|
|
9144
9144
|
e.setResult(n).exit();
|
|
9145
9145
|
};
|
|
9146
|
-
|
|
9146
|
+
Rm.filterName = "collectChildren";
|
|
9147
9147
|
//#endregion
|
|
9148
9148
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/texts.js
|
|
9149
|
-
var
|
|
9150
|
-
function
|
|
9149
|
+
var zm = 2, Bm = 60, Vm = null;
|
|
9150
|
+
function Hm(e, t) {
|
|
9151
9151
|
var n;
|
|
9152
|
-
if (!
|
|
9152
|
+
if (!Vm) {
|
|
9153
9153
|
let r;
|
|
9154
9154
|
if ((n = e == null ? void 0 : e.textDiff) != null && n.diffMatchPatch) r = new e.textDiff.diffMatchPatch();
|
|
9155
9155
|
else {
|
|
@@ -9157,7 +9157,7 @@ function Bm(e, t) {
|
|
|
9157
9157
|
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.");
|
|
9158
9158
|
throw e.diff_match_patch_not_found = !0, e;
|
|
9159
9159
|
}
|
|
9160
|
-
|
|
9160
|
+
Vm = {
|
|
9161
9161
|
diff: (e, t) => r.patch_toText(r.patch_make(e, t)),
|
|
9162
9162
|
patch: (e, t) => {
|
|
9163
9163
|
let n = r.patch_apply(r.patch_fromText(t), e);
|
|
@@ -9169,17 +9169,17 @@ function Bm(e, t) {
|
|
|
9169
9169
|
}
|
|
9170
9170
|
};
|
|
9171
9171
|
}
|
|
9172
|
-
return
|
|
9172
|
+
return Vm;
|
|
9173
9173
|
}
|
|
9174
|
-
var
|
|
9174
|
+
var Um = function(e) {
|
|
9175
9175
|
var t, n;
|
|
9176
9176
|
if (e.leftType !== "string") return;
|
|
9177
|
-
let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) ||
|
|
9177
|
+
let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) || Bm;
|
|
9178
9178
|
if (r.length < a || i.length < a) {
|
|
9179
9179
|
e.setResult([r, i]).exit();
|
|
9180
9180
|
return;
|
|
9181
9181
|
}
|
|
9182
|
-
let o =
|
|
9182
|
+
let o = Hm(e.options);
|
|
9183
9183
|
if (!o) {
|
|
9184
9184
|
e.setResult([r, i]).exit();
|
|
9185
9185
|
return;
|
|
@@ -9188,19 +9188,19 @@ var Vm = function(e) {
|
|
|
9188
9188
|
e.setResult([
|
|
9189
9189
|
s(r, i),
|
|
9190
9190
|
0,
|
|
9191
|
-
|
|
9191
|
+
zm
|
|
9192
9192
|
]).exit();
|
|
9193
9193
|
};
|
|
9194
|
-
|
|
9195
|
-
var
|
|
9194
|
+
Um.filterName = "texts";
|
|
9195
|
+
var Wm = function(e) {
|
|
9196
9196
|
if (e.nested) return;
|
|
9197
9197
|
let t = e.delta;
|
|
9198
|
-
if (t[2] !==
|
|
9199
|
-
let n = t, r =
|
|
9198
|
+
if (t[2] !== zm) return;
|
|
9199
|
+
let n = t, r = Hm(e.options, !0).patch;
|
|
9200
9200
|
e.setResult(r(e.left, n[0])).exit();
|
|
9201
9201
|
};
|
|
9202
|
-
|
|
9203
|
-
var
|
|
9202
|
+
Wm.filterName = "texts";
|
|
9203
|
+
var Gm = (e) => {
|
|
9204
9204
|
var t, n, r;
|
|
9205
9205
|
let i = /^@@ +-(\d+),(\d+) +\+(\d+),(\d+) +@@$/, a = e.split("\n");
|
|
9206
9206
|
for (let e = 0; e < a.length; e++) {
|
|
@@ -9221,21 +9221,21 @@ var Um = (e) => {
|
|
|
9221
9221
|
} else s === "-" && (a[e] = `+${(r = a[e]) == null ? void 0 : r.slice(1)}`);
|
|
9222
9222
|
}
|
|
9223
9223
|
return a.join("\n");
|
|
9224
|
-
},
|
|
9224
|
+
}, Km = function(e) {
|
|
9225
9225
|
if (e.nested) return;
|
|
9226
9226
|
let t = e.delta;
|
|
9227
|
-
if (t[2] !==
|
|
9227
|
+
if (t[2] !== zm) return;
|
|
9228
9228
|
let n = t;
|
|
9229
9229
|
e.setResult([
|
|
9230
|
-
|
|
9230
|
+
Gm(n[0]),
|
|
9231
9231
|
0,
|
|
9232
|
-
|
|
9232
|
+
zm
|
|
9233
9233
|
]).exit();
|
|
9234
9234
|
};
|
|
9235
|
-
|
|
9235
|
+
Km.filterName = "texts";
|
|
9236
9236
|
//#endregion
|
|
9237
9237
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/trivial.js
|
|
9238
|
-
var
|
|
9238
|
+
var qm = function(e) {
|
|
9239
9239
|
if (e.left === e.right) {
|
|
9240
9240
|
e.setResult(void 0).exit();
|
|
9241
9241
|
return;
|
|
@@ -9268,8 +9268,8 @@ var Gm = function(e) {
|
|
|
9268
9268
|
}
|
|
9269
9269
|
e.left instanceof RegExp && (e.right instanceof RegExp ? e.setResult([e.left.toString(), e.right.toString()]).exit() : e.setResult([e.left, e.right]).exit());
|
|
9270
9270
|
};
|
|
9271
|
-
|
|
9272
|
-
var
|
|
9271
|
+
qm.filterName = "trivial";
|
|
9272
|
+
var Jm = function(e) {
|
|
9273
9273
|
if (e.delta === void 0) {
|
|
9274
9274
|
e.setResult(e.left).exit();
|
|
9275
9275
|
return;
|
|
@@ -9293,8 +9293,8 @@ var Km = function(e) {
|
|
|
9293
9293
|
}
|
|
9294
9294
|
t.length === 3 && t[2] === 0 && e.setResult(void 0).exit();
|
|
9295
9295
|
};
|
|
9296
|
-
|
|
9297
|
-
var
|
|
9296
|
+
Jm.filterName = "trivial";
|
|
9297
|
+
var Ym = function(e) {
|
|
9298
9298
|
if (e.delta === void 0) {
|
|
9299
9299
|
e.setResult(e.delta).exit();
|
|
9300
9300
|
return;
|
|
@@ -9315,36 +9315,36 @@ var qm = function(e) {
|
|
|
9315
9315
|
}
|
|
9316
9316
|
t.length === 3 && t[2] === 0 && e.setResult([t[0]]).exit();
|
|
9317
9317
|
};
|
|
9318
|
-
|
|
9318
|
+
Ym.filterName = "trivial";
|
|
9319
9319
|
//#endregion
|
|
9320
9320
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/diffpatcher.js
|
|
9321
|
-
var
|
|
9321
|
+
var Xm = class {
|
|
9322
9322
|
constructor(e) {
|
|
9323
|
-
this.processor = new
|
|
9323
|
+
this.processor = new gm(e), this.processor.pipe(new hm("diff").append(Nm, qm, jm, Um, Pm, wm).shouldHaveResult()), this.processor.pipe(new hm("patch").append(Im, Dm, Jm, Wm, Fm, Em).shouldHaveResult()), this.processor.pipe(new hm("reverse").append(Rm, Am, Ym, Km, Lm, Om).shouldHaveResult());
|
|
9324
9324
|
}
|
|
9325
9325
|
options(e) {
|
|
9326
9326
|
return this.processor.options(e);
|
|
9327
9327
|
}
|
|
9328
9328
|
diff(e, t) {
|
|
9329
|
-
return this.processor.process(new
|
|
9329
|
+
return this.processor.process(new fm(e, t));
|
|
9330
9330
|
}
|
|
9331
9331
|
patch(e, t) {
|
|
9332
|
-
return this.processor.process(new
|
|
9332
|
+
return this.processor.process(new pm(e, t));
|
|
9333
9333
|
}
|
|
9334
9334
|
reverse(e) {
|
|
9335
|
-
return this.processor.process(new
|
|
9335
|
+
return this.processor.process(new mm(e));
|
|
9336
9336
|
}
|
|
9337
9337
|
unpatch(e, t) {
|
|
9338
9338
|
return this.patch(e, this.reverse(t));
|
|
9339
9339
|
}
|
|
9340
9340
|
clone(e) {
|
|
9341
|
-
return
|
|
9341
|
+
return cm(e);
|
|
9342
9342
|
}
|
|
9343
9343
|
};
|
|
9344
9344
|
//#endregion
|
|
9345
9345
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/index.js
|
|
9346
|
-
function
|
|
9347
|
-
return new
|
|
9346
|
+
function Zm(e) {
|
|
9347
|
+
return new Xm(e);
|
|
9348
9348
|
}
|
|
9349
9349
|
//#endregion
|
|
9350
9350
|
//#region node_modules/.pnpm/@dmsnell+diff-match-patch@1.1.0/node_modules/@dmsnell/diff-match-patch/index.js
|
|
@@ -9906,46 +9906,46 @@ $.Diff = function(e, t) {
|
|
|
9906
9906
|
};
|
|
9907
9907
|
//#endregion
|
|
9908
9908
|
//#region src/components/audit-log/create-diff-patcher.tsx
|
|
9909
|
-
var
|
|
9909
|
+
var Qm = (e = {}) => Zm({
|
|
9910
9910
|
...e,
|
|
9911
9911
|
textDiff: {
|
|
9912
9912
|
diffMatchPatch: $,
|
|
9913
9913
|
minLength: 120
|
|
9914
9914
|
},
|
|
9915
9915
|
cloneDiffValues: !0
|
|
9916
|
-
}),
|
|
9916
|
+
}), $m = ["user", "unittemplate"], eh = Qm(), th = (e, t, n) => {
|
|
9917
9917
|
let r = Object.fromEntries(e.map((e) => [e.sectionKey, e.sectionLabel]));
|
|
9918
9918
|
for (let e = t.length - 1; e >= 0; e--) {
|
|
9919
9919
|
let n = r[t[e]];
|
|
9920
9920
|
if (n) return n;
|
|
9921
9921
|
}
|
|
9922
9922
|
return n || "";
|
|
9923
|
-
},
|
|
9923
|
+
}, nh = (e) => {
|
|
9924
9924
|
let t = (e) => _r(e) ? kr(e) : String(e);
|
|
9925
9925
|
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);
|
|
9926
|
-
},
|
|
9926
|
+
}, rh = (e) => {
|
|
9927
9927
|
switch (e.length) {
|
|
9928
9928
|
case 1: {
|
|
9929
9929
|
let [t] = e;
|
|
9930
9930
|
return {
|
|
9931
9931
|
type: "created",
|
|
9932
9932
|
before: "",
|
|
9933
|
-
after:
|
|
9933
|
+
after: nh(t)
|
|
9934
9934
|
};
|
|
9935
9935
|
}
|
|
9936
9936
|
case 2: {
|
|
9937
9937
|
let [t, n] = e;
|
|
9938
9938
|
return {
|
|
9939
9939
|
type: "modified",
|
|
9940
|
-
before:
|
|
9941
|
-
after:
|
|
9940
|
+
before: nh(t),
|
|
9941
|
+
after: nh(n)
|
|
9942
9942
|
};
|
|
9943
9943
|
}
|
|
9944
9944
|
case 3: {
|
|
9945
9945
|
let [t] = e;
|
|
9946
9946
|
return {
|
|
9947
9947
|
type: "deleted",
|
|
9948
|
-
before:
|
|
9948
|
+
before: nh(t),
|
|
9949
9949
|
after: ""
|
|
9950
9950
|
};
|
|
9951
9951
|
}
|
|
@@ -9955,15 +9955,15 @@ var Xm = (e = {}) => Ym({
|
|
|
9955
9955
|
after: ""
|
|
9956
9956
|
};
|
|
9957
9957
|
}
|
|
9958
|
-
},
|
|
9959
|
-
let r =
|
|
9958
|
+
}, ih = (e) => Array.isArray(e), ah = (e, t) => t ? ih(t) ? t.length === 0 ? e : t.reduce((e, t) => eh.unpatch(tn(e), tn(t)), tn(e)) : eh.unpatch(tn(e), tn(t)) : e, oh = (e) => e.createdAt || e.date, sh = (e, t, n) => {
|
|
9959
|
+
let r = oh(e);
|
|
9960
9960
|
if (!r) return {
|
|
9961
9961
|
oldJson: "",
|
|
9962
9962
|
newJson: "",
|
|
9963
9963
|
error: `Cannot create comparison view: missing date for audit log ${e.id}`
|
|
9964
9964
|
};
|
|
9965
9965
|
let i = t.filter((e) => {
|
|
9966
|
-
let t =
|
|
9966
|
+
let t = oh(e);
|
|
9967
9967
|
return !!(e.diffs && t && t >= r);
|
|
9968
9968
|
}), a = Array.from({ length: i.length + 1 });
|
|
9969
9969
|
a[0] = tn(n);
|
|
@@ -9976,7 +9976,7 @@ var Xm = (e = {}) => Ym({
|
|
|
9976
9976
|
a[e + 1] = a[e];
|
|
9977
9977
|
continue;
|
|
9978
9978
|
}
|
|
9979
|
-
a[e + 1] =
|
|
9979
|
+
a[e + 1] = ah(a[e], t);
|
|
9980
9980
|
}
|
|
9981
9981
|
let e = i.length > 0 ? a[i.length - 1] : n, t = i.length > 0 ? a[i.length] : n;
|
|
9982
9982
|
o = JSON.stringify(t == null ? "" : t, null, 2), s = JSON.stringify(e == null ? "" : e, null, 2);
|
|
@@ -9991,10 +9991,10 @@ var Xm = (e = {}) => Ym({
|
|
|
9991
9991
|
oldJson: o,
|
|
9992
9992
|
newJson: s
|
|
9993
9993
|
};
|
|
9994
|
-
},
|
|
9994
|
+
}, ch = (e, t, n = {}, r = []) => {
|
|
9995
9995
|
var i;
|
|
9996
9996
|
if (!e) return;
|
|
9997
|
-
let a = [
|
|
9997
|
+
let a = [...$m, ...(i = n.hiddenKeys) == null ? [] : i];
|
|
9998
9998
|
Object.keys(e).forEach((i) => {
|
|
9999
9999
|
var o;
|
|
10000
10000
|
let s = e[i];
|
|
@@ -10007,12 +10007,12 @@ var Xm = (e = {}) => Ym({
|
|
|
10007
10007
|
sn(s) ? t.push({
|
|
10008
10008
|
deltaFormat: [...s],
|
|
10009
10009
|
path: c
|
|
10010
|
-
}) : hn(s) &&
|
|
10010
|
+
}) : hn(s) && ch(s, t, n, c);
|
|
10011
10011
|
});
|
|
10012
|
-
},
|
|
10012
|
+
}, lh = (e, t = {}) => {
|
|
10013
10013
|
let n = [];
|
|
10014
|
-
return e ? (
|
|
10015
|
-
},
|
|
10014
|
+
return e ? (ch(e, n, t), n) : [];
|
|
10015
|
+
}, uh = (e) => e.replace(/\[\d+\]/g, "").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]/g, " ").replace(/\s+/g, " ").trim().replace(/^./, (e) => e.toUpperCase()), dh = (e) => {
|
|
10016
10016
|
if (e == null || e === "") return "empty";
|
|
10017
10017
|
if (typeof e == "boolean") return e ? "true" : "false";
|
|
10018
10018
|
if (typeof e == "string") return e;
|
|
@@ -10023,35 +10023,35 @@ var Xm = (e = {}) => Ym({
|
|
|
10023
10023
|
} catch {
|
|
10024
10024
|
return String(e);
|
|
10025
10025
|
}
|
|
10026
|
-
},
|
|
10026
|
+
}, fh = (e, t = e.length - 1) => {
|
|
10027
10027
|
if (t >= e.length) return "Value";
|
|
10028
10028
|
let n = e[t];
|
|
10029
|
-
return !n || mr(n) ?
|
|
10030
|
-
},
|
|
10031
|
-
let o =
|
|
10029
|
+
return !n || mr(n) ? fh(e, t - 1) : uh(n);
|
|
10030
|
+
}, ph = ({ userName: e, type: t, property: n, before: r, after: i, sectionName: a }) => {
|
|
10031
|
+
let o = dh(r), s = dh(i), c = a ? ` in ${a}` : "";
|
|
10032
10032
|
switch (t) {
|
|
10033
10033
|
case "modified": return `${e} updated ${n} from ${o} to ${s}${c}.`;
|
|
10034
10034
|
case "created": return `${e} created ${s}${c}.`;
|
|
10035
10035
|
case "deleted": return `${e} deleted ${o}${c}.`;
|
|
10036
10036
|
default: return `${e} changed ${n}${c}.`;
|
|
10037
10037
|
}
|
|
10038
|
-
},
|
|
10038
|
+
}, mh = ({ sectionNames: e, userName: t, diffs: n, defaultSectionName: r }) => {
|
|
10039
10039
|
let i = {
|
|
10040
10040
|
headers: [{ cells: [{ value: "Changes" }] }],
|
|
10041
10041
|
rows: n.map((n) => {
|
|
10042
|
-
let { deltaFormat: i, path: a } = n, o =
|
|
10043
|
-
return { cells: [{ value:
|
|
10042
|
+
let { deltaFormat: i, path: a } = n, o = th(e, a, r), { type: s, before: c, after: l } = rh(i);
|
|
10043
|
+
return { cells: [{ value: ph({
|
|
10044
10044
|
userName: t,
|
|
10045
10045
|
type: s,
|
|
10046
|
-
property:
|
|
10046
|
+
property: fh(a),
|
|
10047
10047
|
before: c,
|
|
10048
10048
|
after: l,
|
|
10049
10049
|
sectionName: o
|
|
10050
10050
|
}) }] };
|
|
10051
10051
|
})
|
|
10052
10052
|
};
|
|
10053
|
-
return /* @__PURE__ */ S(
|
|
10054
|
-
},
|
|
10053
|
+
return /* @__PURE__ */ S(nu, { table: i });
|
|
10054
|
+
}, hh = Object.freeze({
|
|
10055
10055
|
summary: {
|
|
10056
10056
|
label: "Summary",
|
|
10057
10057
|
value: "summary"
|
|
@@ -10060,13 +10060,13 @@ var Xm = (e = {}) => Ym({
|
|
|
10060
10060
|
label: "Compare",
|
|
10061
10061
|
value: "compare"
|
|
10062
10062
|
}
|
|
10063
|
-
}),
|
|
10064
|
-
let c = [
|
|
10063
|
+
}), gh = ({ auditLog: e, auditLogs: t, data: n, isOpen: r, transformDiffsConfig: i, sectionNames: a, defaultSectionName: o, onClose: s }) => {
|
|
10064
|
+
let c = [hh.summary, hh.compare].map(({ label: e, value: t }) => ({
|
|
10065
10065
|
label: e,
|
|
10066
10066
|
value: t
|
|
10067
10067
|
})), [l, u] = v(c[0]), { diffs: d = void 0 } = e || {};
|
|
10068
10068
|
if (!d) return null;
|
|
10069
|
-
let { oldJson: f, newJson: p, error: m } =
|
|
10069
|
+
let { oldJson: f, newJson: p, error: m } = sh(e, t, n);
|
|
10070
10070
|
return /* @__PURE__ */ S(Ts, {
|
|
10071
10071
|
visible: r,
|
|
10072
10072
|
centered: !0,
|
|
@@ -10074,20 +10074,20 @@ var Xm = (e = {}) => Ym({
|
|
|
10074
10074
|
children: /* @__PURE__ */ S(rs, { dialog: {
|
|
10075
10075
|
scroll: !0,
|
|
10076
10076
|
heading: "Comparison view",
|
|
10077
|
-
content: /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(
|
|
10077
|
+
content: /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(Qf, {
|
|
10078
10078
|
name: "ViewTab",
|
|
10079
10079
|
onChange: (e) => u(c.find((t) => t.value === e.target.value)),
|
|
10080
10080
|
options: c,
|
|
10081
10081
|
value: l
|
|
10082
|
-
}), l.value === "summary" ? /* @__PURE__ */ S(
|
|
10082
|
+
}), l.value === "summary" ? /* @__PURE__ */ S(mh, {
|
|
10083
10083
|
userName: e.userName,
|
|
10084
10084
|
sectionNames: a,
|
|
10085
|
-
diffs:
|
|
10085
|
+
diffs: lh(d, i),
|
|
10086
10086
|
defaultSectionName: o
|
|
10087
10087
|
}) : m ? /* @__PURE__ */ S("div", {
|
|
10088
10088
|
style: { padding: 16 },
|
|
10089
10089
|
children: m
|
|
10090
|
-
}) : /* @__PURE__ */ S(
|
|
10090
|
+
}) : /* @__PURE__ */ S(Qp, {
|
|
10091
10091
|
oldJson: f,
|
|
10092
10092
|
newJson: p
|
|
10093
10093
|
})] }),
|
|
@@ -10100,7 +10100,7 @@ var Xm = (e = {}) => Ym({
|
|
|
10100
10100
|
height: "90vh"
|
|
10101
10101
|
} })
|
|
10102
10102
|
});
|
|
10103
|
-
},
|
|
10103
|
+
}, _h = [
|
|
10104
10104
|
{
|
|
10105
10105
|
label: "10 / page",
|
|
10106
10106
|
value: 10
|
|
@@ -10113,8 +10113,8 @@ var Xm = (e = {}) => Ym({
|
|
|
10113
10113
|
label: "50 / page",
|
|
10114
10114
|
value: 50
|
|
10115
10115
|
}
|
|
10116
|
-
],
|
|
10117
|
-
let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s =
|
|
10116
|
+
], vh = (e, t = {}) => {
|
|
10117
|
+
let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s = lh(n, t).length, c = s ? `${s} change${s === 1 ? "" : "s"}` : "no field changes";
|
|
10118
10118
|
if (i === "API" && !r) return a === "Created" ? "Created through API" : "Changed through API";
|
|
10119
10119
|
switch (a) {
|
|
10120
10120
|
case "Created": return `Created by ${r}`;
|
|
@@ -10125,7 +10125,7 @@ var Xm = (e = {}) => Ym({
|
|
|
10125
10125
|
case "Updated": return `Updated by ${r} (${c})`;
|
|
10126
10126
|
default: return `Change by ${r}`;
|
|
10127
10127
|
}
|
|
10128
|
-
},
|
|
10128
|
+
}, yh = ({ 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: h, onClickNavigateToDesgin: g }) => {
|
|
10129
10129
|
let [_, y] = v(!1), [b, w] = v(null), T = (e) => {
|
|
10130
10130
|
if (e.snapshot) {
|
|
10131
10131
|
f == null || f(e.snapshot, e);
|
|
@@ -10140,7 +10140,7 @@ var Xm = (e = {}) => Ym({
|
|
|
10140
10140
|
{ value: "Date" }
|
|
10141
10141
|
] }], D = e.map((e) => {
|
|
10142
10142
|
var t;
|
|
10143
|
-
let n = (t = h == null ? void 0 : h(e)) == null ? !!(e.snapshot && p || !e.diffs) : t, r = e.snapshot ? `Snapshot: ${e.snapshot}` :
|
|
10143
|
+
let n = (t = h == null ? void 0 : h(e)) == null ? !!(e.snapshot && p || !e.diffs) : t, r = e.snapshot ? `Snapshot: ${e.snapshot}` : vh(e, l), i = (e.operation === "Restored" || e.operation === "Cloned") && g;
|
|
10144
10144
|
return {
|
|
10145
10145
|
cells: [
|
|
10146
10146
|
{
|
|
@@ -10163,8 +10163,8 @@ var Xm = (e = {}) => Ym({
|
|
|
10163
10163
|
type: "Static"
|
|
10164
10164
|
},
|
|
10165
10165
|
{
|
|
10166
|
-
value:
|
|
10167
|
-
date:
|
|
10166
|
+
value: om({
|
|
10167
|
+
date: oh(e),
|
|
10168
10168
|
showTime: !0
|
|
10169
10169
|
}),
|
|
10170
10170
|
type: "Static"
|
|
@@ -10174,12 +10174,12 @@ var Xm = (e = {}) => Ym({
|
|
|
10174
10174
|
};
|
|
10175
10175
|
});
|
|
10176
10176
|
return /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(bo, {
|
|
10177
|
-
heading: /* @__PURE__ */ C(
|
|
10177
|
+
heading: /* @__PURE__ */ C(Sd, {
|
|
10178
10178
|
gap: !0,
|
|
10179
10179
|
wrap: !0,
|
|
10180
10180
|
children: [/* @__PURE__ */ S(es, { children: "Changes" }), c.map((e) => {
|
|
10181
10181
|
var t;
|
|
10182
|
-
return /* @__PURE__ */ S(
|
|
10182
|
+
return /* @__PURE__ */ S(ed, {
|
|
10183
10183
|
small: (t = e.small) == null || t,
|
|
10184
10184
|
checked: e.checked,
|
|
10185
10185
|
onChange: e.onChange,
|
|
@@ -10189,11 +10189,11 @@ var Xm = (e = {}) => Ym({
|
|
|
10189
10189
|
})]
|
|
10190
10190
|
}),
|
|
10191
10191
|
padding: !1,
|
|
10192
|
-
children: r ? /* @__PURE__ */ S(
|
|
10192
|
+
children: r ? /* @__PURE__ */ S(zd, {
|
|
10193
10193
|
height: "100px",
|
|
10194
10194
|
theme: Mi.WHITE,
|
|
10195
10195
|
children: /* @__PURE__ */ S(Sa, { dark: !0 })
|
|
10196
|
-
}) : /* @__PURE__ */ S(
|
|
10196
|
+
}) : /* @__PURE__ */ S(nu, { table: {
|
|
10197
10197
|
headers: E,
|
|
10198
10198
|
testId: "auditlog-table",
|
|
10199
10199
|
rows: D,
|
|
@@ -10207,14 +10207,14 @@ var Xm = (e = {}) => Ym({
|
|
|
10207
10207
|
onChange: (e) => {
|
|
10208
10208
|
u(Number(e.target.value));
|
|
10209
10209
|
},
|
|
10210
|
-
options:
|
|
10210
|
+
options: _h,
|
|
10211
10211
|
value: a
|
|
10212
10212
|
},
|
|
10213
10213
|
onSelectPage: (e) => d(e),
|
|
10214
10214
|
small: !0
|
|
10215
10215
|
} }
|
|
10216
10216
|
} })
|
|
10217
|
-
}), _ && b && b.diffs && /* @__PURE__ */ S(
|
|
10217
|
+
}), _ && b && b.diffs && /* @__PURE__ */ S(gh, {
|
|
10218
10218
|
sectionNames: o,
|
|
10219
10219
|
isOpen: _,
|
|
10220
10220
|
onClose: () => y(!1),
|
|
@@ -10224,7 +10224,7 @@ var Xm = (e = {}) => Ym({
|
|
|
10224
10224
|
data: t,
|
|
10225
10225
|
transformDiffsConfig: l
|
|
10226
10226
|
})] });
|
|
10227
|
-
},
|
|
10227
|
+
}, bh = ({ pathName: e, moduleName: t, onNavigate: n, onStartTimingEvent: r }) => {
|
|
10228
10228
|
let i = window.location.href, a = _(i);
|
|
10229
10229
|
return d(() => {
|
|
10230
10230
|
a.current = i;
|
|
@@ -10247,20 +10247,20 @@ var Xm = (e = {}) => Ym({
|
|
|
10247
10247
|
});
|
|
10248
10248
|
};
|
|
10249
10249
|
}, [e, t]), null;
|
|
10250
|
-
},
|
|
10250
|
+
}, xh = {
|
|
10251
10251
|
errorBoundary: "_errorBoundary_hmco0_1",
|
|
10252
10252
|
sidebarErrorBoundary: "_sidebarErrorBoundary_hmco0_5",
|
|
10253
10253
|
rightSidebarErrorBoundary: "_rightSidebarErrorBoundary_hmco0_6"
|
|
10254
|
-
},
|
|
10255
|
-
let { ErrorComponent: t, isSideBar: n, isRightSideBar: r, isPage: i, style: a } = e == null ? {} : e, { translations: o } =
|
|
10254
|
+
}, Sh = ({ options: e }) => {
|
|
10255
|
+
let { ErrorComponent: t, isSideBar: n, isRightSideBar: r, isPage: i, style: a } = e == null ? {} : e, { translations: o } = Np();
|
|
10256
10256
|
if (t) return /* @__PURE__ */ S(t, {});
|
|
10257
10257
|
if (n || r) return /* @__PURE__ */ S("div", {
|
|
10258
|
-
className: b(n ?
|
|
10258
|
+
className: b(n ? xh.sidebarErrorBoundary : "", r ? xh.rightSidebarErrorBoundary : ""),
|
|
10259
10259
|
style: a,
|
|
10260
10260
|
children: o == null ? void 0 : o.unexpectedError
|
|
10261
10261
|
});
|
|
10262
10262
|
let s = /* @__PURE__ */ S("div", {
|
|
10263
|
-
className:
|
|
10263
|
+
className: xh.errorBoundary,
|
|
10264
10264
|
style: a,
|
|
10265
10265
|
children: /* @__PURE__ */ S(Gs, { message: {
|
|
10266
10266
|
icon: !0,
|
|
@@ -10270,24 +10270,24 @@ var Xm = (e = {}) => Ym({
|
|
|
10270
10270
|
width: "100%"
|
|
10271
10271
|
} })
|
|
10272
10272
|
});
|
|
10273
|
-
return i ? /* @__PURE__ */ S(
|
|
10273
|
+
return i ? /* @__PURE__ */ S(Jd, {
|
|
10274
10274
|
scroll: !1,
|
|
10275
10275
|
padding: 0,
|
|
10276
10276
|
children: s
|
|
10277
10277
|
}) : s;
|
|
10278
|
-
},
|
|
10279
|
-
fallback: /* @__PURE__ */ S(
|
|
10278
|
+
}, Ch = ({ children: e, options: t }) => /* @__PURE__ */ S(Ei.ErrorBoundary, {
|
|
10279
|
+
fallback: /* @__PURE__ */ S(Sh, { options: t }),
|
|
10280
10280
|
onError: (e, t) => {
|
|
10281
10281
|
console.error("Error caught by boundary:", e, t);
|
|
10282
10282
|
},
|
|
10283
10283
|
children: e
|
|
10284
|
-
}),
|
|
10284
|
+
}), wh = (e, t = {}) => (n) => /* @__PURE__ */ S(Ch, {
|
|
10285
10285
|
options: t,
|
|
10286
10286
|
children: /* @__PURE__ */ S(e, { ...n })
|
|
10287
|
-
}),
|
|
10288
|
-
|
|
10289
|
-
e ===
|
|
10287
|
+
}), Th = (e = {}) => (t) => wh(t, e), Eh = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, Dh = (e) => {
|
|
10288
|
+
Pp(kp.LanguageKey, e.languageKey), Object.entries(e).forEach(([e, t]) => {
|
|
10289
|
+
e === kp.Translations ? Pp(e, jp(t)) : Pp(e, Eh(t) ? t : { ...t });
|
|
10290
10290
|
});
|
|
10291
10291
|
};
|
|
10292
10292
|
//#endregion
|
|
10293
|
-
export { Zi as Accordion, ya as AccordionWithDefaultToggle, fo as Actions, ki as Align,
|
|
10293
|
+
export { Zi as Accordion, ya as AccordionWithDefaultToggle, fo as Actions, ki as Align, yh as AuditLog, no as Badge, go as Breadcrumb, mo as BreadcrumbLinkType, q as Button, vo as ButtonGroup, Ai as ButtonPosition, Ca as ButtonType, bo as Card, ha as CheckBox, Gi as Chevron, Ji as Collapse, Oi as Color, Vo as ColorInput, Bo as ColorInputPopover, Ko as Column, rs as Dialog, Jp as DiffCode, am as DiffTable, Qp as DiffViewer, W as DisabledContext, Zo as Divider, us as Drawer, ap as ElementType, pu as Empty, Ch as ErrorBoundary, xd as Field, _d as FileButton, bs as FileInput, Sd as Flex, wd as FormRow, Eo as Grid, H as GroupOrder, es as Heading, ma as HelpIcon, G as Icon, U as IconType, hs as Input, ps as InputGroup, ol as InputGroupAddon, _s as InputReaderMethods, Ni as InputType, yd as Label, Ld as List, Ed as ListHeading, Md as ListSubheading, zd as Loader, gf as Mention, lo as Menu, Ka as MenuCarat, Ga as MenuType, Gs as Message, zs as MessageType, Ts as Modal, Zs as NativeSelect, xl as NumberInput, Kd as OptionDropdown, Jd as Page, sl as Pagination, dp as PopConfirm, So as Popover, Yd as Portal, Zd as PrintHeader, Os as ProgressBar, Qd as RadioButton, hf as RichTextInput, vf as Row, el as Select, Vp as SettingField, Cf as SideBar, Tf as Skeleton, jl as Slider, Ns as SmartUploadModal, xs as Spacer, Sa as Spinner, nu as Table, gd as TableImportExport, Qf as Tabs, Yo as Text, tp as TextArea, $f as TextLink, ji as TextTransform, Mi as Theme, ai as Toaster, ed as Toggle, K as Tooltip, cp as TopBar, gp as Tree, Op as TreeTable, Di as TriggerType, Gf as UnitInput, Yf as UnitSlider, zp as UnitTable, bh as UsageTracker, Zu as dismissToast, Hf as initializeContext, Dh as initializeGuiLibrary, vs as readFile, Xu as toast, Qs as useFocus, Ss as useKeyboardEvent, tc as useWindowWidth, Th as withChainableErrorBoundary, wh as withErrorBoundary };
|