@oliasoft-open-source/react-ui-library 10.0.0-beta-52 → 10.0.1-beta-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +6 -1
- package/dist/index.js +557 -557
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4939,7 +4939,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4939
4939
|
r.onload = () => t(String(r.result)), r.onerror = n, r.readAsText(e);
|
|
4940
4940
|
}), Pu = async (e, t, n) => {
|
|
4941
4941
|
try {
|
|
4942
|
-
return
|
|
4942
|
+
return Uu({
|
|
4943
4943
|
data: JSON.parse(e),
|
|
4944
4944
|
errors: []
|
|
4945
4945
|
}, t, n);
|
|
@@ -4957,7 +4957,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4957
4957
|
"m",
|
|
4958
4958
|
"deg",
|
|
4959
4959
|
"deg"
|
|
4960
|
-
]),
|
|
4960
|
+
]), Uu({
|
|
4961
4961
|
data: r,
|
|
4962
4962
|
errors: []
|
|
4963
4963
|
}, t, n);
|
|
@@ -4969,7 +4969,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4969
4969
|
...Du,
|
|
4970
4970
|
preview: t,
|
|
4971
4971
|
complete: (e) => {
|
|
4972
|
-
let a =
|
|
4972
|
+
let a = Uu(e, {
|
|
4973
4973
|
importLimit: t,
|
|
4974
4974
|
...n
|
|
4975
4975
|
}, r);
|
|
@@ -4991,10 +4991,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4991
4991
|
} catch (e) {
|
|
4992
4992
|
return r.errors.push(e.message), r;
|
|
4993
4993
|
}
|
|
4994
|
-
}, Bu = (e, t, n, r) => {
|
|
4994
|
+
}, Bu = (e) => Array.isArray(e[0]) ? e : [e], Vu = (e) => Math.max(0, ...Bu(e).map((e) => e.length)), Hu = (e, t, n, r) => {
|
|
4995
4995
|
var i;
|
|
4996
4996
|
let a = (i = r == null ? void 0 : r.delimiter) == null ? "," : i, o = [
|
|
4997
|
-
e,
|
|
4997
|
+
...Bu(e),
|
|
4998
4998
|
t,
|
|
4999
4999
|
...n
|
|
5000
5000
|
].filter(Boolean);
|
|
@@ -5003,7 +5003,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5003
5003
|
header: !0,
|
|
5004
5004
|
delimiter: a
|
|
5005
5005
|
});
|
|
5006
|
-
},
|
|
5006
|
+
}, Uu = (e, t, n) => {
|
|
5007
5007
|
let { data: r, errors: i } = e, a = {
|
|
5008
5008
|
isValid: !1,
|
|
5009
5009
|
fields: [],
|
|
@@ -5020,14 +5020,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5020
5020
|
a.errors.push(...t), a.isValid = e && t.length === 0;
|
|
5021
5021
|
} else a.isValid = a.errors.length === 0;
|
|
5022
5022
|
return a;
|
|
5023
|
-
},
|
|
5023
|
+
}, Wu = .001, Gu = 0, Ku = (e, t) => e.every((e) => {
|
|
5024
5024
|
let n = e[t];
|
|
5025
5025
|
return n !== void 0 && n.trim() !== "" && dn(Tr(n));
|
|
5026
|
-
}),
|
|
5026
|
+
}), qu = (e, t = {}) => {
|
|
5027
5027
|
var n, r;
|
|
5028
|
-
let { independentColumnIndex: i =
|
|
5029
|
-
if (e.length <= 2 || !
|
|
5030
|
-
let s = (n = (r = ti(e, (e) => e.length)) == null ? void 0 : r.length) == null ? 0 : n, c = ri(a == null ? ni(s) : a).filter((t) => t !== i &&
|
|
5028
|
+
let { independentColumnIndex: i = Gu, dependentColumnIndexes: a, tolerance: o = Wu } = t;
|
|
5029
|
+
if (e.length <= 2 || !Ku(e, i)) return e.slice();
|
|
5030
|
+
let s = (n = (r = ti(e, (e) => e.length)) == null ? void 0 : r.length) == null ? 0 : n, c = ri(a == null ? ni(s) : a).filter((t) => t !== i && Ku(e, t));
|
|
5031
5031
|
if (c.length === 0) return e.slice();
|
|
5032
5032
|
let l = /* @__PURE__ */ new Set();
|
|
5033
5033
|
for (let t of c) {
|
|
@@ -5041,7 +5041,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5041
5041
|
}
|
|
5042
5042
|
}
|
|
5043
5043
|
return e.filter((e, t) => l.has(t));
|
|
5044
|
-
},
|
|
5044
|
+
}, Ju = ({ id: e, message: t = {
|
|
5045
5045
|
type: zs.INFO,
|
|
5046
5046
|
content: ""
|
|
5047
5047
|
}, autoClose: n = 6e3, onClose: r }) => {
|
|
@@ -5082,13 +5082,13 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5082
5082
|
transition: ii,
|
|
5083
5083
|
type: s
|
|
5084
5084
|
});
|
|
5085
|
-
},
|
|
5085
|
+
}, Yu = (e) => {
|
|
5086
5086
|
oi.dismiss(e);
|
|
5087
|
-
},
|
|
5087
|
+
}, Xu = (e, t) => {
|
|
5088
5088
|
t(() => {
|
|
5089
|
-
|
|
5089
|
+
Ju({ ...e });
|
|
5090
5090
|
});
|
|
5091
|
-
},
|
|
5091
|
+
}, Zu = {
|
|
5092
5092
|
inputInTable: "_inputInTable_h6wco_1",
|
|
5093
5093
|
inputHover: "_inputHover_h6wco_13",
|
|
5094
5094
|
inputFocus: "_inputFocus_h6wco_18",
|
|
@@ -5104,7 +5104,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5104
5104
|
control: "_control_h6wco_25",
|
|
5105
5105
|
labelText: "_labelText_h6wco_137",
|
|
5106
5106
|
noMargin: "_noMargin_h6wco_201"
|
|
5107
|
-
},
|
|
5107
|
+
}, Qu = ({ name: e, label: t, checked: n = !1, disabled: r, display: i, small: a = !1, onChange: o, noMargin: s = !1, testId: c, helpText: l, onClickHelp: d, textTransform: f = ji.CAPITALIZE }) => {
|
|
5108
5108
|
let p = u(W), m = l || d;
|
|
5109
5109
|
return /* @__PURE__ */ C(ci, {
|
|
5110
5110
|
name: e,
|
|
@@ -5117,14 +5117,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5117
5117
|
value: t
|
|
5118
5118
|
} });
|
|
5119
5119
|
},
|
|
5120
|
-
className: b(
|
|
5120
|
+
className: b(Zu.toggleContainer, s && Zu.noMargin),
|
|
5121
5121
|
style: { display: i },
|
|
5122
5122
|
"data-testid": c ? `${c}-field` : void 0,
|
|
5123
5123
|
children: [/* @__PURE__ */ C(si, {
|
|
5124
|
-
className: b(
|
|
5124
|
+
className: b(Zu.toggle, a && Zu.small, !t && Zu.noLabel),
|
|
5125
5125
|
"data-testid": c,
|
|
5126
|
-
children: [/* @__PURE__ */ S("span", { className:
|
|
5127
|
-
className:
|
|
5126
|
+
children: [/* @__PURE__ */ S("span", { className: Zu.control }), t && /* @__PURE__ */ S("span", {
|
|
5127
|
+
className: Zu.labelText,
|
|
5128
5128
|
style: { textTransform: f },
|
|
5129
5129
|
children: t
|
|
5130
5130
|
})]
|
|
@@ -5133,7 +5133,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5133
5133
|
onClick: d
|
|
5134
5134
|
})]
|
|
5135
5135
|
});
|
|
5136
|
-
},
|
|
5136
|
+
}, $u = ({ config: e, state: t, updateState: n, setModalVisibility: r, onCloseModal: i, readAndParseInput: a, validationRules: o = [], onCompleteImport: s = () => {}, prevalidationConfig: c, t: u, loading: d, startTransition: f, testId: p }) => {
|
|
5137
5137
|
let { modalVisibility: { reviewPasteModal: m, pasteModalHelpVisible: h, helpModal: g } } = t, { warningMessage: y, actionButtonLabel: b, changeRulesAction: w, checkPrevalidationNeed: T } = c == null ? {} : c, E = _(null), [D, O] = v(!1), [k, A] = v({
|
|
5138
5138
|
pastedText: "",
|
|
5139
5139
|
parsedResult: {
|
|
@@ -5154,10 +5154,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5154
5154
|
let { pastedText: j, parsedResult: M } = k, N = l((t) => {
|
|
5155
5155
|
if (t) {
|
|
5156
5156
|
var n, r;
|
|
5157
|
-
let t =
|
|
5157
|
+
let t = qu(M.rows, e.downsampleConfig), i = {
|
|
5158
5158
|
validationRules: o,
|
|
5159
5159
|
importLimit: (n = e.importLimit) == null ? nu : n
|
|
5160
|
-
}, a =
|
|
5160
|
+
}, a = Hu(M.fields, (r = M.units) == null ? [] : r, t, i);
|
|
5161
5161
|
f(() => A({
|
|
5162
5162
|
parsedResult: {
|
|
5163
5163
|
...M,
|
|
@@ -5190,7 +5190,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5190
5190
|
}, F = () => {
|
|
5191
5191
|
r("helpModal", !g);
|
|
5192
5192
|
}, I = () => {
|
|
5193
|
-
n(k), s(k.parsedResult), i(),
|
|
5193
|
+
n(k), s(k.parsedResult), i(), Xu({ message: {
|
|
5194
5194
|
type: "Success",
|
|
5195
5195
|
content: u("pasteSuccessful")
|
|
5196
5196
|
} }, f);
|
|
@@ -5200,7 +5200,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5200
5200
|
children: [
|
|
5201
5201
|
/* @__PURE__ */ S(K, {
|
|
5202
5202
|
text: u("downsampleTooltip"),
|
|
5203
|
-
children: /* @__PURE__ */ S(
|
|
5203
|
+
children: /* @__PURE__ */ S(Qu, {
|
|
5204
5204
|
label: u("downsampled"),
|
|
5205
5205
|
checked: D,
|
|
5206
5206
|
onChange: () => N(!D),
|
|
@@ -5335,7 +5335,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5335
5335
|
onClose: i
|
|
5336
5336
|
} })
|
|
5337
5337
|
});
|
|
5338
|
-
},
|
|
5338
|
+
}, ed = ({ modals: e = [], modalVisibility: t, onCloseModal: r, testId: i }) => e.length ? /* @__PURE__ */ S(x, { children: e.map(({ name: e, component: a, props: o = {} }) => {
|
|
5339
5339
|
var s;
|
|
5340
5340
|
return /* @__PURE__ */ S(n, { children: /* @__PURE__ */ S(a, {
|
|
5341
5341
|
testId: `${i}-modal-render-${e}`,
|
|
@@ -5343,7 +5343,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5343
5343
|
onClose: () => r({ name: e }),
|
|
5344
5344
|
...o
|
|
5345
5345
|
}) }, e);
|
|
5346
|
-
}) }) : null,
|
|
5346
|
+
}) }) : null, td = ({ sections: e, iconName: t, testId: n, tooltip: r }) => /* @__PURE__ */ S(lo, {
|
|
5347
5347
|
loading: !0,
|
|
5348
5348
|
menu: {
|
|
5349
5349
|
component: /* @__PURE__ */ S(q, {
|
|
@@ -5359,18 +5359,18 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5359
5359
|
sections: e
|
|
5360
5360
|
},
|
|
5361
5361
|
testId: n
|
|
5362
|
-
}),
|
|
5362
|
+
}), nd = (e, t, n) => l(async () => {
|
|
5363
5363
|
if (n) try {
|
|
5364
5364
|
return await n();
|
|
5365
5365
|
} catch (t) {
|
|
5366
|
-
console.error("beforeExportData failed", t),
|
|
5366
|
+
console.error("beforeExportData failed", t), Ju({ message: {
|
|
5367
5367
|
type: "Error",
|
|
5368
5368
|
content: e("unableToPrepareExportData")
|
|
5369
5369
|
} });
|
|
5370
5370
|
return;
|
|
5371
5371
|
}
|
|
5372
5372
|
return t;
|
|
5373
|
-
}, [t, n]),
|
|
5373
|
+
}, [t, n]), rd = {
|
|
5374
5374
|
cancel: "Cancel",
|
|
5375
5375
|
chooseFile: "Choose file",
|
|
5376
5376
|
copyDecimalComma: "Copy (decimal comma)",
|
|
@@ -5429,26 +5429,26 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5429
5429
|
smartUpload_description: "Upload image and extract table content using a LLM",
|
|
5430
5430
|
smartUpload_smartUpload: "Smart Upload",
|
|
5431
5431
|
toUploadOrImportFromClipboardMessage: "To upload or import from clipboard please select your preferred unit in the table header and upload or paste numbers only for Depth, Inc, Azi. Follow example below"
|
|
5432
|
-
},
|
|
5433
|
-
let t = Object.keys(
|
|
5434
|
-
let r =
|
|
5432
|
+
}, id = (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])), ad = (e) => h(() => {
|
|
5433
|
+
let t = Object.keys(rd).reduce((t, n) => {
|
|
5434
|
+
let r = rd == null ? void 0 : rd[n], i = e == null ? void 0 : e[n];
|
|
5435
5435
|
return t[n] = i == null ? r : i, t;
|
|
5436
5436
|
}, {});
|
|
5437
5437
|
return (e, n) => {
|
|
5438
5438
|
let r = t[e];
|
|
5439
|
-
return n ?
|
|
5439
|
+
return n ? id(r, n) : r;
|
|
5440
5440
|
};
|
|
5441
|
-
}, [e]),
|
|
5441
|
+
}, [e]), od = /^\s*-?\d+(?:[.,]\d+)?(?:e[+-]?\d+)?\s*$/i, sd = (e) => {
|
|
5442
5442
|
var t;
|
|
5443
5443
|
return {
|
|
5444
5444
|
...e,
|
|
5445
5445
|
rows: e == null || (t = e.rows) == null ? void 0 : t.map((e) => e.map((e) => {
|
|
5446
5446
|
let t = String(e == null ? "" : e);
|
|
5447
|
-
return
|
|
5447
|
+
return od.test(t) ? sr(t) : t;
|
|
5448
5448
|
}))
|
|
5449
5449
|
};
|
|
5450
|
-
},
|
|
5451
|
-
let { exportData: a, beforeExportData: o, importLimit: s = nu, validationRules: c = [], translations: u, onImportComplete: d = () => {}, disablePasteSuccessfulToast: f, prevalidationConfig: p, onDeleteRows: m } = e == null ? {} : e, { parsedResult: h } = t, { checkPrevalidationNeed: g } = p == null ? {} : p, _ =
|
|
5450
|
+
}, cd = ({ config: e, state: t, setState: n, smartUploadConfig: r, startTransition: i }) => {
|
|
5451
|
+
let { exportData: a, beforeExportData: o, importLimit: s = nu, validationRules: c = [], translations: u, onImportComplete: d = () => {}, disablePasteSuccessfulToast: f, prevalidationConfig: p, onDeleteRows: m } = e == null ? {} : e, { parsedResult: h } = t, { checkPrevalidationNeed: g } = p == null ? {} : p, _ = ad(u), v = nd(_, a, o), y = l((e) => {
|
|
5452
5452
|
n((t) => ({
|
|
5453
5453
|
...t,
|
|
5454
5454
|
...e
|
|
@@ -5492,9 +5492,9 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5492
5492
|
let t = {
|
|
5493
5493
|
validationRules: c,
|
|
5494
5494
|
importLimit: s
|
|
5495
|
-
}, n =
|
|
5495
|
+
}, n = sd(await zu(e, t, _));
|
|
5496
5496
|
if (g && g(h)) {
|
|
5497
|
-
let { fields: e, units: r, rows: a } = n, o =
|
|
5497
|
+
let { fields: e, units: r, rows: a } = n, o = Hu(e, r == null ? [] : r, a, t);
|
|
5498
5498
|
return i(() => y({
|
|
5499
5499
|
pastedText: o,
|
|
5500
5500
|
parsedResult: h
|
|
@@ -5520,20 +5520,20 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5520
5520
|
let { fromFile: t, showSuccessToast: n = !0 } = e == null ? {} : e, r;
|
|
5521
5521
|
try {
|
|
5522
5522
|
if (r = t ? await t.text() : await navigator.clipboard.readText(), !r) {
|
|
5523
|
-
|
|
5523
|
+
Xu({ message: {
|
|
5524
5524
|
type: "Error",
|
|
5525
5525
|
content: _(t ? "fileReadOrParseFailed" : "clipboardReadNotAllowed")
|
|
5526
5526
|
} }, i);
|
|
5527
5527
|
return;
|
|
5528
5528
|
}
|
|
5529
|
-
let e =
|
|
5529
|
+
let e = sd(await zu(r, {
|
|
5530
5530
|
validationRules: c,
|
|
5531
5531
|
importLimit: s
|
|
5532
5532
|
}, _));
|
|
5533
|
-
return e != null && e.isValid ||
|
|
5533
|
+
return e != null && e.isValid || Xu({ message: {
|
|
5534
5534
|
type: "Error",
|
|
5535
5535
|
content: _("clipboardReadFailed")
|
|
5536
|
-
} }, i), n &&
|
|
5536
|
+
} }, i), n && Xu({ message: {
|
|
5537
5537
|
type: "Success",
|
|
5538
5538
|
content: _("pasteSuccessful")
|
|
5539
5539
|
} }, i), {
|
|
@@ -5541,7 +5541,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5541
5541
|
parsedResult: e
|
|
5542
5542
|
};
|
|
5543
5543
|
} catch (e) {
|
|
5544
|
-
|
|
5544
|
+
Xu({ message: {
|
|
5545
5545
|
type: "Error",
|
|
5546
5546
|
content: _(t ? "fileReadOrParseFailed" : "clipboardReadNotAllowed"),
|
|
5547
5547
|
details: e.message
|
|
@@ -5554,10 +5554,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5554
5554
|
let n = e == null || (t = e.target) == null || (t = t.files) == null ? void 0 : t[0];
|
|
5555
5555
|
if (!n) return;
|
|
5556
5556
|
let r = await n.text(), a = await C(r);
|
|
5557
|
-
a.isValid ? (f ||
|
|
5557
|
+
a.isValid ? (f || Xu({ message: {
|
|
5558
5558
|
type: "Success",
|
|
5559
5559
|
content: _("pasteSuccessful")
|
|
5560
|
-
} }, i), i(() => d(a))) :
|
|
5560
|
+
} }, i), i(() => d(a))) : Xu({ message: {
|
|
5561
5561
|
type: "Error",
|
|
5562
5562
|
content: _("fileParsingFailed")
|
|
5563
5563
|
} }, i);
|
|
@@ -5571,7 +5571,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5571
5571
|
try {
|
|
5572
5572
|
let t = await navigator.clipboard.readText();
|
|
5573
5573
|
if (!t) {
|
|
5574
|
-
|
|
5574
|
+
Xu({ message: {
|
|
5575
5575
|
type: "Error",
|
|
5576
5576
|
content: _("clipboardIsEmpty")
|
|
5577
5577
|
} }, i);
|
|
@@ -5579,18 +5579,18 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5579
5579
|
}
|
|
5580
5580
|
let n = await C(t);
|
|
5581
5581
|
if (!n.isValid) {
|
|
5582
|
-
|
|
5582
|
+
Xu({ message: {
|
|
5583
5583
|
type: "Error",
|
|
5584
5584
|
content: _("clipboardReadFailed")
|
|
5585
5585
|
} }, i);
|
|
5586
5586
|
return;
|
|
5587
5587
|
}
|
|
5588
|
-
f ||
|
|
5588
|
+
f || Xu({ message: {
|
|
5589
5589
|
type: "Success",
|
|
5590
5590
|
content: _("pasteSuccessful")
|
|
5591
5591
|
} }, i), e && i(() => d(n));
|
|
5592
5592
|
} catch {
|
|
5593
|
-
|
|
5593
|
+
Xu({ message: {
|
|
5594
5594
|
type: "Error",
|
|
5595
5595
|
content: _("clipboardReadNotAllowed")
|
|
5596
5596
|
} }, i);
|
|
@@ -5605,14 +5605,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5605
5605
|
onClickCopyClipboard: l(async (e) => {
|
|
5606
5606
|
let t = await v();
|
|
5607
5607
|
if (!t) return;
|
|
5608
|
-
let { fields: n = [], units: r = [], rows: a = [] } = t, o = (r == null ? [] : r).map((e) => e != null && e.length ? e : tu).slice(0, n
|
|
5608
|
+
let { fields: n = [], units: r = [], rows: a = [] } = t, o = (r == null ? [] : r).map((e) => e != null && e.length ? e : tu).slice(0, Vu(n)), s = (e, t) => t === "comma" ? e.replace(/\./g, ",") : e, c = Hu(n, o, a.map((t) => t.map((t) => ei(t) ? "" : s(t.toString(), e))), { delimiter: " " });
|
|
5609
5609
|
try {
|
|
5610
|
-
await navigator.clipboard.writeText(c),
|
|
5610
|
+
await navigator.clipboard.writeText(c), Xu({ message: {
|
|
5611
5611
|
type: "Success",
|
|
5612
5612
|
content: _("copiedToClipboard")
|
|
5613
5613
|
} }, i);
|
|
5614
5614
|
} catch (e) {
|
|
5615
|
-
|
|
5615
|
+
Xu({ message: {
|
|
5616
5616
|
type: "Error",
|
|
5617
5617
|
content: _("unableToCopyToClipboard"),
|
|
5618
5618
|
details: e.message
|
|
@@ -5622,14 +5622,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5622
5622
|
onSmartUploadResult: l((e) => {
|
|
5623
5623
|
let t = gn(e) && _n(e.errorMessage) ? e.errorMessage : void 0;
|
|
5624
5624
|
if (t) {
|
|
5625
|
-
|
|
5625
|
+
Xu({ message: {
|
|
5626
5626
|
type: "Error",
|
|
5627
5627
|
content: t || "Smart upload failed."
|
|
5628
5628
|
} }, i);
|
|
5629
5629
|
return;
|
|
5630
5630
|
}
|
|
5631
5631
|
if (!sn(e) || e.length < 2 || !an(e, (e) => gn(e) && an(wn(e), _n))) {
|
|
5632
|
-
|
|
5632
|
+
Xu({ message: {
|
|
5633
5633
|
type: "Error",
|
|
5634
5634
|
content: "Smart upload returned unexpected format.",
|
|
5635
5635
|
details: JSON.stringify(e)
|
|
@@ -5661,14 +5661,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5661
5661
|
]),
|
|
5662
5662
|
deleteAllRows: x
|
|
5663
5663
|
};
|
|
5664
|
-
},
|
|
5664
|
+
}, ld = (e, t) => {
|
|
5665
5665
|
var n, r;
|
|
5666
|
-
let { fields: i, rows: a } = e, o =
|
|
5666
|
+
let { fields: i, rows: a } = e, o = Hu(i, (n = (r = e.units) == null ? void 0 : r.map((e) => e || "blank")) == null ? [] : n, a, { delimiter: " " }), s = new Blob([o], { type: "text/plain" }), c = document.createElement("a");
|
|
5667
5667
|
c.href = window.URL.createObjectURL(s), c.download = `${t}.csv`, document.body.appendChild(c), c.click(), document.body.removeChild(c);
|
|
5668
|
-
},
|
|
5668
|
+
}, ud = (e) => hn(e) && "modalKey" in e, dd = (e, t, n) => nn(e, (e) => {
|
|
5669
5669
|
if (sn(e) || !gn(e)) return;
|
|
5670
5670
|
let { modalKey: r } = e == null ? {} : e;
|
|
5671
|
-
if (
|
|
5671
|
+
if (ud(e) && typeof e.onClick != "function") {
|
|
5672
5672
|
let i = () => {
|
|
5673
5673
|
var e;
|
|
5674
5674
|
n(r, !((e = t.modalVisibility) != null && e[r]));
|
|
@@ -5678,7 +5678,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5678
5678
|
onClick: i
|
|
5679
5679
|
};
|
|
5680
5680
|
}
|
|
5681
|
-
}),
|
|
5681
|
+
}), fd = (e, t, n) => dd(e, t, n), pd = {
|
|
5682
5682
|
pastedText: "",
|
|
5683
5683
|
parsedResult: {
|
|
5684
5684
|
isValid: !1,
|
|
@@ -5693,9 +5693,9 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5693
5693
|
reviewPasteModal: !1,
|
|
5694
5694
|
helpModal: !1
|
|
5695
5695
|
}
|
|
5696
|
-
},
|
|
5696
|
+
}, md = ({ config: e, smartUploadConfig: t, testId: n }) => {
|
|
5697
5697
|
var r, i, a, o;
|
|
5698
|
-
let { exportData: s, beforeExportData: c, prevalidationConfig: l, validationRules: u, title: d, translations: f, textOnly: p = !1, showImportOptions: m = !0, copyFromClipBoard: h = !0, showDeleteOptions: g = !0, showHelpOption: _ = !0, showUploadFileOption: b = !0, modals: x = [], dynamicOptions: w, onImportComplete: T } = e == null ? {} : e, [E, D] = v(
|
|
5698
|
+
let { exportData: s, beforeExportData: c, prevalidationConfig: l, validationRules: u, title: d, translations: f, textOnly: p = !1, showImportOptions: m = !0, copyFromClipBoard: h = !0, showDeleteOptions: g = !0, showHelpOption: _ = !0, showUploadFileOption: b = !0, modals: x = [], dynamicOptions: w, onImportComplete: T } = e == null ? {} : e, [E, D] = v(pd), { 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 = ad(f), L = nd(I, s, c), [R, z] = y(), B = cd({
|
|
5699
5699
|
config: e,
|
|
5700
5700
|
state: E,
|
|
5701
5701
|
setState: D,
|
|
@@ -5728,14 +5728,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5728
5728
|
onClick: () => V("smartUploadModal", !O),
|
|
5729
5729
|
testId: `${n}-smart-upload`
|
|
5730
5730
|
}] : [],
|
|
5731
|
-
...
|
|
5731
|
+
...fd((r = w == null ? void 0 : w.importOptions) == null ? [] : r, E, V)
|
|
5732
5732
|
] : [], le = [
|
|
5733
5733
|
{
|
|
5734
5734
|
type: "Option",
|
|
5735
5735
|
label: I("downloadFile"),
|
|
5736
5736
|
onClick: async () => {
|
|
5737
5737
|
let e = await L();
|
|
5738
|
-
e && e &&
|
|
5738
|
+
e && e && ld(e, d);
|
|
5739
5739
|
}
|
|
5740
5740
|
},
|
|
5741
5741
|
...p ? [{
|
|
@@ -5760,20 +5760,20 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5760
5760
|
}]
|
|
5761
5761
|
}
|
|
5762
5762
|
}],
|
|
5763
|
-
...
|
|
5763
|
+
...fd((i = w == null ? void 0 : w.exportOptions) == null ? [] : i, E, V)
|
|
5764
5764
|
], ue = g ? [{
|
|
5765
5765
|
type: "Option",
|
|
5766
5766
|
label: I("deleteAllRows"),
|
|
5767
5767
|
onClick: () => se(),
|
|
5768
5768
|
testId: `${n}-delete-all-rows`
|
|
5769
|
-
}, ...
|
|
5769
|
+
}, ...fd((a = w == null ? void 0 : w.deleteOptions) == null ? [] : a, E, V)] : [], de = _ ? [
|
|
5770
5770
|
{ type: "Divider" },
|
|
5771
5771
|
{
|
|
5772
5772
|
type: "Option",
|
|
5773
5773
|
label: I("help"),
|
|
5774
5774
|
onClick: () => V("helpModal", !A)
|
|
5775
5775
|
},
|
|
5776
|
-
...
|
|
5776
|
+
...fd((o = w == null ? void 0 : w.helpOptions) == null ? [] : o, E, V)
|
|
5777
5777
|
] : [], fe = [
|
|
5778
5778
|
...ce.length ? [{
|
|
5779
5779
|
section: [...ce, ...de],
|
|
@@ -5799,13 +5799,13 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5799
5799
|
small: !0,
|
|
5800
5800
|
dark: !0
|
|
5801
5801
|
}),
|
|
5802
|
-
fe.map((e, t) => /* @__PURE__ */ S(
|
|
5802
|
+
fe.map((e, t) => /* @__PURE__ */ S(td, {
|
|
5803
5803
|
sections: e.section,
|
|
5804
5804
|
iconName: e.iconName,
|
|
5805
5805
|
tooltip: e.tooltip,
|
|
5806
5806
|
testId: `data-${e == null ? void 0 : e.name}-menu`
|
|
5807
5807
|
}, t)),
|
|
5808
|
-
k && /* @__PURE__ */ S(
|
|
5808
|
+
k && /* @__PURE__ */ S($u, {
|
|
5809
5809
|
config: e,
|
|
5810
5810
|
state: E,
|
|
5811
5811
|
updateState: te,
|
|
@@ -5841,14 +5841,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5841
5841
|
cancelText: I("cancel"),
|
|
5842
5842
|
testId: n
|
|
5843
5843
|
}),
|
|
5844
|
-
/* @__PURE__ */ S(
|
|
5844
|
+
/* @__PURE__ */ S(ed, {
|
|
5845
5845
|
modals: x,
|
|
5846
5846
|
modalVisibility: E == null ? void 0 : E.modalVisibility,
|
|
5847
5847
|
onCloseModal: ne,
|
|
5848
5848
|
testId: n
|
|
5849
5849
|
})
|
|
5850
5850
|
] });
|
|
5851
|
-
},
|
|
5851
|
+
}, hd = ({ file: e, accept: t, multi: n, name: r, disabled: i, onChange: a = yn, ...o }) => {
|
|
5852
5852
|
let s = u(W), c = _(null), l = () => {
|
|
5853
5853
|
var e;
|
|
5854
5854
|
i || s || (e = c.current) == null || e.click();
|
|
@@ -5876,12 +5876,12 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5876
5876
|
multiple: n,
|
|
5877
5877
|
onChange: d
|
|
5878
5878
|
})] });
|
|
5879
|
-
},
|
|
5879
|
+
}, gd = {
|
|
5880
5880
|
label: "_label_uxk69_1",
|
|
5881
5881
|
labelLeft: "_labelLeft_uxk69_5",
|
|
5882
5882
|
icons: "_icons_uxk69_13",
|
|
5883
5883
|
small: "_small_uxk69_27"
|
|
5884
|
-
},
|
|
5884
|
+
}, _d = ({ label: e = null, width: t = "auto", helpText: n = "", helpTextMaxWidth: r = "300px", onClickHelp: i = void 0, lock: a = {
|
|
5885
5885
|
visible: !1,
|
|
5886
5886
|
active: !1,
|
|
5887
5887
|
onClick: () => {},
|
|
@@ -5890,14 +5890,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5890
5890
|
}, info: o, libraryIcon: s, labelLeft: c = !1, small: l = !1, textTransform: u = ji.CAPITALIZE }) => {
|
|
5891
5891
|
var d;
|
|
5892
5892
|
return /* @__PURE__ */ S("div", {
|
|
5893
|
-
className: b(
|
|
5893
|
+
className: b(gd.label, c ? gd.labelLeft : "", l ? gd.small : ""),
|
|
5894
5894
|
children: /* @__PURE__ */ C("label", {
|
|
5895
5895
|
style: {
|
|
5896
5896
|
textTransform: u,
|
|
5897
5897
|
width: t || ""
|
|
5898
5898
|
},
|
|
5899
5899
|
children: [e, /* @__PURE__ */ C("div", {
|
|
5900
|
-
className:
|
|
5900
|
+
className: gd.icons,
|
|
5901
5901
|
children: [
|
|
5902
5902
|
(n || i) && /* @__PURE__ */ S(ma, {
|
|
5903
5903
|
text: n,
|
|
@@ -5923,23 +5923,23 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5923
5923
|
})]
|
|
5924
5924
|
})
|
|
5925
5925
|
});
|
|
5926
|
-
},
|
|
5926
|
+
}, vd = {
|
|
5927
5927
|
field: "_field_1xoss_1",
|
|
5928
5928
|
labelLeft: "_labelLeft_1xoss_5",
|
|
5929
5929
|
fieldInput: "_fieldInput_1xoss_9",
|
|
5930
5930
|
formRow: "_formRow_1xoss_12",
|
|
5931
5931
|
"form-row": "_form-row_1xoss_13",
|
|
5932
5932
|
button: "_button_1xoss_22"
|
|
5933
|
-
},
|
|
5933
|
+
}, yd = ({ label: e, labelLeft: t = !1, labelWidth: n = "auto", children: r, helpText: i, helpTextMaxWidth: a = "300px", onClickHelp: o, lock: s = {
|
|
5934
5934
|
visible: !1,
|
|
5935
5935
|
active: !1,
|
|
5936
5936
|
onClick: () => {},
|
|
5937
5937
|
tooltip: "",
|
|
5938
5938
|
testId: void 0
|
|
5939
5939
|
}, info: c, libraryIcon: l, small: u = !1, testId: d, textTransform: f = ji.CAPITALIZE }) => /* @__PURE__ */ C("div", {
|
|
5940
|
-
className: b(
|
|
5940
|
+
className: b(vd.field, t ? vd.labelLeft : ""),
|
|
5941
5941
|
"data-testid": d,
|
|
5942
|
-
children: [(e || t) && /* @__PURE__ */ S(
|
|
5942
|
+
children: [(e || t) && /* @__PURE__ */ S(_d, {
|
|
5943
5943
|
label: e,
|
|
5944
5944
|
width: n,
|
|
5945
5945
|
helpText: i,
|
|
@@ -5952,10 +5952,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5952
5952
|
small: u,
|
|
5953
5953
|
textTransform: f
|
|
5954
5954
|
}), /* @__PURE__ */ S("div", {
|
|
5955
|
-
className:
|
|
5955
|
+
className: vd.fieldInput,
|
|
5956
5956
|
children: r
|
|
5957
5957
|
})]
|
|
5958
|
-
}),
|
|
5958
|
+
}), bd = ({ alignItems: e = "initial", justifyContent: t = "initial", direction: n = "initial", height: r = "initial", width: i = "initial", children: a = null, wrap: o = !0, gap: s = !1 }) => /* @__PURE__ */ S("div", {
|
|
5959
5959
|
style: {
|
|
5960
5960
|
display: "flex",
|
|
5961
5961
|
flexDirection: n,
|
|
@@ -5967,8 +5967,8 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
5967
5967
|
gap: s === !1 ? 0 : s === !0 ? "var(--padding)" : typeof s == "number" ? `${s}px` : s
|
|
5968
5968
|
},
|
|
5969
5969
|
children: a
|
|
5970
|
-
}),
|
|
5971
|
-
className:
|
|
5970
|
+
}), xd = { formRow: "_formRow_odewu_1" }, Sd = ({ children: e }) => /* @__PURE__ */ S("div", {
|
|
5971
|
+
className: xd.formRow,
|
|
5972
5972
|
children: e
|
|
5973
5973
|
}), Z = {
|
|
5974
5974
|
inputInTable: "_inputInTable_15rr3_1",
|
|
@@ -6014,15 +6014,15 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6014
6014
|
hideScrollbar: "_hideScrollbar_15rr3_71",
|
|
6015
6015
|
noPointerEvents: "_noPointerEvents_15rr3_313",
|
|
6016
6016
|
virtualRows: "_virtualRows_15rr3_316"
|
|
6017
|
-
},
|
|
6017
|
+
}, Cd = ({ toggleNarrow: e, onClickToggleNarrow: t }) => e ? /* @__PURE__ */ S("a", {
|
|
6018
6018
|
className: Z.toggleNarrow,
|
|
6019
6019
|
onClick: t,
|
|
6020
6020
|
children: /* @__PURE__ */ S(G, { icon: U.CHEVRON_LEFT })
|
|
6021
|
-
}) : null,
|
|
6021
|
+
}) : null, wd = o(({ name: e, actions: t = [], toggleNarrow: n = !1, onToggleNarrow: r = () => {}, stickyHeader: i }, a) => /* @__PURE__ */ C("div", {
|
|
6022
6022
|
ref: a,
|
|
6023
6023
|
className: b(Z.header, i ? Z.stickyHeader : ""),
|
|
6024
6024
|
children: [
|
|
6025
|
-
/* @__PURE__ */ S(
|
|
6025
|
+
/* @__PURE__ */ S(Cd, {
|
|
6026
6026
|
toggleNarrow: n,
|
|
6027
6027
|
onClickToggleNarrow: r
|
|
6028
6028
|
}),
|
|
@@ -6042,14 +6042,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6042
6042
|
})
|
|
6043
6043
|
})
|
|
6044
6044
|
]
|
|
6045
|
-
})),
|
|
6045
|
+
})), Td = ({ label: e }) => e ? /* @__PURE__ */ S("span", {
|
|
6046
6046
|
className: Z.label,
|
|
6047
6047
|
children: /* @__PURE__ */ S(no, {
|
|
6048
6048
|
color: e.color,
|
|
6049
6049
|
title: e.value,
|
|
6050
6050
|
small: e.small
|
|
6051
6051
|
})
|
|
6052
|
-
}) : null,
|
|
6052
|
+
}) : null, Ed = ({ name: e, icon: t, testId: n }) => {
|
|
6053
6053
|
let r = t && /* @__PURE__ */ S(G, {
|
|
6054
6054
|
icon: t.icon,
|
|
6055
6055
|
color: t.color || "#db2828"
|
|
@@ -6069,8 +6069,8 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6069
6069
|
children: r
|
|
6070
6070
|
})]
|
|
6071
6071
|
});
|
|
6072
|
-
},
|
|
6073
|
-
let { name: t, icon: n, details: r, metadata: i, invalid: a, testId: o } = e, s = /* @__PURE__ */ S(
|
|
6072
|
+
}, Dd = ({ item: e }) => {
|
|
6073
|
+
let { name: t, icon: n, details: r, metadata: i, invalid: a, testId: o } = e, s = /* @__PURE__ */ S(Ed, {
|
|
6074
6074
|
name: t,
|
|
6075
6075
|
icon: n,
|
|
6076
6076
|
testId: o && `${o}-name`
|
|
@@ -6096,10 +6096,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6096
6096
|
})
|
|
6097
6097
|
]
|
|
6098
6098
|
});
|
|
6099
|
-
},
|
|
6099
|
+
}, Od = ({ item: e }) => e.metaCount === void 0 ? null : /* @__PURE__ */ S(no, {
|
|
6100
6100
|
color: "rgba(0,0,0,0.25)",
|
|
6101
6101
|
title: e.metaCount
|
|
6102
|
-
}),
|
|
6102
|
+
}), kd = ({ item: e, expanding: t }) => {
|
|
6103
6103
|
let n = (e) => {
|
|
6104
6104
|
e.preventDefault(), e.stopPropagation();
|
|
6105
6105
|
}, r = !!t && !!e.active && !!e.content;
|
|
@@ -6111,7 +6111,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6111
6111
|
children: e.content
|
|
6112
6112
|
})
|
|
6113
6113
|
});
|
|
6114
|
-
},
|
|
6114
|
+
}, Ad = o(({ item: e, index: t }, n) => {
|
|
6115
6115
|
var r;
|
|
6116
6116
|
let i = u(W), { actions: a, disabled: o, expanded: s, onClick: c, title: l, name: d, icon: f, testId: p } = e;
|
|
6117
6117
|
return /* @__PURE__ */ S("div", {
|
|
@@ -6131,13 +6131,13 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6131
6131
|
className: b(Z.expandIcon, s && Z.expanded),
|
|
6132
6132
|
children: /* @__PURE__ */ S(G, { icon: U.CHEVRON_RIGHT })
|
|
6133
6133
|
}),
|
|
6134
|
-
/* @__PURE__ */ S(
|
|
6134
|
+
/* @__PURE__ */ S(Ed, {
|
|
6135
6135
|
name: d,
|
|
6136
6136
|
icon: f
|
|
6137
6137
|
}),
|
|
6138
6138
|
/* @__PURE__ */ C("div", {
|
|
6139
6139
|
className: Z.right,
|
|
6140
|
-
children: [/* @__PURE__ */ S(
|
|
6140
|
+
children: [/* @__PURE__ */ S(Od, { item: e }), !(o || i) && a && /* @__PURE__ */ S("div", {
|
|
6141
6141
|
className: Z.actions,
|
|
6142
6142
|
children: /* @__PURE__ */ S(fo, { actions: (r = e.actions) == null ? [] : r })
|
|
6143
6143
|
})]
|
|
@@ -6145,7 +6145,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6145
6145
|
]
|
|
6146
6146
|
}) })
|
|
6147
6147
|
});
|
|
6148
|
-
}),
|
|
6148
|
+
}), jd = o(({ item: e, index: t, expanding: n, invokeEditOnRowClick: r, draggable: i }, a) => {
|
|
6149
6149
|
let o = u(W), s = (e, t, s, c, l, u) => {
|
|
6150
6150
|
let d = t.actions && t.actions.find((e) => {
|
|
6151
6151
|
var t;
|
|
@@ -6181,24 +6181,24 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6181
6181
|
className: Z.indentIcon,
|
|
6182
6182
|
children: /* @__PURE__ */ S(G, { icon: U.INDENT })
|
|
6183
6183
|
}) : null,
|
|
6184
|
-
/* @__PURE__ */ S(
|
|
6185
|
-
/* @__PURE__ */ S(
|
|
6184
|
+
/* @__PURE__ */ S(Td, { label: t.label }),
|
|
6185
|
+
/* @__PURE__ */ S(Dd, { item: t }),
|
|
6186
6186
|
/* @__PURE__ */ C("div", {
|
|
6187
6187
|
className: Z.right,
|
|
6188
|
-
children: [/* @__PURE__ */ S(
|
|
6188
|
+
children: [/* @__PURE__ */ S(Od, { item: t }), !(t.disabled || o) && t.actions && /* @__PURE__ */ S("div", {
|
|
6189
6189
|
className: Z.actions,
|
|
6190
6190
|
children: /* @__PURE__ */ S(fo, { actions: t.actions })
|
|
6191
6191
|
})]
|
|
6192
6192
|
})
|
|
6193
6193
|
]
|
|
6194
|
-
}), /* @__PURE__ */ S(
|
|
6194
|
+
}), /* @__PURE__ */ S(kd, {
|
|
6195
6195
|
item: t,
|
|
6196
6196
|
expanding: n
|
|
6197
6197
|
})]
|
|
6198
6198
|
})
|
|
6199
6199
|
}, e);
|
|
6200
6200
|
};
|
|
6201
|
-
return e.type === "Heading" ? /* @__PURE__ */ S(
|
|
6201
|
+
return e.type === "Heading" ? /* @__PURE__ */ S(Ad, {
|
|
6202
6202
|
ref: a,
|
|
6203
6203
|
item: e,
|
|
6204
6204
|
index: t
|
|
@@ -6213,7 +6213,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6213
6213
|
};
|
|
6214
6214
|
return s(e, t, l, n, r, i);
|
|
6215
6215
|
})(t, e) : s(t, e);
|
|
6216
|
-
}),
|
|
6216
|
+
}), Md = ({ children: e, draggable: t, list: n, onListReorder: r }) => {
|
|
6217
6217
|
let [i, a] = v(null), o = (e) => {
|
|
6218
6218
|
a(e.active.id);
|
|
6219
6219
|
}, s = (e) => {
|
|
@@ -6236,7 +6236,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6236
6236
|
dropAnimation: null,
|
|
6237
6237
|
children: /* @__PURE__ */ S("div", {
|
|
6238
6238
|
className: Z.dragOverlay,
|
|
6239
|
-
children: /* @__PURE__ */ S(
|
|
6239
|
+
children: /* @__PURE__ */ S(jd, {
|
|
6240
6240
|
draggable: t,
|
|
6241
6241
|
item: n.items[Number(i)],
|
|
6242
6242
|
index: Number(i)
|
|
@@ -6244,7 +6244,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6244
6244
|
})
|
|
6245
6245
|
}), document.body)]
|
|
6246
6246
|
}) : e;
|
|
6247
|
-
},
|
|
6247
|
+
}, Nd = ({ items: e, scrollDetails: t, children: n }) => {
|
|
6248
6248
|
let { scrollable: r, hideScrollbar: i, triggerScrollToActiveItem: a, infiniteScroll: o } = t, s = _(null), c = Zr({
|
|
6249
6249
|
count: e.length,
|
|
6250
6250
|
getScrollElement: () => s.current,
|
|
@@ -6277,9 +6277,9 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6277
6277
|
children: n({ virtualizer: c })
|
|
6278
6278
|
})
|
|
6279
6279
|
});
|
|
6280
|
-
},
|
|
6280
|
+
}, Pd = ({ items: e, scrollDetails: t, children: n }) => {
|
|
6281
6281
|
let { scrollable: r, hideScrollbar: i, infiniteScroll: a } = t;
|
|
6282
|
-
return a ? /* @__PURE__ */ S(
|
|
6282
|
+
return a ? /* @__PURE__ */ S(Nd, {
|
|
6283
6283
|
items: e,
|
|
6284
6284
|
scrollDetails: t,
|
|
6285
6285
|
children: ({ virtualizer: e }) => n({ virtualizer: e })
|
|
@@ -6290,7 +6290,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6290
6290
|
children: n({})
|
|
6291
6291
|
})
|
|
6292
6292
|
});
|
|
6293
|
-
},
|
|
6293
|
+
}, Fd = ({ list: e, bordered: t = !1, expanding: n = !1, narrow: r = !1, toggleNarrow: i = !1, onToggleNarrow: a = () => {}, invokeEditOnRowClick: o = !0, noHeader: s = !1, stickyHeader: c, draggable: l = !1, onListReorder: u = () => {}, marginBottom: d = 0, height: f, testId: p, scrollDetails: m = {
|
|
6294
6294
|
scrollable: !1,
|
|
6295
6295
|
hideScrollbar: !1,
|
|
6296
6296
|
triggerScrollToActiveItem: !1,
|
|
@@ -6303,17 +6303,17 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6303
6303
|
marginBottom: d
|
|
6304
6304
|
},
|
|
6305
6305
|
id: "scrollableDiv",
|
|
6306
|
-
children: [!s && /* @__PURE__ */ S(
|
|
6306
|
+
children: [!s && /* @__PURE__ */ S(wd, {
|
|
6307
6307
|
name: e.name,
|
|
6308
6308
|
actions: e.actions,
|
|
6309
6309
|
toggleNarrow: i,
|
|
6310
6310
|
onToggleNarrow: a,
|
|
6311
6311
|
stickyHeader: c
|
|
6312
|
-
}), /* @__PURE__ */ S(
|
|
6312
|
+
}), /* @__PURE__ */ S(Md, {
|
|
6313
6313
|
draggable: l,
|
|
6314
6314
|
list: e,
|
|
6315
6315
|
onListReorder: u,
|
|
6316
|
-
children: /* @__PURE__ */ S(
|
|
6316
|
+
children: /* @__PURE__ */ S(Pd, {
|
|
6317
6317
|
items: e.items,
|
|
6318
6318
|
scrollDetails: m,
|
|
6319
6319
|
children: ({ virtualizer: t }) => t ? t.getVirtualItems().map((r) => /* @__PURE__ */ S("div", {
|
|
@@ -6321,14 +6321,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6321
6321
|
className: Z.virtualRow,
|
|
6322
6322
|
style: { transform: `translateY(${r.start}px)` },
|
|
6323
6323
|
ref: t.measureElement,
|
|
6324
|
-
children: /* @__PURE__ */ S(
|
|
6324
|
+
children: /* @__PURE__ */ S(jd, {
|
|
6325
6325
|
index: r.index,
|
|
6326
6326
|
draggable: l,
|
|
6327
6327
|
item: e.items[r.index],
|
|
6328
6328
|
expanding: n,
|
|
6329
6329
|
invokeEditOnRowClick: o
|
|
6330
6330
|
})
|
|
6331
|
-
}, r.key)) : e.items.map((e, t) => /* @__PURE__ */ S("div", { children: /* @__PURE__ */ S(
|
|
6331
|
+
}, r.key)) : e.items.map((e, t) => /* @__PURE__ */ S("div", { children: /* @__PURE__ */ S(jd, {
|
|
6332
6332
|
index: t,
|
|
6333
6333
|
draggable: l,
|
|
6334
6334
|
item: e,
|
|
@@ -6337,7 +6337,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6337
6337
|
}) }, t))
|
|
6338
6338
|
})
|
|
6339
6339
|
})]
|
|
6340
|
-
}),
|
|
6340
|
+
}), Id = {
|
|
6341
6341
|
loader: "_loader_477i5_1",
|
|
6342
6342
|
fullViewPortSize: "_fullViewPortSize_477i5_7",
|
|
6343
6343
|
cover: "_cover_477i5_14",
|
|
@@ -6345,33 +6345,33 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6345
6345
|
content: "_content_477i5_44",
|
|
6346
6346
|
text: "_text_477i5_49",
|
|
6347
6347
|
details: "_details_477i5_53"
|
|
6348
|
-
},
|
|
6348
|
+
}, Ld = ({ width: e, height: t, text: n = "", details: r = "", fullViewPortSize: i = !1, cover: a = !1, children: o = null, theme: s = Mi.DARK, testId: c = null }) => {
|
|
6349
6349
|
let l = s === Mi.DARK ? Mi.WHITE : Mi.INHERIT, u = s === "white" ? "var(--color-background-raised)" : s === "light" ? "var(--color-background)" : "black";
|
|
6350
6350
|
return /* @__PURE__ */ S("div", {
|
|
6351
|
-
className: b(
|
|
6351
|
+
className: b(Id.loader, a ? Id.cover : "", { [Id.fullViewPortSize]: i }),
|
|
6352
6352
|
style: {
|
|
6353
6353
|
width: e,
|
|
6354
6354
|
height: t
|
|
6355
6355
|
},
|
|
6356
6356
|
"data-testid": c,
|
|
6357
6357
|
children: /* @__PURE__ */ S("div", {
|
|
6358
|
-
className:
|
|
6358
|
+
className: Id.dimmer,
|
|
6359
6359
|
style: {
|
|
6360
6360
|
background: u,
|
|
6361
6361
|
color: l
|
|
6362
6362
|
},
|
|
6363
6363
|
children: /* @__PURE__ */ C("div", {
|
|
6364
|
-
className:
|
|
6364
|
+
className: Id.content,
|
|
6365
6365
|
"data-testid": c && `${c}-content`,
|
|
6366
6366
|
children: [
|
|
6367
6367
|
o,
|
|
6368
6368
|
n && /* @__PURE__ */ S("div", {
|
|
6369
|
-
className:
|
|
6369
|
+
className: Id.text,
|
|
6370
6370
|
"data-testid": c && `${c}-text`,
|
|
6371
6371
|
children: n
|
|
6372
6372
|
}),
|
|
6373
6373
|
r && /* @__PURE__ */ S("div", {
|
|
6374
|
-
className:
|
|
6374
|
+
className: Id.details,
|
|
6375
6375
|
"data-testid": c && `${c}-details`,
|
|
6376
6376
|
children: r
|
|
6377
6377
|
})
|
|
@@ -6379,15 +6379,15 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6379
6379
|
})
|
|
6380
6380
|
})
|
|
6381
6381
|
});
|
|
6382
|
-
},
|
|
6382
|
+
}, Rd = {
|
|
6383
6383
|
menu: "_menu_12x4u_1",
|
|
6384
6384
|
header: "_header_12x4u_11",
|
|
6385
6385
|
item: "_item_12x4u_27",
|
|
6386
6386
|
heading: "_heading_12x4u_32"
|
|
6387
|
-
},
|
|
6387
|
+
}, zd = ({ option: e, onChange: t }) => {
|
|
6388
6388
|
let { key: n, selected: r, label: i, disabled: a, testId: o, helpText: s, onClickHelp: c, textTransform: l } = e;
|
|
6389
6389
|
return /* @__PURE__ */ S("div", {
|
|
6390
|
-
className:
|
|
6390
|
+
className: Rd.item,
|
|
6391
6391
|
children: /* @__PURE__ */ S(ha, {
|
|
6392
6392
|
label: i,
|
|
6393
6393
|
noMargin: !0,
|
|
@@ -6400,21 +6400,21 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6400
6400
|
textTransform: l
|
|
6401
6401
|
})
|
|
6402
6402
|
}, n);
|
|
6403
|
-
},
|
|
6404
|
-
className:
|
|
6403
|
+
}, Bd = ({ label: e }) => /* @__PURE__ */ S("div", {
|
|
6404
|
+
className: Rd.heading,
|
|
6405
6405
|
children: e
|
|
6406
|
-
}),
|
|
6406
|
+
}), Vd = /* @__PURE__ */ function(e) {
|
|
6407
6407
|
return e.HEADING = "Heading", e.DIVIDER = "Divider", e.DEFAULT = "Default", e;
|
|
6408
|
-
}({}),
|
|
6409
|
-
className: b("menu",
|
|
6408
|
+
}({}), Hd = (e) => e.type !== Vd.HEADING && e.type !== Vd.DIVIDER && !e.disabled, Ud = ({ options: e, onChangeOptions: t, showHeader: n, maxHeight: r, testId: i }) => /* @__PURE__ */ C("div", {
|
|
6409
|
+
className: b("menu", Rd.menu),
|
|
6410
6410
|
style: { maxHeight: r },
|
|
6411
6411
|
"data-testid": i ? `${i}-option-dropdown-layer` : void 0,
|
|
6412
6412
|
children: [n && /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ C("div", {
|
|
6413
|
-
className:
|
|
6413
|
+
className: Rd.header,
|
|
6414
6414
|
children: [
|
|
6415
6415
|
/* @__PURE__ */ S("a", {
|
|
6416
6416
|
onClick: (n) => {
|
|
6417
|
-
t(n, e.map((e) =>
|
|
6417
|
+
t(n, e.map((e) => Hd(e) ? {
|
|
6418
6418
|
...e,
|
|
6419
6419
|
selected: !0
|
|
6420
6420
|
} : e));
|
|
@@ -6423,7 +6423,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6423
6423
|
}),
|
|
6424
6424
|
/* @__PURE__ */ S("a", {
|
|
6425
6425
|
onClick: (n) => {
|
|
6426
|
-
t(n, e.map((e) =>
|
|
6426
|
+
t(n, e.map((e) => Hd(e) ? {
|
|
6427
6427
|
...e,
|
|
6428
6428
|
selected: !1
|
|
6429
6429
|
} : e));
|
|
@@ -6432,7 +6432,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6432
6432
|
}),
|
|
6433
6433
|
/* @__PURE__ */ S("a", {
|
|
6434
6434
|
onClick: (n) => {
|
|
6435
|
-
t(n, e.map((e) =>
|
|
6435
|
+
t(n, e.map((e) => Hd(e) ? {
|
|
6436
6436
|
...e,
|
|
6437
6437
|
selected: !e.selected
|
|
6438
6438
|
} : e));
|
|
@@ -6442,19 +6442,19 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6442
6442
|
]
|
|
6443
6443
|
}), /* @__PURE__ */ S(Zo, { margin: 0 })] }), e.map((n, r) => {
|
|
6444
6444
|
switch (n.type) {
|
|
6445
|
-
case
|
|
6445
|
+
case Vd.HEADING:
|
|
6446
6446
|
var i;
|
|
6447
|
-
return /* @__PURE__ */ S(
|
|
6448
|
-
case
|
|
6447
|
+
return /* @__PURE__ */ S(Bd, { label: n.label }, (i = n.key) == null ? r : i);
|
|
6448
|
+
case Vd.DIVIDER:
|
|
6449
6449
|
var a;
|
|
6450
6450
|
return /* @__PURE__ */ S(Zo, { margin: 0 }, (a = n.key) == null ? r : a);
|
|
6451
6451
|
default:
|
|
6452
6452
|
var o;
|
|
6453
|
-
return /* @__PURE__ */ S(
|
|
6453
|
+
return /* @__PURE__ */ S(zd, {
|
|
6454
6454
|
option: n,
|
|
6455
6455
|
onChange: (r) => {
|
|
6456
6456
|
let { value: i } = n;
|
|
6457
|
-
t(r, e.map((e) => e.type ===
|
|
6457
|
+
t(r, e.map((e) => e.type === Vd.HEADING || e.type === Vd.DIVIDER || e.value !== i ? e : {
|
|
6458
6458
|
...e,
|
|
6459
6459
|
selected: !e.selected
|
|
6460
6460
|
}));
|
|
@@ -6462,7 +6462,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6462
6462
|
}, (o = n.key) == null ? r : o);
|
|
6463
6463
|
}
|
|
6464
6464
|
})]
|
|
6465
|
-
}),
|
|
6465
|
+
}), Wd = ({ name: e, disabled: t, label: n, options: r, onChange: i, small: a = !1, showHeader: o = !0, maxHeight: s = "40vh", testId: c }) => /* @__PURE__ */ S(lo, {
|
|
6466
6466
|
testId: c,
|
|
6467
6467
|
disabled: t,
|
|
6468
6468
|
menu: {
|
|
@@ -6470,7 +6470,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6470
6470
|
small: a,
|
|
6471
6471
|
label: n,
|
|
6472
6472
|
trigger: Di.DROP_DOWN_BUTTON,
|
|
6473
|
-
sections: /* @__PURE__ */ S(
|
|
6473
|
+
sections: /* @__PURE__ */ S(Ud, {
|
|
6474
6474
|
testId: c,
|
|
6475
6475
|
options: r,
|
|
6476
6476
|
onChangeOptions: (t, n) => {
|
|
@@ -6480,13 +6480,13 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6480
6480
|
maxHeight: s
|
|
6481
6481
|
})
|
|
6482
6482
|
}
|
|
6483
|
-
}),
|
|
6483
|
+
}), Gd = {
|
|
6484
6484
|
page: "_page_beskc_1",
|
|
6485
6485
|
scroll: "_scroll_beskc_23"
|
|
6486
|
-
},
|
|
6486
|
+
}, Kd = ({ children: e, left: t = "var(--size-sidebar)", padding: n = !0, scroll: r = !0, top: i = "var(--size-topbar)" }) => {
|
|
6487
6487
|
let a = typeof n == "string" ? n : n === !0 ? "var(--padding)" : "0";
|
|
6488
6488
|
return /* @__PURE__ */ S("div", {
|
|
6489
|
-
className: b(
|
|
6489
|
+
className: b(Gd.page, r ? Gd.scroll : ""),
|
|
6490
6490
|
style: {
|
|
6491
6491
|
left: t,
|
|
6492
6492
|
padding: a,
|
|
@@ -6494,17 +6494,17 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6494
6494
|
},
|
|
6495
6495
|
children: e
|
|
6496
6496
|
});
|
|
6497
|
-
},
|
|
6497
|
+
}, qd = ({ id: e, children: t }) => {
|
|
6498
6498
|
let n = document.querySelector(`#${e}`), [r, i] = v(!1);
|
|
6499
6499
|
return m(() => {
|
|
6500
6500
|
r || i(!0);
|
|
6501
6501
|
}, [e]), n ? qr(t, n) : null;
|
|
6502
|
-
},
|
|
6502
|
+
}, Jd = { printHeader: "_printHeader_o7xxx_1" }, Yd = ({ logo: e, alt: t, logoWidth: n = "100px" }) => /* @__PURE__ */ S("img", {
|
|
6503
6503
|
src: e,
|
|
6504
6504
|
alt: t,
|
|
6505
|
-
className:
|
|
6505
|
+
className: Jd.printHeader,
|
|
6506
6506
|
style: { width: n }
|
|
6507
|
-
}),
|
|
6507
|
+
}), Xd = ({ name: e, label: t, options: n, value: r, onChange: i, disabled: a = !1, small: o = !1, noMargin: s = !1, inline: c = !1, testId: l }) => {
|
|
6508
6508
|
var d;
|
|
6509
6509
|
let f = u(W), { simpleInputs: p, options: m, selectedOptions: h } = $c(n, r), g = h == null ? void 0 : p ? h : h.value, _ = a || f;
|
|
6510
6510
|
return /* @__PURE__ */ C(Gr, {
|
|
@@ -6545,40 +6545,40 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6545
6545
|
}, (t = (n = e.value) == null ? void 0 : n.toString()) == null ? "" : t);
|
|
6546
6546
|
})]
|
|
6547
6547
|
});
|
|
6548
|
-
},
|
|
6548
|
+
}, Zd = {
|
|
6549
6549
|
richTextToolbar: "_richTextToolbar_1gbkk_1",
|
|
6550
6550
|
richTextToolbarContainer: "_richTextToolbarContainer_1gbkk_5"
|
|
6551
|
-
},
|
|
6551
|
+
}, Qd = /* @__PURE__ */ function(e) {
|
|
6552
6552
|
return e.BOLD = "bold", e.ITALIC = "italic", e.CODE = "code", e.UL = "ul", e.OL = "ol", e.MENTION = "at", e;
|
|
6553
|
-
}({}),
|
|
6553
|
+
}({}), $d = ({ editor: e, disabled: t = !1, showMentionButton: n = !1, toolbarComponent: r = null, testId: i }) => {
|
|
6554
6554
|
var a, o, s, c, l;
|
|
6555
6555
|
let u = [
|
|
6556
6556
|
{
|
|
6557
|
-
icon:
|
|
6557
|
+
icon: Qd.BOLD,
|
|
6558
6558
|
onClick: () => e == null ? void 0 : e.chain().focus().toggleBold().run(),
|
|
6559
6559
|
active: (a = e == null ? void 0 : e.isActive("bold")) != null && a,
|
|
6560
6560
|
testId: "bold"
|
|
6561
6561
|
},
|
|
6562
6562
|
{
|
|
6563
|
-
icon:
|
|
6563
|
+
icon: Qd.ITALIC,
|
|
6564
6564
|
onClick: () => e == null ? void 0 : e.chain().focus().toggleItalic().run(),
|
|
6565
6565
|
active: (o = e == null ? void 0 : e.isActive("italic")) != null && o,
|
|
6566
6566
|
testId: "italic"
|
|
6567
6567
|
},
|
|
6568
6568
|
{
|
|
6569
|
-
icon:
|
|
6569
|
+
icon: Qd.CODE,
|
|
6570
6570
|
onClick: () => e == null ? void 0 : e.chain().focus().toggleCode().run(),
|
|
6571
6571
|
active: (s = e == null ? void 0 : e.isActive("code")) != null && s,
|
|
6572
6572
|
testId: "code"
|
|
6573
6573
|
},
|
|
6574
6574
|
{
|
|
6575
|
-
icon:
|
|
6575
|
+
icon: Qd.UL,
|
|
6576
6576
|
onClick: () => e == null ? void 0 : e.chain().focus().toggleBulletList().run(),
|
|
6577
6577
|
active: (c = e == null ? void 0 : e.isActive("bulletList")) != null && c,
|
|
6578
6578
|
testId: "bulletList"
|
|
6579
6579
|
},
|
|
6580
6580
|
{
|
|
6581
|
-
icon:
|
|
6581
|
+
icon: Qd.OL,
|
|
6582
6582
|
onClick: () => e == null ? void 0 : e.chain().focus().toggleOrderedList().run(),
|
|
6583
6583
|
active: (l = e == null ? void 0 : e.isActive("orderedList")) != null && l,
|
|
6584
6584
|
testId: "orderedList"
|
|
@@ -6587,17 +6587,17 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6587
6587
|
if (n) {
|
|
6588
6588
|
var d;
|
|
6589
6589
|
u.push({
|
|
6590
|
-
icon:
|
|
6590
|
+
icon: Qd.MENTION,
|
|
6591
6591
|
onClick: () => e == null ? void 0 : e.chain().focus().insertContent("@").run(),
|
|
6592
6592
|
active: (d = e == null ? void 0 : e.isActive("mention")) != null && d,
|
|
6593
6593
|
testId: "mention"
|
|
6594
6594
|
});
|
|
6595
6595
|
}
|
|
6596
6596
|
return /* @__PURE__ */ C("div", {
|
|
6597
|
-
className:
|
|
6597
|
+
className: Zd.richTextToolbarContainer,
|
|
6598
6598
|
"data-testid": i,
|
|
6599
6599
|
children: [/* @__PURE__ */ S("div", {
|
|
6600
|
-
className:
|
|
6600
|
+
className: Zd.richTextToolbar,
|
|
6601
6601
|
children: u.map((e, n) => /* @__PURE__ */ S(q, {
|
|
6602
6602
|
small: !0,
|
|
6603
6603
|
round: !0,
|
|
@@ -6611,36 +6611,36 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6611
6611
|
}, n))
|
|
6612
6612
|
}), r]
|
|
6613
6613
|
});
|
|
6614
|
-
},
|
|
6615
|
-
let t =
|
|
6614
|
+
}, ef = 8, tf = /^\[@((?:\\.|[^\\\]])*)\]\(mention:((?:\\.|[^\\)])+)\)/, nf = (e) => e.replace(/[\\\][()]/g, "\\$&"), rf = (e) => e.replace(/\\(.)/g, "$1"), af = (e) => typeof e == "string" ? e : "", of = (e) => {
|
|
6615
|
+
let t = tf.exec(e);
|
|
6616
6616
|
if (!t) return;
|
|
6617
6617
|
let [n, r, i] = t;
|
|
6618
6618
|
return {
|
|
6619
6619
|
raw: n,
|
|
6620
|
-
id:
|
|
6621
|
-
label:
|
|
6620
|
+
id: rf(i),
|
|
6621
|
+
label: rf(r)
|
|
6622
6622
|
};
|
|
6623
|
-
},
|
|
6623
|
+
}, sf = (e) => {
|
|
6624
6624
|
if (!e) return [];
|
|
6625
6625
|
let t = /* @__PURE__ */ new Set();
|
|
6626
6626
|
return e.state.doc.descendants((e) => {
|
|
6627
6627
|
e.type.name === mi.name && typeof e.attrs.id == "string" && t.add(e.attrs.id);
|
|
6628
6628
|
}), [...t];
|
|
6629
|
-
},
|
|
6629
|
+
}, cf = (e, t) => `[@${nf(e)}](mention:${nf(t)})`, lf = (e, t) => mi.extend({
|
|
6630
6630
|
renderMarkdown: (e) => {
|
|
6631
6631
|
var t, n;
|
|
6632
|
-
return
|
|
6632
|
+
return cf(af((t = e.attrs) == null ? void 0 : t.label), af((n = e.attrs) == null ? void 0 : n.id));
|
|
6633
6633
|
},
|
|
6634
6634
|
parseMarkdown: (e, t) => t.createNode(mi.name, {
|
|
6635
|
-
id:
|
|
6636
|
-
label:
|
|
6635
|
+
id: af(e.id),
|
|
6636
|
+
label: af(e.label)
|
|
6637
6637
|
}),
|
|
6638
6638
|
markdownTokenizer: {
|
|
6639
6639
|
name: mi.name,
|
|
6640
6640
|
level: "inline",
|
|
6641
6641
|
start: (e) => e.indexOf("[@"),
|
|
6642
6642
|
tokenize: (e) => {
|
|
6643
|
-
let t =
|
|
6643
|
+
let t = of(e);
|
|
6644
6644
|
return t && {
|
|
6645
6645
|
type: mi.name,
|
|
6646
6646
|
...t
|
|
@@ -6656,11 +6656,11 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6656
6656
|
var r;
|
|
6657
6657
|
let i = e();
|
|
6658
6658
|
if (!i) return [];
|
|
6659
|
-
let a = new Set(
|
|
6660
|
-
return (await i.getItems(t)).filter(({ id: e }) => !a.has(e)).slice(0, (r = i.maxItems) == null ?
|
|
6659
|
+
let a = new Set(sf(n));
|
|
6660
|
+
return (await i.getItems(t)).filter(({ id: e }) => !a.has(e)).slice(0, (r = i.maxItems) == null ? ef : r);
|
|
6661
6661
|
},
|
|
6662
6662
|
render: t
|
|
6663
|
-
} }),
|
|
6663
|
+
} }), uf = {
|
|
6664
6664
|
inputInTable: "_inputInTable_1xhvx_1",
|
|
6665
6665
|
inputHover: "_inputHover_1xhvx_13",
|
|
6666
6666
|
inputFocus: "_inputFocus_1xhvx_18",
|
|
@@ -6675,7 +6675,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6675
6675
|
mentionLayer: "_mentionLayer_1xhvx_133",
|
|
6676
6676
|
mentionOption: "_mentionOption_1xhvx_144",
|
|
6677
6677
|
focused: "_focused_1xhvx_150"
|
|
6678
|
-
},
|
|
6678
|
+
}, df = o(({ editable: e, getRect: t, items: n, onDismiss: r, onSelect: i }, a) => {
|
|
6679
6679
|
let [o, s] = v(0), c = n.length > 0, u = f(), m = l((e) => `${u}-option-${e}`, [u]), { renderLayer: g, layerProps: y, triggerProps: x } = ca({
|
|
6680
6680
|
isOpen: c,
|
|
6681
6681
|
placement: "bottom-start",
|
|
@@ -6737,14 +6737,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6737
6737
|
i
|
|
6738
6738
|
]), c ? g(/* @__PURE__ */ S("div", {
|
|
6739
6739
|
...y,
|
|
6740
|
-
className:
|
|
6740
|
+
className: uf.mentionLayer,
|
|
6741
6741
|
id: u,
|
|
6742
6742
|
role: "listbox",
|
|
6743
6743
|
children: n.map((e, t) => /* @__PURE__ */ S("div", {
|
|
6744
6744
|
id: m(t),
|
|
6745
6745
|
role: "option",
|
|
6746
6746
|
"aria-selected": t === o,
|
|
6747
|
-
className: b(
|
|
6747
|
+
className: b(uf.mentionOption, { [uf.focused]: t === o }),
|
|
6748
6748
|
onMouseEnter: () => s(t),
|
|
6749
6749
|
onMouseDown: (t) => {
|
|
6750
6750
|
t.preventDefault(), i(e);
|
|
@@ -6752,12 +6752,12 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6752
6752
|
children: e.label
|
|
6753
6753
|
}, e.id))
|
|
6754
6754
|
})) : null;
|
|
6755
|
-
}),
|
|
6755
|
+
}), ff = ({ clientRect: e, command: t, editor: n, items: r }) => ({
|
|
6756
6756
|
clientRect: e,
|
|
6757
6757
|
command: t,
|
|
6758
6758
|
items: r,
|
|
6759
6759
|
editable: n.view.dom
|
|
6760
|
-
}),
|
|
6760
|
+
}), pf = c(o(({ placeholder: e, onChange: t, value: n, disabled: r, toolbarComponent: i, mentions: a, testId: o }, s) => {
|
|
6761
6761
|
var c, l, f, m;
|
|
6762
6762
|
let g = u(W), y = r || g, b = !!a, x = _(a), w = _(null), T = _(n == null ? "" : n), [E, D] = v(null);
|
|
6763
6763
|
d(() => {
|
|
@@ -6767,9 +6767,9 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6767
6767
|
di,
|
|
6768
6768
|
fi.configure({ placeholder: e }),
|
|
6769
6769
|
pi,
|
|
6770
|
-
|
|
6771
|
-
onStart: (e) => D(
|
|
6772
|
-
onUpdate: (e) => D(
|
|
6770
|
+
lf(() => x.current, () => ({
|
|
6771
|
+
onStart: (e) => D(ff(e)),
|
|
6772
|
+
onUpdate: (e) => D(ff(e)),
|
|
6773
6773
|
onExit: () => D(null),
|
|
6774
6774
|
onKeyDown: ({ event: e }) => {
|
|
6775
6775
|
var t, n;
|
|
@@ -6781,9 +6781,9 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6781
6781
|
content: T.current,
|
|
6782
6782
|
contentType: "markdown",
|
|
6783
6783
|
editable: !y,
|
|
6784
|
-
editorProps: { attributes: { class:
|
|
6784
|
+
editorProps: { attributes: { class: uf.editable } },
|
|
6785
6785
|
onUpdate: ({ editor: e }) => {
|
|
6786
|
-
t == null || t(e.getMarkdown(), { mentionedIds:
|
|
6786
|
+
t == null || t(e.getMarkdown(), { mentionedIds: sf(e) });
|
|
6787
6787
|
}
|
|
6788
6788
|
});
|
|
6789
6789
|
return d(() => {
|
|
@@ -6796,12 +6796,12 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6796
6796
|
}, [y, k]), p(s, () => ({
|
|
6797
6797
|
clearContent: () => k == null ? void 0 : k.commands.clearContent(!1),
|
|
6798
6798
|
editor: k,
|
|
6799
|
-
getMentionedIds: () =>
|
|
6799
|
+
getMentionedIds: () => sf(k)
|
|
6800
6800
|
}), [k]), /* @__PURE__ */ C("div", {
|
|
6801
|
-
className:
|
|
6801
|
+
className: uf.richTextInput,
|
|
6802
6802
|
"data-testid": o,
|
|
6803
6803
|
children: [
|
|
6804
|
-
/* @__PURE__ */ S(
|
|
6804
|
+
/* @__PURE__ */ S($d, {
|
|
6805
6805
|
editor: k,
|
|
6806
6806
|
disabled: y,
|
|
6807
6807
|
showMentionButton: b && ((c = a == null ? void 0 : a.showMentionButton) == null || c),
|
|
@@ -6812,7 +6812,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6812
6812
|
editor: k,
|
|
6813
6813
|
"data-testid": o && `${o}-editor`
|
|
6814
6814
|
}),
|
|
6815
|
-
b && /* @__PURE__ */ S($i, { children: /* @__PURE__ */ S(
|
|
6815
|
+
b && /* @__PURE__ */ S($i, { children: /* @__PURE__ */ S(df, {
|
|
6816
6816
|
ref: w,
|
|
6817
6817
|
editable: (l = E == null ? void 0 : E.editable) == null ? null : l,
|
|
6818
6818
|
getRect: (f = E == null ? void 0 : E.clientRect) == null ? null : f,
|
|
@@ -6822,13 +6822,13 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6822
6822
|
}) })
|
|
6823
6823
|
]
|
|
6824
6824
|
});
|
|
6825
|
-
})),
|
|
6826
|
-
className:
|
|
6825
|
+
})), mf = ({ children: e }) => /* @__PURE__ */ S("span", {
|
|
6826
|
+
className: uf.mention,
|
|
6827
6827
|
children: e
|
|
6828
|
-
}),
|
|
6828
|
+
}), hf = { row: "_row_n16je_1" }, gf = ({ alignItems: t = "initial", justifyContent: r = "initial", children: i = null, flex: a = !1, height: o = "auto", marginBottom: c = "0", marginTop: l = "0", spacing: u = "var(--padding)", wrap: d = !1, testId: f = null }) => {
|
|
6829
6829
|
let p = typeof u == "number" ? `${u}px` : u, m = (i === null || i === !1 ? [] : Array.isArray(i) ? i.filter((e) => s(e)) : [i]).map((t, r) => /* @__PURE__ */ S(n, { children: t.type === Ko ? e.cloneElement(t, { spacing: p }) : t }, r));
|
|
6830
6830
|
return /* @__PURE__ */ S("div", {
|
|
6831
|
-
className: b(
|
|
6831
|
+
className: b(hf.row),
|
|
6832
6832
|
style: {
|
|
6833
6833
|
alignItems: t,
|
|
6834
6834
|
justifyContent: r,
|
|
@@ -6844,7 +6844,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6844
6844
|
"data-testid": f,
|
|
6845
6845
|
children: m
|
|
6846
6846
|
});
|
|
6847
|
-
},
|
|
6847
|
+
}, _f = {
|
|
6848
6848
|
inputInTable: "_inputInTable_t1w93_1",
|
|
6849
6849
|
inputHover: "_inputHover_t1w93_13",
|
|
6850
6850
|
inputFocus: "_inputFocus_t1w93_18",
|
|
@@ -6864,7 +6864,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6864
6864
|
experimental: "_experimental_t1w93_159",
|
|
6865
6865
|
active: "_active_t1w93_163",
|
|
6866
6866
|
icon: "_icon_t1w93_167"
|
|
6867
|
-
},
|
|
6867
|
+
}, vf = c(({ isOpen: e, label: t, icon: n, invalid: r }) => /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(K, {
|
|
6868
6868
|
text: t,
|
|
6869
6869
|
enabled: !e,
|
|
6870
6870
|
placement: "right-center",
|
|
@@ -6873,7 +6873,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6873
6873
|
padding: "var(--padding-sm)",
|
|
6874
6874
|
display: "block",
|
|
6875
6875
|
children: /* @__PURE__ */ S("span", {
|
|
6876
|
-
className:
|
|
6876
|
+
className: _f.icon,
|
|
6877
6877
|
children: /* @__PURE__ */ S(no, {
|
|
6878
6878
|
small: !0,
|
|
6879
6879
|
title: r ? "!" : void 0,
|
|
@@ -6882,18 +6882,18 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6882
6882
|
})
|
|
6883
6883
|
})
|
|
6884
6884
|
}), /* @__PURE__ */ S("span", {
|
|
6885
|
-
className:
|
|
6885
|
+
className: _f.label,
|
|
6886
6886
|
children: t
|
|
6887
|
-
})] }), (e, t) => Vr(e, t)),
|
|
6888
|
-
className:
|
|
6887
|
+
})] }), (e, t) => Vr(e, t)), yf = ({ isOpen: e, items: t, sectionIndex: n, onClick: r, testId: i }) => /* @__PURE__ */ S("div", {
|
|
6888
|
+
className: _f.list,
|
|
6889
6889
|
children: t.map((t, a) => {
|
|
6890
6890
|
let o = `${n}_${a}`;
|
|
6891
6891
|
return /* @__PURE__ */ S("a", {
|
|
6892
6892
|
href: t.value,
|
|
6893
|
-
className: b(
|
|
6893
|
+
className: b(_f.item, t.isActive ? _f.active : "", t.isExperimental ? _f.experimental : ""),
|
|
6894
6894
|
onClick: (e) => r(e, t.value, t.label, t.onClick),
|
|
6895
6895
|
"data-testid": i,
|
|
6896
|
-
children: /* @__PURE__ */ S(
|
|
6896
|
+
children: /* @__PURE__ */ S(vf, {
|
|
6897
6897
|
label: t.label,
|
|
6898
6898
|
icon: t.icon,
|
|
6899
6899
|
invalid: t.invalid,
|
|
@@ -6901,16 +6901,16 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6901
6901
|
}, o)
|
|
6902
6902
|
}, o);
|
|
6903
6903
|
})
|
|
6904
|
-
}),
|
|
6905
|
-
className:
|
|
6904
|
+
}), bf = ({ isOpen: t, sections: n, onClick: r }) => /* @__PURE__ */ S(x, { children: n.map((n, i) => /* @__PURE__ */ C(e.Fragment, { children: [/* @__PURE__ */ S("h5", {
|
|
6905
|
+
className: _f.subtitle,
|
|
6906
6906
|
children: n.heading.toUpperCase()
|
|
6907
|
-
}), /* @__PURE__ */ S(
|
|
6907
|
+
}), /* @__PURE__ */ S(yf, {
|
|
6908
6908
|
isOpen: t,
|
|
6909
6909
|
items: n.items,
|
|
6910
6910
|
sectionIndex: i,
|
|
6911
6911
|
onClick: r,
|
|
6912
6912
|
testId: n.testId
|
|
6913
|
-
})] }, i)) }),
|
|
6913
|
+
})] }, i)) }), xf = c(({ options: e, startOpen: t = !1, onShiftClickToggleOpen: n = () => {}, top: r, testId: i }) => {
|
|
6914
6914
|
let [a, o] = v(t), s = (e, t, n, r) => {
|
|
6915
6915
|
e.preventDefault(), typeof r == "function" && (e.currentTarget.value = t, e.currentTarget.label = n, r(e)), o(!1);
|
|
6916
6916
|
}, c = e.sections.length > 0;
|
|
@@ -6933,13 +6933,13 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6933
6933
|
testId: i ? `${i}-toggle` : void 0
|
|
6934
6934
|
}),
|
|
6935
6935
|
children: /* @__PURE__ */ S("div", {
|
|
6936
|
-
className: b(
|
|
6936
|
+
className: b(_f.sidebar, a ? "" : _f.collapsed),
|
|
6937
6937
|
children: c && /* @__PURE__ */ C("div", {
|
|
6938
|
-
className:
|
|
6938
|
+
className: _f.inner,
|
|
6939
6939
|
children: [/* @__PURE__ */ S("h4", {
|
|
6940
|
-
className:
|
|
6940
|
+
className: _f.title,
|
|
6941
6941
|
children: e.title
|
|
6942
|
-
}), /* @__PURE__ */ S(
|
|
6942
|
+
}), /* @__PURE__ */ S(bf, {
|
|
6943
6943
|
isOpen: a,
|
|
6944
6944
|
sections: e.sections,
|
|
6945
6945
|
onClick: s
|
|
@@ -6947,18 +6947,18 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6947
6947
|
})
|
|
6948
6948
|
})
|
|
6949
6949
|
});
|
|
6950
|
-
}, (e, t) => Vr(e, t)),
|
|
6950
|
+
}, (e, t) => Vr(e, t)), Sf = {
|
|
6951
6951
|
skeletonContainer: "_skeletonContainer_mcfxp_9",
|
|
6952
6952
|
skeleton: "_skeleton_mcfxp_9"
|
|
6953
|
-
},
|
|
6953
|
+
}, Cf = ({ count: e, width: t, height: n }) => /* @__PURE__ */ S(hi, {
|
|
6954
6954
|
baseColor: "var(--color-skeleton-base)",
|
|
6955
6955
|
highlightColor: "var(--color-skeleton-highlight)",
|
|
6956
|
-
containerClassName:
|
|
6957
|
-
className:
|
|
6956
|
+
containerClassName: Sf.skeletonContainer,
|
|
6957
|
+
className: Sf.skeleton,
|
|
6958
6958
|
count: e,
|
|
6959
6959
|
width: t,
|
|
6960
6960
|
height: n
|
|
6961
|
-
}),
|
|
6961
|
+
}), wf = {
|
|
6962
6962
|
wrapper: "_wrapper_j8x9r_1",
|
|
6963
6963
|
label: "_label_j8x9r_5",
|
|
6964
6964
|
input: "_input_j8x9r_9",
|
|
@@ -6966,38 +6966,38 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
6966
6966
|
editable: "_editable_j8x9r_22",
|
|
6967
6967
|
inputControl: "_inputControl_j8x9r_25",
|
|
6968
6968
|
actions: "_actions_j8x9r_28"
|
|
6969
|
-
},
|
|
6969
|
+
}, Tf = () => {
|
|
6970
6970
|
let e = _(null);
|
|
6971
6971
|
return m(() => {
|
|
6972
6972
|
e.current && (e.current(), e.current = null);
|
|
6973
6973
|
}), (t) => {
|
|
6974
6974
|
e.current = t;
|
|
6975
6975
|
};
|
|
6976
|
-
},
|
|
6976
|
+
}, Ef = (e) => {
|
|
6977
6977
|
let t = _(void 0);
|
|
6978
6978
|
return d(() => {
|
|
6979
6979
|
t.current = e;
|
|
6980
6980
|
}, [e]), t.current;
|
|
6981
|
-
},
|
|
6981
|
+
}, Df = (e, t) => {
|
|
6982
6982
|
let n = t == null ? void 0 : t[e];
|
|
6983
6983
|
if (!n) {
|
|
6984
6984
|
var r;
|
|
6985
6985
|
return console.log(`Warning: 'unitTemplate' missing for '${e}'. Using initial unit, preferred unit or value unit.`), (r = Dr(e)) == null ? "" : r;
|
|
6986
6986
|
}
|
|
6987
6987
|
return n;
|
|
6988
|
-
},
|
|
6988
|
+
}, Of = /* @__PURE__ */ function(e) {
|
|
6989
6989
|
return e.CUSTOM = "custom", e.PREDEFINED = "predefined", e;
|
|
6990
|
-
}({}),
|
|
6990
|
+
}({}), kf = (e) => e === "undefined" || e === void 0 || e === "" || e === "null" || e === null || e === "NaN" || isNaN(e), Af = (e) => {
|
|
6991
6991
|
if (!e) return !1;
|
|
6992
6992
|
let t = dr(e);
|
|
6993
6993
|
return !ar.includes(t);
|
|
6994
|
-
},
|
|
6994
|
+
}, jf = ({ value: e, unitkey: t, toUnit: n }) => {
|
|
6995
6995
|
var r;
|
|
6996
6996
|
let i = ir[t];
|
|
6997
6997
|
if (!i || i.length === 0 || !((r = Or(e)) != null && r.valid) || !i.includes(n)) return !1;
|
|
6998
6998
|
let a = dr(String(e));
|
|
6999
6999
|
return !(a && !i.includes(a));
|
|
7000
|
-
},
|
|
7000
|
+
}, Mf = ({ value: e, unitkey: t, toUnit: n, fromUnit: r, doNotConvertValue: i = !1, exactPrecision: a = !1 }) => {
|
|
7001
7001
|
var o;
|
|
7002
7002
|
let s = _r(e) ? pr(e) : e, c = [Infinity, -Infinity].includes(Number(s));
|
|
7003
7003
|
if (i || c) return {
|
|
@@ -7017,13 +7017,13 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7017
7017
|
value: void 0,
|
|
7018
7018
|
error: "Source unit is missing"
|
|
7019
7019
|
};
|
|
7020
|
-
if (
|
|
7020
|
+
if (kf(s)) return {
|
|
7021
7021
|
value: void 0,
|
|
7022
7022
|
error: "Value is invalid for conversion"
|
|
7023
7023
|
};
|
|
7024
7024
|
try {
|
|
7025
7025
|
let e = Ar(s, l);
|
|
7026
|
-
if (
|
|
7026
|
+
if (jf({
|
|
7027
7027
|
value: e,
|
|
7028
7028
|
toUnit: n,
|
|
7029
7029
|
unitkey: t
|
|
@@ -7044,13 +7044,13 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7044
7044
|
error: "Conversion not possible"
|
|
7045
7045
|
};
|
|
7046
7046
|
}
|
|
7047
|
-
},
|
|
7048
|
-
let a = pr(e), o =
|
|
7049
|
-
return !
|
|
7047
|
+
}, Nf = ({ value: e = "", toUnit: t, unitkey: n, defaultFromUnit: r, doNotConvertValue: i }) => {
|
|
7048
|
+
let a = pr(e), o = kf(a);
|
|
7049
|
+
return !jf({
|
|
7050
7050
|
value: e,
|
|
7051
7051
|
unitkey: n,
|
|
7052
7052
|
toUnit: t
|
|
7053
|
-
}) ||
|
|
7053
|
+
}) || Af(e) || o ? { value: a } : _r(e) ? Mf({
|
|
7054
7054
|
value: e,
|
|
7055
7055
|
unitkey: n,
|
|
7056
7056
|
toUnit: t,
|
|
@@ -7058,25 +7058,25 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7058
7058
|
doNotConvertValue: i,
|
|
7059
7059
|
exactPrecision: !0
|
|
7060
7060
|
}) : { value: e };
|
|
7061
|
-
},
|
|
7061
|
+
}, Pf = (e) => hn(e) && !sn(e) && !fn(e) ? on(e, "fieldName", "") : typeof e == "string" ? e : "", Ff = (e = "") => ar == null ? void 0 : ar.includes(e), If = (e, t) => {
|
|
7062
7062
|
let n = dr(e || "");
|
|
7063
|
-
return
|
|
7064
|
-
},
|
|
7065
|
-
|
|
7066
|
-
},
|
|
7063
|
+
return Ff(t) && Ff(n);
|
|
7064
|
+
}, Lf = i(null), Rf = () => u(Lf), zf = !1, Bf = (e) => {
|
|
7065
|
+
zf || (zf = !0, Lf = e);
|
|
7066
|
+
}, Vf = (e) => hr(e) ? e : yr(e), Hf = {
|
|
7067
7067
|
predefinedMenuActive: "_predefinedMenuActive_ye9w9_1",
|
|
7068
7068
|
inputWrapper: "_inputWrapper_ye9w9_4"
|
|
7069
|
-
},
|
|
7069
|
+
}, Uf = ({ name: e, placeholder: t = "", disabled: n = !1, disabledUnit: r = !1, error: i = null, left: a = !1, small: o = !1, width: s = "100%", value: c, unitkey: l = "", initUnit: u, noConversion: f = !1, onChange: p = yn, onClick: m = yn, onFocus: g = yn, onSwitchUnit: _ = yn, unitTemplate: y, testId: w, warning: T = null, predefinedOptions: E, initialPredefinedOption: D = !1, shouldLinkAutomaticly: O = !0, selectedPredefinedOptionKey: k, validationCallback: A = () => ({
|
|
7070
7070
|
name: "",
|
|
7071
7071
|
error: null
|
|
7072
7072
|
}), disabledValidation: j = !1, allowEmpty: M = !1, convertBackToStorageUnit: N = !1, enableCosmeticRounding: P = !0, enableDisplayRounding: F = !1, roundDisplayValue: I, selectOnFocus: L = !0, groupOrder: R, tooltip: z = null }) => {
|
|
7073
|
-
let B =
|
|
7073
|
+
let B = Rf(), ee = Tf();
|
|
7074
7074
|
typeof c == "number" && (c = `${c}`);
|
|
7075
|
-
let [te = "", ne = ""] = c === void 0 ? [] : Cr(c), V = h(() =>
|
|
7075
|
+
let [te = "", ne = ""] = c === void 0 ? [] : Cr(c), V = h(() => Df(l, y || (B == null ? void 0 : B.unitTemplate)), [
|
|
7076
7076
|
l,
|
|
7077
7077
|
y,
|
|
7078
7078
|
B == null ? void 0 : B.unitTemplate
|
|
7079
|
-
]), re =
|
|
7079
|
+
]), re = If(c, V), ie = u || V || ne, ae = Ef(ie), { value: oe } = Nf({
|
|
7080
7080
|
value: c,
|
|
7081
7081
|
toUnit: ie,
|
|
7082
7082
|
unitkey: l,
|
|
@@ -7088,10 +7088,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7088
7088
|
} : {
|
|
7089
7089
|
value: oe,
|
|
7090
7090
|
unit: ie
|
|
7091
|
-
}), le = M || (se == null ? void 0 : se.value) === void 0, [ue, de] = v(D ?
|
|
7091
|
+
}), le = M || (se == null ? void 0 : se.value) === void 0, [ue, de] = v(D ? Of.PREDEFINED : Of.CUSTOM), fe = !!(j || n), pe = E && E.find((e) => {
|
|
7092
7092
|
if (!(e != null && e.value)) return;
|
|
7093
7093
|
if (k) return k === e.valueKey;
|
|
7094
|
-
let t = _r(e.value) ? dr(e.value) : "", { value: n = c } =
|
|
7094
|
+
let t = _r(e.value) ? dr(e.value) : "", { value: n = c } = Mf({
|
|
7095
7095
|
value: String(c),
|
|
7096
7096
|
unitkey: l,
|
|
7097
7097
|
toUnit: t
|
|
@@ -7100,7 +7100,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7100
7100
|
}), me = () => {
|
|
7101
7101
|
var e;
|
|
7102
7102
|
let t = (e = c) == null ? "" : e, n = se.unit;
|
|
7103
|
-
if (!
|
|
7103
|
+
if (!jf({
|
|
7104
7104
|
value: t,
|
|
7105
7105
|
unitkey: l,
|
|
7106
7106
|
toUnit: n
|
|
@@ -7115,7 +7115,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7115
7115
|
return null;
|
|
7116
7116
|
}
|
|
7117
7117
|
}, he = (t) => {
|
|
7118
|
-
let n =
|
|
7118
|
+
let n = Pf(e), r = t.target, { value: i, selectionStart: a } = r, o = Ar(i, (se == null ? void 0 : se.unit) || "");
|
|
7119
7119
|
p({ target: {
|
|
7120
7120
|
value: N ? Ar(cr(o, ne), ne) : o,
|
|
7121
7121
|
name: n
|
|
@@ -7137,7 +7137,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7137
7137
|
if (ie) {
|
|
7138
7138
|
let e, t = "";
|
|
7139
7139
|
if (ae !== ie) {
|
|
7140
|
-
let { value: n } =
|
|
7140
|
+
let { value: n } = Nf({
|
|
7141
7141
|
value: c,
|
|
7142
7142
|
toUnit: ie,
|
|
7143
7143
|
unitkey: l,
|
|
@@ -7146,7 +7146,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7146
7146
|
});
|
|
7147
7147
|
e = n, t = ie;
|
|
7148
7148
|
} else if (Ar(se.value, se.unit) !== c) {
|
|
7149
|
-
let { value: n } =
|
|
7149
|
+
let { value: n } = Nf({
|
|
7150
7150
|
value: c,
|
|
7151
7151
|
toUnit: se.unit,
|
|
7152
7152
|
unitkey: l,
|
|
@@ -7158,7 +7158,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7158
7158
|
e !== void 0 && ce({
|
|
7159
7159
|
value: e,
|
|
7160
7160
|
unit: t
|
|
7161
|
-
}), de(E && pe && O ?
|
|
7161
|
+
}), de(E && pe && O ? Of.PREDEFINED : Of.CUSTOM);
|
|
7162
7162
|
}
|
|
7163
7163
|
}, [
|
|
7164
7164
|
ie,
|
|
@@ -7166,14 +7166,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7166
7166
|
i,
|
|
7167
7167
|
O
|
|
7168
7168
|
]);
|
|
7169
|
-
let _e = me(), ve = vr(se.unit) || se.unit || "", ye = f || !_e || _e && _e.length === 1, be =
|
|
7169
|
+
let _e = me(), ve = vr(se.unit) || se.unit || "", ye = f || !_e || _e && _e.length === 1, be = Pf(e), xe, Se = (t) => {
|
|
7170
7170
|
let r = t != null && t.value ? t.value : "", [i = "", a = ""] = _r(r) ? Cr(r) : [r], o = kr(r);
|
|
7171
|
-
if (
|
|
7171
|
+
if (jf({
|
|
7172
7172
|
value: r,
|
|
7173
7173
|
unitkey: l,
|
|
7174
7174
|
toUnit: a
|
|
7175
7175
|
})) {
|
|
7176
|
-
let { value: e = "" } =
|
|
7176
|
+
let { value: e = "" } = Nf({
|
|
7177
7177
|
value: r,
|
|
7178
7178
|
toUnit: V,
|
|
7179
7179
|
unitkey: l,
|
|
@@ -7186,7 +7186,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7186
7186
|
type: Ga.OPTION,
|
|
7187
7187
|
inline: !0,
|
|
7188
7188
|
onClick: () => {
|
|
7189
|
-
Or(i).valid && !n && (de(
|
|
7189
|
+
Or(i).valid && !n && (de(Of.PREDEFINED), p({ target: {
|
|
7190
7190
|
value: r,
|
|
7191
7191
|
name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || "",
|
|
7192
7192
|
predefinedSelected: !0,
|
|
@@ -7198,27 +7198,27 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7198
7198
|
height: "0"
|
|
7199
7199
|
})] }),
|
|
7200
7200
|
description: o,
|
|
7201
|
-
selected: pe === t && ue ===
|
|
7201
|
+
selected: pe === t && ue === Of.PREDEFINED
|
|
7202
7202
|
};
|
|
7203
7203
|
};
|
|
7204
7204
|
if (xe = [{
|
|
7205
7205
|
type: Ga.OPTION,
|
|
7206
7206
|
inline: !0,
|
|
7207
7207
|
onClick: () => {
|
|
7208
|
-
ue !==
|
|
7208
|
+
ue !== Of.CUSTOM && !n && p({ target: {
|
|
7209
7209
|
value: Ar(se.value, se.unit),
|
|
7210
7210
|
name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || ""
|
|
7211
7211
|
} });
|
|
7212
7212
|
},
|
|
7213
7213
|
label: "Custom",
|
|
7214
|
-
selected: ue ===
|
|
7214
|
+
selected: ue === Of.CUSTOM
|
|
7215
7215
|
}], E != null && E.length) {
|
|
7216
7216
|
let e = E.map(Se);
|
|
7217
7217
|
xe = [...xe, ...e];
|
|
7218
7218
|
}
|
|
7219
7219
|
let Ce = (e) => {
|
|
7220
7220
|
if (_r(e)) {
|
|
7221
|
-
let t = dr(e), { value: n } =
|
|
7221
|
+
let t = dr(e), { value: n } = Nf({
|
|
7222
7222
|
value: e,
|
|
7223
7223
|
toUnit: se.unit,
|
|
7224
7224
|
unitkey: l,
|
|
@@ -7230,7 +7230,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7230
7230
|
return e;
|
|
7231
7231
|
}, we = !E && (!R || R === H.FIRST) ? H.FIRST : H.MIDDLE, Te = !R || R === H.LAST ? H.LAST : H.MIDDLE;
|
|
7232
7232
|
return /* @__PURE__ */ S("div", {
|
|
7233
|
-
className: ue ===
|
|
7233
|
+
className: ue === Of.PREDEFINED ? b(Hf.predefinedMenuActive) : "",
|
|
7234
7234
|
children: /* @__PURE__ */ C(ps, {
|
|
7235
7235
|
small: o,
|
|
7236
7236
|
width: s,
|
|
@@ -7245,17 +7245,17 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7245
7245
|
trigger: "Component",
|
|
7246
7246
|
component: /* @__PURE__ */ S(q, {
|
|
7247
7247
|
groupOrder: "first",
|
|
7248
|
-
active: ue ===
|
|
7249
|
-
icon: ue ===
|
|
7248
|
+
active: ue === Of.PREDEFINED,
|
|
7249
|
+
icon: ue === Of.PREDEFINED ? "link" : "unlink",
|
|
7250
7250
|
small: o
|
|
7251
7251
|
}),
|
|
7252
7252
|
small: o,
|
|
7253
7253
|
sections: xe
|
|
7254
7254
|
},
|
|
7255
|
-
tooltip: ue ===
|
|
7255
|
+
tooltip: ue === Of.PREDEFINED ? pe == null ? void 0 : pe.label : ""
|
|
7256
7256
|
}),
|
|
7257
7257
|
/* @__PURE__ */ S("div", {
|
|
7258
|
-
className:
|
|
7258
|
+
className: Hf.inputWrapper,
|
|
7259
7259
|
children: /* @__PURE__ */ S(yl, {
|
|
7260
7260
|
name: be,
|
|
7261
7261
|
testId: w,
|
|
@@ -7297,7 +7297,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7297
7297
|
let r = n || t || "", i = gr(e) ? e : "";
|
|
7298
7298
|
return {
|
|
7299
7299
|
type: "Option",
|
|
7300
|
-
label: P ?
|
|
7300
|
+
label: P ? Vf(i) : i,
|
|
7301
7301
|
inline: !0,
|
|
7302
7302
|
onClick: (n) => {
|
|
7303
7303
|
n.stopPropagation(), ge(e, t);
|
|
@@ -7312,10 +7312,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7312
7312
|
]
|
|
7313
7313
|
})
|
|
7314
7314
|
});
|
|
7315
|
-
},
|
|
7315
|
+
}, Wf = (e, t) => ({ target: {
|
|
7316
7316
|
name: e,
|
|
7317
7317
|
value: t
|
|
7318
|
-
} }),
|
|
7318
|
+
} }), Gf = (e) => `Value cannot be less than ${e}`, Kf = (e) => `Value cannot be greater than ${e}`, qf = ({ 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 = Gf, maxErrorMessage: T = Kf }) => {
|
|
7319
7319
|
let E = Ar(t, c), [D, O] = v(E), [k, A] = v(!1), [j, M] = v(c);
|
|
7320
7320
|
d(() => {
|
|
7321
7321
|
k || O(E);
|
|
@@ -7333,7 +7333,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7333
7333
|
}, z = () => {
|
|
7334
7334
|
O(E), A(!1);
|
|
7335
7335
|
}, B = () => {
|
|
7336
|
-
L || I === null || (o(
|
|
7336
|
+
L || I === null || (o(Wf(e, I)), s == null || s(Wf(e, I)), A(!1));
|
|
7337
7337
|
}, ee = (e) => {
|
|
7338
7338
|
M(e), l == null || l(e);
|
|
7339
7339
|
}, te = (e) => {
|
|
@@ -7348,7 +7348,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7348
7348
|
}, ne = (e) => {
|
|
7349
7349
|
e.key === "Enter" && B(), e.key === "Escape" && z();
|
|
7350
7350
|
}, V = f || k, re = /* @__PURE__ */ C("div", {
|
|
7351
|
-
className:
|
|
7351
|
+
className: wf.actions,
|
|
7352
7352
|
children: [/* @__PURE__ */ S(q, {
|
|
7353
7353
|
icon: "close",
|
|
7354
7354
|
small: !0,
|
|
@@ -7363,18 +7363,18 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7363
7363
|
})]
|
|
7364
7364
|
});
|
|
7365
7365
|
return /* @__PURE__ */ C("div", {
|
|
7366
|
-
className:
|
|
7366
|
+
className: wf.wrapper,
|
|
7367
7367
|
"data-testid": g && `${g}-wrapper`,
|
|
7368
7368
|
children: [
|
|
7369
7369
|
i && /* @__PURE__ */ S("span", {
|
|
7370
|
-
className:
|
|
7370
|
+
className: wf.label,
|
|
7371
7371
|
children: /* @__PURE__ */ S(Yo, {
|
|
7372
7372
|
small: y,
|
|
7373
7373
|
children: i
|
|
7374
7374
|
})
|
|
7375
7375
|
}),
|
|
7376
7376
|
p && /* @__PURE__ */ S("div", {
|
|
7377
|
-
className: b(
|
|
7377
|
+
className: b(wf.input, y && wf.inputSmall, u && !f && wf.editable),
|
|
7378
7378
|
children: /* @__PURE__ */ S(So, {
|
|
7379
7379
|
content: re,
|
|
7380
7380
|
isOpen: k,
|
|
@@ -7388,11 +7388,11 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7388
7388
|
testId: g && `${g}-edit-popover`,
|
|
7389
7389
|
toggleOnTriggerClick: !1,
|
|
7390
7390
|
children: /* @__PURE__ */ S("div", {
|
|
7391
|
-
className:
|
|
7391
|
+
className: wf.inputControl,
|
|
7392
7392
|
"data-testid": g && `${g}-edit-trigger`,
|
|
7393
7393
|
onClick: R,
|
|
7394
7394
|
onKeyDown: ne,
|
|
7395
|
-
children: /* @__PURE__ */ S(
|
|
7395
|
+
children: /* @__PURE__ */ S(Uf, {
|
|
7396
7396
|
name: e,
|
|
7397
7397
|
value: k ? D : E,
|
|
7398
7398
|
unitkey: h,
|
|
@@ -7427,7 +7427,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7427
7427
|
})
|
|
7428
7428
|
]
|
|
7429
7429
|
});
|
|
7430
|
-
},
|
|
7430
|
+
}, Jf = ({ label: e, invalid: t, badge: n }) => t ? /* @__PURE__ */ S(no, {
|
|
7431
7431
|
small: !0,
|
|
7432
7432
|
margin: "-4px",
|
|
7433
7433
|
color: "var(--color-text-error)",
|
|
@@ -7438,7 +7438,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7438
7438
|
margin: "-4px",
|
|
7439
7439
|
title: n == null ? void 0 : n.toString(),
|
|
7440
7440
|
children: e
|
|
7441
|
-
}) : /* @__PURE__ */ S(x, { children: e }),
|
|
7441
|
+
}) : /* @__PURE__ */ S(x, { children: e }), Yf = {
|
|
7442
7442
|
tabs: "_tabs_vkne2_1",
|
|
7443
7443
|
padding: "_padding_vkne2_7",
|
|
7444
7444
|
margin: "_margin_vkne2_11",
|
|
@@ -7447,7 +7447,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7447
7447
|
left: "_left_vkne2_64",
|
|
7448
7448
|
right: "_right_vkne2_64",
|
|
7449
7449
|
selectionIndicator: "_selectionIndicator_vkne2_67"
|
|
7450
|
-
},
|
|
7450
|
+
}, Xf = ({ name: e = void 0, options: t = null, value: n = void 0, onChange: r = yn, padding: i = !1, margin: a = !0, testId: o, linkComponent: s }) => {
|
|
7451
7451
|
let c = u(W), { simpleInputs: l, options: d, selectedOptions: f } = $c(t, n), p = pn(f) ? void 0 : l ? f : f.value, m = (e) => {
|
|
7452
7452
|
var t;
|
|
7453
7453
|
return (t = e.component) == null ? s : t;
|
|
@@ -7473,7 +7473,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7473
7473
|
...p ? { href: p } : {},
|
|
7474
7474
|
shouldSelectOnPressUp: !0,
|
|
7475
7475
|
isDisabled: i || c,
|
|
7476
|
-
className: b(
|
|
7476
|
+
className: b(Yf.item, o ? Yf.right : Yf.left),
|
|
7477
7477
|
"data-testid": u,
|
|
7478
7478
|
render: d && f ? (e) => "href" in e ? /* @__PURE__ */ S(f, {
|
|
7479
7479
|
...e,
|
|
@@ -7483,11 +7483,11 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7483
7483
|
(n = e.onClick) == null || n.call(e, t), v(t, a);
|
|
7484
7484
|
}
|
|
7485
7485
|
}) : /* @__PURE__ */ S("div", { ...e }) : void 0,
|
|
7486
|
-
children: [/* @__PURE__ */ S(
|
|
7486
|
+
children: [/* @__PURE__ */ S(Jf, {
|
|
7487
7487
|
label: t,
|
|
7488
7488
|
invalid: s,
|
|
7489
7489
|
badge: l
|
|
7490
|
-
}), /* @__PURE__ */ S(gi, { className:
|
|
7490
|
+
}), /* @__PURE__ */ S(gi, { className: Yf.selectionIndicator })]
|
|
7491
7491
|
}, a);
|
|
7492
7492
|
};
|
|
7493
7493
|
if (d) {
|
|
@@ -7497,7 +7497,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7497
7497
|
"data-testid": o,
|
|
7498
7498
|
children: /* @__PURE__ */ S(vi, {
|
|
7499
7499
|
"aria-label": e == null ? "Tabs" : e,
|
|
7500
|
-
className: b(
|
|
7500
|
+
className: b(Yf.tabs, i ? Yf.padding : "", a ? Yf.margin : ""),
|
|
7501
7501
|
children: y.map(w)
|
|
7502
7502
|
})
|
|
7503
7503
|
});
|
|
@@ -7507,7 +7507,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7507
7507
|
}) : t;
|
|
7508
7508
|
}
|
|
7509
7509
|
return null;
|
|
7510
|
-
},
|
|
7510
|
+
}, Zf = ({ children: e, href: t = void 0, target: n = void 0, testId: r, onClick: i, component: a = "a" }) => /* @__PURE__ */ S(a, {
|
|
7511
7511
|
href: t,
|
|
7512
7512
|
to: t,
|
|
7513
7513
|
target: n,
|
|
@@ -7517,7 +7517,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7517
7517
|
link: !0,
|
|
7518
7518
|
children: e
|
|
7519
7519
|
})
|
|
7520
|
-
}),
|
|
7520
|
+
}), Qf = {
|
|
7521
7521
|
inputInTable: "_inputInTable_qbe2o_1",
|
|
7522
7522
|
inputHover: "_inputHover_qbe2o_13",
|
|
7523
7523
|
inputFocus: "_inputFocus_qbe2o_18",
|
|
@@ -7529,9 +7529,9 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7529
7529
|
textarea: "_textarea_qbe2o_81",
|
|
7530
7530
|
small: "_small_qbe2o_120",
|
|
7531
7531
|
monospace: "_monospace_qbe2o_159"
|
|
7532
|
-
},
|
|
7532
|
+
}, $f = ({ name: e, value: t = "", placeholder: n = "", cols: r, rows: i, disabled: a = !1, onChange: o = yn, onKeyPress: s = yn, onFocus: c = yn, onBlur: l = yn, tabIndex: d = 0, error: f = null, warning: p = null, tooltip: m = null, maxTooltipWidth: h, resize: g, monospace: _ = !1, small: v = !1, testId: y }) => {
|
|
7533
7533
|
let x = u(W), C = /* @__PURE__ */ S("textarea", {
|
|
7534
|
-
className: b(
|
|
7534
|
+
className: b(Qf.textarea, f ? Qf.error : "", p ? Qf.warning : "", _ ? Qf.monospace : "", v ? Qf.small : ""),
|
|
7535
7535
|
name: e,
|
|
7536
7536
|
value: t,
|
|
7537
7537
|
placeholder: n,
|
|
@@ -7573,10 +7573,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7573
7573
|
menu: "_menu_oyr59_139",
|
|
7574
7574
|
active: "_active_oyr59_168",
|
|
7575
7575
|
alert: "_alert_oyr59_193"
|
|
7576
|
-
},
|
|
7576
|
+
}, ep = ({ warning: e }) => /* @__PURE__ */ S("div", {
|
|
7577
7577
|
className: Q.alert,
|
|
7578
7578
|
children: e
|
|
7579
|
-
}),
|
|
7579
|
+
}), tp = ({ icon: e, url: t, onClick: n }) => {
|
|
7580
7580
|
let r = /* @__PURE__ */ S(G, { icon: e });
|
|
7581
7581
|
return t ? /* @__PURE__ */ S("a", {
|
|
7582
7582
|
href: t,
|
|
@@ -7588,7 +7588,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7588
7588
|
className: Q.appSwitcher,
|
|
7589
7589
|
children: r
|
|
7590
7590
|
});
|
|
7591
|
-
},
|
|
7591
|
+
}, np = ({ label: e, logo: t, url: n, version: r, onClick: i }) => {
|
|
7592
7592
|
let a = /* @__PURE__ */ C("div", {
|
|
7593
7593
|
className: Q.title,
|
|
7594
7594
|
children: [
|
|
@@ -7617,9 +7617,9 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7617
7617
|
children: a
|
|
7618
7618
|
})
|
|
7619
7619
|
});
|
|
7620
|
-
},
|
|
7620
|
+
}, rp = /* @__PURE__ */ function(e) {
|
|
7621
7621
|
return e.LINK = "Link", e.BUTTON = "Button", e.MENU = "Menu", e.COMPONENT = "Component", e;
|
|
7622
|
-
}({}),
|
|
7622
|
+
}({}), ip = ({ label: e, url: t, icon: n, onClick: r, active: i, disabled: a, testId: o, component: s = "a" }) => {
|
|
7623
7623
|
let c = u(W);
|
|
7624
7624
|
return /* @__PURE__ */ C(s, {
|
|
7625
7625
|
className: b(Q.link, i ? Q.active : ""),
|
|
@@ -7636,11 +7636,11 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7636
7636
|
children: e
|
|
7637
7637
|
})]
|
|
7638
7638
|
});
|
|
7639
|
-
},
|
|
7639
|
+
}, ap = ({ element: e }) => {
|
|
7640
7640
|
switch (e.type) {
|
|
7641
|
-
case
|
|
7641
|
+
case rp.LINK: return /* @__PURE__ */ S("div", {
|
|
7642
7642
|
className: Q.item,
|
|
7643
|
-
children: /* @__PURE__ */ S(
|
|
7643
|
+
children: /* @__PURE__ */ S(ip, {
|
|
7644
7644
|
label: e.label,
|
|
7645
7645
|
url: e.url,
|
|
7646
7646
|
icon: e.icon,
|
|
@@ -7651,7 +7651,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7651
7651
|
component: e.component
|
|
7652
7652
|
})
|
|
7653
7653
|
});
|
|
7654
|
-
case
|
|
7654
|
+
case rp.BUTTON: return /* @__PURE__ */ S("div", {
|
|
7655
7655
|
className: b(Q.item, Q.button),
|
|
7656
7656
|
children: /* @__PURE__ */ S(q, {
|
|
7657
7657
|
label: e.label,
|
|
@@ -7663,14 +7663,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7663
7663
|
testId: e.testId
|
|
7664
7664
|
})
|
|
7665
7665
|
});
|
|
7666
|
-
case
|
|
7666
|
+
case rp.MENU: return /* @__PURE__ */ S("div", {
|
|
7667
7667
|
className: b(Q.item, Q.menu),
|
|
7668
7668
|
children: /* @__PURE__ */ S(lo, {
|
|
7669
7669
|
maxHeight: "100%",
|
|
7670
7670
|
menu: {
|
|
7671
7671
|
trigger: Di.COMPONENT,
|
|
7672
7672
|
placement: "bottom-start",
|
|
7673
|
-
component: /* @__PURE__ */ S(
|
|
7673
|
+
component: /* @__PURE__ */ S(ip, {
|
|
7674
7674
|
label: e.label,
|
|
7675
7675
|
icon: e.icon,
|
|
7676
7676
|
onClick: e.onClick
|
|
@@ -7679,50 +7679,50 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7679
7679
|
}
|
|
7680
7680
|
})
|
|
7681
7681
|
});
|
|
7682
|
-
case
|
|
7682
|
+
case rp.COMPONENT: return /* @__PURE__ */ S("div", {
|
|
7683
7683
|
className: Q.item,
|
|
7684
7684
|
children: e.component
|
|
7685
7685
|
});
|
|
7686
7686
|
default: return null;
|
|
7687
7687
|
}
|
|
7688
|
-
},
|
|
7688
|
+
}, op = ({ 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(ep, { warning: i }), /* @__PURE__ */ C("div", {
|
|
7689
7689
|
className: b(Q.topbar, o ? Q.fixed : ""),
|
|
7690
7690
|
style: { height: a },
|
|
7691
7691
|
children: [
|
|
7692
|
-
!!t && /* @__PURE__ */ S(
|
|
7692
|
+
!!t && /* @__PURE__ */ S(tp, {
|
|
7693
7693
|
icon: t.icon,
|
|
7694
7694
|
url: t.url,
|
|
7695
7695
|
onClick: t.onClick
|
|
7696
7696
|
}),
|
|
7697
7697
|
/* @__PURE__ */ C("div", {
|
|
7698
7698
|
className: Q.left,
|
|
7699
|
-
children: [e && /* @__PURE__ */ S(
|
|
7699
|
+
children: [e && /* @__PURE__ */ S(np, {
|
|
7700
7700
|
label: e.label,
|
|
7701
7701
|
logo: e.logo,
|
|
7702
7702
|
url: e.url,
|
|
7703
7703
|
version: e.version,
|
|
7704
7704
|
onClick: e.onClick
|
|
7705
|
-
}), n.map((e, t) => e ? /* @__PURE__ */ S(
|
|
7705
|
+
}), n.map((e, t) => e ? /* @__PURE__ */ S(ap, { element: e }, t) : null)]
|
|
7706
7706
|
}),
|
|
7707
7707
|
/* @__PURE__ */ S("div", {
|
|
7708
7708
|
className: Q.right,
|
|
7709
|
-
children: r.map((e, t) => e ? /* @__PURE__ */ S(
|
|
7709
|
+
children: r.map((e, t) => e ? /* @__PURE__ */ S(ap, { element: e }, t) : null)
|
|
7710
7710
|
})
|
|
7711
7711
|
]
|
|
7712
|
-
})] }),
|
|
7712
|
+
})] }), sp = {
|
|
7713
7713
|
popConfirm: "_popConfirm_1x6ye_1",
|
|
7714
7714
|
content: "_content_1x6ye_7",
|
|
7715
7715
|
buttons: "_buttons_1x6ye_13"
|
|
7716
|
-
},
|
|
7717
|
-
className:
|
|
7716
|
+
}, cp = ({ title: e, okText: t, onClickOk: n, disableConfirmButton: r, cancelText: i, onClickCancel: a, close: o, testId: s }) => /* @__PURE__ */ C("div", {
|
|
7717
|
+
className: sp.popConfirm,
|
|
7718
7718
|
children: [e && /* @__PURE__ */ S("div", {
|
|
7719
|
-
className:
|
|
7719
|
+
className: sp.content,
|
|
7720
7720
|
children: /* @__PURE__ */ S(Yo, {
|
|
7721
7721
|
small: !0,
|
|
7722
7722
|
children: e
|
|
7723
7723
|
})
|
|
7724
7724
|
}), /* @__PURE__ */ C("div", {
|
|
7725
|
-
className:
|
|
7725
|
+
className: sp.buttons,
|
|
7726
7726
|
children: [/* @__PURE__ */ S(q, {
|
|
7727
7727
|
small: !0,
|
|
7728
7728
|
colored: !0,
|
|
@@ -7737,8 +7737,8 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7737
7737
|
testId: `${s}-cancel-button`
|
|
7738
7738
|
})]
|
|
7739
7739
|
})]
|
|
7740
|
-
}),
|
|
7741
|
-
content: /* @__PURE__ */ S(
|
|
7740
|
+
}), lp = ({ children: e, placement: t = "top-center", closeOnOutsideClick: n = !0, fullWidth: r = !1, title: i = "", cancelText: a = "Cancel", onClickCancel: o = (e) => e && e(), okText: s = "Ok", onClickOk: c = () => {}, disableConfirmButton: l = !1, testId: u = void 0 }) => /* @__PURE__ */ S(So, {
|
|
7741
|
+
content: /* @__PURE__ */ S(cp, {
|
|
7742
7742
|
title: i,
|
|
7743
7743
|
okText: s,
|
|
7744
7744
|
onClickOk: c,
|
|
@@ -7752,14 +7752,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7752
7752
|
fullWidth: r,
|
|
7753
7753
|
testId: u,
|
|
7754
7754
|
children: e
|
|
7755
|
-
}),
|
|
7755
|
+
}), up = {
|
|
7756
7756
|
tree: "_tree_coxxe_1",
|
|
7757
7757
|
toggle: "_toggle_coxxe_8",
|
|
7758
7758
|
dropTarget: "_dropTarget_coxxe_15",
|
|
7759
7759
|
placeholder: "_placeholder_coxxe_30",
|
|
7760
7760
|
draggingSource: "_draggingSource_coxxe_36",
|
|
7761
7761
|
placeholderContainer: "_placeholderContainer_coxxe_39"
|
|
7762
|
-
},
|
|
7762
|
+
}, dp = ({ node: t, depth: n, isOpen: r, onToggle: i, hasChild: a, draggable: o, icons: s, onDrop: c }) => {
|
|
7763
7763
|
let { id: l, data: u } = t, { active: d, disabled: f, testId: p, onClick: m, actions: h = [] } = u, [g, _] = e.useState(!1), [v, y] = e.useState(0), x = (e) => {
|
|
7764
7764
|
e.stopPropagation(), i(l);
|
|
7765
7765
|
}, w = (e) => {
|
|
@@ -7786,7 +7786,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7786
7786
|
className: b(Z.itemHeader, g ? Z.noPointerEvents : ""),
|
|
7787
7787
|
children: [
|
|
7788
7788
|
a && /* @__PURE__ */ S("div", {
|
|
7789
|
-
className:
|
|
7789
|
+
className: up.toggle,
|
|
7790
7790
|
children: /* @__PURE__ */ S(q, {
|
|
7791
7791
|
basic: !0,
|
|
7792
7792
|
colored: r ? !0 : Oi.MUTED,
|
|
@@ -7800,10 +7800,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7800
7800
|
className: Z.drag,
|
|
7801
7801
|
children: /* @__PURE__ */ S(G, { icon: U.DRAG })
|
|
7802
7802
|
}),
|
|
7803
|
-
/* @__PURE__ */ S(
|
|
7803
|
+
/* @__PURE__ */ S(Dd, { item: u }),
|
|
7804
7804
|
/* @__PURE__ */ C("div", {
|
|
7805
7805
|
className: Z.right,
|
|
7806
|
-
children: [/* @__PURE__ */ S(
|
|
7806
|
+
children: [/* @__PURE__ */ S(Od, { item: u }), !f && h.length > 0 && /* @__PURE__ */ S("div", {
|
|
7807
7807
|
className: Z.actions,
|
|
7808
7808
|
children: /* @__PURE__ */ S(fo, { actions: h })
|
|
7809
7809
|
})]
|
|
@@ -7811,10 +7811,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7811
7811
|
]
|
|
7812
7812
|
})
|
|
7813
7813
|
});
|
|
7814
|
-
},
|
|
7815
|
-
className:
|
|
7814
|
+
}, fp = ({ depth: e, indent: t = "var(--size-sm)" }) => /* @__PURE__ */ S("div", {
|
|
7815
|
+
className: up.placeholder,
|
|
7816
7816
|
style: { left: `calc(${t} * ${e})` }
|
|
7817
|
-
}),
|
|
7817
|
+
}), pp = ({ 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 }) => {
|
|
7818
7818
|
var y;
|
|
7819
7819
|
let b = c == null ? _(null) : c, x = (e) => {
|
|
7820
7820
|
i && i(e);
|
|
@@ -7872,7 +7872,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7872
7872
|
"data-testid": a,
|
|
7873
7873
|
className: Z.list,
|
|
7874
7874
|
style: { height: h },
|
|
7875
|
-
children: [e.name && !e.noHeader && /* @__PURE__ */ S(
|
|
7875
|
+
children: [e.name && !e.noHeader && /* @__PURE__ */ S(wd, {
|
|
7876
7876
|
name: e.name,
|
|
7877
7877
|
actions: e.actions,
|
|
7878
7878
|
stickyHeader: m
|
|
@@ -7899,7 +7899,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7899
7899
|
hasChild: r,
|
|
7900
7900
|
isOpen: a,
|
|
7901
7901
|
onToggle: o
|
|
7902
|
-
}) : /* @__PURE__ */ S(
|
|
7902
|
+
}) : /* @__PURE__ */ S(dp, {
|
|
7903
7903
|
hasChild: l ? l(e) : r,
|
|
7904
7904
|
node: e,
|
|
7905
7905
|
depth: t,
|
|
@@ -7915,7 +7915,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7915
7915
|
onDrop: A,
|
|
7916
7916
|
onChangeOpen: x,
|
|
7917
7917
|
dropTargetOffset: 10,
|
|
7918
|
-
placeholderRender: (e, { depth: t }) => /* @__PURE__ */ S(
|
|
7918
|
+
placeholderRender: (e, { depth: t }) => /* @__PURE__ */ S(fp, {
|
|
7919
7919
|
depth: t,
|
|
7920
7920
|
indent: v
|
|
7921
7921
|
}),
|
|
@@ -7923,17 +7923,17 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7923
7923
|
listComponent: "div",
|
|
7924
7924
|
listItemComponent: "div",
|
|
7925
7925
|
classes: {
|
|
7926
|
-
root:
|
|
7927
|
-
draggingSource:
|
|
7928
|
-
dropTarget:
|
|
7929
|
-
placeholder:
|
|
7926
|
+
root: up.tree,
|
|
7927
|
+
draggingSource: up.draggingSource,
|
|
7928
|
+
dropTarget: up.dropTarget,
|
|
7929
|
+
placeholder: up.placeholderContainer
|
|
7930
7930
|
},
|
|
7931
7931
|
initialOpen: o,
|
|
7932
7932
|
enableAnimateExpand: !0
|
|
7933
7933
|
})
|
|
7934
7934
|
})]
|
|
7935
7935
|
});
|
|
7936
|
-
},
|
|
7936
|
+
}, mp = {
|
|
7937
7937
|
treeTable: "_treeTable_1ywvy_1",
|
|
7938
7938
|
treeTableHeader: "_treeTableHeader_1ywvy_22",
|
|
7939
7939
|
folderCell: "_folderCell_1ywvy_30",
|
|
@@ -7941,48 +7941,48 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7941
7941
|
drag: "_drag_1ywvy_31",
|
|
7942
7942
|
folder: "_folder_1ywvy_30",
|
|
7943
7943
|
active: "_active_1ywvy_61"
|
|
7944
|
-
},
|
|
7944
|
+
}, hp = (e, t) => e.filter((e) => e.parent === t).flatMap((t) => [t.id, ...hp(e, t.id)]), gp = (e, t) => {
|
|
7945
7945
|
let n = new Set(t);
|
|
7946
7946
|
return e.filter((e) => !n.has(e.id)).map((e) => e.id);
|
|
7947
|
-
},
|
|
7947
|
+
}, _p = (e, t, n) => e.filter((e) => n.has(e) || !t.has(e)), vp = (e, t, n, r = []) => {
|
|
7948
7948
|
let i = new Set(n), a = new Set(r), o = e.filter((e) => e.parent === t && !a.has(e.id));
|
|
7949
7949
|
if (o.length === 0) return {
|
|
7950
7950
|
checked: i.has(t),
|
|
7951
7951
|
indeterminate: !1
|
|
7952
7952
|
};
|
|
7953
|
-
let s = o.map((t) =>
|
|
7953
|
+
let s = o.map((t) => vp(e, t.id, n, r)), c = s.filter((e) => e.checked).length, l = s.filter((e) => e.indeterminate).length, u = c === o.length;
|
|
7954
7954
|
return {
|
|
7955
7955
|
checked: u,
|
|
7956
7956
|
indeterminate: c + l > 0 && !u
|
|
7957
7957
|
};
|
|
7958
|
-
},
|
|
7959
|
-
let r =
|
|
7958
|
+
}, yp = (e, t, n = []) => {
|
|
7959
|
+
let r = gp(e, n), i = new Set(t), a = r.filter((e) => i.has(e)).length;
|
|
7960
7960
|
return {
|
|
7961
7961
|
checked: r.length > 0 && a === r.length,
|
|
7962
7962
|
indeterminate: a > 0 && a < r.length
|
|
7963
7963
|
};
|
|
7964
|
-
},
|
|
7964
|
+
}, bp = i(null), xp = () => u(bp), Sp = ({ children: e, rowCheckboxes: t, rows: n }) => {
|
|
7965
7965
|
let r = t !== void 0, { checkedIds: i = [], disabledIds: a = [], getTooltip: o, onChange: s } = t == null ? {} : t, c = h(() => new Set(a), [a]), u = h(() => {
|
|
7966
7966
|
if (!r) return null;
|
|
7967
7967
|
let e = /* @__PURE__ */ new Map();
|
|
7968
|
-
for (let t of n) e.set(t.id,
|
|
7968
|
+
for (let t of n) e.set(t.id, vp(n, t.id, i, a));
|
|
7969
7969
|
return e;
|
|
7970
7970
|
}, [
|
|
7971
7971
|
i,
|
|
7972
7972
|
a,
|
|
7973
7973
|
r,
|
|
7974
7974
|
n
|
|
7975
|
-
]), d = h(() => r ?
|
|
7975
|
+
]), d = h(() => r ? yp(n, i, a) : void 0, [
|
|
7976
7976
|
i,
|
|
7977
7977
|
a,
|
|
7978
7978
|
r,
|
|
7979
7979
|
n
|
|
7980
7980
|
]), 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) => {
|
|
7981
7981
|
if (!r || c.has(e)) return;
|
|
7982
|
-
let t =
|
|
7982
|
+
let t = hp(n, e), o = [e, ...t.filter((e) => !c.has(e))], l = [e, ...t], { checked: u } = vp(n, e, i, a);
|
|
7983
7983
|
if (u) {
|
|
7984
7984
|
let e = new Set(l);
|
|
7985
|
-
s == null || s(
|
|
7985
|
+
s == null || s(_p(i, e, c));
|
|
7986
7986
|
} else s == null || s([.../* @__PURE__ */ new Set([...i, ...o])]);
|
|
7987
7987
|
}, [
|
|
7988
7988
|
i,
|
|
@@ -7993,7 +7993,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7993
7993
|
n
|
|
7994
7994
|
]), _ = l(() => {
|
|
7995
7995
|
if (!r) return;
|
|
7996
|
-
let e =
|
|
7996
|
+
let e = gp(n, a), { checked: t } = yp(n, i, a);
|
|
7997
7997
|
t ? s == null || s(i.filter((e) => c.has(e))) : s == null || s([.../* @__PURE__ */ new Set([...i, ...e])]);
|
|
7998
7998
|
}, [
|
|
7999
7999
|
i,
|
|
@@ -8019,12 +8019,12 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8019
8019
|
_,
|
|
8020
8020
|
g
|
|
8021
8021
|
]);
|
|
8022
|
-
return /* @__PURE__ */ S(
|
|
8022
|
+
return /* @__PURE__ */ S(bp.Provider, {
|
|
8023
8023
|
value: v,
|
|
8024
8024
|
children: e
|
|
8025
8025
|
});
|
|
8026
|
-
},
|
|
8027
|
-
let h =
|
|
8026
|
+
}, Cp = ({ 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 }) => {
|
|
8027
|
+
let h = xp(), 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) => {
|
|
8028
8028
|
let r = t ? t[e] : void 0;
|
|
8029
8029
|
return e === 0 ? `calc(${r} - ${`calc(var(--size) * ${M ? n + 1 : n})`})` : r;
|
|
8030
8030
|
};
|
|
@@ -8037,7 +8037,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8037
8037
|
onDragLeave: f,
|
|
8038
8038
|
children: /* @__PURE__ */ S("tbody", { children: /* @__PURE__ */ C("tr", {
|
|
8039
8039
|
onClick: j,
|
|
8040
|
-
className: b(
|
|
8040
|
+
className: b(mp.treeTableRow, A ? mp.active : void 0),
|
|
8041
8041
|
children: [
|
|
8042
8042
|
x && /* @__PURE__ */ S(Ul, {
|
|
8043
8043
|
isHeader: !1,
|
|
@@ -8051,19 +8051,19 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8051
8051
|
}
|
|
8052
8052
|
}),
|
|
8053
8053
|
r && /* @__PURE__ */ S("td", {
|
|
8054
|
-
className:
|
|
8054
|
+
className: mp.dragCell,
|
|
8055
8055
|
children: /* @__PURE__ */ S("div", {
|
|
8056
|
-
className:
|
|
8056
|
+
className: mp.drag,
|
|
8057
8057
|
onClick: (e) => e.stopPropagation(),
|
|
8058
8058
|
ref: i,
|
|
8059
8059
|
children: /* @__PURE__ */ S(G, { icon: U.DRAG })
|
|
8060
8060
|
})
|
|
8061
8061
|
}),
|
|
8062
|
-
Array.from({ length: n }).map((e, t) => /* @__PURE__ */ S("td", { className:
|
|
8062
|
+
Array.from({ length: n }).map((e, t) => /* @__PURE__ */ S("td", { className: mp.folderCell }, t)),
|
|
8063
8063
|
M && /* @__PURE__ */ S("td", {
|
|
8064
|
-
className:
|
|
8064
|
+
className: mp.folderCell,
|
|
8065
8065
|
children: /* @__PURE__ */ S("div", {
|
|
8066
|
-
className:
|
|
8066
|
+
className: mp.folder,
|
|
8067
8067
|
onClick: () => m(E),
|
|
8068
8068
|
onMouseDown: (e) => e.stopPropagation(),
|
|
8069
8069
|
children: /* @__PURE__ */ S(q, {
|
|
@@ -8095,10 +8095,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8095
8095
|
]
|
|
8096
8096
|
}) })
|
|
8097
8097
|
});
|
|
8098
|
-
},
|
|
8099
|
-
let a =
|
|
8098
|
+
}, wp = ({ columnAlignment: e, columnWidths: t, draggable: n, hasRowActions: r, headers: i }) => {
|
|
8099
|
+
let a = xp(), o = a == null ? void 0 : a.headerCheckState, s = (a == null ? void 0 : a.enabled) && o !== void 0;
|
|
8100
8100
|
return /* @__PURE__ */ S("table", {
|
|
8101
|
-
className: b(Ks.table,
|
|
8101
|
+
className: b(Ks.table, mp.treeTableHeader),
|
|
8102
8102
|
children: /* @__PURE__ */ S("thead", { children: i.map((i, c) => /* @__PURE__ */ C("tr", { children: [
|
|
8103
8103
|
s && c === 0 ? /* @__PURE__ */ S(Ul, {
|
|
8104
8104
|
isHeader: !0,
|
|
@@ -8109,7 +8109,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8109
8109
|
onChange: a.toggleHeaderCheck
|
|
8110
8110
|
}
|
|
8111
8111
|
}) : s ? /* @__PURE__ */ S("td", {}) : null,
|
|
8112
|
-
n && /* @__PURE__ */ S("th", { className:
|
|
8112
|
+
n && /* @__PURE__ */ S("th", { className: mp.dragCell }),
|
|
8113
8113
|
i.cells.map((n, r) => {
|
|
8114
8114
|
let i = t ? t[r] : void 0, a = e ? e[r] : void 0;
|
|
8115
8115
|
return /* @__PURE__ */ S(Ul, {
|
|
@@ -8129,22 +8129,22 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8129
8129
|
})
|
|
8130
8130
|
] }, c)) })
|
|
8131
8131
|
});
|
|
8132
|
-
},
|
|
8132
|
+
}, Tp = ({ 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 }) => {
|
|
8133
8133
|
let { columnAlignment: m, columnWidths: h, fixedWidth: g, headers: _, rows: v = [] } = d, y = fl(v, _ == null ? [] : _);
|
|
8134
|
-
return /* @__PURE__ */ S(
|
|
8134
|
+
return /* @__PURE__ */ S(Sp, {
|
|
8135
8135
|
rowCheckboxes: u,
|
|
8136
8136
|
rows: v,
|
|
8137
8137
|
children: /* @__PURE__ */ C("div", {
|
|
8138
|
-
className:
|
|
8138
|
+
className: mp.treeTable,
|
|
8139
8139
|
"data-testid": f,
|
|
8140
8140
|
style: { width: g },
|
|
8141
|
-
children: [!!_ && /* @__PURE__ */ S(
|
|
8141
|
+
children: [!!_ && /* @__PURE__ */ S(wp, {
|
|
8142
8142
|
columnAlignment: m,
|
|
8143
8143
|
columnWidths: h,
|
|
8144
8144
|
draggable: r,
|
|
8145
8145
|
hasRowActions: y,
|
|
8146
8146
|
headers: _
|
|
8147
|
-
}), /* @__PURE__ */ S(
|
|
8147
|
+
}), /* @__PURE__ */ S(pp, {
|
|
8148
8148
|
allowParentReassignment: e,
|
|
8149
8149
|
autoOpenActiveItems: t,
|
|
8150
8150
|
canDrop: n,
|
|
@@ -8160,7 +8160,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8160
8160
|
onItemToggle: s,
|
|
8161
8161
|
onListReorder: c,
|
|
8162
8162
|
placeholderIndent: "var(--size)",
|
|
8163
|
-
render: (e, { depth: t, draggable: n, handleRef: r, hasChild: a, isOpen: o, onToggle: s }) => /* @__PURE__ */ S(
|
|
8163
|
+
render: (e, { depth: t, draggable: n, handleRef: r, hasChild: a, isOpen: o, onToggle: s }) => /* @__PURE__ */ S(Cp, {
|
|
8164
8164
|
node: e,
|
|
8165
8165
|
columnAlignment: m,
|
|
8166
8166
|
columnWidths: h,
|
|
@@ -8177,10 +8177,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8177
8177
|
})]
|
|
8178
8178
|
})
|
|
8179
8179
|
});
|
|
8180
|
-
},
|
|
8180
|
+
}, Ep = Object.freeze({
|
|
8181
8181
|
Translations: "translations",
|
|
8182
8182
|
LanguageKey: "languageKey"
|
|
8183
|
-
}),
|
|
8183
|
+
}), Dp = {
|
|
8184
8184
|
unified: "Unified",
|
|
8185
8185
|
split: "Split",
|
|
8186
8186
|
changesTooLarge: "Changes are too large to be shown",
|
|
@@ -8203,29 +8203,29 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8203
8203
|
showAll: "Show all",
|
|
8204
8204
|
unknown: "Unknown",
|
|
8205
8205
|
unexpectedError: "Unexpected error"
|
|
8206
|
-
},
|
|
8206
|
+
}, Op = (e) => Object.keys(Dp).reduce((t, n) => ({
|
|
8207
8207
|
...t,
|
|
8208
|
-
[n]: (e == null ? void 0 : e[n]) || (
|
|
8209
|
-
}), {}),
|
|
8210
|
-
[
|
|
8211
|
-
[
|
|
8212
|
-
},
|
|
8213
|
-
|
|
8214
|
-
},
|
|
8208
|
+
[n]: (e == null ? void 0 : e[n]) || (Dp == null ? void 0 : Dp[n])
|
|
8209
|
+
}), {}), kp = {
|
|
8210
|
+
[Ep.Translations]: Op(),
|
|
8211
|
+
[Ep.LanguageKey]: "en"
|
|
8212
|
+
}, Ap = (e) => e ? kp[e] : kp, jp = (e, t) => {
|
|
8213
|
+
kp[e] = t;
|
|
8214
|
+
}, Mp = (e) => e.reduce(({ preferredUnits: e, storageUnits: t }, { unitKey: n, preferredUnit: r, storageUnit: i }) => {
|
|
8215
8215
|
var a;
|
|
8216
|
-
let { unitTemplate: o = null } = (a =
|
|
8217
|
-
return e[n] = r == null ?
|
|
8216
|
+
let { unitTemplate: o = null } = (a = Rf()) == null ? {} : a;
|
|
8217
|
+
return e[n] = r == null ? Df(n, o) : r, t[n] = i, {
|
|
8218
8218
|
preferredUnits: e,
|
|
8219
8219
|
storageUnits: t
|
|
8220
8220
|
};
|
|
8221
8221
|
}, {
|
|
8222
8222
|
preferredUnits: {},
|
|
8223
8223
|
storageUnits: {}
|
|
8224
|
-
}),
|
|
8224
|
+
}), Np = ({ row: e, selectedUnits: t, storageUnits: n, convertBackToStorageUnit: r, enableCosmeticRounding: i, enableDisplayRounding: a }) => ({
|
|
8225
8225
|
...e,
|
|
8226
8226
|
cells: e.cells.map((e) => {
|
|
8227
8227
|
if ("autoUnit" in e && e.autoUnit && (typeof e.value == "string" || typeof e.value == "number")) {
|
|
8228
|
-
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 } =
|
|
8228
|
+
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 } = Mf({
|
|
8229
8229
|
value: Er(s),
|
|
8230
8230
|
unitkey: o,
|
|
8231
8231
|
toUnit: u,
|
|
@@ -8239,7 +8239,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8239
8239
|
roundDisplayValue: l,
|
|
8240
8240
|
selectOnFocus: !0,
|
|
8241
8241
|
onChange: (t) => {
|
|
8242
|
-
let n = t, { value: i } = n.target, a = r ? d : u, { value: s = i } =
|
|
8242
|
+
let n = t, { value: i } = n.target, a = r ? d : u, { value: s = i } = Mf({
|
|
8243
8243
|
value: String(i),
|
|
8244
8244
|
unitkey: o,
|
|
8245
8245
|
toUnit: a,
|
|
@@ -8258,8 +8258,8 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8258
8258
|
}
|
|
8259
8259
|
return e;
|
|
8260
8260
|
})
|
|
8261
|
-
}),
|
|
8262
|
-
let { translations: i } =
|
|
8261
|
+
}), Pp = ({ headers: e, selectedUnits: t, storageUnits: n, onChangeUnit: r }) => {
|
|
8262
|
+
let { translations: i } = Ap();
|
|
8263
8263
|
return e ? e.map((e) => ({
|
|
8264
8264
|
...e,
|
|
8265
8265
|
cells: e.cells.map((e) => {
|
|
@@ -8288,8 +8288,8 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8288
8288
|
return e;
|
|
8289
8289
|
})
|
|
8290
8290
|
})) : [];
|
|
8291
|
-
},
|
|
8292
|
-
let { headers: c, ...u } = e, { storageUnits: f, preferredUnits: p } =
|
|
8291
|
+
}, Fp = ({ table: e, unitConfig: t, convertBackToStorageUnit: n = !0, enableCosmeticRounding: r = !0, enableDisplayRounding: i = !0, onListReorder: a, canListReorder: o, beforeRenderRow: s }) => {
|
|
8292
|
+
let { headers: c, ...u } = e, { storageUnits: f, preferredUnits: p } = Mp(t), m = Ef(p), [h, g] = v(p), _ = ({ unitKey: e, value: n }) => {
|
|
8293
8293
|
g((t) => ({
|
|
8294
8294
|
...t,
|
|
8295
8295
|
[e]: n
|
|
@@ -8300,7 +8300,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8300
8300
|
newUnit: n,
|
|
8301
8301
|
unitKey: e
|
|
8302
8302
|
});
|
|
8303
|
-
}, y = l(({ row: e, rowIndex: t }) =>
|
|
8303
|
+
}, y = l(({ row: e, rowIndex: t }) => Np({
|
|
8304
8304
|
row: s ? s({
|
|
8305
8305
|
row: e,
|
|
8306
8306
|
rowIndex: t
|
|
@@ -8328,7 +8328,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8328
8328
|
}, [t]), /* @__PURE__ */ S(eu, {
|
|
8329
8329
|
table: {
|
|
8330
8330
|
...u,
|
|
8331
|
-
headers:
|
|
8331
|
+
headers: Pp({
|
|
8332
8332
|
headers: e.headers,
|
|
8333
8333
|
selectedUnits: h,
|
|
8334
8334
|
storageUnits: f,
|
|
@@ -8339,8 +8339,8 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8339
8339
|
canListReorder: o,
|
|
8340
8340
|
beforeRenderRow: y
|
|
8341
8341
|
});
|
|
8342
|
-
},
|
|
8343
|
-
let { translations: d } =
|
|
8342
|
+
}, Ip = { settingField: "_settingField_1x02n_1" }, Lp = ({ 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 }) => {
|
|
8343
|
+
let { translations: d } = Ap(), f = (t) => t.replace(/\\n/g, "\n").split(/\n/).map((t, n) => /* @__PURE__ */ C(e.Fragment, { children: [t, /* @__PURE__ */ S("br", {})] }, n)), p = [
|
|
8344
8344
|
...r ? [] : [{
|
|
8345
8345
|
label: d == null ? void 0 : d.allUsers,
|
|
8346
8346
|
value: !1
|
|
@@ -8355,14 +8355,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8355
8355
|
}] : []
|
|
8356
8356
|
], m = a !== void 0 && o !== void 0 && !un(a, o);
|
|
8357
8357
|
return /* @__PURE__ */ C("div", {
|
|
8358
|
-
className:
|
|
8358
|
+
className: Ip.settingField,
|
|
8359
8359
|
"data-testid": u,
|
|
8360
|
-
children: [/* @__PURE__ */ C(
|
|
8360
|
+
children: [/* @__PURE__ */ C(bd, {
|
|
8361
8361
|
justifyContent: "space-between",
|
|
8362
8362
|
wrap: !1,
|
|
8363
8363
|
children: [i, !s && /* @__PURE__ */ S("div", {
|
|
8364
8364
|
style: { flexShrink: 0 },
|
|
8365
|
-
children: /* @__PURE__ */ C(
|
|
8365
|
+
children: /* @__PURE__ */ C(bd, {
|
|
8366
8366
|
gap: "8px",
|
|
8367
8367
|
alignItems: "center",
|
|
8368
8368
|
children: [m && /* @__PURE__ */ S(ma, {
|
|
@@ -8387,19 +8387,19 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8387
8387
|
children: f(t)
|
|
8388
8388
|
})]
|
|
8389
8389
|
});
|
|
8390
|
-
},
|
|
8390
|
+
}, Rp = (e, t) => {
|
|
8391
8391
|
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;
|
|
8392
8392
|
return {
|
|
8393
8393
|
added: Math.max(0, i),
|
|
8394
8394
|
removed: Math.max(0, a)
|
|
8395
8395
|
};
|
|
8396
|
-
},
|
|
8396
|
+
}, zp = "split", Bp = "unified", Vp = ({ oldJson: e, newJson: t, viewType: n = zp }) => {
|
|
8397
8397
|
var r, i;
|
|
8398
|
-
let { translations: a } =
|
|
8399
|
-
value:
|
|
8398
|
+
let { translations: a } = Ap(), [o, s] = v(n), c = [{
|
|
8399
|
+
value: zp,
|
|
8400
8400
|
label: (r = a == null ? void 0 : a.split) == null ? "Split" : r
|
|
8401
8401
|
}, {
|
|
8402
|
-
value:
|
|
8402
|
+
value: Bp,
|
|
8403
8403
|
label: (i = a == null ? void 0 : a.unified) == null ? "Unified" : i
|
|
8404
8404
|
}];
|
|
8405
8405
|
d(() => {
|
|
@@ -8407,10 +8407,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8407
8407
|
}, [n]);
|
|
8408
8408
|
let l = ({ target: { value: e } }) => {
|
|
8409
8409
|
s(e);
|
|
8410
|
-
}, { added: u, removed: f } =
|
|
8410
|
+
}, { added: u, removed: f } = Rp(e, t), p = u + f > 3500;
|
|
8411
8411
|
return /* @__PURE__ */ S(x, { children: /* @__PURE__ */ S(bo, {
|
|
8412
8412
|
bordered: !0,
|
|
8413
|
-
heading: /* @__PURE__ */ C(
|
|
8413
|
+
heading: /* @__PURE__ */ C(bd, {
|
|
8414
8414
|
gap: !0,
|
|
8415
8415
|
children: [/* @__PURE__ */ S(es, { children: /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ C(Yo, {
|
|
8416
8416
|
success: !0,
|
|
@@ -8422,7 +8422,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8422
8422
|
}), /* @__PURE__ */ C(Yo, {
|
|
8423
8423
|
error: !0,
|
|
8424
8424
|
children: ["-", f]
|
|
8425
|
-
})] }) }), !p && /* @__PURE__ */ S(
|
|
8425
|
+
})] }) }), !p && /* @__PURE__ */ S(Xd, {
|
|
8426
8426
|
name: "viewType",
|
|
8427
8427
|
options: c,
|
|
8428
8428
|
value: o,
|
|
@@ -8440,16 +8440,16 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8440
8440
|
}) : /* @__PURE__ */ S(wi, {
|
|
8441
8441
|
oldValue: e,
|
|
8442
8442
|
newValue: t,
|
|
8443
|
-
splitView: o ===
|
|
8443
|
+
splitView: o === zp,
|
|
8444
8444
|
compareMethod: Ti.WORDS
|
|
8445
8445
|
})
|
|
8446
8446
|
}) });
|
|
8447
|
-
},
|
|
8447
|
+
}, Hp = { backgroundColor: "var(--color-background-error-muted)" }, Up = { backgroundColor: "var(--color-background-success-muted)" }, Wp = { backgroundColor: "var(--color-background-warning-muted)" }, Gp = (e) => typeof e == "object" && e && "value" in e ? e.value : e, Kp = (e) => {
|
|
8448
8448
|
var t;
|
|
8449
8449
|
if (e.id != null) return String(e.id);
|
|
8450
|
-
let n =
|
|
8450
|
+
let n = Gp((t = e.cells) == null || (t = t[0]) == null ? void 0 : t.value);
|
|
8451
8451
|
return n == null ? "" : String(n);
|
|
8452
|
-
},
|
|
8452
|
+
}, qp = (e, t) => ({
|
|
8453
8453
|
...e,
|
|
8454
8454
|
cells: e.cells.map((e) => ({
|
|
8455
8455
|
...e,
|
|
@@ -8458,7 +8458,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8458
8458
|
...t
|
|
8459
8459
|
}
|
|
8460
8460
|
}))
|
|
8461
|
-
}),
|
|
8461
|
+
}), Jp = (e, t) => ({
|
|
8462
8462
|
...e,
|
|
8463
8463
|
cells: e.cells.map((e, n) => {
|
|
8464
8464
|
var r;
|
|
@@ -8467,17 +8467,17 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8467
8467
|
...e,
|
|
8468
8468
|
style: {
|
|
8469
8469
|
...e.style,
|
|
8470
|
-
...
|
|
8470
|
+
...Wp
|
|
8471
8471
|
},
|
|
8472
8472
|
tooltip: a
|
|
8473
8473
|
};
|
|
8474
8474
|
})
|
|
8475
|
-
}),
|
|
8475
|
+
}), Yp = (e = [], t = []) => {
|
|
8476
8476
|
let n = /* @__PURE__ */ new Map();
|
|
8477
|
-
for (let e of t) n.set(
|
|
8478
|
-
let r = new Set(e.map(
|
|
8477
|
+
for (let e of t) n.set(Kp(e), e);
|
|
8478
|
+
let r = new Set(e.map(Kp)), i = /* @__PURE__ */ new Map(), a = [], o = null;
|
|
8479
8479
|
for (let e = t.length - 1; e >= 0; e--) {
|
|
8480
|
-
let n = t[e], c =
|
|
8480
|
+
let n = t[e], c = Kp(n);
|
|
8481
8481
|
if (r.has(c)) {
|
|
8482
8482
|
o = c;
|
|
8483
8483
|
continue;
|
|
@@ -8492,7 +8492,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8492
8492
|
a.reverse();
|
|
8493
8493
|
let c = [];
|
|
8494
8494
|
for (let t of e) {
|
|
8495
|
-
let e =
|
|
8495
|
+
let e = Kp(t), r = i.get(e);
|
|
8496
8496
|
if (r) for (let e of r) c.push({
|
|
8497
8497
|
status: "deleted",
|
|
8498
8498
|
row: e
|
|
@@ -8512,11 +8512,11 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8512
8512
|
row: e
|
|
8513
8513
|
});
|
|
8514
8514
|
return c;
|
|
8515
|
-
},
|
|
8516
|
-
let i = h(() =>
|
|
8515
|
+
}, Xp = (e) => e.status === "deleted" ? qp(e.row, Hp) : e.status === "added" ? qp(e.row, Up) : Jp(e.row, e.compareRow), Zp = ({ table: e, compareRows: t, beforeRenderRow: n, ...r }) => {
|
|
8516
|
+
let i = h(() => Yp(e.rows, t), [e.rows, t]), a = !!e.infiniteScroll, o = h(() => {
|
|
8517
8517
|
if (!a) return i.map((e) => e.row);
|
|
8518
8518
|
}, [a, i]), s = l(({ row: e, rowIndex: t }) => {
|
|
8519
|
-
let r = i[t], a = r ?
|
|
8519
|
+
let r = i[t], a = r ? Xp(r) : e;
|
|
8520
8520
|
return n ? n({
|
|
8521
8521
|
row: a,
|
|
8522
8522
|
rowIndex: t
|
|
@@ -8535,7 +8535,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8535
8535
|
};
|
|
8536
8536
|
//#endregion
|
|
8537
8537
|
//#region src/helpers/date.ts
|
|
8538
|
-
function
|
|
8538
|
+
function Qp({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i, locale: a }) {
|
|
8539
8539
|
return e ? new Date(e).toLocaleString(a, {
|
|
8540
8540
|
year: "numeric",
|
|
8541
8541
|
month: "short",
|
|
@@ -8549,28 +8549,28 @@ function Xp({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i
|
|
|
8549
8549
|
}
|
|
8550
8550
|
//#endregion
|
|
8551
8551
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/clone.js
|
|
8552
|
-
function
|
|
8552
|
+
function $p(e) {
|
|
8553
8553
|
var t;
|
|
8554
8554
|
let n = /^\/(.*)\/([gimyu]*)$/.exec(e.toString());
|
|
8555
8555
|
if (!n) throw Error("Invalid RegExp");
|
|
8556
8556
|
return new RegExp((t = n[1]) == null ? "" : t, n[2]);
|
|
8557
8557
|
}
|
|
8558
|
-
function
|
|
8558
|
+
function em(e) {
|
|
8559
8559
|
if (typeof e != "object") return e;
|
|
8560
8560
|
if (e === null) return null;
|
|
8561
|
-
if (Array.isArray(e)) return e.map(
|
|
8561
|
+
if (Array.isArray(e)) return e.map(em);
|
|
8562
8562
|
if (e instanceof Date) return new Date(e.getTime());
|
|
8563
|
-
if (e instanceof RegExp) return
|
|
8563
|
+
if (e instanceof RegExp) return $p(e);
|
|
8564
8564
|
let t = {};
|
|
8565
|
-
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
8565
|
+
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = em(e[n]));
|
|
8566
8566
|
return t;
|
|
8567
8567
|
}
|
|
8568
8568
|
//#endregion
|
|
8569
8569
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/assertions/arrays.js
|
|
8570
|
-
function
|
|
8570
|
+
function tm(e, t) {
|
|
8571
8571
|
if (e.length === 0) throw Error(t || "Expected a non-empty array");
|
|
8572
8572
|
}
|
|
8573
|
-
var
|
|
8573
|
+
var nm = (e) => e[e.length - 1], rm = class {
|
|
8574
8574
|
setResult(e) {
|
|
8575
8575
|
return this.result = e, this.hasResult = !0, this;
|
|
8576
8576
|
}
|
|
@@ -8578,16 +8578,16 @@ var em = (e) => e[e.length - 1], tm = class {
|
|
|
8578
8578
|
return this.exiting = !0, this;
|
|
8579
8579
|
}
|
|
8580
8580
|
push(e, t) {
|
|
8581
|
-
return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? (
|
|
8581
|
+
return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? (tm(this.children), nm(this.children).next = e, this.children.push(e)) : (this.children = [e], this.nextAfterChildren = this.next || null, this.next = e), e.next = this, this;
|
|
8582
8582
|
}
|
|
8583
|
-
},
|
|
8583
|
+
}, im = class extends rm {
|
|
8584
8584
|
constructor(e, t) {
|
|
8585
8585
|
super(), this.left = e, this.right = t, this.pipe = "diff";
|
|
8586
8586
|
}
|
|
8587
8587
|
prepareDeltaResult(e) {
|
|
8588
8588
|
var t, n, r, i;
|
|
8589
8589
|
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)) {
|
|
8590
|
-
let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues :
|
|
8590
|
+
let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues : em;
|
|
8591
8591
|
typeof e[0] == "object" && (e[0] = t(e[0])), typeof e[1] == "object" && (e[1] = t(e[1]));
|
|
8592
8592
|
}
|
|
8593
8593
|
return e;
|
|
@@ -8595,15 +8595,15 @@ var em = (e) => e[e.length - 1], tm = class {
|
|
|
8595
8595
|
setResult(e) {
|
|
8596
8596
|
return this.prepareDeltaResult(e), super.setResult(e);
|
|
8597
8597
|
}
|
|
8598
|
-
},
|
|
8598
|
+
}, am = class extends rm {
|
|
8599
8599
|
constructor(e, t) {
|
|
8600
8600
|
super(), this.left = e, this.delta = t, this.pipe = "patch";
|
|
8601
8601
|
}
|
|
8602
|
-
},
|
|
8602
|
+
}, om = class extends rm {
|
|
8603
8603
|
constructor(e) {
|
|
8604
8604
|
super(), this.delta = e, this.pipe = "reverse";
|
|
8605
8605
|
}
|
|
8606
|
-
},
|
|
8606
|
+
}, sm = class {
|
|
8607
8607
|
constructor(e) {
|
|
8608
8608
|
this.name = e, this.filters = [];
|
|
8609
8609
|
}
|
|
@@ -8667,7 +8667,7 @@ var em = (e) => e[e.length - 1], tm = class {
|
|
|
8667
8667
|
}
|
|
8668
8668
|
}), this);
|
|
8669
8669
|
}
|
|
8670
|
-
},
|
|
8670
|
+
}, cm = class {
|
|
8671
8671
|
constructor(e) {
|
|
8672
8672
|
this.selfOptions = e || {}, this.pipes = {};
|
|
8673
8673
|
}
|
|
@@ -8694,7 +8694,7 @@ var em = (e) => e[e.length - 1], tm = class {
|
|
|
8694
8694
|
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);
|
|
8695
8695
|
return n.hasResult ? n.result : void 0;
|
|
8696
8696
|
}
|
|
8697
|
-
},
|
|
8697
|
+
}, lm = (e, t, n, r) => e[n] === t[r], um = (e, t, n, r) => {
|
|
8698
8698
|
var i, a, o;
|
|
8699
8699
|
let s = e.length, c = t.length, l, u, d = Array(s + 1);
|
|
8700
8700
|
for (l = 0; l < s + 1; l++) {
|
|
@@ -8710,7 +8710,7 @@ var em = (e) => e[e.length - 1], tm = class {
|
|
|
8710
8710
|
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);
|
|
8711
8711
|
}
|
|
8712
8712
|
return d;
|
|
8713
|
-
},
|
|
8713
|
+
}, dm = (e, t, n, r) => {
|
|
8714
8714
|
let i = t.length, a = n.length, o = {
|
|
8715
8715
|
sequence: [],
|
|
8716
8716
|
indices1: [],
|
|
@@ -8732,11 +8732,11 @@ var em = (e) => e[e.length - 1], tm = class {
|
|
|
8732
8732
|
}
|
|
8733
8733
|
}
|
|
8734
8734
|
return o;
|
|
8735
|
-
},
|
|
8735
|
+
}, fm = { get: (e, t, n, r) => {
|
|
8736
8736
|
let i = r || {};
|
|
8737
|
-
return
|
|
8738
|
-
} },
|
|
8739
|
-
function
|
|
8737
|
+
return dm(um(e, t, n || lm, i), e, t, i);
|
|
8738
|
+
} }, pm = 3;
|
|
8739
|
+
function mm(e, t, n, r) {
|
|
8740
8740
|
for (let i = 0; i < n; i++) {
|
|
8741
8741
|
let n = e[i];
|
|
8742
8742
|
for (let e = 0; e < r; e++) {
|
|
@@ -8746,7 +8746,7 @@ function fm(e, t, n, r) {
|
|
|
8746
8746
|
}
|
|
8747
8747
|
return !1;
|
|
8748
8748
|
}
|
|
8749
|
-
function
|
|
8749
|
+
function hm(e, t, n, r, i) {
|
|
8750
8750
|
let a = e[n], o = t[r];
|
|
8751
8751
|
if (a === o) return !0;
|
|
8752
8752
|
if (typeof a != "object" || typeof o != "object") return !1;
|
|
@@ -8759,15 +8759,15 @@ function pm(e, t, n, r, i) {
|
|
|
8759
8759
|
let l = i.hashCache2[r];
|
|
8760
8760
|
return l === void 0 && (i.hashCache2[r] = l = s(o, r)), l !== void 0 && c === l;
|
|
8761
8761
|
}
|
|
8762
|
-
var
|
|
8762
|
+
var gm = function(e) {
|
|
8763
8763
|
var t, n, r, i, a;
|
|
8764
8764
|
if (!e.leftIsArray) return;
|
|
8765
8765
|
let o = {
|
|
8766
8766
|
objectHash: (t = e.options) == null ? void 0 : t.objectHash,
|
|
8767
8767
|
matchByPosition: (n = e.options) == null ? void 0 : n.matchByPosition
|
|
8768
8768
|
}, s = 0, c = 0, l, u, d, f = e.left, p = e.right, m = f.length, h = p.length, g;
|
|
8769
|
-
for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !
|
|
8770
|
-
for (; c + s < m && c + s < h &&
|
|
8769
|
+
for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !mm(f, p, m, h)); s < m && s < h && hm(f, p, s, s, o);) l = s, g = new im(f[l], p[l]), e.push(g, l), s++;
|
|
8770
|
+
for (; c + s < m && c + s < h && hm(f, p, m - 1 - c, h - 1 - c, o);) u = m - 1 - c, d = h - 1 - c, g = new im(f[u], p[d]), e.push(g, d), c++;
|
|
8771
8771
|
let _;
|
|
8772
8772
|
if (s + c === m) {
|
|
8773
8773
|
if (m === h) {
|
|
@@ -8791,7 +8791,7 @@ var mm = function(e) {
|
|
|
8791
8791
|
return;
|
|
8792
8792
|
}
|
|
8793
8793
|
o.hashCache1 = void 0, o.hashCache2 = void 0;
|
|
8794
|
-
let v = f.slice(s, m - c), y = p.slice(s, h - c), b =
|
|
8794
|
+
let v = f.slice(s, m - c), y = p.slice(s, h - c), b = fm.get(v, y, hm, o), x = [];
|
|
8795
8795
|
for (_ = _ || { _t: "a" }, l = s; l < m - c; l++) if (b.indices1.indexOf(l - s) < 0) {
|
|
8796
8796
|
let t = `_${l}`;
|
|
8797
8797
|
_[t] = [
|
|
@@ -8812,8 +8812,8 @@ var mm = function(e) {
|
|
|
8812
8812
|
if (S && w > 0) for (let n = 0; n < w; n++) {
|
|
8813
8813
|
u = x[n];
|
|
8814
8814
|
let r = u === void 0 ? void 0 : _[`_${u}`];
|
|
8815
|
-
if (u !== void 0 && r &&
|
|
8816
|
-
r.splice(1, 2, l,
|
|
8815
|
+
if (u !== void 0 && r && hm(v, y, u - s, l - s, o)) {
|
|
8816
|
+
r.splice(1, 2, l, pm), r.splice(1, 2, l, pm), C || (r[0] = ""), d = l, g = new im(f[u], p[d]), e.push(g, d), x.splice(n, 1), t = !0;
|
|
8817
8817
|
break;
|
|
8818
8818
|
}
|
|
8819
8819
|
}
|
|
@@ -8821,20 +8821,20 @@ var mm = function(e) {
|
|
|
8821
8821
|
} else {
|
|
8822
8822
|
if (b.indices1[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices1: ${b.indices1}`);
|
|
8823
8823
|
if (u = b.indices1[t] + s, b.indices2[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices2: ${b.indices2}`);
|
|
8824
|
-
d = b.indices2[t] + s, g = new
|
|
8824
|
+
d = b.indices2[t] + s, g = new im(f[u], p[d]), e.push(g, d);
|
|
8825
8825
|
}
|
|
8826
8826
|
}
|
|
8827
8827
|
e.setResult(_).exit();
|
|
8828
8828
|
};
|
|
8829
|
-
|
|
8830
|
-
var
|
|
8829
|
+
gm.filterName = "arrays";
|
|
8830
|
+
var _m = {
|
|
8831
8831
|
numerically(e, t) {
|
|
8832
8832
|
return e - t;
|
|
8833
8833
|
},
|
|
8834
8834
|
numericallyBy(e) {
|
|
8835
8835
|
return (t, n) => t[e] - n[e];
|
|
8836
8836
|
}
|
|
8837
|
-
},
|
|
8837
|
+
}, vm = function(e) {
|
|
8838
8838
|
var t;
|
|
8839
8839
|
if (!e.nested) return;
|
|
8840
8840
|
let n = e.delta;
|
|
@@ -8843,7 +8843,7 @@ var hm = {
|
|
|
8843
8843
|
for (r in a) if (r !== "_t") {
|
|
8844
8844
|
if (r[0] === "_") {
|
|
8845
8845
|
let e = r;
|
|
8846
|
-
if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] ===
|
|
8846
|
+
if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] === pm)) s.push(Number.parseInt(r.slice(1), 10));
|
|
8847
8847
|
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]}`);
|
|
8848
8848
|
} else {
|
|
8849
8849
|
let e = r;
|
|
@@ -8856,15 +8856,15 @@ var hm = {
|
|
|
8856
8856
|
});
|
|
8857
8857
|
}
|
|
8858
8858
|
}
|
|
8859
|
-
for (s = s.sort(
|
|
8859
|
+
for (s = s.sort(_m.numerically), r = s.length - 1; r >= 0; r--) {
|
|
8860
8860
|
if (i = s[r], i === void 0) continue;
|
|
8861
8861
|
let e = a[`_${i}`], t = o.splice(i, 1)[0];
|
|
8862
|
-
(e == null ? void 0 : e[2]) ===
|
|
8862
|
+
(e == null ? void 0 : e[2]) === pm && c.push({
|
|
8863
8863
|
index: e[1],
|
|
8864
8864
|
value: t
|
|
8865
8865
|
});
|
|
8866
8866
|
}
|
|
8867
|
-
c = c.sort(
|
|
8867
|
+
c = c.sort(_m.numericallyBy("index"));
|
|
8868
8868
|
let u = c.length;
|
|
8869
8869
|
for (r = 0; r < u; r++) {
|
|
8870
8870
|
let e = c[r];
|
|
@@ -8874,7 +8874,7 @@ var hm = {
|
|
|
8874
8874
|
if (d > 0) for (r = 0; r < d; r++) {
|
|
8875
8875
|
let t = l[r];
|
|
8876
8876
|
if (t === void 0) continue;
|
|
8877
|
-
let n = new
|
|
8877
|
+
let n = new am(o[t.index], t.delta);
|
|
8878
8878
|
e.push(n, t.index);
|
|
8879
8879
|
}
|
|
8880
8880
|
if (!e.children) {
|
|
@@ -8883,8 +8883,8 @@ var hm = {
|
|
|
8883
8883
|
}
|
|
8884
8884
|
e.exit();
|
|
8885
8885
|
};
|
|
8886
|
-
|
|
8887
|
-
var
|
|
8886
|
+
vm.filterName = "arrays";
|
|
8887
|
+
var ym = function(e) {
|
|
8888
8888
|
if (!e || !e.children || e.delta._t !== "a") return;
|
|
8889
8889
|
let t = e.left, n = e.children.length;
|
|
8890
8890
|
for (let r = 0; r < n; r++) {
|
|
@@ -8895,16 +8895,16 @@ var _m = function(e) {
|
|
|
8895
8895
|
}
|
|
8896
8896
|
e.setResult(t).exit();
|
|
8897
8897
|
};
|
|
8898
|
-
|
|
8899
|
-
var
|
|
8898
|
+
ym.filterName = "arraysCollectChildren";
|
|
8899
|
+
var bm = function(e) {
|
|
8900
8900
|
if (!e.nested) {
|
|
8901
8901
|
let t = e.delta;
|
|
8902
|
-
if (t[2] ===
|
|
8902
|
+
if (t[2] === pm) {
|
|
8903
8903
|
let n = t;
|
|
8904
8904
|
e.newName = `_${n[1]}`, e.setResult([
|
|
8905
8905
|
n[0],
|
|
8906
8906
|
Number.parseInt(e.childName.substring(1), 10),
|
|
8907
|
-
|
|
8907
|
+
pm
|
|
8908
8908
|
]).exit();
|
|
8909
8909
|
}
|
|
8910
8910
|
return;
|
|
@@ -8914,20 +8914,20 @@ var vm = function(e) {
|
|
|
8914
8914
|
let n = t;
|
|
8915
8915
|
for (let t in n) {
|
|
8916
8916
|
if (t === "_t") continue;
|
|
8917
|
-
let r = new
|
|
8917
|
+
let r = new om(n[t]);
|
|
8918
8918
|
e.push(r, t);
|
|
8919
8919
|
}
|
|
8920
8920
|
e.exit();
|
|
8921
8921
|
};
|
|
8922
|
-
|
|
8923
|
-
var
|
|
8922
|
+
bm.filterName = "arrays";
|
|
8923
|
+
var xm = (e, t, n) => {
|
|
8924
8924
|
if (typeof t == "string" && t[0] === "_") return Number.parseInt(t.substring(1), 10);
|
|
8925
8925
|
if (Array.isArray(n) && n[2] === 0) return `_${t}`;
|
|
8926
8926
|
let r = +t;
|
|
8927
8927
|
for (let n in e) {
|
|
8928
8928
|
let i = e[n];
|
|
8929
8929
|
if (Array.isArray(i)) {
|
|
8930
|
-
if (i[2] ===
|
|
8930
|
+
if (i[2] === pm) {
|
|
8931
8931
|
let e = Number.parseInt(n.substring(1), 10), a = i[1];
|
|
8932
8932
|
if (a === +t) return e;
|
|
8933
8933
|
e <= r && a > r ? r++ : e >= r && a < r && r--;
|
|
@@ -8935,7 +8935,7 @@ var ym = (e, t, n) => {
|
|
|
8935
8935
|
}
|
|
8936
8936
|
}
|
|
8937
8937
|
return r;
|
|
8938
|
-
},
|
|
8938
|
+
}, Sm = (e) => {
|
|
8939
8939
|
if (!e || !e.children) return;
|
|
8940
8940
|
let t = e.delta;
|
|
8941
8941
|
if (t._t !== "a") return;
|
|
@@ -8946,22 +8946,22 @@ var ym = (e, t, n) => {
|
|
|
8946
8946
|
let a = r.newName;
|
|
8947
8947
|
if (a === void 0) {
|
|
8948
8948
|
if (r.childName === void 0) throw Error("child.childName is undefined");
|
|
8949
|
-
a =
|
|
8949
|
+
a = xm(n, r.childName, r.result);
|
|
8950
8950
|
}
|
|
8951
8951
|
i[a] !== r.result && (i[a] = r.result);
|
|
8952
8952
|
}
|
|
8953
8953
|
e.setResult(i).exit();
|
|
8954
8954
|
};
|
|
8955
|
-
|
|
8955
|
+
Sm.filterName = "arraysCollectChildren";
|
|
8956
8956
|
//#endregion
|
|
8957
8957
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/dates.js
|
|
8958
|
-
var
|
|
8958
|
+
var Cm = function(e) {
|
|
8959
8959
|
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();
|
|
8960
8960
|
};
|
|
8961
|
-
|
|
8961
|
+
Cm.filterName = "dates";
|
|
8962
8962
|
//#endregion
|
|
8963
8963
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/nested.js
|
|
8964
|
-
var
|
|
8964
|
+
var wm = /* @__PURE__ */ new Set(["__proto__"]), Tm = (e) => {
|
|
8965
8965
|
if (!e || !e.children) return;
|
|
8966
8966
|
let t = e.children.length, n = e.result;
|
|
8967
8967
|
for (let r = 0; r < t; r++) {
|
|
@@ -8973,18 +8973,18 @@ var Sm = /* @__PURE__ */ new Set(["__proto__"]), Cm = (e) => {
|
|
|
8973
8973
|
}
|
|
8974
8974
|
n && e.leftIsArray && (n._t = "a"), e.setResult(n).exit();
|
|
8975
8975
|
};
|
|
8976
|
-
|
|
8977
|
-
var
|
|
8976
|
+
Tm.filterName = "collectChildren";
|
|
8977
|
+
var Em = (e) => {
|
|
8978
8978
|
var t;
|
|
8979
8979
|
if (e.leftIsArray || e.leftType !== "object") return;
|
|
8980
8980
|
let n = e.left, r = e.right, i = (t = e.options) == null ? void 0 : t.propertyFilter;
|
|
8981
8981
|
for (let t in n) {
|
|
8982
8982
|
if (!Object.prototype.hasOwnProperty.call(n, t) || i && !i(t, e)) continue;
|
|
8983
|
-
let a = new
|
|
8983
|
+
let a = new im(n[t], r[t]);
|
|
8984
8984
|
e.push(a, t);
|
|
8985
8985
|
}
|
|
8986
8986
|
for (let t in r) if (Object.prototype.hasOwnProperty.call(r, t) && !(i && !i(t, e)) && n[t] === void 0) {
|
|
8987
|
-
let n = new
|
|
8987
|
+
let n = new im(void 0, r[t]);
|
|
8988
8988
|
e.push(n, t);
|
|
8989
8989
|
}
|
|
8990
8990
|
if (!e.children || e.children.length === 0) {
|
|
@@ -8993,15 +8993,15 @@ var wm = (e) => {
|
|
|
8993
8993
|
}
|
|
8994
8994
|
e.exit();
|
|
8995
8995
|
};
|
|
8996
|
-
|
|
8997
|
-
var
|
|
8996
|
+
Em.filterName = "objects";
|
|
8997
|
+
var Dm = function(e) {
|
|
8998
8998
|
if (!e.nested) return;
|
|
8999
8999
|
let t = e.delta;
|
|
9000
9000
|
if (t._t) return;
|
|
9001
9001
|
let n = t, r = !1;
|
|
9002
9002
|
for (let t in n) {
|
|
9003
|
-
if (
|
|
9004
|
-
let i = e.left, a = new
|
|
9003
|
+
if (wm.has(t) || !Object.prototype.hasOwnProperty.call(n, t)) continue;
|
|
9004
|
+
let i = e.left, a = new am(typeof i == "object" && i && Object.prototype.hasOwnProperty.call(i, t) ? i[t] : void 0, n[t]);
|
|
9005
9005
|
e.push(a, t), r = !0;
|
|
9006
9006
|
}
|
|
9007
9007
|
if (!r) {
|
|
@@ -9010,8 +9010,8 @@ var Tm = function(e) {
|
|
|
9010
9010
|
}
|
|
9011
9011
|
e.exit();
|
|
9012
9012
|
};
|
|
9013
|
-
|
|
9014
|
-
var
|
|
9013
|
+
Dm.filterName = "objects";
|
|
9014
|
+
var Om = function(e) {
|
|
9015
9015
|
if (!e || !e.children || e.delta._t) return;
|
|
9016
9016
|
if (e.left === null || typeof e.left != "object") {
|
|
9017
9017
|
e.setResult(e.left).exit();
|
|
@@ -9022,17 +9022,17 @@ var Em = function(e) {
|
|
|
9022
9022
|
let n = e.children[r];
|
|
9023
9023
|
if (n === void 0) continue;
|
|
9024
9024
|
let i = n.childName;
|
|
9025
|
-
|
|
9025
|
+
wm.has(i) || (Object.prototype.hasOwnProperty.call(e.left, i) && n.result === void 0 ? delete t[i] : t[i] !== n.result && (t[i] = n.result));
|
|
9026
9026
|
}
|
|
9027
9027
|
e.setResult(t).exit();
|
|
9028
9028
|
};
|
|
9029
|
-
|
|
9030
|
-
var
|
|
9029
|
+
Om.filterName = "collectChildren";
|
|
9030
|
+
var km = function(e) {
|
|
9031
9031
|
if (!e.nested || e.delta._t) return;
|
|
9032
9032
|
let t = e.delta, n = !1;
|
|
9033
9033
|
for (let r in t) {
|
|
9034
|
-
if (
|
|
9035
|
-
let i = new
|
|
9034
|
+
if (wm.has(r) || !Object.prototype.hasOwnProperty.call(t, r)) continue;
|
|
9035
|
+
let i = new om(t[r]);
|
|
9036
9036
|
e.push(i, r), n = !0;
|
|
9037
9037
|
}
|
|
9038
9038
|
if (!n) {
|
|
@@ -9041,25 +9041,25 @@ var Dm = function(e) {
|
|
|
9041
9041
|
}
|
|
9042
9042
|
e.exit();
|
|
9043
9043
|
};
|
|
9044
|
-
|
|
9045
|
-
var
|
|
9044
|
+
km.filterName = "objects";
|
|
9045
|
+
var Am = (e) => {
|
|
9046
9046
|
if (!e || !e.children || e.delta._t) return;
|
|
9047
9047
|
let t = e.children.length, n = {};
|
|
9048
9048
|
for (let r = 0; r < t; r++) {
|
|
9049
9049
|
let t = e.children[r];
|
|
9050
9050
|
if (t === void 0) continue;
|
|
9051
9051
|
let i = t.childName;
|
|
9052
|
-
|
|
9052
|
+
wm.has(i) || n[i] !== t.result && (n[i] = t.result);
|
|
9053
9053
|
}
|
|
9054
9054
|
e.setResult(n).exit();
|
|
9055
9055
|
};
|
|
9056
|
-
|
|
9056
|
+
Am.filterName = "collectChildren";
|
|
9057
9057
|
//#endregion
|
|
9058
9058
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/texts.js
|
|
9059
|
-
var
|
|
9060
|
-
function
|
|
9059
|
+
var jm = 2, Mm = 60, Nm = null;
|
|
9060
|
+
function Pm(e, t) {
|
|
9061
9061
|
var n;
|
|
9062
|
-
if (!
|
|
9062
|
+
if (!Nm) {
|
|
9063
9063
|
let r;
|
|
9064
9064
|
if ((n = e == null ? void 0 : e.textDiff) != null && n.diffMatchPatch) r = new e.textDiff.diffMatchPatch();
|
|
9065
9065
|
else {
|
|
@@ -9067,7 +9067,7 @@ function Mm(e, t) {
|
|
|
9067
9067
|
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.");
|
|
9068
9068
|
throw e.diff_match_patch_not_found = !0, e;
|
|
9069
9069
|
}
|
|
9070
|
-
|
|
9070
|
+
Nm = {
|
|
9071
9071
|
diff: (e, t) => r.patch_toText(r.patch_make(e, t)),
|
|
9072
9072
|
patch: (e, t) => {
|
|
9073
9073
|
let n = r.patch_apply(r.patch_fromText(t), e);
|
|
@@ -9079,17 +9079,17 @@ function Mm(e, t) {
|
|
|
9079
9079
|
}
|
|
9080
9080
|
};
|
|
9081
9081
|
}
|
|
9082
|
-
return
|
|
9082
|
+
return Nm;
|
|
9083
9083
|
}
|
|
9084
|
-
var
|
|
9084
|
+
var Fm = function(e) {
|
|
9085
9085
|
var t, n;
|
|
9086
9086
|
if (e.leftType !== "string") return;
|
|
9087
|
-
let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) ||
|
|
9087
|
+
let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) || Mm;
|
|
9088
9088
|
if (r.length < a || i.length < a) {
|
|
9089
9089
|
e.setResult([r, i]).exit();
|
|
9090
9090
|
return;
|
|
9091
9091
|
}
|
|
9092
|
-
let o =
|
|
9092
|
+
let o = Pm(e.options);
|
|
9093
9093
|
if (!o) {
|
|
9094
9094
|
e.setResult([r, i]).exit();
|
|
9095
9095
|
return;
|
|
@@ -9098,19 +9098,19 @@ var Nm = function(e) {
|
|
|
9098
9098
|
e.setResult([
|
|
9099
9099
|
s(r, i),
|
|
9100
9100
|
0,
|
|
9101
|
-
|
|
9101
|
+
jm
|
|
9102
9102
|
]).exit();
|
|
9103
9103
|
};
|
|
9104
|
-
|
|
9105
|
-
var
|
|
9104
|
+
Fm.filterName = "texts";
|
|
9105
|
+
var Im = function(e) {
|
|
9106
9106
|
if (e.nested) return;
|
|
9107
9107
|
let t = e.delta;
|
|
9108
|
-
if (t[2] !==
|
|
9109
|
-
let n = t, r =
|
|
9108
|
+
if (t[2] !== jm) return;
|
|
9109
|
+
let n = t, r = Pm(e.options, !0).patch;
|
|
9110
9110
|
e.setResult(r(e.left, n[0])).exit();
|
|
9111
9111
|
};
|
|
9112
|
-
|
|
9113
|
-
var
|
|
9112
|
+
Im.filterName = "texts";
|
|
9113
|
+
var Lm = (e) => {
|
|
9114
9114
|
var t, n, r;
|
|
9115
9115
|
let i = /^@@ +-(\d+),(\d+) +\+(\d+),(\d+) +@@$/, a = e.split("\n");
|
|
9116
9116
|
for (let e = 0; e < a.length; e++) {
|
|
@@ -9131,21 +9131,21 @@ var Fm = (e) => {
|
|
|
9131
9131
|
} else s === "-" && (a[e] = `+${(r = a[e]) == null ? void 0 : r.slice(1)}`);
|
|
9132
9132
|
}
|
|
9133
9133
|
return a.join("\n");
|
|
9134
|
-
},
|
|
9134
|
+
}, Rm = function(e) {
|
|
9135
9135
|
if (e.nested) return;
|
|
9136
9136
|
let t = e.delta;
|
|
9137
|
-
if (t[2] !==
|
|
9137
|
+
if (t[2] !== jm) return;
|
|
9138
9138
|
let n = t;
|
|
9139
9139
|
e.setResult([
|
|
9140
|
-
|
|
9140
|
+
Lm(n[0]),
|
|
9141
9141
|
0,
|
|
9142
|
-
|
|
9142
|
+
jm
|
|
9143
9143
|
]).exit();
|
|
9144
9144
|
};
|
|
9145
|
-
|
|
9145
|
+
Rm.filterName = "texts";
|
|
9146
9146
|
//#endregion
|
|
9147
9147
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/trivial.js
|
|
9148
|
-
var
|
|
9148
|
+
var zm = function(e) {
|
|
9149
9149
|
if (e.left === e.right) {
|
|
9150
9150
|
e.setResult(void 0).exit();
|
|
9151
9151
|
return;
|
|
@@ -9178,8 +9178,8 @@ var Lm = function(e) {
|
|
|
9178
9178
|
}
|
|
9179
9179
|
e.left instanceof RegExp && (e.right instanceof RegExp ? e.setResult([e.left.toString(), e.right.toString()]).exit() : e.setResult([e.left, e.right]).exit());
|
|
9180
9180
|
};
|
|
9181
|
-
|
|
9182
|
-
var
|
|
9181
|
+
zm.filterName = "trivial";
|
|
9182
|
+
var Bm = function(e) {
|
|
9183
9183
|
if (e.delta === void 0) {
|
|
9184
9184
|
e.setResult(e.left).exit();
|
|
9185
9185
|
return;
|
|
@@ -9203,8 +9203,8 @@ var Rm = function(e) {
|
|
|
9203
9203
|
}
|
|
9204
9204
|
t.length === 3 && t[2] === 0 && e.setResult(void 0).exit();
|
|
9205
9205
|
};
|
|
9206
|
-
|
|
9207
|
-
var
|
|
9206
|
+
Bm.filterName = "trivial";
|
|
9207
|
+
var Vm = function(e) {
|
|
9208
9208
|
if (e.delta === void 0) {
|
|
9209
9209
|
e.setResult(e.delta).exit();
|
|
9210
9210
|
return;
|
|
@@ -9225,36 +9225,36 @@ var zm = function(e) {
|
|
|
9225
9225
|
}
|
|
9226
9226
|
t.length === 3 && t[2] === 0 && e.setResult([t[0]]).exit();
|
|
9227
9227
|
};
|
|
9228
|
-
|
|
9228
|
+
Vm.filterName = "trivial";
|
|
9229
9229
|
//#endregion
|
|
9230
9230
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/diffpatcher.js
|
|
9231
|
-
var
|
|
9231
|
+
var Hm = class {
|
|
9232
9232
|
constructor(e) {
|
|
9233
|
-
this.processor = new
|
|
9233
|
+
this.processor = new cm(e), this.processor.pipe(new sm("diff").append(Tm, zm, Cm, Fm, Em, gm).shouldHaveResult()), this.processor.pipe(new sm("patch").append(Om, ym, Bm, Im, Dm, vm).shouldHaveResult()), this.processor.pipe(new sm("reverse").append(Am, Sm, Vm, Rm, km, bm).shouldHaveResult());
|
|
9234
9234
|
}
|
|
9235
9235
|
options(e) {
|
|
9236
9236
|
return this.processor.options(e);
|
|
9237
9237
|
}
|
|
9238
9238
|
diff(e, t) {
|
|
9239
|
-
return this.processor.process(new
|
|
9239
|
+
return this.processor.process(new im(e, t));
|
|
9240
9240
|
}
|
|
9241
9241
|
patch(e, t) {
|
|
9242
|
-
return this.processor.process(new
|
|
9242
|
+
return this.processor.process(new am(e, t));
|
|
9243
9243
|
}
|
|
9244
9244
|
reverse(e) {
|
|
9245
|
-
return this.processor.process(new
|
|
9245
|
+
return this.processor.process(new om(e));
|
|
9246
9246
|
}
|
|
9247
9247
|
unpatch(e, t) {
|
|
9248
9248
|
return this.patch(e, this.reverse(t));
|
|
9249
9249
|
}
|
|
9250
9250
|
clone(e) {
|
|
9251
|
-
return
|
|
9251
|
+
return em(e);
|
|
9252
9252
|
}
|
|
9253
9253
|
};
|
|
9254
9254
|
//#endregion
|
|
9255
9255
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/index.js
|
|
9256
|
-
function
|
|
9257
|
-
return new
|
|
9256
|
+
function Um(e) {
|
|
9257
|
+
return new Hm(e);
|
|
9258
9258
|
}
|
|
9259
9259
|
//#endregion
|
|
9260
9260
|
//#region node_modules/.pnpm/@dmsnell+diff-match-patch@1.1.0/node_modules/@dmsnell/diff-match-patch/index.js
|
|
@@ -9816,46 +9816,46 @@ $.Diff = function(e, t) {
|
|
|
9816
9816
|
};
|
|
9817
9817
|
//#endregion
|
|
9818
9818
|
//#region src/components/audit-log/create-diff-patcher.tsx
|
|
9819
|
-
var
|
|
9819
|
+
var Wm = (e = {}) => Um({
|
|
9820
9820
|
...e,
|
|
9821
9821
|
textDiff: {
|
|
9822
9822
|
diffMatchPatch: $,
|
|
9823
9823
|
minLength: 120
|
|
9824
9824
|
},
|
|
9825
9825
|
cloneDiffValues: !0
|
|
9826
|
-
}),
|
|
9826
|
+
}), Gm = ["user", "unittemplate"], Km = Wm(), qm = (e, t, n) => {
|
|
9827
9827
|
let r = Object.fromEntries(e.map((e) => [e.sectionKey, e.sectionLabel]));
|
|
9828
9828
|
for (let e = t.length - 1; e >= 0; e--) {
|
|
9829
9829
|
let n = r[t[e]];
|
|
9830
9830
|
if (n) return n;
|
|
9831
9831
|
}
|
|
9832
9832
|
return n || "";
|
|
9833
|
-
},
|
|
9833
|
+
}, Jm = (e) => {
|
|
9834
9834
|
let t = (e) => _r(e) ? kr(e) : String(e);
|
|
9835
9835
|
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);
|
|
9836
|
-
},
|
|
9836
|
+
}, Ym = (e) => {
|
|
9837
9837
|
switch (e.length) {
|
|
9838
9838
|
case 1: {
|
|
9839
9839
|
let [t] = e;
|
|
9840
9840
|
return {
|
|
9841
9841
|
type: "created",
|
|
9842
9842
|
before: "",
|
|
9843
|
-
after:
|
|
9843
|
+
after: Jm(t)
|
|
9844
9844
|
};
|
|
9845
9845
|
}
|
|
9846
9846
|
case 2: {
|
|
9847
9847
|
let [t, n] = e;
|
|
9848
9848
|
return {
|
|
9849
9849
|
type: "modified",
|
|
9850
|
-
before:
|
|
9851
|
-
after:
|
|
9850
|
+
before: Jm(t),
|
|
9851
|
+
after: Jm(n)
|
|
9852
9852
|
};
|
|
9853
9853
|
}
|
|
9854
9854
|
case 3: {
|
|
9855
9855
|
let [t] = e;
|
|
9856
9856
|
return {
|
|
9857
9857
|
type: "deleted",
|
|
9858
|
-
before:
|
|
9858
|
+
before: Jm(t),
|
|
9859
9859
|
after: ""
|
|
9860
9860
|
};
|
|
9861
9861
|
}
|
|
@@ -9865,15 +9865,15 @@ var Hm = (e = {}) => Vm({
|
|
|
9865
9865
|
after: ""
|
|
9866
9866
|
};
|
|
9867
9867
|
}
|
|
9868
|
-
},
|
|
9869
|
-
let r =
|
|
9868
|
+
}, Xm = (e) => Array.isArray(e), Zm = (e, t) => t ? Xm(t) ? t.length === 0 ? e : t.reduce((e, t) => Km.unpatch(tn(e), tn(t)), tn(e)) : Km.unpatch(tn(e), tn(t)) : e, Qm = (e) => e.createdAt || e.date, $m = (e, t, n) => {
|
|
9869
|
+
let r = Qm(e);
|
|
9870
9870
|
if (!r) return {
|
|
9871
9871
|
oldJson: "",
|
|
9872
9872
|
newJson: "",
|
|
9873
9873
|
error: `Cannot create comparison view: missing date for audit log ${e.id}`
|
|
9874
9874
|
};
|
|
9875
9875
|
let i = t.filter((e) => {
|
|
9876
|
-
let t =
|
|
9876
|
+
let t = Qm(e);
|
|
9877
9877
|
return !!(e.diffs && t && t >= r);
|
|
9878
9878
|
}), a = Array.from({ length: i.length + 1 });
|
|
9879
9879
|
a[0] = tn(n);
|
|
@@ -9886,7 +9886,7 @@ var Hm = (e = {}) => Vm({
|
|
|
9886
9886
|
a[e + 1] = a[e];
|
|
9887
9887
|
continue;
|
|
9888
9888
|
}
|
|
9889
|
-
a[e + 1] =
|
|
9889
|
+
a[e + 1] = Zm(a[e], t);
|
|
9890
9890
|
}
|
|
9891
9891
|
let e = i.length > 0 ? a[i.length - 1] : n, t = i.length > 0 ? a[i.length] : n;
|
|
9892
9892
|
o = JSON.stringify(t == null ? "" : t, null, 2), s = JSON.stringify(e == null ? "" : e, null, 2);
|
|
@@ -9901,10 +9901,10 @@ var Hm = (e = {}) => Vm({
|
|
|
9901
9901
|
oldJson: o,
|
|
9902
9902
|
newJson: s
|
|
9903
9903
|
};
|
|
9904
|
-
},
|
|
9904
|
+
}, eh = (e, t, n = {}, r = []) => {
|
|
9905
9905
|
var i;
|
|
9906
9906
|
if (!e) return;
|
|
9907
|
-
let a = [...
|
|
9907
|
+
let a = [...Gm, ...(i = n.hiddenKeys) == null ? [] : i];
|
|
9908
9908
|
Object.keys(e).forEach((i) => {
|
|
9909
9909
|
var o;
|
|
9910
9910
|
let s = e[i];
|
|
@@ -9917,12 +9917,12 @@ var Hm = (e = {}) => Vm({
|
|
|
9917
9917
|
sn(s) ? t.push({
|
|
9918
9918
|
deltaFormat: [...s],
|
|
9919
9919
|
path: c
|
|
9920
|
-
}) : hn(s) &&
|
|
9920
|
+
}) : hn(s) && eh(s, t, n, c);
|
|
9921
9921
|
});
|
|
9922
|
-
},
|
|
9922
|
+
}, th = (e, t = {}) => {
|
|
9923
9923
|
let n = [];
|
|
9924
|
-
return e ? (
|
|
9925
|
-
},
|
|
9924
|
+
return e ? (eh(e, n, t), n) : [];
|
|
9925
|
+
}, nh = (e) => e.replace(/\[\d+\]/g, "").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]/g, " ").replace(/\s+/g, " ").trim().replace(/^./, (e) => e.toUpperCase()), rh = (e) => {
|
|
9926
9926
|
if (e == null || e === "") return "empty";
|
|
9927
9927
|
if (typeof e == "boolean") return e ? "true" : "false";
|
|
9928
9928
|
if (typeof e == "string") return e;
|
|
@@ -9933,27 +9933,27 @@ var Hm = (e = {}) => Vm({
|
|
|
9933
9933
|
} catch {
|
|
9934
9934
|
return String(e);
|
|
9935
9935
|
}
|
|
9936
|
-
},
|
|
9936
|
+
}, ih = (e, t = e.length - 1) => {
|
|
9937
9937
|
if (t >= e.length) return "Value";
|
|
9938
9938
|
let n = e[t];
|
|
9939
|
-
return !n || mr(n) ?
|
|
9940
|
-
},
|
|
9941
|
-
let o =
|
|
9939
|
+
return !n || mr(n) ? ih(e, t - 1) : nh(n);
|
|
9940
|
+
}, ah = ({ userName: e, type: t, property: n, before: r, after: i, sectionName: a }) => {
|
|
9941
|
+
let o = rh(r), s = rh(i), c = a ? ` in ${a}` : "";
|
|
9942
9942
|
switch (t) {
|
|
9943
9943
|
case "modified": return `${e} updated ${n} from ${o} to ${s}${c}.`;
|
|
9944
9944
|
case "created": return `${e} created ${s}${c}.`;
|
|
9945
9945
|
case "deleted": return `${e} deleted ${o}${c}.`;
|
|
9946
9946
|
default: return `${e} changed ${n}${c}.`;
|
|
9947
9947
|
}
|
|
9948
|
-
},
|
|
9948
|
+
}, oh = ({ sectionNames: e, userName: t, diffs: n, defaultSectionName: r }) => {
|
|
9949
9949
|
let i = {
|
|
9950
9950
|
headers: [{ cells: [{ value: "Changes" }] }],
|
|
9951
9951
|
rows: n.map((n) => {
|
|
9952
|
-
let { deltaFormat: i, path: a } = n, o =
|
|
9953
|
-
return { cells: [{ value:
|
|
9952
|
+
let { deltaFormat: i, path: a } = n, o = qm(e, a, r), { type: s, before: c, after: l } = Ym(i);
|
|
9953
|
+
return { cells: [{ value: ah({
|
|
9954
9954
|
userName: t,
|
|
9955
9955
|
type: s,
|
|
9956
|
-
property:
|
|
9956
|
+
property: ih(a),
|
|
9957
9957
|
before: c,
|
|
9958
9958
|
after: l,
|
|
9959
9959
|
sectionName: o
|
|
@@ -9961,7 +9961,7 @@ var Hm = (e = {}) => Vm({
|
|
|
9961
9961
|
})
|
|
9962
9962
|
};
|
|
9963
9963
|
return /* @__PURE__ */ S(eu, { table: i });
|
|
9964
|
-
},
|
|
9964
|
+
}, sh = Object.freeze({
|
|
9965
9965
|
summary: {
|
|
9966
9966
|
label: "Summary",
|
|
9967
9967
|
value: "summary"
|
|
@@ -9970,13 +9970,13 @@ var Hm = (e = {}) => Vm({
|
|
|
9970
9970
|
label: "Compare",
|
|
9971
9971
|
value: "compare"
|
|
9972
9972
|
}
|
|
9973
|
-
}),
|
|
9974
|
-
let c = [
|
|
9973
|
+
}), ch = ({ auditLog: e, auditLogs: t, data: n, isOpen: r, transformDiffsConfig: i, sectionNames: a, defaultSectionName: o, onClose: s }) => {
|
|
9974
|
+
let c = [sh.summary, sh.compare].map(({ label: e, value: t }) => ({
|
|
9975
9975
|
label: e,
|
|
9976
9976
|
value: t
|
|
9977
9977
|
})), [l, u] = v(c[0]), { diffs: d = void 0 } = e || {};
|
|
9978
9978
|
if (!d) return null;
|
|
9979
|
-
let { oldJson: f, newJson: p, error: m } =
|
|
9979
|
+
let { oldJson: f, newJson: p, error: m } = $m(e, t, n);
|
|
9980
9980
|
return /* @__PURE__ */ S(Ts, {
|
|
9981
9981
|
visible: r,
|
|
9982
9982
|
centered: !0,
|
|
@@ -9984,20 +9984,20 @@ var Hm = (e = {}) => Vm({
|
|
|
9984
9984
|
children: /* @__PURE__ */ S(rs, { dialog: {
|
|
9985
9985
|
scroll: !0,
|
|
9986
9986
|
heading: "Comparison view",
|
|
9987
|
-
content: /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(
|
|
9987
|
+
content: /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(Xf, {
|
|
9988
9988
|
name: "ViewTab",
|
|
9989
9989
|
onChange: (e) => u(c.find((t) => t.value === e.target.value)),
|
|
9990
9990
|
options: c,
|
|
9991
9991
|
value: l
|
|
9992
|
-
}), l.value === "summary" ? /* @__PURE__ */ S(
|
|
9992
|
+
}), l.value === "summary" ? /* @__PURE__ */ S(oh, {
|
|
9993
9993
|
userName: e.userName,
|
|
9994
9994
|
sectionNames: a,
|
|
9995
|
-
diffs:
|
|
9995
|
+
diffs: th(d, i),
|
|
9996
9996
|
defaultSectionName: o
|
|
9997
9997
|
}) : m ? /* @__PURE__ */ S("div", {
|
|
9998
9998
|
style: { padding: 16 },
|
|
9999
9999
|
children: m
|
|
10000
|
-
}) : /* @__PURE__ */ S(
|
|
10000
|
+
}) : /* @__PURE__ */ S(Vp, {
|
|
10001
10001
|
oldJson: f,
|
|
10002
10002
|
newJson: p
|
|
10003
10003
|
})] }),
|
|
@@ -10010,7 +10010,7 @@ var Hm = (e = {}) => Vm({
|
|
|
10010
10010
|
height: "90vh"
|
|
10011
10011
|
} })
|
|
10012
10012
|
});
|
|
10013
|
-
},
|
|
10013
|
+
}, lh = [
|
|
10014
10014
|
{
|
|
10015
10015
|
label: "10 / page",
|
|
10016
10016
|
value: 10
|
|
@@ -10023,8 +10023,8 @@ var Hm = (e = {}) => Vm({
|
|
|
10023
10023
|
label: "50 / page",
|
|
10024
10024
|
value: 50
|
|
10025
10025
|
}
|
|
10026
|
-
],
|
|
10027
|
-
let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s =
|
|
10026
|
+
], uh = (e, t = {}) => {
|
|
10027
|
+
let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s = th(n, t).length, c = s ? `${s} change${s === 1 ? "" : "s"}` : "no field changes";
|
|
10028
10028
|
if (i === "API" && !r) return a === "Created" ? "Created through API" : "Changed through API";
|
|
10029
10029
|
switch (a) {
|
|
10030
10030
|
case "Created": return `Created by ${r}`;
|
|
@@ -10034,7 +10034,7 @@ var Hm = (e = {}) => Vm({
|
|
|
10034
10034
|
case "Updated": return `Updated by ${r} (${c})`;
|
|
10035
10035
|
default: return `Change by ${r}`;
|
|
10036
10036
|
}
|
|
10037
|
-
},
|
|
10037
|
+
}, dh = ({ 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 }) => {
|
|
10038
10038
|
let [g, _] = v(!1), [y, b] = v(null), w = (e) => {
|
|
10039
10039
|
if (e.snapshot) {
|
|
10040
10040
|
f == null || f(e.snapshot, e);
|
|
@@ -10053,7 +10053,7 @@ var Hm = (e = {}) => Vm({
|
|
|
10053
10053
|
return {
|
|
10054
10054
|
cells: [
|
|
10055
10055
|
{
|
|
10056
|
-
value: e.snapshot ? `Snapshot: ${e.snapshot}` :
|
|
10056
|
+
value: e.snapshot ? `Snapshot: ${e.snapshot}` : uh(e, l),
|
|
10057
10057
|
type: "Link",
|
|
10058
10058
|
disabled: n,
|
|
10059
10059
|
onClick: n ? void 0 : () => w(e),
|
|
@@ -10072,8 +10072,8 @@ var Hm = (e = {}) => Vm({
|
|
|
10072
10072
|
type: "Static"
|
|
10073
10073
|
},
|
|
10074
10074
|
{
|
|
10075
|
-
value:
|
|
10076
|
-
date:
|
|
10075
|
+
value: Qp({
|
|
10076
|
+
date: Qm(e),
|
|
10077
10077
|
showTime: !0
|
|
10078
10078
|
}),
|
|
10079
10079
|
type: "Static"
|
|
@@ -10083,12 +10083,12 @@ var Hm = (e = {}) => Vm({
|
|
|
10083
10083
|
};
|
|
10084
10084
|
});
|
|
10085
10085
|
return /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(bo, {
|
|
10086
|
-
heading: /* @__PURE__ */ C(
|
|
10086
|
+
heading: /* @__PURE__ */ C(bd, {
|
|
10087
10087
|
gap: !0,
|
|
10088
10088
|
wrap: !0,
|
|
10089
10089
|
children: [/* @__PURE__ */ S(es, { children: "Changes" }), c.map((e) => {
|
|
10090
10090
|
var t;
|
|
10091
|
-
return /* @__PURE__ */ S(
|
|
10091
|
+
return /* @__PURE__ */ S(Qu, {
|
|
10092
10092
|
small: (t = e.small) == null || t,
|
|
10093
10093
|
checked: e.checked,
|
|
10094
10094
|
onChange: e.onChange,
|
|
@@ -10098,7 +10098,7 @@ var Hm = (e = {}) => Vm({
|
|
|
10098
10098
|
})]
|
|
10099
10099
|
}),
|
|
10100
10100
|
padding: !1,
|
|
10101
|
-
children: r ? /* @__PURE__ */ S(
|
|
10101
|
+
children: r ? /* @__PURE__ */ S(Ld, {
|
|
10102
10102
|
height: "100px",
|
|
10103
10103
|
theme: Mi.WHITE,
|
|
10104
10104
|
children: /* @__PURE__ */ S(Sa, { dark: !0 })
|
|
@@ -10116,14 +10116,14 @@ var Hm = (e = {}) => Vm({
|
|
|
10116
10116
|
onChange: (e) => {
|
|
10117
10117
|
u(Number(e.target.value));
|
|
10118
10118
|
},
|
|
10119
|
-
options:
|
|
10119
|
+
options: lh,
|
|
10120
10120
|
value: a
|
|
10121
10121
|
},
|
|
10122
10122
|
onSelectPage: (e) => d(e),
|
|
10123
10123
|
small: !0
|
|
10124
10124
|
} }
|
|
10125
10125
|
} })
|
|
10126
|
-
}), g && y && y.diffs && /* @__PURE__ */ S(
|
|
10126
|
+
}), g && y && y.diffs && /* @__PURE__ */ S(ch, {
|
|
10127
10127
|
sectionNames: o,
|
|
10128
10128
|
isOpen: g,
|
|
10129
10129
|
onClose: () => _(!1),
|
|
@@ -10133,7 +10133,7 @@ var Hm = (e = {}) => Vm({
|
|
|
10133
10133
|
data: t,
|
|
10134
10134
|
transformDiffsConfig: l
|
|
10135
10135
|
})] });
|
|
10136
|
-
},
|
|
10136
|
+
}, fh = ({ pathName: e, moduleName: t, onNavigate: n, onStartTimingEvent: r }) => {
|
|
10137
10137
|
let i = window.location.href, a = _(i);
|
|
10138
10138
|
return d(() => {
|
|
10139
10139
|
a.current = i;
|
|
@@ -10156,20 +10156,20 @@ var Hm = (e = {}) => Vm({
|
|
|
10156
10156
|
});
|
|
10157
10157
|
};
|
|
10158
10158
|
}, [e, t]), null;
|
|
10159
|
-
},
|
|
10159
|
+
}, ph = {
|
|
10160
10160
|
errorBoundary: "_errorBoundary_hmco0_1",
|
|
10161
10161
|
sidebarErrorBoundary: "_sidebarErrorBoundary_hmco0_5",
|
|
10162
10162
|
rightSidebarErrorBoundary: "_rightSidebarErrorBoundary_hmco0_6"
|
|
10163
|
-
},
|
|
10164
|
-
let { ErrorComponent: t, isSideBar: n, isRightSideBar: r, isPage: i, style: a } = e == null ? {} : e, { translations: o } =
|
|
10163
|
+
}, mh = ({ options: e }) => {
|
|
10164
|
+
let { ErrorComponent: t, isSideBar: n, isRightSideBar: r, isPage: i, style: a } = e == null ? {} : e, { translations: o } = Ap();
|
|
10165
10165
|
if (t) return /* @__PURE__ */ S(t, {});
|
|
10166
10166
|
if (n || r) return /* @__PURE__ */ S("div", {
|
|
10167
|
-
className: b(n ?
|
|
10167
|
+
className: b(n ? ph.sidebarErrorBoundary : "", r ? ph.rightSidebarErrorBoundary : ""),
|
|
10168
10168
|
style: a,
|
|
10169
10169
|
children: o == null ? void 0 : o.unexpectedError
|
|
10170
10170
|
});
|
|
10171
10171
|
let s = /* @__PURE__ */ S("div", {
|
|
10172
|
-
className:
|
|
10172
|
+
className: ph.errorBoundary,
|
|
10173
10173
|
style: a,
|
|
10174
10174
|
children: /* @__PURE__ */ S(Gs, { message: {
|
|
10175
10175
|
icon: !0,
|
|
@@ -10179,24 +10179,24 @@ var Hm = (e = {}) => Vm({
|
|
|
10179
10179
|
width: "100%"
|
|
10180
10180
|
} })
|
|
10181
10181
|
});
|
|
10182
|
-
return i ? /* @__PURE__ */ S(
|
|
10182
|
+
return i ? /* @__PURE__ */ S(Kd, {
|
|
10183
10183
|
scroll: !1,
|
|
10184
10184
|
padding: 0,
|
|
10185
10185
|
children: s
|
|
10186
10186
|
}) : s;
|
|
10187
|
-
},
|
|
10188
|
-
fallback: /* @__PURE__ */ S(
|
|
10187
|
+
}, hh = ({ children: e, options: t }) => /* @__PURE__ */ S(Ei.ErrorBoundary, {
|
|
10188
|
+
fallback: /* @__PURE__ */ S(mh, { options: t }),
|
|
10189
10189
|
onError: (e, t) => {
|
|
10190
10190
|
console.error("Error caught by boundary:", e, t);
|
|
10191
10191
|
},
|
|
10192
10192
|
children: e
|
|
10193
|
-
}),
|
|
10193
|
+
}), gh = (e, t = {}) => (n) => /* @__PURE__ */ S(hh, {
|
|
10194
10194
|
options: t,
|
|
10195
10195
|
children: /* @__PURE__ */ S(e, { ...n })
|
|
10196
|
-
}),
|
|
10197
|
-
|
|
10198
|
-
e ===
|
|
10196
|
+
}), _h = (e = {}) => (t) => gh(t, e), vh = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, yh = (e) => {
|
|
10197
|
+
jp(Ep.LanguageKey, e.languageKey), Object.entries(e).forEach(([e, t]) => {
|
|
10198
|
+
e === Ep.Translations ? jp(e, Op(t)) : jp(e, vh(t) ? t : { ...t });
|
|
10199
10199
|
});
|
|
10200
10200
|
};
|
|
10201
10201
|
//#endregion
|
|
10202
|
-
export { Zi as Accordion, ya as AccordionWithDefaultToggle, fo as Actions, ki as Align,
|
|
10202
|
+
export { Zi as Accordion, ya as AccordionWithDefaultToggle, fo as Actions, ki as Align, dh as AuditLog, no as Badge, go as Breadcrumb, mo as BreadcrumbLinkType, q as Button, vo as ButtonGroup, Ai as ButtonPosition, Ca as ButtonType, bo as Card, ha as CheckBox, Gi as Chevron, Ji as Collapse, Oi as Color, Vo as ColorInput, Bo as ColorInputPopover, Ko as Column, rs as Dialog, Zp as DiffTable, Vp as DiffViewer, W as DisabledContext, Zo as Divider, us as Drawer, rp as ElementType, du as Empty, hh as ErrorBoundary, yd as Field, hd as FileButton, bs as FileInput, bd as Flex, Sd as FormRow, Eo as Grid, H as GroupOrder, es as Heading, ma as HelpIcon, G as Icon, U as IconType, hs as Input, ps as InputGroup, ol as InputGroupAddon, _s as InputReaderMethods, Ni as InputType, _d as Label, Fd as List, wd as ListHeading, Ad as ListSubheading, Ld as Loader, mf as Mention, lo as Menu, Ka as MenuCarat, Ga as MenuType, Gs as Message, zs as MessageType, Ts as Modal, Zs as NativeSelect, yl as NumberInput, Wd as OptionDropdown, Kd as Page, sl as Pagination, lp as PopConfirm, So as Popover, qd as Portal, Yd as PrintHeader, Os as ProgressBar, Xd as RadioButton, pf as RichTextInput, gf as Row, el as Select, Lp as SettingField, xf as SideBar, Cf as Skeleton, kl as Slider, Ns as SmartUploadModal, xs as Spacer, Sa as Spinner, eu as Table, md as TableImportExport, Xf as Tabs, Yo as Text, $f as TextArea, Zf as TextLink, ji as TextTransform, Mi as Theme, ai as Toaster, Qu as Toggle, K as Tooltip, op as TopBar, pp as Tree, Tp as TreeTable, Di as TriggerType, Uf as UnitInput, qf as UnitSlider, Fp as UnitTable, fh as UsageTracker, Yu as dismissToast, Bf as initializeContext, yh as initializeGuiLibrary, vs as readFile, Ju as toast, Qs as useFocus, Ss as useKeyboardEvent, tc as useWindowWidth, _h as withChainableErrorBoundary, gh as withErrorBoundary };
|