@tech_carthagos/page-builder 1.0.70 → 1.0.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +22 -22
- package/dist/index.es.js +214 -214
- package/dist-types/user/Video.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -246,7 +246,7 @@ const ce = (t) => {
|
|
|
246
246
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
247
247
|
Cm.test(t) && !Tm.test(t)
|
|
248
248
|
), jd = () => !1, Mm = (t) => Nm.test(t), jm = (t) => Am.test(t), $m = () => {
|
|
249
|
-
const t = ce("colors"), e = ce("spacing"), r = ce("blur"), n = ce("brightness"), o = ce("borderColor"), i = ce("borderRadius"), a = ce("borderSpacing"), s = ce("borderWidth"), u = ce("contrast"), l = ce("grayscale"), c = ce("hueRotate"), p = ce("invert"), f = ce("gap"), d = ce("gradientColorStops"), b = ce("gradientColorStopPositions"), g = ce("inset"), m = ce("margin"), y = ce("opacity"), x = ce("padding"), w = ce("saturate"), S = ce("scale"), N = ce("sepia"), R = ce("skew"), k = ce("space"),
|
|
249
|
+
const t = ce("colors"), e = ce("spacing"), r = ce("blur"), n = ce("brightness"), o = ce("borderColor"), i = ce("borderRadius"), a = ce("borderSpacing"), s = ce("borderWidth"), u = ce("contrast"), l = ce("grayscale"), c = ce("hueRotate"), p = ce("invert"), f = ce("gap"), d = ce("gradientColorStops"), b = ce("gradientColorStopPositions"), g = ce("inset"), m = ce("margin"), y = ce("opacity"), x = ce("padding"), w = ce("saturate"), S = ce("scale"), N = ce("sepia"), R = ce("skew"), k = ce("space"), j = ce("translate"), F = () => ["auto", "contain", "none"], $ = () => ["auto", "hidden", "clip", "visible", "scroll"], E = () => ["auto", X, e], C = () => [X, e], D = () => ["", Ct, Ht], L = () => ["auto", Ir, X], T = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], A = () => ["solid", "dashed", "dotted", "double", "none"], _ = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], M = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], B = () => ["", "0", X], U = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], ne = () => [Ir, X];
|
|
250
250
|
return {
|
|
251
251
|
cacheSize: 500,
|
|
252
252
|
separator: ":",
|
|
@@ -376,42 +376,42 @@ const ce = (t) => {
|
|
|
376
376
|
* @see https://tailwindcss.com/docs/overflow
|
|
377
377
|
*/
|
|
378
378
|
overflow: [{
|
|
379
|
-
overflow:
|
|
379
|
+
overflow: $()
|
|
380
380
|
}],
|
|
381
381
|
/**
|
|
382
382
|
* Overflow X
|
|
383
383
|
* @see https://tailwindcss.com/docs/overflow
|
|
384
384
|
*/
|
|
385
385
|
"overflow-x": [{
|
|
386
|
-
"overflow-x":
|
|
386
|
+
"overflow-x": $()
|
|
387
387
|
}],
|
|
388
388
|
/**
|
|
389
389
|
* Overflow Y
|
|
390
390
|
* @see https://tailwindcss.com/docs/overflow
|
|
391
391
|
*/
|
|
392
392
|
"overflow-y": [{
|
|
393
|
-
"overflow-y":
|
|
393
|
+
"overflow-y": $()
|
|
394
394
|
}],
|
|
395
395
|
/**
|
|
396
396
|
* Overscroll Behavior
|
|
397
397
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
398
398
|
*/
|
|
399
399
|
overscroll: [{
|
|
400
|
-
overscroll:
|
|
400
|
+
overscroll: F()
|
|
401
401
|
}],
|
|
402
402
|
/**
|
|
403
403
|
* Overscroll Behavior X
|
|
404
404
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
405
405
|
*/
|
|
406
406
|
"overscroll-x": [{
|
|
407
|
-
"overscroll-x":
|
|
407
|
+
"overscroll-x": F()
|
|
408
408
|
}],
|
|
409
409
|
/**
|
|
410
410
|
* Overscroll Behavior Y
|
|
411
411
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
412
412
|
*/
|
|
413
413
|
"overscroll-y": [{
|
|
414
|
-
"overscroll-y":
|
|
414
|
+
"overscroll-y": F()
|
|
415
415
|
}],
|
|
416
416
|
/**
|
|
417
417
|
* Position
|
|
@@ -1912,14 +1912,14 @@ const ce = (t) => {
|
|
|
1912
1912
|
* @see https://tailwindcss.com/docs/translate
|
|
1913
1913
|
*/
|
|
1914
1914
|
"translate-x": [{
|
|
1915
|
-
"translate-x": [
|
|
1915
|
+
"translate-x": [j]
|
|
1916
1916
|
}],
|
|
1917
1917
|
/**
|
|
1918
1918
|
* Translate Y
|
|
1919
1919
|
* @see https://tailwindcss.com/docs/translate
|
|
1920
1920
|
*/
|
|
1921
1921
|
"translate-y": [{
|
|
1922
|
-
"translate-y": [
|
|
1922
|
+
"translate-y": [j]
|
|
1923
1923
|
}],
|
|
1924
1924
|
/**
|
|
1925
1925
|
* Skew X
|
|
@@ -4403,11 +4403,11 @@ function Iw(t, e, r, n) {
|
|
|
4403
4403
|
default:
|
|
4404
4404
|
(C = o(E, R))[S.type].apply(C, Pe(S.payload));
|
|
4405
4405
|
}
|
|
4406
|
-
}), 3),
|
|
4407
|
-
return N =
|
|
4408
|
-
var C = Al(
|
|
4409
|
-
N = C[0],
|
|
4410
|
-
}), [ye.UNDO, ye.REDO].includes(S.type) && m && (N = Mb(N, m)), [].concat(Pe(y), [ye.UNDO, ye.REDO, ye.IGNORE, ye.CLEAR]).includes(S.type) || (S.type === ye.THROTTLE ? i.throttleAdd(
|
|
4406
|
+
}), 3), j = k[0], F = k[1], $ = k[2];
|
|
4407
|
+
return N = j, x && x(j, w, { type: S.type, params: S.payload, patches: F }, R, function(E) {
|
|
4408
|
+
var C = Al(j, E);
|
|
4409
|
+
N = C[0], F = [].concat(Pe(F), Pe(C[1])), $ = [].concat(Pe(C[2]), Pe($));
|
|
4410
|
+
}), [ye.UNDO, ye.REDO].includes(S.type) && m && (N = Mb(N, m)), [].concat(Pe(y), [ye.UNDO, ye.REDO, ye.IGNORE, ye.CLEAR]).includes(S.type) || (S.type === ye.THROTTLE ? i.throttleAdd(F, $, S.config && S.config.rate) : S.type === ye.MERGE ? i.merge(F, $) : i.add(F, $)), N;
|
|
4411
4411
|
};
|
|
4412
4412
|
}, [i, o, r]), p = _a(function() {
|
|
4413
4413
|
return l.current;
|
|
@@ -5902,11 +5902,11 @@ var w3 = "DismissableLayer", ts = "dismissableLayer.update", S3 = "dismissableLa
|
|
|
5902
5902
|
onDismiss: s,
|
|
5903
5903
|
...u
|
|
5904
5904
|
} = t, l = v.useContext(Mf), [c, p] = v.useState(null), f = (c == null ? void 0 : c.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, d] = v.useState({}), b = Ae(e, (k) => p(k)), g = Array.from(l.layers), [m] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = g.indexOf(m), x = c ? g.indexOf(c) : -1, w = l.layersWithOutsidePointerEventsDisabled.size > 0, S = x >= y, N = N3((k) => {
|
|
5905
|
-
const
|
|
5906
|
-
!S ||
|
|
5905
|
+
const j = k.target, F = [...l.branches].some(($) => $.contains(j));
|
|
5906
|
+
!S || F || (o == null || o(k), a == null || a(k), k.defaultPrevented || s == null || s());
|
|
5907
5907
|
}, f), R = A3((k) => {
|
|
5908
|
-
const
|
|
5909
|
-
[...l.branches].some((
|
|
5908
|
+
const j = k.target;
|
|
5909
|
+
[...l.branches].some(($) => $.contains(j)) || (i == null || i(k), a == null || a(k), k.defaultPrevented || s == null || s());
|
|
5910
5910
|
}, f);
|
|
5911
5911
|
return x3((k) => {
|
|
5912
5912
|
x === l.layers.size - 1 && (n == null || n(k), !k.defaultPrevented && s && (k.preventDefault(), s()));
|
|
@@ -6296,7 +6296,7 @@ const q3 = (t) => ({
|
|
|
6296
6296
|
}, d = fu(o), b = du(d), g = await a.getDimensions(l), m = d === "y", y = m ? "top" : "left", x = m ? "bottom" : "right", w = m ? "clientHeight" : "clientWidth", S = i.reference[b] + i.reference[d] - f[d] - i.floating[b], N = f[d] - i.reference[d], R = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(l));
|
|
6297
6297
|
let k = R ? R[w] : 0;
|
|
6298
6298
|
(!k || !await (a.isElement == null ? void 0 : a.isElement(R))) && (k = s.floating[w] || i.floating[b]);
|
|
6299
|
-
const
|
|
6299
|
+
const j = S / 2 - N / 2, F = k / 2 - g[b] / 2 - 1, $ = Kt(p[y], F), E = Kt(p[x], F), C = $, D = k - g[b] - E, L = k / 2 - g[b] / 2 + j, T = rs(C, L, D), A = !u.arrow && on(o) != null && L !== T && i.reference[b] / 2 - (L < C ? $ : E) - g[b] / 2 < 0, _ = A ? L < C ? L - C : L - D : 0;
|
|
6300
6300
|
return {
|
|
6301
6301
|
[d]: f[d] + _,
|
|
6302
6302
|
data: {
|
|
@@ -6335,36 +6335,36 @@ const q3 = (t) => ({
|
|
|
6335
6335
|
return {};
|
|
6336
6336
|
const y = It(o), x = ct(s), w = It(s) === s, S = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)), N = f || (w || !g ? [Zo(s)] : L3(s)), R = b !== "none";
|
|
6337
6337
|
!f && R && N.push(...B3(s, g, b, S));
|
|
6338
|
-
const k = [s, ...N],
|
|
6339
|
-
let
|
|
6340
|
-
if (c &&
|
|
6338
|
+
const k = [s, ...N], j = await kn(e, m), F = [];
|
|
6339
|
+
let $ = ((n = i.flip) == null ? void 0 : n.overflows) || [];
|
|
6340
|
+
if (c && F.push(j[y]), p) {
|
|
6341
6341
|
const L = D3(o, a, S);
|
|
6342
|
-
|
|
6342
|
+
F.push(j[L[0]], j[L[1]]);
|
|
6343
6343
|
}
|
|
6344
|
-
if (
|
|
6344
|
+
if ($ = [...$, {
|
|
6345
6345
|
placement: o,
|
|
6346
|
-
overflows:
|
|
6347
|
-
}], !
|
|
6346
|
+
overflows: F
|
|
6347
|
+
}], !F.every((L) => L <= 0)) {
|
|
6348
6348
|
var E, C;
|
|
6349
6349
|
const L = (((E = i.flip) == null ? void 0 : E.index) || 0) + 1, T = k[L];
|
|
6350
6350
|
if (T && (!(p === "alignment" ? x !== ct(T) : !1) || // We leave the current main axis only if every placement on that axis
|
|
6351
6351
|
// overflows the main axis.
|
|
6352
|
-
|
|
6352
|
+
$.every((M) => ct(M.placement) === x ? M.overflows[0] > 0 : !0)))
|
|
6353
6353
|
return {
|
|
6354
6354
|
data: {
|
|
6355
6355
|
index: L,
|
|
6356
|
-
overflows:
|
|
6356
|
+
overflows: $
|
|
6357
6357
|
},
|
|
6358
6358
|
reset: {
|
|
6359
6359
|
placement: T
|
|
6360
6360
|
}
|
|
6361
6361
|
};
|
|
6362
|
-
let A = (C =
|
|
6362
|
+
let A = (C = $.filter((_) => _.overflows[0] <= 0).sort((_, M) => _.overflows[1] - M.overflows[1])[0]) == null ? void 0 : C.placement;
|
|
6363
6363
|
if (!A)
|
|
6364
6364
|
switch (d) {
|
|
6365
6365
|
case "bestFit": {
|
|
6366
6366
|
var D;
|
|
6367
|
-
const _ = (D =
|
|
6367
|
+
const _ = (D = $.filter((M) => {
|
|
6368
6368
|
if (R) {
|
|
6369
6369
|
const B = ct(M.placement);
|
|
6370
6370
|
return B === x || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -6613,18 +6613,18 @@ const W3 = function(t) {
|
|
|
6613
6613
|
let m, y;
|
|
6614
6614
|
p === "top" || p === "bottom" ? (m = p, y = f === (await (a.isRTL == null ? void 0 : a.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (y = p, m = f === "end" ? "top" : "bottom");
|
|
6615
6615
|
const x = g - c.top - c.bottom, w = b - c.left - c.right, S = Kt(g - c[m], x), N = Kt(b - c[y], w), R = !e.middlewareData.shift;
|
|
6616
|
-
let k = S,
|
|
6617
|
-
if ((r = e.middlewareData.shift) != null && r.enabled.x && (
|
|
6618
|
-
const
|
|
6619
|
-
d ?
|
|
6616
|
+
let k = S, j = N;
|
|
6617
|
+
if ((r = e.middlewareData.shift) != null && r.enabled.x && (j = w), (n = e.middlewareData.shift) != null && n.enabled.y && (k = x), R && !f) {
|
|
6618
|
+
const $ = Fe(c.left, 0), E = Fe(c.right, 0), C = Fe(c.top, 0), D = Fe(c.bottom, 0);
|
|
6619
|
+
d ? j = b - 2 * ($ !== 0 || E !== 0 ? $ + E : Fe(c.left, c.right)) : k = g - 2 * (C !== 0 || D !== 0 ? C + D : Fe(c.top, c.bottom));
|
|
6620
6620
|
}
|
|
6621
6621
|
await u({
|
|
6622
6622
|
...e,
|
|
6623
|
-
availableWidth:
|
|
6623
|
+
availableWidth: j,
|
|
6624
6624
|
availableHeight: k
|
|
6625
6625
|
});
|
|
6626
|
-
const
|
|
6627
|
-
return b !==
|
|
6626
|
+
const F = await a.getDimensions(s.floating);
|
|
6627
|
+
return b !== F.width || g !== F.height ? {
|
|
6628
6628
|
reset: {
|
|
6629
6629
|
rects: !0
|
|
6630
6630
|
}
|
|
@@ -7204,7 +7204,7 @@ function P6(t) {
|
|
|
7204
7204
|
M !== R.current && (R.current = M, g(M));
|
|
7205
7205
|
}, []), w = v.useCallback((M) => {
|
|
7206
7206
|
M !== k.current && (k.current = M, y(M));
|
|
7207
|
-
}, []), S = i || b, N = a || m, R = v.useRef(null), k = v.useRef(null),
|
|
7207
|
+
}, []), S = i || b, N = a || m, R = v.useRef(null), k = v.useRef(null), j = v.useRef(c), F = u != null, $ = ga(u), E = ga(o), C = ga(l), D = v.useCallback(() => {
|
|
7208
7208
|
if (!R.current || !k.current)
|
|
7209
7209
|
return;
|
|
7210
7210
|
const M = {
|
|
@@ -7221,13 +7221,13 @@ function P6(t) {
|
|
|
7221
7221
|
// setting it to `true` when `open === false` (must be specified).
|
|
7222
7222
|
isPositioned: C.current !== !1
|
|
7223
7223
|
};
|
|
7224
|
-
L.current && !ei(
|
|
7224
|
+
L.current && !ei(j.current, U) && (j.current = U, _d.flushSync(() => {
|
|
7225
7225
|
p(U);
|
|
7226
7226
|
}));
|
|
7227
7227
|
});
|
|
7228
7228
|
}, [f, e, r, E, C]);
|
|
7229
7229
|
_o(() => {
|
|
7230
|
-
l === !1 &&
|
|
7230
|
+
l === !1 && j.current.isPositioned && (j.current.isPositioned = !1, p((M) => ({
|
|
7231
7231
|
...M,
|
|
7232
7232
|
isPositioned: !1
|
|
7233
7233
|
})));
|
|
@@ -7237,11 +7237,11 @@ function P6(t) {
|
|
|
7237
7237
|
L.current = !1;
|
|
7238
7238
|
}), []), _o(() => {
|
|
7239
7239
|
if (S && (R.current = S), N && (k.current = N), S && N) {
|
|
7240
|
-
if (
|
|
7241
|
-
return
|
|
7240
|
+
if ($.current)
|
|
7241
|
+
return $.current(S, N, D);
|
|
7242
7242
|
D();
|
|
7243
7243
|
}
|
|
7244
|
-
}, [S, N, D, F
|
|
7244
|
+
}, [S, N, D, $, F]);
|
|
7245
7245
|
const T = v.useMemo(() => ({
|
|
7246
7246
|
reference: R,
|
|
7247
7247
|
floating: k,
|
|
@@ -7394,15 +7394,15 @@ var gu = "PopperContent", [z6, U6] = Qf(gu), i0 = v.forwardRef(
|
|
|
7394
7394
|
updatePositionStrategy: d = "optimized",
|
|
7395
7395
|
onPlaced: b,
|
|
7396
7396
|
...g
|
|
7397
|
-
} = t, m = t0(gu, r), [y, x] = v.useState(null), w = Ae(e, (st) => x(st)), [S, N] = v.useState(null), R = Zf(S), k = (R == null ? void 0 : R.width) ?? 0,
|
|
7398
|
-
padding:
|
|
7397
|
+
} = t, m = t0(gu, r), [y, x] = v.useState(null), w = Ae(e, (st) => x(st)), [S, N] = v.useState(null), R = Zf(S), k = (R == null ? void 0 : R.width) ?? 0, j = (R == null ? void 0 : R.height) ?? 0, F = n + (i !== "center" ? "-" + i : ""), $ = typeof c == "number" ? c : { top: 0, right: 0, bottom: 0, left: 0, ...c }, E = Array.isArray(l) ? l : [l], C = E.length > 0, D = {
|
|
7398
|
+
padding: $,
|
|
7399
7399
|
boundary: E.filter(W6),
|
|
7400
7400
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
7401
7401
|
altBoundary: C
|
|
7402
7402
|
}, { refs: L, floatingStyles: T, placement: A, isPositioned: _, middlewareData: M } = P6({
|
|
7403
7403
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
7404
7404
|
strategy: "fixed",
|
|
7405
|
-
placement:
|
|
7405
|
+
placement: F,
|
|
7406
7406
|
whileElementsMounted: (...st) => w6(...st, {
|
|
7407
7407
|
animationFrame: d === "always"
|
|
7408
7408
|
}),
|
|
@@ -7410,7 +7410,7 @@ var gu = "PopperContent", [z6, U6] = Qf(gu), i0 = v.forwardRef(
|
|
|
7410
7410
|
reference: m.anchor
|
|
7411
7411
|
},
|
|
7412
7412
|
middleware: [
|
|
7413
|
-
I6({ mainAxis: o +
|
|
7413
|
+
I6({ mainAxis: o + j, alignmentAxis: a }),
|
|
7414
7414
|
u && D6({
|
|
7415
7415
|
mainAxis: !0,
|
|
7416
7416
|
crossAxis: !1,
|
|
@@ -7426,7 +7426,7 @@ var gu = "PopperContent", [z6, U6] = Qf(gu), i0 = v.forwardRef(
|
|
|
7426
7426
|
}
|
|
7427
7427
|
}),
|
|
7428
7428
|
S && B6({ element: S, padding: s }),
|
|
7429
|
-
G6({ arrowWidth: k, arrowHeight:
|
|
7429
|
+
G6({ arrowWidth: k, arrowHeight: j }),
|
|
7430
7430
|
f && $6({ strategy: "referenceHidden", ...D })
|
|
7431
7431
|
]
|
|
7432
7432
|
}), [B, U] = u0(A), ne = We(b);
|
|
@@ -8424,23 +8424,23 @@ const Mr = {
|
|
|
8424
8424
|
sm: { px: 12, py: 6, fs: 14 },
|
|
8425
8425
|
md: { px: 16, py: 10, fs: 16 },
|
|
8426
8426
|
lg: { px: 24, py: 14, fs: 18 }
|
|
8427
|
-
}, N = S[r] || S.md, R = p === "auto" ? N.px : p, k = f === "auto" ? N.py : f,
|
|
8427
|
+
}, N = S[r] || S.md, R = p === "auto" ? N.px : p, k = f === "auto" ? N.py : f, j = l === "auto" ? N.fs : l, F = typeof d[m] == "object" ? `${d[m].top}px ${d[m].right}px ${d[m].bottom}px ${d[m].left}px` : `${d[m]}px`, $ = e === "outline" ? "transparent" : n, E = e === "outline" ? n : o, C = e === "outline" ? 2 : a, D = e === "outline" ? n : i;
|
|
8428
8428
|
return /* @__PURE__ */ h(
|
|
8429
8429
|
"button",
|
|
8430
8430
|
{
|
|
8431
8431
|
ref: (L) => L && y && x && (y == null ? void 0 : y(x == null ? void 0 : x(L))),
|
|
8432
8432
|
className: `cursor-move transition-all hover:opacity-90 ${w ? "ring-2 ring-primary ring-offset-2" : ""}`,
|
|
8433
8433
|
style: {
|
|
8434
|
-
backgroundColor:
|
|
8434
|
+
backgroundColor: $,
|
|
8435
8435
|
color: E,
|
|
8436
8436
|
borderWidth: `${C}px`,
|
|
8437
8437
|
borderColor: D,
|
|
8438
8438
|
borderStyle: "solid",
|
|
8439
8439
|
borderRadius: `${s}px`,
|
|
8440
8440
|
fontWeight: u,
|
|
8441
|
-
fontSize: `${
|
|
8441
|
+
fontSize: `${j}px`,
|
|
8442
8442
|
padding: `${k}px ${R}px`,
|
|
8443
|
-
margin:
|
|
8443
|
+
margin: F,
|
|
8444
8444
|
width: c === "full" ? "100%" : "auto",
|
|
8445
8445
|
boxShadow: b === "none" ? "none" : b,
|
|
8446
8446
|
opacity: g / 100
|
|
@@ -9439,18 +9439,18 @@ var us = {};
|
|
|
9439
9439
|
return C === void 0 && (C = y.Legacy), N(E, C);
|
|
9440
9440
|
}
|
|
9441
9441
|
t.decodeHTML = k;
|
|
9442
|
-
function
|
|
9442
|
+
function j(E) {
|
|
9443
9443
|
return N(E, y.Attribute);
|
|
9444
9444
|
}
|
|
9445
|
-
t.decodeHTMLAttribute =
|
|
9446
|
-
function
|
|
9445
|
+
t.decodeHTMLAttribute = j;
|
|
9446
|
+
function F(E) {
|
|
9447
9447
|
return N(E, y.Strict);
|
|
9448
9448
|
}
|
|
9449
|
-
t.decodeHTMLStrict =
|
|
9450
|
-
function
|
|
9449
|
+
t.decodeHTMLStrict = F;
|
|
9450
|
+
function $(E) {
|
|
9451
9451
|
return R(E, y.Strict);
|
|
9452
9452
|
}
|
|
9453
|
-
t.decodeXML =
|
|
9453
|
+
t.decodeXML = $;
|
|
9454
9454
|
})($n);
|
|
9455
9455
|
(function(t) {
|
|
9456
9456
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.QuoteType = void 0;
|
|
@@ -11520,10 +11520,10 @@ var nE = Ur, oE = nE, W0 = { exports: {} };
|
|
|
11520
11520
|
}
|
|
11521
11521
|
}
|
|
11522
11522
|
function w() {
|
|
11523
|
-
var S = !1, N, R, k,
|
|
11524
|
-
for (
|
|
11525
|
-
|
|
11526
|
-
S ? console && console.log && console.log("Invalid srcset descriptor found in '" + e + "' at '" +
|
|
11523
|
+
var S = !1, N, R, k, j, F = {}, $, E, C, D, L;
|
|
11524
|
+
for (j = 0; j < f.length; j++)
|
|
11525
|
+
$ = f[j], E = $[$.length - 1], C = $.substring(0, $.length - 1), D = parseInt(C, 10), L = parseFloat(C), l.test(C) && E === "w" ? ((N || R) && (S = !0), D === 0 ? S = !0 : N = D) : c.test(C) && E === "x" ? ((N || R || k) && (S = !0), L < 0 ? S = !0 : R = L) : l.test(C) && E === "h" ? ((k || R) && (S = !0), D === 0 ? S = !0 : k = D) : S = !0;
|
|
11526
|
+
S ? console && console.log && console.log("Invalid srcset descriptor found in '" + e + "' at '" + $ + "'.") : (F.url = p, N && (F.w = N), R && (F.d = R), k && (F.h = k), y.push(F));
|
|
11527
11527
|
}
|
|
11528
11528
|
};
|
|
11529
11529
|
});
|
|
@@ -12777,16 +12777,16 @@ var t5 = function(e, r = {}) {
|
|
|
12777
12777
|
function w() {
|
|
12778
12778
|
return m;
|
|
12779
12779
|
}
|
|
12780
|
-
function S(
|
|
12781
|
-
throw e.error("Unclosed " +
|
|
12780
|
+
function S(j) {
|
|
12781
|
+
throw e.error("Unclosed " + j, m);
|
|
12782
12782
|
}
|
|
12783
12783
|
function N() {
|
|
12784
12784
|
return x.length === 0 && m >= g;
|
|
12785
12785
|
}
|
|
12786
|
-
function R(
|
|
12786
|
+
function R(j) {
|
|
12787
12787
|
if (x.length) return x.pop();
|
|
12788
12788
|
if (m >= g) return;
|
|
12789
|
-
let
|
|
12789
|
+
let F = j ? j.ignoreUnclosed : !1;
|
|
12790
12790
|
switch (i = n.charCodeAt(m), i) {
|
|
12791
12791
|
case xo:
|
|
12792
12792
|
case gn:
|
|
@@ -12807,8 +12807,8 @@ var t5 = function(e, r = {}) {
|
|
|
12807
12807
|
case ZE:
|
|
12808
12808
|
case KE:
|
|
12809
12809
|
case GE: {
|
|
12810
|
-
let
|
|
12811
|
-
c = [
|
|
12810
|
+
let $ = String.fromCharCode(i);
|
|
12811
|
+
c = [$, $, m];
|
|
12812
12812
|
break;
|
|
12813
12813
|
}
|
|
12814
12814
|
case WE: {
|
|
@@ -12816,7 +12816,7 @@ var t5 = function(e, r = {}) {
|
|
|
12816
12816
|
u = m;
|
|
12817
12817
|
do {
|
|
12818
12818
|
if (p = !1, u = n.indexOf(")", u + 1), u === -1)
|
|
12819
|
-
if (o ||
|
|
12819
|
+
if (o || F) {
|
|
12820
12820
|
u = m;
|
|
12821
12821
|
break;
|
|
12822
12822
|
} else
|
|
@@ -12834,7 +12834,7 @@ var t5 = function(e, r = {}) {
|
|
|
12834
12834
|
l = i === Sa ? "'" : '"', u = m;
|
|
12835
12835
|
do {
|
|
12836
12836
|
if (p = !1, u = n.indexOf(l, u + 1), u === -1)
|
|
12837
|
-
if (o ||
|
|
12837
|
+
if (o || F) {
|
|
12838
12838
|
u = m + 1;
|
|
12839
12839
|
break;
|
|
12840
12840
|
} else
|
|
@@ -12861,14 +12861,14 @@ var t5 = function(e, r = {}) {
|
|
|
12861
12861
|
break;
|
|
12862
12862
|
}
|
|
12863
12863
|
default: {
|
|
12864
|
-
i === Kc && n.charCodeAt(m + 1) === JE ? (u = n.indexOf("*/", m + 2) + 1, u === 0 && (o ||
|
|
12864
|
+
i === Kc && n.charCodeAt(m + 1) === JE ? (u = n.indexOf("*/", m + 2) + 1, u === 0 && (o || F ? u = n.length : S("comment")), c = ["comment", n.slice(m, u + 1), m, u], m = u) : (To.lastIndex = m + 1, To.test(n), To.lastIndex === 0 ? u = n.length - 1 : u = To.lastIndex - 2, c = ["word", n.slice(m, u + 1), m, u], y.push(c), m = u);
|
|
12865
12865
|
break;
|
|
12866
12866
|
}
|
|
12867
12867
|
}
|
|
12868
12868
|
return m++, c;
|
|
12869
12869
|
}
|
|
12870
|
-
function k(
|
|
12871
|
-
x.push(
|
|
12870
|
+
function k(j) {
|
|
12871
|
+
x.push(j);
|
|
12872
12872
|
}
|
|
12873
12873
|
return {
|
|
12874
12874
|
back: k,
|
|
@@ -13857,7 +13857,7 @@ and ensure you are accounting for this risk.
|
|
|
13857
13857
|
if (At(d, T) && (U = d[T](T, A), _.attribs = A = U.attribs, U.text !== void 0 && (_.innerText = U.text), T !== U.tagName && (_.name = T = U.tagName, x[g] = U.tagName)), b && (U = b(T, A), _.attribs = A = U.attribs, T !== U.tagName && (_.name = T = U.tagName, x[g] = U.tagName)), (!a(T) || e.disallowedTagsMode === "recursiveEscape" && !e8(y) || e.nestingLimit != null && g >= e.nestingLimit) && (M = !0, y[g] = !0, (e.disallowedTagsMode === "discard" || e.disallowedTagsMode === "completelyDiscard") && s.indexOf(T) !== -1 && (w = !0, S = 1)), g++, M) {
|
|
13858
13858
|
if (e.disallowedTagsMode === "discard" || e.disallowedTagsMode === "completelyDiscard") {
|
|
13859
13859
|
if (_.innerText && !B) {
|
|
13860
|
-
const q =
|
|
13860
|
+
const q = j(_.innerText);
|
|
13861
13861
|
e.textFilter ? n += e.textFilter(q, T) : n += q, N = !0;
|
|
13862
13862
|
}
|
|
13863
13863
|
return;
|
|
@@ -13865,7 +13865,7 @@ and ensure you are accounting for this risk.
|
|
|
13865
13865
|
o = n, n = "";
|
|
13866
13866
|
}
|
|
13867
13867
|
n += "<" + T, T === "script" && (e.allowedScriptHostnames || e.allowedScriptDomains) && (_.innerText = ""), M && (e.disallowedTagsMode === "escape" || e.disallowedTagsMode === "recursiveEscape") && e.preserveEscapedAttributes ? Pr(A, function(q, H) {
|
|
13868
|
-
n += " " + H + '="' +
|
|
13868
|
+
n += " " + H + '="' + j(q || "", !0) + '"';
|
|
13869
13869
|
}) : (!u || At(u, T) || u["*"]) && Pr(A, function(q, H) {
|
|
13870
13870
|
if (!n8.test(H)) {
|
|
13871
13871
|
delete _.attribs[H];
|
|
@@ -13892,14 +13892,14 @@ and ensure you are accounting for this risk.
|
|
|
13892
13892
|
}
|
|
13893
13893
|
}
|
|
13894
13894
|
if (be) {
|
|
13895
|
-
if (e.allowedSchemesAppliedToAttributes.indexOf(H) !== -1 &&
|
|
13895
|
+
if (e.allowedSchemesAppliedToAttributes.indexOf(H) !== -1 && F(T, q)) {
|
|
13896
13896
|
delete _.attribs[H];
|
|
13897
13897
|
return;
|
|
13898
13898
|
}
|
|
13899
13899
|
if (T === "script" && H === "src") {
|
|
13900
13900
|
let Z = !0;
|
|
13901
13901
|
try {
|
|
13902
|
-
const z =
|
|
13902
|
+
const z = $(q);
|
|
13903
13903
|
if (e.allowedScriptHostnames || e.allowedScriptDomains) {
|
|
13904
13904
|
const Ie = (e.allowedScriptHostnames || []).find(function(Se) {
|
|
13905
13905
|
return Se === z.url.hostname;
|
|
@@ -13919,7 +13919,7 @@ and ensure you are accounting for this risk.
|
|
|
13919
13919
|
if (T === "iframe" && H === "src") {
|
|
13920
13920
|
let Z = !0;
|
|
13921
13921
|
try {
|
|
13922
|
-
const z =
|
|
13922
|
+
const z = $(q);
|
|
13923
13923
|
if (z.isRelativeUrl)
|
|
13924
13924
|
Z = At(e, "allowIframeRelativeUrls") ? e.allowIframeRelativeUrls : !e.allowedIframeHostnames && !e.allowedIframeDomains;
|
|
13925
13925
|
else if (e.allowedIframeHostnames || e.allowedIframeDomains) {
|
|
@@ -13942,7 +13942,7 @@ and ensure you are accounting for this risk.
|
|
|
13942
13942
|
try {
|
|
13943
13943
|
let Z = K5(q);
|
|
13944
13944
|
if (Z.forEach(function(z) {
|
|
13945
|
-
|
|
13945
|
+
F("srcset", z.url) && (z.evil = !0);
|
|
13946
13946
|
}), Z = id(Z, function(z) {
|
|
13947
13947
|
return !z.evil;
|
|
13948
13948
|
}), Z.length)
|
|
@@ -13984,10 +13984,10 @@ and ensure you are accounting for this risk.
|
|
|
13984
13984
|
else if (e.allowedStyles)
|
|
13985
13985
|
throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.");
|
|
13986
13986
|
}
|
|
13987
|
-
n += " " + H, q && q.length ? n += '="' +
|
|
13987
|
+
n += " " + H, q && q.length ? n += '="' + j(q, !0) + '"' : e.allowedEmptyAttributes.includes(H) && (n += '=""');
|
|
13988
13988
|
} else
|
|
13989
13989
|
delete _.attribs[H];
|
|
13990
|
-
}), e.selfClosing.indexOf(T) !== -1 ? n += " />" : (n += ">", _.innerText && !B && !e.textFilter && (n +=
|
|
13990
|
+
}), e.selfClosing.indexOf(T) !== -1 ? n += " />" : (n += ">", _.innerText && !B && !e.textFilter && (n += j(_.innerText), N = !0)), M && (n = o + j(n), o = ""), _.openingTagLength = n.length - _.tagPosition;
|
|
13991
13991
|
},
|
|
13992
13992
|
ontext: function(T) {
|
|
13993
13993
|
if (w)
|
|
@@ -13999,7 +13999,7 @@ and ensure you are accounting for this risk.
|
|
|
13999
13999
|
else if ((e.disallowedTagsMode === "discard" || e.disallowedTagsMode === "completelyDiscard") && (_ === "script" || _ === "style"))
|
|
14000
14000
|
n += T;
|
|
14001
14001
|
else if (!N) {
|
|
14002
|
-
const M =
|
|
14002
|
+
const M = j(T, !1);
|
|
14003
14003
|
e.textFilter ? n += e.textFilter(M, _) : n += M;
|
|
14004
14004
|
}
|
|
14005
14005
|
if (m.length) {
|
|
@@ -14045,17 +14045,17 @@ and ensure you are accounting for this risk.
|
|
|
14045
14045
|
M && (n = o, o = "");
|
|
14046
14046
|
return;
|
|
14047
14047
|
}
|
|
14048
|
-
n += "</" + T + ">", M && (n = o +
|
|
14048
|
+
n += "</" + T + ">", M && (n = o + j(n), o = ""), N = !1;
|
|
14049
14049
|
}
|
|
14050
14050
|
}, e.parser);
|
|
14051
14051
|
return R.write(t), R.end(), n;
|
|
14052
14052
|
function k() {
|
|
14053
14053
|
n = "", g = 0, m = [], y = {}, x = {}, w = !1, S = 0;
|
|
14054
14054
|
}
|
|
14055
|
-
function
|
|
14055
|
+
function j(T, A) {
|
|
14056
14056
|
return typeof T != "string" && (T = T + ""), e.parser.decodeEntities && (T = T.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), A && (T = T.replace(/"/g, """))), T = T.replace(/&(?![a-zA-Z0-9#]{1,20};)/g, "&").replace(/</g, "<").replace(/>/g, ">"), A && (T = T.replace(/"/g, """)), T;
|
|
14057
14057
|
}
|
|
14058
|
-
function
|
|
14058
|
+
function F(T, A) {
|
|
14059
14059
|
for (A = A.replace(/[\x00-\x20]+/g, ""); ; ) {
|
|
14060
14060
|
const B = A.indexOf("<!--");
|
|
14061
14061
|
if (B === -1)
|
|
@@ -14071,7 +14071,7 @@ and ensure you are accounting for this risk.
|
|
|
14071
14071
|
const M = _[1].toLowerCase();
|
|
14072
14072
|
return At(e.allowedSchemesByTag, T) ? e.allowedSchemesByTag[T].indexOf(M) === -1 : !e.allowedSchemes || e.allowedSchemes.indexOf(M) === -1;
|
|
14073
14073
|
}
|
|
14074
|
-
function
|
|
14074
|
+
function $(T) {
|
|
14075
14075
|
if (T = T.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/, "$1//"), T.startsWith("relative:"))
|
|
14076
14076
|
throw new Error("relative: exploit attempt");
|
|
14077
14077
|
let A = "relative://relative-site";
|
|
@@ -14612,17 +14612,17 @@ const _p = /* @__PURE__ */ vi(r8), i8 = [
|
|
|
14612
14612
|
const d = _e(), b = mi();
|
|
14613
14613
|
let g, m, y;
|
|
14614
14614
|
try {
|
|
14615
|
-
const { connectors:
|
|
14616
|
-
events:
|
|
14615
|
+
const { connectors: j, events: F } = ue(($) => ({
|
|
14616
|
+
events: $.events
|
|
14617
14617
|
}));
|
|
14618
|
-
g =
|
|
14618
|
+
g = j.connect, m = j.drag, y = F.selected;
|
|
14619
14619
|
} catch {
|
|
14620
14620
|
}
|
|
14621
14621
|
const x = ss(t, b), w = typeof te(l, d) == "object" ? `${te(l, d).top}px ${te(l, d).right}px ${te(l, d).bottom}px ${te(l, d).left}px` : `${te(l, d)}px`, S = zt(r, d, 16), N = zt(i, d, 150) / 100, R = zt(a, d, 0), k = /<[^>]+>/.test(x);
|
|
14622
14622
|
return /* @__PURE__ */ h(
|
|
14623
14623
|
"div",
|
|
14624
14624
|
{
|
|
14625
|
-
ref: (
|
|
14625
|
+
ref: (j) => j && g && m && g(m(j)),
|
|
14626
14626
|
className: `cursor-move ${y ? "outline outline-blue-500" : ""}`,
|
|
14627
14627
|
style: {
|
|
14628
14628
|
fontSize: `${S}px`,
|
|
@@ -14848,7 +14848,7 @@ const An = {
|
|
|
14848
14848
|
textTransform: c = "none",
|
|
14849
14849
|
opacity: p = { desktop: 100 }
|
|
14850
14850
|
}) => {
|
|
14851
|
-
var
|
|
14851
|
+
var j, F, $;
|
|
14852
14852
|
const f = _e(), d = mi();
|
|
14853
14853
|
let b, g, m;
|
|
14854
14854
|
try {
|
|
@@ -14860,10 +14860,10 @@ const An = {
|
|
|
14860
14860
|
}
|
|
14861
14861
|
const y = ss(t, d), x = `h${e}`;
|
|
14862
14862
|
let w;
|
|
14863
|
-
a === "auto" ? w = ((
|
|
14863
|
+
a === "auto" ? w = ((j = An[e]) == null ? void 0 : j[f]) || ((F = An[e]) == null ? void 0 : F.desktop) || 36 : w = zt(
|
|
14864
14864
|
a,
|
|
14865
14865
|
f,
|
|
14866
|
-
((
|
|
14866
|
+
(($ = An[e]) == null ? void 0 : $.desktop) || 36
|
|
14867
14867
|
);
|
|
14868
14868
|
const S = zt(s, f, 120) / 100, N = zt(
|
|
14869
14869
|
u,
|
|
@@ -17148,9 +17148,9 @@ const eh = (t) => {
|
|
|
17148
17148
|
onDownloadProgress: N,
|
|
17149
17149
|
onUploadProgress: R,
|
|
17150
17150
|
responseType: k,
|
|
17151
|
-
headers:
|
|
17152
|
-
withCredentials:
|
|
17153
|
-
fetchOptions:
|
|
17151
|
+
headers: j,
|
|
17152
|
+
withCredentials: F = "same-origin",
|
|
17153
|
+
fetchOptions: $
|
|
17154
17154
|
} = eh(b), E = e || fetch;
|
|
17155
17155
|
k = k ? (k + "").toLowerCase() : "text";
|
|
17156
17156
|
let C = UC(
|
|
@@ -17162,13 +17162,13 @@ const eh = (t) => {
|
|
|
17162
17162
|
});
|
|
17163
17163
|
let T;
|
|
17164
17164
|
try {
|
|
17165
|
-
if (R && l && m !== "get" && m !== "head" && (T = await d(
|
|
17165
|
+
if (R && l && m !== "get" && m !== "head" && (T = await d(j, y)) !== 0) {
|
|
17166
17166
|
let ne = new r(g, {
|
|
17167
17167
|
method: "POST",
|
|
17168
17168
|
body: y,
|
|
17169
17169
|
duplex: "half"
|
|
17170
17170
|
}), Q;
|
|
17171
|
-
if (O.isFormData(y) && (Q = ne.headers.get("content-type")) &&
|
|
17171
|
+
if (O.isFormData(y) && (Q = ne.headers.get("content-type")) && j.setContentType(Q), ne.body) {
|
|
17172
17172
|
const [q, H] = fd(
|
|
17173
17173
|
T,
|
|
17174
17174
|
di(pd(R))
|
|
@@ -17176,18 +17176,18 @@ const eh = (t) => {
|
|
|
17176
17176
|
y = md(ne.body, bd, q, H);
|
|
17177
17177
|
}
|
|
17178
17178
|
}
|
|
17179
|
-
O.isString(
|
|
17179
|
+
O.isString(F) || (F = F ? "include" : "omit");
|
|
17180
17180
|
const A = i && "credentials" in r.prototype, _ = {
|
|
17181
|
-
|
|
17181
|
+
...$,
|
|
17182
17182
|
signal: C,
|
|
17183
17183
|
method: m.toUpperCase(),
|
|
17184
|
-
headers:
|
|
17184
|
+
headers: j.normalize().toJSON(),
|
|
17185
17185
|
body: y,
|
|
17186
17186
|
duplex: "half",
|
|
17187
|
-
credentials: A ?
|
|
17187
|
+
credentials: A ? F : void 0
|
|
17188
17188
|
};
|
|
17189
17189
|
D = i && new r(g, _);
|
|
17190
|
-
let M = await (i ? E(D,
|
|
17190
|
+
let M = await (i ? E(D, $) : E(g, _));
|
|
17191
17191
|
const B = c && (k === "stream" || k === "response");
|
|
17192
17192
|
if (c && (N || B && L)) {
|
|
17193
17193
|
const ne = {};
|
|
@@ -17800,39 +17800,39 @@ const sT = (t, e) => {
|
|
|
17800
17800
|
queryFn: () => g8(t, e),
|
|
17801
17801
|
enabled: !!t
|
|
17802
17802
|
}), { postVideoAnalytics: l } = iT();
|
|
17803
|
-
let c = 0, p = Date.now();
|
|
17803
|
+
let c = 0, p = Date.now(), f = 9999999;
|
|
17804
17804
|
if (ke(() => {
|
|
17805
|
-
const
|
|
17806
|
-
|
|
17805
|
+
const g = ($) => {
|
|
17806
|
+
$.target.nodeName === "VIDEO" && $.preventDefault();
|
|
17807
17807
|
};
|
|
17808
|
-
document.addEventListener("contextmenu",
|
|
17809
|
-
const
|
|
17810
|
-
if (!
|
|
17811
|
-
const
|
|
17812
|
-
if (!
|
|
17813
|
-
let
|
|
17814
|
-
|
|
17815
|
-
var
|
|
17816
|
-
const
|
|
17817
|
-
!
|
|
17818
|
-
video_id:
|
|
17819
|
-
progress_percent:
|
|
17820
|
-
video_title:
|
|
17808
|
+
document.addEventListener("contextmenu", g);
|
|
17809
|
+
const m = i.current;
|
|
17810
|
+
if (!m || !a) return;
|
|
17811
|
+
const y = m.dataset.videoId, x = m.dataset.title;
|
|
17812
|
+
if (!y) return;
|
|
17813
|
+
let w = /* @__PURE__ */ new Set();
|
|
17814
|
+
m.addEventListener("timeupdate", () => {
|
|
17815
|
+
var L, T;
|
|
17816
|
+
const $ = Math.floor(m.currentTime / m.duration * 100), E = Math.floor($ / 10) * 10;
|
|
17817
|
+
!w.has(E) && E % 10 === 0 && E <= 100 && (w.add(E), localStorage.getItem(xn(y)) || ((L = window.gtag) == null || L.call(window, "event", "video_progress", {
|
|
17818
|
+
video_id: y,
|
|
17819
|
+
progress_percent: E,
|
|
17820
|
+
video_title: m.dataset.title || "",
|
|
17821
17821
|
// optional
|
|
17822
|
-
video_duration:
|
|
17822
|
+
video_duration: m.duration
|
|
17823
17823
|
}), l({
|
|
17824
17824
|
type: "milestone",
|
|
17825
17825
|
bibId: e,
|
|
17826
17826
|
eventId: r,
|
|
17827
17827
|
locationId: t,
|
|
17828
|
-
data: { percent:
|
|
17828
|
+
data: { percent: E }
|
|
17829
17829
|
})));
|
|
17830
|
-
const
|
|
17831
|
-
p =
|
|
17832
|
-
video_id:
|
|
17830
|
+
const C = Date.now(), D = (C - p) / 1e3;
|
|
17831
|
+
p = C, D < 1.5 && (c += D), c >= 5 && (localStorage.getItem(xn(y)) || ((T = window.gtag) == null || T.call(window, "event", "video_watch_time", {
|
|
17832
|
+
video_id: y,
|
|
17833
17833
|
watched_seconds: Math.round(c),
|
|
17834
|
-
video_title:
|
|
17835
|
-
video_duration:
|
|
17834
|
+
video_title: m.dataset.title || "",
|
|
17835
|
+
video_duration: m.duration
|
|
17836
17836
|
}), l({
|
|
17837
17837
|
bibId: e,
|
|
17838
17838
|
eventId: r,
|
|
@@ -17841,38 +17841,38 @@ const sT = (t, e) => {
|
|
|
17841
17841
|
data: { seconds: Math.round(c) }
|
|
17842
17842
|
})), c = 0);
|
|
17843
17843
|
});
|
|
17844
|
-
const
|
|
17845
|
-
var
|
|
17846
|
-
(
|
|
17847
|
-
video_id:
|
|
17848
|
-
video_title:
|
|
17849
|
-
video_duration:
|
|
17850
|
-
}), l({ bibId: e, locationId: t, eventId: r, type: "start" }), localStorage.getItem(xn(
|
|
17851
|
-
}, S = () => {
|
|
17852
|
-
var j;
|
|
17853
|
-
(j = window.gtag) == null || j.call(window, "event", "video_pause", {
|
|
17854
|
-
video_id: m,
|
|
17855
|
-
video_title: y,
|
|
17856
|
-
video_duration: g.duration,
|
|
17857
|
-
video_currentTime: g.currentTime
|
|
17858
|
-
});
|
|
17844
|
+
const S = () => {
|
|
17845
|
+
var $;
|
|
17846
|
+
($ = window.gtag) == null || $.call(window, "event", "video_start", {
|
|
17847
|
+
video_id: y,
|
|
17848
|
+
video_title: x,
|
|
17849
|
+
video_duration: m.duration
|
|
17850
|
+
}), l({ bibId: e, locationId: t, eventId: r, type: "start" }), localStorage.getItem(xn(y)) || (localStorage.setItem(xn(y), "true"), l({ bibId: e, eventId: r, locationId: t, type: "unique" }));
|
|
17859
17851
|
}, N = () => {
|
|
17860
|
-
|
|
17852
|
+
var $;
|
|
17853
|
+
($ = window.gtag) == null || $.call(window, "event", "video_pause", {
|
|
17854
|
+
video_id: y,
|
|
17855
|
+
video_title: x,
|
|
17856
|
+
video_duration: m.duration,
|
|
17857
|
+
video_currentTime: m.currentTime
|
|
17858
|
+
});
|
|
17861
17859
|
}, R = () => {
|
|
17862
|
-
|
|
17860
|
+
m.currentTime >= f && (m.pause(), m.currentTime = f - 1, setOpen(!0));
|
|
17863
17861
|
}, k = () => {
|
|
17864
|
-
|
|
17865
|
-
|
|
17866
|
-
|
|
17867
|
-
|
|
17868
|
-
|
|
17869
|
-
|
|
17862
|
+
m.currentTime > f && (m.pause(), m.currentTime = f - 1, setOpen(!0));
|
|
17863
|
+
}, j = () => {
|
|
17864
|
+
var $;
|
|
17865
|
+
m.currentTime = 0, setOpen(!0), ($ = window.gtag) == null || $.call(window, "event", "video_complete", {
|
|
17866
|
+
video_id: y,
|
|
17867
|
+
video_title: x,
|
|
17868
|
+
video_duration: m.duration,
|
|
17869
|
+
video_currentTime: m.currentTime
|
|
17870
17870
|
});
|
|
17871
|
-
},
|
|
17872
|
-
["ArrowRight", "ArrowLeft"].includes(
|
|
17871
|
+
}, F = ($) => {
|
|
17872
|
+
["ArrowRight", "ArrowLeft"].includes($.code) && $.preventDefault();
|
|
17873
17873
|
};
|
|
17874
|
-
return
|
|
17875
|
-
|
|
17874
|
+
return m.addEventListener("play", S), m.addEventListener("pause", N), m.addEventListener("timeupdate", R), m.addEventListener("seeking", k), m.addEventListener("ended", j), document.addEventListener("keydown", F), () => {
|
|
17875
|
+
m.removeEventListener("play", S), m.removeEventListener("pause", N), m.removeEventListener("timeupdate", R), m.removeEventListener("seeking", k), m.removeEventListener("ended", j), document.removeEventListener("keydown", F), document.removeEventListener("contextmenu", g);
|
|
17876
17876
|
};
|
|
17877
17877
|
}, [i.current, a]), s)
|
|
17878
17878
|
return /* @__PURE__ */ h("div", { className: "flex items-center justify-center h-48 bg-muted rounded-lg", children: /* @__PURE__ */ h("div", { className: "h-8 w-8 animate-spin rounded-full border-4 border-muted-foreground border-t-transparent" }) });
|
|
@@ -17884,30 +17884,30 @@ const sT = (t, e) => {
|
|
|
17884
17884
|
] }),
|
|
17885
17885
|
/* @__PURE__ */ h("p", { className: "text-muted-foreground/70 text-xs", children: "This will be hidden on the live page" })
|
|
17886
17886
|
] }) : null;
|
|
17887
|
-
const { videoFromIrewind:
|
|
17887
|
+
const { videoFromIrewind: d } = a, b = async () => {
|
|
17888
17888
|
if (!n)
|
|
17889
17889
|
try {
|
|
17890
|
-
const
|
|
17891
|
-
if (!
|
|
17892
|
-
const
|
|
17893
|
-
localStorage.getItem(xn(
|
|
17890
|
+
const g = i.current;
|
|
17891
|
+
if (!g) return;
|
|
17892
|
+
const m = g.dataset.videoId || "";
|
|
17893
|
+
localStorage.getItem(xn(m)) || await l({
|
|
17894
17894
|
bibId: e,
|
|
17895
17895
|
eventId: r,
|
|
17896
17896
|
locationId: t,
|
|
17897
17897
|
type: "download"
|
|
17898
17898
|
});
|
|
17899
|
-
const
|
|
17900
|
-
|
|
17901
|
-
} catch (
|
|
17902
|
-
console.error("Download failed:",
|
|
17899
|
+
const y = document.createElement("a");
|
|
17900
|
+
y.href = d.mp4_hr_url, y.download = `${d.name || e}-video`, y.style.display = "none", document.body.appendChild(y), y.click(), document.body.removeChild(y);
|
|
17901
|
+
} catch (g) {
|
|
17902
|
+
console.error("Download failed:", g);
|
|
17903
17903
|
}
|
|
17904
17904
|
};
|
|
17905
17905
|
return /* @__PURE__ */ h(cn, { children: /* @__PURE__ */ h(Gn, { children: /* @__PURE__ */ h("div", { className: "w-full", children: /* @__PURE__ */ P("div", { className: "flex flex-col items-center", children: [
|
|
17906
17906
|
/* @__PURE__ */ h("p", { className: "text-sm text-muted-foreground mb-1", children: o }),
|
|
17907
17907
|
/* @__PURE__ */ P("h3", { className: "text-lg font-semibold text-foreground mb-3", children: [
|
|
17908
|
-
|
|
17908
|
+
d.name,
|
|
17909
17909
|
" (",
|
|
17910
|
-
|
|
17910
|
+
d.start_no,
|
|
17911
17911
|
")"
|
|
17912
17912
|
] }),
|
|
17913
17913
|
/* @__PURE__ */ P(
|
|
@@ -17923,7 +17923,7 @@ const sT = (t, e) => {
|
|
|
17923
17923
|
controlsList: "nodownload",
|
|
17924
17924
|
style: { width: "100%", maxWidth: "600px" },
|
|
17925
17925
|
children: [
|
|
17926
|
-
/* @__PURE__ */ h("source", { src:
|
|
17926
|
+
/* @__PURE__ */ h("source", { src: d.mp4_hr_url, type: "video/mp4" }),
|
|
17927
17927
|
"Your browser does not support HTML5 video."
|
|
17928
17928
|
]
|
|
17929
17929
|
}
|
|
@@ -17931,7 +17931,7 @@ const sT = (t, e) => {
|
|
|
17931
17931
|
/* @__PURE__ */ h(
|
|
17932
17932
|
C8,
|
|
17933
17933
|
{
|
|
17934
|
-
onDownload:
|
|
17934
|
+
onDownload: b,
|
|
17935
17935
|
disabled: n
|
|
17936
17936
|
}
|
|
17937
17937
|
)
|
|
@@ -18689,10 +18689,10 @@ const lh = ({
|
|
|
18689
18689
|
_e();
|
|
18690
18690
|
let y, x, w;
|
|
18691
18691
|
try {
|
|
18692
|
-
const { connectors: k, events:
|
|
18693
|
-
events:
|
|
18692
|
+
const { connectors: k, events: j } = ue((F) => ({
|
|
18693
|
+
events: F.events
|
|
18694
18694
|
}));
|
|
18695
|
-
y = k.connect, x = k.drag, w =
|
|
18695
|
+
y = k.connect, x = k.drag, w = j.selected;
|
|
18696
18696
|
} catch {
|
|
18697
18697
|
}
|
|
18698
18698
|
const S = typeof te(e) == "object" ? `${te(e).top}px ${te(e).right}px ${te(e).bottom}px ${te(e).left}px` : `${te(e)}px`, N = typeof te(r) == "object" ? `${te(r).top}px ${te(r).right}px ${te(r).bottom}px ${te(r).left}px` : `${te(r)}px`, R = [
|
|
@@ -18872,13 +18872,13 @@ var nl = "ScrollArea", [ch] = xr(nl), [gT, Ye] = ch(nl), dh = v.forwardRef(
|
|
|
18872
18872
|
dir: o,
|
|
18873
18873
|
scrollHideDelay: i = 600,
|
|
18874
18874
|
...a
|
|
18875
|
-
} = t, [s, u] = v.useState(null), [l, c] = v.useState(null), [p, f] = v.useState(null), [d, b] = v.useState(null), [g, m] = v.useState(null), [y, x] = v.useState(0), [w, S] = v.useState(0), [N, R] = v.useState(!1), [k,
|
|
18875
|
+
} = t, [s, u] = v.useState(null), [l, c] = v.useState(null), [p, f] = v.useState(null), [d, b] = v.useState(null), [g, m] = v.useState(null), [y, x] = v.useState(0), [w, S] = v.useState(0), [N, R] = v.useState(!1), [k, j] = v.useState(!1), F = Ae(e, (E) => u(E)), $ = rl(o);
|
|
18876
18876
|
return /* @__PURE__ */ h(
|
|
18877
18877
|
gT,
|
|
18878
18878
|
{
|
|
18879
18879
|
scope: r,
|
|
18880
18880
|
type: n,
|
|
18881
|
-
dir:
|
|
18881
|
+
dir: $,
|
|
18882
18882
|
scrollHideDelay: i,
|
|
18883
18883
|
scrollArea: s,
|
|
18884
18884
|
viewport: l,
|
|
@@ -18892,15 +18892,15 @@ var nl = "ScrollArea", [ch] = xr(nl), [gT, Ye] = ch(nl), dh = v.forwardRef(
|
|
|
18892
18892
|
scrollbarY: g,
|
|
18893
18893
|
onScrollbarYChange: m,
|
|
18894
18894
|
scrollbarYEnabled: k,
|
|
18895
|
-
onScrollbarYEnabledChange:
|
|
18895
|
+
onScrollbarYEnabledChange: j,
|
|
18896
18896
|
onCornerWidthChange: x,
|
|
18897
18897
|
onCornerHeightChange: S,
|
|
18898
18898
|
children: /* @__PURE__ */ h(
|
|
18899
18899
|
we.div,
|
|
18900
18900
|
{
|
|
18901
|
-
dir:
|
|
18901
|
+
dir: $,
|
|
18902
18902
|
...a,
|
|
18903
|
-
ref:
|
|
18903
|
+
ref: F,
|
|
18904
18904
|
style: {
|
|
18905
18905
|
position: "relative",
|
|
18906
18906
|
// Pass corner sizes as CSS vars to reduce re-renders of context consumers
|
|
@@ -19194,19 +19194,19 @@ var yT = v.forwardRef((t, e) => {
|
|
|
19194
19194
|
onWheelScroll: c,
|
|
19195
19195
|
onResize: p,
|
|
19196
19196
|
...f
|
|
19197
|
-
} = t, d = Ye(St, r), [b, g] = v.useState(null), m = Ae(e, (
|
|
19198
|
-
function
|
|
19197
|
+
} = t, d = Ye(St, r), [b, g] = v.useState(null), m = Ae(e, (F) => g(F)), y = v.useRef(null), x = v.useRef(""), w = d.viewport, S = n.content - n.viewport, N = We(c), R = We(u), k = ea(p, 10);
|
|
19198
|
+
function j(F) {
|
|
19199
19199
|
if (y.current) {
|
|
19200
|
-
const
|
|
19201
|
-
l({ x:
|
|
19200
|
+
const $ = F.clientX - y.current.left, E = F.clientY - y.current.top;
|
|
19201
|
+
l({ x: $, y: E });
|
|
19202
19202
|
}
|
|
19203
19203
|
}
|
|
19204
19204
|
return v.useEffect(() => {
|
|
19205
|
-
const
|
|
19206
|
-
const E =
|
|
19207
|
-
(b == null ? void 0 : b.contains(E)) && N(
|
|
19205
|
+
const F = ($) => {
|
|
19206
|
+
const E = $.target;
|
|
19207
|
+
(b == null ? void 0 : b.contains(E)) && N($, S);
|
|
19208
19208
|
};
|
|
19209
|
-
return document.addEventListener("wheel",
|
|
19209
|
+
return document.addEventListener("wheel", F, { passive: !1 }), () => document.removeEventListener("wheel", F, { passive: !1 });
|
|
19210
19210
|
}, [w, b, S, N]), v.useEffect(R, [n, R]), Xr(b, k), Xr(d.content, k), /* @__PURE__ */ h(
|
|
19211
19211
|
ST,
|
|
19212
19212
|
{
|
|
@@ -19223,13 +19223,13 @@ var yT = v.forwardRef((t, e) => {
|
|
|
19223
19223
|
...f,
|
|
19224
19224
|
ref: m,
|
|
19225
19225
|
style: { position: "absolute", ...f.style },
|
|
19226
|
-
onPointerDown: pe(t.onPointerDown, (
|
|
19227
|
-
|
|
19226
|
+
onPointerDown: pe(t.onPointerDown, (F) => {
|
|
19227
|
+
F.button === 0 && (F.target.setPointerCapture(F.pointerId), y.current = b.getBoundingClientRect(), x.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", d.viewport && (d.viewport.style.scrollBehavior = "auto"), j(F));
|
|
19228
19228
|
}),
|
|
19229
|
-
onPointerMove: pe(t.onPointerMove,
|
|
19230
|
-
onPointerUp: pe(t.onPointerUp, (
|
|
19231
|
-
const
|
|
19232
|
-
|
|
19229
|
+
onPointerMove: pe(t.onPointerMove, j),
|
|
19230
|
+
onPointerUp: pe(t.onPointerUp, (F) => {
|
|
19231
|
+
const $ = F.target;
|
|
19232
|
+
$.hasPointerCapture(F.pointerId) && $.releasePointerCapture(F.pointerId), document.body.style.webkitUserSelect = x.current, d.viewport && (d.viewport.style.scrollBehavior = ""), y.current = null;
|
|
19233
19233
|
})
|
|
19234
19234
|
}
|
|
19235
19235
|
)
|
|
@@ -19465,15 +19465,15 @@ const RT = () => {
|
|
|
19465
19465
|
C.stopPropagation(), x || s.selectNode(t);
|
|
19466
19466
|
}, k = (C) => {
|
|
19467
19467
|
C.stopPropagation(), f(!p);
|
|
19468
|
-
},
|
|
19468
|
+
}, j = (C) => {
|
|
19469
19469
|
if (x) {
|
|
19470
19470
|
C.preventDefault();
|
|
19471
19471
|
return;
|
|
19472
19472
|
}
|
|
19473
19473
|
C.stopPropagation(), r(t, c);
|
|
19474
|
-
}, j = (C) => {
|
|
19475
|
-
C.preventDefault(), C.stopPropagation(), i && i !== t && N && b(!0);
|
|
19476
19474
|
}, F = (C) => {
|
|
19475
|
+
C.preventDefault(), C.stopPropagation(), i && i !== t && N && b(!0);
|
|
19476
|
+
}, $ = (C) => {
|
|
19477
19477
|
C.stopPropagation(), b(!1);
|
|
19478
19478
|
}, E = (C) => {
|
|
19479
19479
|
C.preventDefault(), C.stopPropagation(), b(!1), i && i !== t && o(t);
|
|
@@ -19486,9 +19486,9 @@ const RT = () => {
|
|
|
19486
19486
|
style: { paddingLeft: `${e * 12 + 4}px` },
|
|
19487
19487
|
onClick: R,
|
|
19488
19488
|
draggable: !x,
|
|
19489
|
-
onDragStart:
|
|
19490
|
-
onDragOver:
|
|
19491
|
-
onDragLeave:
|
|
19489
|
+
onDragStart: j,
|
|
19490
|
+
onDragOver: F,
|
|
19491
|
+
onDragLeave: $,
|
|
19492
19492
|
onDrop: E,
|
|
19493
19493
|
children: [
|
|
19494
19494
|
!x && /* @__PURE__ */ h(Zm, { className: "h-3 w-3 text-muted-foreground/50 cursor-grab active:cursor-grabbing" }),
|
|
@@ -19651,9 +19651,9 @@ var zT = v.forwardRef((t, e) => {
|
|
|
19651
19651
|
caller: io
|
|
19652
19652
|
}), [y, x] = v.useState(!1), w = We(l), S = Th(r), N = v.useRef(!1), [R, k] = v.useState(0);
|
|
19653
19653
|
return v.useEffect(() => {
|
|
19654
|
-
const
|
|
19655
|
-
if (
|
|
19656
|
-
return
|
|
19654
|
+
const j = f.current;
|
|
19655
|
+
if (j)
|
|
19656
|
+
return j.addEventListener(Aa, w), () => j.removeEventListener(Aa, w);
|
|
19657
19657
|
}, [w]), /* @__PURE__ */ h(
|
|
19658
19658
|
HT,
|
|
19659
19659
|
{
|
|
@@ -19663,16 +19663,16 @@ var zT = v.forwardRef((t, e) => {
|
|
|
19663
19663
|
loop: o,
|
|
19664
19664
|
currentTabStopId: g,
|
|
19665
19665
|
onItemFocus: v.useCallback(
|
|
19666
|
-
(
|
|
19666
|
+
(j) => m(j),
|
|
19667
19667
|
[m]
|
|
19668
19668
|
),
|
|
19669
19669
|
onItemShiftTab: v.useCallback(() => x(!0), []),
|
|
19670
19670
|
onFocusableItemAdd: v.useCallback(
|
|
19671
|
-
() => k((
|
|
19671
|
+
() => k((j) => j + 1),
|
|
19672
19672
|
[]
|
|
19673
19673
|
),
|
|
19674
19674
|
onFocusableItemRemove: v.useCallback(
|
|
19675
|
-
() => k((
|
|
19675
|
+
() => k((j) => j - 1),
|
|
19676
19676
|
[]
|
|
19677
19677
|
),
|
|
19678
19678
|
children: /* @__PURE__ */ h(
|
|
@@ -19686,11 +19686,11 @@ var zT = v.forwardRef((t, e) => {
|
|
|
19686
19686
|
onMouseDown: pe(t.onMouseDown, () => {
|
|
19687
19687
|
N.current = !0;
|
|
19688
19688
|
}),
|
|
19689
|
-
onFocus: pe(t.onFocus, (
|
|
19690
|
-
const
|
|
19691
|
-
if (
|
|
19692
|
-
const
|
|
19693
|
-
if (
|
|
19689
|
+
onFocus: pe(t.onFocus, (j) => {
|
|
19690
|
+
const F = !N.current;
|
|
19691
|
+
if (j.target === j.currentTarget && F && !y) {
|
|
19692
|
+
const $ = new CustomEvent(Aa, $T);
|
|
19693
|
+
if (j.currentTarget.dispatchEvent($), !$.defaultPrevented) {
|
|
19694
19694
|
const E = S().filter((A) => A.focusable), C = E.find((A) => A.active), D = E.find((A) => A.id === g), T = [C, D, ...E].filter(
|
|
19695
19695
|
Boolean
|
|
19696
19696
|
).map((A) => A.ref.current);
|
|
@@ -20071,10 +20071,10 @@ function TN(t) {
|
|
|
20071
20071
|
}
|
|
20072
20072
|
var NN = (t) => {
|
|
20073
20073
|
var e, r, n, o, i, a, s, u, l, c, p;
|
|
20074
|
-
let { invert: f, toast: d, unstyled: b, interacting: g, setHeights: m, visibleToasts: y, heights: x, index: w, toasts: S, expanded: N, removeToast: R, defaultRichColors: k, closeButton:
|
|
20074
|
+
let { invert: f, toast: d, unstyled: b, interacting: g, setHeights: m, visibleToasts: y, heights: x, index: w, toasts: S, expanded: N, removeToast: R, defaultRichColors: k, closeButton: j, style: F, cancelButtonStyle: $, actionButtonStyle: E, className: C = "", descriptionClassName: D = "", duration: L, position: T, gap: A, loadingIcon: _, expandByDefault: M, classNames: B, icons: U, closeButtonAriaLabel: ne = "Close toast", pauseWhenPageIsHidden: Q } = t, [q, H] = I.useState(null), [be, Z] = I.useState(null), [z, Ie] = I.useState(!1), [Te, Se] = I.useState(!1), [at, Et] = I.useState(!1), [st, ao] = I.useState(!1), [ta, so] = I.useState(!1), [ra, dn] = I.useState(0), [Cr, cl] = I.useState(0), fn = I.useRef(d.duration || L || Ad), dl = I.useRef(null), nr = I.useRef(null), Gh = w === 0, Yh = w + 1 <= y, ze = d.type, Tr = d.dismissible !== !1, Xh = d.className || "", Kh = d.descriptionClassName || "", uo = I.useMemo(() => x.findIndex((G) => G.toastId === d.id) || 0, [x, d.id]), Jh = I.useMemo(() => {
|
|
20075
20075
|
var G;
|
|
20076
|
-
return (G = d.closeButton) != null ? G :
|
|
20077
|
-
}, [d.closeButton,
|
|
20076
|
+
return (G = d.closeButton) != null ? G : j;
|
|
20077
|
+
}, [d.closeButton, j]), fl = I.useMemo(() => d.duration || L || Ad, [d.duration, L]), na = I.useRef(0), Nr = I.useRef(0), pl = I.useRef(0), Ar = I.useRef(null), [Zh, Qh] = T.split("-"), hl = I.useMemo(() => x.reduce((G, ae, he) => he >= uo ? G : G + ae.height, 0), [x, uo]), ml = lN(), em = d.invert || f, oa = ze === "loading";
|
|
20078
20078
|
Nr.current = I.useMemo(() => uo * A + hl, [uo, hl]), I.useEffect(() => {
|
|
20079
20079
|
fn.current = fl;
|
|
20080
20080
|
}, [fl]), I.useEffect(() => {
|
|
@@ -20117,7 +20117,7 @@ var NN = (t) => {
|
|
|
20117
20117
|
var G, ae, he;
|
|
20118
20118
|
return U != null && U.loading ? I.createElement("div", { className: Ze(B == null ? void 0 : B.loader, (G = d == null ? void 0 : d.classNames) == null ? void 0 : G.loader, "sonner-loader"), "data-visible": ze === "loading" }, U.loading) : _ ? I.createElement("div", { className: Ze(B == null ? void 0 : B.loader, (ae = d == null ? void 0 : d.classNames) == null ? void 0 : ae.loader, "sonner-loader"), "data-visible": ze === "loading" }, _) : I.createElement(nN, { className: Ze(B == null ? void 0 : B.loader, (he = d == null ? void 0 : d.classNames) == null ? void 0 : he.loader), visible: ze === "loading" });
|
|
20119
20119
|
}
|
|
20120
|
-
return I.createElement("li", { tabIndex: 0, ref: nr, className: Ze(C, Xh, B == null ? void 0 : B.toast, (e = d == null ? void 0 : d.classNames) == null ? void 0 : e.toast, B == null ? void 0 : B.default, B == null ? void 0 : B[ze], (r = d == null ? void 0 : d.classNames) == null ? void 0 : r[ze]), "data-sonner-toast": "", "data-rich-colors": (n = d.richColors) != null ? n : k, "data-styled": !(d.jsx || d.unstyled || b), "data-mounted": z, "data-promise": !!d.promise, "data-swiped": ta, "data-removed": Te, "data-visible": Yh, "data-y-position": Zh, "data-x-position": Qh, "data-index": w, "data-front": Gh, "data-swiping": at, "data-dismissible": Tr, "data-type": ze, "data-invert": em, "data-swipe-out": st, "data-swipe-direction": be, "data-expanded": !!(N || M && z), style: { "--index": w, "--toasts-before": w, "--z-index": S.length - w, "--offset": `${Te ? ra : Nr.current}px`, "--initial-height": M ? "auto" : `${Cr}px`, ...
|
|
20120
|
+
return I.createElement("li", { tabIndex: 0, ref: nr, className: Ze(C, Xh, B == null ? void 0 : B.toast, (e = d == null ? void 0 : d.classNames) == null ? void 0 : e.toast, B == null ? void 0 : B.default, B == null ? void 0 : B[ze], (r = d == null ? void 0 : d.classNames) == null ? void 0 : r[ze]), "data-sonner-toast": "", "data-rich-colors": (n = d.richColors) != null ? n : k, "data-styled": !(d.jsx || d.unstyled || b), "data-mounted": z, "data-promise": !!d.promise, "data-swiped": ta, "data-removed": Te, "data-visible": Yh, "data-y-position": Zh, "data-x-position": Qh, "data-index": w, "data-front": Gh, "data-swiping": at, "data-dismissible": Tr, "data-type": ze, "data-invert": em, "data-swipe-out": st, "data-swipe-direction": be, "data-expanded": !!(N || M && z), style: { "--index": w, "--toasts-before": w, "--z-index": S.length - w, "--offset": `${Te ? ra : Nr.current}px`, "--initial-height": M ? "auto" : `${Cr}px`, ...F, ...d.style }, onDragEnd: () => {
|
|
20121
20121
|
Et(!1), H(null), Ar.current = null;
|
|
20122
20122
|
}, onPointerDown: (G) => {
|
|
20123
20123
|
oa || !Tr || (dl.current = /* @__PURE__ */ new Date(), dn(Nr.current), G.target.setPointerCapture(G.pointerId), G.target.tagName !== "BUTTON" && (Et(!0), Ar.current = { x: G.clientX, y: G.clientY }));
|
|
@@ -20142,7 +20142,7 @@ var NN = (t) => {
|
|
|
20142
20142
|
} : () => {
|
|
20143
20143
|
var G;
|
|
20144
20144
|
$t(), (G = d.onDismiss) == null || G.call(d, d);
|
|
20145
|
-
}, className: Ze(B == null ? void 0 : B.closeButton, (o = d == null ? void 0 : d.classNames) == null ? void 0 : o.closeButton) }, (i = U == null ? void 0 : U.close) != null ? i : uN) : null, d.jsx || Oo(d.title) ? d.jsx ? d.jsx : typeof d.title == "function" ? d.title() : d.title : I.createElement(I.Fragment, null, ze || d.icon || d.promise ? I.createElement("div", { "data-icon": "", className: Ze(B == null ? void 0 : B.icon, (a = d == null ? void 0 : d.classNames) == null ? void 0 : a.icon) }, d.promise || d.type === "loading" && !d.icon ? d.icon || tm() : null, d.type !== "loading" ? d.icon || (U == null ? void 0 : U[ze]) || tN(ze) : null) : null, I.createElement("div", { "data-content": "", className: Ze(B == null ? void 0 : B.content, (s = d == null ? void 0 : d.classNames) == null ? void 0 : s.content) }, I.createElement("div", { "data-title": "", className: Ze(B == null ? void 0 : B.title, (u = d == null ? void 0 : d.classNames) == null ? void 0 : u.title) }, typeof d.title == "function" ? d.title() : d.title), d.description ? I.createElement("div", { "data-description": "", className: Ze(D, Kh, B == null ? void 0 : B.description, (l = d == null ? void 0 : d.classNames) == null ? void 0 : l.description) }, typeof d.description == "function" ? d.description() : d.description) : null), Oo(d.cancel) ? d.cancel : d.cancel && Ao(d.cancel) ? I.createElement("button", { "data-button": !0, "data-cancel": !0, style: d.cancelButtonStyle ||
|
|
20145
|
+
}, className: Ze(B == null ? void 0 : B.closeButton, (o = d == null ? void 0 : d.classNames) == null ? void 0 : o.closeButton) }, (i = U == null ? void 0 : U.close) != null ? i : uN) : null, d.jsx || Oo(d.title) ? d.jsx ? d.jsx : typeof d.title == "function" ? d.title() : d.title : I.createElement(I.Fragment, null, ze || d.icon || d.promise ? I.createElement("div", { "data-icon": "", className: Ze(B == null ? void 0 : B.icon, (a = d == null ? void 0 : d.classNames) == null ? void 0 : a.icon) }, d.promise || d.type === "loading" && !d.icon ? d.icon || tm() : null, d.type !== "loading" ? d.icon || (U == null ? void 0 : U[ze]) || tN(ze) : null) : null, I.createElement("div", { "data-content": "", className: Ze(B == null ? void 0 : B.content, (s = d == null ? void 0 : d.classNames) == null ? void 0 : s.content) }, I.createElement("div", { "data-title": "", className: Ze(B == null ? void 0 : B.title, (u = d == null ? void 0 : d.classNames) == null ? void 0 : u.title) }, typeof d.title == "function" ? d.title() : d.title), d.description ? I.createElement("div", { "data-description": "", className: Ze(D, Kh, B == null ? void 0 : B.description, (l = d == null ? void 0 : d.classNames) == null ? void 0 : l.description) }, typeof d.description == "function" ? d.description() : d.description) : null), Oo(d.cancel) ? d.cancel : d.cancel && Ao(d.cancel) ? I.createElement("button", { "data-button": !0, "data-cancel": !0, style: d.cancelButtonStyle || $, onClick: (G) => {
|
|
20146
20146
|
var ae, he;
|
|
20147
20147
|
Ao(d.cancel) && Tr && ((he = (ae = d.cancel).onClick) == null || he.call(ae, G), $t());
|
|
20148
20148
|
}, className: Ze(B == null ? void 0 : B.cancelButton, (c = d == null ? void 0 : d.classNames) == null ? void 0 : c.cancelButton) }, d.cancel.label) : null, Oo(d.action) ? d.action : d.action && Ao(d.action) ? I.createElement("button", { "data-button": !0, "data-action": !0, style: d.actionButtonStyle || E, onClick: (G) => {
|
|
@@ -20170,7 +20170,7 @@ function AN(t, e) {
|
|
|
20170
20170
|
}), r;
|
|
20171
20171
|
}
|
|
20172
20172
|
Ds(function(t, e) {
|
|
20173
|
-
let { invert: r, position: n = "bottom-right", hotkey: o = ["altKey", "KeyT"], expand: i, closeButton: a, className: s, offset: u, mobileOffset: l, theme: c = "light", richColors: p, duration: f, style: d, visibleToasts: b = yN, toastOptions: g, dir: m = Od(), gap: y = SN, loadingIcon: x, icons: w, containerAriaLabel: S = "Notifications", pauseWhenPageIsHidden: N } = t, [R, k] = I.useState([]),
|
|
20173
|
+
let { invert: r, position: n = "bottom-right", hotkey: o = ["altKey", "KeyT"], expand: i, closeButton: a, className: s, offset: u, mobileOffset: l, theme: c = "light", richColors: p, duration: f, style: d, visibleToasts: b = yN, toastOptions: g, dir: m = Od(), gap: y = SN, loadingIcon: x, icons: w, containerAriaLabel: S = "Notifications", pauseWhenPageIsHidden: N } = t, [R, k] = I.useState([]), j = I.useMemo(() => Array.from(new Set([n].concat(R.filter((Q) => Q.position).map((Q) => Q.position)))), [R, n]), [F, $] = I.useState([]), [E, C] = I.useState(!1), [D, L] = I.useState(!1), [T, A] = I.useState(c !== "system" ? c : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), _ = I.useRef(null), M = o.join("+").replace(/Key/g, "").replace(/Digit/g, ""), B = I.useRef(null), U = I.useRef(!1), ne = I.useCallback((Q) => {
|
|
20174
20174
|
k((q) => {
|
|
20175
20175
|
var H;
|
|
20176
20176
|
return (H = q.find((be) => be.id === Q.id)) != null && H.delete || De.dismiss(Q.id), q.filter(({ id: be }) => be !== Q.id);
|
|
@@ -20221,10 +20221,10 @@ Ds(function(t, e) {
|
|
|
20221
20221
|
if (_.current) return () => {
|
|
20222
20222
|
B.current && (B.current.focus({ preventScroll: !0 }), B.current = null, U.current = !1);
|
|
20223
20223
|
};
|
|
20224
|
-
}, [_.current]), I.createElement("section", { ref: e, "aria-label": `${S} ${M}`, tabIndex: -1, "aria-live": "polite", "aria-relevant": "additions text", "aria-atomic": "false", suppressHydrationWarning: !0 },
|
|
20224
|
+
}, [_.current]), I.createElement("section", { ref: e, "aria-label": `${S} ${M}`, tabIndex: -1, "aria-live": "polite", "aria-relevant": "additions text", "aria-atomic": "false", suppressHydrationWarning: !0 }, j.map((Q, q) => {
|
|
20225
20225
|
var H;
|
|
20226
20226
|
let [be, Z] = Q.split("-");
|
|
20227
|
-
return R.length ? I.createElement("ol", { key: Q, dir: m === "auto" ? Od() : m, tabIndex: -1, ref: _, className: s, "data-sonner-toaster": !0, "data-theme": T, "data-y-position": be, "data-lifted": E && R.length > 1 && !i, "data-x-position": Z, style: { "--front-toast-height": `${((H =
|
|
20227
|
+
return R.length ? I.createElement("ol", { key: Q, dir: m === "auto" ? Od() : m, tabIndex: -1, ref: _, className: s, "data-sonner-toaster": !0, "data-theme": T, "data-y-position": be, "data-lifted": E && R.length > 1 && !i, "data-x-position": Z, style: { "--front-toast-height": `${((H = F[0]) == null ? void 0 : H.height) || 0}px`, "--width": `${wN}px`, "--gap": `${y}px`, ...d, ...AN(u, l) }, onBlur: (z) => {
|
|
20228
20228
|
U.current && !z.currentTarget.contains(z.relatedTarget) && (U.current = !1, B.current && (B.current.focus({ preventScroll: !0 }), B.current = null));
|
|
20229
20229
|
}, onFocus: (z) => {
|
|
20230
20230
|
z.target instanceof HTMLElement && z.target.dataset.dismissible === "false" || U.current || (U.current = !0, B.current = z.relatedTarget);
|
|
@@ -20234,7 +20234,7 @@ Ds(function(t, e) {
|
|
|
20234
20234
|
z.target instanceof HTMLElement && z.target.dataset.dismissible === "false" || L(!0);
|
|
20235
20235
|
}, onPointerUp: () => L(!1) }, R.filter((z) => !z.position && q === 0 || z.position === Q).map((z, Ie) => {
|
|
20236
20236
|
var Te, Se;
|
|
20237
|
-
return I.createElement(NN, { key: z.id, icons: w, index: Ie, toast: z, defaultRichColors: p, duration: (Te = g == null ? void 0 : g.duration) != null ? Te : f, className: g == null ? void 0 : g.className, descriptionClassName: g == null ? void 0 : g.descriptionClassName, invert: r, visibleToasts: b, closeButton: (Se = g == null ? void 0 : g.closeButton) != null ? Se : a, interacting: D, position: Q, style: g == null ? void 0 : g.style, unstyled: g == null ? void 0 : g.unstyled, classNames: g == null ? void 0 : g.classNames, cancelButtonStyle: g == null ? void 0 : g.cancelButtonStyle, actionButtonStyle: g == null ? void 0 : g.actionButtonStyle, removeToast: ne, toasts: R.filter((at) => at.position == z.position), heights:
|
|
20237
|
+
return I.createElement(NN, { key: z.id, icons: w, index: Ie, toast: z, defaultRichColors: p, duration: (Te = g == null ? void 0 : g.duration) != null ? Te : f, className: g == null ? void 0 : g.className, descriptionClassName: g == null ? void 0 : g.descriptionClassName, invert: r, visibleToasts: b, closeButton: (Se = g == null ? void 0 : g.closeButton) != null ? Se : a, interacting: D, position: Q, style: g == null ? void 0 : g.style, unstyled: g == null ? void 0 : g.unstyled, classNames: g == null ? void 0 : g.classNames, cancelButtonStyle: g == null ? void 0 : g.cancelButtonStyle, actionButtonStyle: g == null ? void 0 : g.actionButtonStyle, removeToast: ne, toasts: R.filter((at) => at.position == z.position), heights: F.filter((at) => at.position == z.position), setHeights: $, expandByDefault: i, gap: y, loadingIcon: x, expanded: E, pauseWhenPageIsHidden: N, swipeDirections: t.swipeDirections });
|
|
20238
20238
|
})) : null;
|
|
20239
20239
|
}));
|
|
20240
20240
|
});
|