@scbt-ecom/ui 0.23.0 → 0.24.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{CustomLink-BHI03NwX.js → CustomLink-CKaoTS8A.js} +678 -694
- package/dist/CustomLink-CKaoTS8A.js.map +1 -0
- package/dist/config.js +1 -1
- package/dist/config.js.map +1 -1
- package/dist/hooks.js +39 -105
- package/dist/hooks.js.map +1 -1
- package/dist/isClient-D-a29gNu.js +5 -0
- package/dist/{isClient-C9aZtt2Q.js.map → isClient-D-a29gNu.js.map} +1 -1
- package/dist/{parse-Bv7rNn_R.js → parse-C_80L3wX.js} +404 -343
- package/dist/parse-C_80L3wX.js.map +1 -0
- package/dist/shared/ui/customLink/CustomLink.d.ts +1 -2
- package/dist/shared/ui/formElements/controlled/autocomplete/Autocomplete.d.ts +15 -0
- package/dist/shared/ui/formElements/controlled/autocomplete/index.d.ts +1 -0
- package/dist/shared/ui/formElements/controlled/dadata/address/DadataAddress.d.ts +11 -0
- package/dist/shared/ui/formElements/controlled/dadata/address/index.d.ts +1 -0
- package/dist/shared/ui/formElements/controlled/dadata/address/query.d.ts +3 -0
- package/dist/shared/ui/formElements/controlled/dadata/auto/DadataAuto.d.ts +11 -0
- package/dist/shared/ui/formElements/controlled/dadata/auto/index.d.ts +1 -0
- package/dist/shared/ui/formElements/controlled/dadata/auto/query.d.ts +3 -0
- package/dist/shared/ui/formElements/controlled/dadata/country/DadataCountry.d.ts +11 -0
- package/dist/shared/ui/formElements/controlled/dadata/country/index.d.ts +1 -0
- package/dist/shared/ui/formElements/controlled/dadata/country/query.d.ts +3 -0
- package/dist/shared/ui/formElements/controlled/dadata/fio/DadataFio.d.ts +11 -0
- package/dist/shared/ui/formElements/controlled/dadata/fio/index.d.ts +1 -0
- package/dist/shared/ui/formElements/controlled/dadata/fio/query.d.ts +3 -0
- package/dist/shared/ui/formElements/controlled/dadata/helpers.d.ts +2 -0
- package/dist/shared/ui/formElements/controlled/dadata/index.d.ts +5 -0
- package/dist/shared/ui/formElements/controlled/dadata/party/DadataOrganization.d.ts +11 -0
- package/dist/shared/ui/formElements/controlled/dadata/party/index.d.ts +1 -0
- package/dist/shared/ui/formElements/controlled/dadata/party/query.d.ts +3 -0
- package/dist/shared/ui/formElements/controlled/dadata/types.d.ts +35 -0
- package/dist/shared/ui/formElements/controlled/index.d.ts +26 -8
- package/dist/shared/ui/formElements/dadataControl/DadataAddress.d.ts +3 -0
- package/dist/shared/ui/formElements/dadataControl/DadataAuto.d.ts +3 -0
- package/dist/shared/ui/formElements/dadataControl/DadataCountry.d.ts +3 -0
- package/dist/shared/ui/formElements/dadataControl/DadataFio.d.ts +3 -0
- package/dist/shared/ui/formElements/dadataControl/DadataOrganization.d.ts +3 -0
- package/dist/shared/ui/formElements/dadataControl/autocompleteDadata/AutocompleteDadata.d.ts +3 -0
- package/dist/shared/ui/formElements/dadataControl/autocompleteDadata/model/helpers.d.ts +1 -0
- package/dist/shared/ui/formElements/editorControl/model/config.d.ts +1 -1
- package/dist/shared/ui/formElements/editorControl/ui/commands/index.d.ts +1 -1
- package/dist/shared/ui/formElements/editorControl/ui/commands/setCustomLink.d.ts +6 -0
- package/dist/shared/ui/formElements/uncontrolled/autocomplete/Autocomplete.d.ts +25 -0
- package/dist/shared/ui/formElements/uncontrolled/autocomplete/index.d.ts +1 -0
- package/dist/shared/ui/formElements/uncontrolled/index.d.ts +7 -8
- package/dist/shared/ui/formElements/uncontrolled/select/Select.d.ts +27 -3
- package/dist/shared/ui/formElements/uncontrolled/select/hooks/useSelectController.d.ts +5 -2
- package/dist/shared/validation/messages.d.ts +1 -0
- package/dist/ui.js +12489 -11998
- package/dist/ui.js.map +1 -1
- package/dist/useDebounce-DyvGYvL9.js +1169 -0
- package/dist/useDebounce-DyvGYvL9.js.map +1 -0
- package/dist/utils.js +1 -1
- package/dist/validation.js +26 -37
- package/dist/validation.js.map +1 -1
- package/dist/widget.js +1 -1
- package/package.json +1 -2
- package/dist/CustomLink-BHI03NwX.js.map +0 -1
- package/dist/isClient-C9aZtt2Q.js +0 -5
- package/dist/parse-Bv7rNn_R.js.map +0 -1
- package/dist/shared/ui/formElements/editorControl/ui/commands/SetLink.d.ts +0 -6
- package/dist/useDebounce-m2rLy7nL.js +0 -1110
- package/dist/useDebounce-m2rLy7nL.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as Wo, c as L } from "./cn-DIfn7EPB.js";
|
|
2
2
|
import * as d from "react";
|
|
3
|
-
import H, { forwardRef as
|
|
4
|
-
import * as
|
|
3
|
+
import H, { forwardRef as nr, useLayoutEffect as $o, useEffect as Vo, useState as zo } from "react";
|
|
4
|
+
import * as rr from "react-dom";
|
|
5
5
|
import Ho from "react-dom";
|
|
6
|
-
var
|
|
6
|
+
var Ut = { exports: {} }, Xe = {};
|
|
7
7
|
/**
|
|
8
8
|
* @license React
|
|
9
9
|
* react-jsx-runtime.production.min.js
|
|
@@ -13,21 +13,21 @@ var Kt = { exports: {} }, Ge = {};
|
|
|
13
13
|
* This source code is licensed under the MIT license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
15
|
*/
|
|
16
|
-
var
|
|
16
|
+
var Nn;
|
|
17
17
|
function Uo() {
|
|
18
|
-
if (
|
|
19
|
-
|
|
18
|
+
if (Nn) return Xe;
|
|
19
|
+
Nn = 1;
|
|
20
20
|
var e = H, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
21
21
|
function a(s, u, l) {
|
|
22
|
-
var f, p = {},
|
|
23
|
-
l !== void 0 && (
|
|
22
|
+
var f, p = {}, m = null, v = null;
|
|
23
|
+
l !== void 0 && (m = "" + l), u.key !== void 0 && (m = "" + u.key), u.ref !== void 0 && (v = u.ref);
|
|
24
24
|
for (f in u) r.call(u, f) && !i.hasOwnProperty(f) && (p[f] = u[f]);
|
|
25
25
|
if (s && s.defaultProps) for (f in u = s.defaultProps, u) p[f] === void 0 && (p[f] = u[f]);
|
|
26
|
-
return { $$typeof: t, type: s, key:
|
|
26
|
+
return { $$typeof: t, type: s, key: m, ref: v, props: p, _owner: o.current };
|
|
27
27
|
}
|
|
28
|
-
return
|
|
28
|
+
return Xe.Fragment = n, Xe.jsx = a, Xe.jsxs = a, Xe;
|
|
29
29
|
}
|
|
30
|
-
var
|
|
30
|
+
var Ge = {};
|
|
31
31
|
/**
|
|
32
32
|
* @license React
|
|
33
33
|
* react-jsx-runtime.development.js
|
|
@@ -37,10 +37,10 @@ var qe = {};
|
|
|
37
37
|
* This source code is licensed under the MIT license found in the
|
|
38
38
|
* LICENSE file in the root directory of this source tree.
|
|
39
39
|
*/
|
|
40
|
-
var
|
|
40
|
+
var kn;
|
|
41
41
|
function Yo() {
|
|
42
|
-
return
|
|
43
|
-
var e = H, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), s = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"),
|
|
42
|
+
return kn || (kn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
+
var e = H, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), s = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), x = Symbol.iterator, h = "@@iterator";
|
|
44
44
|
function g(c) {
|
|
45
45
|
if (c === null || typeof c != "object")
|
|
46
46
|
return null;
|
|
@@ -57,8 +57,8 @@ function Yo() {
|
|
|
57
57
|
}
|
|
58
58
|
function E(c, C, P) {
|
|
59
59
|
{
|
|
60
|
-
var O = w.ReactDebugCurrentFrame,
|
|
61
|
-
|
|
60
|
+
var O = w.ReactDebugCurrentFrame, D = O.getStackAddendum();
|
|
61
|
+
D !== "" && (C += "%s", P = P.concat([D]));
|
|
62
62
|
var B = P.map(function(k) {
|
|
63
63
|
return String(k);
|
|
64
64
|
});
|
|
@@ -68,7 +68,7 @@ function Yo() {
|
|
|
68
68
|
var R = !1, A = !1, _ = !1, S = !1, j = !1, F;
|
|
69
69
|
F = Symbol.for("react.module.reference");
|
|
70
70
|
function W(c) {
|
|
71
|
-
return !!(typeof c == "string" || typeof c == "function" || c === r || c === i || j || c === o || c === l || c === f || S || c ===
|
|
71
|
+
return !!(typeof c == "string" || typeof c == "function" || c === r || c === i || j || c === o || c === l || c === f || S || c === v || R || A || _ || typeof c == "object" && c !== null && (c.$$typeof === m || c.$$typeof === p || c.$$typeof === a || c.$$typeof === s || c.$$typeof === u || // This needs to include all possible module reference object
|
|
72
72
|
// types supported by any Flight configuration anywhere since
|
|
73
73
|
// we don't know which Flight build this will end up being used
|
|
74
74
|
// with.
|
|
@@ -78,13 +78,13 @@ function Yo() {
|
|
|
78
78
|
var O = c.displayName;
|
|
79
79
|
if (O)
|
|
80
80
|
return O;
|
|
81
|
-
var
|
|
82
|
-
return
|
|
81
|
+
var D = C.displayName || C.name || "";
|
|
82
|
+
return D !== "" ? P + "(" + D + ")" : P;
|
|
83
83
|
}
|
|
84
84
|
function K(c) {
|
|
85
85
|
return c.displayName || "Context";
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function I(c) {
|
|
88
88
|
if (c == null)
|
|
89
89
|
return null;
|
|
90
90
|
if (typeof c.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof c == "function")
|
|
@@ -117,11 +117,11 @@ function Yo() {
|
|
|
117
117
|
return G(c, c.render, "ForwardRef");
|
|
118
118
|
case p:
|
|
119
119
|
var O = c.displayName || null;
|
|
120
|
-
return O !== null ? O :
|
|
121
|
-
case
|
|
122
|
-
var
|
|
120
|
+
return O !== null ? O : I(c.type) || "Memo";
|
|
121
|
+
case m: {
|
|
122
|
+
var D = c, B = D._payload, k = D._init;
|
|
123
123
|
try {
|
|
124
|
-
return
|
|
124
|
+
return I(k(B));
|
|
125
125
|
} catch {
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
@@ -129,18 +129,18 @@ function Yo() {
|
|
|
129
129
|
}
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
132
|
-
var
|
|
133
|
-
function
|
|
132
|
+
var M = Object.assign, X = 0, $, V, N, Y, Q, Ee, tt;
|
|
133
|
+
function nt() {
|
|
134
134
|
}
|
|
135
|
-
|
|
136
|
-
function
|
|
135
|
+
nt.__reactDisabledLog = !0;
|
|
136
|
+
function _t() {
|
|
137
137
|
{
|
|
138
138
|
if (X === 0) {
|
|
139
|
-
$ = console.log, V = console.info, N = console.warn, Y = console.error, Q = console.group, Ee = console.groupCollapsed,
|
|
139
|
+
$ = console.log, V = console.info, N = console.warn, Y = console.error, Q = console.group, Ee = console.groupCollapsed, tt = console.groupEnd;
|
|
140
140
|
var c = {
|
|
141
141
|
configurable: !0,
|
|
142
142
|
enumerable: !0,
|
|
143
|
-
value:
|
|
143
|
+
value: nt,
|
|
144
144
|
writable: !0
|
|
145
145
|
};
|
|
146
146
|
Object.defineProperties(console, {
|
|
@@ -156,7 +156,7 @@ function Yo() {
|
|
|
156
156
|
X++;
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function Tt() {
|
|
160
160
|
{
|
|
161
161
|
if (X--, X === 0) {
|
|
162
162
|
var c = {
|
|
@@ -165,26 +165,26 @@ function Yo() {
|
|
|
165
165
|
writable: !0
|
|
166
166
|
};
|
|
167
167
|
Object.defineProperties(console, {
|
|
168
|
-
log:
|
|
168
|
+
log: M({}, c, {
|
|
169
169
|
value: $
|
|
170
170
|
}),
|
|
171
|
-
info:
|
|
171
|
+
info: M({}, c, {
|
|
172
172
|
value: V
|
|
173
173
|
}),
|
|
174
|
-
warn:
|
|
174
|
+
warn: M({}, c, {
|
|
175
175
|
value: N
|
|
176
176
|
}),
|
|
177
|
-
error:
|
|
177
|
+
error: M({}, c, {
|
|
178
178
|
value: Y
|
|
179
179
|
}),
|
|
180
|
-
group:
|
|
180
|
+
group: M({}, c, {
|
|
181
181
|
value: Q
|
|
182
182
|
}),
|
|
183
|
-
groupCollapsed:
|
|
183
|
+
groupCollapsed: M({}, c, {
|
|
184
184
|
value: Ee
|
|
185
185
|
}),
|
|
186
|
-
groupEnd:
|
|
187
|
-
value:
|
|
186
|
+
groupEnd: M({}, c, {
|
|
187
|
+
value: tt
|
|
188
188
|
})
|
|
189
189
|
});
|
|
190
190
|
}
|
|
@@ -197,8 +197,8 @@ function Yo() {
|
|
|
197
197
|
if (Te === void 0)
|
|
198
198
|
try {
|
|
199
199
|
throw Error();
|
|
200
|
-
} catch (
|
|
201
|
-
var O =
|
|
200
|
+
} catch (D) {
|
|
201
|
+
var O = D.stack.trim().match(/\n( *(at )?)/);
|
|
202
202
|
Te = O && O[1] || "";
|
|
203
203
|
}
|
|
204
204
|
return `
|
|
@@ -207,8 +207,8 @@ function Yo() {
|
|
|
207
207
|
}
|
|
208
208
|
var Ne = !1, Pe;
|
|
209
209
|
{
|
|
210
|
-
var
|
|
211
|
-
Pe = new
|
|
210
|
+
var rt = typeof WeakMap == "function" ? WeakMap : Map;
|
|
211
|
+
Pe = new rt();
|
|
212
212
|
}
|
|
213
213
|
function Ke(c, C) {
|
|
214
214
|
if (!c || Ne)
|
|
@@ -220,10 +220,10 @@ function Yo() {
|
|
|
220
220
|
}
|
|
221
221
|
var O;
|
|
222
222
|
Ne = !0;
|
|
223
|
-
var
|
|
223
|
+
var D = Error.prepareStackTrace;
|
|
224
224
|
Error.prepareStackTrace = void 0;
|
|
225
225
|
var B;
|
|
226
|
-
B = Ye.current, Ye.current = null,
|
|
226
|
+
B = Ye.current, Ye.current = null, _t();
|
|
227
227
|
try {
|
|
228
228
|
if (C) {
|
|
229
229
|
var k = function() {
|
|
@@ -276,7 +276,7 @@ function Yo() {
|
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
} finally {
|
|
279
|
-
Ne = !1, Ye.current = B,
|
|
279
|
+
Ne = !1, Ye.current = B, Tt(), Error.prepareStackTrace = D;
|
|
280
280
|
}
|
|
281
281
|
var De = c ? c.displayName || c.name : "", Oe = De ? Re(De) : "";
|
|
282
282
|
return typeof c == "function" && Pe.set(c, Oe), Oe;
|
|
@@ -284,7 +284,7 @@ function Yo() {
|
|
|
284
284
|
function Ae(c, C, P) {
|
|
285
285
|
return Ke(c, !1);
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function ot(c) {
|
|
288
288
|
var C = c.prototype;
|
|
289
289
|
return !!(C && C.isReactComponent);
|
|
290
290
|
}
|
|
@@ -292,7 +292,7 @@ function Yo() {
|
|
|
292
292
|
if (c == null)
|
|
293
293
|
return "";
|
|
294
294
|
if (typeof c == "function")
|
|
295
|
-
return Ke(c,
|
|
295
|
+
return Ke(c, ot(c));
|
|
296
296
|
if (typeof c == "string")
|
|
297
297
|
return Re(c);
|
|
298
298
|
switch (c) {
|
|
@@ -307,25 +307,25 @@ function Yo() {
|
|
|
307
307
|
return Ae(c.render);
|
|
308
308
|
case p:
|
|
309
309
|
return ke(c.type, C, P);
|
|
310
|
-
case
|
|
311
|
-
var O = c,
|
|
310
|
+
case m: {
|
|
311
|
+
var O = c, D = O._payload, B = O._init;
|
|
312
312
|
try {
|
|
313
|
-
return ke(B(
|
|
313
|
+
return ke(B(D), C, P);
|
|
314
314
|
} catch {
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
return "";
|
|
319
319
|
}
|
|
320
|
-
var Se = Object.prototype.hasOwnProperty,
|
|
320
|
+
var Se = Object.prototype.hasOwnProperty, it = {}, at = w.ReactDebugCurrentFrame;
|
|
321
321
|
function fe(c) {
|
|
322
322
|
if (c) {
|
|
323
323
|
var C = c._owner, P = ke(c.type, c._source, C ? C.type : null);
|
|
324
|
-
|
|
324
|
+
at.setExtraStackFrame(P);
|
|
325
325
|
} else
|
|
326
|
-
|
|
326
|
+
at.setExtraStackFrame(null);
|
|
327
327
|
}
|
|
328
|
-
function yo(c, C, P, O,
|
|
328
|
+
function yo(c, C, P, O, D) {
|
|
329
329
|
{
|
|
330
330
|
var B = Function.call.bind(Se);
|
|
331
331
|
for (var k in c)
|
|
@@ -340,41 +340,40 @@ function Yo() {
|
|
|
340
340
|
} catch (z) {
|
|
341
341
|
T = z;
|
|
342
342
|
}
|
|
343
|
-
T && !(T instanceof Error) && (fe(
|
|
343
|
+
T && !(T instanceof Error) && (fe(D), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", O || "React class", P, k, typeof T), fe(null)), T instanceof Error && !(T.message in it) && (it[T.message] = !0, fe(D), b("Failed %s type: %s", P, T.message), fe(null));
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
var wo = Array.isArray;
|
|
348
|
-
function
|
|
348
|
+
function Nt(c) {
|
|
349
349
|
return wo(c);
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function xo(c) {
|
|
352
352
|
{
|
|
353
353
|
var C = typeof Symbol == "function" && Symbol.toStringTag, P = C && c[Symbol.toStringTag] || c.constructor.name || "Object";
|
|
354
354
|
return P;
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
|
-
function
|
|
357
|
+
function bo(c) {
|
|
358
358
|
try {
|
|
359
|
-
return
|
|
359
|
+
return wn(c), !1;
|
|
360
360
|
} catch {
|
|
361
361
|
return !0;
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
|
-
function
|
|
364
|
+
function wn(c) {
|
|
365
365
|
return "" + c;
|
|
366
366
|
}
|
|
367
|
-
function
|
|
368
|
-
if (
|
|
369
|
-
return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
367
|
+
function xn(c) {
|
|
368
|
+
if (bo(c))
|
|
369
|
+
return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", xo(c)), wn(c);
|
|
370
370
|
}
|
|
371
|
-
var
|
|
371
|
+
var bn = w.ReactCurrentOwner, Co = {
|
|
372
372
|
key: !0,
|
|
373
373
|
ref: !0,
|
|
374
374
|
__self: !0,
|
|
375
375
|
__source: !0
|
|
376
|
-
},
|
|
377
|
-
jt = {};
|
|
376
|
+
}, Cn, En;
|
|
378
377
|
function Eo(c) {
|
|
379
378
|
if (Se.call(c, "ref")) {
|
|
380
379
|
var C = Object.getOwnPropertyDescriptor(c, "ref").get;
|
|
@@ -392,15 +391,12 @@ function Yo() {
|
|
|
392
391
|
return c.key !== void 0;
|
|
393
392
|
}
|
|
394
393
|
function Po(c, C) {
|
|
395
|
-
|
|
396
|
-
var P = D(Xe.current.type);
|
|
397
|
-
jt[P] || (b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', D(Xe.current.type), c.ref), jt[P] = !0);
|
|
398
|
-
}
|
|
394
|
+
typeof c.ref == "string" && bn.current;
|
|
399
395
|
}
|
|
400
396
|
function Ao(c, C) {
|
|
401
397
|
{
|
|
402
398
|
var P = function() {
|
|
403
|
-
|
|
399
|
+
Cn || (Cn = !0, b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", C));
|
|
404
400
|
};
|
|
405
401
|
P.isReactWarning = !0, Object.defineProperty(c, "key", {
|
|
406
402
|
get: P,
|
|
@@ -411,7 +407,7 @@ function Yo() {
|
|
|
411
407
|
function So(c, C) {
|
|
412
408
|
{
|
|
413
409
|
var P = function() {
|
|
414
|
-
|
|
410
|
+
En || (En = !0, b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", C));
|
|
415
411
|
};
|
|
416
412
|
P.isReactWarning = !0, Object.defineProperty(c, "ref", {
|
|
417
413
|
get: P,
|
|
@@ -419,7 +415,7 @@ function Yo() {
|
|
|
419
415
|
});
|
|
420
416
|
}
|
|
421
417
|
}
|
|
422
|
-
var Oo = function(c, C, P, O,
|
|
418
|
+
var Oo = function(c, C, P, O, D, B, k) {
|
|
423
419
|
var T = {
|
|
424
420
|
// This tag allows us to uniquely identify this as a React Element
|
|
425
421
|
$$typeof: t,
|
|
@@ -445,13 +441,13 @@ function Yo() {
|
|
|
445
441
|
configurable: !1,
|
|
446
442
|
enumerable: !1,
|
|
447
443
|
writable: !1,
|
|
448
|
-
value:
|
|
444
|
+
value: D
|
|
449
445
|
}), Object.freeze && (Object.freeze(T.props), Object.freeze(T)), T;
|
|
450
446
|
};
|
|
451
|
-
function _o(c, C, P, O,
|
|
447
|
+
function _o(c, C, P, O, D) {
|
|
452
448
|
{
|
|
453
449
|
var B, k = {}, T = null, q = null;
|
|
454
|
-
P !== void 0 && (
|
|
450
|
+
P !== void 0 && (xn(P), T = "" + P), Ro(C) && (xn(C.key), T = "" + C.key), Eo(C) && (q = C.ref, Po(C, D));
|
|
455
451
|
for (B in C)
|
|
456
452
|
Se.call(C, B) && !Co.hasOwnProperty(B) && (k[B] = C[B]);
|
|
457
453
|
if (c && c.defaultProps) {
|
|
@@ -463,26 +459,26 @@ function Yo() {
|
|
|
463
459
|
var U = typeof c == "function" ? c.displayName || c.name || "Unknown" : c;
|
|
464
460
|
T && Ao(k, U), q && So(k, U);
|
|
465
461
|
}
|
|
466
|
-
return Oo(c, T, q,
|
|
462
|
+
return Oo(c, T, q, D, O, bn.current, k);
|
|
467
463
|
}
|
|
468
464
|
}
|
|
469
|
-
var
|
|
465
|
+
var kt = w.ReactCurrentOwner, Rn = w.ReactDebugCurrentFrame;
|
|
470
466
|
function je(c) {
|
|
471
467
|
if (c) {
|
|
472
468
|
var C = c._owner, P = ke(c.type, c._source, C ? C.type : null);
|
|
473
|
-
|
|
469
|
+
Rn.setExtraStackFrame(P);
|
|
474
470
|
} else
|
|
475
|
-
|
|
471
|
+
Rn.setExtraStackFrame(null);
|
|
476
472
|
}
|
|
477
|
-
var
|
|
478
|
-
|
|
479
|
-
function
|
|
473
|
+
var jt;
|
|
474
|
+
jt = !1;
|
|
475
|
+
function Dt(c) {
|
|
480
476
|
return typeof c == "object" && c !== null && c.$$typeof === t;
|
|
481
477
|
}
|
|
482
|
-
function
|
|
478
|
+
function Pn() {
|
|
483
479
|
{
|
|
484
|
-
if (
|
|
485
|
-
var c =
|
|
480
|
+
if (kt.current) {
|
|
481
|
+
var c = I(kt.current.type);
|
|
486
482
|
if (c)
|
|
487
483
|
return `
|
|
488
484
|
|
|
@@ -494,10 +490,10 @@ Check the render method of \`` + c + "`.";
|
|
|
494
490
|
function To(c) {
|
|
495
491
|
return "";
|
|
496
492
|
}
|
|
497
|
-
var
|
|
493
|
+
var An = {};
|
|
498
494
|
function No(c) {
|
|
499
495
|
{
|
|
500
|
-
var C =
|
|
496
|
+
var C = Pn();
|
|
501
497
|
if (!C) {
|
|
502
498
|
var P = typeof c == "string" ? c : c.displayName || c.name;
|
|
503
499
|
P && (C = `
|
|
@@ -507,35 +503,35 @@ Check the top-level render call using <` + P + ">.");
|
|
|
507
503
|
return C;
|
|
508
504
|
}
|
|
509
505
|
}
|
|
510
|
-
function
|
|
506
|
+
function Sn(c, C) {
|
|
511
507
|
{
|
|
512
508
|
if (!c._store || c._store.validated || c.key != null)
|
|
513
509
|
return;
|
|
514
510
|
c._store.validated = !0;
|
|
515
511
|
var P = No(C);
|
|
516
|
-
if (
|
|
512
|
+
if (An[P])
|
|
517
513
|
return;
|
|
518
|
-
|
|
514
|
+
An[P] = !0;
|
|
519
515
|
var O = "";
|
|
520
|
-
c && c._owner && c._owner !==
|
|
516
|
+
c && c._owner && c._owner !== kt.current && (O = " It was passed a child from " + I(c._owner.type) + "."), je(c), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', P, O), je(null);
|
|
521
517
|
}
|
|
522
518
|
}
|
|
523
|
-
function
|
|
519
|
+
function On(c, C) {
|
|
524
520
|
{
|
|
525
521
|
if (typeof c != "object")
|
|
526
522
|
return;
|
|
527
|
-
if (
|
|
523
|
+
if (Nt(c))
|
|
528
524
|
for (var P = 0; P < c.length; P++) {
|
|
529
525
|
var O = c[P];
|
|
530
|
-
|
|
526
|
+
Dt(O) && Sn(O, C);
|
|
531
527
|
}
|
|
532
|
-
else if (
|
|
528
|
+
else if (Dt(c))
|
|
533
529
|
c._store && (c._store.validated = !0);
|
|
534
530
|
else if (c) {
|
|
535
|
-
var
|
|
536
|
-
if (typeof
|
|
537
|
-
for (var B =
|
|
538
|
-
|
|
531
|
+
var D = g(c);
|
|
532
|
+
if (typeof D == "function" && D !== c.entries)
|
|
533
|
+
for (var B = D.call(c), k; !(k = B.next()).done; )
|
|
534
|
+
Dt(k.value) && Sn(k.value, C);
|
|
539
535
|
}
|
|
540
536
|
}
|
|
541
537
|
}
|
|
@@ -554,12 +550,12 @@ Check the top-level render call using <` + P + ">.");
|
|
|
554
550
|
else
|
|
555
551
|
return;
|
|
556
552
|
if (P) {
|
|
557
|
-
var O =
|
|
553
|
+
var O = I(C);
|
|
558
554
|
yo(P, c.props, "prop", O, c);
|
|
559
|
-
} else if (C.PropTypes !== void 0 && !
|
|
560
|
-
|
|
561
|
-
var
|
|
562
|
-
b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
555
|
+
} else if (C.PropTypes !== void 0 && !jt) {
|
|
556
|
+
jt = !0;
|
|
557
|
+
var D = I(C);
|
|
558
|
+
b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", D || "Unknown");
|
|
563
559
|
}
|
|
564
560
|
typeof C.getDefaultProps == "function" && !C.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
565
561
|
}
|
|
@@ -576,77 +572,77 @@ Check the top-level render call using <` + P + ">.");
|
|
|
576
572
|
c.ref !== null && (je(c), b("Invalid attribute `ref` supplied to `React.Fragment`."), je(null));
|
|
577
573
|
}
|
|
578
574
|
}
|
|
579
|
-
var
|
|
580
|
-
function
|
|
575
|
+
var _n = {};
|
|
576
|
+
function Tn(c, C, P, O, D, B) {
|
|
581
577
|
{
|
|
582
578
|
var k = W(c);
|
|
583
579
|
if (!k) {
|
|
584
580
|
var T = "";
|
|
585
581
|
(c === void 0 || typeof c == "object" && c !== null && Object.keys(c).length === 0) && (T += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
586
582
|
var q = To();
|
|
587
|
-
q ? T += q : T +=
|
|
583
|
+
q ? T += q : T += Pn();
|
|
588
584
|
var z;
|
|
589
|
-
c === null ? z = "null" :
|
|
585
|
+
c === null ? z = "null" : Nt(c) ? z = "array" : c !== void 0 && c.$$typeof === t ? (z = "<" + (I(c.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : z = typeof c, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", z, T);
|
|
590
586
|
}
|
|
591
|
-
var U = _o(c, C, P,
|
|
587
|
+
var U = _o(c, C, P, D, B);
|
|
592
588
|
if (U == null)
|
|
593
589
|
return U;
|
|
594
590
|
if (k) {
|
|
595
591
|
var ne = C.children;
|
|
596
592
|
if (ne !== void 0)
|
|
597
593
|
if (O)
|
|
598
|
-
if (
|
|
594
|
+
if (Nt(ne)) {
|
|
599
595
|
for (var De = 0; De < ne.length; De++)
|
|
600
|
-
|
|
596
|
+
On(ne[De], c);
|
|
601
597
|
Object.freeze && Object.freeze(ne);
|
|
602
598
|
} else
|
|
603
599
|
b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
604
600
|
else
|
|
605
|
-
|
|
601
|
+
On(ne, c);
|
|
606
602
|
}
|
|
607
603
|
if (Se.call(C, "key")) {
|
|
608
|
-
var Oe =
|
|
604
|
+
var Oe = I(c), J = Object.keys(C).filter(function(Bo) {
|
|
609
605
|
return Bo !== "key";
|
|
610
|
-
}),
|
|
611
|
-
if (!
|
|
606
|
+
}), Mt = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
607
|
+
if (!_n[Oe + Mt]) {
|
|
612
608
|
var Fo = J.length > 0 ? "{" + J.join(": ..., ") + ": ...}" : "{}";
|
|
613
609
|
b(`A props object containing a "key" prop is being spread into JSX:
|
|
614
610
|
let props = %s;
|
|
615
611
|
<%s {...props} />
|
|
616
612
|
React keys must be passed directly to JSX without using spread:
|
|
617
613
|
let props = %s;
|
|
618
|
-
<%s key={someKey} {...props} />`,
|
|
614
|
+
<%s key={someKey} {...props} />`, Mt, Oe, Fo, Oe), _n[Oe + Mt] = !0;
|
|
619
615
|
}
|
|
620
616
|
}
|
|
621
617
|
return c === r ? jo(U) : ko(U), U;
|
|
622
618
|
}
|
|
623
619
|
}
|
|
624
620
|
function Do(c, C, P) {
|
|
625
|
-
return
|
|
621
|
+
return Tn(c, C, P, !0);
|
|
626
622
|
}
|
|
627
623
|
function Mo(c, C, P) {
|
|
628
|
-
return
|
|
624
|
+
return Tn(c, C, P, !1);
|
|
629
625
|
}
|
|
630
626
|
var Io = Mo, Lo = Do;
|
|
631
|
-
|
|
632
|
-
}()),
|
|
627
|
+
Ge.Fragment = r, Ge.jsx = Io, Ge.jsxs = Lo;
|
|
628
|
+
}()), Ge;
|
|
633
629
|
}
|
|
634
|
-
process.env.NODE_ENV === "production" ?
|
|
635
|
-
var y =
|
|
636
|
-
const
|
|
630
|
+
process.env.NODE_ENV === "production" ? Ut.exports = Uo() : Ut.exports = Yo();
|
|
631
|
+
var y = Ut.exports;
|
|
632
|
+
const jn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Dn = Wo, ze = (e, t) => (n) => {
|
|
637
633
|
var r;
|
|
638
|
-
if ((t == null ? void 0 : t.variants) == null) return
|
|
634
|
+
if ((t == null ? void 0 : t.variants) == null) return Dn(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
639
635
|
const { variants: o, defaultVariants: i } = t, a = Object.keys(o).map((l) => {
|
|
640
636
|
const f = n == null ? void 0 : n[l], p = i == null ? void 0 : i[l];
|
|
641
637
|
if (f === null) return null;
|
|
642
|
-
const
|
|
643
|
-
return o[l][
|
|
638
|
+
const m = jn(f) || jn(p);
|
|
639
|
+
return o[l][m];
|
|
644
640
|
}), s = n && Object.entries(n).reduce((l, f) => {
|
|
645
|
-
let [p,
|
|
646
|
-
return
|
|
641
|
+
let [p, m] = f;
|
|
642
|
+
return m === void 0 || (l[p] = m), l;
|
|
647
643
|
}, {}), u = t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((l, f) => {
|
|
648
|
-
let { class: p, className:
|
|
649
|
-
return Object.entries(
|
|
644
|
+
let { class: p, className: m, ...v } = f;
|
|
645
|
+
return Object.entries(v).every((x) => {
|
|
650
646
|
let [h, g] = x;
|
|
651
647
|
return Array.isArray(g) ? g.includes({
|
|
652
648
|
...i,
|
|
@@ -658,10 +654,10 @@ const Dn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = Wo, z
|
|
|
658
654
|
}) ? [
|
|
659
655
|
...l,
|
|
660
656
|
p,
|
|
661
|
-
|
|
657
|
+
m
|
|
662
658
|
] : l;
|
|
663
659
|
}, []);
|
|
664
|
-
return
|
|
660
|
+
return Dn(e, a, u, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
665
661
|
}, pc = ({ children: e, className: t, ...n }) => /* @__PURE__ */ y.jsx("section", { className: L("pb-16 desktop:pb-20", t), ...n, children: e }), hc = ({ children: e, offset: t = !0, className: n, ...r }) => /* @__PURE__ */ y.jsx("div", { className: L("m-auto w-full max-w-[636px] desktop:max-w-[1140px]", { "mobile:px-4": t }, n), ...r, children: e }), Ko = (e) => {
|
|
666
662
|
switch (e) {
|
|
667
663
|
case "ghost":
|
|
@@ -731,7 +727,7 @@ const Dn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = Wo, z
|
|
|
731
727
|
isFull: !1
|
|
732
728
|
}
|
|
733
729
|
}
|
|
734
|
-
),
|
|
730
|
+
), mc = nr(
|
|
735
731
|
({
|
|
736
732
|
intent: e,
|
|
737
733
|
size: t,
|
|
@@ -745,10 +741,10 @@ const Dn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = Wo, z
|
|
|
745
741
|
isFull: l = !1,
|
|
746
742
|
textFormat: f,
|
|
747
743
|
...p
|
|
748
|
-
},
|
|
744
|
+
}, m) => /* @__PURE__ */ y.jsx(
|
|
749
745
|
"button",
|
|
750
746
|
{
|
|
751
|
-
ref:
|
|
747
|
+
ref: m,
|
|
752
748
|
type: o,
|
|
753
749
|
disabled: s || u,
|
|
754
750
|
className: L(Xo({ intent: e, size: t, textFormat: f, isLoading: u, isFull: l }), n),
|
|
@@ -760,7 +756,7 @@ const Dn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = Wo, z
|
|
|
760
756
|
] })
|
|
761
757
|
}
|
|
762
758
|
)
|
|
763
|
-
),
|
|
759
|
+
), vc = ({ phone: e, text: t, classes: n, ...r }) => /* @__PURE__ */ y.jsxs("div", { className: L("flex w-max flex-col", n == null ? void 0 : n.wrapper), ...r, children: [
|
|
764
760
|
/* @__PURE__ */ y.jsx(
|
|
765
761
|
"a",
|
|
766
762
|
{
|
|
@@ -811,20 +807,20 @@ const Dn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = Wo, z
|
|
|
811
807
|
/* @__PURE__ */ y.jsx("span", { "data-testid": "loader", className: L(qo({ size: e, intent: n }), t == null ? void 0 : t.loader), ...i }),
|
|
812
808
|
o && /* @__PURE__ */ y.jsx("p", { className: L("desk-body-regular-l text-color-dark", t == null ? void 0 : t.text), children: o })
|
|
813
809
|
] });
|
|
814
|
-
function
|
|
810
|
+
function Ze(e, t = []) {
|
|
815
811
|
let n = [];
|
|
816
812
|
function r(i, a) {
|
|
817
813
|
const s = d.createContext(a), u = n.length;
|
|
818
814
|
n = [...n, a];
|
|
819
815
|
const l = (p) => {
|
|
820
816
|
var w;
|
|
821
|
-
const { scope:
|
|
822
|
-
return /* @__PURE__ */ y.jsx(h.Provider, { value: g, children:
|
|
817
|
+
const { scope: m, children: v, ...x } = p, h = ((w = m == null ? void 0 : m[e]) == null ? void 0 : w[u]) || s, g = d.useMemo(() => x, Object.values(x));
|
|
818
|
+
return /* @__PURE__ */ y.jsx(h.Provider, { value: g, children: v });
|
|
823
819
|
};
|
|
824
820
|
l.displayName = i + "Provider";
|
|
825
|
-
function f(p,
|
|
821
|
+
function f(p, m) {
|
|
826
822
|
var h;
|
|
827
|
-
const
|
|
823
|
+
const v = ((h = m == null ? void 0 : m[e]) == null ? void 0 : h[u]) || s, x = d.useContext(v);
|
|
828
824
|
if (x) return x;
|
|
829
825
|
if (a !== void 0) return a;
|
|
830
826
|
throw new Error(`\`${p}\` must be used within \`${i}\``);
|
|
@@ -861,52 +857,52 @@ function Zo(...e) {
|
|
|
861
857
|
};
|
|
862
858
|
return n.scopeName = t.scopeName, n;
|
|
863
859
|
}
|
|
864
|
-
function
|
|
860
|
+
function Mn(e, t) {
|
|
865
861
|
if (typeof e == "function")
|
|
866
862
|
return e(t);
|
|
867
863
|
e != null && (e.current = t);
|
|
868
864
|
}
|
|
869
|
-
function
|
|
865
|
+
function or(...e) {
|
|
870
866
|
return (t) => {
|
|
871
867
|
let n = !1;
|
|
872
868
|
const r = e.map((o) => {
|
|
873
|
-
const i =
|
|
869
|
+
const i = Mn(o, t);
|
|
874
870
|
return !n && typeof i == "function" && (n = !0), i;
|
|
875
871
|
});
|
|
876
872
|
if (n)
|
|
877
873
|
return () => {
|
|
878
874
|
for (let o = 0; o < r.length; o++) {
|
|
879
875
|
const i = r[o];
|
|
880
|
-
typeof i == "function" ? i() :
|
|
876
|
+
typeof i == "function" ? i() : Mn(e[o], null);
|
|
881
877
|
}
|
|
882
878
|
};
|
|
883
879
|
};
|
|
884
880
|
}
|
|
885
881
|
function re(...e) {
|
|
886
|
-
return d.useCallback(
|
|
882
|
+
return d.useCallback(or(...e), e);
|
|
887
883
|
}
|
|
888
|
-
var
|
|
884
|
+
var qe = d.forwardRef((e, t) => {
|
|
889
885
|
const { children: n, ...r } = e, o = d.Children.toArray(n), i = o.find(ei);
|
|
890
886
|
if (i) {
|
|
891
887
|
const a = i.props.children, s = o.map((u) => u === i ? d.Children.count(a) > 1 ? d.Children.only(null) : d.isValidElement(a) ? a.props.children : null : u);
|
|
892
|
-
return /* @__PURE__ */ y.jsx(
|
|
888
|
+
return /* @__PURE__ */ y.jsx(Yt, { ...r, ref: t, children: d.isValidElement(a) ? d.cloneElement(a, void 0, s) : null });
|
|
893
889
|
}
|
|
894
|
-
return /* @__PURE__ */ y.jsx(
|
|
890
|
+
return /* @__PURE__ */ y.jsx(Yt, { ...r, ref: t, children: n });
|
|
895
891
|
});
|
|
896
|
-
|
|
897
|
-
var
|
|
892
|
+
qe.displayName = "Slot";
|
|
893
|
+
var Yt = d.forwardRef((e, t) => {
|
|
898
894
|
const { children: n, ...r } = e;
|
|
899
895
|
if (d.isValidElement(n)) {
|
|
900
896
|
const o = ni(n);
|
|
901
897
|
return d.cloneElement(n, {
|
|
902
898
|
...ti(r, n.props),
|
|
903
899
|
// @ts-ignore
|
|
904
|
-
ref: t ?
|
|
900
|
+
ref: t ? or(t, o) : o
|
|
905
901
|
});
|
|
906
902
|
}
|
|
907
903
|
return d.Children.count(n) > 1 ? d.Children.only(null) : null;
|
|
908
904
|
});
|
|
909
|
-
|
|
905
|
+
Yt.displayName = "SlotClone";
|
|
910
906
|
var Qo = ({ children: e }) => /* @__PURE__ */ y.jsx(y.Fragment, { children: e });
|
|
911
907
|
function ei(e) {
|
|
912
908
|
return d.isValidElement(e) && e.type === Qo;
|
|
@@ -927,30 +923,30 @@ function ni(e) {
|
|
|
927
923
|
return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
928
924
|
}
|
|
929
925
|
function ri(e) {
|
|
930
|
-
const t = e + "CollectionProvider", [n, r] =
|
|
926
|
+
const t = e + "CollectionProvider", [n, r] = Ze(t), [o, i] = n(
|
|
931
927
|
t,
|
|
932
928
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
933
|
-
), a = (
|
|
934
|
-
const { scope: x, children: h } =
|
|
929
|
+
), a = (v) => {
|
|
930
|
+
const { scope: x, children: h } = v, g = H.useRef(null), w = H.useRef(/* @__PURE__ */ new Map()).current;
|
|
935
931
|
return /* @__PURE__ */ y.jsx(o, { scope: x, itemMap: w, collectionRef: g, children: h });
|
|
936
932
|
};
|
|
937
933
|
a.displayName = t;
|
|
938
934
|
const s = e + "CollectionSlot", u = H.forwardRef(
|
|
939
|
-
(
|
|
940
|
-
const { scope: h, children: g } =
|
|
941
|
-
return /* @__PURE__ */ y.jsx(
|
|
935
|
+
(v, x) => {
|
|
936
|
+
const { scope: h, children: g } = v, w = i(s, h), b = re(x, w.collectionRef);
|
|
937
|
+
return /* @__PURE__ */ y.jsx(qe, { ref: b, children: g });
|
|
942
938
|
}
|
|
943
939
|
);
|
|
944
940
|
u.displayName = s;
|
|
945
941
|
const l = e + "CollectionItemSlot", f = "data-radix-collection-item", p = H.forwardRef(
|
|
946
|
-
(
|
|
947
|
-
const { scope: h, children: g, ...w } =
|
|
948
|
-
return H.useEffect(() => (R.itemMap.set(b, { ref: b, ...w }), () => void R.itemMap.delete(b))), /* @__PURE__ */ y.jsx(
|
|
942
|
+
(v, x) => {
|
|
943
|
+
const { scope: h, children: g, ...w } = v, b = H.useRef(null), E = re(x, b), R = i(l, h);
|
|
944
|
+
return H.useEffect(() => (R.itemMap.set(b, { ref: b, ...w }), () => void R.itemMap.delete(b))), /* @__PURE__ */ y.jsx(qe, { [f]: "", ref: E, children: g });
|
|
949
945
|
}
|
|
950
946
|
);
|
|
951
947
|
p.displayName = l;
|
|
952
|
-
function v
|
|
953
|
-
const x = i(e + "CollectionConsumer",
|
|
948
|
+
function m(v) {
|
|
949
|
+
const x = i(e + "CollectionConsumer", v);
|
|
954
950
|
return H.useCallback(() => {
|
|
955
951
|
const g = x.collectionRef.current;
|
|
956
952
|
if (!g) return [];
|
|
@@ -962,7 +958,7 @@ function ri(e) {
|
|
|
962
958
|
}
|
|
963
959
|
return [
|
|
964
960
|
{ Provider: a, Slot: u, ItemSlot: p },
|
|
965
|
-
|
|
961
|
+
m,
|
|
966
962
|
r
|
|
967
963
|
];
|
|
968
964
|
}
|
|
@@ -981,7 +977,7 @@ function ge(e) {
|
|
|
981
977
|
return (r = t.current) == null ? void 0 : r.call(t, ...n);
|
|
982
978
|
}, []);
|
|
983
979
|
}
|
|
984
|
-
function
|
|
980
|
+
function bt({
|
|
985
981
|
prop: e,
|
|
986
982
|
defaultProp: t,
|
|
987
983
|
onChange: n = () => {
|
|
@@ -1027,24 +1023,24 @@ var ii = [
|
|
|
1027
1023
|
"ul"
|
|
1028
1024
|
], Z = ii.reduce((e, t) => {
|
|
1029
1025
|
const n = d.forwardRef((r, o) => {
|
|
1030
|
-
const { asChild: i, ...a } = r, s = i ?
|
|
1026
|
+
const { asChild: i, ...a } = r, s = i ? qe : t;
|
|
1031
1027
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ y.jsx(s, { ...a, ref: o });
|
|
1032
1028
|
});
|
|
1033
1029
|
return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
|
|
1034
1030
|
}, {});
|
|
1035
1031
|
function ai(e, t) {
|
|
1036
|
-
e &&
|
|
1032
|
+
e && rr.flushSync(() => e.dispatchEvent(t));
|
|
1037
1033
|
}
|
|
1038
1034
|
var ye = globalThis != null && globalThis.document ? d.useLayoutEffect : () => {
|
|
1039
1035
|
};
|
|
1040
1036
|
function si(e, t) {
|
|
1041
1037
|
return d.useReducer((n, r) => t[n][r] ?? n, e);
|
|
1042
1038
|
}
|
|
1043
|
-
var
|
|
1039
|
+
var Ct = (e) => {
|
|
1044
1040
|
const { present: t, children: n } = e, r = ci(t), o = typeof n == "function" ? n({ present: r.isPresent }) : d.Children.only(n), i = re(r.ref, li(o));
|
|
1045
1041
|
return typeof n == "function" || r.isPresent ? d.cloneElement(o, { ref: i }) : null;
|
|
1046
1042
|
};
|
|
1047
|
-
|
|
1043
|
+
Ct.displayName = "Presence";
|
|
1048
1044
|
function ci(e) {
|
|
1049
1045
|
const [t, n] = d.useState(), r = d.useRef({}), o = d.useRef(e), i = d.useRef("none"), a = e ? "mounted" : "unmounted", [s, u] = si(a, {
|
|
1050
1046
|
mounted: {
|
|
@@ -1060,30 +1056,30 @@ function ci(e) {
|
|
|
1060
1056
|
}
|
|
1061
1057
|
});
|
|
1062
1058
|
return d.useEffect(() => {
|
|
1063
|
-
const l =
|
|
1059
|
+
const l = st(r.current);
|
|
1064
1060
|
i.current = s === "mounted" ? l : "none";
|
|
1065
1061
|
}, [s]), ye(() => {
|
|
1066
1062
|
const l = r.current, f = o.current;
|
|
1067
1063
|
if (f !== e) {
|
|
1068
|
-
const
|
|
1069
|
-
e ? u("MOUNT") :
|
|
1064
|
+
const m = i.current, v = st(l);
|
|
1065
|
+
e ? u("MOUNT") : v === "none" || (l == null ? void 0 : l.display) === "none" ? u("UNMOUNT") : u(f && m !== v ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
|
|
1070
1066
|
}
|
|
1071
1067
|
}, [e, u]), ye(() => {
|
|
1072
1068
|
if (t) {
|
|
1073
1069
|
let l;
|
|
1074
|
-
const f = t.ownerDocument.defaultView ?? window, p = (
|
|
1075
|
-
const h =
|
|
1076
|
-
if (
|
|
1070
|
+
const f = t.ownerDocument.defaultView ?? window, p = (v) => {
|
|
1071
|
+
const h = st(r.current).includes(v.animationName);
|
|
1072
|
+
if (v.target === t && h && (u("ANIMATION_END"), !o.current)) {
|
|
1077
1073
|
const g = t.style.animationFillMode;
|
|
1078
1074
|
t.style.animationFillMode = "forwards", l = f.setTimeout(() => {
|
|
1079
1075
|
t.style.animationFillMode === "forwards" && (t.style.animationFillMode = g);
|
|
1080
1076
|
});
|
|
1081
1077
|
}
|
|
1082
|
-
},
|
|
1083
|
-
|
|
1078
|
+
}, m = (v) => {
|
|
1079
|
+
v.target === t && (i.current = st(r.current));
|
|
1084
1080
|
};
|
|
1085
|
-
return t.addEventListener("animationstart",
|
|
1086
|
-
f.clearTimeout(l), t.removeEventListener("animationstart",
|
|
1081
|
+
return t.addEventListener("animationstart", m), t.addEventListener("animationcancel", p), t.addEventListener("animationend", p), () => {
|
|
1082
|
+
f.clearTimeout(l), t.removeEventListener("animationstart", m), t.removeEventListener("animationcancel", p), t.removeEventListener("animationend", p);
|
|
1087
1083
|
};
|
|
1088
1084
|
} else
|
|
1089
1085
|
u("ANIMATION_END");
|
|
@@ -1094,7 +1090,7 @@ function ci(e) {
|
|
|
1094
1090
|
}, [])
|
|
1095
1091
|
};
|
|
1096
1092
|
}
|
|
1097
|
-
function
|
|
1093
|
+
function st(e) {
|
|
1098
1094
|
return (e == null ? void 0 : e.animationName) || "none";
|
|
1099
1095
|
}
|
|
1100
1096
|
function li(e) {
|
|
@@ -1104,13 +1100,13 @@ function li(e) {
|
|
|
1104
1100
|
}
|
|
1105
1101
|
var ui = d.useId || (() => {
|
|
1106
1102
|
}), fi = 0;
|
|
1107
|
-
function
|
|
1103
|
+
function Qt(e) {
|
|
1108
1104
|
const [t, n] = d.useState(ui());
|
|
1109
1105
|
return ye(() => {
|
|
1110
1106
|
n((r) => r ?? String(fi++));
|
|
1111
1107
|
}, [e]), t ? `radix-${t}` : "";
|
|
1112
1108
|
}
|
|
1113
|
-
var
|
|
1109
|
+
var en = "Collapsible", [di, ir] = Ze(en), [pi, tn] = di(en), ar = d.forwardRef(
|
|
1114
1110
|
(e, t) => {
|
|
1115
1111
|
const {
|
|
1116
1112
|
__scopeCollapsible: n,
|
|
@@ -1119,7 +1115,7 @@ var nn = "Collapsible", [di, ar] = Qe(nn), [pi, rn] = di(nn), sr = d.forwardRef(
|
|
|
1119
1115
|
disabled: i,
|
|
1120
1116
|
onOpenChange: a,
|
|
1121
1117
|
...s
|
|
1122
|
-
} = e, [u = !1, l] =
|
|
1118
|
+
} = e, [u = !1, l] = bt({
|
|
1123
1119
|
prop: r,
|
|
1124
1120
|
defaultProp: o,
|
|
1125
1121
|
onChange: a
|
|
@@ -1129,13 +1125,13 @@ var nn = "Collapsible", [di, ar] = Qe(nn), [pi, rn] = di(nn), sr = d.forwardRef(
|
|
|
1129
1125
|
{
|
|
1130
1126
|
scope: n,
|
|
1131
1127
|
disabled: i,
|
|
1132
|
-
contentId:
|
|
1128
|
+
contentId: Qt(),
|
|
1133
1129
|
open: u,
|
|
1134
1130
|
onOpenToggle: d.useCallback(() => l((f) => !f), [l]),
|
|
1135
1131
|
children: /* @__PURE__ */ y.jsx(
|
|
1136
1132
|
Z.div,
|
|
1137
1133
|
{
|
|
1138
|
-
"data-state":
|
|
1134
|
+
"data-state": rn(u),
|
|
1139
1135
|
"data-disabled": i ? "" : void 0,
|
|
1140
1136
|
...s,
|
|
1141
1137
|
ref: t
|
|
@@ -1145,17 +1141,17 @@ var nn = "Collapsible", [di, ar] = Qe(nn), [pi, rn] = di(nn), sr = d.forwardRef(
|
|
|
1145
1141
|
);
|
|
1146
1142
|
}
|
|
1147
1143
|
);
|
|
1148
|
-
|
|
1149
|
-
var
|
|
1144
|
+
ar.displayName = en;
|
|
1145
|
+
var sr = "CollapsibleTrigger", cr = d.forwardRef(
|
|
1150
1146
|
(e, t) => {
|
|
1151
|
-
const { __scopeCollapsible: n, ...r } = e, o =
|
|
1147
|
+
const { __scopeCollapsible: n, ...r } = e, o = tn(sr, n);
|
|
1152
1148
|
return /* @__PURE__ */ y.jsx(
|
|
1153
1149
|
Z.button,
|
|
1154
1150
|
{
|
|
1155
1151
|
type: "button",
|
|
1156
1152
|
"aria-controls": o.contentId,
|
|
1157
1153
|
"aria-expanded": o.open || !1,
|
|
1158
|
-
"data-state":
|
|
1154
|
+
"data-state": rn(o.open),
|
|
1159
1155
|
"data-disabled": o.disabled ? "" : void 0,
|
|
1160
1156
|
disabled: o.disabled,
|
|
1161
1157
|
...r,
|
|
@@ -1165,16 +1161,16 @@ var cr = "CollapsibleTrigger", lr = d.forwardRef(
|
|
|
1165
1161
|
);
|
|
1166
1162
|
}
|
|
1167
1163
|
);
|
|
1168
|
-
|
|
1169
|
-
var
|
|
1164
|
+
cr.displayName = sr;
|
|
1165
|
+
var nn = "CollapsibleContent", lr = d.forwardRef(
|
|
1170
1166
|
(e, t) => {
|
|
1171
|
-
const { forceMount: n, ...r } = e, o =
|
|
1172
|
-
return /* @__PURE__ */ y.jsx(
|
|
1167
|
+
const { forceMount: n, ...r } = e, o = tn(nn, e.__scopeCollapsible);
|
|
1168
|
+
return /* @__PURE__ */ y.jsx(Ct, { present: n || o.open, children: ({ present: i }) => /* @__PURE__ */ y.jsx(hi, { ...r, ref: t, present: i }) });
|
|
1173
1169
|
}
|
|
1174
1170
|
);
|
|
1175
|
-
|
|
1171
|
+
lr.displayName = nn;
|
|
1176
1172
|
var hi = d.forwardRef((e, t) => {
|
|
1177
|
-
const { __scopeCollapsible: n, present: r, children: o, ...i } = e, a =
|
|
1173
|
+
const { __scopeCollapsible: n, present: r, children: o, ...i } = e, a = tn(nn, n), [s, u] = d.useState(r), l = d.useRef(null), f = re(t, l), p = d.useRef(0), m = p.current, v = d.useRef(0), x = v.current, h = a.open || s, g = d.useRef(h), w = d.useRef(void 0);
|
|
1178
1174
|
return d.useEffect(() => {
|
|
1179
1175
|
const b = requestAnimationFrame(() => g.current = !1);
|
|
1180
1176
|
return () => cancelAnimationFrame(b);
|
|
@@ -1186,19 +1182,19 @@ var hi = d.forwardRef((e, t) => {
|
|
|
1186
1182
|
animationName: b.style.animationName
|
|
1187
1183
|
}, b.style.transitionDuration = "0s", b.style.animationName = "none";
|
|
1188
1184
|
const E = b.getBoundingClientRect();
|
|
1189
|
-
p.current = E.height,
|
|
1185
|
+
p.current = E.height, v.current = E.width, g.current || (b.style.transitionDuration = w.current.transitionDuration, b.style.animationName = w.current.animationName), u(r);
|
|
1190
1186
|
}
|
|
1191
1187
|
}, [a.open, r]), /* @__PURE__ */ y.jsx(
|
|
1192
1188
|
Z.div,
|
|
1193
1189
|
{
|
|
1194
|
-
"data-state":
|
|
1190
|
+
"data-state": rn(a.open),
|
|
1195
1191
|
"data-disabled": a.disabled ? "" : void 0,
|
|
1196
1192
|
id: a.contentId,
|
|
1197
1193
|
hidden: !h,
|
|
1198
1194
|
...i,
|
|
1199
1195
|
ref: f,
|
|
1200
1196
|
style: {
|
|
1201
|
-
"--radix-collapsible-content-height":
|
|
1197
|
+
"--radix-collapsible-content-height": m ? `${m}px` : void 0,
|
|
1202
1198
|
"--radix-collapsible-content-width": x ? `${x}px` : void 0,
|
|
1203
1199
|
...e.style
|
|
1204
1200
|
},
|
|
@@ -1206,26 +1202,26 @@ var hi = d.forwardRef((e, t) => {
|
|
|
1206
1202
|
}
|
|
1207
1203
|
);
|
|
1208
1204
|
});
|
|
1209
|
-
function
|
|
1205
|
+
function rn(e) {
|
|
1210
1206
|
return e ? "open" : "closed";
|
|
1211
1207
|
}
|
|
1212
|
-
var
|
|
1208
|
+
var mi = ar, vi = cr, gi = lr, yi = d.createContext(void 0);
|
|
1213
1209
|
function wi(e) {
|
|
1214
1210
|
const t = d.useContext(yi);
|
|
1215
1211
|
return e || t || "ltr";
|
|
1216
1212
|
}
|
|
1217
|
-
var
|
|
1213
|
+
var me = "Accordion", xi = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [on, bi, Ci] = ri(me), [Et, yc] = Ze(me, [
|
|
1218
1214
|
Ci,
|
|
1219
|
-
|
|
1220
|
-
]),
|
|
1215
|
+
ir
|
|
1216
|
+
]), an = ir(), ur = H.forwardRef(
|
|
1221
1217
|
(e, t) => {
|
|
1222
1218
|
const { type: n, ...r } = e, o = r, i = r;
|
|
1223
|
-
return /* @__PURE__ */ y.jsx(
|
|
1219
|
+
return /* @__PURE__ */ y.jsx(on.Provider, { scope: e.__scopeAccordion, children: n === "multiple" ? /* @__PURE__ */ y.jsx(Ai, { ...i, ref: t }) : /* @__PURE__ */ y.jsx(Pi, { ...o, ref: t }) });
|
|
1224
1220
|
}
|
|
1225
1221
|
);
|
|
1226
|
-
|
|
1227
|
-
var [
|
|
1228
|
-
|
|
1222
|
+
ur.displayName = me;
|
|
1223
|
+
var [fr, Ei] = Et(me), [dr, Ri] = Et(
|
|
1224
|
+
me,
|
|
1229
1225
|
{ collapsible: !1 }
|
|
1230
1226
|
), Pi = H.forwardRef(
|
|
1231
1227
|
(e, t) => {
|
|
@@ -1236,19 +1232,19 @@ var [dr, Ei] = Rt(ve), [pr, Ri] = Rt(
|
|
|
1236
1232
|
},
|
|
1237
1233
|
collapsible: i = !1,
|
|
1238
1234
|
...a
|
|
1239
|
-
} = e, [s, u] =
|
|
1235
|
+
} = e, [s, u] = bt({
|
|
1240
1236
|
prop: n,
|
|
1241
1237
|
defaultProp: r,
|
|
1242
1238
|
onChange: o
|
|
1243
1239
|
});
|
|
1244
1240
|
return /* @__PURE__ */ y.jsx(
|
|
1245
|
-
|
|
1241
|
+
fr,
|
|
1246
1242
|
{
|
|
1247
1243
|
scope: e.__scopeAccordion,
|
|
1248
1244
|
value: s ? [s] : [],
|
|
1249
1245
|
onItemOpen: u,
|
|
1250
1246
|
onItemClose: H.useCallback(() => i && u(""), [i, u]),
|
|
1251
|
-
children: /* @__PURE__ */ y.jsx(
|
|
1247
|
+
children: /* @__PURE__ */ y.jsx(dr, { scope: e.__scopeAccordion, collapsible: i, children: /* @__PURE__ */ y.jsx(pr, { ...a, ref: t }) })
|
|
1252
1248
|
}
|
|
1253
1249
|
);
|
|
1254
1250
|
}
|
|
@@ -1259,7 +1255,7 @@ var [dr, Ei] = Rt(ve), [pr, Ri] = Rt(
|
|
|
1259
1255
|
onValueChange: o = () => {
|
|
1260
1256
|
},
|
|
1261
1257
|
...i
|
|
1262
|
-
} = e, [a = [], s] =
|
|
1258
|
+
} = e, [a = [], s] = bt({
|
|
1263
1259
|
prop: n,
|
|
1264
1260
|
defaultProp: r,
|
|
1265
1261
|
onChange: o
|
|
@@ -1267,37 +1263,37 @@ var [dr, Ei] = Rt(ve), [pr, Ri] = Rt(
|
|
|
1267
1263
|
(f) => s((p = []) => [...p, f]),
|
|
1268
1264
|
[s]
|
|
1269
1265
|
), l = H.useCallback(
|
|
1270
|
-
(f) => s((p = []) => p.filter((
|
|
1266
|
+
(f) => s((p = []) => p.filter((m) => m !== f)),
|
|
1271
1267
|
[s]
|
|
1272
1268
|
);
|
|
1273
1269
|
return /* @__PURE__ */ y.jsx(
|
|
1274
|
-
|
|
1270
|
+
fr,
|
|
1275
1271
|
{
|
|
1276
1272
|
scope: e.__scopeAccordion,
|
|
1277
1273
|
value: a,
|
|
1278
1274
|
onItemOpen: u,
|
|
1279
1275
|
onItemClose: l,
|
|
1280
|
-
children: /* @__PURE__ */ y.jsx(
|
|
1276
|
+
children: /* @__PURE__ */ y.jsx(dr, { scope: e.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ y.jsx(pr, { ...i, ref: t }) })
|
|
1281
1277
|
}
|
|
1282
1278
|
);
|
|
1283
|
-
}), [Si,
|
|
1279
|
+
}), [Si, Rt] = Et(me), pr = H.forwardRef(
|
|
1284
1280
|
(e, t) => {
|
|
1285
|
-
const { __scopeAccordion: n, disabled: r, dir: o, orientation: i = "vertical", ...a } = e, s = H.useRef(null), u = re(s, t), l =
|
|
1281
|
+
const { __scopeAccordion: n, disabled: r, dir: o, orientation: i = "vertical", ...a } = e, s = H.useRef(null), u = re(s, t), l = bi(n), p = wi(o) === "ltr", m = se(e.onKeyDown, (v) => {
|
|
1286
1282
|
var j;
|
|
1287
|
-
if (!
|
|
1288
|
-
const x =
|
|
1283
|
+
if (!xi.includes(v.key)) return;
|
|
1284
|
+
const x = v.target, h = l().filter((F) => {
|
|
1289
1285
|
var W;
|
|
1290
1286
|
return !((W = F.ref.current) != null && W.disabled);
|
|
1291
1287
|
}), g = h.findIndex((F) => F.ref.current === x), w = h.length;
|
|
1292
1288
|
if (g === -1) return;
|
|
1293
|
-
|
|
1289
|
+
v.preventDefault();
|
|
1294
1290
|
let b = g;
|
|
1295
1291
|
const E = 0, R = w - 1, A = () => {
|
|
1296
1292
|
b = g + 1, b > R && (b = E);
|
|
1297
1293
|
}, _ = () => {
|
|
1298
1294
|
b = g - 1, b < E && (b = R);
|
|
1299
1295
|
};
|
|
1300
|
-
switch (
|
|
1296
|
+
switch (v.key) {
|
|
1301
1297
|
case "Home":
|
|
1302
1298
|
b = E;
|
|
1303
1299
|
break;
|
|
@@ -1327,21 +1323,21 @@ var [dr, Ei] = Rt(ve), [pr, Ri] = Rt(
|
|
|
1327
1323
|
disabled: r,
|
|
1328
1324
|
direction: o,
|
|
1329
1325
|
orientation: i,
|
|
1330
|
-
children: /* @__PURE__ */ y.jsx(
|
|
1326
|
+
children: /* @__PURE__ */ y.jsx(on.Slot, { scope: n, children: /* @__PURE__ */ y.jsx(
|
|
1331
1327
|
Z.div,
|
|
1332
1328
|
{
|
|
1333
1329
|
...a,
|
|
1334
1330
|
"data-orientation": i,
|
|
1335
1331
|
ref: u,
|
|
1336
|
-
onKeyDown: r ? void 0 :
|
|
1332
|
+
onKeyDown: r ? void 0 : m
|
|
1337
1333
|
}
|
|
1338
1334
|
) })
|
|
1339
1335
|
}
|
|
1340
1336
|
);
|
|
1341
1337
|
}
|
|
1342
|
-
),
|
|
1338
|
+
), vt = "AccordionItem", [Oi, sn] = Et(vt), hr = H.forwardRef(
|
|
1343
1339
|
(e, t) => {
|
|
1344
|
-
const { __scopeAccordion: n, value: r, ...o } = e, i =
|
|
1340
|
+
const { __scopeAccordion: n, value: r, ...o } = e, i = Rt(vt, n), a = Ei(vt, n), s = an(n), u = Qt(), l = r && a.value.includes(r) || !1, f = i.disabled || e.disabled;
|
|
1345
1341
|
return /* @__PURE__ */ y.jsx(
|
|
1346
1342
|
Oi,
|
|
1347
1343
|
{
|
|
@@ -1350,7 +1346,7 @@ var [dr, Ei] = Rt(ve), [pr, Ri] = Rt(
|
|
|
1350
1346
|
disabled: f,
|
|
1351
1347
|
triggerId: u,
|
|
1352
1348
|
children: /* @__PURE__ */ y.jsx(
|
|
1353
|
-
|
|
1349
|
+
mi,
|
|
1354
1350
|
{
|
|
1355
1351
|
"data-orientation": i.orientation,
|
|
1356
1352
|
"data-state": xr(l),
|
|
@@ -1368,10 +1364,10 @@ var [dr, Ei] = Rt(ve), [pr, Ri] = Rt(
|
|
|
1368
1364
|
);
|
|
1369
1365
|
}
|
|
1370
1366
|
);
|
|
1371
|
-
|
|
1372
|
-
var mr = "AccordionHeader",
|
|
1367
|
+
hr.displayName = vt;
|
|
1368
|
+
var mr = "AccordionHeader", vr = H.forwardRef(
|
|
1373
1369
|
(e, t) => {
|
|
1374
|
-
const { __scopeAccordion: n, ...r } = e, o =
|
|
1370
|
+
const { __scopeAccordion: n, ...r } = e, o = Rt(me, n), i = sn(mr, n);
|
|
1375
1371
|
return /* @__PURE__ */ y.jsx(
|
|
1376
1372
|
Z.h3,
|
|
1377
1373
|
{
|
|
@@ -1384,12 +1380,12 @@ var mr = "AccordionHeader", gr = H.forwardRef(
|
|
|
1384
1380
|
);
|
|
1385
1381
|
}
|
|
1386
1382
|
);
|
|
1387
|
-
|
|
1388
|
-
var
|
|
1383
|
+
vr.displayName = mr;
|
|
1384
|
+
var Kt = "AccordionTrigger", gr = H.forwardRef(
|
|
1389
1385
|
(e, t) => {
|
|
1390
|
-
const { __scopeAccordion: n, ...r } = e, o =
|
|
1391
|
-
return /* @__PURE__ */ y.jsx(
|
|
1392
|
-
|
|
1386
|
+
const { __scopeAccordion: n, ...r } = e, o = Rt(me, n), i = sn(Kt, n), a = Ri(Kt, n), s = an(n);
|
|
1387
|
+
return /* @__PURE__ */ y.jsx(on.ItemSlot, { scope: n, children: /* @__PURE__ */ y.jsx(
|
|
1388
|
+
vi,
|
|
1393
1389
|
{
|
|
1394
1390
|
"aria-disabled": i.open && !a.collapsible || void 0,
|
|
1395
1391
|
"data-orientation": o.orientation,
|
|
@@ -1401,10 +1397,10 @@ var Gt = "AccordionTrigger", yr = H.forwardRef(
|
|
|
1401
1397
|
) });
|
|
1402
1398
|
}
|
|
1403
1399
|
);
|
|
1404
|
-
|
|
1405
|
-
var
|
|
1400
|
+
gr.displayName = Kt;
|
|
1401
|
+
var yr = "AccordionContent", wr = H.forwardRef(
|
|
1406
1402
|
(e, t) => {
|
|
1407
|
-
const { __scopeAccordion: n, ...r } = e, o =
|
|
1403
|
+
const { __scopeAccordion: n, ...r } = e, o = Rt(me, n), i = sn(yr, n), a = an(n);
|
|
1408
1404
|
return /* @__PURE__ */ y.jsx(
|
|
1409
1405
|
gi,
|
|
1410
1406
|
{
|
|
@@ -1423,11 +1419,11 @@ var wr = "AccordionContent", br = H.forwardRef(
|
|
|
1423
1419
|
);
|
|
1424
1420
|
}
|
|
1425
1421
|
);
|
|
1426
|
-
|
|
1422
|
+
wr.displayName = yr;
|
|
1427
1423
|
function xr(e) {
|
|
1428
1424
|
return e ? "open" : "closed";
|
|
1429
1425
|
}
|
|
1430
|
-
var _i =
|
|
1426
|
+
var _i = ur, Ti = hr, Ni = vr, ki = gr, ji = wr;
|
|
1431
1427
|
const Di = {
|
|
1432
1428
|
arrows: {
|
|
1433
1429
|
filePath: "arrows.svg",
|
|
@@ -1706,7 +1702,7 @@ const Di = {
|
|
|
1706
1702
|
children: /* @__PURE__ */ y.jsx("use", { href: `/sprites/${o}#${i}` })
|
|
1707
1703
|
}
|
|
1708
1704
|
);
|
|
1709
|
-
},
|
|
1705
|
+
}, br = d.forwardRef(
|
|
1710
1706
|
({ children: e, classes: t, icon: n, ...r }, o) => /* @__PURE__ */ y.jsx(Ni, { className: L("rounded-sm bg-color-primary-light-default", t == null ? void 0 : t.header), children: /* @__PURE__ */ y.jsxs(
|
|
1711
1707
|
ki,
|
|
1712
1708
|
{
|
|
@@ -1732,8 +1728,8 @@ const Di = {
|
|
|
1732
1728
|
}
|
|
1733
1729
|
) })
|
|
1734
1730
|
);
|
|
1735
|
-
|
|
1736
|
-
const wc =
|
|
1731
|
+
br.displayName = "AccordionHeader";
|
|
1732
|
+
const wc = nr(
|
|
1737
1733
|
({ children: e, label: t, classes: n, defaultOpen: r = !1, icon: o }, i) => /* @__PURE__ */ y.jsx(
|
|
1738
1734
|
_i,
|
|
1739
1735
|
{
|
|
@@ -1741,7 +1737,7 @@ const wc = rr(
|
|
|
1741
1737
|
type: "multiple",
|
|
1742
1738
|
defaultValue: r ? [t.toString()] : void 0,
|
|
1743
1739
|
children: /* @__PURE__ */ y.jsxs(Ti, { className: L("w-full disabled:text-color-dark", n == null ? void 0 : n.wrapper), value: t.toString(), children: [
|
|
1744
|
-
/* @__PURE__ */ y.jsx(
|
|
1740
|
+
/* @__PURE__ */ y.jsx(br, { icon: o, classes: n, children: t }),
|
|
1745
1741
|
/* @__PURE__ */ y.jsx(
|
|
1746
1742
|
ji,
|
|
1747
1743
|
{
|
|
@@ -1767,11 +1763,11 @@ function Ii(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
1767
1763
|
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
1768
1764
|
}, [n, t]);
|
|
1769
1765
|
}
|
|
1770
|
-
var Li = "DismissableLayer",
|
|
1766
|
+
var Li = "DismissableLayer", Xt = "dismissableLayer.update", Fi = "dismissableLayer.pointerDownOutside", Bi = "dismissableLayer.focusOutside", In, Cr = d.createContext({
|
|
1771
1767
|
layers: /* @__PURE__ */ new Set(),
|
|
1772
1768
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
1773
1769
|
branches: /* @__PURE__ */ new Set()
|
|
1774
|
-
}),
|
|
1770
|
+
}), Er = d.forwardRef(
|
|
1775
1771
|
(e, t) => {
|
|
1776
1772
|
const {
|
|
1777
1773
|
disableOutsidePointerEvents: n = !1,
|
|
@@ -1781,25 +1777,25 @@ var Li = "DismissableLayer", qt = "dismissableLayer.update", Fi = "dismissableLa
|
|
|
1781
1777
|
onInteractOutside: a,
|
|
1782
1778
|
onDismiss: s,
|
|
1783
1779
|
...u
|
|
1784
|
-
} = e, l = d.useContext(
|
|
1780
|
+
} = e, l = d.useContext(Cr), [f, p] = d.useState(null), m = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, v] = d.useState({}), x = re(t, (S) => p(S)), h = Array.from(l.layers), [g] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), w = h.indexOf(g), b = f ? h.indexOf(f) : -1, E = l.layersWithOutsidePointerEventsDisabled.size > 0, R = b >= w, A = Vi((S) => {
|
|
1785
1781
|
const j = S.target, F = [...l.branches].some((W) => W.contains(j));
|
|
1786
1782
|
!R || F || (o == null || o(S), a == null || a(S), S.defaultPrevented || s == null || s());
|
|
1787
|
-
},
|
|
1783
|
+
}, m), _ = zi((S) => {
|
|
1788
1784
|
const j = S.target;
|
|
1789
1785
|
[...l.branches].some((W) => W.contains(j)) || (i == null || i(S), a == null || a(S), S.defaultPrevented || s == null || s());
|
|
1790
|
-
},
|
|
1786
|
+
}, m);
|
|
1791
1787
|
return Ii((S) => {
|
|
1792
1788
|
b === l.layers.size - 1 && (r == null || r(S), !S.defaultPrevented && s && (S.preventDefault(), s()));
|
|
1793
|
-
},
|
|
1789
|
+
}, m), d.useEffect(() => {
|
|
1794
1790
|
if (f)
|
|
1795
|
-
return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (
|
|
1796
|
-
n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (
|
|
1791
|
+
return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (In = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(f)), l.layers.add(f), Ln(), () => {
|
|
1792
|
+
n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents = In);
|
|
1797
1793
|
};
|
|
1798
|
-
}, [f,
|
|
1799
|
-
f && (l.layers.delete(f), l.layersWithOutsidePointerEventsDisabled.delete(f),
|
|
1794
|
+
}, [f, m, n, l]), d.useEffect(() => () => {
|
|
1795
|
+
f && (l.layers.delete(f), l.layersWithOutsidePointerEventsDisabled.delete(f), Ln());
|
|
1800
1796
|
}, [f, l]), d.useEffect(() => {
|
|
1801
|
-
const S = () =>
|
|
1802
|
-
return document.addEventListener(
|
|
1797
|
+
const S = () => v({});
|
|
1798
|
+
return document.addEventListener(Xt, S), () => document.removeEventListener(Xt, S);
|
|
1803
1799
|
}, []), /* @__PURE__ */ y.jsx(
|
|
1804
1800
|
Z.div,
|
|
1805
1801
|
{
|
|
@@ -1819,9 +1815,9 @@ var Li = "DismissableLayer", qt = "dismissableLayer.update", Fi = "dismissableLa
|
|
|
1819
1815
|
);
|
|
1820
1816
|
}
|
|
1821
1817
|
);
|
|
1822
|
-
|
|
1818
|
+
Er.displayName = Li;
|
|
1823
1819
|
var Wi = "DismissableLayerBranch", $i = d.forwardRef((e, t) => {
|
|
1824
|
-
const n = d.useContext(
|
|
1820
|
+
const n = d.useContext(Cr), r = d.useRef(null), o = re(t, r);
|
|
1825
1821
|
return d.useEffect(() => {
|
|
1826
1822
|
const i = r.current;
|
|
1827
1823
|
if (i)
|
|
@@ -1838,7 +1834,7 @@ function Vi(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
1838
1834
|
const i = (s) => {
|
|
1839
1835
|
if (s.target && !r.current) {
|
|
1840
1836
|
let u = function() {
|
|
1841
|
-
|
|
1837
|
+
Rr(
|
|
1842
1838
|
Fi,
|
|
1843
1839
|
n,
|
|
1844
1840
|
l,
|
|
@@ -1865,7 +1861,7 @@ function zi(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
1865
1861
|
const n = ge(e), r = d.useRef(!1);
|
|
1866
1862
|
return d.useEffect(() => {
|
|
1867
1863
|
const o = (i) => {
|
|
1868
|
-
i.target && !r.current &&
|
|
1864
|
+
i.target && !r.current && Rr(Bi, n, { originalEvent: i }, {
|
|
1869
1865
|
discrete: !1
|
|
1870
1866
|
});
|
|
1871
1867
|
};
|
|
@@ -1875,15 +1871,15 @@ function zi(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
1875
1871
|
onBlurCapture: () => r.current = !1
|
|
1876
1872
|
};
|
|
1877
1873
|
}
|
|
1878
|
-
function
|
|
1879
|
-
const e = new CustomEvent(
|
|
1874
|
+
function Ln() {
|
|
1875
|
+
const e = new CustomEvent(Xt);
|
|
1880
1876
|
document.dispatchEvent(e);
|
|
1881
1877
|
}
|
|
1882
|
-
function
|
|
1878
|
+
function Rr(e, t, n, { discrete: r }) {
|
|
1883
1879
|
const o = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
1884
1880
|
t && o.addEventListener(e, t, { once: !0 }), r ? ai(o, i) : o.dispatchEvent(i);
|
|
1885
1881
|
}
|
|
1886
|
-
const Hi = ["top", "right", "bottom", "left"], we = Math.min, ee = Math.max,
|
|
1882
|
+
const Hi = ["top", "right", "bottom", "left"], we = Math.min, ee = Math.max, gt = Math.round, ct = Math.floor, ce = (e) => ({
|
|
1887
1883
|
x: e,
|
|
1888
1884
|
y: e
|
|
1889
1885
|
}), Ui = {
|
|
@@ -1895,7 +1891,7 @@ const Hi = ["top", "right", "bottom", "left"], we = Math.min, ee = Math.max, yt
|
|
|
1895
1891
|
start: "end",
|
|
1896
1892
|
end: "start"
|
|
1897
1893
|
};
|
|
1898
|
-
function
|
|
1894
|
+
function Gt(e, t, n) {
|
|
1899
1895
|
return ee(e, we(t, n));
|
|
1900
1896
|
}
|
|
1901
1897
|
function pe(e, t) {
|
|
@@ -1907,29 +1903,29 @@ function he(e) {
|
|
|
1907
1903
|
function He(e) {
|
|
1908
1904
|
return e.split("-")[1];
|
|
1909
1905
|
}
|
|
1910
|
-
function
|
|
1906
|
+
function cn(e) {
|
|
1911
1907
|
return e === "x" ? "y" : "x";
|
|
1912
1908
|
}
|
|
1913
|
-
function
|
|
1909
|
+
function ln(e) {
|
|
1914
1910
|
return e === "y" ? "height" : "width";
|
|
1915
1911
|
}
|
|
1916
|
-
function
|
|
1912
|
+
function xe(e) {
|
|
1917
1913
|
return ["top", "bottom"].includes(he(e)) ? "y" : "x";
|
|
1918
1914
|
}
|
|
1919
|
-
function
|
|
1920
|
-
return
|
|
1915
|
+
function un(e) {
|
|
1916
|
+
return cn(xe(e));
|
|
1921
1917
|
}
|
|
1922
1918
|
function Ki(e, t, n) {
|
|
1923
1919
|
n === void 0 && (n = !1);
|
|
1924
|
-
const r = He(e), o =
|
|
1920
|
+
const r = He(e), o = un(e), i = ln(o);
|
|
1925
1921
|
let a = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
1926
|
-
return t.reference[i] > t.floating[i] && (a =
|
|
1922
|
+
return t.reference[i] > t.floating[i] && (a = yt(a)), [a, yt(a)];
|
|
1927
1923
|
}
|
|
1928
1924
|
function Xi(e) {
|
|
1929
|
-
const t =
|
|
1930
|
-
return [
|
|
1925
|
+
const t = yt(e);
|
|
1926
|
+
return [qt(e), t, qt(t)];
|
|
1931
1927
|
}
|
|
1932
|
-
function
|
|
1928
|
+
function qt(e) {
|
|
1933
1929
|
return e.replace(/start|end/g, (t) => Yi[t]);
|
|
1934
1930
|
}
|
|
1935
1931
|
function Gi(e, t, n) {
|
|
@@ -1948,9 +1944,9 @@ function Gi(e, t, n) {
|
|
|
1948
1944
|
function qi(e, t, n, r) {
|
|
1949
1945
|
const o = He(e);
|
|
1950
1946
|
let i = Gi(he(e), n === "start", r);
|
|
1951
|
-
return o && (i = i.map((a) => a + "-" + o), t && (i = i.concat(i.map(
|
|
1947
|
+
return o && (i = i.map((a) => a + "-" + o), t && (i = i.concat(i.map(qt)))), i;
|
|
1952
1948
|
}
|
|
1953
|
-
function
|
|
1949
|
+
function yt(e) {
|
|
1954
1950
|
return e.replace(/left|right|bottom|top/g, (t) => Ui[t]);
|
|
1955
1951
|
}
|
|
1956
1952
|
function Ji(e) {
|
|
@@ -1962,7 +1958,7 @@ function Ji(e) {
|
|
|
1962
1958
|
...e
|
|
1963
1959
|
};
|
|
1964
1960
|
}
|
|
1965
|
-
function
|
|
1961
|
+
function Pr(e) {
|
|
1966
1962
|
return typeof e != "number" ? Ji(e) : {
|
|
1967
1963
|
top: e,
|
|
1968
1964
|
right: e,
|
|
@@ -1970,7 +1966,7 @@ function Ar(e) {
|
|
|
1970
1966
|
left: e
|
|
1971
1967
|
};
|
|
1972
1968
|
}
|
|
1973
|
-
function
|
|
1969
|
+
function wt(e) {
|
|
1974
1970
|
const {
|
|
1975
1971
|
x: t,
|
|
1976
1972
|
y: n,
|
|
@@ -1988,53 +1984,53 @@ function bt(e) {
|
|
|
1988
1984
|
y: n
|
|
1989
1985
|
};
|
|
1990
1986
|
}
|
|
1991
|
-
function
|
|
1987
|
+
function Fn(e, t, n) {
|
|
1992
1988
|
let {
|
|
1993
1989
|
reference: r,
|
|
1994
1990
|
floating: o
|
|
1995
1991
|
} = e;
|
|
1996
|
-
const i =
|
|
1997
|
-
let
|
|
1992
|
+
const i = xe(t), a = un(t), s = ln(a), u = he(t), l = i === "y", f = r.x + r.width / 2 - o.width / 2, p = r.y + r.height / 2 - o.height / 2, m = r[s] / 2 - o[s] / 2;
|
|
1993
|
+
let v;
|
|
1998
1994
|
switch (u) {
|
|
1999
1995
|
case "top":
|
|
2000
|
-
|
|
1996
|
+
v = {
|
|
2001
1997
|
x: f,
|
|
2002
1998
|
y: r.y - o.height
|
|
2003
1999
|
};
|
|
2004
2000
|
break;
|
|
2005
2001
|
case "bottom":
|
|
2006
|
-
|
|
2002
|
+
v = {
|
|
2007
2003
|
x: f,
|
|
2008
2004
|
y: r.y + r.height
|
|
2009
2005
|
};
|
|
2010
2006
|
break;
|
|
2011
2007
|
case "right":
|
|
2012
|
-
|
|
2008
|
+
v = {
|
|
2013
2009
|
x: r.x + r.width,
|
|
2014
2010
|
y: p
|
|
2015
2011
|
};
|
|
2016
2012
|
break;
|
|
2017
2013
|
case "left":
|
|
2018
|
-
|
|
2014
|
+
v = {
|
|
2019
2015
|
x: r.x - o.width,
|
|
2020
2016
|
y: p
|
|
2021
2017
|
};
|
|
2022
2018
|
break;
|
|
2023
2019
|
default:
|
|
2024
|
-
|
|
2020
|
+
v = {
|
|
2025
2021
|
x: r.x,
|
|
2026
2022
|
y: r.y
|
|
2027
2023
|
};
|
|
2028
2024
|
}
|
|
2029
2025
|
switch (He(t)) {
|
|
2030
2026
|
case "start":
|
|
2031
|
-
|
|
2027
|
+
v[a] -= m * (n && l ? -1 : 1);
|
|
2032
2028
|
break;
|
|
2033
2029
|
case "end":
|
|
2034
|
-
|
|
2030
|
+
v[a] += m * (n && l ? -1 : 1);
|
|
2035
2031
|
break;
|
|
2036
2032
|
}
|
|
2037
|
-
return
|
|
2033
|
+
return v;
|
|
2038
2034
|
}
|
|
2039
2035
|
const Zi = async (e, t, n) => {
|
|
2040
2036
|
const {
|
|
@@ -2050,7 +2046,7 @@ const Zi = async (e, t, n) => {
|
|
|
2050
2046
|
}), {
|
|
2051
2047
|
x: f,
|
|
2052
2048
|
y: p
|
|
2053
|
-
} =
|
|
2049
|
+
} = Fn(l, r, u), m = r, v = {}, x = 0;
|
|
2054
2050
|
for (let h = 0; h < s.length; h++) {
|
|
2055
2051
|
const {
|
|
2056
2052
|
name: g,
|
|
@@ -2064,9 +2060,9 @@ const Zi = async (e, t, n) => {
|
|
|
2064
2060
|
x: f,
|
|
2065
2061
|
y: p,
|
|
2066
2062
|
initialPlacement: r,
|
|
2067
|
-
placement:
|
|
2063
|
+
placement: m,
|
|
2068
2064
|
strategy: o,
|
|
2069
|
-
middlewareData:
|
|
2065
|
+
middlewareData: v,
|
|
2070
2066
|
rects: l,
|
|
2071
2067
|
platform: a,
|
|
2072
2068
|
elements: {
|
|
@@ -2074,27 +2070,27 @@ const Zi = async (e, t, n) => {
|
|
|
2074
2070
|
floating: t
|
|
2075
2071
|
}
|
|
2076
2072
|
});
|
|
2077
|
-
f = b ?? f, p = E ?? p,
|
|
2078
|
-
...
|
|
2073
|
+
f = b ?? f, p = E ?? p, v = {
|
|
2074
|
+
...v,
|
|
2079
2075
|
[g]: {
|
|
2080
|
-
...
|
|
2076
|
+
...v[g],
|
|
2081
2077
|
...R
|
|
2082
2078
|
}
|
|
2083
|
-
}, A && x <= 50 && (x++, typeof A == "object" && (A.placement && (
|
|
2079
|
+
}, A && x <= 50 && (x++, typeof A == "object" && (A.placement && (m = A.placement), A.rects && (l = A.rects === !0 ? await a.getElementRects({
|
|
2084
2080
|
reference: e,
|
|
2085
2081
|
floating: t,
|
|
2086
2082
|
strategy: o
|
|
2087
2083
|
}) : A.rects), {
|
|
2088
2084
|
x: f,
|
|
2089
2085
|
y: p
|
|
2090
|
-
} =
|
|
2086
|
+
} = Fn(l, m, u)), h = -1);
|
|
2091
2087
|
}
|
|
2092
2088
|
return {
|
|
2093
2089
|
x: f,
|
|
2094
2090
|
y: p,
|
|
2095
|
-
placement:
|
|
2091
|
+
placement: m,
|
|
2096
2092
|
strategy: o,
|
|
2097
|
-
middlewareData:
|
|
2093
|
+
middlewareData: v
|
|
2098
2094
|
};
|
|
2099
2095
|
};
|
|
2100
2096
|
async function We(e, t) {
|
|
@@ -2111,9 +2107,9 @@ async function We(e, t) {
|
|
|
2111
2107
|
boundary: l = "clippingAncestors",
|
|
2112
2108
|
rootBoundary: f = "viewport",
|
|
2113
2109
|
elementContext: p = "floating",
|
|
2114
|
-
altBoundary:
|
|
2115
|
-
padding:
|
|
2116
|
-
} = pe(t, e), x =
|
|
2110
|
+
altBoundary: m = !1,
|
|
2111
|
+
padding: v = 0
|
|
2112
|
+
} = pe(t, e), x = Pr(v), g = s[m ? p === "floating" ? "reference" : "floating" : p], w = wt(await i.getClippingRect({
|
|
2117
2113
|
element: (n = await (i.isElement == null ? void 0 : i.isElement(g))) == null || n ? g : g.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(s.floating)),
|
|
2118
2114
|
boundary: l,
|
|
2119
2115
|
rootBoundary: f,
|
|
@@ -2129,7 +2125,7 @@ async function We(e, t) {
|
|
|
2129
2125
|
} : {
|
|
2130
2126
|
x: 1,
|
|
2131
2127
|
y: 1
|
|
2132
|
-
}, A =
|
|
2128
|
+
}, A = wt(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
2133
2129
|
elements: s,
|
|
2134
2130
|
rect: b,
|
|
2135
2131
|
offsetParent: E,
|
|
@@ -2160,18 +2156,18 @@ const Qi = (e) => ({
|
|
|
2160
2156
|
} = pe(e, t) || {};
|
|
2161
2157
|
if (l == null)
|
|
2162
2158
|
return {};
|
|
2163
|
-
const p =
|
|
2159
|
+
const p = Pr(f), m = {
|
|
2164
2160
|
x: n,
|
|
2165
2161
|
y: r
|
|
2166
|
-
},
|
|
2162
|
+
}, v = un(o), x = ln(v), h = await a.getDimensions(l), g = v === "y", w = g ? "top" : "left", b = g ? "bottom" : "right", E = g ? "clientHeight" : "clientWidth", R = i.reference[x] + i.reference[v] - m[v] - i.floating[x], A = m[v] - i.reference[v], _ = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(l));
|
|
2167
2163
|
let S = _ ? _[E] : 0;
|
|
2168
2164
|
(!S || !await (a.isElement == null ? void 0 : a.isElement(_))) && (S = s.floating[E] || i.floating[x]);
|
|
2169
|
-
const j = R / 2 - A / 2, F = S / 2 - h[x] / 2 - 1, W = we(p[w], F), G = we(p[b], F), K = W,
|
|
2165
|
+
const j = R / 2 - A / 2, F = S / 2 - h[x] / 2 - 1, W = we(p[w], F), G = we(p[b], F), K = W, I = S - h[x] - G, M = S / 2 - h[x] / 2 + j, X = Gt(K, M, I), $ = !u.arrow && He(o) != null && M !== X && i.reference[x] / 2 - (M < K ? W : G) - h[x] / 2 < 0, V = $ ? M < K ? M - K : M - I : 0;
|
|
2170
2166
|
return {
|
|
2171
|
-
[
|
|
2167
|
+
[v]: m[v] + V,
|
|
2172
2168
|
data: {
|
|
2173
|
-
[
|
|
2174
|
-
centerOffset:
|
|
2169
|
+
[v]: X,
|
|
2170
|
+
centerOffset: M - X - V,
|
|
2175
2171
|
...$ && {
|
|
2176
2172
|
alignmentOffset: V
|
|
2177
2173
|
}
|
|
@@ -2195,32 +2191,32 @@ const Qi = (e) => ({
|
|
|
2195
2191
|
} = t, {
|
|
2196
2192
|
mainAxis: f = !0,
|
|
2197
2193
|
crossAxis: p = !0,
|
|
2198
|
-
fallbackPlacements:
|
|
2199
|
-
fallbackStrategy:
|
|
2194
|
+
fallbackPlacements: m,
|
|
2195
|
+
fallbackStrategy: v = "bestFit",
|
|
2200
2196
|
fallbackAxisSideDirection: x = "none",
|
|
2201
2197
|
flipAlignment: h = !0,
|
|
2202
2198
|
...g
|
|
2203
2199
|
} = pe(e, t);
|
|
2204
2200
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
2205
2201
|
return {};
|
|
2206
|
-
const w = he(o), b =
|
|
2207
|
-
!
|
|
2202
|
+
const w = he(o), b = xe(s), E = he(s) === s, R = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)), A = m || (E || !h ? [yt(s)] : Xi(s)), _ = x !== "none";
|
|
2203
|
+
!m && _ && A.push(...qi(s, h, x, R));
|
|
2208
2204
|
const S = [s, ...A], j = await We(t, g), F = [];
|
|
2209
2205
|
let W = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
2210
2206
|
if (f && F.push(j[w]), p) {
|
|
2211
|
-
const
|
|
2212
|
-
F.push(j[
|
|
2207
|
+
const M = Ki(o, a, R);
|
|
2208
|
+
F.push(j[M[0]], j[M[1]]);
|
|
2213
2209
|
}
|
|
2214
2210
|
if (W = [...W, {
|
|
2215
2211
|
placement: o,
|
|
2216
2212
|
overflows: F
|
|
2217
|
-
}], !F.every((
|
|
2213
|
+
}], !F.every((M) => M <= 0)) {
|
|
2218
2214
|
var G, K;
|
|
2219
|
-
const
|
|
2215
|
+
const M = (((G = i.flip) == null ? void 0 : G.index) || 0) + 1, X = S[M];
|
|
2220
2216
|
if (X)
|
|
2221
2217
|
return {
|
|
2222
2218
|
data: {
|
|
2223
|
-
index:
|
|
2219
|
+
index: M,
|
|
2224
2220
|
overflows: W
|
|
2225
2221
|
},
|
|
2226
2222
|
reset: {
|
|
@@ -2229,18 +2225,18 @@ const Qi = (e) => ({
|
|
|
2229
2225
|
};
|
|
2230
2226
|
let $ = (K = W.filter((V) => V.overflows[0] <= 0).sort((V, N) => V.overflows[1] - N.overflows[1])[0]) == null ? void 0 : K.placement;
|
|
2231
2227
|
if (!$)
|
|
2232
|
-
switch (
|
|
2228
|
+
switch (v) {
|
|
2233
2229
|
case "bestFit": {
|
|
2234
|
-
var
|
|
2235
|
-
const V = (
|
|
2230
|
+
var I;
|
|
2231
|
+
const V = (I = W.filter((N) => {
|
|
2236
2232
|
if (_) {
|
|
2237
|
-
const Y =
|
|
2233
|
+
const Y = xe(N.placement);
|
|
2238
2234
|
return Y === b || // Create a bias to the `y` side axis due to horizontal
|
|
2239
2235
|
// reading directions favoring greater width.
|
|
2240
2236
|
Y === "y";
|
|
2241
2237
|
}
|
|
2242
2238
|
return !0;
|
|
2243
|
-
}).map((N) => [N.placement, N.overflows.filter((Y) => Y > 0).reduce((Y, Q) => Y + Q, 0)]).sort((N, Y) => N[1] - Y[1])[0]) == null ? void 0 :
|
|
2239
|
+
}).map((N) => [N.placement, N.overflows.filter((Y) => Y > 0).reduce((Y, Q) => Y + Q, 0)]).sort((N, Y) => N[1] - Y[1])[0]) == null ? void 0 : I[0];
|
|
2244
2240
|
V && ($ = V);
|
|
2245
2241
|
break;
|
|
2246
2242
|
}
|
|
@@ -2259,7 +2255,7 @@ const Qi = (e) => ({
|
|
|
2259
2255
|
}
|
|
2260
2256
|
};
|
|
2261
2257
|
};
|
|
2262
|
-
function
|
|
2258
|
+
function Bn(e, t) {
|
|
2263
2259
|
return {
|
|
2264
2260
|
top: e.top - t.height,
|
|
2265
2261
|
right: e.right - t.width,
|
|
@@ -2267,7 +2263,7 @@ function Wn(e, t) {
|
|
|
2267
2263
|
left: e.left - t.width
|
|
2268
2264
|
};
|
|
2269
2265
|
}
|
|
2270
|
-
function
|
|
2266
|
+
function Wn(e) {
|
|
2271
2267
|
return Hi.some((t) => e[t] >= 0);
|
|
2272
2268
|
}
|
|
2273
2269
|
const ta = function(e) {
|
|
@@ -2286,11 +2282,11 @@ const ta = function(e) {
|
|
|
2286
2282
|
const i = await We(t, {
|
|
2287
2283
|
...o,
|
|
2288
2284
|
elementContext: "reference"
|
|
2289
|
-
}), a =
|
|
2285
|
+
}), a = Bn(i, n.reference);
|
|
2290
2286
|
return {
|
|
2291
2287
|
data: {
|
|
2292
2288
|
referenceHiddenOffsets: a,
|
|
2293
|
-
referenceHidden:
|
|
2289
|
+
referenceHidden: Wn(a)
|
|
2294
2290
|
}
|
|
2295
2291
|
};
|
|
2296
2292
|
}
|
|
@@ -2298,11 +2294,11 @@ const ta = function(e) {
|
|
|
2298
2294
|
const i = await We(t, {
|
|
2299
2295
|
...o,
|
|
2300
2296
|
altBoundary: !0
|
|
2301
|
-
}), a =
|
|
2297
|
+
}), a = Bn(i, n.floating);
|
|
2302
2298
|
return {
|
|
2303
2299
|
data: {
|
|
2304
2300
|
escapedOffsets: a,
|
|
2305
|
-
escaped:
|
|
2301
|
+
escaped: Wn(a)
|
|
2306
2302
|
}
|
|
2307
2303
|
};
|
|
2308
2304
|
}
|
|
@@ -2317,10 +2313,10 @@ async function na(e, t) {
|
|
|
2317
2313
|
placement: n,
|
|
2318
2314
|
platform: r,
|
|
2319
2315
|
elements: o
|
|
2320
|
-
} = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), a = he(n), s = He(n), u =
|
|
2316
|
+
} = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), a = he(n), s = He(n), u = xe(n) === "y", l = ["left", "top"].includes(a) ? -1 : 1, f = i && u ? -1 : 1, p = pe(t, e);
|
|
2321
2317
|
let {
|
|
2322
|
-
mainAxis:
|
|
2323
|
-
crossAxis:
|
|
2318
|
+
mainAxis: m,
|
|
2319
|
+
crossAxis: v,
|
|
2324
2320
|
alignmentAxis: x
|
|
2325
2321
|
} = typeof p == "number" ? {
|
|
2326
2322
|
mainAxis: p,
|
|
@@ -2331,12 +2327,12 @@ async function na(e, t) {
|
|
|
2331
2327
|
crossAxis: p.crossAxis || 0,
|
|
2332
2328
|
alignmentAxis: p.alignmentAxis
|
|
2333
2329
|
};
|
|
2334
|
-
return s && typeof x == "number" && (
|
|
2335
|
-
x:
|
|
2336
|
-
y:
|
|
2330
|
+
return s && typeof x == "number" && (v = s === "end" ? x * -1 : x), u ? {
|
|
2331
|
+
x: v * f,
|
|
2332
|
+
y: m * l
|
|
2337
2333
|
} : {
|
|
2338
|
-
x:
|
|
2339
|
-
y:
|
|
2334
|
+
x: m * l,
|
|
2335
|
+
y: v * f
|
|
2340
2336
|
};
|
|
2341
2337
|
}
|
|
2342
2338
|
const ra = function(e) {
|
|
@@ -2389,19 +2385,19 @@ const ra = function(e) {
|
|
|
2389
2385
|
} = pe(e, t), l = {
|
|
2390
2386
|
x: n,
|
|
2391
2387
|
y: r
|
|
2392
|
-
}, f = await We(t, u), p =
|
|
2393
|
-
let
|
|
2388
|
+
}, f = await We(t, u), p = xe(he(o)), m = cn(p);
|
|
2389
|
+
let v = l[m], x = l[p];
|
|
2394
2390
|
if (i) {
|
|
2395
|
-
const g =
|
|
2396
|
-
|
|
2391
|
+
const g = m === "y" ? "top" : "left", w = m === "y" ? "bottom" : "right", b = v + f[g], E = v - f[w];
|
|
2392
|
+
v = Gt(b, v, E);
|
|
2397
2393
|
}
|
|
2398
2394
|
if (a) {
|
|
2399
2395
|
const g = p === "y" ? "top" : "left", w = p === "y" ? "bottom" : "right", b = x + f[g], E = x - f[w];
|
|
2400
|
-
x =
|
|
2396
|
+
x = Gt(b, x, E);
|
|
2401
2397
|
}
|
|
2402
2398
|
const h = s.fn({
|
|
2403
2399
|
...t,
|
|
2404
|
-
[
|
|
2400
|
+
[m]: v,
|
|
2405
2401
|
[p]: x
|
|
2406
2402
|
});
|
|
2407
2403
|
return {
|
|
@@ -2410,7 +2406,7 @@ const ra = function(e) {
|
|
|
2410
2406
|
x: h.x - n,
|
|
2411
2407
|
y: h.y - r,
|
|
2412
2408
|
enabled: {
|
|
2413
|
-
[
|
|
2409
|
+
[m]: i,
|
|
2414
2410
|
[p]: a
|
|
2415
2411
|
}
|
|
2416
2412
|
}
|
|
@@ -2434,8 +2430,8 @@ const ra = function(e) {
|
|
|
2434
2430
|
} = pe(e, t), f = {
|
|
2435
2431
|
x: n,
|
|
2436
2432
|
y: r
|
|
2437
|
-
}, p =
|
|
2438
|
-
let
|
|
2433
|
+
}, p = xe(o), m = cn(p);
|
|
2434
|
+
let v = f[m], x = f[p];
|
|
2439
2435
|
const h = pe(s, t), g = typeof h == "number" ? {
|
|
2440
2436
|
mainAxis: h,
|
|
2441
2437
|
crossAxis: 0
|
|
@@ -2445,16 +2441,16 @@ const ra = function(e) {
|
|
|
2445
2441
|
...h
|
|
2446
2442
|
};
|
|
2447
2443
|
if (u) {
|
|
2448
|
-
const E =
|
|
2449
|
-
|
|
2444
|
+
const E = m === "y" ? "height" : "width", R = i.reference[m] - i.floating[E] + g.mainAxis, A = i.reference[m] + i.reference[E] - g.mainAxis;
|
|
2445
|
+
v < R ? v = R : v > A && (v = A);
|
|
2450
2446
|
}
|
|
2451
2447
|
if (l) {
|
|
2452
2448
|
var w, b;
|
|
2453
|
-
const E =
|
|
2449
|
+
const E = m === "y" ? "width" : "height", R = ["top", "left"].includes(he(o)), A = i.reference[p] - i.floating[E] + (R && ((w = a.offset) == null ? void 0 : w[p]) || 0) + (R ? 0 : g.crossAxis), _ = i.reference[p] + i.reference[E] + (R ? 0 : ((b = a.offset) == null ? void 0 : b[p]) || 0) - (R ? g.crossAxis : 0);
|
|
2454
2450
|
x < A ? x = A : x > _ && (x = _);
|
|
2455
2451
|
}
|
|
2456
2452
|
return {
|
|
2457
|
-
[
|
|
2453
|
+
[m]: v,
|
|
2458
2454
|
[p]: x
|
|
2459
2455
|
};
|
|
2460
2456
|
}
|
|
@@ -2474,17 +2470,17 @@ const ra = function(e) {
|
|
|
2474
2470
|
apply: u = () => {
|
|
2475
2471
|
},
|
|
2476
2472
|
...l
|
|
2477
|
-
} = pe(e, t), f = await We(t, l), p = he(o),
|
|
2473
|
+
} = pe(e, t), f = await We(t, l), p = he(o), m = He(o), v = xe(o) === "y", {
|
|
2478
2474
|
width: x,
|
|
2479
2475
|
height: h
|
|
2480
2476
|
} = i.floating;
|
|
2481
2477
|
let g, w;
|
|
2482
|
-
p === "top" || p === "bottom" ? (g = p, w =
|
|
2478
|
+
p === "top" || p === "bottom" ? (g = p, w = m === (await (a.isRTL == null ? void 0 : a.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (w = p, g = m === "end" ? "top" : "bottom");
|
|
2483
2479
|
const b = h - f.top - f.bottom, E = x - f.left - f.right, R = we(h - f[g], b), A = we(x - f[w], E), _ = !t.middlewareData.shift;
|
|
2484
2480
|
let S = R, j = A;
|
|
2485
|
-
if ((n = t.middlewareData.shift) != null && n.enabled.x && (j = E), (r = t.middlewareData.shift) != null && r.enabled.y && (S = b), _ && !
|
|
2486
|
-
const W = ee(f.left, 0), G = ee(f.right, 0), K = ee(f.top, 0),
|
|
2487
|
-
|
|
2481
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (j = E), (r = t.middlewareData.shift) != null && r.enabled.y && (S = b), _ && !m) {
|
|
2482
|
+
const W = ee(f.left, 0), G = ee(f.right, 0), K = ee(f.top, 0), I = ee(f.bottom, 0);
|
|
2483
|
+
v ? j = x - 2 * (W !== 0 || G !== 0 ? W + G : ee(f.left, f.right)) : S = h - 2 * (K !== 0 || I !== 0 ? K + I : ee(f.top, f.bottom));
|
|
2488
2484
|
}
|
|
2489
2485
|
await u({
|
|
2490
2486
|
...t,
|
|
@@ -2500,11 +2496,11 @@ const ra = function(e) {
|
|
|
2500
2496
|
}
|
|
2501
2497
|
};
|
|
2502
2498
|
};
|
|
2503
|
-
function
|
|
2499
|
+
function Pt() {
|
|
2504
2500
|
return typeof window < "u";
|
|
2505
2501
|
}
|
|
2506
2502
|
function Ue(e) {
|
|
2507
|
-
return
|
|
2503
|
+
return Ar(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
2508
2504
|
}
|
|
2509
2505
|
function te(e) {
|
|
2510
2506
|
var t;
|
|
@@ -2512,21 +2508,21 @@ function te(e) {
|
|
|
2512
2508
|
}
|
|
2513
2509
|
function ue(e) {
|
|
2514
2510
|
var t;
|
|
2515
|
-
return (t = (
|
|
2511
|
+
return (t = (Ar(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
2516
2512
|
}
|
|
2517
|
-
function
|
|
2518
|
-
return
|
|
2513
|
+
function Ar(e) {
|
|
2514
|
+
return Pt() ? e instanceof Node || e instanceof te(e).Node : !1;
|
|
2519
2515
|
}
|
|
2520
2516
|
function oe(e) {
|
|
2521
|
-
return
|
|
2517
|
+
return Pt() ? e instanceof Element || e instanceof te(e).Element : !1;
|
|
2522
2518
|
}
|
|
2523
2519
|
function le(e) {
|
|
2524
|
-
return
|
|
2520
|
+
return Pt() ? e instanceof HTMLElement || e instanceof te(e).HTMLElement : !1;
|
|
2525
2521
|
}
|
|
2526
|
-
function
|
|
2527
|
-
return !
|
|
2522
|
+
function $n(e) {
|
|
2523
|
+
return !Pt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof te(e).ShadowRoot;
|
|
2528
2524
|
}
|
|
2529
|
-
function
|
|
2525
|
+
function Qe(e) {
|
|
2530
2526
|
const {
|
|
2531
2527
|
overflow: t,
|
|
2532
2528
|
overflowX: n,
|
|
@@ -2538,7 +2534,7 @@ function et(e) {
|
|
|
2538
2534
|
function sa(e) {
|
|
2539
2535
|
return ["table", "td", "th"].includes(Ue(e));
|
|
2540
2536
|
}
|
|
2541
|
-
function
|
|
2537
|
+
function At(e) {
|
|
2542
2538
|
return [":popover-open", ":modal"].some((t) => {
|
|
2543
2539
|
try {
|
|
2544
2540
|
return e.matches(t);
|
|
@@ -2547,22 +2543,22 @@ function St(e) {
|
|
|
2547
2543
|
}
|
|
2548
2544
|
});
|
|
2549
2545
|
}
|
|
2550
|
-
function
|
|
2551
|
-
const t =
|
|
2552
|
-
return
|
|
2546
|
+
function fn(e) {
|
|
2547
|
+
const t = dn(), n = oe(e) ? ie(e) : e;
|
|
2548
|
+
return ["transform", "translate", "scale", "rotate", "perspective"].some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
|
|
2553
2549
|
}
|
|
2554
2550
|
function ca(e) {
|
|
2555
|
-
let t =
|
|
2551
|
+
let t = be(e);
|
|
2556
2552
|
for (; le(t) && !$e(t); ) {
|
|
2557
|
-
if (
|
|
2553
|
+
if (fn(t))
|
|
2558
2554
|
return t;
|
|
2559
|
-
if (
|
|
2555
|
+
if (At(t))
|
|
2560
2556
|
return null;
|
|
2561
|
-
t =
|
|
2557
|
+
t = be(t);
|
|
2562
2558
|
}
|
|
2563
2559
|
return null;
|
|
2564
2560
|
}
|
|
2565
|
-
function
|
|
2561
|
+
function dn() {
|
|
2566
2562
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
2567
2563
|
}
|
|
2568
2564
|
function $e(e) {
|
|
@@ -2571,7 +2567,7 @@ function $e(e) {
|
|
|
2571
2567
|
function ie(e) {
|
|
2572
2568
|
return te(e).getComputedStyle(e);
|
|
2573
2569
|
}
|
|
2574
|
-
function
|
|
2570
|
+
function St(e) {
|
|
2575
2571
|
return oe(e) ? {
|
|
2576
2572
|
scrollLeft: e.scrollLeft,
|
|
2577
2573
|
scrollTop: e.scrollTop
|
|
@@ -2580,67 +2576,67 @@ function Ot(e) {
|
|
|
2580
2576
|
scrollTop: e.scrollY
|
|
2581
2577
|
};
|
|
2582
2578
|
}
|
|
2583
|
-
function
|
|
2579
|
+
function be(e) {
|
|
2584
2580
|
if (Ue(e) === "html")
|
|
2585
2581
|
return e;
|
|
2586
2582
|
const t = (
|
|
2587
2583
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
2588
2584
|
e.assignedSlot || // DOM Element detected.
|
|
2589
2585
|
e.parentNode || // ShadowRoot detected.
|
|
2590
|
-
|
|
2586
|
+
$n(e) && e.host || // Fallback.
|
|
2591
2587
|
ue(e)
|
|
2592
2588
|
);
|
|
2593
|
-
return
|
|
2589
|
+
return $n(t) ? t.host : t;
|
|
2594
2590
|
}
|
|
2595
|
-
function
|
|
2596
|
-
const t =
|
|
2597
|
-
return $e(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : le(t) &&
|
|
2591
|
+
function Sr(e) {
|
|
2592
|
+
const t = be(e);
|
|
2593
|
+
return $e(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : le(t) && Qe(t) ? t : Sr(t);
|
|
2598
2594
|
}
|
|
2599
|
-
function
|
|
2595
|
+
function Je(e, t, n) {
|
|
2600
2596
|
var r;
|
|
2601
2597
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
2602
|
-
const o =
|
|
2598
|
+
const o = Sr(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), a = te(o);
|
|
2603
2599
|
if (i) {
|
|
2604
|
-
const s =
|
|
2605
|
-
return t.concat(a, a.visualViewport || [],
|
|
2600
|
+
const s = Jt(a);
|
|
2601
|
+
return t.concat(a, a.visualViewport || [], Qe(o) ? o : [], s && n ? Je(s) : []);
|
|
2606
2602
|
}
|
|
2607
|
-
return t.concat(o,
|
|
2603
|
+
return t.concat(o, Je(o, [], n));
|
|
2608
2604
|
}
|
|
2609
|
-
function
|
|
2605
|
+
function Jt(e) {
|
|
2610
2606
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
2611
2607
|
}
|
|
2612
|
-
function
|
|
2608
|
+
function Or(e) {
|
|
2613
2609
|
const t = ie(e);
|
|
2614
2610
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
2615
|
-
const o = le(e), i = o ? e.offsetWidth : n, a = o ? e.offsetHeight : r, s =
|
|
2611
|
+
const o = le(e), i = o ? e.offsetWidth : n, a = o ? e.offsetHeight : r, s = gt(n) !== i || gt(r) !== a;
|
|
2616
2612
|
return s && (n = i, r = a), {
|
|
2617
2613
|
width: n,
|
|
2618
2614
|
height: r,
|
|
2619
2615
|
$: s
|
|
2620
2616
|
};
|
|
2621
2617
|
}
|
|
2622
|
-
function
|
|
2618
|
+
function pn(e) {
|
|
2623
2619
|
return oe(e) ? e : e.contextElement;
|
|
2624
2620
|
}
|
|
2625
2621
|
function Fe(e) {
|
|
2626
|
-
const t =
|
|
2622
|
+
const t = pn(e);
|
|
2627
2623
|
if (!le(t))
|
|
2628
2624
|
return ce(1);
|
|
2629
2625
|
const n = t.getBoundingClientRect(), {
|
|
2630
2626
|
width: r,
|
|
2631
2627
|
height: o,
|
|
2632
2628
|
$: i
|
|
2633
|
-
} =
|
|
2634
|
-
let a = (i ?
|
|
2629
|
+
} = Or(t);
|
|
2630
|
+
let a = (i ? gt(n.width) : n.width) / r, s = (i ? gt(n.height) : n.height) / o;
|
|
2635
2631
|
return (!a || !Number.isFinite(a)) && (a = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
2636
2632
|
x: a,
|
|
2637
2633
|
y: s
|
|
2638
2634
|
};
|
|
2639
2635
|
}
|
|
2640
2636
|
const la = /* @__PURE__ */ ce(0);
|
|
2641
|
-
function
|
|
2637
|
+
function _r(e) {
|
|
2642
2638
|
const t = te(e);
|
|
2643
|
-
return !
|
|
2639
|
+
return !dn() || !t.visualViewport ? la : {
|
|
2644
2640
|
x: t.visualViewport.offsetLeft,
|
|
2645
2641
|
y: t.visualViewport.offsetTop
|
|
2646
2642
|
};
|
|
@@ -2650,35 +2646,35 @@ function ua(e, t, n) {
|
|
|
2650
2646
|
}
|
|
2651
2647
|
function _e(e, t, n, r) {
|
|
2652
2648
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
2653
|
-
const o = e.getBoundingClientRect(), i =
|
|
2649
|
+
const o = e.getBoundingClientRect(), i = pn(e);
|
|
2654
2650
|
let a = ce(1);
|
|
2655
2651
|
t && (r ? oe(r) && (a = Fe(r)) : a = Fe(e));
|
|
2656
|
-
const s = ua(i, n, r) ?
|
|
2652
|
+
const s = ua(i, n, r) ? _r(i) : ce(0);
|
|
2657
2653
|
let u = (o.left + s.x) / a.x, l = (o.top + s.y) / a.y, f = o.width / a.x, p = o.height / a.y;
|
|
2658
2654
|
if (i) {
|
|
2659
|
-
const
|
|
2660
|
-
let x =
|
|
2661
|
-
for (; h && r &&
|
|
2655
|
+
const m = te(i), v = r && oe(r) ? te(r) : r;
|
|
2656
|
+
let x = m, h = Jt(x);
|
|
2657
|
+
for (; h && r && v !== x; ) {
|
|
2662
2658
|
const g = Fe(h), w = h.getBoundingClientRect(), b = ie(h), E = w.left + (h.clientLeft + parseFloat(b.paddingLeft)) * g.x, R = w.top + (h.clientTop + parseFloat(b.paddingTop)) * g.y;
|
|
2663
|
-
u *= g.x, l *= g.y, f *= g.x, p *= g.y, u += E, l += R, x = te(h), h =
|
|
2659
|
+
u *= g.x, l *= g.y, f *= g.x, p *= g.y, u += E, l += R, x = te(h), h = Jt(x);
|
|
2664
2660
|
}
|
|
2665
2661
|
}
|
|
2666
|
-
return
|
|
2662
|
+
return wt({
|
|
2667
2663
|
width: f,
|
|
2668
2664
|
height: p,
|
|
2669
2665
|
x: u,
|
|
2670
2666
|
y: l
|
|
2671
2667
|
});
|
|
2672
2668
|
}
|
|
2673
|
-
function
|
|
2674
|
-
const n =
|
|
2669
|
+
function hn(e, t) {
|
|
2670
|
+
const n = St(e).scrollLeft;
|
|
2675
2671
|
return t ? t.left + n : _e(ue(e)).left + n;
|
|
2676
2672
|
}
|
|
2677
|
-
function
|
|
2673
|
+
function Tr(e, t, n) {
|
|
2678
2674
|
n === void 0 && (n = !1);
|
|
2679
2675
|
const r = e.getBoundingClientRect(), o = r.left + t.scrollLeft - (n ? 0 : (
|
|
2680
2676
|
// RTL <body> scrollbar.
|
|
2681
|
-
|
|
2677
|
+
hn(e, r)
|
|
2682
2678
|
)), i = r.top + t.scrollTop;
|
|
2683
2679
|
return {
|
|
2684
2680
|
x: o,
|
|
@@ -2692,7 +2688,7 @@ function fa(e) {
|
|
|
2692
2688
|
offsetParent: r,
|
|
2693
2689
|
strategy: o
|
|
2694
2690
|
} = e;
|
|
2695
|
-
const i = o === "fixed", a = ue(r), s = t ?
|
|
2691
|
+
const i = o === "fixed", a = ue(r), s = t ? At(t.floating) : !1;
|
|
2696
2692
|
if (r === a || s && i)
|
|
2697
2693
|
return n;
|
|
2698
2694
|
let u = {
|
|
@@ -2700,24 +2696,24 @@ function fa(e) {
|
|
|
2700
2696
|
scrollTop: 0
|
|
2701
2697
|
}, l = ce(1);
|
|
2702
2698
|
const f = ce(0), p = le(r);
|
|
2703
|
-
if ((p || !p && !i) && ((Ue(r) !== "body" ||
|
|
2704
|
-
const
|
|
2705
|
-
l = Fe(r), f.x =
|
|
2699
|
+
if ((p || !p && !i) && ((Ue(r) !== "body" || Qe(a)) && (u = St(r)), le(r))) {
|
|
2700
|
+
const v = _e(r);
|
|
2701
|
+
l = Fe(r), f.x = v.x + r.clientLeft, f.y = v.y + r.clientTop;
|
|
2706
2702
|
}
|
|
2707
|
-
const
|
|
2703
|
+
const m = a && !p && !i ? Tr(a, u, !0) : ce(0);
|
|
2708
2704
|
return {
|
|
2709
2705
|
width: n.width * l.x,
|
|
2710
2706
|
height: n.height * l.y,
|
|
2711
|
-
x: n.x * l.x - u.scrollLeft * l.x + f.x +
|
|
2712
|
-
y: n.y * l.y - u.scrollTop * l.y + f.y +
|
|
2707
|
+
x: n.x * l.x - u.scrollLeft * l.x + f.x + m.x,
|
|
2708
|
+
y: n.y * l.y - u.scrollTop * l.y + f.y + m.y
|
|
2713
2709
|
};
|
|
2714
2710
|
}
|
|
2715
2711
|
function da(e) {
|
|
2716
2712
|
return Array.from(e.getClientRects());
|
|
2717
2713
|
}
|
|
2718
2714
|
function pa(e) {
|
|
2719
|
-
const t = ue(e), n =
|
|
2720
|
-
let a = -n.scrollLeft +
|
|
2715
|
+
const t = ue(e), n = St(e), r = e.ownerDocument.body, o = ee(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = ee(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
2716
|
+
let a = -n.scrollLeft + hn(e);
|
|
2721
2717
|
const s = -n.scrollTop;
|
|
2722
2718
|
return ie(r).direction === "rtl" && (a += ee(t.clientWidth, r.clientWidth) - o), {
|
|
2723
2719
|
width: o,
|
|
@@ -2731,7 +2727,7 @@ function ha(e, t) {
|
|
|
2731
2727
|
let i = r.clientWidth, a = r.clientHeight, s = 0, u = 0;
|
|
2732
2728
|
if (o) {
|
|
2733
2729
|
i = o.width, a = o.height;
|
|
2734
|
-
const l =
|
|
2730
|
+
const l = dn();
|
|
2735
2731
|
(!l || l && t === "fixed") && (s = o.offsetLeft, u = o.offsetTop);
|
|
2736
2732
|
}
|
|
2737
2733
|
return {
|
|
@@ -2741,7 +2737,7 @@ function ha(e, t) {
|
|
|
2741
2737
|
y: u
|
|
2742
2738
|
};
|
|
2743
2739
|
}
|
|
2744
|
-
function
|
|
2740
|
+
function ma(e, t) {
|
|
2745
2741
|
const n = _e(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = le(e) ? Fe(e) : ce(1), a = e.clientWidth * i.x, s = e.clientHeight * i.y, u = o * i.x, l = r * i.y;
|
|
2746
2742
|
return {
|
|
2747
2743
|
width: a,
|
|
@@ -2750,16 +2746,16 @@ function va(e, t) {
|
|
|
2750
2746
|
y: l
|
|
2751
2747
|
};
|
|
2752
2748
|
}
|
|
2753
|
-
function
|
|
2749
|
+
function Vn(e, t, n) {
|
|
2754
2750
|
let r;
|
|
2755
2751
|
if (t === "viewport")
|
|
2756
2752
|
r = ha(e, n);
|
|
2757
2753
|
else if (t === "document")
|
|
2758
2754
|
r = pa(ue(e));
|
|
2759
2755
|
else if (oe(t))
|
|
2760
|
-
r =
|
|
2756
|
+
r = ma(t, n);
|
|
2761
2757
|
else {
|
|
2762
|
-
const o =
|
|
2758
|
+
const o = _r(e);
|
|
2763
2759
|
r = {
|
|
2764
2760
|
x: t.x - o.x,
|
|
2765
2761
|
y: t.y - o.y,
|
|
@@ -2767,22 +2763,22 @@ function zn(e, t, n) {
|
|
|
2767
2763
|
height: t.height
|
|
2768
2764
|
};
|
|
2769
2765
|
}
|
|
2770
|
-
return
|
|
2766
|
+
return wt(r);
|
|
2771
2767
|
}
|
|
2772
|
-
function
|
|
2773
|
-
const n =
|
|
2774
|
-
return n === t || !oe(n) || $e(n) ? !1 : ie(n).position === "fixed" ||
|
|
2768
|
+
function Nr(e, t) {
|
|
2769
|
+
const n = be(e);
|
|
2770
|
+
return n === t || !oe(n) || $e(n) ? !1 : ie(n).position === "fixed" || Nr(n, t);
|
|
2775
2771
|
}
|
|
2776
|
-
function
|
|
2772
|
+
function va(e, t) {
|
|
2777
2773
|
const n = t.get(e);
|
|
2778
2774
|
if (n)
|
|
2779
2775
|
return n;
|
|
2780
|
-
let r =
|
|
2776
|
+
let r = Je(e, [], !1).filter((s) => oe(s) && Ue(s) !== "body"), o = null;
|
|
2781
2777
|
const i = ie(e).position === "fixed";
|
|
2782
|
-
let a = i ?
|
|
2778
|
+
let a = i ? be(e) : e;
|
|
2783
2779
|
for (; oe(a) && !$e(a); ) {
|
|
2784
|
-
const s = ie(a), u =
|
|
2785
|
-
!u && s.position === "fixed" && (o = null), (i ? !u && !o : !u && s.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) ||
|
|
2780
|
+
const s = ie(a), u = fn(a);
|
|
2781
|
+
!u && s.position === "fixed" && (o = null), (i ? !u && !o : !u && s.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Qe(a) && !u && Nr(e, a)) ? r = r.filter((f) => f !== a) : o = s, a = be(a);
|
|
2786
2782
|
}
|
|
2787
2783
|
return t.set(e, r), r;
|
|
2788
2784
|
}
|
|
@@ -2793,10 +2789,10 @@ function ga(e) {
|
|
|
2793
2789
|
rootBoundary: r,
|
|
2794
2790
|
strategy: o
|
|
2795
2791
|
} = e;
|
|
2796
|
-
const a = [...n === "clippingAncestors" ?
|
|
2797
|
-
const p =
|
|
2792
|
+
const a = [...n === "clippingAncestors" ? At(t) ? [] : va(t, this._c) : [].concat(n), r], s = a[0], u = a.reduce((l, f) => {
|
|
2793
|
+
const p = Vn(t, f, o);
|
|
2798
2794
|
return l.top = ee(p.top, l.top), l.right = we(p.right, l.right), l.bottom = we(p.bottom, l.bottom), l.left = ee(p.left, l.left), l;
|
|
2799
|
-
},
|
|
2795
|
+
}, Vn(t, s, o));
|
|
2800
2796
|
return {
|
|
2801
2797
|
width: u.right - u.left,
|
|
2802
2798
|
height: u.bottom - u.top,
|
|
@@ -2808,7 +2804,7 @@ function ya(e) {
|
|
|
2808
2804
|
const {
|
|
2809
2805
|
width: t,
|
|
2810
2806
|
height: n
|
|
2811
|
-
} =
|
|
2807
|
+
} = Or(e);
|
|
2812
2808
|
return {
|
|
2813
2809
|
width: t,
|
|
2814
2810
|
height: n
|
|
@@ -2822,11 +2818,11 @@ function wa(e, t, n) {
|
|
|
2822
2818
|
};
|
|
2823
2819
|
const u = ce(0);
|
|
2824
2820
|
if (r || !r && !i)
|
|
2825
|
-
if ((Ue(t) !== "body" ||
|
|
2826
|
-
const
|
|
2827
|
-
u.x =
|
|
2828
|
-
} else o && (u.x =
|
|
2829
|
-
const l = o && !r && !i ?
|
|
2821
|
+
if ((Ue(t) !== "body" || Qe(o)) && (s = St(t)), r) {
|
|
2822
|
+
const m = _e(t, !0, i, t);
|
|
2823
|
+
u.x = m.x + t.clientLeft, u.y = m.y + t.clientTop;
|
|
2824
|
+
} else o && (u.x = hn(o));
|
|
2825
|
+
const l = o && !r && !i ? Tr(o, s) : ce(0), f = a.left + s.scrollLeft - u.x - l.x, p = a.top + s.scrollTop - u.y - l.y;
|
|
2830
2826
|
return {
|
|
2831
2827
|
x: f,
|
|
2832
2828
|
y: p,
|
|
@@ -2834,10 +2830,10 @@ function wa(e, t, n) {
|
|
|
2834
2830
|
height: a.height
|
|
2835
2831
|
};
|
|
2836
2832
|
}
|
|
2837
|
-
function
|
|
2833
|
+
function It(e) {
|
|
2838
2834
|
return ie(e).position === "static";
|
|
2839
2835
|
}
|
|
2840
|
-
function
|
|
2836
|
+
function zn(e, t) {
|
|
2841
2837
|
if (!le(e) || ie(e).position === "fixed")
|
|
2842
2838
|
return null;
|
|
2843
2839
|
if (t)
|
|
@@ -2845,26 +2841,26 @@ function Hn(e, t) {
|
|
|
2845
2841
|
let n = e.offsetParent;
|
|
2846
2842
|
return ue(e) === n && (n = n.ownerDocument.body), n;
|
|
2847
2843
|
}
|
|
2848
|
-
function
|
|
2844
|
+
function kr(e, t) {
|
|
2849
2845
|
const n = te(e);
|
|
2850
|
-
if (
|
|
2846
|
+
if (At(e))
|
|
2851
2847
|
return n;
|
|
2852
2848
|
if (!le(e)) {
|
|
2853
|
-
let o =
|
|
2849
|
+
let o = be(e);
|
|
2854
2850
|
for (; o && !$e(o); ) {
|
|
2855
|
-
if (oe(o) && !
|
|
2851
|
+
if (oe(o) && !It(o))
|
|
2856
2852
|
return o;
|
|
2857
|
-
o =
|
|
2853
|
+
o = be(o);
|
|
2858
2854
|
}
|
|
2859
2855
|
return n;
|
|
2860
2856
|
}
|
|
2861
|
-
let r =
|
|
2862
|
-
for (; r && sa(r) &&
|
|
2863
|
-
r =
|
|
2864
|
-
return r && $e(r) &&
|
|
2857
|
+
let r = zn(e, t);
|
|
2858
|
+
for (; r && sa(r) && It(r); )
|
|
2859
|
+
r = zn(r, t);
|
|
2860
|
+
return r && $e(r) && It(r) && !fn(r) ? n : r || ca(e) || n;
|
|
2865
2861
|
}
|
|
2866
|
-
const
|
|
2867
|
-
const t = this.getOffsetParent ||
|
|
2862
|
+
const xa = async function(e) {
|
|
2863
|
+
const t = this.getOffsetParent || kr, n = this.getDimensions, r = await n(e.floating);
|
|
2868
2864
|
return {
|
|
2869
2865
|
reference: wa(e.reference, await t(e.floating), e.strategy),
|
|
2870
2866
|
floating: {
|
|
@@ -2875,21 +2871,24 @@ const ba = async function(e) {
|
|
|
2875
2871
|
}
|
|
2876
2872
|
};
|
|
2877
2873
|
};
|
|
2878
|
-
function
|
|
2874
|
+
function ba(e) {
|
|
2879
2875
|
return ie(e).direction === "rtl";
|
|
2880
2876
|
}
|
|
2881
2877
|
const Ca = {
|
|
2882
2878
|
convertOffsetParentRelativeRectToViewportRelativeRect: fa,
|
|
2883
2879
|
getDocumentElement: ue,
|
|
2884
2880
|
getClippingRect: ga,
|
|
2885
|
-
getOffsetParent:
|
|
2886
|
-
getElementRects:
|
|
2881
|
+
getOffsetParent: kr,
|
|
2882
|
+
getElementRects: xa,
|
|
2887
2883
|
getClientRects: da,
|
|
2888
2884
|
getDimensions: ya,
|
|
2889
2885
|
getScale: Fe,
|
|
2890
2886
|
isElement: oe,
|
|
2891
|
-
isRTL:
|
|
2887
|
+
isRTL: ba
|
|
2892
2888
|
};
|
|
2889
|
+
function jr(e, t) {
|
|
2890
|
+
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
2891
|
+
}
|
|
2893
2892
|
function Ea(e, t) {
|
|
2894
2893
|
let n = null, r;
|
|
2895
2894
|
const o = ue(e);
|
|
@@ -2899,38 +2898,38 @@ function Ea(e, t) {
|
|
|
2899
2898
|
}
|
|
2900
2899
|
function a(s, u) {
|
|
2901
2900
|
s === void 0 && (s = !1), u === void 0 && (u = 1), i();
|
|
2902
|
-
const {
|
|
2903
|
-
left:
|
|
2904
|
-
top:
|
|
2905
|
-
width:
|
|
2901
|
+
const l = e.getBoundingClientRect(), {
|
|
2902
|
+
left: f,
|
|
2903
|
+
top: p,
|
|
2904
|
+
width: m,
|
|
2906
2905
|
height: v
|
|
2907
|
-
} =
|
|
2908
|
-
if (s || t(), !
|
|
2906
|
+
} = l;
|
|
2907
|
+
if (s || t(), !m || !v)
|
|
2909
2908
|
return;
|
|
2910
|
-
const
|
|
2911
|
-
rootMargin: -
|
|
2909
|
+
const x = ct(p), h = ct(o.clientWidth - (f + m)), g = ct(o.clientHeight - (p + v)), w = ct(f), E = {
|
|
2910
|
+
rootMargin: -x + "px " + -h + "px " + -g + "px " + -w + "px",
|
|
2912
2911
|
threshold: ee(0, we(1, u)) || 1
|
|
2913
2912
|
};
|
|
2914
|
-
let
|
|
2915
|
-
function
|
|
2916
|
-
const
|
|
2917
|
-
if (
|
|
2918
|
-
if (!
|
|
2913
|
+
let R = !0;
|
|
2914
|
+
function A(_) {
|
|
2915
|
+
const S = _[0].intersectionRatio;
|
|
2916
|
+
if (S !== u) {
|
|
2917
|
+
if (!R)
|
|
2919
2918
|
return a();
|
|
2920
|
-
|
|
2919
|
+
S ? a(!1, S) : r = setTimeout(() => {
|
|
2921
2920
|
a(!1, 1e-7);
|
|
2922
2921
|
}, 1e3);
|
|
2923
2922
|
}
|
|
2924
|
-
|
|
2923
|
+
S === 1 && !jr(l, e.getBoundingClientRect()) && a(), R = !1;
|
|
2925
2924
|
}
|
|
2926
2925
|
try {
|
|
2927
|
-
n = new IntersectionObserver(
|
|
2928
|
-
...
|
|
2926
|
+
n = new IntersectionObserver(A, {
|
|
2927
|
+
...E,
|
|
2929
2928
|
// Handle <iframe>s
|
|
2930
2929
|
root: o.ownerDocument
|
|
2931
2930
|
});
|
|
2932
2931
|
} catch {
|
|
2933
|
-
n = new IntersectionObserver(
|
|
2932
|
+
n = new IntersectionObserver(A, E);
|
|
2934
2933
|
}
|
|
2935
2934
|
n.observe(e);
|
|
2936
2935
|
}
|
|
@@ -2944,35 +2943,35 @@ function Ra(e, t, n, r) {
|
|
|
2944
2943
|
elementResize: a = typeof ResizeObserver == "function",
|
|
2945
2944
|
layoutShift: s = typeof IntersectionObserver == "function",
|
|
2946
2945
|
animationFrame: u = !1
|
|
2947
|
-
} = r, l =
|
|
2946
|
+
} = r, l = pn(e), f = o || i ? [...l ? Je(l) : [], ...Je(t)] : [];
|
|
2948
2947
|
f.forEach((w) => {
|
|
2949
2948
|
o && w.addEventListener("scroll", n, {
|
|
2950
2949
|
passive: !0
|
|
2951
2950
|
}), i && w.addEventListener("resize", n);
|
|
2952
2951
|
});
|
|
2953
2952
|
const p = l && s ? Ea(l, n) : null;
|
|
2954
|
-
let
|
|
2955
|
-
a && (
|
|
2953
|
+
let m = -1, v = null;
|
|
2954
|
+
a && (v = new ResizeObserver((w) => {
|
|
2956
2955
|
let [b] = w;
|
|
2957
|
-
b && b.target === l &&
|
|
2956
|
+
b && b.target === l && v && (v.unobserve(t), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
|
|
2958
2957
|
var E;
|
|
2959
|
-
(E =
|
|
2958
|
+
(E = v) == null || E.observe(t);
|
|
2960
2959
|
})), n();
|
|
2961
|
-
}), l && !u &&
|
|
2960
|
+
}), l && !u && v.observe(l), v.observe(t));
|
|
2962
2961
|
let x, h = u ? _e(e) : null;
|
|
2963
2962
|
u && g();
|
|
2964
2963
|
function g() {
|
|
2965
2964
|
const w = _e(e);
|
|
2966
|
-
h && (
|
|
2965
|
+
h && !jr(h, w) && n(), h = w, x = requestAnimationFrame(g);
|
|
2967
2966
|
}
|
|
2968
2967
|
return n(), () => {
|
|
2969
2968
|
var w;
|
|
2970
2969
|
f.forEach((b) => {
|
|
2971
2970
|
o && b.removeEventListener("scroll", n), i && b.removeEventListener("resize", n);
|
|
2972
|
-
}), p == null || p(), (w =
|
|
2971
|
+
}), p == null || p(), (w = v) == null || w.disconnect(), v = null, u && cancelAnimationFrame(x);
|
|
2973
2972
|
};
|
|
2974
2973
|
}
|
|
2975
|
-
const
|
|
2974
|
+
const xc = We, Pa = ra, Aa = oa, Sa = ea, Oa = aa, _a = ta, Hn = Qi, Ta = ia, Na = (e, t, n) => {
|
|
2976
2975
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
2977
2976
|
platform: Ca,
|
|
2978
2977
|
...n
|
|
@@ -2985,7 +2984,7 @@ const bc = We, Pa = ra, Aa = oa, Sa = ea, Oa = aa, _a = ta, Un = Qi, Ta = ia, Na
|
|
|
2985
2984
|
platform: i
|
|
2986
2985
|
});
|
|
2987
2986
|
};
|
|
2988
|
-
var
|
|
2987
|
+
var pt = typeof document < "u" ? $o : Vo;
|
|
2989
2988
|
function xt(e, t) {
|
|
2990
2989
|
if (e === t)
|
|
2991
2990
|
return !0;
|
|
@@ -3019,13 +3018,13 @@ function xt(e, t) {
|
|
|
3019
3018
|
function Dr(e) {
|
|
3020
3019
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
3021
3020
|
}
|
|
3022
|
-
function
|
|
3021
|
+
function Un(e, t) {
|
|
3023
3022
|
const n = Dr(e);
|
|
3024
3023
|
return Math.round(t * n) / n;
|
|
3025
3024
|
}
|
|
3026
|
-
function
|
|
3025
|
+
function Lt(e) {
|
|
3027
3026
|
const t = d.useRef(e);
|
|
3028
|
-
return
|
|
3027
|
+
return pt(() => {
|
|
3029
3028
|
t.current = e;
|
|
3030
3029
|
}), t;
|
|
3031
3030
|
}
|
|
@@ -3050,19 +3049,19 @@ function ka(e) {
|
|
|
3050
3049
|
placement: t,
|
|
3051
3050
|
middlewareData: {},
|
|
3052
3051
|
isPositioned: !1
|
|
3053
|
-
}), [
|
|
3054
|
-
xt(
|
|
3052
|
+
}), [m, v] = d.useState(r);
|
|
3053
|
+
xt(m, r) || v(r);
|
|
3055
3054
|
const [x, h] = d.useState(null), [g, w] = d.useState(null), b = d.useCallback((N) => {
|
|
3056
3055
|
N !== _.current && (_.current = N, h(N));
|
|
3057
3056
|
}, []), E = d.useCallback((N) => {
|
|
3058
3057
|
N !== S.current && (S.current = N, w(N));
|
|
3059
|
-
}, []), R = i || x, A = a || g, _ = d.useRef(null), S = d.useRef(null), j = d.useRef(f), F = u != null, W =
|
|
3058
|
+
}, []), R = i || x, A = a || g, _ = d.useRef(null), S = d.useRef(null), j = d.useRef(f), F = u != null, W = Lt(u), G = Lt(o), K = Lt(l), I = d.useCallback(() => {
|
|
3060
3059
|
if (!_.current || !S.current)
|
|
3061
3060
|
return;
|
|
3062
3061
|
const N = {
|
|
3063
3062
|
placement: t,
|
|
3064
3063
|
strategy: n,
|
|
3065
|
-
middleware:
|
|
3064
|
+
middleware: m
|
|
3066
3065
|
};
|
|
3067
3066
|
G.current && (N.platform = G.current), Na(_.current, S.current, N).then((Y) => {
|
|
3068
3067
|
const Q = {
|
|
@@ -3073,27 +3072,27 @@ function ka(e) {
|
|
|
3073
3072
|
// setting it to `true` when `open === false` (must be specified).
|
|
3074
3073
|
isPositioned: K.current !== !1
|
|
3075
3074
|
};
|
|
3076
|
-
|
|
3075
|
+
M.current && !xt(j.current, Q) && (j.current = Q, rr.flushSync(() => {
|
|
3077
3076
|
p(Q);
|
|
3078
3077
|
}));
|
|
3079
3078
|
});
|
|
3080
|
-
}, [
|
|
3081
|
-
|
|
3079
|
+
}, [m, t, n, G, K]);
|
|
3080
|
+
pt(() => {
|
|
3082
3081
|
l === !1 && j.current.isPositioned && (j.current.isPositioned = !1, p((N) => ({
|
|
3083
3082
|
...N,
|
|
3084
3083
|
isPositioned: !1
|
|
3085
3084
|
})));
|
|
3086
3085
|
}, [l]);
|
|
3087
|
-
const
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
}), []),
|
|
3086
|
+
const M = d.useRef(!1);
|
|
3087
|
+
pt(() => (M.current = !0, () => {
|
|
3088
|
+
M.current = !1;
|
|
3089
|
+
}), []), pt(() => {
|
|
3091
3090
|
if (R && (_.current = R), A && (S.current = A), R && A) {
|
|
3092
3091
|
if (W.current)
|
|
3093
|
-
return W.current(R, A,
|
|
3094
|
-
|
|
3092
|
+
return W.current(R, A, I);
|
|
3093
|
+
I();
|
|
3095
3094
|
}
|
|
3096
|
-
}, [R, A,
|
|
3095
|
+
}, [R, A, I, W, F]);
|
|
3097
3096
|
const X = d.useMemo(() => ({
|
|
3098
3097
|
reference: _,
|
|
3099
3098
|
floating: S,
|
|
@@ -3110,7 +3109,7 @@ function ka(e) {
|
|
|
3110
3109
|
};
|
|
3111
3110
|
if (!$.floating)
|
|
3112
3111
|
return N;
|
|
3113
|
-
const Y =
|
|
3112
|
+
const Y = Un($.floating, f.x), Q = Un($.floating, f.y);
|
|
3114
3113
|
return s ? {
|
|
3115
3114
|
...N,
|
|
3116
3115
|
transform: "translate(" + Y + "px, " + Q + "px)",
|
|
@@ -3125,11 +3124,11 @@ function ka(e) {
|
|
|
3125
3124
|
}, [n, s, $.floating, f.x, f.y]);
|
|
3126
3125
|
return d.useMemo(() => ({
|
|
3127
3126
|
...f,
|
|
3128
|
-
update:
|
|
3127
|
+
update: I,
|
|
3129
3128
|
refs: X,
|
|
3130
3129
|
elements: $,
|
|
3131
3130
|
floatingStyles: V
|
|
3132
|
-
}), [f,
|
|
3131
|
+
}), [f, I, X, $, V]);
|
|
3133
3132
|
}
|
|
3134
3133
|
const ja = (e) => {
|
|
3135
3134
|
function t(n) {
|
|
@@ -3143,10 +3142,10 @@ const ja = (e) => {
|
|
|
3143
3142
|
element: r,
|
|
3144
3143
|
padding: o
|
|
3145
3144
|
} = typeof e == "function" ? e(n) : e;
|
|
3146
|
-
return r && t(r) ? r.current != null ?
|
|
3145
|
+
return r && t(r) ? r.current != null ? Hn({
|
|
3147
3146
|
element: r.current,
|
|
3148
3147
|
padding: o
|
|
3149
|
-
}).fn(n) : {} : r ?
|
|
3148
|
+
}).fn(n) : {} : r ? Hn({
|
|
3150
3149
|
element: r,
|
|
3151
3150
|
padding: o
|
|
3152
3151
|
}).fn(n) : {};
|
|
@@ -3213,11 +3212,11 @@ function za(e) {
|
|
|
3213
3212
|
n(void 0);
|
|
3214
3213
|
}, [e]), t;
|
|
3215
3214
|
}
|
|
3216
|
-
var
|
|
3215
|
+
var mn = "Popper", [Ir, Lr] = Ze(mn), [Ha, Fr] = Ir(mn), Br = (e) => {
|
|
3217
3216
|
const { __scopePopper: t, children: n } = e, [r, o] = d.useState(null);
|
|
3218
3217
|
return /* @__PURE__ */ y.jsx(Ha, { scope: t, anchor: r, onAnchorChange: o, children: n });
|
|
3219
3218
|
};
|
|
3220
|
-
Br.displayName =
|
|
3219
|
+
Br.displayName = mn;
|
|
3221
3220
|
var Wr = "PopperAnchor", $r = d.forwardRef(
|
|
3222
3221
|
(e, t) => {
|
|
3223
3222
|
const { __scopePopper: n, virtualRef: r, ...o } = e, i = Fr(Wr, n), a = d.useRef(null), s = re(t, a);
|
|
@@ -3227,9 +3226,9 @@ var Wr = "PopperAnchor", $r = d.forwardRef(
|
|
|
3227
3226
|
}
|
|
3228
3227
|
);
|
|
3229
3228
|
$r.displayName = Wr;
|
|
3230
|
-
var
|
|
3229
|
+
var vn = "PopperContent", [Ua, Ya] = Ir(vn), Vr = d.forwardRef(
|
|
3231
3230
|
(e, t) => {
|
|
3232
|
-
var Te, Re, Ne, Pe,
|
|
3231
|
+
var Te, Re, Ne, Pe, rt, Ke;
|
|
3233
3232
|
const {
|
|
3234
3233
|
__scopePopper: n,
|
|
3235
3234
|
side: r = "bottom",
|
|
@@ -3241,21 +3240,21 @@ var yn = "PopperContent", [Ua, Ya] = Ir(yn), Vr = d.forwardRef(
|
|
|
3241
3240
|
collisionBoundary: l = [],
|
|
3242
3241
|
collisionPadding: f = 0,
|
|
3243
3242
|
sticky: p = "partial",
|
|
3244
|
-
hideWhenDetached:
|
|
3245
|
-
updatePositionStrategy:
|
|
3243
|
+
hideWhenDetached: m = !1,
|
|
3244
|
+
updatePositionStrategy: v = "optimized",
|
|
3246
3245
|
onPlaced: x,
|
|
3247
3246
|
...h
|
|
3248
|
-
} = e, g = Fr(
|
|
3247
|
+
} = e, g = Fr(vn, n), [w, b] = d.useState(null), E = re(t, (Ae) => b(Ae)), [R, A] = d.useState(null), _ = za(R), S = (_ == null ? void 0 : _.width) ?? 0, j = (_ == null ? void 0 : _.height) ?? 0, F = r + (i !== "center" ? "-" + i : ""), W = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, G = Array.isArray(l) ? l : [l], K = G.length > 0, I = {
|
|
3249
3248
|
padding: W,
|
|
3250
3249
|
boundary: G.filter(Xa),
|
|
3251
3250
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
3252
3251
|
altBoundary: K
|
|
3253
|
-
}, { refs:
|
|
3252
|
+
}, { refs: M, floatingStyles: X, placement: $, isPositioned: V, middlewareData: N } = ka({
|
|
3254
3253
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
3255
3254
|
strategy: "fixed",
|
|
3256
3255
|
placement: F,
|
|
3257
3256
|
whileElementsMounted: (...Ae) => Ra(...Ae, {
|
|
3258
|
-
animationFrame:
|
|
3257
|
+
animationFrame: v === "always"
|
|
3259
3258
|
}),
|
|
3260
3259
|
elements: {
|
|
3261
3260
|
reference: g.anchor
|
|
@@ -3266,41 +3265,41 @@ var yn = "PopperContent", [Ua, Ya] = Ir(yn), Vr = d.forwardRef(
|
|
|
3266
3265
|
mainAxis: !0,
|
|
3267
3266
|
crossAxis: !1,
|
|
3268
3267
|
limiter: p === "partial" ? Ia() : void 0,
|
|
3269
|
-
...
|
|
3268
|
+
...I
|
|
3270
3269
|
}),
|
|
3271
|
-
u && La({ ...
|
|
3270
|
+
u && La({ ...I }),
|
|
3272
3271
|
Fa({
|
|
3273
|
-
...
|
|
3274
|
-
apply: ({ elements: Ae, rects:
|
|
3275
|
-
const { width:
|
|
3276
|
-
fe.setProperty("--radix-popper-available-width", `${ke}px`), fe.setProperty("--radix-popper-available-height", `${Se}px`), fe.setProperty("--radix-popper-anchor-width", `${
|
|
3272
|
+
...I,
|
|
3273
|
+
apply: ({ elements: Ae, rects: ot, availableWidth: ke, availableHeight: Se }) => {
|
|
3274
|
+
const { width: it, height: at } = ot.reference, fe = Ae.floating.style;
|
|
3275
|
+
fe.setProperty("--radix-popper-available-width", `${ke}px`), fe.setProperty("--radix-popper-available-height", `${Se}px`), fe.setProperty("--radix-popper-anchor-width", `${it}px`), fe.setProperty("--radix-popper-anchor-height", `${at}px`);
|
|
3277
3276
|
}
|
|
3278
3277
|
}),
|
|
3279
3278
|
R && Wa({ element: R, padding: s }),
|
|
3280
3279
|
Ga({ arrowWidth: S, arrowHeight: j }),
|
|
3281
|
-
|
|
3280
|
+
m && Ba({ strategy: "referenceHidden", ...I })
|
|
3282
3281
|
]
|
|
3283
3282
|
}), [Y, Q] = Ur($), Ee = ge(x);
|
|
3284
3283
|
ye(() => {
|
|
3285
3284
|
V && (Ee == null || Ee());
|
|
3286
3285
|
}, [V, Ee]);
|
|
3287
|
-
const
|
|
3286
|
+
const tt = (Te = N.arrow) == null ? void 0 : Te.x, nt = (Re = N.arrow) == null ? void 0 : Re.y, _t = ((Ne = N.arrow) == null ? void 0 : Ne.centerOffset) !== 0, [Tt, Ye] = d.useState();
|
|
3288
3287
|
return ye(() => {
|
|
3289
3288
|
w && Ye(window.getComputedStyle(w).zIndex);
|
|
3290
3289
|
}, [w]), /* @__PURE__ */ y.jsx(
|
|
3291
3290
|
"div",
|
|
3292
3291
|
{
|
|
3293
|
-
ref:
|
|
3292
|
+
ref: M.setFloating,
|
|
3294
3293
|
"data-radix-popper-content-wrapper": "",
|
|
3295
3294
|
style: {
|
|
3296
3295
|
...X,
|
|
3297
3296
|
transform: V ? X.transform : "translate(0, -200%)",
|
|
3298
3297
|
// keep off the page when measuring
|
|
3299
3298
|
minWidth: "max-content",
|
|
3300
|
-
zIndex:
|
|
3299
|
+
zIndex: Tt,
|
|
3301
3300
|
"--radix-popper-transform-origin": [
|
|
3302
3301
|
(Pe = N.transformOrigin) == null ? void 0 : Pe.x,
|
|
3303
|
-
(
|
|
3302
|
+
(rt = N.transformOrigin) == null ? void 0 : rt.y
|
|
3304
3303
|
].join(" "),
|
|
3305
3304
|
// hide the content if using the hide middleware and should be hidden
|
|
3306
3305
|
// set visibility to hidden and disable pointer events so the UI behaves
|
|
@@ -3317,9 +3316,9 @@ var yn = "PopperContent", [Ua, Ya] = Ir(yn), Vr = d.forwardRef(
|
|
|
3317
3316
|
scope: n,
|
|
3318
3317
|
placedSide: Y,
|
|
3319
3318
|
onArrowChange: A,
|
|
3320
|
-
arrowX:
|
|
3321
|
-
arrowY:
|
|
3322
|
-
shouldHideArrow:
|
|
3319
|
+
arrowX: tt,
|
|
3320
|
+
arrowY: nt,
|
|
3321
|
+
shouldHideArrow: _t,
|
|
3323
3322
|
children: /* @__PURE__ */ y.jsx(
|
|
3324
3323
|
Z.div,
|
|
3325
3324
|
{
|
|
@@ -3341,7 +3340,7 @@ var yn = "PopperContent", [Ua, Ya] = Ir(yn), Vr = d.forwardRef(
|
|
|
3341
3340
|
);
|
|
3342
3341
|
}
|
|
3343
3342
|
);
|
|
3344
|
-
Vr.displayName =
|
|
3343
|
+
Vr.displayName = vn;
|
|
3345
3344
|
var zr = "PopperArrow", Ka = {
|
|
3346
3345
|
top: "bottom",
|
|
3347
3346
|
right: "left",
|
|
@@ -3401,9 +3400,9 @@ var Ga = (e) => ({
|
|
|
3401
3400
|
options: e,
|
|
3402
3401
|
fn(t) {
|
|
3403
3402
|
var g, w, b;
|
|
3404
|
-
const { placement: n, rects: r, middlewareData: o } = t, a = ((g = o.arrow) == null ? void 0 : g.centerOffset) !== 0, s = a ? 0 : e.arrowWidth, u = a ? 0 : e.arrowHeight, [l, f] = Ur(n), p = { start: "0%", center: "50%", end: "100%" }[f],
|
|
3403
|
+
const { placement: n, rects: r, middlewareData: o } = t, a = ((g = o.arrow) == null ? void 0 : g.centerOffset) !== 0, s = a ? 0 : e.arrowWidth, u = a ? 0 : e.arrowHeight, [l, f] = Ur(n), p = { start: "0%", center: "50%", end: "100%" }[f], m = (((w = o.arrow) == null ? void 0 : w.x) ?? 0) + s / 2, v = (((b = o.arrow) == null ? void 0 : b.y) ?? 0) + u / 2;
|
|
3405
3404
|
let x = "", h = "";
|
|
3406
|
-
return l === "bottom" ? (x = a ? p : `${
|
|
3405
|
+
return l === "bottom" ? (x = a ? p : `${m}px`, h = `${-u}px`) : l === "top" ? (x = a ? p : `${m}px`, h = `${r.floating.height + u}px`) : l === "right" ? (x = `${-u}px`, h = a ? p : `${v}px`) : l === "left" && (x = `${r.floating.width + u}px`, h = a ? p : `${v}px`), { data: { x, y: h } };
|
|
3407
3406
|
}
|
|
3408
3407
|
});
|
|
3409
3408
|
function Ur(e) {
|
|
@@ -3418,27 +3417,27 @@ var qa = Br, Yr = $r, Ja = Vr, Za = Hr, Qa = "Portal", Kr = d.forwardRef((e, t)
|
|
|
3418
3417
|
return a ? Ho.createPortal(/* @__PURE__ */ y.jsx(Z.div, { ...r, ref: t }), a) : null;
|
|
3419
3418
|
});
|
|
3420
3419
|
Kr.displayName = Qa;
|
|
3421
|
-
var
|
|
3420
|
+
var Ft = 0;
|
|
3422
3421
|
function es() {
|
|
3423
3422
|
d.useEffect(() => {
|
|
3424
3423
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
3425
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ??
|
|
3426
|
-
|
|
3424
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? Yn()), document.body.insertAdjacentElement("beforeend", e[1] ?? Yn()), Ft++, () => {
|
|
3425
|
+
Ft === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), Ft--;
|
|
3427
3426
|
};
|
|
3428
3427
|
}, []);
|
|
3429
3428
|
}
|
|
3430
|
-
function
|
|
3429
|
+
function Yn() {
|
|
3431
3430
|
const e = document.createElement("span");
|
|
3432
3431
|
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;
|
|
3433
3432
|
}
|
|
3434
|
-
var
|
|
3433
|
+
var Bt = "focusScope.autoFocusOnMount", Wt = "focusScope.autoFocusOnUnmount", Kn = { bubbles: !1, cancelable: !0 }, ts = "FocusScope", Xr = d.forwardRef((e, t) => {
|
|
3435
3434
|
const {
|
|
3436
3435
|
loop: n = !1,
|
|
3437
3436
|
trapped: r = !1,
|
|
3438
3437
|
onMountAutoFocus: o,
|
|
3439
3438
|
onUnmountAutoFocus: i,
|
|
3440
3439
|
...a
|
|
3441
|
-
} = e, [s, u] = d.useState(null), l = ge(o), f = ge(i), p = d.useRef(null),
|
|
3440
|
+
} = e, [s, u] = d.useState(null), l = ge(o), f = ge(i), p = d.useRef(null), m = re(t, (h) => u(h)), v = d.useRef({
|
|
3442
3441
|
paused: !1,
|
|
3443
3442
|
pause() {
|
|
3444
3443
|
this.paused = !0;
|
|
@@ -3450,17 +3449,17 @@ var $t = "focusScope.autoFocusOnMount", Vt = "focusScope.autoFocusOnUnmount", Xn
|
|
|
3450
3449
|
d.useEffect(() => {
|
|
3451
3450
|
if (r) {
|
|
3452
3451
|
let h = function(E) {
|
|
3453
|
-
if (
|
|
3452
|
+
if (v.paused || !s) return;
|
|
3454
3453
|
const R = E.target;
|
|
3455
|
-
s.contains(R) ? p.current = R :
|
|
3454
|
+
s.contains(R) ? p.current = R : ve(p.current, { select: !0 });
|
|
3456
3455
|
}, g = function(E) {
|
|
3457
|
-
if (
|
|
3456
|
+
if (v.paused || !s) return;
|
|
3458
3457
|
const R = E.relatedTarget;
|
|
3459
|
-
R !== null && (s.contains(R) ||
|
|
3458
|
+
R !== null && (s.contains(R) || ve(p.current, { select: !0 }));
|
|
3460
3459
|
}, w = function(E) {
|
|
3461
3460
|
if (document.activeElement === document.body)
|
|
3462
3461
|
for (const A of E)
|
|
3463
|
-
A.removedNodes.length > 0 &&
|
|
3462
|
+
A.removedNodes.length > 0 && ve(s);
|
|
3464
3463
|
};
|
|
3465
3464
|
document.addEventListener("focusin", h), document.addEventListener("focusout", g);
|
|
3466
3465
|
const b = new MutationObserver(w);
|
|
@@ -3468,43 +3467,43 @@ var $t = "focusScope.autoFocusOnMount", Vt = "focusScope.autoFocusOnUnmount", Xn
|
|
|
3468
3467
|
document.removeEventListener("focusin", h), document.removeEventListener("focusout", g), b.disconnect();
|
|
3469
3468
|
};
|
|
3470
3469
|
}
|
|
3471
|
-
}, [r, s,
|
|
3470
|
+
}, [r, s, v.paused]), d.useEffect(() => {
|
|
3472
3471
|
if (s) {
|
|
3473
|
-
|
|
3472
|
+
Gn.add(v);
|
|
3474
3473
|
const h = document.activeElement;
|
|
3475
3474
|
if (!s.contains(h)) {
|
|
3476
|
-
const w = new CustomEvent(
|
|
3477
|
-
s.addEventListener(
|
|
3475
|
+
const w = new CustomEvent(Bt, Kn);
|
|
3476
|
+
s.addEventListener(Bt, l), s.dispatchEvent(w), w.defaultPrevented || (ns(ss(Gr(s)), { select: !0 }), document.activeElement === h && ve(s));
|
|
3478
3477
|
}
|
|
3479
3478
|
return () => {
|
|
3480
|
-
s.removeEventListener(
|
|
3481
|
-
const w = new CustomEvent(
|
|
3482
|
-
s.addEventListener(
|
|
3479
|
+
s.removeEventListener(Bt, l), setTimeout(() => {
|
|
3480
|
+
const w = new CustomEvent(Wt, Kn);
|
|
3481
|
+
s.addEventListener(Wt, f), s.dispatchEvent(w), w.defaultPrevented || ve(h ?? document.body, { select: !0 }), s.removeEventListener(Wt, f), Gn.remove(v);
|
|
3483
3482
|
}, 0);
|
|
3484
3483
|
};
|
|
3485
3484
|
}
|
|
3486
|
-
}, [s, l, f,
|
|
3485
|
+
}, [s, l, f, v]);
|
|
3487
3486
|
const x = d.useCallback(
|
|
3488
3487
|
(h) => {
|
|
3489
|
-
if (!n && !r ||
|
|
3488
|
+
if (!n && !r || v.paused) return;
|
|
3490
3489
|
const g = h.key === "Tab" && !h.altKey && !h.ctrlKey && !h.metaKey, w = document.activeElement;
|
|
3491
3490
|
if (g && w) {
|
|
3492
3491
|
const b = h.currentTarget, [E, R] = rs(b);
|
|
3493
|
-
E && R ? !h.shiftKey && w === R ? (h.preventDefault(), n &&
|
|
3492
|
+
E && R ? !h.shiftKey && w === R ? (h.preventDefault(), n && ve(E, { select: !0 })) : h.shiftKey && w === E && (h.preventDefault(), n && ve(R, { select: !0 })) : w === b && h.preventDefault();
|
|
3494
3493
|
}
|
|
3495
3494
|
},
|
|
3496
|
-
[n, r,
|
|
3495
|
+
[n, r, v.paused]
|
|
3497
3496
|
);
|
|
3498
|
-
return /* @__PURE__ */ y.jsx(Z.div, { tabIndex: -1, ...a, ref:
|
|
3497
|
+
return /* @__PURE__ */ y.jsx(Z.div, { tabIndex: -1, ...a, ref: m, onKeyDown: x });
|
|
3499
3498
|
});
|
|
3500
3499
|
Xr.displayName = ts;
|
|
3501
3500
|
function ns(e, { select: t = !1 } = {}) {
|
|
3502
3501
|
const n = document.activeElement;
|
|
3503
3502
|
for (const r of e)
|
|
3504
|
-
if (
|
|
3503
|
+
if (ve(r, { select: t }), document.activeElement !== n) return;
|
|
3505
3504
|
}
|
|
3506
3505
|
function rs(e) {
|
|
3507
|
-
const t = Gr(e), n =
|
|
3506
|
+
const t = Gr(e), n = Xn(t, e), r = Xn(t.reverse(), e);
|
|
3508
3507
|
return [n, r];
|
|
3509
3508
|
}
|
|
3510
3509
|
function Gr(e) {
|
|
@@ -3517,7 +3516,7 @@ function Gr(e) {
|
|
|
3517
3516
|
for (; n.nextNode(); ) t.push(n.currentNode);
|
|
3518
3517
|
return t;
|
|
3519
3518
|
}
|
|
3520
|
-
function
|
|
3519
|
+
function Xn(e, t) {
|
|
3521
3520
|
for (const n of e)
|
|
3522
3521
|
if (!os(n, { upTo: t })) return n;
|
|
3523
3522
|
}
|
|
@@ -3533,27 +3532,27 @@ function os(e, { upTo: t }) {
|
|
|
3533
3532
|
function is(e) {
|
|
3534
3533
|
return e instanceof HTMLInputElement && "select" in e;
|
|
3535
3534
|
}
|
|
3536
|
-
function
|
|
3535
|
+
function ve(e, { select: t = !1 } = {}) {
|
|
3537
3536
|
if (e && e.focus) {
|
|
3538
3537
|
const n = document.activeElement;
|
|
3539
3538
|
e.focus({ preventScroll: !0 }), e !== n && is(e) && t && e.select();
|
|
3540
3539
|
}
|
|
3541
3540
|
}
|
|
3542
|
-
var
|
|
3541
|
+
var Gn = as();
|
|
3543
3542
|
function as() {
|
|
3544
3543
|
let e = [];
|
|
3545
3544
|
return {
|
|
3546
3545
|
add(t) {
|
|
3547
3546
|
const n = e[0];
|
|
3548
|
-
t !== n && (n == null || n.pause()), e =
|
|
3547
|
+
t !== n && (n == null || n.pause()), e = qn(e, t), e.unshift(t);
|
|
3549
3548
|
},
|
|
3550
3549
|
remove(t) {
|
|
3551
3550
|
var n;
|
|
3552
|
-
e =
|
|
3551
|
+
e = qn(e, t), (n = e[0]) == null || n.resume();
|
|
3553
3552
|
}
|
|
3554
3553
|
};
|
|
3555
3554
|
}
|
|
3556
|
-
function
|
|
3555
|
+
function qn(e, t) {
|
|
3557
3556
|
const n = [...e], r = n.indexOf(t);
|
|
3558
3557
|
return r !== -1 && n.splice(r, 1), n;
|
|
3559
3558
|
}
|
|
@@ -3565,7 +3564,7 @@ var cs = function(e) {
|
|
|
3565
3564
|
return null;
|
|
3566
3565
|
var t = Array.isArray(e) ? e[0] : e;
|
|
3567
3566
|
return t.ownerDocument.body;
|
|
3568
|
-
}, Me = /* @__PURE__ */ new WeakMap(),
|
|
3567
|
+
}, Me = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap(), ut = {}, $t = 0, qr = function(e) {
|
|
3569
3568
|
return e && (e.host || qr(e.parentNode));
|
|
3570
3569
|
}, ls = function(e, t) {
|
|
3571
3570
|
return t.map(function(n) {
|
|
@@ -3578,29 +3577,29 @@ var cs = function(e) {
|
|
|
3578
3577
|
});
|
|
3579
3578
|
}, us = function(e, t, n, r) {
|
|
3580
3579
|
var o = ls(t, Array.isArray(e) ? e : [e]);
|
|
3581
|
-
|
|
3582
|
-
var i =
|
|
3580
|
+
ut[n] || (ut[n] = /* @__PURE__ */ new WeakMap());
|
|
3581
|
+
var i = ut[n], a = [], s = /* @__PURE__ */ new Set(), u = new Set(o), l = function(p) {
|
|
3583
3582
|
!p || s.has(p) || (s.add(p), l(p.parentNode));
|
|
3584
3583
|
};
|
|
3585
3584
|
o.forEach(l);
|
|
3586
3585
|
var f = function(p) {
|
|
3587
|
-
!p || u.has(p) || Array.prototype.forEach.call(p.children, function(
|
|
3588
|
-
if (s.has(
|
|
3589
|
-
f(
|
|
3586
|
+
!p || u.has(p) || Array.prototype.forEach.call(p.children, function(m) {
|
|
3587
|
+
if (s.has(m))
|
|
3588
|
+
f(m);
|
|
3590
3589
|
else
|
|
3591
3590
|
try {
|
|
3592
|
-
var
|
|
3593
|
-
Me.set(
|
|
3591
|
+
var v = m.getAttribute(r), x = v !== null && v !== "false", h = (Me.get(m) || 0) + 1, g = (i.get(m) || 0) + 1;
|
|
3592
|
+
Me.set(m, h), i.set(m, g), a.push(m), h === 1 && x && lt.set(m, !0), g === 1 && m.setAttribute(n, "true"), x || m.setAttribute(r, "true");
|
|
3594
3593
|
} catch (w) {
|
|
3595
|
-
console.error("aria-hidden: cannot operate on ",
|
|
3594
|
+
console.error("aria-hidden: cannot operate on ", m, w);
|
|
3596
3595
|
}
|
|
3597
3596
|
});
|
|
3598
3597
|
};
|
|
3599
|
-
return f(t), s.clear(),
|
|
3598
|
+
return f(t), s.clear(), $t++, function() {
|
|
3600
3599
|
a.forEach(function(p) {
|
|
3601
|
-
var
|
|
3602
|
-
Me.set(p,
|
|
3603
|
-
}),
|
|
3600
|
+
var m = Me.get(p) - 1, v = i.get(p) - 1;
|
|
3601
|
+
Me.set(p, m), i.set(p, v), m || (lt.has(p) || p.removeAttribute(r), lt.delete(p)), v || p.removeAttribute(n);
|
|
3602
|
+
}), $t--, $t || (Me = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap(), ut = {});
|
|
3604
3603
|
};
|
|
3605
3604
|
}, fs = function(e, t, n) {
|
|
3606
3605
|
n === void 0 && (n = "data-aria-hidden");
|
|
@@ -3625,7 +3624,7 @@ function Jr(e, t) {
|
|
|
3625
3624
|
t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
|
|
3626
3625
|
return n;
|
|
3627
3626
|
}
|
|
3628
|
-
function
|
|
3627
|
+
function bc(e, t, n, r) {
|
|
3629
3628
|
function o(i) {
|
|
3630
3629
|
return i instanceof n ? i : new n(function(a) {
|
|
3631
3630
|
a(i);
|
|
@@ -3657,11 +3656,11 @@ function ds(e, t, n) {
|
|
|
3657
3656
|
(i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
|
|
3658
3657
|
return e.concat(i || Array.prototype.slice.call(t));
|
|
3659
3658
|
}
|
|
3660
|
-
var
|
|
3661
|
-
function
|
|
3659
|
+
var ht = "right-scroll-bar-position", mt = "width-before-scroll-bar", ps = "with-scroll-bars-hidden", hs = "--removed-body-scroll-bar-size";
|
|
3660
|
+
function Vt(e, t) {
|
|
3662
3661
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
3663
3662
|
}
|
|
3664
|
-
function
|
|
3663
|
+
function ms(e, t) {
|
|
3665
3664
|
var n = zo(function() {
|
|
3666
3665
|
return {
|
|
3667
3666
|
// value
|
|
@@ -3682,24 +3681,24 @@ function vs(e, t) {
|
|
|
3682
3681
|
})[0];
|
|
3683
3682
|
return n.callback = t, n.facade;
|
|
3684
3683
|
}
|
|
3685
|
-
var
|
|
3684
|
+
var vs = typeof window < "u" ? d.useLayoutEffect : d.useEffect, Jn = /* @__PURE__ */ new WeakMap();
|
|
3686
3685
|
function gs(e, t) {
|
|
3687
|
-
var n =
|
|
3686
|
+
var n = ms(null, function(r) {
|
|
3688
3687
|
return e.forEach(function(o) {
|
|
3689
|
-
return
|
|
3688
|
+
return Vt(o, r);
|
|
3690
3689
|
});
|
|
3691
3690
|
});
|
|
3692
|
-
return
|
|
3693
|
-
var r =
|
|
3691
|
+
return vs(function() {
|
|
3692
|
+
var r = Jn.get(n);
|
|
3694
3693
|
if (r) {
|
|
3695
3694
|
var o = new Set(r), i = new Set(e), a = n.current;
|
|
3696
3695
|
o.forEach(function(s) {
|
|
3697
|
-
i.has(s) ||
|
|
3696
|
+
i.has(s) || Vt(s, null);
|
|
3698
3697
|
}), i.forEach(function(s) {
|
|
3699
|
-
o.has(s) ||
|
|
3698
|
+
o.has(s) || Vt(s, a);
|
|
3700
3699
|
});
|
|
3701
3700
|
}
|
|
3702
|
-
|
|
3701
|
+
Jn.set(n, e);
|
|
3703
3702
|
}, [e]), n;
|
|
3704
3703
|
}
|
|
3705
3704
|
function ys(e) {
|
|
@@ -3760,7 +3759,7 @@ function ws(e, t) {
|
|
|
3760
3759
|
};
|
|
3761
3760
|
return o;
|
|
3762
3761
|
}
|
|
3763
|
-
function
|
|
3762
|
+
function xs(e) {
|
|
3764
3763
|
e === void 0 && (e = {});
|
|
3765
3764
|
var t = ws(null);
|
|
3766
3765
|
return t.options = ae({ async: !0, ssr: !1 }, e), t;
|
|
@@ -3775,31 +3774,31 @@ var Zr = function(e) {
|
|
|
3775
3774
|
return d.createElement(r, ae({}, n));
|
|
3776
3775
|
};
|
|
3777
3776
|
Zr.isSideCarExport = !0;
|
|
3778
|
-
function
|
|
3777
|
+
function bs(e, t) {
|
|
3779
3778
|
return e.useMedium(t), Zr;
|
|
3780
3779
|
}
|
|
3781
|
-
var Qr =
|
|
3782
|
-
},
|
|
3780
|
+
var Qr = xs(), zt = function() {
|
|
3781
|
+
}, Ot = d.forwardRef(function(e, t) {
|
|
3783
3782
|
var n = d.useRef(null), r = d.useState({
|
|
3784
|
-
onScrollCapture:
|
|
3785
|
-
onWheelCapture:
|
|
3786
|
-
onTouchMoveCapture:
|
|
3787
|
-
}), o = r[0], i = r[1], a = e.forwardProps, s = e.children, u = e.className, l = e.removeScrollBar, f = e.enabled, p = e.shards,
|
|
3783
|
+
onScrollCapture: zt,
|
|
3784
|
+
onWheelCapture: zt,
|
|
3785
|
+
onTouchMoveCapture: zt
|
|
3786
|
+
}), o = r[0], i = r[1], a = e.forwardProps, s = e.children, u = e.className, l = e.removeScrollBar, f = e.enabled, p = e.shards, m = e.sideCar, v = e.noIsolation, x = e.inert, h = e.allowPinchZoom, g = e.as, w = g === void 0 ? "div" : g, b = e.gapMode, E = Jr(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), R = m, A = gs([n, t]), _ = ae(ae({}, E), o);
|
|
3788
3787
|
return d.createElement(
|
|
3789
3788
|
d.Fragment,
|
|
3790
3789
|
null,
|
|
3791
|
-
f && d.createElement(R, { sideCar: Qr, removeScrollBar: l, shards: p, noIsolation:
|
|
3790
|
+
f && d.createElement(R, { sideCar: Qr, removeScrollBar: l, shards: p, noIsolation: v, inert: x, setCallbacks: i, allowPinchZoom: !!h, lockRef: n, gapMode: b }),
|
|
3792
3791
|
a ? d.cloneElement(d.Children.only(s), ae(ae({}, _), { ref: A })) : d.createElement(w, ae({}, _, { className: u, ref: A }), s)
|
|
3793
3792
|
);
|
|
3794
3793
|
});
|
|
3795
|
-
|
|
3794
|
+
Ot.defaultProps = {
|
|
3796
3795
|
enabled: !0,
|
|
3797
3796
|
removeScrollBar: !0,
|
|
3798
3797
|
inert: !1
|
|
3799
3798
|
};
|
|
3800
|
-
|
|
3799
|
+
Ot.classNames = {
|
|
3801
3800
|
fullWidth: mt,
|
|
3802
|
-
zeroRight:
|
|
3801
|
+
zeroRight: ht
|
|
3803
3802
|
};
|
|
3804
3803
|
var Cs = function() {
|
|
3805
3804
|
if (typeof __webpack_nonce__ < "u")
|
|
@@ -3850,11 +3849,11 @@ var As = function() {
|
|
|
3850
3849
|
top: 0,
|
|
3851
3850
|
right: 0,
|
|
3852
3851
|
gap: 0
|
|
3853
|
-
},
|
|
3852
|
+
}, Ht = function(e) {
|
|
3854
3853
|
return parseInt(e || "", 10) || 0;
|
|
3855
3854
|
}, _s = function(e) {
|
|
3856
3855
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
3857
|
-
return [
|
|
3856
|
+
return [Ht(n), Ht(r), Ht(o)];
|
|
3858
3857
|
}, Ts = function(e) {
|
|
3859
3858
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
3860
3859
|
return Os;
|
|
@@ -3889,7 +3888,7 @@ var As = function() {
|
|
|
3889
3888
|
].filter(Boolean).join(""), `
|
|
3890
3889
|
}
|
|
3891
3890
|
|
|
3892
|
-
.`).concat(
|
|
3891
|
+
.`).concat(ht, ` {
|
|
3893
3892
|
right: `).concat(s, "px ").concat(r, `;
|
|
3894
3893
|
}
|
|
3895
3894
|
|
|
@@ -3897,7 +3896,7 @@ var As = function() {
|
|
|
3897
3896
|
margin-right: `).concat(s, "px ").concat(r, `;
|
|
3898
3897
|
}
|
|
3899
3898
|
|
|
3900
|
-
.`).concat(
|
|
3899
|
+
.`).concat(ht, " .").concat(ht, ` {
|
|
3901
3900
|
right: 0 `).concat(r, `;
|
|
3902
3901
|
}
|
|
3903
3902
|
|
|
@@ -3909,13 +3908,13 @@ var As = function() {
|
|
|
3909
3908
|
`).concat(hs, ": ").concat(s, `px;
|
|
3910
3909
|
}
|
|
3911
3910
|
`);
|
|
3912
|
-
},
|
|
3911
|
+
}, Zn = function() {
|
|
3913
3912
|
var e = parseInt(document.body.getAttribute(Be) || "0", 10);
|
|
3914
3913
|
return isFinite(e) ? e : 0;
|
|
3915
3914
|
}, js = function() {
|
|
3916
3915
|
d.useEffect(function() {
|
|
3917
|
-
return document.body.setAttribute(Be, (
|
|
3918
|
-
var e =
|
|
3916
|
+
return document.body.setAttribute(Be, (Zn() + 1).toString()), function() {
|
|
3917
|
+
var e = Zn() - 1;
|
|
3919
3918
|
e <= 0 ? document.body.removeAttribute(Be) : document.body.setAttribute(Be, e.toString());
|
|
3920
3919
|
};
|
|
3921
3920
|
}, []);
|
|
@@ -3926,19 +3925,19 @@ var As = function() {
|
|
|
3926
3925
|
return Ts(o);
|
|
3927
3926
|
}, [o]);
|
|
3928
3927
|
return d.createElement(Ns, { styles: ks(i, !t, o, n ? "" : "!important") });
|
|
3929
|
-
},
|
|
3928
|
+
}, Zt = !1;
|
|
3930
3929
|
if (typeof window < "u")
|
|
3931
3930
|
try {
|
|
3932
|
-
var
|
|
3931
|
+
var ft = Object.defineProperty({}, "passive", {
|
|
3933
3932
|
get: function() {
|
|
3934
|
-
return
|
|
3933
|
+
return Zt = !0, !0;
|
|
3935
3934
|
}
|
|
3936
3935
|
});
|
|
3937
|
-
window.addEventListener("test",
|
|
3936
|
+
window.addEventListener("test", ft, ft), window.removeEventListener("test", ft, ft);
|
|
3938
3937
|
} catch {
|
|
3939
|
-
|
|
3938
|
+
Zt = !1;
|
|
3940
3939
|
}
|
|
3941
|
-
var Ie =
|
|
3940
|
+
var Ie = Zt ? { passive: !1 } : !1, Ms = function(e) {
|
|
3942
3941
|
return e.tagName === "TEXTAREA";
|
|
3943
3942
|
}, to = function(e, t) {
|
|
3944
3943
|
if (!(e instanceof Element))
|
|
@@ -3953,7 +3952,7 @@ var Ie = en ? { passive: !1 } : !1, Ms = function(e) {
|
|
|
3953
3952
|
return to(e, "overflowY");
|
|
3954
3953
|
}, Ls = function(e) {
|
|
3955
3954
|
return to(e, "overflowX");
|
|
3956
|
-
},
|
|
3955
|
+
}, Qn = function(e, t) {
|
|
3957
3956
|
var n = t.ownerDocument, r = t;
|
|
3958
3957
|
do {
|
|
3959
3958
|
typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
|
|
@@ -3987,21 +3986,21 @@ var Ie = en ? { passive: !1 } : !1, Ms = function(e) {
|
|
|
3987
3986
|
}, Ws = function(e, t) {
|
|
3988
3987
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
3989
3988
|
}, $s = function(e, t, n, r, o) {
|
|
3990
|
-
var i = Ws(e, window.getComputedStyle(t).direction), a = i * r, s = n.target, u = t.contains(s), l = !1, f = a > 0, p = 0,
|
|
3989
|
+
var i = Ws(e, window.getComputedStyle(t).direction), a = i * r, s = n.target, u = t.contains(s), l = !1, f = a > 0, p = 0, m = 0;
|
|
3991
3990
|
do {
|
|
3992
|
-
var
|
|
3993
|
-
(x || w) && no(e, s) && (p += w,
|
|
3991
|
+
var v = ro(e, s), x = v[0], h = v[1], g = v[2], w = h - g - i * x;
|
|
3992
|
+
(x || w) && no(e, s) && (p += w, m += x), s instanceof ShadowRoot ? s = s.host : s = s.parentNode;
|
|
3994
3993
|
} while (
|
|
3995
3994
|
// portaled content
|
|
3996
3995
|
!u && s !== document.body || // self content
|
|
3997
3996
|
u && (t.contains(s) || t === s)
|
|
3998
3997
|
);
|
|
3999
|
-
return (f &&
|
|
4000
|
-
},
|
|
3998
|
+
return (f && Math.abs(p) < 1 || !f && Math.abs(m) < 1) && (l = !0), l;
|
|
3999
|
+
}, dt = function(e) {
|
|
4001
4000
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
4002
|
-
},
|
|
4001
|
+
}, er = function(e) {
|
|
4003
4002
|
return [e.deltaX, e.deltaY];
|
|
4004
|
-
},
|
|
4003
|
+
}, tr = function(e) {
|
|
4005
4004
|
return e && "current" in e ? e.current : e;
|
|
4006
4005
|
}, Vs = function(e, t) {
|
|
4007
4006
|
return e[0] === t[0] && e[1] === t[1];
|
|
@@ -4018,7 +4017,7 @@ function Us(e) {
|
|
|
4018
4017
|
}, [e]), d.useEffect(function() {
|
|
4019
4018
|
if (e.inert) {
|
|
4020
4019
|
document.body.classList.add("block-interactivity-".concat(o));
|
|
4021
|
-
var h = ds([e.lockRef.current], (e.shards || []).map(
|
|
4020
|
+
var h = ds([e.lockRef.current], (e.shards || []).map(tr), !0).filter(Boolean);
|
|
4022
4021
|
return h.forEach(function(g) {
|
|
4023
4022
|
return g.classList.add("allow-interactivity-".concat(o));
|
|
4024
4023
|
}), function() {
|
|
@@ -4031,22 +4030,22 @@ function Us(e) {
|
|
|
4031
4030
|
var s = d.useCallback(function(h, g) {
|
|
4032
4031
|
if ("touches" in h && h.touches.length === 2 || h.type === "wheel" && h.ctrlKey)
|
|
4033
4032
|
return !a.current.allowPinchZoom;
|
|
4034
|
-
var w =
|
|
4033
|
+
var w = dt(h), b = n.current, E = "deltaX" in h ? h.deltaX : b[0] - w[0], R = "deltaY" in h ? h.deltaY : b[1] - w[1], A, _ = h.target, S = Math.abs(E) > Math.abs(R) ? "h" : "v";
|
|
4035
4034
|
if ("touches" in h && S === "h" && _.type === "range")
|
|
4036
4035
|
return !1;
|
|
4037
|
-
var j =
|
|
4036
|
+
var j = Qn(S, _);
|
|
4038
4037
|
if (!j)
|
|
4039
4038
|
return !0;
|
|
4040
|
-
if (j ? A = S : (A = S === "v" ? "h" : "v", j =
|
|
4039
|
+
if (j ? A = S : (A = S === "v" ? "h" : "v", j = Qn(S, _)), !j)
|
|
4041
4040
|
return !1;
|
|
4042
4041
|
if (!r.current && "changedTouches" in h && (E || R) && (r.current = A), !A)
|
|
4043
4042
|
return !0;
|
|
4044
4043
|
var F = r.current || A;
|
|
4045
|
-
return $s(F, g, h, F === "h" ? E : R
|
|
4044
|
+
return $s(F, g, h, F === "h" ? E : R);
|
|
4046
4045
|
}, []), u = d.useCallback(function(h) {
|
|
4047
4046
|
var g = h;
|
|
4048
4047
|
if (!(!Le.length || Le[Le.length - 1] !== i)) {
|
|
4049
|
-
var w = "deltaY" in g ?
|
|
4048
|
+
var w = "deltaY" in g ? er(g) : dt(g), b = t.current.filter(function(A) {
|
|
4050
4049
|
return A.name === g.type && (A.target === g.target || g.target === A.shadowParent) && Vs(A.delta, w);
|
|
4051
4050
|
})[0];
|
|
4052
4051
|
if (b && b.should) {
|
|
@@ -4054,7 +4053,7 @@ function Us(e) {
|
|
|
4054
4053
|
return;
|
|
4055
4054
|
}
|
|
4056
4055
|
if (!b) {
|
|
4057
|
-
var E = (a.current.shards || []).map(
|
|
4056
|
+
var E = (a.current.shards || []).map(tr).filter(Boolean).filter(function(A) {
|
|
4058
4057
|
return A.contains(g.target);
|
|
4059
4058
|
}), R = E.length > 0 ? s(g, E[0]) : !a.current.noIsolation;
|
|
4060
4059
|
R && g.cancelable && g.preventDefault();
|
|
@@ -4068,29 +4067,29 @@ function Us(e) {
|
|
|
4068
4067
|
});
|
|
4069
4068
|
}, 1);
|
|
4070
4069
|
}, []), f = d.useCallback(function(h) {
|
|
4071
|
-
n.current =
|
|
4070
|
+
n.current = dt(h), r.current = void 0;
|
|
4072
4071
|
}, []), p = d.useCallback(function(h) {
|
|
4073
|
-
l(h.type,
|
|
4074
|
-
}, []),
|
|
4075
|
-
l(h.type,
|
|
4072
|
+
l(h.type, er(h), h.target, s(h, e.lockRef.current));
|
|
4073
|
+
}, []), m = d.useCallback(function(h) {
|
|
4074
|
+
l(h.type, dt(h), h.target, s(h, e.lockRef.current));
|
|
4076
4075
|
}, []);
|
|
4077
4076
|
d.useEffect(function() {
|
|
4078
4077
|
return Le.push(i), e.setCallbacks({
|
|
4079
4078
|
onScrollCapture: p,
|
|
4080
4079
|
onWheelCapture: p,
|
|
4081
|
-
onTouchMoveCapture:
|
|
4080
|
+
onTouchMoveCapture: m
|
|
4082
4081
|
}), document.addEventListener("wheel", u, Ie), document.addEventListener("touchmove", u, Ie), document.addEventListener("touchstart", f, Ie), function() {
|
|
4083
4082
|
Le = Le.filter(function(h) {
|
|
4084
4083
|
return h !== i;
|
|
4085
4084
|
}), document.removeEventListener("wheel", u, Ie), document.removeEventListener("touchmove", u, Ie), document.removeEventListener("touchstart", f, Ie);
|
|
4086
4085
|
};
|
|
4087
4086
|
}, []);
|
|
4088
|
-
var
|
|
4087
|
+
var v = e.removeScrollBar, x = e.inert;
|
|
4089
4088
|
return d.createElement(
|
|
4090
4089
|
d.Fragment,
|
|
4091
4090
|
null,
|
|
4092
4091
|
x ? d.createElement(i, { styles: zs(o) }) : null,
|
|
4093
|
-
|
|
4092
|
+
v ? d.createElement(Ds, { gapMode: e.gapMode }) : null
|
|
4094
4093
|
);
|
|
4095
4094
|
}
|
|
4096
4095
|
function Ys(e) {
|
|
@@ -4098,14 +4097,14 @@ function Ys(e) {
|
|
|
4098
4097
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
4099
4098
|
return t;
|
|
4100
4099
|
}
|
|
4101
|
-
const Ks =
|
|
4100
|
+
const Ks = bs(Qr, Us);
|
|
4102
4101
|
var oo = d.forwardRef(function(e, t) {
|
|
4103
|
-
return d.createElement(
|
|
4102
|
+
return d.createElement(Ot, ae({}, e, { ref: t, sideCar: Ks }));
|
|
4104
4103
|
});
|
|
4105
|
-
oo.classNames =
|
|
4106
|
-
var
|
|
4104
|
+
oo.classNames = Ot.classNames;
|
|
4105
|
+
var gn = "Popover", [io, Cc] = Ze(gn, [
|
|
4107
4106
|
Lr
|
|
4108
|
-
]),
|
|
4107
|
+
]), et = Lr(), [Xs, Ce] = io(gn), ao = (e) => {
|
|
4109
4108
|
const {
|
|
4110
4109
|
__scopePopover: t,
|
|
4111
4110
|
children: n,
|
|
@@ -4113,7 +4112,7 @@ var wn = "Popover", [io, Cc] = Qe(wn, [
|
|
|
4113
4112
|
defaultOpen: o,
|
|
4114
4113
|
onOpenChange: i,
|
|
4115
4114
|
modal: a = !1
|
|
4116
|
-
} = e, s =
|
|
4115
|
+
} = e, s = et(t), u = d.useRef(null), [l, f] = d.useState(!1), [p = !1, m] = bt({
|
|
4117
4116
|
prop: r,
|
|
4118
4117
|
defaultProp: o,
|
|
4119
4118
|
onChange: i
|
|
@@ -4122,11 +4121,11 @@ var wn = "Popover", [io, Cc] = Qe(wn, [
|
|
|
4122
4121
|
Xs,
|
|
4123
4122
|
{
|
|
4124
4123
|
scope: t,
|
|
4125
|
-
contentId:
|
|
4124
|
+
contentId: Qt(),
|
|
4126
4125
|
triggerRef: u,
|
|
4127
4126
|
open: p,
|
|
4128
|
-
onOpenChange:
|
|
4129
|
-
onOpenToggle: d.useCallback(() =>
|
|
4127
|
+
onOpenChange: m,
|
|
4128
|
+
onOpenToggle: d.useCallback(() => m((v) => !v), [m]),
|
|
4130
4129
|
hasCustomAnchor: l,
|
|
4131
4130
|
onCustomAnchorAdd: d.useCallback(() => f(!0), []),
|
|
4132
4131
|
onCustomAnchorRemove: d.useCallback(() => f(!1), []),
|
|
@@ -4135,17 +4134,17 @@ var wn = "Popover", [io, Cc] = Qe(wn, [
|
|
|
4135
4134
|
}
|
|
4136
4135
|
) });
|
|
4137
4136
|
};
|
|
4138
|
-
ao.displayName =
|
|
4137
|
+
ao.displayName = gn;
|
|
4139
4138
|
var so = "PopoverAnchor", Gs = d.forwardRef(
|
|
4140
4139
|
(e, t) => {
|
|
4141
|
-
const { __scopePopover: n, ...r } = e, o = Ce(so, n), i =
|
|
4140
|
+
const { __scopePopover: n, ...r } = e, o = Ce(so, n), i = et(n), { onCustomAnchorAdd: a, onCustomAnchorRemove: s } = o;
|
|
4142
4141
|
return d.useEffect(() => (a(), () => s()), [a, s]), /* @__PURE__ */ y.jsx(Yr, { ...i, ...r, ref: t });
|
|
4143
4142
|
}
|
|
4144
4143
|
);
|
|
4145
4144
|
Gs.displayName = so;
|
|
4146
4145
|
var co = "PopoverTrigger", lo = d.forwardRef(
|
|
4147
4146
|
(e, t) => {
|
|
4148
|
-
const { __scopePopover: n, ...r } = e, o = Ce(co, n), i =
|
|
4147
|
+
const { __scopePopover: n, ...r } = e, o = Ce(co, n), i = et(n), a = re(t, o.triggerRef), s = /* @__PURE__ */ y.jsx(
|
|
4149
4148
|
Z.button,
|
|
4150
4149
|
{
|
|
4151
4150
|
type: "button",
|
|
@@ -4162,17 +4161,17 @@ var co = "PopoverTrigger", lo = d.forwardRef(
|
|
|
4162
4161
|
}
|
|
4163
4162
|
);
|
|
4164
4163
|
lo.displayName = co;
|
|
4165
|
-
var
|
|
4164
|
+
var yn = "PopoverPortal", [qs, Js] = io(yn, {
|
|
4166
4165
|
forceMount: void 0
|
|
4167
4166
|
}), uo = (e) => {
|
|
4168
|
-
const { __scopePopover: t, forceMount: n, children: r, container: o } = e, i = Ce(
|
|
4169
|
-
return /* @__PURE__ */ y.jsx(qs, { scope: t, forceMount: n, children: /* @__PURE__ */ y.jsx(
|
|
4167
|
+
const { __scopePopover: t, forceMount: n, children: r, container: o } = e, i = Ce(yn, t);
|
|
4168
|
+
return /* @__PURE__ */ y.jsx(qs, { scope: t, forceMount: n, children: /* @__PURE__ */ y.jsx(Ct, { present: n || i.open, children: /* @__PURE__ */ y.jsx(Kr, { asChild: !0, container: o, children: r }) }) });
|
|
4170
4169
|
};
|
|
4171
|
-
uo.displayName =
|
|
4170
|
+
uo.displayName = yn;
|
|
4172
4171
|
var Ve = "PopoverContent", fo = d.forwardRef(
|
|
4173
4172
|
(e, t) => {
|
|
4174
4173
|
const n = Js(Ve, e.__scopePopover), { forceMount: r = n.forceMount, ...o } = e, i = Ce(Ve, e.__scopePopover);
|
|
4175
|
-
return /* @__PURE__ */ y.jsx(
|
|
4174
|
+
return /* @__PURE__ */ y.jsx(Ct, { present: r || i.open, children: i.modal ? /* @__PURE__ */ y.jsx(Zs, { ...o, ref: t }) : /* @__PURE__ */ y.jsx(Qs, { ...o, ref: t }) });
|
|
4176
4175
|
}
|
|
4177
4176
|
);
|
|
4178
4177
|
fo.displayName = Ve;
|
|
@@ -4182,7 +4181,7 @@ var Zs = d.forwardRef(
|
|
|
4182
4181
|
return d.useEffect(() => {
|
|
4183
4182
|
const a = r.current;
|
|
4184
4183
|
if (a) return fs(a);
|
|
4185
|
-
}, []), /* @__PURE__ */ y.jsx(oo, { as:
|
|
4184
|
+
}, []), /* @__PURE__ */ y.jsx(oo, { as: qe, allowPinchZoom: !0, children: /* @__PURE__ */ y.jsx(
|
|
4186
4185
|
po,
|
|
4187
4186
|
{
|
|
4188
4187
|
...e,
|
|
@@ -4245,7 +4244,7 @@ var Zs = d.forwardRef(
|
|
|
4245
4244
|
onFocusOutside: l,
|
|
4246
4245
|
onInteractOutside: f,
|
|
4247
4246
|
...p
|
|
4248
|
-
} = e,
|
|
4247
|
+
} = e, m = Ce(Ve, n), v = et(n);
|
|
4249
4248
|
return es(), /* @__PURE__ */ y.jsx(
|
|
4250
4249
|
Xr,
|
|
4251
4250
|
{
|
|
@@ -4255,7 +4254,7 @@ var Zs = d.forwardRef(
|
|
|
4255
4254
|
onMountAutoFocus: o,
|
|
4256
4255
|
onUnmountAutoFocus: i,
|
|
4257
4256
|
children: /* @__PURE__ */ y.jsx(
|
|
4258
|
-
|
|
4257
|
+
Er,
|
|
4259
4258
|
{
|
|
4260
4259
|
asChild: !0,
|
|
4261
4260
|
disableOutsidePointerEvents: a,
|
|
@@ -4263,14 +4262,14 @@ var Zs = d.forwardRef(
|
|
|
4263
4262
|
onEscapeKeyDown: s,
|
|
4264
4263
|
onPointerDownOutside: u,
|
|
4265
4264
|
onFocusOutside: l,
|
|
4266
|
-
onDismiss: () =>
|
|
4265
|
+
onDismiss: () => m.onOpenChange(!1),
|
|
4267
4266
|
children: /* @__PURE__ */ y.jsx(
|
|
4268
4267
|
Ja,
|
|
4269
4268
|
{
|
|
4270
|
-
"data-state": go(
|
|
4269
|
+
"data-state": go(m.open),
|
|
4271
4270
|
role: "dialog",
|
|
4272
|
-
id:
|
|
4273
|
-
...
|
|
4271
|
+
id: m.contentId,
|
|
4272
|
+
...v,
|
|
4274
4273
|
...p,
|
|
4275
4274
|
ref: t,
|
|
4276
4275
|
style: {
|
|
@@ -4288,7 +4287,7 @@ var Zs = d.forwardRef(
|
|
|
4288
4287
|
}
|
|
4289
4288
|
);
|
|
4290
4289
|
}
|
|
4291
|
-
), ho = "PopoverClose",
|
|
4290
|
+
), ho = "PopoverClose", mo = d.forwardRef(
|
|
4292
4291
|
(e, t) => {
|
|
4293
4292
|
const { __scopePopover: n, ...r } = e, o = Ce(ho, n);
|
|
4294
4293
|
return /* @__PURE__ */ y.jsx(
|
|
@@ -4302,18 +4301,18 @@ var Zs = d.forwardRef(
|
|
|
4302
4301
|
);
|
|
4303
4302
|
}
|
|
4304
4303
|
);
|
|
4305
|
-
|
|
4306
|
-
var ec = "PopoverArrow",
|
|
4304
|
+
mo.displayName = ho;
|
|
4305
|
+
var ec = "PopoverArrow", vo = d.forwardRef(
|
|
4307
4306
|
(e, t) => {
|
|
4308
|
-
const { __scopePopover: n, ...r } = e, o =
|
|
4307
|
+
const { __scopePopover: n, ...r } = e, o = et(n);
|
|
4309
4308
|
return /* @__PURE__ */ y.jsx(Za, { ...o, ...r, ref: t });
|
|
4310
4309
|
}
|
|
4311
4310
|
);
|
|
4312
|
-
|
|
4311
|
+
vo.displayName = ec;
|
|
4313
4312
|
function go(e) {
|
|
4314
4313
|
return e ? "open" : "closed";
|
|
4315
4314
|
}
|
|
4316
|
-
var tc = ao, nc = lo, rc = uo, oc = fo, ic =
|
|
4315
|
+
var tc = ao, nc = lo, rc = uo, oc = fo, ic = mo, ac = vo;
|
|
4317
4316
|
const Ec = ({
|
|
4318
4317
|
triggerElement: e,
|
|
4319
4318
|
classes: t,
|
|
@@ -4407,10 +4406,6 @@ const Ec = ({
|
|
|
4407
4406
|
true: "underline underline-offset-4",
|
|
4408
4407
|
false: ""
|
|
4409
4408
|
},
|
|
4410
|
-
withIcon: {
|
|
4411
|
-
true: "flex items-center gap-1",
|
|
4412
|
-
false: ""
|
|
4413
|
-
},
|
|
4414
4409
|
disabled: {
|
|
4415
4410
|
true: "!text-color-primary-disabled pointer-events-none !border-transparent",
|
|
4416
4411
|
false: ""
|
|
@@ -4422,7 +4417,6 @@ const Ec = ({
|
|
|
4422
4417
|
},
|
|
4423
4418
|
defaultVariants: {
|
|
4424
4419
|
intent: "blue",
|
|
4425
|
-
withIcon: !0,
|
|
4426
4420
|
disabled: !1,
|
|
4427
4421
|
size: "sm",
|
|
4428
4422
|
withUnderline: !1
|
|
@@ -4443,56 +4437,46 @@ const Ec = ({
|
|
|
4443
4437
|
intent: "blue",
|
|
4444
4438
|
disabled: !1
|
|
4445
4439
|
}
|
|
4446
|
-
}), Ac = ({
|
|
4447
|
-
intent: e,
|
|
4448
|
-
children: t,
|
|
4449
|
-
withIcon: n,
|
|
4450
|
-
disabled: r,
|
|
4451
|
-
size: o,
|
|
4452
|
-
icon: i = "arrows/arrowLink",
|
|
4453
|
-
classes: a,
|
|
4454
|
-
withUnderline: s,
|
|
4455
|
-
...u
|
|
4456
|
-
}) => /* @__PURE__ */ y.jsxs("a", { className: L(cc({ intent: e, withIcon: n, withUnderline: s, disabled: r, size: o }), a == null ? void 0 : a.link), ...u, children: [
|
|
4440
|
+
}), Ac = ({ intent: e, children: t, disabled: n, size: r, icon: o, classes: i, withUnderline: a, ...s }) => /* @__PURE__ */ y.jsxs("a", { className: L(cc({ intent: e, withUnderline: a, disabled: n, size: r }), i == null ? void 0 : i.link), ...s, children: [
|
|
4457
4441
|
t,
|
|
4458
|
-
|
|
4442
|
+
o && /* @__PURE__ */ y.jsx(de, { name: o, className: L(lc({ intent: e, disabled: n }), i == null ? void 0 : i.icon) })
|
|
4459
4443
|
] });
|
|
4460
4444
|
export {
|
|
4461
4445
|
wc as A,
|
|
4462
|
-
|
|
4446
|
+
mc as B,
|
|
4463
4447
|
Ac as C,
|
|
4464
|
-
|
|
4465
|
-
|
|
4448
|
+
Er as D,
|
|
4449
|
+
xc as E,
|
|
4466
4450
|
ee as F,
|
|
4467
4451
|
we as G,
|
|
4468
4452
|
Rc as H,
|
|
4469
4453
|
de as I,
|
|
4470
|
-
|
|
4454
|
+
gt as J,
|
|
4471
4455
|
Ma as K,
|
|
4472
4456
|
Jo as L,
|
|
4473
4457
|
La as M,
|
|
4474
4458
|
Fa as N,
|
|
4475
4459
|
Ra as O,
|
|
4476
|
-
|
|
4460
|
+
vc as P,
|
|
4477
4461
|
hc as R,
|
|
4478
4462
|
pc as S,
|
|
4479
|
-
|
|
4463
|
+
bc as _,
|
|
4480
4464
|
Ec as a,
|
|
4481
4465
|
Pc as b,
|
|
4482
4466
|
ze as c,
|
|
4483
4467
|
gc as d,
|
|
4484
4468
|
Z as e,
|
|
4485
|
-
|
|
4469
|
+
Ze as f,
|
|
4486
4470
|
Lr as g,
|
|
4487
4471
|
Yr as h,
|
|
4488
4472
|
se as i,
|
|
4489
4473
|
y as j,
|
|
4490
|
-
|
|
4474
|
+
Ct as k,
|
|
4491
4475
|
Ja as l,
|
|
4492
4476
|
Qo as m,
|
|
4493
4477
|
Za as n,
|
|
4494
|
-
|
|
4495
|
-
|
|
4478
|
+
Qt as o,
|
|
4479
|
+
bt as p,
|
|
4496
4480
|
qa as q,
|
|
4497
4481
|
ri as r,
|
|
4498
4482
|
wi as s,
|
|
@@ -4504,4 +4488,4 @@ export {
|
|
|
4504
4488
|
pe as y,
|
|
4505
4489
|
Da as z
|
|
4506
4490
|
};
|
|
4507
|
-
//# sourceMappingURL=CustomLink-
|
|
4491
|
+
//# sourceMappingURL=CustomLink-CKaoTS8A.js.map
|