@srimandir/kundli-generator 3.0.77 → 3.0.78

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,788 +0,0 @@
1
- import { k as e, h as T, D as $, d as W, j as G, c as H, u as q, L as K, S as z, l as Y, t as V } from "./analytics-Du6zZXW9.js";
2
- import { useRef as L, useState as R, useEffect as v, useCallback as Q } from "react";
3
- import { UserReviewsSection as J, FAQAccordion as X, ContactUsSection as Z, FooterShell as ee, FooterCTAButton as se, CircularMarquee as te, footerShellStyles as I } from "@srimandir/astrology-common";
4
- const ne = "_container_nm3gb_1", ae = "_main_nm3gb_6", ie = "_langDropdownWrap_nm3gb_12", oe = "_langTrigger_nm3gb_16", le = "_langIcon_nm3gb_28", ce = "_langLabel_nm3gb_35", re = "_langMenu_nm3gb_40", de = "_langOption_nm3gb_46", N = {
5
- container: ne,
6
- main: ae,
7
- langDropdownWrap: ie,
8
- langTrigger: oe,
9
- langIcon: le,
10
- langLabel: ce,
11
- langMenu: re,
12
- langOption: de
13
- }, me = "_hero_1vvjv_1", he = "_title_1vvjv_5", pe = "_subtitle_1vvjv_10", ge = "_topicTags_1vvjv_23", _e = "_tag_1vvjv_27", E = {
14
- hero: me,
15
- title: he,
16
- subtitle: pe,
17
- topicTags: ge,
18
- tag: _e
19
- }, ue = [
20
- "topicMarriage",
21
- "topicRelationship",
22
- "topicBusiness",
23
- "topicHealth",
24
- "topicCareer",
25
- "topicEducation",
26
- "topicMoney"
27
- ], xe = ({ t: s, className: a = "" }) => /* @__PURE__ */ e.jsxs("section", { className: `${E.hero} ${a}`, "aria-labelledby": "hero-title", children: [
28
- /* @__PURE__ */ e.jsx("h1", { id: "hero-title", className: E.title, children: s("heroTitle") }),
29
- /* @__PURE__ */ e.jsx("p", { className: E.subtitle, children: s("heroSubtitle") }),
30
- /* @__PURE__ */ e.jsx("div", { className: E.topicTags, role: "list", children: ue.map((n) => /* @__PURE__ */ e.jsx("span", { className: E.tag, role: "listitem", children: s(n) }, n)) })
31
- ] }), fe = "_section_1sbjm_1", be = "_backgroundLayer_1sbjm_9", je = "_backgroundImg_1sbjm_16", ye = "_inner_1sbjm_23", Ne = "_content_1sbjm_29", we = "_headline_1sbjm_33", ke = "_headlineLine_1sbjm_38", Ie = "_headlinePill_1sbjm_43", ve = "_headlinePlain_1sbjm_58", Ce = "_featureList_1sbjm_69", Le = "_featureItem_1sbjm_76", Te = "_featureIcon_1sbjm_81", Pe = "_reportImage_1sbjm_88", Se = "_reportImg_1sbjm_98", m = {
32
- section: fe,
33
- backgroundLayer: be,
34
- backgroundImg: je,
35
- inner: ye,
36
- content: Ne,
37
- headline: we,
38
- headlineLine: ke,
39
- headlinePill: Ie,
40
- headlinePlain: ve,
41
- featureList: Ce,
42
- featureItem: Le,
43
- featureIcon: Te,
44
- reportImage: Pe,
45
- reportImg: Se
46
- }, Ee = "https://srm-cdn.a4b.io/yoda/1770363846052.svg", De = "https://srm-cdn.a4b.io/yoda/1772696426944.webp", Re = [
47
- "premiumFeature1",
48
- "premiumFeature2",
49
- "premiumFeature3",
50
- "premiumFeature4"
51
- ], $e = "https://srm-cdn.a4b.io/yoda/1772696452070.webp", Ae = ({
52
- t: s,
53
- reportImageUrl: a = $e,
54
- reportImagePriority: n,
55
- backgroundImagePriority: i = !1,
56
- analytics: t,
57
- className: r = ""
58
- }) => {
59
- const d = T()?.config.imageComponent ?? $, p = () => {
60
- t?.trackBannerClicked?.();
61
- };
62
- return /* @__PURE__ */ e.jsxs(
63
- "section",
64
- {
65
- className: `${m.section} ${r}`,
66
- "aria-labelledby": "premium-headline",
67
- role: "button",
68
- tabIndex: 0,
69
- onClick: p,
70
- "data-hero": !0,
71
- children: [
72
- /* @__PURE__ */ e.jsx("div", { className: m.backgroundLayer, "aria-hidden": !0, "data-background-layer": !0, children: /* @__PURE__ */ e.jsx(
73
- d,
74
- {
75
- src: De,
76
- alt: "",
77
- className: m.backgroundImg,
78
- width: 412,
79
- height: 215,
80
- sizes: "(max-width: 768px) 412px, 412px",
81
- loading: "eager",
82
- priority: i,
83
- fetchPriority: "high"
84
- }
85
- ) }),
86
- /* @__PURE__ */ e.jsxs("div", { className: m.inner, children: [
87
- /* @__PURE__ */ e.jsxs("div", { className: m.content, children: [
88
- /* @__PURE__ */ e.jsxs("h2", { id: "premium-headline", className: m.headline, children: [
89
- /* @__PURE__ */ e.jsxs("span", { className: m.headlineLine, children: [
90
- /* @__PURE__ */ e.jsx("span", { className: m.headlinePill, children: s("premiumHeadlinePill1") }),
91
- /* @__PURE__ */ e.jsx("span", { className: m.headlinePlain, children: s("premiumHeadlinePlain1") })
92
- ] }),
93
- /* @__PURE__ */ e.jsxs("span", { className: m.headlineLine, children: [
94
- /* @__PURE__ */ e.jsx("span", { className: m.headlinePlain, children: s("premiumHeadlinePlain2") }),
95
- /* @__PURE__ */ e.jsx("span", { className: m.headlinePill, children: s("premiumHeadlinePill2") })
96
- ] })
97
- ] }),
98
- /* @__PURE__ */ e.jsx("ul", { className: m.featureList, children: Re.map((h) => /* @__PURE__ */ e.jsxs("li", { className: m.featureItem, children: [
99
- /* @__PURE__ */ e.jsx(
100
- d,
101
- {
102
- src: Ee,
103
- alt: "",
104
- className: m.featureIcon,
105
- width: 16,
106
- height: 16,
107
- loading: "lazy"
108
- }
109
- ),
110
- s(h)
111
- ] }, h)) })
112
- ] }),
113
- /* @__PURE__ */ e.jsx("div", { className: m.reportImage, children: /* @__PURE__ */ e.jsx(
114
- d,
115
- {
116
- src: a,
117
- alt: "",
118
- className: m.reportImg,
119
- width: 120,
120
- height: 160,
121
- priority: n,
122
- fetchPriority: n ? "high" : void 0,
123
- loading: n ? "eager" : "lazy",
124
- sizes: "120px"
125
- }
126
- ) })
127
- ] })
128
- ]
129
- }
130
- );
131
- }, Fe = "_section_1kxsy_1", Ke = "_heading_1kxsy_6", Ue = "_logoImg_1kxsy_10", A = {
132
- section: Fe,
133
- heading: Ke,
134
- logoImg: Ue
135
- }, Oe = "https://srm-cdn.a4b.io/yoda/1772696467302.webp", Me = ({
136
- t: s,
137
- logoUrl: a = Oe,
138
- className: n = ""
139
- }) => {
140
- const t = T()?.config.imageComponent ?? $;
141
- return /* @__PURE__ */ e.jsxs("section", { className: `${A.section} ${n}`, "aria-labelledby": "certified-heading", children: [
142
- /* @__PURE__ */ e.jsx("h2", { id: "certified-heading", className: A.heading, children: s("certifiedBy") }),
143
- /* @__PURE__ */ e.jsx(
144
- t,
145
- {
146
- src: a,
147
- alt: "University Certification",
148
- className: A.logoImg,
149
- width: 380,
150
- height: 70,
151
- loading: "lazy"
152
- }
153
- )
154
- ] });
155
- }, Be = "_section_1d9aa_1", Ge = "_heading_1d9aa_6", We = "_subtitle_1d9aa_11", He = "_stepList_1d9aa_16", qe = "_stepItem_1d9aa_20", ze = "_stepNumber_1d9aa_24", Ye = "_stepText_1d9aa_30", Ve = "_step3Days_1d9aa_35", _ = {
156
- section: Be,
157
- heading: Ge,
158
- subtitle: We,
159
- stepList: He,
160
- stepItem: qe,
161
- stepNumber: ze,
162
- stepText: Ye,
163
- step3Days: Ve
164
- }, Qe = ["step1", "step2"], Je = ({
165
- t: s,
166
- locale: a = "en",
167
- isGlobal: n = !0,
168
- className: i = ""
169
- }) => {
170
- const t = n ? "step3IntroGlobal" : "step3IntroDomestic";
171
- return /* @__PURE__ */ e.jsxs(
172
- "section",
173
- {
174
- className: `${_.section} ${i}`,
175
- "aria-labelledby": "steps-heading",
176
- children: [
177
- /* @__PURE__ */ e.jsx("p", { className: _.heading, children: s("yourThreeSteps") }),
178
- /* @__PURE__ */ e.jsx("h2", { id: "steps-heading", className: _.subtitle, children: s("threeStepsSubtitle") }),
179
- /* @__PURE__ */ e.jsxs("ol", { className: _.stepList, children: [
180
- Qe.map((r, c) => /* @__PURE__ */ e.jsxs("li", { className: _.stepItem, children: [
181
- /* @__PURE__ */ e.jsx("span", { className: _.stepNumber, "aria-hidden": !0, children: c + 1 }),
182
- /* @__PURE__ */ e.jsx("span", { className: _.stepText, children: s(r) })
183
- ] }, r)),
184
- /* @__PURE__ */ e.jsxs("li", { className: _.stepItem, children: [
185
- /* @__PURE__ */ e.jsx("span", { className: _.stepNumber, "aria-hidden": !0, children: "3" }),
186
- /* @__PURE__ */ e.jsxs("span", { className: _.stepText, children: [
187
- s(t),
188
- /* @__PURE__ */ e.jsx("br", {}),
189
- a === "en" ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
190
- "in ",
191
- /* @__PURE__ */ e.jsx("strong", { className: _.step3Days, children: s("step3Days") })
192
- ] }) : /* @__PURE__ */ e.jsx("strong", { className: _.step3Days, children: s("step3Days") })
193
- ] })
194
- ] })
195
- ] })
196
- ]
197
- }
198
- );
199
- }, Xe = "_section_1jea1_1", Ze = "_button_1jea1_7", U = {
200
- section: Xe,
201
- button: Ze
202
- }, es = "_backdrop_pekod_1", ss = "_modal_pekod_21", ts = "_header_pekod_40", ns = "_title_pekod_49", as = "_closeBtn_pekod_56", is = "_content_pekod_76", os = "_pdfFrame_pekod_84", ls = "_pdfPages_pekod_92", cs = "_pdfError_pekod_97", rs = "_openInNewTab_pekod_123", f = {
203
- backdrop: es,
204
- modal: ss,
205
- header: ts,
206
- title: ns,
207
- closeBtn: as,
208
- content: is,
209
- pdfFrame: os,
210
- pdfPages: ls,
211
- pdfError: cs,
212
- openInNewTab: rs
213
- };
214
- function ds(s) {
215
- typeof s < "u" && s.GlobalWorkerOptions && (s.GlobalWorkerOptions.workerSrc = `https://unpkg.com/pdfjs-dist@${s.version}/build/pdf.worker.min.js`);
216
- }
217
- const ms = ({
218
- isOpen: s,
219
- onClose: a,
220
- title: n,
221
- pdfUrl: i
222
- }) => {
223
- const t = L(null), [r, c] = R(!0), [d, p] = R(null), [h, x] = R(null);
224
- return v(() => {
225
- if (!s) return;
226
- const l = (u) => {
227
- u.key === "Escape" && a();
228
- };
229
- return document.addEventListener("keydown", l), document.body.style.overflow = "hidden", () => {
230
- document.removeEventListener("keydown", l), document.body.style.overflow = "";
231
- };
232
- }, [s, a]), v(() => {
233
- s && import("pdfjs-dist").then((l) => {
234
- x(l);
235
- }).catch((l) => {
236
- p("Failed to load PDF viewer"), c(!1);
237
- });
238
- }, [s]), v(() => {
239
- if (!s || !i || !t.current || !h) return;
240
- c(!0), p(null), t.current.innerHTML = "", (async () => {
241
- try {
242
- ds(h);
243
- const C = await h.getDocument({ url: i }).promise, w = t.current;
244
- if (!w) return;
245
- const P = w.clientWidth || 600, g = Math.min(P / 612, 2);
246
- for (let o = 1; o <= C.numPages; o++) {
247
- const y = await C.getPage(o), S = y.getViewport({ scale: g }), k = document.createElement("canvas");
248
- k.height = S.height, k.width = S.width, k.style.display = "block", k.style.margin = "0 auto 1rem", k.style.maxWidth = "100%";
249
- const F = k.getContext("2d");
250
- F && await y.render({ canvasContext: F, viewport: S }).promise, w.appendChild(k);
251
- }
252
- } catch (u) {
253
- p(u instanceof Error ? u.message : "Failed to load PDF");
254
- } finally {
255
- c(!1);
256
- }
257
- })();
258
- }, [s, i, h]), s ? /* @__PURE__ */ e.jsx(
259
- "div",
260
- {
261
- className: f.backdrop,
262
- onClick: a,
263
- role: "dialog",
264
- "aria-modal": "true",
265
- "aria-labelledby": "sample-report-modal-title",
266
- children: /* @__PURE__ */ e.jsxs(
267
- "div",
268
- {
269
- className: f.modal,
270
- onClick: (l) => l.stopPropagation(),
271
- children: [
272
- /* @__PURE__ */ e.jsxs("div", { className: f.header, children: [
273
- /* @__PURE__ */ e.jsx("h2", { id: "sample-report-modal-title", className: f.title, children: n }),
274
- /* @__PURE__ */ e.jsx(
275
- "button",
276
- {
277
- type: "button",
278
- className: f.closeBtn,
279
- onClick: a,
280
- "aria-label": "Close",
281
- children: "×"
282
- }
283
- )
284
- ] }),
285
- /* @__PURE__ */ e.jsxs("div", { className: f.content, children: [
286
- /* @__PURE__ */ e.jsxs("div", { className: f.pdfFrame, children: [
287
- d && /* @__PURE__ */ e.jsxs("div", { className: f.pdfError, children: [
288
- /* @__PURE__ */ e.jsx("span", { children: d }),
289
- /* @__PURE__ */ e.jsx("a", { href: i, target: "_blank", rel: "noopener noreferrer", children: "Open in new tab instead" })
290
- ] }),
291
- /* @__PURE__ */ e.jsx("div", { ref: t, className: f.pdfPages })
292
- ] }),
293
- /* @__PURE__ */ e.jsx(
294
- "a",
295
- {
296
- href: i,
297
- target: "_blank",
298
- rel: "noopener noreferrer",
299
- className: f.openInNewTab,
300
- children: "Open in new tab"
301
- }
302
- )
303
- ] })
304
- ]
305
- }
306
- )
307
- }
308
- ) : null;
309
- }, hs = "https://srm-cdn.a4b.io/yoda/1770890856496.pdf", ps = ({
310
- t: s,
311
- pdfUrl: a = hs,
312
- onClick: n,
313
- analytics: i,
314
- className: t = ""
315
- }) => {
316
- const [r, c] = R(!1), d = s("viewSampleReport"), p = s("sampleReportModalTitle"), h = () => {
317
- i?.trackViewSampleReportClicked?.(), n?.(), c(!0);
318
- }, x = () => {
319
- i?.trackViewSampleReportClosed?.(), c(!1);
320
- };
321
- return /* @__PURE__ */ e.jsxs("section", { className: `${U.section} ${t}`, children: [
322
- /* @__PURE__ */ e.jsx("button", { type: "button", className: U.button, onClick: h, children: d }),
323
- /* @__PURE__ */ e.jsx(
324
- ms,
325
- {
326
- isOpen: r,
327
- onClose: x,
328
- title: p,
329
- pdfUrl: a
330
- }
331
- )
332
- ] });
333
- }, gs = "_section_1ds1w_1", _s = "_heading_1ds1w_5", us = "_list_1ds1w_10", xs = "_item_1ds1w_17", fs = "_imageWrap_1ds1w_21", bs = "_image_1ds1w_21", js = "_imagePlaceholder_1ds1w_30", ys = "_text_1ds1w_36", Ns = "_itemTitle_1ds1w_40", ws = "_itemDesc_1ds1w_51", b = {
334
- section: gs,
335
- heading: _s,
336
- list: us,
337
- item: xs,
338
- imageWrap: fs,
339
- image: bs,
340
- imagePlaceholder: js,
341
- text: ys,
342
- itemTitle: Ns,
343
- itemDesc: ws
344
- }, ks = [
345
- { titleKey: "findDasha", descKey: "findDashaDesc" },
346
- { titleKey: "findYoga", descKey: "findYogaDesc" },
347
- { titleKey: "findGemstone", descKey: "findGemstoneDesc" },
348
- { titleKey: "findPooja", descKey: "findPoojaDesc" },
349
- { titleKey: "findMonthly", descKey: "findMonthlyDesc" },
350
- { titleKey: "findStrength", descKey: "findStrengthDesc" }
351
- ], Is = [
352
- "https://srm-cdn.a4b.io/yoda/1772619204758.webp",
353
- "https://srm-cdn.a4b.io/yoda/1772619215121.webp",
354
- "https://srm-cdn.a4b.io/yoda/1772619232241.webp",
355
- "https://srm-cdn.a4b.io/yoda/1772619253699.webp",
356
- "https://srm-cdn.a4b.io/yoda/1772619272322.webp",
357
- "https://srm-cdn.a4b.io/yoda/1772619284662.webp"
358
- ], vs = ({
359
- t: s,
360
- imageUrls: a = Is,
361
- className: n = ""
362
- }) => {
363
- const t = T()?.config.imageComponent ?? $;
364
- return /* @__PURE__ */ e.jsxs(
365
- "section",
366
- {
367
- className: `${b.section} ${n}`,
368
- "aria-labelledby": "find-heading",
369
- children: [
370
- /* @__PURE__ */ e.jsx("h2", { id: "find-heading", className: b.heading, children: s("whatYoullFindTitle") }),
371
- /* @__PURE__ */ e.jsx("ul", { className: b.list, children: ks.map((r, c) => /* @__PURE__ */ e.jsxs("li", { className: b.item, children: [
372
- /* @__PURE__ */ e.jsx("div", { className: b.imageWrap, children: a[c] ? /* @__PURE__ */ e.jsx(
373
- t,
374
- {
375
- src: a[c],
376
- alt: "",
377
- className: b.image,
378
- width: 96,
379
- height: 96,
380
- loading: "lazy",
381
- sizes: "96px"
382
- }
383
- ) : /* @__PURE__ */ e.jsx("div", { className: b.imagePlaceholder, "aria-hidden": !0 }) }),
384
- /* @__PURE__ */ e.jsxs("div", { className: b.text, children: [
385
- /* @__PURE__ */ e.jsx("h3", { className: b.itemTitle, children: s(r.titleKey) }),
386
- /* @__PURE__ */ e.jsx("p", { className: b.itemDesc, children: s(r.descKey) })
387
- ] })
388
- ] }, r.titleKey)) })
389
- ]
390
- }
391
- );
392
- }, Cs = "_section_75s76_1", Ls = "_heading_75s76_6", Ts = "_subtitle_75s76_11", Ps = "_list_75s76_16", Ss = "_item_75s76_20", D = {
393
- section: Cs,
394
- heading: Ls,
395
- subtitle: Ts,
396
- list: Ps,
397
- item: Ss
398
- }, Es = ["whyUs1", "whyUs2", "whyUs3", "whyUs4"], Ds = ({ t: s, className: a = "" }) => /* @__PURE__ */ e.jsxs("section", { className: `${D.section} ${a}`, "aria-labelledby": "why-heading", children: [
399
- /* @__PURE__ */ e.jsx("h2", { id: "why-heading", className: D.heading, children: s("whyUsTitle") }),
400
- /* @__PURE__ */ e.jsx("p", { className: D.subtitle, children: s("whyUsSubtitle") }),
401
- /* @__PURE__ */ e.jsx("ul", { className: D.list, children: Es.map((n) => /* @__PURE__ */ e.jsx("li", { className: D.item, children: s(n) }, n)) })
402
- ] }), Rs = "_headingBold_g8xg7_1", $s = {
403
- headingBold: Rs
404
- }, As = ({
405
- t: s,
406
- testimonials: a,
407
- readMoreHref: n,
408
- onReadMore: i,
409
- className: t = "",
410
- headingClassName: r = $s.headingBold
411
- }) => /* @__PURE__ */ e.jsx(
412
- J,
413
- {
414
- t: s,
415
- testimonials: a,
416
- readMoreHref: n,
417
- onReadMore: i,
418
- className: t,
419
- headingClassName: r
420
- }
421
- ), Fs = "_headingBold_g8xg7_1", Ks = {
422
- headingBold: Fs
423
- }, Us = [
424
- { qKey: "faqQ1", aKey: "faqA1" },
425
- { qKey: "faqQ3", aKey: "faqA3" }
426
- ], Os = ({
427
- t: s,
428
- className: a = "",
429
- headingClassName: n = Ks.headingBold
430
- }) => {
431
- const t = T()?.config.isGlobal ?? !0, r = (c) => c === "faqA1" ? t ? "faqA1Global" : "faqA1Domestic" : c;
432
- return /* @__PURE__ */ e.jsx(
433
- X,
434
- {
435
- t: s,
436
- items: Us,
437
- resolveAnswerKey: r,
438
- defaultOpenIndex: 1,
439
- className: a,
440
- headingClassName: n
441
- }
442
- );
443
- }, O = "8296947757", M = "08071174417", B = "pujaseva@appsforbharat.com", Ms = ({
444
- t: s,
445
- whatsAppGlobal: a,
446
- whatsAppDomestic: n,
447
- email: i,
448
- brandName: t,
449
- className: r = ""
450
- }) => {
451
- const d = T()?.config.isGlobal ?? !0, p = a ?? O, h = n ?? M, x = i ?? B, l = d ? s("contactWhatsAppGlobal").replace(O, p) : s("contactWhatsAppDomestic").replace(M, h), u = s("contactEmail").replace(B, x);
452
- return /* @__PURE__ */ e.jsx(
453
- Z,
454
- {
455
- title: s("contactTitle"),
456
- brandName: t ?? s("contactBrandName"),
457
- whatsAppLine: l,
458
- emailLine: u,
459
- className: r
460
- }
461
- );
462
- }, Bs = "https://srm-cdn.a4b.io/yoda/1770375694934.svg", Gs = "https://srm-cdn.a4b.io/yoda/1770375720933.svg", Ws = "https://srm-cdn.a4b.io/yoda/1770707793537.svg", Hs = ({ t: s }) => {
463
- const n = T()?.config.imageComponent ?? $;
464
- return /* @__PURE__ */ e.jsxs("div", { className: I.marqueeContent, children: [
465
- /* @__PURE__ */ e.jsxs("span", { className: I.badge, children: [
466
- /* @__PURE__ */ e.jsx(n, { src: Bs, alt: "", className: I.badgeIcon, width: 16, height: 16, loading: "lazy" }),
467
- s("ctaKundliCreated")
468
- ] }),
469
- /* @__PURE__ */ e.jsxs("span", { className: I.badge, children: [
470
- /* @__PURE__ */ e.jsx(n, { src: Gs, alt: "", className: I.badgeIcon, width: 16, height: 16, loading: "lazy" }),
471
- s("ctaCertified")
472
- ] }),
473
- /* @__PURE__ */ e.jsxs("span", { className: I.badge, children: [
474
- /* @__PURE__ */ e.jsx(n, { src: Ws, alt: "", className: I.badgeIcon, width: 16, height: 16, loading: "lazy" }),
475
- s("ctaSecurePayment")
476
- ] })
477
- ] });
478
- }, qs = ({
479
- t: s,
480
- onCtaClick: a,
481
- ctaHref: n,
482
- className: i = ""
483
- }) => {
484
- const t = s("ctaButtonBefore").replace(/\s+in\s*$/i, "");
485
- return /* @__PURE__ */ e.jsx(
486
- ee,
487
- {
488
- className: i,
489
- marquee: /* @__PURE__ */ e.jsx(te, { children: /* @__PURE__ */ e.jsx(Hs, { t: s }) }),
490
- children: /* @__PURE__ */ e.jsx(se, { href: n, onClick: a, children: t })
491
- }
492
- );
493
- }, zs = "https://srm-cdn.a4b.io/yoda/1770362713543.svg", Ys = (s, a) => V[s]?.[a] ?? a, Vs = 112;
494
- function j({
495
- section: s,
496
- children: a,
497
- onImpression: n
498
- }) {
499
- const i = L(null), t = L(!1);
500
- return v(() => {
501
- const r = i.current;
502
- if (!r) return;
503
- const c = new IntersectionObserver(
504
- ([d]) => {
505
- !d?.isIntersecting || t.current || (t.current = !0, n(s));
506
- },
507
- {
508
- threshold: 0.1,
509
- // Shrink bottom of viewport by CTA footer height so we only count content actually visible above the sticky footer
510
- rootMargin: `0px 0px -${Vs}px 0px`
511
- }
512
- );
513
- return c.observe(r), () => c.disconnect();
514
- }, [s, n]), /* @__PURE__ */ e.jsx("div", { ref: i, children: a });
515
- }
516
- function Qs({ className: s }) {
517
- const { view: a } = G();
518
- return a === "form" ? /* @__PURE__ */ e.jsx(H, {}) : /* @__PURE__ */ e.jsx(Js, { className: s });
519
- }
520
- function Js({ className: s }) {
521
- const a = q(), {
522
- locale: n,
523
- setLocale: i,
524
- config: t,
525
- goToForm: r
526
- } = G(), [c, d] = R(!1), p = L(null), h = L(t.locale), x = L(
527
- a?.locale
528
- );
529
- v(() => {
530
- t.locale && h.current !== t.locale && i(t.locale), h.current = t.locale;
531
- }, [t.locale, i]), v(() => {
532
- if (t.locale) return;
533
- const o = a?.locale;
534
- o && x.current !== o && i(o), x.current = o;
535
- }, [a?.locale, t.locale, i]), v(() => {
536
- if (!c) return;
537
- const o = (y) => {
538
- p.current && !p.current.contains(y.target) && d(!1);
539
- };
540
- return document.addEventListener("mousedown", o), () => document.removeEventListener("mousedown", o);
541
- }, [c]);
542
- const l = (o) => Ys(n, o), u = t.showLanguageSelector ?? !0, C = t.imageComponent ?? $, w = u ? /* @__PURE__ */ e.jsxs("div", { className: N.langDropdownWrap, ref: p, children: [
543
- /* @__PURE__ */ e.jsxs(
544
- "button",
545
- {
546
- type: "button",
547
- className: N.langTrigger,
548
- onClick: () => {
549
- t.analytics?.trackLanguageClickedFe?.({ language: n }), d((o) => !o);
550
- },
551
- "aria-expanded": c,
552
- "aria-haspopup": "listbox",
553
- id: "kundli-lang",
554
- "aria-label": l("language"),
555
- children: [
556
- /* @__PURE__ */ e.jsx(
557
- C,
558
- {
559
- src: zs,
560
- alt: "",
561
- className: N.langIcon,
562
- width: 16,
563
- height: 16,
564
- loading: "eager"
565
- }
566
- ),
567
- /* @__PURE__ */ e.jsx("span", { className: N.langLabel, children: K[n] })
568
- ]
569
- }
570
- ),
571
- c && /* @__PURE__ */ e.jsx(
572
- "ul",
573
- {
574
- className: N.langMenu,
575
- role: "listbox",
576
- "aria-labelledby": "kundli-lang",
577
- "aria-activedescendant": `kundli-lang-option-${n}`,
578
- children: z.map((o) => /* @__PURE__ */ e.jsx(
579
- "li",
580
- {
581
- id: `kundli-lang-option-${o}`,
582
- role: "option",
583
- "aria-selected": o === n,
584
- className: N.langOption,
585
- onClick: () => {
586
- t.analytics?.trackLanguageChangedFe?.({ newLanguage: o }), i(o), d(!1);
587
- },
588
- children: K[o]
589
- },
590
- o
591
- ))
592
- }
593
- )
594
- ] }) : null, P = (o) => {
595
- const y = o.currentTarget.innerText?.trim() ?? l("ctaButtonAfter");
596
- t.analytics?.trackPrimaryCtaClickedFe?.({ ctaText: y }), r(), t.onCtaClick?.();
597
- }, g = Q(
598
- (o) => {
599
- t.analytics?.trackDetailedKundliReportImpressionFe?.({
600
- section: o,
601
- timestamp: (/* @__PURE__ */ new Date()).toISOString()
602
- });
603
- },
604
- [t.analytics]
605
- );
606
- return /* @__PURE__ */ e.jsxs("div", { className: `${N.container} ${s}`, children: [
607
- /* @__PURE__ */ e.jsx(
608
- Y,
609
- {
610
- t: l,
611
- logoUrl: t.logoUrl,
612
- languageSelector: w
613
- }
614
- ),
615
- /* @__PURE__ */ e.jsxs("main", { className: N.main, children: [
616
- /* @__PURE__ */ e.jsx(
617
- j,
618
- {
619
- section: "hero",
620
- onImpression: g,
621
- children: /* @__PURE__ */ e.jsx(xe, { t: l })
622
- }
623
- ),
624
- /* @__PURE__ */ e.jsx(
625
- j,
626
- {
627
- section: "premium_report_overview",
628
- onImpression: g,
629
- children: /* @__PURE__ */ e.jsx(
630
- Ae,
631
- {
632
- t: l,
633
- reportImageUrl: t.reportImageUrl,
634
- reportImagePriority: t.reportImagePriority,
635
- backgroundImagePriority: t.backgroundImagePriority,
636
- analytics: t.analytics
637
- }
638
- )
639
- }
640
- ),
641
- /* @__PURE__ */ e.jsx(
642
- j,
643
- {
644
- section: "university_certification",
645
- onImpression: g,
646
- children: /* @__PURE__ */ e.jsx(
647
- Me,
648
- {
649
- t: l,
650
- logoUrl: t.universityLogoUrls?.find((o) => !!o)
651
- }
652
- )
653
- }
654
- ),
655
- /* @__PURE__ */ e.jsx(
656
- j,
657
- {
658
- section: "three_steps_process",
659
- onImpression: g,
660
- children: /* @__PURE__ */ e.jsx(Je, { t: l, locale: n, isGlobal: t.isGlobal })
661
- }
662
- ),
663
- /* @__PURE__ */ e.jsx(
664
- j,
665
- {
666
- section: "view_sample_report",
667
- onImpression: g,
668
- children: /* @__PURE__ */ e.jsx(
669
- ps,
670
- {
671
- t: l,
672
- pdfUrl: t.sampleReportHref,
673
- onClick: t.onViewSampleReport,
674
- analytics: t.analytics
675
- }
676
- )
677
- }
678
- ),
679
- /* @__PURE__ */ e.jsx(
680
- j,
681
- {
682
- section: "what_youll_find",
683
- onImpression: g,
684
- children: /* @__PURE__ */ e.jsx(vs, { t: l })
685
- }
686
- ),
687
- /* @__PURE__ */ e.jsx(
688
- j,
689
- {
690
- section: "why_us",
691
- onImpression: g,
692
- children: /* @__PURE__ */ e.jsx(Ds, { t: l })
693
- }
694
- ),
695
- /* @__PURE__ */ e.jsx(
696
- j,
697
- {
698
- section: "feedback",
699
- onImpression: g,
700
- children: /* @__PURE__ */ e.jsx(
701
- As,
702
- {
703
- t: l,
704
- readMoreHref: t.readMoreReviewsHref,
705
- onReadMore: t.analytics?.trackReadMoreReviewsClicked ? () => t.analytics.trackReadMoreReviewsClicked() : void 0
706
- }
707
- )
708
- }
709
- ),
710
- /* @__PURE__ */ e.jsx(
711
- j,
712
- {
713
- section: "faq",
714
- onImpression: g,
715
- children: /* @__PURE__ */ e.jsx(Os, { t: l })
716
- }
717
- ),
718
- /* @__PURE__ */ e.jsx(
719
- j,
720
- {
721
- section: "contact_us",
722
- onImpression: g,
723
- children: /* @__PURE__ */ e.jsx(Ms, { t: l })
724
- }
725
- )
726
- ] }),
727
- /* @__PURE__ */ e.jsx(
728
- qs,
729
- {
730
- t: l,
731
- ctaHref: t.ctaHref,
732
- onCtaClick: t.ctaHref ? void 0 : P
733
- }
734
- )
735
- ] });
736
- }
737
- const st = ({
738
- className: s = "",
739
- locale: a,
740
- showLanguageSelector: n = !0,
741
- userId: i,
742
- isGlobal: t,
743
- logoUrl: r,
744
- reportImageUrl: c,
745
- universityLogoUrls: d,
746
- sampleReportHref: p,
747
- onViewSampleReport: h,
748
- ctaHref: x,
749
- onCtaClick: l,
750
- readMoreReviewsHref: u,
751
- onProceed: C,
752
- proceedHref: w,
753
- originalPriceLabel: P,
754
- discountedPriceLabel: g,
755
- discountPillLabel: o,
756
- analytics: y,
757
- onLocaleChange: S
758
- }) => /* @__PURE__ */ e.jsx(
759
- W,
760
- {
761
- locale: a,
762
- showLanguageSelector: n,
763
- userId: i,
764
- isGlobal: t,
765
- logoUrl: r,
766
- reportImageUrl: c,
767
- universityLogoUrls: d,
768
- sampleReportHref: p,
769
- onViewSampleReport: h,
770
- ctaHref: x,
771
- onCtaClick: l,
772
- readMoreReviewsHref: u,
773
- onProceed: C,
774
- proceedHref: w,
775
- originalPriceLabel: P,
776
- discountedPriceLabel: g,
777
- discountPillLabel: o,
778
- analytics: y,
779
- onLocaleChange: S,
780
- children: /* @__PURE__ */ e.jsx(Qs, { className: s })
781
- }
782
- ), tt = "[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}";
783
- export {
784
- tt as K,
785
- De as P,
786
- st as a
787
- };
788
- //# sourceMappingURL=criticalCss-BEe0O4RS.js.map