@srimandir/kundli-generator 5.30.2 → 5.30.3

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