@lateralus-ai/shipping-ui 2.0.0-dev.25 → 2.0.0-dev.27
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 +13 -13
- package/dist/index.esm.js +812 -810
- package/dist/primitives/Button.d.ts +3 -1
- package/dist/primitives/Switch.d.ts +2 -2
- package/package.json +1 -1
- package/src/primitives/Button.tsx +6 -1
- package/src/primitives/Switch.tsx +7 -5
package/dist/index.esm.js
CHANGED
|
@@ -3,13 +3,13 @@ var N0 = (e, t, r) => t in e ? K0(e, t, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var Qe = (e, t, r) => N0(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
4
|
import { b as Ip, d as Mp, c as Kp, e as Np, a as hp, g as Sp, o as qp, p as Up, r as wp, t as Tp, w as Wp } from "./theme-entry-tLBc6zGT.mjs";
|
|
5
5
|
import * as A from "react";
|
|
6
|
-
import ra, { forwardRef as T1, useLayoutEffect as h0, useState as g1, isValidElement as S0, useId as
|
|
6
|
+
import ra, { forwardRef as T1, useLayoutEffect as h0, useState as g1, isValidElement as S0, useId as zn, useRef as Hn, useEffect as ye, createContext as q0, useContext as na, useCallback as P1 } from "react";
|
|
7
7
|
import * as ft from "react-dom";
|
|
8
8
|
import aa from "react-dom";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
9
|
+
import $2 from "docxtemplater";
|
|
10
|
+
import e5 from "pizzip";
|
|
11
11
|
import * as U0 from "docx-preview";
|
|
12
|
-
import { Document as w0, Page as T0, pdfjs as
|
|
12
|
+
import { Document as w0, Page as T0, pdfjs as t5 } from "react-pdf";
|
|
13
13
|
const Rd = {
|
|
14
14
|
action: {
|
|
15
15
|
primary: {
|
|
@@ -116,7 +116,7 @@ const Rd = {
|
|
|
116
116
|
footnote: { size: "13px", lineHeight: "17px", letterSpacing: "0", weight: 400 },
|
|
117
117
|
"footnote-em": { size: "13px", lineHeight: "17px", letterSpacing: "0", weight: 500 }
|
|
118
118
|
};
|
|
119
|
-
var
|
|
119
|
+
var on = { exports: {} }, Ee = {};
|
|
120
120
|
/**
|
|
121
121
|
* @license React
|
|
122
122
|
* react-jsx-runtime.production.min.js
|
|
@@ -126,10 +126,10 @@ var an = { exports: {} }, Ee = {};
|
|
|
126
126
|
* This source code is licensed under the MIT license found in the
|
|
127
127
|
* LICENSE file in the root directory of this source tree.
|
|
128
128
|
*/
|
|
129
|
-
var
|
|
129
|
+
var r5;
|
|
130
130
|
function W0() {
|
|
131
|
-
if (
|
|
132
|
-
|
|
131
|
+
if (r5) return Ee;
|
|
132
|
+
r5 = 1;
|
|
133
133
|
var e = ra, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
134
134
|
function s(i, l, u) {
|
|
135
135
|
var d, p = {}, g = null, x = null;
|
|
@@ -150,9 +150,9 @@ var _e = {};
|
|
|
150
150
|
* This source code is licensed under the MIT license found in the
|
|
151
151
|
* LICENSE file in the root directory of this source tree.
|
|
152
152
|
*/
|
|
153
|
-
var
|
|
153
|
+
var n5;
|
|
154
154
|
function R0() {
|
|
155
|
-
return
|
|
155
|
+
return n5 || (n5 = 1, process.env.NODE_ENV !== "production" && function() {
|
|
156
156
|
var e = ra, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), i = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), C = Symbol.iterator, m = "@@iterator";
|
|
157
157
|
function f(j) {
|
|
158
158
|
if (j === null || typeof j != "object")
|
|
@@ -165,10 +165,10 @@ function R0() {
|
|
|
165
165
|
{
|
|
166
166
|
for (var M = arguments.length, w = new Array(M > 1 ? M - 1 : 0), X = 1; X < M; X++)
|
|
167
167
|
w[X - 1] = arguments[X];
|
|
168
|
-
|
|
168
|
+
b("error", j, w);
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function b(j, M, w) {
|
|
172
172
|
{
|
|
173
173
|
var X = O.ReactDebugCurrentFrame, a1 = X.getStackAddendum();
|
|
174
174
|
a1 !== "" && (M += "%s", w = w.concat([a1]));
|
|
@@ -178,16 +178,16 @@ function R0() {
|
|
|
178
178
|
i1.unshift("Warning: " + M), Function.prototype.apply.call(console[j], console, i1);
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
|
-
var V = !1, z = !1, k = !1, I = !1, S = !1,
|
|
182
|
-
|
|
181
|
+
var V = !1, z = !1, k = !1, I = !1, S = !1, W;
|
|
182
|
+
W = Symbol.for("react.module.reference");
|
|
183
183
|
function N(j) {
|
|
184
184
|
return !!(typeof j == "string" || typeof j == "function" || j === n || j === c || S || j === o || j === u || j === d || I || j === x || V || z || k || typeof j == "object" && j !== null && (j.$$typeof === g || j.$$typeof === p || j.$$typeof === s || j.$$typeof === i || j.$$typeof === l || // This needs to include all possible module reference object
|
|
185
185
|
// types supported by any Flight configuration anywhere since
|
|
186
186
|
// we don't know which Flight build this will end up being used
|
|
187
187
|
// with.
|
|
188
|
-
j.$$typeof ===
|
|
188
|
+
j.$$typeof === W || j.getModuleId !== void 0));
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function h(j, M, w) {
|
|
191
191
|
var X = j.displayName;
|
|
192
192
|
if (X)
|
|
193
193
|
return X;
|
|
@@ -227,7 +227,7 @@ function R0() {
|
|
|
227
227
|
var w = j;
|
|
228
228
|
return G(w._context) + ".Provider";
|
|
229
229
|
case l:
|
|
230
|
-
return
|
|
230
|
+
return h(j, j.render, "ForwardRef");
|
|
231
231
|
case p:
|
|
232
232
|
var X = j.displayName || null;
|
|
233
233
|
return X !== null ? X : R(j.type) || "Memo";
|
|
@@ -242,14 +242,14 @@ function R0() {
|
|
|
242
242
|
}
|
|
243
243
|
return null;
|
|
244
244
|
}
|
|
245
|
-
var D = Object.assign, e1 = 0, B, Z, H,
|
|
245
|
+
var D = Object.assign, e1 = 0, B, Z, H, P, K, U, F;
|
|
246
246
|
function t1() {
|
|
247
247
|
}
|
|
248
248
|
t1.__reactDisabledLog = !0;
|
|
249
249
|
function Y() {
|
|
250
250
|
{
|
|
251
251
|
if (e1 === 0) {
|
|
252
|
-
B = console.log, Z = console.info, H = console.warn,
|
|
252
|
+
B = console.log, Z = console.info, H = console.warn, P = console.error, K = console.group, U = console.groupCollapsed, F = console.groupEnd;
|
|
253
253
|
var j = {
|
|
254
254
|
configurable: !0,
|
|
255
255
|
enumerable: !0,
|
|
@@ -288,7 +288,7 @@ function R0() {
|
|
|
288
288
|
value: H
|
|
289
289
|
}),
|
|
290
290
|
error: D({}, j, {
|
|
291
|
-
value:
|
|
291
|
+
value: P
|
|
292
292
|
}),
|
|
293
293
|
group: D({}, j, {
|
|
294
294
|
value: K
|
|
@@ -575,20 +575,20 @@ function R0() {
|
|
|
575
575
|
return F1(j, r1, z1, a1, X, Kt.current, n1);
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
|
-
var Ur = O.ReactCurrentOwner,
|
|
578
|
+
var Ur = O.ReactCurrentOwner, Z2 = O.ReactDebugCurrentFrame;
|
|
579
579
|
function Ke(j) {
|
|
580
580
|
if (j) {
|
|
581
581
|
var M = j._owner, w = u1(j.type, j._source, M ? M.type : null);
|
|
582
|
-
|
|
582
|
+
Z2.setExtraStackFrame(w);
|
|
583
583
|
} else
|
|
584
|
-
|
|
584
|
+
Z2.setExtraStackFrame(null);
|
|
585
585
|
}
|
|
586
586
|
var wr;
|
|
587
587
|
wr = !1;
|
|
588
588
|
function Tr(j) {
|
|
589
589
|
return typeof j == "object" && j !== null && j.$$typeof === t;
|
|
590
590
|
}
|
|
591
|
-
function
|
|
591
|
+
function Y2() {
|
|
592
592
|
{
|
|
593
593
|
if (Ur.current) {
|
|
594
594
|
var j = R(Ur.current.type);
|
|
@@ -603,10 +603,10 @@ Check the render method of \`` + j + "`.";
|
|
|
603
603
|
function O0(j) {
|
|
604
604
|
return "";
|
|
605
605
|
}
|
|
606
|
-
var
|
|
606
|
+
var L2 = {};
|
|
607
607
|
function V0(j) {
|
|
608
608
|
{
|
|
609
|
-
var M =
|
|
609
|
+
var M = Y2();
|
|
610
610
|
if (!M) {
|
|
611
611
|
var w = typeof j == "string" ? j : j.displayName || j.name;
|
|
612
612
|
w && (M = `
|
|
@@ -616,27 +616,27 @@ Check the top-level render call using <` + w + ">.");
|
|
|
616
616
|
return M;
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
function
|
|
619
|
+
function J2(j, M) {
|
|
620
620
|
{
|
|
621
621
|
if (!j._store || j._store.validated || j.key != null)
|
|
622
622
|
return;
|
|
623
623
|
j._store.validated = !0;
|
|
624
624
|
var w = V0(M);
|
|
625
|
-
if (
|
|
625
|
+
if (L2[w])
|
|
626
626
|
return;
|
|
627
|
-
|
|
627
|
+
L2[w] = !0;
|
|
628
628
|
var X = "";
|
|
629
629
|
j && j._owner && j._owner !== Ur.current && (X = " It was passed a child from " + R(j._owner.type) + "."), Ke(j), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', w, X), Ke(null);
|
|
630
630
|
}
|
|
631
631
|
}
|
|
632
|
-
function
|
|
632
|
+
function Q2(j, M) {
|
|
633
633
|
{
|
|
634
634
|
if (typeof j != "object")
|
|
635
635
|
return;
|
|
636
636
|
if (Xe(j))
|
|
637
637
|
for (var w = 0; w < j.length; w++) {
|
|
638
638
|
var X = j[w];
|
|
639
|
-
Tr(X) &&
|
|
639
|
+
Tr(X) && J2(X, M);
|
|
640
640
|
}
|
|
641
641
|
else if (Tr(j))
|
|
642
642
|
j._store && (j._store.validated = !0);
|
|
@@ -644,7 +644,7 @@ Check the top-level render call using <` + w + ">.");
|
|
|
644
644
|
var a1 = f(j);
|
|
645
645
|
if (typeof a1 == "function" && a1 !== j.entries)
|
|
646
646
|
for (var i1 = a1.call(j), n1; !(n1 = i1.next()).done; )
|
|
647
|
-
Tr(n1.value) &&
|
|
647
|
+
Tr(n1.value) && J2(n1.value, M);
|
|
648
648
|
}
|
|
649
649
|
}
|
|
650
650
|
}
|
|
@@ -685,15 +685,15 @@ Check the top-level render call using <` + w + ">.");
|
|
|
685
685
|
j.ref !== null && (Ke(j), v("Invalid attribute `ref` supplied to `React.Fragment`."), Ke(null));
|
|
686
686
|
}
|
|
687
687
|
}
|
|
688
|
-
var
|
|
689
|
-
function
|
|
688
|
+
var E2 = {};
|
|
689
|
+
function _2(j, M, w, X, a1, i1) {
|
|
690
690
|
{
|
|
691
691
|
var n1 = N(j);
|
|
692
692
|
if (!n1) {
|
|
693
693
|
var r1 = "";
|
|
694
694
|
(j === void 0 || typeof j == "object" && j !== null && Object.keys(j).length === 0) && (r1 += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
695
695
|
var z1 = O0();
|
|
696
|
-
z1 ? r1 += z1 : r1 +=
|
|
696
|
+
z1 ? r1 += z1 : r1 += Y2();
|
|
697
697
|
var x1;
|
|
698
698
|
j === null ? x1 = "null" : Xe(j) ? x1 = "array" : j !== void 0 && j.$$typeof === t ? (x1 = "<" + (R(j.type) || "Unknown") + " />", r1 = " Did you accidentally export a JSX literal instead of a component?") : x1 = typeof j, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", x1, r1);
|
|
699
699
|
}
|
|
@@ -706,42 +706,42 @@ Check the top-level render call using <` + w + ">.");
|
|
|
706
706
|
if (X)
|
|
707
707
|
if (Xe(q1)) {
|
|
708
708
|
for (var Ne = 0; Ne < q1.length; Ne++)
|
|
709
|
-
|
|
709
|
+
Q2(q1[Ne], j);
|
|
710
710
|
Object.freeze && Object.freeze(q1);
|
|
711
711
|
} else
|
|
712
712
|
v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
713
713
|
else
|
|
714
|
-
|
|
714
|
+
Q2(q1, j);
|
|
715
715
|
}
|
|
716
716
|
if (_.call(M, "key")) {
|
|
717
717
|
var me = R(j), M1 = Object.keys(M).filter(function(M0) {
|
|
718
718
|
return M0 !== "key";
|
|
719
719
|
}), Wr = M1.length > 0 ? "{key: someKey, " + M1.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
720
|
-
if (!
|
|
720
|
+
if (!E2[me + Wr]) {
|
|
721
721
|
var I0 = M1.length > 0 ? "{" + M1.join(": ..., ") + ": ...}" : "{}";
|
|
722
722
|
v(`A props object containing a "key" prop is being spread into JSX:
|
|
723
723
|
let props = %s;
|
|
724
724
|
<%s {...props} />
|
|
725
725
|
React keys must be passed directly to JSX without using spread:
|
|
726
726
|
let props = %s;
|
|
727
|
-
<%s key={someKey} {...props} />`, Wr, me, I0, me),
|
|
727
|
+
<%s key={someKey} {...props} />`, Wr, me, I0, me), E2[me + Wr] = !0;
|
|
728
728
|
}
|
|
729
729
|
}
|
|
730
730
|
return j === n ? b0(C1) : v0(C1), C1;
|
|
731
731
|
}
|
|
732
732
|
}
|
|
733
733
|
function P0(j, M, w) {
|
|
734
|
-
return
|
|
734
|
+
return _2(j, M, w, !0);
|
|
735
735
|
}
|
|
736
736
|
function z0(j, M, w) {
|
|
737
|
-
return
|
|
737
|
+
return _2(j, M, w, !1);
|
|
738
738
|
}
|
|
739
739
|
var H0 = z0, k0 = P0;
|
|
740
740
|
_e.Fragment = n, _e.jsx = H0, _e.jsxs = k0;
|
|
741
741
|
}()), _e;
|
|
742
742
|
}
|
|
743
|
-
process.env.NODE_ENV === "production" ?
|
|
744
|
-
var a =
|
|
743
|
+
process.env.NODE_ENV === "production" ? on.exports = W0() : on.exports = R0();
|
|
744
|
+
var a = on.exports;
|
|
745
745
|
function F0() {
|
|
746
746
|
for (var e = 0, t, r, n = ""; e < arguments.length; )
|
|
747
747
|
(t = arguments[e++]) && (r = oa(t)) && (n && (n += " "), n += r);
|
|
@@ -754,11 +754,11 @@ function oa(e) {
|
|
|
754
754
|
e[n] && (t = oa(e[n])) && (r && (r += " "), r += t);
|
|
755
755
|
return r;
|
|
756
756
|
}
|
|
757
|
-
var
|
|
757
|
+
var kn = "-";
|
|
758
758
|
function D0(e) {
|
|
759
759
|
var t = B0(e);
|
|
760
760
|
function r(o) {
|
|
761
|
-
var c = o.split(
|
|
761
|
+
var c = o.split(kn);
|
|
762
762
|
return c[0] === "" && c.length !== 1 && c.shift(), ca(c, t) || G0(o);
|
|
763
763
|
}
|
|
764
764
|
function n(o) {
|
|
@@ -777,17 +777,17 @@ function ca(e, t) {
|
|
|
777
777
|
if (o)
|
|
778
778
|
return o;
|
|
779
779
|
if (t.validators.length !== 0) {
|
|
780
|
-
var c = e.join(
|
|
780
|
+
var c = e.join(kn);
|
|
781
781
|
return (s = t.validators.find(function(i) {
|
|
782
782
|
var l = i.validator;
|
|
783
783
|
return l(c);
|
|
784
784
|
})) == null ? void 0 : s.classGroupId;
|
|
785
785
|
}
|
|
786
786
|
}
|
|
787
|
-
var
|
|
787
|
+
var a5 = /^\[(.+)\]$/;
|
|
788
788
|
function G0(e) {
|
|
789
|
-
if (
|
|
790
|
-
var t =
|
|
789
|
+
if (a5.test(e)) {
|
|
790
|
+
var t = a5.exec(e)[1], r = t == null ? void 0 : t.substring(0, t.indexOf(":"));
|
|
791
791
|
if (r)
|
|
792
792
|
return "arbitrary.." + r;
|
|
793
793
|
}
|
|
@@ -799,19 +799,19 @@ function B0(e) {
|
|
|
799
799
|
}, o = Z0(Object.entries(e.classGroups), r);
|
|
800
800
|
return o.forEach(function(c) {
|
|
801
801
|
var s = c[0], i = c[1];
|
|
802
|
-
|
|
802
|
+
cn(i, n, s, t);
|
|
803
803
|
}), n;
|
|
804
804
|
}
|
|
805
|
-
function
|
|
805
|
+
function cn(e, t, r, n) {
|
|
806
806
|
e.forEach(function(o) {
|
|
807
807
|
if (typeof o == "string") {
|
|
808
|
-
var c = o === "" ? t :
|
|
808
|
+
var c = o === "" ? t : o5(t, o);
|
|
809
809
|
c.classGroupId = r;
|
|
810
810
|
return;
|
|
811
811
|
}
|
|
812
812
|
if (typeof o == "function") {
|
|
813
813
|
if (X0(o)) {
|
|
814
|
-
|
|
814
|
+
cn(o(n), t, r, n);
|
|
815
815
|
return;
|
|
816
816
|
}
|
|
817
817
|
t.validators.push({
|
|
@@ -822,13 +822,13 @@ function on(e, t, r, n) {
|
|
|
822
822
|
}
|
|
823
823
|
Object.entries(o).forEach(function(s) {
|
|
824
824
|
var i = s[0], l = s[1];
|
|
825
|
-
|
|
825
|
+
cn(l, o5(t, i), r, n);
|
|
826
826
|
});
|
|
827
827
|
});
|
|
828
828
|
}
|
|
829
|
-
function
|
|
829
|
+
function o5(e, t) {
|
|
830
830
|
var r = e;
|
|
831
|
-
return t.split(
|
|
831
|
+
return t.split(kn).forEach(function(n) {
|
|
832
832
|
r.nextPart.has(n) || r.nextPart.set(n, {
|
|
833
833
|
nextPart: /* @__PURE__ */ new Map(),
|
|
834
834
|
validators: []
|
|
@@ -934,7 +934,7 @@ function _0(e, t) {
|
|
|
934
934
|
return s.originalClassName;
|
|
935
935
|
}).join(" ");
|
|
936
936
|
}
|
|
937
|
-
function
|
|
937
|
+
function c5() {
|
|
938
938
|
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
|
939
939
|
t[r] = arguments[r];
|
|
940
940
|
var n, o, c, s = i;
|
|
@@ -984,7 +984,7 @@ function st(e) {
|
|
|
984
984
|
return !Number.isNaN(Number(e));
|
|
985
985
|
}
|
|
986
986
|
function $e(e) {
|
|
987
|
-
return
|
|
987
|
+
return s5(e) || Pe(e, "number", s5);
|
|
988
988
|
}
|
|
989
989
|
function m1(e) {
|
|
990
990
|
return ia.test(e);
|
|
@@ -1011,20 +1011,20 @@ function Aa() {
|
|
|
1011
1011
|
function A8(e) {
|
|
1012
1012
|
return e.startsWith("url(");
|
|
1013
1013
|
}
|
|
1014
|
-
function
|
|
1014
|
+
function s5(e) {
|
|
1015
1015
|
return Number.isInteger(Number(e));
|
|
1016
1016
|
}
|
|
1017
1017
|
function l8(e) {
|
|
1018
1018
|
return n8.test(e);
|
|
1019
1019
|
}
|
|
1020
|
-
function
|
|
1021
|
-
var e = d1("colors"), t = d1("spacing"), r = d1("blur"), n = d1("brightness"), o = d1("borderColor"), c = d1("borderRadius"), s = d1("borderSpacing"), i = d1("borderWidth"), l = d1("contrast"), u = d1("grayscale"), d = d1("hueRotate"), p = d1("invert"), g = d1("gap"), x = d1("gradientColorStops"), C = d1("inset"), m = d1("margin"), f = d1("opacity"), O = d1("padding"), v = d1("saturate"),
|
|
1020
|
+
function i5() {
|
|
1021
|
+
var e = d1("colors"), t = d1("spacing"), r = d1("blur"), n = d1("brightness"), o = d1("borderColor"), c = d1("borderRadius"), s = d1("borderSpacing"), i = d1("borderWidth"), l = d1("contrast"), u = d1("grayscale"), d = d1("hueRotate"), p = d1("invert"), g = d1("gap"), x = d1("gradientColorStops"), C = d1("inset"), m = d1("margin"), f = d1("opacity"), O = d1("padding"), v = d1("saturate"), b = d1("scale"), V = d1("sepia"), z = d1("skew"), k = d1("space"), I = d1("translate"), S = function() {
|
|
1022
1022
|
return ["auto", "contain", "none"];
|
|
1023
|
-
},
|
|
1023
|
+
}, W = function() {
|
|
1024
1024
|
return ["auto", "hidden", "clip", "visible", "scroll"];
|
|
1025
1025
|
}, N = function() {
|
|
1026
1026
|
return ["auto", t];
|
|
1027
|
-
},
|
|
1027
|
+
}, h = function() {
|
|
1028
1028
|
return ["", D1];
|
|
1029
1029
|
}, G = function() {
|
|
1030
1030
|
return ["auto", st, m1];
|
|
@@ -1040,7 +1040,7 @@ function s5() {
|
|
|
1040
1040
|
return ["", "0", m1];
|
|
1041
1041
|
}, H = function() {
|
|
1042
1042
|
return ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"];
|
|
1043
|
-
},
|
|
1043
|
+
}, P = function() {
|
|
1044
1044
|
return [st, Rr];
|
|
1045
1045
|
}, K = function() {
|
|
1046
1046
|
return [st, m1];
|
|
@@ -1051,12 +1051,12 @@ function s5() {
|
|
|
1051
1051
|
colors: [et],
|
|
1052
1052
|
spacing: [D1],
|
|
1053
1053
|
blur: ["none", "", ce, fe],
|
|
1054
|
-
brightness:
|
|
1054
|
+
brightness: P(),
|
|
1055
1055
|
borderColor: [e],
|
|
1056
1056
|
borderRadius: ["none", "", "full", ce, fe],
|
|
1057
1057
|
borderSpacing: [t],
|
|
1058
|
-
borderWidth:
|
|
1059
|
-
contrast:
|
|
1058
|
+
borderWidth: h(),
|
|
1059
|
+
contrast: P(),
|
|
1060
1060
|
grayscale: Z(),
|
|
1061
1061
|
hueRotate: K(),
|
|
1062
1062
|
invert: Z(),
|
|
@@ -1064,10 +1064,10 @@ function s5() {
|
|
|
1064
1064
|
gradientColorStops: [e],
|
|
1065
1065
|
inset: N(),
|
|
1066
1066
|
margin: N(),
|
|
1067
|
-
opacity:
|
|
1067
|
+
opacity: P(),
|
|
1068
1068
|
padding: [t],
|
|
1069
|
-
saturate:
|
|
1070
|
-
scale:
|
|
1069
|
+
saturate: P(),
|
|
1070
|
+
scale: P(),
|
|
1071
1071
|
sepia: Z(),
|
|
1072
1072
|
skew: K(),
|
|
1073
1073
|
space: [t],
|
|
@@ -1172,21 +1172,21 @@ function s5() {
|
|
|
1172
1172
|
* @see https://tailwindcss.com/docs/overflow
|
|
1173
1173
|
*/
|
|
1174
1174
|
overflow: [{
|
|
1175
|
-
overflow:
|
|
1175
|
+
overflow: W()
|
|
1176
1176
|
}],
|
|
1177
1177
|
/**
|
|
1178
1178
|
* Overflow X
|
|
1179
1179
|
* @see https://tailwindcss.com/docs/overflow
|
|
1180
1180
|
*/
|
|
1181
1181
|
"overflow-x": [{
|
|
1182
|
-
"overflow-x":
|
|
1182
|
+
"overflow-x": W()
|
|
1183
1183
|
}],
|
|
1184
1184
|
/**
|
|
1185
1185
|
* Overflow Y
|
|
1186
1186
|
* @see https://tailwindcss.com/docs/overflow
|
|
1187
1187
|
*/
|
|
1188
1188
|
"overflow-y": [{
|
|
1189
|
-
"overflow-y":
|
|
1189
|
+
"overflow-y": W()
|
|
1190
1190
|
}],
|
|
1191
1191
|
/**
|
|
1192
1192
|
* Overscroll Behavior
|
|
@@ -2206,7 +2206,7 @@ function s5() {
|
|
|
2206
2206
|
* @see https://tailwindcss.com/docs/ring-width
|
|
2207
2207
|
*/
|
|
2208
2208
|
"ring-w": [{
|
|
2209
|
-
ring:
|
|
2209
|
+
ring: h()
|
|
2210
2210
|
}],
|
|
2211
2211
|
/**
|
|
2212
2212
|
* Ring Width Inset
|
|
@@ -2505,21 +2505,21 @@ function s5() {
|
|
|
2505
2505
|
* @see https://tailwindcss.com/docs/scale
|
|
2506
2506
|
*/
|
|
2507
2507
|
scale: [{
|
|
2508
|
-
scale: [
|
|
2508
|
+
scale: [b]
|
|
2509
2509
|
}],
|
|
2510
2510
|
/**
|
|
2511
2511
|
* Scale X
|
|
2512
2512
|
* @see https://tailwindcss.com/docs/scale
|
|
2513
2513
|
*/
|
|
2514
2514
|
"scale-x": [{
|
|
2515
|
-
"scale-x": [
|
|
2515
|
+
"scale-x": [b]
|
|
2516
2516
|
}],
|
|
2517
2517
|
/**
|
|
2518
2518
|
* Scale Y
|
|
2519
2519
|
* @see https://tailwindcss.com/docs/scale
|
|
2520
2520
|
*/
|
|
2521
2521
|
"scale-y": [{
|
|
2522
|
-
"scale-y": [
|
|
2522
|
+
"scale-y": [b]
|
|
2523
2523
|
}],
|
|
2524
2524
|
/**
|
|
2525
2525
|
* Rotate
|
|
@@ -2858,8 +2858,8 @@ function la(e, t, r) {
|
|
|
2858
2858
|
function g8(e) {
|
|
2859
2859
|
for (var t = arguments.length, r = new Array(t > 1 ? t - 1 : 0), n = 1; n < t; n++)
|
|
2860
2860
|
r[n - 1] = arguments[n];
|
|
2861
|
-
return typeof e == "function" ?
|
|
2862
|
-
return u8(
|
|
2861
|
+
return typeof e == "function" ? c5.apply(void 0, [i5, e].concat(r)) : c5.apply(void 0, [function() {
|
|
2862
|
+
return u8(i5(), e);
|
|
2863
2863
|
}].concat(r));
|
|
2864
2864
|
}
|
|
2865
2865
|
function ua(e) {
|
|
@@ -2895,7 +2895,7 @@ const C8 = [
|
|
|
2895
2895
|
function y(...e) {
|
|
2896
2896
|
return m8(x8(e));
|
|
2897
2897
|
}
|
|
2898
|
-
const
|
|
2898
|
+
const In = {
|
|
2899
2899
|
large: 24,
|
|
2900
2900
|
small: 16,
|
|
2901
2901
|
xs: 12
|
|
@@ -2935,7 +2935,7 @@ const kn = {
|
|
|
2935
2935
|
}, T = ({ name: e, outline: t, filled: r, variants: n }) => {
|
|
2936
2936
|
const o = T1(
|
|
2937
2937
|
({ size: c = "large", filled: s = !1, variant: i, className: l, ...u }, d) => {
|
|
2938
|
-
const p =
|
|
2938
|
+
const p = In[c], g = i ? n == null ? void 0 : n[i] : void 0, x = g ? s && g.filled ? g.filled : g.outline : s && r ? r : t, C = x == null ? void 0 : x[c];
|
|
2939
2939
|
if (!C) return null;
|
|
2940
2940
|
const m = j8(C);
|
|
2941
2941
|
return /* @__PURE__ */ a.jsx(
|
|
@@ -2978,7 +2978,7 @@ const kn = {
|
|
|
2978
2978
|
small: { d: "M12.1679 11.1259C12.3743 10.9426 12.6906 10.9615 12.874 11.1679C13.0572 11.3742 13.0383 11.6905 12.832 11.8739L8.332 15.8739C8.14266 16.0419 7.85728 16.0419 7.66794 15.8739L3.16794 11.8739C2.96165 11.6905 2.94278 11.3742 3.12595 11.1679C3.30933 10.9615 3.6256 10.9426 3.832 11.1259L7.99997 14.83L12.1679 11.1259ZM7.74313 0.0711718C7.92719 -0.0392683 8.16625 -0.021282 8.332 0.125859L12.832 4.12586C13.0383 4.30925 13.0572 4.62554 12.874 4.83191C12.6906 5.03814 12.3743 5.05706 12.1679 4.87391L7.99997 1.16883L3.832 4.87391C3.62563 5.05706 3.30932 5.03814 3.12595 4.83191C2.94274 4.62554 2.96168 4.30925 3.16794 4.12586L7.66794 0.125859L7.74313 0.0711718Z" }
|
|
2979
2979
|
}
|
|
2980
2980
|
}, y1 = T1(({ size: e = "small", direction: t = "right", className: r, ...n }, o) => {
|
|
2981
|
-
const c =
|
|
2981
|
+
const c = In[e], i = y8[t][e];
|
|
2982
2982
|
if (!i) return null;
|
|
2983
2983
|
const l = i.strokeWidth !== void 0;
|
|
2984
2984
|
return /* @__PURE__ */ a.jsx(
|
|
@@ -3009,7 +3009,7 @@ const O8 = {
|
|
|
3009
3009
|
large: { d: "M13.7808 17.282C13.4878 17.5746 13.013 17.5748 12.7202 17.282C12.4276 16.9892 12.4276 16.5143 12.7202 16.2214L16.4419 12.4998L5.74756 12.4998C5.33361 12.4995 4.99756 12.1638 4.99756 11.7498C4.99756 11.3357 5.3336 11.0001 5.74756 10.9998L16.4419 10.9998L12.7202 7.27808C12.4277 6.98524 12.4276 6.51036 12.7202 6.21753C13.013 5.92476 13.4879 5.9249 13.7808 6.21753L18.7827 11.2195C18.8391 11.2759 18.8818 11.3406 18.9165 11.408C18.9261 11.4266 18.9378 11.4441 18.9458 11.4636C18.9533 11.4817 18.9574 11.5008 18.9634 11.5193C18.987 11.5922 19.0024 11.669 19.0024 11.7498C19.0024 11.8309 18.9872 11.908 18.9634 11.9812C18.9579 11.998 18.9544 12.0155 18.9478 12.032L18.9438 12.0417C18.9346 12.0636 18.9218 12.0835 18.9106 12.1042C18.8769 12.1669 18.8356 12.2271 18.7827 12.28L13.7808 17.282Z" }
|
|
3010
3010
|
}
|
|
3011
3011
|
}, da = T1(({ size: e = "large", direction: t = "right", className: r, ...n }, o) => {
|
|
3012
|
-
const c =
|
|
3012
|
+
const c = In[e], i = O8[t][e];
|
|
3013
3013
|
if (!i) return null;
|
|
3014
3014
|
const l = i.strokeWidth !== void 0;
|
|
3015
3015
|
return /* @__PURE__ */ a.jsx(
|
|
@@ -3681,7 +3681,7 @@ const q = {
|
|
|
3681
3681
|
xs: { d: "M6 0C9.31371 0 12 2.68629 12 6C12 9.31371 9.31371 12 6 12C2.68629 12 0 9.31371 0 6C0 2.68629 2.68629 0 6 0ZM8.35547 3.64648C8.16025 3.45142 7.84366 3.45142 7.64844 3.64648L6.00098 5.29395L4.35352 3.64648C4.15824 3.45137 3.8417 3.45127 3.64648 3.64648C3.45127 3.8417 3.45137 4.15824 3.64648 4.35352L5.29395 6.00098L3.64648 7.64844C3.45143 7.84367 3.45142 8.16025 3.64648 8.35547C3.84171 8.55041 4.15833 8.55048 4.35352 8.35547L6.00098 6.70801L7.64844 8.35547C7.84373 8.55031 8.16035 8.55059 8.35547 8.35547C8.55059 8.16035 8.55031 7.84373 8.35547 7.64844L6.70801 6.00098L8.35547 4.35352C8.55049 4.15833 8.55042 3.84172 8.35547 3.64648Z" }
|
|
3682
3682
|
}
|
|
3683
3683
|
}
|
|
3684
|
-
}, pa = T(q.attachment), V8 = T(q.microphone), ga = T(q.add), yt = T(q.plus), it = T(q.done), cr = T(q.minus), xa = T(q.send), sr = T(q.search), v8 = T(q.star), b8 = T(q.heart), ir = T(q.clear),
|
|
3684
|
+
}, pa = T(q.attachment), V8 = T(q.microphone), ga = T(q.add), yt = T(q.plus), it = T(q.done), cr = T(q.minus), xa = T(q.send), sr = T(q.search), v8 = T(q.star), b8 = T(q.heart), ir = T(q.clear), Mn = T(q.analytics), P8 = T(q.trash), Ar = T(q.chat), Ca = T(q.chatPro), Kn = T(q.filters), ma = T(q.pen), lr = T(q.tick), Nn = T(q.document), z8 = T(q.sparkles), hn = T(q.expand), H8 = T(q.speaker), k8 = T(q.copy), I8 = T(q.date), M8 = T(q.refresh), ur = T(q.activity), K8 = T(q.menu), ja = T(q.invite), Sn = T(q.report), sn = T(q.sidebar), N8 = T(q.download), h8 = T(q.upload), S8 = T(q.preview), q8 = T(q.fixes), qn = T(q.issues), Un = T(q.more), wn = T(q.bulb), Te = T(q.ship), U8 = T(q.person), w8 = T(q.archive), T8 = T(q.logOut), fa = T(q.settings), Tn = T(q.tasks), Ot = T(q.workflow), Wn = T(q.form), W8 = T(q.approval), Vt = T(q.forms), dr = T(q.book), R8 = T(q.mention), F8 = T(q.actions), pr = T(q.critical), ya = T(q.information), D8 = T(q.caution), Oa = T(q.folder), G8 = T(q.folderStarred), Va = T(q.quality), B8 = T(q.location), X8 = T(q.users), Z8 = T(q.undo), va = T(q.spinner), Y8 = T(q.clock), L8 = T(q.gap), Rn = T(q.defectReport), J8 = T(q.task), Fn = T(q.file), Q8 = T(q.reportActions), ba = T(q.checkbox), At = T(q.status), E8 = {
|
|
3685
3685
|
heart: b8,
|
|
3686
3686
|
clear: ir,
|
|
3687
3687
|
chevron: y1,
|
|
@@ -3695,16 +3695,16 @@ const q = {
|
|
|
3695
3695
|
send: xa,
|
|
3696
3696
|
search: sr,
|
|
3697
3697
|
star: v8,
|
|
3698
|
-
analytics:
|
|
3698
|
+
analytics: Mn,
|
|
3699
3699
|
trash: P8,
|
|
3700
3700
|
chat: Ar,
|
|
3701
3701
|
chatPro: Ca,
|
|
3702
|
-
filters:
|
|
3702
|
+
filters: Kn,
|
|
3703
3703
|
pen: ma,
|
|
3704
3704
|
tick: lr,
|
|
3705
|
-
document:
|
|
3705
|
+
document: Nn,
|
|
3706
3706
|
sparkles: z8,
|
|
3707
|
-
expand:
|
|
3707
|
+
expand: hn,
|
|
3708
3708
|
speaker: H8,
|
|
3709
3709
|
copy: k8,
|
|
3710
3710
|
date: I8,
|
|
@@ -3712,23 +3712,23 @@ const q = {
|
|
|
3712
3712
|
activity: ur,
|
|
3713
3713
|
menu: K8,
|
|
3714
3714
|
invite: ja,
|
|
3715
|
-
report:
|
|
3716
|
-
sidebar:
|
|
3715
|
+
report: Sn,
|
|
3716
|
+
sidebar: sn,
|
|
3717
3717
|
download: N8,
|
|
3718
3718
|
upload: h8,
|
|
3719
3719
|
preview: S8,
|
|
3720
3720
|
fixes: q8,
|
|
3721
|
-
issues:
|
|
3722
|
-
more:
|
|
3723
|
-
bulb:
|
|
3721
|
+
issues: qn,
|
|
3722
|
+
more: Un,
|
|
3723
|
+
bulb: wn,
|
|
3724
3724
|
ship: Te,
|
|
3725
3725
|
person: U8,
|
|
3726
3726
|
archive: w8,
|
|
3727
3727
|
logOut: T8,
|
|
3728
3728
|
settings: fa,
|
|
3729
|
-
tasks:
|
|
3729
|
+
tasks: Tn,
|
|
3730
3730
|
workflow: Ot,
|
|
3731
|
-
form:
|
|
3731
|
+
form: Wn,
|
|
3732
3732
|
approval: W8,
|
|
3733
3733
|
forms: Vt,
|
|
3734
3734
|
book: dr,
|
|
@@ -3746,9 +3746,9 @@ const q = {
|
|
|
3746
3746
|
spinner: va,
|
|
3747
3747
|
clock: Y8,
|
|
3748
3748
|
gap: L8,
|
|
3749
|
-
defectReport:
|
|
3749
|
+
defectReport: Rn,
|
|
3750
3750
|
task: J8,
|
|
3751
|
-
file:
|
|
3751
|
+
file: Fn,
|
|
3752
3752
|
reportActions: Q8,
|
|
3753
3753
|
checkbox: ba,
|
|
3754
3754
|
status: At
|
|
@@ -3781,7 +3781,7 @@ function Q(e, t, { checkForDefaultPrevented: r = !0 } = {}) {
|
|
|
3781
3781
|
return t == null ? void 0 : t(o);
|
|
3782
3782
|
};
|
|
3783
3783
|
}
|
|
3784
|
-
function
|
|
3784
|
+
function A5(e, t) {
|
|
3785
3785
|
if (typeof e == "function")
|
|
3786
3786
|
return e(t);
|
|
3787
3787
|
e != null && (e.current = t);
|
|
@@ -3790,14 +3790,14 @@ function $8(...e) {
|
|
|
3790
3790
|
return (t) => {
|
|
3791
3791
|
let r = !1;
|
|
3792
3792
|
const n = e.map((o) => {
|
|
3793
|
-
const c =
|
|
3793
|
+
const c = A5(o, t);
|
|
3794
3794
|
return !r && typeof c == "function" && (r = !0), c;
|
|
3795
3795
|
});
|
|
3796
3796
|
if (r)
|
|
3797
3797
|
return () => {
|
|
3798
3798
|
for (let o = 0; o < n.length; o++) {
|
|
3799
3799
|
const c = n[o];
|
|
3800
|
-
typeof c == "function" ? c() :
|
|
3800
|
+
typeof c == "function" ? c() : A5(e[o], null);
|
|
3801
3801
|
}
|
|
3802
3802
|
};
|
|
3803
3803
|
};
|
|
@@ -3913,13 +3913,13 @@ function lt(e) {
|
|
|
3913
3913
|
const t = A.forwardRef((r, n) => {
|
|
3914
3914
|
let { children: o, ...c } = r, s = null, i = !1;
|
|
3915
3915
|
const l = [];
|
|
3916
|
-
|
|
3916
|
+
l5(o) && typeof St == "function" && (o = St(o._payload)), A.Children.forEach(o, (g) => {
|
|
3917
3917
|
var x;
|
|
3918
3918
|
if (i9(g)) {
|
|
3919
3919
|
i = !0;
|
|
3920
3920
|
const C = g;
|
|
3921
3921
|
let m = "child" in C.props ? C.props.child : C.props.children;
|
|
3922
|
-
|
|
3922
|
+
l5(m) && typeof St == "function" && (m = St(m._payload)), s = o9(C, m), l.push((x = s == null ? void 0 : s.props) == null ? void 0 : x.children);
|
|
3923
3923
|
} else
|
|
3924
3924
|
l.push(g);
|
|
3925
3925
|
}), s ? s = A.cloneElement(s, void 0, l) : (
|
|
@@ -3969,7 +3969,7 @@ function i9(e) {
|
|
|
3969
3969
|
return A.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === a9;
|
|
3970
3970
|
}
|
|
3971
3971
|
var A9 = Symbol.for("react.lazy");
|
|
3972
|
-
function
|
|
3972
|
+
function l5(e) {
|
|
3973
3973
|
return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === A9 && "_payload" in e && l9(e._payload);
|
|
3974
3974
|
}
|
|
3975
3975
|
function l9(e) {
|
|
@@ -4008,21 +4008,21 @@ function Ha(e) {
|
|
|
4008
4008
|
t,
|
|
4009
4009
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
4010
4010
|
), s = (m) => {
|
|
4011
|
-
const { scope: f, children: O } = m, v = A.useRef(null),
|
|
4012
|
-
return /* @__PURE__ */ a.jsx(o, { scope: f, itemMap:
|
|
4011
|
+
const { scope: f, children: O } = m, v = A.useRef(null), b = A.useRef(/* @__PURE__ */ new Map()).current;
|
|
4012
|
+
return /* @__PURE__ */ a.jsx(o, { scope: f, itemMap: b, collectionRef: v, children: O });
|
|
4013
4013
|
};
|
|
4014
4014
|
s.displayName = t;
|
|
4015
4015
|
const i = e + "CollectionSlot", l = /* @__PURE__ */ lt(i), u = A.forwardRef(
|
|
4016
4016
|
(m, f) => {
|
|
4017
|
-
const { scope: O, children: v } = m,
|
|
4017
|
+
const { scope: O, children: v } = m, b = c(i, O), V = O1(f, b.collectionRef);
|
|
4018
4018
|
return /* @__PURE__ */ a.jsx(l, { ref: V, children: v });
|
|
4019
4019
|
}
|
|
4020
4020
|
);
|
|
4021
4021
|
u.displayName = i;
|
|
4022
4022
|
const d = e + "CollectionItemSlot", p = "data-radix-collection-item", g = /* @__PURE__ */ lt(d), x = A.forwardRef(
|
|
4023
4023
|
(m, f) => {
|
|
4024
|
-
const { scope: O, children: v, ...
|
|
4025
|
-
return A.useEffect(() => (k.itemMap.set(V, { ref: V, ...
|
|
4024
|
+
const { scope: O, children: v, ...b } = m, V = A.useRef(null), z = O1(f, V), k = c(d, O);
|
|
4025
|
+
return A.useEffect(() => (k.itemMap.set(V, { ref: V, ...b }), () => void k.itemMap.delete(V))), /* @__PURE__ */ a.jsx(g, { [p]: "", ref: z, children: v });
|
|
4026
4026
|
}
|
|
4027
4027
|
);
|
|
4028
4028
|
x.displayName = d;
|
|
@@ -4031,9 +4031,9 @@ function Ha(e) {
|
|
|
4031
4031
|
return A.useCallback(() => {
|
|
4032
4032
|
const v = f.collectionRef.current;
|
|
4033
4033
|
if (!v) return [];
|
|
4034
|
-
const
|
|
4034
|
+
const b = Array.from(v.querySelectorAll(`[${p}]`));
|
|
4035
4035
|
return Array.from(f.itemMap.values()).sort(
|
|
4036
|
-
(k, I) =>
|
|
4036
|
+
(k, I) => b.indexOf(k.ref.current) - b.indexOf(I.ref.current)
|
|
4037
4037
|
);
|
|
4038
4038
|
}, [f.collectionRef, f.itemMap]);
|
|
4039
4039
|
}
|
|
@@ -4044,7 +4044,7 @@ function Ha(e) {
|
|
|
4044
4044
|
];
|
|
4045
4045
|
}
|
|
4046
4046
|
var g9 = A.createContext(void 0);
|
|
4047
|
-
function
|
|
4047
|
+
function Dn(e) {
|
|
4048
4048
|
const t = A.useContext(g9);
|
|
4049
4049
|
return e || t || "ltr";
|
|
4050
4050
|
}
|
|
@@ -4057,7 +4057,7 @@ function ee(e) {
|
|
|
4057
4057
|
return (n = t.current) == null ? void 0 : n.call(t, ...r);
|
|
4058
4058
|
}, []);
|
|
4059
4059
|
}
|
|
4060
|
-
var x9 = "DismissableLayer",
|
|
4060
|
+
var x9 = "DismissableLayer", An = "dismissableLayer.update", C9 = "dismissableLayer.pointerDownOutside", m9 = "dismissableLayer.focusOutside", u5, Gn = A.createContext({
|
|
4061
4061
|
layers: /* @__PURE__ */ new Set(),
|
|
4062
4062
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
4063
4063
|
branches: /* @__PURE__ */ new Set(),
|
|
@@ -4067,7 +4067,7 @@ var x9 = "DismissableLayer", sn = "dismissableLayer.update", C9 = "dismissableLa
|
|
|
4067
4067
|
//
|
|
4068
4068
|
// See https://github.com/radix-ui/primitives/issues/3346
|
|
4069
4069
|
dismissableSurfaces: /* @__PURE__ */ new Set()
|
|
4070
|
-
}),
|
|
4070
|
+
}), Bn = A.forwardRef(
|
|
4071
4071
|
(e, t) => {
|
|
4072
4072
|
const {
|
|
4073
4073
|
disableOutsidePointerEvents: r = !1,
|
|
@@ -4078,11 +4078,11 @@ var x9 = "DismissableLayer", sn = "dismissableLayer.update", C9 = "dismissableLa
|
|
|
4078
4078
|
onInteractOutside: i,
|
|
4079
4079
|
onDismiss: l,
|
|
4080
4080
|
...u
|
|
4081
|
-
} = e, d = A.useContext(
|
|
4081
|
+
} = e, d = A.useContext(Gn), [p, g] = A.useState(null), x = (p == null ? void 0 : p.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, C] = A.useState({}), m = O1(t, g), f = Array.from(d.layers), [O] = [
|
|
4082
4082
|
...d.layersWithOutsidePointerEventsDisabled
|
|
4083
|
-
].slice(-1), v = O ? f.indexOf(O) : -1,
|
|
4084
|
-
(
|
|
4085
|
-
c == null || c(
|
|
4083
|
+
].slice(-1), v = O ? f.indexOf(O) : -1, b = p ? f.indexOf(p) : -1, V = d.layersWithOutsidePointerEventsDisabled.size > 0, z = b >= v, k = A.useRef(!1), I = V9(
|
|
4084
|
+
(h) => {
|
|
4085
|
+
c == null || c(h), i == null || i(h), h.defaultPrevented || l == null || l();
|
|
4086
4086
|
},
|
|
4087
4087
|
{
|
|
4088
4088
|
ownerDocument: x,
|
|
@@ -4090,38 +4090,38 @@ var x9 = "DismissableLayer", sn = "dismissableLayer.update", C9 = "dismissableLa
|
|
|
4090
4090
|
isDeferredPointerDownOutsideRef: k,
|
|
4091
4091
|
dismissableSurfaces: d.dismissableSurfaces,
|
|
4092
4092
|
shouldHandlePointerDownOutside: A.useCallback(
|
|
4093
|
-
(
|
|
4094
|
-
if (!(
|
|
4093
|
+
(h) => {
|
|
4094
|
+
if (!(h instanceof Node))
|
|
4095
4095
|
return !1;
|
|
4096
4096
|
const G = [...d.branches].some(
|
|
4097
|
-
(R) => R.contains(
|
|
4097
|
+
(R) => R.contains(h)
|
|
4098
4098
|
);
|
|
4099
4099
|
return z && !G;
|
|
4100
4100
|
},
|
|
4101
4101
|
[d.branches, z]
|
|
4102
4102
|
)
|
|
4103
4103
|
}
|
|
4104
|
-
), S = v9((
|
|
4104
|
+
), S = v9((h) => {
|
|
4105
4105
|
if (n && k.current)
|
|
4106
4106
|
return;
|
|
4107
|
-
const G =
|
|
4108
|
-
[...d.branches].some((D) => D.contains(G)) || (s == null || s(
|
|
4109
|
-
}, x),
|
|
4110
|
-
|
|
4107
|
+
const G = h.target;
|
|
4108
|
+
[...d.branches].some((D) => D.contains(G)) || (s == null || s(h), i == null || i(h), h.defaultPrevented || l == null || l());
|
|
4109
|
+
}, x), W = p ? b === f.length - 1 : !1, N = ee((h) => {
|
|
4110
|
+
h.key === "Escape" && (o == null || o(h), !h.defaultPrevented && l && (h.preventDefault(), l()));
|
|
4111
4111
|
});
|
|
4112
4112
|
return A.useEffect(() => {
|
|
4113
|
-
if (
|
|
4113
|
+
if (W)
|
|
4114
4114
|
return x.addEventListener("keydown", N, { capture: !0 }), () => x.removeEventListener("keydown", N, { capture: !0 });
|
|
4115
|
-
}, [x,
|
|
4115
|
+
}, [x, W, N]), A.useEffect(() => {
|
|
4116
4116
|
if (p)
|
|
4117
|
-
return r && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (
|
|
4118
|
-
r && (d.layersWithOutsidePointerEventsDisabled.delete(p), d.layersWithOutsidePointerEventsDisabled.size === 0 && (x.body.style.pointerEvents =
|
|
4117
|
+
return r && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (u5 = x.body.style.pointerEvents, x.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(p)), d.layers.add(p), d5(), () => {
|
|
4118
|
+
r && (d.layersWithOutsidePointerEventsDisabled.delete(p), d.layersWithOutsidePointerEventsDisabled.size === 0 && (x.body.style.pointerEvents = u5));
|
|
4119
4119
|
};
|
|
4120
4120
|
}, [p, x, r, d]), A.useEffect(() => () => {
|
|
4121
|
-
p && (d.layers.delete(p), d.layersWithOutsidePointerEventsDisabled.delete(p),
|
|
4121
|
+
p && (d.layers.delete(p), d.layersWithOutsidePointerEventsDisabled.delete(p), d5());
|
|
4122
4122
|
}, [p, d]), A.useEffect(() => {
|
|
4123
|
-
const
|
|
4124
|
-
return document.addEventListener(
|
|
4123
|
+
const h = () => C({});
|
|
4124
|
+
return document.addEventListener(An, h), () => document.removeEventListener(An, h);
|
|
4125
4125
|
}, []), /* @__PURE__ */ a.jsx(
|
|
4126
4126
|
p1.div,
|
|
4127
4127
|
{
|
|
@@ -4141,9 +4141,9 @@ var x9 = "DismissableLayer", sn = "dismissableLayer.update", C9 = "dismissableLa
|
|
|
4141
4141
|
);
|
|
4142
4142
|
}
|
|
4143
4143
|
);
|
|
4144
|
-
|
|
4144
|
+
Bn.displayName = x9;
|
|
4145
4145
|
var j9 = "DismissableLayerBranch", f9 = A.forwardRef((e, t) => {
|
|
4146
|
-
const r = A.useContext(
|
|
4146
|
+
const r = A.useContext(Gn), n = A.useRef(null), o = O1(t, n);
|
|
4147
4147
|
return A.useEffect(() => {
|
|
4148
4148
|
const c = n.current;
|
|
4149
4149
|
if (c)
|
|
@@ -4154,7 +4154,7 @@ var j9 = "DismissableLayerBranch", f9 = A.forwardRef((e, t) => {
|
|
|
4154
4154
|
});
|
|
4155
4155
|
f9.displayName = j9;
|
|
4156
4156
|
function y9() {
|
|
4157
|
-
const e = A.useContext(
|
|
4157
|
+
const e = A.useContext(Gn), [t, r] = A.useState(null);
|
|
4158
4158
|
return A.useEffect(() => {
|
|
4159
4159
|
if (t)
|
|
4160
4160
|
return e.dismissableSurfaces.add(t), () => {
|
|
@@ -4179,19 +4179,19 @@ function V9(e, t) {
|
|
|
4179
4179
|
function x() {
|
|
4180
4180
|
return Array.from(d.current.values()).some(Boolean);
|
|
4181
4181
|
}
|
|
4182
|
-
function C(
|
|
4182
|
+
function C(b) {
|
|
4183
4183
|
if (!u.current)
|
|
4184
4184
|
return;
|
|
4185
|
-
const V =
|
|
4186
|
-
V instanceof Node && [...c].some((k) => k.contains(V)) || d.current.set(
|
|
4185
|
+
const V = b.target;
|
|
4186
|
+
V instanceof Node && [...c].some((k) => k.contains(V)) || d.current.set(b.type, !0), b.type === "click" && window.setTimeout(() => {
|
|
4187
4187
|
u.current && p.current();
|
|
4188
4188
|
}, 0);
|
|
4189
4189
|
}
|
|
4190
|
-
function m(
|
|
4191
|
-
u.current && d.current.set(
|
|
4190
|
+
function m(b) {
|
|
4191
|
+
u.current && d.current.set(b.type, !1);
|
|
4192
4192
|
}
|
|
4193
|
-
const f = (
|
|
4194
|
-
if (
|
|
4193
|
+
const f = (b) => {
|
|
4194
|
+
if (b.target && !l.current) {
|
|
4195
4195
|
let V = function() {
|
|
4196
4196
|
r.removeEventListener("click", p.current);
|
|
4197
4197
|
const k = x();
|
|
@@ -4202,12 +4202,12 @@ function V9(e, t) {
|
|
|
4202
4202
|
{ discrete: !0 }
|
|
4203
4203
|
);
|
|
4204
4204
|
};
|
|
4205
|
-
if (!s(
|
|
4205
|
+
if (!s(b.target)) {
|
|
4206
4206
|
r.removeEventListener("click", p.current), g(), l.current = !1;
|
|
4207
4207
|
return;
|
|
4208
4208
|
}
|
|
4209
|
-
const z = { originalEvent:
|
|
4210
|
-
u.current = !0, o.current = n &&
|
|
4209
|
+
const z = { originalEvent: b };
|
|
4210
|
+
u.current = !0, o.current = n && b.button === 0, d.current.clear(), !n || b.button !== 0 ? V() : (r.removeEventListener("click", p.current), p.current = V, r.addEventListener("click", p.current, { once: !0 }));
|
|
4211
4211
|
} else
|
|
4212
4212
|
r.removeEventListener("click", p.current), g();
|
|
4213
4213
|
l.current = !1;
|
|
@@ -4219,15 +4219,15 @@ function V9(e, t) {
|
|
|
4219
4219
|
"touchend",
|
|
4220
4220
|
"click"
|
|
4221
4221
|
];
|
|
4222
|
-
for (const
|
|
4223
|
-
r.addEventListener(
|
|
4222
|
+
for (const b of O)
|
|
4223
|
+
r.addEventListener(b, C, !0), r.addEventListener(b, m);
|
|
4224
4224
|
const v = window.setTimeout(() => {
|
|
4225
4225
|
r.addEventListener("pointerdown", f);
|
|
4226
4226
|
}, 0);
|
|
4227
4227
|
return () => {
|
|
4228
4228
|
window.clearTimeout(v), r.removeEventListener("pointerdown", f), r.removeEventListener("click", p.current);
|
|
4229
|
-
for (const
|
|
4230
|
-
r.removeEventListener(
|
|
4229
|
+
for (const b of O)
|
|
4230
|
+
r.removeEventListener(b, C, !0), r.removeEventListener(b, m);
|
|
4231
4231
|
};
|
|
4232
4232
|
}, [
|
|
4233
4233
|
r,
|
|
@@ -4255,8 +4255,8 @@ function v9(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
4255
4255
|
onBlurCapture: () => n.current = !1
|
|
4256
4256
|
};
|
|
4257
4257
|
}
|
|
4258
|
-
function
|
|
4259
|
-
const e = new CustomEvent(
|
|
4258
|
+
function d5() {
|
|
4259
|
+
const e = new CustomEvent(An);
|
|
4260
4260
|
document.dispatchEvent(e);
|
|
4261
4261
|
}
|
|
4262
4262
|
function ka(e, t, r, { discrete: n }) {
|
|
@@ -4266,18 +4266,18 @@ function ka(e, t, r, { discrete: n }) {
|
|
|
4266
4266
|
var qt = 0, Z1 = null;
|
|
4267
4267
|
function Ia() {
|
|
4268
4268
|
A.useEffect(() => {
|
|
4269
|
-
Z1 || (Z1 = { start:
|
|
4269
|
+
Z1 || (Z1 = { start: p5(), end: p5() });
|
|
4270
4270
|
const { start: e, end: t } = Z1;
|
|
4271
4271
|
return document.body.firstElementChild !== e && document.body.insertAdjacentElement("afterbegin", e), document.body.lastElementChild !== t && document.body.insertAdjacentElement("beforeend", t), qt++, () => {
|
|
4272
4272
|
qt === 1 && (Z1 == null || Z1.start.remove(), Z1 == null || Z1.end.remove(), Z1 = null), qt = Math.max(0, qt - 1);
|
|
4273
4273
|
};
|
|
4274
4274
|
}, []);
|
|
4275
4275
|
}
|
|
4276
|
-
function
|
|
4276
|
+
function p5() {
|
|
4277
4277
|
const e = document.createElement("span");
|
|
4278
4278
|
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
4279
4279
|
}
|
|
4280
|
-
var Fr = "focusScope.autoFocusOnMount", Dr = "focusScope.autoFocusOnUnmount",
|
|
4280
|
+
var Fr = "focusScope.autoFocusOnMount", Dr = "focusScope.autoFocusOnUnmount", g5 = { bubbles: !1, cancelable: !0 }, b9 = "FocusScope", Xn = A.forwardRef((e, t) => {
|
|
4281
4281
|
const {
|
|
4282
4282
|
loop: r = !1,
|
|
4283
4283
|
trapped: n = !1,
|
|
@@ -4295,17 +4295,17 @@ var Fr = "focusScope.autoFocusOnMount", Dr = "focusScope.autoFocusOnUnmount", p5
|
|
|
4295
4295
|
}).current;
|
|
4296
4296
|
A.useEffect(() => {
|
|
4297
4297
|
if (n) {
|
|
4298
|
-
let m = function(
|
|
4298
|
+
let m = function(b) {
|
|
4299
4299
|
if (x.paused || !i) return;
|
|
4300
|
-
const V =
|
|
4300
|
+
const V = b.target;
|
|
4301
4301
|
i.contains(V) ? p.current = V : se(p.current, { select: !0 });
|
|
4302
|
-
}, f = function(
|
|
4302
|
+
}, f = function(b) {
|
|
4303
4303
|
if (x.paused || !i) return;
|
|
4304
|
-
const V =
|
|
4304
|
+
const V = b.relatedTarget;
|
|
4305
4305
|
V !== null && (i.contains(V) || se(p.current, { select: !0 }));
|
|
4306
|
-
}, O = function(
|
|
4306
|
+
}, O = function(b) {
|
|
4307
4307
|
if (document.activeElement === document.body)
|
|
4308
|
-
for (const z of
|
|
4308
|
+
for (const z of b)
|
|
4309
4309
|
z.removedNodes.length > 0 && se(i);
|
|
4310
4310
|
};
|
|
4311
4311
|
document.addEventListener("focusin", m), document.addEventListener("focusout", f);
|
|
@@ -4316,16 +4316,16 @@ var Fr = "focusScope.autoFocusOnMount", Dr = "focusScope.autoFocusOnUnmount", p5
|
|
|
4316
4316
|
}
|
|
4317
4317
|
}, [n, i, x.paused]), A.useEffect(() => {
|
|
4318
4318
|
if (i) {
|
|
4319
|
-
|
|
4319
|
+
C5.add(x);
|
|
4320
4320
|
const m = document.activeElement;
|
|
4321
4321
|
if (!i.contains(m)) {
|
|
4322
|
-
const O = new CustomEvent(Fr,
|
|
4322
|
+
const O = new CustomEvent(Fr, g5);
|
|
4323
4323
|
i.addEventListener(Fr, u), i.dispatchEvent(O), O.defaultPrevented || (P9(M9(Ma(i)), { select: !0 }), document.activeElement === m && se(i));
|
|
4324
4324
|
}
|
|
4325
4325
|
return () => {
|
|
4326
4326
|
i.removeEventListener(Fr, u), setTimeout(() => {
|
|
4327
|
-
const O = new CustomEvent(Dr,
|
|
4328
|
-
i.addEventListener(Dr, d), i.dispatchEvent(O), O.defaultPrevented || se(m ?? document.body, { select: !0 }), i.removeEventListener(Dr, d),
|
|
4327
|
+
const O = new CustomEvent(Dr, g5);
|
|
4328
|
+
i.addEventListener(Dr, d), i.dispatchEvent(O), O.defaultPrevented || se(m ?? document.body, { select: !0 }), i.removeEventListener(Dr, d), C5.remove(x);
|
|
4329
4329
|
}, 0);
|
|
4330
4330
|
};
|
|
4331
4331
|
}
|
|
@@ -4335,22 +4335,22 @@ var Fr = "focusScope.autoFocusOnMount", Dr = "focusScope.autoFocusOnUnmount", p5
|
|
|
4335
4335
|
if (!r && !n || x.paused) return;
|
|
4336
4336
|
const f = m.key === "Tab" && !m.altKey && !m.ctrlKey && !m.metaKey, O = document.activeElement;
|
|
4337
4337
|
if (f && O) {
|
|
4338
|
-
const v = m.currentTarget, [
|
|
4339
|
-
|
|
4338
|
+
const v = m.currentTarget, [b, V] = z9(v);
|
|
4339
|
+
b && V ? !m.shiftKey && O === V ? (m.preventDefault(), r && se(b, { select: !0 })) : m.shiftKey && O === b && (m.preventDefault(), r && se(V, { select: !0 })) : O === v && m.preventDefault();
|
|
4340
4340
|
}
|
|
4341
4341
|
},
|
|
4342
4342
|
[r, n, x.paused]
|
|
4343
4343
|
);
|
|
4344
4344
|
return /* @__PURE__ */ a.jsx(p1.div, { tabIndex: -1, ...s, ref: g, onKeyDown: C });
|
|
4345
4345
|
});
|
|
4346
|
-
|
|
4346
|
+
Xn.displayName = b9;
|
|
4347
4347
|
function P9(e, { select: t = !1 } = {}) {
|
|
4348
4348
|
const r = document.activeElement;
|
|
4349
4349
|
for (const n of e)
|
|
4350
4350
|
if (se(n, { select: t }), document.activeElement !== r) return;
|
|
4351
4351
|
}
|
|
4352
4352
|
function z9(e) {
|
|
4353
|
-
const t = Ma(e), r =
|
|
4353
|
+
const t = Ma(e), r = x5(t, e), n = x5(t.reverse(), e);
|
|
4354
4354
|
return [r, n];
|
|
4355
4355
|
}
|
|
4356
4356
|
function Ma(e) {
|
|
@@ -4363,7 +4363,7 @@ function Ma(e) {
|
|
|
4363
4363
|
for (; r.nextNode(); ) t.push(r.currentNode);
|
|
4364
4364
|
return t;
|
|
4365
4365
|
}
|
|
4366
|
-
function
|
|
4366
|
+
function x5(e, t) {
|
|
4367
4367
|
const r = typeof t.checkVisibility == "function" && t.checkVisibility({ checkVisibilityCSS: !0 });
|
|
4368
4368
|
for (const n of e)
|
|
4369
4369
|
if (!(r ? !n.checkVisibility({ checkVisibilityCSS: !0 }) : H9(n, { upTo: t })))
|
|
@@ -4387,21 +4387,21 @@ function se(e, { select: t = !1 } = {}) {
|
|
|
4387
4387
|
e.focus({ preventScroll: !0 }), e !== r && k9(e) && t && e.select();
|
|
4388
4388
|
}
|
|
4389
4389
|
}
|
|
4390
|
-
var
|
|
4390
|
+
var C5 = I9();
|
|
4391
4391
|
function I9() {
|
|
4392
4392
|
let e = [];
|
|
4393
4393
|
return {
|
|
4394
4394
|
add(t) {
|
|
4395
4395
|
const r = e[0];
|
|
4396
|
-
t !== r && (r == null || r.pause()), e =
|
|
4396
|
+
t !== r && (r == null || r.pause()), e = m5(e, t), e.unshift(t);
|
|
4397
4397
|
},
|
|
4398
4398
|
remove(t) {
|
|
4399
4399
|
var r;
|
|
4400
|
-
e =
|
|
4400
|
+
e = m5(e, t), (r = e[0]) == null || r.resume();
|
|
4401
4401
|
}
|
|
4402
4402
|
};
|
|
4403
4403
|
}
|
|
4404
|
-
function
|
|
4404
|
+
function m5(e, t) {
|
|
4405
4405
|
const r = [...e], n = r.indexOf(t);
|
|
4406
4406
|
return n !== -1 && r.splice(n, 1), r;
|
|
4407
4407
|
}
|
|
@@ -4425,7 +4425,7 @@ const h9 = ["top", "right", "bottom", "left"], le = Math.min, N1 = Math.max, Qt
|
|
|
4425
4425
|
bottom: "top",
|
|
4426
4426
|
top: "bottom"
|
|
4427
4427
|
};
|
|
4428
|
-
function
|
|
4428
|
+
function ln(e, t, r) {
|
|
4429
4429
|
return N1(e, le(t, r));
|
|
4430
4430
|
}
|
|
4431
4431
|
function te(e, t) {
|
|
@@ -4437,38 +4437,38 @@ function re(e) {
|
|
|
4437
4437
|
function Ge(e) {
|
|
4438
4438
|
return e.split("-")[1];
|
|
4439
4439
|
}
|
|
4440
|
-
function
|
|
4440
|
+
function Zn(e) {
|
|
4441
4441
|
return e === "x" ? "y" : "x";
|
|
4442
4442
|
}
|
|
4443
|
-
function
|
|
4443
|
+
function Yn(e) {
|
|
4444
4444
|
return e === "y" ? "height" : "width";
|
|
4445
4445
|
}
|
|
4446
4446
|
function J1(e) {
|
|
4447
4447
|
const t = e[0];
|
|
4448
4448
|
return t === "t" || t === "b" ? "y" : "x";
|
|
4449
4449
|
}
|
|
4450
|
-
function
|
|
4451
|
-
return
|
|
4450
|
+
function Ln(e) {
|
|
4451
|
+
return Zn(J1(e));
|
|
4452
4452
|
}
|
|
4453
4453
|
function q9(e, t, r) {
|
|
4454
4454
|
r === void 0 && (r = !1);
|
|
4455
|
-
const n = Ge(e), o =
|
|
4455
|
+
const n = Ge(e), o = Ln(e), c = Yn(o);
|
|
4456
4456
|
let s = o === "x" ? n === (r ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
|
|
4457
4457
|
return t.reference[c] > t.floating[c] && (s = Et(s)), [s, Et(s)];
|
|
4458
4458
|
}
|
|
4459
4459
|
function U9(e) {
|
|
4460
4460
|
const t = Et(e);
|
|
4461
|
-
return [
|
|
4461
|
+
return [un(e), t, un(t)];
|
|
4462
4462
|
}
|
|
4463
|
-
function
|
|
4463
|
+
function un(e) {
|
|
4464
4464
|
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
4465
4465
|
}
|
|
4466
|
-
const
|
|
4466
|
+
const j5 = ["left", "right"], f5 = ["right", "left"], w9 = ["top", "bottom"], T9 = ["bottom", "top"];
|
|
4467
4467
|
function W9(e, t, r) {
|
|
4468
4468
|
switch (e) {
|
|
4469
4469
|
case "top":
|
|
4470
4470
|
case "bottom":
|
|
4471
|
-
return r ? t ?
|
|
4471
|
+
return r ? t ? f5 : j5 : t ? j5 : f5;
|
|
4472
4472
|
case "left":
|
|
4473
4473
|
case "right":
|
|
4474
4474
|
return t ? w9 : T9;
|
|
@@ -4479,7 +4479,7 @@ function W9(e, t, r) {
|
|
|
4479
4479
|
function R9(e, t, r, n) {
|
|
4480
4480
|
const o = Ge(e);
|
|
4481
4481
|
let c = W9(re(e), r === "start", n);
|
|
4482
|
-
return o && (c = c.map((s) => s + "-" + o), t && (c = c.concat(c.map(
|
|
4482
|
+
return o && (c = c.map((s) => s + "-" + o), t && (c = c.concat(c.map(un)))), c;
|
|
4483
4483
|
}
|
|
4484
4484
|
function Et(e) {
|
|
4485
4485
|
const t = re(e);
|
|
@@ -4520,12 +4520,12 @@ function _t(e) {
|
|
|
4520
4520
|
y: r
|
|
4521
4521
|
};
|
|
4522
4522
|
}
|
|
4523
|
-
function
|
|
4523
|
+
function y5(e, t, r) {
|
|
4524
4524
|
let {
|
|
4525
4525
|
reference: n,
|
|
4526
4526
|
floating: o
|
|
4527
4527
|
} = e;
|
|
4528
|
-
const c = J1(t), s =
|
|
4528
|
+
const c = J1(t), s = Ln(t), i = Yn(s), l = re(t), u = c === "y", d = n.x + n.width / 2 - o.width / 2, p = n.y + n.height / 2 - o.height / 2, g = n[i] / 2 - o[i] / 2;
|
|
4529
4529
|
let x;
|
|
4530
4530
|
switch (l) {
|
|
4531
4531
|
case "top":
|
|
@@ -4594,7 +4594,7 @@ async function D9(e, t) {
|
|
|
4594
4594
|
y: o,
|
|
4595
4595
|
width: s.floating.width,
|
|
4596
4596
|
height: s.floating.height
|
|
4597
|
-
} : s.reference,
|
|
4597
|
+
} : s.reference, b = await (c.getOffsetParent == null ? void 0 : c.getOffsetParent(i.floating)), V = await (c.isElement == null ? void 0 : c.isElement(b)) ? await (c.getScale == null ? void 0 : c.getScale(b)) || {
|
|
4598
4598
|
x: 1,
|
|
4599
4599
|
y: 1
|
|
4600
4600
|
} : {
|
|
@@ -4603,7 +4603,7 @@ async function D9(e, t) {
|
|
|
4603
4603
|
}, z = _t(c.convertOffsetParentRelativeRectToViewportRelativeRect ? await c.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
4604
4604
|
elements: i,
|
|
4605
4605
|
rect: v,
|
|
4606
|
-
offsetParent:
|
|
4606
|
+
offsetParent: b,
|
|
4607
4607
|
strategy: l
|
|
4608
4608
|
}) : v);
|
|
4609
4609
|
return {
|
|
@@ -4630,7 +4630,7 @@ const G9 = 50, B9 = async (e, t, r) => {
|
|
|
4630
4630
|
}), {
|
|
4631
4631
|
x: d,
|
|
4632
4632
|
y: p
|
|
4633
|
-
} =
|
|
4633
|
+
} = y5(u, n, l), g = n, x = 0;
|
|
4634
4634
|
const C = {};
|
|
4635
4635
|
for (let m = 0; m < c.length; m++) {
|
|
4636
4636
|
const f = c[m];
|
|
@@ -4640,7 +4640,7 @@ const G9 = 50, B9 = async (e, t, r) => {
|
|
|
4640
4640
|
name: O,
|
|
4641
4641
|
fn: v
|
|
4642
4642
|
} = f, {
|
|
4643
|
-
x:
|
|
4643
|
+
x: b,
|
|
4644
4644
|
y: V,
|
|
4645
4645
|
data: z,
|
|
4646
4646
|
reset: k
|
|
@@ -4658,7 +4658,7 @@ const G9 = 50, B9 = async (e, t, r) => {
|
|
|
4658
4658
|
floating: t
|
|
4659
4659
|
}
|
|
4660
4660
|
});
|
|
4661
|
-
d =
|
|
4661
|
+
d = b ?? d, p = V ?? p, C[O] = {
|
|
4662
4662
|
...C[O],
|
|
4663
4663
|
...z
|
|
4664
4664
|
}, k && x < G9 && (x++, typeof k == "object" && (k.placement && (g = k.placement), k.rects && (u = k.rects === !0 ? await s.getElementRects({
|
|
@@ -4668,7 +4668,7 @@ const G9 = 50, B9 = async (e, t, r) => {
|
|
|
4668
4668
|
}) : k.rects), {
|
|
4669
4669
|
x: d,
|
|
4670
4670
|
y: p
|
|
4671
|
-
} =
|
|
4671
|
+
} = y5(u, g, l)), m = -1);
|
|
4672
4672
|
}
|
|
4673
4673
|
return {
|
|
4674
4674
|
x: d,
|
|
@@ -4698,10 +4698,10 @@ const G9 = 50, B9 = async (e, t, r) => {
|
|
|
4698
4698
|
const p = Ka(d), g = {
|
|
4699
4699
|
x: r,
|
|
4700
4700
|
y: n
|
|
4701
|
-
}, x =
|
|
4702
|
-
let I = k ? k[
|
|
4703
|
-
(!I || !await (s.isElement == null ? void 0 : s.isElement(k))) && (I = i.floating[
|
|
4704
|
-
const S = V / 2 - z / 2,
|
|
4701
|
+
}, x = Ln(o), C = Yn(x), m = await s.getDimensions(u), f = x === "y", O = f ? "top" : "left", v = f ? "bottom" : "right", b = f ? "clientHeight" : "clientWidth", V = c.reference[C] + c.reference[x] - g[x] - c.floating[C], z = g[x] - c.reference[x], k = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
|
|
4702
|
+
let I = k ? k[b] : 0;
|
|
4703
|
+
(!I || !await (s.isElement == null ? void 0 : s.isElement(k))) && (I = i.floating[b] || c.floating[C]);
|
|
4704
|
+
const S = V / 2 - z / 2, W = I / 2 - m[C] / 2 - 1, N = le(p[O], W), h = le(p[v], W), G = N, R = I - m[C] - h, D = I / 2 - m[C] / 2 + S, e1 = ln(G, D, R), B = !l.arrow && Ge(o) != null && D !== e1 && c.reference[C] / 2 - (D < G ? N : h) - m[C] / 2 < 0, Z = B ? D < G ? D - G : D - R : 0;
|
|
4705
4705
|
return {
|
|
4706
4706
|
[x]: g[x] + Z,
|
|
4707
4707
|
data: {
|
|
@@ -4738,20 +4738,20 @@ const G9 = 50, B9 = async (e, t, r) => {
|
|
|
4738
4738
|
} = te(e, t);
|
|
4739
4739
|
if ((r = c.arrow) != null && r.alignmentOffset)
|
|
4740
4740
|
return {};
|
|
4741
|
-
const O = re(o), v = J1(i),
|
|
4741
|
+
const O = re(o), v = J1(i), b = re(i) === i, V = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), z = g || (b || !m ? [Et(i)] : U9(i)), k = C !== "none";
|
|
4742
4742
|
!g && k && z.push(...R9(i, m, C, V));
|
|
4743
|
-
const I = [i, ...z], S = await l.detectOverflow(t, f),
|
|
4743
|
+
const I = [i, ...z], S = await l.detectOverflow(t, f), W = [];
|
|
4744
4744
|
let N = ((n = c.flip) == null ? void 0 : n.overflows) || [];
|
|
4745
|
-
if (d &&
|
|
4745
|
+
if (d && W.push(S[O]), p) {
|
|
4746
4746
|
const D = q9(o, s, V);
|
|
4747
|
-
|
|
4747
|
+
W.push(S[D[0]], S[D[1]]);
|
|
4748
4748
|
}
|
|
4749
4749
|
if (N = [...N, {
|
|
4750
4750
|
placement: o,
|
|
4751
|
-
overflows:
|
|
4752
|
-
}], !
|
|
4753
|
-
var
|
|
4754
|
-
const D = (((
|
|
4751
|
+
overflows: W
|
|
4752
|
+
}], !W.every((D) => D <= 0)) {
|
|
4753
|
+
var h, G;
|
|
4754
|
+
const D = (((h = c.flip) == null ? void 0 : h.index) || 0) + 1, e1 = I[D];
|
|
4755
4755
|
if (e1 && (!(p === "alignment" ? v !== J1(e1) : !1) || // We leave the current main axis only if every placement on that axis
|
|
4756
4756
|
// overflows the main axis.
|
|
4757
4757
|
N.every((H) => J1(H.placement) === v ? H.overflows[0] > 0 : !0)))
|
|
@@ -4771,13 +4771,13 @@ const G9 = 50, B9 = async (e, t, r) => {
|
|
|
4771
4771
|
var R;
|
|
4772
4772
|
const Z = (R = N.filter((H) => {
|
|
4773
4773
|
if (k) {
|
|
4774
|
-
const
|
|
4775
|
-
return
|
|
4774
|
+
const P = J1(H.placement);
|
|
4775
|
+
return P === v || // Create a bias to the `y` side axis due to horizontal
|
|
4776
4776
|
// reading directions favoring greater width.
|
|
4777
|
-
|
|
4777
|
+
P === "y";
|
|
4778
4778
|
}
|
|
4779
4779
|
return !0;
|
|
4780
|
-
}).map((H) => [H.placement, H.overflows.filter((
|
|
4780
|
+
}).map((H) => [H.placement, H.overflows.filter((P) => P > 0).reduce((P, K) => P + K, 0)]).sort((H, P) => H[1] - P[1])[0]) == null ? void 0 : R[0];
|
|
4781
4781
|
Z && (B = Z);
|
|
4782
4782
|
break;
|
|
4783
4783
|
}
|
|
@@ -4796,7 +4796,7 @@ const G9 = 50, B9 = async (e, t, r) => {
|
|
|
4796
4796
|
}
|
|
4797
4797
|
};
|
|
4798
4798
|
};
|
|
4799
|
-
function
|
|
4799
|
+
function O5(e, t) {
|
|
4800
4800
|
return {
|
|
4801
4801
|
top: e.top - t.height,
|
|
4802
4802
|
right: e.right - t.width,
|
|
@@ -4804,7 +4804,7 @@ function y5(e, t) {
|
|
|
4804
4804
|
left: e.left - t.width
|
|
4805
4805
|
};
|
|
4806
4806
|
}
|
|
4807
|
-
function
|
|
4807
|
+
function V5(e) {
|
|
4808
4808
|
return h9.some((t) => e[t] >= 0);
|
|
4809
4809
|
}
|
|
4810
4810
|
const Y9 = function(e) {
|
|
@@ -4824,11 +4824,11 @@ const Y9 = function(e) {
|
|
|
4824
4824
|
const s = await n.detectOverflow(t, {
|
|
4825
4825
|
...c,
|
|
4826
4826
|
elementContext: "reference"
|
|
4827
|
-
}), i =
|
|
4827
|
+
}), i = O5(s, r.reference);
|
|
4828
4828
|
return {
|
|
4829
4829
|
data: {
|
|
4830
4830
|
referenceHiddenOffsets: i,
|
|
4831
|
-
referenceHidden:
|
|
4831
|
+
referenceHidden: V5(i)
|
|
4832
4832
|
}
|
|
4833
4833
|
};
|
|
4834
4834
|
}
|
|
@@ -4836,11 +4836,11 @@ const Y9 = function(e) {
|
|
|
4836
4836
|
const s = await n.detectOverflow(t, {
|
|
4837
4837
|
...c,
|
|
4838
4838
|
altBoundary: !0
|
|
4839
|
-
}), i =
|
|
4839
|
+
}), i = O5(s, r.floating);
|
|
4840
4840
|
return {
|
|
4841
4841
|
data: {
|
|
4842
4842
|
escapedOffsets: i,
|
|
4843
|
-
escaped:
|
|
4843
|
+
escaped: V5(i)
|
|
4844
4844
|
}
|
|
4845
4845
|
};
|
|
4846
4846
|
}
|
|
@@ -4916,11 +4916,11 @@ const J9 = function(e) {
|
|
|
4916
4916
|
fn: (O) => {
|
|
4917
4917
|
let {
|
|
4918
4918
|
x: v,
|
|
4919
|
-
y:
|
|
4919
|
+
y: b
|
|
4920
4920
|
} = O;
|
|
4921
4921
|
return {
|
|
4922
4922
|
x: v,
|
|
4923
|
-
y:
|
|
4923
|
+
y: b
|
|
4924
4924
|
};
|
|
4925
4925
|
}
|
|
4926
4926
|
},
|
|
@@ -4928,15 +4928,15 @@ const J9 = function(e) {
|
|
|
4928
4928
|
} = te(e, t), d = {
|
|
4929
4929
|
x: r,
|
|
4930
4930
|
y: n
|
|
4931
|
-
}, p = await c.detectOverflow(t, u), g = J1(re(o)), x =
|
|
4931
|
+
}, p = await c.detectOverflow(t, u), g = J1(re(o)), x = Zn(g);
|
|
4932
4932
|
let C = d[x], m = d[g];
|
|
4933
4933
|
if (s) {
|
|
4934
|
-
const O = x === "y" ? "top" : "left", v = x === "y" ? "bottom" : "right",
|
|
4935
|
-
C =
|
|
4934
|
+
const O = x === "y" ? "top" : "left", v = x === "y" ? "bottom" : "right", b = C + p[O], V = C - p[v];
|
|
4935
|
+
C = ln(b, C, V);
|
|
4936
4936
|
}
|
|
4937
4937
|
if (i) {
|
|
4938
|
-
const O = g === "y" ? "top" : "left", v = g === "y" ? "bottom" : "right",
|
|
4939
|
-
m =
|
|
4938
|
+
const O = g === "y" ? "top" : "left", v = g === "y" ? "bottom" : "right", b = m + p[O], V = m - p[v];
|
|
4939
|
+
m = ln(b, m, V);
|
|
4940
4940
|
}
|
|
4941
4941
|
const f = l.fn({
|
|
4942
4942
|
...t,
|
|
@@ -4973,7 +4973,7 @@ const J9 = function(e) {
|
|
|
4973
4973
|
} = te(e, t), d = {
|
|
4974
4974
|
x: r,
|
|
4975
4975
|
y: n
|
|
4976
|
-
}, p = J1(o), g =
|
|
4976
|
+
}, p = J1(o), g = Zn(p);
|
|
4977
4977
|
let x = d[g], C = d[p];
|
|
4978
4978
|
const m = te(i, t), f = typeof m == "number" ? {
|
|
4979
4979
|
mainAxis: m,
|
|
@@ -4984,12 +4984,12 @@ const J9 = function(e) {
|
|
|
4984
4984
|
...m
|
|
4985
4985
|
};
|
|
4986
4986
|
if (l) {
|
|
4987
|
-
const
|
|
4987
|
+
const b = g === "y" ? "height" : "width", V = c.reference[g] - c.floating[b] + f.mainAxis, z = c.reference[g] + c.reference[b] - f.mainAxis;
|
|
4988
4988
|
x < V ? x = V : x > z && (x = z);
|
|
4989
4989
|
}
|
|
4990
4990
|
if (u) {
|
|
4991
4991
|
var O, v;
|
|
4992
|
-
const
|
|
4992
|
+
const b = g === "y" ? "width" : "height", V = Na.has(re(o)), z = c.reference[p] - c.floating[b] + (V && ((O = s.offset) == null ? void 0 : O[p]) || 0) + (V ? 0 : f.crossAxis), k = c.reference[p] + c.reference[b] + (V ? 0 : ((v = s.offset) == null ? void 0 : v[p]) || 0) - (V ? f.crossAxis : 0);
|
|
4993
4993
|
C < z ? C = z : C > k && (C = k);
|
|
4994
4994
|
}
|
|
4995
4995
|
return {
|
|
@@ -5019,19 +5019,19 @@ const J9 = function(e) {
|
|
|
5019
5019
|
} = c.floating;
|
|
5020
5020
|
let f, O;
|
|
5021
5021
|
p === "top" || p === "bottom" ? (f = p, O = g === (await (s.isRTL == null ? void 0 : s.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (O = p, f = g === "end" ? "top" : "bottom");
|
|
5022
|
-
const v = m - d.top - d.bottom,
|
|
5022
|
+
const v = m - d.top - d.bottom, b = C - d.left - d.right, V = le(m - d[f], v), z = le(C - d[O], b), k = !t.middlewareData.shift;
|
|
5023
5023
|
let I = V, S = z;
|
|
5024
|
-
if ((r = t.middlewareData.shift) != null && r.enabled.x && (S =
|
|
5025
|
-
const N = N1(d.left, 0),
|
|
5026
|
-
x ? S = C - 2 * (N !== 0 ||
|
|
5024
|
+
if ((r = t.middlewareData.shift) != null && r.enabled.x && (S = b), (n = t.middlewareData.shift) != null && n.enabled.y && (I = v), k && !g) {
|
|
5025
|
+
const N = N1(d.left, 0), h = N1(d.right, 0), G = N1(d.top, 0), R = N1(d.bottom, 0);
|
|
5026
|
+
x ? S = C - 2 * (N !== 0 || h !== 0 ? N + h : N1(d.left, d.right)) : I = m - 2 * (G !== 0 || R !== 0 ? G + R : N1(d.top, d.bottom));
|
|
5027
5027
|
}
|
|
5028
5028
|
await l({
|
|
5029
5029
|
...t,
|
|
5030
5030
|
availableWidth: S,
|
|
5031
5031
|
availableHeight: I
|
|
5032
5032
|
});
|
|
5033
|
-
const
|
|
5034
|
-
return C !==
|
|
5033
|
+
const W = await s.getDimensions(i.floating);
|
|
5034
|
+
return C !== W.width || m !== W.height ? {
|
|
5035
5035
|
reset: {
|
|
5036
5036
|
rects: !0
|
|
5037
5037
|
}
|
|
@@ -5062,7 +5062,7 @@ function G1(e) {
|
|
|
5062
5062
|
function ne(e) {
|
|
5063
5063
|
return xr() ? e instanceof HTMLElement || e instanceof h1(e).HTMLElement : !1;
|
|
5064
5064
|
}
|
|
5065
|
-
function
|
|
5065
|
+
function v5(e) {
|
|
5066
5066
|
return !xr() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof h1(e).ShadowRoot;
|
|
5067
5067
|
}
|
|
5068
5068
|
function vt(e) {
|
|
@@ -5091,14 +5091,14 @@ function Cr(e) {
|
|
|
5091
5091
|
}
|
|
5092
5092
|
const e7 = /transform|translate|scale|rotate|perspective|filter/, t7 = /paint|layout|strict|content/, je = (e) => !!e && e !== "none";
|
|
5093
5093
|
let Gr;
|
|
5094
|
-
function
|
|
5094
|
+
function Jn(e) {
|
|
5095
5095
|
const t = G1(e) ? B1(e) : e;
|
|
5096
|
-
return je(t.transform) || je(t.translate) || je(t.scale) || je(t.rotate) || je(t.perspective) || !
|
|
5096
|
+
return je(t.transform) || je(t.translate) || je(t.scale) || je(t.rotate) || je(t.perspective) || !Qn() && (je(t.backdropFilter) || je(t.filter)) || e7.test(t.willChange || "") || t7.test(t.contain || "");
|
|
5097
5097
|
}
|
|
5098
5098
|
function r7(e) {
|
|
5099
5099
|
let t = ue(e);
|
|
5100
5100
|
for (; ne(t) && !We(t); ) {
|
|
5101
|
-
if (
|
|
5101
|
+
if (Jn(t))
|
|
5102
5102
|
return t;
|
|
5103
5103
|
if (Cr(t))
|
|
5104
5104
|
return null;
|
|
@@ -5106,7 +5106,7 @@ function r7(e) {
|
|
|
5106
5106
|
}
|
|
5107
5107
|
return null;
|
|
5108
5108
|
}
|
|
5109
|
-
function
|
|
5109
|
+
function Qn() {
|
|
5110
5110
|
return Gr == null && (Gr = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), Gr;
|
|
5111
5111
|
}
|
|
5112
5112
|
function We(e) {
|
|
@@ -5131,10 +5131,10 @@ function ue(e) {
|
|
|
5131
5131
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
5132
5132
|
e.assignedSlot || // DOM Element detected.
|
|
5133
5133
|
e.parentNode || // ShadowRoot detected.
|
|
5134
|
-
|
|
5134
|
+
v5(e) && e.host || // Fallback.
|
|
5135
5135
|
_1(e)
|
|
5136
5136
|
);
|
|
5137
|
-
return
|
|
5137
|
+
return v5(t) ? t.host : t;
|
|
5138
5138
|
}
|
|
5139
5139
|
function Sa(e) {
|
|
5140
5140
|
const t = ue(e);
|
|
@@ -5145,12 +5145,12 @@ function ut(e, t, r) {
|
|
|
5145
5145
|
t === void 0 && (t = []), r === void 0 && (r = !0);
|
|
5146
5146
|
const o = Sa(e), c = o === ((n = e.ownerDocument) == null ? void 0 : n.body), s = h1(o);
|
|
5147
5147
|
if (c) {
|
|
5148
|
-
const i =
|
|
5148
|
+
const i = dn(s);
|
|
5149
5149
|
return t.concat(s, s.visualViewport || [], vt(o) ? o : [], i && r ? ut(i) : []);
|
|
5150
5150
|
} else
|
|
5151
5151
|
return t.concat(o, ut(o, [], r));
|
|
5152
5152
|
}
|
|
5153
|
-
function
|
|
5153
|
+
function dn(e) {
|
|
5154
5154
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
5155
5155
|
}
|
|
5156
5156
|
function qa(e) {
|
|
@@ -5163,11 +5163,11 @@ function qa(e) {
|
|
|
5163
5163
|
$: i
|
|
5164
5164
|
};
|
|
5165
5165
|
}
|
|
5166
|
-
function
|
|
5166
|
+
function En(e) {
|
|
5167
5167
|
return G1(e) ? e : e.contextElement;
|
|
5168
5168
|
}
|
|
5169
5169
|
function Ue(e) {
|
|
5170
|
-
const t =
|
|
5170
|
+
const t = En(e);
|
|
5171
5171
|
if (!ne(t))
|
|
5172
5172
|
return E1(1);
|
|
5173
5173
|
const r = t.getBoundingClientRect(), {
|
|
@@ -5184,7 +5184,7 @@ function Ue(e) {
|
|
|
5184
5184
|
const n7 = /* @__PURE__ */ E1(0);
|
|
5185
5185
|
function Ua(e) {
|
|
5186
5186
|
const t = h1(e);
|
|
5187
|
-
return !
|
|
5187
|
+
return !Qn() || !t.visualViewport ? n7 : {
|
|
5188
5188
|
x: t.visualViewport.offsetLeft,
|
|
5189
5189
|
y: t.visualViewport.offsetTop
|
|
5190
5190
|
};
|
|
@@ -5194,17 +5194,17 @@ function a7(e, t, r) {
|
|
|
5194
5194
|
}
|
|
5195
5195
|
function Ve(e, t, r, n) {
|
|
5196
5196
|
t === void 0 && (t = !1), r === void 0 && (r = !1);
|
|
5197
|
-
const o = e.getBoundingClientRect(), c =
|
|
5197
|
+
const o = e.getBoundingClientRect(), c = En(e);
|
|
5198
5198
|
let s = E1(1);
|
|
5199
5199
|
t && (n ? G1(n) && (s = Ue(n)) : s = Ue(e));
|
|
5200
5200
|
const i = a7(c, r, n) ? Ua(c) : E1(0);
|
|
5201
5201
|
let l = (o.left + i.x) / s.x, u = (o.top + i.y) / s.y, d = o.width / s.x, p = o.height / s.y;
|
|
5202
5202
|
if (c) {
|
|
5203
5203
|
const g = h1(c), x = n && G1(n) ? h1(n) : n;
|
|
5204
|
-
let C = g, m =
|
|
5204
|
+
let C = g, m = dn(C);
|
|
5205
5205
|
for (; m && n && x !== C; ) {
|
|
5206
|
-
const f = Ue(m), O = m.getBoundingClientRect(), v = B1(m),
|
|
5207
|
-
l *= f.x, u *= f.y, d *= f.x, p *= f.y, l +=
|
|
5206
|
+
const f = Ue(m), O = m.getBoundingClientRect(), v = B1(m), b = O.left + (m.clientLeft + parseFloat(v.paddingLeft)) * f.x, V = O.top + (m.clientTop + parseFloat(v.paddingTop)) * f.y;
|
|
5207
|
+
l *= f.x, u *= f.y, d *= f.x, p *= f.y, l += b, u += V, C = h1(m), m = dn(C);
|
|
5208
5208
|
}
|
|
5209
5209
|
}
|
|
5210
5210
|
return _t({
|
|
@@ -5266,20 +5266,20 @@ function s7(e) {
|
|
|
5266
5266
|
y: i
|
|
5267
5267
|
};
|
|
5268
5268
|
}
|
|
5269
|
-
const
|
|
5269
|
+
const b5 = 25;
|
|
5270
5270
|
function i7(e, t) {
|
|
5271
5271
|
const r = h1(e), n = _1(e), o = r.visualViewport;
|
|
5272
5272
|
let c = n.clientWidth, s = n.clientHeight, i = 0, l = 0;
|
|
5273
5273
|
if (o) {
|
|
5274
5274
|
c = o.width, s = o.height;
|
|
5275
|
-
const d =
|
|
5275
|
+
const d = Qn();
|
|
5276
5276
|
(!d || d && t === "fixed") && (i = o.offsetLeft, l = o.offsetTop);
|
|
5277
5277
|
}
|
|
5278
5278
|
const u = jr(n);
|
|
5279
5279
|
if (u <= 0) {
|
|
5280
5280
|
const d = n.ownerDocument, p = d.body, g = getComputedStyle(p), x = d.compatMode === "CSS1Compat" && parseFloat(g.marginLeft) + parseFloat(g.marginRight) || 0, C = Math.abs(n.clientWidth - p.clientWidth - x);
|
|
5281
|
-
C <=
|
|
5282
|
-
} else u <=
|
|
5281
|
+
C <= b5 && (c -= C);
|
|
5282
|
+
} else u <= b5 && (c += u);
|
|
5283
5283
|
return {
|
|
5284
5284
|
width: c,
|
|
5285
5285
|
height: s,
|
|
@@ -5296,7 +5296,7 @@ function A7(e, t) {
|
|
|
5296
5296
|
y: u
|
|
5297
5297
|
};
|
|
5298
5298
|
}
|
|
5299
|
-
function
|
|
5299
|
+
function P5(e, t, r) {
|
|
5300
5300
|
let n;
|
|
5301
5301
|
if (t === "viewport")
|
|
5302
5302
|
n = i7(e, r);
|
|
@@ -5327,7 +5327,7 @@ function l7(e, t) {
|
|
|
5327
5327
|
const c = B1(e).position === "fixed";
|
|
5328
5328
|
let s = c ? ue(e) : e;
|
|
5329
5329
|
for (; G1(s) && !We(s); ) {
|
|
5330
|
-
const i = B1(s), l =
|
|
5330
|
+
const i = B1(s), l = Jn(s);
|
|
5331
5331
|
!l && i.position === "fixed" && (o = null), (c ? !l && !o : !l && i.position === "static" && !!o && (o.position === "absolute" || o.position === "fixed") || vt(s) && !l && Ta(e, s)) ? n = n.filter((d) => d !== s) : o = i, s = ue(s);
|
|
5332
5332
|
}
|
|
5333
5333
|
return t.set(e, n), n;
|
|
@@ -5339,10 +5339,10 @@ function u7(e) {
|
|
|
5339
5339
|
rootBoundary: n,
|
|
5340
5340
|
strategy: o
|
|
5341
5341
|
} = e;
|
|
5342
|
-
const s = [...r === "clippingAncestors" ? Cr(t) ? [] : l7(t, this._c) : [].concat(r), n], i =
|
|
5342
|
+
const s = [...r === "clippingAncestors" ? Cr(t) ? [] : l7(t, this._c) : [].concat(r), n], i = P5(t, s[0], o);
|
|
5343
5343
|
let l = i.top, u = i.right, d = i.bottom, p = i.left;
|
|
5344
5344
|
for (let g = 1; g < s.length; g++) {
|
|
5345
|
-
const x =
|
|
5345
|
+
const x = P5(t, s[g], o);
|
|
5346
5346
|
l = N1(x.top, l), u = le(x.right, u), d = le(x.bottom, d), p = N1(x.left, p);
|
|
5347
5347
|
}
|
|
5348
5348
|
return {
|
|
@@ -5389,7 +5389,7 @@ function p7(e, t, r) {
|
|
|
5389
5389
|
function Br(e) {
|
|
5390
5390
|
return B1(e).position === "static";
|
|
5391
5391
|
}
|
|
5392
|
-
function
|
|
5392
|
+
function z5(e, t) {
|
|
5393
5393
|
if (!ne(e) || B1(e).position === "fixed")
|
|
5394
5394
|
return null;
|
|
5395
5395
|
if (t)
|
|
@@ -5410,10 +5410,10 @@ function Wa(e, t) {
|
|
|
5410
5410
|
}
|
|
5411
5411
|
return r;
|
|
5412
5412
|
}
|
|
5413
|
-
let n =
|
|
5413
|
+
let n = z5(e, t);
|
|
5414
5414
|
for (; n && $9(n) && Br(n); )
|
|
5415
|
-
n =
|
|
5416
|
-
return n && We(n) && Br(n) && !
|
|
5415
|
+
n = z5(n, t);
|
|
5416
|
+
return n && We(n) && Br(n) && !Jn(n) ? r : n || r7(e) || r;
|
|
5417
5417
|
}
|
|
5418
5418
|
const g7 = async function(e) {
|
|
5419
5419
|
const t = this.getOffsetParent || Wa, r = this.getDimensions, n = await r(e.floating);
|
|
@@ -5462,7 +5462,7 @@ function m7(e, t) {
|
|
|
5462
5462
|
} = u;
|
|
5463
5463
|
if (i || t(), !g || !x)
|
|
5464
5464
|
return;
|
|
5465
|
-
const C = Ut(p), m = Ut(o.clientWidth - (d + g)), f = Ut(o.clientHeight - (p + x)), O = Ut(d),
|
|
5465
|
+
const C = Ut(p), m = Ut(o.clientWidth - (d + g)), f = Ut(o.clientHeight - (p + x)), O = Ut(d), b = {
|
|
5466
5466
|
rootMargin: -C + "px " + -m + "px " + -f + "px " + -O + "px",
|
|
5467
5467
|
threshold: N1(0, le(1, l)) || 1
|
|
5468
5468
|
};
|
|
@@ -5480,18 +5480,18 @@ function m7(e, t) {
|
|
|
5480
5480
|
}
|
|
5481
5481
|
try {
|
|
5482
5482
|
r = new IntersectionObserver(z, {
|
|
5483
|
-
...
|
|
5483
|
+
...b,
|
|
5484
5484
|
// Handle <iframe>s
|
|
5485
5485
|
root: o.ownerDocument
|
|
5486
5486
|
});
|
|
5487
5487
|
} catch {
|
|
5488
|
-
r = new IntersectionObserver(z,
|
|
5488
|
+
r = new IntersectionObserver(z, b);
|
|
5489
5489
|
}
|
|
5490
5490
|
r.observe(e);
|
|
5491
5491
|
}
|
|
5492
5492
|
return s(!0), c;
|
|
5493
5493
|
}
|
|
5494
|
-
function
|
|
5494
|
+
function _n(e, t, r, n) {
|
|
5495
5495
|
n === void 0 && (n = {});
|
|
5496
5496
|
const {
|
|
5497
5497
|
ancestorScroll: o = !0,
|
|
@@ -5499,7 +5499,7 @@ function En(e, t, r, n) {
|
|
|
5499
5499
|
elementResize: s = typeof ResizeObserver == "function",
|
|
5500
5500
|
layoutShift: i = typeof IntersectionObserver == "function",
|
|
5501
5501
|
animationFrame: l = !1
|
|
5502
|
-
} = n, u =
|
|
5502
|
+
} = n, u = En(e), d = o || c ? [...u ? ut(u) : [], ...t ? ut(t) : []] : [];
|
|
5503
5503
|
d.forEach((O) => {
|
|
5504
5504
|
o && O.addEventListener("scroll", r, {
|
|
5505
5505
|
passive: !0
|
|
@@ -5510,8 +5510,8 @@ function En(e, t, r, n) {
|
|
|
5510
5510
|
s && (x = new ResizeObserver((O) => {
|
|
5511
5511
|
let [v] = O;
|
|
5512
5512
|
v && v.target === u && x && t && (x.unobserve(t), cancelAnimationFrame(g), g = requestAnimationFrame(() => {
|
|
5513
|
-
var
|
|
5514
|
-
(
|
|
5513
|
+
var b;
|
|
5514
|
+
(b = x) == null || b.observe(t);
|
|
5515
5515
|
})), r();
|
|
5516
5516
|
}), u && !l && x.observe(u), t && x.observe(t));
|
|
5517
5517
|
let C, m = l ? Ve(e) : null;
|
|
@@ -5527,7 +5527,7 @@ function En(e, t, r, n) {
|
|
|
5527
5527
|
}), p == null || p(), (O = x) == null || O.disconnect(), x = null, l && cancelAnimationFrame(C);
|
|
5528
5528
|
};
|
|
5529
5529
|
}
|
|
5530
|
-
const j7 = J9, f7 = Q9, y7 = Z9, O7 = _9, V7 = Y9,
|
|
5530
|
+
const j7 = J9, f7 = Q9, y7 = Z9, O7 = _9, V7 = Y9, H5 = X9, v7 = E9, b7 = (e, t, r) => {
|
|
5531
5531
|
const n = /* @__PURE__ */ new Map(), o = {
|
|
5532
5532
|
platform: C7,
|
|
5533
5533
|
...r
|
|
@@ -5575,7 +5575,7 @@ function $t(e, t) {
|
|
|
5575
5575
|
function Fa(e) {
|
|
5576
5576
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
5577
5577
|
}
|
|
5578
|
-
function
|
|
5578
|
+
function k5(e, t) {
|
|
5579
5579
|
const r = Fa(e);
|
|
5580
5580
|
return Math.round(t * r) / r;
|
|
5581
5581
|
}
|
|
@@ -5585,7 +5585,7 @@ function Xr(e) {
|
|
|
5585
5585
|
t.current = e;
|
|
5586
5586
|
}), t;
|
|
5587
5587
|
}
|
|
5588
|
-
function
|
|
5588
|
+
function $n(e) {
|
|
5589
5589
|
e === void 0 && (e = {});
|
|
5590
5590
|
const {
|
|
5591
5591
|
placement: t = "bottom",
|
|
@@ -5610,9 +5610,9 @@ function _n(e) {
|
|
|
5610
5610
|
$t(g, n) || x(n);
|
|
5611
5611
|
const [C, m] = A.useState(null), [f, O] = A.useState(null), v = A.useCallback((H) => {
|
|
5612
5612
|
H !== k.current && (k.current = H, m(H));
|
|
5613
|
-
}, []),
|
|
5613
|
+
}, []), b = A.useCallback((H) => {
|
|
5614
5614
|
H !== I.current && (I.current = H, O(H));
|
|
5615
|
-
}, []), V = c || C, z = s || f, k = A.useRef(null), I = A.useRef(null), S = A.useRef(d),
|
|
5615
|
+
}, []), V = c || C, z = s || f, k = A.useRef(null), I = A.useRef(null), S = A.useRef(d), W = l != null, N = Xr(l), h = Xr(o), G = Xr(u), R = A.useCallback(() => {
|
|
5616
5616
|
if (!k.current || !I.current)
|
|
5617
5617
|
return;
|
|
5618
5618
|
const H = {
|
|
@@ -5620,9 +5620,9 @@ function _n(e) {
|
|
|
5620
5620
|
strategy: r,
|
|
5621
5621
|
middleware: g
|
|
5622
5622
|
};
|
|
5623
|
-
|
|
5623
|
+
h.current && (H.platform = h.current), b7(k.current, I.current, H).then((P) => {
|
|
5624
5624
|
const K = {
|
|
5625
|
-
...
|
|
5625
|
+
...P,
|
|
5626
5626
|
// The floating element's position may be recomputed while it's closed
|
|
5627
5627
|
// but still mounted (such as when transitioning out). To ensure
|
|
5628
5628
|
// `isPositioned` will be `false` initially on the next open, avoid
|
|
@@ -5633,7 +5633,7 @@ function _n(e) {
|
|
|
5633
5633
|
p(K);
|
|
5634
5634
|
}));
|
|
5635
5635
|
});
|
|
5636
|
-
}, [g, t, r,
|
|
5636
|
+
}, [g, t, r, h, G]);
|
|
5637
5637
|
Bt(() => {
|
|
5638
5638
|
u === !1 && S.current.isPositioned && (S.current.isPositioned = !1, p((H) => ({
|
|
5639
5639
|
...H,
|
|
@@ -5649,13 +5649,13 @@ function _n(e) {
|
|
|
5649
5649
|
return N.current(V, z, R);
|
|
5650
5650
|
R();
|
|
5651
5651
|
}
|
|
5652
|
-
}, [V, z, R, N,
|
|
5652
|
+
}, [V, z, R, N, W]);
|
|
5653
5653
|
const e1 = A.useMemo(() => ({
|
|
5654
5654
|
reference: k,
|
|
5655
5655
|
floating: I,
|
|
5656
5656
|
setReference: v,
|
|
5657
|
-
setFloating:
|
|
5658
|
-
}), [v,
|
|
5657
|
+
setFloating: b
|
|
5658
|
+
}), [v, b]), B = A.useMemo(() => ({
|
|
5659
5659
|
reference: V,
|
|
5660
5660
|
floating: z
|
|
5661
5661
|
}), [V, z]), Z = A.useMemo(() => {
|
|
@@ -5666,16 +5666,16 @@ function _n(e) {
|
|
|
5666
5666
|
};
|
|
5667
5667
|
if (!B.floating)
|
|
5668
5668
|
return H;
|
|
5669
|
-
const
|
|
5669
|
+
const P = k5(B.floating, d.x), K = k5(B.floating, d.y);
|
|
5670
5670
|
return i ? {
|
|
5671
5671
|
...H,
|
|
5672
|
-
transform: "translate(" +
|
|
5672
|
+
transform: "translate(" + P + "px, " + K + "px)",
|
|
5673
5673
|
...Fa(B.floating) >= 1.5 && {
|
|
5674
5674
|
willChange: "transform"
|
|
5675
5675
|
}
|
|
5676
5676
|
} : {
|
|
5677
5677
|
position: r,
|
|
5678
|
-
left:
|
|
5678
|
+
left: P,
|
|
5679
5679
|
top: K
|
|
5680
5680
|
};
|
|
5681
5681
|
}, [r, i, B.floating, d.x, d.y]);
|
|
@@ -5699,54 +5699,54 @@ const H7 = (e) => {
|
|
|
5699
5699
|
element: n,
|
|
5700
5700
|
padding: o
|
|
5701
5701
|
} = typeof e == "function" ? e(r) : e;
|
|
5702
|
-
return n && t(n) ? n.current != null ?
|
|
5702
|
+
return n && t(n) ? n.current != null ? H5({
|
|
5703
5703
|
element: n.current,
|
|
5704
5704
|
padding: o
|
|
5705
|
-
}).fn(r) : {} : n ?
|
|
5705
|
+
}).fn(r) : {} : n ? H5({
|
|
5706
5706
|
element: n,
|
|
5707
5707
|
padding: o
|
|
5708
5708
|
}).fn(r) : {};
|
|
5709
5709
|
}
|
|
5710
5710
|
};
|
|
5711
|
-
},
|
|
5711
|
+
}, e2 = (e, t) => {
|
|
5712
5712
|
const r = j7(e);
|
|
5713
5713
|
return {
|
|
5714
5714
|
name: r.name,
|
|
5715
5715
|
fn: r.fn,
|
|
5716
5716
|
options: [e, t]
|
|
5717
5717
|
};
|
|
5718
|
-
},
|
|
5718
|
+
}, t2 = (e, t) => {
|
|
5719
5719
|
const r = f7(e);
|
|
5720
5720
|
return {
|
|
5721
5721
|
name: r.name,
|
|
5722
5722
|
fn: r.fn,
|
|
5723
5723
|
options: [e, t]
|
|
5724
5724
|
};
|
|
5725
|
-
},
|
|
5725
|
+
}, r2 = (e, t) => ({
|
|
5726
5726
|
fn: v7(e).fn,
|
|
5727
5727
|
options: [e, t]
|
|
5728
|
-
}),
|
|
5728
|
+
}), n2 = (e, t) => {
|
|
5729
5729
|
const r = y7(e);
|
|
5730
5730
|
return {
|
|
5731
5731
|
name: r.name,
|
|
5732
5732
|
fn: r.fn,
|
|
5733
5733
|
options: [e, t]
|
|
5734
5734
|
};
|
|
5735
|
-
},
|
|
5735
|
+
}, a2 = (e, t) => {
|
|
5736
5736
|
const r = O7(e);
|
|
5737
5737
|
return {
|
|
5738
5738
|
name: r.name,
|
|
5739
5739
|
fn: r.fn,
|
|
5740
5740
|
options: [e, t]
|
|
5741
5741
|
};
|
|
5742
|
-
},
|
|
5742
|
+
}, o2 = (e, t) => {
|
|
5743
5743
|
const r = V7(e);
|
|
5744
5744
|
return {
|
|
5745
5745
|
name: r.name,
|
|
5746
5746
|
fn: r.fn,
|
|
5747
5747
|
options: [e, t]
|
|
5748
5748
|
};
|
|
5749
|
-
},
|
|
5749
|
+
}, c2 = (e, t) => {
|
|
5750
5750
|
const r = H7(e);
|
|
5751
5751
|
return {
|
|
5752
5752
|
name: r.name,
|
|
@@ -5793,7 +5793,7 @@ function M7(e) {
|
|
|
5793
5793
|
r(void 0);
|
|
5794
5794
|
}, [e]), t;
|
|
5795
5795
|
}
|
|
5796
|
-
var
|
|
5796
|
+
var s2 = "Popper", [Ga, Ba] = ze(s2), [K7, Xa] = Ga(s2), Za = (e) => {
|
|
5797
5797
|
const { __scopePopper: t, children: r } = e, [n, o] = A.useState(null), [c, s] = A.useState(void 0);
|
|
5798
5798
|
return /* @__PURE__ */ a.jsx(
|
|
5799
5799
|
K7,
|
|
@@ -5807,7 +5807,7 @@ var c2 = "Popper", [Ga, Ba] = ze(c2), [K7, Xa] = Ga(c2), Za = (e) => {
|
|
|
5807
5807
|
}
|
|
5808
5808
|
);
|
|
5809
5809
|
};
|
|
5810
|
-
Za.displayName =
|
|
5810
|
+
Za.displayName = s2;
|
|
5811
5811
|
var Ya = "PopperAnchor", La = A.forwardRef(
|
|
5812
5812
|
(e, t) => {
|
|
5813
5813
|
const { __scopePopper: r, virtualRef: n, ...o } = e, c = Xa(Ya, r), s = A.useRef(null), i = c.onAnchorChange, l = A.useCallback(
|
|
@@ -5822,7 +5822,7 @@ var Ya = "PopperAnchor", La = A.forwardRef(
|
|
|
5822
5822
|
const C = d.current;
|
|
5823
5823
|
d.current = n.current, C !== d.current && i(d.current);
|
|
5824
5824
|
});
|
|
5825
|
-
const p = c.placementState &&
|
|
5825
|
+
const p = c.placementState && A2(c.placementState), g = p == null ? void 0 : p[0], x = p == null ? void 0 : p[1];
|
|
5826
5826
|
return n ? null : /* @__PURE__ */ a.jsx(
|
|
5827
5827
|
p1.div,
|
|
5828
5828
|
{
|
|
@@ -5835,7 +5835,7 @@ var Ya = "PopperAnchor", La = A.forwardRef(
|
|
|
5835
5835
|
}
|
|
5836
5836
|
);
|
|
5837
5837
|
La.displayName = Ya;
|
|
5838
|
-
var
|
|
5838
|
+
var i2 = "PopperContent", [N7, h7] = Ga(i2), Ja = A.forwardRef(
|
|
5839
5839
|
(e, t) => {
|
|
5840
5840
|
var L, $, s1, v1, V1, A1;
|
|
5841
5841
|
const {
|
|
@@ -5853,40 +5853,40 @@ var s2 = "PopperContent", [N7, h7] = Ga(s2), Ja = A.forwardRef(
|
|
|
5853
5853
|
updatePositionStrategy: x = "optimized",
|
|
5854
5854
|
onPlaced: C,
|
|
5855
5855
|
...m
|
|
5856
|
-
} = e, f = Xa(
|
|
5856
|
+
} = e, f = Xa(i2, r), [O, v] = A.useState(null), b = O1(t, v), [V, z] = A.useState(null), k = M7(V), I = (k == null ? void 0 : k.width) ?? 0, S = (k == null ? void 0 : k.height) ?? 0, W = n + (c !== "center" ? "-" + c : ""), N = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, h = Array.isArray(u) ? u : [u], G = h.length > 0, R = {
|
|
5857
5857
|
padding: N,
|
|
5858
|
-
boundary:
|
|
5858
|
+
boundary: h.filter(q7),
|
|
5859
5859
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
5860
5860
|
altBoundary: G
|
|
5861
|
-
}, { refs: D, floatingStyles: e1, placement: B, isPositioned: Z, middlewareData: H } =
|
|
5861
|
+
}, { refs: D, floatingStyles: e1, placement: B, isPositioned: Z, middlewareData: H } = $n({
|
|
5862
5862
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
5863
5863
|
strategy: "fixed",
|
|
5864
|
-
placement:
|
|
5865
|
-
whileElementsMounted: (...J) =>
|
|
5864
|
+
placement: W,
|
|
5865
|
+
whileElementsMounted: (...J) => _n(...J, {
|
|
5866
5866
|
animationFrame: x === "always"
|
|
5867
5867
|
}),
|
|
5868
5868
|
elements: {
|
|
5869
5869
|
reference: f.anchor
|
|
5870
5870
|
},
|
|
5871
5871
|
middleware: [
|
|
5872
|
-
|
|
5873
|
-
l &&
|
|
5872
|
+
e2({ mainAxis: o + S, alignmentAxis: s }),
|
|
5873
|
+
l && t2({
|
|
5874
5874
|
mainAxis: !0,
|
|
5875
5875
|
crossAxis: !1,
|
|
5876
|
-
limiter: p === "partial" ?
|
|
5876
|
+
limiter: p === "partial" ? r2() : void 0,
|
|
5877
5877
|
...R
|
|
5878
5878
|
}),
|
|
5879
|
-
l &&
|
|
5880
|
-
|
|
5879
|
+
l && n2({ ...R }),
|
|
5880
|
+
a2({
|
|
5881
5881
|
...R,
|
|
5882
5882
|
apply: ({ elements: J, rects: u1, availableWidth: _, availableHeight: j1 }) => {
|
|
5883
5883
|
const { width: f1, height: l1 } = u1.reference, S1 = J.floating.style;
|
|
5884
5884
|
S1.setProperty("--radix-popper-available-width", `${_}px`), S1.setProperty("--radix-popper-available-height", `${j1}px`), S1.setProperty("--radix-popper-anchor-width", `${f1}px`), S1.setProperty("--radix-popper-anchor-height", `${l1}px`);
|
|
5885
5885
|
}
|
|
5886
5886
|
}),
|
|
5887
|
-
V &&
|
|
5887
|
+
V && c2({ element: V, padding: i }),
|
|
5888
5888
|
U7({ arrowWidth: I, arrowHeight: S }),
|
|
5889
|
-
g &&
|
|
5889
|
+
g && o2({
|
|
5890
5890
|
strategy: "referenceHidden",
|
|
5891
5891
|
...R,
|
|
5892
5892
|
// `hide` detects whether the anchor (reference) is clipped, so when
|
|
@@ -5899,11 +5899,11 @@ var s2 = "PopperContent", [N7, h7] = Ga(s2), Ja = A.forwardRef(
|
|
|
5899
5899
|
boundary: G ? R.boundary : void 0
|
|
5900
5900
|
})
|
|
5901
5901
|
]
|
|
5902
|
-
}),
|
|
5903
|
-
Q1(() => (
|
|
5904
|
-
|
|
5905
|
-
}), [B,
|
|
5906
|
-
const [K, U] =
|
|
5902
|
+
}), P = f.setPlacementState;
|
|
5903
|
+
Q1(() => (P(B), () => {
|
|
5904
|
+
P(void 0);
|
|
5905
|
+
}), [B, P]);
|
|
5906
|
+
const [K, U] = A2(B), F = ee(C);
|
|
5907
5907
|
Q1(() => {
|
|
5908
5908
|
Z && (F == null || F());
|
|
5909
5909
|
}, [Z, F]);
|
|
@@ -5950,7 +5950,7 @@ var s2 = "PopperContent", [N7, h7] = Ga(s2), Ja = A.forwardRef(
|
|
|
5950
5950
|
"data-side": K,
|
|
5951
5951
|
"data-align": U,
|
|
5952
5952
|
...m,
|
|
5953
|
-
ref:
|
|
5953
|
+
ref: b,
|
|
5954
5954
|
style: {
|
|
5955
5955
|
...m.style,
|
|
5956
5956
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
@@ -5965,7 +5965,7 @@ var s2 = "PopperContent", [N7, h7] = Ga(s2), Ja = A.forwardRef(
|
|
|
5965
5965
|
);
|
|
5966
5966
|
}
|
|
5967
5967
|
);
|
|
5968
|
-
Ja.displayName =
|
|
5968
|
+
Ja.displayName = i2;
|
|
5969
5969
|
var Qa = "PopperArrow", S7 = {
|
|
5970
5970
|
top: "bottom",
|
|
5971
5971
|
right: "left",
|
|
@@ -6025,23 +6025,23 @@ var U7 = (e) => ({
|
|
|
6025
6025
|
options: e,
|
|
6026
6026
|
fn(t) {
|
|
6027
6027
|
var f, O, v;
|
|
6028
|
-
const { placement: r, rects: n, middlewareData: o } = t, s = ((f = o.arrow) == null ? void 0 : f.centerOffset) !== 0, i = s ? 0 : e.arrowWidth, l = s ? 0 : e.arrowHeight, [u, d] =
|
|
6028
|
+
const { placement: r, rects: n, middlewareData: o } = t, s = ((f = o.arrow) == null ? void 0 : f.centerOffset) !== 0, i = s ? 0 : e.arrowWidth, l = s ? 0 : e.arrowHeight, [u, d] = A2(r), p = { start: "0%", center: "50%", end: "100%" }[d], g = (((O = o.arrow) == null ? void 0 : O.x) ?? 0) + i / 2, x = (((v = o.arrow) == null ? void 0 : v.y) ?? 0) + l / 2;
|
|
6029
6029
|
let C = "", m = "";
|
|
6030
6030
|
return u === "bottom" ? (C = s ? p : `${g}px`, m = `${-l}px`) : u === "top" ? (C = s ? p : `${g}px`, m = `${n.floating.height + l}px`) : u === "right" ? (C = `${-l}px`, m = s ? p : `${x}px`) : u === "left" && (C = `${n.floating.width + l}px`, m = s ? p : `${x}px`), { data: { x: C, y: m } };
|
|
6031
6031
|
}
|
|
6032
6032
|
});
|
|
6033
|
-
function
|
|
6033
|
+
function A2(e) {
|
|
6034
6034
|
const [t, r = "center"] = e.split("-");
|
|
6035
6035
|
return [t, r];
|
|
6036
6036
|
}
|
|
6037
|
-
var w7 = Za, T7 = La, W7 = Ja, R7 = Ea, F7 = "Portal",
|
|
6037
|
+
var w7 = Za, T7 = La, W7 = Ja, R7 = Ea, F7 = "Portal", l2 = A.forwardRef((e, t) => {
|
|
6038
6038
|
var i;
|
|
6039
6039
|
const { container: r, ...n } = e, [o, c] = A.useState(!1);
|
|
6040
6040
|
Q1(() => c(!0), []);
|
|
6041
6041
|
const s = r || o && ((i = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : i.body);
|
|
6042
6042
|
return s ? ft.createPortal(/* @__PURE__ */ a.jsx(p1.div, { ...n, ref: t }), s) : null;
|
|
6043
6043
|
});
|
|
6044
|
-
|
|
6044
|
+
l2.displayName = F7;
|
|
6045
6045
|
function D7(e, t) {
|
|
6046
6046
|
return A.useReducer((r, n) => t[r][n] ?? r, e);
|
|
6047
6047
|
}
|
|
@@ -6103,7 +6103,7 @@ function G7(e) {
|
|
|
6103
6103
|
}, [])
|
|
6104
6104
|
};
|
|
6105
6105
|
}
|
|
6106
|
-
function
|
|
6106
|
+
function I5(e, t) {
|
|
6107
6107
|
if (typeof e == "function")
|
|
6108
6108
|
return e(t);
|
|
6109
6109
|
e != null && (e.current = t);
|
|
@@ -6114,14 +6114,14 @@ function B7(...e) {
|
|
|
6114
6114
|
const n = t.current;
|
|
6115
6115
|
let o = !1;
|
|
6116
6116
|
const c = n.map((s) => {
|
|
6117
|
-
const i =
|
|
6117
|
+
const i = I5(s, r);
|
|
6118
6118
|
return !o && typeof i == "function" && (o = !0), i;
|
|
6119
6119
|
});
|
|
6120
6120
|
if (o)
|
|
6121
6121
|
return () => {
|
|
6122
6122
|
for (let s = 0; s < c.length; s++) {
|
|
6123
6123
|
const i = c[s];
|
|
6124
|
-
typeof i == "function" ? i() :
|
|
6124
|
+
typeof i == "function" ? i() : I5(n[s], null);
|
|
6125
6125
|
}
|
|
6126
6126
|
};
|
|
6127
6127
|
}, []);
|
|
@@ -6153,11 +6153,11 @@ function L7() {
|
|
|
6153
6153
|
() => !1
|
|
6154
6154
|
);
|
|
6155
6155
|
}
|
|
6156
|
-
var J7 = typeof _a == "function" ? L7 : Z7, Yr = "rovingFocusGroup.onEntryFocus", Q7 = { bubbles: !1, cancelable: !0 }, bt = "RovingFocusGroup", [
|
|
6156
|
+
var J7 = typeof _a == "function" ? L7 : Z7, Yr = "rovingFocusGroup.onEntryFocus", Q7 = { bubbles: !1, cancelable: !0 }, bt = "RovingFocusGroup", [pn, $a, E7] = Ha(bt), [_7, fr] = ze(
|
|
6157
6157
|
bt,
|
|
6158
6158
|
[E7]
|
|
6159
6159
|
), [$7, e6] = _7(bt), e4 = A.forwardRef(
|
|
6160
|
-
(e, t) => /* @__PURE__ */ a.jsx(
|
|
6160
|
+
(e, t) => /* @__PURE__ */ a.jsx(pn.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ a.jsx(pn.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ a.jsx(t6, { ...e, ref: t }) }) })
|
|
6161
6161
|
);
|
|
6162
6162
|
e4.displayName = bt;
|
|
6163
6163
|
var t6 = A.forwardRef((e, t) => {
|
|
@@ -6172,17 +6172,17 @@ var t6 = A.forwardRef((e, t) => {
|
|
|
6172
6172
|
onEntryFocus: u,
|
|
6173
6173
|
preventScrollOnEntryFocus: d = !1,
|
|
6174
6174
|
...p
|
|
6175
|
-
} = e, g = A.useRef(null), x = O1(t, g), C =
|
|
6175
|
+
} = e, g = A.useRef(null), x = O1(t, g), C = Dn(c), [m, f] = gr({
|
|
6176
6176
|
prop: s,
|
|
6177
6177
|
defaultProp: i ?? null,
|
|
6178
6178
|
onChange: l,
|
|
6179
6179
|
caller: bt
|
|
6180
|
-
}), [O, v] = A.useState(!1),
|
|
6180
|
+
}), [O, v] = A.useState(!1), b = ee(u), V = $a(r), z = A.useRef(!1), [k, I] = A.useState(0);
|
|
6181
6181
|
return A.useEffect(() => {
|
|
6182
6182
|
const S = g.current;
|
|
6183
6183
|
if (S)
|
|
6184
|
-
return S.addEventListener(Yr,
|
|
6185
|
-
}, [
|
|
6184
|
+
return S.addEventListener(Yr, b), () => S.removeEventListener(Yr, b);
|
|
6185
|
+
}, [b]), /* @__PURE__ */ a.jsx(
|
|
6186
6186
|
$7,
|
|
6187
6187
|
{
|
|
6188
6188
|
scope: r,
|
|
@@ -6215,11 +6215,11 @@ var t6 = A.forwardRef((e, t) => {
|
|
|
6215
6215
|
z.current = !0;
|
|
6216
6216
|
}),
|
|
6217
6217
|
onFocus: Q(e.onFocus, (S) => {
|
|
6218
|
-
const
|
|
6219
|
-
if (S.target === S.currentTarget &&
|
|
6218
|
+
const W = !z.current;
|
|
6219
|
+
if (S.target === S.currentTarget && W && !O) {
|
|
6220
6220
|
const N = new CustomEvent(Yr, Q7);
|
|
6221
6221
|
if (S.currentTarget.dispatchEvent(N), !N.defaultPrevented) {
|
|
6222
|
-
const
|
|
6222
|
+
const h = V().filter((B) => B.focusable), G = h.find((B) => B.active), R = h.find((B) => B.id === m), e1 = [G, R, ...h].filter(
|
|
6223
6223
|
Boolean
|
|
6224
6224
|
).map((B) => B.ref.current);
|
|
6225
6225
|
n4(e1, d);
|
|
@@ -6249,7 +6249,7 @@ var t6 = A.forwardRef((e, t) => {
|
|
|
6249
6249
|
if (!(f || !n))
|
|
6250
6250
|
return x(), () => C();
|
|
6251
6251
|
}, [f, n, x, C]), /* @__PURE__ */ a.jsx(
|
|
6252
|
-
|
|
6252
|
+
pn.ItemSlot,
|
|
6253
6253
|
{
|
|
6254
6254
|
scope: r,
|
|
6255
6255
|
id: u,
|
|
@@ -6362,7 +6362,7 @@ var a4 = e4, o4 = r4, c6 = function(e) {
|
|
|
6362
6362
|
he.set(p, g), c.set(p, x), g || (wt.has(p) || p.removeAttribute(n), wt.delete(p)), x || p.removeAttribute(r);
|
|
6363
6363
|
}), Lr--, Lr || (he = /* @__PURE__ */ new WeakMap(), he = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ new WeakMap(), Tt = {});
|
|
6364
6364
|
};
|
|
6365
|
-
},
|
|
6365
|
+
}, u2 = function(e, t, r) {
|
|
6366
6366
|
r === void 0 && (r = "data-aria-hidden");
|
|
6367
6367
|
var n = Array.from(Array.isArray(e) ? e : [e]), o = c6(e);
|
|
6368
6368
|
return o ? (n.push.apply(n, Array.from(o.querySelectorAll("[aria-live], script"))), i6(n, o, r, "aria-hidden")) : function() {
|
|
@@ -6415,7 +6415,7 @@ function d6(e, t) {
|
|
|
6415
6415
|
})[0];
|
|
6416
6416
|
return r.callback = t, r.facade;
|
|
6417
6417
|
}
|
|
6418
|
-
var p6 = typeof window < "u" ? A.useLayoutEffect : A.useEffect,
|
|
6418
|
+
var p6 = typeof window < "u" ? A.useLayoutEffect : A.useEffect, M5 = /* @__PURE__ */ new WeakMap();
|
|
6419
6419
|
function g6(e, t) {
|
|
6420
6420
|
var r = d6(null, function(n) {
|
|
6421
6421
|
return e.forEach(function(o) {
|
|
@@ -6423,7 +6423,7 @@ function g6(e, t) {
|
|
|
6423
6423
|
});
|
|
6424
6424
|
});
|
|
6425
6425
|
return p6(function() {
|
|
6426
|
-
var n =
|
|
6426
|
+
var n = M5.get(r);
|
|
6427
6427
|
if (n) {
|
|
6428
6428
|
var o = new Set(n), c = new Set(e), s = r.current;
|
|
6429
6429
|
o.forEach(function(i) {
|
|
@@ -6432,7 +6432,7 @@ function g6(e, t) {
|
|
|
6432
6432
|
o.has(i) || Jr(i, s);
|
|
6433
6433
|
});
|
|
6434
6434
|
}
|
|
6435
|
-
|
|
6435
|
+
M5.set(r, e);
|
|
6436
6436
|
}, [e]), r;
|
|
6437
6437
|
}
|
|
6438
6438
|
function x6(e) {
|
|
@@ -6517,11 +6517,11 @@ var A4 = m6(), Qr = function() {
|
|
|
6517
6517
|
onScrollCapture: Qr,
|
|
6518
6518
|
onWheelCapture: Qr,
|
|
6519
6519
|
onTouchMoveCapture: Qr
|
|
6520
|
-
}), o = n[0], c = n[1], s = e.forwardProps, i = e.children, l = e.className, u = e.removeScrollBar, d = e.enabled, p = e.shards, g = e.sideCar, x = e.noRelative, C = e.noIsolation, m = e.inert, f = e.allowPinchZoom, O = e.as, v = O === void 0 ? "div" : O,
|
|
6520
|
+
}), o = n[0], c = n[1], s = e.forwardProps, i = e.children, l = e.className, u = e.removeScrollBar, d = e.enabled, p = e.shards, g = e.sideCar, x = e.noRelative, C = e.noIsolation, m = e.inert, f = e.allowPinchZoom, O = e.as, v = O === void 0 ? "div" : O, b = e.gapMode, V = s4(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), z = g, k = g6([r, t]), I = L1(L1({}, V), o);
|
|
6521
6521
|
return A.createElement(
|
|
6522
6522
|
A.Fragment,
|
|
6523
6523
|
null,
|
|
6524
|
-
d && A.createElement(z, { sideCar: A4, removeScrollBar: u, shards: p, noRelative: x, noIsolation: C, inert: m, setCallbacks: c, allowPinchZoom: !!f, lockRef: r, gapMode:
|
|
6524
|
+
d && A.createElement(z, { sideCar: A4, removeScrollBar: u, shards: p, noRelative: x, noIsolation: C, inert: m, setCallbacks: c, allowPinchZoom: !!f, lockRef: r, gapMode: b }),
|
|
6525
6525
|
s ? A.cloneElement(A.Children.only(i), L1(L1({}, I), { ref: k })) : A.createElement(v, L1({}, I, { className: l, ref: k }), i)
|
|
6526
6526
|
);
|
|
6527
6527
|
});
|
|
@@ -6642,13 +6642,13 @@ var v6 = function() {
|
|
|
6642
6642
|
`).concat(u6, ": ").concat(i, `px;
|
|
6643
6643
|
}
|
|
6644
6644
|
`);
|
|
6645
|
-
},
|
|
6645
|
+
}, K5 = function() {
|
|
6646
6646
|
var e = parseInt(document.body.getAttribute(we) || "0", 10);
|
|
6647
6647
|
return isFinite(e) ? e : 0;
|
|
6648
6648
|
}, M6 = function() {
|
|
6649
6649
|
A.useEffect(function() {
|
|
6650
|
-
return document.body.setAttribute(we, (
|
|
6651
|
-
var e =
|
|
6650
|
+
return document.body.setAttribute(we, (K5() + 1).toString()), function() {
|
|
6651
|
+
var e = K5() - 1;
|
|
6652
6652
|
e <= 0 ? document.body.removeAttribute(we) : document.body.setAttribute(we, e.toString());
|
|
6653
6653
|
};
|
|
6654
6654
|
}, []);
|
|
@@ -6659,19 +6659,19 @@ var v6 = function() {
|
|
|
6659
6659
|
return H6(o);
|
|
6660
6660
|
}, [o]);
|
|
6661
6661
|
return A.createElement(k6, { styles: I6(c, !t, o, r ? "" : "!important") });
|
|
6662
|
-
},
|
|
6662
|
+
}, gn = !1;
|
|
6663
6663
|
if (typeof window < "u")
|
|
6664
6664
|
try {
|
|
6665
6665
|
var Wt = Object.defineProperty({}, "passive", {
|
|
6666
6666
|
get: function() {
|
|
6667
|
-
return
|
|
6667
|
+
return gn = !0, !0;
|
|
6668
6668
|
}
|
|
6669
6669
|
});
|
|
6670
6670
|
window.addEventListener("test", Wt, Wt), window.removeEventListener("test", Wt, Wt);
|
|
6671
6671
|
} catch {
|
|
6672
|
-
|
|
6672
|
+
gn = !1;
|
|
6673
6673
|
}
|
|
6674
|
-
var Se =
|
|
6674
|
+
var Se = gn ? { passive: !1 } : !1, N6 = function(e) {
|
|
6675
6675
|
return e.tagName === "TEXTAREA";
|
|
6676
6676
|
}, u4 = function(e, t) {
|
|
6677
6677
|
if (!(e instanceof Element))
|
|
@@ -6686,7 +6686,7 @@ var Se = pn ? { passive: !1 } : !1, N6 = function(e) {
|
|
|
6686
6686
|
return u4(e, "overflowY");
|
|
6687
6687
|
}, S6 = function(e) {
|
|
6688
6688
|
return u4(e, "overflowX");
|
|
6689
|
-
},
|
|
6689
|
+
}, N5 = function(e, t) {
|
|
6690
6690
|
var r = t.ownerDocument, n = t;
|
|
6691
6691
|
do {
|
|
6692
6692
|
typeof ShadowRoot < "u" && n instanceof ShadowRoot && (n = n.host);
|
|
@@ -6736,9 +6736,9 @@ var Se = pn ? { passive: !1 } : !1, N6 = function(e) {
|
|
|
6736
6736
|
return (d && Math.abs(p) < 1 || !d && Math.abs(g) < 1) && (u = !0), u;
|
|
6737
6737
|
}, Rt = function(e) {
|
|
6738
6738
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
6739
|
-
}, N5 = function(e) {
|
|
6740
|
-
return [e.deltaX, e.deltaY];
|
|
6741
6739
|
}, h5 = function(e) {
|
|
6740
|
+
return [e.deltaX, e.deltaY];
|
|
6741
|
+
}, S5 = function(e) {
|
|
6742
6742
|
return e && "current" in e ? e.current : e;
|
|
6743
6743
|
}, W6 = function(e, t) {
|
|
6744
6744
|
return e[0] === t[0] && e[1] === t[1];
|
|
@@ -6755,7 +6755,7 @@ function D6(e) {
|
|
|
6755
6755
|
}, [e]), A.useEffect(function() {
|
|
6756
6756
|
if (e.inert) {
|
|
6757
6757
|
document.body.classList.add("block-interactivity-".concat(o));
|
|
6758
|
-
var m = A6([e.lockRef.current], (e.shards || []).map(
|
|
6758
|
+
var m = A6([e.lockRef.current], (e.shards || []).map(S5), !0).filter(Boolean);
|
|
6759
6759
|
return m.forEach(function(f) {
|
|
6760
6760
|
return f.classList.add("allow-interactivity-".concat(o));
|
|
6761
6761
|
}), function() {
|
|
@@ -6768,25 +6768,25 @@ function D6(e) {
|
|
|
6768
6768
|
var i = A.useCallback(function(m, f) {
|
|
6769
6769
|
if ("touches" in m && m.touches.length === 2 || m.type === "wheel" && m.ctrlKey)
|
|
6770
6770
|
return !s.current.allowPinchZoom;
|
|
6771
|
-
var O = Rt(m), v = r.current,
|
|
6771
|
+
var O = Rt(m), v = r.current, b = "deltaX" in m ? m.deltaX : v[0] - O[0], V = "deltaY" in m ? m.deltaY : v[1] - O[1], z, k = m.target, I = Math.abs(b) > Math.abs(V) ? "h" : "v";
|
|
6772
6772
|
if ("touches" in m && I === "h" && k.type === "range")
|
|
6773
6773
|
return !1;
|
|
6774
|
-
var S = window.getSelection(),
|
|
6774
|
+
var S = window.getSelection(), W = S && S.anchorNode, N = W ? W === k || W.contains(k) : !1;
|
|
6775
6775
|
if (N)
|
|
6776
6776
|
return !1;
|
|
6777
|
-
var
|
|
6778
|
-
if (!
|
|
6777
|
+
var h = N5(I, k);
|
|
6778
|
+
if (!h)
|
|
6779
6779
|
return !0;
|
|
6780
|
-
if (
|
|
6780
|
+
if (h ? z = I : (z = I === "v" ? "h" : "v", h = N5(I, k)), !h)
|
|
6781
6781
|
return !1;
|
|
6782
|
-
if (!n.current && "changedTouches" in m && (
|
|
6782
|
+
if (!n.current && "changedTouches" in m && (b || V) && (n.current = z), !z)
|
|
6783
6783
|
return !0;
|
|
6784
6784
|
var G = n.current || z;
|
|
6785
|
-
return T6(G, f, m, G === "h" ?
|
|
6785
|
+
return T6(G, f, m, G === "h" ? b : V);
|
|
6786
6786
|
}, []), l = A.useCallback(function(m) {
|
|
6787
6787
|
var f = m;
|
|
6788
6788
|
if (!(!qe.length || qe[qe.length - 1] !== c)) {
|
|
6789
|
-
var O = "deltaY" in f ?
|
|
6789
|
+
var O = "deltaY" in f ? h5(f) : Rt(f), v = t.current.filter(function(z) {
|
|
6790
6790
|
return z.name === f.type && (z.target === f.target || f.target === z.shadowParent) && W6(z.delta, O);
|
|
6791
6791
|
})[0];
|
|
6792
6792
|
if (v && v.should) {
|
|
@@ -6794,23 +6794,23 @@ function D6(e) {
|
|
|
6794
6794
|
return;
|
|
6795
6795
|
}
|
|
6796
6796
|
if (!v) {
|
|
6797
|
-
var
|
|
6797
|
+
var b = (s.current.shards || []).map(S5).filter(Boolean).filter(function(z) {
|
|
6798
6798
|
return z.contains(f.target);
|
|
6799
|
-
}), V =
|
|
6799
|
+
}), V = b.length > 0 ? i(f, b[0]) : !s.current.noIsolation;
|
|
6800
6800
|
V && f.cancelable && f.preventDefault();
|
|
6801
6801
|
}
|
|
6802
6802
|
}
|
|
6803
6803
|
}, []), u = A.useCallback(function(m, f, O, v) {
|
|
6804
|
-
var
|
|
6805
|
-
t.current.push(
|
|
6804
|
+
var b = { name: m, delta: f, target: O, should: v, shadowParent: G6(O) };
|
|
6805
|
+
t.current.push(b), setTimeout(function() {
|
|
6806
6806
|
t.current = t.current.filter(function(V) {
|
|
6807
|
-
return V !==
|
|
6807
|
+
return V !== b;
|
|
6808
6808
|
});
|
|
6809
6809
|
}, 1);
|
|
6810
6810
|
}, []), d = A.useCallback(function(m) {
|
|
6811
6811
|
r.current = Rt(m), n.current = void 0;
|
|
6812
6812
|
}, []), p = A.useCallback(function(m) {
|
|
6813
|
-
u(m.type,
|
|
6813
|
+
u(m.type, h5(m), m.target, i(m, e.lockRef.current));
|
|
6814
6814
|
}, []), g = A.useCallback(function(m) {
|
|
6815
6815
|
u(m.type, Rt(m), m.target, i(m, e.lockRef.current));
|
|
6816
6816
|
}, []);
|
|
@@ -6843,9 +6843,9 @@ var Or = A.forwardRef(function(e, t) {
|
|
|
6843
6843
|
return A.createElement(yr, L1({}, e, { ref: t, sideCar: B6 }));
|
|
6844
6844
|
});
|
|
6845
6845
|
Or.classNames = yr.classNames;
|
|
6846
|
-
var
|
|
6847
|
-
ltr: [...
|
|
6848
|
-
rtl: [...
|
|
6846
|
+
var xn = ["Enter", " "], X6 = ["ArrowDown", "PageUp", "Home"], g4 = ["ArrowUp", "PageDown", "End"], Z6 = [...X6, ...g4], Y6 = {
|
|
6847
|
+
ltr: [...xn, "ArrowRight"],
|
|
6848
|
+
rtl: [...xn, "ArrowLeft"]
|
|
6849
6849
|
}, L6 = {
|
|
6850
6850
|
ltr: ["ArrowLeft"],
|
|
6851
6851
|
rtl: ["ArrowRight"]
|
|
@@ -6854,7 +6854,7 @@ var gn = ["Enter", " "], X6 = ["ArrowDown", "PageUp", "Home"], g4 = ["ArrowUp",
|
|
|
6854
6854
|
Ba,
|
|
6855
6855
|
fr
|
|
6856
6856
|
]), Vr = Ba(), C4 = fr(), [E6, ke] = He(Pt), [_6, zt] = He(Pt), m4 = (e) => {
|
|
6857
|
-
const { __scopeMenu: t, open: r = !1, children: n, dir: o, onOpenChange: c, modal: s = !0 } = e, i = Vr(t), [l, u] = A.useState(null), d = A.useRef(!1), p = ee(c), g =
|
|
6857
|
+
const { __scopeMenu: t, open: r = !1, children: n, dir: o, onOpenChange: c, modal: s = !0 } = e, i = Vr(t), [l, u] = A.useState(null), d = A.useRef(!1), p = ee(c), g = Dn(o);
|
|
6858
6858
|
return A.useEffect(() => {
|
|
6859
6859
|
const x = () => {
|
|
6860
6860
|
d.current = !0, document.addEventListener("pointerdown", C, { capture: !0, once: !0 }), document.addEventListener("pointermove", C, { capture: !0, once: !0 });
|
|
@@ -6890,21 +6890,21 @@ var gn = ["Enter", " "], X6 = ["ArrowDown", "PageUp", "Home"], g4 = ["ArrowUp",
|
|
|
6890
6890
|
) });
|
|
6891
6891
|
};
|
|
6892
6892
|
m4.displayName = Pt;
|
|
6893
|
-
var $6 = "MenuAnchor",
|
|
6893
|
+
var $6 = "MenuAnchor", d2 = A.forwardRef(
|
|
6894
6894
|
(e, t) => {
|
|
6895
6895
|
const { __scopeMenu: r, ...n } = e, o = Vr(r);
|
|
6896
6896
|
return /* @__PURE__ */ a.jsx(T7, { ...o, ...n, ref: t });
|
|
6897
6897
|
}
|
|
6898
6898
|
);
|
|
6899
|
-
|
|
6900
|
-
var
|
|
6899
|
+
d2.displayName = $6;
|
|
6900
|
+
var p2 = "MenuPortal", [es, j4] = He(p2, {
|
|
6901
6901
|
forceMount: void 0
|
|
6902
6902
|
}), f4 = (e) => {
|
|
6903
|
-
const { __scopeMenu: t, forceMount: r, children: n, container: o } = e, c = ke(
|
|
6904
|
-
return /* @__PURE__ */ a.jsx(es, { scope: t, forceMount: r, children: /* @__PURE__ */ a.jsx(ae, { present: r || c.open, children: /* @__PURE__ */ a.jsx(
|
|
6903
|
+
const { __scopeMenu: t, forceMount: r, children: n, container: o } = e, c = ke(p2, t);
|
|
6904
|
+
return /* @__PURE__ */ a.jsx(es, { scope: t, forceMount: r, children: /* @__PURE__ */ a.jsx(ae, { present: r || c.open, children: /* @__PURE__ */ a.jsx(l2, { asChild: !0, container: o, children: n }) }) });
|
|
6905
6905
|
};
|
|
6906
|
-
f4.displayName =
|
|
6907
|
-
var w1 = "MenuContent", [ts,
|
|
6906
|
+
f4.displayName = p2;
|
|
6907
|
+
var w1 = "MenuContent", [ts, g2] = He(w1), y4 = A.forwardRef(
|
|
6908
6908
|
(e, t) => {
|
|
6909
6909
|
const r = j4(w1, e.__scopeMenu), { forceMount: n = r.forceMount, ...o } = e, c = ke(w1, e.__scopeMenu), s = zt(w1, e.__scopeMenu);
|
|
6910
6910
|
return /* @__PURE__ */ a.jsx(dt.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(ae, { present: n || c.open, children: /* @__PURE__ */ a.jsx(dt.Slot, { scope: e.__scopeMenu, children: s.modal ? /* @__PURE__ */ a.jsx(rs, { ...o, ref: t }) : /* @__PURE__ */ a.jsx(ns, { ...o, ref: t }) }) }) });
|
|
@@ -6914,9 +6914,9 @@ var w1 = "MenuContent", [ts, p2] = He(w1), y4 = A.forwardRef(
|
|
|
6914
6914
|
const r = ke(w1, e.__scopeMenu), n = A.useRef(null), o = O1(t, n);
|
|
6915
6915
|
return A.useEffect(() => {
|
|
6916
6916
|
const c = n.current;
|
|
6917
|
-
if (c) return
|
|
6917
|
+
if (c) return u2(c);
|
|
6918
6918
|
}, []), /* @__PURE__ */ a.jsx(
|
|
6919
|
-
|
|
6919
|
+
x2,
|
|
6920
6920
|
{
|
|
6921
6921
|
...e,
|
|
6922
6922
|
ref: o,
|
|
@@ -6935,7 +6935,7 @@ var w1 = "MenuContent", [ts, p2] = He(w1), y4 = A.forwardRef(
|
|
|
6935
6935
|
), ns = A.forwardRef((e, t) => {
|
|
6936
6936
|
const r = ke(w1, e.__scopeMenu);
|
|
6937
6937
|
return /* @__PURE__ */ a.jsx(
|
|
6938
|
-
|
|
6938
|
+
x2,
|
|
6939
6939
|
{
|
|
6940
6940
|
...e,
|
|
6941
6941
|
ref: t,
|
|
@@ -6945,7 +6945,7 @@ var w1 = "MenuContent", [ts, p2] = He(w1), y4 = A.forwardRef(
|
|
|
6945
6945
|
onDismiss: () => r.onOpenChange(!1)
|
|
6946
6946
|
}
|
|
6947
6947
|
);
|
|
6948
|
-
}), as = /* @__PURE__ */ lt("MenuContent.ScrollLock"),
|
|
6948
|
+
}), as = /* @__PURE__ */ lt("MenuContent.ScrollLock"), x2 = A.forwardRef(
|
|
6949
6949
|
(e, t) => {
|
|
6950
6950
|
const {
|
|
6951
6951
|
__scopeMenu: r,
|
|
@@ -6962,17 +6962,17 @@ var w1 = "MenuContent", [ts, p2] = He(w1), y4 = A.forwardRef(
|
|
|
6962
6962
|
onDismiss: x,
|
|
6963
6963
|
disableOutsideScroll: C,
|
|
6964
6964
|
...m
|
|
6965
|
-
} = e, f = ke(w1, r), O = zt(w1, r), v = Vr(r),
|
|
6965
|
+
} = e, f = ke(w1, r), O = zt(w1, r), v = Vr(r), b = C4(r), V = J6(r), [z, k] = A.useState(null), I = A.useRef(null), S = O1(t, I, f.onContentChange), W = A.useRef(0), N = A.useRef(""), h = A.useRef(0), G = A.useRef(null), R = A.useRef("right"), D = A.useRef(0), e1 = C ? Or : A.Fragment, B = C ? { as, allowPinchZoom: !0 } : void 0, Z = (P) => {
|
|
6966
6966
|
var E, L;
|
|
6967
|
-
const K = N.current +
|
|
6967
|
+
const K = N.current + P, U = V().filter(($) => !$.disabled), F = document.activeElement, t1 = (E = U.find(($) => $.ref.current === F)) == null ? void 0 : E.textValue, Y = U.map(($) => $.textValue), c1 = Cs(Y, K, t1), o1 = (L = U.find(($) => $.textValue === c1)) == null ? void 0 : L.ref.current;
|
|
6968
6968
|
(function $(s1) {
|
|
6969
|
-
N.current = s1, window.clearTimeout(
|
|
6969
|
+
N.current = s1, window.clearTimeout(W.current), s1 !== "" && (W.current = window.setTimeout(() => $(""), 1e3));
|
|
6970
6970
|
})(K), o1 && setTimeout(() => o1.focus());
|
|
6971
6971
|
};
|
|
6972
|
-
A.useEffect(() => () => window.clearTimeout(
|
|
6973
|
-
const H = A.useCallback((
|
|
6972
|
+
A.useEffect(() => () => window.clearTimeout(W.current), []), Ia();
|
|
6973
|
+
const H = A.useCallback((P) => {
|
|
6974
6974
|
var U, F;
|
|
6975
|
-
return R.current === ((U = G.current) == null ? void 0 : U.side) && js(
|
|
6975
|
+
return R.current === ((U = G.current) == null ? void 0 : U.side) && js(P, (F = G.current) == null ? void 0 : F.area);
|
|
6976
6976
|
}, []);
|
|
6977
6977
|
return /* @__PURE__ */ a.jsx(
|
|
6978
6978
|
ts,
|
|
@@ -6980,40 +6980,40 @@ var w1 = "MenuContent", [ts, p2] = He(w1), y4 = A.forwardRef(
|
|
|
6980
6980
|
scope: r,
|
|
6981
6981
|
searchRef: N,
|
|
6982
6982
|
onItemEnter: A.useCallback(
|
|
6983
|
-
(
|
|
6984
|
-
H(
|
|
6983
|
+
(P) => {
|
|
6984
|
+
H(P) && P.preventDefault();
|
|
6985
6985
|
},
|
|
6986
6986
|
[H]
|
|
6987
6987
|
),
|
|
6988
6988
|
onItemLeave: A.useCallback(
|
|
6989
|
-
(
|
|
6989
|
+
(P) => {
|
|
6990
6990
|
var K;
|
|
6991
|
-
H(
|
|
6991
|
+
H(P) || ((K = I.current) == null || K.focus(), k(null));
|
|
6992
6992
|
},
|
|
6993
6993
|
[H]
|
|
6994
6994
|
),
|
|
6995
6995
|
onTriggerLeave: A.useCallback(
|
|
6996
|
-
(
|
|
6997
|
-
H(
|
|
6996
|
+
(P) => {
|
|
6997
|
+
H(P) && P.preventDefault();
|
|
6998
6998
|
},
|
|
6999
6999
|
[H]
|
|
7000
7000
|
),
|
|
7001
|
-
pointerGraceTimerRef:
|
|
7002
|
-
onPointerGraceIntentChange: A.useCallback((
|
|
7003
|
-
G.current =
|
|
7001
|
+
pointerGraceTimerRef: h,
|
|
7002
|
+
onPointerGraceIntentChange: A.useCallback((P) => {
|
|
7003
|
+
G.current = P;
|
|
7004
7004
|
}, []),
|
|
7005
7005
|
children: /* @__PURE__ */ a.jsx(e1, { ...B, children: /* @__PURE__ */ a.jsx(
|
|
7006
|
-
|
|
7006
|
+
Xn,
|
|
7007
7007
|
{
|
|
7008
7008
|
asChild: !0,
|
|
7009
7009
|
trapped: o,
|
|
7010
|
-
onMountAutoFocus: Q(c, (
|
|
7010
|
+
onMountAutoFocus: Q(c, (P) => {
|
|
7011
7011
|
var K;
|
|
7012
|
-
|
|
7012
|
+
P.preventDefault(), (K = I.current) == null || K.focus({ preventScroll: !0 });
|
|
7013
7013
|
}),
|
|
7014
7014
|
onUnmountAutoFocus: s,
|
|
7015
7015
|
children: /* @__PURE__ */ a.jsx(
|
|
7016
|
-
|
|
7016
|
+
Bn,
|
|
7017
7017
|
{
|
|
7018
7018
|
asChild: !0,
|
|
7019
7019
|
disableOutsidePointerEvents: i,
|
|
@@ -7026,14 +7026,14 @@ var w1 = "MenuContent", [ts, p2] = He(w1), y4 = A.forwardRef(
|
|
|
7026
7026
|
a4,
|
|
7027
7027
|
{
|
|
7028
7028
|
asChild: !0,
|
|
7029
|
-
...
|
|
7029
|
+
...b,
|
|
7030
7030
|
dir: O.dir,
|
|
7031
7031
|
orientation: "vertical",
|
|
7032
7032
|
loop: n,
|
|
7033
7033
|
currentTabStopId: z,
|
|
7034
7034
|
onCurrentTabStopIdChange: k,
|
|
7035
|
-
onEntryFocus: Q(l, (
|
|
7036
|
-
O.isUsingKeyboardRef.current ||
|
|
7035
|
+
onEntryFocus: Q(l, (P) => {
|
|
7036
|
+
O.isUsingKeyboardRef.current || P.preventDefault();
|
|
7037
7037
|
}),
|
|
7038
7038
|
preventScrollOnEntryFocus: !0,
|
|
7039
7039
|
children: /* @__PURE__ */ a.jsx(
|
|
@@ -7048,25 +7048,25 @@ var w1 = "MenuContent", [ts, p2] = He(w1), y4 = A.forwardRef(
|
|
|
7048
7048
|
...m,
|
|
7049
7049
|
ref: S,
|
|
7050
7050
|
style: { outline: "none", ...m.style },
|
|
7051
|
-
onKeyDown: Q(m.onKeyDown, (
|
|
7052
|
-
const U =
|
|
7053
|
-
U && (
|
|
7051
|
+
onKeyDown: Q(m.onKeyDown, (P) => {
|
|
7052
|
+
const U = P.target.closest("[data-radix-menu-content]") === P.currentTarget, F = P.ctrlKey || P.altKey || P.metaKey, t1 = P.key.length === 1;
|
|
7053
|
+
U && (P.key === "Tab" && P.preventDefault(), !F && t1 && Z(P.key));
|
|
7054
7054
|
const Y = I.current;
|
|
7055
|
-
if (
|
|
7056
|
-
|
|
7055
|
+
if (P.target !== Y || !Z6.includes(P.key)) return;
|
|
7056
|
+
P.preventDefault();
|
|
7057
7057
|
const o1 = V().filter((E) => !E.disabled).map((E) => E.ref.current);
|
|
7058
|
-
g4.includes(
|
|
7058
|
+
g4.includes(P.key) && o1.reverse(), gs(o1);
|
|
7059
7059
|
}),
|
|
7060
|
-
onBlur: Q(e.onBlur, (
|
|
7061
|
-
|
|
7060
|
+
onBlur: Q(e.onBlur, (P) => {
|
|
7061
|
+
P.currentTarget.contains(P.target) || (window.clearTimeout(W.current), N.current = "");
|
|
7062
7062
|
}),
|
|
7063
7063
|
onPointerMove: Q(
|
|
7064
7064
|
e.onPointerMove,
|
|
7065
|
-
pt((
|
|
7066
|
-
const K =
|
|
7067
|
-
if (
|
|
7068
|
-
const F =
|
|
7069
|
-
R.current = F, D.current =
|
|
7065
|
+
pt((P) => {
|
|
7066
|
+
const K = P.target, U = D.current !== P.clientX;
|
|
7067
|
+
if (P.currentTarget.contains(K) && U) {
|
|
7068
|
+
const F = P.clientX > D.current ? "right" : "left";
|
|
7069
|
+
R.current = F, D.current = P.clientX;
|
|
7070
7070
|
}
|
|
7071
7071
|
})
|
|
7072
7072
|
)
|
|
@@ -7083,13 +7083,13 @@ var w1 = "MenuContent", [ts, p2] = He(w1), y4 = A.forwardRef(
|
|
|
7083
7083
|
}
|
|
7084
7084
|
);
|
|
7085
7085
|
y4.displayName = w1;
|
|
7086
|
-
var os = "MenuGroup",
|
|
7086
|
+
var os = "MenuGroup", C2 = A.forwardRef(
|
|
7087
7087
|
(e, t) => {
|
|
7088
7088
|
const { __scopeMenu: r, ...n } = e;
|
|
7089
7089
|
return /* @__PURE__ */ a.jsx(p1.div, { role: "group", ...n, ref: t });
|
|
7090
7090
|
}
|
|
7091
7091
|
);
|
|
7092
|
-
|
|
7092
|
+
C2.displayName = os;
|
|
7093
7093
|
var cs = "MenuLabel", O4 = A.forwardRef(
|
|
7094
7094
|
(e, t) => {
|
|
7095
7095
|
const { __scopeMenu: r, ...n } = e;
|
|
@@ -7097,13 +7097,13 @@ var cs = "MenuLabel", O4 = A.forwardRef(
|
|
|
7097
7097
|
}
|
|
7098
7098
|
);
|
|
7099
7099
|
O4.displayName = cs;
|
|
7100
|
-
var er = "MenuItem",
|
|
7100
|
+
var er = "MenuItem", q5 = "menu.itemSelect", vr = A.forwardRef(
|
|
7101
7101
|
(e, t) => {
|
|
7102
|
-
const { disabled: r = !1, onSelect: n, ...o } = e, c = A.useRef(null), s = zt(er, e.__scopeMenu), i =
|
|
7102
|
+
const { disabled: r = !1, onSelect: n, ...o } = e, c = A.useRef(null), s = zt(er, e.__scopeMenu), i = g2(er, e.__scopeMenu), l = O1(t, c), u = A.useRef(!1), d = () => {
|
|
7103
7103
|
const p = c.current;
|
|
7104
7104
|
if (!r && p) {
|
|
7105
|
-
const g = new CustomEvent(
|
|
7106
|
-
p.addEventListener(
|
|
7105
|
+
const g = new CustomEvent(q5, { bubbles: !0, cancelable: !0 });
|
|
7106
|
+
p.addEventListener(q5, (x) => n == null ? void 0 : n(x), { once: !0 }), za(p, g), g.defaultPrevented ? u.current = !1 : s.onClose();
|
|
7107
7107
|
}
|
|
7108
7108
|
};
|
|
7109
7109
|
return /* @__PURE__ */ a.jsx(
|
|
@@ -7122,7 +7122,7 @@ var er = "MenuItem", S5 = "menu.itemSelect", vr = A.forwardRef(
|
|
|
7122
7122
|
u.current || (g = p.currentTarget) == null || g.click();
|
|
7123
7123
|
}),
|
|
7124
7124
|
onKeyDown: Q(e.onKeyDown, (p) => {
|
|
7125
|
-
r || p.target !== p.currentTarget || i.searchRef.current !== "" && p.key === " " ||
|
|
7125
|
+
r || p.target !== p.currentTarget || i.searchRef.current !== "" && p.key === " " || xn.includes(p.key) && (p.currentTarget.click(), p.preventDefault());
|
|
7126
7126
|
})
|
|
7127
7127
|
}
|
|
7128
7128
|
);
|
|
@@ -7131,7 +7131,7 @@ var er = "MenuItem", S5 = "menu.itemSelect", vr = A.forwardRef(
|
|
|
7131
7131
|
vr.displayName = er;
|
|
7132
7132
|
var V4 = A.forwardRef(
|
|
7133
7133
|
(e, t) => {
|
|
7134
|
-
const { __scopeMenu: r, disabled: n = !1, textValue: o, ...c } = e, s =
|
|
7134
|
+
const { __scopeMenu: r, disabled: n = !1, textValue: o, ...c } = e, s = g2(er, r), i = C4(r), l = A.useRef(null), u = O1(t, l), [d, p] = A.useState(!1), [g, x] = A.useState("");
|
|
7135
7135
|
return A.useEffect(() => {
|
|
7136
7136
|
const C = l.current;
|
|
7137
7137
|
C && x((C.textContent ?? "").trim());
|
|
@@ -7177,7 +7177,7 @@ var V4 = A.forwardRef(
|
|
|
7177
7177
|
"aria-checked": tr(r) ? "mixed" : r,
|
|
7178
7178
|
...o,
|
|
7179
7179
|
ref: t,
|
|
7180
|
-
"data-state":
|
|
7180
|
+
"data-state": j2(r),
|
|
7181
7181
|
onSelect: Q(
|
|
7182
7182
|
o.onSelect,
|
|
7183
7183
|
() => n == null ? void 0 : n(tr(r) ? !0 : !r),
|
|
@@ -7195,7 +7195,7 @@ var b4 = "MenuRadioGroup", [is, As] = He(
|
|
|
7195
7195
|
), P4 = A.forwardRef(
|
|
7196
7196
|
(e, t) => {
|
|
7197
7197
|
const { value: r, onValueChange: n, ...o } = e, c = ee(n);
|
|
7198
|
-
return /* @__PURE__ */ a.jsx(is, { scope: e.__scopeMenu, value: r, onValueChange: c, children: /* @__PURE__ */ a.jsx(
|
|
7198
|
+
return /* @__PURE__ */ a.jsx(is, { scope: e.__scopeMenu, value: r, onValueChange: c, children: /* @__PURE__ */ a.jsx(C2, { ...o, ref: t }) });
|
|
7199
7199
|
}
|
|
7200
7200
|
);
|
|
7201
7201
|
P4.displayName = b4;
|
|
@@ -7209,7 +7209,7 @@ var z4 = "MenuRadioItem", H4 = A.forwardRef(
|
|
|
7209
7209
|
"aria-checked": c,
|
|
7210
7210
|
...n,
|
|
7211
7211
|
ref: t,
|
|
7212
|
-
"data-state":
|
|
7212
|
+
"data-state": j2(c),
|
|
7213
7213
|
onSelect: Q(
|
|
7214
7214
|
n.onSelect,
|
|
7215
7215
|
() => {
|
|
@@ -7223,12 +7223,12 @@ var z4 = "MenuRadioItem", H4 = A.forwardRef(
|
|
|
7223
7223
|
}
|
|
7224
7224
|
);
|
|
7225
7225
|
H4.displayName = z4;
|
|
7226
|
-
var
|
|
7227
|
-
|
|
7226
|
+
var m2 = "MenuItemIndicator", [k4, ls] = He(
|
|
7227
|
+
m2,
|
|
7228
7228
|
{ checked: !1 }
|
|
7229
7229
|
), I4 = A.forwardRef(
|
|
7230
7230
|
(e, t) => {
|
|
7231
|
-
const { __scopeMenu: r, forceMount: n, ...o } = e, c = ls(
|
|
7231
|
+
const { __scopeMenu: r, forceMount: n, ...o } = e, c = ls(m2, r);
|
|
7232
7232
|
return /* @__PURE__ */ a.jsx(
|
|
7233
7233
|
ae,
|
|
7234
7234
|
{
|
|
@@ -7238,14 +7238,14 @@ var C2 = "MenuItemIndicator", [k4, ls] = He(
|
|
|
7238
7238
|
{
|
|
7239
7239
|
...o,
|
|
7240
7240
|
ref: t,
|
|
7241
|
-
"data-state":
|
|
7241
|
+
"data-state": j2(c.checked)
|
|
7242
7242
|
}
|
|
7243
7243
|
)
|
|
7244
7244
|
}
|
|
7245
7245
|
);
|
|
7246
7246
|
}
|
|
7247
7247
|
);
|
|
7248
|
-
I4.displayName =
|
|
7248
|
+
I4.displayName = m2;
|
|
7249
7249
|
var us = "MenuSeparator", M4 = A.forwardRef(
|
|
7250
7250
|
(e, t) => {
|
|
7251
7251
|
const { __scopeMenu: r, ...n } = e;
|
|
@@ -7270,7 +7270,7 @@ var ds = "MenuArrow", K4 = A.forwardRef(
|
|
|
7270
7270
|
K4.displayName = ds;
|
|
7271
7271
|
var ps = "MenuSub", [Yd, N4] = He(ps), ct = "MenuSubTrigger", h4 = A.forwardRef(
|
|
7272
7272
|
(e, t) => {
|
|
7273
|
-
const r = ke(ct, e.__scopeMenu), n = zt(ct, e.__scopeMenu), o = N4(ct, e.__scopeMenu), c =
|
|
7273
|
+
const r = ke(ct, e.__scopeMenu), n = zt(ct, e.__scopeMenu), o = N4(ct, e.__scopeMenu), c = g2(ct, e.__scopeMenu), s = A.useRef(null), { pointerGraceTimerRef: i, onPointerGraceIntentChange: l } = c, u = { __scopeMenu: e.__scopeMenu }, d = A.useCallback(() => {
|
|
7274
7274
|
s.current && window.clearTimeout(s.current), s.current = null;
|
|
7275
7275
|
}, []);
|
|
7276
7276
|
A.useEffect(() => d, [d]), A.useEffect(() => {
|
|
@@ -7280,7 +7280,7 @@ var ps = "MenuSub", [Yd, N4] = He(ps), ct = "MenuSubTrigger", h4 = A.forwardRef(
|
|
|
7280
7280
|
};
|
|
7281
7281
|
}, [i, l]);
|
|
7282
7282
|
const p = O1(t, o.onTriggerChange);
|
|
7283
|
-
return /* @__PURE__ */ a.jsx(
|
|
7283
|
+
return /* @__PURE__ */ a.jsx(d2, { asChild: !0, ...u, children: /* @__PURE__ */ a.jsx(
|
|
7284
7284
|
V4,
|
|
7285
7285
|
{
|
|
7286
7286
|
id: o.triggerId,
|
|
@@ -7309,16 +7309,16 @@ var ps = "MenuSub", [Yd, N4] = He(ps), ct = "MenuSubTrigger", h4 = A.forwardRef(
|
|
|
7309
7309
|
d();
|
|
7310
7310
|
const x = (C = r.content) == null ? void 0 : C.getBoundingClientRect();
|
|
7311
7311
|
if (x) {
|
|
7312
|
-
const f = (m = r.content) == null ? void 0 : m.dataset.side, O = f === "right", v = O ? -5 : 5,
|
|
7312
|
+
const f = (m = r.content) == null ? void 0 : m.dataset.side, O = f === "right", v = O ? -5 : 5, b = x[O ? "left" : "right"], V = x[O ? "right" : "left"];
|
|
7313
7313
|
c.onPointerGraceIntentChange({
|
|
7314
7314
|
area: [
|
|
7315
7315
|
// Apply a bleed on clientX to ensure that our exit point is
|
|
7316
7316
|
// consistently within polygon bounds
|
|
7317
7317
|
{ x: g.clientX + v, y: g.clientY },
|
|
7318
|
-
{ x:
|
|
7318
|
+
{ x: b, y: x.top },
|
|
7319
7319
|
{ x: V, y: x.top },
|
|
7320
7320
|
{ x: V, y: x.bottom },
|
|
7321
|
-
{ x:
|
|
7321
|
+
{ x: b, y: x.bottom }
|
|
7322
7322
|
],
|
|
7323
7323
|
side: f
|
|
7324
7324
|
}), window.clearTimeout(i.current), i.current = window.setTimeout(
|
|
@@ -7344,7 +7344,7 @@ var S4 = "MenuSubContent", q4 = A.forwardRef(
|
|
|
7344
7344
|
(e, t) => {
|
|
7345
7345
|
const r = j4(w1, e.__scopeMenu), { forceMount: n = r.forceMount, align: o = "start", ...c } = e, s = ke(w1, e.__scopeMenu), i = zt(w1, e.__scopeMenu), l = N4(S4, e.__scopeMenu), u = A.useRef(null), d = O1(t, u);
|
|
7346
7346
|
return /* @__PURE__ */ a.jsx(dt.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(ae, { present: n || s.open, children: /* @__PURE__ */ a.jsx(dt.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(
|
|
7347
|
-
|
|
7347
|
+
x2,
|
|
7348
7348
|
{
|
|
7349
7349
|
id: l.contentId,
|
|
7350
7350
|
"aria-labelledby": l.triggerId,
|
|
@@ -7382,7 +7382,7 @@ function U4(e) {
|
|
|
7382
7382
|
function tr(e) {
|
|
7383
7383
|
return e === "indeterminate";
|
|
7384
7384
|
}
|
|
7385
|
-
function
|
|
7385
|
+
function j2(e) {
|
|
7386
7386
|
return tr(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
7387
7387
|
}
|
|
7388
7388
|
function gs(e) {
|
|
@@ -7419,7 +7419,7 @@ function js(e, t) {
|
|
|
7419
7419
|
function pt(e) {
|
|
7420
7420
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
7421
7421
|
}
|
|
7422
|
-
var fs = m4, ys =
|
|
7422
|
+
var fs = m4, ys = d2, Os = f4, Vs = y4, vs = C2, bs = O4, Ps = vr, zs = v4, Hs = P4, ks = H4, Is = I4, Ms = M4, Ks = K4, Ns = h4, hs = q4, br = "DropdownMenu", [Ss] = ze(
|
|
7423
7423
|
br,
|
|
7424
7424
|
[x4]
|
|
7425
7425
|
), k1 = x4(), [qs, w4] = Ss(br), T4 = (e) => {
|
|
@@ -7596,7 +7596,7 @@ var ti = "DropdownMenuSubContent", ri = A.forwardRef((e, t) => {
|
|
|
7596
7596
|
});
|
|
7597
7597
|
ri.displayName = ti;
|
|
7598
7598
|
var ni = T4, ai = R4, oi = F4, ci = G4, si = B4, ii = X4;
|
|
7599
|
-
const
|
|
7599
|
+
const f2 = ({
|
|
7600
7600
|
trigger: e,
|
|
7601
7601
|
children: t,
|
|
7602
7602
|
side: r = "bottom",
|
|
@@ -7621,7 +7621,7 @@ const j2 = ({
|
|
|
7621
7621
|
children: t
|
|
7622
7622
|
}
|
|
7623
7623
|
) })
|
|
7624
|
-
] }),
|
|
7624
|
+
] }), y2 = ({
|
|
7625
7625
|
className: e,
|
|
7626
7626
|
...t
|
|
7627
7627
|
}) => /* @__PURE__ */ a.jsx(
|
|
@@ -7665,7 +7665,7 @@ const j2 = ({
|
|
|
7665
7665
|
tertiary: "bg-action-tertiary-idle text-action-tertiary-on-idle hover:bg-action-tertiary-hover hover:text-action-tertiary-on-hover",
|
|
7666
7666
|
quaternary: "bg-action-quaternary-idle text-action-quaternary-on-idle hover:bg-action-quaternary-hover hover:text-action-quaternary-on-hover",
|
|
7667
7667
|
destructive: "bg-action-destructive-idle text-action-destructive-on-idle hover:bg-action-destructive-hover hover:text-action-destructive-on-hover"
|
|
7668
|
-
}, _r = (e, t) => gi[e][t], Ci = (e, t) => xi[e],
|
|
7668
|
+
}, _r = (e, t) => gi[e][t], Ci = (e, t) => xi[e], $r = (e) => {
|
|
7669
7669
|
if (!e) return null;
|
|
7670
7670
|
if (S0(e))
|
|
7671
7671
|
return /* @__PURE__ */ a.jsx("span", { className: "shrink-0 [&>svg]:size-4", children: e });
|
|
@@ -7673,7 +7673,7 @@ const j2 = ({
|
|
|
7673
7673
|
return /* @__PURE__ */ a.jsx("span", { className: "shrink-0 [&>svg]:size-4", children: e });
|
|
7674
7674
|
const t = e;
|
|
7675
7675
|
return /* @__PURE__ */ a.jsx(t, { size: "small", className: "shrink-0" });
|
|
7676
|
-
}, U5 = (e, t) => t || (e ? "disabled" : "idle"), w5 = (e, t, r) => r ? _r(e, t) : t === "disabled" ? _r(e, "disabled") : t === "hover" ? _r(e, "hover") : Ci(e),
|
|
7676
|
+
}, U5 = (e, t) => t || (e ? "disabled" : "idle"), w5 = (e, t, r) => r ? _r(e, t) : t === "disabled" ? _r(e, "disabled") : t === "hover" ? _r(e, "hover") : Ci(e), en = (e) => e ? "cursor-not-allowed" : "cursor-pointer", T5 = (e, t, r) => e !== "secondary" ? r : y(
|
|
7677
7677
|
r,
|
|
7678
7678
|
t === "main" ? "border-r-0" : "border-l-0"
|
|
7679
7679
|
), gt = ({
|
|
@@ -7681,78 +7681,80 @@ const j2 = ({
|
|
|
7681
7681
|
disabled: t = !1,
|
|
7682
7682
|
icon: r,
|
|
7683
7683
|
startIcon: n,
|
|
7684
|
-
|
|
7685
|
-
|
|
7686
|
-
|
|
7687
|
-
|
|
7688
|
-
|
|
7689
|
-
|
|
7690
|
-
|
|
7691
|
-
|
|
7692
|
-
|
|
7684
|
+
endIcon: o,
|
|
7685
|
+
dropdownOptions: c,
|
|
7686
|
+
dropdownOpen: s,
|
|
7687
|
+
onDropdownOpenChange: i,
|
|
7688
|
+
forcedState: l,
|
|
7689
|
+
children: u,
|
|
7690
|
+
className: d,
|
|
7691
|
+
type: p = "button",
|
|
7692
|
+
onClick: g,
|
|
7693
|
+
...x
|
|
7693
7694
|
}) => {
|
|
7694
|
-
const
|
|
7695
|
+
const m = $r(r ?? n), f = $r(o), O = m != null || f != null, v = !!(c != null && c.length), b = !(c != null && c.some((h) => !h.disabled)), V = U5(t, l), z = U5(b, l), k = w5(
|
|
7695
7696
|
e,
|
|
7696
|
-
|
|
7697
|
-
|
|
7698
|
-
),
|
|
7697
|
+
V,
|
|
7698
|
+
l
|
|
7699
|
+
), I = w5(
|
|
7699
7700
|
e,
|
|
7700
|
-
|
|
7701
|
-
|
|
7702
|
-
),
|
|
7701
|
+
z,
|
|
7702
|
+
l
|
|
7703
|
+
), S = /* @__PURE__ */ a.jsxs(
|
|
7703
7704
|
"span",
|
|
7704
7705
|
{
|
|
7705
7706
|
className: y(
|
|
7706
7707
|
"flex min-h-6 items-center justify-center",
|
|
7707
|
-
|
|
7708
|
+
O && "gap-2"
|
|
7708
7709
|
),
|
|
7709
7710
|
children: [
|
|
7710
|
-
|
|
7711
|
-
/* @__PURE__ */ a.jsx("span", { children:
|
|
7711
|
+
m,
|
|
7712
|
+
/* @__PURE__ */ a.jsx("span", { children: u }),
|
|
7713
|
+
f
|
|
7712
7714
|
]
|
|
7713
7715
|
}
|
|
7714
7716
|
);
|
|
7715
|
-
if (!
|
|
7717
|
+
if (!v)
|
|
7716
7718
|
return /* @__PURE__ */ a.jsx(
|
|
7717
7719
|
"button",
|
|
7718
7720
|
{
|
|
7719
|
-
type:
|
|
7721
|
+
type: p,
|
|
7720
7722
|
disabled: t,
|
|
7721
|
-
onClick:
|
|
7723
|
+
onClick: g,
|
|
7722
7724
|
className: y(
|
|
7723
7725
|
"inline-flex min-h-10 items-center justify-center rounded-control p-2 text-caption-1 tracking-[0.32px] transition-colors",
|
|
7724
|
-
|
|
7725
|
-
|
|
7726
|
-
|
|
7726
|
+
en(t),
|
|
7727
|
+
k,
|
|
7728
|
+
d
|
|
7727
7729
|
),
|
|
7728
|
-
...
|
|
7729
|
-
children:
|
|
7730
|
+
...x,
|
|
7731
|
+
children: S
|
|
7730
7732
|
}
|
|
7731
7733
|
);
|
|
7732
|
-
const
|
|
7734
|
+
const W = /* @__PURE__ */ a.jsx(
|
|
7733
7735
|
"button",
|
|
7734
7736
|
{
|
|
7735
|
-
type:
|
|
7737
|
+
type: p,
|
|
7736
7738
|
disabled: t,
|
|
7737
|
-
onClick:
|
|
7739
|
+
onClick: g,
|
|
7738
7740
|
className: y(
|
|
7739
7741
|
"inline-flex min-h-10 items-center justify-center rounded-none rounded-l-control p-2 text-caption-1 tracking-[0.32px] transition-colors",
|
|
7740
|
-
|
|
7741
|
-
T5(e, "main",
|
|
7742
|
+
en(t),
|
|
7743
|
+
T5(e, "main", k)
|
|
7742
7744
|
),
|
|
7743
|
-
...
|
|
7744
|
-
children:
|
|
7745
|
+
...x,
|
|
7746
|
+
children: S
|
|
7745
7747
|
}
|
|
7746
|
-
),
|
|
7748
|
+
), N = /* @__PURE__ */ a.jsx(
|
|
7747
7749
|
"button",
|
|
7748
7750
|
{
|
|
7749
7751
|
type: "button",
|
|
7750
|
-
disabled:
|
|
7752
|
+
disabled: b,
|
|
7751
7753
|
"aria-label": "Open menu",
|
|
7752
7754
|
className: y(
|
|
7753
7755
|
"inline-flex min-h-10 shrink-0 items-center justify-center rounded-none rounded-r-control px-1 transition-colors",
|
|
7754
|
-
|
|
7755
|
-
T5(e, "dropdown",
|
|
7756
|
+
en(b),
|
|
7757
|
+
T5(e, "dropdown", I)
|
|
7756
7758
|
),
|
|
7757
7759
|
children: /* @__PURE__ */ a.jsx(y1, { direction: "down", size: "small" })
|
|
7758
7760
|
}
|
|
@@ -7762,20 +7764,20 @@ const j2 = ({
|
|
|
7762
7764
|
{
|
|
7763
7765
|
className: y(
|
|
7764
7766
|
"inline-flex min-h-10 items-stretch overflow-hidden rounded-control",
|
|
7765
|
-
|
|
7767
|
+
d
|
|
7766
7768
|
),
|
|
7767
7769
|
children: [
|
|
7768
|
-
|
|
7770
|
+
W,
|
|
7769
7771
|
/* @__PURE__ */ a.jsx(
|
|
7770
|
-
|
|
7772
|
+
f2,
|
|
7771
7773
|
{
|
|
7772
|
-
open:
|
|
7773
|
-
onOpenChange:
|
|
7774
|
+
open: s,
|
|
7775
|
+
onOpenChange: i,
|
|
7774
7776
|
align: "end",
|
|
7775
|
-
trigger:
|
|
7777
|
+
trigger: N,
|
|
7776
7778
|
contentClassName: "min-w-[11rem]",
|
|
7777
|
-
children:
|
|
7778
|
-
|
|
7779
|
+
children: c == null ? void 0 : c.map((h) => /* @__PURE__ */ a.jsxs(
|
|
7780
|
+
y2,
|
|
7779
7781
|
{
|
|
7780
7782
|
disabled: h.disabled,
|
|
7781
7783
|
onSelect: h.onSelect,
|
|
@@ -7783,7 +7785,7 @@ const j2 = ({
|
|
|
7783
7785
|
h.destructive && "text-red-600 hover:bg-red-50 focus:bg-red-50 focus:text-red-600"
|
|
7784
7786
|
),
|
|
7785
7787
|
children: [
|
|
7786
|
-
h.icon ?
|
|
7788
|
+
h.icon ? $r(h.icon) : null,
|
|
7787
7789
|
h.label
|
|
7788
7790
|
]
|
|
7789
7791
|
},
|
|
@@ -7839,7 +7841,7 @@ const Z4 = "M9.89258 5.62793L13.2041 14.625H11.9316L9.20117 11.8926H9.03223L6.29
|
|
|
7839
7841
|
strokeLinecap: "round"
|
|
7840
7842
|
}
|
|
7841
7843
|
)
|
|
7842
|
-
] }),
|
|
7844
|
+
] }), O2 = ({ chief: e, className: t, muted: r = !1 }) => /* @__PURE__ */ a.jsx(
|
|
7843
7845
|
"svg",
|
|
7844
7846
|
{
|
|
7845
7847
|
viewBox: "0 0 18 18",
|
|
@@ -7921,7 +7923,7 @@ const Z4 = "M9.89258 5.62793L13.2041 14.625H11.9316L9.20117 11.8926H9.03223L6.29
|
|
|
7921
7923
|
className: y("ring-2 ring-white", n > 0 && "-ml-2")
|
|
7922
7924
|
},
|
|
7923
7925
|
`${r.chief}-${n}`
|
|
7924
|
-
)) }),
|
|
7926
|
+
)) }), tn = ({
|
|
7925
7927
|
header: e = !1,
|
|
7926
7928
|
destructive: t = !1,
|
|
7927
7929
|
children: r,
|
|
@@ -8100,7 +8102,7 @@ var hi = [
|
|
|
8100
8102
|
function Si(e, t) {
|
|
8101
8103
|
e && ft.flushSync(() => e.dispatchEvent(t));
|
|
8102
8104
|
}
|
|
8103
|
-
function
|
|
8105
|
+
function V2(e) {
|
|
8104
8106
|
const t = A.useRef(e);
|
|
8105
8107
|
return A.useEffect(() => {
|
|
8106
8108
|
t.current = e;
|
|
@@ -8127,7 +8129,7 @@ function E4(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
8127
8129
|
return t.addEventListener("keydown", n, { capture: !0 }), () => t.removeEventListener("keydown", n, { capture: !0 });
|
|
8128
8130
|
}, [r, t]);
|
|
8129
8131
|
}
|
|
8130
|
-
var Ui = "DismissableLayer",
|
|
8132
|
+
var Ui = "DismissableLayer", Cn = "dismissableLayer.update", wi = "dismissableLayer.pointerDownOutside", Ti = "dismissableLayer.focusOutside", R5, _4 = A.createContext({
|
|
8131
8133
|
layers: /* @__PURE__ */ new Set(),
|
|
8132
8134
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
8133
8135
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -8141,9 +8143,9 @@ var Ui = "DismissableLayer", xn = "dismissableLayer.update", wi = "dismissableLa
|
|
|
8141
8143
|
onInteractOutside: s,
|
|
8142
8144
|
onDismiss: i,
|
|
8143
8145
|
...l
|
|
8144
|
-
} = e, u = A.useContext(_4), [d, p] = A.useState(null), g = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, x] = A.useState({}), C = Ie(t, (I) => p(I)), m = Array.from(u.layers), [f] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), O = m.indexOf(f), v = d ? m.indexOf(d) : -1,
|
|
8145
|
-
const S = I.target,
|
|
8146
|
-
!V ||
|
|
8146
|
+
} = e, u = A.useContext(_4), [d, p] = A.useState(null), g = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, x] = A.useState({}), C = Ie(t, (I) => p(I)), m = Array.from(u.layers), [f] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), O = m.indexOf(f), v = d ? m.indexOf(d) : -1, b = u.layersWithOutsidePointerEventsDisabled.size > 0, V = v >= O, z = Fi((I) => {
|
|
8147
|
+
const S = I.target, W = [...u.branches].some((N) => N.contains(S));
|
|
8148
|
+
!V || W || (o == null || o(I), s == null || s(I), I.defaultPrevented || i == null || i());
|
|
8147
8149
|
}, g), k = Di((I) => {
|
|
8148
8150
|
const S = I.target;
|
|
8149
8151
|
[...u.branches].some((N) => N.contains(S)) || (c == null || c(I), s == null || s(I), I.defaultPrevented || i == null || i());
|
|
@@ -8159,14 +8161,14 @@ var Ui = "DismissableLayer", xn = "dismissableLayer.update", wi = "dismissableLa
|
|
|
8159
8161
|
d && (u.layers.delete(d), u.layersWithOutsidePointerEventsDisabled.delete(d), F5());
|
|
8160
8162
|
}, [d, u]), A.useEffect(() => {
|
|
8161
8163
|
const I = () => x({});
|
|
8162
|
-
return document.addEventListener(
|
|
8164
|
+
return document.addEventListener(Cn, I), () => document.removeEventListener(Cn, I);
|
|
8163
8165
|
}, []), /* @__PURE__ */ a.jsx(
|
|
8164
8166
|
Me.div,
|
|
8165
8167
|
{
|
|
8166
8168
|
...l,
|
|
8167
8169
|
ref: C,
|
|
8168
8170
|
style: {
|
|
8169
|
-
pointerEvents:
|
|
8171
|
+
pointerEvents: b ? V ? "auto" : "none" : void 0,
|
|
8170
8172
|
...e.style
|
|
8171
8173
|
},
|
|
8172
8174
|
onFocusCapture: $1(e.onFocusCapture, k.onFocusCapture),
|
|
@@ -8192,7 +8194,7 @@ var Wi = "DismissableLayerBranch", Ri = A.forwardRef((e, t) => {
|
|
|
8192
8194
|
});
|
|
8193
8195
|
Ri.displayName = Wi;
|
|
8194
8196
|
function Fi(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
8195
|
-
const r =
|
|
8197
|
+
const r = V2(e), n = A.useRef(!1), o = A.useRef(() => {
|
|
8196
8198
|
});
|
|
8197
8199
|
return A.useEffect(() => {
|
|
8198
8200
|
const c = (i) => {
|
|
@@ -8222,7 +8224,7 @@ function Fi(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
8222
8224
|
};
|
|
8223
8225
|
}
|
|
8224
8226
|
function Di(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
8225
|
-
const r =
|
|
8227
|
+
const r = V2(e), n = A.useRef(!1);
|
|
8226
8228
|
return A.useEffect(() => {
|
|
8227
8229
|
const o = (c) => {
|
|
8228
8230
|
c.target && !n.current && eo(Ti, r, { originalEvent: c }, {
|
|
@@ -8236,7 +8238,7 @@ function Di(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
8236
8238
|
};
|
|
8237
8239
|
}
|
|
8238
8240
|
function F5() {
|
|
8239
|
-
const e = new CustomEvent(
|
|
8241
|
+
const e = new CustomEvent(Cn);
|
|
8240
8242
|
document.dispatchEvent(e);
|
|
8241
8243
|
}
|
|
8242
8244
|
function eo(e, t, r, { discrete: n }) {
|
|
@@ -8291,11 +8293,11 @@ function Li(e) {
|
|
|
8291
8293
|
r(void 0);
|
|
8292
8294
|
}, [e]), t;
|
|
8293
8295
|
}
|
|
8294
|
-
var
|
|
8296
|
+
var v2 = "Popper", [ro, no] = J4(v2), [Ji, ao] = ro(v2), oo = (e) => {
|
|
8295
8297
|
const { __scopePopper: t, children: r } = e, [n, o] = A.useState(null);
|
|
8296
8298
|
return /* @__PURE__ */ a.jsx(Ji, { scope: t, anchor: n, onAnchorChange: o, children: r });
|
|
8297
8299
|
};
|
|
8298
|
-
oo.displayName =
|
|
8300
|
+
oo.displayName = v2;
|
|
8299
8301
|
var co = "PopperAnchor", so = A.forwardRef(
|
|
8300
8302
|
(e, t) => {
|
|
8301
8303
|
const { __scopePopper: r, virtualRef: n, ...o } = e, c = ao(co, r), s = A.useRef(null), i = Ie(t, s), l = A.useRef(null);
|
|
@@ -8306,7 +8308,7 @@ var co = "PopperAnchor", so = A.forwardRef(
|
|
|
8306
8308
|
}
|
|
8307
8309
|
);
|
|
8308
8310
|
so.displayName = co;
|
|
8309
|
-
var
|
|
8311
|
+
var b2 = "PopperContent", [Qi, Ei] = ro(b2), io = A.forwardRef(
|
|
8310
8312
|
(e, t) => {
|
|
8311
8313
|
var E, L, $, s1, v1, V1;
|
|
8312
8314
|
const {
|
|
@@ -8324,42 +8326,42 @@ var v2 = "PopperContent", [Qi, Ei] = ro(v2), io = A.forwardRef(
|
|
|
8324
8326
|
updatePositionStrategy: x = "optimized",
|
|
8325
8327
|
onPlaced: C,
|
|
8326
8328
|
...m
|
|
8327
|
-
} = e, f = ao(
|
|
8329
|
+
} = e, f = ao(b2, r), [O, v] = A.useState(null), b = Ie(t, (A1) => v(A1)), [V, z] = A.useState(null), k = Li(V), I = (k == null ? void 0 : k.width) ?? 0, S = (k == null ? void 0 : k.height) ?? 0, W = n + (c !== "center" ? "-" + c : ""), N = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, h = Array.isArray(u) ? u : [u], G = h.length > 0, R = {
|
|
8328
8330
|
padding: N,
|
|
8329
|
-
boundary:
|
|
8331
|
+
boundary: h.filter($i),
|
|
8330
8332
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
8331
8333
|
altBoundary: G
|
|
8332
|
-
}, { refs: D, floatingStyles: e1, placement: B, isPositioned: Z, middlewareData: H } =
|
|
8334
|
+
}, { refs: D, floatingStyles: e1, placement: B, isPositioned: Z, middlewareData: H } = $n({
|
|
8333
8335
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
8334
8336
|
strategy: "fixed",
|
|
8335
|
-
placement:
|
|
8336
|
-
whileElementsMounted: (...A1) =>
|
|
8337
|
+
placement: W,
|
|
8338
|
+
whileElementsMounted: (...A1) => _n(...A1, {
|
|
8337
8339
|
animationFrame: x === "always"
|
|
8338
8340
|
}),
|
|
8339
8341
|
elements: {
|
|
8340
8342
|
reference: f.anchor
|
|
8341
8343
|
},
|
|
8342
8344
|
middleware: [
|
|
8343
|
-
|
|
8344
|
-
l &&
|
|
8345
|
+
e2({ mainAxis: o + S, alignmentAxis: s }),
|
|
8346
|
+
l && t2({
|
|
8345
8347
|
mainAxis: !0,
|
|
8346
8348
|
crossAxis: !1,
|
|
8347
|
-
limiter: p === "partial" ?
|
|
8349
|
+
limiter: p === "partial" ? r2() : void 0,
|
|
8348
8350
|
...R
|
|
8349
8351
|
}),
|
|
8350
|
-
l &&
|
|
8351
|
-
|
|
8352
|
+
l && n2({ ...R }),
|
|
8353
|
+
a2({
|
|
8352
8354
|
...R,
|
|
8353
8355
|
apply: ({ elements: A1, rects: J, availableWidth: u1, availableHeight: _ }) => {
|
|
8354
8356
|
const { width: j1, height: f1 } = J.reference, l1 = A1.floating.style;
|
|
8355
8357
|
l1.setProperty("--radix-popper-available-width", `${u1}px`), l1.setProperty("--radix-popper-available-height", `${_}px`), l1.setProperty("--radix-popper-anchor-width", `${j1}px`), l1.setProperty("--radix-popper-anchor-height", `${f1}px`);
|
|
8356
8358
|
}
|
|
8357
8359
|
}),
|
|
8358
|
-
V &&
|
|
8360
|
+
V && c2({ element: V, padding: i }),
|
|
8359
8361
|
e3({ arrowWidth: I, arrowHeight: S }),
|
|
8360
|
-
g &&
|
|
8362
|
+
g && o2({ strategy: "referenceHidden", ...R })
|
|
8361
8363
|
]
|
|
8362
|
-
}), [
|
|
8364
|
+
}), [P, K] = uo(B), U = V2(C);
|
|
8363
8365
|
de(() => {
|
|
8364
8366
|
Z && (U == null || U());
|
|
8365
8367
|
}, [Z, U]);
|
|
@@ -8394,7 +8396,7 @@ var v2 = "PopperContent", [Qi, Ei] = ro(v2), io = A.forwardRef(
|
|
|
8394
8396
|
Qi,
|
|
8395
8397
|
{
|
|
8396
8398
|
scope: r,
|
|
8397
|
-
placedSide:
|
|
8399
|
+
placedSide: P,
|
|
8398
8400
|
onArrowChange: z,
|
|
8399
8401
|
arrowX: F,
|
|
8400
8402
|
arrowY: t1,
|
|
@@ -8402,10 +8404,10 @@ var v2 = "PopperContent", [Qi, Ei] = ro(v2), io = A.forwardRef(
|
|
|
8402
8404
|
children: /* @__PURE__ */ a.jsx(
|
|
8403
8405
|
Me.div,
|
|
8404
8406
|
{
|
|
8405
|
-
"data-side":
|
|
8407
|
+
"data-side": P,
|
|
8406
8408
|
"data-align": K,
|
|
8407
8409
|
...m,
|
|
8408
|
-
ref:
|
|
8410
|
+
ref: b,
|
|
8409
8411
|
style: {
|
|
8410
8412
|
...m.style,
|
|
8411
8413
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
@@ -8420,7 +8422,7 @@ var v2 = "PopperContent", [Qi, Ei] = ro(v2), io = A.forwardRef(
|
|
|
8420
8422
|
);
|
|
8421
8423
|
}
|
|
8422
8424
|
);
|
|
8423
|
-
io.displayName =
|
|
8425
|
+
io.displayName = b2;
|
|
8424
8426
|
var Ao = "PopperArrow", _i = {
|
|
8425
8427
|
top: "bottom",
|
|
8426
8428
|
right: "left",
|
|
@@ -8500,11 +8502,11 @@ po.displayName = o3;
|
|
|
8500
8502
|
function c3(e, t) {
|
|
8501
8503
|
return A.useReducer((r, n) => t[r][n] ?? r, e);
|
|
8502
8504
|
}
|
|
8503
|
-
var
|
|
8505
|
+
var P2 = (e) => {
|
|
8504
8506
|
const { present: t, children: r } = e, n = s3(t), o = typeof r == "function" ? r({ present: n.isPresent }) : A.Children.only(r), c = Ie(n.ref, i3(o));
|
|
8505
8507
|
return typeof r == "function" || n.isPresent ? A.cloneElement(o, { ref: c }) : null;
|
|
8506
8508
|
};
|
|
8507
|
-
|
|
8509
|
+
P2.displayName = "Presence";
|
|
8508
8510
|
function s3(e) {
|
|
8509
8511
|
const [t, r] = A.useState(), n = A.useRef(null), o = A.useRef(e), c = A.useRef("none"), s = e ? "mounted" : "unmounted", [i, l] = c3(s, {
|
|
8510
8512
|
mounted: {
|
|
@@ -8725,7 +8727,7 @@ var y3 = [
|
|
|
8725
8727
|
go.displayName = v3;
|
|
8726
8728
|
var b3 = go, [Pr] = J4("Tooltip", [
|
|
8727
8729
|
no
|
|
8728
|
-
]), zr = no(), xo = "TooltipProvider", P3 = 700,
|
|
8730
|
+
]), zr = no(), xo = "TooltipProvider", P3 = 700, mn = "tooltip.open", [z3, z2] = Pr(xo), Co = (e) => {
|
|
8729
8731
|
const {
|
|
8730
8732
|
__scopeTooltip: t,
|
|
8731
8733
|
delayDuration: r = P3,
|
|
@@ -8770,14 +8772,14 @@ var xt = "Tooltip", [H3, Ht] = Pr(xt), mo = (e) => {
|
|
|
8770
8772
|
onOpenChange: c,
|
|
8771
8773
|
disableHoverableContent: s,
|
|
8772
8774
|
delayDuration: i
|
|
8773
|
-
} = e, l =
|
|
8775
|
+
} = e, l = z2(xt, e.__scopeTooltip), u = zr(t), [d, p] = A.useState(null), g = Xi(), x = A.useRef(0), C = s ?? l.disableHoverableContent, m = i ?? l.delayDuration, f = A.useRef(!1), [O, v] = l3({
|
|
8774
8776
|
prop: n,
|
|
8775
8777
|
defaultProp: o ?? !1,
|
|
8776
8778
|
onChange: (I) => {
|
|
8777
|
-
I ? (l.onOpen(), document.dispatchEvent(new CustomEvent(
|
|
8779
|
+
I ? (l.onOpen(), document.dispatchEvent(new CustomEvent(mn))) : l.onClose(), c == null || c(I);
|
|
8778
8780
|
},
|
|
8779
8781
|
caller: xt
|
|
8780
|
-
}),
|
|
8782
|
+
}), b = A.useMemo(() => O ? f.current ? "delayed-open" : "instant-open" : "closed", [O]), V = A.useCallback(() => {
|
|
8781
8783
|
window.clearTimeout(x.current), x.current = 0, f.current = !1, v(!0);
|
|
8782
8784
|
}, [v]), z = A.useCallback(() => {
|
|
8783
8785
|
window.clearTimeout(x.current), x.current = 0, v(!1);
|
|
@@ -8794,7 +8796,7 @@ var xt = "Tooltip", [H3, Ht] = Pr(xt), mo = (e) => {
|
|
|
8794
8796
|
scope: t,
|
|
8795
8797
|
contentId: g,
|
|
8796
8798
|
open: O,
|
|
8797
|
-
stateAttribute:
|
|
8799
|
+
stateAttribute: b,
|
|
8798
8800
|
trigger: d,
|
|
8799
8801
|
onTriggerChange: p,
|
|
8800
8802
|
onTriggerEnter: A.useCallback(() => {
|
|
@@ -8811,9 +8813,9 @@ var xt = "Tooltip", [H3, Ht] = Pr(xt), mo = (e) => {
|
|
|
8811
8813
|
) });
|
|
8812
8814
|
};
|
|
8813
8815
|
mo.displayName = xt;
|
|
8814
|
-
var
|
|
8816
|
+
var jn = "TooltipTrigger", jo = A.forwardRef(
|
|
8815
8817
|
(e, t) => {
|
|
8816
|
-
const { __scopeTooltip: r, ...n } = e, o = Ht(
|
|
8818
|
+
const { __scopeTooltip: r, ...n } = e, o = Ht(jn, r), c = z2(jn, r), s = zr(r), i = A.useRef(null), l = Ie(t, i, o.onTriggerChange), u = A.useRef(!1), d = A.useRef(!1), p = A.useCallback(() => u.current = !1, []);
|
|
8817
8819
|
return A.useEffect(() => () => document.removeEventListener("pointerup", p), [p]), /* @__PURE__ */ a.jsx(r3, { asChild: !0, ...s, children: /* @__PURE__ */ a.jsx(
|
|
8818
8820
|
Me.button,
|
|
8819
8821
|
{
|
|
@@ -8839,25 +8841,25 @@ var mn = "TooltipTrigger", jo = A.forwardRef(
|
|
|
8839
8841
|
) });
|
|
8840
8842
|
}
|
|
8841
8843
|
);
|
|
8842
|
-
jo.displayName =
|
|
8843
|
-
var
|
|
8844
|
+
jo.displayName = jn;
|
|
8845
|
+
var H2 = "TooltipPortal", [k3, I3] = Pr(H2, {
|
|
8844
8846
|
forceMount: void 0
|
|
8845
8847
|
}), fo = (e) => {
|
|
8846
|
-
const { __scopeTooltip: t, forceMount: r, children: n, container: o } = e, c = Ht(
|
|
8847
|
-
return /* @__PURE__ */ a.jsx(k3, { scope: t, forceMount: r, children: /* @__PURE__ */ a.jsx(
|
|
8848
|
+
const { __scopeTooltip: t, forceMount: r, children: n, container: o } = e, c = Ht(H2, t);
|
|
8849
|
+
return /* @__PURE__ */ a.jsx(k3, { scope: t, forceMount: r, children: /* @__PURE__ */ a.jsx(P2, { present: r || c.open, children: /* @__PURE__ */ a.jsx(po, { asChild: !0, container: o, children: n }) }) });
|
|
8848
8850
|
};
|
|
8849
|
-
fo.displayName =
|
|
8851
|
+
fo.displayName = H2;
|
|
8850
8852
|
var Re = "TooltipContent", yo = A.forwardRef(
|
|
8851
8853
|
(e, t) => {
|
|
8852
8854
|
const r = I3(Re, e.__scopeTooltip), { forceMount: n = r.forceMount, side: o = "top", ...c } = e, s = Ht(Re, e.__scopeTooltip);
|
|
8853
|
-
return /* @__PURE__ */ a.jsx(
|
|
8855
|
+
return /* @__PURE__ */ a.jsx(P2, { present: n || s.open, children: s.disableHoverableContent ? /* @__PURE__ */ a.jsx(Oo, { side: o, ...c, ref: t }) : /* @__PURE__ */ a.jsx(M3, { side: o, ...c, ref: t }) });
|
|
8854
8856
|
}
|
|
8855
8857
|
), M3 = A.forwardRef((e, t) => {
|
|
8856
|
-
const r = Ht(Re, e.__scopeTooltip), n =
|
|
8858
|
+
const r = Ht(Re, e.__scopeTooltip), n = z2(Re, e.__scopeTooltip), o = A.useRef(null), c = Ie(t, o), [s, i] = A.useState(null), { trigger: l, onClose: u } = r, d = o.current, { onPointerInTransitChange: p } = n, g = A.useCallback(() => {
|
|
8857
8859
|
i(null), p(!1);
|
|
8858
8860
|
}, [p]), x = A.useCallback(
|
|
8859
8861
|
(C, m) => {
|
|
8860
|
-
const f = C.currentTarget, O = { x: C.clientX, y: C.clientY }, v = q3(O, f.getBoundingClientRect()),
|
|
8862
|
+
const f = C.currentTarget, O = { x: C.clientX, y: C.clientY }, v = q3(O, f.getBoundingClientRect()), b = U3(O, v), V = w3(m.getBoundingClientRect()), z = W3([...b, ...V]);
|
|
8861
8863
|
i(z), p(!0);
|
|
8862
8864
|
},
|
|
8863
8865
|
[p]
|
|
@@ -8872,8 +8874,8 @@ var Re = "TooltipContent", yo = A.forwardRef(
|
|
|
8872
8874
|
}, [l, d, x, g]), A.useEffect(() => {
|
|
8873
8875
|
if (s) {
|
|
8874
8876
|
const C = (m) => {
|
|
8875
|
-
const f = m.target, O = { x: m.clientX, y: m.clientY }, v = (l == null ? void 0 : l.contains(f)) || (d == null ? void 0 : d.contains(f)),
|
|
8876
|
-
v ? g() :
|
|
8877
|
+
const f = m.target, O = { x: m.clientX, y: m.clientY }, v = (l == null ? void 0 : l.contains(f)) || (d == null ? void 0 : d.contains(f)), b = !T3(O, s);
|
|
8878
|
+
v ? g() : b && (g(), u());
|
|
8877
8879
|
};
|
|
8878
8880
|
return document.addEventListener("pointermove", C), () => document.removeEventListener("pointermove", C);
|
|
8879
8881
|
}
|
|
@@ -8888,7 +8890,7 @@ var Re = "TooltipContent", yo = A.forwardRef(
|
|
|
8888
8890
|
onPointerDownOutside: s,
|
|
8889
8891
|
...i
|
|
8890
8892
|
} = e, l = Ht(Re, r), u = zr(r), { onClose: d } = l;
|
|
8891
|
-
return A.useEffect(() => (document.addEventListener(
|
|
8893
|
+
return A.useEffect(() => (document.addEventListener(mn, d), () => document.removeEventListener(mn, d)), [d]), A.useEffect(() => {
|
|
8892
8894
|
if (l.trigger) {
|
|
8893
8895
|
const p = (g) => {
|
|
8894
8896
|
const x = g.target;
|
|
@@ -9122,7 +9124,7 @@ const Jd = F3, kt = ({
|
|
|
9122
9124
|
"aria-hidden": !0,
|
|
9123
9125
|
className: y(
|
|
9124
9126
|
"pointer-events-none absolute inset-x-0 top-1/2 h-4 -translate-y-1/2 rounded-full transition-colors",
|
|
9125
|
-
e ? "bg-grey-900" : "bg-grey-
|
|
9127
|
+
e ? "bg-grey-900" : "bg-grey-400"
|
|
9126
9128
|
)
|
|
9127
9129
|
}
|
|
9128
9130
|
),
|
|
@@ -9131,8 +9133,8 @@ const Jd = F3, kt = ({
|
|
|
9131
9133
|
{
|
|
9132
9134
|
"aria-hidden": !0,
|
|
9133
9135
|
className: y(
|
|
9134
|
-
"relative inline-block size-6 rounded-full
|
|
9135
|
-
e ? "translate-x-3" : "translate-x-0"
|
|
9136
|
+
"relative inline-block size-6 rounded-full border border-solid shadow-raise2 transition-[transform,border-color,background-color]",
|
|
9137
|
+
e ? "translate-x-3 border-grey-900 bg-white" : "translate-x-0 border-grey-400 bg-grey-50"
|
|
9136
9138
|
)
|
|
9137
9139
|
}
|
|
9138
9140
|
)
|
|
@@ -9327,7 +9329,7 @@ const Jd = F3, kt = ({
|
|
|
9327
9329
|
id: l,
|
|
9328
9330
|
...u
|
|
9329
9331
|
}) => {
|
|
9330
|
-
const d =
|
|
9332
|
+
const d = zn(), p = l ?? d, g = s ?? o === "disabled", x = g ? "disabled" : o, C = !!n;
|
|
9331
9333
|
return /* @__PURE__ */ a.jsxs("div", { className: y("flex w-full flex-col gap-1", i), children: [
|
|
9332
9334
|
e && /* @__PURE__ */ a.jsx("label", { htmlFor: p, className: "text-caption-2-em text-display-on-light-secondary", children: e }),
|
|
9333
9335
|
/* @__PURE__ */ a.jsx(
|
|
@@ -9370,7 +9372,7 @@ const Jd = F3, kt = ({
|
|
|
9370
9372
|
rows: l = 4,
|
|
9371
9373
|
...u
|
|
9372
9374
|
}) => {
|
|
9373
|
-
const d =
|
|
9375
|
+
const d = zn(), p = i ?? d;
|
|
9374
9376
|
return /* @__PURE__ */ a.jsxs("div", { className: y("flex w-full flex-col gap-1", s), children: [
|
|
9375
9377
|
e && /* @__PURE__ */ a.jsx("label", { htmlFor: p, className: "text-caption-2-em text-display-on-light-secondary", children: e }),
|
|
9376
9378
|
/* @__PURE__ */ a.jsx(
|
|
@@ -9504,7 +9506,7 @@ const Jd = F3, kt = ({
|
|
|
9504
9506
|
id: s,
|
|
9505
9507
|
...i
|
|
9506
9508
|
}) => {
|
|
9507
|
-
const l =
|
|
9509
|
+
const l = zn(), u = s ?? l, d = Hn(null);
|
|
9508
9510
|
ye(() => {
|
|
9509
9511
|
d.current && (d.current.indeterminate = t);
|
|
9510
9512
|
}, [t]);
|
|
@@ -9587,7 +9589,7 @@ const Jd = F3, kt = ({
|
|
|
9587
9589
|
);
|
|
9588
9590
|
var kr = "Tabs", [$3] = ze(kr, [
|
|
9589
9591
|
fr
|
|
9590
|
-
]), bo = fr(), [eA,
|
|
9592
|
+
]), bo = fr(), [eA, k2] = $3(kr), Po = A.forwardRef(
|
|
9591
9593
|
(e, t) => {
|
|
9592
9594
|
const {
|
|
9593
9595
|
__scopeTabs: r,
|
|
@@ -9598,7 +9600,7 @@ var kr = "Tabs", [$3] = ze(kr, [
|
|
|
9598
9600
|
dir: i,
|
|
9599
9601
|
activationMode: l = "automatic",
|
|
9600
9602
|
...u
|
|
9601
|
-
} = e, d =
|
|
9603
|
+
} = e, d = Dn(i), [p, g] = gr({
|
|
9602
9604
|
prop: n,
|
|
9603
9605
|
onChange: o,
|
|
9604
9606
|
defaultProp: c ?? "",
|
|
@@ -9630,7 +9632,7 @@ var kr = "Tabs", [$3] = ze(kr, [
|
|
|
9630
9632
|
Po.displayName = kr;
|
|
9631
9633
|
var zo = "TabsList", Ho = A.forwardRef(
|
|
9632
9634
|
(e, t) => {
|
|
9633
|
-
const { __scopeTabs: r, loop: n = !0, ...o } = e, c =
|
|
9635
|
+
const { __scopeTabs: r, loop: n = !0, ...o } = e, c = k2(zo, r), s = bo(r);
|
|
9634
9636
|
return /* @__PURE__ */ a.jsx(
|
|
9635
9637
|
a4,
|
|
9636
9638
|
{
|
|
@@ -9655,7 +9657,7 @@ var zo = "TabsList", Ho = A.forwardRef(
|
|
|
9655
9657
|
Ho.displayName = zo;
|
|
9656
9658
|
var ko = "TabsTrigger", Io = A.forwardRef(
|
|
9657
9659
|
(e, t) => {
|
|
9658
|
-
const { __scopeTabs: r, value: n, disabled: o = !1, ...c } = e, s =
|
|
9660
|
+
const { __scopeTabs: r, value: n, disabled: o = !1, ...c } = e, s = k2(ko, r), i = bo(r), l = No(s.baseId, n), u = ho(s.baseId, n), d = n === s.value;
|
|
9659
9661
|
return /* @__PURE__ */ a.jsx(
|
|
9660
9662
|
o4,
|
|
9661
9663
|
{
|
|
@@ -9695,7 +9697,7 @@ var ko = "TabsTrigger", Io = A.forwardRef(
|
|
|
9695
9697
|
Io.displayName = ko;
|
|
9696
9698
|
var Mo = "TabsContent", Ko = A.forwardRef(
|
|
9697
9699
|
(e, t) => {
|
|
9698
|
-
const { __scopeTabs: r, value: n, forceMount: o, children: c, ...s } = e, i =
|
|
9700
|
+
const { __scopeTabs: r, value: n, forceMount: o, children: c, ...s } = e, i = k2(Mo, r), l = No(i.baseId, n), u = ho(i.baseId, n), d = n === i.value, p = A.useRef(d);
|
|
9699
9701
|
return A.useEffect(() => {
|
|
9700
9702
|
const g = requestAnimationFrame(() => p.current = !1);
|
|
9701
9703
|
return () => cancelAnimationFrame(g);
|
|
@@ -9728,7 +9730,7 @@ function ho(e, t) {
|
|
|
9728
9730
|
return `${e}-content-${t}`;
|
|
9729
9731
|
}
|
|
9730
9732
|
var tA = Po, So = Ho, qo = Io, Uo = Ko;
|
|
9731
|
-
const
|
|
9733
|
+
const I2 = q0({
|
|
9732
9734
|
type: "tabs",
|
|
9733
9735
|
appearance: "soft"
|
|
9734
9736
|
}), rA = ({
|
|
@@ -9737,7 +9739,7 @@ const k2 = q0({
|
|
|
9737
9739
|
className: r,
|
|
9738
9740
|
children: n,
|
|
9739
9741
|
...o
|
|
9740
|
-
}) => /* @__PURE__ */ a.jsx(
|
|
9742
|
+
}) => /* @__PURE__ */ a.jsx(I2.Provider, { value: { type: e, appearance: t }, children: /* @__PURE__ */ a.jsx(
|
|
9741
9743
|
tA,
|
|
9742
9744
|
{
|
|
9743
9745
|
className: y("flex flex-col", r),
|
|
@@ -9747,7 +9749,7 @@ const k2 = q0({
|
|
|
9747
9749
|
children: n
|
|
9748
9750
|
}
|
|
9749
9751
|
) }), wo = T1(({ className: e, ...t }, r) => {
|
|
9750
|
-
const { type: n } = na(
|
|
9752
|
+
const { type: n } = na(I2);
|
|
9751
9753
|
return /* @__PURE__ */ a.jsx(
|
|
9752
9754
|
So,
|
|
9753
9755
|
{
|
|
@@ -9764,7 +9766,7 @@ const k2 = q0({
|
|
|
9764
9766
|
});
|
|
9765
9767
|
wo.displayName = So.displayName;
|
|
9766
9768
|
const To = T1(({ className: e, children: t, ...r }, n) => {
|
|
9767
|
-
const { type: o, appearance: c } = na(
|
|
9769
|
+
const { type: o, appearance: c } = na(I2);
|
|
9768
9770
|
return /* @__PURE__ */ a.jsx(
|
|
9769
9771
|
qo,
|
|
9770
9772
|
{
|
|
@@ -9963,7 +9965,7 @@ const mp = Object.assign(cA, {
|
|
|
9963
9965
|
}), AA = {
|
|
9964
9966
|
chat: /* @__PURE__ */ a.jsx(Ar, { className: "size-4" }),
|
|
9965
9967
|
issue: /* @__PURE__ */ a.jsx(At, { className: "size-4" }),
|
|
9966
|
-
report: /* @__PURE__ */ a.jsx(
|
|
9968
|
+
report: /* @__PURE__ */ a.jsx(Sn, { className: "size-4" })
|
|
9967
9969
|
}, lA = ({
|
|
9968
9970
|
variant: e,
|
|
9969
9971
|
type: t,
|
|
@@ -9997,7 +9999,7 @@ const mp = Object.assign(cA, {
|
|
|
9997
9999
|
u
|
|
9998
10000
|
),
|
|
9999
10001
|
children: [
|
|
10000
|
-
/* @__PURE__ */ a.jsx("span", { className: "shrink-0 text-display-on-light-secondary", children: i ?? AA[p] ?? /* @__PURE__ */ a.jsx(
|
|
10002
|
+
/* @__PURE__ */ a.jsx("span", { className: "shrink-0 text-display-on-light-secondary", children: i ?? AA[p] ?? /* @__PURE__ */ a.jsx(qn, { className: "size-4" }) }),
|
|
10001
10003
|
/* @__PURE__ */ a.jsxs("span", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
10002
10004
|
/* @__PURE__ */ a.jsxs("span", { className: "flex min-h-6 w-full items-center gap-4", children: [
|
|
10003
10005
|
/* @__PURE__ */ a.jsx("span", { className: "min-w-0 flex-1 truncate text-caption-1-em text-display-on-light-primary", children: n }),
|
|
@@ -10101,7 +10103,7 @@ var Do = "DialogTrigger", Go = A.forwardRef(
|
|
|
10101
10103
|
"aria-haspopup": "dialog",
|
|
10102
10104
|
"aria-expanded": o.open,
|
|
10103
10105
|
"aria-controls": o.open ? o.contentId : void 0,
|
|
10104
|
-
"data-state":
|
|
10106
|
+
"data-state": q2(o.open),
|
|
10105
10107
|
...n,
|
|
10106
10108
|
ref: c,
|
|
10107
10109
|
onClick: Q(e.onClick, o.onOpenToggle)
|
|
@@ -10110,20 +10112,20 @@ var Do = "DialogTrigger", Go = A.forwardRef(
|
|
|
10110
10112
|
}
|
|
10111
10113
|
);
|
|
10112
10114
|
Go.displayName = Do;
|
|
10113
|
-
var
|
|
10115
|
+
var M2 = "DialogPortal", [dA, Bo] = Ro(M2, {
|
|
10114
10116
|
forceMount: void 0
|
|
10115
10117
|
}), Xo = (e) => {
|
|
10116
|
-
const { __scopeDialog: t, forceMount: r, children: n, container: o } = e, c = X1(
|
|
10117
|
-
return /* @__PURE__ */ a.jsx(dA, { scope: t, forceMount: r, children: A.Children.map(n, (s) => /* @__PURE__ */ a.jsx(ae, { present: r || c.open, children: /* @__PURE__ */ a.jsx(
|
|
10118
|
+
const { __scopeDialog: t, forceMount: r, children: n, container: o } = e, c = X1(M2, t);
|
|
10119
|
+
return /* @__PURE__ */ a.jsx(dA, { scope: t, forceMount: r, children: A.Children.map(n, (s) => /* @__PURE__ */ a.jsx(ae, { present: r || c.open, children: /* @__PURE__ */ a.jsx(l2, { asChild: !0, container: o, children: s }) })) });
|
|
10118
10120
|
};
|
|
10119
|
-
Xo.displayName =
|
|
10120
|
-
var rr = "DialogOverlay",
|
|
10121
|
+
Xo.displayName = M2;
|
|
10122
|
+
var rr = "DialogOverlay", K2 = A.forwardRef(
|
|
10121
10123
|
(e, t) => {
|
|
10122
10124
|
const r = Bo(rr, e.__scopeDialog), { forceMount: n = r.forceMount, ...o } = e, c = X1(rr, e.__scopeDialog);
|
|
10123
10125
|
return c.modal ? /* @__PURE__ */ a.jsx(ae, { present: n || c.open, children: /* @__PURE__ */ a.jsx(gA, { ...o, ref: t }) }) : null;
|
|
10124
10126
|
}
|
|
10125
10127
|
);
|
|
10126
|
-
|
|
10128
|
+
K2.displayName = rr;
|
|
10127
10129
|
var pA = /* @__PURE__ */ lt("DialogOverlay.RemoveScroll"), gA = A.forwardRef(
|
|
10128
10130
|
(e, t) => {
|
|
10129
10131
|
const { __scopeDialog: r, ...n } = e, o = X1(rr, r), c = y9(), s = O1(t, c);
|
|
@@ -10133,7 +10135,7 @@ var pA = /* @__PURE__ */ lt("DialogOverlay.RemoveScroll"), gA = A.forwardRef(
|
|
|
10133
10135
|
/* @__PURE__ */ a.jsx(Or, { as: pA, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ a.jsx(
|
|
10134
10136
|
p1.div,
|
|
10135
10137
|
{
|
|
10136
|
-
"data-state":
|
|
10138
|
+
"data-state": q2(o.open),
|
|
10137
10139
|
...n,
|
|
10138
10140
|
ref: s,
|
|
10139
10141
|
style: { pointerEvents: "auto", ...n.style }
|
|
@@ -10141,19 +10143,19 @@ var pA = /* @__PURE__ */ lt("DialogOverlay.RemoveScroll"), gA = A.forwardRef(
|
|
|
10141
10143
|
) })
|
|
10142
10144
|
);
|
|
10143
10145
|
}
|
|
10144
|
-
), Fe = "DialogContent",
|
|
10146
|
+
), Fe = "DialogContent", N2 = A.forwardRef(
|
|
10145
10147
|
(e, t) => {
|
|
10146
10148
|
const r = Bo(Fe, e.__scopeDialog), { forceMount: n = r.forceMount, ...o } = e, c = X1(Fe, e.__scopeDialog);
|
|
10147
10149
|
return /* @__PURE__ */ a.jsx(ae, { present: n || c.open, children: c.modal ? /* @__PURE__ */ a.jsx(xA, { ...o, ref: t }) : /* @__PURE__ */ a.jsx(CA, { ...o, ref: t }) });
|
|
10148
10150
|
}
|
|
10149
10151
|
);
|
|
10150
|
-
|
|
10152
|
+
N2.displayName = Fe;
|
|
10151
10153
|
var xA = A.forwardRef(
|
|
10152
10154
|
(e, t) => {
|
|
10153
10155
|
const r = X1(Fe, e.__scopeDialog), n = A.useRef(null), o = O1(t, r.contentRef, n);
|
|
10154
10156
|
return A.useEffect(() => {
|
|
10155
10157
|
const c = n.current;
|
|
10156
|
-
if (c) return
|
|
10158
|
+
if (c) return u2(c);
|
|
10157
10159
|
}, []), /* @__PURE__ */ a.jsx(
|
|
10158
10160
|
Zo,
|
|
10159
10161
|
{
|
|
@@ -10203,7 +10205,7 @@ var xA = A.forwardRef(
|
|
|
10203
10205
|
(e, t) => {
|
|
10204
10206
|
const { __scopeDialog: r, trapFocus: n, onOpenAutoFocus: o, onCloseAutoFocus: c, ...s } = e, i = X1(Fe, r);
|
|
10205
10207
|
return Ia(), /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsx(
|
|
10206
|
-
|
|
10208
|
+
Xn,
|
|
10207
10209
|
{
|
|
10208
10210
|
asChild: !0,
|
|
10209
10211
|
loop: !0,
|
|
@@ -10211,13 +10213,13 @@ var xA = A.forwardRef(
|
|
|
10211
10213
|
onMountAutoFocus: o,
|
|
10212
10214
|
onUnmountAutoFocus: c,
|
|
10213
10215
|
children: /* @__PURE__ */ a.jsx(
|
|
10214
|
-
|
|
10216
|
+
Bn,
|
|
10215
10217
|
{
|
|
10216
10218
|
role: "dialog",
|
|
10217
10219
|
id: i.contentId,
|
|
10218
10220
|
"aria-describedby": i.descriptionId,
|
|
10219
10221
|
"aria-labelledby": i.titleId,
|
|
10220
|
-
"data-state":
|
|
10222
|
+
"data-state": q2(i.open),
|
|
10221
10223
|
...s,
|
|
10222
10224
|
ref: t,
|
|
10223
10225
|
deferPointerDownOutside: !0,
|
|
@@ -10227,20 +10229,20 @@ var xA = A.forwardRef(
|
|
|
10227
10229
|
}
|
|
10228
10230
|
) });
|
|
10229
10231
|
}
|
|
10230
|
-
), Yo = "DialogTitle",
|
|
10232
|
+
), Yo = "DialogTitle", h2 = A.forwardRef(
|
|
10231
10233
|
(e, t) => {
|
|
10232
10234
|
const { __scopeDialog: r, ...n } = e, o = X1(Yo, r);
|
|
10233
10235
|
return /* @__PURE__ */ a.jsx(p1.h2, { id: o.titleId, ...n, ref: t });
|
|
10234
10236
|
}
|
|
10235
10237
|
);
|
|
10236
|
-
|
|
10237
|
-
var Lo = "DialogDescription",
|
|
10238
|
+
h2.displayName = Yo;
|
|
10239
|
+
var Lo = "DialogDescription", S2 = A.forwardRef(
|
|
10238
10240
|
(e, t) => {
|
|
10239
10241
|
const { __scopeDialog: r, ...n } = e, o = X1(Lo, r);
|
|
10240
10242
|
return /* @__PURE__ */ a.jsx(p1.p, { id: o.descriptionId, ...n, ref: t });
|
|
10241
10243
|
}
|
|
10242
10244
|
);
|
|
10243
|
-
|
|
10245
|
+
S2.displayName = Lo;
|
|
10244
10246
|
var Jo = "DialogClose", Qo = A.forwardRef(
|
|
10245
10247
|
(e, t) => {
|
|
10246
10248
|
const { __scopeDialog: r, ...n } = e, o = X1(Jo, r);
|
|
@@ -10256,11 +10258,11 @@ var Jo = "DialogClose", Qo = A.forwardRef(
|
|
|
10256
10258
|
}
|
|
10257
10259
|
);
|
|
10258
10260
|
Qo.displayName = Jo;
|
|
10259
|
-
function
|
|
10261
|
+
function q2(e) {
|
|
10260
10262
|
return e ? "open" : "closed";
|
|
10261
10263
|
}
|
|
10262
10264
|
const mA = Fo, fp = Go, yp = Qo, jA = Xo, Eo = T1(({ className: e, ...t }, r) => /* @__PURE__ */ a.jsx(
|
|
10263
|
-
|
|
10265
|
+
K2,
|
|
10264
10266
|
{
|
|
10265
10267
|
ref: r,
|
|
10266
10268
|
className: y(
|
|
@@ -10272,7 +10274,7 @@ const mA = Fo, fp = Go, yp = Qo, jA = Xo, Eo = T1(({ className: e, ...t }, r) =>
|
|
|
10272
10274
|
...t
|
|
10273
10275
|
}
|
|
10274
10276
|
));
|
|
10275
|
-
Eo.displayName =
|
|
10277
|
+
Eo.displayName = K2.displayName;
|
|
10276
10278
|
const _o = T1(
|
|
10277
10279
|
({
|
|
10278
10280
|
className: e,
|
|
@@ -10283,7 +10285,7 @@ const _o = T1(
|
|
|
10283
10285
|
}, c) => /* @__PURE__ */ a.jsxs(jA, { children: [
|
|
10284
10286
|
r && /* @__PURE__ */ a.jsx(Eo, { className: n }),
|
|
10285
10287
|
/* @__PURE__ */ a.jsx(
|
|
10286
|
-
|
|
10288
|
+
N2,
|
|
10287
10289
|
{
|
|
10288
10290
|
ref: c,
|
|
10289
10291
|
className: y(
|
|
@@ -10300,25 +10302,25 @@ const _o = T1(
|
|
|
10300
10302
|
)
|
|
10301
10303
|
] })
|
|
10302
10304
|
);
|
|
10303
|
-
_o.displayName =
|
|
10305
|
+
_o.displayName = N2.displayName;
|
|
10304
10306
|
const $o = T1(({ className: e, ...t }, r) => /* @__PURE__ */ a.jsx(
|
|
10305
|
-
|
|
10307
|
+
h2,
|
|
10306
10308
|
{
|
|
10307
10309
|
ref: r,
|
|
10308
10310
|
className: y("text-subheader-em text-display-on-light-primary", e),
|
|
10309
10311
|
...t
|
|
10310
10312
|
}
|
|
10311
10313
|
));
|
|
10312
|
-
$o.displayName =
|
|
10314
|
+
$o.displayName = h2.displayName;
|
|
10313
10315
|
const ec = T1(({ className: e, ...t }, r) => /* @__PURE__ */ a.jsx(
|
|
10314
|
-
|
|
10316
|
+
S2,
|
|
10315
10317
|
{
|
|
10316
10318
|
ref: r,
|
|
10317
10319
|
className: y("text-caption-2 text-display-on-light-secondary", e),
|
|
10318
10320
|
...t
|
|
10319
10321
|
}
|
|
10320
10322
|
));
|
|
10321
|
-
ec.displayName =
|
|
10323
|
+
ec.displayName = S2.displayName;
|
|
10322
10324
|
const Op = ({
|
|
10323
10325
|
children: e,
|
|
10324
10326
|
className: t
|
|
@@ -10399,11 +10401,11 @@ const Op = ({
|
|
|
10399
10401
|
documentUrl: i,
|
|
10400
10402
|
title: l = "PDF Viewer"
|
|
10401
10403
|
}) => {
|
|
10402
|
-
const [u, d] = rc(), [p, g] = nc(), [{ pan: x, isDragging: C }, m] = ac(), [{ currentPage: f }, O] = oc(c, n), [v,
|
|
10404
|
+
const [u, d] = rc(), [p, g] = nc(), [{ pan: x, isDragging: C }, m] = ac(), [{ currentPage: f }, O] = oc(c, n), [v, b] = g1("");
|
|
10403
10405
|
ye(() => {
|
|
10404
10406
|
(async () => {
|
|
10405
10407
|
const k = await s(f);
|
|
10406
|
-
|
|
10408
|
+
b(k);
|
|
10407
10409
|
})();
|
|
10408
10410
|
}, [f, s]);
|
|
10409
10411
|
const V = () => {
|
|
@@ -10414,7 +10416,7 @@ const Op = ({
|
|
|
10414
10416
|
tc.Header,
|
|
10415
10417
|
{
|
|
10416
10418
|
onClose: o,
|
|
10417
|
-
right: i ? /* @__PURE__ */ a.jsx(K1, { hierarchy: "quaternary", size: "small", "aria-label": "Open", onClick: V, children: /* @__PURE__ */ a.jsx(
|
|
10419
|
+
right: i ? /* @__PURE__ */ a.jsx(K1, { hierarchy: "quaternary", size: "small", "aria-label": "Open", onClick: V, children: /* @__PURE__ */ a.jsx(hn, { size: "small" }) }) : void 0,
|
|
10418
10420
|
children: l
|
|
10419
10421
|
}
|
|
10420
10422
|
),
|
|
@@ -10510,7 +10512,7 @@ const Op = ({
|
|
|
10510
10512
|
] })
|
|
10511
10513
|
] });
|
|
10512
10514
|
};
|
|
10513
|
-
|
|
10515
|
+
t5.GlobalWorkerOptions.workerSrc = `//unpkg.com/pdfjs-dist@${t5.version}/build/pdf.worker.min.mjs`;
|
|
10514
10516
|
const nt = "flex h-8 w-8 items-center justify-center rounded-control border border-divider-primary bg-white text-display-on-light-secondary hover:bg-background-secondary disabled:opacity-50", vp = ({
|
|
10515
10517
|
onClose: e,
|
|
10516
10518
|
src: t,
|
|
@@ -10518,7 +10520,7 @@ const nt = "flex h-8 w-8 items-center justify-center rounded-control border bord
|
|
|
10518
10520
|
className: n,
|
|
10519
10521
|
onOpen: o
|
|
10520
10522
|
}) => {
|
|
10521
|
-
const [c, s] = rc(), [i, l] = nc(), [{ currentPage: u, totalPages: d }, p] = oc(), [{ pan: g, isDragging: x }, C] = ac(), [m, f] = g1(1), O =
|
|
10523
|
+
const [c, s] = rc(), [i, l] = nc(), [{ currentPage: u, totalPages: d }, p] = oc(), [{ pan: g, isDragging: x }, C] = ac(), [m, f] = g1(1), O = Hn(null);
|
|
10522
10524
|
ye(() => {
|
|
10523
10525
|
const V = () => {
|
|
10524
10526
|
if (!O.current) return;
|
|
@@ -10533,9 +10535,9 @@ const nt = "flex h-8 w-8 items-center justify-center rounded-control border bord
|
|
|
10533
10535
|
return;
|
|
10534
10536
|
}
|
|
10535
10537
|
window.open(t, "_blank", "noopener,noreferrer");
|
|
10536
|
-
},
|
|
10538
|
+
}, b = /* @__PURE__ */ a.jsx(K1, { hierarchy: "quaternary", size: "small", "aria-label": "Open in new tab", onClick: v, children: /* @__PURE__ */ a.jsx(hn, { size: "small" }) });
|
|
10537
10539
|
return /* @__PURE__ */ a.jsxs("div", { className: y("flex h-full flex-col rounded-t-lg shadow-raise2", n), ref: O, children: [
|
|
10538
|
-
/* @__PURE__ */ a.jsx(tc.Header, { onClose: e, right:
|
|
10540
|
+
/* @__PURE__ */ a.jsx(tc.Header, { onClose: e, right: b, children: r }),
|
|
10539
10541
|
/* @__PURE__ */ a.jsxs("div", { className: "grid h-full grow overflow-hidden shadow", children: [
|
|
10540
10542
|
/* @__PURE__ */ a.jsx(
|
|
10541
10543
|
"div",
|
|
@@ -10758,38 +10760,38 @@ const bp = ({
|
|
|
10758
10760
|
onSaveRef: o,
|
|
10759
10761
|
readonly: c = !1
|
|
10760
10762
|
}) => {
|
|
10761
|
-
const [s, i] = g1([]), [l, u] = g1(!0), [d, p] = g1(null), [g, x] = g1(0), C =
|
|
10762
|
-
const
|
|
10763
|
+
const [s, i] = g1([]), [l, u] = g1(!0), [d, p] = g1(null), [g, x] = g1(0), C = Hn(null), m = P1((H) => {
|
|
10764
|
+
const P = /\{([^}]+)\}/g, K = [];
|
|
10763
10765
|
let U;
|
|
10764
|
-
for (; (U =
|
|
10766
|
+
for (; (U = P.exec(H)) !== null; )
|
|
10765
10767
|
K.push(U[1]);
|
|
10766
10768
|
return [...new Set(K)];
|
|
10767
|
-
}, []), f = P1((H,
|
|
10768
|
-
H1 = { ...H1, [H]:
|
|
10769
|
+
}, []), f = P1((H, P) => {
|
|
10770
|
+
H1 = { ...H1, [H]: P }, b(H, P), r == null || r(H1);
|
|
10769
10771
|
}, [r]), O = P1(
|
|
10770
|
-
(H,
|
|
10772
|
+
(H, P) => {
|
|
10771
10773
|
!Object.entries(t.properties || {}).find(([U, F]) => {
|
|
10772
10774
|
var $;
|
|
10773
10775
|
const Y = F.docx_mapping, c1 = (Y == null ? void 0 : Y.type) === "checkbox" && Y.name === H;
|
|
10774
|
-
c1 && f(U,
|
|
10776
|
+
c1 && f(U, P);
|
|
10775
10777
|
const o1 = (Y == null ? void 0 : Y.type) === "checkbox" && Y.true_name === H, E = (Y == null ? void 0 : Y.type) === "checkbox" && Y.false_name === H;
|
|
10776
|
-
o1 && f(U,
|
|
10778
|
+
o1 && f(U, P), E && f(U, !P);
|
|
10777
10779
|
const L = (Y == null ? void 0 : Y.type) === "radio" && (($ = Y.mapping) == null ? void 0 : $.find(
|
|
10778
10780
|
(s1) => s1.name === H
|
|
10779
10781
|
));
|
|
10780
10782
|
return L && f(U, L.value), c1 || o1 || E || !!L;
|
|
10781
|
-
}) && f(H,
|
|
10783
|
+
}) && f(H, P);
|
|
10782
10784
|
},
|
|
10783
10785
|
[f, t]
|
|
10784
10786
|
), v = P1(
|
|
10785
|
-
(H,
|
|
10787
|
+
(H, P) => {
|
|
10786
10788
|
const K = G5[H];
|
|
10787
|
-
return !(
|
|
10789
|
+
return !(P === K || P === "" && K == null || K === "" && P == null);
|
|
10788
10790
|
},
|
|
10789
10791
|
[]
|
|
10790
|
-
),
|
|
10791
|
-
(H,
|
|
10792
|
-
const K = !!C.current, U = v(H,
|
|
10792
|
+
), b = P1(
|
|
10793
|
+
(H, P) => {
|
|
10794
|
+
const K = !!C.current, U = v(H, P);
|
|
10793
10795
|
K && C.current.querySelectorAll(
|
|
10794
10796
|
`[data-field-path="${H}"]`
|
|
10795
10797
|
).forEach((t1) => {
|
|
@@ -10799,10 +10801,10 @@ const bp = ({
|
|
|
10799
10801
|
},
|
|
10800
10802
|
[v]
|
|
10801
10803
|
), V = P1(() => {
|
|
10802
|
-
!!C.current && Object.entries(H1).forEach(([
|
|
10803
|
-
P
|
|
10804
|
+
!!C.current && Object.entries(H1).forEach(([P, K]) => {
|
|
10805
|
+
b(P, K);
|
|
10804
10806
|
});
|
|
10805
|
-
}, [
|
|
10807
|
+
}, [b]), z = P1(async () => {
|
|
10806
10808
|
r == null || r(H1), x((H) => H + 1);
|
|
10807
10809
|
}, [r]);
|
|
10808
10810
|
ye(() => {
|
|
@@ -10811,11 +10813,11 @@ const bp = ({
|
|
|
10811
10813
|
const k = P1(
|
|
10812
10814
|
async (H) => {
|
|
10813
10815
|
try {
|
|
10814
|
-
const K = await (await fetch(e)).arrayBuffer(), U = new
|
|
10816
|
+
const K = await (await fetch(e)).arrayBuffer(), U = new e5(K), F = {};
|
|
10815
10817
|
Object.entries(H).forEach(([E, L]) => {
|
|
10816
10818
|
(typeof L == "boolean" || L === "true" || L === "false") && (F[E] = L === !0 || L === "true");
|
|
10817
10819
|
});
|
|
10818
|
-
const t1 = new
|
|
10820
|
+
const t1 = new $2(U, {
|
|
10819
10821
|
paragraphLoop: !0,
|
|
10820
10822
|
linebreaks: !0,
|
|
10821
10823
|
nullGetter: (E) => `||| |||${E.value || "unknown_field"}|||`,
|
|
@@ -10837,18 +10839,18 @@ const bp = ({
|
|
|
10837
10839
|
type: "blob",
|
|
10838
10840
|
mimeType: "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
|
|
10839
10841
|
});
|
|
10840
|
-
} catch (
|
|
10841
|
-
throw console.error("Error processing document:",
|
|
10842
|
-
|
|
10842
|
+
} catch (P) {
|
|
10843
|
+
throw console.error("Error processing document:", P), new Error(
|
|
10844
|
+
P instanceof Error ? P.message : "Failed to process document"
|
|
10843
10845
|
);
|
|
10844
10846
|
}
|
|
10845
10847
|
},
|
|
10846
10848
|
[e, t]
|
|
10847
10849
|
), I = P1(
|
|
10848
|
-
(H,
|
|
10850
|
+
(H, P, K, U) => {
|
|
10849
10851
|
const F = document.createElement("span");
|
|
10850
10852
|
F.className = "inline-field-container", F.setAttribute("data-field-path", H);
|
|
10851
|
-
const t1 = c, Y =
|
|
10853
|
+
const t1 = c, Y = P || H1[H] || "", c1 = () => {
|
|
10852
10854
|
const u1 = K.type === "boolean" ? (() => {
|
|
10853
10855
|
const _ = document.createElement("span");
|
|
10854
10856
|
return _.textContent = Y === "true" || H1[H] === !0 ? "☑" : "☐", _.className = "inline-checkbox-readonly", _;
|
|
@@ -10863,7 +10865,7 @@ const bp = ({
|
|
|
10863
10865
|
return F.appendChild(u1), F;
|
|
10864
10866
|
}, o1 = () => {
|
|
10865
10867
|
const J = document.createElement("input");
|
|
10866
|
-
return J.type = "checkbox", J.checked =
|
|
10868
|
+
return J.type = "checkbox", J.checked = P === "true" || H1[H] === !0, J.className = "inline-checkbox rounded border-gray-300 text-green-600 focus:ring-green-500", J.setAttribute("data-field-path", H), J.addEventListener("change", (u1) => {
|
|
10867
10869
|
f(H, u1.target.checked);
|
|
10868
10870
|
}), F.appendChild(J), F;
|
|
10869
10871
|
}, E = () => {
|
|
@@ -10872,18 +10874,18 @@ const bp = ({
|
|
|
10872
10874
|
const u1 = document.createElement("option");
|
|
10873
10875
|
return u1.value = "", u1.textContent = "Select...", J.appendChild(u1), K.enum.forEach((_) => {
|
|
10874
10876
|
const j1 = document.createElement("option");
|
|
10875
|
-
j1.value = String(_), j1.textContent = String(_), j1.selected =
|
|
10877
|
+
j1.value = String(_), j1.textContent = String(_), j1.selected = P === _ || H1[H] === _, J.appendChild(j1);
|
|
10876
10878
|
}), J.addEventListener("change", (_) => {
|
|
10877
10879
|
f(H, _.target.value);
|
|
10878
10880
|
}), F.appendChild(J), F;
|
|
10879
10881
|
}, L = () => {
|
|
10880
10882
|
const J = document.createElement("input");
|
|
10881
|
-
return J.type = K.format === "date" ? "date" : "datetime-local", J.value = String(
|
|
10883
|
+
return J.type = K.format === "date" ? "date" : "datetime-local", J.value = String(P || H1[H] || ""), J.className = "inline-date-input text-sm focus:outline-none", J.setAttribute("data-field-path", H), J.style.width = "100%", J.style.maxWidth = "200px", J.placeholder = String(K.description || H), J.addEventListener("input", (u1) => {
|
|
10882
10884
|
f(H, u1.target.value);
|
|
10883
10885
|
}), F.appendChild(J), F;
|
|
10884
10886
|
}, $ = () => {
|
|
10885
10887
|
const J = "__NEWLINE__", u1 = String(
|
|
10886
|
-
|
|
10888
|
+
P || H1[H] || ""
|
|
10887
10889
|
).replace(new RegExp(J, "g"), `
|
|
10888
10890
|
`), _ = document.createElement("textarea");
|
|
10889
10891
|
_.value = u1, _.className = "inline-textarea text-sm focus:outline-none resize-none", _.setAttribute("data-field-path", H), _.style.width = "100%", _.style.minHeight = "17px", _.style.overflow = "hidden", _.placeholder = String(K.description || H), _.rows = 1;
|
|
@@ -10904,7 +10906,7 @@ const bp = ({
|
|
|
10904
10906
|
},
|
|
10905
10907
|
[f, c]
|
|
10906
10908
|
), S = P1(
|
|
10907
|
-
(H,
|
|
10909
|
+
(H, P) => {
|
|
10908
10910
|
const K = document.createTreeWalker(
|
|
10909
10911
|
H,
|
|
10910
10912
|
NodeFilter.SHOW_TEXT,
|
|
@@ -10937,7 +10939,7 @@ const bp = ({
|
|
|
10937
10939
|
b1.className = "inline-radio-container";
|
|
10938
10940
|
const I1 = document.createElement("input");
|
|
10939
10941
|
I1.type = "radio", I1.name = `radio-group-${Mt}`, I1.value = Je ? "true" : "false";
|
|
10940
|
-
const Ce =
|
|
10942
|
+
const Ce = P[Mt];
|
|
10941
10943
|
return I1.checked = Je ? Ce === !0 || Ce === "true" : Ce === !1 || Ce === "false", I1.className = "text-green-600 focus:ring-green-500 border-gray-300", I1.setAttribute("data-field-path", l1), I1.addEventListener("change", (F1) => {
|
|
10942
10944
|
F1.target.checked && O(l1, !0);
|
|
10943
10945
|
}), b1.appendChild(I1), b1;
|
|
@@ -10954,7 +10956,7 @@ const bp = ({
|
|
|
10954
10956
|
})() : (() => {
|
|
10955
10957
|
var S1;
|
|
10956
10958
|
const l1 = ((S1 = t.properties) == null ? void 0 : S1[A1]) || {};
|
|
10957
|
-
return I(A1, V1, l1,
|
|
10959
|
+
return I(A1, V1, l1, P);
|
|
10958
10960
|
})();
|
|
10959
10961
|
return s1.appendChild(f1), $ = J + v1.length, v1;
|
|
10960
10962
|
}
|
|
@@ -10965,7 +10967,7 @@ const bp = ({
|
|
|
10965
10967
|
});
|
|
10966
10968
|
},
|
|
10967
10969
|
[t, I, O, c]
|
|
10968
|
-
),
|
|
10970
|
+
), W = P1(
|
|
10969
10971
|
async (H) => {
|
|
10970
10972
|
!!C.current && await (async () => {
|
|
10971
10973
|
try {
|
|
@@ -11008,7 +11010,7 @@ const bp = ({
|
|
|
11008
11010
|
), N = P1(async () => {
|
|
11009
11011
|
try {
|
|
11010
11012
|
u(!0);
|
|
11011
|
-
const
|
|
11013
|
+
const P = await (await fetch(e)).arrayBuffer(), K = new e5(P), F = new $2(K).getFullText(), t1 = m(F);
|
|
11012
11014
|
i(t1);
|
|
11013
11015
|
const Y = {};
|
|
11014
11016
|
t1.forEach((o1) => {
|
|
@@ -11029,14 +11031,14 @@ const bp = ({
|
|
|
11029
11031
|
ye(() => {
|
|
11030
11032
|
N();
|
|
11031
11033
|
}, [N]), ye(() => {
|
|
11032
|
-
!l && Object.keys(H1).length > 0 && !!C.current &&
|
|
11033
|
-
}, [l,
|
|
11034
|
-
g > 0 && !!C.current &&
|
|
11035
|
-
}, [g,
|
|
11036
|
-
const
|
|
11034
|
+
!l && Object.keys(H1).length > 0 && !!C.current && W(H1);
|
|
11035
|
+
}, [l, W]), ye(() => {
|
|
11036
|
+
g > 0 && !!C.current && W(H1);
|
|
11037
|
+
}, [g, W]);
|
|
11038
|
+
const h = () => /* @__PURE__ */ a.jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ a.jsx("div", { className: "text-body", children: "Loading document..." }) }), G = () => /* @__PURE__ */ a.jsxs("div", { className: "bg-red-50 border border-red-200 rounded-md p-4", children: [
|
|
11037
11039
|
/* @__PURE__ */ a.jsx("div", { className: "text-red-800 text-body-em", children: "Error" }),
|
|
11038
11040
|
/* @__PURE__ */ a.jsx("div", { className: "text-red-700 text-body mt-1", children: d })
|
|
11039
|
-
] }), R = l, D = !l && !!d, e1 = () => R && /* @__PURE__ */ a.jsx(
|
|
11041
|
+
] }), R = l, D = !l && !!d, e1 = () => R && /* @__PURE__ */ a.jsx(h, {}), B = () => D && /* @__PURE__ */ a.jsx(G, {}), Z = () => !R && !D && /* @__PURE__ */ a.jsxs("div", { children: [
|
|
11040
11042
|
/* @__PURE__ */ a.jsx("style", { children: `
|
|
11041
11043
|
.inline-field-container {
|
|
11042
11044
|
display: block;
|
|
@@ -11253,7 +11255,7 @@ const bp = ({
|
|
|
11253
11255
|
} },
|
|
11254
11256
|
{ id: "example-2", label: "Example two", onSelect: () => {
|
|
11255
11257
|
} }
|
|
11256
|
-
], Ct = "bg-[rgba(38,36,32,0.04)]", cc = "bg-[rgba(38,36,32,0.08)]", at = "gap-2",
|
|
11258
|
+
], Ct = "bg-[rgba(38,36,32,0.04)]", cc = "bg-[rgba(38,36,32,0.08)]", at = "gap-2", fn = "gap-1", U2 = "box-border flex h-9 w-full items-center rounded-control p-2", IA = "box-border flex h-10 w-full items-center rounded-control p-2", nr = "relative box-border flex w-full flex-col items-center justify-center rounded-control p-2", MA = "pointer-events-none absolute left-0 top-0 size-6", KA = "absolute right-0 top-0 size-1.5 rounded-full bg-[#802c20]", sc = "flex w-full min-w-0 items-center gap-2", ar = "shrink-0 [&>svg]:size-4", ic = "min-w-0 flex-1 truncate text-caption-2 tracking-[0.01em]", or = "bg-transparent text-action-quaternary-on-idle hover:bg-[rgba(38,36,32,0.04)] hover:text-action-quaternary-on-hover disabled:bg-transparent disabled:opacity-50", NA = "sidebar-scroll flex min-h-0 flex-1 flex-col overflow-x-hidden overflow-y-auto", be = "transition-colors hover:bg-[rgba(38,36,32,0.04)] hover:text-display-on-light-primary", hA = "group/newchat transition-colors hover:bg-action-primary-hover hover:text-action-primary-on-hover", SA = "group-hover/newchat:text-action-primary-on-hover", Ac = "text-display-on-light-secondary", qA = y(Ct, "text-display-on-light-primary"), lc = y(cc, "text-display-on-light-primary"), UA = "text-display-on-light-secondary", wA = y(Ct, "text-display-on-light-primary"), TA = y(cc, "text-display-on-light-primary"), WA = "box-border flex h-9 w-full items-center gap-1 rounded-control px-2 py-1.5", RA = [
|
|
11257
11259
|
{ id: "settings", label: "Settings", onSelect: () => {
|
|
11258
11260
|
} },
|
|
11259
11261
|
{ id: "logout", label: "Log out", destructive: !0, onSelect: () => {
|
|
@@ -11280,7 +11282,7 @@ const bp = ({
|
|
|
11280
11282
|
"aria-label": "Expand sidebar",
|
|
11281
11283
|
className: y("size-6 p-1", or),
|
|
11282
11284
|
onClick: c,
|
|
11283
|
-
children: /* @__PURE__ */ a.jsx(
|
|
11285
|
+
children: /* @__PURE__ */ a.jsx(sn, { size: "small" })
|
|
11284
11286
|
}
|
|
11285
11287
|
)
|
|
11286
11288
|
}
|
|
@@ -11307,7 +11309,7 @@ const bp = ({
|
|
|
11307
11309
|
"div",
|
|
11308
11310
|
{
|
|
11309
11311
|
className: y(
|
|
11310
|
-
|
|
11312
|
+
U2,
|
|
11311
11313
|
"min-w-0 flex-1",
|
|
11312
11314
|
n === "hover" && Ct,
|
|
11313
11315
|
n === "idle" && be
|
|
@@ -11326,7 +11328,7 @@ const bp = ({
|
|
|
11326
11328
|
"aria-label": "Collapse sidebar",
|
|
11327
11329
|
className: y("size-6 shrink-0 p-1", or),
|
|
11328
11330
|
onClick: c,
|
|
11329
|
-
children: /* @__PURE__ */ a.jsx(
|
|
11331
|
+
children: /* @__PURE__ */ a.jsx(sn, { size: "small" })
|
|
11330
11332
|
}
|
|
11331
11333
|
)
|
|
11332
11334
|
]
|
|
@@ -11354,8 +11356,8 @@ const bp = ({
|
|
|
11354
11356
|
className: l
|
|
11355
11357
|
}
|
|
11356
11358
|
);
|
|
11357
|
-
return c ? u : r && !o && n !== "hover" ? /* @__PURE__ */ a.jsx(kt, { content: e, side: "right", className: "w-full", children: u }) : r ? u : /* @__PURE__ */ a.jsx(
|
|
11358
|
-
|
|
11359
|
+
return c ? u : r && !o && n !== "hover" ? /* @__PURE__ */ a.jsx(kt, { content: e, side: "right", className: "w-full", children: u }) : r ? u : /* @__PURE__ */ a.jsx(f2, { side: "top", align: "start", trigger: u, children: s.map((d) => /* @__PURE__ */ a.jsxs(
|
|
11360
|
+
y2,
|
|
11359
11361
|
{
|
|
11360
11362
|
className: y(d.destructive && "text-red-500 hover:bg-red-50 hover:text-red-700"),
|
|
11361
11363
|
onSelect: (p) => {
|
|
@@ -11421,7 +11423,7 @@ const bp = ({
|
|
|
11421
11423
|
}
|
|
11422
11424
|
),
|
|
11423
11425
|
p && /* @__PURE__ */ a.jsx("div", { className: "relative z-10 shrink-0", children: /* @__PURE__ */ a.jsx(
|
|
11424
|
-
|
|
11426
|
+
f2,
|
|
11425
11427
|
{
|
|
11426
11428
|
open: u,
|
|
11427
11429
|
onOpenChange: d,
|
|
@@ -11440,11 +11442,11 @@ const bp = ({
|
|
|
11440
11442
|
!s && !u && "hidden group-hover/row:inline-flex",
|
|
11441
11443
|
(s || u) && "inline-flex"
|
|
11442
11444
|
),
|
|
11443
|
-
children: /* @__PURE__ */ a.jsx(
|
|
11445
|
+
children: /* @__PURE__ */ a.jsx(Un, { size: "small" })
|
|
11444
11446
|
}
|
|
11445
11447
|
),
|
|
11446
11448
|
children: c == null ? void 0 : c.map((x) => /* @__PURE__ */ a.jsxs(
|
|
11447
|
-
|
|
11449
|
+
y2,
|
|
11448
11450
|
{
|
|
11449
11451
|
className: y(
|
|
11450
11452
|
x.destructive && "text-red-500 hover:bg-red-50 hover:text-red-700"
|
|
@@ -11515,7 +11517,7 @@ const bp = ({
|
|
|
11515
11517
|
{
|
|
11516
11518
|
className: y(
|
|
11517
11519
|
"relative",
|
|
11518
|
-
c ? IA :
|
|
11520
|
+
c ? IA : U2,
|
|
11519
11521
|
X5[n],
|
|
11520
11522
|
n === "idle" && be,
|
|
11521
11523
|
p
|
|
@@ -11554,7 +11556,7 @@ const bp = ({
|
|
|
11554
11556
|
}
|
|
11555
11557
|
);
|
|
11556
11558
|
return u || !o || !l ? x : /* @__PURE__ */ a.jsx(kt, { content: l ?? t, side: "right", className: "w-full", children: x });
|
|
11557
|
-
}, BA = U1, XA = (e) => e === "status" ? /* @__PURE__ */ a.jsx(At, { size: "small" }) : e === "statusClosed" ? /* @__PURE__ */ a.jsx(At, { size: "small", variant: "closed" }) : e === "chatPro" ? /* @__PURE__ */ a.jsx(Ca, { size: "small" }) : /* @__PURE__ */ a.jsx(Ar, { size: "small" }),
|
|
11559
|
+
}, BA = U1, XA = (e) => e === "status" ? /* @__PURE__ */ a.jsx(At, { size: "small" }) : e === "statusClosed" ? /* @__PURE__ */ a.jsx(At, { size: "small", variant: "closed" }) : e === "chatPro" ? /* @__PURE__ */ a.jsx(Ca, { size: "small" }) : /* @__PURE__ */ a.jsx(Ar, { size: "small" }), w2 = ({
|
|
11558
11560
|
href: e,
|
|
11559
11561
|
chief: t,
|
|
11560
11562
|
empty: r = !1,
|
|
@@ -11566,7 +11568,7 @@ const bp = ({
|
|
|
11566
11568
|
}) => /* @__PURE__ */ a.jsxs(
|
|
11567
11569
|
"div",
|
|
11568
11570
|
{
|
|
11569
|
-
className: y("flex w-full max-w-[248px] flex-col",
|
|
11571
|
+
className: y("flex w-full max-w-[248px] flex-col", fn, c),
|
|
11570
11572
|
"data-chief": t,
|
|
11571
11573
|
"data-empty": r,
|
|
11572
11574
|
children: [
|
|
@@ -11591,7 +11593,7 @@ const bp = ({
|
|
|
11591
11593
|
!r && /* @__PURE__ */ a.jsx(mt, { href: e, label: "Show all", onNavigate: s })
|
|
11592
11594
|
]
|
|
11593
11595
|
}
|
|
11594
|
-
), ZA =
|
|
11596
|
+
), ZA = w2, T2 = ({
|
|
11595
11597
|
href: e,
|
|
11596
11598
|
label: t = "Ships",
|
|
11597
11599
|
icon: r = /* @__PURE__ */ a.jsx(Te, { size: "small", className: "text-display-on-light-primary" }),
|
|
@@ -11604,7 +11606,7 @@ const bp = ({
|
|
|
11604
11606
|
}) => /* @__PURE__ */ a.jsxs(
|
|
11605
11607
|
"div",
|
|
11606
11608
|
{
|
|
11607
|
-
className: y("flex w-full max-w-[264px] flex-col",
|
|
11609
|
+
className: y("flex w-full max-w-[264px] flex-col", fn, s),
|
|
11608
11610
|
"data-expanded": n,
|
|
11609
11611
|
children: [
|
|
11610
11612
|
/* @__PURE__ */ a.jsx(
|
|
@@ -11646,7 +11648,7 @@ const bp = ({
|
|
|
11646
11648
|
"grid transition-[grid-template-rows,opacity] duration-200 ease-in-out",
|
|
11647
11649
|
n ? "grid-rows-[1fr] opacity-100" : "grid-rows-[0fr] opacity-0"
|
|
11648
11650
|
),
|
|
11649
|
-
children: /* @__PURE__ */ a.jsx("div", { className: y("flex min-h-0 flex-col overflow-hidden",
|
|
11651
|
+
children: /* @__PURE__ */ a.jsx("div", { className: y("flex min-h-0 flex-col overflow-hidden", fn), children: c.map((u) => /* @__PURE__ */ a.jsx(
|
|
11650
11652
|
mt,
|
|
11651
11653
|
{
|
|
11652
11654
|
href: u.href ?? `#${u.id}`,
|
|
@@ -11668,7 +11670,7 @@ const bp = ({
|
|
|
11668
11670
|
)
|
|
11669
11671
|
]
|
|
11670
11672
|
}
|
|
11671
|
-
), YA =
|
|
11673
|
+
), YA = T2, dc = 280, pc = 56, gc = ({
|
|
11672
11674
|
title: e,
|
|
11673
11675
|
collapsed: t = !1,
|
|
11674
11676
|
state: r = "idle",
|
|
@@ -11689,7 +11691,7 @@ const bp = ({
|
|
|
11689
11691
|
t && /* @__PURE__ */ a.jsx(y1, { direction: "right", className: "size-4 shrink-0 text-display-on-light-primary" })
|
|
11690
11692
|
]
|
|
11691
11693
|
}
|
|
11692
|
-
), LA = gc, JA = ({ chief: e, className: t }) => /* @__PURE__ */ a.jsx("div", { className: y("size-6 shrink-0", t), "aria-label": `Active chief: ${e}`, children: /* @__PURE__ */ a.jsx(
|
|
11694
|
+
), LA = gc, JA = ({ chief: e, className: t }) => /* @__PURE__ */ a.jsx("div", { className: y("size-6 shrink-0", t), "aria-label": `Active chief: ${e}`, children: /* @__PURE__ */ a.jsx(O2, { chief: e, className: "size-6" }) }), xc = ({
|
|
11693
11695
|
href: e = "#new-chat",
|
|
11694
11696
|
collapsed: t = !1,
|
|
11695
11697
|
state: r = "idle",
|
|
@@ -11745,7 +11747,7 @@ const bp = ({
|
|
|
11745
11747
|
onClick: r,
|
|
11746
11748
|
"aria-label": e,
|
|
11747
11749
|
className: y(
|
|
11748
|
-
o ? nr :
|
|
11750
|
+
o ? nr : U2,
|
|
11749
11751
|
"cursor-pointer text-left",
|
|
11750
11752
|
n ? lc : Ac,
|
|
11751
11753
|
!n && be,
|
|
@@ -11793,7 +11795,7 @@ const bp = ({
|
|
|
11793
11795
|
{ id: "knowledge" },
|
|
11794
11796
|
{ id: "analytics" },
|
|
11795
11797
|
{ id: "activity", unread: !0 }
|
|
11796
|
-
],
|
|
11798
|
+
], yn = {
|
|
11797
11799
|
search: "Search",
|
|
11798
11800
|
workflows: "Workflows",
|
|
11799
11801
|
analytics: "Analytics",
|
|
@@ -11806,7 +11808,7 @@ const bp = ({
|
|
|
11806
11808
|
}, tl = (e) => ({
|
|
11807
11809
|
expandedItems: e === "compliance" ? _A : EA,
|
|
11808
11810
|
collapsedItems: e === "compliance" ? el : $A
|
|
11809
|
-
}),
|
|
11811
|
+
}), On = {
|
|
11810
11812
|
technical: "Technical",
|
|
11811
11813
|
compliance: "Compliance"
|
|
11812
11814
|
}, Z5 = ({
|
|
@@ -11826,7 +11828,7 @@ const bp = ({
|
|
|
11826
11828
|
"flex size-[18px] shrink-0 items-center justify-center rounded-full",
|
|
11827
11829
|
t && "bg-background-primary"
|
|
11828
11830
|
),
|
|
11829
|
-
children: /* @__PURE__ */ a.jsx(
|
|
11831
|
+
children: /* @__PURE__ */ a.jsx(O2, { chief: e, muted: !t, className: "size-[18px]" })
|
|
11830
11832
|
}
|
|
11831
11833
|
),
|
|
11832
11834
|
/* @__PURE__ */ a.jsx(
|
|
@@ -11836,7 +11838,7 @@ const bp = ({
|
|
|
11836
11838
|
"truncate text-[11px] uppercase leading-4 tracking-normal",
|
|
11837
11839
|
t ? "text-display-on-light-primary" : "text-display-on-light-quaternary"
|
|
11838
11840
|
),
|
|
11839
|
-
children:
|
|
11841
|
+
children: On[e]
|
|
11840
11842
|
}
|
|
11841
11843
|
)
|
|
11842
11844
|
] });
|
|
@@ -11847,7 +11849,7 @@ const bp = ({
|
|
|
11847
11849
|
className: n,
|
|
11848
11850
|
"data-active": t,
|
|
11849
11851
|
"aria-pressed": t,
|
|
11850
|
-
"aria-label": `Switch to ${
|
|
11852
|
+
"aria-label": `Switch to ${On[e]}`,
|
|
11851
11853
|
disabled: t,
|
|
11852
11854
|
onClick: () => r(e),
|
|
11853
11855
|
children: o
|
|
@@ -11883,31 +11885,31 @@ const bp = ({
|
|
|
11883
11885
|
),
|
|
11884
11886
|
"data-expanded": t,
|
|
11885
11887
|
"data-chief": e,
|
|
11886
|
-
"aria-label": `Switch chief: ${
|
|
11887
|
-
children: /* @__PURE__ */ a.jsx(
|
|
11888
|
+
"aria-label": `Switch chief: ${On[e]}`,
|
|
11889
|
+
children: /* @__PURE__ */ a.jsx(O2, { chief: e, className: "size-6 shrink-0" })
|
|
11888
11890
|
}
|
|
11889
11891
|
), Yt = (e) => `#${e.replace(/([A-Z])/g, "-$1").toLowerCase()}`, Y1 = {
|
|
11890
11892
|
search: /* @__PURE__ */ a.jsx(sr, { size: "small", className: "text-display-on-light-primary" }),
|
|
11891
11893
|
workflows: /* @__PURE__ */ a.jsx(Ot, { size: "small", className: "text-display-on-light-primary" }),
|
|
11892
|
-
analytics: /* @__PURE__ */ a.jsx(
|
|
11894
|
+
analytics: /* @__PURE__ */ a.jsx(Mn, { size: "small", className: "text-display-on-light-primary" }),
|
|
11893
11895
|
forms: /* @__PURE__ */ a.jsx(Vt, { size: "small", className: "text-display-on-light-primary" }),
|
|
11894
11896
|
ships: /* @__PURE__ */ a.jsx(Te, { size: "small", className: "text-display-on-light-primary" }),
|
|
11895
|
-
defectReports: /* @__PURE__ */ a.jsx(
|
|
11896
|
-
tasks: /* @__PURE__ */ a.jsx(
|
|
11897
|
+
defectReports: /* @__PURE__ */ a.jsx(Rn, { size: "small", className: "text-display-on-light-primary" }),
|
|
11898
|
+
tasks: /* @__PURE__ */ a.jsx(Tn, { size: "small", className: "text-display-on-light-primary" }),
|
|
11897
11899
|
knowledge: /* @__PURE__ */ a.jsx(dr, { size: "small", className: "text-display-on-light-primary" }),
|
|
11898
11900
|
activity: /* @__PURE__ */ a.jsx(ur, { size: "small", className: "text-display-on-light-tertiary" })
|
|
11899
11901
|
}, rl = {
|
|
11900
11902
|
search: /* @__PURE__ */ a.jsx(sr, { size: "small" }),
|
|
11901
11903
|
workflows: /* @__PURE__ */ a.jsx(Ot, { size: "small" }),
|
|
11902
|
-
analytics: /* @__PURE__ */ a.jsx(
|
|
11904
|
+
analytics: /* @__PURE__ */ a.jsx(Mn, { size: "small" }),
|
|
11903
11905
|
forms: /* @__PURE__ */ a.jsx(Vt, { size: "small" }),
|
|
11904
11906
|
ships: /* @__PURE__ */ a.jsx(Te, { size: "small" }),
|
|
11905
|
-
defectReports: /* @__PURE__ */ a.jsx(
|
|
11906
|
-
tasks: /* @__PURE__ */ a.jsx(
|
|
11907
|
+
defectReports: /* @__PURE__ */ a.jsx(Rn, { size: "small" }),
|
|
11908
|
+
tasks: /* @__PURE__ */ a.jsx(Tn, { size: "small" }),
|
|
11907
11909
|
knowledge: /* @__PURE__ */ a.jsx(dr, { size: "small" }),
|
|
11908
11910
|
activity: /* @__PURE__ */ a.jsx(ur, { size: "small" })
|
|
11909
11911
|
}, mc = (e, t, r, { shipsExpanded: n, onShipsExpandedChange: o, presentation: c, entryMenuItems: s }, i) => /* @__PURE__ */ a.jsx(
|
|
11910
|
-
|
|
11912
|
+
T2,
|
|
11911
11913
|
{
|
|
11912
11914
|
href: t,
|
|
11913
11915
|
label: e,
|
|
@@ -11919,7 +11921,7 @@ const bp = ({
|
|
|
11919
11921
|
entryMenuItems: s
|
|
11920
11922
|
}
|
|
11921
11923
|
), jc = (e, t, r, { chief: n, activity: o, entryMenuItems: c }, s) => o ? /* @__PURE__ */ a.jsx(
|
|
11922
|
-
|
|
11924
|
+
w2,
|
|
11923
11925
|
{
|
|
11924
11926
|
href: e,
|
|
11925
11927
|
chief: n,
|
|
@@ -11928,7 +11930,7 @@ const bp = ({
|
|
|
11928
11930
|
entryMenuItems: c
|
|
11929
11931
|
}
|
|
11930
11932
|
) : /* @__PURE__ */ a.jsx(U1, { href: e, label: t, icon: r, onNavigate: s }), Y5 = (e, t, r) => {
|
|
11931
|
-
const n =
|
|
11933
|
+
const n = yn[e];
|
|
11932
11934
|
return e === "ships" ? /* @__PURE__ */ a.jsx("div", { children: mc(n, Yt(e), Y1.ships, t, r) }, e) : e === "activity" ? /* @__PURE__ */ a.jsx("div", { children: jc(Yt(e), n, Y1.activity, t, r) }, e) : /* @__PURE__ */ a.jsx(
|
|
11933
11935
|
U1,
|
|
11934
11936
|
{
|
|
@@ -11996,35 +11998,35 @@ const bp = ({
|
|
|
11996
11998
|
presentation: c = !1,
|
|
11997
11999
|
className: s
|
|
11998
12000
|
}) => {
|
|
11999
|
-
const [i, l] = g1(!1), [u, d] = g1(n), [p, g] = g1(r), [x, C] = g1(e), m = tl(x), f = c ? n : u, O = c ? r : p, v = c ? e : x,
|
|
12001
|
+
const [i, l] = g1(!1), [u, d] = g1(n), [p, g] = g1(r), [x, C] = g1(e), m = tl(x), f = c ? n : u, O = c ? r : p, v = c ? e : x, b = c ? void 0 : [...kA], V = {
|
|
12000
12002
|
chief: v,
|
|
12001
12003
|
activity: t,
|
|
12002
12004
|
shipsExpanded: O,
|
|
12003
12005
|
onShipsExpandedChange: g,
|
|
12004
12006
|
presentation: c,
|
|
12005
12007
|
showSearch: o,
|
|
12006
|
-
entryMenuItems:
|
|
12007
|
-
}, z = (
|
|
12008
|
-
|
|
12009
|
-
}, k = (
|
|
12010
|
-
c || !f ||
|
|
12011
|
-
}, I = () => (c ? m.collapsedItems : m.collapsedItems.filter(({ id: N }) => N === "activity" ? t : N === "ships" ? !0 : o || N !== "search")).map(({ id: N, unread:
|
|
12008
|
+
entryMenuItems: b
|
|
12009
|
+
}, z = (W) => {
|
|
12010
|
+
W.preventDefault();
|
|
12011
|
+
}, k = (W) => {
|
|
12012
|
+
c || !f || W.target.closest('button, a, [role="button"], [role="menuitem"]') !== null || d(!1);
|
|
12013
|
+
}, I = () => (c ? m.collapsedItems : m.collapsedItems.filter(({ id: N }) => N === "activity" ? t : N === "ships" ? !0 : o || N !== "search")).map(({ id: N, unread: h }) => /* @__PURE__ */ a.jsx(
|
|
12012
12014
|
U1,
|
|
12013
12015
|
{
|
|
12014
12016
|
href: Yt(N),
|
|
12015
|
-
label:
|
|
12017
|
+
label: yn[N],
|
|
12016
12018
|
icon: rl[N],
|
|
12017
12019
|
collapsed: !0,
|
|
12018
|
-
unread:
|
|
12020
|
+
unread: h,
|
|
12019
12021
|
presentation: c,
|
|
12020
|
-
tooltip: c ? void 0 :
|
|
12022
|
+
tooltip: c ? void 0 : yn[N],
|
|
12021
12023
|
onNavigate: z
|
|
12022
12024
|
},
|
|
12023
12025
|
N
|
|
12024
12026
|
)), S = () => c ? m.expandedItems.map(
|
|
12025
|
-
(
|
|
12027
|
+
(W) => Y5(W, V, z)
|
|
12026
12028
|
) : e === "compliance" ? m.expandedItems.map(
|
|
12027
|
-
(
|
|
12029
|
+
(W) => Y5(W, V, z)
|
|
12028
12030
|
) : nl(V, z);
|
|
12029
12031
|
return /* @__PURE__ */ a.jsx(
|
|
12030
12032
|
"aside",
|
|
@@ -12095,7 +12097,7 @@ const bp = ({
|
|
|
12095
12097
|
collapsed: f,
|
|
12096
12098
|
sidebarHovered: i,
|
|
12097
12099
|
presentation: c,
|
|
12098
|
-
onToggleCollapsed: c ? void 0 : () => d((
|
|
12100
|
+
onToggleCollapsed: c ? void 0 : () => d((W) => !W)
|
|
12099
12101
|
}
|
|
12100
12102
|
) })
|
|
12101
12103
|
] })
|
|
@@ -12131,14 +12133,14 @@ const bp = ({
|
|
|
12131
12133
|
r
|
|
12132
12134
|
),
|
|
12133
12135
|
children: [
|
|
12134
|
-
/* @__PURE__ */ a.jsx(
|
|
12136
|
+
/* @__PURE__ */ a.jsx(Fn, { className: "size-5 shrink-0 text-display-on-light-tertiary" }),
|
|
12135
12137
|
/* @__PURE__ */ a.jsxs("div", { className: "min-w-0", children: [
|
|
12136
12138
|
/* @__PURE__ */ a.jsx("p", { className: "truncate text-caption-2-em text-display-on-light-primary", children: e }),
|
|
12137
12139
|
/* @__PURE__ */ a.jsx("p", { className: "text-footnote text-display-on-light-quaternary", children: t })
|
|
12138
12140
|
] })
|
|
12139
12141
|
]
|
|
12140
12142
|
}
|
|
12141
|
-
),
|
|
12143
|
+
), Vn = ({
|
|
12142
12144
|
role: e = "chief",
|
|
12143
12145
|
chief: t = "technical",
|
|
12144
12146
|
children: r = "Based on the inspection data, all critical systems are operating within acceptable parameters.",
|
|
@@ -12186,7 +12188,7 @@ const bp = ({
|
|
|
12186
12188
|
/* @__PURE__ */ a.jsx("p", { className: "truncate text-caption-2 text-display-on-light-tertiary", children: sl[e] }),
|
|
12187
12189
|
/* @__PURE__ */ a.jsx("h2", { className: "truncate text-subheader-em text-display-on-light-primary", children: t })
|
|
12188
12190
|
] }),
|
|
12189
|
-
/* @__PURE__ */ a.jsx(K1, { hierarchy: "quaternary", size: "small", "aria-label": "More options", children: /* @__PURE__ */ a.jsx(
|
|
12191
|
+
/* @__PURE__ */ a.jsx(K1, { hierarchy: "quaternary", size: "small", "aria-label": "More options", children: /* @__PURE__ */ a.jsx(Un, {}) })
|
|
12190
12192
|
]
|
|
12191
12193
|
}
|
|
12192
12194
|
), yc = ({
|
|
@@ -12286,7 +12288,7 @@ const bp = ({
|
|
|
12286
12288
|
),
|
|
12287
12289
|
children: [
|
|
12288
12290
|
/* @__PURE__ */ a.jsxs("div", { className: "mb-1 flex items-center gap-2", children: [
|
|
12289
|
-
/* @__PURE__ */ a.jsx(
|
|
12291
|
+
/* @__PURE__ */ a.jsx(Nn, { className: "size-4 shrink-0 text-display-on-light-tertiary" }),
|
|
12290
12292
|
/* @__PURE__ */ a.jsx("span", { className: "text-caption-2-em text-display-on-light-primary", children: e })
|
|
12291
12293
|
] }),
|
|
12292
12294
|
/* @__PURE__ */ a.jsx("p", { className: "line-clamp-2 text-caption-2 text-display-on-light-secondary", children: t })
|
|
@@ -12314,7 +12316,7 @@ const bp = ({
|
|
|
12314
12316
|
t
|
|
12315
12317
|
),
|
|
12316
12318
|
children: [
|
|
12317
|
-
/* @__PURE__ */ a.jsx(
|
|
12319
|
+
/* @__PURE__ */ a.jsx(wn, { className: "size-4 shrink-0 text-display-on-light-tertiary" }),
|
|
12318
12320
|
/* @__PURE__ */ a.jsx("span", { children: e })
|
|
12319
12321
|
]
|
|
12320
12322
|
}
|
|
@@ -12336,8 +12338,8 @@ const bp = ({
|
|
|
12336
12338
|
/* @__PURE__ */ a.jsx(Vc, { chief: e }),
|
|
12337
12339
|
/* @__PURE__ */ a.jsx(zc, {})
|
|
12338
12340
|
] }) : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
12339
|
-
/* @__PURE__ */ a.jsx(
|
|
12340
|
-
/* @__PURE__ */ a.jsx(
|
|
12341
|
+
/* @__PURE__ */ a.jsx(Vn, { role: "user", children: "Can you review the hull inspection report?" }),
|
|
12342
|
+
/* @__PURE__ */ a.jsx(Vn, { role: "chief", chief: e, children: "I've reviewed the hull inspection report. The overall condition is satisfactory with minor observations noted in sections 4 and 7." }),
|
|
12341
12343
|
/* @__PURE__ */ a.jsx(bc, { count: 2 }),
|
|
12342
12344
|
r && /* @__PURE__ */ a.jsx(Oc, { status: "thinking" })
|
|
12343
12345
|
] }) }),
|
|
@@ -12425,11 +12427,11 @@ const bp = ({
|
|
|
12425
12427
|
]
|
|
12426
12428
|
}
|
|
12427
12429
|
), jl = {
|
|
12428
|
-
issue: { icon: /* @__PURE__ */ a.jsx(
|
|
12430
|
+
issue: { icon: /* @__PURE__ */ a.jsx(qn, { className: "size-5" }), defaultTitle: "Issue details" },
|
|
12429
12431
|
thinking: { icon: /* @__PURE__ */ a.jsx(vo, {}), defaultTitle: "Chief is thinking" },
|
|
12430
12432
|
generic: { icon: /* @__PURE__ */ a.jsx(ya, { className: "size-5" }), defaultTitle: "Information" },
|
|
12431
12433
|
settings: { icon: /* @__PURE__ */ a.jsx(fa, { className: "size-5" }), defaultTitle: "Settings" },
|
|
12432
|
-
audit: { icon: /* @__PURE__ */ a.jsx(
|
|
12434
|
+
audit: { icon: /* @__PURE__ */ a.jsx(Sn, { className: "size-5" }), defaultTitle: "Audit trail" },
|
|
12433
12435
|
forms: { icon: /* @__PURE__ */ a.jsx(Vt, { className: "size-5" }), defaultTitle: "Forms" }
|
|
12434
12436
|
}, fl = ({
|
|
12435
12437
|
variant: e = "generic",
|
|
@@ -12680,7 +12682,7 @@ const bp = ({
|
|
|
12680
12682
|
value: e,
|
|
12681
12683
|
children: t,
|
|
12682
12684
|
className: r
|
|
12683
|
-
}) => /* @__PURE__ */ a.jsx(Wo, { value: e, className: r, children: t }),
|
|
12685
|
+
}) => /* @__PURE__ */ a.jsx(Wo, { value: e, className: r, children: t }), W2 = ({
|
|
12684
12686
|
items: e,
|
|
12685
12687
|
children: t,
|
|
12686
12688
|
className: r
|
|
@@ -12700,7 +12702,7 @@ const bp = ({
|
|
|
12700
12702
|
className: "shrink-0 px-3 py-1 text-caption-2 font-normal normal-case tracking-[0.01em] text-display-on-light-secondary"
|
|
12701
12703
|
}
|
|
12702
12704
|
),
|
|
12703
|
-
/* @__PURE__ */ a.jsx("div", { className: "min-h-0 flex-1 overflow-y-auto", children: /* @__PURE__ */ a.jsx(
|
|
12705
|
+
/* @__PURE__ */ a.jsx("div", { className: "min-h-0 flex-1 overflow-y-auto", children: /* @__PURE__ */ a.jsx(W2, { items: t, children: r }) })
|
|
12704
12706
|
] }), Uc = ({ className: e }) => /* @__PURE__ */ a.jsx(Ic, { variant: "search", className: y("rounded-none", e) }), kl = ({
|
|
12705
12707
|
state: e = "idle",
|
|
12706
12708
|
query: t = "",
|
|
@@ -12727,7 +12729,7 @@ const bp = ({
|
|
|
12727
12729
|
tabs: c,
|
|
12728
12730
|
value: n,
|
|
12729
12731
|
onValueChange: (d) => o == null ? void 0 : o(d),
|
|
12730
|
-
children: /* @__PURE__ */ a.jsx(
|
|
12732
|
+
children: /* @__PURE__ */ a.jsx(W2, { items: i })
|
|
12731
12733
|
}
|
|
12732
12734
|
)
|
|
12733
12735
|
] })
|
|
@@ -12736,14 +12738,14 @@ const bp = ({
|
|
|
12736
12738
|
__proto__: null,
|
|
12737
12739
|
Account: uc,
|
|
12738
12740
|
Activity: ZA,
|
|
12739
|
-
ActivityNavGroup:
|
|
12741
|
+
ActivityNavGroup: w2,
|
|
12740
12742
|
Attachment: cl,
|
|
12741
|
-
ChatEntry:
|
|
12743
|
+
ChatEntry: Vn,
|
|
12742
12744
|
ChatHeader: fc,
|
|
12743
12745
|
ChatInput: yc,
|
|
12744
12746
|
ChatStatus: Oc,
|
|
12745
12747
|
ChatTile: il,
|
|
12746
|
-
CollapsibleNavGroup:
|
|
12748
|
+
CollapsibleNavGroup: T2,
|
|
12747
12749
|
Copilot: dl,
|
|
12748
12750
|
Draft: pl,
|
|
12749
12751
|
Entry: GA,
|
|
@@ -12769,7 +12771,7 @@ const bp = ({
|
|
|
12769
12771
|
SearchModalInput: Kc,
|
|
12770
12772
|
SearchModalLoading: Uc,
|
|
12771
12773
|
SearchModalPanel: kl,
|
|
12772
|
-
SearchModalResults:
|
|
12774
|
+
SearchModalResults: W2,
|
|
12773
12775
|
Section: BA,
|
|
12774
12776
|
SectionHeader: kc,
|
|
12775
12777
|
Ships: YA,
|
|
@@ -13172,7 +13174,7 @@ const bp = ({
|
|
|
13172
13174
|
normal: "bg-blue-100 text-blue-700",
|
|
13173
13175
|
low: "bg-grey-100 text-display-on-light-secondary",
|
|
13174
13176
|
pending: "bg-orange-50 text-orange-700"
|
|
13175
|
-
},
|
|
13177
|
+
}, R2 = ({
|
|
13176
13178
|
importance: e = "critical",
|
|
13177
13179
|
status: t = "uncompleted",
|
|
13178
13180
|
className: r
|
|
@@ -13209,7 +13211,7 @@ const bp = ({
|
|
|
13209
13211
|
),
|
|
13210
13212
|
children: [
|
|
13211
13213
|
/* @__PURE__ */ a.jsx(
|
|
13212
|
-
|
|
13214
|
+
R2,
|
|
13213
13215
|
{
|
|
13214
13216
|
importance: r === "completed" ? "normal" : "critical",
|
|
13215
13217
|
status: r === "completed" ? "approved" : "uncompleted"
|
|
@@ -13245,7 +13247,7 @@ const bp = ({
|
|
|
13245
13247
|
n
|
|
13246
13248
|
),
|
|
13247
13249
|
children: [
|
|
13248
|
-
/* @__PURE__ */ a.jsx(
|
|
13250
|
+
/* @__PURE__ */ a.jsx(R2, { importance: "normal", status: "uncompleted" }),
|
|
13249
13251
|
/* @__PURE__ */ a.jsx("p", { className: "min-w-0 flex-1 text-caption-1 text-display-on-light-primary", children: e }),
|
|
13250
13252
|
/* @__PURE__ */ a.jsx(
|
|
13251
13253
|
y1,
|
|
@@ -13275,7 +13277,7 @@ const bp = ({
|
|
|
13275
13277
|
n
|
|
13276
13278
|
),
|
|
13277
13279
|
children: [
|
|
13278
|
-
/* @__PURE__ */ a.jsx("span", { className: "flex size-10 shrink-0 items-center justify-center rounded-control bg-background-secondary", children: /* @__PURE__ */ a.jsx(
|
|
13280
|
+
/* @__PURE__ */ a.jsx("span", { className: "flex size-10 shrink-0 items-center justify-center rounded-control bg-background-secondary", children: /* @__PURE__ */ a.jsx(Wn, { size: "small" }) }),
|
|
13279
13281
|
/* @__PURE__ */ a.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
13280
13282
|
/* @__PURE__ */ a.jsx("p", { className: "text-caption-1-em text-display-on-light-primary", children: e }),
|
|
13281
13283
|
/* @__PURE__ */ a.jsx("p", { className: "text-caption-2 text-display-on-light-tertiary", children: t })
|
|
@@ -13367,7 +13369,7 @@ const bp = ({
|
|
|
13367
13369
|
), tu = {
|
|
13368
13370
|
"validation-checks": { title: "Validation Checks", icon: lr },
|
|
13369
13371
|
"quality-flags": { title: "Quality Flags", icon: Va },
|
|
13370
|
-
"ai-insights": { title: "AI Insights", icon:
|
|
13372
|
+
"ai-insights": { title: "AI Insights", icon: wn }
|
|
13371
13373
|
}, ru = ({
|
|
13372
13374
|
group: e = "validation-checks",
|
|
13373
13375
|
title: t,
|
|
@@ -13413,15 +13415,15 @@ const bp = ({
|
|
|
13413
13415
|
/* @__PURE__ */ a.jsx("span", { className: "text-caption-1-em text-display-on-light-primary", children: t })
|
|
13414
13416
|
] }),
|
|
13415
13417
|
/* @__PURE__ */ a.jsxs("div", { className: "p-1", children: [
|
|
13416
|
-
/* @__PURE__ */ a.jsxs(
|
|
13418
|
+
/* @__PURE__ */ a.jsxs(tn, { children: [
|
|
13417
13419
|
/* @__PURE__ */ a.jsx(it, { size: "small", className: n ? "text-meta-green" : "text-display-on-light-quaternary" }),
|
|
13418
13420
|
"Fire pump inspection"
|
|
13419
13421
|
] }),
|
|
13420
|
-
/* @__PURE__ */ a.jsxs(
|
|
13422
|
+
/* @__PURE__ */ a.jsxs(tn, { children: [
|
|
13421
13423
|
/* @__PURE__ */ a.jsx(it, { size: "small", className: n ? "text-meta-green" : "text-display-on-light-quaternary" }),
|
|
13422
13424
|
"Emergency generator test"
|
|
13423
13425
|
] }),
|
|
13424
|
-
/* @__PURE__ */ a.jsxs(
|
|
13426
|
+
/* @__PURE__ */ a.jsxs(tn, { children: [
|
|
13425
13427
|
/* @__PURE__ */ a.jsx(it, { size: "small", className: "text-display-on-light-quaternary" }),
|
|
13426
13428
|
"Liferaft servicing"
|
|
13427
13429
|
] })
|
|
@@ -13435,7 +13437,7 @@ const bp = ({
|
|
|
13435
13437
|
activeFilter: t = "All",
|
|
13436
13438
|
className: r
|
|
13437
13439
|
}) => /* @__PURE__ */ a.jsxs("div", { className: y("flex flex-wrap items-center gap-2", r), children: [
|
|
13438
|
-
/* @__PURE__ */ a.jsx("span", { className: "mr-1 flex size-9 items-center justify-center rounded-full bg-background-secondary text-display-on-light-secondary", children: /* @__PURE__ */ a.jsx(
|
|
13440
|
+
/* @__PURE__ */ a.jsx("span", { className: "mr-1 flex size-9 items-center justify-center rounded-full bg-background-secondary text-display-on-light-secondary", children: /* @__PURE__ */ a.jsx(Kn, { size: "small" }) }),
|
|
13439
13441
|
e.map((n) => {
|
|
13440
13442
|
const o = n === t;
|
|
13441
13443
|
return /* @__PURE__ */ a.jsx(
|
|
@@ -13475,7 +13477,7 @@ const bp = ({
|
|
|
13475
13477
|
),
|
|
13476
13478
|
...c,
|
|
13477
13479
|
children: [
|
|
13478
|
-
/* @__PURE__ */ a.jsx(
|
|
13480
|
+
/* @__PURE__ */ a.jsx(Kn, { size: "small" }),
|
|
13479
13481
|
i && /* @__PURE__ */ a.jsx(
|
|
13480
13482
|
ve,
|
|
13481
13483
|
{
|
|
@@ -13751,7 +13753,7 @@ function jt(e) {
|
|
|
13751
13753
|
return (n = t.current) == null ? void 0 : n.call(t, ...r);
|
|
13752
13754
|
}, []);
|
|
13753
13755
|
}
|
|
13754
|
-
var Cu = "DismissableLayer",
|
|
13756
|
+
var Cu = "DismissableLayer", vn = "dismissableLayer.update", mu = "dismissableLayer.pointerDownOutside", ju = "dismissableLayer.focusOutside", J5, Zc = A.createContext({
|
|
13755
13757
|
layers: /* @__PURE__ */ new Set(),
|
|
13756
13758
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
13757
13759
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -13765,9 +13767,9 @@ var Cu = "DismissableLayer", Vn = "dismissableLayer.update", mu = "dismissableLa
|
|
|
13765
13767
|
onInteractOutside: s,
|
|
13766
13768
|
onDismiss: i,
|
|
13767
13769
|
...l
|
|
13768
|
-
} = e, u = A.useContext(Zc), [d, p] = A.useState(null), g = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, x] = A.useState({}), C = ge(t, (I) => p(I)), m = Array.from(u.layers), [f] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), O = m.indexOf(f), v = d ? m.indexOf(d) : -1,
|
|
13769
|
-
const S = I.target,
|
|
13770
|
-
!V ||
|
|
13770
|
+
} = e, u = A.useContext(Zc), [d, p] = A.useState(null), g = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, x] = A.useState({}), C = ge(t, (I) => p(I)), m = Array.from(u.layers), [f] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), O = m.indexOf(f), v = d ? m.indexOf(d) : -1, b = u.layersWithOutsidePointerEventsDisabled.size > 0, V = v >= O, z = Ou((I) => {
|
|
13771
|
+
const S = I.target, W = [...u.branches].some((N) => N.contains(S));
|
|
13772
|
+
!V || W || (o == null || o(I), s == null || s(I), I.defaultPrevented || i == null || i());
|
|
13771
13773
|
}, g), k = Vu((I) => {
|
|
13772
13774
|
const S = I.target;
|
|
13773
13775
|
[...u.branches].some((N) => N.contains(S)) || (c == null || c(I), s == null || s(I), I.defaultPrevented || i == null || i());
|
|
@@ -13783,14 +13785,14 @@ var Cu = "DismissableLayer", Vn = "dismissableLayer.update", mu = "dismissableLa
|
|
|
13783
13785
|
d && (u.layers.delete(d), u.layersWithOutsidePointerEventsDisabled.delete(d), Q5());
|
|
13784
13786
|
}, [d, u]), A.useEffect(() => {
|
|
13785
13787
|
const I = () => x({});
|
|
13786
|
-
return document.addEventListener(
|
|
13788
|
+
return document.addEventListener(vn, I), () => document.removeEventListener(vn, I);
|
|
13787
13789
|
}, []), /* @__PURE__ */ a.jsx(
|
|
13788
13790
|
oe.div,
|
|
13789
13791
|
{
|
|
13790
13792
|
...l,
|
|
13791
13793
|
ref: C,
|
|
13792
13794
|
style: {
|
|
13793
|
-
pointerEvents:
|
|
13795
|
+
pointerEvents: b ? V ? "auto" : "none" : void 0,
|
|
13794
13796
|
...e.style
|
|
13795
13797
|
},
|
|
13796
13798
|
onFocusCapture: Ae(e.onFocusCapture, k.onFocusCapture),
|
|
@@ -13860,19 +13862,19 @@ function Vu(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
13860
13862
|
};
|
|
13861
13863
|
}
|
|
13862
13864
|
function Q5() {
|
|
13863
|
-
const e = new CustomEvent(
|
|
13865
|
+
const e = new CustomEvent(vn);
|
|
13864
13866
|
document.dispatchEvent(e);
|
|
13865
13867
|
}
|
|
13866
13868
|
function Lc(e, t, r, { discrete: n }) {
|
|
13867
13869
|
const o = r.originalEvent.target, c = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: r });
|
|
13868
13870
|
t && o.addEventListener(e, t, { once: !0 }), n ? xu(o, c) : o.dispatchEvent(c);
|
|
13869
13871
|
}
|
|
13870
|
-
var
|
|
13872
|
+
var rn = 0;
|
|
13871
13873
|
function vu() {
|
|
13872
13874
|
A.useEffect(() => {
|
|
13873
13875
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
13874
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ?? E5()), document.body.insertAdjacentElement("beforeend", e[1] ?? E5()),
|
|
13875
|
-
|
|
13876
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? E5()), document.body.insertAdjacentElement("beforeend", e[1] ?? E5()), rn++, () => {
|
|
13877
|
+
rn === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), rn--;
|
|
13876
13878
|
};
|
|
13877
13879
|
}, []);
|
|
13878
13880
|
}
|
|
@@ -13880,7 +13882,7 @@ function E5() {
|
|
|
13880
13882
|
const e = document.createElement("span");
|
|
13881
13883
|
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
13882
13884
|
}
|
|
13883
|
-
var
|
|
13885
|
+
var nn = "focusScope.autoFocusOnMount", an = "focusScope.autoFocusOnUnmount", _5 = { bubbles: !1, cancelable: !0 }, bu = "FocusScope", Jc = A.forwardRef((e, t) => {
|
|
13884
13886
|
const {
|
|
13885
13887
|
loop: r = !1,
|
|
13886
13888
|
trapped: n = !1,
|
|
@@ -13898,17 +13900,17 @@ var rn = "focusScope.autoFocusOnMount", nn = "focusScope.autoFocusOnUnmount", _5
|
|
|
13898
13900
|
}).current;
|
|
13899
13901
|
A.useEffect(() => {
|
|
13900
13902
|
if (n) {
|
|
13901
|
-
let m = function(
|
|
13903
|
+
let m = function(b) {
|
|
13902
13904
|
if (x.paused || !i) return;
|
|
13903
|
-
const V =
|
|
13905
|
+
const V = b.target;
|
|
13904
13906
|
i.contains(V) ? p.current = V : ie(p.current, { select: !0 });
|
|
13905
|
-
}, f = function(
|
|
13907
|
+
}, f = function(b) {
|
|
13906
13908
|
if (x.paused || !i) return;
|
|
13907
|
-
const V =
|
|
13909
|
+
const V = b.relatedTarget;
|
|
13908
13910
|
V !== null && (i.contains(V) || ie(p.current, { select: !0 }));
|
|
13909
|
-
}, O = function(
|
|
13911
|
+
}, O = function(b) {
|
|
13910
13912
|
if (document.activeElement === document.body)
|
|
13911
|
-
for (const z of
|
|
13913
|
+
for (const z of b)
|
|
13912
13914
|
z.removedNodes.length > 0 && ie(i);
|
|
13913
13915
|
};
|
|
13914
13916
|
document.addEventListener("focusin", m), document.addEventListener("focusout", f);
|
|
@@ -13922,13 +13924,13 @@ var rn = "focusScope.autoFocusOnMount", nn = "focusScope.autoFocusOnUnmount", _5
|
|
|
13922
13924
|
ea.add(x);
|
|
13923
13925
|
const m = document.activeElement;
|
|
13924
13926
|
if (!i.contains(m)) {
|
|
13925
|
-
const O = new CustomEvent(
|
|
13926
|
-
i.addEventListener(
|
|
13927
|
+
const O = new CustomEvent(nn, _5);
|
|
13928
|
+
i.addEventListener(nn, u), i.dispatchEvent(O), O.defaultPrevented || (Pu(Mu(Qc(i)), { select: !0 }), document.activeElement === m && ie(i));
|
|
13927
13929
|
}
|
|
13928
13930
|
return () => {
|
|
13929
|
-
i.removeEventListener(
|
|
13930
|
-
const O = new CustomEvent(
|
|
13931
|
-
i.addEventListener(
|
|
13931
|
+
i.removeEventListener(nn, u), setTimeout(() => {
|
|
13932
|
+
const O = new CustomEvent(an, _5);
|
|
13933
|
+
i.addEventListener(an, d), i.dispatchEvent(O), O.defaultPrevented || ie(m ?? document.body, { select: !0 }), i.removeEventListener(an, d), ea.remove(x);
|
|
13932
13934
|
}, 0);
|
|
13933
13935
|
};
|
|
13934
13936
|
}
|
|
@@ -13938,8 +13940,8 @@ var rn = "focusScope.autoFocusOnMount", nn = "focusScope.autoFocusOnUnmount", _5
|
|
|
13938
13940
|
if (!r && !n || x.paused) return;
|
|
13939
13941
|
const f = m.key === "Tab" && !m.altKey && !m.ctrlKey && !m.metaKey, O = document.activeElement;
|
|
13940
13942
|
if (f && O) {
|
|
13941
|
-
const v = m.currentTarget, [
|
|
13942
|
-
|
|
13943
|
+
const v = m.currentTarget, [b, V] = zu(v);
|
|
13944
|
+
b && V ? !m.shiftKey && O === V ? (m.preventDefault(), r && ie(b, { select: !0 })) : m.shiftKey && O === b && (m.preventDefault(), r && ie(V, { select: !0 })) : O === v && m.preventDefault();
|
|
13943
13945
|
}
|
|
13944
13946
|
},
|
|
13945
13947
|
[r, n, x.paused]
|
|
@@ -14057,11 +14059,11 @@ function Uu(e) {
|
|
|
14057
14059
|
r(void 0);
|
|
14058
14060
|
}, [e]), t;
|
|
14059
14061
|
}
|
|
14060
|
-
var
|
|
14062
|
+
var F2 = "Popper", [_c, $c] = Bc(F2), [wu, e0] = _c(F2), t0 = (e) => {
|
|
14061
14063
|
const { __scopePopper: t, children: r } = e, [n, o] = A.useState(null);
|
|
14062
14064
|
return /* @__PURE__ */ a.jsx(wu, { scope: t, anchor: n, onAnchorChange: o, children: r });
|
|
14063
14065
|
};
|
|
14064
|
-
t0.displayName =
|
|
14066
|
+
t0.displayName = F2;
|
|
14065
14067
|
var r0 = "PopperAnchor", n0 = A.forwardRef(
|
|
14066
14068
|
(e, t) => {
|
|
14067
14069
|
const { __scopePopper: r, virtualRef: n, ...o } = e, c = e0(r0, r), s = A.useRef(null), i = ge(t, s), l = A.useRef(null);
|
|
@@ -14072,7 +14074,7 @@ var r0 = "PopperAnchor", n0 = A.forwardRef(
|
|
|
14072
14074
|
}
|
|
14073
14075
|
);
|
|
14074
14076
|
n0.displayName = r0;
|
|
14075
|
-
var
|
|
14077
|
+
var D2 = "PopperContent", [Tu, Wu] = _c(D2), a0 = A.forwardRef(
|
|
14076
14078
|
(e, t) => {
|
|
14077
14079
|
var E, L, $, s1, v1, V1;
|
|
14078
14080
|
const {
|
|
@@ -14090,42 +14092,42 @@ var F2 = "PopperContent", [Tu, Wu] = _c(F2), a0 = A.forwardRef(
|
|
|
14090
14092
|
updatePositionStrategy: x = "optimized",
|
|
14091
14093
|
onPlaced: C,
|
|
14092
14094
|
...m
|
|
14093
|
-
} = e, f = e0(
|
|
14095
|
+
} = e, f = e0(D2, r), [O, v] = A.useState(null), b = ge(t, (A1) => v(A1)), [V, z] = A.useState(null), k = Uu(V), I = (k == null ? void 0 : k.width) ?? 0, S = (k == null ? void 0 : k.height) ?? 0, W = n + (c !== "center" ? "-" + c : ""), N = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, h = Array.isArray(u) ? u : [u], G = h.length > 0, R = {
|
|
14094
14096
|
padding: N,
|
|
14095
|
-
boundary:
|
|
14097
|
+
boundary: h.filter(Fu),
|
|
14096
14098
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
14097
14099
|
altBoundary: G
|
|
14098
|
-
}, { refs: D, floatingStyles: e1, placement: B, isPositioned: Z, middlewareData: H } =
|
|
14100
|
+
}, { refs: D, floatingStyles: e1, placement: B, isPositioned: Z, middlewareData: H } = $n({
|
|
14099
14101
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
14100
14102
|
strategy: "fixed",
|
|
14101
|
-
placement:
|
|
14102
|
-
whileElementsMounted: (...A1) =>
|
|
14103
|
+
placement: W,
|
|
14104
|
+
whileElementsMounted: (...A1) => _n(...A1, {
|
|
14103
14105
|
animationFrame: x === "always"
|
|
14104
14106
|
}),
|
|
14105
14107
|
elements: {
|
|
14106
14108
|
reference: f.anchor
|
|
14107
14109
|
},
|
|
14108
14110
|
middleware: [
|
|
14109
|
-
|
|
14110
|
-
l &&
|
|
14111
|
+
e2({ mainAxis: o + S, alignmentAxis: s }),
|
|
14112
|
+
l && t2({
|
|
14111
14113
|
mainAxis: !0,
|
|
14112
14114
|
crossAxis: !1,
|
|
14113
|
-
limiter: p === "partial" ?
|
|
14115
|
+
limiter: p === "partial" ? r2() : void 0,
|
|
14114
14116
|
...R
|
|
14115
14117
|
}),
|
|
14116
|
-
l &&
|
|
14117
|
-
|
|
14118
|
+
l && n2({ ...R }),
|
|
14119
|
+
a2({
|
|
14118
14120
|
...R,
|
|
14119
14121
|
apply: ({ elements: A1, rects: J, availableWidth: u1, availableHeight: _ }) => {
|
|
14120
14122
|
const { width: j1, height: f1 } = J.reference, l1 = A1.floating.style;
|
|
14121
14123
|
l1.setProperty("--radix-popper-available-width", `${u1}px`), l1.setProperty("--radix-popper-available-height", `${_}px`), l1.setProperty("--radix-popper-anchor-width", `${j1}px`), l1.setProperty("--radix-popper-anchor-height", `${f1}px`);
|
|
14122
14124
|
}
|
|
14123
14125
|
}),
|
|
14124
|
-
V &&
|
|
14126
|
+
V && c2({ element: V, padding: i }),
|
|
14125
14127
|
Du({ arrowWidth: I, arrowHeight: S }),
|
|
14126
|
-
g &&
|
|
14128
|
+
g && o2({ strategy: "referenceHidden", ...R })
|
|
14127
14129
|
]
|
|
14128
|
-
}), [
|
|
14130
|
+
}), [P, K] = s0(B), U = jt(C);
|
|
14129
14131
|
pe(() => {
|
|
14130
14132
|
Z && (U == null || U());
|
|
14131
14133
|
}, [Z, U]);
|
|
@@ -14160,7 +14162,7 @@ var F2 = "PopperContent", [Tu, Wu] = _c(F2), a0 = A.forwardRef(
|
|
|
14160
14162
|
Tu,
|
|
14161
14163
|
{
|
|
14162
14164
|
scope: r,
|
|
14163
|
-
placedSide:
|
|
14165
|
+
placedSide: P,
|
|
14164
14166
|
onArrowChange: z,
|
|
14165
14167
|
arrowX: F,
|
|
14166
14168
|
arrowY: t1,
|
|
@@ -14168,10 +14170,10 @@ var F2 = "PopperContent", [Tu, Wu] = _c(F2), a0 = A.forwardRef(
|
|
|
14168
14170
|
children: /* @__PURE__ */ a.jsx(
|
|
14169
14171
|
oe.div,
|
|
14170
14172
|
{
|
|
14171
|
-
"data-side":
|
|
14173
|
+
"data-side": P,
|
|
14172
14174
|
"data-align": K,
|
|
14173
14175
|
...m,
|
|
14174
|
-
ref:
|
|
14176
|
+
ref: b,
|
|
14175
14177
|
style: {
|
|
14176
14178
|
...m.style,
|
|
14177
14179
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
@@ -14186,7 +14188,7 @@ var F2 = "PopperContent", [Tu, Wu] = _c(F2), a0 = A.forwardRef(
|
|
|
14186
14188
|
);
|
|
14187
14189
|
}
|
|
14188
14190
|
);
|
|
14189
|
-
a0.displayName =
|
|
14191
|
+
a0.displayName = D2;
|
|
14190
14192
|
var o0 = "PopperArrow", Ru = {
|
|
14191
14193
|
top: "bottom",
|
|
14192
14194
|
right: "left",
|
|
@@ -14266,11 +14268,11 @@ A0.displayName = Zu;
|
|
|
14266
14268
|
function Yu(e, t) {
|
|
14267
14269
|
return A.useReducer((r, n) => t[r][n] ?? r, e);
|
|
14268
14270
|
}
|
|
14269
|
-
var
|
|
14271
|
+
var G2 = (e) => {
|
|
14270
14272
|
const { present: t, children: r } = e, n = Lu(t), o = typeof r == "function" ? r({ present: n.isPresent }) : A.Children.only(r), c = ge(n.ref, Ju(o));
|
|
14271
14273
|
return typeof r == "function" || n.isPresent ? A.cloneElement(o, { ref: c }) : null;
|
|
14272
14274
|
};
|
|
14273
|
-
|
|
14275
|
+
G2.displayName = "Presence";
|
|
14274
14276
|
function Lu(e) {
|
|
14275
14277
|
const [t, r] = A.useState(), n = A.useRef(null), o = A.useRef(e), c = A.useRef("none"), s = e ? "mounted" : "unmounted", [i, l] = Yu(s, {
|
|
14276
14278
|
mounted: {
|
|
@@ -14437,17 +14439,17 @@ var p0 = "PopoverTrigger", g0 = A.forwardRef(
|
|
|
14437
14439
|
}
|
|
14438
14440
|
);
|
|
14439
14441
|
g0.displayName = p0;
|
|
14440
|
-
var
|
|
14442
|
+
var B2 = "PopoverPortal", [rd, nd] = l0(B2, {
|
|
14441
14443
|
forceMount: void 0
|
|
14442
14444
|
}), x0 = (e) => {
|
|
14443
|
-
const { __scopePopover: t, forceMount: r, children: n, container: o } = e, c = xe(
|
|
14444
|
-
return /* @__PURE__ */ a.jsx(rd, { scope: t, forceMount: r, children: /* @__PURE__ */ a.jsx(
|
|
14445
|
+
const { __scopePopover: t, forceMount: r, children: n, container: o } = e, c = xe(B2, t);
|
|
14446
|
+
return /* @__PURE__ */ a.jsx(rd, { scope: t, forceMount: r, children: /* @__PURE__ */ a.jsx(G2, { present: r || c.open, children: /* @__PURE__ */ a.jsx(A0, { asChild: !0, container: o, children: n }) }) });
|
|
14445
14447
|
};
|
|
14446
|
-
x0.displayName =
|
|
14448
|
+
x0.displayName = B2;
|
|
14447
14449
|
var De = "PopoverContent", C0 = A.forwardRef(
|
|
14448
14450
|
(e, t) => {
|
|
14449
14451
|
const r = nd(De, e.__scopePopover), { forceMount: n = r.forceMount, ...o } = e, c = xe(De, e.__scopePopover);
|
|
14450
|
-
return /* @__PURE__ */ a.jsx(
|
|
14452
|
+
return /* @__PURE__ */ a.jsx(G2, { present: n || c.open, children: c.modal ? /* @__PURE__ */ a.jsx(od, { ...o, ref: t }) : /* @__PURE__ */ a.jsx(cd, { ...o, ref: t }) });
|
|
14451
14453
|
}
|
|
14452
14454
|
);
|
|
14453
14455
|
C0.displayName = De;
|
|
@@ -14456,7 +14458,7 @@ var ad = /* @__PURE__ */ Xc("PopoverContent.RemoveScroll"), od = A.forwardRef(
|
|
|
14456
14458
|
const r = xe(De, e.__scopePopover), n = A.useRef(null), o = ge(t, n), c = A.useRef(!1);
|
|
14457
14459
|
return A.useEffect(() => {
|
|
14458
14460
|
const s = n.current;
|
|
14459
|
-
if (s) return
|
|
14461
|
+
if (s) return u2(s);
|
|
14460
14462
|
}, []), /* @__PURE__ */ a.jsx(Or, { as: ad, allowPinchZoom: !0, children: /* @__PURE__ */ a.jsx(
|
|
14461
14463
|
m0,
|
|
14462
14464
|
{
|
|
@@ -14589,16 +14591,16 @@ function f0(e) {
|
|
|
14589
14591
|
return e ? "open" : "closed";
|
|
14590
14592
|
}
|
|
14591
14593
|
var ld = u0, ud = g0, dd = x0, pd = C0;
|
|
14592
|
-
function
|
|
14594
|
+
function bn(e) {
|
|
14593
14595
|
return e.kind === "toggle";
|
|
14594
14596
|
}
|
|
14595
|
-
function
|
|
14597
|
+
function Pn(e) {
|
|
14596
14598
|
return e.kind === "inline-options";
|
|
14597
14599
|
}
|
|
14598
14600
|
function Gt(e) {
|
|
14599
|
-
return !
|
|
14601
|
+
return !bn(e) && !Pn(e);
|
|
14600
14602
|
}
|
|
14601
|
-
function
|
|
14603
|
+
function X2(e, t) {
|
|
14602
14604
|
if (e.type === "options")
|
|
14603
14605
|
return {
|
|
14604
14606
|
kind: "options",
|
|
@@ -14634,7 +14636,7 @@ function B2(e, t) {
|
|
|
14634
14636
|
items: o.content.items,
|
|
14635
14637
|
trail: [o.label]
|
|
14636
14638
|
};
|
|
14637
|
-
const c =
|
|
14639
|
+
const c = X2(o.content, n);
|
|
14638
14640
|
return {
|
|
14639
14641
|
...c,
|
|
14640
14642
|
trail: [o.label, ...c.trail]
|
|
@@ -14692,22 +14694,22 @@ function md({
|
|
|
14692
14694
|
onOpenChange: m,
|
|
14693
14695
|
className: f
|
|
14694
14696
|
}) {
|
|
14695
|
-
const [O, v] = g1(!1),
|
|
14696
|
-
(
|
|
14697
|
-
), N =
|
|
14697
|
+
const [O, v] = g1(!1), b = C ?? O, V = m ?? v, [z, k] = g1(null), [I, S] = g1([]), W = r.find(
|
|
14698
|
+
(P) => Gt(P) && P.id === z
|
|
14699
|
+
), N = W ? X2(W.content, I) : null, h = !!(W && N), G = x === "left", R = () => S([]), D = y(
|
|
14698
14700
|
"bg-background-primary max-h-[min(28rem,calc(100dvh-8rem))] min-w-[200px] max-w-[min(28rem,calc(100vw-2rem))] flex flex-col overflow-hidden border border-divider-primary shadow-raise1",
|
|
14699
14701
|
G ? "rounded-l-lg rounded-r-none border-r-0" : "rounded-r-lg rounded-l-none border-l-0"
|
|
14700
14702
|
), e1 = y(
|
|
14701
14703
|
"min-w-[180px] border border-divider-primary bg-background-primary shadow-raise1",
|
|
14702
|
-
|
|
14703
|
-
), B = (
|
|
14704
|
+
h ? G ? "rounded-r-lg rounded-l-none" : "rounded-l-lg rounded-r-none" : "rounded-lg"
|
|
14705
|
+
), B = (P, K) => K.map((U) => {
|
|
14704
14706
|
var c1;
|
|
14705
|
-
const F = ((c1 = n[
|
|
14707
|
+
const F = ((c1 = n[P]) == null ? void 0 : c1.includes(U.value)) ?? !1, t1 = U.icon, Y = u == null ? void 0 : u(P, U.value);
|
|
14706
14708
|
return /* @__PURE__ */ a.jsxs(
|
|
14707
14709
|
"button",
|
|
14708
14710
|
{
|
|
14709
14711
|
type: "button",
|
|
14710
|
-
onClick: () => o(
|
|
14712
|
+
onClick: () => o(P, U.value),
|
|
14711
14713
|
className: y(ot, F && "bg-grey-100"),
|
|
14712
14714
|
children: [
|
|
14713
14715
|
/* @__PURE__ */ a.jsxs("div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
@@ -14730,39 +14732,39 @@ function md({
|
|
|
14730
14732
|
U.value
|
|
14731
14733
|
);
|
|
14732
14734
|
}), Z = /* @__PURE__ */ a.jsx("div", { className: e1, children: /* @__PURE__ */ a.jsxs("div", { className: "py-2", children: [
|
|
14733
|
-
r.map((
|
|
14734
|
-
const U = K > 0 ? r[K - 1] : null, F = K > 0 && (
|
|
14735
|
-
return
|
|
14735
|
+
r.map((P, K) => {
|
|
14736
|
+
const U = K > 0 ? r[K - 1] : null, F = K > 0 && (bn(P) || Pn(P) && U && Gt(U) || Gt(P) && U && !Gt(U));
|
|
14737
|
+
return bn(P) ? /* @__PURE__ */ a.jsxs("div", { children: [
|
|
14736
14738
|
F && /* @__PURE__ */ a.jsx("div", { className: "my-2 border-t border-divider-primary" }),
|
|
14737
14739
|
/* @__PURE__ */ a.jsxs("div", { className: y(ot, "hover:bg-transparent"), children: [
|
|
14738
|
-
/* @__PURE__ */ a.jsx("span", { className: "text-body text-display-on-light-primary", children:
|
|
14740
|
+
/* @__PURE__ */ a.jsx("span", { className: "text-body text-display-on-light-primary", children: P.label }),
|
|
14739
14741
|
/* @__PURE__ */ a.jsx(
|
|
14740
14742
|
Y3,
|
|
14741
14743
|
{
|
|
14742
|
-
checked:
|
|
14743
|
-
onChange:
|
|
14744
|
+
checked: P.checked,
|
|
14745
|
+
onChange: P.onCheckedChange
|
|
14744
14746
|
}
|
|
14745
14747
|
)
|
|
14746
14748
|
] })
|
|
14747
|
-
] },
|
|
14749
|
+
] }, P.id) : Pn(P) ? /* @__PURE__ */ a.jsxs("div", { children: [
|
|
14748
14750
|
F && /* @__PURE__ */ a.jsx("div", { className: "my-2 border-t border-divider-primary" }),
|
|
14749
|
-
|
|
14750
|
-
|
|
14751
|
-
] },
|
|
14751
|
+
P.title ? /* @__PURE__ */ a.jsx("div", { className: "px-4 pb-1 pt-1 text-caption-2 text-display-on-light-secondary", children: P.title }) : null,
|
|
14752
|
+
P.options.length === 0 ? /* @__PURE__ */ a.jsx("p", { className: "px-4 py-2 text-body text-grey-500", children: "No options" }) : B(P.selectionKey, P.options)
|
|
14753
|
+
] }, P.id) : /* @__PURE__ */ a.jsxs("div", { children: [
|
|
14752
14754
|
F && /* @__PURE__ */ a.jsx("div", { className: "my-2 border-t border-divider-primary" }),
|
|
14753
14755
|
/* @__PURE__ */ a.jsxs(
|
|
14754
14756
|
"button",
|
|
14755
14757
|
{
|
|
14756
14758
|
type: "button",
|
|
14757
14759
|
onClick: () => {
|
|
14758
|
-
z ===
|
|
14760
|
+
z === P.id ? (k(null), R()) : (k(P.id), R());
|
|
14759
14761
|
},
|
|
14760
14762
|
className: y(
|
|
14761
14763
|
ot,
|
|
14762
|
-
z ===
|
|
14764
|
+
z === P.id && "bg-grey-50"
|
|
14763
14765
|
),
|
|
14764
14766
|
children: [
|
|
14765
|
-
/* @__PURE__ */ a.jsx("span", { className: "text-body text-display-on-light-primary", children:
|
|
14767
|
+
/* @__PURE__ */ a.jsx("span", { className: "text-body text-display-on-light-primary", children: P.label }),
|
|
14766
14768
|
/* @__PURE__ */ a.jsx(
|
|
14767
14769
|
y1,
|
|
14768
14770
|
{
|
|
@@ -14770,14 +14772,14 @@ function md({
|
|
|
14770
14772
|
size: "small",
|
|
14771
14773
|
className: y(
|
|
14772
14774
|
"text-grey-400 transition-transform",
|
|
14773
|
-
z ===
|
|
14775
|
+
z === P.id && "rotate-90"
|
|
14774
14776
|
)
|
|
14775
14777
|
}
|
|
14776
14778
|
)
|
|
14777
14779
|
]
|
|
14778
14780
|
}
|
|
14779
14781
|
)
|
|
14780
|
-
] },
|
|
14782
|
+
] }, P.id);
|
|
14781
14783
|
}),
|
|
14782
14784
|
i && /* @__PURE__ */ a.jsx("div", { className: "mt-2 border-t border-divider-primary pt-2", children: /* @__PURE__ */ a.jsx(
|
|
14783
14785
|
"button",
|
|
@@ -14788,12 +14790,12 @@ function md({
|
|
|
14788
14790
|
children: /* @__PURE__ */ a.jsx("span", { className: "text-body text-display-on-light-primary", children: s })
|
|
14789
14791
|
}
|
|
14790
14792
|
) })
|
|
14791
|
-
] }) }), H =
|
|
14793
|
+
] }) }), H = h && N ? /* @__PURE__ */ a.jsxs("div", { className: y(D, "flex flex-col"), children: [
|
|
14792
14794
|
I.length > 0 && /* @__PURE__ */ a.jsx("div", { className: "flex-shrink-0 border-b border-grey-100 px-2 py-1.5", children: /* @__PURE__ */ a.jsxs(
|
|
14793
14795
|
"button",
|
|
14794
14796
|
{
|
|
14795
14797
|
type: "button",
|
|
14796
|
-
onClick: () => S((
|
|
14798
|
+
onClick: () => S((P) => P.slice(0, -1)),
|
|
14797
14799
|
className: "flex w-full items-center gap-1 rounded-md px-2 py-1 text-left text-caption-2-em text-display-on-light-secondary hover:bg-grey-50",
|
|
14798
14800
|
children: [
|
|
14799
14801
|
/* @__PURE__ */ a.jsx(
|
|
@@ -14809,14 +14811,14 @@ function md({
|
|
|
14809
14811
|
}
|
|
14810
14812
|
) }),
|
|
14811
14813
|
N.trail.length > 0 && /* @__PURE__ */ a.jsx("div", { className: "flex-shrink-0 truncate px-4 pb-1 pt-2 text-footnote text-grey-500", children: N.trail.join(" › ") }),
|
|
14812
|
-
/* @__PURE__ */ a.jsx("div", { className: Cd, children: N.kind === "folders" ? N.items.length === 0 ? /* @__PURE__ */ a.jsx("p", { className: "px-4 py-2 text-body text-grey-500", children: "No options" }) : N.items.map((
|
|
14814
|
+
/* @__PURE__ */ a.jsx("div", { className: Cd, children: N.kind === "folders" ? N.items.length === 0 ? /* @__PURE__ */ a.jsx("p", { className: "px-4 py-2 text-body text-grey-500", children: "No options" }) : N.items.map((P) => /* @__PURE__ */ a.jsxs(
|
|
14813
14815
|
"button",
|
|
14814
14816
|
{
|
|
14815
14817
|
type: "button",
|
|
14816
|
-
onClick: () => S((K) => [...K,
|
|
14818
|
+
onClick: () => S((K) => [...K, P.id]),
|
|
14817
14819
|
className: ot,
|
|
14818
14820
|
children: [
|
|
14819
|
-
/* @__PURE__ */ a.jsx("span", { className: "text-body text-display-on-light-primary", children:
|
|
14821
|
+
/* @__PURE__ */ a.jsx("span", { className: "text-body text-display-on-light-primary", children: P.label }),
|
|
14820
14822
|
/* @__PURE__ */ a.jsx(
|
|
14821
14823
|
y1,
|
|
14822
14824
|
{
|
|
@@ -14827,15 +14829,15 @@ function md({
|
|
|
14827
14829
|
)
|
|
14828
14830
|
]
|
|
14829
14831
|
},
|
|
14830
|
-
|
|
14832
|
+
P.id
|
|
14831
14833
|
)) : N.kind === "custom" ? /* @__PURE__ */ a.jsx("div", { className: "p-4", children: N.render() }) : N.options.length === 0 ? /* @__PURE__ */ a.jsx("p", { className: "px-4 py-2 text-body text-grey-500", children: "No options" }) : B(N.selectionKey, N.options) })
|
|
14832
14834
|
] }) : null;
|
|
14833
14835
|
return /* @__PURE__ */ a.jsxs(
|
|
14834
14836
|
ld,
|
|
14835
14837
|
{
|
|
14836
|
-
open:
|
|
14837
|
-
onOpenChange: (
|
|
14838
|
-
V(
|
|
14838
|
+
open: b,
|
|
14839
|
+
onOpenChange: (P) => {
|
|
14840
|
+
V(P), P || (k(null), S([]));
|
|
14839
14841
|
},
|
|
14840
14842
|
children: [
|
|
14841
14843
|
/* @__PURE__ */ a.jsx(ud, { asChild: !0, children: p ?? /* @__PURE__ */ a.jsx(
|
|
@@ -14932,7 +14934,7 @@ const fd = {
|
|
|
14932
14934
|
n
|
|
14933
14935
|
),
|
|
14934
14936
|
children: [
|
|
14935
|
-
/* @__PURE__ */ a.jsx("span", { className: "flex size-8 shrink-0 items-center justify-center rounded-control bg-background-secondary", children: /* @__PURE__ */ a.jsx(
|
|
14937
|
+
/* @__PURE__ */ a.jsx("span", { className: "flex size-8 shrink-0 items-center justify-center rounded-control bg-background-secondary", children: /* @__PURE__ */ a.jsx(Wn, { size: "small" }) }),
|
|
14936
14938
|
/* @__PURE__ */ a.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
14937
14939
|
/* @__PURE__ */ a.jsx("p", { className: "truncate text-caption-1-em text-display-on-light-primary", children: e }),
|
|
14938
14940
|
/* @__PURE__ */ a.jsx("p", { className: "truncate text-caption-2 text-display-on-light-tertiary", children: t })
|
|
@@ -15075,7 +15077,7 @@ const fd = {
|
|
|
15075
15077
|
n
|
|
15076
15078
|
),
|
|
15077
15079
|
children: [
|
|
15078
|
-
r === "uploading" ? /* @__PURE__ */ a.jsx(va, { size: "small", className: "text-blue-600" }) : /* @__PURE__ */ a.jsx(
|
|
15080
|
+
r === "uploading" ? /* @__PURE__ */ a.jsx(va, { size: "small", className: "text-blue-600" }) : /* @__PURE__ */ a.jsx(Fn, { size: c ? "large" : "small", className: "text-display-on-light-secondary" }),
|
|
15079
15081
|
/* @__PURE__ */ a.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
15080
15082
|
/* @__PURE__ */ a.jsx(
|
|
15081
15083
|
"p",
|
|
@@ -15158,7 +15160,7 @@ const fd = {
|
|
|
15158
15160
|
n
|
|
15159
15161
|
),
|
|
15160
15162
|
children: [
|
|
15161
|
-
/* @__PURE__ */ a.jsx("span", { className: "flex size-8 shrink-0 items-center justify-center rounded-control bg-background-secondary", children: /* @__PURE__ */ a.jsx(
|
|
15163
|
+
/* @__PURE__ */ a.jsx("span", { className: "flex size-8 shrink-0 items-center justify-center rounded-control bg-background-secondary", children: /* @__PURE__ */ a.jsx(Nn, { size: "small" }) }),
|
|
15162
15164
|
/* @__PURE__ */ a.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
15163
15165
|
/* @__PURE__ */ a.jsx("p", { className: "truncate text-caption-1-em text-display-on-light-primary", children: e }),
|
|
15164
15166
|
/* @__PURE__ */ a.jsx("p", { className: "truncate text-caption-2 text-display-on-light-tertiary", children: t })
|
|
@@ -15180,7 +15182,7 @@ const fd = {
|
|
|
15180
15182
|
FormHeader: vd,
|
|
15181
15183
|
FormListRow: Vd,
|
|
15182
15184
|
GroupHeader: ru,
|
|
15183
|
-
Importance:
|
|
15185
|
+
Importance: R2,
|
|
15184
15186
|
InfoHeading: Tc,
|
|
15185
15187
|
InfoRow: Jt,
|
|
15186
15188
|
LibraryListRow: hd,
|
|
@@ -15204,13 +15206,13 @@ const fd = {
|
|
|
15204
15206
|
WorkflowProgress: Rc,
|
|
15205
15207
|
WorkflowRow: Wl,
|
|
15206
15208
|
formatActiveFilterChipLabel: jd,
|
|
15207
|
-
resolveSubmenuView:
|
|
15209
|
+
resolveSubmenuView: X2
|
|
15208
15210
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
15209
15211
|
export {
|
|
15210
15212
|
F8 as ActionsIcon,
|
|
15211
15213
|
ur as ActivityIcon,
|
|
15212
15214
|
ga as AddIcon,
|
|
15213
|
-
|
|
15215
|
+
Mn as AnalyticsIcon,
|
|
15214
15216
|
W8 as ApprovalIcon,
|
|
15215
15217
|
w8 as ArchiveIcon,
|
|
15216
15218
|
da as ArrowIcon,
|
|
@@ -15219,7 +15221,7 @@ export {
|
|
|
15219
15221
|
W1 as Avatar,
|
|
15220
15222
|
ve as Badge,
|
|
15221
15223
|
dr as BookIcon,
|
|
15222
|
-
|
|
15224
|
+
wn as BulbIcon,
|
|
15223
15225
|
gt as Button,
|
|
15224
15226
|
Qd as Callout,
|
|
15225
15227
|
D8 as CautionIcon,
|
|
@@ -15237,30 +15239,30 @@ export {
|
|
|
15237
15239
|
tp as CreationIllustration,
|
|
15238
15240
|
pr as CriticalIcon,
|
|
15239
15241
|
I8 as DateIcon,
|
|
15240
|
-
|
|
15242
|
+
Rn as DefectReportIcon,
|
|
15241
15243
|
bp as DocumentEditor,
|
|
15242
|
-
|
|
15244
|
+
Nn as DocumentIcon,
|
|
15243
15245
|
zp as Domain,
|
|
15244
15246
|
it as DoneIcon,
|
|
15245
15247
|
N8 as DownloadIcon,
|
|
15246
|
-
|
|
15247
|
-
|
|
15248
|
+
f2 as DropdownMenu,
|
|
15249
|
+
y2 as DropdownMenuItem,
|
|
15248
15250
|
Ld as DropdownMenuSeparator,
|
|
15249
15251
|
jp as EmptyState,
|
|
15250
15252
|
lA as Entry,
|
|
15251
|
-
|
|
15252
|
-
|
|
15253
|
-
|
|
15253
|
+
hn as ExpandIcon,
|
|
15254
|
+
Fn as FileIcon,
|
|
15255
|
+
Kn as FiltersIcon,
|
|
15254
15256
|
q8 as FixesIcon,
|
|
15255
15257
|
Oa as FolderIcon,
|
|
15256
15258
|
G8 as FolderStarredIcon,
|
|
15257
|
-
|
|
15259
|
+
Wn as FormIcon,
|
|
15258
15260
|
Vt as FormsIcon,
|
|
15259
15261
|
L8 as GapIcon,
|
|
15260
15262
|
Y4 as GroupedAvatars,
|
|
15261
15263
|
xp as Header,
|
|
15262
15264
|
b8 as HeartIcon,
|
|
15263
|
-
|
|
15265
|
+
In as ICON_BOX,
|
|
15264
15266
|
_8 as Icon,
|
|
15265
15267
|
K1 as IconButton,
|
|
15266
15268
|
Gd as IconSizeRow,
|
|
@@ -15271,13 +15273,13 @@ export {
|
|
|
15271
15273
|
sp as InternalAuditIllustration,
|
|
15272
15274
|
ja as InviteIcon,
|
|
15273
15275
|
ep as InviteIllustration,
|
|
15274
|
-
|
|
15276
|
+
qn as IssuesIcon,
|
|
15275
15277
|
B8 as LocationIcon,
|
|
15276
15278
|
T8 as LogOutIcon,
|
|
15277
|
-
|
|
15279
|
+
O2 as Logo,
|
|
15278
15280
|
R8 as MentionIcon,
|
|
15279
15281
|
K8 as MenuIcon,
|
|
15280
|
-
|
|
15282
|
+
tn as MenuItem,
|
|
15281
15283
|
V8 as MicrophoneIcon,
|
|
15282
15284
|
cr as MinusIcon,
|
|
15283
15285
|
mA as Modal,
|
|
@@ -15291,7 +15293,7 @@ export {
|
|
|
15291
15293
|
jA as ModalPortal,
|
|
15292
15294
|
$o as ModalTitle,
|
|
15293
15295
|
fp as ModalTrigger,
|
|
15294
|
-
|
|
15296
|
+
Un as MoreIcon,
|
|
15295
15297
|
Cp as PageHeader,
|
|
15296
15298
|
Pp as Patterns,
|
|
15297
15299
|
vp as PdfViewer,
|
|
@@ -15305,7 +15307,7 @@ export {
|
|
|
15305
15307
|
ip as QuestionsDoneIllustration,
|
|
15306
15308
|
M8 as RefreshIcon,
|
|
15307
15309
|
Q8 as ReportActionsIcon,
|
|
15308
|
-
|
|
15310
|
+
Sn as ReportIcon,
|
|
15309
15311
|
lp as ReportInput,
|
|
15310
15312
|
cp as RightShipInspectionIllustration,
|
|
15311
15313
|
mp as ScrollableList,
|
|
@@ -15313,7 +15315,7 @@ export {
|
|
|
15313
15315
|
xa as SendIcon,
|
|
15314
15316
|
fa as SettingsIcon,
|
|
15315
15317
|
Te as ShipIcon,
|
|
15316
|
-
|
|
15318
|
+
sn as SidebarIcon,
|
|
15317
15319
|
z8 as SparklesIcon,
|
|
15318
15320
|
H8 as SpeakerIcon,
|
|
15319
15321
|
va as SpinnerIcon,
|
|
@@ -15326,7 +15328,7 @@ export {
|
|
|
15326
15328
|
wo as TabsList,
|
|
15327
15329
|
To as TabsTrigger,
|
|
15328
15330
|
J8 as TaskIcon,
|
|
15329
|
-
|
|
15331
|
+
Tn as TasksIcon,
|
|
15330
15332
|
vo as ThinkingDot,
|
|
15331
15333
|
lr as TickIcon,
|
|
15332
15334
|
kt as Tooltip,
|