@srimandir/kundli-generator 5.30.22 → 5.30.23
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 ae, d as je, j as ce, c as De, u as ye, L as oe, S as we, l as ve, t as Ce, C as Ue, P as $e, F as Oe, U as Me, m as Ke, n as Be } from "./analytics-BDueklE6.js";
|
|
2
|
-
import { useRef as f, useState as
|
|
2
|
+
import { useRef as f, useState as I, useEffect as k, useCallback as W, useMemo as pe } from "react";
|
|
3
3
|
import { UserReviewsSection as Qe, FAQAccordion as qe, ContactUsSection as He, FooterShell as Ge, FooterCTAButton as We, CircularMarquee as ze, footerShellStyles as G } from "@srimandir/astrology-common";
|
|
4
4
|
const Ve = "_container_nm3gb_1", Ye = "_main_nm3gb_6", Xe = "_langDropdownWrap_nm3gb_12", Je = "_langTrigger_nm3gb_16", Ze = "_langIcon_nm3gb_28", en = "_langLabel_nm3gb_35", nn = "_langMenu_nm3gb_40", tn = "_langOption_nm3gb_46", Q = {
|
|
5
5
|
container: Ve,
|
|
@@ -132,13 +132,13 @@ const Ve = "_container_nm3gb_1", Ye = "_main_nm3gb_6", Xe = "_langDropdownWrap_n
|
|
|
132
132
|
]
|
|
133
133
|
}
|
|
134
134
|
);
|
|
135
|
-
}, In = "_section_1kxsy_1", Ln = "_heading_1kxsy_6",
|
|
135
|
+
}, In = "_section_1kxsy_1", Ln = "_heading_1kxsy_6", Tn = "_logoImg_1kxsy_10", re = {
|
|
136
136
|
section: In,
|
|
137
137
|
heading: Ln,
|
|
138
|
-
logoImg:
|
|
139
|
-
},
|
|
138
|
+
logoImg: Tn
|
|
139
|
+
}, Fn = "https://srm-cdn.a4b.io/yoda/1772696467302.webp", Pe = ({
|
|
140
140
|
t: n,
|
|
141
|
-
logoUrl: s =
|
|
141
|
+
logoUrl: s = Fn,
|
|
142
142
|
className: t = ""
|
|
143
143
|
}) => {
|
|
144
144
|
const a = X()?.config.imageComponent ?? ae;
|
|
@@ -156,8 +156,8 @@ const Ve = "_container_nm3gb_1", Ye = "_main_nm3gb_6", Xe = "_langDropdownWrap_n
|
|
|
156
156
|
}
|
|
157
157
|
)
|
|
158
158
|
] });
|
|
159
|
-
},
|
|
160
|
-
section:
|
|
159
|
+
}, Rn = "_section_1d9aa_1", Sn = "_heading_1d9aa_6", En = "_subtitle_1d9aa_11", An = "_stepList_1d9aa_16", Dn = "_stepItem_1d9aa_20", Un = "_stepNumber_1d9aa_24", $n = "_stepText_1d9aa_30", On = "_step3Days_1d9aa_35", S = {
|
|
160
|
+
section: Rn,
|
|
161
161
|
heading: Sn,
|
|
162
162
|
subtitle: En,
|
|
163
163
|
stepList: An,
|
|
@@ -181,8 +181,8 @@ const Ve = "_container_nm3gb_1", Ye = "_main_nm3gb_6", Xe = "_langDropdownWrap_n
|
|
|
181
181
|
/* @__PURE__ */ e.jsx("p", { className: S.heading, children: n("yourThreeSteps") }),
|
|
182
182
|
/* @__PURE__ */ e.jsx("h2", { id: "steps-heading", className: S.subtitle, children: n("threeStepsSubtitle") }),
|
|
183
183
|
/* @__PURE__ */ e.jsxs("ol", { className: S.stepList, children: [
|
|
184
|
-
Mn.map((l,
|
|
185
|
-
/* @__PURE__ */ e.jsx("span", { className: S.stepNumber, "aria-hidden": !0, children:
|
|
184
|
+
Mn.map((l, c) => /* @__PURE__ */ e.jsxs("li", { className: S.stepItem, children: [
|
|
185
|
+
/* @__PURE__ */ e.jsx("span", { className: S.stepNumber, "aria-hidden": !0, children: c + 1 }),
|
|
186
186
|
/* @__PURE__ */ e.jsx("span", { className: S.stepText, children: n(l) })
|
|
187
187
|
] }, l)),
|
|
188
188
|
/* @__PURE__ */ e.jsxs("li", { className: S.stepItem, children: [
|
|
@@ -218,45 +218,45 @@ const Ve = "_container_nm3gb_1", Ye = "_main_nm3gb_6", Xe = "_langDropdownWrap_n
|
|
|
218
218
|
function Zn(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
|
|
221
|
+
const Le = ({
|
|
222
222
|
isOpen: n,
|
|
223
223
|
onClose: s,
|
|
224
224
|
title: t,
|
|
225
225
|
pdfUrl: o
|
|
226
226
|
}) => {
|
|
227
|
-
const a = f(null), [l,
|
|
228
|
-
return
|
|
227
|
+
const a = f(null), [l, c] = I(!0), [u, i] = I(null), [h, _] = I(null);
|
|
228
|
+
return k(() => {
|
|
229
229
|
if (!n) return;
|
|
230
|
-
const
|
|
230
|
+
const r = (m) => {
|
|
231
231
|
m.key === "Escape" && s();
|
|
232
232
|
};
|
|
233
|
-
return document.addEventListener("keydown",
|
|
234
|
-
document.removeEventListener("keydown",
|
|
233
|
+
return document.addEventListener("keydown", r), document.body.style.overflow = "hidden", () => {
|
|
234
|
+
document.removeEventListener("keydown", r), document.body.style.overflow = "";
|
|
235
235
|
};
|
|
236
|
-
}, [n, s]),
|
|
237
|
-
n && import("pdfjs-dist").then((
|
|
238
|
-
_(
|
|
239
|
-
}).catch((
|
|
240
|
-
i("Failed to load PDF viewer"),
|
|
236
|
+
}, [n, s]), k(() => {
|
|
237
|
+
n && import("pdfjs-dist").then((r) => {
|
|
238
|
+
_(r);
|
|
239
|
+
}).catch((r) => {
|
|
240
|
+
i("Failed to load PDF viewer"), c(!1);
|
|
241
241
|
});
|
|
242
|
-
}, [n]),
|
|
242
|
+
}, [n]), k(() => {
|
|
243
243
|
if (!n || !o || !a.current || !h) return;
|
|
244
|
-
|
|
244
|
+
c(!0), i(null), a.current.innerHTML = "", (async () => {
|
|
245
245
|
try {
|
|
246
246
|
Zn(h);
|
|
247
|
-
const j = await h.getDocument({ url: o }).promise,
|
|
248
|
-
if (!
|
|
249
|
-
const C =
|
|
247
|
+
const j = await h.getDocument({ url: o }).promise, N = a.current;
|
|
248
|
+
if (!N) return;
|
|
249
|
+
const C = N.clientWidth || 600, x = Math.min(C / 612, 2);
|
|
250
250
|
for (let p = 1; p <= j.numPages; p++) {
|
|
251
|
-
const b = await j.getPage(p),
|
|
252
|
-
v.height =
|
|
253
|
-
const
|
|
254
|
-
|
|
251
|
+
const b = await j.getPage(p), R = b.getViewport({ scale: x }), v = document.createElement("canvas");
|
|
252
|
+
v.height = R.height, v.width = R.width, v.style.display = "block", v.style.margin = "0 auto 1rem", v.style.maxWidth = "100%";
|
|
253
|
+
const P = v.getContext("2d");
|
|
254
|
+
P && await b.render({ canvasContext: P, viewport: R }).promise, N.appendChild(v);
|
|
255
255
|
}
|
|
256
256
|
} catch (m) {
|
|
257
257
|
i(m instanceof Error ? m.message : "Failed to load PDF");
|
|
258
258
|
} finally {
|
|
259
|
-
|
|
259
|
+
c(!1);
|
|
260
260
|
}
|
|
261
261
|
})();
|
|
262
262
|
}, [n, o, h]), n ? /* @__PURE__ */ e.jsx(
|
|
@@ -271,7 +271,7 @@ const de = ({
|
|
|
271
271
|
"div",
|
|
272
272
|
{
|
|
273
273
|
className: $.modal,
|
|
274
|
-
onClick: (
|
|
274
|
+
onClick: (r) => r.stopPropagation(),
|
|
275
275
|
children: [
|
|
276
276
|
/* @__PURE__ */ e.jsxs("div", { className: $.header, children: [
|
|
277
277
|
/* @__PURE__ */ e.jsx("h2", { id: "sample-report-modal-title", className: $.title, children: t }),
|
|
@@ -310,22 +310,22 @@ const de = ({
|
|
|
310
310
|
)
|
|
311
311
|
}
|
|
312
312
|
) : null;
|
|
313
|
-
}, et = "https://srm-cdn.a4b.io/yoda/1773317492292.pdf",
|
|
313
|
+
}, et = "https://srm-cdn.a4b.io/yoda/1773317492292.pdf", de = ({
|
|
314
314
|
t: n,
|
|
315
315
|
pdfUrl: s = et,
|
|
316
316
|
onClick: t,
|
|
317
317
|
analytics: o,
|
|
318
318
|
className: a = ""
|
|
319
319
|
}) => {
|
|
320
|
-
const [l,
|
|
321
|
-
o?.trackViewSampleReportClicked?.(), t?.(),
|
|
320
|
+
const [l, c] = I(!1), u = n("viewSampleReport"), i = n("sampleReportModalTitle"), h = () => {
|
|
321
|
+
o?.trackViewSampleReportClicked?.(), t?.(), c(!0);
|
|
322
322
|
}, _ = () => {
|
|
323
|
-
o?.trackViewSampleReportClosed?.(),
|
|
323
|
+
o?.trackViewSampleReportClosed?.(), c(!1);
|
|
324
324
|
};
|
|
325
325
|
return /* @__PURE__ */ e.jsxs("section", { className: `${me.section} ${a}`, children: [
|
|
326
326
|
/* @__PURE__ */ e.jsx("button", { type: "button", className: me.button, onClick: h, children: u }),
|
|
327
327
|
/* @__PURE__ */ e.jsx(
|
|
328
|
-
|
|
328
|
+
Le,
|
|
329
329
|
{
|
|
330
330
|
isOpen: l,
|
|
331
331
|
onClose: _,
|
|
@@ -359,7 +359,7 @@ const de = ({
|
|
|
359
359
|
"https://srm-cdn.a4b.io/yoda/1772619253699.webp",
|
|
360
360
|
"https://srm-cdn.a4b.io/yoda/1772619272322.webp",
|
|
361
361
|
"https://srm-cdn.a4b.io/yoda/1772619284662.webp"
|
|
362
|
-
],
|
|
362
|
+
], Te = ({
|
|
363
363
|
t: n,
|
|
364
364
|
imageUrls: s = pt,
|
|
365
365
|
className: t = ""
|
|
@@ -372,11 +372,11 @@ const de = ({
|
|
|
372
372
|
"aria-labelledby": "find-heading",
|
|
373
373
|
children: [
|
|
374
374
|
/* @__PURE__ */ e.jsx("h2", { id: "find-heading", className: O.heading, children: n("whatYoullFindTitle") }),
|
|
375
|
-
/* @__PURE__ */ e.jsx("ul", { className: O.list, children: ut.map((l,
|
|
376
|
-
/* @__PURE__ */ e.jsx("div", { className: O.imageWrap, children: s[
|
|
375
|
+
/* @__PURE__ */ e.jsx("ul", { className: O.list, children: ut.map((l, c) => /* @__PURE__ */ e.jsxs("li", { className: O.item, children: [
|
|
376
|
+
/* @__PURE__ */ e.jsx("div", { className: O.imageWrap, children: s[c] ? /* @__PURE__ */ e.jsx(
|
|
377
377
|
a,
|
|
378
378
|
{
|
|
379
|
-
src: s[
|
|
379
|
+
src: s[c],
|
|
380
380
|
alt: "",
|
|
381
381
|
className: O.image,
|
|
382
382
|
width: 96,
|
|
@@ -399,13 +399,13 @@ const de = ({
|
|
|
399
399
|
subtitle: gt,
|
|
400
400
|
list: xt,
|
|
401
401
|
item: ft
|
|
402
|
-
}, _t = ["whyUs1", "whyUs2", "whyUs3", "whyUs4"],
|
|
402
|
+
}, _t = ["whyUs1", "whyUs2", "whyUs3", "whyUs4"], Fe = ({ t: n, className: s = "" }) => /* @__PURE__ */ e.jsxs("section", { className: `${se.section} ${s}`, "aria-labelledby": "why-heading", children: [
|
|
403
403
|
/* @__PURE__ */ e.jsx("h2", { id: "why-heading", className: se.heading, children: n("whyUsTitle") }),
|
|
404
404
|
/* @__PURE__ */ e.jsx("p", { className: se.subtitle, children: n("whyUsSubtitle") }),
|
|
405
405
|
/* @__PURE__ */ e.jsx("ul", { className: se.list, children: _t.map((t) => /* @__PURE__ */ e.jsx("li", { className: se.item, children: n(t) }, t)) })
|
|
406
406
|
] }), bt = "_headingBold_g8xg7_1", jt = {
|
|
407
407
|
headingBold: bt
|
|
408
|
-
},
|
|
408
|
+
}, Re = ({
|
|
409
409
|
t: n,
|
|
410
410
|
testimonials: s,
|
|
411
411
|
readMoreHref: t,
|
|
@@ -432,7 +432,7 @@ const de = ({
|
|
|
432
432
|
className: s = "",
|
|
433
433
|
headingClassName: t = wt.headingBold
|
|
434
434
|
}) => {
|
|
435
|
-
const a = X()?.config.isGlobal ?? !0, l = (
|
|
435
|
+
const a = X()?.config.isGlobal ?? !0, l = (c) => c === "faqA1" ? a ? "faqA1Global" : "faqA1Domestic" : c;
|
|
436
436
|
return /* @__PURE__ */ e.jsx(
|
|
437
437
|
qe,
|
|
438
438
|
{
|
|
@@ -452,13 +452,13 @@ const de = ({
|
|
|
452
452
|
brandName: a,
|
|
453
453
|
className: l = ""
|
|
454
454
|
}) => {
|
|
455
|
-
const u = X()?.config.isGlobal ?? !0, i = s ?? he, h = t ?? ge, _ = o ?? xe,
|
|
455
|
+
const u = X()?.config.isGlobal ?? !0, i = s ?? he, h = t ?? ge, _ = o ?? xe, r = u ? n("contactWhatsAppGlobal").replace(he, i) : n("contactWhatsAppDomestic").replace(ge, h), m = n("contactEmail").replace(xe, _);
|
|
456
456
|
return /* @__PURE__ */ e.jsx(
|
|
457
457
|
He,
|
|
458
458
|
{
|
|
459
459
|
title: n("contactTitle"),
|
|
460
460
|
brandName: a ?? n("contactBrandName"),
|
|
461
|
-
whatsAppLine:
|
|
461
|
+
whatsAppLine: r,
|
|
462
462
|
emailLine: m,
|
|
463
463
|
className: l
|
|
464
464
|
}
|
|
@@ -494,30 +494,30 @@ const de = ({
|
|
|
494
494
|
children: /* @__PURE__ */ e.jsx(We, { href: t, onClick: s, children: a })
|
|
495
495
|
}
|
|
496
496
|
);
|
|
497
|
-
}, Lt = "https://srm-cdn.a4b.io/yoda/1770362713543.svg",
|
|
497
|
+
}, Lt = "https://srm-cdn.a4b.io/yoda/1770362713543.svg", Tt = (n, s) => Ce[n]?.[s] ?? s, Ft = 112;
|
|
498
498
|
function M({
|
|
499
499
|
section: n,
|
|
500
500
|
children: s,
|
|
501
501
|
onImpression: t
|
|
502
502
|
}) {
|
|
503
503
|
const o = f(null), a = f(!1);
|
|
504
|
-
return
|
|
504
|
+
return k(() => {
|
|
505
505
|
const l = o.current;
|
|
506
506
|
if (!l) return;
|
|
507
|
-
const
|
|
507
|
+
const c = new IntersectionObserver(
|
|
508
508
|
([u]) => {
|
|
509
509
|
!u?.isIntersecting || a.current || (a.current = !0, t(n));
|
|
510
510
|
},
|
|
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 -${
|
|
514
|
+
rootMargin: `0px 0px -${Ft}px 0px`
|
|
515
515
|
}
|
|
516
516
|
);
|
|
517
|
-
return
|
|
517
|
+
return c.observe(l), () => c.disconnect();
|
|
518
518
|
}, [n, t]), /* @__PURE__ */ e.jsx("div", { ref: o, children: s });
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function Rt({ className: n }) {
|
|
521
521
|
const { view: s } = ce();
|
|
522
522
|
return s === "form" ? /* @__PURE__ */ e.jsx(De, {}) : /* @__PURE__ */ e.jsx(St, { className: n });
|
|
523
523
|
}
|
|
@@ -527,23 +527,23 @@ function St({ className: n }) {
|
|
|
527
527
|
setLocale: o,
|
|
528
528
|
config: a,
|
|
529
529
|
goToForm: l
|
|
530
|
-
} = ce(), [
|
|
530
|
+
} = ce(), [c, u] = I(!1), i = f(null), h = f(a.locale), _ = f(
|
|
531
531
|
s?.locale
|
|
532
532
|
);
|
|
533
|
-
|
|
533
|
+
k(() => {
|
|
534
534
|
a.locale && h.current !== a.locale && o(a.locale), h.current = a.locale;
|
|
535
|
-
}, [a.locale, o]),
|
|
535
|
+
}, [a.locale, o]), k(() => {
|
|
536
536
|
if (a.locale) return;
|
|
537
537
|
const p = s?.locale;
|
|
538
538
|
p && _.current !== p && o(p), _.current = p;
|
|
539
|
-
}, [s?.locale, a.locale, o]),
|
|
540
|
-
if (!
|
|
539
|
+
}, [s?.locale, a.locale, o]), k(() => {
|
|
540
|
+
if (!c) return;
|
|
541
541
|
const p = (b) => {
|
|
542
542
|
i.current && !i.current.contains(b.target) && u(!1);
|
|
543
543
|
};
|
|
544
544
|
return document.addEventListener("mousedown", p), () => document.removeEventListener("mousedown", p);
|
|
545
|
-
}, [
|
|
546
|
-
const
|
|
545
|
+
}, [c]);
|
|
546
|
+
const r = (p) => Tt(t, p), m = a.showLanguageSelector ?? !0, j = a.imageComponent ?? ae, N = m ? /* @__PURE__ */ e.jsxs("div", { className: Q.langDropdownWrap, ref: i, children: [
|
|
547
547
|
/* @__PURE__ */ e.jsxs(
|
|
548
548
|
"button",
|
|
549
549
|
{
|
|
@@ -552,10 +552,10 @@ function St({ className: n }) {
|
|
|
552
552
|
onClick: () => {
|
|
553
553
|
a.analytics?.trackLanguageClickedFe?.({ language: t }), u((p) => !p);
|
|
554
554
|
},
|
|
555
|
-
"aria-expanded":
|
|
555
|
+
"aria-expanded": c,
|
|
556
556
|
"aria-haspopup": "listbox",
|
|
557
557
|
id: "kundli-lang",
|
|
558
|
-
"aria-label":
|
|
558
|
+
"aria-label": r("language"),
|
|
559
559
|
children: [
|
|
560
560
|
/* @__PURE__ */ e.jsx(
|
|
561
561
|
j,
|
|
@@ -572,7 +572,7 @@ function St({ className: n }) {
|
|
|
572
572
|
]
|
|
573
573
|
}
|
|
574
574
|
),
|
|
575
|
-
|
|
575
|
+
c && /* @__PURE__ */ e.jsx(
|
|
576
576
|
"ul",
|
|
577
577
|
{
|
|
578
578
|
className: Q.langMenu,
|
|
@@ -596,7 +596,7 @@ function St({ className: n }) {
|
|
|
596
596
|
}
|
|
597
597
|
)
|
|
598
598
|
] }) : null, C = (p) => {
|
|
599
|
-
const b = p.currentTarget.innerText?.trim() ??
|
|
599
|
+
const b = p.currentTarget.innerText?.trim() ?? r("ctaButtonAfter");
|
|
600
600
|
a.analytics?.trackPrimaryCtaClickedFe?.({ ctaText: b }), l(), a.onCtaClick?.();
|
|
601
601
|
}, x = W(
|
|
602
602
|
(p) => {
|
|
@@ -611,9 +611,9 @@ function St({ className: n }) {
|
|
|
611
611
|
/* @__PURE__ */ e.jsx(
|
|
612
612
|
ve,
|
|
613
613
|
{
|
|
614
|
-
t:
|
|
614
|
+
t: r,
|
|
615
615
|
logoUrl: a.logoUrl,
|
|
616
|
-
languageSelector:
|
|
616
|
+
languageSelector: N
|
|
617
617
|
}
|
|
618
618
|
),
|
|
619
619
|
/* @__PURE__ */ e.jsxs("main", { className: Q.main, children: [
|
|
@@ -622,7 +622,7 @@ function St({ className: n }) {
|
|
|
622
622
|
{
|
|
623
623
|
section: "hero",
|
|
624
624
|
onImpression: x,
|
|
625
|
-
children: /* @__PURE__ */ e.jsx(ke, { t:
|
|
625
|
+
children: /* @__PURE__ */ e.jsx(ke, { t: r })
|
|
626
626
|
}
|
|
627
627
|
),
|
|
628
628
|
/* @__PURE__ */ e.jsx(
|
|
@@ -633,7 +633,7 @@ function St({ className: n }) {
|
|
|
633
633
|
children: /* @__PURE__ */ e.jsx(
|
|
634
634
|
Ne,
|
|
635
635
|
{
|
|
636
|
-
t:
|
|
636
|
+
t: r,
|
|
637
637
|
reportImageUrl: a.reportImageUrl,
|
|
638
638
|
reportImagePriority: a.reportImagePriority,
|
|
639
639
|
backgroundImagePriority: a.backgroundImagePriority,
|
|
@@ -650,7 +650,7 @@ function St({ className: n }) {
|
|
|
650
650
|
children: /* @__PURE__ */ e.jsx(
|
|
651
651
|
Pe,
|
|
652
652
|
{
|
|
653
|
-
t:
|
|
653
|
+
t: r,
|
|
654
654
|
logoUrl: a.universityLogoUrls?.find((p) => !!p)
|
|
655
655
|
}
|
|
656
656
|
)
|
|
@@ -661,7 +661,7 @@ function St({ className: n }) {
|
|
|
661
661
|
{
|
|
662
662
|
section: "three_steps_process",
|
|
663
663
|
onImpression: x,
|
|
664
|
-
children: /* @__PURE__ */ e.jsx(Ie, { t:
|
|
664
|
+
children: /* @__PURE__ */ e.jsx(Ie, { t: r, locale: t, isGlobal: a.isGlobal })
|
|
665
665
|
}
|
|
666
666
|
),
|
|
667
667
|
/* @__PURE__ */ e.jsx(
|
|
@@ -670,9 +670,9 @@ function St({ className: n }) {
|
|
|
670
670
|
section: "view_sample_report",
|
|
671
671
|
onImpression: x,
|
|
672
672
|
children: /* @__PURE__ */ e.jsx(
|
|
673
|
-
|
|
673
|
+
de,
|
|
674
674
|
{
|
|
675
|
-
t:
|
|
675
|
+
t: r,
|
|
676
676
|
pdfUrl: a.sampleReportHref,
|
|
677
677
|
onClick: a.onViewSampleReport,
|
|
678
678
|
analytics: a.analytics
|
|
@@ -685,7 +685,7 @@ function St({ className: n }) {
|
|
|
685
685
|
{
|
|
686
686
|
section: "what_youll_find",
|
|
687
687
|
onImpression: x,
|
|
688
|
-
children: /* @__PURE__ */ e.jsx(
|
|
688
|
+
children: /* @__PURE__ */ e.jsx(Te, { t: r })
|
|
689
689
|
}
|
|
690
690
|
),
|
|
691
691
|
/* @__PURE__ */ e.jsx(
|
|
@@ -693,7 +693,7 @@ function St({ className: n }) {
|
|
|
693
693
|
{
|
|
694
694
|
section: "why_us",
|
|
695
695
|
onImpression: x,
|
|
696
|
-
children: /* @__PURE__ */ e.jsx(
|
|
696
|
+
children: /* @__PURE__ */ e.jsx(Fe, { t: r })
|
|
697
697
|
}
|
|
698
698
|
),
|
|
699
699
|
/* @__PURE__ */ e.jsx(
|
|
@@ -702,9 +702,9 @@ function St({ className: n }) {
|
|
|
702
702
|
section: "feedback",
|
|
703
703
|
onImpression: x,
|
|
704
704
|
children: /* @__PURE__ */ e.jsx(
|
|
705
|
-
|
|
705
|
+
Re,
|
|
706
706
|
{
|
|
707
|
-
t:
|
|
707
|
+
t: r,
|
|
708
708
|
readMoreHref: a.readMoreReviewsHref,
|
|
709
709
|
onReadMore: a.analytics?.trackReadMoreReviewsClicked ? () => a.analytics.trackReadMoreReviewsClicked() : void 0
|
|
710
710
|
}
|
|
@@ -716,7 +716,7 @@ function St({ className: n }) {
|
|
|
716
716
|
{
|
|
717
717
|
section: "faq",
|
|
718
718
|
onImpression: x,
|
|
719
|
-
children: /* @__PURE__ */ e.jsx(Se, { t:
|
|
719
|
+
children: /* @__PURE__ */ e.jsx(Se, { t: r })
|
|
720
720
|
}
|
|
721
721
|
),
|
|
722
722
|
/* @__PURE__ */ e.jsx(
|
|
@@ -724,14 +724,14 @@ function St({ className: n }) {
|
|
|
724
724
|
{
|
|
725
725
|
section: "contact_us",
|
|
726
726
|
onImpression: x,
|
|
727
|
-
children: /* @__PURE__ */ e.jsx(Ee, { t:
|
|
727
|
+
children: /* @__PURE__ */ e.jsx(Ee, { t: r })
|
|
728
728
|
}
|
|
729
729
|
)
|
|
730
730
|
] }),
|
|
731
731
|
/* @__PURE__ */ e.jsx(
|
|
732
732
|
It,
|
|
733
733
|
{
|
|
734
|
-
t:
|
|
734
|
+
t: r,
|
|
735
735
|
ctaHref: a.ctaHref,
|
|
736
736
|
onCtaClick: a.ctaHref ? void 0 : C
|
|
737
737
|
}
|
|
@@ -745,22 +745,22 @@ const Et = ({
|
|
|
745
745
|
showSheet: o,
|
|
746
746
|
userId: a,
|
|
747
747
|
isGlobal: l,
|
|
748
|
-
atlasSearchLocalities:
|
|
748
|
+
atlasSearchLocalities: c,
|
|
749
749
|
logoUrl: u,
|
|
750
750
|
reportImageUrl: i,
|
|
751
751
|
universityLogoUrls: h,
|
|
752
752
|
sampleReportHref: _,
|
|
753
|
-
onViewSampleReport:
|
|
753
|
+
onViewSampleReport: r,
|
|
754
754
|
ctaHref: m,
|
|
755
755
|
onCtaClick: j,
|
|
756
|
-
readMoreReviewsHref:
|
|
756
|
+
readMoreReviewsHref: N,
|
|
757
757
|
onProceed: C,
|
|
758
758
|
onProceedGuidance: x,
|
|
759
759
|
proceedHref: p,
|
|
760
760
|
originalPriceLabel: b,
|
|
761
|
-
discountedPriceLabel:
|
|
761
|
+
discountedPriceLabel: R,
|
|
762
762
|
discountPillLabel: v,
|
|
763
|
-
analytics:
|
|
763
|
+
analytics: P,
|
|
764
764
|
onLocaleChange: A
|
|
765
765
|
}) => /* @__PURE__ */ e.jsx(
|
|
766
766
|
je,
|
|
@@ -770,24 +770,24 @@ const Et = ({
|
|
|
770
770
|
showSheet: o,
|
|
771
771
|
userId: a,
|
|
772
772
|
isGlobal: l,
|
|
773
|
-
atlasSearchLocalities:
|
|
773
|
+
atlasSearchLocalities: c,
|
|
774
774
|
logoUrl: u,
|
|
775
775
|
reportImageUrl: i,
|
|
776
776
|
universityLogoUrls: h,
|
|
777
777
|
sampleReportHref: _,
|
|
778
|
-
onViewSampleReport:
|
|
778
|
+
onViewSampleReport: r,
|
|
779
779
|
ctaHref: m,
|
|
780
780
|
onCtaClick: j,
|
|
781
|
-
readMoreReviewsHref:
|
|
781
|
+
readMoreReviewsHref: N,
|
|
782
782
|
onProceed: C,
|
|
783
783
|
onProceedGuidance: x,
|
|
784
784
|
proceedHref: p,
|
|
785
785
|
originalPriceLabel: b,
|
|
786
|
-
discountedPriceLabel:
|
|
786
|
+
discountedPriceLabel: R,
|
|
787
787
|
discountPillLabel: v,
|
|
788
|
-
analytics:
|
|
788
|
+
analytics: P,
|
|
789
789
|
onLocaleChange: A,
|
|
790
|
-
children: /* @__PURE__ */ e.jsx(
|
|
790
|
+
children: /* @__PURE__ */ e.jsx(Rt, { className: n })
|
|
791
791
|
}
|
|
792
792
|
), At = "_container_1b9qe_1", Dt = "_main_1b9qe_6", Ut = "_langDropdownWrap_1b9qe_12", $t = "_langTrigger_1b9qe_16", Ot = "_langIcon_1b9qe_28", Mt = "_langLabel_1b9qe_35", Kt = "_langMenu_1b9qe_40", Bt = "_langOption_1b9qe_46", Qt = "_inlineFormWrap_1b9qe_57", qt = "_inlineProceedFooter_1b9qe_74", K = {
|
|
793
793
|
container: At,
|
|
@@ -991,7 +991,7 @@ const Gt = 5e3, Wt = 84, zt = `
|
|
|
991
991
|
onChipClick: t
|
|
992
992
|
}) => {
|
|
993
993
|
const o = Math.ceil(n.length / 2), a = [n.slice(0, o), n.slice(o)];
|
|
994
|
-
return /* @__PURE__ */ e.jsx("div", { className: "overflow-x-auto pb-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", children: /* @__PURE__ */ e.jsx("div", { className: "inline-flex flex-col gap-2", children: a.map((l,
|
|
994
|
+
return /* @__PURE__ */ e.jsx("div", { className: "overflow-x-auto pb-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", children: /* @__PURE__ */ e.jsx("div", { className: "inline-flex flex-col gap-2", children: a.map((l, c) => /* @__PURE__ */ e.jsx("div", { className: "flex gap-2", children: l.map((u) => /* @__PURE__ */ e.jsx(
|
|
995
995
|
"button",
|
|
996
996
|
{
|
|
997
997
|
type: "button",
|
|
@@ -1000,7 +1000,7 @@ const Gt = 5e3, Wt = 84, zt = `
|
|
|
1000
1000
|
children: s(u)
|
|
1001
1001
|
},
|
|
1002
1002
|
u
|
|
1003
|
-
)) },
|
|
1003
|
+
)) }, c)) }) });
|
|
1004
1004
|
}, ns = ({
|
|
1005
1005
|
textareaRef: n,
|
|
1006
1006
|
value: s,
|
|
@@ -1008,7 +1008,7 @@ const Gt = 5e3, Wt = 84, zt = `
|
|
|
1008
1008
|
placeholder: o,
|
|
1009
1009
|
chipKeys: a,
|
|
1010
1010
|
t: l,
|
|
1011
|
-
onFocus:
|
|
1011
|
+
onFocus: c,
|
|
1012
1012
|
onClick: u,
|
|
1013
1013
|
onChange: i,
|
|
1014
1014
|
onChipClick: h,
|
|
@@ -1055,7 +1055,7 @@ const Gt = 5e3, Wt = 84, zt = `
|
|
|
1055
1055
|
style: { height: "100px" },
|
|
1056
1056
|
placeholder: o,
|
|
1057
1057
|
value: s,
|
|
1058
|
-
onFocus:
|
|
1058
|
+
onFocus: c,
|
|
1059
1059
|
onClick: u,
|
|
1060
1060
|
onChange: i
|
|
1061
1061
|
}
|
|
@@ -1216,26 +1216,26 @@ const Gt = 5e3, Wt = 84, zt = `
|
|
|
1216
1216
|
onSelectPlan: o,
|
|
1217
1217
|
plans: a,
|
|
1218
1218
|
onProceed: l,
|
|
1219
|
-
locale:
|
|
1219
|
+
locale: c = "en",
|
|
1220
1220
|
t: u,
|
|
1221
1221
|
analytics: i,
|
|
1222
1222
|
isGlobal: h = !0,
|
|
1223
1223
|
oneQuestionSampleHref: _
|
|
1224
1224
|
}) => {
|
|
1225
|
-
const
|
|
1225
|
+
const r = W((g) => (fe[c] ?? fe.en)[g] ?? u?.(g) ?? g, [c, u]), m = pe(() => a ?? Ht(h), [a, h]), j = t?.id || m.find((g) => g.badge)?.id || m[0]?.id || "", N = f(null), C = f(null), x = f(null), p = f(!1), [b, R] = I(""), [v, P] = I(!1), [A, q] = I("custom"), [H, J] = I(null), [z, Z] = I(!1), V = f(!1), y = f(null), L = pe(() => m.find((g) => g.id === j) ?? m[0], [m, j]), B = !!L?.supportsQuestion, T = !B || b.trim().length > 0, ie = W(() => {
|
|
1226
1226
|
const g = y.current;
|
|
1227
1227
|
g && (g.style.height = "auto", g.style.height = Math.max(100, Math.min(g.scrollHeight, Wt)) + "px");
|
|
1228
1228
|
}, []);
|
|
1229
|
-
|
|
1229
|
+
k(() => {
|
|
1230
1230
|
if (n) {
|
|
1231
1231
|
if (!t) {
|
|
1232
|
-
const g = m.find((
|
|
1232
|
+
const g = m.find((F) => F.badge) ?? m[0];
|
|
1233
1233
|
g && o(g);
|
|
1234
1234
|
}
|
|
1235
1235
|
p.current || (i?.trackPlanPageViewed?.(), p.current = !0);
|
|
1236
1236
|
} else
|
|
1237
1237
|
p.current = !1;
|
|
1238
|
-
}, [n, m, t, o, i]),
|
|
1238
|
+
}, [n, m, t, o, i]), k(() => {
|
|
1239
1239
|
if (!n) return;
|
|
1240
1240
|
const g = document.body.style.overflow;
|
|
1241
1241
|
return document.body.style.overflow = "hidden", () => {
|
|
@@ -1245,26 +1245,26 @@ const Gt = 5e3, Wt = 84, zt = `
|
|
|
1245
1245
|
const d = () => {
|
|
1246
1246
|
i?.trackPlanPageClosed?.(), s();
|
|
1247
1247
|
}, U = (g) => {
|
|
1248
|
-
const
|
|
1249
|
-
if (
|
|
1250
|
-
const le = ne.getBoundingClientRect().top -
|
|
1251
|
-
|
|
1248
|
+
const F = C.current, ne = x.current;
|
|
1249
|
+
if (F && ne) {
|
|
1250
|
+
const le = ne.getBoundingClientRect().top - F.getBoundingClientRect().top + F.scrollTop;
|
|
1251
|
+
F.scrollTo({ top: le, behavior: "smooth" });
|
|
1252
1252
|
}
|
|
1253
1253
|
V.current || (V.current = !0, i?.trackQuestionTextboxClicked?.({
|
|
1254
1254
|
entry_method: g,
|
|
1255
1255
|
textbox_empty: b.length === 0
|
|
1256
1256
|
}));
|
|
1257
1257
|
}, Y = (g) => {
|
|
1258
|
-
const
|
|
1259
|
-
A === "chip" &&
|
|
1260
|
-
}, ee = (g,
|
|
1261
|
-
const ne =
|
|
1258
|
+
const F = g.target.value.slice(0, Gt);
|
|
1259
|
+
A === "chip" && F !== r(_e[H ?? 0]) && q("chip_edited"), R(F), ie(), z && Z(!1);
|
|
1260
|
+
}, ee = (g, F) => {
|
|
1261
|
+
const ne = r(g), le = b.length > 0 && A !== "chip";
|
|
1262
1262
|
i?.trackPreSuggestedQuestionSelected?.({
|
|
1263
1263
|
question_text_loaded: ne,
|
|
1264
|
-
chip_index:
|
|
1264
|
+
chip_index: F,
|
|
1265
1265
|
previous_chip_index: H,
|
|
1266
1266
|
user_had_custom_text: le
|
|
1267
|
-
}),
|
|
1267
|
+
}), R(ne), q("chip"), J(F), V.current = !1, setTimeout(ie, 0);
|
|
1268
1268
|
}, ue = () => {
|
|
1269
1269
|
if (L) {
|
|
1270
1270
|
if (B && !b.trim()) {
|
|
@@ -1290,33 +1290,33 @@ const Gt = 5e3, Wt = 84, zt = `
|
|
|
1290
1290
|
className: "fixed inset-0 z-[1000] bg-black/55 flex items-stretch justify-center",
|
|
1291
1291
|
role: "dialog",
|
|
1292
1292
|
"aria-modal": "true",
|
|
1293
|
-
"aria-label":
|
|
1293
|
+
"aria-label": r("planSheetTitle"),
|
|
1294
1294
|
children: /* @__PURE__ */ e.jsxs(
|
|
1295
1295
|
"div",
|
|
1296
1296
|
{
|
|
1297
|
-
ref:
|
|
1297
|
+
ref: N,
|
|
1298
1298
|
className: "pt-3 w-full max-w-[480px] h-[100dvh] max-h-[100dvh] bg-white flex flex-col overflow-hidden",
|
|
1299
1299
|
style: { animation: "three-sku-slide-up 0.28s cubic-bezier(0.32, 0.72, 0, 1)" },
|
|
1300
1300
|
children: [
|
|
1301
|
-
/* @__PURE__ */ e.jsx(Vt, { title:
|
|
1301
|
+
/* @__PURE__ */ e.jsx(Vt, { title: r("planSheetTitle"), onClose: d }),
|
|
1302
1302
|
/* @__PURE__ */ e.jsxs("div", { className: "flex-1 overflow-y-auto px-4 pt-4 pb-4", ref: C, children: [
|
|
1303
|
-
/* @__PURE__ */ e.jsx("h3", { className: "m-0 mb-3 text-[16px] font-bold leading-snug text-[#CF6C09]", children:
|
|
1304
|
-
L && /* @__PURE__ */ e.jsx(Zt, { plan: L, t:
|
|
1303
|
+
/* @__PURE__ */ e.jsx("h3", { className: "m-0 mb-3 text-[16px] font-bold leading-snug text-[#CF6C09]", children: r(L?.title ?? "") }),
|
|
1304
|
+
L && /* @__PURE__ */ e.jsx(Zt, { plan: L, t: r }),
|
|
1305
1305
|
B && /* @__PURE__ */ e.jsx("div", { ref: x, children: /* @__PURE__ */ e.jsx(
|
|
1306
1306
|
ns,
|
|
1307
1307
|
{
|
|
1308
1308
|
textareaRef: y,
|
|
1309
1309
|
value: b,
|
|
1310
|
-
label:
|
|
1311
|
-
placeholder:
|
|
1310
|
+
label: r("planQuestionLabel"),
|
|
1311
|
+
placeholder: r("planQuestionPlaceholder"),
|
|
1312
1312
|
chipKeys: _e,
|
|
1313
|
-
t:
|
|
1313
|
+
t: r,
|
|
1314
1314
|
onFocus: () => U("keyboard_focus"),
|
|
1315
1315
|
onClick: () => U("tap"),
|
|
1316
1316
|
onChange: Y,
|
|
1317
1317
|
onChipClick: ee,
|
|
1318
1318
|
onViewSample: _ ? () => {
|
|
1319
|
-
i?.trackOneQuestionViewSampleReportClicked?.(),
|
|
1319
|
+
i?.trackOneQuestionViewSampleReportClicked?.(), P(!0);
|
|
1320
1320
|
} : void 0
|
|
1321
1321
|
}
|
|
1322
1322
|
) }),
|
|
@@ -1324,8 +1324,8 @@ const Gt = 5e3, Wt = 84, zt = `
|
|
|
1324
1324
|
gs,
|
|
1325
1325
|
{
|
|
1326
1326
|
astrologers: L.astrologers,
|
|
1327
|
-
heading:
|
|
1328
|
-
t:
|
|
1327
|
+
heading: r("planAstrologerHeading"),
|
|
1328
|
+
t: r
|
|
1329
1329
|
}
|
|
1330
1330
|
)
|
|
1331
1331
|
] }),
|
|
@@ -1340,7 +1340,7 @@ const Gt = 5e3, Wt = 84, zt = `
|
|
|
1340
1340
|
{
|
|
1341
1341
|
plans: m,
|
|
1342
1342
|
selectedId: j,
|
|
1343
|
-
t:
|
|
1343
|
+
t: r,
|
|
1344
1344
|
analytics: i,
|
|
1345
1345
|
onSelectPlan: o
|
|
1346
1346
|
}
|
|
@@ -1348,10 +1348,10 @@ const Gt = 5e3, Wt = 84, zt = `
|
|
|
1348
1348
|
/* @__PURE__ */ e.jsx(
|
|
1349
1349
|
fs,
|
|
1350
1350
|
{
|
|
1351
|
-
canProceed:
|
|
1352
|
-
label:
|
|
1351
|
+
canProceed: T,
|
|
1352
|
+
label: r("planProceedToPayment"),
|
|
1353
1353
|
showDisabledHint: z,
|
|
1354
|
-
hintText:
|
|
1354
|
+
hintText: r("planQuestionHint"),
|
|
1355
1355
|
onClick: ue
|
|
1356
1356
|
}
|
|
1357
1357
|
)
|
|
@@ -1364,19 +1364,35 @@ const Gt = 5e3, Wt = 84, zt = `
|
|
|
1364
1364
|
}
|
|
1365
1365
|
),
|
|
1366
1366
|
_ && /* @__PURE__ */ e.jsx(
|
|
1367
|
-
|
|
1367
|
+
Le,
|
|
1368
1368
|
{
|
|
1369
1369
|
isOpen: v,
|
|
1370
|
-
onClose: () =>
|
|
1370
|
+
onClose: () => P(!1),
|
|
1371
1371
|
title: "1 Question Sample Answer",
|
|
1372
1372
|
pdfUrl: _
|
|
1373
1373
|
}
|
|
1374
1374
|
)
|
|
1375
1375
|
] }) : null;
|
|
1376
|
-
}, bs =
|
|
1376
|
+
}, bs = ({
|
|
1377
|
+
kundliReportSampleHref: n,
|
|
1378
|
+
analytics: s,
|
|
1379
|
+
s: t
|
|
1380
|
+
}) => /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1381
|
+
/* @__PURE__ */ e.jsx("h3", { className: "mt-5 mb-3 text-center text-[18px] font-bold leading-[1.1] text-[#f75e22] max-[380px]:text-[16px]", children: t.sampleReportsTitle }),
|
|
1382
|
+
/* @__PURE__ */ e.jsx(
|
|
1383
|
+
de,
|
|
1384
|
+
{
|
|
1385
|
+
t: () => t.sampleLabelKundliReport.replace(`
|
|
1386
|
+
`, " "),
|
|
1387
|
+
pdfUrl: n,
|
|
1388
|
+
analytics: s,
|
|
1389
|
+
onClick: () => s?.trackKundliViewSampleImageClicked?.()
|
|
1390
|
+
}
|
|
1391
|
+
)
|
|
1392
|
+
] }), js = "https://srm-cdn.a4b.io/yoda/1773317492292.pdf", ys = "https://srm-cdn.a4b.io/yoda/1781248337750.pdf", be = {
|
|
1377
1393
|
en: {
|
|
1378
1394
|
sectionTitle: "Kundli Packages for you",
|
|
1379
|
-
sampleReportsTitle: "View Sample
|
|
1395
|
+
sampleReportsTitle: "View Sample Report",
|
|
1380
1396
|
onlyFor: "Only for",
|
|
1381
1397
|
uniqueFeatures: "Unique Features",
|
|
1382
1398
|
popularBadge: "Popular",
|
|
@@ -1429,99 +1445,43 @@ call`
|
|
|
1429
1445
|
ज्योतिषी कॉल`
|
|
1430
1446
|
]
|
|
1431
1447
|
}
|
|
1432
|
-
},
|
|
1433
|
-
"svg",
|
|
1434
|
-
{
|
|
1435
|
-
width: "20",
|
|
1436
|
-
height: "20",
|
|
1437
|
-
viewBox: "0 0 24 24",
|
|
1438
|
-
fill: "none",
|
|
1439
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1440
|
-
"aria-hidden": !0,
|
|
1441
|
-
children: /* @__PURE__ */ e.jsx(
|
|
1442
|
-
"path",
|
|
1443
|
-
{
|
|
1444
|
-
d: "M8 4L16 12L8 20",
|
|
1445
|
-
stroke: "white",
|
|
1446
|
-
strokeWidth: "4",
|
|
1447
|
-
strokeLinecap: "round",
|
|
1448
|
-
strokeLinejoin: "round"
|
|
1449
|
-
}
|
|
1450
|
-
)
|
|
1451
|
-
}
|
|
1452
|
-
), vs = ({
|
|
1453
|
-
kundliReportSampleHref: n,
|
|
1454
|
-
analytics: s,
|
|
1455
|
-
s: t
|
|
1456
|
-
}) => {
|
|
1457
|
-
const [o, a] = k(!1);
|
|
1458
|
-
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1459
|
-
/* @__PURE__ */ e.jsx("h3", { className: "mt-5 mb-3 text-center text-[18px] font-bold leading-[1.1] text-[#f75e22] max-[380px]:text-[16px]", children: t.sampleReportsTitle }),
|
|
1460
|
-
/* @__PURE__ */ e.jsx("div", { className: "flex flex-col gap-[10px]", children: /* @__PURE__ */ e.jsxs(
|
|
1461
|
-
"button",
|
|
1462
|
-
{
|
|
1463
|
-
type: "button",
|
|
1464
|
-
onClick: () => {
|
|
1465
|
-
s?.trackKundliViewSampleImageClicked?.(), a(!0);
|
|
1466
|
-
},
|
|
1467
|
-
className: "w-full justify-center items-center relative rounded-xl bg-[linear-gradient(180deg,#f97316_0%,#ea580c_100%)] p-5 pr-10 text-center text-[14px] font-semibold text-white shadow-[0_6px_14px_rgba(234,88,12,0.2)]",
|
|
1468
|
-
children: [
|
|
1469
|
-
t.sampleLabelKundliReport.split(`
|
|
1470
|
-
`).map((l, r) => /* @__PURE__ */ e.jsx("span", { className: r > 0 ? "block" : void 0, children: l }, r)),
|
|
1471
|
-
/* @__PURE__ */ e.jsx("span", { className: "pointer-events-none absolute right-3 top-1/2 -translate-y-1/2", "aria-hidden": !0, children: /* @__PURE__ */ e.jsx(ws, {}) })
|
|
1472
|
-
]
|
|
1473
|
-
}
|
|
1474
|
-
) }),
|
|
1475
|
-
/* @__PURE__ */ e.jsx(
|
|
1476
|
-
de,
|
|
1477
|
-
{
|
|
1478
|
-
isOpen: o,
|
|
1479
|
-
onClose: () => {
|
|
1480
|
-
s?.trackKundliViewSampleImageClosed?.(), a(!1);
|
|
1481
|
-
},
|
|
1482
|
-
title: t.sampleLabelKundliReport.replace(`
|
|
1483
|
-
`, " "),
|
|
1484
|
-
pdfUrl: n
|
|
1485
|
-
}
|
|
1486
|
-
)
|
|
1487
|
-
] });
|
|
1488
|
-
}, Cs = "https://srm-cdn.a4b.io/yoda/1770362713543.svg", ks = (n, s) => Ce[n]?.[s] ?? s, Ns = 112;
|
|
1448
|
+
}, ws = (n) => be[n] ?? be.en, vs = "https://srm-cdn.a4b.io/yoda/1770362713543.svg", Cs = (n, s) => Ce[n]?.[s] ?? s, ks = 112;
|
|
1489
1449
|
function D({
|
|
1490
1450
|
section: n,
|
|
1491
1451
|
children: s,
|
|
1492
1452
|
onImpression: t
|
|
1493
1453
|
}) {
|
|
1494
1454
|
const o = f(null), a = f(!1);
|
|
1495
|
-
return
|
|
1455
|
+
return k(() => {
|
|
1496
1456
|
const l = o.current;
|
|
1497
1457
|
if (!l) return;
|
|
1498
|
-
const
|
|
1458
|
+
const c = new IntersectionObserver(
|
|
1499
1459
|
([u]) => {
|
|
1500
1460
|
!u?.isIntersecting || a.current || (a.current = !0, t(n));
|
|
1501
1461
|
},
|
|
1502
1462
|
{
|
|
1503
1463
|
threshold: 0.1,
|
|
1504
1464
|
// Shrink bottom of viewport by CTA footer height so we only count content actually visible above the sticky footer
|
|
1505
|
-
rootMargin: `0px 0px -${
|
|
1465
|
+
rootMargin: `0px 0px -${ks}px 0px`
|
|
1506
1466
|
}
|
|
1507
1467
|
);
|
|
1508
|
-
return
|
|
1468
|
+
return c.observe(l), () => c.disconnect();
|
|
1509
1469
|
}, [n, t]), /* @__PURE__ */ e.jsx("div", { ref: o, children: s });
|
|
1510
1470
|
}
|
|
1511
|
-
function
|
|
1471
|
+
function Ns({
|
|
1512
1472
|
className: n,
|
|
1513
1473
|
showInlineForm: s = !1,
|
|
1514
1474
|
enableThreeSkuFlow: t = !1,
|
|
1515
|
-
kundliReportSampleHref: o =
|
|
1516
|
-
oneQuestionSampleHref: a =
|
|
1475
|
+
kundliReportSampleHref: o = js,
|
|
1476
|
+
oneQuestionSampleHref: a = ys
|
|
1517
1477
|
}) {
|
|
1518
1478
|
const l = ye(), {
|
|
1519
|
-
locale:
|
|
1479
|
+
locale: c,
|
|
1520
1480
|
setLocale: u,
|
|
1521
1481
|
config: i,
|
|
1522
1482
|
formValues: h,
|
|
1523
1483
|
setFormValues: _
|
|
1524
|
-
} = ce(), [
|
|
1484
|
+
} = ce(), [r, m] = I(!1), [j, N] = I(null), C = f(null), x = f(void 0), p = f(null), b = f(!1), R = W((d) => {
|
|
1525
1485
|
C.current = d, m(!0);
|
|
1526
1486
|
}, []), v = W(() => {
|
|
1527
1487
|
if (!C.current || !j) return;
|
|
@@ -1531,26 +1491,26 @@ function Ps({
|
|
|
1531
1491
|
...x.current !== void 0 ? { _question: x.current } : {}
|
|
1532
1492
|
};
|
|
1533
1493
|
x.current = void 0, j.id === $e && i.onProceedGuidance ? i.onProceedGuidance(d) : i.onProceed?.(d), m(!1), C.current = null;
|
|
1534
|
-
}, [j, i.onProceed, i.onProceedGuidance]), [
|
|
1494
|
+
}, [j, i.onProceed, i.onProceedGuidance]), [P, A] = I(!1), [q, H] = I(
|
|
1535
1495
|
i.isGlobal ?? !0 ? "+1" : "+91"
|
|
1536
1496
|
), J = f(null), z = f(null), Z = f(i.locale), V = f(
|
|
1537
1497
|
l?.locale
|
|
1538
1498
|
);
|
|
1539
|
-
|
|
1499
|
+
k(() => {
|
|
1540
1500
|
i.locale && Z.current !== i.locale && u(i.locale), Z.current = i.locale;
|
|
1541
|
-
}, [i.locale, u]),
|
|
1501
|
+
}, [i.locale, u]), k(() => {
|
|
1542
1502
|
if (i.locale) return;
|
|
1543
1503
|
const d = l?.locale;
|
|
1544
1504
|
d && V.current !== d && u(d), V.current = d;
|
|
1545
|
-
}, [l?.locale, i.locale, u]),
|
|
1505
|
+
}, [l?.locale, i.locale, u]), k(() => {
|
|
1546
1506
|
H(i.isGlobal ?? !0 ? "+1" : "+91");
|
|
1547
|
-
}, [i.isGlobal]),
|
|
1548
|
-
if (!
|
|
1507
|
+
}, [i.isGlobal]), k(() => {
|
|
1508
|
+
if (!P) return;
|
|
1549
1509
|
const d = (U) => {
|
|
1550
1510
|
z.current && !z.current.contains(U.target) && A(!1);
|
|
1551
1511
|
};
|
|
1552
1512
|
return document.addEventListener("mousedown", d), () => document.removeEventListener("mousedown", d);
|
|
1553
|
-
}, [
|
|
1513
|
+
}, [P]), k(() => {
|
|
1554
1514
|
if (!t) return;
|
|
1555
1515
|
const d = p.current;
|
|
1556
1516
|
if (!d) return;
|
|
@@ -1562,16 +1522,16 @@ function Ps({
|
|
|
1562
1522
|
);
|
|
1563
1523
|
return U.observe(d), () => U.disconnect();
|
|
1564
1524
|
}, [t, i.analytics]);
|
|
1565
|
-
const y = (d) =>
|
|
1525
|
+
const y = (d) => Cs(c, d), B = i.showLanguageSelector ?? !0 ? /* @__PURE__ */ e.jsxs("div", { className: K.langDropdownWrap, ref: z, children: [
|
|
1566
1526
|
/* @__PURE__ */ e.jsxs(
|
|
1567
1527
|
"button",
|
|
1568
1528
|
{
|
|
1569
1529
|
type: "button",
|
|
1570
1530
|
className: K.langTrigger,
|
|
1571
1531
|
onClick: () => {
|
|
1572
|
-
i.analytics?.trackLanguageClickedFe?.({ language:
|
|
1532
|
+
i.analytics?.trackLanguageClickedFe?.({ language: c }), A((d) => !d);
|
|
1573
1533
|
},
|
|
1574
|
-
"aria-expanded":
|
|
1534
|
+
"aria-expanded": P,
|
|
1575
1535
|
"aria-haspopup": "listbox",
|
|
1576
1536
|
id: "kundli-lang",
|
|
1577
1537
|
"aria-label": y("language"),
|
|
@@ -1579,7 +1539,7 @@ function Ps({
|
|
|
1579
1539
|
/* @__PURE__ */ e.jsx(
|
|
1580
1540
|
"img",
|
|
1581
1541
|
{
|
|
1582
|
-
src:
|
|
1542
|
+
src: vs,
|
|
1583
1543
|
alt: "",
|
|
1584
1544
|
className: K.langIcon,
|
|
1585
1545
|
width: 16,
|
|
@@ -1587,23 +1547,23 @@ function Ps({
|
|
|
1587
1547
|
"aria-hidden": !0
|
|
1588
1548
|
}
|
|
1589
1549
|
),
|
|
1590
|
-
/* @__PURE__ */ e.jsx("span", { className: K.langLabel, children: oe[
|
|
1550
|
+
/* @__PURE__ */ e.jsx("span", { className: K.langLabel, children: oe[c] })
|
|
1591
1551
|
]
|
|
1592
1552
|
}
|
|
1593
1553
|
),
|
|
1594
|
-
|
|
1554
|
+
P && /* @__PURE__ */ e.jsx(
|
|
1595
1555
|
"ul",
|
|
1596
1556
|
{
|
|
1597
1557
|
className: K.langMenu,
|
|
1598
1558
|
role: "listbox",
|
|
1599
1559
|
"aria-labelledby": "kundli-lang",
|
|
1600
|
-
"aria-activedescendant": `kundli-lang-option-${
|
|
1560
|
+
"aria-activedescendant": `kundli-lang-option-${c}`,
|
|
1601
1561
|
children: we.map((d) => /* @__PURE__ */ e.jsx(
|
|
1602
1562
|
"li",
|
|
1603
1563
|
{
|
|
1604
1564
|
id: `kundli-lang-option-${d}`,
|
|
1605
1565
|
role: "option",
|
|
1606
|
-
"aria-selected": d ===
|
|
1566
|
+
"aria-selected": d === c,
|
|
1607
1567
|
className: K.langOption,
|
|
1608
1568
|
onClick: () => {
|
|
1609
1569
|
i.analytics?.trackLanguageChangedFe?.({ newLanguage: d }), u(d), A(!1);
|
|
@@ -1614,7 +1574,7 @@ function Ps({
|
|
|
1614
1574
|
))
|
|
1615
1575
|
}
|
|
1616
1576
|
)
|
|
1617
|
-
] }) : null,
|
|
1577
|
+
] }) : null, T = W(
|
|
1618
1578
|
(d) => {
|
|
1619
1579
|
i.analytics?.trackDetailedKundliReportImpressionFe?.({
|
|
1620
1580
|
section: d,
|
|
@@ -1655,7 +1615,7 @@ function Ps({
|
|
|
1655
1615
|
D,
|
|
1656
1616
|
{
|
|
1657
1617
|
section: "hero",
|
|
1658
|
-
onImpression:
|
|
1618
|
+
onImpression: T,
|
|
1659
1619
|
children: /* @__PURE__ */ e.jsx(ke, { t: y })
|
|
1660
1620
|
}
|
|
1661
1621
|
),
|
|
@@ -1663,7 +1623,7 @@ function Ps({
|
|
|
1663
1623
|
D,
|
|
1664
1624
|
{
|
|
1665
1625
|
section: "premium_report_overview",
|
|
1666
|
-
onImpression:
|
|
1626
|
+
onImpression: T,
|
|
1667
1627
|
children: /* @__PURE__ */ e.jsx(
|
|
1668
1628
|
Ne,
|
|
1669
1629
|
{
|
|
@@ -1678,7 +1638,7 @@ function Ps({
|
|
|
1678
1638
|
D,
|
|
1679
1639
|
{
|
|
1680
1640
|
section: "university_certification",
|
|
1681
|
-
onImpression:
|
|
1641
|
+
onImpression: T,
|
|
1682
1642
|
children: /* @__PURE__ */ e.jsx(
|
|
1683
1643
|
Pe,
|
|
1684
1644
|
{
|
|
@@ -1692,24 +1652,24 @@ function Ps({
|
|
|
1692
1652
|
D,
|
|
1693
1653
|
{
|
|
1694
1654
|
section: "three_steps_process",
|
|
1695
|
-
onImpression:
|
|
1696
|
-
children: /* @__PURE__ */ e.jsx(Ie, { t: y, locale:
|
|
1655
|
+
onImpression: T,
|
|
1656
|
+
children: /* @__PURE__ */ e.jsx(Ie, { t: y, locale: c, isGlobal: i.isGlobal })
|
|
1697
1657
|
}
|
|
1698
1658
|
),
|
|
1699
1659
|
/* @__PURE__ */ e.jsx(
|
|
1700
1660
|
D,
|
|
1701
1661
|
{
|
|
1702
1662
|
section: "view_sample_report",
|
|
1703
|
-
onImpression:
|
|
1663
|
+
onImpression: T,
|
|
1704
1664
|
children: t ? /* @__PURE__ */ e.jsx("section", { className: "bg-white px-3", children: /* @__PURE__ */ e.jsx(
|
|
1705
|
-
|
|
1665
|
+
bs,
|
|
1706
1666
|
{
|
|
1707
1667
|
kundliReportSampleHref: o,
|
|
1708
1668
|
analytics: i.analytics,
|
|
1709
|
-
s:
|
|
1669
|
+
s: ws(c)
|
|
1710
1670
|
}
|
|
1711
1671
|
) }) : /* @__PURE__ */ e.jsx(
|
|
1712
|
-
|
|
1672
|
+
de,
|
|
1713
1673
|
{
|
|
1714
1674
|
t: y,
|
|
1715
1675
|
pdfUrl: i.sampleReportHref,
|
|
@@ -1723,7 +1683,7 @@ function Ps({
|
|
|
1723
1683
|
D,
|
|
1724
1684
|
{
|
|
1725
1685
|
section: "inline_form",
|
|
1726
|
-
onImpression:
|
|
1686
|
+
onImpression: T,
|
|
1727
1687
|
children: /* @__PURE__ */ e.jsxs("div", { className: K.inlineFormWrap, ref: J, children: [
|
|
1728
1688
|
/* @__PURE__ */ e.jsx(Oe, { t: y, align: "center" }),
|
|
1729
1689
|
/* @__PURE__ */ e.jsx(
|
|
@@ -1754,9 +1714,9 @@ function Ps({
|
|
|
1754
1714
|
analytics: i.analytics,
|
|
1755
1715
|
className: K.inlineProceedFooter,
|
|
1756
1716
|
onProceedGuidance: i.onProceedGuidance,
|
|
1757
|
-
showPlanSheet:
|
|
1717
|
+
showPlanSheet: R,
|
|
1758
1718
|
confirmPlan: v,
|
|
1759
|
-
planSheetOpen:
|
|
1719
|
+
planSheetOpen: r,
|
|
1760
1720
|
selectedPlan: j
|
|
1761
1721
|
}
|
|
1762
1722
|
)
|
|
@@ -1767,25 +1727,25 @@ function Ps({
|
|
|
1767
1727
|
D,
|
|
1768
1728
|
{
|
|
1769
1729
|
section: "what_youll_find",
|
|
1770
|
-
onImpression:
|
|
1771
|
-
children: /* @__PURE__ */ e.jsx(
|
|
1730
|
+
onImpression: T,
|
|
1731
|
+
children: /* @__PURE__ */ e.jsx(Te, { t: y })
|
|
1772
1732
|
}
|
|
1773
1733
|
),
|
|
1774
1734
|
/* @__PURE__ */ e.jsx(
|
|
1775
1735
|
D,
|
|
1776
1736
|
{
|
|
1777
1737
|
section: "why_us",
|
|
1778
|
-
onImpression:
|
|
1779
|
-
children: /* @__PURE__ */ e.jsx(
|
|
1738
|
+
onImpression: T,
|
|
1739
|
+
children: /* @__PURE__ */ e.jsx(Fe, { t: y })
|
|
1780
1740
|
}
|
|
1781
1741
|
),
|
|
1782
1742
|
/* @__PURE__ */ e.jsx(
|
|
1783
1743
|
D,
|
|
1784
1744
|
{
|
|
1785
1745
|
section: "feedback",
|
|
1786
|
-
onImpression:
|
|
1746
|
+
onImpression: T,
|
|
1787
1747
|
children: /* @__PURE__ */ e.jsx(
|
|
1788
|
-
|
|
1748
|
+
Re,
|
|
1789
1749
|
{
|
|
1790
1750
|
t: y,
|
|
1791
1751
|
readMoreHref: i.readMoreReviewsHref,
|
|
@@ -1798,7 +1758,7 @@ function Ps({
|
|
|
1798
1758
|
D,
|
|
1799
1759
|
{
|
|
1800
1760
|
section: "faq",
|
|
1801
|
-
onImpression:
|
|
1761
|
+
onImpression: T,
|
|
1802
1762
|
children: /* @__PURE__ */ e.jsx(Se, { t: y })
|
|
1803
1763
|
}
|
|
1804
1764
|
),
|
|
@@ -1806,7 +1766,7 @@ function Ps({
|
|
|
1806
1766
|
D,
|
|
1807
1767
|
{
|
|
1808
1768
|
section: "contact_us",
|
|
1809
|
-
onImpression:
|
|
1769
|
+
onImpression: T,
|
|
1810
1770
|
children: /* @__PURE__ */ e.jsx(Ee, { t: y })
|
|
1811
1771
|
}
|
|
1812
1772
|
)
|
|
@@ -1814,12 +1774,12 @@ function Ps({
|
|
|
1814
1774
|
t ? /* @__PURE__ */ e.jsx(
|
|
1815
1775
|
_s,
|
|
1816
1776
|
{
|
|
1817
|
-
isOpen:
|
|
1777
|
+
isOpen: r,
|
|
1818
1778
|
onClose: () => m(!1),
|
|
1819
1779
|
selectedPlan: j,
|
|
1820
|
-
onSelectPlan: (d) =>
|
|
1780
|
+
onSelectPlan: (d) => N(d),
|
|
1821
1781
|
isGlobal: i.isGlobal,
|
|
1822
|
-
locale:
|
|
1782
|
+
locale: c,
|
|
1823
1783
|
onProceed: (d, U) => {
|
|
1824
1784
|
x.current = U, v();
|
|
1825
1785
|
},
|
|
@@ -1830,10 +1790,10 @@ function Ps({
|
|
|
1830
1790
|
) : /* @__PURE__ */ e.jsx(
|
|
1831
1791
|
Be,
|
|
1832
1792
|
{
|
|
1833
|
-
isOpen:
|
|
1793
|
+
isOpen: r,
|
|
1834
1794
|
onClose: () => m(!1),
|
|
1835
1795
|
selectedPlan: j,
|
|
1836
|
-
onSelectPlan: (d) =>
|
|
1796
|
+
onSelectPlan: (d) => N(d),
|
|
1837
1797
|
onProceed: () => {
|
|
1838
1798
|
v();
|
|
1839
1799
|
},
|
|
@@ -1843,29 +1803,29 @@ function Ps({
|
|
|
1843
1803
|
)
|
|
1844
1804
|
] });
|
|
1845
1805
|
}
|
|
1846
|
-
const
|
|
1806
|
+
const Ps = ({
|
|
1847
1807
|
className: n = "",
|
|
1848
1808
|
locale: s,
|
|
1849
1809
|
showLanguageSelector: t = !0,
|
|
1850
1810
|
showSheet: o,
|
|
1851
1811
|
userId: a,
|
|
1852
1812
|
isGlobal: l,
|
|
1853
|
-
atlasSearchLocalities:
|
|
1813
|
+
atlasSearchLocalities: c,
|
|
1854
1814
|
enableThreeSkuFlow: u = !1,
|
|
1855
1815
|
kundliReportSampleHref: i,
|
|
1856
1816
|
oneQuestionSampleHref: h,
|
|
1857
1817
|
logoUrl: _,
|
|
1858
|
-
reportImageUrl:
|
|
1818
|
+
reportImageUrl: r,
|
|
1859
1819
|
universityLogoUrls: m,
|
|
1860
1820
|
sampleReportHref: j,
|
|
1861
|
-
onViewSampleReport:
|
|
1821
|
+
onViewSampleReport: N,
|
|
1862
1822
|
ctaHref: C,
|
|
1863
1823
|
onCtaClick: x,
|
|
1864
1824
|
readMoreReviewsHref: p,
|
|
1865
1825
|
onProceed: b,
|
|
1866
|
-
proceedHref:
|
|
1826
|
+
proceedHref: R,
|
|
1867
1827
|
originalPriceLabel: v,
|
|
1868
|
-
discountedPriceLabel:
|
|
1828
|
+
discountedPriceLabel: P,
|
|
1869
1829
|
discountPillLabel: A,
|
|
1870
1830
|
analytics: q,
|
|
1871
1831
|
onProceedGuidance: H,
|
|
@@ -1879,25 +1839,25 @@ const Is = ({
|
|
|
1879
1839
|
userId: a,
|
|
1880
1840
|
isGlobal: l,
|
|
1881
1841
|
variant: "v1",
|
|
1882
|
-
atlasSearchLocalities:
|
|
1842
|
+
atlasSearchLocalities: c,
|
|
1883
1843
|
logoUrl: _,
|
|
1884
|
-
reportImageUrl:
|
|
1844
|
+
reportImageUrl: r,
|
|
1885
1845
|
universityLogoUrls: m,
|
|
1886
1846
|
sampleReportHref: j,
|
|
1887
|
-
onViewSampleReport:
|
|
1847
|
+
onViewSampleReport: N,
|
|
1888
1848
|
ctaHref: C,
|
|
1889
1849
|
onCtaClick: x,
|
|
1890
1850
|
readMoreReviewsHref: p,
|
|
1891
1851
|
onProceed: b,
|
|
1892
1852
|
onProceedGuidance: H,
|
|
1893
|
-
proceedHref:
|
|
1853
|
+
proceedHref: R,
|
|
1894
1854
|
originalPriceLabel: v,
|
|
1895
|
-
discountedPriceLabel:
|
|
1855
|
+
discountedPriceLabel: P,
|
|
1896
1856
|
discountPillLabel: A,
|
|
1897
1857
|
analytics: q,
|
|
1898
1858
|
onLocaleChange: J,
|
|
1899
1859
|
children: /* @__PURE__ */ e.jsx(
|
|
1900
|
-
|
|
1860
|
+
Ns,
|
|
1901
1861
|
{
|
|
1902
1862
|
className: n,
|
|
1903
1863
|
showInlineForm: !0,
|
|
@@ -1909,13 +1869,13 @@ const Is = ({
|
|
|
1909
1869
|
}
|
|
1910
1870
|
), Fs = ({ variant: n, ...s }) => {
|
|
1911
1871
|
const t = typeof window < "u" ? new URLSearchParams(window.location.search).get("variant") : null;
|
|
1912
|
-
return (n ?? (t === "v1" ? "v1" : void 0)) === "v1" ? /* @__PURE__ */ e.jsx(
|
|
1913
|
-
},
|
|
1872
|
+
return (n ?? (t === "v1" ? "v1" : void 0)) === "v1" ? /* @__PURE__ */ e.jsx(Ps, { ...s }) : /* @__PURE__ */ e.jsx(Et, { ...s });
|
|
1873
|
+
}, Rs = "[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}";
|
|
1914
1874
|
export {
|
|
1915
|
-
|
|
1875
|
+
Rs as K,
|
|
1916
1876
|
kn as P,
|
|
1917
1877
|
Fs as a,
|
|
1918
1878
|
Et as b,
|
|
1919
|
-
|
|
1879
|
+
Ps as c
|
|
1920
1880
|
};
|
|
1921
|
-
//# sourceMappingURL=criticalCss-
|
|
1881
|
+
//# sourceMappingURL=criticalCss-66i_WtMP.js.map
|