@factorialco/f0-react 8.9.0 → 8.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ChatPdfThumbnail-CyuZH9Yv.js → ChatPdfThumbnail-DozngSN5.js} +1 -1
- package/dist/{ChatPostComposerDialog-ClBHDPm-.js → ChatPostComposerDialog-C7wAPqjc.js} +3 -3
- package/dist/{DocumentToolbar-CkT3xAae.js → DocumentToolbar-DUGzj-eX.js} +2 -2
- package/dist/{DocxViewer-Bjtm1lOS.js → DocxViewer-DwUWtdNa.js} +2 -2
- package/dist/{F0AiProcessingOverlay-9s-5WVtp.js → F0AiProcessingOverlay-DfZDuEp8.js} +1 -1
- package/dist/{F0CanvasPanel-BaNR9Hy9.js → F0CanvasPanel-CTqnQRE3.js} +118 -118
- package/dist/{F0Map-B6-J17_q.js → F0Map-BAQLATIl.js} +4 -4
- package/dist/{F0VideoPlayer-gLYb8qEb.js → F0VideoPlayer-Df1wGL5l.js} +2 -2
- package/dist/{MapProvider-Dlo7aB9c.js → MapProvider-DgFqoQIm.js} +2 -2
- package/dist/{SheetViewer-OlCrkLIb.js → SheetViewer-CdYNMDKZ.js} +2 -2
- package/dist/{TextViewer-DXTTFwjh.js → TextViewer-D1DLjt7A.js} +2 -2
- package/dist/ai.js +2 -2
- package/dist/component-status.js +1 -1
- package/dist/{experimental-BwnmP8Tb.js → experimental-CyWlwE_p.js} +7 -7
- package/dist/experimental.js +4 -4
- package/dist/f0.js +3582 -3491
- package/dist/{index-C2bt5Kdw.js → index-4Y21ajv9.js} +1 -1
- package/dist/{index-BOHPhOYP.js → index-DStIDJS6.js} +3 -3
- package/dist/{index-BDYekz5E.js → index-_XpVViOx.js} +2 -2
- package/dist/index-aPKSzZ3T.js +4 -0
- package/dist/{index-B-GT0Hns.js → index-p8b48vGA.js} +3 -3
- package/dist/{pdfWorker-5fJHsGAr.js → pdfWorker-CKRkJFJS.js} +2 -2
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/index-CyWynjDL.js +0 -4
|
@@ -5773,7 +5773,7 @@ var Vx = {};
|
|
|
5773
5773
|
function B(A, O) {
|
|
5774
5774
|
var Y = !A, Z = !!y(O || {}, "resize"), o2 = !1, c2 = y(O, "disableForReducedMotion", Boolean), d2 = o && !!y(O || {}, "useWorker"), a2 = d2 ? h() : null, u2 = Y ? S : F, t2 = A && a2 ? !!A.__confetti_initialized : !1, s2 = typeof matchMedia == "function" && matchMedia("(prefers-reduced-motion)").matches, g2;
|
|
5775
5775
|
function n2(i2, M2, E2) {
|
|
5776
|
-
for (var R2 = y(i2, "particleCount", b), Y2 = y(i2, "angle", Number), X2 = y(i2, "spread", Number), F2 = y(i2, "startVelocity", Number), K2 = y(i2, "decay", Number), r1 = y(i2, "gravity", Number), e1 = y(i2, "drift", Number),
|
|
5776
|
+
for (var R2 = y(i2, "particleCount", b), Y2 = y(i2, "angle", Number), X2 = y(i2, "spread", Number), F2 = y(i2, "startVelocity", Number), K2 = y(i2, "decay", Number), r1 = y(i2, "gravity", Number), e1 = y(i2, "drift", Number), i1 = y(i2, "colors", $), Z2 = y(i2, "ticks", Number), f2 = y(i2, "shapes"), w2 = y(i2, "scalar"), N2 = !!y(i2, "flat"), W2 = _(i2), g1 = R2, S1 = [], a1 = A.width * W2.x, L1 = A.height * W2.y; g1--; )
|
|
5777
5777
|
S1.push(
|
|
5778
5778
|
E({
|
|
5779
5779
|
x: a1,
|
|
@@ -5781,7 +5781,7 @@ var Vx = {};
|
|
|
5781
5781
|
angle: Y2,
|
|
5782
5782
|
spread: X2,
|
|
5783
5783
|
startVelocity: F2,
|
|
5784
|
-
color:
|
|
5784
|
+
color: i1[g1 % i1.length],
|
|
5785
5785
|
shape: f2[M(0, f2.length)],
|
|
5786
5786
|
ticks: Z2,
|
|
5787
5787
|
decay: K2,
|
|
@@ -6542,13 +6542,13 @@ function Wq() {
|
|
|
6542
6542
|
}));
|
|
6543
6543
|
let t2 = !0, s2 = !0, g2 = !1, n2 = !0, b2 = !1, i2 = !0, M2 = !1, E2 = !1, R2 = !1, Y2 = !1, X2 = !1, F2 = !1, K2 = !0, r1 = !1;
|
|
6544
6544
|
const e1 = "user-content-";
|
|
6545
|
-
let
|
|
6545
|
+
let i1 = !0, Z2 = !1, f2 = {}, w2 = null;
|
|
6546
6546
|
const N2 = t3({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
6547
6547
|
let W2 = null;
|
|
6548
6548
|
const g1 = t3({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
6549
6549
|
let S1 = null;
|
|
6550
6550
|
const a1 = t3({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), L1 = "http://www.w3.org/1998/Math/MathML", $2 = "http://www.w3.org/2000/svg", G2 = "http://www.w3.org/1999/xhtml";
|
|
6551
|
-
let P2 = G2, B2 = !1,
|
|
6551
|
+
let P2 = G2, B2 = !1, o1 = null;
|
|
6552
6552
|
const T2 = t3({}, [L1, $2, G2], Zh);
|
|
6553
6553
|
let I2 = t3({}, ["mi", "mo", "mn", "ms", "mtext"]), s1 = t3({}, ["annotation-xml"]);
|
|
6554
6554
|
const y1 = t3({}, ["title", "style", "font", "a", "script"]);
|
|
@@ -6561,7 +6561,7 @@ function Wq() {
|
|
|
6561
6561
|
let C2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
6562
6562
|
if (!(u1 && u1 === C2)) {
|
|
6563
6563
|
if ((!C2 || typeof C2 != "object") && (C2 = {}), C2 = It(C2), F1 = // eslint-disable-next-line unicorn/prefer-includes
|
|
6564
|
-
u3.indexOf(C2.PARSER_MEDIA_TYPE) === -1 ? y3 : C2.PARSER_MEDIA_TYPE, N1 = F1 === "application/xhtml+xml" ? Zh : vu, O = C5(C2, "ALLOWED_TAGS") ? t3({}, C2.ALLOWED_TAGS, N1) : Y, Z = C5(C2, "ALLOWED_ATTR") ? t3({}, C2.ALLOWED_ATTR, N1) : o2,
|
|
6564
|
+
u3.indexOf(C2.PARSER_MEDIA_TYPE) === -1 ? y3 : C2.PARSER_MEDIA_TYPE, N1 = F1 === "application/xhtml+xml" ? Zh : vu, O = C5(C2, "ALLOWED_TAGS") ? t3({}, C2.ALLOWED_TAGS, N1) : Y, Z = C5(C2, "ALLOWED_ATTR") ? t3({}, C2.ALLOWED_ATTR, N1) : o2, o1 = C5(C2, "ALLOWED_NAMESPACES") ? t3({}, C2.ALLOWED_NAMESPACES, Zh) : T2, S1 = C5(C2, "ADD_URI_SAFE_ATTR") ? t3(It(a1), C2.ADD_URI_SAFE_ATTR, N1) : a1, W2 = C5(C2, "ADD_DATA_URI_TAGS") ? t3(It(g1), C2.ADD_DATA_URI_TAGS, N1) : g1, w2 = C5(C2, "FORBID_CONTENTS") ? t3({}, C2.FORBID_CONTENTS, N1) : N2, d2 = C5(C2, "FORBID_TAGS") ? t3({}, C2.FORBID_TAGS, N1) : It({}), a2 = C5(C2, "FORBID_ATTR") ? t3({}, C2.FORBID_ATTR, N1) : It({}), f2 = C5(C2, "USE_PROFILES") ? C2.USE_PROFILES : !1, t2 = C2.ALLOW_ARIA_ATTR !== !1, s2 = C2.ALLOW_DATA_ATTR !== !1, g2 = C2.ALLOW_UNKNOWN_PROTOCOLS || !1, n2 = C2.ALLOW_SELF_CLOSE_IN_ATTR !== !1, b2 = C2.SAFE_FOR_TEMPLATES || !1, i2 = C2.SAFE_FOR_XML !== !1, M2 = C2.WHOLE_DOCUMENT || !1, Y2 = C2.RETURN_DOM || !1, X2 = C2.RETURN_DOM_FRAGMENT || !1, F2 = C2.RETURN_TRUSTED_TYPE || !1, R2 = C2.FORCE_BODY || !1, K2 = C2.SANITIZE_DOM !== !1, r1 = C2.SANITIZE_NAMED_PROPS || !1, i1 = C2.KEEP_CONTENT !== !1, Z2 = C2.IN_PLACE || !1, A = C2.ALLOWED_URI_REGEXP || Iq, P2 = C2.NAMESPACE || G2, I2 = C2.MATHML_TEXT_INTEGRATION_POINTS || I2, s1 = C2.HTML_INTEGRATION_POINTS || s1, c2 = C2.CUSTOM_ELEMENT_HANDLING || {}, C2.CUSTOM_ELEMENT_HANDLING && ve(C2.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (c2.tagNameCheck = C2.CUSTOM_ELEMENT_HANDLING.tagNameCheck), C2.CUSTOM_ELEMENT_HANDLING && ve(C2.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (c2.attributeNameCheck = C2.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), C2.CUSTOM_ELEMENT_HANDLING && typeof C2.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (c2.allowCustomizedBuiltInElements = C2.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), b2 && (s2 = !1), X2 && (Y2 = !0), f2 && (O = t3({}, Pk), Z = gu(null), f2.html === !0 && (t3(O, xk), t3(Z, _k)), f2.svg === !0 && (t3(O, Dh), t3(Z, jh), t3(Z, hl)), f2.svgFilters === !0 && (t3(O, Rh), t3(Z, jh), t3(Z, hl)), f2.mathMl === !0 && (t3(O, Ih), t3(Z, $k), t3(Z, hl))), C5(C2, "ADD_TAGS") || (u2.tagCheck = null), C5(C2, "ADD_ATTR") || (u2.attributeCheck = null), C2.ADD_TAGS && (typeof C2.ADD_TAGS == "function" ? u2.tagCheck = C2.ADD_TAGS : (O === Y && (O = It(O)), t3(O, C2.ADD_TAGS, N1))), C2.ADD_ATTR && (typeof C2.ADD_ATTR == "function" ? u2.attributeCheck = C2.ADD_ATTR : (Z === o2 && (Z = It(Z)), t3(Z, C2.ADD_ATTR, N1))), C2.ADD_URI_SAFE_ATTR && t3(S1, C2.ADD_URI_SAFE_ATTR, N1), C2.FORBID_CONTENTS && (w2 === N2 && (w2 = It(w2)), t3(w2, C2.FORBID_CONTENTS, N1)), C2.ADD_FORBID_CONTENTS && (w2 === N2 && (w2 = It(w2)), t3(w2, C2.ADD_FORBID_CONTENTS, N1)), i1 && (O["#text"] = !0), M2 && t3(O, ["html", "head", "body"]), O.table && (t3(O, ["tbody"]), delete d2.tbody), C2.TRUSTED_TYPES_POLICY) {
|
|
6565
6565
|
if (typeof C2.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
6566
6566
|
throw la('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
6567
6567
|
if (typeof C2.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -6578,7 +6578,7 @@ function Wq() {
|
|
|
6578
6578
|
tagName: "template"
|
|
6579
6579
|
});
|
|
6580
6580
|
const c1 = vu(C2.tagName), i3 = vu(j2.tagName);
|
|
6581
|
-
return
|
|
6581
|
+
return o1[C2.namespaceURI] ? C2.namespaceURI === $2 ? j2.namespaceURI === G2 ? c1 === "svg" : j2.namespaceURI === L1 ? c1 === "svg" && (i3 === "annotation-xml" || I2[i3]) : !!Ve[c1] : C2.namespaceURI === L1 ? j2.namespaceURI === G2 ? c1 === "math" : j2.namespaceURI === $2 ? c1 === "math" && s1[i3] : !!rt[c1] : C2.namespaceURI === G2 ? j2.namespaceURI === $2 && !s1[i3] || j2.namespaceURI === L1 && !I2[i3] ? !1 : !rt[c1] && (y1[c1] || !Ve[c1]) : !!(F1 === "application/xhtml+xml" && o1[C2.namespaceURI]) : !1;
|
|
6582
6582
|
}, Ne = function(C2) {
|
|
6583
6583
|
oa(t.removed, {
|
|
6584
6584
|
element: C2
|
|
@@ -6666,7 +6666,7 @@ function Wq() {
|
|
|
6666
6666
|
if (!(u2.tagCheck instanceof Function && u2.tagCheck(c1)) && (!O[c1] || d2[c1])) {
|
|
6667
6667
|
if (!d2[c1] && V9(c1) && (c2.tagNameCheck instanceof RegExp && P4(c2.tagNameCheck, c1) || c2.tagNameCheck instanceof Function && c2.tagNameCheck(c1)))
|
|
6668
6668
|
return !1;
|
|
6669
|
-
if (
|
|
6669
|
+
if (i1 && !w2[c1]) {
|
|
6670
6670
|
const i3 = w(C2) || C2.parentNode, M3 = M(C2) || C2.childNodes;
|
|
6671
6671
|
if (M3 && i3) {
|
|
6672
6672
|
const J3 = M3.length;
|
|
@@ -13341,11 +13341,11 @@ function pm2(e) {
|
|
|
13341
13341
|
if (a1) {
|
|
13342
13342
|
let B2 = W2;
|
|
13343
13343
|
for (L1 = void 0; B2--; ) {
|
|
13344
|
-
const
|
|
13345
|
-
if (
|
|
13346
|
-
if (
|
|
13347
|
-
L1 && (f2[L1][1].type = "lineEndingBlank", S1 = !0),
|
|
13348
|
-
} else if (!(
|
|
13344
|
+
const o1 = f2[B2];
|
|
13345
|
+
if (o1[1].type === "lineEnding" || o1[1].type === "lineEndingBlank") {
|
|
13346
|
+
if (o1[0] === "exit") continue;
|
|
13347
|
+
L1 && (f2[L1][1].type = "lineEndingBlank", S1 = !0), o1[1].type = "lineEnding", L1 = B2;
|
|
13348
|
+
} else if (!(o1[1].type === "linePrefix" || o1[1].type === "blockQuotePrefix" || o1[1].type === "blockQuotePrefixWhitespace" || o1[1].type === "blockQuoteMarker" || o1[1].type === "listItemIndent")) break;
|
|
13349
13349
|
}
|
|
13350
13350
|
$2 && (!L1 || $2 < L1) && (a1._spread = !0), a1.end = Object.assign({}, L1 ? f2[L1][1].start : P2[1].end), f2.splice(L1 || W2, 0, ["exit", a1, P2[2]]), W2++, N2++;
|
|
13351
13351
|
}
|
|
@@ -13461,7 +13461,7 @@ function pm2(e) {
|
|
|
13461
13461
|
function H(f2) {
|
|
13462
13462
|
const N2 = this.stack[this.stack.length - 1].children;
|
|
13463
13463
|
let W2 = N2[N2.length - 1];
|
|
13464
|
-
(!W2 || W2.type !== "text") && (W2 =
|
|
13464
|
+
(!W2 || W2.type !== "text") && (W2 = i1(), W2.position = {
|
|
13465
13465
|
start: S7(f2.start),
|
|
13466
13466
|
// @ts-expect-error: we’ll add `end` later.
|
|
13467
13467
|
end: void 0
|
|
@@ -13666,7 +13666,7 @@ function pm2(e) {
|
|
|
13666
13666
|
children: []
|
|
13667
13667
|
};
|
|
13668
13668
|
}
|
|
13669
|
-
function
|
|
13669
|
+
function i1() {
|
|
13670
13670
|
return {
|
|
13671
13671
|
type: "text",
|
|
13672
13672
|
value: ""
|
|
@@ -49870,7 +49870,7 @@ function Vj2({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: a, s
|
|
|
49870
49870
|
}
|
|
49871
49871
|
}), [U, K] = J.useState(!1), [r2, A] = J.useState(!1), [O, Y] = J.useState(!1), Z = J.useRef(null), o2 = J.useRef(null), c2 = J.useRef(null), d2 = J.useRef(null), a2 = J.useRef(null), u2 = J.useRef(!1), t2 = J.useRef(null), s2 = J.useRef(0), g2 = J.useRef(!1), n2 = J.useRef(!L), b2 = J.useRef(0), i2 = J.useRef(null), M2 = J.useRef(((W = i2.current) == null ? void 0 : W.getBoundingClientRect().height) || 0), E2 = J.useRef(((B = i2.current) == null ? void 0 : B.getBoundingClientRect().width) || 0), R2 = J.useRef(0), Y2 = J.useCallback((T2) => {
|
|
49872
49872
|
o && T2 === e1.length - 1 && (o2.current = /* @__PURE__ */ new Date());
|
|
49873
|
-
}, []), { activeSnapPoint: X2, activeSnapPointIndex: F2, setActiveSnapPoint: K2, onRelease: r1, snapPointsOffset: e1, onDrag:
|
|
49873
|
+
}, []), { activeSnapPoint: X2, activeSnapPointIndex: F2, setActiveSnapPoint: K2, onRelease: r1, snapPointsOffset: e1, onDrag: i1, shouldFade: Z2, getPercentageDragged: f2 } = $j2({
|
|
49874
49874
|
snapPoints: o,
|
|
49875
49875
|
activeSnapPointProp: m,
|
|
49876
49876
|
setActiveSnapPointProp: v,
|
|
@@ -49941,7 +49941,7 @@ function Vj2({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: a, s
|
|
|
49941
49941
|
transition: "none"
|
|
49942
49942
|
}), We(Z.current, {
|
|
49943
49943
|
transition: "none"
|
|
49944
|
-
}), o &&
|
|
49944
|
+
}), o && i1({
|
|
49945
49945
|
draggedDistance: s1
|
|
49946
49946
|
}), y1 && !o) {
|
|
49947
49947
|
const G3 = wj2(s1), Ve = Math.min(G3 * -1, 0) * I2;
|
|
@@ -50102,7 +50102,7 @@ function Vj2({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: a, s
|
|
|
50102
50102
|
transition: "none"
|
|
50103
50103
|
});
|
|
50104
50104
|
}
|
|
50105
|
-
function
|
|
50105
|
+
function o1(T2, I2) {
|
|
50106
50106
|
const s1 = Te($) ? window.innerHeight : window.innerWidth, y1 = I2 ? (s1 - q9) / s1 : 1, F1 = I2 ? -q9 : 0;
|
|
50107
50107
|
I2 && We(i2.current, {
|
|
50108
50108
|
transition: `transform ${he.DURATION}s cubic-bezier(${he.EASE.join(",")})`,
|
|
@@ -50141,7 +50141,7 @@ function Vj2({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: a, s
|
|
|
50141
50141
|
closeDrawer: a1,
|
|
50142
50142
|
onNestedDrag: B2,
|
|
50143
50143
|
onNestedOpenChange: P2,
|
|
50144
|
-
onNestedRelease:
|
|
50144
|
+
onNestedRelease: o1,
|
|
50145
50145
|
keyboardIsOpen: g2,
|
|
50146
50146
|
modal: y,
|
|
50147
50147
|
snapPointsOffset: e1,
|
|
@@ -105353,11 +105353,11 @@ var Yw = function(t, n, r, a) {
|
|
|
105353
105353
|
dataStartIndex: S,
|
|
105354
105354
|
dataEndIndex: F
|
|
105355
105355
|
}), Y = r2.type.defaultProps !== void 0 ? H2(H2({}, r2.type.defaultProps), r2.props) : r2.props, Z = Y.dataKey, o2 = Y.maxBarSize, c2 = Y["".concat(z, "Id")], d2 = Y["".concat(Q, "Id")], a2 = {}, u2 = u.reduce(function(K2, r1) {
|
|
105356
|
-
var e1,
|
|
105356
|
+
var e1, i1, Z2 = M["".concat(r1.axisType, "Map")], f2 = Y["".concat(r1.axisType, "Id")];
|
|
105357
105357
|
Z2 && Z2[f2] || r1.axisType === "zAxis" || (process.env.NODE_ENV !== "production" ? K4(!1, "Specifying a(n) ".concat(r1.axisType, "Id requires a corresponding ").concat(
|
|
105358
105358
|
r1.axisType,
|
|
105359
105359
|
"Id on the targeted graphical component "
|
|
105360
|
-
).concat((e1 = r2 == null || (
|
|
105360
|
+
).concat((e1 = r2 == null || (i1 = r2.type) === null || i1 === void 0 ? void 0 : i1.displayName) !== null && e1 !== void 0 ? e1 : "")) : K4(!1));
|
|
105361
105361
|
var w2 = Z2[f2];
|
|
105362
105362
|
return H2(H2({}, K2), {}, T1(T1({}, r1.axisType, w2), "".concat(r1.axisType, "Ticks"), dn(w2)));
|
|
105363
105363
|
}, a2), t2 = u2[Q], s2 = u2["".concat(Q, "Ticks")], g2 = $ && $[c2] && $[c2].hasStack && hN1(r2, $[c2].stackGroups), n2 = B6(r2.type).indexOf("Bar") >= 0, b2 = Mc(t2, s2), i2 = [], M2 = U && tN1({
|
|
@@ -106434,7 +106434,7 @@ function Kz1() {
|
|
|
106434
106434
|
["partial", L],
|
|
106435
106435
|
["partialRight", _],
|
|
106436
106436
|
["rearg", F]
|
|
106437
|
-
], c2 = "[object Arguments]", d2 = "[object Array]", a2 = "[object AsyncFunction]", u2 = "[object Boolean]", t2 = "[object Date]", s2 = "[object DOMException]", g2 = "[object Error]", n2 = "[object Function]", b2 = "[object GeneratorFunction]", i2 = "[object Map]", M2 = "[object Number]", E2 = "[object Null]", R2 = "[object Object]", Y2 = "[object Promise]", X2 = "[object Proxy]", F2 = "[object RegExp]", K2 = "[object Set]", r1 = "[object String]", e1 = "[object Symbol]",
|
|
106437
|
+
], c2 = "[object Arguments]", d2 = "[object Array]", a2 = "[object AsyncFunction]", u2 = "[object Boolean]", t2 = "[object Date]", s2 = "[object DOMException]", g2 = "[object Error]", n2 = "[object Function]", b2 = "[object GeneratorFunction]", i2 = "[object Map]", M2 = "[object Number]", E2 = "[object Null]", R2 = "[object Object]", Y2 = "[object Promise]", X2 = "[object Proxy]", F2 = "[object RegExp]", K2 = "[object Set]", r1 = "[object String]", e1 = "[object Symbol]", i1 = "[object Undefined]", Z2 = "[object WeakMap]", f2 = "[object WeakSet]", w2 = "[object ArrayBuffer]", N2 = "[object DataView]", W2 = "[object Float32Array]", g1 = "[object Float64Array]", S1 = "[object Int8Array]", a1 = "[object Int16Array]", L1 = "[object Int32Array]", $2 = "[object Uint8Array]", G2 = "[object Uint8ClampedArray]", P2 = "[object Uint16Array]", B2 = "[object Uint32Array]", o1 = /\b__p \+= '';/g, T2 = /\b(__p \+=) '' \+/g, I2 = /(__e\(.*?\)|\b__t\)) \+\n'';/g, s1 = /&(?:amp|lt|gt|quot|#39);/g, y1 = /[&<>"']/g, F1 = RegExp(s1.source), u3 = RegExp(y1.source), y3 = /<%-([\s\S]+?)%>/g, N1 = /<%([\s\S]+?)%>/g, u1 = /<%=([\s\S]+?)%>/g, f1 = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ve = /^\w*$/, G3 = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Ve = /[\\^$.*+?()[\]{}|]/g, rt = RegExp(Ve.source), C7 = /^\s+/, Ne = /\s/, fe = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, C6 = /\{\n\/\* \[wrapped with (.+)\] \*/, h7 = /,? & /, h6 = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, m7 = /[()=,{}\[\]\/\s]/, b4 = /\\(\\)?/g, R4 = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, Xn = /\w*$/, V9 = /^[-+]0x[0-9a-f]+$/i, Yn = /^0b[01]+$/i, k9 = /^\[object .+?Constructor\]$/, v1 = /^0o[0-7]+$/i, C2 = /^(?:0|[1-9]\d*)$/, j2 = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, c1 = /($^)/, i3 = /['\n\r\u2028\u2029\\]/g, M3 = "\\ud800-\\udfff", J3 = "\\u0300-\\u036f", xe = "\\ufe20-\\ufe2f", I4 = "\\u20d0-\\u20ff", c4 = J3 + xe + I4, kt = "\\u2700-\\u27bf", ae = "a-z\\xdf-\\xf6\\xf8-\\xff", m6 = "\\xac\\xb1\\xd7\\xf7", p6 = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", kr = "\\u2000-\\u206f", g6 = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", p7 = "A-Z\\xc0-\\xd6\\xd8-\\xde", Cs = "\\ufe0e\\ufe0f", L4 = m6 + p6 + kr + g6, Ar = "['’]", aC = "[" + M3 + "]", hs = "[" + L4 + "]", Kn = "[" + c4 + "]", Qn = "\\d+", iC = "[" + kt + "]", A9 = "[" + ae + "]", g7 = "[^" + M3 + L4 + Qn + kt + ae + p7 + "]", Er = "\\ud83c[\\udffb-\\udfff]", Tr = "(?:" + Kn + "|" + Er + ")", Or = "[^" + M3 + "]", v6 = "(?:\\ud83c[\\udde6-\\uddff]){2}", E9 = "[\\ud800-\\udbff][\\udc00-\\udfff]", At = "[" + p7 + "]", Jn = "\\u200d", e8 = "(?:" + A9 + "|" + g7 + ")", oC = "(?:" + At + "|" + g7 + ")", y6 = "(?:" + Ar + "(?:d|ll|m|re|s|t|ve))?", Zr = "(?:" + Ar + "(?:D|LL|M|RE|S|T|VE))?", Nr = Tr + "?", Dr = "[" + Cs + "]?", at = "(?:" + Jn + "(?:" + [Or, v6, E9].join("|") + ")" + Dr + Nr + ")*", sC = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", lC = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", ms = Dr + Nr + at, uC = "(?:" + [iC, v6, E9].join("|") + ")" + ms, Rr = "(?:" + [Or + Kn + "?", Kn, v6, E9, aC].join("|") + ")", v7 = RegExp(Ar, "g"), ps = RegExp(Kn, "g"), t8 = RegExp(Er + "(?=" + Er + ")|" + Rr + ms, "g"), cC = RegExp([
|
|
106438
106438
|
At + "?" + A9 + "+" + y6 + "(?=" + [hs, At, "$"].join("|") + ")",
|
|
106439
106439
|
oC + "+" + Zr + "(?=" + [hs, At + e8, "$"].join("|") + ")",
|
|
106440
106440
|
At + "?" + e8 + "+" + y6,
|
|
@@ -107415,7 +107415,7 @@ function Kz1() {
|
|
|
107415
107415
|
return B1(C) ? k : b7(k, x(C));
|
|
107416
107416
|
}
|
|
107417
107417
|
function w4(C) {
|
|
107418
|
-
return C == null ? C === n ?
|
|
107418
|
+
return C == null ? C === n ? i1 : E2 : T9 && T9 in I3(C) ? l92(C) : L92(C);
|
|
107419
107419
|
}
|
|
107420
107420
|
function TC(C, p) {
|
|
107421
107421
|
return C > p;
|
|
@@ -109739,7 +109739,7 @@ __p += '`), c3 && (D2 += `' +
|
|
|
109739
109739
|
`;
|
|
109740
109740
|
else if (m7.test(A1))
|
|
109741
109741
|
throw new j1(l);
|
|
109742
|
-
D2 = (v2 ? D2.replace(
|
|
109742
|
+
D2 = (v2 ? D2.replace(o1, "") : D2).replace(T2, "$1").replace(I2, "$1;"), D2 = "function(" + (A1 || "obj") + `) {
|
|
109743
109743
|
` + (A1 ? "" : `obj || (obj = {});
|
|
109744
109744
|
`) + "var __t, __p = ''" + (h2 ? ", __e = _.escape" : "") + (v2 ? `, __j = Array.prototype.join;
|
|
109745
109745
|
function print() { __p += __j.call(arguments, '') }
|
|
@@ -112787,11 +112787,11 @@ const fG1 = e3({
|
|
|
112787
112787
|
// Responsive breakpoint overrides
|
|
112788
112788
|
sm: r1,
|
|
112789
112789
|
md: e1,
|
|
112790
|
-
lg:
|
|
112790
|
+
lg: i1,
|
|
112791
112791
|
xl: Z2,
|
|
112792
112792
|
...f2
|
|
112793
112793
|
}, w2) => {
|
|
112794
|
-
const N2 = A && A !== "none" || O && O !== "none" || Y && Y !== "none" || Z && Z !== "none", W2 = r2 && r2 !== "none" || N2, g1 = { sm: r1, md: e1, lg:
|
|
112794
|
+
const N2 = A && A !== "none" || O && O !== "none" || Y && Y !== "none" || Z && Z !== "none", W2 = r2 && r2 !== "none" || N2, g1 = { sm: r1, md: e1, lg: i1, xl: Z2 }, S1 = CG1.map((a1) => {
|
|
112795
112795
|
const L1 = g1[a1];
|
|
112796
112796
|
return L1 ? dG1(a1, L1) : "";
|
|
112797
112797
|
}).filter(Boolean).join(" ");
|
|
@@ -118827,7 +118827,7 @@ const oQ1 = ({ text: e }) => /* @__PURE__ */ i(
|
|
|
118827
118827
|
t || z?.($2);
|
|
118828
118828
|
}, e1 = () => {
|
|
118829
118829
|
t || B?.();
|
|
118830
|
-
},
|
|
118830
|
+
}, i1 = () => {
|
|
118831
118831
|
t || W?.();
|
|
118832
118832
|
}, [Z2, f2] = y2(!1), w2 = ($2) => {
|
|
118833
118833
|
$2.animationName === "autofill" && f2(!0);
|
|
@@ -119050,7 +119050,7 @@ const oQ1 = ({ text: e }) => /* @__PURE__ */ i(
|
|
|
119050
119050
|
qa({ size: i2 }),
|
|
119051
119051
|
b && !H && !L1 && w(Y2) && !Z2 ? "opacity-100" : "opacity-0"
|
|
119052
119052
|
),
|
|
119053
|
-
onClick:
|
|
119053
|
+
onClick: i1,
|
|
119054
119054
|
"aria-hidden": "true",
|
|
119055
119055
|
title: b,
|
|
119056
119056
|
children: /* @__PURE__ */ i("span", { className: "min-w-0 truncate", children: b })
|
|
@@ -119964,11 +119964,11 @@ function hS(e, {
|
|
|
119964
119964
|
} = SQ1(), [R, W] = y2(0), { paginationInfo: B, setPaginationInfo: z } = FQ1();
|
|
119965
119965
|
S2(() => {
|
|
119966
119966
|
M && H((F2) => {
|
|
119967
|
-
const K2 = F2.length, r1 = F2.filter(M), e1 = r1.length,
|
|
119968
|
-
return W(
|
|
119967
|
+
const K2 = F2.length, r1 = F2.filter(M), e1 = r1.length, i1 = K2 - e1;
|
|
119968
|
+
return W(i1), z(
|
|
119969
119969
|
(Z2) => Z2 ? {
|
|
119970
119970
|
...Z2,
|
|
119971
|
-
total: Z2.total -
|
|
119971
|
+
total: Z2.total - i1
|
|
119972
119972
|
} : null
|
|
119973
119973
|
), r1;
|
|
119974
119974
|
});
|
|
@@ -119988,10 +119988,10 @@ function hS(e, {
|
|
|
119988
119988
|
const u2 = O2(() => ({ ...u, ...t }), [u, t]), t2 = Zr2(f), s2 = d?.enabled ? d?.sync ? f : t2 || f : void 0, g2 = (F2, K2, r1) => {
|
|
119989
119989
|
{
|
|
119990
119990
|
const e1 = new Map(
|
|
119991
|
-
F2.map((
|
|
119991
|
+
F2.map((i1, Z2) => [r1(i1, Z2), i1])
|
|
119992
119992
|
);
|
|
119993
|
-
for (const [
|
|
119994
|
-
const f2 = r1(Z2,
|
|
119993
|
+
for (const [i1, Z2] of K2.entries()) {
|
|
119994
|
+
const f2 = r1(Z2, i1);
|
|
119995
119995
|
e1.set(f2, Z2);
|
|
119996
119996
|
}
|
|
119997
119997
|
return Array.from(e1.values());
|
|
@@ -119999,9 +119999,9 @@ function hS(e, {
|
|
|
119999
119999
|
}, n2 = x2(
|
|
120000
120000
|
(F2, K2, r1, e1) => {
|
|
120001
120001
|
o?.(F2);
|
|
120002
|
-
let
|
|
120002
|
+
let i1 = [];
|
|
120003
120003
|
if ("records" in F2) {
|
|
120004
|
-
|
|
120004
|
+
i1 = F2.records;
|
|
120005
120005
|
const Z2 = l.paginationType;
|
|
120006
120006
|
if (Z2 && ["pages", "infinite-scroll"].includes(Z2) && Z2 !== "no-pagination") {
|
|
120007
120007
|
const f2 = {
|
|
@@ -120021,9 +120021,9 @@ function hS(e, {
|
|
|
120021
120021
|
}), K(F2.total);
|
|
120022
120022
|
}
|
|
120023
120023
|
} else
|
|
120024
|
-
|
|
120024
|
+
i1 = F2, K?.(F2.length);
|
|
120025
120025
|
H(
|
|
120026
|
-
K2 ? (Z2) => g2(Z2,
|
|
120026
|
+
K2 ? (Z2) => g2(Z2, i1, b) : i1
|
|
120027
120027
|
), E(null), S(!1), v(!!r1), A(!1), Z.current = !1, e1 !== void 0 && Y(e1);
|
|
120028
120028
|
},
|
|
120029
120029
|
// eslint-disable-next-line react-hooks/exhaustive-deps -- we don't want to re-run this callback when data.length changes
|
|
@@ -120045,15 +120045,15 @@ function hS(e, {
|
|
|
120045
120045
|
}), i2 = O2(() => {
|
|
120046
120046
|
const F2 = g?.field, K2 = y?.groupBy;
|
|
120047
120047
|
if (!!F2 && !!K2 && !!K2[F2]) {
|
|
120048
|
-
const
|
|
120048
|
+
const i1 = _Q1(F, F2, b2), Z2 = i1.filter(
|
|
120049
120049
|
(W2) => W2[di] === void 0
|
|
120050
120050
|
), f2 = PQ1(
|
|
120051
|
-
|
|
120051
|
+
i1.filter((W2) => W2[di] !== void 0),
|
|
120052
120052
|
di
|
|
120053
120053
|
), w2 = K2[F2], N2 = (g?.thenBy ?? []).map((W2) => String(W2.field)).filter((W2) => !!K2[W2]);
|
|
120054
120054
|
return {
|
|
120055
120055
|
type: "grouped",
|
|
120056
|
-
records:
|
|
120056
|
+
records: i1,
|
|
120057
120057
|
...Z2.length && { ungroupedRecords: Z2 },
|
|
120058
120058
|
groups: Array.from(f2.entries()).map(
|
|
120059
120059
|
([W2, g1]) => ({
|
|
@@ -120117,7 +120117,7 @@ function hS(e, {
|
|
|
120117
120117
|
currentPage: K2 = 1,
|
|
120118
120118
|
search: r1,
|
|
120119
120119
|
appendMode: e1 = !1,
|
|
120120
|
-
cursor:
|
|
120120
|
+
cursor: i1 = null
|
|
120121
120121
|
}) => {
|
|
120122
120122
|
try {
|
|
120123
120123
|
let Z2 = function() {
|
|
@@ -120129,7 +120129,7 @@ function hS(e, {
|
|
|
120129
120129
|
currentPage: K2,
|
|
120130
120130
|
perPage: L1
|
|
120131
120131
|
} : l.paginationType === "infinite-scroll" ? {
|
|
120132
|
-
cursor:
|
|
120132
|
+
cursor: i1,
|
|
120133
120133
|
perPage: L1
|
|
120134
120134
|
} : {}
|
|
120135
120135
|
});
|
|
@@ -120168,7 +120168,7 @@ function hS(e, {
|
|
|
120168
120168
|
search: r1,
|
|
120169
120169
|
sortings: f2,
|
|
120170
120170
|
currentPage: K2,
|
|
120171
|
-
cursor:
|
|
120171
|
+
cursor: i1
|
|
120172
120172
|
}), W2 = Z2();
|
|
120173
120173
|
if (!("then" in W2 || "subscribe" in W2)) {
|
|
120174
120174
|
n2(W2, e1, void 0, N2);
|
|
@@ -120272,9 +120272,9 @@ function hS(e, {
|
|
|
120272
120272
|
return;
|
|
120273
120273
|
}
|
|
120274
120274
|
c2.current = r1, d2.current = F2, v(!0);
|
|
120275
|
-
const
|
|
120275
|
+
const i1 = a2.current;
|
|
120276
120276
|
a2.current = void 0;
|
|
120277
|
-
const Z2 = l.paginationType === "infinite-scroll" ? 0 :
|
|
120277
|
+
const Z2 = l.paginationType === "infinite-scroll" ? 0 : i1 ?? 1;
|
|
120278
120278
|
E2({
|
|
120279
120279
|
filters: u2,
|
|
120280
120280
|
currentPage: Z2,
|
|
@@ -120427,15 +120427,15 @@ function ZQ1({
|
|
|
120427
120427
|
const $2 = {};
|
|
120428
120428
|
for (const G2 of e.groups) {
|
|
120429
120429
|
const P2 = G2.records.map((y1) => g?.(y1)).filter((y1) => y1 !== void 0);
|
|
120430
|
-
let B2 = 0,
|
|
120430
|
+
let B2 = 0, o1 = 0;
|
|
120431
120431
|
for (const y1 of P2)
|
|
120432
|
-
w.items?.get(y1)?.checked ? B2++ :
|
|
120432
|
+
w.items?.get(y1)?.checked ? B2++ : o1++;
|
|
120433
120433
|
const T2 = P2.length, I2 = B2 === T2 && T2 > 0, s1 = B2 > 0 && B2 < T2;
|
|
120434
120434
|
$2[G2.key] = {
|
|
120435
120435
|
checked: I2 || s1,
|
|
120436
120436
|
indeterminate: s1,
|
|
120437
120437
|
selectedCount: B2,
|
|
120438
|
-
unselectedCount:
|
|
120438
|
+
unselectedCount: o1
|
|
120439
120439
|
};
|
|
120440
120440
|
}
|
|
120441
120441
|
return $2;
|
|
@@ -120461,8 +120461,8 @@ function ZQ1({
|
|
|
120461
120461
|
]), { itemsStatus: R2, selectedIds: Y2 } = O2(() => {
|
|
120462
120462
|
const $2 = w.items || /* @__PURE__ */ new Map(), G2 = n.fetchChildren !== void 0, P2 = M && !G2 ? new Set(
|
|
120463
120463
|
e.records.map((T2) => g?.(T2)).filter((T2) => T2 !== void 0)
|
|
120464
|
-
) : null, B2 = Array.from($2.values()).filter((T2) => T2.item === void 0 ? !1 : M && P2 ? P2.has(T2.id) : !0).map(({ item: T2, checked: I2 }) => ({ item: T2, checked: I2 })),
|
|
120465
|
-
return { itemsStatus: B2, selectedIds:
|
|
120464
|
+
) : null, B2 = Array.from($2.values()).filter((T2) => T2.item === void 0 ? !1 : M && P2 ? P2.has(T2.id) : !0).map(({ item: T2, checked: I2 }) => ({ item: T2, checked: I2 })), o1 = Array.from($2.entries()).filter(([T2, I2]) => I2.checked ? M && P2 ? P2.has(T2) : !0 : !1).map(([T2]) => T2);
|
|
120465
|
+
return { itemsStatus: B2, selectedIds: o1 };
|
|
120466
120466
|
}, [
|
|
120467
120467
|
w.items,
|
|
120468
120468
|
M,
|
|
@@ -120508,11 +120508,11 @@ function ZQ1({
|
|
|
120508
120508
|
return P2 !== void 0 && P2 === $2;
|
|
120509
120509
|
}),
|
|
120510
120510
|
[w.items, e.records, g]
|
|
120511
|
-
), e1 = x2(() => e.type === "grouped" ? e.groups.flatMap(($2) => $2.records) : e.records, [e]),
|
|
120511
|
+
), e1 = x2(() => e.type === "grouped" ? e.groups.flatMap(($2) => $2.records) : e.records, [e]), i1 = x2(
|
|
120512
120512
|
($2) => {
|
|
120513
120513
|
if (!$2)
|
|
120514
120514
|
return "";
|
|
120515
|
-
const G2 = Array.from($2.items?.entries() || []).map(([B2,
|
|
120515
|
+
const G2 = Array.from($2.items?.entries() || []).map(([B2, o1]) => `${B2}:${o1.checked}`).sort().join(","), P2 = Array.from($2.groups?.entries() || []).map(([B2, o1]) => `${B2}:${o1.checked}`).sort().join(",");
|
|
120516
120516
|
return `${$2.allSelected}|${G2}|${P2}`;
|
|
120517
120517
|
},
|
|
120518
120518
|
[]
|
|
@@ -120520,9 +120520,9 @@ function ZQ1({
|
|
|
120520
120520
|
($2) => {
|
|
120521
120521
|
const G2 = nW($2);
|
|
120522
120522
|
$((P2) => {
|
|
120523
|
-
const B2 = /* @__PURE__ */ new Map(),
|
|
120523
|
+
const B2 = /* @__PURE__ */ new Map(), o1 = new Set(G2.items?.keys() || []);
|
|
120524
120524
|
for (const [I2, s1] of P2.items?.entries() || [])
|
|
120525
|
-
!v && !
|
|
120525
|
+
!v && !o1.has(I2) && s1.checked ? B2.set(I2, { ...s1, checked: !1 }) : B2.set(I2, s1);
|
|
120526
120526
|
for (const [
|
|
120527
120527
|
I2,
|
|
120528
120528
|
s1
|
|
@@ -120576,14 +120576,14 @@ function ZQ1({
|
|
|
120576
120576
|
]
|
|
120577
120577
|
), f2 = x2(
|
|
120578
120578
|
($2, G2, P2 = !1, B2) => {
|
|
120579
|
-
const
|
|
120579
|
+
const o1 = (Array.isArray($2) ? $2 : [$2]).slice(
|
|
120580
120580
|
0,
|
|
120581
120581
|
v ? void 0 : 1
|
|
120582
120582
|
), T2 = Array.isArray(B2) ? B2 : B2 !== void 0 ? [B2] : [];
|
|
120583
120583
|
$((I2) => {
|
|
120584
120584
|
const s1 = !v && G2 ? /* @__PURE__ */ new Map() : new Map(I2.items);
|
|
120585
120585
|
let y1 = 0;
|
|
120586
|
-
for (const F1 of
|
|
120586
|
+
for (const F1 of o1) {
|
|
120587
120587
|
if (P2 && s1.has(F1))
|
|
120588
120588
|
continue;
|
|
120589
120589
|
y1++;
|
|
@@ -120610,10 +120610,10 @@ function ZQ1({
|
|
|
120610
120610
|
const P2 = TQ1($2) ? [$2.key] : Array.isArray($2) ? [...$2] : [$2], B2 = e.groups.filter((T2) => P2.includes(T2.key));
|
|
120611
120611
|
if (B2.length === 0)
|
|
120612
120612
|
return;
|
|
120613
|
-
const
|
|
120613
|
+
const o1 = B2.flatMap(
|
|
120614
120614
|
(T2) => T2.records.map((I2) => g?.(I2)).filter((I2) => I2 !== void 0)
|
|
120615
120615
|
);
|
|
120616
|
-
|
|
120616
|
+
o1.length > 0 && f2(o1, G2), _((T2) => {
|
|
120617
120617
|
const I2 = new Map(T2);
|
|
120618
120618
|
for (const s1 of B2)
|
|
120619
120619
|
I2.set(s1.key, { group: s1, checked: G2 });
|
|
@@ -120658,15 +120658,15 @@ function ZQ1({
|
|
|
120658
120658
|
}
|
|
120659
120659
|
const G2 = m && e.type === "grouped" ? [] : N2(), P2 = G2.length || e.records?.length || 0;
|
|
120660
120660
|
if ($2 && V((B2) => B2 !== null ? B2 : P2), m && e.type === "grouped") {
|
|
120661
|
-
const B2 = e.groups.map((
|
|
120661
|
+
const B2 = e.groups.map((o1) => o1.key);
|
|
120662
120662
|
B2.length > 0 && w2(B2, $2);
|
|
120663
120663
|
} else {
|
|
120664
|
-
const B2 = G2.map(([T2]) => T2),
|
|
120664
|
+
const B2 = G2.map(([T2]) => T2), o1 = G2.map(([, T2]) => T2);
|
|
120665
120665
|
B2.length > 0 && f2(
|
|
120666
120666
|
B2,
|
|
120667
120667
|
$2,
|
|
120668
120668
|
!1,
|
|
120669
|
-
|
|
120669
|
+
o1
|
|
120670
120670
|
);
|
|
120671
120671
|
}
|
|
120672
120672
|
$2 || (F(!1), E.current = !1, V(null));
|
|
@@ -120690,9 +120690,9 @@ function ZQ1({
|
|
|
120690
120690
|
const G2 = N2();
|
|
120691
120691
|
$((P2) => {
|
|
120692
120692
|
const B2 = /* @__PURE__ */ new Map();
|
|
120693
|
-
for (const [
|
|
120694
|
-
B2.set(
|
|
120695
|
-
id:
|
|
120693
|
+
for (const [o1, T2] of G2)
|
|
120694
|
+
B2.set(o1, {
|
|
120695
|
+
id: o1,
|
|
120696
120696
|
checked: !0,
|
|
120697
120697
|
item: T2
|
|
120698
120698
|
});
|
|
@@ -120706,10 +120706,10 @@ function ZQ1({
|
|
|
120706
120706
|
const G2 = N2().map(([P2]) => P2);
|
|
120707
120707
|
G2.length > 0 && f2(G2, !1), $((P2) => {
|
|
120708
120708
|
const B2 = new Map(P2.items);
|
|
120709
|
-
let
|
|
120709
|
+
let o1 = !1;
|
|
120710
120710
|
for (const [T2, I2] of B2.entries())
|
|
120711
|
-
I2.checked !== !1 && (B2.set(T2, { ...I2, checked: !1 }),
|
|
120712
|
-
return
|
|
120711
|
+
I2.checked !== !1 && (B2.set(T2, { ...I2, checked: !1 }), o1 = !0);
|
|
120712
|
+
return o1 ? {
|
|
120713
120713
|
...P2,
|
|
120714
120714
|
allSelected: !1,
|
|
120715
120715
|
items: B2
|
|
@@ -120739,13 +120739,13 @@ function ZQ1({
|
|
|
120739
120739
|
allSelected: n2
|
|
120740
120740
|
}));
|
|
120741
120741
|
}, [n2]), S2(() => {
|
|
120742
|
-
const $2 =
|
|
120742
|
+
const $2 = i1(a);
|
|
120743
120743
|
if (!W.current) {
|
|
120744
120744
|
W.current = !0, R.current = $2;
|
|
120745
120745
|
return;
|
|
120746
120746
|
}
|
|
120747
120747
|
$2 !== R.current && (R.current = $2, Z2(a));
|
|
120748
|
-
}, [a,
|
|
120748
|
+
}, [a, i1, Z2]), S2(() => {
|
|
120749
120749
|
if (B.current) {
|
|
120750
120750
|
B.current = !1, z.current = n.currentFilters, Q.current = n.currentSortings, K.current = U;
|
|
120751
120751
|
return;
|
|
@@ -120809,7 +120809,7 @@ function ZQ1({
|
|
|
120809
120809
|
O.current,
|
|
120810
120810
|
!0
|
|
120811
120811
|
), $((B2) => {
|
|
120812
|
-
let
|
|
120812
|
+
let o1 = !1;
|
|
120813
120813
|
const T2 = new Map(B2.items);
|
|
120814
120814
|
for (const [I2, s1] of T2.entries())
|
|
120815
120815
|
if (s1.item === void 0) {
|
|
@@ -120820,9 +120820,9 @@ function ZQ1({
|
|
|
120820
120820
|
y1 && (T2.set(I2, {
|
|
120821
120821
|
...s1,
|
|
120822
120822
|
item: y1
|
|
120823
|
-
}),
|
|
120823
|
+
}), o1 = !0);
|
|
120824
120824
|
}
|
|
120825
|
-
return
|
|
120825
|
+
return o1 ? {
|
|
120826
120826
|
...B2,
|
|
120827
120827
|
items: T2
|
|
120828
120828
|
} : B2;
|
|
@@ -121386,9 +121386,9 @@ const ht = 10, [C42, H9] = Hr(Vn), tJ1 = "SelectContentImpl", nJ1 = Hu("SelectCo
|
|
|
121386
121386
|
Y.current = !0;
|
|
121387
121387
|
return;
|
|
121388
121388
|
}
|
|
121389
|
-
const
|
|
121389
|
+
const i1 = e1 ? K2 === e1 : K2 === _ || K2 === L.trigger || K2 === document.body;
|
|
121390
121390
|
if (!X2) {
|
|
121391
|
-
if (!
|
|
121391
|
+
if (!i1) {
|
|
121392
121392
|
Y.current = !0;
|
|
121393
121393
|
return;
|
|
121394
121394
|
}
|
|
@@ -121403,7 +121403,7 @@ const ht = 10, [C42, H9] = Hr(Vn), tJ1 = "SelectContentImpl", nJ1 = Hu("SelectCo
|
|
|
121403
121403
|
}, qQ1)), _?.focus();
|
|
121404
121404
|
return;
|
|
121405
121405
|
}
|
|
121406
|
-
Y.current = !0,
|
|
121406
|
+
Y.current = !0, i1 && o2.current(K2 === e1);
|
|
121407
121407
|
}, 0);
|
|
121408
121408
|
return () => {
|
|
121409
121409
|
M2 = !0, clearTimeout(F2), E2 !== void 0 && clearTimeout(E2);
|
|
@@ -122800,9 +122800,9 @@ const TJ1 = 8, OJ1 = [
|
|
|
122800
122800
|
...X2 ? [X2] : []
|
|
122801
122801
|
])
|
|
122802
122802
|
).sort(
|
|
122803
|
-
(
|
|
122803
|
+
(i1, Z2) => (
|
|
122804
122804
|
// oxlint-disable-next-line sonarjs/bitwise-operators -- compareDocumentPosition returns a bitmask
|
|
122805
|
-
|
|
122805
|
+
i1.compareDocumentPosition(Z2) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1
|
|
122806
122806
|
)
|
|
122807
122807
|
), K2 = E2 ?? i2, r1 = F2.indexOf(K2), e1 = r1 >= 0 ? F2[r1 + (b2.shiftKey ? -1 : 1)] : void 0;
|
|
122808
122808
|
e1 && (b2.preventDefault(), e1.focus());
|
|
@@ -124608,12 +124608,12 @@ const pM = N(function({
|
|
|
124608
124608
|
},
|
|
124609
124609
|
[a]
|
|
124610
124610
|
), X2 = (e1) => {
|
|
124611
|
-
const
|
|
124612
|
-
if (!
|
|
124611
|
+
const i1 = lu(e1, { maxDecimals: a });
|
|
124612
|
+
if (!i1)
|
|
124613
124613
|
return;
|
|
124614
|
-
const { value: Z2 } =
|
|
124614
|
+
const { value: Z2 } = i1;
|
|
124615
124615
|
if (Z2 === null) {
|
|
124616
|
-
Y(
|
|
124616
|
+
Y(i1.formattedValue), R2?.(null);
|
|
124617
124617
|
return;
|
|
124618
124618
|
}
|
|
124619
124619
|
const f2 = Math.max(
|
|
@@ -124621,7 +124621,7 @@ const pM = N(function({
|
|
|
124621
124621
|
Math.min(u ?? 1 / 0, Z2)
|
|
124622
124622
|
);
|
|
124623
124623
|
if (f2 === Z2) {
|
|
124624
|
-
Y(
|
|
124624
|
+
Y(i1.formattedValue), R2?.(Z2);
|
|
124625
124625
|
return;
|
|
124626
124626
|
}
|
|
124627
124627
|
const w2 = lu(f2.toString(), {
|
|
@@ -124633,8 +124633,8 @@ const pM = N(function({
|
|
|
124633
124633
|
return;
|
|
124634
124634
|
if (M2 == null)
|
|
124635
124635
|
return X2(Z8(s, t, a));
|
|
124636
|
-
const
|
|
124637
|
-
l != null &&
|
|
124636
|
+
const i1 = e1 === "increase" ? M2 + s : M2 - s;
|
|
124637
|
+
l != null && i1 < l || u != null && i1 > u || X2(Z8(i1, t, a));
|
|
124638
124638
|
};
|
|
124639
124639
|
S2(() => {
|
|
124640
124640
|
if (o && !r2) {
|
|
@@ -124683,7 +124683,7 @@ const pM = N(function({
|
|
|
124683
124683
|
if (m !== void 0) {
|
|
124684
124684
|
const {
|
|
124685
124685
|
icon: e1 = rg2,
|
|
124686
|
-
side:
|
|
124686
|
+
side: i1 = "bottom",
|
|
124687
124687
|
align: Z2 = "start",
|
|
124688
124688
|
triggerLabel: f2,
|
|
124689
124689
|
apply: w2
|
|
@@ -124704,7 +124704,7 @@ const pM = N(function({
|
|
|
124704
124704
|
/* @__PURE__ */ i(
|
|
124705
124705
|
Ko,
|
|
124706
124706
|
{
|
|
124707
|
-
side:
|
|
124707
|
+
side: i1,
|
|
124708
124708
|
align: Z2,
|
|
124709
124709
|
className: q(
|
|
124710
124710
|
"w-auto min-w-[220px] rounded-xl border border-solid border-f1-border-secondary p-3"
|
|
@@ -126711,7 +126711,7 @@ const X23 = N(function({
|
|
|
126711
126711
|
prop: h,
|
|
126712
126712
|
defaultProp: m,
|
|
126713
126713
|
caller: "F0Select"
|
|
126714
|
-
}), K2 = p2(void 0), [r1, e1] = y2(void 0),
|
|
126714
|
+
}), K2 = p2(void 0), [r1, e1] = y2(void 0), i1 = x2(
|
|
126715
126715
|
// Values are arbitrary strings and an IDREF cannot hold whitespace, so a
|
|
126716
126716
|
// space is spelled out as its char code.
|
|
126717
126717
|
(L2) => `${n2}-option-${L2.replace(
|
|
@@ -126762,7 +126762,7 @@ const X23 = N(function({
|
|
|
126762
126762
|
}
|
|
126763
126763
|
}
|
|
126764
126764
|
};
|
|
126765
|
-
}, [u, V, "searchFn" in s2 && s2.searchFn]), P2 = t === "field" && !Z && !d, B2 = !!y,
|
|
126765
|
+
}, [u, V, "searchFn" in s2 && s2.searchFn]), P2 = t === "field" && !Z && !d, B2 = !!y, o1 = CS(
|
|
126766
126766
|
{
|
|
126767
126767
|
...G2,
|
|
126768
126768
|
// Return string IDs for consistent comparison across the selection system
|
|
@@ -126796,7 +126796,7 @@ const X23 = N(function({
|
|
|
126796
126796
|
isLoadingMore: F1,
|
|
126797
126797
|
isLoading: u3,
|
|
126798
126798
|
paginationInfo: y3
|
|
126799
|
-
} = hS(
|
|
126799
|
+
} = hS(o1), { currentSearch: N1, setCurrentSearch: u1 } = o1, f1 = B2 && P2 && !o1.filters, ve = B2 && !f1, G3 = p2(/* @__PURE__ */ new Map()), Ve = O2(() => {
|
|
126800
126800
|
const L2 = [];
|
|
126801
126801
|
for (const U2 of I2.records) {
|
|
126802
126802
|
const w1 = T2(U2);
|
|
@@ -126833,7 +126833,7 @@ const X23 = N(function({
|
|
|
126833
126833
|
} = ZQ1({
|
|
126834
126834
|
data: I2,
|
|
126835
126835
|
paginationInfo: y3,
|
|
126836
|
-
source:
|
|
126836
|
+
source: o1,
|
|
126837
126837
|
selectionMode: O ? "multi" : "single",
|
|
126838
126838
|
onSelectItems: R2,
|
|
126839
126839
|
selectedState: rt,
|
|
@@ -127041,9 +127041,9 @@ const X23 = N(function({
|
|
|
127041
127041
|
]), [Qn, iC] = y2(!1), A9 = p2(null);
|
|
127042
127042
|
S2(() => {
|
|
127043
127043
|
const L2 = JSON.stringify([
|
|
127044
|
-
|
|
127045
|
-
|
|
127046
|
-
|
|
127044
|
+
o1.currentFilters,
|
|
127045
|
+
o1.currentSortings,
|
|
127046
|
+
o1.debouncedCurrentSearch
|
|
127047
127047
|
]);
|
|
127048
127048
|
if (A9.current === null) {
|
|
127049
127049
|
A9.current = L2;
|
|
@@ -127051,13 +127051,13 @@ const X23 = N(function({
|
|
|
127051
127051
|
}
|
|
127052
127052
|
A9.current !== L2 && (A9.current = L2, !Y2 && (!d2 || kt.current) && (G3.current.clear(), L1([]), M3.current = !0, kt.current = !1));
|
|
127053
127053
|
}, [
|
|
127054
|
-
|
|
127055
|
-
|
|
127056
|
-
|
|
127054
|
+
o1.currentFilters,
|
|
127055
|
+
o1.currentSortings,
|
|
127056
|
+
o1.debouncedCurrentSearch,
|
|
127057
127057
|
Y2,
|
|
127058
127058
|
d2
|
|
127059
127059
|
]);
|
|
127060
|
-
const g7 =
|
|
127060
|
+
const g7 = o1.grouping?.collapsible ?? !1, Er = o1.grouping?.defaultOpenGroups, { openGroups: Tr, setGroupOpen: Or } = AQ1(
|
|
127061
127061
|
I2?.type === "grouped" ? I2.groups : [],
|
|
127062
127062
|
Er
|
|
127063
127063
|
), v6 = x2(
|
|
@@ -127088,7 +127088,7 @@ const X23 = N(function({
|
|
|
127088
127088
|
YJ1,
|
|
127089
127089
|
{
|
|
127090
127090
|
item: G1,
|
|
127091
|
-
optionId: f1 ?
|
|
127091
|
+
optionId: f1 ? i1(String(G1.value)) : void 0
|
|
127092
127092
|
},
|
|
127093
127093
|
String(G1.value)
|
|
127094
127094
|
),
|
|
@@ -127098,7 +127098,7 @@ const X23 = N(function({
|
|
|
127098
127098
|
value: String(G1.value)
|
|
127099
127099
|
};
|
|
127100
127100
|
}),
|
|
127101
|
-
[T2, f1,
|
|
127101
|
+
[T2, f1, i1]
|
|
127102
127102
|
), E9 = x2((L2) => ["", "pl-5", "pl-10", "pl-16", "pl-20"][Math.min(L2, 4)], []), At = x2(
|
|
127103
127103
|
(L2, U2, w1, f3) => {
|
|
127104
127104
|
const G1 = E9(g7 ? w1 + 1 : w1);
|
|
@@ -127257,8 +127257,8 @@ const X23 = N(function({
|
|
|
127257
127257
|
triggerRef: Z2
|
|
127258
127258
|
});
|
|
127259
127259
|
S2(() => {
|
|
127260
|
-
!f1 || !r1 || document.getElementById(
|
|
127261
|
-
}, [r1, f1,
|
|
127260
|
+
!f1 || !r1 || document.getElementById(i1(r1))?.scrollIntoView({ block: "nearest" });
|
|
127261
|
+
}, [r1, f1, i1]);
|
|
127262
127262
|
const gs = F ? (L2) => {
|
|
127263
127263
|
const U2 = () => {
|
|
127264
127264
|
u1(void 0), f1 && dC();
|
|
@@ -127315,13 +127315,13 @@ const X23 = N(function({
|
|
|
127315
127315
|
onSearchChange: k9,
|
|
127316
127316
|
searchBoxPlaceholder: M,
|
|
127317
127317
|
showSearchBox: ve,
|
|
127318
|
-
grouping:
|
|
127319
|
-
currentGrouping:
|
|
127320
|
-
onGroupingChange:
|
|
127321
|
-
filters:
|
|
127322
|
-
currentFilters:
|
|
127318
|
+
grouping: o1.grouping,
|
|
127319
|
+
currentGrouping: o1.currentGrouping,
|
|
127320
|
+
onGroupingChange: o1.setCurrentGrouping,
|
|
127321
|
+
filters: o1.filters,
|
|
127322
|
+
currentFilters: o1.currentFilters,
|
|
127323
127323
|
onFiltersChange: (L2) => {
|
|
127324
|
-
|
|
127324
|
+
o1.setCurrentFilters(L2), H?.(L2);
|
|
127325
127325
|
},
|
|
127326
127326
|
asList: Z,
|
|
127327
127327
|
onFiltersOpenChange: iC,
|
|
@@ -127337,7 +127337,7 @@ const X23 = N(function({
|
|
|
127337
127337
|
onChange: ae,
|
|
127338
127338
|
hideCheckbox: Y2,
|
|
127339
127339
|
items: R4,
|
|
127340
|
-
paddingTop: !ve && !
|
|
127340
|
+
paddingTop: !ve && !o1.filters
|
|
127341
127341
|
}
|
|
127342
127342
|
) : null
|
|
127343
127343
|
] }),
|
|
@@ -127351,7 +127351,7 @@ const X23 = N(function({
|
|
|
127351
127351
|
isLoadingMore: F1
|
|
127352
127352
|
}
|
|
127353
127353
|
) : null,
|
|
127354
|
-
forceMinHeight: !!
|
|
127354
|
+
forceMinHeight: !!o1.filters && o2,
|
|
127355
127355
|
onScrollBottom: oC,
|
|
127356
127356
|
scrollMargin: 10,
|
|
127357
127357
|
isLoadingMore: F1,
|
|
@@ -127479,7 +127479,7 @@ const X23 = N(function({
|
|
|
127479
127479
|
"aria-activedescendant": (
|
|
127480
127480
|
// The only way to announce the active option while the caret
|
|
127481
127481
|
// stays in the field.
|
|
127482
|
-
f1 && X2 && r1 ?
|
|
127482
|
+
f1 && X2 && r1 ? i1(r1) : void 0
|
|
127483
127483
|
),
|
|
127484
127484
|
"aria-describedby": (
|
|
127485
127485
|
// Only while the node it points at is rendered.
|
|
@@ -138512,7 +138512,7 @@ const Nt2 = J1(null), S63 = () => {
|
|
|
138512
138512
|
const u1 = X2.current;
|
|
138513
138513
|
X2.current = u2, !(u2 === void 0 || u1 === void 0) && u1 !== u2 && Y2((f1) => f1 === "fullscreen" ? "sidepanel" : f1);
|
|
138514
138514
|
}, [u2, Y2]);
|
|
138515
|
-
const [F2, K2] = y2(!1), [r1, e1] = y2(!1), [
|
|
138515
|
+
const [F2, K2] = y2(!1), [r1, e1] = y2(!1), [i1, Z2] = y2(
|
|
138516
138516
|
null
|
|
138517
138517
|
), [f2, w2] = y2(null), N2 = p2(null), W2 = p2([]), g1 = x2((u1) => {
|
|
138518
138518
|
N2.current ? N2.current(u1) : W2.current.push(u1);
|
|
@@ -138539,7 +138539,7 @@ const Nt2 = J1(null), S63 = () => {
|
|
|
138539
138539
|
P2.current || (i2(u1), u1.coversChat !== !0 && R2.current === "fullscreen" && K("sidepanel"), z || Q(!0));
|
|
138540
138540
|
},
|
|
138541
138541
|
[z, Q, K]
|
|
138542
|
-
),
|
|
138542
|
+
), o1 = x2(() => {
|
|
138543
138543
|
i2(null);
|
|
138544
138544
|
}, []), [T2, I2] = y2(null), s1 = x2((u1) => I2(u1), []), y1 = x2(() => I2(null), []), {
|
|
138545
138545
|
activeContent: F1,
|
|
@@ -138600,7 +138600,7 @@ const Nt2 = J1(null), S63 = () => {
|
|
|
138600
138600
|
onTranscribe: _,
|
|
138601
138601
|
canvasContent: b2,
|
|
138602
138602
|
openCanvas: B2,
|
|
138603
|
-
closeCanvas:
|
|
138603
|
+
closeCanvas: o1,
|
|
138604
138604
|
activeGame: T2,
|
|
138605
138605
|
openGame: s1,
|
|
138606
138606
|
closeGame: y1,
|
|
@@ -138612,7 +138612,7 @@ const Nt2 = J1(null), S63 = () => {
|
|
|
138612
138612
|
setProcessDroppedFilesFunction: S1,
|
|
138613
138613
|
focusChatInput: $2,
|
|
138614
138614
|
setFocusChatInputFunction: G2,
|
|
138615
|
-
pendingContext:
|
|
138615
|
+
pendingContext: i1,
|
|
138616
138616
|
setPendingContext: Z2,
|
|
138617
138617
|
pendingQuote: f2,
|
|
138618
138618
|
setPendingQuote: w2,
|
|
@@ -139501,8 +139501,8 @@ const s73 = ({ onClose: e }) => {
|
|
|
139501
139501
|
$2 - B2 / 2 - Dt
|
|
139502
139502
|
)), _.current > 0 && (_.current *= 0.85, _.current < 0.5 && (_.current = 0)), g.current === "playing") {
|
|
139503
139503
|
M.current.push({ x: P2.x, y: P2.y }), M.current.length > IB && (M.current = M.current.slice(-IB)), P2.x += P2.vx * L1, P2.y += P2.vy * L1, E.current += R.current * L1, R.current *= 0.96;
|
|
139504
|
-
const
|
|
139505
|
-
P2.x <=
|
|
139504
|
+
const o1 = Dt + E6 / 2, T2 = $2 - Dt - E6 / 2;
|
|
139505
|
+
P2.x <= o1 && (P2.x = o1, P2.vx = Math.abs(P2.vx), R.current *= -0.5), P2.x >= T2 && (P2.x = T2, P2.vx = -Math.abs(P2.vx), R.current *= -0.5);
|
|
139506
139506
|
const I2 = G2 - k8 - Za, s1 = B2 / 2;
|
|
139507
139507
|
if (P2.y + Rt >= I2 && P2.y - Rt <= I2 + Za && P2.vy > 0 && P2.x >= f.current - s1 - Rt && P2.x <= f.current + s1 + Rt) {
|
|
139508
139508
|
P2.y = I2 - Rt;
|
|
@@ -139544,7 +139544,7 @@ const s73 = ({ onClose: e }) => {
|
|
|
139544
139544
|
};
|
|
139545
139545
|
}, [l, r1, F2]), !l)
|
|
139546
139546
|
return /* @__PURE__ */ i("div", { ref: r });
|
|
139547
|
-
const e1 = s2 > 0.5 ? (Math.random() - 0.5) * s2 : 0,
|
|
139547
|
+
const e1 = s2 > 0.5 ? (Math.random() - 0.5) * s2 : 0, i1 = s2 > 0.5 ? (Math.random() - 0.5) * s2 : 0;
|
|
139548
139548
|
return XB(
|
|
139549
139549
|
/* @__PURE__ */ P("div", { className: "absolute inset-0 z-50 flex flex-col bg-f1-background", children: [
|
|
139550
139550
|
/* @__PURE__ */ i("style", { children: `
|
|
@@ -139580,7 +139580,7 @@ const s73 = ({ onClose: e }) => {
|
|
|
139580
139580
|
className: "absolute inset-0 cursor-none overflow-hidden",
|
|
139581
139581
|
style: {
|
|
139582
139582
|
touchAction: "none",
|
|
139583
|
-
transform: `translate(${e1}px, ${
|
|
139583
|
+
transform: `translate(${e1}px, ${i1}px)`
|
|
139584
139584
|
},
|
|
139585
139585
|
children: [
|
|
139586
139586
|
/* @__PURE__ */ i("div", { className: "pointer-events-none absolute left-0 right-0 top-1/2 h-px translate-y-1/2 bg-f1-border" }),
|