@srimandir/kundli-generator 5.30.12 → 5.30.13

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,5 +1,5 @@
1
1
  import { k as e, h as X, D as ne, d as _e, j as le, c as Ae, u as je, L as se, S as ye, l as we, t as ve, C as De, P as $e, F as Ue, U as Me, m as Oe, n as Qe } from "./analytics-B_K8hMeg.js";
2
- import { useRef as b, useState as F, useEffect as I, useCallback as z, useMemo as ce } from "react";
2
+ import { useRef as b, useState as S, useEffect as I, useCallback as z, useMemo as ce } from "react";
3
3
  import { UserReviewsSection as Be, FAQAccordion as Ke, ContactUsSection as He, FooterShell as Ge, FooterCTAButton as qe, CircularMarquee as We, footerShellStyles as W } from "@srimandir/astrology-common";
4
4
  const ze = "_container_nm3gb_1", Ve = "_main_nm3gb_6", Ye = "_langDropdownWrap_nm3gb_12", Xe = "_langTrigger_nm3gb_16", Je = "_langIcon_nm3gb_28", Ze = "_langLabel_nm3gb_35", et = "_langMenu_nm3gb_40", tt = "_langOption_nm3gb_46", K = {
5
5
  container: ze,
@@ -156,10 +156,10 @@ const ze = "_container_nm3gb_1", Ve = "_main_nm3gb_6", Ye = "_langDropdownWrap_n
156
156
  }
157
157
  )
158
158
  ] });
159
- }, Tt = "_section_1d9aa_1", St = "_heading_1d9aa_6", Ft = "_subtitle_1d9aa_11", Rt = "_stepList_1d9aa_16", Et = "_stepItem_1d9aa_20", At = "_stepNumber_1d9aa_24", Dt = "_stepText_1d9aa_30", $t = "_step3Days_1d9aa_35", R = {
159
+ }, Tt = "_section_1d9aa_1", Ft = "_heading_1d9aa_6", St = "_subtitle_1d9aa_11", Rt = "_stepList_1d9aa_16", Et = "_stepItem_1d9aa_20", At = "_stepNumber_1d9aa_24", Dt = "_stepText_1d9aa_30", $t = "_step3Days_1d9aa_35", R = {
160
160
  section: Tt,
161
- heading: St,
162
- subtitle: Ft,
161
+ heading: Ft,
162
+ subtitle: St,
163
163
  stepList: Rt,
164
164
  stepItem: Et,
165
165
  stepNumber: At,
@@ -224,7 +224,7 @@ const Jt = ({
224
224
  title: s,
225
225
  pdfUrl: r
226
226
  }) => {
227
- const a = b(null), [i, l] = F(!0), [u, o] = F(null), [x, h] = F(null);
227
+ const a = b(null), [i, l] = S(!0), [u, o] = S(null), [x, h] = S(null);
228
228
  return I(() => {
229
229
  if (!t) return;
230
230
  const c = (f) => {
@@ -248,10 +248,10 @@ const Jt = ({
248
248
  if (!k) return;
249
249
  const C = k.clientWidth || 600, g = Math.min(C / 612, 2);
250
250
  for (let d = 1; d <= y.numPages; d++) {
251
- const N = await y.getPage(d), S = N.getViewport({ scale: g }), w = document.createElement("canvas");
252
- w.height = S.height, w.width = S.width, w.style.display = "block", w.style.margin = "0 auto 1rem", w.style.maxWidth = "100%";
251
+ const N = await y.getPage(d), F = N.getViewport({ scale: g }), w = document.createElement("canvas");
252
+ w.height = F.height, w.width = F.width, w.style.display = "block", w.style.margin = "0 auto 1rem", w.style.maxWidth = "100%";
253
253
  const L = w.getContext("2d");
254
- L && await N.render({ canvasContext: L, viewport: S }).promise, k.appendChild(w);
254
+ L && await N.render({ canvasContext: L, viewport: F }).promise, k.appendChild(w);
255
255
  }
256
256
  } catch (f) {
257
257
  o(f instanceof Error ? f.message : "Failed to load PDF");
@@ -317,7 +317,7 @@ const Jt = ({
317
317
  analytics: r,
318
318
  className: a = ""
319
319
  }) => {
320
- const [i, l] = F(!1), u = t("viewSampleReport"), o = t("sampleReportModalTitle"), x = () => {
320
+ const [i, l] = S(!1), u = t("viewSampleReport"), o = t("sampleReportModalTitle"), x = () => {
321
321
  r?.trackViewSampleReportClicked?.(), s?.(), l(!0);
322
322
  }, h = () => {
323
323
  r?.trackViewSampleReportClosed?.(), l(!1);
@@ -405,7 +405,7 @@ const Jt = ({
405
405
  /* @__PURE__ */ e.jsx("ul", { className: ee.list, children: bn.map((s) => /* @__PURE__ */ e.jsx("li", { className: ee.item, children: t(s) }, s)) })
406
406
  ] }), _n = "_headingBold_g8xg7_1", jn = {
407
407
  headingBold: _n
408
- }, Se = ({
408
+ }, Fe = ({
409
409
  t,
410
410
  testimonials: n,
411
411
  readMoreHref: s,
@@ -427,7 +427,7 @@ const Jt = ({
427
427
  }, vn = [
428
428
  { qKey: "faqQ1", aKey: "faqA1" },
429
429
  { qKey: "faqQ3", aKey: "faqA3" }
430
- ], Fe = ({
430
+ ], Se = ({
431
431
  t,
432
432
  className: n = "",
433
433
  headingClassName: s = wn.headingBold
@@ -494,7 +494,7 @@ const Jt = ({
494
494
  children: /* @__PURE__ */ e.jsx(qe, { href: s, onClick: n, children: a })
495
495
  }
496
496
  );
497
- }, Ln = "https://srm-cdn.a4b.io/yoda/1770362713543.svg", Tn = (t, n) => ve[t]?.[n] ?? n, Sn = 112;
497
+ }, Ln = "https://srm-cdn.a4b.io/yoda/1770362713543.svg", Tn = (t, n) => ve[t]?.[n] ?? n, Fn = 112;
498
498
  function M({
499
499
  section: t,
500
500
  children: n,
@@ -511,13 +511,13 @@ function M({
511
511
  {
512
512
  threshold: 0.1,
513
513
  // Shrink bottom of viewport by CTA footer height so we only count content actually visible above the sticky footer
514
- rootMargin: `0px 0px -${Sn}px 0px`
514
+ rootMargin: `0px 0px -${Fn}px 0px`
515
515
  }
516
516
  );
517
517
  return l.observe(i), () => l.disconnect();
518
518
  }, [t, s]), /* @__PURE__ */ e.jsx("div", { ref: r, children: n });
519
519
  }
520
- function Fn({ className: t }) {
520
+ function Sn({ className: t }) {
521
521
  const { view: n } = le();
522
522
  return n === "form" ? /* @__PURE__ */ e.jsx(Ae, {}) : /* @__PURE__ */ e.jsx(Rn, { className: t });
523
523
  }
@@ -527,7 +527,7 @@ function Rn({ className: t }) {
527
527
  setLocale: r,
528
528
  config: a,
529
529
  goToForm: i
530
- } = le(), [l, u] = F(!1), o = b(null), x = b(a.locale), h = b(
530
+ } = le(), [l, u] = S(!1), o = b(null), x = b(a.locale), h = b(
531
531
  n?.locale
532
532
  );
533
533
  I(() => {
@@ -702,7 +702,7 @@ function Rn({ className: t }) {
702
702
  section: "feedback",
703
703
  onImpression: g,
704
704
  children: /* @__PURE__ */ e.jsx(
705
- Se,
705
+ Fe,
706
706
  {
707
707
  t: c,
708
708
  readMoreHref: a.readMoreReviewsHref,
@@ -716,7 +716,7 @@ function Rn({ className: t }) {
716
716
  {
717
717
  section: "faq",
718
718
  onImpression: g,
719
- children: /* @__PURE__ */ e.jsx(Fe, { t: c })
719
+ children: /* @__PURE__ */ e.jsx(Se, { t: c })
720
720
  }
721
721
  ),
722
722
  /* @__PURE__ */ e.jsx(
@@ -758,7 +758,7 @@ const En = ({
758
758
  onProceedGuidance: g,
759
759
  proceedHref: d,
760
760
  originalPriceLabel: N,
761
- discountedPriceLabel: S,
761
+ discountedPriceLabel: F,
762
762
  discountPillLabel: w,
763
763
  analytics: L,
764
764
  onLocaleChange: Q
@@ -783,11 +783,11 @@ const En = ({
783
783
  onProceedGuidance: g,
784
784
  proceedHref: d,
785
785
  originalPriceLabel: N,
786
- discountedPriceLabel: S,
786
+ discountedPriceLabel: F,
787
787
  discountPillLabel: w,
788
788
  analytics: L,
789
789
  onLocaleChange: Q,
790
- children: /* @__PURE__ */ e.jsx(Fn, { className: t })
790
+ children: /* @__PURE__ */ e.jsx(Sn, { className: t })
791
791
  }
792
792
  ), An = "_container_1b9qe_1", Dn = "_main_1b9qe_6", $n = "_langDropdownWrap_1b9qe_12", Un = "_langTrigger_1b9qe_16", Mn = "_langIcon_1b9qe_28", On = "_langLabel_1b9qe_35", Qn = "_langMenu_1b9qe_40", Bn = "_langOption_1b9qe_46", Kn = "_inlineFormWrap_1b9qe_57", Hn = "_inlineProceedFooter_1b9qe_74", O = {
793
793
  container: An,
@@ -907,7 +907,7 @@ const En = ({
907
907
  features: [
908
908
  { text: "planFeatureIncludesPremium", included: !0 },
909
909
  { text: "planFeatureExpertAnswers", included: !0 },
910
- { text: "planFeatureFollowUpQuestions", included: !0 },
910
+ { text: "planFeatureFollowUpQuestions", included: !1 },
911
911
  { text: "planFeatureNoConsultation", included: !1 }
912
912
  ]
913
913
  },
@@ -980,7 +980,7 @@ const qn = 5e3, Wn = 84, zn = `
980
980
  }
981
981
  ), Zn = ({ plan: t, t: n }) => /* @__PURE__ */ e.jsx("div", { className: "rounded-2xl border border-gray-200 bg-white px-4 py-3 shadow-[0_2px_8px_rgba(17,24,39,0.06)]", children: /* @__PURE__ */ e.jsx("ul", { className: "list-none m-0 p-0 flex flex-col gap-2", "aria-label": "Plan features", children: t.features.map((s, r) => /* @__PURE__ */ e.jsxs("li", { className: "flex items-start gap-3", children: [
982
982
  /* @__PURE__ */ e.jsx("span", { className: "shrink-0 mt-[1px]", children: s.included ? /* @__PURE__ */ e.jsx(Yn, {}) : /* @__PURE__ */ e.jsx(Xn, {}) }),
983
- /* @__PURE__ */ e.jsx("span", { className: "text-[12px] leading-[1.4] text-gray-700", children: n(s.text) })
983
+ /* @__PURE__ */ e.jsx("span", { className: "text-[14px] leading-[20px] text-gray-700", children: n(s.text) })
984
984
  ] }, r)) }) }), es = ({
985
985
  chipKeys: t,
986
986
  t: n,
@@ -991,7 +991,7 @@ const qn = 5e3, Wn = 84, zn = `
991
991
  "button",
992
992
  {
993
993
  type: "button",
994
- className: "inline-flex w-auto px-3 py-2 rounded-full bg-[#F1F7FF] text-[#104DA6] text-[12px] font-medium cursor-pointer whitespace-nowrap active:opacity-70 transition-opacity",
994
+ className: "inline-flex w-auto px-3 py-2 rounded-full bg-[#F1F7FF] text-[#104DA6] text-[14px] font-medium cursor-pointer whitespace-nowrap active:opacity-70 transition-opacity",
995
995
  onClick: () => s(u, t.indexOf(u)),
996
996
  children: n(u)
997
997
  },
@@ -1079,7 +1079,7 @@ const qn = 5e3, Wn = 84, zn = `
1079
1079
  }
1080
1080
  }
1081
1081
  ),
1082
- /* @__PURE__ */ e.jsx("p", { className: "m-0 mt-4 text-sm font-semibold text-gray-500", children: n }),
1082
+ /* @__PURE__ */ e.jsx("p", { className: "m-0 mt-4 text-[14px] font-semibold text-[#1D2125]", children: n }),
1083
1083
  /* @__PURE__ */ e.jsx(
1084
1084
  "div",
1085
1085
  {
@@ -1171,7 +1171,7 @@ const qn = 5e3, Wn = 84, zn = `
1171
1171
  analytics: o,
1172
1172
  isGlobal: x = !0
1173
1173
  }) => {
1174
- const h = z((m) => (me[l] ?? me.en)[m] ?? u?.(m) ?? m, [l, u]), c = ce(() => a ?? Gn(x), [a, x]), f = s?.id || c.find((m) => m.badge)?.id || c[0]?.id || "", y = b(null), k = b(null), C = b(null), g = b(!1), [d, N] = F(""), [S, w] = F("custom"), [L, Q] = F(null), [H, G] = F(!1), q = b(!1), V = b(null), P = ce(() => c.find((m) => m.id === f) ?? c[0], [c, f]), D = !!P?.supportsQuestion, j = !D || d.trim().length > 0, ae = z(() => {
1174
+ const h = z((m) => (me[l] ?? me.en)[m] ?? u?.(m) ?? m, [l, u]), c = ce(() => a ?? Gn(x), [a, x]), f = s?.id || c.find((m) => m.badge)?.id || c[0]?.id || "", y = b(null), k = b(null), C = b(null), g = b(!1), [d, N] = S(""), [F, w] = S("custom"), [L, Q] = S(null), [H, G] = S(!1), q = b(!1), V = b(null), P = ce(() => c.find((m) => m.id === f) ?? c[0], [c, f]), D = !!P?.supportsQuestion, j = !D || d.trim().length > 0, ae = z(() => {
1175
1175
  const m = V.current;
1176
1176
  m && (m.style.height = "auto", m.style.height = Math.max(100, Math.min(m.scrollHeight, Wn)) + "px");
1177
1177
  }, []);
@@ -1205,9 +1205,9 @@ const qn = 5e3, Wn = 84, zn = `
1205
1205
  }));
1206
1206
  }, re = (m) => {
1207
1207
  const v = m.target.value.slice(0, qn);
1208
- S === "chip" && v !== h(xe[L ?? 0]) && w("chip_edited"), N(v), ae(), H && G(!1);
1208
+ F === "chip" && v !== h(xe[L ?? 0]) && w("chip_edited"), N(v), ae(), H && G(!1);
1209
1209
  }, p = (m, v) => {
1210
- const Y = h(m), J = d.length > 0 && S !== "chip";
1210
+ const Y = h(m), J = d.length > 0 && F !== "chip";
1211
1211
  o?.trackPreSuggestedQuestionSelected?.({
1212
1212
  question_text_loaded: Y,
1213
1213
  chip_index: v,
@@ -1227,7 +1227,7 @@ const qn = 5e3, Wn = 84, zn = `
1227
1227
  currency: x ? "USD" : "INR",
1228
1228
  question_asked: D ? !0 : void 0,
1229
1229
  question_text: D ? d.trim() : void 0,
1230
- question_source: D ? S : void 0
1230
+ question_source: D ? F : void 0
1231
1231
  }), i(P, D ? d.trim() : void 0), n();
1232
1232
  }
1233
1233
  };
@@ -1236,7 +1236,7 @@ const qn = 5e3, Wn = 84, zn = `
1236
1236
  /* @__PURE__ */ e.jsx(
1237
1237
  "div",
1238
1238
  {
1239
- className: "fixed inset-0 z-[1000] bg-black/55 flex items-end justify-center",
1239
+ className: "fixed inset-0 z-[1000] bg-black/55 flex items-stretch justify-center",
1240
1240
  role: "dialog",
1241
1241
  "aria-modal": "true",
1242
1242
  "aria-label": h("planSheetTitle"),
@@ -1244,12 +1244,12 @@ const qn = 5e3, Wn = 84, zn = `
1244
1244
  "div",
1245
1245
  {
1246
1246
  ref: y,
1247
- className: "pt-8 w-full max-w-[480px] h-[92dvh] max-h-[92dvh] bg-white rounded-t-[20px] flex flex-col overflow-hidden",
1247
+ className: "pt-8 w-full max-w-[480px] h-[100dvh] max-h-[100dvh] bg-white flex flex-col overflow-hidden",
1248
1248
  style: { animation: "three-sku-slide-up 0.28s cubic-bezier(0.32, 0.72, 0, 1)" },
1249
1249
  children: [
1250
1250
  /* @__PURE__ */ e.jsx(Vn, { title: h("planSheetTitle"), onClose: oe }),
1251
1251
  /* @__PURE__ */ e.jsxs("div", { className: "flex-1 overflow-y-auto px-4 pt-4 pb-4", ref: k, children: [
1252
- /* @__PURE__ */ e.jsx("h3", { className: "m-0 mb-5 text-[16px] font-bold leading-snug text-gray-900", children: h(P?.title ?? "") }),
1252
+ /* @__PURE__ */ e.jsx("h3", { className: "m-0 mb-5 text-[16px] font-bold leading-snug text-[#CF6C09]", children: h(P?.title ?? "") }),
1253
1253
  P && /* @__PURE__ */ e.jsx(Zn, { plan: P, t: h }),
1254
1254
  D && /* @__PURE__ */ e.jsx("div", { ref: C, children: /* @__PURE__ */ e.jsx(
1255
1255
  ts,
@@ -1411,7 +1411,7 @@ call`, values: ["cross", "cross", "check"] }
1411
1411
  n
1412
1412
  ))
1413
1413
  ] })
1414
- ] }), Ss = ({
1414
+ ] }), Fs = ({
1415
1415
  kundliReportSampleHref: t,
1416
1416
  oneQuestionSampleHref: n
1417
1417
  }) => /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
@@ -1444,7 +1444,7 @@ call`, values: ["cross", "cross", "check"] }
1444
1444
  }
1445
1445
  )
1446
1446
  ] })
1447
- ] }), Fs = ({
1447
+ ] }), Ss = ({
1448
1448
  isGlobal: t = !1,
1449
1449
  kundliReportSampleHref: n = _s,
1450
1450
  oneQuestionSampleHref: s = js,
@@ -1464,7 +1464,7 @@ call`, values: ["cross", "cross", "check"] }
1464
1464
  /* @__PURE__ */ e.jsx(Ts, { prices: a })
1465
1465
  ] }) }),
1466
1466
  /* @__PURE__ */ e.jsx(
1467
- Ss,
1467
+ Fs,
1468
1468
  {
1469
1469
  kundliReportSampleHref: n,
1470
1470
  oneQuestionSampleHref: s
@@ -1507,7 +1507,7 @@ function Ds({
1507
1507
  config: o,
1508
1508
  formValues: x,
1509
1509
  setFormValues: h
1510
- } = le(), [c, f] = F(!1), [y, k] = F(null), C = b(null), g = b(void 0), d = b(null), N = b(!1), S = z((p) => {
1510
+ } = le(), [c, f] = S(!1), [y, k] = S(null), C = b(null), g = b(void 0), d = b(null), N = b(!1), F = z((p) => {
1511
1511
  C.current = p, f(!0);
1512
1512
  }, []), w = z(() => {
1513
1513
  if (!C.current || !y) return;
@@ -1517,7 +1517,7 @@ function Ds({
1517
1517
  ...g.current !== void 0 ? { _question: g.current } : {}
1518
1518
  };
1519
1519
  g.current = void 0, y.id === $e && o.onProceedGuidance ? o.onProceedGuidance(p) : o.onProceed?.(p), f(!1), C.current = null;
1520
- }, [y, o.onProceed, o.onProceedGuidance]), [L, Q] = F(!1), [H, G] = F(
1520
+ }, [y, o.onProceed, o.onProceedGuidance]), [L, Q] = S(!1), [H, G] = S(
1521
1521
  o.isGlobal ?? !0 ? "+1" : "+91"
1522
1522
  ), q = b(null), V = b(null), P = b(o.locale), D = b(
1523
1523
  i?.locale
@@ -1688,7 +1688,7 @@ function Ds({
1688
1688
  section: "view_sample_report",
1689
1689
  onImpression: T,
1690
1690
  children: s ? /* @__PURE__ */ e.jsx("div", { ref: d, children: /* @__PURE__ */ e.jsx(
1691
- Fs,
1691
+ Ss,
1692
1692
  {
1693
1693
  isGlobal: o.isGlobal,
1694
1694
  kundliReportSampleHref: r,
@@ -1740,7 +1740,7 @@ function Ds({
1740
1740
  analytics: o.analytics,
1741
1741
  className: O.inlineProceedFooter,
1742
1742
  onProceedGuidance: o.onProceedGuidance,
1743
- showPlanSheet: S,
1743
+ showPlanSheet: F,
1744
1744
  confirmPlan: w,
1745
1745
  planSheetOpen: c,
1746
1746
  selectedPlan: y
@@ -1771,7 +1771,7 @@ function Ds({
1771
1771
  section: "feedback",
1772
1772
  onImpression: T,
1773
1773
  children: /* @__PURE__ */ e.jsx(
1774
- Se,
1774
+ Fe,
1775
1775
  {
1776
1776
  t: j,
1777
1777
  readMoreHref: o.readMoreReviewsHref,
@@ -1785,7 +1785,7 @@ function Ds({
1785
1785
  {
1786
1786
  section: "faq",
1787
1787
  onImpression: T,
1788
- children: /* @__PURE__ */ e.jsx(Fe, { t: j })
1788
+ children: /* @__PURE__ */ e.jsx(Se, { t: j })
1789
1789
  }
1790
1790
  ),
1791
1791
  /* @__PURE__ */ e.jsx(
@@ -1848,7 +1848,7 @@ const $s = ({
1848
1848
  onCtaClick: g,
1849
1849
  readMoreReviewsHref: d,
1850
1850
  onProceed: N,
1851
- proceedHref: S,
1851
+ proceedHref: F,
1852
1852
  originalPriceLabel: w,
1853
1853
  discountedPriceLabel: L,
1854
1854
  discountPillLabel: Q,
@@ -1875,7 +1875,7 @@ const $s = ({
1875
1875
  readMoreReviewsHref: d,
1876
1876
  onProceed: N,
1877
1877
  onProceedGuidance: G,
1878
- proceedHref: S,
1878
+ proceedHref: F,
1879
1879
  originalPriceLabel: w,
1880
1880
  discountedPriceLabel: L,
1881
1881
  discountPillLabel: Q,
@@ -1903,4 +1903,4 @@ export {
1903
1903
  En as b,
1904
1904
  $s as c
1905
1905
  };
1906
- //# sourceMappingURL=criticalCss-CNfCSePP.js.map
1906
+ //# sourceMappingURL=criticalCss-8EUr27sU.js.map