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