@srimandir/daily-live-puja 1.4.13 → 1.4.15

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.
@@ -1,4 +1,4 @@
1
- import Et, { useContext as aa, createContext as sa, useState as b, useEffect as F, useRef as W, useCallback as nt, useMemo as mt, useId as pa } from "react";
1
+ import Et, { useContext as aa, createContext as sa, useState as y, useEffect as F, useRef as W, useCallback as nt, useMemo as mt, useId as pa } from "react";
2
2
  var ht = { exports: {} }, Xe = {};
3
3
  var Pt;
4
4
  function ha() {
@@ -62,7 +62,7 @@ function ma() {
62
62
  function ce(t) {
63
63
  return t.displayName || "Context";
64
64
  }
65
- function A(t) {
65
+ function D(t) {
66
66
  if (t == null)
67
67
  return null;
68
68
  if (typeof t.tag == "number" && C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
@@ -95,11 +95,11 @@ function ma() {
95
95
  return fe(t, t.render, "ForwardRef");
96
96
  case m:
97
97
  var _ = t.displayName || null;
98
- return _ !== null ? _ : A(t.type) || "Memo";
98
+ return _ !== null ? _ : D(t.type) || "Memo";
99
99
  case x: {
100
100
  var E = t, R = E._payload, P = E._init;
101
101
  try {
102
- return A(P(R));
102
+ return D(P(R));
103
103
  } catch {
104
104
  return null;
105
105
  }
@@ -183,16 +183,16 @@ function ma() {
183
183
  ` + Se + t;
184
184
  }
185
185
  }
186
- var Y = !1, O;
186
+ var Y = !1, B;
187
187
  {
188
188
  var ft = typeof WeakMap == "function" ? WeakMap : Map;
189
- O = new ft();
189
+ B = new ft();
190
190
  }
191
191
  function He(t, i) {
192
192
  if (!t || Y)
193
193
  return "";
194
194
  {
195
- var p = O.get(t);
195
+ var p = B.get(t);
196
196
  if (p !== void 0)
197
197
  return p;
198
198
  }
@@ -238,18 +238,18 @@ function ma() {
238
238
  if (J && _ && typeof J.stack == "string") {
239
239
  for (var k = J.stack.split(`
240
240
  `), V = _.stack.split(`
241
- `), B = k.length - 1, M = V.length - 1; B >= 1 && M >= 0 && k[B] !== V[M]; )
241
+ `), O = k.length - 1, M = V.length - 1; O >= 1 && M >= 0 && k[O] !== V[M]; )
242
242
  M--;
243
- for (; B >= 1 && M >= 0; B--, M--)
244
- if (k[B] !== V[M]) {
245
- if (B !== 1 || M !== 1)
243
+ for (; O >= 1 && M >= 0; O--, M--)
244
+ if (k[O] !== V[M]) {
245
+ if (O !== 1 || M !== 1)
246
246
  do
247
- if (B--, M--, M < 0 || k[B] !== V[M]) {
247
+ if (O--, M--, M < 0 || k[O] !== V[M]) {
248
248
  var ee = `
249
- ` + k[B].replace(" at new ", " at ");
250
- return t.displayName && ee.includes("<anonymous>") && (ee = ee.replace("<anonymous>", t.displayName)), typeof t == "function" && O.set(t, ee), ee;
249
+ ` + k[O].replace(" at new ", " at ");
250
+ return t.displayName && ee.includes("<anonymous>") && (ee = ee.replace("<anonymous>", t.displayName)), typeof t == "function" && B.set(t, ee), ee;
251
251
  }
252
- while (B >= 1 && M >= 0);
252
+ while (O >= 1 && M >= 0);
253
253
  break;
254
254
  }
255
255
  }
@@ -257,7 +257,7 @@ function ma() {
257
257
  Y = !1, we.current = R, rt(), Error.prepareStackTrace = E;
258
258
  }
259
259
  var Le = t ? t.displayName || t.name : "", je = Le ? Q(Le) : "";
260
- return typeof t == "function" && O.set(t, je), je;
260
+ return typeof t == "function" && B.set(t, je), je;
261
261
  }
262
262
  function H(t, i, p) {
263
263
  return He(t, !1);
@@ -315,8 +315,8 @@ function ma() {
315
315
  throw V.name = "Invariant Violation", V;
316
316
  }
317
317
  k = t[P](i, P, _, p, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
318
- } catch (B) {
319
- k = B;
318
+ } catch (O) {
319
+ k = O;
320
320
  }
321
321
  k && !(k instanceof Error) && (ge(E), C("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", _ || "React class", p, P, typeof k), ge(null)), k instanceof Error && !(k.message in xe) && (xe[k.message] = !0, ge(E), C("Failed %s type: %s", p, k.message), ge(null));
322
322
  }
@@ -429,9 +429,9 @@ function ma() {
429
429
  for (R in i)
430
430
  ie.call(i, R) && !lt.hasOwnProperty(R) && (P[R] = i[R]);
431
431
  if (t && t.defaultProps) {
432
- var B = t.defaultProps;
433
- for (R in B)
434
- P[R] === void 0 && (P[R] = B[R]);
432
+ var O = t.defaultProps;
433
+ for (R in O)
434
+ P[R] === void 0 && (P[R] = O[R]);
435
435
  }
436
436
  if (k || V) {
437
437
  var M = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
@@ -456,7 +456,7 @@ function ma() {
456
456
  function jt() {
457
457
  {
458
458
  if (pe.current) {
459
- var t = A(pe.current.type);
459
+ var t = D(pe.current.type);
460
460
  if (t)
461
461
  return `
462
462
 
@@ -491,7 +491,7 @@ Check the top-level render call using <` + p + ">.");
491
491
  return;
492
492
  _e[p] = !0;
493
493
  var _ = "";
494
- t && t._owner && t._owner !== pe.current && (_ = " It was passed a child from " + A(t._owner.type) + "."), he(t), C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', p, _), he(null);
494
+ t && t._owner && t._owner !== pe.current && (_ = " It was passed a child from " + D(t._owner.type) + "."), he(t), C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', p, _), he(null);
495
495
  }
496
496
  }
497
497
  function Ee(t, i) {
@@ -528,11 +528,11 @@ Check the top-level render call using <` + p + ">.");
528
528
  else
529
529
  return;
530
530
  if (p) {
531
- var _ = A(i);
531
+ var _ = D(i);
532
532
  it(p, t.props, "prop", _, t);
533
533
  } else if (i.PropTypes !== void 0 && !Ke) {
534
534
  Ke = !0;
535
- var E = A(i);
535
+ var E = D(i);
536
536
  C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", E || "Unknown");
537
537
  }
538
538
  typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved && C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
@@ -559,8 +559,8 @@ Check the top-level render call using <` + p + ">.");
559
559
  (t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (k += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
560
560
  var V = ut();
561
561
  V ? k += V : k += jt();
562
- var B;
563
- t === null ? B = "null" : Ce(t) ? B = "array" : t !== void 0 && t.$$typeof === s ? (B = "<" + (A(t.type) || "Unknown") + " />", k = " Did you accidentally export a JSX literal instead of a component?") : B = typeof t, C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", B, k);
562
+ var O;
563
+ t === null ? O = "null" : Ce(t) ? O = "array" : t !== void 0 && t.$$typeof === s ? (O = "<" + (D(t.type) || "Unknown") + " />", k = " Did you accidentally export a JSX literal instead of a component?") : O = typeof t, C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", O, k);
564
564
  }
565
565
  var M = Ge(t, i, p, E, R);
566
566
  if (M == null)
@@ -579,7 +579,7 @@ Check the top-level render call using <` + p + ">.");
579
579
  Ee(ee, t);
580
580
  }
581
581
  if (ie.call(i, "key")) {
582
- var je = A(t), J = Object.keys(i).filter(function(ua) {
582
+ var je = D(t), J = Object.keys(i).filter(function(ua) {
583
583
  return ua !== "key";
584
584
  }), yt = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
585
585
  if (!pt[je + yt]) {
@@ -601,8 +601,8 @@ React keys must be passed directly to JSX without using spread:
601
601
  function Re(t, i, p) {
602
602
  return Ie(t, i, p, !1);
603
603
  }
604
- var y = Re, D = Pe;
605
- Qe.Fragment = o, Qe.jsx = y, Qe.jsxs = D;
604
+ var b = Re, A = Pe;
605
+ Qe.Fragment = o, Qe.jsx = b, Qe.jsxs = A;
606
606
  })()), Qe;
607
607
  }
608
608
  var Lt;
@@ -727,7 +727,7 @@ const ra = sa(void 0), ia = () => {
727
727
  }, Pi = ({
728
728
  children: a
729
729
  }) => {
730
- const [s, n] = b(null), [o, d] = b(!1);
730
+ const [s, n] = y(null), [o, d] = y(!1);
731
731
  return /* @__PURE__ */ e.jsx(
732
732
  ra.Provider,
733
733
  {
@@ -751,7 +751,7 @@ const ra = sa(void 0), ia = () => {
751
751
  return { days: w, hours: h, minutes: m, seconds: x };
752
752
  }
753
753
  return { days: 0, hours: 0, minutes: 0, seconds: 0 };
754
- }, [d, f] = b({ days: 0, hours: 0, minutes: 0, seconds: 0 });
754
+ }, [d, f] = y({ days: 0, hours: 0, minutes: 0, seconds: 0 });
755
755
  F(() => {
756
756
  f(o());
757
757
  const l = setInterval(() => {
@@ -978,7 +978,7 @@ const ra = sa(void 0), ia = () => {
978
978
  analytics: o,
979
979
  showToast: d
980
980
  }) => {
981
- const r = It()?.t || ((v) => v), [l, u] = b(n ? "+1" : "+91"), [w, h] = b(!1), { setUserData: m, setShowSuccess: x } = ia(), [j, I] = b(""), [S, g] = b(""), T = W(!1), C = `${l}-${S}`, $ = At.find(
981
+ const r = It()?.t || ((v) => v), [l, u] = y(n ? "+1" : "+91"), [w, h] = y(!1), { setUserData: m, setShowSuccess: x } = ia(), [j, I] = y(""), [S, g] = y(""), T = W(!1), C = `${l}-${S}`, $ = At.find(
982
982
  (v) => v.code === l
983
983
  );
984
984
  F(() => {
@@ -1144,7 +1144,7 @@ const ra = sa(void 0), ia = () => {
1144
1144
  showToast: l,
1145
1145
  disableRedirect: u = !1
1146
1146
  }) => {
1147
- const h = It()?.t || ((g) => g), { userData: m } = ia(), [x, j] = b(f), I = W(!1), S = m?.name || a;
1147
+ const h = It()?.t || ((g) => g), { userData: m } = ia(), [x, j] = y(f), I = W(!1), S = m?.name || a;
1148
1148
  return F(() => {
1149
1149
  !I.current && r?.trackSuccessPageViewed && (r.trackSuccessPageViewed({
1150
1150
  name: m?.name,
@@ -1433,7 +1433,7 @@ const ra = sa(void 0), ia = () => {
1433
1433
  children: "Join Free"
1434
1434
  }
1435
1435
  )
1436
- ] }) }), Kn = "_wrapper_1fsdx_1", Zn = "_marker_1fsdx_6", Xn = "_iconWrap_1fsdx_10", Qn = "_label_1fsdx_14", er = "_dot_1fsdx_19", et = {
1436
+ ] }) }), Kn = "_wrapper_1ef52_1", Zn = "_marker_1ef52_6", Xn = "_iconWrap_1ef52_10", Qn = "_label_1ef52_14", er = "_dot_1ef52_19", et = {
1437
1437
  wrapper: Kn,
1438
1438
  marker: Zn,
1439
1439
  iconWrap: Xn,
@@ -1631,7 +1631,7 @@ const ra = sa(void 0), ia = () => {
1631
1631
  ] })
1632
1632
  ] }, a.id)) })
1633
1633
  ] }), Ur = (a) => "★".repeat(Math.max(0, a)), $r = ({ item: a }) => {
1634
- const [s, n] = b(!1), [o, d] = b(!1), f = W(null), r = nt(() => {
1634
+ const [s, n] = y(!1), [o, d] = y(!1), f = W(null), r = nt(() => {
1635
1635
  const l = f.current;
1636
1636
  if (!l || s)
1637
1637
  return;
@@ -2015,7 +2015,7 @@ const ra = sa(void 0), ia = () => {
2015
2015
  storeCardsHeaders: o,
2016
2016
  storeCardsLimit: d = 8
2017
2017
  }) => {
2018
- const [f, r] = b([]);
2018
+ const [f, r] = y([]);
2019
2019
  return F(() => {
2020
2020
  const l = [s?.pujaWeb?.getFeedPageV2, s?.chadhavaWeb?.getFeedPageV2].filter(Boolean);
2021
2021
  if (!l.length)
@@ -2061,11 +2061,11 @@ const ra = sa(void 0), ia = () => {
2061
2061
  enabled: o = !0,
2062
2062
  apiBaseInstance: d
2063
2063
  }) => {
2064
- const [f, r] = b(null), [l, u] = b(null), [w, h] = b(
2064
+ const [f, r] = y(null), [l, u] = y(null), [w, h] = y(
2065
2065
  null
2066
- ), [m, x] = b(
2066
+ ), [m, x] = y(
2067
2067
  !!(o && a && s)
2068
- ), [j, I] = b(null), S = mt(
2068
+ ), [j, I] = y(null), S = mt(
2069
2069
  () => !!(o && a && s),
2070
2070
  [o, s, a]
2071
2071
  ), g = nt(async () => {
@@ -2137,12 +2137,12 @@ const ra = sa(void 0), ia = () => {
2137
2137
  ], g = r?.media?.media_url || Da, T = l?.currency_code || "₹", C = l?.effective_amount ?? l?.subscription_amount, $ = l?.subscription_amount, U = l?.period ? `/ ${l.period}` : Aa, v = r?.cta, q = v?.visible ?? !0, le = v?.text || Fa, z = v?.text_color || "#ffffff", Z = v?.stroke_color || "transparent", me = v?.color || "#f97e4e", fe = v?.color_2 || "#f75e22", ce = () => {
2138
2138
  if (d?.(), d)
2139
2139
  return;
2140
- const A = v?.action_attr?.deeplink;
2141
- if (!(!A || typeof window > "u"))
2140
+ const D = v?.action_attr?.deeplink;
2141
+ if (!(!D || typeof window > "u"))
2142
2142
  try {
2143
- window.location.href = new URL(A, window.location.origin).toString();
2143
+ window.location.href = new URL(D, window.location.origin).toString();
2144
2144
  } catch {
2145
- window.location.href = A;
2145
+ window.location.href = D;
2146
2146
  }
2147
2147
  };
2148
2148
  return /* @__PURE__ */ e.jsx(
@@ -2164,21 +2164,21 @@ const ra = sa(void 0), ia = () => {
2164
2164
  ),
2165
2165
  /* @__PURE__ */ e.jsx("h2", { className: "text-[24px] font-bold leading-[34px] m-0", children: j }),
2166
2166
  /* @__PURE__ */ e.jsx("p", { className: "text-[12px] leading-[16px] opacity-75 m-0", children: I }),
2167
- /* @__PURE__ */ e.jsx("div", { className: "flex flex-col gap-2 pt-2 text-[12px]", children: S.map((A, G) => /* @__PURE__ */ e.jsxs("div", { className: "flex items-start gap-2", children: [
2168
- A.icon_url ? /* @__PURE__ */ e.jsx(
2167
+ /* @__PURE__ */ e.jsx("div", { className: "flex flex-col gap-2 pt-2 text-[12px]", children: S.map((D, G) => /* @__PURE__ */ e.jsxs("div", { className: "flex items-start gap-2", children: [
2168
+ D.icon_url ? /* @__PURE__ */ e.jsx(
2169
2169
  "img",
2170
2170
  {
2171
- src: A.icon_url,
2171
+ src: D.icon_url,
2172
2172
  alt: "",
2173
2173
  "aria-hidden": "true",
2174
2174
  className: "w-4 h-4 mt-[2px]"
2175
2175
  }
2176
2176
  ) : /* @__PURE__ */ e.jsx("span", { "aria-hidden": "true", children: "•" }),
2177
2177
  /* @__PURE__ */ e.jsxs("span", { className: "opacity-90", children: [
2178
- A.text,
2179
- A.description ? ` ${A.description}` : ""
2178
+ D.text,
2179
+ D.description ? ` ${D.description}` : ""
2180
2180
  ] })
2181
- ] }, `${A.text || "feature"}-${G}`)) }),
2181
+ ] }, `${D.text || "feature"}-${G}`)) }),
2182
2182
  /* @__PURE__ */ e.jsx(
2183
2183
  "div",
2184
2184
  {
@@ -2473,7 +2473,7 @@ const ra = sa(void 0), ia = () => {
2473
2473
  initialVideoId: a,
2474
2474
  contentEnvironment: s
2475
2475
  }) => {
2476
- const [n, o] = b(a), [d, f] = b(oe), [r, l] = b(oa), [u, w] = b(!0), h = mt(() => ci(), []);
2476
+ const [n, o] = y(a), [d, f] = y(oe), [r, l] = y(oa), [u, w] = y(!0), h = mt(() => ci(), []);
2477
2477
  F(() => {
2478
2478
  o(a);
2479
2479
  }, [a]);
@@ -2516,7 +2516,7 @@ const ra = sa(void 0), ia = () => {
2516
2516
  enabled: s = !0,
2517
2517
  apiBaseInstance: n
2518
2518
  }) => {
2519
- const [o, d] = b(!1), [f, r] = b(null), [l, u] = b(!!s), [w, h] = b(null), m = mt(() => !!(s && a), [
2519
+ const [o, d] = y(!1), [f, r] = y(null), [l, u] = y(!!s), [w, h] = y(null), m = mt(() => !!(s && a), [
2520
2520
  s,
2521
2521
  a
2522
2522
  ]), x = nt(async () => {
@@ -2647,9 +2647,9 @@ const ra = sa(void 0), ia = () => {
2647
2647
  fallbackAttendedDays: n = [1],
2648
2648
  fallbackCurrentDay: o = 1
2649
2649
  }) => {
2650
- const [d, f] = b(null), [r, l] = b(
2650
+ const [d, f] = y(null), [r, l] = y(
2651
2651
  ca(n, o)
2652
- ), [u, w] = b(!1), [h, m] = b(!!a), [x, j] = b(null), I = mt(
2652
+ ), [u, w] = y(!1), [h, m] = y(!!a), [x, j] = y(null), I = mt(
2653
2653
  () => bi(s),
2654
2654
  [s]
2655
2655
  ), S = nt(async () => {
@@ -2687,7 +2687,7 @@ const ra = sa(void 0), ia = () => {
2687
2687
  refetch: S
2688
2688
  };
2689
2689
  }, wi = (a, s) => {
2690
- const [n, o] = b("LOADING"), d = W(null), f = W(null);
2690
+ const [n, o] = y("LOADING"), d = W(null), f = W(null);
2691
2691
  return F(() => {
2692
2692
  if (!a || typeof window > "u")
2693
2693
  return;
@@ -2780,14 +2780,14 @@ const ra = sa(void 0), ia = () => {
2780
2780
  subscriptionInventoryId: v,
2781
2781
  subscriptionOnboardingType: q = "sm_dlp_premium"
2782
2782
  }) => {
2783
- const [le, z] = b("streaks"), [Z, me] = b("chat"), fe = W(null), ce = W(null), A = W(null), G = W(null), ae = W(null), Fe = {
2783
+ const [le, z] = y("streaks"), [Z, me] = y("chat"), fe = W(null), ce = W(null), D = W(null), G = W(null), ae = W(null), Fe = {
2784
2784
  streaks: fe,
2785
2785
  share: ce,
2786
- store: A,
2786
+ store: D,
2787
2787
  subscription: G
2788
- }, Be = (y) => {
2789
- const D = Fe[y].current, t = ae.current;
2790
- !D || !t || t.scrollTo({ top: D.offsetTop, behavior: "smooth" });
2788
+ }, Be = (b) => {
2789
+ const A = Fe[b].current, t = ae.current;
2790
+ !A || !t || t.scrollTo({ top: A.offsetTop, behavior: "smooth" });
2791
2791
  }, X = le === "chat", Oe = X ? "streaks" : le, Me = W(null), qe = W(null), Ue = W(null), $e = W(null), We = W(null), rt = W(null), we = {
2792
2792
  streaks: Me,
2793
2793
  share: qe,
@@ -2797,35 +2797,37 @@ const ra = sa(void 0), ia = () => {
2797
2797
  subscriptionType: q,
2798
2798
  enabled: T,
2799
2799
  apiBaseInstance: x?.apiInstance
2800
- }), Y = T && !Se, O = T && Se && Q;
2800
+ }), Y = T && !Se, B = T && Se && Q;
2801
2801
  F(() => {
2802
2802
  if (X) return;
2803
- const y = requestAnimationFrame(() => {
2804
- const D = rt.current;
2805
- if (!D) return;
2806
- const t = Y || O ? ["streaks", "share", "store", "subscription"] : ["streaks", "share", "store"], i = [];
2807
- return t.forEach((p) => {
2803
+ let b = [];
2804
+ const A = requestAnimationFrame(() => {
2805
+ const t = rt.current;
2806
+ if (!t) return;
2807
+ (Y || B ? ["streaks", "share", "store", "subscription"] : ["streaks", "share", "store"]).forEach((p) => {
2808
2808
  const _ = we[p].current;
2809
2809
  if (!_) return;
2810
2810
  const E = new IntersectionObserver(
2811
2811
  ([R]) => {
2812
2812
  R.isIntersecting && z(p);
2813
2813
  },
2814
- { root: D, rootMargin: "-10% 0px -60% 0px", threshold: 0 }
2814
+ { root: t, rootMargin: "-10% 0px -60% 0px", threshold: 0 }
2815
2815
  );
2816
- E.observe(_), i.push(E);
2817
- }), () => i.forEach((p) => p.disconnect());
2816
+ E.observe(_), b.push(E);
2817
+ });
2818
2818
  });
2819
- return () => cancelAnimationFrame(y);
2820
- }, [Y, O, X]);
2821
- const ft = (y) => {
2822
- z(y), setTimeout(() => {
2823
- we[y].current?.scrollIntoView({
2819
+ return () => {
2820
+ cancelAnimationFrame(A), b.forEach((t) => t.disconnect());
2821
+ };
2822
+ }, [Y, B, X]);
2823
+ const ft = (b) => {
2824
+ z(b), setTimeout(() => {
2825
+ we[b].current?.scrollIntoView({
2824
2826
  behavior: "smooth",
2825
2827
  block: "start"
2826
2828
  });
2827
2829
  }, 50);
2828
- }, He = () => z("chat"), [H, Ve] = b(!1), [K, ie] = b(!1), [xe, ze] = b(!0), [ge, it] = b(!1), [se, Ce] = b(!1), [xt, gt] = b(""), { apiVideoId: ot, pujaCard: ne, offeringCards: de, isDlpLoading: lt } = di({
2830
+ }, He = () => z("chat"), [H, Ve] = y(!1), [K, ie] = y(!1), [xe, ze] = y(!0), [ge, it] = y(!1), [se, Ce] = y(!1), [xt, gt] = y(""), { apiVideoId: ot, pujaCard: ne, offeringCards: de, isDlpLoading: lt } = di({
2829
2831
  initialVideoId: a,
2830
2832
  contentEnvironment: o
2831
2833
  }), {
@@ -2838,24 +2840,24 @@ const ra = sa(void 0), ia = () => {
2838
2840
  apiBaseInstance: x?.apiInstance,
2839
2841
  fallbackAttendedDays: u,
2840
2842
  fallbackCurrentDay: w
2841
- }), ue = ct || _t || !vt, dt = h && !ue, Ye = ue ? Ne.attendedDays : [], Je = ue ? Ne.currentDay : 1, Ge = Ne.totalDays || 7, [pe, ke] = b(null);
2843
+ }), ue = ct || _t || !vt, dt = h && !ue, Ye = ue ? Ne.attendedDays : [], Je = ue ? Ne.currentDay : 1, Ge = Ne.totalDays || 7, [pe, ke] = y(null);
2842
2844
  F(() => {
2843
2845
  if (X) return;
2844
- const y = ae.current;
2845
- if (!y) return;
2846
- const D = Y || O ? ["streaks", "share", "store", "subscription"] : ["streaks", "share", "store"], t = [];
2847
- return D.forEach((i) => {
2846
+ const b = ae.current;
2847
+ if (!b) return;
2848
+ const A = Y || B ? ["streaks", "share", "store", "subscription"] : ["streaks", "share", "store"], t = [];
2849
+ return A.forEach((i) => {
2848
2850
  const p = Fe[i].current;
2849
2851
  if (!p) return;
2850
2852
  const _ = new IntersectionObserver(
2851
2853
  ([E]) => {
2852
2854
  E.isIntersecting && z(i);
2853
2855
  },
2854
- { root: y, rootMargin: "-10% 0px -60% 0px", threshold: 0 }
2856
+ { root: b, rootMargin: "-10% 0px -60% 0px", threshold: 0 }
2855
2857
  );
2856
2858
  _.observe(p), t.push(_);
2857
2859
  }), () => t.forEach((i) => i.disconnect());
2858
- }, [Y, X, K, se]);
2860
+ }, [Y, B, X, K, se]);
2859
2861
  const he = typeof window < "u" ? window.location.origin : "https://www.srimandir.com", Ke = Yt(xt) || Yt(n) || "www.srimandir.com", re = ot || a, ut = `yt-live-status-probe-${pa().replace(/:/g, "")}`, _e = wi(
2860
2862
  dt ? "" : re,
2861
2863
  ut
@@ -2869,57 +2871,57 @@ const ra = sa(void 0), ia = () => {
2869
2871
  ke("LIVE");
2870
2872
  return;
2871
2873
  }
2872
- const y = window.setTimeout(() => {
2873
- ke((D) => D === "LIVE" ? D : _e);
2874
+ const b = window.setTimeout(() => {
2875
+ ke((A) => A === "LIVE" ? A : _e);
2874
2876
  }, qa);
2875
- return () => window.clearTimeout(y);
2877
+ return () => window.clearTimeout(b);
2876
2878
  }, [_e]);
2877
2879
  const Te = pe === "UPCOMING" || pe === "ENDED", ve = !lt && pe !== null, Ee = `https://www.youtube-nocookie.com/embed/${re}?autoplay=1&mute=1&fs=0&modestbranding=1&rel=0&playsinline=1&disablekb=1&iv_load_policy=3&origin=${encodeURIComponent(he)}`, Ze = `https://www.youtube.com/live_chat?v=${re}&embed_domain=${encodeURIComponent(
2878
2880
  Ke
2879
2881
  )}`, bt = typeof navigator < "u" && /iPhone|iPad|iPod/i.test(navigator.userAgent);
2880
2882
  F(() => {
2881
- const y = () => {
2883
+ const b = () => {
2882
2884
  Ce(window.innerWidth > window.innerHeight);
2883
2885
  };
2884
- return y(), window.addEventListener("resize", y), () => window.removeEventListener("resize", y);
2886
+ return b(), window.addEventListener("resize", b), () => window.removeEventListener("resize", b);
2885
2887
  }, []), F(() => {
2886
2888
  typeof window < "u" && gt(window.location.hostname);
2887
2889
  }, []);
2888
2890
  const pt = async () => {
2889
- const y = We.current;
2890
- if (y?.requestFullscreen)
2891
+ const b = We.current;
2892
+ if (b?.requestFullscreen)
2891
2893
  try {
2892
- await y.requestFullscreen();
2893
- } catch (D) {
2894
- console.error("Fullscreen error:", D);
2894
+ await b.requestFullscreen();
2895
+ } catch (A) {
2896
+ console.error("Fullscreen error:", A);
2895
2897
  }
2896
2898
  try {
2897
- const D = screen.orientation;
2898
- !bt && D?.lock && await D.lock("landscape");
2899
- } catch (D) {
2900
- console.error("Orientation lock error:", D);
2899
+ const A = screen.orientation;
2900
+ !bt && A?.lock && await A.lock("landscape");
2901
+ } catch (A) {
2902
+ console.error("Orientation lock error:", A);
2901
2903
  }
2902
2904
  Ve(!0);
2903
2905
  }, Ie = async () => {
2904
2906
  if (document.fullscreenElement && document.exitFullscreen)
2905
2907
  try {
2906
2908
  await document.exitFullscreen();
2907
- } catch (y) {
2908
- console.error("Exit fullscreen error:", y);
2909
+ } catch (b) {
2910
+ console.error("Exit fullscreen error:", b);
2909
2911
  }
2910
2912
  try {
2911
- const y = screen.orientation;
2912
- y?.unlock && y.unlock();
2913
- } catch (y) {
2914
- console.error("Orientation unlock error:", y);
2913
+ const b = screen.orientation;
2914
+ b?.unlock && b.unlock();
2915
+ } catch (b) {
2916
+ console.error("Orientation unlock error:", b);
2915
2917
  }
2916
2918
  Ve(!1);
2917
2919
  };
2918
2920
  F(() => {
2919
- const y = () => {
2921
+ const b = () => {
2920
2922
  document.fullscreenElement || Ve(!1);
2921
2923
  };
2922
- return document.addEventListener("fullscreenchange", y), () => document.removeEventListener("fullscreenchange", y);
2924
+ return document.addEventListener("fullscreenchange", b), () => document.removeEventListener("fullscreenchange", b);
2923
2925
  }, []), F(() => {
2924
2926
  H || ie(!1);
2925
2927
  }, [H]), F(() => {
@@ -2927,14 +2929,14 @@ const ra = sa(void 0), ia = () => {
2927
2929
  }, [K]), F(() => {
2928
2930
  K && me("chat");
2929
2931
  }, [K]);
2930
- const Pe = async (y) => {
2931
- H && document.fullscreenElement && await Ie(), f && await f(y);
2932
+ const Pe = async (b) => {
2933
+ H && document.fullscreenElement && await Ie(), f && await f(b);
2932
2934
  }, Re = () => {
2933
- const y = ne.deeplink || "/epuja", D = new URL(y, "https://www.srimandir.com");
2934
- D.searchParams.set("utm_source", "youtube"), D.searchParams.set("utm_campaign", "rasrajji"), D.searchParams.set("utm_medium", "youtubebanner"), typeof window < "u" && (l?.({ orientation: se ? "horizontal" : "vertical" }), window.location.href = D.toString());
2935
+ const b = ne.deeplink || "/epuja", A = new URL(b, "https://www.srimandir.com");
2936
+ A.searchParams.set("utm_source", "youtube"), A.searchParams.set("utm_campaign", "rasrajji"), A.searchParams.set("utm_medium", "youtubebanner"), typeof window < "u" && (l?.({ orientation: se ? "horizontal" : "vertical" }), window.location.href = A.toString());
2935
2937
  };
2936
2938
  if (dt) {
2937
- const y = re ? `https://img.youtube.com/vi/${re}/hqdefault.jpg` : ne.imageUrl || oe.imageUrl;
2939
+ const b = re ? `https://img.youtube.com/vi/${re}/hqdefault.jpg` : ne.imageUrl || oe.imageUrl;
2938
2940
  return /* @__PURE__ */ e.jsxs(
2939
2941
  "div",
2940
2942
  {
@@ -2968,7 +2970,7 @@ const ra = sa(void 0), ia = () => {
2968
2970
  children: /* @__PURE__ */ e.jsx(
2969
2971
  "img",
2970
2972
  {
2971
- src: y,
2973
+ src: b,
2972
2974
  alt: "Live Puja preview",
2973
2975
  className: "w-full h-full object-cover",
2974
2976
  loading: "lazy"
@@ -3121,11 +3123,11 @@ const ra = sa(void 0), ia = () => {
3121
3123
  wt,
3122
3124
  {
3123
3125
  activeTab: Z === "chat" ? "streaks" : Z,
3124
- onTabChange: (y) => {
3125
- me(y), Be(y);
3126
+ onTabChange: (b) => {
3127
+ me(b), Be(b);
3126
3128
  },
3127
3129
  onChatPress: () => me("chat"),
3128
- showSubscription: Y || !!O,
3130
+ showSubscription: Y || !!B,
3129
3131
  chatOpen: Z === "chat"
3130
3132
  }
3131
3133
  )
@@ -3168,7 +3170,7 @@ const ra = sa(void 0), ia = () => {
3168
3170
  currentDay: Je,
3169
3171
  totalDays: Ge
3170
3172
  }
3171
- ) : O ? /* @__PURE__ */ e.jsx(De, { subscription: Q }) : /* @__PURE__ */ e.jsx(
3173
+ ) : B ? /* @__PURE__ */ e.jsx(De, { subscription: Q }) : /* @__PURE__ */ e.jsx(
3172
3174
  be,
3173
3175
  {
3174
3176
  onSubscribe: C,
@@ -3203,7 +3205,7 @@ const ra = sa(void 0), ia = () => {
3203
3205
  "aria-hidden": "true"
3204
3206
  }
3205
3207
  ),
3206
- /* @__PURE__ */ e.jsx("div", { ref: A, children: /* @__PURE__ */ e.jsx(
3208
+ /* @__PURE__ */ e.jsx("div", { ref: D, children: /* @__PURE__ */ e.jsx(
3207
3209
  kt,
3208
3210
  {
3209
3211
  onCardClick: m,
@@ -3213,7 +3215,7 @@ const ra = sa(void 0), ia = () => {
3213
3215
  storeCardsLimit: S
3214
3216
  }
3215
3217
  ) }),
3216
- (Y || O) && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
3218
+ (Y || B) && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
3217
3219
  /* @__PURE__ */ e.jsx(
3218
3220
  "div",
3219
3221
  {
@@ -3226,7 +3228,7 @@ const ra = sa(void 0), ia = () => {
3226
3228
  "aria-hidden": "true"
3227
3229
  }
3228
3230
  ),
3229
- /* @__PURE__ */ e.jsx("div", { ref: G, children: O ? /* @__PURE__ */ e.jsx(De, { subscription: Q }) : /* @__PURE__ */ e.jsx(
3231
+ /* @__PURE__ */ e.jsx("div", { ref: G, children: B ? /* @__PURE__ */ e.jsx(De, { subscription: Q }) : /* @__PURE__ */ e.jsx(
3230
3232
  be,
3231
3233
  {
3232
3234
  onSubscribe: C,
@@ -3410,11 +3412,11 @@ const ra = sa(void 0), ia = () => {
3410
3412
  wt,
3411
3413
  {
3412
3414
  activeTab: Oe,
3413
- onTabChange: (y) => {
3414
- z(y), Be(y);
3415
+ onTabChange: (b) => {
3416
+ z(b), Be(b);
3415
3417
  },
3416
3418
  onChatPress: He,
3417
- showSubscription: Y || !!O,
3419
+ showSubscription: Y || !!B,
3418
3420
  chatOpen: X
3419
3421
  }
3420
3422
  )
@@ -3446,7 +3448,7 @@ const ra = sa(void 0), ia = () => {
3446
3448
  currentDay: Je,
3447
3449
  totalDays: Ge
3448
3450
  }
3449
- ) : O ? /* @__PURE__ */ e.jsx(De, { subscription: Q }) : /* @__PURE__ */ e.jsx(
3451
+ ) : B ? /* @__PURE__ */ e.jsx(De, { subscription: Q }) : /* @__PURE__ */ e.jsx(
3450
3452
  be,
3451
3453
  {
3452
3454
  onSubscribe: C,
@@ -3459,7 +3461,7 @@ const ra = sa(void 0), ia = () => {
3459
3461
  /* @__PURE__ */ e.jsx("div", { style: { width: "100%", height: "8px", background: "#F3F4F6", flexShrink: 0 }, "aria-hidden": "true" }),
3460
3462
  /* @__PURE__ */ e.jsx("div", { ref: ce, children: /* @__PURE__ */ e.jsx(Ct, { onShare: g }) }),
3461
3463
  /* @__PURE__ */ e.jsx("div", { style: { width: "100%", height: "8px", background: "#F3F4F6", flexShrink: 0 }, "aria-hidden": "true" }),
3462
- /* @__PURE__ */ e.jsx("div", { ref: A, children: /* @__PURE__ */ e.jsx(
3464
+ /* @__PURE__ */ e.jsx("div", { ref: D, children: /* @__PURE__ */ e.jsx(
3463
3465
  kt,
3464
3466
  {
3465
3467
  onCardClick: m,
@@ -3469,9 +3471,9 @@ const ra = sa(void 0), ia = () => {
3469
3471
  storeCardsLimit: S
3470
3472
  }
3471
3473
  ) }),
3472
- (Y || O) && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
3474
+ (Y || B) && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
3473
3475
  /* @__PURE__ */ e.jsx("div", { style: { width: "100%", height: "8px", background: "#F3F4F6", flexShrink: 0 }, "aria-hidden": "true" }),
3474
- /* @__PURE__ */ e.jsx("div", { ref: G, children: O ? /* @__PURE__ */ e.jsx(De, { subscription: Q }) : /* @__PURE__ */ e.jsx(
3476
+ /* @__PURE__ */ e.jsx("div", { ref: G, children: B ? /* @__PURE__ */ e.jsx(De, { subscription: Q }) : /* @__PURE__ */ e.jsx(
3475
3477
  be,
3476
3478
  {
3477
3479
  onSubscribe: C,
@@ -3508,7 +3510,7 @@ const ra = sa(void 0), ia = () => {
3508
3510
  activeTab: Oe,
3509
3511
  onTabChange: ft,
3510
3512
  onChatPress: He,
3511
- showSubscription: Y || !!O,
3513
+ showSubscription: Y || !!B,
3512
3514
  chatOpen: X
3513
3515
  }
3514
3516
  ) }),
@@ -3534,7 +3536,7 @@ const ra = sa(void 0), ia = () => {
3534
3536
  currentDay: Je,
3535
3537
  totalDays: Ge
3536
3538
  }
3537
- ) : O ? /* @__PURE__ */ e.jsx(De, { subscription: Q }) : /* @__PURE__ */ e.jsx(
3539
+ ) : B ? /* @__PURE__ */ e.jsx(De, { subscription: Q }) : /* @__PURE__ */ e.jsx(
3538
3540
  be,
3539
3541
  {
3540
3542
  onSubscribe: C,
@@ -3557,9 +3559,9 @@ const ra = sa(void 0), ia = () => {
3557
3559
  storeCardsLimit: S
3558
3560
  }
3559
3561
  ) }),
3560
- (Y || O) && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
3562
+ (Y || B) && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
3561
3563
  /* @__PURE__ */ e.jsx("div", { style: { width: "100%", height: "8px", background: "#F3F4F6", flexShrink: 0 }, "aria-hidden": "true" }),
3562
- /* @__PURE__ */ e.jsx("div", { ref: $e, children: O ? /* @__PURE__ */ e.jsx(De, { subscription: Q }) : /* @__PURE__ */ e.jsx(
3564
+ /* @__PURE__ */ e.jsx("div", { ref: $e, children: B ? /* @__PURE__ */ e.jsx(De, { subscription: Q }) : /* @__PURE__ */ e.jsx(
3563
3565
  be,
3564
3566
  {
3565
3567
  onSubscribe: C,
@@ -3642,7 +3644,7 @@ function Si({
3642
3644
  offeringCards: s,
3643
3645
  onOfferingClick: n
3644
3646
  }) {
3645
- const [o, d] = b(!1), [f, r] = b(""), [l, u] = b(null), [w, h] = b(!1), m = async (g) => {
3647
+ const [o, d] = y(!1), [f, r] = y(""), [l, u] = y(null), [w, h] = y(!1), m = async (g) => {
3646
3648
  if (n)
3647
3649
  try {
3648
3650
  await n(g);