@srimandir/kundli-generator 10.56.0 → 10.57.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/{analytics-D_UpQV23.js → analytics-Q-qph8Sl.js} +320 -320
- package/dist/{analytics-D_UpQV23.js.map → analytics-Q-qph8Sl.js.map} +1 -1
- package/dist/components/BirthDetailsConfirmSheet/useBirthDetailsConfirm.d.ts +3 -3
- package/dist/{criticalCss-CVuDC5tl.js → criticalCss-C06P_uWf.js} +2 -2
- package/dist/{criticalCss-CVuDC5tl.js.map → criticalCss-C06P_uWf.js.map} +1 -1
- package/dist/form-entry.js +1 -1
- package/dist/kundli-generator.js +3 -3
- package/dist/page-entry.js +2 -2
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as e, e as xe, D as Ne, k as Ie, l as Re, u as Ae, m as Ce, n as Ee, P as Fe, L as Te, S as Me, U as Oe, o as $e, t as Ge } from "./ProceedFooter-C-SsbQlr.js";
|
|
2
|
-
import { useEffect as
|
|
2
|
+
import { useEffect as C, useState as y, useRef as j, useMemo as ie, useCallback as ce, Fragment as Ke } from "react";
|
|
3
3
|
import { FormSectionHeader as He, PageHeader as Ue } from "@srimandir/astrology-common";
|
|
4
4
|
import { createPortal as Le } from "react-dom";
|
|
5
5
|
const We = "_header_19172_1", Ve = "_centered_19172_8", we = {
|
|
@@ -7,7 +7,7 @@ const We = "_header_19172_1", Ve = "_centered_19172_8", we = {
|
|
|
7
7
|
centered: Ve
|
|
8
8
|
}, Ye = ({
|
|
9
9
|
t,
|
|
10
|
-
onBack:
|
|
10
|
+
onBack: l,
|
|
11
11
|
className: n = "",
|
|
12
12
|
align: s = "left"
|
|
13
13
|
}) => /* @__PURE__ */ e.jsx(
|
|
@@ -15,7 +15,7 @@ const We = "_header_19172_1", Ve = "_centered_19172_8", we = {
|
|
|
15
15
|
{
|
|
16
16
|
title: t("formTitle"),
|
|
17
17
|
subtitle: t("formSubtitle"),
|
|
18
|
-
onBack:
|
|
18
|
+
onBack: l,
|
|
19
19
|
backAriaLabel: t("back"),
|
|
20
20
|
className: `${we.header} ${s === "center" ? we.centered : ""} ${n}`
|
|
21
21
|
}
|
|
@@ -30,30 +30,30 @@ const We = "_header_19172_1", Ve = "_centered_19172_8", we = {
|
|
|
30
30
|
langLabel: tt,
|
|
31
31
|
langMenu: at,
|
|
32
32
|
langOption: nt
|
|
33
|
-
}, ot = "https://srm-cdn.a4b.io/yoda/1770362904947.svg",
|
|
33
|
+
}, ot = "https://srm-cdn.a4b.io/yoda/1770362904947.svg", lt = ({
|
|
34
34
|
t,
|
|
35
|
-
languageSelector:
|
|
35
|
+
languageSelector: l,
|
|
36
36
|
logoUrl: n = ot,
|
|
37
37
|
className: s = ""
|
|
38
38
|
}) => {
|
|
39
|
-
const
|
|
39
|
+
const g = xe(), m = l != null;
|
|
40
40
|
return /* @__PURE__ */ e.jsx(
|
|
41
41
|
Ue,
|
|
42
42
|
{
|
|
43
43
|
t,
|
|
44
44
|
logoUrl: n,
|
|
45
|
-
imageComponent:
|
|
46
|
-
languageSelector:
|
|
47
|
-
showLanguageSelector:
|
|
45
|
+
imageComponent: g?.config.imageComponent,
|
|
46
|
+
languageSelector: l,
|
|
47
|
+
showLanguageSelector: m,
|
|
48
48
|
className: s
|
|
49
49
|
}
|
|
50
50
|
);
|
|
51
51
|
}, Be = (t) => {
|
|
52
|
-
|
|
52
|
+
C(() => {
|
|
53
53
|
if (!t) return;
|
|
54
|
-
const
|
|
54
|
+
const l = document.body.style.overflow, n = document.documentElement.style.overflow;
|
|
55
55
|
return document.body.style.overflow = "hidden", document.documentElement.style.overflow = "hidden", () => {
|
|
56
|
-
document.body.style.overflow =
|
|
56
|
+
document.body.style.overflow = l, document.documentElement.style.overflow = n;
|
|
57
57
|
};
|
|
58
58
|
}, [t]);
|
|
59
59
|
}, De = () => /* @__PURE__ */ e.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ e.jsx(
|
|
@@ -65,7 +65,7 @@ const We = "_header_19172_1", Ve = "_centered_19172_8", we = {
|
|
|
65
65
|
strokeLinecap: "round",
|
|
66
66
|
strokeLinejoin: "round"
|
|
67
67
|
}
|
|
68
|
-
) }),
|
|
68
|
+
) }), rt = () => /* @__PURE__ */ e.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ e.jsx(
|
|
69
69
|
"path",
|
|
70
70
|
{
|
|
71
71
|
d: "M4.5 4.5l7 7M11.5 4.5l-7 7",
|
|
@@ -153,46 +153,46 @@ const We = "_header_19172_1", Ve = "_centered_19172_8", we = {
|
|
|
153
153
|
bullet: ea,
|
|
154
154
|
footer: ta,
|
|
155
155
|
proceedBtn: aa
|
|
156
|
-
}, na = ({ title: t, onBack:
|
|
156
|
+
}, na = ({ title: t, onBack: l }) => /* @__PURE__ */ e.jsxs("div", { className: i.header, children: [
|
|
157
157
|
/* @__PURE__ */ e.jsx(
|
|
158
158
|
"button",
|
|
159
159
|
{
|
|
160
160
|
className: i.backBtn,
|
|
161
|
-
onClick:
|
|
161
|
+
onClick: l,
|
|
162
162
|
"aria-label": "Go back",
|
|
163
163
|
type: "button",
|
|
164
164
|
children: /* @__PURE__ */ e.jsx(Se, {})
|
|
165
165
|
}
|
|
166
166
|
),
|
|
167
167
|
/* @__PURE__ */ e.jsx("h2", { className: i.title, children: t })
|
|
168
|
-
] }), oa = ({ features: t, t:
|
|
169
|
-
/* @__PURE__ */ e.jsx("span", { className: i.featureIcon, children: n.included ? /* @__PURE__ */ e.jsx(De, {}) : /* @__PURE__ */ e.jsx(
|
|
168
|
+
] }), oa = ({ features: t, t: l }) => /* @__PURE__ */ e.jsx("ul", { className: i.featureList, "aria-label": "Plan features", children: t.map((n, s) => /* @__PURE__ */ e.jsxs("li", { className: i.featureItem, children: [
|
|
169
|
+
/* @__PURE__ */ e.jsx("span", { className: i.featureIcon, children: n.included ? /* @__PURE__ */ e.jsx(De, {}) : /* @__PURE__ */ e.jsx(rt, {}) }),
|
|
170
170
|
/* @__PURE__ */ e.jsx(
|
|
171
171
|
"span",
|
|
172
172
|
{
|
|
173
173
|
className: `${i.featureText} `,
|
|
174
|
-
children:
|
|
174
|
+
children: l?.(n.text) ?? n.text
|
|
175
175
|
}
|
|
176
176
|
)
|
|
177
|
-
] }, s)) }),
|
|
177
|
+
] }, s)) }), la = ({ astrologer: t, t: l }) => /* @__PURE__ */ e.jsxs("div", { className: i.astrologerCard, children: [
|
|
178
178
|
/* @__PURE__ */ e.jsxs("div", { className: i.astrologerTop, children: [
|
|
179
|
-
/* @__PURE__ */ e.jsx("div", { className: i.astrologerAvatar, "aria-hidden": !0, children: t.imageUrl ? /* @__PURE__ */ e.jsx("img", { src: t.imageUrl, alt:
|
|
179
|
+
/* @__PURE__ */ e.jsx("div", { className: i.astrologerAvatar, "aria-hidden": !0, children: t.imageUrl ? /* @__PURE__ */ e.jsx("img", { src: t.imageUrl, alt: l?.(t.name) ?? t.name, width: 40, height: 40 }) : /* @__PURE__ */ e.jsx("span", { className: i.astrologerAvatarPlaceholder, children: t.name.charAt(0) }) }),
|
|
180
180
|
/* @__PURE__ */ e.jsxs("div", { className: i.astrologerBasicInfo, children: [
|
|
181
|
-
/* @__PURE__ */ e.jsx("p", { className: i.astrologerName, children:
|
|
182
|
-
/* @__PURE__ */ e.jsx("p", { className: i.astrologerExp, children:
|
|
181
|
+
/* @__PURE__ */ e.jsx("p", { className: i.astrologerName, children: l?.(t.name) ?? t.name }),
|
|
182
|
+
/* @__PURE__ */ e.jsx("p", { className: i.astrologerExp, children: l?.(t.experience) ?? t.experience })
|
|
183
183
|
] })
|
|
184
184
|
] }),
|
|
185
185
|
/* @__PURE__ */ e.jsx("div", { className: i.astrologerDivider }),
|
|
186
186
|
/* @__PURE__ */ e.jsx("div", { className: i.astrologerCertList, children: t.certifications.map((n, s) => /* @__PURE__ */ e.jsxs("p", { className: i.astrologerCertItem, children: [
|
|
187
187
|
/* @__PURE__ */ e.jsx("span", { className: i.bullet, children: "•" }),
|
|
188
188
|
" ",
|
|
189
|
-
|
|
189
|
+
l?.(n) ?? n
|
|
190
190
|
] }, s)) })
|
|
191
|
-
] }),
|
|
191
|
+
] }), ra = ({ label: t }) => /* @__PURE__ */ e.jsxs("div", { className: i.popularBadge, "aria-label": t, children: [
|
|
192
192
|
/* @__PURE__ */ e.jsx(it, {}),
|
|
193
193
|
/* @__PURE__ */ e.jsx("span", { children: t })
|
|
194
|
-
] }), sa = ({ plan: t, isSelected:
|
|
195
|
-
const
|
|
194
|
+
] }), sa = ({ plan: t, isSelected: l, onSelect: n, t: s }) => {
|
|
195
|
+
const g = () => n(t.id), m = (d) => {
|
|
196
196
|
(d.key === " " || d.key === "Enter") && (d.preventDefault(), n(t.id));
|
|
197
197
|
};
|
|
198
198
|
return /* @__PURE__ */ e.jsxs(
|
|
@@ -200,26 +200,26 @@ const We = "_header_19172_1", Ve = "_centered_19172_8", we = {
|
|
|
200
200
|
{
|
|
201
201
|
className: [
|
|
202
202
|
i.planCard,
|
|
203
|
-
|
|
204
|
-
|
|
203
|
+
l ? i.planCardSelected : "",
|
|
204
|
+
l && i.planCardPopular
|
|
205
205
|
].filter(Boolean).join(" "),
|
|
206
|
-
onClick:
|
|
206
|
+
onClick: g,
|
|
207
207
|
role: "radio",
|
|
208
|
-
"aria-checked":
|
|
208
|
+
"aria-checked": l,
|
|
209
209
|
tabIndex: 0,
|
|
210
|
-
onKeyDown:
|
|
210
|
+
onKeyDown: m,
|
|
211
211
|
"data-plan-id": t.id,
|
|
212
212
|
children: [
|
|
213
|
-
t.badge && /* @__PURE__ */ e.jsx(
|
|
213
|
+
t.badge && /* @__PURE__ */ e.jsx(ra, { label: s?.(t.badge) ?? t.badge }),
|
|
214
214
|
/* @__PURE__ */ e.jsxs("div", { className: i.planCardInner, children: [
|
|
215
215
|
/* @__PURE__ */ e.jsxs("div", { className: `${i.planTitleRow} ${t.badge ? i.withBadgeSpacing : ""}`, children: [
|
|
216
216
|
/* @__PURE__ */ e.jsx("span", { className: i.planTitle, children: s?.(t.title) ?? t.title }),
|
|
217
217
|
/* @__PURE__ */ e.jsx(
|
|
218
218
|
"span",
|
|
219
219
|
{
|
|
220
|
-
className: `${i.radioCircle} ${
|
|
220
|
+
className: `${i.radioCircle} ${l ? i.radioChecked : ""}`,
|
|
221
221
|
"aria-hidden": !0,
|
|
222
|
-
children:
|
|
222
|
+
children: l && /* @__PURE__ */ e.jsx("span", { className: i.radioInner })
|
|
223
223
|
}
|
|
224
224
|
)
|
|
225
225
|
] }),
|
|
@@ -232,24 +232,24 @@ const We = "_header_19172_1", Ve = "_centered_19172_8", we = {
|
|
|
232
232
|
t.astrologers && /* @__PURE__ */ e.jsx("div", { className: i.planDivider }),
|
|
233
233
|
t.astrologers && t.astrologers.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
234
234
|
/* @__PURE__ */ e.jsx("p", { className: i.astrologerHeading, children: s?.("planAstrologerHeading") ?? "We will match you with astrologer who speaks your language" }),
|
|
235
|
-
/* @__PURE__ */ e.jsx("div", { className: i.astrologerList, role: "list", children: t.astrologers.map((d, u) => /* @__PURE__ */ e.jsx("div", { role: "listitem", children: /* @__PURE__ */ e.jsx(
|
|
235
|
+
/* @__PURE__ */ e.jsx("div", { className: i.astrologerList, role: "list", children: t.astrologers.map((d, u) => /* @__PURE__ */ e.jsx("div", { role: "listitem", children: /* @__PURE__ */ e.jsx(la, { astrologer: d, t: s }) }, u)) })
|
|
236
236
|
] })
|
|
237
237
|
] })
|
|
238
238
|
]
|
|
239
239
|
}
|
|
240
240
|
);
|
|
241
241
|
}, je = (t) => {
|
|
242
|
-
const
|
|
243
|
-
if (!
|
|
244
|
-
const n = Number(
|
|
245
|
-
return `${n % 12 || 12}:${s} ${
|
|
246
|
-
}, ia = (t,
|
|
242
|
+
const l = t.match(/T(\d{2}):(\d{2})/);
|
|
243
|
+
if (!l) return t;
|
|
244
|
+
const n = Number(l[1]), s = l[2], g = n >= 12 ? "PM" : "AM";
|
|
245
|
+
return `${n % 12 || 12}:${s} ${g}`;
|
|
246
|
+
}, ia = (t, l = /* @__PURE__ */ new Date()) => {
|
|
247
247
|
const n = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], s = /* @__PURE__ */ new Date(`${t}T00:00:00`);
|
|
248
248
|
if (Number.isNaN(s.getTime()))
|
|
249
249
|
return { id: t, dayLabel: t, dayNum: "" };
|
|
250
|
-
const
|
|
251
|
-
(
|
|
252
|
-
), d =
|
|
250
|
+
const g = (u) => new Date(u.getFullYear(), u.getMonth(), u.getDate()).getTime(), m = Math.round(
|
|
251
|
+
(g(s) - g(l)) / (1e3 * 60 * 60 * 24)
|
|
252
|
+
), d = m === 0 ? "Today" : m === 1 ? "Tomorrow" : n[s.getDay()];
|
|
253
253
|
return { id: t, dayLabel: d, dayNum: String(s.getDate()) };
|
|
254
254
|
}, ca = [
|
|
255
255
|
"morning",
|
|
@@ -284,12 +284,12 @@ const We = "_header_19172_1", Ve = "_centered_19172_8", we = {
|
|
|
284
284
|
gu: ["gu", "en"],
|
|
285
285
|
mr: ["mr", "en"],
|
|
286
286
|
ta: ["ta", "en"]
|
|
287
|
-
}, Pe = (t) => !!t?.days?.some((
|
|
288
|
-
const s = n ? ua : _a, [
|
|
289
|
-
(
|
|
287
|
+
}, Pe = (t) => !!t?.days?.some((l) => l.has_availability && l.slots.length > 0), ga = (t, l, n) => {
|
|
288
|
+
const s = n ? ua : _a, [g, m] = s[l || "en"] ?? s.en, d = de.map((w) => w.code).filter(
|
|
289
|
+
(w) => w !== g && w !== m
|
|
290
290
|
);
|
|
291
|
-
return [
|
|
292
|
-
}, ma = "_overlay_1mg8x_3", pa = "_sheet_1mg8x_13", ha = "_content_1mg8x_47", fa = "_header_1mg8x_54", ba = "_backBtn_1mg8x_67", ka = "_title_1mg8x_85", xa = "_languageRow_1mg8x_101", va = "_languageLabel_1mg8x_109", ja = "_languageDropdown_1mg8x_115", ya = "_languageDropdownBtn_1mg8x_119", Ca = "_languageMenu_1mg8x_134", Sa = "_languageMenuItem_1mg8x_151", Ta = "_languageMenuItemSelected_1mg8x_165", wa = "_languageDivider_1mg8x_171", Na = "_reportReadyBanner_1mg8x_178", La = "_reportReadyDuration_1mg8x_187", Ba = "_trustRow_1mg8x_193", Da = "_trustAvatars_1mg8x_204", Pa = "_trustText_1mg8x_217", Ia = "_sectionHeading_1mg8x_328", Ra = "_dateTabs_1mg8x_336", Aa = "_dateTabIndicator_1mg8x_348", Ea = "_dateTab_1mg8x_336", Fa = "_dateTabDivider_1mg8x_382", Ma = "_dateTabSelected_1mg8x_392", Oa = "_dateTabLabel_1mg8x_397", $a = "_dateTabNum_1mg8x_404", Ga = "_periodTabs_1mg8x_418", Ka = "_periodTabIndicator_1mg8x_346", Ha = "_periodTab_1mg8x_346", Ua = "_periodTabSelected_1mg8x_465", Wa = "_timeGrid_1mg8x_470", Va = "_emptyState_1mg8x_498", Ya = "_timeSlot_1mg8x_502", qa = "_timeSlotSelected_1mg8x_518", za = "_topicGrid_1mg8x_526", Xa = "_topicChip_1mg8x_532", Za = "_topicChipSelected_1mg8x_548", Ja = "_stateMessage_1mg8x_555", Qa = "_emptyStateIcon_1mg8x_575", en = "_emptyStateTitle_1mg8x_586", tn = "_emptyStateSubtitle_1mg8x_593", an = "_loadingWrap_1mg8x_602", nn = "_skeletonShimmer_1mg8x_607", on = "_skeletonDateTabs_1mg8x_621",
|
|
291
|
+
return [g, m, ...d].find((w) => Pe(t[w])) ?? g;
|
|
292
|
+
}, ma = "_overlay_1mg8x_3", pa = "_sheet_1mg8x_13", ha = "_content_1mg8x_47", fa = "_header_1mg8x_54", ba = "_backBtn_1mg8x_67", ka = "_title_1mg8x_85", xa = "_languageRow_1mg8x_101", va = "_languageLabel_1mg8x_109", ja = "_languageDropdown_1mg8x_115", ya = "_languageDropdownBtn_1mg8x_119", Ca = "_languageMenu_1mg8x_134", Sa = "_languageMenuItem_1mg8x_151", Ta = "_languageMenuItemSelected_1mg8x_165", wa = "_languageDivider_1mg8x_171", Na = "_reportReadyBanner_1mg8x_178", La = "_reportReadyDuration_1mg8x_187", Ba = "_trustRow_1mg8x_193", Da = "_trustAvatars_1mg8x_204", Pa = "_trustText_1mg8x_217", Ia = "_sectionHeading_1mg8x_328", Ra = "_dateTabs_1mg8x_336", Aa = "_dateTabIndicator_1mg8x_348", Ea = "_dateTab_1mg8x_336", Fa = "_dateTabDivider_1mg8x_382", Ma = "_dateTabSelected_1mg8x_392", Oa = "_dateTabLabel_1mg8x_397", $a = "_dateTabNum_1mg8x_404", Ga = "_periodTabs_1mg8x_418", Ka = "_periodTabIndicator_1mg8x_346", Ha = "_periodTab_1mg8x_346", Ua = "_periodTabSelected_1mg8x_465", Wa = "_timeGrid_1mg8x_470", Va = "_emptyState_1mg8x_498", Ya = "_timeSlot_1mg8x_502", qa = "_timeSlotSelected_1mg8x_518", za = "_topicGrid_1mg8x_526", Xa = "_topicChip_1mg8x_532", Za = "_topicChipSelected_1mg8x_548", Ja = "_stateMessage_1mg8x_555", Qa = "_emptyStateIcon_1mg8x_575", en = "_emptyStateTitle_1mg8x_586", tn = "_emptyStateSubtitle_1mg8x_593", an = "_loadingWrap_1mg8x_602", nn = "_skeletonShimmer_1mg8x_607", on = "_skeletonDateTabs_1mg8x_621", ln = "_skeletonDateTab_1mg8x_621", rn = "_skeletonPeriodTabs_1mg8x_635", sn = "_skeletonPeriodTab_1mg8x_635", cn = "_skeletonTimeGrid_1mg8x_650", dn = "_skeletonTimeSlot_1mg8x_656", _n = "_retryBtn_1mg8x_661", un = "_footer_1mg8x_675", gn = "_proceedBtn_1mg8x_682", mn = "_proceedBtnDisabled_1mg8x_700", r = {
|
|
293
293
|
overlay: ma,
|
|
294
294
|
sheet: pa,
|
|
295
295
|
content: ha,
|
|
@@ -335,8 +335,8 @@ const We = "_header_19172_1", Ve = "_centered_19172_8", we = {
|
|
|
335
335
|
loadingWrap: an,
|
|
336
336
|
skeletonShimmer: nn,
|
|
337
337
|
skeletonDateTabs: on,
|
|
338
|
-
skeletonDateTab:
|
|
339
|
-
skeletonPeriodTabs:
|
|
338
|
+
skeletonDateTab: ln,
|
|
339
|
+
skeletonPeriodTabs: rn,
|
|
340
340
|
skeletonPeriodTab: sn,
|
|
341
341
|
skeletonTimeGrid: cn,
|
|
342
342
|
skeletonTimeSlot: dn,
|
|
@@ -352,81 +352,81 @@ const We = "_header_19172_1", Ve = "_centered_19172_8", we = {
|
|
|
352
352
|
morning: "planPeriodMorning",
|
|
353
353
|
afternoon: "planPeriodAfternoon",
|
|
354
354
|
evening: "planPeriodEvening"
|
|
355
|
-
}, ye = (t) => de.find((
|
|
356
|
-
const
|
|
357
|
-
return
|
|
355
|
+
}, ye = (t) => de.find((l) => l.code === t)?.label ?? t, fn = (t) => {
|
|
356
|
+
const l = t.match(/([+-]\d{2}:\d{2})$/);
|
|
357
|
+
return l ? `GMT${l[1]}` : t.endsWith("Z") ? "GMT+00:00" : "";
|
|
358
358
|
}, bn = ({
|
|
359
359
|
onProceed: t,
|
|
360
|
-
astrologers:
|
|
360
|
+
astrologers: l,
|
|
361
361
|
t: n,
|
|
362
362
|
analytics: s,
|
|
363
|
-
reportLanguage:
|
|
364
|
-
isPostPayment:
|
|
363
|
+
reportLanguage: g,
|
|
364
|
+
isPostPayment: m = !1,
|
|
365
365
|
showGuidanceTopic: d,
|
|
366
366
|
hideFooter: u = !1,
|
|
367
|
-
onStateChange:
|
|
367
|
+
onStateChange: w
|
|
368
368
|
}) => {
|
|
369
|
-
const A = d ?? !
|
|
370
|
-
() =>
|
|
371
|
-
[
|
|
372
|
-
), [
|
|
369
|
+
const A = d ?? !m, k = xe(), S = k?.config.imageComponent ?? Ne, p = k?.config.fetchConsultationSlots, I = k?.config.isGlobal ?? !0, c = g ?? k?.formValues?.language_code, x = m ? "post_payment" : "pre_payment", [_, B] = y(!1), [K, X] = y(!1), [v, E] = y({}), [f, H] = y("en"), [V, Y] = y(!1), J = j(null), ae = ie(
|
|
370
|
+
() => v[f]?.days ?? [],
|
|
371
|
+
[v, f]
|
|
372
|
+
), [R, _e] = y(""), [O, q] = y(""), [b, ne] = y("morning"), [T, U] = y(null), oe = j(!1), Q = j(null), ue = j({}), [z, ge] = y(null), ee = j(null), Z = j(
|
|
373
373
|
{}
|
|
374
|
-
), [
|
|
374
|
+
), [le, me] = y(null), N = ie(
|
|
375
375
|
() => ae.filter((a) => a.has_availability && a.slots.length > 0),
|
|
376
376
|
[ae]
|
|
377
377
|
), pe = ce(() => {
|
|
378
|
-
|
|
378
|
+
p && (B(!0), X(!1), p().then((a) => {
|
|
379
379
|
const o = a ?? {}, h = ga(
|
|
380
380
|
o,
|
|
381
381
|
c,
|
|
382
|
-
|
|
382
|
+
I
|
|
383
383
|
);
|
|
384
384
|
E(o), H(h), s?.trackConsultationLanguageDefaultSelected?.({
|
|
385
385
|
language: ye(h),
|
|
386
|
-
status:
|
|
386
|
+
status: x
|
|
387
387
|
});
|
|
388
388
|
const $ = (o[h]?.days ?? []).filter(
|
|
389
389
|
(P) => P.has_availability && P.slots.length > 0
|
|
390
390
|
).length;
|
|
391
391
|
s?.trackAstrologerAvailabilityServed?.({
|
|
392
|
-
astrologers_shown:
|
|
392
|
+
astrologers_shown: l.map((P) => P.name),
|
|
393
393
|
dates_available_count: $,
|
|
394
|
-
status:
|
|
394
|
+
status: x
|
|
395
395
|
});
|
|
396
396
|
}).catch(() => {
|
|
397
397
|
X(!0);
|
|
398
398
|
}).finally(() => B(!1)));
|
|
399
|
-
}, [
|
|
400
|
-
|
|
399
|
+
}, [p, I, c, s, l, x]);
|
|
400
|
+
C(() => {
|
|
401
401
|
_e(""), Y(!1), pe();
|
|
402
|
-
}, []),
|
|
402
|
+
}, []), C(() => {
|
|
403
403
|
if (!V) return;
|
|
404
404
|
const a = (o) => {
|
|
405
405
|
J.current && !J.current.contains(o.target) && Y(!1);
|
|
406
406
|
};
|
|
407
407
|
return document.addEventListener("mousedown", a), () => document.removeEventListener("mousedown", a);
|
|
408
|
-
}, [V]),
|
|
409
|
-
if (!
|
|
408
|
+
}, [V]), C(() => {
|
|
409
|
+
if (!N.length) {
|
|
410
410
|
q(""), U(null);
|
|
411
411
|
return;
|
|
412
412
|
}
|
|
413
|
-
const a =
|
|
414
|
-
|
|
413
|
+
const a = N[0];
|
|
414
|
+
N.some((o) => o.date === O) || s?.trackConsultationDateDefaultSelected?.({
|
|
415
415
|
date: a.date,
|
|
416
|
-
status:
|
|
416
|
+
status: x
|
|
417
417
|
}), q(
|
|
418
|
-
(o) =>
|
|
418
|
+
(o) => N.some((h) => h.date === o) ? o : a.date
|
|
419
419
|
);
|
|
420
|
-
}, [
|
|
420
|
+
}, [N]);
|
|
421
421
|
const L = ie(
|
|
422
|
-
() =>
|
|
423
|
-
[
|
|
422
|
+
() => N.find((a) => a.date === O) ?? null,
|
|
423
|
+
[N, O]
|
|
424
424
|
), W = ie(() => {
|
|
425
425
|
if (!L) return [];
|
|
426
426
|
const a = new Set(L.slots.map((o) => o.period));
|
|
427
427
|
return ca.filter((o) => a.has(o));
|
|
428
428
|
}, [L]);
|
|
429
|
-
|
|
429
|
+
C(() => {
|
|
430
430
|
if (!W.length) {
|
|
431
431
|
ne("morning"), U(null);
|
|
432
432
|
return;
|
|
@@ -435,8 +435,8 @@ const We = "_header_19172_1", Ve = "_centered_19172_8", we = {
|
|
|
435
435
|
(a) => W.includes(a) ? a : W[0]
|
|
436
436
|
);
|
|
437
437
|
}, [W]);
|
|
438
|
-
const F = ie(() => L ? L.slots.filter((a) => a.period ===
|
|
439
|
-
|
|
438
|
+
const F = ie(() => L ? L.slots.filter((a) => a.period === b) : [], [L, b]);
|
|
439
|
+
C(() => {
|
|
440
440
|
const a = () => {
|
|
441
441
|
const o = Q.current, h = ue.current[O];
|
|
442
442
|
if (!o || !h) {
|
|
@@ -452,9 +452,9 @@ const We = "_header_19172_1", Ve = "_centered_19172_8", we = {
|
|
|
452
452
|
});
|
|
453
453
|
};
|
|
454
454
|
return a(), window.addEventListener("resize", a), () => window.removeEventListener("resize", a);
|
|
455
|
-
}, [O,
|
|
455
|
+
}, [O, N]), C(() => {
|
|
456
456
|
const a = () => {
|
|
457
|
-
const o = ee.current, h = Z.current[
|
|
457
|
+
const o = ee.current, h = Z.current[b];
|
|
458
458
|
if (!o || !h) {
|
|
459
459
|
me(null);
|
|
460
460
|
return;
|
|
@@ -466,7 +466,7 @@ const We = "_header_19172_1", Ve = "_centered_19172_8", we = {
|
|
|
466
466
|
});
|
|
467
467
|
};
|
|
468
468
|
return a(), window.addEventListener("resize", a), () => window.removeEventListener("resize", a);
|
|
469
|
-
}, [
|
|
469
|
+
}, [b, W]), C(() => {
|
|
470
470
|
if (!F.length) {
|
|
471
471
|
U(null);
|
|
472
472
|
return;
|
|
@@ -476,74 +476,74 @@ const We = "_header_19172_1", Ve = "_centered_19172_8", we = {
|
|
|
476
476
|
s?.trackConsultationTimeDefaultSelected?.({
|
|
477
477
|
time: je(o.start),
|
|
478
478
|
gmt_offset: fn(o.start),
|
|
479
|
-
status:
|
|
479
|
+
status: x
|
|
480
480
|
});
|
|
481
481
|
}
|
|
482
482
|
U(
|
|
483
483
|
(o) => o && F.some((h) => h.start === o.start) ? o : F[0]
|
|
484
484
|
);
|
|
485
|
-
}, [F]),
|
|
486
|
-
|
|
487
|
-
astrologers_shown:
|
|
488
|
-
dates_available_count:
|
|
489
|
-
status:
|
|
485
|
+
}, [F]), C(() => {
|
|
486
|
+
N.length && !oe.current && (s?.trackSlotScreenViewed?.({
|
|
487
|
+
astrologers_shown: l.map((a) => a.name),
|
|
488
|
+
dates_available_count: N.length,
|
|
489
|
+
status: x
|
|
490
490
|
}), oe.current = !0);
|
|
491
|
-
}, [
|
|
492
|
-
const D = !!T && (!A || !!
|
|
491
|
+
}, [N, l, s, x]);
|
|
492
|
+
const D = !!T && (!A || !!R), ve = (a) => {
|
|
493
493
|
q(a), s?.trackSlotDateSelected?.({
|
|
494
494
|
date: a,
|
|
495
|
-
day_part_default:
|
|
496
|
-
status:
|
|
495
|
+
day_part_default: b,
|
|
496
|
+
status: x
|
|
497
497
|
});
|
|
498
498
|
}, te = (a) => {
|
|
499
499
|
ne(a), s?.trackDayPartSelected?.({
|
|
500
500
|
day_part: a,
|
|
501
501
|
slots_available_count: L?.slots.filter((o) => o.period === a).length ?? 0,
|
|
502
|
-
status:
|
|
502
|
+
status: x
|
|
503
503
|
});
|
|
504
|
-
},
|
|
504
|
+
}, re = (a) => {
|
|
505
505
|
U(a), s?.trackSlotSelected?.({
|
|
506
506
|
date: O,
|
|
507
507
|
time: je(a.start),
|
|
508
508
|
day_part: a.period,
|
|
509
|
-
topic:
|
|
510
|
-
status:
|
|
509
|
+
topic: R || null,
|
|
510
|
+
status: x
|
|
511
511
|
});
|
|
512
512
|
}, se = () => {
|
|
513
513
|
T && (s?.trackSlotReservationRequested?.({
|
|
514
514
|
slot_datetime: `${T.start} - ${T.end}`,
|
|
515
|
-
status:
|
|
515
|
+
status: x
|
|
516
516
|
}), t({
|
|
517
517
|
start: T.start,
|
|
518
518
|
end: T.end,
|
|
519
519
|
period: T.period,
|
|
520
|
-
topic:
|
|
521
|
-
language:
|
|
520
|
+
topic: R,
|
|
521
|
+
language: f
|
|
522
522
|
}));
|
|
523
|
-
}, he =
|
|
524
|
-
he.current = se,
|
|
525
|
-
|
|
526
|
-
}, [D,
|
|
523
|
+
}, he = j(se);
|
|
524
|
+
he.current = se, C(() => {
|
|
525
|
+
w?.({ canProceed: D, proceed: () => he.current() });
|
|
526
|
+
}, [D, w]);
|
|
527
527
|
const fe = (a) => {
|
|
528
|
-
_e(a), s?.trackGuidanceTopicSelected?.({ topic: a, status:
|
|
528
|
+
_e(a), s?.trackGuidanceTopicSelected?.({ topic: a, status: x });
|
|
529
529
|
}, be = (a) => {
|
|
530
530
|
s?.trackConsultationLanguageChanged?.({
|
|
531
|
-
previous_language: ye(
|
|
531
|
+
previous_language: ye(f),
|
|
532
532
|
new_language: ye(a),
|
|
533
|
-
slots_available: Pe(
|
|
534
|
-
status:
|
|
533
|
+
slots_available: Pe(v[a]) ? "yes" : "no",
|
|
534
|
+
status: x
|
|
535
535
|
}), H(a), Y(!1);
|
|
536
|
-
}, ke = de.find((a) => a.code ===
|
|
536
|
+
}, ke = de.find((a) => a.code === f) ?? de[0];
|
|
537
537
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
538
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
539
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
540
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
541
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
538
|
+
/* @__PURE__ */ e.jsxs("div", { className: r.content, children: [
|
|
539
|
+
/* @__PURE__ */ e.jsxs("div", { className: r.languageRow, children: [
|
|
540
|
+
/* @__PURE__ */ e.jsx("span", { className: r.languageLabel, children: n?.("planConsultationLanguageLabel") ?? "Your consultation language" }),
|
|
541
|
+
/* @__PURE__ */ e.jsxs("div", { className: r.languageDropdown, ref: J, children: [
|
|
542
542
|
/* @__PURE__ */ e.jsxs(
|
|
543
543
|
"button",
|
|
544
544
|
{
|
|
545
545
|
type: "button",
|
|
546
|
-
className:
|
|
546
|
+
className: r.languageDropdownBtn,
|
|
547
547
|
onClick: () => Y((a) => !a),
|
|
548
548
|
"aria-haspopup": "listbox",
|
|
549
549
|
"aria-expanded": V,
|
|
@@ -553,16 +553,16 @@ const We = "_header_19172_1", Ve = "_centered_19172_8", we = {
|
|
|
553
553
|
]
|
|
554
554
|
}
|
|
555
555
|
),
|
|
556
|
-
V && /* @__PURE__ */ e.jsx("ul", { className:
|
|
557
|
-
const o = a.code ===
|
|
556
|
+
V && /* @__PURE__ */ e.jsx("ul", { className: r.languageMenu, role: "listbox", children: de.map((a) => {
|
|
557
|
+
const o = a.code === f;
|
|
558
558
|
return /* @__PURE__ */ e.jsxs(
|
|
559
559
|
"li",
|
|
560
560
|
{
|
|
561
561
|
role: "option",
|
|
562
562
|
"aria-selected": o,
|
|
563
563
|
className: [
|
|
564
|
-
|
|
565
|
-
o ?
|
|
564
|
+
r.languageMenuItem,
|
|
565
|
+
o ? r.languageMenuItemSelected : ""
|
|
566
566
|
].filter(Boolean).join(" "),
|
|
567
567
|
onClick: () => be(a.code),
|
|
568
568
|
children: [
|
|
@@ -575,53 +575,53 @@ const We = "_header_19172_1", Ve = "_centered_19172_8", we = {
|
|
|
575
575
|
}) })
|
|
576
576
|
] })
|
|
577
577
|
] }),
|
|
578
|
-
/* @__PURE__ */ e.jsx("hr", { className:
|
|
579
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
580
|
-
/* @__PURE__ */ e.jsxs("p", { className:
|
|
578
|
+
/* @__PURE__ */ e.jsx("hr", { className: r.languageDivider }),
|
|
579
|
+
/* @__PURE__ */ e.jsx("p", { className: r.sectionHeading, children: n?.("planSelectSlotHeading") ?? "Book your preferred consultation slot" }),
|
|
580
|
+
/* @__PURE__ */ e.jsxs("p", { className: r.reportReadyBanner, children: [
|
|
581
581
|
n?.("planReportReadyPrefix") ?? "Your Report will be ready in",
|
|
582
582
|
" ",
|
|
583
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
583
|
+
/* @__PURE__ */ e.jsx("span", { className: r.reportReadyDuration, children: n?.("planReportReadyDuration") ?? "24-48 hours" }),
|
|
584
584
|
" ",
|
|
585
585
|
n?.("planReportReadySuffix") ?? "from today"
|
|
586
586
|
] }),
|
|
587
|
-
_ && /* @__PURE__ */ e.jsxs("div", { className:
|
|
588
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
587
|
+
_ && /* @__PURE__ */ e.jsxs("div", { className: r.loadingWrap, "aria-busy": "true", "aria-live": "polite", children: [
|
|
588
|
+
/* @__PURE__ */ e.jsx("div", { className: r.skeletonDateTabs, children: Array.from({ length: 5 }).map((a, o) => /* @__PURE__ */ e.jsx(
|
|
589
589
|
"div",
|
|
590
590
|
{
|
|
591
|
-
className: [
|
|
591
|
+
className: [r.skeletonDateTab, r.skeletonShimmer].join(" ")
|
|
592
592
|
},
|
|
593
593
|
o
|
|
594
594
|
)) }),
|
|
595
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
595
|
+
/* @__PURE__ */ e.jsx("div", { className: r.skeletonPeriodTabs, children: Array.from({ length: 3 }).map((a, o) => /* @__PURE__ */ e.jsx(
|
|
596
596
|
"div",
|
|
597
597
|
{
|
|
598
|
-
className: [
|
|
598
|
+
className: [r.skeletonPeriodTab, r.skeletonShimmer].join(" ")
|
|
599
599
|
},
|
|
600
600
|
o
|
|
601
601
|
)) }),
|
|
602
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
602
|
+
/* @__PURE__ */ e.jsx("div", { className: r.skeletonTimeGrid, children: Array.from({ length: 6 }).map((a, o) => /* @__PURE__ */ e.jsx(
|
|
603
603
|
"div",
|
|
604
604
|
{
|
|
605
|
-
className: [
|
|
605
|
+
className: [r.skeletonTimeSlot, r.skeletonShimmer].join(" ")
|
|
606
606
|
},
|
|
607
607
|
o
|
|
608
608
|
)) })
|
|
609
609
|
] }),
|
|
610
|
-
!_ && K && /* @__PURE__ */ e.jsxs("div", { className:
|
|
610
|
+
!_ && K && /* @__PURE__ */ e.jsxs("div", { className: r.stateMessage, children: [
|
|
611
611
|
n?.("planSlotsLoadError") ?? "Couldn't load slots. Please try again.",
|
|
612
|
-
/* @__PURE__ */ e.jsx("button", { type: "button", className:
|
|
612
|
+
/* @__PURE__ */ e.jsx("button", { type: "button", className: r.retryBtn, onClick: pe, children: n?.("planRetry") ?? "Retry" })
|
|
613
613
|
] }),
|
|
614
|
-
!_ && !K &&
|
|
615
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
616
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
617
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
614
|
+
!_ && !K && N.length === 0 && /* @__PURE__ */ e.jsxs("div", { className: r.emptyState, children: [
|
|
615
|
+
/* @__PURE__ */ e.jsx("span", { className: r.emptyStateIcon, children: /* @__PURE__ */ e.jsx(ut, {}) }),
|
|
616
|
+
/* @__PURE__ */ e.jsx("p", { className: r.emptyStateTitle, children: n?.("planNoSlotsAvailableTitle") ?? "No slots available" }),
|
|
617
|
+
/* @__PURE__ */ e.jsx("p", { className: r.emptyStateSubtitle, children: n?.("planNoSlotsAvailableSubtitle") ?? "Try a different consultation language above, or check back soon." })
|
|
618
618
|
] }),
|
|
619
|
-
!_ && !K &&
|
|
620
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
619
|
+
!_ && !K && N.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
620
|
+
/* @__PURE__ */ e.jsxs("div", { className: r.dateTabs, ref: Q, role: "radiogroup", "aria-label": "Consultation date", children: [
|
|
621
621
|
z && /* @__PURE__ */ e.jsx(
|
|
622
622
|
"span",
|
|
623
623
|
{
|
|
624
|
-
className:
|
|
624
|
+
className: r.dateTabIndicator,
|
|
625
625
|
style: {
|
|
626
626
|
transform: `translate(${z.left}px, ${z.top}px)`,
|
|
627
627
|
width: z.width,
|
|
@@ -630,7 +630,7 @@ const We = "_header_19172_1", Ve = "_centered_19172_8", we = {
|
|
|
630
630
|
"aria-hidden": "true"
|
|
631
631
|
}
|
|
632
632
|
),
|
|
633
|
-
|
|
633
|
+
N.map((a) => {
|
|
634
634
|
const o = a.date === O, { dayLabel: h, dayNum: $ } = ia(a.date);
|
|
635
635
|
return /* @__PURE__ */ e.jsxs(Ke, { children: [
|
|
636
636
|
/* @__PURE__ */ e.jsxs(
|
|
@@ -641,36 +641,36 @@ const We = "_header_19172_1", Ve = "_centered_19172_8", we = {
|
|
|
641
641
|
ue.current[a.date] = P;
|
|
642
642
|
},
|
|
643
643
|
className: [
|
|
644
|
-
|
|
645
|
-
o ?
|
|
644
|
+
r.dateTab,
|
|
645
|
+
o ? r.dateTabSelected : ""
|
|
646
646
|
].filter(Boolean).join(" "),
|
|
647
647
|
role: "radio",
|
|
648
648
|
"aria-checked": o,
|
|
649
649
|
onClick: () => ve(a.date),
|
|
650
650
|
children: [
|
|
651
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
652
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
651
|
+
/* @__PURE__ */ e.jsx("span", { className: r.dateTabLabel, children: n?.(h) ?? h }),
|
|
652
|
+
/* @__PURE__ */ e.jsx("span", { className: r.dateTabNum, children: $ })
|
|
653
653
|
]
|
|
654
654
|
}
|
|
655
655
|
),
|
|
656
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
656
|
+
/* @__PURE__ */ e.jsx("span", { className: r.dateTabDivider, "aria-hidden": !0 })
|
|
657
657
|
] }, a.date);
|
|
658
658
|
})
|
|
659
659
|
] }),
|
|
660
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
661
|
-
|
|
660
|
+
/* @__PURE__ */ e.jsxs("div", { className: r.periodTabs, ref: ee, role: "tablist", "aria-label": "Time of day", children: [
|
|
661
|
+
le && /* @__PURE__ */ e.jsx(
|
|
662
662
|
"span",
|
|
663
663
|
{
|
|
664
|
-
className:
|
|
664
|
+
className: r.periodTabIndicator,
|
|
665
665
|
style: {
|
|
666
|
-
transform: `translateX(${
|
|
667
|
-
width:
|
|
666
|
+
transform: `translateX(${le.left}px)`,
|
|
667
|
+
width: le.width
|
|
668
668
|
},
|
|
669
669
|
"aria-hidden": "true"
|
|
670
670
|
}
|
|
671
671
|
),
|
|
672
672
|
W.map((a) => {
|
|
673
|
-
const o = pn[a], h = a === "evening" &&
|
|
673
|
+
const o = pn[a], h = a === "evening" && I ? "planPeriodEveningNight" : hn[a];
|
|
674
674
|
return /* @__PURE__ */ e.jsxs(
|
|
675
675
|
"button",
|
|
676
676
|
{
|
|
@@ -679,15 +679,15 @@ const We = "_header_19172_1", Ve = "_centered_19172_8", we = {
|
|
|
679
679
|
},
|
|
680
680
|
type: "button",
|
|
681
681
|
className: [
|
|
682
|
-
|
|
683
|
-
a ===
|
|
682
|
+
r.periodTab,
|
|
683
|
+
a === b ? r.periodTabSelected : ""
|
|
684
684
|
].filter(Boolean).join(" "),
|
|
685
685
|
role: "tab",
|
|
686
|
-
"aria-selected": a ===
|
|
686
|
+
"aria-selected": a === b,
|
|
687
687
|
onClick: () => te(a),
|
|
688
688
|
children: [
|
|
689
689
|
/* @__PURE__ */ e.jsx(o, {}),
|
|
690
|
-
n?.(h) ?? (a === "evening" &&
|
|
690
|
+
n?.(h) ?? (a === "evening" && I ? "Evening/Night" : a.charAt(0).toUpperCase() + a.slice(1))
|
|
691
691
|
]
|
|
692
692
|
},
|
|
693
693
|
a
|
|
@@ -697,7 +697,7 @@ const We = "_header_19172_1", Ve = "_centered_19172_8", we = {
|
|
|
697
697
|
/* @__PURE__ */ e.jsx(
|
|
698
698
|
"div",
|
|
699
699
|
{
|
|
700
|
-
className:
|
|
700
|
+
className: r.timeGrid,
|
|
701
701
|
role: "radiogroup",
|
|
702
702
|
"aria-label": "Consultation time",
|
|
703
703
|
children: F.map((a, o) => /* @__PURE__ */ e.jsx(
|
|
@@ -705,32 +705,32 @@ const We = "_header_19172_1", Ve = "_centered_19172_8", we = {
|
|
|
705
705
|
{
|
|
706
706
|
type: "button",
|
|
707
707
|
className: [
|
|
708
|
-
|
|
709
|
-
T?.start === a.start ?
|
|
708
|
+
r.timeSlot,
|
|
709
|
+
T?.start === a.start ? r.timeSlotSelected : ""
|
|
710
710
|
].filter(Boolean).join(" "),
|
|
711
711
|
role: "radio",
|
|
712
712
|
"aria-checked": T?.start === a.start,
|
|
713
|
-
onClick: () =>
|
|
713
|
+
onClick: () => re(a),
|
|
714
714
|
children: je(a.start)
|
|
715
715
|
},
|
|
716
716
|
`${a.start}-${o}`
|
|
717
717
|
))
|
|
718
718
|
},
|
|
719
|
-
`${O}-${
|
|
719
|
+
`${O}-${b}`
|
|
720
720
|
)
|
|
721
721
|
] }),
|
|
722
722
|
A && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
723
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
724
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
723
|
+
/* @__PURE__ */ e.jsx("p", { className: r.sectionHeading, children: n?.("planGuidanceHeading") ?? "What would you like guidance on?" }),
|
|
724
|
+
/* @__PURE__ */ e.jsx("div", { className: r.topicGrid, role: "radiogroup", "aria-label": "Guidance topic", children: da.map((a) => /* @__PURE__ */ e.jsx(
|
|
725
725
|
"button",
|
|
726
726
|
{
|
|
727
727
|
type: "button",
|
|
728
728
|
className: [
|
|
729
|
-
|
|
730
|
-
|
|
729
|
+
r.topicChip,
|
|
730
|
+
R === a.id ? r.topicChipSelected : ""
|
|
731
731
|
].filter(Boolean).join(" "),
|
|
732
732
|
role: "radio",
|
|
733
|
-
"aria-checked":
|
|
733
|
+
"aria-checked": R === a.id,
|
|
734
734
|
onClick: () => fe(a.id),
|
|
735
735
|
children: n?.(a.labelKey) ?? a.label
|
|
736
736
|
},
|
|
@@ -738,10 +738,10 @@ const We = "_header_19172_1", Ve = "_centered_19172_8", we = {
|
|
|
738
738
|
)) })
|
|
739
739
|
] })
|
|
740
740
|
] }),
|
|
741
|
-
!u && /* @__PURE__ */ e.jsxs("div", { className:
|
|
742
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
743
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
744
|
-
|
|
741
|
+
!u && /* @__PURE__ */ e.jsxs("div", { className: r.footer, children: [
|
|
742
|
+
/* @__PURE__ */ e.jsxs("div", { className: r.trustRow, children: [
|
|
743
|
+
/* @__PURE__ */ e.jsx("div", { className: r.trustAvatars, "aria-hidden": !0, children: /* @__PURE__ */ e.jsx(
|
|
744
|
+
S,
|
|
745
745
|
{
|
|
746
746
|
src: "https://srm-cdn.a4b.io/yoda/1785317712031.svg",
|
|
747
747
|
alt: "",
|
|
@@ -752,45 +752,45 @@ const We = "_header_19172_1", Ve = "_centered_19172_8", we = {
|
|
|
752
752
|
loading: "eager"
|
|
753
753
|
}
|
|
754
754
|
) }),
|
|
755
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
755
|
+
/* @__PURE__ */ e.jsx("span", { className: r.trustText, children: n?.("planConsultationTrustLabel") ?? "3,750+ people have booked consultation" })
|
|
756
756
|
] }),
|
|
757
757
|
/* @__PURE__ */ e.jsx(
|
|
758
758
|
"button",
|
|
759
759
|
{
|
|
760
760
|
type: "button",
|
|
761
|
-
className: [
|
|
761
|
+
className: [r.proceedBtn, D ? "" : r.proceedBtnDisabled].filter(Boolean).join(" "),
|
|
762
762
|
disabled: !D,
|
|
763
763
|
onClick: se,
|
|
764
|
-
children:
|
|
764
|
+
children: m ? n?.("planBookSlot") ?? "Book Slot" : n?.("planProceedToPayment") ?? "Proceed to payment"
|
|
765
765
|
}
|
|
766
766
|
)
|
|
767
767
|
] })
|
|
768
768
|
] });
|
|
769
769
|
}, kn = ({
|
|
770
770
|
isOpen: t,
|
|
771
|
-
onClose:
|
|
771
|
+
onClose: l,
|
|
772
772
|
t: n,
|
|
773
773
|
...s
|
|
774
774
|
}) => t ? /* @__PURE__ */ e.jsx(
|
|
775
775
|
"div",
|
|
776
776
|
{
|
|
777
|
-
className:
|
|
777
|
+
className: r.overlay,
|
|
778
778
|
role: "dialog",
|
|
779
779
|
"aria-modal": "true",
|
|
780
780
|
"aria-label": n?.("planConsultationSlotTitle") ?? "Select consultation slot",
|
|
781
|
-
children: /* @__PURE__ */ e.jsxs("div", { className:
|
|
782
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
781
|
+
children: /* @__PURE__ */ e.jsxs("div", { className: r.sheet, children: [
|
|
782
|
+
/* @__PURE__ */ e.jsxs("div", { className: r.header, children: [
|
|
783
783
|
/* @__PURE__ */ e.jsx(
|
|
784
784
|
"button",
|
|
785
785
|
{
|
|
786
|
-
className:
|
|
787
|
-
onClick:
|
|
786
|
+
className: r.backBtn,
|
|
787
|
+
onClick: l,
|
|
788
788
|
"aria-label": "Go back",
|
|
789
789
|
type: "button",
|
|
790
790
|
children: /* @__PURE__ */ e.jsx(Se, {})
|
|
791
791
|
}
|
|
792
792
|
),
|
|
793
|
-
/* @__PURE__ */ e.jsx("h2", { className:
|
|
793
|
+
/* @__PURE__ */ e.jsx("h2", { className: r.title, children: n?.("planConsultationSlotTitle") ?? "Select consultation slot" })
|
|
794
794
|
] }),
|
|
795
795
|
/* @__PURE__ */ e.jsx(bn, { t: n, ...s })
|
|
796
796
|
] })
|
|
@@ -840,36 +840,36 @@ const We = "_header_19172_1", Ve = "_centered_19172_8", we = {
|
|
|
840
840
|
{ text: "planFeatureTailoredRemedies", included: !0 }
|
|
841
841
|
],
|
|
842
842
|
astrologers: xn.filter(
|
|
843
|
-
(
|
|
843
|
+
(l) => ["samiksha", "neeraj", "ashwini"].includes(l.id)
|
|
844
844
|
)
|
|
845
845
|
}
|
|
846
846
|
], jn = ({
|
|
847
847
|
isOpen: t,
|
|
848
|
-
onClose:
|
|
848
|
+
onClose: l,
|
|
849
849
|
selectedPlan: n,
|
|
850
850
|
onSelectPlan: s,
|
|
851
|
-
plans:
|
|
852
|
-
onProceed:
|
|
851
|
+
plans: g,
|
|
852
|
+
onProceed: m,
|
|
853
853
|
t: d,
|
|
854
854
|
analytics: u,
|
|
855
|
-
enableConsultationScheduling:
|
|
855
|
+
enableConsultationScheduling: w
|
|
856
856
|
}) => {
|
|
857
|
-
const A = xe(),
|
|
858
|
-
|
|
857
|
+
const A = xe(), k = A?.config.isGlobal ?? !0, S = w ?? A?.config.enableConsultationScheduling ?? !1, p = g ?? vn(k), I = n?.id || p.find((v) => v.badge)?.id || p[0]?.id || "", c = j(null), x = j(null), _ = j(!1), [B, K] = y(!1);
|
|
858
|
+
C(() => {
|
|
859
859
|
if (t) {
|
|
860
860
|
if (!n) {
|
|
861
|
-
const
|
|
862
|
-
|
|
861
|
+
const v = p.find((E) => E.badge) ?? p[0];
|
|
862
|
+
v && s(v);
|
|
863
863
|
}
|
|
864
|
-
_.current || (u?.trackPlanPageViewed?.(),
|
|
865
|
-
plans_shown:
|
|
866
|
-
default_selected_plan: n?.id ||
|
|
864
|
+
_.current || (u?.trackPlanPageViewed?.(), S && u?.trackPlanScreenViewed?.({
|
|
865
|
+
plans_shown: p.map((v) => v.id),
|
|
866
|
+
default_selected_plan: n?.id || p.find((v) => v.badge)?.id || p[0]?.id || ""
|
|
867
867
|
}), _.current = !0);
|
|
868
868
|
} else
|
|
869
869
|
_.current = !1;
|
|
870
|
-
}, [t,
|
|
870
|
+
}, [t, p, n, s, u]);
|
|
871
871
|
const X = () => {
|
|
872
|
-
u?.trackPlanPageClosed?.(),
|
|
872
|
+
u?.trackPlanPageClosed?.(), l();
|
|
873
873
|
};
|
|
874
874
|
return Be(t), t ? Le(
|
|
875
875
|
/* @__PURE__ */ e.jsxs(
|
|
@@ -884,9 +884,9 @@ const We = "_header_19172_1", Ve = "_centered_19172_8", we = {
|
|
|
884
884
|
"div",
|
|
885
885
|
{
|
|
886
886
|
ref: c,
|
|
887
|
-
className:
|
|
887
|
+
className: S ? i.sheetFullScreen : i.sheet,
|
|
888
888
|
children: [
|
|
889
|
-
|
|
889
|
+
S ? /* @__PURE__ */ e.jsxs("div", { className: i.headerFull, children: [
|
|
890
890
|
/* @__PURE__ */ e.jsx(
|
|
891
891
|
"button",
|
|
892
892
|
{
|
|
@@ -908,30 +908,30 @@ const We = "_header_19172_1", Ve = "_centered_19172_8", we = {
|
|
|
908
908
|
/* @__PURE__ */ e.jsx(
|
|
909
909
|
"div",
|
|
910
910
|
{
|
|
911
|
-
ref:
|
|
911
|
+
ref: x,
|
|
912
912
|
className: i.plansContainer,
|
|
913
913
|
role: "radiogroup",
|
|
914
914
|
"aria-label": "Kundli plans",
|
|
915
|
-
children:
|
|
915
|
+
children: p.map((v) => /* @__PURE__ */ e.jsx(
|
|
916
916
|
sa,
|
|
917
917
|
{
|
|
918
|
-
plan:
|
|
919
|
-
isSelected:
|
|
918
|
+
plan: v,
|
|
919
|
+
isSelected: v.id === I,
|
|
920
920
|
t: d,
|
|
921
921
|
onSelect: (E) => {
|
|
922
|
-
const
|
|
923
|
-
|
|
924
|
-
planId:
|
|
925
|
-
planName:
|
|
926
|
-
...
|
|
927
|
-
price:
|
|
928
|
-
includes_consultation: !!(
|
|
929
|
-
cta_label:
|
|
922
|
+
const f = p.find((H) => H.id === E);
|
|
923
|
+
f && (u?.trackPlanSelected?.({
|
|
924
|
+
planId: f.id,
|
|
925
|
+
planName: f.title,
|
|
926
|
+
...S ? {
|
|
927
|
+
price: f.price,
|
|
928
|
+
includes_consultation: !!(f.astrologers && f.astrologers.length > 0),
|
|
929
|
+
cta_label: f.astrologers && f.astrologers.length > 0 ? d?.("planSelectConsultationSlot") ?? "Select consultation slot →" : d?.("planProceedToPayment") ?? "Proceed to Payment"
|
|
930
930
|
} : {}
|
|
931
|
-
}), s(
|
|
931
|
+
}), s(f));
|
|
932
932
|
}
|
|
933
933
|
},
|
|
934
|
-
|
|
934
|
+
v.id
|
|
935
935
|
))
|
|
936
936
|
}
|
|
937
937
|
),
|
|
@@ -942,7 +942,7 @@ const We = "_header_19172_1", Ve = "_centered_19172_8", we = {
|
|
|
942
942
|
disabled: !n,
|
|
943
943
|
onClick: () => {
|
|
944
944
|
if (n) {
|
|
945
|
-
if (
|
|
945
|
+
if (S && n.astrologers && n.astrologers.length > 0) {
|
|
946
946
|
u?.trackSelectConsultationSlotClicked?.({
|
|
947
947
|
planId: n.id,
|
|
948
948
|
planName: n.title
|
|
@@ -957,17 +957,17 @@ const We = "_header_19172_1", Ve = "_centered_19172_8", we = {
|
|
|
957
957
|
u?.trackPlanProceedClicked?.({
|
|
958
958
|
planId: n.id,
|
|
959
959
|
planName: n.title,
|
|
960
|
-
...
|
|
961
|
-
}),
|
|
960
|
+
...S ? { cta_type: "proceed", next_step: "payment" } : {}
|
|
961
|
+
}), m(n), l();
|
|
962
962
|
}
|
|
963
963
|
},
|
|
964
|
-
children: n ?
|
|
964
|
+
children: n ? S && n.astrologers && n.astrologers.length > 0 ? d?.("planSelectConsultationSlot") ?? "Select consultation slot →" : d?.("planProceedToPayment") ?? n.price + "Proceed to Payment" : "Select a plan"
|
|
965
965
|
}
|
|
966
966
|
) })
|
|
967
967
|
]
|
|
968
968
|
}
|
|
969
969
|
),
|
|
970
|
-
|
|
970
|
+
S && n?.astrologers && n.astrologers.length > 0 && /* @__PURE__ */ e.jsx(
|
|
971
971
|
kn,
|
|
972
972
|
{
|
|
973
973
|
isOpen: B,
|
|
@@ -975,13 +975,13 @@ const We = "_header_19172_1", Ve = "_centered_19172_8", we = {
|
|
|
975
975
|
astrologers: n.astrologers,
|
|
976
976
|
t: d,
|
|
977
977
|
analytics: u,
|
|
978
|
-
onProceed: (
|
|
978
|
+
onProceed: (v) => {
|
|
979
979
|
u?.trackPlanProceedClicked?.({
|
|
980
980
|
planId: n.id,
|
|
981
981
|
planName: n.title,
|
|
982
982
|
cta_type: "proceed",
|
|
983
983
|
next_step: "payment"
|
|
984
|
-
}),
|
|
984
|
+
}), m(n, v), K(!1), l();
|
|
985
985
|
}
|
|
986
986
|
}
|
|
987
987
|
)
|
|
@@ -1012,14 +1012,14 @@ const We = "_header_19172_1", Ve = "_centered_19172_8", we = {
|
|
|
1012
1012
|
mr: "formReportLanguageMarathi"
|
|
1013
1013
|
}, An = ({
|
|
1014
1014
|
values: t,
|
|
1015
|
-
birthTimeFormat:
|
|
1015
|
+
birthTimeFormat: l,
|
|
1016
1016
|
t: n,
|
|
1017
1017
|
onClose: s,
|
|
1018
|
-
onEdit:
|
|
1019
|
-
onConfirm:
|
|
1018
|
+
onEdit: g,
|
|
1019
|
+
onConfirm: m
|
|
1020
1020
|
}) => {
|
|
1021
1021
|
if (Be(!!t), !t) return null;
|
|
1022
|
-
const d = t.birthTimeUnknown ? n("birthDetailsTimeUnknown") :
|
|
1022
|
+
const d = t.birthTimeUnknown ? n("birthDetailsTimeUnknown") : l === "24h" ? t.birthTime : Ie(t.birthTime), u = [
|
|
1023
1023
|
[n("birthDetailsLabelFullName"), t.fullName],
|
|
1024
1024
|
// Submitted phone is "+91-9876543210".
|
|
1025
1025
|
[n("birthDetailsLabelPhone"), t.phone?.replace("-", " ")],
|
|
@@ -1032,14 +1032,14 @@ const We = "_header_19172_1", Ve = "_centered_19172_8", we = {
|
|
|
1032
1032
|
n("formReportLanguage"),
|
|
1033
1033
|
t.language_code && n(Rn[t.language_code])
|
|
1034
1034
|
]
|
|
1035
|
-
],
|
|
1035
|
+
], w = [
|
|
1036
1036
|
[n("birthDetailsLabelDob"), Re(t.dateOfBirth)],
|
|
1037
1037
|
[n("birthDetailsLabelBirthTime"), d],
|
|
1038
1038
|
[n("birthDetailsLabelBirthPlace"), t.birthPlace]
|
|
1039
|
-
], A = (
|
|
1040
|
-
/* @__PURE__ */ e.jsx("dt", { className: M.rowLabel, children:
|
|
1041
|
-
/* @__PURE__ */ e.jsx("dd", { className: M.rowValue, children:
|
|
1042
|
-
] },
|
|
1039
|
+
], A = (S) => /* @__PURE__ */ e.jsx("dl", { className: M.column, children: S.filter(([, p]) => p).map(([p, I]) => /* @__PURE__ */ e.jsxs("div", { className: M.row, children: [
|
|
1040
|
+
/* @__PURE__ */ e.jsx("dt", { className: M.rowLabel, children: p }),
|
|
1041
|
+
/* @__PURE__ */ e.jsx("dd", { className: M.rowValue, children: I })
|
|
1042
|
+
] }, p)) }), k = n("birthDetailsConfirmTitle");
|
|
1043
1043
|
return Le(
|
|
1044
1044
|
/* @__PURE__ */ e.jsx("div", { className: M.overlay, onClick: s, children: /* @__PURE__ */ e.jsxs(
|
|
1045
1045
|
"div",
|
|
@@ -1047,17 +1047,17 @@ const We = "_header_19172_1", Ve = "_centered_19172_8", we = {
|
|
|
1047
1047
|
className: M.sheet,
|
|
1048
1048
|
role: "dialog",
|
|
1049
1049
|
"aria-modal": "true",
|
|
1050
|
-
"aria-label":
|
|
1051
|
-
onClick: (
|
|
1050
|
+
"aria-label": k,
|
|
1051
|
+
onClick: (S) => S.stopPropagation(),
|
|
1052
1052
|
children: [
|
|
1053
|
-
/* @__PURE__ */ e.jsx("h2", { className: M.title, children:
|
|
1053
|
+
/* @__PURE__ */ e.jsx("h2", { className: M.title, children: k }),
|
|
1054
1054
|
/* @__PURE__ */ e.jsxs("div", { className: M.columns, children: [
|
|
1055
1055
|
A(u),
|
|
1056
|
-
A(
|
|
1056
|
+
A(w)
|
|
1057
1057
|
] }),
|
|
1058
1058
|
/* @__PURE__ */ e.jsxs("div", { className: M.actions, children: [
|
|
1059
|
-
/* @__PURE__ */ e.jsx("button", { type: "button", className: M.editBtn, onClick:
|
|
1060
|
-
/* @__PURE__ */ e.jsx("button", { type: "button", className: M.confirmBtn, onClick:
|
|
1059
|
+
/* @__PURE__ */ e.jsx("button", { type: "button", className: M.editBtn, onClick: g, children: n("birthDetailsEdit") }),
|
|
1060
|
+
/* @__PURE__ */ e.jsx("button", { type: "button", className: M.confirmBtn, onClick: m, children: n("birthDetailsConfirmProceed") })
|
|
1061
1061
|
] })
|
|
1062
1062
|
]
|
|
1063
1063
|
}
|
|
@@ -1066,54 +1066,54 @@ const We = "_header_19172_1", Ve = "_centered_19172_8", we = {
|
|
|
1066
1066
|
);
|
|
1067
1067
|
}, En = ({
|
|
1068
1068
|
enabled: t,
|
|
1069
|
-
formValues:
|
|
1069
|
+
formValues: l,
|
|
1070
1070
|
showPlanSheet: n,
|
|
1071
1071
|
analytics: s
|
|
1072
1072
|
}) => {
|
|
1073
|
-
const
|
|
1073
|
+
const [g, m] = y(
|
|
1074
1074
|
null
|
|
1075
|
-
),
|
|
1076
|
-
return
|
|
1077
|
-
const
|
|
1078
|
-
if (!
|
|
1079
|
-
const
|
|
1080
|
-
["date",
|
|
1075
|
+
), d = j(null), u = j(/* @__PURE__ */ new Set());
|
|
1076
|
+
return C(() => {
|
|
1077
|
+
const k = d.current;
|
|
1078
|
+
if (!k) return;
|
|
1079
|
+
const S = [
|
|
1080
|
+
["date", l.dateOfBirth !== k.dateOfBirth],
|
|
1081
1081
|
[
|
|
1082
1082
|
"time",
|
|
1083
|
-
|
|
1083
|
+
l.birthTime !== k.birthTime || l.birthTimeUnknown !== k.birthTimeUnknown
|
|
1084
1084
|
],
|
|
1085
|
-
["place",
|
|
1085
|
+
["place", l.birthPlace !== k.birthPlace]
|
|
1086
1086
|
];
|
|
1087
|
-
for (const [
|
|
1088
|
-
|
|
1087
|
+
for (const [p, I] of S)
|
|
1088
|
+
I && !u.current.has(p) && (u.current.add(p), s?.trackBirthDetailsEditClicked?.({ field: p }));
|
|
1089
1089
|
}, [
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1090
|
+
l.dateOfBirth,
|
|
1091
|
+
l.birthTime,
|
|
1092
|
+
l.birthTimeUnknown,
|
|
1093
|
+
l.birthPlace,
|
|
1094
1094
|
s
|
|
1095
1095
|
]), { showPlanSheetOrConfirm: ce(
|
|
1096
|
-
(
|
|
1097
|
-
if (t
|
|
1098
|
-
|
|
1096
|
+
(k) => {
|
|
1097
|
+
if (!t) {
|
|
1098
|
+
n(k);
|
|
1099
1099
|
return;
|
|
1100
1100
|
}
|
|
1101
|
-
|
|
1102
|
-
edited: y.current.size > 0
|
|
1103
|
-
}), u.current = null), n(m);
|
|
1101
|
+
m(k), s?.trackBirthDetailsConfirmScreenImpression?.();
|
|
1104
1102
|
},
|
|
1105
1103
|
[t, n, s]
|
|
1106
1104
|
), confirmSheetProps: {
|
|
1107
1105
|
values: g,
|
|
1108
|
-
onClose: () =>
|
|
1106
|
+
onClose: () => m(null),
|
|
1109
1107
|
onEdit: () => {
|
|
1110
|
-
|
|
1108
|
+
d.current = g, m(null);
|
|
1111
1109
|
},
|
|
1112
1110
|
onConfirm: () => {
|
|
1113
|
-
s?.trackBirthDetailsConfirmClicked?.({
|
|
1111
|
+
s?.trackBirthDetailsConfirmClicked?.({
|
|
1112
|
+
edited: u.current.size > 0
|
|
1113
|
+
}), d.current = null, u.current.clear(), g && n(g), m(null);
|
|
1114
1114
|
}
|
|
1115
1115
|
} };
|
|
1116
|
-
}, Fn = "https://srm-cdn.a4b.io/yoda/1770362713543.svg", Mn = (t,
|
|
1116
|
+
}, Fn = "https://srm-cdn.a4b.io/yoda/1770362713543.svg", Mn = (t, l) => Ge[t]?.[l] ?? l, On = (t, l) => t && Ce.includes(t) ? t : l ? "+1" : "+91", $n = {
|
|
1117
1117
|
fullName: "",
|
|
1118
1118
|
phone: "",
|
|
1119
1119
|
phoneCountryCode: "",
|
|
@@ -1126,86 +1126,86 @@ const We = "_header_19172_1", Ve = "_centered_19172_8", we = {
|
|
|
1126
1126
|
birthPlace: ""
|
|
1127
1127
|
}, Wn = ({
|
|
1128
1128
|
className: t = "",
|
|
1129
|
-
locale:
|
|
1129
|
+
locale: l,
|
|
1130
1130
|
showLanguageSelector: n = !0,
|
|
1131
1131
|
onBack: s,
|
|
1132
|
-
initialValues:
|
|
1133
|
-
onProceed:
|
|
1132
|
+
initialValues: g,
|
|
1133
|
+
onProceed: m,
|
|
1134
1134
|
onProceedGuidance: d,
|
|
1135
1135
|
proceedHref: u,
|
|
1136
|
-
originalPriceLabel:
|
|
1136
|
+
originalPriceLabel: w,
|
|
1137
1137
|
discountedPriceLabel: A,
|
|
1138
|
-
googleMapsApiKey:
|
|
1139
|
-
atlasSearchLocalities:
|
|
1140
|
-
googleMapsAutocompleteEnabled:
|
|
1141
|
-
analytics:
|
|
1138
|
+
googleMapsApiKey: k = "",
|
|
1139
|
+
atlasSearchLocalities: S,
|
|
1140
|
+
googleMapsAutocompleteEnabled: p,
|
|
1141
|
+
analytics: I
|
|
1142
1142
|
}) => {
|
|
1143
|
-
const c = xe(),
|
|
1143
|
+
const c = xe(), x = Ae(), _ = c !== null, B = _ ? c.locale : l, K = B ?? x?.locale ?? "en", [X, v] = y(K), E = _ ? c.locale : X, f = _ ? c.setLocale : v, [H, V] = y(!1), Y = j(null), J = j(
|
|
1144
1144
|
B
|
|
1145
|
-
), ae =
|
|
1146
|
-
|
|
1145
|
+
), ae = j(
|
|
1146
|
+
x?.locale
|
|
1147
1147
|
);
|
|
1148
|
-
|
|
1148
|
+
C(() => {
|
|
1149
1149
|
window.scrollTo({ top: 0, left: 0, behavior: "auto" });
|
|
1150
1150
|
}, []);
|
|
1151
|
-
const
|
|
1152
|
-
|
|
1153
|
-
B && J.current !== B &&
|
|
1154
|
-
}, [B,
|
|
1151
|
+
const R = (o) => Mn(E, o);
|
|
1152
|
+
C(() => {
|
|
1153
|
+
B && J.current !== B && f(B), J.current = B;
|
|
1154
|
+
}, [B, f]), C(() => {
|
|
1155
1155
|
if (B) return;
|
|
1156
|
-
const o =
|
|
1157
|
-
o && ae.current !== o &&
|
|
1158
|
-
}, [
|
|
1159
|
-
const [_e, O] =
|
|
1156
|
+
const o = x?.locale;
|
|
1157
|
+
o && ae.current !== o && f(o), ae.current = o;
|
|
1158
|
+
}, [x?.locale, B, f]);
|
|
1159
|
+
const [_e, O] = y({
|
|
1160
1160
|
...$n,
|
|
1161
|
-
...
|
|
1162
|
-
phone:
|
|
1163
|
-
}), q = _ ? c?.config.isGlobal ?? !0 : !0,
|
|
1164
|
-
() => On(
|
|
1165
|
-
), oe =
|
|
1166
|
-
!!(
|
|
1167
|
-
), Q =
|
|
1161
|
+
...g,
|
|
1162
|
+
phone: g?.phone ?? ""
|
|
1163
|
+
}), q = _ ? c?.config.isGlobal ?? !0 : !0, b = _ ? c.formValues : _e, ne = _ ? c.setFormValues : O, [T, U] = y(
|
|
1164
|
+
() => On(b.phoneCountryCode, q)
|
|
1165
|
+
), oe = j(
|
|
1166
|
+
!!(b.phoneCountryCode && Ce.includes(b.phoneCountryCode))
|
|
1167
|
+
), Q = j(!1), ue = ce((o) => {
|
|
1168
1168
|
Q.current = !0, U(o);
|
|
1169
|
-
}, []), z =
|
|
1170
|
-
|
|
1169
|
+
}, []), z = j(!0);
|
|
1170
|
+
C(() => {
|
|
1171
1171
|
if (z.current) {
|
|
1172
1172
|
z.current = !1;
|
|
1173
1173
|
return;
|
|
1174
1174
|
}
|
|
1175
1175
|
oe.current || Q.current || U(q ? "+1" : "+91");
|
|
1176
|
-
}, [q]),
|
|
1176
|
+
}, [q]), C(() => {
|
|
1177
1177
|
if (!_ || Q.current) return;
|
|
1178
|
-
const o =
|
|
1178
|
+
const o = b.phoneCountryCode;
|
|
1179
1179
|
o && Ce.includes(o) && o !== T && (oe.current = !0, U(o));
|
|
1180
|
-
}, [_,
|
|
1181
|
-
const ge = _ ? c.goToPage : s, ee = _ ? c.onProceed :
|
|
1182
|
-
|
|
1180
|
+
}, [_, b.phoneCountryCode]);
|
|
1181
|
+
const ge = _ ? c.goToPage : s, ee = _ ? c.onProceed : m, Z = _ ? c.onProceedGuidance : d, le = _ ? c.config.proceedHref : u, me = _ ? c.config.originalPriceLabel : w, N = _ ? c.config.discountedPriceLabel : A, pe = _ ? c.config.showLanguageSelector ?? !0 : n, L = (_ ? c?.config?.analytics : I) ?? I;
|
|
1182
|
+
C(() => {
|
|
1183
1183
|
if (!H) return;
|
|
1184
1184
|
const o = (h) => {
|
|
1185
1185
|
Y.current && !Y.current.contains(h.target) && V(!1);
|
|
1186
1186
|
};
|
|
1187
1187
|
return document.addEventListener("mousedown", o), () => document.removeEventListener("mousedown", o);
|
|
1188
1188
|
}, [H]);
|
|
1189
|
-
const [W, F] =
|
|
1189
|
+
const [W, F] = y(!1), [D, ve] = y(null), te = j(null), re = ce((o) => {
|
|
1190
1190
|
te.current = o, F(!0);
|
|
1191
1191
|
}, []), { showPlanSheetOrConfirm: se, confirmSheetProps: he } = En({
|
|
1192
1192
|
enabled: !!c?.config.enableBirthDetailsConfirmation,
|
|
1193
|
-
formValues:
|
|
1194
|
-
showPlanSheet:
|
|
1193
|
+
formValues: b,
|
|
1194
|
+
showPlanSheet: re,
|
|
1195
1195
|
analytics: L
|
|
1196
|
-
}), fe =
|
|
1197
|
-
|
|
1196
|
+
}), fe = j(!1);
|
|
1197
|
+
C(() => {
|
|
1198
1198
|
if (fe.current || !_ || !c?.config.autoOpenPlanSheet || c?.config.variant !== "v1")
|
|
1199
1199
|
return;
|
|
1200
1200
|
fe.current = !0;
|
|
1201
|
-
const o =
|
|
1201
|
+
const o = b.email.trim();
|
|
1202
1202
|
if (o && !Ee(o)) return;
|
|
1203
|
-
const h = (
|
|
1204
|
-
|
|
1205
|
-
...
|
|
1203
|
+
const h = (b.phone ?? "").trim();
|
|
1204
|
+
re({
|
|
1205
|
+
...b,
|
|
1206
1206
|
phone: h && `${T}-${h}`
|
|
1207
1207
|
});
|
|
1208
|
-
}, [_, c?.config.autoOpenPlanSheet, c?.config.variant,
|
|
1208
|
+
}, [_, c?.config.autoOpenPlanSheet, c?.config.variant, b, T, re]);
|
|
1209
1209
|
const be = ce(() => {
|
|
1210
1210
|
if (!te.current || !D) return;
|
|
1211
1211
|
L?.trackPlanProceedClicked?.({
|
|
@@ -1228,7 +1228,7 @@ const We = "_header_19172_1", Ve = "_centered_19172_8", we = {
|
|
|
1228
1228
|
"aria-expanded": H,
|
|
1229
1229
|
"aria-haspopup": "listbox",
|
|
1230
1230
|
id: "kundli-form-lang",
|
|
1231
|
-
"aria-label":
|
|
1231
|
+
"aria-label": R("language"),
|
|
1232
1232
|
children: [
|
|
1233
1233
|
/* @__PURE__ */ e.jsx(
|
|
1234
1234
|
ke,
|
|
@@ -1260,7 +1260,7 @@ const We = "_header_19172_1", Ve = "_centered_19172_8", we = {
|
|
|
1260
1260
|
"aria-selected": o === E,
|
|
1261
1261
|
className: G.langOption,
|
|
1262
1262
|
onClick: () => {
|
|
1263
|
-
L?.trackLanguageChangedFe?.({ newLanguage: o }),
|
|
1263
|
+
L?.trackLanguageChangedFe?.({ newLanguage: o }), f(o), V(!1);
|
|
1264
1264
|
},
|
|
1265
1265
|
children: Te[o]
|
|
1266
1266
|
},
|
|
@@ -1271,9 +1271,9 @@ const We = "_header_19172_1", Ve = "_centered_19172_8", we = {
|
|
|
1271
1271
|
] }) : null;
|
|
1272
1272
|
return /* @__PURE__ */ e.jsxs("div", { className: `${G.container} ${t}`, children: [
|
|
1273
1273
|
/* @__PURE__ */ e.jsx(
|
|
1274
|
-
|
|
1274
|
+
lt,
|
|
1275
1275
|
{
|
|
1276
|
-
t:
|
|
1276
|
+
t: R,
|
|
1277
1277
|
logoUrl: _ ? c.config.logoUrl : void 0,
|
|
1278
1278
|
languageSelector: a,
|
|
1279
1279
|
className: G.kundliHeaderNoBorder
|
|
@@ -1281,16 +1281,16 @@ const We = "_header_19172_1", Ve = "_centered_19172_8", we = {
|
|
|
1281
1281
|
),
|
|
1282
1282
|
/* @__PURE__ */ e.jsx("div", { className: G.headerSeparator, "aria-hidden": !0 }),
|
|
1283
1283
|
/* @__PURE__ */ e.jsxs("main", { className: G.main, children: [
|
|
1284
|
-
/* @__PURE__ */ e.jsx(Ye, { t:
|
|
1284
|
+
/* @__PURE__ */ e.jsx(Ye, { t: R, onBack: ge }),
|
|
1285
1285
|
/* @__PURE__ */ e.jsx(
|
|
1286
1286
|
Oe,
|
|
1287
1287
|
{
|
|
1288
|
-
t:
|
|
1289
|
-
values:
|
|
1288
|
+
t: R,
|
|
1289
|
+
values: b,
|
|
1290
1290
|
onChange: ne,
|
|
1291
|
-
googleMapsApiKey:
|
|
1292
|
-
atlasSearchLocalities:
|
|
1293
|
-
googleMapsAutocompleteEnabled:
|
|
1291
|
+
googleMapsApiKey: k,
|
|
1292
|
+
atlasSearchLocalities: S,
|
|
1293
|
+
googleMapsAutocompleteEnabled: p,
|
|
1294
1294
|
phoneIsdCode: T,
|
|
1295
1295
|
onPhoneIsdCodeChange: ue,
|
|
1296
1296
|
showV1ExtraFields: _ ? c?.config.variant === "v1" : !1,
|
|
@@ -1301,14 +1301,14 @@ const We = "_header_19172_1", Ve = "_centered_19172_8", we = {
|
|
|
1301
1301
|
/* @__PURE__ */ e.jsx(
|
|
1302
1302
|
$e,
|
|
1303
1303
|
{
|
|
1304
|
-
t:
|
|
1305
|
-
values:
|
|
1304
|
+
t: R,
|
|
1305
|
+
values: b,
|
|
1306
1306
|
phoneIsdCode: T,
|
|
1307
1307
|
onProceed: ee,
|
|
1308
1308
|
onProceedGuidance: Z,
|
|
1309
|
-
href:
|
|
1309
|
+
href: le,
|
|
1310
1310
|
originalPriceLabel: me,
|
|
1311
|
-
discountedPriceLabel:
|
|
1311
|
+
discountedPriceLabel: N,
|
|
1312
1312
|
analytics: L,
|
|
1313
1313
|
showPlanSheet: se,
|
|
1314
1314
|
confirmPlan: be,
|
|
@@ -1321,7 +1321,7 @@ const We = "_header_19172_1", Ve = "_centered_19172_8", we = {
|
|
|
1321
1321
|
{
|
|
1322
1322
|
...he,
|
|
1323
1323
|
birthTimeFormat: c?.config.birthTimeFormat ?? "12h",
|
|
1324
|
-
t:
|
|
1324
|
+
t: R
|
|
1325
1325
|
}
|
|
1326
1326
|
),
|
|
1327
1327
|
c?.config.variant === "v1" && /* @__PURE__ */ e.jsx(
|
|
@@ -1335,7 +1335,7 @@ const We = "_header_19172_1", Ve = "_centered_19172_8", we = {
|
|
|
1335
1335
|
be?.();
|
|
1336
1336
|
},
|
|
1337
1337
|
plans: c?.config.plans,
|
|
1338
|
-
t:
|
|
1338
|
+
t: R,
|
|
1339
1339
|
analytics: L
|
|
1340
1340
|
}
|
|
1341
1341
|
)
|
|
@@ -1424,11 +1424,11 @@ export {
|
|
|
1424
1424
|
Vn as K,
|
|
1425
1425
|
Wn as a,
|
|
1426
1426
|
kn as b,
|
|
1427
|
-
|
|
1427
|
+
lt as c,
|
|
1428
1428
|
Se as d,
|
|
1429
1429
|
En as e,
|
|
1430
1430
|
jn as f,
|
|
1431
1431
|
vn as g,
|
|
1432
1432
|
Be as u
|
|
1433
1433
|
};
|
|
1434
|
-
//# sourceMappingURL=analytics-
|
|
1434
|
+
//# sourceMappingURL=analytics-Q-qph8Sl.js.map
|