fansunited-frontend-components 0.0.1-RC1 → 0.0.1-RC10

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.
@@ -0,0 +1,5 @@
1
+ import { ClassicQuizPlayProps } from 'fansunited-frontend-core';
2
+
3
+ declare const ClassicQuizPlay: React.FC<ClassicQuizPlayProps>;
4
+ export default ClassicQuizPlay;
5
+ //# sourceMappingURL=ClassicQuizPlay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClassicQuizPlay.d.ts","sourceRoot":"","sources":["../../src/ClassicQuizPlay.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAGhE,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAC1B,CAAC;AAG3B,eAAe,eAAe,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './index'
@@ -2,7 +2,7 @@ var Fu = Object.defineProperty;
2
2
  var Pu = (e, t, o) => t in e ? Fu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
3
3
  var N = (e, t, o) => Pu(e, typeof t != "symbol" ? t + "" : t, o);
4
4
  import * as w from "react";
5
- import lo, { forwardRef as Ku, useContext as xs, useState as wt, useCallback as Ai, useEffect as to, createContext as x0, useRef as Es, useMemo as Ar, createElement as Uu } from "react";
5
+ import Xt, { forwardRef as Ku, useContext as xs, useState as wt, useCallback as Ai, useEffect as oo, createContext as x0, useRef as Es, useMemo as Ar, createElement as Uu } from "react";
6
6
  import * as Ou from "react-dom";
7
7
  import { createPortal as Vu } from "react-dom";
8
8
  function Tu(e) {
@@ -22,7 +22,7 @@ var wl;
22
22
  function Hu() {
23
23
  if (wl) return _n;
24
24
  wl = 1;
25
- var e = lo, t = Symbol.for("react.element"), o = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, r = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
25
+ var e = Xt, t = Symbol.for("react.element"), o = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, r = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
26
26
  function s(l, c, d) {
27
27
  var u, A = {}, f = null, p = null;
28
28
  d !== void 0 && (f = "" + d), c.key !== void 0 && (f = "" + c.key), c.ref !== void 0 && (p = c.ref);
@@ -45,7 +45,7 @@ var $n = {};
45
45
  var Ql;
46
46
  function Lu() {
47
47
  return Ql || (Ql = 1, process.env.NODE_ENV !== "production" && function() {
48
- var e = lo, t = Symbol.for("react.element"), o = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), A = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), h = Symbol.iterator, y = "@@iterator";
48
+ var e = Xt, t = Symbol.for("react.element"), o = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), A = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), h = Symbol.iterator, y = "@@iterator";
49
49
  function I(P) {
50
50
  if (P === null || typeof P != "object")
51
51
  return null;
@@ -2880,17 +2880,17 @@ function Ti(...e) {
2880
2880
  }), n), {}), o = (n) => Object.keys(n).reduce((r, i) => t[i] ? gr(r, t[i](n)) : r, {});
2881
2881
  return o.propTypes = process.env.NODE_ENV !== "production" ? e.reduce((n, r) => Object.assign(n, r.propTypes), {}) : {}, o.filterProps = e.reduce((n, r) => n.concat(r.filterProps), []), o;
2882
2882
  }
2883
- function Xt(e) {
2883
+ function _t(e) {
2884
2884
  return typeof e != "number" ? e : `${e}px solid`;
2885
2885
  }
2886
- function ro(e, t) {
2886
+ function io(e, t) {
2887
2887
  return Ct({
2888
2888
  prop: e,
2889
2889
  themeKey: "borders",
2890
2890
  transform: t
2891
2891
  });
2892
2892
  }
2893
- const AA = ro("border", Xt), gA = ro("borderTop", Xt), fA = ro("borderRight", Xt), pA = ro("borderBottom", Xt), hA = ro("borderLeft", Xt), mA = ro("borderColor"), CA = ro("borderTopColor"), yA = ro("borderRightColor"), IA = ro("borderBottomColor"), vA = ro("borderLeftColor"), xA = ro("outline", Xt), EA = ro("outlineColor"), Hi = (e) => {
2893
+ const AA = io("border", _t), gA = io("borderTop", _t), fA = io("borderRight", _t), pA = io("borderBottom", _t), hA = io("borderLeft", _t), mA = io("borderColor"), CA = io("borderTopColor"), yA = io("borderRightColor"), IA = io("borderBottomColor"), vA = io("borderLeftColor"), xA = io("outline", _t), EA = io("outlineColor"), Hi = (e) => {
2894
2894
  if (e.borderRadius !== void 0 && e.borderRadius !== null) {
2895
2895
  const t = Ur(e.theme, "shape.borderRadius", 4, "borderRadius"), o = (n) => ({
2896
2896
  borderRadius: tn(t, n)
@@ -3036,23 +3036,23 @@ const ji = {
3036
3036
  // borders
3037
3037
  border: {
3038
3038
  themeKey: "borders",
3039
- transform: Xt
3039
+ transform: _t
3040
3040
  },
3041
3041
  borderTop: {
3042
3042
  themeKey: "borders",
3043
- transform: Xt
3043
+ transform: _t
3044
3044
  },
3045
3045
  borderRight: {
3046
3046
  themeKey: "borders",
3047
- transform: Xt
3047
+ transform: _t
3048
3048
  },
3049
3049
  borderBottom: {
3050
3050
  themeKey: "borders",
3051
- transform: Xt
3051
+ transform: _t
3052
3052
  },
3053
3053
  borderLeft: {
3054
3054
  themeKey: "borders",
3055
- transform: Xt
3055
+ transform: _t
3056
3056
  },
3057
3057
  borderColor: {
3058
3058
  themeKey: "palette"
@@ -3071,7 +3071,7 @@ const ji = {
3071
3071
  },
3072
3072
  outline: {
3073
3073
  themeKey: "borders",
3074
- transform: Xt
3074
+ transform: _t
3075
3075
  },
3076
3076
  outlineColor: {
3077
3077
  themeKey: "palette"
@@ -5541,7 +5541,7 @@ const Vr = Ii(), or = {
5541
5541
  }, {
5542
5542
  CssVarsProvider: cf,
5543
5543
  useColorScheme: df,
5544
- getInitColorSchemeScript: NI
5544
+ getInitColorSchemeScript: WI
5545
5545
  } = Mg({
5546
5546
  themeId: Kr,
5547
5547
  theme: Vr,
@@ -5944,17 +5944,17 @@ function Zi(...e) {
5944
5944
  }), n), {}), o = (n) => Object.keys(n).reduce((r, i) => t[i] ? pr(r, t[i](n)) : r, {});
5945
5945
  return o.propTypes = process.env.NODE_ENV !== "production" ? e.reduce((n, r) => Object.assign(n, r.propTypes), {}) : {}, o.filterProps = e.reduce((n, r) => n.concat(r.filterProps), []), o;
5946
5946
  }
5947
- function _t(e) {
5947
+ function $t(e) {
5948
5948
  return typeof e != "number" ? e : `${e}px solid`;
5949
5949
  }
5950
- function io(e, t) {
5950
+ function ao(e, t) {
5951
5951
  return yt({
5952
5952
  prop: e,
5953
5953
  themeKey: "borders",
5954
5954
  transform: t
5955
5955
  });
5956
5956
  }
5957
- const kf = io("border", _t), Df = io("borderTop", _t), Ff = io("borderRight", _t), Pf = io("borderBottom", _t), Kf = io("borderLeft", _t), Uf = io("borderColor"), Of = io("borderTopColor"), Vf = io("borderRightColor"), Tf = io("borderBottomColor"), Hf = io("borderLeftColor"), Lf = io("outline", _t), Mf = io("outlineColor"), Xi = (e) => {
5957
+ const kf = ao("border", $t), Df = ao("borderTop", $t), Ff = ao("borderRight", $t), Pf = ao("borderBottom", $t), Kf = ao("borderLeft", $t), Uf = ao("borderColor"), Of = ao("borderTopColor"), Vf = ao("borderRightColor"), Tf = ao("borderBottomColor"), Hf = ao("borderLeftColor"), Lf = ao("outline", $t), Mf = ao("outlineColor"), Xi = (e) => {
5958
5958
  if (e.borderRadius !== void 0 && e.borderRadius !== null) {
5959
5959
  const t = Hr(e.theme, "shape.borderRadius", 4, "borderRadius"), o = (n) => ({
5960
5960
  borderRadius: Lr(t, n)
@@ -6100,23 +6100,23 @@ const ta = {
6100
6100
  // borders
6101
6101
  border: {
6102
6102
  themeKey: "borders",
6103
- transform: _t
6103
+ transform: $t
6104
6104
  },
6105
6105
  borderTop: {
6106
6106
  themeKey: "borders",
6107
- transform: _t
6107
+ transform: $t
6108
6108
  },
6109
6109
  borderRight: {
6110
6110
  themeKey: "borders",
6111
- transform: _t
6111
+ transform: $t
6112
6112
  },
6113
6113
  borderBottom: {
6114
6114
  themeKey: "borders",
6115
- transform: _t
6115
+ transform: $t
6116
6116
  },
6117
6117
  borderLeft: {
6118
6118
  themeKey: "borders",
6119
- transform: _t
6119
+ transform: $t
6120
6120
  },
6121
6121
  borderColor: {
6122
6122
  themeKey: "palette"
@@ -6135,7 +6135,7 @@ const ta = {
6135
6135
  },
6136
6136
  outline: {
6137
6137
  themeKey: "borders",
6138
- transform: _t
6138
+ transform: $t
6139
6139
  },
6140
6140
  outlineColor: {
6141
6141
  themeKey: "palette"
@@ -6609,14 +6609,14 @@ const Cp = (e, t = "theme-mode") => {
6609
6609
  ), u = Ai(() => {
6610
6610
  d(c === "light" ? "dark" : "light");
6611
6611
  }, [c, d]);
6612
- return to(() => {
6612
+ return oo(() => {
6613
6613
  if (typeof window < "u" && window.matchMedia) {
6614
6614
  const A = window.matchMedia("(prefers-color-scheme: dark)"), f = (p) => {
6615
6615
  n(p.matches ? "dark" : "light");
6616
6616
  };
6617
6617
  return A.addEventListener("change", f), () => A.removeEventListener("change", f);
6618
6618
  }
6619
- }, []), to(() => {
6619
+ }, []), oo(() => {
6620
6620
  l && s !== r && (l(r), i(r));
6621
6621
  }, [l]), {
6622
6622
  mode: c,
@@ -6643,7 +6643,7 @@ const Cp = (e, t = "theme-mode") => {
6643
6643
  xl: "32px",
6644
6644
  "2xl": "40px",
6645
6645
  "3xl": "48px"
6646
- }, so = {
6646
+ }, lo = {
6647
6647
  light: {
6648
6648
  palette: {
6649
6649
  success: {
@@ -6761,45 +6761,45 @@ const Cp = (e, t = "theme-mode") => {
6761
6761
  // Merge with existing palette
6762
6762
  success: {
6763
6763
  ...t.colorSchemes.light.palette.success,
6764
- ...((i = (r = (n = e == null ? void 0 : e.colorSchemes) == null ? void 0 : n.light) == null ? void 0 : r.palette) == null ? void 0 : i.success) || so.light.palette.success
6764
+ ...((i = (r = (n = e == null ? void 0 : e.colorSchemes) == null ? void 0 : n.light) == null ? void 0 : r.palette) == null ? void 0 : i.success) || lo.light.palette.success
6765
6765
  },
6766
6766
  danger: {
6767
6767
  ...t.colorSchemes.light.palette.danger,
6768
- ...((c = (l = (s = e == null ? void 0 : e.colorSchemes) == null ? void 0 : s.light) == null ? void 0 : l.palette) == null ? void 0 : c.danger) || so.light.palette.danger
6768
+ ...((c = (l = (s = e == null ? void 0 : e.colorSchemes) == null ? void 0 : s.light) == null ? void 0 : l.palette) == null ? void 0 : c.danger) || lo.light.palette.danger
6769
6769
  },
6770
6770
  primary: {
6771
6771
  ...t.colorSchemes.light.palette.primary,
6772
- ...((A = (u = (d = e == null ? void 0 : e.colorSchemes) == null ? void 0 : d.light) == null ? void 0 : u.palette) == null ? void 0 : A.primary) || so.light.palette.primary
6772
+ ...((A = (u = (d = e == null ? void 0 : e.colorSchemes) == null ? void 0 : d.light) == null ? void 0 : u.palette) == null ? void 0 : A.primary) || lo.light.palette.primary
6773
6773
  },
6774
6774
  warning: {
6775
6775
  ...t.colorSchemes.light.palette.warning,
6776
- ...((h = (p = (f = e == null ? void 0 : e.colorSchemes) == null ? void 0 : f.light) == null ? void 0 : p.palette) == null ? void 0 : h.warning) || so.light.palette.warning
6776
+ ...((h = (p = (f = e == null ? void 0 : e.colorSchemes) == null ? void 0 : f.light) == null ? void 0 : p.palette) == null ? void 0 : h.warning) || lo.light.palette.warning
6777
6777
  }
6778
6778
  },
6779
6779
  // Add custom properties
6780
- ...((y = e == null ? void 0 : e.colorSchemes) == null ? void 0 : y.light) || so.light
6780
+ ...((y = e == null ? void 0 : e.colorSchemes) == null ? void 0 : y.light) || lo.light
6781
6781
  },
6782
6782
  dark: {
6783
6783
  palette: {
6784
6784
  primary: {
6785
6785
  ...t.colorSchemes.dark.palette.primary,
6786
- ...((R = (x = (I = e == null ? void 0 : e.colorSchemes) == null ? void 0 : I.dark) == null ? void 0 : x.palette) == null ? void 0 : R.primary) || so.dark.palette.primary
6786
+ ...((R = (x = (I = e == null ? void 0 : e.colorSchemes) == null ? void 0 : I.dark) == null ? void 0 : x.palette) == null ? void 0 : R.primary) || lo.dark.palette.primary
6787
6787
  },
6788
6788
  success: {
6789
6789
  ...t.colorSchemes.dark.palette.success,
6790
- ...((C = (Q = (E = e == null ? void 0 : e.colorSchemes) == null ? void 0 : E.dark) == null ? void 0 : Q.palette) == null ? void 0 : C.success) || so.dark.palette.success
6790
+ ...((C = (Q = (E = e == null ? void 0 : e.colorSchemes) == null ? void 0 : E.dark) == null ? void 0 : Q.palette) == null ? void 0 : C.success) || lo.dark.palette.success
6791
6791
  },
6792
6792
  danger: {
6793
6793
  ...t.colorSchemes.dark.palette.danger,
6794
- ...((S = (B = (v = e == null ? void 0 : e.colorSchemes) == null ? void 0 : v.dark) == null ? void 0 : B.palette) == null ? void 0 : S.danger) || so.dark.palette.danger
6794
+ ...((S = (B = (v = e == null ? void 0 : e.colorSchemes) == null ? void 0 : v.dark) == null ? void 0 : B.palette) == null ? void 0 : S.danger) || lo.dark.palette.danger
6795
6795
  },
6796
6796
  warning: {
6797
6797
  ...t.colorSchemes.dark.palette.warning,
6798
- ...((D = (m = (k = e == null ? void 0 : e.colorSchemes) == null ? void 0 : k.dark) == null ? void 0 : m.palette) == null ? void 0 : D.warning) || so.dark.palette.warning
6798
+ ...((D = (m = (k = e == null ? void 0 : e.colorSchemes) == null ? void 0 : k.dark) == null ? void 0 : m.palette) == null ? void 0 : D.warning) || lo.dark.palette.warning
6799
6799
  }
6800
6800
  },
6801
6801
  // Add custom properties
6802
- ...((F = e == null ? void 0 : e.colorSchemes) == null ? void 0 : F.dark) || so.dark
6802
+ ...((F = e == null ? void 0 : e.colorSchemes) == null ? void 0 : F.dark) || lo.dark
6803
6803
  }
6804
6804
  },
6805
6805
  // Add your custom properties
@@ -6849,12 +6849,12 @@ const Cp = (e, t = "theme-mode") => {
6849
6849
  }, Ee = () => {
6850
6850
  var o;
6851
6851
  const { theme: e, mode: t } = oa();
6852
- return ((o = e.colorSchemes) == null ? void 0 : o[t]) || so[t];
6852
+ return ((o = e.colorSchemes) == null ? void 0 : o[t]) || lo[t];
6853
6853
  }, na = () => {
6854
6854
  var o;
6855
6855
  const { theme: e, mode: t } = oa();
6856
6856
  return ((o = e.border) == null ? void 0 : o[t]) || yd[t];
6857
- }, $t = (e) => {
6857
+ }, eo = (e) => {
6858
6858
  const t = document.createElement("div");
6859
6859
  return t.innerHTML = e, t.textContent || t.innerText || "";
6860
6860
  }, ra = (e) => {
@@ -8567,7 +8567,7 @@ class Ch {
8567
8567
  }
8568
8568
  const yh = (e, t) => {
8569
8569
  const o = Es();
8570
- return to(() => {
8570
+ return oo(() => {
8571
8571
  o.current = e;
8572
8572
  }, [e, t]), o.current;
8573
8573
  }, Rd = (e, t, o, n) => e.getFixedT(t, o, n), Ih = (e, t, o, n) => Ai(Rd(e, t, o, n), [e, t, o, n]), Ot = (e, t = {}) => {
@@ -8598,7 +8598,7 @@ const yh = (e, t) => {
8598
8598
  let I = d.join();
8599
8599
  t.lng && (I = `${t.lng}${I}`);
8600
8600
  const x = yh(I), R = Es(!0);
8601
- to(() => {
8601
+ oo(() => {
8602
8602
  const {
8603
8603
  bindI18n: S,
8604
8604
  bindI18nStore: k
@@ -8614,7 +8614,7 @@ const yh = (e, t) => {
8614
8614
  return S && (i == null || i.on(S, m)), k && (i == null || i.store.on(k, m)), () => {
8615
8615
  R.current = !1, i && (S == null || S.split(" ").forEach((D) => i.off(D, m))), k && i && k.split(" ").forEach((D) => i.store.off(D, m));
8616
8616
  };
8617
- }, [i, I]), to(() => {
8617
+ }, [i, I]), oo(() => {
8618
8618
  R.current && u && y(f);
8619
8619
  }, [i, c, u]);
8620
8620
  const E = [h, i, u];
@@ -10652,7 +10652,7 @@ function n1(e) {
10652
10652
  }), [n, l])
10653
10653
  };
10654
10654
  }
10655
- var Tt = "top", oo = "bottom", no = "right", Ht = "left", Gs = "auto", zr = [Tt, oo, no, Ht], Dn = "start", Rr = "end", r1 = "clippingParents", Vd = "viewport", ir = "popper", i1 = "reference", Lc = /* @__PURE__ */ zr.reduce(function(e, t) {
10655
+ var Tt = "top", no = "bottom", ro = "right", Ht = "left", Gs = "auto", zr = [Tt, no, ro, Ht], Dn = "start", Rr = "end", r1 = "clippingParents", Vd = "viewport", ir = "popper", i1 = "reference", Lc = /* @__PURE__ */ zr.reduce(function(e, t) {
10656
10656
  return e.concat([t + "-" + Dn, t + "-" + Rr]);
10657
10657
  }, []), Td = /* @__PURE__ */ [].concat(zr, [Gs]).reduce(function(e, t) {
10658
10658
  return e.concat([t, t + "-" + Dn, t + "-" + Rr]);
@@ -10673,7 +10673,7 @@ function rn(e) {
10673
10673
  var t = Nt(e).Element;
10674
10674
  return e instanceof t || e instanceof Element;
10675
10675
  }
10676
- function eo(e) {
10676
+ function to(e) {
10677
10677
  var t = Nt(e).HTMLElement;
10678
10678
  return e instanceof t || e instanceof HTMLElement;
10679
10679
  }
@@ -10687,7 +10687,7 @@ function h1(e) {
10687
10687
  var t = e.state;
10688
10688
  Object.keys(t.elements).forEach(function(o) {
10689
10689
  var n = t.styles[o] || {}, r = t.attributes[o] || {}, i = t.elements[o];
10690
- !eo(i) || !Io(i) || (Object.assign(i.style, n), Object.keys(r).forEach(function(s) {
10690
+ !to(i) || !Io(i) || (Object.assign(i.style, n), Object.keys(r).forEach(function(s) {
10691
10691
  var l = r[s];
10692
10692
  l === !1 ? i.removeAttribute(s) : i.setAttribute(s, l === !0 ? "" : l);
10693
10693
  }));
@@ -10711,7 +10711,7 @@ function m1(e) {
10711
10711
  var r = t.elements[n], i = t.attributes[n] || {}, s = Object.keys(t.styles.hasOwnProperty(n) ? t.styles[n] : o[n]), l = s.reduce(function(c, d) {
10712
10712
  return c[d] = "", c;
10713
10713
  }, {});
10714
- !eo(r) || !Io(r) || (Object.assign(r.style, l), Object.keys(i).forEach(function(c) {
10714
+ !to(r) || !Io(r) || (Object.assign(r.style, l), Object.keys(i).forEach(function(c) {
10715
10715
  r.removeAttribute(c);
10716
10716
  }));
10717
10717
  });
@@ -10741,7 +10741,7 @@ function Hd() {
10741
10741
  function Pn(e, t, o) {
10742
10742
  t === void 0 && (t = !1), o === void 0 && (o = !1);
10743
10743
  var n = e.getBoundingClientRect(), r = 1, i = 1;
10744
- t && eo(e) && (r = e.offsetWidth > 0 && Fn(n.width) / e.offsetWidth || 1, i = e.offsetHeight > 0 && Fn(n.height) / e.offsetHeight || 1);
10744
+ t && to(e) && (r = e.offsetWidth > 0 && Fn(n.width) / e.offsetWidth || 1, i = e.offsetHeight > 0 && Fn(n.height) / e.offsetHeight || 1);
10745
10745
  var s = rn(e) ? Nt(e) : window, l = s.visualViewport, c = !Hd() && o, d = (n.left + (c && l ? l.offsetLeft : 0)) / r, u = (n.top + (c && l ? l.offsetTop : 0)) / i, A = n.width / r, f = n.height / i;
10746
10746
  return {
10747
10747
  width: A,
@@ -10802,18 +10802,18 @@ function aa(e) {
10802
10802
  );
10803
10803
  }
10804
10804
  function Mc(e) {
10805
- return !eo(e) || // https://github.com/popperjs/popper-core/issues/837
10805
+ return !to(e) || // https://github.com/popperjs/popper-core/issues/837
10806
10806
  wo(e).position === "fixed" ? null : e.offsetParent;
10807
10807
  }
10808
10808
  function I1(e) {
10809
10809
  var t = /firefox/i.test(cs()), o = /Trident/i.test(cs());
10810
- if (o && eo(e)) {
10810
+ if (o && to(e)) {
10811
10811
  var n = wo(e);
10812
10812
  if (n.position === "fixed")
10813
10813
  return null;
10814
10814
  }
10815
10815
  var r = aa(e);
10816
- for (Zs(r) && (r = r.host); eo(r) && ["html", "body"].indexOf(Io(r)) < 0; ) {
10816
+ for (Zs(r) && (r = r.host); to(r) && ["html", "body"].indexOf(Io(r)) < 0; ) {
10817
10817
  var i = wo(r);
10818
10818
  if (i.transform !== "none" || i.perspective !== "none" || i.contain === "paint" || ["transform", "perspective"].indexOf(i.willChange) !== -1 || t && i.willChange === "filter" || t && i.filter && i.filter !== "none")
10819
10819
  return r;
@@ -10858,9 +10858,9 @@ var x1 = function(t, o) {
10858
10858
  })) : t, zd(typeof t != "number" ? t : jd(t, zr));
10859
10859
  };
10860
10860
  function E1(e) {
10861
- var t, o = e.state, n = e.name, r = e.options, i = o.elements.arrow, s = o.modifiersData.popperOffsets, l = yo(o.placement), c = _s(l), d = [Ht, no].indexOf(l) >= 0, u = d ? "height" : "width";
10861
+ var t, o = e.state, n = e.name, r = e.options, i = o.elements.arrow, s = o.modifiersData.popperOffsets, l = yo(o.placement), c = _s(l), d = [Ht, ro].indexOf(l) >= 0, u = d ? "height" : "width";
10862
10862
  if (!(!i || !s)) {
10863
- var A = x1(r.padding, o), f = Xs(i), p = c === "y" ? Tt : Ht, h = c === "y" ? oo : no, y = o.rects.reference[u] + o.rects.reference[c] - s[c] - o.rects.popper[u], I = s[c] - o.rects.reference[c], x = jr(i), R = x ? c === "y" ? x.clientHeight || 0 : x.clientWidth || 0 : 0, E = y / 2 - I / 2, Q = A[p], C = R - f[u] - A[h], v = R / 2 - f[u] / 2 + E, B = mr(Q, v, C), S = c;
10863
+ var A = x1(r.padding, o), f = Xs(i), p = c === "y" ? Tt : Ht, h = c === "y" ? no : ro, y = o.rects.reference[u] + o.rects.reference[c] - s[c] - o.rects.popper[u], I = s[c] - o.rects.reference[c], x = jr(i), R = x ? c === "y" ? x.clientHeight || 0 : x.clientWidth || 0 : 0, E = y / 2 - I / 2, Q = A[p], C = R - f[u] - A[h], v = R / 2 - f[u] / 2 + E, B = mr(Q, v, C), S = c;
10864
10864
  o.modifiersData[n] = (t = {}, t[S] = B, t.centerOffset = B - v, t);
10865
10865
  }
10866
10866
  }
@@ -10905,16 +10905,16 @@ function zc(e) {
10905
10905
  var x = s.hasOwnProperty("x"), R = s.hasOwnProperty("y"), E = Ht, Q = Tt, C = window;
10906
10906
  if (d) {
10907
10907
  var v = jr(o), B = "clientHeight", S = "clientWidth";
10908
- if (v === Nt(o) && (v = Go(o), wo(v).position !== "static" && l === "absolute" && (B = "scrollHeight", S = "scrollWidth")), v = v, r === Tt || (r === Ht || r === no) && i === Rr) {
10909
- Q = oo;
10908
+ if (v === Nt(o) && (v = Go(o), wo(v).position !== "static" && l === "absolute" && (B = "scrollHeight", S = "scrollWidth")), v = v, r === Tt || (r === Ht || r === ro) && i === Rr) {
10909
+ Q = no;
10910
10910
  var k = A && v === C && C.visualViewport ? C.visualViewport.height : (
10911
10911
  // $FlowFixMe[prop-missing]
10912
10912
  v[B]
10913
10913
  );
10914
10914
  y -= k - n.height, y *= c ? 1 : -1;
10915
10915
  }
10916
- if (r === Ht || (r === Tt || r === oo) && i === Rr) {
10917
- E = no;
10916
+ if (r === Ht || (r === Tt || r === no) && i === Rr) {
10917
+ E = ro;
10918
10918
  var m = A && v === C && C.visualViewport ? C.visualViewport.width : (
10919
10919
  // $FlowFixMe[prop-missing]
10920
10920
  v[S]
@@ -11047,7 +11047,7 @@ function tl(e) {
11047
11047
  return /auto|scroll|overlay|hidden/.test(o + r + n);
11048
11048
  }
11049
11049
  function Yd(e) {
11050
- return ["html", "body", "#document"].indexOf(Io(e)) >= 0 ? e.ownerDocument.body : eo(e) && tl(e) ? e : Yd(aa(e));
11050
+ return ["html", "body", "#document"].indexOf(Io(e)) >= 0 ? e.ownerDocument.body : to(e) && tl(e) ? e : Yd(aa(e));
11051
11051
  }
11052
11052
  function Cr(e, t) {
11053
11053
  var o;
@@ -11074,7 +11074,7 @@ function Yc(e, t, o) {
11074
11074
  return t === Vd ? ds(K1(e, o)) : rn(t) ? O1(t, o) : ds(U1(Go(e)));
11075
11075
  }
11076
11076
  function V1(e) {
11077
- var t = Cr(aa(e)), o = ["absolute", "fixed"].indexOf(wo(e).position) >= 0, n = o && eo(e) ? jr(e) : e;
11077
+ var t = Cr(aa(e)), o = ["absolute", "fixed"].indexOf(wo(e).position) >= 0, n = o && to(e) ? jr(e) : e;
11078
11078
  return rn(n) ? t.filter(function(r) {
11079
11079
  return rn(r) && Ld(r, n) && Io(r) !== "body";
11080
11080
  }) : [];
@@ -11095,13 +11095,13 @@ function Jd(e) {
11095
11095
  y: t.y - o.height
11096
11096
  };
11097
11097
  break;
11098
- case oo:
11098
+ case no:
11099
11099
  c = {
11100
11100
  x: s,
11101
11101
  y: t.y + t.height
11102
11102
  };
11103
11103
  break;
11104
- case no:
11104
+ case ro:
11105
11105
  c = {
11106
11106
  x: t.x + t.width,
11107
11107
  y: l
@@ -11149,7 +11149,7 @@ function wr(e, t) {
11149
11149
  if (f === ir && D) {
11150
11150
  var F = D[r];
11151
11151
  Object.keys(m).forEach(function(U) {
11152
- var J = [no, oo].indexOf(U) >= 0 ? 1 : -1, L = [Tt, oo].indexOf(U) >= 0 ? "y" : "x";
11152
+ var J = [ro, no].indexOf(U) >= 0 ? 1 : -1, L = [Tt, no].indexOf(U) >= 0 ? "y" : "x";
11153
11153
  m[U] += F[L] * J;
11154
11154
  });
11155
11155
  }
@@ -11194,13 +11194,13 @@ function M1(e) {
11194
11194
  allowedAutoPlacements: y
11195
11195
  }) : te);
11196
11196
  }, []), C = t.rects.reference, v = t.rects.popper, B = /* @__PURE__ */ new Map(), S = !0, k = Q[0], m = 0; m < Q.length; m++) {
11197
- var D = Q[m], F = yo(D), U = Kn(D) === Dn, J = [Tt, oo].indexOf(F) >= 0, L = J ? "width" : "height", K = wr(t, {
11197
+ var D = Q[m], F = yo(D), U = Kn(D) === Dn, J = [Tt, no].indexOf(F) >= 0, L = J ? "width" : "height", K = wr(t, {
11198
11198
  placement: D,
11199
11199
  boundary: u,
11200
11200
  rootBoundary: A,
11201
11201
  altBoundary: f,
11202
11202
  padding: d
11203
- }), O = J ? U ? no : Ht : U ? oo : Tt;
11203
+ }), O = J ? U ? ro : Ht : U ? no : Tt;
11204
11204
  C[L] > v[L] && (O = ci(O));
11205
11205
  var W = ci(O), Z = [];
11206
11206
  if (i && Z.push(K[F] <= 0), l && Z.push(K[O] <= 0, K[W] <= 0), Z.every(function(ee) {
@@ -11251,7 +11251,7 @@ function Jc(e, t, o) {
11251
11251
  };
11252
11252
  }
11253
11253
  function qc(e) {
11254
- return [Tt, no, oo, Ht].some(function(t) {
11254
+ return [Tt, ro, no, Ht].some(function(t) {
11255
11255
  return e[t] >= 0;
11256
11256
  });
11257
11257
  }
@@ -11282,7 +11282,7 @@ function J1(e, t, o) {
11282
11282
  var n = yo(e), r = [Ht, Tt].indexOf(n) >= 0 ? -1 : 1, i = typeof o == "function" ? o(Object.assign({}, t, {
11283
11283
  placement: e
11284
11284
  })) : o, s = i[0], l = i[1];
11285
- return s = s || 0, l = (l || 0) * r, [Ht, no].indexOf(n) >= 0 ? {
11285
+ return s = s || 0, l = (l || 0) * r, [Ht, ro].indexOf(n) >= 0 ? {
11286
11286
  x: l,
11287
11287
  y: s
11288
11288
  } : {
@@ -11342,14 +11342,14 @@ function X1(e) {
11342
11342
  };
11343
11343
  if (v) {
11344
11344
  if (i) {
11345
- var U, J = Q === "y" ? Tt : Ht, L = Q === "y" ? oo : no, K = Q === "y" ? "height" : "width", O = v[Q], W = O + I[J], Z = O - I[L], H = p ? -S[K] / 2 : 0, Y = R === Dn ? B[K] : S[K], X = R === Dn ? -S[K] : -B[K], re = t.elements.arrow, ee = p && re ? Xs(re) : {
11345
+ var U, J = Q === "y" ? Tt : Ht, L = Q === "y" ? no : ro, K = Q === "y" ? "height" : "width", O = v[Q], W = O + I[J], Z = O - I[L], H = p ? -S[K] / 2 : 0, Y = R === Dn ? B[K] : S[K], X = R === Dn ? -S[K] : -B[K], re = t.elements.arrow, ee = p && re ? Xs(re) : {
11346
11346
  width: 0,
11347
11347
  height: 0
11348
11348
  }, te = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Md(), ae = te[J], q = te[L], T = mr(0, B[K], ee[K]), _ = E ? B[K] / 2 - H - T - ae - m.mainAxis : Y - T - ae - m.mainAxis, $ = E ? -B[K] / 2 + H + T + q + m.mainAxis : X + T + q + m.mainAxis, ye = t.elements.arrow && jr(t.elements.arrow), M = ye ? Q === "y" ? ye.clientTop || 0 : ye.clientLeft || 0 : 0, be = (U = D == null ? void 0 : D[Q]) != null ? U : 0, se = O + _ - be - M, Ce = O + $ - be, ue = mr(p ? Ri(W, se) : W, O, p ? en(Z, Ce) : Z);
11349
11349
  v[Q] = ue, F[Q] = ue - O;
11350
11350
  }
11351
11351
  if (l) {
11352
- var Fe, ve = Q === "x" ? Tt : Ht, Ze = Q === "x" ? oo : no, _e = v[C], ut = C === "y" ? "height" : "width", nt = _e + I[ve], Ue = _e - I[Ze], at = [Tt, Ht].indexOf(x) !== -1, st = (Fe = D == null ? void 0 : D[C]) != null ? Fe : 0, At = at ? nt : _e - B[ut] - S[ut] - st + m.altAxis, Ke = at ? _e + B[ut] + S[ut] - st - m.altAxis : Ue, De = p && at ? v1(At, _e, Ke) : mr(p ? At : nt, _e, p ? Ke : Ue);
11352
+ var Fe, ve = Q === "x" ? Tt : Ht, Ze = Q === "x" ? no : ro, _e = v[C], ut = C === "y" ? "height" : "width", nt = _e + I[ve], Ue = _e - I[Ze], at = [Tt, Ht].indexOf(x) !== -1, st = (Fe = D == null ? void 0 : D[C]) != null ? Fe : 0, At = at ? nt : _e - B[ut] - S[ut] - st + m.altAxis, Ke = at ? _e + B[ut] + S[ut] - st - m.altAxis : Ue, De = p && at ? v1(At, _e, Ke) : mr(p ? At : nt, _e, p ? Ke : Ue);
11353
11353
  v[C] = De, F[C] = De - _e;
11354
11354
  }
11355
11355
  t.modifiersData[n] = F;
@@ -11369,7 +11369,7 @@ function $1(e) {
11369
11369
  };
11370
11370
  }
11371
11371
  function eC(e) {
11372
- return e === Nt(e) || !eo(e) ? $s(e) : $1(e);
11372
+ return e === Nt(e) || !to(e) ? $s(e) : $1(e);
11373
11373
  }
11374
11374
  function tC(e) {
11375
11375
  var t = e.getBoundingClientRect(), o = Fn(t.width) / e.offsetWidth || 1, n = Fn(t.height) / e.offsetHeight || 1;
@@ -11377,7 +11377,7 @@ function tC(e) {
11377
11377
  }
11378
11378
  function oC(e, t, o) {
11379
11379
  o === void 0 && (o = !1);
11380
- var n = eo(t), r = eo(t) && tC(t), i = Go(t), s = Pn(e, r, o), l = {
11380
+ var n = to(t), r = to(t) && tC(t), i = Go(t), s = Pn(e, r, o), l = {
11381
11381
  scrollLeft: 0,
11382
11382
  scrollTop: 0
11383
11383
  }, c = {
@@ -11385,7 +11385,7 @@ function oC(e, t, o) {
11385
11385
  y: 0
11386
11386
  };
11387
11387
  return (n || !n && !o) && ((Io(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
11388
- tl(i)) && (l = eC(t)), eo(t) ? (c = Pn(t, !0), c.x += t.clientLeft, c.y += t.clientTop) : i && (c.x = el(i))), {
11388
+ tl(i)) && (l = eC(t)), to(t) ? (c = Pn(t, !0), c.x += t.clientLeft, c.y += t.clientTop) : i && (c.x = el(i))), {
11389
11389
  x: s.left + l.scrollLeft - c.x,
11390
11390
  y: s.top + l.scrollTop - c.y,
11391
11391
  width: s.width,
@@ -17114,20 +17114,20 @@ const Ey = ["aria-describedby", "aria-label", "aria-labelledby", "autoComplete",
17114
17114
  if (L && Ke.length > 0) {
17115
17115
  const we = (Zt) => {
17116
17116
  const St = at(Zt), {
17117
- onDelete: ao
17117
+ onDelete: so
17118
17118
  } = St, Oo = xe(St, Sy);
17119
17119
  return b({
17120
17120
  disabled: Ze,
17121
17121
  size: Fe,
17122
- onClick: ao
17122
+ onClick: so
17123
17123
  }, Oo);
17124
17124
  };
17125
17125
  ee ? mt = ee(Ke, we, ot) : mt = Ke.map((Zt, St) => {
17126
- const ao = we({
17126
+ const so = we({
17127
17127
  index: St
17128
17128
  }), {
17129
17129
  key: Oo
17130
- } = ao, Sa = xe(ao, by);
17130
+ } = so, Sa = xe(so, by);
17131
17131
  return /* @__PURE__ */ g.jsx(eu, {
17132
17132
  size: Fe,
17133
17133
  variant: "soft",
@@ -17170,7 +17170,7 @@ const Ey = ["aria-describedby", "aria-label", "aria-labelledby", "autoComplete",
17170
17170
  getSlotProps: (we) => {
17171
17171
  const Zt = ut(), {
17172
17172
  onBlur: St,
17173
- onFocus: ao,
17173
+ onFocus: so,
17174
17174
  onMouseDown: Oo
17175
17175
  } = Zt, Sa = xe(Zt, By);
17176
17176
  return b({}, Sa, {
@@ -17180,7 +17180,7 @@ const Ey = ["aria-describedby", "aria-label", "aria-labelledby", "autoComplete",
17180
17180
  },
17181
17181
  onFocus: (Vo) => {
17182
17182
  var To;
17183
- ao == null || ao(Vo), (To = we.onFocus) == null || To.call(we, Vo);
17183
+ so == null || so(Vo), (To = we.onFocus) == null || To.call(we, Vo);
17184
17184
  },
17185
17185
  onMouseDown: (Vo) => {
17186
17186
  var To;
@@ -17310,8 +17310,8 @@ const Ey = ["aria-describedby", "aria-label", "aria-labelledby", "autoComplete",
17310
17310
  }), Dt = re || ((we, Zt) => {
17311
17311
  const {
17312
17312
  key: St
17313
- } = we, ao = xe(we, Ry);
17314
- return /* @__PURE__ */ g.jsx(Et, b({}, ao, {
17313
+ } = we, so = xe(we, Ry);
17314
+ return /* @__PURE__ */ g.jsx(Et, b({}, so, {
17315
17315
  children: k(Zt)
17316
17316
  }), St);
17317
17317
  }), dn = (we, Zt) => {
@@ -17354,7 +17354,7 @@ const Ey = ["aria-describedby", "aria-label", "aria-labelledby", "autoComplete",
17354
17354
  return X({
17355
17355
  key: String(St.key),
17356
17356
  group: St.group,
17357
- children: St.options.map((ao, Oo) => dn(ao, St.index + Oo))
17357
+ children: St.options.map((so, Oo) => dn(so, St.index + Oo))
17358
17358
  });
17359
17359
  }
17360
17360
  return dn(we, Zt);
@@ -21302,7 +21302,7 @@ function b6(e) {
21302
21302
  throw new Error("Context was used outside of its Provider");
21303
21303
  return t;
21304
21304
  }
21305
- const B6 = ({ fonts: e }) => (to(() => {
21305
+ const B6 = ({ fonts: e }) => (oo(() => {
21306
21306
  const t = document.querySelectorAll(
21307
21307
  'link[data-font-loader="true"]'
21308
21308
  ), o = Array.from(t).map(
@@ -22376,7 +22376,7 @@ const C4 = (e, t) => {
22376
22376
  console.error(i), n(new s4());
22377
22377
  }
22378
22378
  };
22379
- return to(() => (r(), () => n(null)), [e]), o;
22379
+ return oo(() => (r(), () => n(null)), [e]), o;
22380
22380
  }, y4 = (e, t) => {
22381
22381
  const [o, n] = wt(null), r = async () => {
22382
22382
  try {
@@ -22388,7 +22388,7 @@ const C4 = (e, t) => {
22388
22388
  console.error(i), n([new Iu()]);
22389
22389
  }
22390
22390
  };
22391
- return to(() => (r(), () => n([])), [e]), o;
22391
+ return oo(() => (r(), () => n([])), [e]), o;
22392
22392
  };
22393
22393
  function vu(e, t = "") {
22394
22394
  return e.displayName || e.name || t;
@@ -24292,7 +24292,7 @@ const Vn = zn(/* @__PURE__ */ g.jsx("path", {
24292
24292
  const h = e.quizType === "countdown" ? e.timer - 1 : e.timer + 1;
24293
24293
  e.onTimeUpdate(h);
24294
24294
  }, [e.onTimeUpdate]);
24295
- to(() => (e.isRunning && (t = setInterval(A, 1e3)), () => {
24295
+ oo(() => (e.isRunning && (t = setInterval(A, 1e3)), () => {
24296
24296
  t && clearInterval(t);
24297
24297
  }), [e.isRunning, A, e.timer]);
24298
24298
  const f = (h) => {
@@ -25544,7 +25544,7 @@ const Vn = zn(/* @__PURE__ */ g.jsx("path", {
25544
25544
  ] });
25545
25545
  }, xl = (e, t) => {
25546
25546
  const o = Es(null);
25547
- return to(() => {
25547
+ return oo(() => {
25548
25548
  var n;
25549
25549
  if (e && o.current) {
25550
25550
  o.current.innerHTML = e;
@@ -25845,7 +25845,7 @@ const Vn = zn(/* @__PURE__ */ g.jsx("path", {
25845
25845
  }
25846
25846
  }, X8 = (e) => {
25847
25847
  var D, F, U, J, L, K, O, W, Z, H, Y, X, re, ee, te, ae, q, T, _, $, ye, M, be, se, Ce, ue, Fe;
25848
- const [t, o] = lo.useState(
25848
+ const [t, o] = Xt.useState(
25849
25849
  ((D = e.leads) == null ? void 0 : D.position) === "before" && e.classicQuiz.authRequirement === "LEAD"
25850
25850
  ), n = Wt(), r = Gt(), i = Rt() ? ((F = e.classicQuiz.images) == null ? void 0 : F.mobile) || "" : ((U = e.classicQuiz.images) == null ? void 0 : U.cover) || "", s = vo(e.question.images), { t: l } = Ot(), c = Rt() ? Yn : jn, d = xl(
25851
25851
  e.question.embedCode,
@@ -25881,7 +25881,7 @@ const Vn = zn(/* @__PURE__ */ g.jsx("path", {
25881
25881
  /* @__PURE__ */ g.jsx(ie, { level: "body-sm", sx: S.quizHeadlineText, children: l("classicQuiz.headline") }),
25882
25882
  /* @__PURE__ */ g.jsxs(V, { sx: S.contentContainer, children: [
25883
25883
  /* @__PURE__ */ g.jsx(ie, { level: "h4", sx: S.quizTitleText, children: e.classicQuiz.title }),
25884
- /* @__PURE__ */ g.jsx(ie, { level: "body-lg", sx: S.quizDescriptionText, children: $t(e.classicQuiz.description) })
25884
+ /* @__PURE__ */ g.jsx(ie, { level: "body-lg", sx: S.quizDescriptionText, children: eo(e.classicQuiz.description) })
25885
25885
  ] })
25886
25886
  ] }) }) }) }),
25887
25887
  e.applyFilterScreen ? /* @__PURE__ */ g.jsxs(V, { sx: S.filterScreenBottomContainer, children: [
@@ -26476,7 +26476,7 @@ const Vn = zn(/* @__PURE__ */ g.jsx("path", {
26476
26476
  };
26477
26477
  }, eI = (e) => {
26478
26478
  var D, F, U, J, L, K, O, W, Z, H, Y, X, re, ee, te, ae;
26479
- const [t, o] = lo.useState(
26479
+ const [t, o] = Xt.useState(
26480
26480
  ((D = e.leads) == null ? void 0 : D.position) === "before" && e.classicQuiz.authRequirement === "LEAD"
26481
26481
  ), n = xl(
26482
26482
  e.question.embedCode,
@@ -26543,7 +26543,7 @@ const Vn = zn(/* @__PURE__ */ g.jsx("path", {
26543
26543
  {
26544
26544
  level: "body-md",
26545
26545
  sx: v.descriptionTypographyMobileImage,
26546
- children: $t(e.classicQuiz.description)
26546
+ children: eo(e.classicQuiz.description)
26547
26547
  }
26548
26548
  )
26549
26549
  ] })
@@ -26556,7 +26556,7 @@ const Vn = zn(/* @__PURE__ */ g.jsx("path", {
26556
26556
  /* @__PURE__ */ g.jsx(ie, { level: "body-sm", sx: v.headlineTypography, children: l("classicQuiz.headline") }),
26557
26557
  /* @__PURE__ */ g.jsxs(V, { sx: v.contentContainer, children: [
26558
26558
  /* @__PURE__ */ g.jsx(ie, { level: "h4", sx: v.titleTypography, children: e.classicQuiz.title }),
26559
- /* @__PURE__ */ g.jsx(ie, { level: "body-md", sx: v.descriptionTypography, children: $t(e.classicQuiz.description) })
26559
+ /* @__PURE__ */ g.jsx(ie, { level: "body-md", sx: v.descriptionTypography, children: eo(e.classicQuiz.description) })
26560
26560
  ] })
26561
26561
  ] }),
26562
26562
  e.applyFilterScreen && /* @__PURE__ */ g.jsx(V, { children: m() })
@@ -26580,7 +26580,7 @@ const Vn = zn(/* @__PURE__ */ g.jsx("path", {
26580
26580
  {
26581
26581
  level: "body-md",
26582
26582
  sx: v.descriptionTypographyDesktop,
26583
- children: $t(e.classicQuiz.description)
26583
+ children: eo(e.classicQuiz.description)
26584
26584
  }
26585
26585
  )
26586
26586
  ] })
@@ -26921,7 +26921,7 @@ const Vn = zn(/* @__PURE__ */ g.jsx("path", {
26921
26921
  };
26922
26922
  }, oI = (e) => {
26923
26923
  var m, D, F, U, J, L, K, O, W, Z, H, Y, X, re, ee, te, ae, q, T, _;
26924
- const [t, o] = lo.useState(
26924
+ const [t, o] = Xt.useState(
26925
26925
  ((m = e.leads) == null ? void 0 : m.position) === "before" && e.classicQuiz.authRequirement === "LEAD"
26926
26926
  ), n = Gt(), r = vo(e.classicQuiz.images), i = vo(e.question.images), { t: s } = Ot(), l = ((D = e.classicQuiz.branding) == null ? void 0 : D.colors) || null, c = Rt() ? ((F = e.classicQuiz.branding) == null ? void 0 : F.images.mobileLogo) || ((U = e.classicQuiz.branding) == null ? void 0 : U.images.mainLogo) || "" : ((J = e.classicQuiz.branding) == null ? void 0 : J.images.mainLogo) || "", d = Rt() ? Yn : jn, u = xl(
26927
26927
  e.question.embedCode,
@@ -26953,7 +26953,7 @@ const Vn = zn(/* @__PURE__ */ g.jsx("path", {
26953
26953
  /* @__PURE__ */ g.jsx(ie, { level: "body-sm", sx: B.quizHeadlineText, children: s("classicQuiz.headline") }),
26954
26954
  /* @__PURE__ */ g.jsxs(V, { sx: B.contentContainer, children: [
26955
26955
  /* @__PURE__ */ g.jsx(ie, { level: "body-lg", sx: B.quizTitleText, children: e.classicQuiz.title }),
26956
- /* @__PURE__ */ g.jsx(ie, { level: "body-md", sx: B.quizDescriptionText, children: $t(e.classicQuiz.description) })
26956
+ /* @__PURE__ */ g.jsx(ie, { level: "body-md", sx: B.quizDescriptionText, children: eo(e.classicQuiz.description) })
26957
26957
  ] })
26958
26958
  ] }),
26959
26959
  e.applyFilterScreen ? /* @__PURE__ */ g.jsx(V, { children: /* @__PURE__ */ g.jsxs(V, { sx: B.filterScreenBottomContainer, children: [
@@ -27067,7 +27067,7 @@ const Vn = zn(/* @__PURE__ */ g.jsx("path", {
27067
27067
  children: r,
27068
27068
  brandingColors: i
27069
27069
  }) => {
27070
- const [s, l] = lo.useState(0), c = Gt(), { t: d } = Ot(), u = vt().md, A = n ? c.colorSchemes.dark.textPrimary : Ee().textPrimary, f = n ? c.colorSchemes.dark.textSecondary : Ee().textSecondary, p = it().primary, h = it().secondary, y = n ? c.colorSchemes.dark.secondaryContainer : Ee().secondaryContainer, I = i != null && i.backgroundColor || n ? c.colorSchemes.dark.surfaceVariant : Ee().surfaceVariant, x = Wt(), R = Ee().palette.success.plainColor, E = Ee().palette.danger.plainColor;
27070
+ const [s, l] = Xt.useState(0), c = Gt(), { t: d } = Ot(), u = vt().md, A = n ? c.colorSchemes.dark.textPrimary : Ee().textPrimary, f = n ? c.colorSchemes.dark.textSecondary : Ee().textSecondary, p = it().primary, h = it().secondary, y = n ? c.colorSchemes.dark.secondaryContainer : Ee().secondaryContainer, I = i != null && i.backgroundColor || n ? c.colorSchemes.dark.surfaceVariant : Ee().surfaceVariant, x = Wt(), R = Ee().palette.success.plainColor, E = Ee().palette.danger.plainColor;
27071
27071
  let Q = n ? c.colorSchemes.dark.textPrimary : Ee().textPrimary;
27072
27072
  i != null && i.primaryColor && (Q = i.primaryColor);
27073
27073
  const C = (v, B) => {
@@ -27271,7 +27271,7 @@ const Vn = zn(/* @__PURE__ */ g.jsx("path", {
27271
27271
  lineHeight: "143%",
27272
27272
  letterSpacing: "0.17px"
27273
27273
  },
27274
- children: $t(S == null ? void 0 : S.explanation)
27274
+ children: eo(S == null ? void 0 : S.explanation)
27275
27275
  }
27276
27276
  )
27277
27277
  ]
@@ -28566,7 +28566,7 @@ const Vn = zn(/* @__PURE__ */ g.jsx("path", {
28566
28566
  /* @__PURE__ */ g.jsx(ie, { level: "body-sm", sx: k.quizHeadlineText, children: "Quiz" }),
28567
28567
  /* @__PURE__ */ g.jsxs(V, { sx: k.contentContainer, children: [
28568
28568
  /* @__PURE__ */ g.jsx(ie, { level: "body-lg", sx: k.quizTitleText, children: e.classicQuiz.title }),
28569
- /* @__PURE__ */ g.jsx(ie, { level: "body-md", sx: k.quizDescriptionText, children: $t(e.classicQuiz.description) })
28569
+ /* @__PURE__ */ g.jsx(ie, { level: "body-md", sx: k.quizDescriptionText, children: eo(e.classicQuiz.description) })
28570
28570
  ] })
28571
28571
  ] }),
28572
28572
  /* @__PURE__ */ g.jsx(V, { sx: k.presentedByDesktop, children: /* @__PURE__ */ g.jsx(
@@ -29591,7 +29591,7 @@ const Vn = zn(/* @__PURE__ */ g.jsx("path", {
29591
29591
  {
29592
29592
  level: "body-md",
29593
29593
  sx: h.descriptionTypographyMobileImage,
29594
- children: $t(e.classicQuiz.description)
29594
+ children: eo(e.classicQuiz.description)
29595
29595
  }
29596
29596
  )
29597
29597
  ] })
@@ -29599,7 +29599,7 @@ const Vn = zn(/* @__PURE__ */ g.jsx("path", {
29599
29599
  /* @__PURE__ */ g.jsx(ie, { level: "body-sm", sx: h.headlineTypography, children: A("classicQuiz.headline") }),
29600
29600
  /* @__PURE__ */ g.jsxs(V, { sx: h.contentContainer, children: [
29601
29601
  /* @__PURE__ */ g.jsx(ie, { level: "h4", sx: h.titleTypography, children: e.classicQuiz.title }),
29602
- /* @__PURE__ */ g.jsx(ie, { level: "body-md", sx: h.descriptionTypography, children: $t(e.classicQuiz.description) })
29602
+ /* @__PURE__ */ g.jsx(ie, { level: "body-md", sx: h.descriptionTypography, children: eo(e.classicQuiz.description) })
29603
29603
  ] })
29604
29604
  ] }) }),
29605
29605
  n && f === "left" && /* @__PURE__ */ g.jsx(V, { sx: h.imageContainerLeft, children: /* @__PURE__ */ g.jsx(
@@ -29620,7 +29620,7 @@ const Vn = zn(/* @__PURE__ */ g.jsx("path", {
29620
29620
  {
29621
29621
  level: "body-md",
29622
29622
  sx: h.descriptionTypographyDesktop,
29623
- children: $t(e.classicQuiz.description)
29623
+ children: eo(e.classicQuiz.description)
29624
29624
  }
29625
29625
  )
29626
29626
  ] })
@@ -29769,7 +29769,7 @@ const Vn = zn(/* @__PURE__ */ g.jsx("path", {
29769
29769
  /* @__PURE__ */ g.jsx(ie, { level: "body-sm", sx: f.quizHeadlineText, children: n("classicQuiz.headline") }),
29770
29770
  /* @__PURE__ */ g.jsxs(V, { sx: f.contentContainer, children: [
29771
29771
  /* @__PURE__ */ g.jsx(ie, { level: "body-lg", sx: f.quizTitleText, children: e.classicQuiz.title }),
29772
- /* @__PURE__ */ g.jsx(ie, { level: "body-md", sx: f.quizDescriptionText, children: $t(e.classicQuiz.description) })
29772
+ /* @__PURE__ */ g.jsx(ie, { level: "body-md", sx: f.quizDescriptionText, children: eo(e.classicQuiz.description) })
29773
29773
  ] })
29774
29774
  ] }),
29775
29775
  /* @__PURE__ */ g.jsx(V, { sx: f.presentedByDesktop, children: /* @__PURE__ */ g.jsx(
@@ -29931,7 +29931,7 @@ const Vn = zn(/* @__PURE__ */ g.jsx("path", {
29931
29931
  /* @__PURE__ */ g.jsx(ie, { level: "body-sm", sx: y.quizHeadlineText, children: r("classicQuiz.headline") }),
29932
29932
  /* @__PURE__ */ g.jsxs(V, { sx: y.contentContainer, children: [
29933
29933
  /* @__PURE__ */ g.jsx(ie, { level: "h4", sx: y.quizTitleText, children: e.classicQuiz.title }),
29934
- /* @__PURE__ */ g.jsx(ie, { level: "body-lg", sx: y.quizDescriptionText, children: $t(e.classicQuiz.description) })
29934
+ /* @__PURE__ */ g.jsx(ie, { level: "body-lg", sx: y.quizDescriptionText, children: eo(e.classicQuiz.description) })
29935
29935
  ] })
29936
29936
  ] }) }) }) }),
29937
29937
  /* @__PURE__ */ g.jsxs(V, { sx: y.bottomSection, children: [
@@ -29960,9 +29960,9 @@ const jI = (e) => {
29960
29960
  const [t, o] = wt(1), [n, r] = wt(null), [i, s] = wt(!1), [l, c] = wt([]), [d, u] = wt(
29961
29961
  []
29962
29962
  ), [A, f] = wt(!1), [p, h] = wt(!0), [y, I] = wt(0), x = C4(e.entityId, e.sdk), R = y4(e.entityId, e.sdk), E = Ar(() => !x || !R ? !1 : x.maxAttempts === 1 && R.length > 0, [x, R]);
29963
- if (to(() => {
29963
+ if (oo(() => {
29964
29964
  xm(e.language || "en");
29965
- }, [e.language]), to(() => {
29965
+ }, [e.language]), oo(() => {
29966
29966
  var m;
29967
29967
  x && x.type && (!(x.authRequirement === "LEAD" && ((m = e.leads) == null ? void 0 : m.position) === "before") && xa.includes(x.type.toLocaleLowerCase()) && f(!0), x.type.toLowerCase() === "countdown" && I(x.time || 10));
29968
29968
  }, [x]), !x || !R)
@@ -30113,58 +30113,49 @@ const jI = (e) => {
30113
30113
  );
30114
30114
  }
30115
30115
  return k();
30116
- }, WI = (e) => {
30117
- var u;
30118
- const [t, o] = lo.useState(null), n = lo.useRef(null), r = lo.useRef(null);
30119
- lo.useEffect(() => {
30120
- if (n.current) {
30121
- if (!r.current) {
30122
- r.current = n.current.attachShadow({ mode: "open" });
30123
- const A = document.createElement("div");
30124
- A.id = "classic-quiz-play-shadow-root", r.current.appendChild(A), o(A);
30125
- }
30126
- return () => {
30127
- if (r.current) {
30128
- const A = r.current.getElementById(
30129
- "classic-quiz-play-shadow-root"
30130
- );
30131
- A && A.remove(), o(null);
30132
- }
30116
+ }, YI = (e) => {
30117
+ var A;
30118
+ const [t, o] = Xt.useState(!1), n = Xt.useRef(null), r = Xt.useRef(null), i = Xt.useRef(null), s = Xt.useRef(null);
30119
+ Xt.useEffect(() => {
30120
+ if (n.current)
30121
+ return n.current.shadowRoot ? (r.current = n.current.shadowRoot, i.current = r.current.getElementById(
30122
+ "classic-quiz-play-shadow-root"
30123
+ ), i.current || (i.current = document.createElement("div"), i.current.id = "classic-quiz-play-shadow-root", r.current.appendChild(i.current))) : (r.current = n.current.attachShadow({ mode: "open" }), i.current = document.createElement("div"), i.current.id = "classic-quiz-play-shadow-root", r.current.appendChild(i.current)), s.current || (s.current = D0({
30124
+ key: "classic-quiz-play-css",
30125
+ prepend: !0,
30126
+ container: r.current
30127
+ })), o(!0), () => {
30128
+ o(!1);
30133
30129
  };
30134
- }
30135
30130
  }, []);
30136
- const i = lo.useMemo(() => D0({
30137
- key: "classic-quiz-play-css",
30138
- prepend: !0,
30139
- container: r.current || void 0
30140
- }), [t]), s = e.themeOptions, l = {
30141
- ...s,
30142
- mode: e.template === Bo.OVERLAY ? "dark" : s == null ? void 0 : s.mode
30143
- }, c = /* @__PURE__ */ g.jsx(V, { ref: n }), d = t ? Vu(
30144
- /* @__PURE__ */ g.jsx(F2, { value: i, children: /* @__PURE__ */ g.jsx(
30131
+ const l = e.themeOptions, c = {
30132
+ ...l,
30133
+ mode: e.template === Bo.OVERLAY ? "dark" : l == null ? void 0 : l.mode
30134
+ }, d = /* @__PURE__ */ g.jsx(V, { ref: n }), u = t && i.current && s.current ? Vu(
30135
+ /* @__PURE__ */ g.jsx(F2, { value: s.current, children: /* @__PURE__ */ g.jsx(
30145
30136
  R6,
30146
30137
  {
30147
- customTheme: l,
30148
- mode: l == null ? void 0 : l.mode,
30149
- shadowRootElement: t,
30138
+ customTheme: c,
30139
+ mode: c == null ? void 0 : c.mode,
30140
+ shadowRootElement: i.current,
30150
30141
  children: /* @__PURE__ */ g.jsx(
30151
30142
  w6,
30152
30143
  {
30153
- shadowRootElement: t,
30154
- leadPhoneCountryCode: ((u = e.leads) == null ? void 0 : u.phoneCountryCode) || null,
30144
+ shadowRootElement: i.current,
30145
+ leadPhoneCountryCode: ((A = e.leads) == null ? void 0 : A.phoneCountryCode) || null,
30155
30146
  language: e.language,
30156
30147
  children: /* @__PURE__ */ g.jsx(jI, { ...e })
30157
30148
  }
30158
30149
  )
30159
30150
  }
30160
30151
  ) }),
30161
- t
30152
+ i.current
30162
30153
  ) : null;
30163
30154
  return /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
30164
- c,
30165
- d
30155
+ d,
30156
+ u
30166
30157
  ] });
30167
- };
30158
+ }, GI = YI;
30168
30159
  export {
30169
- WI as ClassicQuizPlay
30160
+ GI as ClassicQuizPlay
30170
30161
  };
package/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export { default as ClassicQuizPlay } from './ClassicQuizPlay';
2
+ //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
package/package.json CHANGED
@@ -1,26 +1,13 @@
1
1
  {
2
2
  "name": "fansunited-frontend-components",
3
- "version": "0.0.1-RC1",
3
+ "version": "0.0.1-RC10",
4
4
  "description": "Various user centric components for Fans United features",
5
- "type": "module",
6
- "main": "./dist/esm/components.js",
7
- "module": "./dist/esm/components.js",
8
- "exports": {
9
- ".": {
10
- "import": "./dist/esm/components.js",
11
- "require": "./dist/esm/components.js"
12
- }
13
- },
14
- "files": [
15
- "dist"
16
- ],
17
- "scripts": {
18
- "build": "npm run build:esm",
19
- "build:esm": "tsc -b && vite build --config vite.config.ts",
20
- "build:umd": "tsc -b && vite build --config vite.config.umd.ts"
21
- },
5
+ "main": "components.js",
6
+ "types": "components.d.ts",
7
+ "author": "Fans United",
8
+ "homepage": "https://fansunitedmedia.com/",
22
9
  "dependencies": {
23
- "@fansunited/classic-quiz-play": "workspace:*"
10
+ "fansunited-frontend-core": "latest"
24
11
  },
25
12
  "devDependencies": {
26
13
  "vite": "^5.0.0",
@@ -1,4 +0,0 @@
1
- import { default as ClassicQuizPlay } from '../../classic-quiz-play/src';
2
-
3
- export { ClassicQuizPlay };
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,eAAe,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"indexUmd.d.ts","sourceRoot":"","sources":["../../../src/indexUmd.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- declare const _default: import('vite').UserConfig;
2
- export default _default;
3
- //# sourceMappingURL=vite.config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vite.config.d.ts","sourceRoot":"","sources":["../../vite.config.ts"],"names":[],"mappings":";AAKA,wBAyCG"}
@@ -1,3 +0,0 @@
1
- declare const _default: import('vite').UserConfig;
2
- export default _default;
3
- //# sourceMappingURL=vite.config.umd.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vite.config.umd.d.ts","sourceRoot":"","sources":["../../vite.config.umd.ts"],"names":[],"mappings":";AAKA,wBAiCG"}
@@ -1,3 +0,0 @@
1
- import ClassicQuizPlay from "@fansunited/classic-quiz-play";
2
- export { ClassicQuizPlay };
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,eAAe,EAAE,CAAC"}
package/dist/src/index.js DELETED
@@ -1,2 +0,0 @@
1
- import ClassicQuizPlay from "@fansunited/classic-quiz-play";
2
- export { ClassicQuizPlay };
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=indexUmd.d.ts.map
@@ -1,4 +0,0 @@
1
- import ClassicQuizPlay from "@fansunited/classic-quiz-play";
2
- if (typeof window !== "undefined") {
3
- window.ClassicQuizPlay = ClassicQuizPlay;
4
- }
@@ -1 +0,0 @@
1
- {"root":["../src/index.ts","../src/indexumd.ts","../vite.config.ts","../vite.config.umd.ts"],"version":"5.6.3"}
@@ -1,3 +0,0 @@
1
- declare const _default: import("vite").UserConfig;
2
- export default _default;
3
- //# sourceMappingURL=vite.config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vite.config.d.ts","sourceRoot":"","sources":["../vite.config.ts"],"names":[],"mappings":";AAKA,wBAyCG"}
@@ -1,43 +0,0 @@
1
- import { defineConfig } from "vite";
2
- import { resolve } from "path";
3
- import react from "@vitejs/plugin-react";
4
- import dts from "vite-plugin-dts";
5
- export default defineConfig({
6
- plugins: [
7
- react(),
8
- dts({
9
- insertTypesEntry: true,
10
- }),
11
- ],
12
- resolve: {
13
- alias: {
14
- // "@": resolve(__dirname, "./src"),
15
- "@fansunited/common": resolve(__dirname, "../common/src"),
16
- "@fansunited/classic-quiz-play": resolve(__dirname, "../classic-quiz-play/src"),
17
- // "@fansunited/classic-quiz-awareness": resolve(
18
- // __dirname,
19
- // "../classic-quiz-awareness/src"
20
- // ),
21
- },
22
- },
23
- build: {
24
- outDir: "dist/esm",
25
- lib: {
26
- entry: resolve(__dirname, "src/index.ts"),
27
- name: "FansUnitedFrontendComponents",
28
- formats: ["es"],
29
- fileName(_, __) {
30
- return `components.js`;
31
- },
32
- },
33
- rollupOptions: {
34
- external: ["react", "react-dom"],
35
- output: {
36
- globals: {
37
- react: "React",
38
- "react-dom": "ReactDOM",
39
- },
40
- },
41
- },
42
- },
43
- });
@@ -1,3 +0,0 @@
1
- declare const _default: import("vite").UserConfig;
2
- export default _default;
3
- //# sourceMappingURL=vite.config.umd.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vite.config.umd.d.ts","sourceRoot":"","sources":["../vite.config.umd.ts"],"names":[],"mappings":";AAKA,wBAiCG"}
@@ -1,35 +0,0 @@
1
- import { defineConfig } from "vite";
2
- import { resolve } from "path";
3
- import react from "@vitejs/plugin-react";
4
- import dts from "vite-plugin-dts";
5
- export default defineConfig({
6
- plugins: [
7
- react(),
8
- dts({
9
- insertTypesEntry: true,
10
- }),
11
- ],
12
- resolve: {
13
- alias: {
14
- // "@": resolve(__dirname, "./src"),
15
- "@fansunited/common": resolve(__dirname, "../common/src"),
16
- "@fansunited/classic-quiz-play": resolve(__dirname, "../classic-quiz-play/src"),
17
- },
18
- },
19
- build: {
20
- outDir: "dist/umd",
21
- lib: {
22
- entry: resolve(__dirname, "src/indexUmd.ts"),
23
- fileName(_, __) {
24
- return `components.js`;
25
- },
26
- name: "FansUnitedFrontendComponents",
27
- formats: ["umd"],
28
- },
29
- rollupOptions: {
30
- output: {
31
- globals: {},
32
- },
33
- },
34
- },
35
- });
File without changes