@scbt-ecom/ui 0.17.3 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/CustomLink-CcSUq55J.js +4505 -0
  2. package/dist/CustomLink-CcSUq55J.js.map +1 -0
  3. package/dist/config.d.ts +2 -0
  4. package/dist/{configs.js → config.js} +1 -1
  5. package/dist/config.js.map +1 -0
  6. package/dist/scrollToElement-B-reg4jF.js.map +1 -1
  7. package/dist/shared/ui/CustomLink.d.ts +1 -1
  8. package/dist/shared/ui/accordion/Accordion.d.ts +14 -8
  9. package/dist/shared/ui/accordion/ui/AccordionHeader.d.ts +3 -2
  10. package/dist/shared/ui/icon/sprite.gen.d.ts +1 -1
  11. package/dist/shared/utils/scrollToElement.d.ts +1 -1
  12. package/dist/sprites/arrows.svg +1 -1
  13. package/dist/style.css +1 -1
  14. package/dist/ui.js +7987 -8385
  15. package/dist/ui.js.map +1 -1
  16. package/dist/utils-tailwind.css +2 -8
  17. package/dist/widget.js +349 -279
  18. package/dist/widget.js.map +1 -1
  19. package/dist/widgets/footer/Footer.d.ts +1 -17
  20. package/dist/widgets/footer/model/types.d.ts +22 -0
  21. package/dist/widgets/footer/ui/Copyright.d.ts +1 -2
  22. package/dist/widgets/footer/ui/index.d.ts +0 -1
  23. package/dist/widgets/index.d.ts +1 -1
  24. package/dist/widgets/interLinking/InterLinking.d.ts +16 -0
  25. package/dist/widgets/interLinking/index.d.ts +2 -0
  26. package/dist/widgets/interLinking/model/helpers.d.ts +140 -0
  27. package/dist/widgets/interLinking/model/types.d.ts +6 -0
  28. package/dist/widgets/interLinking/ui/Column.d.ts +13 -0
  29. package/dist/widgets/interLinking/ui/ColumnGroup.d.ts +15 -0
  30. package/dist/widgets/interLinking/ui/LinksList.d.ts +11 -0
  31. package/dist/widgets/interLinking/ui/index.d.ts +1 -0
  32. package/package.json +2 -5
  33. package/dist/CustomLink-DmCJLTWC.js +0 -4090
  34. package/dist/CustomLink-DmCJLTWC.js.map +0 -1
  35. package/dist/configs.d.ts +0 -2
  36. package/dist/configs.js.map +0 -1
  37. package/dist/shared/ui/accordion/model/types.d.ts +0 -17
  38. package/dist/widgets/baseForm/BaseForm.d.ts +0 -3
  39. package/dist/widgets/baseForm/index.d.ts +0 -1
  40. /package/dist/exports/{configs.d.ts → config.d.ts} +0 -0
@@ -1,4090 +0,0 @@
1
- import { a as so, c as U } from "./cn-DIfn7EPB.js";
2
- import * as d from "react";
3
- import $n, { forwardRef as co, useLayoutEffect as lo, useEffect as uo, useState as fo } from "react";
4
- import * as Vn from "react-dom";
5
- import ho from "react-dom";
6
- var Bt = { exports: {} }, Ke = {};
7
- /**
8
- * @license React
9
- * react-jsx-runtime.production.min.js
10
- *
11
- * Copyright (c) Facebook, Inc. and its affiliates.
12
- *
13
- * This source code is licensed under the MIT license found in the
14
- * LICENSE file in the root directory of this source tree.
15
- */
16
- var mn;
17
- function po() {
18
- if (mn) return Ke;
19
- mn = 1;
20
- var e = $n, 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
- function a(s, u, l) {
22
- var f, h = {}, v = null, m = null;
23
- l !== void 0 && (v = "" + l), u.key !== void 0 && (v = "" + u.key), u.ref !== void 0 && (m = u.ref);
24
- for (f in u) r.call(u, f) && !i.hasOwnProperty(f) && (h[f] = u[f]);
25
- if (s && s.defaultProps) for (f in u = s.defaultProps, u) h[f] === void 0 && (h[f] = u[f]);
26
- return { $$typeof: t, type: s, key: v, ref: m, props: h, _owner: o.current };
27
- }
28
- return Ke.Fragment = n, Ke.jsx = a, Ke.jsxs = a, Ke;
29
- }
30
- var Xe = {};
31
- /**
32
- * @license React
33
- * react-jsx-runtime.development.js
34
- *
35
- * Copyright (c) Facebook, Inc. and its affiliates.
36
- *
37
- * This source code is licensed under the MIT license found in the
38
- * LICENSE file in the root directory of this source tree.
39
- */
40
- var gn;
41
- function vo() {
42
- return gn || (gn = 1, process.env.NODE_ENV !== "production" && function() {
43
- var e = $n, 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"), h = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), b = Symbol.iterator, p = "@@iterator";
44
- function y(c) {
45
- if (c === null || typeof c != "object")
46
- return null;
47
- var g = b && c[b] || c[p];
48
- return typeof g == "function" ? g : null;
49
- }
50
- var w = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
- function x(c) {
52
- {
53
- for (var g = arguments.length, C = new Array(g > 1 ? g - 1 : 0), O = 1; O < g; O++)
54
- C[O - 1] = arguments[O];
55
- P("error", c, C);
56
- }
57
- }
58
- function P(c, g, C) {
59
- {
60
- var O = w.ReactDebugCurrentFrame, L = O.getStackAddendum();
61
- L !== "" && (g += "%s", C = C.concat([L]));
62
- var F = C.map(function(N) {
63
- return String(N);
64
- });
65
- F.unshift("Warning: " + g), Function.prototype.apply.call(console[c], console, F);
66
- }
67
- }
68
- var R = !1, S = !1, T = !1, A = !1, D = !1, B;
69
- B = Symbol.for("react.module.reference");
70
- function I(c) {
71
- return !!(typeof c == "string" || typeof c == "function" || c === r || c === i || D || c === o || c === l || c === f || A || c === m || R || S || T || typeof c == "object" && c !== null && (c.$$typeof === v || c.$$typeof === h || c.$$typeof === a || c.$$typeof === s || c.$$typeof === u || // This needs to include all possible module reference object
72
- // types supported by any Flight configuration anywhere since
73
- // we don't know which Flight build this will end up being used
74
- // with.
75
- c.$$typeof === B || c.getModuleId !== void 0));
76
- }
77
- function X(c, g, C) {
78
- var O = c.displayName;
79
- if (O)
80
- return O;
81
- var L = g.displayName || g.name || "";
82
- return L !== "" ? C + "(" + L + ")" : C;
83
- }
84
- function Y(c) {
85
- return c.displayName || "Context";
86
- }
87
- function j(c) {
88
- if (c == null)
89
- return null;
90
- if (typeof c.tag == "number" && x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof c == "function")
91
- return c.displayName || c.name || null;
92
- if (typeof c == "string")
93
- return c;
94
- switch (c) {
95
- case r:
96
- return "Fragment";
97
- case n:
98
- return "Portal";
99
- case i:
100
- return "Profiler";
101
- case o:
102
- return "StrictMode";
103
- case l:
104
- return "Suspense";
105
- case f:
106
- return "SuspenseList";
107
- }
108
- if (typeof c == "object")
109
- switch (c.$$typeof) {
110
- case s:
111
- var g = c;
112
- return Y(g) + ".Consumer";
113
- case a:
114
- var C = c;
115
- return Y(C._context) + ".Provider";
116
- case u:
117
- return X(c, c.render, "ForwardRef");
118
- case h:
119
- var O = c.displayName || null;
120
- return O !== null ? O : j(c.type) || "Memo";
121
- case v: {
122
- var L = c, F = L._payload, N = L._init;
123
- try {
124
- return j(N(F));
125
- } catch {
126
- return null;
127
- }
128
- }
129
- }
130
- return null;
131
- }
132
- var M = Object.assign, K = 0, W, $, k, H, J, be, Ze;
133
- function Qe() {
134
- }
135
- Qe.__reactDisabledLog = !0;
136
- function xt() {
137
- {
138
- if (K === 0) {
139
- W = console.log, $ = console.info, k = console.warn, H = console.error, J = console.group, be = console.groupCollapsed, Ze = console.groupEnd;
140
- var c = {
141
- configurable: !0,
142
- enumerable: !0,
143
- value: Qe,
144
- writable: !0
145
- };
146
- Object.defineProperties(console, {
147
- info: c,
148
- log: c,
149
- warn: c,
150
- error: c,
151
- group: c,
152
- groupCollapsed: c,
153
- groupEnd: c
154
- });
155
- }
156
- K++;
157
- }
158
- }
159
- function Et() {
160
- {
161
- if (K--, K === 0) {
162
- var c = {
163
- configurable: !0,
164
- enumerable: !0,
165
- writable: !0
166
- };
167
- Object.defineProperties(console, {
168
- log: M({}, c, {
169
- value: W
170
- }),
171
- info: M({}, c, {
172
- value: $
173
- }),
174
- warn: M({}, c, {
175
- value: k
176
- }),
177
- error: M({}, c, {
178
- value: H
179
- }),
180
- group: M({}, c, {
181
- value: J
182
- }),
183
- groupCollapsed: M({}, c, {
184
- value: be
185
- }),
186
- groupEnd: M({}, c, {
187
- value: Ze
188
- })
189
- });
190
- }
191
- K < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
- }
193
- }
194
- var Ue = w.ReactCurrentDispatcher, Oe;
195
- function xe(c, g, C) {
196
- {
197
- if (Oe === void 0)
198
- try {
199
- throw Error();
200
- } catch (L) {
201
- var O = L.stack.trim().match(/\n( *(at )?)/);
202
- Oe = O && O[1] || "";
203
- }
204
- return `
205
- ` + Oe + c;
206
- }
207
- }
208
- var Te = !1, Ee;
209
- {
210
- var et = typeof WeakMap == "function" ? WeakMap : Map;
211
- Ee = new et();
212
- }
213
- function He(c, g) {
214
- if (!c || Te)
215
- return "";
216
- {
217
- var C = Ee.get(c);
218
- if (C !== void 0)
219
- return C;
220
- }
221
- var O;
222
- Te = !0;
223
- var L = Error.prepareStackTrace;
224
- Error.prepareStackTrace = void 0;
225
- var F;
226
- F = Ue.current, Ue.current = null, xt();
227
- try {
228
- if (g) {
229
- var N = function() {
230
- throw Error();
231
- };
232
- if (Object.defineProperty(N.prototype, "props", {
233
- set: function() {
234
- throw Error();
235
- }
236
- }), typeof Reflect == "object" && Reflect.construct) {
237
- try {
238
- Reflect.construct(N, []);
239
- } catch (q) {
240
- O = q;
241
- }
242
- Reflect.construct(c, [], N);
243
- } else {
244
- try {
245
- N.call();
246
- } catch (q) {
247
- O = q;
248
- }
249
- c.call(N.prototype);
250
- }
251
- } else {
252
- try {
253
- throw Error();
254
- } catch (q) {
255
- O = q;
256
- }
257
- c();
258
- }
259
- } catch (q) {
260
- if (q && O && typeof q.stack == "string") {
261
- for (var _ = q.stack.split(`
262
- `), G = O.stack.split(`
263
- `), V = _.length - 1, z = G.length - 1; V >= 1 && z >= 0 && _[V] !== G[z]; )
264
- z--;
265
- for (; V >= 1 && z >= 0; V--, z--)
266
- if (_[V] !== G[z]) {
267
- if (V !== 1 || z !== 1)
268
- do
269
- if (V--, z--, z < 0 || _[V] !== G[z]) {
270
- var ee = `
271
- ` + _[V].replace(" at new ", " at ");
272
- return c.displayName && ee.includes("<anonymous>") && (ee = ee.replace("<anonymous>", c.displayName)), typeof c == "function" && Ee.set(c, ee), ee;
273
- }
274
- while (V >= 1 && z >= 0);
275
- break;
276
- }
277
- }
278
- } finally {
279
- Te = !1, Ue.current = F, Et(), Error.prepareStackTrace = L;
280
- }
281
- var Ne = c ? c.displayName || c.name : "", Pe = Ne ? xe(Ne) : "";
282
- return typeof c == "function" && Ee.set(c, Pe), Pe;
283
- }
284
- function Ce(c, g, C) {
285
- return He(c, !1);
286
- }
287
- function tt(c) {
288
- var g = c.prototype;
289
- return !!(g && g.isReactComponent);
290
- }
291
- function _e(c, g, C) {
292
- if (c == null)
293
- return "";
294
- if (typeof c == "function")
295
- return He(c, tt(c));
296
- if (typeof c == "string")
297
- return xe(c);
298
- switch (c) {
299
- case l:
300
- return xe("Suspense");
301
- case f:
302
- return xe("SuspenseList");
303
- }
304
- if (typeof c == "object")
305
- switch (c.$$typeof) {
306
- case u:
307
- return Ce(c.render);
308
- case h:
309
- return _e(c.type, g, C);
310
- case v: {
311
- var O = c, L = O._payload, F = O._init;
312
- try {
313
- return _e(F(L), g, C);
314
- } catch {
315
- }
316
- }
317
- }
318
- return "";
319
- }
320
- var Re = Object.prototype.hasOwnProperty, nt = {}, rt = w.ReactDebugCurrentFrame;
321
- function se(c) {
322
- if (c) {
323
- var g = c._owner, C = _e(c.type, c._source, g ? g.type : null);
324
- rt.setExtraStackFrame(C);
325
- } else
326
- rt.setExtraStackFrame(null);
327
- }
328
- function Ir(c, g, C, O, L) {
329
- {
330
- var F = Function.call.bind(Re);
331
- for (var N in c)
332
- if (F(c, N)) {
333
- var _ = void 0;
334
- try {
335
- if (typeof c[N] != "function") {
336
- var G = Error((O || "React class") + ": " + C + " type `" + N + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof c[N] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
337
- throw G.name = "Invariant Violation", G;
338
- }
339
- _ = c[N](g, N, O, C, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
- } catch (V) {
341
- _ = V;
342
- }
343
- _ && !(_ instanceof Error) && (se(L), x("%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", C, N, typeof _), se(null)), _ instanceof Error && !(_.message in nt) && (nt[_.message] = !0, se(L), x("Failed %s type: %s", C, _.message), se(null));
344
- }
345
- }
346
- }
347
- var Wr = Array.isArray;
348
- function Ct(c) {
349
- return Wr(c);
350
- }
351
- function $r(c) {
352
- {
353
- var g = typeof Symbol == "function" && Symbol.toStringTag, C = g && c[Symbol.toStringTag] || c.constructor.name || "Object";
354
- return C;
355
- }
356
- }
357
- function Vr(c) {
358
- try {
359
- return on(c), !1;
360
- } catch {
361
- return !0;
362
- }
363
- }
364
- function on(c) {
365
- return "" + c;
366
- }
367
- function an(c) {
368
- if (Vr(c))
369
- return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", $r(c)), on(c);
370
- }
371
- var Ye = w.ReactCurrentOwner, zr = {
372
- key: !0,
373
- ref: !0,
374
- __self: !0,
375
- __source: !0
376
- }, sn, cn, Rt;
377
- Rt = {};
378
- function Ur(c) {
379
- if (Re.call(c, "ref")) {
380
- var g = Object.getOwnPropertyDescriptor(c, "ref").get;
381
- if (g && g.isReactWarning)
382
- return !1;
383
- }
384
- return c.ref !== void 0;
385
- }
386
- function Hr(c) {
387
- if (Re.call(c, "key")) {
388
- var g = Object.getOwnPropertyDescriptor(c, "key").get;
389
- if (g && g.isReactWarning)
390
- return !1;
391
- }
392
- return c.key !== void 0;
393
- }
394
- function Yr(c, g) {
395
- if (typeof c.ref == "string" && Ye.current && g && Ye.current.stateNode !== g) {
396
- var C = j(Ye.current.type);
397
- Rt[C] || (x('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', j(Ye.current.type), c.ref), Rt[C] = !0);
398
- }
399
- }
400
- function Kr(c, g) {
401
- {
402
- var C = function() {
403
- sn || (sn = !0, x("%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)", g));
404
- };
405
- C.isReactWarning = !0, Object.defineProperty(c, "key", {
406
- get: C,
407
- configurable: !0
408
- });
409
- }
410
- }
411
- function Xr(c, g) {
412
- {
413
- var C = function() {
414
- cn || (cn = !0, x("%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)", g));
415
- };
416
- C.isReactWarning = !0, Object.defineProperty(c, "ref", {
417
- get: C,
418
- configurable: !0
419
- });
420
- }
421
- }
422
- var Gr = function(c, g, C, O, L, F, N) {
423
- var _ = {
424
- // This tag allows us to uniquely identify this as a React Element
425
- $$typeof: t,
426
- // Built-in properties that belong on the element
427
- type: c,
428
- key: g,
429
- ref: C,
430
- props: N,
431
- // Record the component responsible for creating this element.
432
- _owner: F
433
- };
434
- return _._store = {}, Object.defineProperty(_._store, "validated", {
435
- configurable: !1,
436
- enumerable: !1,
437
- writable: !0,
438
- value: !1
439
- }), Object.defineProperty(_, "_self", {
440
- configurable: !1,
441
- enumerable: !1,
442
- writable: !1,
443
- value: O
444
- }), Object.defineProperty(_, "_source", {
445
- configurable: !1,
446
- enumerable: !1,
447
- writable: !1,
448
- value: L
449
- }), Object.freeze && (Object.freeze(_.props), Object.freeze(_)), _;
450
- };
451
- function qr(c, g, C, O, L) {
452
- {
453
- var F, N = {}, _ = null, G = null;
454
- C !== void 0 && (an(C), _ = "" + C), Hr(g) && (an(g.key), _ = "" + g.key), Ur(g) && (G = g.ref, Yr(g, L));
455
- for (F in g)
456
- Re.call(g, F) && !zr.hasOwnProperty(F) && (N[F] = g[F]);
457
- if (c && c.defaultProps) {
458
- var V = c.defaultProps;
459
- for (F in V)
460
- N[F] === void 0 && (N[F] = V[F]);
461
- }
462
- if (_ || G) {
463
- var z = typeof c == "function" ? c.displayName || c.name || "Unknown" : c;
464
- _ && Kr(N, z), G && Xr(N, z);
465
- }
466
- return Gr(c, _, G, L, O, Ye.current, N);
467
- }
468
- }
469
- var Pt = w.ReactCurrentOwner, ln = w.ReactDebugCurrentFrame;
470
- function ke(c) {
471
- if (c) {
472
- var g = c._owner, C = _e(c.type, c._source, g ? g.type : null);
473
- ln.setExtraStackFrame(C);
474
- } else
475
- ln.setExtraStackFrame(null);
476
- }
477
- var St;
478
- St = !1;
479
- function At(c) {
480
- return typeof c == "object" && c !== null && c.$$typeof === t;
481
- }
482
- function un() {
483
- {
484
- if (Pt.current) {
485
- var c = j(Pt.current.type);
486
- if (c)
487
- return `
488
-
489
- Check the render method of \`` + c + "`.";
490
- }
491
- return "";
492
- }
493
- }
494
- function Jr(c) {
495
- return "";
496
- }
497
- var fn = {};
498
- function Zr(c) {
499
- {
500
- var g = un();
501
- if (!g) {
502
- var C = typeof c == "string" ? c : c.displayName || c.name;
503
- C && (g = `
504
-
505
- Check the top-level render call using <` + C + ">.");
506
- }
507
- return g;
508
- }
509
- }
510
- function dn(c, g) {
511
- {
512
- if (!c._store || c._store.validated || c.key != null)
513
- return;
514
- c._store.validated = !0;
515
- var C = Zr(g);
516
- if (fn[C])
517
- return;
518
- fn[C] = !0;
519
- var O = "";
520
- c && c._owner && c._owner !== Pt.current && (O = " It was passed a child from " + j(c._owner.type) + "."), ke(c), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', C, O), ke(null);
521
- }
522
- }
523
- function hn(c, g) {
524
- {
525
- if (typeof c != "object")
526
- return;
527
- if (Ct(c))
528
- for (var C = 0; C < c.length; C++) {
529
- var O = c[C];
530
- At(O) && dn(O, g);
531
- }
532
- else if (At(c))
533
- c._store && (c._store.validated = !0);
534
- else if (c) {
535
- var L = y(c);
536
- if (typeof L == "function" && L !== c.entries)
537
- for (var F = L.call(c), N; !(N = F.next()).done; )
538
- At(N.value) && dn(N.value, g);
539
- }
540
- }
541
- }
542
- function Qr(c) {
543
- {
544
- var g = c.type;
545
- if (g == null || typeof g == "string")
546
- return;
547
- var C;
548
- if (typeof g == "function")
549
- C = g.propTypes;
550
- else if (typeof g == "object" && (g.$$typeof === u || // Note: Memo only checks outer props here.
551
- // Inner props are checked in the reconciler.
552
- g.$$typeof === h))
553
- C = g.propTypes;
554
- else
555
- return;
556
- if (C) {
557
- var O = j(g);
558
- Ir(C, c.props, "prop", O, c);
559
- } else if (g.PropTypes !== void 0 && !St) {
560
- St = !0;
561
- var L = j(g);
562
- x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", L || "Unknown");
563
- }
564
- typeof g.getDefaultProps == "function" && !g.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
565
- }
566
- }
567
- function eo(c) {
568
- {
569
- for (var g = Object.keys(c.props), C = 0; C < g.length; C++) {
570
- var O = g[C];
571
- if (O !== "children" && O !== "key") {
572
- ke(c), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", O), ke(null);
573
- break;
574
- }
575
- }
576
- c.ref !== null && (ke(c), x("Invalid attribute `ref` supplied to `React.Fragment`."), ke(null));
577
- }
578
- }
579
- var pn = {};
580
- function vn(c, g, C, O, L, F) {
581
- {
582
- var N = I(c);
583
- if (!N) {
584
- var _ = "";
585
- (c === void 0 || typeof c == "object" && c !== null && Object.keys(c).length === 0) && (_ += " 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
- var G = Jr();
587
- G ? _ += G : _ += un();
588
- var V;
589
- c === null ? V = "null" : Ct(c) ? V = "array" : c !== void 0 && c.$$typeof === t ? (V = "<" + (j(c.type) || "Unknown") + " />", _ = " Did you accidentally export a JSX literal instead of a component?") : V = typeof c, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", V, _);
590
- }
591
- var z = qr(c, g, C, L, F);
592
- if (z == null)
593
- return z;
594
- if (N) {
595
- var ee = g.children;
596
- if (ee !== void 0)
597
- if (O)
598
- if (Ct(ee)) {
599
- for (var Ne = 0; Ne < ee.length; Ne++)
600
- hn(ee[Ne], c);
601
- Object.freeze && Object.freeze(ee);
602
- } else
603
- x("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
- else
605
- hn(ee, c);
606
- }
607
- if (Re.call(g, "key")) {
608
- var Pe = j(c), q = Object.keys(g).filter(function(ao) {
609
- return ao !== "key";
610
- }), Ot = q.length > 0 ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}";
611
- if (!pn[Pe + Ot]) {
612
- var io = q.length > 0 ? "{" + q.join(": ..., ") + ": ...}" : "{}";
613
- x(`A props object containing a "key" prop is being spread into JSX:
614
- let props = %s;
615
- <%s {...props} />
616
- React keys must be passed directly to JSX without using spread:
617
- let props = %s;
618
- <%s key={someKey} {...props} />`, Ot, Pe, io, Pe), pn[Pe + Ot] = !0;
619
- }
620
- }
621
- return c === r ? eo(z) : Qr(z), z;
622
- }
623
- }
624
- function to(c, g, C) {
625
- return vn(c, g, C, !0);
626
- }
627
- function no(c, g, C) {
628
- return vn(c, g, C, !1);
629
- }
630
- var ro = no, oo = to;
631
- Xe.Fragment = r, Xe.jsx = ro, Xe.jsxs = oo;
632
- }()), Xe;
633
- }
634
- process.env.NODE_ENV === "production" ? Bt.exports = po() : Bt.exports = vo();
635
- var E = Bt.exports;
636
- const yn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, wn = so, $e = (e, t) => (n) => {
637
- var r;
638
- if ((t == null ? void 0 : t.variants) == null) return wn(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
639
- const { variants: o, defaultVariants: i } = t, a = Object.keys(o).map((l) => {
640
- const f = n == null ? void 0 : n[l], h = i == null ? void 0 : i[l];
641
- if (f === null) return null;
642
- const v = yn(f) || yn(h);
643
- return o[l][v];
644
- }), s = n && Object.entries(n).reduce((l, f) => {
645
- let [h, v] = f;
646
- return v === void 0 || (l[h] = v), l;
647
- }, {}), u = t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((l, f) => {
648
- let { class: h, className: v, ...m } = f;
649
- return Object.entries(m).every((b) => {
650
- let [p, y] = b;
651
- return Array.isArray(y) ? y.includes({
652
- ...i,
653
- ...s
654
- }[p]) : {
655
- ...i,
656
- ...s
657
- }[p] === y;
658
- }) ? [
659
- ...l,
660
- h,
661
- v
662
- ] : l;
663
- }, []);
664
- return wn(e, a, u, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
665
- }, vs = ({ children: e, className: t, ...n }) => /* @__PURE__ */ E.jsx("section", { className: U("pb-16 desktop:pb-20", t), ...n, children: e }), ms = ({ children: e, offset: t = !0, className: n, ...r }) => /* @__PURE__ */ E.jsx("div", { className: U("m-auto w-full max-w-[636px] desktop:max-w-[1140px]", { "mobile:px-4": t }, n), ...r, children: e }), mo = $e("", {
666
- variants: {
667
- position: {
668
- absolute: "absolute",
669
- static: "static",
670
- fixed: "fixed"
671
- }
672
- },
673
- defaultVariants: {
674
- position: "static"
675
- }
676
- }), go = $e("border-2 border-solid block animate-spin rounded-full", {
677
- variants: {
678
- intent: {
679
- primary: "border-white border-b-transparent",
680
- secondary: "border-primary-default border-b-transparent"
681
- },
682
- size: {
683
- sm: "size-5 border-2",
684
- md: "size-8 border-2",
685
- lg: "size-12 border-4"
686
- }
687
- },
688
- defaultVariants: {
689
- size: "md",
690
- intent: "primary"
691
- }
692
- }), yo = ({ size: e = "md", classes: t, intent: n = "secondary", position: r = "static", text: o, ...i }) => /* @__PURE__ */ E.jsxs("div", { className: U(mo({ position: r }), { "flex flex-col items-center gap-2": o }, t == null ? void 0 : t.wrapper), children: [
693
- /* @__PURE__ */ E.jsx("span", { "data-testid": "loader", className: U(go({ size: e, intent: n }), t == null ? void 0 : t.loader), ...i }),
694
- o && /* @__PURE__ */ E.jsx("p", { className: U("desk-body-regular-l text-color-dark", t == null ? void 0 : t.text), children: o })
695
- ] }), wo = (e) => {
696
- switch (e) {
697
- case "ghost":
698
- case "secondary":
699
- return "secondary";
700
- case "primary":
701
- case "negative":
702
- return "primary";
703
- default:
704
- return e;
705
- }
706
- }, bo = $e(
707
- "relative flex items-center justify-center gap-4 cursor-pointer rounded-sm w-max px-4 outline-offset-4 outline-transparent outline-2 desk-body-regular-l transition duration-12 active:scale-[0.97] disabled:pointer-events-none",
708
- {
709
- variants: {
710
- intent: {
711
- primary: "bg-color-primary-default text-color-white outline-offset-[3px] hover:bg-color-primary-hover active:bg-color-primary-hover focus:bg-color-primary-default focus:outline-primary-focus disabled:bg-color-primary-disabled",
712
- secondary: "bg-transparent text-color-primary-default border border-solid border-primary-default hover:bg-color-primary-tr-hover active:bg-color-primary-tr-pressed active:border-primary-hover focus:outline-primary-focus focus:bg-color-primary-tr-focus disabled:bg-color-blue-grey-200 disabled:text-color-primary-disabled disabled:border-transparent",
713
- ghost: "bg-transparent text-color-primary-default hover:bg-color-primary-tr-hover hover:text-color-primary-hover focus:bg-color-primary-tr-focus focus:outline-primary-focus active:bg-color-primary-tr-pressed active:text-color-primary-hover disabled:text-color-primary-disabled disabled:bg-transparent",
714
- negative: "bg-color-secondary-default text-color-white outline-offset-[3px] hover:bg-color-secondary-hover disabled:bg-color-secondary-disabled active:bg-color-secondary-hover focus:bg-color-secondary-default focus:outline-primary-focus"
715
- },
716
- size: {
717
- sm: "h-10",
718
- md: "h-12",
719
- lg: "h-14"
720
- },
721
- textFormat: {
722
- capitalize: "capitalize",
723
- uppercase: "uppercase",
724
- lowercase: "lowercase",
725
- initial: "initial"
726
- },
727
- isFull: {
728
- true: "w-full px-4"
729
- },
730
- isLoading: {
731
- true: "",
732
- false: ""
733
- }
734
- },
735
- compoundVariants: [
736
- {
737
- intent: "primary",
738
- isLoading: !0,
739
- class: "!bg-color-primary-default"
740
- },
741
- {
742
- intent: "secondary",
743
- isLoading: !0,
744
- class: "!bg-color-transparent !border-primary-hover"
745
- },
746
- {
747
- intent: "ghost",
748
- isLoading: !0,
749
- class: "!bg-color-blue-grey-200"
750
- },
751
- {
752
- intent: "negative",
753
- isLoading: !0,
754
- class: "!bg-color-secondary-default"
755
- }
756
- ],
757
- defaultVariants: {
758
- intent: "primary",
759
- size: "md",
760
- textFormat: "initial",
761
- isFull: !1
762
- }
763
- }
764
- ), gs = co(
765
- ({
766
- intent: e,
767
- size: t,
768
- className: n,
769
- children: r,
770
- type: o = "button",
771
- iconLeft: i,
772
- iconRight: a,
773
- disabled: s = !1,
774
- isLoading: u = !1,
775
- isFull: l = !1,
776
- textFormat: f,
777
- ...h
778
- }, v) => /* @__PURE__ */ E.jsx(
779
- "button",
780
- {
781
- ref: v,
782
- type: o,
783
- disabled: s || u,
784
- className: U(bo({ intent: e, size: t, textFormat: f, isLoading: u, isFull: l }), n),
785
- ...h,
786
- children: u ? /* @__PURE__ */ E.jsx(yo, { size: "sm", intent: wo(e) }) : /* @__PURE__ */ E.jsxs(E.Fragment, { children: [
787
- i && /* @__PURE__ */ E.jsx("span", { className: "flex size-5 items-center justify-center", children: i }),
788
- r,
789
- a && /* @__PURE__ */ E.jsx("span", { className: "flex size-5 items-center justify-center", children: a })
790
- ] })
791
- }
792
- )
793
- ), ys = ({ phone: e, text: t, classes: n, ...r }) => /* @__PURE__ */ E.jsxs("div", { className: U("flex w-max flex-col", n == null ? void 0 : n.wrapper), ...r, children: [
794
- /* @__PURE__ */ E.jsx(
795
- "a",
796
- {
797
- href: `tel:${e}`,
798
- className: U("mob-body-medium-l ml-auto text-color-dark desktop:desk-body-medium-l", n == null ? void 0 : n.link),
799
- children: e
800
- }
801
- ),
802
- /* @__PURE__ */ E.jsx("p", { className: U("desk-body-regular-s text-color-tetriary", n == null ? void 0 : n.text), children: t })
803
- ] }), ws = ({ children: e, className: t }) => /* @__PURE__ */ E.jsx(
804
- "span",
805
- {
806
- className: U(
807
- "desk-body-regular-m flex min-h-6 min-w-6 items-center justify-center text-nowrap rounded-full bg-color-primary-default px-2 py-[2px] text-color-white",
808
- t
809
- ),
810
- children: e
811
- }
812
- ), xo = ["top", "right", "bottom", "left"], pe = Math.min, Z = Math.max, ht = Math.round, ot = Math.floor, oe = (e) => ({
813
- x: e,
814
- y: e
815
- }), Eo = {
816
- left: "right",
817
- right: "left",
818
- bottom: "top",
819
- top: "bottom"
820
- }, Co = {
821
- start: "end",
822
- end: "start"
823
- };
824
- function It(e, t, n) {
825
- return Z(e, pe(t, n));
826
- }
827
- function ce(e, t) {
828
- return typeof e == "function" ? e(t) : e;
829
- }
830
- function le(e) {
831
- return e.split("-")[0];
832
- }
833
- function Ve(e) {
834
- return e.split("-")[1];
835
- }
836
- function Ht(e) {
837
- return e === "x" ? "y" : "x";
838
- }
839
- function Yt(e) {
840
- return e === "y" ? "height" : "width";
841
- }
842
- function ve(e) {
843
- return ["top", "bottom"].includes(le(e)) ? "y" : "x";
844
- }
845
- function Kt(e) {
846
- return Ht(ve(e));
847
- }
848
- function Ro(e, t, n) {
849
- n === void 0 && (n = !1);
850
- const r = Ve(e), o = Kt(e), i = Yt(o);
851
- let a = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
852
- return t.reference[i] > t.floating[i] && (a = pt(a)), [a, pt(a)];
853
- }
854
- function Po(e) {
855
- const t = pt(e);
856
- return [Wt(e), t, Wt(t)];
857
- }
858
- function Wt(e) {
859
- return e.replace(/start|end/g, (t) => Co[t]);
860
- }
861
- function So(e, t, n) {
862
- const r = ["left", "right"], o = ["right", "left"], i = ["top", "bottom"], a = ["bottom", "top"];
863
- switch (e) {
864
- case "top":
865
- case "bottom":
866
- return n ? t ? o : r : t ? r : o;
867
- case "left":
868
- case "right":
869
- return t ? i : a;
870
- default:
871
- return [];
872
- }
873
- }
874
- function Ao(e, t, n, r) {
875
- const o = Ve(e);
876
- let i = So(le(e), n === "start", r);
877
- return o && (i = i.map((a) => a + "-" + o), t && (i = i.concat(i.map(Wt)))), i;
878
- }
879
- function pt(e) {
880
- return e.replace(/left|right|bottom|top/g, (t) => Eo[t]);
881
- }
882
- function Oo(e) {
883
- return {
884
- top: 0,
885
- right: 0,
886
- bottom: 0,
887
- left: 0,
888
- ...e
889
- };
890
- }
891
- function zn(e) {
892
- return typeof e != "number" ? Oo(e) : {
893
- top: e,
894
- right: e,
895
- bottom: e,
896
- left: e
897
- };
898
- }
899
- function vt(e) {
900
- const {
901
- x: t,
902
- y: n,
903
- width: r,
904
- height: o
905
- } = e;
906
- return {
907
- width: r,
908
- height: o,
909
- top: n,
910
- left: t,
911
- right: t + r,
912
- bottom: n + o,
913
- x: t,
914
- y: n
915
- };
916
- }
917
- function bn(e, t, n) {
918
- let {
919
- reference: r,
920
- floating: o
921
- } = e;
922
- const i = ve(t), a = Kt(t), s = Yt(a), u = le(t), l = i === "y", f = r.x + r.width / 2 - o.width / 2, h = r.y + r.height / 2 - o.height / 2, v = r[s] / 2 - o[s] / 2;
923
- let m;
924
- switch (u) {
925
- case "top":
926
- m = {
927
- x: f,
928
- y: r.y - o.height
929
- };
930
- break;
931
- case "bottom":
932
- m = {
933
- x: f,
934
- y: r.y + r.height
935
- };
936
- break;
937
- case "right":
938
- m = {
939
- x: r.x + r.width,
940
- y: h
941
- };
942
- break;
943
- case "left":
944
- m = {
945
- x: r.x - o.width,
946
- y: h
947
- };
948
- break;
949
- default:
950
- m = {
951
- x: r.x,
952
- y: r.y
953
- };
954
- }
955
- switch (Ve(t)) {
956
- case "start":
957
- m[a] -= v * (n && l ? -1 : 1);
958
- break;
959
- case "end":
960
- m[a] += v * (n && l ? -1 : 1);
961
- break;
962
- }
963
- return m;
964
- }
965
- const To = async (e, t, n) => {
966
- const {
967
- placement: r = "bottom",
968
- strategy: o = "absolute",
969
- middleware: i = [],
970
- platform: a
971
- } = n, s = i.filter(Boolean), u = await (a.isRTL == null ? void 0 : a.isRTL(t));
972
- let l = await a.getElementRects({
973
- reference: e,
974
- floating: t,
975
- strategy: o
976
- }), {
977
- x: f,
978
- y: h
979
- } = bn(l, r, u), v = r, m = {}, b = 0;
980
- for (let p = 0; p < s.length; p++) {
981
- const {
982
- name: y,
983
- fn: w
984
- } = s[p], {
985
- x,
986
- y: P,
987
- data: R,
988
- reset: S
989
- } = await w({
990
- x: f,
991
- y: h,
992
- initialPlacement: r,
993
- placement: v,
994
- strategy: o,
995
- middlewareData: m,
996
- rects: l,
997
- platform: a,
998
- elements: {
999
- reference: e,
1000
- floating: t
1001
- }
1002
- });
1003
- f = x ?? f, h = P ?? h, m = {
1004
- ...m,
1005
- [y]: {
1006
- ...m[y],
1007
- ...R
1008
- }
1009
- }, S && b <= 50 && (b++, typeof S == "object" && (S.placement && (v = S.placement), S.rects && (l = S.rects === !0 ? await a.getElementRects({
1010
- reference: e,
1011
- floating: t,
1012
- strategy: o
1013
- }) : S.rects), {
1014
- x: f,
1015
- y: h
1016
- } = bn(l, v, u)), p = -1);
1017
- }
1018
- return {
1019
- x: f,
1020
- y: h,
1021
- placement: v,
1022
- strategy: o,
1023
- middlewareData: m
1024
- };
1025
- };
1026
- async function Be(e, t) {
1027
- var n;
1028
- t === void 0 && (t = {});
1029
- const {
1030
- x: r,
1031
- y: o,
1032
- platform: i,
1033
- rects: a,
1034
- elements: s,
1035
- strategy: u
1036
- } = e, {
1037
- boundary: l = "clippingAncestors",
1038
- rootBoundary: f = "viewport",
1039
- elementContext: h = "floating",
1040
- altBoundary: v = !1,
1041
- padding: m = 0
1042
- } = ce(t, e), b = zn(m), y = s[v ? h === "floating" ? "reference" : "floating" : h], w = vt(await i.getClippingRect({
1043
- element: (n = await (i.isElement == null ? void 0 : i.isElement(y))) == null || n ? y : y.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(s.floating)),
1044
- boundary: l,
1045
- rootBoundary: f,
1046
- strategy: u
1047
- })), x = h === "floating" ? {
1048
- x: r,
1049
- y: o,
1050
- width: a.floating.width,
1051
- height: a.floating.height
1052
- } : a.reference, P = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(s.floating)), R = await (i.isElement == null ? void 0 : i.isElement(P)) ? await (i.getScale == null ? void 0 : i.getScale(P)) || {
1053
- x: 1,
1054
- y: 1
1055
- } : {
1056
- x: 1,
1057
- y: 1
1058
- }, S = vt(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
1059
- elements: s,
1060
- rect: x,
1061
- offsetParent: P,
1062
- strategy: u
1063
- }) : x);
1064
- return {
1065
- top: (w.top - S.top + b.top) / R.y,
1066
- bottom: (S.bottom - w.bottom + b.bottom) / R.y,
1067
- left: (w.left - S.left + b.left) / R.x,
1068
- right: (S.right - w.right + b.right) / R.x
1069
- };
1070
- }
1071
- const _o = (e) => ({
1072
- name: "arrow",
1073
- options: e,
1074
- async fn(t) {
1075
- const {
1076
- x: n,
1077
- y: r,
1078
- placement: o,
1079
- rects: i,
1080
- platform: a,
1081
- elements: s,
1082
- middlewareData: u
1083
- } = t, {
1084
- element: l,
1085
- padding: f = 0
1086
- } = ce(e, t) || {};
1087
- if (l == null)
1088
- return {};
1089
- const h = zn(f), v = {
1090
- x: n,
1091
- y: r
1092
- }, m = Kt(o), b = Yt(m), p = await a.getDimensions(l), y = m === "y", w = y ? "top" : "left", x = y ? "bottom" : "right", P = y ? "clientHeight" : "clientWidth", R = i.reference[b] + i.reference[m] - v[m] - i.floating[b], S = v[m] - i.reference[m], T = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(l));
1093
- let A = T ? T[P] : 0;
1094
- (!A || !await (a.isElement == null ? void 0 : a.isElement(T))) && (A = s.floating[P] || i.floating[b]);
1095
- const D = R / 2 - S / 2, B = A / 2 - p[b] / 2 - 1, I = pe(h[w], B), X = pe(h[x], B), Y = I, j = A - p[b] - X, M = A / 2 - p[b] / 2 + D, K = It(Y, M, j), W = !u.arrow && Ve(o) != null && M !== K && i.reference[b] / 2 - (M < Y ? I : X) - p[b] / 2 < 0, $ = W ? M < Y ? M - Y : M - j : 0;
1096
- return {
1097
- [m]: v[m] + $,
1098
- data: {
1099
- [m]: K,
1100
- centerOffset: M - K - $,
1101
- ...W && {
1102
- alignmentOffset: $
1103
- }
1104
- },
1105
- reset: W
1106
- };
1107
- }
1108
- }), ko = function(e) {
1109
- return e === void 0 && (e = {}), {
1110
- name: "flip",
1111
- options: e,
1112
- async fn(t) {
1113
- var n, r;
1114
- const {
1115
- placement: o,
1116
- middlewareData: i,
1117
- rects: a,
1118
- initialPlacement: s,
1119
- platform: u,
1120
- elements: l
1121
- } = t, {
1122
- mainAxis: f = !0,
1123
- crossAxis: h = !0,
1124
- fallbackPlacements: v,
1125
- fallbackStrategy: m = "bestFit",
1126
- fallbackAxisSideDirection: b = "none",
1127
- flipAlignment: p = !0,
1128
- ...y
1129
- } = ce(e, t);
1130
- if ((n = i.arrow) != null && n.alignmentOffset)
1131
- return {};
1132
- const w = le(o), x = ve(s), P = le(s) === s, R = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)), S = v || (P || !p ? [pt(s)] : Po(s)), T = b !== "none";
1133
- !v && T && S.push(...Ao(s, p, b, R));
1134
- const A = [s, ...S], D = await Be(t, y), B = [];
1135
- let I = ((r = i.flip) == null ? void 0 : r.overflows) || [];
1136
- if (f && B.push(D[w]), h) {
1137
- const M = Ro(o, a, R);
1138
- B.push(D[M[0]], D[M[1]]);
1139
- }
1140
- if (I = [...I, {
1141
- placement: o,
1142
- overflows: B
1143
- }], !B.every((M) => M <= 0)) {
1144
- var X, Y;
1145
- const M = (((X = i.flip) == null ? void 0 : X.index) || 0) + 1, K = A[M];
1146
- if (K)
1147
- return {
1148
- data: {
1149
- index: M,
1150
- overflows: I
1151
- },
1152
- reset: {
1153
- placement: K
1154
- }
1155
- };
1156
- let W = (Y = I.filter(($) => $.overflows[0] <= 0).sort(($, k) => $.overflows[1] - k.overflows[1])[0]) == null ? void 0 : Y.placement;
1157
- if (!W)
1158
- switch (m) {
1159
- case "bestFit": {
1160
- var j;
1161
- const $ = (j = I.filter((k) => {
1162
- if (T) {
1163
- const H = ve(k.placement);
1164
- return H === x || // Create a bias to the `y` side axis due to horizontal
1165
- // reading directions favoring greater width.
1166
- H === "y";
1167
- }
1168
- return !0;
1169
- }).map((k) => [k.placement, k.overflows.filter((H) => H > 0).reduce((H, J) => H + J, 0)]).sort((k, H) => k[1] - H[1])[0]) == null ? void 0 : j[0];
1170
- $ && (W = $);
1171
- break;
1172
- }
1173
- case "initialPlacement":
1174
- W = s;
1175
- break;
1176
- }
1177
- if (o !== W)
1178
- return {
1179
- reset: {
1180
- placement: W
1181
- }
1182
- };
1183
- }
1184
- return {};
1185
- }
1186
- };
1187
- };
1188
- function xn(e, t) {
1189
- return {
1190
- top: e.top - t.height,
1191
- right: e.right - t.width,
1192
- bottom: e.bottom - t.height,
1193
- left: e.left - t.width
1194
- };
1195
- }
1196
- function En(e) {
1197
- return xo.some((t) => e[t] >= 0);
1198
- }
1199
- const No = function(e) {
1200
- return e === void 0 && (e = {}), {
1201
- name: "hide",
1202
- options: e,
1203
- async fn(t) {
1204
- const {
1205
- rects: n
1206
- } = t, {
1207
- strategy: r = "referenceHidden",
1208
- ...o
1209
- } = ce(e, t);
1210
- switch (r) {
1211
- case "referenceHidden": {
1212
- const i = await Be(t, {
1213
- ...o,
1214
- elementContext: "reference"
1215
- }), a = xn(i, n.reference);
1216
- return {
1217
- data: {
1218
- referenceHiddenOffsets: a,
1219
- referenceHidden: En(a)
1220
- }
1221
- };
1222
- }
1223
- case "escaped": {
1224
- const i = await Be(t, {
1225
- ...o,
1226
- altBoundary: !0
1227
- }), a = xn(i, n.floating);
1228
- return {
1229
- data: {
1230
- escapedOffsets: a,
1231
- escaped: En(a)
1232
- }
1233
- };
1234
- }
1235
- default:
1236
- return {};
1237
- }
1238
- }
1239
- };
1240
- };
1241
- async function jo(e, t) {
1242
- const {
1243
- placement: n,
1244
- platform: r,
1245
- elements: o
1246
- } = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), a = le(n), s = Ve(n), u = ve(n) === "y", l = ["left", "top"].includes(a) ? -1 : 1, f = i && u ? -1 : 1, h = ce(t, e);
1247
- let {
1248
- mainAxis: v,
1249
- crossAxis: m,
1250
- alignmentAxis: b
1251
- } = typeof h == "number" ? {
1252
- mainAxis: h,
1253
- crossAxis: 0,
1254
- alignmentAxis: null
1255
- } : {
1256
- mainAxis: h.mainAxis || 0,
1257
- crossAxis: h.crossAxis || 0,
1258
- alignmentAxis: h.alignmentAxis
1259
- };
1260
- return s && typeof b == "number" && (m = s === "end" ? b * -1 : b), u ? {
1261
- x: m * f,
1262
- y: v * l
1263
- } : {
1264
- x: v * l,
1265
- y: m * f
1266
- };
1267
- }
1268
- const Lo = function(e) {
1269
- return e === void 0 && (e = 0), {
1270
- name: "offset",
1271
- options: e,
1272
- async fn(t) {
1273
- var n, r;
1274
- const {
1275
- x: o,
1276
- y: i,
1277
- placement: a,
1278
- middlewareData: s
1279
- } = t, u = await jo(t, e);
1280
- return a === ((n = s.offset) == null ? void 0 : n.placement) && (r = s.arrow) != null && r.alignmentOffset ? {} : {
1281
- x: o + u.x,
1282
- y: i + u.y,
1283
- data: {
1284
- ...u,
1285
- placement: a
1286
- }
1287
- };
1288
- }
1289
- };
1290
- }, Do = function(e) {
1291
- return e === void 0 && (e = {}), {
1292
- name: "shift",
1293
- options: e,
1294
- async fn(t) {
1295
- const {
1296
- x: n,
1297
- y: r,
1298
- placement: o
1299
- } = t, {
1300
- mainAxis: i = !0,
1301
- crossAxis: a = !1,
1302
- limiter: s = {
1303
- fn: (y) => {
1304
- let {
1305
- x: w,
1306
- y: x
1307
- } = y;
1308
- return {
1309
- x: w,
1310
- y: x
1311
- };
1312
- }
1313
- },
1314
- ...u
1315
- } = ce(e, t), l = {
1316
- x: n,
1317
- y: r
1318
- }, f = await Be(t, u), h = ve(le(o)), v = Ht(h);
1319
- let m = l[v], b = l[h];
1320
- if (i) {
1321
- const y = v === "y" ? "top" : "left", w = v === "y" ? "bottom" : "right", x = m + f[y], P = m - f[w];
1322
- m = It(x, m, P);
1323
- }
1324
- if (a) {
1325
- const y = h === "y" ? "top" : "left", w = h === "y" ? "bottom" : "right", x = b + f[y], P = b - f[w];
1326
- b = It(x, b, P);
1327
- }
1328
- const p = s.fn({
1329
- ...t,
1330
- [v]: m,
1331
- [h]: b
1332
- });
1333
- return {
1334
- ...p,
1335
- data: {
1336
- x: p.x - n,
1337
- y: p.y - r,
1338
- enabled: {
1339
- [v]: i,
1340
- [h]: a
1341
- }
1342
- }
1343
- };
1344
- }
1345
- };
1346
- }, Mo = function(e) {
1347
- return e === void 0 && (e = {}), {
1348
- options: e,
1349
- fn(t) {
1350
- const {
1351
- x: n,
1352
- y: r,
1353
- placement: o,
1354
- rects: i,
1355
- middlewareData: a
1356
- } = t, {
1357
- offset: s = 0,
1358
- mainAxis: u = !0,
1359
- crossAxis: l = !0
1360
- } = ce(e, t), f = {
1361
- x: n,
1362
- y: r
1363
- }, h = ve(o), v = Ht(h);
1364
- let m = f[v], b = f[h];
1365
- const p = ce(s, t), y = typeof p == "number" ? {
1366
- mainAxis: p,
1367
- crossAxis: 0
1368
- } : {
1369
- mainAxis: 0,
1370
- crossAxis: 0,
1371
- ...p
1372
- };
1373
- if (u) {
1374
- const P = v === "y" ? "height" : "width", R = i.reference[v] - i.floating[P] + y.mainAxis, S = i.reference[v] + i.reference[P] - y.mainAxis;
1375
- m < R ? m = R : m > S && (m = S);
1376
- }
1377
- if (l) {
1378
- var w, x;
1379
- const P = v === "y" ? "width" : "height", R = ["top", "left"].includes(le(o)), S = i.reference[h] - i.floating[P] + (R && ((w = a.offset) == null ? void 0 : w[h]) || 0) + (R ? 0 : y.crossAxis), T = i.reference[h] + i.reference[P] + (R ? 0 : ((x = a.offset) == null ? void 0 : x[h]) || 0) - (R ? y.crossAxis : 0);
1380
- b < S ? b = S : b > T && (b = T);
1381
- }
1382
- return {
1383
- [v]: m,
1384
- [h]: b
1385
- };
1386
- }
1387
- };
1388
- }, Fo = function(e) {
1389
- return e === void 0 && (e = {}), {
1390
- name: "size",
1391
- options: e,
1392
- async fn(t) {
1393
- var n, r;
1394
- const {
1395
- placement: o,
1396
- rects: i,
1397
- platform: a,
1398
- elements: s
1399
- } = t, {
1400
- apply: u = () => {
1401
- },
1402
- ...l
1403
- } = ce(e, t), f = await Be(t, l), h = le(o), v = Ve(o), m = ve(o) === "y", {
1404
- width: b,
1405
- height: p
1406
- } = i.floating;
1407
- let y, w;
1408
- h === "top" || h === "bottom" ? (y = h, w = v === (await (a.isRTL == null ? void 0 : a.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (w = h, y = v === "end" ? "top" : "bottom");
1409
- const x = p - f.top - f.bottom, P = b - f.left - f.right, R = pe(p - f[y], x), S = pe(b - f[w], P), T = !t.middlewareData.shift;
1410
- let A = R, D = S;
1411
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (D = P), (r = t.middlewareData.shift) != null && r.enabled.y && (A = x), T && !v) {
1412
- const I = Z(f.left, 0), X = Z(f.right, 0), Y = Z(f.top, 0), j = Z(f.bottom, 0);
1413
- m ? D = b - 2 * (I !== 0 || X !== 0 ? I + X : Z(f.left, f.right)) : A = p - 2 * (Y !== 0 || j !== 0 ? Y + j : Z(f.top, f.bottom));
1414
- }
1415
- await u({
1416
- ...t,
1417
- availableWidth: D,
1418
- availableHeight: A
1419
- });
1420
- const B = await a.getDimensions(s.floating);
1421
- return b !== B.width || p !== B.height ? {
1422
- reset: {
1423
- rects: !0
1424
- }
1425
- } : {};
1426
- }
1427
- };
1428
- };
1429
- function gt() {
1430
- return typeof window < "u";
1431
- }
1432
- function ze(e) {
1433
- return Un(e) ? (e.nodeName || "").toLowerCase() : "#document";
1434
- }
1435
- function Q(e) {
1436
- var t;
1437
- return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
1438
- }
1439
- function ae(e) {
1440
- var t;
1441
- return (t = (Un(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1442
- }
1443
- function Un(e) {
1444
- return gt() ? e instanceof Node || e instanceof Q(e).Node : !1;
1445
- }
1446
- function te(e) {
1447
- return gt() ? e instanceof Element || e instanceof Q(e).Element : !1;
1448
- }
1449
- function ie(e) {
1450
- return gt() ? e instanceof HTMLElement || e instanceof Q(e).HTMLElement : !1;
1451
- }
1452
- function Cn(e) {
1453
- return !gt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Q(e).ShadowRoot;
1454
- }
1455
- function qe(e) {
1456
- const {
1457
- overflow: t,
1458
- overflowX: n,
1459
- overflowY: r,
1460
- display: o
1461
- } = ne(e);
1462
- return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
1463
- }
1464
- function Bo(e) {
1465
- return ["table", "td", "th"].includes(ze(e));
1466
- }
1467
- function yt(e) {
1468
- return [":popover-open", ":modal"].some((t) => {
1469
- try {
1470
- return e.matches(t);
1471
- } catch {
1472
- return !1;
1473
- }
1474
- });
1475
- }
1476
- function Xt(e) {
1477
- const t = Gt(), n = te(e) ? ne(e) : e;
1478
- return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
1479
- }
1480
- function Io(e) {
1481
- let t = me(e);
1482
- for (; ie(t) && !Ie(t); ) {
1483
- if (Xt(t))
1484
- return t;
1485
- if (yt(t))
1486
- return null;
1487
- t = me(t);
1488
- }
1489
- return null;
1490
- }
1491
- function Gt() {
1492
- return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
1493
- }
1494
- function Ie(e) {
1495
- return ["html", "body", "#document"].includes(ze(e));
1496
- }
1497
- function ne(e) {
1498
- return Q(e).getComputedStyle(e);
1499
- }
1500
- function wt(e) {
1501
- return te(e) ? {
1502
- scrollLeft: e.scrollLeft,
1503
- scrollTop: e.scrollTop
1504
- } : {
1505
- scrollLeft: e.scrollX,
1506
- scrollTop: e.scrollY
1507
- };
1508
- }
1509
- function me(e) {
1510
- if (ze(e) === "html")
1511
- return e;
1512
- const t = (
1513
- // Step into the shadow DOM of the parent of a slotted node.
1514
- e.assignedSlot || // DOM Element detected.
1515
- e.parentNode || // ShadowRoot detected.
1516
- Cn(e) && e.host || // Fallback.
1517
- ae(e)
1518
- );
1519
- return Cn(t) ? t.host : t;
1520
- }
1521
- function Hn(e) {
1522
- const t = me(e);
1523
- return Ie(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ie(t) && qe(t) ? t : Hn(t);
1524
- }
1525
- function Ge(e, t, n) {
1526
- var r;
1527
- t === void 0 && (t = []), n === void 0 && (n = !0);
1528
- const o = Hn(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), a = Q(o);
1529
- if (i) {
1530
- const s = $t(a);
1531
- return t.concat(a, a.visualViewport || [], qe(o) ? o : [], s && n ? Ge(s) : []);
1532
- }
1533
- return t.concat(o, Ge(o, [], n));
1534
- }
1535
- function $t(e) {
1536
- return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
1537
- }
1538
- function Yn(e) {
1539
- const t = ne(e);
1540
- let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
1541
- const o = ie(e), i = o ? e.offsetWidth : n, a = o ? e.offsetHeight : r, s = ht(n) !== i || ht(r) !== a;
1542
- return s && (n = i, r = a), {
1543
- width: n,
1544
- height: r,
1545
- $: s
1546
- };
1547
- }
1548
- function qt(e) {
1549
- return te(e) ? e : e.contextElement;
1550
- }
1551
- function Me(e) {
1552
- const t = qt(e);
1553
- if (!ie(t))
1554
- return oe(1);
1555
- const n = t.getBoundingClientRect(), {
1556
- width: r,
1557
- height: o,
1558
- $: i
1559
- } = Yn(t);
1560
- let a = (i ? ht(n.width) : n.width) / r, s = (i ? ht(n.height) : n.height) / o;
1561
- return (!a || !Number.isFinite(a)) && (a = 1), (!s || !Number.isFinite(s)) && (s = 1), {
1562
- x: a,
1563
- y: s
1564
- };
1565
- }
1566
- const Wo = /* @__PURE__ */ oe(0);
1567
- function Kn(e) {
1568
- const t = Q(e);
1569
- return !Gt() || !t.visualViewport ? Wo : {
1570
- x: t.visualViewport.offsetLeft,
1571
- y: t.visualViewport.offsetTop
1572
- };
1573
- }
1574
- function $o(e, t, n) {
1575
- return t === void 0 && (t = !1), !n || t && n !== Q(e) ? !1 : t;
1576
- }
1577
- function Se(e, t, n, r) {
1578
- t === void 0 && (t = !1), n === void 0 && (n = !1);
1579
- const o = e.getBoundingClientRect(), i = qt(e);
1580
- let a = oe(1);
1581
- t && (r ? te(r) && (a = Me(r)) : a = Me(e));
1582
- const s = $o(i, n, r) ? Kn(i) : oe(0);
1583
- let u = (o.left + s.x) / a.x, l = (o.top + s.y) / a.y, f = o.width / a.x, h = o.height / a.y;
1584
- if (i) {
1585
- const v = Q(i), m = r && te(r) ? Q(r) : r;
1586
- let b = v, p = $t(b);
1587
- for (; p && r && m !== b; ) {
1588
- const y = Me(p), w = p.getBoundingClientRect(), x = ne(p), P = w.left + (p.clientLeft + parseFloat(x.paddingLeft)) * y.x, R = w.top + (p.clientTop + parseFloat(x.paddingTop)) * y.y;
1589
- u *= y.x, l *= y.y, f *= y.x, h *= y.y, u += P, l += R, b = Q(p), p = $t(b);
1590
- }
1591
- }
1592
- return vt({
1593
- width: f,
1594
- height: h,
1595
- x: u,
1596
- y: l
1597
- });
1598
- }
1599
- function Jt(e, t) {
1600
- const n = wt(e).scrollLeft;
1601
- return t ? t.left + n : Se(ae(e)).left + n;
1602
- }
1603
- function Xn(e, t, n) {
1604
- n === void 0 && (n = !1);
1605
- const r = e.getBoundingClientRect(), o = r.left + t.scrollLeft - (n ? 0 : (
1606
- // RTL <body> scrollbar.
1607
- Jt(e, r)
1608
- )), i = r.top + t.scrollTop;
1609
- return {
1610
- x: o,
1611
- y: i
1612
- };
1613
- }
1614
- function Vo(e) {
1615
- let {
1616
- elements: t,
1617
- rect: n,
1618
- offsetParent: r,
1619
- strategy: o
1620
- } = e;
1621
- const i = o === "fixed", a = ae(r), s = t ? yt(t.floating) : !1;
1622
- if (r === a || s && i)
1623
- return n;
1624
- let u = {
1625
- scrollLeft: 0,
1626
- scrollTop: 0
1627
- }, l = oe(1);
1628
- const f = oe(0), h = ie(r);
1629
- if ((h || !h && !i) && ((ze(r) !== "body" || qe(a)) && (u = wt(r)), ie(r))) {
1630
- const m = Se(r);
1631
- l = Me(r), f.x = m.x + r.clientLeft, f.y = m.y + r.clientTop;
1632
- }
1633
- const v = a && !h && !i ? Xn(a, u, !0) : oe(0);
1634
- return {
1635
- width: n.width * l.x,
1636
- height: n.height * l.y,
1637
- x: n.x * l.x - u.scrollLeft * l.x + f.x + v.x,
1638
- y: n.y * l.y - u.scrollTop * l.y + f.y + v.y
1639
- };
1640
- }
1641
- function zo(e) {
1642
- return Array.from(e.getClientRects());
1643
- }
1644
- function Uo(e) {
1645
- const t = ae(e), n = wt(e), r = e.ownerDocument.body, o = Z(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = Z(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
1646
- let a = -n.scrollLeft + Jt(e);
1647
- const s = -n.scrollTop;
1648
- return ne(r).direction === "rtl" && (a += Z(t.clientWidth, r.clientWidth) - o), {
1649
- width: o,
1650
- height: i,
1651
- x: a,
1652
- y: s
1653
- };
1654
- }
1655
- function Ho(e, t) {
1656
- const n = Q(e), r = ae(e), o = n.visualViewport;
1657
- let i = r.clientWidth, a = r.clientHeight, s = 0, u = 0;
1658
- if (o) {
1659
- i = o.width, a = o.height;
1660
- const l = Gt();
1661
- (!l || l && t === "fixed") && (s = o.offsetLeft, u = o.offsetTop);
1662
- }
1663
- return {
1664
- width: i,
1665
- height: a,
1666
- x: s,
1667
- y: u
1668
- };
1669
- }
1670
- function Yo(e, t) {
1671
- const n = Se(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = ie(e) ? Me(e) : oe(1), a = e.clientWidth * i.x, s = e.clientHeight * i.y, u = o * i.x, l = r * i.y;
1672
- return {
1673
- width: a,
1674
- height: s,
1675
- x: u,
1676
- y: l
1677
- };
1678
- }
1679
- function Rn(e, t, n) {
1680
- let r;
1681
- if (t === "viewport")
1682
- r = Ho(e, n);
1683
- else if (t === "document")
1684
- r = Uo(ae(e));
1685
- else if (te(t))
1686
- r = Yo(t, n);
1687
- else {
1688
- const o = Kn(e);
1689
- r = {
1690
- x: t.x - o.x,
1691
- y: t.y - o.y,
1692
- width: t.width,
1693
- height: t.height
1694
- };
1695
- }
1696
- return vt(r);
1697
- }
1698
- function Gn(e, t) {
1699
- const n = me(e);
1700
- return n === t || !te(n) || Ie(n) ? !1 : ne(n).position === "fixed" || Gn(n, t);
1701
- }
1702
- function Ko(e, t) {
1703
- const n = t.get(e);
1704
- if (n)
1705
- return n;
1706
- let r = Ge(e, [], !1).filter((s) => te(s) && ze(s) !== "body"), o = null;
1707
- const i = ne(e).position === "fixed";
1708
- let a = i ? me(e) : e;
1709
- for (; te(a) && !Ie(a); ) {
1710
- const s = ne(a), u = Xt(a);
1711
- !u && s.position === "fixed" && (o = null), (i ? !u && !o : !u && s.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || qe(a) && !u && Gn(e, a)) ? r = r.filter((f) => f !== a) : o = s, a = me(a);
1712
- }
1713
- return t.set(e, r), r;
1714
- }
1715
- function Xo(e) {
1716
- let {
1717
- element: t,
1718
- boundary: n,
1719
- rootBoundary: r,
1720
- strategy: o
1721
- } = e;
1722
- const a = [...n === "clippingAncestors" ? yt(t) ? [] : Ko(t, this._c) : [].concat(n), r], s = a[0], u = a.reduce((l, f) => {
1723
- const h = Rn(t, f, o);
1724
- return l.top = Z(h.top, l.top), l.right = pe(h.right, l.right), l.bottom = pe(h.bottom, l.bottom), l.left = Z(h.left, l.left), l;
1725
- }, Rn(t, s, o));
1726
- return {
1727
- width: u.right - u.left,
1728
- height: u.bottom - u.top,
1729
- x: u.left,
1730
- y: u.top
1731
- };
1732
- }
1733
- function Go(e) {
1734
- const {
1735
- width: t,
1736
- height: n
1737
- } = Yn(e);
1738
- return {
1739
- width: t,
1740
- height: n
1741
- };
1742
- }
1743
- function qo(e, t, n) {
1744
- const r = ie(t), o = ae(t), i = n === "fixed", a = Se(e, !0, i, t);
1745
- let s = {
1746
- scrollLeft: 0,
1747
- scrollTop: 0
1748
- };
1749
- const u = oe(0);
1750
- if (r || !r && !i)
1751
- if ((ze(t) !== "body" || qe(o)) && (s = wt(t)), r) {
1752
- const v = Se(t, !0, i, t);
1753
- u.x = v.x + t.clientLeft, u.y = v.y + t.clientTop;
1754
- } else o && (u.x = Jt(o));
1755
- const l = o && !r && !i ? Xn(o, s) : oe(0), f = a.left + s.scrollLeft - u.x - l.x, h = a.top + s.scrollTop - u.y - l.y;
1756
- return {
1757
- x: f,
1758
- y: h,
1759
- width: a.width,
1760
- height: a.height
1761
- };
1762
- }
1763
- function Tt(e) {
1764
- return ne(e).position === "static";
1765
- }
1766
- function Pn(e, t) {
1767
- if (!ie(e) || ne(e).position === "fixed")
1768
- return null;
1769
- if (t)
1770
- return t(e);
1771
- let n = e.offsetParent;
1772
- return ae(e) === n && (n = n.ownerDocument.body), n;
1773
- }
1774
- function qn(e, t) {
1775
- const n = Q(e);
1776
- if (yt(e))
1777
- return n;
1778
- if (!ie(e)) {
1779
- let o = me(e);
1780
- for (; o && !Ie(o); ) {
1781
- if (te(o) && !Tt(o))
1782
- return o;
1783
- o = me(o);
1784
- }
1785
- return n;
1786
- }
1787
- let r = Pn(e, t);
1788
- for (; r && Bo(r) && Tt(r); )
1789
- r = Pn(r, t);
1790
- return r && Ie(r) && Tt(r) && !Xt(r) ? n : r || Io(e) || n;
1791
- }
1792
- const Jo = async function(e) {
1793
- const t = this.getOffsetParent || qn, n = this.getDimensions, r = await n(e.floating);
1794
- return {
1795
- reference: qo(e.reference, await t(e.floating), e.strategy),
1796
- floating: {
1797
- x: 0,
1798
- y: 0,
1799
- width: r.width,
1800
- height: r.height
1801
- }
1802
- };
1803
- };
1804
- function Zo(e) {
1805
- return ne(e).direction === "rtl";
1806
- }
1807
- const Qo = {
1808
- convertOffsetParentRelativeRectToViewportRelativeRect: Vo,
1809
- getDocumentElement: ae,
1810
- getClippingRect: Xo,
1811
- getOffsetParent: qn,
1812
- getElementRects: Jo,
1813
- getClientRects: zo,
1814
- getDimensions: Go,
1815
- getScale: Me,
1816
- isElement: te,
1817
- isRTL: Zo
1818
- };
1819
- function ei(e, t) {
1820
- let n = null, r;
1821
- const o = ae(e);
1822
- function i() {
1823
- var s;
1824
- clearTimeout(r), (s = n) == null || s.disconnect(), n = null;
1825
- }
1826
- function a(s, u) {
1827
- s === void 0 && (s = !1), u === void 0 && (u = 1), i();
1828
- const {
1829
- left: l,
1830
- top: f,
1831
- width: h,
1832
- height: v
1833
- } = e.getBoundingClientRect();
1834
- if (s || t(), !h || !v)
1835
- return;
1836
- const m = ot(f), b = ot(o.clientWidth - (l + h)), p = ot(o.clientHeight - (f + v)), y = ot(l), x = {
1837
- rootMargin: -m + "px " + -b + "px " + -p + "px " + -y + "px",
1838
- threshold: Z(0, pe(1, u)) || 1
1839
- };
1840
- let P = !0;
1841
- function R(S) {
1842
- const T = S[0].intersectionRatio;
1843
- if (T !== u) {
1844
- if (!P)
1845
- return a();
1846
- T ? a(!1, T) : r = setTimeout(() => {
1847
- a(!1, 1e-7);
1848
- }, 1e3);
1849
- }
1850
- P = !1;
1851
- }
1852
- try {
1853
- n = new IntersectionObserver(R, {
1854
- ...x,
1855
- // Handle <iframe>s
1856
- root: o.ownerDocument
1857
- });
1858
- } catch {
1859
- n = new IntersectionObserver(R, x);
1860
- }
1861
- n.observe(e);
1862
- }
1863
- return a(!0), i;
1864
- }
1865
- function ti(e, t, n, r) {
1866
- r === void 0 && (r = {});
1867
- const {
1868
- ancestorScroll: o = !0,
1869
- ancestorResize: i = !0,
1870
- elementResize: a = typeof ResizeObserver == "function",
1871
- layoutShift: s = typeof IntersectionObserver == "function",
1872
- animationFrame: u = !1
1873
- } = r, l = qt(e), f = o || i ? [...l ? Ge(l) : [], ...Ge(t)] : [];
1874
- f.forEach((w) => {
1875
- o && w.addEventListener("scroll", n, {
1876
- passive: !0
1877
- }), i && w.addEventListener("resize", n);
1878
- });
1879
- const h = l && s ? ei(l, n) : null;
1880
- let v = -1, m = null;
1881
- a && (m = new ResizeObserver((w) => {
1882
- let [x] = w;
1883
- x && x.target === l && m && (m.unobserve(t), cancelAnimationFrame(v), v = requestAnimationFrame(() => {
1884
- var P;
1885
- (P = m) == null || P.observe(t);
1886
- })), n();
1887
- }), l && !u && m.observe(l), m.observe(t));
1888
- let b, p = u ? Se(e) : null;
1889
- u && y();
1890
- function y() {
1891
- const w = Se(e);
1892
- p && (w.x !== p.x || w.y !== p.y || w.width !== p.width || w.height !== p.height) && n(), p = w, b = requestAnimationFrame(y);
1893
- }
1894
- return n(), () => {
1895
- var w;
1896
- f.forEach((x) => {
1897
- o && x.removeEventListener("scroll", n), i && x.removeEventListener("resize", n);
1898
- }), h == null || h(), (w = m) == null || w.disconnect(), m = null, u && cancelAnimationFrame(b);
1899
- };
1900
- }
1901
- const bs = Be, ni = Lo, ri = Do, oi = ko, ii = Fo, ai = No, Sn = _o, si = Mo, ci = (e, t, n) => {
1902
- const r = /* @__PURE__ */ new Map(), o = {
1903
- platform: Qo,
1904
- ...n
1905
- }, i = {
1906
- ...o.platform,
1907
- _c: r
1908
- };
1909
- return To(e, t, {
1910
- ...o,
1911
- platform: i
1912
- });
1913
- };
1914
- function An(e, t) {
1915
- if (typeof e == "function")
1916
- return e(t);
1917
- e != null && (e.current = t);
1918
- }
1919
- function Jn(...e) {
1920
- return (t) => {
1921
- let n = !1;
1922
- const r = e.map((o) => {
1923
- const i = An(o, t);
1924
- return !n && typeof i == "function" && (n = !0), i;
1925
- });
1926
- if (n)
1927
- return () => {
1928
- for (let o = 0; o < r.length; o++) {
1929
- const i = r[o];
1930
- typeof i == "function" ? i() : An(e[o], null);
1931
- }
1932
- };
1933
- };
1934
- }
1935
- function ye(...e) {
1936
- return d.useCallback(Jn(...e), e);
1937
- }
1938
- function Zn(e, t = []) {
1939
- let n = [];
1940
- function r(i, a) {
1941
- const s = d.createContext(a), u = n.length;
1942
- n = [...n, a];
1943
- const l = (h) => {
1944
- var w;
1945
- const { scope: v, children: m, ...b } = h, p = ((w = v == null ? void 0 : v[e]) == null ? void 0 : w[u]) || s, y = d.useMemo(() => b, Object.values(b));
1946
- return /* @__PURE__ */ E.jsx(p.Provider, { value: y, children: m });
1947
- };
1948
- l.displayName = i + "Provider";
1949
- function f(h, v) {
1950
- var p;
1951
- const m = ((p = v == null ? void 0 : v[e]) == null ? void 0 : p[u]) || s, b = d.useContext(m);
1952
- if (b) return b;
1953
- if (a !== void 0) return a;
1954
- throw new Error(`\`${h}\` must be used within \`${i}\``);
1955
- }
1956
- return [l, f];
1957
- }
1958
- const o = () => {
1959
- const i = n.map((a) => d.createContext(a));
1960
- return function(s) {
1961
- const u = (s == null ? void 0 : s[e]) || i;
1962
- return d.useMemo(
1963
- () => ({ [`__scope${e}`]: { ...s, [e]: u } }),
1964
- [s, u]
1965
- );
1966
- };
1967
- };
1968
- return o.scopeName = e, [r, li(o, ...t)];
1969
- }
1970
- function li(...e) {
1971
- const t = e[0];
1972
- if (e.length === 1) return t;
1973
- const n = () => {
1974
- const r = e.map((o) => ({
1975
- useScope: o(),
1976
- scopeName: o.scopeName
1977
- }));
1978
- return function(i) {
1979
- const a = r.reduce((s, { useScope: u, scopeName: l }) => {
1980
- const h = u(i)[`__scope${l}`];
1981
- return { ...s, ...h };
1982
- }, {});
1983
- return d.useMemo(() => ({ [`__scope${t.scopeName}`]: a }), [a]);
1984
- };
1985
- };
1986
- return n.scopeName = t.scopeName, n;
1987
- }
1988
- function he(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
1989
- return function(o) {
1990
- if (e == null || e(o), n === !1 || !o.defaultPrevented)
1991
- return t == null ? void 0 : t(o);
1992
- };
1993
- }
1994
- function ge(e) {
1995
- const t = d.useRef(e);
1996
- return d.useEffect(() => {
1997
- t.current = e;
1998
- }), d.useMemo(() => (...n) => {
1999
- var r;
2000
- return (r = t.current) == null ? void 0 : r.call(t, ...n);
2001
- }, []);
2002
- }
2003
- function ui({
2004
- prop: e,
2005
- defaultProp: t,
2006
- onChange: n = () => {
2007
- }
2008
- }) {
2009
- const [r, o] = fi({ defaultProp: t, onChange: n }), i = e !== void 0, a = i ? e : r, s = ge(n), u = d.useCallback(
2010
- (l) => {
2011
- if (i) {
2012
- const h = typeof l == "function" ? l(e) : l;
2013
- h !== e && s(h);
2014
- } else
2015
- o(l);
2016
- },
2017
- [i, e, o, s]
2018
- );
2019
- return [a, u];
2020
- }
2021
- function fi({
2022
- defaultProp: e,
2023
- onChange: t
2024
- }) {
2025
- const n = d.useState(e), [r] = n, o = d.useRef(r), i = ge(t);
2026
- return d.useEffect(() => {
2027
- o.current !== r && (i(r), o.current = r);
2028
- }, [r, o, i]), n;
2029
- }
2030
- var Ae = globalThis != null && globalThis.document ? d.useLayoutEffect : () => {
2031
- };
2032
- function di(e) {
2033
- const [t, n] = d.useState(void 0);
2034
- return Ae(() => {
2035
- if (e) {
2036
- n({ width: e.offsetWidth, height: e.offsetHeight });
2037
- const r = new ResizeObserver((o) => {
2038
- if (!Array.isArray(o) || !o.length)
2039
- return;
2040
- const i = o[0];
2041
- let a, s;
2042
- if ("borderBoxSize" in i) {
2043
- const u = i.borderBoxSize, l = Array.isArray(u) ? u[0] : u;
2044
- a = l.inlineSize, s = l.blockSize;
2045
- } else
2046
- a = e.offsetWidth, s = e.offsetHeight;
2047
- n({ width: a, height: s });
2048
- });
2049
- return r.observe(e, { box: "border-box" }), () => r.unobserve(e);
2050
- } else
2051
- n(void 0);
2052
- }, [e]), t;
2053
- }
2054
- function hi(e, t) {
2055
- return d.useReducer((n, r) => t[n][r] ?? n, e);
2056
- }
2057
- var Zt = (e) => {
2058
- const { present: t, children: n } = e, r = pi(t), o = typeof n == "function" ? n({ present: r.isPresent }) : d.Children.only(n), i = ye(r.ref, vi(o));
2059
- return typeof n == "function" || r.isPresent ? d.cloneElement(o, { ref: i }) : null;
2060
- };
2061
- Zt.displayName = "Presence";
2062
- function pi(e) {
2063
- const [t, n] = d.useState(), r = d.useRef({}), o = d.useRef(e), i = d.useRef("none"), a = e ? "mounted" : "unmounted", [s, u] = hi(a, {
2064
- mounted: {
2065
- UNMOUNT: "unmounted",
2066
- ANIMATION_OUT: "unmountSuspended"
2067
- },
2068
- unmountSuspended: {
2069
- MOUNT: "mounted",
2070
- ANIMATION_END: "unmounted"
2071
- },
2072
- unmounted: {
2073
- MOUNT: "mounted"
2074
- }
2075
- });
2076
- return d.useEffect(() => {
2077
- const l = it(r.current);
2078
- i.current = s === "mounted" ? l : "none";
2079
- }, [s]), Ae(() => {
2080
- const l = r.current, f = o.current;
2081
- if (f !== e) {
2082
- const v = i.current, m = it(l);
2083
- e ? u("MOUNT") : m === "none" || (l == null ? void 0 : l.display) === "none" ? u("UNMOUNT") : u(f && v !== m ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
2084
- }
2085
- }, [e, u]), Ae(() => {
2086
- if (t) {
2087
- let l;
2088
- const f = t.ownerDocument.defaultView ?? window, h = (m) => {
2089
- const p = it(r.current).includes(m.animationName);
2090
- if (m.target === t && p && (u("ANIMATION_END"), !o.current)) {
2091
- const y = t.style.animationFillMode;
2092
- t.style.animationFillMode = "forwards", l = f.setTimeout(() => {
2093
- t.style.animationFillMode === "forwards" && (t.style.animationFillMode = y);
2094
- });
2095
- }
2096
- }, v = (m) => {
2097
- m.target === t && (i.current = it(r.current));
2098
- };
2099
- return t.addEventListener("animationstart", v), t.addEventListener("animationcancel", h), t.addEventListener("animationend", h), () => {
2100
- f.clearTimeout(l), t.removeEventListener("animationstart", v), t.removeEventListener("animationcancel", h), t.removeEventListener("animationend", h);
2101
- };
2102
- } else
2103
- u("ANIMATION_END");
2104
- }, [t, u]), {
2105
- isPresent: ["mounted", "unmountSuspended"].includes(s),
2106
- ref: d.useCallback((l) => {
2107
- l && (r.current = getComputedStyle(l)), n(l);
2108
- }, [])
2109
- };
2110
- }
2111
- function it(e) {
2112
- return (e == null ? void 0 : e.animationName) || "none";
2113
- }
2114
- function vi(e) {
2115
- var r, o;
2116
- let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
2117
- 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);
2118
- }
2119
- var Qt = d.forwardRef((e, t) => {
2120
- const { children: n, ...r } = e, o = d.Children.toArray(n), i = o.find(gi);
2121
- if (i) {
2122
- 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);
2123
- return /* @__PURE__ */ E.jsx(Vt, { ...r, ref: t, children: d.isValidElement(a) ? d.cloneElement(a, void 0, s) : null });
2124
- }
2125
- return /* @__PURE__ */ E.jsx(Vt, { ...r, ref: t, children: n });
2126
- });
2127
- Qt.displayName = "Slot";
2128
- var Vt = d.forwardRef((e, t) => {
2129
- const { children: n, ...r } = e;
2130
- if (d.isValidElement(n)) {
2131
- const o = wi(n);
2132
- return d.cloneElement(n, {
2133
- ...yi(r, n.props),
2134
- // @ts-ignore
2135
- ref: t ? Jn(t, o) : o
2136
- });
2137
- }
2138
- return d.Children.count(n) > 1 ? d.Children.only(null) : null;
2139
- });
2140
- Vt.displayName = "SlotClone";
2141
- var mi = ({ children: e }) => /* @__PURE__ */ E.jsx(E.Fragment, { children: e });
2142
- function gi(e) {
2143
- return d.isValidElement(e) && e.type === mi;
2144
- }
2145
- function yi(e, t) {
2146
- const n = { ...t };
2147
- for (const r in t) {
2148
- const o = e[r], i = t[r];
2149
- /^on[A-Z]/.test(r) ? o && i ? n[r] = (...s) => {
2150
- i(...s), o(...s);
2151
- } : o && (n[r] = o) : r === "style" ? n[r] = { ...o, ...i } : r === "className" && (n[r] = [o, i].filter(Boolean).join(" "));
2152
- }
2153
- return { ...e, ...n };
2154
- }
2155
- function wi(e) {
2156
- var r, o;
2157
- let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
2158
- 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);
2159
- }
2160
- var bi = [
2161
- "a",
2162
- "button",
2163
- "div",
2164
- "form",
2165
- "h2",
2166
- "h3",
2167
- "img",
2168
- "input",
2169
- "label",
2170
- "li",
2171
- "nav",
2172
- "ol",
2173
- "p",
2174
- "span",
2175
- "svg",
2176
- "ul"
2177
- ], ue = bi.reduce((e, t) => {
2178
- const n = d.forwardRef((r, o) => {
2179
- const { asChild: i, ...a } = r, s = i ? Qt : t;
2180
- return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ E.jsx(s, { ...a, ref: o });
2181
- });
2182
- return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
2183
- }, {});
2184
- function xi(e, t) {
2185
- e && Vn.flushSync(() => e.dispatchEvent(t));
2186
- }
2187
- var Ei = d.useId || (() => {
2188
- }), Ci = 0;
2189
- function Ri(e) {
2190
- const [t, n] = d.useState(Ei());
2191
- return Ae(() => {
2192
- n((r) => r ?? String(Ci++));
2193
- }, [e]), t ? `radix-${t}` : "";
2194
- }
2195
- const Pi = {
2196
- arrows: {
2197
- filePath: "arrows.svg",
2198
- items: {
2199
- arrowCircle: {
2200
- viewBox: "0 0 32 32",
2201
- width: 32,
2202
- height: 32
2203
- },
2204
- arrowLink: {
2205
- viewBox: "0 0 24 24",
2206
- width: 24,
2207
- height: 24
2208
- },
2209
- arrowRight: {
2210
- viewBox: "0 0 16 17",
2211
- width: 16,
2212
- height: 17
2213
- }
2214
- }
2215
- },
2216
- brandLogos: {
2217
- filePath: "brandLogos.svg",
2218
- items: {
2219
- logoBlack: {
2220
- viewBox: "0 0 194 32",
2221
- width: 194,
2222
- height: 32
2223
- },
2224
- logoBusiness: {
2225
- viewBox: "0 0 192 32",
2226
- width: 192,
2227
- height: 32
2228
- },
2229
- logoGray: {
2230
- viewBox: "0 0 194 32",
2231
- width: 194,
2232
- height: 32
2233
- },
2234
- logoInsurance: {
2235
- viewBox: "0 0 193 32",
2236
- width: 193,
2237
- height: 32
2238
- },
2239
- logoMain: {
2240
- viewBox: "0 0 192 32",
2241
- width: 192,
2242
- height: 32
2243
- },
2244
- logoWhite: {
2245
- viewBox: "0 0 194 32",
2246
- width: 194,
2247
- height: 32
2248
- }
2249
- }
2250
- },
2251
- editor: {
2252
- filePath: "editor.svg",
2253
- items: {
2254
- bold: {
2255
- viewBox: "0 0 24 24",
2256
- width: 24,
2257
- height: 24
2258
- },
2259
- heading: {
2260
- viewBox: "0 0 24 24",
2261
- width: 24,
2262
- height: 24
2263
- },
2264
- italic: {
2265
- viewBox: "0 0 24 24",
2266
- width: 24,
2267
- height: 24
2268
- },
2269
- link: {
2270
- viewBox: "0 0 24 24",
2271
- width: 24,
2272
- height: 24
2273
- },
2274
- list: {
2275
- viewBox: "0 0 24 24",
2276
- width: 24,
2277
- height: 24
2278
- },
2279
- palette: {
2280
- viewBox: "0 0 24 24",
2281
- width: 24,
2282
- height: 24
2283
- },
2284
- redo: {
2285
- viewBox: "0 0 24 24",
2286
- width: 24,
2287
- height: 24
2288
- },
2289
- removeFormatting: {
2290
- viewBox: "0 0 24 24",
2291
- width: 24,
2292
- height: 24
2293
- },
2294
- space: {
2295
- viewBox: "0 0 24 24",
2296
- width: 24,
2297
- height: 24
2298
- },
2299
- strikethrough: {
2300
- viewBox: "0 0 24 24",
2301
- width: 24,
2302
- height: 24
2303
- },
2304
- typography: {
2305
- viewBox: "0 0 24 24",
2306
- width: 24,
2307
- height: 24
2308
- },
2309
- underline: {
2310
- viewBox: "0 0 24 24",
2311
- width: 24,
2312
- height: 24
2313
- },
2314
- undo: {
2315
- viewBox: "0 0 24 24",
2316
- width: 24,
2317
- height: 24
2318
- }
2319
- }
2320
- },
2321
- files: {
2322
- filePath: "files.svg",
2323
- items: {
2324
- border: {
2325
- viewBox: "0 0 476 64",
2326
- width: 476,
2327
- height: 64
2328
- },
2329
- borderError: {
2330
- viewBox: "0 0 476 64",
2331
- width: 476,
2332
- height: 64
2333
- },
2334
- documentFilled: {
2335
- viewBox: "0 0 22 28",
2336
- width: 22,
2337
- height: 28
2338
- },
2339
- documentOutline: {
2340
- viewBox: "0 0 22 28",
2341
- width: 22,
2342
- height: 28
2343
- },
2344
- upload: {
2345
- viewBox: "0 0 23 20",
2346
- width: 23,
2347
- height: 20
2348
- }
2349
- }
2350
- },
2351
- general: {
2352
- filePath: "general.svg",
2353
- items: {
2354
- calendar: {
2355
- viewBox: "0 0 19 20",
2356
- width: 19,
2357
- height: 20
2358
- },
2359
- check: {
2360
- viewBox: "0 0 24 24",
2361
- width: 800,
2362
- height: 800
2363
- },
2364
- close: {
2365
- viewBox: "0 0 24 24",
2366
- width: 24,
2367
- height: 24
2368
- },
2369
- edit: {
2370
- viewBox: "0 0 19 19",
2371
- width: 19,
2372
- height: 19
2373
- },
2374
- hiddenEye: {
2375
- viewBox: "0 0 20 18",
2376
- width: 20,
2377
- height: 18
2378
- },
2379
- plus: {
2380
- viewBox: "0 0 16 16",
2381
- width: 16,
2382
- height: 16
2383
- },
2384
- showEye: {
2385
- viewBox: "0 0 20 14",
2386
- width: 20,
2387
- height: 14
2388
- }
2389
- }
2390
- },
2391
- info: {
2392
- filePath: "info.svg",
2393
- items: {
2394
- helpCircle: {
2395
- viewBox: "0 0 12 12",
2396
- width: 12,
2397
- height: 12
2398
- },
2399
- warningCircle: {
2400
- viewBox: "0 0 20 20",
2401
- width: 20,
2402
- height: 20
2403
- }
2404
- }
2405
- },
2406
- logos: {
2407
- filePath: "logos.svg",
2408
- items: {
2409
- beeline: {
2410
- viewBox: "0 0 32 32",
2411
- width: 32,
2412
- height: 32
2413
- },
2414
- megafon: {
2415
- viewBox: "0 0 32 32",
2416
- width: 32,
2417
- height: 32
2418
- },
2419
- mts: {
2420
- viewBox: "0 0 32 32",
2421
- width: 32,
2422
- height: 32
2423
- }
2424
- }
2425
- },
2426
- social: {
2427
- filePath: "social.svg",
2428
- items: {
2429
- classmates: {
2430
- viewBox: "0 0 9 15",
2431
- width: 9,
2432
- height: 15
2433
- },
2434
- telegram: {
2435
- viewBox: "0 0 15 13",
2436
- width: 15,
2437
- height: 13
2438
- },
2439
- vk: {
2440
- viewBox: "0 0 16 9",
2441
- width: 16,
2442
- height: 9
2443
- }
2444
- }
2445
- }
2446
- }, Si = (e) => {
2447
- const [t, n] = e.split("/"), {
2448
- filePath: r,
2449
- items: {
2450
- [n]: { viewBox: o, width: i, height: a }
2451
- }
2452
- } = Pi[t], s = i === a ? "xy" : i > a ? "x" : "y";
2453
- return { filePath: r, iconName: n, viewBox: o, axis: s };
2454
- }, de = ({ name: e, className: t, ...n }) => {
2455
- const { viewBox: r, filePath: o, iconName: i, axis: a } = Si(e);
2456
- return /* @__PURE__ */ E.jsx(
2457
- "svg",
2458
- {
2459
- className: U("text-inherit inline-block size-6 select-none fill-current", t),
2460
- focusable: "false",
2461
- viewBox: r,
2462
- "aria-hidden": !0,
2463
- "data-axis": a,
2464
- ...n,
2465
- children: /* @__PURE__ */ E.jsx("use", { href: `/sprites/${o}#${i}` })
2466
- }
2467
- );
2468
- };
2469
- function Ai(e, t = globalThis == null ? void 0 : globalThis.document) {
2470
- const n = ge(e);
2471
- d.useEffect(() => {
2472
- const r = (o) => {
2473
- o.key === "Escape" && n(o);
2474
- };
2475
- return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
2476
- }, [n, t]);
2477
- }
2478
- var Oi = "DismissableLayer", zt = "dismissableLayer.update", Ti = "dismissableLayer.pointerDownOutside", _i = "dismissableLayer.focusOutside", On, Qn = d.createContext({
2479
- layers: /* @__PURE__ */ new Set(),
2480
- layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
2481
- branches: /* @__PURE__ */ new Set()
2482
- }), er = d.forwardRef(
2483
- (e, t) => {
2484
- const {
2485
- disableOutsidePointerEvents: n = !1,
2486
- onEscapeKeyDown: r,
2487
- onPointerDownOutside: o,
2488
- onFocusOutside: i,
2489
- onInteractOutside: a,
2490
- onDismiss: s,
2491
- ...u
2492
- } = e, l = d.useContext(Qn), [f, h] = d.useState(null), v = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = d.useState({}), b = ye(t, (A) => h(A)), p = Array.from(l.layers), [y] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), w = p.indexOf(y), x = f ? p.indexOf(f) : -1, P = l.layersWithOutsidePointerEventsDisabled.size > 0, R = x >= w, S = ji((A) => {
2493
- const D = A.target, B = [...l.branches].some((I) => I.contains(D));
2494
- !R || B || (o == null || o(A), a == null || a(A), A.defaultPrevented || s == null || s());
2495
- }, v), T = Li((A) => {
2496
- const D = A.target;
2497
- [...l.branches].some((I) => I.contains(D)) || (i == null || i(A), a == null || a(A), A.defaultPrevented || s == null || s());
2498
- }, v);
2499
- return Ai((A) => {
2500
- x === l.layers.size - 1 && (r == null || r(A), !A.defaultPrevented && s && (A.preventDefault(), s()));
2501
- }, v), d.useEffect(() => {
2502
- if (f)
2503
- return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (On = v.body.style.pointerEvents, v.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(f)), l.layers.add(f), Tn(), () => {
2504
- n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (v.body.style.pointerEvents = On);
2505
- };
2506
- }, [f, v, n, l]), d.useEffect(() => () => {
2507
- f && (l.layers.delete(f), l.layersWithOutsidePointerEventsDisabled.delete(f), Tn());
2508
- }, [f, l]), d.useEffect(() => {
2509
- const A = () => m({});
2510
- return document.addEventListener(zt, A), () => document.removeEventListener(zt, A);
2511
- }, []), /* @__PURE__ */ E.jsx(
2512
- ue.div,
2513
- {
2514
- ...u,
2515
- ref: b,
2516
- style: {
2517
- pointerEvents: P ? R ? "auto" : "none" : void 0,
2518
- ...e.style
2519
- },
2520
- onFocusCapture: he(e.onFocusCapture, T.onFocusCapture),
2521
- onBlurCapture: he(e.onBlurCapture, T.onBlurCapture),
2522
- onPointerDownCapture: he(
2523
- e.onPointerDownCapture,
2524
- S.onPointerDownCapture
2525
- )
2526
- }
2527
- );
2528
- }
2529
- );
2530
- er.displayName = Oi;
2531
- var ki = "DismissableLayerBranch", Ni = d.forwardRef((e, t) => {
2532
- const n = d.useContext(Qn), r = d.useRef(null), o = ye(t, r);
2533
- return d.useEffect(() => {
2534
- const i = r.current;
2535
- if (i)
2536
- return n.branches.add(i), () => {
2537
- n.branches.delete(i);
2538
- };
2539
- }, [n.branches]), /* @__PURE__ */ E.jsx(ue.div, { ...e, ref: o });
2540
- });
2541
- Ni.displayName = ki;
2542
- function ji(e, t = globalThis == null ? void 0 : globalThis.document) {
2543
- const n = ge(e), r = d.useRef(!1), o = d.useRef(() => {
2544
- });
2545
- return d.useEffect(() => {
2546
- const i = (s) => {
2547
- if (s.target && !r.current) {
2548
- let u = function() {
2549
- tr(
2550
- Ti,
2551
- n,
2552
- l,
2553
- { discrete: !0 }
2554
- );
2555
- };
2556
- const l = { originalEvent: s };
2557
- s.pointerType === "touch" ? (t.removeEventListener("click", o.current), o.current = u, t.addEventListener("click", o.current, { once: !0 })) : u();
2558
- } else
2559
- t.removeEventListener("click", o.current);
2560
- r.current = !1;
2561
- }, a = window.setTimeout(() => {
2562
- t.addEventListener("pointerdown", i);
2563
- }, 0);
2564
- return () => {
2565
- window.clearTimeout(a), t.removeEventListener("pointerdown", i), t.removeEventListener("click", o.current);
2566
- };
2567
- }, [t, n]), {
2568
- // ensures we check React component tree (not just DOM tree)
2569
- onPointerDownCapture: () => r.current = !0
2570
- };
2571
- }
2572
- function Li(e, t = globalThis == null ? void 0 : globalThis.document) {
2573
- const n = ge(e), r = d.useRef(!1);
2574
- return d.useEffect(() => {
2575
- const o = (i) => {
2576
- i.target && !r.current && tr(_i, n, { originalEvent: i }, {
2577
- discrete: !1
2578
- });
2579
- };
2580
- return t.addEventListener("focusin", o), () => t.removeEventListener("focusin", o);
2581
- }, [t, n]), {
2582
- onFocusCapture: () => r.current = !0,
2583
- onBlurCapture: () => r.current = !1
2584
- };
2585
- }
2586
- function Tn() {
2587
- const e = new CustomEvent(zt);
2588
- document.dispatchEvent(e);
2589
- }
2590
- function tr(e, t, n, { discrete: r }) {
2591
- const o = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
2592
- t && o.addEventListener(e, t, { once: !0 }), r ? xi(o, i) : o.dispatchEvent(i);
2593
- }
2594
- var ut = typeof document < "u" ? lo : uo;
2595
- function mt(e, t) {
2596
- if (e === t)
2597
- return !0;
2598
- if (typeof e != typeof t)
2599
- return !1;
2600
- if (typeof e == "function" && e.toString() === t.toString())
2601
- return !0;
2602
- let n, r, o;
2603
- if (e && t && typeof e == "object") {
2604
- if (Array.isArray(e)) {
2605
- if (n = e.length, n !== t.length) return !1;
2606
- for (r = n; r-- !== 0; )
2607
- if (!mt(e[r], t[r]))
2608
- return !1;
2609
- return !0;
2610
- }
2611
- if (o = Object.keys(e), n = o.length, n !== Object.keys(t).length)
2612
- return !1;
2613
- for (r = n; r-- !== 0; )
2614
- if (!{}.hasOwnProperty.call(t, o[r]))
2615
- return !1;
2616
- for (r = n; r-- !== 0; ) {
2617
- const i = o[r];
2618
- if (!(i === "_owner" && e.$$typeof) && !mt(e[i], t[i]))
2619
- return !1;
2620
- }
2621
- return !0;
2622
- }
2623
- return e !== e && t !== t;
2624
- }
2625
- function nr(e) {
2626
- return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
2627
- }
2628
- function _n(e, t) {
2629
- const n = nr(e);
2630
- return Math.round(t * n) / n;
2631
- }
2632
- function _t(e) {
2633
- const t = d.useRef(e);
2634
- return ut(() => {
2635
- t.current = e;
2636
- }), t;
2637
- }
2638
- function Di(e) {
2639
- e === void 0 && (e = {});
2640
- const {
2641
- placement: t = "bottom",
2642
- strategy: n = "absolute",
2643
- middleware: r = [],
2644
- platform: o,
2645
- elements: {
2646
- reference: i,
2647
- floating: a
2648
- } = {},
2649
- transform: s = !0,
2650
- whileElementsMounted: u,
2651
- open: l
2652
- } = e, [f, h] = d.useState({
2653
- x: 0,
2654
- y: 0,
2655
- strategy: n,
2656
- placement: t,
2657
- middlewareData: {},
2658
- isPositioned: !1
2659
- }), [v, m] = d.useState(r);
2660
- mt(v, r) || m(r);
2661
- const [b, p] = d.useState(null), [y, w] = d.useState(null), x = d.useCallback((k) => {
2662
- k !== T.current && (T.current = k, p(k));
2663
- }, []), P = d.useCallback((k) => {
2664
- k !== A.current && (A.current = k, w(k));
2665
- }, []), R = i || b, S = a || y, T = d.useRef(null), A = d.useRef(null), D = d.useRef(f), B = u != null, I = _t(u), X = _t(o), Y = _t(l), j = d.useCallback(() => {
2666
- if (!T.current || !A.current)
2667
- return;
2668
- const k = {
2669
- placement: t,
2670
- strategy: n,
2671
- middleware: v
2672
- };
2673
- X.current && (k.platform = X.current), ci(T.current, A.current, k).then((H) => {
2674
- const J = {
2675
- ...H,
2676
- // The floating element's position may be recomputed while it's closed
2677
- // but still mounted (such as when transitioning out). To ensure
2678
- // `isPositioned` will be `false` initially on the next open, avoid
2679
- // setting it to `true` when `open === false` (must be specified).
2680
- isPositioned: Y.current !== !1
2681
- };
2682
- M.current && !mt(D.current, J) && (D.current = J, Vn.flushSync(() => {
2683
- h(J);
2684
- }));
2685
- });
2686
- }, [v, t, n, X, Y]);
2687
- ut(() => {
2688
- l === !1 && D.current.isPositioned && (D.current.isPositioned = !1, h((k) => ({
2689
- ...k,
2690
- isPositioned: !1
2691
- })));
2692
- }, [l]);
2693
- const M = d.useRef(!1);
2694
- ut(() => (M.current = !0, () => {
2695
- M.current = !1;
2696
- }), []), ut(() => {
2697
- if (R && (T.current = R), S && (A.current = S), R && S) {
2698
- if (I.current)
2699
- return I.current(R, S, j);
2700
- j();
2701
- }
2702
- }, [R, S, j, I, B]);
2703
- const K = d.useMemo(() => ({
2704
- reference: T,
2705
- floating: A,
2706
- setReference: x,
2707
- setFloating: P
2708
- }), [x, P]), W = d.useMemo(() => ({
2709
- reference: R,
2710
- floating: S
2711
- }), [R, S]), $ = d.useMemo(() => {
2712
- const k = {
2713
- position: n,
2714
- left: 0,
2715
- top: 0
2716
- };
2717
- if (!W.floating)
2718
- return k;
2719
- const H = _n(W.floating, f.x), J = _n(W.floating, f.y);
2720
- return s ? {
2721
- ...k,
2722
- transform: "translate(" + H + "px, " + J + "px)",
2723
- ...nr(W.floating) >= 1.5 && {
2724
- willChange: "transform"
2725
- }
2726
- } : {
2727
- position: n,
2728
- left: H,
2729
- top: J
2730
- };
2731
- }, [n, s, W.floating, f.x, f.y]);
2732
- return d.useMemo(() => ({
2733
- ...f,
2734
- update: j,
2735
- refs: K,
2736
- elements: W,
2737
- floatingStyles: $
2738
- }), [f, j, K, W, $]);
2739
- }
2740
- const Mi = (e) => {
2741
- function t(n) {
2742
- return {}.hasOwnProperty.call(n, "current");
2743
- }
2744
- return {
2745
- name: "arrow",
2746
- options: e,
2747
- fn(n) {
2748
- const {
2749
- element: r,
2750
- padding: o
2751
- } = typeof e == "function" ? e(n) : e;
2752
- return r && t(r) ? r.current != null ? Sn({
2753
- element: r.current,
2754
- padding: o
2755
- }).fn(n) : {} : r ? Sn({
2756
- element: r,
2757
- padding: o
2758
- }).fn(n) : {};
2759
- }
2760
- };
2761
- }, Fi = (e, t) => ({
2762
- ...ni(e),
2763
- options: [e, t]
2764
- }), Bi = (e, t) => ({
2765
- ...ri(e),
2766
- options: [e, t]
2767
- }), Ii = (e, t) => ({
2768
- ...si(e),
2769
- options: [e, t]
2770
- }), Wi = (e, t) => ({
2771
- ...oi(e),
2772
- options: [e, t]
2773
- }), $i = (e, t) => ({
2774
- ...ii(e),
2775
- options: [e, t]
2776
- }), Vi = (e, t) => ({
2777
- ...ai(e),
2778
- options: [e, t]
2779
- }), zi = (e, t) => ({
2780
- ...Mi(e),
2781
- options: [e, t]
2782
- });
2783
- var Ui = "Arrow", rr = d.forwardRef((e, t) => {
2784
- const { children: n, width: r = 10, height: o = 5, ...i } = e;
2785
- return /* @__PURE__ */ E.jsx(
2786
- ue.svg,
2787
- {
2788
- ...i,
2789
- ref: t,
2790
- width: r,
2791
- height: o,
2792
- viewBox: "0 0 30 10",
2793
- preserveAspectRatio: "none",
2794
- children: e.asChild ? n : /* @__PURE__ */ E.jsx("polygon", { points: "0,0 30,0 15,10" })
2795
- }
2796
- );
2797
- });
2798
- rr.displayName = Ui;
2799
- var Hi = rr, en = "Popper", [or, ir] = Zn(en), [Yi, ar] = or(en), sr = (e) => {
2800
- const { __scopePopper: t, children: n } = e, [r, o] = d.useState(null);
2801
- return /* @__PURE__ */ E.jsx(Yi, { scope: t, anchor: r, onAnchorChange: o, children: n });
2802
- };
2803
- sr.displayName = en;
2804
- var cr = "PopperAnchor", lr = d.forwardRef(
2805
- (e, t) => {
2806
- const { __scopePopper: n, virtualRef: r, ...o } = e, i = ar(cr, n), a = d.useRef(null), s = ye(t, a);
2807
- return d.useEffect(() => {
2808
- i.onAnchorChange((r == null ? void 0 : r.current) || a.current);
2809
- }), r ? null : /* @__PURE__ */ E.jsx(ue.div, { ...o, ref: s });
2810
- }
2811
- );
2812
- lr.displayName = cr;
2813
- var tn = "PopperContent", [Ki, Xi] = or(tn), ur = d.forwardRef(
2814
- (e, t) => {
2815
- var Oe, xe, Te, Ee, et, He;
2816
- const {
2817
- __scopePopper: n,
2818
- side: r = "bottom",
2819
- sideOffset: o = 0,
2820
- align: i = "center",
2821
- alignOffset: a = 0,
2822
- arrowPadding: s = 0,
2823
- avoidCollisions: u = !0,
2824
- collisionBoundary: l = [],
2825
- collisionPadding: f = 0,
2826
- sticky: h = "partial",
2827
- hideWhenDetached: v = !1,
2828
- updatePositionStrategy: m = "optimized",
2829
- onPlaced: b,
2830
- ...p
2831
- } = e, y = ar(tn, n), [w, x] = d.useState(null), P = ye(t, (Ce) => x(Ce)), [R, S] = d.useState(null), T = di(R), A = (T == null ? void 0 : T.width) ?? 0, D = (T == null ? void 0 : T.height) ?? 0, B = r + (i !== "center" ? "-" + i : ""), I = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, X = Array.isArray(l) ? l : [l], Y = X.length > 0, j = {
2832
- padding: I,
2833
- boundary: X.filter(qi),
2834
- // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
2835
- altBoundary: Y
2836
- }, { refs: M, floatingStyles: K, placement: W, isPositioned: $, middlewareData: k } = Di({
2837
- // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
2838
- strategy: "fixed",
2839
- placement: B,
2840
- whileElementsMounted: (...Ce) => ti(...Ce, {
2841
- animationFrame: m === "always"
2842
- }),
2843
- elements: {
2844
- reference: y.anchor
2845
- },
2846
- middleware: [
2847
- Fi({ mainAxis: o + D, alignmentAxis: a }),
2848
- u && Bi({
2849
- mainAxis: !0,
2850
- crossAxis: !1,
2851
- limiter: h === "partial" ? Ii() : void 0,
2852
- ...j
2853
- }),
2854
- u && Wi({ ...j }),
2855
- $i({
2856
- ...j,
2857
- apply: ({ elements: Ce, rects: tt, availableWidth: _e, availableHeight: Re }) => {
2858
- const { width: nt, height: rt } = tt.reference, se = Ce.floating.style;
2859
- se.setProperty("--radix-popper-available-width", `${_e}px`), se.setProperty("--radix-popper-available-height", `${Re}px`), se.setProperty("--radix-popper-anchor-width", `${nt}px`), se.setProperty("--radix-popper-anchor-height", `${rt}px`);
2860
- }
2861
- }),
2862
- R && zi({ element: R, padding: s }),
2863
- Ji({ arrowWidth: A, arrowHeight: D }),
2864
- v && Vi({ strategy: "referenceHidden", ...j })
2865
- ]
2866
- }), [H, J] = hr(W), be = ge(b);
2867
- Ae(() => {
2868
- $ && (be == null || be());
2869
- }, [$, be]);
2870
- const Ze = (Oe = k.arrow) == null ? void 0 : Oe.x, Qe = (xe = k.arrow) == null ? void 0 : xe.y, xt = ((Te = k.arrow) == null ? void 0 : Te.centerOffset) !== 0, [Et, Ue] = d.useState();
2871
- return Ae(() => {
2872
- w && Ue(window.getComputedStyle(w).zIndex);
2873
- }, [w]), /* @__PURE__ */ E.jsx(
2874
- "div",
2875
- {
2876
- ref: M.setFloating,
2877
- "data-radix-popper-content-wrapper": "",
2878
- style: {
2879
- ...K,
2880
- transform: $ ? K.transform : "translate(0, -200%)",
2881
- // keep off the page when measuring
2882
- minWidth: "max-content",
2883
- zIndex: Et,
2884
- "--radix-popper-transform-origin": [
2885
- (Ee = k.transformOrigin) == null ? void 0 : Ee.x,
2886
- (et = k.transformOrigin) == null ? void 0 : et.y
2887
- ].join(" "),
2888
- // hide the content if using the hide middleware and should be hidden
2889
- // set visibility to hidden and disable pointer events so the UI behaves
2890
- // as if the PopperContent isn't there at all
2891
- ...((He = k.hide) == null ? void 0 : He.referenceHidden) && {
2892
- visibility: "hidden",
2893
- pointerEvents: "none"
2894
- }
2895
- },
2896
- dir: e.dir,
2897
- children: /* @__PURE__ */ E.jsx(
2898
- Ki,
2899
- {
2900
- scope: n,
2901
- placedSide: H,
2902
- onArrowChange: S,
2903
- arrowX: Ze,
2904
- arrowY: Qe,
2905
- shouldHideArrow: xt,
2906
- children: /* @__PURE__ */ E.jsx(
2907
- ue.div,
2908
- {
2909
- "data-side": H,
2910
- "data-align": J,
2911
- ...p,
2912
- ref: P,
2913
- style: {
2914
- ...p.style,
2915
- // if the PopperContent hasn't been placed yet (not all measurements done)
2916
- // we prevent animations so that users's animation don't kick in too early referring wrong sides
2917
- animation: $ ? void 0 : "none"
2918
- }
2919
- }
2920
- )
2921
- }
2922
- )
2923
- }
2924
- );
2925
- }
2926
- );
2927
- ur.displayName = tn;
2928
- var fr = "PopperArrow", Gi = {
2929
- top: "bottom",
2930
- right: "left",
2931
- bottom: "top",
2932
- left: "right"
2933
- }, dr = d.forwardRef(function(t, n) {
2934
- const { __scopePopper: r, ...o } = t, i = Xi(fr, r), a = Gi[i.placedSide];
2935
- return (
2936
- // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
2937
- // doesn't report size as we'd expect on SVG elements.
2938
- // it reports their bounding box which is effectively the largest path inside the SVG.
2939
- /* @__PURE__ */ E.jsx(
2940
- "span",
2941
- {
2942
- ref: i.onArrowChange,
2943
- style: {
2944
- position: "absolute",
2945
- left: i.arrowX,
2946
- top: i.arrowY,
2947
- [a]: 0,
2948
- transformOrigin: {
2949
- top: "",
2950
- right: "0 0",
2951
- bottom: "center 0",
2952
- left: "100% 0"
2953
- }[i.placedSide],
2954
- transform: {
2955
- top: "translateY(100%)",
2956
- right: "translateY(50%) rotate(90deg) translateX(-50%)",
2957
- bottom: "rotate(180deg)",
2958
- left: "translateY(50%) rotate(-90deg) translateX(50%)"
2959
- }[i.placedSide],
2960
- visibility: i.shouldHideArrow ? "hidden" : void 0
2961
- },
2962
- children: /* @__PURE__ */ E.jsx(
2963
- Hi,
2964
- {
2965
- ...o,
2966
- ref: n,
2967
- style: {
2968
- ...o.style,
2969
- // ensures the element can be measured correctly (mostly for if SVG)
2970
- display: "block"
2971
- }
2972
- }
2973
- )
2974
- }
2975
- )
2976
- );
2977
- });
2978
- dr.displayName = fr;
2979
- function qi(e) {
2980
- return e !== null;
2981
- }
2982
- var Ji = (e) => ({
2983
- name: "transformOrigin",
2984
- options: e,
2985
- fn(t) {
2986
- var y, w, x;
2987
- const { placement: n, rects: r, middlewareData: o } = t, a = ((y = o.arrow) == null ? void 0 : y.centerOffset) !== 0, s = a ? 0 : e.arrowWidth, u = a ? 0 : e.arrowHeight, [l, f] = hr(n), h = { start: "0%", center: "50%", end: "100%" }[f], v = (((w = o.arrow) == null ? void 0 : w.x) ?? 0) + s / 2, m = (((x = o.arrow) == null ? void 0 : x.y) ?? 0) + u / 2;
2988
- let b = "", p = "";
2989
- return l === "bottom" ? (b = a ? h : `${v}px`, p = `${-u}px`) : l === "top" ? (b = a ? h : `${v}px`, p = `${r.floating.height + u}px`) : l === "right" ? (b = `${-u}px`, p = a ? h : `${m}px`) : l === "left" && (b = `${r.floating.width + u}px`, p = a ? h : `${m}px`), { data: { x: b, y: p } };
2990
- }
2991
- });
2992
- function hr(e) {
2993
- const [t, n = "center"] = e.split("-");
2994
- return [t, n];
2995
- }
2996
- var Zi = sr, pr = lr, Qi = ur, ea = dr, ta = "Portal", vr = d.forwardRef((e, t) => {
2997
- var s;
2998
- const { container: n, ...r } = e, [o, i] = d.useState(!1);
2999
- Ae(() => i(!0), []);
3000
- const a = n || o && ((s = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : s.body);
3001
- return a ? ho.createPortal(/* @__PURE__ */ E.jsx(ue.div, { ...r, ref: t }), a) : null;
3002
- });
3003
- vr.displayName = ta;
3004
- var kt = 0;
3005
- function na() {
3006
- d.useEffect(() => {
3007
- const e = document.querySelectorAll("[data-radix-focus-guard]");
3008
- return document.body.insertAdjacentElement("afterbegin", e[0] ?? kn()), document.body.insertAdjacentElement("beforeend", e[1] ?? kn()), kt++, () => {
3009
- kt === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), kt--;
3010
- };
3011
- }, []);
3012
- }
3013
- function kn() {
3014
- const e = document.createElement("span");
3015
- 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;
3016
- }
3017
- var Nt = "focusScope.autoFocusOnMount", jt = "focusScope.autoFocusOnUnmount", Nn = { bubbles: !1, cancelable: !0 }, ra = "FocusScope", mr = d.forwardRef((e, t) => {
3018
- const {
3019
- loop: n = !1,
3020
- trapped: r = !1,
3021
- onMountAutoFocus: o,
3022
- onUnmountAutoFocus: i,
3023
- ...a
3024
- } = e, [s, u] = d.useState(null), l = ge(o), f = ge(i), h = d.useRef(null), v = ye(t, (p) => u(p)), m = d.useRef({
3025
- paused: !1,
3026
- pause() {
3027
- this.paused = !0;
3028
- },
3029
- resume() {
3030
- this.paused = !1;
3031
- }
3032
- }).current;
3033
- d.useEffect(() => {
3034
- if (r) {
3035
- let p = function(P) {
3036
- if (m.paused || !s) return;
3037
- const R = P.target;
3038
- s.contains(R) ? h.current = R : fe(h.current, { select: !0 });
3039
- }, y = function(P) {
3040
- if (m.paused || !s) return;
3041
- const R = P.relatedTarget;
3042
- R !== null && (s.contains(R) || fe(h.current, { select: !0 }));
3043
- }, w = function(P) {
3044
- if (document.activeElement === document.body)
3045
- for (const S of P)
3046
- S.removedNodes.length > 0 && fe(s);
3047
- };
3048
- document.addEventListener("focusin", p), document.addEventListener("focusout", y);
3049
- const x = new MutationObserver(w);
3050
- return s && x.observe(s, { childList: !0, subtree: !0 }), () => {
3051
- document.removeEventListener("focusin", p), document.removeEventListener("focusout", y), x.disconnect();
3052
- };
3053
- }
3054
- }, [r, s, m.paused]), d.useEffect(() => {
3055
- if (s) {
3056
- Ln.add(m);
3057
- const p = document.activeElement;
3058
- if (!s.contains(p)) {
3059
- const w = new CustomEvent(Nt, Nn);
3060
- s.addEventListener(Nt, l), s.dispatchEvent(w), w.defaultPrevented || (oa(la(gr(s)), { select: !0 }), document.activeElement === p && fe(s));
3061
- }
3062
- return () => {
3063
- s.removeEventListener(Nt, l), setTimeout(() => {
3064
- const w = new CustomEvent(jt, Nn);
3065
- s.addEventListener(jt, f), s.dispatchEvent(w), w.defaultPrevented || fe(p ?? document.body, { select: !0 }), s.removeEventListener(jt, f), Ln.remove(m);
3066
- }, 0);
3067
- };
3068
- }
3069
- }, [s, l, f, m]);
3070
- const b = d.useCallback(
3071
- (p) => {
3072
- if (!n && !r || m.paused) return;
3073
- const y = p.key === "Tab" && !p.altKey && !p.ctrlKey && !p.metaKey, w = document.activeElement;
3074
- if (y && w) {
3075
- const x = p.currentTarget, [P, R] = ia(x);
3076
- P && R ? !p.shiftKey && w === R ? (p.preventDefault(), n && fe(P, { select: !0 })) : p.shiftKey && w === P && (p.preventDefault(), n && fe(R, { select: !0 })) : w === x && p.preventDefault();
3077
- }
3078
- },
3079
- [n, r, m.paused]
3080
- );
3081
- return /* @__PURE__ */ E.jsx(ue.div, { tabIndex: -1, ...a, ref: v, onKeyDown: b });
3082
- });
3083
- mr.displayName = ra;
3084
- function oa(e, { select: t = !1 } = {}) {
3085
- const n = document.activeElement;
3086
- for (const r of e)
3087
- if (fe(r, { select: t }), document.activeElement !== n) return;
3088
- }
3089
- function ia(e) {
3090
- const t = gr(e), n = jn(t, e), r = jn(t.reverse(), e);
3091
- return [n, r];
3092
- }
3093
- function gr(e) {
3094
- const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
3095
- acceptNode: (r) => {
3096
- const o = r.tagName === "INPUT" && r.type === "hidden";
3097
- return r.disabled || r.hidden || o ? NodeFilter.FILTER_SKIP : r.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
3098
- }
3099
- });
3100
- for (; n.nextNode(); ) t.push(n.currentNode);
3101
- return t;
3102
- }
3103
- function jn(e, t) {
3104
- for (const n of e)
3105
- if (!aa(n, { upTo: t })) return n;
3106
- }
3107
- function aa(e, { upTo: t }) {
3108
- if (getComputedStyle(e).visibility === "hidden") return !0;
3109
- for (; e; ) {
3110
- if (t !== void 0 && e === t) return !1;
3111
- if (getComputedStyle(e).display === "none") return !0;
3112
- e = e.parentElement;
3113
- }
3114
- return !1;
3115
- }
3116
- function sa(e) {
3117
- return e instanceof HTMLInputElement && "select" in e;
3118
- }
3119
- function fe(e, { select: t = !1 } = {}) {
3120
- if (e && e.focus) {
3121
- const n = document.activeElement;
3122
- e.focus({ preventScroll: !0 }), e !== n && sa(e) && t && e.select();
3123
- }
3124
- }
3125
- var Ln = ca();
3126
- function ca() {
3127
- let e = [];
3128
- return {
3129
- add(t) {
3130
- const n = e[0];
3131
- t !== n && (n == null || n.pause()), e = Dn(e, t), e.unshift(t);
3132
- },
3133
- remove(t) {
3134
- var n;
3135
- e = Dn(e, t), (n = e[0]) == null || n.resume();
3136
- }
3137
- };
3138
- }
3139
- function Dn(e, t) {
3140
- const n = [...e], r = n.indexOf(t);
3141
- return r !== -1 && n.splice(r, 1), n;
3142
- }
3143
- function la(e) {
3144
- return e.filter((t) => t.tagName !== "A");
3145
- }
3146
- var ua = function(e) {
3147
- if (typeof document > "u")
3148
- return null;
3149
- var t = Array.isArray(e) ? e[0] : e;
3150
- return t.ownerDocument.body;
3151
- }, je = /* @__PURE__ */ new WeakMap(), at = /* @__PURE__ */ new WeakMap(), st = {}, Lt = 0, yr = function(e) {
3152
- return e && (e.host || yr(e.parentNode));
3153
- }, fa = function(e, t) {
3154
- return t.map(function(n) {
3155
- if (e.contains(n))
3156
- return n;
3157
- var r = yr(n);
3158
- return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
3159
- }).filter(function(n) {
3160
- return !!n;
3161
- });
3162
- }, da = function(e, t, n, r) {
3163
- var o = fa(t, Array.isArray(e) ? e : [e]);
3164
- st[n] || (st[n] = /* @__PURE__ */ new WeakMap());
3165
- var i = st[n], a = [], s = /* @__PURE__ */ new Set(), u = new Set(o), l = function(h) {
3166
- !h || s.has(h) || (s.add(h), l(h.parentNode));
3167
- };
3168
- o.forEach(l);
3169
- var f = function(h) {
3170
- !h || u.has(h) || Array.prototype.forEach.call(h.children, function(v) {
3171
- if (s.has(v))
3172
- f(v);
3173
- else
3174
- try {
3175
- var m = v.getAttribute(r), b = m !== null && m !== "false", p = (je.get(v) || 0) + 1, y = (i.get(v) || 0) + 1;
3176
- je.set(v, p), i.set(v, y), a.push(v), p === 1 && b && at.set(v, !0), y === 1 && v.setAttribute(n, "true"), b || v.setAttribute(r, "true");
3177
- } catch (w) {
3178
- console.error("aria-hidden: cannot operate on ", v, w);
3179
- }
3180
- });
3181
- };
3182
- return f(t), s.clear(), Lt++, function() {
3183
- a.forEach(function(h) {
3184
- var v = je.get(h) - 1, m = i.get(h) - 1;
3185
- je.set(h, v), i.set(h, m), v || (at.has(h) || h.removeAttribute(r), at.delete(h)), m || h.removeAttribute(n);
3186
- }), Lt--, Lt || (je = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap(), at = /* @__PURE__ */ new WeakMap(), st = {});
3187
- };
3188
- }, ha = function(e, t, n) {
3189
- n === void 0 && (n = "data-aria-hidden");
3190
- var r = Array.from(Array.isArray(e) ? e : [e]), o = ua(e);
3191
- return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))), da(r, o, n, "aria-hidden")) : function() {
3192
- return null;
3193
- };
3194
- }, re = function() {
3195
- return re = Object.assign || function(t) {
3196
- for (var n, r = 1, o = arguments.length; r < o; r++) {
3197
- n = arguments[r];
3198
- for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
3199
- }
3200
- return t;
3201
- }, re.apply(this, arguments);
3202
- };
3203
- function wr(e, t) {
3204
- var n = {};
3205
- for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3206
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
3207
- for (var o = 0, r = Object.getOwnPropertySymbols(e); o < r.length; o++)
3208
- t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
3209
- return n;
3210
- }
3211
- function xs(e, t, n, r) {
3212
- function o(i) {
3213
- return i instanceof n ? i : new n(function(a) {
3214
- a(i);
3215
- });
3216
- }
3217
- return new (n || (n = Promise))(function(i, a) {
3218
- function s(f) {
3219
- try {
3220
- l(r.next(f));
3221
- } catch (h) {
3222
- a(h);
3223
- }
3224
- }
3225
- function u(f) {
3226
- try {
3227
- l(r.throw(f));
3228
- } catch (h) {
3229
- a(h);
3230
- }
3231
- }
3232
- function l(f) {
3233
- f.done ? i(f.value) : o(f.value).then(s, u);
3234
- }
3235
- l((r = r.apply(e, t || [])).next());
3236
- });
3237
- }
3238
- function pa(e, t, n) {
3239
- if (n || arguments.length === 2) for (var r = 0, o = t.length, i; r < o; r++)
3240
- (i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
3241
- return e.concat(i || Array.prototype.slice.call(t));
3242
- }
3243
- var ft = "right-scroll-bar-position", dt = "width-before-scroll-bar", va = "with-scroll-bars-hidden", ma = "--removed-body-scroll-bar-size";
3244
- function Dt(e, t) {
3245
- return typeof e == "function" ? e(t) : e && (e.current = t), e;
3246
- }
3247
- function ga(e, t) {
3248
- var n = fo(function() {
3249
- return {
3250
- // value
3251
- value: e,
3252
- // last callback
3253
- callback: t,
3254
- // "memoized" public interface
3255
- facade: {
3256
- get current() {
3257
- return n.value;
3258
- },
3259
- set current(r) {
3260
- var o = n.value;
3261
- o !== r && (n.value = r, n.callback(r, o));
3262
- }
3263
- }
3264
- };
3265
- })[0];
3266
- return n.callback = t, n.facade;
3267
- }
3268
- var ya = typeof window < "u" ? d.useLayoutEffect : d.useEffect, Mn = /* @__PURE__ */ new WeakMap();
3269
- function wa(e, t) {
3270
- var n = ga(null, function(r) {
3271
- return e.forEach(function(o) {
3272
- return Dt(o, r);
3273
- });
3274
- });
3275
- return ya(function() {
3276
- var r = Mn.get(n);
3277
- if (r) {
3278
- var o = new Set(r), i = new Set(e), a = n.current;
3279
- o.forEach(function(s) {
3280
- i.has(s) || Dt(s, null);
3281
- }), i.forEach(function(s) {
3282
- o.has(s) || Dt(s, a);
3283
- });
3284
- }
3285
- Mn.set(n, e);
3286
- }, [e]), n;
3287
- }
3288
- function ba(e) {
3289
- return e;
3290
- }
3291
- function xa(e, t) {
3292
- t === void 0 && (t = ba);
3293
- var n = [], r = !1, o = {
3294
- read: function() {
3295
- if (r)
3296
- throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
3297
- return n.length ? n[n.length - 1] : e;
3298
- },
3299
- useMedium: function(i) {
3300
- var a = t(i, r);
3301
- return n.push(a), function() {
3302
- n = n.filter(function(s) {
3303
- return s !== a;
3304
- });
3305
- };
3306
- },
3307
- assignSyncMedium: function(i) {
3308
- for (r = !0; n.length; ) {
3309
- var a = n;
3310
- n = [], a.forEach(i);
3311
- }
3312
- n = {
3313
- push: function(s) {
3314
- return i(s);
3315
- },
3316
- filter: function() {
3317
- return n;
3318
- }
3319
- };
3320
- },
3321
- assignMedium: function(i) {
3322
- r = !0;
3323
- var a = [];
3324
- if (n.length) {
3325
- var s = n;
3326
- n = [], s.forEach(i), a = n;
3327
- }
3328
- var u = function() {
3329
- var f = a;
3330
- a = [], f.forEach(i);
3331
- }, l = function() {
3332
- return Promise.resolve().then(u);
3333
- };
3334
- l(), n = {
3335
- push: function(f) {
3336
- a.push(f), l();
3337
- },
3338
- filter: function(f) {
3339
- return a = a.filter(f), n;
3340
- }
3341
- };
3342
- }
3343
- };
3344
- return o;
3345
- }
3346
- function Ea(e) {
3347
- e === void 0 && (e = {});
3348
- var t = xa(null);
3349
- return t.options = re({ async: !0, ssr: !1 }, e), t;
3350
- }
3351
- var br = function(e) {
3352
- var t = e.sideCar, n = wr(e, ["sideCar"]);
3353
- if (!t)
3354
- throw new Error("Sidecar: please provide `sideCar` property to import the right car");
3355
- var r = t.read();
3356
- if (!r)
3357
- throw new Error("Sidecar medium not found");
3358
- return d.createElement(r, re({}, n));
3359
- };
3360
- br.isSideCarExport = !0;
3361
- function Ca(e, t) {
3362
- return e.useMedium(t), br;
3363
- }
3364
- var xr = Ea(), Mt = function() {
3365
- }, bt = d.forwardRef(function(e, t) {
3366
- var n = d.useRef(null), r = d.useState({
3367
- onScrollCapture: Mt,
3368
- onWheelCapture: Mt,
3369
- onTouchMoveCapture: Mt
3370
- }), o = r[0], i = r[1], a = e.forwardProps, s = e.children, u = e.className, l = e.removeScrollBar, f = e.enabled, h = e.shards, v = e.sideCar, m = e.noIsolation, b = e.inert, p = e.allowPinchZoom, y = e.as, w = y === void 0 ? "div" : y, x = e.gapMode, P = wr(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), R = v, S = wa([n, t]), T = re(re({}, P), o);
3371
- return d.createElement(
3372
- d.Fragment,
3373
- null,
3374
- f && d.createElement(R, { sideCar: xr, removeScrollBar: l, shards: h, noIsolation: m, inert: b, setCallbacks: i, allowPinchZoom: !!p, lockRef: n, gapMode: x }),
3375
- a ? d.cloneElement(d.Children.only(s), re(re({}, T), { ref: S })) : d.createElement(w, re({}, T, { className: u, ref: S }), s)
3376
- );
3377
- });
3378
- bt.defaultProps = {
3379
- enabled: !0,
3380
- removeScrollBar: !0,
3381
- inert: !1
3382
- };
3383
- bt.classNames = {
3384
- fullWidth: dt,
3385
- zeroRight: ft
3386
- };
3387
- var Ra = function() {
3388
- if (typeof __webpack_nonce__ < "u")
3389
- return __webpack_nonce__;
3390
- };
3391
- function Pa() {
3392
- if (!document)
3393
- return null;
3394
- var e = document.createElement("style");
3395
- e.type = "text/css";
3396
- var t = Ra();
3397
- return t && e.setAttribute("nonce", t), e;
3398
- }
3399
- function Sa(e, t) {
3400
- e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
3401
- }
3402
- function Aa(e) {
3403
- var t = document.head || document.getElementsByTagName("head")[0];
3404
- t.appendChild(e);
3405
- }
3406
- var Oa = function() {
3407
- var e = 0, t = null;
3408
- return {
3409
- add: function(n) {
3410
- e == 0 && (t = Pa()) && (Sa(t, n), Aa(t)), e++;
3411
- },
3412
- remove: function() {
3413
- e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
3414
- }
3415
- };
3416
- }, Ta = function() {
3417
- var e = Oa();
3418
- return function(t, n) {
3419
- d.useEffect(function() {
3420
- return e.add(t), function() {
3421
- e.remove();
3422
- };
3423
- }, [t && n]);
3424
- };
3425
- }, Er = function() {
3426
- var e = Ta(), t = function(n) {
3427
- var r = n.styles, o = n.dynamic;
3428
- return e(r, o), null;
3429
- };
3430
- return t;
3431
- }, _a = {
3432
- left: 0,
3433
- top: 0,
3434
- right: 0,
3435
- gap: 0
3436
- }, Ft = function(e) {
3437
- return parseInt(e || "", 10) || 0;
3438
- }, ka = function(e) {
3439
- var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
3440
- return [Ft(n), Ft(r), Ft(o)];
3441
- }, Na = function(e) {
3442
- if (e === void 0 && (e = "margin"), typeof window > "u")
3443
- return _a;
3444
- var t = ka(e), n = document.documentElement.clientWidth, r = window.innerWidth;
3445
- return {
3446
- left: t[0],
3447
- top: t[1],
3448
- right: t[2],
3449
- gap: Math.max(0, r - n + t[2] - t[0])
3450
- };
3451
- }, ja = Er(), Fe = "data-scroll-locked", La = function(e, t, n, r) {
3452
- var o = e.left, i = e.top, a = e.right, s = e.gap;
3453
- return n === void 0 && (n = "margin"), `
3454
- .`.concat(va, ` {
3455
- overflow: hidden `).concat(r, `;
3456
- padding-right: `).concat(s, "px ").concat(r, `;
3457
- }
3458
- body[`).concat(Fe, `] {
3459
- overflow: hidden `).concat(r, `;
3460
- overscroll-behavior: contain;
3461
- `).concat([
3462
- t && "position: relative ".concat(r, ";"),
3463
- n === "margin" && `
3464
- padding-left: `.concat(o, `px;
3465
- padding-top: `).concat(i, `px;
3466
- padding-right: `).concat(a, `px;
3467
- margin-left:0;
3468
- margin-top:0;
3469
- margin-right: `).concat(s, "px ").concat(r, `;
3470
- `),
3471
- n === "padding" && "padding-right: ".concat(s, "px ").concat(r, ";")
3472
- ].filter(Boolean).join(""), `
3473
- }
3474
-
3475
- .`).concat(ft, ` {
3476
- right: `).concat(s, "px ").concat(r, `;
3477
- }
3478
-
3479
- .`).concat(dt, ` {
3480
- margin-right: `).concat(s, "px ").concat(r, `;
3481
- }
3482
-
3483
- .`).concat(ft, " .").concat(ft, ` {
3484
- right: 0 `).concat(r, `;
3485
- }
3486
-
3487
- .`).concat(dt, " .").concat(dt, ` {
3488
- margin-right: 0 `).concat(r, `;
3489
- }
3490
-
3491
- body[`).concat(Fe, `] {
3492
- `).concat(ma, ": ").concat(s, `px;
3493
- }
3494
- `);
3495
- }, Fn = function() {
3496
- var e = parseInt(document.body.getAttribute(Fe) || "0", 10);
3497
- return isFinite(e) ? e : 0;
3498
- }, Da = function() {
3499
- d.useEffect(function() {
3500
- return document.body.setAttribute(Fe, (Fn() + 1).toString()), function() {
3501
- var e = Fn() - 1;
3502
- e <= 0 ? document.body.removeAttribute(Fe) : document.body.setAttribute(Fe, e.toString());
3503
- };
3504
- }, []);
3505
- }, Ma = function(e) {
3506
- var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
3507
- Da();
3508
- var i = d.useMemo(function() {
3509
- return Na(o);
3510
- }, [o]);
3511
- return d.createElement(ja, { styles: La(i, !t, o, n ? "" : "!important") });
3512
- }, Ut = !1;
3513
- if (typeof window < "u")
3514
- try {
3515
- var ct = Object.defineProperty({}, "passive", {
3516
- get: function() {
3517
- return Ut = !0, !0;
3518
- }
3519
- });
3520
- window.addEventListener("test", ct, ct), window.removeEventListener("test", ct, ct);
3521
- } catch {
3522
- Ut = !1;
3523
- }
3524
- var Le = Ut ? { passive: !1 } : !1, Fa = function(e) {
3525
- return e.tagName === "TEXTAREA";
3526
- }, Cr = function(e, t) {
3527
- if (!(e instanceof Element))
3528
- return !1;
3529
- var n = window.getComputedStyle(e);
3530
- return (
3531
- // not-not-scrollable
3532
- n[t] !== "hidden" && // contains scroll inside self
3533
- !(n.overflowY === n.overflowX && !Fa(e) && n[t] === "visible")
3534
- );
3535
- }, Ba = function(e) {
3536
- return Cr(e, "overflowY");
3537
- }, Ia = function(e) {
3538
- return Cr(e, "overflowX");
3539
- }, Bn = function(e, t) {
3540
- var n = t.ownerDocument, r = t;
3541
- do {
3542
- typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
3543
- var o = Rr(e, r);
3544
- if (o) {
3545
- var i = Pr(e, r), a = i[1], s = i[2];
3546
- if (a > s)
3547
- return !0;
3548
- }
3549
- r = r.parentNode;
3550
- } while (r && r !== n.body);
3551
- return !1;
3552
- }, Wa = function(e) {
3553
- var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
3554
- return [
3555
- t,
3556
- n,
3557
- r
3558
- ];
3559
- }, $a = function(e) {
3560
- var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
3561
- return [
3562
- t,
3563
- n,
3564
- r
3565
- ];
3566
- }, Rr = function(e, t) {
3567
- return e === "v" ? Ba(t) : Ia(t);
3568
- }, Pr = function(e, t) {
3569
- return e === "v" ? Wa(t) : $a(t);
3570
- }, Va = function(e, t) {
3571
- return e === "h" && t === "rtl" ? -1 : 1;
3572
- }, za = function(e, t, n, r, o) {
3573
- var i = Va(e, window.getComputedStyle(t).direction), a = i * r, s = n.target, u = t.contains(s), l = !1, f = a > 0, h = 0, v = 0;
3574
- do {
3575
- var m = Pr(e, s), b = m[0], p = m[1], y = m[2], w = p - y - i * b;
3576
- (b || w) && Rr(e, s) && (h += w, v += b), s instanceof ShadowRoot ? s = s.host : s = s.parentNode;
3577
- } while (
3578
- // portaled content
3579
- !u && s !== document.body || // self content
3580
- u && (t.contains(s) || t === s)
3581
- );
3582
- return (f && (Math.abs(h) < 1 || !o) || !f && (Math.abs(v) < 1 || !o)) && (l = !0), l;
3583
- }, lt = function(e) {
3584
- return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
3585
- }, In = function(e) {
3586
- return [e.deltaX, e.deltaY];
3587
- }, Wn = function(e) {
3588
- return e && "current" in e ? e.current : e;
3589
- }, Ua = function(e, t) {
3590
- return e[0] === t[0] && e[1] === t[1];
3591
- }, Ha = function(e) {
3592
- return `
3593
- .block-interactivity-`.concat(e, ` {pointer-events: none;}
3594
- .allow-interactivity-`).concat(e, ` {pointer-events: all;}
3595
- `);
3596
- }, Ya = 0, De = [];
3597
- function Ka(e) {
3598
- var t = d.useRef([]), n = d.useRef([0, 0]), r = d.useRef(), o = d.useState(Ya++)[0], i = d.useState(Er)[0], a = d.useRef(e);
3599
- d.useEffect(function() {
3600
- a.current = e;
3601
- }, [e]), d.useEffect(function() {
3602
- if (e.inert) {
3603
- document.body.classList.add("block-interactivity-".concat(o));
3604
- var p = pa([e.lockRef.current], (e.shards || []).map(Wn), !0).filter(Boolean);
3605
- return p.forEach(function(y) {
3606
- return y.classList.add("allow-interactivity-".concat(o));
3607
- }), function() {
3608
- document.body.classList.remove("block-interactivity-".concat(o)), p.forEach(function(y) {
3609
- return y.classList.remove("allow-interactivity-".concat(o));
3610
- });
3611
- };
3612
- }
3613
- }, [e.inert, e.lockRef.current, e.shards]);
3614
- var s = d.useCallback(function(p, y) {
3615
- if ("touches" in p && p.touches.length === 2 || p.type === "wheel" && p.ctrlKey)
3616
- return !a.current.allowPinchZoom;
3617
- var w = lt(p), x = n.current, P = "deltaX" in p ? p.deltaX : x[0] - w[0], R = "deltaY" in p ? p.deltaY : x[1] - w[1], S, T = p.target, A = Math.abs(P) > Math.abs(R) ? "h" : "v";
3618
- if ("touches" in p && A === "h" && T.type === "range")
3619
- return !1;
3620
- var D = Bn(A, T);
3621
- if (!D)
3622
- return !0;
3623
- if (D ? S = A : (S = A === "v" ? "h" : "v", D = Bn(A, T)), !D)
3624
- return !1;
3625
- if (!r.current && "changedTouches" in p && (P || R) && (r.current = S), !S)
3626
- return !0;
3627
- var B = r.current || S;
3628
- return za(B, y, p, B === "h" ? P : R, !0);
3629
- }, []), u = d.useCallback(function(p) {
3630
- var y = p;
3631
- if (!(!De.length || De[De.length - 1] !== i)) {
3632
- var w = "deltaY" in y ? In(y) : lt(y), x = t.current.filter(function(S) {
3633
- return S.name === y.type && (S.target === y.target || y.target === S.shadowParent) && Ua(S.delta, w);
3634
- })[0];
3635
- if (x && x.should) {
3636
- y.cancelable && y.preventDefault();
3637
- return;
3638
- }
3639
- if (!x) {
3640
- var P = (a.current.shards || []).map(Wn).filter(Boolean).filter(function(S) {
3641
- return S.contains(y.target);
3642
- }), R = P.length > 0 ? s(y, P[0]) : !a.current.noIsolation;
3643
- R && y.cancelable && y.preventDefault();
3644
- }
3645
- }
3646
- }, []), l = d.useCallback(function(p, y, w, x) {
3647
- var P = { name: p, delta: y, target: w, should: x, shadowParent: Xa(w) };
3648
- t.current.push(P), setTimeout(function() {
3649
- t.current = t.current.filter(function(R) {
3650
- return R !== P;
3651
- });
3652
- }, 1);
3653
- }, []), f = d.useCallback(function(p) {
3654
- n.current = lt(p), r.current = void 0;
3655
- }, []), h = d.useCallback(function(p) {
3656
- l(p.type, In(p), p.target, s(p, e.lockRef.current));
3657
- }, []), v = d.useCallback(function(p) {
3658
- l(p.type, lt(p), p.target, s(p, e.lockRef.current));
3659
- }, []);
3660
- d.useEffect(function() {
3661
- return De.push(i), e.setCallbacks({
3662
- onScrollCapture: h,
3663
- onWheelCapture: h,
3664
- onTouchMoveCapture: v
3665
- }), document.addEventListener("wheel", u, Le), document.addEventListener("touchmove", u, Le), document.addEventListener("touchstart", f, Le), function() {
3666
- De = De.filter(function(p) {
3667
- return p !== i;
3668
- }), document.removeEventListener("wheel", u, Le), document.removeEventListener("touchmove", u, Le), document.removeEventListener("touchstart", f, Le);
3669
- };
3670
- }, []);
3671
- var m = e.removeScrollBar, b = e.inert;
3672
- return d.createElement(
3673
- d.Fragment,
3674
- null,
3675
- b ? d.createElement(i, { styles: Ha(o) }) : null,
3676
- m ? d.createElement(Ma, { gapMode: e.gapMode }) : null
3677
- );
3678
- }
3679
- function Xa(e) {
3680
- for (var t = null; e !== null; )
3681
- e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
3682
- return t;
3683
- }
3684
- const Ga = Ca(xr, Ka);
3685
- var Sr = d.forwardRef(function(e, t) {
3686
- return d.createElement(bt, re({}, e, { ref: t, sideCar: Ga }));
3687
- });
3688
- Sr.classNames = bt.classNames;
3689
- var nn = "Popover", [Ar, Es] = Zn(nn, [
3690
- ir
3691
- ]), Je = ir(), [qa, we] = Ar(nn), Or = (e) => {
3692
- const {
3693
- __scopePopover: t,
3694
- children: n,
3695
- open: r,
3696
- defaultOpen: o,
3697
- onOpenChange: i,
3698
- modal: a = !1
3699
- } = e, s = Je(t), u = d.useRef(null), [l, f] = d.useState(!1), [h = !1, v] = ui({
3700
- prop: r,
3701
- defaultProp: o,
3702
- onChange: i
3703
- });
3704
- return /* @__PURE__ */ E.jsx(Zi, { ...s, children: /* @__PURE__ */ E.jsx(
3705
- qa,
3706
- {
3707
- scope: t,
3708
- contentId: Ri(),
3709
- triggerRef: u,
3710
- open: h,
3711
- onOpenChange: v,
3712
- onOpenToggle: d.useCallback(() => v((m) => !m), [v]),
3713
- hasCustomAnchor: l,
3714
- onCustomAnchorAdd: d.useCallback(() => f(!0), []),
3715
- onCustomAnchorRemove: d.useCallback(() => f(!1), []),
3716
- modal: a,
3717
- children: n
3718
- }
3719
- ) });
3720
- };
3721
- Or.displayName = nn;
3722
- var Tr = "PopoverAnchor", Ja = d.forwardRef(
3723
- (e, t) => {
3724
- const { __scopePopover: n, ...r } = e, o = we(Tr, n), i = Je(n), { onCustomAnchorAdd: a, onCustomAnchorRemove: s } = o;
3725
- return d.useEffect(() => (a(), () => s()), [a, s]), /* @__PURE__ */ E.jsx(pr, { ...i, ...r, ref: t });
3726
- }
3727
- );
3728
- Ja.displayName = Tr;
3729
- var _r = "PopoverTrigger", kr = d.forwardRef(
3730
- (e, t) => {
3731
- const { __scopePopover: n, ...r } = e, o = we(_r, n), i = Je(n), a = ye(t, o.triggerRef), s = /* @__PURE__ */ E.jsx(
3732
- ue.button,
3733
- {
3734
- type: "button",
3735
- "aria-haspopup": "dialog",
3736
- "aria-expanded": o.open,
3737
- "aria-controls": o.contentId,
3738
- "data-state": Br(o.open),
3739
- ...r,
3740
- ref: a,
3741
- onClick: he(e.onClick, o.onOpenToggle)
3742
- }
3743
- );
3744
- return o.hasCustomAnchor ? s : /* @__PURE__ */ E.jsx(pr, { asChild: !0, ...i, children: s });
3745
- }
3746
- );
3747
- kr.displayName = _r;
3748
- var rn = "PopoverPortal", [Za, Qa] = Ar(rn, {
3749
- forceMount: void 0
3750
- }), Nr = (e) => {
3751
- const { __scopePopover: t, forceMount: n, children: r, container: o } = e, i = we(rn, t);
3752
- return /* @__PURE__ */ E.jsx(Za, { scope: t, forceMount: n, children: /* @__PURE__ */ E.jsx(Zt, { present: n || i.open, children: /* @__PURE__ */ E.jsx(vr, { asChild: !0, container: o, children: r }) }) });
3753
- };
3754
- Nr.displayName = rn;
3755
- var We = "PopoverContent", jr = d.forwardRef(
3756
- (e, t) => {
3757
- const n = Qa(We, e.__scopePopover), { forceMount: r = n.forceMount, ...o } = e, i = we(We, e.__scopePopover);
3758
- return /* @__PURE__ */ E.jsx(Zt, { present: r || i.open, children: i.modal ? /* @__PURE__ */ E.jsx(es, { ...o, ref: t }) : /* @__PURE__ */ E.jsx(ts, { ...o, ref: t }) });
3759
- }
3760
- );
3761
- jr.displayName = We;
3762
- var es = d.forwardRef(
3763
- (e, t) => {
3764
- const n = we(We, e.__scopePopover), r = d.useRef(null), o = ye(t, r), i = d.useRef(!1);
3765
- return d.useEffect(() => {
3766
- const a = r.current;
3767
- if (a) return ha(a);
3768
- }, []), /* @__PURE__ */ E.jsx(Sr, { as: Qt, allowPinchZoom: !0, children: /* @__PURE__ */ E.jsx(
3769
- Lr,
3770
- {
3771
- ...e,
3772
- ref: o,
3773
- trapFocus: n.open,
3774
- disableOutsidePointerEvents: !0,
3775
- onCloseAutoFocus: he(e.onCloseAutoFocus, (a) => {
3776
- var s;
3777
- a.preventDefault(), i.current || (s = n.triggerRef.current) == null || s.focus();
3778
- }),
3779
- onPointerDownOutside: he(
3780
- e.onPointerDownOutside,
3781
- (a) => {
3782
- const s = a.detail.originalEvent, u = s.button === 0 && s.ctrlKey === !0, l = s.button === 2 || u;
3783
- i.current = l;
3784
- },
3785
- { checkForDefaultPrevented: !1 }
3786
- ),
3787
- onFocusOutside: he(
3788
- e.onFocusOutside,
3789
- (a) => a.preventDefault(),
3790
- { checkForDefaultPrevented: !1 }
3791
- )
3792
- }
3793
- ) });
3794
- }
3795
- ), ts = d.forwardRef(
3796
- (e, t) => {
3797
- const n = we(We, e.__scopePopover), r = d.useRef(!1), o = d.useRef(!1);
3798
- return /* @__PURE__ */ E.jsx(
3799
- Lr,
3800
- {
3801
- ...e,
3802
- ref: t,
3803
- trapFocus: !1,
3804
- disableOutsidePointerEvents: !1,
3805
- onCloseAutoFocus: (i) => {
3806
- var a, s;
3807
- (a = e.onCloseAutoFocus) == null || a.call(e, i), i.defaultPrevented || (r.current || (s = n.triggerRef.current) == null || s.focus(), i.preventDefault()), r.current = !1, o.current = !1;
3808
- },
3809
- onInteractOutside: (i) => {
3810
- var u, l;
3811
- (u = e.onInteractOutside) == null || u.call(e, i), i.defaultPrevented || (r.current = !0, i.detail.originalEvent.type === "pointerdown" && (o.current = !0));
3812
- const a = i.target;
3813
- ((l = n.triggerRef.current) == null ? void 0 : l.contains(a)) && i.preventDefault(), i.detail.originalEvent.type === "focusin" && o.current && i.preventDefault();
3814
- }
3815
- }
3816
- );
3817
- }
3818
- ), Lr = d.forwardRef(
3819
- (e, t) => {
3820
- const {
3821
- __scopePopover: n,
3822
- trapFocus: r,
3823
- onOpenAutoFocus: o,
3824
- onCloseAutoFocus: i,
3825
- disableOutsidePointerEvents: a,
3826
- onEscapeKeyDown: s,
3827
- onPointerDownOutside: u,
3828
- onFocusOutside: l,
3829
- onInteractOutside: f,
3830
- ...h
3831
- } = e, v = we(We, n), m = Je(n);
3832
- return na(), /* @__PURE__ */ E.jsx(
3833
- mr,
3834
- {
3835
- asChild: !0,
3836
- loop: !0,
3837
- trapped: r,
3838
- onMountAutoFocus: o,
3839
- onUnmountAutoFocus: i,
3840
- children: /* @__PURE__ */ E.jsx(
3841
- er,
3842
- {
3843
- asChild: !0,
3844
- disableOutsidePointerEvents: a,
3845
- onInteractOutside: f,
3846
- onEscapeKeyDown: s,
3847
- onPointerDownOutside: u,
3848
- onFocusOutside: l,
3849
- onDismiss: () => v.onOpenChange(!1),
3850
- children: /* @__PURE__ */ E.jsx(
3851
- Qi,
3852
- {
3853
- "data-state": Br(v.open),
3854
- role: "dialog",
3855
- id: v.contentId,
3856
- ...m,
3857
- ...h,
3858
- ref: t,
3859
- style: {
3860
- ...h.style,
3861
- "--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
3862
- "--radix-popover-content-available-width": "var(--radix-popper-available-width)",
3863
- "--radix-popover-content-available-height": "var(--radix-popper-available-height)",
3864
- "--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
3865
- "--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
3866
- }
3867
- }
3868
- )
3869
- }
3870
- )
3871
- }
3872
- );
3873
- }
3874
- ), Dr = "PopoverClose", Mr = d.forwardRef(
3875
- (e, t) => {
3876
- const { __scopePopover: n, ...r } = e, o = we(Dr, n);
3877
- return /* @__PURE__ */ E.jsx(
3878
- ue.button,
3879
- {
3880
- type: "button",
3881
- ...r,
3882
- ref: t,
3883
- onClick: he(e.onClick, () => o.onOpenChange(!1))
3884
- }
3885
- );
3886
- }
3887
- );
3888
- Mr.displayName = Dr;
3889
- var ns = "PopoverArrow", Fr = d.forwardRef(
3890
- (e, t) => {
3891
- const { __scopePopover: n, ...r } = e, o = Je(n);
3892
- return /* @__PURE__ */ E.jsx(ea, { ...o, ...r, ref: t });
3893
- }
3894
- );
3895
- Fr.displayName = ns;
3896
- function Br(e) {
3897
- return e ? "open" : "closed";
3898
- }
3899
- var rs = Or, os = kr, is = Nr, as = jr, ss = Mr, cs = Fr;
3900
- const Cs = ({
3901
- triggerElement: e,
3902
- classes: t,
3903
- sideOffset: n = 4,
3904
- alignOffset: r,
3905
- align: o,
3906
- side: i,
3907
- defaultOpen: a = !1,
3908
- avoidCollisions: s = !0,
3909
- children: u,
3910
- arrowPadding: l,
3911
- portalContainer: f,
3912
- ...h
3913
- }) => /* @__PURE__ */ E.jsxs(rs, { defaultOpen: a, children: [
3914
- /* @__PURE__ */ E.jsx("div", { className: U("flex w-max items-center gap-2", t == null ? void 0 : t.root), children: /* @__PURE__ */ E.jsx(
3915
- os,
3916
- {
3917
- "aria-label": "tooltip",
3918
- className: U("flex cursor-pointer items-center justify-center", t == null ? void 0 : t.trigger),
3919
- children: e
3920
- }
3921
- ) }),
3922
- /* @__PURE__ */ E.jsx(is, { container: f, children: /* @__PURE__ */ E.jsxs(
3923
- as,
3924
- {
3925
- className: U(
3926
- "desk-body-regular-m flex w-64 items-start gap-2 rounded-sm bg-color-white p-4 shadow-sm outline-none",
3927
- t == null ? void 0 : t.content
3928
- ),
3929
- sideOffset: n,
3930
- alignOffset: r,
3931
- avoidCollisions: s,
3932
- arrowPadding: l,
3933
- align: o,
3934
- side: i,
3935
- ...h,
3936
- children: [
3937
- u,
3938
- /* @__PURE__ */ E.jsx(
3939
- ss,
3940
- {
3941
- "aria-label": "Close",
3942
- className: U("flex size-5 items-center justify-center outline-0 outline-transparent", t == null ? void 0 : t.closeTrigger),
3943
- children: /* @__PURE__ */ E.jsx(
3944
- de,
3945
- {
3946
- name: "general/close",
3947
- className: U(
3948
- "size-5 cursor-pointer text-icon-blue-grey-600 transition-colors hover:text-icon-blue-grey-800",
3949
- t == null ? void 0 : t.closeIcon
3950
- )
3951
- }
3952
- )
3953
- }
3954
- ),
3955
- /* @__PURE__ */ E.jsx(cs, { width: 12, height: 6, className: U("fill-white", t == null ? void 0 : t.arrowIcon) })
3956
- ]
3957
- }
3958
- ) })
3959
- ] }), ls = $e("", {
3960
- variants: {
3961
- as: {
3962
- h1: "mob-headline-bold-m desktop:desk-headline-bold-l",
3963
- h2: "mob-headline-bold-s desktop:desk-headline-bold-m",
3964
- h3: "mob-title-bold-l desktop:desk-title-bold-l",
3965
- h4: "mob-title-bold-m desktop:desk-title-bold-s"
3966
- // # add h5 and h6 if need
3967
- }
3968
- },
3969
- defaultVariants: {
3970
- as: "h2"
3971
- }
3972
- }), Rs = ({ as: e = "h2", children: t, className: n, ...r }) => {
3973
- const o = e;
3974
- return /* @__PURE__ */ E.jsx(o, { className: U(ls({ as: e }), n), ...r, children: t });
3975
- }, Ps = {
3976
- main: /* @__PURE__ */ E.jsx(de, { name: "brandLogos/logoMain" }),
3977
- white: /* @__PURE__ */ E.jsx(de, { name: "brandLogos/logoWhite" }),
3978
- gray: /* @__PURE__ */ E.jsx(de, { name: "brandLogos/logoGray" }),
3979
- black: /* @__PURE__ */ E.jsx(de, { name: "brandLogos/logoBlack" }),
3980
- business: /* @__PURE__ */ E.jsx(de, { name: "brandLogos/logoBusiness" }),
3981
- insurance: /* @__PURE__ */ E.jsx(de, { name: "brandLogos/logoInsurance" })
3982
- }, us = $e(
3983
- "group outline-none transition-colors duration-100 p-[2px] rounded-sm border border-solid border-transparent",
3984
- {
3985
- variants: {
3986
- intent: {
3987
- blue: "text-color-primary-default hover:text-color-primary-hover focus:text-color-primary-default focus:border-primary-focus",
3988
- white: "text-color-white hover:text-color-footer focus:text-color-white focus:border-primary-focus"
3989
- },
3990
- withUnderline: {
3991
- true: "underline underline-offset-4",
3992
- false: ""
3993
- },
3994
- withIcon: {
3995
- true: "flex items-center gap-1",
3996
- false: ""
3997
- },
3998
- disabled: {
3999
- true: "!text-color-primary-disabled pointer-events-none !border-transparent",
4000
- false: ""
4001
- },
4002
- size: {
4003
- sm: "desk-body-regular-m",
4004
- md: "desk-body-regular-l"
4005
- }
4006
- },
4007
- defaultVariants: {
4008
- intent: "blue",
4009
- withIcon: !0,
4010
- disabled: !1,
4011
- size: "sm",
4012
- withUnderline: !1
4013
- }
4014
- }
4015
- ), fs = $e("size-6", {
4016
- variants: {
4017
- intent: {
4018
- blue: "text-icon-primary-default group-hover:text-icon-primary-hover group-focus:text-icon-primary-default ",
4019
- white: "text-icon-white group-hover:text-icon-footer group-focus:text-icon-white"
4020
- },
4021
- disabled: {
4022
- true: "!text-icon-primary-disabled pointer-events-none",
4023
- false: ""
4024
- }
4025
- },
4026
- defaultVariants: {
4027
- intent: "blue",
4028
- disabled: !1
4029
- }
4030
- }), Ss = ({
4031
- intent: e,
4032
- children: t,
4033
- withIcon: n,
4034
- disabled: r,
4035
- size: o,
4036
- icon: i = "arrows/arrowLink",
4037
- classes: a,
4038
- withUnderline: s,
4039
- ...u
4040
- }) => /* @__PURE__ */ E.jsxs("a", { className: U(us({ intent: e, withIcon: n, withUnderline: s, disabled: r, size: o }), a == null ? void 0 : a.link), ...u, children: [
4041
- t,
4042
- n && /* @__PURE__ */ E.jsx(de, { name: i, className: U(fs({ intent: e, disabled: r }), a == null ? void 0 : a.icon) })
4043
- ] });
4044
- export {
4045
- pr as A,
4046
- gs as B,
4047
- Ss as C,
4048
- er as D,
4049
- bs as E,
4050
- Z as F,
4051
- pe as G,
4052
- Rs as H,
4053
- de as I,
4054
- ht as J,
4055
- Bi as K,
4056
- yo as L,
4057
- Wi as M,
4058
- $i as N,
4059
- ys as P,
4060
- ms as R,
4061
- vs as S,
4062
- xs as _,
4063
- Cs as a,
4064
- Ps as b,
4065
- $e as c,
4066
- ws as d,
4067
- ti as e,
4068
- Zn as f,
4069
- ui as g,
4070
- ue as h,
4071
- he as i,
4072
- E as j,
4073
- Zt as k,
4074
- di as l,
4075
- Qt as m,
4076
- Ri as n,
4077
- Ae as o,
4078
- ir as p,
4079
- Qi as q,
4080
- mi as r,
4081
- ea as s,
4082
- Zi as t,
4083
- ye as u,
4084
- ge as v,
4085
- Di as w,
4086
- te as x,
4087
- ce as y,
4088
- Fi as z
4089
- };
4090
- //# sourceMappingURL=CustomLink-DmCJLTWC.js.map