@srimandir/kundli-generator 7.5.11 → 7.5.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,1946 +0,0 @@
1
- import { k as e, h as Z, D as ae, d as je, j as de, c as De, u as ye, L as ie, S as we, l as ve, t as Ce, C as Ue, P as $e, F as Be, U as Oe, m as qe, n as Me } from "./analytics-BZyas-wq.js";
2
- import { useRef as _, useState as R, useEffect as N, useCallback as X, useMemo as pe } from "react";
3
- import { UserReviewsSection as Ke, FAQAccordion as Qe, ContactUsSection as He, FooterShell as Ge, FooterCTAButton as ze, CircularMarquee as We, footerShellStyles as Y } from "@srimandir/astrology-common";
4
- const Ve = "_hero_1vvjv_1", Ye = "_title_1vvjv_5", Xe = "_subtitle_1vvjv_10", Je = "_topicTags_1vvjv_23", Ze = "_tag_1vvjv_27", ne = {
5
- hero: Ve,
6
- title: Ye,
7
- subtitle: Xe,
8
- topicTags: Je,
9
- tag: Ze
10
- }, en = [
11
- "topicMarriage",
12
- "topicRelationship",
13
- "topicBusiness",
14
- "topicHealth",
15
- "topicCareer",
16
- "topicEducation",
17
- "topicMoney"
18
- ], ke = ({ t: n, className: a = "" }) => /* @__PURE__ */ e.jsxs("section", { className: `${ne.hero} ${a}`, "aria-labelledby": "hero-title", children: [
19
- /* @__PURE__ */ e.jsx("h1", { id: "hero-title", className: ne.title, children: n("heroTitle") }),
20
- /* @__PURE__ */ e.jsx("p", { className: ne.subtitle, children: n("heroSubtitle") }),
21
- /* @__PURE__ */ e.jsx("div", { className: ne.topicTags, role: "list", children: en.map((t) => /* @__PURE__ */ e.jsx("span", { className: ne.tag, role: "listitem", children: n(t) }, t)) })
22
- ] }), nn = "_section_iqucz_1", tn = "_utmBanner_iqucz_9", an = "_utmBannerImg_iqucz_13", sn = "_backgroundLayer_iqucz_18", on = "_backgroundImg_iqucz_25", ln = "_inner_iqucz_32", rn = "_content_iqucz_38", cn = "_headline_iqucz_42", dn = "_headlineLine_iqucz_47", un = "_headlinePill_iqucz_52", pn = "_headlinePlain_iqucz_67", mn = "_featureList_iqucz_78", hn = "_featureItem_iqucz_85", gn = "_featureIcon_iqucz_90", xn = "_reportImage_iqucz_97", fn = "_reportImg_iqucz_107", j = {
23
- section: nn,
24
- utmBanner: tn,
25
- utmBannerImg: an,
26
- backgroundLayer: sn,
27
- backgroundImg: on,
28
- inner: ln,
29
- content: rn,
30
- headline: cn,
31
- headlineLine: dn,
32
- headlinePill: un,
33
- headlinePlain: pn,
34
- featureList: mn,
35
- featureItem: hn,
36
- featureIcon: gn,
37
- reportImage: xn,
38
- reportImg: fn
39
- }, _n = "https://srm-cdn.a4b.io/yoda/1770363846052.svg", bn = "https://srm-cdn.a4b.io/yoda/1772696426944.webp", jn = [
40
- "premiumFeature1",
41
- "premiumFeature2",
42
- "premiumFeature3",
43
- "premiumFeature4"
44
- ], yn = "https://srm-cdn.a4b.io/yoda/1772696452070.webp", Ne = ({
45
- t: n,
46
- reportImageUrl: a = yn,
47
- reportImagePriority: t,
48
- backgroundImagePriority: o = !1,
49
- analytics: s,
50
- utmBannerImageUrl: l,
51
- utmBannerAltText: c = "",
52
- className: m = ""
53
- }) => {
54
- const h = Z()?.config.imageComponent ?? ae;
55
- if (l)
56
- return /* @__PURE__ */ e.jsx(
57
- "section",
58
- {
59
- className: `${j.utmBanner} ${m}`,
60
- "aria-label": c,
61
- children: /* @__PURE__ */ e.jsx(
62
- h,
63
- {
64
- src: l,
65
- alt: c,
66
- className: j.utmBannerImg,
67
- priority: !0,
68
- fetchPriority: "high",
69
- loading: "eager",
70
- sizes: "100vw"
71
- }
72
- )
73
- }
74
- );
75
- const b = () => {
76
- s?.trackBannerClicked?.();
77
- };
78
- return /* @__PURE__ */ e.jsxs(
79
- "section",
80
- {
81
- className: `${j.section} ${m}`,
82
- "aria-labelledby": "premium-headline",
83
- role: "button",
84
- tabIndex: 0,
85
- onClick: b,
86
- "data-hero": !0,
87
- children: [
88
- /* @__PURE__ */ e.jsx("div", { className: j.backgroundLayer, "aria-hidden": !0, "data-background-layer": !0, children: /* @__PURE__ */ e.jsx(
89
- h,
90
- {
91
- src: bn,
92
- alt: "",
93
- className: j.backgroundImg,
94
- width: 412,
95
- height: 215,
96
- sizes: "(max-width: 768px) 412px, 412px",
97
- loading: "eager",
98
- priority: o,
99
- fetchPriority: "high"
100
- }
101
- ) }),
102
- /* @__PURE__ */ e.jsxs("div", { className: j.inner, children: [
103
- /* @__PURE__ */ e.jsxs("div", { className: j.content, children: [
104
- /* @__PURE__ */ e.jsxs("h2", { id: "premium-headline", className: j.headline, children: [
105
- /* @__PURE__ */ e.jsxs("span", { className: j.headlineLine, children: [
106
- /* @__PURE__ */ e.jsx("span", { className: j.headlinePill, children: n("premiumHeadlinePill1") }),
107
- /* @__PURE__ */ e.jsx("span", { className: j.headlinePlain, children: n("premiumHeadlinePlain1") })
108
- ] }),
109
- /* @__PURE__ */ e.jsxs("span", { className: j.headlineLine, children: [
110
- /* @__PURE__ */ e.jsx("span", { className: j.headlinePlain, children: n("premiumHeadlinePlain2") }),
111
- /* @__PURE__ */ e.jsx("span", { className: j.headlinePill, children: n("premiumHeadlinePill2") })
112
- ] }),
113
- /* @__PURE__ */ e.jsxs("span", { className: j.headlineLine, children: [
114
- /* @__PURE__ */ e.jsx("span", { className: j.headlinePlain, children: n("and") }),
115
- /* @__PURE__ */ e.jsx("span", { className: j.headlinePill, children: n("astrologyGuidance") })
116
- ] })
117
- ] }),
118
- /* @__PURE__ */ e.jsx("ul", { className: j.featureList, children: jn.map((p) => /* @__PURE__ */ e.jsxs("li", { className: j.featureItem, children: [
119
- /* @__PURE__ */ e.jsx(
120
- h,
121
- {
122
- src: _n,
123
- alt: "",
124
- className: j.featureIcon,
125
- width: 16,
126
- height: 16,
127
- loading: "lazy"
128
- }
129
- ),
130
- n(p)
131
- ] }, p)) })
132
- ] }),
133
- /* @__PURE__ */ e.jsx("div", { className: j.reportImage, children: /* @__PURE__ */ e.jsx(
134
- h,
135
- {
136
- src: a,
137
- alt: "",
138
- className: j.reportImg,
139
- width: 120,
140
- height: 160,
141
- priority: t,
142
- fetchPriority: t ? "high" : void 0,
143
- loading: t ? "eager" : "lazy",
144
- sizes: "120px"
145
- }
146
- ) })
147
- ] })
148
- ]
149
- }
150
- );
151
- }, wn = "_section_1kxsy_1", vn = "_heading_1kxsy_6", Cn = "_logoImg_1kxsy_10", ce = {
152
- section: wn,
153
- heading: vn,
154
- logoImg: Cn
155
- }, kn = "https://srm-cdn.a4b.io/yoda/1772696467302.webp", Pe = ({
156
- t: n,
157
- logoUrl: a = kn,
158
- className: t = ""
159
- }) => {
160
- const s = Z()?.config.imageComponent ?? ae;
161
- return /* @__PURE__ */ e.jsxs("section", { className: `${ce.section} ${t}`, "aria-labelledby": "certified-heading", children: [
162
- /* @__PURE__ */ e.jsx("h2", { id: "certified-heading", className: ce.heading, children: n("certifiedBy") }),
163
- /* @__PURE__ */ e.jsx(
164
- s,
165
- {
166
- src: a,
167
- alt: "University Certification",
168
- className: ce.logoImg,
169
- width: 380,
170
- height: 70,
171
- loading: "lazy"
172
- }
173
- )
174
- ] });
175
- }, Nn = "_section_1d9aa_1", Pn = "_heading_1d9aa_6", In = "_subtitle_1d9aa_11", Ln = "_stepList_1d9aa_16", Tn = "_stepItem_1d9aa_20", Fn = "_stepNumber_1d9aa_24", Rn = "_stepText_1d9aa_30", Sn = "_step3Days_1d9aa_35", S = {
176
- section: Nn,
177
- heading: Pn,
178
- subtitle: In,
179
- stepList: Ln,
180
- stepItem: Tn,
181
- stepNumber: Fn,
182
- stepText: Rn,
183
- step3Days: Sn
184
- }, En = ["step1", "step2"], Ie = ({
185
- t: n,
186
- locale: a = "en",
187
- isGlobal: t = !0,
188
- className: o = ""
189
- }) => {
190
- const s = t ? "step3IntroGlobal" : "step3IntroDomestic";
191
- return /* @__PURE__ */ e.jsxs(
192
- "section",
193
- {
194
- className: `${S.section} ${o}`,
195
- "aria-labelledby": "steps-heading",
196
- children: [
197
- /* @__PURE__ */ e.jsx("p", { className: S.heading, children: n("yourThreeSteps") }),
198
- /* @__PURE__ */ e.jsx("h2", { id: "steps-heading", className: S.subtitle, children: n("threeStepsSubtitle") }),
199
- /* @__PURE__ */ e.jsxs("ol", { className: S.stepList, children: [
200
- En.map((l, c) => /* @__PURE__ */ e.jsxs("li", { className: S.stepItem, children: [
201
- /* @__PURE__ */ e.jsx("span", { className: S.stepNumber, "aria-hidden": !0, children: c + 1 }),
202
- /* @__PURE__ */ e.jsx("span", { className: S.stepText, children: n(l) })
203
- ] }, l)),
204
- /* @__PURE__ */ e.jsxs("li", { className: S.stepItem, children: [
205
- /* @__PURE__ */ e.jsx("span", { className: S.stepNumber, "aria-hidden": !0, children: "3" }),
206
- /* @__PURE__ */ e.jsxs("span", { className: S.stepText, children: [
207
- n(s),
208
- /* @__PURE__ */ e.jsx("br", {}),
209
- a === "en" ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
210
- "in ",
211
- /* @__PURE__ */ e.jsx("strong", { className: S.step3Days, children: n("step3Days") })
212
- ] }) : /* @__PURE__ */ e.jsx("strong", { className: S.step3Days, children: n("step3Days") })
213
- ] })
214
- ] })
215
- ] })
216
- ]
217
- }
218
- );
219
- }, An = "_section_1jea1_1", Dn = "_button_1jea1_7", me = {
220
- section: An,
221
- button: Dn
222
- }, Un = "_backdrop_pekod_1", $n = "_modal_pekod_21", Bn = "_header_pekod_40", On = "_title_pekod_49", qn = "_closeBtn_pekod_56", Mn = "_content_pekod_76", Kn = "_pdfFrame_pekod_84", Qn = "_pdfPages_pekod_92", Hn = "_pdfError_pekod_97", Gn = "_openInNewTab_pekod_123", B = {
223
- backdrop: Un,
224
- modal: $n,
225
- header: Bn,
226
- title: On,
227
- closeBtn: qn,
228
- content: Mn,
229
- pdfFrame: Kn,
230
- pdfPages: Qn,
231
- pdfError: Hn,
232
- openInNewTab: Gn
233
- };
234
- function zn(n) {
235
- typeof n < "u" && n.GlobalWorkerOptions && (n.GlobalWorkerOptions.workerSrc = `https://unpkg.com/pdfjs-dist@${n.version}/build/pdf.worker.min.js`);
236
- }
237
- const Le = ({
238
- isOpen: n,
239
- onClose: a,
240
- title: t,
241
- pdfUrl: o
242
- }) => {
243
- const s = _(null), [l, c] = R(!0), [m, i] = R(null), [h, b] = R(null);
244
- return N(() => {
245
- if (!n) return;
246
- const p = (u) => {
247
- u.key === "Escape" && a();
248
- };
249
- return document.addEventListener("keydown", p), document.body.style.overflow = "hidden", () => {
250
- document.removeEventListener("keydown", p), document.body.style.overflow = "";
251
- };
252
- }, [n, a]), N(() => {
253
- n && import("pdfjs-dist").then((p) => {
254
- b(p);
255
- }).catch((p) => {
256
- i("Failed to load PDF viewer"), c(!1);
257
- });
258
- }, [n]), N(() => {
259
- if (!n || !o || !s.current || !h) return;
260
- c(!0), i(null), s.current.innerHTML = "", (async () => {
261
- try {
262
- zn(h);
263
- const y = await h.getDocument({ url: o }).promise, L = s.current;
264
- if (!L) return;
265
- const P = L.clientWidth || 600, I = Math.min(P / 612, 2);
266
- for (let f = 1; f <= y.numPages; f++) {
267
- const d = await y.getPage(f), w = d.getViewport({ scale: I }), v = document.createElement("canvas");
268
- v.height = w.height, v.width = w.width, v.style.display = "block", v.style.margin = "0 auto 1rem", v.style.maxWidth = "100%";
269
- const T = v.getContext("2d");
270
- T && await d.render({ canvasContext: T, viewport: w }).promise, L.appendChild(v);
271
- }
272
- } catch (u) {
273
- i(u instanceof Error ? u.message : "Failed to load PDF");
274
- } finally {
275
- c(!1);
276
- }
277
- })();
278
- }, [n, o, h]), n ? /* @__PURE__ */ e.jsx(
279
- "div",
280
- {
281
- className: B.backdrop,
282
- onClick: a,
283
- role: "dialog",
284
- "aria-modal": "true",
285
- "aria-labelledby": "sample-report-modal-title",
286
- children: /* @__PURE__ */ e.jsxs(
287
- "div",
288
- {
289
- className: B.modal,
290
- onClick: (p) => p.stopPropagation(),
291
- children: [
292
- /* @__PURE__ */ e.jsxs("div", { className: B.header, children: [
293
- /* @__PURE__ */ e.jsx("h2", { id: "sample-report-modal-title", className: B.title, children: t }),
294
- /* @__PURE__ */ e.jsx(
295
- "button",
296
- {
297
- type: "button",
298
- className: B.closeBtn,
299
- onClick: a,
300
- "aria-label": "Close",
301
- children: "×"
302
- }
303
- )
304
- ] }),
305
- /* @__PURE__ */ e.jsxs("div", { className: B.content, children: [
306
- /* @__PURE__ */ e.jsxs("div", { className: B.pdfFrame, children: [
307
- m && /* @__PURE__ */ e.jsxs("div", { className: B.pdfError, children: [
308
- /* @__PURE__ */ e.jsx("span", { children: m }),
309
- /* @__PURE__ */ e.jsx("a", { href: o, target: "_blank", rel: "noopener noreferrer", children: "Open in new tab instead" })
310
- ] }),
311
- /* @__PURE__ */ e.jsx("div", { ref: s, className: B.pdfPages })
312
- ] }),
313
- /* @__PURE__ */ e.jsx(
314
- "a",
315
- {
316
- href: o,
317
- target: "_blank",
318
- rel: "noopener noreferrer",
319
- className: B.openInNewTab,
320
- children: "Open in new tab"
321
- }
322
- )
323
- ] })
324
- ]
325
- }
326
- )
327
- }
328
- ) : null;
329
- }, Wn = "https://srm-cdn.a4b.io/yoda/1773317492292.pdf", ue = ({
330
- t: n,
331
- pdfUrl: a = Wn,
332
- onClick: t,
333
- analytics: o,
334
- className: s = ""
335
- }) => {
336
- const [l, c] = R(!1), m = n("viewSampleReport"), i = n("sampleReportModalTitle"), h = () => {
337
- o?.trackViewSampleReportClicked?.(), t?.(), c(!0);
338
- }, b = () => {
339
- o?.trackViewSampleReportClosed?.(), c(!1);
340
- };
341
- return /* @__PURE__ */ e.jsxs("section", { className: `${me.section} ${s}`, children: [
342
- /* @__PURE__ */ e.jsx("button", { type: "button", className: me.button, onClick: h, children: m }),
343
- /* @__PURE__ */ e.jsx(
344
- Le,
345
- {
346
- isOpen: l,
347
- onClose: b,
348
- title: i,
349
- pdfUrl: a
350
- }
351
- )
352
- ] });
353
- }, Vn = "_section_1ds1w_1", Yn = "_heading_1ds1w_5", Xn = "_list_1ds1w_10", Jn = "_item_1ds1w_17", Zn = "_imageWrap_1ds1w_21", et = "_image_1ds1w_21", nt = "_imagePlaceholder_1ds1w_30", tt = "_text_1ds1w_36", at = "_itemTitle_1ds1w_40", st = "_itemDesc_1ds1w_51", O = {
354
- section: Vn,
355
- heading: Yn,
356
- list: Xn,
357
- item: Jn,
358
- imageWrap: Zn,
359
- image: et,
360
- imagePlaceholder: nt,
361
- text: tt,
362
- itemTitle: at,
363
- itemDesc: st
364
- }, it = [
365
- { titleKey: "findDasha", descKey: "findDashaDesc" },
366
- { titleKey: "findYoga", descKey: "findYogaDesc" },
367
- { titleKey: "findGemstone", descKey: "findGemstoneDesc" },
368
- { titleKey: "findPooja", descKey: "findPoojaDesc" },
369
- { titleKey: "findMonthly", descKey: "findMonthlyDesc" },
370
- { titleKey: "findStrength", descKey: "findStrengthDesc" }
371
- ], ot = [
372
- "https://srm-cdn.a4b.io/yoda/1772619204758.webp",
373
- "https://srm-cdn.a4b.io/yoda/1772619215121.webp",
374
- "https://srm-cdn.a4b.io/yoda/1772619232241.webp",
375
- "https://srm-cdn.a4b.io/yoda/1772619253699.webp",
376
- "https://srm-cdn.a4b.io/yoda/1772619272322.webp",
377
- "https://srm-cdn.a4b.io/yoda/1772619284662.webp"
378
- ], Te = ({
379
- t: n,
380
- imageUrls: a = ot,
381
- className: t = ""
382
- }) => {
383
- const s = Z()?.config.imageComponent ?? ae;
384
- return /* @__PURE__ */ e.jsxs(
385
- "section",
386
- {
387
- className: `${O.section} ${t}`,
388
- "aria-labelledby": "find-heading",
389
- children: [
390
- /* @__PURE__ */ e.jsx("h2", { id: "find-heading", className: O.heading, children: n("whatYoullFindTitle") }),
391
- /* @__PURE__ */ e.jsx("ul", { className: O.list, children: it.map((l, c) => /* @__PURE__ */ e.jsxs("li", { className: O.item, children: [
392
- /* @__PURE__ */ e.jsx("div", { className: O.imageWrap, children: a[c] ? /* @__PURE__ */ e.jsx(
393
- s,
394
- {
395
- src: a[c],
396
- alt: "",
397
- className: O.image,
398
- width: 96,
399
- height: 96,
400
- loading: "lazy",
401
- sizes: "96px"
402
- }
403
- ) : /* @__PURE__ */ e.jsx("div", { className: O.imagePlaceholder, "aria-hidden": !0 }) }),
404
- /* @__PURE__ */ e.jsxs("div", { className: O.text, children: [
405
- /* @__PURE__ */ e.jsx("h3", { className: O.itemTitle, children: n(l.titleKey) }),
406
- /* @__PURE__ */ e.jsx("p", { className: O.itemDesc, children: n(l.descKey) })
407
- ] })
408
- ] }, l.titleKey)) })
409
- ]
410
- }
411
- );
412
- }, lt = "_section_75s76_1", rt = "_heading_75s76_6", ct = "_subtitle_75s76_11", dt = "_list_75s76_16", ut = "_item_75s76_20", te = {
413
- section: lt,
414
- heading: rt,
415
- subtitle: ct,
416
- list: dt,
417
- item: ut
418
- }, pt = ["whyUs1", "whyUs2", "whyUs3", "whyUs4"], Fe = ({ t: n, className: a = "" }) => /* @__PURE__ */ e.jsxs("section", { className: `${te.section} ${a}`, "aria-labelledby": "why-heading", children: [
419
- /* @__PURE__ */ e.jsx("h2", { id: "why-heading", className: te.heading, children: n("whyUsTitle") }),
420
- /* @__PURE__ */ e.jsx("p", { className: te.subtitle, children: n("whyUsSubtitle") }),
421
- /* @__PURE__ */ e.jsx("ul", { className: te.list, children: pt.map((t) => /* @__PURE__ */ e.jsx("li", { className: te.item, children: n(t) }, t)) })
422
- ] }), mt = "_headingBold_g8xg7_1", ht = {
423
- headingBold: mt
424
- }, Re = ({
425
- t: n,
426
- testimonials: a,
427
- readMoreHref: t,
428
- onReadMore: o,
429
- className: s = "",
430
- headingClassName: l = ht.headingBold
431
- }) => /* @__PURE__ */ e.jsx(
432
- Ke,
433
- {
434
- t: n,
435
- testimonials: a,
436
- readMoreHref: t,
437
- onReadMore: o,
438
- className: s,
439
- headingClassName: l
440
- }
441
- ), gt = "_headingBold_g8xg7_1", xt = {
442
- headingBold: gt
443
- }, ft = [
444
- { qKey: "faqQ1", aKey: "faqA1" },
445
- { qKey: "faqQ3", aKey: "faqA3" }
446
- ], Se = ({
447
- t: n,
448
- className: a = "",
449
- headingClassName: t = xt.headingBold
450
- }) => {
451
- const s = Z()?.config.isGlobal ?? !0, l = (c) => c === "faqA1" ? s ? "faqA1Global" : "faqA1Domestic" : c;
452
- return /* @__PURE__ */ e.jsx(
453
- Qe,
454
- {
455
- t: n,
456
- items: ft,
457
- resolveAnswerKey: l,
458
- defaultOpenIndex: 1,
459
- className: a,
460
- headingClassName: t
461
- }
462
- );
463
- }, he = "8296947757", ge = "08071174417", xe = "pujaseva@appsforbharat.com", Ee = ({
464
- t: n,
465
- whatsAppGlobal: a,
466
- whatsAppDomestic: t,
467
- email: o,
468
- brandName: s,
469
- className: l = ""
470
- }) => {
471
- const m = Z()?.config.isGlobal ?? !0, i = a ?? he, h = t ?? ge, b = o ?? xe, p = m ? n("contactWhatsAppGlobal").replace(he, i) : n("contactWhatsAppDomestic").replace(ge, h), u = n("contactEmail").replace(xe, b);
472
- return /* @__PURE__ */ e.jsx(
473
- He,
474
- {
475
- title: n("contactTitle"),
476
- brandName: s ?? n("contactBrandName"),
477
- whatsAppLine: p,
478
- emailLine: u,
479
- className: l
480
- }
481
- );
482
- }, _t = "https://srm-cdn.a4b.io/yoda/1770375694934.svg", bt = "https://srm-cdn.a4b.io/yoda/1770375720933.svg", jt = "https://srm-cdn.a4b.io/yoda/1770707793537.svg", yt = ({ t: n }) => {
483
- const t = Z()?.config.imageComponent ?? ae;
484
- return /* @__PURE__ */ e.jsxs("div", { className: Y.marqueeContent, children: [
485
- /* @__PURE__ */ e.jsxs("span", { className: Y.badge, children: [
486
- /* @__PURE__ */ e.jsx(t, { src: _t, alt: "", className: Y.badgeIcon, width: 16, height: 16, loading: "lazy" }),
487
- n("ctaKundliCreated")
488
- ] }),
489
- /* @__PURE__ */ e.jsxs("span", { className: Y.badge, children: [
490
- /* @__PURE__ */ e.jsx(t, { src: bt, alt: "", className: Y.badgeIcon, width: 16, height: 16, loading: "lazy" }),
491
- n("ctaCertified")
492
- ] }),
493
- /* @__PURE__ */ e.jsxs("span", { className: Y.badge, children: [
494
- /* @__PURE__ */ e.jsx(t, { src: jt, alt: "", className: Y.badgeIcon, width: 16, height: 16, loading: "lazy" }),
495
- n("ctaSecurePayment")
496
- ] })
497
- ] });
498
- }, wt = ({
499
- t: n,
500
- onCtaClick: a,
501
- ctaHref: t,
502
- className: o = ""
503
- }) => {
504
- const s = n("ctaButtonBefore").replace(/\s+in\s*$/i, "");
505
- return /* @__PURE__ */ e.jsx(
506
- Ge,
507
- {
508
- className: o,
509
- marquee: /* @__PURE__ */ e.jsx(We, { children: /* @__PURE__ */ e.jsx(yt, { t: n }) }),
510
- children: /* @__PURE__ */ e.jsx(ze, { href: t, onClick: a, children: s })
511
- }
512
- );
513
- }, vt = "_container_nm3gb_1", Ct = "_main_nm3gb_6", kt = "_langDropdownWrap_nm3gb_12", Nt = "_langTrigger_nm3gb_16", Pt = "_langIcon_nm3gb_28", It = "_langLabel_nm3gb_35", Lt = "_langMenu_nm3gb_40", Tt = "_langOption_nm3gb_46", z = {
514
- container: vt,
515
- main: Ct,
516
- langDropdownWrap: kt,
517
- langTrigger: Nt,
518
- langIcon: Pt,
519
- langLabel: It,
520
- langMenu: Lt,
521
- langOption: Tt
522
- }, Ft = "https://srm-cdn.a4b.io/yoda/1770362713543.svg", Rt = (n, a) => Ce[n]?.[a] ?? a, St = 112;
523
- function q({
524
- section: n,
525
- children: a,
526
- onImpression: t
527
- }) {
528
- const o = _(null), s = _(!1);
529
- return N(() => {
530
- const l = o.current;
531
- if (!l) return;
532
- const c = new IntersectionObserver(
533
- ([m]) => {
534
- !m?.isIntersecting || s.current || (s.current = !0, t(n));
535
- },
536
- {
537
- threshold: 0.1,
538
- // Shrink bottom of viewport by CTA footer height so we only count content actually visible above the sticky footer
539
- rootMargin: `0px 0px -${St}px 0px`
540
- }
541
- );
542
- return c.observe(l), () => c.disconnect();
543
- }, [n, t]), /* @__PURE__ */ e.jsx("div", { ref: o, children: a });
544
- }
545
- function Et({ className: n }) {
546
- const { view: a } = de();
547
- return a === "form" ? /* @__PURE__ */ e.jsx(De, {}) : /* @__PURE__ */ e.jsx(At, { className: n });
548
- }
549
- function At({ className: n }) {
550
- const a = ye(), { locale: t, setLocale: o, config: s, goToForm: l } = de(), c = s.resolvedUtmBannerImageUrl || void 0, [m, i] = R(!1), h = _(null), b = _(s.locale), p = _(
551
- a?.locale
552
- );
553
- N(() => {
554
- s.locale && b.current !== s.locale && o(s.locale), b.current = s.locale;
555
- }, [s.locale, o]), N(() => {
556
- if (s.locale) return;
557
- const d = a?.locale;
558
- d && p.current !== d && o(d), p.current = d;
559
- }, [a?.locale, s.locale, o]), N(() => {
560
- if (!m) return;
561
- const d = (w) => {
562
- h.current && !h.current.contains(w.target) && i(!1);
563
- };
564
- return document.addEventListener("mousedown", d), () => document.removeEventListener("mousedown", d);
565
- }, [m]);
566
- const u = (d) => Rt(t, d), y = s.showLanguageSelector ?? !0, L = s.imageComponent ?? ae, P = y ? /* @__PURE__ */ e.jsxs("div", { className: z.langDropdownWrap, ref: h, children: [
567
- /* @__PURE__ */ e.jsxs(
568
- "button",
569
- {
570
- type: "button",
571
- className: z.langTrigger,
572
- onClick: () => {
573
- s.analytics?.trackLanguageClickedFe?.({ language: t }), i((d) => !d);
574
- },
575
- "aria-expanded": m,
576
- "aria-haspopup": "listbox",
577
- id: "kundli-lang",
578
- "aria-label": u("language"),
579
- children: [
580
- /* @__PURE__ */ e.jsx(
581
- L,
582
- {
583
- src: Ft,
584
- alt: "",
585
- className: z.langIcon,
586
- width: 16,
587
- height: 16,
588
- loading: "eager"
589
- }
590
- ),
591
- /* @__PURE__ */ e.jsx("span", { className: z.langLabel, children: ie[t] })
592
- ]
593
- }
594
- ),
595
- m && /* @__PURE__ */ e.jsx(
596
- "ul",
597
- {
598
- className: z.langMenu,
599
- role: "listbox",
600
- "aria-labelledby": "kundli-lang",
601
- "aria-activedescendant": `kundli-lang-option-${t}`,
602
- children: we.map((d) => /* @__PURE__ */ e.jsx(
603
- "li",
604
- {
605
- id: `kundli-lang-option-${d}`,
606
- role: "option",
607
- "aria-selected": d === t,
608
- className: z.langOption,
609
- onClick: () => {
610
- s.analytics?.trackLanguageChangedFe?.({
611
- newLanguage: d
612
- }), o(d), i(!1);
613
- },
614
- children: ie[d]
615
- },
616
- d
617
- ))
618
- }
619
- )
620
- ] }) : null, I = (d) => {
621
- const w = d.currentTarget.innerText?.trim() ?? u("ctaButtonAfter");
622
- s.analytics?.trackPrimaryCtaClickedFe?.({ ctaText: w }), l(), s.onCtaClick?.();
623
- }, f = X(
624
- (d) => {
625
- s.analytics?.trackDetailedKundliReportImpressionFe?.({
626
- section: d,
627
- timestamp: (/* @__PURE__ */ new Date()).toISOString()
628
- });
629
- },
630
- [s.analytics]
631
- );
632
- return /* @__PURE__ */ e.jsxs("div", { className: `${z.container} ${n}`, children: [
633
- /* @__PURE__ */ e.jsx(
634
- ve,
635
- {
636
- t: u,
637
- logoUrl: s.logoUrl,
638
- languageSelector: P
639
- }
640
- ),
641
- /* @__PURE__ */ e.jsxs("main", { className: z.main, children: [
642
- /* @__PURE__ */ e.jsx(
643
- q,
644
- {
645
- section: "hero",
646
- onImpression: f,
647
- children: /* @__PURE__ */ e.jsx(ke, { t: u })
648
- }
649
- ),
650
- /* @__PURE__ */ e.jsx(
651
- q,
652
- {
653
- section: "premium_report_overview",
654
- onImpression: f,
655
- children: /* @__PURE__ */ e.jsx(
656
- Ne,
657
- {
658
- t: u,
659
- reportImageUrl: s.reportImageUrl,
660
- reportImagePriority: s.reportImagePriority,
661
- backgroundImagePriority: s.backgroundImagePriority,
662
- analytics: s.analytics,
663
- utmBannerImageUrl: c,
664
- utmBannerAltText: ""
665
- }
666
- )
667
- }
668
- ),
669
- /* @__PURE__ */ e.jsx(
670
- q,
671
- {
672
- section: "university_certification",
673
- onImpression: f,
674
- children: /* @__PURE__ */ e.jsx(
675
- Pe,
676
- {
677
- t: u,
678
- logoUrl: s.universityLogoUrls?.find(
679
- (d) => !!d
680
- )
681
- }
682
- )
683
- }
684
- ),
685
- /* @__PURE__ */ e.jsx(
686
- q,
687
- {
688
- section: "three_steps_process",
689
- onImpression: f,
690
- children: /* @__PURE__ */ e.jsx(Ie, { t: u, locale: t, isGlobal: s.isGlobal })
691
- }
692
- ),
693
- /* @__PURE__ */ e.jsx(
694
- q,
695
- {
696
- section: "view_sample_report",
697
- onImpression: f,
698
- children: /* @__PURE__ */ e.jsx(
699
- ue,
700
- {
701
- t: u,
702
- pdfUrl: s.sampleReportHref,
703
- onClick: s.onViewSampleReport,
704
- analytics: s.analytics
705
- }
706
- )
707
- }
708
- ),
709
- /* @__PURE__ */ e.jsx(
710
- q,
711
- {
712
- section: "what_youll_find",
713
- onImpression: f,
714
- children: /* @__PURE__ */ e.jsx(Te, { t: u })
715
- }
716
- ),
717
- /* @__PURE__ */ e.jsx(
718
- q,
719
- {
720
- section: "why_us",
721
- onImpression: f,
722
- children: /* @__PURE__ */ e.jsx(Fe, { t: u })
723
- }
724
- ),
725
- /* @__PURE__ */ e.jsx(
726
- q,
727
- {
728
- section: "feedback",
729
- onImpression: f,
730
- children: /* @__PURE__ */ e.jsx(
731
- Re,
732
- {
733
- t: u,
734
- readMoreHref: s.readMoreReviewsHref,
735
- onReadMore: s.analytics?.trackReadMoreReviewsClicked ? () => s.analytics.trackReadMoreReviewsClicked() : void 0
736
- }
737
- )
738
- }
739
- ),
740
- /* @__PURE__ */ e.jsx(
741
- q,
742
- {
743
- section: "faq",
744
- onImpression: f,
745
- children: /* @__PURE__ */ e.jsx(Se, { t: u })
746
- }
747
- ),
748
- /* @__PURE__ */ e.jsx(
749
- q,
750
- {
751
- section: "contact_us",
752
- onImpression: f,
753
- children: /* @__PURE__ */ e.jsx(Ee, { t: u })
754
- }
755
- )
756
- ] }),
757
- /* @__PURE__ */ e.jsx(
758
- wt,
759
- {
760
- t: u,
761
- ctaHref: s.ctaHref,
762
- onCtaClick: s.ctaHref ? void 0 : I
763
- }
764
- )
765
- ] });
766
- }
767
- const Dt = ({
768
- className: n = "",
769
- locale: a,
770
- showLanguageSelector: t = !0,
771
- showSheet: o,
772
- userId: s,
773
- isGlobal: l,
774
- googleMapsApiKey: c,
775
- atlasSearchLocalities: m,
776
- googleMapsAutocompleteEnabled: i,
777
- logoUrl: h,
778
- reportImageUrl: b,
779
- universityLogoUrls: p,
780
- sampleReportHref: u,
781
- onViewSampleReport: y,
782
- ctaHref: L,
783
- onCtaClick: P,
784
- readMoreReviewsHref: I,
785
- onProceed: f,
786
- onProceedGuidance: d,
787
- proceedHref: w,
788
- originalPriceLabel: v,
789
- discountedPriceLabel: T,
790
- discountPillLabel: A,
791
- analytics: U,
792
- onLocaleChange: K,
793
- resolvedUtmBannerImageUrl: Q
794
- }) => /* @__PURE__ */ e.jsx(
795
- je,
796
- {
797
- locale: a,
798
- showLanguageSelector: t,
799
- showSheet: o,
800
- userId: s,
801
- isGlobal: l,
802
- googleMapsApiKey: c,
803
- atlasSearchLocalities: m,
804
- googleMapsAutocompleteEnabled: i,
805
- logoUrl: h,
806
- reportImageUrl: b,
807
- universityLogoUrls: p,
808
- sampleReportHref: u,
809
- onViewSampleReport: y,
810
- ctaHref: L,
811
- onCtaClick: P,
812
- readMoreReviewsHref: I,
813
- onProceed: f,
814
- onProceedGuidance: d,
815
- proceedHref: w,
816
- originalPriceLabel: v,
817
- discountedPriceLabel: T,
818
- discountPillLabel: A,
819
- analytics: U,
820
- onLocaleChange: K,
821
- resolvedUtmBannerImageUrl: Q,
822
- children: /* @__PURE__ */ e.jsx(Et, { className: n })
823
- }
824
- ), Ut = "_container_1b9qe_1", $t = "_main_1b9qe_6", Bt = "_langDropdownWrap_1b9qe_12", Ot = "_langTrigger_1b9qe_16", qt = "_langIcon_1b9qe_28", Mt = "_langLabel_1b9qe_35", Kt = "_langMenu_1b9qe_40", Qt = "_langOption_1b9qe_46", Ht = "_inlineFormWrap_1b9qe_57", Gt = "_inlineProceedFooter_1b9qe_74", M = {
825
- container: Ut,
826
- main: $t,
827
- langDropdownWrap: Bt,
828
- langTrigger: Ot,
829
- langIcon: qt,
830
- langLabel: Mt,
831
- langMenu: Kt,
832
- langOption: Qt,
833
- inlineFormWrap: Ht,
834
- inlineProceedFooter: Gt
835
- }, Ae = [
836
- {
837
- id: "samiksha",
838
- name: "Acharya Rama Sarma",
839
- imageUrl: "https://srm-cdn.a4b.io/yoda/1781527417602.webp",
840
- experience: "21+ Years of experience",
841
- languages: ["Hindi", "English", "Telugu"],
842
- certifications: [
843
- "Certified Jyotish Acharya",
844
- "Guaranteed accurate solutions"
845
- ]
846
- },
847
- {
848
- id: "jyoti",
849
- name: "Astro Neeraj",
850
- imageUrl: "https://srm-cdn.a4b.io/yoda/1781527490353.webp",
851
- experience: "21+ Years of experience",
852
- languages: ["Hindi", "English"],
853
- certifications: [
854
- "21+ Years Vedic Astrology",
855
- "Result-Oriented Spiritual Guidance"
856
- ]
857
- }
858
- ], fe = {
859
- en: {
860
- planSheetTitle: "Choose your Kundli Plan",
861
- planProceedToPayment: "Proceed to Payment",
862
- planAstrologerHeading: "Top astrologers who will consult you",
863
- planMostPopular: "Most popular",
864
- planNew: "New",
865
- planLimitedTimeCombo: "Limited-Time Combo",
866
- planNameBasic: "Kundli Report",
867
- planNameQuestion: "Kundli + 1 Question",
868
- planNameGuidance: "Kundli + Consultation",
869
- planSaveLabel: "Save ~25%",
870
- planFeatureDetailedInsights: "Detailed insights on love, marriage, career, health & finances",
871
- planFeaturePracticalRemedies: "Practical remedies like gemstones, rudraksha & mantras",
872
- planFeatureClearLanguage: "Clear, easy-to-understand language by expert astrologers",
873
- planFeatureAstrologyConsultant: "Astrology consultant",
874
- planFeaturePersonalizedReading: "Personalized reading",
875
- planFeatureIncludesPremium: "Includes everything in the Premium Personalized Kundli",
876
- planFeatureExpertAnswers: "PLUS: Personalized answer, remedies and timelines from an expert astrologer",
877
- planFeatureFollowUpQuestions: "Go deeper into asking follow up questions",
878
- planFeatureNoConsultation: "No personal consultation call",
879
- planFeaturePlusConsultation: "PLUS: A 30-minute private consultation with an expert astrologer",
880
- planFeatureRealTimeAnswers: "Get real-time answers & guidance for your biggest life concerns",
881
- planFeatureTailoredRemedies: "Remedies & timelines tailored to your unique birth chart",
882
- planQuestionLabel: "Ask your Question",
883
- planQuestionHeader: "Ask our top astrologers",
884
- planQuestionPlaceholder: "Ask follow up question",
885
- planQuestionHint: "Please enter your question to continue.",
886
- planQuestionChip1: "When will I get married?",
887
- planQuestionChip2: "When will I grow in my career?",
888
- planQuestionChip3: "Are there any doshas which is affecting me?",
889
- planQuestionChip4: "Is my current job right for me?",
890
- planAstrologerExp: "{{years}} Years of experience"
891
- },
892
- hi: {
893
- planSheetTitle: "अपनी कुंडली प्लान चुनें",
894
- planProceedToPayment: "पेमेंट करें",
895
- planAstrologerHeading: "हम आपके लिए नीचे दिए गए टॉप ज्योतिषियों में से एक को चुनेंगे",
896
- planMostPopular: "सबसे लोकप्रिय",
897
- planNew: "नया",
898
- planLimitedTimeCombo: "सीमित समय ऑफर",
899
- planNameBasic: "कुंडली रिपोर्ट",
900
- planNameQuestion: "कुंडली + 1 सवाल",
901
- planNameGuidance: "कुंडली रिपोर्ट + ज्योतिषी से बात",
902
- planSaveLabel: "~25% बचाएं",
903
- planFeatureDetailedInsights: "प्यार, विवाह, करियर, स्वास्थ्य और वित्त पर गहरी जानकारी",
904
- planFeaturePracticalRemedies: "रत्न, रुद्राक्ष और मंत्रों जैसे व्यावहारिक उपाय",
905
- planFeatureClearLanguage: "विशेषज्ञ ज्योतिषियों द्वारा स्पष्ट और आसान भाषा में",
906
- planFeatureAstrologyConsultant: "ज्योतिषी से बात नहीं होगी",
907
- planFeaturePersonalizedReading: "आपके लिए खास रीडिंग",
908
- planFeatureIncludesPremium: "प्रीमियम कुंडली रिपोर्ट में जो कुछ भी है, सब मिलेगा",
909
- planFeatureExpertAnswers: "PLUS: विशेषज्ञ ज्योतिषी से व्यक्तिगत जवाब, उपाय और समयरेखा पाएं",
910
- planFeatureFollowUpQuestions: "आगे के सवाल पूछने की सुविधा",
911
- planFeatureNoConsultation: "कोई व्यक्तिगत परामर्श कॉल नहीं",
912
- planFeaturePlusConsultation: "साथ ही: एक अनुभवी ज्योतिषी से 30 मिनट की प्राइवेट बात",
913
- planFeatureRealTimeAnswers: "अपनी सबसे बड़ी परेशानियों का सीधा जवाब और सही सलाह पाएं",
914
- planFeatureTailoredRemedies: "आपकी कुंडली के हिसाब से उपाय और सही समय की जानकारी",
915
- planQuestionLabel: "अपना सवाल पूछें",
916
- planQuestionHeader: "अपने सवाल हमारे टॉप ज्योतिषियों से पूछें",
917
- planQuestionPlaceholder: "फॉलो अप सवाल लिखें",
918
- planQuestionHint: "जारी रखने के लिए अपना सवाल लिखें।",
919
- planQuestionChip1: "मेरी शादी कब होगी?",
920
- planQuestionChip2: "मेरा करियर कब बेहतर होगा?",
921
- planQuestionChip3: "क्या कोई दोष है जो मुझे प्रभावित कर रहा है?",
922
- planQuestionChip4: "क्या मेरी मौजूदा नौकरी मेरे लिए सही है?",
923
- planAstrologerExp: "साल का अनुभव"
924
- }
925
- }, zt = (n) => [
926
- {
927
- id: "kundli-report",
928
- title: "planNameBasic",
929
- price: n ? "$25" : "₹499",
930
- features: [
931
- { text: "planFeatureDetailedInsights", included: !0 },
932
- { text: "planFeaturePracticalRemedies", included: !0 },
933
- { text: "planFeatureClearLanguage", included: !0 },
934
- { text: "planFeatureAstrologyConsultant", included: !1 },
935
- { text: "planFeaturePersonalizedReading", included: !1 }
936
- ]
937
- },
938
- {
939
- id: "kundli-report-question",
940
- title: "planNameQuestion",
941
- price: n ? "$31" : "₹899",
942
- supportsQuestion: !0,
943
- newBadge: "planLimitedTimeCombo",
944
- features: [
945
- { text: "planFeatureIncludesPremium", included: !0 },
946
- { text: "planFeatureExpertAnswers", included: !0 },
947
- { text: "planFeatureNoConsultation", included: !1 }
948
- ]
949
- },
950
- {
951
- id: "kundli-report-astrologer",
952
- title: "planNameGuidance",
953
- price: n ? "$41" : "₹999",
954
- originalPrice: n ? "$25+$25" : "₹499+₹850",
955
- savingsLabel: "planSaveLabel",
956
- badge: "planMostPopular",
957
- features: [
958
- { text: "planFeatureIncludesPremium", included: !0 },
959
- { text: "planFeaturePlusConsultation", included: !0 },
960
- { text: "planFeatureRealTimeAnswers", included: !0 },
961
- { text: "planFeatureTailoredRemedies", included: !0 }
962
- ],
963
- astrologers: Ae.filter(
964
- (t) => ["jyoti", "samiksha", "neeraj", "ashwini"].includes(t.id)
965
- )
966
- }
967
- ], _e = [
968
- "planQuestionChip1",
969
- "planQuestionChip2",
970
- "planQuestionChip3",
971
- "planQuestionChip4"
972
- ];
973
- Ae.slice(0, 3).map((n) => ({
974
- id: n.id,
975
- imageUrl: n.imageUrl,
976
- name: n.name
977
- }));
978
- const Wt = 5e3, Vt = 84, Yt = `
979
- @keyframes three-sku-slide-up {
980
- from { transform: translateY(100%); opacity: 0; }
981
- to { transform: translateY(0); opacity: 1; }
982
- }
983
- @keyframes three-sku-shimmer {
984
- 0% { left: -75%; }
985
- 60% { left: 125%; }
986
- 100% { left: 125%; }
987
- }
988
- `, Xt = ({ title: n, onClose: a }) => /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 px-4 pt-3 pb-1 sticky top-0 bg-white z-[2]", children: [
989
- /* @__PURE__ */ e.jsx(
990
- "button",
991
- {
992
- type: "button",
993
- onClick: a,
994
- "aria-label": "Go back",
995
- className: "w-8 h-8 rounded-full bg-transparent border-0 flex items-center justify-center text-gray-700 hover:bg-gray-100",
996
- children: /* @__PURE__ */ e.jsx(Ue, {})
997
- }
998
- ),
999
- /* @__PURE__ */ e.jsx("h2", { className: "flex-1 text-[16px] font-bold text-gray-900 m-0 pr-8", children: n })
1000
- ] }), Jt = () => /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ e.jsx("path", { d: "M8 1.5C11.5901 1.5 14.5 4.40986 14.5 8C14.5 11.5901 11.5901 14.5 8 14.5C4.40986 14.5 1.5 11.5901 1.5 8C1.5 4.40986 4.40986 1.5 8 1.5ZM11.71 5.6709C11.5284 5.46331 11.2128 5.44187 11.0049 5.62305L6.75 9.33594L4.99609 7.80469C4.78809 7.62318 4.47163 7.64562 4.29004 7.85352C4.10887 8.06152 4.13011 8.37711 4.33789 8.55859L6.42188 10.377C6.61019 10.5409 6.89091 10.5411 7.0791 10.377L11.6621 6.37695C11.8699 6.1954 11.8913 5.87889 11.71 5.6709Z", fill: "#159169" }) }), Zt = () => /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ e.jsx("path", { d: "M8 1.38086C11.6558 1.38086 14.619 4.34424 14.6191 8C14.6191 11.6559 11.6559 14.6191 8 14.6191C4.34424 14.619 1.38086 11.6558 1.38086 8C1.38101 4.34433 4.34433 1.38101 8 1.38086ZM11.1055 4.89648C10.8637 4.65473 10.4712 4.65473 10.2295 4.89648L8 7.125L5.77148 4.89648C5.52973 4.65473 5.13824 4.65473 4.89648 4.89648C4.65473 5.13824 4.65473 5.52973 4.89648 5.77148L7.125 8L4.89648 10.2295C4.65473 10.4712 4.65473 10.8637 4.89648 11.1055C5.13819 11.3464 5.52994 11.3467 5.77148 11.1055L8 8.87598L10.2295 11.1055C10.4713 11.3467 10.8639 11.347 11.1055 11.1055C11.347 10.8639 11.3467 10.4713 11.1055 10.2295L8.87598 8L11.1055 5.77148C11.3467 5.52994 11.3464 5.13819 11.1055 4.89648Z", fill: "#D93640" }) }), ea = () => /* @__PURE__ */ e.jsxs(
1001
- "svg",
1002
- {
1003
- width: "14",
1004
- height: "14",
1005
- viewBox: "0 0 24 24",
1006
- fill: "none",
1007
- stroke: "currentColor",
1008
- strokeWidth: "2.5",
1009
- strokeLinecap: "round",
1010
- strokeLinejoin: "round",
1011
- "aria-hidden": !0,
1012
- children: [
1013
- /* @__PURE__ */ e.jsx("polyline", { points: "23 6 13.5 15.5 8.5 10.5 1 18" }),
1014
- /* @__PURE__ */ e.jsx("polyline", { points: "17 6 23 6 23 12" })
1015
- ]
1016
- }
1017
- ), na = ({ plan: n, t: a }) => /* @__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: n.features.map((t, o) => /* @__PURE__ */ e.jsxs("li", { className: "flex items-start gap-3", children: [
1018
- /* @__PURE__ */ e.jsx("span", { className: "shrink-0 mt-[1px]", children: t.included ? /* @__PURE__ */ e.jsx(Jt, {}) : /* @__PURE__ */ e.jsx(Zt, {}) }),
1019
- /* @__PURE__ */ e.jsx("span", { className: "text-[14px] leading-[20px] text-gray-700", children: a(t.text) })
1020
- ] }, o)) }) }), ta = ({
1021
- chipKeys: n,
1022
- t: a,
1023
- onChipClick: t
1024
- }) => {
1025
- const o = Math.ceil(n.length / 2), s = [n.slice(0, o), n.slice(o)];
1026
- 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: s.map((l, c) => /* @__PURE__ */ e.jsx("div", { className: "flex gap-2", children: l.map((m) => /* @__PURE__ */ e.jsx(
1027
- "button",
1028
- {
1029
- type: "button",
1030
- 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",
1031
- onClick: () => t(m, n.indexOf(m)),
1032
- children: a(m)
1033
- },
1034
- m
1035
- )) }, c)) }) });
1036
- }, aa = ({
1037
- textareaRef: n,
1038
- value: a,
1039
- label: t,
1040
- placeholder: o,
1041
- chipKeys: s,
1042
- t: l,
1043
- onFocus: c,
1044
- onClick: m,
1045
- onChange: i,
1046
- onChipClick: h,
1047
- onViewSample: b
1048
- }) => /* @__PURE__ */ e.jsxs("div", { className: "mt-4 flex flex-col gap-2", children: [
1049
- /* @__PURE__ */ e.jsx(
1050
- "div",
1051
- {
1052
- className: "w-full h-px mb-2",
1053
- style: {
1054
- backgroundImage: "repeating-linear-gradient(to right, #D1D5DB, #D1D5DB 4px, transparent 4px, transparent 8px)"
1055
- }
1056
- }
1057
- ),
1058
- /* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-between", children: [
1059
- /* @__PURE__ */ e.jsxs("label", { className: "text-[14px] font-semibold text-gray-900", htmlFor: "kundli-question", children: [
1060
- t,
1061
- /* @__PURE__ */ e.jsx("span", { className: "text-[#e05c2a] ml-0.5", children: "*" })
1062
- ] }),
1063
- b && /* @__PURE__ */ e.jsxs(
1064
- "button",
1065
- {
1066
- type: "button",
1067
- onClick: b,
1068
- className: "flex items-center gap-1 text-[13px] font-semibold text-[#e05c2a] underline underline-offset-2",
1069
- children: [
1070
- /* @__PURE__ */ e.jsxs("svg", { width: "13", height: "13", viewBox: "0 0 24 24", fill: "none", "aria-hidden": !0, children: [
1071
- /* @__PURE__ */ e.jsx("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
1072
- /* @__PURE__ */ e.jsx("polyline", { points: "14 2 14 8 20 8", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
1073
- /* @__PURE__ */ e.jsx("line", { x1: "16", y1: "13", x2: "8", y2: "13", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" }),
1074
- /* @__PURE__ */ e.jsx("line", { x1: "16", y1: "17", x2: "8", y2: "17", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" })
1075
- ] }),
1076
- "View sample answer"
1077
- ]
1078
- }
1079
- )
1080
- ] }),
1081
- /* @__PURE__ */ e.jsx(
1082
- "textarea",
1083
- {
1084
- id: "kundli-question",
1085
- ref: n,
1086
- className: "w-full resize-none overflow-y-auto border-[1.5px] border-[#F99724] rounded-[10px] p-4 text-left align-top text-[14px] text-gray-900 leading-5 box-border outline-none focus:border-[#e05c2a] focus:shadow-[0_0_0_3px_rgba(224,92,42,0.12)] placeholder:text-left placeholder:text-gray-400",
1087
- style: { height: "100px" },
1088
- placeholder: o,
1089
- value: a,
1090
- onFocus: c,
1091
- onClick: m,
1092
- onChange: i
1093
- }
1094
- ),
1095
- /* @__PURE__ */ e.jsx(ta, { chipKeys: s, t: l, onChipClick: h })
1096
- ] }), sa = "_card_62fy9_1", ia = "_top_62fy9_15", oa = "_avatar_62fy9_21", la = "_avatarPlaceholder_62fy9_38", ra = "_basicInfo_62fy9_44", ca = "_name_62fy9_51", da = "_exp_62fy9_61", ua = "_langs_62fy9_62", pa = "_divider_62fy9_69", ma = "_certList_62fy9_75", ha = "_certItem_62fy9_81", ga = "_bullet_62fy9_90", E = {
1097
- card: sa,
1098
- top: ia,
1099
- avatar: oa,
1100
- avatarPlaceholder: la,
1101
- basicInfo: ra,
1102
- name: ca,
1103
- exp: da,
1104
- langs: ua,
1105
- divider: pa,
1106
- certList: ma,
1107
- certItem: ha,
1108
- bullet: ga
1109
- }, xa = ({ astrologer: n, t: a }) => /* @__PURE__ */ e.jsxs("div", { className: E.card, children: [
1110
- /* @__PURE__ */ e.jsxs("div", { className: E.top, children: [
1111
- /* @__PURE__ */ e.jsx("div", { className: E.avatar, "aria-hidden": !0, children: n.imageUrl ? /* @__PURE__ */ e.jsx("img", { src: n.imageUrl, alt: a?.(n.name) ?? n.name, width: 40, height: 40 }) : /* @__PURE__ */ e.jsx("span", { className: E.avatarPlaceholder, children: n.name.charAt(0) }) }),
1112
- /* @__PURE__ */ e.jsxs("div", { className: E.basicInfo, children: [
1113
- /* @__PURE__ */ e.jsx("p", { className: E.name, children: a?.(n.name) ?? n.name }),
1114
- /* @__PURE__ */ e.jsx("p", { className: E.exp, children: a?.(n.experience) ?? n.experience }),
1115
- n.languages && n.languages.length > 0 && /* @__PURE__ */ e.jsx("p", { className: E.langs, children: n.languages.map((t) => a?.(t) ?? t).join(" • ") })
1116
- ] })
1117
- ] }),
1118
- /* @__PURE__ */ e.jsx("div", { className: E.divider }),
1119
- /* @__PURE__ */ e.jsx("div", { className: E.certList, children: n.certifications.map((t, o) => /* @__PURE__ */ e.jsxs("p", { className: E.certItem, children: [
1120
- /* @__PURE__ */ e.jsx("span", { className: E.bullet, children: "✓" }),
1121
- " ",
1122
- a?.(t) ?? t
1123
- ] }, o)) })
1124
- ] }), fa = ({
1125
- astrologers: n,
1126
- heading: a,
1127
- t
1128
- }) => /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1129
- /* @__PURE__ */ e.jsx(
1130
- "div",
1131
- {
1132
- className: "w-full h-px my-3",
1133
- style: {
1134
- backgroundImage: "repeating-linear-gradient(to right, #D1D5DB, #D1D5DB 4px, transparent 4px, transparent 8px)"
1135
- }
1136
- }
1137
- ),
1138
- /* @__PURE__ */ e.jsx("p", { className: "m-0 mt-4 text-[14px] font-semibold text-[#1D2125]", children: a }),
1139
- /* @__PURE__ */ e.jsx(
1140
- "div",
1141
- {
1142
- className: "flex overflow-x-auto gap-3 mt-3 pb-1 scroll-smooth [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
1143
- role: "list",
1144
- children: n.map((o, s) => /* @__PURE__ */ e.jsx("div", { role: "listitem", children: /* @__PURE__ */ e.jsx(xa, { astrologer: o, t }) }, s))
1145
- }
1146
- )
1147
- ] }), _a = ({
1148
- plans: n,
1149
- selectedId: a,
1150
- t,
1151
- analytics: o,
1152
- onSelectPlan: s
1153
- }) => (
1154
- /*
1155
- * pt-[18px] reserves space for the badge that floats above the card.
1156
- * Each card wrapper is `relative overflow-visible` so the badge can
1157
- * sit above the card boundary without being clipped by the sheet's
1158
- * overflow-hidden (the badge's nearest `overflow-hidden` ancestor is
1159
- * now the sticky footer, not the sheet, which doesn't clip it).
1160
- */
1161
- /* @__PURE__ */ e.jsx("div", { className: "flex gap-2 pt-[18px] pb-3", role: "radiogroup", "aria-label": "Select plan", children: n.map((l) => /* @__PURE__ */ e.jsxs("div", { className: "flex-1 relative min-w-[106px]", children: [
1162
- l.badge && /* @__PURE__ */ e.jsxs("span", { className: "absolute -top-[18px] left-0 right-0 inline-flex items-center justify-center gap-1 whitespace-nowrap rounded-t-xl bg-[linear-gradient(180deg,#751139_0%,#D51F68_100%)] px-2 py-[6px] text-[11px] font-bold text-white z-10", children: [
1163
- /* @__PURE__ */ e.jsx(ea, {}),
1164
- t(l.badge)
1165
- ] }),
1166
- /* @__PURE__ */ e.jsxs(
1167
- "button",
1168
- {
1169
- type: "button",
1170
- role: "radio",
1171
- "aria-checked": l.id === a,
1172
- className: [
1173
- "relative w-full flex flex-col items-center justify-center gap-1 px-1 pt-3 pb-6 min-h-[125px] rounded-xl border-[1.5px] cursor-pointer text-center outline-none transition-colors overflow-hidden",
1174
- l.id === a ? "border-[#e05c2a] bg-[#fff8f4]" : "border-gray-200 bg-white"
1175
- ].join(" "),
1176
- onClick: () => {
1177
- o?.trackPlanSelected?.({ planId: l.id, planName: l.title }), s(l);
1178
- },
1179
- children: [
1180
- /* @__PURE__ */ e.jsx(
1181
- "span",
1182
- {
1183
- className: `text-[14px] leading-snug ${l.id === a ? "font-bold text-gray-900" : "font-semibold text-gray-600"}`,
1184
- children: t(l.title)
1185
- }
1186
- ),
1187
- /* @__PURE__ */ e.jsx("span", { className: "text-[15px] font-bold text-[#1D2125] leading-tight", children: l.price }),
1188
- l.newBadge && /* @__PURE__ */ e.jsxs(
1189
- "span",
1190
- {
1191
- className: "absolute bottom-[6px] left-0 right-0 inline-flex items-center justify-center gap-[3px] text-[10px] font-bold leading-tight",
1192
- style: {
1193
- background: "linear-gradient(90deg, #793F15 0%, #E1561F 100%)",
1194
- WebkitBackgroundClip: "text",
1195
- WebkitTextFillColor: "transparent",
1196
- backgroundClip: "text"
1197
- },
1198
- children: [
1199
- "⏳ ",
1200
- t(l.newBadge)
1201
- ]
1202
- }
1203
- )
1204
- ]
1205
- }
1206
- )
1207
- ] }, l.id)) })
1208
- ), ba = ({
1209
- canProceed: n,
1210
- label: a,
1211
- showDisabledHint: t,
1212
- hintText: o,
1213
- onClick: s
1214
- }) => /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1215
- t && /* @__PURE__ */ e.jsx("p", { className: "m-0 mb-2 text-xs text-[#e05c2a] text-center", role: "alert", children: o }),
1216
- /* @__PURE__ */ e.jsxs(
1217
- "button",
1218
- {
1219
- className: [
1220
- "relative overflow-hidden w-full h-[50px] rounded-[14px] border-0 text-white text-[17px] font-bold cursor-pointer flex items-center justify-center transition-all duration-200",
1221
- n ? "bg-gradient-to-b from-[#F97316] to-[#EA580C] shadow-[0_6px_14px_rgba(234,88,12,0.25)] hover:from-[#fb923c] hover:to-[#f97316] active:scale-[0.98] active:shadow-[0_3px_8px_rgba(234,88,12,0.2)]" : "bg-gray-300 text-gray-400 shadow-none cursor-not-allowed"
1222
- ].join(" "),
1223
- style: { fontFamily: "inherit" },
1224
- "aria-disabled": !n,
1225
- onClick: s,
1226
- children: [
1227
- n && /* @__PURE__ */ e.jsx(
1228
- "span",
1229
- {
1230
- className: "absolute top-0 w-1/2 h-full pointer-events-none",
1231
- "aria-hidden": "true",
1232
- style: {
1233
- background: "linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0) 100%)",
1234
- transform: "skewX(-20deg)",
1235
- animation: "three-sku-shimmer 3s ease-in-out infinite",
1236
- left: "-75%"
1237
- }
1238
- }
1239
- ),
1240
- /* @__PURE__ */ e.jsx("span", { className: "relative z-[1]", children: a })
1241
- ]
1242
- }
1243
- )
1244
- ] }), ja = ({
1245
- isOpen: n,
1246
- onClose: a,
1247
- selectedPlan: t,
1248
- onSelectPlan: o,
1249
- plans: s,
1250
- onProceed: l,
1251
- locale: c = "en",
1252
- t: m,
1253
- analytics: i,
1254
- isGlobal: h = !0,
1255
- oneQuestionSampleHref: b
1256
- }) => {
1257
- const p = X((g) => (fe[c] ?? fe.en)[g] ?? m?.(g) ?? g, [c, m]), u = pe(() => s ?? zt(h), [s, h]), y = t?.id || u.find((g) => g.badge)?.id || u[0]?.id || "", L = _(null), P = _(null), I = _(null), f = _(!1), [d, w] = R(""), [v, T] = R(!1), [A, U] = R("custom"), [K, Q] = R(null), [H, W] = R(!1), G = _(!1), V = _(null), C = pe(() => u.find((g) => g.id === y) ?? u[0], [u, y]), x = !!C?.supportsQuestion, oe = !x || d.trim().length > 0, se = X(() => {
1258
- const g = V.current;
1259
- g && (g.style.height = "auto", g.style.height = Math.max(100, Math.min(g.scrollHeight, Vt)) + "px");
1260
- }, []);
1261
- N(() => {
1262
- if (n) {
1263
- if (!t) {
1264
- const g = u.find((k) => k.badge) ?? u[0];
1265
- g && o(g);
1266
- }
1267
- f.current || (i?.trackPlanPageViewed?.(), f.current = !0);
1268
- } else
1269
- f.current = !1;
1270
- }, [n, u, t, o, i]), N(() => {
1271
- if (!n) return;
1272
- const g = document.body.style.overflow;
1273
- return document.body.style.overflow = "hidden", () => {
1274
- document.body.style.overflow = g;
1275
- };
1276
- }, [n]);
1277
- const le = () => {
1278
- i?.trackPlanPageClosed?.(), a();
1279
- }, F = (g) => {
1280
- const k = P.current, J = I.current;
1281
- if (k && J) {
1282
- const ee = J.getBoundingClientRect().top - k.getBoundingClientRect().top + k.scrollTop;
1283
- k.scrollTo({ top: ee, behavior: "smooth" });
1284
- }
1285
- G.current || (G.current = !0, i?.trackQuestionTextboxClicked?.({
1286
- entry_method: g,
1287
- textbox_empty: d.length === 0
1288
- }));
1289
- }, re = (g) => {
1290
- const k = g.target.value.slice(0, Wt);
1291
- A === "chip" && k !== p(_e[K ?? 0]) && U("chip_edited"), w(k), se(), H && W(!1);
1292
- }, r = (g, k) => {
1293
- const J = p(g), ee = d.length > 0 && A !== "chip";
1294
- i?.trackPreSuggestedQuestionSelected?.({
1295
- question_text_loaded: J,
1296
- chip_index: k,
1297
- previous_chip_index: K,
1298
- user_had_custom_text: ee
1299
- }), w(J), U("chip"), Q(k), G.current = !1, setTimeout(se, 0);
1300
- }, $ = () => {
1301
- if (C) {
1302
- if (x && !d.trim()) {
1303
- W(!0);
1304
- return;
1305
- }
1306
- i?.trackPlanProceedClicked?.({
1307
- planId: C.id,
1308
- planName: C.title,
1309
- price: C.price,
1310
- currency: h ? "USD" : "INR",
1311
- question_asked: x ? !0 : void 0,
1312
- question_text: x ? d.trim() : void 0,
1313
- question_source: x ? A : void 0
1314
- }), l(C, x ? d.trim() : void 0), a();
1315
- }
1316
- };
1317
- return n ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1318
- /* @__PURE__ */ e.jsx("style", { children: Yt }),
1319
- /* @__PURE__ */ e.jsx(
1320
- "div",
1321
- {
1322
- className: "fixed inset-0 z-[1000] bg-black/55 flex items-stretch justify-center",
1323
- role: "dialog",
1324
- "aria-modal": "true",
1325
- "aria-label": p("planSheetTitle"),
1326
- children: /* @__PURE__ */ e.jsxs(
1327
- "div",
1328
- {
1329
- ref: L,
1330
- className: "pt-3 w-full max-w-[480px] h-[100dvh] max-h-[100dvh] bg-white flex flex-col overflow-hidden",
1331
- style: { animation: "three-sku-slide-up 0.28s cubic-bezier(0.32, 0.72, 0, 1)" },
1332
- children: [
1333
- /* @__PURE__ */ e.jsx(Xt, { title: p("planSheetTitle"), onClose: le }),
1334
- /* @__PURE__ */ e.jsxs("div", { className: "flex-1 overflow-y-auto px-4 pt-4 pb-4", ref: P, children: [
1335
- /* @__PURE__ */ e.jsx("h3", { className: "m-0 mb-3 text-[16px] font-bold leading-snug text-[#CF6C09]", children: p(C?.title ?? "") }),
1336
- C && /* @__PURE__ */ e.jsx(na, { plan: C, t: p }),
1337
- x && /* @__PURE__ */ e.jsx("div", { ref: I, children: /* @__PURE__ */ e.jsx(
1338
- aa,
1339
- {
1340
- textareaRef: V,
1341
- value: d,
1342
- label: p("planQuestionLabel"),
1343
- placeholder: p("planQuestionPlaceholder"),
1344
- chipKeys: _e,
1345
- t: p,
1346
- onFocus: () => F("keyboard_focus"),
1347
- onClick: () => F("tap"),
1348
- onChange: re,
1349
- onChipClick: r,
1350
- onViewSample: b ? () => {
1351
- i?.trackOneQuestionViewSampleReportClicked?.(), T(!0);
1352
- } : void 0
1353
- }
1354
- ) }),
1355
- C?.astrologers && C.astrologers.length > 0 && /* @__PURE__ */ e.jsx(
1356
- fa,
1357
- {
1358
- astrologers: C.astrologers,
1359
- heading: p("planAstrologerHeading"),
1360
- t: p
1361
- }
1362
- )
1363
- ] }),
1364
- /* @__PURE__ */ e.jsxs(
1365
- "div",
1366
- {
1367
- className: "px-4 pt-3.5 bg-white border-t border-gray-100 sticky bottom-0 z-[5] overflow-visible",
1368
- style: { paddingBottom: "calc(14px + env(safe-area-inset-bottom))" },
1369
- children: [
1370
- /* @__PURE__ */ e.jsx(
1371
- _a,
1372
- {
1373
- plans: u,
1374
- selectedId: y,
1375
- t: p,
1376
- analytics: i,
1377
- onSelectPlan: o
1378
- }
1379
- ),
1380
- /* @__PURE__ */ e.jsx(
1381
- ba,
1382
- {
1383
- canProceed: oe,
1384
- label: p("planProceedToPayment"),
1385
- showDisabledHint: H,
1386
- hintText: p("planQuestionHint"),
1387
- onClick: $
1388
- }
1389
- )
1390
- ]
1391
- }
1392
- )
1393
- ]
1394
- }
1395
- )
1396
- }
1397
- ),
1398
- b && /* @__PURE__ */ e.jsx(
1399
- Le,
1400
- {
1401
- isOpen: v,
1402
- onClose: () => T(!1),
1403
- title: "1 Question Sample Answer",
1404
- pdfUrl: b
1405
- }
1406
- )
1407
- ] }) : null;
1408
- }, ya = ({
1409
- kundliReportSampleHref: n,
1410
- analytics: a,
1411
- s: t
1412
- }) => /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1413
- /* @__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 }),
1414
- /* @__PURE__ */ e.jsx(
1415
- ue,
1416
- {
1417
- t: () => t.sampleLabelKundliReport.replace(`
1418
- `, " "),
1419
- pdfUrl: n,
1420
- analytics: a,
1421
- onClick: () => a?.trackKundliViewSampleImageClicked?.()
1422
- }
1423
- )
1424
- ] }), wa = "https://srm-cdn.a4b.io/yoda/1773317492292.pdf", va = "https://srm-cdn.a4b.io/yoda/1781248337750.pdf", be = {
1425
- en: {
1426
- sectionTitle: "Kundli Packages for you",
1427
- sampleReportsTitle: "View Sample Report",
1428
- onlyFor: "Only for",
1429
- uniqueFeatures: "Unique Features",
1430
- popularBadge: "Popular",
1431
- columnKundliReport: "Kundli Report",
1432
- columnReportPlusQuestion: "Report + 1 Question",
1433
- columnReportPlusQuestionSubtext: "(Answered by Astrologer)",
1434
- columnReportPlusConsultation: "Report + 30 min consultation",
1435
- sampleLabelKundliReport: "200+ page Kundli Report",
1436
- sampleLabelOneQuestion: "1 Question Sample Report",
1437
- rowLabels: [
1438
- `Personalised
1439
- Report`,
1440
- `Remedies:
1441
- gemstone,
1442
- pujas`,
1443
- `Detailed
1444
- question to
1445
- expert`,
1446
- `Relationship
1447
- manager`,
1448
- `30-min
1449
- astrologer
1450
- call`
1451
- ]
1452
- },
1453
- hi: {
1454
- sectionTitle: "आपके लिए कुंडली पैकेज",
1455
- sampleReportsTitle: "सैम्पल रिपोर्ट देखें",
1456
- onlyFor: "कीमत",
1457
- uniqueFeatures: "खास सुविधाएं",
1458
- popularBadge: "लोकप्रिय",
1459
- columnKundliReport: "कुंडली रिपोर्ट",
1460
- columnReportPlusQuestion: "रिपोर्ट + 1 सवाल",
1461
- columnReportPlusQuestionSubtext: "(ज्योतिषी से जवाब)",
1462
- columnReportPlusConsultation: "रिपोर्ट + 30 मिनट परामर्श",
1463
- sampleLabelKundliReport: `200+ पेज की
1464
- कुंडली रिपोर्ट`,
1465
- sampleLabelOneQuestion: `1 सवाल वाली
1466
- सैम्पल रिपोर्ट`,
1467
- rowLabels: [
1468
- `व्यक्तिगत
1469
- रिपोर्ट`,
1470
- `उपाय: रत्न,
1471
- पूजा`,
1472
- `विशेषज्ञ से
1473
- विस्तृत सवाल`,
1474
- `रिलेशनशिप
1475
- मैनेजर`,
1476
- `30 मिनट
1477
- ज्योतिषी कॉल`
1478
- ]
1479
- }
1480
- }, Ca = (n) => be[n] ?? be.en, ka = "https://srm-cdn.a4b.io/yoda/1770362713543.svg", Na = (n, a) => Ce[n]?.[a] ?? a, Pa = 112;
1481
- function D({
1482
- section: n,
1483
- children: a,
1484
- onImpression: t
1485
- }) {
1486
- const o = _(null), s = _(!1);
1487
- return N(() => {
1488
- const l = o.current;
1489
- if (!l) return;
1490
- const c = new IntersectionObserver(
1491
- ([m]) => {
1492
- !m?.isIntersecting || s.current || (s.current = !0, t(n));
1493
- },
1494
- {
1495
- threshold: 0.1,
1496
- // Shrink bottom of viewport by CTA footer height so we only count content actually visible above the sticky footer
1497
- rootMargin: `0px 0px -${Pa}px 0px`
1498
- }
1499
- );
1500
- return c.observe(l), () => c.disconnect();
1501
- }, [n, t]), /* @__PURE__ */ e.jsx("div", { ref: o, children: a });
1502
- }
1503
- function Ia({
1504
- className: n,
1505
- showInlineForm: a = !1,
1506
- enableThreeSkuFlow: t = !1,
1507
- kundliReportSampleHref: o = wa,
1508
- oneQuestionSampleHref: s = va
1509
- }) {
1510
- const l = ye(), {
1511
- locale: c,
1512
- setLocale: m,
1513
- config: i,
1514
- formValues: h,
1515
- setFormValues: b
1516
- } = de(), [p, u] = R(!1), [y, L] = R(null), P = _(null), I = _(void 0), f = _(null), d = _(!1), w = X((r) => {
1517
- P.current = r, u(!0);
1518
- }, []), v = X(() => {
1519
- if (!P.current || !y) return;
1520
- const r = {
1521
- ...P.current,
1522
- _selectedPlan: y,
1523
- ...I.current !== void 0 ? { _question: I.current } : {}
1524
- };
1525
- I.current = void 0, y.id === $e && i.onProceedGuidance ? i.onProceedGuidance(r) : i.onProceed?.(r), u(!1), P.current = null;
1526
- }, [y, i.onProceed, i.onProceedGuidance]), [T, A] = R(!1), [U, K] = R(
1527
- i.isGlobal ?? !0 ? "+1" : "+91"
1528
- ), Q = _(null), H = _(null), W = _(i.locale), G = _(
1529
- l?.locale
1530
- );
1531
- N(() => {
1532
- i.locale && W.current !== i.locale && m(i.locale), W.current = i.locale;
1533
- }, [i.locale, m]), N(() => {
1534
- if (i.locale) return;
1535
- const r = l?.locale;
1536
- r && G.current !== r && m(r), G.current = r;
1537
- }, [l?.locale, i.locale, m]), N(() => {
1538
- K(i.isGlobal ?? !0 ? "+1" : "+91");
1539
- }, [i.isGlobal]);
1540
- const V = _(!1);
1541
- N(() => {
1542
- if (V.current || !a || i.autoOpenPlanSheet) return;
1543
- const r = i.initialFormValues;
1544
- if (!(!!r && (!!r.fullName || !!r.phone || !!r.email || !!r.gender || !!r.language_code || !!r.dateOfBirth || !!r.birthTime || !!r.birthPlace))) return;
1545
- V.current = !0;
1546
- const g = requestAnimationFrame(() => {
1547
- Q.current?.scrollIntoView({ behavior: "smooth", block: "start" });
1548
- });
1549
- return () => cancelAnimationFrame(g);
1550
- }, [a, i.autoOpenPlanSheet, i.initialFormValues]);
1551
- const C = _(!1);
1552
- N(() => {
1553
- if (C.current || !i.autoOpenPlanSheet) return;
1554
- C.current = !0, Q.current?.scrollIntoView({ behavior: "auto", block: "start" });
1555
- const r = (h.phone ?? "").trim();
1556
- w({
1557
- ...h,
1558
- phone: r && `${U}-${r}`
1559
- });
1560
- }, [i.autoOpenPlanSheet]), N(() => {
1561
- if (!T) return;
1562
- const r = ($) => {
1563
- H.current && !H.current.contains($.target) && A(!1);
1564
- };
1565
- return document.addEventListener("mousedown", r), () => document.removeEventListener("mousedown", r);
1566
- }, [T]), N(() => {
1567
- if (!t) return;
1568
- const r = f.current;
1569
- if (!r) return;
1570
- const $ = new IntersectionObserver(
1571
- ([g]) => {
1572
- d.current || !g?.isIntersecting || (g.intersectionRatio ?? 0) < 0.5 || (d.current = !0, i.analytics?.trackComparisonTableImpression?.());
1573
- },
1574
- { threshold: 0.5 }
1575
- );
1576
- return $.observe(r), () => $.disconnect();
1577
- }, [t, i.analytics]);
1578
- const x = (r) => Na(c, r), oe = i.showLanguageSelector ?? !0, se = i.resolvedUtmBannerImageUrl || void 0, le = oe ? /* @__PURE__ */ e.jsxs("div", { className: M.langDropdownWrap, ref: H, children: [
1579
- /* @__PURE__ */ e.jsxs(
1580
- "button",
1581
- {
1582
- type: "button",
1583
- className: M.langTrigger,
1584
- onClick: () => {
1585
- i.analytics?.trackLanguageClickedFe?.({ language: c }), A((r) => !r);
1586
- },
1587
- "aria-expanded": T,
1588
- "aria-haspopup": "listbox",
1589
- id: "kundli-lang",
1590
- "aria-label": x("language"),
1591
- children: [
1592
- /* @__PURE__ */ e.jsx(
1593
- "img",
1594
- {
1595
- src: ka,
1596
- alt: "",
1597
- className: M.langIcon,
1598
- width: 16,
1599
- height: 16,
1600
- "aria-hidden": !0
1601
- }
1602
- ),
1603
- /* @__PURE__ */ e.jsx("span", { className: M.langLabel, children: ie[c] })
1604
- ]
1605
- }
1606
- ),
1607
- T && /* @__PURE__ */ e.jsx(
1608
- "ul",
1609
- {
1610
- className: M.langMenu,
1611
- role: "listbox",
1612
- "aria-labelledby": "kundli-lang",
1613
- "aria-activedescendant": `kundli-lang-option-${c}`,
1614
- children: we.map((r) => /* @__PURE__ */ e.jsx(
1615
- "li",
1616
- {
1617
- id: `kundli-lang-option-${r}`,
1618
- role: "option",
1619
- "aria-selected": r === c,
1620
- className: M.langOption,
1621
- onClick: () => {
1622
- i.analytics?.trackLanguageChangedFe?.({ newLanguage: r }), m(r), A(!1);
1623
- },
1624
- children: ie[r]
1625
- },
1626
- r
1627
- ))
1628
- }
1629
- )
1630
- ] }) : null, F = X(
1631
- (r) => {
1632
- i.analytics?.trackDetailedKundliReportImpressionFe?.({
1633
- section: r,
1634
- timestamp: (/* @__PURE__ */ new Date()).toISOString()
1635
- });
1636
- },
1637
- [i.analytics]
1638
- ), re = X((r) => {
1639
- const g = {
1640
- fullName: "kundli-full-name",
1641
- phone: "kundli-phone",
1642
- email: "kundli-email",
1643
- dateOfBirth: "kundli-dob",
1644
- birthTime: "kundli-birth-time",
1645
- birthPlace: "kundli-birth-place",
1646
- gender: "kundli-gender-male",
1647
- language_code: "kundli-report-lang-hi"
1648
- }[r] ?? "kundli-full-name", k = document.getElementById(g);
1649
- if (k) {
1650
- const ee = k.getBoundingClientRect().top + window.scrollY - 120;
1651
- window.scrollTo({
1652
- top: ee,
1653
- behavior: "smooth"
1654
- }), setTimeout(() => k.focus(), 500);
1655
- }
1656
- }, []);
1657
- return /* @__PURE__ */ e.jsxs("div", { className: `${M.container} ${n}`, children: [
1658
- /* @__PURE__ */ e.jsx(
1659
- ve,
1660
- {
1661
- t: x,
1662
- logoUrl: i.logoUrl,
1663
- languageSelector: le
1664
- }
1665
- ),
1666
- /* @__PURE__ */ e.jsxs("main", { className: M.main, children: [
1667
- /* @__PURE__ */ e.jsx(
1668
- D,
1669
- {
1670
- section: "hero",
1671
- onImpression: F,
1672
- children: /* @__PURE__ */ e.jsx(ke, { t: x })
1673
- }
1674
- ),
1675
- /* @__PURE__ */ e.jsx(
1676
- D,
1677
- {
1678
- section: "premium_report_overview",
1679
- onImpression: F,
1680
- children: /* @__PURE__ */ e.jsx(
1681
- Ne,
1682
- {
1683
- t: x,
1684
- reportImageUrl: i.reportImageUrl,
1685
- analytics: i.analytics,
1686
- utmBannerImageUrl: se,
1687
- utmBannerAltText: ""
1688
- }
1689
- )
1690
- }
1691
- ),
1692
- /* @__PURE__ */ e.jsx(
1693
- D,
1694
- {
1695
- section: "university_certification",
1696
- onImpression: F,
1697
- children: /* @__PURE__ */ e.jsx(
1698
- Pe,
1699
- {
1700
- t: x,
1701
- logoUrl: i.universityLogoUrls?.find((r) => !!r)
1702
- }
1703
- )
1704
- }
1705
- ),
1706
- /* @__PURE__ */ e.jsx(
1707
- D,
1708
- {
1709
- section: "three_steps_process",
1710
- onImpression: F,
1711
- children: /* @__PURE__ */ e.jsx(Ie, { t: x, locale: c, isGlobal: i.isGlobal })
1712
- }
1713
- ),
1714
- /* @__PURE__ */ e.jsx(
1715
- D,
1716
- {
1717
- section: "view_sample_report",
1718
- onImpression: F,
1719
- children: t ? /* @__PURE__ */ e.jsx("section", { className: "bg-white px-3", children: /* @__PURE__ */ e.jsx(
1720
- ya,
1721
- {
1722
- kundliReportSampleHref: o,
1723
- analytics: i.analytics,
1724
- s: Ca(c)
1725
- }
1726
- ) }) : /* @__PURE__ */ e.jsx(
1727
- ue,
1728
- {
1729
- t: x,
1730
- pdfUrl: i.sampleReportHref,
1731
- onClick: i.onViewSampleReport,
1732
- analytics: i.analytics
1733
- }
1734
- )
1735
- }
1736
- ),
1737
- a && /* @__PURE__ */ e.jsx(
1738
- D,
1739
- {
1740
- section: "inline_form",
1741
- onImpression: F,
1742
- children: /* @__PURE__ */ e.jsxs("div", { className: M.inlineFormWrap, ref: Q, children: [
1743
- /* @__PURE__ */ e.jsx(Be, { t: x, align: "center" }),
1744
- /* @__PURE__ */ e.jsx(
1745
- Oe,
1746
- {
1747
- t: x,
1748
- values: h,
1749
- onChange: b,
1750
- phoneIsdCode: U,
1751
- onPhoneIsdCodeChange: K,
1752
- showV1ExtraFields: !0,
1753
- analytics: i.analytics
1754
- }
1755
- ),
1756
- /* @__PURE__ */ e.jsx(
1757
- qe,
1758
- {
1759
- t: x,
1760
- values: h,
1761
- phoneIsdCode: U,
1762
- hideOriginalPrice: !0,
1763
- requireV1ExtraFields: !0,
1764
- onValidationFailed: re,
1765
- onProceed: i.onProceed,
1766
- href: i.proceedHref,
1767
- originalPriceLabel: i.originalPriceLabel,
1768
- discountedPriceLabel: i.discountedPriceLabel,
1769
- analytics: i.analytics,
1770
- className: M.inlineProceedFooter,
1771
- onProceedGuidance: i.onProceedGuidance,
1772
- showPlanSheet: w,
1773
- confirmPlan: v,
1774
- planSheetOpen: p,
1775
- selectedPlan: y
1776
- }
1777
- )
1778
- ] })
1779
- }
1780
- ),
1781
- /* @__PURE__ */ e.jsx(
1782
- D,
1783
- {
1784
- section: "what_youll_find",
1785
- onImpression: F,
1786
- children: /* @__PURE__ */ e.jsx(Te, { t: x })
1787
- }
1788
- ),
1789
- /* @__PURE__ */ e.jsx(
1790
- D,
1791
- {
1792
- section: "why_us",
1793
- onImpression: F,
1794
- children: /* @__PURE__ */ e.jsx(Fe, { t: x })
1795
- }
1796
- ),
1797
- /* @__PURE__ */ e.jsx(
1798
- D,
1799
- {
1800
- section: "feedback",
1801
- onImpression: F,
1802
- children: /* @__PURE__ */ e.jsx(
1803
- Re,
1804
- {
1805
- t: x,
1806
- readMoreHref: i.readMoreReviewsHref,
1807
- onReadMore: i.analytics?.trackReadMoreReviewsClicked ? () => i.analytics.trackReadMoreReviewsClicked() : void 0
1808
- }
1809
- )
1810
- }
1811
- ),
1812
- /* @__PURE__ */ e.jsx(
1813
- D,
1814
- {
1815
- section: "faq",
1816
- onImpression: F,
1817
- children: /* @__PURE__ */ e.jsx(Se, { t: x })
1818
- }
1819
- ),
1820
- /* @__PURE__ */ e.jsx(
1821
- D,
1822
- {
1823
- section: "contact_us",
1824
- onImpression: F,
1825
- children: /* @__PURE__ */ e.jsx(Ee, { t: x })
1826
- }
1827
- )
1828
- ] }),
1829
- t ? /* @__PURE__ */ e.jsx(
1830
- ja,
1831
- {
1832
- isOpen: p,
1833
- onClose: () => u(!1),
1834
- selectedPlan: y,
1835
- onSelectPlan: (r) => L(r),
1836
- isGlobal: i.isGlobal,
1837
- locale: c,
1838
- onProceed: (r, $) => {
1839
- I.current = $, v();
1840
- },
1841
- t: x,
1842
- analytics: i.analytics,
1843
- oneQuestionSampleHref: s
1844
- }
1845
- ) : /* @__PURE__ */ e.jsx(
1846
- Me,
1847
- {
1848
- isOpen: p,
1849
- onClose: () => u(!1),
1850
- selectedPlan: y,
1851
- onSelectPlan: (r) => L(r),
1852
- onProceed: () => {
1853
- v();
1854
- },
1855
- t: x,
1856
- analytics: i.analytics
1857
- }
1858
- )
1859
- ] });
1860
- }
1861
- const La = ({
1862
- className: n = "",
1863
- locale: a,
1864
- showLanguageSelector: t = !0,
1865
- showSheet: o,
1866
- userId: s,
1867
- isGlobal: l,
1868
- initialFormValues: c,
1869
- autoOpenPlanSheet: m,
1870
- googleMapsApiKey: i,
1871
- atlasSearchLocalities: h,
1872
- googleMapsAutocompleteEnabled: b,
1873
- enableThreeSkuFlow: p = !1,
1874
- kundliReportSampleHref: u,
1875
- oneQuestionSampleHref: y,
1876
- logoUrl: L,
1877
- reportImageUrl: P,
1878
- universityLogoUrls: I,
1879
- sampleReportHref: f,
1880
- onViewSampleReport: d,
1881
- ctaHref: w,
1882
- onCtaClick: v,
1883
- readMoreReviewsHref: T,
1884
- onProceed: A,
1885
- proceedHref: U,
1886
- originalPriceLabel: K,
1887
- discountedPriceLabel: Q,
1888
- discountPillLabel: H,
1889
- analytics: W,
1890
- onProceedGuidance: G,
1891
- onLocaleChange: V,
1892
- resolvedUtmBannerImageUrl: C
1893
- }) => /* @__PURE__ */ e.jsx(
1894
- je,
1895
- {
1896
- locale: a,
1897
- showLanguageSelector: t,
1898
- showSheet: o,
1899
- userId: s,
1900
- isGlobal: l,
1901
- variant: "v1",
1902
- initialFormValues: c,
1903
- autoOpenPlanSheet: m,
1904
- googleMapsApiKey: i,
1905
- atlasSearchLocalities: h,
1906
- googleMapsAutocompleteEnabled: b,
1907
- logoUrl: L,
1908
- reportImageUrl: P,
1909
- universityLogoUrls: I,
1910
- sampleReportHref: f,
1911
- onViewSampleReport: d,
1912
- ctaHref: w,
1913
- onCtaClick: v,
1914
- readMoreReviewsHref: T,
1915
- onProceed: A,
1916
- onProceedGuidance: G,
1917
- proceedHref: U,
1918
- originalPriceLabel: K,
1919
- discountedPriceLabel: Q,
1920
- discountPillLabel: H,
1921
- analytics: W,
1922
- onLocaleChange: V,
1923
- resolvedUtmBannerImageUrl: C,
1924
- children: /* @__PURE__ */ e.jsx(
1925
- Ia,
1926
- {
1927
- className: n,
1928
- showInlineForm: !0,
1929
- enableThreeSkuFlow: p,
1930
- kundliReportSampleHref: u,
1931
- oneQuestionSampleHref: y
1932
- }
1933
- )
1934
- }
1935
- ), Sa = ({ variant: n, ...a }) => {
1936
- const t = typeof window < "u" ? new URLSearchParams(window.location.search).get("variant") : null;
1937
- return (n ?? (t === "v1" ? "v1" : void 0)) === "v1" ? /* @__PURE__ */ e.jsx(La, { ...a }) : /* @__PURE__ */ e.jsx(Dt, { ...a });
1938
- }, Ea = "[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}";
1939
- export {
1940
- Ea as K,
1941
- bn as P,
1942
- Sa as a,
1943
- Dt as b,
1944
- La as c
1945
- };
1946
- //# sourceMappingURL=criticalCss-BSSdaBRZ.js.map