@qratilabs/qrati-connect 1.6.0 → 1.6.1
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/{3VW64HDT-XJaUiwaZ.js → 3VW64HDT-BUXBipEW.js} +2 -2
- package/{3VW64HDT-adEPNO2S.js → 3VW64HDT-C9EabY_7.js} +2 -2
- package/{67EVQ76A-fom4anrE.js → 67EVQ76A-BuLjtL72.js} +1 -1
- package/{67EVQ76A-DtqLeoxf.js → 67EVQ76A-CsyhvpIV.js} +1 -1
- package/CHANGELOG.md +7 -0
- package/{Combination-JBTd4dBv.js → Combination-BKCLhMAo.js} +1 -1
- package/{Combination-BylqvODe.js → Combination-qkGaPEdn.js} +1 -1
- package/{ContentsPage-E6CiKTuW.js → ContentsPage-CGrdFq8i.js} +4 -4
- package/{ContentsPage-DNT4dWy0.js → ContentsPage-D1iPNFLg.js} +4 -4
- package/{DotLottiePlayer-D7RPo4Ew.js → DotLottiePlayer-DA-Yh3zg.js} +1 -1
- package/{DotLottiePlayer-CYNz8YTi.js → DotLottiePlayer-DqhRxX--.js} +1 -1
- package/{J3FDRF32-CT432mHg.js → J3FDRF32-CH2RoGsH.js} +2 -2
- package/{J3FDRF32-CwyEcF37.js → J3FDRF32-D3VfAG0G.js} +2 -2
- package/{LazyLoadImage-gx-vvDMb.js → LazyLoadImage-BpU9qC5e.js} +1 -1
- package/{LazyLoadImage-Lx65nat5.js → LazyLoadImage-C5abzMV2.js} +1 -1
- package/{LeaderboardPage-CN9ChX42.js → LeaderboardPage-CI1i11dS.js} +1 -1
- package/{LeaderboardPage-BlG6Xp7O.js → LeaderboardPage-CwHcSdM3.js} +1 -1
- package/{PublicEvents-BuKH_2tS.js → PublicEvents-CS7DyKQO.js} +9 -9
- package/{PublicEvents-ESmECxoJ.js → PublicEvents-Dzjg_W0Z.js} +9 -9
- package/{RatePage-DtTTe2hU.js → RatePage-BDm8-UmB.js} +6 -6
- package/{RatePage-DRpLHO1y.js → RatePage-BuiskOvh.js} +6 -6
- package/{UploadPage-0w-UnLvV.js → UploadPage-B1icdI0Y.js} +3 -3
- package/{UploadPage-D87TN2HQ.js → UploadPage-U1m4_hDy.js} +2 -2
- package/{VideoPlayer-DbBXQECe.js → VideoPlayer-By0iTL1h.js} +1 -1
- package/{VideoPlayer-BGyvfTwb.js → VideoPlayer-D8Q2h_4I.js} +1 -1
- package/element.es.js +1 -1
- package/{heic2any-W520JBZe.js → heic2any-DE6hmdOM.js} +1 -1
- package/{index-B4VnROS7.js → index-6_58sahd.js} +78 -70
- package/{index-CzM_aWlx.js → index-CRVVPc2O.js} +78 -70
- package/{index-BR7i9WPC.js → index-DJMP38JF.js} +1 -1
- package/package.json +1 -1
- package/{photoswipe-BvwYU_np.js → photoswipe-BPElq1wX.js} +1 -1
- package/{photoswipe-Dh5sX-Ot.js → photoswipe-CY5-wgqz.js} +1 -1
- package/react.es.js +1 -1
- package/web.es.js +1 -1
|
@@ -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 "./67EVQ76A-
|
|
2
|
-
import {
|
|
1
|
+
import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./67EVQ76A-CsyhvpIV.js";
|
|
2
|
+
import { T as v, U as C, V as e } from "./index-CRVVPc2O.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
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 "./67EVQ76A-
|
|
2
|
-
import {
|
|
1
|
+
import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./67EVQ76A-BuLjtL72.js";
|
|
2
|
+
import { J as v, K as C, L as e } from "./index-6_58sahd.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var bs = Object.defineProperty;
|
|
2
2
|
var ps = (e, t, n) => t in e ? bs(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 { M as xe, O as z, P as Tt, T as U, K as D, L as m, U as qo, V as B, W as _, X as k, Y as V, Z as T, $ as ws, a0 as rr, a1 as $e, a2 as j, a3 as Vn, a4 as Gn, a5 as ut, a6 as A, a7 as xs, a8 as ln, a9 as Ne, aa as $s, ab as _t, ac as zt, ad as Cs, ae as Ss, af as xn, ag as ks, ah as Kr, ai as Kt, aj as Ro, ak as Es, al as Ds, am as W, an as Br, ao as Ms, ap as As, aq as or, ar as Ts, as as Fs, at as Rn, au as Is, av as Ps, aw as oe, ax as Ls, ay as Os } from "./index-
|
|
4
|
+
import { M as xe, O as z, P as Tt, T as U, K as D, L as m, U as qo, V as B, W as _, X as k, Y as V, Z as T, $ as ws, a0 as rr, a1 as $e, a2 as j, a3 as Vn, a4 as Gn, a5 as ut, a6 as A, a7 as xs, a8 as ln, a9 as Ne, aa as $s, ab as _t, ac as zt, ad as Cs, ae as Ss, af as xn, ag as ks, ah as Kr, ai as Kt, aj as Ro, ak as Es, al as Ds, am as W, an as Br, ao as Ms, ap as As, aq as or, ar as Ts, as as Fs, at as Rn, au as Is, av as Ps, aw as oe, ax as Ls, ay as Os } from "./index-6_58sahd.js";
|
|
5
5
|
var _s = (e) => e != null, qs = (e) => e.filter(_s);
|
|
6
6
|
function Rs(e) {
|
|
7
7
|
return (...t) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var bs = Object.defineProperty;
|
|
2
2
|
var ps = (e, t, n) => t in e ? bs(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 { W as xe, X as z, Y as Ft, Z as U, U as D, V as m, $ as qo, a0 as B, a1 as _, a2 as k, a3 as V, a4 as F, a5 as ws, a6 as rr, a7 as $e, a8 as j, a9 as Vn, aa as Gn, ab as ut, ac as A, ad as xs, ae as ln, af as Ne, ag as $s, ah as _t, ai as zt, aj as Cs, ak as Ss, al as xn, am as ks, an as Kr, ao as Kt, ap as Ro, aq as Es, ar as Ds, as as W, at as Br, au as Ms, av as As, aw as or, ax as Fs, ay as Ts, az as Rn, aA as Is, aB as Ps, aC as oe, aD as Ls, aE as Os } from "./index-
|
|
4
|
+
import { W as xe, X as z, Y as Ft, Z as U, U as D, V as m, $ as qo, a0 as B, a1 as _, a2 as k, a3 as V, a4 as F, a5 as ws, a6 as rr, a7 as $e, a8 as j, a9 as Vn, aa as Gn, ab as ut, ac as A, ad as xs, ae as ln, af as Ne, ag as $s, ah as _t, ai as zt, aj as Cs, ak as Ss, al as xn, am as ks, an as Kr, ao as Kt, ap as Ro, aq as Es, ar as Ds, as as W, at as Br, au as Ms, av as As, aw as or, ax as Fs, ay as Ts, az as Rn, aA as Is, aB as Ps, aC as oe, aD as Ls, aE as Os } from "./index-CRVVPc2O.js";
|
|
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.6.0](https://github.com/qrati-labs/qrati-connect-js/compare/v1.5.0...v1.6.0) (2025-03-22)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* add initialization log to QratiConnect component ([16aeb6d](https://github.com/qrati-labs/qrati-connect-js/commit/16aeb6d4933f379fc415c800c02f457f12428795))
|
|
7
|
+
|
|
1
8
|
# [1.5.0](https://github.com/qrati-labs/qrati-connect-js/compare/v1.4.0...v1.5.0) (2025-03-22)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i from "react";
|
|
2
2
|
import { useState as Re } from "react";
|
|
3
|
-
import { j as L, r as Ae, q as $, _ as A, H as he, I as Te } from "./index-
|
|
3
|
+
import { j as L, r as Ae, q as $, _ as A, H as he, I as Te } from "./index-6_58sahd.js";
|
|
4
4
|
import * as Le from "react-dom";
|
|
5
5
|
import Oe from "react-dom";
|
|
6
6
|
function z(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as i, j as L, K as Ae, L as Te, t as Le, s as $, M as Oe, _ as A, O as he, P as Me } from "./index-
|
|
1
|
+
import { f as i, j as L, K as Ae, L as Te, t as Le, s as $, M as Oe, _ as A, O as he, P as Me } from "./index-CRVVPc2O.js";
|
|
2
2
|
function z(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
3
3
|
return function(a) {
|
|
4
4
|
if (e == null || e(a), n === !1 || !a.defaultPrevented)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Q as Hn, i as St, h as Vn, b as Un, d as Yn, j as m, c as re, e as Wn, C as Ye, f as Le, g as Gn, D as zt, l as _e, m as $t, n as Y, N as Zn, o as Kn, p as et, k as Bt, q as je, r as Xn, u as tt, s as Qn, G as He, t as Jn, v as ei, S as ti, E as ni, w as ii } from "./index-
|
|
1
|
+
import { Q as Hn, i as St, h as Vn, b as Un, d as Yn, j as m, c as re, e as Wn, C as Ye, f as Le, g as Gn, D as zt, l as _e, m as $t, n as Y, N as Zn, o as Kn, p as et, k as Bt, q as je, r as Xn, u as tt, s as Qn, G as He, t as Jn, v as ei, S as ti, E as ni, w as ii } from "./index-6_58sahd.js";
|
|
2
2
|
import * as b from "react";
|
|
3
3
|
import Ae, { useMemo as ee, useReducer as si, useRef as nt, useCallback as oi, forwardRef as he, createElement as ri, Fragment as ai, useLayoutEffect as li, useEffect as Ht, useState as We, Component as ci } from "react";
|
|
4
|
-
import { L as di } from "./LazyLoadImage-
|
|
5
|
-
import { P as Ee, u as Ge, c as Vt, a as ui, b as Ut, d as hi, h as fi, R as pi, e as we, f as mi, F as gi, D as yi, g as wi, i as vi } from "./Combination-
|
|
4
|
+
import { L as di } from "./LazyLoadImage-C5abzMV2.js";
|
|
5
|
+
import { P as Ee, u as Ge, c as Vt, a as ui, b as Ut, d as hi, h as fi, R as pi, e as we, f as mi, F as gi, D as yi, g as wi, i as vi } from "./Combination-BKCLhMAo.js";
|
|
6
6
|
import * as xi from "react-dom";
|
|
7
7
|
var bi = class extends Hn {
|
|
8
8
|
constructor(t, e) {
|
|
@@ -3823,7 +3823,7 @@ const er = ({ eventId: t, contentId: e, emojis: n = [], counts: i = {}, userReac
|
|
|
3823
3823
|
wheelToZoom: !0,
|
|
3824
3824
|
pinchToClose: !0,
|
|
3825
3825
|
zoom: !1,
|
|
3826
|
-
pswpModule: () => import("./photoswipe-
|
|
3826
|
+
pswpModule: () => import("./photoswipe-BPElq1wX.js")
|
|
3827
3827
|
});
|
|
3828
3828
|
a.current = d, new bs(d), new Ts(d), new Ps(d), new Cs(d), d.init();
|
|
3829
3829
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Q as Fn, i as bt, h as jn, b as zn, d as $n, j as m, c as oe, e as Bn, f as y, C as Ve, g as Oe, l as Hn, D as It, m as Ce, n as Nt, o as Y, N as Vn, p as Un, q as Xe, k as Ft, s as Ne, t as Yn, u as Qe, v as Wn, G as $e, w as qe, x as Gn, y as Zn, S as Kn, E as Xn, z as Qn } from "./index-
|
|
2
|
-
import { L as Jn } from "./LazyLoadImage-
|
|
3
|
-
import { r as ei, P as Te, u as Ue, c as jt, a as ti, b as zt, d as ni, h as ii, R as si, e as ge, f as oi, F as ri, D as ai, g as li, i as ci } from "./Combination-
|
|
1
|
+
import { Q as Fn, i as bt, h as jn, b as zn, d as $n, j as m, c as oe, e as Bn, f as y, C as Ve, g as Oe, l as Hn, D as It, m as Ce, n as Nt, o as Y, N as Vn, p as Un, q as Xe, k as Ft, s as Ne, t as Yn, u as Qe, v as Wn, G as $e, w as qe, x as Gn, y as Zn, S as Kn, E as Xn, z as Qn } from "./index-CRVVPc2O.js";
|
|
2
|
+
import { L as Jn } from "./LazyLoadImage-BpU9qC5e.js";
|
|
3
|
+
import { r as ei, P as Te, u as Ue, c as jt, a as ti, b as zt, d as ni, h as ii, R as si, e as ge, f as oi, F as ri, D as ai, g as li, i as ci } from "./Combination-qkGaPEdn.js";
|
|
4
4
|
var di = class extends Fn {
|
|
5
5
|
constructor(t, e) {
|
|
6
6
|
super(t, e);
|
|
@@ -3820,7 +3820,7 @@ const Ho = ({ eventId: t, contentId: e, emojis: n = [], counts: i = {}, userReac
|
|
|
3820
3820
|
wheelToZoom: !0,
|
|
3821
3821
|
pinchToClose: !0,
|
|
3822
3822
|
zoom: !1,
|
|
3823
|
-
pswpModule: () => import("./photoswipe-
|
|
3823
|
+
pswpModule: () => import("./photoswipe-CY5-wgqz.js")
|
|
3824
3824
|
});
|
|
3825
3825
|
a.current = d, new ds(d), new us(d), new hs(d), new ms(d), d.init();
|
|
3826
3826
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as T1, c as B3 } from "./index-
|
|
1
|
+
import { j as T1, c as B3 } from "./index-6_58sahd.js";
|
|
2
2
|
import { useState as G2, useRef as x1, useEffect as R, useCallback as H3 } from "react";
|
|
3
3
|
var N3 = Object.defineProperty, V3 = Object.defineProperties, J3 = Object.getOwnPropertyDescriptors, N1 = Object.getOwnPropertySymbols, X2 = Object.prototype.hasOwnProperty, Y2 = Object.prototype.propertyIsEnumerable, p2 = (h, n, i) => n in h ? N3(h, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : h[n] = i, z = (h, n) => {
|
|
4
4
|
for (var i in n || (n = {})) X2.call(n, i) && p2(h, i, n[i]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as x1, f as I, c as j3 } from "./index-
|
|
1
|
+
import { j as x1, f as I, c as j3 } from "./index-CRVVPc2O.js";
|
|
2
2
|
var U3 = Object.defineProperty, B3 = Object.defineProperties, H3 = Object.getOwnPropertyDescriptors, H1 = Object.getOwnPropertySymbols, q2 = Object.prototype.hasOwnProperty, G2 = Object.prototype.propertyIsEnumerable, _2 = (h, n, i) => n in h ? U3(h, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : h[n] = i, z = (h, n) => {
|
|
3
3
|
for (var i in n || (n = {})) q2.call(n, i) && _2(h, i, n[i]);
|
|
4
4
|
if (H1) for (var i of H1(n)) G2.call(n, i) && _2(h, i, n[i]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c, T as l, P as m, a as u, D as v, Q as i } from "./67EVQ76A-
|
|
2
|
-
import { T as d, U as f, V as e } from "./index-
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./67EVQ76A-CsyhvpIV.js";
|
|
2
|
+
import { T as d, U as f, V as e } from "./index-CRVVPc2O.js";
|
|
3
3
|
var p = (a) => {
|
|
4
4
|
const [r, t] = c({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c, T as l, P as m, a as u, D as v, Q as i } from "./67EVQ76A-
|
|
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 "./67EVQ76A-BuLjtL72.js";
|
|
2
|
+
import { J as d, K as f, L as e } from "./index-6_58sahd.js";
|
|
3
3
|
var p = (a) => {
|
|
4
4
|
const [r, t] = c({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as p, j as I, c as k } from "./index-
|
|
1
|
+
import { f as p, j as I, c as k } from "./index-CRVVPc2O.js";
|
|
2
2
|
var Y = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "#", "$", "%", "*", "+", ",", "-", ".", ":", ";", "=", "?", "@", "[", "]", "^", "_", "{", "|", "}", "~"], g = (e) => {
|
|
3
3
|
let t = 0;
|
|
4
4
|
for (let r = 0; r < e.length; r++) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as V, c as k } from "./index-
|
|
1
|
+
import { j as V, c as k } from "./index-6_58sahd.js";
|
|
2
2
|
import * as p from "react";
|
|
3
3
|
import { useRef as z, useState as D } from "react";
|
|
4
4
|
var B = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "#", "$", "%", "*", "+", ",", "-", ".", ":", ";", "=", "?", "@", "[", "]", "^", "_", "{", "|", "}", "~"], g = (e) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as c, t as N, u as y, v as g, k as v, c as b, f as m } from "./index-
|
|
1
|
+
import { j as c, t as N, u as y, v as g, k as v, c as b, f as m } from "./index-6_58sahd.js";
|
|
2
2
|
import { useState as f, useEffect as w, Fragment as S } from "react";
|
|
3
3
|
const u = ({ title: q, entries: s = [], showFloatingPoint: a = !1, hidePictures: d = !0 }) => {
|
|
4
4
|
var i, l, o, e, n, x;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as c, x as N, u as y, f as q, y as g, k as b, c as v, g as f } from "./index-
|
|
1
|
+
import { j as c, x as N, u as y, f as q, y as g, k as b, c as v, g as f } from "./index-CRVVPc2O.js";
|
|
2
2
|
const h = ({ title: d, entries: s = [], showFloatingPoint: a = !1, hidePictures: i = !0 }) => {
|
|
3
3
|
var o, l, x, e, n, m;
|
|
4
4
|
const r = d.replace(/\s+/g, "-").toLowerCase();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { u as m, a as u, j as s, S as q, N as h, E as
|
|
2
|
-
import { L as t } from "./LazyLoadImage-
|
|
3
|
-
const p = (r) => r ===
|
|
4
|
-
const { organizationId: r } = m(), { isLoading: d, data:
|
|
1
|
+
import { u as m, a as u, j as s, S as q, N as h, E as o, c as g, k as n } from "./index-CRVVPc2O.js";
|
|
2
|
+
import { L as t } from "./LazyLoadImage-BpU9qC5e.js";
|
|
3
|
+
const p = (r) => r === o.UPCOMING ? "qc-bg-warning" : r === o.CLOSED ? "qc-bg-error" : "qc-bg-success", N = () => {
|
|
4
|
+
const { organizationId: r } = m(), { isLoading: d, data: l } = u({
|
|
5
5
|
queryKey: [`public-events-${r}`],
|
|
6
6
|
queryFn: async () => {
|
|
7
7
|
const c = await n.get(`https://qrati.com/api/connect/${r}/public-events`, {
|
|
@@ -13,22 +13,22 @@ const p = (r) => r === l.UPCOMING ? "qc-bg-warning" : r === l.CLOSED ? "qc-bg-er
|
|
|
13
13
|
return c.data;
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
return d ? /* @__PURE__ */ s.jsx("div", { className: "qc-grid qc-grid-cols-1 qc-gap-4 sm:qc-grid-cols-3", children: Array.from({ length: 3 }).map((c) => /* @__PURE__ */ s.jsxs("div", { className: "qc-space-y-4", children: [
|
|
16
|
+
return d ? /* @__PURE__ */ s.jsx("div", { className: "qc-grid qc-grid-cols-1 qc-gap-4 sm:qc-grid-cols-3", children: Array.from({ length: 3 }).map((c, a) => /* @__PURE__ */ s.jsxs("div", { className: "qc-space-y-4", children: [
|
|
17
17
|
/* @__PURE__ */ s.jsx(q, { className: "qc-h-72 qc-overflow-hidden qc-rounded sm:qc-h-80" }),
|
|
18
18
|
/* @__PURE__ */ s.jsx(q, { className: "qc-mx-auto qc-h-6 qc-w-64 qc-rounded" })
|
|
19
|
-
] },
|
|
20
|
-
var
|
|
19
|
+
] }, a)) }) : /* @__PURE__ */ s.jsx("div", { className: "qc-grid qc-grid-cols-1 qc-gap-4 sm:qc-grid-cols-3", children: l == null ? void 0 : l.map((c) => {
|
|
20
|
+
var a, i;
|
|
21
21
|
return /* @__PURE__ */ s.jsx(h, { to: `/event/${c.slug}/gallery`, className: "qc-block", children: /* @__PURE__ */ s.jsxs("div", { className: "qc-space-y-4", children: [
|
|
22
22
|
/* @__PURE__ */ s.jsxs("div", { className: "qc-relative qc-h-72 qc-overflow-hidden qc-rounded sm:qc-h-80", children: [
|
|
23
23
|
/* @__PURE__ */ s.jsx(
|
|
24
24
|
t,
|
|
25
25
|
{
|
|
26
26
|
wrapperClassName: "qc-size-full sm:hover:qc-scale-105 sm:qc-transition-transform",
|
|
27
|
-
src: c != null && c.coverImageUrl ? c == null ? void 0 : c.coverImageUrl : ((
|
|
27
|
+
src: c != null && c.coverImageUrl ? c == null ? void 0 : c.coverImageUrl : ((a = c == null ? void 0 : c.contents) == null ? void 0 : a.length) > 0 ? c.contents[0].thumbnailUrl : null,
|
|
28
28
|
blurhash: c != null && c.coverBlurHash ? c == null ? void 0 : c.coverBlurHash : ((i = c == null ? void 0 : c.contents) == null ? void 0 : i.length) > 0 ? c.contents[0].blurHash : null
|
|
29
29
|
}
|
|
30
30
|
),
|
|
31
|
-
(c == null ? void 0 : c.status) !==
|
|
31
|
+
(c == null ? void 0 : c.status) !== o.CLOSED && /* @__PURE__ */ s.jsx(
|
|
32
32
|
"span",
|
|
33
33
|
{
|
|
34
34
|
className: g(
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { u as m, a as u, j as s, S as q, N as h, E as
|
|
1
|
+
import { u as m, a as u, j as s, S as q, N as h, E as o, c as g, k as n } from "./index-6_58sahd.js";
|
|
2
2
|
import "react";
|
|
3
|
-
import { L as t } from "./LazyLoadImage-
|
|
4
|
-
const p = (r) => r ===
|
|
5
|
-
const { organizationId: r } = m(), { isLoading: d, data:
|
|
3
|
+
import { L as t } from "./LazyLoadImage-C5abzMV2.js";
|
|
4
|
+
const p = (r) => r === o.UPCOMING ? "qc-bg-warning" : r === o.CLOSED ? "qc-bg-error" : "qc-bg-success", b = () => {
|
|
5
|
+
const { organizationId: r } = m(), { isLoading: d, data: l } = u({
|
|
6
6
|
queryKey: [`public-events-${r}`],
|
|
7
7
|
queryFn: async () => {
|
|
8
8
|
const c = await n.get(`https://qrati.com/api/connect/${r}/public-events`, {
|
|
@@ -14,22 +14,22 @@ const p = (r) => r === l.UPCOMING ? "qc-bg-warning" : r === l.CLOSED ? "qc-bg-er
|
|
|
14
14
|
return c.data;
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
|
-
return d ? /* @__PURE__ */ s.jsx("div", { className: "qc-grid qc-grid-cols-1 qc-gap-4 sm:qc-grid-cols-3", children: Array.from({ length: 3 }).map((c) => /* @__PURE__ */ s.jsxs("div", { className: "qc-space-y-4", children: [
|
|
17
|
+
return d ? /* @__PURE__ */ s.jsx("div", { className: "qc-grid qc-grid-cols-1 qc-gap-4 sm:qc-grid-cols-3", children: Array.from({ length: 3 }).map((c, a) => /* @__PURE__ */ s.jsxs("div", { className: "qc-space-y-4", children: [
|
|
18
18
|
/* @__PURE__ */ s.jsx(q, { className: "qc-h-72 qc-overflow-hidden qc-rounded sm:qc-h-80" }),
|
|
19
19
|
/* @__PURE__ */ s.jsx(q, { className: "qc-mx-auto qc-h-6 qc-w-64 qc-rounded" })
|
|
20
|
-
] },
|
|
21
|
-
var
|
|
20
|
+
] }, a)) }) : /* @__PURE__ */ s.jsx("div", { className: "qc-grid qc-grid-cols-1 qc-gap-4 sm:qc-grid-cols-3", children: l == null ? void 0 : l.map((c) => {
|
|
21
|
+
var a, i;
|
|
22
22
|
return /* @__PURE__ */ s.jsx(h, { to: `/event/${c.slug}/gallery`, className: "qc-block", children: /* @__PURE__ */ s.jsxs("div", { className: "qc-space-y-4", children: [
|
|
23
23
|
/* @__PURE__ */ s.jsxs("div", { className: "qc-relative qc-h-72 qc-overflow-hidden qc-rounded sm:qc-h-80", children: [
|
|
24
24
|
/* @__PURE__ */ s.jsx(
|
|
25
25
|
t,
|
|
26
26
|
{
|
|
27
27
|
wrapperClassName: "qc-size-full sm:hover:qc-scale-105 sm:qc-transition-transform",
|
|
28
|
-
src: c != null && c.coverImageUrl ? c == null ? void 0 : c.coverImageUrl : ((
|
|
28
|
+
src: c != null && c.coverImageUrl ? c == null ? void 0 : c.coverImageUrl : ((a = c == null ? void 0 : c.contents) == null ? void 0 : a.length) > 0 ? c.contents[0].thumbnailUrl : null,
|
|
29
29
|
blurhash: c != null && c.coverBlurHash ? c == null ? void 0 : c.coverBlurHash : ((i = c == null ? void 0 : c.contents) == null ? void 0 : i.length) > 0 ? c.contents[0].blurHash : null
|
|
30
30
|
}
|
|
31
31
|
),
|
|
32
|
-
(c == null ? void 0 : c.status) !==
|
|
32
|
+
(c == null ? void 0 : c.status) !== o.CLOSED && /* @__PURE__ */ s.jsx(
|
|
33
33
|
"span",
|
|
34
34
|
{
|
|
35
35
|
className: g(
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { j as t, q as re, r as Ge, u as pe, s as We, c as A, R as Z, t as Be, p as Ve, v as Ue, k as V, A as de, S as J, E as Q, n as ue, B as He, F as Ye } from "./index-
|
|
1
|
+
import { j as t, q as re, r as Ge, u as pe, s as We, c as A, R as Z, t as Be, p as Ve, v as Ue, k as V, A as de, S as J, E as Q, n as ue, B as He, F as Ye } from "./index-6_58sahd.js";
|
|
2
2
|
import * as x from "react";
|
|
3
3
|
import { useState as T, useEffect as ce, lazy as se } from "react";
|
|
4
|
-
import { g as Xe, c as Ke, i as ee, b as oe, d as Ze, P as H, e as U, h as Je, R as Qe, f as et, F as tt, D as rt, j as ct } from "./Combination-
|
|
5
|
-
import { L as st } from "./LazyLoadImage-
|
|
6
|
-
import { V as ot } from "./VideoPlayer-
|
|
4
|
+
import { g as Xe, c as Ke, i as ee, b as oe, d as Ze, P as H, e as U, h as Je, R as Qe, f as et, F as tt, D as rt, j as ct } from "./Combination-BKCLhMAo.js";
|
|
5
|
+
import { L as st } from "./LazyLoadImage-C5abzMV2.js";
|
|
6
|
+
import { V as ot } from "./VideoPlayer-By0iTL1h.js";
|
|
7
7
|
var ae = "Dialog", [xe, Ft] = Ke(ae), [at, I] = xe(ae), he = (e) => {
|
|
8
8
|
const {
|
|
9
9
|
__scopeDialog: r,
|
|
@@ -387,7 +387,7 @@ const qe = (e, r) => `${Number.parseFloat((e == null ? void 0 : e.toFixed(r)) ??
|
|
|
387
387
|
}
|
|
388
388
|
)
|
|
389
389
|
] });
|
|
390
|
-
}, jt = se(() => import("./index-O4xJCcGD.js").then((e) => e.i)), wt = se(() => import("./DotLottiePlayer-
|
|
390
|
+
}, jt = se(() => import("./index-O4xJCcGD.js").then((e) => e.i)), wt = se(() => import("./DotLottiePlayer-DA-Yh3zg.js")), bt = ({ feedback: e }) => {
|
|
391
391
|
const r = "#374151", [s, o] = T(10);
|
|
392
392
|
return ce(() => {
|
|
393
393
|
const c = (e && e.parameters || []).reduce((a, n) => a + Math.abs(parseFloat(n.crowdRating) - parseFloat(n.userRating)), 0);
|
|
@@ -438,7 +438,7 @@ const qe = (e, r) => `${Number.parseFloat((e == null ? void 0 : e.toFixed(r)) ??
|
|
|
438
438
|
/* @__PURE__ */ t.jsx("div", { className: "qc-absolute qc-inset-0 qc-flex qc-items-center", children: /* @__PURE__ */ t.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" }) }),
|
|
439
439
|
!!r && /* @__PURE__ */ t.jsx("div", { className: "qc-relative qc-flex qc-justify-center", children: /* @__PURE__ */ t.jsx("span", { className: A("qc-text-primary qc-px-2 qc-font-medium", o), children: r }) })
|
|
440
440
|
] });
|
|
441
|
-
}, _t = se(() => import("./DotLottiePlayer-
|
|
441
|
+
}, _t = se(() => import("./DotLottiePlayer-DA-Yh3zg.js")), Rt = ({ parameter: e, selected: r, onChange: s, showValues: o = !0 }) => /* @__PURE__ */ t.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: [
|
|
442
442
|
/* @__PURE__ */ t.jsx(
|
|
443
443
|
Ct,
|
|
444
444
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as l, j as t, s as te, t as ze, u as me, v as Le, c as O, R as J, x as ke, q as Ge, y as We, k as B, H as ne, S as K, E as Z, o as ie, I as Be, J as Ve } from "./index-
|
|
2
|
-
import { g as He, c as Ue, i as Q, b as re, d as Ye, P as H, e as V, h as Xe, R as Je, f as Ke, F as Ze, D as Qe, j as et } from "./Combination-
|
|
3
|
-
import { L as tt } from "./LazyLoadImage-
|
|
4
|
-
import { V as rt } from "./VideoPlayer-
|
|
1
|
+
import { f as l, j as t, s as te, t as ze, u as me, v as Le, c as O, R as J, x as ke, q as Ge, y as We, k as B, H as ne, S as K, E as Z, o as ie, I as Be, J as Ve } from "./index-CRVVPc2O.js";
|
|
2
|
+
import { g as He, c as Ue, i as Q, b as re, d as Ye, P as H, e as V, h as Xe, R as Je, f as Ke, F as Ze, D as Qe, j as et } from "./Combination-qkGaPEdn.js";
|
|
3
|
+
import { L as tt } from "./LazyLoadImage-BpU9qC5e.js";
|
|
4
|
+
import { V as rt } from "./VideoPlayer-D8Q2h_4I.js";
|
|
5
5
|
var se = "Dialog", [fe, Ot] = Ue(se), [st, T] = fe(se), ge = (e) => {
|
|
6
6
|
const {
|
|
7
7
|
__scopeDialog: r,
|
|
@@ -385,7 +385,7 @@ const le = (e, r) => `${Number.parseFloat((e == null ? void 0 : e.toFixed(r)) ??
|
|
|
385
385
|
}
|
|
386
386
|
)
|
|
387
387
|
] });
|
|
388
|
-
}, vt = l.lazy(() => import("./index-
|
|
388
|
+
}, vt = l.lazy(() => import("./index-DJMP38JF.js").then((e) => e.i)), yt = l.lazy(() => import("./DotLottiePlayer-DqhRxX--.js")), Nt = ({ feedback: e }) => {
|
|
389
389
|
const r = "#374151", [c, o] = l.useState(10);
|
|
390
390
|
return l.useEffect(() => {
|
|
391
391
|
const s = (e && e.parameters || []).reduce((a, n) => a + Math.abs(parseFloat(n.crowdRating) - parseFloat(n.userRating)), 0);
|
|
@@ -436,7 +436,7 @@ const le = (e, r) => `${Number.parseFloat((e == null ? void 0 : e.toFixed(r)) ??
|
|
|
436
436
|
/* @__PURE__ */ t.jsx("div", { className: "qc-absolute qc-inset-0 qc-flex qc-items-center", children: /* @__PURE__ */ t.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" }) }),
|
|
437
437
|
!!r && /* @__PURE__ */ t.jsx("div", { className: "qc-relative qc-flex qc-justify-center", children: /* @__PURE__ */ t.jsx("span", { className: O("qc-text-primary qc-px-2 qc-font-medium", o), children: r }) })
|
|
438
438
|
] });
|
|
439
|
-
}, wt = l.lazy(() => import("./DotLottiePlayer-
|
|
439
|
+
}, wt = l.lazy(() => import("./DotLottiePlayer-DqhRxX--.js")), bt = ({ parameter: e, selected: r, onChange: c, showValues: o = !0 }) => /* @__PURE__ */ t.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: [
|
|
440
440
|
/* @__PURE__ */ t.jsx(
|
|
441
441
|
jt,
|
|
442
442
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { w as Ln, f as G, j as H, o as Un, c as Ft, A as st, B as ke, x as md, u as gd, q as yd, y as xd, k as So, F as Xe, E as Sd, S as Ed } from "./index-
|
|
2
|
-
import { V as Td } from "./VideoPlayer-
|
|
1
|
+
import { w as Ln, f as G, j as H, o as Un, c as Ft, A as st, B as ke, x as md, u as gd, q as yd, y as xd, k as So, F as Xe, E as Sd, S as Ed } from "./index-CRVVPc2O.js";
|
|
2
|
+
import { V as Td } from "./VideoPlayer-D8Q2h_4I.js";
|
|
3
3
|
const ve = [];
|
|
4
4
|
for (let e = 0; e < 256; ++e)
|
|
5
5
|
ve.push((e + 256).toString(16).slice(1));
|
|
@@ -12122,7 +12122,7 @@ const yT = 2400, vs = ["jpg", "jpeg", "png", "webp", "heic", "tiff", "bmp"], dd
|
|
|
12122
12122
|
try {
|
|
12123
12123
|
const c = (d = (l = e.originalFile) == null ? void 0 : l.name) == null ? void 0 : d.split(".").pop();
|
|
12124
12124
|
if (["heic", "heif"].includes(c == null ? void 0 : c.toLowerCase()) && typeof window < "u") {
|
|
12125
|
-
const u = (await import("./heic2any-
|
|
12125
|
+
const u = (await import("./heic2any-DE6hmdOM.js").then((f) => f.h)).default;
|
|
12126
12126
|
r = await u({ blob: e.originalFile, toType: "image/jpeg" });
|
|
12127
12127
|
}
|
|
12128
12128
|
} catch (c) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as q, n as qn, c as Dt, x as ct, y as Be, t as Cd, u as Fd, p as wd, v as _d, k as Fo, z as Je, E as Rd, S as Dd } from "./index-
|
|
1
|
+
import { j as q, n as qn, c as Dt, x as ct, y as Be, t as Cd, u as Fd, p as wd, v as _d, k as Fo, z as Je, E as Rd, S as Dd } from "./index-6_58sahd.js";
|
|
2
2
|
import * as ws from "react";
|
|
3
3
|
import Hn, { useDebugValue as wo, createElement as mu, useRef as He, useContext as Ae, useState as De, useCallback as St, useEffect as Bt, createContext as Sn, useLayoutEffect as Md, useId as _s, useInsertionEffect as gu, useMemo as it, Children as Od, isValidElement as Nd, forwardRef as Ld, Fragment as Rs, Component as Ud } from "react";
|
|
4
|
-
import { V as kd } from "./VideoPlayer-
|
|
4
|
+
import { V as kd } from "./VideoPlayer-By0iTL1h.js";
|
|
5
5
|
const Te = [];
|
|
6
6
|
for (let e = 0; e < 256; ++e)
|
|
7
7
|
Te.push((e + 256).toString(16).slice(1));
|
package/element.es.js
CHANGED
|
@@ -5869,7 +5869,7 @@ var wb = (t, e = !1) => {
|
|
|
5869
5869
|
const e = ql(() => {
|
|
5870
5870
|
const r = this, [n] = h(this, fr), [s] = h(this, pr), [i] = h(this, mr), [o] = h(this, gr), [a] = h(this, dr);
|
|
5871
5871
|
let l;
|
|
5872
|
-
return h(this, yr) ? l = h(this, yr) : (l = Ml(() => import("./J3FDRF32-
|
|
5872
|
+
return h(this, yr) ? l = h(this, yr) : (l = Ml(() => import("./J3FDRF32-D3VfAG0G.js")), _(this, yr, l)), nc(h(this, yn), h(this, hr)), Dl(l, Ll({
|
|
5873
5873
|
get queryFlavor() {
|
|
5874
5874
|
return h(r, mn);
|
|
5875
5875
|
},
|
|
@@ -5963,7 +5963,7 @@ var wb = (t, e = !1) => {
|
|
|
5963
5963
|
const e = ql(() => {
|
|
5964
5964
|
const r = this, [n] = h(this, wr), [s] = h(this, Er), [i] = h(this, _r), [o] = h(this, Ir), [a] = h(this, vr), [l] = h(this, Rr);
|
|
5965
5965
|
let c;
|
|
5966
|
-
return h(this, Tr) ? c = h(this, Tr) : (c = Ml(() => import("./3VW64HDT-
|
|
5966
|
+
return h(this, Tr) ? c = h(this, Tr) : (c = Ml(() => import("./3VW64HDT-C9EabY_7.js")), _(this, Tr, c)), nc(h(this, _n), h(this, br)), Dl(c, Ll({
|
|
5967
5967
|
get queryFlavor() {
|
|
5968
5968
|
return h(r, wn);
|
|
5969
5969
|
},
|
|
@@ -6080,7 +6080,7 @@ var Jf = process.env.NODE_ENV !== "development" ? function() {
|
|
|
6080
6080
|
return null;
|
|
6081
6081
|
} : Qf;
|
|
6082
6082
|
process.env.NODE_ENV;
|
|
6083
|
-
const Xf = ({ title: t, description: e }) => /* @__PURE__ */ T.jsxs("div", { className: "qc-w-full qc-flex-col qc-items-center qc-justify-center qc-gap-
|
|
6083
|
+
const Xf = ({ title: t, description: e }) => /* @__PURE__ */ T.jsxs("div", { className: "qc-my-8 qc-flex qc-w-full qc-flex-col qc-items-center qc-justify-center qc-gap-4", children: [
|
|
6084
6084
|
/* @__PURE__ */ T.jsx(
|
|
6085
6085
|
"img",
|
|
6086
6086
|
{
|
|
@@ -6088,7 +6088,7 @@ const Xf = ({ title: t, description: e }) => /* @__PURE__ */ T.jsxs("div", { cla
|
|
|
6088
6088
|
src: "https://banner2.cleanpng.com/20180531/egc/avo4mnj68.webp"
|
|
6089
6089
|
}
|
|
6090
6090
|
),
|
|
6091
|
-
/* @__PURE__ */ T.jsx("h1", { children: t }),
|
|
6091
|
+
/* @__PURE__ */ T.jsx("h1", { className: "qc-text-lg qc-font-medium", children: t }),
|
|
6092
6092
|
/* @__PURE__ */ T.jsx("h2", { children: e })
|
|
6093
6093
|
] }), sc = Hi(), Zf = (t) => /* @__PURE__ */ T.jsx(sc.Provider, { value: t, children: t.children }), to = () => {
|
|
6094
6094
|
const t = Vi(sc);
|
|
@@ -15002,34 +15002,6 @@ const J = (t) => {
|
|
|
15002
15002
|
const t = Vi(cu);
|
|
15003
15003
|
if (t === void 0) throw new Error("useTheme must be used within an ThemeProvider");
|
|
15004
15004
|
return t;
|
|
15005
|
-
}, Dv = ({ eventSlug: t }) => {
|
|
15006
|
-
const { organizationId: e } = to(), { isLoading: r, data: n, isError: s, error: i } = Il({
|
|
15007
|
-
queryKey: [`event-data-${e}-${t}`],
|
|
15008
|
-
queryFn: async () => {
|
|
15009
|
-
try {
|
|
15010
|
-
const o = await Pi.get(`https://qrati.com/api/connect/${e}/event-data`, {
|
|
15011
|
-
searchParams: t ? { eventSlug: t } : void 0,
|
|
15012
|
-
headers: {
|
|
15013
|
-
"x-org-id": e
|
|
15014
|
-
}
|
|
15015
|
-
}).json();
|
|
15016
|
-
if (o.error)
|
|
15017
|
-
throw new Error(o.error);
|
|
15018
|
-
return o.data;
|
|
15019
|
-
} catch (o) {
|
|
15020
|
-
throw new Error((o == null ? void 0 : o.message) || o || "Failed to fetch public events");
|
|
15021
|
-
}
|
|
15022
|
-
},
|
|
15023
|
-
enabled: !!e && !!t
|
|
15024
|
-
});
|
|
15025
|
-
return {
|
|
15026
|
-
isLoading: r,
|
|
15027
|
-
event: n == null ? void 0 : n.event,
|
|
15028
|
-
ads: n == null ? void 0 : n.ads,
|
|
15029
|
-
parameters: n == null ? void 0 : n.parameters,
|
|
15030
|
-
isError: s,
|
|
15031
|
-
error: i
|
|
15032
|
-
};
|
|
15033
15005
|
};
|
|
15034
15006
|
function Na(t, e) {
|
|
15035
15007
|
if (typeof t == "function")
|
|
@@ -15056,7 +15028,7 @@ function Cb(...t) {
|
|
|
15056
15028
|
return y.useCallback(uu(...t), t);
|
|
15057
15029
|
}
|
|
15058
15030
|
var du = y.forwardRef((t, e) => {
|
|
15059
|
-
const { children: r, ...n } = t, s = y.Children.toArray(r), i = s.find(
|
|
15031
|
+
const { children: r, ...n } = t, s = y.Children.toArray(r), i = s.find(Lv);
|
|
15060
15032
|
if (i) {
|
|
15061
15033
|
const o = i.props.children, a = s.map((l) => l === i ? y.Children.count(o) > 1 ? y.Children.only(null) : y.isValidElement(o) ? o.props.children : null : l);
|
|
15062
15034
|
return /* @__PURE__ */ T.jsx($i, { ...n, ref: e, children: y.isValidElement(o) ? y.cloneElement(o, void 0, a) : null });
|
|
@@ -15067,17 +15039,17 @@ du.displayName = "Slot";
|
|
|
15067
15039
|
var $i = y.forwardRef((t, e) => {
|
|
15068
15040
|
const { children: r, ...n } = t;
|
|
15069
15041
|
if (y.isValidElement(r)) {
|
|
15070
|
-
const s =
|
|
15042
|
+
const s = Uv(r), i = Mv(n, r.props);
|
|
15071
15043
|
return r.type !== y.Fragment && (i.ref = e ? uu(e, s) : s), y.cloneElement(r, i);
|
|
15072
15044
|
}
|
|
15073
15045
|
return y.Children.count(r) > 1 ? y.Children.only(null) : null;
|
|
15074
15046
|
});
|
|
15075
15047
|
$i.displayName = "SlotClone";
|
|
15076
|
-
var
|
|
15077
|
-
function
|
|
15078
|
-
return y.isValidElement(t) && t.type ===
|
|
15048
|
+
var Dv = ({ children: t }) => /* @__PURE__ */ T.jsx(T.Fragment, { children: t });
|
|
15049
|
+
function Lv(t) {
|
|
15050
|
+
return y.isValidElement(t) && t.type === Dv;
|
|
15079
15051
|
}
|
|
15080
|
-
function
|
|
15052
|
+
function Mv(t, e) {
|
|
15081
15053
|
const r = { ...e };
|
|
15082
15054
|
for (const n in e) {
|
|
15083
15055
|
const s = t[n], i = e[n];
|
|
@@ -15087,12 +15059,12 @@ function Uv(t, e) {
|
|
|
15087
15059
|
}
|
|
15088
15060
|
return { ...t, ...r };
|
|
15089
15061
|
}
|
|
15090
|
-
function
|
|
15062
|
+
function Uv(t) {
|
|
15091
15063
|
var n, s;
|
|
15092
15064
|
let e = (n = Object.getOwnPropertyDescriptor(t.props, "ref")) == null ? void 0 : n.get, r = e && "isReactWarning" in e && e.isReactWarning;
|
|
15093
15065
|
return r ? t.ref : (e = (s = Object.getOwnPropertyDescriptor(t, "ref")) == null ? void 0 : s.get, r = e && "isReactWarning" in e && e.isReactWarning, r ? t.props.ref : t.props.ref || t.ref);
|
|
15094
15066
|
}
|
|
15095
|
-
const Da = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, La = nu,
|
|
15067
|
+
const Da = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, La = nu, qv = (t, e) => (r) => {
|
|
15096
15068
|
var n;
|
|
15097
15069
|
if ((e == null ? void 0 : e.variants) == null) return La(t, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
|
|
15098
15070
|
const { variants: s, defaultVariants: i } = e, o = Object.keys(s).map((c) => {
|
|
@@ -15121,7 +15093,7 @@ const Da = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, La = nu, F
|
|
|
15121
15093
|
] : c;
|
|
15122
15094
|
}, []);
|
|
15123
15095
|
return La(t, o, l, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
|
|
15124
|
-
},
|
|
15096
|
+
}, Fv = qv(
|
|
15125
15097
|
"qc-shadow-outer qc-inline-flex qc-size-fit qc-items-center qc-justify-center qc-rounded qc-font-medium qc-duration-500 disabled:qc-pointer-events-none disabled:qc-opacity-50",
|
|
15126
15098
|
{
|
|
15127
15099
|
variants: {
|
|
@@ -15194,7 +15166,7 @@ const Da = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, La = nu, F
|
|
|
15194
15166
|
ref: d,
|
|
15195
15167
|
type: e,
|
|
15196
15168
|
disabled: r || n,
|
|
15197
|
-
className: _s(
|
|
15169
|
+
className: _s(Fv({ color: i, size: o, variant: a, className: t }), s && "qc-w-full"),
|
|
15198
15170
|
...u,
|
|
15199
15171
|
children: [
|
|
15200
15172
|
/* @__PURE__ */ T.jsxs("div", { className: _s(n ? "qc-collapse" : "qc-visible qc-flex qc-items-center qc-gap-2"), children: [
|
|
@@ -15271,7 +15243,35 @@ const Ma = ({ className: t, rounded: e = !1, ...r }) => /* @__PURE__ */ T.jsx(
|
|
|
15271
15243
|
),
|
|
15272
15244
|
...r
|
|
15273
15245
|
}
|
|
15274
|
-
),
|
|
15246
|
+
), jv = ({ eventSlug: t }) => {
|
|
15247
|
+
const { organizationId: e } = to(), { isLoading: r, data: n, isError: s, error: i } = Il({
|
|
15248
|
+
queryKey: [`event-data-${e}-${t}`],
|
|
15249
|
+
queryFn: async () => {
|
|
15250
|
+
try {
|
|
15251
|
+
const o = await Pi.get(`https://qrati.com/api/connect/${e}/event-data`, {
|
|
15252
|
+
searchParams: t ? { eventSlug: t } : void 0,
|
|
15253
|
+
headers: {
|
|
15254
|
+
"x-org-id": e
|
|
15255
|
+
}
|
|
15256
|
+
}).json();
|
|
15257
|
+
if (o.error)
|
|
15258
|
+
throw new Error(o.error);
|
|
15259
|
+
return o.data;
|
|
15260
|
+
} catch (o) {
|
|
15261
|
+
throw new Error((o == null ? void 0 : o.message) || o || "Failed to fetch public events");
|
|
15262
|
+
}
|
|
15263
|
+
},
|
|
15264
|
+
enabled: !!e && !!t
|
|
15265
|
+
});
|
|
15266
|
+
return {
|
|
15267
|
+
isLoading: r,
|
|
15268
|
+
event: n == null ? void 0 : n.event,
|
|
15269
|
+
ads: n == null ? void 0 : n.ads,
|
|
15270
|
+
parameters: n == null ? void 0 : n.parameters,
|
|
15271
|
+
isError: s,
|
|
15272
|
+
error: i
|
|
15273
|
+
};
|
|
15274
|
+
}, Ab = {
|
|
15275
15275
|
IMAGE: "IMAGE",
|
|
15276
15276
|
VIDEO: "VIDEO",
|
|
15277
15277
|
AD: "AD"
|
|
@@ -15322,19 +15322,12 @@ const Ma = ({ className: t, rounded: e = !1, ...r }) => /* @__PURE__ */ T.jsx(
|
|
|
15322
15322
|
CURATED: "curated",
|
|
15323
15323
|
ELIGIBLE: "eligible"
|
|
15324
15324
|
}, $v = () => {
|
|
15325
|
-
const t = yt(), { eventSlug: e } = Zu(), { isLoading: r, event: n } =
|
|
15325
|
+
const t = yt(), { eventSlug: e } = Zu(), { isLoading: r, event: n } = jv({ eventSlug: e }), s = Fs(() => t.pathname.includes("gallery"), [t.pathname]), i = Fs(() => t.pathname.includes("upload"), [t.pathname]), o = Fs(() => t.pathname.includes("rate"), [t.pathname]);
|
|
15326
15326
|
return /* @__PURE__ */ T.jsxs("div", { className: "qc-relative qc-w-full", children: [
|
|
15327
|
-
/* @__PURE__ */ T.jsx(
|
|
15328
|
-
zr,
|
|
15329
|
-
{
|
|
15330
|
-
className: "qc-text-brand qc-left-0 qc-top-0 sm:qc-absolute",
|
|
15331
|
-
to: "/",
|
|
15332
|
-
children: /* @__PURE__ */ T.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", className: "qc-size-7", viewBox: "0 0 24 24", children: /* @__PURE__ */ T.jsx("path", { fill: "currentColor", d: "m6.921 12.5l5.439 5.439q.146.146.153.344q.006.198-.16.363q-.164.16-.353.163q-.188.002-.354-.163l-6.08-6.08q-.131-.132-.184-.268T5.329 12t.053-.298t.184-.267l6.08-6.081q.14-.14.341-.15q.202-.01.367.15q.165.165.165.356q0 .192-.165.357L6.92 11.5H18.5q.214 0 .357.143T19 12t-.143.357t-.357.143z" }) })
|
|
15333
|
-
}
|
|
15334
|
-
),
|
|
15327
|
+
/* @__PURE__ */ T.jsx(zr, { className: "qc-text-brand qc-left-0 qc-top-0 sm:qc-absolute", to: "/", children: /* @__PURE__ */ T.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", className: "qc-size-7", viewBox: "0 0 24 24", children: /* @__PURE__ */ T.jsx("path", { fill: "currentColor", d: "m6.921 12.5l5.439 5.439q.146.146.153.344q.006.198-.16.363q-.164.16-.353.163q-.188.002-.354-.163l-6.08-6.08q-.131-.132-.184-.268T5.329 12t.053-.298t.184-.267l6.08-6.081q.14-.14.341-.15q.202-.01.367.15q.165.165.165.356q0 .192-.165.357L6.92 11.5H18.5q.214 0 .357.143T19 12t-.143.357t-.357.143z" }) }) }),
|
|
15335
15328
|
r && /* @__PURE__ */ T.jsxs(yu, { children: [
|
|
15336
|
-
/* @__PURE__ */ T.jsx(Ma, { className: "qc-mx-auto qc-h-
|
|
15337
|
-
/* @__PURE__ */ T.jsx(Ma, { className: "qc-mx-auto qc-h-10 qc-w-72" })
|
|
15329
|
+
/* @__PURE__ */ T.jsx(Ma, { className: "qc-mx-auto qc-mt-4 qc-h-8 qc-w-64" }),
|
|
15330
|
+
/* @__PURE__ */ T.jsx(Ma, { className: "qc-mx-auto qc-mt-8 qc-h-10 qc-w-72" })
|
|
15338
15331
|
] }),
|
|
15339
15332
|
/* @__PURE__ */ T.jsxs("div", { className: "qc-space-y-4 qc-pt-4 lg:qc-space-y-8", children: [
|
|
15340
15333
|
!r && n && /* @__PURE__ */ T.jsx("h1", { className: "qc-text-primary qc-w-full qc-text-center qc-text-lg qc-font-bold xl:qc-text-[1.5rem]", children: n == null ? void 0 : n.name }),
|
|
@@ -15361,13 +15354,21 @@ const Ma = ({ className: t, rounded: e = !1, ...r }) => /* @__PURE__ */ T.jsx(
|
|
|
15361
15354
|
color: "success",
|
|
15362
15355
|
className: "qc-font-bold qc-lowercase",
|
|
15363
15356
|
variant: i ? "default" : "outlined",
|
|
15364
|
-
iconSvg: /* @__PURE__ */ T.jsx(
|
|
15365
|
-
"
|
|
15357
|
+
iconSvg: /* @__PURE__ */ T.jsx(
|
|
15358
|
+
"svg",
|
|
15366
15359
|
{
|
|
15367
|
-
|
|
15368
|
-
|
|
15360
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
15361
|
+
className: "qc-size-7",
|
|
15362
|
+
viewBox: "0 0 24 24",
|
|
15363
|
+
children: /* @__PURE__ */ T.jsx(
|
|
15364
|
+
"path",
|
|
15365
|
+
{
|
|
15366
|
+
fill: "currentColor",
|
|
15367
|
+
d: "M6.616 19q-.691 0-1.153-.462T5 17.384v-1.923q0-.213.143-.356t.357-.144t.357.144t.143.356v1.923q0 .231.192.424t.423.192h10.77q.23 0 .423-.192t.192-.424v-1.923q0-.213.143-.356t.357-.144t.357.144t.143.356v1.923q0 .691-.462 1.153T17.384 19zM11.5 6.927L9.529 8.898q-.146.146-.347.153t-.366-.159q-.16-.165-.163-.353q-.003-.189.163-.354l2.618-2.62q.132-.13.268-.183q.137-.053.298-.053t.298.053t.268.184l2.618 2.619q.147.146.154.344q.006.198-.153.363q-.166.166-.357.169t-.357-.163L12.5 6.927v8.15q0 .214-.143.357t-.357.143t-.357-.143t-.143-.357z"
|
|
15368
|
+
}
|
|
15369
|
+
)
|
|
15369
15370
|
}
|
|
15370
|
-
)
|
|
15371
|
+
),
|
|
15371
15372
|
children: "Upload"
|
|
15372
15373
|
}
|
|
15373
15374
|
) }),
|
|
@@ -15377,13 +15378,21 @@ const Ma = ({ className: t, rounded: e = !1, ...r }) => /* @__PURE__ */ T.jsx(
|
|
|
15377
15378
|
color: "warning",
|
|
15378
15379
|
className: "qc-font-bold qc-lowercase",
|
|
15379
15380
|
variant: o ? "default" : "outlined",
|
|
15380
|
-
iconSvg: /* @__PURE__ */ T.jsx(
|
|
15381
|
-
"
|
|
15381
|
+
iconSvg: /* @__PURE__ */ T.jsx(
|
|
15382
|
+
"svg",
|
|
15382
15383
|
{
|
|
15383
|
-
|
|
15384
|
-
|
|
15384
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
15385
|
+
className: "qc-size-7",
|
|
15386
|
+
viewBox: "0 0 24 24",
|
|
15387
|
+
children: /* @__PURE__ */ T.jsx(
|
|
15388
|
+
"path",
|
|
15389
|
+
{
|
|
15390
|
+
fill: "currentColor",
|
|
15391
|
+
d: "m8.85 16.825l3.15-1.9l3.15 1.925l-.825-3.6l2.775-2.4l-3.65-.325l-1.45-3.4l-1.45 3.375l-3.65.325l2.775 2.425zm3.15-.723l-3.63 2.192q-.16.079-.297.064q-.136-.016-.265-.094q-.13-.08-.196-.226t-.012-.319l.966-4.11l-3.195-2.77q-.135-.11-.178-.263t.019-.293t.165-.23q.104-.087.28-.118l4.216-.368l1.644-3.892q.068-.165.196-.238T12 5.364t.288.073t.195.238l1.644 3.892l4.215.368q.177.03.281.119q.104.088.166.229q.061.14.018.293t-.178.263l-3.195 2.77l.966 4.11q.056.171-.011.318t-.197.226q-.128.08-.265.095q-.136.015-.296-.064zm0-3.852"
|
|
15392
|
+
}
|
|
15393
|
+
)
|
|
15385
15394
|
}
|
|
15386
|
-
)
|
|
15395
|
+
),
|
|
15387
15396
|
children: "Challenge"
|
|
15388
15397
|
}
|
|
15389
15398
|
) })
|
|
@@ -15393,7 +15402,7 @@ const Ma = ({ className: t, rounded: e = !1, ...r }) => /* @__PURE__ */ T.jsx(
|
|
|
15393
15402
|
}, Bv = () => /* @__PURE__ */ T.jsxs("div", { className: "qc-min-h-96 qc-bg-primary", children: [
|
|
15394
15403
|
/* @__PURE__ */ T.jsx($v, {}),
|
|
15395
15404
|
/* @__PURE__ */ T.jsx(pd, {})
|
|
15396
|
-
] }), Hv = Rn(() => import("./PublicEvents-
|
|
15405
|
+
] }), Hv = Rn(() => import("./PublicEvents-Dzjg_W0Z.js")), Vv = Rn(() => import("./ContentsPage-CGrdFq8i.js").then((t) => t.l)), zv = Rn(() => import("./UploadPage-U1m4_hDy.js")), Gv = Rn(() => import("./LeaderboardPage-CI1i11dS.js")), Ua = Rn(() => import("./RatePage-BDm8-UmB.js")), Wv = new ah(), jb = (t) => t.organizationId ? /* @__PURE__ */ T.jsx(dh, { client: Wv, children: /* @__PURE__ */ T.jsxs(Zf, { ...t, children: [
|
|
15397
15406
|
/* @__PURE__ */ T.jsx(Xy, { children: /* @__PURE__ */ T.jsx(Nv, { children: /* @__PURE__ */ T.jsx(fd, { children: /* @__PURE__ */ T.jsxs(gd, { children: [
|
|
15398
15407
|
/* @__PURE__ */ T.jsx(et, { path: "/", element: /* @__PURE__ */ T.jsx(Hv, {}) }),
|
|
15399
15408
|
/* @__PURE__ */ T.jsxs(et, { path: "/event/:eventSlug", element: /* @__PURE__ */ T.jsx(Bv, {}), children: [
|
|
@@ -15409,10 +15418,9 @@ const Ma = ({ className: t, rounded: e = !1, ...r }) => /* @__PURE__ */ T.jsx(
|
|
|
15409
15418
|
Xf,
|
|
15410
15419
|
{
|
|
15411
15420
|
title: "Organization ID is required!",
|
|
15412
|
-
description: "Please contact the
|
|
15413
|
-
className: "qc-empty-state"
|
|
15421
|
+
description: "Please contact the admin for more information"
|
|
15414
15422
|
}
|
|
15415
|
-
)
|
|
15423
|
+
);
|
|
15416
15424
|
export {
|
|
15417
15425
|
db as $,
|
|
15418
15426
|
Fb as A,
|
|
@@ -15482,7 +15490,7 @@ export {
|
|
|
15482
15490
|
Yv as b,
|
|
15483
15491
|
_s as c,
|
|
15484
15492
|
Ih as d,
|
|
15485
|
-
|
|
15493
|
+
qv as e,
|
|
15486
15494
|
Yn as f,
|
|
15487
15495
|
is as g,
|
|
15488
15496
|
Jv as h,
|
|
@@ -15499,7 +15507,7 @@ export {
|
|
|
15499
15507
|
Sb as s,
|
|
15500
15508
|
Zu as t,
|
|
15501
15509
|
to as u,
|
|
15502
|
-
|
|
15510
|
+
jv as v,
|
|
15503
15511
|
Ub as w,
|
|
15504
15512
|
kb as x,
|
|
15505
15513
|
Pb as y,
|
|
@@ -32635,7 +32635,7 @@ var Q6 = (r, a = !1) => {
|
|
|
32635
32635
|
const a = j_(() => {
|
|
32636
32636
|
const o = this, [c] = z(this, Km), [h] = z(this, Pm), [y] = z(this, Jm), [v] = z(this, Fm), [E] = z(this, $m);
|
|
32637
32637
|
let S;
|
|
32638
|
-
return z(this, Wm) ? S = z(this, Wm) : (S = k_(() => import("./J3FDRF32-
|
|
32638
|
+
return z(this, Wm) ? S = z(this, Wm) : (S = k_(() => import("./J3FDRF32-CH2RoGsH.js")), be(this, Wm, S)), iC(z(this, A0), z(this, Zm)), L_(S, q_({
|
|
32639
32639
|
get queryFlavor() {
|
|
32640
32640
|
return z(o, T0);
|
|
32641
32641
|
},
|
|
@@ -32729,7 +32729,7 @@ var Q6 = (r, a = !1) => {
|
|
|
32729
32729
|
const a = j_(() => {
|
|
32730
32730
|
const o = this, [c] = z(this, ny), [h] = z(this, ay), [y] = z(this, ly), [v] = z(this, iy), [E] = z(this, ey), [S] = z(this, ry);
|
|
32731
32731
|
let R;
|
|
32732
|
-
return z(this, oy) ? R = z(this, oy) : (R = k_(() => import("./3VW64HDT-
|
|
32732
|
+
return z(this, oy) ? R = z(this, oy) : (R = k_(() => import("./3VW64HDT-BUXBipEW.js")), be(this, oy, R)), iC(z(this, D0), z(this, ty)), L_(R, q_({
|
|
32733
32733
|
get queryFlavor() {
|
|
32734
32734
|
return z(o, _0);
|
|
32735
32735
|
},
|
|
@@ -32846,7 +32846,7 @@ var v3 = process.env.NODE_ENV !== "development" ? function() {
|
|
|
32846
32846
|
return null;
|
|
32847
32847
|
} : y3;
|
|
32848
32848
|
process.env.NODE_ENV;
|
|
32849
|
-
const b3 = ({ title: r, description: a }) => /* @__PURE__ */ Ue.jsxs("div", { className: "qc-w-full qc-flex-col qc-items-center qc-justify-center qc-gap-
|
|
32849
|
+
const b3 = ({ title: r, description: a }) => /* @__PURE__ */ Ue.jsxs("div", { className: "qc-my-8 qc-flex qc-w-full qc-flex-col qc-items-center qc-justify-center qc-gap-4", children: [
|
|
32850
32850
|
/* @__PURE__ */ Ue.jsx(
|
|
32851
32851
|
"img",
|
|
32852
32852
|
{
|
|
@@ -32854,7 +32854,7 @@ const b3 = ({ title: r, description: a }) => /* @__PURE__ */ Ue.jsxs("div", { cl
|
|
|
32854
32854
|
src: "https://banner2.cleanpng.com/20180531/egc/avo4mnj68.webp"
|
|
32855
32855
|
}
|
|
32856
32856
|
),
|
|
32857
|
-
/* @__PURE__ */ Ue.jsx("h1", { children: r }),
|
|
32857
|
+
/* @__PURE__ */ Ue.jsx("h1", { className: "qc-text-lg qc-font-medium", children: r }),
|
|
32858
32858
|
/* @__PURE__ */ Ue.jsx("h2", { children: a })
|
|
32859
32859
|
] }), rC = X.createContext(), S3 = (r) => /* @__PURE__ */ Ue.jsx(rC.Provider, { value: r, children: r.children }), fR = () => {
|
|
32860
32860
|
const r = X.useContext(rC);
|
|
@@ -41768,34 +41768,6 @@ const Sn = (r) => {
|
|
|
41768
41768
|
const r = X.useContext(f2);
|
|
41769
41769
|
if (r === void 0) throw new Error("useTheme must be used within an ThemeProvider");
|
|
41770
41770
|
return r;
|
|
41771
|
-
}, t6 = ({ eventSlug: r }) => {
|
|
41772
|
-
const { organizationId: a } = fR(), { isLoading: o, data: c, isError: h, error: y } = w_({
|
|
41773
|
-
queryKey: [`event-data-${a}-${r}`],
|
|
41774
|
-
queryFn: async () => {
|
|
41775
|
-
try {
|
|
41776
|
-
const v = await G1.get(`https://qrati.com/api/connect/${a}/event-data`, {
|
|
41777
|
-
searchParams: r ? { eventSlug: r } : void 0,
|
|
41778
|
-
headers: {
|
|
41779
|
-
"x-org-id": a
|
|
41780
|
-
}
|
|
41781
|
-
}).json();
|
|
41782
|
-
if (v.error)
|
|
41783
|
-
throw new Error(v.error);
|
|
41784
|
-
return v.data;
|
|
41785
|
-
} catch (v) {
|
|
41786
|
-
throw new Error((v == null ? void 0 : v.message) || v || "Failed to fetch public events");
|
|
41787
|
-
}
|
|
41788
|
-
},
|
|
41789
|
-
enabled: !!a && !!r
|
|
41790
|
-
});
|
|
41791
|
-
return {
|
|
41792
|
-
isLoading: o,
|
|
41793
|
-
event: c == null ? void 0 : c.event,
|
|
41794
|
-
ads: c == null ? void 0 : c.ads,
|
|
41795
|
-
parameters: c == null ? void 0 : c.parameters,
|
|
41796
|
-
isError: h,
|
|
41797
|
-
error: y
|
|
41798
|
-
};
|
|
41799
41771
|
};
|
|
41800
41772
|
function NO(r, a) {
|
|
41801
41773
|
if (typeof r == "function")
|
|
@@ -41822,7 +41794,7 @@ function J6(...r) {
|
|
|
41822
41794
|
return X.useCallback(d2(...r), r);
|
|
41823
41795
|
}
|
|
41824
41796
|
var h2 = X.forwardRef((r, a) => {
|
|
41825
|
-
const { children: o, ...c } = r, h = X.Children.toArray(o), y = h.find(
|
|
41797
|
+
const { children: o, ...c } = r, h = X.Children.toArray(o), y = h.find(n6);
|
|
41826
41798
|
if (y) {
|
|
41827
41799
|
const v = y.props.children, E = h.map((S) => S === y ? X.Children.count(v) > 1 ? X.Children.only(null) : X.isValidElement(v) ? v.props.children : null : S);
|
|
41828
41800
|
return /* @__PURE__ */ Ue.jsx(F1, { ...c, ref: a, children: X.isValidElement(v) ? X.cloneElement(v, void 0, E) : null });
|
|
@@ -41833,17 +41805,17 @@ h2.displayName = "Slot";
|
|
|
41833
41805
|
var F1 = X.forwardRef((r, a) => {
|
|
41834
41806
|
const { children: o, ...c } = r;
|
|
41835
41807
|
if (X.isValidElement(o)) {
|
|
41836
|
-
const h =
|
|
41808
|
+
const h = l6(o), y = a6(c, o.props);
|
|
41837
41809
|
return o.type !== X.Fragment && (y.ref = a ? d2(a, h) : h), X.cloneElement(o, y);
|
|
41838
41810
|
}
|
|
41839
41811
|
return X.Children.count(o) > 1 ? X.Children.only(null) : null;
|
|
41840
41812
|
});
|
|
41841
41813
|
F1.displayName = "SlotClone";
|
|
41842
|
-
var
|
|
41843
|
-
function
|
|
41844
|
-
return X.isValidElement(r) && r.type ===
|
|
41814
|
+
var t6 = ({ children: r }) => /* @__PURE__ */ Ue.jsx(Ue.Fragment, { children: r });
|
|
41815
|
+
function n6(r) {
|
|
41816
|
+
return X.isValidElement(r) && r.type === t6;
|
|
41845
41817
|
}
|
|
41846
|
-
function
|
|
41818
|
+
function a6(r, a) {
|
|
41847
41819
|
const o = { ...a };
|
|
41848
41820
|
for (const c in a) {
|
|
41849
41821
|
const h = r[c], y = a[c];
|
|
@@ -41853,12 +41825,12 @@ function l6(r, a) {
|
|
|
41853
41825
|
}
|
|
41854
41826
|
return { ...r, ...o };
|
|
41855
41827
|
}
|
|
41856
|
-
function
|
|
41828
|
+
function l6(r) {
|
|
41857
41829
|
var c, h;
|
|
41858
41830
|
let a = (c = Object.getOwnPropertyDescriptor(r.props, "ref")) == null ? void 0 : c.get, o = a && "isReactWarning" in a && a.isReactWarning;
|
|
41859
41831
|
return o ? r.ref : (a = (h = Object.getOwnPropertyDescriptor(r, "ref")) == null ? void 0 : h.get, o = a && "isReactWarning" in a && a.isReactWarning, o ? r.props.ref : r.props.ref || r.ref);
|
|
41860
41832
|
}
|
|
41861
|
-
const zO = (r) => typeof r == "boolean" ? `${r}` : r === 0 ? "0" : r, HO = i2,
|
|
41833
|
+
const zO = (r) => typeof r == "boolean" ? `${r}` : r === 0 ? "0" : r, HO = i2, i6 = (r, a) => (o) => {
|
|
41862
41834
|
var c;
|
|
41863
41835
|
if ((a == null ? void 0 : a.variants) == null) return HO(r, o == null ? void 0 : o.class, o == null ? void 0 : o.className);
|
|
41864
41836
|
const { variants: h, defaultVariants: y } = a, v = Object.keys(h).map((R) => {
|
|
@@ -41887,7 +41859,7 @@ const zO = (r) => typeof r == "boolean" ? `${r}` : r === 0 ? "0" : r, HO = i2, r
|
|
|
41887
41859
|
] : R;
|
|
41888
41860
|
}, []);
|
|
41889
41861
|
return HO(r, v, S, o == null ? void 0 : o.class, o == null ? void 0 : o.className);
|
|
41890
|
-
},
|
|
41862
|
+
}, r6 = i6(
|
|
41891
41863
|
"qc-shadow-outer qc-inline-flex qc-size-fit qc-items-center qc-justify-center qc-rounded qc-font-medium qc-duration-500 disabled:qc-pointer-events-none disabled:qc-opacity-50",
|
|
41892
41864
|
{
|
|
41893
41865
|
variants: {
|
|
@@ -41960,7 +41932,7 @@ const zO = (r) => typeof r == "boolean" ? `${r}` : r === 0 ? "0" : r, HO = i2, r
|
|
|
41960
41932
|
ref: O,
|
|
41961
41933
|
type: a,
|
|
41962
41934
|
disabled: o || c,
|
|
41963
|
-
className: yE(
|
|
41935
|
+
className: yE(r6({ color: y, size: v, variant: E, className: r }), h && "qc-w-full"),
|
|
41964
41936
|
...x,
|
|
41965
41937
|
children: [
|
|
41966
41938
|
/* @__PURE__ */ Ue.jsxs("div", { className: yE(c ? "qc-collapse" : "qc-visible qc-flex qc-items-center qc-gap-2"), children: [
|
|
@@ -42037,7 +42009,35 @@ const LO = ({ className: r, rounded: a = !1, ...o }) => /* @__PURE__ */ Ue.jsx(
|
|
|
42037
42009
|
),
|
|
42038
42010
|
...o
|
|
42039
42011
|
}
|
|
42040
|
-
),
|
|
42012
|
+
), o6 = ({ eventSlug: r }) => {
|
|
42013
|
+
const { organizationId: a } = fR(), { isLoading: o, data: c, isError: h, error: y } = w_({
|
|
42014
|
+
queryKey: [`event-data-${a}-${r}`],
|
|
42015
|
+
queryFn: async () => {
|
|
42016
|
+
try {
|
|
42017
|
+
const v = await G1.get(`https://qrati.com/api/connect/${a}/event-data`, {
|
|
42018
|
+
searchParams: r ? { eventSlug: r } : void 0,
|
|
42019
|
+
headers: {
|
|
42020
|
+
"x-org-id": a
|
|
42021
|
+
}
|
|
42022
|
+
}).json();
|
|
42023
|
+
if (v.error)
|
|
42024
|
+
throw new Error(v.error);
|
|
42025
|
+
return v.data;
|
|
42026
|
+
} catch (v) {
|
|
42027
|
+
throw new Error((v == null ? void 0 : v.message) || v || "Failed to fetch public events");
|
|
42028
|
+
}
|
|
42029
|
+
},
|
|
42030
|
+
enabled: !!a && !!r
|
|
42031
|
+
});
|
|
42032
|
+
return {
|
|
42033
|
+
isLoading: o,
|
|
42034
|
+
event: c == null ? void 0 : c.event,
|
|
42035
|
+
ads: c == null ? void 0 : c.ads,
|
|
42036
|
+
parameters: c == null ? void 0 : c.parameters,
|
|
42037
|
+
isError: h,
|
|
42038
|
+
error: y
|
|
42039
|
+
};
|
|
42040
|
+
}, F6 = {
|
|
42041
42041
|
IMAGE: "IMAGE",
|
|
42042
42042
|
VIDEO: "VIDEO",
|
|
42043
42043
|
AD: "AD"
|
|
@@ -42088,19 +42088,12 @@ const LO = ({ className: r, rounded: a = !1, ...o }) => /* @__PURE__ */ Ue.jsx(
|
|
|
42088
42088
|
CURATED: "curated",
|
|
42089
42089
|
ELIGIBLE: "eligible"
|
|
42090
42090
|
}, s6 = () => {
|
|
42091
|
-
const r = mf(), { eventSlug: a } = EM(), { isLoading: o, event: c } =
|
|
42091
|
+
const r = mf(), { eventSlug: a } = EM(), { isLoading: o, event: c } = o6({ eventSlug: a }), h = X.useMemo(() => r.pathname.includes("gallery"), [r.pathname]), y = X.useMemo(() => r.pathname.includes("upload"), [r.pathname]), v = X.useMemo(() => r.pathname.includes("rate"), [r.pathname]);
|
|
42092
42092
|
return /* @__PURE__ */ Ue.jsxs("div", { className: "qc-relative qc-w-full", children: [
|
|
42093
|
-
/* @__PURE__ */ Ue.jsx(
|
|
42094
|
-
Wv,
|
|
42095
|
-
{
|
|
42096
|
-
className: "qc-text-brand qc-left-0 qc-top-0 sm:qc-absolute",
|
|
42097
|
-
to: "/",
|
|
42098
|
-
children: /* @__PURE__ */ Ue.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", className: "qc-size-7", viewBox: "0 0 24 24", children: /* @__PURE__ */ Ue.jsx("path", { fill: "currentColor", d: "m6.921 12.5l5.439 5.439q.146.146.153.344q.006.198-.16.363q-.164.16-.353.163q-.188.002-.354-.163l-6.08-6.08q-.131-.132-.184-.268T5.329 12t.053-.298t.184-.267l6.08-6.081q.14-.14.341-.15q.202-.01.367.15q.165.165.165.356q0 .192-.165.357L6.92 11.5H18.5q.214 0 .357.143T19 12t-.143.357t-.357.143z" }) })
|
|
42099
|
-
}
|
|
42100
|
-
),
|
|
42093
|
+
/* @__PURE__ */ Ue.jsx(Wv, { className: "qc-text-brand qc-left-0 qc-top-0 sm:qc-absolute", to: "/", children: /* @__PURE__ */ Ue.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", className: "qc-size-7", viewBox: "0 0 24 24", children: /* @__PURE__ */ Ue.jsx("path", { fill: "currentColor", d: "m6.921 12.5l5.439 5.439q.146.146.153.344q.006.198-.16.363q-.164.16-.353.163q-.188.002-.354-.163l-6.08-6.08q-.131-.132-.184-.268T5.329 12t.053-.298t.184-.267l6.08-6.081q.14-.14.341-.15q.202-.01.367.15q.165.165.165.356q0 .192-.165.357L6.92 11.5H18.5q.214 0 .357.143T19 12t-.143.357t-.357.143z" }) }) }),
|
|
42101
42094
|
o && /* @__PURE__ */ Ue.jsxs(X.Fragment, { children: [
|
|
42102
|
-
/* @__PURE__ */ Ue.jsx(LO, { className: "qc-mx-auto qc-h-
|
|
42103
|
-
/* @__PURE__ */ Ue.jsx(LO, { className: "qc-mx-auto qc-h-10 qc-w-72" })
|
|
42095
|
+
/* @__PURE__ */ Ue.jsx(LO, { className: "qc-mx-auto qc-mt-4 qc-h-8 qc-w-64" }),
|
|
42096
|
+
/* @__PURE__ */ Ue.jsx(LO, { className: "qc-mx-auto qc-mt-8 qc-h-10 qc-w-72" })
|
|
42104
42097
|
] }),
|
|
42105
42098
|
/* @__PURE__ */ Ue.jsxs("div", { className: "qc-space-y-4 qc-pt-4 lg:qc-space-y-8", children: [
|
|
42106
42099
|
!o && c && /* @__PURE__ */ Ue.jsx("h1", { className: "qc-text-primary qc-w-full qc-text-center qc-text-lg qc-font-bold xl:qc-text-[1.5rem]", children: c == null ? void 0 : c.name }),
|
|
@@ -42127,13 +42120,21 @@ const LO = ({ className: r, rounded: a = !1, ...o }) => /* @__PURE__ */ Ue.jsx(
|
|
|
42127
42120
|
color: "success",
|
|
42128
42121
|
className: "qc-font-bold qc-lowercase",
|
|
42129
42122
|
variant: y ? "default" : "outlined",
|
|
42130
|
-
iconSvg: /* @__PURE__ */ Ue.jsx(
|
|
42131
|
-
"
|
|
42123
|
+
iconSvg: /* @__PURE__ */ Ue.jsx(
|
|
42124
|
+
"svg",
|
|
42132
42125
|
{
|
|
42133
|
-
|
|
42134
|
-
|
|
42126
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
42127
|
+
className: "qc-size-7",
|
|
42128
|
+
viewBox: "0 0 24 24",
|
|
42129
|
+
children: /* @__PURE__ */ Ue.jsx(
|
|
42130
|
+
"path",
|
|
42131
|
+
{
|
|
42132
|
+
fill: "currentColor",
|
|
42133
|
+
d: "M6.616 19q-.691 0-1.153-.462T5 17.384v-1.923q0-.213.143-.356t.357-.144t.357.144t.143.356v1.923q0 .231.192.424t.423.192h10.77q.23 0 .423-.192t.192-.424v-1.923q0-.213.143-.356t.357-.144t.357.144t.143.356v1.923q0 .691-.462 1.153T17.384 19zM11.5 6.927L9.529 8.898q-.146.146-.347.153t-.366-.159q-.16-.165-.163-.353q-.003-.189.163-.354l2.618-2.62q.132-.13.268-.183q.137-.053.298-.053t.298.053t.268.184l2.618 2.619q.147.146.154.344q.006.198-.153.363q-.166.166-.357.169t-.357-.163L12.5 6.927v8.15q0 .214-.143.357t-.357.143t-.357-.143t-.143-.357z"
|
|
42134
|
+
}
|
|
42135
|
+
)
|
|
42135
42136
|
}
|
|
42136
|
-
)
|
|
42137
|
+
),
|
|
42137
42138
|
children: "Upload"
|
|
42138
42139
|
}
|
|
42139
42140
|
) }),
|
|
@@ -42143,13 +42144,21 @@ const LO = ({ className: r, rounded: a = !1, ...o }) => /* @__PURE__ */ Ue.jsx(
|
|
|
42143
42144
|
color: "warning",
|
|
42144
42145
|
className: "qc-font-bold qc-lowercase",
|
|
42145
42146
|
variant: v ? "default" : "outlined",
|
|
42146
|
-
iconSvg: /* @__PURE__ */ Ue.jsx(
|
|
42147
|
-
"
|
|
42147
|
+
iconSvg: /* @__PURE__ */ Ue.jsx(
|
|
42148
|
+
"svg",
|
|
42148
42149
|
{
|
|
42149
|
-
|
|
42150
|
-
|
|
42150
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
42151
|
+
className: "qc-size-7",
|
|
42152
|
+
viewBox: "0 0 24 24",
|
|
42153
|
+
children: /* @__PURE__ */ Ue.jsx(
|
|
42154
|
+
"path",
|
|
42155
|
+
{
|
|
42156
|
+
fill: "currentColor",
|
|
42157
|
+
d: "m8.85 16.825l3.15-1.9l3.15 1.925l-.825-3.6l2.775-2.4l-3.65-.325l-1.45-3.4l-1.45 3.375l-3.65.325l2.775 2.425zm3.15-.723l-3.63 2.192q-.16.079-.297.064q-.136-.016-.265-.094q-.13-.08-.196-.226t-.012-.319l.966-4.11l-3.195-2.77q-.135-.11-.178-.263t.019-.293t.165-.23q.104-.087.28-.118l4.216-.368l1.644-3.892q.068-.165.196-.238T12 5.364t.288.073t.195.238l1.644 3.892l4.215.368q.177.03.281.119q.104.088.166.229q.061.14.018.293t-.178.263l-3.195 2.77l.966 4.11q.056.171-.011.318t-.197.226q-.128.08-.265.095q-.136.015-.296-.064zm0-3.852"
|
|
42158
|
+
}
|
|
42159
|
+
)
|
|
42151
42160
|
}
|
|
42152
|
-
)
|
|
42161
|
+
),
|
|
42153
42162
|
children: "Challenge"
|
|
42154
42163
|
}
|
|
42155
42164
|
) })
|
|
@@ -42159,7 +42168,7 @@ const LO = ({ className: r, rounded: a = !1, ...o }) => /* @__PURE__ */ Ue.jsx(
|
|
|
42159
42168
|
}, u6 = () => /* @__PURE__ */ Ue.jsxs("div", { className: "qc-min-h-96 qc-bg-primary", children: [
|
|
42160
42169
|
/* @__PURE__ */ Ue.jsx(s6, {}),
|
|
42161
42170
|
/* @__PURE__ */ Ue.jsx(LM, {})
|
|
42162
|
-
] }), c6 = X.lazy(() => import("./PublicEvents-
|
|
42171
|
+
] }), c6 = X.lazy(() => import("./PublicEvents-CS7DyKQO.js")), f6 = X.lazy(() => import("./ContentsPage-D1iPNFLg.js").then((r) => r.l)), d6 = X.lazy(() => import("./UploadPage-B1icdI0Y.js")), h6 = X.lazy(() => import("./LeaderboardPage-CwHcSdM3.js")), qO = X.lazy(() => import("./RatePage-BuiskOvh.js")), p6 = new Dx(), m6 = (r) => r.organizationId ? /* @__PURE__ */ Ue.jsx(Nx, { client: p6, children: /* @__PURE__ */ Ue.jsxs(S3, { ...r, children: [
|
|
42163
42172
|
/* @__PURE__ */ Ue.jsx(bH, { children: /* @__PURE__ */ Ue.jsx(e6, { children: /* @__PURE__ */ Ue.jsx(HM, { children: /* @__PURE__ */ Ue.jsxs(kM, { children: [
|
|
42164
42173
|
/* @__PURE__ */ Ue.jsx(Jc, { path: "/", element: /* @__PURE__ */ Ue.jsx(c6, {}) }),
|
|
42165
42174
|
/* @__PURE__ */ Ue.jsxs(Jc, { path: "/event/:eventSlug", element: /* @__PURE__ */ Ue.jsx(u6, {}), children: [
|
|
@@ -42175,10 +42184,9 @@ const LO = ({ className: r, rounded: a = !1, ...o }) => /* @__PURE__ */ Ue.jsx(
|
|
|
42175
42184
|
b3,
|
|
42176
42185
|
{
|
|
42177
42186
|
title: "Organization ID is required!",
|
|
42178
|
-
description: "Please contact the
|
|
42179
|
-
className: "qc-empty-state"
|
|
42187
|
+
description: "Please contact the admin for more information"
|
|
42180
42188
|
}
|
|
42181
|
-
)
|
|
42189
|
+
), c5 = () => {
|
|
42182
42190
|
const r = BD(m6, {
|
|
42183
42191
|
props: {
|
|
42184
42192
|
a: "string",
|
|
@@ -42264,7 +42272,7 @@ export {
|
|
|
42264
42272
|
S6 as b,
|
|
42265
42273
|
yE as c,
|
|
42266
42274
|
Xx as d,
|
|
42267
|
-
|
|
42275
|
+
i6 as e,
|
|
42268
42276
|
X as f,
|
|
42269
42277
|
QS as g,
|
|
42270
42278
|
E6 as h,
|
|
@@ -42284,6 +42292,6 @@ export {
|
|
|
42284
42292
|
P6 as v,
|
|
42285
42293
|
eR as w,
|
|
42286
42294
|
EM as x,
|
|
42287
|
-
|
|
42295
|
+
o6 as y,
|
|
42288
42296
|
o5 as z
|
|
42289
42297
|
};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@qratilabs/qrati-connect",
|
|
3
3
|
"description": "Easily integrate Qrati into your React app with a simple but powerful component.",
|
|
4
4
|
"author": "Qrati Labs LLC",
|
|
5
|
-
"version": "1.6.
|
|
5
|
+
"version": "1.6.1",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./react.es.js",
|
|
8
8
|
"module": "./react.es.js",
|
|
@@ -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-CGrdFq8i.js";
|
|
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);
|
|
@@ -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-D1iPNFLg.js";
|
|
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);
|
package/react.es.js
CHANGED
package/web.es.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { r } from "./index-
|
|
1
|
+
import { r } from "./index-CRVVPc2O.js";
|
|
2
2
|
r();
|