@qratilabs/qrati-connect 1.11.6 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{AuthLayout-Ccmi5-rs.js → AuthLayout-C2VNuOBg.js} +10 -10
- package/{AuthLayout-CC5IwAHM.js → AuthLayout-CeeW8xpE.js} +6 -6
- package/CHANGELOG.md +7 -0
- package/{CPIOZS5X-Cpn_mhOX.js → CPIOZS5X-BorecCp-.js} +1 -1
- package/{CPIOZS5X-BSstqGG_.js → CPIOZS5X-DANHoUMH.js} +2 -2
- package/{ContentsPage-pBMHPSXz.js → ContentsPage-CZHv2q4p.js} +2 -2
- package/{ContentsPage-RiT6kUjx.js → ContentsPage-DVQahVsy.js} +2 -2
- package/{CuratePage-C5Y4z40W.js → CuratePage-CL_yVt7d.js} +6 -6
- package/{CuratePage-U3UWtzLC.js → CuratePage-DRt6otwq.js} +6 -6
- package/{Dialog-DQeFyfX-.js → Dialog-CgGoiE6_.js} +23 -23
- package/{Dialog-WfHGpbEh.js → Dialog-Cv43KmPi.js} +1 -1
- package/{DotLottiePlayer-DBU1DweJ.js → DotLottiePlayer-BomLEsxz.js} +1 -1
- package/{DotLottiePlayer-DnGRIX9j.js → DotLottiePlayer-CFEx0sKD.js} +1 -1
- package/ForgotPasswordPage-CFX6YV5p.js +1800 -0
- package/ForgotPasswordPage-DIowNaGR.js +1797 -0
- package/{LazyLoadImage-l2_fiQFV.js → LazyLoadImage-BCbT8tZG.js} +1 -1
- package/{LazyLoadImage-CtYNbO0V.js → LazyLoadImage-CMDdqI0N.js} +1 -1
- package/{LeaderboardPage-CcCdTRZF.js → LeaderboardPage-Dp-unzO-.js} +1 -1
- package/{LeaderboardPage-pf4hXHsY.js → LeaderboardPage-yea5g0IT.js} +1 -1
- package/{LoginPage-AjxKwE1E.js → LoginPage-BqFXPRQ6.js} +44 -42
- package/{LoginPage-DDo0QW9I.js → LoginPage-dIFEWgtl.js} +34 -32
- package/{MediaGallery-DaVH7tnL.js → MediaGallery-BrWVzHw3.js} +836 -838
- package/{MediaGallery-gIfjbuLM.js → MediaGallery-D4KjZC3u.js} +842 -844
- package/{OKF6E45R-YbG94d6r.js → OKF6E45R-DJ8Nk9Om.js} +2 -2
- package/{PublicEvents-BTNS13Wn.js → PublicEvents-D00aVRFr.js} +2 -2
- package/{PublicEvents-DpwUcfY5.js → PublicEvents-g3Q8ytbg.js} +2 -2
- package/{RegisterPage-CpjNOJU3.js → RegisterPage-D1bFgjmw.js} +11 -10
- package/{RegisterPage-DJ8FAzof.js → RegisterPage-DJb8u766.js} +5 -4
- package/SocialLoginButton-D84qIMBs.js +32 -0
- package/SocialLoginButton-DYoP_6hE.js +32 -0
- package/{UploadPage-DlTsMBXf.js → UploadPage-LiXqxvz2.js} +729 -735
- package/{UploadPage-CfFZFp_p.js → UploadPage-TUhrm8nm.js} +736 -742
- package/{VideoPlayer-DnJPEyWI.js → VideoPlayer-W1iQJ188.js} +1 -1
- package/{VideoPlayer-r90lNORm.js → VideoPlayer-eG5fGmeF.js} +1 -1
- package/{WXAWMS3D-3jDe9YEc.js → WXAWMS3D-CM6g8uiV.js} +1 -1
- package/{_commonjsHelpers-B4e78b8K.js → _commonjsHelpers-BItOPCY9.js} +2 -2
- package/element.es.js +1 -1
- package/{heic2any-Dw-psmnv.js → heic2any-CfcEtxYJ.js} +1 -1
- package/{heic2any-DwyIXiZb.js → heic2any-DmuwhcfW.js} +1 -1
- package/{index-aJqEl32o.js → index-Cpnhn0qY.js} +572 -568
- package/{index-C_SoH4i4.js → index-Cr2lQ20J.js} +1 -1
- package/{index-DBJc8aGT.js → index-Cxh1oACO.js} +650 -646
- package/{index-O4xJCcGD.js → index-rIZclAGD.js} +1 -1
- package/{index.esm-Dn93q3tG.js → index.esm-BuyJTnRt.js} +111 -139
- package/{index.esm-B20idR_b.js → index.esm-D5I3rEz4.js} +112 -140
- package/package.json +3 -1
- package/{photoswipe-mTXhTEM5.js → photoswipe-CptzYZiR.js} +1 -1
- package/{photoswipe-SXGuxPZM.js → photoswipe-DBzOkmWq.js} +1 -1
- package/qrati-connect.css +1 -1
- package/react.es.js +1 -1
- package/web.es.js +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as o, u as m, j as e, S as x, N as u, e as c, c as t, P as a, T as n, O as l } from "./index-Cpnhn0qY.js";
|
|
2
2
|
import "react";
|
|
3
|
-
const
|
|
3
|
+
const p = () => {
|
|
4
4
|
var s;
|
|
5
|
-
const r =
|
|
6
|
-
return d ? /* @__PURE__ */ e.jsx(
|
|
5
|
+
const r = o(), { user: i, organizationLoading: d, loadingUser: q } = m();
|
|
6
|
+
return d || q ? /* @__PURE__ */ e.jsx(x, { className: "qc-mx-auto qc-h-64 qc-w-64" }) : i ? /* @__PURE__ */ e.jsx(u, { replace: !0, to: ((s = r == null ? void 0 : r.state) == null ? void 0 : s.referrer) || "/" }) : /* @__PURE__ */ e.jsxs("div", { className: "qc-bg-primary qc-mx-auto qc-min-h-96 qc-max-w-md", children: [
|
|
7
7
|
/* @__PURE__ */ e.jsxs("div", { className: "qc-my-8 qc-flex qc-w-full qc-justify-around", children: [
|
|
8
8
|
/* @__PURE__ */ e.jsx(
|
|
9
|
-
|
|
9
|
+
c,
|
|
10
10
|
{
|
|
11
11
|
to: a.LOGIN,
|
|
12
12
|
state: r == null ? void 0 : r.state,
|
|
13
|
-
className:
|
|
13
|
+
className: t(
|
|
14
14
|
r.pathname === a.LOGIN ? "qc-border-brand" : "qc-border-primary",
|
|
15
15
|
"qc-flex-1 qc-border-2 qc-border-x-0 qc-border-t-0 qc-pb-2"
|
|
16
16
|
),
|
|
@@ -18,11 +18,11 @@ const b = () => {
|
|
|
18
18
|
}
|
|
19
19
|
),
|
|
20
20
|
/* @__PURE__ */ e.jsx(
|
|
21
|
-
|
|
21
|
+
c,
|
|
22
22
|
{
|
|
23
23
|
to: a.REGISTER,
|
|
24
24
|
state: r == null ? void 0 : r.state,
|
|
25
|
-
className:
|
|
25
|
+
className: t(
|
|
26
26
|
r.pathname === a.REGISTER ? "qc-border-brand" : "qc-border-primary",
|
|
27
27
|
"qc-flex-1 qc-border-2 qc-border-x-0 qc-border-t-0 qc-pb-2"
|
|
28
28
|
),
|
|
@@ -30,9 +30,9 @@ const b = () => {
|
|
|
30
30
|
}
|
|
31
31
|
)
|
|
32
32
|
] }),
|
|
33
|
-
/* @__PURE__ */ e.jsx(
|
|
33
|
+
/* @__PURE__ */ e.jsx(l, {})
|
|
34
34
|
] });
|
|
35
35
|
};
|
|
36
36
|
export {
|
|
37
|
-
|
|
37
|
+
p as default
|
|
38
38
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
const
|
|
1
|
+
import { a as o, u as m, j as e, S as x, N as u, e as c, c as t, P as a, T as n, O as l } from "./index-Cxh1oACO.js";
|
|
2
|
+
const h = () => {
|
|
3
3
|
var s;
|
|
4
|
-
const r =
|
|
5
|
-
return d ? /* @__PURE__ */ e.jsx(
|
|
4
|
+
const r = o(), { user: i, organizationLoading: d, loadingUser: q } = m();
|
|
5
|
+
return d || q ? /* @__PURE__ */ e.jsx(x, { className: "qc-mx-auto qc-h-64 qc-w-64" }) : i ? /* @__PURE__ */ e.jsx(u, { replace: !0, to: ((s = r == null ? void 0 : r.state) == null ? void 0 : s.referrer) || "/" }) : /* @__PURE__ */ e.jsxs("div", { className: "qc-bg-primary qc-mx-auto qc-min-h-96 qc-max-w-md", children: [
|
|
6
6
|
/* @__PURE__ */ e.jsxs("div", { className: "qc-my-8 qc-flex qc-w-full qc-justify-around", children: [
|
|
7
7
|
/* @__PURE__ */ e.jsx(
|
|
8
8
|
c,
|
|
@@ -29,9 +29,9 @@ const u = () => {
|
|
|
29
29
|
}
|
|
30
30
|
)
|
|
31
31
|
] }),
|
|
32
|
-
/* @__PURE__ */ e.jsx(
|
|
32
|
+
/* @__PURE__ */ e.jsx(l, {})
|
|
33
33
|
] });
|
|
34
34
|
};
|
|
35
35
|
export {
|
|
36
|
-
|
|
36
|
+
h as default
|
|
37
37
|
};
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.11.6](https://github.com/qrati-labs/qrati-connect-js/compare/v1.11.5...v1.11.6) (2025-04-04)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* update eslint-plugin-react to version 7.37.5; update object.entries to version 1.1.9 in package.json and package-lock.json; improve error handling in useReaction hook ([3cc05f4](https://github.com/qrati-labs/qrati-connect-js/commit/3cc05f4d08e26a98b1320d33ba208c6b39c1d8a0))
|
|
7
|
+
|
|
1
8
|
## [1.11.5](https://github.com/qrati-labs/qrati-connect-js/compare/v1.11.4...v1.11.5) (2025-04-03)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var ps = Object.defineProperty;
|
|
2
2
|
var ws = (e, t, n) => t in e ? ps(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var _e = (e, t, n) => ws(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import {
|
|
4
|
+
import { V as we, W as z, X as Nt, Y as U, Z as D, _ as y, $ as Oo, a0 as K, a1 as _, a2 as k, a3 as V, a4 as F, a5 as xs, a6 as rr, a7 as xe, a8 as j, a9 as Vn, aa as Gn, ab as ut, ac as A, ad as $s, ae as Dn, af as Ne, ag as Cs, ah as Pt, ai as qt, aj as Ss, ak as ks, al as pn, am as Es, an as Rr, ao as Rt, ap as _o, aq as Ds, ar as Ms, as as W, at as zr, au as As, av as Fs, aw as or, ax as Ts, ay as Is, az as Rn, aA as Ls, aB as Ps, aC as oe, aD as Os, aE as _s, aF as qs } from "./index-Cxh1oACO.js";
|
|
5
5
|
var Rs = (e) => e != null, zs = (e) => e.filter(Rs);
|
|
6
6
|
function Ks(e) {
|
|
7
7
|
return (...t) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c, T as l, P as m, a as u, D as v, Q as i } from "./WXAWMS3D-
|
|
2
|
-
import { J as d, K as f, L as e } from "./index-
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./WXAWMS3D-CM6g8uiV.js";
|
|
2
|
+
import { J as d, K as f, L as e } from "./index-Cpnhn0qY.js";
|
|
3
3
|
var p = (a) => {
|
|
4
4
|
const [r, t] = c({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Q as Z, i as G, h as tt, f as et, g as rt, b as O, u as D, l as v, k as _, A as j, m as A, D as L, n as z, o as nt, C as N, p as at, j as s, c as b, q as st, r as Q, s as ot, t as E, v as it, w as lt, S as ct, x as ft, P as ht, E as ut } from "./index-
|
|
1
|
+
import { Q as Z, i as G, h as tt, f as et, g as rt, b as O, u as D, l as v, k as _, A as j, m as A, D as L, n as z, o as nt, C as N, p as at, j as s, c as b, q as st, r as Q, s as ot, t as E, v as it, w as lt, S as ct, x as ft, P as ht, E as ut } from "./index-Cpnhn0qY.js";
|
|
2
2
|
import T, { useRef as dt, useMemo as C, Component as mt, useState as H, useEffect as pt, lazy as xt } from "react";
|
|
3
3
|
var gt = class extends Z {
|
|
4
4
|
constructor(r, n) {
|
|
@@ -567,7 +567,7 @@ var Lt = (
|
|
|
567
567
|
}, n;
|
|
568
568
|
}(mt)
|
|
569
569
|
);
|
|
570
|
-
const zt = xt(() => import("./MediaGallery-
|
|
570
|
+
const zt = xt(() => import("./MediaGallery-D4KjZC3u.js").then((r) => r.M)), It = () => {
|
|
571
571
|
const { eventSlug: r } = it(), { loadingUser: n } = D(), [e, t] = H(L), [a, o] = H(z), { event: l, ads: i } = lt({ eventSlug: r }), { loading: f, contentsWithAds: c, hasNextPage: u, fetchNextPage: h } = Nt({ event: l, ads: i, sort: e, order: a }), { incrementEventView: x } = Pt();
|
|
572
572
|
return pt(() => {
|
|
573
573
|
l && x(l == null ? void 0 : l.slug);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Q as X, i as G, h as Z, f as tt, g as et, l as v, b as O, u as D, m as w, k as _, A as N, n as j, D as L, o as z, p as rt, C, q as nt, j as s, c as P, s as at, t as W, v as st, w as T, R as S, x as ot, y as it, S as lt, z as ct, P as ft, E as ht } from "./index-
|
|
1
|
+
import { Q as X, i as G, h as Z, f as tt, g as et, l as v, b as O, u as D, m as w, k as _, A as N, n as j, D as L, o as z, p as rt, C, q as nt, j as s, c as P, s as at, t as W, v as st, w as T, R as S, x as ot, y as it, S as lt, z as ct, P as ft, E as ht } from "./index-Cxh1oACO.js";
|
|
2
2
|
var ut = class extends X {
|
|
3
3
|
constructor(r, n) {
|
|
4
4
|
super(r, n);
|
|
@@ -566,7 +566,7 @@ var Ct = (
|
|
|
566
566
|
}, n;
|
|
567
567
|
}(v.Component)
|
|
568
568
|
);
|
|
569
|
-
const Rt = v.lazy(() => import("./MediaGallery-
|
|
569
|
+
const Rt = v.lazy(() => import("./MediaGallery-BrWVzHw3.js").then((r) => r.M)), qt = () => {
|
|
570
570
|
const { eventSlug: r } = ot(), { loadingUser: n } = D(), [e, t] = v.useState(L), [a, o] = v.useState(z), { event: l, ads: i } = it({ eventSlug: r }), { loading: f, contentsWithAds: c, hasNextPage: u, fetchNextPage: h } = bt({ event: l, ads: i, sort: e, order: a }), { incrementEventView: x } = yt();
|
|
571
571
|
return v.useEffect(() => {
|
|
572
572
|
l && x(l == null ? void 0 : l.slug);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { l as b, j as e, c as V, b as ne, J, a as ie, x as le, u as de, y as qe, k as G, A as D, K as Z, S as W, z as ue, N as me, P as ge, E as K, q as ee, T as te, I as fe, L as he } from "./index-
|
|
2
|
-
import { D as xe, a as pe, b as ve, c as ye, d as Ne } from "./Dialog-
|
|
3
|
-
import { L as je } from "./LazyLoadImage-
|
|
4
|
-
import { V as we } from "./VideoPlayer-
|
|
1
|
+
import { l as b, j as e, c as V, b as ne, J, a as ie, x as le, u as de, y as qe, k as G, A as D, K as Z, S as W, z as ue, N as me, P as ge, E as K, q as ee, T as te, I as fe, L as he } from "./index-Cxh1oACO.js";
|
|
2
|
+
import { D as xe, a as pe, b as ve, c as ye, d as Ne } from "./Dialog-CgGoiE6_.js";
|
|
3
|
+
import { L as je } from "./LazyLoadImage-CMDdqI0N.js";
|
|
4
|
+
import { V as we } from "./VideoPlayer-eG5fGmeF.js";
|
|
5
5
|
const re = (t, s) => `${Number.parseFloat((t == null ? void 0 : t.toFixed(s)) ?? 0)}`, se = (t, s) => {
|
|
6
6
|
switch (Math.floor(Math.abs(t - s))) {
|
|
7
7
|
case 0:
|
|
@@ -98,7 +98,7 @@ const re = (t, s) => `${Number.parseFloat((t == null ? void 0 : t.toFixed(s)) ??
|
|
|
98
98
|
}
|
|
99
99
|
)
|
|
100
100
|
] });
|
|
101
|
-
}, _e = b.lazy(() => import("./index-
|
|
101
|
+
}, _e = b.lazy(() => import("./index-Cr2lQ20J.js").then((t) => t.i)), Ee = b.lazy(() => import("./DotLottiePlayer-BomLEsxz.js")), Ie = ({ feedback: t }) => {
|
|
102
102
|
const s = "#374151", [a, n] = b.useState(10);
|
|
103
103
|
return b.useEffect(() => {
|
|
104
104
|
const r = (t && t.parameters || []).reduce((d, c) => d + Math.abs(parseFloat(c.crowdRating) - parseFloat(c.userRating)), 0);
|
|
@@ -149,7 +149,7 @@ const re = (t, s) => `${Number.parseFloat((t == null ? void 0 : t.toFixed(s)) ??
|
|
|
149
149
|
/* @__PURE__ */ e.jsx("div", { className: "qc-absolute qc-inset-0 qc-flex qc-items-center", children: /* @__PURE__ */ e.jsx("div", { className: "qc-h-[0.05rem] qc-w-full qc-bg-gradient-to-r qc-from-transparent qc-via-text-primary-light qc-to-transparent dark:qc-via-text-primary-dark" }) }),
|
|
150
150
|
!!s && /* @__PURE__ */ e.jsx("div", { className: "qc-relative qc-flex qc-justify-center", children: /* @__PURE__ */ e.jsx("span", { className: V("qc-text-primary qc-px-2 qc-font-medium", n), children: s }) })
|
|
151
151
|
] });
|
|
152
|
-
}, Ce = b.lazy(() => import("./DotLottiePlayer-
|
|
152
|
+
}, Ce = b.lazy(() => import("./DotLottiePlayer-BomLEsxz.js")), Oe = ({ parameter: t, selected: s, onChange: a, showValues: n = !0 }) => /* @__PURE__ */ e.jsxs("div", { className: "qc-mb-8 qc-flex qc-w-full qc-flex-col qc-gap-2 lg:qc-mb-12 lg:qc-gap-4", children: [
|
|
153
153
|
/* @__PURE__ */ e.jsx(
|
|
154
154
|
Pe,
|
|
155
155
|
{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { j as e, c as V, b as ie, R as J, a as de, v as qe, u as me, w as ue, k as F, A as D, H as te, S as W, x as ge, N as he, P as fe, E as K, p as re, T as se, G as xe, I as pe } from "./index-
|
|
1
|
+
import { j as e, c as V, b as ie, R as J, a as de, v as qe, u as me, w as ue, k as F, A as D, H as te, S as W, x as ge, N as he, P as fe, E as K, p as re, T as se, G as xe, I as pe } from "./index-Cpnhn0qY.js";
|
|
2
2
|
import { useState as E, useEffect as Z, lazy as ee } from "react";
|
|
3
|
-
import { D as ve, a as ye, b as Ne, c as je, d as we } from "./Dialog-
|
|
4
|
-
import { L as be } from "./LazyLoadImage-
|
|
5
|
-
import { V as Te } from "./VideoPlayer-
|
|
3
|
+
import { D as ve, a as ye, b as Ne, c as je, d as we } from "./Dialog-Cv43KmPi.js";
|
|
4
|
+
import { L as be } from "./LazyLoadImage-BCbT8tZG.js";
|
|
5
|
+
import { V as Te } from "./VideoPlayer-W1iQJ188.js";
|
|
6
6
|
const ce = (t, s) => `${Number.parseFloat((t == null ? void 0 : t.toFixed(s)) ?? 0)}`, ae = (t, s) => {
|
|
7
7
|
switch (Math.floor(Math.abs(t - s))) {
|
|
8
8
|
case 0:
|
|
@@ -99,7 +99,7 @@ const ce = (t, s) => `${Number.parseFloat((t == null ? void 0 : t.toFixed(s)) ??
|
|
|
99
99
|
}
|
|
100
100
|
)
|
|
101
101
|
] });
|
|
102
|
-
}, Pe = ee(() => import("./index-
|
|
102
|
+
}, Pe = ee(() => import("./index-rIZclAGD.js").then((t) => t.i)), Ce = ee(() => import("./DotLottiePlayer-CFEx0sKD.js")), Re = ({ feedback: t }) => {
|
|
103
103
|
const s = "#374151", [a, n] = E(10);
|
|
104
104
|
return Z(() => {
|
|
105
105
|
const r = (t && t.parameters || []).reduce((d, c) => d + Math.abs(parseFloat(c.crowdRating) - parseFloat(c.userRating)), 0);
|
|
@@ -150,7 +150,7 @@ const ce = (t, s) => `${Number.parseFloat((t == null ? void 0 : t.toFixed(s)) ??
|
|
|
150
150
|
/* @__PURE__ */ e.jsx("div", { className: "qc-absolute qc-inset-0 qc-flex qc-items-center", children: /* @__PURE__ */ e.jsx("div", { className: "qc-h-[0.05rem] qc-w-full qc-bg-gradient-to-r qc-from-transparent qc-via-text-primary-light qc-to-transparent dark:qc-via-text-primary-dark" }) }),
|
|
151
151
|
!!s && /* @__PURE__ */ e.jsx("div", { className: "qc-relative qc-flex qc-justify-center", children: /* @__PURE__ */ e.jsx("span", { className: V("qc-text-primary qc-px-2 qc-font-medium", n), children: s }) })
|
|
152
152
|
] });
|
|
153
|
-
}, Oe = ee(() => import("./DotLottiePlayer-
|
|
153
|
+
}, Oe = ee(() => import("./DotLottiePlayer-CFEx0sKD.js")), Ae = ({ parameter: t, selected: s, onChange: a, showValues: n = !0 }) => /* @__PURE__ */ e.jsxs("div", { className: "qc-mb-8 qc-flex qc-w-full qc-flex-col qc-gap-2 lg:qc-mb-12 lg:qc-gap-4", children: [
|
|
154
154
|
/* @__PURE__ */ e.jsx(
|
|
155
155
|
Ee,
|
|
156
156
|
{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as i, j as h,
|
|
1
|
+
import { l as i, j as h, aM as ct, U as ut, aN as lt, aJ as Ne, aI as L, aO as O, aP as Pe, aQ as dt, b as ft, aK as vt, c as W } from "./index-Cxh1oACO.js";
|
|
2
2
|
function T(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
3
3
|
return function(o) {
|
|
4
4
|
if (e == null || e(o), n === !1 || !o.defaultPrevented)
|
|
@@ -69,12 +69,12 @@ function pt(...e) {
|
|
|
69
69
|
};
|
|
70
70
|
return n.scopeName = t.scopeName, n;
|
|
71
71
|
}
|
|
72
|
-
var
|
|
72
|
+
var Y = globalThis != null && globalThis.document ? i.useLayoutEffect : () => {
|
|
73
73
|
}, gt = ct.useId || (() => {
|
|
74
74
|
}), yt = 0;
|
|
75
75
|
function J(e) {
|
|
76
76
|
const [t, n] = i.useState(gt());
|
|
77
|
-
return
|
|
77
|
+
return Y(() => {
|
|
78
78
|
n((r) => r ?? String(yt++));
|
|
79
79
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
80
80
|
}
|
|
@@ -400,7 +400,7 @@ function kt(e) {
|
|
|
400
400
|
var jt = "Portal", Ie = i.forwardRef((e, t) => {
|
|
401
401
|
var s;
|
|
402
402
|
const { container: n, ...r } = e, [o, a] = i.useState(!1);
|
|
403
|
-
|
|
403
|
+
Y(() => a(!0), []);
|
|
404
404
|
const c = n || o && ((s = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : s.body);
|
|
405
405
|
return c ? Ct.createPortal(/* @__PURE__ */ h.jsx(D.div, { ...r, ref: t }), c) : null;
|
|
406
406
|
});
|
|
@@ -430,13 +430,13 @@ function Bt(e) {
|
|
|
430
430
|
return i.useEffect(() => {
|
|
431
431
|
const l = B(r.current);
|
|
432
432
|
a.current = s === "mounted" ? l : "none";
|
|
433
|
-
}, [s]),
|
|
433
|
+
}, [s]), Y(() => {
|
|
434
434
|
const l = r.current, f = o.current;
|
|
435
435
|
if (f !== e) {
|
|
436
436
|
const m = a.current, g = B(l);
|
|
437
437
|
e ? d("MOUNT") : g === "none" || (l == null ? void 0 : l.display) === "none" ? d("UNMOUNT") : d(f && m !== g ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
|
|
438
438
|
}
|
|
439
|
-
}, [e, d]),
|
|
439
|
+
}, [e, d]), Y(() => {
|
|
440
440
|
if (t) {
|
|
441
441
|
let l;
|
|
442
442
|
const f = t.ownerDocument.defaultView ?? window, v = (g) => {
|
|
@@ -509,7 +509,7 @@ function Vt(e, t) {
|
|
|
509
509
|
return n.callback = t, n.facade;
|
|
510
510
|
}
|
|
511
511
|
var Gt = typeof window < "u" ? i.useLayoutEffect : i.useEffect, be = /* @__PURE__ */ new WeakMap();
|
|
512
|
-
function
|
|
512
|
+
function Yt(e, t) {
|
|
513
513
|
var n = Vt(null, function(r) {
|
|
514
514
|
return e.forEach(function(o) {
|
|
515
515
|
return re(o, r);
|
|
@@ -528,11 +528,11 @@ function Ht(e, t) {
|
|
|
528
528
|
be.set(n, e);
|
|
529
529
|
}, [e]), n;
|
|
530
530
|
}
|
|
531
|
-
function
|
|
531
|
+
function Ht(e) {
|
|
532
532
|
return e;
|
|
533
533
|
}
|
|
534
534
|
function Xt(e, t) {
|
|
535
|
-
t === void 0 && (t =
|
|
535
|
+
t === void 0 && (t = Ht);
|
|
536
536
|
var n = [], r = !1, o = {
|
|
537
537
|
read: function() {
|
|
538
538
|
if (r)
|
|
@@ -610,7 +610,7 @@ var _e = Zt(), oe = function() {
|
|
|
610
610
|
onScrollCapture: oe,
|
|
611
611
|
onWheelCapture: oe,
|
|
612
612
|
onTouchMoveCapture: oe
|
|
613
|
-
}), o = r[0], a = r[1], c = e.forwardProps, s = e.children, d = e.className, l = e.removeScrollBar, f = e.enabled, v = e.shards, m = e.sideCar, g = e.noIsolation, w = e.inert, u = e.allowPinchZoom, p = e.as, y = p === void 0 ? "div" : p, x = e.gapMode, b = Pe(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), C = m, S =
|
|
613
|
+
}), o = r[0], a = r[1], c = e.forwardProps, s = e.children, d = e.className, l = e.removeScrollBar, f = e.enabled, v = e.shards, m = e.sideCar, g = e.noIsolation, w = e.inert, u = e.allowPinchZoom, p = e.as, y = p === void 0 ? "div" : p, x = e.gapMode, b = Pe(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), C = m, S = Yt([n, t]), P = O(O({}, b), o);
|
|
614
614
|
return i.createElement(
|
|
615
615
|
i.Fragment,
|
|
616
616
|
null,
|
|
@@ -977,7 +977,7 @@ var Pn = function(e) {
|
|
|
977
977
|
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))), Dn(r, o, n, "aria-hidden")) : function() {
|
|
978
978
|
return null;
|
|
979
979
|
};
|
|
980
|
-
}, ue = "Dialog", [Ue,
|
|
980
|
+
}, ue = "Dialog", [Ue, Yn] = ht(ue), [On, N] = Ue(ue), $e = (e) => {
|
|
981
981
|
const {
|
|
982
982
|
__scopeDialog: t,
|
|
983
983
|
children: n,
|
|
@@ -1034,16 +1034,16 @@ var le = "DialogPortal", [Mn, ze] = Ue(le, {
|
|
|
1034
1034
|
return /* @__PURE__ */ h.jsx(Mn, { scope: t, forceMount: n, children: i.Children.map(r, (c) => /* @__PURE__ */ h.jsx(X, { present: n || a.open, children: /* @__PURE__ */ h.jsx(Ie, { asChild: !0, container: o, children: c }) })) });
|
|
1035
1035
|
};
|
|
1036
1036
|
Ve.displayName = le;
|
|
1037
|
-
var
|
|
1037
|
+
var H = "DialogOverlay", Ge = i.forwardRef(
|
|
1038
1038
|
(e, t) => {
|
|
1039
|
-
const n = ze(
|
|
1039
|
+
const n = ze(H, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = N(H, e.__scopeDialog);
|
|
1040
1040
|
return a.modal ? /* @__PURE__ */ h.jsx(X, { present: r || a.open, children: /* @__PURE__ */ h.jsx(In, { ...o, ref: t }) }) : null;
|
|
1041
1041
|
}
|
|
1042
1042
|
);
|
|
1043
|
-
Ge.displayName =
|
|
1043
|
+
Ge.displayName = H;
|
|
1044
1044
|
var In = i.forwardRef(
|
|
1045
1045
|
(e, t) => {
|
|
1046
|
-
const { __scopeDialog: n, ...r } = e, o = N(
|
|
1046
|
+
const { __scopeDialog: n, ...r } = e, o = N(H, n);
|
|
1047
1047
|
return (
|
|
1048
1048
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
1049
1049
|
// ie. when `Overlay` and `Content` are siblings
|
|
@@ -1058,13 +1058,13 @@ var In = i.forwardRef(
|
|
|
1058
1058
|
) })
|
|
1059
1059
|
);
|
|
1060
1060
|
}
|
|
1061
|
-
), I = "DialogContent",
|
|
1061
|
+
), I = "DialogContent", Ye = i.forwardRef(
|
|
1062
1062
|
(e, t) => {
|
|
1063
1063
|
const n = ze(I, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = N(I, e.__scopeDialog);
|
|
1064
1064
|
return /* @__PURE__ */ h.jsx(X, { present: r || a.open, children: a.modal ? /* @__PURE__ */ h.jsx(Ln, { ...o, ref: t }) : /* @__PURE__ */ h.jsx(_n, { ...o, ref: t }) });
|
|
1065
1065
|
}
|
|
1066
1066
|
);
|
|
1067
|
-
|
|
1067
|
+
Ye.displayName = I;
|
|
1068
1068
|
var Ln = i.forwardRef(
|
|
1069
1069
|
(e, t) => {
|
|
1070
1070
|
const n = N(I, e.__scopeDialog), r = i.useRef(null), o = L(t, n.contentRef, r);
|
|
@@ -1072,7 +1072,7 @@ var Ln = i.forwardRef(
|
|
|
1072
1072
|
const a = r.current;
|
|
1073
1073
|
if (a) return An(a);
|
|
1074
1074
|
}, []), /* @__PURE__ */ h.jsx(
|
|
1075
|
-
|
|
1075
|
+
He,
|
|
1076
1076
|
{
|
|
1077
1077
|
...e,
|
|
1078
1078
|
ref: o,
|
|
@@ -1097,7 +1097,7 @@ var Ln = i.forwardRef(
|
|
|
1097
1097
|
(e, t) => {
|
|
1098
1098
|
const n = N(I, e.__scopeDialog), r = i.useRef(!1), o = i.useRef(!1);
|
|
1099
1099
|
return /* @__PURE__ */ h.jsx(
|
|
1100
|
-
|
|
1100
|
+
He,
|
|
1101
1101
|
{
|
|
1102
1102
|
...e,
|
|
1103
1103
|
ref: t,
|
|
@@ -1116,7 +1116,7 @@ var Ln = i.forwardRef(
|
|
|
1116
1116
|
}
|
|
1117
1117
|
);
|
|
1118
1118
|
}
|
|
1119
|
-
),
|
|
1119
|
+
), He = i.forwardRef(
|
|
1120
1120
|
(e, t) => {
|
|
1121
1121
|
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, ...c } = e, s = N(I, n), d = i.useRef(null), l = L(t, d);
|
|
1122
1122
|
return $t(), /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
|
|
@@ -1181,7 +1181,7 @@ et.displayName = Je;
|
|
|
1181
1181
|
function fe(e) {
|
|
1182
1182
|
return e ? "open" : "closed";
|
|
1183
1183
|
}
|
|
1184
|
-
var tt = "DialogTitleWarning", [
|
|
1184
|
+
var tt = "DialogTitleWarning", [Hn, nt] = mt(tt, {
|
|
1185
1185
|
contentName: I,
|
|
1186
1186
|
titleName: de,
|
|
1187
1187
|
docsSlug: "dialog"
|
|
@@ -1201,7 +1201,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
1201
1201
|
const o = (a = e.current) == null ? void 0 : a.getAttribute("aria-describedby");
|
|
1202
1202
|
t && o && (document.getElementById(t) || console.warn(r));
|
|
1203
1203
|
}, [r, e, t]), null;
|
|
1204
|
-
}, jn = $e, Wn = Ve, rt = Ge, ot =
|
|
1204
|
+
}, jn = $e, Wn = Ve, rt = Ge, ot = Ye, at = Xe, st = Qe, Bn = et;
|
|
1205
1205
|
const Xn = jn, Un = Wn, it = i.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
|
|
1206
1206
|
rt,
|
|
1207
1207
|
{
|
|
@@ -1285,5 +1285,5 @@ export {
|
|
|
1285
1285
|
Et as m,
|
|
1286
1286
|
J as n,
|
|
1287
1287
|
Re as r,
|
|
1288
|
-
|
|
1288
|
+
Y as u
|
|
1289
1289
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as h, aE as xe, aD as L, aH as O, aI as Re, aJ as st, b as ct, aF as ut, c as W } from "./index-
|
|
1
|
+
import { j as h, aE as xe, aD as L, aH as O, aI as Re, aJ as st, b as ct, aF as ut, c as W } from "./index-Cpnhn0qY.js";
|
|
2
2
|
import * as s from "react";
|
|
3
3
|
import { useState as lt } from "react";
|
|
4
4
|
import * as dt from "react-dom";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as R1, l as E, c as Q3 } from "./index-
|
|
1
|
+
import { j as R1, l as E, c as Q3 } from "./index-Cxh1oACO.js";
|
|
2
2
|
var X3 = Object.defineProperty, Y3 = Object.defineProperties, Z3 = Object.getOwnPropertyDescriptors, G1 = Object.getOwnPropertySymbols, Y2 = Object.prototype.hasOwnProperty, Z2 = Object.prototype.propertyIsEnumerable, g2 = (u, n, i) => n in u ? X3(u, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : u[n] = i, $ = (u, n) => {
|
|
3
3
|
for (var i in n || (n = {})) Y2.call(n, i) && g2(u, i, n[i]);
|
|
4
4
|
if (G1) for (var i of G1(n)) Z2.call(n, i) && g2(u, i, n[i]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as R1, c as Y3 } from "./index-
|
|
1
|
+
import { j as R1, c as Y3 } from "./index-Cpnhn0qY.js";
|
|
2
2
|
import { useState as Z2, useRef as x1, useEffect as x, useCallback as Z3 } from "react";
|
|
3
3
|
var t0 = Object.defineProperty, e0 = Object.defineProperties, n0 = Object.getOwnPropertyDescriptors, J1 = Object.getOwnPropertySymbols, t3 = Object.prototype.hasOwnProperty, e3 = Object.prototype.propertyIsEnumerable, y2 = (d, n, i) => n in d ? t0(d, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : d[n] = i, $ = (d, n) => {
|
|
4
4
|
for (var i in n || (n = {})) t3.call(n, i) && y2(d, i, n[i]);
|