@devstgo/stgo-salta-components-react 0.1.7 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +38 -64
- package/dist/stgo-salta-components-react.js +799 -802
- package/dist/stgo-salta-components-react.umd.cjs +6 -6
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as g from "react";
|
|
2
|
-
import Au, { createContext as
|
|
2
|
+
import Au, { createContext as Ze, useRef as Te, useLayoutEffect as Lu, useEffect as se, useId as Ti, useContext as ye, useInsertionEffect as Si, useMemo as Rt, 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
|
-
import { Grid2x2 as wa, ChevronUp as Ta, ChevronDown as ki, X as dt, 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
|
|
4
|
+
import { Grid2x2 as wa, ChevronUp as Ta, ChevronDown as ki, X as dt, 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 jt, 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
5
|
import { useNavigate as nt, useLocation as wn, useSearchParams as gd, Outlet as is, useParams as Na } from "react-router-dom";
|
|
6
|
-
import { useTranslation as
|
|
6
|
+
import { useTranslation as mt } from "react-i18next";
|
|
7
7
|
import { createPortal as ka } from "react-dom";
|
|
8
8
|
import { t as bd } from "i18next";
|
|
9
9
|
let Ea;
|
|
@@ -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
|
}
|
|
@@ -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
|
|
195
|
-
return
|
|
193
|
+
oe = e(T);
|
|
194
|
+
var pe = Object.keys(A).filter(function(Fe) {
|
|
195
|
+
return Fe !== "key";
|
|
196
196
|
});
|
|
197
|
-
|
|
197
|
+
re = 0 < pe.length ? "{key: someKey, " + pe.join(": ..., ") + ": ...}" : "{key: someKey}", j[oe + re] || (pe = 0 < pe.length ? "{" + pe.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
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
), j[
|
|
204
|
+
re,
|
|
205
|
+
oe,
|
|
206
|
+
pe,
|
|
207
|
+
oe
|
|
208
|
+
), j[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
212
|
for (var ce in A)
|
|
213
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) {
|
|
@@ -243,24 +243,24 @@ React keys must be passed directly to JSX without using spread:
|
|
|
243
243
|
r
|
|
244
244
|
)(), _ = Y(s(r)), j = {};
|
|
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;
|
|
@@ -270,16 +270,16 @@ function vd() {
|
|
|
270
270
|
return Eo || (Eo = 1, process.env.NODE_ENV === "production" ? Mn.exports = yd() : Mn.exports = xd()), Mn.exports;
|
|
271
271
|
}
|
|
272
272
|
var a = vd();
|
|
273
|
-
const Ei =
|
|
273
|
+
const Ei = Ze({});
|
|
274
274
|
function os(e) {
|
|
275
275
|
const t = Te(null);
|
|
276
276
|
return t.current === null && (t.current = e()), t.current;
|
|
277
277
|
}
|
|
278
|
-
const Ca = typeof window < "u", Pa = Ca ? Lu :
|
|
278
|
+
const Ca = typeof window < "u", Pa = Ca ? Lu : se, Tn = /* @__PURE__ */ Ze(null);
|
|
279
279
|
function Ci(e, t) {
|
|
280
280
|
e.indexOf(t) === -1 && e.push(t);
|
|
281
281
|
}
|
|
282
|
-
function
|
|
282
|
+
function Yt(e, t) {
|
|
283
283
|
const n = e.indexOf(t);
|
|
284
284
|
n > -1 && e.splice(n, 1);
|
|
285
285
|
}
|
|
@@ -287,12 +287,12 @@ 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
|
}
|
|
290
|
-
let
|
|
291
|
-
},
|
|
290
|
+
let Kt = () => {
|
|
291
|
+
}, Ke = () => {
|
|
292
292
|
};
|
|
293
|
-
typeof process < "u" && process.env?.NODE_ENV !== "production" && (
|
|
293
|
+
typeof process < "u" && process.env?.NODE_ENV !== "production" && (Kt = (e, t, n) => {
|
|
294
294
|
!e && typeof console < "u" && console.warn(Us(t, n));
|
|
295
|
-
},
|
|
295
|
+
}, Ke = (e, t, n) => {
|
|
296
296
|
if (!e)
|
|
297
297
|
throw new Error(Us(t, n));
|
|
298
298
|
});
|
|
@@ -306,7 +306,7 @@ function Ra(e) {
|
|
|
306
306
|
let t;
|
|
307
307
|
return () => (t === void 0 && (t = e()), t);
|
|
308
308
|
}
|
|
309
|
-
const
|
|
309
|
+
const We = /* @__NO_SIDE_EFFECTS__ */ (e) => e, wd = (e, t) => (n) => t(e(n)), Sn = (...e) => e.reduce(wd), Ut = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
|
|
310
310
|
const s = t - e;
|
|
311
311
|
return s === 0 ? 1 : (n - e) / s;
|
|
312
312
|
};
|
|
@@ -315,7 +315,7 @@ class Pi {
|
|
|
315
315
|
this.subscriptions = [];
|
|
316
316
|
}
|
|
317
317
|
add(t) {
|
|
318
|
-
return Ci(this.subscriptions, t), () =>
|
|
318
|
+
return Ci(this.subscriptions, t), () => Yt(this.subscriptions, t);
|
|
319
319
|
}
|
|
320
320
|
notify(t, n, s) {
|
|
321
321
|
const i = this.subscriptions.length;
|
|
@@ -335,7 +335,7 @@ class Pi {
|
|
|
335
335
|
this.subscriptions.length = 0;
|
|
336
336
|
}
|
|
337
337
|
}
|
|
338
|
-
const
|
|
338
|
+
const $e = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, ze = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3;
|
|
339
339
|
function Aa(e, t) {
|
|
340
340
|
return t ? e * (1e3 / t) : 0;
|
|
341
341
|
}
|
|
@@ -356,7 +356,7 @@ function kd(e, t, n, s, i) {
|
|
|
356
356
|
}
|
|
357
357
|
function Nn(e, t, n, s) {
|
|
358
358
|
if (e === t && n === s)
|
|
359
|
-
return
|
|
359
|
+
return We;
|
|
360
360
|
const i = (r) => kd(r, 0, 1, e, n);
|
|
361
361
|
return (r) => r === 0 || r === 1 ? r : La(i(r), t, s);
|
|
362
362
|
}
|
|
@@ -365,7 +365,7 @@ function Ya(e, t) {
|
|
|
365
365
|
return Wa(e) ? e[Td(0, e.length, t)] : e;
|
|
366
366
|
}
|
|
367
367
|
const Ua = (e) => Array.isArray(e) && typeof e[0] == "number", Po = {
|
|
368
|
-
linear:
|
|
368
|
+
linear: We,
|
|
369
369
|
easeIn: Ed,
|
|
370
370
|
easeInOut: za,
|
|
371
371
|
easeOut: Cd,
|
|
@@ -378,11 +378,11 @@ const Ua = (e) => Array.isArray(e) && typeof e[0] == "number", Po = {
|
|
|
378
378
|
anticipate: Fa
|
|
379
379
|
}, Pd = (e) => typeof e == "string", Io = (e) => {
|
|
380
380
|
if (Ua(e)) {
|
|
381
|
-
|
|
381
|
+
Ke(e.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
|
|
382
382
|
const [t, n, s, i] = e;
|
|
383
383
|
return Nn(t, n, s, i);
|
|
384
384
|
} else if (Pd(e))
|
|
385
|
-
return
|
|
385
|
+
return Ke(Po[e] !== void 0, `Invalid easing type '${e}'`, "invalid-easing-type"), Po[e];
|
|
386
386
|
return e;
|
|
387
387
|
}, Rn = [
|
|
388
388
|
"setup",
|
|
@@ -461,7 +461,7 @@ function Ha(e, t) {
|
|
|
461
461
|
o[Rn[I]].cancel(k);
|
|
462
462
|
}, state: i, steps: o };
|
|
463
463
|
}
|
|
464
|
-
const { schedule:
|
|
464
|
+
const { schedule: be, cancel: ht, state: Ae, steps: vs } = /* @__PURE__ */ Ha(typeof requestAnimationFrame < "u" ? requestAnimationFrame : We, !0);
|
|
465
465
|
let $n;
|
|
466
466
|
function Md() {
|
|
467
467
|
$n = void 0;
|
|
@@ -475,15 +475,15 @@ const Ve = {
|
|
|
475
475
|
function jo(e) {
|
|
476
476
|
return typeof e != "string" ? !1 : e.split("/*")[0].includes("var(--");
|
|
477
477
|
}
|
|
478
|
-
const
|
|
478
|
+
const Zt = {
|
|
479
479
|
test: (e) => typeof e == "number",
|
|
480
480
|
parse: parseFloat,
|
|
481
481
|
transform: (e) => e
|
|
482
482
|
}, mn = {
|
|
483
|
-
...
|
|
483
|
+
...Zt,
|
|
484
484
|
transform: (e) => et(0, 1, e)
|
|
485
485
|
}, An = {
|
|
486
|
-
...
|
|
486
|
+
...Zt,
|
|
487
487
|
default: 1
|
|
488
488
|
}, ln = (e) => Math.round(e * 1e5) / 1e5, Ai = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
|
|
489
489
|
function Ld(e) {
|
|
@@ -500,9 +500,9 @@ const Vd = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
|
|
|
500
500
|
alpha: l !== void 0 ? parseFloat(l) : 1
|
|
501
501
|
};
|
|
502
502
|
}, Od = (e) => et(0, 255, e), ws = {
|
|
503
|
-
...
|
|
503
|
+
...Zt,
|
|
504
504
|
transform: (e) => Math.round(Od(e))
|
|
505
|
-
},
|
|
505
|
+
}, Pt = {
|
|
506
506
|
test: /* @__PURE__ */ Li("rgb", "red"),
|
|
507
507
|
parse: /* @__PURE__ */ Ka("red", "green", "blue"),
|
|
508
508
|
transform: ({ red: e, green: t, blue: n, alpha: s = 1 }) => "rgba(" + ws.transform(e) + ", " + ws.transform(t) + ", " + ws.transform(n) + ", " + ln(mn.transform(s)) + ")"
|
|
@@ -519,7 +519,7 @@ function Dd(e) {
|
|
|
519
519
|
const Hs = {
|
|
520
520
|
test: /* @__PURE__ */ Li("#"),
|
|
521
521
|
parse: Dd,
|
|
522
|
-
transform:
|
|
522
|
+
transform: Pt.transform
|
|
523
523
|
}, kn = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
|
|
524
524
|
test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
|
|
525
525
|
parse: parseFloat,
|
|
@@ -528,17 +528,17 @@ const Hs = {
|
|
|
528
528
|
...Je,
|
|
529
529
|
parse: (e) => Je.parse(e) / 100,
|
|
530
530
|
transform: (e) => Je.transform(e * 100)
|
|
531
|
-
},
|
|
531
|
+
}, Dt = {
|
|
532
532
|
test: /* @__PURE__ */ Li("hsl", "hue"),
|
|
533
533
|
parse: /* @__PURE__ */ Ka("hue", "saturation", "lightness"),
|
|
534
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
|
-
},
|
|
536
|
-
test: (e) =>
|
|
537
|
-
parse: (e) =>
|
|
538
|
-
transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ?
|
|
535
|
+
}, Ne = {
|
|
536
|
+
test: (e) => Pt.test(e) || Hs.test(e) || Dt.test(e),
|
|
537
|
+
parse: (e) => Pt.test(e) ? Pt.parse(e) : Dt.test(e) ? Dt.parse(e) : Hs.parse(e),
|
|
538
|
+
transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? Pt.transform(e) : Dt.transform(e),
|
|
539
539
|
getAnimatableNone: (e) => {
|
|
540
|
-
const t =
|
|
541
|
-
return t.alpha = 0,
|
|
540
|
+
const t = Ne.parse(e);
|
|
541
|
+
return t.alpha = 0, Ne.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) => (Ne.test(c) ? (s.color.push(r), i.push(qa), n.push(Ne.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,17 +565,17 @@ 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 += Ne.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 : Ne.test(e) ? Ne.getAnimatableNone(e) : e;
|
|
574
574
|
function Hd(e) {
|
|
575
575
|
const t = Ja(e);
|
|
576
576
|
return Qa(e)(t.map(Ud));
|
|
577
577
|
}
|
|
578
|
-
const
|
|
578
|
+
const Ge = {
|
|
579
579
|
test: Bd,
|
|
580
580
|
parse: Ja,
|
|
581
581
|
createTransformer: Qa,
|
|
@@ -606,20 +606,20 @@ function Kn(e, t) {
|
|
|
606
606
|
const xe = (e, t, n) => e + (t - e) * n, Ss = (e, t, n) => {
|
|
607
607
|
const s = e * e, i = n * (t * t - s) + s;
|
|
608
608
|
return i < 0 ? 0 : Math.sqrt(i);
|
|
609
|
-
}, Gd = [Hs,
|
|
609
|
+
}, Gd = [Hs, Pt, Dt], Kd = (e) => Gd.find((t) => t.test(e));
|
|
610
610
|
function Ao(e) {
|
|
611
611
|
const t = Kd(e);
|
|
612
|
-
if (
|
|
612
|
+
if (Kt(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !t)
|
|
613
613
|
return !1;
|
|
614
614
|
let n = t.parse(e);
|
|
615
|
-
return t ===
|
|
615
|
+
return t === Dt && (n = Xd(n)), n;
|
|
616
616
|
}
|
|
617
617
|
const Lo = (e, t) => {
|
|
618
618
|
const n = Ao(e), s = Ao(t);
|
|
619
619
|
if (!n || !s)
|
|
620
620
|
return Kn(e, t);
|
|
621
621
|
const i = { ...n };
|
|
622
|
-
return (r) => (i.red = Ss(n.red, s.red, r), i.green = Ss(n.green, s.green, r), i.blue = Ss(n.blue, s.blue, r), i.alpha = xe(n.alpha, s.alpha, r),
|
|
622
|
+
return (r) => (i.red = Ss(n.red, s.red, r), i.green = Ss(n.green, s.green, r), i.blue = Ss(n.blue, s.blue, r), i.alpha = xe(n.alpha, s.alpha, r), Pt.transform(i));
|
|
623
623
|
}, Xs = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
624
624
|
function Zd(e, t) {
|
|
625
625
|
return Xs.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
|
|
@@ -628,7 +628,7 @@ function qd(e, t) {
|
|
|
628
628
|
return (n) => xe(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 : Ne.test(e) ? Lo : eh : Array.isArray(e) ? el : typeof e == "object" ? Ne.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]));
|
|
@@ -657,8 +657,8 @@ function Qd(e, t) {
|
|
|
657
657
|
return n;
|
|
658
658
|
}
|
|
659
659
|
const eh = (e, t) => {
|
|
660
|
-
const n =
|
|
661
|
-
return s.indexes.var.length === i.indexes.var.length && s.indexes.color.length === i.indexes.color.length && s.indexes.number.length >= i.indexes.number.length ? Xs.has(e) && !i.values.length || Xs.has(t) && !s.values.length ? Zd(e, t) : Sn(el(Qd(s, i), i.values), n) : (
|
|
660
|
+
const n = Ge.createTransformer(t), s = pn(e), i = pn(t);
|
|
661
|
+
return s.indexes.var.length === i.indexes.var.length && s.indexes.color.length === i.indexes.color.length && s.indexes.number.length >= i.indexes.number.length ? Xs.has(e) && !i.values.length || Xs.has(t) && !s.values.length ? Zd(e, t) : Sn(el(Qd(s, i), i.values), n) : (Kt(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`, "complex-values-different"), Kn(e, t));
|
|
662
662
|
};
|
|
663
663
|
function tl(e, t, n) {
|
|
664
664
|
return typeof e == "number" && typeof t == "number" && typeof n == "number" ? xe(e, t, n) : Vi(e)(e, t);
|
|
@@ -666,7 +666,7 @@ function tl(e, t, n) {
|
|
|
666
666
|
const th = (e) => {
|
|
667
667
|
const t = ({ timestamp: n }) => e(n);
|
|
668
668
|
return {
|
|
669
|
-
start: (n = !0) =>
|
|
669
|
+
start: (n = !0) => be.update(t, n),
|
|
670
670
|
stop: () => ht(t),
|
|
671
671
|
/**
|
|
672
672
|
* If we're processing this frame we can use the
|
|
@@ -694,7 +694,7 @@ function sl(e, t = 100, n) {
|
|
|
694
694
|
return {
|
|
695
695
|
type: "keyframes",
|
|
696
696
|
ease: (r) => s.next(i * r).value / t,
|
|
697
|
-
duration: /* @__PURE__ */
|
|
697
|
+
duration: /* @__PURE__ */ ze(i)
|
|
698
698
|
};
|
|
699
699
|
}
|
|
700
700
|
const nh = 5;
|
|
@@ -733,9 +733,9 @@ const ve = {
|
|
|
733
733
|
}, Ns = 1e-3;
|
|
734
734
|
function sh({ duration: e = ve.duration, bounce: t = ve.bounce, velocity: n = ve.velocity, mass: s = ve.mass }) {
|
|
735
735
|
let i, r;
|
|
736
|
-
|
|
736
|
+
Kt(e <= /* @__PURE__ */ $e(ve.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
|
|
737
737
|
let o = 1 - t;
|
|
738
|
-
o = et(ve.minDamping, ve.maxDamping, o), e = et(ve.minDuration, ve.maxDuration, /* @__PURE__ */
|
|
738
|
+
o = et(ve.minDamping, ve.maxDamping, o), e = et(ve.minDuration, ve.maxDuration, /* @__PURE__ */ ze(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) => {
|
|
@@ -749,7 +749,7 @@ function sh({ duration: e = ve.duration, bounce: t = ve.bounce, velocity: n = ve
|
|
|
749
749
|
return d * h;
|
|
750
750
|
});
|
|
751
751
|
const l = 5 / e, c = oh(i, r, l);
|
|
752
|
-
if (e = /* @__PURE__ */
|
|
752
|
+
if (e = /* @__PURE__ */ $e(e), isNaN(c))
|
|
753
753
|
return {
|
|
754
754
|
stiffness: ve.stiffness,
|
|
755
755
|
damping: ve.damping,
|
|
@@ -815,8 +815,8 @@ function gn(e = ve.visualDuration, t = ve.bounce) {
|
|
|
815
815
|
let { restSpeed: s, restDelta: i } = n;
|
|
816
816
|
const r = n.keyframes[0], o = n.keyframes[n.keyframes.length - 1], l = { done: !1, value: r }, { stiffness: c, damping: u, mass: d, duration: h, velocity: f, isResolvedFromDuration: m } = lh({
|
|
817
817
|
...n,
|
|
818
|
-
velocity: -/* @__PURE__ */
|
|
819
|
-
}), p = f || 0, b = u / (2 * Math.sqrt(c * d)), x = o - r, y = /* @__PURE__ */
|
|
818
|
+
velocity: -/* @__PURE__ */ ze(n.velocity || 0)
|
|
819
|
+
}), p = f || 0, b = u / (2 * Math.sqrt(c * d)), x = o - r, y = /* @__PURE__ */ ze(Math.sqrt(c / d)), N = Math.abs(x) < 5;
|
|
820
820
|
s || (s = N ? ve.restSpeed.granular : ve.restSpeed.default), i || (i = N ? ve.restDelta.granular : ve.restDelta.default);
|
|
821
821
|
let k;
|
|
822
822
|
if (b < 1) {
|
|
@@ -842,7 +842,7 @@ function gn(e = ve.visualDuration, t = ve.bounce) {
|
|
|
842
842
|
l.done = M >= h;
|
|
843
843
|
else {
|
|
844
844
|
let S = M === 0 ? p : 0;
|
|
845
|
-
b < 1 && (S = M === 0 ? /* @__PURE__ */
|
|
845
|
+
b < 1 && (S = M === 0 ? /* @__PURE__ */ $e(p) : il(k, M, E));
|
|
846
846
|
const v = Math.abs(S) <= s, P = Math.abs(o - E) <= i;
|
|
847
847
|
l.done = v && P;
|
|
848
848
|
}
|
|
@@ -859,7 +859,7 @@ function gn(e = ve.visualDuration, t = ve.bounce) {
|
|
|
859
859
|
}
|
|
860
860
|
gn.applyToOptions = (e) => {
|
|
861
861
|
const t = sl(e, 100, gn);
|
|
862
|
-
return e.ease = t.ease, e.duration = /* @__PURE__ */
|
|
862
|
+
return e.ease = t.ease, e.duration = /* @__PURE__ */ $e(t.duration), e.type = "keyframes", e;
|
|
863
863
|
};
|
|
864
864
|
function Ks({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: s = 325, bounceDamping: i = 10, bounceStiffness: r = 500, modifyTarget: o, min: l, max: c, restDelta: u = 0.5, restSpeed: d }) {
|
|
865
865
|
const h = e[0], f = {
|
|
@@ -898,7 +898,7 @@ function ch(e, t, n) {
|
|
|
898
898
|
for (let o = 0; o < r; o++) {
|
|
899
899
|
let l = i(e[o], e[o + 1]);
|
|
900
900
|
if (t) {
|
|
901
|
-
const c = Array.isArray(t) ? t[o] ||
|
|
901
|
+
const c = Array.isArray(t) ? t[o] || We : t;
|
|
902
902
|
l = Sn(c, l);
|
|
903
903
|
}
|
|
904
904
|
s.push(l);
|
|
@@ -907,7 +907,7 @@ function ch(e, t, n) {
|
|
|
907
907
|
}
|
|
908
908
|
function uh(e, t, { clamp: n = !0, ease: s, mixer: i } = {}) {
|
|
909
909
|
const r = e.length;
|
|
910
|
-
if (
|
|
910
|
+
if (Ke(r === t.length, "Both input and output ranges must be the same length", "range-length"), r === 1)
|
|
911
911
|
return () => t[0];
|
|
912
912
|
if (r === 2 && t[0] === t[1])
|
|
913
913
|
return () => t[1];
|
|
@@ -920,7 +920,7 @@ function uh(e, t, { clamp: n = !0, ease: s, mixer: i } = {}) {
|
|
|
920
920
|
if (c > 1)
|
|
921
921
|
for (; h < e.length - 2 && !(d < e[h + 1]); h++)
|
|
922
922
|
;
|
|
923
|
-
const f = /* @__PURE__ */
|
|
923
|
+
const f = /* @__PURE__ */ Ut(e[h], e[h + 1], d);
|
|
924
924
|
return l[h](f);
|
|
925
925
|
};
|
|
926
926
|
return n ? (d) => u(et(e[0], e[r - 1], d)) : u;
|
|
@@ -928,7 +928,7 @@ function uh(e, t, { clamp: n = !0, ease: s, mixer: i } = {}) {
|
|
|
928
928
|
function ol(e, t) {
|
|
929
929
|
const n = e[e.length - 1];
|
|
930
930
|
for (let s = 1; s <= t; s++) {
|
|
931
|
-
const i = /* @__PURE__ */
|
|
931
|
+
const i = /* @__PURE__ */ Ut(0, t, s);
|
|
932
932
|
e.push(xe(n, 1, i));
|
|
933
933
|
}
|
|
934
934
|
}
|
|
@@ -942,7 +942,7 @@ function dh(e, t) {
|
|
|
942
942
|
function hh(e, t) {
|
|
943
943
|
return e.map(() => t || za).splice(0, e.length - 1);
|
|
944
944
|
}
|
|
945
|
-
function
|
|
945
|
+
function _t({ duration: e = 300, keyframes: t, times: n, ease: s = "easeInOut" }) {
|
|
946
946
|
const i = Wa(s) ? s.map(Io) : Io(s), r = {
|
|
947
947
|
done: !1,
|
|
948
948
|
value: t[0]
|
|
@@ -967,8 +967,8 @@ function Di(e, { repeat: t, repeatType: n = "loop" }, s, i = 1) {
|
|
|
967
967
|
const mh = {
|
|
968
968
|
decay: Ks,
|
|
969
969
|
inertia: Ks,
|
|
970
|
-
tween:
|
|
971
|
-
keyframes:
|
|
970
|
+
tween: _t,
|
|
971
|
+
keyframes: _t,
|
|
972
972
|
spring: gn
|
|
973
973
|
};
|
|
974
974
|
function al(e) {
|
|
@@ -1009,10 +1009,10 @@ class Fi extends _i {
|
|
|
1009
1009
|
initAnimation() {
|
|
1010
1010
|
const { options: t } = this;
|
|
1011
1011
|
al(t);
|
|
1012
|
-
const { type: n =
|
|
1012
|
+
const { type: n = _t, repeat: s = 0, repeatDelay: i = 0, repeatType: r, velocity: o = 0 } = t;
|
|
1013
1013
|
let { keyframes: l } = t;
|
|
1014
|
-
const c = n ||
|
|
1015
|
-
process.env.NODE_ENV !== "production" && c !==
|
|
1014
|
+
const c = n || _t;
|
|
1015
|
+
process.env.NODE_ENV !== "production" && c !== _t && Ke(l.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${l}`, "spring-two-frames"), c !== _t && typeof l[0] != "number" && (this.mixKeyframes = Sn(ph, tl(l[0], l[1])), l = [0, 100]);
|
|
1016
1016
|
const u = c({ ...t, keyframes: l });
|
|
1017
1017
|
r === "mirror" && (this.mirroredGenerator = c({
|
|
1018
1018
|
...t,
|
|
@@ -1056,17 +1056,17 @@ class Fi extends _i {
|
|
|
1056
1056
|
return this.finished.then(t, n);
|
|
1057
1057
|
}
|
|
1058
1058
|
get duration() {
|
|
1059
|
-
return /* @__PURE__ */
|
|
1059
|
+
return /* @__PURE__ */ ze(this.calculatedDuration);
|
|
1060
1060
|
}
|
|
1061
1061
|
get iterationDuration() {
|
|
1062
1062
|
const { delay: t = 0 } = this.options || {};
|
|
1063
|
-
return this.duration + /* @__PURE__ */
|
|
1063
|
+
return this.duration + /* @__PURE__ */ ze(t);
|
|
1064
1064
|
}
|
|
1065
1065
|
get time() {
|
|
1066
|
-
return /* @__PURE__ */
|
|
1066
|
+
return /* @__PURE__ */ ze(this.currentTime);
|
|
1067
1067
|
}
|
|
1068
1068
|
set time(t) {
|
|
1069
|
-
t = /* @__PURE__ */
|
|
1069
|
+
t = /* @__PURE__ */ $e(t), this.currentTime = t, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = t : this.driver && (this.startTime = this.driver.now() - t / this.playbackSpeed), this.driver?.start(!1);
|
|
1070
1070
|
}
|
|
1071
1071
|
get speed() {
|
|
1072
1072
|
return this.playbackSpeed;
|
|
@@ -1074,7 +1074,7 @@ class Fi extends _i {
|
|
|
1074
1074
|
set speed(t) {
|
|
1075
1075
|
this.updateTime(Ve.now());
|
|
1076
1076
|
const n = this.playbackSpeed !== t;
|
|
1077
|
-
this.playbackSpeed = t, n && (this.time = /* @__PURE__ */
|
|
1077
|
+
this.playbackSpeed = t, n && (this.time = /* @__PURE__ */ ze(this.currentTime));
|
|
1078
1078
|
}
|
|
1079
1079
|
play() {
|
|
1080
1080
|
if (this.isStopped)
|
|
@@ -1113,8 +1113,8 @@ function gh(e) {
|
|
|
1113
1113
|
for (let t = 1; t < e.length; t++)
|
|
1114
1114
|
e[t] ?? (e[t] = e[t - 1]);
|
|
1115
1115
|
}
|
|
1116
|
-
const
|
|
1117
|
-
const t =
|
|
1116
|
+
const It = (e) => e * 180 / Math.PI, Zs = (e) => {
|
|
1117
|
+
const t = It(Math.atan2(e[1], e[0]));
|
|
1118
1118
|
return qs(t);
|
|
1119
1119
|
}, bh = {
|
|
1120
1120
|
x: 4,
|
|
@@ -1126,8 +1126,8 @@ const Ct = (e) => e * 180 / Math.PI, Zs = (e) => {
|
|
|
1126
1126
|
scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,
|
|
1127
1127
|
rotate: Zs,
|
|
1128
1128
|
rotateZ: Zs,
|
|
1129
|
-
skewX: (e) =>
|
|
1130
|
-
skewY: (e) =>
|
|
1129
|
+
skewX: (e) => It(Math.atan(e[1])),
|
|
1130
|
+
skewY: (e) => It(Math.atan(e[2])),
|
|
1131
1131
|
skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
|
|
1132
1132
|
}, qs = (e) => (e = e % 360, e < 0 && (e += 360), e), Oo = Zs, Do = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), _o = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), yh = {
|
|
1133
1133
|
x: 12,
|
|
@@ -1139,12 +1139,12 @@ const Ct = (e) => e * 180 / Math.PI, Zs = (e) => {
|
|
|
1139
1139
|
scaleX: Do,
|
|
1140
1140
|
scaleY: _o,
|
|
1141
1141
|
scale: (e) => (Do(e) + _o(e)) / 2,
|
|
1142
|
-
rotateX: (e) => qs(
|
|
1143
|
-
rotateY: (e) => qs(
|
|
1142
|
+
rotateX: (e) => qs(It(Math.atan2(e[6], e[5]))),
|
|
1143
|
+
rotateY: (e) => qs(It(Math.atan2(-e[2], e[0]))),
|
|
1144
1144
|
rotateZ: Oo,
|
|
1145
1145
|
rotate: Oo,
|
|
1146
|
-
skewX: (e) =>
|
|
1147
|
-
skewY: (e) =>
|
|
1146
|
+
skewX: (e) => It(Math.atan(e[4])),
|
|
1147
|
+
skewY: (e) => It(Math.atan(e[1])),
|
|
1148
1148
|
skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
|
|
1149
1149
|
};
|
|
1150
1150
|
function Js(e) {
|
|
@@ -1173,7 +1173,7 @@ const xh = (e, t) => {
|
|
|
1173
1173
|
function vh(e) {
|
|
1174
1174
|
return parseFloat(e.trim());
|
|
1175
1175
|
}
|
|
1176
|
-
const
|
|
1176
|
+
const qt = [
|
|
1177
1177
|
"transformPerspective",
|
|
1178
1178
|
"x",
|
|
1179
1179
|
"y",
|
|
@@ -1191,7 +1191,7 @@ const Zt = [
|
|
|
1191
1191
|
"skew",
|
|
1192
1192
|
"skewX",
|
|
1193
1193
|
"skewY"
|
|
1194
|
-
],
|
|
1194
|
+
], Jt = new Set(qt), Fo = (e) => e === Zt || e === G, wh = /* @__PURE__ */ new Set(["x", "y", "z"]), Th = qt.filter((e) => !wh.has(e));
|
|
1195
1195
|
function Sh(e) {
|
|
1196
1196
|
const t = [];
|
|
1197
1197
|
return Th.forEach((n) => {
|
|
@@ -1213,11 +1213,11 @@ const ut = {
|
|
|
1213
1213
|
};
|
|
1214
1214
|
ut.translateX = ut.x;
|
|
1215
1215
|
ut.translateY = ut.y;
|
|
1216
|
-
const
|
|
1216
|
+
const Mt = /* @__PURE__ */ new Set();
|
|
1217
1217
|
let ei = !1, ti = !1, ni = !1;
|
|
1218
1218
|
function ll() {
|
|
1219
1219
|
if (ti) {
|
|
1220
|
-
const e = Array.from(
|
|
1220
|
+
const e = Array.from(Mt).filter((s) => s.needsMeasurement), t = new Set(e.map((s) => s.element)), n = /* @__PURE__ */ new Map();
|
|
1221
1221
|
t.forEach((s) => {
|
|
1222
1222
|
const i = Sh(s);
|
|
1223
1223
|
i.length && (n.set(s, i), s.render());
|
|
@@ -1231,10 +1231,10 @@ function ll() {
|
|
|
1231
1231
|
s.suspendedScrollY !== void 0 && window.scrollTo(0, s.suspendedScrollY);
|
|
1232
1232
|
});
|
|
1233
1233
|
}
|
|
1234
|
-
ti = !1, ei = !1,
|
|
1234
|
+
ti = !1, ei = !1, Mt.forEach((e) => e.complete(ni)), Mt.clear();
|
|
1235
1235
|
}
|
|
1236
1236
|
function cl() {
|
|
1237
|
-
|
|
1237
|
+
Mt.forEach((e) => {
|
|
1238
1238
|
e.readKeyframes(), e.needsMeasurement && (ti = !0);
|
|
1239
1239
|
});
|
|
1240
1240
|
}
|
|
@@ -1246,7 +1246,7 @@ class $i {
|
|
|
1246
1246
|
this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...t], this.onComplete = n, this.name = s, this.motionValue = i, this.element = r, this.isAsync = o;
|
|
1247
1247
|
}
|
|
1248
1248
|
scheduleResolve() {
|
|
1249
|
-
this.state = "scheduled", this.isAsync ? (
|
|
1249
|
+
this.state = "scheduled", this.isAsync ? (Mt.add(this), ei || (ei = !0, be.read(cl), be.resolveKeyframes(ll))) : (this.readKeyframes(), this.complete());
|
|
1250
1250
|
}
|
|
1251
1251
|
readKeyframes() {
|
|
1252
1252
|
const { unresolvedKeyframes: t, name: n, element: s, motionValue: i } = this;
|
|
@@ -1271,10 +1271,10 @@ class $i {
|
|
|
1271
1271
|
measureEndState() {
|
|
1272
1272
|
}
|
|
1273
1273
|
complete(t = !1) {
|
|
1274
|
-
this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, t),
|
|
1274
|
+
this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, t), Mt.delete(this);
|
|
1275
1275
|
}
|
|
1276
1276
|
cancel() {
|
|
1277
|
-
this.state === "scheduled" && (
|
|
1277
|
+
this.state === "scheduled" && (Mt.delete(this), this.state = "pending");
|
|
1278
1278
|
}
|
|
1279
1279
|
resume() {
|
|
1280
1280
|
this.state === "pending" && this.scheduleResolve();
|
|
@@ -1339,7 +1339,7 @@ class fl extends _i {
|
|
|
1339
1339
|
if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !t)
|
|
1340
1340
|
return;
|
|
1341
1341
|
const { element: n, name: s, keyframes: i, pseudoElement: r, allowFlatten: o = !1, finalKeyframe: l, onComplete: c } = t;
|
|
1342
|
-
this.isPseudoElement = !!r, this.allowFlatten = o, this.options = t,
|
|
1342
|
+
this.isPseudoElement = !!r, this.allowFlatten = o, this.options = t, Ke(typeof t.type != "string", `Mini animate() doesn't support "type" as a string.`, "mini-spring");
|
|
1343
1343
|
const u = jh(t);
|
|
1344
1344
|
this.animation = Ih(n, s, i, u, r), u.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
|
|
1345
1345
|
if (this.finishedTime = this.time, !r) {
|
|
@@ -1389,17 +1389,17 @@ class fl extends _i {
|
|
|
1389
1389
|
}
|
|
1390
1390
|
get duration() {
|
|
1391
1391
|
const t = this.animation.effect?.getComputedTiming?.().duration || 0;
|
|
1392
|
-
return /* @__PURE__ */
|
|
1392
|
+
return /* @__PURE__ */ ze(Number(t));
|
|
1393
1393
|
}
|
|
1394
1394
|
get iterationDuration() {
|
|
1395
1395
|
const { delay: t = 0 } = this.options || {};
|
|
1396
|
-
return this.duration + /* @__PURE__ */
|
|
1396
|
+
return this.duration + /* @__PURE__ */ ze(t);
|
|
1397
1397
|
}
|
|
1398
1398
|
get time() {
|
|
1399
|
-
return /* @__PURE__ */
|
|
1399
|
+
return /* @__PURE__ */ ze(Number(this.animation.currentTime) || 0);
|
|
1400
1400
|
}
|
|
1401
1401
|
set time(t) {
|
|
1402
|
-
this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */
|
|
1402
|
+
this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ $e(t);
|
|
1403
1403
|
}
|
|
1404
1404
|
/**
|
|
1405
1405
|
* The playback speed of the animation.
|
|
@@ -1424,7 +1424,7 @@ class fl extends _i {
|
|
|
1424
1424
|
* Attaches a timeline to the animation, for instance the `ScrollTimeline`.
|
|
1425
1425
|
*/
|
|
1426
1426
|
attachTimeline({ timeline: t, observe: n }) {
|
|
1427
|
-
return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, t && Ph() ? (this.animation.timeline = t,
|
|
1427
|
+
return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, t && Ph() ? (this.animation.timeline = t, We) : n(this);
|
|
1428
1428
|
}
|
|
1429
1429
|
}
|
|
1430
1430
|
const ml = {
|
|
@@ -1467,7 +1467,7 @@ class Ah extends fl {
|
|
|
1467
1467
|
}
|
|
1468
1468
|
}
|
|
1469
1469
|
const Bo = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
|
|
1470
|
-
(
|
|
1470
|
+
(Ge.test(e) || e === "0") && // And it contains numbers and/or colors
|
|
1471
1471
|
!e.startsWith("url("));
|
|
1472
1472
|
function Lh(e) {
|
|
1473
1473
|
const t = e[0];
|
|
@@ -1484,7 +1484,7 @@ function Vh(e, t, n, s) {
|
|
|
1484
1484
|
if (t === "display" || t === "visibility")
|
|
1485
1485
|
return !0;
|
|
1486
1486
|
const r = e[e.length - 1], o = Bo(i, t), l = Bo(r, t);
|
|
1487
|
-
return
|
|
1487
|
+
return Kt(o === l, `You are trying to animate ${t} from "${i}" to "${r}". "${o ? r : i}" is not an animatable value.`, "value-not-animatable"), !o || !l ? !1 : Lh(e) || (n === "spring" || Bi(n)) && s;
|
|
1488
1488
|
}
|
|
1489
1489
|
function si(e) {
|
|
1490
1490
|
e.duration = 0, e.type = "keyframes";
|
|
@@ -1543,7 +1543,7 @@ class $h extends _i {
|
|
|
1543
1543
|
}) : new Fi(f);
|
|
1544
1544
|
b.finished.then(() => {
|
|
1545
1545
|
this.notifyFinished();
|
|
1546
|
-
}).catch(
|
|
1546
|
+
}).catch(We), this.pendingTimeline && (this.stopTimeline = b.attachTimeline(this.pendingTimeline), this.pendingTimeline = void 0), this._animation = b;
|
|
1547
1547
|
}
|
|
1548
1548
|
get finished() {
|
|
1549
1549
|
return this._animation ? this.animation.finished : this._finished;
|
|
@@ -1691,7 +1691,7 @@ function Yh(e) {
|
|
|
1691
1691
|
}
|
|
1692
1692
|
const Uh = 4;
|
|
1693
1693
|
function gl(e, t, n = 1) {
|
|
1694
|
-
|
|
1694
|
+
Ke(n <= Uh, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
|
|
1695
1695
|
const [s, i] = Yh(e);
|
|
1696
1696
|
if (!s)
|
|
1697
1697
|
return;
|
|
@@ -1719,7 +1719,7 @@ const Hh = {
|
|
|
1719
1719
|
type: "keyframes",
|
|
1720
1720
|
ease: [0.25, 0.1, 0.35, 1],
|
|
1721
1721
|
duration: 0.3
|
|
1722
|
-
}, Zh = (e, { keyframes: t }) => t.length > 2 ? Gh :
|
|
1722
|
+
}, Zh = (e, { keyframes: t }) => t.length > 2 ? Gh : Jt.has(e) ? e.startsWith("scale") ? Xh(t[1]) : Hh : Kh, qh = (e) => e !== null;
|
|
1723
1723
|
function Jh(e, { repeat: t, repeatType: n = "loop" }, s) {
|
|
1724
1724
|
const i = e.filter(qh), r = t && n !== "loop" && t % 2 === 1 ? 0 : i.length - 1;
|
|
1725
1725
|
return i[r];
|
|
@@ -1741,7 +1741,7 @@ function Qh({ when: e, delay: t, delayChildren: n, staggerChildren: s, staggerDi
|
|
|
1741
1741
|
const Wi = (e, t, n, s = {}, i, r) => (o) => {
|
|
1742
1742
|
const l = zi(s, e) || {}, c = l.delay || s.delay || 0;
|
|
1743
1743
|
let { elapsed: u = 0 } = s;
|
|
1744
|
-
u = u - /* @__PURE__ */
|
|
1744
|
+
u = u - /* @__PURE__ */ $e(c);
|
|
1745
1745
|
const d = {
|
|
1746
1746
|
keyframes: Array.isArray(n) ? n : [null, n],
|
|
1747
1747
|
ease: "easeOut",
|
|
@@ -1758,12 +1758,12 @@ const Wi = (e, t, n, s = {}, i, r) => (o) => {
|
|
|
1758
1758
|
motionValue: t,
|
|
1759
1759
|
element: r ? void 0 : i
|
|
1760
1760
|
};
|
|
1761
|
-
Qh(l) || Object.assign(d, Zh(e, d)), d.duration && (d.duration = /* @__PURE__ */
|
|
1761
|
+
Qh(l) || Object.assign(d, Zh(e, d)), d.duration && (d.duration = /* @__PURE__ */ $e(d.duration)), d.repeatDelay && (d.repeatDelay = /* @__PURE__ */ $e(d.repeatDelay)), d.from !== void 0 && (d.keyframes[0] = d.from);
|
|
1762
1762
|
let h = !1;
|
|
1763
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
|
+
be.update(() => {
|
|
1767
1767
|
d.onUpdate(f), d.onComplete();
|
|
1768
1768
|
});
|
|
1769
1769
|
return;
|
|
@@ -1788,7 +1788,7 @@ function Yi(e, t, n, s) {
|
|
|
1788
1788
|
}
|
|
1789
1789
|
return t;
|
|
1790
1790
|
}
|
|
1791
|
-
function
|
|
1791
|
+
function Wt(e, t, n) {
|
|
1792
1792
|
const s = e.getProps();
|
|
1793
1793
|
return Yi(s, t, n !== void 0 ? n : s.custom, e);
|
|
1794
1794
|
}
|
|
@@ -1799,7 +1799,7 @@ const yl = /* @__PURE__ */ new Set([
|
|
|
1799
1799
|
"left",
|
|
1800
1800
|
"right",
|
|
1801
1801
|
"bottom",
|
|
1802
|
-
...
|
|
1802
|
+
...qt
|
|
1803
1803
|
]), Yo = 30, ef = (e) => !isNaN(parseFloat(e));
|
|
1804
1804
|
class tf {
|
|
1805
1805
|
/**
|
|
@@ -1869,7 +1869,7 @@ class tf {
|
|
|
1869
1869
|
this.events[t] || (this.events[t] = new Pi());
|
|
1870
1870
|
const s = this.events[t].add(n);
|
|
1871
1871
|
return t === "change" ? () => {
|
|
1872
|
-
s(),
|
|
1872
|
+
s(), be.read(() => {
|
|
1873
1873
|
this.events.change.getSize() || this.stop();
|
|
1874
1874
|
});
|
|
1875
1875
|
} : s;
|
|
@@ -2011,7 +2011,7 @@ function sf(e) {
|
|
|
2011
2011
|
return ii(e) ? e[e.length - 1] || 0 : e;
|
|
2012
2012
|
}
|
|
2013
2013
|
function of(e, t) {
|
|
2014
|
-
const n =
|
|
2014
|
+
const n = Wt(e, t);
|
|
2015
2015
|
let { transitionEnd: s = {}, transition: i = {}, ...r } = n || {};
|
|
2016
2016
|
r = { ...r, ...s };
|
|
2017
2017
|
for (const o in r) {
|
|
@@ -2019,9 +2019,9 @@ function of(e, t) {
|
|
|
2019
2019
|
nf(e, o, l);
|
|
2020
2020
|
}
|
|
2021
2021
|
}
|
|
2022
|
-
const
|
|
2022
|
+
const Me = (e) => !!(e && e.getVelocity);
|
|
2023
2023
|
function rf(e) {
|
|
2024
|
-
return !!(
|
|
2024
|
+
return !!(Me(e) && e.add);
|
|
2025
2025
|
}
|
|
2026
2026
|
function oi(e, t) {
|
|
2027
2027
|
const n = e.getValue("willChange");
|
|
@@ -2064,7 +2064,7 @@ function Hi(e, t, { delay: n = 0, transitionOverride: s, type: i } = {}) {
|
|
|
2064
2064
|
if (window.MotionHandoffAnimation) {
|
|
2065
2065
|
const I = vl(e);
|
|
2066
2066
|
if (I) {
|
|
2067
|
-
const M = window.MotionHandoffAnimation(I, f,
|
|
2067
|
+
const M = window.MotionHandoffAnimation(I, f, be);
|
|
2068
2068
|
M !== null && (b.startTime = M, y = !0);
|
|
2069
2069
|
}
|
|
2070
2070
|
}
|
|
@@ -2075,7 +2075,7 @@ function Hi(e, t, { delay: n = 0, transitionOverride: s, type: i } = {}) {
|
|
|
2075
2075
|
k && d.push(k);
|
|
2076
2076
|
}
|
|
2077
2077
|
if (o) {
|
|
2078
|
-
const f = () =>
|
|
2078
|
+
const f = () => be.update(() => {
|
|
2079
2079
|
o && of(e, o);
|
|
2080
2080
|
});
|
|
2081
2081
|
d.length ? Promise.all(d).then(f) : f();
|
|
@@ -2083,7 +2083,7 @@ function Hi(e, t, { delay: n = 0, transitionOverride: s, type: i } = {}) {
|
|
|
2083
2083
|
return d;
|
|
2084
2084
|
}
|
|
2085
2085
|
function ri(e, t, n = {}) {
|
|
2086
|
-
const s =
|
|
2086
|
+
const s = Wt(e, t, n.type === "exit" ? e.presenceContext?.custom : void 0);
|
|
2087
2087
|
let { transition: i = e.getDefaultTransition() || {} } = s || {};
|
|
2088
2088
|
n.transitionOverride && (i = n.transitionOverride);
|
|
2089
2089
|
const r = s ? () => Promise.all(Hi(e, s, n)) : () => Promise.resolve(), o = e.variantChildren && e.variantChildren.size ? (c = 0) => {
|
|
@@ -2114,7 +2114,7 @@ function uf(e, t, n = {}) {
|
|
|
2114
2114
|
} else if (typeof t == "string")
|
|
2115
2115
|
s = ri(e, t, n);
|
|
2116
2116
|
else {
|
|
2117
|
-
const i = typeof t == "function" ?
|
|
2117
|
+
const i = typeof t == "function" ? Wt(e, t, n.custom) : t;
|
|
2118
2118
|
s = Promise.all(Hi(e, i, n));
|
|
2119
2119
|
}
|
|
2120
2120
|
return s.then(() => {
|
|
@@ -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 = [
|
|
2127
|
+
}, wl = (e) => (t) => t.test(e), Tl = [Zt, 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
|
}
|
|
@@ -2141,19 +2141,19 @@ function mf(e) {
|
|
|
2141
2141
|
return s !== n && (r *= 100), t + "(" + r + i + ")";
|
|
2142
2142
|
}
|
|
2143
2143
|
const pf = /\b([a-z-]*)\(.*?\)/gu, ai = {
|
|
2144
|
-
...
|
|
2144
|
+
...Ge,
|
|
2145
2145
|
getAnimatableNone: (e) => {
|
|
2146
2146
|
const t = e.match(pf);
|
|
2147
2147
|
return t ? t.map(mf).join(" ") : e;
|
|
2148
2148
|
}
|
|
2149
2149
|
}, li = {
|
|
2150
|
-
...
|
|
2150
|
+
...Ge,
|
|
2151
2151
|
getAnimatableNone: (e) => {
|
|
2152
|
-
const t =
|
|
2153
|
-
return
|
|
2152
|
+
const t = Ge.parse(e);
|
|
2153
|
+
return Ge.createTransformer(e)(t.map((s) => typeof s == "number" ? 0 : typeof s == "object" ? { ...s, alpha: 1 } : s));
|
|
2154
2154
|
}
|
|
2155
2155
|
}, Ho = {
|
|
2156
|
-
...
|
|
2156
|
+
...Zt,
|
|
2157
2157
|
transform: Math.round
|
|
2158
2158
|
}, gf = {
|
|
2159
2159
|
rotate: ct,
|
|
@@ -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: Ne,
|
|
2249
|
+
backgroundColor: Ne,
|
|
2250
|
+
outlineColor: Ne,
|
|
2251
|
+
fill: Ne,
|
|
2252
|
+
stroke: Ne,
|
|
2253
2253
|
// Border props
|
|
2254
|
-
borderColor:
|
|
2255
|
-
borderTopColor:
|
|
2256
|
-
borderRightColor:
|
|
2257
|
-
borderBottomColor:
|
|
2258
|
-
borderLeftColor:
|
|
2254
|
+
borderColor: Ne,
|
|
2255
|
+
borderTopColor: Ne,
|
|
2256
|
+
borderRightColor: Ne,
|
|
2257
|
+
borderBottomColor: Ne,
|
|
2258
|
+
borderLeftColor: Ne,
|
|
2259
2259
|
filter: ai,
|
|
2260
2260
|
WebkitFilter: ai,
|
|
2261
2261
|
mask: li,
|
|
@@ -2263,7 +2263,7 @@ const pf = /\b([a-z-]*)\(.*?\)/gu, ai = {
|
|
|
2263
2263
|
}, Sl = (e) => bf[e], yf = /* @__PURE__ */ new Set([ai, li]);
|
|
2264
2264
|
function Nl(e, t) {
|
|
2265
2265
|
let n = Sl(e);
|
|
2266
|
-
return yf.has(n) || (n =
|
|
2266
|
+
return yf.has(n) || (n = Ge), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
|
|
2267
2267
|
}
|
|
2268
2268
|
const xf = /* @__PURE__ */ new Set(["auto", "none", "0"]);
|
|
2269
2269
|
function vf(e, t, n) {
|
|
@@ -2359,18 +2359,18 @@ const kl = (e, t) => t && typeof e == "number" ? t.transform(e) : e;
|
|
|
2359
2359
|
function ci(e) {
|
|
2360
2360
|
return ja(e) && "offsetHeight" in e;
|
|
2361
2361
|
}
|
|
2362
|
-
const { schedule: Ki } = /* @__PURE__ */ Ha(queueMicrotask, !1),
|
|
2362
|
+
const { schedule: Ki } = /* @__PURE__ */ Ha(queueMicrotask, !1), He = {
|
|
2363
2363
|
x: !1,
|
|
2364
2364
|
y: !1
|
|
2365
2365
|
};
|
|
2366
2366
|
function El() {
|
|
2367
|
-
return
|
|
2367
|
+
return He.x || He.y;
|
|
2368
2368
|
}
|
|
2369
2369
|
function Sf(e) {
|
|
2370
|
-
return e === "x" || e === "y" ?
|
|
2371
|
-
|
|
2372
|
-
}) :
|
|
2373
|
-
|
|
2370
|
+
return e === "x" || e === "y" ? He[e] ? null : (He[e] = !0, () => {
|
|
2371
|
+
He[e] = !1;
|
|
2372
|
+
}) : He.x || He.y ? null : (He.x = He.y = !0, () => {
|
|
2373
|
+
He.x = He.y = !1;
|
|
2374
2374
|
});
|
|
2375
2375
|
}
|
|
2376
2376
|
function Cl(e, t) {
|
|
@@ -2513,9 +2513,9 @@ function Df(e, t) {
|
|
|
2513
2513
|
};
|
|
2514
2514
|
}
|
|
2515
2515
|
const Yn = /* @__PURE__ */ new Set();
|
|
2516
|
-
let
|
|
2516
|
+
let Ft;
|
|
2517
2517
|
function _f() {
|
|
2518
|
-
|
|
2518
|
+
Ft = () => {
|
|
2519
2519
|
const e = {
|
|
2520
2520
|
get width() {
|
|
2521
2521
|
return window.innerWidth;
|
|
@@ -2525,11 +2525,11 @@ function _f() {
|
|
|
2525
2525
|
}
|
|
2526
2526
|
};
|
|
2527
2527
|
Yn.forEach((t) => t(e));
|
|
2528
|
-
}, window.addEventListener("resize",
|
|
2528
|
+
}, window.addEventListener("resize", Ft);
|
|
2529
2529
|
}
|
|
2530
2530
|
function Ff(e) {
|
|
2531
|
-
return Yn.add(e),
|
|
2532
|
-
Yn.delete(e), !Yn.size && typeof
|
|
2531
|
+
return Yn.add(e), Ft || _f(), () => {
|
|
2532
|
+
Yn.delete(e), !Yn.size && typeof Ft == "function" && (window.removeEventListener("resize", Ft), Ft = void 0);
|
|
2533
2533
|
};
|
|
2534
2534
|
}
|
|
2535
2535
|
function Zo(e, t) {
|
|
@@ -2538,15 +2538,15 @@ 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, Ne, Ge], Bf = (e) => $f.find(wl(e)), qo = () => ({
|
|
2542
2542
|
translate: 0,
|
|
2543
2543
|
scale: 1,
|
|
2544
2544
|
origin: 0,
|
|
2545
2545
|
originPoint: 0
|
|
2546
|
-
}),
|
|
2546
|
+
}), $t = () => ({
|
|
2547
2547
|
x: qo(),
|
|
2548
2548
|
y: qo()
|
|
2549
|
-
}), Jo = () => ({ min: 0, max: 0 }),
|
|
2549
|
+
}), Jo = () => ({ min: 0, max: 0 }), Se = () => ({
|
|
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 (Me(i))
|
|
2578
2578
|
e.addValue(s, i);
|
|
2579
|
-
else if (
|
|
2579
|
+
else if (Me(r))
|
|
2580
2580
|
e.addValue(s, ft(i, { owner: e }));
|
|
2581
2581
|
else if (r !== i)
|
|
2582
2582
|
if (e.hasValue(s)) {
|
|
@@ -2632,14 +2632,14 @@ class Ll {
|
|
|
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
2634
|
const m = Ve.now();
|
|
2635
|
-
this.renderScheduledAt < m && (this.renderScheduledAt = m,
|
|
2635
|
+
this.renderScheduledAt < m && (this.renderScheduledAt = m, be.render(this.render, !1, !0));
|
|
2636
2636
|
};
|
|
2637
2637
|
const { latestValues: u, renderState: d } = l;
|
|
2638
2638
|
this.latestValues = u, this.baseTarget = { ...u }, this.initialValues = n.initial ? { ...u } : {}, this.renderState = d, this.parent = t, this.props = n, this.presenceContext = s, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = i, this.skipAnimationsConfig = r, this.options = c, this.blockInitialAnimation = !!o, this.isControllingVariants = ls(n), this.isVariantNode = Ml(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
|
|
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 && Me(p) && p.set(u[m]);
|
|
2643
2643
|
}
|
|
2644
2644
|
}
|
|
2645
2645
|
mount(t) {
|
|
@@ -2672,17 +2672,17 @@ class Ll {
|
|
|
2672
2672
|
keyframes: l,
|
|
2673
2673
|
times: c,
|
|
2674
2674
|
ease: u,
|
|
2675
|
-
duration: /* @__PURE__ */
|
|
2675
|
+
duration: /* @__PURE__ */ $e(d)
|
|
2676
2676
|
}), f = o(h);
|
|
2677
2677
|
this.valueSubscriptions.set(t, () => {
|
|
2678
2678
|
f(), h.cancel();
|
|
2679
2679
|
});
|
|
2680
2680
|
return;
|
|
2681
2681
|
}
|
|
2682
|
-
const s =
|
|
2682
|
+
const s = Jt.has(t);
|
|
2683
2683
|
s && this.onBindTransform && this.onBindTransform();
|
|
2684
2684
|
const i = n.on("change", (o) => {
|
|
2685
|
-
this.latestValues[t] = o, this.props.onUpdate &&
|
|
2685
|
+
this.latestValues[t] = o, this.props.onUpdate && be.preRender(this.notifyUpdate), s && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
|
|
2686
2686
|
});
|
|
2687
2687
|
let r;
|
|
2688
2688
|
typeof window < "u" && window.MotionCheckAppearSync && (r = window.MotionCheckAppearSync(this, t, n)), this.valueSubscriptions.set(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) : Se();
|
|
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) &&
|
|
2802
|
+
return s != null && (typeof s == "string" && (Ia(s) || Ma(s)) ? s = parseFloat(s) : !Bf(s) && Ge.test(n) && (s = Nl(t, n)), this.setBaseTarget(t, Me(s) ? s.get() : s)), Me(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 && !Me(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,12 +2851,12 @@ 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
|
+
Me(t) && (this.childSubscription = t.on("change", (n) => {
|
|
2855
2855
|
this.current && (this.current.textContent = `${n}`);
|
|
2856
2856
|
}));
|
|
2857
2857
|
}
|
|
2858
2858
|
}
|
|
2859
|
-
class
|
|
2859
|
+
class pt {
|
|
2860
2860
|
constructor(t) {
|
|
2861
2861
|
this.isMounted = !1, this.node = t;
|
|
2862
2862
|
}
|
|
@@ -2889,7 +2889,7 @@ function Cs(e) {
|
|
|
2889
2889
|
function di({ scale: e, scaleX: t, scaleY: n }) {
|
|
2890
2890
|
return !Cs(e) || !Cs(t) || !Cs(n);
|
|
2891
2891
|
}
|
|
2892
|
-
function
|
|
2892
|
+
function kt(e) {
|
|
2893
2893
|
return di(e) || Dl(e) || e.z || e.rotate || e.rotateX || e.rotateY || e.skewX || e.skewY;
|
|
2894
2894
|
}
|
|
2895
2895
|
function Dl(e) {
|
|
@@ -2921,21 +2921,21 @@ function Gf(e, t, n, s = !1) {
|
|
|
2921
2921
|
for (let l = 0; l < i; l++) {
|
|
2922
2922
|
r = n[l], o = r.projectionDelta;
|
|
2923
2923
|
const { visualElement: c } = r.options;
|
|
2924
|
-
c && c.props.style && c.props.style.display === "contents" || (s && r.options.layoutScroll && r.scroll && r !== r.root &&
|
|
2924
|
+
c && c.props.style && c.props.style.display === "contents" || (s && r.options.layoutScroll && r.scroll && r !== r.root && zt(e, {
|
|
2925
2925
|
x: -r.scroll.offset.x,
|
|
2926
2926
|
y: -r.scroll.offset.y
|
|
2927
|
-
}), o && (t.x *= o.x.scale, t.y *= o.y.scale, _l(e, o)), s &&
|
|
2927
|
+
}), o && (t.x *= o.x.scale, t.y *= o.y.scale, _l(e, o)), s && kt(r.latestValues) && zt(e, r.latestValues));
|
|
2928
2928
|
}
|
|
2929
2929
|
t.x < sr && t.x > nr && (t.x = 1), t.y < sr && t.y > nr && (t.y = 1);
|
|
2930
2930
|
}
|
|
2931
|
-
function
|
|
2931
|
+
function Bt(e, t) {
|
|
2932
2932
|
e.min = e.min + t, e.max = e.max + t;
|
|
2933
2933
|
}
|
|
2934
2934
|
function ir(e, t, n, s, i = 0.5) {
|
|
2935
2935
|
const r = xe(e.min, e.max, i);
|
|
2936
2936
|
hi(e, t, n, r, s);
|
|
2937
2937
|
}
|
|
2938
|
-
function
|
|
2938
|
+
function zt(e, t) {
|
|
2939
2939
|
ir(e.x, t.x, t.scaleX, t.scale, t.originX), ir(e.y, t.y, t.scaleY, t.scale, t.originY);
|
|
2940
2940
|
}
|
|
2941
2941
|
function Fl(e, t) {
|
|
@@ -2943,18 +2943,18 @@ function Fl(e, t) {
|
|
|
2943
2943
|
}
|
|
2944
2944
|
function Kf(e, t, n) {
|
|
2945
2945
|
const s = Fl(e, n), { scroll: i } = t;
|
|
2946
|
-
return i && (
|
|
2946
|
+
return i && (Bt(s.x, i.offset.x), Bt(s.y, i.offset.y)), s;
|
|
2947
2947
|
}
|
|
2948
2948
|
const Zf = {
|
|
2949
2949
|
x: "translateX",
|
|
2950
2950
|
y: "translateY",
|
|
2951
2951
|
z: "translateZ",
|
|
2952
2952
|
transformPerspective: "perspective"
|
|
2953
|
-
}, qf =
|
|
2953
|
+
}, qf = qt.length;
|
|
2954
2954
|
function Jf(e, t, n) {
|
|
2955
2955
|
let s = "", i = !0;
|
|
2956
2956
|
for (let r = 0; r < qf; r++) {
|
|
2957
|
-
const o =
|
|
2957
|
+
const o = qt[r], l = e[o];
|
|
2958
2958
|
if (l === void 0)
|
|
2959
2959
|
continue;
|
|
2960
2960
|
let c = !0;
|
|
@@ -2981,7 +2981,7 @@ function Qi(e, t, n) {
|
|
|
2981
2981
|
let o = !1, l = !1;
|
|
2982
2982
|
for (const c in t) {
|
|
2983
2983
|
const u = t[c];
|
|
2984
|
-
if (
|
|
2984
|
+
if (Jt.has(c)) {
|
|
2985
2985
|
o = !0;
|
|
2986
2986
|
continue;
|
|
2987
2987
|
} else if (Ga(c)) {
|
|
@@ -3023,10 +3023,10 @@ const on = {
|
|
|
3023
3023
|
}
|
|
3024
3024
|
}, Qf = {
|
|
3025
3025
|
correct: (e, { treeScale: t, projectionDelta: n }) => {
|
|
3026
|
-
const s = e, i =
|
|
3026
|
+
const s = e, i = Ge.parse(e);
|
|
3027
3027
|
if (i.length > 5)
|
|
3028
3028
|
return s;
|
|
3029
|
-
const r =
|
|
3029
|
+
const r = Ge.createTransformer(e), o = typeof i[0] != "number" ? 1 : 0, l = n.x.scale * t.x, c = n.y.scale * t.y;
|
|
3030
3030
|
i[0 + o] /= l, i[1 + o] /= c;
|
|
3031
3031
|
const u = xe(l, c, 0.5);
|
|
3032
3032
|
return typeof i[2 + o] == "number" && (i[2 + o] /= u), typeof i[3 + o] == "number" && (i[3 + o] /= u), r(i);
|
|
@@ -3048,14 +3048,14 @@ const on = {
|
|
|
3048
3048
|
boxShadow: Qf
|
|
3049
3049
|
};
|
|
3050
3050
|
function Bl(e, { layout: t, layoutId: n }) {
|
|
3051
|
-
return
|
|
3051
|
+
return Jt.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!fi[e] || e === "opacity");
|
|
3052
3052
|
}
|
|
3053
3053
|
function eo(e, t, n) {
|
|
3054
3054
|
const s = e.style, i = t?.style, r = {};
|
|
3055
3055
|
if (!s)
|
|
3056
3056
|
return r;
|
|
3057
3057
|
for (const o in s)
|
|
3058
|
-
(
|
|
3058
|
+
(Me(s[o]) || i && Me(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) {
|
|
@@ -3066,7 +3066,7 @@ class zl extends Vl {
|
|
|
3066
3066
|
super(...arguments), this.type = "html", this.renderInstance = $l;
|
|
3067
3067
|
}
|
|
3068
3068
|
readValueFromInstance(t, n) {
|
|
3069
|
-
if (
|
|
3069
|
+
if (Jt.has(n))
|
|
3070
3070
|
return this.projection?.isProjecting ? Js(n) : xh(t, n);
|
|
3071
3071
|
{
|
|
3072
3072
|
const s = e0(t), i = (Ga(n) ? s.getPropertyValue(n) : s[n]) || 0;
|
|
@@ -3103,7 +3103,7 @@ class n0 extends Ll {
|
|
|
3103
3103
|
delete n.output[t];
|
|
3104
3104
|
}
|
|
3105
3105
|
measureInstanceViewportBox() {
|
|
3106
|
-
return
|
|
3106
|
+
return Se();
|
|
3107
3107
|
}
|
|
3108
3108
|
build(t, n) {
|
|
3109
3109
|
Object.assign(t.output, n);
|
|
@@ -3187,21 +3187,21 @@ 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 (
|
|
3191
|
-
const r =
|
|
3190
|
+
if (Me(e[i]) || Me(t[i])) {
|
|
3191
|
+
const r = qt.indexOf(i) !== -1 ? "attr" + i.charAt(0).toUpperCase() + i.substring(1) : i;
|
|
3192
3192
|
s[r] = e[i];
|
|
3193
3193
|
}
|
|
3194
3194
|
return s;
|
|
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 = Se;
|
|
3199
3199
|
}
|
|
3200
3200
|
getBaseTargetFromProps(t, n) {
|
|
3201
3201
|
return t[n];
|
|
3202
3202
|
}
|
|
3203
3203
|
readValueFromInstance(t, n) {
|
|
3204
|
-
if (
|
|
3204
|
+
if (Jt.has(n)) {
|
|
3205
3205
|
const s = Sl(n);
|
|
3206
3206
|
return s && s.default || 0;
|
|
3207
3207
|
}
|
|
@@ -3253,7 +3253,7 @@ function d0(e) {
|
|
|
3253
3253
|
function h0(e) {
|
|
3254
3254
|
let t = d0(e), n = rr(), s = !0;
|
|
3255
3255
|
const i = (c) => (u, d) => {
|
|
3256
|
-
const h =
|
|
3256
|
+
const h = Wt(e, d, c === "exit" ? e.presenceContext?.custom : void 0);
|
|
3257
3257
|
if (h) {
|
|
3258
3258
|
const { transition: f, transitionEnd: m, ...p } = h;
|
|
3259
3259
|
u = { ...u, ...p, ...m };
|
|
@@ -3309,7 +3309,7 @@ function h0(e) {
|
|
|
3309
3309
|
v && (!Y || P) && h.push(...F.map((R) => {
|
|
3310
3310
|
const C = { type: y };
|
|
3311
3311
|
if (typeof R == "string" && s && !Y && e.manuallyAnimateOnMount && e.parent) {
|
|
3312
|
-
const { parent: _ } = e, j =
|
|
3312
|
+
const { parent: _ } = e, j = Wt(_, R);
|
|
3313
3313
|
if (_.enteringChildren && j) {
|
|
3314
3314
|
const { delayChildren: T } = j.transition || {};
|
|
3315
3315
|
C.delay = pl(_.enteringChildren, e, T);
|
|
@@ -3324,7 +3324,7 @@ function h0(e) {
|
|
|
3324
3324
|
if (f.size) {
|
|
3325
3325
|
const x = {};
|
|
3326
3326
|
if (typeof u.initial != "boolean") {
|
|
3327
|
-
const y =
|
|
3327
|
+
const y = Wt(e, Array.isArray(u.initial) ? u.initial[0] : u.initial);
|
|
3328
3328
|
y && y.transition && (x.transition = y.transition);
|
|
3329
3329
|
}
|
|
3330
3330
|
f.forEach((y) => {
|
|
@@ -3357,7 +3357,7 @@ function h0(e) {
|
|
|
3357
3357
|
function f0(e, t) {
|
|
3358
3358
|
return typeof t == "string" ? t !== e : Array.isArray(t) ? !Kl(t, e) : !1;
|
|
3359
3359
|
}
|
|
3360
|
-
function
|
|
3360
|
+
function Tt(e = !1) {
|
|
3361
3361
|
return {
|
|
3362
3362
|
isActive: e,
|
|
3363
3363
|
protectedKeys: {},
|
|
@@ -3367,19 +3367,19 @@ function vt(e = !1) {
|
|
|
3367
3367
|
}
|
|
3368
3368
|
function rr() {
|
|
3369
3369
|
return {
|
|
3370
|
-
animate:
|
|
3371
|
-
whileInView:
|
|
3372
|
-
whileHover:
|
|
3373
|
-
whileTap:
|
|
3374
|
-
whileDrag:
|
|
3375
|
-
whileFocus:
|
|
3376
|
-
exit:
|
|
3370
|
+
animate: Tt(!0),
|
|
3371
|
+
whileInView: Tt(),
|
|
3372
|
+
whileHover: Tt(),
|
|
3373
|
+
whileTap: Tt(),
|
|
3374
|
+
whileDrag: Tt(),
|
|
3375
|
+
whileFocus: Tt(),
|
|
3376
|
+
exit: Tt()
|
|
3377
3377
|
};
|
|
3378
3378
|
}
|
|
3379
3379
|
function ar(e, t) {
|
|
3380
3380
|
e.min = t.min, e.max = t.max;
|
|
3381
3381
|
}
|
|
3382
|
-
function
|
|
3382
|
+
function Ue(e, t) {
|
|
3383
3383
|
ar(e.x, t.x), ar(e.y, t.y);
|
|
3384
3384
|
}
|
|
3385
3385
|
function lr(e, t) {
|
|
@@ -3478,12 +3478,12 @@ function E0(e, t, n, s, i, r) {
|
|
|
3478
3478
|
function Tr(e, t) {
|
|
3479
3479
|
return e[t] !== void 0 ? e[t] : e.borderRadius;
|
|
3480
3480
|
}
|
|
3481
|
-
const C0 = /* @__PURE__ */ tc(0, 0.5, $a), P0 = /* @__PURE__ */ tc(0.5, 0.95,
|
|
3481
|
+
const C0 = /* @__PURE__ */ tc(0, 0.5, $a), P0 = /* @__PURE__ */ tc(0.5, 0.95, We);
|
|
3482
3482
|
function tc(e, t, n) {
|
|
3483
|
-
return (s) => s < e ? 0 : s > t ? 1 : n(/* @__PURE__ */
|
|
3483
|
+
return (s) => s < e ? 0 : s > t ? 1 : n(/* @__PURE__ */ Ut(e, t, s));
|
|
3484
3484
|
}
|
|
3485
3485
|
function nc(e, t, n) {
|
|
3486
|
-
const s =
|
|
3486
|
+
const s = Me(e) ? e : ft(e);
|
|
3487
3487
|
return s.start(Wi("", s, t, n)), s.animation;
|
|
3488
3488
|
}
|
|
3489
3489
|
function xn(e, t, n, s = { passive: !0 }) {
|
|
@@ -3498,7 +3498,7 @@ class j0 {
|
|
|
3498
3498
|
Ci(this.children, t), this.isDirty = !0;
|
|
3499
3499
|
}
|
|
3500
3500
|
remove(t) {
|
|
3501
|
-
|
|
3501
|
+
Yt(this.children, t), this.isDirty = !0;
|
|
3502
3502
|
}
|
|
3503
3503
|
forEach(t) {
|
|
3504
3504
|
this.isDirty && this.children.sort(I0), this.isDirty = !1, this.children.forEach(t);
|
|
@@ -3509,10 +3509,10 @@ function M0(e, t) {
|
|
|
3509
3509
|
const r = i - n;
|
|
3510
3510
|
r >= t && (ht(s), e(r - t));
|
|
3511
3511
|
};
|
|
3512
|
-
return
|
|
3512
|
+
return be.setup(s, !0), () => ht(s);
|
|
3513
3513
|
}
|
|
3514
3514
|
function Un(e) {
|
|
3515
|
-
return
|
|
3515
|
+
return Me(e) ? e.get() : e;
|
|
3516
3516
|
}
|
|
3517
3517
|
class R0 {
|
|
3518
3518
|
constructor() {
|
|
@@ -3525,12 +3525,12 @@ class R0 {
|
|
|
3525
3525
|
if (s === t || s === this.lead || s === this.prevLead)
|
|
3526
3526
|
continue;
|
|
3527
3527
|
const i = s.instance;
|
|
3528
|
-
i && i.isConnected === !1 && s.isPresent !== !1 && !s.snapshot &&
|
|
3528
|
+
i && i.isConnected === !1 && s.isPresent !== !1 && !s.snapshot && Yt(this.members, s);
|
|
3529
3529
|
}
|
|
3530
3530
|
t.scheduleRender();
|
|
3531
3531
|
}
|
|
3532
3532
|
remove(t) {
|
|
3533
|
-
if (
|
|
3533
|
+
if (Yt(this.members, t), t === this.prevLead && (this.prevLead = void 0), t === this.lead) {
|
|
3534
3534
|
const n = this.members[this.members.length - 1];
|
|
3535
3535
|
n && this.promote(n);
|
|
3536
3536
|
}
|
|
@@ -3607,7 +3607,7 @@ function sc(e) {
|
|
|
3607
3607
|
const n = vl(t);
|
|
3608
3608
|
if (window.MotionHasOptimisedAnimation(n, "transform")) {
|
|
3609
3609
|
const { layout: i, layoutId: r } = e.options;
|
|
3610
|
-
window.MotionCancelOptimisedAnimation(n, "transform",
|
|
3610
|
+
window.MotionCancelOptimisedAnimation(n, "transform", be, !(i || r));
|
|
3611
3611
|
}
|
|
3612
3612
|
const { parent: s } = e;
|
|
3613
3613
|
s && !s.hasCheckedOptimisedAppear && sc(s);
|
|
@@ -3645,7 +3645,7 @@ function ic({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
3645
3645
|
if (u && !u.current && u.mount(o), this.root.nodes.add(this), this.parent && this.parent.children.add(this), this.root.hasTreeAnimated && (c || l) && (this.isLayoutDirty = !0), e) {
|
|
3646
3646
|
let d, h = 0;
|
|
3647
3647
|
const f = () => this.root.updateBlockedByResize = !1;
|
|
3648
|
-
|
|
3648
|
+
be.read(() => {
|
|
3649
3649
|
h = window.innerWidth;
|
|
3650
3650
|
}), e(o, () => {
|
|
3651
3651
|
const m = window.innerWidth;
|
|
@@ -3735,10 +3735,10 @@ function ic({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
3735
3735
|
this.nodes.forEach(F0), this.sharedNodes.forEach(Y0);
|
|
3736
3736
|
}
|
|
3737
3737
|
scheduleUpdateProjection() {
|
|
3738
|
-
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0,
|
|
3738
|
+
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, be.preRender(this.updateProjection, !1, !0));
|
|
3739
3739
|
}
|
|
3740
3740
|
scheduleCheckAfterUnmount() {
|
|
3741
|
-
|
|
3741
|
+
be.postRender(() => {
|
|
3742
3742
|
this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
|
|
3743
3743
|
});
|
|
3744
3744
|
}
|
|
@@ -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 = Se(), 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
|
}
|
|
@@ -3776,7 +3776,7 @@ function ic({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
3776
3776
|
if (!i)
|
|
3777
3777
|
return;
|
|
3778
3778
|
const o = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, l = this.projectionDelta && !Jl(this.projectionDelta), c = this.getTransformTemplate(), u = c ? c(this.latestValues, "") : void 0, d = u !== this.prevTransformTemplateValue;
|
|
3779
|
-
o && this.instance && (l ||
|
|
3779
|
+
o && this.instance && (l || kt(this.latestValues) || d) && (i(this.instance, u), this.shouldResetTransform = !1, this.scheduleRender());
|
|
3780
3780
|
}
|
|
3781
3781
|
measure(o = !0) {
|
|
3782
3782
|
const l = this.measurePageBox();
|
|
@@ -3792,48 +3792,48 @@ 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 Se();
|
|
3796
3796
|
const l = o.measureViewportBox();
|
|
3797
3797
|
if (!(this.scroll?.wasRoot || this.path.some(K0))) {
|
|
3798
3798
|
const { scroll: u } = this.root;
|
|
3799
|
-
u && (
|
|
3799
|
+
u && (Bt(l.x, u.offset.x), Bt(l.y, u.offset.y));
|
|
3800
3800
|
}
|
|
3801
3801
|
return l;
|
|
3802
3802
|
}
|
|
3803
3803
|
removeElementScroll(o) {
|
|
3804
|
-
const l =
|
|
3805
|
-
if (
|
|
3804
|
+
const l = Se();
|
|
3805
|
+
if (Ue(l, o), this.scroll?.wasRoot)
|
|
3806
3806
|
return l;
|
|
3807
3807
|
for (let c = 0; c < this.path.length; c++) {
|
|
3808
3808
|
const u = this.path[c], { scroll: d, options: h } = u;
|
|
3809
|
-
u !== this.root && d && h.layoutScroll && (d.wasRoot &&
|
|
3809
|
+
u !== this.root && d && h.layoutScroll && (d.wasRoot && Ue(l, o), Bt(l.x, d.offset.x), Bt(l.y, d.offset.y));
|
|
3810
3810
|
}
|
|
3811
3811
|
return l;
|
|
3812
3812
|
}
|
|
3813
3813
|
applyTransform(o, l = !1) {
|
|
3814
|
-
const c =
|
|
3815
|
-
|
|
3814
|
+
const c = Se();
|
|
3815
|
+
Ue(c, o);
|
|
3816
3816
|
for (let u = 0; u < this.path.length; u++) {
|
|
3817
3817
|
const d = this.path[u];
|
|
3818
|
-
!l && d.options.layoutScroll && d.scroll && d !== d.root &&
|
|
3818
|
+
!l && d.options.layoutScroll && d.scroll && d !== d.root && zt(c, {
|
|
3819
3819
|
x: -d.scroll.offset.x,
|
|
3820
3820
|
y: -d.scroll.offset.y
|
|
3821
|
-
}),
|
|
3821
|
+
}), kt(d.latestValues) && zt(c, d.latestValues);
|
|
3822
3822
|
}
|
|
3823
|
-
return
|
|
3823
|
+
return kt(this.latestValues) && zt(c, this.latestValues), c;
|
|
3824
3824
|
}
|
|
3825
3825
|
removeTransform(o) {
|
|
3826
|
-
const l =
|
|
3827
|
-
|
|
3826
|
+
const l = Se();
|
|
3827
|
+
Ue(l, o);
|
|
3828
3828
|
for (let c = 0; c < this.path.length; c++) {
|
|
3829
3829
|
const u = this.path[c];
|
|
3830
|
-
if (!u.instance || !
|
|
3830
|
+
if (!u.instance || !kt(u.latestValues))
|
|
3831
3831
|
continue;
|
|
3832
3832
|
di(u.latestValues) && u.updateSnapshot();
|
|
3833
|
-
const d =
|
|
3834
|
-
|
|
3833
|
+
const d = Se(), h = u.measurePageBox();
|
|
3834
|
+
Ue(d, h), mr(l, u.latestValues, u.snapshot ? u.snapshot.layoutBox : void 0, d);
|
|
3835
3835
|
}
|
|
3836
|
-
return
|
|
3836
|
+
return kt(this.latestValues) && mr(l, this.latestValues), l;
|
|
3837
3837
|
}
|
|
3838
3838
|
setTargetDelta(o) {
|
|
3839
3839
|
this.targetDelta = o, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
|
|
@@ -3862,7 +3862,7 @@ function ic({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
3862
3862
|
return;
|
|
3863
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 = Se(), this.targetWithTransforms = Se()), 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) : Ue(this.target, this.layout.layoutBox), _l(this.target, this.targetDelta)) : Ue(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 = Se(), this.relativeTargetOrigin = Se(), Qn(this.relativeTargetOrigin, l, c), Ue(this.relativeTarget, this.relativeTargetOrigin);
|
|
3876
3876
|
}
|
|
3877
3877
|
removeRelativeTarget() {
|
|
3878
3878
|
this.relativeParent = this.relativeTarget = void 0;
|
|
@@ -3885,9 +3885,9 @@ function ic({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
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
|
+
Ue(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 = Se());
|
|
3891
3891
|
const { target: m } = o;
|
|
3892
3892
|
if (!m) {
|
|
3893
3893
|
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
|
@@ -3909,21 +3909,21 @@ function ic({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
3909
3909
|
this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
|
|
3910
3910
|
}
|
|
3911
3911
|
createProjectionDeltas() {
|
|
3912
|
-
this.prevProjectionDelta =
|
|
3912
|
+
this.prevProjectionDelta = $t(), this.projectionDelta = $t(), this.projectionDeltaWithTransform = $t();
|
|
3913
3913
|
}
|
|
3914
3914
|
setAnimationOrigin(o, l = !1) {
|
|
3915
|
-
const c = this.snapshot, u = c ? c.latestValues : {}, d = { ...this.latestValues }, h =
|
|
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 = Se(), 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 = (I) => {
|
|
3921
3921
|
const M = I / 1e3;
|
|
3922
|
-
Er(h.x, o.x, M), Er(h.y, o.y, M), 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, M), k && S0(this.relativeTarget, k) && (this.isProjectionDirty = !1), k || (k =
|
|
3922
|
+
Er(h.x, o.x, M), Er(h.y, o.y, M), 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, M), k && S0(this.relativeTarget, k) && (this.isProjectionDirty = !1), k || (k = Se()), Ue(k, this.relativeTarget)), b && (this.animationValues = d, E0(d, u, this.latestValues, M, N, y)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = M;
|
|
3923
3923
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
3924
3924
|
}
|
|
3925
3925
|
startAnimation(o) {
|
|
3926
|
-
this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation && (ht(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation =
|
|
3926
|
+
this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation && (ht(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = be.update(() => {
|
|
3927
3927
|
Hn.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = ft(0)), this.motionValue.jump(0, !1), this.currentAnimation = nc(this.motionValue, [0, 1e3], {
|
|
3928
3928
|
...o,
|
|
3929
3929
|
velocity: 0,
|
|
@@ -3952,13 +3952,13 @@ 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 ||
|
|
3955
|
+
c = this.target || Se();
|
|
3956
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
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
|
+
Ue(l, c), zt(l, d), cn(this.projectionDeltaWithTransform, this.layoutCorrected, l, d);
|
|
3962
3962
|
}
|
|
3963
3963
|
}
|
|
3964
3964
|
registerSharedNode(o, l) {
|
|
@@ -4025,7 +4025,7 @@ function ic({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4025
4025
|
}
|
|
4026
4026
|
const u = this.getLead();
|
|
4027
4027
|
if (!this.projectionDelta || !this.layout || !u.target) {
|
|
4028
|
-
this.options.layoutId && (o.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, o.pointerEvents = Un(l?.pointerEvents) || ""), this.hasProjected && !
|
|
4028
|
+
this.options.layoutId && (o.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, o.pointerEvents = Un(l?.pointerEvents) || ""), this.hasProjected && !kt(this.latestValues) && (o.transform = c ? c({}, "") : "none", this.hasProjected = !1);
|
|
4029
4029
|
return;
|
|
4030
4030
|
}
|
|
4031
4031
|
o.visibility = "";
|
|
@@ -4071,9 +4071,9 @@ function O0(e) {
|
|
|
4071
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
|
-
const o =
|
|
4074
|
+
const o = $t();
|
|
4075
4075
|
cn(o, n, t.layoutBox);
|
|
4076
|
-
const l =
|
|
4076
|
+
const l = $t();
|
|
4077
4077
|
r ? cn(l, e.applyTransform(s, !0), t.measuredBox) : cn(l, n, t.layoutBox);
|
|
4078
4078
|
const c = !Jl(o);
|
|
4079
4079
|
let u = !1;
|
|
@@ -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 = Se();
|
|
4086
4086
|
Qn(m, t.layoutBox, h.layoutBox);
|
|
4087
|
-
const p =
|
|
4087
|
+
const p = Se();
|
|
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
|
}
|
|
@@ -4152,7 +4152,7 @@ function H0(e) {
|
|
|
4152
4152
|
const X0 = {
|
|
4153
4153
|
duration: 0.45,
|
|
4154
4154
|
ease: [0.4, 0, 0.1, 1]
|
|
4155
|
-
}, Pr = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), Ir = Pr("applewebkit/") && !Pr("chrome/") ? Math.round :
|
|
4155
|
+
}, Pr = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), Ir = Pr("applewebkit/") && !Pr("chrome/") ? Math.round : We;
|
|
4156
4156
|
function jr(e) {
|
|
4157
4157
|
e.min = Ir(e.min), e.max = Ir(e.max);
|
|
4158
4158
|
}
|
|
@@ -4190,7 +4190,7 @@ const Z0 = ic({
|
|
|
4190
4190
|
e.style.transform = t !== void 0 ? t : "none";
|
|
4191
4191
|
},
|
|
4192
4192
|
checkIsScrollRoot: (e) => window.getComputedStyle(e).position === "fixed"
|
|
4193
|
-
}), cs =
|
|
4193
|
+
}), cs = Ze({
|
|
4194
4194
|
transformPagePoint: (e) => e,
|
|
4195
4195
|
isStatic: !1,
|
|
4196
4196
|
reducedMotion: "never"
|
|
@@ -4270,7 +4270,7 @@ function em({ children: e, isPresent: t, anchorX: n, anchorY: s, root: i, pop: r
|
|
|
4270
4270
|
}
|
|
4271
4271
|
const tm = ({ children: e, initial: t, isPresent: n, onExitComplete: s, custom: i, presenceAffectsLayout: r, mode: o, anchorX: l, anchorY: c, root: u }) => {
|
|
4272
4272
|
const d = os(nm), h = Ti();
|
|
4273
|
-
let f = !0, m =
|
|
4273
|
+
let f = !0, m = Rt(() => (f = !1, {
|
|
4274
4274
|
id: h,
|
|
4275
4275
|
initial: t,
|
|
4276
4276
|
isPresent: n,
|
|
@@ -4284,7 +4284,7 @@ const tm = ({ children: e, initial: t, isPresent: n, onExitComplete: s, custom:
|
|
|
4284
4284
|
},
|
|
4285
4285
|
register: (p) => (d.set(p, !1), () => d.delete(p))
|
|
4286
4286
|
}), [n, d, s]);
|
|
4287
|
-
return r && f && (m = { ...m }),
|
|
4287
|
+
return r && f && (m = { ...m }), Rt(() => {
|
|
4288
4288
|
d.forEach((p, b) => d.set(b, !1));
|
|
4289
4289
|
}, [n]), g.useEffect(() => {
|
|
4290
4290
|
!n && !d.size && s && s();
|
|
@@ -4298,7 +4298,7 @@ function ac(e = !0) {
|
|
|
4298
4298
|
if (t === null)
|
|
4299
4299
|
return [!0, null];
|
|
4300
4300
|
const { isPresent: n, onExitComplete: s, register: i } = t, r = Ti();
|
|
4301
|
-
|
|
4301
|
+
se(() => {
|
|
4302
4302
|
if (e)
|
|
4303
4303
|
return i(r);
|
|
4304
4304
|
}, [e]);
|
|
@@ -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 =
|
|
4321
|
+
const ke = ({ 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 = Rt(() => Rr(e), [e]), m = o && !d ? [] : f.map(Ln), p = Te(!0), b = Te(f), x = os(() => /* @__PURE__ */ new Map()), y = Te(/* @__PURE__ */ new Set()), [N, k] = O(f), [I, M] = O(f);
|
|
4323
4323
|
Pa(() => {
|
|
4324
4324
|
p.current = !1, b.current = f;
|
|
4325
4325
|
for (let v = 0; v < I.length; v++) {
|
|
@@ -4353,7 +4353,7 @@ const Ce = ({ children: e, custom: t, initial: n = !0, onExitComplete: s, presen
|
|
|
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 }, P);
|
|
4355
4355
|
}) });
|
|
4356
|
-
}, lc =
|
|
4356
|
+
}, lc = Ze({ strict: !1 }), Ar = {
|
|
4357
4357
|
animation: [
|
|
4358
4358
|
"animate",
|
|
4359
4359
|
"variants",
|
|
@@ -4447,7 +4447,7 @@ function cm(e, t, n) {
|
|
|
4447
4447
|
e.draggable && i.startsWith("onDrag")) && (s[i] = e[i]);
|
|
4448
4448
|
return s;
|
|
4449
4449
|
}
|
|
4450
|
-
const us = /* @__PURE__ */
|
|
4450
|
+
const us = /* @__PURE__ */ Ze({});
|
|
4451
4451
|
function um(e, t) {
|
|
4452
4452
|
if (ls(e)) {
|
|
4453
4453
|
const { initial: n, animate: s } = e;
|
|
@@ -4460,7 +4460,7 @@ function um(e, t) {
|
|
|
4460
4460
|
}
|
|
4461
4461
|
function dm(e) {
|
|
4462
4462
|
const { initial: t, animate: n } = um(e, ye(us));
|
|
4463
|
-
return
|
|
4463
|
+
return Rt(() => ({ initial: t, animate: n }), [Vr(t), Vr(n)]);
|
|
4464
4464
|
}
|
|
4465
4465
|
function Vr(e) {
|
|
4466
4466
|
return Array.isArray(e) ? e.join(" ") : e;
|
|
@@ -4473,10 +4473,10 @@ const to = () => ({
|
|
|
4473
4473
|
});
|
|
4474
4474
|
function dc(e, t, n) {
|
|
4475
4475
|
for (const s in t)
|
|
4476
|
-
!
|
|
4476
|
+
!Me(t[s]) && !Bl(s, n) && (e[s] = t[s]);
|
|
4477
4477
|
}
|
|
4478
4478
|
function hm({ transformTemplate: e }, t) {
|
|
4479
|
-
return
|
|
4479
|
+
return Rt(() => {
|
|
4480
4480
|
const n = to();
|
|
4481
4481
|
return Qi(n, t, e), Object.assign({}, n.vars, n.style);
|
|
4482
4482
|
}, [t]);
|
|
@@ -4494,7 +4494,7 @@ const hc = () => ({
|
|
|
4494
4494
|
attrs: {}
|
|
4495
4495
|
});
|
|
4496
4496
|
function pm(e, t, n, s) {
|
|
4497
|
-
const i =
|
|
4497
|
+
const i = Rt(() => {
|
|
4498
4498
|
const r = hc();
|
|
4499
4499
|
return Wl(r, t, Ul(s), e.transformTemplate, e.style), {
|
|
4500
4500
|
...r.attrs,
|
|
@@ -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 =
|
|
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 = Rt(() => Me(h) ? h.get() : h, [h]);
|
|
4559
4559
|
return Du(e, {
|
|
4560
4560
|
...d,
|
|
4561
4561
|
children: f
|
|
@@ -4625,8 +4625,8 @@ function Sm(e, t, n) {
|
|
|
4625
4625
|
else o && (o.current = r);
|
|
4626
4626
|
}, [t]);
|
|
4627
4627
|
}
|
|
4628
|
-
const mc =
|
|
4629
|
-
function
|
|
4628
|
+
const mc = Ze({});
|
|
4629
|
+
function Ot(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) {
|
|
@@ -4650,7 +4650,7 @@ function Nm(e, t, n, s, i, r) {
|
|
|
4650
4650
|
const y = n[xl], N = Te(!!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
|
+
}), se(() => {
|
|
4654
4654
|
p && (!N.current && p.animationState && p.animationState.animateChanges(), N.current && (queueMicrotask(() => {
|
|
4655
4655
|
window.MotionHandoffMarkAsComplete?.(y);
|
|
4656
4656
|
}), N.current = !1), p.enteringChildren = void 0);
|
|
@@ -4661,7 +4661,7 @@ function km(e, t, n, s) {
|
|
|
4661
4661
|
e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : pc(e.parent)), e.projection.setOptions({
|
|
4662
4662
|
layoutId: i,
|
|
4663
4663
|
layout: r,
|
|
4664
|
-
alwaysMeasureLayout: !!o || l &&
|
|
4664
|
+
alwaysMeasureLayout: !!o || l && Ot(l),
|
|
4665
4665
|
visualElement: e,
|
|
4666
4666
|
/**
|
|
4667
4667
|
* TODO: Update options in an effect. This could be tricky as it'll be too late
|
|
@@ -4710,7 +4710,7 @@ function Cm(e, t) {
|
|
|
4710
4710
|
const n = ye(lc).strict;
|
|
4711
4711
|
if (process.env.NODE_ENV !== "production" && t && n) {
|
|
4712
4712
|
const s = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
|
|
4713
|
-
e.ignoreStrict ?
|
|
4713
|
+
e.ignoreStrict ? Kt(!1, s, "lazy-strict-mode") : Ke(!1, s, "lazy-strict-mode");
|
|
4714
4714
|
}
|
|
4715
4715
|
}
|
|
4716
4716
|
function Pm(e) {
|
|
@@ -4739,7 +4739,7 @@ function Im(e, t) {
|
|
|
4739
4739
|
const jm = (e, t) => t.isSVG ?? no(e) ? new Xl(t) : new zl(t, {
|
|
4740
4740
|
allowProjection: e !== va
|
|
4741
4741
|
});
|
|
4742
|
-
class Mm extends
|
|
4742
|
+
class Mm extends pt {
|
|
4743
4743
|
/**
|
|
4744
4744
|
* We dynamically generate the AnimationState manager as it contains a reference
|
|
4745
4745
|
* to the underlying animation library. We only want to load that if we load this,
|
|
@@ -4767,7 +4767,7 @@ class Mm extends mt {
|
|
|
4767
4767
|
}
|
|
4768
4768
|
}
|
|
4769
4769
|
let Rm = 0;
|
|
4770
|
-
class Am extends
|
|
4770
|
+
class Am extends pt {
|
|
4771
4771
|
constructor() {
|
|
4772
4772
|
super(...arguments), this.id = Rm++;
|
|
4773
4773
|
}
|
|
@@ -4832,7 +4832,7 @@ class bc {
|
|
|
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);
|
|
4834
4834
|
}, this.handlePointerMove = (m, p) => {
|
|
4835
|
-
this.lastMoveEvent = m, this.lastMoveEventInfo = Rs(p, this.transformPagePoint),
|
|
4835
|
+
this.lastMoveEvent = m, this.lastMoveEventInfo = Rs(p, this.transformPagePoint), be.update(this.updatePoint, !0);
|
|
4836
4836
|
}, this.handlePointerUp = (m, p) => {
|
|
4837
4837
|
this.end();
|
|
4838
4838
|
const { onEnd: b, onSessionEnd: x, resumeAnimation: y } = this.handlers;
|
|
@@ -4888,7 +4888,7 @@ class bc {
|
|
|
4888
4888
|
x: t.scrollLeft,
|
|
4889
4889
|
y: t.scrollTop
|
|
4890
4890
|
}, r = { x: i.x - n.x, y: i.y - n.y };
|
|
4891
|
-
r.x === 0 && r.y === 0 || (s ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += r.x, this.lastMoveEventInfo.point.y += r.y) : this.history.length > 0 && (this.history[0].x -= r.x, this.history[0].y -= r.y), this.scrollPositions.set(t, i),
|
|
4891
|
+
r.x === 0 && r.y === 0 || (s ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += r.x, this.lastMoveEventInfo.point.y += r.y) : this.history.length > 0 && (this.history[0].x -= r.x, this.history[0].y -= r.y), this.scrollPositions.set(t, i), be.update(this.updatePoint, !0));
|
|
4892
4892
|
}
|
|
4893
4893
|
updateHandlers(t) {
|
|
4894
4894
|
this.handlers = t;
|
|
@@ -4922,12 +4922,12 @@ function _m(e, t) {
|
|
|
4922
4922
|
return { x: 0, y: 0 };
|
|
4923
4923
|
let n = e.length - 1, s = null;
|
|
4924
4924
|
const i = yc(e);
|
|
4925
|
-
for (; n >= 0 && (s = e[n], !(i.timestamp - s.timestamp > /* @__PURE__ */
|
|
4925
|
+
for (; n >= 0 && (s = e[n], !(i.timestamp - s.timestamp > /* @__PURE__ */ $e(t))); )
|
|
4926
4926
|
n--;
|
|
4927
4927
|
if (!s)
|
|
4928
4928
|
return { x: 0, y: 0 };
|
|
4929
|
-
s === e[0] && e.length > 2 && i.timestamp - s.timestamp > /* @__PURE__ */
|
|
4930
|
-
const r = /* @__PURE__ */
|
|
4929
|
+
s === e[0] && e.length > 2 && i.timestamp - s.timestamp > /* @__PURE__ */ $e(t) * 2 && (s = e[1]);
|
|
4930
|
+
const r = /* @__PURE__ */ ze(i.timestamp - s.timestamp);
|
|
4931
4931
|
if (r === 0)
|
|
4932
4932
|
return { x: 0, y: 0 };
|
|
4933
4933
|
const o = {
|
|
@@ -4964,7 +4964,7 @@ function Bm(e, t) {
|
|
|
4964
4964
|
function zm(e, t) {
|
|
4965
4965
|
let n = 0.5;
|
|
4966
4966
|
const s = Oe(e), i = Oe(t);
|
|
4967
|
-
return i > s ? n = /* @__PURE__ */
|
|
4967
|
+
return i > s ? n = /* @__PURE__ */ Ut(t.min, t.max - s, e.min) : s > i && (n = /* @__PURE__ */ Ut(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 = Se(), 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;
|
|
@@ -5011,7 +5011,7 @@ class Hm {
|
|
|
5011
5011
|
}
|
|
5012
5012
|
}
|
|
5013
5013
|
this.originPoint[y] = N;
|
|
5014
|
-
}), b &&
|
|
5014
|
+
}), b && be.update(() => b(h, f), !1, !0), oi(this.visualElement, "transform");
|
|
5015
5015
|
const { animationState: x } = this.visualElement;
|
|
5016
5016
|
x && x.setActive("whileDrag", !0);
|
|
5017
5017
|
}, l = (h, f) => {
|
|
@@ -5024,7 +5024,7 @@ class Hm {
|
|
|
5024
5024
|
this.currentDirection = Gm(y), this.currentDirection !== null && b && b(this.currentDirection);
|
|
5025
5025
|
return;
|
|
5026
5026
|
}
|
|
5027
|
-
this.updateAxis("x", f.point, y), this.updateAxis("y", f.point, y), this.visualElement.render(), x &&
|
|
5027
|
+
this.updateAxis("x", f.point, y), this.updateAxis("y", f.point, y), this.visualElement.render(), x && be.update(() => x(h, f), !1, !0);
|
|
5028
5028
|
}, c = (h, f) => {
|
|
5029
5029
|
this.latestPointerEvent = h, this.latestPanInfo = f, this.stop(h, f), this.latestPointerEvent = null, this.latestPanInfo = null;
|
|
5030
5030
|
}, u = () => {
|
|
@@ -5055,7 +5055,7 @@ class Hm {
|
|
|
5055
5055
|
const { velocity: o } = i;
|
|
5056
5056
|
this.startAnimation(o);
|
|
5057
5057
|
const { onDragEnd: l } = this.getProps();
|
|
5058
|
-
l &&
|
|
5058
|
+
l && be.postRender(() => l(s, i));
|
|
5059
5059
|
}
|
|
5060
5060
|
/**
|
|
5061
5061
|
* @internal
|
|
@@ -5086,16 +5086,16 @@ 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 &&
|
|
5089
|
+
t && Ot(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 && !Ot(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
|
}
|
|
5093
5093
|
resolveRefConstraints() {
|
|
5094
5094
|
const { dragConstraints: t, onMeasureDragConstraints: n } = this.getProps();
|
|
5095
|
-
if (!t || !
|
|
5095
|
+
if (!t || !Ot(t))
|
|
5096
5096
|
return !1;
|
|
5097
5097
|
const s = t.current;
|
|
5098
|
-
|
|
5098
|
+
Ke(s !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.", "drag-constraints-ref");
|
|
5099
5099
|
const { projection: i } = this.visualElement;
|
|
5100
5100
|
if (!i || !i.layout)
|
|
5101
5101
|
return !1;
|
|
@@ -5166,7 +5166,7 @@ class Hm {
|
|
|
5166
5166
|
if (!this.visualElement.current)
|
|
5167
5167
|
return;
|
|
5168
5168
|
const { drag: t, dragConstraints: n } = this.getProps(), { projection: s } = this.visualElement;
|
|
5169
|
-
if (!
|
|
5169
|
+
if (!Ot(n) || !s || !this.constraints)
|
|
5170
5170
|
return;
|
|
5171
5171
|
this.stopAnimation();
|
|
5172
5172
|
const i = { x: 0, y: 0 };
|
|
@@ -5196,9 +5196,9 @@ class Hm {
|
|
|
5196
5196
|
let s;
|
|
5197
5197
|
const i = () => {
|
|
5198
5198
|
const { dragConstraints: u } = this.getProps();
|
|
5199
|
-
|
|
5199
|
+
Ot(u) && u.current && (this.constraints = this.resolveRefConstraints(), s || (s = Xm(t, u.current, () => this.scalePositionWithinConstraints())));
|
|
5200
5200
|
}, { projection: r } = this.visualElement, o = r.addEventListener("measure", i);
|
|
5201
|
-
r && !r.layout && (r.root && r.root.updateScroll(), r.updateLayout()),
|
|
5201
|
+
r && !r.layout && (r.root && r.root.updateScroll(), r.updateLayout()), be.read(i);
|
|
5202
5202
|
const l = xn(window, "resize", () => this.scalePositionWithinConstraints()), c = r.addEventListener("didUpdate", (({ delta: u, hasLayoutChanged: d }) => {
|
|
5203
5203
|
this.isDragging && d && (qe((h) => {
|
|
5204
5204
|
const f = this.getAxisMotionValue(h);
|
|
@@ -5245,13 +5245,13 @@ function Gm(e, t = 10) {
|
|
|
5245
5245
|
let n = null;
|
|
5246
5246
|
return Math.abs(e.y) > t ? n = "y" : Math.abs(e.x) > t && (n = "x"), n;
|
|
5247
5247
|
}
|
|
5248
|
-
class Km extends
|
|
5248
|
+
class Km extends pt {
|
|
5249
5249
|
constructor(t) {
|
|
5250
|
-
super(t), this.removeGroupControls =
|
|
5250
|
+
super(t), this.removeGroupControls = We, this.removeListeners = We, this.controls = new Hm(t);
|
|
5251
5251
|
}
|
|
5252
5252
|
mount() {
|
|
5253
5253
|
const { dragControls: t } = this.node.getProps();
|
|
5254
|
-
t && (this.removeGroupControls = t.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() ||
|
|
5254
|
+
t && (this.removeGroupControls = t.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || We;
|
|
5255
5255
|
}
|
|
5256
5256
|
update() {
|
|
5257
5257
|
const { dragControls: t } = this.node.getProps(), { dragControls: n } = this.node.prevProps || {};
|
|
@@ -5262,11 +5262,11 @@ class Km extends mt {
|
|
|
5262
5262
|
}
|
|
5263
5263
|
}
|
|
5264
5264
|
const Ls = (e) => (t, n) => {
|
|
5265
|
-
e &&
|
|
5265
|
+
e && be.update(() => e(t, n), !1, !0);
|
|
5266
5266
|
};
|
|
5267
|
-
class Zm extends
|
|
5267
|
+
class Zm extends pt {
|
|
5268
5268
|
constructor() {
|
|
5269
|
-
super(...arguments), this.removePointerDownListener =
|
|
5269
|
+
super(...arguments), this.removePointerDownListener = We;
|
|
5270
5270
|
}
|
|
5271
5271
|
onPointerDown(t) {
|
|
5272
5272
|
this.session = new bc(t, this.createPanHandlers(), {
|
|
@@ -5281,7 +5281,7 @@ class Zm extends mt {
|
|
|
5281
5281
|
onStart: Ls(n),
|
|
5282
5282
|
onMove: Ls(s),
|
|
5283
5283
|
onEnd: (r, o) => {
|
|
5284
|
-
delete this.session, i &&
|
|
5284
|
+
delete this.session, i && be.postRender(() => i(r, o));
|
|
5285
5285
|
}
|
|
5286
5286
|
};
|
|
5287
5287
|
}
|
|
@@ -5317,7 +5317,7 @@ class qm extends Fu {
|
|
|
5317
5317
|
return o && (o.isPresent = r, t.layoutDependency !== n && o.setOptions({
|
|
5318
5318
|
...o.options,
|
|
5319
5319
|
layoutDependency: n
|
|
5320
|
-
}), Vs = !0, i || t.layoutDependency !== n || n === void 0 || t.isPresent !== r ? o.willUpdate() : this.safeToRemove(), t.isPresent !== r && (r ? o.promote() : o.relegate() ||
|
|
5320
|
+
}), Vs = !0, i || t.layoutDependency !== n || n === void 0 || t.isPresent !== r ? o.willUpdate() : this.safeToRemove(), t.isPresent !== r && (r ? o.promote() : o.relegate() || be.postRender(() => {
|
|
5321
5321
|
const l = o.getStack();
|
|
5322
5322
|
(!l || !l.members.length) && this.safeToRemove();
|
|
5323
5323
|
}))), null;
|
|
@@ -5358,9 +5358,9 @@ function Yr(e, t, n) {
|
|
|
5358
5358
|
const { props: s } = e;
|
|
5359
5359
|
e.animationState && s.whileHover && e.animationState.setActive("whileHover", n === "Start");
|
|
5360
5360
|
const i = "onHover" + n, r = s[i];
|
|
5361
|
-
r &&
|
|
5361
|
+
r && be.postRender(() => r(t, En(t)));
|
|
5362
5362
|
}
|
|
5363
|
-
class Qm extends
|
|
5363
|
+
class Qm extends pt {
|
|
5364
5364
|
mount() {
|
|
5365
5365
|
const { current: t } = this.node;
|
|
5366
5366
|
t && (this.unmount = kf(t, (n, s) => (Yr(this.node, s, "Start"), (i) => Yr(this.node, i, "End"))));
|
|
@@ -5368,7 +5368,7 @@ class Qm extends mt {
|
|
|
5368
5368
|
unmount() {
|
|
5369
5369
|
}
|
|
5370
5370
|
}
|
|
5371
|
-
class ep extends
|
|
5371
|
+
class ep extends pt {
|
|
5372
5372
|
constructor() {
|
|
5373
5373
|
super(...arguments), this.isActive = !1;
|
|
5374
5374
|
}
|
|
@@ -5396,9 +5396,9 @@ function Ur(e, t, n) {
|
|
|
5396
5396
|
return;
|
|
5397
5397
|
e.animationState && s.whileTap && e.animationState.setActive("whileTap", n === "Start");
|
|
5398
5398
|
const i = "onTap" + (n === "End" ? "" : n), r = s[i];
|
|
5399
|
-
r &&
|
|
5399
|
+
r && be.postRender(() => r(t, En(t)));
|
|
5400
5400
|
}
|
|
5401
|
-
class tp extends
|
|
5401
|
+
class tp extends pt {
|
|
5402
5402
|
mount() {
|
|
5403
5403
|
const { current: t } = this.node;
|
|
5404
5404
|
if (!t)
|
|
@@ -5434,7 +5434,7 @@ const rp = {
|
|
|
5434
5434
|
some: 0,
|
|
5435
5435
|
all: 1
|
|
5436
5436
|
};
|
|
5437
|
-
class ap extends
|
|
5437
|
+
class ap extends pt {
|
|
5438
5438
|
constructor() {
|
|
5439
5439
|
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
|
|
5440
5440
|
}
|
|
@@ -5497,7 +5497,7 @@ function hp(e) {
|
|
|
5497
5497
|
const t = os(() => ft(e)), { isStatic: n } = ye(cs);
|
|
5498
5498
|
if (n) {
|
|
5499
5499
|
const [, s] = O(e);
|
|
5500
|
-
|
|
5500
|
+
se(() => t.on("change", s), []);
|
|
5501
5501
|
}
|
|
5502
5502
|
return t;
|
|
5503
5503
|
}
|
|
@@ -5516,7 +5516,7 @@ function Hr(e, t, n, s) {
|
|
|
5516
5516
|
function mp(e, t, n) {
|
|
5517
5517
|
for (let s = 0; s < e.length; s++) {
|
|
5518
5518
|
const i = e[s];
|
|
5519
|
-
i.at > t && i.at < n && (
|
|
5519
|
+
i.at > t && i.at < n && (Yt(e, i), s--);
|
|
5520
5520
|
}
|
|
5521
5521
|
}
|
|
5522
5522
|
function pp(e, t, n, s, i, r) {
|
|
@@ -5556,39 +5556,39 @@ function vp(e, { defaultTransition: t = {}, ...n } = {}, s, i) {
|
|
|
5556
5556
|
let { ease: R = t.ease || "easeOut", duration: C } = M;
|
|
5557
5557
|
const _ = typeof F == "function" ? F(S, v) : F, j = P.length, T = Bi(q) ? q : i?.[q || "keyframes"];
|
|
5558
5558
|
if (j <= 2 && T) {
|
|
5559
|
-
let
|
|
5559
|
+
let ne = 100;
|
|
5560
5560
|
if (j === 2 && Np(P)) {
|
|
5561
|
-
const
|
|
5562
|
-
|
|
5561
|
+
const pe = P[1] - P[0];
|
|
5562
|
+
ne = Math.abs(pe);
|
|
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__ */ $e(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 + _;
|
|
5574
5574
|
B.length === 1 && B[0] === 0 && (B[1] = 1);
|
|
5575
5575
|
const ee = B.length - P.length;
|
|
5576
5576
|
if (ee > 0 && ol(B, ee), P.length === 1 && P.unshift(null), D) {
|
|
5577
|
-
|
|
5578
|
-
const
|
|
5577
|
+
Ke(D < xp, "Repeat count too high, must be less than 20", "repeat-count-high"), C = fp(C, D);
|
|
5578
|
+
const ne = [...P], ae = [...B];
|
|
5579
5579
|
R = Array.isArray(R) ? [...R] : [R];
|
|
5580
|
-
const
|
|
5581
|
-
for (let
|
|
5582
|
-
P.push(...
|
|
5583
|
-
for (let ce = 0; ce <
|
|
5584
|
-
B.push(
|
|
5580
|
+
const oe = [...R];
|
|
5581
|
+
for (let pe = 0; pe < D; pe++) {
|
|
5582
|
+
P.push(...ne);
|
|
5583
|
+
for (let ce = 0; ce < ne.length; ce++)
|
|
5584
|
+
B.push(ae[ce] + (pe + 1)), R.push(ce === 0 ? "linear" : Ya(oe, ce - 1));
|
|
5585
5585
|
}
|
|
5586
5586
|
gp(B, D);
|
|
5587
5587
|
}
|
|
5588
|
-
const
|
|
5589
|
-
pp(E, P, R, B, A,
|
|
5588
|
+
const re = A + C;
|
|
5589
|
+
pp(E, P, R, B, A, re), N = Math.max(_ + C, N), f = Math.max(re, f);
|
|
5590
5590
|
};
|
|
5591
|
-
if (
|
|
5591
|
+
if (Me(b)) {
|
|
5592
5592
|
const I = Xr(b, l);
|
|
5593
5593
|
k(x, y, Gr("default", I));
|
|
5594
5594
|
} else {
|
|
@@ -5609,7 +5609,7 @@ function vp(e, { defaultTransition: t = {}, ...n } = {}, s, i) {
|
|
|
5609
5609
|
const y = [], N = [], k = [];
|
|
5610
5610
|
for (let S = 0; S < x.length; S++) {
|
|
5611
5611
|
const { at: v, value: P, easing: F } = x[S];
|
|
5612
|
-
y.push(P), N.push(/* @__PURE__ */
|
|
5612
|
+
y.push(P), N.push(/* @__PURE__ */ Ut(0, f, v)), k.push(F || "easeOut");
|
|
5613
5613
|
}
|
|
5614
5614
|
N[0] !== 0 && (N.unshift(0), y.unshift(y[0]), k.unshift(yp)), N[N.length - 1] !== 1 && (N.push(1), y.push(null)), o.has(p) || o.set(p, {
|
|
5615
5615
|
keyframes: {},
|
|
@@ -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 Me(e) || typeof e == "number" || typeof e == "string" && !so(t);
|
|
5679
5679
|
}
|
|
5680
5680
|
function wc(e, t, n, s) {
|
|
5681
5681
|
const i = [];
|
|
@@ -5685,7 +5685,7 @@ function wc(e, t, n, s) {
|
|
|
5685
5685
|
if (e == null)
|
|
5686
5686
|
return i;
|
|
5687
5687
|
const r = vc(e, t, s), o = r.length;
|
|
5688
|
-
|
|
5688
|
+
Ke(!!o, "No valid elements provided.", "no-valid-elements");
|
|
5689
5689
|
for (let l = 0; l < o; l++) {
|
|
5690
5690
|
const c = r[l], u = c instanceof Element ? kp : Ep;
|
|
5691
5691
|
bn.has(c) || u(c);
|
|
@@ -5722,7 +5722,7 @@ function jp(e = {}) {
|
|
|
5722
5722
|
}
|
|
5723
5723
|
const u = new zh(l);
|
|
5724
5724
|
return c && u.finished.then(c), t && (t.animations.push(u), u.finished.then(() => {
|
|
5725
|
-
|
|
5725
|
+
Yt(t.animations, u);
|
|
5726
5726
|
})), u;
|
|
5727
5727
|
}
|
|
5728
5728
|
return s;
|
|
@@ -5781,7 +5781,7 @@ const gi = ({
|
|
|
5781
5781
|
/* @__PURE__ */ a.jsx(Rp, { iconName: e.icon, className: "w-3 h-3 sm:w-4 sm:h-4" })
|
|
5782
5782
|
] })
|
|
5783
5783
|
}
|
|
5784
|
-
) }), io =
|
|
5784
|
+
) }), io = Ze(void 0), Iy = ({ children: e }) => {
|
|
5785
5785
|
const [t, n] = O(!1), s = dn((r) => {
|
|
5786
5786
|
n(r);
|
|
5787
5787
|
}, []), i = dn(() => {
|
|
@@ -5793,7 +5793,7 @@ const gi = ({
|
|
|
5793
5793
|
if (!e)
|
|
5794
5794
|
throw new Error("useMinimize debe ser usado dentro de un MinimizeProvider");
|
|
5795
5795
|
return e;
|
|
5796
|
-
}, Tc = () => ye(io), Sc =
|
|
5796
|
+
}, Tc = () => ye(io), Sc = Ze({
|
|
5797
5797
|
lastEvent: null,
|
|
5798
5798
|
setLastEvent: () => {
|
|
5799
5799
|
},
|
|
@@ -5803,7 +5803,7 @@ const gi = ({
|
|
|
5803
5803
|
}), My = ({ children: e }) => {
|
|
5804
5804
|
const [t, n] = O(null), [s, i] = O(null);
|
|
5805
5805
|
return /* @__PURE__ */ a.jsx(Sc.Provider, { value: { lastEvent: t, setLastEvent: n, internalEvent: s, setInternalEvent: i }, children: e });
|
|
5806
|
-
},
|
|
5806
|
+
}, Qt = () => ye(Sc);
|
|
5807
5807
|
function Nc(e) {
|
|
5808
5808
|
var t, n, s = "";
|
|
5809
5809
|
if (typeof e == "string" || typeof e == "number") s += e;
|
|
@@ -6088,7 +6088,7 @@ 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 = [], Ee = (e) => {
|
|
6092
6092
|
const t = (n) => n[e] || eg;
|
|
6093
6093
|
return t.isThemeGetter = !0, t;
|
|
6094
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) => (
|
|
@@ -6096,14 +6096,14 @@ const Ap = (e, t) => {
|
|
|
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) =>
|
|
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), St = (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) => At(e, Oc), pg = (e) => At(e, Dc), ta = (e) => At(e, Ac), gg = (e) => At(e, Vc), bg = (e) => At(e, Lc), Dn = (e) => At(e, Fc, !0), yg = (e) => At(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
|
+
}, At = (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 = Ee("color"), t = Ee("font"), n = Ee("text"), s = Ee("font-weight"), i = Ee("tracking"), r = Ee("leading"), o = Ee("breakpoint"), l = Ee("container"), c = Ee("spacing"), u = Ee("radius"), d = Ee("shadow"), h = Ee("inset-shadow"), f = Ee("text-shadow"), m = Ee("drop-shadow"), p = Ee("blur"), b = Ee("perspective"), x = Ee("aspect"), y = Ee("ease"), N = Ee("animate"), k = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], I = () => [
|
|
6107
6107
|
"center",
|
|
6108
6108
|
"top",
|
|
6109
6109
|
"bottom",
|
|
@@ -6129,7 +6129,7 @@ const Ap = (e, t) => {
|
|
|
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, St], ne = () => [
|
|
6133
6133
|
// Deprecated since Tailwind CSS v4.0.0
|
|
6134
6134
|
"",
|
|
6135
6135
|
"none",
|
|
@@ -6137,14 +6137,14 @@ const Ap = (e, t) => {
|
|
|
6137
6137
|
u,
|
|
6138
6138
|
K,
|
|
6139
6139
|
X
|
|
6140
|
-
],
|
|
6140
|
+
], ae = () => ["", le, rn, St], oe = () => ["solid", "dashed", "dotted", "double"], pe = () => ["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], Fe = () => [
|
|
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
|
+
], Ce = () => ["none", le, K, X], z = () => ["none", le, K, X], he = () => [le, K, X], fe = () => [at, "full", ...v()];
|
|
6148
6148
|
return {
|
|
6149
6149
|
cacheSize: 500,
|
|
6150
6150
|
theme: {
|
|
@@ -6933,7 +6933,7 @@ const Ap = (e, t) => {
|
|
|
6933
6933
|
* @see https://tailwindcss.com/docs/font-size
|
|
6934
6934
|
*/
|
|
6935
6935
|
"font-size": [{
|
|
6936
|
-
text: ["base", n, rn,
|
|
6936
|
+
text: ["base", n, rn, St]
|
|
6937
6937
|
}],
|
|
6938
6938
|
/**
|
|
6939
6939
|
* Font Smoothing
|
|
@@ -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: [le, "from-font", "auto", K,
|
|
7091
|
+
decoration: [le, "from-font", "auto", K, St]
|
|
7092
7092
|
}],
|
|
7093
7093
|
/**
|
|
7094
7094
|
* Text Decoration Color
|
|
@@ -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,7 +7589,7 @@ 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
|
|
@@ -7603,7 +7603,7 @@ const Ap = (e, t) => {
|
|
|
7603
7603
|
* @see https://tailwindcss.com/docs/outline-width
|
|
7604
7604
|
*/
|
|
7605
7605
|
"outline-w": [{
|
|
7606
|
-
outline: ["", le, rn,
|
|
7606
|
+
outline: ["", le, rn, St]
|
|
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": [le,
|
|
7681
|
+
"ring-offset": [le, St]
|
|
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
|
|
@@ -7729,14 +7729,14 @@ const Ap = (e, t) => {
|
|
|
7729
7729
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
7730
7730
|
*/
|
|
7731
7731
|
"mix-blend": [{
|
|
7732
|
-
"mix-blend": [...
|
|
7732
|
+
"mix-blend": [...pe(), "plus-darker", "plus-lighter"]
|
|
7733
7733
|
}],
|
|
7734
7734
|
/**
|
|
7735
7735
|
* Background Blend Mode
|
|
7736
7736
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
7737
7737
|
*/
|
|
7738
7738
|
"bg-blend": [{
|
|
7739
|
-
"bg-blend":
|
|
7739
|
+
"bg-blend": pe()
|
|
7740
7740
|
}],
|
|
7741
7741
|
/**
|
|
7742
7742
|
* Mask Clip
|
|
@@ -7955,7 +7955,7 @@ const Ap = (e, t) => {
|
|
|
7955
7955
|
* @see https://tailwindcss.com/docs/blur
|
|
7956
7956
|
*/
|
|
7957
7957
|
blur: [{
|
|
7958
|
-
blur:
|
|
7958
|
+
blur: Fe()
|
|
7959
7959
|
}],
|
|
7960
7960
|
/**
|
|
7961
7961
|
* Brightness
|
|
@@ -8045,7 +8045,7 @@ 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": Fe()
|
|
8049
8049
|
}],
|
|
8050
8050
|
/**
|
|
8051
8051
|
* Backdrop Brightness
|
|
@@ -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: Ce()
|
|
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": Ce()
|
|
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": Ce()
|
|
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": Ce()
|
|
8247
8247
|
}],
|
|
8248
8248
|
/**
|
|
8249
8249
|
* Scale
|
|
8250
8250
|
* @see https://tailwindcss.com/docs/scale
|
|
8251
8251
|
*/
|
|
8252
8252
|
scale: [{
|
|
8253
|
-
scale:
|
|
8253
|
+
scale: z()
|
|
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": z()
|
|
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": z()
|
|
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": z()
|
|
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: he()
|
|
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": he()
|
|
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": he()
|
|
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: fe()
|
|
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": fe()
|
|
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": fe()
|
|
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": fe()
|
|
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: [le, rn,
|
|
8659
|
+
stroke: [le, rn, St, Qr]
|
|
8660
8660
|
}],
|
|
8661
8661
|
/**
|
|
8662
8662
|
* Stroke
|
|
@@ -8778,14 +8778,14 @@ const vn = {
|
|
|
8778
8778
|
type: "cinematics",
|
|
8779
8779
|
action: "end"
|
|
8780
8780
|
}
|
|
8781
|
-
}, $c =
|
|
8781
|
+
}, $c = Ze({
|
|
8782
8782
|
sendMessage: () => {
|
|
8783
8783
|
},
|
|
8784
8784
|
isConnected: !1,
|
|
8785
8785
|
reconnect: () => {
|
|
8786
8786
|
}
|
|
8787
8787
|
}), Ly = ({ children: e }) => {
|
|
8788
|
-
const t = Te(null), n = nt(), { setLastEvent: s } =
|
|
8788
|
+
const t = Te(null), n = nt(), { setLastEvent: s } = Qt(), i = Te(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"));
|
|
@@ -8803,7 +8803,7 @@ const vn = {
|
|
|
8803
8803
|
console.error("⚠️ Error en WS:", f), o(!1);
|
|
8804
8804
|
};
|
|
8805
8805
|
}, []);
|
|
8806
|
-
|
|
8806
|
+
se(() => (u(), () => {
|
|
8807
8807
|
i.current && clearInterval(i.current), t.current?.close();
|
|
8808
8808
|
}), [u]);
|
|
8809
8809
|
const d = (f) => {
|
|
@@ -8816,8 +8816,8 @@ 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 } =
|
|
8820
|
-
return
|
|
8819
|
+
const { isMinimized: t, toggleMinimized: n, setMinimized: s } = e, { sendMessage: i } = Cn(), { lastEvent: r } = Qt(), o = we().wsRoom;
|
|
8820
|
+
return se(() => {
|
|
8821
8821
|
r?.payload?.type === "browser" && r?.payload?.status === "visible" && s(!1);
|
|
8822
8822
|
}, [r]), /* @__PURE__ */ a.jsx(
|
|
8823
8823
|
w.div,
|
|
@@ -9097,9 +9097,9 @@ const Eg = ({ label: e, onClick: t }) => /* @__PURE__ */ a.jsxs(
|
|
|
9097
9097
|
]
|
|
9098
9098
|
}
|
|
9099
9099
|
);
|
|
9100
|
-
function
|
|
9101
|
-
const { t: s } =
|
|
9102
|
-
return
|
|
9100
|
+
function Ht({ src: e, transparent: t = !1, onClose: n }) {
|
|
9101
|
+
const { t: s } = mt(), { sendMessage: i } = Cn(), { lastEvent: r } = Qt(), o = we().wsRoom, l = we().iframesEnabled ?? !0;
|
|
9102
|
+
return se(() => {
|
|
9103
9103
|
const c = setTimeout(() => {
|
|
9104
9104
|
i({
|
|
9105
9105
|
type: "publish",
|
|
@@ -9108,7 +9108,7 @@ function Yt({ src: e, transparent: t = !1, onClose: n }) {
|
|
|
9108
9108
|
});
|
|
9109
9109
|
}, 700);
|
|
9110
9110
|
return () => clearTimeout(c);
|
|
9111
|
-
}, [e]),
|
|
9111
|
+
}, [e]), se(() => {
|
|
9112
9112
|
r?.payload?.type === "browser" && r?.payload?.action === "close" && n();
|
|
9113
9113
|
}, [r]), /* @__PURE__ */ a.jsxs(
|
|
9114
9114
|
w.div,
|
|
@@ -9167,7 +9167,7 @@ const Fn = {
|
|
|
9167
9167
|
lg: 1024
|
|
9168
9168
|
}, Bc = () => {
|
|
9169
9169
|
const [e, t] = O(window.innerWidth);
|
|
9170
|
-
|
|
9170
|
+
se(() => {
|
|
9171
9171
|
const r = () => {
|
|
9172
9172
|
t(window.innerWidth);
|
|
9173
9173
|
};
|
|
@@ -9211,7 +9211,7 @@ function zc({ onClose: e, cards: t }) {
|
|
|
9211
9211
|
}
|
|
9212
9212
|
return S;
|
|
9213
9213
|
};
|
|
9214
|
-
return
|
|
9214
|
+
return se(() => {
|
|
9215
9215
|
const E = (S) => {
|
|
9216
9216
|
S.key === "Escape" && e();
|
|
9217
9217
|
};
|
|
@@ -9294,7 +9294,7 @@ function zc({ onClose: e, cards: t }) {
|
|
|
9294
9294
|
)
|
|
9295
9295
|
}
|
|
9296
9296
|
),
|
|
9297
|
-
/* @__PURE__ */ a.jsx(
|
|
9297
|
+
/* @__PURE__ */ a.jsx(ke, { mode: "popLayout", children: M().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(ke, { children: i && /* @__PURE__ */ a.jsx(Ht, { onClose: N, src: o }) })
|
|
9411
9411
|
]
|
|
9412
9412
|
}
|
|
9413
9413
|
)
|
|
@@ -9430,9 +9430,9 @@ const Pg = [
|
|
|
9430
9430
|
];
|
|
9431
9431
|
function Ig({ onClose: e }) {
|
|
9432
9432
|
const [t, n] = O(!1), [s, i] = O("");
|
|
9433
|
-
return
|
|
9433
|
+
return se(() => (document.body.style.overflow = "hidden", () => {
|
|
9434
9434
|
document.body.style.overflow = "unset";
|
|
9435
|
-
}), []),
|
|
9435
|
+
}), []), se(() => {
|
|
9436
9436
|
const r = (o) => {
|
|
9437
9437
|
o.key === "Escape" && e();
|
|
9438
9438
|
};
|
|
@@ -9508,14 +9508,14 @@ function Ig({ onClose: e }) {
|
|
|
9508
9508
|
]
|
|
9509
9509
|
}
|
|
9510
9510
|
),
|
|
9511
|
-
t && /* @__PURE__ */ a.jsx(
|
|
9511
|
+
t && /* @__PURE__ */ a.jsx(Ht, { src: s, onClose: () => n(!1) })
|
|
9512
9512
|
] });
|
|
9513
9513
|
}
|
|
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",
|
|
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", Et = "prev", Ct = "next", sa = "swipe", Xt = "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
9515
|
function Qe(...e) {
|
|
9516
9516
|
return e.filter(Boolean).join(" ");
|
|
9517
9517
|
}
|
|
9518
|
-
function
|
|
9518
|
+
function de(e) {
|
|
9519
9519
|
return `${tu}${e}`;
|
|
9520
9520
|
}
|
|
9521
9521
|
function _e(e) {
|
|
@@ -9527,12 +9527,12 @@ function Pn(e, t) {
|
|
|
9527
9527
|
function fo(e) {
|
|
9528
9528
|
return (t) => Pn(e, t);
|
|
9529
9529
|
}
|
|
9530
|
-
function
|
|
9530
|
+
function Gt(e, t) {
|
|
9531
9531
|
var n;
|
|
9532
9532
|
return (n = e?.[t]) !== null && n !== void 0 ? n : t;
|
|
9533
9533
|
}
|
|
9534
9534
|
function Wg(e, t, n) {
|
|
9535
|
-
return
|
|
9535
|
+
return Gt(e, "{index} of {total}").replace(/\{index}/g, `${yo(n, t.length) + 1}`).replace(/\{total}/g, `${t.length}`);
|
|
9536
9536
|
}
|
|
9537
9537
|
function mo(...e) {
|
|
9538
9538
|
return () => {
|
|
@@ -9556,7 +9556,7 @@ function go(e, t = 0) {
|
|
|
9556
9556
|
const n = 10 ** t;
|
|
9557
9557
|
return Math.round((e + Number.EPSILON) * n) / n;
|
|
9558
9558
|
}
|
|
9559
|
-
function
|
|
9559
|
+
function en(e) {
|
|
9560
9560
|
return e.type === void 0 || e.type === "image";
|
|
9561
9561
|
}
|
|
9562
9562
|
function bo(e, t) {
|
|
@@ -9597,7 +9597,7 @@ function xi(e, t) {
|
|
|
9597
9597
|
return nu(e) ? su(e, t) : void 0;
|
|
9598
9598
|
}
|
|
9599
9599
|
function Hg(e) {
|
|
9600
|
-
return
|
|
9600
|
+
return en(e) ? e.src : void 0;
|
|
9601
9601
|
}
|
|
9602
9602
|
function Xg(e, t, n) {
|
|
9603
9603
|
if (!n)
|
|
@@ -9627,7 +9627,7 @@ const vi = {
|
|
|
9627
9627
|
slides: [],
|
|
9628
9628
|
render: {},
|
|
9629
9629
|
plugins: [],
|
|
9630
|
-
toolbar: { buttons: [
|
|
9630
|
+
toolbar: { buttons: [Xt] },
|
|
9631
9631
|
labels: {},
|
|
9632
9632
|
animation: {
|
|
9633
9633
|
fade: 250,
|
|
@@ -9666,21 +9666,21 @@ const vi = {
|
|
|
9666
9666
|
styles: {},
|
|
9667
9667
|
className: ""
|
|
9668
9668
|
};
|
|
9669
|
-
function
|
|
9669
|
+
function bt(e, t) {
|
|
9670
9670
|
return { name: e, component: t };
|
|
9671
9671
|
}
|
|
9672
|
-
function
|
|
9672
|
+
function je(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
|
+
je(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
|
}))
|
|
9681
9681
|
] : [e];
|
|
9682
9682
|
}
|
|
9683
|
-
function
|
|
9683
|
+
function Vt(e, t, n) {
|
|
9684
9684
|
return e.flatMap((s) => {
|
|
9685
9685
|
var i;
|
|
9686
9686
|
return (i = iu(s, t, n)) !== null && i !== void 0 ? i : [];
|
|
@@ -9699,35 +9699,35 @@ function Jg(e, t = [], n = []) {
|
|
|
9699
9699
|
return !1;
|
|
9700
9700
|
}, r = (m, p) => {
|
|
9701
9701
|
if (m === "") {
|
|
9702
|
-
s = [
|
|
9702
|
+
s = [je(p, s)];
|
|
9703
9703
|
return;
|
|
9704
9704
|
}
|
|
9705
|
-
s =
|
|
9705
|
+
s = Vt(s, m, (b) => [je(p, [b])]);
|
|
9706
9706
|
}, o = (m, p) => {
|
|
9707
|
-
s =
|
|
9707
|
+
s = Vt(s, m, (b) => [je(b.module, [je(p, b.children)])]);
|
|
9708
9708
|
}, l = (m, p, b) => {
|
|
9709
|
-
s =
|
|
9709
|
+
s = Vt(s, m, (x) => {
|
|
9710
9710
|
var y;
|
|
9711
9711
|
return [
|
|
9712
|
-
|
|
9713
|
-
...b ? [
|
|
9712
|
+
je(x.module, [
|
|
9713
|
+
...b ? [je(p)] : [],
|
|
9714
9714
|
...(y = x.children) !== null && y !== void 0 ? y : [],
|
|
9715
|
-
...b ? [] : [
|
|
9715
|
+
...b ? [] : [je(p)]
|
|
9716
9716
|
])
|
|
9717
9717
|
];
|
|
9718
9718
|
});
|
|
9719
9719
|
}, c = (m, p, b) => {
|
|
9720
|
-
s =
|
|
9721
|
-
...b ? [
|
|
9720
|
+
s = Vt(s, m, (x) => [
|
|
9721
|
+
...b ? [je(p)] : [],
|
|
9722
9722
|
x,
|
|
9723
|
-
...b ? [] : [
|
|
9723
|
+
...b ? [] : [je(p)]
|
|
9724
9724
|
]);
|
|
9725
9725
|
}, u = (m) => {
|
|
9726
9726
|
o(Yc, m);
|
|
9727
9727
|
}, d = (m, p) => {
|
|
9728
|
-
s =
|
|
9728
|
+
s = Vt(s, m, (b) => [je(p, b.children)]);
|
|
9729
9729
|
}, h = (m) => {
|
|
9730
|
-
s =
|
|
9730
|
+
s = Vt(s, m, (p) => p.children);
|
|
9731
9731
|
}, f = (m) => {
|
|
9732
9732
|
n.push(m);
|
|
9733
9733
|
};
|
|
@@ -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),
|
|
9797
|
+
const cu = g.createContext(null), Ye = 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),
|
|
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": {
|
|
@@ -9859,14 +9859,14 @@ function rb({ children: e }) {
|
|
|
9859
9859
|
return g.createElement(hu.Provider, { value: n }, 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
|
-
const { styles: u, labels: d } =
|
|
9863
|
-
return g.createElement("button", { ref: c, type: "button", title: h, "aria-label": h, className: Qe(
|
|
9862
|
+
const { styles: u, labels: d } = Ye(), h = Gt(d, t);
|
|
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);
|
|
9867
9867
|
return n.displayName = e, n;
|
|
9868
9868
|
}
|
|
9869
|
-
function
|
|
9869
|
+
function Lt(e, t) {
|
|
9870
9870
|
return ab(e, g.createElement(
|
|
9871
9871
|
"g",
|
|
9872
9872
|
{ fill: "currentColor" },
|
|
@@ -9874,7 +9874,7 @@ function Rt(e, t) {
|
|
|
9874
9874
|
t
|
|
9875
9875
|
));
|
|
9876
9876
|
}
|
|
9877
|
-
const lb =
|
|
9877
|
+
const lb = Lt("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 = Lt("Previous", g.createElement("path", { d: "M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z" })), ub = Lt("Next", g.createElement("path", { d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z" })), db = Lt("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 = Lt("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(() => {
|
|
@@ -9949,7 +9949,7 @@ 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 me(e) {
|
|
9953
9953
|
const t = g.useRef(e);
|
|
9954
9954
|
return tt(() => {
|
|
9955
9955
|
t.current = e;
|
|
@@ -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 = me((...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 && I(Lg(N));
|
|
10024
10024
|
}, [t, N, I]);
|
|
10025
|
-
const S =
|
|
10025
|
+
const S = me((A) => {
|
|
10026
10026
|
("decode" in A ? A.decode() : Promise.resolve()).catch(() => {
|
|
10027
10027
|
}).then(() => {
|
|
10028
10028
|
A.parentNode && (k(Bs), M(() => {
|
|
@@ -10033,7 +10033,7 @@ 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]), P = g.useCallback((A) => {
|
|
10035
10035
|
S(A.currentTarget);
|
|
10036
|
-
}, [S]), F =
|
|
10036
|
+
}, [S]), F = me(() => {
|
|
10037
10037
|
k($s), c?.();
|
|
10038
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%)`,
|
|
@@ -10045,12 +10045,12 @@ function ss({ slide: e, offset: t, render: n, rect: s, imageFit: i, imageProps:
|
|
|
10045
10045
|
return g.createElement(
|
|
10046
10046
|
g.Fragment,
|
|
10047
10047
|
null,
|
|
10048
|
-
g.createElement("img", { ref: v, onLoad: P, onError: F, onClick: o, draggable: !1, className: Qe(
|
|
10048
|
+
g.createElement("img", { ref: v, onLoad: P, onError: F, onClick: o, draggable: !1, className: Qe(de(Ws()), B && de(Ws("cover")), N !== Bs && de(Ws("loading")), j), 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
|
-
{ className:
|
|
10052
|
-
N === Fs && (n?.iconLoading ? n.iconLoading() : g.createElement(db, { className: Qe(
|
|
10053
|
-
N === $s && (n?.iconError ? n.iconError() : g.createElement(hb, { className: Qe(
|
|
10051
|
+
{ className: de(zs(Ag)) },
|
|
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,7 +10059,7 @@ 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: Qe(
|
|
10062
|
+
g.createElement("div", { ref: wi(o, l), className: Qe(de("root"), t), ...c(s, i), ...r }, n)
|
|
10063
10063
|
);
|
|
10064
10064
|
});
|
|
10065
10065
|
var Le;
|
|
@@ -10070,32 +10070,32 @@ 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]);
|
|
10072
10072
|
}
|
|
10073
|
-
var
|
|
10073
|
+
var Xe;
|
|
10074
10074
|
(function(e) {
|
|
10075
10075
|
e[e.NONE = 0] = "NONE", e[e.SWIPE = 1] = "SWIPE", e[e.PULL = 2] = "PULL";
|
|
10076
|
-
})(
|
|
10076
|
+
})(Xe || (Xe = {}));
|
|
10077
10077
|
const Ys = 30;
|
|
10078
10078
|
function bb({ disableSwipeNavigation: e, closeOnBackdropClick: t }, n, s, i, r, o, l, c, u, d, h, f, m, p, b, x) {
|
|
10079
|
-
const y = g.useRef(0), N = g.useRef([]), k = g.useRef(void 0), I = g.useRef(0), M = g.useRef(
|
|
10080
|
-
k.current === D.pointerId && (k.current = void 0, M.current =
|
|
10079
|
+
const y = g.useRef(0), N = g.useRef([]), k = g.useRef(void 0), I = g.useRef(0), M = g.useRef(Xe.NONE), E = g.useCallback((D) => {
|
|
10080
|
+
k.current === D.pointerId && (k.current = void 0, M.current = Xe.NONE);
|
|
10081
10081
|
const te = N.current;
|
|
10082
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), []), P =
|
|
10085
|
+
}, [E]), v = g.useCallback((D) => N.current.find(({ pointerId: te }) => D.pointerId === te), []), P = me((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 = me((D) => {
|
|
10088
10088
|
const te = v(D);
|
|
10089
10089
|
if (te)
|
|
10090
10090
|
if (k.current === D.pointerId) {
|
|
10091
10091
|
const Y = Date.now() - I.current, Z = y.current;
|
|
10092
|
-
M.current ===
|
|
10092
|
+
M.current === Xe.SWIPE ? Math.abs(Z) > 0.3 * i || Math.abs(Z) > 5 && Y < r ? c(Z, Y) : u(Z) : M.current === Xe.PULL && (F(Z, 2 * Ys) ? p(Z, Y) : b(Z)), y.current = 0, M.current = Xe.NONE;
|
|
10093
10093
|
} else {
|
|
10094
10094
|
const { target: Y } = D;
|
|
10095
|
-
t && Y instanceof HTMLElement && Y === te.target && (Y.classList.contains(
|
|
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
|
-
}), q =
|
|
10098
|
+
}), q = me((D) => {
|
|
10099
10099
|
const te = v(D);
|
|
10100
10100
|
if (te) {
|
|
10101
10101
|
const Y = k.current === D.pointerId;
|
|
@@ -10108,14 +10108,14 @@ function bb({ disableSwipeNavigation: e, closeOnBackdropClick: t }, n, s, i, r,
|
|
|
10108
10108
|
const C = (_) => {
|
|
10109
10109
|
S(D), k.current = D.pointerId, I.current = Date.now(), M.current = _;
|
|
10110
10110
|
};
|
|
10111
|
-
Math.abs(Z) > Math.abs(R) && Math.abs(Z) > Ys && s(Z) ? e || (C(
|
|
10112
|
-
} else Y && (M.current ===
|
|
10111
|
+
Math.abs(Z) > Math.abs(R) && Math.abs(Z) > Ys && s(Z) ? e || (C(Xe.SWIPE), o()) : Math.abs(R) > Math.abs(Z) && F(R, Ys) && (C(Xe.PULL), f());
|
|
10112
|
+
} else Y && (M.current === Xe.SWIPE ? (y.current = Z, l(Z)) : M.current === Xe.PULL && (y.current = R, m(R)));
|
|
10113
10113
|
}
|
|
10114
10114
|
});
|
|
10115
10115
|
mu(n, P, 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 = me((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]), I =
|
|
10132
|
+
}, [y]), I = me(() => {
|
|
10133
10133
|
e !== Le.SWIPE && (u.current = 0, b.current = 0, N(), k());
|
|
10134
10134
|
});
|
|
10135
10135
|
g.useEffect(I, [e, I]);
|
|
10136
|
-
const M =
|
|
10136
|
+
const M = me((S) => {
|
|
10137
10137
|
f.current = void 0, u.current === S && c(u.current);
|
|
10138
|
-
}), E =
|
|
10138
|
+
}), E = me((S) => {
|
|
10139
10139
|
if (S.ctrlKey || Math.abs(S.deltaY) > Math.abs(S.deltaX))
|
|
10140
10140
|
return;
|
|
10141
10141
|
const v = (P) => {
|
|
@@ -10173,24 +10173,24 @@ function xb(e, t, n, s, i, r, o, l, c) {
|
|
|
10173
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 =
|
|
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), I = g.useRef(0), M = g.useRef(1), { registerSensors: E, subscribeSensors: S } = pb(), { subscribe: v, publish: P } = 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(), j = wo(), T = (U) => (j ? -1 : 1) * (typeof U == "number" ? U : 1), A = me(() => {
|
|
10177
10177
|
var U;
|
|
10178
10178
|
return (U = D.current) === null || U === void 0 ? void 0 : U.focus();
|
|
10179
|
-
}), ee =
|
|
10180
|
-
var
|
|
10181
|
-
k.current = U, (
|
|
10182
|
-
},
|
|
10183
|
-
var
|
|
10179
|
+
}), ee = me(() => t), re = me(() => b), ne = g.useCallback((U) => P(Et, U), [P]), ae = g.useCallback((U) => P(Ct, U), [P]), oe = g.useCallback(() => P(Xt), [P]), pe = (U) => !(s.finite && (T(U) > 0 && b.currentIndex === 0 || T(U) < 0 && b.currentIndex === b.slides.length - 1)), ce = (U) => {
|
|
10180
|
+
var ge;
|
|
10181
|
+
k.current = U, (ge = D.current) === null || ge === void 0 || ge.style.setProperty(_e("swipe_offset"), `${Math.round(U)}px`);
|
|
10182
|
+
}, Fe = (U) => {
|
|
10183
|
+
var ge, Pe;
|
|
10184
10184
|
I.current = U, M.current = (() => {
|
|
10185
|
-
const
|
|
10186
|
-
return Math.min(Math.max(go(1 -
|
|
10187
|
-
})(), (
|
|
10188
|
-
}, { prepareAnimation:
|
|
10185
|
+
const wt = d && U > 0 ? U : u && U < 0 ? -U : 0;
|
|
10186
|
+
return Math.min(Math.max(go(1 - wt / 60 * (1 - 0.5), 2), 0.5), 1);
|
|
10187
|
+
})(), (ge = D.current) === null || ge === void 0 || ge.style.setProperty(_e("pull_offset"), `${Math.round(U)}px`), (Pe = D.current) === null || Pe === void 0 || Pe.style.setProperty(_e("pull_opacity"), `${M.current}`);
|
|
10188
|
+
}, { prepareAnimation: Ce } = oa(R, (U, ge, Pe) => {
|
|
10189
10189
|
if (R.current && Y)
|
|
10190
10190
|
return {
|
|
10191
10191
|
keyframes: [
|
|
10192
10192
|
{
|
|
10193
|
-
transform: `translate(0, ${U.rect.y -
|
|
10193
|
+
transform: `translate(0, ${U.rect.y - ge.y + Pe.y}px)`,
|
|
10194
10194
|
opacity: U.opacity
|
|
10195
10195
|
},
|
|
10196
10196
|
{ transform: "translate(0, 0)", opacity: 1 }
|
|
@@ -10198,26 +10198,26 @@ function vb({ children: e, ...t }) {
|
|
|
10198
10198
|
duration: U.duration,
|
|
10199
10199
|
easing: i.easing.fade
|
|
10200
10200
|
};
|
|
10201
|
-
}),
|
|
10201
|
+
}), z = (U, ge) => {
|
|
10202
10202
|
if (u || d) {
|
|
10203
|
-
|
|
10204
|
-
let
|
|
10205
|
-
R.current && (
|
|
10203
|
+
Fe(U);
|
|
10204
|
+
let Pe = 0;
|
|
10205
|
+
R.current && (Pe = i.fade * (ge ? 2 : 1), Ce({
|
|
10206
10206
|
rect: R.current.getBoundingClientRect(),
|
|
10207
10207
|
opacity: M.current,
|
|
10208
|
-
duration:
|
|
10208
|
+
duration: Pe
|
|
10209
10209
|
})), q(() => {
|
|
10210
|
-
|
|
10211
|
-
},
|
|
10210
|
+
Fe(0), N(Le.NONE);
|
|
10211
|
+
}, Pe), N(Le.ANIMATION), ge || oe();
|
|
10212
10212
|
}
|
|
10213
|
-
}, { prepareAnimation:
|
|
10214
|
-
var
|
|
10215
|
-
if (R.current && Y && (!((
|
|
10216
|
-
const De = ns(s.spacing),
|
|
10213
|
+
}, { prepareAnimation: he, isAnimationPlaying: fe } = oa(R, (U, ge, Pe) => {
|
|
10214
|
+
var Be;
|
|
10215
|
+
if (R.current && Y && (!((Be = b.animation) === null || Be === void 0) && Be.duration)) {
|
|
10216
|
+
const De = ns(s.spacing), wt = (De.percent ? De.percent * Y.width / 100 : De.pixel) || 0;
|
|
10217
10217
|
return {
|
|
10218
10218
|
keyframes: [
|
|
10219
10219
|
{
|
|
10220
|
-
transform: `translate(${T(b.globalIndex - U.index) * (Y.width +
|
|
10220
|
+
transform: `translate(${T(b.globalIndex - U.index) * (Y.width + wt) + U.rect.x - ge.x + Pe.x}px, 0)`
|
|
10221
10221
|
},
|
|
10222
10222
|
{ transform: "translate(0, 0)" }
|
|
10223
10223
|
],
|
|
@@ -10225,64 +10225,64 @@ function vb({ children: e, ...t }) {
|
|
|
10225
10225
|
easing: b.animation.easing
|
|
10226
10226
|
};
|
|
10227
10227
|
}
|
|
10228
|
-
}),
|
|
10229
|
-
var
|
|
10230
|
-
const
|
|
10228
|
+
}), Re = me((U) => {
|
|
10229
|
+
var ge, Pe;
|
|
10230
|
+
const Be = U.offset || 0, De = Be ? i.swipe : (ge = i.navigation) !== null && ge !== void 0 ? ge : i.swipe, wt = !Be && !fe() ? i.easing.navigation : i.easing.swipe;
|
|
10231
10231
|
let { direction: L } = U;
|
|
10232
|
-
const H = (
|
|
10232
|
+
const H = (Pe = U.count) !== null && Pe !== void 0 ? Pe : 1;
|
|
10233
10233
|
let W = Le.ANIMATION, V = De * H;
|
|
10234
10234
|
if (!L) {
|
|
10235
|
-
const $ = Y?.width, Q = U.duration || 0, ue = $ ? De / $ * Math.abs(
|
|
10236
|
-
H !== 0 ? (Q < ue ? V = V / ue * Math.max(Q, ue / 5) : $ && (V = De / $ * ($ - Math.abs(
|
|
10235
|
+
const $ = Y?.width, Q = U.duration || 0, ue = $ ? De / $ * Math.abs(Be) : De;
|
|
10236
|
+
H !== 0 ? (Q < ue ? V = V / ue * Math.max(Q, ue / 5) : $ && (V = De / $ * ($ - Math.abs(Be))), L = T(Be) > 0 ? Et : Ct) : V = De / 2;
|
|
10237
10237
|
}
|
|
10238
10238
|
let J = 0;
|
|
10239
|
-
L ===
|
|
10239
|
+
L === Et ? pe(T(1)) ? J = -H : (W = Le.NONE, V = De) : L === Ct && (pe(T(-1)) ? J = H : (W = Le.NONE, V = De)), V = Math.round(V), B(() => {
|
|
10240
10240
|
ce(0), N(Le.NONE);
|
|
10241
|
-
}, V), R.current &&
|
|
10241
|
+
}, V), R.current && he({
|
|
10242
10242
|
rect: R.current.getBoundingClientRect(),
|
|
10243
10243
|
index: b.globalIndex
|
|
10244
10244
|
}), N(W), P(sa, {
|
|
10245
10245
|
type: "swipe",
|
|
10246
10246
|
increment: J,
|
|
10247
10247
|
duration: V,
|
|
10248
|
-
easing:
|
|
10248
|
+
easing: wt
|
|
10249
10249
|
});
|
|
10250
10250
|
});
|
|
10251
10251
|
g.useEffect(() => {
|
|
10252
|
-
var U,
|
|
10253
|
-
!((U = b.animation) === null || U === void 0) && U.increment && (!((
|
|
10252
|
+
var U, ge;
|
|
10253
|
+
!((U = b.animation) === null || U === void 0) && U.increment && (!((ge = b.animation) === null || ge === void 0) && ge.duration) && F(() => x({ type: "swipe", increment: 0 }), b.animation.duration);
|
|
10254
10254
|
}, [b.animation, x, F]);
|
|
10255
|
-
const
|
|
10255
|
+
const xt = [
|
|
10256
10256
|
S,
|
|
10257
|
-
|
|
10257
|
+
pe,
|
|
10258
10258
|
Y?.width || 0,
|
|
10259
10259
|
i.swipe,
|
|
10260
10260
|
() => N(Le.SWIPE),
|
|
10261
10261
|
(U) => ce(U),
|
|
10262
|
-
(U,
|
|
10263
|
-
(U) =>
|
|
10262
|
+
(U, ge) => Re({ offset: U, duration: ge, count: 1 }),
|
|
10263
|
+
(U) => Re({ offset: U, count: 0 })
|
|
10264
10264
|
], In = [
|
|
10265
10265
|
() => {
|
|
10266
10266
|
d && N(Le.PULL);
|
|
10267
10267
|
},
|
|
10268
|
-
(U) =>
|
|
10269
|
-
(U) =>
|
|
10270
|
-
(U) =>
|
|
10268
|
+
(U) => Fe(U),
|
|
10269
|
+
(U) => z(U),
|
|
10270
|
+
(U) => z(U, !0)
|
|
10271
10271
|
];
|
|
10272
|
-
bb(r, ...
|
|
10273
|
-
const tn =
|
|
10274
|
-
r.focus && _().querySelector(`.${
|
|
10272
|
+
bb(r, ...xt, u, d, ...In, oe), xb(y, ...xt);
|
|
10273
|
+
const tn = me(() => {
|
|
10274
|
+
r.focus && _().querySelector(`.${de(ao)} .${de(la())}`) && A();
|
|
10275
10275
|
});
|
|
10276
10276
|
g.useEffect(tn, [tn]);
|
|
10277
|
-
const
|
|
10277
|
+
const vt = me(() => {
|
|
10278
10278
|
var U;
|
|
10279
10279
|
(U = o.view) === null || U === void 0 || U.call(o, { index: b.currentIndex });
|
|
10280
10280
|
});
|
|
10281
|
-
g.useEffect(
|
|
10281
|
+
g.useEffect(vt, [b.globalIndex, vt]), g.useEffect(() => mo(v(Et, (U) => Re({ direction: Et, ...U })), v(Ct, (U) => Re({ direction: Ct, ...U })), v(sa, (U) => x(U))), [v, Re, 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
10287
|
slideRect: Y ? Yg(Y, s.padding) : { width: 0, height: 0 },
|
|
10288
10288
|
containerRect: Y || { width: 0, height: 0 },
|
|
@@ -10292,9 +10292,9 @@ function vb({ children: e, ...t }) {
|
|
|
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,
|
|
@@ -10305,13 +10305,13 @@ 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
|
-
}), [
|
|
10313
|
+
getLightboxState: re
|
|
10314
|
+
}), [ne, ae, oe, A, ee, re]), g.createElement("div", { ref: Z, className: Qe(de(la()), de(lo)), style: {
|
|
10315
10315
|
...y === Le.SWIPE ? { [_e("swipe_offset")]: `${Math.round(k.current)}px` } : null,
|
|
10316
10316
|
...y === Le.PULL ? {
|
|
10317
10317
|
[_e("pull_offset")]: `${Math.round(I.current)}px`,
|
|
@@ -10326,15 +10326,15 @@ function vb({ children: e, ...t }) {
|
|
|
10326
10326
|
(n = c.controls) === null || n === void 0 ? void 0 : n.call(c)
|
|
10327
10327
|
));
|
|
10328
10328
|
}
|
|
10329
|
-
const wb =
|
|
10330
|
-
function
|
|
10329
|
+
const wb = bt(Yc, vb);
|
|
10330
|
+
function Nt(e) {
|
|
10331
10331
|
return Pn(Wc, e);
|
|
10332
10332
|
}
|
|
10333
10333
|
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 } =
|
|
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 } = Ye(), { 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();
|
|
@@ -10342,7 +10342,7 @@ function Tb({ slide: e, offset: t }) {
|
|
|
10342
10342
|
const b = () => {
|
|
10343
10343
|
var x, y, N, k;
|
|
10344
10344
|
let I = (x = l.slide) === null || x === void 0 ? void 0 : x.call(l, { slide: e, offset: t, rect: r });
|
|
10345
|
-
return !I &&
|
|
10345
|
+
return !I && en(e) && (I = g.createElement(ss, { slide: e, offset: t, render: l, rect: r, imageFit: c, imageProps: u, onClick: p ? void 0 : () => d?.({ index: s }) })), I ? g.createElement(
|
|
10346
10346
|
g.Fragment,
|
|
10347
10347
|
null,
|
|
10348
10348
|
(y = l.slideHeader) === null || y === void 0 ? void 0 : y.call(l, { slide: e }),
|
|
@@ -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: Qe(
|
|
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": Gt(f, "Slide"), "aria-label": Wg(f, i, s + t) }, b());
|
|
10354
10354
|
}
|
|
10355
10355
|
function Sb() {
|
|
10356
|
-
const e =
|
|
10357
|
-
return g.createElement("div", { className:
|
|
10356
|
+
const e = Ye().styles.slide;
|
|
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 } =
|
|
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,25 +10367,25 @@ function Nb({ carousel: e, labels: t }) {
|
|
|
10367
10367
|
slide: m
|
|
10368
10368
|
});
|
|
10369
10369
|
}
|
|
10370
|
-
return g.createElement("div", { ref: r, className: Qe(
|
|
10371
|
-
[`${_e(
|
|
10372
|
-
[`${_e(
|
|
10373
|
-
[`${_e(
|
|
10374
|
-
[`${_e(
|
|
10375
|
-
[`${_e(
|
|
10376
|
-
}, role: "region", "aria-live": o && !l ? "off" : "polite", "aria-roledescription":
|
|
10370
|
+
return g.createElement("div", { ref: r, className: Qe(de(Nt()), h.length > 0 && de(Nt("with_slides"))), style: {
|
|
10371
|
+
[`${_e(Nt("slides_count"))}`]: h.length,
|
|
10372
|
+
[`${_e(Nt("spacing_px"))}`]: c.pixel || 0,
|
|
10373
|
+
[`${_e(Nt("spacing_percent"))}`]: c.percent || 0,
|
|
10374
|
+
[`${_e(Nt("padding_px"))}`]: u.pixel || 0,
|
|
10375
|
+
[`${_e(Nt("padding_percent"))}`]: u.percent || 0
|
|
10376
|
+
}, role: "region", "aria-live": o && !l ? "off" : "polite", "aria-roledescription": Gt(t, "Carousel"), "aria-label": Gt(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
|
-
const kb =
|
|
10378
|
+
const kb = bt(Wc, Nb);
|
|
10379
10379
|
function gu() {
|
|
10380
|
-
const { carousel: e } =
|
|
10380
|
+
const { carousel: e } = Ye(), { slides: t, currentIndex: n } = yt(), s = t.length === 0 || e.finite && n === 0, i = t.length === 0 || e.finite && n === t.length - 1;
|
|
10381
10381
|
return { prevDisabled: s, nextDisabled: i };
|
|
10382
10382
|
}
|
|
10383
10383
|
function Eb(e) {
|
|
10384
10384
|
var t;
|
|
10385
|
-
const n = wo(), { publish: s } = fs(), { animation: i } =
|
|
10385
|
+
const n = wo(), { publish: s } = fs(), { animation: i } = Ye(), { prevDisabled: r, nextDisabled: o } = gu(), l = ((t = i.navigation) !== null && t !== void 0 ? t : i.swipe) / 2, c = aa(() => s(Et), l), u = aa(() => s(Ct), l), d = me((h) => {
|
|
10386
10386
|
switch (h.key) {
|
|
10387
10387
|
case Fg:
|
|
10388
|
-
s(
|
|
10388
|
+
s(Xt);
|
|
10389
10389
|
break;
|
|
10390
10390
|
case $g:
|
|
10391
10391
|
(n ? o : r) || (n ? u : c)();
|
|
@@ -10398,18 +10398,18 @@ 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:
|
|
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
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,
|
|
10408
|
-
e ? e() : g.createElement(ua, { label: "Previous", action:
|
|
10409
|
-
t ? t() : g.createElement(ua, { label: "Next", action:
|
|
10408
|
+
e ? e() : g.createElement(ua, { label: "Previous", action: Et, icon: cb, renderIcon: n, style: i.navigationPrev, disabled: c, onClick: r }),
|
|
10409
|
+
t ? t() : g.createElement(ua, { label: "Next", action: Ct, icon: ub, renderIcon: s, style: i.navigationNext, disabled: u, onClick: o })
|
|
10410
10410
|
);
|
|
10411
10411
|
}
|
|
10412
|
-
const Pb =
|
|
10412
|
+
const Pb = bt(jg, Cb), da = de(Og), Ib = de(Hc);
|
|
10413
10413
|
function jb(e) {
|
|
10414
10414
|
return "style" in e;
|
|
10415
10415
|
}
|
|
@@ -10439,7 +10439,7 @@ function Mb({ noScroll: { disabled: e }, children: t }) {
|
|
|
10439
10439
|
};
|
|
10440
10440
|
}, [n, e, s, i]), g.createElement(g.Fragment, null, t);
|
|
10441
10441
|
}
|
|
10442
|
-
const Rb =
|
|
10442
|
+
const Rb = bt(Mg, Mb);
|
|
10443
10443
|
function fa(e) {
|
|
10444
10444
|
return Pn(ao, e);
|
|
10445
10445
|
}
|
|
@@ -10454,17 +10454,17 @@ 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 = me(() => {
|
|
10458
10458
|
f.current.forEach((E) => E()), f.current = [];
|
|
10459
|
-
}), k =
|
|
10459
|
+
}), k = me(() => {
|
|
10460
10460
|
var E;
|
|
10461
10461
|
h(!1), N(), (E = i.exiting) === null || E === void 0 || E.call(i), p(() => {
|
|
10462
10462
|
var S;
|
|
10463
10463
|
(S = i.exited) === null || S === void 0 || S.call(i), o();
|
|
10464
10464
|
}, y);
|
|
10465
10465
|
});
|
|
10466
|
-
g.useEffect(() => b(
|
|
10467
|
-
const I =
|
|
10466
|
+
g.useEffect(() => b(Xt, k), [b, k]);
|
|
10467
|
+
const I = me((E) => {
|
|
10468
10468
|
var S, v, P;
|
|
10469
10469
|
qg(E), h(!0), (S = i.entering) === null || S === void 0 || S.call(i);
|
|
10470
10470
|
const F = (P = (v = E.parentNode) === null || v === void 0 ? void 0 : v.children) !== null && P !== void 0 ? P : [];
|
|
@@ -10482,7 +10482,7 @@ function Ab({ children: e, animation: t, styles: n, className: s, on: i, portal:
|
|
|
10482
10482
|
}), M = g.useCallback((E) => {
|
|
10483
10483
|
E ? I(E) : N();
|
|
10484
10484
|
}, [I, N]);
|
|
10485
|
-
return c ? ka(g.createElement(gb, { ref: M, className: Qe(s,
|
|
10485
|
+
return c ? ka(g.createElement(gb, { ref: M, className: Qe(s, de(fa()), de(Hc), d && de(fa("open"))), "aria-modal": !0, role: "dialog", "aria-label": Gt(l, "Lightbox"), style: {
|
|
10486
10486
|
...t.fade !== vi.animation.fade ? { [_e("fade_animation_duration")]: `${y}ms` } : null,
|
|
10487
10487
|
...t.easing.fade !== vi.animation.easing.fade ? { [_e("fade_animation_timing_function")]: t.easing.fade } : null,
|
|
10488
10488
|
...n.root
|
|
@@ -10490,11 +10490,11 @@ function Ab({ children: e, animation: t, styles: n, className: s, on: i, portal:
|
|
|
10490
10490
|
m.current || (m.current = E.relatedTarget);
|
|
10491
10491
|
} }, e), r.root || document.body) : null;
|
|
10492
10492
|
}
|
|
10493
|
-
const Lb =
|
|
10493
|
+
const Lb = bt(ao, Ab);
|
|
10494
10494
|
function Vb({ children: e }) {
|
|
10495
10495
|
return g.createElement(g.Fragment, null, e);
|
|
10496
10496
|
}
|
|
10497
|
-
const Ob =
|
|
10497
|
+
const Ob = bt(Rg, Vb);
|
|
10498
10498
|
function Db(e) {
|
|
10499
10499
|
return Pn(Uc, e);
|
|
10500
10500
|
}
|
|
@@ -10503,10 +10503,10 @@ function _b({ toolbar: { buttons: e }, render: { buttonClose: t, iconClose: n },
|
|
|
10503
10503
|
tt(() => {
|
|
10504
10504
|
r(l?.width);
|
|
10505
10505
|
}, [r, l?.width]);
|
|
10506
|
-
const c = () => t ? t() : g.createElement(xo, { key:
|
|
10507
|
-
return g.createElement("div", { ref: o, style: s.toolbar, className:
|
|
10506
|
+
const c = () => t ? t() : g.createElement(xo, { key: Xt, label: "Close", icon: lb, renderIcon: n, onClick: i });
|
|
10507
|
+
return g.createElement("div", { ref: o, style: s.toolbar, className: de(Db()) }, e?.map((u) => u === Xt ? c() : u));
|
|
10508
10508
|
}
|
|
10509
|
-
const Fb =
|
|
10509
|
+
const Fb = bt(Uc, _b);
|
|
10510
10510
|
function bu(e, t) {
|
|
10511
10511
|
var n;
|
|
10512
10512
|
return g.createElement(e.module.component, { key: e.module.name, ...t }, (n = e.children) === null || n === void 0 ? void 0 : n.map((s) => bu(s, t)));
|
|
@@ -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: I, ...M } = vi, { config: E, augmentation: S } = Jg([
|
|
10524
|
-
|
|
10525
|
-
|
|
10526
|
-
|
|
10527
|
-
|
|
10528
|
-
|
|
10529
|
-
|
|
10524
|
+
je(Lb, [
|
|
10525
|
+
je(Rb, [
|
|
10526
|
+
je(wb, [
|
|
10527
|
+
je(kb),
|
|
10528
|
+
je(Fb),
|
|
10529
|
+
je(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(je(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 } =
|
|
10583
|
+
const i = g.useRef(void 0), r = g.useRef(void 0), { zoom: o } = Ye().animation, l = vo(), c = me(() => {
|
|
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 {
|
|
@@ -10604,23 +10604,23 @@ function Yb(e, t, n, s) {
|
|
|
10604
10604
|
}, [s]);
|
|
10605
10605
|
}
|
|
10606
10606
|
function Ub(e, t) {
|
|
10607
|
-
const { on: n } =
|
|
10607
|
+
const { on: n } = Ye(), s = me(() => {
|
|
10608
10608
|
var i;
|
|
10609
10609
|
t || (i = n.zoom) === null || i === void 0 || i.call(n, { zoom: e });
|
|
10610
10610
|
});
|
|
10611
10611
|
g.useEffect(s, [e, s]);
|
|
10612
10612
|
}
|
|
10613
10613
|
function ps() {
|
|
10614
|
-
const { zoom: e } =
|
|
10614
|
+
const { zoom: e } = Ye();
|
|
10615
10615
|
return yu(e);
|
|
10616
10616
|
}
|
|
10617
10617
|
function Hb(e, t) {
|
|
10618
10618
|
var n, s;
|
|
10619
10619
|
let i = { width: 0, height: 0 }, r = { width: 0, height: 0 };
|
|
10620
|
-
const { currentSlide: o } =
|
|
10620
|
+
const { currentSlide: o } = yt(), { imageFit: l } = Ye().carousel, { maxZoomPixelRatio: c } = ps();
|
|
10621
10621
|
if (e && o) {
|
|
10622
10622
|
const d = { ...o, ...t };
|
|
10623
|
-
if (
|
|
10623
|
+
if (en(d)) {
|
|
10624
10624
|
const h = bo(d, l), f = Math.max(...(((n = d.srcSet) === null || n === void 0 ? void 0 : n.map((p) => p.width)) || []).concat(d.width ? [d.width] : [])), m = Math.max(...(((s = d.srcSet) === null || s === void 0 ? void 0 : s.map((p) => p.height)) || []).concat(d.height ? [d.height] : []));
|
|
10625
10625
|
f > 0 && m > 0 && e.width > 0 && e.height > 0 && (r = h ? {
|
|
10626
10626
|
width: Math.round(Math.min(f, e.width / e.height * m)),
|
|
@@ -10647,24 +10647,24 @@ 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 } =
|
|
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: I, doubleClickDelay: M, doubleClickMaxStops: E, pinchZoomDistanceFactor: S, pinchZoomV4: v } = ps(), P = g.useCallback((C) => {
|
|
10651
10651
|
if (p.current) {
|
|
10652
|
-
const { pageX: _, pageY: j } = C, { scrollX: T, scrollY: A } = m(), { left: ee, top:
|
|
10653
|
-
return [_ - ee - T -
|
|
10652
|
+
const { pageX: _, pageY: j } = C, { scrollX: T, scrollY: A } = m(), { left: ee, top: re, width: ne, height: ae } = p.current.getBoundingClientRect();
|
|
10653
|
+
return [_ - ee - T - ne / 2, j - re - A - ae / 2];
|
|
10654
10654
|
}
|
|
10655
10655
|
return [];
|
|
10656
|
-
}, [p, m]), F =
|
|
10656
|
+
}, [p, m]), F = me((C) => {
|
|
10657
10657
|
const { key: _, metaKey: j, ctrlKey: T } = C, A = j || 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 = me((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, ...P(C));
|
|
10670
10670
|
return;
|
|
@@ -10675,7 +10675,7 @@ function Xb(e, t, n, s, i, r, o, l, c) {
|
|
|
10675
10675
|
_.splice(0, _.length, ..._.filter((j) => j.pointerId !== C.pointerId));
|
|
10676
10676
|
}, []), D = g.useCallback((C) => {
|
|
10677
10677
|
q(C), C.persist(), u.current.push(C);
|
|
10678
|
-
}, [q]), te =
|
|
10678
|
+
}, [q]), te = me((C) => {
|
|
10679
10679
|
var _;
|
|
10680
10680
|
const j = u.current;
|
|
10681
10681
|
if (C.pointerType === "mouse" && C.buttons > 1 || !(!((_ = c?.current) === null || _ === void 0) && _.contains(C.target)))
|
|
@@ -10696,12 +10696,12 @@ function Xb(e, t, n, s, i, r, o, l, c) {
|
|
|
10696
10696
|
initialZoom: e
|
|
10697
10697
|
};
|
|
10698
10698
|
}
|
|
10699
|
-
}), Y =
|
|
10699
|
+
}), Y = me((C) => {
|
|
10700
10700
|
const _ = u.current, j = _.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) => P(ee)).reduce((ee,
|
|
10704
|
+
o(A, !0, ..._.map((ee) => P(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(), j && (_.length === 1 && l((j.clientX - C.clientX) / e, (j.clientY - C.clientY) / e), D(C)));
|
|
@@ -10716,7 +10716,7 @@ function Xb(e, t, n, s, i, r, o, l, c) {
|
|
|
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 } =
|
|
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 && en(d) ? d.src : void 0, y = !x || !n?.current;
|
|
10720
10720
|
tt(() => {
|
|
10721
10721
|
i(1), o(0), c(0);
|
|
10722
10722
|
}, [h, x]);
|
|
@@ -10726,7 +10726,7 @@ function Gb(e, t, n) {
|
|
|
10726
10726
|
}, [s, r, l, m, e.width, e.height]), k = g.useCallback((S, v, P, F) => {
|
|
10727
10727
|
const B = go(S + 0.01 < t ? S - 0.01 > p ? S : p : t, 5);
|
|
10728
10728
|
v || u(), N(P ? P * (1 / s - 1 / B) : 0, F ? F * (1 / s - 1 / B) : 0, B), i(B);
|
|
10729
|
-
}, [s, p, t, N, u]), I =
|
|
10729
|
+
}, [s, p, t, N, u]), I = me(() => {
|
|
10730
10730
|
s > 1 && (s > t && k(t, !0), N());
|
|
10731
10731
|
});
|
|
10732
10732
|
tt(I, [f.width, f.height, I]);
|
|
@@ -10748,13 +10748,13 @@ function Kb({ children: e }) {
|
|
|
10748
10748
|
const y = g.useMemo(() => ({ ...x, setZoomWrapper: n }), [x, n]);
|
|
10749
10749
|
return g.createElement(xu.Provider, { value: y }, e);
|
|
10750
10750
|
}
|
|
10751
|
-
const Zb =
|
|
10751
|
+
const Zb = Lt("ZoomIn", g.createElement(
|
|
10752
10752
|
g.Fragment,
|
|
10753
10753
|
null,
|
|
10754
10754
|
g.createElement("path", { d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" }),
|
|
10755
10755
|
g.createElement("path", { d: "M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z" })
|
|
10756
|
-
)), qb =
|
|
10757
|
-
const i = g.useRef(!1), r = g.useRef(!1), { zoom: o, minZoom: l, maxZoom: c, zoomIn: u, zoomOut: d, disabled: h } = To(), { render: f } =
|
|
10756
|
+
)), qb = Lt("ZoomOut", g.createElement("path", { d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM7 9h5v1H7z" })), ba = g.forwardRef(function({ zoomIn: t, onLoseFocus: n }, s) {
|
|
10757
|
+
const i = g.useRef(!1), r = g.useRef(!1), { zoom: o, minZoom: l, maxZoom: c, zoomIn: u, zoomOut: d, disabled: h } = To(), { render: f } = Ye(), m = h || (t ? o >= c : o <= l);
|
|
10758
10758
|
return g.useEffect(() => {
|
|
10759
10759
|
m && i.current && r.current && n(), m || (i.current = !0);
|
|
10760
10760
|
}, [m, n]), g.createElement(xo, { ref: s, disabled: m, label: t ? "Zoom in" : "Zoom out", icon: t ? Zb : qb, renderIcon: t ? f.iconZoomIn : f.iconZoomOut, onClick: t ? u : d, onFocus: () => {
|
|
@@ -10776,7 +10776,7 @@ function Jb() {
|
|
|
10776
10776
|
);
|
|
10777
10777
|
}
|
|
10778
10778
|
function Qb() {
|
|
10779
|
-
const { render: e } =
|
|
10779
|
+
const { render: e } = Ye(), t = To();
|
|
10780
10780
|
return e.buttonZoom ? g.createElement(g.Fragment, null, e.buttonZoom(t)) : g.createElement(Jb, null);
|
|
10781
10781
|
}
|
|
10782
10782
|
function ey(e) {
|
|
@@ -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((M, E) => M.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((M) => M.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((M, E) => M.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((M) => M.width)), x = Math.min((p ? Math.max : Math.min)(l.width, f * (l.height / m)), b), y = Ug(), N = me(() => {
|
|
10799
10799
|
var M;
|
|
10800
10800
|
const E = (M = h.find((S) => S.width >= x * y)) !== null && M !== void 0 ? M : 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
10803
|
tt(N, [l.width, l.height, y, N]);
|
|
10804
|
-
const k =
|
|
10804
|
+
const k = me((M) => r({ type: "done", source: M })), I = {
|
|
10805
10805
|
WebkitTransform: d ? "initial" : "translateZ(0)"
|
|
10806
10806
|
};
|
|
10807
10807
|
return p || Object.assign(I, l.width / l.height < f / m ? { width: "100%", height: "auto" } : { width: "auto", height: "100%" }), g.createElement(
|
|
@@ -10817,11 +10817,11 @@ function ny(e) {
|
|
|
10817
10817
|
}
|
|
10818
10818
|
function sy({ render: e, slide: t, offset: n, rect: s }) {
|
|
10819
10819
|
var i;
|
|
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 } =
|
|
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 } = Ye(), { 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
|
-
if (!y &&
|
|
10824
|
+
if (!y && en(t)) {
|
|
10825
10825
|
const N = {
|
|
10826
10826
|
slide: t,
|
|
10827
10827
|
offset: n,
|
|
@@ -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: Qe(
|
|
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 }) => {
|
|
@@ -10848,16 +10848,16 @@ const iy = ({ augment: e, addModule: t }) => {
|
|
|
10848
10848
|
...i,
|
|
10849
10849
|
slide: (c) => {
|
|
10850
10850
|
var u;
|
|
10851
|
-
return
|
|
10851
|
+
return en(c.slide) ? g.createElement(sy, { render: i, ...c }) : (u = i.slide) === null || u === void 0 ? void 0 : u.call(i, c);
|
|
10852
10852
|
}
|
|
10853
10853
|
},
|
|
10854
10854
|
controller: { ...r, preventDefaultWheelY: l.scrollToZoom },
|
|
10855
10855
|
...o
|
|
10856
10856
|
};
|
|
10857
|
-
}), t(
|
|
10857
|
+
}), t(bt(na, Kb));
|
|
10858
10858
|
};
|
|
10859
10859
|
function oy({ onClose: e, images: t }) {
|
|
10860
|
-
return
|
|
10860
|
+
return se(() => {
|
|
10861
10861
|
const n = (s) => {
|
|
10862
10862
|
s.key === "Escape" && e();
|
|
10863
10863
|
};
|
|
@@ -10878,12 +10878,13 @@ function oy({ onClose: e, images: t }) {
|
|
|
10878
10878
|
);
|
|
10879
10879
|
}
|
|
10880
10880
|
function vu({ onClose: e, source: t }) {
|
|
10881
|
-
|
|
10882
|
-
|
|
10883
|
-
|
|
10881
|
+
const { t: n } = mt();
|
|
10882
|
+
return se(() => {
|
|
10883
|
+
const s = (i) => {
|
|
10884
|
+
i.key === "Escape" && e();
|
|
10884
10885
|
};
|
|
10885
|
-
return window.addEventListener("keydown",
|
|
10886
|
-
window.removeEventListener("keydown",
|
|
10886
|
+
return window.addEventListener("keydown", s), () => {
|
|
10887
|
+
window.removeEventListener("keydown", s);
|
|
10887
10888
|
};
|
|
10888
10889
|
}, [e]), /* @__PURE__ */ a.jsxs(
|
|
10889
10890
|
w.div,
|
|
@@ -10907,7 +10908,7 @@ function vu({ onClose: e, source: t }) {
|
|
|
10907
10908
|
whileTap: { scale: 0.95 },
|
|
10908
10909
|
children: [
|
|
10909
10910
|
/* @__PURE__ */ a.jsx(dt, { className: "w-5 h-5" }),
|
|
10910
|
-
/* @__PURE__ */ a.jsx("span", { children: "
|
|
10911
|
+
/* @__PURE__ */ a.jsx("span", { children: n("layout.cerrar") })
|
|
10911
10912
|
]
|
|
10912
10913
|
}
|
|
10913
10914
|
),
|
|
@@ -10968,7 +10969,7 @@ function ya({
|
|
|
10968
10969
|
behavior: "smooth"
|
|
10969
10970
|
});
|
|
10970
10971
|
};
|
|
10971
|
-
if (
|
|
10972
|
+
if (se(() => {
|
|
10972
10973
|
if (e.images && e.images.length > 6) {
|
|
10973
10974
|
I();
|
|
10974
10975
|
const S = h.current;
|
|
@@ -11081,7 +11082,7 @@ function ya({
|
|
|
11081
11082
|
children: e.description
|
|
11082
11083
|
}
|
|
11083
11084
|
),
|
|
11084
|
-
/* @__PURE__ */ a.jsx(
|
|
11085
|
+
/* @__PURE__ */ a.jsx(ke, { mode: "wait", children: t && /* @__PURE__ */ a.jsxs(
|
|
11085
11086
|
w.div,
|
|
11086
11087
|
{
|
|
11087
11088
|
initial: { opacity: 0, y: 8 },
|
|
@@ -11231,7 +11232,7 @@ function ya({
|
|
|
11231
11232
|
}
|
|
11232
11233
|
),
|
|
11233
11234
|
typeof document < "u" && ka(
|
|
11234
|
-
/* @__PURE__ */ a.jsx(
|
|
11235
|
+
/* @__PURE__ */ a.jsx(ke, { children: u !== null && e.images && /* @__PURE__ */ a.jsxs(
|
|
11235
11236
|
w.div,
|
|
11236
11237
|
{
|
|
11237
11238
|
className: "absolute inset-0 z-12000 flex items-center justify-center bg-black",
|
|
@@ -11334,7 +11335,7 @@ function ya({
|
|
|
11334
11335
|
] });
|
|
11335
11336
|
}
|
|
11336
11337
|
function ly(e) {
|
|
11337
|
-
return e ? Ni[e] ||
|
|
11338
|
+
return e ? Ni[e] || jt : jt;
|
|
11338
11339
|
}
|
|
11339
11340
|
function cy(e, t, n, s) {
|
|
11340
11341
|
return {
|
|
@@ -11379,7 +11380,7 @@ function dy({ tab: e, tabIndex: t = 0, expandedCardId: n, setExpandedCardId: s }
|
|
|
11379
11380
|
exit: { opacity: 0, y: -20 },
|
|
11380
11381
|
transition: { duration: 0.4, ease: [0.4, 0, 0.2, 1] },
|
|
11381
11382
|
className: "space-y-6",
|
|
11382
|
-
children: /* @__PURE__ */ a.jsx(
|
|
11383
|
+
children: /* @__PURE__ */ a.jsx(ke, { mode: "wait", initial: !1, children: l ? /* @__PURE__ */ a.jsx(
|
|
11383
11384
|
w.div,
|
|
11384
11385
|
{
|
|
11385
11386
|
initial: { opacity: 0, y: 14, scale: 0.995 },
|
|
@@ -11431,61 +11432,61 @@ function dy({ tab: e, tabIndex: t = 0, expandedCardId: n, setExpandedCardId: s }
|
|
|
11431
11432
|
);
|
|
11432
11433
|
}
|
|
11433
11434
|
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(), [I, M] = O(0.3), [E, S] = O(null), [v, P] = O(null), F = Te(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
|
-
|
|
11436
|
-
const z = document.body.style.overflow,
|
|
11435
|
+
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(), [I, M] = O(0.3), [E, S] = O(null), [v, P] = O(null), F = Te(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 ?? [], { t: _ } = mt();
|
|
11436
|
+
se(() => {
|
|
11437
|
+
const z = document.body.style.overflow, he = document.documentElement.style.overflow;
|
|
11437
11438
|
return document.body.style.overflow = "hidden", document.documentElement.style.overflow = "hidden", () => {
|
|
11438
|
-
document.body.style.overflow = z, document.documentElement.style.overflow =
|
|
11439
|
+
document.body.style.overflow = z, document.documentElement.style.overflow = he;
|
|
11439
11440
|
};
|
|
11440
11441
|
}, []);
|
|
11441
|
-
const
|
|
11442
|
+
const j = () => {
|
|
11442
11443
|
i > 0 && r((z) => Math.max(0, z - Y));
|
|
11443
|
-
},
|
|
11444
|
+
}, T = () => {
|
|
11444
11445
|
i < R && r((z) => Math.min(R, z + Y));
|
|
11445
|
-
},
|
|
11446
|
-
|
|
11447
|
-
},
|
|
11446
|
+
}, A = (z) => !!z?.trim(), ee = (z) => z?.endsWith(".webm") || z?.endsWith(".mp4"), re = (z) => {
|
|
11447
|
+
A(z) && (m(z.trim()), h(!0));
|
|
11448
|
+
}, ne = () => {
|
|
11448
11449
|
const z = F.current;
|
|
11449
11450
|
if (!z) return;
|
|
11450
|
-
const { scrollLeft:
|
|
11451
|
-
q(
|
|
11452
|
-
},
|
|
11453
|
-
const
|
|
11454
|
-
if (!
|
|
11455
|
-
const
|
|
11456
|
-
|
|
11457
|
-
left: z === "left" ? -
|
|
11451
|
+
const { scrollLeft: he, scrollWidth: fe, clientWidth: Re } = z;
|
|
11452
|
+
q(he > 0), te(he < fe - Re - 10);
|
|
11453
|
+
}, ae = (z) => {
|
|
11454
|
+
const he = F.current;
|
|
11455
|
+
if (!he) return;
|
|
11456
|
+
const fe = 300;
|
|
11457
|
+
he.scrollBy({
|
|
11458
|
+
left: z === "left" ? -fe : fe,
|
|
11458
11459
|
behavior: "smooth"
|
|
11459
11460
|
});
|
|
11460
|
-
},
|
|
11461
|
-
|
|
11462
|
-
|
|
11461
|
+
}, oe = e?.items[n]?.tab || [];
|
|
11462
|
+
se(() => {
|
|
11463
|
+
ne();
|
|
11463
11464
|
const z = F.current;
|
|
11464
11465
|
if (z)
|
|
11465
|
-
return z.addEventListener("scroll",
|
|
11466
|
-
z.removeEventListener("scroll",
|
|
11466
|
+
return z.addEventListener("scroll", ne), window.addEventListener("resize", ne), () => {
|
|
11467
|
+
z.removeEventListener("scroll", ne), window.removeEventListener("resize", ne);
|
|
11467
11468
|
};
|
|
11468
|
-
}, [
|
|
11469
|
-
const
|
|
11469
|
+
}, [oe]);
|
|
11470
|
+
const pe = (z) => {
|
|
11470
11471
|
s(z), S(null), P(null), b(!1), M(0.3);
|
|
11471
11472
|
};
|
|
11472
|
-
|
|
11473
|
-
const z = (
|
|
11473
|
+
se(() => {
|
|
11474
|
+
const z = (he) => {
|
|
11474
11475
|
if (o || d || p || x) return;
|
|
11475
|
-
const
|
|
11476
|
-
|
|
11476
|
+
const fe = e.items.length;
|
|
11477
|
+
fe <= 1 || (he.key === "ArrowRight" ? (he.preventDefault(), pe((n + 1) % fe)) : he.key === "ArrowLeft" && (he.preventDefault(), pe((n - 1 + fe) % fe)));
|
|
11477
11478
|
};
|
|
11478
11479
|
return window.addEventListener("keydown", z), () => window.removeEventListener("keydown", z);
|
|
11479
|
-
}, [n, o, d, p, x, e.items.length]),
|
|
11480
|
+
}, [n, o, d, p, x, e.items.length]), se(() => {
|
|
11480
11481
|
const z = globalThis.setTimeout(() => {
|
|
11481
11482
|
M(0.9);
|
|
11482
11483
|
}, 1e4);
|
|
11483
11484
|
return () => globalThis.clearTimeout(z);
|
|
11484
11485
|
}, [n]);
|
|
11485
|
-
const
|
|
11486
|
-
if (!(z < 0 || z >=
|
|
11487
|
-
return
|
|
11488
|
-
},
|
|
11486
|
+
const ce = (z) => z ? Ni[z] || jt : jt, Fe = (z) => {
|
|
11487
|
+
if (!(z < 0 || z >= oe.length))
|
|
11488
|
+
return oe[z];
|
|
11489
|
+
}, Ce = E != null;
|
|
11489
11490
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
11490
11491
|
/* @__PURE__ */ a.jsxs(
|
|
11491
11492
|
w.div,
|
|
@@ -11527,7 +11528,7 @@ function wu({ item: e, onClose: t }) {
|
|
|
11527
11528
|
w.button,
|
|
11528
11529
|
{
|
|
11529
11530
|
onClick: (z) => {
|
|
11530
|
-
z.stopPropagation(),
|
|
11531
|
+
z.stopPropagation(), ae("left");
|
|
11531
11532
|
},
|
|
11532
11533
|
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",
|
|
11533
11534
|
initial: { opacity: 0, scale: 0.8 },
|
|
@@ -11548,21 +11549,21 @@ function wu({ item: e, onClose: t }) {
|
|
|
11548
11549
|
transition: { delay: 0.3, duration: 0.7, ease: [0.22, 1, 0.36, 1] },
|
|
11549
11550
|
children: [
|
|
11550
11551
|
/* @__PURE__ */ a.jsx("div", { className: "w-11 h-11 shrink-0", "aria-hidden": "true" }),
|
|
11551
|
-
|
|
11552
|
-
const
|
|
11552
|
+
oe.map((z, he) => {
|
|
11553
|
+
const fe = ce(z.icon), Re = E === he;
|
|
11553
11554
|
return /* @__PURE__ */ a.jsxs(
|
|
11554
11555
|
w.button,
|
|
11555
11556
|
{
|
|
11556
11557
|
onClick: () => {
|
|
11557
|
-
S(
|
|
11558
|
+
S(he), P(null);
|
|
11558
11559
|
},
|
|
11559
|
-
className: `relative px-6 py-3 rounded-full font-medium text-sm transition-all duration-300 flex items-center gap-2 shrink-0 ${
|
|
11560
|
+
className: `relative px-6 py-3 rounded-full font-medium text-sm transition-all duration-300 flex items-center gap-2 shrink-0 ${Re ? "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"}`,
|
|
11560
11561
|
whileHover: { scale: 1.05 },
|
|
11561
11562
|
whileTap: { scale: 0.95 },
|
|
11562
11563
|
children: [
|
|
11563
|
-
/* @__PURE__ */ a.jsx(
|
|
11564
|
+
/* @__PURE__ */ a.jsx(fe, { className: "w-4 h-4" }),
|
|
11564
11565
|
z.name,
|
|
11565
|
-
|
|
11566
|
+
Re && /* @__PURE__ */ a.jsx(
|
|
11566
11567
|
w.div,
|
|
11567
11568
|
{
|
|
11568
11569
|
layoutId: "activeTab",
|
|
@@ -11572,7 +11573,7 @@ function wu({ item: e, onClose: t }) {
|
|
|
11572
11573
|
)
|
|
11573
11574
|
]
|
|
11574
11575
|
},
|
|
11575
|
-
`${z.name}-${
|
|
11576
|
+
`${z.name}-${he}`
|
|
11576
11577
|
);
|
|
11577
11578
|
}),
|
|
11578
11579
|
/* @__PURE__ */ a.jsx("div", { className: "w-11 h-11 shrink-0 flex items-center justify-center", children: /* @__PURE__ */ a.jsx(
|
|
@@ -11584,16 +11585,16 @@ function wu({ item: e, onClose: t }) {
|
|
|
11584
11585
|
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",
|
|
11585
11586
|
initial: !1,
|
|
11586
11587
|
animate: {
|
|
11587
|
-
opacity:
|
|
11588
|
-
scale:
|
|
11589
|
-
x:
|
|
11588
|
+
opacity: Ce ? 1 : 0,
|
|
11589
|
+
scale: Ce ? 1 : 0.75,
|
|
11590
|
+
x: Ce ? 0 : -6
|
|
11590
11591
|
},
|
|
11591
11592
|
transition: { type: "spring", stiffness: 300, damping: 25 },
|
|
11592
|
-
whileHover:
|
|
11593
|
-
whileTap:
|
|
11594
|
-
disabled: !
|
|
11595
|
-
"aria-hidden": !
|
|
11596
|
-
tabIndex:
|
|
11593
|
+
whileHover: Ce ? { scale: 1.1, rotate: 90 } : {},
|
|
11594
|
+
whileTap: Ce ? { scale: 0.9 } : {},
|
|
11595
|
+
disabled: !Ce,
|
|
11596
|
+
"aria-hidden": !Ce,
|
|
11597
|
+
tabIndex: Ce ? 0 : -1,
|
|
11597
11598
|
children: /* @__PURE__ */ a.jsx(dt, { className: "w-5 h-5" })
|
|
11598
11599
|
}
|
|
11599
11600
|
) })
|
|
@@ -11604,7 +11605,7 @@ function wu({ item: e, onClose: t }) {
|
|
|
11604
11605
|
w.button,
|
|
11605
11606
|
{
|
|
11606
11607
|
onClick: (z) => {
|
|
11607
|
-
z.stopPropagation(),
|
|
11608
|
+
z.stopPropagation(), ae("right");
|
|
11608
11609
|
},
|
|
11609
11610
|
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",
|
|
11610
11611
|
initial: { opacity: 0, scale: 0.8 },
|
|
@@ -11660,7 +11661,7 @@ function wu({ item: e, onClose: t }) {
|
|
|
11660
11661
|
},
|
|
11661
11662
|
e.items[n].title
|
|
11662
11663
|
),
|
|
11663
|
-
/* @__PURE__ */ a.jsx(
|
|
11664
|
+
/* @__PURE__ */ a.jsx(ke, { mode: "popLayout", initial: !1, children: E === null && /* @__PURE__ */ a.jsx(
|
|
11664
11665
|
w.p,
|
|
11665
11666
|
{
|
|
11666
11667
|
layout: "position",
|
|
@@ -11695,7 +11696,7 @@ function wu({ item: e, onClose: t }) {
|
|
|
11695
11696
|
layout: { type: "spring", stiffness: 210, damping: 28 }
|
|
11696
11697
|
},
|
|
11697
11698
|
children: [
|
|
11698
|
-
|
|
11699
|
+
A(e.items[n]?.playMedia?.url) && /* @__PURE__ */ a.jsx(
|
|
11699
11700
|
w.button,
|
|
11700
11701
|
{
|
|
11701
11702
|
onClick: () => {
|
|
@@ -11713,7 +11714,7 @@ function wu({ item: e, onClose: t }) {
|
|
|
11713
11714
|
),
|
|
11714
11715
|
(e.items[n]?.links?.length ?? 0) > 0 && e.items[n]?.links?.map(
|
|
11715
11716
|
(z) => /* @__PURE__ */ a.jsx(gi, { item: z, onClick: () => {
|
|
11716
|
-
|
|
11717
|
+
ee(z.url) ? (u(z.url.trim()), l(!0)) : re(z.url);
|
|
11717
11718
|
} })
|
|
11718
11719
|
),
|
|
11719
11720
|
(C?.length ?? 0) > 0 && /* @__PURE__ */ a.jsx(
|
|
@@ -11730,16 +11731,16 @@ function wu({ item: e, onClose: t }) {
|
|
|
11730
11731
|
},
|
|
11731
11732
|
"cards-icon"
|
|
11732
11733
|
),
|
|
11733
|
-
(e.items[n]?.ppts?.length ?? 0) > 0 && e.items[n].ppts.map((z,
|
|
11734
|
-
const
|
|
11734
|
+
(e.items[n]?.ppts?.length ?? 0) > 0 && e.items[n].ppts.map((z, he) => {
|
|
11735
|
+
const fe = z.image.map((xt) => xt.url), Re = {
|
|
11735
11736
|
icon: z.icon ?? "Presentation",
|
|
11736
11737
|
text: z.name,
|
|
11737
11738
|
transparent: !1,
|
|
11738
11739
|
url: ""
|
|
11739
11740
|
};
|
|
11740
|
-
return /* @__PURE__ */ a.jsx(gi, { item:
|
|
11741
|
-
k(
|
|
11742
|
-
} }, `ppt-${z.name}-${
|
|
11741
|
+
return /* @__PURE__ */ a.jsx(gi, { item: Re, onClick: () => {
|
|
11742
|
+
k(fe), y(!0);
|
|
11743
|
+
} }, `ppt-${z.name}-${he}`);
|
|
11743
11744
|
}),
|
|
11744
11745
|
!1
|
|
11745
11746
|
]
|
|
@@ -11749,7 +11750,7 @@ function wu({ item: e, onClose: t }) {
|
|
|
11749
11750
|
]
|
|
11750
11751
|
}
|
|
11751
11752
|
),
|
|
11752
|
-
/* @__PURE__ */ a.jsx(
|
|
11753
|
+
/* @__PURE__ */ a.jsx(ke, { mode: "popLayout", initial: !1, children: E !== null && typeof E == "number" && /* @__PURE__ */ a.jsx(
|
|
11753
11754
|
w.div,
|
|
11754
11755
|
{
|
|
11755
11756
|
layout: "position",
|
|
@@ -11766,7 +11767,7 @@ function wu({ item: e, onClose: t }) {
|
|
|
11766
11767
|
children: /* @__PURE__ */ a.jsx(
|
|
11767
11768
|
dy,
|
|
11768
11769
|
{
|
|
11769
|
-
tab:
|
|
11770
|
+
tab: Fe(E),
|
|
11770
11771
|
tabIndex: E,
|
|
11771
11772
|
expandedCardId: v,
|
|
11772
11773
|
setExpandedCardId: P
|
|
@@ -11794,7 +11795,7 @@ function wu({ item: e, onClose: t }) {
|
|
|
11794
11795
|
whileTap: { scale: 0.95 },
|
|
11795
11796
|
children: [
|
|
11796
11797
|
/* @__PURE__ */ a.jsx(dt, { className: "w-5 h-5" }),
|
|
11797
|
-
/* @__PURE__ */ a.jsx("span", { children: "
|
|
11798
|
+
/* @__PURE__ */ a.jsx("span", { children: _("layout.cerrar") })
|
|
11798
11799
|
]
|
|
11799
11800
|
}
|
|
11800
11801
|
),
|
|
@@ -11810,7 +11811,7 @@ function wu({ item: e, onClose: t }) {
|
|
|
11810
11811
|
Z && /* @__PURE__ */ a.jsx(
|
|
11811
11812
|
w.button,
|
|
11812
11813
|
{
|
|
11813
|
-
onClick:
|
|
11814
|
+
onClick: j,
|
|
11814
11815
|
disabled: i === 0,
|
|
11815
11816
|
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",
|
|
11816
11817
|
whileHover: { scale: 1.1, x: -3 },
|
|
@@ -11834,19 +11835,19 @@ function wu({ item: e, onClose: t }) {
|
|
|
11834
11835
|
damping: 30,
|
|
11835
11836
|
mass: 0.8
|
|
11836
11837
|
},
|
|
11837
|
-
children: e.items.map((z,
|
|
11838
|
-
const
|
|
11838
|
+
children: e.items.map((z, he) => {
|
|
11839
|
+
const fe = n === he, Re = 100 / Y;
|
|
11839
11840
|
return /* @__PURE__ */ a.jsxs(
|
|
11840
11841
|
w.div,
|
|
11841
11842
|
{
|
|
11842
|
-
onClick: () =>
|
|
11843
|
-
className: `relative flex-shrink-0 h-32 cursor-pointer rounded-xl overflow-hidden transition-all duration-300 ${
|
|
11844
|
-
style: { width: `calc(${
|
|
11843
|
+
onClick: () => pe(he),
|
|
11844
|
+
className: `relative flex-shrink-0 h-32 cursor-pointer rounded-xl overflow-hidden transition-all duration-300 ${fe ? "shadow-2xl shadow-cyan-500/50" : "shadow-lg hover:shadow-cyan-400/30"}`,
|
|
11845
|
+
style: { width: `calc(${Re}% - 13.33px)` },
|
|
11845
11846
|
whileHover: { scale: 1.05, y: -5 },
|
|
11846
11847
|
whileTap: { scale: 0.98 },
|
|
11847
11848
|
initial: { opacity: 0, scale: 0.9 },
|
|
11848
11849
|
animate: { opacity: 1, scale: 1 },
|
|
11849
|
-
transition: { delay: 0.6 +
|
|
11850
|
+
transition: { delay: 0.6 + he * 0.03, duration: 0.3 },
|
|
11850
11851
|
children: [
|
|
11851
11852
|
/* @__PURE__ */ a.jsx(
|
|
11852
11853
|
"img",
|
|
@@ -11858,7 +11859,7 @@ function wu({ item: e, onClose: t }) {
|
|
|
11858
11859
|
),
|
|
11859
11860
|
/* @__PURE__ */ a.jsx("div", { className: "absolute inset-0 bg-gradient-to-t from-black/90 via-black/30 via-30% to-transparent" }),
|
|
11860
11861
|
/* @__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: z.title }) }),
|
|
11861
|
-
|
|
11862
|
+
fe && /* @__PURE__ */ a.jsx(
|
|
11862
11863
|
w.div,
|
|
11863
11864
|
{
|
|
11864
11865
|
className: "absolute top-2 right-2 w-8 h-8 bg-cyan-400 rounded-full flex items-center justify-center shadow-lg",
|
|
@@ -11868,7 +11869,7 @@ function wu({ item: e, onClose: t }) {
|
|
|
11868
11869
|
children: /* @__PURE__ */ a.jsx(Sa, { className: "w-5 h-5 text-slate-900 stroke-[3]" })
|
|
11869
11870
|
}
|
|
11870
11871
|
),
|
|
11871
|
-
|
|
11872
|
+
fe && /* @__PURE__ */ a.jsx(
|
|
11872
11873
|
w.div,
|
|
11873
11874
|
{
|
|
11874
11875
|
className: "absolute inset-0 border-4 border-cyan-400 rounded-xl pointer-events-none",
|
|
@@ -11893,7 +11894,7 @@ function wu({ item: e, onClose: t }) {
|
|
|
11893
11894
|
Z && /* @__PURE__ */ a.jsx(
|
|
11894
11895
|
w.button,
|
|
11895
11896
|
{
|
|
11896
|
-
onClick:
|
|
11897
|
+
onClick: T,
|
|
11897
11898
|
disabled: i >= R,
|
|
11898
11899
|
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",
|
|
11899
11900
|
whileHover: { scale: 1.1, x: 3 },
|
|
@@ -11911,7 +11912,7 @@ function wu({ item: e, onClose: t }) {
|
|
|
11911
11912
|
}
|
|
11912
11913
|
),
|
|
11913
11914
|
o && /* @__PURE__ */ a.jsx(vu, { source: c, onClose: () => l(!1) }),
|
|
11914
|
-
d && /* @__PURE__ */ a.jsx(
|
|
11915
|
+
d && /* @__PURE__ */ a.jsx(Ht, { src: f, onClose: () => {
|
|
11915
11916
|
h(!1), m("");
|
|
11916
11917
|
} }),
|
|
11917
11918
|
p && (C?.length ?? 0) > 0 && /* @__PURE__ */ a.jsx(zc, { cards: C, onClose: () => b(!1) }),
|
|
@@ -11926,7 +11927,7 @@ function hy({
|
|
|
11926
11927
|
const s = () => {
|
|
11927
11928
|
t(!1);
|
|
11928
11929
|
};
|
|
11929
|
-
return /* @__PURE__ */ a.jsx(
|
|
11930
|
+
return /* @__PURE__ */ a.jsx(ke, { children: e && /* @__PURE__ */ a.jsx(Ht, { onClose: s, src: n }) });
|
|
11930
11931
|
}
|
|
11931
11932
|
function fy({ isOpen: e, onClose: t, type: n, itemName: s }) {
|
|
11932
11933
|
if (!e) return null;
|
|
@@ -12379,8 +12380,8 @@ const my = `
|
|
|
12379
12380
|
function py({ hotspot: e }) {
|
|
12380
12381
|
const [t, n] = O(null), [, s] = O([]), [i, r] = O(null), [o, l] = O(null), [, c] = O(
|
|
12381
12382
|
/* @__PURE__ */ new Set()
|
|
12382
|
-
), u = we().remoteUrl, d = we().hotspots.dataEs, h = we().hotspots.dataEn, [f, m] = O(!1), [p] = O("inner"), [b] = O(""), { i18n: x } =
|
|
12383
|
-
|
|
12383
|
+
), u = we().remoteUrl, d = we().hotspots.dataEs, h = we().hotspots.dataEn, [f, m] = O(!1), [p] = O("inner"), [b] = O(""), { i18n: x } = mt();
|
|
12384
|
+
se(() => {
|
|
12384
12385
|
let L;
|
|
12385
12386
|
if (x.language === "en" ? L = h ?? { globalTags: [], innerRingNodes: [], outerRingNodes: [], products: [], relationships: {} } : L = d ?? { globalTags: [], innerRingNodes: [], outerRingNodes: [], products: [], relationships: {} }, n(L), L.outerRingNodes) {
|
|
12386
12387
|
const H = L.outerRingNodes.map((W) => ({
|
|
@@ -12393,7 +12394,7 @@ function py({ hotspot: e }) {
|
|
|
12393
12394
|
);
|
|
12394
12395
|
s(H);
|
|
12395
12396
|
}
|
|
12396
|
-
}, []),
|
|
12397
|
+
}, []), se(() => A(e), [e]);
|
|
12397
12398
|
const [y, N] = O([]), [k, I] = O(0), [M, E] = O(!1), [S, v] = O(""), [P, F] = O(0), [B, q] = O(0), [D, te] = O(0), Y = Te(null), Z = Te(null), R = {
|
|
12398
12399
|
1: "fragata",
|
|
12399
12400
|
2: "submarino",
|
|
@@ -12429,7 +12430,7 @@ function py({ hotspot: e }) {
|
|
|
12429
12430
|
)
|
|
12430
12431
|
) || [] : [];
|
|
12431
12432
|
};
|
|
12432
|
-
|
|
12433
|
+
se(() => {
|
|
12433
12434
|
Y.current && Z.current && (q(Y.current.clientWidth), te(Z.current.scrollWidth));
|
|
12434
12435
|
}, [t?.globalTags, y]);
|
|
12435
12436
|
const _ = () => {
|
|
@@ -12440,7 +12441,7 @@ function py({ hotspot: e }) {
|
|
|
12440
12441
|
}, T = (L) => {
|
|
12441
12442
|
const H = C(L);
|
|
12442
12443
|
H.length > 0 && N((W) => W.map((V) => {
|
|
12443
|
-
const J = L === 39 || L === 40 ||
|
|
12444
|
+
const J = L === 39 || L === 40 || ge(L, V.productId), $ = V.activeElement;
|
|
12444
12445
|
let Q = !1;
|
|
12445
12446
|
if ($.type === "outer") {
|
|
12446
12447
|
const ue = $.id;
|
|
@@ -12486,7 +12487,7 @@ function py({ hotspot: e }) {
|
|
|
12486
12487
|
const H = R[L];
|
|
12487
12488
|
if (!H) return;
|
|
12488
12489
|
const W = y.some((V) => V.hotspotId === L);
|
|
12489
|
-
r(null), l(null), c(/* @__PURE__ */ new Set()), m(!1),
|
|
12490
|
+
r(null), l(null), c(/* @__PURE__ */ new Set()), m(!1), Re({ x: 0, y: 0 }), W ? N(
|
|
12490
12491
|
(V) => V.map((J) => J.hotspotId === L ? {
|
|
12491
12492
|
...J,
|
|
12492
12493
|
activeElement: { type: "product", id: H },
|
|
@@ -12547,7 +12548,7 @@ function py({ hotspot: e }) {
|
|
|
12547
12548
|
return V;
|
|
12548
12549
|
})
|
|
12549
12550
|
), I(H.id);
|
|
12550
|
-
},
|
|
12551
|
+
}, re = (L) => {
|
|
12551
12552
|
const H = /* @__PURE__ */ new Set(), W = /* @__PURE__ */ new Set(), V = /* @__PURE__ */ new Set(), J = /* @__PURE__ */ new Set();
|
|
12552
12553
|
if (!t)
|
|
12553
12554
|
return { relatedProducts: H, relatedInner: W, relatedOuter: V, relatedExpandable: J };
|
|
@@ -12567,10 +12568,10 @@ function py({ hotspot: e }) {
|
|
|
12567
12568
|
(ie) => ie.innerRingId === $.id
|
|
12568
12569
|
);
|
|
12569
12570
|
ue && ue.outerRingIds.forEach((ie) => V.add(ie));
|
|
12570
|
-
const
|
|
12571
|
+
const Ie = t.relationships.innerRing_to_expandableNodes?.find(
|
|
12571
12572
|
(ie) => ie.innerRingId === $.id
|
|
12572
12573
|
);
|
|
12573
|
-
|
|
12574
|
+
Ie && Ie.expandableNodeIds && Ie.expandableNodeIds.forEach((ie) => {
|
|
12574
12575
|
J.add(ie);
|
|
12575
12576
|
});
|
|
12576
12577
|
} else if ($.type === "outer") {
|
|
@@ -12583,10 +12584,10 @@ function py({ hotspot: e }) {
|
|
|
12583
12584
|
(ie) => ie.outerRingId === $.id
|
|
12584
12585
|
);
|
|
12585
12586
|
ue && ue.innerRingIds.forEach((ie) => W.add(ie));
|
|
12586
|
-
const
|
|
12587
|
+
const Ie = t.relationships.outerRing_to_expandableNodes?.find(
|
|
12587
12588
|
(ie) => ie.outerRingId === $.id
|
|
12588
12589
|
);
|
|
12589
|
-
|
|
12590
|
+
Ie && Ie.expandableNodeIds && Ie.expandableNodeIds.forEach((ie) => {
|
|
12590
12591
|
J.add(ie);
|
|
12591
12592
|
});
|
|
12592
12593
|
} else if ($.type === "third") {
|
|
@@ -12599,19 +12600,19 @@ function py({ hotspot: e }) {
|
|
|
12599
12600
|
(ie) => ie.expandableNodeId === $.id
|
|
12600
12601
|
);
|
|
12601
12602
|
ue && ue.outerRingIds.forEach((ie) => V.add(ie));
|
|
12602
|
-
const
|
|
12603
|
+
const Ie = t.relationships.expandableNode_to_expandableNodes?.find(
|
|
12603
12604
|
(ie) => ie.expandableNodeId === $.id
|
|
12604
12605
|
);
|
|
12605
|
-
|
|
12606
|
+
Ie && Ie.expandableNodeIds.forEach(
|
|
12606
12607
|
(ie) => J.add(ie)
|
|
12607
12608
|
);
|
|
12608
12609
|
}
|
|
12609
12610
|
return { relatedProducts: H, relatedInner: W, relatedOuter: V, relatedExpandable: J };
|
|
12610
|
-
},
|
|
12611
|
+
}, ne = (L, H) => {
|
|
12611
12612
|
H.stopPropagation();
|
|
12612
12613
|
const W = L.startsWith("http://") || L.startsWith("https://") ? L : `${u}${L.startsWith("/") ? "" : "/"}${L}`;
|
|
12613
12614
|
v(W), E(!0);
|
|
12614
|
-
},
|
|
12615
|
+
}, ae = Te(!1), oe = Te(0), pe = (L) => {
|
|
12615
12616
|
U((H) => {
|
|
12616
12617
|
const W = H * L;
|
|
12617
12618
|
return W < 0.6 || W > 1.3 ? H : W;
|
|
@@ -12622,41 +12623,41 @@ function py({ hotspot: e }) {
|
|
|
12622
12623
|
const H = document.querySelector(
|
|
12623
12624
|
"[class^='absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 z-50']"
|
|
12624
12625
|
), W = document.querySelector(".navigation-controls");
|
|
12625
|
-
if (H && H.contains(L.target) || W && W.contains(L.target) ||
|
|
12626
|
+
if (H && H.contains(L.target) || W && W.contains(L.target) || ae.current)
|
|
12626
12627
|
return;
|
|
12627
|
-
|
|
12628
|
+
ae.current = !0;
|
|
12628
12629
|
const V = L.deltaY < 0 ? 1.15 : 0.85;
|
|
12629
|
-
|
|
12630
|
-
|
|
12630
|
+
pe(V), oe.current = window.setTimeout(() => {
|
|
12631
|
+
ae.current = !1;
|
|
12631
12632
|
}, 100);
|
|
12632
12633
|
};
|
|
12633
|
-
|
|
12634
|
-
|
|
12634
|
+
se(() => () => {
|
|
12635
|
+
oe.current && clearTimeout(oe.current);
|
|
12635
12636
|
}, []);
|
|
12636
|
-
const [
|
|
12637
|
+
const [Fe, Ce] = O(!1), [z, he] = O({ x: 0, y: 0 }), [fe, Re] = O({ x: 0, y: 0 }), xt = (L) => {
|
|
12637
12638
|
if (y.length === 0)
|
|
12638
12639
|
return;
|
|
12639
12640
|
const H = L.target;
|
|
12640
12641
|
H.closest(
|
|
12641
12642
|
"[class^='absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 z-50']"
|
|
12642
|
-
) || H.closest(".navigation-controls") || H.closest("button") || H.closest(".side-panel") || H.closest(".hotspot-layer") || H.closest("img[alt*='Hotspot']") || (
|
|
12643
|
+
) || H.closest(".navigation-controls") || H.closest("button") || H.closest(".side-panel") || H.closest(".hotspot-layer") || H.closest("img[alt*='Hotspot']") || (Ce(!0), he({ x: L.clientX, y: L.clientY }));
|
|
12643
12644
|
}, In = (L) => {
|
|
12644
|
-
if (!
|
|
12645
|
-
const H = L.clientX -
|
|
12646
|
-
Math.max(V,
|
|
12645
|
+
if (!Fe || y.length === 0) return;
|
|
12646
|
+
const H = L.clientX - z.x, W = L.clientY - z.y, V = fe.x + H, J = fe.y + W, $ = window.innerWidth, Q = window.innerHeight, ue = $ / 2, Ie = -$ / 2, ie = Q / 2, jn = -Q / 2, bs = Math.min(
|
|
12647
|
+
Math.max(V, Ie),
|
|
12647
12648
|
ue
|
|
12648
12649
|
), ys = Math.min(
|
|
12649
12650
|
Math.max(J, jn),
|
|
12650
12651
|
ie
|
|
12651
12652
|
);
|
|
12652
|
-
|
|
12653
|
+
Re({
|
|
12653
12654
|
x: bs,
|
|
12654
12655
|
y: ys
|
|
12655
|
-
}),
|
|
12656
|
+
}), he({ x: L.clientX, y: L.clientY });
|
|
12656
12657
|
}, tn = () => {
|
|
12657
|
-
y.length > 0 &&
|
|
12658
|
+
y.length > 0 && Ce(!1);
|
|
12658
12659
|
};
|
|
12659
|
-
function
|
|
12660
|
+
function vt(L, H) {
|
|
12660
12661
|
if (!t) return !1;
|
|
12661
12662
|
const W = y[0]?.activeElement;
|
|
12662
12663
|
if (!W) return !1;
|
|
@@ -12686,10 +12687,10 @@ function py({ hotspot: e }) {
|
|
|
12686
12687
|
(J) => J.outerRingId === L && J.productIds.includes(H)
|
|
12687
12688
|
);
|
|
12688
12689
|
}
|
|
12689
|
-
const [gs, U] = O(window.innerWidth < 700 ? 0.6 : 0.85),
|
|
12690
|
+
const [gs, U] = O(window.innerWidth < 700 ? 0.6 : 0.85), ge = (L, H) => t?.products.find((V) => V.id === H)?.expandableNodeIds?.includes(L) || !1, Pe = (L, H, W, V = 0) => {
|
|
12690
12691
|
const J = 2 * Math.PI * L / H + V, $ = W * Math.cos(J), Q = W * Math.sin(J);
|
|
12691
12692
|
return { x: $, y: Q };
|
|
12692
|
-
},
|
|
12693
|
+
}, Be = (L) => {
|
|
12693
12694
|
const H = L.touches[0];
|
|
12694
12695
|
if (!H) return;
|
|
12695
12696
|
const W = {
|
|
@@ -12697,7 +12698,7 @@ function py({ hotspot: e }) {
|
|
|
12697
12698
|
clientX: H.clientX,
|
|
12698
12699
|
clientY: H.clientY
|
|
12699
12700
|
};
|
|
12700
|
-
|
|
12701
|
+
xt(W);
|
|
12701
12702
|
}, De = (L) => {
|
|
12702
12703
|
const H = L.touches[0];
|
|
12703
12704
|
if (!H) return;
|
|
@@ -12708,7 +12709,7 @@ function py({ hotspot: e }) {
|
|
|
12708
12709
|
clientY: H.clientY
|
|
12709
12710
|
};
|
|
12710
12711
|
In(W);
|
|
12711
|
-
},
|
|
12712
|
+
}, wt = () => {
|
|
12712
12713
|
tn();
|
|
12713
12714
|
};
|
|
12714
12715
|
return /* @__PURE__ */ a.jsxs("div", { className: "relative w-full h-full overflow-hidden", children: [
|
|
@@ -12722,7 +12723,7 @@ function py({ hotspot: e }) {
|
|
|
12722
12723
|
initial: { opacity: 0 },
|
|
12723
12724
|
animate: { opacity: 1 },
|
|
12724
12725
|
transition: { delay: 1.35, duration: 0.6 },
|
|
12725
|
-
onClick: () =>
|
|
12726
|
+
onClick: () => pe(1.15),
|
|
12726
12727
|
children: /* @__PURE__ */ a.jsx(Qu, {})
|
|
12727
12728
|
}
|
|
12728
12729
|
),
|
|
@@ -12735,7 +12736,7 @@ function py({ hotspot: e }) {
|
|
|
12735
12736
|
initial: { opacity: 0 },
|
|
12736
12737
|
animate: { opacity: 1 },
|
|
12737
12738
|
transition: { delay: 1.35, duration: 0.6 },
|
|
12738
|
-
onClick: () =>
|
|
12739
|
+
onClick: () => pe(0.85),
|
|
12739
12740
|
children: /* @__PURE__ */ a.jsx(ed, {})
|
|
12740
12741
|
}
|
|
12741
12742
|
)
|
|
@@ -12755,16 +12756,16 @@ function py({ hotspot: e }) {
|
|
|
12755
12756
|
{
|
|
12756
12757
|
className: "relative w-full h-full overflow-hidden",
|
|
12757
12758
|
onWheel: ce,
|
|
12758
|
-
onMouseDown:
|
|
12759
|
+
onMouseDown: xt,
|
|
12759
12760
|
onMouseMove: In,
|
|
12760
12761
|
onMouseUp: tn,
|
|
12761
|
-
onTouchStart:
|
|
12762
|
+
onTouchStart: Be,
|
|
12762
12763
|
onTouchMove: De,
|
|
12763
|
-
onTouchEnd:
|
|
12764
|
+
onTouchEnd: wt,
|
|
12764
12765
|
style: {
|
|
12765
12766
|
paddingRight: "0",
|
|
12766
12767
|
transition: "padding 0.3s ease-in-out",
|
|
12767
|
-
cursor: y.length > 0 ?
|
|
12768
|
+
cursor: y.length > 0 ? Fe ? "grabbing" : "grab" : "default"
|
|
12768
12769
|
},
|
|
12769
12770
|
children: [
|
|
12770
12771
|
/* @__PURE__ */ a.jsx("div", { className: "absolute inset-0", children: /* @__PURE__ */ a.jsx(
|
|
@@ -12784,7 +12785,7 @@ function py({ hotspot: e }) {
|
|
|
12784
12785
|
{
|
|
12785
12786
|
className: "absolute inset-0 node-view-layer",
|
|
12786
12787
|
style: {
|
|
12787
|
-
transform: `translate(${
|
|
12788
|
+
transform: `translate(${fe.x}px, ${fe.y}px) scale(${gs})`,
|
|
12788
12789
|
transformOrigin: "center center",
|
|
12789
12790
|
transition: "transform 0.3s ease",
|
|
12790
12791
|
pointerEvents: "auto"
|
|
@@ -12792,7 +12793,7 @@ function py({ hotspot: e }) {
|
|
|
12792
12793
|
children: y.map((L) => {
|
|
12793
12794
|
const H = t?.products.find(
|
|
12794
12795
|
(V) => V.id === L.productId
|
|
12795
|
-
), W =
|
|
12796
|
+
), W = re(L);
|
|
12796
12797
|
return H && L.centralPosition ? /* @__PURE__ */ a.jsxs(
|
|
12797
12798
|
"div",
|
|
12798
12799
|
{
|
|
@@ -12831,7 +12832,7 @@ function py({ hotspot: e }) {
|
|
|
12831
12832
|
}
|
|
12832
12833
|
),
|
|
12833
12834
|
(t?.innerRingNodes || []).map((V, J) => {
|
|
12834
|
-
const $ =
|
|
12835
|
+
const $ = Pe(
|
|
12835
12836
|
J,
|
|
12836
12837
|
t?.innerRingNodes.length || 0,
|
|
12837
12838
|
300
|
|
@@ -12898,7 +12899,7 @@ function py({ hotspot: e }) {
|
|
|
12898
12899
|
border: "1px solid rgba(0,220,255,0.8)",
|
|
12899
12900
|
animation: "fadeIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards"
|
|
12900
12901
|
},
|
|
12901
|
-
onClick: (ue) =>
|
|
12902
|
+
onClick: (ue) => ne(V.url, ue),
|
|
12902
12903
|
children: /* @__PURE__ */ a.jsx(xs, { className: "w-4 h-4" })
|
|
12903
12904
|
}
|
|
12904
12905
|
)
|
|
@@ -12938,7 +12939,7 @@ function py({ hotspot: e }) {
|
|
|
12938
12939
|
}
|
|
12939
12940
|
),
|
|
12940
12941
|
(t?.outerRingNodes || []).map((V, J) => {
|
|
12941
|
-
const $ =
|
|
12942
|
+
const $ = Pe(
|
|
12942
12943
|
J,
|
|
12943
12944
|
t?.outerRingNodes.length ?? 0,
|
|
12944
12945
|
400,
|
|
@@ -12985,7 +12986,7 @@ function py({ hotspot: e }) {
|
|
|
12985
12986
|
border: Q ? "3px solid #1037b9" : "3px solid #1D4ED8"
|
|
12986
12987
|
} : {},
|
|
12987
12988
|
children: [
|
|
12988
|
-
(V.id === 39 || V.id === 40 && C(V.id).length > 0 ||
|
|
12989
|
+
(V.id === 39 || V.id === 40 && C(V.id).length > 0 || ge(
|
|
12989
12990
|
V.id,
|
|
12990
12991
|
L.productId
|
|
12991
12992
|
)) && /* @__PURE__ */ a.jsx(
|
|
@@ -13029,7 +13030,7 @@ function py({ hotspot: e }) {
|
|
|
13029
13030
|
border: "1px solid rgba(0,220,255,0.8)",
|
|
13030
13031
|
animation: "fadeIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards"
|
|
13031
13032
|
},
|
|
13032
|
-
onClick: (ue) =>
|
|
13033
|
+
onClick: (ue) => ne(V.url, ue),
|
|
13033
13034
|
children: /* @__PURE__ */ a.jsx(xs, { className: "w-4 h-4" })
|
|
13034
13035
|
}
|
|
13035
13036
|
)
|
|
@@ -13070,7 +13071,7 @@ function py({ hotspot: e }) {
|
|
|
13070
13071
|
),
|
|
13071
13072
|
L.expandedNodes.map((V) => V.childNodes.map(
|
|
13072
13073
|
($, Q) => {
|
|
13073
|
-
const ue = V.childNodes.length,
|
|
13074
|
+
const ue = V.childNodes.length, Ie = Math.PI * 0.6, ie = 0 - Ie / 2 + Ie * Q / (ue - 1 || 1), jn = 600, bs = jn * Math.cos(ie), ys = jn * Math.sin(ie);
|
|
13074
13075
|
return /* @__PURE__ */ a.jsx(
|
|
13075
13076
|
"div",
|
|
13076
13077
|
{
|
|
@@ -13099,13 +13100,13 @@ function py({ hotspot: e }) {
|
|
|
13099
13100
|
}
|
|
13100
13101
|
);
|
|
13101
13102
|
},
|
|
13102
|
-
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 ${
|
|
13103
|
+
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 ${vt(
|
|
13103
13104
|
$.id,
|
|
13104
13105
|
""
|
|
13105
13106
|
) || W.relatedExpandable.has(
|
|
13106
13107
|
$.id
|
|
13107
13108
|
) ? "bg-[#214fc580] hover:bg-[#214fc580]" : "bg-blue-900/20 opacity-40 hover:bg-blue-800/40"} cursor-pointer hover:scale-110 text-blue-100`,
|
|
13108
|
-
style:
|
|
13109
|
+
style: vt(
|
|
13109
13110
|
$.id,
|
|
13110
13111
|
""
|
|
13111
13112
|
) || W.relatedExpandable.has(
|
|
@@ -13121,7 +13122,7 @@ function py({ hotspot: e }) {
|
|
|
13121
13122
|
/* @__PURE__ */ a.jsx(
|
|
13122
13123
|
"div",
|
|
13123
13124
|
{
|
|
13124
|
-
className: `absolute text-xs ${
|
|
13125
|
+
className: `absolute text-xs ${vt(
|
|
13125
13126
|
$.id,
|
|
13126
13127
|
""
|
|
13127
13128
|
) || W.relatedExpandable.has(
|
|
@@ -13137,7 +13138,7 @@ function py({ hotspot: e }) {
|
|
|
13137
13138
|
children: $.label
|
|
13138
13139
|
}
|
|
13139
13140
|
),
|
|
13140
|
-
$.url && (
|
|
13141
|
+
$.url && (vt(
|
|
13141
13142
|
$.id,
|
|
13142
13143
|
""
|
|
13143
13144
|
) || W.relatedExpandable.has(
|
|
@@ -13153,7 +13154,7 @@ function py({ hotspot: e }) {
|
|
|
13153
13154
|
border: "1px solid rgba(0,220,255,0.8)",
|
|
13154
13155
|
animation: "fadeIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards"
|
|
13155
13156
|
},
|
|
13156
|
-
onClick: (Ru) =>
|
|
13157
|
+
onClick: (Ru) => ne(
|
|
13157
13158
|
$.url || "",
|
|
13158
13159
|
Ru
|
|
13159
13160
|
),
|
|
@@ -13316,7 +13317,7 @@ function py({ hotspot: e }) {
|
|
|
13316
13317
|
}
|
|
13317
13318
|
function gy({ size: e }) {
|
|
13318
13319
|
const t = hp(0), n = sm();
|
|
13319
|
-
|
|
13320
|
+
se(() => {
|
|
13320
13321
|
n || Ds(t, 0, { duration: 0.5, ease: "easeInOut" });
|
|
13321
13322
|
async function o() {
|
|
13322
13323
|
await Ds(t, 1, {
|
|
@@ -13600,14 +13601,14 @@ function by({ onClose: e, hotspot: t }) {
|
|
|
13600
13601
|
] });
|
|
13601
13602
|
}
|
|
13602
13603
|
function yy({ isOpen: e, onClose: t, size: n, hotspot: s }) {
|
|
13603
|
-
return
|
|
13604
|
+
return se(() => {
|
|
13604
13605
|
const i = (r) => {
|
|
13605
13606
|
r.key === "Escape" && t();
|
|
13606
13607
|
};
|
|
13607
13608
|
return window.addEventListener("keydown", i), () => {
|
|
13608
13609
|
window.removeEventListener("keydown", i);
|
|
13609
13610
|
};
|
|
13610
|
-
}, [t]), /* @__PURE__ */ a.jsx(
|
|
13611
|
+
}, [t]), /* @__PURE__ */ a.jsx(ke, { children: e && /* @__PURE__ */ a.jsxs("div", { className: "overlay-root", onClick: t, children: [
|
|
13611
13612
|
/* @__PURE__ */ a.jsx(gy, { size: n }),
|
|
13612
13613
|
/* @__PURE__ */ a.jsx(by, { onClose: t, hotspot: s }),
|
|
13613
13614
|
/* @__PURE__ */ a.jsx("style", { children: `
|
|
@@ -13625,10 +13626,10 @@ function yy({ isOpen: e, onClose: t, size: n, hotspot: s }) {
|
|
|
13625
13626
|
const xa = "app-font-size", xy = "100", Vy = () => {
|
|
13626
13627
|
const [e, t] = gd(), n = e.get("size"), s = localStorage.getItem(xa);
|
|
13627
13628
|
let i = xy;
|
|
13628
|
-
return n && !isNaN(parseInt(n)) ? i = n : s && !isNaN(parseInt(s)) && (i = s),
|
|
13629
|
+
return n && !isNaN(parseInt(n)) ? i = n : s && !isNaN(parseInt(s)) && (i = s), se(() => {
|
|
13629
13630
|
document.documentElement.style.fontSize = `${i}%`, n && localStorage.setItem(xa, n);
|
|
13630
13631
|
}, [i, n, e, t]), null;
|
|
13631
|
-
}, Tu =
|
|
13632
|
+
}, Tu = Ze(void 0), Oy = ({ children: e }) => {
|
|
13632
13633
|
const [t, n] = O(!1), s = () => n((i) => !i);
|
|
13633
13634
|
return /* @__PURE__ */ a.jsx(Tu.Provider, { value: { isAutoMode: t, setIsAutoMode: n, toggleAutoMode: s }, children: e });
|
|
13634
13635
|
}, Su = () => {
|
|
@@ -13638,15 +13639,15 @@ const xa = "app-font-size", xy = "100", Vy = () => {
|
|
|
13638
13639
|
return e;
|
|
13639
13640
|
};
|
|
13640
13641
|
function Nu() {
|
|
13641
|
-
const [e, t] = O("physical"), [n, s] = O(!1), [i, r] = O(!1), [o, l] = O(
|
|
13642
|
-
|
|
13642
|
+
const [e, t] = O("physical"), [n, s] = O(!1), [i, r] = O(!1), [o, l] = O(0), [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 } = mt(), k = nt(), I = wn(), { sendMessage: M } = Cn(), E = we().wsRoom, { isAutoMode: S, toggleAutoMode: v } = Su();
|
|
13643
|
+
se(() => {
|
|
13643
13644
|
N.changeLanguage(d);
|
|
13644
|
-
}, [d]),
|
|
13645
|
+
}, [d]), se(() => {
|
|
13645
13646
|
if (console.log("Location en control-panel: " + I.pathname), I.pathname !== "/") {
|
|
13646
13647
|
const C = p.filter((_) => _.slug.length > 1).find((_) => I.pathname.startsWith(_.slug));
|
|
13647
|
-
C && (console.log("Se va a seleccionar " + C.title), l(C
|
|
13648
|
+
C && (console.log("Se va a seleccionar " + C.title), l(p.indexOf(C)));
|
|
13648
13649
|
}
|
|
13649
|
-
}, [I]),
|
|
13650
|
+
}, [I]), se(() => {
|
|
13650
13651
|
M({ type: "publish", room: E, payload: { type: "layer", target: e } });
|
|
13651
13652
|
}, [e]);
|
|
13652
13653
|
const P = () => {
|
|
@@ -13667,7 +13668,7 @@ function Nu() {
|
|
|
13667
13668
|
case "digital":
|
|
13668
13669
|
return ad;
|
|
13669
13670
|
default:
|
|
13670
|
-
return
|
|
13671
|
+
return jt;
|
|
13671
13672
|
}
|
|
13672
13673
|
}, D = (C) => {
|
|
13673
13674
|
switch (C) {
|
|
@@ -13693,7 +13694,7 @@ function Nu() {
|
|
|
13693
13694
|
case "Desarrollos tecnológicos":
|
|
13694
13695
|
return So;
|
|
13695
13696
|
default:
|
|
13696
|
-
return
|
|
13697
|
+
return jt;
|
|
13697
13698
|
}
|
|
13698
13699
|
}, Y = () => {
|
|
13699
13700
|
switch (e) {
|
|
@@ -13753,7 +13754,7 @@ function Nu() {
|
|
|
13753
13754
|
},
|
|
13754
13755
|
transition: { delay: f ? 0 : 0.3, duration: 0.6, ease: [0.34, 1.56, 0.64, 1] },
|
|
13755
13756
|
children: [
|
|
13756
|
-
/* @__PURE__ */ a.jsx(
|
|
13757
|
+
/* @__PURE__ */ a.jsx(ke, { children: i && /* @__PURE__ */ a.jsx(
|
|
13757
13758
|
w.div,
|
|
13758
13759
|
{
|
|
13759
13760
|
className: "absolute bottom-full left-0 mb-3 w-80",
|
|
@@ -14018,7 +14019,7 @@ function Nu() {
|
|
|
14018
14019
|
] })
|
|
14019
14020
|
}
|
|
14020
14021
|
) }),
|
|
14021
|
-
/* @__PURE__ */ a.jsx(
|
|
14022
|
+
/* @__PURE__ */ a.jsx(ke, { children: n && /* @__PURE__ */ a.jsx(
|
|
14022
14023
|
w.div,
|
|
14023
14024
|
{
|
|
14024
14025
|
className: "absolute bottom-full left-0 mb-3 w-80",
|
|
@@ -14044,7 +14045,7 @@ function Nu() {
|
|
|
14044
14045
|
),
|
|
14045
14046
|
/* @__PURE__ */ a.jsxs("div", { className: "relative bg-gradient-to-b from-slate-900/98 via-slate-800/95 to-slate-900/98 backdrop-blur-xl rounded-3xl border border-cyan-400/40 shadow-2xl overflow-hidden", children: [
|
|
14046
14047
|
/* @__PURE__ */ a.jsx("div", { className: "px-6 py-4 border-b border-cyan-400/20 bg-gradient-to-r from-cyan-500/10 to-teal-500/10", children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
14047
|
-
/* @__PURE__ */ a.jsx("h3", { className: "text-cyan-300 font-semibold text-sm tracking-wider", children: "
|
|
14048
|
+
/* @__PURE__ */ a.jsx("h3", { className: "text-cyan-300 font-semibold text-sm tracking-wider", children: y("control-panel.seleccionar-nivel") }),
|
|
14048
14049
|
/* @__PURE__ */ a.jsx(
|
|
14049
14050
|
w.div,
|
|
14050
14051
|
{
|
|
@@ -14075,12 +14076,12 @@ function Nu() {
|
|
|
14075
14076
|
}
|
|
14076
14077
|
),
|
|
14077
14078
|
p.map((C, _) => {
|
|
14078
|
-
const j = o ===
|
|
14079
|
+
const j = o === _, T = te(C.title);
|
|
14079
14080
|
return /* @__PURE__ */ a.jsx(
|
|
14080
14081
|
w.button,
|
|
14081
14082
|
{
|
|
14082
14083
|
onClick: () => {
|
|
14083
|
-
k(C.slug), l(
|
|
14084
|
+
k(C.slug), l(_), s(!1);
|
|
14084
14085
|
},
|
|
14085
14086
|
className: `w-full text-left relative group ${j ? "z-10" : "z-0"}`,
|
|
14086
14087
|
initial: { opacity: 0, x: -50, rotateY: -20 },
|
|
@@ -14177,7 +14178,7 @@ function Nu() {
|
|
|
14177
14178
|
repeat: Number.POSITIVE_INFINITY,
|
|
14178
14179
|
ease: "easeInOut"
|
|
14179
14180
|
},
|
|
14180
|
-
children: C.title
|
|
14181
|
+
children: y(C.title)
|
|
14181
14182
|
}
|
|
14182
14183
|
),
|
|
14183
14184
|
j && /* @__PURE__ */ a.jsx(
|
|
@@ -14243,10 +14244,7 @@ function Nu() {
|
|
|
14243
14244
|
initial: { opacity: 0 },
|
|
14244
14245
|
animate: { opacity: 1 },
|
|
14245
14246
|
transition: { delay: 0.6 },
|
|
14246
|
-
children: /* @__PURE__ */ a.
|
|
14247
|
-
p.length,
|
|
14248
|
-
" niveles disponibles"
|
|
14249
|
-
] })
|
|
14247
|
+
children: /* @__PURE__ */ a.jsx("p", { className: "text-xs text-cyan-300/80 text-center", children: y("control-panel.niveles-disponibles", { numero: p.length }) })
|
|
14250
14248
|
}
|
|
14251
14249
|
)
|
|
14252
14250
|
] })
|
|
@@ -14271,7 +14269,7 @@ function Nu() {
|
|
|
14271
14269
|
}
|
|
14272
14270
|
},
|
|
14273
14271
|
children: [
|
|
14274
|
-
/* @__PURE__ */ a.jsx(
|
|
14272
|
+
/* @__PURE__ */ a.jsx(ke, { mode: "wait", children: /* @__PURE__ */ a.jsx(
|
|
14275
14273
|
w.div,
|
|
14276
14274
|
{
|
|
14277
14275
|
initial: {
|
|
@@ -14297,7 +14295,7 @@ function Nu() {
|
|
|
14297
14295
|
ease: [0.34, 1.56, 0.64, 1],
|
|
14298
14296
|
scale: { type: "spring", stiffness: 300, damping: 20 }
|
|
14299
14297
|
},
|
|
14300
|
-
children: /* @__PURE__ */ a.jsx(
|
|
14298
|
+
children: /* @__PURE__ */ a.jsx(jt, { className: "w-5 h-5" })
|
|
14301
14299
|
},
|
|
14302
14300
|
n ? "open" : "closed"
|
|
14303
14301
|
) }),
|
|
@@ -14309,7 +14307,7 @@ function Nu() {
|
|
|
14309
14307
|
initial: { opacity: 0, scale: 0.8, y: -10 },
|
|
14310
14308
|
animate: { opacity: 1, scale: 1, y: 0 },
|
|
14311
14309
|
transition: { duration: 0.4, ease: [0.34, 1.56, 0.64, 1] },
|
|
14312
|
-
children: o
|
|
14310
|
+
children: y(p[o].title)
|
|
14313
14311
|
},
|
|
14314
14312
|
`level-badge-${o}`
|
|
14315
14313
|
)
|
|
@@ -14330,7 +14328,7 @@ function Nu() {
|
|
|
14330
14328
|
scale: { duration: 2, repeat: Number.POSITIVE_INFINITY, ease: "easeInOut" }
|
|
14331
14329
|
},
|
|
14332
14330
|
children: [
|
|
14333
|
-
/* @__PURE__ */ a.jsx(
|
|
14331
|
+
/* @__PURE__ */ a.jsx(ke, { mode: "wait", children: /* @__PURE__ */ a.jsx(
|
|
14334
14332
|
w.div,
|
|
14335
14333
|
{
|
|
14336
14334
|
initial: {
|
|
@@ -14389,7 +14387,7 @@ function Nu() {
|
|
|
14389
14387
|
scale: { duration: 2, repeat: Number.POSITIVE_INFINITY, ease: "easeInOut" }
|
|
14390
14388
|
},
|
|
14391
14389
|
children: [
|
|
14392
|
-
/* @__PURE__ */ a.jsx(
|
|
14390
|
+
/* @__PURE__ */ a.jsx(ke, { mode: "wait", children: /* @__PURE__ */ a.jsx(
|
|
14393
14391
|
w.div,
|
|
14394
14392
|
{
|
|
14395
14393
|
initial: {
|
|
@@ -14448,7 +14446,7 @@ function Nu() {
|
|
|
14448
14446
|
scale: { duration: 2, repeat: Number.POSITIVE_INFINITY, ease: "easeInOut" }
|
|
14449
14447
|
},
|
|
14450
14448
|
children: [
|
|
14451
|
-
/* @__PURE__ */ a.jsx(
|
|
14449
|
+
/* @__PURE__ */ a.jsx(ke, { mode: "wait", children: /* @__PURE__ */ a.jsx(
|
|
14452
14450
|
w.div,
|
|
14453
14451
|
{
|
|
14454
14452
|
initial: {
|
|
@@ -14523,7 +14521,7 @@ function Nu() {
|
|
|
14523
14521
|
]
|
|
14524
14522
|
}
|
|
14525
14523
|
),
|
|
14526
|
-
/* @__PURE__ */ a.jsx(
|
|
14524
|
+
/* @__PURE__ */ a.jsx(ke, { children: f && /* @__PURE__ */ a.jsx(
|
|
14527
14525
|
w.button,
|
|
14528
14526
|
{
|
|
14529
14527
|
onClick: () => m(!1),
|
|
@@ -14645,7 +14643,7 @@ const Cu = () => {
|
|
|
14645
14643
|
}, c = () => {
|
|
14646
14644
|
s.current && (clearInterval(s.current), s.current = null);
|
|
14647
14645
|
};
|
|
14648
|
-
|
|
14646
|
+
se(() => (e ? l() : c(), () => c()), [e]), se(() => {
|
|
14649
14647
|
e && l();
|
|
14650
14648
|
}, [t, e]);
|
|
14651
14649
|
};
|
|
@@ -14661,8 +14659,7 @@ function Dy({ showControlPanel: e = !0, iframeSrc: t = "" }) {
|
|
|
14661
14659
|
}
|
|
14662
14660
|
function _y({ showControlPanel: e = !0 }) {
|
|
14663
14661
|
return Cu(), /* @__PURE__ */ a.jsxs("div", { className: "relative w-full h-screen overflow-hidden bg-transparent", children: [
|
|
14664
|
-
/* @__PURE__ */ a.jsx("div", { className: "pointer-events-none absolute top-0 left-0 w-full h-50 bg-gradient-to-b from-
|
|
14665
|
-
/* @__PURE__ */ a.jsx("div", { className: "pointer-events-none absolute bottom-0 left-0 w-full h-80 bg-gradient-to-t from-black/70 to-transparent" }),
|
|
14662
|
+
/* @__PURE__ */ a.jsx("div", { className: "pointer-events-none absolute top-0 left-0 w-full h-50 bg-gradient-to-b from-[#17252c]/70 to-transparent" }),
|
|
14666
14663
|
/* @__PURE__ */ a.jsx(Eu, { children: /* @__PURE__ */ a.jsxs("div", { className: "relative z-10 h-full bg-transparent", children: [
|
|
14667
14664
|
/* @__PURE__ */ a.jsx(is, {}),
|
|
14668
14665
|
e && /* @__PURE__ */ a.jsx(Nu, {})
|
|
@@ -14671,10 +14668,10 @@ function _y({ showControlPanel: e = !0 }) {
|
|
|
14671
14668
|
] });
|
|
14672
14669
|
}
|
|
14673
14670
|
function Pu({ items: e, parent: t, selectedShip: n, onShipSelect: s }) {
|
|
14674
|
-
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 } =
|
|
14675
|
-
E && (
|
|
14671
|
+
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 } = mt(), { lastEvent: k, internalEvent: I, setInternalEvent: M } = Qt(), E = we().cinematics ?? !1, S = we().cinematicsOnChangeLocation ?? !1;
|
|
14672
|
+
E && (se(() => {
|
|
14676
14673
|
k?.payload?.type === "cinematics" && k?.payload?.action === "end" && h(!0);
|
|
14677
|
-
}, [k]),
|
|
14674
|
+
}, [k]), se(() => {
|
|
14678
14675
|
if (I?.payload?.type === "cinematics") {
|
|
14679
14676
|
const R = I?.payload?.action;
|
|
14680
14677
|
R === "start" && h(!1), R === "end" && h(!0);
|
|
@@ -14687,13 +14684,13 @@ function Pu({ items: e, parent: t, selectedShip: n, onShipSelect: s }) {
|
|
|
14687
14684
|
const C = Math.floor(c / 2), _ = Math.floor(R / c), j = (R - _ * c - C) * x, T = -(_ * c * x + j);
|
|
14688
14685
|
return v(T);
|
|
14689
14686
|
}, B = nt(), q = we().baseUrl ?? "", D = e;
|
|
14690
|
-
|
|
14687
|
+
se(() => {
|
|
14691
14688
|
const R = () => {
|
|
14692
14689
|
let C;
|
|
14693
14690
|
window.innerWidth < 640 ? (u(2), C = 120) : window.innerWidth < 768 ? (u(3), C = 140) : window.innerWidth < 1024 ? (u(4), C = 160) : (u(6), C = 180), y(C);
|
|
14694
14691
|
};
|
|
14695
14692
|
return R(), window.addEventListener("resize", R), () => window.removeEventListener("resize", R);
|
|
14696
|
-
}, []),
|
|
14693
|
+
}, []), se(() => {
|
|
14697
14694
|
if (!n) {
|
|
14698
14695
|
r(0), b("center"), m(F(0));
|
|
14699
14696
|
return;
|
|
@@ -14705,7 +14702,7 @@ function Pu({ items: e, parent: t, selectedShip: n, onShipSelect: s }) {
|
|
|
14705
14702
|
}
|
|
14706
14703
|
const C = Math.floor(R / c);
|
|
14707
14704
|
C !== i && r(C), b("center"), m(F(R));
|
|
14708
|
-
}, [n, c, x, D]),
|
|
14705
|
+
}, [n, c, x, D]), se(() => {
|
|
14709
14706
|
if (p === "slide")
|
|
14710
14707
|
m(P(i));
|
|
14711
14708
|
else {
|
|
@@ -14724,7 +14721,7 @@ function Pu({ items: e, parent: t, selectedShip: n, onShipSelect: s }) {
|
|
|
14724
14721
|
const R = Math.ceil(D.length / c), C = (i - 1 + R) % R;
|
|
14725
14722
|
b("slide"), r(C), m(P(C));
|
|
14726
14723
|
};
|
|
14727
|
-
return /* @__PURE__ */ a.jsxs(
|
|
14724
|
+
return /* @__PURE__ */ a.jsxs(ke, { children: [
|
|
14728
14725
|
d && /* @__PURE__ */ a.jsxs(
|
|
14729
14726
|
w.div,
|
|
14730
14727
|
{
|
|
@@ -14906,10 +14903,10 @@ const Fy = ({ items: e, world: t, worldSlug: n = t }) => {
|
|
|
14906
14903
|
initial: { opacity: 0 },
|
|
14907
14904
|
animate: { opacity: 1 },
|
|
14908
14905
|
exit: { opacity: 0 }
|
|
14909
|
-
}, o = wn(), l = nt(), { t: c } =
|
|
14910
|
-
|
|
14906
|
+
}, o = wn(), l = nt(), { t: c } = mt(), { setInternalEvent: u } = Qt(), d = we().cinematics ?? !1, h = we().cinematicsOnChangeLocation ?? !1;
|
|
14907
|
+
se(() => {
|
|
14911
14908
|
o.pathname === `/${n}` ? i("") : o.pathname.startsWith(n ? `/${n}/` : "/") && i(o.pathname.replace(n ? `/${n}/` : "/", ""));
|
|
14912
|
-
}, [o]),
|
|
14909
|
+
}, [o]), se(() => {
|
|
14913
14910
|
const x = (y) => {
|
|
14914
14911
|
const N = ["INPUT", "TEXTAREA"].includes(y.target.tagName), k = document.querySelector(".yarl__container"), I = document.querySelector(".simulation-mode");
|
|
14915
14912
|
N || k || I || (y.key === "ArrowLeft" ? (y.preventDefault(), b()) : y.key === "ArrowRight" && (y.preventDefault(), p()));
|
|
@@ -14917,7 +14914,7 @@ const Fy = ({ items: e, world: t, worldSlug: n = t }) => {
|
|
|
14917
14914
|
return window.addEventListener("keydown", x), () => {
|
|
14918
14915
|
window.removeEventListener("keydown", x);
|
|
14919
14916
|
};
|
|
14920
|
-
}, [s]),
|
|
14917
|
+
}, [s]), se(() => {
|
|
14921
14918
|
let x = 0, y = 0, N = !1;
|
|
14922
14919
|
const k = (E) => {
|
|
14923
14920
|
const S = E.target, v = document.getElementById("ItemPage");
|
|
@@ -15000,7 +14997,7 @@ const Fy = ({ items: e, world: t, worldSlug: n = t }) => {
|
|
|
15000
14997
|
]
|
|
15001
14998
|
}
|
|
15002
14999
|
);
|
|
15003
|
-
}, Iu =
|
|
15000
|
+
}, Iu = Ze(void 0);
|
|
15004
15001
|
function $y({ children: e }) {
|
|
15005
15002
|
const { isMobile: t } = Bc(), n = we().videosBaseUrl, s = t ? "videos/movil" : "videos", [i, r] = O(""), [o, l] = O(!1), c = (u, d = !0) => {
|
|
15006
15003
|
const h = `${n.replace(/\/$/, "")}/${s}/${u}`;
|
|
@@ -15023,14 +15020,14 @@ const ju = ({ returnUrlOnEnded: e }) => {
|
|
|
15023
15020
|
const { currentVideo: t, isTransitioning: n } = vy(), s = nt(), i = Te(null), [r, o] = O(t), l = () => {
|
|
15024
15021
|
e && s(e);
|
|
15025
15022
|
}, c = (u) => u.replace(/\.mp4$/i, ".webp");
|
|
15026
|
-
return
|
|
15023
|
+
return se(() => {
|
|
15027
15024
|
t !== r && (i.current && (i.current.pause(), i.current.removeAttribute("src"), i.current.load()), o(t));
|
|
15028
|
-
}, [t, r]),
|
|
15025
|
+
}, [t, r]), se(() => {
|
|
15029
15026
|
i.current && r && i.current.play().catch((u) => {
|
|
15030
15027
|
console.warn("Error al intentar autoPlay del video:", u);
|
|
15031
15028
|
});
|
|
15032
15029
|
}, [r]), /* @__PURE__ */ a.jsxs("div", { className: "absolute inset-0 w-full h-full", children: [
|
|
15033
|
-
/* @__PURE__ */ a.jsx(
|
|
15030
|
+
/* @__PURE__ */ a.jsx(ke, { children: n && /* @__PURE__ */ a.jsx(
|
|
15034
15031
|
w.div,
|
|
15035
15032
|
{
|
|
15036
15033
|
className: "absolute inset-0 bg-black z-10",
|
|
@@ -15113,15 +15110,15 @@ function zy({ x: e, y: t, dest: n }) {
|
|
|
15113
15110
|
);
|
|
15114
15111
|
}
|
|
15115
15112
|
function Mu({ home: e, item: t }) {
|
|
15116
|
-
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), [I, M] = O(!1), [E, S] = O(""), [v, P] = O(!1), F = nt(), { lastEvent: B, internalEvent: q, setInternalEvent: D } =
|
|
15117
|
-
te && (
|
|
15113
|
+
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), [I, M] = O(!1), [E, S] = O(""), [v, P] = O(!1), F = nt(), { lastEvent: B, internalEvent: q, setInternalEvent: D } = Qt(), te = we().cinematics ?? !1, Y = we().cinematicsOnChangeLocation ?? !1;
|
|
15114
|
+
te && (se(() => {
|
|
15118
15115
|
B?.payload?.type === "cinematics" && B?.payload?.action === "end" && r(!0);
|
|
15119
|
-
}, [B]),
|
|
15116
|
+
}, [B]), se(() => {
|
|
15120
15117
|
if (q?.payload?.type === "cinematics") {
|
|
15121
15118
|
const T = q?.payload?.action;
|
|
15122
15119
|
T === "start" && r(!1), T === "end" && r(!0);
|
|
15123
15120
|
}
|
|
15124
|
-
}, [q])),
|
|
15121
|
+
}, [q])), se(() => {
|
|
15125
15122
|
const T = () => {
|
|
15126
15123
|
s({
|
|
15127
15124
|
width: window.innerWidth,
|
|
@@ -15137,7 +15134,7 @@ function Mu({ home: e, item: t }) {
|
|
|
15137
15134
|
}, C = (T) => {
|
|
15138
15135
|
F(T), te && Y && D({ ...vn });
|
|
15139
15136
|
}, _ = (T) => !!T?.trim(), j = (T) => T?.endsWith(".webm") || T?.endsWith(".mp4");
|
|
15140
|
-
return /* @__PURE__ */ a.jsxs(
|
|
15137
|
+
return /* @__PURE__ */ a.jsxs(ke, { children: [
|
|
15141
15138
|
i && /* @__PURE__ */ a.jsx(
|
|
15142
15139
|
w.div,
|
|
15143
15140
|
{
|
|
@@ -15186,8 +15183,8 @@ function Mu({ home: e, item: t }) {
|
|
|
15186
15183
|
c && /* @__PURE__ */ a.jsx(vu, { source: d, onClose: () => u(!1) }),
|
|
15187
15184
|
f && /* @__PURE__ */ a.jsx(wu, { item: t.simulation, onClose: () => m(!1) }, t?.slug),
|
|
15188
15185
|
p && /* @__PURE__ */ a.jsx(zc, { cards: t.cards, onClose: () => b(!1) }),
|
|
15189
|
-
x && /* @__PURE__ */ a.jsx(
|
|
15190
|
-
N && /* @__PURE__ */ a.jsx(
|
|
15186
|
+
x && /* @__PURE__ */ a.jsx(Ht, { src: t.webUrl, onClose: () => y(!1) }),
|
|
15187
|
+
N && /* @__PURE__ */ a.jsx(Ht, { src: E, transparent: I, onClose: () => {
|
|
15191
15188
|
const T = I;
|
|
15192
15189
|
k(!1), S(""), M(!1), T === !0 && te && D({ ...Ng });
|
|
15193
15190
|
} }),
|
|
@@ -15202,7 +15199,7 @@ const Wy = ({ video: e, returnUrl: t }) => {
|
|
|
15202
15199
|
exit: { opacity: 0 }
|
|
15203
15200
|
}, i = () => {
|
|
15204
15201
|
n(t);
|
|
15205
|
-
}, { t: r } =
|
|
15202
|
+
}, { t: r } = mt();
|
|
15206
15203
|
return /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsxs("div", { className: "fixed inset-0 overflow-hidden bg-slate-900", children: [
|
|
15207
15204
|
/* @__PURE__ */ a.jsx(ju, { returnUrlOnEnded: t }),
|
|
15208
15205
|
/* @__PURE__ */ a.jsx("div", { className: "relative z-10 h-full", children: /* @__PURE__ */ a.jsx(
|
|
@@ -15241,7 +15238,7 @@ const Wy = ({ video: e, returnUrl: t }) => {
|
|
|
15241
15238
|
] }) });
|
|
15242
15239
|
}, Yy = ({ world: e, worldSlug: t = e, overlay: n = !1, itemsData: s }) => {
|
|
15243
15240
|
const [i, r] = O(null), { itemSlug: o } = Na();
|
|
15244
|
-
|
|
15241
|
+
se(() => {
|
|
15245
15242
|
if (o) {
|
|
15246
15243
|
const c = s.find((u) => u.slug === o);
|
|
15247
15244
|
c && r(c);
|
|
@@ -15269,7 +15266,7 @@ const Wy = ({ video: e, returnUrl: t }) => {
|
|
|
15269
15266
|
) }) : /* @__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" }) });
|
|
15270
15267
|
}, Uy = ({ world: e, worldSlug: t = e, overlay: n = !1, itemsData: s }) => {
|
|
15271
15268
|
const [i, r] = O(null), { itemSlug: o } = Na(), l = nt();
|
|
15272
|
-
|
|
15269
|
+
se(() => {
|
|
15273
15270
|
if (o) {
|
|
15274
15271
|
const u = s.find((d) => d.slug === o);
|
|
15275
15272
|
u && (r(u), console.log(JSON.stringify(u)));
|
|
@@ -15301,7 +15298,7 @@ const Wy = ({ video: e, returnUrl: t }) => {
|
|
|
15301
15298
|
animate: { opacity: 1 },
|
|
15302
15299
|
exit: { opacity: 0 }
|
|
15303
15300
|
};
|
|
15304
|
-
return /* @__PURE__ */ a.jsx(
|
|
15301
|
+
return /* @__PURE__ */ a.jsx(ke, { children: /* @__PURE__ */ a.jsxs(
|
|
15305
15302
|
w.div,
|
|
15306
15303
|
{
|
|
15307
15304
|
className: "relative w-full h-full",
|
|
@@ -15319,7 +15316,7 @@ const Wy = ({ video: e, returnUrl: t }) => {
|
|
|
15319
15316
|
) });
|
|
15320
15317
|
}, Xy = () => {
|
|
15321
15318
|
const e = wn(), { sendMessage: t } = Cn(), n = we().wsRoom;
|
|
15322
|
-
return
|
|
15319
|
+
return se(() => {
|
|
15323
15320
|
console.log("RouteListener: " + e.pathname + e.hash), t({ type: "publish", room: n, payload: { type: "camera", target: Sg(e.pathname) } });
|
|
15324
15321
|
}, [e]), null;
|
|
15325
15322
|
};
|
|
@@ -15364,7 +15361,7 @@ export {
|
|
|
15364
15361
|
Sg as toTarget,
|
|
15365
15362
|
Ay as toVideo,
|
|
15366
15363
|
Cu as useAutoModeTimer,
|
|
15367
|
-
|
|
15364
|
+
Qt as useEvent,
|
|
15368
15365
|
jy as useMinimize,
|
|
15369
15366
|
Tc as useOptionalMinimize,
|
|
15370
15367
|
Bc as useScreenSize,
|