@qratilabs/qrati-connect 1.0.0-beta.39 → 1.0.0-beta.40
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/{B4MFY5CR-ChsDd0Vg.mjs → B4MFY5CR-BpSyeUus.mjs} +1 -1
- package/CHANGELOG.md +7 -0
- package/{ContentsPage-yq4VM0JC.mjs → ContentsPage-Dvorqamo.mjs} +81 -81
- package/{HO4MOOFI-DmlB-WSe.mjs → HO4MOOFI-B_3lPIT9.mjs} +2 -2
- package/{HUY7CZI3-BRKaft4z.mjs → HUY7CZI3-K4SR9hGd.mjs} +2 -2
- package/{LazyLoadImage-7Yw2ZlQl.mjs → LazyLoadImage-DYJ9-G_v.mjs} +1 -1
- package/{LeaderboardPage-DEKd1qfk.mjs → LeaderboardPage-CB0V3N_f.mjs} +1 -1
- package/{PublicEvents-BebBZHN4.mjs → PublicEvents-C91gF4sa.mjs} +2 -2
- package/{RatePage-C0KERUDR.mjs → RatePage-_jVukl09.mjs} +4 -4
- package/{UploadPage-D003MdC9.mjs → UploadPage-Bu4iFSPx.mjs} +2 -2
- package/{VideoPlayer-8gtYXt9C.mjs → VideoPlayer-B8WZWOE9.mjs} +1 -1
- package/{dotlottie-state-machine-manager-2E7RUGJG-hx1J7yRj.mjs → dotlottie-state-machine-manager-2E7RUGJG-9vbBkPkn.mjs} +1 -1
- package/{index-BvE0PGIG.mjs → index-CpKPtItc.mjs} +3 -3
- package/index.es.js +1 -1
- package/index.umd.js +1 -1
- package/package.json +1 -1
- package/{photoswipe-ouAvf5MD.mjs → photoswipe-BgrzgqUW.mjs} +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var vs = Object.defineProperty;
|
|
2
2
|
var ps = (e, t, n) => t in e ? vs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var _e = (e, t, n) => ps(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { O as xe, P as z, T as Tt, U, M as D, N as b, V as qo, W as B, X as _, Y as k, Z as V, $ as T, a0 as ws, a1 as rr, a2 as $e, a3 as j, a4 as Vn, a5 as Gn, a6 as ct, a7 as A, a8 as xs, a9 as ln, aa as Ne, ab as $s, ac as _t, ad as zt, ae as Cs, af as Ss, ag as xn, ah as ks, ai as Kr, aj as Kt, ak as Ro, al as Es, am as Ds, an as W, ao as Br, ap as Ms, aq as As, ar as or, as as Ts, at as Fs, au as Rn, av as Is, aw as Ps, ax as oe, ay as Os, az as Ls } from "./index-
|
|
4
|
+
import { O as xe, P as z, T as Tt, U, M as D, N as b, V as qo, W as B, X as _, Y as k, Z as V, $ as T, a0 as ws, a1 as rr, a2 as $e, a3 as j, a4 as Vn, a5 as Gn, a6 as ct, a7 as A, a8 as xs, a9 as ln, aa as Ne, ab as $s, ac as _t, ad as zt, ae as Cs, af as Ss, ag as xn, ah as ks, ai as Kr, aj as Kt, ak as Ro, al as Es, am as Ds, an as W, ao as Br, ap as Ms, aq as As, ar as or, as as Ts, at as Fs, au as Rn, av as Is, aw as Ps, ax as oe, ay as Os, az as Ls } from "./index-CpKPtItc.mjs";
|
|
5
5
|
var _s = (e) => e != null, qs = (e) => e.filter(_s);
|
|
6
6
|
function Rs(e) {
|
|
7
7
|
return (...t) => {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [1.0.0-beta.39](https://github.com/qrati-labs/qrati-connect-js/compare/v1.0.0-beta.38...v1.0.0-beta.39) (2025-02-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **Button, EventHeader:** update button variants for improved styling based on route ([1327ed3](https://github.com/qrati-labs/qrati-connect-js/commit/1327ed3735a3526bc2127fe5a0f1e7a762e0e63e))
|
|
7
|
+
|
|
1
8
|
# [1.0.0-beta.38](https://github.com/qrati-labs/qrati-connect-js/compare/v1.0.0-beta.37...v1.0.0-beta.38) (2025-02-18)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Q as zi, i as Kt, h as $i, b as Hi, d as Ui, j as y, c as fe, e as Vi, C as Zt, f as Ke, g as Wi, D as gt, S as Fe, l as Sn, m as W, L as Yi, n as Pn, o as ce, _ as te, p as Cn, q as Gi, r as Ki, s as Zi, u as St, k as An, t as Xi, G as ot, v as Qi, w as Ji, x as er, E as tr, y as nr } from "./index-
|
|
1
|
+
import { Q as zi, i as Kt, h as $i, b as Hi, d as Ui, j as y, c as fe, e as Vi, C as Zt, f as Ke, g as Wi, D as gt, S as Fe, l as Sn, m as W, L as Yi, n as Pn, o as ce, _ as te, p as Cn, q as Gi, r as Ki, s as Zi, u as St, k as An, t as Xi, G as ot, v as Qi, w as Ji, x as er, E as tr, y as nr } from "./index-CpKPtItc.mjs";
|
|
2
2
|
import * as m from "react";
|
|
3
3
|
import je, { useMemo as re, useReducer as ir, useRef as Pt, useCallback as rr, forwardRef as Te, createElement as sr, Fragment as or, useLayoutEffect as ar, useEffect as Rn, useState as Ze, Component as lr } from "react";
|
|
4
|
-
import { L as cr } from "./LazyLoadImage-
|
|
4
|
+
import { L as cr } from "./LazyLoadImage-DYJ9-G_v.mjs";
|
|
5
5
|
import * as _n from "react-dom";
|
|
6
6
|
import ur from "react-dom";
|
|
7
7
|
var dr = class extends zi {
|
|
@@ -323,8 +323,8 @@ function _r({
|
|
|
323
323
|
variables: { trackSize: R, ...S }
|
|
324
324
|
},
|
|
325
325
|
P.map((O) => {
|
|
326
|
-
const { photo: I, index:
|
|
327
|
-
r({ event: Z, photo: I, index:
|
|
326
|
+
const { photo: I, index: N, width: L } = O, { key: F, src: k, alt: M, title: C, label: D } = I, j = r ? (Z) => {
|
|
327
|
+
r({ event: Z, photo: I, index: N });
|
|
328
328
|
} : void 0;
|
|
329
329
|
if (a) {
|
|
330
330
|
const Z = a({ onClick: j }, O);
|
|
@@ -341,7 +341,7 @@ function _r({
|
|
|
341
341
|
loading: "lazy",
|
|
342
342
|
decoding: "async",
|
|
343
343
|
src: k,
|
|
344
|
-
alt:
|
|
344
|
+
alt: M,
|
|
345
345
|
title: C,
|
|
346
346
|
...Pr(I, e, L, E, _, v, w),
|
|
347
347
|
...ne(g, O)
|
|
@@ -416,7 +416,7 @@ function kr(t) {
|
|
|
416
416
|
return o(1), l;
|
|
417
417
|
}, size: () => e };
|
|
418
418
|
}
|
|
419
|
-
function
|
|
419
|
+
function Nr(t, e, n) {
|
|
420
420
|
const i = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Map();
|
|
421
421
|
s.set(e, 0);
|
|
422
422
|
const o = kr(Lr((a) => a[1]));
|
|
@@ -432,7 +432,7 @@ function Mr(t, e, n) {
|
|
|
432
432
|
}
|
|
433
433
|
return s.has(n) ? i : void 0;
|
|
434
434
|
}
|
|
435
|
-
function
|
|
435
|
+
function Mr(t, e) {
|
|
436
436
|
if (!t) return;
|
|
437
437
|
const n = [];
|
|
438
438
|
for (let i = e; i !== void 0; i = t.get(i))
|
|
@@ -440,7 +440,7 @@ function Nr(t, e) {
|
|
|
440
440
|
return n.reverse();
|
|
441
441
|
}
|
|
442
442
|
function Ir(t, e, n) {
|
|
443
|
-
return Nr(
|
|
443
|
+
return Mr(Nr(t, e, n), n);
|
|
444
444
|
}
|
|
445
445
|
function Dr(t, e, n, i) {
|
|
446
446
|
return Le(e / n / Math.min(...t.map((r) => H(r)))) + (i || 0) + 2;
|
|
@@ -591,7 +591,7 @@ function Yr(t, e, n, i, r, s) {
|
|
|
591
591
|
}
|
|
592
592
|
return Xt(l, t, e, n, i, o, a);
|
|
593
593
|
}
|
|
594
|
-
function
|
|
594
|
+
function Nn(t, e, n, i, r) {
|
|
595
595
|
const s = (i - e * (r - 1) - 2 * n * r) / r, { tracks: o, variables: a } = Yr(
|
|
596
596
|
t,
|
|
597
597
|
e,
|
|
@@ -600,11 +600,11 @@ function Mn(t, e, n, i, r) {
|
|
|
600
600
|
s,
|
|
601
601
|
r
|
|
602
602
|
);
|
|
603
|
-
return o.some((d) => d.photos.some(({ width: c, height: l }) => c < 0 || l < 0)) ? r > 1 ?
|
|
603
|
+
return o.some((d) => d.photos.some(({ width: c, height: l }) => c < 0 || l < 0)) ? r > 1 ? Nn(t, e, n, i, r - 1) : void 0 : { tracks: o, spacing: e, padding: n, containerWidth: i, variables: { columns: r, ...a } };
|
|
604
604
|
}
|
|
605
605
|
function Gr({ photos: t, breakpoints: e, defaultContainerWidth: n, ...i }, r) {
|
|
606
606
|
const { containerRef: s, containerWidth: o } = Ct(r, e, n), { spacing: a, padding: d, columns: c, ...l } = $r(o, { photos: t, ...i }), u = re(
|
|
607
|
-
() => o !== void 0 && a !== void 0 && d !== void 0 && c !== void 0 ?
|
|
607
|
+
() => o !== void 0 && a !== void 0 && d !== void 0 && c !== void 0 ? Nn(t, a, d, o, c) : void 0,
|
|
608
608
|
[t, a, d, o, c]
|
|
609
609
|
);
|
|
610
610
|
return y.jsx(Rt, { layout: "columns", ref: s, model: u, ...l });
|
|
@@ -617,10 +617,10 @@ function Zr(t, { columns: e, ...n }) {
|
|
|
617
617
|
columns: Oe(e, t, [5, 4, 3, 2], 1)
|
|
618
618
|
};
|
|
619
619
|
}
|
|
620
|
-
function
|
|
620
|
+
function Mn(t, e, n, i, r) {
|
|
621
621
|
const s = (i - e * (r - 1) - 2 * n * r) / r;
|
|
622
622
|
if (s <= 0)
|
|
623
|
-
return r > 1 ?
|
|
623
|
+
return r > 1 ? Mn(t, e, n, i, r - 1) : void 0;
|
|
624
624
|
const o = [];
|
|
625
625
|
for (let d = 0; d < r; d += 1)
|
|
626
626
|
o[d] = 0;
|
|
@@ -651,7 +651,7 @@ function Nn(t, e, n, i, r) {
|
|
|
651
651
|
}
|
|
652
652
|
function Xr({ photos: t, breakpoints: e, defaultContainerWidth: n, ...i }, r) {
|
|
653
653
|
const { containerRef: s, containerWidth: o } = Ct(r, e, n), { spacing: a, padding: d, columns: c, ...l } = Zr(o, { photos: t, ...i }), u = re(
|
|
654
|
-
() => o !== void 0 && a !== void 0 && d !== void 0 && c !== void 0 ?
|
|
654
|
+
() => o !== void 0 && a !== void 0 && d !== void 0 && c !== void 0 ? Mn(t, a, d, o, c) : void 0,
|
|
655
655
|
[t, a, d, o, c]
|
|
656
656
|
);
|
|
657
657
|
return y.jsx(Rt, { layout: "masonry", ref: s, model: u, ...l });
|
|
@@ -2111,7 +2111,7 @@ function rn() {
|
|
|
2111
2111
|
const t = document.createElement("span");
|
|
2112
2112
|
return t.setAttribute("data-radix-focus-guard", ""), t.tabIndex = 0, t.style.outline = "none", t.style.opacity = "0", t.style.position = "fixed", t.style.pointerEvents = "none", t;
|
|
2113
2113
|
}
|
|
2114
|
-
var lt = "focusScope.autoFocusOnMount", ct = "focusScope.autoFocusOnUnmount", sn = { bubbles: !1, cancelable: !0 },
|
|
2114
|
+
var lt = "focusScope.autoFocusOnMount", ct = "focusScope.autoFocusOnUnmount", sn = { bubbles: !1, cancelable: !0 }, Ns = "FocusScope", $n = m.forwardRef((t, e) => {
|
|
2115
2115
|
const {
|
|
2116
2116
|
loop: n = !1,
|
|
2117
2117
|
trapped: i = !1,
|
|
@@ -2154,7 +2154,7 @@ var lt = "focusScope.autoFocusOnMount", ct = "focusScope.autoFocusOnUnmount", sn
|
|
|
2154
2154
|
const p = document.activeElement;
|
|
2155
2155
|
if (!a.contains(p)) {
|
|
2156
2156
|
const w = new CustomEvent(lt, sn);
|
|
2157
|
-
a.addEventListener(lt, c), a.dispatchEvent(w), w.defaultPrevented || (
|
|
2157
|
+
a.addEventListener(lt, c), a.dispatchEvent(w), w.defaultPrevented || (Ms(qs(Hn(a)), { select: !0 }), document.activeElement === p && ee(a));
|
|
2158
2158
|
}
|
|
2159
2159
|
return () => {
|
|
2160
2160
|
a.removeEventListener(lt, c), setTimeout(() => {
|
|
@@ -2177,8 +2177,8 @@ var lt = "focusScope.autoFocusOnMount", ct = "focusScope.autoFocusOnUnmount", sn
|
|
|
2177
2177
|
);
|
|
2178
2178
|
return /* @__PURE__ */ y.jsx(J.div, { tabIndex: -1, ...o, ref: f, onKeyDown: g });
|
|
2179
2179
|
});
|
|
2180
|
-
$n.displayName =
|
|
2181
|
-
function
|
|
2180
|
+
$n.displayName = Ns;
|
|
2181
|
+
function Ms(t, { select: e = !1 } = {}) {
|
|
2182
2182
|
const n = document.activeElement;
|
|
2183
2183
|
for (const i of t)
|
|
2184
2184
|
if (ee(i, { select: e }), document.activeElement !== n) return;
|
|
@@ -2532,14 +2532,14 @@ const Qs = (t) => ({
|
|
|
2532
2532
|
}, h = kt(r), g = Lt(h), p = await o.getDimensions(c), v = h === "y", w = v ? "top" : "left", E = v ? "bottom" : "right", x = v ? "clientHeight" : "clientWidth", b = s.reference[g] + s.reference[h] - f[h] - s.floating[g], T = f[h] - s.reference[h], P = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(c));
|
|
2533
2533
|
let S = P ? P[x] : 0;
|
|
2534
2534
|
(!S || !await (o.isElement == null ? void 0 : o.isElement(P))) && (S = a.floating[x] || s.floating[g]);
|
|
2535
|
-
const A = b / 2 - T / 2, R = S / 2 - p[g] / 2 - 1, _ = oe(u[w], R), O = oe(u[E], R), I = _,
|
|
2535
|
+
const A = b / 2 - T / 2, R = S / 2 - p[g] / 2 - 1, _ = oe(u[w], R), O = oe(u[E], R), I = _, N = S - p[g] - O, L = S / 2 - p[g] / 2 + A, F = wt(I, L, N), k = !d.arrow && Se(r) != null && L !== F && s.reference[g] / 2 - (L < I ? _ : O) - p[g] / 2 < 0, M = k ? L < I ? L - I : L - N : 0;
|
|
2536
2536
|
return {
|
|
2537
|
-
[h]: f[h] +
|
|
2537
|
+
[h]: f[h] + M,
|
|
2538
2538
|
data: {
|
|
2539
2539
|
[h]: F,
|
|
2540
|
-
centerOffset: L - F -
|
|
2540
|
+
centerOffset: L - F - M,
|
|
2541
2541
|
...k && {
|
|
2542
|
-
alignmentOffset:
|
|
2542
|
+
alignmentOffset: M
|
|
2543
2543
|
}
|
|
2544
2544
|
},
|
|
2545
2545
|
reset: k
|
|
@@ -2593,12 +2593,12 @@ const Qs = (t) => ({
|
|
|
2593
2593
|
placement: F
|
|
2594
2594
|
}
|
|
2595
2595
|
};
|
|
2596
|
-
let k = (I = _.filter((
|
|
2596
|
+
let k = (I = _.filter((M) => M.overflows[0] <= 0).sort((M, C) => M.overflows[1] - C.overflows[1])[0]) == null ? void 0 : I.placement;
|
|
2597
2597
|
if (!k)
|
|
2598
2598
|
switch (h) {
|
|
2599
2599
|
case "bestFit": {
|
|
2600
|
-
var
|
|
2601
|
-
const
|
|
2600
|
+
var N;
|
|
2601
|
+
const M = (N = _.filter((C) => {
|
|
2602
2602
|
if (P) {
|
|
2603
2603
|
const D = ae(C.placement);
|
|
2604
2604
|
return D === E || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -2606,8 +2606,8 @@ const Qs = (t) => ({
|
|
|
2606
2606
|
D === "y";
|
|
2607
2607
|
}
|
|
2608
2608
|
return !0;
|
|
2609
|
-
}).map((C) => [C.placement, C.overflows.filter((D) => D > 0).reduce((D, j) => D + j, 0)]).sort((C, D) => C[1] - D[1])[0]) == null ? void 0 :
|
|
2610
|
-
|
|
2609
|
+
}).map((C) => [C.placement, C.overflows.filter((D) => D > 0).reduce((D, j) => D + j, 0)]).sort((C, D) => C[1] - D[1])[0]) == null ? void 0 : N[0];
|
|
2610
|
+
M && (k = M);
|
|
2611
2611
|
break;
|
|
2612
2612
|
}
|
|
2613
2613
|
case "initialPlacement":
|
|
@@ -2849,8 +2849,8 @@ const no = function(t) {
|
|
|
2849
2849
|
const E = p - l.top - l.bottom, x = g - l.left - l.right, b = oe(p - l[v], E), T = oe(g - l[w], x), P = !e.middlewareData.shift;
|
|
2850
2850
|
let S = b, A = T;
|
|
2851
2851
|
if ((n = e.middlewareData.shift) != null && n.enabled.x && (A = x), (i = e.middlewareData.shift) != null && i.enabled.y && (S = E), P && !f) {
|
|
2852
|
-
const _ = q(l.left, 0), O = q(l.right, 0), I = q(l.top, 0),
|
|
2853
|
-
h ? A = g - 2 * (_ !== 0 || O !== 0 ? _ + O : q(l.left, l.right)) : S = p - 2 * (I !== 0 ||
|
|
2852
|
+
const _ = q(l.left, 0), O = q(l.right, 0), I = q(l.top, 0), N = q(l.bottom, 0);
|
|
2853
|
+
h ? A = g - 2 * (_ !== 0 || O !== 0 ? _ + O : q(l.left, l.right)) : S = p - 2 * (I !== 0 || N !== 0 ? I + N : q(l.top, l.bottom));
|
|
2854
2854
|
}
|
|
2855
2855
|
await d({
|
|
2856
2856
|
...e,
|
|
@@ -2892,7 +2892,7 @@ function G(t) {
|
|
|
2892
2892
|
function fn(t) {
|
|
2893
2893
|
return !nt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof B(t).ShadowRoot;
|
|
2894
2894
|
}
|
|
2895
|
-
function
|
|
2895
|
+
function Me(t) {
|
|
2896
2896
|
const {
|
|
2897
2897
|
overflow: e,
|
|
2898
2898
|
overflowX: n,
|
|
@@ -2913,14 +2913,14 @@ function it(t) {
|
|
|
2913
2913
|
}
|
|
2914
2914
|
});
|
|
2915
2915
|
}
|
|
2916
|
-
function
|
|
2917
|
-
const e =
|
|
2916
|
+
function Nt(t) {
|
|
2917
|
+
const e = Mt(), n = U(t) ? V(t) : t;
|
|
2918
2918
|
return ["transform", "translate", "scale", "rotate", "perspective"].some((i) => n[i] ? n[i] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((i) => (n.willChange || "").includes(i)) || ["paint", "layout", "strict", "content"].some((i) => (n.contain || "").includes(i));
|
|
2919
2919
|
}
|
|
2920
2920
|
function ao(t) {
|
|
2921
2921
|
let e = le(t);
|
|
2922
2922
|
for (; G(e) && !xe(e); ) {
|
|
2923
|
-
if (
|
|
2923
|
+
if (Nt(e))
|
|
2924
2924
|
return e;
|
|
2925
2925
|
if (it(e))
|
|
2926
2926
|
return null;
|
|
@@ -2928,7 +2928,7 @@ function ao(t) {
|
|
|
2928
2928
|
}
|
|
2929
2929
|
return null;
|
|
2930
2930
|
}
|
|
2931
|
-
function
|
|
2931
|
+
function Mt() {
|
|
2932
2932
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
2933
2933
|
}
|
|
2934
2934
|
function xe(t) {
|
|
@@ -2960,17 +2960,17 @@ function le(t) {
|
|
|
2960
2960
|
}
|
|
2961
2961
|
function Wn(t) {
|
|
2962
2962
|
const e = le(t);
|
|
2963
|
-
return xe(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : G(e) &&
|
|
2963
|
+
return xe(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : G(e) && Me(e) ? e : Wn(e);
|
|
2964
2964
|
}
|
|
2965
|
-
function
|
|
2965
|
+
function Ne(t, e, n) {
|
|
2966
2966
|
var i;
|
|
2967
2967
|
e === void 0 && (e = []), n === void 0 && (n = !0);
|
|
2968
2968
|
const r = Wn(t), s = r === ((i = t.ownerDocument) == null ? void 0 : i.body), o = B(r);
|
|
2969
2969
|
if (s) {
|
|
2970
2970
|
const a = xt(o);
|
|
2971
|
-
return e.concat(o, o.visualViewport || [],
|
|
2971
|
+
return e.concat(o, o.visualViewport || [], Me(r) ? r : [], a && n ? Ne(a) : []);
|
|
2972
2972
|
}
|
|
2973
|
-
return e.concat(r,
|
|
2973
|
+
return e.concat(r, Ne(r, [], n));
|
|
2974
2974
|
}
|
|
2975
2975
|
function xt(t) {
|
|
2976
2976
|
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
@@ -3006,7 +3006,7 @@ function ye(t) {
|
|
|
3006
3006
|
const lo = /* @__PURE__ */ Y(0);
|
|
3007
3007
|
function Gn(t) {
|
|
3008
3008
|
const e = B(t);
|
|
3009
|
-
return !
|
|
3009
|
+
return !Mt() || !e.visualViewport ? lo : {
|
|
3010
3010
|
x: e.visualViewport.offsetLeft,
|
|
3011
3011
|
y: e.visualViewport.offsetTop
|
|
3012
3012
|
};
|
|
@@ -3066,7 +3066,7 @@ function uo(t) {
|
|
|
3066
3066
|
scrollTop: 0
|
|
3067
3067
|
}, c = Y(1);
|
|
3068
3068
|
const l = Y(0), u = G(i);
|
|
3069
|
-
if ((u || !u && !s) && ((Pe(i) !== "body" ||
|
|
3069
|
+
if ((u || !u && !s) && ((Pe(i) !== "body" || Me(o)) && (d = rt(i)), G(i))) {
|
|
3070
3070
|
const h = pe(i);
|
|
3071
3071
|
c = ye(i), l.x = h.x + i.clientLeft, l.y = h.y + i.clientTop;
|
|
3072
3072
|
}
|
|
@@ -3097,7 +3097,7 @@ function po(t, e) {
|
|
|
3097
3097
|
let s = i.clientWidth, o = i.clientHeight, a = 0, d = 0;
|
|
3098
3098
|
if (r) {
|
|
3099
3099
|
s = r.width, o = r.height;
|
|
3100
|
-
const c =
|
|
3100
|
+
const c = Mt();
|
|
3101
3101
|
(!c || c && e === "fixed") && (a = r.offsetLeft, d = r.offsetTop);
|
|
3102
3102
|
}
|
|
3103
3103
|
return {
|
|
@@ -3143,12 +3143,12 @@ function go(t, e) {
|
|
|
3143
3143
|
const n = e.get(t);
|
|
3144
3144
|
if (n)
|
|
3145
3145
|
return n;
|
|
3146
|
-
let i =
|
|
3146
|
+
let i = Ne(t, [], !1).filter((a) => U(a) && Pe(a) !== "body"), r = null;
|
|
3147
3147
|
const s = V(t).position === "fixed";
|
|
3148
3148
|
let o = s ? le(t) : t;
|
|
3149
3149
|
for (; U(o) && !xe(o); ) {
|
|
3150
|
-
const a = V(o), d =
|
|
3151
|
-
!d && a.position === "fixed" && (r = null), (s ? !d && !r : !d && a.position === "static" && !!r && ["absolute", "fixed"].includes(r.position) ||
|
|
3150
|
+
const a = V(o), d = Nt(o);
|
|
3151
|
+
!d && a.position === "fixed" && (r = null), (s ? !d && !r : !d && a.position === "static" && !!r && ["absolute", "fixed"].includes(r.position) || Me(o) && !d && Zn(t, o)) ? i = i.filter((l) => l !== o) : r = a, o = le(o);
|
|
3152
3152
|
}
|
|
3153
3153
|
return e.set(t, i), i;
|
|
3154
3154
|
}
|
|
@@ -3188,7 +3188,7 @@ function wo(t, e, n) {
|
|
|
3188
3188
|
};
|
|
3189
3189
|
const d = Y(0);
|
|
3190
3190
|
if (i || !i && !s)
|
|
3191
|
-
if ((Pe(e) !== "body" ||
|
|
3191
|
+
if ((Pe(e) !== "body" || Me(r)) && (a = rt(e)), i) {
|
|
3192
3192
|
const f = pe(e, !0, s, e);
|
|
3193
3193
|
d.x = f.x + e.clientLeft, d.y = f.y + e.clientTop;
|
|
3194
3194
|
} else r && (d.x = Dt(r));
|
|
@@ -3227,7 +3227,7 @@ function Xn(t, e) {
|
|
|
3227
3227
|
let i = pn(t, e);
|
|
3228
3228
|
for (; i && oo(i) && ut(i); )
|
|
3229
3229
|
i = pn(i, e);
|
|
3230
|
-
return i && xe(i) && ut(i) && !
|
|
3230
|
+
return i && xe(i) && ut(i) && !Nt(i) ? n : i || ao(t) || n;
|
|
3231
3231
|
}
|
|
3232
3232
|
const bo = async function(t) {
|
|
3233
3233
|
const e = this.getOffsetParent || Xn, n = this.getDimensions, i = await n(t.floating);
|
|
@@ -3313,7 +3313,7 @@ function So(t, e, n, i) {
|
|
|
3313
3313
|
elementResize: o = typeof ResizeObserver == "function",
|
|
3314
3314
|
layoutShift: a = typeof IntersectionObserver == "function",
|
|
3315
3315
|
animationFrame: d = !1
|
|
3316
|
-
} = i, c = It(t), l = r || s ? [...c ?
|
|
3316
|
+
} = i, c = It(t), l = r || s ? [...c ? Ne(c) : [], ...Ne(e)] : [];
|
|
3317
3317
|
l.forEach((w) => {
|
|
3318
3318
|
r && w.addEventListener("scroll", n, {
|
|
3319
3319
|
passive: !0
|
|
@@ -3425,7 +3425,7 @@ function ko(t) {
|
|
|
3425
3425
|
C !== P.current && (P.current = C, p(C));
|
|
3426
3426
|
}, []), x = m.useCallback((C) => {
|
|
3427
3427
|
C !== S.current && (S.current = C, w(C));
|
|
3428
|
-
}, []), b = s || g, T = o || v, P = m.useRef(null), S = m.useRef(null), A = m.useRef(l), R = d != null, _ = dt(d), O = dt(r), I = dt(c),
|
|
3428
|
+
}, []), b = s || g, T = o || v, P = m.useRef(null), S = m.useRef(null), A = m.useRef(l), R = d != null, _ = dt(d), O = dt(r), I = dt(c), N = m.useCallback(() => {
|
|
3429
3429
|
if (!P.current || !S.current)
|
|
3430
3430
|
return;
|
|
3431
3431
|
const C = {
|
|
@@ -3459,10 +3459,10 @@ function ko(t) {
|
|
|
3459
3459
|
}), []), We(() => {
|
|
3460
3460
|
if (b && (P.current = b), T && (S.current = T), b && T) {
|
|
3461
3461
|
if (_.current)
|
|
3462
|
-
return _.current(b, T,
|
|
3463
|
-
|
|
3462
|
+
return _.current(b, T, N);
|
|
3463
|
+
N();
|
|
3464
3464
|
}
|
|
3465
|
-
}, [b, T,
|
|
3465
|
+
}, [b, T, N, _, R]);
|
|
3466
3466
|
const F = m.useMemo(() => ({
|
|
3467
3467
|
reference: P,
|
|
3468
3468
|
floating: S,
|
|
@@ -3471,7 +3471,7 @@ function ko(t) {
|
|
|
3471
3471
|
}), [E, x]), k = m.useMemo(() => ({
|
|
3472
3472
|
reference: b,
|
|
3473
3473
|
floating: T
|
|
3474
|
-
}), [b, T]),
|
|
3474
|
+
}), [b, T]), M = m.useMemo(() => {
|
|
3475
3475
|
const C = {
|
|
3476
3476
|
position: n,
|
|
3477
3477
|
left: 0,
|
|
@@ -3494,13 +3494,13 @@ function ko(t) {
|
|
|
3494
3494
|
}, [n, a, k.floating, l.x, l.y]);
|
|
3495
3495
|
return m.useMemo(() => ({
|
|
3496
3496
|
...l,
|
|
3497
|
-
update:
|
|
3497
|
+
update: N,
|
|
3498
3498
|
refs: F,
|
|
3499
3499
|
elements: k,
|
|
3500
|
-
floatingStyles:
|
|
3501
|
-
}), [l,
|
|
3500
|
+
floatingStyles: M
|
|
3501
|
+
}), [l, N, F, k, M]);
|
|
3502
3502
|
}
|
|
3503
|
-
const
|
|
3503
|
+
const No = (t) => {
|
|
3504
3504
|
function e(n) {
|
|
3505
3505
|
return {}.hasOwnProperty.call(n, "current");
|
|
3506
3506
|
}
|
|
@@ -3521,7 +3521,7 @@ const Mo = (t) => {
|
|
|
3521
3521
|
}).fn(n) : {};
|
|
3522
3522
|
}
|
|
3523
3523
|
};
|
|
3524
|
-
},
|
|
3524
|
+
}, Mo = (t, e) => ({
|
|
3525
3525
|
...Po(t),
|
|
3526
3526
|
options: [t, e]
|
|
3527
3527
|
}), Io = (t, e) => ({
|
|
@@ -3540,7 +3540,7 @@ const Mo = (t) => {
|
|
|
3540
3540
|
..._o(t),
|
|
3541
3541
|
options: [t, e]
|
|
3542
3542
|
}), Bo = (t, e) => ({
|
|
3543
|
-
...
|
|
3543
|
+
...No(t),
|
|
3544
3544
|
options: [t, e]
|
|
3545
3545
|
});
|
|
3546
3546
|
var zo = "Arrow", ei = m.forwardRef((t, e) => {
|
|
@@ -3614,12 +3614,12 @@ var jt = "PopperContent", [Vo, Wo] = ti(jt), ai = m.forwardRef(
|
|
|
3614
3614
|
updatePositionStrategy: h = "optimized",
|
|
3615
3615
|
onPlaced: g,
|
|
3616
3616
|
...p
|
|
3617
|
-
} = t, v = ii(jt, n), [w, E] = m.useState(null), x = ce(e, (Ce) => E(Ce)), [b, T] = m.useState(null), P = Ho(b), S = (P == null ? void 0 : P.width) ?? 0, A = (P == null ? void 0 : P.height) ?? 0, R = i + (s !== "center" ? "-" + s : ""), _ = typeof l == "number" ? l : { top: 0, right: 0, bottom: 0, left: 0, ...l }, O = Array.isArray(c) ? c : [c], I = O.length > 0,
|
|
3617
|
+
} = t, v = ii(jt, n), [w, E] = m.useState(null), x = ce(e, (Ce) => E(Ce)), [b, T] = m.useState(null), P = Ho(b), S = (P == null ? void 0 : P.width) ?? 0, A = (P == null ? void 0 : P.height) ?? 0, R = i + (s !== "center" ? "-" + s : ""), _ = typeof l == "number" ? l : { top: 0, right: 0, bottom: 0, left: 0, ...l }, O = Array.isArray(c) ? c : [c], I = O.length > 0, N = {
|
|
3618
3618
|
padding: _,
|
|
3619
3619
|
boundary: O.filter(Go),
|
|
3620
3620
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
3621
3621
|
altBoundary: I
|
|
3622
|
-
}, { refs: L, floatingStyles: F, placement: k, isPositioned:
|
|
3622
|
+
}, { refs: L, floatingStyles: F, placement: k, isPositioned: M, middlewareData: C } = ko({
|
|
3623
3623
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
3624
3624
|
strategy: "fixed",
|
|
3625
3625
|
placement: R,
|
|
@@ -3630,16 +3630,16 @@ var jt = "PopperContent", [Vo, Wo] = ti(jt), ai = m.forwardRef(
|
|
|
3630
3630
|
reference: v.anchor
|
|
3631
3631
|
},
|
|
3632
3632
|
middleware: [
|
|
3633
|
-
|
|
3633
|
+
Mo({ mainAxis: r + A, alignmentAxis: o }),
|
|
3634
3634
|
d && Io({
|
|
3635
3635
|
mainAxis: !0,
|
|
3636
3636
|
crossAxis: !1,
|
|
3637
3637
|
limiter: u === "partial" ? Do() : void 0,
|
|
3638
|
-
...
|
|
3638
|
+
...N
|
|
3639
3639
|
}),
|
|
3640
|
-
d && Fo({ ...
|
|
3640
|
+
d && Fo({ ...N }),
|
|
3641
3641
|
jo({
|
|
3642
|
-
...
|
|
3642
|
+
...N,
|
|
3643
3643
|
apply: ({ elements: Ce, rects: Gt, availableWidth: Fi, availableHeight: ji }) => {
|
|
3644
3644
|
const { width: qi, height: Bi } = Gt.reference, De = Ce.floating.style;
|
|
3645
3645
|
De.setProperty("--radix-popper-available-width", `${Fi}px`), De.setProperty("--radix-popper-available-height", `${ji}px`), De.setProperty("--radix-popper-anchor-width", `${qi}px`), De.setProperty("--radix-popper-anchor-height", `${Bi}px`);
|
|
@@ -3647,13 +3647,13 @@ var jt = "PopperContent", [Vo, Wo] = ti(jt), ai = m.forwardRef(
|
|
|
3647
3647
|
}),
|
|
3648
3648
|
b && Bo({ element: b, padding: a }),
|
|
3649
3649
|
Ko({ arrowWidth: S, arrowHeight: A }),
|
|
3650
|
-
f && qo({ strategy: "referenceHidden", ...
|
|
3650
|
+
f && qo({ strategy: "referenceHidden", ...N })
|
|
3651
3651
|
]
|
|
3652
3652
|
}), [D, j] = ui(k), de = se(g);
|
|
3653
3653
|
he(() => {
|
|
3654
|
-
|
|
3655
|
-
}, [
|
|
3656
|
-
const Z = ($t = C.arrow) == null ? void 0 : $t.x,
|
|
3654
|
+
M && (de == null || de());
|
|
3655
|
+
}, [M, de]);
|
|
3656
|
+
const Z = ($t = C.arrow) == null ? void 0 : $t.x, Ni = (Ht = C.arrow) == null ? void 0 : Ht.y, Mi = ((Ut = C.arrow) == null ? void 0 : Ut.centerOffset) !== 0, [Ii, Di] = m.useState();
|
|
3657
3657
|
return he(() => {
|
|
3658
3658
|
w && Di(window.getComputedStyle(w).zIndex);
|
|
3659
3659
|
}, [w]), /* @__PURE__ */ y.jsx(
|
|
@@ -3663,7 +3663,7 @@ var jt = "PopperContent", [Vo, Wo] = ti(jt), ai = m.forwardRef(
|
|
|
3663
3663
|
"data-radix-popper-content-wrapper": "",
|
|
3664
3664
|
style: {
|
|
3665
3665
|
...F,
|
|
3666
|
-
transform:
|
|
3666
|
+
transform: M ? F.transform : "translate(0, -200%)",
|
|
3667
3667
|
// keep off the page when measuring
|
|
3668
3668
|
minWidth: "max-content",
|
|
3669
3669
|
zIndex: Ii,
|
|
@@ -3687,8 +3687,8 @@ var jt = "PopperContent", [Vo, Wo] = ti(jt), ai = m.forwardRef(
|
|
|
3687
3687
|
placedSide: D,
|
|
3688
3688
|
onArrowChange: T,
|
|
3689
3689
|
arrowX: Z,
|
|
3690
|
-
arrowY:
|
|
3691
|
-
shouldHideArrow:
|
|
3690
|
+
arrowY: Ni,
|
|
3691
|
+
shouldHideArrow: Mi,
|
|
3692
3692
|
children: /* @__PURE__ */ y.jsx(
|
|
3693
3693
|
J.div,
|
|
3694
3694
|
{
|
|
@@ -3700,7 +3700,7 @@ var jt = "PopperContent", [Vo, Wo] = ti(jt), ai = m.forwardRef(
|
|
|
3700
3700
|
...p.style,
|
|
3701
3701
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
3702
3702
|
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
3703
|
-
animation:
|
|
3703
|
+
animation: M ? void 0 : "none"
|
|
3704
3704
|
}
|
|
3705
3705
|
}
|
|
3706
3706
|
)
|
|
@@ -4221,7 +4221,7 @@ var ge = Et ? { passive: !1 } : !1, La = function(t) {
|
|
|
4221
4221
|
);
|
|
4222
4222
|
}, ka = function(t) {
|
|
4223
4223
|
return vi(t, "overflowY");
|
|
4224
|
-
},
|
|
4224
|
+
}, Na = function(t) {
|
|
4225
4225
|
return vi(t, "overflowX");
|
|
4226
4226
|
}, wn = function(t, e) {
|
|
4227
4227
|
var n = e.ownerDocument, i = e;
|
|
@@ -4236,7 +4236,7 @@ var ge = Et ? { passive: !1 } : !1, La = function(t) {
|
|
|
4236
4236
|
i = i.parentNode;
|
|
4237
4237
|
} while (i && i !== n.body);
|
|
4238
4238
|
return !1;
|
|
4239
|
-
},
|
|
4239
|
+
}, Ma = function(t) {
|
|
4240
4240
|
var e = t.scrollTop, n = t.scrollHeight, i = t.clientHeight;
|
|
4241
4241
|
return [
|
|
4242
4242
|
e,
|
|
@@ -4251,9 +4251,9 @@ var ge = Et ? { passive: !1 } : !1, La = function(t) {
|
|
|
4251
4251
|
i
|
|
4252
4252
|
];
|
|
4253
4253
|
}, yi = function(t, e) {
|
|
4254
|
-
return t === "v" ? ka(e) :
|
|
4254
|
+
return t === "v" ? ka(e) : Na(e);
|
|
4255
4255
|
}, wi = function(t, e) {
|
|
4256
|
-
return t === "v" ?
|
|
4256
|
+
return t === "v" ? Ma(e) : Ia(e);
|
|
4257
4257
|
}, Da = function(t, e) {
|
|
4258
4258
|
return t === "h" && e === "rtl" ? -1 : 1;
|
|
4259
4259
|
}, Fa = function(t, e, n, i, r) {
|
|
@@ -4772,7 +4772,7 @@ const rl = () => {
|
|
|
4772
4772
|
bgOpacity: 1,
|
|
4773
4773
|
wheelToZoom: !0,
|
|
4774
4774
|
pinchToClose: !0,
|
|
4775
|
-
pswpModule: () => import("./photoswipe-
|
|
4775
|
+
pswpModule: () => import("./photoswipe-BgrzgqUW.mjs")
|
|
4776
4776
|
});
|
|
4777
4777
|
a.current = l, new hs(l), new ps(l), new ms(l), new ys(l), l.init();
|
|
4778
4778
|
}
|
|
@@ -4796,9 +4796,9 @@ const rl = () => {
|
|
|
4796
4796
|
c,
|
|
4797
4797
|
{
|
|
4798
4798
|
spacing: n ? 8 : 16,
|
|
4799
|
-
rowConstraints: (l
|
|
4800
|
-
const
|
|
4801
|
-
return
|
|
4799
|
+
rowConstraints: (l) => {
|
|
4800
|
+
const u = { minPhotos: 1, maxPhotos: 4, singleRowMaxHeight: 300 };
|
|
4801
|
+
return n ? (u.minPhotos = 1, u.maxPhotos = 1) : l < 400 ? u.maxPhotos = 2 : l < 800 ? u.maxPhotos = 3 : u.maxPhotos = 4, u;
|
|
4802
4802
|
},
|
|
4803
4803
|
columns: (l) => n ? 1 : l < 400 ? 2 : l < 800 ? 3 : 4,
|
|
4804
4804
|
photos: e.map((l) => {
|
|
@@ -4841,7 +4841,7 @@ const rl = () => {
|
|
|
4841
4841
|
event: t,
|
|
4842
4842
|
content: u,
|
|
4843
4843
|
timestampField: r,
|
|
4844
|
-
curateLink:
|
|
4844
|
+
curateLink: o
|
|
4845
4845
|
},
|
|
4846
4846
|
`${u._id}-${g}`
|
|
4847
4847
|
);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c, T as l, P as m, a as u, D as v, Q as i } from "./B4MFY5CR-
|
|
2
|
-
import { K as d, M as f, N as e } from "./index-
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./B4MFY5CR-BpSyeUus.mjs";
|
|
2
|
+
import { K as d, M as f, N as e } from "./index-CpKPtItc.mjs";
|
|
3
3
|
var p = (a) => {
|
|
4
4
|
const [r, t] = c({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./B4MFY5CR-
|
|
2
|
-
import { K as v, M as C, N as e } from "./index-
|
|
1
|
+
import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./B4MFY5CR-BpSyeUus.mjs";
|
|
2
|
+
import { K as v, M as C, N as e } from "./index-CpKPtItc.mjs";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as v, c as m } from "./index-
|
|
1
|
+
import { j as v, c as m } from "./index-CpKPtItc.mjs";
|
|
2
2
|
import * as w from "react";
|
|
3
3
|
import { useState as y, useRef as C } from "react";
|
|
4
4
|
var j = Object.defineProperty, N = (e, t, i) => t in e ? j(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, l = (e, t, i) => N(e, typeof t != "symbol" ? t + "" : t, i), V = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new WeakMap(), I = 0, k = void 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as e, v as y, u as g, w as b, k as v, c as w, f as p } from "./index-
|
|
1
|
+
import { j as e, v as y, u as g, w as b, k as v, c as w, f as p } from "./index-CpKPtItc.mjs";
|
|
2
2
|
import { useState as j, useEffect as S, Fragment as E } from "react";
|
|
3
3
|
const N = ({ title: r, entries: t = [], showFloatingPoint: a = !1, hidePictures: f = !0 }) => {
|
|
4
4
|
var d, n, i, x, s, m;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as t, j as r, a as u, L as m, E as o, c as n, k as e } from "./index-
|
|
1
|
+
import { u as t, j as r, a as u, L as m, E as o, c as n, k as e } from "./index-CpKPtItc.mjs";
|
|
2
2
|
import "react";
|
|
3
|
-
import { L as g } from "./LazyLoadImage-
|
|
3
|
+
import { L as g } from "./LazyLoadImage-DYJ9-G_v.mjs";
|
|
4
4
|
const x = () => {
|
|
5
5
|
const { loaderImageUrl: a } = t();
|
|
6
6
|
return /* @__PURE__ */ r.jsx("div", { className: "flex h-96 items-center justify-center", children: a ? /* @__PURE__ */ r.jsx("img", { src: a, alt: "Loading...", className: "" }) : /* @__PURE__ */ r.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", className: "text-brand size-10", viewBox: "0 0 24 24", children: [
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var Sw = Object.defineProperty;
|
|
2
2
|
var Ew = (e, t, n) => t in e ? Sw(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var re = (e, t, n) => Ew(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { r as Aw, j as H, c as ar, e as Cw, R as ks, v as $w, F as Pw, u as Nw, w as kw, k as yi, H as a0, E as Os, m as Rs, I as Ow, J as Rw } from "./index-
|
|
4
|
+
import { r as Aw, j as H, c as ar, e as Cw, R as ks, v as $w, F as Pw, u as Nw, w as kw, k as yi, H as a0, E as Os, m as Rs, I as Ow, J as Rw } from "./index-CpKPtItc.mjs";
|
|
5
5
|
import * as jr from "react";
|
|
6
6
|
import Q, { useState as ve, useEffect as Te, useLayoutEffect as jm, useRef as le, useContext as Ct, createContext as $t, forwardRef as Iw, useCallback as Ht, Fragment as Ft, isValidElement as Lw, cloneElement as qw, createElement as Dw, useId as wa, useMemo as yt, useSyncExternalStore as Fw, useReducer as jw, createRef as zw } from "react";
|
|
7
|
-
import { L as Uw } from "./LazyLoadImage-
|
|
7
|
+
import { L as Uw } from "./LazyLoadImage-DYJ9-G_v.mjs";
|
|
8
8
|
import { createPortal as Bw } from "react-dom";
|
|
9
|
-
import { V as Hw } from "./VideoPlayer-
|
|
9
|
+
import { V as Hw } from "./VideoPlayer-B8WZWOE9.mjs";
|
|
10
10
|
import { g as Yw, c as Ua, a as Gw } from "./_commonjsHelpers-BVfed4GL.mjs";
|
|
11
11
|
var Vw = Object.defineProperty, Ww = (e, t, n) => t in e ? Vw(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Is = (e, t, n) => (Ww(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
12
12
|
let Xw = class {
|
|
@@ -2308,7 +2308,7 @@ var J6 = class {
|
|
|
2308
2308
|
}
|
|
2309
2309
|
};
|
|
2310
2310
|
async function Q6(e, t) {
|
|
2311
|
-
let [{ DotLottieStateMachineManager: n }] = await Promise.all([import("./dotlottie-state-machine-manager-2E7RUGJG-
|
|
2311
|
+
let [{ DotLottieStateMachineManager: n }] = await Promise.all([import("./dotlottie-state-machine-manager-2E7RUGJG-9vbBkPkn.mjs")]);
|
|
2312
2312
|
if (!e.length) throw pe("No state machines available inside this .lottie!");
|
|
2313
2313
|
return new n(e, t);
|
|
2314
2314
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as H, c as Mn, m as Gn, z as ct, A as Be, v as Sd, u as vd, w as Ed, k as Io, B as Je, E as Td, x as bd } from "./index-
|
|
1
|
+
import { j as H, c as Mn, m as Gn, z as ct, A as Be, v as Sd, u as vd, w as Ed, k as Io, B as Je, E as Td, x as bd } from "./index-CpKPtItc.mjs";
|
|
2
2
|
import * as Ps from "react";
|
|
3
3
|
import Hn, { useDebugValue as Po, createElement as cu, useRef as $e, useContext as Ae, useState as De, useCallback as St, useEffect as Lt, createContext as yn, useId as Cs, useInsertionEffect as uu, useMemo as it, Children as Ad, isValidElement as Id, useLayoutEffect as Pd, forwardRef as Cd, Fragment as wr, Component as Fd } from "react";
|
|
4
|
-
import { V as wd } from "./VideoPlayer-
|
|
4
|
+
import { V as wd } from "./VideoPlayer-B8WZWOE9.mjs";
|
|
5
5
|
const Ee = [];
|
|
6
6
|
for (let e = 0; e < 256; ++e)
|
|
7
7
|
Ee.push((e + 256).toString(16).slice(1));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Ee = Object.defineProperty;
|
|
2
2
|
var Oe = (e, t, n) => t in e ? Ee(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var X = (e, t, n) => Oe(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { o as Lt, d as Kt, u as ke, a as Te } from "./RatePage-
|
|
4
|
+
import { o as Lt, d as Kt, u as ke, a as Te } from "./RatePage-_jVukl09.mjs";
|
|
5
5
|
var p = function() {
|
|
6
6
|
return p = Object.assign || function(e) {
|
|
7
7
|
for (var t, n = 1, i = arguments.length; n < i; n++) {
|
|
@@ -4518,7 +4518,7 @@ var Eb = (t, e = !1) => {
|
|
|
4518
4518
|
const e = Cc(() => {
|
|
4519
4519
|
const r = this, [n] = u(this, vr), [s] = u(this, wr), [i] = u(this, _r), [o] = u(this, Er), [a] = u(this, yr);
|
|
4520
4520
|
let c;
|
|
4521
|
-
return u(this, Sr) ? c = u(this, Sr) : (c = Ac(() => import("./HO4MOOFI-
|
|
4521
|
+
return u(this, Sr) ? c = u(this, Sr) : (c = Ac(() => import("./HO4MOOFI-B_3lPIT9.mjs")), b(this, Sr, c)), Kc(u(this, vn), u(this, br)), Ic(c, Rc({
|
|
4522
4522
|
get queryFlavor() {
|
|
4523
4523
|
return u(r, yn);
|
|
4524
4524
|
},
|
|
@@ -4612,7 +4612,7 @@ var Eb = (t, e = !1) => {
|
|
|
4612
4612
|
const e = Cc(() => {
|
|
4613
4613
|
const r = this, [n] = u(this, Rr), [s] = u(this, Ar), [i] = u(this, Or), [o] = u(this, Cr), [a] = u(this, Tr), [c] = u(this, kr);
|
|
4614
4614
|
let l;
|
|
4615
|
-
return u(this, Pr) ? l = u(this, Pr) : (l = Ac(() => import("./HUY7CZI3-
|
|
4615
|
+
return u(this, Pr) ? l = u(this, Pr) : (l = Ac(() => import("./HUY7CZI3-K4SR9hGd.mjs")), b(this, Pr, l)), Kc(u(this, Tn), u(this, Ir)), Ic(l, Rc({
|
|
4616
4616
|
get queryFlavor() {
|
|
4617
4617
|
return u(r, En);
|
|
4618
4618
|
},
|
|
@@ -14253,7 +14253,7 @@ const ka = ({ className: t, rounded: e = !1, ...r }) => /* @__PURE__ */ S.jsx(
|
|
|
14253
14253
|
) })
|
|
14254
14254
|
] })
|
|
14255
14255
|
] });
|
|
14256
|
-
}, Hy = Rn(() => import("./PublicEvents-
|
|
14256
|
+
}, Hy = Rn(() => import("./PublicEvents-C91gF4sa.mjs")), Vy = Rn(() => import("./ContentsPage-Dvorqamo.mjs").then((t) => t.l)), zy = Rn(() => import("./UploadPage-Bu4iFSPx.mjs")), Gy = Rn(() => import("./RatePage-_jVukl09.mjs").then((t) => t.R)), Wy = Rn(() => import("./LeaderboardPage-CB0V3N_f.mjs")), Ky = new rd(), $b = ({ organizationId: t, uid: e, fname: r, lname: n, loaderImageUrl: s, loginUrl: i }) => t ? /* @__PURE__ */ S.jsxs(od, { client: Ky, children: [
|
|
14257
14257
|
/* @__PURE__ */ S.jsx(
|
|
14258
14258
|
Vm,
|
|
14259
14259
|
{
|
package/index.es.js
CHANGED
package/index.umd.js
CHANGED
|
@@ -2710,7 +2710,7 @@ Change delay with +/- while running`,order:this.options.playPauseButtonOrder,isB
|
|
|
2710
2710
|
`)},getCurrentUseCounter=function(){var nt=parseInt(document.body.getAttribute(lockAttribute)||"0",10);return isFinite(nt)?nt:0},useLockAttribute=function(){React__namespace.useEffect(function(){return document.body.setAttribute(lockAttribute,(getCurrentUseCounter()+1).toString()),function(){var nt=getCurrentUseCounter()-1;nt<=0?document.body.removeAttribute(lockAttribute):document.body.setAttribute(lockAttribute,nt.toString())}},[])},RemoveScrollBar=function(nt){var cr=nt.noRelative,Ar=nt.noImportant,Cr=nt.gapMode,Tr=Cr===void 0?"margin":Cr;useLockAttribute();var Pr=React__namespace.useMemo(function(){return getGapWidth(Tr)},[Tr]);return React__namespace.createElement(Style,{styles:getStyles(Pr,!cr,Tr,Ar?"":"!important")})},passiveSupported=!1;if(typeof window<"u")try{var options=Object.defineProperty({},"passive",{get:function(){return passiveSupported=!0,!0}});window.addEventListener("test",options,options),window.removeEventListener("test",options,options)}catch{passiveSupported=!1}var nonPassive=passiveSupported?{passive:!1}:!1,alwaysContainsScroll=function(nt){return nt.tagName==="TEXTAREA"},elementCanBeScrolled=function(nt,cr){if(!(nt instanceof Element))return!1;var Ar=window.getComputedStyle(nt);return Ar[cr]!=="hidden"&&!(Ar.overflowY===Ar.overflowX&&!alwaysContainsScroll(nt)&&Ar[cr]==="visible")},elementCouldBeVScrolled=function(nt){return elementCanBeScrolled(nt,"overflowY")},elementCouldBeHScrolled=function(nt){return elementCanBeScrolled(nt,"overflowX")},locationCouldBeScrolled=function(nt,cr){var Ar=cr.ownerDocument,Cr=cr;do{typeof ShadowRoot<"u"&&Cr instanceof ShadowRoot&&(Cr=Cr.host);var Tr=elementCouldBeScrolled(nt,Cr);if(Tr){var Pr=getScrollVariables(nt,Cr),Ir=Pr[1],Mr=Pr[2];if(Ir>Mr)return!0}Cr=Cr.parentNode}while(Cr&&Cr!==Ar.body);return!1},getVScrollVariables=function(nt){var cr=nt.scrollTop,Ar=nt.scrollHeight,Cr=nt.clientHeight;return[cr,Ar,Cr]},getHScrollVariables=function(nt){var cr=nt.scrollLeft,Ar=nt.scrollWidth,Cr=nt.clientWidth;return[cr,Ar,Cr]},elementCouldBeScrolled=function(nt,cr){return nt==="v"?elementCouldBeVScrolled(cr):elementCouldBeHScrolled(cr)},getScrollVariables=function(nt,cr){return nt==="v"?getVScrollVariables(cr):getHScrollVariables(cr)},getDirectionFactor=function(nt,cr){return nt==="h"&&cr==="rtl"?-1:1},handleScroll=function(nt,cr,Ar,Cr,Tr){var Pr=getDirectionFactor(nt,window.getComputedStyle(cr).direction),Ir=Pr*Cr,Mr=Ar.target,Dr=cr.contains(Mr),Fr=!1,Nr=Ir>0,Br=0,Rr=0;do{var Or=getScrollVariables(nt,Mr),Vr=Or[0],$r=Or[1],Hr=Or[2],Gr=$r-Hr-Pr*Vr;(Vr||Gr)&&elementCouldBeScrolled(nt,Mr)&&(Br+=Gr,Rr+=Vr),Mr instanceof ShadowRoot?Mr=Mr.host:Mr=Mr.parentNode}while(!Dr&&Mr!==document.body||Dr&&(cr.contains(Mr)||cr===Mr));return(Nr&&Math.abs(Br)<1||!Nr&&Math.abs(Rr)<1)&&(Fr=!0),Fr},getTouchXY=function(nt){return"changedTouches"in nt?[nt.changedTouches[0].clientX,nt.changedTouches[0].clientY]:[0,0]},getDeltaXY=function(nt){return[nt.deltaX,nt.deltaY]},extractRef=function(nt){return nt&&"current"in nt?nt.current:nt},deltaCompare=function(nt,cr){return nt[0]===cr[0]&&nt[1]===cr[1]},generateStyle=function(nt){return`
|
|
2711
2711
|
.block-interactivity-`.concat(nt,` {pointer-events: none;}
|
|
2712
2712
|
.allow-interactivity-`).concat(nt,` {pointer-events: all;}
|
|
2713
|
-
`)},idCounter=0,lockStack=[];function RemoveScrollSideCar(nt){var cr=React__namespace.useRef([]),Ar=React__namespace.useRef([0,0]),Cr=React__namespace.useRef(),Tr=React__namespace.useState(idCounter++)[0],Pr=React__namespace.useState(styleSingleton)[0],Ir=React__namespace.useRef(nt);React__namespace.useEffect(function(){Ir.current=nt},[nt]),React__namespace.useEffect(function(){if(nt.inert){document.body.classList.add("block-interactivity-".concat(Tr));var $r=__spreadArray$1([nt.lockRef.current],(nt.shards||[]).map(extractRef),!0).filter(Boolean);return $r.forEach(function(Hr){return Hr.classList.add("allow-interactivity-".concat(Tr))}),function(){document.body.classList.remove("block-interactivity-".concat(Tr)),$r.forEach(function(Hr){return Hr.classList.remove("allow-interactivity-".concat(Tr))})}}},[nt.inert,nt.lockRef.current,nt.shards]);var Mr=React__namespace.useCallback(function($r,Hr){if("touches"in $r&&$r.touches.length===2||$r.type==="wheel"&&$r.ctrlKey)return!Ir.current.allowPinchZoom;var Gr=getTouchXY($r),Zr=Ar.current,Wr="deltaX"in $r?$r.deltaX:Zr[0]-Gr[0],jr="deltaY"in $r?$r.deltaY:Zr[1]-Gr[1],Jr,ta=$r.target,sa=Math.abs(Wr)>Math.abs(jr)?"h":"v";if("touches"in $r&&sa==="h"&&ta.type==="range")return!1;var ua=locationCouldBeScrolled(sa,ta);if(!ua)return!0;if(ua?Jr=sa:(Jr=sa==="v"?"h":"v",ua=locationCouldBeScrolled(sa,ta)),!ua)return!1;if(!Cr.current&&"changedTouches"in $r&&(Wr||jr)&&(Cr.current=Jr),!Jr)return!0;var fa=Cr.current||Jr;return handleScroll(fa,Hr,$r,fa==="h"?Wr:jr)},[]),Dr=React__namespace.useCallback(function($r){var Hr=$r;if(!(!lockStack.length||lockStack[lockStack.length-1]!==Pr)){var Gr="deltaY"in Hr?getDeltaXY(Hr):getTouchXY(Hr),Zr=cr.current.filter(function(Jr){return Jr.name===Hr.type&&(Jr.target===Hr.target||Hr.target===Jr.shadowParent)&&deltaCompare(Jr.delta,Gr)})[0];if(Zr&&Zr.should){Hr.cancelable&&Hr.preventDefault();return}if(!Zr){var Wr=(Ir.current.shards||[]).map(extractRef).filter(Boolean).filter(function(Jr){return Jr.contains(Hr.target)}),jr=Wr.length>0?Mr(Hr,Wr[0]):!Ir.current.noIsolation;jr&&Hr.cancelable&&Hr.preventDefault()}}},[]),Fr=React__namespace.useCallback(function($r,Hr,Gr,Zr){var Wr={name:$r,delta:Hr,target:Gr,should:Zr,shadowParent:getOutermostShadowParent(Gr)};cr.current.push(Wr),setTimeout(function(){cr.current=cr.current.filter(function(jr){return jr!==Wr})},1)},[]),Nr=React__namespace.useCallback(function($r){Ar.current=getTouchXY($r),Cr.current=void 0},[]),Br=React__namespace.useCallback(function($r){Fr($r.type,getDeltaXY($r),$r.target,Mr($r,nt.lockRef.current))},[]),Rr=React__namespace.useCallback(function($r){Fr($r.type,getTouchXY($r),$r.target,Mr($r,nt.lockRef.current))},[]);React__namespace.useEffect(function(){return lockStack.push(Pr),nt.setCallbacks({onScrollCapture:Br,onWheelCapture:Br,onTouchMoveCapture:Rr}),document.addEventListener("wheel",Dr,nonPassive),document.addEventListener("touchmove",Dr,nonPassive),document.addEventListener("touchstart",Nr,nonPassive),function(){lockStack=lockStack.filter(function($r){return $r!==Pr}),document.removeEventListener("wheel",Dr,nonPassive),document.removeEventListener("touchmove",Dr,nonPassive),document.removeEventListener("touchstart",Nr,nonPassive)}},[]);var Or=nt.removeScrollBar,Vr=nt.inert;return React__namespace.createElement(React__namespace.Fragment,null,Vr?React__namespace.createElement(Pr,{styles:generateStyle(Tr)}):null,Or?React__namespace.createElement(RemoveScrollBar,{gapMode:nt.gapMode}):null)}function getOutermostShadowParent(nt){for(var cr=null;nt!==null;)nt instanceof ShadowRoot&&(cr=nt.host,nt=nt.host),nt=nt.parentNode;return cr}const SideCar=exportSidecar(effectCar,RemoveScrollSideCar);var ReactRemoveScroll=React__namespace.forwardRef(function(nt,cr){return React__namespace.createElement(RemoveScroll,__assign$2({},nt,{ref:cr,sideCar:SideCar}))});ReactRemoveScroll.classNames=RemoveScroll.classNames;var POPOVER_NAME="Popover",[createPopoverContext,createPopoverScope]=createContextScope(POPOVER_NAME,[createPopperScope]),usePopperScope=createPopperScope(),[PopoverProvider,usePopoverContext]=createPopoverContext(POPOVER_NAME),Popover$1=nt=>{const{__scopePopover:cr,children:Ar,open:Cr,defaultOpen:Tr,onOpenChange:Pr,modal:Ir=!1}=nt,Mr=usePopperScope(cr),Dr=React__namespace.useRef(null),[Fr,Nr]=React__namespace.useState(!1),[Br=!1,Rr]=useControllableState({prop:Cr,defaultProp:Tr,onChange:Pr});return jsxRuntimeExports.jsx(Root2$1,{...Mr,children:jsxRuntimeExports.jsx(PopoverProvider,{scope:cr,contentId:useId(),triggerRef:Dr,open:Br,onOpenChange:Rr,onOpenToggle:React__namespace.useCallback(()=>Rr(Or=>!Or),[Rr]),hasCustomAnchor:Fr,onCustomAnchorAdd:React__namespace.useCallback(()=>Nr(!0),[]),onCustomAnchorRemove:React__namespace.useCallback(()=>Nr(!1),[]),modal:Ir,children:Ar})})};Popover$1.displayName=POPOVER_NAME;var ANCHOR_NAME="PopoverAnchor",PopoverAnchor=React__namespace.forwardRef((nt,cr)=>{const{__scopePopover:Ar,...Cr}=nt,Tr=usePopoverContext(ANCHOR_NAME,Ar),Pr=usePopperScope(Ar),{onCustomAnchorAdd:Ir,onCustomAnchorRemove:Mr}=Tr;return React__namespace.useEffect(()=>(Ir(),()=>Mr()),[Ir,Mr]),jsxRuntimeExports.jsx(Anchor,{...Pr,...Cr,ref:cr})});PopoverAnchor.displayName=ANCHOR_NAME;var TRIGGER_NAME="PopoverTrigger",PopoverTrigger$1=React__namespace.forwardRef((nt,cr)=>{const{__scopePopover:Ar,...Cr}=nt,Tr=usePopoverContext(TRIGGER_NAME,Ar),Pr=usePopperScope(Ar),Ir=useComposedRefs(cr,Tr.triggerRef),Mr=jsxRuntimeExports.jsx(Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":Tr.open,"aria-controls":Tr.contentId,"data-state":getState(Tr.open),...Cr,ref:Ir,onClick:composeEventHandlers(nt.onClick,Tr.onOpenToggle)});return Tr.hasCustomAnchor?Mr:jsxRuntimeExports.jsx(Anchor,{asChild:!0,...Pr,children:Mr})});PopoverTrigger$1.displayName=TRIGGER_NAME;var PORTAL_NAME="PopoverPortal",[PortalProvider,usePortalContext]=createPopoverContext(PORTAL_NAME,{forceMount:void 0}),PopoverPortal=nt=>{const{__scopePopover:cr,forceMount:Ar,children:Cr,container:Tr}=nt,Pr=usePopoverContext(PORTAL_NAME,cr);return jsxRuntimeExports.jsx(PortalProvider,{scope:cr,forceMount:Ar,children:jsxRuntimeExports.jsx(Presence,{present:Ar||Pr.open,children:jsxRuntimeExports.jsx(Portal$1,{asChild:!0,container:Tr,children:Cr})})})};PopoverPortal.displayName=PORTAL_NAME;var CONTENT_NAME="PopoverContent",PopoverContent$1=React__namespace.forwardRef((nt,cr)=>{const Ar=usePortalContext(CONTENT_NAME,nt.__scopePopover),{forceMount:Cr=Ar.forceMount,...Tr}=nt,Pr=usePopoverContext(CONTENT_NAME,nt.__scopePopover);return jsxRuntimeExports.jsx(Presence,{present:Cr||Pr.open,children:Pr.modal?jsxRuntimeExports.jsx(PopoverContentModal,{...Tr,ref:cr}):jsxRuntimeExports.jsx(PopoverContentNonModal,{...Tr,ref:cr})})});PopoverContent$1.displayName=CONTENT_NAME;var PopoverContentModal=React__namespace.forwardRef((nt,cr)=>{const Ar=usePopoverContext(CONTENT_NAME,nt.__scopePopover),Cr=React__namespace.useRef(null),Tr=useComposedRefs(cr,Cr),Pr=React__namespace.useRef(!1);return React__namespace.useEffect(()=>{const Ir=Cr.current;if(Ir)return hideOthers(Ir)},[]),jsxRuntimeExports.jsx(ReactRemoveScroll,{as:Slot,allowPinchZoom:!0,children:jsxRuntimeExports.jsx(PopoverContentImpl,{...nt,ref:Tr,trapFocus:Ar.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:composeEventHandlers(nt.onCloseAutoFocus,Ir=>{var Mr;Ir.preventDefault(),Pr.current||(Mr=Ar.triggerRef.current)==null||Mr.focus()}),onPointerDownOutside:composeEventHandlers(nt.onPointerDownOutside,Ir=>{const Mr=Ir.detail.originalEvent,Dr=Mr.button===0&&Mr.ctrlKey===!0,Fr=Mr.button===2||Dr;Pr.current=Fr},{checkForDefaultPrevented:!1}),onFocusOutside:composeEventHandlers(nt.onFocusOutside,Ir=>Ir.preventDefault(),{checkForDefaultPrevented:!1})})})}),PopoverContentNonModal=React__namespace.forwardRef((nt,cr)=>{const Ar=usePopoverContext(CONTENT_NAME,nt.__scopePopover),Cr=React__namespace.useRef(!1),Tr=React__namespace.useRef(!1);return jsxRuntimeExports.jsx(PopoverContentImpl,{...nt,ref:cr,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:Pr=>{var Ir,Mr;(Ir=nt.onCloseAutoFocus)==null||Ir.call(nt,Pr),Pr.defaultPrevented||(Cr.current||(Mr=Ar.triggerRef.current)==null||Mr.focus(),Pr.preventDefault()),Cr.current=!1,Tr.current=!1},onInteractOutside:Pr=>{var Dr,Fr;(Dr=nt.onInteractOutside)==null||Dr.call(nt,Pr),Pr.defaultPrevented||(Cr.current=!0,Pr.detail.originalEvent.type==="pointerdown"&&(Tr.current=!0));const Ir=Pr.target;((Fr=Ar.triggerRef.current)==null?void 0:Fr.contains(Ir))&&Pr.preventDefault(),Pr.detail.originalEvent.type==="focusin"&&Tr.current&&Pr.preventDefault()}})}),PopoverContentImpl=React__namespace.forwardRef((nt,cr)=>{const{__scopePopover:Ar,trapFocus:Cr,onOpenAutoFocus:Tr,onCloseAutoFocus:Pr,disableOutsidePointerEvents:Ir,onEscapeKeyDown:Mr,onPointerDownOutside:Dr,onFocusOutside:Fr,onInteractOutside:Nr,...Br}=nt,Rr=usePopoverContext(CONTENT_NAME,Ar),Or=usePopperScope(Ar);return useFocusGuards(),jsxRuntimeExports.jsx(FocusScope,{asChild:!0,loop:!0,trapped:Cr,onMountAutoFocus:Tr,onUnmountAutoFocus:Pr,children:jsxRuntimeExports.jsx(DismissableLayer,{asChild:!0,disableOutsidePointerEvents:Ir,onInteractOutside:Nr,onEscapeKeyDown:Mr,onPointerDownOutside:Dr,onFocusOutside:Fr,onDismiss:()=>Rr.onOpenChange(!1),children:jsxRuntimeExports.jsx(Content,{"data-state":getState(Rr.open),role:"dialog",id:Rr.contentId,...Or,...Br,ref:cr,style:{...Br.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),CLOSE_NAME="PopoverClose",PopoverClose=React__namespace.forwardRef((nt,cr)=>{const{__scopePopover:Ar,...Cr}=nt,Tr=usePopoverContext(CLOSE_NAME,Ar);return jsxRuntimeExports.jsx(Primitive.button,{type:"button",...Cr,ref:cr,onClick:composeEventHandlers(nt.onClick,()=>Tr.onOpenChange(!1))})});PopoverClose.displayName=CLOSE_NAME;var ARROW_NAME="PopoverArrow",PopoverArrow=React__namespace.forwardRef((nt,cr)=>{const{__scopePopover:Ar,...Cr}=nt,Tr=usePopperScope(Ar);return jsxRuntimeExports.jsx(Arrow,{...Tr,...Cr,ref:cr})});PopoverArrow.displayName=ARROW_NAME;function getState(nt){return nt?"open":"closed"}var Root2=Popover$1,Trigger=PopoverTrigger$1,Portal=PopoverPortal,Content2=PopoverContent$1;const Popover=Root2,PopoverTrigger=Trigger,PopoverContent=React__namespace.forwardRef(({className:nt,align:cr="center",sideOffset:Ar=4,...Cr},Tr)=>{const{getStyleObject:Pr}=useTheme$1();return jsxRuntimeExports.jsx(Portal,{children:jsxRuntimeExports.jsx(Content2,{ref:Tr,align:cr,sideOffset:Ar,className:cn$1("bg-primary text-primary border-secondary shadow-outer data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-[2010] rounded outline-none",nt),style:Pr(),...Cr})})});PopoverContent.displayName=Content2.displayName;const UseReaction=()=>{const nt=useQueryClient(),{getAccessToken:cr}=useSession();return{handleReactionClick:async(Cr,Tr,Pr,Ir)=>{const Mr=await ky$1.post(`http://localhost:3000/api/connect/${Cr}/reaction/update`,{json:{accessToken:await cr(),eventId:Tr,contentId:Pr,reaction:Ir,integrationReaction:Cr}});Mr!=null&&Mr.error?console.error(Mr==null?void 0:Mr.error):(nt.invalidateQueries({queryKey:[`content-list-by-event-${Tr}`]}),nt.setQueriesData([`content-list-by-event-${Tr}`],Dr=>{if(Dr!=null&&Dr.pages&&Array.isArray(Dr.pages))return{...Dr,pages:Dr.pages.map(Fr=>Fr.data?{...Fr,data:Fr.data.map(Nr=>{if(Nr._id===Pr){const Br=Nr.reactionCounts||{};return Nr.userReaction&&(Br[Nr.userReaction]=(Br[Nr.userReaction]||1)-1),Br[Ir]=(Br[Ir]||0)+1,{...Nr,reactionCounts:Br,userReaction:Ir}}return Nr})}:Fr)}}))}}},ReactionButton=({eventId:nt,contentId:cr,emojis:Ar=[],counts:Cr={},userReaction:Tr,organizationId:Pr,loginUrl:Ir="/",registerUrl:Mr="/"})=>{const{user:Dr}=useSession(),{handleReactionClick:Fr}=UseReaction(),[Nr,Br]=React.useState(!1),Rr=Object.values(Cr).reduce((Or,Vr)=>Or+Vr,0);return jsxRuntimeExports.jsxs(Popover,{open:Nr,onOpenChange:Br,children:[jsxRuntimeExports.jsx(PopoverTrigger,{children:jsxRuntimeExports.jsxs("div",{className:"bg-primary flex items-center gap-1 rounded bg-opacity-50 px-2 py-1 transition-transform active:scale-90 sm:gap-2 sm:py-0 dark:bg-opacity-50",children:[(Ar||[]).toSorted((Or,Vr)=>(Cr[Vr]||0)-(Cr[Or]||0)).slice(0,1).map(Or=>jsxRuntimeExports.jsx("span",{className:"text-sm sm:text-lg",children:Or},`${cr}-${Or}-1`)),Rr>0&&jsxRuntimeExports.jsx("span",{className:"text-xs font-bold sm:text-sm",children:Rr??0})]})}),jsxRuntimeExports.jsxs(PopoverContent,{side:"top",align:"end",children:[!Dr&&jsxRuntimeExports.jsx("div",{className:"p-2"}),Dr&&jsxRuntimeExports.jsx("div",{className:"flex gap-1 p-2",children:Ar.map(Or=>jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center",children:[jsxRuntimeExports.jsx("span",{className:"text-xs font-medium",children:Cr[Or]||0}),jsxRuntimeExports.jsx("span",{className:cn$1("cursor-pointer text-3xl transition-transform",Tr===Or?"scale-125":"hover:scale-125"),onClick:()=>{Fr&&Fr(Pr,nt,cr,Or),Br(!1)},children:Or})]},`${cr}-${Or}-2`))})]})]})},GalleryCardEngagementAction=({organizationId:nt,event:cr,content:Ar,curateLink:Cr})=>{var Tr;return useRouter(),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[cr.engagementStyle!==ENGAGEMENT_STYLES.REACTION&&jsxRuntimeExports.jsx("button",{onClick:()=>{},href:Cr,className:"bg-primary bg-opacity-50 dark:bg-opacity-50 flex items-center gap-1 rounded px-2 py-1 sm:bg-transparent",children:jsxRuntimeExports.jsx("span",{className:"text-xs font-semibold sm:text-base",children:parseFloat(Ar.score).toFixed(1)})}),cr.engagementStyle===ENGAGEMENT_STYLES.REACTION&&((Tr=cr.reactionEmojis)==null?void 0:Tr.length)>0&&jsxRuntimeExports.jsx(ReactionButton,{eventId:cr==null?void 0:cr._id,contentId:Ar._id,engagementStyle:cr==null?void 0:cr.engagementStyle,emojis:cr==null?void 0:cr.reactionEmojis,counts:Ar.reactionCounts||{},userReaction:Ar.userReaction,organizationId:nt})]})},GalleryCardImage=({organizationId:nt,event:cr,content:Ar,style:Cr,timestampField:Tr,curateLink:Pr})=>jsxRuntimeExports.jsxs("div",{id:`content-${Ar._id}`,style:Cr,className:"group relative mb-1 overflow-hidden rounded",children:[jsxRuntimeExports.jsx(PhotoswipeThumbnail,{url:Ar.src,alt:Ar.caption,thumbnailUrl:Ar.thumbnailUrl,blurImageUrl:Ar.blurImageUrl,curateLink:Pr,pswpData:{id:Ar._id,type:CONTENT_TYPES.IMAGE,hash:Ar._id,width:Ar.width,height:Ar.height,thumbnailUrl:Ar.thumbnailUrl,blurImageUrl:Ar.blurImageUrl,caption:Ar.caption}}),jsxRuntimeExports.jsx("div",{className:"opacity-0 transition-opacity duration-500 group-hover:opacity-100",children:jsxRuntimeExports.jsx("div",{className:"absolute bottom-2 right-2",children:jsxRuntimeExports.jsx(GalleryCardEngagementAction,{organizationId:nt,event:cr,content:Ar,curateLink:Pr})})})]}),GalleryCardVideo=({organizationId:nt,event:cr,content:Ar,style:Cr,timestampField:Tr,curateLink:Pr})=>jsxRuntimeExports.jsx("div",{id:`content-${Ar._id}`,className:"group relative mb-1 overflow-hidden rounded",style:Cr,children:jsxRuntimeExports.jsx(PhotoswipeThumbnail,{url:Ar.src,thumbnailUrl:Ar.thumbnailUrl,blurImageUrl:Ar.blurImageUrl,alt:Ar.caption,curateLink:Pr,pswpData:{id:Ar._id,type:CONTENT_TYPES.VIDEO,hash:Ar._id,width:Ar.width,height:Ar.height,thumbnailUrl:Ar.thumbnailUrl,blurImageUrl:Ar.blurImageUrl,caption:Ar.caption}})}),MediaGallery=({event:nt,contents:cr,singleColumnMode:Ar,organizationId:Cr,timestampField:Tr,onQueryImageChange:Pr,curateLink:Ir})=>{const Mr=React.useRef(null),Dr=React.useMemo(()=>`gallery-${nt._id}`,[nt]);React.useEffect(()=>{if(!Ir){const Nr=new PhotoSwipeLightbox({gallery:`#${Dr}`,children:"a",counter:!1,bgOpacity:1,wheelToZoom:!0,pinchToClose:!0,pswpModule:()=>Promise.resolve().then(()=>photoswipe)});Mr.current=Nr,new PhotoSwipeBackdrop(Nr),new PhotoSwipeFullscreen(Nr),new PhotoSwipeSlideshow(Nr),new PhotoSwipeVideo(Nr),Nr.init()}return()=>{var Nr;(Nr=Mr.current)==null||Nr.destroy(),Mr.current=null}},[nt==null?void 0:nt.galleryLayout,Ir]);const Fr=React.useMemo(()=>{switch(nt.galleryLayout){default:case GALLERY_LAYOUTS.ROW:return RowsPhotoAlbum$1;case GALLERY_LAYOUTS.COLUMN:return ColumnsPhotoAlbum$1;case GALLERY_LAYOUTS.MASONRY:return MasonryPhotoAlbum$1}},[nt.galleryLayout]);return jsxRuntimeExports.jsx(Fr,{spacing:Ar?8:16,rowConstraints:(Nr,Br)=>{const Rr={minPhotos:1,maxPhotos:4,singleRowMaxHeight:300};return Br?(Rr.minPhotos=1,Rr.maxPhotos=1):Nr<400?Rr.maxPhotos=2:Nr<800?Rr.maxPhotos=3:Rr.maxPhotos=4,Rr},columns:Nr=>Ar?1:Nr<400?2:Nr<800?3:4,photos:cr.map(Nr=>{var Br,Rr;return{src:Nr.type===CONTENT_TYPES.IMAGE||Nr.type===CONTENT_TYPES.VIDEO?Nr.url:Nr.imageUrl,width:(Br=Nr.dimension)==null?void 0:Br.width,height:(Rr=Nr.dimension)==null?void 0:Rr.height,...Nr}}),render:{container:({ref:Nr,className:Br,children:Rr})=>jsxRuntimeExports.jsx("div",{ref:Nr,id:Dr,className:cn$1(Br,Ar?"w-full lg:w-1/3":"w-full"),children:Rr}),photo:(Nr,{photo:Br,width:Rr,height:Or,index:Vr})=>{let $r;switch(Br.type){case CONTENT_TYPES.IMAGE:$r=GalleryCardImage;break;case CONTENT_TYPES.VIDEO:$r=GalleryCardVideo;break;case CONTENT_TYPES.AD:$r=GallleryCardAd;break}return $r&&jsxRuntimeExports.jsx($r,{style:{width:Rr,height:Or},organizationId:Cr,event:nt,content:Br,timestampField:Tr,curateLink:`${Ir}?cid=${Br._id}`},`${Br._id}-${Vr}`)}}})};/*! *****************************************************************************
|
|
2713
|
+
`)},idCounter=0,lockStack=[];function RemoveScrollSideCar(nt){var cr=React__namespace.useRef([]),Ar=React__namespace.useRef([0,0]),Cr=React__namespace.useRef(),Tr=React__namespace.useState(idCounter++)[0],Pr=React__namespace.useState(styleSingleton)[0],Ir=React__namespace.useRef(nt);React__namespace.useEffect(function(){Ir.current=nt},[nt]),React__namespace.useEffect(function(){if(nt.inert){document.body.classList.add("block-interactivity-".concat(Tr));var $r=__spreadArray$1([nt.lockRef.current],(nt.shards||[]).map(extractRef),!0).filter(Boolean);return $r.forEach(function(Hr){return Hr.classList.add("allow-interactivity-".concat(Tr))}),function(){document.body.classList.remove("block-interactivity-".concat(Tr)),$r.forEach(function(Hr){return Hr.classList.remove("allow-interactivity-".concat(Tr))})}}},[nt.inert,nt.lockRef.current,nt.shards]);var Mr=React__namespace.useCallback(function($r,Hr){if("touches"in $r&&$r.touches.length===2||$r.type==="wheel"&&$r.ctrlKey)return!Ir.current.allowPinchZoom;var Gr=getTouchXY($r),Zr=Ar.current,Wr="deltaX"in $r?$r.deltaX:Zr[0]-Gr[0],jr="deltaY"in $r?$r.deltaY:Zr[1]-Gr[1],Jr,ta=$r.target,sa=Math.abs(Wr)>Math.abs(jr)?"h":"v";if("touches"in $r&&sa==="h"&&ta.type==="range")return!1;var ua=locationCouldBeScrolled(sa,ta);if(!ua)return!0;if(ua?Jr=sa:(Jr=sa==="v"?"h":"v",ua=locationCouldBeScrolled(sa,ta)),!ua)return!1;if(!Cr.current&&"changedTouches"in $r&&(Wr||jr)&&(Cr.current=Jr),!Jr)return!0;var fa=Cr.current||Jr;return handleScroll(fa,Hr,$r,fa==="h"?Wr:jr)},[]),Dr=React__namespace.useCallback(function($r){var Hr=$r;if(!(!lockStack.length||lockStack[lockStack.length-1]!==Pr)){var Gr="deltaY"in Hr?getDeltaXY(Hr):getTouchXY(Hr),Zr=cr.current.filter(function(Jr){return Jr.name===Hr.type&&(Jr.target===Hr.target||Hr.target===Jr.shadowParent)&&deltaCompare(Jr.delta,Gr)})[0];if(Zr&&Zr.should){Hr.cancelable&&Hr.preventDefault();return}if(!Zr){var Wr=(Ir.current.shards||[]).map(extractRef).filter(Boolean).filter(function(Jr){return Jr.contains(Hr.target)}),jr=Wr.length>0?Mr(Hr,Wr[0]):!Ir.current.noIsolation;jr&&Hr.cancelable&&Hr.preventDefault()}}},[]),Fr=React__namespace.useCallback(function($r,Hr,Gr,Zr){var Wr={name:$r,delta:Hr,target:Gr,should:Zr,shadowParent:getOutermostShadowParent(Gr)};cr.current.push(Wr),setTimeout(function(){cr.current=cr.current.filter(function(jr){return jr!==Wr})},1)},[]),Nr=React__namespace.useCallback(function($r){Ar.current=getTouchXY($r),Cr.current=void 0},[]),Br=React__namespace.useCallback(function($r){Fr($r.type,getDeltaXY($r),$r.target,Mr($r,nt.lockRef.current))},[]),Rr=React__namespace.useCallback(function($r){Fr($r.type,getTouchXY($r),$r.target,Mr($r,nt.lockRef.current))},[]);React__namespace.useEffect(function(){return lockStack.push(Pr),nt.setCallbacks({onScrollCapture:Br,onWheelCapture:Br,onTouchMoveCapture:Rr}),document.addEventListener("wheel",Dr,nonPassive),document.addEventListener("touchmove",Dr,nonPassive),document.addEventListener("touchstart",Nr,nonPassive),function(){lockStack=lockStack.filter(function($r){return $r!==Pr}),document.removeEventListener("wheel",Dr,nonPassive),document.removeEventListener("touchmove",Dr,nonPassive),document.removeEventListener("touchstart",Nr,nonPassive)}},[]);var Or=nt.removeScrollBar,Vr=nt.inert;return React__namespace.createElement(React__namespace.Fragment,null,Vr?React__namespace.createElement(Pr,{styles:generateStyle(Tr)}):null,Or?React__namespace.createElement(RemoveScrollBar,{gapMode:nt.gapMode}):null)}function getOutermostShadowParent(nt){for(var cr=null;nt!==null;)nt instanceof ShadowRoot&&(cr=nt.host,nt=nt.host),nt=nt.parentNode;return cr}const SideCar=exportSidecar(effectCar,RemoveScrollSideCar);var ReactRemoveScroll=React__namespace.forwardRef(function(nt,cr){return React__namespace.createElement(RemoveScroll,__assign$2({},nt,{ref:cr,sideCar:SideCar}))});ReactRemoveScroll.classNames=RemoveScroll.classNames;var POPOVER_NAME="Popover",[createPopoverContext,createPopoverScope]=createContextScope(POPOVER_NAME,[createPopperScope]),usePopperScope=createPopperScope(),[PopoverProvider,usePopoverContext]=createPopoverContext(POPOVER_NAME),Popover$1=nt=>{const{__scopePopover:cr,children:Ar,open:Cr,defaultOpen:Tr,onOpenChange:Pr,modal:Ir=!1}=nt,Mr=usePopperScope(cr),Dr=React__namespace.useRef(null),[Fr,Nr]=React__namespace.useState(!1),[Br=!1,Rr]=useControllableState({prop:Cr,defaultProp:Tr,onChange:Pr});return jsxRuntimeExports.jsx(Root2$1,{...Mr,children:jsxRuntimeExports.jsx(PopoverProvider,{scope:cr,contentId:useId(),triggerRef:Dr,open:Br,onOpenChange:Rr,onOpenToggle:React__namespace.useCallback(()=>Rr(Or=>!Or),[Rr]),hasCustomAnchor:Fr,onCustomAnchorAdd:React__namespace.useCallback(()=>Nr(!0),[]),onCustomAnchorRemove:React__namespace.useCallback(()=>Nr(!1),[]),modal:Ir,children:Ar})})};Popover$1.displayName=POPOVER_NAME;var ANCHOR_NAME="PopoverAnchor",PopoverAnchor=React__namespace.forwardRef((nt,cr)=>{const{__scopePopover:Ar,...Cr}=nt,Tr=usePopoverContext(ANCHOR_NAME,Ar),Pr=usePopperScope(Ar),{onCustomAnchorAdd:Ir,onCustomAnchorRemove:Mr}=Tr;return React__namespace.useEffect(()=>(Ir(),()=>Mr()),[Ir,Mr]),jsxRuntimeExports.jsx(Anchor,{...Pr,...Cr,ref:cr})});PopoverAnchor.displayName=ANCHOR_NAME;var TRIGGER_NAME="PopoverTrigger",PopoverTrigger$1=React__namespace.forwardRef((nt,cr)=>{const{__scopePopover:Ar,...Cr}=nt,Tr=usePopoverContext(TRIGGER_NAME,Ar),Pr=usePopperScope(Ar),Ir=useComposedRefs(cr,Tr.triggerRef),Mr=jsxRuntimeExports.jsx(Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":Tr.open,"aria-controls":Tr.contentId,"data-state":getState(Tr.open),...Cr,ref:Ir,onClick:composeEventHandlers(nt.onClick,Tr.onOpenToggle)});return Tr.hasCustomAnchor?Mr:jsxRuntimeExports.jsx(Anchor,{asChild:!0,...Pr,children:Mr})});PopoverTrigger$1.displayName=TRIGGER_NAME;var PORTAL_NAME="PopoverPortal",[PortalProvider,usePortalContext]=createPopoverContext(PORTAL_NAME,{forceMount:void 0}),PopoverPortal=nt=>{const{__scopePopover:cr,forceMount:Ar,children:Cr,container:Tr}=nt,Pr=usePopoverContext(PORTAL_NAME,cr);return jsxRuntimeExports.jsx(PortalProvider,{scope:cr,forceMount:Ar,children:jsxRuntimeExports.jsx(Presence,{present:Ar||Pr.open,children:jsxRuntimeExports.jsx(Portal$1,{asChild:!0,container:Tr,children:Cr})})})};PopoverPortal.displayName=PORTAL_NAME;var CONTENT_NAME="PopoverContent",PopoverContent$1=React__namespace.forwardRef((nt,cr)=>{const Ar=usePortalContext(CONTENT_NAME,nt.__scopePopover),{forceMount:Cr=Ar.forceMount,...Tr}=nt,Pr=usePopoverContext(CONTENT_NAME,nt.__scopePopover);return jsxRuntimeExports.jsx(Presence,{present:Cr||Pr.open,children:Pr.modal?jsxRuntimeExports.jsx(PopoverContentModal,{...Tr,ref:cr}):jsxRuntimeExports.jsx(PopoverContentNonModal,{...Tr,ref:cr})})});PopoverContent$1.displayName=CONTENT_NAME;var PopoverContentModal=React__namespace.forwardRef((nt,cr)=>{const Ar=usePopoverContext(CONTENT_NAME,nt.__scopePopover),Cr=React__namespace.useRef(null),Tr=useComposedRefs(cr,Cr),Pr=React__namespace.useRef(!1);return React__namespace.useEffect(()=>{const Ir=Cr.current;if(Ir)return hideOthers(Ir)},[]),jsxRuntimeExports.jsx(ReactRemoveScroll,{as:Slot,allowPinchZoom:!0,children:jsxRuntimeExports.jsx(PopoverContentImpl,{...nt,ref:Tr,trapFocus:Ar.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:composeEventHandlers(nt.onCloseAutoFocus,Ir=>{var Mr;Ir.preventDefault(),Pr.current||(Mr=Ar.triggerRef.current)==null||Mr.focus()}),onPointerDownOutside:composeEventHandlers(nt.onPointerDownOutside,Ir=>{const Mr=Ir.detail.originalEvent,Dr=Mr.button===0&&Mr.ctrlKey===!0,Fr=Mr.button===2||Dr;Pr.current=Fr},{checkForDefaultPrevented:!1}),onFocusOutside:composeEventHandlers(nt.onFocusOutside,Ir=>Ir.preventDefault(),{checkForDefaultPrevented:!1})})})}),PopoverContentNonModal=React__namespace.forwardRef((nt,cr)=>{const Ar=usePopoverContext(CONTENT_NAME,nt.__scopePopover),Cr=React__namespace.useRef(!1),Tr=React__namespace.useRef(!1);return jsxRuntimeExports.jsx(PopoverContentImpl,{...nt,ref:cr,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:Pr=>{var Ir,Mr;(Ir=nt.onCloseAutoFocus)==null||Ir.call(nt,Pr),Pr.defaultPrevented||(Cr.current||(Mr=Ar.triggerRef.current)==null||Mr.focus(),Pr.preventDefault()),Cr.current=!1,Tr.current=!1},onInteractOutside:Pr=>{var Dr,Fr;(Dr=nt.onInteractOutside)==null||Dr.call(nt,Pr),Pr.defaultPrevented||(Cr.current=!0,Pr.detail.originalEvent.type==="pointerdown"&&(Tr.current=!0));const Ir=Pr.target;((Fr=Ar.triggerRef.current)==null?void 0:Fr.contains(Ir))&&Pr.preventDefault(),Pr.detail.originalEvent.type==="focusin"&&Tr.current&&Pr.preventDefault()}})}),PopoverContentImpl=React__namespace.forwardRef((nt,cr)=>{const{__scopePopover:Ar,trapFocus:Cr,onOpenAutoFocus:Tr,onCloseAutoFocus:Pr,disableOutsidePointerEvents:Ir,onEscapeKeyDown:Mr,onPointerDownOutside:Dr,onFocusOutside:Fr,onInteractOutside:Nr,...Br}=nt,Rr=usePopoverContext(CONTENT_NAME,Ar),Or=usePopperScope(Ar);return useFocusGuards(),jsxRuntimeExports.jsx(FocusScope,{asChild:!0,loop:!0,trapped:Cr,onMountAutoFocus:Tr,onUnmountAutoFocus:Pr,children:jsxRuntimeExports.jsx(DismissableLayer,{asChild:!0,disableOutsidePointerEvents:Ir,onInteractOutside:Nr,onEscapeKeyDown:Mr,onPointerDownOutside:Dr,onFocusOutside:Fr,onDismiss:()=>Rr.onOpenChange(!1),children:jsxRuntimeExports.jsx(Content,{"data-state":getState(Rr.open),role:"dialog",id:Rr.contentId,...Or,...Br,ref:cr,style:{...Br.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),CLOSE_NAME="PopoverClose",PopoverClose=React__namespace.forwardRef((nt,cr)=>{const{__scopePopover:Ar,...Cr}=nt,Tr=usePopoverContext(CLOSE_NAME,Ar);return jsxRuntimeExports.jsx(Primitive.button,{type:"button",...Cr,ref:cr,onClick:composeEventHandlers(nt.onClick,()=>Tr.onOpenChange(!1))})});PopoverClose.displayName=CLOSE_NAME;var ARROW_NAME="PopoverArrow",PopoverArrow=React__namespace.forwardRef((nt,cr)=>{const{__scopePopover:Ar,...Cr}=nt,Tr=usePopperScope(Ar);return jsxRuntimeExports.jsx(Arrow,{...Tr,...Cr,ref:cr})});PopoverArrow.displayName=ARROW_NAME;function getState(nt){return nt?"open":"closed"}var Root2=Popover$1,Trigger=PopoverTrigger$1,Portal=PopoverPortal,Content2=PopoverContent$1;const Popover=Root2,PopoverTrigger=Trigger,PopoverContent=React__namespace.forwardRef(({className:nt,align:cr="center",sideOffset:Ar=4,...Cr},Tr)=>{const{getStyleObject:Pr}=useTheme$1();return jsxRuntimeExports.jsx(Portal,{children:jsxRuntimeExports.jsx(Content2,{ref:Tr,align:cr,sideOffset:Ar,className:cn$1("bg-primary text-primary border-secondary shadow-outer data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-[2010] rounded outline-none",nt),style:Pr(),...Cr})})});PopoverContent.displayName=Content2.displayName;const UseReaction=()=>{const nt=useQueryClient(),{getAccessToken:cr}=useSession();return{handleReactionClick:async(Cr,Tr,Pr,Ir)=>{const Mr=await ky$1.post(`http://localhost:3000/api/connect/${Cr}/reaction/update`,{json:{accessToken:await cr(),eventId:Tr,contentId:Pr,reaction:Ir,integrationReaction:Cr}});Mr!=null&&Mr.error?console.error(Mr==null?void 0:Mr.error):(nt.invalidateQueries({queryKey:[`content-list-by-event-${Tr}`]}),nt.setQueriesData([`content-list-by-event-${Tr}`],Dr=>{if(Dr!=null&&Dr.pages&&Array.isArray(Dr.pages))return{...Dr,pages:Dr.pages.map(Fr=>Fr.data?{...Fr,data:Fr.data.map(Nr=>{if(Nr._id===Pr){const Br=Nr.reactionCounts||{};return Nr.userReaction&&(Br[Nr.userReaction]=(Br[Nr.userReaction]||1)-1),Br[Ir]=(Br[Ir]||0)+1,{...Nr,reactionCounts:Br,userReaction:Ir}}return Nr})}:Fr)}}))}}},ReactionButton=({eventId:nt,contentId:cr,emojis:Ar=[],counts:Cr={},userReaction:Tr,organizationId:Pr,loginUrl:Ir="/",registerUrl:Mr="/"})=>{const{user:Dr}=useSession(),{handleReactionClick:Fr}=UseReaction(),[Nr,Br]=React.useState(!1),Rr=Object.values(Cr).reduce((Or,Vr)=>Or+Vr,0);return jsxRuntimeExports.jsxs(Popover,{open:Nr,onOpenChange:Br,children:[jsxRuntimeExports.jsx(PopoverTrigger,{children:jsxRuntimeExports.jsxs("div",{className:"bg-primary flex items-center gap-1 rounded bg-opacity-50 px-2 py-1 transition-transform active:scale-90 sm:gap-2 sm:py-0 dark:bg-opacity-50",children:[(Ar||[]).toSorted((Or,Vr)=>(Cr[Vr]||0)-(Cr[Or]||0)).slice(0,1).map(Or=>jsxRuntimeExports.jsx("span",{className:"text-sm sm:text-lg",children:Or},`${cr}-${Or}-1`)),Rr>0&&jsxRuntimeExports.jsx("span",{className:"text-xs font-bold sm:text-sm",children:Rr??0})]})}),jsxRuntimeExports.jsxs(PopoverContent,{side:"top",align:"end",children:[!Dr&&jsxRuntimeExports.jsx("div",{className:"p-2"}),Dr&&jsxRuntimeExports.jsx("div",{className:"flex gap-1 p-2",children:Ar.map(Or=>jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center",children:[jsxRuntimeExports.jsx("span",{className:"text-xs font-medium",children:Cr[Or]||0}),jsxRuntimeExports.jsx("span",{className:cn$1("cursor-pointer text-3xl transition-transform",Tr===Or?"scale-125":"hover:scale-125"),onClick:()=>{Fr&&Fr(Pr,nt,cr,Or),Br(!1)},children:Or})]},`${cr}-${Or}-2`))})]})]})},GalleryCardEngagementAction=({organizationId:nt,event:cr,content:Ar,curateLink:Cr})=>{var Tr;return useRouter(),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[cr.engagementStyle!==ENGAGEMENT_STYLES.REACTION&&jsxRuntimeExports.jsx("button",{onClick:()=>{},href:Cr,className:"bg-primary bg-opacity-50 dark:bg-opacity-50 flex items-center gap-1 rounded px-2 py-1 sm:bg-transparent",children:jsxRuntimeExports.jsx("span",{className:"text-xs font-semibold sm:text-base",children:parseFloat(Ar.score).toFixed(1)})}),cr.engagementStyle===ENGAGEMENT_STYLES.REACTION&&((Tr=cr.reactionEmojis)==null?void 0:Tr.length)>0&&jsxRuntimeExports.jsx(ReactionButton,{eventId:cr==null?void 0:cr._id,contentId:Ar._id,engagementStyle:cr==null?void 0:cr.engagementStyle,emojis:cr==null?void 0:cr.reactionEmojis,counts:Ar.reactionCounts||{},userReaction:Ar.userReaction,organizationId:nt})]})},GalleryCardImage=({organizationId:nt,event:cr,content:Ar,style:Cr,timestampField:Tr,curateLink:Pr})=>jsxRuntimeExports.jsxs("div",{id:`content-${Ar._id}`,style:Cr,className:"group relative mb-1 overflow-hidden rounded",children:[jsxRuntimeExports.jsx(PhotoswipeThumbnail,{url:Ar.src,alt:Ar.caption,thumbnailUrl:Ar.thumbnailUrl,blurImageUrl:Ar.blurImageUrl,curateLink:Pr,pswpData:{id:Ar._id,type:CONTENT_TYPES.IMAGE,hash:Ar._id,width:Ar.width,height:Ar.height,thumbnailUrl:Ar.thumbnailUrl,blurImageUrl:Ar.blurImageUrl,caption:Ar.caption}}),jsxRuntimeExports.jsx("div",{className:"opacity-0 transition-opacity duration-500 group-hover:opacity-100",children:jsxRuntimeExports.jsx("div",{className:"absolute bottom-2 right-2",children:jsxRuntimeExports.jsx(GalleryCardEngagementAction,{organizationId:nt,event:cr,content:Ar,curateLink:Pr})})})]}),GalleryCardVideo=({organizationId:nt,event:cr,content:Ar,style:Cr,timestampField:Tr,curateLink:Pr})=>jsxRuntimeExports.jsx("div",{id:`content-${Ar._id}`,className:"group relative mb-1 overflow-hidden rounded",style:Cr,children:jsxRuntimeExports.jsx(PhotoswipeThumbnail,{url:Ar.src,thumbnailUrl:Ar.thumbnailUrl,blurImageUrl:Ar.blurImageUrl,alt:Ar.caption,curateLink:Pr,pswpData:{id:Ar._id,type:CONTENT_TYPES.VIDEO,hash:Ar._id,width:Ar.width,height:Ar.height,thumbnailUrl:Ar.thumbnailUrl,blurImageUrl:Ar.blurImageUrl,caption:Ar.caption}})}),MediaGallery=({event:nt,contents:cr,singleColumnMode:Ar,organizationId:Cr,timestampField:Tr,onQueryImageChange:Pr,curateLink:Ir})=>{const Mr=React.useRef(null),Dr=React.useMemo(()=>`gallery-${nt._id}`,[nt]);React.useEffect(()=>{if(!Ir){const Nr=new PhotoSwipeLightbox({gallery:`#${Dr}`,children:"a",counter:!1,bgOpacity:1,wheelToZoom:!0,pinchToClose:!0,pswpModule:()=>Promise.resolve().then(()=>photoswipe)});Mr.current=Nr,new PhotoSwipeBackdrop(Nr),new PhotoSwipeFullscreen(Nr),new PhotoSwipeSlideshow(Nr),new PhotoSwipeVideo(Nr),Nr.init()}return()=>{var Nr;(Nr=Mr.current)==null||Nr.destroy(),Mr.current=null}},[nt==null?void 0:nt.galleryLayout,Ir]);const Fr=React.useMemo(()=>{switch(nt.galleryLayout){default:case GALLERY_LAYOUTS.ROW:return RowsPhotoAlbum$1;case GALLERY_LAYOUTS.COLUMN:return ColumnsPhotoAlbum$1;case GALLERY_LAYOUTS.MASONRY:return MasonryPhotoAlbum$1}},[nt.galleryLayout]);return jsxRuntimeExports.jsx(Fr,{spacing:Ar?8:16,rowConstraints:Nr=>{const Br={minPhotos:1,maxPhotos:4,singleRowMaxHeight:300};return Ar?(Br.minPhotos=1,Br.maxPhotos=1):Nr<400?Br.maxPhotos=2:Nr<800?Br.maxPhotos=3:Br.maxPhotos=4,Br},columns:Nr=>Ar?1:Nr<400?2:Nr<800?3:4,photos:cr.map(Nr=>{var Br,Rr;return{src:Nr.type===CONTENT_TYPES.IMAGE||Nr.type===CONTENT_TYPES.VIDEO?Nr.url:Nr.imageUrl,width:(Br=Nr.dimension)==null?void 0:Br.width,height:(Rr=Nr.dimension)==null?void 0:Rr.height,...Nr}}),render:{container:({ref:Nr,className:Br,children:Rr})=>jsxRuntimeExports.jsx("div",{ref:Nr,id:Dr,className:cn$1(Br,Ar?"w-full lg:w-1/3":"w-full"),children:Rr}),photo:(Nr,{photo:Br,width:Rr,height:Or,index:Vr})=>{let $r;switch(Br.type){case CONTENT_TYPES.IMAGE:$r=GalleryCardImage;break;case CONTENT_TYPES.VIDEO:$r=GalleryCardVideo;break;case CONTENT_TYPES.AD:$r=GallleryCardAd;break}return $r&&jsxRuntimeExports.jsx($r,{style:{width:Rr,height:Or},organizationId:Cr,event:nt,content:Br,timestampField:Tr,curateLink:Ir},`${Br._id}-${Vr}`)}}})};/*! *****************************************************************************
|
|
2714
2714
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2715
2715
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
2716
2716
|
this file except in compliance with the License. You may obtain a copy of the
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as u, r as C, c as S, g as b, p as P, s as O, a as v, b as _, d as E, t as T, f as D, Z as M, h as B, i as R, j as F, P as k, C as N, k as H } from "./ContentsPage-
|
|
1
|
+
import { e as u, r as C, c as S, g as b, p as P, s as O, a as v, b as _, d as E, t as T, f as D, Z as M, h as B, i as R, j as F, P as k, C as N, k as H } from "./ContentsPage-Dvorqamo.mjs";
|
|
2
2
|
const W = 0.35, V = 0.6, U = 0.4, q = 0.5;
|
|
3
3
|
function X(a, t) {
|
|
4
4
|
return a * t / (1 - t);
|