@devstgo/stgo-salta-components-react 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as g from "react";
|
|
2
|
-
import Au, { createContext as Ke, useRef as
|
|
2
|
+
import Au, { createContext as Ke, useRef as ve, useLayoutEffect as Lu, useEffect as ie, useId as Ti, useContext as be, useInsertionEffect as Si, useMemo as jt, useCallback as dn, Children as Vu, isValidElement as Ou, useState as O, Fragment as va, createElement as Du, forwardRef as _u, Component as Fu } from "react";
|
|
3
3
|
import * as Ni from "lucide-react";
|
|
4
4
|
import { Grid2x2 as wa, ChevronUp as Ta, ChevronDown as ki, X as ht, Mail as $u, Calendar as Bu, Camera as zu, Music as Wu, Map as Yu, Settings as Uu, Cloud as Hu, Phone as Xu, MessageSquare as Gu, AppWindow as Ku, FileText as Zu, ImageIcon as qu, ChevronLeft as hn, ChevronRight as fn, Check as Sa, Layers as dt, Play as Ju, Plus as Qu, Minus as ed, LinkIcon as xs, Languages as td, Presentation as nd, Zap as So, Ship as sd, Network as id, BookOpen as od, Globe as rd, Cpu as ad, GitMerge as ld, Box as cd, Gauge as ud, Flame as dd, Scale as hd, ArrowLeft as Gn, Home as fd, Video as md, ExternalLink as pd } from "lucide-react";
|
|
5
|
-
import { useNavigate as
|
|
5
|
+
import { useNavigate as nt, useLocation as wn, useSearchParams as gd, Outlet as is, useParams as Na } from "react-router-dom";
|
|
6
6
|
import { useTranslation as Xt } from "react-i18next";
|
|
7
7
|
import { createPortal as ka } from "react-dom";
|
|
8
8
|
import { t as bd } from "i18next";
|
|
9
9
|
let Ea;
|
|
10
10
|
const Cy = (e) => {
|
|
11
11
|
Ea = e;
|
|
12
|
-
},
|
|
12
|
+
}, we = () => Ea;
|
|
13
13
|
var Mn = { exports: {} }, nn = {};
|
|
14
14
|
var No;
|
|
15
15
|
function yd() {
|
|
@@ -92,11 +92,11 @@ function xd() {
|
|
|
92
92
|
}
|
|
93
93
|
if (A) {
|
|
94
94
|
A = console;
|
|
95
|
-
var ee = A.error,
|
|
95
|
+
var ee = A.error, re = typeof Symbol == "function" && Symbol.toStringTag && T[Symbol.toStringTag] || T.constructor.name || "Object";
|
|
96
96
|
return ee.call(
|
|
97
97
|
A,
|
|
98
98
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
99
|
-
|
|
99
|
+
re
|
|
100
100
|
), t(T);
|
|
101
101
|
}
|
|
102
102
|
}
|
|
@@ -112,7 +112,7 @@ function xd() {
|
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
function i() {
|
|
115
|
-
var T =
|
|
115
|
+
var T = q.A;
|
|
116
116
|
return T === null ? null : T.getOwner();
|
|
117
117
|
}
|
|
118
118
|
function r() {
|
|
@@ -127,7 +127,7 @@ function xd() {
|
|
|
127
127
|
}
|
|
128
128
|
function l(T, A) {
|
|
129
129
|
function ee() {
|
|
130
|
-
|
|
130
|
+
Z || (Z = !0, console.error(
|
|
131
131
|
"%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://react.dev/link/special-props)",
|
|
132
132
|
A
|
|
133
133
|
));
|
|
@@ -143,15 +143,15 @@ function xd() {
|
|
|
143
143
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
144
144
|
)), T = this.props.ref, T !== void 0 ? T : null;
|
|
145
145
|
}
|
|
146
|
-
function u(T, A, ee,
|
|
147
|
-
var
|
|
146
|
+
function u(T, A, ee, re, ne, ae) {
|
|
147
|
+
var oe = ee.ref;
|
|
148
148
|
return T = {
|
|
149
149
|
$$typeof: p,
|
|
150
150
|
type: T,
|
|
151
151
|
key: A,
|
|
152
152
|
props: ee,
|
|
153
|
-
_owner:
|
|
154
|
-
}, (
|
|
153
|
+
_owner: re
|
|
154
|
+
}, (oe !== void 0 ? oe : null) !== null ? Object.defineProperty(T, "ref", {
|
|
155
155
|
enumerable: !1,
|
|
156
156
|
get: c
|
|
157
157
|
}) : Object.defineProperty(T, "ref", { enumerable: !1, value: null }), T._store = {}, Object.defineProperty(T._store, "validated", {
|
|
@@ -168,60 +168,60 @@ function xd() {
|
|
|
168
168
|
configurable: !1,
|
|
169
169
|
enumerable: !1,
|
|
170
170
|
writable: !0,
|
|
171
|
-
value:
|
|
171
|
+
value: ne
|
|
172
172
|
}), Object.defineProperty(T, "_debugTask", {
|
|
173
173
|
configurable: !1,
|
|
174
174
|
enumerable: !1,
|
|
175
175
|
writable: !0,
|
|
176
|
-
value:
|
|
176
|
+
value: ae
|
|
177
177
|
}), Object.freeze && (Object.freeze(T.props), Object.freeze(T)), T;
|
|
178
178
|
}
|
|
179
|
-
function d(T, A, ee,
|
|
180
|
-
var
|
|
181
|
-
if (
|
|
182
|
-
if (
|
|
183
|
-
if (te(
|
|
184
|
-
for (
|
|
185
|
-
h(
|
|
186
|
-
Object.freeze && Object.freeze(
|
|
179
|
+
function d(T, A, ee, re, ne, ae) {
|
|
180
|
+
var oe = A.children;
|
|
181
|
+
if (oe !== void 0)
|
|
182
|
+
if (re)
|
|
183
|
+
if (te(oe)) {
|
|
184
|
+
for (re = 0; re < oe.length; re++)
|
|
185
|
+
h(oe[re]);
|
|
186
|
+
Object.freeze && Object.freeze(oe);
|
|
187
187
|
} else
|
|
188
188
|
console.error(
|
|
189
189
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
190
190
|
);
|
|
191
|
-
else h(
|
|
191
|
+
else h(oe);
|
|
192
192
|
if (D.call(A, "key")) {
|
|
193
|
-
|
|
194
|
-
var ge = Object.keys(A).filter(function(
|
|
195
|
-
return
|
|
193
|
+
oe = e(T);
|
|
194
|
+
var ge = Object.keys(A).filter(function(Se) {
|
|
195
|
+
return Se !== "key";
|
|
196
196
|
});
|
|
197
|
-
|
|
197
|
+
re = 0 < ge.length ? "{key: someKey, " + ge.join(": ..., ") + ": ...}" : "{key: someKey}", M[oe + re] || (ge = 0 < ge.length ? "{" + ge.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
198
198
|
`A props object containing a "key" prop is being spread into JSX:
|
|
199
199
|
let props = %s;
|
|
200
200
|
<%s {...props} />
|
|
201
201
|
React keys must be passed directly to JSX without using spread:
|
|
202
202
|
let props = %s;
|
|
203
203
|
<%s key={someKey} {...props} />`,
|
|
204
|
-
|
|
205
|
-
|
|
204
|
+
re,
|
|
205
|
+
oe,
|
|
206
206
|
ge,
|
|
207
|
-
|
|
208
|
-
), M[
|
|
207
|
+
oe
|
|
208
|
+
), M[oe + re] = !0);
|
|
209
209
|
}
|
|
210
|
-
if (
|
|
210
|
+
if (oe = null, ee !== void 0 && (n(ee), oe = "" + ee), o(A) && (n(A.key), oe = "" + A.key), "key" in A) {
|
|
211
211
|
ee = {};
|
|
212
|
-
for (var
|
|
213
|
-
|
|
212
|
+
for (var ce in A)
|
|
213
|
+
ce !== "key" && (ee[ce] = A[ce]);
|
|
214
214
|
} else ee = A;
|
|
215
|
-
return
|
|
215
|
+
return oe && l(
|
|
216
216
|
ee,
|
|
217
217
|
typeof T == "function" ? T.displayName || T.name || "Unknown" : T
|
|
218
218
|
), u(
|
|
219
219
|
T,
|
|
220
|
-
|
|
220
|
+
oe,
|
|
221
221
|
ee,
|
|
222
222
|
i(),
|
|
223
|
-
|
|
224
|
-
|
|
223
|
+
ne,
|
|
224
|
+
ae
|
|
225
225
|
);
|
|
226
226
|
}
|
|
227
227
|
function h(T) {
|
|
@@ -230,7 +230,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
230
230
|
function f(T) {
|
|
231
231
|
return typeof T == "object" && T !== null && T.$$typeof === p;
|
|
232
232
|
}
|
|
233
|
-
var m = Au, p = /* @__PURE__ */ Symbol.for("react.transitional.element"), b = /* @__PURE__ */ Symbol.for("react.portal"), x = /* @__PURE__ */ Symbol.for("react.fragment"), y = /* @__PURE__ */ Symbol.for("react.strict_mode"), N = /* @__PURE__ */ Symbol.for("react.profiler"), k = /* @__PURE__ */ Symbol.for("react.consumer"), P = /* @__PURE__ */ Symbol.for("react.context"), j = /* @__PURE__ */ Symbol.for("react.forward_ref"), E = /* @__PURE__ */ Symbol.for("react.suspense"), S = /* @__PURE__ */ Symbol.for("react.suspense_list"), v = /* @__PURE__ */ Symbol.for("react.memo"), I = /* @__PURE__ */ Symbol.for("react.lazy"), F = /* @__PURE__ */ Symbol.for("react.activity"), B = /* @__PURE__ */ Symbol.for("react.client.reference"),
|
|
233
|
+
var m = Au, p = /* @__PURE__ */ Symbol.for("react.transitional.element"), b = /* @__PURE__ */ Symbol.for("react.portal"), x = /* @__PURE__ */ Symbol.for("react.fragment"), y = /* @__PURE__ */ Symbol.for("react.strict_mode"), N = /* @__PURE__ */ Symbol.for("react.profiler"), k = /* @__PURE__ */ Symbol.for("react.consumer"), P = /* @__PURE__ */ Symbol.for("react.context"), j = /* @__PURE__ */ Symbol.for("react.forward_ref"), E = /* @__PURE__ */ Symbol.for("react.suspense"), S = /* @__PURE__ */ Symbol.for("react.suspense_list"), v = /* @__PURE__ */ Symbol.for("react.memo"), I = /* @__PURE__ */ Symbol.for("react.lazy"), F = /* @__PURE__ */ Symbol.for("react.activity"), B = /* @__PURE__ */ Symbol.for("react.client.reference"), q = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, D = Object.prototype.hasOwnProperty, te = Array.isArray, Y = console.createTask ? console.createTask : function() {
|
|
234
234
|
return null;
|
|
235
235
|
};
|
|
236
236
|
m = {
|
|
@@ -238,29 +238,29 @@ React keys must be passed directly to JSX without using spread:
|
|
|
238
238
|
return T();
|
|
239
239
|
}
|
|
240
240
|
};
|
|
241
|
-
var
|
|
241
|
+
var Z, R = {}, C = m.react_stack_bottom_frame.bind(
|
|
242
242
|
m,
|
|
243
243
|
r
|
|
244
|
-
)(), _ =
|
|
244
|
+
)(), _ = Y(s(r)), M = {};
|
|
245
245
|
sn.Fragment = x, sn.jsx = function(T, A, ee) {
|
|
246
|
-
var
|
|
246
|
+
var re = 1e4 > q.recentlyCreatedOwnerStacks++;
|
|
247
247
|
return d(
|
|
248
248
|
T,
|
|
249
249
|
A,
|
|
250
250
|
ee,
|
|
251
251
|
!1,
|
|
252
|
-
|
|
253
|
-
|
|
252
|
+
re ? Error("react-stack-top-frame") : C,
|
|
253
|
+
re ? Y(s(T)) : _
|
|
254
254
|
);
|
|
255
255
|
}, sn.jsxs = function(T, A, ee) {
|
|
256
|
-
var
|
|
256
|
+
var re = 1e4 > q.recentlyCreatedOwnerStacks++;
|
|
257
257
|
return d(
|
|
258
258
|
T,
|
|
259
259
|
A,
|
|
260
260
|
ee,
|
|
261
261
|
!0,
|
|
262
|
-
|
|
263
|
-
|
|
262
|
+
re ? Error("react-stack-top-frame") : C,
|
|
263
|
+
re ? Y(s(T)) : _
|
|
264
264
|
);
|
|
265
265
|
};
|
|
266
266
|
})()), sn;
|
|
@@ -272,7 +272,7 @@ function vd() {
|
|
|
272
272
|
var a = vd();
|
|
273
273
|
const Ei = Ke({});
|
|
274
274
|
function os(e) {
|
|
275
|
-
const t =
|
|
275
|
+
const t = ve(null);
|
|
276
276
|
return t.current === null && (t.current = e()), t.current;
|
|
277
277
|
}
|
|
278
278
|
const Ca = typeof window < "u", Pa = Ca ? Lu : ie, Tn = /* @__PURE__ */ Ke(null);
|
|
@@ -283,7 +283,7 @@ function zt(e, t) {
|
|
|
283
283
|
const n = e.indexOf(t);
|
|
284
284
|
n > -1 && e.splice(n, 1);
|
|
285
285
|
}
|
|
286
|
-
const
|
|
286
|
+
const et = (e, t, n) => n > t ? t : n < e ? e : n;
|
|
287
287
|
function Us(e, t) {
|
|
288
288
|
return t ? `${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}` : e;
|
|
289
289
|
}
|
|
@@ -296,7 +296,7 @@ typeof process < "u" && process.env?.NODE_ENV !== "production" && (Gt = (e, t, n
|
|
|
296
296
|
if (!e)
|
|
297
297
|
throw new Error(Us(t, n));
|
|
298
298
|
});
|
|
299
|
-
const
|
|
299
|
+
const it = {}, Ia = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);
|
|
300
300
|
function ja(e) {
|
|
301
301
|
return typeof e == "object" && e !== null;
|
|
302
302
|
}
|
|
@@ -448,8 +448,8 @@ function Ha(e, t) {
|
|
|
448
448
|
timestamp: 0,
|
|
449
449
|
isProcessing: !1
|
|
450
450
|
}, r = () => n = !0, o = Rn.reduce((k, P) => (k[P] = Id(r), k), {}), { setup: l, read: c, resolveKeyframes: u, preUpdate: d, update: h, preRender: f, render: m, postRender: p } = o, b = () => {
|
|
451
|
-
const k =
|
|
452
|
-
n = !1,
|
|
451
|
+
const k = it.useManualTiming ? i.timestamp : performance.now();
|
|
452
|
+
n = !1, it.useManualTiming || (i.delta = s ? 1e3 / 60 : Math.max(Math.min(k - i.timestamp, jd), 1)), i.timestamp = k, i.isProcessing = !0, l.process(i), c.process(i), u.process(i), d.process(i), h.process(i), f.process(i), m.process(i), p.process(i), i.isProcessing = !1, n && t && (s = !1, e(b));
|
|
453
453
|
}, x = () => {
|
|
454
454
|
n = !0, s = !0, i.isProcessing || e(b);
|
|
455
455
|
};
|
|
@@ -461,13 +461,13 @@ function Ha(e, t) {
|
|
|
461
461
|
o[Rn[P]].cancel(k);
|
|
462
462
|
}, state: i, steps: o };
|
|
463
463
|
}
|
|
464
|
-
const { schedule: pe, cancel: ft, state:
|
|
464
|
+
const { schedule: pe, cancel: ft, state: Ae, steps: vs } = /* @__PURE__ */ Ha(typeof requestAnimationFrame < "u" ? requestAnimationFrame : ze, !0);
|
|
465
465
|
let $n;
|
|
466
466
|
function Md() {
|
|
467
467
|
$n = void 0;
|
|
468
468
|
}
|
|
469
|
-
const
|
|
470
|
-
now: () => ($n === void 0 &&
|
|
469
|
+
const Ve = {
|
|
470
|
+
now: () => ($n === void 0 && Ve.set(Ae.isProcessing || it.useManualTiming ? Ae.timestamp : performance.now()), $n),
|
|
471
471
|
set: (e) => {
|
|
472
472
|
$n = e, queueMicrotask(Md);
|
|
473
473
|
}
|
|
@@ -481,7 +481,7 @@ const Kt = {
|
|
|
481
481
|
transform: (e) => e
|
|
482
482
|
}, mn = {
|
|
483
483
|
...Kt,
|
|
484
|
-
transform: (e) =>
|
|
484
|
+
transform: (e) => et(0, 1, e)
|
|
485
485
|
}, An = {
|
|
486
486
|
...Kt,
|
|
487
487
|
default: 1
|
|
@@ -499,7 +499,7 @@ const Vd = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
|
|
|
499
499
|
[n]: parseFloat(o),
|
|
500
500
|
alpha: l !== void 0 ? parseFloat(l) : 1
|
|
501
501
|
};
|
|
502
|
-
}, Od = (e) =>
|
|
502
|
+
}, Od = (e) => et(0, 255, e), ws = {
|
|
503
503
|
...Kt,
|
|
504
504
|
transform: (e) => Math.round(Od(e))
|
|
505
505
|
}, Ct = {
|
|
@@ -524,21 +524,21 @@ const Hs = {
|
|
|
524
524
|
test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
|
|
525
525
|
parse: parseFloat,
|
|
526
526
|
transform: (t) => `${t}${e}`
|
|
527
|
-
}), ct = /* @__PURE__ */ kn("deg"),
|
|
528
|
-
...
|
|
529
|
-
parse: (e) =>
|
|
530
|
-
transform: (e) =>
|
|
527
|
+
}), ct = /* @__PURE__ */ kn("deg"), Je = /* @__PURE__ */ kn("%"), G = /* @__PURE__ */ kn("px"), _d = /* @__PURE__ */ kn("vh"), Fd = /* @__PURE__ */ kn("vw"), Mo = {
|
|
528
|
+
...Je,
|
|
529
|
+
parse: (e) => Je.parse(e) / 100,
|
|
530
|
+
transform: (e) => Je.transform(e * 100)
|
|
531
531
|
}, Vt = {
|
|
532
532
|
test: /* @__PURE__ */ Li("hsl", "hue"),
|
|
533
533
|
parse: /* @__PURE__ */ Ka("hue", "saturation", "lightness"),
|
|
534
|
-
transform: ({ hue: e, saturation: t, lightness: n, alpha: s = 1 }) => "hsla(" + Math.round(e) + ", " +
|
|
535
|
-
},
|
|
534
|
+
transform: ({ hue: e, saturation: t, lightness: n, alpha: s = 1 }) => "hsla(" + Math.round(e) + ", " + Je.transform(ln(t)) + ", " + Je.transform(ln(n)) + ", " + ln(mn.transform(s)) + ")"
|
|
535
|
+
}, Ee = {
|
|
536
536
|
test: (e) => Ct.test(e) || Hs.test(e) || Vt.test(e),
|
|
537
537
|
parse: (e) => Ct.test(e) ? Ct.parse(e) : Vt.test(e) ? Vt.parse(e) : Hs.parse(e),
|
|
538
538
|
transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? Ct.transform(e) : Vt.transform(e),
|
|
539
539
|
getAnimatableNone: (e) => {
|
|
540
|
-
const t =
|
|
541
|
-
return t.alpha = 0,
|
|
540
|
+
const t = Ee.parse(e);
|
|
541
|
+
return t.alpha = 0, Ee.transform(t);
|
|
542
542
|
}
|
|
543
543
|
}, $d = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
|
|
544
544
|
function Bd(e) {
|
|
@@ -552,7 +552,7 @@ function pn(e) {
|
|
|
552
552
|
var: []
|
|
553
553
|
}, i = [];
|
|
554
554
|
let r = 0;
|
|
555
|
-
const l = t.replace(Yd, (c) => (
|
|
555
|
+
const l = t.replace(Yd, (c) => (Ee.test(c) ? (s.color.push(r), i.push(qa), n.push(Ee.parse(c))) : c.startsWith(Wd) ? (s.var.push(r), i.push(zd), n.push(c)) : (s.number.push(r), i.push(Za), n.push(parseFloat(c))), ++r, Ro)).split(Ro);
|
|
556
556
|
return { values: n, split: l, indexes: s, types: i };
|
|
557
557
|
}
|
|
558
558
|
function Ja(e) {
|
|
@@ -565,12 +565,12 @@ function Qa(e) {
|
|
|
565
565
|
for (let o = 0; o < s; o++)
|
|
566
566
|
if (r += t[o], i[o] !== void 0) {
|
|
567
567
|
const l = n[o];
|
|
568
|
-
l === Za ? r += ln(i[o]) : l === qa ? r +=
|
|
568
|
+
l === Za ? r += ln(i[o]) : l === qa ? r += Ee.transform(i[o]) : r += i[o];
|
|
569
569
|
}
|
|
570
570
|
return r;
|
|
571
571
|
};
|
|
572
572
|
}
|
|
573
|
-
const Ud = (e) => typeof e == "number" ? 0 :
|
|
573
|
+
const Ud = (e) => typeof e == "number" ? 0 : Ee.test(e) ? Ee.getAnimatableNone(e) : e;
|
|
574
574
|
function Hd(e) {
|
|
575
575
|
const t = Ja(e);
|
|
576
576
|
return Qa(e)(t.map(Ud));
|
|
@@ -628,7 +628,7 @@ function qd(e, t) {
|
|
|
628
628
|
return (n) => ye(e, t, n);
|
|
629
629
|
}
|
|
630
630
|
function Vi(e) {
|
|
631
|
-
return typeof e == "number" ? qd : typeof e == "string" ? Ri(e) ? Kn :
|
|
631
|
+
return typeof e == "number" ? qd : typeof e == "string" ? Ri(e) ? Kn : Ee.test(e) ? Lo : eh : Array.isArray(e) ? el : typeof e == "object" ? Ee.test(e) ? Lo : Jd : Kn;
|
|
632
632
|
}
|
|
633
633
|
function el(e, t) {
|
|
634
634
|
const n = [...e], s = n.length, i = e.map((r, o) => Vi(r)(r, t[o]));
|
|
@@ -672,7 +672,7 @@ const th = (e) => {
|
|
|
672
672
|
* If we're processing this frame we can use the
|
|
673
673
|
* framelocked timestamp to keep things in sync.
|
|
674
674
|
*/
|
|
675
|
-
now: () =>
|
|
675
|
+
now: () => Ae.isProcessing ? Ae.timestamp : Ve.now()
|
|
676
676
|
};
|
|
677
677
|
}, nl = (e, t, n = 10) => {
|
|
678
678
|
let s = "";
|
|
@@ -702,7 +702,7 @@ function il(e, t, n) {
|
|
|
702
702
|
const s = Math.max(t - nh, 0);
|
|
703
703
|
return Aa(n - e(s), t - s);
|
|
704
704
|
}
|
|
705
|
-
const
|
|
705
|
+
const xe = {
|
|
706
706
|
// Default spring physics
|
|
707
707
|
stiffness: 100,
|
|
708
708
|
damping: 10,
|
|
@@ -731,11 +731,11 @@ const ve = {
|
|
|
731
731
|
minDamping: 0.05,
|
|
732
732
|
maxDamping: 1
|
|
733
733
|
}, Ns = 1e-3;
|
|
734
|
-
function sh({ duration: e =
|
|
734
|
+
function sh({ duration: e = xe.duration, bounce: t = xe.bounce, velocity: n = xe.velocity, mass: s = xe.mass }) {
|
|
735
735
|
let i, r;
|
|
736
|
-
Gt(e <= /* @__PURE__ */ Fe(
|
|
736
|
+
Gt(e <= /* @__PURE__ */ Fe(xe.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
|
|
737
737
|
let o = 1 - t;
|
|
738
|
-
o =
|
|
738
|
+
o = et(xe.minDamping, xe.maxDamping, o), e = et(xe.minDuration, xe.maxDuration, /* @__PURE__ */ Be(e)), o < 1 ? (i = (u) => {
|
|
739
739
|
const d = u * o, h = d * e, f = d - n, m = Gs(u, o), p = Math.exp(-h);
|
|
740
740
|
return Ns - f / m * p;
|
|
741
741
|
}, r = (u) => {
|
|
@@ -751,8 +751,8 @@ function sh({ duration: e = ve.duration, bounce: t = ve.bounce, velocity: n = ve
|
|
|
751
751
|
const l = 5 / e, c = oh(i, r, l);
|
|
752
752
|
if (e = /* @__PURE__ */ Fe(e), isNaN(c))
|
|
753
753
|
return {
|
|
754
|
-
stiffness:
|
|
755
|
-
damping:
|
|
754
|
+
stiffness: xe.stiffness,
|
|
755
|
+
damping: xe.damping,
|
|
756
756
|
duration: e
|
|
757
757
|
};
|
|
758
758
|
{
|
|
@@ -780,19 +780,19 @@ function Vo(e, t) {
|
|
|
780
780
|
}
|
|
781
781
|
function lh(e) {
|
|
782
782
|
let t = {
|
|
783
|
-
velocity:
|
|
784
|
-
stiffness:
|
|
785
|
-
damping:
|
|
786
|
-
mass:
|
|
783
|
+
velocity: xe.velocity,
|
|
784
|
+
stiffness: xe.stiffness,
|
|
785
|
+
damping: xe.damping,
|
|
786
|
+
mass: xe.mass,
|
|
787
787
|
isResolvedFromDuration: !1,
|
|
788
788
|
...e
|
|
789
789
|
};
|
|
790
790
|
if (!Vo(e, ah) && Vo(e, rh))
|
|
791
791
|
if (e.visualDuration) {
|
|
792
|
-
const n = e.visualDuration, s = 2 * Math.PI / (n * 1.2), i = s * s, r = 2 *
|
|
792
|
+
const n = e.visualDuration, s = 2 * Math.PI / (n * 1.2), i = s * s, r = 2 * et(0.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);
|
|
793
793
|
t = {
|
|
794
794
|
...t,
|
|
795
|
-
mass:
|
|
795
|
+
mass: xe.mass,
|
|
796
796
|
stiffness: i,
|
|
797
797
|
damping: r
|
|
798
798
|
};
|
|
@@ -801,12 +801,12 @@ function lh(e) {
|
|
|
801
801
|
t = {
|
|
802
802
|
...t,
|
|
803
803
|
...n,
|
|
804
|
-
mass:
|
|
804
|
+
mass: xe.mass
|
|
805
805
|
}, t.isResolvedFromDuration = !0;
|
|
806
806
|
}
|
|
807
807
|
return t;
|
|
808
808
|
}
|
|
809
|
-
function gn(e =
|
|
809
|
+
function gn(e = xe.visualDuration, t = xe.bounce) {
|
|
810
810
|
const n = typeof e != "object" ? {
|
|
811
811
|
visualDuration: e,
|
|
812
812
|
keyframes: [0, 1],
|
|
@@ -817,7 +817,7 @@ function gn(e = ve.visualDuration, t = ve.bounce) {
|
|
|
817
817
|
...n,
|
|
818
818
|
velocity: -/* @__PURE__ */ Be(n.velocity || 0)
|
|
819
819
|
}), p = f || 0, b = u / (2 * Math.sqrt(c * d)), x = o - r, y = /* @__PURE__ */ Be(Math.sqrt(c / d)), N = Math.abs(x) < 5;
|
|
820
|
-
s || (s = N ?
|
|
820
|
+
s || (s = N ? xe.restSpeed.granular : xe.restSpeed.default), i || (i = N ? xe.restDelta.granular : xe.restDelta.default);
|
|
821
821
|
let k;
|
|
822
822
|
if (b < 1) {
|
|
823
823
|
const j = Gs(y, b);
|
|
@@ -894,7 +894,7 @@ function Ks({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: s = 3
|
|
|
894
894
|
};
|
|
895
895
|
}
|
|
896
896
|
function ch(e, t, n) {
|
|
897
|
-
const s = [], i = n ||
|
|
897
|
+
const s = [], i = n || it.mix || tl, r = e.length - 1;
|
|
898
898
|
for (let o = 0; o < r; o++) {
|
|
899
899
|
let l = i(e[o], e[o + 1]);
|
|
900
900
|
if (t) {
|
|
@@ -923,7 +923,7 @@ function uh(e, t, { clamp: n = !0, ease: s, mixer: i } = {}) {
|
|
|
923
923
|
const f = /* @__PURE__ */ Wt(e[h], e[h + 1], d);
|
|
924
924
|
return l[h](f);
|
|
925
925
|
};
|
|
926
|
-
return n ? (d) => u(
|
|
926
|
+
return n ? (d) => u(et(e[0], e[r - 1], d)) : u;
|
|
927
927
|
}
|
|
928
928
|
function ol(e, t) {
|
|
929
929
|
const n = e[e.length - 1];
|
|
@@ -1003,7 +1003,7 @@ class Fi extends _i {
|
|
|
1003
1003
|
constructor(t) {
|
|
1004
1004
|
super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.stop = () => {
|
|
1005
1005
|
const { motionValue: n } = this.options;
|
|
1006
|
-
n && n.updatedAt !==
|
|
1006
|
+
n && n.updatedAt !== Ve.now() && this.tick(Ve.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
|
|
1007
1007
|
}, this.options = t, this.initAnimation(), this.play(), t.autoplay === !1 && this.pause();
|
|
1008
1008
|
}
|
|
1009
1009
|
initAnimation() {
|
|
@@ -1038,7 +1038,7 @@ class Fi extends _i {
|
|
|
1038
1038
|
if (h) {
|
|
1039
1039
|
const v = Math.min(this.currentTime, i) / l;
|
|
1040
1040
|
let I = Math.floor(v), F = v % 1;
|
|
1041
|
-
!F && v >= 1 && (F = 1), F === 1 && I--, I = Math.min(I, h + 1), I % 2 && (f === "reverse" ? (F = 1 - F, m && (F -= m / l)) : f === "mirror" && (P = o)), k =
|
|
1041
|
+
!F && v >= 1 && (F = 1), F === 1 && I--, I = Math.min(I, h + 1), I % 2 && (f === "reverse" ? (F = 1 - F, m && (F -= m / l)) : f === "mirror" && (P = o)), k = et(0, 1, F) * l;
|
|
1042
1042
|
}
|
|
1043
1043
|
const j = N ? { done: !1, value: d[0] } : P.next(k);
|
|
1044
1044
|
r && (j.value = r(j.value));
|
|
@@ -1072,7 +1072,7 @@ class Fi extends _i {
|
|
|
1072
1072
|
return this.playbackSpeed;
|
|
1073
1073
|
}
|
|
1074
1074
|
set speed(t) {
|
|
1075
|
-
this.updateTime(
|
|
1075
|
+
this.updateTime(Ve.now());
|
|
1076
1076
|
const n = this.playbackSpeed !== t;
|
|
1077
1077
|
this.playbackSpeed = t, n && (this.time = /* @__PURE__ */ Be(this.currentTime));
|
|
1078
1078
|
}
|
|
@@ -1085,7 +1085,7 @@ class Fi extends _i {
|
|
|
1085
1085
|
this.state === "finished" ? (this.updateFinished(), this.startTime = s) : this.holdTime !== null ? this.startTime = s - this.holdTime : this.startTime || (this.startTime = n ?? s), this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
|
|
1086
1086
|
}
|
|
1087
1087
|
pause() {
|
|
1088
|
-
this.state = "paused", this.updateTime(
|
|
1088
|
+
this.state = "paused", this.updateTime(Ve.now()), this.holdTime = this.currentTime;
|
|
1089
1089
|
}
|
|
1090
1090
|
complete() {
|
|
1091
1091
|
this.state !== "running" && this.play(), this.state = "finished", this.holdTime = null;
|
|
@@ -1462,7 +1462,7 @@ class Ah extends fl {
|
|
|
1462
1462
|
const l = new Fi({
|
|
1463
1463
|
...o,
|
|
1464
1464
|
autoplay: !1
|
|
1465
|
-
}), c = Math.max(ks,
|
|
1465
|
+
}), c = Math.max(ks, Ve.now() - this.startTime), u = et(0, ks, c - ks);
|
|
1466
1466
|
n.setWithVelocity(l.sample(Math.max(0, c - u)).value, l.sample(c).value, u), l.stop();
|
|
1467
1467
|
}
|
|
1468
1468
|
}
|
|
@@ -1513,7 +1513,7 @@ class $h extends _i {
|
|
|
1513
1513
|
constructor({ autoplay: t = !0, delay: n = 0, type: s = "keyframes", repeat: i = 0, repeatDelay: r = 0, repeatType: o = "loop", keyframes: l, name: c, motionValue: u, element: d, ...h }) {
|
|
1514
1514
|
super(), this.stop = () => {
|
|
1515
1515
|
this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
|
|
1516
|
-
}, this.createdAt =
|
|
1516
|
+
}, this.createdAt = Ve.now();
|
|
1517
1517
|
const f = {
|
|
1518
1518
|
autoplay: t,
|
|
1519
1519
|
delay: n,
|
|
@@ -1531,7 +1531,7 @@ class $h extends _i {
|
|
|
1531
1531
|
onKeyframesResolved(t, n, s, i) {
|
|
1532
1532
|
this.keyframeResolver = void 0;
|
|
1533
1533
|
const { name: r, type: o, velocity: l, delay: c, isHandoff: u, onUpdate: d } = s;
|
|
1534
|
-
this.resolvedAt =
|
|
1534
|
+
this.resolvedAt = Ve.now(), Vh(t, r, o, l) || ((it.instantAnimations || !c) && d?.(Di(t, s, n)), t[0] = t[t.length - 1], si(s), s.repeat = 0);
|
|
1535
1535
|
const f = {
|
|
1536
1536
|
startTime: i ? this.resolvedAt ? this.resolvedAt - this.createdAt > Fh ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
|
|
1537
1537
|
finalKeyframe: n,
|
|
@@ -1760,7 +1760,7 @@ const Wi = (e, t, n, s = {}, i, r) => (o) => {
|
|
|
1760
1760
|
};
|
|
1761
1761
|
Qh(l) || Object.assign(d, Zh(e, d)), d.duration && (d.duration = /* @__PURE__ */ Fe(d.duration)), d.repeatDelay && (d.repeatDelay = /* @__PURE__ */ Fe(d.repeatDelay)), d.from !== void 0 && (d.keyframes[0] = d.from);
|
|
1762
1762
|
let h = !1;
|
|
1763
|
-
if ((d.type === !1 || d.duration === 0 && !d.repeatDelay) && (si(d), d.delay === 0 && (h = !0)), (
|
|
1763
|
+
if ((d.type === !1 || d.duration === 0 && !d.repeatDelay) && (si(d), d.delay === 0 && (h = !0)), (it.instantAnimations || it.skipAnimations || i?.shouldSkipAnimations) && (h = !0, si(d), d.delay = 0), d.allowFlatten = !l.type && !l.ease, h && !r && t.get() !== void 0) {
|
|
1764
1764
|
const f = Jh(d.keyframes, l);
|
|
1765
1765
|
if (f !== void 0) {
|
|
1766
1766
|
pe.update(() => {
|
|
@@ -1810,14 +1810,14 @@ class tf {
|
|
|
1810
1810
|
*/
|
|
1811
1811
|
constructor(t, n = {}) {
|
|
1812
1812
|
this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (s) => {
|
|
1813
|
-
const i =
|
|
1813
|
+
const i = Ve.now();
|
|
1814
1814
|
if (this.updatedAt !== i && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(s), this.current !== this.prev && (this.events.change?.notify(this.current), this.dependents))
|
|
1815
1815
|
for (const r of this.dependents)
|
|
1816
1816
|
r.dirty();
|
|
1817
1817
|
}, this.hasAnimated = !1, this.setCurrent(t), this.owner = n.owner;
|
|
1818
1818
|
}
|
|
1819
1819
|
setCurrent(t) {
|
|
1820
|
-
this.current = t, this.updatedAt =
|
|
1820
|
+
this.current = t, this.updatedAt = Ve.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = ef(this.current));
|
|
1821
1821
|
}
|
|
1822
1822
|
setPrevFrameValue(t = this.current) {
|
|
1823
1823
|
this.prevFrameValue = t, this.prevUpdatedAt = this.updatedAt;
|
|
@@ -1945,7 +1945,7 @@ class tf {
|
|
|
1945
1945
|
* @public
|
|
1946
1946
|
*/
|
|
1947
1947
|
getVelocity() {
|
|
1948
|
-
const t =
|
|
1948
|
+
const t = Ve.now();
|
|
1949
1949
|
if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > Yo)
|
|
1950
1950
|
return 0;
|
|
1951
1951
|
const n = Math.min(this.updatedAt - this.prevUpdatedAt, Yo);
|
|
@@ -2019,16 +2019,16 @@ function of(e, t) {
|
|
|
2019
2019
|
nf(e, o, l);
|
|
2020
2020
|
}
|
|
2021
2021
|
}
|
|
2022
|
-
const
|
|
2022
|
+
const Re = (e) => !!(e && e.getVelocity);
|
|
2023
2023
|
function rf(e) {
|
|
2024
|
-
return !!(
|
|
2024
|
+
return !!(Re(e) && e.add);
|
|
2025
2025
|
}
|
|
2026
2026
|
function oi(e, t) {
|
|
2027
2027
|
const n = e.getValue("willChange");
|
|
2028
2028
|
if (rf(n))
|
|
2029
2029
|
return n.add(t);
|
|
2030
|
-
if (!n &&
|
|
2031
|
-
const s = new
|
|
2030
|
+
if (!n && it.WillChange) {
|
|
2031
|
+
const s = new it.WillChange("auto");
|
|
2032
2032
|
e.addValue("willChange", s), s.add(t);
|
|
2033
2033
|
}
|
|
2034
2034
|
}
|
|
@@ -2124,7 +2124,7 @@ function uf(e, t, n = {}) {
|
|
|
2124
2124
|
const df = {
|
|
2125
2125
|
test: (e) => e === "auto",
|
|
2126
2126
|
parse: (e) => e
|
|
2127
|
-
}, wl = (e) => (t) => t.test(e), Tl = [Kt, G,
|
|
2127
|
+
}, wl = (e) => (t) => t.test(e), Tl = [Kt, G, Je, ct, Fd, _d, df], Uo = (e) => Tl.find(wl(e));
|
|
2128
2128
|
function hf(e) {
|
|
2129
2129
|
return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || Ma(e) : !0;
|
|
2130
2130
|
}
|
|
@@ -2245,17 +2245,17 @@ const pf = /\b([a-z-]*)\(.*?\)/gu, ai = {
|
|
|
2245
2245
|
}, bf = {
|
|
2246
2246
|
...Xi,
|
|
2247
2247
|
// Color props
|
|
2248
|
-
color:
|
|
2249
|
-
backgroundColor:
|
|
2250
|
-
outlineColor:
|
|
2251
|
-
fill:
|
|
2252
|
-
stroke:
|
|
2248
|
+
color: Ee,
|
|
2249
|
+
backgroundColor: Ee,
|
|
2250
|
+
outlineColor: Ee,
|
|
2251
|
+
fill: Ee,
|
|
2252
|
+
stroke: Ee,
|
|
2253
2253
|
// Border props
|
|
2254
|
-
borderColor:
|
|
2255
|
-
borderTopColor:
|
|
2256
|
-
borderRightColor:
|
|
2257
|
-
borderBottomColor:
|
|
2258
|
-
borderLeftColor:
|
|
2254
|
+
borderColor: Ee,
|
|
2255
|
+
borderTopColor: Ee,
|
|
2256
|
+
borderRightColor: Ee,
|
|
2257
|
+
borderBottomColor: Ee,
|
|
2258
|
+
borderLeftColor: Ee,
|
|
2259
2259
|
filter: ai,
|
|
2260
2260
|
WebkitFilter: ai,
|
|
2261
2261
|
mask: li,
|
|
@@ -2538,7 +2538,7 @@ function Zo(e, t) {
|
|
|
2538
2538
|
function jl(e) {
|
|
2539
2539
|
return rs(e) && e.tagName === "svg";
|
|
2540
2540
|
}
|
|
2541
|
-
const $f = [...Tl,
|
|
2541
|
+
const $f = [...Tl, Ee, Xe], Bf = (e) => $f.find(wl(e)), qo = () => ({
|
|
2542
2542
|
translate: 0,
|
|
2543
2543
|
scale: 1,
|
|
2544
2544
|
origin: 0,
|
|
@@ -2546,7 +2546,7 @@ const $f = [...Tl, Ne, Xe], Bf = (e) => $f.find(wl(e)), qo = () => ({
|
|
|
2546
2546
|
}), _t = () => ({
|
|
2547
2547
|
x: qo(),
|
|
2548
2548
|
y: qo()
|
|
2549
|
-
}), Jo = () => ({ min: 0, max: 0 }),
|
|
2549
|
+
}), Jo = () => ({ min: 0, max: 0 }), ke = () => ({
|
|
2550
2550
|
x: Jo(),
|
|
2551
2551
|
y: Jo()
|
|
2552
2552
|
}), bn = /* @__PURE__ */ new WeakMap();
|
|
@@ -2574,9 +2574,9 @@ function Ml(e) {
|
|
|
2574
2574
|
function zf(e, t, n) {
|
|
2575
2575
|
for (const s in t) {
|
|
2576
2576
|
const i = t[s], r = n[s];
|
|
2577
|
-
if (
|
|
2577
|
+
if (Re(i))
|
|
2578
2578
|
e.addValue(s, i);
|
|
2579
|
-
else if (
|
|
2579
|
+
else if (Re(r))
|
|
2580
2580
|
e.addValue(s, mt(i, { owner: e }));
|
|
2581
2581
|
else if (r !== i)
|
|
2582
2582
|
if (e.hasValue(s)) {
|
|
@@ -2631,7 +2631,7 @@ class Ll {
|
|
|
2631
2631
|
this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = $i, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
|
|
2632
2632
|
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
|
|
2633
2633
|
}, this.renderScheduledAt = 0, this.scheduleRender = () => {
|
|
2634
|
-
const m =
|
|
2634
|
+
const m = Ve.now();
|
|
2635
2635
|
this.renderScheduledAt < m && (this.renderScheduledAt = m, pe.render(this.render, !1, !0));
|
|
2636
2636
|
};
|
|
2637
2637
|
const { latestValues: u, renderState: d } = l;
|
|
@@ -2639,7 +2639,7 @@ class Ll {
|
|
|
2639
2639
|
const { willChange: h, ...f } = this.scrapeMotionValuesFromProps(n, {}, this);
|
|
2640
2640
|
for (const m in f) {
|
|
2641
2641
|
const p = f[m];
|
|
2642
|
-
u[m] !== void 0 &&
|
|
2642
|
+
u[m] !== void 0 && Re(p) && p.set(u[m]);
|
|
2643
2643
|
}
|
|
2644
2644
|
}
|
|
2645
2645
|
mount(t) {
|
|
@@ -2714,7 +2714,7 @@ class Ll {
|
|
|
2714
2714
|
* removed with a re-render to work.
|
|
2715
2715
|
*/
|
|
2716
2716
|
measureViewportBox() {
|
|
2717
|
-
return this.current ? this.measureInstanceViewportBox(this.current, this.props) :
|
|
2717
|
+
return this.current ? this.measureInstanceViewportBox(this.current, this.props) : ke();
|
|
2718
2718
|
}
|
|
2719
2719
|
getStaticValue(t) {
|
|
2720
2720
|
return this.latestValues[t];
|
|
@@ -2799,7 +2799,7 @@ class Ll {
|
|
|
2799
2799
|
*/
|
|
2800
2800
|
readValue(t, n) {
|
|
2801
2801
|
let s = this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : this.getBaseTargetFromProps(this.props, t) ?? this.readValueFromInstance(this.current, t, this.options);
|
|
2802
|
-
return s != null && (typeof s == "string" && (Ia(s) || Ma(s)) ? s = parseFloat(s) : !Bf(s) && Xe.test(n) && (s = Nl(t, n)), this.setBaseTarget(t,
|
|
2802
|
+
return s != null && (typeof s == "string" && (Ia(s) || Ma(s)) ? s = parseFloat(s) : !Bf(s) && Xe.test(n) && (s = Nl(t, n)), this.setBaseTarget(t, Re(s) ? s.get() : s)), Re(s) ? s.get() : s;
|
|
2803
2803
|
}
|
|
2804
2804
|
/**
|
|
2805
2805
|
* Set the base target to later animate back to. This is currently
|
|
@@ -2822,7 +2822,7 @@ class Ll {
|
|
|
2822
2822
|
if (n && s !== void 0)
|
|
2823
2823
|
return s;
|
|
2824
2824
|
const i = this.getBaseTargetFromProps(this.props, t);
|
|
2825
|
-
return i !== void 0 && !
|
|
2825
|
+
return i !== void 0 && !Re(i) ? i : this.initialValues[t] !== void 0 && s === void 0 ? void 0 : this.baseTarget[t];
|
|
2826
2826
|
}
|
|
2827
2827
|
on(t, n) {
|
|
2828
2828
|
return this.events[t] || (this.events[t] = new Pi()), this.events[t].add(n);
|
|
@@ -2851,7 +2851,7 @@ class Vl extends Ll {
|
|
|
2851
2851
|
handleChildMotionValue() {
|
|
2852
2852
|
this.childSubscription && (this.childSubscription(), delete this.childSubscription);
|
|
2853
2853
|
const { children: t } = this.props;
|
|
2854
|
-
|
|
2854
|
+
Re(t) && (this.childSubscription = t.on("change", (n) => {
|
|
2855
2855
|
this.current && (this.current.textContent = `${n}`);
|
|
2856
2856
|
}));
|
|
2857
2857
|
}
|
|
@@ -3055,7 +3055,7 @@ function eo(e, t, n) {
|
|
|
3055
3055
|
if (!s)
|
|
3056
3056
|
return r;
|
|
3057
3057
|
for (const o in s)
|
|
3058
|
-
(
|
|
3058
|
+
(Re(s[o]) || i && Re(i[o]) || Bl(o, e) || n?.getValue(o)?.liveStyle !== void 0) && (r[o] = s[o]);
|
|
3059
3059
|
return r;
|
|
3060
3060
|
}
|
|
3061
3061
|
function e0(e) {
|
|
@@ -3103,7 +3103,7 @@ class n0 extends Ll {
|
|
|
3103
3103
|
delete n.output[t];
|
|
3104
3104
|
}
|
|
3105
3105
|
measureInstanceViewportBox() {
|
|
3106
|
-
return
|
|
3106
|
+
return ke();
|
|
3107
3107
|
}
|
|
3108
3108
|
build(t, n) {
|
|
3109
3109
|
Object.assign(t.output, n);
|
|
@@ -3187,7 +3187,7 @@ function a0(e, t, n, s) {
|
|
|
3187
3187
|
function Hl(e, t, n) {
|
|
3188
3188
|
const s = eo(e, t, n);
|
|
3189
3189
|
for (const i in e)
|
|
3190
|
-
if (
|
|
3190
|
+
if (Re(e[i]) || Re(t[i])) {
|
|
3191
3191
|
const r = Zt.indexOf(i) !== -1 ? "attr" + i.charAt(0).toUpperCase() + i.substring(1) : i;
|
|
3192
3192
|
s[r] = e[i];
|
|
3193
3193
|
}
|
|
@@ -3195,7 +3195,7 @@ function Hl(e, t, n) {
|
|
|
3195
3195
|
}
|
|
3196
3196
|
class Xl extends Vl {
|
|
3197
3197
|
constructor() {
|
|
3198
|
-
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox =
|
|
3198
|
+
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = ke;
|
|
3199
3199
|
}
|
|
3200
3200
|
getBaseTargetFromProps(t, n) {
|
|
3201
3201
|
return t[n];
|
|
@@ -3289,8 +3289,8 @@ function h0(e) {
|
|
|
3289
3289
|
const F = Array.isArray(k) ? k : [k];
|
|
3290
3290
|
let B = F.reduce(i(y), {});
|
|
3291
3291
|
j === !1 && (B = {});
|
|
3292
|
-
const { prevResolvedValues:
|
|
3293
|
-
...
|
|
3292
|
+
const { prevResolvedValues: q = {} } = N, D = {
|
|
3293
|
+
...q,
|
|
3294
3294
|
...B
|
|
3295
3295
|
}, te = (R) => {
|
|
3296
3296
|
v = !0, f.has(R) && (I = !0, f.delete(R)), N.needsAnimating[R] = !0;
|
|
@@ -3298,17 +3298,17 @@ function h0(e) {
|
|
|
3298
3298
|
C && (C.liveStyle = !1);
|
|
3299
3299
|
};
|
|
3300
3300
|
for (const R in D) {
|
|
3301
|
-
const C = B[R], _ =
|
|
3301
|
+
const C = B[R], _ = q[R];
|
|
3302
3302
|
if (m.hasOwnProperty(R))
|
|
3303
3303
|
continue;
|
|
3304
3304
|
let M = !1;
|
|
3305
3305
|
ii(C) && ii(_) ? M = !Kl(C, _) : M = C !== _, M ? C != null ? te(R) : f.add(R) : C !== void 0 && f.has(R) ? te(R) : N.protectedKeys[R] = !0;
|
|
3306
3306
|
}
|
|
3307
3307
|
N.prevProp = k, N.prevResolvedValues = B, N.isActive && (m = { ...m, ...B }), s && e.blockInitialAnimation && (v = !1);
|
|
3308
|
-
const
|
|
3309
|
-
v && (!
|
|
3308
|
+
const Y = E && S;
|
|
3309
|
+
v && (!Y || I) && h.push(...F.map((R) => {
|
|
3310
3310
|
const C = { type: y };
|
|
3311
|
-
if (typeof R == "string" && s && !
|
|
3311
|
+
if (typeof R == "string" && s && !Y && e.manuallyAnimateOnMount && e.parent) {
|
|
3312
3312
|
const { parent: _ } = e, M = Bt(_, R);
|
|
3313
3313
|
if (_.enteringChildren && M) {
|
|
3314
3314
|
const { delayChildren: T } = M.transition || {};
|
|
@@ -3386,26 +3386,26 @@ function lr(e, t) {
|
|
|
3386
3386
|
e.translate = t.translate, e.scale = t.scale, e.originPoint = t.originPoint, e.origin = t.origin;
|
|
3387
3387
|
}
|
|
3388
3388
|
const Zl = 1e-4, m0 = 1 - Zl, p0 = 1 + Zl, ql = 0.01, g0 = 0 - ql, b0 = 0 + ql;
|
|
3389
|
-
function
|
|
3389
|
+
function Oe(e) {
|
|
3390
3390
|
return e.max - e.min;
|
|
3391
3391
|
}
|
|
3392
3392
|
function y0(e, t, n) {
|
|
3393
3393
|
return Math.abs(e - t) <= n;
|
|
3394
3394
|
}
|
|
3395
3395
|
function cr(e, t, n, s = 0.5) {
|
|
3396
|
-
e.origin = s, e.originPoint = ye(t.min, t.max, e.origin), e.scale =
|
|
3396
|
+
e.origin = s, e.originPoint = ye(t.min, t.max, e.origin), e.scale = Oe(n) / Oe(t), e.translate = ye(n.min, n.max, e.origin) - e.originPoint, (e.scale >= m0 && e.scale <= p0 || isNaN(e.scale)) && (e.scale = 1), (e.translate >= g0 && e.translate <= b0 || isNaN(e.translate)) && (e.translate = 0);
|
|
3397
3397
|
}
|
|
3398
3398
|
function cn(e, t, n, s) {
|
|
3399
3399
|
cr(e.x, t.x, n.x, s ? s.originX : void 0), cr(e.y, t.y, n.y, s ? s.originY : void 0);
|
|
3400
3400
|
}
|
|
3401
3401
|
function ur(e, t, n) {
|
|
3402
|
-
e.min = n.min + t.min, e.max = e.min +
|
|
3402
|
+
e.min = n.min + t.min, e.max = e.min + Oe(t);
|
|
3403
3403
|
}
|
|
3404
3404
|
function x0(e, t, n) {
|
|
3405
3405
|
ur(e.x, t.x, n.x), ur(e.y, t.y, n.y);
|
|
3406
3406
|
}
|
|
3407
3407
|
function dr(e, t, n) {
|
|
3408
|
-
e.min = t.min - n.min, e.max = e.min +
|
|
3408
|
+
e.min = t.min - n.min, e.max = e.min + Oe(t);
|
|
3409
3409
|
}
|
|
3410
3410
|
function Qn(e, t, n) {
|
|
3411
3411
|
dr(e.x, t.x, n.x), dr(e.y, t.y, n.y);
|
|
@@ -3414,7 +3414,7 @@ function hr(e, t, n, s, i) {
|
|
|
3414
3414
|
return e -= t, e = Jn(e, 1 / n, s), i !== void 0 && (e = Jn(e, 1 / i, s)), e;
|
|
3415
3415
|
}
|
|
3416
3416
|
function v0(e, t = 0, n = 1, s = 0.5, i, r = e, o = e) {
|
|
3417
|
-
if (
|
|
3417
|
+
if (Je.test(t) && (t = parseFloat(t), t = ye(o.min, o.max, t / 100) - o.min), typeof t != "number")
|
|
3418
3418
|
return;
|
|
3419
3419
|
let l = ye(r.min, r.max, s);
|
|
3420
3420
|
e === r && (l -= t), e.min = hr(e.min, t, n, l, i), e.max = hr(e.max, t, n, l, i);
|
|
@@ -3445,12 +3445,12 @@ function Ql(e, t) {
|
|
|
3445
3445
|
return br(e.x, t.x) && br(e.y, t.y);
|
|
3446
3446
|
}
|
|
3447
3447
|
function yr(e) {
|
|
3448
|
-
return
|
|
3448
|
+
return Oe(e.x) / Oe(e.y);
|
|
3449
3449
|
}
|
|
3450
3450
|
function xr(e, t) {
|
|
3451
3451
|
return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
|
|
3452
3452
|
}
|
|
3453
|
-
function
|
|
3453
|
+
function qe(e) {
|
|
3454
3454
|
return [e("x"), e("y")];
|
|
3455
3455
|
}
|
|
3456
3456
|
function N0(e, t, n) {
|
|
@@ -3471,7 +3471,7 @@ function E0(e, t, n, s, i, r) {
|
|
|
3471
3471
|
let c = Tr(t, l), u = Tr(n, l);
|
|
3472
3472
|
if (c === void 0 && u === void 0)
|
|
3473
3473
|
continue;
|
|
3474
|
-
c || (c = 0), u || (u = 0), c === 0 || u === 0 || wr(c) === wr(u) ? (e[l] = Math.max(ye(vr(c), vr(u), s), 0), (
|
|
3474
|
+
c || (c = 0), u || (u = 0), c === 0 || u === 0 || wr(c) === wr(u) ? (e[l] = Math.max(ye(vr(c), vr(u), s), 0), (Je.test(u) || Je.test(c)) && (e[l] += "%")) : e[l] = u;
|
|
3475
3475
|
}
|
|
3476
3476
|
(t.rotate || n.rotate) && (e.rotate = ye(t.rotate || 0, n.rotate || 0, s));
|
|
3477
3477
|
}
|
|
@@ -3483,7 +3483,7 @@ function tc(e, t, n) {
|
|
|
3483
3483
|
return (s) => s < e ? 0 : s > t ? 1 : n(/* @__PURE__ */ Wt(e, t, s));
|
|
3484
3484
|
}
|
|
3485
3485
|
function nc(e, t, n) {
|
|
3486
|
-
const s =
|
|
3486
|
+
const s = Re(e) ? e : mt(e);
|
|
3487
3487
|
return s.start(Wi("", s, t, n)), s.animation;
|
|
3488
3488
|
}
|
|
3489
3489
|
function xn(e, t, n, s = { passive: !0 }) {
|
|
@@ -3505,14 +3505,14 @@ class j0 {
|
|
|
3505
3505
|
}
|
|
3506
3506
|
}
|
|
3507
3507
|
function M0(e, t) {
|
|
3508
|
-
const n =
|
|
3508
|
+
const n = Ve.now(), s = ({ timestamp: i }) => {
|
|
3509
3509
|
const r = i - n;
|
|
3510
3510
|
r >= t && (ft(s), e(r - t));
|
|
3511
3511
|
};
|
|
3512
3512
|
return pe.setup(s, !0), () => ft(s);
|
|
3513
3513
|
}
|
|
3514
3514
|
function Un(e) {
|
|
3515
|
-
return
|
|
3515
|
+
return Re(e) ? e.get() : e;
|
|
3516
3516
|
}
|
|
3517
3517
|
class R0 {
|
|
3518
3518
|
constructor() {
|
|
@@ -3725,8 +3725,8 @@ function ic({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
3725
3725
|
return;
|
|
3726
3726
|
}
|
|
3727
3727
|
this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach($0), this.nodes.forEach(V0), this.nodes.forEach(O0)) : this.nodes.forEach(Nr), this.clearAllSnapshots();
|
|
3728
|
-
const l =
|
|
3729
|
-
|
|
3728
|
+
const l = Ve.now();
|
|
3729
|
+
Ae.delta = et(0, 1e3 / 60, l - Ae.timestamp), Ae.timestamp = l, Ae.isProcessing = !0, vs.update.process(Ae), vs.preRender.process(Ae), vs.render.process(Ae), Ae.isProcessing = !1;
|
|
3730
3730
|
}
|
|
3731
3731
|
didUpdate() {
|
|
3732
3732
|
this.updateScheduled || (this.updateScheduled = !0, Ki.read(this.scheduleUpdate));
|
|
@@ -3746,7 +3746,7 @@ function ic({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
3746
3746
|
* Update measurements
|
|
3747
3747
|
*/
|
|
3748
3748
|
updateSnapshot() {
|
|
3749
|
-
this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !
|
|
3749
|
+
this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !Oe(this.snapshot.measuredBox.x) && !Oe(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
|
|
3750
3750
|
}
|
|
3751
3751
|
updateLayout() {
|
|
3752
3752
|
if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty))
|
|
@@ -3755,7 +3755,7 @@ function ic({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
3755
3755
|
for (let c = 0; c < this.path.length; c++)
|
|
3756
3756
|
this.path[c].updateScroll();
|
|
3757
3757
|
const o = this.layout;
|
|
3758
|
-
this.layout = this.measure(!1), this.layoutVersion++, this.layoutCorrected =
|
|
3758
|
+
this.layout = this.measure(!1), this.layoutVersion++, this.layoutCorrected = ke(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
|
|
3759
3759
|
const { visualElement: l } = this.options;
|
|
3760
3760
|
l && l.notify("LayoutMeasure", this.layout.layoutBox, o ? o.layoutBox : void 0);
|
|
3761
3761
|
}
|
|
@@ -3792,7 +3792,7 @@ function ic({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
3792
3792
|
measurePageBox() {
|
|
3793
3793
|
const { visualElement: o } = this.options;
|
|
3794
3794
|
if (!o)
|
|
3795
|
-
return
|
|
3795
|
+
return ke();
|
|
3796
3796
|
const l = o.measureViewportBox();
|
|
3797
3797
|
if (!(this.scroll?.wasRoot || this.path.some(K0))) {
|
|
3798
3798
|
const { scroll: u } = this.root;
|
|
@@ -3801,7 +3801,7 @@ function ic({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
3801
3801
|
return l;
|
|
3802
3802
|
}
|
|
3803
3803
|
removeElementScroll(o) {
|
|
3804
|
-
const l =
|
|
3804
|
+
const l = ke();
|
|
3805
3805
|
if (Ye(l, o), this.scroll?.wasRoot)
|
|
3806
3806
|
return l;
|
|
3807
3807
|
for (let c = 0; c < this.path.length; c++) {
|
|
@@ -3811,7 +3811,7 @@ function ic({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
3811
3811
|
return l;
|
|
3812
3812
|
}
|
|
3813
3813
|
applyTransform(o, l = !1) {
|
|
3814
|
-
const c =
|
|
3814
|
+
const c = ke();
|
|
3815
3815
|
Ye(c, o);
|
|
3816
3816
|
for (let u = 0; u < this.path.length; u++) {
|
|
3817
3817
|
const d = this.path[u];
|
|
@@ -3823,14 +3823,14 @@ function ic({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
3823
3823
|
return Nt(this.latestValues) && $t(c, this.latestValues), c;
|
|
3824
3824
|
}
|
|
3825
3825
|
removeTransform(o) {
|
|
3826
|
-
const l =
|
|
3826
|
+
const l = ke();
|
|
3827
3827
|
Ye(l, o);
|
|
3828
3828
|
for (let c = 0; c < this.path.length; c++) {
|
|
3829
3829
|
const u = this.path[c];
|
|
3830
3830
|
if (!u.instance || !Nt(u.latestValues))
|
|
3831
3831
|
continue;
|
|
3832
3832
|
di(u.latestValues) && u.updateSnapshot();
|
|
3833
|
-
const d =
|
|
3833
|
+
const d = ke(), h = u.measurePageBox();
|
|
3834
3834
|
Ye(d, h), mr(l, u.latestValues, u.snapshot ? u.snapshot.layoutBox : void 0, d);
|
|
3835
3835
|
}
|
|
3836
3836
|
return Nt(this.latestValues) && mr(l, this.latestValues), l;
|
|
@@ -3849,7 +3849,7 @@ function ic({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
3849
3849
|
this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
|
|
3850
3850
|
}
|
|
3851
3851
|
forceRelativeParentToResolveTarget() {
|
|
3852
|
-
this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !==
|
|
3852
|
+
this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== Ae.timestamp && this.relativeParent.resolveTargetDelta(!0);
|
|
3853
3853
|
}
|
|
3854
3854
|
resolveTargetDelta(o = !1) {
|
|
3855
3855
|
const l = this.getLead();
|
|
@@ -3860,9 +3860,9 @@ function ic({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
3860
3860
|
const { layout: d, layoutId: h } = this.options;
|
|
3861
3861
|
if (!this.layout || !(d || h))
|
|
3862
3862
|
return;
|
|
3863
|
-
this.resolvedRelativeTargetAt =
|
|
3863
|
+
this.resolvedRelativeTargetAt = Ae.timestamp;
|
|
3864
3864
|
const f = this.getClosestProjectingParent();
|
|
3865
|
-
f && this.linkedParentVersion !== f.layoutVersion && !f.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (f && f.layout ? this.createRelativeTarget(f, this.layout.layoutBox, f.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target =
|
|
3865
|
+
f && this.linkedParentVersion !== f.layoutVersion && !f.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (f && f.layout ? this.createRelativeTarget(f, this.layout.layoutBox, f.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = ke(), this.targetWithTransforms = ke()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), x0(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : Ye(this.target, this.layout.layoutBox), _l(this.target, this.targetDelta)) : Ye(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, f && !!f.resumingFrom == !!this.resumingFrom && !f.options.layoutScroll && f.target && this.animationProgress !== 1 ? this.createRelativeTarget(f, this.target, f.target) : this.relativeParent = this.relativeTarget = void 0));
|
|
3866
3866
|
}
|
|
3867
3867
|
getClosestProjectingParent() {
|
|
3868
3868
|
if (!(!this.parent || di(this.parent.latestValues) || Dl(this.parent.latestValues)))
|
|
@@ -3872,7 +3872,7 @@ function ic({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
3872
3872
|
return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);
|
|
3873
3873
|
}
|
|
3874
3874
|
createRelativeTarget(o, l, c) {
|
|
3875
|
-
this.relativeParent = o, this.linkedParentVersion = o.layoutVersion, this.forceRelativeParentToResolveTarget(), this.relativeTarget =
|
|
3875
|
+
this.relativeParent = o, this.linkedParentVersion = o.layoutVersion, this.forceRelativeParentToResolveTarget(), this.relativeTarget = ke(), this.relativeTargetOrigin = ke(), Qn(this.relativeTargetOrigin, l, c), Ye(this.relativeTarget, this.relativeTargetOrigin);
|
|
3876
3876
|
}
|
|
3877
3877
|
removeRelativeTarget() {
|
|
3878
3878
|
this.relativeParent = this.relativeTarget = void 0;
|
|
@@ -3880,14 +3880,14 @@ function ic({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
3880
3880
|
calcProjection() {
|
|
3881
3881
|
const o = this.getLead(), l = !!this.resumingFrom || this !== o;
|
|
3882
3882
|
let c = !0;
|
|
3883
|
-
if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (c = !1), l && (this.isSharedProjectionDirty || this.isTransformDirty) && (c = !1), this.resolvedRelativeTargetAt ===
|
|
3883
|
+
if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (c = !1), l && (this.isSharedProjectionDirty || this.isTransformDirty) && (c = !1), this.resolvedRelativeTargetAt === Ae.timestamp && (c = !1), c)
|
|
3884
3884
|
return;
|
|
3885
3885
|
const { layout: u, layoutId: d } = this.options;
|
|
3886
3886
|
if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(u || d))
|
|
3887
3887
|
return;
|
|
3888
3888
|
Ye(this.layoutCorrected, this.layout.layoutBox);
|
|
3889
3889
|
const h = this.treeScale.x, f = this.treeScale.y;
|
|
3890
|
-
Gf(this.layoutCorrected, this.treeScale, this.path, l), o.layout && !o.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (o.target = o.layout.layoutBox, o.targetWithTransforms =
|
|
3890
|
+
Gf(this.layoutCorrected, this.treeScale, this.path, l), o.layout && !o.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (o.target = o.layout.layoutBox, o.targetWithTransforms = ke());
|
|
3891
3891
|
const { target: m } = o;
|
|
3892
3892
|
if (!m) {
|
|
3893
3893
|
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
|
@@ -3914,12 +3914,12 @@ function ic({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
3914
3914
|
setAnimationOrigin(o, l = !1) {
|
|
3915
3915
|
const c = this.snapshot, u = c ? c.latestValues : {}, d = { ...this.latestValues }, h = _t();
|
|
3916
3916
|
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !l;
|
|
3917
|
-
const f =
|
|
3917
|
+
const f = ke(), m = c ? c.source : void 0, p = this.layout ? this.layout.source : void 0, b = m !== p, x = this.getStack(), y = !x || x.members.length <= 1, N = !!(b && !y && this.options.crossfade === !0 && !this.path.some(H0));
|
|
3918
3918
|
this.animationProgress = 0;
|
|
3919
3919
|
let k;
|
|
3920
3920
|
this.mixTargetDelta = (P) => {
|
|
3921
3921
|
const j = P / 1e3;
|
|
3922
|
-
Er(h.x, o.x, j), Er(h.y, o.y, j), this.setTargetDelta(h), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Qn(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), U0(this.relativeTarget, this.relativeTargetOrigin, f, j), k && S0(this.relativeTarget, k) && (this.isProjectionDirty = !1), k || (k =
|
|
3922
|
+
Er(h.x, o.x, j), Er(h.y, o.y, j), this.setTargetDelta(h), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Qn(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), U0(this.relativeTarget, this.relativeTargetOrigin, f, j), k && S0(this.relativeTarget, k) && (this.isProjectionDirty = !1), k || (k = ke()), Ye(k, this.relativeTarget)), b && (this.animationValues = d, E0(d, u, this.latestValues, j, N, y)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = j;
|
|
3923
3923
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
3924
3924
|
}
|
|
3925
3925
|
startAnimation(o) {
|
|
@@ -3952,10 +3952,10 @@ function ic({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
3952
3952
|
let { targetWithTransforms: l, target: c, layout: u, latestValues: d } = o;
|
|
3953
3953
|
if (!(!l || !c || !u)) {
|
|
3954
3954
|
if (this !== o && this.layout && u && oc(this.options.animationType, this.layout.layoutBox, u.layoutBox)) {
|
|
3955
|
-
c = this.target ||
|
|
3956
|
-
const h =
|
|
3955
|
+
c = this.target || ke();
|
|
3956
|
+
const h = Oe(this.layout.layoutBox.x);
|
|
3957
3957
|
c.x.min = o.target.x.min, c.x.max = c.x.min + h;
|
|
3958
|
-
const f =
|
|
3958
|
+
const f = Oe(this.layout.layoutBox.y);
|
|
3959
3959
|
c.y.min = o.target.y.min, c.y.max = c.y.min + f;
|
|
3960
3960
|
}
|
|
3961
3961
|
Ye(l, c), $t(l, d), cn(this.projectionDeltaWithTransform, this.layoutCorrected, l, d);
|
|
@@ -4064,11 +4064,11 @@ function O0(e) {
|
|
|
4064
4064
|
const t = e.resumeFrom?.snapshot || e.snapshot;
|
|
4065
4065
|
if (e.isLead() && e.layout && t && e.hasListeners("didUpdate")) {
|
|
4066
4066
|
const { layoutBox: n, measuredBox: s } = e.layout, { animationType: i } = e.options, r = t.source !== e.layout.source;
|
|
4067
|
-
i === "size" ?
|
|
4068
|
-
const h = r ? t.measuredBox[d] : t.layoutBox[d], f =
|
|
4067
|
+
i === "size" ? qe((d) => {
|
|
4068
|
+
const h = r ? t.measuredBox[d] : t.layoutBox[d], f = Oe(h);
|
|
4069
4069
|
h.min = n[d].min, h.max = h.min + f;
|
|
4070
|
-
}) : oc(i, t.layoutBox, n) &&
|
|
4071
|
-
const h = r ? t.measuredBox[d] : t.layoutBox[d], f =
|
|
4070
|
+
}) : oc(i, t.layoutBox, n) && qe((d) => {
|
|
4071
|
+
const h = r ? t.measuredBox[d] : t.layoutBox[d], f = Oe(n[d]);
|
|
4072
4072
|
h.max = h.min + f, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[d].max = e.relativeTarget[d].min + f);
|
|
4073
4073
|
});
|
|
4074
4074
|
const o = _t();
|
|
@@ -4082,9 +4082,9 @@ function O0(e) {
|
|
|
4082
4082
|
if (d && !d.resumeFrom) {
|
|
4083
4083
|
const { snapshot: h, layout: f } = d;
|
|
4084
4084
|
if (h && f) {
|
|
4085
|
-
const m =
|
|
4085
|
+
const m = ke();
|
|
4086
4086
|
Qn(m, t.layoutBox, h.layoutBox);
|
|
4087
|
-
const p =
|
|
4087
|
+
const p = ke();
|
|
4088
4088
|
Qn(p, n, f.layoutBox), Ql(m, p) || (u = !0), d.options.layoutRoot && (e.relativeTarget = p, e.relativeTargetOrigin = m, e.relativeParent = d);
|
|
4089
4089
|
}
|
|
4090
4090
|
}
|
|
@@ -4238,7 +4238,7 @@ class Q0 extends g.Component {
|
|
|
4238
4238
|
}
|
|
4239
4239
|
}
|
|
4240
4240
|
function em({ children: e, isPresent: t, anchorX: n, anchorY: s, root: i, pop: r }) {
|
|
4241
|
-
const o = Ti(), l =
|
|
4241
|
+
const o = Ti(), l = ve(null), c = ve({
|
|
4242
4242
|
width: 0,
|
|
4243
4243
|
height: 0,
|
|
4244
4244
|
top: 0,
|
|
@@ -4318,8 +4318,8 @@ function Rr(e) {
|
|
|
4318
4318
|
Ou(n) && t.push(n);
|
|
4319
4319
|
}), t;
|
|
4320
4320
|
}
|
|
4321
|
-
const
|
|
4322
|
-
const [d, h] = ac(o), f = jt(() => Rr(e), [e]), m = o && !d ? [] : f.map(Ln), p =
|
|
4321
|
+
const Ce = ({ children: e, custom: t, initial: n = !0, onExitComplete: s, presenceAffectsLayout: i = !0, mode: r = "sync", propagate: o = !1, anchorX: l = "left", anchorY: c = "top", root: u }) => {
|
|
4322
|
+
const [d, h] = ac(o), f = jt(() => Rr(e), [e]), m = o && !d ? [] : f.map(Ln), p = ve(!0), b = ve(f), x = os(() => /* @__PURE__ */ new Map()), y = ve(/* @__PURE__ */ new Set()), [N, k] = O(f), [P, j] = O(f);
|
|
4323
4323
|
Pa(() => {
|
|
4324
4324
|
p.current = !1, b.current = f;
|
|
4325
4325
|
for (let v = 0; v < P.length; v++) {
|
|
@@ -4346,10 +4346,10 @@ const ke = ({ children: e, custom: t, initial: n = !0, onExitComplete: s, presen
|
|
|
4346
4346
|
x.set(I, !0);
|
|
4347
4347
|
else
|
|
4348
4348
|
return;
|
|
4349
|
-
let
|
|
4349
|
+
let q = !0;
|
|
4350
4350
|
x.forEach((D) => {
|
|
4351
|
-
D || (
|
|
4352
|
-
}),
|
|
4351
|
+
D || (q = !1);
|
|
4352
|
+
}), q && (S?.(), j(b.current), o && h?.(), s && s());
|
|
4353
4353
|
};
|
|
4354
4354
|
return a.jsx(tm, { isPresent: F, initial: !p.current || n ? void 0 : !1, custom: t, presenceAffectsLayout: i, mode: r, root: u, onExitComplete: F ? void 0 : B, anchorX: l, anchorY: c, children: v }, I);
|
|
4355
4355
|
}) });
|
|
@@ -4473,7 +4473,7 @@ const to = () => ({
|
|
|
4473
4473
|
});
|
|
4474
4474
|
function dc(e, t, n) {
|
|
4475
4475
|
for (const s in t)
|
|
4476
|
-
!
|
|
4476
|
+
!Re(t[s]) && !Bl(s, n) && (e[s] = t[s]);
|
|
4477
4477
|
}
|
|
4478
4478
|
function hm({ transformTemplate: e }, t) {
|
|
4479
4479
|
return jt(() => {
|
|
@@ -4555,7 +4555,7 @@ function no(e) {
|
|
|
4555
4555
|
);
|
|
4556
4556
|
}
|
|
4557
4557
|
function bm(e, t, n, { latestValues: s }, i, r = !1, o) {
|
|
4558
|
-
const c = (o ?? no(e) ? pm : mm)(t, s, i, e), u = cm(t, typeof e == "string", r), d = e !== va ? { ...u, ...c, ref: n } : {}, { children: h } = t, f = jt(() =>
|
|
4558
|
+
const c = (o ?? no(e) ? pm : mm)(t, s, i, e), u = cm(t, typeof e == "string", r), d = e !== va ? { ...u, ...c, ref: n } : {}, { children: h } = t, f = jt(() => Re(h) ? h.get() : h, [h]);
|
|
4559
4559
|
return Du(e, {
|
|
4560
4560
|
...d,
|
|
4561
4561
|
children: f
|
|
@@ -4609,11 +4609,11 @@ const fc = (e) => (t, n) => {
|
|
|
4609
4609
|
createRenderState: hc
|
|
4610
4610
|
}), Tm = /* @__PURE__ */ Symbol.for("motionComponentSymbol");
|
|
4611
4611
|
function Sm(e, t, n) {
|
|
4612
|
-
const s =
|
|
4612
|
+
const s = ve(n);
|
|
4613
4613
|
Si(() => {
|
|
4614
4614
|
s.current = n;
|
|
4615
4615
|
});
|
|
4616
|
-
const i =
|
|
4616
|
+
const i = ve(null);
|
|
4617
4617
|
return dn((r) => {
|
|
4618
4618
|
r && e.onMount?.(r), t && (r ? t.mount(r) : t.unmount());
|
|
4619
4619
|
const o = s.current;
|
|
@@ -4630,7 +4630,7 @@ function Lt(e) {
|
|
|
4630
4630
|
return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
|
|
4631
4631
|
}
|
|
4632
4632
|
function Nm(e, t, n, s, i, r) {
|
|
4633
|
-
const { visualElement: o } = be(us), l = be(lc), c = be(Tn), u = be(cs), d = u.reducedMotion, h = u.skipAnimations, f =
|
|
4633
|
+
const { visualElement: o } = be(us), l = be(lc), c = be(Tn), u = be(cs), d = u.reducedMotion, h = u.skipAnimations, f = ve(null), m = ve(!1);
|
|
4634
4634
|
s = s || l.renderer, !f.current && s && (f.current = s(e, {
|
|
4635
4635
|
visualState: t,
|
|
4636
4636
|
parent: o,
|
|
@@ -4643,11 +4643,11 @@ function Nm(e, t, n, s, i, r) {
|
|
|
4643
4643
|
}), m.current && f.current && (f.current.manuallyAnimateOnMount = !0));
|
|
4644
4644
|
const p = f.current, b = be(mc);
|
|
4645
4645
|
p && !p.projection && i && (p.type === "html" || p.type === "svg") && km(f.current, n, i, b);
|
|
4646
|
-
const x =
|
|
4646
|
+
const x = ve(!1);
|
|
4647
4647
|
Si(() => {
|
|
4648
4648
|
p && x.current && p.update(n, c);
|
|
4649
4649
|
});
|
|
4650
|
-
const y = n[xl], N =
|
|
4650
|
+
const y = n[xl], N = ve(!!y && !window.MotionHandoffIsComplete?.(y) && window.MotionHasOptimisedAnimation?.(y));
|
|
4651
4651
|
return Pa(() => {
|
|
4652
4652
|
m.current = !0, p && (x.current = !0, window.MotionIsMounted = !0, p.updateFeatures(), p.scheduleRenderMicrotask(), N.current && p.animationState && p.animationState.animateChanges());
|
|
4653
4653
|
}), ie(() => {
|
|
@@ -4827,7 +4827,7 @@ class bc {
|
|
|
4827
4827
|
const m = As(this.lastMoveEventInfo, this.history), p = this.startEvent !== null, b = Om(m.offset, { x: 0, y: 0 }) >= this.distanceThreshold;
|
|
4828
4828
|
if (!p && !b)
|
|
4829
4829
|
return;
|
|
4830
|
-
const { point: x } = m, { timestamp: y } =
|
|
4830
|
+
const { point: x } = m, { timestamp: y } = Ae;
|
|
4831
4831
|
this.history.push({ ...x, timestamp: y });
|
|
4832
4832
|
const { onStart: N, onMove: k } = this.handlers;
|
|
4833
4833
|
p || (N && N(this.lastMoveEvent, m), this.startEvent = this.lastMoveEvent), k && k(this.lastMoveEvent, m);
|
|
@@ -4843,7 +4843,7 @@ class bc {
|
|
|
4843
4843
|
}, !Zi(t))
|
|
4844
4844
|
return;
|
|
4845
4845
|
this.dragSnapToOrigin = r, this.handlers = n, this.transformPagePoint = s, this.distanceThreshold = o, this.contextWindow = i || window;
|
|
4846
|
-
const c = En(t), u = Rs(c, this.transformPagePoint), { point: d } = u, { timestamp: h } =
|
|
4846
|
+
const c = En(t), u = Rs(c, this.transformPagePoint), { point: d } = u, { timestamp: h } = Ae;
|
|
4847
4847
|
this.history = [{ ...d, timestamp: h }];
|
|
4848
4848
|
const { onSessionStart: f } = n;
|
|
4849
4849
|
f && f(t, As(u, this.history)), this.removeListeners = Sn(un(this.contextWindow, "pointermove", this.handlePointerMove), un(this.contextWindow, "pointerup", this.handlePointerUp), un(this.contextWindow, "pointercancel", this.handlePointerUp)), l && this.startScrollTracking(l);
|
|
@@ -4963,8 +4963,8 @@ function Bm(e, t) {
|
|
|
4963
4963
|
}
|
|
4964
4964
|
function zm(e, t) {
|
|
4965
4965
|
let n = 0.5;
|
|
4966
|
-
const s =
|
|
4967
|
-
return i > s ? n = /* @__PURE__ */ Wt(t.min, t.max - s, e.min) : s > i && (n = /* @__PURE__ */ Wt(e.min, e.max - i, t.min)),
|
|
4966
|
+
const s = Oe(e), i = Oe(t);
|
|
4967
|
+
return i > s ? n = /* @__PURE__ */ Wt(t.min, t.max - s, e.min) : s > i && (n = /* @__PURE__ */ Wt(e.min, e.max - i, t.min)), et(0, 1, n);
|
|
4968
4968
|
}
|
|
4969
4969
|
function Wm(e, t) {
|
|
4970
4970
|
const n = {};
|
|
@@ -4989,7 +4989,7 @@ function zr(e, t) {
|
|
|
4989
4989
|
const Um = /* @__PURE__ */ new WeakMap();
|
|
4990
4990
|
class Hm {
|
|
4991
4991
|
constructor(t) {
|
|
4992
|
-
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic =
|
|
4992
|
+
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = ke(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = t;
|
|
4993
4993
|
}
|
|
4994
4994
|
start(t, { snapToCursor: n = !1, distanceThreshold: s } = {}) {
|
|
4995
4995
|
const { presenceContext: i } = this.visualElement;
|
|
@@ -5001,13 +5001,13 @@ class Hm {
|
|
|
5001
5001
|
const { drag: m, dragPropagation: p, onDragStart: b } = this.getProps();
|
|
5002
5002
|
if (m && !p && (this.openDragLock && this.openDragLock(), this.openDragLock = Sf(m), !this.openDragLock))
|
|
5003
5003
|
return;
|
|
5004
|
-
this.latestPointerEvent = h, this.latestPanInfo = f, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0),
|
|
5004
|
+
this.latestPointerEvent = h, this.latestPanInfo = f, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), qe((y) => {
|
|
5005
5005
|
let N = this.getAxisMotionValue(y).get() || 0;
|
|
5006
|
-
if (
|
|
5006
|
+
if (Je.test(N)) {
|
|
5007
5007
|
const { projection: k } = this.visualElement;
|
|
5008
5008
|
if (k && k.layout) {
|
|
5009
5009
|
const P = k.layout.layoutBox[y];
|
|
5010
|
-
P && (N =
|
|
5010
|
+
P && (N = Oe(P) * (parseFloat(N) / 100));
|
|
5011
5011
|
}
|
|
5012
5012
|
}
|
|
5013
5013
|
this.originPoint[y] = N;
|
|
@@ -5086,7 +5086,7 @@ class Hm {
|
|
|
5086
5086
|
}
|
|
5087
5087
|
resolveConstraints() {
|
|
5088
5088
|
const { dragConstraints: t, dragElastic: n } = this.getProps(), s = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : this.visualElement.projection?.layout, i = this.constraints;
|
|
5089
|
-
t && Lt(t) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : t && s ? this.constraints = $m(s.layoutBox, t) : this.constraints = !1, this.elastic = Ym(n), i !== this.constraints && !Lt(t) && s && this.constraints && !this.hasMutatedConstraints &&
|
|
5089
|
+
t && Lt(t) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : t && s ? this.constraints = $m(s.layoutBox, t) : this.constraints = !1, this.elastic = Ym(n), i !== this.constraints && !Lt(t) && s && this.constraints && !this.hasMutatedConstraints && qe((r) => {
|
|
5090
5090
|
this.constraints !== !1 && this.getAxisMotionValue(r) && (this.constraints[r] = Wm(s.layoutBox[r], this.constraints[r]));
|
|
5091
5091
|
});
|
|
5092
5092
|
}
|
|
@@ -5108,7 +5108,7 @@ class Hm {
|
|
|
5108
5108
|
return o;
|
|
5109
5109
|
}
|
|
5110
5110
|
startAnimation(t) {
|
|
5111
|
-
const { drag: n, dragMomentum: s, dragElastic: i, dragTransition: r, dragSnapToOrigin: o, onDragTransitionEnd: l } = this.getProps(), c = this.constraints || {}, u =
|
|
5111
|
+
const { drag: n, dragMomentum: s, dragElastic: i, dragTransition: r, dragSnapToOrigin: o, onDragTransitionEnd: l } = this.getProps(), c = this.constraints || {}, u = qe((d) => {
|
|
5112
5112
|
if (!Vn(d, n, this.currentDirection))
|
|
5113
5113
|
return;
|
|
5114
5114
|
let h = c && c[d] || {};
|
|
@@ -5133,7 +5133,7 @@ class Hm {
|
|
|
5133
5133
|
return oi(this.visualElement, t), s.start(Wi(t, s, 0, n, this.visualElement, !1));
|
|
5134
5134
|
}
|
|
5135
5135
|
stopAnimation() {
|
|
5136
|
-
|
|
5136
|
+
qe((t) => this.getAxisMotionValue(t).stop());
|
|
5137
5137
|
}
|
|
5138
5138
|
/**
|
|
5139
5139
|
* Drag works differently depending on which props are provided.
|
|
@@ -5146,7 +5146,7 @@ class Hm {
|
|
|
5146
5146
|
return i || this.visualElement.getValue(t, (s.initial ? s.initial[t] : void 0) || 0);
|
|
5147
5147
|
}
|
|
5148
5148
|
snapToCursor(t) {
|
|
5149
|
-
|
|
5149
|
+
qe((n) => {
|
|
5150
5150
|
const { drag: s } = this.getProps();
|
|
5151
5151
|
if (!Vn(n, s, this.currentDirection))
|
|
5152
5152
|
return;
|
|
@@ -5170,7 +5170,7 @@ class Hm {
|
|
|
5170
5170
|
return;
|
|
5171
5171
|
this.stopAnimation();
|
|
5172
5172
|
const i = { x: 0, y: 0 };
|
|
5173
|
-
|
|
5173
|
+
qe((o) => {
|
|
5174
5174
|
const l = this.getAxisMotionValue(o);
|
|
5175
5175
|
if (l && this.constraints !== !1) {
|
|
5176
5176
|
const c = l.get();
|
|
@@ -5178,7 +5178,7 @@ class Hm {
|
|
|
5178
5178
|
}
|
|
5179
5179
|
});
|
|
5180
5180
|
const { transformTemplate: r } = this.visualElement.getProps();
|
|
5181
|
-
this.visualElement.current.style.transform = r ? r({}, "") : "none", s.root && s.root.updateScroll(), s.updateLayout(), this.constraints = !1, this.resolveConstraints(),
|
|
5181
|
+
this.visualElement.current.style.transform = r ? r({}, "") : "none", s.root && s.root.updateScroll(), s.updateLayout(), this.constraints = !1, this.resolveConstraints(), qe((o) => {
|
|
5182
5182
|
if (!Vn(o, t, null))
|
|
5183
5183
|
return;
|
|
5184
5184
|
const l = this.getAxisMotionValue(o), { min: c, max: u } = this.constraints[o];
|
|
@@ -5200,7 +5200,7 @@ class Hm {
|
|
|
5200
5200
|
}, { projection: r } = this.visualElement, o = r.addEventListener("measure", i);
|
|
5201
5201
|
r && !r.layout && (r.root && r.root.updateScroll(), r.updateLayout()), pe.read(i);
|
|
5202
5202
|
const l = xn(window, "resize", () => this.scalePositionWithinConstraints()), c = r.addEventListener("didUpdate", (({ delta: u, hasLayoutChanged: d }) => {
|
|
5203
|
-
this.isDragging && d && (
|
|
5203
|
+
this.isDragging && d && (qe((h) => {
|
|
5204
5204
|
const f = this.getAxisMotionValue(h);
|
|
5205
5205
|
f && (this.originPoint[h] += u[h].translate, f.set(f.get() + u[h].translate));
|
|
5206
5206
|
}), this.visualElement.render());
|
|
@@ -5552,22 +5552,22 @@ function vp(e, { defaultTransition: t = {}, ...n } = {}, s, i) {
|
|
|
5552
5552
|
y.at !== void 0 && (h = Hr(h, y.at, d, u));
|
|
5553
5553
|
let N = 0;
|
|
5554
5554
|
const k = (P, j, E, S = 0, v = 0) => {
|
|
5555
|
-
const I = wp(P), { delay: F = 0, times: B = rl(I), type:
|
|
5555
|
+
const I = wp(P), { delay: F = 0, times: B = rl(I), type: q = t.type || "keyframes", repeat: D, repeatType: te, repeatDelay: Y = 0, ...Z } = j;
|
|
5556
5556
|
let { ease: R = t.ease || "easeOut", duration: C } = j;
|
|
5557
|
-
const _ = typeof F == "function" ? F(S, v) : F, M = I.length, T = Bi(
|
|
5557
|
+
const _ = typeof F == "function" ? F(S, v) : F, M = I.length, T = Bi(q) ? q : i?.[q || "keyframes"];
|
|
5558
5558
|
if (M <= 2 && T) {
|
|
5559
|
-
let
|
|
5559
|
+
let ne = 100;
|
|
5560
5560
|
if (M === 2 && Np(I)) {
|
|
5561
5561
|
const ge = I[1] - I[0];
|
|
5562
|
-
|
|
5562
|
+
ne = Math.abs(ge);
|
|
5563
5563
|
}
|
|
5564
|
-
const
|
|
5564
|
+
const ae = {
|
|
5565
5565
|
...t,
|
|
5566
|
-
...
|
|
5566
|
+
...Z
|
|
5567
5567
|
};
|
|
5568
|
-
C !== void 0 && (
|
|
5569
|
-
const
|
|
5570
|
-
R =
|
|
5568
|
+
C !== void 0 && (ae.duration = /* @__PURE__ */ Fe(C));
|
|
5569
|
+
const oe = sl(ae, ne, T);
|
|
5570
|
+
R = oe.ease, C = oe.duration;
|
|
5571
5571
|
}
|
|
5572
5572
|
C ?? (C = r);
|
|
5573
5573
|
const A = h + _;
|
|
@@ -5575,20 +5575,20 @@ function vp(e, { defaultTransition: t = {}, ...n } = {}, s, i) {
|
|
|
5575
5575
|
const ee = B.length - I.length;
|
|
5576
5576
|
if (ee > 0 && ol(B, ee), I.length === 1 && I.unshift(null), D) {
|
|
5577
5577
|
Ge(D < xp, "Repeat count too high, must be less than 20", "repeat-count-high"), C = fp(C, D);
|
|
5578
|
-
const
|
|
5578
|
+
const ne = [...I], ae = [...B];
|
|
5579
5579
|
R = Array.isArray(R) ? [...R] : [R];
|
|
5580
|
-
const
|
|
5580
|
+
const oe = [...R];
|
|
5581
5581
|
for (let ge = 0; ge < D; ge++) {
|
|
5582
|
-
I.push(...
|
|
5583
|
-
for (let
|
|
5584
|
-
B.push(
|
|
5582
|
+
I.push(...ne);
|
|
5583
|
+
for (let ce = 0; ce < ne.length; ce++)
|
|
5584
|
+
B.push(ae[ce] + (ge + 1)), R.push(ce === 0 ? "linear" : Ya(oe, ce - 1));
|
|
5585
5585
|
}
|
|
5586
5586
|
gp(B, D);
|
|
5587
5587
|
}
|
|
5588
|
-
const
|
|
5589
|
-
pp(E, I, R, B, A,
|
|
5588
|
+
const re = A + C;
|
|
5589
|
+
pp(E, I, R, B, A, re), N = Math.max(_ + C, N), f = Math.max(re, f);
|
|
5590
5590
|
};
|
|
5591
|
-
if (
|
|
5591
|
+
if (Re(b)) {
|
|
5592
5592
|
const P = Xr(b, l);
|
|
5593
5593
|
k(x, y, Gr("default", P));
|
|
5594
5594
|
} else {
|
|
@@ -5675,7 +5675,7 @@ function Ep(e) {
|
|
|
5675
5675
|
n.mount(e), bn.set(e, n);
|
|
5676
5676
|
}
|
|
5677
5677
|
function Cp(e, t) {
|
|
5678
|
-
return
|
|
5678
|
+
return Re(e) || typeof e == "number" || typeof e == "string" && !so(t);
|
|
5679
5679
|
}
|
|
5680
5680
|
function wc(e, t, n, s) {
|
|
5681
5681
|
const i = [];
|
|
@@ -6088,22 +6088,22 @@ const Ap = (e, t) => {
|
|
|
6088
6088
|
return i(c, d), d;
|
|
6089
6089
|
};
|
|
6090
6090
|
return r = o, (...c) => r(Jp(...c));
|
|
6091
|
-
}, eg = [],
|
|
6091
|
+
}, eg = [], Pe = (e) => {
|
|
6092
6092
|
const t = (n) => n[e] || eg;
|
|
6093
6093
|
return t.isThemeGetter = !0, t;
|
|
6094
|
-
}, jc = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Mc = /^\((?:(\w[\w-]*):)?(.+)\)$/i, tg = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, ng = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, sg = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ig = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, og = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, rg = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, at = (e) => tg.test(e),
|
|
6094
|
+
}, jc = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Mc = /^\((?:(\w[\w-]*):)?(.+)\)$/i, tg = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, ng = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, sg = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ig = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, og = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, rg = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, at = (e) => tg.test(e), le = (e) => !!e && !Number.isNaN(Number(e)), lt = (e) => !!e && Number.isInteger(Number(e)), _s = (e) => e.endsWith("%") && le(e.slice(0, -1)), st = (e) => ng.test(e), Rc = () => !0, ag = (e) => (
|
|
6095
6095
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
6096
6096
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
6097
6097
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
6098
6098
|
sg.test(e) && !ig.test(e)
|
|
6099
|
-
), ro = () => !1, lg = (e) => og.test(e), cg = (e) => rg.test(e), ug = (e) => !X(e) && !K(e), dg = (e) => gt(e, Vc, ro), X = (e) => jc.test(e), Tt = (e) => gt(e, Oc, ag), Qr = (e) => gt(e, xg,
|
|
6099
|
+
), ro = () => !1, lg = (e) => og.test(e), cg = (e) => rg.test(e), ug = (e) => !X(e) && !K(e), dg = (e) => gt(e, Vc, ro), X = (e) => jc.test(e), Tt = (e) => gt(e, Oc, ag), Qr = (e) => gt(e, xg, le), hg = (e) => gt(e, _c, Rc), fg = (e) => gt(e, Dc, ro), ea = (e) => gt(e, Ac, ro), mg = (e) => gt(e, Lc, cg), On = (e) => gt(e, Fc, lg), K = (e) => Mc.test(e), rn = (e) => Mt(e, Oc), pg = (e) => Mt(e, Dc), ta = (e) => Mt(e, Ac), gg = (e) => Mt(e, Vc), bg = (e) => Mt(e, Lc), Dn = (e) => Mt(e, Fc, !0), yg = (e) => Mt(e, _c, !0), gt = (e, t, n) => {
|
|
6100
6100
|
const s = jc.exec(e);
|
|
6101
6101
|
return s ? s[1] ? t(s[1]) : n(s[2]) : !1;
|
|
6102
6102
|
}, Mt = (e, t, n = !1) => {
|
|
6103
6103
|
const s = Mc.exec(e);
|
|
6104
6104
|
return s ? s[1] ? t(s[1]) : n : !1;
|
|
6105
6105
|
}, Ac = (e) => e === "position" || e === "percentage", Lc = (e) => e === "image" || e === "url", Vc = (e) => e === "length" || e === "size" || e === "bg-size", Oc = (e) => e === "length", xg = (e) => e === "number", Dc = (e) => e === "family-name", _c = (e) => e === "number" || e === "weight", Fc = (e) => e === "shadow", vg = () => {
|
|
6106
|
-
const e =
|
|
6106
|
+
const e = Pe("color"), t = Pe("font"), n = Pe("text"), s = Pe("font-weight"), i = Pe("tracking"), r = Pe("leading"), o = Pe("breakpoint"), l = Pe("container"), c = Pe("spacing"), u = Pe("radius"), d = Pe("shadow"), h = Pe("inset-shadow"), f = Pe("text-shadow"), m = Pe("drop-shadow"), p = Pe("blur"), b = Pe("perspective"), x = Pe("aspect"), y = Pe("ease"), N = Pe("animate"), k = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], P = () => [
|
|
6107
6107
|
"center",
|
|
6108
6108
|
"top",
|
|
6109
6109
|
"bottom",
|
|
@@ -6123,13 +6123,13 @@ const Ap = (e, t) => {
|
|
|
6123
6123
|
"left-bottom"
|
|
6124
6124
|
], j = () => [...P(), K, X], E = () => ["auto", "hidden", "clip", "visible", "scroll"], S = () => ["auto", "contain", "none"], v = () => [K, X, c], I = () => [at, "full", "auto", ...v()], F = () => [lt, "none", "subgrid", K, X], B = () => ["auto", {
|
|
6125
6125
|
span: ["full", lt, K, X]
|
|
6126
|
-
}, lt, K, X],
|
|
6126
|
+
}, lt, K, X], q = () => [lt, "auto", K, X], D = () => ["auto", "min", "max", "fr", K, X], te = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], Y = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], Z = () => ["auto", ...v()], R = () => [at, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...v()], C = () => [at, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...v()], _ = () => [at, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...v()], M = () => [e, K, X], T = () => [...P(), ta, ea, {
|
|
6127
6127
|
position: [K, X]
|
|
6128
6128
|
}], A = () => ["no-repeat", {
|
|
6129
6129
|
repeat: ["", "x", "y", "space", "round"]
|
|
6130
6130
|
}], ee = () => ["auto", "cover", "contain", gg, dg, {
|
|
6131
6131
|
size: [K, X]
|
|
6132
|
-
}],
|
|
6132
|
+
}], re = () => [_s, rn, Tt], ne = () => [
|
|
6133
6133
|
// Deprecated since Tailwind CSS v4.0.0
|
|
6134
6134
|
"",
|
|
6135
6135
|
"none",
|
|
@@ -6137,35 +6137,35 @@ const Ap = (e, t) => {
|
|
|
6137
6137
|
u,
|
|
6138
6138
|
K,
|
|
6139
6139
|
X
|
|
6140
|
-
],
|
|
6140
|
+
], ae = () => ["", le, rn, Tt], oe = () => ["solid", "dashed", "dotted", "double"], ge = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], ce = () => [le, _s, ta, ea], Se = () => [
|
|
6141
6141
|
// Deprecated since Tailwind CSS v4.0.0
|
|
6142
6142
|
"",
|
|
6143
6143
|
"none",
|
|
6144
6144
|
p,
|
|
6145
6145
|
K,
|
|
6146
6146
|
X
|
|
6147
|
-
],
|
|
6147
|
+
], W = () => ["none", le, K, X], he = () => ["none", le, K, X], Te = () => [le, K, X], Ne = () => [at, "full", ...v()];
|
|
6148
6148
|
return {
|
|
6149
6149
|
cacheSize: 500,
|
|
6150
6150
|
theme: {
|
|
6151
6151
|
animate: ["spin", "ping", "pulse", "bounce"],
|
|
6152
6152
|
aspect: ["video"],
|
|
6153
|
-
blur: [
|
|
6154
|
-
breakpoint: [
|
|
6153
|
+
blur: [st],
|
|
6154
|
+
breakpoint: [st],
|
|
6155
6155
|
color: [Rc],
|
|
6156
|
-
container: [
|
|
6157
|
-
"drop-shadow": [
|
|
6156
|
+
container: [st],
|
|
6157
|
+
"drop-shadow": [st],
|
|
6158
6158
|
ease: ["in", "out", "in-out"],
|
|
6159
6159
|
font: [ug],
|
|
6160
6160
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
6161
|
-
"inset-shadow": [
|
|
6161
|
+
"inset-shadow": [st],
|
|
6162
6162
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
6163
6163
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
6164
|
-
radius: [
|
|
6165
|
-
shadow: [
|
|
6166
|
-
spacing: ["px",
|
|
6167
|
-
text: [
|
|
6168
|
-
"text-shadow": [
|
|
6164
|
+
radius: [st],
|
|
6165
|
+
shadow: [st],
|
|
6166
|
+
spacing: ["px", le],
|
|
6167
|
+
text: [st],
|
|
6168
|
+
"text-shadow": [st],
|
|
6169
6169
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
6170
6170
|
},
|
|
6171
6171
|
classGroups: {
|
|
@@ -6190,7 +6190,7 @@ const Ap = (e, t) => {
|
|
|
6190
6190
|
* @see https://tailwindcss.com/docs/columns
|
|
6191
6191
|
*/
|
|
6192
6192
|
columns: [{
|
|
6193
|
-
columns: [
|
|
6193
|
+
columns: [le, X, K, l]
|
|
6194
6194
|
}],
|
|
6195
6195
|
/**
|
|
6196
6196
|
* Break After
|
|
@@ -6447,21 +6447,21 @@ const Ap = (e, t) => {
|
|
|
6447
6447
|
* @see https://tailwindcss.com/docs/flex
|
|
6448
6448
|
*/
|
|
6449
6449
|
flex: [{
|
|
6450
|
-
flex: [
|
|
6450
|
+
flex: [le, at, "auto", "initial", "none", X]
|
|
6451
6451
|
}],
|
|
6452
6452
|
/**
|
|
6453
6453
|
* Flex Grow
|
|
6454
6454
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
6455
6455
|
*/
|
|
6456
6456
|
grow: [{
|
|
6457
|
-
grow: ["",
|
|
6457
|
+
grow: ["", le, K, X]
|
|
6458
6458
|
}],
|
|
6459
6459
|
/**
|
|
6460
6460
|
* Flex Shrink
|
|
6461
6461
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
6462
6462
|
*/
|
|
6463
6463
|
shrink: [{
|
|
6464
|
-
shrink: ["",
|
|
6464
|
+
shrink: ["", le, K, X]
|
|
6465
6465
|
}],
|
|
6466
6466
|
/**
|
|
6467
6467
|
* Order
|
|
@@ -6489,14 +6489,14 @@ const Ap = (e, t) => {
|
|
|
6489
6489
|
* @see https://tailwindcss.com/docs/grid-column
|
|
6490
6490
|
*/
|
|
6491
6491
|
"col-start": [{
|
|
6492
|
-
"col-start":
|
|
6492
|
+
"col-start": q()
|
|
6493
6493
|
}],
|
|
6494
6494
|
/**
|
|
6495
6495
|
* Grid Column End
|
|
6496
6496
|
* @see https://tailwindcss.com/docs/grid-column
|
|
6497
6497
|
*/
|
|
6498
6498
|
"col-end": [{
|
|
6499
|
-
"col-end":
|
|
6499
|
+
"col-end": q()
|
|
6500
6500
|
}],
|
|
6501
6501
|
/**
|
|
6502
6502
|
* Grid Template Rows
|
|
@@ -6517,14 +6517,14 @@ const Ap = (e, t) => {
|
|
|
6517
6517
|
* @see https://tailwindcss.com/docs/grid-row
|
|
6518
6518
|
*/
|
|
6519
6519
|
"row-start": [{
|
|
6520
|
-
"row-start":
|
|
6520
|
+
"row-start": q()
|
|
6521
6521
|
}],
|
|
6522
6522
|
/**
|
|
6523
6523
|
* Grid Row End
|
|
6524
6524
|
* @see https://tailwindcss.com/docs/grid-row
|
|
6525
6525
|
*/
|
|
6526
6526
|
"row-end": [{
|
|
6527
|
-
"row-end":
|
|
6527
|
+
"row-end": q()
|
|
6528
6528
|
}],
|
|
6529
6529
|
/**
|
|
6530
6530
|
* Grid Auto Flow
|
|
@@ -6580,14 +6580,14 @@ const Ap = (e, t) => {
|
|
|
6580
6580
|
* @see https://tailwindcss.com/docs/justify-items
|
|
6581
6581
|
*/
|
|
6582
6582
|
"justify-items": [{
|
|
6583
|
-
"justify-items": [...
|
|
6583
|
+
"justify-items": [...Y(), "normal"]
|
|
6584
6584
|
}],
|
|
6585
6585
|
/**
|
|
6586
6586
|
* Justify Self
|
|
6587
6587
|
* @see https://tailwindcss.com/docs/justify-self
|
|
6588
6588
|
*/
|
|
6589
6589
|
"justify-self": [{
|
|
6590
|
-
"justify-self": ["auto", ...
|
|
6590
|
+
"justify-self": ["auto", ...Y()]
|
|
6591
6591
|
}],
|
|
6592
6592
|
/**
|
|
6593
6593
|
* Align Content
|
|
@@ -6601,7 +6601,7 @@ const Ap = (e, t) => {
|
|
|
6601
6601
|
* @see https://tailwindcss.com/docs/align-items
|
|
6602
6602
|
*/
|
|
6603
6603
|
"align-items": [{
|
|
6604
|
-
items: [...
|
|
6604
|
+
items: [...Y(), {
|
|
6605
6605
|
baseline: ["", "last"]
|
|
6606
6606
|
}]
|
|
6607
6607
|
}],
|
|
@@ -6610,7 +6610,7 @@ const Ap = (e, t) => {
|
|
|
6610
6610
|
* @see https://tailwindcss.com/docs/align-self
|
|
6611
6611
|
*/
|
|
6612
6612
|
"align-self": [{
|
|
6613
|
-
self: ["auto", ...
|
|
6613
|
+
self: ["auto", ...Y(), {
|
|
6614
6614
|
baseline: ["", "last"]
|
|
6615
6615
|
}]
|
|
6616
6616
|
}],
|
|
@@ -6626,14 +6626,14 @@ const Ap = (e, t) => {
|
|
|
6626
6626
|
* @see https://tailwindcss.com/docs/place-items
|
|
6627
6627
|
*/
|
|
6628
6628
|
"place-items": [{
|
|
6629
|
-
"place-items": [...
|
|
6629
|
+
"place-items": [...Y(), "baseline"]
|
|
6630
6630
|
}],
|
|
6631
6631
|
/**
|
|
6632
6632
|
* Place Self
|
|
6633
6633
|
* @see https://tailwindcss.com/docs/place-self
|
|
6634
6634
|
*/
|
|
6635
6635
|
"place-self": [{
|
|
6636
|
-
"place-self": ["auto", ...
|
|
6636
|
+
"place-self": ["auto", ...Y()]
|
|
6637
6637
|
}],
|
|
6638
6638
|
// Spacing
|
|
6639
6639
|
/**
|
|
@@ -6718,77 +6718,77 @@ const Ap = (e, t) => {
|
|
|
6718
6718
|
* @see https://tailwindcss.com/docs/margin
|
|
6719
6719
|
*/
|
|
6720
6720
|
m: [{
|
|
6721
|
-
m:
|
|
6721
|
+
m: Z()
|
|
6722
6722
|
}],
|
|
6723
6723
|
/**
|
|
6724
6724
|
* Margin Inline
|
|
6725
6725
|
* @see https://tailwindcss.com/docs/margin
|
|
6726
6726
|
*/
|
|
6727
6727
|
mx: [{
|
|
6728
|
-
mx:
|
|
6728
|
+
mx: Z()
|
|
6729
6729
|
}],
|
|
6730
6730
|
/**
|
|
6731
6731
|
* Margin Block
|
|
6732
6732
|
* @see https://tailwindcss.com/docs/margin
|
|
6733
6733
|
*/
|
|
6734
6734
|
my: [{
|
|
6735
|
-
my:
|
|
6735
|
+
my: Z()
|
|
6736
6736
|
}],
|
|
6737
6737
|
/**
|
|
6738
6738
|
* Margin Inline Start
|
|
6739
6739
|
* @see https://tailwindcss.com/docs/margin
|
|
6740
6740
|
*/
|
|
6741
6741
|
ms: [{
|
|
6742
|
-
ms:
|
|
6742
|
+
ms: Z()
|
|
6743
6743
|
}],
|
|
6744
6744
|
/**
|
|
6745
6745
|
* Margin Inline End
|
|
6746
6746
|
* @see https://tailwindcss.com/docs/margin
|
|
6747
6747
|
*/
|
|
6748
6748
|
me: [{
|
|
6749
|
-
me:
|
|
6749
|
+
me: Z()
|
|
6750
6750
|
}],
|
|
6751
6751
|
/**
|
|
6752
6752
|
* Margin Block Start
|
|
6753
6753
|
* @see https://tailwindcss.com/docs/margin
|
|
6754
6754
|
*/
|
|
6755
6755
|
mbs: [{
|
|
6756
|
-
mbs:
|
|
6756
|
+
mbs: Z()
|
|
6757
6757
|
}],
|
|
6758
6758
|
/**
|
|
6759
6759
|
* Margin Block End
|
|
6760
6760
|
* @see https://tailwindcss.com/docs/margin
|
|
6761
6761
|
*/
|
|
6762
6762
|
mbe: [{
|
|
6763
|
-
mbe:
|
|
6763
|
+
mbe: Z()
|
|
6764
6764
|
}],
|
|
6765
6765
|
/**
|
|
6766
6766
|
* Margin Top
|
|
6767
6767
|
* @see https://tailwindcss.com/docs/margin
|
|
6768
6768
|
*/
|
|
6769
6769
|
mt: [{
|
|
6770
|
-
mt:
|
|
6770
|
+
mt: Z()
|
|
6771
6771
|
}],
|
|
6772
6772
|
/**
|
|
6773
6773
|
* Margin Right
|
|
6774
6774
|
* @see https://tailwindcss.com/docs/margin
|
|
6775
6775
|
*/
|
|
6776
6776
|
mr: [{
|
|
6777
|
-
mr:
|
|
6777
|
+
mr: Z()
|
|
6778
6778
|
}],
|
|
6779
6779
|
/**
|
|
6780
6780
|
* Margin Bottom
|
|
6781
6781
|
* @see https://tailwindcss.com/docs/margin
|
|
6782
6782
|
*/
|
|
6783
6783
|
mb: [{
|
|
6784
|
-
mb:
|
|
6784
|
+
mb: Z()
|
|
6785
6785
|
}],
|
|
6786
6786
|
/**
|
|
6787
6787
|
* Margin Left
|
|
6788
6788
|
* @see https://tailwindcss.com/docs/margin
|
|
6789
6789
|
*/
|
|
6790
6790
|
ml: [{
|
|
6791
|
-
ml:
|
|
6791
|
+
ml: Z()
|
|
6792
6792
|
}],
|
|
6793
6793
|
/**
|
|
6794
6794
|
* Space Between X
|
|
@@ -7015,7 +7015,7 @@ const Ap = (e, t) => {
|
|
|
7015
7015
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
7016
7016
|
*/
|
|
7017
7017
|
"line-clamp": [{
|
|
7018
|
-
"line-clamp": [
|
|
7018
|
+
"line-clamp": [le, "none", K, Qr]
|
|
7019
7019
|
}],
|
|
7020
7020
|
/**
|
|
7021
7021
|
* Line Height
|
|
@@ -7081,14 +7081,14 @@ const Ap = (e, t) => {
|
|
|
7081
7081
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
7082
7082
|
*/
|
|
7083
7083
|
"text-decoration-style": [{
|
|
7084
|
-
decoration: [...
|
|
7084
|
+
decoration: [...oe(), "wavy"]
|
|
7085
7085
|
}],
|
|
7086
7086
|
/**
|
|
7087
7087
|
* Text Decoration Thickness
|
|
7088
7088
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
7089
7089
|
*/
|
|
7090
7090
|
"text-decoration-thickness": [{
|
|
7091
|
-
decoration: [
|
|
7091
|
+
decoration: [le, "from-font", "auto", K, Tt]
|
|
7092
7092
|
}],
|
|
7093
7093
|
/**
|
|
7094
7094
|
* Text Decoration Color
|
|
@@ -7102,7 +7102,7 @@ const Ap = (e, t) => {
|
|
|
7102
7102
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
7103
7103
|
*/
|
|
7104
7104
|
"underline-offset": [{
|
|
7105
|
-
"underline-offset": [
|
|
7105
|
+
"underline-offset": [le, "auto", K, X]
|
|
7106
7106
|
}],
|
|
7107
7107
|
/**
|
|
7108
7108
|
* Text Transform
|
|
@@ -7240,21 +7240,21 @@ const Ap = (e, t) => {
|
|
|
7240
7240
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
7241
7241
|
*/
|
|
7242
7242
|
"gradient-from-pos": [{
|
|
7243
|
-
from:
|
|
7243
|
+
from: re()
|
|
7244
7244
|
}],
|
|
7245
7245
|
/**
|
|
7246
7246
|
* Gradient Color Stops Via Position
|
|
7247
7247
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
7248
7248
|
*/
|
|
7249
7249
|
"gradient-via-pos": [{
|
|
7250
|
-
via:
|
|
7250
|
+
via: re()
|
|
7251
7251
|
}],
|
|
7252
7252
|
/**
|
|
7253
7253
|
* Gradient Color Stops To Position
|
|
7254
7254
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
7255
7255
|
*/
|
|
7256
7256
|
"gradient-to-pos": [{
|
|
7257
|
-
to:
|
|
7257
|
+
to: re()
|
|
7258
7258
|
}],
|
|
7259
7259
|
/**
|
|
7260
7260
|
* Gradient Color Stops From
|
|
@@ -7285,189 +7285,189 @@ const Ap = (e, t) => {
|
|
|
7285
7285
|
* @see https://tailwindcss.com/docs/border-radius
|
|
7286
7286
|
*/
|
|
7287
7287
|
rounded: [{
|
|
7288
|
-
rounded:
|
|
7288
|
+
rounded: ne()
|
|
7289
7289
|
}],
|
|
7290
7290
|
/**
|
|
7291
7291
|
* Border Radius Start
|
|
7292
7292
|
* @see https://tailwindcss.com/docs/border-radius
|
|
7293
7293
|
*/
|
|
7294
7294
|
"rounded-s": [{
|
|
7295
|
-
"rounded-s":
|
|
7295
|
+
"rounded-s": ne()
|
|
7296
7296
|
}],
|
|
7297
7297
|
/**
|
|
7298
7298
|
* Border Radius End
|
|
7299
7299
|
* @see https://tailwindcss.com/docs/border-radius
|
|
7300
7300
|
*/
|
|
7301
7301
|
"rounded-e": [{
|
|
7302
|
-
"rounded-e":
|
|
7302
|
+
"rounded-e": ne()
|
|
7303
7303
|
}],
|
|
7304
7304
|
/**
|
|
7305
7305
|
* Border Radius Top
|
|
7306
7306
|
* @see https://tailwindcss.com/docs/border-radius
|
|
7307
7307
|
*/
|
|
7308
7308
|
"rounded-t": [{
|
|
7309
|
-
"rounded-t":
|
|
7309
|
+
"rounded-t": ne()
|
|
7310
7310
|
}],
|
|
7311
7311
|
/**
|
|
7312
7312
|
* Border Radius Right
|
|
7313
7313
|
* @see https://tailwindcss.com/docs/border-radius
|
|
7314
7314
|
*/
|
|
7315
7315
|
"rounded-r": [{
|
|
7316
|
-
"rounded-r":
|
|
7316
|
+
"rounded-r": ne()
|
|
7317
7317
|
}],
|
|
7318
7318
|
/**
|
|
7319
7319
|
* Border Radius Bottom
|
|
7320
7320
|
* @see https://tailwindcss.com/docs/border-radius
|
|
7321
7321
|
*/
|
|
7322
7322
|
"rounded-b": [{
|
|
7323
|
-
"rounded-b":
|
|
7323
|
+
"rounded-b": ne()
|
|
7324
7324
|
}],
|
|
7325
7325
|
/**
|
|
7326
7326
|
* Border Radius Left
|
|
7327
7327
|
* @see https://tailwindcss.com/docs/border-radius
|
|
7328
7328
|
*/
|
|
7329
7329
|
"rounded-l": [{
|
|
7330
|
-
"rounded-l":
|
|
7330
|
+
"rounded-l": ne()
|
|
7331
7331
|
}],
|
|
7332
7332
|
/**
|
|
7333
7333
|
* Border Radius Start Start
|
|
7334
7334
|
* @see https://tailwindcss.com/docs/border-radius
|
|
7335
7335
|
*/
|
|
7336
7336
|
"rounded-ss": [{
|
|
7337
|
-
"rounded-ss":
|
|
7337
|
+
"rounded-ss": ne()
|
|
7338
7338
|
}],
|
|
7339
7339
|
/**
|
|
7340
7340
|
* Border Radius Start End
|
|
7341
7341
|
* @see https://tailwindcss.com/docs/border-radius
|
|
7342
7342
|
*/
|
|
7343
7343
|
"rounded-se": [{
|
|
7344
|
-
"rounded-se":
|
|
7344
|
+
"rounded-se": ne()
|
|
7345
7345
|
}],
|
|
7346
7346
|
/**
|
|
7347
7347
|
* Border Radius End End
|
|
7348
7348
|
* @see https://tailwindcss.com/docs/border-radius
|
|
7349
7349
|
*/
|
|
7350
7350
|
"rounded-ee": [{
|
|
7351
|
-
"rounded-ee":
|
|
7351
|
+
"rounded-ee": ne()
|
|
7352
7352
|
}],
|
|
7353
7353
|
/**
|
|
7354
7354
|
* Border Radius End Start
|
|
7355
7355
|
* @see https://tailwindcss.com/docs/border-radius
|
|
7356
7356
|
*/
|
|
7357
7357
|
"rounded-es": [{
|
|
7358
|
-
"rounded-es":
|
|
7358
|
+
"rounded-es": ne()
|
|
7359
7359
|
}],
|
|
7360
7360
|
/**
|
|
7361
7361
|
* Border Radius Top Left
|
|
7362
7362
|
* @see https://tailwindcss.com/docs/border-radius
|
|
7363
7363
|
*/
|
|
7364
7364
|
"rounded-tl": [{
|
|
7365
|
-
"rounded-tl":
|
|
7365
|
+
"rounded-tl": ne()
|
|
7366
7366
|
}],
|
|
7367
7367
|
/**
|
|
7368
7368
|
* Border Radius Top Right
|
|
7369
7369
|
* @see https://tailwindcss.com/docs/border-radius
|
|
7370
7370
|
*/
|
|
7371
7371
|
"rounded-tr": [{
|
|
7372
|
-
"rounded-tr":
|
|
7372
|
+
"rounded-tr": ne()
|
|
7373
7373
|
}],
|
|
7374
7374
|
/**
|
|
7375
7375
|
* Border Radius Bottom Right
|
|
7376
7376
|
* @see https://tailwindcss.com/docs/border-radius
|
|
7377
7377
|
*/
|
|
7378
7378
|
"rounded-br": [{
|
|
7379
|
-
"rounded-br":
|
|
7379
|
+
"rounded-br": ne()
|
|
7380
7380
|
}],
|
|
7381
7381
|
/**
|
|
7382
7382
|
* Border Radius Bottom Left
|
|
7383
7383
|
* @see https://tailwindcss.com/docs/border-radius
|
|
7384
7384
|
*/
|
|
7385
7385
|
"rounded-bl": [{
|
|
7386
|
-
"rounded-bl":
|
|
7386
|
+
"rounded-bl": ne()
|
|
7387
7387
|
}],
|
|
7388
7388
|
/**
|
|
7389
7389
|
* Border Width
|
|
7390
7390
|
* @see https://tailwindcss.com/docs/border-width
|
|
7391
7391
|
*/
|
|
7392
7392
|
"border-w": [{
|
|
7393
|
-
border:
|
|
7393
|
+
border: ae()
|
|
7394
7394
|
}],
|
|
7395
7395
|
/**
|
|
7396
7396
|
* Border Width Inline
|
|
7397
7397
|
* @see https://tailwindcss.com/docs/border-width
|
|
7398
7398
|
*/
|
|
7399
7399
|
"border-w-x": [{
|
|
7400
|
-
"border-x":
|
|
7400
|
+
"border-x": ae()
|
|
7401
7401
|
}],
|
|
7402
7402
|
/**
|
|
7403
7403
|
* Border Width Block
|
|
7404
7404
|
* @see https://tailwindcss.com/docs/border-width
|
|
7405
7405
|
*/
|
|
7406
7406
|
"border-w-y": [{
|
|
7407
|
-
"border-y":
|
|
7407
|
+
"border-y": ae()
|
|
7408
7408
|
}],
|
|
7409
7409
|
/**
|
|
7410
7410
|
* Border Width Inline Start
|
|
7411
7411
|
* @see https://tailwindcss.com/docs/border-width
|
|
7412
7412
|
*/
|
|
7413
7413
|
"border-w-s": [{
|
|
7414
|
-
"border-s":
|
|
7414
|
+
"border-s": ae()
|
|
7415
7415
|
}],
|
|
7416
7416
|
/**
|
|
7417
7417
|
* Border Width Inline End
|
|
7418
7418
|
* @see https://tailwindcss.com/docs/border-width
|
|
7419
7419
|
*/
|
|
7420
7420
|
"border-w-e": [{
|
|
7421
|
-
"border-e":
|
|
7421
|
+
"border-e": ae()
|
|
7422
7422
|
}],
|
|
7423
7423
|
/**
|
|
7424
7424
|
* Border Width Block Start
|
|
7425
7425
|
* @see https://tailwindcss.com/docs/border-width
|
|
7426
7426
|
*/
|
|
7427
7427
|
"border-w-bs": [{
|
|
7428
|
-
"border-bs":
|
|
7428
|
+
"border-bs": ae()
|
|
7429
7429
|
}],
|
|
7430
7430
|
/**
|
|
7431
7431
|
* Border Width Block End
|
|
7432
7432
|
* @see https://tailwindcss.com/docs/border-width
|
|
7433
7433
|
*/
|
|
7434
7434
|
"border-w-be": [{
|
|
7435
|
-
"border-be":
|
|
7435
|
+
"border-be": ae()
|
|
7436
7436
|
}],
|
|
7437
7437
|
/**
|
|
7438
7438
|
* Border Width Top
|
|
7439
7439
|
* @see https://tailwindcss.com/docs/border-width
|
|
7440
7440
|
*/
|
|
7441
7441
|
"border-w-t": [{
|
|
7442
|
-
"border-t":
|
|
7442
|
+
"border-t": ae()
|
|
7443
7443
|
}],
|
|
7444
7444
|
/**
|
|
7445
7445
|
* Border Width Right
|
|
7446
7446
|
* @see https://tailwindcss.com/docs/border-width
|
|
7447
7447
|
*/
|
|
7448
7448
|
"border-w-r": [{
|
|
7449
|
-
"border-r":
|
|
7449
|
+
"border-r": ae()
|
|
7450
7450
|
}],
|
|
7451
7451
|
/**
|
|
7452
7452
|
* Border Width Bottom
|
|
7453
7453
|
* @see https://tailwindcss.com/docs/border-width
|
|
7454
7454
|
*/
|
|
7455
7455
|
"border-w-b": [{
|
|
7456
|
-
"border-b":
|
|
7456
|
+
"border-b": ae()
|
|
7457
7457
|
}],
|
|
7458
7458
|
/**
|
|
7459
7459
|
* Border Width Left
|
|
7460
7460
|
* @see https://tailwindcss.com/docs/border-width
|
|
7461
7461
|
*/
|
|
7462
7462
|
"border-w-l": [{
|
|
7463
|
-
"border-l":
|
|
7463
|
+
"border-l": ae()
|
|
7464
7464
|
}],
|
|
7465
7465
|
/**
|
|
7466
7466
|
* Divide Width X
|
|
7467
7467
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
7468
7468
|
*/
|
|
7469
7469
|
"divide-x": [{
|
|
7470
|
-
"divide-x":
|
|
7470
|
+
"divide-x": ae()
|
|
7471
7471
|
}],
|
|
7472
7472
|
/**
|
|
7473
7473
|
* Divide Width X Reverse
|
|
@@ -7479,7 +7479,7 @@ const Ap = (e, t) => {
|
|
|
7479
7479
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
7480
7480
|
*/
|
|
7481
7481
|
"divide-y": [{
|
|
7482
|
-
"divide-y":
|
|
7482
|
+
"divide-y": ae()
|
|
7483
7483
|
}],
|
|
7484
7484
|
/**
|
|
7485
7485
|
* Divide Width Y Reverse
|
|
@@ -7491,14 +7491,14 @@ const Ap = (e, t) => {
|
|
|
7491
7491
|
* @see https://tailwindcss.com/docs/border-style
|
|
7492
7492
|
*/
|
|
7493
7493
|
"border-style": [{
|
|
7494
|
-
border: [...
|
|
7494
|
+
border: [...oe(), "hidden", "none"]
|
|
7495
7495
|
}],
|
|
7496
7496
|
/**
|
|
7497
7497
|
* Divide Style
|
|
7498
7498
|
* @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
|
|
7499
7499
|
*/
|
|
7500
7500
|
"divide-style": [{
|
|
7501
|
-
divide: [...
|
|
7501
|
+
divide: [...oe(), "hidden", "none"]
|
|
7502
7502
|
}],
|
|
7503
7503
|
/**
|
|
7504
7504
|
* Border Color
|
|
@@ -7589,21 +7589,21 @@ const Ap = (e, t) => {
|
|
|
7589
7589
|
* @see https://tailwindcss.com/docs/outline-style
|
|
7590
7590
|
*/
|
|
7591
7591
|
"outline-style": [{
|
|
7592
|
-
outline: [...
|
|
7592
|
+
outline: [...oe(), "none", "hidden"]
|
|
7593
7593
|
}],
|
|
7594
7594
|
/**
|
|
7595
7595
|
* Outline Offset
|
|
7596
7596
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
7597
7597
|
*/
|
|
7598
7598
|
"outline-offset": [{
|
|
7599
|
-
"outline-offset": [
|
|
7599
|
+
"outline-offset": [le, K, X]
|
|
7600
7600
|
}],
|
|
7601
7601
|
/**
|
|
7602
7602
|
* Outline Width
|
|
7603
7603
|
* @see https://tailwindcss.com/docs/outline-width
|
|
7604
7604
|
*/
|
|
7605
7605
|
"outline-w": [{
|
|
7606
|
-
outline: ["",
|
|
7606
|
+
outline: ["", le, rn, Tt]
|
|
7607
7607
|
}],
|
|
7608
7608
|
/**
|
|
7609
7609
|
* Outline Color
|
|
@@ -7655,7 +7655,7 @@ const Ap = (e, t) => {
|
|
|
7655
7655
|
* @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
|
|
7656
7656
|
*/
|
|
7657
7657
|
"ring-w": [{
|
|
7658
|
-
ring:
|
|
7658
|
+
ring: ae()
|
|
7659
7659
|
}],
|
|
7660
7660
|
/**
|
|
7661
7661
|
* Ring Width Inset
|
|
@@ -7678,7 +7678,7 @@ const Ap = (e, t) => {
|
|
|
7678
7678
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
7679
7679
|
*/
|
|
7680
7680
|
"ring-offset-w": [{
|
|
7681
|
-
"ring-offset": [
|
|
7681
|
+
"ring-offset": [le, Tt]
|
|
7682
7682
|
}],
|
|
7683
7683
|
/**
|
|
7684
7684
|
* Ring Offset Color
|
|
@@ -7694,7 +7694,7 @@ const Ap = (e, t) => {
|
|
|
7694
7694
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
|
|
7695
7695
|
*/
|
|
7696
7696
|
"inset-ring-w": [{
|
|
7697
|
-
"inset-ring":
|
|
7697
|
+
"inset-ring": ae()
|
|
7698
7698
|
}],
|
|
7699
7699
|
/**
|
|
7700
7700
|
* Inset Ring Color
|
|
@@ -7722,7 +7722,7 @@ const Ap = (e, t) => {
|
|
|
7722
7722
|
* @see https://tailwindcss.com/docs/opacity
|
|
7723
7723
|
*/
|
|
7724
7724
|
opacity: [{
|
|
7725
|
-
opacity: [
|
|
7725
|
+
opacity: [le, K, X]
|
|
7726
7726
|
}],
|
|
7727
7727
|
/**
|
|
7728
7728
|
* Mix Blend Mode
|
|
@@ -7757,13 +7757,13 @@ const Ap = (e, t) => {
|
|
|
7757
7757
|
* @see https://tailwindcss.com/docs/mask-image
|
|
7758
7758
|
*/
|
|
7759
7759
|
"mask-image-linear-pos": [{
|
|
7760
|
-
"mask-linear": [
|
|
7760
|
+
"mask-linear": [le]
|
|
7761
7761
|
}],
|
|
7762
7762
|
"mask-image-linear-from-pos": [{
|
|
7763
|
-
"mask-linear-from":
|
|
7763
|
+
"mask-linear-from": ce()
|
|
7764
7764
|
}],
|
|
7765
7765
|
"mask-image-linear-to-pos": [{
|
|
7766
|
-
"mask-linear-to":
|
|
7766
|
+
"mask-linear-to": ce()
|
|
7767
7767
|
}],
|
|
7768
7768
|
"mask-image-linear-from-color": [{
|
|
7769
7769
|
"mask-linear-from": M()
|
|
@@ -7772,10 +7772,10 @@ const Ap = (e, t) => {
|
|
|
7772
7772
|
"mask-linear-to": M()
|
|
7773
7773
|
}],
|
|
7774
7774
|
"mask-image-t-from-pos": [{
|
|
7775
|
-
"mask-t-from":
|
|
7775
|
+
"mask-t-from": ce()
|
|
7776
7776
|
}],
|
|
7777
7777
|
"mask-image-t-to-pos": [{
|
|
7778
|
-
"mask-t-to":
|
|
7778
|
+
"mask-t-to": ce()
|
|
7779
7779
|
}],
|
|
7780
7780
|
"mask-image-t-from-color": [{
|
|
7781
7781
|
"mask-t-from": M()
|
|
@@ -7784,10 +7784,10 @@ const Ap = (e, t) => {
|
|
|
7784
7784
|
"mask-t-to": M()
|
|
7785
7785
|
}],
|
|
7786
7786
|
"mask-image-r-from-pos": [{
|
|
7787
|
-
"mask-r-from":
|
|
7787
|
+
"mask-r-from": ce()
|
|
7788
7788
|
}],
|
|
7789
7789
|
"mask-image-r-to-pos": [{
|
|
7790
|
-
"mask-r-to":
|
|
7790
|
+
"mask-r-to": ce()
|
|
7791
7791
|
}],
|
|
7792
7792
|
"mask-image-r-from-color": [{
|
|
7793
7793
|
"mask-r-from": M()
|
|
@@ -7796,10 +7796,10 @@ const Ap = (e, t) => {
|
|
|
7796
7796
|
"mask-r-to": M()
|
|
7797
7797
|
}],
|
|
7798
7798
|
"mask-image-b-from-pos": [{
|
|
7799
|
-
"mask-b-from":
|
|
7799
|
+
"mask-b-from": ce()
|
|
7800
7800
|
}],
|
|
7801
7801
|
"mask-image-b-to-pos": [{
|
|
7802
|
-
"mask-b-to":
|
|
7802
|
+
"mask-b-to": ce()
|
|
7803
7803
|
}],
|
|
7804
7804
|
"mask-image-b-from-color": [{
|
|
7805
7805
|
"mask-b-from": M()
|
|
@@ -7808,10 +7808,10 @@ const Ap = (e, t) => {
|
|
|
7808
7808
|
"mask-b-to": M()
|
|
7809
7809
|
}],
|
|
7810
7810
|
"mask-image-l-from-pos": [{
|
|
7811
|
-
"mask-l-from":
|
|
7811
|
+
"mask-l-from": ce()
|
|
7812
7812
|
}],
|
|
7813
7813
|
"mask-image-l-to-pos": [{
|
|
7814
|
-
"mask-l-to":
|
|
7814
|
+
"mask-l-to": ce()
|
|
7815
7815
|
}],
|
|
7816
7816
|
"mask-image-l-from-color": [{
|
|
7817
7817
|
"mask-l-from": M()
|
|
@@ -7820,10 +7820,10 @@ const Ap = (e, t) => {
|
|
|
7820
7820
|
"mask-l-to": M()
|
|
7821
7821
|
}],
|
|
7822
7822
|
"mask-image-x-from-pos": [{
|
|
7823
|
-
"mask-x-from":
|
|
7823
|
+
"mask-x-from": ce()
|
|
7824
7824
|
}],
|
|
7825
7825
|
"mask-image-x-to-pos": [{
|
|
7826
|
-
"mask-x-to":
|
|
7826
|
+
"mask-x-to": ce()
|
|
7827
7827
|
}],
|
|
7828
7828
|
"mask-image-x-from-color": [{
|
|
7829
7829
|
"mask-x-from": M()
|
|
@@ -7832,10 +7832,10 @@ const Ap = (e, t) => {
|
|
|
7832
7832
|
"mask-x-to": M()
|
|
7833
7833
|
}],
|
|
7834
7834
|
"mask-image-y-from-pos": [{
|
|
7835
|
-
"mask-y-from":
|
|
7835
|
+
"mask-y-from": ce()
|
|
7836
7836
|
}],
|
|
7837
7837
|
"mask-image-y-to-pos": [{
|
|
7838
|
-
"mask-y-to":
|
|
7838
|
+
"mask-y-to": ce()
|
|
7839
7839
|
}],
|
|
7840
7840
|
"mask-image-y-from-color": [{
|
|
7841
7841
|
"mask-y-from": M()
|
|
@@ -7847,10 +7847,10 @@ const Ap = (e, t) => {
|
|
|
7847
7847
|
"mask-radial": [K, X]
|
|
7848
7848
|
}],
|
|
7849
7849
|
"mask-image-radial-from-pos": [{
|
|
7850
|
-
"mask-radial-from":
|
|
7850
|
+
"mask-radial-from": ce()
|
|
7851
7851
|
}],
|
|
7852
7852
|
"mask-image-radial-to-pos": [{
|
|
7853
|
-
"mask-radial-to":
|
|
7853
|
+
"mask-radial-to": ce()
|
|
7854
7854
|
}],
|
|
7855
7855
|
"mask-image-radial-from-color": [{
|
|
7856
7856
|
"mask-radial-from": M()
|
|
@@ -7871,13 +7871,13 @@ const Ap = (e, t) => {
|
|
|
7871
7871
|
"mask-radial-at": P()
|
|
7872
7872
|
}],
|
|
7873
7873
|
"mask-image-conic-pos": [{
|
|
7874
|
-
"mask-conic": [
|
|
7874
|
+
"mask-conic": [le]
|
|
7875
7875
|
}],
|
|
7876
7876
|
"mask-image-conic-from-pos": [{
|
|
7877
|
-
"mask-conic-from":
|
|
7877
|
+
"mask-conic-from": ce()
|
|
7878
7878
|
}],
|
|
7879
7879
|
"mask-image-conic-to-pos": [{
|
|
7880
|
-
"mask-conic-to":
|
|
7880
|
+
"mask-conic-to": ce()
|
|
7881
7881
|
}],
|
|
7882
7882
|
"mask-image-conic-from-color": [{
|
|
7883
7883
|
"mask-conic-from": M()
|
|
@@ -7955,21 +7955,21 @@ const Ap = (e, t) => {
|
|
|
7955
7955
|
* @see https://tailwindcss.com/docs/blur
|
|
7956
7956
|
*/
|
|
7957
7957
|
blur: [{
|
|
7958
|
-
blur:
|
|
7958
|
+
blur: Se()
|
|
7959
7959
|
}],
|
|
7960
7960
|
/**
|
|
7961
7961
|
* Brightness
|
|
7962
7962
|
* @see https://tailwindcss.com/docs/brightness
|
|
7963
7963
|
*/
|
|
7964
7964
|
brightness: [{
|
|
7965
|
-
brightness: [
|
|
7965
|
+
brightness: [le, K, X]
|
|
7966
7966
|
}],
|
|
7967
7967
|
/**
|
|
7968
7968
|
* Contrast
|
|
7969
7969
|
* @see https://tailwindcss.com/docs/contrast
|
|
7970
7970
|
*/
|
|
7971
7971
|
contrast: [{
|
|
7972
|
-
contrast: [
|
|
7972
|
+
contrast: [le, K, X]
|
|
7973
7973
|
}],
|
|
7974
7974
|
/**
|
|
7975
7975
|
* Drop Shadow
|
|
@@ -7997,35 +7997,35 @@ const Ap = (e, t) => {
|
|
|
7997
7997
|
* @see https://tailwindcss.com/docs/grayscale
|
|
7998
7998
|
*/
|
|
7999
7999
|
grayscale: [{
|
|
8000
|
-
grayscale: ["",
|
|
8000
|
+
grayscale: ["", le, K, X]
|
|
8001
8001
|
}],
|
|
8002
8002
|
/**
|
|
8003
8003
|
* Hue Rotate
|
|
8004
8004
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
8005
8005
|
*/
|
|
8006
8006
|
"hue-rotate": [{
|
|
8007
|
-
"hue-rotate": [
|
|
8007
|
+
"hue-rotate": [le, K, X]
|
|
8008
8008
|
}],
|
|
8009
8009
|
/**
|
|
8010
8010
|
* Invert
|
|
8011
8011
|
* @see https://tailwindcss.com/docs/invert
|
|
8012
8012
|
*/
|
|
8013
8013
|
invert: [{
|
|
8014
|
-
invert: ["",
|
|
8014
|
+
invert: ["", le, K, X]
|
|
8015
8015
|
}],
|
|
8016
8016
|
/**
|
|
8017
8017
|
* Saturate
|
|
8018
8018
|
* @see https://tailwindcss.com/docs/saturate
|
|
8019
8019
|
*/
|
|
8020
8020
|
saturate: [{
|
|
8021
|
-
saturate: [
|
|
8021
|
+
saturate: [le, K, X]
|
|
8022
8022
|
}],
|
|
8023
8023
|
/**
|
|
8024
8024
|
* Sepia
|
|
8025
8025
|
* @see https://tailwindcss.com/docs/sepia
|
|
8026
8026
|
*/
|
|
8027
8027
|
sepia: [{
|
|
8028
|
-
sepia: ["",
|
|
8028
|
+
sepia: ["", le, K, X]
|
|
8029
8029
|
}],
|
|
8030
8030
|
/**
|
|
8031
8031
|
* Backdrop Filter
|
|
@@ -8045,63 +8045,63 @@ const Ap = (e, t) => {
|
|
|
8045
8045
|
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
8046
8046
|
*/
|
|
8047
8047
|
"backdrop-blur": [{
|
|
8048
|
-
"backdrop-blur":
|
|
8048
|
+
"backdrop-blur": Se()
|
|
8049
8049
|
}],
|
|
8050
8050
|
/**
|
|
8051
8051
|
* Backdrop Brightness
|
|
8052
8052
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
8053
8053
|
*/
|
|
8054
8054
|
"backdrop-brightness": [{
|
|
8055
|
-
"backdrop-brightness": [
|
|
8055
|
+
"backdrop-brightness": [le, K, X]
|
|
8056
8056
|
}],
|
|
8057
8057
|
/**
|
|
8058
8058
|
* Backdrop Contrast
|
|
8059
8059
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
8060
8060
|
*/
|
|
8061
8061
|
"backdrop-contrast": [{
|
|
8062
|
-
"backdrop-contrast": [
|
|
8062
|
+
"backdrop-contrast": [le, K, X]
|
|
8063
8063
|
}],
|
|
8064
8064
|
/**
|
|
8065
8065
|
* Backdrop Grayscale
|
|
8066
8066
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
8067
8067
|
*/
|
|
8068
8068
|
"backdrop-grayscale": [{
|
|
8069
|
-
"backdrop-grayscale": ["",
|
|
8069
|
+
"backdrop-grayscale": ["", le, K, X]
|
|
8070
8070
|
}],
|
|
8071
8071
|
/**
|
|
8072
8072
|
* Backdrop Hue Rotate
|
|
8073
8073
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
8074
8074
|
*/
|
|
8075
8075
|
"backdrop-hue-rotate": [{
|
|
8076
|
-
"backdrop-hue-rotate": [
|
|
8076
|
+
"backdrop-hue-rotate": [le, K, X]
|
|
8077
8077
|
}],
|
|
8078
8078
|
/**
|
|
8079
8079
|
* Backdrop Invert
|
|
8080
8080
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
8081
8081
|
*/
|
|
8082
8082
|
"backdrop-invert": [{
|
|
8083
|
-
"backdrop-invert": ["",
|
|
8083
|
+
"backdrop-invert": ["", le, K, X]
|
|
8084
8084
|
}],
|
|
8085
8085
|
/**
|
|
8086
8086
|
* Backdrop Opacity
|
|
8087
8087
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
8088
8088
|
*/
|
|
8089
8089
|
"backdrop-opacity": [{
|
|
8090
|
-
"backdrop-opacity": [
|
|
8090
|
+
"backdrop-opacity": [le, K, X]
|
|
8091
8091
|
}],
|
|
8092
8092
|
/**
|
|
8093
8093
|
* Backdrop Saturate
|
|
8094
8094
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
8095
8095
|
*/
|
|
8096
8096
|
"backdrop-saturate": [{
|
|
8097
|
-
"backdrop-saturate": [
|
|
8097
|
+
"backdrop-saturate": [le, K, X]
|
|
8098
8098
|
}],
|
|
8099
8099
|
/**
|
|
8100
8100
|
* Backdrop Sepia
|
|
8101
8101
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
8102
8102
|
*/
|
|
8103
8103
|
"backdrop-sepia": [{
|
|
8104
|
-
"backdrop-sepia": ["",
|
|
8104
|
+
"backdrop-sepia": ["", le, K, X]
|
|
8105
8105
|
}],
|
|
8106
8106
|
// --------------
|
|
8107
8107
|
// --- Tables ---
|
|
@@ -8170,7 +8170,7 @@ const Ap = (e, t) => {
|
|
|
8170
8170
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
8171
8171
|
*/
|
|
8172
8172
|
duration: [{
|
|
8173
|
-
duration: [
|
|
8173
|
+
duration: [le, "initial", K, X]
|
|
8174
8174
|
}],
|
|
8175
8175
|
/**
|
|
8176
8176
|
* Transition Timing Function
|
|
@@ -8184,7 +8184,7 @@ const Ap = (e, t) => {
|
|
|
8184
8184
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
8185
8185
|
*/
|
|
8186
8186
|
delay: [{
|
|
8187
|
-
delay: [
|
|
8187
|
+
delay: [le, K, X]
|
|
8188
8188
|
}],
|
|
8189
8189
|
/**
|
|
8190
8190
|
* Animation
|
|
@@ -8222,56 +8222,56 @@ const Ap = (e, t) => {
|
|
|
8222
8222
|
* @see https://tailwindcss.com/docs/rotate
|
|
8223
8223
|
*/
|
|
8224
8224
|
rotate: [{
|
|
8225
|
-
rotate:
|
|
8225
|
+
rotate: W()
|
|
8226
8226
|
}],
|
|
8227
8227
|
/**
|
|
8228
8228
|
* Rotate X
|
|
8229
8229
|
* @see https://tailwindcss.com/docs/rotate
|
|
8230
8230
|
*/
|
|
8231
8231
|
"rotate-x": [{
|
|
8232
|
-
"rotate-x":
|
|
8232
|
+
"rotate-x": W()
|
|
8233
8233
|
}],
|
|
8234
8234
|
/**
|
|
8235
8235
|
* Rotate Y
|
|
8236
8236
|
* @see https://tailwindcss.com/docs/rotate
|
|
8237
8237
|
*/
|
|
8238
8238
|
"rotate-y": [{
|
|
8239
|
-
"rotate-y":
|
|
8239
|
+
"rotate-y": W()
|
|
8240
8240
|
}],
|
|
8241
8241
|
/**
|
|
8242
8242
|
* Rotate Z
|
|
8243
8243
|
* @see https://tailwindcss.com/docs/rotate
|
|
8244
8244
|
*/
|
|
8245
8245
|
"rotate-z": [{
|
|
8246
|
-
"rotate-z":
|
|
8246
|
+
"rotate-z": W()
|
|
8247
8247
|
}],
|
|
8248
8248
|
/**
|
|
8249
8249
|
* Scale
|
|
8250
8250
|
* @see https://tailwindcss.com/docs/scale
|
|
8251
8251
|
*/
|
|
8252
8252
|
scale: [{
|
|
8253
|
-
scale:
|
|
8253
|
+
scale: he()
|
|
8254
8254
|
}],
|
|
8255
8255
|
/**
|
|
8256
8256
|
* Scale X
|
|
8257
8257
|
* @see https://tailwindcss.com/docs/scale
|
|
8258
8258
|
*/
|
|
8259
8259
|
"scale-x": [{
|
|
8260
|
-
"scale-x":
|
|
8260
|
+
"scale-x": he()
|
|
8261
8261
|
}],
|
|
8262
8262
|
/**
|
|
8263
8263
|
* Scale Y
|
|
8264
8264
|
* @see https://tailwindcss.com/docs/scale
|
|
8265
8265
|
*/
|
|
8266
8266
|
"scale-y": [{
|
|
8267
|
-
"scale-y":
|
|
8267
|
+
"scale-y": he()
|
|
8268
8268
|
}],
|
|
8269
8269
|
/**
|
|
8270
8270
|
* Scale Z
|
|
8271
8271
|
* @see https://tailwindcss.com/docs/scale
|
|
8272
8272
|
*/
|
|
8273
8273
|
"scale-z": [{
|
|
8274
|
-
"scale-z":
|
|
8274
|
+
"scale-z": he()
|
|
8275
8275
|
}],
|
|
8276
8276
|
/**
|
|
8277
8277
|
* Scale 3D
|
|
@@ -8283,21 +8283,21 @@ const Ap = (e, t) => {
|
|
|
8283
8283
|
* @see https://tailwindcss.com/docs/skew
|
|
8284
8284
|
*/
|
|
8285
8285
|
skew: [{
|
|
8286
|
-
skew:
|
|
8286
|
+
skew: Te()
|
|
8287
8287
|
}],
|
|
8288
8288
|
/**
|
|
8289
8289
|
* Skew X
|
|
8290
8290
|
* @see https://tailwindcss.com/docs/skew
|
|
8291
8291
|
*/
|
|
8292
8292
|
"skew-x": [{
|
|
8293
|
-
"skew-x":
|
|
8293
|
+
"skew-x": Te()
|
|
8294
8294
|
}],
|
|
8295
8295
|
/**
|
|
8296
8296
|
* Skew Y
|
|
8297
8297
|
* @see https://tailwindcss.com/docs/skew
|
|
8298
8298
|
*/
|
|
8299
8299
|
"skew-y": [{
|
|
8300
|
-
"skew-y":
|
|
8300
|
+
"skew-y": Te()
|
|
8301
8301
|
}],
|
|
8302
8302
|
/**
|
|
8303
8303
|
* Transform
|
|
@@ -8325,28 +8325,28 @@ const Ap = (e, t) => {
|
|
|
8325
8325
|
* @see https://tailwindcss.com/docs/translate
|
|
8326
8326
|
*/
|
|
8327
8327
|
translate: [{
|
|
8328
|
-
translate:
|
|
8328
|
+
translate: Ne()
|
|
8329
8329
|
}],
|
|
8330
8330
|
/**
|
|
8331
8331
|
* Translate X
|
|
8332
8332
|
* @see https://tailwindcss.com/docs/translate
|
|
8333
8333
|
*/
|
|
8334
8334
|
"translate-x": [{
|
|
8335
|
-
"translate-x":
|
|
8335
|
+
"translate-x": Ne()
|
|
8336
8336
|
}],
|
|
8337
8337
|
/**
|
|
8338
8338
|
* Translate Y
|
|
8339
8339
|
* @see https://tailwindcss.com/docs/translate
|
|
8340
8340
|
*/
|
|
8341
8341
|
"translate-y": [{
|
|
8342
|
-
"translate-y":
|
|
8342
|
+
"translate-y": Ne()
|
|
8343
8343
|
}],
|
|
8344
8344
|
/**
|
|
8345
8345
|
* Translate Z
|
|
8346
8346
|
* @see https://tailwindcss.com/docs/translate
|
|
8347
8347
|
*/
|
|
8348
8348
|
"translate-z": [{
|
|
8349
|
-
"translate-z":
|
|
8349
|
+
"translate-z": Ne()
|
|
8350
8350
|
}],
|
|
8351
8351
|
/**
|
|
8352
8352
|
* Translate None
|
|
@@ -8656,7 +8656,7 @@ const Ap = (e, t) => {
|
|
|
8656
8656
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
8657
8657
|
*/
|
|
8658
8658
|
"stroke-w": [{
|
|
8659
|
-
stroke: [
|
|
8659
|
+
stroke: [le, rn, Tt, Qr]
|
|
8660
8660
|
}],
|
|
8661
8661
|
/**
|
|
8662
8662
|
* Stroke
|
|
@@ -8785,7 +8785,7 @@ const vn = {
|
|
|
8785
8785
|
reconnect: () => {
|
|
8786
8786
|
}
|
|
8787
8787
|
}), Ly = ({ children: e }) => {
|
|
8788
|
-
const t =
|
|
8788
|
+
const t = ve(null), n = nt(), { setLastEvent: s } = Jt(), i = ve(null), [r, o] = O(!1), l = we().wsRoom, c = we().wsUrl, u = dn(() => {
|
|
8789
8789
|
t.current = new WebSocket(c), t.current.onopen = () => {
|
|
8790
8790
|
console.log("✅ WS conectado"), t.current?.send(JSON.stringify({ type: "join", room: l })), o(!0), i.current = window.setInterval(() => {
|
|
8791
8791
|
t.current?.readyState === WebSocket.OPEN && (t.current?.send(JSON.stringify({ type: "ping" })), console.log("📤 PING enviado"));
|
|
@@ -8816,7 +8816,7 @@ const vn = {
|
|
|
8816
8816
|
function kg() {
|
|
8817
8817
|
const e = Tc();
|
|
8818
8818
|
if (!e) return null;
|
|
8819
|
-
const { isMinimized: t, toggleMinimized: n, setMinimized: s } = e, { sendMessage: i } = Cn(), { lastEvent: r } = Jt(), o =
|
|
8819
|
+
const { isMinimized: t, toggleMinimized: n, setMinimized: s } = e, { sendMessage: i } = Cn(), { lastEvent: r } = Jt(), o = we().wsRoom;
|
|
8820
8820
|
return ie(() => {
|
|
8821
8821
|
r?.payload?.type === "browser" && r?.payload?.status === "visible" && s(!1);
|
|
8822
8822
|
}, [r]), /* @__PURE__ */ a.jsx(
|
|
@@ -9098,7 +9098,7 @@ const Eg = ({ label: e, onClick: t }) => /* @__PURE__ */ a.jsxs(
|
|
|
9098
9098
|
}
|
|
9099
9099
|
);
|
|
9100
9100
|
function Yt({ src: e, transparent: t = !1, onClose: n }) {
|
|
9101
|
-
const { t: s } = Xt(), { sendMessage: i } = Cn(), { lastEvent: r } = Jt(), o =
|
|
9101
|
+
const { t: s } = Xt(), { sendMessage: i } = Cn(), { lastEvent: r } = Jt(), o = we().wsRoom;
|
|
9102
9102
|
return ie(() => {
|
|
9103
9103
|
const l = setTimeout(() => {
|
|
9104
9104
|
i({
|
|
@@ -9185,7 +9185,7 @@ function zc({ onClose: e, cards: t }) {
|
|
|
9185
9185
|
e(), s(!1);
|
|
9186
9186
|
}, 600);
|
|
9187
9187
|
}, y = (E) => {
|
|
9188
|
-
E.webUrl?.trim() && (r(!0), l(E.webUrl.replace("https://www.navantia.es",
|
|
9188
|
+
E.webUrl?.trim() && (r(!0), l(E.webUrl.replace("https://www.navantia.es", we().remoteUrl) + "?lightbox"));
|
|
9189
9189
|
}, N = () => {
|
|
9190
9190
|
r(!1);
|
|
9191
9191
|
}, k = () => {
|
|
@@ -9294,7 +9294,7 @@ function zc({ onClose: e, cards: t }) {
|
|
|
9294
9294
|
)
|
|
9295
9295
|
}
|
|
9296
9296
|
),
|
|
9297
|
-
/* @__PURE__ */ a.jsx(
|
|
9297
|
+
/* @__PURE__ */ a.jsx(Ce, { mode: "popLayout", children: j().map((E, S) => /* @__PURE__ */ a.jsx(
|
|
9298
9298
|
w.div,
|
|
9299
9299
|
{
|
|
9300
9300
|
className: "grid justify-center grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 sm:gap-6",
|
|
@@ -9407,7 +9407,7 @@ function zc({ onClose: e, cards: t }) {
|
|
|
9407
9407
|
] })
|
|
9408
9408
|
}
|
|
9409
9409
|
),
|
|
9410
|
-
/* @__PURE__ */ a.jsx(
|
|
9410
|
+
/* @__PURE__ */ a.jsx(Ce, { children: i && /* @__PURE__ */ a.jsx(Yt, { onClose: N, src: o }) })
|
|
9411
9411
|
]
|
|
9412
9412
|
}
|
|
9413
9413
|
)
|
|
@@ -9512,13 +9512,13 @@ function Ig({ onClose: e }) {
|
|
|
9512
9512
|
] });
|
|
9513
9513
|
}
|
|
9514
9514
|
const Wc = "carousel", Yc = "controller", jg = "navigation", Mg = "no-scroll", ao = "portal", Rg = "root", Uc = "toolbar", na = "zoom", Fs = "loading", $s = "error", Bs = "complete", Ag = "placeholder", Lg = (e) => `active-slide-${e}`, Vg = "fullsize", lo = "flex_center", Og = "no_scroll", Hc = "no_scroll_padding", co = "slide", Xc = "slide_wrapper", Dg = "slide_wrapper_interactive", kt = "prev", Et = "next", sa = "swipe", Ut = "close", Gc = "onPointerDown", Kc = "onPointerMove", Zc = "onPointerUp", qc = "onPointerLeave", Jc = "onPointerCancel", uo = "onKeyDown", _g = "onKeyUp", ho = "onWheel", Fg = "Escape", $g = "ArrowLeft", Bg = "ArrowRight", zg = "button", yi = "icon", Qc = "contain", ia = "cover", eu = "Unknown action type", tu = "yarl__";
|
|
9515
|
-
function
|
|
9515
|
+
function Qe(...e) {
|
|
9516
9516
|
return e.filter(Boolean).join(" ");
|
|
9517
9517
|
}
|
|
9518
9518
|
function de(e) {
|
|
9519
9519
|
return `${tu}${e}`;
|
|
9520
9520
|
}
|
|
9521
|
-
function
|
|
9521
|
+
function _e(e) {
|
|
9522
9522
|
return `--${tu}${e}`;
|
|
9523
9523
|
}
|
|
9524
9524
|
function Pn(e, t) {
|
|
@@ -9541,7 +9541,7 @@ function mo(...e) {
|
|
|
9541
9541
|
});
|
|
9542
9542
|
};
|
|
9543
9543
|
}
|
|
9544
|
-
function
|
|
9544
|
+
function ot(e, t, n) {
|
|
9545
9545
|
return () => {
|
|
9546
9546
|
const s = g.useContext(n);
|
|
9547
9547
|
if (!s)
|
|
@@ -9669,12 +9669,12 @@ const vi = {
|
|
|
9669
9669
|
function bt(e, t) {
|
|
9670
9670
|
return { name: e, component: t };
|
|
9671
9671
|
}
|
|
9672
|
-
function
|
|
9672
|
+
function Me(e, t) {
|
|
9673
9673
|
return { module: e, children: t };
|
|
9674
9674
|
}
|
|
9675
9675
|
function iu(e, t, n) {
|
|
9676
9676
|
return e.module.name === t ? n(e) : e.children ? [
|
|
9677
|
-
|
|
9677
|
+
Me(e.module, e.children.flatMap((s) => {
|
|
9678
9678
|
var i;
|
|
9679
9679
|
return (i = iu(s, t, n)) !== null && i !== void 0 ? i : [];
|
|
9680
9680
|
}))
|
|
@@ -9699,33 +9699,33 @@ function Jg(e, t = [], n = []) {
|
|
|
9699
9699
|
return !1;
|
|
9700
9700
|
}, r = (m, p) => {
|
|
9701
9701
|
if (m === "") {
|
|
9702
|
-
s = [
|
|
9702
|
+
s = [Me(p, s)];
|
|
9703
9703
|
return;
|
|
9704
9704
|
}
|
|
9705
|
-
s = At(s, m, (b) => [
|
|
9705
|
+
s = At(s, m, (b) => [Me(p, [b])]);
|
|
9706
9706
|
}, o = (m, p) => {
|
|
9707
|
-
s = At(s, m, (b) => [
|
|
9707
|
+
s = At(s, m, (b) => [Me(b.module, [Me(p, b.children)])]);
|
|
9708
9708
|
}, l = (m, p, b) => {
|
|
9709
9709
|
s = At(s, m, (x) => {
|
|
9710
9710
|
var y;
|
|
9711
9711
|
return [
|
|
9712
|
-
|
|
9713
|
-
...b ? [
|
|
9712
|
+
Me(x.module, [
|
|
9713
|
+
...b ? [Me(p)] : [],
|
|
9714
9714
|
...(y = x.children) !== null && y !== void 0 ? y : [],
|
|
9715
|
-
...b ? [] : [
|
|
9715
|
+
...b ? [] : [Me(p)]
|
|
9716
9716
|
])
|
|
9717
9717
|
];
|
|
9718
9718
|
});
|
|
9719
9719
|
}, c = (m, p, b) => {
|
|
9720
9720
|
s = At(s, m, (x) => [
|
|
9721
|
-
...b ? [
|
|
9721
|
+
...b ? [Me(p)] : [],
|
|
9722
9722
|
x,
|
|
9723
|
-
...b ? [] : [
|
|
9723
|
+
...b ? [] : [Me(p)]
|
|
9724
9724
|
]);
|
|
9725
9725
|
}, u = (m) => {
|
|
9726
9726
|
o(Yc, m);
|
|
9727
9727
|
}, d = (m, p) => {
|
|
9728
|
-
s = At(s, m, (b) => [
|
|
9728
|
+
s = At(s, m, (b) => [Me(p, b.children)]);
|
|
9729
9729
|
}, h = (m) => {
|
|
9730
9730
|
s = At(s, m, (p) => p.children);
|
|
9731
9731
|
}, f = (m) => {
|
|
@@ -9748,7 +9748,7 @@ function Jg(e, t = [], n = []) {
|
|
|
9748
9748
|
augmentation: (m) => n.reduce((p, b) => b(p), m)
|
|
9749
9749
|
};
|
|
9750
9750
|
}
|
|
9751
|
-
const ou = g.createContext(null), ru =
|
|
9751
|
+
const ou = g.createContext(null), ru = ot("useA11yContext", "A11yContext", ou);
|
|
9752
9752
|
function Qg({ children: e }) {
|
|
9753
9753
|
const [t, n] = g.useState(!1), [s, i] = g.useState(!1), r = g.useMemo(() => ({ focusWithin: t, trackFocusWithin: (l, c) => {
|
|
9754
9754
|
const u = (d) => (h) => {
|
|
@@ -9762,7 +9762,7 @@ function Qg({ children: e }) {
|
|
|
9762
9762
|
}, autoPlaying: s, setAutoPlaying: i }), [t, s]);
|
|
9763
9763
|
return g.createElement(ou.Provider, { value: r }, e);
|
|
9764
9764
|
}
|
|
9765
|
-
const au = g.createContext(null), hs =
|
|
9765
|
+
const au = g.createContext(null), hs = ot("useDocument", "DocumentContext", au);
|
|
9766
9766
|
function eb({ nodeRef: e, children: t }) {
|
|
9767
9767
|
const n = g.useMemo(() => {
|
|
9768
9768
|
const s = (r) => {
|
|
@@ -9776,7 +9776,7 @@ function eb({ nodeRef: e, children: t }) {
|
|
|
9776
9776
|
}, [e]);
|
|
9777
9777
|
return g.createElement(au.Provider, { value: n }, t);
|
|
9778
9778
|
}
|
|
9779
|
-
const lu = g.createContext(null), fs =
|
|
9779
|
+
const lu = g.createContext(null), fs = ot("useEvents", "EventsContext", lu);
|
|
9780
9780
|
function tb({ children: e }) {
|
|
9781
9781
|
const [t] = g.useState({});
|
|
9782
9782
|
g.useEffect(() => () => {
|
|
@@ -9794,11 +9794,11 @@ function tb({ children: e }) {
|
|
|
9794
9794
|
}, [t]);
|
|
9795
9795
|
return g.createElement(lu.Provider, { value: n }, e);
|
|
9796
9796
|
}
|
|
9797
|
-
const cu = g.createContext(null), We =
|
|
9797
|
+
const cu = g.createContext(null), We = ot("useLightboxProps", "LightboxPropsContext", cu);
|
|
9798
9798
|
function nb({ children: e, ...t }) {
|
|
9799
9799
|
return g.createElement(cu.Provider, { value: t }, e);
|
|
9800
9800
|
}
|
|
9801
|
-
const uu = g.createContext(null), yt =
|
|
9801
|
+
const uu = g.createContext(null), yt = ot("useLightboxState", "LightboxStateContext", uu), du = g.createContext(null), sb = ot("useLightboxDispatch", "LightboxDispatchContext", du);
|
|
9802
9802
|
function ib(e, t) {
|
|
9803
9803
|
switch (t.type) {
|
|
9804
9804
|
case "swipe": {
|
|
@@ -9837,7 +9837,7 @@ function ob({ slides: e, index: t, children: n }) {
|
|
|
9837
9837
|
g.createElement(uu.Provider, { value: r }, n)
|
|
9838
9838
|
);
|
|
9839
9839
|
}
|
|
9840
|
-
const hu = g.createContext(null), ms =
|
|
9840
|
+
const hu = g.createContext(null), ms = ot("useTimeouts", "TimeoutsContext", hu);
|
|
9841
9841
|
function rb({ children: e }) {
|
|
9842
9842
|
const [t] = g.useState([]);
|
|
9843
9843
|
g.useEffect(() => () => {
|
|
@@ -9860,7 +9860,7 @@ function rb({ children: e }) {
|
|
|
9860
9860
|
}
|
|
9861
9861
|
const xo = g.forwardRef(function({ label: t, className: n, icon: s, renderIcon: i, onClick: r, style: o, ...l }, c) {
|
|
9862
9862
|
const { styles: u, labels: d } = We(), h = Ht(d, t);
|
|
9863
|
-
return g.createElement("button", { ref: c, type: "button", title: h, "aria-label": h, className:
|
|
9863
|
+
return g.createElement("button", { ref: c, type: "button", title: h, "aria-label": h, className: Qe(de(zg), n), onClick: r, style: { ...o, ...u.button }, ...l }, i ? i() : g.createElement(s, { className: de(yi), style: u.icon }));
|
|
9864
9864
|
});
|
|
9865
9865
|
function ab(e, t) {
|
|
9866
9866
|
const n = (s) => g.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24", height: "24", "aria-hidden": "true", focusable: "false", ...s }, t);
|
|
@@ -9874,7 +9874,7 @@ function Rt(e, t) {
|
|
|
9874
9874
|
t
|
|
9875
9875
|
));
|
|
9876
9876
|
}
|
|
9877
|
-
const lb = Rt("Close", g.createElement("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" })), cb = Rt("Previous", g.createElement("path", { d: "M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z" })), ub = Rt("Next", g.createElement("path", { d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z" })), db = Rt("Loading", g.createElement(g.Fragment, null, Array.from({ length: 8 }).map((e, t, n) => g.createElement("line", { key: t, x1: "12", y1: "6.5", x2: "12", y2: "1.8", strokeLinecap: "round", strokeWidth: "2.6", stroke: "currentColor", strokeOpacity: 1 / n.length * (t + 1), transform: `rotate(${360 / n.length * t}, 12, 12)` })))), hb = Rt("Error", g.createElement("path", { d: "M21.9,21.9l-8.49-8.49l0,0L3.59,3.59l0,0L2.1,2.1L0.69,3.51L3,5.83V19c0,1.1,0.9,2,2,2h13.17l2.31,2.31L21.9,21.9z M5,18 l3.5-4.5l2.5,3.01L12.17,15l3,3H5z M21,18.17L5.83,3H19c1.1,0,2,0.9,2,2V18.17z" })),
|
|
9877
|
+
const lb = Rt("Close", g.createElement("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" })), cb = Rt("Previous", g.createElement("path", { d: "M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z" })), ub = Rt("Next", g.createElement("path", { d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z" })), db = Rt("Loading", g.createElement(g.Fragment, null, Array.from({ length: 8 }).map((e, t, n) => g.createElement("line", { key: t, x1: "12", y1: "6.5", x2: "12", y2: "1.8", strokeLinecap: "round", strokeWidth: "2.6", stroke: "currentColor", strokeOpacity: 1 / n.length * (t + 1), transform: `rotate(${360 / n.length * t}, 12, 12)` })))), hb = Rt("Error", g.createElement("path", { d: "M21.9,21.9l-8.49-8.49l0,0L3.59,3.59l0,0L2.1,2.1L0.69,3.51L3,5.83V19c0,1.1,0.9,2,2,2h13.17l2.31,2.31L21.9,21.9z M5,18 l3.5-4.5l2.5,3.01L12.17,15l3,3H5z M21,18.17L5.83,3H19c1.1,0,2,0.9,2,2V18.17z" })), tt = po() ? g.useLayoutEffect : g.useEffect;
|
|
9878
9878
|
function vo() {
|
|
9879
9879
|
const [e, t] = g.useState(!1);
|
|
9880
9880
|
return g.useEffect(() => {
|
|
@@ -9899,7 +9899,7 @@ function fb(e) {
|
|
|
9899
9899
|
}
|
|
9900
9900
|
function oa(e, t) {
|
|
9901
9901
|
const n = g.useRef(void 0), s = g.useRef(void 0), i = vo();
|
|
9902
|
-
return
|
|
9902
|
+
return tt(() => {
|
|
9903
9903
|
var r, o, l;
|
|
9904
9904
|
if (e.current && n.current !== void 0 && !i) {
|
|
9905
9905
|
const { keyframes: c, duration: u, easing: d, onfinish: h } = t(n.current, e.current.getBoundingClientRect(), fb(e.current)) || {};
|
|
@@ -9949,9 +9949,9 @@ function Xn() {
|
|
|
9949
9949
|
n(e.current), e.current = t(s, i > 0 ? i : 0);
|
|
9950
9950
|
}, [t, n]);
|
|
9951
9951
|
}
|
|
9952
|
-
function
|
|
9952
|
+
function fe(e) {
|
|
9953
9953
|
const t = g.useRef(e);
|
|
9954
|
-
return
|
|
9954
|
+
return tt(() => {
|
|
9955
9955
|
t.current = e;
|
|
9956
9956
|
}), g.useCallback((...n) => {
|
|
9957
9957
|
var s;
|
|
@@ -9968,7 +9968,7 @@ function wi(e, t) {
|
|
|
9968
9968
|
}
|
|
9969
9969
|
function mb(e, t = !1) {
|
|
9970
9970
|
const n = g.useRef(!1);
|
|
9971
|
-
|
|
9971
|
+
tt(() => {
|
|
9972
9972
|
t && n.current && (n.current = !1, e());
|
|
9973
9973
|
}, [t, e]);
|
|
9974
9974
|
const s = g.useCallback(() => {
|
|
@@ -9980,7 +9980,7 @@ function mb(e, t = !1) {
|
|
|
9980
9980
|
}
|
|
9981
9981
|
function wo() {
|
|
9982
9982
|
const [e, t] = g.useState(!1);
|
|
9983
|
-
return
|
|
9983
|
+
return tt(() => {
|
|
9984
9984
|
t(window.getComputedStyle(window.document.documentElement).direction === "rtl");
|
|
9985
9985
|
}, []), e;
|
|
9986
9986
|
}
|
|
@@ -10006,7 +10006,7 @@ function pb() {
|
|
|
10006
10006
|
return { registerSensors: n, subscribeSensors: s };
|
|
10007
10007
|
}
|
|
10008
10008
|
function aa(e, t) {
|
|
10009
|
-
const n = g.useRef(0), s = Xn(), i =
|
|
10009
|
+
const n = g.useRef(0), s = Xn(), i = fe((...r) => {
|
|
10010
10010
|
n.current = Date.now(), e(r);
|
|
10011
10011
|
});
|
|
10012
10012
|
return g.useCallback((...r) => {
|
|
@@ -10022,7 +10022,7 @@ function ss({ slide: e, offset: t, render: n, rect: s, imageFit: i, imageProps:
|
|
|
10022
10022
|
g.useEffect(() => {
|
|
10023
10023
|
t === 0 && P(Lg(N));
|
|
10024
10024
|
}, [t, N, P]);
|
|
10025
|
-
const S =
|
|
10025
|
+
const S = fe((A) => {
|
|
10026
10026
|
("decode" in A ? A.decode() : Promise.resolve()).catch(() => {
|
|
10027
10027
|
}).then(() => {
|
|
10028
10028
|
A.parentNode && (k(Bs), j(() => {
|
|
@@ -10033,24 +10033,24 @@ function ss({ slide: e, offset: t, render: n, rect: s, imageFit: i, imageProps:
|
|
|
10033
10033
|
E.current = A, A?.complete && S(A);
|
|
10034
10034
|
}, [S]), I = g.useCallback((A) => {
|
|
10035
10035
|
S(A.currentTarget);
|
|
10036
|
-
}, [S]), F =
|
|
10036
|
+
}, [S]), F = fe(() => {
|
|
10037
10037
|
k($s), c?.();
|
|
10038
|
-
}), B = bo(e, i),
|
|
10038
|
+
}), B = bo(e, i), q = (A, ee) => Number.isFinite(A) ? A : ee, D = q(Math.max(...((h = (d = e.srcSet) === null || d === void 0 ? void 0 : d.map((A) => A.width)) !== null && h !== void 0 ? h : []).concat(e.width ? [e.width] : []).filter(Boolean)), ((f = E.current) === null || f === void 0 ? void 0 : f.naturalWidth) || 0), te = q(Math.max(...((p = (m = e.srcSet) === null || m === void 0 ? void 0 : m.map((A) => A.height)) !== null && p !== void 0 ? p : []).concat(e.height ? [e.height] : []).filter(Boolean)), ((b = E.current) === null || b === void 0 ? void 0 : b.naturalHeight) || 0), Y = D && te ? {
|
|
10039
10039
|
maxWidth: `min(${D}px, 100%)`,
|
|
10040
10040
|
maxHeight: `min(${te}px, 100%)`
|
|
10041
10041
|
} : {
|
|
10042
10042
|
maxWidth: "100%",
|
|
10043
10043
|
maxHeight: "100%"
|
|
10044
|
-
},
|
|
10044
|
+
}, Z = (x = e.srcSet) === null || x === void 0 ? void 0 : x.slice().sort((A, ee) => A.width - ee.width).map((A) => `${A.src} ${A.width}w`).join(", "), R = () => s && !B && e.width && e.height ? s.height / e.height * e.width : Number.MAX_VALUE, C = Z && s && po() ? `${Math.round(Math.min(R(), s.width))}px` : void 0, { style: _, className: M, ...T } = (typeof r == "function" ? r(e) : r) || {};
|
|
10045
10045
|
return g.createElement(
|
|
10046
10046
|
g.Fragment,
|
|
10047
10047
|
null,
|
|
10048
|
-
g.createElement("img", { ref: v, onLoad: I, onError: F, onClick: o, draggable: !1, className:
|
|
10048
|
+
g.createElement("img", { ref: v, onLoad: I, onError: F, onClick: o, draggable: !1, className: Qe(de(Ws()), B && de(Ws("cover")), N !== Bs && de(Ws("loading")), M), style: { ...Y, ...u, ..._ }, ...T, alt: (y = e.alt) !== null && y !== void 0 ? y : "", sizes: C, srcSet: Z, src: e.src }),
|
|
10049
10049
|
N !== Bs && g.createElement(
|
|
10050
10050
|
"div",
|
|
10051
10051
|
{ className: de(zs(Ag)) },
|
|
10052
|
-
N === Fs && (n?.iconLoading ? n.iconLoading() : g.createElement(db, { className:
|
|
10053
|
-
N === $s && (n?.iconError ? n.iconError() : g.createElement(hb, { className:
|
|
10052
|
+
N === Fs && (n?.iconLoading ? n.iconLoading() : g.createElement(db, { className: Qe(de(yi), de(zs(Fs))) })),
|
|
10053
|
+
N === $s && (n?.iconError ? n.iconError() : g.createElement(hb, { className: Qe(de(yi), de(zs($s))) }))
|
|
10054
10054
|
)
|
|
10055
10055
|
);
|
|
10056
10056
|
}
|
|
@@ -10059,13 +10059,13 @@ const gb = g.forwardRef(function({ className: t, children: n, onFocus: s, onBlur
|
|
|
10059
10059
|
return g.createElement(
|
|
10060
10060
|
eb,
|
|
10061
10061
|
{ nodeRef: l },
|
|
10062
|
-
g.createElement("div", { ref: wi(o, l), className:
|
|
10062
|
+
g.createElement("div", { ref: wi(o, l), className: Qe(de("root"), t), ...c(s, i), ...r }, n)
|
|
10063
10063
|
);
|
|
10064
10064
|
});
|
|
10065
|
-
var
|
|
10065
|
+
var Le;
|
|
10066
10066
|
(function(e) {
|
|
10067
10067
|
e[e.NONE = 0] = "NONE", e[e.SWIPE = 1] = "SWIPE", e[e.PULL = 2] = "PULL", e[e.ANIMATION = 3] = "ANIMATION";
|
|
10068
|
-
})(
|
|
10068
|
+
})(Le || (Le = {}));
|
|
10069
10069
|
function mu(e, t, n, s, i) {
|
|
10070
10070
|
g.useEffect(() => i ? () => {
|
|
10071
10071
|
} : mo(e(Gc, t), e(Kc, n), e(Zc, s), e(qc, s), e(Jc, s)), [e, t, n, s, i]);
|
|
@@ -10079,43 +10079,43 @@ function bb({ disableSwipeNavigation: e, closeOnBackdropClick: t }, n, s, i, r,
|
|
|
10079
10079
|
const y = g.useRef(0), N = g.useRef([]), k = g.useRef(void 0), P = g.useRef(0), j = g.useRef(He.NONE), E = g.useCallback((D) => {
|
|
10080
10080
|
k.current === D.pointerId && (k.current = void 0, j.current = He.NONE);
|
|
10081
10081
|
const te = N.current;
|
|
10082
|
-
te.splice(0, te.length, ...te.filter((
|
|
10082
|
+
te.splice(0, te.length, ...te.filter((Y) => Y.pointerId !== D.pointerId));
|
|
10083
10083
|
}, []), S = g.useCallback((D) => {
|
|
10084
10084
|
E(D), D.persist(), N.current.push(D);
|
|
10085
|
-
}, [E]), v = g.useCallback((D) => N.current.find(({ pointerId: te }) => D.pointerId === te), []), I =
|
|
10085
|
+
}, [E]), v = g.useCallback((D) => N.current.find(({ pointerId: te }) => D.pointerId === te), []), I = fe((D) => {
|
|
10086
10086
|
S(D);
|
|
10087
|
-
}), F = (D, te) => h && D > te || d && D < -te, B =
|
|
10087
|
+
}), F = (D, te) => h && D > te || d && D < -te, B = fe((D) => {
|
|
10088
10088
|
const te = v(D);
|
|
10089
10089
|
if (te)
|
|
10090
10090
|
if (k.current === D.pointerId) {
|
|
10091
|
-
const
|
|
10092
|
-
j.current === He.SWIPE ? Math.abs(
|
|
10091
|
+
const Y = Date.now() - P.current, Z = y.current;
|
|
10092
|
+
j.current === He.SWIPE ? Math.abs(Z) > 0.3 * i || Math.abs(Z) > 5 && Y < r ? c(Z, Y) : u(Z) : j.current === He.PULL && (F(Z, 2 * Ys) ? p(Z, Y) : b(Z)), y.current = 0, j.current = He.NONE;
|
|
10093
10093
|
} else {
|
|
10094
|
-
const { target:
|
|
10095
|
-
t &&
|
|
10094
|
+
const { target: Y } = D;
|
|
10095
|
+
t && Y instanceof HTMLElement && Y === te.target && (Y.classList.contains(de(co)) || Y.classList.contains(de(Xc))) && x();
|
|
10096
10096
|
}
|
|
10097
10097
|
E(D);
|
|
10098
|
-
}),
|
|
10098
|
+
}), q = fe((D) => {
|
|
10099
10099
|
const te = v(D);
|
|
10100
10100
|
if (te) {
|
|
10101
|
-
const
|
|
10101
|
+
const Y = k.current === D.pointerId;
|
|
10102
10102
|
if (D.buttons === 0) {
|
|
10103
|
-
|
|
10103
|
+
Y && y.current !== 0 ? B(D) : E(te);
|
|
10104
10104
|
return;
|
|
10105
10105
|
}
|
|
10106
|
-
const
|
|
10106
|
+
const Z = D.clientX - te.clientX, R = D.clientY - te.clientY;
|
|
10107
10107
|
if (k.current === void 0) {
|
|
10108
10108
|
const C = (_) => {
|
|
10109
10109
|
S(D), k.current = D.pointerId, P.current = Date.now(), j.current = _;
|
|
10110
10110
|
};
|
|
10111
|
-
Math.abs(
|
|
10112
|
-
} else
|
|
10111
|
+
Math.abs(Z) > Math.abs(R) && Math.abs(Z) > Ys && s(Z) ? e || (C(He.SWIPE), o()) : Math.abs(R) > Math.abs(Z) && F(R, Ys) && (C(He.PULL), f());
|
|
10112
|
+
} else Y && (j.current === He.SWIPE ? (y.current = Z, l(Z)) : j.current === He.PULL && (y.current = R, m(R)));
|
|
10113
10113
|
}
|
|
10114
10114
|
});
|
|
10115
|
-
mu(n, I,
|
|
10115
|
+
mu(n, I, q, B);
|
|
10116
10116
|
}
|
|
10117
10117
|
function yb({ preventDefaultWheelX: e, preventDefaultWheelY: t }) {
|
|
10118
|
-
const n = g.useRef(null), s =
|
|
10118
|
+
const n = g.useRef(null), s = fe((i) => {
|
|
10119
10119
|
const r = Math.abs(i.deltaX) > Math.abs(i.deltaY);
|
|
10120
10120
|
(r && e || !r && t || i.ctrlKey) && i.preventDefault();
|
|
10121
10121
|
});
|
|
@@ -10129,13 +10129,13 @@ function xb(e, t, n, s, i, r, o, l, c) {
|
|
|
10129
10129
|
h.current && (y(h.current), h.current = void 0);
|
|
10130
10130
|
}, [y]), k = g.useCallback(() => {
|
|
10131
10131
|
f.current && (y(f.current), f.current = void 0);
|
|
10132
|
-
}, [y]), P =
|
|
10133
|
-
e !==
|
|
10132
|
+
}, [y]), P = fe(() => {
|
|
10133
|
+
e !== Le.SWIPE && (u.current = 0, b.current = 0, N(), k());
|
|
10134
10134
|
});
|
|
10135
10135
|
g.useEffect(P, [e, P]);
|
|
10136
|
-
const j =
|
|
10136
|
+
const j = fe((S) => {
|
|
10137
10137
|
f.current = void 0, u.current === S && c(u.current);
|
|
10138
|
-
}), E =
|
|
10138
|
+
}), E = fe((S) => {
|
|
10139
10139
|
if (S.ctrlKey || Math.abs(S.deltaY) > Math.abs(S.deltaX))
|
|
10140
10140
|
return;
|
|
10141
10141
|
const v = (I) => {
|
|
@@ -10143,7 +10143,7 @@ function xb(e, t, n, s, i, r, o, l, c) {
|
|
|
10143
10143
|
m.current = 0, p.current = void 0;
|
|
10144
10144
|
}, 300) : void 0;
|
|
10145
10145
|
};
|
|
10146
|
-
if (e ===
|
|
10146
|
+
if (e === Le.NONE) {
|
|
10147
10147
|
if (Math.abs(S.deltaX) <= 1.2 * Math.abs(m.current)) {
|
|
10148
10148
|
v(S.deltaX);
|
|
10149
10149
|
return;
|
|
@@ -10158,7 +10158,7 @@ function xb(e, t, n, s, i, r, o, l, c) {
|
|
|
10158
10158
|
h.current = void 0, I === d.current && (d.current = 0);
|
|
10159
10159
|
}, i);
|
|
10160
10160
|
}
|
|
10161
|
-
} else if (e ===
|
|
10161
|
+
} else if (e === Le.SWIPE) {
|
|
10162
10162
|
let I = u.current - S.deltaX;
|
|
10163
10163
|
if (I = Math.min(Math.abs(I), s) * Math.sign(I), u.current = I, o(I), k(), Math.abs(I) > 0.2 * s) {
|
|
10164
10164
|
v(S.deltaX), l(I, Date.now() - b.current);
|
|
@@ -10170,54 +10170,54 @@ function xb(e, t, n, s, i, r, o, l, c) {
|
|
|
10170
10170
|
});
|
|
10171
10171
|
g.useEffect(() => t(ho, E), [t, E]);
|
|
10172
10172
|
}
|
|
10173
|
-
const la = fo("container"), pu = g.createContext(null),
|
|
10173
|
+
const la = fo("container"), pu = g.createContext(null), rt = ot("useController", "ControllerContext", pu);
|
|
10174
10174
|
function vb({ children: e, ...t }) {
|
|
10175
10175
|
var n;
|
|
10176
|
-
const { carousel: s, animation: i, controller: r, on: o, styles: l, render: c } = t, { closeOnPullUp: u, closeOnPullDown: d, preventDefaultWheelX: h, preventDefaultWheelY: f } = r, [m, p] = g.useState(), b = yt(), x = sb(), [y, N] = g.useState(
|
|
10177
|
-
var
|
|
10178
|
-
return (
|
|
10179
|
-
}), ee =
|
|
10176
|
+
const { carousel: s, animation: i, controller: r, on: o, styles: l, render: c } = t, { closeOnPullUp: u, closeOnPullDown: d, preventDefaultWheelX: h, preventDefaultWheelY: f } = r, [m, p] = g.useState(), b = yt(), x = sb(), [y, N] = g.useState(Le.NONE), k = g.useRef(0), P = g.useRef(0), j = g.useRef(1), { registerSensors: E, subscribeSensors: S } = pb(), { subscribe: v, publish: I } = fs(), F = Xn(), B = Xn(), q = Xn(), { containerRef: D, setContainerRef: te, containerRect: Y } = fu(), Z = wi(yb({ preventDefaultWheelX: h, preventDefaultWheelY: f }), te), R = g.useRef(null), C = wi(R, void 0), { getOwnerDocument: _ } = hs(), M = wo(), T = (U) => (M ? -1 : 1) * (typeof U == "number" ? U : 1), A = fe(() => {
|
|
10177
|
+
var U;
|
|
10178
|
+
return (U = D.current) === null || U === void 0 ? void 0 : U.focus();
|
|
10179
|
+
}), ee = fe(() => t), re = fe(() => b), ne = g.useCallback((U) => I(kt, U), [I]), ae = g.useCallback((U) => I(Et, U), [I]), oe = g.useCallback(() => I(Ut), [I]), ge = (U) => !(s.finite && (T(U) > 0 && b.currentIndex === 0 || T(U) < 0 && b.currentIndex === b.slides.length - 1)), ce = (U) => {
|
|
10180
10180
|
var me;
|
|
10181
|
-
k.current =
|
|
10182
|
-
},
|
|
10183
|
-
var me,
|
|
10184
|
-
P.current =
|
|
10185
|
-
const vt = d &&
|
|
10181
|
+
k.current = U, (me = D.current) === null || me === void 0 || me.style.setProperty(_e("swipe_offset"), `${Math.round(U)}px`);
|
|
10182
|
+
}, Se = (U) => {
|
|
10183
|
+
var me, Ie;
|
|
10184
|
+
P.current = U, j.current = (() => {
|
|
10185
|
+
const vt = d && U > 0 ? U : u && U < 0 ? -U : 0;
|
|
10186
10186
|
return Math.min(Math.max(go(1 - vt / 60 * (1 - 0.5), 2), 0.5), 1);
|
|
10187
|
-
})(), (me = D.current) === null || me === void 0 || me.style.setProperty(
|
|
10188
|
-
}, { prepareAnimation:
|
|
10189
|
-
if (R.current &&
|
|
10187
|
+
})(), (me = D.current) === null || me === void 0 || me.style.setProperty(_e("pull_offset"), `${Math.round(U)}px`), (Ie = D.current) === null || Ie === void 0 || Ie.style.setProperty(_e("pull_opacity"), `${j.current}`);
|
|
10188
|
+
}, { prepareAnimation: W } = oa(R, (U, me, Ie) => {
|
|
10189
|
+
if (R.current && Y)
|
|
10190
10190
|
return {
|
|
10191
10191
|
keyframes: [
|
|
10192
10192
|
{
|
|
10193
|
-
transform: `translate(0, ${
|
|
10194
|
-
opacity:
|
|
10193
|
+
transform: `translate(0, ${U.rect.y - me.y + Ie.y}px)`,
|
|
10194
|
+
opacity: U.opacity
|
|
10195
10195
|
},
|
|
10196
10196
|
{ transform: "translate(0, 0)", opacity: 1 }
|
|
10197
10197
|
],
|
|
10198
|
-
duration:
|
|
10198
|
+
duration: U.duration,
|
|
10199
10199
|
easing: i.easing.fade
|
|
10200
10200
|
};
|
|
10201
|
-
}),
|
|
10201
|
+
}), he = (U, me) => {
|
|
10202
10202
|
if (u || d) {
|
|
10203
|
-
|
|
10204
|
-
let
|
|
10205
|
-
R.current && (
|
|
10203
|
+
Se(U);
|
|
10204
|
+
let Ie = 0;
|
|
10205
|
+
R.current && (Ie = i.fade * (me ? 2 : 1), W({
|
|
10206
10206
|
rect: R.current.getBoundingClientRect(),
|
|
10207
10207
|
opacity: j.current,
|
|
10208
|
-
duration:
|
|
10209
|
-
})),
|
|
10210
|
-
|
|
10211
|
-
},
|
|
10208
|
+
duration: Ie
|
|
10209
|
+
})), q(() => {
|
|
10210
|
+
Se(0), N(Le.NONE);
|
|
10211
|
+
}, Ie), N(Le.ANIMATION), me || oe();
|
|
10212
10212
|
}
|
|
10213
|
-
}, { prepareAnimation:
|
|
10213
|
+
}, { prepareAnimation: Te, isAnimationPlaying: Ne } = oa(R, (U, me, Ie) => {
|
|
10214
10214
|
var $e;
|
|
10215
|
-
if (R.current &&
|
|
10216
|
-
const
|
|
10215
|
+
if (R.current && Y && (!(($e = b.animation) === null || $e === void 0) && $e.duration)) {
|
|
10216
|
+
const De = ns(s.spacing), vt = (De.percent ? De.percent * Y.width / 100 : De.pixel) || 0;
|
|
10217
10217
|
return {
|
|
10218
10218
|
keyframes: [
|
|
10219
10219
|
{
|
|
10220
|
-
transform: `translate(${T(b.globalIndex -
|
|
10220
|
+
transform: `translate(${T(b.globalIndex - U.index) * (Y.width + vt) + U.rect.x - me.x + Ie.x}px, 0)`
|
|
10221
10221
|
},
|
|
10222
10222
|
{ transform: "translate(0, 0)" }
|
|
10223
10223
|
],
|
|
@@ -10225,79 +10225,79 @@ function vb({ children: e, ...t }) {
|
|
|
10225
10225
|
easing: b.animation.easing
|
|
10226
10226
|
};
|
|
10227
10227
|
}
|
|
10228
|
-
}),
|
|
10229
|
-
var me,
|
|
10230
|
-
const $e =
|
|
10231
|
-
let { direction: L } =
|
|
10232
|
-
const
|
|
10233
|
-
let
|
|
10228
|
+
}), Ze = fe((U) => {
|
|
10229
|
+
var me, Ie;
|
|
10230
|
+
const $e = U.offset || 0, De = $e ? i.swipe : (me = i.navigation) !== null && me !== void 0 ? me : i.swipe, vt = !$e && !Ne() ? i.easing.navigation : i.easing.swipe;
|
|
10231
|
+
let { direction: L } = U;
|
|
10232
|
+
const H = (Ie = U.count) !== null && Ie !== void 0 ? Ie : 1;
|
|
10233
|
+
let z = Le.ANIMATION, V = De * H;
|
|
10234
10234
|
if (!L) {
|
|
10235
|
-
const $ =
|
|
10236
|
-
|
|
10235
|
+
const $ = Y?.width, Q = U.duration || 0, ue = $ ? De / $ * Math.abs($e) : De;
|
|
10236
|
+
H !== 0 ? (Q < ue ? V = V / ue * Math.max(Q, ue / 5) : $ && (V = De / $ * ($ - Math.abs($e))), L = T($e) > 0 ? kt : Et) : V = De / 2;
|
|
10237
10237
|
}
|
|
10238
|
-
let
|
|
10239
|
-
L === kt ? ge(T(1)) ?
|
|
10240
|
-
|
|
10241
|
-
}, V), R.current &&
|
|
10238
|
+
let J = 0;
|
|
10239
|
+
L === kt ? ge(T(1)) ? J = -H : (z = Le.NONE, V = De) : L === Et && (ge(T(-1)) ? J = H : (z = Le.NONE, V = De)), V = Math.round(V), B(() => {
|
|
10240
|
+
ce(0), N(Le.NONE);
|
|
10241
|
+
}, V), R.current && Te({
|
|
10242
10242
|
rect: R.current.getBoundingClientRect(),
|
|
10243
10243
|
index: b.globalIndex
|
|
10244
|
-
}), N(
|
|
10244
|
+
}), N(z), I(sa, {
|
|
10245
10245
|
type: "swipe",
|
|
10246
|
-
increment:
|
|
10246
|
+
increment: J,
|
|
10247
10247
|
duration: V,
|
|
10248
10248
|
easing: vt
|
|
10249
10249
|
});
|
|
10250
10250
|
});
|
|
10251
10251
|
g.useEffect(() => {
|
|
10252
|
-
var
|
|
10253
|
-
!((
|
|
10252
|
+
var U, me;
|
|
10253
|
+
!((U = b.animation) === null || U === void 0) && U.increment && (!((me = b.animation) === null || me === void 0) && me.duration) && F(() => x({ type: "swipe", increment: 0 }), b.animation.duration);
|
|
10254
10254
|
}, [b.animation, x, F]);
|
|
10255
10255
|
const en = [
|
|
10256
10256
|
S,
|
|
10257
10257
|
ge,
|
|
10258
|
-
|
|
10258
|
+
Y?.width || 0,
|
|
10259
10259
|
i.swipe,
|
|
10260
|
-
() => N(
|
|
10261
|
-
(
|
|
10262
|
-
(
|
|
10263
|
-
(
|
|
10260
|
+
() => N(Le.SWIPE),
|
|
10261
|
+
(U) => ce(U),
|
|
10262
|
+
(U, me) => Ze({ offset: U, duration: me, count: 1 }),
|
|
10263
|
+
(U) => Ze({ offset: U, count: 0 })
|
|
10264
10264
|
], In = [
|
|
10265
10265
|
() => {
|
|
10266
|
-
d && N(
|
|
10266
|
+
d && N(Le.PULL);
|
|
10267
10267
|
},
|
|
10268
|
-
(
|
|
10269
|
-
(
|
|
10270
|
-
(
|
|
10268
|
+
(U) => Se(U),
|
|
10269
|
+
(U) => he(U),
|
|
10270
|
+
(U) => he(U, !0)
|
|
10271
10271
|
];
|
|
10272
|
-
bb(r, ...en, u, d, ...In,
|
|
10273
|
-
const tn =
|
|
10272
|
+
bb(r, ...en, u, d, ...In, oe), xb(y, ...en);
|
|
10273
|
+
const tn = fe(() => {
|
|
10274
10274
|
r.focus && _().querySelector(`.${de(ao)} .${de(la())}`) && A();
|
|
10275
10275
|
});
|
|
10276
10276
|
g.useEffect(tn, [tn]);
|
|
10277
|
-
const xt =
|
|
10278
|
-
var
|
|
10279
|
-
(
|
|
10277
|
+
const xt = fe(() => {
|
|
10278
|
+
var U;
|
|
10279
|
+
(U = o.view) === null || U === void 0 || U.call(o, { index: b.currentIndex });
|
|
10280
10280
|
});
|
|
10281
|
-
g.useEffect(xt, [b.globalIndex, xt]), g.useEffect(() => mo(v(kt, (
|
|
10281
|
+
g.useEffect(xt, [b.globalIndex, xt]), g.useEffect(() => mo(v(kt, (U) => Ze({ direction: kt, ...U })), v(Et, (U) => Ze({ direction: Et, ...U })), v(sa, (U) => x(U))), [v, Ze, x]);
|
|
10282
10282
|
const gs = g.useMemo(() => ({
|
|
10283
|
-
prev:
|
|
10284
|
-
next:
|
|
10285
|
-
close:
|
|
10283
|
+
prev: ne,
|
|
10284
|
+
next: ae,
|
|
10285
|
+
close: oe,
|
|
10286
10286
|
focus: A,
|
|
10287
|
-
slideRect:
|
|
10288
|
-
containerRect:
|
|
10287
|
+
slideRect: Y ? Yg(Y, s.padding) : { width: 0, height: 0 },
|
|
10288
|
+
containerRect: Y || { width: 0, height: 0 },
|
|
10289
10289
|
subscribeSensors: S,
|
|
10290
10290
|
containerRef: D,
|
|
10291
10291
|
setCarouselRef: C,
|
|
10292
10292
|
toolbarWidth: m,
|
|
10293
10293
|
setToolbarWidth: p
|
|
10294
10294
|
}), [
|
|
10295
|
-
|
|
10296
|
-
re,
|
|
10295
|
+
ne,
|
|
10297
10296
|
ae,
|
|
10297
|
+
oe,
|
|
10298
10298
|
A,
|
|
10299
10299
|
S,
|
|
10300
|
-
|
|
10300
|
+
Y,
|
|
10301
10301
|
D,
|
|
10302
10302
|
C,
|
|
10303
10303
|
m,
|
|
@@ -10305,21 +10305,21 @@ function vb({ children: e, ...t }) {
|
|
|
10305
10305
|
s.padding
|
|
10306
10306
|
]);
|
|
10307
10307
|
return g.useImperativeHandle(r.ref, () => ({
|
|
10308
|
-
prev:
|
|
10309
|
-
next:
|
|
10310
|
-
close:
|
|
10308
|
+
prev: ne,
|
|
10309
|
+
next: ae,
|
|
10310
|
+
close: oe,
|
|
10311
10311
|
focus: A,
|
|
10312
10312
|
getLightboxProps: ee,
|
|
10313
|
-
getLightboxState:
|
|
10314
|
-
}), [
|
|
10315
|
-
...y ===
|
|
10316
|
-
...y ===
|
|
10317
|
-
[
|
|
10318
|
-
[
|
|
10313
|
+
getLightboxState: re
|
|
10314
|
+
}), [ne, ae, oe, A, ee, re]), g.createElement("div", { ref: Z, className: Qe(de(la()), de(lo)), style: {
|
|
10315
|
+
...y === Le.SWIPE ? { [_e("swipe_offset")]: `${Math.round(k.current)}px` } : null,
|
|
10316
|
+
...y === Le.PULL ? {
|
|
10317
|
+
[_e("pull_offset")]: `${Math.round(P.current)}px`,
|
|
10318
|
+
[_e("pull_opacity")]: `${j.current}`
|
|
10319
10319
|
} : null,
|
|
10320
|
-
...r.touchAction !== "none" ? { [
|
|
10320
|
+
...r.touchAction !== "none" ? { [_e("controller_touch_action")]: r.touchAction } : null,
|
|
10321
10321
|
...l.container
|
|
10322
|
-
}, tabIndex: -1, ...E },
|
|
10322
|
+
}, tabIndex: -1, ...E }, Y && g.createElement(
|
|
10323
10323
|
pu.Provider,
|
|
10324
10324
|
{ value: gs },
|
|
10325
10325
|
e,
|
|
@@ -10334,7 +10334,7 @@ function ca(e) {
|
|
|
10334
10334
|
return Pn(co, e);
|
|
10335
10335
|
}
|
|
10336
10336
|
function Tb({ slide: e, offset: t }) {
|
|
10337
|
-
const n = g.useRef(null), { currentIndex: s, slides: i } = yt(), { slideRect: r, focus: o } =
|
|
10337
|
+
const n = g.useRef(null), { currentIndex: s, slides: i } = yt(), { slideRect: r, focus: o } = rt(), { render: l, carousel: { imageFit: c, imageProps: u }, on: { click: d }, styles: { slide: h }, labels: f } = We(), { getOwnerDocument: m } = hs(), p = t !== 0;
|
|
10338
10338
|
g.useEffect(() => {
|
|
10339
10339
|
var x;
|
|
10340
10340
|
p && (!((x = n.current) === null || x === void 0) && x.contains(m().activeElement)) && o();
|
|
@@ -10350,14 +10350,14 @@ function Tb({ slide: e, offset: t }) {
|
|
|
10350
10350
|
(k = l.slideFooter) === null || k === void 0 ? void 0 : k.call(l, { slide: e })
|
|
10351
10351
|
) : null;
|
|
10352
10352
|
};
|
|
10353
|
-
return g.createElement("div", { ref: n, className:
|
|
10353
|
+
return g.createElement("div", { ref: n, className: Qe(de(ca()), !p && de(ca("current")), de(lo)), ...Zg(p), style: h, role: "group", "aria-roledescription": Ht(f, "Slide"), "aria-label": Wg(f, i, s + t) }, b());
|
|
10354
10354
|
}
|
|
10355
10355
|
function Sb() {
|
|
10356
10356
|
const e = We().styles.slide;
|
|
10357
10357
|
return g.createElement("div", { className: de(co), style: e });
|
|
10358
10358
|
}
|
|
10359
10359
|
function Nb({ carousel: e, labels: t }) {
|
|
10360
|
-
const { slides: n, currentIndex: s, globalIndex: i } = yt(), { setCarouselRef: r } =
|
|
10360
|
+
const { slides: n, currentIndex: s, globalIndex: i } = yt(), { setCarouselRef: r } = rt(), { autoPlaying: o, focusWithin: l } = ru(), c = ns(e.spacing), u = ns(e.padding), d = Gg(e, n, 1), h = [];
|
|
10361
10361
|
if (nu(n))
|
|
10362
10362
|
for (let f = s - d; f <= s + d; f += 1) {
|
|
10363
10363
|
const m = su(n, f), p = i - s + f, b = e.finite && (f < 0 || f > n.length - 1);
|
|
@@ -10367,12 +10367,12 @@ function Nb({ carousel: e, labels: t }) {
|
|
|
10367
10367
|
slide: m
|
|
10368
10368
|
});
|
|
10369
10369
|
}
|
|
10370
|
-
return g.createElement("div", { ref: r, className:
|
|
10371
|
-
[`${
|
|
10372
|
-
[`${
|
|
10373
|
-
[`${
|
|
10374
|
-
[`${
|
|
10375
|
-
[`${
|
|
10370
|
+
return g.createElement("div", { ref: r, className: Qe(de(St()), h.length > 0 && de(St("with_slides"))), style: {
|
|
10371
|
+
[`${_e(St("slides_count"))}`]: h.length,
|
|
10372
|
+
[`${_e(St("spacing_px"))}`]: c.pixel || 0,
|
|
10373
|
+
[`${_e(St("spacing_percent"))}`]: c.percent || 0,
|
|
10374
|
+
[`${_e(St("padding_px"))}`]: u.pixel || 0,
|
|
10375
|
+
[`${_e(St("padding_percent"))}`]: u.percent || 0
|
|
10376
10376
|
}, role: "region", "aria-live": o && !l ? "off" : "polite", "aria-roledescription": Ht(t, "Carousel"), "aria-label": Ht(t, "Photo gallery") }, h.map(({ key: f, slide: m, offset: p }) => m ? g.createElement(Tb, { key: f, slide: m, offset: p }) : g.createElement(Sb, { key: f })));
|
|
10377
10377
|
}
|
|
10378
10378
|
const kb = bt(Wc, Nb);
|
|
@@ -10382,7 +10382,7 @@ function gu() {
|
|
|
10382
10382
|
}
|
|
10383
10383
|
function Eb(e) {
|
|
10384
10384
|
var t;
|
|
10385
|
-
const n = wo(), { publish: s } = fs(), { animation: i } = We(), { prevDisabled: r, nextDisabled: o } = gu(), l = ((t = i.navigation) !== null && t !== void 0 ? t : i.swipe) / 2, c = aa(() => s(kt), l), u = aa(() => s(Et), l), d =
|
|
10385
|
+
const n = wo(), { publish: s } = fs(), { animation: i } = We(), { prevDisabled: r, nextDisabled: o } = gu(), l = ((t = i.navigation) !== null && t !== void 0 ? t : i.swipe) / 2, c = aa(() => s(kt), l), u = aa(() => s(Et), l), d = fe((h) => {
|
|
10386
10386
|
switch (h.key) {
|
|
10387
10387
|
case Fg:
|
|
10388
10388
|
s(Ut);
|
|
@@ -10398,10 +10398,10 @@ function Eb(e) {
|
|
|
10398
10398
|
g.useEffect(() => e(uo, d), [e, d]);
|
|
10399
10399
|
}
|
|
10400
10400
|
function ua({ label: e, icon: t, renderIcon: n, action: s, onClick: i, disabled: r, style: o }) {
|
|
10401
|
-
return g.createElement(xo, { label: e, icon: t, renderIcon: n, className: de(`navigation_${s}`), disabled: r, onClick: i, style: o, ...mb(
|
|
10401
|
+
return g.createElement(xo, { label: e, icon: t, renderIcon: n, className: de(`navigation_${s}`), disabled: r, onClick: i, style: o, ...mb(rt().focus, r) });
|
|
10402
10402
|
}
|
|
10403
10403
|
function Cb({ render: { buttonPrev: e, buttonNext: t, iconPrev: n, iconNext: s }, styles: i }) {
|
|
10404
|
-
const { prev: r, next: o, subscribeSensors: l } =
|
|
10404
|
+
const { prev: r, next: o, subscribeSensors: l } = rt(), { prevDisabled: c, nextDisabled: u } = gu();
|
|
10405
10405
|
return Eb(l), g.createElement(
|
|
10406
10406
|
g.Fragment,
|
|
10407
10407
|
null,
|
|
@@ -10454,9 +10454,9 @@ function Ab({ children: e, animation: t, styles: n, className: s, on: i, portal:
|
|
|
10454
10454
|
g.useEffect(() => (u(!0), () => {
|
|
10455
10455
|
u(!1), h(!1);
|
|
10456
10456
|
}), []);
|
|
10457
|
-
const N =
|
|
10457
|
+
const N = fe(() => {
|
|
10458
10458
|
f.current.forEach((E) => E()), f.current = [];
|
|
10459
|
-
}), k =
|
|
10459
|
+
}), k = fe(() => {
|
|
10460
10460
|
var E;
|
|
10461
10461
|
h(!1), N(), (E = i.exiting) === null || E === void 0 || E.call(i), p(() => {
|
|
10462
10462
|
var S;
|
|
@@ -10464,17 +10464,17 @@ function Ab({ children: e, animation: t, styles: n, className: s, on: i, portal:
|
|
|
10464
10464
|
}, y);
|
|
10465
10465
|
});
|
|
10466
10466
|
g.useEffect(() => b(Ut, k), [b, k]);
|
|
10467
|
-
const P =
|
|
10467
|
+
const P = fe((E) => {
|
|
10468
10468
|
var S, v, I;
|
|
10469
10469
|
qg(E), h(!0), (S = i.entering) === null || S === void 0 || S.call(i);
|
|
10470
10470
|
const F = (I = (v = E.parentNode) === null || v === void 0 ? void 0 : v.children) !== null && I !== void 0 ? I : [];
|
|
10471
10471
|
for (let B = 0; B < F.length; B += 1) {
|
|
10472
|
-
const
|
|
10473
|
-
["TEMPLATE", "SCRIPT", "STYLE"].indexOf(
|
|
10472
|
+
const q = F[B];
|
|
10473
|
+
["TEMPLATE", "SCRIPT", "STYLE"].indexOf(q.tagName) === -1 && q !== E && (f.current.push(ma(q, "inert", "")), f.current.push(ma(q, "aria-hidden", "true")));
|
|
10474
10474
|
}
|
|
10475
10475
|
f.current.push(() => {
|
|
10476
|
-
var B,
|
|
10477
|
-
(
|
|
10476
|
+
var B, q;
|
|
10477
|
+
(q = (B = m.current) === null || B === void 0 ? void 0 : B.focus) === null || q === void 0 || q.call(B);
|
|
10478
10478
|
}), p(() => {
|
|
10479
10479
|
var B;
|
|
10480
10480
|
(B = i.entered) === null || B === void 0 || B.call(i);
|
|
@@ -10482,9 +10482,9 @@ function Ab({ children: e, animation: t, styles: n, className: s, on: i, portal:
|
|
|
10482
10482
|
}), j = g.useCallback((E) => {
|
|
10483
10483
|
E ? P(E) : N();
|
|
10484
10484
|
}, [P, N]);
|
|
10485
|
-
return c ? ka(g.createElement(gb, { ref: j, className:
|
|
10486
|
-
...t.fade !== vi.animation.fade ? { [
|
|
10487
|
-
...t.easing.fade !== vi.animation.easing.fade ? { [
|
|
10485
|
+
return c ? ka(g.createElement(gb, { ref: j, className: Qe(s, de(fa()), de(Hc), d && de(fa("open"))), "aria-modal": !0, role: "dialog", "aria-label": Ht(l, "Lightbox"), style: {
|
|
10486
|
+
...t.fade !== vi.animation.fade ? { [_e("fade_animation_duration")]: `${y}ms` } : null,
|
|
10487
|
+
...t.easing.fade !== vi.animation.easing.fade ? { [_e("fade_animation_timing_function")]: t.easing.fade } : null,
|
|
10488
10488
|
...n.root
|
|
10489
10489
|
}, onFocus: (E) => {
|
|
10490
10490
|
m.current || (m.current = E.relatedTarget);
|
|
@@ -10499,8 +10499,8 @@ function Db(e) {
|
|
|
10499
10499
|
return Pn(Uc, e);
|
|
10500
10500
|
}
|
|
10501
10501
|
function _b({ toolbar: { buttons: e }, render: { buttonClose: t, iconClose: n }, styles: s }) {
|
|
10502
|
-
const { close: i, setToolbarWidth: r } =
|
|
10503
|
-
|
|
10502
|
+
const { close: i, setToolbarWidth: r } = rt(), { setContainerRef: o, containerRect: l } = fu();
|
|
10503
|
+
tt(() => {
|
|
10504
10504
|
r(l?.width);
|
|
10505
10505
|
}, [r, l?.width]);
|
|
10506
10506
|
const c = () => t ? t() : g.createElement(xo, { key: Ut, label: "Close", icon: lb, renderIcon: n, onClick: i });
|
|
@@ -10521,12 +10521,12 @@ function $b(e, t = {}) {
|
|
|
10521
10521
|
}
|
|
10522
10522
|
function Bb({ carousel: e, animation: t, render: n, toolbar: s, controller: i, noScroll: r, on: o, plugins: l, slides: c, index: u, ...d }) {
|
|
10523
10523
|
const { animation: h, carousel: f, render: m, toolbar: p, controller: b, noScroll: x, on: y, slides: N, index: k, plugins: P, ...j } = vi, { config: E, augmentation: S } = Jg([
|
|
10524
|
-
|
|
10525
|
-
|
|
10526
|
-
|
|
10527
|
-
|
|
10528
|
-
|
|
10529
|
-
|
|
10524
|
+
Me(Lb, [
|
|
10525
|
+
Me(Rb, [
|
|
10526
|
+
Me(wb, [
|
|
10527
|
+
Me(kb),
|
|
10528
|
+
Me(Fb),
|
|
10529
|
+
Me(Pb)
|
|
10530
10530
|
])
|
|
10531
10531
|
])
|
|
10532
10532
|
])
|
|
@@ -10553,7 +10553,7 @@ function Bb({ carousel: e, animation: t, render: n, toolbar: s, controller: i, n
|
|
|
10553
10553
|
g.createElement(
|
|
10554
10554
|
tb,
|
|
10555
10555
|
null,
|
|
10556
|
-
g.createElement(Qg, null, bu(
|
|
10556
|
+
g.createElement(Qg, null, bu(Me(Ob, E), v))
|
|
10557
10557
|
)
|
|
10558
10558
|
)
|
|
10559
10559
|
)
|
|
@@ -10580,7 +10580,7 @@ function yu(e) {
|
|
|
10580
10580
|
return { minZoom: Wb(t), ...n };
|
|
10581
10581
|
}
|
|
10582
10582
|
function Yb(e, t, n, s) {
|
|
10583
|
-
const i = g.useRef(void 0), r = g.useRef(void 0), { zoom: o } = We().animation, l = vo(), c =
|
|
10583
|
+
const i = g.useRef(void 0), r = g.useRef(void 0), { zoom: o } = We().animation, l = vo(), c = fe(() => {
|
|
10584
10584
|
var u, d, h;
|
|
10585
10585
|
if ((u = i.current) === null || u === void 0 || u.cancel(), i.current = void 0, r.current && s?.current) {
|
|
10586
10586
|
try {
|
|
@@ -10599,12 +10599,12 @@ function Yb(e, t, n, s) {
|
|
|
10599
10599
|
});
|
|
10600
10600
|
}
|
|
10601
10601
|
});
|
|
10602
|
-
return
|
|
10602
|
+
return tt(c, [e, t, n, c]), g.useCallback(() => {
|
|
10603
10603
|
r.current = s?.current ? window.getComputedStyle(s.current).transform : void 0;
|
|
10604
10604
|
}, [s]);
|
|
10605
10605
|
}
|
|
10606
10606
|
function Ub(e, t) {
|
|
10607
|
-
const { on: n } = We(), s =
|
|
10607
|
+
const { on: n } = We(), s = fe(() => {
|
|
10608
10608
|
var i;
|
|
10609
10609
|
t || (i = n.zoom) === null || i === void 0 || i.call(n, { zoom: e });
|
|
10610
10610
|
});
|
|
@@ -10647,35 +10647,35 @@ function ga(e, t, n = 100, s = 2) {
|
|
|
10647
10647
|
return e * Math.min(1 + Math.abs(t / n), s) ** Math.sign(t);
|
|
10648
10648
|
}
|
|
10649
10649
|
function Xb(e, t, n, s, i, r, o, l, c) {
|
|
10650
|
-
const u = g.useRef([]), d = g.useRef(0), h = g.useRef(void 0), { globalIndex: f } = yt(), { getOwnerWindow: m } = hs(), { containerRef: p, subscribeSensors: b } =
|
|
10650
|
+
const u = g.useRef([]), d = g.useRef(0), h = g.useRef(void 0), { globalIndex: f } = yt(), { getOwnerWindow: m } = hs(), { containerRef: p, subscribeSensors: b } = rt(), { keyboardMoveDistance: x, zoomInMultiplier: y, wheelZoomDistanceFactor: N, scrollToZoom: k, doubleTapDelay: P, doubleClickDelay: j, doubleClickMaxStops: E, pinchZoomDistanceFactor: S, pinchZoomV4: v } = ps(), I = g.useCallback((C) => {
|
|
10651
10651
|
if (p.current) {
|
|
10652
|
-
const { pageX: _, pageY: M } = C, { scrollX: T, scrollY: A } = m(), { left: ee, top:
|
|
10653
|
-
return [_ - ee - T -
|
|
10652
|
+
const { pageX: _, pageY: M } = C, { scrollX: T, scrollY: A } = m(), { left: ee, top: re, width: ne, height: ae } = p.current.getBoundingClientRect();
|
|
10653
|
+
return [_ - ee - T - ne / 2, M - re - A - ae / 2];
|
|
10654
10654
|
}
|
|
10655
10655
|
return [];
|
|
10656
|
-
}, [p, m]), F =
|
|
10656
|
+
}, [p, m]), F = fe((C) => {
|
|
10657
10657
|
const { key: _, metaKey: M, ctrlKey: T } = C, A = M || T, ee = () => {
|
|
10658
10658
|
C.preventDefault(), C.stopPropagation();
|
|
10659
10659
|
};
|
|
10660
10660
|
if (e > 1) {
|
|
10661
|
-
const
|
|
10662
|
-
ee(), l(
|
|
10661
|
+
const re = (ne, ae) => {
|
|
10662
|
+
ee(), l(ne, ae);
|
|
10663
10663
|
};
|
|
10664
|
-
_ === "ArrowDown" ?
|
|
10664
|
+
_ === "ArrowDown" ? re(0, x) : _ === "ArrowUp" ? re(0, -x) : _ === "ArrowLeft" ? re(-x, 0) : _ === "ArrowRight" && re(x, 0);
|
|
10665
10665
|
}
|
|
10666
10666
|
_ === "+" || A && _ === "=" ? (ee(), i()) : _ === "-" || A && _ === "_" ? (ee(), r()) : A && _ === "0" && (ee(), o(1));
|
|
10667
|
-
}), B =
|
|
10667
|
+
}), B = fe((C) => {
|
|
10668
10668
|
if ((C.ctrlKey || k) && Math.abs(C.deltaY) > Math.abs(C.deltaX)) {
|
|
10669
10669
|
C.stopPropagation(), o(ga(e, -C.deltaY, N), !0, ...I(C));
|
|
10670
10670
|
return;
|
|
10671
10671
|
}
|
|
10672
10672
|
e > 1 && (C.stopPropagation(), k || l(C.deltaX, C.deltaY));
|
|
10673
|
-
}),
|
|
10673
|
+
}), q = g.useCallback((C) => {
|
|
10674
10674
|
const _ = u.current;
|
|
10675
10675
|
_.splice(0, _.length, ..._.filter((M) => M.pointerId !== C.pointerId));
|
|
10676
10676
|
}, []), D = g.useCallback((C) => {
|
|
10677
|
-
|
|
10678
|
-
}, [
|
|
10677
|
+
q(C), C.persist(), u.current.push(C);
|
|
10678
|
+
}, [q]), te = fe((C) => {
|
|
10679
10679
|
var _;
|
|
10680
10680
|
const M = u.current;
|
|
10681
10681
|
if (C.pointerType === "mouse" && C.buttons > 1 || !(!((_ = c?.current) === null || _ === void 0) && _.contains(C.target)))
|
|
@@ -10696,40 +10696,40 @@ function Xb(e, t, n, s, i, r, o, l, c) {
|
|
|
10696
10696
|
initialZoom: e
|
|
10697
10697
|
};
|
|
10698
10698
|
}
|
|
10699
|
-
}),
|
|
10699
|
+
}), Y = fe((C) => {
|
|
10700
10700
|
const _ = u.current, M = _.find((T) => T.pointerId === C.pointerId);
|
|
10701
10701
|
if (_.length === 2 && h.current) {
|
|
10702
10702
|
C.stopPropagation(), D(C);
|
|
10703
10703
|
const T = pa(_[0], _[1]), A = v ? h.current.initialZoom / h.current.initialDistance * T : ga(e, T - h.current.previousDistance, S);
|
|
10704
|
-
o(A, !0, ..._.map((ee) => I(ee)).reduce((ee,
|
|
10704
|
+
o(A, !0, ..._.map((ee) => I(ee)).reduce((ee, re) => re.map((ne, ae) => ee[ae] + ne / 2))), h.current.previousDistance = T;
|
|
10705
10705
|
return;
|
|
10706
10706
|
}
|
|
10707
10707
|
e > 1 && (C.stopPropagation(), M && (_.length === 1 && l((M.clientX - C.clientX) / e, (M.clientY - C.clientY) / e), D(C)));
|
|
10708
|
-
}),
|
|
10708
|
+
}), Z = g.useCallback((C) => {
|
|
10709
10709
|
const _ = u.current;
|
|
10710
|
-
_.length === 2 && _.find((M) => M.pointerId === C.pointerId) && (h.current = void 0),
|
|
10711
|
-
}, [
|
|
10710
|
+
_.length === 2 && _.find((M) => M.pointerId === C.pointerId) && (h.current = void 0), q(C);
|
|
10711
|
+
}, [q]), R = g.useCallback(() => {
|
|
10712
10712
|
const C = u.current;
|
|
10713
10713
|
C.splice(0, C.length), d.current = 0, h.current = void 0;
|
|
10714
10714
|
}, []);
|
|
10715
|
-
mu(b, te,
|
|
10715
|
+
mu(b, te, Y, Z, s), g.useEffect(R, [f, R]), g.useEffect(() => s ? () => {
|
|
10716
10716
|
} : mo(R, b(uo, F), b(ho, B)), [s, b, R, F, B]);
|
|
10717
10717
|
}
|
|
10718
10718
|
function Gb(e, t, n) {
|
|
10719
|
-
const [s, i] = g.useState(1), [r, o] = g.useState(0), [l, c] = g.useState(0), u = Yb(s, r, l, n), { currentSlide: d, globalIndex: h } = yt(), { containerRect: f, slideRect: m } =
|
|
10720
|
-
|
|
10719
|
+
const [s, i] = g.useState(1), [r, o] = g.useState(0), [l, c] = g.useState(0), u = Yb(s, r, l, n), { currentSlide: d, globalIndex: h } = yt(), { containerRect: f, slideRect: m } = rt(), { minZoom: p, zoomInMultiplier: b } = ps(), x = d && Qt(d) ? d.src : void 0, y = !x || !n?.current;
|
|
10720
|
+
tt(() => {
|
|
10721
10721
|
i(1), o(0), c(0);
|
|
10722
10722
|
}, [h, x]);
|
|
10723
10723
|
const N = g.useCallback((S, v, I) => {
|
|
10724
|
-
const F = I || s, B = r - (S || 0),
|
|
10725
|
-
o(Math.min(Math.abs(B), Math.max(D, 0)) * Math.sign(B)), c(Math.min(Math.abs(
|
|
10724
|
+
const F = I || s, B = r - (S || 0), q = l - (v || 0), D = (e.width * F - m.width) / 2 / F, te = (e.height * F - m.height) / 2 / F;
|
|
10725
|
+
o(Math.min(Math.abs(B), Math.max(D, 0)) * Math.sign(B)), c(Math.min(Math.abs(q), Math.max(te, 0)) * Math.sign(q));
|
|
10726
10726
|
}, [s, r, l, m, e.width, e.height]), k = g.useCallback((S, v, I, F) => {
|
|
10727
10727
|
const B = go(S + 0.01 < t ? S - 0.01 > p ? S : p : t, 5);
|
|
10728
10728
|
v || u(), N(I ? I * (1 / s - 1 / B) : 0, F ? F * (1 / s - 1 / B) : 0, B), i(B);
|
|
10729
|
-
}, [s, p, t, N, u]), P =
|
|
10729
|
+
}, [s, p, t, N, u]), P = fe(() => {
|
|
10730
10730
|
s > 1 && (s > t && k(t, !0), N());
|
|
10731
10731
|
});
|
|
10732
|
-
|
|
10732
|
+
tt(P, [f.width, f.height, P]);
|
|
10733
10733
|
const j = g.useCallback(() => {
|
|
10734
10734
|
const S = s * b;
|
|
10735
10735
|
k(s < 1 && S > 1 ? 1 : S);
|
|
@@ -10739,9 +10739,9 @@ function Gb(e, t, n) {
|
|
|
10739
10739
|
}, [s, b, k]);
|
|
10740
10740
|
return { zoom: s, offsetX: r, offsetY: l, disabled: y, changeOffsets: N, changeZoom: k, zoomIn: j, zoomOut: E };
|
|
10741
10741
|
}
|
|
10742
|
-
const xu = g.createContext(null), To =
|
|
10742
|
+
const xu = g.createContext(null), To = ot("useZoom", "ZoomControllerContext", xu);
|
|
10743
10743
|
function Kb({ children: e }) {
|
|
10744
|
-
const [t, n] = g.useState(), { slideRect: s } =
|
|
10744
|
+
const [t, n] = g.useState(), { slideRect: s } = rt(), { ref: i, minZoom: r } = ps(), { imageRect: o, maxZoom: l } = Hb(s, t?.imageDimensions), { zoom: c, offsetX: u, offsetY: d, disabled: h, changeZoom: f, changeOffsets: m, zoomIn: p, zoomOut: b } = Gb(o, l, t?.zoomWrapperRef);
|
|
10745
10745
|
Ub(c, h), Xb(c, r, l, h, p, b, f, m, t?.zoomWrapperRef);
|
|
10746
10746
|
const x = g.useMemo(() => ({ zoom: c, minZoom: r, maxZoom: l, offsetX: u, offsetY: d, disabled: h, zoomIn: p, zoomOut: b, changeZoom: f }), [c, r, l, u, d, h, p, b, f]);
|
|
10747
10747
|
g.useImperativeHandle(i, () => x, [x]);
|
|
@@ -10764,7 +10764,7 @@ const Zb = Rt("ZoomIn", g.createElement(
|
|
|
10764
10764
|
} });
|
|
10765
10765
|
});
|
|
10766
10766
|
function Jb() {
|
|
10767
|
-
const e = g.useRef(null), t = g.useRef(null), { focus: n } =
|
|
10767
|
+
const e = g.useRef(null), t = g.useRef(null), { focus: n } = rt(), s = g.useCallback((o) => {
|
|
10768
10768
|
var l, c;
|
|
10769
10769
|
!((l = o.current) === null || l === void 0) && l.disabled ? n() : (c = o.current) === null || c === void 0 || c.focus();
|
|
10770
10770
|
}, [n]), i = g.useCallback(() => s(e), [s]), r = g.useCallback(() => s(t), [s]);
|
|
@@ -10795,13 +10795,13 @@ function ty({ current: e, preload: t }, { type: n, source: s }) {
|
|
|
10795
10795
|
}
|
|
10796
10796
|
function ny(e) {
|
|
10797
10797
|
var t, n;
|
|
10798
|
-
const [{ current: s, preload: i }, r] = g.useReducer(ty, {}), { slide: o, rect: l, imageFit: c, render: u, interactive: d } = e, h = o.srcSet.sort((j, E) => j.width - E.width), f = (t = o.width) !== null && t !== void 0 ? t : h[h.length - 1].width, m = (n = o.height) !== null && n !== void 0 ? n : h[h.length - 1].height, p = bo(o, c), b = Math.max(...h.map((j) => j.width)), x = Math.min((p ? Math.max : Math.min)(l.width, f * (l.height / m)), b), y = Ug(), N =
|
|
10798
|
+
const [{ current: s, preload: i }, r] = g.useReducer(ty, {}), { slide: o, rect: l, imageFit: c, render: u, interactive: d } = e, h = o.srcSet.sort((j, E) => j.width - E.width), f = (t = o.width) !== null && t !== void 0 ? t : h[h.length - 1].width, m = (n = o.height) !== null && n !== void 0 ? n : h[h.length - 1].height, p = bo(o, c), b = Math.max(...h.map((j) => j.width)), x = Math.min((p ? Math.max : Math.min)(l.width, f * (l.height / m)), b), y = Ug(), N = fe(() => {
|
|
10799
10799
|
var j;
|
|
10800
10800
|
const E = (j = h.find((S) => S.width >= x * y)) !== null && j !== void 0 ? j : h[h.length - 1];
|
|
10801
10801
|
(!s || h.findIndex((S) => S.src === s) < h.findIndex((S) => S === E)) && r({ type: "fetch", source: E.src });
|
|
10802
10802
|
});
|
|
10803
|
-
|
|
10804
|
-
const k =
|
|
10803
|
+
tt(N, [l.width, l.height, y, N]);
|
|
10804
|
+
const k = fe((j) => r({ type: "done", source: j })), P = {
|
|
10805
10805
|
WebkitTransform: d ? "initial" : "translateZ(0)"
|
|
10806
10806
|
};
|
|
10807
10807
|
return p || Object.assign(P, l.width / l.height < f / m ? { width: "100%", height: "auto" } : { width: "auto", height: "100%" }), g.createElement(
|
|
@@ -10818,7 +10818,7 @@ function ny(e) {
|
|
|
10818
10818
|
function sy({ render: e, slide: t, offset: n, rect: s }) {
|
|
10819
10819
|
var i;
|
|
10820
10820
|
const [r, o] = g.useState(), l = g.useRef(null), { zoom: c, maxZoom: u, offsetX: d, offsetY: h, setZoomWrapper: f } = To(), m = c > 1, { carousel: p, on: b } = We(), { currentIndex: x } = yt();
|
|
10821
|
-
|
|
10821
|
+
tt(() => n === 0 ? (f({ zoomWrapperRef: l, imageDimensions: r }), () => f(void 0)) : () => {
|
|
10822
10822
|
}, [n, r, f]);
|
|
10823
10823
|
let y = (i = e.slide) === null || i === void 0 ? void 0 : i.call(e, { slide: t, offset: n, rect: s, zoom: c, maxZoom: u });
|
|
10824
10824
|
if (!y && Qt(t)) {
|
|
@@ -10836,7 +10836,7 @@ function sy({ render: e, slide: t, offset: n, rect: s }) {
|
|
|
10836
10836
|
};
|
|
10837
10837
|
y = ey(t) ? g.createElement(ny, { ...N, slide: t, interactive: m, rect: n === 0 ? { width: s.width * c, height: s.height * c } : s }) : g.createElement(ss, { onLoad: (k) => o({ width: k.naturalWidth, height: k.naturalHeight }), ...N });
|
|
10838
10838
|
}
|
|
10839
|
-
return y ? g.createElement("div", { ref: l, className:
|
|
10839
|
+
return y ? g.createElement("div", { ref: l, className: Qe(de(Vg), de(lo), de(Xc), m && de(Dg)), style: n === 0 ? { transform: `scale(${c}) translateX(${d}px) translateY(${h}px)` } : void 0 }, y) : null;
|
|
10840
10840
|
}
|
|
10841
10841
|
const iy = ({ augment: e, addModule: t }) => {
|
|
10842
10842
|
e(({ zoom: n, toolbar: s, render: i, controller: r, ...o }) => {
|
|
@@ -10946,7 +10946,7 @@ function ya({
|
|
|
10946
10946
|
delay: l = 0,
|
|
10947
10947
|
gridSpan: c = !0
|
|
10948
10948
|
}) {
|
|
10949
|
-
const [u, d] = O(null), h =
|
|
10949
|
+
const [u, d] = O(null), h = ve(null), [f, m] = O(!1), [p, b] = O(!1), x = (S) => {
|
|
10950
10950
|
d(S);
|
|
10951
10951
|
}, y = () => {
|
|
10952
10952
|
d(null);
|
|
@@ -11081,7 +11081,7 @@ function ya({
|
|
|
11081
11081
|
children: e.description
|
|
11082
11082
|
}
|
|
11083
11083
|
),
|
|
11084
|
-
/* @__PURE__ */ a.jsx(
|
|
11084
|
+
/* @__PURE__ */ a.jsx(Ce, { mode: "wait", children: t && /* @__PURE__ */ a.jsxs(
|
|
11085
11085
|
w.div,
|
|
11086
11086
|
{
|
|
11087
11087
|
initial: { opacity: 0, y: 8 },
|
|
@@ -11231,7 +11231,7 @@ function ya({
|
|
|
11231
11231
|
}
|
|
11232
11232
|
),
|
|
11233
11233
|
typeof document < "u" && ka(
|
|
11234
|
-
/* @__PURE__ */ a.jsx(
|
|
11234
|
+
/* @__PURE__ */ a.jsx(Ce, { children: u !== null && e.images && /* @__PURE__ */ a.jsxs(
|
|
11235
11235
|
w.div,
|
|
11236
11236
|
{
|
|
11237
11237
|
className: "absolute inset-0 z-12000 flex items-center justify-center bg-black",
|
|
@@ -11379,7 +11379,7 @@ function dy({ tab: e, tabIndex: t = 0, expandedCardId: n, setExpandedCardId: s }
|
|
|
11379
11379
|
exit: { opacity: 0, y: -20 },
|
|
11380
11380
|
transition: { duration: 0.4, ease: [0.4, 0, 0.2, 1] },
|
|
11381
11381
|
className: "space-y-6",
|
|
11382
|
-
children: /* @__PURE__ */ a.jsx(
|
|
11382
|
+
children: /* @__PURE__ */ a.jsx(Ce, { mode: "wait", initial: !1, children: l ? /* @__PURE__ */ a.jsx(
|
|
11383
11383
|
w.div,
|
|
11384
11384
|
{
|
|
11385
11385
|
initial: { opacity: 0, y: 14, scale: 0.995 },
|
|
@@ -11431,53 +11431,53 @@ function dy({ tab: e, tabIndex: t = 0, expandedCardId: n, setExpandedCardId: s }
|
|
|
11431
11431
|
);
|
|
11432
11432
|
}
|
|
11433
11433
|
function wu({ item: e, onClose: t }) {
|
|
11434
|
-
const [n, s] = O(0), [i, r] = O(0), [o, l] = O(!1), [c, u] = O(""), [d, h] = O(!1), [f, m] = O(""), [p, b] = O(!1), [x, y] = O(!1), [N, k] = O(), [P, j] = O(0.3), [E, S] = O(null), [v, I] = O(null), F =
|
|
11434
|
+
const [n, s] = O(0), [i, r] = O(0), [o, l] = O(!1), [c, u] = O(""), [d, h] = O(!1), [f, m] = O(""), [p, b] = O(!1), [x, y] = O(!1), [N, k] = O(), [P, j] = O(0.3), [E, S] = O(null), [v, I] = O(null), F = ve(null), [B, q] = O(!1), [D, te] = O(!1), Y = we().pagination?.simulation ?? 6, Z = Y < e?.items.length, R = Math.max(0, e?.items.length - Y), C = e?.items[n]?.cards ?? [];
|
|
11435
11435
|
ie(() => {
|
|
11436
|
-
const
|
|
11436
|
+
const W = document.body.style.overflow, he = document.documentElement.style.overflow;
|
|
11437
11437
|
return document.body.style.overflow = "hidden", document.documentElement.style.overflow = "hidden", () => {
|
|
11438
|
-
document.body.style.overflow =
|
|
11438
|
+
document.body.style.overflow = W, document.documentElement.style.overflow = he;
|
|
11439
11439
|
};
|
|
11440
11440
|
}, []);
|
|
11441
|
-
const
|
|
11442
|
-
i > 0 && r((
|
|
11443
|
-
}, _ = () => {
|
|
11444
|
-
i < Q && r((z) => Math.min(Q, z + H));
|
|
11441
|
+
const _ = () => {
|
|
11442
|
+
i > 0 && r((W) => Math.max(0, W - Y));
|
|
11445
11443
|
}, M = () => {
|
|
11446
|
-
|
|
11447
|
-
}, T = (
|
|
11448
|
-
|
|
11444
|
+
i < R && r((W) => Math.min(R, W + Y));
|
|
11445
|
+
}, T = () => {
|
|
11446
|
+
j((W) => W === 0 ? 0.3 : W === 0.3 ? 0.6 : W === 0.6 ? 0.9 : 0);
|
|
11447
|
+
}, A = (W) => !!W?.trim(), ee = (W) => W?.endsWith(".webm") || W?.endsWith(".mp4"), re = (W) => {
|
|
11448
|
+
A(W) && (m(W.trim()), h(!0));
|
|
11449
11449
|
}, ne = () => {
|
|
11450
|
-
const
|
|
11451
|
-
if (!
|
|
11452
|
-
const { scrollLeft:
|
|
11453
|
-
|
|
11454
|
-
},
|
|
11455
|
-
const
|
|
11456
|
-
if (!
|
|
11457
|
-
const
|
|
11458
|
-
|
|
11459
|
-
left:
|
|
11450
|
+
const W = F.current;
|
|
11451
|
+
if (!W) return;
|
|
11452
|
+
const { scrollLeft: he, scrollWidth: Te, clientWidth: Ne } = W;
|
|
11453
|
+
q(he > 0), te(he < Te - Ne - 10);
|
|
11454
|
+
}, ae = (W) => {
|
|
11455
|
+
const he = F.current;
|
|
11456
|
+
if (!he) return;
|
|
11457
|
+
const Te = 300;
|
|
11458
|
+
he.scrollBy({
|
|
11459
|
+
left: W === "left" ? -Te : Te,
|
|
11460
11460
|
behavior: "smooth"
|
|
11461
11461
|
});
|
|
11462
|
-
},
|
|
11462
|
+
}, oe = e?.items[n]?.tab || [];
|
|
11463
11463
|
ie(() => {
|
|
11464
11464
|
ne();
|
|
11465
|
-
const
|
|
11466
|
-
if (
|
|
11467
|
-
return
|
|
11468
|
-
|
|
11465
|
+
const W = F.current;
|
|
11466
|
+
if (W)
|
|
11467
|
+
return W.addEventListener("scroll", ne), window.addEventListener("resize", ne), () => {
|
|
11468
|
+
W.removeEventListener("scroll", ne), window.removeEventListener("resize", ne);
|
|
11469
11469
|
};
|
|
11470
|
-
}, [
|
|
11470
|
+
}, [oe]), ie(() => {
|
|
11471
11471
|
j(0.3);
|
|
11472
|
-
const
|
|
11472
|
+
const W = globalThis.setTimeout(() => {
|
|
11473
11473
|
j(0.9);
|
|
11474
11474
|
}, 1e4);
|
|
11475
|
-
return () => globalThis.clearTimeout(
|
|
11475
|
+
return () => globalThis.clearTimeout(W);
|
|
11476
11476
|
}, [n]);
|
|
11477
|
-
const
|
|
11478
|
-
if (!(
|
|
11479
|
-
return
|
|
11480
|
-
},
|
|
11477
|
+
const ge = (W) => W ? Ni[W] || dt : dt, ce = (W) => {
|
|
11478
|
+
if (!(W < 0 || W >= oe.length))
|
|
11479
|
+
return oe[W];
|
|
11480
|
+
}, Se = E != null;
|
|
11481
11481
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
11482
11482
|
/* @__PURE__ */ a.jsxs(
|
|
11483
11483
|
w.div,
|
|
@@ -11518,8 +11518,8 @@ function wu({ item: e, onClose: t }) {
|
|
|
11518
11518
|
B && /* @__PURE__ */ a.jsx(
|
|
11519
11519
|
w.button,
|
|
11520
11520
|
{
|
|
11521
|
-
onClick: (
|
|
11522
|
-
|
|
11521
|
+
onClick: (W) => {
|
|
11522
|
+
W.stopPropagation(), ae("left");
|
|
11523
11523
|
},
|
|
11524
11524
|
className: "absolute left-4 top-1/2 -translate-y-1/2 z-20 w-10 h-10 bg-slate-900/80 hover:bg-slate-900/95 backdrop-blur-sm border border-cyan-400/30 hover:border-cyan-400/60 rounded-full flex items-center justify-center text-cyan-400 hover:text-cyan-300 transition-all shadow-lg",
|
|
11525
11525
|
initial: { opacity: 0, scale: 0.8 },
|
|
@@ -11540,21 +11540,21 @@ function wu({ item: e, onClose: t }) {
|
|
|
11540
11540
|
transition: { delay: 0.3, duration: 0.7, ease: [0.22, 1, 0.36, 1] },
|
|
11541
11541
|
children: [
|
|
11542
11542
|
/* @__PURE__ */ a.jsx("div", { className: "w-11 h-11 shrink-0", "aria-hidden": "true" }),
|
|
11543
|
-
|
|
11544
|
-
const
|
|
11543
|
+
oe.map((W, he) => {
|
|
11544
|
+
const Te = ge(W.icon), Ne = E === he;
|
|
11545
11545
|
return /* @__PURE__ */ a.jsxs(
|
|
11546
11546
|
w.button,
|
|
11547
11547
|
{
|
|
11548
11548
|
onClick: () => {
|
|
11549
|
-
S(
|
|
11549
|
+
S(he), I(null);
|
|
11550
11550
|
},
|
|
11551
|
-
className: `relative px-6 py-3 rounded-full font-medium text-sm transition-all duration-300 flex items-center gap-2 shrink-0 ${
|
|
11551
|
+
className: `relative px-6 py-3 rounded-full font-medium text-sm transition-all duration-300 flex items-center gap-2 shrink-0 ${Ne ? "bg-gradient-to-r from-cyan-500 to-blue-600 text-white border border-cyan-400" : "bg-slate-800/60 text-cyan-400 border border-slate-600/50 hover:text-white hover:border-cyan-400/60"}`,
|
|
11552
11552
|
whileHover: { scale: 1.05 },
|
|
11553
11553
|
whileTap: { scale: 0.95 },
|
|
11554
11554
|
children: [
|
|
11555
|
-
/* @__PURE__ */ a.jsx(
|
|
11556
|
-
|
|
11557
|
-
|
|
11555
|
+
/* @__PURE__ */ a.jsx(Te, { className: "w-4 h-4" }),
|
|
11556
|
+
W.name,
|
|
11557
|
+
Ne && /* @__PURE__ */ a.jsx(
|
|
11558
11558
|
w.div,
|
|
11559
11559
|
{
|
|
11560
11560
|
layoutId: "activeTab",
|
|
@@ -11564,7 +11564,7 @@ function wu({ item: e, onClose: t }) {
|
|
|
11564
11564
|
)
|
|
11565
11565
|
]
|
|
11566
11566
|
},
|
|
11567
|
-
`${
|
|
11567
|
+
`${W.name}-${he}`
|
|
11568
11568
|
);
|
|
11569
11569
|
}),
|
|
11570
11570
|
/* @__PURE__ */ a.jsx("div", { className: "w-11 h-11 shrink-0 flex items-center justify-center", children: /* @__PURE__ */ a.jsx(
|
|
@@ -11576,16 +11576,16 @@ function wu({ item: e, onClose: t }) {
|
|
|
11576
11576
|
className: "relative p-3 rounded-full bg-slate-800/60 hover:bg-slate-700/80 text-cyan-300 hover:text-cyan-200 border border-slate-600/50 hover:border-cyan-400/60 transition-all duration-300 shadow-lg hover:shadow-cyan-500/30 disabled:pointer-events-none",
|
|
11577
11577
|
initial: !1,
|
|
11578
11578
|
animate: {
|
|
11579
|
-
opacity:
|
|
11580
|
-
scale:
|
|
11581
|
-
x:
|
|
11579
|
+
opacity: Se ? 1 : 0,
|
|
11580
|
+
scale: Se ? 1 : 0.75,
|
|
11581
|
+
x: Se ? 0 : -6
|
|
11582
11582
|
},
|
|
11583
11583
|
transition: { type: "spring", stiffness: 300, damping: 25 },
|
|
11584
|
-
whileHover:
|
|
11585
|
-
whileTap:
|
|
11586
|
-
disabled: !
|
|
11587
|
-
"aria-hidden": !
|
|
11588
|
-
tabIndex:
|
|
11584
|
+
whileHover: Se ? { scale: 1.1, rotate: 90 } : {},
|
|
11585
|
+
whileTap: Se ? { scale: 0.9 } : {},
|
|
11586
|
+
disabled: !Se,
|
|
11587
|
+
"aria-hidden": !Se,
|
|
11588
|
+
tabIndex: Se ? 0 : -1,
|
|
11589
11589
|
children: /* @__PURE__ */ a.jsx(ht, { className: "w-5 h-5" })
|
|
11590
11590
|
}
|
|
11591
11591
|
) })
|
|
@@ -11595,8 +11595,8 @@ function wu({ item: e, onClose: t }) {
|
|
|
11595
11595
|
D && /* @__PURE__ */ a.jsx(
|
|
11596
11596
|
w.button,
|
|
11597
11597
|
{
|
|
11598
|
-
onClick: (
|
|
11599
|
-
|
|
11598
|
+
onClick: (W) => {
|
|
11599
|
+
W.stopPropagation(), ae("right");
|
|
11600
11600
|
},
|
|
11601
11601
|
className: "absolute right-4 top-1/2 -translate-y-1/2 z-20 w-10 h-10 bg-slate-900/80 hover:bg-slate-900/95 backdrop-blur-sm border border-cyan-400/30 hover:border-cyan-400/60 rounded-full flex items-center justify-center text-cyan-400 hover:text-cyan-300 transition-all shadow-lg",
|
|
11602
11602
|
initial: { opacity: 0, scale: 0.8 },
|
|
@@ -11652,7 +11652,7 @@ function wu({ item: e, onClose: t }) {
|
|
|
11652
11652
|
},
|
|
11653
11653
|
e.items[n].title
|
|
11654
11654
|
),
|
|
11655
|
-
/* @__PURE__ */ a.jsx(
|
|
11655
|
+
/* @__PURE__ */ a.jsx(Ce, { mode: "popLayout", initial: !1, children: E === null && /* @__PURE__ */ a.jsx(
|
|
11656
11656
|
w.p,
|
|
11657
11657
|
{
|
|
11658
11658
|
layout: "position",
|
|
@@ -11687,7 +11687,7 @@ function wu({ item: e, onClose: t }) {
|
|
|
11687
11687
|
layout: { type: "spring", stiffness: 210, damping: 28 }
|
|
11688
11688
|
},
|
|
11689
11689
|
children: [
|
|
11690
|
-
|
|
11690
|
+
A(e.items[n]?.playMedia?.url) && /* @__PURE__ */ a.jsx(
|
|
11691
11691
|
w.button,
|
|
11692
11692
|
{
|
|
11693
11693
|
onClick: () => {
|
|
@@ -11704,11 +11704,11 @@ function wu({ item: e, onClose: t }) {
|
|
|
11704
11704
|
"play-icon"
|
|
11705
11705
|
),
|
|
11706
11706
|
(e.items[n]?.links?.length ?? 0) > 0 && e.items[n]?.links?.map(
|
|
11707
|
-
(
|
|
11708
|
-
|
|
11707
|
+
(W) => /* @__PURE__ */ a.jsx(gi, { item: W, onClick: () => {
|
|
11708
|
+
ee(W.url) ? (u(W.url.trim()), l(!0)) : re(W.url);
|
|
11709
11709
|
} })
|
|
11710
11710
|
),
|
|
11711
|
-
(
|
|
11711
|
+
(C?.length ?? 0) > 0 && /* @__PURE__ */ a.jsx(
|
|
11712
11712
|
w.button,
|
|
11713
11713
|
{
|
|
11714
11714
|
onClick: () => b(!0),
|
|
@@ -11722,21 +11722,21 @@ function wu({ item: e, onClose: t }) {
|
|
|
11722
11722
|
},
|
|
11723
11723
|
"cards-icon"
|
|
11724
11724
|
),
|
|
11725
|
-
(e.items[n]?.ppts?.length ?? 0) > 0 && e.items[n].ppts.map((
|
|
11726
|
-
const
|
|
11727
|
-
icon:
|
|
11728
|
-
text:
|
|
11725
|
+
(e.items[n]?.ppts?.length ?? 0) > 0 && e.items[n].ppts.map((W, he) => {
|
|
11726
|
+
const Te = W.image.map((Ze) => Ze.url), Ne = {
|
|
11727
|
+
icon: W.icon ?? "Presentation",
|
|
11728
|
+
text: W.name,
|
|
11729
11729
|
transparent: !1,
|
|
11730
11730
|
url: ""
|
|
11731
11731
|
};
|
|
11732
|
-
return /* @__PURE__ */ a.jsx(gi, { item:
|
|
11733
|
-
k(
|
|
11734
|
-
} }, `ppt-${
|
|
11732
|
+
return /* @__PURE__ */ a.jsx(gi, { item: Ne, onClick: () => {
|
|
11733
|
+
k(Te), y(!0);
|
|
11734
|
+
} }, `ppt-${W.name}-${he}`);
|
|
11735
11735
|
}),
|
|
11736
11736
|
/* @__PURE__ */ a.jsxs(
|
|
11737
11737
|
w.button,
|
|
11738
11738
|
{
|
|
11739
|
-
onClick:
|
|
11739
|
+
onClick: T,
|
|
11740
11740
|
className: "inline-flex items-center gap-2 px-6 py-3 bg-slate-800/80 hover:bg-slate-700/80 text-slate-400 font-medium text-sm rounded-full transition-all duration-300 shadow-lg hover:shadow-slate-500/25 border border-slate-400/30 hover:border-slate-400/60",
|
|
11741
11741
|
whileHover: { scale: 1.05 },
|
|
11742
11742
|
whileTap: { scale: 0.95 },
|
|
@@ -11764,7 +11764,7 @@ function wu({ item: e, onClose: t }) {
|
|
|
11764
11764
|
]
|
|
11765
11765
|
}
|
|
11766
11766
|
),
|
|
11767
|
-
/* @__PURE__ */ a.jsx(
|
|
11767
|
+
/* @__PURE__ */ a.jsx(Ce, { mode: "popLayout", initial: !1, children: E !== null && typeof E == "number" && /* @__PURE__ */ a.jsx(
|
|
11768
11768
|
w.div,
|
|
11769
11769
|
{
|
|
11770
11770
|
layout: "position",
|
|
@@ -11781,7 +11781,7 @@ function wu({ item: e, onClose: t }) {
|
|
|
11781
11781
|
children: /* @__PURE__ */ a.jsx(
|
|
11782
11782
|
dy,
|
|
11783
11783
|
{
|
|
11784
|
-
tab:
|
|
11784
|
+
tab: ce(E),
|
|
11785
11785
|
tabIndex: E,
|
|
11786
11786
|
expandedCardId: v,
|
|
11787
11787
|
setExpandedCardId: I
|
|
@@ -11821,11 +11821,11 @@ function wu({ item: e, onClose: t }) {
|
|
|
11821
11821
|
animate: { y: 0, opacity: 1 },
|
|
11822
11822
|
exit: { y: 200, opacity: 0 },
|
|
11823
11823
|
transition: { delay: 0.5, duration: 0.6, ease: [0.34, 1.56, 0.64, 1] },
|
|
11824
|
-
children: /* @__PURE__ */ a.jsx("div", { className: "max-w-7xl
|
|
11825
|
-
/* @__PURE__ */ a.jsx(
|
|
11824
|
+
children: /* @__PURE__ */ a.jsx("div", { className: `mx-auto px-6 ${Z ? "max-w-7xl" : ""}`, children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-center justify-center gap-6", children: [
|
|
11825
|
+
Z && /* @__PURE__ */ a.jsx(
|
|
11826
11826
|
w.button,
|
|
11827
11827
|
{
|
|
11828
|
-
onClick:
|
|
11828
|
+
onClick: _,
|
|
11829
11829
|
disabled: i === 0,
|
|
11830
11830
|
className: "p-3 bg-slate-800/80 hover:bg-slate-700/80 text-cyan-300 rounded-full transition-all duration-300 border-2 border-cyan-400/30 hover:border-cyan-400/60 shadow-lg hover:shadow-cyan-500/50 disabled:opacity-30 disabled:cursor-not-allowed",
|
|
11831
11831
|
whileHover: { scale: 1.1, x: -3 },
|
|
@@ -11836,12 +11836,12 @@ function wu({ item: e, onClose: t }) {
|
|
|
11836
11836
|
children: /* @__PURE__ */ a.jsx(hn, { className: "w-6 h-6" })
|
|
11837
11837
|
}
|
|
11838
11838
|
),
|
|
11839
|
-
/* @__PURE__ */ a.jsx("div", { className:
|
|
11839
|
+
/* @__PURE__ */ a.jsx("div", { className: `flex-1 overflow-hidden ${Z ? "max-w-7xl" : ""}`, children: /* @__PURE__ */ a.jsx(
|
|
11840
11840
|
w.div,
|
|
11841
11841
|
{
|
|
11842
|
-
className:
|
|
11842
|
+
className: `flex gap-4 ${Z ? "" : "justify-center"}`,
|
|
11843
11843
|
animate: {
|
|
11844
|
-
x: `calc(-${i * (100 /
|
|
11844
|
+
x: `calc(-${i * (100 / Y)}% - ${i / Y * 16}px)`
|
|
11845
11845
|
},
|
|
11846
11846
|
transition: {
|
|
11847
11847
|
type: "spring",
|
|
@@ -11849,33 +11849,33 @@ function wu({ item: e, onClose: t }) {
|
|
|
11849
11849
|
damping: 30,
|
|
11850
11850
|
mass: 0.8
|
|
11851
11851
|
},
|
|
11852
|
-
children: e.items.map((
|
|
11853
|
-
const
|
|
11852
|
+
children: e.items.map((W, he) => {
|
|
11853
|
+
const Te = n === he, Ne = 100 / Y;
|
|
11854
11854
|
return /* @__PURE__ */ a.jsxs(
|
|
11855
11855
|
w.div,
|
|
11856
11856
|
{
|
|
11857
11857
|
onClick: () => {
|
|
11858
|
-
s(
|
|
11858
|
+
s(he), S(null), I(null), b(!1), j(0.3);
|
|
11859
11859
|
},
|
|
11860
|
-
className: `relative flex-shrink-0 h-32 cursor-pointer rounded-xl overflow-hidden transition-all duration-300 ${
|
|
11861
|
-
style: { width:
|
|
11860
|
+
className: `relative flex-shrink-0 h-32 cursor-pointer rounded-xl overflow-hidden transition-all duration-300 ${Te ? "shadow-2xl shadow-cyan-500/50" : "shadow-lg hover:shadow-cyan-400/30"}`,
|
|
11861
|
+
style: { width: `calc(${Ne}% - 13.33px)` },
|
|
11862
11862
|
whileHover: { scale: 1.05, y: -5 },
|
|
11863
11863
|
whileTap: { scale: 0.98 },
|
|
11864
11864
|
initial: { opacity: 0, scale: 0.9 },
|
|
11865
11865
|
animate: { opacity: 1, scale: 1 },
|
|
11866
|
-
transition: { delay: 0.6 +
|
|
11866
|
+
transition: { delay: 0.6 + he * 0.03, duration: 0.3 },
|
|
11867
11867
|
children: [
|
|
11868
11868
|
/* @__PURE__ */ a.jsx(
|
|
11869
11869
|
"img",
|
|
11870
11870
|
{
|
|
11871
|
-
src:
|
|
11872
|
-
alt:
|
|
11871
|
+
src: W?.thumbMedia?.url || "/placeholder.svg",
|
|
11872
|
+
alt: W.title,
|
|
11873
11873
|
className: "w-full h-full object-cover"
|
|
11874
11874
|
}
|
|
11875
11875
|
),
|
|
11876
11876
|
/* @__PURE__ */ a.jsx("div", { className: "absolute inset-0 bg-gradient-to-t from-black/90 via-black/30 via-30% to-transparent" }),
|
|
11877
|
-
/* @__PURE__ */ a.jsx("div", { className: "absolute bottom-0 left-0 right-0 p-3", children: /* @__PURE__ */ a.jsx("h3", { className: "text-white font-semibold text-sm text-center drop-shadow-lg", children:
|
|
11878
|
-
|
|
11877
|
+
/* @__PURE__ */ a.jsx("div", { className: "absolute bottom-0 left-0 right-0 p-3", children: /* @__PURE__ */ a.jsx("h3", { className: "text-white font-semibold text-sm text-center drop-shadow-lg", children: W.title }) }),
|
|
11878
|
+
Te && /* @__PURE__ */ a.jsx(
|
|
11879
11879
|
w.div,
|
|
11880
11880
|
{
|
|
11881
11881
|
className: "absolute top-2 right-2 w-8 h-8 bg-cyan-400 rounded-full flex items-center justify-center shadow-lg",
|
|
@@ -11885,7 +11885,7 @@ function wu({ item: e, onClose: t }) {
|
|
|
11885
11885
|
children: /* @__PURE__ */ a.jsx(Sa, { className: "w-5 h-5 text-slate-900 stroke-[3]" })
|
|
11886
11886
|
}
|
|
11887
11887
|
),
|
|
11888
|
-
|
|
11888
|
+
Te && /* @__PURE__ */ a.jsx(
|
|
11889
11889
|
w.div,
|
|
11890
11890
|
{
|
|
11891
11891
|
className: "absolute inset-0 border-4 border-cyan-400 rounded-xl pointer-events-none",
|
|
@@ -11902,16 +11902,16 @@ function wu({ item: e, onClose: t }) {
|
|
|
11902
11902
|
)
|
|
11903
11903
|
]
|
|
11904
11904
|
},
|
|
11905
|
-
|
|
11905
|
+
W.title
|
|
11906
11906
|
);
|
|
11907
11907
|
})
|
|
11908
11908
|
}
|
|
11909
11909
|
) }),
|
|
11910
|
-
/* @__PURE__ */ a.jsx(
|
|
11910
|
+
Z && /* @__PURE__ */ a.jsx(
|
|
11911
11911
|
w.button,
|
|
11912
11912
|
{
|
|
11913
|
-
onClick:
|
|
11914
|
-
disabled: i >=
|
|
11913
|
+
onClick: M,
|
|
11914
|
+
disabled: i >= R,
|
|
11915
11915
|
className: "p-3 bg-slate-800/80 hover:bg-slate-700/80 text-cyan-300 rounded-full transition-all duration-300 border-2 border-cyan-400/30 hover:border-cyan-400/60 shadow-lg hover:shadow-cyan-500/50 disabled:opacity-30 disabled:cursor-not-allowed",
|
|
11916
11916
|
whileHover: { scale: 1.1, x: 3 },
|
|
11917
11917
|
whileTap: { scale: 0.9 },
|
|
@@ -11931,7 +11931,7 @@ function wu({ item: e, onClose: t }) {
|
|
|
11931
11931
|
d && /* @__PURE__ */ a.jsx(Yt, { src: f, onClose: () => {
|
|
11932
11932
|
h(!1), m("");
|
|
11933
11933
|
} }),
|
|
11934
|
-
p && (
|
|
11934
|
+
p && (C?.length ?? 0) > 0 && /* @__PURE__ */ a.jsx(zc, { cards: C, onClose: () => b(!1) }),
|
|
11935
11935
|
x && /* @__PURE__ */ a.jsx(oy, { images: N, onClose: () => y(!1) })
|
|
11936
11936
|
] });
|
|
11937
11937
|
}
|
|
@@ -11943,7 +11943,7 @@ function hy({
|
|
|
11943
11943
|
const s = () => {
|
|
11944
11944
|
t(!1);
|
|
11945
11945
|
};
|
|
11946
|
-
return /* @__PURE__ */ a.jsx(
|
|
11946
|
+
return /* @__PURE__ */ a.jsx(Ce, { children: e && /* @__PURE__ */ a.jsx(Yt, { onClose: s, src: n }) });
|
|
11947
11947
|
}
|
|
11948
11948
|
function fy({ isOpen: e, onClose: t, type: n, itemName: s }) {
|
|
11949
11949
|
if (!e) return null;
|
|
@@ -12396,22 +12396,22 @@ const my = `
|
|
|
12396
12396
|
function py({ hotspot: e }) {
|
|
12397
12397
|
const [t, n] = O(null), [, s] = O([]), [i, r] = O(null), [o, l] = O(null), [, c] = O(
|
|
12398
12398
|
/* @__PURE__ */ new Set()
|
|
12399
|
-
), u =
|
|
12399
|
+
), u = we().remoteUrl, d = we().hotspots.dataEs, h = we().hotspots.dataEn, [f, m] = O(!1), [p] = O("inner"), [b] = O(""), { i18n: x } = Xt();
|
|
12400
12400
|
ie(() => {
|
|
12401
12401
|
let L;
|
|
12402
12402
|
if (x.language === "en" ? L = h ?? { globalTags: [], innerRingNodes: [], outerRingNodes: [], products: [], relationships: {} } : L = d ?? { globalTags: [], innerRingNodes: [], outerRingNodes: [], products: [], relationships: {} }, n(L), L.outerRingNodes) {
|
|
12403
|
-
const
|
|
12404
|
-
id:
|
|
12405
|
-
title:
|
|
12403
|
+
const H = L.outerRingNodes.map((z) => ({
|
|
12404
|
+
id: z.id,
|
|
12405
|
+
title: z.label,
|
|
12406
12406
|
description: "",
|
|
12407
|
-
icon:
|
|
12407
|
+
icon: z.icon
|
|
12408
12408
|
})).sort(
|
|
12409
|
-
(
|
|
12409
|
+
(z, V) => z.title.localeCompare(V.title)
|
|
12410
12410
|
);
|
|
12411
|
-
s(
|
|
12411
|
+
s(H);
|
|
12412
12412
|
}
|
|
12413
12413
|
}, []), ie(() => A(e), [e]);
|
|
12414
|
-
const [y, N] = O([]), [k, P] = O(0), [j, E] = O(!1), [S, v] = O(""), [I, F] = O(0), [B,
|
|
12414
|
+
const [y, N] = O([]), [k, P] = O(0), [j, E] = O(!1), [S, v] = O(""), [I, F] = O(0), [B, q] = O(0), [D, te] = O(0), Y = ve(null), Z = ve(null), R = {
|
|
12415
12415
|
1: "fragata",
|
|
12416
12416
|
2: "submarino",
|
|
12417
12417
|
3: "buque-accion-maritima",
|
|
@@ -12426,52 +12426,52 @@ function py({ hotspot: e }) {
|
|
|
12426
12426
|
12: "lcm"
|
|
12427
12427
|
}, C = (L) => {
|
|
12428
12428
|
if (!t) return [];
|
|
12429
|
-
const
|
|
12430
|
-
if (
|
|
12431
|
-
const
|
|
12432
|
-
(
|
|
12429
|
+
const H = t.expandableNodes?.find((J) => J.parentId === L);
|
|
12430
|
+
if (H) return H.childNodes;
|
|
12431
|
+
const z = t.relationships.outerRing_to_expandableNodes?.find(
|
|
12432
|
+
(J) => J.outerRingId === L
|
|
12433
12433
|
);
|
|
12434
|
-
if (
|
|
12434
|
+
if (z)
|
|
12435
12435
|
return t.expandableNodes?.flatMap(
|
|
12436
|
-
(
|
|
12437
|
-
($) =>
|
|
12436
|
+
(J) => J.childNodes.filter(
|
|
12437
|
+
($) => z.expandableNodeIds.includes($.id)
|
|
12438
12438
|
)
|
|
12439
12439
|
) || [];
|
|
12440
12440
|
const V = t.relationships.innerRing_to_expandableNodes?.find(
|
|
12441
|
-
(
|
|
12441
|
+
(J) => J.innerRingId === L
|
|
12442
12442
|
);
|
|
12443
12443
|
return V ? t.expandableNodes?.flatMap(
|
|
12444
|
-
(
|
|
12444
|
+
(J) => J.childNodes.filter(
|
|
12445
12445
|
($) => V.expandableNodeIds.includes($.id)
|
|
12446
12446
|
)
|
|
12447
12447
|
) || [] : [];
|
|
12448
12448
|
};
|
|
12449
12449
|
ie(() => {
|
|
12450
|
-
|
|
12450
|
+
Y.current && Z.current && (q(Y.current.clientWidth), te(Z.current.scrollWidth));
|
|
12451
12451
|
}, [t?.globalTags, y]);
|
|
12452
12452
|
const _ = () => {
|
|
12453
12453
|
F((L) => Math.max(L - 200, 0));
|
|
12454
12454
|
}, M = () => {
|
|
12455
12455
|
const L = Math.max(0, D - B + 140);
|
|
12456
|
-
F((
|
|
12456
|
+
F((H) => Math.min(H + 300, L));
|
|
12457
12457
|
}, T = (L) => {
|
|
12458
|
-
const
|
|
12459
|
-
|
|
12460
|
-
const
|
|
12461
|
-
let
|
|
12458
|
+
const H = C(L);
|
|
12459
|
+
H.length > 0 && N((z) => z.map((V) => {
|
|
12460
|
+
const J = L === 39 || L === 40 || me(L, V.productId), $ = V.activeElement;
|
|
12461
|
+
let Q = !1;
|
|
12462
12462
|
if ($.type === "outer") {
|
|
12463
12463
|
const ue = $.id;
|
|
12464
|
-
|
|
12464
|
+
Q = t?.relationships.outerRing_to_expandableNodes?.find(
|
|
12465
12465
|
(se) => se.outerRingId === ue
|
|
12466
12466
|
)?.expandableNodeIds.includes(L) || !1;
|
|
12467
12467
|
}
|
|
12468
12468
|
if ($.type === "inner") {
|
|
12469
12469
|
const ue = $.id;
|
|
12470
|
-
|
|
12470
|
+
Q = t?.relationships.innerRing_to_expandableNodes?.find(
|
|
12471
12471
|
(se) => se.innerRingId === ue
|
|
12472
12472
|
)?.expandableNodeIds.includes(L) || !1;
|
|
12473
12473
|
}
|
|
12474
|
-
return
|
|
12474
|
+
return J || Q ? V.expandedNodes && V.expandedNodes.length > 0 && V.expandedNodes?.some((se) => se.parentId === L) ? {
|
|
12475
12475
|
...V,
|
|
12476
12476
|
showThirdRing: !1,
|
|
12477
12477
|
expandedNodes: []
|
|
@@ -12482,7 +12482,7 @@ function py({ hotspot: e }) {
|
|
|
12482
12482
|
expandedNodes: [
|
|
12483
12483
|
{
|
|
12484
12484
|
parentId: L,
|
|
12485
|
-
childNodes:
|
|
12485
|
+
childNodes: H
|
|
12486
12486
|
}
|
|
12487
12487
|
]
|
|
12488
12488
|
// Mantener el elemento activo actual, no cambiarlo
|
|
@@ -12500,28 +12500,28 @@ function py({ hotspot: e }) {
|
|
|
12500
12500
|
), E(!0);
|
|
12501
12501
|
return;
|
|
12502
12502
|
}
|
|
12503
|
-
const
|
|
12504
|
-
if (!
|
|
12505
|
-
const
|
|
12506
|
-
r(null), l(null), c(/* @__PURE__ */ new Set()), m(!1),
|
|
12507
|
-
(V) => V.map((
|
|
12508
|
-
...
|
|
12509
|
-
activeElement: { type: "product", id:
|
|
12503
|
+
const H = R[L];
|
|
12504
|
+
if (!H) return;
|
|
12505
|
+
const z = y.some((V) => V.hotspotId === L);
|
|
12506
|
+
r(null), l(null), c(/* @__PURE__ */ new Set()), m(!1), Ze({ x: 0, y: 0 }), z ? N(
|
|
12507
|
+
(V) => V.map((J) => J.hotspotId === L ? {
|
|
12508
|
+
...J,
|
|
12509
|
+
activeElement: { type: "product", id: H },
|
|
12510
12510
|
showCentralNode: !0,
|
|
12511
12511
|
showInnerRing: !0,
|
|
12512
12512
|
showOuterRing: !0,
|
|
12513
12513
|
showThirdRing: !1,
|
|
12514
12514
|
expandedNodes: []
|
|
12515
12515
|
// Cerrar cualquier nodo expandido
|
|
12516
|
-
} :
|
|
12516
|
+
} : J)
|
|
12517
12517
|
) : (N([]), setTimeout(() => {
|
|
12518
12518
|
N([
|
|
12519
12519
|
{
|
|
12520
12520
|
hotspotId: L,
|
|
12521
|
-
productId:
|
|
12521
|
+
productId: H,
|
|
12522
12522
|
centralPosition: { x: 50, y: 50 },
|
|
12523
12523
|
// Siempre en el centro de la pantalla
|
|
12524
|
-
activeElement: { type: "product", id:
|
|
12524
|
+
activeElement: { type: "product", id: H },
|
|
12525
12525
|
showCentralNode: !0,
|
|
12526
12526
|
showInnerRing: !0,
|
|
12527
12527
|
showOuterRing: !1,
|
|
@@ -12540,191 +12540,191 @@ function py({ hotspot: e }) {
|
|
|
12540
12540
|
}
|
|
12541
12541
|
]), setTimeout(() => {
|
|
12542
12542
|
N(
|
|
12543
|
-
(
|
|
12543
|
+
(J) => J.map(
|
|
12544
12544
|
($) => $.hotspotId === L ? { ...$, showOuterRing: !0 } : $
|
|
12545
12545
|
)
|
|
12546
12546
|
);
|
|
12547
12547
|
}, 300);
|
|
12548
12548
|
}, 100));
|
|
12549
|
-
}, ee = (L,
|
|
12549
|
+
}, ee = (L, H) => {
|
|
12550
12550
|
r(null), l(null), c(/* @__PURE__ */ new Set()), N(
|
|
12551
|
-
(
|
|
12551
|
+
(z) => z.map((V) => {
|
|
12552
12552
|
if (V.hotspotId === L) {
|
|
12553
|
-
const
|
|
12553
|
+
const J = H.type !== "third" && H.type !== "outer";
|
|
12554
12554
|
return {
|
|
12555
12555
|
...V,
|
|
12556
|
-
activeElement:
|
|
12557
|
-
showCentralNode:
|
|
12556
|
+
activeElement: H,
|
|
12557
|
+
showCentralNode: H.type === "product",
|
|
12558
12558
|
// Solo cerrar el tercer anillo si no estamos activando un nodo expandible
|
|
12559
|
-
showThirdRing:
|
|
12559
|
+
showThirdRing: J ? !1 : V.showThirdRing,
|
|
12560
12560
|
// Solo limpiar los nodos expandidos si no estamos activando un nodo expandible
|
|
12561
|
-
expandedNodes:
|
|
12561
|
+
expandedNodes: J ? [] : V.expandedNodes
|
|
12562
12562
|
};
|
|
12563
12563
|
}
|
|
12564
12564
|
return V;
|
|
12565
12565
|
})
|
|
12566
|
-
), P(
|
|
12567
|
-
},
|
|
12568
|
-
const
|
|
12566
|
+
), P(H.id);
|
|
12567
|
+
}, re = (L) => {
|
|
12568
|
+
const H = /* @__PURE__ */ new Set(), z = /* @__PURE__ */ new Set(), V = /* @__PURE__ */ new Set(), J = /* @__PURE__ */ new Set();
|
|
12569
12569
|
if (!t)
|
|
12570
|
-
return { relatedProducts:
|
|
12570
|
+
return { relatedProducts: H, relatedInner: z, relatedOuter: V, relatedExpandable: J };
|
|
12571
12571
|
const { activeElement: $ } = L;
|
|
12572
12572
|
if ($.type === "product") {
|
|
12573
|
-
const
|
|
12574
|
-
|
|
12575
|
-
|
|
12576
|
-
}),
|
|
12573
|
+
const Q = t.products.find((ue) => ue.id === $.id);
|
|
12574
|
+
Q && (Q.innerRingIds.forEach((ue) => z.add(ue)), Q.outerRingIds.forEach((ue) => V.add(ue)), Q.expandableNodeIds && Q.expandableNodeIds.forEach((ue) => {
|
|
12575
|
+
J.add(ue);
|
|
12576
|
+
}), H.add(Q.id));
|
|
12577
12577
|
} else if ($.type === "inner") {
|
|
12578
|
-
|
|
12579
|
-
const
|
|
12578
|
+
z.add($.id);
|
|
12579
|
+
const Q = t.relationships.innerRing_to_innerRing?.find(
|
|
12580
12580
|
(se) => se.innerRingId === $.id
|
|
12581
12581
|
);
|
|
12582
|
-
|
|
12582
|
+
Q && Q.innerRingIds.forEach((se) => z.add(se));
|
|
12583
12583
|
const ue = t.relationships.innerRing_to_outerRing?.find(
|
|
12584
12584
|
(se) => se.innerRingId === $.id
|
|
12585
12585
|
);
|
|
12586
12586
|
ue && ue.outerRingIds.forEach((se) => V.add(se));
|
|
12587
|
-
const
|
|
12587
|
+
const je = t.relationships.innerRing_to_expandableNodes?.find(
|
|
12588
12588
|
(se) => se.innerRingId === $.id
|
|
12589
12589
|
);
|
|
12590
|
-
|
|
12591
|
-
|
|
12590
|
+
je && je.expandableNodeIds && je.expandableNodeIds.forEach((se) => {
|
|
12591
|
+
J.add(se);
|
|
12592
12592
|
});
|
|
12593
12593
|
} else if ($.type === "outer") {
|
|
12594
12594
|
V.add($.id);
|
|
12595
|
-
const
|
|
12595
|
+
const Q = t.relationships.outerRing_to_outerRing?.find(
|
|
12596
12596
|
(se) => se.outerRingId === $.id
|
|
12597
12597
|
);
|
|
12598
|
-
|
|
12598
|
+
Q && Q.outerRingIds.forEach((se) => V.add(se));
|
|
12599
12599
|
const ue = t.relationships.outerRing_to_innerRing?.find(
|
|
12600
12600
|
(se) => se.outerRingId === $.id
|
|
12601
12601
|
);
|
|
12602
|
-
ue && ue.innerRingIds.forEach((se) =>
|
|
12603
|
-
const
|
|
12602
|
+
ue && ue.innerRingIds.forEach((se) => z.add(se));
|
|
12603
|
+
const je = t.relationships.outerRing_to_expandableNodes?.find(
|
|
12604
12604
|
(se) => se.outerRingId === $.id
|
|
12605
12605
|
);
|
|
12606
|
-
|
|
12607
|
-
|
|
12606
|
+
je && je.expandableNodeIds && je.expandableNodeIds.forEach((se) => {
|
|
12607
|
+
J.add(se);
|
|
12608
12608
|
});
|
|
12609
12609
|
} else if ($.type === "third") {
|
|
12610
|
-
|
|
12611
|
-
const
|
|
12610
|
+
J.add($.id);
|
|
12611
|
+
const Q = t.relationships.expandableNode_to_innerRing?.find(
|
|
12612
12612
|
(se) => se.expandableNodeId === $.id
|
|
12613
12613
|
);
|
|
12614
|
-
|
|
12614
|
+
Q && Q.innerRingIds.forEach((se) => z.add(se));
|
|
12615
12615
|
const ue = t.relationships.expandableNode_to_outerRing?.find(
|
|
12616
12616
|
(se) => se.expandableNodeId === $.id
|
|
12617
12617
|
);
|
|
12618
12618
|
ue && ue.outerRingIds.forEach((se) => V.add(se));
|
|
12619
|
-
const
|
|
12619
|
+
const je = t.relationships.expandableNode_to_expandableNodes?.find(
|
|
12620
12620
|
(se) => se.expandableNodeId === $.id
|
|
12621
12621
|
);
|
|
12622
|
-
|
|
12623
|
-
(se) =>
|
|
12622
|
+
je && je.expandableNodeIds.forEach(
|
|
12623
|
+
(se) => J.add(se)
|
|
12624
12624
|
);
|
|
12625
12625
|
}
|
|
12626
|
-
return { relatedProducts:
|
|
12627
|
-
},
|
|
12628
|
-
|
|
12629
|
-
const
|
|
12630
|
-
v(
|
|
12631
|
-
},
|
|
12632
|
-
|
|
12633
|
-
const
|
|
12634
|
-
return
|
|
12626
|
+
return { relatedProducts: H, relatedInner: z, relatedOuter: V, relatedExpandable: J };
|
|
12627
|
+
}, ne = (L, H) => {
|
|
12628
|
+
H.stopPropagation();
|
|
12629
|
+
const z = L.startsWith("http://") || L.startsWith("https://") ? L : `${u}${L.startsWith("/") ? "" : "/"}${L}`;
|
|
12630
|
+
v(z), E(!0);
|
|
12631
|
+
}, ae = ve(!1), oe = ve(0), ge = (L) => {
|
|
12632
|
+
U((H) => {
|
|
12633
|
+
const z = H * L;
|
|
12634
|
+
return z < 0.6 || z > 1.3 ? H : z;
|
|
12635
12635
|
});
|
|
12636
|
-
},
|
|
12636
|
+
}, ce = (L) => {
|
|
12637
12637
|
if (y.length === 0)
|
|
12638
12638
|
return;
|
|
12639
|
-
const
|
|
12639
|
+
const H = document.querySelector(
|
|
12640
12640
|
"[class^='absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 z-50']"
|
|
12641
|
-
),
|
|
12642
|
-
if (
|
|
12641
|
+
), z = document.querySelector(".navigation-controls");
|
|
12642
|
+
if (H && H.contains(L.target) || z && z.contains(L.target) || ae.current)
|
|
12643
12643
|
return;
|
|
12644
|
-
|
|
12644
|
+
ae.current = !0;
|
|
12645
12645
|
const V = L.deltaY < 0 ? 1.15 : 0.85;
|
|
12646
|
-
ge(V),
|
|
12647
|
-
|
|
12646
|
+
ge(V), oe.current = window.setTimeout(() => {
|
|
12647
|
+
ae.current = !1;
|
|
12648
12648
|
}, 100);
|
|
12649
12649
|
};
|
|
12650
12650
|
ie(() => () => {
|
|
12651
|
-
|
|
12651
|
+
oe.current && clearTimeout(oe.current);
|
|
12652
12652
|
}, []);
|
|
12653
|
-
const [
|
|
12653
|
+
const [Se, W] = O(!1), [he, Te] = O({ x: 0, y: 0 }), [Ne, Ze] = O({ x: 0, y: 0 }), en = (L) => {
|
|
12654
12654
|
if (y.length === 0)
|
|
12655
12655
|
return;
|
|
12656
|
-
const
|
|
12657
|
-
|
|
12656
|
+
const H = L.target;
|
|
12657
|
+
H.closest(
|
|
12658
12658
|
"[class^='absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 z-50']"
|
|
12659
|
-
) ||
|
|
12659
|
+
) || H.closest(".navigation-controls") || H.closest("button") || H.closest(".side-panel") || H.closest(".hotspot-layer") || H.closest("img[alt*='Hotspot']") || (W(!0), Te({ x: L.clientX, y: L.clientY }));
|
|
12660
12660
|
}, In = (L) => {
|
|
12661
|
-
if (!
|
|
12662
|
-
const
|
|
12663
|
-
Math.max(V,
|
|
12661
|
+
if (!Se || y.length === 0) return;
|
|
12662
|
+
const H = L.clientX - he.x, z = L.clientY - he.y, V = Ne.x + H, J = Ne.y + z, $ = window.innerWidth, Q = window.innerHeight, ue = $ / 2, je = -$ / 2, se = Q / 2, jn = -Q / 2, bs = Math.min(
|
|
12663
|
+
Math.max(V, je),
|
|
12664
12664
|
ue
|
|
12665
12665
|
), ys = Math.min(
|
|
12666
|
-
Math.max(
|
|
12666
|
+
Math.max(J, jn),
|
|
12667
12667
|
se
|
|
12668
12668
|
);
|
|
12669
|
-
|
|
12669
|
+
Ze({
|
|
12670
12670
|
x: bs,
|
|
12671
12671
|
y: ys
|
|
12672
|
-
}),
|
|
12672
|
+
}), Te({ x: L.clientX, y: L.clientY });
|
|
12673
12673
|
}, tn = () => {
|
|
12674
|
-
y.length > 0 &&
|
|
12674
|
+
y.length > 0 && W(!1);
|
|
12675
12675
|
};
|
|
12676
|
-
function xt(L,
|
|
12676
|
+
function xt(L, H) {
|
|
12677
12677
|
if (!t) return !1;
|
|
12678
|
-
const
|
|
12679
|
-
if (!
|
|
12680
|
-
if (
|
|
12681
|
-
const
|
|
12682
|
-
(
|
|
12678
|
+
const z = y[0]?.activeElement;
|
|
12679
|
+
if (!z) return !1;
|
|
12680
|
+
if (z.type === "inner") {
|
|
12681
|
+
const J = z.id, $ = t.relationships.innerRing_to_expandableNodes?.find(
|
|
12682
|
+
(Q) => Q.innerRingId === J
|
|
12683
12683
|
);
|
|
12684
12684
|
if ($ && $.expandableNodeIds.includes(L))
|
|
12685
12685
|
return !0;
|
|
12686
12686
|
}
|
|
12687
|
-
if (
|
|
12688
|
-
const
|
|
12689
|
-
(
|
|
12687
|
+
if (z.type === "outer") {
|
|
12688
|
+
const J = z.id, $ = t.relationships.outerRing_to_expandableNodes?.find(
|
|
12689
|
+
(Q) => Q.outerRingId === J
|
|
12690
12690
|
);
|
|
12691
12691
|
if ($ && $.expandableNodeIds.includes(L))
|
|
12692
12692
|
return !0;
|
|
12693
12693
|
}
|
|
12694
|
-
if (
|
|
12695
|
-
const
|
|
12696
|
-
($) => $.id ===
|
|
12694
|
+
if (z.type === "product") {
|
|
12695
|
+
const J = t.products.find(
|
|
12696
|
+
($) => $.id === z.id
|
|
12697
12697
|
);
|
|
12698
|
-
if (!
|
|
12699
|
-
if (
|
|
12698
|
+
if (!J) return !1;
|
|
12699
|
+
if (J.expandableNodeIds?.includes(L))
|
|
12700
12700
|
return !0;
|
|
12701
12701
|
}
|
|
12702
12702
|
return !!t.relationships.outerRing_to_products?.find(
|
|
12703
|
-
(
|
|
12703
|
+
(J) => J.outerRingId === L && J.productIds.includes(H)
|
|
12704
12704
|
);
|
|
12705
12705
|
}
|
|
12706
|
-
const [gs,
|
|
12707
|
-
const
|
|
12708
|
-
return { x: $, y:
|
|
12706
|
+
const [gs, U] = O(window.innerWidth < 700 ? 0.6 : 0.85), me = (L, H) => t?.products.find((V) => V.id === H)?.expandableNodeIds?.includes(L) || !1, Ie = (L, H, z, V = 0) => {
|
|
12707
|
+
const J = 2 * Math.PI * L / H + V, $ = z * Math.cos(J), Q = z * Math.sin(J);
|
|
12708
|
+
return { x: $, y: Q };
|
|
12709
12709
|
}, $e = (L) => {
|
|
12710
|
-
const
|
|
12711
|
-
if (!
|
|
12712
|
-
const
|
|
12710
|
+
const H = L.touches[0];
|
|
12711
|
+
if (!H) return;
|
|
12712
|
+
const z = {
|
|
12713
12713
|
...L,
|
|
12714
|
-
clientX:
|
|
12715
|
-
clientY:
|
|
12714
|
+
clientX: H.clientX,
|
|
12715
|
+
clientY: H.clientY
|
|
12716
12716
|
};
|
|
12717
|
-
en(
|
|
12718
|
-
},
|
|
12719
|
-
const
|
|
12720
|
-
if (!
|
|
12717
|
+
en(z);
|
|
12718
|
+
}, De = (L) => {
|
|
12719
|
+
const H = L.touches[0];
|
|
12720
|
+
if (!H) return;
|
|
12721
12721
|
L.preventDefault();
|
|
12722
|
-
const
|
|
12722
|
+
const z = {
|
|
12723
12723
|
...L,
|
|
12724
|
-
clientX:
|
|
12725
|
-
clientY:
|
|
12724
|
+
clientX: H.clientX,
|
|
12725
|
+
clientY: H.clientY
|
|
12726
12726
|
};
|
|
12727
|
-
In(
|
|
12727
|
+
In(z);
|
|
12728
12728
|
}, vt = () => {
|
|
12729
12729
|
tn();
|
|
12730
12730
|
};
|
|
@@ -12771,17 +12771,17 @@ function py({ hotspot: e }) {
|
|
|
12771
12771
|
"div",
|
|
12772
12772
|
{
|
|
12773
12773
|
className: "relative w-full h-full overflow-hidden",
|
|
12774
|
-
onWheel:
|
|
12774
|
+
onWheel: ce,
|
|
12775
12775
|
onMouseDown: en,
|
|
12776
12776
|
onMouseMove: In,
|
|
12777
12777
|
onMouseUp: tn,
|
|
12778
12778
|
onTouchStart: $e,
|
|
12779
|
-
onTouchMove:
|
|
12779
|
+
onTouchMove: De,
|
|
12780
12780
|
onTouchEnd: vt,
|
|
12781
12781
|
style: {
|
|
12782
12782
|
paddingRight: "0",
|
|
12783
12783
|
transition: "padding 0.3s ease-in-out",
|
|
12784
|
-
cursor: y.length > 0 ?
|
|
12784
|
+
cursor: y.length > 0 ? Se ? "grabbing" : "grab" : "default"
|
|
12785
12785
|
},
|
|
12786
12786
|
children: [
|
|
12787
12787
|
/* @__PURE__ */ a.jsx("div", { className: "absolute inset-0", children: /* @__PURE__ */ a.jsx(
|
|
@@ -12801,16 +12801,16 @@ function py({ hotspot: e }) {
|
|
|
12801
12801
|
{
|
|
12802
12802
|
className: "absolute inset-0 node-view-layer",
|
|
12803
12803
|
style: {
|
|
12804
|
-
transform: `translate(${
|
|
12804
|
+
transform: `translate(${Ne.x}px, ${Ne.y}px) scale(${gs})`,
|
|
12805
12805
|
transformOrigin: "center center",
|
|
12806
12806
|
transition: "transform 0.3s ease",
|
|
12807
12807
|
pointerEvents: "auto"
|
|
12808
12808
|
},
|
|
12809
12809
|
children: y.map((L) => {
|
|
12810
|
-
const
|
|
12810
|
+
const H = t?.products.find(
|
|
12811
12811
|
(V) => V.id === L.productId
|
|
12812
|
-
),
|
|
12813
|
-
return
|
|
12812
|
+
), z = re(L);
|
|
12813
|
+
return H && L.centralPosition ? /* @__PURE__ */ a.jsxs(
|
|
12814
12814
|
"div",
|
|
12815
12815
|
{
|
|
12816
12816
|
className: "absolute z-20",
|
|
@@ -12847,12 +12847,12 @@ function py({ hotspot: e }) {
|
|
|
12847
12847
|
}
|
|
12848
12848
|
}
|
|
12849
12849
|
),
|
|
12850
|
-
(t?.innerRingNodes || []).map((V,
|
|
12851
|
-
const $ =
|
|
12852
|
-
|
|
12850
|
+
(t?.innerRingNodes || []).map((V, J) => {
|
|
12851
|
+
const $ = Ie(
|
|
12852
|
+
J,
|
|
12853
12853
|
t?.innerRingNodes.length || 0,
|
|
12854
12854
|
300
|
|
12855
|
-
),
|
|
12855
|
+
), Q = i === V.id;
|
|
12856
12856
|
return /* @__PURE__ */ a.jsx(
|
|
12857
12857
|
"div",
|
|
12858
12858
|
{
|
|
@@ -12865,7 +12865,7 @@ function py({ hotspot: e }) {
|
|
|
12865
12865
|
{
|
|
12866
12866
|
style: {
|
|
12867
12867
|
animation: "fadeIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards",
|
|
12868
|
-
animationDelay: `${
|
|
12868
|
+
animationDelay: `${J * 100}ms`,
|
|
12869
12869
|
opacity: 0
|
|
12870
12870
|
},
|
|
12871
12871
|
children: /* @__PURE__ */ a.jsxs("div", { className: "relative", children: [
|
|
@@ -12876,14 +12876,14 @@ function py({ hotspot: e }) {
|
|
|
12876
12876
|
type: "inner",
|
|
12877
12877
|
id: V.id
|
|
12878
12878
|
}),
|
|
12879
|
-
className: `absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 ${V.id === k ? "!bg-cyan-500 !border-blue-900" : ""} rounded-full flex items-center justify-center transition-all duration-300 w-14 h-14 ${
|
|
12879
|
+
className: `absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 ${V.id === k ? "!bg-cyan-500 !border-blue-900" : ""} rounded-full flex items-center justify-center transition-all duration-300 w-14 h-14 ${z.relatedInner.has(
|
|
12880
12880
|
V.id
|
|
12881
|
-
) ||
|
|
12882
|
-
style:
|
|
12881
|
+
) || Q ? Q ? "bg-[#1037b9] hover:bg-[#1037b9]" : "bg-[#214fc580] hover:bg-[#214fc580]" : "bg-blue-900/20 hover:bg-blue-800/40 opacity-40"} cursor-pointer hover:scale-110 text-blue-100`,
|
|
12882
|
+
style: z.relatedInner.has(
|
|
12883
12883
|
V.id
|
|
12884
|
-
) ||
|
|
12884
|
+
) || Q ? {
|
|
12885
12885
|
animation: "pulseGlowCombo 1.5s infinite",
|
|
12886
|
-
border:
|
|
12886
|
+
border: Q ? "3px solid #1037b9" : "3px solid #1D4ED8"
|
|
12887
12887
|
} : {},
|
|
12888
12888
|
children: /* @__PURE__ */ a.jsx("img", { src: V.icon, alt: V.label, className: "w-8 h-8" })
|
|
12889
12889
|
}
|
|
@@ -12891,9 +12891,9 @@ function py({ hotspot: e }) {
|
|
|
12891
12891
|
/* @__PURE__ */ a.jsx(
|
|
12892
12892
|
"div",
|
|
12893
12893
|
{
|
|
12894
|
-
className: `absolute text-xs ${
|
|
12894
|
+
className: `absolute text-xs ${z.relatedInner.has(
|
|
12895
12895
|
V.id
|
|
12896
|
-
) ||
|
|
12896
|
+
) || Q ? "text-blue-100" : "text-blue-100/40"} font-medium text-center`,
|
|
12897
12897
|
style: {
|
|
12898
12898
|
top: "30px",
|
|
12899
12899
|
left: "50%",
|
|
@@ -12904,7 +12904,7 @@ function py({ hotspot: e }) {
|
|
|
12904
12904
|
children: V.label
|
|
12905
12905
|
}
|
|
12906
12906
|
),
|
|
12907
|
-
(
|
|
12907
|
+
(z.relatedInner.has(V.id) || Q) && V.url && /* @__PURE__ */ a.jsx(
|
|
12908
12908
|
"div",
|
|
12909
12909
|
{
|
|
12910
12910
|
className: "absolute rounded-full flex items-center justify-center w-8 h-8 bg-[#000d3a] text-blue-500 cursor-pointer hover:scale-110 transition-all duration-300",
|
|
@@ -12915,7 +12915,7 @@ function py({ hotspot: e }) {
|
|
|
12915
12915
|
border: "1px solid rgba(0,220,255,0.8)",
|
|
12916
12916
|
animation: "fadeIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards"
|
|
12917
12917
|
},
|
|
12918
|
-
onClick: (ue) =>
|
|
12918
|
+
onClick: (ue) => ne(V.url, ue),
|
|
12919
12919
|
children: /* @__PURE__ */ a.jsx(xs, { className: "w-4 h-4" })
|
|
12920
12920
|
}
|
|
12921
12921
|
)
|
|
@@ -12954,13 +12954,13 @@ function py({ hotspot: e }) {
|
|
|
12954
12954
|
}
|
|
12955
12955
|
}
|
|
12956
12956
|
),
|
|
12957
|
-
(t?.outerRingNodes || []).map((V,
|
|
12958
|
-
const $ =
|
|
12959
|
-
|
|
12957
|
+
(t?.outerRingNodes || []).map((V, J) => {
|
|
12958
|
+
const $ = Ie(
|
|
12959
|
+
J,
|
|
12960
12960
|
t?.outerRingNodes.length ?? 0,
|
|
12961
12961
|
400,
|
|
12962
12962
|
Math.PI / (t?.outerRingNodes.length ?? 1)
|
|
12963
|
-
),
|
|
12963
|
+
), Q = o === V.id;
|
|
12964
12964
|
return /* @__PURE__ */ a.jsx(
|
|
12965
12965
|
"div",
|
|
12966
12966
|
{
|
|
@@ -12973,7 +12973,7 @@ function py({ hotspot: e }) {
|
|
|
12973
12973
|
{
|
|
12974
12974
|
style: {
|
|
12975
12975
|
animation: "fadeIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards",
|
|
12976
|
-
animationDelay: `${
|
|
12976
|
+
animationDelay: `${J * 60 + 400}ms`,
|
|
12977
12977
|
opacity: 0
|
|
12978
12978
|
},
|
|
12979
12979
|
children: /* @__PURE__ */ a.jsxs("div", { className: "relative", children: [
|
|
@@ -12986,20 +12986,20 @@ function py({ hotspot: e }) {
|
|
|
12986
12986
|
id: V.id
|
|
12987
12987
|
});
|
|
12988
12988
|
},
|
|
12989
|
-
className: `absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 ${V.id === k ? "!bg-cyan-500 !border-blue-900" : ""} rounded-full flex items-center justify-center transition-all duration-300 w-12 h-12 ${
|
|
12989
|
+
className: `absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 ${V.id === k ? "!bg-cyan-500 !border-blue-900" : ""} rounded-full flex items-center justify-center transition-all duration-300 w-12 h-12 ${z.relatedOuter.has(
|
|
12990
12990
|
V.id
|
|
12991
|
-
) ||
|
|
12991
|
+
) || Q || L.activeElement.id === V.id ? Q ? "bg-[#1037b9] hover:bg-[#1037b9]" : "bg-[#214fc580] hover:bg-[#214fc580]" : "bg-blue-900/20 opacity-40"} ${z.relatedOuter.has(
|
|
12992
12992
|
V.id
|
|
12993
|
-
) ||
|
|
12993
|
+
) || Q || L.activeElement.id === V.id ? Q ? "bg-[#1037b9] hover:bg-[#1037b9]" : "bg-[#214fc580] hover:bg-[#214fc580]" : "bg-blue-900/20 opacity-40"} ${z.relatedOuter.has(
|
|
12994
12994
|
V.id
|
|
12995
|
-
) ||
|
|
12996
|
-
style:
|
|
12995
|
+
) || Q || L.activeElement.id === V.id ? Q ? "bg-[#1037b9] hover:bg-[#1037b9]" : "hover:bg-[#214fc580]" : "hover:bg-blue-800/40"} cursor-pointer hover:scale-110 text-blue-100`,
|
|
12996
|
+
style: z.relatedOuter.has(
|
|
12997
12997
|
V.id
|
|
12998
|
-
) || V.id === 39 &&
|
|
12998
|
+
) || V.id === 39 && z.relatedExpandable?.has(
|
|
12999
12999
|
39
|
|
13000
|
-
) ||
|
|
13000
|
+
) || Q || L.activeElement.id === V.id ? {
|
|
13001
13001
|
animation: "pulseGlowCombo 1.5s infinite",
|
|
13002
|
-
border:
|
|
13002
|
+
border: Q ? "3px solid #1037b9" : "3px solid #1D4ED8"
|
|
13003
13003
|
} : {},
|
|
13004
13004
|
children: [
|
|
13005
13005
|
(V.id === 39 || V.id === 40 && C(V.id).length > 0 || me(
|
|
@@ -13022,9 +13022,9 @@ function py({ hotspot: e }) {
|
|
|
13022
13022
|
/* @__PURE__ */ a.jsx(
|
|
13023
13023
|
"div",
|
|
13024
13024
|
{
|
|
13025
|
-
className: `absolute text-xs ${
|
|
13025
|
+
className: `absolute text-xs ${z.relatedOuter.has(
|
|
13026
13026
|
V.id
|
|
13027
|
-
) ||
|
|
13027
|
+
) || Q ? "text-blue-100" : "text-blue-100/40"} font-medium text-center`,
|
|
13028
13028
|
style: {
|
|
13029
13029
|
top: "30px",
|
|
13030
13030
|
left: "50%",
|
|
@@ -13035,7 +13035,7 @@ function py({ hotspot: e }) {
|
|
|
13035
13035
|
children: V.label
|
|
13036
13036
|
}
|
|
13037
13037
|
),
|
|
13038
|
-
(
|
|
13038
|
+
(z.relatedOuter.has(V.id) || Q) && V.url && /* @__PURE__ */ a.jsx(
|
|
13039
13039
|
"div",
|
|
13040
13040
|
{
|
|
13041
13041
|
className: "absolute rounded-full flex items-center justify-center w-8 h-8 bg-[#000d3a] text-blue-500 cursor-pointer hover:scale-110 transition-all duration-300",
|
|
@@ -13046,7 +13046,7 @@ function py({ hotspot: e }) {
|
|
|
13046
13046
|
border: "1px solid rgba(0,220,255,0.8)",
|
|
13047
13047
|
animation: "fadeIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards"
|
|
13048
13048
|
},
|
|
13049
|
-
onClick: (ue) =>
|
|
13049
|
+
onClick: (ue) => ne(V.url, ue),
|
|
13050
13050
|
children: /* @__PURE__ */ a.jsx(xs, { className: "w-4 h-4" })
|
|
13051
13051
|
}
|
|
13052
13052
|
)
|
|
@@ -13086,8 +13086,8 @@ function py({ hotspot: e }) {
|
|
|
13086
13086
|
}
|
|
13087
13087
|
),
|
|
13088
13088
|
L.expandedNodes.map((V) => V.childNodes.map(
|
|
13089
|
-
($,
|
|
13090
|
-
const ue = V.childNodes.length,
|
|
13089
|
+
($, Q) => {
|
|
13090
|
+
const ue = V.childNodes.length, je = Math.PI * 0.6, se = 0 - je / 2 + je * Q / (ue - 1 || 1), jn = 600, bs = jn * Math.cos(se), ys = jn * Math.sin(se);
|
|
13091
13091
|
return /* @__PURE__ */ a.jsx(
|
|
13092
13092
|
"div",
|
|
13093
13093
|
{
|
|
@@ -13100,7 +13100,7 @@ function py({ hotspot: e }) {
|
|
|
13100
13100
|
{
|
|
13101
13101
|
style: {
|
|
13102
13102
|
animation: "fadeIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards",
|
|
13103
|
-
animationDelay: `${
|
|
13103
|
+
animationDelay: `${Q * 50 + 600}ms`,
|
|
13104
13104
|
opacity: 0
|
|
13105
13105
|
},
|
|
13106
13106
|
children: /* @__PURE__ */ a.jsxs("div", { className: "relative", children: [
|
|
@@ -13119,13 +13119,13 @@ function py({ hotspot: e }) {
|
|
|
13119
13119
|
className: `absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 ${$.id === k ? "!bg-cyan-500 !border-blue-900" : ""} rounded-full flex items-center justify-center transition-all duration-300 w-12 h-12 ${xt(
|
|
13120
13120
|
$.id,
|
|
13121
13121
|
""
|
|
13122
|
-
) ||
|
|
13122
|
+
) || z.relatedExpandable.has(
|
|
13123
13123
|
$.id
|
|
13124
13124
|
) ? "bg-[#214fc580] hover:bg-[#214fc580]" : "bg-blue-900/20 opacity-40 hover:bg-blue-800/40"} cursor-pointer hover:scale-110 text-blue-100`,
|
|
13125
13125
|
style: xt(
|
|
13126
13126
|
$.id,
|
|
13127
13127
|
""
|
|
13128
|
-
) ||
|
|
13128
|
+
) || z.relatedExpandable.has(
|
|
13129
13129
|
$.id
|
|
13130
13130
|
) ? {
|
|
13131
13131
|
boxShadow: "0 0 15px rgba(0, 180, 255, 0.8)",
|
|
@@ -13141,7 +13141,7 @@ function py({ hotspot: e }) {
|
|
|
13141
13141
|
className: `absolute text-xs ${xt(
|
|
13142
13142
|
$.id,
|
|
13143
13143
|
""
|
|
13144
|
-
) ||
|
|
13144
|
+
) || z.relatedExpandable.has(
|
|
13145
13145
|
$.id
|
|
13146
13146
|
) ? "text-blue-100" : "text-blue-100/40"} font-medium text-center`,
|
|
13147
13147
|
style: {
|
|
@@ -13157,7 +13157,7 @@ function py({ hotspot: e }) {
|
|
|
13157
13157
|
$.url && (xt(
|
|
13158
13158
|
$.id,
|
|
13159
13159
|
""
|
|
13160
|
-
) ||
|
|
13160
|
+
) || z.relatedExpandable.has(
|
|
13161
13161
|
$.id
|
|
13162
13162
|
)) && /* @__PURE__ */ a.jsx(
|
|
13163
13163
|
"div",
|
|
@@ -13170,7 +13170,7 @@ function py({ hotspot: e }) {
|
|
|
13170
13170
|
border: "1px solid rgba(0,220,255,0.8)",
|
|
13171
13171
|
animation: "fadeIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards"
|
|
13172
13172
|
},
|
|
13173
|
-
onClick: (Ru) =>
|
|
13173
|
+
onClick: (Ru) => ne(
|
|
13174
13174
|
$.url || "",
|
|
13175
13175
|
Ru
|
|
13176
13176
|
),
|
|
@@ -13208,7 +13208,7 @@ function py({ hotspot: e }) {
|
|
|
13208
13208
|
"div",
|
|
13209
13209
|
{
|
|
13210
13210
|
className: "relative flex items-center w-full max-w-6xl px-12",
|
|
13211
|
-
ref:
|
|
13211
|
+
ref: Y,
|
|
13212
13212
|
style: { paddingRight: "24px" },
|
|
13213
13213
|
children: [
|
|
13214
13214
|
I > 0 && /* @__PURE__ */ a.jsx(
|
|
@@ -13255,13 +13255,13 @@ function py({ hotspot: e }) {
|
|
|
13255
13255
|
children: /* @__PURE__ */ a.jsx(
|
|
13256
13256
|
"div",
|
|
13257
13257
|
{
|
|
13258
|
-
ref:
|
|
13258
|
+
ref: Z,
|
|
13259
13259
|
className: "flex gap-4 transition-transform duration-300 py-3 justify-start w-full",
|
|
13260
13260
|
style: {
|
|
13261
13261
|
transform: `translateX(-${I}px)`,
|
|
13262
13262
|
paddingRight: "50px"
|
|
13263
13263
|
},
|
|
13264
|
-
children: t?.globalTags && t.globalTags.map((L,
|
|
13264
|
+
children: t?.globalTags && t.globalTags.map((L, H) => /* @__PURE__ */ a.jsx(
|
|
13265
13265
|
"span",
|
|
13266
13266
|
{
|
|
13267
13267
|
className: "whitespace-nowrap text-blue-100 rounded-full px-6 py-2 text-sm font-medium border border-blue-400/50 transition-all flex-shrink-0 opacity-70",
|
|
@@ -13273,7 +13273,7 @@ function py({ hotspot: e }) {
|
|
|
13273
13273
|
},
|
|
13274
13274
|
children: L.label
|
|
13275
13275
|
},
|
|
13276
|
-
|
|
13276
|
+
H
|
|
13277
13277
|
))
|
|
13278
13278
|
}
|
|
13279
13279
|
)
|
|
@@ -13624,7 +13624,7 @@ function yy({ isOpen: e, onClose: t, size: n, hotspot: s }) {
|
|
|
13624
13624
|
return window.addEventListener("keydown", i), () => {
|
|
13625
13625
|
window.removeEventListener("keydown", i);
|
|
13626
13626
|
};
|
|
13627
|
-
}, [t]), /* @__PURE__ */ a.jsx(
|
|
13627
|
+
}, [t]), /* @__PURE__ */ a.jsx(Ce, { children: e && /* @__PURE__ */ a.jsxs("div", { className: "overlay-root", onClick: t, children: [
|
|
13628
13628
|
/* @__PURE__ */ a.jsx(gy, { size: n }),
|
|
13629
13629
|
/* @__PURE__ */ a.jsx(by, { onClose: t, hotspot: s }),
|
|
13630
13630
|
/* @__PURE__ */ a.jsx("style", { children: `
|
|
@@ -13655,7 +13655,7 @@ const xa = "app-font-size", xy = "100", Vy = () => {
|
|
|
13655
13655
|
return e;
|
|
13656
13656
|
};
|
|
13657
13657
|
function Nu() {
|
|
13658
|
-
const [e, t] = O("physical"), [n, s] = O(!1), [i, r] = O(!1), [o, l] = O("Navantia Global"), [c, u] = O("high"), [d, h] = O("es"), [f, m] = O(!0), p =
|
|
13658
|
+
const [e, t] = O("physical"), [n, s] = O(!1), [i, r] = O(!1), [o, l] = O("Navantia Global"), [c, u] = O("high"), [d, h] = O("es"), [f, m] = O(!0), p = we().controlPanelLevels, b = ["physical", "hybrid", "digital"], x = ["high", "medium", "low"], { t: y, i18n: N } = Xt(), k = nt(), P = wn(), { sendMessage: j } = Cn(), E = we().wsRoom, { isAutoMode: S, toggleAutoMode: v } = Su();
|
|
13659
13659
|
ie(() => {
|
|
13660
13660
|
N.changeLanguage(d);
|
|
13661
13661
|
}, [d]), ie(() => {
|
|
@@ -13675,7 +13675,7 @@ function Nu() {
|
|
|
13675
13675
|
h((C) => C === "es" ? "en" : "es");
|
|
13676
13676
|
}, B = () => {
|
|
13677
13677
|
v();
|
|
13678
|
-
},
|
|
13678
|
+
}, q = () => {
|
|
13679
13679
|
switch (e) {
|
|
13680
13680
|
case "physical":
|
|
13681
13681
|
return cd;
|
|
@@ -13712,7 +13712,7 @@ function Nu() {
|
|
|
13712
13712
|
default:
|
|
13713
13713
|
return dt;
|
|
13714
13714
|
}
|
|
13715
|
-
},
|
|
13715
|
+
}, Y = () => {
|
|
13716
13716
|
switch (e) {
|
|
13717
13717
|
case "physical":
|
|
13718
13718
|
return {
|
|
@@ -13755,7 +13755,7 @@ function Nu() {
|
|
|
13755
13755
|
badgeBorder: "border-cyan-400/30"
|
|
13756
13756
|
};
|
|
13757
13757
|
}
|
|
13758
|
-
},
|
|
13758
|
+
}, Z = q(), R = Y();
|
|
13759
13759
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
13760
13760
|
/* @__PURE__ */ a.jsxs(
|
|
13761
13761
|
w.div,
|
|
@@ -13770,7 +13770,7 @@ function Nu() {
|
|
|
13770
13770
|
},
|
|
13771
13771
|
transition: { delay: f ? 0 : 0.3, duration: 0.6, ease: [0.34, 1.56, 0.64, 1] },
|
|
13772
13772
|
children: [
|
|
13773
|
-
/* @__PURE__ */ a.jsx(
|
|
13773
|
+
/* @__PURE__ */ a.jsx(Ce, { children: i && /* @__PURE__ */ a.jsx(
|
|
13774
13774
|
w.div,
|
|
13775
13775
|
{
|
|
13776
13776
|
className: "absolute bottom-full left-0 mb-3 w-80",
|
|
@@ -14035,7 +14035,7 @@ function Nu() {
|
|
|
14035
14035
|
] })
|
|
14036
14036
|
}
|
|
14037
14037
|
) }),
|
|
14038
|
-
/* @__PURE__ */ a.jsx(
|
|
14038
|
+
/* @__PURE__ */ a.jsx(Ce, { children: n && /* @__PURE__ */ a.jsx(
|
|
14039
14039
|
w.div,
|
|
14040
14040
|
{
|
|
14041
14041
|
className: "absolute bottom-full left-0 mb-3 w-80",
|
|
@@ -14288,7 +14288,7 @@ function Nu() {
|
|
|
14288
14288
|
}
|
|
14289
14289
|
},
|
|
14290
14290
|
children: [
|
|
14291
|
-
/* @__PURE__ */ a.jsx(
|
|
14291
|
+
/* @__PURE__ */ a.jsx(Ce, { mode: "wait", children: /* @__PURE__ */ a.jsx(
|
|
14292
14292
|
w.div,
|
|
14293
14293
|
{
|
|
14294
14294
|
initial: {
|
|
@@ -14347,7 +14347,7 @@ function Nu() {
|
|
|
14347
14347
|
scale: { duration: 2, repeat: Number.POSITIVE_INFINITY, ease: "easeInOut" }
|
|
14348
14348
|
},
|
|
14349
14349
|
children: [
|
|
14350
|
-
/* @__PURE__ */ a.jsx(
|
|
14350
|
+
/* @__PURE__ */ a.jsx(Ce, { mode: "wait", children: /* @__PURE__ */ a.jsx(
|
|
14351
14351
|
w.div,
|
|
14352
14352
|
{
|
|
14353
14353
|
initial: {
|
|
@@ -14373,7 +14373,7 @@ function Nu() {
|
|
|
14373
14373
|
ease: [0.34, 1.56, 0.64, 1],
|
|
14374
14374
|
scale: { type: "spring", stiffness: 300, damping: 20 }
|
|
14375
14375
|
},
|
|
14376
|
-
children: /* @__PURE__ */ a.jsx(
|
|
14376
|
+
children: /* @__PURE__ */ a.jsx(Z, { className: "w-5 h-5" })
|
|
14377
14377
|
},
|
|
14378
14378
|
e
|
|
14379
14379
|
) }),
|
|
@@ -14406,7 +14406,7 @@ function Nu() {
|
|
|
14406
14406
|
scale: { duration: 2, repeat: Number.POSITIVE_INFINITY, ease: "easeInOut" }
|
|
14407
14407
|
},
|
|
14408
14408
|
children: [
|
|
14409
|
-
/* @__PURE__ */ a.jsx(
|
|
14409
|
+
/* @__PURE__ */ a.jsx(Ce, { mode: "wait", children: /* @__PURE__ */ a.jsx(
|
|
14410
14410
|
w.div,
|
|
14411
14411
|
{
|
|
14412
14412
|
initial: {
|
|
@@ -14465,7 +14465,7 @@ function Nu() {
|
|
|
14465
14465
|
scale: { duration: 2, repeat: Number.POSITIVE_INFINITY, ease: "easeInOut" }
|
|
14466
14466
|
},
|
|
14467
14467
|
children: [
|
|
14468
|
-
/* @__PURE__ */ a.jsx(
|
|
14468
|
+
/* @__PURE__ */ a.jsx(Ce, { mode: "wait", children: /* @__PURE__ */ a.jsx(
|
|
14469
14469
|
w.div,
|
|
14470
14470
|
{
|
|
14471
14471
|
initial: {
|
|
@@ -14540,7 +14540,7 @@ function Nu() {
|
|
|
14540
14540
|
]
|
|
14541
14541
|
}
|
|
14542
14542
|
),
|
|
14543
|
-
/* @__PURE__ */ a.jsx(
|
|
14543
|
+
/* @__PURE__ */ a.jsx(Ce, { children: f && /* @__PURE__ */ a.jsx(
|
|
14544
14544
|
w.button,
|
|
14545
14545
|
{
|
|
14546
14546
|
onClick: () => m(!1),
|
|
@@ -14654,7 +14654,7 @@ function Eu({ children: e }) {
|
|
|
14654
14654
|
] });
|
|
14655
14655
|
}
|
|
14656
14656
|
const Cu = () => {
|
|
14657
|
-
const { isAutoMode: e } = Su(), { pathname: t } = wn(), n =
|
|
14657
|
+
const { isAutoMode: e } = Su(), { pathname: t } = wn(), n = nt(), s = ve(null), i = we()?.showcasesUrl ?? [], r = we().showcasesWait ?? 12e4, o = () => {
|
|
14658
14658
|
const d = (i.indexOf(t) + 1) % i.length;
|
|
14659
14659
|
n(i[d]);
|
|
14660
14660
|
}, l = () => {
|
|
@@ -14686,7 +14686,7 @@ function _y({ showControlPanel: e = !0 }) {
|
|
|
14686
14686
|
] });
|
|
14687
14687
|
}
|
|
14688
14688
|
function Pu({ items: e, parent: t, selectedShip: n, onShipSelect: s }) {
|
|
14689
|
-
const [i, r] = O(0), [o, l] = O(!1), [c, u] = O(6), [d, h] = O(!0), [f, m] = O(0), [p, b] = O("slide"), [x, y] = O(160), { t: N } = Xt(), { lastEvent: k, internalEvent: P, setInternalEvent: j } = Jt(), E =
|
|
14689
|
+
const [i, r] = O(0), [o, l] = O(!1), [c, u] = O(6), [d, h] = O(!0), [f, m] = O(0), [p, b] = O("slide"), [x, y] = O(160), { t: N } = Xt(), { lastEvent: k, internalEvent: P, setInternalEvent: j } = Jt(), E = we().cinematics ?? !1, S = we().cinematicsOnChangeLocation ?? !1;
|
|
14690
14690
|
E && (ie(() => {
|
|
14691
14691
|
k?.payload?.type === "cinematics" && k?.payload?.action === "end" && h(!0);
|
|
14692
14692
|
}, [k]), ie(() => {
|
|
@@ -14701,7 +14701,7 @@ function Pu({ items: e, parent: t, selectedShip: n, onShipSelect: s }) {
|
|
|
14701
14701
|
}, I = (R) => -(R * c * x), F = (R) => {
|
|
14702
14702
|
const C = Math.floor(c / 2), _ = Math.floor(R / c), M = (R - _ * c - C) * x, T = -(_ * c * x + M);
|
|
14703
14703
|
return v(T);
|
|
14704
|
-
}, B =
|
|
14704
|
+
}, B = nt(), q = we().baseUrl ?? "", D = e;
|
|
14705
14705
|
ie(() => {
|
|
14706
14706
|
const R = () => {
|
|
14707
14707
|
let C;
|
|
@@ -14732,14 +14732,14 @@ function Pu({ items: e, parent: t, selectedShip: n, onShipSelect: s }) {
|
|
|
14732
14732
|
s(R), b("center");
|
|
14733
14733
|
const C = D.findIndex((_) => _.slug === R);
|
|
14734
14734
|
C !== -1 && m(F(C)), B(`${t ? `/${t}/` : "/"}${R}`), E && S && j({ ...vn });
|
|
14735
|
-
},
|
|
14735
|
+
}, Y = () => {
|
|
14736
14736
|
const R = Math.ceil(D.length / c), C = (i + 1) % R;
|
|
14737
14737
|
b("slide"), r(C), m(I(C));
|
|
14738
|
-
},
|
|
14738
|
+
}, Z = () => {
|
|
14739
14739
|
const R = Math.ceil(D.length / c), C = (i - 1 + R) % R;
|
|
14740
14740
|
b("slide"), r(C), m(I(C));
|
|
14741
14741
|
};
|
|
14742
|
-
return /* @__PURE__ */ a.jsxs(
|
|
14742
|
+
return /* @__PURE__ */ a.jsxs(Ce, { children: [
|
|
14743
14743
|
d && /* @__PURE__ */ a.jsxs(
|
|
14744
14744
|
w.div,
|
|
14745
14745
|
{
|
|
@@ -14766,7 +14766,7 @@ function Pu({ items: e, parent: t, selectedShip: n, onShipSelect: s }) {
|
|
|
14766
14766
|
w.button,
|
|
14767
14767
|
{
|
|
14768
14768
|
className: "absolute left-1 sm:left-2 md:left-4 z-20 w-8 h-8 sm:w-10 sm:h-10 bg-slate-900/40 backdrop-blur-sm rounded-full border border-blue-400/20 hover:border-blue-400/40 flex items-center justify-center text-white/60 hover:text-white transition-all duration-300 hover:bg-slate-800/60",
|
|
14769
|
-
onClick:
|
|
14769
|
+
onClick: Z,
|
|
14770
14770
|
whileHover: { scale: 1.05, x: -2 },
|
|
14771
14771
|
whileTap: { scale: 0.95 },
|
|
14772
14772
|
disabled: i === 0,
|
|
@@ -14809,7 +14809,7 @@ function Pu({ items: e, parent: t, selectedShip: n, onShipSelect: s }) {
|
|
|
14809
14809
|
/* @__PURE__ */ a.jsx("div", { className: "w-full h-12 sm:h-16 relative flex items-center justify-center px-4", children: /* @__PURE__ */ a.jsx(
|
|
14810
14810
|
"img",
|
|
14811
14811
|
{
|
|
14812
|
-
src: `${
|
|
14812
|
+
src: `${q.replace(/\/$/, "")}/images/shapes/${R.icon ?? R.slug}.png`,
|
|
14813
14813
|
alt: R.name,
|
|
14814
14814
|
width: 120,
|
|
14815
14815
|
height: 40,
|
|
@@ -14837,7 +14837,7 @@ function Pu({ items: e, parent: t, selectedShip: n, onShipSelect: s }) {
|
|
|
14837
14837
|
w.button,
|
|
14838
14838
|
{
|
|
14839
14839
|
className: "absolute right-1 sm:right-2 md:right-4 z-20 w-8 h-8 sm:w-10 sm:h-10 bg-slate-900/40 backdrop-blur-sm rounded-full border border-blue-400/20 hover:border-blue-400/40 flex items-center justify-center text-white/60 hover:text-white transition-all duration-300 hover:bg-slate-800/60",
|
|
14840
|
-
onClick:
|
|
14840
|
+
onClick: Y,
|
|
14841
14841
|
whileHover: { scale: 1.05, x: 2 },
|
|
14842
14842
|
whileTap: { scale: 0.95 },
|
|
14843
14843
|
disabled: i === Math.ceil(D.length / c) - 1,
|
|
@@ -14921,7 +14921,7 @@ const Fy = ({ items: e, world: t, worldSlug: n = t }) => {
|
|
|
14921
14921
|
initial: { opacity: 0 },
|
|
14922
14922
|
animate: { opacity: 1 },
|
|
14923
14923
|
exit: { opacity: 0 }
|
|
14924
|
-
}, o = wn(), l =
|
|
14924
|
+
}, o = wn(), l = nt(), { t: c } = Xt(), { setInternalEvent: u } = Jt(), d = we().cinematics ?? !1, h = we().cinematicsOnChangeLocation ?? !1;
|
|
14925
14925
|
ie(() => {
|
|
14926
14926
|
o.pathname === `/${n}` ? i("") : o.pathname.startsWith(n ? `/${n}/` : "/") && i(o.pathname.replace(n ? `/${n}/` : "/", ""));
|
|
14927
14927
|
}, [o]), ie(() => {
|
|
@@ -15017,7 +15017,7 @@ const Fy = ({ items: e, world: t, worldSlug: n = t }) => {
|
|
|
15017
15017
|
);
|
|
15018
15018
|
}, Iu = Ke(void 0);
|
|
15019
15019
|
function $y({ children: e }) {
|
|
15020
|
-
const { isMobile: t } = Bc(), n =
|
|
15020
|
+
const { isMobile: t } = Bc(), n = we().videosBaseUrl, s = t ? "videos/movil" : "videos", [i, r] = O(""), [o, l] = O(!1), c = (u, d = !0) => {
|
|
15021
15021
|
const h = `${n.replace(/\/$/, "")}/${s}/${u}`;
|
|
15022
15022
|
h !== i && (d ? (l(!0), setTimeout(() => {
|
|
15023
15023
|
r(h), setTimeout(() => l(!1), 300);
|
|
@@ -15035,7 +15035,7 @@ function vy() {
|
|
|
15035
15035
|
} : e;
|
|
15036
15036
|
}
|
|
15037
15037
|
const ju = ({ returnUrlOnEnded: e }) => {
|
|
15038
|
-
const { currentVideo: t, isTransitioning: n } = vy(), s =
|
|
15038
|
+
const { currentVideo: t, isTransitioning: n } = vy(), s = nt(), i = ve(null), [r, o] = O(t), l = () => {
|
|
15039
15039
|
e && s(e);
|
|
15040
15040
|
}, c = (u) => u.replace(/\.mp4$/i, ".webp");
|
|
15041
15041
|
return ie(() => {
|
|
@@ -15045,7 +15045,7 @@ const ju = ({ returnUrlOnEnded: e }) => {
|
|
|
15045
15045
|
console.warn("Error al intentar autoPlay del video:", u);
|
|
15046
15046
|
});
|
|
15047
15047
|
}, [r]), /* @__PURE__ */ a.jsxs("div", { className: "absolute inset-0 w-full h-full", children: [
|
|
15048
|
-
/* @__PURE__ */ a.jsx(
|
|
15048
|
+
/* @__PURE__ */ a.jsx(Ce, { children: n && /* @__PURE__ */ a.jsx(
|
|
15049
15049
|
w.div,
|
|
15050
15050
|
{
|
|
15051
15051
|
className: "absolute inset-0 bg-black z-10",
|
|
@@ -15083,7 +15083,7 @@ function By({ className: e }) {
|
|
|
15083
15083
|
] });
|
|
15084
15084
|
}
|
|
15085
15085
|
function zy({ x: e, y: t, dest: n }) {
|
|
15086
|
-
const s =
|
|
15086
|
+
const s = nt(), i = (r) => {
|
|
15087
15087
|
s(`/product/${r}`);
|
|
15088
15088
|
};
|
|
15089
15089
|
return /* @__PURE__ */ a.jsxs(
|
|
@@ -15128,15 +15128,15 @@ function zy({ x: e, y: t, dest: n }) {
|
|
|
15128
15128
|
);
|
|
15129
15129
|
}
|
|
15130
15130
|
function Mu({ home: e, item: t }) {
|
|
15131
|
-
const [n, s] = O({ width: 0, height: 0 }), [i, r] = O(!0), [o, l] = O(!1), [c, u] = O(!1), [d, h] = O(""), [f, m] = O(!1), [p, b] = O(!1), [x, y] = O(!1), [N, k] = O(!1), [P, j] = O(!1), [E, S] = O(""), [v, I] = O(!1), F =
|
|
15131
|
+
const [n, s] = O({ width: 0, height: 0 }), [i, r] = O(!0), [o, l] = O(!1), [c, u] = O(!1), [d, h] = O(""), [f, m] = O(!1), [p, b] = O(!1), [x, y] = O(!1), [N, k] = O(!1), [P, j] = O(!1), [E, S] = O(""), [v, I] = O(!1), F = nt(), { lastEvent: B, internalEvent: q, setInternalEvent: D } = Jt(), te = we().cinematics ?? !1, Y = we().cinematicsOnChangeLocation ?? !1;
|
|
15132
15132
|
te && (ie(() => {
|
|
15133
15133
|
B?.payload?.type === "cinematics" && B?.payload?.action === "end" && r(!0);
|
|
15134
15134
|
}, [B]), ie(() => {
|
|
15135
|
-
if (
|
|
15136
|
-
const T =
|
|
15135
|
+
if (q?.payload?.type === "cinematics") {
|
|
15136
|
+
const T = q?.payload?.action;
|
|
15137
15137
|
T === "start" && r(!1), T === "end" && r(!0);
|
|
15138
15138
|
}
|
|
15139
|
-
}, [
|
|
15139
|
+
}, [q])), ie(() => {
|
|
15140
15140
|
const T = () => {
|
|
15141
15141
|
s({
|
|
15142
15142
|
width: window.innerWidth,
|
|
@@ -15145,14 +15145,14 @@ function Mu({ home: e, item: t }) {
|
|
|
15145
15145
|
};
|
|
15146
15146
|
return T(), window.addEventListener("resize", T), () => window.removeEventListener("resize", T);
|
|
15147
15147
|
}, []);
|
|
15148
|
-
const
|
|
15148
|
+
const Z = () => {
|
|
15149
15149
|
l(!0), r(!1);
|
|
15150
15150
|
}, R = () => {
|
|
15151
15151
|
l(!1), r(!0);
|
|
15152
15152
|
}, C = (T) => {
|
|
15153
|
-
F(T), te &&
|
|
15153
|
+
F(T), te && Y && D({ ...vn });
|
|
15154
15154
|
}, _ = (T) => !!T?.trim(), M = (T) => T?.endsWith(".webm") || T?.endsWith(".mp4");
|
|
15155
|
-
return /* @__PURE__ */ a.jsxs(
|
|
15155
|
+
return /* @__PURE__ */ a.jsxs(Ce, { children: [
|
|
15156
15156
|
i && /* @__PURE__ */ a.jsx(
|
|
15157
15157
|
w.div,
|
|
15158
15158
|
{
|
|
@@ -15191,7 +15191,7 @@ function Mu({ home: e, item: t }) {
|
|
|
15191
15191
|
M(T.url) ? (h(T.url.trim()), u(!0)) : (S(T.url), j(T.transparent), k(!0)), T.transparent === !0 && te && D({ ...vn });
|
|
15192
15192
|
} })),
|
|
15193
15193
|
(t?.cards?.length ?? 0) > 0 && /* @__PURE__ */ a.jsx(Mp, { onClick: () => b(!0) }),
|
|
15194
|
-
(t?.nodesId ?? 0) > 0 && /* @__PURE__ */ a.jsx(Eg, { label: t?.shortName ?? t.title, onClick:
|
|
15194
|
+
(t?.nodesId ?? 0) > 0 && /* @__PURE__ */ a.jsx(Eg, { label: t?.shortName ?? t.title, onClick: Z })
|
|
15195
15195
|
] })
|
|
15196
15196
|
] })
|
|
15197
15197
|
] })
|
|
@@ -15211,7 +15211,7 @@ function Mu({ home: e, item: t }) {
|
|
|
15211
15211
|
}
|
|
15212
15212
|
const Wy = ({ video: e, returnUrl: t }) => {
|
|
15213
15213
|
console.log(e);
|
|
15214
|
-
const n =
|
|
15214
|
+
const n = nt(), s = {
|
|
15215
15215
|
initial: { opacity: 0 },
|
|
15216
15216
|
animate: { opacity: 1 },
|
|
15217
15217
|
exit: { opacity: 0 }
|
|
@@ -15283,7 +15283,7 @@ const Wy = ({ video: e, returnUrl: t }) => {
|
|
|
15283
15283
|
}
|
|
15284
15284
|
) }) : /* @__PURE__ */ a.jsx("div", { className: "relative w-full h-screen overflow-hidden bg-slate-900 flex items-center justify-center", children: /* @__PURE__ */ a.jsx("div", { className: "text-white text-2xl", children: "Producto no encontrado" }) });
|
|
15285
15285
|
}, Uy = ({ world: e, worldSlug: t = e, overlay: n = !1, itemsData: s }) => {
|
|
15286
|
-
const [i, r] = O(null), { itemSlug: o } = Na(), l =
|
|
15286
|
+
const [i, r] = O(null), { itemSlug: o } = Na(), l = nt();
|
|
15287
15287
|
ie(() => {
|
|
15288
15288
|
if (o) {
|
|
15289
15289
|
const u = s.find((d) => d.slug === o);
|
|
@@ -15316,7 +15316,7 @@ const Wy = ({ video: e, returnUrl: t }) => {
|
|
|
15316
15316
|
animate: { opacity: 1 },
|
|
15317
15317
|
exit: { opacity: 0 }
|
|
15318
15318
|
};
|
|
15319
|
-
return /* @__PURE__ */ a.jsx(
|
|
15319
|
+
return /* @__PURE__ */ a.jsx(Ce, { children: /* @__PURE__ */ a.jsxs(
|
|
15320
15320
|
w.div,
|
|
15321
15321
|
{
|
|
15322
15322
|
className: "relative w-full h-full",
|
|
@@ -15333,7 +15333,7 @@ const Wy = ({ video: e, returnUrl: t }) => {
|
|
|
15333
15333
|
}
|
|
15334
15334
|
) });
|
|
15335
15335
|
}, Xy = () => {
|
|
15336
|
-
const e = wn(), { sendMessage: t } = Cn(), n =
|
|
15336
|
+
const e = wn(), { sendMessage: t } = Cn(), n = we().wsRoom;
|
|
15337
15337
|
return ie(() => {
|
|
15338
15338
|
console.log("RouteListener: " + e.pathname + e.hash), t({ type: "publish", room: n, payload: { type: "camera", target: Sg(e.pathname) } });
|
|
15339
15339
|
}, [e]), null;
|
|
@@ -15373,7 +15373,7 @@ export {
|
|
|
15373
15373
|
vn as cinematicsStartEvent,
|
|
15374
15374
|
_n as cn,
|
|
15375
15375
|
Ry as codigoANombre,
|
|
15376
|
-
|
|
15376
|
+
we as getConfig,
|
|
15377
15377
|
Cy as initLibConfig,
|
|
15378
15378
|
Tg as nombreACodigo,
|
|
15379
15379
|
Sg as toTarget,
|