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