@srimandir/kundli-generator 5.30.3 → 5.30.4

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.
@@ -34,5 +34,7 @@ export interface KundliThreeSkuPageProps {
34
34
  onLocaleChange?: (locale: SupportedLocale) => void;
35
35
  /** Atlas localities search callback for birth place autocomplete */
36
36
  atlasSearchLocalities?: AtlasSearchLocalities;
37
+ /** Show language dropdown in header. Default true. */
38
+ showLanguageSelector?: boolean;
37
39
  }
38
40
  export declare const KundliThreeSkuPage: React.FC<KundliThreeSkuPageProps>;
@@ -1,17 +1,17 @@
1
1
  import { k as e, f as A, D as B, c as ee, h as z, j as fe, u as ne, L as W, S as se, l as te, t as ae, m as be, F as je, U as ye, P as we, n as Ie } from "./analytics-DL-R30Zw.js";
2
- import { useRef as y, useState as F, useEffect as k, useCallback as K } from "react";
3
- import { UserReviewsSection as ve, FAQAccordion as ke, ContactUsSection as Ne, FooterShell as Pe, FooterCTAButton as Ce, CircularMarquee as Le, footerShellStyles as O } from "@srimandir/astrology-common";
4
- const Te = "_container_nm3gb_1", Se = "_main_nm3gb_6", Re = "_langDropdownWrap_nm3gb_12", $e = "_langTrigger_nm3gb_16", Ee = "_langIcon_nm3gb_28", Fe = "_langLabel_nm3gb_35", De = "_langMenu_nm3gb_40", Oe = "_langOption_nm3gb_46", D = {
2
+ import { useRef as y, useState as E, useEffect as k, useCallback as K } from "react";
3
+ import { UserReviewsSection as ve, FAQAccordion as ke, ContactUsSection as Ne, FooterShell as Pe, FooterCTAButton as Ce, CircularMarquee as Le, footerShellStyles as U } from "@srimandir/astrology-common";
4
+ const Te = "_container_nm3gb_1", Se = "_main_nm3gb_6", Re = "_langDropdownWrap_nm3gb_12", $e = "_langTrigger_nm3gb_16", Fe = "_langIcon_nm3gb_28", Ee = "_langLabel_nm3gb_35", De = "_langMenu_nm3gb_40", Ue = "_langOption_nm3gb_46", D = {
5
5
  container: Te,
6
6
  main: Se,
7
7
  langDropdownWrap: Re,
8
8
  langTrigger: $e,
9
- langIcon: Ee,
10
- langLabel: Fe,
9
+ langIcon: Fe,
10
+ langLabel: Ee,
11
11
  langMenu: De,
12
- langOption: Oe
13
- }, Ue = "_hero_1vvjv_1", Ke = "_title_1vvjv_5", Ae = "_subtitle_1vvjv_10", Me = "_topicTags_1vvjv_23", Ge = "_tag_1vvjv_27", M = {
14
- hero: Ue,
12
+ langOption: Ue
13
+ }, Oe = "_hero_1vvjv_1", Ke = "_title_1vvjv_5", Ae = "_subtitle_1vvjv_10", Me = "_topicTags_1vvjv_23", Ge = "_tag_1vvjv_27", M = {
14
+ hero: Oe,
15
15
  title: Ke,
16
16
  subtitle: Ae,
17
17
  topicTags: Me,
@@ -215,16 +215,16 @@ const Te = "_container_nm3gb_1", Se = "_main_nm3gb_6", Re = "_langDropdownWrap_n
215
215
  pdfError: Rn,
216
216
  openInNewTab: $n
217
217
  };
218
- function En(n) {
218
+ function Fn(n) {
219
219
  typeof n < "u" && n.GlobalWorkerOptions && (n.GlobalWorkerOptions.workerSrc = `https://unpkg.com/pdfjs-dist@${n.version}/build/pdf.worker.min.js`);
220
220
  }
221
- const Fn = ({
221
+ const En = ({
222
222
  isOpen: n,
223
223
  onClose: o,
224
224
  title: a,
225
225
  pdfUrl: i
226
226
  }) => {
227
- const t = y(null), [s, r] = F(!0), [m, u] = F(null), [h, _] = F(null);
227
+ const t = y(null), [s, r] = E(!0), [m, u] = E(null), [h, _] = E(null);
228
228
  return k(() => {
229
229
  if (!n) return;
230
230
  const c = (x) => {
@@ -243,15 +243,15 @@ const Fn = ({
243
243
  if (!n || !i || !t.current || !h) return;
244
244
  r(!0), u(null), t.current.innerHTML = "", (async () => {
245
245
  try {
246
- En(h);
246
+ Fn(h);
247
247
  const C = await h.getDocument({ url: i }).promise, w = t.current;
248
248
  if (!w) return;
249
249
  const I = w.clientWidth || 600, p = Math.min(I / 612, 2);
250
250
  for (let l = 1; l <= C.numPages; l++) {
251
251
  const j = await C.getPage(l), $ = j.getViewport({ scale: p }), b = document.createElement("canvas");
252
252
  b.height = $.height, b.width = $.width, b.style.display = "block", b.style.margin = "0 auto 1rem", b.style.maxWidth = "100%";
253
- const E = b.getContext("2d");
254
- E && await j.render({ canvasContext: E, viewport: $ }).promise, w.appendChild(b);
253
+ const F = b.getContext("2d");
254
+ F && await j.render({ canvasContext: F, viewport: $ }).promise, w.appendChild(b);
255
255
  }
256
256
  } catch (x) {
257
257
  u(x instanceof Error ? x.message : "Failed to load PDF");
@@ -317,7 +317,7 @@ const Fn = ({
317
317
  analytics: i,
318
318
  className: t = ""
319
319
  }) => {
320
- const [s, r] = F(!1), m = n("viewSampleReport"), u = n("sampleReportModalTitle"), h = () => {
320
+ const [s, r] = E(!1), m = n("viewSampleReport"), u = n("sampleReportModalTitle"), h = () => {
321
321
  i?.trackViewSampleReportClicked?.(), a?.(), r(!0);
322
322
  }, _ = () => {
323
323
  i?.trackViewSampleReportClosed?.(), r(!1);
@@ -325,7 +325,7 @@ const Fn = ({
325
325
  return /* @__PURE__ */ e.jsxs("section", { className: `${Q.section} ${t}`, children: [
326
326
  /* @__PURE__ */ e.jsx("button", { type: "button", className: Q.button, onClick: h, children: m }),
327
327
  /* @__PURE__ */ e.jsx(
328
- Fn,
328
+ En,
329
329
  {
330
330
  isOpen: s,
331
331
  onClose: _,
@@ -334,9 +334,9 @@ const Fn = ({
334
334
  }
335
335
  )
336
336
  ] });
337
- }, On = "_section_1ds1w_1", Un = "_heading_1ds1w_5", Kn = "_list_1ds1w_10", An = "_item_1ds1w_17", Mn = "_imageWrap_1ds1w_21", Gn = "_image_1ds1w_21", Bn = "_imagePlaceholder_1ds1w_30", Wn = "_text_1ds1w_36", Hn = "_itemTitle_1ds1w_40", qn = "_itemDesc_1ds1w_51", T = {
338
- section: On,
339
- heading: Un,
337
+ }, Un = "_section_1ds1w_1", On = "_heading_1ds1w_5", Kn = "_list_1ds1w_10", An = "_item_1ds1w_17", Mn = "_imageWrap_1ds1w_21", Gn = "_image_1ds1w_21", Bn = "_imagePlaceholder_1ds1w_30", Wn = "_text_1ds1w_36", Hn = "_itemTitle_1ds1w_40", qn = "_itemDesc_1ds1w_51", T = {
338
+ section: Un,
339
+ heading: On,
340
340
  list: Kn,
341
341
  item: An,
342
342
  imageWrap: Mn,
@@ -465,17 +465,17 @@ const Fn = ({
465
465
  );
466
466
  }, is = "https://srm-cdn.a4b.io/yoda/1770375694934.svg", ls = "https://srm-cdn.a4b.io/yoda/1770375720933.svg", rs = "https://srm-cdn.a4b.io/yoda/1770707793537.svg", cs = ({ t: n }) => {
467
467
  const a = A()?.config.imageComponent ?? B;
468
- return /* @__PURE__ */ e.jsxs("div", { className: O.marqueeContent, children: [
469
- /* @__PURE__ */ e.jsxs("span", { className: O.badge, children: [
470
- /* @__PURE__ */ e.jsx(a, { src: is, alt: "", className: O.badgeIcon, width: 16, height: 16, loading: "lazy" }),
468
+ return /* @__PURE__ */ e.jsxs("div", { className: U.marqueeContent, children: [
469
+ /* @__PURE__ */ e.jsxs("span", { className: U.badge, children: [
470
+ /* @__PURE__ */ e.jsx(a, { src: is, alt: "", className: U.badgeIcon, width: 16, height: 16, loading: "lazy" }),
471
471
  n("ctaKundliCreated")
472
472
  ] }),
473
- /* @__PURE__ */ e.jsxs("span", { className: O.badge, children: [
474
- /* @__PURE__ */ e.jsx(a, { src: ls, alt: "", className: O.badgeIcon, width: 16, height: 16, loading: "lazy" }),
473
+ /* @__PURE__ */ e.jsxs("span", { className: U.badge, children: [
474
+ /* @__PURE__ */ e.jsx(a, { src: ls, alt: "", className: U.badgeIcon, width: 16, height: 16, loading: "lazy" }),
475
475
  n("ctaCertified")
476
476
  ] }),
477
- /* @__PURE__ */ e.jsxs("span", { className: O.badge, children: [
478
- /* @__PURE__ */ e.jsx(a, { src: rs, alt: "", className: O.badgeIcon, width: 16, height: 16, loading: "lazy" }),
477
+ /* @__PURE__ */ e.jsxs("span", { className: U.badge, children: [
478
+ /* @__PURE__ */ e.jsx(a, { src: rs, alt: "", className: U.badgeIcon, width: 16, height: 16, loading: "lazy" }),
479
479
  n("ctaSecurePayment")
480
480
  ] })
481
481
  ] });
@@ -527,7 +527,7 @@ function gs({ className: n }) {
527
527
  setLocale: i,
528
528
  config: t,
529
529
  goToForm: s
530
- } = z(), [r, m] = F(!1), u = y(null), h = y(t.locale), _ = y(
530
+ } = z(), [r, m] = E(!1), u = y(null), h = y(t.locale), _ = y(
531
531
  o?.locale
532
532
  );
533
533
  k(() => {
@@ -760,8 +760,8 @@ const _s = ({
760
760
  originalPriceLabel: j,
761
761
  discountedPriceLabel: $,
762
762
  discountPillLabel: b,
763
- analytics: E,
764
- onLocaleChange: U
763
+ analytics: F,
764
+ onLocaleChange: O
765
765
  }) => /* @__PURE__ */ e.jsx(
766
766
  ee,
767
767
  {
@@ -785,8 +785,8 @@ const _s = ({
785
785
  originalPriceLabel: j,
786
786
  discountedPriceLabel: $,
787
787
  discountPillLabel: b,
788
- analytics: E,
789
- onLocaleChange: U,
788
+ analytics: F,
789
+ onLocaleChange: O,
790
790
  children: /* @__PURE__ */ e.jsx(ps, { className: n })
791
791
  }
792
792
  ), xs = "_container_1b9qe_1", fs = "_main_1b9qe_6", bs = "_langDropdownWrap_1b9qe_12", js = "_langTrigger_1b9qe_16", ys = "_langIcon_1b9qe_28", ws = "_langLabel_1b9qe_35", Is = "_langMenu_1b9qe_40", vs = "_langOption_1b9qe_46", ks = "_inlineFormWrap_1b9qe_57", Ns = "_inlineProceedFooter_1b9qe_74", R = {
@@ -836,7 +836,7 @@ function Ss({
836
836
  config: s,
837
837
  formValues: r,
838
838
  setFormValues: m
839
- } = z(), [u, h] = F(!1), [_, c] = F(null), x = y(null), C = K((d) => {
839
+ } = z(), [u, h] = E(!1), [_, c] = E(null), x = y(null), C = K((d) => {
840
840
  x.current = d, h(!0);
841
841
  }, []), w = K(() => {
842
842
  if (!x.current || !_) return;
@@ -845,17 +845,17 @@ function Ss({
845
845
  _selectedPlan: _
846
846
  };
847
847
  _.id === be && s.onProceedGuidance ? s.onProceedGuidance(d) : s.onProceed?.(d), h(!1), x.current = null;
848
- }, [_, s.onProceed, s.onProceedGuidance]), [I, p] = F(!1), [l, j] = F(
848
+ }, [_, s.onProceed, s.onProceedGuidance]), [I, p] = E(!1), [l, j] = E(
849
849
  s.isGlobal ?? !0 ? "+1" : "+91"
850
- ), $ = y(null), b = y(null), E = y(s.locale), U = y(
850
+ ), $ = y(null), b = y(null), F = y(s.locale), O = y(
851
851
  a?.locale
852
852
  );
853
853
  k(() => {
854
- s.locale && E.current !== s.locale && t(s.locale), E.current = s.locale;
854
+ s.locale && F.current !== s.locale && t(s.locale), F.current = s.locale;
855
855
  }, [s.locale, t]), k(() => {
856
856
  if (s.locale) return;
857
857
  const d = a?.locale;
858
- d && U.current !== d && t(d), U.current = d;
858
+ d && O.current !== d && t(d), O.current = d;
859
859
  }, [a?.locale, s.locale, t]), k(() => {
860
860
  j(s.isGlobal ?? !0 ? "+1" : "+91");
861
861
  }, [s.isGlobal]), k(() => {
@@ -1148,8 +1148,8 @@ const Rs = ({
1148
1148
  discountedPriceLabel: j,
1149
1149
  discountPillLabel: $,
1150
1150
  analytics: b,
1151
- onProceedGuidance: E,
1152
- onLocaleChange: U
1151
+ onProceedGuidance: F,
1152
+ onLocaleChange: O
1153
1153
  }) => /* @__PURE__ */ e.jsx(
1154
1154
  ee,
1155
1155
  {
@@ -1169,25 +1169,33 @@ const Rs = ({
1169
1169
  onCtaClick: C,
1170
1170
  readMoreReviewsHref: w,
1171
1171
  onProceed: I,
1172
- onProceedGuidance: E,
1172
+ onProceedGuidance: F,
1173
1173
  proceedHref: p,
1174
1174
  originalPriceLabel: l,
1175
1175
  discountedPriceLabel: j,
1176
1176
  discountPillLabel: $,
1177
1177
  analytics: b,
1178
- onLocaleChange: U,
1178
+ onLocaleChange: O,
1179
1179
  children: /* @__PURE__ */ e.jsx(Ts, { className: n })
1180
1180
  }
1181
- ), Us = ({ variant: n, ...o }) => {
1181
+ ), Os = ({ variant: n, ...o }) => {
1182
1182
  const a = typeof window < "u" ? new URLSearchParams(window.location.search).get("variant") : null;
1183
1183
  return (n ?? (a === "v1" ? "v1" : void 0)) === "v1" ? /* @__PURE__ */ e.jsx(Rs, { ...o }) : /* @__PURE__ */ e.jsx(_s, { ...o });
1184
1184
  }, Ks = "[data-hero]{min-height:200px}[data-background-layer]{position:absolute;inset:0;z-index:0;overflow:hidden}[data-form-container]{min-height:400px}@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:400;font-display:swap}@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:600;font-display:swap}@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:700;font-display:swap}img{max-width:100%;height:auto}.kundli-page-root{contain:layout}";
1185
1185
  export {
1186
+ pe as C,
1187
+ he as F,
1186
1188
  oe as H,
1187
1189
  Ks as K,
1188
1190
  on as P,
1189
- Us as a,
1190
- _s as b,
1191
- Rs as c
1191
+ re as T,
1192
+ le as U,
1193
+ de as W,
1194
+ Os as a,
1195
+ ie as b,
1196
+ me as c,
1197
+ ue as d,
1198
+ _s as e,
1199
+ Rs as f
1192
1200
  };
1193
- //# sourceMappingURL=criticalCss-DGh12F0K.js.map
1201
+ //# sourceMappingURL=criticalCss-fMFN3vjg.js.map