@srimandir/kundli-generator 7.5.31 → 7.5.32
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-V1nT_Ehk.js → analytics-CJr_Zsdu.js} +79 -79
- package/dist/analytics-CJr_Zsdu.js.map +1 -0
- package/dist/components/KundliPlanBottomSheet/ConsultationSlotModal.d.ts +1 -1
- package/dist/{criticalCss-CMB_sPPq.js → criticalCss-MRrmPyF6.js} +2 -2
- package/dist/{criticalCss-CMB_sPPq.js.map → criticalCss-MRrmPyF6.js.map} +1 -1
- package/dist/form-entry.js +1 -1
- package/dist/i18n/I18nContext.d.ts +7 -1
- package/dist/kundli-generator.js +2 -2
- package/dist/page-entry.js +2 -2
- package/package.json +2 -2
- package/dist/analytics-V1nT_Ehk.js.map +0 -1
|
@@ -6,12 +6,12 @@ function ea() {
|
|
|
6
6
|
if (gt) return Ke;
|
|
7
7
|
gt = 1;
|
|
8
8
|
var a = rt, r = /* @__PURE__ */ Symbol.for("react.element"), s = /* @__PURE__ */ Symbol.for("react.fragment"), p = Object.prototype.hasOwnProperty, d = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, f = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
9
|
-
function b(
|
|
9
|
+
function b(j, y, q) {
|
|
10
10
|
var M, R = {}, m = null, P = null;
|
|
11
11
|
q !== void 0 && (m = "" + q), y.key !== void 0 && (m = "" + y.key), y.ref !== void 0 && (P = y.ref);
|
|
12
12
|
for (M in y) p.call(y, M) && !f.hasOwnProperty(M) && (R[M] = y[M]);
|
|
13
|
-
if (
|
|
14
|
-
return { $$typeof: r, type:
|
|
13
|
+
if (j && j.defaultProps) for (M in y = j.defaultProps, y) R[M] === void 0 && (R[M] = y[M]);
|
|
14
|
+
return { $$typeof: r, type: j, key: m, ref: P, props: R, _owner: d.current };
|
|
15
15
|
}
|
|
16
16
|
return Ke.Fragment = s, Ke.jsx = b, Ke.jsxs = b, Ke;
|
|
17
17
|
}
|
|
@@ -19,7 +19,7 @@ var We = {};
|
|
|
19
19
|
var _t;
|
|
20
20
|
function ta() {
|
|
21
21
|
return _t || (_t = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
22
|
-
var a = rt, r = /* @__PURE__ */ Symbol.for("react.element"), s = /* @__PURE__ */ Symbol.for("react.portal"), p = /* @__PURE__ */ Symbol.for("react.fragment"), d = /* @__PURE__ */ Symbol.for("react.strict_mode"), f = /* @__PURE__ */ Symbol.for("react.profiler"), b = /* @__PURE__ */ Symbol.for("react.provider"),
|
|
22
|
+
var a = rt, r = /* @__PURE__ */ Symbol.for("react.element"), s = /* @__PURE__ */ Symbol.for("react.portal"), p = /* @__PURE__ */ Symbol.for("react.fragment"), d = /* @__PURE__ */ Symbol.for("react.strict_mode"), f = /* @__PURE__ */ Symbol.for("react.profiler"), b = /* @__PURE__ */ Symbol.for("react.provider"), j = /* @__PURE__ */ Symbol.for("react.context"), y = /* @__PURE__ */ Symbol.for("react.forward_ref"), q = /* @__PURE__ */ Symbol.for("react.suspense"), M = /* @__PURE__ */ Symbol.for("react.suspense_list"), R = /* @__PURE__ */ Symbol.for("react.memo"), m = /* @__PURE__ */ Symbol.for("react.lazy"), P = /* @__PURE__ */ Symbol.for("react.offscreen"), v = Symbol.iterator, J = "@@iterator";
|
|
23
23
|
function x(t) {
|
|
24
24
|
if (t === null || typeof t != "object")
|
|
25
25
|
return null;
|
|
@@ -47,7 +47,7 @@ function ta() {
|
|
|
47
47
|
var S = !1, V = !1, A = !1, G = !1, N = !1, $;
|
|
48
48
|
$ = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
49
49
|
function ee(t) {
|
|
50
|
-
return !!(typeof t == "string" || typeof t == "function" || t === p || t === f || N || t === d || t === q || t === M || G || t === P || S || V || A || typeof t == "object" && t !== null && (t.$$typeof === m || t.$$typeof === R || t.$$typeof === b || t.$$typeof ===
|
|
50
|
+
return !!(typeof t == "string" || typeof t == "function" || t === p || t === f || N || t === d || t === q || t === M || G || t === P || S || V || A || typeof t == "object" && t !== null && (t.$$typeof === m || t.$$typeof === R || t.$$typeof === b || t.$$typeof === j || t.$$typeof === y || // This needs to include all possible module reference object
|
|
51
51
|
// types supported by any Flight configuration anywhere since
|
|
52
52
|
// we don't know which Flight build this will end up being used
|
|
53
53
|
// with.
|
|
@@ -86,7 +86,7 @@ function ta() {
|
|
|
86
86
|
}
|
|
87
87
|
if (typeof t == "object")
|
|
88
88
|
switch (t.$$typeof) {
|
|
89
|
-
case
|
|
89
|
+
case j:
|
|
90
90
|
var l = t;
|
|
91
91
|
return I(l) + ".Consumer";
|
|
92
92
|
case b:
|
|
@@ -1105,7 +1105,7 @@ const na = "_container_1e1th_1", ra = "_main_1e1th_7", oa = "_kundliHeaderNoBord
|
|
|
1105
1105
|
locale: a,
|
|
1106
1106
|
children: r
|
|
1107
1107
|
}) => {
|
|
1108
|
-
const p = { locale: a, t: (d) => Tt[a]?.[d]
|
|
1108
|
+
const p = { locale: a, t: (d) => Tt[a]?.[d] };
|
|
1109
1109
|
return /* @__PURE__ */ e.jsx(St.Provider, { value: p, children: r });
|
|
1110
1110
|
};
|
|
1111
1111
|
function ma() {
|
|
@@ -1182,7 +1182,7 @@ const it = wt(null), ba = {
|
|
|
1182
1182
|
isGlobal: d,
|
|
1183
1183
|
variant: f,
|
|
1184
1184
|
initialFormValues: b,
|
|
1185
|
-
autoOpenPlanSheet:
|
|
1185
|
+
autoOpenPlanSheet: j,
|
|
1186
1186
|
googleMapsApiKey: y,
|
|
1187
1187
|
atlasSearchLocalities: q,
|
|
1188
1188
|
googleMapsAutocompleteEnabled: M,
|
|
@@ -1236,7 +1236,7 @@ const it = wt(null), ba = {
|
|
|
1236
1236
|
isGlobal: d,
|
|
1237
1237
|
variant: f,
|
|
1238
1238
|
initialFormValues: b,
|
|
1239
|
-
autoOpenPlanSheet:
|
|
1239
|
+
autoOpenPlanSheet: j,
|
|
1240
1240
|
googleMapsApiKey: y,
|
|
1241
1241
|
atlasSearchLocalities: q,
|
|
1242
1242
|
googleMapsAutocompleteEnabled: M,
|
|
@@ -1272,7 +1272,7 @@ const it = wt(null), ba = {
|
|
|
1272
1272
|
d,
|
|
1273
1273
|
f,
|
|
1274
1274
|
b,
|
|
1275
|
-
|
|
1275
|
+
j,
|
|
1276
1276
|
y,
|
|
1277
1277
|
q,
|
|
1278
1278
|
M,
|
|
@@ -1417,12 +1417,12 @@ const vn = (a, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1417
1417
|
}
|
|
1418
1418
|
const f = document.createElement("script"), b = new URL("https://maps.googleapis.com/maps/api/js");
|
|
1419
1419
|
b.searchParams.set("key", a), b.searchParams.set("libraries", "places"), b.searchParams.set("loading", "async"), r && b.searchParams.set("language", r), f.src = b.toString(), f.async = !0, f.defer = !0, f.setAttribute("data-google-maps-places", "true"), f.onload = () => {
|
|
1420
|
-
const
|
|
1420
|
+
const j = Date.now(), y = () => {
|
|
1421
1421
|
if (window.google?.maps?.places) {
|
|
1422
1422
|
s();
|
|
1423
1423
|
return;
|
|
1424
1424
|
}
|
|
1425
|
-
if (Date.now() -
|
|
1425
|
+
if (Date.now() - j > 2e3) {
|
|
1426
1426
|
p(
|
|
1427
1427
|
new Error(
|
|
1428
1428
|
"Google Maps loaded but Places library is unavailable. Check API key restrictions / enabled APIs."
|
|
@@ -1435,7 +1435,7 @@ const vn = (a, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1435
1435
|
y();
|
|
1436
1436
|
}, f.onerror = () => p(new Error("Failed to load Google Maps API")), document.head.appendChild(f);
|
|
1437
1437
|
}), ze), xn = (a) => {
|
|
1438
|
-
const { apiKey: r, language: s = "en", restrictCountry: p, deferLoad: d = !1 } = a, [f, b] = B(!1), [
|
|
1438
|
+
const { apiKey: r, language: s = "en", restrictCountry: p, deferLoad: d = !1 } = a, [f, b] = B(!1), [j, y] = B([]), [q, M] = B(!1), [R, m] = B(null), [P, v] = B(!d), J = F(null), x = F(null), k = F(null), C = Pe(() => {
|
|
1439
1439
|
d && v(!0);
|
|
1440
1440
|
}, [d]);
|
|
1441
1441
|
Y(() => {
|
|
@@ -1529,7 +1529,7 @@ const vn = (a, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1529
1529
|
), V = Pe(() => y([]), []);
|
|
1530
1530
|
return {
|
|
1531
1531
|
isLoaded: f,
|
|
1532
|
-
predictions:
|
|
1532
|
+
predictions: j,
|
|
1533
1533
|
isSearching: q,
|
|
1534
1534
|
loadError: R,
|
|
1535
1535
|
searchPlaces: oe,
|
|
@@ -1546,7 +1546,7 @@ const vn = (a, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1546
1546
|
restrictCountry: a?.restrictCountry
|
|
1547
1547
|
};
|
|
1548
1548
|
}, jn = (a) => {
|
|
1549
|
-
const { searchLocalities: r, restrictCountry: s } = a, [p, d] = B([]), [f, b] = B(!1), [
|
|
1549
|
+
const { searchLocalities: r, restrictCountry: s } = a, [p, d] = B([]), [f, b] = B(!1), [j, y] = B(null), q = F(0);
|
|
1550
1550
|
Y(() => {
|
|
1551
1551
|
y(null);
|
|
1552
1552
|
}, [r]);
|
|
@@ -1583,7 +1583,7 @@ const vn = (a, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1583
1583
|
return {
|
|
1584
1584
|
predictions: p,
|
|
1585
1585
|
isSearching: f,
|
|
1586
|
-
loadError:
|
|
1586
|
+
loadError: j,
|
|
1587
1587
|
searchPlaces: M,
|
|
1588
1588
|
clearPredictions: R
|
|
1589
1589
|
};
|
|
@@ -1670,7 +1670,7 @@ const vn = (a, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1670
1670
|
onPhoneIsdCodeChange: d,
|
|
1671
1671
|
showV1ExtraFields: f = !1,
|
|
1672
1672
|
analytics: b,
|
|
1673
|
-
googleMapsApiKey:
|
|
1673
|
+
googleMapsApiKey: j,
|
|
1674
1674
|
atlasSearchLocalities: y,
|
|
1675
1675
|
googleMapsAutocompleteEnabled: q,
|
|
1676
1676
|
className: M = ""
|
|
@@ -1708,7 +1708,7 @@ const vn = (a, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1708
1708
|
return n.meridiem === "PM" && (Se += 12), `${X(Se)}:${H}`;
|
|
1709
1709
|
}, he = F(null), [Z, W] = B(!1), fe = F(r.birthPlace ?? ""), [ae, ne] = B(
|
|
1710
1710
|
null
|
|
1711
|
-
), ce =
|
|
1711
|
+
), ce = j ?? v ?? Cn?.VITE_GOOGLE_MAPS_API_KEY, Ae = y ?? J, pe = q ?? x ?? !0, me = (r.birthPlace ?? "").trim(), Ne = P ? void 0 : "in", _e = xn({
|
|
1712
1712
|
apiKey: pe ? ce : void 0,
|
|
1713
1713
|
language: "en",
|
|
1714
1714
|
restrictCountry: Ne
|
|
@@ -2569,7 +2569,7 @@ const vn = (a, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2569
2569
|
onValidationFailed: d,
|
|
2570
2570
|
onProceed: f,
|
|
2571
2571
|
onProceedGuidance: b,
|
|
2572
|
-
href:
|
|
2572
|
+
href: j,
|
|
2573
2573
|
analytics: y,
|
|
2574
2574
|
className: q = "",
|
|
2575
2575
|
discountedPriceLabel: M,
|
|
@@ -2599,7 +2599,7 @@ const vn = (a, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2599
2599
|
}, $ = /* @__PURE__ */ e.jsx(
|
|
2600
2600
|
Jt,
|
|
2601
2601
|
{
|
|
2602
|
-
href:
|
|
2602
|
+
href: j,
|
|
2603
2603
|
disabled: C === "v1" ? !1 : !S,
|
|
2604
2604
|
onClick: N,
|
|
2605
2605
|
"aria-label": a("formPriceAria"),
|
|
@@ -2702,7 +2702,7 @@ const vn = (a, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2702
2702
|
/* @__PURE__ */ e.jsx("path", { d: "M3 9.5h18", stroke: "#D1D5DB", strokeWidth: "1.6" }),
|
|
2703
2703
|
/* @__PURE__ */ e.jsx("path", { d: "M8 2.5v4M16 2.5v4", stroke: "#D1D5DB", strokeWidth: "1.6", strokeLinecap: "round" }),
|
|
2704
2704
|
/* @__PURE__ */ e.jsx("path", { d: "M7.5 20.5L17 6", stroke: "#9CA3AF", strokeWidth: "1.6", strokeLinecap: "round" })
|
|
2705
|
-
] }), Qn = "_overlay_1u7x5_2", Xn = "_sheet_1u7x5_12", Zn = "_sheetFullScreen_1u7x5_36", er = "_headerFull_1u7x5_50", tr = "_titleFull_1u7x5_63", ar = "_header_1u7x5_50", nr = "_backBtn_1u7x5_84", rr = "_title_1u7x5_63", or = "_plansContainer_1u7x5_114", ir = "_planCard_1u7x5_123", lr = "_withBadgeSpacing_1u7x5_137", sr = "_planCardSelected_1u7x5_141", cr = "_planCardPopular_1u7x5_146", dr = "_popularBadge_1u7x5_155", ur = "_planCardInner_1u7x5_173", pr = "_planTitleRow_1u7x5_184", mr = "_planTitle_1u7x5_184", hr = "_radioCircle_1u7x5_199", fr = "_radioChecked_1u7x5_212", gr = "_radioInner_1u7x5_217", _r = "_priceRow_1u7x5_225", br = "_price_1u7x5_225", yr = "_originalPrice_1u7x5_238", kr = "_savingsBadge_1u7x5_245", vr = "_featureList_1u7x5_255", xr = "_featureItem_1u7x5_264", wr = "_featureIcon_1u7x5_270", jr = "_featureText_1u7x5_276", Tr = "_astrologerHeading_1u7x5_287", Sr = "_astrologerList_1u7x5_294", Cr = "_astrologerCard_1u7x5_310", Pr = "_astrologerAvatar_1u7x5_326", Ar = "_astrologerAvatarPlaceholder_1u7x5_343", Nr = "_astrologerTop_1u7x5_349", Rr = "_astrologerBasicInfo_1u7x5_355", Lr = "_astrologerName_1u7x5_362", Ir = "_astrologerExp_1u7x5_371", Er = "_astrologerDivider_1u7x5_377", Dr = "_planDivider_1u7x5_383", Br = "_astrologerCertList_1u7x5_390", Or = "_astrologerCertItem_1u7x5_396", Mr = "_bullet_1u7x5_404", Fr = "_footer_1u7x5_409", $r = "_proceedBtn_1u7x5_419",
|
|
2705
|
+
] }), Qn = "_overlay_1u7x5_2", Xn = "_sheet_1u7x5_12", Zn = "_sheetFullScreen_1u7x5_36", er = "_headerFull_1u7x5_50", tr = "_titleFull_1u7x5_63", ar = "_header_1u7x5_50", nr = "_backBtn_1u7x5_84", rr = "_title_1u7x5_63", or = "_plansContainer_1u7x5_114", ir = "_planCard_1u7x5_123", lr = "_withBadgeSpacing_1u7x5_137", sr = "_planCardSelected_1u7x5_141", cr = "_planCardPopular_1u7x5_146", dr = "_popularBadge_1u7x5_155", ur = "_planCardInner_1u7x5_173", pr = "_planTitleRow_1u7x5_184", mr = "_planTitle_1u7x5_184", hr = "_radioCircle_1u7x5_199", fr = "_radioChecked_1u7x5_212", gr = "_radioInner_1u7x5_217", _r = "_priceRow_1u7x5_225", br = "_price_1u7x5_225", yr = "_originalPrice_1u7x5_238", kr = "_savingsBadge_1u7x5_245", vr = "_featureList_1u7x5_255", xr = "_featureItem_1u7x5_264", wr = "_featureIcon_1u7x5_270", jr = "_featureText_1u7x5_276", Tr = "_astrologerHeading_1u7x5_287", Sr = "_astrologerList_1u7x5_294", Cr = "_astrologerCard_1u7x5_310", Pr = "_astrologerAvatar_1u7x5_326", Ar = "_astrologerAvatarPlaceholder_1u7x5_343", Nr = "_astrologerTop_1u7x5_349", Rr = "_astrologerBasicInfo_1u7x5_355", Lr = "_astrologerName_1u7x5_362", Ir = "_astrologerExp_1u7x5_371", Er = "_astrologerDivider_1u7x5_377", Dr = "_planDivider_1u7x5_383", Br = "_astrologerCertList_1u7x5_390", Or = "_astrologerCertItem_1u7x5_396", Mr = "_bullet_1u7x5_404", Fr = "_footer_1u7x5_409", $r = "_proceedBtn_1u7x5_419", T = {
|
|
2706
2706
|
overlay: Qn,
|
|
2707
2707
|
sheet: Xn,
|
|
2708
2708
|
sheetFullScreen: Zn,
|
|
@@ -2747,42 +2747,42 @@ const vn = (a, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2747
2747
|
bullet: Mr,
|
|
2748
2748
|
footer: Fr,
|
|
2749
2749
|
proceedBtn: $r
|
|
2750
|
-
}, Gr = ({ title: a, onBack: r }) => /* @__PURE__ */ e.jsxs("div", { className:
|
|
2750
|
+
}, Gr = ({ title: a, onBack: r }) => /* @__PURE__ */ e.jsxs("div", { className: T.header, children: [
|
|
2751
2751
|
/* @__PURE__ */ e.jsx(
|
|
2752
2752
|
"button",
|
|
2753
2753
|
{
|
|
2754
|
-
className:
|
|
2754
|
+
className: T.backBtn,
|
|
2755
2755
|
onClick: r,
|
|
2756
2756
|
"aria-label": "Go back",
|
|
2757
2757
|
type: "button",
|
|
2758
2758
|
children: /* @__PURE__ */ e.jsx(st, {})
|
|
2759
2759
|
}
|
|
2760
2760
|
),
|
|
2761
|
-
/* @__PURE__ */ e.jsx("h2", { className:
|
|
2762
|
-
] }), Ur = ({ features: a, t: r }) => /* @__PURE__ */ e.jsx("ul", { className:
|
|
2763
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
2761
|
+
/* @__PURE__ */ e.jsx("h2", { className: T.title, children: a })
|
|
2762
|
+
] }), Ur = ({ features: a, t: r }) => /* @__PURE__ */ e.jsx("ul", { className: T.featureList, "aria-label": "Plan features", children: a.map((s, p) => /* @__PURE__ */ e.jsxs("li", { className: T.featureItem, children: [
|
|
2763
|
+
/* @__PURE__ */ e.jsx("span", { className: T.featureIcon, children: s.included ? /* @__PURE__ */ e.jsx(Rt, {}) : /* @__PURE__ */ e.jsx(Wn, {}) }),
|
|
2764
2764
|
/* @__PURE__ */ e.jsx(
|
|
2765
2765
|
"span",
|
|
2766
2766
|
{
|
|
2767
|
-
className: `${
|
|
2767
|
+
className: `${T.featureText} `,
|
|
2768
2768
|
children: r?.(s.text) ?? s.text
|
|
2769
2769
|
}
|
|
2770
2770
|
)
|
|
2771
|
-
] }, p)) }), Kr = ({ astrologer: a, t: r }) => /* @__PURE__ */ e.jsxs("div", { className:
|
|
2772
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2773
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
2774
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2775
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
2776
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
2771
|
+
] }, p)) }), Kr = ({ astrologer: a, t: r }) => /* @__PURE__ */ e.jsxs("div", { className: T.astrologerCard, children: [
|
|
2772
|
+
/* @__PURE__ */ e.jsxs("div", { className: T.astrologerTop, children: [
|
|
2773
|
+
/* @__PURE__ */ e.jsx("div", { className: T.astrologerAvatar, "aria-hidden": !0, children: a.imageUrl ? /* @__PURE__ */ e.jsx("img", { src: a.imageUrl, alt: r?.(a.name) ?? a.name, width: 40, height: 40 }) : /* @__PURE__ */ e.jsx("span", { className: T.astrologerAvatarPlaceholder, children: a.name.charAt(0) }) }),
|
|
2774
|
+
/* @__PURE__ */ e.jsxs("div", { className: T.astrologerBasicInfo, children: [
|
|
2775
|
+
/* @__PURE__ */ e.jsx("p", { className: T.astrologerName, children: r?.(a.name) ?? a.name }),
|
|
2776
|
+
/* @__PURE__ */ e.jsx("p", { className: T.astrologerExp, children: r?.(a.experience) ?? a.experience })
|
|
2777
2777
|
] })
|
|
2778
2778
|
] }),
|
|
2779
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
2780
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
2781
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
2779
|
+
/* @__PURE__ */ e.jsx("div", { className: T.astrologerDivider }),
|
|
2780
|
+
/* @__PURE__ */ e.jsx("div", { className: T.astrologerCertList, children: a.certifications.map((s, p) => /* @__PURE__ */ e.jsxs("p", { className: T.astrologerCertItem, children: [
|
|
2781
|
+
/* @__PURE__ */ e.jsx("span", { className: T.bullet, children: "•" }),
|
|
2782
2782
|
" ",
|
|
2783
2783
|
r?.(s) ?? s
|
|
2784
2784
|
] }, p)) })
|
|
2785
|
-
] }), Wr = ({ label: a }) => /* @__PURE__ */ e.jsxs("div", { className:
|
|
2785
|
+
] }), Wr = ({ label: a }) => /* @__PURE__ */ e.jsxs("div", { className: T.popularBadge, "aria-label": a, children: [
|
|
2786
2786
|
/* @__PURE__ */ e.jsx(Yn, {}),
|
|
2787
2787
|
/* @__PURE__ */ e.jsx("span", { children: a })
|
|
2788
2788
|
] }), Hr = ({ plan: a, isSelected: r, onSelect: s, t: p }) => {
|
|
@@ -2793,9 +2793,9 @@ const vn = (a, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2793
2793
|
"div",
|
|
2794
2794
|
{
|
|
2795
2795
|
className: [
|
|
2796
|
-
|
|
2797
|
-
r ?
|
|
2798
|
-
r &&
|
|
2796
|
+
T.planCard,
|
|
2797
|
+
r ? T.planCardSelected : "",
|
|
2798
|
+
r && T.planCardPopular
|
|
2799
2799
|
].filter(Boolean).join(" "),
|
|
2800
2800
|
onClick: d,
|
|
2801
2801
|
role: "radio",
|
|
@@ -2805,28 +2805,28 @@ const vn = (a, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2805
2805
|
"data-plan-id": a.id,
|
|
2806
2806
|
children: [
|
|
2807
2807
|
a.badge && /* @__PURE__ */ e.jsx(Wr, { label: p?.(a.badge) ?? a.badge }),
|
|
2808
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2809
|
-
/* @__PURE__ */ e.jsxs("div", { className: `${
|
|
2810
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
2808
|
+
/* @__PURE__ */ e.jsxs("div", { className: T.planCardInner, children: [
|
|
2809
|
+
/* @__PURE__ */ e.jsxs("div", { className: `${T.planTitleRow} ${a.badge ? T.withBadgeSpacing : ""}`, children: [
|
|
2810
|
+
/* @__PURE__ */ e.jsx("span", { className: T.planTitle, children: p?.(a.title) ?? a.title }),
|
|
2811
2811
|
/* @__PURE__ */ e.jsx(
|
|
2812
2812
|
"span",
|
|
2813
2813
|
{
|
|
2814
|
-
className: `${
|
|
2814
|
+
className: `${T.radioCircle} ${r ? T.radioChecked : ""}`,
|
|
2815
2815
|
"aria-hidden": !0,
|
|
2816
|
-
children: r && /* @__PURE__ */ e.jsx("span", { className:
|
|
2816
|
+
children: r && /* @__PURE__ */ e.jsx("span", { className: T.radioInner })
|
|
2817
2817
|
}
|
|
2818
2818
|
)
|
|
2819
2819
|
] }),
|
|
2820
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2821
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
2822
|
-
a.originalPrice && /* @__PURE__ */ e.jsx("span", { className:
|
|
2823
|
-
a.savingsLabel && /* @__PURE__ */ e.jsx("span", { className:
|
|
2820
|
+
/* @__PURE__ */ e.jsxs("div", { className: T.priceRow, children: [
|
|
2821
|
+
/* @__PURE__ */ e.jsx("span", { className: T.price, children: a.price }),
|
|
2822
|
+
a.originalPrice && /* @__PURE__ */ e.jsx("span", { className: T.originalPrice, children: a.originalPrice }),
|
|
2823
|
+
a.savingsLabel && /* @__PURE__ */ e.jsx("span", { className: T.savingsBadge, children: p?.(a.savingsLabel, { percent: 25 }) ?? a.savingsLabel })
|
|
2824
2824
|
] }),
|
|
2825
2825
|
/* @__PURE__ */ e.jsx(Ur, { features: a.features, t: p }),
|
|
2826
|
-
a.astrologers && /* @__PURE__ */ e.jsx("div", { className:
|
|
2826
|
+
a.astrologers && /* @__PURE__ */ e.jsx("div", { className: T.planDivider }),
|
|
2827
2827
|
a.astrologers && a.astrologers.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2828
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
2829
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
2828
|
+
/* @__PURE__ */ e.jsx("p", { className: T.astrologerHeading, children: p?.("planAstrologerHeading") ?? "We will assign you a top astrologer from below" }),
|
|
2829
|
+
/* @__PURE__ */ e.jsx("div", { className: T.astrologerList, role: "list", children: a.astrologers.map((b, j) => /* @__PURE__ */ e.jsx("div", { role: "listitem", children: /* @__PURE__ */ e.jsx(Kr, { astrologer: b, t: p }) }, j)) })
|
|
2830
2830
|
] })
|
|
2831
2831
|
] })
|
|
2832
2832
|
]
|
|
@@ -2841,7 +2841,7 @@ const vn = (a, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2841
2841
|
const s = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], p = /* @__PURE__ */ new Date(`${a}T00:00:00`);
|
|
2842
2842
|
if (Number.isNaN(p.getTime()))
|
|
2843
2843
|
return { id: a, dayLabel: a, dayNum: "" };
|
|
2844
|
-
const d = (
|
|
2844
|
+
const d = (j) => new Date(j.getFullYear(), j.getMonth(), j.getDate()).getTime(), f = Math.round(
|
|
2845
2845
|
(d(p) - d(r)) / (1e3 * 60 * 60 * 24)
|
|
2846
2846
|
), b = f === 0 ? "Today" : f === 1 ? "Tomorrow" : s[p.getDay()];
|
|
2847
2847
|
return { id: a, dayLabel: b, dayNum: String(p.getDate()) };
|
|
@@ -2957,9 +2957,9 @@ const vn = (a, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2957
2957
|
t: d,
|
|
2958
2958
|
analytics: f,
|
|
2959
2959
|
reportLanguage: b,
|
|
2960
|
-
isPostPayment:
|
|
2960
|
+
isPostPayment: j = !1
|
|
2961
2961
|
}) => {
|
|
2962
|
-
const y = Be(), q = y?.config.imageComponent ?? qe, M = y?.config.fetchConsultationSlots, R = y?.config.isGlobal ?? !0, m = b ?? y?.formValues?.language_code, P =
|
|
2962
|
+
const y = Be(), q = y?.config.imageComponent ?? qe, M = y?.config.fetchConsultationSlots, R = y?.config.isGlobal ?? !0, m = b ?? y?.formValues?.language_code, P = j ? "post_payment" : "pre_payment", [v, J] = B(!1), [x, k] = B(!1), [C, oe] = B({}), [S, V] = B("en"), [A, G] = B(!1), N = F(null), $ = Ie(
|
|
2963
2963
|
() => C[S]?.days ?? [],
|
|
2964
2964
|
[C, S]
|
|
2965
2965
|
), [ee, te] = B(""), [I, E] = B(""), [U, Q] = B("morning"), [D, ge] = B(null), ie = F(!1), de = F(null), ue = F({}), [X, Te] = B(null), ke = F(null), Re = F(
|
|
@@ -3086,7 +3086,7 @@ const vn = (a, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3086
3086
|
status: P
|
|
3087
3087
|
}), ie.current = !0);
|
|
3088
3088
|
}, [a, W, p, f, P]), !a) return null;
|
|
3089
|
-
const Ae = !!D && (
|
|
3089
|
+
const Ae = !!D && (j || !!ee), pe = (i) => {
|
|
3090
3090
|
E(i), f?.trackSlotDateSelected?.({
|
|
3091
3091
|
date: i,
|
|
3092
3092
|
day_part_default: U,
|
|
@@ -3332,7 +3332,7 @@ const vn = (a, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3332
3332
|
`${I}-${U}`
|
|
3333
3333
|
)
|
|
3334
3334
|
] }),
|
|
3335
|
-
!
|
|
3335
|
+
!j && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
3336
3336
|
/* @__PURE__ */ e.jsx("p", { className: g.sectionHeading, children: d?.("planGuidanceHeading") ?? "What would you like guidance on?" }),
|
|
3337
3337
|
/* @__PURE__ */ e.jsx("div", { className: g.topicGrid, role: "radiogroup", "aria-label": "Guidance topic", children: Vr.map((i) => /* @__PURE__ */ e.jsx(
|
|
3338
3338
|
"button",
|
|
@@ -3374,7 +3374,7 @@ const vn = (a, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3374
3374
|
className: [g.proceedBtn, Ae ? "" : g.proceedBtnDisabled].filter(Boolean).join(" "),
|
|
3375
3375
|
disabled: !Ae,
|
|
3376
3376
|
onClick: xe,
|
|
3377
|
-
children: d?.("planProceedToPayment") ?? "Proceed to payment"
|
|
3377
|
+
children: j ? d?.("planBookSlot") ?? "Book Slot" : d?.("planProceedToPayment") ?? "Proceed to payment"
|
|
3378
3378
|
}
|
|
3379
3379
|
)
|
|
3380
3380
|
] })
|
|
@@ -3447,7 +3447,7 @@ const vn = (a, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3447
3447
|
plans: d,
|
|
3448
3448
|
onProceed: f,
|
|
3449
3449
|
t: b,
|
|
3450
|
-
analytics:
|
|
3450
|
+
analytics: j,
|
|
3451
3451
|
enableConsultationScheduling: y
|
|
3452
3452
|
}) => {
|
|
3453
3453
|
const q = Be(), M = q?.config.isGlobal ?? !0, R = y ?? q?.config.enableConsultationScheduling ?? !1, m = d ?? ri(M), P = s?.id || m.find((S) => S.badge)?.id || m[0]?.id || "", v = F(null), J = F(null), x = F(!1), [k, C] = B(!1);
|
|
@@ -3457,15 +3457,15 @@ const vn = (a, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3457
3457
|
const S = m.find((V) => V.badge) ?? m[0];
|
|
3458
3458
|
S && p(S);
|
|
3459
3459
|
}
|
|
3460
|
-
x.current || (
|
|
3460
|
+
x.current || (j?.trackPlanPageViewed?.(), R && j?.trackPlanScreenViewed?.({
|
|
3461
3461
|
plans_shown: m.map((S) => S.id),
|
|
3462
3462
|
default_selected_plan: s?.id || m.find((S) => S.badge)?.id || m[0]?.id || ""
|
|
3463
3463
|
}), x.current = !0);
|
|
3464
3464
|
} else
|
|
3465
3465
|
x.current = !1;
|
|
3466
|
-
}, [a, m, s, p,
|
|
3466
|
+
}, [a, m, s, p, j]);
|
|
3467
3467
|
const oe = () => {
|
|
3468
|
-
|
|
3468
|
+
j?.trackPlanPageClosed?.(), r();
|
|
3469
3469
|
};
|
|
3470
3470
|
return Y(() => {
|
|
3471
3471
|
if (!a) return;
|
|
@@ -3476,7 +3476,7 @@ const vn = (a, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3476
3476
|
}, [a]), a ? /* @__PURE__ */ e.jsxs(
|
|
3477
3477
|
"div",
|
|
3478
3478
|
{
|
|
3479
|
-
className:
|
|
3479
|
+
className: T.overlay,
|
|
3480
3480
|
role: "dialog",
|
|
3481
3481
|
"aria-modal": "true",
|
|
3482
3482
|
"aria-label": b?.("planSheetTitle") ?? "Choose Your Kundli Plan",
|
|
@@ -3485,20 +3485,20 @@ const vn = (a, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3485
3485
|
"div",
|
|
3486
3486
|
{
|
|
3487
3487
|
ref: v,
|
|
3488
|
-
className: R ?
|
|
3488
|
+
className: R ? T.sheetFullScreen : T.sheet,
|
|
3489
3489
|
children: [
|
|
3490
|
-
R ? /* @__PURE__ */ e.jsxs("div", { className:
|
|
3490
|
+
R ? /* @__PURE__ */ e.jsxs("div", { className: T.headerFull, children: [
|
|
3491
3491
|
/* @__PURE__ */ e.jsx(
|
|
3492
3492
|
"button",
|
|
3493
3493
|
{
|
|
3494
|
-
className:
|
|
3494
|
+
className: T.backBtn,
|
|
3495
3495
|
onClick: oe,
|
|
3496
3496
|
"aria-label": "Go back",
|
|
3497
3497
|
type: "button",
|
|
3498
3498
|
children: /* @__PURE__ */ e.jsx(st, {})
|
|
3499
3499
|
}
|
|
3500
3500
|
),
|
|
3501
|
-
/* @__PURE__ */ e.jsx("h2", { className:
|
|
3501
|
+
/* @__PURE__ */ e.jsx("h2", { className: T.titleFull, children: b?.("planSheetTitle") ?? "Choose Your Kundli Plan" })
|
|
3502
3502
|
] }) : /* @__PURE__ */ e.jsx(
|
|
3503
3503
|
Gr,
|
|
3504
3504
|
{
|
|
@@ -3510,7 +3510,7 @@ const vn = (a, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3510
3510
|
"div",
|
|
3511
3511
|
{
|
|
3512
3512
|
ref: J,
|
|
3513
|
-
className:
|
|
3513
|
+
className: T.plansContainer,
|
|
3514
3514
|
role: "radiogroup",
|
|
3515
3515
|
"aria-label": "Kundli plans",
|
|
3516
3516
|
children: m.map((S) => /* @__PURE__ */ e.jsx(
|
|
@@ -3521,7 +3521,7 @@ const vn = (a, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3521
3521
|
t: b,
|
|
3522
3522
|
onSelect: (V) => {
|
|
3523
3523
|
const A = m.find((G) => G.id === V);
|
|
3524
|
-
A && (
|
|
3524
|
+
A && (j?.trackPlanSelected?.({
|
|
3525
3525
|
planId: A.id,
|
|
3526
3526
|
planName: A.title,
|
|
3527
3527
|
...R ? {
|
|
@@ -3536,18 +3536,18 @@ const vn = (a, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3536
3536
|
))
|
|
3537
3537
|
}
|
|
3538
3538
|
),
|
|
3539
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
3539
|
+
/* @__PURE__ */ e.jsx("div", { className: T.footer, children: /* @__PURE__ */ e.jsx(
|
|
3540
3540
|
"button",
|
|
3541
3541
|
{
|
|
3542
|
-
className:
|
|
3542
|
+
className: T.proceedBtn,
|
|
3543
3543
|
disabled: !s,
|
|
3544
3544
|
onClick: () => {
|
|
3545
3545
|
if (s) {
|
|
3546
3546
|
if (R && s.astrologers && s.astrologers.length > 0) {
|
|
3547
|
-
|
|
3547
|
+
j?.trackSelectConsultationSlotClicked?.({
|
|
3548
3548
|
planId: s.id,
|
|
3549
3549
|
planName: s.title
|
|
3550
|
-
}),
|
|
3550
|
+
}), j?.trackPlanProceedClicked?.({
|
|
3551
3551
|
planId: s.id,
|
|
3552
3552
|
planName: s.title,
|
|
3553
3553
|
cta_type: "confirm_consultation_slot",
|
|
@@ -3555,7 +3555,7 @@ const vn = (a, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3555
3555
|
}), C(!0);
|
|
3556
3556
|
return;
|
|
3557
3557
|
}
|
|
3558
|
-
|
|
3558
|
+
j?.trackPlanProceedClicked?.({
|
|
3559
3559
|
planId: s.id,
|
|
3560
3560
|
planName: s.title,
|
|
3561
3561
|
...R ? { cta_type: "proceed", next_step: "payment" } : {}
|
|
@@ -3575,9 +3575,9 @@ const vn = (a, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3575
3575
|
onClose: () => C(!1),
|
|
3576
3576
|
astrologers: s.astrologers,
|
|
3577
3577
|
t: b,
|
|
3578
|
-
analytics:
|
|
3578
|
+
analytics: j,
|
|
3579
3579
|
onProceed: (S) => {
|
|
3580
|
-
|
|
3580
|
+
j?.trackPlanProceedClicked?.({
|
|
3581
3581
|
planId: s.id,
|
|
3582
3582
|
planName: s.title,
|
|
3583
3583
|
cta_type: "proceed",
|
|
@@ -3608,7 +3608,7 @@ const vn = (a, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3608
3608
|
initialValues: d,
|
|
3609
3609
|
onProceed: f,
|
|
3610
3610
|
onProceedGuidance: b,
|
|
3611
|
-
proceedHref:
|
|
3611
|
+
proceedHref: j,
|
|
3612
3612
|
originalPriceLabel: y,
|
|
3613
3613
|
discountedPriceLabel: q,
|
|
3614
3614
|
googleMapsApiKey: M = "",
|
|
@@ -3654,7 +3654,7 @@ const vn = (a, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3654
3654
|
const h = D.phoneCountryCode;
|
|
3655
3655
|
h && nt.includes(h) && h !== ie && (ue.current = !0, de(h));
|
|
3656
3656
|
}, [x, D.phoneCountryCode]);
|
|
3657
|
-
const Re = x ? v.goToPage : p, he = x ? v.onProceed : f, Z = x ? v.onProceedGuidance : b, W = x ? v.config.proceedHref :
|
|
3657
|
+
const Re = x ? v.goToPage : p, he = x ? v.onProceed : f, Z = x ? v.onProceedGuidance : b, W = x ? v.config.proceedHref : j, fe = x ? v.config.originalPriceLabel : y, ae = x ? v.config.discountedPriceLabel : q, ne = x ? v.config.showLanguageSelector ?? !0 : s, ce = (x ? v?.config?.analytics : P) ?? P;
|
|
3658
3658
|
Y(() => {
|
|
3659
3659
|
if (!G) return;
|
|
3660
3660
|
const h = (be) => {
|
|
@@ -3903,4 +3903,4 @@ export {
|
|
|
3903
3903
|
Tt as t,
|
|
3904
3904
|
ma as u
|
|
3905
3905
|
};
|
|
3906
|
-
//# sourceMappingURL=analytics-
|
|
3906
|
+
//# sourceMappingURL=analytics-CJr_Zsdu.js.map
|