@srimandir/kundli-matching-generator 11.4.0 → 11.5.0
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.
- package/dist/{criticalCss-CEpkFW1C.js → criticalCss-DowKZ-Dx.js} +119 -118
- package/dist/criticalCss-DowKZ-Dx.js.map +1 -0
- package/dist/kundli-matching-generator.js +1 -1
- package/dist/page-entry.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/criticalCss-CEpkFW1C.js.map +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import
|
|
1
|
+
import { d as ge, j as e, L as te, S as ke, u as Ie, D as Te, B as se, e as ne, v as Ce, c as Pe, I as Q, b as Se, f as re, t as Re } from "./image-CBEADGro.js";
|
|
2
|
+
import pe, { useState as P, useRef as w, useEffect as y, useMemo as Le, useCallback as ie } from "react";
|
|
3
3
|
import { FaStar as be, FaCheck as Be, FaQuoteLeft as Ae, FaQuoteRight as Ee } from "react-icons/fa";
|
|
4
4
|
import { FiChevronDown as $e } from "react-icons/fi";
|
|
5
5
|
import { MdOutlineSupportAgent as Ke } from "react-icons/md";
|
|
6
6
|
import { CircularMarquee as Oe } from "@srimandir/astrology-common";
|
|
7
7
|
import { createPortal as Fe } from "react-dom";
|
|
8
|
-
const De = "_header_15wki_1", Me = "_brand_15wki_15",
|
|
8
|
+
const De = "_header_15wki_1", Me = "_brand_15wki_15", Ve = "_logo_15wki_21", Ge = "_brandText_15wki_28", He = "_brandName_15wki_34", Ue = "_rating_15wki_41", We = "_starBox_15wki_50", qe = "_lang_15wki_59", ze = "_langButton_15wki_66", Ye = "_globe_15wki_84", Qe = "_langMenu_15wki_92", Xe = "_langOption_15wki_108", Je = "_langOptionActive_15wki_121", A = {
|
|
9
9
|
header: De,
|
|
10
10
|
brand: Me,
|
|
11
|
-
logo:
|
|
12
|
-
brandText:
|
|
11
|
+
logo: Ve,
|
|
12
|
+
brandText: Ge,
|
|
13
13
|
brandName: He,
|
|
14
14
|
rating: Ue,
|
|
15
15
|
starBox: We,
|
|
@@ -20,7 +20,7 @@ const De = "_header_15wki_1", Me = "_brand_15wki_15", Ge = "_logo_15wki_21", Ve
|
|
|
20
20
|
langOption: Xe,
|
|
21
21
|
langOptionActive: Je
|
|
22
22
|
}, Ze = "https://srm-cdn.a4b.io/yoda/1770362904947.svg", ea = "https://srm-cdn.a4b.io/yoda/1770362713543.svg", aa = ({ t: a, className: s = "" }) => {
|
|
23
|
-
const { locale: r, setLocale: t, config: i } =
|
|
23
|
+
const { locale: r, setLocale: t, config: i } = ge(), o = (i.showLanguageSelector ?? !0) && !i.isGlobal, [c, l] = P(!1), _ = w(null);
|
|
24
24
|
return y(() => {
|
|
25
25
|
if (!c) return;
|
|
26
26
|
const h = (f) => {
|
|
@@ -123,15 +123,15 @@ const De = "_header_15wki_1", Me = "_brand_15wki_15", Ge = "_logo_15wki_21", Ve
|
|
|
123
123
|
X(t) ? t : Z
|
|
124
124
|
), [h, f] = P(!1);
|
|
125
125
|
return y(() => {
|
|
126
|
-
const { variant:
|
|
127
|
-
_(
|
|
126
|
+
const { variant: p, source: u } = xe();
|
|
127
|
+
_(p);
|
|
128
128
|
try {
|
|
129
129
|
if (sessionStorage.getItem(le)) return;
|
|
130
130
|
sessionStorage.setItem(le, "1");
|
|
131
131
|
} catch {
|
|
132
132
|
}
|
|
133
133
|
i?.config.analytics?.trackFunnelEvent?.("kundli_landing_view", {
|
|
134
|
-
hero_image_url: oe(
|
|
134
|
+
hero_image_url: oe(p, c),
|
|
135
135
|
variant_source: u
|
|
136
136
|
});
|
|
137
137
|
}, [t]), h ? /* @__PURE__ */ e.jsxs("section", { className: `${E.hero} ${s}`, "aria-labelledby": "hero-title", "data-hero": !0, children: [
|
|
@@ -168,9 +168,9 @@ const De = "_header_15wki_1", Me = "_brand_15wki_15", Ge = "_logo_15wki_21", Ve
|
|
|
168
168
|
},
|
|
169
169
|
`${l}-${c}`
|
|
170
170
|
) });
|
|
171
|
-
},
|
|
172
|
-
section:
|
|
173
|
-
title:
|
|
171
|
+
}, ga = "_section_2axro_1", pa = "_title_2axro_10", ba = "_details_2axro_20", xa = "_spacer_2axro_36", fa = "_link_2axro_41", U = {
|
|
172
|
+
section: ga,
|
|
173
|
+
title: pa,
|
|
174
174
|
details: ba,
|
|
175
175
|
spacer: xa,
|
|
176
176
|
link: fa
|
|
@@ -190,7 +190,7 @@ const De = "_header_15wki_1", Me = "_brand_15wki_15", Ge = "_logo_15wki_21", Ve
|
|
|
190
190
|
/* @__PURE__ */ e.jsx("a", { href: `mailto:${de}`, className: U.link, children: de })
|
|
191
191
|
] })
|
|
192
192
|
] })
|
|
193
|
-
] }), Na = "_section_nrdji_1", wa = "_heading_nrdji_13", ka = "_title_nrdji_20", Ia = "_titleHighlight_nrdji_29", Ta = "_subtitle_nrdji_33", Ca = "_benefits_nrdji_41", Pa = "_benefit_nrdji_41", Sa = "_checkBase_nrdji_56", Ra = "_check_nrdji_56", La = "_benefitText_nrdji_72", Ba = "_astrologers_nrdji_81", Aa = "_astrologer_nrdji_81", Ea = "_photoFrame_nrdji_109", $a = "_photo_nrdji_109", Ka = "_astrologerText_nrdji_133", Oa = "_astrologerName_nrdji_143", Fa = "_astrologerYears_nrdji_149", Da = "_trusted_nrdji_155", Ma = "_avatars_nrdji_165",
|
|
193
|
+
] }), Na = "_section_nrdji_1", wa = "_heading_nrdji_13", ka = "_title_nrdji_20", Ia = "_titleHighlight_nrdji_29", Ta = "_subtitle_nrdji_33", Ca = "_benefits_nrdji_41", Pa = "_benefit_nrdji_41", Sa = "_checkBase_nrdji_56", Ra = "_check_nrdji_56", La = "_benefitText_nrdji_72", Ba = "_astrologers_nrdji_81", Aa = "_astrologer_nrdji_81", Ea = "_photoFrame_nrdji_109", $a = "_photo_nrdji_109", Ka = "_astrologerText_nrdji_133", Oa = "_astrologerName_nrdji_143", Fa = "_astrologerYears_nrdji_149", Da = "_trusted_nrdji_155", Ma = "_avatars_nrdji_165", Va = "_avatarFirst_nrdji_172", Ga = "_avatar_nrdji_165", Ha = "_trustedText_nrdji_195", j = {
|
|
194
194
|
section: Na,
|
|
195
195
|
heading: wa,
|
|
196
196
|
title: ka,
|
|
@@ -210,8 +210,8 @@ const De = "_header_15wki_1", Me = "_brand_15wki_15", Ge = "_logo_15wki_21", Ve
|
|
|
210
210
|
astrologerYears: Fa,
|
|
211
211
|
trusted: Da,
|
|
212
212
|
avatars: Ma,
|
|
213
|
-
avatarFirst:
|
|
214
|
-
avatar:
|
|
213
|
+
avatarFirst: Va,
|
|
214
|
+
avatar: Ga,
|
|
215
215
|
trustedText: Ha
|
|
216
216
|
}, Ua = ["astrologersBenefit1", "astrologersBenefit2", "astrologersBenefit3"], Wa = [
|
|
217
217
|
{ nameKey: "astrologerName1", yearsKey: "astrologersYears21", image: "https://srm-cdn.a4b.io/yoda/1790761299826.webp" },
|
|
@@ -258,13 +258,13 @@ const De = "_header_15wki_1", Me = "_brand_15wki_15", Ge = "_logo_15wki_21", Ve
|
|
|
258
258
|
)) }),
|
|
259
259
|
/* @__PURE__ */ e.jsx("p", { className: j.trustedText, children: a("astrologersTrusted") })
|
|
260
260
|
] })
|
|
261
|
-
] }), za = "
|
|
261
|
+
] }), za = "_section_8c8x2_1", Ya = "_heading_8c8x2_9", Qa = "_title_8c8x2_16", Xa = "_subtitle_8c8x2_24", Ja = "_cover_8c8x2_32", Za = "_coverVideo_8c8x2_39", et = "_list_8c8x2_46", at = "_listTitle_8c8x2_52", tt = "_cards_8c8x2_60", st = "_card_8c8x2_60", nt = "_cardCompact_8c8x2_76", rt = "_cardTightGap_8c8x2_80", it = "_cardText_8c8x2_84", ot = "_kundliIcon_8c8x2_93", ct = "_yogIcon_8c8x2_94", lt = "_diyaIcon_8c8x2_95", dt = "_cta_8c8x2_115", N = {
|
|
262
262
|
section: za,
|
|
263
263
|
heading: Ya,
|
|
264
264
|
title: Qa,
|
|
265
265
|
subtitle: Xa,
|
|
266
266
|
cover: Ja,
|
|
267
|
-
|
|
267
|
+
coverVideo: Za,
|
|
268
268
|
list: et,
|
|
269
269
|
listTitle: at,
|
|
270
270
|
cards: tt,
|
|
@@ -276,7 +276,7 @@ const De = "_header_15wki_1", Me = "_brand_15wki_15", Ge = "_logo_15wki_21", Ve
|
|
|
276
276
|
yogIcon: ct,
|
|
277
277
|
diyaIcon: lt,
|
|
278
278
|
cta: dt
|
|
279
|
-
}, mt = "https://srm-cdn.a4b.io/yoda/
|
|
279
|
+
}, mt = "https://srm-cdn.a4b.io/yoda/1791278148949.mp4", _t = "https://srm-cdn.a4b.io/yoda/1790662505738.webp", ht = "https://srm-cdn.a4b.io/yoda/1790754664513.webp", ut = "https://srm-cdn.a4b.io/yoda/1790662505737.webp", gt = ({
|
|
280
280
|
t: a,
|
|
281
281
|
onCtaClick: s,
|
|
282
282
|
className: r = ""
|
|
@@ -286,15 +286,16 @@ const De = "_header_15wki_1", Me = "_brand_15wki_15", Ge = "_logo_15wki_21", Ve
|
|
|
286
286
|
/* @__PURE__ */ e.jsx("p", { className: N.subtitle, children: a("reportHighlightsSubtitle") })
|
|
287
287
|
] }),
|
|
288
288
|
/* @__PURE__ */ e.jsx("div", { className: N.cover, children: /* @__PURE__ */ e.jsx(
|
|
289
|
-
"
|
|
289
|
+
"video",
|
|
290
290
|
{
|
|
291
291
|
src: mt,
|
|
292
|
-
|
|
293
|
-
className: N.
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
292
|
+
"aria-label": a("reportHighlightsTitle"),
|
|
293
|
+
className: N.coverVideo,
|
|
294
|
+
autoPlay: !0,
|
|
295
|
+
muted: !0,
|
|
296
|
+
loop: !0,
|
|
297
|
+
playsInline: !0,
|
|
298
|
+
preload: "metadata"
|
|
298
299
|
}
|
|
299
300
|
) }),
|
|
300
301
|
/* @__PURE__ */ e.jsxs("div", { className: N.list, children: [
|
|
@@ -315,8 +316,8 @@ const De = "_header_15wki_1", Me = "_brand_15wki_15", Ge = "_logo_15wki_21", Ve
|
|
|
315
316
|
] })
|
|
316
317
|
] }),
|
|
317
318
|
/* @__PURE__ */ e.jsx("button", { type: "button", className: N.cta, onClick: s, children: a("reportHighlightsCta") })
|
|
318
|
-
] }),
|
|
319
|
-
section:
|
|
319
|
+
] }), pt = "_section_1xtb8_1", bt = "_container_1xtb8_6", xt = "_babaImage_1xtb8_10", ft = "_bubble_1xtb8_18", vt = "_quote_1xtb8_37", yt = "_quoteClose_1xtb8_42", jt = "_messages_1xtb8_46", Nt = "_message_1xtb8_46", wt = "_messageActive_1xtb8_63", D = {
|
|
320
|
+
section: pt,
|
|
320
321
|
container: bt,
|
|
321
322
|
babaImage: xt,
|
|
322
323
|
bubble: ft,
|
|
@@ -336,24 +337,24 @@ const Ct = "input, textarea, select", he = () => typeof document < "u" && !!docu
|
|
|
336
337
|
}) => {
|
|
337
338
|
const o = r ?? se[s] ?? se.en, [c, l] = P(0), [_, h] = P(he);
|
|
338
339
|
y(() => {
|
|
339
|
-
const
|
|
340
|
-
return document.addEventListener("focusin",
|
|
341
|
-
document.removeEventListener("focusin",
|
|
340
|
+
const p = () => h(he()), u = () => setTimeout(p, 0);
|
|
341
|
+
return document.addEventListener("focusin", p), document.addEventListener("focusout", u), () => {
|
|
342
|
+
document.removeEventListener("focusin", p), document.removeEventListener("focusout", u);
|
|
342
343
|
};
|
|
343
344
|
}, []);
|
|
344
345
|
const f = w(null);
|
|
345
346
|
return y(() => {
|
|
346
|
-
const
|
|
347
|
-
f.current =
|
|
347
|
+
const p = Date.now(), u = f.current === null ? 0 : p - f.current;
|
|
348
|
+
f.current = p, !(_e >= Tt) && (_e += 1, i?.trackFunnelEvent?.("baba_rotation_view", {
|
|
348
349
|
rotation_index: c,
|
|
349
350
|
dwell_ms: u
|
|
350
351
|
}));
|
|
351
352
|
}, [c]), y(() => {
|
|
352
353
|
if (_ || o.length < 2) return;
|
|
353
|
-
const
|
|
354
|
+
const p = setInterval(() => {
|
|
354
355
|
l((u) => (u + 1) % o.length);
|
|
355
356
|
}, It);
|
|
356
|
-
return () => clearInterval(
|
|
357
|
+
return () => clearInterval(p);
|
|
357
358
|
}, [_, o.length]), /* @__PURE__ */ e.jsx("section", { className: `${D.section} ${t}`, children: /* @__PURE__ */ e.jsxs("div", { className: D.container, children: [
|
|
358
359
|
/* @__PURE__ */ e.jsx(
|
|
359
360
|
"img",
|
|
@@ -376,14 +377,14 @@ const Ct = "input, textarea, select", he = () => typeof document < "u" && !!docu
|
|
|
376
377
|
"aria-hidden": "true"
|
|
377
378
|
}
|
|
378
379
|
),
|
|
379
|
-
/* @__PURE__ */ e.jsx("div", { className: D.messages, "aria-live": "polite", children: o.map((
|
|
380
|
+
/* @__PURE__ */ e.jsx("div", { className: D.messages, "aria-live": "polite", children: o.map((p, u) => {
|
|
380
381
|
const k = u === c % o.length;
|
|
381
382
|
return /* @__PURE__ */ e.jsx(
|
|
382
383
|
"p",
|
|
383
384
|
{
|
|
384
385
|
className: `${D.message} ${k ? D.messageActive : ""}`,
|
|
385
386
|
"aria-hidden": !k,
|
|
386
|
-
children:
|
|
387
|
+
children: p
|
|
387
388
|
},
|
|
388
389
|
u
|
|
389
390
|
);
|
|
@@ -398,7 +399,7 @@ const Ct = "input, textarea, select", he = () => typeof document < "u" && !!docu
|
|
|
398
399
|
)
|
|
399
400
|
] })
|
|
400
401
|
] }) });
|
|
401
|
-
}, St = "_sneakPeek_6dtta_1", Rt = "_intro_6dtta_16", Lt = "_badge_6dtta_24", Bt = "_badgeStar_6dtta_34", At = "_badgeText_6dtta_43", Et = "_headingGroup_6dtta_51", $t = "_heading_6dtta_51", Kt = "_subheading_6dtta_66", Ot = "_carousel_6dtta_73", Ft = "_cardSlot_6dtta_90", Dt = "_card_6dtta_90", Mt = "_cardHeader_6dtta_105",
|
|
402
|
+
}, St = "_sneakPeek_6dtta_1", Rt = "_intro_6dtta_16", Lt = "_badge_6dtta_24", Bt = "_badgeStar_6dtta_34", At = "_badgeText_6dtta_43", Et = "_headingGroup_6dtta_51", $t = "_heading_6dtta_51", Kt = "_subheading_6dtta_66", Ot = "_carousel_6dtta_73", Ft = "_cardSlot_6dtta_90", Dt = "_card_6dtta_90", Mt = "_cardHeader_6dtta_105", Vt = "_cardNumber_6dtta_113", Gt = "_headerText_6dtta_130", Ht = "_cardTitle_6dtta_138", Ut = "_cardDescription_6dtta_147", Wt = "_cardBody_6dtta_154", qt = "_indicator_6dtta_161", zt = "_indicatorWarm_6dtta_170", Yt = "_miniPage_6dtta_174", Qt = "_miniPagePlain_6dtta_183", Xt = "_miniPageFramed_6dtta_187", Jt = "_miniBar_6dtta_193", Zt = "_miniBarTall_6dtta_203", es = "_miniBrand_6dtta_207", as = "_miniConfidential_6dtta_216", ts = "_miniConfidentialBold_6dtta_224", ss = "_scoreBody_6dtta_228", ns = "_couple_6dtta_235", rs = "_person_6dtta_243", is = "_personField_6dtta_250", os = "_personFieldGap_6dtta_255", cs = "_personLabel_6dtta_259", ls = "_personName_6dtta_266", ds = "_personValue_6dtta_267", ms = "_coupleDivider_6dtta_282", _s = "_scoreDivider_6dtta_291", hs = "_score_6dtta_228", us = "_scoreText_6dtta_308", gs = "_scoreLabel_6dtta_314", ps = "_scoreValue_6dtta_323", bs = "_scoreOutOf_6dtta_332", xs = "_matchPill_6dtta_340", fs = "_containsBody_6dtta_355", vs = "_containsTitle_6dtta_363", ys = "_containsGrid_6dtta_370", js = "_containsRow_6dtta_377", Ns = "_containsTile_6dtta_384", ws = "_moreSections_6dtta_401", ks = "_moreLine_6dtta_407", Is = "_moreText_6dtta_415", Ts = "_doshaBlock_6dtta_423", Cs = "_doshaLabel_6dtta_433", Ps = "_doshaTitle_6dtta_441", Ss = "_remedies_6dtta_452", Rs = "_remediesDivider_6dtta_459", Ls = "_remediesHeading_6dtta_467", Bs = "_remedyList_6dtta_475", As = "_remedyGroup_6dtta_481", Es = "_remedyGroup_mantra_6dtta_487", $s = "_remedyRow_6dtta_491", Ks = "_remedyRow_gem_6dtta_496", Os = "_remedyRow_mantra_6dtta_500", Fs = "_remedyEmoji_6dtta_505", Ds = "_remedyEmojiOm_6dtta_515", Ms = "_remedyLabel_6dtta_525", Vs = "_remedyItem_6dtta_533", Gs = "_remedyItem_gem_6dtta_540", Hs = "_remedyBullet_6dtta_544", Us = "_remedyDetail_6dtta_555", Ws = "_predictionBody_6dtta_563", qs = "_predictionTitle_6dtta_570", zs = "_predictionGrid_6dtta_578", Ys = "_predictionRow_6dtta_584", Qs = "_predictionTile_6dtta_590", Xs = "_predictionIcon_6dtta_602", Js = "_predictionLabel_6dtta_608", Zs = "_stats_6dtta_617", en = "_stat_6dtta_617", an = "_statValue_6dtta_640", tn = "_statLabel_6dtta_647", sn = "_statsDivider_6dtta_654", n = {
|
|
402
403
|
sneakPeek: St,
|
|
403
404
|
intro: Rt,
|
|
404
405
|
badge: Lt,
|
|
@@ -411,8 +412,8 @@ const Ct = "input, textarea, select", he = () => typeof document < "u" && !!docu
|
|
|
411
412
|
cardSlot: Ft,
|
|
412
413
|
card: Dt,
|
|
413
414
|
cardHeader: Mt,
|
|
414
|
-
cardNumber:
|
|
415
|
-
headerText:
|
|
415
|
+
cardNumber: Vt,
|
|
416
|
+
headerText: Gt,
|
|
416
417
|
cardTitle: Ht,
|
|
417
418
|
cardDescription: Ut,
|
|
418
419
|
cardBody: Wt,
|
|
@@ -438,8 +439,8 @@ const Ct = "input, textarea, select", he = () => typeof document < "u" && !!docu
|
|
|
438
439
|
scoreDivider: _s,
|
|
439
440
|
score: hs,
|
|
440
441
|
scoreText: us,
|
|
441
|
-
scoreLabel:
|
|
442
|
-
scoreValue:
|
|
442
|
+
scoreLabel: gs,
|
|
443
|
+
scoreValue: ps,
|
|
443
444
|
scoreOutOf: bs,
|
|
444
445
|
matchPill: xs,
|
|
445
446
|
containsBody: fs,
|
|
@@ -465,8 +466,8 @@ const Ct = "input, textarea, select", he = () => typeof document < "u" && !!docu
|
|
|
465
466
|
remedyEmoji: Fs,
|
|
466
467
|
remedyEmojiOm: Ds,
|
|
467
468
|
remedyLabel: Ms,
|
|
468
|
-
remedyItem:
|
|
469
|
-
remedyItem_gem:
|
|
469
|
+
remedyItem: Vs,
|
|
470
|
+
remedyItem_gem: Gs,
|
|
470
471
|
remedyBullet: Hs,
|
|
471
472
|
remedyDetail: Us,
|
|
472
473
|
predictionBody: Ws,
|
|
@@ -483,7 +484,7 @@ const Ct = "input, textarea, select", he = () => typeof document < "u" && !!docu
|
|
|
483
484
|
statsDivider: sn
|
|
484
485
|
}, nn = "_button_10l90_1", rn = {
|
|
485
486
|
button: nn
|
|
486
|
-
}, on = "_backdrop_pekod_1", cn = "_modal_pekod_21", ln = "_header_pekod_40", dn = "_title_pekod_49", mn = "_closeBtn_pekod_56", _n = "_content_pekod_76", hn = "_pdfFrame_pekod_84", un = "_pdfPages_pekod_92",
|
|
487
|
+
}, on = "_backdrop_pekod_1", cn = "_modal_pekod_21", ln = "_header_pekod_40", dn = "_title_pekod_49", mn = "_closeBtn_pekod_56", _n = "_content_pekod_76", hn = "_pdfFrame_pekod_84", un = "_pdfPages_pekod_92", gn = "_pdfError_pekod_97", pn = "_openInNewTab_pekod_123", M = {
|
|
487
488
|
backdrop: on,
|
|
488
489
|
modal: cn,
|
|
489
490
|
header: ln,
|
|
@@ -492,8 +493,8 @@ const Ct = "input, textarea, select", he = () => typeof document < "u" && !!docu
|
|
|
492
493
|
content: _n,
|
|
493
494
|
pdfFrame: hn,
|
|
494
495
|
pdfPages: un,
|
|
495
|
-
pdfError:
|
|
496
|
-
openInNewTab:
|
|
496
|
+
pdfError: gn,
|
|
497
|
+
openInNewTab: pn
|
|
497
498
|
};
|
|
498
499
|
function bn(a) {
|
|
499
500
|
typeof a < "u" && a.GlobalWorkerOptions && (a.GlobalWorkerOptions.workerSrc = `https://unpkg.com/pdfjs-dist@${a.version}/build/pdf.worker.min.js`);
|
|
@@ -505,7 +506,7 @@ const xn = 6, fn = ({
|
|
|
505
506
|
pdfUrl: t,
|
|
506
507
|
onPageView: i
|
|
507
508
|
}) => {
|
|
508
|
-
const o = w(null), [c, l] = P(!0), [_, h] = P(null), [f,
|
|
509
|
+
const o = w(null), [c, l] = P(!0), [_, h] = P(null), [f, p] = P(null);
|
|
509
510
|
return y(() => {
|
|
510
511
|
if (!a) return;
|
|
511
512
|
const u = (k) => {
|
|
@@ -516,7 +517,7 @@ const xn = 6, fn = ({
|
|
|
516
517
|
};
|
|
517
518
|
}, [a, s]), y(() => {
|
|
518
519
|
a && import("pdfjs-dist").then((u) => {
|
|
519
|
-
|
|
520
|
+
p(u);
|
|
520
521
|
}).catch((u) => {
|
|
521
522
|
h("Failed to load PDF viewer"), l(!1);
|
|
522
523
|
});
|
|
@@ -654,7 +655,7 @@ const xn = 6, fn = ({
|
|
|
654
655
|
];
|
|
655
656
|
function Tn({ t: a }) {
|
|
656
657
|
return /* @__PURE__ */ e.jsxs("div", { className: n.scoreBody, children: [
|
|
657
|
-
/* @__PURE__ */ e.jsx("div", { className: n.couple, children: Nn.map((s, r) => /* @__PURE__ */ e.jsxs(
|
|
658
|
+
/* @__PURE__ */ e.jsx("div", { className: n.couple, children: Nn.map((s, r) => /* @__PURE__ */ e.jsxs(pe.Fragment, { children: [
|
|
658
659
|
r > 0 && /* @__PURE__ */ e.jsx("span", { className: n.coupleDivider, "aria-hidden": "true" }),
|
|
659
660
|
/* @__PURE__ */ e.jsxs("div", { className: n.person, children: [
|
|
660
661
|
/* @__PURE__ */ e.jsxs("div", { className: n.personField, children: [
|
|
@@ -804,7 +805,7 @@ const Kn = ({
|
|
|
804
805
|
] })
|
|
805
806
|
] }) }, i.titleKey)) }),
|
|
806
807
|
/* @__PURE__ */ e.jsx(yn, { t: a, analytics: s }),
|
|
807
|
-
/* @__PURE__ */ e.jsx("div", { className: n.stats, children: jn.map((i, o) => /* @__PURE__ */ e.jsxs(
|
|
808
|
+
/* @__PURE__ */ e.jsx("div", { className: n.stats, children: jn.map((i, o) => /* @__PURE__ */ e.jsxs(pe.Fragment, { children: [
|
|
808
809
|
o > 0 && /* @__PURE__ */ e.jsx("span", { className: n.statsDivider, "aria-hidden": "true" }),
|
|
809
810
|
/* @__PURE__ */ e.jsxs("div", { className: n.stat, children: [
|
|
810
811
|
/* @__PURE__ */ e.jsx("span", { className: n.statValue, children: i.value }),
|
|
@@ -812,13 +813,13 @@ const Kn = ({
|
|
|
812
813
|
] })
|
|
813
814
|
] }, i.labelKey)) })
|
|
814
815
|
] });
|
|
815
|
-
}, On = "_testimonials_1ra9u_1", Fn = "_intro_1ra9u_12", Dn = "_heading_1ra9u_21", Mn = "_subheading_1ra9u_30",
|
|
816
|
+
}, On = "_testimonials_1ra9u_1", Fn = "_intro_1ra9u_12", Dn = "_heading_1ra9u_21", Mn = "_subheading_1ra9u_30", Vn = "_carouselWrapper_1ra9u_39", Gn = "_carousel_1ra9u_39", Hn = "_card_1ra9u_59", Un = "_cardActive_1ra9u_67", Wn = "_cardContent_1ra9u_71", qn = "_header_1ra9u_87", zn = "_avatar_1ra9u_93", Yn = "_headerInfo_1ra9u_101", Qn = "_name_1ra9u_108", Xn = "_rating_1ra9u_120", Jn = "_starFilled_1ra9u_126", Zn = "_starEmpty_1ra9u_131", er = "_review_1ra9u_136", ar = "_statsBar_1ra9u_145", tr = "_stat_1ra9u_145", sr = "_statValue_1ra9u_169", nr = "_statLabel_1ra9u_176", rr = "_statDivider_1ra9u_183", x = {
|
|
816
817
|
testimonials: On,
|
|
817
818
|
intro: Fn,
|
|
818
819
|
heading: Dn,
|
|
819
820
|
subheading: Mn,
|
|
820
|
-
carouselWrapper:
|
|
821
|
-
carousel:
|
|
821
|
+
carouselWrapper: Vn,
|
|
822
|
+
carousel: Gn,
|
|
822
823
|
card: Hn,
|
|
823
824
|
cardActive: Un,
|
|
824
825
|
cardContent: Wn,
|
|
@@ -841,7 +842,7 @@ const Kn = ({
|
|
|
841
842
|
className: r = "",
|
|
842
843
|
analytics: t
|
|
843
844
|
}) => {
|
|
844
|
-
const i = w(null), [o, c] = P(0), [l, _] = P(!1), h = w(null), f = w(!1),
|
|
845
|
+
const i = w(null), [o, c] = P(0), [l, _] = P(!1), h = w(null), f = w(!1), p = w(-1), u = s || [
|
|
845
846
|
{
|
|
846
847
|
name: a("testimonial1Name"),
|
|
847
848
|
avatarUrl: a("testimonial1Avatar"),
|
|
@@ -890,14 +891,14 @@ const Kn = ({
|
|
|
890
891
|
rating: 5,
|
|
891
892
|
review: a("testimonial8Review")
|
|
892
893
|
}
|
|
893
|
-
], k = [...u, ...u, ...u],
|
|
894
|
+
], k = [...u, ...u, ...u], g = u.length, I = g, T = (v, b = !0) => {
|
|
894
895
|
if (!i.current) return;
|
|
895
896
|
f.current = !0;
|
|
896
897
|
const R = i.current, $ = R.children[0];
|
|
897
898
|
if (!$) return;
|
|
898
|
-
const B = $.offsetWidth,
|
|
899
|
+
const B = $.offsetWidth, G = v * (B + ue);
|
|
899
900
|
R.scrollTo({
|
|
900
|
-
left:
|
|
901
|
+
left: G,
|
|
901
902
|
behavior: b ? "smooth" : "auto"
|
|
902
903
|
}), setTimeout(() => {
|
|
903
904
|
f.current = !1;
|
|
@@ -921,17 +922,17 @@ const Kn = ({
|
|
|
921
922
|
T(o, !0);
|
|
922
923
|
const v = setTimeout(() => {
|
|
923
924
|
if (i.current) {
|
|
924
|
-
if (o >=
|
|
925
|
-
const b = o -
|
|
925
|
+
if (o >= g * 2) {
|
|
926
|
+
const b = o - g;
|
|
926
927
|
c(b), T(b, !1);
|
|
927
|
-
} else if (o <
|
|
928
|
-
const b = o +
|
|
928
|
+
} else if (o < g) {
|
|
929
|
+
const b = o + g;
|
|
929
930
|
c(b), T(b, !1);
|
|
930
931
|
}
|
|
931
932
|
}
|
|
932
933
|
}, 700);
|
|
933
934
|
return () => clearTimeout(v);
|
|
934
|
-
}, [o,
|
|
935
|
+
}, [o, g]);
|
|
935
936
|
const L = () => {
|
|
936
937
|
!i.current || f.current || (h.current && clearTimeout(h.current), h.current = setTimeout(() => {
|
|
937
938
|
if (!i.current || f.current) return;
|
|
@@ -940,10 +941,10 @@ const Kn = ({
|
|
|
940
941
|
const $ = R.offsetWidth, K = Math.round(b / ($ + ue));
|
|
941
942
|
if (K !== o && K >= 0 && K < k.length) {
|
|
942
943
|
c(K);
|
|
943
|
-
const
|
|
944
|
-
|
|
945
|
-
reviewIndex:
|
|
946
|
-
reviewerName: u[
|
|
944
|
+
const G = K % g;
|
|
945
|
+
p.current !== G && t?.trackTestimonialScrolled && (p.current = G, t.trackTestimonialScrolled({
|
|
946
|
+
reviewIndex: G,
|
|
947
|
+
reviewerName: u[G]?.name || "",
|
|
947
948
|
isManualScroll: !0
|
|
948
949
|
}));
|
|
949
950
|
}
|
|
@@ -1024,7 +1025,7 @@ const Kn = ({
|
|
|
1024
1025
|
] })
|
|
1025
1026
|
] })
|
|
1026
1027
|
] });
|
|
1027
|
-
}, cr = "_section_zl813_1", lr = "_title_zl813_10", dr = "_list_zl813_20", mr = "_item_zl813_27", _r = "_itemOpen_zl813_34", hr = "_question_zl813_38", ur = "_questionText_zl813_57",
|
|
1028
|
+
}, cr = "_section_zl813_1", lr = "_title_zl813_10", dr = "_list_zl813_20", mr = "_item_zl813_27", _r = "_itemOpen_zl813_34", hr = "_question_zl813_38", ur = "_questionText_zl813_57", gr = "_answer_zl813_58", pr = "_chevron_zl813_66", V = {
|
|
1028
1029
|
section: cr,
|
|
1029
1030
|
title: lr,
|
|
1030
1031
|
list: dr,
|
|
@@ -1032,8 +1033,8 @@ const Kn = ({
|
|
|
1032
1033
|
itemOpen: _r,
|
|
1033
1034
|
question: hr,
|
|
1034
1035
|
questionText: ur,
|
|
1035
|
-
answer:
|
|
1036
|
-
chevron:
|
|
1036
|
+
answer: gr,
|
|
1037
|
+
chevron: pr
|
|
1037
1038
|
}, br = [
|
|
1038
1039
|
{ qKey: "faqQ1", aKey: "faqA1" },
|
|
1039
1040
|
{ qKey: "faqQ2", aKey: "faqA2" },
|
|
@@ -1041,26 +1042,26 @@ const Kn = ({
|
|
|
1041
1042
|
{ qKey: "faqQ4", aKey: "faqA4" }
|
|
1042
1043
|
], xr = ({ t: a, className: s = "", defaultOpenIndex: r = 2 }) => {
|
|
1043
1044
|
const [t, i] = P(r);
|
|
1044
|
-
return /* @__PURE__ */ e.jsxs("section", { className: `${
|
|
1045
|
-
/* @__PURE__ */ e.jsx("h2", { className:
|
|
1046
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
1045
|
+
return /* @__PURE__ */ e.jsxs("section", { className: `${V.section} ${s}`, children: [
|
|
1046
|
+
/* @__PURE__ */ e.jsx("h2", { className: V.title, children: a("faqTitle") }),
|
|
1047
|
+
/* @__PURE__ */ e.jsx("div", { className: V.list, children: br.map((o, c) => {
|
|
1047
1048
|
const l = t === c, _ = `kundli-matching-faq-${c}`;
|
|
1048
|
-
return /* @__PURE__ */ e.jsxs("div", { className: `${
|
|
1049
|
+
return /* @__PURE__ */ e.jsxs("div", { className: `${V.item} ${l ? V.itemOpen : ""}`, children: [
|
|
1049
1050
|
/* @__PURE__ */ e.jsxs(
|
|
1050
1051
|
"button",
|
|
1051
1052
|
{
|
|
1052
1053
|
type: "button",
|
|
1053
|
-
className:
|
|
1054
|
+
className: V.question,
|
|
1054
1055
|
"aria-expanded": l,
|
|
1055
1056
|
"aria-controls": _,
|
|
1056
1057
|
onClick: () => i(l ? null : c),
|
|
1057
1058
|
children: [
|
|
1058
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
1059
|
-
/* @__PURE__ */ e.jsx($e, { size: 24, strokeWidth: 1.5, className:
|
|
1059
|
+
/* @__PURE__ */ e.jsx("span", { className: V.questionText, children: a(o.qKey) }),
|
|
1060
|
+
/* @__PURE__ */ e.jsx($e, { size: 24, strokeWidth: 1.5, className: V.chevron, "aria-hidden": !0 })
|
|
1060
1061
|
]
|
|
1061
1062
|
}
|
|
1062
1063
|
),
|
|
1063
|
-
l && /* @__PURE__ */ e.jsx("div", { id: _, className:
|
|
1064
|
+
l && /* @__PURE__ */ e.jsx("div", { id: _, className: V.answer, children: a(o.aKey) })
|
|
1064
1065
|
] }, o.qKey);
|
|
1065
1066
|
}) })
|
|
1066
1067
|
] });
|
|
@@ -1102,8 +1103,8 @@ const Kn = ({
|
|
|
1102
1103
|
const _ = Le(
|
|
1103
1104
|
() => Kr(s, o, i),
|
|
1104
1105
|
[s, o, i]
|
|
1105
|
-
), h = _ === null, f = (
|
|
1106
|
-
if (
|
|
1106
|
+
), h = _ === null, f = (p) => {
|
|
1107
|
+
if (p.preventDefault(), c?.trackKundliMatchingL0CtaClick?.({
|
|
1107
1108
|
ctaText: a(h ? "ctaButtonSelectPlan" : "ctaButton"),
|
|
1108
1109
|
isFormComplete: h
|
|
1109
1110
|
}), !h) {
|
|
@@ -1120,8 +1121,8 @@ const Kn = ({
|
|
|
1120
1121
|
phone: "kundli-matching-phone",
|
|
1121
1122
|
email: "kundli-matching-email",
|
|
1122
1123
|
reportLanguage: "language-selector"
|
|
1123
|
-
}[_],
|
|
1124
|
-
|
|
1124
|
+
}[_], g = document.getElementById(k);
|
|
1125
|
+
g && (g.scrollIntoView({ behavior: "smooth", block: "center" }), (g.tagName === "INPUT" || g.tagName === "TEXTAREA") && setTimeout(() => g.focus(), 500));
|
|
1125
1126
|
}
|
|
1126
1127
|
return;
|
|
1127
1128
|
}
|
|
@@ -1169,11 +1170,11 @@ const Kn = ({
|
|
|
1169
1170
|
strokeWidth: "1.8",
|
|
1170
1171
|
strokeLinecap: "round"
|
|
1171
1172
|
}
|
|
1172
|
-
) }), Mr = () => /* @__PURE__ */ e.jsx("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": !0, children: /* @__PURE__ */ e.jsx("path", { d: "M15 18l-6-6 6-6" }) }),
|
|
1173
|
+
) }), Mr = () => /* @__PURE__ */ e.jsx("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": !0, children: /* @__PURE__ */ e.jsx("path", { d: "M15 18l-6-6 6-6" }) }), Vr = () => /* @__PURE__ */ e.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": !0, children: [
|
|
1173
1174
|
/* @__PURE__ */ e.jsx("polyline", { points: "23 6 13.5 15.5 8.5 10.5 1 18" }),
|
|
1174
1175
|
/* @__PURE__ */ e.jsx("polyline", { points: "17 6 23 6 23 12" })
|
|
1175
|
-
] }),
|
|
1176
|
-
overlay:
|
|
1176
|
+
] }), Gr = "_overlay_1tw1b_3", Hr = "_sheet_1tw1b_13", Ur = "_header_1tw1b_57", Wr = "_backBtn_1tw1b_69", qr = "_title_1tw1b_87", zr = "_plansContainer_1tw1b_99", Yr = "_planCard_1tw1b_108", Qr = "_withBadgeSpacing_1tw1b_122", Xr = "_planCardSelected_1tw1b_126", Jr = "_planCardPopular_1tw1b_131", Zr = "_popularBadge_1tw1b_140", ei = "_planCardInner_1tw1b_158", ai = "_planTitleRow_1tw1b_163", ti = "_planTitle_1tw1b_163", si = "_radioCircle_1tw1b_178", ni = "_radioChecked_1tw1b_191", ri = "_radioInner_1tw1b_196", ii = "_priceRow_1tw1b_204", oi = "_price_1tw1b_204", ci = "_originalPrice_1tw1b_217", li = "_savingsBadge_1tw1b_224", di = "_featureList_1tw1b_234", mi = "_featureItem_1tw1b_243", _i = "_featureIcon_1tw1b_249", hi = "_featureText_1tw1b_255", ui = "_astrologerHeading_1tw1b_262", gi = "_astrologerList_1tw1b_269", pi = "_astrologerCard_1tw1b_283", bi = "_astrologerAvatar_1tw1b_297", xi = "_astrologerAvatarPlaceholder_1tw1b_314", fi = "_astrologerTop_1tw1b_320", vi = "_astrologerBasicInfo_1tw1b_326", yi = "_astrologerName_1tw1b_333", ji = "_astrologerExp_1tw1b_342", Ni = "_astrologerDivider_1tw1b_348", wi = "_planDivider_1tw1b_354", ki = "_astrologerCertList_1tw1b_361", Ii = "_astrologerCertItem_1tw1b_367", Ti = "_bullet_1tw1b_375", Ci = "_footer_1tw1b_380", Pi = "_proceedBtn_1tw1b_390", Si = "_spinner_1tw1b_433", m = {
|
|
1177
|
+
overlay: Gr,
|
|
1177
1178
|
sheet: Hr,
|
|
1178
1179
|
header: Ur,
|
|
1179
1180
|
backBtn: Wr,
|
|
@@ -1199,8 +1200,8 @@ const Kn = ({
|
|
|
1199
1200
|
featureIcon: _i,
|
|
1200
1201
|
featureText: hi,
|
|
1201
1202
|
astrologerHeading: ui,
|
|
1202
|
-
astrologerList:
|
|
1203
|
-
astrologerCard:
|
|
1203
|
+
astrologerList: gi,
|
|
1204
|
+
astrologerCard: pi,
|
|
1204
1205
|
astrologerAvatar: bi,
|
|
1205
1206
|
astrologerAvatarPlaceholder: xi,
|
|
1206
1207
|
astrologerTop: fi,
|
|
@@ -1245,7 +1246,7 @@ const Kn = ({
|
|
|
1245
1246
|
s
|
|
1246
1247
|
] }, r)) })
|
|
1247
1248
|
] }), Ai = ({ label: a }) => /* @__PURE__ */ e.jsxs("div", { className: m.popularBadge, "aria-label": a, children: [
|
|
1248
|
-
/* @__PURE__ */ e.jsx(
|
|
1249
|
+
/* @__PURE__ */ e.jsx(Vr, {}),
|
|
1249
1250
|
/* @__PURE__ */ e.jsx("span", { children: a })
|
|
1250
1251
|
] }), Ei = ({ plan: a, isSelected: s, onSelect: r, t }) => {
|
|
1251
1252
|
const i = () => r(a.id), o = (c) => {
|
|
@@ -1352,34 +1353,34 @@ const Kn = ({
|
|
|
1352
1353
|
isGlobal: c = !1,
|
|
1353
1354
|
t: l
|
|
1354
1355
|
}) => {
|
|
1355
|
-
const _ = i ?? fe(c), h = r?.id || _.find((
|
|
1356
|
+
const _ = i ?? fe(c), h = r?.id || _.find((g) => g.badge)?.id || _[0]?.id || "", f = w(null), [p, u] = P("idle");
|
|
1356
1357
|
y(() => {
|
|
1357
1358
|
a && u("idle");
|
|
1358
1359
|
}, [a]);
|
|
1359
1360
|
const k = async () => {
|
|
1360
|
-
if (!r ||
|
|
1361
|
-
const
|
|
1362
|
-
if (!
|
|
1361
|
+
if (!r || p === "loading") return;
|
|
1362
|
+
const g = o(r);
|
|
1363
|
+
if (!g || typeof g.then != "function") {
|
|
1363
1364
|
s();
|
|
1364
1365
|
return;
|
|
1365
1366
|
}
|
|
1366
1367
|
u("loading");
|
|
1367
1368
|
try {
|
|
1368
|
-
await
|
|
1369
|
+
await g, s();
|
|
1369
1370
|
} catch {
|
|
1370
1371
|
u("error");
|
|
1371
1372
|
}
|
|
1372
1373
|
};
|
|
1373
1374
|
return y(() => {
|
|
1374
1375
|
if (a && !r) {
|
|
1375
|
-
const
|
|
1376
|
-
|
|
1376
|
+
const g = _.find((I) => I.badge) ?? _[0];
|
|
1377
|
+
g && t(g);
|
|
1377
1378
|
}
|
|
1378
1379
|
}, [a, _, r, t]), y(() => {
|
|
1379
1380
|
if (!a) return;
|
|
1380
|
-
const
|
|
1381
|
+
const g = document.body.style.overflow, I = document.documentElement.style.overflow;
|
|
1381
1382
|
return document.body.style.overflow = "hidden", document.documentElement.style.overflow = "hidden", () => {
|
|
1382
|
-
document.body.style.overflow =
|
|
1383
|
+
document.body.style.overflow = g, document.documentElement.style.overflow = I;
|
|
1383
1384
|
};
|
|
1384
1385
|
}, [a]), a ? Fe(
|
|
1385
1386
|
/* @__PURE__ */ e.jsx(
|
|
@@ -1397,29 +1398,29 @@ const Kn = ({
|
|
|
1397
1398
|
onBack: s
|
|
1398
1399
|
}
|
|
1399
1400
|
),
|
|
1400
|
-
/* @__PURE__ */ e.jsx("div", { className: m.plansContainer, role: "radiogroup", "aria-label": "Kundli matching plans", children: _.map((
|
|
1401
|
+
/* @__PURE__ */ e.jsx("div", { className: m.plansContainer, role: "radiogroup", "aria-label": "Kundli matching plans", children: _.map((g) => /* @__PURE__ */ e.jsx(
|
|
1401
1402
|
Ei,
|
|
1402
1403
|
{
|
|
1403
|
-
plan:
|
|
1404
|
-
isSelected:
|
|
1404
|
+
plan: g,
|
|
1405
|
+
isSelected: g.id === h,
|
|
1405
1406
|
t: l,
|
|
1406
1407
|
onSelect: (I) => {
|
|
1407
1408
|
const T = _.find((L) => L.id === I);
|
|
1408
1409
|
T && t(T, !0);
|
|
1409
1410
|
}
|
|
1410
1411
|
},
|
|
1411
|
-
|
|
1412
|
+
g.id
|
|
1412
1413
|
)) }),
|
|
1413
1414
|
/* @__PURE__ */ e.jsx("div", { className: m.footer, children: /* @__PURE__ */ e.jsxs(
|
|
1414
1415
|
"button",
|
|
1415
1416
|
{
|
|
1416
1417
|
className: m.proceedBtn,
|
|
1417
|
-
disabled: !r ||
|
|
1418
|
-
"aria-busy":
|
|
1418
|
+
disabled: !r || p === "loading",
|
|
1419
|
+
"aria-busy": p === "loading",
|
|
1419
1420
|
onClick: k,
|
|
1420
1421
|
children: [
|
|
1421
|
-
|
|
1422
|
-
r ?
|
|
1422
|
+
p === "loading" && /* @__PURE__ */ e.jsx("span", { className: m.spinner, "aria-hidden": "true" }),
|
|
1423
|
+
r ? p === "error" ? l?.("planProceedRetry") ?? "Try again" : "Proceed to Payment" : "Select a plan"
|
|
1423
1424
|
]
|
|
1424
1425
|
}
|
|
1425
1426
|
) })
|
|
@@ -1463,7 +1464,7 @@ const Xi = ({
|
|
|
1463
1464
|
onLocaleChange: _,
|
|
1464
1465
|
initialFormValues: h,
|
|
1465
1466
|
autoOpenPlanSheet: f,
|
|
1466
|
-
variant:
|
|
1467
|
+
variant: p
|
|
1467
1468
|
}) => /* @__PURE__ */ e.jsx(
|
|
1468
1469
|
Pe,
|
|
1469
1470
|
{
|
|
@@ -1477,18 +1478,18 @@ const Xi = ({
|
|
|
1477
1478
|
onLocaleChange: _,
|
|
1478
1479
|
initialFormValues: h,
|
|
1479
1480
|
autoOpenPlanSheet: f,
|
|
1480
|
-
children: /* @__PURE__ */ e.jsx(Mi, { className: a, variant:
|
|
1481
|
+
children: /* @__PURE__ */ e.jsx(Mi, { className: a, variant: p })
|
|
1481
1482
|
}
|
|
1482
1483
|
);
|
|
1483
1484
|
function Mi({ className: a, variant: s }) {
|
|
1484
|
-
const { locale: r, config: t, formValues: i, setFormValues: o } =
|
|
1485
|
+
const { locale: r, config: t, formValues: i, setFormValues: o } = ge(), [c, l] = P(!1), [_, h] = P(
|
|
1485
1486
|
null
|
|
1486
|
-
), [f,
|
|
1487
|
+
), [f, p] = P(
|
|
1487
1488
|
() => Di(i.phoneCountryCode, t.isGlobal ?? !1)
|
|
1488
1489
|
), u = t.isGlobal ? f : "+91", k = w(
|
|
1489
1490
|
!!(i.phoneCountryCode && Q.includes(i.phoneCountryCode))
|
|
1490
|
-
),
|
|
1491
|
-
|
|
1491
|
+
), g = w(!1), I = ie((d) => {
|
|
1492
|
+
g.current = !0, p(d);
|
|
1492
1493
|
}, []), T = w(!1), L = w(null), S = (d) => Fi(r, d), v = () => {
|
|
1493
1494
|
const d = t.plans ?? fe(t.isGlobal ?? !1), C = _ ?? d.find((F) => F.badge) ?? d[0];
|
|
1494
1495
|
t.analytics?.trackFunnelEvent?.("plan_view", {
|
|
@@ -1517,11 +1518,11 @@ function Mi({ className: a, variant: s }) {
|
|
|
1517
1518
|
R.current = !1;
|
|
1518
1519
|
return;
|
|
1519
1520
|
}
|
|
1520
|
-
k.current ||
|
|
1521
|
+
k.current || g.current || p(t.isGlobal ? "+1" : "+91");
|
|
1521
1522
|
}, [t.isGlobal]), y(() => {
|
|
1522
|
-
if (
|
|
1523
|
+
if (g.current) return;
|
|
1523
1524
|
const d = i.phoneCountryCode;
|
|
1524
|
-
d && Q.includes(d) && d !== u && (k.current = !0,
|
|
1525
|
+
d && Q.includes(d) && d !== u && (k.current = !0, p(d));
|
|
1525
1526
|
}, [i.phoneCountryCode]);
|
|
1526
1527
|
const $ = w(!1);
|
|
1527
1528
|
y(() => {
|
|
@@ -1538,7 +1539,7 @@ function Mi({ className: a, variant: s }) {
|
|
|
1538
1539
|
});
|
|
1539
1540
|
return () => cancelAnimationFrame(F);
|
|
1540
1541
|
}, [t.autoOpenPlanSheet, t.initialFormValues]);
|
|
1541
|
-
const [K,
|
|
1542
|
+
const [K, G] = P(!1), ee = w(!1), ve = (d) => {
|
|
1542
1543
|
if (!ee.current) {
|
|
1543
1544
|
ee.current = !0;
|
|
1544
1545
|
const [C, F] = Object.entries(d)[0] ?? [], W = C === "boy" || C === "girl" ? C : "contact";
|
|
@@ -1588,7 +1589,7 @@ function Mi({ className: a, variant: s }) {
|
|
|
1588
1589
|
] }),
|
|
1589
1590
|
/* @__PURE__ */ e.jsx(H, { section: "baba", onImpression: b, children: /* @__PURE__ */ e.jsx(Pt, { t: S, locale: r, analytics: t.analytics }) }),
|
|
1590
1591
|
/* @__PURE__ */ e.jsx(H, { section: "features", onImpression: b, children: /* @__PURE__ */ e.jsx(
|
|
1591
|
-
|
|
1592
|
+
gt,
|
|
1592
1593
|
{
|
|
1593
1594
|
t: S,
|
|
1594
1595
|
onCtaClick: () => L.current?.scrollIntoView({ behavior: "smooth", block: "start" })
|
|
@@ -1619,7 +1620,7 @@ function Mi({ className: a, variant: s }) {
|
|
|
1619
1620
|
t: S,
|
|
1620
1621
|
values: i,
|
|
1621
1622
|
onProceed: ye,
|
|
1622
|
-
onInvalidAttempt: () =>
|
|
1623
|
+
onInvalidAttempt: () => G(!0),
|
|
1623
1624
|
phoneIsdCode: u,
|
|
1624
1625
|
isGlobal: t.isGlobal,
|
|
1625
1626
|
analytics: t.analytics
|
|
@@ -1650,7 +1651,7 @@ export {
|
|
|
1650
1651
|
Qi as H,
|
|
1651
1652
|
Ji as K,
|
|
1652
1653
|
Or as P,
|
|
1653
|
-
|
|
1654
|
+
gt as R,
|
|
1654
1655
|
Kn as S,
|
|
1655
1656
|
or as T,
|
|
1656
1657
|
yn as V,
|
|
@@ -1663,4 +1664,4 @@ export {
|
|
|
1663
1664
|
oe as g,
|
|
1664
1665
|
Yi as r
|
|
1665
1666
|
};
|
|
1666
|
-
//# sourceMappingURL=criticalCss-
|
|
1667
|
+
//# sourceMappingURL=criticalCss-DowKZ-Dx.js.map
|