@oliasoft-open-source/react-ui-library 9.5.0-beta-3 → 10.0.0-beta-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/select/custom-select/hooks/use-deferred-editable.d.ts +6 -0
- package/dist/components/select/custom-select/hooks/use-deferred-editable.d.ts.map +1 -0
- package/dist/components/select/custom-select/trigger/input.d.ts.map +1 -1
- package/dist/components/select/select.test-case.stories.d.ts.map +1 -1
- package/dist/index.js +784 -780
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2958,10 +2958,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
2958
2958
|
comboBoxStateRef: m
|
|
2959
2959
|
};
|
|
2960
2960
|
}, zc = (e, t, n) => {
|
|
2961
|
-
!e || !Number.isInteger(t) || t < 0 || e.
|
|
2962
|
-
behavior: "auto",
|
|
2963
|
-
top: t * n
|
|
2964
|
-
});
|
|
2961
|
+
!e || !Number.isInteger(t) || t < 0 || (e.scrollTop = t * n);
|
|
2965
2962
|
}, Bc = ({ items: e, selectedItemId: t, width: n, small: r, isMulti: i = !1, closeLayer: a, testId: o }) => {
|
|
2966
2963
|
let s = _(null), c = r ? 24 : 30, l = e.length < 10 ? c * Math.max(e.length, 1) : c * 10;
|
|
2967
2964
|
return d(() => {
|
|
@@ -3062,23 +3059,30 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3062
3059
|
})
|
|
3063
3060
|
})]
|
|
3064
3061
|
});
|
|
3065
|
-
}, Wc = (
|
|
3066
|
-
let
|
|
3062
|
+
}, Wc = (e, t) => {
|
|
3063
|
+
let n = e && t, [r, i] = v(!1);
|
|
3064
|
+
return !n && r && i(!1), d(() => {
|
|
3065
|
+
if (!n) return;
|
|
3066
|
+
let e = window.setTimeout(() => i(!0), 0);
|
|
3067
|
+
return () => window.clearTimeout(e);
|
|
3068
|
+
}, [n]), n && r;
|
|
3069
|
+
}, Gc = ({ selectedOptions: e, searchable: t = !1, searchValue: n, error: r, placeholder: i = "Select...", small: a, isOpen: o = !1, testId: s, tabIndex: c }) => {
|
|
3070
|
+
let l = _(null), u = _(null), [d, f] = v(0), p = Wc(t, o), h = Array.isArray(e), g = h ? e.length > 0 : !!e, y = n ? n.length + 1 : 1;
|
|
3067
3071
|
return m(() => {
|
|
3068
3072
|
var e, t;
|
|
3069
|
-
if (!
|
|
3073
|
+
if (!h || !g) return;
|
|
3070
3074
|
let n = ((e = l.current) == null ? void 0 : e.offsetWidth) || 0, r = ((t = u.current) == null ? void 0 : t.offsetWidth) || 0;
|
|
3071
3075
|
f(n - r);
|
|
3072
3076
|
}, [
|
|
3073
3077
|
n,
|
|
3074
|
-
p,
|
|
3075
3078
|
h,
|
|
3079
|
+
g,
|
|
3076
3080
|
e
|
|
3077
3081
|
]), /* @__PURE__ */ C("div", {
|
|
3078
3082
|
className: Y.triggerInputContainer,
|
|
3079
3083
|
ref: l,
|
|
3080
3084
|
children: [
|
|
3081
|
-
|
|
3085
|
+
g ? h ? /* @__PURE__ */ S(Uc, {
|
|
3082
3086
|
selectedOptions: e,
|
|
3083
3087
|
small: a,
|
|
3084
3088
|
width: d,
|
|
@@ -3093,8 +3097,8 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3093
3097
|
}),
|
|
3094
3098
|
/* @__PURE__ */ S(Lr, {
|
|
3095
3099
|
className: b(Y.input, { [Y.inputVisuallyHidden]: !t }),
|
|
3096
|
-
size:
|
|
3097
|
-
readOnly: !t || !
|
|
3100
|
+
size: y,
|
|
3101
|
+
readOnly: !t || !p,
|
|
3098
3102
|
tabIndex: c,
|
|
3099
3103
|
"data-error": r || null,
|
|
3100
3104
|
"data-testid": s && `${s}-input`
|
|
@@ -3111,7 +3115,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3111
3115
|
})
|
|
3112
3116
|
]
|
|
3113
3117
|
});
|
|
3114
|
-
},
|
|
3118
|
+
}, Kc = ({ selectedOptions: e, searchValue: t, searchable: n, clearable: r, error: i, warning: a, tooltip: o, small: s, isInTable: c, disabled: l, onClickClear: u, tabIndex: d, isOpen: f, triggerRef: p, onFocus: m, onBlur: h, groupOrder: g, maxTooltipWidth: _, placeholder: v, right: y, testId: w }) => {
|
|
3115
3119
|
var T;
|
|
3116
3120
|
let E = Array.isArray(e) ? e.length > 0 && ((T = e[0]) == null ? void 0 : T.value) != null : (e == null ? void 0 : e.value) != null, D = r && E, O = (() => {
|
|
3117
3121
|
if (g) switch (g) {
|
|
@@ -3138,7 +3142,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3138
3142
|
"data-warning": a || null,
|
|
3139
3143
|
"data-testid": w,
|
|
3140
3144
|
children: [
|
|
3141
|
-
/* @__PURE__ */ S(
|
|
3145
|
+
/* @__PURE__ */ S(Gc, {
|
|
3142
3146
|
selectedOptions: k,
|
|
3143
3147
|
placeholder: v,
|
|
3144
3148
|
searchable: n,
|
|
@@ -3180,7 +3184,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3180
3184
|
display: "block",
|
|
3181
3185
|
children: A
|
|
3182
3186
|
}) });
|
|
3183
|
-
},
|
|
3187
|
+
}, qc = (e) => {
|
|
3184
3188
|
let { multi: t = !1, disabled: n = !1, error: r = null, warning: i = null, tooltip: a = null, options: o, selectedOptions: s, onChange: c, onCreate: l = null, placeholder: d = "", small: f = !1, tabIndex: p = 0, onFocus: h = () => {}, onBlur: g = () => {}, searchable: y = !0, clearable: b = !1, maxTooltipWidth: x, closeOnOptionActionClick: w, isInTable: T = !1, groupOrder: E, right: D = !1, width: O = null, autoLayerWidth: k = !1, testId: A } = e, j = u(W), M = n || j, N = _(null), [P, F] = v(0), { inputValue: I, isOpen: L, setIsOpen: R, handleInputChange: z, collectionItems: B, comboValue: ee, selectedItemId: te, getTriggerWidth: ne, getLayerWidth: V, handleChange: re, handleClear: ie, closeLayer: ae, comboBoxStateRef: oe } = Rc({
|
|
3185
3189
|
options: o,
|
|
3186
3190
|
selectedOptions: s,
|
|
@@ -3215,7 +3219,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3215
3219
|
/* @__PURE__ */ S(cc, { selectedItemId: te }),
|
|
3216
3220
|
/* @__PURE__ */ S(sc, { triggerRef: N }),
|
|
3217
3221
|
/* @__PURE__ */ S(lc, { stateRef: oe }),
|
|
3218
|
-
/* @__PURE__ */ S(
|
|
3222
|
+
/* @__PURE__ */ S(Kc, {
|
|
3219
3223
|
selectedOptions: s,
|
|
3220
3224
|
searchValue: I,
|
|
3221
3225
|
searchable: y,
|
|
@@ -3256,32 +3260,32 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3256
3260
|
})
|
|
3257
3261
|
]
|
|
3258
3262
|
});
|
|
3259
|
-
},
|
|
3263
|
+
}, Jc = (e) => /* @__PURE__ */ S(qc, { ...e }), Yc = (e) => e == null || e === "", Xc = (e) => /^-?\d+(\.\d+)?$/.test(e.trim()), Zc = (e) => e instanceof Array, Qc = (e, t) => t && Array.isArray(e) ? e.map((e) => typeof e == "string" || typeof e == "number" ? {
|
|
3260
3264
|
label: e,
|
|
3261
3265
|
value: e
|
|
3262
|
-
} : e) : e,
|
|
3266
|
+
} : e) : e, $c = (e, t) => {
|
|
3263
3267
|
if (typeof t == "object" && t && t.hasOwnProperty("label") && t.hasOwnProperty("value")) return t;
|
|
3264
3268
|
{
|
|
3265
3269
|
let n = typeof t == "object" && t && t.hasOwnProperty("value") ? t.value : t;
|
|
3266
|
-
return (Array.isArray(e) ? e.filter((e) => e.type !== $a.HEADING).find((e) => e.value == n) : void 0) || (
|
|
3270
|
+
return (Array.isArray(e) ? e.filter((e) => e.type !== $a.HEADING).find((e) => e.value == n) : void 0) || (Yc(n) ? void 0 : {
|
|
3267
3271
|
value: n,
|
|
3268
3272
|
label: n
|
|
3269
3273
|
});
|
|
3270
3274
|
}
|
|
3271
|
-
},
|
|
3272
|
-
let n =
|
|
3275
|
+
}, el = (e, t) => Zc(t) ? t.map((t) => $c(e, t)).filter((e) => e !== void 0) : t === null ? void 0 : $c(e, t), tl = (e) => Array.isArray(e) && e.some((e) => typeof e == "string" || typeof e == "number"), nl = (e, t) => {
|
|
3276
|
+
let n = Zc(t) ? t : Yc(t) ? [] : [t];
|
|
3273
3277
|
return !(n != null && n.every((t) => (e == null ? void 0 : e.find((e) => (e == null ? void 0 : e.value) === (t == null ? void 0 : t.value))) !== void 0));
|
|
3274
|
-
},
|
|
3275
|
-
let r = Array.isArray(e) ? e : [], i =
|
|
3278
|
+
}, rl = (e, t, n) => {
|
|
3279
|
+
let r = Array.isArray(e) ? e : [], i = Zc(t), a = tl(r), o = Qc(r, a), s = el(o, t);
|
|
3276
3280
|
return {
|
|
3277
3281
|
options: o,
|
|
3278
3282
|
selectedOptions: s,
|
|
3279
3283
|
multi: i,
|
|
3280
3284
|
simpleInputs: a,
|
|
3281
|
-
hasNonExistentValue: n && s !== void 0 ?
|
|
3285
|
+
hasNonExistentValue: n && s !== void 0 ? nl(o, s) : !1
|
|
3282
3286
|
};
|
|
3283
|
-
},
|
|
3284
|
-
let { name: t = "", options: n = [], value: r, native: i = !1, onChange: a = yn, deprecatedEventHandler: o = !1, warning: s, error: c, checkNonExistentValues: l = !0, closeOnOptionActionClick: u = !0, testId: d, disabled: f, multi: p, ...m } = e, { multi: h, simpleInputs: g, options: _, selectedOptions: v, hasNonExistentValue: y } =
|
|
3287
|
+
}, il = (e) => {
|
|
3288
|
+
let { name: t = "", options: n = [], value: r, native: i = !1, onChange: a = yn, deprecatedEventHandler: o = !1, warning: s, error: c, checkNonExistentValues: l = !0, closeOnOptionActionClick: u = !0, testId: d, disabled: f, multi: p, ...m } = e, { multi: h, simpleInputs: g, options: _, selectedOptions: v, hasNonExistentValue: y } = rl(n, r, l), b = !h, x = i && b;
|
|
3285
3289
|
i && !b && console.warn("Native select does not support provided props (see stories)");
|
|
3286
3290
|
let w = "Value no longer available for re-selection", T = y && !f ? s ? /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("div", { children: w }), /* @__PURE__ */ S("div", { children: s })] }) : w : s, E = y && c && !f ? /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("div", { children: w }), /* @__PURE__ */ S("div", { children: c })] }) : c, D = (e, n) => {
|
|
3287
3291
|
if (o) {
|
|
@@ -3309,7 +3313,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3309
3313
|
error: E,
|
|
3310
3314
|
testId: d,
|
|
3311
3315
|
disabled: f
|
|
3312
|
-
}) : /* @__PURE__ */ S(
|
|
3316
|
+
}) : /* @__PURE__ */ S(Jc, {
|
|
3313
3317
|
...m,
|
|
3314
3318
|
options: _,
|
|
3315
3319
|
selectedOptions: v,
|
|
@@ -3321,11 +3325,11 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3321
3325
|
disabled: f,
|
|
3322
3326
|
closeOnOptionActionClick: u
|
|
3323
3327
|
});
|
|
3324
|
-
},
|
|
3328
|
+
}, al = (e, t) => t || e && e.reduce((e, t) => t != null && t.selected ? Number(t == null ? void 0 : t.value) : e, 10) || 10, ol = (e, t) => {
|
|
3325
3329
|
if (!t || !e) return 10;
|
|
3326
3330
|
let { options: n, value: r } = t, i = Number(r);
|
|
3327
|
-
return i === 0 ? 1 : Math.ceil(e /
|
|
3328
|
-
},
|
|
3331
|
+
return i === 0 ? 1 : Math.ceil(e / al(n, i));
|
|
3332
|
+
}, sl = (e, t, n = "Selected page must be a positive whole number between 1 and") => {
|
|
3329
3333
|
let r = `${n} ${t}`, i = {
|
|
3330
3334
|
valid: !0,
|
|
3331
3335
|
error: null
|
|
@@ -3334,40 +3338,40 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3334
3338
|
valid: !1,
|
|
3335
3339
|
error: r
|
|
3336
3340
|
} : i;
|
|
3337
|
-
},
|
|
3341
|
+
}, cl = { paginationContainer: "_paginationContainer_1tmz4_1" }, ll = {
|
|
3338
3342
|
addon: "_addon_b4w53_1",
|
|
3339
3343
|
small: "_small_b4w53_12",
|
|
3340
3344
|
groupOrderFirst: "_groupOrderFirst_b4w53_16",
|
|
3341
3345
|
groupOrderMiddle: "_groupOrderMiddle_b4w53_17",
|
|
3342
3346
|
groupOrderLast: "_groupOrderLast_b4w53_21"
|
|
3343
|
-
},
|
|
3347
|
+
}, ul = ({ children: e, groupOrder: t, small: n = !1 }) => {
|
|
3344
3348
|
let r = (() => {
|
|
3345
3349
|
if (t) switch (t) {
|
|
3346
|
-
case H.FIRST: return
|
|
3347
|
-
case H.LAST: return
|
|
3348
|
-
default: return
|
|
3350
|
+
case H.FIRST: return ll.groupOrderFirst;
|
|
3351
|
+
case H.LAST: return ll.groupOrderLast;
|
|
3352
|
+
default: return ll.groupOrderMiddle;
|
|
3349
3353
|
}
|
|
3350
3354
|
return "";
|
|
3351
3355
|
})();
|
|
3352
3356
|
return /* @__PURE__ */ S("span", {
|
|
3353
|
-
className: b(
|
|
3357
|
+
className: b(ll.addon, r, n ? ll.small : ""),
|
|
3354
3358
|
children: e
|
|
3355
3359
|
});
|
|
3356
|
-
},
|
|
3357
|
-
let { rowCount: t, selectedPage: n, small: r, onSelectPage: i, rowsPerPage: a, errorMessageTemplate: o, testIds: s } = e, c = Number(a == null ? void 0 : a.value) === 0, l =
|
|
3360
|
+
}, dl = ({ pagination: e }) => {
|
|
3361
|
+
let { rowCount: t, selectedPage: n, small: r, onSelectPage: i, rowsPerPage: a, errorMessageTemplate: o, testIds: s } = e, c = Number(a == null ? void 0 : a.value) === 0, l = ol(t, a), [u, f] = v(String(n));
|
|
3358
3362
|
d(() => {
|
|
3359
3363
|
f(String(n));
|
|
3360
3364
|
}, [n]);
|
|
3361
|
-
let { error: p } =
|
|
3362
|
-
let { valid: t } =
|
|
3365
|
+
let { error: p } = sl(u, l, o), m = (e) => {
|
|
3366
|
+
let { valid: t } = sl(e, l, o);
|
|
3363
3367
|
f(e), t && e !== "" && i && i(Number(e));
|
|
3364
3368
|
};
|
|
3365
3369
|
return /* @__PURE__ */ C("div", {
|
|
3366
|
-
className:
|
|
3370
|
+
className: cl.paginationContainer,
|
|
3367
3371
|
children: [
|
|
3368
3372
|
a && /* @__PURE__ */ S("div", {
|
|
3369
3373
|
style: { flexShrink: 0 },
|
|
3370
|
-
children: /* @__PURE__ */ S(
|
|
3374
|
+
children: /* @__PURE__ */ S(il, {
|
|
3371
3375
|
onChange: (e) => {
|
|
3372
3376
|
a.onChange && a.onChange(e), m("1");
|
|
3373
3377
|
},
|
|
@@ -3405,7 +3409,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3405
3409
|
width: "50px",
|
|
3406
3410
|
disabled: c || l <= 1,
|
|
3407
3411
|
error: p
|
|
3408
|
-
}), /* @__PURE__ */ C(
|
|
3412
|
+
}), /* @__PURE__ */ C(ul, { children: ["of ", l] })]
|
|
3409
3413
|
}),
|
|
3410
3414
|
/* @__PURE__ */ S(K, {
|
|
3411
3415
|
small: r,
|
|
@@ -3426,7 +3430,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3426
3430
|
})
|
|
3427
3431
|
]
|
|
3428
3432
|
});
|
|
3429
|
-
},
|
|
3433
|
+
}, fl = ({ pagination: e, actions: t, content: n, testId: r }) => {
|
|
3430
3434
|
let i = t && t.length, a = n != null, o = () => {
|
|
3431
3435
|
if (e) {
|
|
3432
3436
|
var t;
|
|
@@ -3443,19 +3447,19 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3443
3447
|
children: /* @__PURE__ */ S("div", { children: n })
|
|
3444
3448
|
}) : null, i || o() ? /* @__PURE__ */ C("div", {
|
|
3445
3449
|
className: rc.section,
|
|
3446
|
-
children: [e && o() ? /* @__PURE__ */ S(
|
|
3450
|
+
children: [e && o() ? /* @__PURE__ */ S(dl, { pagination: e }) : /* @__PURE__ */ S("div", {}), i && /* @__PURE__ */ S("div", { children: /* @__PURE__ */ S(bo, { actions: t }) })]
|
|
3447
3451
|
}) : null]
|
|
3448
3452
|
}) : null;
|
|
3449
|
-
},
|
|
3453
|
+
}, pl = (e) => {
|
|
3450
3454
|
let t = Math.max(...e.reduce((e, t) => {
|
|
3451
3455
|
let n = t.cells.map((e) => e.colSpan ? e.colSpan : 1).reduce((e, t) => e + t, 0);
|
|
3452
3456
|
return e.concat(n);
|
|
3453
3457
|
}, []));
|
|
3454
3458
|
return isNaN(t) ? 0 : t;
|
|
3455
|
-
},
|
|
3456
|
-
let n = [
|
|
3459
|
+
}, ml = (e, t) => {
|
|
3460
|
+
let n = [pl(t), pl(e)];
|
|
3457
3461
|
return Math.max(...n);
|
|
3458
|
-
},
|
|
3462
|
+
}, hl = (e) => e.reduce((e, t) => t.actions && t.actions.length > 0 ? 1 : e, 0), gl = (e, t) => hl(t) > 0 || hl(e) > 0, _l = {
|
|
3459
3463
|
clickableRow: "_clickableRow_g8hv8_1",
|
|
3460
3464
|
hoverableRow: "_hoverableRow_g8hv8_4",
|
|
3461
3465
|
rowActive: "_rowActive_g8hv8_4",
|
|
@@ -3464,11 +3468,11 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3464
3468
|
dragIconCell: "_dragIconCell_g8hv8_34",
|
|
3465
3469
|
dragIcon: "_dragIcon_g8hv8_34",
|
|
3466
3470
|
dragIconDisabled: "_dragIconDisabled_g8hv8_55"
|
|
3467
|
-
},
|
|
3471
|
+
}, vl = ({ colSpan: e, children: t, flush: n }) => /* @__PURE__ */ S("tr", { children: /* @__PURE__ */ S("td", {
|
|
3468
3472
|
colSpan: e,
|
|
3469
|
-
className: b(
|
|
3473
|
+
className: b(_l.expandableRow, n ? _l.flush : ""),
|
|
3470
3474
|
children: t
|
|
3471
|
-
}) }),
|
|
3475
|
+
}) }), yl = (e, t = {
|
|
3472
3476
|
leftAligned: "",
|
|
3473
3477
|
rightAligned: "",
|
|
3474
3478
|
centerAligned: ""
|
|
@@ -3481,7 +3485,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3481
3485
|
case Mi.CENTER: return n ? Mi.CENTER : t.centerAligned;
|
|
3482
3486
|
default: return n ? Mi.LEFT : t.leftAligned;
|
|
3483
3487
|
}
|
|
3484
|
-
},
|
|
3488
|
+
}, bl = (e, t = !1, n = 0) => {
|
|
3485
3489
|
if (!e || e.length === 0) return [];
|
|
3486
3490
|
let r = e.every((e) => Array.isArray(e)), i = e.every((e) => typeof e == "string");
|
|
3487
3491
|
return r && t ? e[n] || [] : i ? e : (console.warn("getHeaderAlignment: alignments array contains a mix of strings and arrays, returning an empty array."), []);
|
|
@@ -3516,7 +3520,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3516
3520
|
popover: "_popover_g4jsi_211",
|
|
3517
3521
|
disabledPointerEvents: "_disabledPointerEvents_g4jsi_214",
|
|
3518
3522
|
standaloneCheckbox: "_standaloneCheckbox_g4jsi_217"
|
|
3519
|
-
},
|
|
3523
|
+
}, xl = ({ cell: e, columnAlignment: t, testId: n, type: r }) => /* @__PURE__ */ S(Cs, {
|
|
3520
3524
|
name: e.name,
|
|
3521
3525
|
value: e.value,
|
|
3522
3526
|
onChange: (t) => {
|
|
@@ -3541,9 +3545,9 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3541
3545
|
tabIndex: e.disabled ? -1 : 0,
|
|
3542
3546
|
tooltip: e.tooltip,
|
|
3543
3547
|
type: r
|
|
3544
|
-
}),
|
|
3548
|
+
}), Sl = (e) => e ? typeof e == "string" ? e : sn(e) ? e[0] : e.fieldName : "", Cl = ({ 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 }) => {
|
|
3545
3549
|
let k = (e) => {
|
|
3546
|
-
let n = Dr(e), r = t &&
|
|
3550
|
+
let n = Dr(e), r = t && Yc(e);
|
|
3547
3551
|
return [Infinity, -Infinity].includes(Number(e)) || r ? {
|
|
3548
3552
|
valid: !0,
|
|
3549
3553
|
errors: []
|
|
@@ -3556,7 +3560,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3556
3560
|
var t;
|
|
3557
3561
|
let n = !!(e != null && e.endsWith("0")), r = w && e && !n && (t = k(e)) != null && t.valid ? br(e) : e;
|
|
3558
3562
|
return Tr(r);
|
|
3559
|
-
}, j = _(null), [M, N] = v(A(Tr(s))), [P, F] = v(!1), I =
|
|
3563
|
+
}, j = _(null), [M, N] = v(A(Tr(s))), [P, F] = v(!1), I = Sl(e), { valid: L, errors: R } = k(M), z = R && R.length && !D ? R[0] : null;
|
|
3560
3564
|
d(() => {
|
|
3561
3565
|
let e = A(Tr(s));
|
|
3562
3566
|
wr(M) !== wr(e) && N(e);
|
|
@@ -3574,7 +3578,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3574
3578
|
let B = (e) => {
|
|
3575
3579
|
var n, r;
|
|
3576
3580
|
let i = "key" in e ? M : e == null || (n = e.target) == null ? void 0 : n.value, a = or(i.replaceAll(" ", "").replaceAll("|", ""));
|
|
3577
|
-
N(a), ((r = k(a)) != null && r.valid || t &&
|
|
3581
|
+
N(a), ((r = k(a)) != null && r.valid || t && Yc(i)) && c({
|
|
3578
3582
|
...e,
|
|
3579
3583
|
target: {
|
|
3580
3584
|
...e.target,
|
|
@@ -3622,9 +3626,9 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3622
3626
|
tooltip: h,
|
|
3623
3627
|
ref: j
|
|
3624
3628
|
}, I);
|
|
3625
|
-
},
|
|
3629
|
+
}, wl = ({ cell: e, columnAlignment: t, testId: n }) => {
|
|
3626
3630
|
var r;
|
|
3627
|
-
return /* @__PURE__ */ S(
|
|
3631
|
+
return /* @__PURE__ */ S(Cl, {
|
|
3628
3632
|
name: e.name,
|
|
3629
3633
|
value: e.value,
|
|
3630
3634
|
onChange: (t) => {
|
|
@@ -3650,7 +3654,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3650
3654
|
roundDisplayValue: e.roundDisplayValue,
|
|
3651
3655
|
disableValidationOnFocus: e.disableValidationOnFocus
|
|
3652
3656
|
});
|
|
3653
|
-
},
|
|
3657
|
+
}, Tl = ({ cell: e, columnAlignment: t, testId: n }) => /* @__PURE__ */ S(il, {
|
|
3654
3658
|
name: e.name,
|
|
3655
3659
|
options: e.options,
|
|
3656
3660
|
onChange: (t) => {
|
|
@@ -3675,26 +3679,26 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3675
3679
|
right: t === Mi.RIGHT,
|
|
3676
3680
|
testId: n,
|
|
3677
3681
|
tabIndex: e.disabled ? -1 : 0
|
|
3678
|
-
}),
|
|
3682
|
+
}), El = ({ cell: e, columnAlignment: t, testId: n }) => /* @__PURE__ */ S("div", {
|
|
3679
3683
|
className: b(X.inputWrapper, e.type === "NumberInput" ? X.numberInputWrapper : ""),
|
|
3680
|
-
children: e.type === "Input" ? /* @__PURE__ */ S(
|
|
3684
|
+
children: e.type === "Input" ? /* @__PURE__ */ S(xl, {
|
|
3681
3685
|
cell: e,
|
|
3682
3686
|
columnAlignment: t,
|
|
3683
3687
|
testId: n
|
|
3684
|
-
}) : e.type === "NumberInput" ? /* @__PURE__ */ S(
|
|
3688
|
+
}) : e.type === "NumberInput" ? /* @__PURE__ */ S(wl, {
|
|
3685
3689
|
cell: e,
|
|
3686
3690
|
columnAlignment: t,
|
|
3687
3691
|
testId: n
|
|
3688
|
-
}) : e.type === "DateInput" ? /* @__PURE__ */ S(
|
|
3692
|
+
}) : e.type === "DateInput" ? /* @__PURE__ */ S(xl, {
|
|
3689
3693
|
cell: e,
|
|
3690
3694
|
testId: n,
|
|
3691
3695
|
type: "date"
|
|
3692
|
-
}) : e.type === "Select" ? /* @__PURE__ */ S(
|
|
3696
|
+
}) : e.type === "Select" ? /* @__PURE__ */ S(Tl, {
|
|
3693
3697
|
cell: e,
|
|
3694
3698
|
columnAlignment: t,
|
|
3695
3699
|
testId: n
|
|
3696
3700
|
}) : null
|
|
3697
|
-
}),
|
|
3701
|
+
}), Dl = ({ cell: e, testId: t }) => {
|
|
3698
3702
|
let n = u(W), { error: r, warning: i, tooltip: a, maxTooltipWidth: o } = e, s = (e) => J(e);
|
|
3699
3703
|
return /* @__PURE__ */ S("div", {
|
|
3700
3704
|
className: X.inputWrapper,
|
|
@@ -3720,7 +3724,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3720
3724
|
})
|
|
3721
3725
|
})
|
|
3722
3726
|
});
|
|
3723
|
-
},
|
|
3727
|
+
}, Ol = ({ cell: e, testId: t }) => /* @__PURE__ */ S("div", {
|
|
3724
3728
|
className: e.label ? "" : X.standaloneCheckbox,
|
|
3725
3729
|
children: /* @__PURE__ */ S(ga, {
|
|
3726
3730
|
text: e.tooltip,
|
|
@@ -3736,7 +3740,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3736
3740
|
indeterminate: e.indeterminate
|
|
3737
3741
|
})
|
|
3738
3742
|
})
|
|
3739
|
-
}),
|
|
3743
|
+
}), kl = {
|
|
3740
3744
|
container: "_container_3cdfx_1",
|
|
3741
3745
|
small: "_small_3cdfx_9",
|
|
3742
3746
|
vertical: "_vertical_3cdfx_12",
|
|
@@ -3752,17 +3756,17 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3752
3756
|
markActive: "_markActive_3cdfx_146",
|
|
3753
3757
|
sliderDisabled: "_sliderDisabled_3cdfx_149",
|
|
3754
3758
|
label: "_label_3cdfx_161"
|
|
3755
|
-
},
|
|
3759
|
+
}, Al = (e, t) => bn(sn(e) ? e : [e]).slice(0, t ? 2 : 1), jl = (e, t) => t ? e : e[0], Ml = Ur((e) => e.map(({ label: e, tooltip: t, value: n }) => ({
|
|
3756
3760
|
label: e,
|
|
3757
3761
|
tooltip: t,
|
|
3758
3762
|
value: Number(n)
|
|
3759
|
-
})), Wr),
|
|
3763
|
+
})), Wr), Nl = ({ 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 = {
|
|
3760
3764
|
enabled: !1,
|
|
3761
3765
|
width: "100px",
|
|
3762
3766
|
height: "400px"
|
|
3763
3767
|
}, onChange: w, onChangeComplete: T }) => {
|
|
3764
|
-
let E = u(W), D = m || E, [O, k] = v(null), A =
|
|
3765
|
-
let r =
|
|
3768
|
+
let E = u(W), D = m || E, [O, k] = v(null), A = Ml(l), j = h(() => Al(a, g), [g, a]), M = (n) => {
|
|
3769
|
+
let r = jl(n, g);
|
|
3766
3770
|
return { target: {
|
|
3767
3771
|
name: e == null ? "" : e,
|
|
3768
3772
|
value: r,
|
|
@@ -3775,7 +3779,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3775
3779
|
}, F = (e) => {
|
|
3776
3780
|
N(e), P(e);
|
|
3777
3781
|
}, I = () => /* @__PURE__ */ S("div", {
|
|
3778
|
-
className:
|
|
3782
|
+
className: kl.button,
|
|
3779
3783
|
children: /* @__PURE__ */ S(K, {
|
|
3780
3784
|
basic: !0,
|
|
3781
3785
|
small: !0,
|
|
@@ -3789,7 +3793,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3789
3793
|
testId: i ? `${i}-min` : void 0
|
|
3790
3794
|
})
|
|
3791
3795
|
}), L = () => /* @__PURE__ */ S("div", {
|
|
3792
|
-
className:
|
|
3796
|
+
className: kl.button,
|
|
3793
3797
|
children: /* @__PURE__ */ S(K, {
|
|
3794
3798
|
basic: !0,
|
|
3795
3799
|
small: !0,
|
|
@@ -3809,7 +3813,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3809
3813
|
if (i) return g ? `${i}-handle-${e}` : `${i}-handle`;
|
|
3810
3814
|
}, 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)];
|
|
3811
3815
|
return /* @__PURE__ */ C("div", {
|
|
3812
|
-
className: b(
|
|
3816
|
+
className: b(kl.container, _ ? kl.small : "", y.enabled ? kl.vertical : ""),
|
|
3813
3817
|
style: y.enabled ? {
|
|
3814
3818
|
width: y.width,
|
|
3815
3819
|
height: y.height
|
|
@@ -3817,7 +3821,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3817
3821
|
children: [
|
|
3818
3822
|
d && (y.enabled ? /* @__PURE__ */ S(L, {}) : /* @__PURE__ */ S(I, {})),
|
|
3819
3823
|
/* @__PURE__ */ C(Hr.Root, {
|
|
3820
|
-
className: b(
|
|
3824
|
+
className: b(kl.slider, D && kl.sliderDisabled, d && kl.hasArrows),
|
|
3821
3825
|
"data-testid": i,
|
|
3822
3826
|
disabled: D,
|
|
3823
3827
|
max: s,
|
|
@@ -3832,14 +3836,14 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3832
3836
|
step: c,
|
|
3833
3837
|
value: j,
|
|
3834
3838
|
children: [/* @__PURE__ */ C(Hr.Track, {
|
|
3835
|
-
className:
|
|
3836
|
-
children: [/* @__PURE__ */ S(Hr.Range, { className:
|
|
3837
|
-
className:
|
|
3839
|
+
className: kl.track,
|
|
3840
|
+
children: [/* @__PURE__ */ S(Hr.Range, { className: kl.range }), A.length > 0 && /* @__PURE__ */ S("span", {
|
|
3841
|
+
className: kl.marks,
|
|
3838
3842
|
children: A.map(({ label: e, tooltip: t, value: n }) => {
|
|
3839
3843
|
let r = Number(n), i = ee(r), a = { [y.enabled ? "bottom" : "left"]: R(r) };
|
|
3840
3844
|
return /* @__PURE__ */ S("button", {
|
|
3841
3845
|
"aria-label": String(e == null ? n : e),
|
|
3842
|
-
className: b(
|
|
3846
|
+
className: b(kl.mark, i && kl.markActive),
|
|
3843
3847
|
disabled: D,
|
|
3844
3848
|
onClick: (e) => {
|
|
3845
3849
|
e.stopPropagation(), F(te(r));
|
|
@@ -3853,7 +3857,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3853
3857
|
t ? ": " : "",
|
|
3854
3858
|
e == null ? n : e
|
|
3855
3859
|
] }),
|
|
3856
|
-
children: /* @__PURE__ */ S("span", { className:
|
|
3860
|
+
children: /* @__PURE__ */ S("span", { className: kl.dot })
|
|
3857
3861
|
})
|
|
3858
3862
|
}, String(n));
|
|
3859
3863
|
})
|
|
@@ -3862,7 +3866,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3862
3866
|
var i;
|
|
3863
3867
|
return /* @__PURE__ */ S(Hr.Thumb, {
|
|
3864
3868
|
"aria-label": String((i = t == null ? e : t) == null ? "Slider" : i),
|
|
3865
|
-
className:
|
|
3869
|
+
className: kl.thumb,
|
|
3866
3870
|
"data-testid": B(r),
|
|
3867
3871
|
onKeyDown: () => k(r),
|
|
3868
3872
|
onKeyUp: () => k(null),
|
|
@@ -3871,7 +3875,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3871
3875
|
style: z(n),
|
|
3872
3876
|
children: f && O === r && /* @__PURE__ */ S(ga, {
|
|
3873
3877
|
display: "block",
|
|
3874
|
-
text: p(
|
|
3878
|
+
text: p(jl(j, g)),
|
|
3875
3879
|
forceOpen: !0,
|
|
3876
3880
|
updateOnAnimationFrame: !0,
|
|
3877
3881
|
triggerStyle: {
|
|
@@ -3884,15 +3888,15 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3884
3888
|
}),
|
|
3885
3889
|
d && (y.enabled ? /* @__PURE__ */ S(I, {}) : /* @__PURE__ */ S(L, {})),
|
|
3886
3890
|
t && /* @__PURE__ */ S("label", {
|
|
3887
|
-
className:
|
|
3891
|
+
className: kl.label,
|
|
3888
3892
|
style: { width: r },
|
|
3889
3893
|
children: t
|
|
3890
3894
|
})
|
|
3891
3895
|
]
|
|
3892
3896
|
});
|
|
3893
|
-
},
|
|
3897
|
+
}, Pl = ({ cell: e }) => /* @__PURE__ */ S("div", {
|
|
3894
3898
|
className: X.inputWrapper,
|
|
3895
|
-
children: /* @__PURE__ */ S(
|
|
3899
|
+
children: /* @__PURE__ */ S(Nl, {
|
|
3896
3900
|
label: e.label,
|
|
3897
3901
|
testId: e.testId,
|
|
3898
3902
|
value: e.value,
|
|
@@ -3906,7 +3910,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3906
3910
|
tooltipFormatter: e.tooltipFormatter,
|
|
3907
3911
|
disabled: e.disabled
|
|
3908
3912
|
})
|
|
3909
|
-
}),
|
|
3913
|
+
}), Fl = ({ cell: e }) => {
|
|
3910
3914
|
let { tooltip: t, icon: n } = e;
|
|
3911
3915
|
return /* @__PURE__ */ S("div", {
|
|
3912
3916
|
className: X.iconCellWrapper,
|
|
@@ -3918,7 +3922,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3918
3922
|
children: /* @__PURE__ */ S(G, { icon: n })
|
|
3919
3923
|
})
|
|
3920
3924
|
});
|
|
3921
|
-
},
|
|
3925
|
+
}, Il = ({ cell: e }) => /* @__PURE__ */ S(bo, { actions: e.actions }), Ll = ({ cell: e }) => {
|
|
3922
3926
|
let { helpIcon: t } = e;
|
|
3923
3927
|
return t ? /* @__PURE__ */ S("div", {
|
|
3924
3928
|
className: X.icon,
|
|
@@ -3927,7 +3931,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3927
3931
|
text: t.tooltip
|
|
3928
3932
|
})
|
|
3929
3933
|
}) : null;
|
|
3930
|
-
},
|
|
3934
|
+
}, Rl = ({ cell: e }) => {
|
|
3931
3935
|
let { libraryIcon: t } = e;
|
|
3932
3936
|
return t ? /* @__PURE__ */ S("div", {
|
|
3933
3937
|
className: X.icon,
|
|
@@ -3937,7 +3941,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3937
3941
|
icon: U.LIBRARY
|
|
3938
3942
|
})
|
|
3939
3943
|
}) : null;
|
|
3940
|
-
},
|
|
3944
|
+
}, zl = ({ cell: e }) => {
|
|
3941
3945
|
let { hasSort: t, sort: n, sortPriority: r } = e;
|
|
3942
3946
|
return t ? /* @__PURE__ */ C("span", {
|
|
3943
3947
|
className: X.sortingCellIcon,
|
|
@@ -3952,7 +3956,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3952
3956
|
children: /* @__PURE__ */ S(G, { icon: U.SORT_DESCENDING })
|
|
3953
3957
|
}), r && n ? /* @__PURE__ */ S("sup", { children: r }) : null]
|
|
3954
3958
|
}) : null;
|
|
3955
|
-
},
|
|
3959
|
+
}, Bl = ({ cell: e, isHeader: t, testId: n }) => {
|
|
3956
3960
|
let { error: r, warning: i, tooltip: a, maxTooltipWidth: o, hasSort: s, onSort: c, type: l } = e, u = /* @__PURE__ */ C("div", {
|
|
3957
3961
|
className: b(X.staticCellContent, l === "Unit" ? X.unit : ""),
|
|
3958
3962
|
onClick: s ? (e) => c && c(e) : () => {},
|
|
@@ -3960,9 +3964,9 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3960
3964
|
"data-warning": i || null,
|
|
3961
3965
|
"data-testid": n,
|
|
3962
3966
|
children: [e.value, t ? /* @__PURE__ */ C(x, { children: [
|
|
3963
|
-
/* @__PURE__ */ S(Il, { cell: e }),
|
|
3964
3967
|
/* @__PURE__ */ S(Ll, { cell: e }),
|
|
3965
|
-
/* @__PURE__ */ S(Rl, { cell: e })
|
|
3968
|
+
/* @__PURE__ */ S(Rl, { cell: e }),
|
|
3969
|
+
/* @__PURE__ */ S(zl, { cell: e })
|
|
3966
3970
|
] }) : null]
|
|
3967
3971
|
});
|
|
3968
3972
|
return /* @__PURE__ */ S("div", {
|
|
@@ -3977,7 +3981,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3977
3981
|
children: u
|
|
3978
3982
|
})
|
|
3979
3983
|
});
|
|
3980
|
-
},
|
|
3984
|
+
}, Vl = ({ cell: e, testId: t }) => {
|
|
3981
3985
|
let { content: n, fullWidth: r, closeOnOutsideClick: i, disabled: a } = e;
|
|
3982
3986
|
return /* @__PURE__ */ S(Ao, {
|
|
3983
3987
|
content: n,
|
|
@@ -3986,13 +3990,13 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3986
3990
|
disabled: a,
|
|
3987
3991
|
children: /* @__PURE__ */ S("div", {
|
|
3988
3992
|
className: X.popover,
|
|
3989
|
-
children: /* @__PURE__ */ S(
|
|
3993
|
+
children: /* @__PURE__ */ S(Bl, {
|
|
3990
3994
|
cell: e,
|
|
3991
3995
|
testId: t
|
|
3992
3996
|
})
|
|
3993
3997
|
})
|
|
3994
3998
|
});
|
|
3995
|
-
},
|
|
3999
|
+
}, Hl = {
|
|
3996
4000
|
inputInTable: "_inputInTable_abetp_1",
|
|
3997
4001
|
inputHover: "_inputHover_abetp_13",
|
|
3998
4002
|
inputFocus: "_inputFocus_abetp_18",
|
|
@@ -4012,18 +4016,18 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4012
4016
|
control: "_control_abetp_25",
|
|
4013
4017
|
labelText: "_labelText_abetp_151",
|
|
4014
4018
|
isInTable: "_isInTable_abetp_214"
|
|
4015
|
-
},
|
|
4019
|
+
}, Ul = ({ 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 = Pi.CAPITALIZE }) => {
|
|
4016
4020
|
var p, m;
|
|
4017
4021
|
let h = u(Yr) != null, g = l || d, _ = (p = n == null ? void 0 : n.toString()) == null ? "" : p, v = /* @__PURE__ */ C(qr, {
|
|
4018
4022
|
value: _,
|
|
4019
4023
|
isDisabled: i,
|
|
4020
|
-
className:
|
|
4024
|
+
className: Hl.radioContainer,
|
|
4021
4025
|
"data-testid": c ? `${c}-field` : void 0,
|
|
4022
4026
|
children: [/* @__PURE__ */ C(Kr, {
|
|
4023
|
-
className: b(
|
|
4027
|
+
className: b(Hl.radio, a && Hl.small, s && Hl.noMargin, !t && Hl.noLabel),
|
|
4024
4028
|
"data-testid": c,
|
|
4025
|
-
children: [/* @__PURE__ */ S("span", { className:
|
|
4026
|
-
className:
|
|
4029
|
+
children: [/* @__PURE__ */ S("span", { className: Hl.control }), t && /* @__PURE__ */ S("span", {
|
|
4030
|
+
className: Hl.labelText,
|
|
4027
4031
|
style: { textTransform: f },
|
|
4028
4032
|
children: t
|
|
4029
4033
|
})]
|
|
@@ -4045,12 +4049,12 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4045
4049
|
} });
|
|
4046
4050
|
},
|
|
4047
4051
|
isDisabled: i,
|
|
4048
|
-
className:
|
|
4052
|
+
className: Hl.radioGroupStandalone,
|
|
4049
4053
|
children: v
|
|
4050
4054
|
});
|
|
4051
|
-
},
|
|
4055
|
+
}, Wl = ({ cell: e, testId: t }) => {
|
|
4052
4056
|
var n;
|
|
4053
|
-
return /* @__PURE__ */ S(
|
|
4057
|
+
return /* @__PURE__ */ S(Ul, {
|
|
4054
4058
|
selected: e.selected,
|
|
4055
4059
|
name: e.name,
|
|
4056
4060
|
value: (n = e.value) == null ? "" : n,
|
|
@@ -4059,42 +4063,42 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4059
4063
|
onChange: (t) => e.onChange(t),
|
|
4060
4064
|
testId: t
|
|
4061
4065
|
});
|
|
4062
|
-
},
|
|
4066
|
+
}, Gl = ({ cell: e, isHeader: t, columnAlignment: n, testId: r }) => {
|
|
4063
4067
|
if (!e) return null;
|
|
4064
4068
|
switch (e.type) {
|
|
4065
4069
|
case "Input":
|
|
4066
4070
|
case "NumberInput":
|
|
4067
4071
|
case "DateInput":
|
|
4068
|
-
case "Select": return /* @__PURE__ */ S(
|
|
4072
|
+
case "Select": return /* @__PURE__ */ S(El, {
|
|
4069
4073
|
cell: e,
|
|
4070
4074
|
columnAlignment: n,
|
|
4071
4075
|
testId: r
|
|
4072
4076
|
});
|
|
4073
|
-
case "Link": return /* @__PURE__ */ S(
|
|
4077
|
+
case "Link": return /* @__PURE__ */ S(Dl, {
|
|
4074
4078
|
cell: e,
|
|
4075
4079
|
testId: r
|
|
4076
4080
|
});
|
|
4077
|
-
case "CheckBox": return /* @__PURE__ */ S(
|
|
4081
|
+
case "CheckBox": return /* @__PURE__ */ S(Ol, {
|
|
4078
4082
|
cell: e,
|
|
4079
4083
|
testId: r
|
|
4080
4084
|
});
|
|
4081
|
-
case "Radio": return /* @__PURE__ */ S(
|
|
4085
|
+
case "Radio": return /* @__PURE__ */ S(Wl, {
|
|
4082
4086
|
cell: e,
|
|
4083
4087
|
testId: r
|
|
4084
4088
|
});
|
|
4085
|
-
case "Slider": return /* @__PURE__ */ S(
|
|
4086
|
-
case "Icon": return /* @__PURE__ */ S(
|
|
4087
|
-
case "Actions": return /* @__PURE__ */ S(
|
|
4088
|
-
case "Popover": return /* @__PURE__ */ S(
|
|
4089
|
-
default: return /* @__PURE__ */ S(
|
|
4089
|
+
case "Slider": return /* @__PURE__ */ S(Pl, { cell: e });
|
|
4090
|
+
case "Icon": return /* @__PURE__ */ S(Fl, { cell: e });
|
|
4091
|
+
case "Actions": return /* @__PURE__ */ S(Il, { cell: e });
|
|
4092
|
+
case "Popover": return /* @__PURE__ */ S(Vl, { cell: e });
|
|
4093
|
+
default: return /* @__PURE__ */ S(Bl, {
|
|
4090
4094
|
cell: e,
|
|
4091
4095
|
isHeader: t,
|
|
4092
4096
|
testId: r
|
|
4093
4097
|
});
|
|
4094
4098
|
}
|
|
4095
|
-
},
|
|
4099
|
+
}, Kl = /* @__PURE__ */ function(e) {
|
|
4096
4100
|
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;
|
|
4097
|
-
}({}),
|
|
4101
|
+
}({}), ql = ({ cell: e, isHeader: t, columnHeaderAlignment: n, columnAlignment: r = Mi.LEFT, width: i, testId: a }) => {
|
|
4098
4102
|
var o;
|
|
4099
4103
|
if (!e) return null;
|
|
4100
4104
|
let { style: s, colSpan: c, rowSpan: l, width: u, textAlign: d } = e, f = _(null), p = {
|
|
@@ -4102,7 +4106,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4102
4106
|
headerAlignment: n,
|
|
4103
4107
|
textAlign: d,
|
|
4104
4108
|
isHeader: t
|
|
4105
|
-
}, m =
|
|
4109
|
+
}, m = yl(p, X), h = yl(p, X, !0), g = e.type === Kl.INPUT || e.type === Kl.NUMBER_INPUT || e.type === Kl.SELECT || e.type === Kl.POPOVER ? X.inputCell : e.type === Kl.SLIDER ? X.sliderCell : e.type === Kl.CHECKBOX || e.type === Kl.RADIO ? X.checkBoxCell : e.type === Kl.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 === Kl.STATIC || !e.type, C = {
|
|
4106
4110
|
width: y,
|
|
4107
4111
|
minWidth: y,
|
|
4108
4112
|
textTransform: t && x ? Pi.CAPITALIZE : void 0,
|
|
@@ -4114,40 +4118,40 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4114
4118
|
style: C,
|
|
4115
4119
|
colSpan: c,
|
|
4116
4120
|
rowSpan: l,
|
|
4117
|
-
children: /* @__PURE__ */ S(
|
|
4121
|
+
children: /* @__PURE__ */ S(Gl, {
|
|
4118
4122
|
cell: e,
|
|
4119
4123
|
columnAlignment: h == null ? Mi.RIGHT : h,
|
|
4120
4124
|
isHeader: t,
|
|
4121
4125
|
testId: a
|
|
4122
4126
|
})
|
|
4123
4127
|
});
|
|
4124
|
-
},
|
|
4128
|
+
}, Jl = (e) => e.type === Kl.INPUT || e.type === Kl.NUMBER_INPUT, Yl = ({ event: e, rowIndex: t, cellIndex: n }) => ({
|
|
4125
4129
|
...e,
|
|
4126
4130
|
target: Object.assign(e.target, {
|
|
4127
4131
|
rowIndex: t,
|
|
4128
4132
|
cellIndex: n
|
|
4129
4133
|
})
|
|
4130
|
-
}),
|
|
4131
|
-
if (!
|
|
4134
|
+
}), Xl = ({ cell: e, rowIndex: t, cellIndex: n }) => {
|
|
4135
|
+
if (!Jl(e) || typeof e.onChange != "function") return e;
|
|
4132
4136
|
let r = e.onChange;
|
|
4133
4137
|
return {
|
|
4134
4138
|
...e,
|
|
4135
4139
|
onChange: (e) => {
|
|
4136
|
-
r(
|
|
4140
|
+
r(Yl({
|
|
4137
4141
|
event: e,
|
|
4138
4142
|
rowIndex: t,
|
|
4139
4143
|
cellIndex: n
|
|
4140
4144
|
}));
|
|
4141
4145
|
}
|
|
4142
4146
|
};
|
|
4143
|
-
},
|
|
4144
|
-
let h =
|
|
4145
|
-
let i = `${+!n}_${t}_${r}`, a = n ? e :
|
|
4147
|
+
}, Zl = ({ 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 }) => {
|
|
4148
|
+
let h = bl(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) => {
|
|
4149
|
+
let i = `${+!n}_${t}_${r}`, a = n ? e : Xl({
|
|
4146
4150
|
cell: e,
|
|
4147
4151
|
rowIndex: t,
|
|
4148
4152
|
cellIndex: r
|
|
4149
4153
|
});
|
|
4150
|
-
return /* @__PURE__ */ S(
|
|
4154
|
+
return /* @__PURE__ */ S(ql, {
|
|
4151
4155
|
cell: a,
|
|
4152
4156
|
isHeader: n,
|
|
4153
4157
|
columnAlignment: o[r],
|
|
@@ -4155,9 +4159,9 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4155
4159
|
width: u ? u[r] : void 0,
|
|
4156
4160
|
testId: e.testId
|
|
4157
4161
|
}, i);
|
|
4158
|
-
}), k = s && /* @__PURE__ */ S(
|
|
4162
|
+
}), k = s && /* @__PURE__ */ S(ql, {
|
|
4159
4163
|
cell: {
|
|
4160
|
-
type:
|
|
4164
|
+
type: Kl.ACTIONS,
|
|
4161
4165
|
actions: e.actions
|
|
4162
4166
|
},
|
|
4163
4167
|
isHeader: n
|
|
@@ -4182,13 +4186,13 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4182
4186
|
onMouseLeave: y,
|
|
4183
4187
|
onFocus: _,
|
|
4184
4188
|
"data-testid": p,
|
|
4185
|
-
className: b(g ?
|
|
4189
|
+
className: b(g ? _l.clickableRow : null, v ? _l.hoverableRow : null),
|
|
4186
4190
|
children: [
|
|
4187
4191
|
c ? /* @__PURE__ */ S("th", {}) : null,
|
|
4188
4192
|
O,
|
|
4189
4193
|
k
|
|
4190
4194
|
]
|
|
4191
|
-
}, t), w && w.content ? /* @__PURE__ */ S(
|
|
4195
|
+
}, t), w && w.content ? /* @__PURE__ */ S(vl, {
|
|
4192
4196
|
colSpan: i,
|
|
4193
4197
|
flush: w.flush === !0,
|
|
4194
4198
|
children: w.content
|
|
@@ -4198,7 +4202,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4198
4202
|
onMouseEnter: v,
|
|
4199
4203
|
onMouseLeave: y,
|
|
4200
4204
|
onFocus: _,
|
|
4201
|
-
className: b(g && !g.noStyle ?
|
|
4205
|
+
className: b(g && !g.noStyle ? _l.clickableRow : null, v && !v.noStyle ? _l.hoverableRow : null, D ? _l.rowActive : null),
|
|
4202
4206
|
"data-active": D || null,
|
|
4203
4207
|
"data-error": T || null,
|
|
4204
4208
|
"data-warning": E || null,
|
|
@@ -4208,9 +4212,9 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4208
4212
|
style: R,
|
|
4209
4213
|
children: [
|
|
4210
4214
|
c ? e.noDrag ? /* @__PURE__ */ S("td", { "aria-labelledby": "unique-label-id" }) : /* @__PURE__ */ S("td", {
|
|
4211
|
-
className:
|
|
4215
|
+
className: _l.dragIconCell,
|
|
4212
4216
|
children: /* @__PURE__ */ S("div", {
|
|
4213
|
-
className: b(
|
|
4217
|
+
className: b(_l.dragIcon, d ? _l.dragIconDisabled : ""),
|
|
4214
4218
|
...A,
|
|
4215
4219
|
...j,
|
|
4216
4220
|
children: /* @__PURE__ */ S(G, { icon: U.DRAG })
|
|
@@ -4219,12 +4223,12 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4219
4223
|
O,
|
|
4220
4224
|
k
|
|
4221
4225
|
]
|
|
4222
|
-
}, t), w && w.content ? /* @__PURE__ */ S(
|
|
4226
|
+
}, t), w && w.content ? /* @__PURE__ */ S(vl, {
|
|
4223
4227
|
colSpan: i,
|
|
4224
4228
|
flush: w.flush === !0,
|
|
4225
4229
|
children: w.content
|
|
4226
4230
|
}, `${t}_expanded_content`) : null] });
|
|
4227
|
-
},
|
|
4231
|
+
}, Ql = (e) => {
|
|
4228
4232
|
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]);
|
|
4229
4233
|
return a ? /* @__PURE__ */ C(Zr, {
|
|
4230
4234
|
collisionDetection: $r,
|
|
@@ -4259,7 +4263,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4259
4263
|
dropAnimation: null,
|
|
4260
4264
|
children: /* @__PURE__ */ S("table", {
|
|
4261
4265
|
className: b(ec.table, ec.dragOverlay),
|
|
4262
|
-
children: /* @__PURE__ */ S("tbody", { children: /* @__PURE__ */ S(
|
|
4266
|
+
children: /* @__PURE__ */ S("tbody", { children: /* @__PURE__ */ S(Zl, {
|
|
4263
4267
|
rowIndex: Number(d),
|
|
4264
4268
|
row: l[Number(d)],
|
|
4265
4269
|
columnCount: i,
|
|
@@ -4279,17 +4283,17 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4279
4283
|
})
|
|
4280
4284
|
}), document.body)]
|
|
4281
4285
|
}) : t({});
|
|
4282
|
-
},
|
|
4286
|
+
}, $l = 31, eu = 2, tu = ({ table: e, children: t }) => {
|
|
4283
4287
|
var n;
|
|
4284
4288
|
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) => {
|
|
4285
4289
|
var t, n;
|
|
4286
|
-
return (t = (n = i.current.get(e)) == null ? a == null ? void 0 : a(e) : n) == null ?
|
|
4290
|
+
return (t = (n = i.current.get(e)) == null ? a == null ? void 0 : a(e) : n) == null ? $l : t;
|
|
4287
4291
|
}, d = ei({
|
|
4288
4292
|
count: c,
|
|
4289
4293
|
getScrollElement: () => r.current,
|
|
4290
|
-
estimateSize: l ? u : () =>
|
|
4294
|
+
estimateSize: l ? u : () => $l,
|
|
4291
4295
|
...l ? { measureElement: (e) => {
|
|
4292
|
-
let t = e.getAttribute("data-index"), n = t == null ? -1 : Number(t), r = Math.ceil(e.getBoundingClientRect().height), a = n >= 0 ? u(n) :
|
|
4296
|
+
let t = e.getAttribute("data-index"), n = t == null ? -1 : Number(t), r = Math.ceil(e.getBoundingClientRect().height), a = n >= 0 ? u(n) : $l, o = Math.abs(r - a) <= eu ? a : r;
|
|
4293
4297
|
return n >= 0 && i.current.set(n, o), o;
|
|
4294
4298
|
} } : {},
|
|
4295
4299
|
overscan: 10
|
|
@@ -4309,7 +4313,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4309
4313
|
})()
|
|
4310
4314
|
})
|
|
4311
4315
|
});
|
|
4312
|
-
},
|
|
4316
|
+
}, nu = ({ activeIndex: e, triggerScrollToActiveRow: t, isVirtualized: n, virtualizer: r }) => (d(() => {
|
|
4313
4317
|
if (t && !(e == null || e < 0)) {
|
|
4314
4318
|
if (n && r) r.scrollToIndex(e, {
|
|
4315
4319
|
behavior: "auto",
|
|
@@ -4328,11 +4332,11 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4328
4332
|
t,
|
|
4329
4333
|
n,
|
|
4330
4334
|
r
|
|
4331
|
-
]), null),
|
|
4335
|
+
]), null), ru = ({ table: e, children: t }) => {
|
|
4332
4336
|
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]);
|
|
4333
|
-
return n ? /* @__PURE__ */ S(
|
|
4337
|
+
return n ? /* @__PURE__ */ S(tu, {
|
|
4334
4338
|
table: e,
|
|
4335
|
-
children: ({ virtualizer: e, tableStyle: n }) => /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(
|
|
4339
|
+
children: ({ virtualizer: e, tableStyle: n }) => /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(nu, {
|
|
4336
4340
|
isVirtualized: !0,
|
|
4337
4341
|
virtualizer: e,
|
|
4338
4342
|
activeIndex: a,
|
|
@@ -4344,15 +4348,15 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4344
4348
|
}) : /* @__PURE__ */ C("div", {
|
|
4345
4349
|
id: "scrollWrapper",
|
|
4346
4350
|
className: ec.scroll,
|
|
4347
|
-
children: [/* @__PURE__ */ S(
|
|
4351
|
+
children: [/* @__PURE__ */ S(nu, {
|
|
4348
4352
|
isVirtualized: !1,
|
|
4349
4353
|
activeIndex: a,
|
|
4350
4354
|
triggerScrollToActiveRow: r
|
|
4351
4355
|
}), t({})]
|
|
4352
4356
|
});
|
|
4353
|
-
},
|
|
4357
|
+
}, iu = (e) => {
|
|
4354
4358
|
var t, n, r, i, a;
|
|
4355
|
-
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 =
|
|
4359
|
+
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 = ml(p, j), N = gl(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 = {
|
|
4356
4360
|
cells: I ? T.cells.map((e, t) => (e == null ? void 0 : e.type) === "Input" ? {
|
|
4357
4361
|
...e,
|
|
4358
4362
|
onChange: (e) => {
|
|
@@ -4389,7 +4393,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4389
4393
|
name: f,
|
|
4390
4394
|
testId: x && `${x}-title`
|
|
4391
4395
|
}),
|
|
4392
|
-
/* @__PURE__ */ S(
|
|
4396
|
+
/* @__PURE__ */ S(Ql, {
|
|
4393
4397
|
colSpan: P,
|
|
4394
4398
|
columnAlignment: v,
|
|
4395
4399
|
columnCount: M,
|
|
@@ -4399,13 +4403,13 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4399
4403
|
rows: R,
|
|
4400
4404
|
tbodyRef: A,
|
|
4401
4405
|
canListReorder: s,
|
|
4402
|
-
children: ({ dropDisabled: e }) => /* @__PURE__ */ S(
|
|
4406
|
+
children: ({ dropDisabled: e }) => /* @__PURE__ */ S(ru, {
|
|
4403
4407
|
table: z,
|
|
4404
4408
|
children: ({ virtualizer: t, tableStyle: n }) => /* @__PURE__ */ C("table", {
|
|
4405
4409
|
className: b(ec.table, y ? ec.striped : ""),
|
|
4406
4410
|
"data-testid": x,
|
|
4407
4411
|
style: n,
|
|
4408
|
-
children: [/* @__PURE__ */ S("thead", { children: j.map((e, t) => /* @__PURE__ */ S(
|
|
4412
|
+
children: [/* @__PURE__ */ S("thead", { children: j.map((e, t) => /* @__PURE__ */ S(Zl, {
|
|
4409
4413
|
rowIndex: t,
|
|
4410
4414
|
isHeader: !0,
|
|
4411
4415
|
row: e,
|
|
@@ -4423,7 +4427,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4423
4427
|
row: i,
|
|
4424
4428
|
rowIndex: r
|
|
4425
4429
|
}) : i;
|
|
4426
|
-
return /* @__PURE__ */ S(
|
|
4430
|
+
return /* @__PURE__ */ S(Zl, {
|
|
4427
4431
|
rowIndex: r,
|
|
4428
4432
|
row: a,
|
|
4429
4433
|
columnCount: M,
|
|
@@ -4441,7 +4445,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4441
4445
|
row: t,
|
|
4442
4446
|
rowIndex: n
|
|
4443
4447
|
}) : t;
|
|
4444
|
-
return /* @__PURE__ */ S(
|
|
4448
|
+
return /* @__PURE__ */ S(Zl, {
|
|
4445
4449
|
rowIndex: n,
|
|
4446
4450
|
row: r,
|
|
4447
4451
|
columnCount: M,
|
|
@@ -4457,24 +4461,24 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4457
4461
|
})
|
|
4458
4462
|
})
|
|
4459
4463
|
}),
|
|
4460
|
-
d && /* @__PURE__ */ S(
|
|
4464
|
+
d && /* @__PURE__ */ S(fl, {
|
|
4461
4465
|
pagination: d.pagination,
|
|
4462
4466
|
actions: d.actions,
|
|
4463
4467
|
content: d.content
|
|
4464
4468
|
})
|
|
4465
4469
|
]
|
|
4466
4470
|
});
|
|
4467
|
-
},
|
|
4471
|
+
}, au = "blank", ou = 1e4, su = (e, t, n, r) => {
|
|
4468
4472
|
let i = `${t} → ${n}:`, a = e.filter((e) => !e.startsWith(i)), o = r ? [...a, `${i} ${r}`] : a;
|
|
4469
4473
|
return {
|
|
4470
4474
|
updatedErrors: o,
|
|
4471
4475
|
isValid: o.length === 0
|
|
4472
4476
|
};
|
|
4473
|
-
},
|
|
4474
|
-
let i = h(() => t.fields.map((e) => ({ value: e })), [t.fields]), [a, o] = v(
|
|
4477
|
+
}, cu = 20, lu = 1, uu = ({ validationRules: e, parsedResult: t, updateState: n, testId: r }) => {
|
|
4478
|
+
let i = h(() => t.fields.map((e) => ({ value: e })), [t.fields]), [a, o] = v(cu), [s, c] = v(lu), u = _([]), f = (s - 1) * a, p = a === 0 ? t.rows.length : f + a, [m, g] = v([]), y = h(() => {
|
|
4475
4479
|
let n = e.filter((e) => !e.optionalColumn);
|
|
4476
4480
|
return t.fields.length === n.length ? n : e;
|
|
4477
|
-
}, [e, t.fields.length]), b = l((e, r) => (!u.current.length && t.rows.length && (u.current = t.rows[0].map((e) =>
|
|
4481
|
+
}, [e, t.fields.length]), b = l((e, r) => (!u.current.length && t.rows.length && (u.current = t.rows[0].map((e) => Xc(e) ? "NumberInput" : "Input")), {
|
|
4478
4482
|
cells: e.map((e, a) => {
|
|
4479
4483
|
var o, s, c, l, d;
|
|
4480
4484
|
let { columnMessage: f = {}, validator: p = () => null } = (o = y == null ? void 0 : y[a]) == null ? {} : o, m = i == null || (s = i[a]) == null ? void 0 : s.value, h = `${`Row ${r + 1}`} → ${m}:`, _ = p(e), v = (c = t == null || (l = t.errors) == null ? void 0 : l.find((e) => e.startsWith(h))) == null ? null : c, x = _ || v || null;
|
|
@@ -4485,7 +4489,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4485
4489
|
disableValidationOnFocus: !0,
|
|
4486
4490
|
error: x,
|
|
4487
4491
|
validationCallback: (e, i) => {
|
|
4488
|
-
let a = `Row ${r + 1}`, { updatedErrors: o, isValid: s } =
|
|
4492
|
+
let a = `Row ${r + 1}`, { updatedErrors: o, isValid: s } = su(t.errors, a, e, i);
|
|
4489
4493
|
n({ parsedResult: {
|
|
4490
4494
|
...t,
|
|
4491
4495
|
errors: o,
|
|
@@ -4494,7 +4498,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4494
4498
|
},
|
|
4495
4499
|
onChange: (e) => {
|
|
4496
4500
|
var i;
|
|
4497
|
-
let { value: o } = (i = e == null ? void 0 : e.target) == null ? {} : i, s = `Row ${r + 1}`, c = p(o), { updatedErrors: l, isValid: u } =
|
|
4501
|
+
let { value: o } = (i = e == null ? void 0 : e.target) == null ? {} : i, s = `Row ${r + 1}`, c = p(o), { updatedErrors: l, isValid: u } = su(t.errors, s, m, c), d = t.rows.map((e, t) => t === r ? e.map((e, t) => t === a ? o : e) : e);
|
|
4498
4502
|
n({ parsedResult: {
|
|
4499
4503
|
...t,
|
|
4500
4504
|
rows: d,
|
|
@@ -4536,7 +4540,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4536
4540
|
]);
|
|
4537
4541
|
let x = h(() => t.fields.map((e, r) => {
|
|
4538
4542
|
var a, o, s;
|
|
4539
|
-
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) ===
|
|
4543
|
+
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) === au);
|
|
4540
4544
|
if (!l.length || u) return {};
|
|
4541
4545
|
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;
|
|
4542
4546
|
return {
|
|
@@ -4584,7 +4588,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4584
4588
|
b,
|
|
4585
4589
|
f
|
|
4586
4590
|
]);
|
|
4587
|
-
return /* @__PURE__ */ S(
|
|
4591
|
+
return /* @__PURE__ */ S(iu, {
|
|
4588
4592
|
beforeRenderRow: E,
|
|
4589
4593
|
onListReorder: ({ from: e, to: r }) => {
|
|
4590
4594
|
let i = [...t.rows], [a] = i.splice(e, 1);
|
|
@@ -4647,7 +4651,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4647
4651
|
} }
|
|
4648
4652
|
}
|
|
4649
4653
|
});
|
|
4650
|
-
},
|
|
4654
|
+
}, du = { listStyle: "_listStyle_yjfjw_1" }, fu = ({ errors: e, t }) => {
|
|
4651
4655
|
var n;
|
|
4652
4656
|
let r = (n = [...e]) == null ? void 0 : n.sort((e, t) => {
|
|
4653
4657
|
let n = (e) => {
|
|
@@ -4663,18 +4667,18 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4663
4667
|
content: t("unableToImportPleaseCorrectError", { rows: e == null ? void 0 : e.length }),
|
|
4664
4668
|
type: "Error",
|
|
4665
4669
|
details: /* @__PURE__ */ S("ul", {
|
|
4666
|
-
className:
|
|
4670
|
+
className: du.listStyle,
|
|
4667
4671
|
children: r.map((e, t) => /* @__PURE__ */ S("li", { children: e }, t))
|
|
4668
4672
|
})
|
|
4669
4673
|
};
|
|
4670
|
-
},
|
|
4674
|
+
}, pu = ({ errors: e, t }) => e.length ? /* @__PURE__ */ S($s, { message: fu({
|
|
4671
4675
|
errors: e,
|
|
4672
4676
|
t
|
|
4673
|
-
}) }) : null,
|
|
4677
|
+
}) }) : null, mu = {
|
|
4674
4678
|
empty: "_empty_fe425_1",
|
|
4675
4679
|
text: "_text_fe425_11"
|
|
4676
|
-
},
|
|
4677
|
-
className:
|
|
4680
|
+
}, hu = ({ width: e = "auto", height: t = "auto", text: n = "No data", children: r, testId: i }) => /* @__PURE__ */ C("div", {
|
|
4681
|
+
className: mu.empty,
|
|
4678
4682
|
style: {
|
|
4679
4683
|
width: e,
|
|
4680
4684
|
height: t
|
|
@@ -4710,7 +4714,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4710
4714
|
})
|
|
4711
4715
|
}),
|
|
4712
4716
|
n !== "" && /* @__PURE__ */ S("div", {
|
|
4713
|
-
className:
|
|
4717
|
+
className: mu.text,
|
|
4714
4718
|
children: /* @__PURE__ */ S(rs, {
|
|
4715
4719
|
faint: !0,
|
|
4716
4720
|
children: n
|
|
@@ -4718,52 +4722,52 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4718
4722
|
}),
|
|
4719
4723
|
r
|
|
4720
4724
|
]
|
|
4721
|
-
}),
|
|
4725
|
+
}), gu = (e) => {
|
|
4722
4726
|
var t;
|
|
4723
4727
|
return e == null || (t = e.split(/;|\t|\n/)) == null ? void 0 : t.some((e) => {
|
|
4724
4728
|
let t = e == null ? void 0 : e.match(/[.,]/g);
|
|
4725
4729
|
return t && t.length > 1;
|
|
4726
4730
|
});
|
|
4727
|
-
},
|
|
4731
|
+
}, _u = (e) => {
|
|
4728
4732
|
var t;
|
|
4729
4733
|
return e == null || (t = e.split(/;|\t|\n/)) == null ? void 0 : t.some((e) => {
|
|
4730
4734
|
var t;
|
|
4731
4735
|
return !(e != null && e.includes(".")) && (e == null || (t = e.match(/,/g)) == null ? void 0 : t.length) === 1;
|
|
4732
4736
|
});
|
|
4733
|
-
},
|
|
4737
|
+
}, vu = (e, t, n) => e >= t - n, yu = (e) => !!e && e !== "blank" && e.trim() !== "", bu = (e, t, n, r, i, a, o) => {
|
|
4734
4738
|
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;
|
|
4735
|
-
if (i && !
|
|
4739
|
+
if (i && !vu(e.length, l, c) && s.push(o("incorrectNumberOfFieldNameHeaderColumns", { expectedLengthMessage: u })), a) {
|
|
4736
4740
|
var f, p;
|
|
4737
4741
|
let e = r.filter((e) => {
|
|
4738
4742
|
var t;
|
|
4739
|
-
return !e.optionalColumn && Array.isArray(e == null ? void 0 : e.validUnits) && (e == null || (t = e.validUnits) == null ? void 0 : t.some(
|
|
4743
|
+
return !e.optionalColumn && Array.isArray(e == null ? void 0 : e.validUnits) && (e == null || (t = e.validUnits) == null ? void 0 : t.some(yu));
|
|
4740
4744
|
}).length;
|
|
4741
|
-
|
|
4745
|
+
vu(t == null || (f = t.filter(yu)) == 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 }));
|
|
4742
4746
|
}
|
|
4743
4747
|
return n.length === 0 ? s.push(o("incorrectNumberOfDataColumns", {
|
|
4744
4748
|
expectedLengthMessage: u,
|
|
4745
4749
|
dataRowStartIndex: d
|
|
4746
4750
|
})) : n.forEach((e, t) => {
|
|
4747
|
-
|
|
4751
|
+
vu(e.length, l, c) || s.push(o("incorrectNumberOfDataColumns", {
|
|
4748
4752
|
expectedLengthMessage: u,
|
|
4749
4753
|
dataRowStartIndex: d + t
|
|
4750
4754
|
}));
|
|
4751
4755
|
}), s;
|
|
4752
|
-
},
|
|
4756
|
+
}, xu = (e) => e.toUpperCase().replace(/\(.*?\)/g, "").replace(/[^A-Z0-9]/g, "").trim(), Su = ({ value: e, defaultAllowedValues: t }) => {
|
|
4753
4757
|
var n;
|
|
4754
|
-
let r =
|
|
4755
|
-
return (n = t == null ? void 0 : t.some((e) =>
|
|
4756
|
-
},
|
|
4758
|
+
let r = xu(e);
|
|
4759
|
+
return (n = t == null ? void 0 : t.some((e) => xu(e).includes(r) || r.includes(xu(e)))) != null && n;
|
|
4760
|
+
}, Cu = ({ value: e, defaultAllowedValues: t }) => {
|
|
4757
4761
|
var n;
|
|
4758
4762
|
return (n = t == null ? void 0 : t.includes(e)) != null && n;
|
|
4759
|
-
},
|
|
4763
|
+
}, wu = (e, t, n, r, i, a) => {
|
|
4760
4764
|
let o = [];
|
|
4761
4765
|
if (r) {
|
|
4762
4766
|
let r = n.map((e) => e.fieldName).filter(Boolean);
|
|
4763
4767
|
e.forEach((i, s) => {
|
|
4764
4768
|
var c, l;
|
|
4765
4769
|
let u = n[s];
|
|
4766
|
-
if (!(!u || !(u != null && u.fieldName)) && !((c = (l = n[s]) == null ? void 0 : l.fieldNameValidator) == null ?
|
|
4770
|
+
if (!(!u || !(u != null && u.fieldName)) && !((c = (l = n[s]) == null ? void 0 : l.fieldNameValidator) == null ? Su : c)({
|
|
4767
4771
|
value: i,
|
|
4768
4772
|
defaultAllowedValues: r,
|
|
4769
4773
|
columnIndex: s,
|
|
@@ -4785,7 +4789,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4785
4789
|
var l, u;
|
|
4786
4790
|
let d = n[c];
|
|
4787
4791
|
if (!d || d != null && d.optionalColumn) return;
|
|
4788
|
-
let f = (l = d.unitsValidator) == null ?
|
|
4792
|
+
let f = (l = d.unitsValidator) == null ? Cu : l, p = (u = i == null ? void 0 : i[c]) == null ? [] : u;
|
|
4789
4793
|
f({
|
|
4790
4794
|
value: r,
|
|
4791
4795
|
defaultAllowedValues: p,
|
|
@@ -4801,7 +4805,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4801
4805
|
});
|
|
4802
4806
|
}
|
|
4803
4807
|
return o;
|
|
4804
|
-
},
|
|
4808
|
+
}, Tu = (e, t, n) => {
|
|
4805
4809
|
let r = [];
|
|
4806
4810
|
return e.forEach((e, i) => {
|
|
4807
4811
|
e.forEach((e, a) => {
|
|
@@ -4814,91 +4818,91 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4814
4818
|
})}`);
|
|
4815
4819
|
});
|
|
4816
4820
|
}), r;
|
|
4817
|
-
},
|
|
4818
|
-
let s =
|
|
4819
|
-
return s.length === 0 && (s = s.concat(
|
|
4821
|
+
}, Eu = (e, t, n, r, i, a, o) => {
|
|
4822
|
+
let s = bu(e, t, n, r, i, a, o);
|
|
4823
|
+
return s.length === 0 && (s = s.concat(wu(e, t, r, i, a, o), Tu(n, r, o))), {
|
|
4820
4824
|
isValid: s.length === 0,
|
|
4821
4825
|
errors: s
|
|
4822
4826
|
};
|
|
4823
|
-
},
|
|
4827
|
+
}, Du = (e, t, n) => {
|
|
4824
4828
|
var r, i, a, o, s, c, l, u, d, f, p, m, h, g;
|
|
4825
4829
|
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;
|
|
4826
4830
|
return {
|
|
4827
4831
|
hasFieldNameHeader: b || v && !x && !C || v && y && !C,
|
|
4828
4832
|
hasUnitHeader: x || S || v && y && !x && !C && !w || v && y && !C && !w
|
|
4829
4833
|
};
|
|
4830
|
-
},
|
|
4834
|
+
}, Ou = (e, { validationRules: t }) => {
|
|
4831
4835
|
var n, r, i;
|
|
4832
4836
|
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) => {
|
|
4833
4837
|
var t;
|
|
4834
4838
|
return (t = e == null ? void 0 : e.defaultUnit) == null ? s(e == null ? void 0 : e.validUnits) : t;
|
|
4835
|
-
}), { hasFieldNameHeader: l, hasUnitHeader: u } =
|
|
4839
|
+
}), { hasFieldNameHeader: l, hasUnitHeader: u } = Du(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());
|
|
4836
4840
|
return l || e == null || e.unshift(o), u || e == null || e.splice(1, 0, c), {
|
|
4837
4841
|
hasFieldNameHeader: l,
|
|
4838
4842
|
hasUnitHeader: u
|
|
4839
4843
|
};
|
|
4840
|
-
},
|
|
4844
|
+
}, ku = (e) => Math.round(e * 100) / 100, Au = (e) => e.join(", ").replace(/,\s*$/, ""), ju = {
|
|
4841
4845
|
skipEmptyLines: !0,
|
|
4842
4846
|
delimiter: (e) => {
|
|
4843
4847
|
var t, n;
|
|
4844
4848
|
let r = e.substring(0, 200), i = ((t = r.match(/\t/g)) == null ? [] : t).length, a = ((n = r.match(/;/g)) == null ? [] : n).length;
|
|
4845
4849
|
return i === 0 && a === 0 ? "," : i > a ? " " : ";";
|
|
4846
4850
|
}
|
|
4847
|
-
},
|
|
4851
|
+
}, Mu = [
|
|
4848
4852
|
"text/csv",
|
|
4849
4853
|
"text/plain",
|
|
4850
4854
|
"application/json",
|
|
4851
4855
|
"application/vnd.ms-excel"
|
|
4852
|
-
],
|
|
4856
|
+
], Nu = (e) => Mu.includes(e.type), Pu = (e) => e instanceof File, Fu = (e) => e.trim().startsWith("["), Iu = (e) => {
|
|
4853
4857
|
try {
|
|
4854
4858
|
var t;
|
|
4855
4859
|
return !!((t = JSON.parse(e)) != null && t.path);
|
|
4856
4860
|
} catch {
|
|
4857
4861
|
return !1;
|
|
4858
4862
|
}
|
|
4859
|
-
},
|
|
4863
|
+
}, Lu = (e) => new Promise((t, n) => {
|
|
4860
4864
|
let r = new FileReader();
|
|
4861
4865
|
r.onload = () => t(String(r.result)), r.onerror = n, r.readAsText(e);
|
|
4862
|
-
}),
|
|
4866
|
+
}), Ru = async (e, t, n) => {
|
|
4863
4867
|
try {
|
|
4864
|
-
return
|
|
4868
|
+
return Gu({
|
|
4865
4869
|
data: JSON.parse(e),
|
|
4866
4870
|
errors: []
|
|
4867
4871
|
}, t, n);
|
|
4868
4872
|
} catch (e) {
|
|
4869
4873
|
throw Error(`${n("jsonParseFailed")} ${e.message}`);
|
|
4870
4874
|
}
|
|
4871
|
-
},
|
|
4875
|
+
}, zu = async (e, t, n) => {
|
|
4872
4876
|
try {
|
|
4873
4877
|
let r = JSON.parse(e).path.map((e) => [
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4878
|
+
ku(e.md),
|
|
4879
|
+
ku(e.inclination),
|
|
4880
|
+
ku(e.gridAzimuth)
|
|
4877
4881
|
]);
|
|
4878
4882
|
return r.unshift([
|
|
4879
4883
|
"m",
|
|
4880
4884
|
"deg",
|
|
4881
4885
|
"deg"
|
|
4882
|
-
]),
|
|
4886
|
+
]), Gu({
|
|
4883
4887
|
data: r,
|
|
4884
4888
|
errors: []
|
|
4885
4889
|
}, t, n);
|
|
4886
4890
|
} catch (e) {
|
|
4887
4891
|
throw Error(`${n("jsonParseFailed")} ${e.message}`);
|
|
4888
4892
|
}
|
|
4889
|
-
},
|
|
4893
|
+
}, Bu = (e) => e.replace(",", "."), Vu = (e) => e.map((e) => e.map((e) => Bu(e))), Hu = (e, { importLimit: t, ...n }, r) => new Promise((i) => {
|
|
4890
4894
|
ti.parse(e, {
|
|
4891
|
-
...
|
|
4895
|
+
...ju,
|
|
4892
4896
|
preview: t,
|
|
4893
4897
|
complete: (e) => {
|
|
4894
|
-
let a =
|
|
4898
|
+
let a = Gu(e, {
|
|
4895
4899
|
importLimit: t,
|
|
4896
4900
|
...n
|
|
4897
4901
|
}, r);
|
|
4898
|
-
a.rows =
|
|
4902
|
+
a.rows = Vu(a.rows), i(a);
|
|
4899
4903
|
}
|
|
4900
4904
|
});
|
|
4901
|
-
}),
|
|
4905
|
+
}), Uu = async (e, t, n) => {
|
|
4902
4906
|
let r = {
|
|
4903
4907
|
isValid: !1,
|
|
4904
4908
|
fields: [],
|
|
@@ -4907,13 +4911,13 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4907
4911
|
errors: []
|
|
4908
4912
|
};
|
|
4909
4913
|
try {
|
|
4910
|
-
if (
|
|
4911
|
-
let i =
|
|
4912
|
-
return
|
|
4914
|
+
if (Pu(e) && !Nu(e)) return r.errors.push(`${n("wrongFileFormatExpectedOneOf")} ${Au(Array.from(Mu))}`), r;
|
|
4915
|
+
let i = Pu(e) ? await Lu(e) : e;
|
|
4916
|
+
return Fu(i) ? await Ru(i, t, n) : Iu(i) ? await zu(i, t, n) : await Hu(e, t, n);
|
|
4913
4917
|
} catch (e) {
|
|
4914
4918
|
return r.errors.push(e.message), r;
|
|
4915
4919
|
}
|
|
4916
|
-
},
|
|
4920
|
+
}, Wu = (e, t, n, r) => {
|
|
4917
4921
|
var i;
|
|
4918
4922
|
let a = (i = r == null ? void 0 : r.delimiter) == null ? "," : i, o = [
|
|
4919
4923
|
e,
|
|
@@ -4925,7 +4929,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4925
4929
|
header: !0,
|
|
4926
4930
|
delimiter: a
|
|
4927
4931
|
});
|
|
4928
|
-
},
|
|
4932
|
+
}, Gu = (e, t, n) => {
|
|
4929
4933
|
let { data: r, errors: i } = e, a = {
|
|
4930
4934
|
isValid: !1,
|
|
4931
4935
|
fields: [],
|
|
@@ -4934,22 +4938,22 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4934
4938
|
errors: i.map((e) => e.message)
|
|
4935
4939
|
};
|
|
4936
4940
|
if (i.length > 0) return a;
|
|
4937
|
-
let { hasFieldNameHeader: o, hasUnitHeader: s } =
|
|
4941
|
+
let { hasFieldNameHeader: o, hasUnitHeader: s } = Ou(r, t);
|
|
4938
4942
|
a.fields = r[0].map((e) => e.trim()), a.units = r[1].map((e) => e.trim()).filter(Boolean), a.rows = r.slice(2);
|
|
4939
4943
|
let { validationRules: c } = t;
|
|
4940
4944
|
if (c.length) {
|
|
4941
|
-
let { isValid: e, errors: t } =
|
|
4945
|
+
let { isValid: e, errors: t } = Eu(a.fields, a.units, a.rows, c, o, s, n);
|
|
4942
4946
|
a.errors.push(...t), a.isValid = e && t.length === 0;
|
|
4943
4947
|
} else a.isValid = a.errors.length === 0;
|
|
4944
4948
|
return a;
|
|
4945
|
-
},
|
|
4949
|
+
}, Ku = .001, qu = 0, Ju = (e, t) => e.every((e) => {
|
|
4946
4950
|
let n = e[t];
|
|
4947
4951
|
return n !== void 0 && n.trim() !== "" && dn(wr(n));
|
|
4948
|
-
}),
|
|
4952
|
+
}), Yu = (e, t = {}) => {
|
|
4949
4953
|
var n, r;
|
|
4950
|
-
let { independentColumnIndex: i =
|
|
4951
|
-
if (e.length <= 2 || !
|
|
4952
|
-
let s = (n = (r = ii(e, (e) => e.length)) == null ? void 0 : r.length) == null ? 0 : n, c = oi(a == null ? ai(s) : a).filter((t) => t !== i &&
|
|
4954
|
+
let { independentColumnIndex: i = qu, dependentColumnIndexes: a, tolerance: o = Ku } = t;
|
|
4955
|
+
if (e.length <= 2 || !Ju(e, i)) return e.slice();
|
|
4956
|
+
let s = (n = (r = ii(e, (e) => e.length)) == null ? void 0 : r.length) == null ? 0 : n, c = oi(a == null ? ai(s) : a).filter((t) => t !== i && Ju(e, t));
|
|
4953
4957
|
if (c.length === 0) return e.slice();
|
|
4954
4958
|
let l = /* @__PURE__ */ new Set();
|
|
4955
4959
|
for (let t of c) {
|
|
@@ -4963,7 +4967,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4963
4967
|
}
|
|
4964
4968
|
}
|
|
4965
4969
|
return e.filter((e, t) => l.has(t));
|
|
4966
|
-
},
|
|
4970
|
+
}, Xu = ({ id: e, message: t = {
|
|
4967
4971
|
type: qs.INFO,
|
|
4968
4972
|
content: ""
|
|
4969
4973
|
}, autoClose: n = 6e3, onClose: r }) => {
|
|
@@ -5004,13 +5008,13 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5004
5008
|
transition: si,
|
|
5005
5009
|
type: s
|
|
5006
5010
|
});
|
|
5007
|
-
},
|
|
5011
|
+
}, Zu = (e) => {
|
|
5008
5012
|
li.dismiss(e);
|
|
5009
|
-
},
|
|
5013
|
+
}, Qu = (e, t) => {
|
|
5010
5014
|
t(() => {
|
|
5011
|
-
|
|
5015
|
+
Xu({ ...e });
|
|
5012
5016
|
});
|
|
5013
|
-
},
|
|
5017
|
+
}, $u = {
|
|
5014
5018
|
inputInTable: "_inputInTable_h6wco_1",
|
|
5015
5019
|
inputHover: "_inputHover_h6wco_13",
|
|
5016
5020
|
inputFocus: "_inputFocus_h6wco_18",
|
|
@@ -5026,7 +5030,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5026
5030
|
control: "_control_h6wco_25",
|
|
5027
5031
|
labelText: "_labelText_h6wco_137",
|
|
5028
5032
|
noMargin: "_noMargin_h6wco_201"
|
|
5029
|
-
},
|
|
5033
|
+
}, 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 = Pi.CAPITALIZE }) => {
|
|
5030
5034
|
let p = u(W), m = l || d;
|
|
5031
5035
|
return /* @__PURE__ */ C(di, {
|
|
5032
5036
|
name: e,
|
|
@@ -5039,14 +5043,14 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5039
5043
|
value: t
|
|
5040
5044
|
} });
|
|
5041
5045
|
},
|
|
5042
|
-
className: b(
|
|
5046
|
+
className: b($u.toggleContainer, s && $u.noMargin),
|
|
5043
5047
|
style: { display: i },
|
|
5044
5048
|
"data-testid": c ? `${c}-field` : void 0,
|
|
5045
5049
|
children: [/* @__PURE__ */ C(ui, {
|
|
5046
|
-
className: b(
|
|
5050
|
+
className: b($u.toggle, a && $u.small, !t && $u.noLabel),
|
|
5047
5051
|
"data-testid": c,
|
|
5048
|
-
children: [/* @__PURE__ */ S("span", { className:
|
|
5049
|
-
className:
|
|
5052
|
+
children: [/* @__PURE__ */ S("span", { className: $u.control }), t && /* @__PURE__ */ S("span", {
|
|
5053
|
+
className: $u.labelText,
|
|
5050
5054
|
style: { textTransform: f },
|
|
5051
5055
|
children: t
|
|
5052
5056
|
})]
|
|
@@ -5055,7 +5059,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5055
5059
|
onClick: d
|
|
5056
5060
|
})]
|
|
5057
5061
|
});
|
|
5058
|
-
},
|
|
5062
|
+
}, 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 }) => {
|
|
5059
5063
|
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({
|
|
5060
5064
|
pastedText: "",
|
|
5061
5065
|
parsedResult: {
|
|
@@ -5076,10 +5080,10 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5076
5080
|
let { pastedText: j, parsedResult: M } = k, N = l((t) => {
|
|
5077
5081
|
if (t) {
|
|
5078
5082
|
var n, r;
|
|
5079
|
-
let t =
|
|
5083
|
+
let t = Yu(M.rows, e.downsampleConfig), i = {
|
|
5080
5084
|
validationRules: o,
|
|
5081
|
-
importLimit: (n = e.importLimit) == null ?
|
|
5082
|
-
}, a =
|
|
5085
|
+
importLimit: (n = e.importLimit) == null ? ou : n
|
|
5086
|
+
}, a = Wu(M.fields, (r = M.units) == null ? [] : r, t, i);
|
|
5083
5087
|
f(() => A({
|
|
5084
5088
|
parsedResult: {
|
|
5085
5089
|
...M,
|
|
@@ -5112,17 +5116,17 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5112
5116
|
}, F = () => {
|
|
5113
5117
|
r("helpModal", !g);
|
|
5114
5118
|
}, I = () => {
|
|
5115
|
-
n(k), s(k.parsedResult), i(),
|
|
5119
|
+
n(k), s(k.parsedResult), i(), Qu({ message: {
|
|
5116
5120
|
type: "Success",
|
|
5117
5121
|
content: u("pasteSuccessful")
|
|
5118
5122
|
} }, f);
|
|
5119
|
-
}, L = T && T(M), { isValid: R, errors: z } = M, B = z.length, ee = j === "", te =
|
|
5123
|
+
}, L = T && T(M), { isValid: R, errors: z } = M, B = z.length, ee = j === "", te = _u(j), ne = gu(j), V = /* @__PURE__ */ C(x, { children: [
|
|
5120
5124
|
/* @__PURE__ */ C("div", {
|
|
5121
5125
|
className: Gs.headerContainer,
|
|
5122
5126
|
children: [
|
|
5123
5127
|
/* @__PURE__ */ S(ga, {
|
|
5124
5128
|
text: u("downsampleTooltip"),
|
|
5125
|
-
children: /* @__PURE__ */ S(
|
|
5129
|
+
children: /* @__PURE__ */ S(ed, {
|
|
5126
5130
|
label: u("downsampled"),
|
|
5127
5131
|
checked: D,
|
|
5128
5132
|
onChange: () => N(!D),
|
|
@@ -5155,7 +5159,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5155
5159
|
}),
|
|
5156
5160
|
ee ? /* @__PURE__ */ S("div", {
|
|
5157
5161
|
className: Gs.resultContainer,
|
|
5158
|
-
children: /* @__PURE__ */ S(
|
|
5162
|
+
children: /* @__PURE__ */ S(hu, {
|
|
5159
5163
|
text: null,
|
|
5160
5164
|
children: /* @__PURE__ */ C("div", {
|
|
5161
5165
|
className: Gs.emptyState,
|
|
@@ -5191,7 +5195,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5191
5195
|
}) : /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ C("div", {
|
|
5192
5196
|
className: Gs.messagesContainer,
|
|
5193
5197
|
children: [
|
|
5194
|
-
B ? /* @__PURE__ */ S(
|
|
5198
|
+
B ? /* @__PURE__ */ S(pu, {
|
|
5195
5199
|
errors: z,
|
|
5196
5200
|
t: u
|
|
5197
5201
|
}) : null,
|
|
@@ -5214,7 +5218,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5214
5218
|
type: "Warning"
|
|
5215
5219
|
} })
|
|
5216
5220
|
]
|
|
5217
|
-
}), /* @__PURE__ */ S(
|
|
5221
|
+
}), /* @__PURE__ */ S(uu, {
|
|
5218
5222
|
validationRules: o,
|
|
5219
5223
|
parsedResult: M,
|
|
5220
5224
|
updateState: (e) => A((t) => ({
|
|
@@ -5257,7 +5261,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5257
5261
|
onClose: i
|
|
5258
5262
|
} })
|
|
5259
5263
|
});
|
|
5260
|
-
},
|
|
5264
|
+
}, nd = ({ modals: e = [], modalVisibility: t, onCloseModal: r, testId: i }) => e.length ? /* @__PURE__ */ S(x, { children: e.map(({ name: e, component: a, props: o = {} }) => {
|
|
5261
5265
|
var s;
|
|
5262
5266
|
return /* @__PURE__ */ S(n, { children: /* @__PURE__ */ S(a, {
|
|
5263
5267
|
testId: `${i}-modal-render-${e}`,
|
|
@@ -5265,7 +5269,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5265
5269
|
onClose: () => r({ name: e }),
|
|
5266
5270
|
...o
|
|
5267
5271
|
}) }, e);
|
|
5268
|
-
}) }) : null,
|
|
5272
|
+
}) }) : null, rd = ({ sections: e, iconName: t, testId: n, tooltip: r }) => /* @__PURE__ */ S(vo, {
|
|
5269
5273
|
loading: !0,
|
|
5270
5274
|
menu: {
|
|
5271
5275
|
component: /* @__PURE__ */ S(K, {
|
|
@@ -5281,18 +5285,18 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5281
5285
|
sections: e
|
|
5282
5286
|
},
|
|
5283
5287
|
testId: n
|
|
5284
|
-
}),
|
|
5288
|
+
}), id = (e, t, n) => l(async () => {
|
|
5285
5289
|
if (n) try {
|
|
5286
5290
|
return await n();
|
|
5287
5291
|
} catch (t) {
|
|
5288
|
-
console.error("beforeExportData failed", t),
|
|
5292
|
+
console.error("beforeExportData failed", t), Xu({ message: {
|
|
5289
5293
|
type: "Error",
|
|
5290
5294
|
content: e("unableToPrepareExportData")
|
|
5291
5295
|
} });
|
|
5292
5296
|
return;
|
|
5293
5297
|
}
|
|
5294
5298
|
return t;
|
|
5295
|
-
}, [t, n]),
|
|
5299
|
+
}, [t, n]), ad = {
|
|
5296
5300
|
cancel: "Cancel",
|
|
5297
5301
|
chooseFile: "Choose file",
|
|
5298
5302
|
copyDecimalComma: "Copy (decimal comma)",
|
|
@@ -5351,26 +5355,26 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5351
5355
|
smartUpload_description: "Upload image and extract table content using a LLM",
|
|
5352
5356
|
smartUpload_smartUpload: "Smart Upload",
|
|
5353
5357
|
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"
|
|
5354
|
-
},
|
|
5355
|
-
let t = Object.keys(
|
|
5356
|
-
let r =
|
|
5358
|
+
}, 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(() => {
|
|
5359
|
+
let t = Object.keys(ad).reduce((t, n) => {
|
|
5360
|
+
let r = ad == null ? void 0 : ad[n], i = e == null ? void 0 : e[n];
|
|
5357
5361
|
return t[n] = i == null ? r : i, t;
|
|
5358
5362
|
}, {});
|
|
5359
5363
|
return (e, n) => {
|
|
5360
5364
|
let r = t[e];
|
|
5361
|
-
return n ?
|
|
5365
|
+
return n ? od(r, n) : r;
|
|
5362
5366
|
};
|
|
5363
|
-
}, [e]),
|
|
5367
|
+
}, [e]), cd = /^\s*-?\d+(?:[.,]\d+)?(?:e[+-]?\d+)?\s*$/i, ld = (e) => {
|
|
5364
5368
|
var t;
|
|
5365
5369
|
return {
|
|
5366
5370
|
...e,
|
|
5367
5371
|
rows: e == null || (t = e.rows) == null ? void 0 : t.map((e) => e.map((e) => {
|
|
5368
5372
|
let t = String(e == null ? "" : e);
|
|
5369
|
-
return
|
|
5373
|
+
return cd.test(t) ? or(t) : t;
|
|
5370
5374
|
}))
|
|
5371
5375
|
};
|
|
5372
|
-
},
|
|
5373
|
-
let { exportData: a, beforeExportData: o, importLimit: s =
|
|
5376
|
+
}, ud = ({ config: e, state: t, setState: n, smartUploadConfig: r, startTransition: i }) => {
|
|
5377
|
+
let { exportData: a, beforeExportData: o, importLimit: s = ou, 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) => {
|
|
5374
5378
|
n((t) => ({
|
|
5375
5379
|
...t,
|
|
5376
5380
|
...e
|
|
@@ -5414,9 +5418,9 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5414
5418
|
let t = {
|
|
5415
5419
|
validationRules: c,
|
|
5416
5420
|
importLimit: s
|
|
5417
|
-
}, n =
|
|
5421
|
+
}, n = ld(await Uu(e, t, _));
|
|
5418
5422
|
if (g && g(h)) {
|
|
5419
|
-
let { fields: e, units: r, rows: a } = n, o =
|
|
5423
|
+
let { fields: e, units: r, rows: a } = n, o = Wu(e, r == null ? [] : r, a, t);
|
|
5420
5424
|
return i(() => y({
|
|
5421
5425
|
pastedText: o,
|
|
5422
5426
|
parsedResult: h
|
|
@@ -5442,20 +5446,20 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5442
5446
|
let { fromFile: t, showSuccessToast: n = !0 } = e == null ? {} : e, r;
|
|
5443
5447
|
try {
|
|
5444
5448
|
if (r = t ? await t.text() : await navigator.clipboard.readText(), !r) {
|
|
5445
|
-
|
|
5449
|
+
Qu({ message: {
|
|
5446
5450
|
type: "Error",
|
|
5447
5451
|
content: _(t ? "fileReadOrParseFailed" : "clipboardReadNotAllowed")
|
|
5448
5452
|
} }, i);
|
|
5449
5453
|
return;
|
|
5450
5454
|
}
|
|
5451
|
-
let e =
|
|
5455
|
+
let e = ld(await Uu(r, {
|
|
5452
5456
|
validationRules: c,
|
|
5453
5457
|
importLimit: s
|
|
5454
5458
|
}, _));
|
|
5455
|
-
return e != null && e.isValid ||
|
|
5459
|
+
return e != null && e.isValid || Qu({ message: {
|
|
5456
5460
|
type: "Error",
|
|
5457
5461
|
content: _("clipboardReadFailed")
|
|
5458
|
-
} }, i), n &&
|
|
5462
|
+
} }, i), n && Qu({ message: {
|
|
5459
5463
|
type: "Success",
|
|
5460
5464
|
content: _("pasteSuccessful")
|
|
5461
5465
|
} }, i), {
|
|
@@ -5463,7 +5467,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5463
5467
|
parsedResult: e
|
|
5464
5468
|
};
|
|
5465
5469
|
} catch (e) {
|
|
5466
|
-
|
|
5470
|
+
Qu({ message: {
|
|
5467
5471
|
type: "Error",
|
|
5468
5472
|
content: _(t ? "fileReadOrParseFailed" : "clipboardReadNotAllowed"),
|
|
5469
5473
|
details: e.message
|
|
@@ -5476,10 +5480,10 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5476
5480
|
let n = e == null || (t = e.target) == null || (t = t.files) == null ? void 0 : t[0];
|
|
5477
5481
|
if (!n) return;
|
|
5478
5482
|
let r = await n.text(), a = await C(r);
|
|
5479
|
-
a.isValid ? (f ||
|
|
5483
|
+
a.isValid ? (f || Qu({ message: {
|
|
5480
5484
|
type: "Success",
|
|
5481
5485
|
content: _("pasteSuccessful")
|
|
5482
|
-
} }, i), i(() => d(a))) :
|
|
5486
|
+
} }, i), i(() => d(a))) : Qu({ message: {
|
|
5483
5487
|
type: "Error",
|
|
5484
5488
|
content: _("fileParsingFailed")
|
|
5485
5489
|
} }, i);
|
|
@@ -5493,7 +5497,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5493
5497
|
try {
|
|
5494
5498
|
let t = await navigator.clipboard.readText();
|
|
5495
5499
|
if (!t) {
|
|
5496
|
-
|
|
5500
|
+
Qu({ message: {
|
|
5497
5501
|
type: "Error",
|
|
5498
5502
|
content: _("clipboardIsEmpty")
|
|
5499
5503
|
} }, i);
|
|
@@ -5501,18 +5505,18 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5501
5505
|
}
|
|
5502
5506
|
let n = await C(t);
|
|
5503
5507
|
if (!n.isValid) {
|
|
5504
|
-
|
|
5508
|
+
Qu({ message: {
|
|
5505
5509
|
type: "Error",
|
|
5506
5510
|
content: _("clipboardReadFailed")
|
|
5507
5511
|
} }, i);
|
|
5508
5512
|
return;
|
|
5509
5513
|
}
|
|
5510
|
-
f ||
|
|
5514
|
+
f || Qu({ message: {
|
|
5511
5515
|
type: "Success",
|
|
5512
5516
|
content: _("pasteSuccessful")
|
|
5513
5517
|
} }, i), e && i(() => d(n));
|
|
5514
5518
|
} catch {
|
|
5515
|
-
|
|
5519
|
+
Qu({ message: {
|
|
5516
5520
|
type: "Error",
|
|
5517
5521
|
content: _("clipboardReadNotAllowed")
|
|
5518
5522
|
} }, i);
|
|
@@ -5527,14 +5531,14 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5527
5531
|
onClickCopyClipboard: l(async (e) => {
|
|
5528
5532
|
let t = await v();
|
|
5529
5533
|
if (!t) return;
|
|
5530
|
-
let { fields: n = [], units: r = [], rows: a = [] } = t, o = (r == null ? [] : r).map((e) => e != null && e.length ? e :
|
|
5534
|
+
let { fields: n = [], units: r = [], rows: a = [] } = t, o = (r == null ? [] : r).map((e) => e != null && e.length ? e : au).slice(0, n.length), s = (e, t) => t === "comma" ? e.replace(/\./g, ",") : e, c = Wu(n, o, a.map((t) => t.map((t) => ri(t) ? "" : s(t.toString(), e))), { delimiter: " " });
|
|
5531
5535
|
try {
|
|
5532
|
-
await navigator.clipboard.writeText(c),
|
|
5536
|
+
await navigator.clipboard.writeText(c), Qu({ message: {
|
|
5533
5537
|
type: "Success",
|
|
5534
5538
|
content: _("copiedToClipboard")
|
|
5535
5539
|
} }, i);
|
|
5536
5540
|
} catch (e) {
|
|
5537
|
-
|
|
5541
|
+
Qu({ message: {
|
|
5538
5542
|
type: "Error",
|
|
5539
5543
|
content: _("unableToCopyToClipboard"),
|
|
5540
5544
|
details: e.message
|
|
@@ -5544,14 +5548,14 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5544
5548
|
onSmartUploadResult: l((e) => {
|
|
5545
5549
|
let t = gn(e) && _n(e.errorMessage) ? e.errorMessage : void 0;
|
|
5546
5550
|
if (t) {
|
|
5547
|
-
|
|
5551
|
+
Qu({ message: {
|
|
5548
5552
|
type: "Error",
|
|
5549
5553
|
content: t || "Smart upload failed."
|
|
5550
5554
|
} }, i);
|
|
5551
5555
|
return;
|
|
5552
5556
|
}
|
|
5553
5557
|
if (!sn(e) || e.length < 2 || !an(e, (e) => gn(e) && an(wn(e), _n))) {
|
|
5554
|
-
|
|
5558
|
+
Qu({ message: {
|
|
5555
5559
|
type: "Error",
|
|
5556
5560
|
content: "Smart upload returned unexpected format.",
|
|
5557
5561
|
details: JSON.stringify(e)
|
|
@@ -5583,14 +5587,14 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5583
5587
|
]),
|
|
5584
5588
|
deleteAllRows: x
|
|
5585
5589
|
};
|
|
5586
|
-
},
|
|
5590
|
+
}, dd = (e, t) => {
|
|
5587
5591
|
var n, r;
|
|
5588
|
-
let { fields: i, rows: a } = e, o =
|
|
5592
|
+
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");
|
|
5589
5593
|
c.href = window.URL.createObjectURL(s), c.download = `${t}.csv`, document.body.appendChild(c), c.click(), document.body.removeChild(c);
|
|
5590
|
-
},
|
|
5594
|
+
}, fd = (e) => hn(e) && "modalKey" in e, pd = (e, t, n) => nn(e, (e) => {
|
|
5591
5595
|
if (sn(e) || !gn(e)) return;
|
|
5592
5596
|
let { modalKey: r } = e == null ? {} : e;
|
|
5593
|
-
if (
|
|
5597
|
+
if (fd(e) && typeof e.onClick != "function") {
|
|
5594
5598
|
let i = () => {
|
|
5595
5599
|
var e;
|
|
5596
5600
|
n(r, !((e = t.modalVisibility) != null && e[r]));
|
|
@@ -5600,7 +5604,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5600
5604
|
onClick: i
|
|
5601
5605
|
};
|
|
5602
5606
|
}
|
|
5603
|
-
}),
|
|
5607
|
+
}), md = (e, t, n) => pd(e, t, n), hd = {
|
|
5604
5608
|
pastedText: "",
|
|
5605
5609
|
parsedResult: {
|
|
5606
5610
|
isValid: !1,
|
|
@@ -5615,9 +5619,9 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5615
5619
|
reviewPasteModal: !1,
|
|
5616
5620
|
helpModal: !1
|
|
5617
5621
|
}
|
|
5618
|
-
},
|
|
5622
|
+
}, gd = ({ config: e, smartUploadConfig: t, testId: n }) => {
|
|
5619
5623
|
var r, i, a, o;
|
|
5620
|
-
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(
|
|
5624
|
+
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({
|
|
5621
5625
|
config: e,
|
|
5622
5626
|
state: E,
|
|
5623
5627
|
setState: D,
|
|
@@ -5650,14 +5654,14 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5650
5654
|
onClick: () => V("smartUploadModal", !O),
|
|
5651
5655
|
testId: `${n}-smart-upload`
|
|
5652
5656
|
}] : [],
|
|
5653
|
-
...
|
|
5657
|
+
...md((r = w == null ? void 0 : w.importOptions) == null ? [] : r, E, V)
|
|
5654
5658
|
] : [], le = [
|
|
5655
5659
|
{
|
|
5656
5660
|
type: "Option",
|
|
5657
5661
|
label: I("downloadFile"),
|
|
5658
5662
|
onClick: async () => {
|
|
5659
5663
|
let e = await L();
|
|
5660
|
-
e && e &&
|
|
5664
|
+
e && e && dd(e, d);
|
|
5661
5665
|
}
|
|
5662
5666
|
},
|
|
5663
5667
|
...p ? [{
|
|
@@ -5682,20 +5686,20 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5682
5686
|
}]
|
|
5683
5687
|
}
|
|
5684
5688
|
}],
|
|
5685
|
-
...
|
|
5689
|
+
...md((i = w == null ? void 0 : w.exportOptions) == null ? [] : i, E, V)
|
|
5686
5690
|
], ue = g ? [{
|
|
5687
5691
|
type: "Option",
|
|
5688
5692
|
label: I("deleteAllRows"),
|
|
5689
5693
|
onClick: () => se(),
|
|
5690
5694
|
testId: `${n}-delete-all-rows`
|
|
5691
|
-
}, ...
|
|
5695
|
+
}, ...md((a = w == null ? void 0 : w.deleteOptions) == null ? [] : a, E, V)] : [], de = _ ? [
|
|
5692
5696
|
{ type: "Divider" },
|
|
5693
5697
|
{
|
|
5694
5698
|
type: "Option",
|
|
5695
5699
|
label: I("help"),
|
|
5696
5700
|
onClick: () => V("helpModal", !A)
|
|
5697
5701
|
},
|
|
5698
|
-
...
|
|
5702
|
+
...md((o = w == null ? void 0 : w.helpOptions) == null ? [] : o, E, V)
|
|
5699
5703
|
] : [], fe = [
|
|
5700
5704
|
...ce.length ? [{
|
|
5701
5705
|
section: [...ce, ...de],
|
|
@@ -5721,13 +5725,13 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5721
5725
|
small: !0,
|
|
5722
5726
|
dark: !0
|
|
5723
5727
|
}),
|
|
5724
|
-
fe.map((e, t) => /* @__PURE__ */ S(
|
|
5728
|
+
fe.map((e, t) => /* @__PURE__ */ S(rd, {
|
|
5725
5729
|
sections: e.section,
|
|
5726
5730
|
iconName: e.iconName,
|
|
5727
5731
|
tooltip: e.tooltip,
|
|
5728
5732
|
testId: `data-${e == null ? void 0 : e.name}-menu`
|
|
5729
5733
|
}, t)),
|
|
5730
|
-
k && /* @__PURE__ */ S(
|
|
5734
|
+
k && /* @__PURE__ */ S(td, {
|
|
5731
5735
|
config: e,
|
|
5732
5736
|
state: E,
|
|
5733
5737
|
updateState: te,
|
|
@@ -5763,14 +5767,14 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5763
5767
|
cancelText: I("cancel"),
|
|
5764
5768
|
testId: n
|
|
5765
5769
|
}),
|
|
5766
|
-
/* @__PURE__ */ S(
|
|
5770
|
+
/* @__PURE__ */ S(nd, {
|
|
5767
5771
|
modals: x,
|
|
5768
5772
|
modalVisibility: E == null ? void 0 : E.modalVisibility,
|
|
5769
5773
|
onCloseModal: ne,
|
|
5770
5774
|
testId: n
|
|
5771
5775
|
})
|
|
5772
5776
|
] });
|
|
5773
|
-
},
|
|
5777
|
+
}, _d = ({ file: e, accept: t, multi: n, name: r, disabled: i, onChange: a = yn, ...o }) => {
|
|
5774
5778
|
let s = u(W), c = _(null), l = () => {
|
|
5775
5779
|
var e;
|
|
5776
5780
|
i || s || (e = c.current) == null || e.click();
|
|
@@ -5798,12 +5802,12 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5798
5802
|
multiple: n,
|
|
5799
5803
|
onChange: d
|
|
5800
5804
|
})] });
|
|
5801
|
-
},
|
|
5805
|
+
}, vd = {
|
|
5802
5806
|
label: "_label_uxk69_1",
|
|
5803
5807
|
labelLeft: "_labelLeft_uxk69_5",
|
|
5804
5808
|
icons: "_icons_uxk69_13",
|
|
5805
5809
|
small: "_small_uxk69_27"
|
|
5806
|
-
},
|
|
5810
|
+
}, yd = ({ label: e = null, width: t = "auto", helpText: n = "", helpTextMaxWidth: r = "300px", onClickHelp: i = void 0, lock: a = {
|
|
5807
5811
|
visible: !1,
|
|
5808
5812
|
active: !1,
|
|
5809
5813
|
onClick: () => {},
|
|
@@ -5812,14 +5816,14 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5812
5816
|
}, info: o, libraryIcon: s, labelLeft: c = !1, small: l = !1, textTransform: u = Pi.CAPITALIZE }) => {
|
|
5813
5817
|
var d;
|
|
5814
5818
|
return /* @__PURE__ */ S("div", {
|
|
5815
|
-
className: b(
|
|
5819
|
+
className: b(vd.label, c ? vd.labelLeft : "", l ? vd.small : ""),
|
|
5816
5820
|
children: /* @__PURE__ */ C("label", {
|
|
5817
5821
|
style: {
|
|
5818
5822
|
textTransform: u,
|
|
5819
5823
|
width: t || ""
|
|
5820
5824
|
},
|
|
5821
5825
|
children: [e, /* @__PURE__ */ C("div", {
|
|
5822
|
-
className:
|
|
5826
|
+
className: vd.icons,
|
|
5823
5827
|
children: [
|
|
5824
5828
|
(n || i) && /* @__PURE__ */ S(ya, {
|
|
5825
5829
|
text: n,
|
|
@@ -5845,23 +5849,23 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5845
5849
|
})]
|
|
5846
5850
|
})
|
|
5847
5851
|
});
|
|
5848
|
-
},
|
|
5852
|
+
}, bd = {
|
|
5849
5853
|
field: "_field_1xoss_1",
|
|
5850
5854
|
labelLeft: "_labelLeft_1xoss_5",
|
|
5851
5855
|
fieldInput: "_fieldInput_1xoss_9",
|
|
5852
5856
|
formRow: "_formRow_1xoss_12",
|
|
5853
5857
|
"form-row": "_form-row_1xoss_13",
|
|
5854
5858
|
button: "_button_1xoss_22"
|
|
5855
|
-
},
|
|
5859
|
+
}, xd = ({ label: e, labelLeft: t = !1, labelWidth: n = "auto", children: r, helpText: i, helpTextMaxWidth: a = "300px", onClickHelp: o, lock: s = {
|
|
5856
5860
|
visible: !1,
|
|
5857
5861
|
active: !1,
|
|
5858
5862
|
onClick: () => {},
|
|
5859
5863
|
tooltip: "",
|
|
5860
5864
|
testId: void 0
|
|
5861
5865
|
}, info: c, libraryIcon: l, small: u = !1, testId: d, textTransform: f = Pi.CAPITALIZE }) => /* @__PURE__ */ C("div", {
|
|
5862
|
-
className: b(
|
|
5866
|
+
className: b(bd.field, t ? bd.labelLeft : ""),
|
|
5863
5867
|
"data-testid": d,
|
|
5864
|
-
children: [(e || t) && /* @__PURE__ */ S(
|
|
5868
|
+
children: [(e || t) && /* @__PURE__ */ S(yd, {
|
|
5865
5869
|
label: e,
|
|
5866
5870
|
width: n,
|
|
5867
5871
|
helpText: i,
|
|
@@ -5874,10 +5878,10 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5874
5878
|
small: u,
|
|
5875
5879
|
textTransform: f
|
|
5876
5880
|
}), /* @__PURE__ */ S("div", {
|
|
5877
|
-
className:
|
|
5881
|
+
className: bd.fieldInput,
|
|
5878
5882
|
children: r
|
|
5879
5883
|
})]
|
|
5880
|
-
}),
|
|
5884
|
+
}), 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", {
|
|
5881
5885
|
style: {
|
|
5882
5886
|
display: "flex",
|
|
5883
5887
|
flexDirection: n,
|
|
@@ -5889,8 +5893,8 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5889
5893
|
gap: s === !1 ? 0 : s === !0 ? "var(--padding)" : typeof s == "number" ? `${s}px` : s
|
|
5890
5894
|
},
|
|
5891
5895
|
children: a
|
|
5892
|
-
}),
|
|
5893
|
-
className:
|
|
5896
|
+
}), Cd = { formRow: "_formRow_odewu_1" }, wd = ({ children: e }) => /* @__PURE__ */ S("div", {
|
|
5897
|
+
className: Cd.formRow,
|
|
5894
5898
|
children: e
|
|
5895
5899
|
}), Z = {
|
|
5896
5900
|
inputInTable: "_inputInTable_15rr3_1",
|
|
@@ -5936,15 +5940,15 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5936
5940
|
hideScrollbar: "_hideScrollbar_15rr3_71",
|
|
5937
5941
|
noPointerEvents: "_noPointerEvents_15rr3_313",
|
|
5938
5942
|
virtualRows: "_virtualRows_15rr3_316"
|
|
5939
|
-
},
|
|
5943
|
+
}, Td = ({ toggleNarrow: e, onClickToggleNarrow: t }) => e ? /* @__PURE__ */ S("a", {
|
|
5940
5944
|
className: Z.toggleNarrow,
|
|
5941
5945
|
onClick: t,
|
|
5942
5946
|
children: /* @__PURE__ */ S(G, { icon: U.CHEVRON_LEFT })
|
|
5943
|
-
}) : null,
|
|
5947
|
+
}) : null, Ed = o(({ name: e, actions: t = [], toggleNarrow: n = !1, onToggleNarrow: r = () => {}, stickyHeader: i }, a) => /* @__PURE__ */ C("div", {
|
|
5944
5948
|
ref: a,
|
|
5945
5949
|
className: b(Z.header, i ? Z.stickyHeader : ""),
|
|
5946
5950
|
children: [
|
|
5947
|
-
/* @__PURE__ */ S(
|
|
5951
|
+
/* @__PURE__ */ S(Td, {
|
|
5948
5952
|
toggleNarrow: n,
|
|
5949
5953
|
onClickToggleNarrow: r
|
|
5950
5954
|
}),
|
|
@@ -5964,14 +5968,14 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5964
5968
|
})
|
|
5965
5969
|
})
|
|
5966
5970
|
]
|
|
5967
|
-
})),
|
|
5971
|
+
})), Dd = ({ label: e }) => e ? /* @__PURE__ */ S("span", {
|
|
5968
5972
|
className: Z.label,
|
|
5969
5973
|
children: /* @__PURE__ */ S(uo, {
|
|
5970
5974
|
color: e.color,
|
|
5971
5975
|
title: e.value,
|
|
5972
5976
|
small: e.small
|
|
5973
5977
|
})
|
|
5974
|
-
}) : null,
|
|
5978
|
+
}) : null, Od = ({ name: e, icon: t, testId: n }) => {
|
|
5975
5979
|
let r = t && /* @__PURE__ */ S(G, {
|
|
5976
5980
|
icon: t.icon,
|
|
5977
5981
|
color: t.color || "#db2828"
|
|
@@ -5991,8 +5995,8 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5991
5995
|
children: r
|
|
5992
5996
|
})]
|
|
5993
5997
|
});
|
|
5994
|
-
},
|
|
5995
|
-
let { name: t, icon: n, details: r, metadata: i, invalid: a, testId: o } = e, s = /* @__PURE__ */ S(
|
|
5998
|
+
}, kd = ({ item: e }) => {
|
|
5999
|
+
let { name: t, icon: n, details: r, metadata: i, invalid: a, testId: o } = e, s = /* @__PURE__ */ S(Od, {
|
|
5996
6000
|
name: t,
|
|
5997
6001
|
icon: n,
|
|
5998
6002
|
testId: o && `${o}-name`
|
|
@@ -6018,10 +6022,10 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6018
6022
|
})
|
|
6019
6023
|
]
|
|
6020
6024
|
});
|
|
6021
|
-
},
|
|
6025
|
+
}, Ad = ({ item: e }) => e.metaCount === void 0 ? null : /* @__PURE__ */ S(uo, {
|
|
6022
6026
|
color: "rgba(0,0,0,0.25)",
|
|
6023
6027
|
title: e.metaCount
|
|
6024
|
-
}),
|
|
6028
|
+
}), jd = ({ item: e, expanding: t }) => {
|
|
6025
6029
|
let n = (e) => {
|
|
6026
6030
|
e.preventDefault(), e.stopPropagation();
|
|
6027
6031
|
}, r = !!t && !!e.active && !!e.content;
|
|
@@ -6033,7 +6037,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6033
6037
|
children: e.content
|
|
6034
6038
|
})
|
|
6035
6039
|
});
|
|
6036
|
-
},
|
|
6040
|
+
}, Md = o(({ item: e, index: t }, n) => {
|
|
6037
6041
|
var r;
|
|
6038
6042
|
let i = u(W), { actions: a, disabled: o, expanded: s, onClick: c, title: l, name: d, icon: f, testId: p } = e;
|
|
6039
6043
|
return /* @__PURE__ */ S("div", {
|
|
@@ -6053,13 +6057,13 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6053
6057
|
className: b(Z.expandIcon, s && Z.expanded),
|
|
6054
6058
|
children: /* @__PURE__ */ S(G, { icon: U.CHEVRON_RIGHT })
|
|
6055
6059
|
}),
|
|
6056
|
-
/* @__PURE__ */ S(
|
|
6060
|
+
/* @__PURE__ */ S(Od, {
|
|
6057
6061
|
name: d,
|
|
6058
6062
|
icon: f
|
|
6059
6063
|
}),
|
|
6060
6064
|
/* @__PURE__ */ C("div", {
|
|
6061
6065
|
className: Z.right,
|
|
6062
|
-
children: [/* @__PURE__ */ S(
|
|
6066
|
+
children: [/* @__PURE__ */ S(Ad, { item: e }), !(o || i) && a && /* @__PURE__ */ S("div", {
|
|
6063
6067
|
className: Z.actions,
|
|
6064
6068
|
children: /* @__PURE__ */ S(bo, { actions: (r = e.actions) == null ? [] : r })
|
|
6065
6069
|
})]
|
|
@@ -6067,7 +6071,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6067
6071
|
]
|
|
6068
6072
|
}) })
|
|
6069
6073
|
});
|
|
6070
|
-
}),
|
|
6074
|
+
}), Nd = o(({ item: e, index: t, expanding: n, invokeEditOnRowClick: r, draggable: i }, a) => {
|
|
6071
6075
|
let o = u(W), s = (e, t, s, c, l, u) => {
|
|
6072
6076
|
let d = t.actions && t.actions.find((e) => {
|
|
6073
6077
|
var t;
|
|
@@ -6103,24 +6107,24 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6103
6107
|
className: Z.indentIcon,
|
|
6104
6108
|
children: /* @__PURE__ */ S(G, { icon: U.INDENT })
|
|
6105
6109
|
}) : null,
|
|
6106
|
-
/* @__PURE__ */ S(
|
|
6107
|
-
/* @__PURE__ */ S(
|
|
6110
|
+
/* @__PURE__ */ S(Dd, { label: t.label }),
|
|
6111
|
+
/* @__PURE__ */ S(kd, { item: t }),
|
|
6108
6112
|
/* @__PURE__ */ C("div", {
|
|
6109
6113
|
className: Z.right,
|
|
6110
|
-
children: [/* @__PURE__ */ S(
|
|
6114
|
+
children: [/* @__PURE__ */ S(Ad, { item: t }), !(t.disabled || o) && t.actions && /* @__PURE__ */ S("div", {
|
|
6111
6115
|
className: Z.actions,
|
|
6112
6116
|
children: /* @__PURE__ */ S(bo, { actions: t.actions })
|
|
6113
6117
|
})]
|
|
6114
6118
|
})
|
|
6115
6119
|
]
|
|
6116
|
-
}), /* @__PURE__ */ S(
|
|
6120
|
+
}), /* @__PURE__ */ S(jd, {
|
|
6117
6121
|
item: t,
|
|
6118
6122
|
expanding: n
|
|
6119
6123
|
})]
|
|
6120
6124
|
})
|
|
6121
6125
|
}, e);
|
|
6122
6126
|
};
|
|
6123
|
-
return e.type === "Heading" ? /* @__PURE__ */ S(
|
|
6127
|
+
return e.type === "Heading" ? /* @__PURE__ */ S(Md, {
|
|
6124
6128
|
ref: a,
|
|
6125
6129
|
item: e,
|
|
6126
6130
|
index: t
|
|
@@ -6135,7 +6139,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6135
6139
|
};
|
|
6136
6140
|
return s(e, t, l, n, r, i);
|
|
6137
6141
|
})(t, e) : s(t, e);
|
|
6138
|
-
}),
|
|
6142
|
+
}), Pd = ({ children: e, draggable: t, list: n, onListReorder: r }) => {
|
|
6139
6143
|
let [i, a] = v(null), o = (e) => {
|
|
6140
6144
|
a(e.active.id);
|
|
6141
6145
|
}, s = (e) => {
|
|
@@ -6158,7 +6162,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6158
6162
|
dropAnimation: null,
|
|
6159
6163
|
children: /* @__PURE__ */ S("div", {
|
|
6160
6164
|
className: Z.dragOverlay,
|
|
6161
|
-
children: /* @__PURE__ */ S(
|
|
6165
|
+
children: /* @__PURE__ */ S(Nd, {
|
|
6162
6166
|
draggable: t,
|
|
6163
6167
|
item: n.items[Number(i)],
|
|
6164
6168
|
index: Number(i)
|
|
@@ -6166,7 +6170,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6166
6170
|
})
|
|
6167
6171
|
}), document.body)]
|
|
6168
6172
|
}) : e;
|
|
6169
|
-
},
|
|
6173
|
+
}, Fd = ({ items: e, scrollDetails: t, children: n }) => {
|
|
6170
6174
|
let { scrollable: r, hideScrollbar: i, triggerScrollToActiveItem: a, infiniteScroll: o } = t, s = _(null), c = ei({
|
|
6171
6175
|
count: e.length,
|
|
6172
6176
|
getScrollElement: () => s.current,
|
|
@@ -6199,9 +6203,9 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6199
6203
|
children: n({ virtualizer: c })
|
|
6200
6204
|
})
|
|
6201
6205
|
});
|
|
6202
|
-
},
|
|
6206
|
+
}, Id = ({ items: e, scrollDetails: t, children: n }) => {
|
|
6203
6207
|
let { scrollable: r, hideScrollbar: i, infiniteScroll: a } = t;
|
|
6204
|
-
return a ? /* @__PURE__ */ S(
|
|
6208
|
+
return a ? /* @__PURE__ */ S(Fd, {
|
|
6205
6209
|
items: e,
|
|
6206
6210
|
scrollDetails: t,
|
|
6207
6211
|
children: ({ virtualizer: e }) => n({ virtualizer: e })
|
|
@@ -6212,7 +6216,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6212
6216
|
children: n({})
|
|
6213
6217
|
})
|
|
6214
6218
|
});
|
|
6215
|
-
},
|
|
6219
|
+
}, 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 = {
|
|
6216
6220
|
scrollable: !1,
|
|
6217
6221
|
hideScrollbar: !1,
|
|
6218
6222
|
triggerScrollToActiveItem: !1,
|
|
@@ -6225,17 +6229,17 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6225
6229
|
marginBottom: d
|
|
6226
6230
|
},
|
|
6227
6231
|
id: "scrollableDiv",
|
|
6228
|
-
children: [!s && /* @__PURE__ */ S(
|
|
6232
|
+
children: [!s && /* @__PURE__ */ S(Ed, {
|
|
6229
6233
|
name: e.name,
|
|
6230
6234
|
actions: e.actions,
|
|
6231
6235
|
toggleNarrow: i,
|
|
6232
6236
|
onToggleNarrow: a,
|
|
6233
6237
|
stickyHeader: c
|
|
6234
|
-
}), /* @__PURE__ */ S(
|
|
6238
|
+
}), /* @__PURE__ */ S(Pd, {
|
|
6235
6239
|
draggable: l,
|
|
6236
6240
|
list: e,
|
|
6237
6241
|
onListReorder: u,
|
|
6238
|
-
children: /* @__PURE__ */ S(
|
|
6242
|
+
children: /* @__PURE__ */ S(Id, {
|
|
6239
6243
|
items: e.items,
|
|
6240
6244
|
scrollDetails: m,
|
|
6241
6245
|
children: ({ virtualizer: t }) => t ? t.getVirtualItems().map((r) => /* @__PURE__ */ S("div", {
|
|
@@ -6243,14 +6247,14 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6243
6247
|
className: Z.virtualRow,
|
|
6244
6248
|
style: { transform: `translateY(${r.start}px)` },
|
|
6245
6249
|
ref: t.measureElement,
|
|
6246
|
-
children: /* @__PURE__ */ S(
|
|
6250
|
+
children: /* @__PURE__ */ S(Nd, {
|
|
6247
6251
|
index: r.index,
|
|
6248
6252
|
draggable: l,
|
|
6249
6253
|
item: e.items[r.index],
|
|
6250
6254
|
expanding: n,
|
|
6251
6255
|
invokeEditOnRowClick: o
|
|
6252
6256
|
})
|
|
6253
|
-
}, r.key)) : e.items.map((e, t) => /* @__PURE__ */ S("div", { children: /* @__PURE__ */ S(
|
|
6257
|
+
}, r.key)) : e.items.map((e, t) => /* @__PURE__ */ S("div", { children: /* @__PURE__ */ S(Nd, {
|
|
6254
6258
|
index: t,
|
|
6255
6259
|
draggable: l,
|
|
6256
6260
|
item: e,
|
|
@@ -6259,7 +6263,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6259
6263
|
}) }, t))
|
|
6260
6264
|
})
|
|
6261
6265
|
})]
|
|
6262
|
-
}),
|
|
6266
|
+
}), Rd = {
|
|
6263
6267
|
loader: "_loader_477i5_1",
|
|
6264
6268
|
fullViewPortSize: "_fullViewPortSize_477i5_7",
|
|
6265
6269
|
cover: "_cover_477i5_14",
|
|
@@ -6267,33 +6271,33 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6267
6271
|
content: "_content_477i5_44",
|
|
6268
6272
|
text: "_text_477i5_49",
|
|
6269
6273
|
details: "_details_477i5_53"
|
|
6270
|
-
},
|
|
6274
|
+
}, zd = ({ width: e, height: t, text: n = "", details: r = "", fullViewPortSize: i = !1, cover: a = !1, children: o = null, theme: s = Fi.DARK, testId: c = null }) => {
|
|
6271
6275
|
let l = s === Fi.DARK ? Fi.WHITE : Fi.INHERIT, u = s === "white" ? "var(--color-background-raised)" : s === "light" ? "var(--color-background)" : "black";
|
|
6272
6276
|
return /* @__PURE__ */ S("div", {
|
|
6273
|
-
className: b(
|
|
6277
|
+
className: b(Rd.loader, a ? Rd.cover : "", { [Rd.fullViewPortSize]: i }),
|
|
6274
6278
|
style: {
|
|
6275
6279
|
width: e,
|
|
6276
6280
|
height: t
|
|
6277
6281
|
},
|
|
6278
6282
|
"data-testid": c,
|
|
6279
6283
|
children: /* @__PURE__ */ S("div", {
|
|
6280
|
-
className:
|
|
6284
|
+
className: Rd.dimmer,
|
|
6281
6285
|
style: {
|
|
6282
6286
|
background: u,
|
|
6283
6287
|
color: l
|
|
6284
6288
|
},
|
|
6285
6289
|
children: /* @__PURE__ */ C("div", {
|
|
6286
|
-
className:
|
|
6290
|
+
className: Rd.content,
|
|
6287
6291
|
"data-testid": c && `${c}-content`,
|
|
6288
6292
|
children: [
|
|
6289
6293
|
o,
|
|
6290
6294
|
n && /* @__PURE__ */ S("div", {
|
|
6291
|
-
className:
|
|
6295
|
+
className: Rd.text,
|
|
6292
6296
|
"data-testid": c && `${c}-text`,
|
|
6293
6297
|
children: n
|
|
6294
6298
|
}),
|
|
6295
6299
|
r && /* @__PURE__ */ S("div", {
|
|
6296
|
-
className:
|
|
6300
|
+
className: Rd.details,
|
|
6297
6301
|
"data-testid": c && `${c}-details`,
|
|
6298
6302
|
children: r
|
|
6299
6303
|
})
|
|
@@ -6301,15 +6305,15 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6301
6305
|
})
|
|
6302
6306
|
})
|
|
6303
6307
|
});
|
|
6304
|
-
},
|
|
6308
|
+
}, Bd = {
|
|
6305
6309
|
menu: "_menu_12x4u_1",
|
|
6306
6310
|
header: "_header_12x4u_11",
|
|
6307
6311
|
item: "_item_12x4u_27",
|
|
6308
6312
|
heading: "_heading_12x4u_32"
|
|
6309
|
-
},
|
|
6313
|
+
}, Vd = ({ option: e, onChange: t }) => {
|
|
6310
6314
|
let { key: n, selected: r, label: i, disabled: a, testId: o, helpText: s, onClickHelp: c, textTransform: l } = e;
|
|
6311
6315
|
return /* @__PURE__ */ S("div", {
|
|
6312
|
-
className:
|
|
6316
|
+
className: Bd.item,
|
|
6313
6317
|
children: /* @__PURE__ */ S(ba, {
|
|
6314
6318
|
label: i,
|
|
6315
6319
|
noMargin: !0,
|
|
@@ -6322,21 +6326,21 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6322
6326
|
textTransform: l
|
|
6323
6327
|
})
|
|
6324
6328
|
}, n);
|
|
6325
|
-
},
|
|
6326
|
-
className:
|
|
6329
|
+
}, Hd = ({ label: e }) => /* @__PURE__ */ S("div", {
|
|
6330
|
+
className: Bd.heading,
|
|
6327
6331
|
children: e
|
|
6328
|
-
}),
|
|
6332
|
+
}), Ud = /* @__PURE__ */ function(e) {
|
|
6329
6333
|
return e.HEADING = "Heading", e.DIVIDER = "Divider", e.DEFAULT = "Default", e;
|
|
6330
|
-
}({}),
|
|
6331
|
-
className: b("menu",
|
|
6334
|
+
}({}), 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", {
|
|
6335
|
+
className: b("menu", Bd.menu),
|
|
6332
6336
|
style: { maxHeight: r },
|
|
6333
6337
|
"data-testid": i ? `${i}-option-dropdown-layer` : void 0,
|
|
6334
6338
|
children: [n && /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ C("div", {
|
|
6335
|
-
className:
|
|
6339
|
+
className: Bd.header,
|
|
6336
6340
|
children: [
|
|
6337
6341
|
/* @__PURE__ */ S("a", {
|
|
6338
6342
|
onClick: (n) => {
|
|
6339
|
-
t(n, e.map((e) =>
|
|
6343
|
+
t(n, e.map((e) => Wd(e) ? {
|
|
6340
6344
|
...e,
|
|
6341
6345
|
selected: !0
|
|
6342
6346
|
} : e));
|
|
@@ -6345,7 +6349,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6345
6349
|
}),
|
|
6346
6350
|
/* @__PURE__ */ S("a", {
|
|
6347
6351
|
onClick: (n) => {
|
|
6348
|
-
t(n, e.map((e) =>
|
|
6352
|
+
t(n, e.map((e) => Wd(e) ? {
|
|
6349
6353
|
...e,
|
|
6350
6354
|
selected: !1
|
|
6351
6355
|
} : e));
|
|
@@ -6354,7 +6358,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6354
6358
|
}),
|
|
6355
6359
|
/* @__PURE__ */ S("a", {
|
|
6356
6360
|
onClick: (n) => {
|
|
6357
|
-
t(n, e.map((e) =>
|
|
6361
|
+
t(n, e.map((e) => Wd(e) ? {
|
|
6358
6362
|
...e,
|
|
6359
6363
|
selected: !e.selected
|
|
6360
6364
|
} : e));
|
|
@@ -6364,19 +6368,19 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6364
6368
|
]
|
|
6365
6369
|
}), /* @__PURE__ */ S(as, { margin: 0 })] }), e.map((n, r) => {
|
|
6366
6370
|
switch (n.type) {
|
|
6367
|
-
case
|
|
6371
|
+
case Ud.HEADING:
|
|
6368
6372
|
var i;
|
|
6369
|
-
return /* @__PURE__ */ S(
|
|
6370
|
-
case
|
|
6373
|
+
return /* @__PURE__ */ S(Hd, { label: n.label }, (i = n.key) == null ? r : i);
|
|
6374
|
+
case Ud.DIVIDER:
|
|
6371
6375
|
var a;
|
|
6372
6376
|
return /* @__PURE__ */ S(as, { margin: 0 }, (a = n.key) == null ? r : a);
|
|
6373
6377
|
default:
|
|
6374
6378
|
var o;
|
|
6375
|
-
return /* @__PURE__ */ S(
|
|
6379
|
+
return /* @__PURE__ */ S(Vd, {
|
|
6376
6380
|
option: n,
|
|
6377
6381
|
onChange: (r) => {
|
|
6378
6382
|
let { value: i } = n;
|
|
6379
|
-
t(r, e.map((e) => e.type ===
|
|
6383
|
+
t(r, e.map((e) => e.type === Ud.HEADING || e.type === Ud.DIVIDER || e.value !== i ? e : {
|
|
6380
6384
|
...e,
|
|
6381
6385
|
selected: !e.selected
|
|
6382
6386
|
}));
|
|
@@ -6384,7 +6388,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6384
6388
|
}, (o = n.key) == null ? r : o);
|
|
6385
6389
|
}
|
|
6386
6390
|
})]
|
|
6387
|
-
}),
|
|
6391
|
+
}), Kd = ({ name: e, disabled: t, label: n, options: r, onChange: i, small: a = !1, showHeader: o = !0, maxHeight: s = "40vh", testId: c }) => /* @__PURE__ */ S(vo, {
|
|
6388
6392
|
testId: c,
|
|
6389
6393
|
disabled: t,
|
|
6390
6394
|
menu: {
|
|
@@ -6392,7 +6396,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6392
6396
|
small: a,
|
|
6393
6397
|
label: n,
|
|
6394
6398
|
trigger: Ai.DROP_DOWN_BUTTON,
|
|
6395
|
-
sections: /* @__PURE__ */ S(
|
|
6399
|
+
sections: /* @__PURE__ */ S(Gd, {
|
|
6396
6400
|
testId: c,
|
|
6397
6401
|
options: r,
|
|
6398
6402
|
onChangeOptions: (t, n) => {
|
|
@@ -6402,13 +6406,13 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6402
6406
|
maxHeight: s
|
|
6403
6407
|
})
|
|
6404
6408
|
}
|
|
6405
|
-
}),
|
|
6409
|
+
}), qd = {
|
|
6406
6410
|
page: "_page_beskc_1",
|
|
6407
6411
|
scroll: "_scroll_beskc_23"
|
|
6408
|
-
},
|
|
6412
|
+
}, Jd = ({ children: e, left: t = "var(--size-sidebar)", padding: n = !0, scroll: r = !0, top: i = "var(--size-topbar)" }) => {
|
|
6409
6413
|
let a = typeof n == "string" ? n : n === !0 ? "var(--padding)" : "0";
|
|
6410
6414
|
return /* @__PURE__ */ S("div", {
|
|
6411
|
-
className: b(
|
|
6415
|
+
className: b(qd.page, r ? qd.scroll : ""),
|
|
6412
6416
|
style: {
|
|
6413
6417
|
left: t,
|
|
6414
6418
|
padding: a,
|
|
@@ -6416,19 +6420,19 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6416
6420
|
},
|
|
6417
6421
|
children: e
|
|
6418
6422
|
});
|
|
6419
|
-
},
|
|
6423
|
+
}, Yd = ({ id: e, children: t }) => {
|
|
6420
6424
|
let n = document.querySelector(`#${e}`), [r, i] = v(!1);
|
|
6421
6425
|
return m(() => {
|
|
6422
6426
|
r || i(!0);
|
|
6423
6427
|
}, [e]), n ? Xr(t, n) : null;
|
|
6424
|
-
},
|
|
6428
|
+
}, Xd = { printHeader: "_printHeader_o7xxx_1" }, Zd = ({ logo: e, alt: t, logoWidth: n = "100px" }) => /* @__PURE__ */ S("img", {
|
|
6425
6429
|
src: e,
|
|
6426
6430
|
alt: t,
|
|
6427
|
-
className:
|
|
6431
|
+
className: Xd.printHeader,
|
|
6428
6432
|
style: { width: n }
|
|
6429
|
-
}),
|
|
6433
|
+
}), 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 }) => {
|
|
6430
6434
|
var d;
|
|
6431
|
-
let f = u(W), { simpleInputs: p, options: m, selectedOptions: h } =
|
|
6435
|
+
let f = u(W), { simpleInputs: p, options: m, selectedOptions: h } = rl(n, r), g = h == null ? void 0 : p ? h : h.value, _ = a || f;
|
|
6432
6436
|
return /* @__PURE__ */ C(Jr, {
|
|
6433
6437
|
name: e,
|
|
6434
6438
|
"aria-label": t ? void 0 : String(e == null ? "Radio group" : e),
|
|
@@ -6446,15 +6450,15 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6446
6450
|
} });
|
|
6447
6451
|
},
|
|
6448
6452
|
isDisabled: _,
|
|
6449
|
-
className:
|
|
6453
|
+
className: Hl.wrapper,
|
|
6450
6454
|
"data-testid": l,
|
|
6451
6455
|
children: [t && /* @__PURE__ */ S(Gr, {
|
|
6452
|
-
className:
|
|
6456
|
+
className: Hl.groupLabel,
|
|
6453
6457
|
children: t
|
|
6454
6458
|
}), m.map((e) => {
|
|
6455
6459
|
var t, n;
|
|
6456
6460
|
let r = a || e.disabled || f;
|
|
6457
|
-
return /* @__PURE__ */ S(
|
|
6461
|
+
return /* @__PURE__ */ S(Ul, {
|
|
6458
6462
|
value: e.value,
|
|
6459
6463
|
label: e.label,
|
|
6460
6464
|
disabled: r,
|
|
@@ -6467,40 +6471,40 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6467
6471
|
}, (t = (n = e.value) == null ? void 0 : n.toString()) == null ? "" : t);
|
|
6468
6472
|
})]
|
|
6469
6473
|
});
|
|
6470
|
-
},
|
|
6474
|
+
}, $d = {
|
|
6471
6475
|
richTextToolbar: "_richTextToolbar_1gbkk_1",
|
|
6472
6476
|
richTextToolbarContainer: "_richTextToolbarContainer_1gbkk_5"
|
|
6473
|
-
},
|
|
6477
|
+
}, ef = /* @__PURE__ */ function(e) {
|
|
6474
6478
|
return e.BOLD = "bold", e.ITALIC = "italic", e.CODE = "code", e.UL = "ul", e.OL = "ol", e.MENTION = "at", e;
|
|
6475
|
-
}({}),
|
|
6479
|
+
}({}), tf = ({ editor: e, disabled: t = !1, showMentionButton: n = !1, toolbarComponent: r = null, testId: i }) => {
|
|
6476
6480
|
var a, o, s, c, l;
|
|
6477
6481
|
let u = [
|
|
6478
6482
|
{
|
|
6479
|
-
icon:
|
|
6483
|
+
icon: ef.BOLD,
|
|
6480
6484
|
onClick: () => e == null ? void 0 : e.chain().focus().toggleBold().run(),
|
|
6481
6485
|
active: (a = e == null ? void 0 : e.isActive("bold")) != null && a,
|
|
6482
6486
|
testId: "bold"
|
|
6483
6487
|
},
|
|
6484
6488
|
{
|
|
6485
|
-
icon:
|
|
6489
|
+
icon: ef.ITALIC,
|
|
6486
6490
|
onClick: () => e == null ? void 0 : e.chain().focus().toggleItalic().run(),
|
|
6487
6491
|
active: (o = e == null ? void 0 : e.isActive("italic")) != null && o,
|
|
6488
6492
|
testId: "italic"
|
|
6489
6493
|
},
|
|
6490
6494
|
{
|
|
6491
|
-
icon:
|
|
6495
|
+
icon: ef.CODE,
|
|
6492
6496
|
onClick: () => e == null ? void 0 : e.chain().focus().toggleCode().run(),
|
|
6493
6497
|
active: (s = e == null ? void 0 : e.isActive("code")) != null && s,
|
|
6494
6498
|
testId: "code"
|
|
6495
6499
|
},
|
|
6496
6500
|
{
|
|
6497
|
-
icon:
|
|
6501
|
+
icon: ef.UL,
|
|
6498
6502
|
onClick: () => e == null ? void 0 : e.chain().focus().toggleBulletList().run(),
|
|
6499
6503
|
active: (c = e == null ? void 0 : e.isActive("bulletList")) != null && c,
|
|
6500
6504
|
testId: "bulletList"
|
|
6501
6505
|
},
|
|
6502
6506
|
{
|
|
6503
|
-
icon:
|
|
6507
|
+
icon: ef.OL,
|
|
6504
6508
|
onClick: () => e == null ? void 0 : e.chain().focus().toggleOrderedList().run(),
|
|
6505
6509
|
active: (l = e == null ? void 0 : e.isActive("orderedList")) != null && l,
|
|
6506
6510
|
testId: "orderedList"
|
|
@@ -6509,17 +6513,17 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6509
6513
|
if (n) {
|
|
6510
6514
|
var d;
|
|
6511
6515
|
u.push({
|
|
6512
|
-
icon:
|
|
6516
|
+
icon: ef.MENTION,
|
|
6513
6517
|
onClick: () => e == null ? void 0 : e.chain().focus().insertContent("@").run(),
|
|
6514
6518
|
active: (d = e == null ? void 0 : e.isActive("mention")) != null && d,
|
|
6515
6519
|
testId: "mention"
|
|
6516
6520
|
});
|
|
6517
6521
|
}
|
|
6518
6522
|
return /* @__PURE__ */ C("div", {
|
|
6519
|
-
className:
|
|
6523
|
+
className: $d.richTextToolbarContainer,
|
|
6520
6524
|
"data-testid": i,
|
|
6521
6525
|
children: [/* @__PURE__ */ S("div", {
|
|
6522
|
-
className:
|
|
6526
|
+
className: $d.richTextToolbar,
|
|
6523
6527
|
children: u.map((e, n) => /* @__PURE__ */ S(K, {
|
|
6524
6528
|
small: !0,
|
|
6525
6529
|
round: !0,
|
|
@@ -6533,36 +6537,36 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6533
6537
|
}, n))
|
|
6534
6538
|
}), r]
|
|
6535
6539
|
});
|
|
6536
|
-
},
|
|
6537
|
-
let t =
|
|
6540
|
+
}, nf = 8, rf = /^\[@((?:\\.|[^\\\]])*)\]\(mention:((?:\\.|[^\\)])+)\)/, af = (e) => e.replace(/[\\\][()]/g, "\\$&"), of = (e) => e.replace(/\\(.)/g, "$1"), sf = (e) => typeof e == "string" ? e : "", cf = (e) => {
|
|
6541
|
+
let t = rf.exec(e);
|
|
6538
6542
|
if (!t) return;
|
|
6539
6543
|
let [n, r, i] = t;
|
|
6540
6544
|
return {
|
|
6541
6545
|
raw: n,
|
|
6542
|
-
id:
|
|
6543
|
-
label:
|
|
6546
|
+
id: of(i),
|
|
6547
|
+
label: of(r)
|
|
6544
6548
|
};
|
|
6545
|
-
},
|
|
6549
|
+
}, lf = (e) => {
|
|
6546
6550
|
if (!e) return [];
|
|
6547
6551
|
let t = /* @__PURE__ */ new Set();
|
|
6548
6552
|
return e.state.doc.descendants((e) => {
|
|
6549
6553
|
e.type.name === _i.name && typeof e.attrs.id == "string" && t.add(e.attrs.id);
|
|
6550
6554
|
}), [...t];
|
|
6551
|
-
},
|
|
6555
|
+
}, uf = (e, t) => `[@${af(e)}](mention:${af(t)})`, df = (e, t) => _i.extend({
|
|
6552
6556
|
renderMarkdown: (e) => {
|
|
6553
6557
|
var t, n;
|
|
6554
|
-
return
|
|
6558
|
+
return uf(sf((t = e.attrs) == null ? void 0 : t.label), sf((n = e.attrs) == null ? void 0 : n.id));
|
|
6555
6559
|
},
|
|
6556
6560
|
parseMarkdown: (e, t) => t.createNode(_i.name, {
|
|
6557
|
-
id:
|
|
6558
|
-
label:
|
|
6561
|
+
id: sf(e.id),
|
|
6562
|
+
label: sf(e.label)
|
|
6559
6563
|
}),
|
|
6560
6564
|
markdownTokenizer: {
|
|
6561
6565
|
name: _i.name,
|
|
6562
6566
|
level: "inline",
|
|
6563
6567
|
start: (e) => e.indexOf("[@"),
|
|
6564
6568
|
tokenize: (e) => {
|
|
6565
|
-
let t =
|
|
6569
|
+
let t = cf(e);
|
|
6566
6570
|
return t && {
|
|
6567
6571
|
type: _i.name,
|
|
6568
6572
|
...t
|
|
@@ -6578,11 +6582,11 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6578
6582
|
var r;
|
|
6579
6583
|
let i = e();
|
|
6580
6584
|
if (!i) return [];
|
|
6581
|
-
let a = new Set(
|
|
6582
|
-
return (await i.getItems(t)).filter(({ id: e }) => !a.has(e)).slice(0, (r = i.maxItems) == null ?
|
|
6585
|
+
let a = new Set(lf(n));
|
|
6586
|
+
return (await i.getItems(t)).filter(({ id: e }) => !a.has(e)).slice(0, (r = i.maxItems) == null ? nf : r);
|
|
6583
6587
|
},
|
|
6584
6588
|
render: t
|
|
6585
|
-
} }),
|
|
6589
|
+
} }), ff = {
|
|
6586
6590
|
inputInTable: "_inputInTable_1xhvx_1",
|
|
6587
6591
|
inputHover: "_inputHover_1xhvx_13",
|
|
6588
6592
|
inputFocus: "_inputFocus_1xhvx_18",
|
|
@@ -6597,7 +6601,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6597
6601
|
mentionLayer: "_mentionLayer_1xhvx_133",
|
|
6598
6602
|
mentionOption: "_mentionOption_1xhvx_144",
|
|
6599
6603
|
focused: "_focused_1xhvx_150"
|
|
6600
|
-
},
|
|
6604
|
+
}, pf = o(({ editable: e, getRect: t, items: n, onDismiss: r, onSelect: i }, a) => {
|
|
6601
6605
|
let [o, s] = v(0), c = n.length > 0, u = f(), m = l((e) => `${u}-option-${e}`, [u]), { renderLayer: g, layerProps: y, triggerProps: x } = fa({
|
|
6602
6606
|
isOpen: c,
|
|
6603
6607
|
placement: "bottom-start",
|
|
@@ -6659,14 +6663,14 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6659
6663
|
i
|
|
6660
6664
|
]), c ? g(/* @__PURE__ */ S("div", {
|
|
6661
6665
|
...y,
|
|
6662
|
-
className:
|
|
6666
|
+
className: ff.mentionLayer,
|
|
6663
6667
|
id: u,
|
|
6664
6668
|
role: "listbox",
|
|
6665
6669
|
children: n.map((e, t) => /* @__PURE__ */ S("div", {
|
|
6666
6670
|
id: m(t),
|
|
6667
6671
|
role: "option",
|
|
6668
6672
|
"aria-selected": t === o,
|
|
6669
|
-
className: b(
|
|
6673
|
+
className: b(ff.mentionOption, { [ff.focused]: t === o }),
|
|
6670
6674
|
onMouseEnter: () => s(t),
|
|
6671
6675
|
onMouseDown: (t) => {
|
|
6672
6676
|
t.preventDefault(), i(e);
|
|
@@ -6674,12 +6678,12 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6674
6678
|
children: e.label
|
|
6675
6679
|
}, e.id))
|
|
6676
6680
|
})) : null;
|
|
6677
|
-
}),
|
|
6681
|
+
}), mf = ({ clientRect: e, command: t, editor: n, items: r }) => ({
|
|
6678
6682
|
clientRect: e,
|
|
6679
6683
|
command: t,
|
|
6680
6684
|
items: r,
|
|
6681
6685
|
editable: n.view.dom
|
|
6682
|
-
}),
|
|
6686
|
+
}), hf = c(o(({ placeholder: e, onChange: t, value: n, disabled: r, toolbarComponent: i, mentions: a, testId: o }, s) => {
|
|
6683
6687
|
var c, l, f, m;
|
|
6684
6688
|
let g = u(W), y = r || g, b = !!a, x = _(a), w = _(null), T = _(n == null ? "" : n), [E, D] = v(null);
|
|
6685
6689
|
d(() => {
|
|
@@ -6689,9 +6693,9 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6689
6693
|
mi,
|
|
6690
6694
|
hi.configure({ placeholder: e }),
|
|
6691
6695
|
gi,
|
|
6692
|
-
|
|
6693
|
-
onStart: (e) => D(
|
|
6694
|
-
onUpdate: (e) => D(
|
|
6696
|
+
df(() => x.current, () => ({
|
|
6697
|
+
onStart: (e) => D(mf(e)),
|
|
6698
|
+
onUpdate: (e) => D(mf(e)),
|
|
6695
6699
|
onExit: () => D(null),
|
|
6696
6700
|
onKeyDown: ({ event: e }) => {
|
|
6697
6701
|
var t, n;
|
|
@@ -6703,9 +6707,9 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6703
6707
|
content: T.current,
|
|
6704
6708
|
contentType: "markdown",
|
|
6705
6709
|
editable: !y,
|
|
6706
|
-
editorProps: { attributes: { class:
|
|
6710
|
+
editorProps: { attributes: { class: ff.editable } },
|
|
6707
6711
|
onUpdate: ({ editor: e }) => {
|
|
6708
|
-
t == null || t(e.getMarkdown(), { mentionedIds:
|
|
6712
|
+
t == null || t(e.getMarkdown(), { mentionedIds: lf(e) });
|
|
6709
6713
|
}
|
|
6710
6714
|
});
|
|
6711
6715
|
return d(() => {
|
|
@@ -6718,12 +6722,12 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6718
6722
|
}, [y, k]), p(s, () => ({
|
|
6719
6723
|
clearContent: () => k == null ? void 0 : k.commands.clearContent(!1),
|
|
6720
6724
|
editor: k,
|
|
6721
|
-
getMentionedIds: () =>
|
|
6725
|
+
getMentionedIds: () => lf(k)
|
|
6722
6726
|
}), [k]), /* @__PURE__ */ C("div", {
|
|
6723
|
-
className:
|
|
6727
|
+
className: ff.richTextInput,
|
|
6724
6728
|
"data-testid": o,
|
|
6725
6729
|
children: [
|
|
6726
|
-
/* @__PURE__ */ S(
|
|
6730
|
+
/* @__PURE__ */ S(tf, {
|
|
6727
6731
|
editor: k,
|
|
6728
6732
|
disabled: y,
|
|
6729
6733
|
showMentionButton: b && ((c = a == null ? void 0 : a.showMentionButton) == null || c),
|
|
@@ -6734,7 +6738,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6734
6738
|
editor: k,
|
|
6735
6739
|
"data-testid": o && `${o}-editor`
|
|
6736
6740
|
}),
|
|
6737
|
-
b && /* @__PURE__ */ S(ra, { children: /* @__PURE__ */ S(
|
|
6741
|
+
b && /* @__PURE__ */ S(ra, { children: /* @__PURE__ */ S(pf, {
|
|
6738
6742
|
ref: w,
|
|
6739
6743
|
editable: (l = E == null ? void 0 : E.editable) == null ? null : l,
|
|
6740
6744
|
getRect: (f = E == null ? void 0 : E.clientRect) == null ? null : f,
|
|
@@ -6744,13 +6748,13 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6744
6748
|
}) })
|
|
6745
6749
|
]
|
|
6746
6750
|
});
|
|
6747
|
-
})),
|
|
6748
|
-
className:
|
|
6751
|
+
})), gf = ({ children: e }) => /* @__PURE__ */ S("span", {
|
|
6752
|
+
className: ff.mention,
|
|
6749
6753
|
children: e
|
|
6750
|
-
}),
|
|
6754
|
+
}), _f = { row: "_row_n16je_1" }, vf = ({ alignItems: t = "initial", justifyContent: n = "initial", children: r = null, flex: i = !1, height: a = "auto", marginBottom: o = "0", marginTop: c = "0", spacing: l = "var(--padding)", wrap: u = !1, testId: d = null }) => {
|
|
6751
6755
|
let f = typeof l == "number" ? `${l}px` : l, p = (r === null || r === !1 ? [] : Array.isArray(r) ? r.filter((e) => s(e)) : [r]).map((t, n) => /* @__PURE__ */ S(e.Fragment, { children: e.cloneElement(t, { spacing: f }) }, n));
|
|
6752
6756
|
return /* @__PURE__ */ S("div", {
|
|
6753
|
-
className: b(
|
|
6757
|
+
className: b(_f.row),
|
|
6754
6758
|
style: {
|
|
6755
6759
|
alignItems: t,
|
|
6756
6760
|
justifyContent: n,
|
|
@@ -6766,7 +6770,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6766
6770
|
"data-testid": d,
|
|
6767
6771
|
children: p
|
|
6768
6772
|
});
|
|
6769
|
-
},
|
|
6773
|
+
}, yf = {
|
|
6770
6774
|
inputInTable: "_inputInTable_t1w93_1",
|
|
6771
6775
|
inputHover: "_inputHover_t1w93_13",
|
|
6772
6776
|
inputFocus: "_inputFocus_t1w93_18",
|
|
@@ -6786,7 +6790,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6786
6790
|
experimental: "_experimental_t1w93_159",
|
|
6787
6791
|
active: "_active_t1w93_163",
|
|
6788
6792
|
icon: "_icon_t1w93_167"
|
|
6789
|
-
},
|
|
6793
|
+
}, bf = c(({ isOpen: e, label: t, icon: n, invalid: r }) => /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(ga, {
|
|
6790
6794
|
text: t,
|
|
6791
6795
|
enabled: !e,
|
|
6792
6796
|
placement: "right-center",
|
|
@@ -6795,7 +6799,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6795
6799
|
padding: "var(--padding-sm)",
|
|
6796
6800
|
display: "block",
|
|
6797
6801
|
children: /* @__PURE__ */ S("span", {
|
|
6798
|
-
className:
|
|
6802
|
+
className: yf.icon,
|
|
6799
6803
|
children: /* @__PURE__ */ S(uo, {
|
|
6800
6804
|
small: !0,
|
|
6801
6805
|
title: r ? "!" : void 0,
|
|
@@ -6804,18 +6808,18 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6804
6808
|
})
|
|
6805
6809
|
})
|
|
6806
6810
|
}), /* @__PURE__ */ S("span", {
|
|
6807
|
-
className:
|
|
6811
|
+
className: yf.label,
|
|
6808
6812
|
children: t
|
|
6809
|
-
})] }), (e, t) => Wr(e, t)),
|
|
6810
|
-
className:
|
|
6813
|
+
})] }), (e, t) => Wr(e, t)), xf = ({ isOpen: e, items: t, sectionIndex: n, onClick: r, testId: i }) => /* @__PURE__ */ S("div", {
|
|
6814
|
+
className: yf.list,
|
|
6811
6815
|
children: t.map((t, a) => {
|
|
6812
6816
|
let o = `${n}_${a}`;
|
|
6813
6817
|
return /* @__PURE__ */ S("a", {
|
|
6814
6818
|
href: t.value,
|
|
6815
|
-
className: b(
|
|
6819
|
+
className: b(yf.item, t.isActive ? yf.active : "", t.isExperimental ? yf.experimental : ""),
|
|
6816
6820
|
onClick: (e) => r(e, t.value, t.label, t.onClick),
|
|
6817
6821
|
"data-testid": i,
|
|
6818
|
-
children: /* @__PURE__ */ S(
|
|
6822
|
+
children: /* @__PURE__ */ S(bf, {
|
|
6819
6823
|
label: t.label,
|
|
6820
6824
|
icon: t.icon,
|
|
6821
6825
|
invalid: t.invalid,
|
|
@@ -6823,16 +6827,16 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6823
6827
|
}, o)
|
|
6824
6828
|
}, o);
|
|
6825
6829
|
})
|
|
6826
|
-
}),
|
|
6827
|
-
className:
|
|
6830
|
+
}), Sf = ({ isOpen: t, sections: n, onClick: r }) => /* @__PURE__ */ S(x, { children: n.map((n, i) => /* @__PURE__ */ C(e.Fragment, { children: [/* @__PURE__ */ S("h5", {
|
|
6831
|
+
className: yf.subtitle,
|
|
6828
6832
|
children: n.heading.toUpperCase()
|
|
6829
|
-
}), /* @__PURE__ */ S(
|
|
6833
|
+
}), /* @__PURE__ */ S(xf, {
|
|
6830
6834
|
isOpen: t,
|
|
6831
6835
|
items: n.items,
|
|
6832
6836
|
sectionIndex: i,
|
|
6833
6837
|
onClick: r,
|
|
6834
6838
|
testId: n.testId
|
|
6835
|
-
})] }, i)) }),
|
|
6839
|
+
})] }, i)) }), Cf = c(({ options: e, startOpen: t = !1, onShiftClickToggleOpen: n = () => {}, top: r, testId: i }) => {
|
|
6836
6840
|
let [a, o] = v(t), s = (e, t, n, r) => {
|
|
6837
6841
|
e.preventDefault(), typeof r == "function" && (e.currentTarget.value = t, e.currentTarget.label = n, r(e)), o(!1);
|
|
6838
6842
|
}, c = e.sections.length > 0;
|
|
@@ -6855,13 +6859,13 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6855
6859
|
testId: i ? `${i}-toggle` : void 0
|
|
6856
6860
|
}),
|
|
6857
6861
|
children: /* @__PURE__ */ S("div", {
|
|
6858
|
-
className: b(
|
|
6862
|
+
className: b(yf.sidebar, a ? "" : yf.collapsed),
|
|
6859
6863
|
children: c && /* @__PURE__ */ C("div", {
|
|
6860
|
-
className:
|
|
6864
|
+
className: yf.inner,
|
|
6861
6865
|
children: [/* @__PURE__ */ S("h4", {
|
|
6862
|
-
className:
|
|
6866
|
+
className: yf.title,
|
|
6863
6867
|
children: e.title
|
|
6864
|
-
}), /* @__PURE__ */ S(
|
|
6868
|
+
}), /* @__PURE__ */ S(Sf, {
|
|
6865
6869
|
isOpen: a,
|
|
6866
6870
|
sections: e.sections,
|
|
6867
6871
|
onClick: s
|
|
@@ -6869,18 +6873,18 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6869
6873
|
})
|
|
6870
6874
|
})
|
|
6871
6875
|
});
|
|
6872
|
-
}, (e, t) => Wr(e, t)),
|
|
6876
|
+
}, (e, t) => Wr(e, t)), wf = {
|
|
6873
6877
|
skeletonContainer: "_skeletonContainer_mcfxp_9",
|
|
6874
6878
|
skeleton: "_skeleton_mcfxp_9"
|
|
6875
|
-
},
|
|
6879
|
+
}, Tf = ({ count: e, width: t, height: n }) => /* @__PURE__ */ S(vi, {
|
|
6876
6880
|
baseColor: "var(--color-skeleton-base)",
|
|
6877
6881
|
highlightColor: "var(--color-skeleton-highlight)",
|
|
6878
|
-
containerClassName:
|
|
6879
|
-
className:
|
|
6882
|
+
containerClassName: wf.skeletonContainer,
|
|
6883
|
+
className: wf.skeleton,
|
|
6880
6884
|
count: e,
|
|
6881
6885
|
width: t,
|
|
6882
6886
|
height: n
|
|
6883
|
-
}),
|
|
6887
|
+
}), Ef = {
|
|
6884
6888
|
wrapper: "_wrapper_j8x9r_1",
|
|
6885
6889
|
label: "_label_j8x9r_5",
|
|
6886
6890
|
input: "_input_j8x9r_9",
|
|
@@ -6888,38 +6892,38 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6888
6892
|
editable: "_editable_j8x9r_22",
|
|
6889
6893
|
inputControl: "_inputControl_j8x9r_25",
|
|
6890
6894
|
actions: "_actions_j8x9r_28"
|
|
6891
|
-
},
|
|
6895
|
+
}, Df = () => {
|
|
6892
6896
|
let e = _(null);
|
|
6893
6897
|
return m(() => {
|
|
6894
6898
|
e.current && (e.current(), e.current = null);
|
|
6895
6899
|
}), (t) => {
|
|
6896
6900
|
e.current = t;
|
|
6897
6901
|
};
|
|
6898
|
-
},
|
|
6902
|
+
}, Of = (e) => {
|
|
6899
6903
|
let t = _(void 0);
|
|
6900
6904
|
return d(() => {
|
|
6901
6905
|
t.current = e;
|
|
6902
6906
|
}, [e]), t.current;
|
|
6903
|
-
},
|
|
6907
|
+
}, kf = (e, t) => {
|
|
6904
6908
|
let n = t == null ? void 0 : t[e];
|
|
6905
6909
|
if (!n) {
|
|
6906
6910
|
var r;
|
|
6907
6911
|
return console.log(`Warning: 'unitTemplate' missing for '${e}'. Using initial unit, preferred unit or value unit.`), (r = Er(e)) == null ? "" : r;
|
|
6908
6912
|
}
|
|
6909
6913
|
return n;
|
|
6910
|
-
},
|
|
6914
|
+
}, Af = /* @__PURE__ */ function(e) {
|
|
6911
6915
|
return e.CUSTOM = "custom", e.PREDEFINED = "predefined", e;
|
|
6912
|
-
}({}),
|
|
6916
|
+
}({}), jf = (e) => e === "undefined" || e === void 0 || e === "" || e === "null" || e === null || e === "NaN" || isNaN(e), Mf = (e) => {
|
|
6913
6917
|
if (!e) return !1;
|
|
6914
6918
|
let t = ur(e);
|
|
6915
6919
|
return !ir.includes(t);
|
|
6916
|
-
},
|
|
6920
|
+
}, Nf = ({ value: e, unitkey: t, toUnit: n }) => {
|
|
6917
6921
|
var r;
|
|
6918
6922
|
let i = rr[t];
|
|
6919
6923
|
if (!i || i.length === 0 || !((r = Dr(e)) != null && r.valid) || !i.includes(n)) return !1;
|
|
6920
6924
|
let a = ur(String(e));
|
|
6921
6925
|
return !(a && !i.includes(a));
|
|
6922
|
-
},
|
|
6926
|
+
}, Pf = ({ value: e, unitkey: t, toUnit: n, fromUnit: r, doNotConvertValue: i = !1, exactPrecision: a = !1 }) => {
|
|
6923
6927
|
var o;
|
|
6924
6928
|
let s = gr(e) ? fr(e) : e, c = [Infinity, -Infinity].includes(Number(s));
|
|
6925
6929
|
if (i || c) return {
|
|
@@ -6939,13 +6943,13 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6939
6943
|
value: void 0,
|
|
6940
6944
|
error: "Source unit is missing"
|
|
6941
6945
|
};
|
|
6942
|
-
if (
|
|
6946
|
+
if (jf(s)) return {
|
|
6943
6947
|
value: void 0,
|
|
6944
6948
|
error: "Value is invalid for conversion"
|
|
6945
6949
|
};
|
|
6946
6950
|
try {
|
|
6947
6951
|
let e = kr(s, l);
|
|
6948
|
-
if (
|
|
6952
|
+
if (Nf({
|
|
6949
6953
|
value: e,
|
|
6950
6954
|
toUnit: n,
|
|
6951
6955
|
unitkey: t
|
|
@@ -6966,13 +6970,13 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6966
6970
|
error: "Conversion not possible"
|
|
6967
6971
|
};
|
|
6968
6972
|
}
|
|
6969
|
-
},
|
|
6970
|
-
let a = fr(e), o =
|
|
6971
|
-
return !
|
|
6973
|
+
}, Ff = ({ value: e = "", toUnit: t, unitkey: n, defaultFromUnit: r, doNotConvertValue: i }) => {
|
|
6974
|
+
let a = fr(e), o = jf(a);
|
|
6975
|
+
return !Nf({
|
|
6972
6976
|
value: e,
|
|
6973
6977
|
unitkey: n,
|
|
6974
6978
|
toUnit: t
|
|
6975
|
-
}) ||
|
|
6979
|
+
}) || Mf(e) || o ? { value: a } : gr(e) ? Pf({
|
|
6976
6980
|
value: e,
|
|
6977
6981
|
unitkey: n,
|
|
6978
6982
|
toUnit: t,
|
|
@@ -6980,25 +6984,25 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6980
6984
|
doNotConvertValue: i,
|
|
6981
6985
|
exactPrecision: !0
|
|
6982
6986
|
}) : { value: e };
|
|
6983
|
-
},
|
|
6987
|
+
}, If = (e) => hn(e) && !sn(e) && !fn(e) ? on(e, "fieldName", "") : typeof e == "string" ? e : "", Lf = (e = "") => ir == null ? void 0 : ir.includes(e), Rf = (e, t) => {
|
|
6984
6988
|
let n = ur(e || "");
|
|
6985
|
-
return
|
|
6986
|
-
},
|
|
6987
|
-
|
|
6988
|
-
},
|
|
6989
|
+
return Lf(t) && Lf(n);
|
|
6990
|
+
}, zf = i(null), Bf = () => u(zf), Vf = !1, Hf = (e) => {
|
|
6991
|
+
Vf || (Vf = !0, zf = e);
|
|
6992
|
+
}, Uf = (e) => mr(e) ? e : vr(e), Wf = {
|
|
6989
6993
|
predefinedMenuActive: "_predefinedMenuActive_ye9w9_1",
|
|
6990
6994
|
inputWrapper: "_inputWrapper_ye9w9_4"
|
|
6991
|
-
},
|
|
6995
|
+
}, 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 = () => ({
|
|
6992
6996
|
name: "",
|
|
6993
6997
|
error: null
|
|
6994
6998
|
}), 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 }) => {
|
|
6995
|
-
let B =
|
|
6999
|
+
let B = Bf(), ee = Df();
|
|
6996
7000
|
typeof c == "number" && (c = `${c}`);
|
|
6997
|
-
let [te = "", ne = ""] = c === void 0 ? [] : Sr(c), V = h(() =>
|
|
7001
|
+
let [te = "", ne = ""] = c === void 0 ? [] : Sr(c), V = h(() => kf(l, y || (B == null ? void 0 : B.unitTemplate)), [
|
|
6998
7002
|
l,
|
|
6999
7003
|
y,
|
|
7000
7004
|
B == null ? void 0 : B.unitTemplate
|
|
7001
|
-
]), re =
|
|
7005
|
+
]), re = Rf(c, V), ie = u || V || ne, ae = Of(ie), { value: oe } = Ff({
|
|
7002
7006
|
value: c,
|
|
7003
7007
|
toUnit: ie,
|
|
7004
7008
|
unitkey: l,
|
|
@@ -7010,10 +7014,10 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7010
7014
|
} : {
|
|
7011
7015
|
value: oe,
|
|
7012
7016
|
unit: ie
|
|
7013
|
-
}), le = M || (se == null ? void 0 : se.value) === void 0, [ue, de] = v(D ?
|
|
7017
|
+
}), 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) => {
|
|
7014
7018
|
if (!(e != null && e.value)) return;
|
|
7015
7019
|
if (k) return k === e.valueKey;
|
|
7016
|
-
let t = gr(e.value) ? ur(e.value) : "", { value: n = c } =
|
|
7020
|
+
let t = gr(e.value) ? ur(e.value) : "", { value: n = c } = Pf({
|
|
7017
7021
|
value: String(c),
|
|
7018
7022
|
unitkey: l,
|
|
7019
7023
|
toUnit: t
|
|
@@ -7022,7 +7026,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7022
7026
|
}), me = () => {
|
|
7023
7027
|
var e;
|
|
7024
7028
|
let t = (e = c) == null ? "" : e, n = se.unit;
|
|
7025
|
-
if (!
|
|
7029
|
+
if (!Nf({
|
|
7026
7030
|
value: t,
|
|
7027
7031
|
unitkey: l,
|
|
7028
7032
|
toUnit: n
|
|
@@ -7037,7 +7041,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7037
7041
|
return null;
|
|
7038
7042
|
}
|
|
7039
7043
|
}, he = (t) => {
|
|
7040
|
-
let n =
|
|
7044
|
+
let n = If(e), r = t.target, { value: i, selectionStart: a } = r, o = kr(i, (se == null ? void 0 : se.unit) || "");
|
|
7041
7045
|
p({ target: {
|
|
7042
7046
|
value: N ? kr(sr(o, ne), ne) : o,
|
|
7043
7047
|
name: n
|
|
@@ -7059,7 +7063,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7059
7063
|
if (ie) {
|
|
7060
7064
|
let e, t = "";
|
|
7061
7065
|
if (ae !== ie) {
|
|
7062
|
-
let { value: n } =
|
|
7066
|
+
let { value: n } = Ff({
|
|
7063
7067
|
value: c,
|
|
7064
7068
|
toUnit: ie,
|
|
7065
7069
|
unitkey: l,
|
|
@@ -7068,7 +7072,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7068
7072
|
});
|
|
7069
7073
|
e = n, t = ie;
|
|
7070
7074
|
} else if (kr(se.value, se.unit) !== c) {
|
|
7071
|
-
let { value: n } =
|
|
7075
|
+
let { value: n } = Ff({
|
|
7072
7076
|
value: c,
|
|
7073
7077
|
toUnit: se.unit,
|
|
7074
7078
|
unitkey: l,
|
|
@@ -7080,7 +7084,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7080
7084
|
e !== void 0 && ce({
|
|
7081
7085
|
value: e,
|
|
7082
7086
|
unit: t
|
|
7083
|
-
}), de(E && pe && O ?
|
|
7087
|
+
}), de(E && pe && O ? Af.PREDEFINED : Af.CUSTOM);
|
|
7084
7088
|
}
|
|
7085
7089
|
}, [
|
|
7086
7090
|
ie,
|
|
@@ -7088,14 +7092,14 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7088
7092
|
i,
|
|
7089
7093
|
O
|
|
7090
7094
|
]);
|
|
7091
|
-
let _e = me(), ve = _r(se.unit) || se.unit || "", ye = f || !_e || _e && _e.length === 1, be =
|
|
7095
|
+
let _e = me(), ve = _r(se.unit) || se.unit || "", ye = f || !_e || _e && _e.length === 1, be = If(e), xe, Se = (t) => {
|
|
7092
7096
|
let r = t != null && t.value ? t.value : "", [i = "", a = ""] = gr(r) ? Sr(r) : [r], o = Or(r);
|
|
7093
|
-
if (
|
|
7097
|
+
if (Nf({
|
|
7094
7098
|
value: r,
|
|
7095
7099
|
unitkey: l,
|
|
7096
7100
|
toUnit: a
|
|
7097
7101
|
})) {
|
|
7098
|
-
let { value: e = "" } =
|
|
7102
|
+
let { value: e = "" } = Ff({
|
|
7099
7103
|
value: r,
|
|
7100
7104
|
toUnit: V,
|
|
7101
7105
|
unitkey: l,
|
|
@@ -7108,7 +7112,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7108
7112
|
type: $a.OPTION,
|
|
7109
7113
|
inline: !0,
|
|
7110
7114
|
onClick: () => {
|
|
7111
|
-
Dr(i).valid && !n && (de(
|
|
7115
|
+
Dr(i).valid && !n && (de(Af.PREDEFINED), p({ target: {
|
|
7112
7116
|
value: r,
|
|
7113
7117
|
name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || "",
|
|
7114
7118
|
predefinedSelected: !0,
|
|
@@ -7120,27 +7124,27 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7120
7124
|
height: "0"
|
|
7121
7125
|
})] }),
|
|
7122
7126
|
description: o,
|
|
7123
|
-
selected: pe === t && ue ===
|
|
7127
|
+
selected: pe === t && ue === Af.PREDEFINED
|
|
7124
7128
|
};
|
|
7125
7129
|
};
|
|
7126
7130
|
if (xe = [{
|
|
7127
7131
|
type: $a.OPTION,
|
|
7128
7132
|
inline: !0,
|
|
7129
7133
|
onClick: () => {
|
|
7130
|
-
ue !==
|
|
7134
|
+
ue !== Af.CUSTOM && !n && p({ target: {
|
|
7131
7135
|
value: kr(se.value, se.unit),
|
|
7132
7136
|
name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || ""
|
|
7133
7137
|
} });
|
|
7134
7138
|
},
|
|
7135
7139
|
label: "Custom",
|
|
7136
|
-
selected: ue ===
|
|
7140
|
+
selected: ue === Af.CUSTOM
|
|
7137
7141
|
}], E != null && E.length) {
|
|
7138
7142
|
let e = E.map(Se);
|
|
7139
7143
|
xe = [...xe, ...e];
|
|
7140
7144
|
}
|
|
7141
7145
|
let Ce = (e) => {
|
|
7142
7146
|
if (gr(e)) {
|
|
7143
|
-
let t = ur(e), { value: n } =
|
|
7147
|
+
let t = ur(e), { value: n } = Ff({
|
|
7144
7148
|
value: e,
|
|
7145
7149
|
toUnit: se.unit,
|
|
7146
7150
|
unitkey: l,
|
|
@@ -7152,7 +7156,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7152
7156
|
return e;
|
|
7153
7157
|
}, we = !E && (!R || R === H.FIRST) ? H.FIRST : H.MIDDLE, Te = !R || R === H.LAST ? H.LAST : H.MIDDLE;
|
|
7154
7158
|
return /* @__PURE__ */ S("div", {
|
|
7155
|
-
className: ue ===
|
|
7159
|
+
className: ue === Af.PREDEFINED ? b(Wf.predefinedMenuActive) : "",
|
|
7156
7160
|
children: /* @__PURE__ */ C(xs, {
|
|
7157
7161
|
small: o,
|
|
7158
7162
|
width: s,
|
|
@@ -7167,18 +7171,18 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7167
7171
|
trigger: "Component",
|
|
7168
7172
|
component: /* @__PURE__ */ S(K, {
|
|
7169
7173
|
groupOrder: "first",
|
|
7170
|
-
active: ue ===
|
|
7171
|
-
icon: ue ===
|
|
7174
|
+
active: ue === Af.PREDEFINED,
|
|
7175
|
+
icon: ue === Af.PREDEFINED ? "link" : "unlink",
|
|
7172
7176
|
small: o
|
|
7173
7177
|
}),
|
|
7174
7178
|
small: o,
|
|
7175
7179
|
sections: xe
|
|
7176
7180
|
},
|
|
7177
|
-
tooltip: ue ===
|
|
7181
|
+
tooltip: ue === Af.PREDEFINED ? pe == null ? void 0 : pe.label : ""
|
|
7178
7182
|
}),
|
|
7179
7183
|
/* @__PURE__ */ S("div", {
|
|
7180
|
-
className:
|
|
7181
|
-
children: /* @__PURE__ */ S(
|
|
7184
|
+
className: Wf.inputWrapper,
|
|
7185
|
+
children: /* @__PURE__ */ S(Cl, {
|
|
7182
7186
|
name: be,
|
|
7183
7187
|
testId: w,
|
|
7184
7188
|
disabled: n,
|
|
@@ -7201,7 +7205,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7201
7205
|
tooltip: z
|
|
7202
7206
|
}, be)
|
|
7203
7207
|
}),
|
|
7204
|
-
ve && (ye || !re ? /* @__PURE__ */ S(
|
|
7208
|
+
ve && (ye || !re ? /* @__PURE__ */ S(ul, {
|
|
7205
7209
|
groupOrder: Te,
|
|
7206
7210
|
small: o,
|
|
7207
7211
|
children: ve
|
|
@@ -7219,7 +7223,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7219
7223
|
let r = n || t || "", i = hr(e) ? e : "";
|
|
7220
7224
|
return {
|
|
7221
7225
|
type: "Option",
|
|
7222
|
-
label: P ?
|
|
7226
|
+
label: P ? Uf(i) : i,
|
|
7223
7227
|
inline: !0,
|
|
7224
7228
|
onClick: (n) => {
|
|
7225
7229
|
n.stopPropagation(), ge(e, t);
|
|
@@ -7234,10 +7238,10 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7234
7238
|
]
|
|
7235
7239
|
})
|
|
7236
7240
|
});
|
|
7237
|
-
},
|
|
7241
|
+
}, Kf = (e, t) => ({ target: {
|
|
7238
7242
|
name: e,
|
|
7239
7243
|
value: t
|
|
7240
|
-
} }),
|
|
7244
|
+
} }), 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 }) => {
|
|
7241
7245
|
let E = kr(t, c), [D, O] = v(E), [k, A] = v(!1), [j, M] = v(c);
|
|
7242
7246
|
d(() => {
|
|
7243
7247
|
k || O(E);
|
|
@@ -7255,7 +7259,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7255
7259
|
}, z = () => {
|
|
7256
7260
|
O(E), A(!1);
|
|
7257
7261
|
}, B = () => {
|
|
7258
|
-
L || I === null || (o(
|
|
7262
|
+
L || I === null || (o(Kf(e, I)), s == null || s(Kf(e, I)), A(!1));
|
|
7259
7263
|
}, ee = (e) => {
|
|
7260
7264
|
M(e), l == null || l(e);
|
|
7261
7265
|
}, te = (e) => {
|
|
@@ -7270,7 +7274,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7270
7274
|
}, ne = (e) => {
|
|
7271
7275
|
e.key === "Enter" && B(), e.key === "Escape" && z();
|
|
7272
7276
|
}, V = f || k, re = /* @__PURE__ */ C("div", {
|
|
7273
|
-
className:
|
|
7277
|
+
className: Ef.actions,
|
|
7274
7278
|
children: [/* @__PURE__ */ S(K, {
|
|
7275
7279
|
icon: "close",
|
|
7276
7280
|
small: !0,
|
|
@@ -7285,18 +7289,18 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7285
7289
|
})]
|
|
7286
7290
|
});
|
|
7287
7291
|
return /* @__PURE__ */ C("div", {
|
|
7288
|
-
className:
|
|
7292
|
+
className: Ef.wrapper,
|
|
7289
7293
|
"data-testid": g && `${g}-wrapper`,
|
|
7290
7294
|
children: [
|
|
7291
7295
|
i && /* @__PURE__ */ S("span", {
|
|
7292
|
-
className:
|
|
7296
|
+
className: Ef.label,
|
|
7293
7297
|
children: /* @__PURE__ */ S(rs, {
|
|
7294
7298
|
small: y,
|
|
7295
7299
|
children: i
|
|
7296
7300
|
})
|
|
7297
7301
|
}),
|
|
7298
7302
|
p && /* @__PURE__ */ S("div", {
|
|
7299
|
-
className: b(
|
|
7303
|
+
className: b(Ef.input, y && Ef.inputSmall, u && !f && Ef.editable),
|
|
7300
7304
|
children: /* @__PURE__ */ S(Ao, {
|
|
7301
7305
|
content: re,
|
|
7302
7306
|
isOpen: k,
|
|
@@ -7310,11 +7314,11 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7310
7314
|
testId: g && `${g}-edit-popover`,
|
|
7311
7315
|
toggleOnTriggerClick: !1,
|
|
7312
7316
|
children: /* @__PURE__ */ S("div", {
|
|
7313
|
-
className:
|
|
7317
|
+
className: Ef.inputControl,
|
|
7314
7318
|
"data-testid": g && `${g}-edit-trigger`,
|
|
7315
7319
|
onClick: R,
|
|
7316
7320
|
onKeyDown: ne,
|
|
7317
|
-
children: /* @__PURE__ */ S(
|
|
7321
|
+
children: /* @__PURE__ */ S(Gf, {
|
|
7318
7322
|
name: e,
|
|
7319
7323
|
value: k ? D : E,
|
|
7320
7324
|
unitkey: h,
|
|
@@ -7331,7 +7335,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7331
7335
|
})
|
|
7332
7336
|
})
|
|
7333
7337
|
}),
|
|
7334
|
-
/* @__PURE__ */ S(
|
|
7338
|
+
/* @__PURE__ */ S(Nl, {
|
|
7335
7339
|
name: e,
|
|
7336
7340
|
value: t,
|
|
7337
7341
|
min: n,
|
|
@@ -7349,7 +7353,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7349
7353
|
})
|
|
7350
7354
|
]
|
|
7351
7355
|
});
|
|
7352
|
-
},
|
|
7356
|
+
}, Xf = ({ label: e, invalid: t, badge: n }) => t ? /* @__PURE__ */ S(uo, {
|
|
7353
7357
|
small: !0,
|
|
7354
7358
|
margin: "-4px",
|
|
7355
7359
|
color: "var(--color-text-error)",
|
|
@@ -7360,7 +7364,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7360
7364
|
margin: "-4px",
|
|
7361
7365
|
title: n == null ? void 0 : n.toString(),
|
|
7362
7366
|
children: e
|
|
7363
|
-
}) : /* @__PURE__ */ S(x, { children: e }),
|
|
7367
|
+
}) : /* @__PURE__ */ S(x, { children: e }), Zf = {
|
|
7364
7368
|
tabs: "_tabs_1rtn8_1",
|
|
7365
7369
|
padding: "_padding_1rtn8_7",
|
|
7366
7370
|
margin: "_margin_1rtn8_11",
|
|
@@ -7369,8 +7373,8 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7369
7373
|
left: "_left_1rtn8_64",
|
|
7370
7374
|
right: "_right_1rtn8_64",
|
|
7371
7375
|
selectionIndicator: "_selectionIndicator_1rtn8_67"
|
|
7372
|
-
},
|
|
7373
|
-
let c = u(W), { simpleInputs: l, options: d, selectedOptions: f } =
|
|
7376
|
+
}, 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 }) => {
|
|
7377
|
+
let c = u(W), { simpleInputs: l, options: d, selectedOptions: f } = rl(t, n), p = pn(f) ? void 0 : l ? f : f.value, m = (e) => {
|
|
7374
7378
|
var t;
|
|
7375
7379
|
return (t = e.component) == null ? s : t;
|
|
7376
7380
|
}, h = (e) => !!(e.to && m(e)), g = (t) => {
|
|
@@ -7390,7 +7394,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7390
7394
|
"data-testid": o,
|
|
7391
7395
|
children: /* @__PURE__ */ S(xi, {
|
|
7392
7396
|
"aria-label": e == null ? "Tabs" : e,
|
|
7393
|
-
className: b(
|
|
7397
|
+
className: b(Zf.tabs, i ? Zf.padding : "", a ? Zf.margin : ""),
|
|
7394
7398
|
children: _.map((e) => {
|
|
7395
7399
|
let { label: t, url: n, to: r, disabled: i, value: a, right: o, invalid: s, badge: l, testId: u } = e, d = h(e), f = m(e);
|
|
7396
7400
|
return /* @__PURE__ */ C(bi, {
|
|
@@ -7398,23 +7402,23 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7398
7402
|
...!d && n ? { href: n } : {},
|
|
7399
7403
|
shouldSelectOnPressUp: !0,
|
|
7400
7404
|
isDisabled: i || c,
|
|
7401
|
-
className: b(
|
|
7405
|
+
className: b(Zf.item, o ? Zf.right : Zf.left),
|
|
7402
7406
|
"data-testid": u,
|
|
7403
7407
|
render: d && f ? (e) => /* @__PURE__ */ S(f, {
|
|
7404
7408
|
...e,
|
|
7405
7409
|
href: r,
|
|
7406
7410
|
to: r
|
|
7407
7411
|
}) : void 0,
|
|
7408
|
-
children: [/* @__PURE__ */ S(
|
|
7412
|
+
children: [/* @__PURE__ */ S(Xf, {
|
|
7409
7413
|
label: t,
|
|
7410
7414
|
invalid: s,
|
|
7411
7415
|
badge: l
|
|
7412
|
-
}), /* @__PURE__ */ S(yi, { className:
|
|
7416
|
+
}), /* @__PURE__ */ S(yi, { className: Zf.selectionIndicator })]
|
|
7413
7417
|
}, a);
|
|
7414
7418
|
})
|
|
7415
7419
|
})
|
|
7416
7420
|
}) : null;
|
|
7417
|
-
},
|
|
7421
|
+
}, $f = ({ children: e, href: t = void 0, target: n = void 0, testId: r, onClick: i, component: a = "a" }) => /* @__PURE__ */ S(a, {
|
|
7418
7422
|
href: t,
|
|
7419
7423
|
to: t,
|
|
7420
7424
|
target: n,
|
|
@@ -7424,7 +7428,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7424
7428
|
link: !0,
|
|
7425
7429
|
children: e
|
|
7426
7430
|
})
|
|
7427
|
-
}),
|
|
7431
|
+
}), ep = {
|
|
7428
7432
|
inputInTable: "_inputInTable_qbe2o_1",
|
|
7429
7433
|
inputHover: "_inputHover_qbe2o_13",
|
|
7430
7434
|
inputFocus: "_inputFocus_qbe2o_18",
|
|
@@ -7436,9 +7440,9 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7436
7440
|
textarea: "_textarea_qbe2o_81",
|
|
7437
7441
|
small: "_small_qbe2o_120",
|
|
7438
7442
|
monospace: "_monospace_qbe2o_159"
|
|
7439
|
-
},
|
|
7443
|
+
}, 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 }) => {
|
|
7440
7444
|
let x = u(W), C = /* @__PURE__ */ S("textarea", {
|
|
7441
|
-
className: b(
|
|
7445
|
+
className: b(ep.textarea, f ? ep.error : "", p ? ep.warning : "", _ ? ep.monospace : "", v ? ep.small : ""),
|
|
7442
7446
|
name: e,
|
|
7443
7447
|
value: t,
|
|
7444
7448
|
placeholder: n,
|
|
@@ -7480,10 +7484,10 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7480
7484
|
menu: "_menu_oyr59_139",
|
|
7481
7485
|
active: "_active_oyr59_168",
|
|
7482
7486
|
alert: "_alert_oyr59_193"
|
|
7483
|
-
},
|
|
7487
|
+
}, np = ({ warning: e }) => /* @__PURE__ */ S("div", {
|
|
7484
7488
|
className: Q.alert,
|
|
7485
7489
|
children: e
|
|
7486
|
-
}),
|
|
7490
|
+
}), rp = ({ icon: e, url: t, onClick: n }) => {
|
|
7487
7491
|
let r = /* @__PURE__ */ S(G, { icon: e });
|
|
7488
7492
|
return t ? /* @__PURE__ */ S("a", {
|
|
7489
7493
|
href: t,
|
|
@@ -7495,7 +7499,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7495
7499
|
className: Q.appSwitcher,
|
|
7496
7500
|
children: r
|
|
7497
7501
|
});
|
|
7498
|
-
},
|
|
7502
|
+
}, ip = ({ label: e, logo: t, url: n, version: r, onClick: i }) => {
|
|
7499
7503
|
let a = /* @__PURE__ */ C("div", {
|
|
7500
7504
|
className: Q.title,
|
|
7501
7505
|
children: [
|
|
@@ -7524,9 +7528,9 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7524
7528
|
children: a
|
|
7525
7529
|
})
|
|
7526
7530
|
});
|
|
7527
|
-
},
|
|
7531
|
+
}, ap = /* @__PURE__ */ function(e) {
|
|
7528
7532
|
return e.LINK = "Link", e.BUTTON = "Button", e.MENU = "Menu", e.COMPONENT = "Component", e;
|
|
7529
|
-
}({}),
|
|
7533
|
+
}({}), op = ({ label: e, url: t, icon: n, onClick: r, active: i, disabled: a, testId: o, component: s = "a" }) => {
|
|
7530
7534
|
let c = u(W);
|
|
7531
7535
|
return /* @__PURE__ */ C(s, {
|
|
7532
7536
|
className: b(Q.link, i ? Q.active : ""),
|
|
@@ -7543,11 +7547,11 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7543
7547
|
children: e
|
|
7544
7548
|
})]
|
|
7545
7549
|
});
|
|
7546
|
-
},
|
|
7550
|
+
}, sp = ({ element: e }) => {
|
|
7547
7551
|
switch (e.type) {
|
|
7548
|
-
case
|
|
7552
|
+
case ap.LINK: return /* @__PURE__ */ S("div", {
|
|
7549
7553
|
className: Q.item,
|
|
7550
|
-
children: /* @__PURE__ */ S(
|
|
7554
|
+
children: /* @__PURE__ */ S(op, {
|
|
7551
7555
|
label: e.label,
|
|
7552
7556
|
url: e.url,
|
|
7553
7557
|
icon: e.icon,
|
|
@@ -7558,7 +7562,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7558
7562
|
component: e.component
|
|
7559
7563
|
})
|
|
7560
7564
|
});
|
|
7561
|
-
case
|
|
7565
|
+
case ap.BUTTON: return /* @__PURE__ */ S("div", {
|
|
7562
7566
|
className: b(Q.item, Q.button),
|
|
7563
7567
|
children: /* @__PURE__ */ S(K, {
|
|
7564
7568
|
label: e.label,
|
|
@@ -7570,14 +7574,14 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7570
7574
|
testId: e.testId
|
|
7571
7575
|
})
|
|
7572
7576
|
});
|
|
7573
|
-
case
|
|
7577
|
+
case ap.MENU: return /* @__PURE__ */ S("div", {
|
|
7574
7578
|
className: b(Q.item, Q.menu),
|
|
7575
7579
|
children: /* @__PURE__ */ S(vo, {
|
|
7576
7580
|
maxHeight: "100%",
|
|
7577
7581
|
menu: {
|
|
7578
7582
|
trigger: Ai.COMPONENT,
|
|
7579
7583
|
placement: "bottom-start",
|
|
7580
|
-
component: /* @__PURE__ */ S(
|
|
7584
|
+
component: /* @__PURE__ */ S(op, {
|
|
7581
7585
|
label: e.label,
|
|
7582
7586
|
icon: e.icon,
|
|
7583
7587
|
onClick: e.onClick
|
|
@@ -7586,50 +7590,50 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7586
7590
|
}
|
|
7587
7591
|
})
|
|
7588
7592
|
});
|
|
7589
|
-
case
|
|
7593
|
+
case ap.COMPONENT: return /* @__PURE__ */ S("div", {
|
|
7590
7594
|
className: Q.item,
|
|
7591
7595
|
children: e.component
|
|
7592
7596
|
});
|
|
7593
7597
|
default: return null;
|
|
7594
7598
|
}
|
|
7595
|
-
},
|
|
7599
|
+
}, 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", {
|
|
7596
7600
|
className: b(Q.topbar, o ? Q.fixed : ""),
|
|
7597
7601
|
style: { height: a },
|
|
7598
7602
|
children: [
|
|
7599
|
-
!!t && /* @__PURE__ */ S(
|
|
7603
|
+
!!t && /* @__PURE__ */ S(rp, {
|
|
7600
7604
|
icon: t.icon,
|
|
7601
7605
|
url: t.url,
|
|
7602
7606
|
onClick: t.onClick
|
|
7603
7607
|
}),
|
|
7604
7608
|
/* @__PURE__ */ C("div", {
|
|
7605
7609
|
className: Q.left,
|
|
7606
|
-
children: [e && /* @__PURE__ */ S(
|
|
7610
|
+
children: [e && /* @__PURE__ */ S(ip, {
|
|
7607
7611
|
label: e.label,
|
|
7608
7612
|
logo: e.logo,
|
|
7609
7613
|
url: e.url,
|
|
7610
7614
|
version: e.version,
|
|
7611
7615
|
onClick: e.onClick
|
|
7612
|
-
}), n.map((e, t) => e ? /* @__PURE__ */ S(
|
|
7616
|
+
}), n.map((e, t) => e ? /* @__PURE__ */ S(sp, { element: e }, t) : null)]
|
|
7613
7617
|
}),
|
|
7614
7618
|
/* @__PURE__ */ S("div", {
|
|
7615
7619
|
className: Q.right,
|
|
7616
|
-
children: r.map((e, t) => e ? /* @__PURE__ */ S(
|
|
7620
|
+
children: r.map((e, t) => e ? /* @__PURE__ */ S(sp, { element: e }, t) : null)
|
|
7617
7621
|
})
|
|
7618
7622
|
]
|
|
7619
|
-
})] }),
|
|
7623
|
+
})] }), lp = {
|
|
7620
7624
|
popConfirm: "_popConfirm_1x6ye_1",
|
|
7621
7625
|
content: "_content_1x6ye_7",
|
|
7622
7626
|
buttons: "_buttons_1x6ye_13"
|
|
7623
|
-
},
|
|
7624
|
-
className:
|
|
7627
|
+
}, up = ({ title: e, okText: t, onClickOk: n, disableConfirmButton: r, cancelText: i, onClickCancel: a, close: o, testId: s }) => /* @__PURE__ */ C("div", {
|
|
7628
|
+
className: lp.popConfirm,
|
|
7625
7629
|
children: [e && /* @__PURE__ */ S("div", {
|
|
7626
|
-
className:
|
|
7630
|
+
className: lp.content,
|
|
7627
7631
|
children: /* @__PURE__ */ S(rs, {
|
|
7628
7632
|
small: !0,
|
|
7629
7633
|
children: e
|
|
7630
7634
|
})
|
|
7631
7635
|
}), /* @__PURE__ */ C("div", {
|
|
7632
|
-
className:
|
|
7636
|
+
className: lp.buttons,
|
|
7633
7637
|
children: [/* @__PURE__ */ S(K, {
|
|
7634
7638
|
small: !0,
|
|
7635
7639
|
colored: !0,
|
|
@@ -7644,8 +7648,8 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7644
7648
|
testId: `${s}-cancel-button`
|
|
7645
7649
|
})]
|
|
7646
7650
|
})]
|
|
7647
|
-
}),
|
|
7648
|
-
content: /* @__PURE__ */ S(
|
|
7651
|
+
}), 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(Ao, {
|
|
7652
|
+
content: /* @__PURE__ */ S(up, {
|
|
7649
7653
|
title: i,
|
|
7650
7654
|
okText: s,
|
|
7651
7655
|
onClickOk: c,
|
|
@@ -7659,14 +7663,14 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7659
7663
|
fullWidth: r,
|
|
7660
7664
|
testId: u,
|
|
7661
7665
|
children: e
|
|
7662
|
-
}),
|
|
7666
|
+
}), fp = {
|
|
7663
7667
|
tree: "_tree_coxxe_1",
|
|
7664
7668
|
toggle: "_toggle_coxxe_8",
|
|
7665
7669
|
dropTarget: "_dropTarget_coxxe_15",
|
|
7666
7670
|
placeholder: "_placeholder_coxxe_30",
|
|
7667
7671
|
draggingSource: "_draggingSource_coxxe_36",
|
|
7668
7672
|
placeholderContainer: "_placeholderContainer_coxxe_39"
|
|
7669
|
-
},
|
|
7673
|
+
}, pp = ({ node: t, depth: n, isOpen: r, onToggle: i, hasChild: a, draggable: o, icons: s, onDrop: c }) => {
|
|
7670
7674
|
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) => {
|
|
7671
7675
|
e.stopPropagation(), i(l);
|
|
7672
7676
|
}, w = (e) => {
|
|
@@ -7693,7 +7697,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7693
7697
|
className: b(Z.itemHeader, g ? Z.noPointerEvents : ""),
|
|
7694
7698
|
children: [
|
|
7695
7699
|
a && /* @__PURE__ */ S("div", {
|
|
7696
|
-
className:
|
|
7700
|
+
className: fp.toggle,
|
|
7697
7701
|
children: /* @__PURE__ */ S(K, {
|
|
7698
7702
|
basic: !0,
|
|
7699
7703
|
colored: r ? !0 : ji.MUTED,
|
|
@@ -7707,10 +7711,10 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7707
7711
|
className: Z.drag,
|
|
7708
7712
|
children: /* @__PURE__ */ S(G, { icon: U.DRAG })
|
|
7709
7713
|
}),
|
|
7710
|
-
/* @__PURE__ */ S(
|
|
7714
|
+
/* @__PURE__ */ S(kd, { item: u }),
|
|
7711
7715
|
/* @__PURE__ */ C("div", {
|
|
7712
7716
|
className: Z.right,
|
|
7713
|
-
children: [/* @__PURE__ */ S(
|
|
7717
|
+
children: [/* @__PURE__ */ S(Ad, { item: u }), !f && h.length > 0 && /* @__PURE__ */ S("div", {
|
|
7714
7718
|
className: Z.actions,
|
|
7715
7719
|
children: /* @__PURE__ */ S(bo, { actions: h })
|
|
7716
7720
|
})]
|
|
@@ -7718,10 +7722,10 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7718
7722
|
]
|
|
7719
7723
|
})
|
|
7720
7724
|
});
|
|
7721
|
-
},
|
|
7722
|
-
className:
|
|
7725
|
+
}, mp = ({ depth: e, indent: t = "var(--size-sm)" }) => /* @__PURE__ */ S("div", {
|
|
7726
|
+
className: fp.placeholder,
|
|
7723
7727
|
style: { left: `calc(${t} * ${e})` }
|
|
7724
|
-
}),
|
|
7728
|
+
}), hp = ({ 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 }) => {
|
|
7725
7729
|
var y;
|
|
7726
7730
|
let b = c == null ? _(null) : c, x = (e) => {
|
|
7727
7731
|
i && i(e);
|
|
@@ -7779,7 +7783,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7779
7783
|
"data-testid": a,
|
|
7780
7784
|
className: Z.list,
|
|
7781
7785
|
style: { height: h },
|
|
7782
|
-
children: [e.name && !e.noHeader && /* @__PURE__ */ S(
|
|
7786
|
+
children: [e.name && !e.noHeader && /* @__PURE__ */ S(Ed, {
|
|
7783
7787
|
name: e.name,
|
|
7784
7788
|
actions: e.actions,
|
|
7785
7789
|
stickyHeader: m
|
|
@@ -7806,7 +7810,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7806
7810
|
hasChild: r,
|
|
7807
7811
|
isOpen: a,
|
|
7808
7812
|
onToggle: o
|
|
7809
|
-
}) : /* @__PURE__ */ S(
|
|
7813
|
+
}) : /* @__PURE__ */ S(pp, {
|
|
7810
7814
|
hasChild: l ? l(e) : r,
|
|
7811
7815
|
node: e,
|
|
7812
7816
|
depth: t,
|
|
@@ -7822,7 +7826,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7822
7826
|
onDrop: A,
|
|
7823
7827
|
onChangeOpen: x,
|
|
7824
7828
|
dropTargetOffset: 10,
|
|
7825
|
-
placeholderRender: (e, { depth: t }) => /* @__PURE__ */ S(
|
|
7829
|
+
placeholderRender: (e, { depth: t }) => /* @__PURE__ */ S(mp, {
|
|
7826
7830
|
depth: t,
|
|
7827
7831
|
indent: v
|
|
7828
7832
|
}),
|
|
@@ -7830,17 +7834,17 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7830
7834
|
listComponent: "div",
|
|
7831
7835
|
listItemComponent: "div",
|
|
7832
7836
|
classes: {
|
|
7833
|
-
root:
|
|
7834
|
-
draggingSource:
|
|
7835
|
-
dropTarget:
|
|
7836
|
-
placeholder:
|
|
7837
|
+
root: fp.tree,
|
|
7838
|
+
draggingSource: fp.draggingSource,
|
|
7839
|
+
dropTarget: fp.dropTarget,
|
|
7840
|
+
placeholder: fp.placeholderContainer
|
|
7837
7841
|
},
|
|
7838
7842
|
initialOpen: o,
|
|
7839
7843
|
enableAnimateExpand: !0
|
|
7840
7844
|
})
|
|
7841
7845
|
})]
|
|
7842
7846
|
});
|
|
7843
|
-
},
|
|
7847
|
+
}, gp = {
|
|
7844
7848
|
treeTable: "_treeTable_1ywvy_1",
|
|
7845
7849
|
treeTableHeader: "_treeTableHeader_1ywvy_22",
|
|
7846
7850
|
folderCell: "_folderCell_1ywvy_30",
|
|
@@ -7848,48 +7852,48 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7848
7852
|
drag: "_drag_1ywvy_31",
|
|
7849
7853
|
folder: "_folder_1ywvy_30",
|
|
7850
7854
|
active: "_active_1ywvy_61"
|
|
7851
|
-
},
|
|
7855
|
+
}, _p = (e, t) => e.filter((e) => e.parent === t).flatMap((t) => [t.id, ..._p(e, t.id)]), vp = (e, t) => {
|
|
7852
7856
|
let n = new Set(t);
|
|
7853
7857
|
return e.filter((e) => !n.has(e.id)).map((e) => e.id);
|
|
7854
|
-
},
|
|
7858
|
+
}, yp = (e, t, n) => e.filter((e) => n.has(e) || !t.has(e)), bp = (e, t, n, r = []) => {
|
|
7855
7859
|
let i = new Set(n), a = new Set(r), o = e.filter((e) => e.parent === t && !a.has(e.id));
|
|
7856
7860
|
if (o.length === 0) return {
|
|
7857
7861
|
checked: i.has(t),
|
|
7858
7862
|
indeterminate: !1
|
|
7859
7863
|
};
|
|
7860
|
-
let s = o.map((t) =>
|
|
7864
|
+
let s = o.map((t) => bp(e, t.id, n, r)), c = s.filter((e) => e.checked).length, l = s.filter((e) => e.indeterminate).length, u = c === o.length;
|
|
7861
7865
|
return {
|
|
7862
7866
|
checked: u,
|
|
7863
7867
|
indeterminate: c + l > 0 && !u
|
|
7864
7868
|
};
|
|
7865
|
-
},
|
|
7866
|
-
let r =
|
|
7869
|
+
}, xp = (e, t, n = []) => {
|
|
7870
|
+
let r = vp(e, n), i = new Set(t), a = r.filter((e) => i.has(e)).length;
|
|
7867
7871
|
return {
|
|
7868
7872
|
checked: r.length > 0 && a === r.length,
|
|
7869
7873
|
indeterminate: a > 0 && a < r.length
|
|
7870
7874
|
};
|
|
7871
|
-
},
|
|
7875
|
+
}, Sp = i(null), Cp = () => u(Sp), wp = ({ children: e, rowCheckboxes: t, rows: n }) => {
|
|
7872
7876
|
let r = t !== void 0, { checkedIds: i = [], disabledIds: a = [], getTooltip: o, onChange: s } = t == null ? {} : t, c = h(() => new Set(a), [a]), u = h(() => {
|
|
7873
7877
|
if (!r) return null;
|
|
7874
7878
|
let e = /* @__PURE__ */ new Map();
|
|
7875
|
-
for (let t of n) e.set(t.id,
|
|
7879
|
+
for (let t of n) e.set(t.id, bp(n, t.id, i, a));
|
|
7876
7880
|
return e;
|
|
7877
7881
|
}, [
|
|
7878
7882
|
i,
|
|
7879
7883
|
a,
|
|
7880
7884
|
r,
|
|
7881
7885
|
n
|
|
7882
|
-
]), d = h(() => r ?
|
|
7886
|
+
]), d = h(() => r ? xp(n, i, a) : void 0, [
|
|
7883
7887
|
i,
|
|
7884
7888
|
a,
|
|
7885
7889
|
r,
|
|
7886
7890
|
n
|
|
7887
7891
|
]), 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) => {
|
|
7888
7892
|
if (!r || c.has(e)) return;
|
|
7889
|
-
let t =
|
|
7893
|
+
let t = _p(n, e), o = [e, ...t.filter((e) => !c.has(e))], l = [e, ...t], { checked: u } = bp(n, e, i, a);
|
|
7890
7894
|
if (u) {
|
|
7891
7895
|
let e = new Set(l);
|
|
7892
|
-
s == null || s(
|
|
7896
|
+
s == null || s(yp(i, e, c));
|
|
7893
7897
|
} else s == null || s([.../* @__PURE__ */ new Set([...i, ...o])]);
|
|
7894
7898
|
}, [
|
|
7895
7899
|
i,
|
|
@@ -7900,7 +7904,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7900
7904
|
n
|
|
7901
7905
|
]), _ = l(() => {
|
|
7902
7906
|
if (!r) return;
|
|
7903
|
-
let e =
|
|
7907
|
+
let e = vp(n, a), { checked: t } = xp(n, i, a);
|
|
7904
7908
|
t ? s == null || s(i.filter((e) => c.has(e))) : s == null || s([.../* @__PURE__ */ new Set([...i, ...e])]);
|
|
7905
7909
|
}, [
|
|
7906
7910
|
i,
|
|
@@ -7926,12 +7930,12 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7926
7930
|
_,
|
|
7927
7931
|
g
|
|
7928
7932
|
]);
|
|
7929
|
-
return /* @__PURE__ */ S(
|
|
7933
|
+
return /* @__PURE__ */ S(Sp.Provider, {
|
|
7930
7934
|
value: v,
|
|
7931
7935
|
children: e
|
|
7932
7936
|
});
|
|
7933
|
-
},
|
|
7934
|
-
let h =
|
|
7937
|
+
}, Tp = ({ columnAlignment: e, columnWidths: t, depth: n, draggable: r, handleRef: i, hasChild: a, hasRowActions: o, icons: s, isOpen: c, node: l, onDragEnter: u, onDragOver: d, onDragLeave: f, onDrop: p, onToggle: m }) => {
|
|
7938
|
+
let h = Cp(), g = h != null && h.enabled ? h.getRowCheckState(l.id) : void 0, _ = g == null ? void 0 : g.checked, v = g == null ? void 0 : g.indeterminate, y = h == null ? void 0 : h.isRowCheckDisabled(l.id), x = h == null ? void 0 : h.enabled, { data: w, droppable: T } = l, { id: E, cells: D, testId: O, actions: k = [], active: A, onRowClick: j } = w, M = T || a, N = (e) => {
|
|
7935
7939
|
let r = t ? t[e] : void 0;
|
|
7936
7940
|
return e === 0 ? `calc(${r} - ${`calc(var(--size) * ${M ? n + 1 : n})`})` : r;
|
|
7937
7941
|
};
|
|
@@ -7944,12 +7948,12 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7944
7948
|
onDragLeave: f,
|
|
7945
7949
|
children: /* @__PURE__ */ S("tbody", { children: /* @__PURE__ */ C("tr", {
|
|
7946
7950
|
onClick: j,
|
|
7947
|
-
className: b(
|
|
7951
|
+
className: b(gp.treeTableRow, A ? gp.active : void 0),
|
|
7948
7952
|
children: [
|
|
7949
|
-
x && /* @__PURE__ */ S(
|
|
7953
|
+
x && /* @__PURE__ */ S(ql, {
|
|
7950
7954
|
isHeader: !1,
|
|
7951
7955
|
cell: {
|
|
7952
|
-
type:
|
|
7956
|
+
type: Kl.CHECKBOX,
|
|
7953
7957
|
checked: _,
|
|
7954
7958
|
disabled: y,
|
|
7955
7959
|
indeterminate: v,
|
|
@@ -7958,19 +7962,19 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7958
7962
|
}
|
|
7959
7963
|
}),
|
|
7960
7964
|
r && /* @__PURE__ */ S("td", {
|
|
7961
|
-
className:
|
|
7965
|
+
className: gp.dragCell,
|
|
7962
7966
|
children: /* @__PURE__ */ S("div", {
|
|
7963
|
-
className:
|
|
7967
|
+
className: gp.drag,
|
|
7964
7968
|
onClick: (e) => e.stopPropagation(),
|
|
7965
7969
|
ref: i,
|
|
7966
7970
|
children: /* @__PURE__ */ S(G, { icon: U.DRAG })
|
|
7967
7971
|
})
|
|
7968
7972
|
}),
|
|
7969
|
-
Array.from({ length: n }).map((e, t) => /* @__PURE__ */ S("td", { className:
|
|
7973
|
+
Array.from({ length: n }).map((e, t) => /* @__PURE__ */ S("td", { className: gp.folderCell }, t)),
|
|
7970
7974
|
M && /* @__PURE__ */ S("td", {
|
|
7971
|
-
className:
|
|
7975
|
+
className: gp.folderCell,
|
|
7972
7976
|
children: /* @__PURE__ */ S("div", {
|
|
7973
|
-
className:
|
|
7977
|
+
className: gp.folder,
|
|
7974
7978
|
onClick: () => m(E),
|
|
7975
7979
|
onMouseDown: (e) => e.stopPropagation(),
|
|
7976
7980
|
children: /* @__PURE__ */ S(K, {
|
|
@@ -7985,73 +7989,73 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7985
7989
|
}),
|
|
7986
7990
|
D.map((t, n) => {
|
|
7987
7991
|
let r = N(n), i = e ? e[n] : null;
|
|
7988
|
-
return /* @__PURE__ */ S(
|
|
7992
|
+
return /* @__PURE__ */ S(ql, {
|
|
7989
7993
|
isHeader: !1,
|
|
7990
7994
|
cell: t,
|
|
7991
7995
|
width: r,
|
|
7992
7996
|
columnAlignment: i
|
|
7993
7997
|
}, n);
|
|
7994
7998
|
}),
|
|
7995
|
-
o && /* @__PURE__ */ S(
|
|
7999
|
+
o && /* @__PURE__ */ S(ql, {
|
|
7996
8000
|
isHeader: !1,
|
|
7997
8001
|
cell: {
|
|
7998
|
-
type:
|
|
8002
|
+
type: Kl.ACTIONS,
|
|
7999
8003
|
actions: k
|
|
8000
8004
|
}
|
|
8001
8005
|
})
|
|
8002
8006
|
]
|
|
8003
8007
|
}) })
|
|
8004
8008
|
});
|
|
8005
|
-
},
|
|
8006
|
-
let a =
|
|
8009
|
+
}, Ep = ({ columnAlignment: e, columnWidths: t, draggable: n, hasRowActions: r, headers: i }) => {
|
|
8010
|
+
let a = Cp(), o = a == null ? void 0 : a.headerCheckState, s = (a == null ? void 0 : a.enabled) && o !== void 0;
|
|
8007
8011
|
return /* @__PURE__ */ S("table", {
|
|
8008
|
-
className: b(ec.table,
|
|
8012
|
+
className: b(ec.table, gp.treeTableHeader),
|
|
8009
8013
|
children: /* @__PURE__ */ S("thead", { children: i.map((i, c) => /* @__PURE__ */ C("tr", { children: [
|
|
8010
|
-
s && c === 0 ? /* @__PURE__ */ S(
|
|
8014
|
+
s && c === 0 ? /* @__PURE__ */ S(ql, {
|
|
8011
8015
|
isHeader: !0,
|
|
8012
8016
|
cell: {
|
|
8013
|
-
type:
|
|
8017
|
+
type: Kl.CHECKBOX,
|
|
8014
8018
|
checked: o.checked,
|
|
8015
8019
|
indeterminate: o.indeterminate,
|
|
8016
8020
|
onChange: a.toggleHeaderCheck
|
|
8017
8021
|
}
|
|
8018
8022
|
}) : s ? /* @__PURE__ */ S("td", {}) : null,
|
|
8019
|
-
n && /* @__PURE__ */ S("th", { className:
|
|
8023
|
+
n && /* @__PURE__ */ S("th", { className: gp.dragCell }),
|
|
8020
8024
|
i.cells.map((n, r) => {
|
|
8021
8025
|
let i = t ? t[r] : void 0, a = e ? e[r] : void 0;
|
|
8022
|
-
return /* @__PURE__ */ S(
|
|
8026
|
+
return /* @__PURE__ */ S(ql, {
|
|
8023
8027
|
isHeader: !0,
|
|
8024
8028
|
cell: n,
|
|
8025
8029
|
width: i,
|
|
8026
8030
|
columnAlignment: a
|
|
8027
8031
|
}, r);
|
|
8028
8032
|
}),
|
|
8029
|
-
r && /* @__PURE__ */ S(
|
|
8033
|
+
r && /* @__PURE__ */ S(ql, {
|
|
8030
8034
|
isHeader: !0,
|
|
8031
8035
|
cell: {
|
|
8032
|
-
type:
|
|
8036
|
+
type: Kl.ACTIONS,
|
|
8033
8037
|
actions: i.actions,
|
|
8034
8038
|
width: 31
|
|
8035
8039
|
}
|
|
8036
8040
|
})
|
|
8037
8041
|
] }, c)) })
|
|
8038
8042
|
});
|
|
8039
|
-
},
|
|
8040
|
-
let { columnAlignment: m, columnWidths: h, fixedWidth: g, headers: _, rows: v = [] } = d, y =
|
|
8041
|
-
return /* @__PURE__ */ S(
|
|
8043
|
+
}, Dp = ({ 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 }) => {
|
|
8044
|
+
let { columnAlignment: m, columnWidths: h, fixedWidth: g, headers: _, rows: v = [] } = d, y = gl(v, _ == null ? [] : _);
|
|
8045
|
+
return /* @__PURE__ */ S(wp, {
|
|
8042
8046
|
rowCheckboxes: u,
|
|
8043
8047
|
rows: v,
|
|
8044
8048
|
children: /* @__PURE__ */ C("div", {
|
|
8045
|
-
className:
|
|
8049
|
+
className: gp.treeTable,
|
|
8046
8050
|
"data-testid": f,
|
|
8047
8051
|
style: { width: g },
|
|
8048
|
-
children: [!!_ && /* @__PURE__ */ S(
|
|
8052
|
+
children: [!!_ && /* @__PURE__ */ S(Ep, {
|
|
8049
8053
|
columnAlignment: m,
|
|
8050
8054
|
columnWidths: h,
|
|
8051
8055
|
draggable: r,
|
|
8052
8056
|
hasRowActions: y,
|
|
8053
8057
|
headers: _
|
|
8054
|
-
}), /* @__PURE__ */ S(
|
|
8058
|
+
}), /* @__PURE__ */ S(hp, {
|
|
8055
8059
|
allowParentReassignment: e,
|
|
8056
8060
|
autoOpenActiveItems: t,
|
|
8057
8061
|
canDrop: n,
|
|
@@ -8067,7 +8071,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
8067
8071
|
onItemToggle: s,
|
|
8068
8072
|
onListReorder: c,
|
|
8069
8073
|
placeholderIndent: "var(--size)",
|
|
8070
|
-
render: (e, { depth: t, draggable: n, handleRef: r, hasChild: a, isOpen: o, onToggle: s }) => /* @__PURE__ */ S(
|
|
8074
|
+
render: (e, { depth: t, draggable: n, handleRef: r, hasChild: a, isOpen: o, onToggle: s }) => /* @__PURE__ */ S(Tp, {
|
|
8071
8075
|
node: e,
|
|
8072
8076
|
columnAlignment: m,
|
|
8073
8077
|
columnWidths: h,
|
|
@@ -8084,10 +8088,10 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
8084
8088
|
})]
|
|
8085
8089
|
})
|
|
8086
8090
|
});
|
|
8087
|
-
},
|
|
8091
|
+
}, Op = Object.freeze({
|
|
8088
8092
|
Translations: "translations",
|
|
8089
8093
|
LanguageKey: "languageKey"
|
|
8090
|
-
}),
|
|
8094
|
+
}), kp = {
|
|
8091
8095
|
unified: "Unified",
|
|
8092
8096
|
split: "Split",
|
|
8093
8097
|
changesTooLarge: "Changes are too large to be shown",
|
|
@@ -8110,29 +8114,29 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
8110
8114
|
showAll: "Show all",
|
|
8111
8115
|
unknown: "Unknown",
|
|
8112
8116
|
unexpectedError: "Unexpected error"
|
|
8113
|
-
},
|
|
8117
|
+
}, Ap = (e) => Object.keys(kp).reduce((t, n) => ({
|
|
8114
8118
|
...t,
|
|
8115
|
-
[n]: (e == null ? void 0 : e[n]) || (
|
|
8116
|
-
}), {}),
|
|
8117
|
-
[
|
|
8118
|
-
[
|
|
8119
|
-
},
|
|
8120
|
-
|
|
8121
|
-
},
|
|
8119
|
+
[n]: (e == null ? void 0 : e[n]) || (kp == null ? void 0 : kp[n])
|
|
8120
|
+
}), {}), jp = {
|
|
8121
|
+
[Op.Translations]: Ap(),
|
|
8122
|
+
[Op.LanguageKey]: "en"
|
|
8123
|
+
}, Mp = (e) => e ? jp[e] : jp, Np = (e, t) => {
|
|
8124
|
+
jp[e] = t;
|
|
8125
|
+
}, Pp = (e) => e.reduce(({ preferredUnits: e, storageUnits: t }, { unitKey: n, preferredUnit: r, storageUnit: i }) => {
|
|
8122
8126
|
var a;
|
|
8123
|
-
let { unitTemplate: o = null } = (a =
|
|
8124
|
-
return e[n] = r == null ?
|
|
8127
|
+
let { unitTemplate: o = null } = (a = Bf()) == null ? {} : a;
|
|
8128
|
+
return e[n] = r == null ? kf(n, o) : r, t[n] = i, {
|
|
8125
8129
|
preferredUnits: e,
|
|
8126
8130
|
storageUnits: t
|
|
8127
8131
|
};
|
|
8128
8132
|
}, {
|
|
8129
8133
|
preferredUnits: {},
|
|
8130
8134
|
storageUnits: {}
|
|
8131
|
-
}),
|
|
8135
|
+
}), Fp = ({ row: e, selectedUnits: t, storageUnits: n, convertBackToStorageUnit: r, enableCosmeticRounding: i, enableDisplayRounding: a }) => ({
|
|
8132
8136
|
...e,
|
|
8133
8137
|
cells: e.cells.map((e) => {
|
|
8134
8138
|
if ("autoUnit" in e && e.autoUnit && (typeof e.value == "string" || typeof e.value == "number")) {
|
|
8135
|
-
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, { value: p = s } =
|
|
8139
|
+
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, { value: p = s } = Pf({
|
|
8136
8140
|
value: Tr(s),
|
|
8137
8141
|
unitkey: o,
|
|
8138
8142
|
toUnit: u,
|
|
@@ -8146,7 +8150,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
8146
8150
|
roundDisplayValue: l,
|
|
8147
8151
|
selectOnFocus: !0,
|
|
8148
8152
|
onChange: (t) => {
|
|
8149
|
-
let n = t, { value: i } = n.target, a = r ? d : u, { value: s = i } =
|
|
8153
|
+
let n = t, { value: i } = n.target, a = r ? d : u, { value: s = i } = Pf({
|
|
8150
8154
|
value: String(i),
|
|
8151
8155
|
unitkey: o,
|
|
8152
8156
|
toUnit: a,
|
|
@@ -8165,17 +8169,17 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
8165
8169
|
}
|
|
8166
8170
|
return e;
|
|
8167
8171
|
})
|
|
8168
|
-
}),
|
|
8169
|
-
let { translations: i } =
|
|
8172
|
+
}), Ip = ({ headers: e, selectedUnits: t, storageUnits: n, onChangeUnit: r }) => {
|
|
8173
|
+
let { translations: i } = Mp();
|
|
8170
8174
|
return e ? e.map((e) => ({
|
|
8171
8175
|
...e,
|
|
8172
8176
|
cells: e.cells.map((e) => {
|
|
8173
|
-
if (e.type ===
|
|
8177
|
+
if (e.type === Kl.AUTO_UNIT) {
|
|
8174
8178
|
var a;
|
|
8175
8179
|
let { testId: o, unitKey: s, disabled: c = !1, error: l } = e, u = n[s];
|
|
8176
8180
|
return {
|
|
8177
8181
|
value: u && t[s],
|
|
8178
|
-
type:
|
|
8182
|
+
type: Kl.SELECT,
|
|
8179
8183
|
error: !u && (i == null ? void 0 : i.unitIsMissing) || l,
|
|
8180
8184
|
disabled: c || !u,
|
|
8181
8185
|
searchable: !1,
|
|
@@ -8195,8 +8199,8 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
8195
8199
|
return e;
|
|
8196
8200
|
})
|
|
8197
8201
|
})) : [];
|
|
8198
|
-
},
|
|
8199
|
-
let { headers: c, ...u } = e, { storageUnits: f, preferredUnits: p } =
|
|
8202
|
+
}, Lp = ({ table: e, unitConfig: t, convertBackToStorageUnit: n = !0, enableCosmeticRounding: r = !0, enableDisplayRounding: i = !0, onListReorder: a, canListReorder: o, beforeRenderRow: s }) => {
|
|
8203
|
+
let { headers: c, ...u } = e, { storageUnits: f, preferredUnits: p } = Pp(t), m = Of(p), [h, g] = v(p), _ = ({ unitKey: e, value: n }) => {
|
|
8200
8204
|
g((t) => ({
|
|
8201
8205
|
...t,
|
|
8202
8206
|
[e]: n
|
|
@@ -8207,7 +8211,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
8207
8211
|
newUnit: n,
|
|
8208
8212
|
unitKey: e
|
|
8209
8213
|
});
|
|
8210
|
-
}, y = l(({ row: e, rowIndex: t }) =>
|
|
8214
|
+
}, y = l(({ row: e, rowIndex: t }) => Fp({
|
|
8211
8215
|
row: s ? s({
|
|
8212
8216
|
row: e,
|
|
8213
8217
|
rowIndex: t
|
|
@@ -8232,10 +8236,10 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
8232
8236
|
value: n
|
|
8233
8237
|
});
|
|
8234
8238
|
});
|
|
8235
|
-
}, [t]), /* @__PURE__ */ S(
|
|
8239
|
+
}, [t]), /* @__PURE__ */ S(iu, {
|
|
8236
8240
|
table: {
|
|
8237
8241
|
...u,
|
|
8238
|
-
headers:
|
|
8242
|
+
headers: Ip({
|
|
8239
8243
|
headers: e.headers,
|
|
8240
8244
|
selectedUnits: h,
|
|
8241
8245
|
storageUnits: f,
|
|
@@ -8246,8 +8250,8 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
8246
8250
|
canListReorder: o,
|
|
8247
8251
|
beforeRenderRow: y
|
|
8248
8252
|
});
|
|
8249
|
-
},
|
|
8250
|
-
let { translations: d } =
|
|
8253
|
+
}, Rp = { settingField: "_settingField_1x02n_1" }, zp = ({ 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 }) => {
|
|
8254
|
+
let { translations: d } = Mp(), f = (t) => t.replace(/\\n/g, "\n").split(/\n/).map((t, n) => /* @__PURE__ */ C(e.Fragment, { children: [t, /* @__PURE__ */ S("br", {})] }, n)), p = [
|
|
8251
8255
|
...r ? [] : [{
|
|
8252
8256
|
label: d == null ? void 0 : d.allUsers,
|
|
8253
8257
|
value: !1
|
|
@@ -8262,20 +8266,20 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
8262
8266
|
}] : []
|
|
8263
8267
|
], m = a !== void 0 && o !== void 0 && !un(a, o);
|
|
8264
8268
|
return /* @__PURE__ */ C("div", {
|
|
8265
|
-
className:
|
|
8269
|
+
className: Rp.settingField,
|
|
8266
8270
|
"data-testid": u,
|
|
8267
|
-
children: [/* @__PURE__ */ C(
|
|
8271
|
+
children: [/* @__PURE__ */ C(Sd, {
|
|
8268
8272
|
justifyContent: "space-between",
|
|
8269
8273
|
wrap: !1,
|
|
8270
8274
|
children: [i, !s && /* @__PURE__ */ S("div", {
|
|
8271
8275
|
style: { flexShrink: 0 },
|
|
8272
|
-
children: /* @__PURE__ */ C(
|
|
8276
|
+
children: /* @__PURE__ */ C(Sd, {
|
|
8273
8277
|
gap: "8px",
|
|
8274
8278
|
alignItems: "center",
|
|
8275
8279
|
children: [m && /* @__PURE__ */ S(ya, {
|
|
8276
8280
|
text: Dr(o).valid ? `${d == null ? void 0 : d.companySetting}: ${gr(o) ? Or(o) : o}` : d == null ? void 0 : d.companySettingDifferent,
|
|
8277
8281
|
icon: U.INFO
|
|
8278
|
-
}), /* @__PURE__ */ S(
|
|
8282
|
+
}), /* @__PURE__ */ S(il, {
|
|
8279
8283
|
small: !0,
|
|
8280
8284
|
searchable: !1,
|
|
8281
8285
|
name: "userType",
|
|
@@ -8294,19 +8298,19 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
8294
8298
|
children: f(t)
|
|
8295
8299
|
})]
|
|
8296
8300
|
});
|
|
8297
|
-
},
|
|
8301
|
+
}, Bp = (e, t) => {
|
|
8298
8302
|
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;
|
|
8299
8303
|
return {
|
|
8300
8304
|
added: Math.max(0, i),
|
|
8301
8305
|
removed: Math.max(0, a)
|
|
8302
8306
|
};
|
|
8303
|
-
},
|
|
8307
|
+
}, Vp = "split", Hp = "unified", Up = ({ oldJson: e, newJson: t, viewType: n = Vp }) => {
|
|
8304
8308
|
var r, i;
|
|
8305
|
-
let { translations: a } =
|
|
8306
|
-
value:
|
|
8309
|
+
let { translations: a } = Mp(), [o, s] = v(n), c = [{
|
|
8310
|
+
value: Vp,
|
|
8307
8311
|
label: (r = a == null ? void 0 : a.split) == null ? "Split" : r
|
|
8308
8312
|
}, {
|
|
8309
|
-
value:
|
|
8313
|
+
value: Hp,
|
|
8310
8314
|
label: (i = a == null ? void 0 : a.unified) == null ? "Unified" : i
|
|
8311
8315
|
}];
|
|
8312
8316
|
d(() => {
|
|
@@ -8314,10 +8318,10 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
8314
8318
|
}, [n]);
|
|
8315
8319
|
let l = ({ target: { value: e } }) => {
|
|
8316
8320
|
s(e);
|
|
8317
|
-
}, { added: u, removed: f } =
|
|
8321
|
+
}, { added: u, removed: f } = Bp(e, t), p = u + f > 3500;
|
|
8318
8322
|
return /* @__PURE__ */ S(x, { children: /* @__PURE__ */ S(Oo, {
|
|
8319
8323
|
bordered: !0,
|
|
8320
|
-
heading: /* @__PURE__ */ C(
|
|
8324
|
+
heading: /* @__PURE__ */ C(Sd, {
|
|
8321
8325
|
gap: !0,
|
|
8322
8326
|
children: [/* @__PURE__ */ S(cs, { children: /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ C(rs, {
|
|
8323
8327
|
success: !0,
|
|
@@ -8329,7 +8333,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
8329
8333
|
}), /* @__PURE__ */ C(rs, {
|
|
8330
8334
|
error: !0,
|
|
8331
8335
|
children: ["-", f]
|
|
8332
|
-
})] }) }), !p && /* @__PURE__ */ S(
|
|
8336
|
+
})] }) }), !p && /* @__PURE__ */ S(Qd, {
|
|
8333
8337
|
name: "viewType",
|
|
8334
8338
|
options: c,
|
|
8335
8339
|
value: o,
|
|
@@ -8347,14 +8351,14 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
8347
8351
|
}) : /* @__PURE__ */ S(Di, {
|
|
8348
8352
|
oldValue: e,
|
|
8349
8353
|
newValue: t,
|
|
8350
|
-
splitView: o ===
|
|
8354
|
+
splitView: o === Vp,
|
|
8351
8355
|
compareMethod: Oi.WORDS
|
|
8352
8356
|
})
|
|
8353
8357
|
}) });
|
|
8354
8358
|
};
|
|
8355
8359
|
//#endregion
|
|
8356
8360
|
//#region src/helpers/date.ts
|
|
8357
|
-
function
|
|
8361
|
+
function Wp({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i, locale: a }) {
|
|
8358
8362
|
return e ? new Date(e).toLocaleString(a, {
|
|
8359
8363
|
year: "numeric",
|
|
8360
8364
|
month: "short",
|
|
@@ -8368,28 +8372,28 @@ function Up({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i
|
|
|
8368
8372
|
}
|
|
8369
8373
|
//#endregion
|
|
8370
8374
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/clone.js
|
|
8371
|
-
function
|
|
8375
|
+
function Gp(e) {
|
|
8372
8376
|
var t;
|
|
8373
8377
|
let n = /^\/(.*)\/([gimyu]*)$/.exec(e.toString());
|
|
8374
8378
|
if (!n) throw Error("Invalid RegExp");
|
|
8375
8379
|
return new RegExp((t = n[1]) == null ? "" : t, n[2]);
|
|
8376
8380
|
}
|
|
8377
|
-
function
|
|
8381
|
+
function Kp(e) {
|
|
8378
8382
|
if (typeof e != "object") return e;
|
|
8379
8383
|
if (e === null) return null;
|
|
8380
|
-
if (Array.isArray(e)) return e.map(
|
|
8384
|
+
if (Array.isArray(e)) return e.map(Kp);
|
|
8381
8385
|
if (e instanceof Date) return new Date(e.getTime());
|
|
8382
|
-
if (e instanceof RegExp) return
|
|
8386
|
+
if (e instanceof RegExp) return Gp(e);
|
|
8383
8387
|
let t = {};
|
|
8384
|
-
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
8388
|
+
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = Kp(e[n]));
|
|
8385
8389
|
return t;
|
|
8386
8390
|
}
|
|
8387
8391
|
//#endregion
|
|
8388
8392
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/assertions/arrays.js
|
|
8389
|
-
function
|
|
8393
|
+
function qp(e, t) {
|
|
8390
8394
|
if (e.length === 0) throw Error(t || "Expected a non-empty array");
|
|
8391
8395
|
}
|
|
8392
|
-
var
|
|
8396
|
+
var Jp = (e) => e[e.length - 1], Yp = class {
|
|
8393
8397
|
setResult(e) {
|
|
8394
8398
|
return this.result = e, this.hasResult = !0, this;
|
|
8395
8399
|
}
|
|
@@ -8397,16 +8401,16 @@ var qp = (e) => e[e.length - 1], Jp = class {
|
|
|
8397
8401
|
return this.exiting = !0, this;
|
|
8398
8402
|
}
|
|
8399
8403
|
push(e, t) {
|
|
8400
|
-
return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? (
|
|
8404
|
+
return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? (qp(this.children), Jp(this.children).next = e, this.children.push(e)) : (this.children = [e], this.nextAfterChildren = this.next || null, this.next = e), e.next = this, this;
|
|
8401
8405
|
}
|
|
8402
|
-
},
|
|
8406
|
+
}, Xp = class extends Yp {
|
|
8403
8407
|
constructor(e, t) {
|
|
8404
8408
|
super(), this.left = e, this.right = t, this.pipe = "diff";
|
|
8405
8409
|
}
|
|
8406
8410
|
prepareDeltaResult(e) {
|
|
8407
8411
|
var t, n, r, i;
|
|
8408
8412
|
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)) {
|
|
8409
|
-
let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues :
|
|
8413
|
+
let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues : Kp;
|
|
8410
8414
|
typeof e[0] == "object" && (e[0] = t(e[0])), typeof e[1] == "object" && (e[1] = t(e[1]));
|
|
8411
8415
|
}
|
|
8412
8416
|
return e;
|
|
@@ -8414,15 +8418,15 @@ var qp = (e) => e[e.length - 1], Jp = class {
|
|
|
8414
8418
|
setResult(e) {
|
|
8415
8419
|
return this.prepareDeltaResult(e), super.setResult(e);
|
|
8416
8420
|
}
|
|
8417
|
-
},
|
|
8421
|
+
}, Zp = class extends Yp {
|
|
8418
8422
|
constructor(e, t) {
|
|
8419
8423
|
super(), this.left = e, this.delta = t, this.pipe = "patch";
|
|
8420
8424
|
}
|
|
8421
|
-
},
|
|
8425
|
+
}, Qp = class extends Yp {
|
|
8422
8426
|
constructor(e) {
|
|
8423
8427
|
super(), this.delta = e, this.pipe = "reverse";
|
|
8424
8428
|
}
|
|
8425
|
-
},
|
|
8429
|
+
}, $p = class {
|
|
8426
8430
|
constructor(e) {
|
|
8427
8431
|
this.name = e, this.filters = [];
|
|
8428
8432
|
}
|
|
@@ -8486,7 +8490,7 @@ var qp = (e) => e[e.length - 1], Jp = class {
|
|
|
8486
8490
|
}
|
|
8487
8491
|
}), this);
|
|
8488
8492
|
}
|
|
8489
|
-
},
|
|
8493
|
+
}, em = class {
|
|
8490
8494
|
constructor(e) {
|
|
8491
8495
|
this.selfOptions = e || {}, this.pipes = {};
|
|
8492
8496
|
}
|
|
@@ -8513,7 +8517,7 @@ var qp = (e) => e[e.length - 1], Jp = class {
|
|
|
8513
8517
|
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);
|
|
8514
8518
|
return n.hasResult ? n.result : void 0;
|
|
8515
8519
|
}
|
|
8516
|
-
},
|
|
8520
|
+
}, tm = (e, t, n, r) => e[n] === t[r], nm = (e, t, n, r) => {
|
|
8517
8521
|
var i, a, o;
|
|
8518
8522
|
let s = e.length, c = t.length, l, u, d = Array(s + 1);
|
|
8519
8523
|
for (l = 0; l < s + 1; l++) {
|
|
@@ -8529,7 +8533,7 @@ var qp = (e) => e[e.length - 1], Jp = class {
|
|
|
8529
8533
|
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);
|
|
8530
8534
|
}
|
|
8531
8535
|
return d;
|
|
8532
|
-
},
|
|
8536
|
+
}, rm = (e, t, n, r) => {
|
|
8533
8537
|
let i = t.length, a = n.length, o = {
|
|
8534
8538
|
sequence: [],
|
|
8535
8539
|
indices1: [],
|
|
@@ -8551,11 +8555,11 @@ var qp = (e) => e[e.length - 1], Jp = class {
|
|
|
8551
8555
|
}
|
|
8552
8556
|
}
|
|
8553
8557
|
return o;
|
|
8554
|
-
},
|
|
8558
|
+
}, im = { get: (e, t, n, r) => {
|
|
8555
8559
|
let i = r || {};
|
|
8556
|
-
return nm(
|
|
8557
|
-
} },
|
|
8558
|
-
function
|
|
8560
|
+
return rm(nm(e, t, n || tm, i), e, t, i);
|
|
8561
|
+
} }, am = 3;
|
|
8562
|
+
function om(e, t, n, r) {
|
|
8559
8563
|
for (let i = 0; i < n; i++) {
|
|
8560
8564
|
let n = e[i];
|
|
8561
8565
|
for (let e = 0; e < r; e++) {
|
|
@@ -8565,7 +8569,7 @@ function am(e, t, n, r) {
|
|
|
8565
8569
|
}
|
|
8566
8570
|
return !1;
|
|
8567
8571
|
}
|
|
8568
|
-
function
|
|
8572
|
+
function sm(e, t, n, r, i) {
|
|
8569
8573
|
let a = e[n], o = t[r];
|
|
8570
8574
|
if (a === o) return !0;
|
|
8571
8575
|
if (typeof a != "object" || typeof o != "object") return !1;
|
|
@@ -8578,15 +8582,15 @@ function om(e, t, n, r, i) {
|
|
|
8578
8582
|
let l = i.hashCache2[r];
|
|
8579
8583
|
return l === void 0 && (i.hashCache2[r] = l = s(o, r)), l !== void 0 && c === l;
|
|
8580
8584
|
}
|
|
8581
|
-
var
|
|
8585
|
+
var cm = function(e) {
|
|
8582
8586
|
var t, n, r, i, a;
|
|
8583
8587
|
if (!e.leftIsArray) return;
|
|
8584
8588
|
let o = {
|
|
8585
8589
|
objectHash: (t = e.options) == null ? void 0 : t.objectHash,
|
|
8586
8590
|
matchByPosition: (n = e.options) == null ? void 0 : n.matchByPosition
|
|
8587
8591
|
}, s = 0, c = 0, l, u, d, f = e.left, p = e.right, m = f.length, h = p.length, g;
|
|
8588
|
-
for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !
|
|
8589
|
-
for (; c + s < m && c + s < h &&
|
|
8592
|
+
for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !om(f, p, m, h)); s < m && s < h && sm(f, p, s, s, o);) l = s, g = new Xp(f[l], p[l]), e.push(g, l), s++;
|
|
8593
|
+
for (; c + s < m && c + s < h && sm(f, p, m - 1 - c, h - 1 - c, o);) u = m - 1 - c, d = h - 1 - c, g = new Xp(f[u], p[d]), e.push(g, d), c++;
|
|
8590
8594
|
let _;
|
|
8591
8595
|
if (s + c === m) {
|
|
8592
8596
|
if (m === h) {
|
|
@@ -8610,7 +8614,7 @@ var sm = function(e) {
|
|
|
8610
8614
|
return;
|
|
8611
8615
|
}
|
|
8612
8616
|
o.hashCache1 = void 0, o.hashCache2 = void 0;
|
|
8613
|
-
let v = f.slice(s, m - c), y = p.slice(s, h - c), b =
|
|
8617
|
+
let v = f.slice(s, m - c), y = p.slice(s, h - c), b = im.get(v, y, sm, o), x = [];
|
|
8614
8618
|
for (_ = _ || { _t: "a" }, l = s; l < m - c; l++) if (b.indices1.indexOf(l - s) < 0) {
|
|
8615
8619
|
let t = `_${l}`;
|
|
8616
8620
|
_[t] = [
|
|
@@ -8631,8 +8635,8 @@ var sm = function(e) {
|
|
|
8631
8635
|
if (S && w > 0) for (let n = 0; n < w; n++) {
|
|
8632
8636
|
u = x[n];
|
|
8633
8637
|
let r = u === void 0 ? void 0 : _[`_${u}`];
|
|
8634
|
-
if (u !== void 0 && r &&
|
|
8635
|
-
r.splice(1, 2, l,
|
|
8638
|
+
if (u !== void 0 && r && sm(v, y, u - s, l - s, o)) {
|
|
8639
|
+
r.splice(1, 2, l, am), r.splice(1, 2, l, am), C || (r[0] = ""), d = l, g = new Xp(f[u], p[d]), e.push(g, d), x.splice(n, 1), t = !0;
|
|
8636
8640
|
break;
|
|
8637
8641
|
}
|
|
8638
8642
|
}
|
|
@@ -8640,20 +8644,20 @@ var sm = function(e) {
|
|
|
8640
8644
|
} else {
|
|
8641
8645
|
if (b.indices1[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices1: ${b.indices1}`);
|
|
8642
8646
|
if (u = b.indices1[t] + s, b.indices2[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices2: ${b.indices2}`);
|
|
8643
|
-
d = b.indices2[t] + s, g = new
|
|
8647
|
+
d = b.indices2[t] + s, g = new Xp(f[u], p[d]), e.push(g, d);
|
|
8644
8648
|
}
|
|
8645
8649
|
}
|
|
8646
8650
|
e.setResult(_).exit();
|
|
8647
8651
|
};
|
|
8648
|
-
|
|
8649
|
-
var
|
|
8652
|
+
cm.filterName = "arrays";
|
|
8653
|
+
var lm = {
|
|
8650
8654
|
numerically(e, t) {
|
|
8651
8655
|
return e - t;
|
|
8652
8656
|
},
|
|
8653
8657
|
numericallyBy(e) {
|
|
8654
8658
|
return (t, n) => t[e] - n[e];
|
|
8655
8659
|
}
|
|
8656
|
-
},
|
|
8660
|
+
}, um = function(e) {
|
|
8657
8661
|
var t;
|
|
8658
8662
|
if (!e.nested) return;
|
|
8659
8663
|
let n = e.delta;
|
|
@@ -8662,7 +8666,7 @@ var cm = {
|
|
|
8662
8666
|
for (r in a) if (r !== "_t") {
|
|
8663
8667
|
if (r[0] === "_") {
|
|
8664
8668
|
let e = r;
|
|
8665
|
-
if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] ===
|
|
8669
|
+
if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] === am)) s.push(Number.parseInt(r.slice(1), 10));
|
|
8666
8670
|
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]}`);
|
|
8667
8671
|
} else {
|
|
8668
8672
|
let e = r;
|
|
@@ -8675,15 +8679,15 @@ var cm = {
|
|
|
8675
8679
|
});
|
|
8676
8680
|
}
|
|
8677
8681
|
}
|
|
8678
|
-
for (s = s.sort(
|
|
8682
|
+
for (s = s.sort(lm.numerically), r = s.length - 1; r >= 0; r--) {
|
|
8679
8683
|
if (i = s[r], i === void 0) continue;
|
|
8680
8684
|
let e = a[`_${i}`], t = o.splice(i, 1)[0];
|
|
8681
|
-
(e == null ? void 0 : e[2]) ===
|
|
8685
|
+
(e == null ? void 0 : e[2]) === am && c.push({
|
|
8682
8686
|
index: e[1],
|
|
8683
8687
|
value: t
|
|
8684
8688
|
});
|
|
8685
8689
|
}
|
|
8686
|
-
c = c.sort(
|
|
8690
|
+
c = c.sort(lm.numericallyBy("index"));
|
|
8687
8691
|
let u = c.length;
|
|
8688
8692
|
for (r = 0; r < u; r++) {
|
|
8689
8693
|
let e = c[r];
|
|
@@ -8693,7 +8697,7 @@ var cm = {
|
|
|
8693
8697
|
if (d > 0) for (r = 0; r < d; r++) {
|
|
8694
8698
|
let t = l[r];
|
|
8695
8699
|
if (t === void 0) continue;
|
|
8696
|
-
let n = new
|
|
8700
|
+
let n = new Zp(o[t.index], t.delta);
|
|
8697
8701
|
e.push(n, t.index);
|
|
8698
8702
|
}
|
|
8699
8703
|
if (!e.children) {
|
|
@@ -8702,8 +8706,8 @@ var cm = {
|
|
|
8702
8706
|
}
|
|
8703
8707
|
e.exit();
|
|
8704
8708
|
};
|
|
8705
|
-
|
|
8706
|
-
var
|
|
8709
|
+
um.filterName = "arrays";
|
|
8710
|
+
var dm = function(e) {
|
|
8707
8711
|
if (!e || !e.children || e.delta._t !== "a") return;
|
|
8708
8712
|
let t = e.left, n = e.children.length;
|
|
8709
8713
|
for (let r = 0; r < n; r++) {
|
|
@@ -8714,16 +8718,16 @@ var um = function(e) {
|
|
|
8714
8718
|
}
|
|
8715
8719
|
e.setResult(t).exit();
|
|
8716
8720
|
};
|
|
8717
|
-
|
|
8718
|
-
var
|
|
8721
|
+
dm.filterName = "arraysCollectChildren";
|
|
8722
|
+
var fm = function(e) {
|
|
8719
8723
|
if (!e.nested) {
|
|
8720
8724
|
let t = e.delta;
|
|
8721
|
-
if (t[2] ===
|
|
8725
|
+
if (t[2] === am) {
|
|
8722
8726
|
let n = t;
|
|
8723
8727
|
e.newName = `_${n[1]}`, e.setResult([
|
|
8724
8728
|
n[0],
|
|
8725
8729
|
Number.parseInt(e.childName.substring(1), 10),
|
|
8726
|
-
|
|
8730
|
+
am
|
|
8727
8731
|
]).exit();
|
|
8728
8732
|
}
|
|
8729
8733
|
return;
|
|
@@ -8733,20 +8737,20 @@ var dm = function(e) {
|
|
|
8733
8737
|
let n = t;
|
|
8734
8738
|
for (let t in n) {
|
|
8735
8739
|
if (t === "_t") continue;
|
|
8736
|
-
let r = new
|
|
8740
|
+
let r = new Qp(n[t]);
|
|
8737
8741
|
e.push(r, t);
|
|
8738
8742
|
}
|
|
8739
8743
|
e.exit();
|
|
8740
8744
|
};
|
|
8741
|
-
|
|
8742
|
-
var
|
|
8745
|
+
fm.filterName = "arrays";
|
|
8746
|
+
var pm = (e, t, n) => {
|
|
8743
8747
|
if (typeof t == "string" && t[0] === "_") return Number.parseInt(t.substring(1), 10);
|
|
8744
8748
|
if (Array.isArray(n) && n[2] === 0) return `_${t}`;
|
|
8745
8749
|
let r = +t;
|
|
8746
8750
|
for (let n in e) {
|
|
8747
8751
|
let i = e[n];
|
|
8748
8752
|
if (Array.isArray(i)) {
|
|
8749
|
-
if (i[2] ===
|
|
8753
|
+
if (i[2] === am) {
|
|
8750
8754
|
let e = Number.parseInt(n.substring(1), 10), a = i[1];
|
|
8751
8755
|
if (a === +t) return e;
|
|
8752
8756
|
e <= r && a > r ? r++ : e >= r && a < r && r--;
|
|
@@ -8754,7 +8758,7 @@ var fm = (e, t, n) => {
|
|
|
8754
8758
|
}
|
|
8755
8759
|
}
|
|
8756
8760
|
return r;
|
|
8757
|
-
},
|
|
8761
|
+
}, mm = (e) => {
|
|
8758
8762
|
if (!e || !e.children) return;
|
|
8759
8763
|
let t = e.delta;
|
|
8760
8764
|
if (t._t !== "a") return;
|
|
@@ -8765,22 +8769,22 @@ var fm = (e, t, n) => {
|
|
|
8765
8769
|
let a = r.newName;
|
|
8766
8770
|
if (a === void 0) {
|
|
8767
8771
|
if (r.childName === void 0) throw Error("child.childName is undefined");
|
|
8768
|
-
a =
|
|
8772
|
+
a = pm(n, r.childName, r.result);
|
|
8769
8773
|
}
|
|
8770
8774
|
i[a] !== r.result && (i[a] = r.result);
|
|
8771
8775
|
}
|
|
8772
8776
|
e.setResult(i).exit();
|
|
8773
8777
|
};
|
|
8774
|
-
|
|
8778
|
+
mm.filterName = "arraysCollectChildren";
|
|
8775
8779
|
//#endregion
|
|
8776
8780
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/dates.js
|
|
8777
|
-
var
|
|
8781
|
+
var hm = function(e) {
|
|
8778
8782
|
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();
|
|
8779
8783
|
};
|
|
8780
|
-
|
|
8784
|
+
hm.filterName = "dates";
|
|
8781
8785
|
//#endregion
|
|
8782
8786
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/nested.js
|
|
8783
|
-
var
|
|
8787
|
+
var gm = /* @__PURE__ */ new Set(["__proto__"]), _m = (e) => {
|
|
8784
8788
|
if (!e || !e.children) return;
|
|
8785
8789
|
let t = e.children.length, n = e.result;
|
|
8786
8790
|
for (let r = 0; r < t; r++) {
|
|
@@ -8792,18 +8796,18 @@ var hm = /* @__PURE__ */ new Set(["__proto__"]), gm = (e) => {
|
|
|
8792
8796
|
}
|
|
8793
8797
|
n && e.leftIsArray && (n._t = "a"), e.setResult(n).exit();
|
|
8794
8798
|
};
|
|
8795
|
-
|
|
8796
|
-
var
|
|
8799
|
+
_m.filterName = "collectChildren";
|
|
8800
|
+
var vm = (e) => {
|
|
8797
8801
|
var t;
|
|
8798
8802
|
if (e.leftIsArray || e.leftType !== "object") return;
|
|
8799
8803
|
let n = e.left, r = e.right, i = (t = e.options) == null ? void 0 : t.propertyFilter;
|
|
8800
8804
|
for (let t in n) {
|
|
8801
8805
|
if (!Object.prototype.hasOwnProperty.call(n, t) || i && !i(t, e)) continue;
|
|
8802
|
-
let a = new
|
|
8806
|
+
let a = new Xp(n[t], r[t]);
|
|
8803
8807
|
e.push(a, t);
|
|
8804
8808
|
}
|
|
8805
8809
|
for (let t in r) if (Object.prototype.hasOwnProperty.call(r, t) && !(i && !i(t, e)) && n[t] === void 0) {
|
|
8806
|
-
let n = new
|
|
8810
|
+
let n = new Xp(void 0, r[t]);
|
|
8807
8811
|
e.push(n, t);
|
|
8808
8812
|
}
|
|
8809
8813
|
if (!e.children || e.children.length === 0) {
|
|
@@ -8812,15 +8816,15 @@ var _m = (e) => {
|
|
|
8812
8816
|
}
|
|
8813
8817
|
e.exit();
|
|
8814
8818
|
};
|
|
8815
|
-
|
|
8816
|
-
var
|
|
8819
|
+
vm.filterName = "objects";
|
|
8820
|
+
var ym = function(e) {
|
|
8817
8821
|
if (!e.nested) return;
|
|
8818
8822
|
let t = e.delta;
|
|
8819
8823
|
if (t._t) return;
|
|
8820
8824
|
let n = t, r = !1;
|
|
8821
8825
|
for (let t in n) {
|
|
8822
|
-
if (
|
|
8823
|
-
let i = e.left, a = new
|
|
8826
|
+
if (gm.has(t) || !Object.prototype.hasOwnProperty.call(n, t)) continue;
|
|
8827
|
+
let i = e.left, a = new Zp(typeof i == "object" && i && Object.prototype.hasOwnProperty.call(i, t) ? i[t] : void 0, n[t]);
|
|
8824
8828
|
e.push(a, t), r = !0;
|
|
8825
8829
|
}
|
|
8826
8830
|
if (!r) {
|
|
@@ -8829,8 +8833,8 @@ var vm = function(e) {
|
|
|
8829
8833
|
}
|
|
8830
8834
|
e.exit();
|
|
8831
8835
|
};
|
|
8832
|
-
|
|
8833
|
-
var
|
|
8836
|
+
ym.filterName = "objects";
|
|
8837
|
+
var bm = function(e) {
|
|
8834
8838
|
if (!e || !e.children || e.delta._t) return;
|
|
8835
8839
|
if (e.left === null || typeof e.left != "object") {
|
|
8836
8840
|
e.setResult(e.left).exit();
|
|
@@ -8841,17 +8845,17 @@ var ym = function(e) {
|
|
|
8841
8845
|
let n = e.children[r];
|
|
8842
8846
|
if (n === void 0) continue;
|
|
8843
8847
|
let i = n.childName;
|
|
8844
|
-
|
|
8848
|
+
gm.has(i) || (Object.prototype.hasOwnProperty.call(e.left, i) && n.result === void 0 ? delete t[i] : t[i] !== n.result && (t[i] = n.result));
|
|
8845
8849
|
}
|
|
8846
8850
|
e.setResult(t).exit();
|
|
8847
8851
|
};
|
|
8848
|
-
|
|
8849
|
-
var
|
|
8852
|
+
bm.filterName = "collectChildren";
|
|
8853
|
+
var xm = function(e) {
|
|
8850
8854
|
if (!e.nested || e.delta._t) return;
|
|
8851
8855
|
let t = e.delta, n = !1;
|
|
8852
8856
|
for (let r in t) {
|
|
8853
|
-
if (
|
|
8854
|
-
let i = new
|
|
8857
|
+
if (gm.has(r) || !Object.prototype.hasOwnProperty.call(t, r)) continue;
|
|
8858
|
+
let i = new Qp(t[r]);
|
|
8855
8859
|
e.push(i, r), n = !0;
|
|
8856
8860
|
}
|
|
8857
8861
|
if (!n) {
|
|
@@ -8860,25 +8864,25 @@ var bm = function(e) {
|
|
|
8860
8864
|
}
|
|
8861
8865
|
e.exit();
|
|
8862
8866
|
};
|
|
8863
|
-
|
|
8864
|
-
var
|
|
8867
|
+
xm.filterName = "objects";
|
|
8868
|
+
var Sm = (e) => {
|
|
8865
8869
|
if (!e || !e.children || e.delta._t) return;
|
|
8866
8870
|
let t = e.children.length, n = {};
|
|
8867
8871
|
for (let r = 0; r < t; r++) {
|
|
8868
8872
|
let t = e.children[r];
|
|
8869
8873
|
if (t === void 0) continue;
|
|
8870
8874
|
let i = t.childName;
|
|
8871
|
-
|
|
8875
|
+
gm.has(i) || n[i] !== t.result && (n[i] = t.result);
|
|
8872
8876
|
}
|
|
8873
8877
|
e.setResult(n).exit();
|
|
8874
8878
|
};
|
|
8875
|
-
|
|
8879
|
+
Sm.filterName = "collectChildren";
|
|
8876
8880
|
//#endregion
|
|
8877
8881
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/texts.js
|
|
8878
|
-
var
|
|
8879
|
-
function
|
|
8882
|
+
var Cm = 2, wm = 60, Tm = null;
|
|
8883
|
+
function Em(e, t) {
|
|
8880
8884
|
var n;
|
|
8881
|
-
if (!
|
|
8885
|
+
if (!Tm) {
|
|
8882
8886
|
let r;
|
|
8883
8887
|
if ((n = e == null ? void 0 : e.textDiff) != null && n.diffMatchPatch) r = new e.textDiff.diffMatchPatch();
|
|
8884
8888
|
else {
|
|
@@ -8886,7 +8890,7 @@ function Tm(e, t) {
|
|
|
8886
8890
|
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.");
|
|
8887
8891
|
throw e.diff_match_patch_not_found = !0, e;
|
|
8888
8892
|
}
|
|
8889
|
-
|
|
8893
|
+
Tm = {
|
|
8890
8894
|
diff: (e, t) => r.patch_toText(r.patch_make(e, t)),
|
|
8891
8895
|
patch: (e, t) => {
|
|
8892
8896
|
let n = r.patch_apply(r.patch_fromText(t), e);
|
|
@@ -8898,17 +8902,17 @@ function Tm(e, t) {
|
|
|
8898
8902
|
}
|
|
8899
8903
|
};
|
|
8900
8904
|
}
|
|
8901
|
-
return
|
|
8905
|
+
return Tm;
|
|
8902
8906
|
}
|
|
8903
|
-
var
|
|
8907
|
+
var Dm = function(e) {
|
|
8904
8908
|
var t, n;
|
|
8905
8909
|
if (e.leftType !== "string") return;
|
|
8906
|
-
let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) ||
|
|
8910
|
+
let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) || wm;
|
|
8907
8911
|
if (r.length < a || i.length < a) {
|
|
8908
8912
|
e.setResult([r, i]).exit();
|
|
8909
8913
|
return;
|
|
8910
8914
|
}
|
|
8911
|
-
let o =
|
|
8915
|
+
let o = Em(e.options);
|
|
8912
8916
|
if (!o) {
|
|
8913
8917
|
e.setResult([r, i]).exit();
|
|
8914
8918
|
return;
|
|
@@ -8917,19 +8921,19 @@ var Em = function(e) {
|
|
|
8917
8921
|
e.setResult([
|
|
8918
8922
|
s(r, i),
|
|
8919
8923
|
0,
|
|
8920
|
-
|
|
8924
|
+
Cm
|
|
8921
8925
|
]).exit();
|
|
8922
8926
|
};
|
|
8923
|
-
|
|
8924
|
-
var
|
|
8927
|
+
Dm.filterName = "texts";
|
|
8928
|
+
var Om = function(e) {
|
|
8925
8929
|
if (e.nested) return;
|
|
8926
8930
|
let t = e.delta;
|
|
8927
|
-
if (t[2] !==
|
|
8928
|
-
let n = t, r =
|
|
8931
|
+
if (t[2] !== Cm) return;
|
|
8932
|
+
let n = t, r = Em(e.options, !0).patch;
|
|
8929
8933
|
e.setResult(r(e.left, n[0])).exit();
|
|
8930
8934
|
};
|
|
8931
|
-
|
|
8932
|
-
var
|
|
8935
|
+
Om.filterName = "texts";
|
|
8936
|
+
var km = (e) => {
|
|
8933
8937
|
var t, n, r;
|
|
8934
8938
|
let i = /^@@ +-(\d+),(\d+) +\+(\d+),(\d+) +@@$/, a = e.split("\n");
|
|
8935
8939
|
for (let e = 0; e < a.length; e++) {
|
|
@@ -8950,21 +8954,21 @@ var Om = (e) => {
|
|
|
8950
8954
|
} else s === "-" && (a[e] = `+${(r = a[e]) == null ? void 0 : r.slice(1)}`);
|
|
8951
8955
|
}
|
|
8952
8956
|
return a.join("\n");
|
|
8953
|
-
},
|
|
8957
|
+
}, Am = function(e) {
|
|
8954
8958
|
if (e.nested) return;
|
|
8955
8959
|
let t = e.delta;
|
|
8956
|
-
if (t[2] !==
|
|
8960
|
+
if (t[2] !== Cm) return;
|
|
8957
8961
|
let n = t;
|
|
8958
8962
|
e.setResult([
|
|
8959
|
-
|
|
8963
|
+
km(n[0]),
|
|
8960
8964
|
0,
|
|
8961
|
-
|
|
8965
|
+
Cm
|
|
8962
8966
|
]).exit();
|
|
8963
8967
|
};
|
|
8964
|
-
|
|
8968
|
+
Am.filterName = "texts";
|
|
8965
8969
|
//#endregion
|
|
8966
8970
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/trivial.js
|
|
8967
|
-
var
|
|
8971
|
+
var jm = function(e) {
|
|
8968
8972
|
if (e.left === e.right) {
|
|
8969
8973
|
e.setResult(void 0).exit();
|
|
8970
8974
|
return;
|
|
@@ -8997,8 +9001,8 @@ var Am = function(e) {
|
|
|
8997
9001
|
}
|
|
8998
9002
|
e.left instanceof RegExp && (e.right instanceof RegExp ? e.setResult([e.left.toString(), e.right.toString()]).exit() : e.setResult([e.left, e.right]).exit());
|
|
8999
9003
|
};
|
|
9000
|
-
|
|
9001
|
-
var
|
|
9004
|
+
jm.filterName = "trivial";
|
|
9005
|
+
var Mm = function(e) {
|
|
9002
9006
|
if (e.delta === void 0) {
|
|
9003
9007
|
e.setResult(e.left).exit();
|
|
9004
9008
|
return;
|
|
@@ -9022,8 +9026,8 @@ var jm = function(e) {
|
|
|
9022
9026
|
}
|
|
9023
9027
|
t.length === 3 && t[2] === 0 && e.setResult(void 0).exit();
|
|
9024
9028
|
};
|
|
9025
|
-
|
|
9026
|
-
var
|
|
9029
|
+
Mm.filterName = "trivial";
|
|
9030
|
+
var Nm = function(e) {
|
|
9027
9031
|
if (e.delta === void 0) {
|
|
9028
9032
|
e.setResult(e.delta).exit();
|
|
9029
9033
|
return;
|
|
@@ -9044,36 +9048,36 @@ var Mm = function(e) {
|
|
|
9044
9048
|
}
|
|
9045
9049
|
t.length === 3 && t[2] === 0 && e.setResult([t[0]]).exit();
|
|
9046
9050
|
};
|
|
9047
|
-
|
|
9051
|
+
Nm.filterName = "trivial";
|
|
9048
9052
|
//#endregion
|
|
9049
9053
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/diffpatcher.js
|
|
9050
|
-
var
|
|
9054
|
+
var Pm = class {
|
|
9051
9055
|
constructor(e) {
|
|
9052
|
-
this.processor = new
|
|
9056
|
+
this.processor = new em(e), this.processor.pipe(new $p("diff").append(_m, jm, hm, Dm, vm, cm).shouldHaveResult()), this.processor.pipe(new $p("patch").append(bm, dm, Mm, Om, ym, um).shouldHaveResult()), this.processor.pipe(new $p("reverse").append(Sm, mm, Nm, Am, xm, fm).shouldHaveResult());
|
|
9053
9057
|
}
|
|
9054
9058
|
options(e) {
|
|
9055
9059
|
return this.processor.options(e);
|
|
9056
9060
|
}
|
|
9057
9061
|
diff(e, t) {
|
|
9058
|
-
return this.processor.process(new
|
|
9062
|
+
return this.processor.process(new Xp(e, t));
|
|
9059
9063
|
}
|
|
9060
9064
|
patch(e, t) {
|
|
9061
|
-
return this.processor.process(new
|
|
9065
|
+
return this.processor.process(new Zp(e, t));
|
|
9062
9066
|
}
|
|
9063
9067
|
reverse(e) {
|
|
9064
|
-
return this.processor.process(new
|
|
9068
|
+
return this.processor.process(new Qp(e));
|
|
9065
9069
|
}
|
|
9066
9070
|
unpatch(e, t) {
|
|
9067
9071
|
return this.patch(e, this.reverse(t));
|
|
9068
9072
|
}
|
|
9069
9073
|
clone(e) {
|
|
9070
|
-
return
|
|
9074
|
+
return Kp(e);
|
|
9071
9075
|
}
|
|
9072
9076
|
};
|
|
9073
9077
|
//#endregion
|
|
9074
9078
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/index.js
|
|
9075
|
-
function
|
|
9076
|
-
return new
|
|
9079
|
+
function Fm(e) {
|
|
9080
|
+
return new Pm(e);
|
|
9077
9081
|
}
|
|
9078
9082
|
//#endregion
|
|
9079
9083
|
//#region node_modules/.pnpm/@dmsnell+diff-match-patch@1.1.0/node_modules/@dmsnell/diff-match-patch/index.js
|
|
@@ -9635,46 +9639,46 @@ $.Diff = function(e, t) {
|
|
|
9635
9639
|
};
|
|
9636
9640
|
//#endregion
|
|
9637
9641
|
//#region src/components/audit-log/create-diff-patcher.tsx
|
|
9638
|
-
var
|
|
9642
|
+
var Im = (e = {}) => Fm({
|
|
9639
9643
|
...e,
|
|
9640
9644
|
textDiff: {
|
|
9641
9645
|
diffMatchPatch: $,
|
|
9642
9646
|
minLength: 120
|
|
9643
9647
|
},
|
|
9644
9648
|
cloneDiffValues: !0
|
|
9645
|
-
}),
|
|
9649
|
+
}), Lm = ["user", "unittemplate"], Rm = Im(), zm = (e, t, n) => {
|
|
9646
9650
|
let r = Object.fromEntries(e.map((e) => [e.sectionKey, e.sectionLabel]));
|
|
9647
9651
|
for (let e = t.length - 1; e >= 0; e--) {
|
|
9648
9652
|
let n = r[t[e]];
|
|
9649
9653
|
if (n) return n;
|
|
9650
9654
|
}
|
|
9651
9655
|
return n || "";
|
|
9652
|
-
},
|
|
9656
|
+
}, Bm = (e) => {
|
|
9653
9657
|
let t = (e) => gr(e) ? Or(e) : String(e);
|
|
9654
9658
|
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);
|
|
9655
|
-
},
|
|
9659
|
+
}, Vm = (e) => {
|
|
9656
9660
|
switch (e.length) {
|
|
9657
9661
|
case 1: {
|
|
9658
9662
|
let [t] = e;
|
|
9659
9663
|
return {
|
|
9660
9664
|
type: "created",
|
|
9661
9665
|
before: "",
|
|
9662
|
-
after:
|
|
9666
|
+
after: Bm(t)
|
|
9663
9667
|
};
|
|
9664
9668
|
}
|
|
9665
9669
|
case 2: {
|
|
9666
9670
|
let [t, n] = e;
|
|
9667
9671
|
return {
|
|
9668
9672
|
type: "modified",
|
|
9669
|
-
before:
|
|
9670
|
-
after:
|
|
9673
|
+
before: Bm(t),
|
|
9674
|
+
after: Bm(n)
|
|
9671
9675
|
};
|
|
9672
9676
|
}
|
|
9673
9677
|
case 3: {
|
|
9674
9678
|
let [t] = e;
|
|
9675
9679
|
return {
|
|
9676
9680
|
type: "deleted",
|
|
9677
|
-
before:
|
|
9681
|
+
before: Bm(t),
|
|
9678
9682
|
after: ""
|
|
9679
9683
|
};
|
|
9680
9684
|
}
|
|
@@ -9684,15 +9688,15 @@ var Fm = (e = {}) => Pm({
|
|
|
9684
9688
|
after: ""
|
|
9685
9689
|
};
|
|
9686
9690
|
}
|
|
9687
|
-
},
|
|
9688
|
-
let r =
|
|
9691
|
+
}, Hm = (e) => Array.isArray(e), Um = (e, t) => t ? Hm(t) ? t.length === 0 ? e : t.reduce((e, t) => Rm.unpatch(tn(e), tn(t)), tn(e)) : Rm.unpatch(tn(e), tn(t)) : e, Wm = (e) => e.createdAt || e.date, Gm = (e, t, n) => {
|
|
9692
|
+
let r = Wm(e);
|
|
9689
9693
|
if (!r) return {
|
|
9690
9694
|
oldJson: "",
|
|
9691
9695
|
newJson: "",
|
|
9692
9696
|
error: `Cannot create comparison view: missing date for audit log ${e.id}`
|
|
9693
9697
|
};
|
|
9694
9698
|
let i = t.filter((e) => {
|
|
9695
|
-
let t =
|
|
9699
|
+
let t = Wm(e);
|
|
9696
9700
|
return !!(e.diffs && t && t >= r);
|
|
9697
9701
|
}), a = Array.from({ length: i.length + 1 });
|
|
9698
9702
|
a[0] = tn(n);
|
|
@@ -9705,7 +9709,7 @@ var Fm = (e = {}) => Pm({
|
|
|
9705
9709
|
a[e + 1] = a[e];
|
|
9706
9710
|
continue;
|
|
9707
9711
|
}
|
|
9708
|
-
a[e + 1] =
|
|
9712
|
+
a[e + 1] = Um(a[e], t);
|
|
9709
9713
|
}
|
|
9710
9714
|
let e = i.length > 0 ? a[i.length - 1] : n, t = i.length > 0 ? a[i.length] : n;
|
|
9711
9715
|
o = JSON.stringify(t == null ? "" : t, null, 2), s = JSON.stringify(e == null ? "" : e, null, 2);
|
|
@@ -9720,10 +9724,10 @@ var Fm = (e = {}) => Pm({
|
|
|
9720
9724
|
oldJson: o,
|
|
9721
9725
|
newJson: s
|
|
9722
9726
|
};
|
|
9723
|
-
},
|
|
9727
|
+
}, Km = (e, t, n = {}, r = []) => {
|
|
9724
9728
|
var i;
|
|
9725
9729
|
if (!e) return;
|
|
9726
|
-
let a = [...
|
|
9730
|
+
let a = [...Lm, ...(i = n.hiddenKeys) == null ? [] : i];
|
|
9727
9731
|
Object.keys(e).forEach((i) => {
|
|
9728
9732
|
var o;
|
|
9729
9733
|
let s = e[i];
|
|
@@ -9736,12 +9740,12 @@ var Fm = (e = {}) => Pm({
|
|
|
9736
9740
|
sn(s) ? t.push({
|
|
9737
9741
|
deltaFormat: [...s],
|
|
9738
9742
|
path: c
|
|
9739
|
-
}) : hn(s) &&
|
|
9743
|
+
}) : hn(s) && Km(s, t, n, c);
|
|
9740
9744
|
});
|
|
9741
|
-
},
|
|
9745
|
+
}, qm = (e, t = {}) => {
|
|
9742
9746
|
let n = [];
|
|
9743
|
-
return e ? (
|
|
9744
|
-
},
|
|
9747
|
+
return e ? (Km(e, n, t), n) : [];
|
|
9748
|
+
}, Jm = (e) => e.replace(/\[\d+\]/g, "").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]/g, " ").replace(/\s+/g, " ").trim().replace(/^./, (e) => e.toUpperCase()), Ym = (e) => {
|
|
9745
9749
|
if (e == null || e === "") return "empty";
|
|
9746
9750
|
if (typeof e == "boolean") return e ? "true" : "false";
|
|
9747
9751
|
if (typeof e == "string") return e;
|
|
@@ -9752,35 +9756,35 @@ var Fm = (e = {}) => Pm({
|
|
|
9752
9756
|
} catch {
|
|
9753
9757
|
return String(e);
|
|
9754
9758
|
}
|
|
9755
|
-
},
|
|
9759
|
+
}, Xm = (e, t = e.length - 1) => {
|
|
9756
9760
|
if (t >= e.length) return "Value";
|
|
9757
9761
|
let n = e[t];
|
|
9758
|
-
return !n || pr(n) ?
|
|
9759
|
-
},
|
|
9760
|
-
let o =
|
|
9762
|
+
return !n || pr(n) ? Xm(e, t - 1) : Jm(n);
|
|
9763
|
+
}, Zm = ({ userName: e, type: t, property: n, before: r, after: i, sectionName: a }) => {
|
|
9764
|
+
let o = Ym(r), s = Ym(i), c = a ? ` in ${a}` : "";
|
|
9761
9765
|
switch (t) {
|
|
9762
9766
|
case "modified": return `${e} updated ${n} from ${o} to ${s}${c}.`;
|
|
9763
9767
|
case "created": return `${e} created ${s}${c}.`;
|
|
9764
9768
|
case "deleted": return `${e} deleted ${o}${c}.`;
|
|
9765
9769
|
default: return `${e} changed ${n}${c}.`;
|
|
9766
9770
|
}
|
|
9767
|
-
},
|
|
9771
|
+
}, Qm = ({ sectionNames: e, userName: t, diffs: n, defaultSectionName: r }) => {
|
|
9768
9772
|
let i = {
|
|
9769
9773
|
headers: [{ cells: [{ value: "Changes" }] }],
|
|
9770
9774
|
rows: n.map((n) => {
|
|
9771
|
-
let { deltaFormat: i, path: a } = n, o =
|
|
9772
|
-
return { cells: [{ value:
|
|
9775
|
+
let { deltaFormat: i, path: a } = n, o = zm(e, a, r), { type: s, before: c, after: l } = Vm(i);
|
|
9776
|
+
return { cells: [{ value: Zm({
|
|
9773
9777
|
userName: t,
|
|
9774
9778
|
type: s,
|
|
9775
|
-
property:
|
|
9779
|
+
property: Xm(a),
|
|
9776
9780
|
before: c,
|
|
9777
9781
|
after: l,
|
|
9778
9782
|
sectionName: o
|
|
9779
9783
|
}) }] };
|
|
9780
9784
|
})
|
|
9781
9785
|
};
|
|
9782
|
-
return /* @__PURE__ */ S(
|
|
9783
|
-
},
|
|
9786
|
+
return /* @__PURE__ */ S(iu, { table: i });
|
|
9787
|
+
}, $m = Object.freeze({
|
|
9784
9788
|
summary: {
|
|
9785
9789
|
label: "Summary",
|
|
9786
9790
|
value: "summary"
|
|
@@ -9789,13 +9793,13 @@ var Fm = (e = {}) => Pm({
|
|
|
9789
9793
|
label: "Compare",
|
|
9790
9794
|
value: "compare"
|
|
9791
9795
|
}
|
|
9792
|
-
}),
|
|
9793
|
-
let c = [
|
|
9796
|
+
}), eh = ({ auditLog: e, auditLogs: t, data: n, isOpen: r, transformDiffsConfig: i, sectionNames: a, defaultSectionName: o, onClose: s }) => {
|
|
9797
|
+
let c = [$m.summary, $m.compare].map(({ label: e, value: t }) => ({
|
|
9794
9798
|
label: e,
|
|
9795
9799
|
value: t
|
|
9796
9800
|
})), [l, u] = v(c[0]), { diffs: d = void 0 } = e || {};
|
|
9797
9801
|
if (!d) return null;
|
|
9798
|
-
let { oldJson: f, newJson: p, error: m } =
|
|
9802
|
+
let { oldJson: f, newJson: p, error: m } = Gm(e, t, n);
|
|
9799
9803
|
return /* @__PURE__ */ S(Ns, {
|
|
9800
9804
|
visible: r,
|
|
9801
9805
|
centered: !0,
|
|
@@ -9803,20 +9807,20 @@ var Fm = (e = {}) => Pm({
|
|
|
9803
9807
|
children: /* @__PURE__ */ S(ds, { dialog: {
|
|
9804
9808
|
scroll: !0,
|
|
9805
9809
|
heading: "Comparison view",
|
|
9806
|
-
content: /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(
|
|
9810
|
+
content: /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(Qf, {
|
|
9807
9811
|
name: "ViewTab",
|
|
9808
9812
|
onChange: (e) => u(c.find((t) => t.value === e.target.value)),
|
|
9809
9813
|
options: c,
|
|
9810
9814
|
value: l
|
|
9811
|
-
}), l.value === "summary" ? /* @__PURE__ */ S(
|
|
9815
|
+
}), l.value === "summary" ? /* @__PURE__ */ S(Qm, {
|
|
9812
9816
|
userName: e.userName,
|
|
9813
9817
|
sectionNames: a,
|
|
9814
|
-
diffs:
|
|
9818
|
+
diffs: qm(d, i),
|
|
9815
9819
|
defaultSectionName: o
|
|
9816
9820
|
}) : m ? /* @__PURE__ */ S("div", {
|
|
9817
9821
|
style: { padding: 16 },
|
|
9818
9822
|
children: m
|
|
9819
|
-
}) : /* @__PURE__ */ S(
|
|
9823
|
+
}) : /* @__PURE__ */ S(Up, {
|
|
9820
9824
|
oldJson: f,
|
|
9821
9825
|
newJson: p
|
|
9822
9826
|
})] }),
|
|
@@ -9829,7 +9833,7 @@ var Fm = (e = {}) => Pm({
|
|
|
9829
9833
|
height: "90vh"
|
|
9830
9834
|
} })
|
|
9831
9835
|
});
|
|
9832
|
-
},
|
|
9836
|
+
}, th = [
|
|
9833
9837
|
{
|
|
9834
9838
|
label: "10 / page",
|
|
9835
9839
|
value: 10
|
|
@@ -9842,8 +9846,8 @@ var Fm = (e = {}) => Pm({
|
|
|
9842
9846
|
label: "50 / page",
|
|
9843
9847
|
value: 50
|
|
9844
9848
|
}
|
|
9845
|
-
],
|
|
9846
|
-
let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s =
|
|
9849
|
+
], nh = (e, t = {}) => {
|
|
9850
|
+
let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s = qm(n, t).length, c = s ? `${s} change${s === 1 ? "" : "s"}` : "no field changes";
|
|
9847
9851
|
if (i === "API" && !r) return a === "Created" ? "Created through API" : "Changed through API";
|
|
9848
9852
|
switch (a) {
|
|
9849
9853
|
case "Created": return `Created by ${r}`;
|
|
@@ -9853,7 +9857,7 @@ var Fm = (e = {}) => Pm({
|
|
|
9853
9857
|
case "Updated": return `Updated by ${r} (${c})`;
|
|
9854
9858
|
default: return `Change by ${r}`;
|
|
9855
9859
|
}
|
|
9856
|
-
},
|
|
9860
|
+
}, rh = ({ 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 }) => {
|
|
9857
9861
|
let [g, _] = v(!1), [y, b] = v(null), w = (e) => {
|
|
9858
9862
|
if (e.snapshot) {
|
|
9859
9863
|
f == null || f(e.snapshot, e);
|
|
@@ -9872,7 +9876,7 @@ var Fm = (e = {}) => Pm({
|
|
|
9872
9876
|
return {
|
|
9873
9877
|
cells: [
|
|
9874
9878
|
{
|
|
9875
|
-
value: e.snapshot ? `Snapshot: ${e.snapshot}` :
|
|
9879
|
+
value: e.snapshot ? `Snapshot: ${e.snapshot}` : nh(e, l),
|
|
9876
9880
|
type: "Link",
|
|
9877
9881
|
disabled: n,
|
|
9878
9882
|
onClick: n ? void 0 : () => w(e),
|
|
@@ -9891,8 +9895,8 @@ var Fm = (e = {}) => Pm({
|
|
|
9891
9895
|
type: "Static"
|
|
9892
9896
|
},
|
|
9893
9897
|
{
|
|
9894
|
-
value:
|
|
9895
|
-
date:
|
|
9898
|
+
value: Wp({
|
|
9899
|
+
date: Wm(e),
|
|
9896
9900
|
showTime: !0
|
|
9897
9901
|
}),
|
|
9898
9902
|
type: "Static"
|
|
@@ -9902,12 +9906,12 @@ var Fm = (e = {}) => Pm({
|
|
|
9902
9906
|
};
|
|
9903
9907
|
});
|
|
9904
9908
|
return /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(Oo, {
|
|
9905
|
-
heading: /* @__PURE__ */ C(
|
|
9909
|
+
heading: /* @__PURE__ */ C(Sd, {
|
|
9906
9910
|
gap: !0,
|
|
9907
9911
|
wrap: !0,
|
|
9908
9912
|
children: [/* @__PURE__ */ S(cs, { children: "Changes" }), c.map((e) => {
|
|
9909
9913
|
var t;
|
|
9910
|
-
return /* @__PURE__ */ S(
|
|
9914
|
+
return /* @__PURE__ */ S(ed, {
|
|
9911
9915
|
small: (t = e.small) == null || t,
|
|
9912
9916
|
checked: e.checked,
|
|
9913
9917
|
onChange: e.onChange,
|
|
@@ -9917,11 +9921,11 @@ var Fm = (e = {}) => Pm({
|
|
|
9917
9921
|
})]
|
|
9918
9922
|
}),
|
|
9919
9923
|
padding: !1,
|
|
9920
|
-
children: r ? /* @__PURE__ */ S(
|
|
9924
|
+
children: r ? /* @__PURE__ */ S(zd, {
|
|
9921
9925
|
height: "100px",
|
|
9922
9926
|
theme: Fi.WHITE,
|
|
9923
9927
|
children: /* @__PURE__ */ S(Da, { dark: !0 })
|
|
9924
|
-
}) : /* @__PURE__ */ S(
|
|
9928
|
+
}) : /* @__PURE__ */ S(iu, { table: {
|
|
9925
9929
|
headers: T,
|
|
9926
9930
|
testId: "auditlog-table",
|
|
9927
9931
|
rows: E,
|
|
@@ -9935,14 +9939,14 @@ var Fm = (e = {}) => Pm({
|
|
|
9935
9939
|
onChange: (e) => {
|
|
9936
9940
|
u(Number(e.target.value));
|
|
9937
9941
|
},
|
|
9938
|
-
options:
|
|
9942
|
+
options: th,
|
|
9939
9943
|
value: a
|
|
9940
9944
|
},
|
|
9941
9945
|
onSelectPage: (e) => d(e),
|
|
9942
9946
|
small: !0
|
|
9943
9947
|
} }
|
|
9944
9948
|
} })
|
|
9945
|
-
}), g && y && y.diffs && /* @__PURE__ */ S(
|
|
9949
|
+
}), g && y && y.diffs && /* @__PURE__ */ S(eh, {
|
|
9946
9950
|
sectionNames: o,
|
|
9947
9951
|
isOpen: g,
|
|
9948
9952
|
onClose: () => _(!1),
|
|
@@ -9952,7 +9956,7 @@ var Fm = (e = {}) => Pm({
|
|
|
9952
9956
|
data: t,
|
|
9953
9957
|
transformDiffsConfig: l
|
|
9954
9958
|
})] });
|
|
9955
|
-
},
|
|
9959
|
+
}, ih = ({ pathName: e, moduleName: t, onNavigate: n, onStartTimingEvent: r }) => {
|
|
9956
9960
|
let i = window.location.href, a = _(i);
|
|
9957
9961
|
return d(() => {
|
|
9958
9962
|
a.current = i;
|
|
@@ -9975,20 +9979,20 @@ var Fm = (e = {}) => Pm({
|
|
|
9975
9979
|
});
|
|
9976
9980
|
};
|
|
9977
9981
|
}, [e, t]), null;
|
|
9978
|
-
},
|
|
9982
|
+
}, ah = {
|
|
9979
9983
|
errorBoundary: "_errorBoundary_hmco0_1",
|
|
9980
9984
|
sidebarErrorBoundary: "_sidebarErrorBoundary_hmco0_5",
|
|
9981
9985
|
rightSidebarErrorBoundary: "_rightSidebarErrorBoundary_hmco0_6"
|
|
9982
|
-
},
|
|
9983
|
-
let { ErrorComponent: t, isSideBar: n, isRightSideBar: r, isPage: i, style: a } = e == null ? {} : e, { translations: o } =
|
|
9986
|
+
}, oh = ({ options: e }) => {
|
|
9987
|
+
let { ErrorComponent: t, isSideBar: n, isRightSideBar: r, isPage: i, style: a } = e == null ? {} : e, { translations: o } = Mp();
|
|
9984
9988
|
if (t) return /* @__PURE__ */ S(t, {});
|
|
9985
9989
|
if (n || r) return /* @__PURE__ */ S("div", {
|
|
9986
|
-
className: b(n ?
|
|
9990
|
+
className: b(n ? ah.sidebarErrorBoundary : "", r ? ah.rightSidebarErrorBoundary : ""),
|
|
9987
9991
|
style: a,
|
|
9988
9992
|
children: o == null ? void 0 : o.unexpectedError
|
|
9989
9993
|
});
|
|
9990
9994
|
let s = /* @__PURE__ */ S("div", {
|
|
9991
|
-
className:
|
|
9995
|
+
className: ah.errorBoundary,
|
|
9992
9996
|
style: a,
|
|
9993
9997
|
children: /* @__PURE__ */ S($s, { message: {
|
|
9994
9998
|
icon: !0,
|
|
@@ -9998,24 +10002,24 @@ var Fm = (e = {}) => Pm({
|
|
|
9998
10002
|
width: "100%"
|
|
9999
10003
|
} })
|
|
10000
10004
|
});
|
|
10001
|
-
return i ? /* @__PURE__ */ S(
|
|
10005
|
+
return i ? /* @__PURE__ */ S(Jd, {
|
|
10002
10006
|
scroll: !1,
|
|
10003
10007
|
padding: 0,
|
|
10004
10008
|
children: s
|
|
10005
10009
|
}) : s;
|
|
10006
|
-
},
|
|
10007
|
-
fallback: /* @__PURE__ */ S(
|
|
10010
|
+
}, sh = ({ children: e, options: t }) => /* @__PURE__ */ S(ki.ErrorBoundary, {
|
|
10011
|
+
fallback: /* @__PURE__ */ S(oh, { options: t }),
|
|
10008
10012
|
onError: (e, t) => {
|
|
10009
10013
|
console.error("Error caught by boundary:", e, t);
|
|
10010
10014
|
},
|
|
10011
10015
|
children: e
|
|
10012
|
-
}),
|
|
10016
|
+
}), ch = (e, t = {}) => (n) => /* @__PURE__ */ S(sh, {
|
|
10013
10017
|
options: t,
|
|
10014
10018
|
children: /* @__PURE__ */ S(e, { ...n })
|
|
10015
|
-
}),
|
|
10016
|
-
|
|
10017
|
-
e ===
|
|
10019
|
+
}), lh = (e = {}) => (t) => ch(t, e), uh = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, dh = (e) => {
|
|
10020
|
+
Np(Op.LanguageKey, e.languageKey), Object.entries(e).forEach(([e, t]) => {
|
|
10021
|
+
e === Op.Translations ? Np(e, Ap(t)) : Np(e, uh(t) ? t : { ...t });
|
|
10018
10022
|
});
|
|
10019
10023
|
};
|
|
10020
10024
|
//#endregion
|
|
10021
|
-
export { ta as Accordion, wa as AccordionWithDefaultToggle, bo as Actions, Mi as Align,
|
|
10025
|
+
export { ta as Accordion, wa as AccordionWithDefaultToggle, bo as Actions, Mi as Align, rh as AuditLog, uo as Badge, wo as Breadcrumb, So as BreadcrumbLinkType, K as Button, Eo as ButtonGroup, Ni as ButtonPosition, Oa as ButtonType, Oo as Card, ba as CheckBox, Yi as Chevron, Qi as Collapse, ji as Color, Yo as ColorInput, Jo as ColorInputPopover, es as Column, ds as Dialog, Up as DiffViewer, W as DisabledContext, as as Divider, vs as Drawer, ap as ElementType, hu as Empty, sh as ErrorBoundary, Li as EventKey, xd as Field, _d as FileButton, Os as FileInput, Sd as Flex, wd as FormRow, Po as Grid, H as GroupOrder, cs as Heading, ya as HelpIcon, G as Icon, U as IconType, Cs as Input, xs as InputGroup, ul as InputGroupAddon, Ts as InputReaderMethods, Ii as InputType, yd as Label, Ld as List, Ed as ListHeading, Md as ListSubheading, zd as Loader, gf as Mention, vo as Menu, eo as MenuCarat, $a as MenuType, $s as Message, qs as MessageType, Ns as Modal, ac as NativeSelect, Cl as NumberInput, Kd as OptionDropdown, Jd as Page, dl as Pagination, dp as PopConfirm, Ao as Popover, Yd as Portal, Zd as PrintHeader, Is as ProgressBar, Qd as RadioButton, hf as RichTextInput, vf as Row, il as Select, zp as SettingField, Cf as SideBar, Tf as Skeleton, Nl as Slider, Vs as SmartUploadModal, ks as Spacer, Da as Spinner, iu as Table, gd as TableImportExport, Qf as Tabs, rs as Text, tp as TextArea, $f as TextLink, Pi as TextTransform, Fi as Theme, ci as Toaster, ed as Toggle, ga as Tooltip, cp as TopBar, hp as Tree, Dp as TreeTable, Ai as TriggerType, Gf as UnitInput, Yf as UnitSlider, Lp as UnitTable, ih as UsageTracker, Zu as dismissToast, Hf as initializeContext, dh as initializeGuiLibrary, Es as readFile, Xu as toast, uc as useFocus, As as useKeyboardEvent, pc as useWindowWidth, lh as withChainableErrorBoundary, ch as withErrorBoundary };
|