@jield/solodb-react-components 1.2.5 → 1.2.6
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.cjs +11 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +171 -134
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -851,7 +851,7 @@ var tn = () => {
|
|
|
851
851
|
})]
|
|
852
852
|
});
|
|
853
853
|
//#endregion
|
|
854
|
-
//#region \0@oxc-project+runtime@0.
|
|
854
|
+
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/typeof.js
|
|
855
855
|
function rn(e) {
|
|
856
856
|
"@babel/helpers - typeof";
|
|
857
857
|
return rn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
@@ -861,7 +861,7 @@ function rn(e) {
|
|
|
861
861
|
}, rn(e);
|
|
862
862
|
}
|
|
863
863
|
//#endregion
|
|
864
|
-
//#region \0@oxc-project+runtime@0.
|
|
864
|
+
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/toPrimitive.js
|
|
865
865
|
function an(e, t) {
|
|
866
866
|
if (rn(e) != "object" || !e) return e;
|
|
867
867
|
var n = e[Symbol.toPrimitive];
|
|
@@ -873,13 +873,13 @@ function an(e, t) {
|
|
|
873
873
|
return (t === "string" ? String : Number)(e);
|
|
874
874
|
}
|
|
875
875
|
//#endregion
|
|
876
|
-
//#region \0@oxc-project+runtime@0.
|
|
876
|
+
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/toPropertyKey.js
|
|
877
877
|
function on(e) {
|
|
878
878
|
var t = an(e, "string");
|
|
879
879
|
return rn(t) == "symbol" ? t : t + "";
|
|
880
880
|
}
|
|
881
881
|
//#endregion
|
|
882
|
-
//#region \0@oxc-project+runtime@0.
|
|
882
|
+
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/defineProperty.js
|
|
883
883
|
function sn(e, t, n) {
|
|
884
884
|
return (t = on(t)) in e ? Object.defineProperty(e, t, {
|
|
885
885
|
value: n,
|
|
@@ -2801,7 +2801,7 @@ function ja(e) {
|
|
|
2801
2801
|
return Object.assign({}, D, (t = {}, t[b] = v ? h + "px" : "", t[y] = _ ? p + "px" : "", t.transform = "", t));
|
|
2802
2802
|
}
|
|
2803
2803
|
function Ma(e) {
|
|
2804
|
-
var t = e.state, n = e.options, r = n.gpuAcceleration, i = r === void 0
|
|
2804
|
+
var t = e.state, n = e.options, r = n.gpuAcceleration, i = r === void 0 || r, a = n.adaptive, o = a === void 0 || a, s = n.roundOffsets, c = s === void 0 || s, l = {
|
|
2805
2805
|
placement: Zi(t.placement),
|
|
2806
2806
|
variation: Oa(t.placement),
|
|
2807
2807
|
popper: t.elements.popper,
|
|
@@ -2829,7 +2829,7 @@ var Na = {
|
|
|
2829
2829
|
data: {}
|
|
2830
2830
|
}, Pa = { passive: !0 };
|
|
2831
2831
|
function Fa(e) {
|
|
2832
|
-
var t = e.state, n = e.instance, r = e.options, i = r.scroll, a = i === void 0
|
|
2832
|
+
var t = e.state, n = e.instance, r = e.options, i = r.scroll, a = i === void 0 || i, o = r.resize, s = o === void 0 || o, c = Qi(t.elements.popper), l = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
|
2833
2833
|
return a && l.forEach(function(e) {
|
|
2834
2834
|
e.addEventListener("scroll", n.update, Pa);
|
|
2835
2835
|
}), s && c.addEventListener("resize", n.update, Pa), function() {
|
|
@@ -3015,7 +3015,7 @@ function $a(e) {
|
|
|
3015
3015
|
//#region node_modules/@popperjs/core/lib/utils/detectOverflow.js
|
|
3016
3016
|
function eo(e, t) {
|
|
3017
3017
|
t === void 0 && (t = {});
|
|
3018
|
-
var n = t, r = n.placement, i = r === void 0 ? e.placement : r, a = n.strategy, o = a === void 0 ? e.strategy : a, s = n.boundary, c = s === void 0 ? Wi : s, l = n.rootBoundary, u = l === void 0 ? Gi : l, d = n.elementContext, f = d === void 0 ? Ki : d, p = n.altBoundary, m = p
|
|
3018
|
+
var n = t, r = n.placement, i = r === void 0 ? e.placement : r, a = n.strategy, o = a === void 0 ? e.strategy : a, s = n.boundary, c = s === void 0 ? Wi : s, l = n.rootBoundary, u = l === void 0 ? Gi : l, d = n.elementContext, f = d === void 0 ? Ki : d, p = n.altBoundary, m = p !== void 0 && p, h = n.padding, g = h === void 0 ? 0 : h, _ = Sa(typeof g == "number" ? Ca(g, Hi) : g), v = f === "popper" ? qi : Ki, y = e.rects.popper, b = e.elements[m ? v : f], x = Qa($i(b) ? b : b.contextElement || pa(e.elements.popper), c, u, o), S = sa(e.elements.reference), C = $a({
|
|
3019
3019
|
reference: S,
|
|
3020
3020
|
element: y,
|
|
3021
3021
|
strategy: "absolute",
|
|
@@ -3071,7 +3071,7 @@ function no(e) {
|
|
|
3071
3071
|
function ro(e) {
|
|
3072
3072
|
var t = e.state, n = e.options, r = e.name;
|
|
3073
3073
|
if (!t.modifiersData[r]._skip) {
|
|
3074
|
-
for (var i = n.mainAxis, a = i === void 0
|
|
3074
|
+
for (var i = n.mainAxis, a = i === void 0 || i, o = n.altAxis, s = o === void 0 || o, c = n.fallbackPlacements, l = n.padding, u = n.boundary, d = n.rootBoundary, f = n.altBoundary, p = n.flipVariations, m = p === void 0 || p, h = n.allowedAutoPlacements, g = t.options.placement, _ = Zi(g) === g, v = c || (_ || !m ? [Ra(g)] : no(g)), y = [g].concat(v).reduce(function(e, n) {
|
|
3075
3075
|
return e.concat(Zi(n) === "auto" ? to(t, {
|
|
3076
3076
|
placement: n,
|
|
3077
3077
|
boundary: u,
|
|
@@ -3211,7 +3211,7 @@ function ho(e) {
|
|
|
3211
3211
|
//#endregion
|
|
3212
3212
|
//#region node_modules/@popperjs/core/lib/modifiers/preventOverflow.js
|
|
3213
3213
|
function go(e) {
|
|
3214
|
-
var t = e.state, n = e.options, r = e.name, i = n.mainAxis, a = i === void 0
|
|
3214
|
+
var t = e.state, n = e.options, r = e.name, i = n.mainAxis, a = i === void 0 || i, o = n.altAxis, s = o !== void 0 && o, c = n.boundary, l = n.rootBoundary, u = n.altBoundary, d = n.padding, f = n.tether, p = f === void 0 || f, m = n.tetherOffset, h = m === void 0 ? 0 : m, g = eo(t, {
|
|
3215
3215
|
boundary: c,
|
|
3216
3216
|
rootBoundary: l,
|
|
3217
3217
|
padding: d,
|
|
@@ -4079,7 +4079,7 @@ Ws.displayName = "DropdownToggle";
|
|
|
4079
4079
|
//#endregion
|
|
4080
4080
|
//#region node_modules/react-bootstrap/esm/Dropdown.js
|
|
4081
4081
|
var Gs = /*#__PURE__*/ e.forwardRef((e, t) => {
|
|
4082
|
-
let { bsPrefix: n, drop: r = "down", show: i, className: a, align: o = "start", onSelect: s, onToggle: c, focusFirstItemOnShow: l, as: d = "div", navbar: f, autoClose: p = !0, ...m } = _n(e, { show: "onToggle" }), g = u(Ls), _ = H(n, "dropdown"), v = On(), y = (e) => p === !1 ? e === "click" : p === "inside" ? e !== "rootClose" : p
|
|
4082
|
+
let { bsPrefix: n, drop: r = "down", show: i, className: a, align: o = "start", onSelect: s, onToggle: c, focusFirstItemOnShow: l, as: d = "div", navbar: f, autoClose: p = !0, ...m } = _n(e, { show: "onToggle" }), g = u(Ls), _ = H(n, "dropdown"), v = On(), y = (e) => p === !1 ? e === "click" : p === "inside" ? e !== "rootClose" : p !== "outside" || e !== "select", b = kr((e, t) => {
|
|
4083
4083
|
var n;
|
|
4084
4084
|
!((n = t.originalEvent) == null || (n = n.target) == null) && n.classList.contains("dropdown-toggle") && t.source === "mousedown" || (t.originalEvent.currentTarget === document && (t.source !== "keydown" || t.originalEvent.key === "Escape") && (t.source = "rootClose"), y(t.source) && c?.(e, t));
|
|
4085
4085
|
}), S = Hs(o === "end", r, v), C = h(() => ({
|
|
@@ -4811,7 +4811,7 @@ var ll = /*#__PURE__*/ s((t, n) => {
|
|
|
4811
4811
|
let _e = Object.assign({
|
|
4812
4812
|
role: i,
|
|
4813
4813
|
ref: ae.setDialogRef,
|
|
4814
|
-
"aria-modal": i === "dialog"
|
|
4814
|
+
"aria-modal": i === "dialog" || void 0
|
|
4815
4815
|
}, ne, {
|
|
4816
4816
|
style: o,
|
|
4817
4817
|
className: a,
|
|
@@ -7636,51 +7636,53 @@ function Pf(e, t, n = {}, r = Af) {
|
|
|
7636
7636
|
};
|
|
7637
7637
|
}
|
|
7638
7638
|
e.Component;
|
|
7639
|
-
function Ff({ threshold: t, delay: n, trackVisibility: r, rootMargin: i,
|
|
7640
|
-
let [
|
|
7641
|
-
inView: !!
|
|
7639
|
+
function Ff({ threshold: t, delay: n, trackVisibility: r, rootMargin: i, scrollMargin: a, root: o, triggerOnce: s, skip: c, initialInView: l, fallbackInView: u, onChange: d } = {}) {
|
|
7640
|
+
let [f, p] = e.useState(null), m = e.useRef(d), h = e.useRef(l), [g, _] = e.useState({
|
|
7641
|
+
inView: !!l,
|
|
7642
7642
|
entry: void 0
|
|
7643
7643
|
});
|
|
7644
|
-
|
|
7645
|
-
if (
|
|
7644
|
+
m.current = d, e.useEffect(() => {
|
|
7645
|
+
if (h.current === void 0 && (h.current = l), c || !f) return;
|
|
7646
7646
|
let e;
|
|
7647
|
-
return e = Pf(
|
|
7648
|
-
let r =
|
|
7649
|
-
|
|
7647
|
+
return e = Pf(f, (t, n) => {
|
|
7648
|
+
let r = h.current;
|
|
7649
|
+
h.current = t, !(r === void 0 && !t) && (_({
|
|
7650
7650
|
inView: t,
|
|
7651
7651
|
entry: n
|
|
7652
|
-
}),
|
|
7652
|
+
}), m.current && m.current(t, n), n.isIntersecting && s && e && (e(), e = void 0));
|
|
7653
7653
|
}, {
|
|
7654
|
-
root:
|
|
7654
|
+
root: o,
|
|
7655
7655
|
rootMargin: i,
|
|
7656
|
+
scrollMargin: a,
|
|
7656
7657
|
threshold: t,
|
|
7657
7658
|
trackVisibility: r,
|
|
7658
7659
|
delay: n
|
|
7659
|
-
},
|
|
7660
|
+
}, u), () => {
|
|
7660
7661
|
e && e();
|
|
7661
7662
|
};
|
|
7662
7663
|
}, [
|
|
7663
7664
|
Array.isArray(t) ? t.toString() : t,
|
|
7664
|
-
|
|
7665
|
-
a,
|
|
7666
|
-
i,
|
|
7665
|
+
f,
|
|
7667
7666
|
o,
|
|
7667
|
+
i,
|
|
7668
|
+
a,
|
|
7668
7669
|
s,
|
|
7670
|
+
c,
|
|
7669
7671
|
r,
|
|
7670
|
-
|
|
7672
|
+
u,
|
|
7671
7673
|
n
|
|
7672
7674
|
]);
|
|
7673
|
-
let
|
|
7674
|
-
!
|
|
7675
|
-
inView: !!
|
|
7675
|
+
let v = g.entry?.target, y = e.useRef(void 0);
|
|
7676
|
+
!f && v && !s && !c && y.current !== v && (y.current = v, _({
|
|
7677
|
+
inView: !!l,
|
|
7676
7678
|
entry: void 0
|
|
7677
|
-
}),
|
|
7678
|
-
let
|
|
7679
|
-
|
|
7680
|
-
|
|
7681
|
-
|
|
7679
|
+
}), h.current = l);
|
|
7680
|
+
let b = [
|
|
7681
|
+
p,
|
|
7682
|
+
g.inView,
|
|
7683
|
+
g.entry
|
|
7682
7684
|
];
|
|
7683
|
-
return
|
|
7685
|
+
return b.ref = b[0], b.inView = b[1], b.entry = b[2], b;
|
|
7684
7686
|
}
|
|
7685
7687
|
("useInsertionEffect" in e ? e.useInsertionEffect : void 0) ?? e.useLayoutEffect ?? e.useEffect;
|
|
7686
7688
|
//#endregion
|
|
@@ -7824,7 +7826,7 @@ var Jf = [
|
|
|
7824
7826
|
"value"
|
|
7825
7827
|
];
|
|
7826
7828
|
function Yf(e) {
|
|
7827
|
-
var t = e.defaultInputValue, n = t === void 0 ? "" : t, r = e.defaultMenuIsOpen, i = r
|
|
7829
|
+
var t = e.defaultInputValue, n = t === void 0 ? "" : t, r = e.defaultMenuIsOpen, i = r !== void 0 && r, a = e.defaultValue, o = a === void 0 ? null : a, s = e.inputValue, c = e.menuIsOpen, u = e.onChange, d = e.onInputChange, f = e.onMenuClose, p = e.onMenuOpen, m = e.value, h = qf(e, Jf), g = Kf(v(s === void 0 ? n : s), 2), _ = g[0], y = g[1], b = Kf(v(c === void 0 ? i : c), 2), x = b[0], S = b[1], C = Kf(v(m === void 0 ? o : m), 2), w = C[0], T = C[1], E = l(function(e, t) {
|
|
7828
7830
|
typeof u == "function" && u(e, t), T(e);
|
|
7829
7831
|
}, [u]), D = l(function(e, t) {
|
|
7830
7832
|
var n;
|
|
@@ -7950,7 +7952,7 @@ var dp = /*#__PURE__*/ function() {
|
|
|
7950
7952
|
this._insertTag = function(e) {
|
|
7951
7953
|
var n = t.tags.length === 0 ? t.insertionPoint ? t.insertionPoint.nextSibling : t.prepend ? t.container.firstChild : t.before : t.tags[t.tags.length - 1].nextSibling;
|
|
7952
7954
|
t.container.insertBefore(e, n), t.tags.push(e);
|
|
7953
|
-
}, this.isSpeedy = e.speedy === void 0
|
|
7955
|
+
}, this.isSpeedy = e.speedy === void 0 || e.speedy, this.tags = [], this.ctr = 0, this.nonce = e.nonce, this.key = e.key, this.container = e.container, this.prepend = e.prepend, this.insertionPoint = e.insertionPoint, this.before = null;
|
|
7954
7956
|
}
|
|
7955
7957
|
var t = e.prototype;
|
|
7956
7958
|
return t.hydrate = function(e) {
|
|
@@ -10321,7 +10323,7 @@ var rv = !!(typeof window < "u" && window.document && window.document.createElem
|
|
|
10321
10323
|
passive: !1
|
|
10322
10324
|
};
|
|
10323
10325
|
function ov(e) {
|
|
10324
|
-
var t = e.isEnabled, n = e.accountForScrollbars, r = n === void 0
|
|
10326
|
+
var t = e.isEnabled, n = e.accountForScrollbars, r = n === void 0 || n, i = _({}), a = _(null), o = l(function(e) {
|
|
10325
10327
|
if (rv) {
|
|
10326
10328
|
var t = document.body, n = t && t.style;
|
|
10327
10329
|
if (r && Z_.forEach(function(e) {
|
|
@@ -10376,7 +10378,7 @@ var cv = function(e) {
|
|
|
10376
10378
|
toString: sv
|
|
10377
10379
|
};
|
|
10378
10380
|
function uv(e) {
|
|
10379
|
-
var t = e.children, n = e.lockEnabled, i = e.captureEnabled, a = i === void 0
|
|
10381
|
+
var t = e.children, n = e.lockEnabled, i = e.captureEnabled, a = i === void 0 || i, o = e.onBottomArrive, s = e.onBottomLeave, c = e.onTopArrive, l = e.onTopLeave, u = X_({
|
|
10380
10382
|
isEnabled: a,
|
|
10381
10383
|
onBottomArrive: o,
|
|
10382
10384
|
onBottomLeave: s,
|
|
@@ -10415,7 +10417,7 @@ var fv = process.env.NODE_ENV === "production" ? {
|
|
|
10415
10417
|
});
|
|
10416
10418
|
};
|
|
10417
10419
|
function mv(e) {
|
|
10418
|
-
return typeof window < "u" && window.navigator != null
|
|
10420
|
+
return typeof window < "u" && window.navigator != null && e.test(window.navigator.userAgentData?.platform || window.navigator.platform);
|
|
10419
10421
|
}
|
|
10420
10422
|
function hv() {
|
|
10421
10423
|
return mv(/^iPhone/i);
|
|
@@ -10620,7 +10622,7 @@ var Rv = function(e, t) {
|
|
|
10620
10622
|
return e.getOptionValue(t);
|
|
10621
10623
|
};
|
|
10622
10624
|
function Vv(e, t, n) {
|
|
10623
|
-
return typeof e.isOptionDisabled == "function"
|
|
10625
|
+
return typeof e.isOptionDisabled == "function" && e.isOptionDisabled(t, n);
|
|
10624
10626
|
}
|
|
10625
10627
|
function Hv(e, t, n) {
|
|
10626
10628
|
if (n.indexOf(t) > -1) return !0;
|
|
@@ -10631,7 +10633,7 @@ function Hv(e, t, n) {
|
|
|
10631
10633
|
});
|
|
10632
10634
|
}
|
|
10633
10635
|
function Uv(e, t, n) {
|
|
10634
|
-
return e.filterOption
|
|
10636
|
+
return !e.filterOption || e.filterOption(t, n);
|
|
10635
10637
|
}
|
|
10636
10638
|
var Wv = function(e) {
|
|
10637
10639
|
var t = e.hideSelectedOptions, n = e.isMulti;
|
|
@@ -14401,7 +14403,7 @@ function zb(e) {
|
|
|
14401
14403
|
});
|
|
14402
14404
|
}
|
|
14403
14405
|
function Bb(e) {
|
|
14404
|
-
return typeof e.isPropagationStopped == "function" ? e.isPropagationStopped() : e.cancelBubble
|
|
14406
|
+
return typeof e.isPropagationStopped == "function" ? e.isPropagationStopped() : e.cancelBubble !== void 0 && e.cancelBubble;
|
|
14405
14407
|
}
|
|
14406
14408
|
function Vb(e) {
|
|
14407
14409
|
return e.dataTransfer ? Array.prototype.some.call(e.dataTransfer.types, function(e) {
|
|
@@ -14954,9 +14956,9 @@ var Tx = [
|
|
|
14954
14956
|
"filterOption"
|
|
14955
14957
|
];
|
|
14956
14958
|
function Ex(e) {
|
|
14957
|
-
var t = e.defaultOptions, n = t
|
|
14959
|
+
var t = e.defaultOptions, n = t !== void 0 && t, r = e.cacheOptions, i = r !== void 0 && r, a = e.loadOptions;
|
|
14958
14960
|
e.options;
|
|
14959
|
-
var o = e.isLoading, s = o
|
|
14961
|
+
var o = e.isLoading, s = o !== void 0 && o, c = e.onInputChange, u = e.filterOption, f = u === void 0 ? null : u, p = qf(e, Tx), m = p.inputValue, h = _(void 0), g = _(!1), y = Kf(v(Array.isArray(n) ? n : void 0), 2), b = y[0], x = y[1], S = Kf(v(m === void 0 ? "" : m), 2), C = S[0], w = S[1], T = Kf(v(n === !0), 2), E = T[0], D = T[1], O = Kf(v(void 0), 2), k = O[0], A = O[1], j = Kf(v([]), 2), M = j[0], N = j[1], P = Kf(v(!1), 2), F = P[0], I = P[1], L = Kf(v({}), 2), ee = L[0], te = L[1], ne = Kf(v(void 0), 2), re = ne[0], ie = ne[1], ae = Kf(v(void 0), 2), oe = ae[0], se = ae[1];
|
|
14960
14962
|
i !== oe && (te({}), se(i)), n !== re && (x(Array.isArray(n) ? n : void 0), ie(n)), d(function() {
|
|
14961
14963
|
return g.current = !0, function() {
|
|
14962
14964
|
g.current = !1;
|
|
@@ -15263,7 +15265,7 @@ function Lx(e, t) {
|
|
|
15263
15265
|
//#region node_modules/hast-util-whitespace/lib/index.js
|
|
15264
15266
|
var Rx = /[ \t\n\f\r]/g;
|
|
15265
15267
|
function zx(e) {
|
|
15266
|
-
return typeof e == "object" ? e.type === "text"
|
|
15268
|
+
return typeof e == "object" ? e.type === "text" && Bx(e.value) : Bx(e);
|
|
15267
15269
|
}
|
|
15268
15270
|
function Bx(e) {
|
|
15269
15271
|
return e.replace(Rx, "") === "";
|
|
@@ -16606,7 +16608,7 @@ function HS(e, t, n) {
|
|
|
16606
16608
|
t.tagName.toLowerCase() === "svg" && r.space === "html" && (i = yS, e.schema = i), e.ancestors.push(t);
|
|
16607
16609
|
let a = rC(e, t.tagName, !1), o = QS(e, t), s = eC(e, t);
|
|
16608
16610
|
return RS.has(t.tagName) && (s = s.filter(function(e) {
|
|
16609
|
-
return typeof e
|
|
16611
|
+
return typeof e != "string" || !zx(e);
|
|
16610
16612
|
})), JS(e, o, a, t), YS(o, s), e.ancestors.pop(), e.schema = r, e.create(t, a, o, n);
|
|
16611
16613
|
}
|
|
16612
16614
|
function US(e, t) {
|
|
@@ -16691,7 +16693,7 @@ function $S(e, t) {
|
|
|
16691
16693
|
let t = r.value.data.estree.body[0];
|
|
16692
16694
|
t.type, a = e.evaluater.evaluateExpression(t.expression);
|
|
16693
16695
|
} else iC(e, t.position);
|
|
16694
|
-
else a = r.value === null
|
|
16696
|
+
else a = r.value === null || r.value;
|
|
16695
16697
|
n[i] = a;
|
|
16696
16698
|
}
|
|
16697
16699
|
return n;
|
|
@@ -16833,7 +16835,7 @@ var cC = {
|
|
|
16833
16835
|
}, lC = {};
|
|
16834
16836
|
function uC(e, t) {
|
|
16835
16837
|
let n = t || lC;
|
|
16836
|
-
return dC(e, typeof n.includeImageAlt
|
|
16838
|
+
return dC(e, typeof n.includeImageAlt != "boolean" || n.includeImageAlt, typeof n.includeHtml != "boolean" || n.includeHtml);
|
|
16837
16839
|
}
|
|
16838
16840
|
function dC(e, t, n) {
|
|
16839
16841
|
if (pC(e)) {
|
|
@@ -16858,7 +16860,7 @@ function hC(e) {
|
|
|
16858
16860
|
let t = "&" + e + ";";
|
|
16859
16861
|
mC.innerHTML = t;
|
|
16860
16862
|
let n = mC.textContent;
|
|
16861
|
-
return n.charCodeAt(n.length - 1) === 59 && e !== "semi"
|
|
16863
|
+
return n.charCodeAt(n.length - 1) === 59 && e !== "semi" ? !1 : n !== t && n;
|
|
16862
16864
|
}
|
|
16863
16865
|
//#endregion
|
|
16864
16866
|
//#region node_modules/micromark-util-chunked/index.js
|
|
@@ -22937,10 +22939,10 @@ var rk = {
|
|
|
22937
22939
|
let { isReady: n, chartControls: r, filter: i } = e;
|
|
22938
22940
|
return !n || !r || !r?.length ? null : /*#__PURE__*/ t.createElement(t.Fragment, null, r.filter((e) => {
|
|
22939
22941
|
let { controlProp: t, control: n } = e;
|
|
22940
|
-
return i
|
|
22942
|
+
return !i || i({
|
|
22941
22943
|
control: n,
|
|
22942
22944
|
controlProp: t
|
|
22943
|
-
})
|
|
22945
|
+
});
|
|
22944
22946
|
}).map((e) => {
|
|
22945
22947
|
let { control: n } = e;
|
|
22946
22948
|
return /*#__PURE__*/ t.createElement("div", {
|
|
@@ -25174,7 +25176,7 @@ var PA = ({ onSelectAll: e, onSelectNone: t, hasSelectedParts: n, actionsDropdow
|
|
|
25174
25176
|
})] });
|
|
25175
25177
|
}, LA = (e, t) => {
|
|
25176
25178
|
let n = e.find((e) => e.part_id == t.id);
|
|
25177
|
-
return n
|
|
25179
|
+
return n != null && n.processed;
|
|
25178
25180
|
}, RA = ({ runStepParts: e, selectedPartsLength: t, totalParts: n, onSelectAll: r, toggleShowCompletedParts: i }) => {
|
|
25179
25181
|
let a = h(() => {
|
|
25180
25182
|
let t = 0;
|
|
@@ -28116,38 +28118,44 @@ var tM = (e, t) => {
|
|
|
28116
28118
|
e.preventDefault(), e.dataTransfer.dropEffect = "move";
|
|
28117
28119
|
};
|
|
28118
28120
|
function rM({ step: e, tray: t, parts: n, stepParts: r }) {
|
|
28119
|
-
let i = A(), a = t.tray_type, o = t.label ? `${t.name} - ${t.label}` : t.name, s = h(() => new Map(n.map((e) => [e.id, e])), [n]), c = h(() => new Map(r.map((e) => [e.id, e])), [r]), l = async (t, n, o,
|
|
28121
|
+
let i = A(), a = t.tray_type, o = t.label ? `${t.name} - ${t.label}` : t.name, s = h(() => new Map(n.map((e) => [e.id, e])), [n]), c = h(() => new Map(r.map((e) => [e.id, e])), [r]), l = async (t, n, o, l) => {
|
|
28120
28122
|
t.preventDefault();
|
|
28121
|
-
let
|
|
28122
|
-
if (!
|
|
28123
|
+
let u = Number(t.dataTransfer.getData("text/plain")), d = c.get(u);
|
|
28124
|
+
if (!d) {
|
|
28123
28125
|
console.error("Unable to update run step part tray: stepPart not found");
|
|
28124
28126
|
return;
|
|
28125
28127
|
}
|
|
28126
|
-
if (a && (a.forbidden_slots ?? []).some((e) => e.x ===
|
|
28127
|
-
|
|
28128
|
+
if (a && (a.forbidden_slots ?? []).some((e) => e.x === l && e.y === o)) return;
|
|
28129
|
+
let f = s.get(d.part_id);
|
|
28130
|
+
if ((d.tray_id ?? f?.tray?.id) === n.id && (d.tray_column ?? f?.tray_column) === l && (d.tray_row ?? f?.tray_row) === o) return;
|
|
28131
|
+
if (r.find((t) => {
|
|
28132
|
+
if (t.id === d.id || t.step_id !== e.id || t.has_failed_in_previouse_state || t.failed) return !1;
|
|
28133
|
+
let r = s.get(t.part_id);
|
|
28134
|
+
return (t.tray_id ?? r?.tray?.id) === n.id && (t.tray_row ?? r?.tray_row) === o && (t.tray_column ?? r?.tray_column) === l;
|
|
28135
|
+
})) {
|
|
28128
28136
|
kA({
|
|
28129
28137
|
notificationHeader: "Tray part change",
|
|
28130
|
-
notificationBody: "
|
|
28138
|
+
notificationBody: "This position is occupied by a part that has not failed in this or a previous step.",
|
|
28131
28139
|
notificationType: "danger"
|
|
28132
28140
|
});
|
|
28133
28141
|
return;
|
|
28134
28142
|
}
|
|
28135
|
-
let
|
|
28136
|
-
...
|
|
28143
|
+
let p = {
|
|
28144
|
+
...d,
|
|
28137
28145
|
tray_id: n.id,
|
|
28138
28146
|
tray_row: o,
|
|
28139
|
-
tray_column:
|
|
28147
|
+
tray_column: l
|
|
28140
28148
|
};
|
|
28141
|
-
yA(i, e,
|
|
28149
|
+
yA(i, e, p);
|
|
28142
28150
|
try {
|
|
28143
|
-
let t = await vt(
|
|
28151
|
+
let t = await vt(d, n, o, l, !0);
|
|
28144
28152
|
yA(i, e, t.data, { updateSubsequent: !0 }), kA({
|
|
28145
28153
|
notificationHeader: "Tray part change",
|
|
28146
28154
|
notificationBody: "Part moved successfully",
|
|
28147
28155
|
notificationType: "success"
|
|
28148
28156
|
});
|
|
28149
28157
|
} catch (t) {
|
|
28150
|
-
yA(i, e,
|
|
28158
|
+
yA(i, e, d), kA({
|
|
28151
28159
|
notificationHeader: "Tray part change",
|
|
28152
28160
|
notificationBody: oM(t),
|
|
28153
28161
|
notificationType: "danger"
|
|
@@ -29499,7 +29507,7 @@ var EN = KM(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.b
|
|
|
29499
29507
|
"annotation-xml",
|
|
29500
29508
|
"mprescripts",
|
|
29501
29509
|
"none"
|
|
29502
|
-
]), MN = KM(["#text"]), NN = KM(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns".split(".")), PN = KM(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), FN = KM(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), IN = KM([
|
|
29510
|
+
]), MN = KM(["#text"]), NN = KM(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns".split(".")), PN = KM(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), FN = KM(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), IN = KM([
|
|
29503
29511
|
"xlink:href",
|
|
29504
29512
|
"xml:id",
|
|
29505
29513
|
"xlink:title",
|
|
@@ -29554,7 +29562,7 @@ var EN = KM(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.b
|
|
|
29554
29562
|
};
|
|
29555
29563
|
function nP() {
|
|
29556
29564
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : QN(), t = (e) => nP(e);
|
|
29557
|
-
if (t.version = "3.4.
|
|
29565
|
+
if (t.version = "3.4.12", t.removed = [], !e || !e.document || e.document.nodeType !== ZN.document || !e.Element) return t.isSupported = !1, t;
|
|
29558
29566
|
let n = e.document, r = n, i = r.currentScript;
|
|
29559
29567
|
e.DocumentFragment;
|
|
29560
29568
|
let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, c = e.NodeFilter;
|
|
@@ -29720,6 +29728,7 @@ function nP() {
|
|
|
29720
29728
|
if (p(e), !g(e)) throw _N("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
|
|
29721
29729
|
}
|
|
29722
29730
|
}, ft = function(e) {
|
|
29731
|
+
ht(e);
|
|
29723
29732
|
let t = h(e);
|
|
29724
29733
|
if (t) {
|
|
29725
29734
|
let e = [];
|
|
@@ -29773,6 +29782,26 @@ function nP() {
|
|
|
29773
29782
|
if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
|
|
29774
29783
|
}
|
|
29775
29784
|
}, gt = function(e) {
|
|
29785
|
+
if (!ye) return;
|
|
29786
|
+
let t = [e];
|
|
29787
|
+
for (; t.length > 0;) {
|
|
29788
|
+
let e = t.pop(), n = y ? y(e) : e.nodeType;
|
|
29789
|
+
if (n === ZN.processingInstruction || n === ZN.comment && gN(JN, e.data)) {
|
|
29790
|
+
try {
|
|
29791
|
+
p(e);
|
|
29792
|
+
} catch {}
|
|
29793
|
+
continue;
|
|
29794
|
+
}
|
|
29795
|
+
if (n === ZN.element) {
|
|
29796
|
+
let t = e, n = et(b ? b(e) : e.nodeName);
|
|
29797
|
+
try {
|
|
29798
|
+
t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && n !== "label" && n !== "output" && t.removeAttribute("for");
|
|
29799
|
+
} catch {}
|
|
29800
|
+
}
|
|
29801
|
+
let r = h(e);
|
|
29802
|
+
if (r) for (let e = r.length - 1; e >= 0; --e) t.push(r[e]);
|
|
29803
|
+
}
|
|
29804
|
+
}, _t = function(e) {
|
|
29776
29805
|
let t = null, r = null;
|
|
29777
29806
|
if (we) e = "<remove></remove>" + e;
|
|
29778
29807
|
else {
|
|
@@ -29792,29 +29821,29 @@ function nP() {
|
|
|
29792
29821
|
}
|
|
29793
29822
|
let a = t.body || t.documentElement;
|
|
29794
29823
|
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Ue === He ? P.call(t, be ? "html" : "body")[0] : be ? t.documentElement : a;
|
|
29795
|
-
}, _t = function(e) {
|
|
29796
|
-
return M.call(e.ownerDocument || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
|
|
29797
29824
|
}, vt = function(e) {
|
|
29798
|
-
return e
|
|
29825
|
+
return M.call(e.ownerDocument || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
|
|
29799
29826
|
}, yt = function(e) {
|
|
29827
|
+
return e = sN(e, L, " "), e = sN(e, ee, " "), e = sN(e, te, " "), e;
|
|
29828
|
+
}, bt = function(e) {
|
|
29800
29829
|
e.normalize();
|
|
29801
29830
|
let t = M.call(e.ownerDocument || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), n = t.nextNode();
|
|
29802
|
-
for (; n;) n.data =
|
|
29831
|
+
for (; n;) n.data = yt(n.data), n = t.nextNode();
|
|
29803
29832
|
let r = e.querySelectorAll?.call(e, "template");
|
|
29804
29833
|
r && QM(r, (e) => {
|
|
29805
|
-
|
|
29834
|
+
St(e.content) && bt(e.content);
|
|
29806
29835
|
});
|
|
29807
|
-
},
|
|
29836
|
+
}, xt = function(e) {
|
|
29808
29837
|
let t = b ? b(e) : null;
|
|
29809
29838
|
return typeof t != "string" || et(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== v(e) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== y(e) || e.childNodes !== h(e);
|
|
29810
|
-
},
|
|
29839
|
+
}, St = function(e) {
|
|
29811
29840
|
if (!y || typeof e != "object" || !e) return !1;
|
|
29812
29841
|
try {
|
|
29813
29842
|
return y(e) === ZN.documentFragment;
|
|
29814
29843
|
} catch {
|
|
29815
29844
|
return !1;
|
|
29816
29845
|
}
|
|
29817
|
-
},
|
|
29846
|
+
}, Ct = function(e) {
|
|
29818
29847
|
if (!y || typeof e != "object" || !e) return !1;
|
|
29819
29848
|
try {
|
|
29820
29849
|
return typeof y(e) == "number";
|
|
@@ -29822,15 +29851,15 @@ function nP() {
|
|
|
29822
29851
|
return !1;
|
|
29823
29852
|
}
|
|
29824
29853
|
};
|
|
29825
|
-
function
|
|
29854
|
+
function wt(e, n, r) {
|
|
29826
29855
|
e.length !== 0 && QM(e, (e) => {
|
|
29827
29856
|
e.call(t, n, r, tt);
|
|
29828
29857
|
});
|
|
29829
29858
|
}
|
|
29830
|
-
let
|
|
29831
|
-
return !!(ye && e.hasChildNodes() && !
|
|
29832
|
-
},
|
|
29833
|
-
if (!de[t] &&
|
|
29859
|
+
let Tt = function(e, t) {
|
|
29860
|
+
return !!(ye && e.hasChildNodes() && !Ct(e.firstElementChild) && gN(qN, e.textContent) && gN(qN, e.innerHTML) || ye && e.namespaceURI === He && t === "style" && Ct(e.firstElementChild) || e.nodeType === ZN.processingInstruction || ye && e.nodeType === ZN.comment && gN(JN, e.data));
|
|
29861
|
+
}, Et = function(e, t) {
|
|
29862
|
+
if (!de[t] && At(t) && (ue.tagNameCheck instanceof RegExp && gN(ue.tagNameCheck, t) || ue.tagNameCheck instanceof Function && ue.tagNameCheck(t))) return !1;
|
|
29834
29863
|
if (je && !Pe[t]) {
|
|
29835
29864
|
let t = g(e), n = h(e);
|
|
29836
29865
|
if (n && t) {
|
|
@@ -29842,30 +29871,35 @@ function nP() {
|
|
|
29842
29871
|
}
|
|
29843
29872
|
}
|
|
29844
29873
|
return dt(e), !0;
|
|
29845
|
-
},
|
|
29846
|
-
if (
|
|
29847
|
-
|
|
29848
|
-
|
|
29849
|
-
|
|
29874
|
+
}, Dt = function(e, n) {
|
|
29875
|
+
if (wt(I.beforeSanitizeElements, e, null), e !== n && g(e) === null) return !0;
|
|
29876
|
+
if (xt(e)) return dt(e), !0;
|
|
29877
|
+
let r = et(b ? b(e) : e.nodeName);
|
|
29878
|
+
if (wt(I.uponSanitizeElement, e, {
|
|
29879
|
+
tagName: r,
|
|
29850
29880
|
allowedTags: R
|
|
29851
|
-
}),
|
|
29852
|
-
if (
|
|
29853
|
-
if (
|
|
29881
|
+
}), e !== n && g(e) === null) return !0;
|
|
29882
|
+
if (Tt(e, r)) return dt(e), !0;
|
|
29883
|
+
if (de[r] || !(pe.tagCheck instanceof Function && pe.tagCheck(r)) && !R[r]) {
|
|
29884
|
+
let t = Et(e, r);
|
|
29885
|
+
return t === !1 && wt(I.afterSanitizeElements, e, null), t;
|
|
29886
|
+
}
|
|
29887
|
+
if ((y ? y(e) : e.nodeType) === ZN.element && !ut(e) || (r === "noscript" || r === "noembed" || r === "noframes") && gN(YN, e.innerHTML)) return dt(e), !0;
|
|
29854
29888
|
if (ve && e.nodeType === ZN.text) {
|
|
29855
|
-
let n =
|
|
29889
|
+
let n = yt(e.textContent);
|
|
29856
29890
|
e.textContent !== n && (tN(t.removed, { element: e.cloneNode() }), e.textContent = n);
|
|
29857
29891
|
}
|
|
29858
|
-
return
|
|
29859
|
-
},
|
|
29860
|
-
if (fe[t] || Oe && (t === "id" || t === "name") && (r in n || r in nt)) return !1;
|
|
29892
|
+
return wt(I.afterSanitizeElements, e, null), !1;
|
|
29893
|
+
}, Ot = function(e, t, r) {
|
|
29894
|
+
if (fe[t] || ye && t === "patchsrc" || ye && t === "for" && e !== "label" && e !== "output" || Oe && (t === "id" || t === "name") && (r in n || r in nt)) return !1;
|
|
29861
29895
|
let i = z[t] || pe.attributeCheck instanceof Function && pe.attributeCheck(t, e);
|
|
29862
29896
|
if (!(he && gN(ne, t)) && !(me && gN(re, t))) {
|
|
29863
29897
|
if (!i) {
|
|
29864
|
-
if (!(
|
|
29898
|
+
if (!(At(e) && (ue.tagNameCheck instanceof RegExp && gN(ue.tagNameCheck, e) || ue.tagNameCheck instanceof Function && ue.tagNameCheck(e)) && (ue.attributeNameCheck instanceof RegExp && gN(ue.attributeNameCheck, t) || ue.attributeNameCheck instanceof Function && ue.attributeNameCheck(t, e)) || t === "is" && ue.allowCustomizedBuiltInElements && (ue.tagNameCheck instanceof RegExp && gN(ue.tagNameCheck, r) || ue.tagNameCheck instanceof Function && ue.tagNameCheck(r)))) return !1;
|
|
29865
29899
|
} else if (!Re[t] && !gN(se, sN(r, ae, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && cN(r, "data:") === 0 && Ie[e]) && !(ge && !gN(ie, sN(r, ae, ""))) && r) return !1;
|
|
29866
29900
|
}
|
|
29867
29901
|
return !0;
|
|
29868
|
-
},
|
|
29902
|
+
}, kt = bN({}, [
|
|
29869
29903
|
"annotation-xml",
|
|
29870
29904
|
"color-profile",
|
|
29871
29905
|
"font-face",
|
|
@@ -29874,24 +29908,24 @@ function nP() {
|
|
|
29874
29908
|
"font-face-src",
|
|
29875
29909
|
"font-face-uri",
|
|
29876
29910
|
"missing-glyph"
|
|
29877
|
-
]),
|
|
29878
|
-
return !
|
|
29879
|
-
},
|
|
29911
|
+
]), At = function(e) {
|
|
29912
|
+
return !kt[iN(e)] && gN(oe, e);
|
|
29913
|
+
}, jt = function(e, t, n, r) {
|
|
29880
29914
|
if (x && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
|
|
29881
29915
|
case "TrustedHTML": return D(r);
|
|
29882
29916
|
case "TrustedScriptURL": return O(r);
|
|
29883
29917
|
}
|
|
29884
29918
|
return r;
|
|
29885
|
-
},
|
|
29919
|
+
}, Mt = function(e, n, r, i) {
|
|
29886
29920
|
try {
|
|
29887
|
-
r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i),
|
|
29921
|
+
r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i), xt(e) ? dt(e) : eN(t.removed);
|
|
29888
29922
|
} catch {
|
|
29889
29923
|
pt(n, e);
|
|
29890
29924
|
}
|
|
29891
|
-
},
|
|
29892
|
-
|
|
29925
|
+
}, Nt = function(e) {
|
|
29926
|
+
wt(I.beforeSanitizeAttributes, e, null);
|
|
29893
29927
|
let t = e.attributes;
|
|
29894
|
-
if (!t ||
|
|
29928
|
+
if (!t || xt(e)) return;
|
|
29895
29929
|
let n = {
|
|
29896
29930
|
attrName: "",
|
|
29897
29931
|
attrValue: "",
|
|
@@ -29901,7 +29935,7 @@ function nP() {
|
|
|
29901
29935
|
}, r = t.length, i = et(e.nodeName);
|
|
29902
29936
|
for (; r--;) {
|
|
29903
29937
|
let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, l = et(o), u = c, d = o === "value" ? u : lN(u);
|
|
29904
|
-
if (n.attrName = l, n.attrValue = d, n.keepAttr = !0, n.forceKeepAttr = void 0,
|
|
29938
|
+
if (n.attrName = l, n.attrValue = d, n.keepAttr = !0, n.forceKeepAttr = void 0, wt(I.uponSanitizeAttribute, e, n), d = n.attrValue, ke && (l === "id" || l === "name") && cN(d, Ae) !== 0 && (pt(o, e), d = Ae + d), ye && gN(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
|
|
29905
29939
|
pt(o, e);
|
|
29906
29940
|
continue;
|
|
29907
29941
|
}
|
|
@@ -29918,22 +29952,22 @@ function nP() {
|
|
|
29918
29952
|
pt(o, e);
|
|
29919
29953
|
continue;
|
|
29920
29954
|
}
|
|
29921
|
-
if (ve && (d =
|
|
29955
|
+
if (ve && (d = yt(d)), !Ot(i, l, d)) {
|
|
29922
29956
|
pt(o, e);
|
|
29923
29957
|
continue;
|
|
29924
29958
|
}
|
|
29925
|
-
d =
|
|
29959
|
+
d = jt(i, l, s, d), d !== u && Mt(e, o, s, d);
|
|
29926
29960
|
}
|
|
29927
29961
|
}
|
|
29928
|
-
|
|
29929
|
-
},
|
|
29930
|
-
let t = null, n =
|
|
29931
|
-
for (
|
|
29962
|
+
wt(I.afterSanitizeAttributes, e, null);
|
|
29963
|
+
}, Pt = function(e) {
|
|
29964
|
+
let t = null, n = vt(e);
|
|
29965
|
+
for (wt(I.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if (wt(I.uponSanitizeShadowNode, t, null), Dt(t, e), Nt(t), St(t.content) && Pt(t.content), (y ? y(t) : t.nodeType) === ZN.element) {
|
|
29932
29966
|
let e = _(t);
|
|
29933
|
-
|
|
29967
|
+
St(e) && (Ft(e), Pt(e));
|
|
29934
29968
|
}
|
|
29935
|
-
|
|
29936
|
-
},
|
|
29969
|
+
wt(I.afterSanitizeShadowDOM, e, null);
|
|
29970
|
+
}, Ft = function(e) {
|
|
29937
29971
|
let t = [{
|
|
29938
29972
|
node: e,
|
|
29939
29973
|
shadow: null
|
|
@@ -29941,7 +29975,7 @@ function nP() {
|
|
|
29941
29975
|
for (; t.length > 0;) {
|
|
29942
29976
|
let e = t.pop();
|
|
29943
29977
|
if (e.shadow) {
|
|
29944
|
-
|
|
29978
|
+
Pt(e.shadow);
|
|
29945
29979
|
continue;
|
|
29946
29980
|
}
|
|
29947
29981
|
let n = e.node, r = (y ? y(n) : n.nodeType) === ZN.element, i = h(n);
|
|
@@ -29953,7 +29987,7 @@ function nP() {
|
|
|
29953
29987
|
let e = b ? b(n) : null;
|
|
29954
29988
|
if (typeof e == "string" && et(e) === "template") {
|
|
29955
29989
|
let e = n.content;
|
|
29956
|
-
|
|
29990
|
+
St(e) && t.push({
|
|
29957
29991
|
node: e,
|
|
29958
29992
|
shadow: null
|
|
29959
29993
|
});
|
|
@@ -29961,7 +29995,7 @@ function nP() {
|
|
|
29961
29995
|
}
|
|
29962
29996
|
if (r) {
|
|
29963
29997
|
let e = _(n);
|
|
29964
|
-
|
|
29998
|
+
St(e) && t.push({
|
|
29965
29999
|
node: null,
|
|
29966
30000
|
shadow: e
|
|
29967
30001
|
}, {
|
|
@@ -29973,44 +30007,47 @@ function nP() {
|
|
|
29973
30007
|
};
|
|
29974
30008
|
return t.sanitize = function(e) {
|
|
29975
30009
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
|
|
29976
|
-
if (We = !e, We && (e = "<!-->"), typeof e != "string" && !
|
|
30010
|
+
if (We = !e, We && (e = "<!-->"), typeof e != "string" && !Ct(e) && (e = CN(e), typeof e != "string")) throw _N("dirty is not a string, aborting");
|
|
29977
30011
|
if (!t.isSupported) return e;
|
|
29978
30012
|
xe ? (R = Se, z = Ce) : it(n), (I.uponSanitizeElement.length > 0 || I.uponSanitizeAttribute.length > 0) && (R = SN(R)), I.uponSanitizeAttribute.length > 0 && (z = SN(z)), t.removed = [];
|
|
29979
|
-
let c = Me && typeof e != "string" &&
|
|
30013
|
+
let c = Me && typeof e != "string" && Ct(e);
|
|
29980
30014
|
if (c) {
|
|
30015
|
+
gt(e);
|
|
29981
30016
|
let t = b ? b(e) : e.nodeName;
|
|
29982
30017
|
if (typeof t == "string") {
|
|
29983
|
-
let
|
|
29984
|
-
if (!R[
|
|
30018
|
+
let n = et(t);
|
|
30019
|
+
if (!R[n] || de[n]) throw ft(e), _N("root node is forbidden and cannot be sanitized in-place");
|
|
29985
30020
|
}
|
|
29986
|
-
if (
|
|
30021
|
+
if (xt(e)) throw ft(e), _N("root node is clobbered and cannot be sanitized in-place");
|
|
29987
30022
|
try {
|
|
29988
|
-
|
|
30023
|
+
Ft(e);
|
|
29989
30024
|
} catch (t) {
|
|
29990
30025
|
throw ft(e), t;
|
|
29991
30026
|
}
|
|
29992
|
-
} else if (
|
|
30027
|
+
} else if (Ct(e)) i = _t("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === ZN.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Ft(a);
|
|
29993
30028
|
else {
|
|
29994
30029
|
if (!Te && !ve && !be && e.indexOf("<") === -1) return x && De ? D(e) : e;
|
|
29995
|
-
if (i =
|
|
30030
|
+
if (i = _t(e), !i) return Te ? null : De ? S : "";
|
|
29996
30031
|
}
|
|
29997
30032
|
i && we && dt(i.firstChild);
|
|
29998
|
-
let l =
|
|
30033
|
+
let l = c ? e : i, u = vt(l);
|
|
29999
30034
|
try {
|
|
30000
|
-
for (; o =
|
|
30001
|
-
} catch (
|
|
30002
|
-
throw c && ft(e), t
|
|
30035
|
+
for (; o = u.nextNode();) Dt(o, l), Nt(o), St(o.content) && Pt(o.content);
|
|
30036
|
+
} catch (n) {
|
|
30037
|
+
throw c && (ft(e), QM(t.removed, (e) => {
|
|
30038
|
+
e.element && ht(e.element);
|
|
30039
|
+
})), n;
|
|
30003
30040
|
}
|
|
30004
30041
|
if (c) return QM(t.removed, (e) => {
|
|
30005
30042
|
e.element && ht(e.element);
|
|
30006
|
-
}), ve &&
|
|
30043
|
+
}), ve && bt(e), e;
|
|
30007
30044
|
if (Te) {
|
|
30008
|
-
if (ve &&
|
|
30045
|
+
if (ve && bt(i), Ee) for (s = N.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
|
|
30009
30046
|
else s = i;
|
|
30010
30047
|
return (z.shadowroot || z.shadowrootmode) && (s = F.call(r, s, !0)), s;
|
|
30011
30048
|
}
|
|
30012
|
-
let
|
|
30013
|
-
return be && R["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && gN(GN, i.ownerDocument.doctype.name) && (
|
|
30049
|
+
let d = be ? i.outerHTML : i.innerHTML;
|
|
30050
|
+
return be && R["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && gN(GN, i.ownerDocument.doctype.name) && (d = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + d), ve && (d = yt(d)), x && De ? D(d) : d;
|
|
30014
30051
|
}, t.setConfig = function() {
|
|
30015
30052
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
30016
30053
|
it(e), xe = !0, Se = R, Ce = z;
|
|
@@ -30019,7 +30056,7 @@ function nP() {
|
|
|
30019
30056
|
}, t.isValidAttribute = function(e, t, n) {
|
|
30020
30057
|
tt || it({});
|
|
30021
30058
|
let r = et(e), i = et(t);
|
|
30022
|
-
return
|
|
30059
|
+
return Ot(r, i, n);
|
|
30023
30060
|
}, t.addHook = function(e, t) {
|
|
30024
30061
|
typeof t == "function" && mN(I, e) && tN(I[e], t);
|
|
30025
30062
|
}, t.removeHook = function(e, t) {
|
|
@@ -30637,7 +30674,7 @@ function pP({ run: e, runStep: n, showOnlyEmphasizedParameters: r, reloadRunStep
|
|
|
30637
30674
|
queryFn: () => _t({ step: n })
|
|
30638
30675
|
}] }), u = h(() => {
|
|
30639
30676
|
let e = c.data?.items ?? [], t = l.data?.items ?? [], r = e.filter((e) => e.part_level === n.part_level);
|
|
30640
|
-
return r.length
|
|
30677
|
+
return r.length !== 0 && r.every((e) => t.find((t) => t.part_id == e.id)?.processed === !0);
|
|
30641
30678
|
}, [
|
|
30642
30679
|
c.data,
|
|
30643
30680
|
l.data,
|
|
@@ -32863,7 +32900,7 @@ function uF() {
|
|
|
32863
32900
|
//#region src/modules/service/components/report/Criterion.tsx
|
|
32864
32901
|
var dF = (e) => typeof e == "string" ? e : "";
|
|
32865
32902
|
function fF({ result: e, status: t, onAutoSave: n, onDirty: r }) {
|
|
32866
|
-
let { control: i, formState: a } = sd(), o = e.criterion_version, s = String(e.id), c = o.criterion.background_color && o.criterion.has_background_color ? { backgroundColor: o.criterion.background_color } : void 0, l = a.errors[s]?.message, u = o.required, d = (e) => u ? Array.isArray(e) ? e.length > 0 || "This field is required." : typeof e == "boolean" || e != null && e !== ""
|
|
32903
|
+
let { control: i, formState: a } = sd(), o = e.criterion_version, s = String(e.id), c = o.criterion.background_color && o.criterion.has_background_color ? { backgroundColor: o.criterion.background_color } : void 0, l = a.errors[s]?.message, u = o.required, d = (e) => u ? Array.isArray(e) ? e.length > 0 || "This field is required." : typeof e == "boolean" || e != null && e !== "" || "This field is required." : !0, f = l ? "is-invalid" : t?.state === "saved" ? "is-valid" : t?.state === "dirty" ? "border-warning" : "", p = l ? "border border-danger rounded p-2" : t?.state === "saved" ? "border border-success rounded p-2" : t?.state === "dirty" ? "border border-warning rounded p-2" : "", m = o.criterion.values ?? {};
|
|
32867
32904
|
return /* @__PURE__ */ S("div", {
|
|
32868
32905
|
className: `form-group mb-3 rounded ${o.highlighted ? "border border-warning" : ""}`,
|
|
32869
32906
|
style: c,
|