fansunited-frontend-components 0.0.43 → 0.0.44
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/ChanceGame.js +31 -31
- package/ClassicQuizPlay.js +16 -16
- package/CollectLead.js +13 -13
- package/Discussion.js +38 -38
- package/EitherOrPlay.js +17 -17
- package/EventGamePlay.js +18 -18
- package/Leaderboard.js +345 -338
- package/MatchQuizPlay.js +20 -20
- package/PersonalityQuizPlay.js +7884 -7697
- package/PickThePair.js +33 -33
- package/PollVote.js +56 -56
- package/chunks/{AlertMessage-BwK1nhhq.js → AlertMessage-DeOcuhSL.js} +2 -2
- package/chunks/{ArrowRightAlt-DDfv44Cb.js → ArrowRightAlt-BoUxriBH.js} +1 -1
- package/chunks/{Avatar-CuK1TjE5.js → Avatar-C7ZJ5apl.js} +2 -2
- package/chunks/{ChanceGameEmbedVariant-BqSL2q5j.js → ChanceGameEmbedVariant-BkAL2iMZ.js} +14 -14
- package/chunks/{CheckCircle-DI3T1yc_.js → CheckCircle-HsAwn-Ao.js} +1 -1
- package/chunks/{CollectLeadForm-DWGJcFYk.js → CollectLeadForm-Dl6nc12_.js} +307 -304
- package/chunks/{Edit-BEJGDOE5.js → Edit-DUniprks.js} +16 -16
- package/chunks/{FavoriteBorder-DCNN0JDS.js → FavoriteBorder-UfuHpOXw.js} +1 -1
- package/chunks/{FormLabel-DUTF4Ciu.js → FormLabel-CZC8ujMH.js} +2 -2
- package/chunks/{Input-DtSJQlp8.js → Input-DM5ufV47.js} +2 -2
- package/chunks/{ModalDialog-CT53XUPl.js → ModalDialog-_I4hvDI6.js} +299 -295
- package/chunks/{NotFoundSkeleton-C2qREw63.js → NotFoundSkeleton-BHPH2RiI.js} +84 -84
- package/chunks/{Notification-CZUmuc3Z.js → Notification-DexZkqyG.js} +44 -48
- package/chunks/{OverlayLeadAfterCollection-CZ9P-B_i.js → OverlayLeadAfterCollection-DAb1dSmC.js} +4 -4
- package/chunks/{OverlayScoreStateSkeleton-0el-xj5s.js → OverlayScoreStateSkeleton-BTxWohDI.js} +3 -3
- package/chunks/{Person-iy8XQZuk.js → Person-IzZDDhmg.js} +1 -1
- package/chunks/{PickOneOfX-aTiQBLAI.js → PickOneOfX-ny-1b2mb.js} +469 -470
- package/chunks/{Portal-kFrc-yUh.js → Portal-BFeGKTzP.js} +1 -1
- package/chunks/{PrizeCard-BA91wVwM.js → PrizeCard-C4Au83Cz.js} +4477 -4298
- package/chunks/{Spinner-Cc2zWDFx.js → Spinner-BHr9A75G.js} +1 -1
- package/chunks/{SplitLeadAfterCollection-CkxYL7KZ.js → SplitLeadAfterCollection-BVPjEbhN.js} +5 -5
- package/chunks/{Tabs-CZ6IMQcC.js → Tabs-D5c8Ignm.js} +4 -4
- package/chunks/{Textarea-CukgYb0k.js → Textarea-DgvzoEIx.js} +165 -165
- package/chunks/{TimerOutlined-1cB7d7fO.js → TimerOutlined-CfuXkOOJ.js} +1 -1
- package/chunks/{helpers-M2Nr9YsG.js → helpers-LUoF9-Zd.js} +1 -1
- package/chunks/{index-BuUWjKja.js → index-CMahPV5N.js} +5 -5
- package/chunks/{useEventCallback-DEgpWG-j.js → useEventCallback-BzPEpIIS.js} +1 -1
- package/chunks/{useForwardedInput-d4wk9fFf.js → useForwardedInput-C_IbmuBN.js} +2 -2
- package/chunks/{useImageVariant-DS9F3PjS.js → useImageVariant-BAF6m9zj.js} +1 -1
- package/package.json +1 -1
package/ChanceGame.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as t, jsxs as w, Fragment as re } from "react/jsx-runtime";
|
|
2
|
-
import { h as Ce, g as Je, l as Ke } from "./chunks/helpers-
|
|
2
|
+
import { h as Ce, g as Je, l as Ke } from "./chunks/helpers-LUoF9-Zd.js";
|
|
3
3
|
import Z, { useState as qe, useEffect as Qe } from "react";
|
|
4
|
-
import { f as K,
|
|
5
|
-
import { S as at } from "./chunks/Spinner-
|
|
4
|
+
import { f as K, X as Ze, r as ve, u as ie, S as Se, B as m, Q as se, ae as ue, q as we, h as xe, T as D, R as he, af as Te, W as fe, g as $e, ag as et, i as tt, Y as ne, c as ot, C as nt, a as rt, E as lt, b as it } from "./chunks/PrizeCard-C4Au83Cz.js";
|
|
5
|
+
import { S as at } from "./chunks/Spinner-BHr9A75G.js";
|
|
6
6
|
import { createPortal as st } from "react-dom";
|
|
7
7
|
import { u as ct } from "./chunks/useInfoPage-BHdgKdme.js";
|
|
8
|
-
import { N as dt, S as Ae, O as Ie } from "./chunks/NotFoundSkeleton-
|
|
9
|
-
import { u as mt, S as le, c as Ee, D as Ge, C as ut, W as ht, d as xt, e as ft, f as pt, O as gt, F as bt, b as ye, a as yt, P as vt } from "./chunks/PickOneOfX-
|
|
10
|
-
import { u as pe, d as
|
|
8
|
+
import { N as dt, S as Ae, O as Ie } from "./chunks/NotFoundSkeleton-BHPH2RiI.js";
|
|
9
|
+
import { u as mt, S as le, c as Ee, D as Ge, C as ut, W as ht, d as xt, e as ft, f as pt, O as gt, F as bt, b as ye, a as yt, P as vt } from "./chunks/PickOneOfX-ny-1b2mb.js";
|
|
10
|
+
import { u as pe, d as He, a as Ne } from "./chunks/useImageVariant-BAF6m9zj.js";
|
|
11
11
|
const ke = ({
|
|
12
12
|
children: e,
|
|
13
13
|
brandingBorderColor: s,
|
|
@@ -42,7 +42,7 @@ const ke = ({
|
|
|
42
42
|
}
|
|
43
43
|
);
|
|
44
44
|
return e === ue.EMBED ? a : /* @__PURE__ */ t(ke, { brandingBorderColor: null, children: a });
|
|
45
|
-
},
|
|
45
|
+
}, Ve = ({
|
|
46
46
|
infoPage: e,
|
|
47
47
|
enableReset: s = !1,
|
|
48
48
|
contentColor: a,
|
|
@@ -56,10 +56,10 @@ const ke = ({
|
|
|
56
56
|
showTitleBlock: F = !1,
|
|
57
57
|
variant: O
|
|
58
58
|
}) => {
|
|
59
|
-
var G, q,
|
|
60
|
-
const p = K(), S = ie(), g = ve(), i = we(), u = xe(), _ = Se(), y = O === "standard", h = O === "overlay", C = y || h, E = JSON.parse(e.body), M = E.segments || [], f = e.labels || {}, L = E.mode || ((G = E.config) == null ? void 0 : G.mode) || "fair",
|
|
59
|
+
var G, q, V;
|
|
60
|
+
const p = K(), S = ie(), g = ve(), i = we(), u = xe(), _ = Se(), y = O === "standard", h = O === "overlay", C = y || h, E = JSON.parse(e.body), M = E.segments || [], f = e.labels || {}, L = E.mode || ((G = E.config) == null ? void 0 : G.mode) || "fair", H = ((q = E.config) == null ? void 0 : q.pace) || "normal", W = ((V = E.config) == null ? void 0 : V.decorations) ?? !1, B = Ee(r, l), {
|
|
61
61
|
isSpinning: T,
|
|
62
|
-
finalRotation:
|
|
62
|
+
finalRotation: N,
|
|
63
63
|
selectedSegment: b,
|
|
64
64
|
showShakeAnimation: X,
|
|
65
65
|
showResultScreen: R,
|
|
@@ -73,7 +73,7 @@ const ke = ({
|
|
|
73
73
|
handleSpin: I,
|
|
74
74
|
handleReset: v,
|
|
75
75
|
onConfettiComplete: ee
|
|
76
|
-
} = mt({ segments: M, mode: L, pace:
|
|
76
|
+
} = mt({ segments: M, mode: L, pace: H }), te = C ? p ? "260px" : "340px" : p ? "320px" : "450px", Y = () => /* @__PURE__ */ w(re, { children: [
|
|
77
77
|
W && /* @__PURE__ */ t(
|
|
78
78
|
Ge,
|
|
79
79
|
{
|
|
@@ -285,7 +285,7 @@ const ke = ({
|
|
|
285
285
|
onPrimaryColor: o,
|
|
286
286
|
decorations: W,
|
|
287
287
|
isStandard: y,
|
|
288
|
-
rotation:
|
|
288
|
+
rotation: N,
|
|
289
289
|
isSpinning: T,
|
|
290
290
|
spinDuration: P
|
|
291
291
|
}
|
|
@@ -662,7 +662,7 @@ const ke = ({
|
|
|
662
662
|
finalImage: n,
|
|
663
663
|
imagePosition: a,
|
|
664
664
|
children: /* @__PURE__ */ t(
|
|
665
|
-
|
|
665
|
+
Ve,
|
|
666
666
|
{
|
|
667
667
|
infoPage: e,
|
|
668
668
|
enableReset: s,
|
|
@@ -700,7 +700,7 @@ const ke = ({
|
|
|
700
700
|
compactCards: g = !1
|
|
701
701
|
}) => {
|
|
702
702
|
var Fe, We, _e, Oe;
|
|
703
|
-
const i = K(), u = ie(), _ = ve(), y = we(), h = xe(), C = Se(), E = n || c, M = l || r, f = S === "standard", L = S === "overlay",
|
|
703
|
+
const i = K(), u = ie(), _ = ve(), y = we(), h = xe(), C = Se(), E = n || c, M = l || r, f = S === "standard", L = S === "overlay", H = f ? Ce(c) : "", W = H ? H.replace(/[^\d,]/g, "") : "", B = g ? i ? 80 : 110 : i ? 100 : 140, T = g ? i ? 104 : 143 : i ? 130 : 180, N = g ? i ? 90 : 130 : i ? 120 : 180, b = g ? i ? "16px" : "32px" : i ? "24px" : "48px", X = g ? i ? "12px" : "32px" : i ? "16px" : "48px", R = Ee(r, O), k = JSON.parse(e.body), $ = k.segments || [], z = e.labels || {}, P = k.mode || ((Fe = k.config) == null ? void 0 : Fe.mode) || "fair", U = ((We = k.config) == null ? void 0 : We.pace) || "normal", j = ((_e = k.config) == null ? void 0 : _e.revealAll) ?? !1, A = ((Oe = k.config) == null ? void 0 : Oe.decorations) ?? !1, I = $.some((ae) => {
|
|
704
704
|
var J;
|
|
705
705
|
return (J = ae.images) == null ? void 0 : J.idle;
|
|
706
706
|
}), {
|
|
@@ -710,7 +710,7 @@ const ke = ({
|
|
|
710
710
|
showResultScreen: Y,
|
|
711
711
|
showInlineResult: G,
|
|
712
712
|
showLoseAnimation: q,
|
|
713
|
-
hasEntered:
|
|
713
|
+
hasEntered: V,
|
|
714
714
|
flippedCards: Q,
|
|
715
715
|
crossfadedCards: oe,
|
|
716
716
|
revealedOtherCards: ce,
|
|
@@ -919,7 +919,7 @@ const ke = ({
|
|
|
919
919
|
mt: h.lg,
|
|
920
920
|
mx: "auto",
|
|
921
921
|
display: "grid",
|
|
922
|
-
gridTemplateColumns: I ? `repeat(3, ${
|
|
922
|
+
gridTemplateColumns: I ? `repeat(3, ${N}px)` : `repeat(3, ${B}px)`,
|
|
923
923
|
rowGap: b,
|
|
924
924
|
columnGap: X,
|
|
925
925
|
justifyContent: "center",
|
|
@@ -937,8 +937,8 @@ const ke = ({
|
|
|
937
937
|
justifyContent: "center",
|
|
938
938
|
alignItems: "center",
|
|
939
939
|
// Staggered deal-in entrance
|
|
940
|
-
opacity:
|
|
941
|
-
transform:
|
|
940
|
+
opacity: V ? 1 : 0,
|
|
941
|
+
transform: V ? "translateY(0) scale(1) rotateX(0deg)" : "translateY(30px) scale(0.9) rotateX(10deg)",
|
|
942
942
|
transition: `all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) ${J * 100}ms`
|
|
943
943
|
},
|
|
944
944
|
children: I ? /* @__PURE__ */ t(
|
|
@@ -952,8 +952,8 @@ const ke = ({
|
|
|
952
952
|
isOtherRevealed: me,
|
|
953
953
|
shouldDim: Ye,
|
|
954
954
|
isRevealed: de,
|
|
955
|
-
hasEntered:
|
|
956
|
-
objectSize:
|
|
955
|
+
hasEntered: V,
|
|
956
|
+
objectSize: N,
|
|
957
957
|
crossfadeDuration: Pe,
|
|
958
958
|
isStandard: f,
|
|
959
959
|
primaryColor: r,
|
|
@@ -971,7 +971,7 @@ const ke = ({
|
|
|
971
971
|
shouldDim: je,
|
|
972
972
|
isRevealed: de,
|
|
973
973
|
showLoseAnimation: q,
|
|
974
|
-
hasEntered:
|
|
974
|
+
hasEntered: V,
|
|
975
975
|
cardWidth: B,
|
|
976
976
|
cardHeight: T,
|
|
977
977
|
flipDuration: Xe,
|
|
@@ -1305,14 +1305,14 @@ const ke = ({
|
|
|
1305
1305
|
enableReset: s = !1,
|
|
1306
1306
|
defaultImagePlaceholderUrl: a
|
|
1307
1307
|
}) => {
|
|
1308
|
-
var f, L,
|
|
1309
|
-
const { t: r } = se(), x = K(), o = $e(), c = xe(), d = ((f = e.branding) == null ? void 0 : f.colors) || null, n = (L = e.branding) == null ? void 0 : L.images, l = x ? (n == null ? void 0 : n.mobile_background_image) || (n == null ? void 0 : n.background_image) || "" : (n == null ? void 0 : n.background_image) || "", F = x ? (n == null ? void 0 : n.mobile_logo) || (n == null ? void 0 : n.main_logo) || "" : (n == null ? void 0 : n.main_logo) || "", O = a || (x ?
|
|
1308
|
+
var f, L, H, W, B, T, N, b, X, R, k, $, z, P, U, j, A, I, v;
|
|
1309
|
+
const { t: r } = se(), x = K(), o = $e(), c = xe(), d = ((f = e.branding) == null ? void 0 : f.colors) || null, n = (L = e.branding) == null ? void 0 : L.images, l = x ? (n == null ? void 0 : n.mobile_background_image) || (n == null ? void 0 : n.background_image) || "" : (n == null ? void 0 : n.background_image) || "", F = x ? (n == null ? void 0 : n.mobile_logo) || (n == null ? void 0 : n.main_logo) || "" : (n == null ? void 0 : n.main_logo) || "", O = a || (x ? He : Ne), p = l || pe(
|
|
1310
1310
|
{
|
|
1311
1311
|
images: e.images,
|
|
1312
1312
|
imagePlaceholder: O
|
|
1313
1313
|
},
|
|
1314
1314
|
fe.OVERLAY
|
|
1315
|
-
), S = o.colorSchemes.dark.textColor, g = (d == null ? void 0 : d.content_color) || S, i = (d == null ? void 0 : d.primary_color) || ((T = (B = (W = (
|
|
1315
|
+
), S = o.colorSchemes.dark.textColor, g = (d == null ? void 0 : d.content_color) || S, i = (d == null ? void 0 : d.primary_color) || ((T = (B = (W = (H = o.colorSchemes) == null ? void 0 : H.light) == null ? void 0 : W.palette) == null ? void 0 : B.primary) == null ? void 0 : T.plainColor), u = (R = (X = (b = (N = o.colorSchemes) == null ? void 0 : N.light) == null ? void 0 : b.palette) == null ? void 0 : X.primary) == null ? void 0 : R.onPrimary, _ = (d == null ? void 0 : d.background_color) || (($ = (k = o.colorSchemes) == null ? void 0 : k.dark) == null ? void 0 : $.surfaceVariant), y = (j = (U = (P = (z = o.colorSchemes) == null ? void 0 : z.light) == null ? void 0 : P.palette) == null ? void 0 : U.danger) == null ? void 0 : j.plainColor, h = o.customFontFamily.dark.primary, C = o.customRadius.dark.md, E = (I = (A = o.customRadius) == null ? void 0 : A.light) == null ? void 0 : I.xl, M = Le({
|
|
1316
1316
|
spacingScale: c,
|
|
1317
1317
|
mdBorderRadius: C,
|
|
1318
1318
|
contentBgColor: _,
|
|
@@ -1468,14 +1468,14 @@ const ke = ({
|
|
|
1468
1468
|
enableReset: s = !1,
|
|
1469
1469
|
defaultImagePlaceholderUrl: a
|
|
1470
1470
|
}) => {
|
|
1471
|
-
var L,
|
|
1472
|
-
const { t: r } = se(), x = K(), o = $e(), c = xe(), d = ((L = e.branding) == null ? void 0 : L.colors) || null, n = (
|
|
1471
|
+
var L, H, W, B, T, N, b, X, R, k, $, z, P, U, j, A, I, v, ee, te, Y, G, q, V, Q, oe, ce;
|
|
1472
|
+
const { t: r } = se(), x = K(), o = $e(), c = xe(), d = ((L = e.branding) == null ? void 0 : L.colors) || null, n = (H = e.branding) == null ? void 0 : H.images, l = x ? (n == null ? void 0 : n.mobile_background_image) || (n == null ? void 0 : n.background_image) || "" : (n == null ? void 0 : n.background_image) || "", F = x ? (n == null ? void 0 : n.mobile_logo) || (n == null ? void 0 : n.main_logo) || "" : (n == null ? void 0 : n.main_logo) || "", O = a || (x ? He : Ne), p = l || pe(
|
|
1473
1473
|
{
|
|
1474
1474
|
images: e.images,
|
|
1475
1475
|
imagePlaceholder: O
|
|
1476
1476
|
},
|
|
1477
1477
|
fe.OVERLAY
|
|
1478
|
-
), S = o.colorSchemes.dark.textColor, g = (d == null ? void 0 : d.content_color) || S, i = (d == null ? void 0 : d.primary_color) || ((
|
|
1478
|
+
), S = o.colorSchemes.dark.textColor, g = (d == null ? void 0 : d.content_color) || S, i = (d == null ? void 0 : d.primary_color) || ((N = (T = (B = (W = o.colorSchemes) == null ? void 0 : W.light) == null ? void 0 : B.palette) == null ? void 0 : T.primary) == null ? void 0 : N.plainColor), u = (d == null ? void 0 : d.secondary_color) || ((k = (R = (X = (b = o.colorSchemes) == null ? void 0 : b.light) == null ? void 0 : X.palette) == null ? void 0 : R.danger) == null ? void 0 : k.plainColor), _ = (U = (P = (z = ($ = o.colorSchemes) == null ? void 0 : $.light) == null ? void 0 : z.palette) == null ? void 0 : P.primary) == null ? void 0 : U.onPrimary, y = (d == null ? void 0 : d.background_color) || ((A = (j = o.colorSchemes) == null ? void 0 : j.dark) == null ? void 0 : A.surfaceVariant), h = (te = (ee = (v = (I = o.colorSchemes) == null ? void 0 : I.light) == null ? void 0 : v.palette) == null ? void 0 : ee.danger) == null ? void 0 : te.plainColor, C = o.customFontFamily.dark.primary, E = o.customRadius.dark.md, M = (G = (Y = o.customRadius) == null ? void 0 : Y.light) == null ? void 0 : G.xl, f = Le({
|
|
1479
1479
|
spacingScale: c,
|
|
1480
1480
|
mdBorderRadius: E,
|
|
1481
1481
|
contentBgColor: y,
|
|
@@ -1500,7 +1500,7 @@ const ke = ({
|
|
|
1500
1500
|
finalImage: p,
|
|
1501
1501
|
children: [
|
|
1502
1502
|
/* @__PURE__ */ t(m, { sx: f.contentContainerWithBackdrop, children: /* @__PURE__ */ t(
|
|
1503
|
-
|
|
1503
|
+
Ve,
|
|
1504
1504
|
{
|
|
1505
1505
|
infoPage: e,
|
|
1506
1506
|
enableReset: s,
|
|
@@ -1523,7 +1523,7 @@ const ke = ({
|
|
|
1523
1523
|
brandingLogo: F,
|
|
1524
1524
|
textColor: S,
|
|
1525
1525
|
label: ((q = e.labels) == null ? void 0 : q.sponsor) || null,
|
|
1526
|
-
primaryUrl: (Q = (
|
|
1526
|
+
primaryUrl: (Q = (V = e.branding) == null ? void 0 : V.urls) == null ? void 0 : Q.primary_url,
|
|
1527
1527
|
secondaryUrl: (ce = (oe = e.branding) == null ? void 0 : oe.urls) == null ? void 0 : ce.secondary_url
|
|
1528
1528
|
}
|
|
1529
1529
|
)
|
|
@@ -1627,7 +1627,7 @@ const ke = ({
|
|
|
1627
1627
|
F,
|
|
1628
1628
|
O
|
|
1629
1629
|
] });
|
|
1630
|
-
}, Ot = (e) => /* @__PURE__ */ t(_t, { ...e, children: /* @__PURE__ */ t(Wt, { ...e }) }),
|
|
1630
|
+
}, Ot = (e) => /* @__PURE__ */ t(_t, { ...e, children: /* @__PURE__ */ t(Wt, { ...e }) }), Nt = Ot;
|
|
1631
1631
|
export {
|
|
1632
|
-
|
|
1632
|
+
Nt as ChanceGame
|
|
1633
1633
|
};
|
package/ClassicQuizPlay.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { jsxs as E, Fragment as T, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import x2, { useState as b, useEffect as m2, useCallback as c0, useRef as r0, useMemo as M2 } from "react";
|
|
3
|
-
import { f as X, B as l, g as r2, u as D, r as _, q as C2,
|
|
4
|
-
import { P as B0 } from "./chunks/Portal-
|
|
5
|
-
import { g as d0, e as V2, h as F2, s as u0, k as w0, a as n0, j as S0 } from "./chunks/helpers-
|
|
6
|
-
import { S as y0 } from "./chunks/Spinner-
|
|
3
|
+
import { f as X, B as l, g as r2, u as D, r as _, q as C2, S as G2, h as u2, T as B, Q as p, Z as q2, a0 as P2, X as Z2, W as Z, R as q, aw as I0, a1 as Q0, d as E0, J as l0, i as h0 } from "./chunks/PrizeCard-C4Au83Cz.js";
|
|
4
|
+
import { P as B0 } from "./chunks/Portal-BFeGKTzP.js";
|
|
5
|
+
import { g as d0, e as V2, h as F2, s as u0, k as w0, a as n0, j as S0 } from "./chunks/helpers-LUoF9-Zd.js";
|
|
6
|
+
import { S as y0 } from "./chunks/Spinner-BHr9A75G.js";
|
|
7
7
|
import "react-dom";
|
|
8
|
-
import { S as D0, a as m0, b as g0, C as $2, c as e0 } from "./chunks/ChanceGameEmbedVariant-
|
|
9
|
-
import { H as k0, a as W2, R as O2, A as v2, O as C0, S as a0 } from "./chunks/index-
|
|
10
|
-
import { A as k2, O as R0 } from "./chunks/ArrowRightAlt-
|
|
11
|
-
import { A as y2, O as f0, S as K0, N as F0 } from "./chunks/NotFoundSkeleton-
|
|
12
|
-
import { b as L2, d as w2, a as S2, u as E2 } from "./chunks/useImageVariant-
|
|
13
|
-
import { T as V0 } from "./chunks/TimerOutlined-
|
|
14
|
-
import { C as x0 } from "./chunks/CollectLeadForm-
|
|
15
|
-
import { T as L0, a as Y0, b as i0, t as A0, c as t0 } from "./chunks/Tabs-
|
|
16
|
-
import { C as H0 } from "./chunks/CheckCircle-
|
|
17
|
-
import { a as U0, S as J0, I as M0, W as W0 } from "./chunks/AlertMessage-
|
|
18
|
-
import { S as G0, O as q0, a as P0, b as Z0 } from "./chunks/OverlayLeadAfterCollection-
|
|
19
|
-
import { S as O0, a as v0 } from "./chunks/SplitLeadAfterCollection-
|
|
8
|
+
import { S as D0, a as m0, b as g0, C as $2, c as e0 } from "./chunks/ChanceGameEmbedVariant-BkAL2iMZ.js";
|
|
9
|
+
import { H as k0, a as W2, R as O2, A as v2, O as C0, S as a0 } from "./chunks/index-CMahPV5N.js";
|
|
10
|
+
import { A as k2, O as R0 } from "./chunks/ArrowRightAlt-BoUxriBH.js";
|
|
11
|
+
import { A as y2, O as f0, S as K0, N as F0 } from "./chunks/NotFoundSkeleton-BHPH2RiI.js";
|
|
12
|
+
import { b as L2, d as w2, a as S2, u as E2 } from "./chunks/useImageVariant-BAF6m9zj.js";
|
|
13
|
+
import { T as V0 } from "./chunks/TimerOutlined-CfuXkOOJ.js";
|
|
14
|
+
import { C as x0 } from "./chunks/CollectLeadForm-Dl6nc12_.js";
|
|
15
|
+
import { T as L0, a as Y0, b as i0, t as A0, c as t0 } from "./chunks/Tabs-D5c8Ignm.js";
|
|
16
|
+
import { C as H0 } from "./chunks/CheckCircle-HsAwn-Ao.js";
|
|
17
|
+
import { a as U0, S as J0, I as M0, W as W0 } from "./chunks/AlertMessage-DeOcuhSL.js";
|
|
18
|
+
import { S as G0, O as q0, a as P0, b as Z0 } from "./chunks/OverlayLeadAfterCollection-DAb1dSmC.js";
|
|
19
|
+
import { S as O0, a as v0 } from "./chunks/SplitLeadAfterCollection-BVPjEbhN.js";
|
|
20
20
|
const p0 = (e) => ({
|
|
21
21
|
// Image container (left position)
|
|
22
22
|
imageContainerLeft: {
|
package/CollectLead.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as n, jsxs as g, Fragment as r } from "react/jsx-runtime";
|
|
2
2
|
import { createContext as ce } from "react";
|
|
3
|
-
import { q as
|
|
4
|
-
import { P as me } from "./chunks/Portal-
|
|
3
|
+
import { q as Q, f as Y, B as o, T as u, Q as de, Z as J, g as Z, h as K, J as X, W as w, r as U, u as h, S as se } from "./chunks/PrizeCard-C4Au83Cz.js";
|
|
4
|
+
import { P as me } from "./chunks/Portal-BFeGKTzP.js";
|
|
5
5
|
import "react-dom";
|
|
6
|
-
import { g as ge, a as xe, h as oe } from "./chunks/helpers-
|
|
7
|
-
import { d as le, a as ae, u as ee } from "./chunks/useImageVariant-
|
|
8
|
-
import { C as fe } from "./chunks/CollectLeadForm-
|
|
6
|
+
import { g as ge, a as xe, h as oe } from "./chunks/helpers-LUoF9-Zd.js";
|
|
7
|
+
import { d as le, a as ae, u as ee } from "./chunks/useImageVariant-BAF6m9zj.js";
|
|
8
|
+
import { C as fe } from "./chunks/CollectLeadForm-Dl6nc12_.js";
|
|
9
9
|
const te = (e) => {
|
|
10
|
-
const i =
|
|
10
|
+
const i = Q().secondary, s = Y(), a = ge(e.primaryUrl, e.secondaryUrl, "logo");
|
|
11
11
|
if (!e.brandingLogo)
|
|
12
12
|
return null;
|
|
13
13
|
const d = () => {
|
|
@@ -388,12 +388,12 @@ const te = (e) => {
|
|
|
388
388
|
}
|
|
389
389
|
}), he = (e) => {
|
|
390
390
|
let i = (e == null ? void 0 : e.mainLogo) || null;
|
|
391
|
-
return
|
|
391
|
+
return Y() && (i = (e == null ? void 0 : e.mobileLogo) || (e == null ? void 0 : e.mainLogo) || null), i;
|
|
392
392
|
}, be = () => {
|
|
393
393
|
var l, $, q, P, R, I, L, D, z, H, v, B, y, m, W, A, G, E;
|
|
394
|
-
const e = J(_), i =
|
|
394
|
+
const e = J(_), i = Z(), s = K(), a = X(
|
|
395
395
|
w.OVERLAY
|
|
396
|
-
), d =
|
|
396
|
+
), d = Y(), t = he(
|
|
397
397
|
((l = e.branding) == null ? void 0 : l.images) || null
|
|
398
398
|
), f = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : d ? le : ae, b = ee(
|
|
399
399
|
{
|
|
@@ -766,13 +766,13 @@ const te = (e) => {
|
|
|
766
766
|
}
|
|
767
767
|
}), Se = (e) => {
|
|
768
768
|
var P, R, I, L, D, z, H, v, B;
|
|
769
|
-
const i = J(_), s =
|
|
769
|
+
const i = J(_), s = Z(), a = e.imagePosition || "left", d = ee(
|
|
770
770
|
{
|
|
771
771
|
images: i.images || null,
|
|
772
772
|
imagePlaceholder: i.defaultImagePlaceholderUrl ? i.defaultImagePlaceholderUrl : ""
|
|
773
773
|
},
|
|
774
774
|
w.STANDARD
|
|
775
|
-
), t =
|
|
775
|
+
), t = Y(), f = t ? ((R = (P = i.branding) == null ? void 0 : P.images) == null ? void 0 : R.mobileLogo) || ((L = (I = i.branding) == null ? void 0 : I.images) == null ? void 0 : L.mainLogo) || "" : ((z = (D = i.branding) == null ? void 0 : D.images) == null ? void 0 : z.mainLogo) || "", b = h().textColor, C = h().textSecondary, S = Q().secondary, p = "60%", T = Q().primary, j = h().surfaceVariant, N = U().md, k = U().sm, F = h().palette.primary.plainColor, M = h().palette.primary.onPrimary, V = U().xl, c = K(), x = X(
|
|
776
776
|
w.STANDARD
|
|
777
777
|
), l = Ce({
|
|
778
778
|
finalImage: d,
|
|
@@ -1161,13 +1161,13 @@ const te = (e) => {
|
|
|
1161
1161
|
}
|
|
1162
1162
|
}), Te = () => {
|
|
1163
1163
|
var q, P, R, I, L, D, z, H, v, B;
|
|
1164
|
-
const e = J(_), i =
|
|
1164
|
+
const e = J(_), i = Z(), s = Y(), a = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : s ? le : ae, d = ee(
|
|
1165
1165
|
{
|
|
1166
1166
|
images: e.images || null,
|
|
1167
1167
|
imagePlaceholder: a
|
|
1168
1168
|
},
|
|
1169
1169
|
w.SPLIT
|
|
1170
|
-
), t = s ? ((P = (q = e.branding) == null ? void 0 : q.images) == null ? void 0 : P.mobileLogo) || ((I = (R = e.branding) == null ? void 0 : R.images) == null ? void 0 : I.mainLogo) || "" : ((D = (L = e.branding) == null ? void 0 : L.images) == null ? void 0 : D.mainLogo) || "", f = h().textColor, b =
|
|
1170
|
+
), t = s ? ((P = (q = e.branding) == null ? void 0 : q.images) == null ? void 0 : P.mobileLogo) || ((I = (R = e.branding) == null ? void 0 : R.images) == null ? void 0 : I.mainLogo) || "" : ((D = (L = e.branding) == null ? void 0 : L.images) == null ? void 0 : D.mainLogo) || "", f = h().textColor, b = Q().secondary, C = "60%", S = Q().primary, p = U().xl, T = h().surfaceVariant, j = (H = (z = h().palette) == null ? void 0 : z.primary) == null ? void 0 : H.plainColor, N = (B = (v = h().palette) == null ? void 0 : v.primary) == null ? void 0 : B.onPrimary, k = h().textColor, F = K(), M = U(), V = X(
|
|
1171
1171
|
w.SPLIT
|
|
1172
1172
|
), c = oe(T || ""), x = pe({
|
|
1173
1173
|
finalImage: d,
|
package/Discussion.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as n, jsxs as L, Fragment as De } from "react/jsx-runtime";
|
|
2
2
|
import * as I from "react";
|
|
3
3
|
import J, { useState as H, useEffect as ge, useCallback as Ae, useRef as Ie } from "react";
|
|
4
|
-
import { _ as D, w as Ke,
|
|
5
|
-
import { S as Ee } from "./chunks/Spinner-
|
|
4
|
+
import { _ as D, w as Ke, al as xe, v as Be, x as We, am as Ge, s as Y, l as ue, m as pe, n as Z, G as Je, P as t, o as G, p as me, k as Ce, j as Re, D as Co, F as Ro, au as Po, an as So, av as Io, as as Do, at as Mo, Q as le, u as te, r as ae, q as Me, h as re, B as F, R as oe, T as W, d as Q, Z as we, a0 as Ne, a2 as zo, i as To, c as Eo, C as Oo, a as $o, E as ko, b as Vo } from "./chunks/PrizeCard-C4Au83Cz.js";
|
|
5
|
+
import { S as Ee } from "./chunks/Spinner-BHr9A75G.js";
|
|
6
6
|
import { createPortal as wo } from "react-dom";
|
|
7
|
-
import { C as No, u as _o, T as qe } from "./chunks/Textarea-
|
|
8
|
-
import { F as Fo, a as Lo } from "./chunks/FavoriteBorder-
|
|
9
|
-
import { L as ye, l as Ao, u as Bo, e as Ho, h as Oe, b as jo, f as _e, g as Uo, d as Ko, k as Wo, s as Go, V as Jo, G as qo, n as
|
|
10
|
-
import { C as rt, M as nt, d as st, a as
|
|
11
|
-
import { u as it } from "./chunks/useEventCallback-
|
|
12
|
-
import { g as lt, N as Ze } from "./chunks/Notification-
|
|
13
|
-
import { A as at } from "./chunks/Avatar-
|
|
7
|
+
import { C as No, u as _o, T as qe } from "./chunks/Textarea-DgvzoEIx.js";
|
|
8
|
+
import { F as Fo, a as Lo } from "./chunks/FavoriteBorder-UfuHpOXw.js";
|
|
9
|
+
import { L as ye, l as Ao, u as Bo, e as Ho, h as Oe, b as jo, f as _e, g as Uo, d as Ko, k as Wo, s as Go, V as Jo, G as qo, n as Xo, i as Yo, R as Qo, r as Zo, j as et, F as $e, x as Xe, S as ot, a as tt } from "./chunks/CheckCircle-HsAwn-Ao.js";
|
|
10
|
+
import { C as rt, M as nt, d as st, a as Ye, b as Qe } from "./chunks/ModalDialog-_I4hvDI6.js";
|
|
11
|
+
import { u as it } from "./chunks/useEventCallback-BzPEpIIS.js";
|
|
12
|
+
import { g as lt, N as Ze } from "./chunks/Notification-DexZkqyG.js";
|
|
13
|
+
import { A as at } from "./chunks/Avatar-C7ZJ5apl.js";
|
|
14
14
|
const Fe = /* @__PURE__ */ I.createContext(null);
|
|
15
15
|
process.env.NODE_ENV !== "production" && (Fe.displayName = "DropdownContext");
|
|
16
16
|
const ke = {
|
|
@@ -335,7 +335,7 @@ const yt = ["className", "children", "component", "inset", "orientation", "role"
|
|
|
335
335
|
root: ["root", e, r && `inset${G(r)}`]
|
|
336
336
|
};
|
|
337
337
|
return me(a, lt, {});
|
|
338
|
-
}, gt =
|
|
338
|
+
}, gt = Y("hr", {
|
|
339
339
|
name: "JoyDivider",
|
|
340
340
|
slot: "Root",
|
|
341
341
|
overridesResolver: (o, e) => e.root
|
|
@@ -500,7 +500,7 @@ const Ct = ["actions", "children", "color", "component", "disablePortal", "keepM
|
|
|
500
500
|
listbox: ["listbox"]
|
|
501
501
|
};
|
|
502
502
|
return me(i, xt, {});
|
|
503
|
-
}, He =
|
|
503
|
+
}, He = Y(Wo, {
|
|
504
504
|
name: "JoyMenu",
|
|
505
505
|
slot: "Root",
|
|
506
506
|
overridesResolver: (o, e) => e.root
|
|
@@ -608,7 +608,7 @@ const Ct = ["actions", "children", "color", "component", "disablePortal", "keepM
|
|
|
608
608
|
color: s,
|
|
609
609
|
children: /* @__PURE__ */ n(qo.Provider, {
|
|
610
610
|
value: "menu",
|
|
611
|
-
children: /* @__PURE__ */ n(
|
|
611
|
+
children: /* @__PURE__ */ n(Xo, {
|
|
612
612
|
nested: !0,
|
|
613
613
|
children: c
|
|
614
614
|
})
|
|
@@ -739,7 +739,7 @@ const St = ["children", "disabled", "component", "selected", "color", "orientati
|
|
|
739
739
|
root: ["root", e && "focusVisible", r && "disabled", a && "selected", l && `color${G(l)}`, i && `variant${G(i)}`]
|
|
740
740
|
};
|
|
741
741
|
return me(c, Pt, {});
|
|
742
|
-
}, Dt =
|
|
742
|
+
}, Dt = Y(Yo, {
|
|
743
743
|
name: "JoyMenuItem",
|
|
744
744
|
slot: "Root",
|
|
745
745
|
overridesResolver: (o, e) => e.root
|
|
@@ -836,7 +836,7 @@ const Tt = ["component", "color", "variant", "size", "onClick", "slots", "slotPr
|
|
|
836
836
|
root: ["root", a && "disabled", l && "focusVisible", e && `variant${G(e)}`, r && `color${G(r)}`, i && `size${G(i)}`]
|
|
837
837
|
};
|
|
838
838
|
return me(c, zt, {});
|
|
839
|
-
}, Ot =
|
|
839
|
+
}, Ot = Y(Do, {
|
|
840
840
|
name: "JoyModalClose",
|
|
841
841
|
slot: "Root",
|
|
842
842
|
overridesResolver: (o, e) => e.root
|
|
@@ -994,7 +994,7 @@ const be = Re("MuiRadio", ["root", "radio", "icon", "action", "input", "label",
|
|
|
994
994
|
function Nt(o, e) {
|
|
995
995
|
return typeof e == "object" && e !== null ? o === e : String(o) === String(e);
|
|
996
996
|
}
|
|
997
|
-
const _t =
|
|
997
|
+
const _t = Y("span", {
|
|
998
998
|
name: "JoyRadio",
|
|
999
999
|
slot: "Root",
|
|
1000
1000
|
overridesResolver: (o, e) => e.root
|
|
@@ -1049,7 +1049,7 @@ const _t = X("span", {
|
|
|
1049
1049
|
marginInlineStart: o.orientation === "horizontal" ? "var(--RadioGroup-gap)" : void 0,
|
|
1050
1050
|
marginBlockStart: o.orientation === "horizontal" ? void 0 : "var(--RadioGroup-gap)"
|
|
1051
1051
|
})];
|
|
1052
|
-
}), Ft =
|
|
1052
|
+
}), Ft = Y("span", {
|
|
1053
1053
|
name: "JoyRadio",
|
|
1054
1054
|
slot: "Radio",
|
|
1055
1055
|
overridesResolver: (o, e) => e.radio
|
|
@@ -1087,7 +1087,7 @@ const _t = X("span", {
|
|
|
1087
1087
|
}, {
|
|
1088
1088
|
[`&.${be.disabled}`]: (c = e.variants[`${o.variant}Disabled`]) == null ? void 0 : c[o.color]
|
|
1089
1089
|
}]];
|
|
1090
|
-
}), Lt =
|
|
1090
|
+
}), Lt = Y("span", {
|
|
1091
1091
|
name: "JoyRadio",
|
|
1092
1092
|
slot: "Action",
|
|
1093
1093
|
overridesResolver: (o, e) => e.action
|
|
@@ -1119,7 +1119,7 @@ const _t = X("span", {
|
|
|
1119
1119
|
}, {
|
|
1120
1120
|
[`&.${be.disabled}`]: (i = o.variants[`${e.variant}Disabled`]) == null ? void 0 : i[e.color]
|
|
1121
1121
|
}] : []];
|
|
1122
|
-
}), At =
|
|
1122
|
+
}), At = Y("input", {
|
|
1123
1123
|
name: "JoyRadio",
|
|
1124
1124
|
slot: "Input",
|
|
1125
1125
|
overridesResolver: (o, e) => e.input
|
|
@@ -1130,7 +1130,7 @@ const _t = X("span", {
|
|
|
1130
1130
|
height: "100%",
|
|
1131
1131
|
width: "100%",
|
|
1132
1132
|
cursor: "pointer"
|
|
1133
|
-
})), Bt =
|
|
1133
|
+
})), Bt = Y("label", {
|
|
1134
1134
|
name: "JoyRadio",
|
|
1135
1135
|
slot: "Label",
|
|
1136
1136
|
overridesResolver: (o, e) => e.label
|
|
@@ -1144,7 +1144,7 @@ const _t = X("span", {
|
|
|
1144
1144
|
// label should stay on top of the action.
|
|
1145
1145
|
pointerEvents: "none"
|
|
1146
1146
|
// makes hover ineffect.
|
|
1147
|
-
})), Ht =
|
|
1147
|
+
})), Ht = Y("span", {
|
|
1148
1148
|
name: "JoyRadio",
|
|
1149
1149
|
slot: "Icon",
|
|
1150
1150
|
overridesResolver: (o, e) => e.icon
|
|
@@ -1194,7 +1194,7 @@ const _t = X("span", {
|
|
|
1194
1194
|
return Te();
|
|
1195
1195
|
}, [Te]);
|
|
1196
1196
|
}
|
|
1197
|
-
const M = xe(T ?? (m == null ? void 0 : m.htmlFor)), z = I.useContext(
|
|
1197
|
+
const M = xe(T ?? (m == null ? void 0 : m.htmlFor)), z = I.useContext(Xe), ee = m != null && m.error ? "danger" : (a = (l = (i = e.color) != null ? i : m == null ? void 0 : m.color) != null ? l : A) != null ? a : "primary", fe = m != null && m.error ? "danger" : (c = (s = (u = e.color) != null ? u : m == null ? void 0 : m.color) != null ? s : A) != null ? c : "neutral", ve = e.size || (m == null ? void 0 : m.size) || (z == null ? void 0 : z.size) || U, Pe = e.name || (z == null ? void 0 : z.name) || y, ne = e.disableIcon || (z == null ? void 0 : z.disableIcon) || C, Se = e.overlay || (z == null ? void 0 : z.overlay) || R, w = {
|
|
1198
1198
|
checked: typeof b > "u" && K != null ? Nt(z == null ? void 0 : z.value, K) : b,
|
|
1199
1199
|
defaultChecked: f,
|
|
1200
1200
|
disabled: e.disabled || (m == null ? void 0 : m.disabled) || g,
|
|
@@ -1204,11 +1204,11 @@ const _t = X("span", {
|
|
|
1204
1204
|
onFocusVisible: h
|
|
1205
1205
|
}, {
|
|
1206
1206
|
getInputProps: q,
|
|
1207
|
-
checked:
|
|
1207
|
+
checked: X,
|
|
1208
1208
|
disabled: he,
|
|
1209
1209
|
focusVisible: se
|
|
1210
|
-
} = _o(w), lo = (d = e.color) != null ? d :
|
|
1211
|
-
checked:
|
|
1210
|
+
} = _o(w), lo = (d = e.color) != null ? d : X ? ee : fe, ie = D({}, p, {
|
|
1211
|
+
checked: X,
|
|
1212
1212
|
disabled: he,
|
|
1213
1213
|
focusVisible: se,
|
|
1214
1214
|
color: lo,
|
|
@@ -1271,7 +1271,7 @@ const _t = X("span", {
|
|
|
1271
1271
|
});
|
|
1272
1272
|
return /* @__PURE__ */ L(ao, D({}, co, {
|
|
1273
1273
|
children: [/* @__PURE__ */ L(uo, D({}, po, {
|
|
1274
|
-
children: [
|
|
1274
|
+
children: [X && !ne && x, !X && !ne && B, !x && !B && !ne && /* @__PURE__ */ n(mo, D({}, fo)), /* @__PURE__ */ n(vo, D({}, ho, {
|
|
1275
1275
|
children: /* @__PURE__ */ n(yo, D({}, bo))
|
|
1276
1276
|
}))]
|
|
1277
1277
|
})), S && /* @__PURE__ */ n(go, D({}, xo, {
|
|
@@ -1433,7 +1433,7 @@ const Ut = ["className", "component", "children", "name", "defaultValue", "disab
|
|
|
1433
1433
|
root: ["root", e, a && `variant${G(a)}`, l && `color${G(l)}`, r && `size${G(r)}`]
|
|
1434
1434
|
};
|
|
1435
1435
|
return me(i, jt, {});
|
|
1436
|
-
}, Wt =
|
|
1436
|
+
}, Wt = Y("div", {
|
|
1437
1437
|
name: "JoyRadioGroup",
|
|
1438
1438
|
slot: "Root",
|
|
1439
1439
|
overridesResolver: (o, e) => e.root
|
|
@@ -1524,7 +1524,7 @@ const Ut = ["className", "component", "children", "name", "defaultValue", "disab
|
|
|
1524
1524
|
"aria-describedby": h == null ? void 0 : h["aria-describedby"]
|
|
1525
1525
|
}
|
|
1526
1526
|
});
|
|
1527
|
-
return /* @__PURE__ */ n(
|
|
1527
|
+
return /* @__PURE__ */ n(Xe.Provider, {
|
|
1528
1528
|
value: U,
|
|
1529
1529
|
children: /* @__PURE__ */ n(B, D({}, K, {
|
|
1530
1530
|
children: /* @__PURE__ */ n($e.Provider, {
|
|
@@ -1876,9 +1876,9 @@ const Gt = (o, e) => {
|
|
|
1876
1876
|
) });
|
|
1877
1877
|
}, qt = Q(/* @__PURE__ */ n("path", {
|
|
1878
1878
|
d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"
|
|
1879
|
-
}), "Delete"),
|
|
1879
|
+
}), "Delete"), Xt = Q(/* @__PURE__ */ n("path", {
|
|
1880
1880
|
d: "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M8.5 8c.83 0 1.5.67 1.5 1.5S9.33 11 8.5 11 7 10.33 7 9.5 7.67 8 8.5 8M12 18c-2.28 0-4.22-1.66-5-4h10c-.78 2.34-2.72 4-5 4m3.5-7c-.83 0-1.5-.67-1.5-1.5S14.67 8 15.5 8s1.5.67 1.5 1.5-.67 1.5-1.5 1.5"
|
|
1881
|
-
}), "EmojiEmotions"),
|
|
1881
|
+
}), "EmojiEmotions"), Yt = Q(/* @__PURE__ */ n("path", {
|
|
1882
1882
|
d: "M14.4 6 14 4H5v17h2v-7h5.6l.4 2h7V6z"
|
|
1883
1883
|
}), "Flag"), Qt = Q(/* @__PURE__ */ n("path", {
|
|
1884
1884
|
d: "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5m-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11m3.5 3c-2.33 0-4.31 1.46-5.11 3.5h10.22c-.8-2.04-2.78-3.5-5.11-3.5"
|
|
@@ -1918,7 +1918,7 @@ const Gt = (o, e) => {
|
|
|
1918
1918
|
LOVE: /* @__PURE__ */ n(Fo, { fontSize: "small" }),
|
|
1919
1919
|
LAUGH: /* @__PURE__ */ n(tr, { fontSize: "small" }),
|
|
1920
1920
|
CARE: /* @__PURE__ */ n(Lo, { fontSize: "small" }),
|
|
1921
|
-
WOW: /* @__PURE__ */ n(
|
|
1921
|
+
WOW: /* @__PURE__ */ n(Xt, { fontSize: "small" }),
|
|
1922
1922
|
SAD: /* @__PURE__ */ n(rr, { fontSize: "small" }),
|
|
1923
1923
|
ANGRY: /* @__PURE__ */ n(Qt, { fontSize: "small" })
|
|
1924
1924
|
}, Ue = ({
|
|
@@ -2169,7 +2169,7 @@ const Gt = (o, e) => {
|
|
|
2169
2169
|
},
|
|
2170
2170
|
sx: f,
|
|
2171
2171
|
children: [
|
|
2172
|
-
/* @__PURE__ */ n(
|
|
2172
|
+
/* @__PURE__ */ n(Yt, { fontSize: "small", sx: { mr: u.xs } }),
|
|
2173
2173
|
l("discussion.report.action", "Report")
|
|
2174
2174
|
]
|
|
2175
2175
|
}
|
|
@@ -2200,7 +2200,7 @@ const Gt = (o, e) => {
|
|
|
2200
2200
|
f(!1);
|
|
2201
2201
|
}
|
|
2202
2202
|
};
|
|
2203
|
-
return /* @__PURE__ */ n(
|
|
2203
|
+
return /* @__PURE__ */ n(Ye, { open: o, onClose: e, container: l, children: /* @__PURE__ */ L(
|
|
2204
2204
|
Qe,
|
|
2205
2205
|
{
|
|
2206
2206
|
sx: {
|
|
@@ -2326,7 +2326,7 @@ const Gt = (o, e) => {
|
|
|
2326
2326
|
T(!1);
|
|
2327
2327
|
}
|
|
2328
2328
|
};
|
|
2329
|
-
return /* @__PURE__ */ n(
|
|
2329
|
+
return /* @__PURE__ */ n(Ye, { open: o, onClose: y, container: i, children: /* @__PURE__ */ L(
|
|
2330
2330
|
Qe,
|
|
2331
2331
|
{
|
|
2332
2332
|
sx: {
|
|
@@ -2486,7 +2486,7 @@ const Gt = (o, e) => {
|
|
|
2486
2486
|
var Pe, ne, Se, ze;
|
|
2487
2487
|
const { t: S } = le(), { shadowRootElement: T } = we(Ne), y = te(), $ = ae(), v = re(), E = so(e, r), [h, O] = H(!1), [N, A] = H([]), [j, U] = H(!1), [B, K] = H(!1), [k, _] = H(!1), [P, V] = H({ open: !1, variant: "success", title: "", message: "" }), m = !!(r && E && o.userId === E), M = async (w) => {
|
|
2488
2488
|
var se;
|
|
2489
|
-
const q = f === 1 && g || o.id,
|
|
2489
|
+
const q = f === 1 && g || o.id, X = ((se = o.userModel) == null ? void 0 : se.name) || o.anonymousNickname || S("discussion.anonymous", "Anonymous"), he = f === 1 ? `@${X} ${w}` : w;
|
|
2490
2490
|
await s(q, he), O(!1), f === 1 && C ? C() : f === 0 && (U(!0), z());
|
|
2491
2491
|
}, z = async () => {
|
|
2492
2492
|
if (!(!i || f >= 2))
|
|
@@ -2505,11 +2505,11 @@ const Gt = (o, e) => {
|
|
|
2505
2505
|
j && N.length === 0 && z();
|
|
2506
2506
|
}, [j]);
|
|
2507
2507
|
const ee = async (w) => {
|
|
2508
|
-
await d(w, o.id), A((q) => q.filter((
|
|
2508
|
+
await d(w, o.id), A((q) => q.filter((X) => X.id !== w));
|
|
2509
2509
|
}, fe = async (w, q) => {
|
|
2510
|
-
const
|
|
2511
|
-
|
|
2512
|
-
(he) => he.map((se) => se.id === w ?
|
|
2510
|
+
const X = await u(w, q);
|
|
2511
|
+
X && N.length > 0 && A(
|
|
2512
|
+
(he) => he.map((se) => se.id === w ? X : se)
|
|
2513
2513
|
);
|
|
2514
2514
|
}, ve = (w, q) => {
|
|
2515
2515
|
V({ open: !0, variant: q, title: "", message: w });
|
package/EitherOrPlay.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { jsx as t, jsxs as g, Fragment as De } from "react/jsx-runtime";
|
|
2
2
|
import { useState as D, useEffect as ge, useRef as qe, useCallback as Le } from "react";
|
|
3
|
-
import { d as Ce, q as be,
|
|
4
|
-
import { P as Gt } from "./chunks/Portal-
|
|
5
|
-
import { S as He } from "./chunks/Spinner-
|
|
3
|
+
import { d as Ce, q as be, a1 as ze, B as r, T as x, Q as se, f as xe, u as q, r as he, h as pe, R as me, O as Ht, g as Me, S as jt, W as Se, J as St, i as Vt } from "./chunks/PrizeCard-C4Au83Cz.js";
|
|
4
|
+
import { P as Gt } from "./chunks/Portal-BFeGKTzP.js";
|
|
5
|
+
import { S as He } from "./chunks/Spinner-BHr9A75G.js";
|
|
6
6
|
import "react-dom";
|
|
7
|
-
import { Z as Nt, A as Yt, S as Ct, O as _t } from "./chunks/index-
|
|
8
|
-
import { g as qt, h as re, e as je, a as It } from "./chunks/helpers-
|
|
9
|
-
import { S as Kt, N as Xt, O as Zt } from "./chunks/NotFoundSkeleton-
|
|
10
|
-
import { b as Jt, u as Ve, d as Ke, a as Xe } from "./chunks/useImageVariant-
|
|
11
|
-
import { A as Ze, O as Qt } from "./chunks/ArrowRightAlt-
|
|
12
|
-
import { F as Fe, a as vt } from "./chunks/FavoriteBorder-
|
|
13
|
-
import { C as Ne } from "./chunks/CheckCircle-
|
|
14
|
-
import { T as en } from "./chunks/TimerOutlined-
|
|
15
|
-
import { S as we } from "./chunks/AlertMessage-
|
|
16
|
-
import { S as tn, T as nn, P as rn } from "./chunks/Person-
|
|
17
|
-
import { A as on } from "./chunks/Avatar-
|
|
18
|
-
import { t as Tt, T as Pt, a as kt, b as Ee, c as We } from "./chunks/Tabs-
|
|
19
|
-
import { S as ln, a as an, O as sn, b as cn } from "./chunks/OverlayLeadAfterCollection-
|
|
20
|
-
import { C as dn } from "./chunks/CollectLeadForm-
|
|
7
|
+
import { Z as Nt, A as Yt, S as Ct, O as _t } from "./chunks/index-CMahPV5N.js";
|
|
8
|
+
import { g as qt, h as re, e as je, a as It } from "./chunks/helpers-LUoF9-Zd.js";
|
|
9
|
+
import { S as Kt, N as Xt, O as Zt } from "./chunks/NotFoundSkeleton-BHPH2RiI.js";
|
|
10
|
+
import { b as Jt, u as Ve, d as Ke, a as Xe } from "./chunks/useImageVariant-BAF6m9zj.js";
|
|
11
|
+
import { A as Ze, O as Qt } from "./chunks/ArrowRightAlt-BoUxriBH.js";
|
|
12
|
+
import { F as Fe, a as vt } from "./chunks/FavoriteBorder-UfuHpOXw.js";
|
|
13
|
+
import { C as Ne } from "./chunks/CheckCircle-HsAwn-Ao.js";
|
|
14
|
+
import { T as en } from "./chunks/TimerOutlined-CfuXkOOJ.js";
|
|
15
|
+
import { S as we } from "./chunks/AlertMessage-DeOcuhSL.js";
|
|
16
|
+
import { S as tn, T as nn, P as rn } from "./chunks/Person-IzZDDhmg.js";
|
|
17
|
+
import { A as on } from "./chunks/Avatar-C7ZJ5apl.js";
|
|
18
|
+
import { t as Tt, T as Pt, a as kt, b as Ee, c as We } from "./chunks/Tabs-D5c8Ignm.js";
|
|
19
|
+
import { S as ln, a as an, O as sn, b as cn } from "./chunks/OverlayLeadAfterCollection-DAb1dSmC.js";
|
|
20
|
+
import { C as dn } from "./chunks/CollectLeadForm-Dl6nc12_.js";
|
|
21
21
|
const un = Ce([/* @__PURE__ */ t("path", {
|
|
22
22
|
d: "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"
|
|
23
23
|
}, "0"), /* @__PURE__ */ t("path", {
|