@srimandir/kundli-generator 7.5.16 → 7.5.18
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-A9U4I3Ug.js → analytics-Cc0qKUCw.js} +310 -295
- package/dist/analytics-Cc0qKUCw.js.map +1 -0
- package/dist/{criticalCss-Bc_9tFvb.js → criticalCss-BK2ASHir.js} +2 -2
- package/dist/{criticalCss-Bc_9tFvb.js.map → criticalCss-BK2ASHir.js.map} +1 -1
- package/dist/form-entry.js +1 -1
- package/dist/kundli-generator.js +2 -2
- package/dist/page-entry.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/analytics-A9U4I3Ug.js.map +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import tt, { useContext as at, createContext as
|
|
1
|
+
import tt, { useContext as at, createContext as kt, useState as M, useRef as Y, useEffect as J, useMemo as Re, useCallback as be, Fragment as Kt } from "react";
|
|
2
2
|
import { FormSectionHeader as Ht, FooterCTAButton as Yt, FooterShell as qt, CircularMarquee as Vt, footerShellStyles as Ae, PageHeader as zt } from "@srimandir/astrology-common";
|
|
3
3
|
var qe = { exports: {} }, We = {};
|
|
4
|
-
var
|
|
4
|
+
var mt;
|
|
5
5
|
function Jt() {
|
|
6
|
-
if (
|
|
7
|
-
|
|
8
|
-
var a = tt, o = /* @__PURE__ */ Symbol.for("react.element"), l = /* @__PURE__ */ Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty,
|
|
6
|
+
if (mt) return We;
|
|
7
|
+
mt = 1;
|
|
8
|
+
var a = tt, o = /* @__PURE__ */ Symbol.for("react.element"), l = /* @__PURE__ */ Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, u = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, _ = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
9
9
|
function h(P, w, W) {
|
|
10
|
-
var F, A = {},
|
|
11
|
-
W !== void 0 && (
|
|
10
|
+
var F, A = {}, p = null, O = null;
|
|
11
|
+
W !== void 0 && (p = "" + W), w.key !== void 0 && (p = "" + w.key), w.ref !== void 0 && (O = w.ref);
|
|
12
12
|
for (F in w) m.call(w, F) && !_.hasOwnProperty(F) && (A[F] = w[F]);
|
|
13
13
|
if (P && P.defaultProps) for (F in w = P.defaultProps, w) A[F] === void 0 && (A[F] = w[F]);
|
|
14
|
-
return { $$typeof: o, type: P, key:
|
|
14
|
+
return { $$typeof: o, type: P, key: p, ref: O, props: A, _owner: u.current };
|
|
15
15
|
}
|
|
16
16
|
return We.Fragment = l, We.jsx = h, We.jsxs = h, We;
|
|
17
17
|
}
|
|
@@ -19,11 +19,11 @@ var Ke = {};
|
|
|
19
19
|
var ft;
|
|
20
20
|
function Qt() {
|
|
21
21
|
return ft || (ft = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
22
|
-
var a = tt, o = /* @__PURE__ */ Symbol.for("react.element"), l = /* @__PURE__ */ Symbol.for("react.portal"), m = /* @__PURE__ */ Symbol.for("react.fragment"),
|
|
23
|
-
function
|
|
22
|
+
var a = tt, o = /* @__PURE__ */ Symbol.for("react.element"), l = /* @__PURE__ */ Symbol.for("react.portal"), m = /* @__PURE__ */ Symbol.for("react.fragment"), u = /* @__PURE__ */ Symbol.for("react.strict_mode"), _ = /* @__PURE__ */ Symbol.for("react.profiler"), h = /* @__PURE__ */ Symbol.for("react.provider"), P = /* @__PURE__ */ Symbol.for("react.context"), w = /* @__PURE__ */ Symbol.for("react.forward_ref"), W = /* @__PURE__ */ Symbol.for("react.suspense"), F = /* @__PURE__ */ Symbol.for("react.suspense_list"), A = /* @__PURE__ */ Symbol.for("react.memo"), p = /* @__PURE__ */ Symbol.for("react.lazy"), O = /* @__PURE__ */ Symbol.for("react.offscreen"), v = Symbol.iterator, G = "@@iterator";
|
|
23
|
+
function k(t) {
|
|
24
24
|
if (t === null || typeof t != "object")
|
|
25
25
|
return null;
|
|
26
|
-
var i =
|
|
26
|
+
var i = v && t[v] || t[G];
|
|
27
27
|
return typeof i == "function" ? i : null;
|
|
28
28
|
}
|
|
29
29
|
var g = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -47,7 +47,7 @@ function Qt() {
|
|
|
47
47
|
var N = !1, E = !1, T = !1, U = !1, b = !1, B;
|
|
48
48
|
B = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
49
49
|
function X(t) {
|
|
50
|
-
return !!(typeof t == "string" || typeof t == "function" || t === m || t === _ || b || t ===
|
|
50
|
+
return !!(typeof t == "string" || typeof t == "function" || t === m || t === _ || b || t === u || t === W || t === F || U || t === O || N || E || T || typeof t == "object" && t !== null && (t.$$typeof === p || t.$$typeof === A || t.$$typeof === h || t.$$typeof === P || t.$$typeof === w || // 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.
|
|
@@ -77,7 +77,7 @@ function Qt() {
|
|
|
77
77
|
return "Portal";
|
|
78
78
|
case _:
|
|
79
79
|
return "Profiler";
|
|
80
|
-
case
|
|
80
|
+
case u:
|
|
81
81
|
return "StrictMode";
|
|
82
82
|
case W:
|
|
83
83
|
return "Suspense";
|
|
@@ -97,7 +97,7 @@ function Qt() {
|
|
|
97
97
|
case A:
|
|
98
98
|
var y = t.displayName || null;
|
|
99
99
|
return y !== null ? y : I(t.type) || "Memo";
|
|
100
|
-
case
|
|
100
|
+
case p: {
|
|
101
101
|
var $ = t, q = $._payload, L = $._init;
|
|
102
102
|
try {
|
|
103
103
|
return I(L(q));
|
|
@@ -109,9 +109,9 @@ function Qt() {
|
|
|
109
109
|
return null;
|
|
110
110
|
}
|
|
111
111
|
var ee = Object.assign, Z = 0, z, ye, ne, s, S, K, ue;
|
|
112
|
-
function
|
|
112
|
+
function ve() {
|
|
113
113
|
}
|
|
114
|
-
|
|
114
|
+
ve.__reactDisabledLog = !0;
|
|
115
115
|
function je() {
|
|
116
116
|
{
|
|
117
117
|
if (Z === 0) {
|
|
@@ -119,7 +119,7 @@ function Qt() {
|
|
|
119
119
|
var t = {
|
|
120
120
|
configurable: !0,
|
|
121
121
|
enumerable: !0,
|
|
122
|
-
value:
|
|
122
|
+
value: ve,
|
|
123
123
|
writable: !0
|
|
124
124
|
};
|
|
125
125
|
Object.defineProperties(console, {
|
|
@@ -170,24 +170,24 @@ function Qt() {
|
|
|
170
170
|
Z < 0 && C("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
-
var te = g.ReactCurrentDispatcher,
|
|
174
|
-
function
|
|
173
|
+
var te = g.ReactCurrentDispatcher, pe;
|
|
174
|
+
function me(t, i, d) {
|
|
175
175
|
{
|
|
176
|
-
if (
|
|
176
|
+
if (pe === void 0)
|
|
177
177
|
try {
|
|
178
178
|
throw Error();
|
|
179
179
|
} catch ($) {
|
|
180
180
|
var y = $.stack.trim().match(/\n( *(at )?)/);
|
|
181
|
-
|
|
181
|
+
pe = y && y[1] || "";
|
|
182
182
|
}
|
|
183
183
|
return `
|
|
184
|
-
` +
|
|
184
|
+
` + pe + t;
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
var ce = !1, oe;
|
|
188
188
|
{
|
|
189
|
-
var
|
|
190
|
-
oe = new
|
|
189
|
+
var ke = typeof WeakMap == "function" ? WeakMap : Map;
|
|
190
|
+
oe = new ke();
|
|
191
191
|
}
|
|
192
192
|
function Se(t, i) {
|
|
193
193
|
if (!t || ce)
|
|
@@ -257,7 +257,7 @@ function Qt() {
|
|
|
257
257
|
} finally {
|
|
258
258
|
ce = !1, te.current = q, he(), Error.prepareStackTrace = $;
|
|
259
259
|
}
|
|
260
|
-
var Fe = t ? t.displayName || t.name : "", Ne = Fe ?
|
|
260
|
+
var Fe = t ? t.displayName || t.name : "", Ne = Fe ? me(Fe) : "";
|
|
261
261
|
return typeof t == "function" && oe.set(t, Ne), Ne;
|
|
262
262
|
}
|
|
263
263
|
function ie(t, i, d) {
|
|
@@ -273,12 +273,12 @@ function Qt() {
|
|
|
273
273
|
if (typeof t == "function")
|
|
274
274
|
return Se(t, se(t));
|
|
275
275
|
if (typeof t == "string")
|
|
276
|
-
return
|
|
276
|
+
return me(t);
|
|
277
277
|
switch (t) {
|
|
278
278
|
case W:
|
|
279
|
-
return
|
|
279
|
+
return me("Suspense");
|
|
280
280
|
case F:
|
|
281
|
-
return
|
|
281
|
+
return me("SuspenseList");
|
|
282
282
|
}
|
|
283
283
|
if (typeof t == "object")
|
|
284
284
|
switch (t.$$typeof) {
|
|
@@ -286,7 +286,7 @@ function Qt() {
|
|
|
286
286
|
return ie(t.render);
|
|
287
287
|
case A:
|
|
288
288
|
return Te(t.type, i, d);
|
|
289
|
-
case
|
|
289
|
+
case p: {
|
|
290
290
|
var y = t, $ = y._payload, q = y._init;
|
|
291
291
|
try {
|
|
292
292
|
return Te(q($), i, d);
|
|
@@ -507,7 +507,7 @@ Check the top-level render call using <` + d + ">.");
|
|
|
507
507
|
else if (Xe(t))
|
|
508
508
|
t._store && (t._store.validated = !0);
|
|
509
509
|
else if (t) {
|
|
510
|
-
var $ =
|
|
510
|
+
var $ = k(t);
|
|
511
511
|
if (typeof $ == "function" && $ !== t.entries)
|
|
512
512
|
for (var q = $.call(t), L; !(L = q.next()).done; )
|
|
513
513
|
Xe(L.value) && ct(L.value, i);
|
|
@@ -552,7 +552,7 @@ Check the top-level render call using <` + d + ">.");
|
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
var ut = {};
|
|
555
|
-
function
|
|
555
|
+
function pt(t, i, d, y, $, q) {
|
|
556
556
|
{
|
|
557
557
|
var L = X(t);
|
|
558
558
|
if (!L) {
|
|
@@ -597,10 +597,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
599
|
function Ot(t, i, d) {
|
|
600
|
-
return
|
|
600
|
+
return pt(t, i, d, !0);
|
|
601
601
|
}
|
|
602
602
|
function Mt(t, i, d) {
|
|
603
|
-
return
|
|
603
|
+
return pt(t, i, d, !1);
|
|
604
604
|
}
|
|
605
605
|
var $t = Mt, Gt = Ot;
|
|
606
606
|
Ke.Fragment = m, Ke.jsx = $t, Ke.jsxs = Gt;
|
|
@@ -813,7 +813,10 @@ const Zt = "_container_1e1th_1", ea = "_main_1e1th_7", ta = "_kundliHeaderNoBord
|
|
|
813
813
|
planSelectConsultationSlot: "Select consultation slot →",
|
|
814
814
|
planConsultationSlotTitle: "Select consultation slot",
|
|
815
815
|
planConsultationTrustLabel: "3,750+ people have booked consultation",
|
|
816
|
-
|
|
816
|
+
planReportReadyPrefix: "Your Report will be ready in",
|
|
817
|
+
planReportReadyDuration: "24-48 hours",
|
|
818
|
+
planReportReadySuffix: "from today",
|
|
819
|
+
planSelectSlotHeading: "Book your preferred consultation slot",
|
|
817
820
|
planGuidanceHeading: "What would you like guidance on?",
|
|
818
821
|
planPeriodMorning: "Morning",
|
|
819
822
|
planPeriodAfternoon: "Afternoon",
|
|
@@ -1042,7 +1045,10 @@ const Zt = "_container_1e1th_1", ea = "_main_1e1th_7", ta = "_kundliHeaderNoBord
|
|
|
1042
1045
|
planSelectConsultationSlot: "परामर्श स्लॉट चुनें →",
|
|
1043
1046
|
planConsultationSlotTitle: "परामर्श स्लॉट चुनें",
|
|
1044
1047
|
planConsultationTrustLabel: "3,750+ लोगों ने परामर्श बुक किया है",
|
|
1045
|
-
|
|
1048
|
+
planReportReadyPrefix: "आपकी रिपोर्ट",
|
|
1049
|
+
planReportReadyDuration: "24-48 घंटों",
|
|
1050
|
+
planReportReadySuffix: "में आज से तैयार हो जाएगी",
|
|
1051
|
+
planSelectSlotHeading: "अपना पसंदीदा परामर्श स्लॉट बुक करें",
|
|
1046
1052
|
planGuidanceHeading: "आप किस बारे में सलाह चाहते हैं?",
|
|
1047
1053
|
planPeriodMorning: "सुबह",
|
|
1048
1054
|
planPeriodAfternoon: "दोपहर",
|
|
@@ -1085,22 +1091,22 @@ const Zt = "_container_1e1th_1", ea = "_main_1e1th_7", ta = "_kundliHeaderNoBord
|
|
|
1085
1091
|
astrologyGuidance: "ज्योतिष से सलाह",
|
|
1086
1092
|
selectPackage: "पैकेज चुनें"
|
|
1087
1093
|
}
|
|
1088
|
-
}, Pt =
|
|
1094
|
+
}, Pt = kt(null), ti = ({
|
|
1089
1095
|
locale: a,
|
|
1090
1096
|
children: o
|
|
1091
1097
|
}) => {
|
|
1092
|
-
const m = { locale: a, t: (
|
|
1098
|
+
const m = { locale: a, t: (u) => wt[a]?.[u] ?? u };
|
|
1093
1099
|
return /* @__PURE__ */ e.jsx(Pt.Provider, { value: m, children: o });
|
|
1094
1100
|
};
|
|
1095
1101
|
function ca() {
|
|
1096
1102
|
return at(Pt);
|
|
1097
1103
|
}
|
|
1098
1104
|
const Ye = (a) => {
|
|
1099
|
-
const { priority: o, fetchPriority: l, width: m, height:
|
|
1105
|
+
const { priority: o, fetchPriority: l, width: m, height: u, ..._ } = a;
|
|
1100
1106
|
return tt.createElement("img", {
|
|
1101
1107
|
..._,
|
|
1102
1108
|
width: m ?? 1,
|
|
1103
|
-
height:
|
|
1109
|
+
height: u ?? 1,
|
|
1104
1110
|
decoding: "async",
|
|
1105
1111
|
loading: _.loading ?? (o ? "eager" : "lazy"),
|
|
1106
1112
|
...l && { fetchPriority: l }
|
|
@@ -1122,14 +1128,14 @@ function ua(a, o) {
|
|
|
1122
1128
|
} catch {
|
|
1123
1129
|
}
|
|
1124
1130
|
}
|
|
1125
|
-
function
|
|
1131
|
+
function ai(a) {
|
|
1126
1132
|
if (!(typeof window > "u" || !window.localStorage))
|
|
1127
1133
|
try {
|
|
1128
1134
|
window.localStorage.removeItem(a);
|
|
1129
1135
|
} catch {
|
|
1130
1136
|
}
|
|
1131
1137
|
}
|
|
1132
|
-
function
|
|
1138
|
+
function ri() {
|
|
1133
1139
|
if (typeof window > "u" || !window.localStorage)
|
|
1134
1140
|
return !1;
|
|
1135
1141
|
try {
|
|
@@ -1140,14 +1146,14 @@ function ti() {
|
|
|
1140
1146
|
}
|
|
1141
1147
|
}
|
|
1142
1148
|
const Ct = "kundli_language";
|
|
1143
|
-
function
|
|
1149
|
+
function pa() {
|
|
1144
1150
|
const a = da(Ct);
|
|
1145
1151
|
return a && xt.includes(a) ? a : null;
|
|
1146
1152
|
}
|
|
1147
|
-
function
|
|
1153
|
+
function ma(a) {
|
|
1148
1154
|
ua(Ct, a);
|
|
1149
1155
|
}
|
|
1150
|
-
const rt =
|
|
1156
|
+
const rt = kt(null), fa = {
|
|
1151
1157
|
fullName: "",
|
|
1152
1158
|
phone: "",
|
|
1153
1159
|
phoneCountryCode: "",
|
|
@@ -1158,12 +1164,12 @@ const rt = vt(null), fa = {
|
|
|
1158
1164
|
birthTime: "",
|
|
1159
1165
|
birthTimeUnknown: !1,
|
|
1160
1166
|
birthPlace: ""
|
|
1161
|
-
},
|
|
1167
|
+
}, ni = ({
|
|
1162
1168
|
locale: a,
|
|
1163
1169
|
showLanguageSelector: o = !0,
|
|
1164
1170
|
showSheet: l,
|
|
1165
1171
|
userId: m,
|
|
1166
|
-
isGlobal:
|
|
1172
|
+
isGlobal: u,
|
|
1167
1173
|
variant: _,
|
|
1168
1174
|
initialFormValues: h,
|
|
1169
1175
|
autoOpenPlanSheet: P,
|
|
@@ -1171,11 +1177,11 @@ const rt = vt(null), fa = {
|
|
|
1171
1177
|
atlasSearchLocalities: W,
|
|
1172
1178
|
googleMapsAutocompleteEnabled: F,
|
|
1173
1179
|
enableConsultationScheduling: A,
|
|
1174
|
-
fetchConsultationSlots:
|
|
1180
|
+
fetchConsultationSlots: p,
|
|
1175
1181
|
logoUrl: O,
|
|
1176
|
-
reportImageUrl:
|
|
1182
|
+
reportImageUrl: v,
|
|
1177
1183
|
reportImagePriority: G,
|
|
1178
|
-
backgroundImagePriority:
|
|
1184
|
+
backgroundImagePriority: k,
|
|
1179
1185
|
universityLogoUrls: g,
|
|
1180
1186
|
sampleReportHref: C,
|
|
1181
1187
|
onViewSampleReport: Q,
|
|
@@ -1195,15 +1201,15 @@ const rt = vt(null), fa = {
|
|
|
1195
1201
|
resolvedUtmBannerImageUrl: ye,
|
|
1196
1202
|
children: ne
|
|
1197
1203
|
}) => {
|
|
1198
|
-
const [s, S] = M("landing"), [K, ue] = M(a ?? "en"), [
|
|
1204
|
+
const [s, S] = M("landing"), [K, ue] = M(a ?? "en"), [ve, je] = M({
|
|
1199
1205
|
...fa,
|
|
1200
1206
|
...h
|
|
1201
1207
|
}), he = Y(!0);
|
|
1202
1208
|
J(() => {
|
|
1203
|
-
const oe =
|
|
1209
|
+
const oe = pa();
|
|
1204
1210
|
oe && ue(oe);
|
|
1205
1211
|
}, []), J(() => {
|
|
1206
|
-
|
|
1212
|
+
ma(K);
|
|
1207
1213
|
}, [K]), J(() => {
|
|
1208
1214
|
if (he.current) {
|
|
1209
1215
|
he.current = !1;
|
|
@@ -1217,7 +1223,7 @@ const rt = vt(null), fa = {
|
|
|
1217
1223
|
showLanguageSelector: o,
|
|
1218
1224
|
showSheet: l,
|
|
1219
1225
|
userId: m,
|
|
1220
|
-
isGlobal:
|
|
1226
|
+
isGlobal: u,
|
|
1221
1227
|
variant: _,
|
|
1222
1228
|
initialFormValues: h,
|
|
1223
1229
|
autoOpenPlanSheet: P,
|
|
@@ -1225,11 +1231,11 @@ const rt = vt(null), fa = {
|
|
|
1225
1231
|
atlasSearchLocalities: W,
|
|
1226
1232
|
googleMapsAutocompleteEnabled: F,
|
|
1227
1233
|
enableConsultationScheduling: A,
|
|
1228
|
-
fetchConsultationSlots:
|
|
1234
|
+
fetchConsultationSlots: p,
|
|
1229
1235
|
logoUrl: O,
|
|
1230
|
-
reportImageUrl:
|
|
1236
|
+
reportImageUrl: v,
|
|
1231
1237
|
reportImagePriority: G,
|
|
1232
|
-
backgroundImagePriority:
|
|
1238
|
+
backgroundImagePriority: k,
|
|
1233
1239
|
universityLogoUrls: g,
|
|
1234
1240
|
sampleReportHref: C,
|
|
1235
1241
|
onViewSampleReport: Q,
|
|
@@ -1253,7 +1259,7 @@ const rt = vt(null), fa = {
|
|
|
1253
1259
|
o,
|
|
1254
1260
|
l,
|
|
1255
1261
|
m,
|
|
1256
|
-
|
|
1262
|
+
u,
|
|
1257
1263
|
_,
|
|
1258
1264
|
h,
|
|
1259
1265
|
P,
|
|
@@ -1261,11 +1267,11 @@ const rt = vt(null), fa = {
|
|
|
1261
1267
|
W,
|
|
1262
1268
|
F,
|
|
1263
1269
|
A,
|
|
1264
|
-
|
|
1270
|
+
p,
|
|
1265
1271
|
O,
|
|
1266
|
-
k,
|
|
1267
|
-
G,
|
|
1268
1272
|
v,
|
|
1273
|
+
G,
|
|
1274
|
+
k,
|
|
1269
1275
|
g,
|
|
1270
1276
|
C,
|
|
1271
1277
|
Q,
|
|
@@ -1284,9 +1290,9 @@ const rt = vt(null), fa = {
|
|
|
1284
1290
|
z,
|
|
1285
1291
|
ye
|
|
1286
1292
|
]
|
|
1287
|
-
),
|
|
1293
|
+
), pe = be(() => {
|
|
1288
1294
|
S("form");
|
|
1289
|
-
}, [te.analytics]),
|
|
1295
|
+
}, [te.analytics]), me = be(() => {
|
|
1290
1296
|
S("landing"), te.onBack?.();
|
|
1291
1297
|
}, [te.onBack]), ce = Re(
|
|
1292
1298
|
() => ({
|
|
@@ -1294,21 +1300,21 @@ const rt = vt(null), fa = {
|
|
|
1294
1300
|
locale: K,
|
|
1295
1301
|
setLocale: ue,
|
|
1296
1302
|
config: te,
|
|
1297
|
-
formValues:
|
|
1303
|
+
formValues: ve,
|
|
1298
1304
|
setFormValues: je,
|
|
1299
|
-
goToForm:
|
|
1300
|
-
goToPage:
|
|
1305
|
+
goToForm: pe,
|
|
1306
|
+
goToPage: me,
|
|
1301
1307
|
onProceed: te.onProceed,
|
|
1302
1308
|
onProceedGuidance: te.onProceedGuidance
|
|
1303
1309
|
}),
|
|
1304
|
-
[s, K, te,
|
|
1310
|
+
[s, K, te, ve, pe, me]
|
|
1305
1311
|
);
|
|
1306
1312
|
return /* @__PURE__ */ e.jsx(rt.Provider, { value: ce, children: ne });
|
|
1307
1313
|
};
|
|
1308
1314
|
function Ee() {
|
|
1309
1315
|
return at(rt);
|
|
1310
1316
|
}
|
|
1311
|
-
function
|
|
1317
|
+
function oi() {
|
|
1312
1318
|
const a = at(rt);
|
|
1313
1319
|
if (!a)
|
|
1314
1320
|
throw new Error(
|
|
@@ -1333,11 +1339,11 @@ const ha = "_header_19172_1", ga = "_centered_19172_8", _t = {
|
|
|
1333
1339
|
backAriaLabel: a("back"),
|
|
1334
1340
|
className: `${_t.header} ${m === "center" ? _t.centered : ""} ${l}`
|
|
1335
1341
|
}
|
|
1336
|
-
), ba = "_wrap_119w3_1", ya = "_card_119w3_5",
|
|
1342
|
+
), ba = "_wrap_119w3_1", ya = "_card_119w3_5", va = "_cardInner_119w3_12", ka = "_field_119w3_44", xa = "_labelRow_119w3_48", wa = "_label_119w3_48", Pa = "_req_119w3_57", Ca = "_help_119w3_61", Ta = "_choiceRow_119w3_68", Sa = "_choiceBtn_119w3_74", ja = "_choiceBtnActive_119w3_99", Na = "_infoBtn_119w3_105", Aa = "_infoImg_119w3_122", Ra = "_infoWrap_119w3_128", Ea = "_tooltip_119w3_134", Ia = "_tooltipArrow_119w3_150", La = "_inputWrap_119w3_161", Ba = "_isdWrap_119w3_165", Da = "_phoneInputGroup_119w3_169", Fa = "_isdSelectWrap_119w3_178", Oa = "_isdSelectTrigger_119w3_197", Ma = "_isdDropdown_119w3_214", $a = "_isdSearchWrap_119w3_229", Ga = "_isdSearchInput_119w3_237", Ua = "_isdOption_119w3_255", Wa = "_isdOptionActive_119w3_275", Ka = "_isdCountryName_119w3_281", Ha = "_isdCountryCode_119w3_288", Ya = "_isdNoResult_119w3_295", qa = "_suggestions_119w3_302", Va = "_suggestionItem_119w3_315", za = "_suggestionMain_119w3_333", Ja = "_suggestionSecondary_119w3_339", Qa = "_suggestionsHint_119w3_344", Xa = "_timePopover_119w3_366", Za = "_timePickerRow_119w3_382", er = "_timePickerSelect_119w3_388", tr = "_timePickerColon_119w3_404", ar = "_meridiemToggle_119w3_412", rr = "_meridiemBtn_119w3_421", nr = "_meridiemActive_119w3_436", or = "_timePopoverActions_119w3_441", ir = "_timePopoverBtn_119w3_447", sr = "_timePopoverOk_119w3_466", lr = "_input_119w3_161", cr = "_phoneInput_119w3_169", dr = "_iconBtn_119w3_519", ur = "_iconBtnInteractive_119w3_525", pr = "_iconImg_119w3_544", mr = "_checkboxRow_119w3_550", fr = "_checkbox_119w3_550", hr = "_checkboxText_119w3_588", n = {
|
|
1337
1343
|
wrap: ba,
|
|
1338
1344
|
card: ya,
|
|
1339
|
-
cardInner:
|
|
1340
|
-
field:
|
|
1345
|
+
cardInner: va,
|
|
1346
|
+
field: ka,
|
|
1341
1347
|
labelRow: xa,
|
|
1342
1348
|
label: wa,
|
|
1343
1349
|
req: Pa,
|
|
@@ -1382,18 +1388,18 @@ const ha = "_header_19172_1", ga = "_centered_19172_8", _t = {
|
|
|
1382
1388
|
phoneInput: cr,
|
|
1383
1389
|
iconBtn: dr,
|
|
1384
1390
|
iconBtnInteractive: ur,
|
|
1385
|
-
iconImg:
|
|
1386
|
-
checkboxRow:
|
|
1391
|
+
iconImg: pr,
|
|
1392
|
+
checkboxRow: mr,
|
|
1387
1393
|
checkbox: fr,
|
|
1388
1394
|
checkboxText: hr
|
|
1389
1395
|
};
|
|
1390
1396
|
let Ve = null;
|
|
1391
1397
|
const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promise.resolve() : Ve || (Ve = new Promise((l, m) => {
|
|
1392
|
-
const
|
|
1398
|
+
const u = document.querySelector(
|
|
1393
1399
|
'script[data-google-maps-places="true"]'
|
|
1394
1400
|
);
|
|
1395
|
-
if (
|
|
1396
|
-
|
|
1401
|
+
if (u) {
|
|
1402
|
+
u.addEventListener("load", () => l()), u.addEventListener(
|
|
1397
1403
|
"error",
|
|
1398
1404
|
() => m(new Error("Failed to load Google Maps API"))
|
|
1399
1405
|
);
|
|
@@ -1419,20 +1425,20 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1419
1425
|
w();
|
|
1420
1426
|
}, _.onerror = () => m(new Error("Failed to load Google Maps API")), document.head.appendChild(_);
|
|
1421
1427
|
}), Ve), _r = (a) => {
|
|
1422
|
-
const { apiKey: o, language: l = "en", restrictCountry: m, deferLoad:
|
|
1423
|
-
|
|
1424
|
-
}, [
|
|
1428
|
+
const { apiKey: o, language: l = "en", restrictCountry: m, deferLoad: u = !1 } = a, [_, h] = M(!1), [P, w] = M([]), [W, F] = M(!1), [A, p] = M(null), [O, v] = M(!u), G = Y(null), k = Y(null), g = Y(null), C = be(() => {
|
|
1429
|
+
u && v(!0);
|
|
1430
|
+
}, [u]);
|
|
1425
1431
|
J(() => {
|
|
1426
1432
|
if (!o || !O) {
|
|
1427
|
-
h(!1),
|
|
1433
|
+
h(!1), p(null);
|
|
1428
1434
|
return;
|
|
1429
1435
|
}
|
|
1430
1436
|
gr(o, l).then(() => {
|
|
1431
1437
|
G.current = new google.maps.places.AutocompleteService();
|
|
1432
1438
|
const T = document.createElement("div");
|
|
1433
|
-
|
|
1439
|
+
k.current = new google.maps.places.PlacesService(T), g.current = new google.maps.places.AutocompleteSessionToken(), h(!0), p(null);
|
|
1434
1440
|
}).catch((T) => {
|
|
1435
|
-
h(!1),
|
|
1441
|
+
h(!1), p(T?.message || "Failed to load location service");
|
|
1436
1442
|
});
|
|
1437
1443
|
}, [o, l, O]);
|
|
1438
1444
|
const Q = be(
|
|
@@ -1476,11 +1482,11 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1476
1482
|
[m]
|
|
1477
1483
|
), N = be(
|
|
1478
1484
|
async (T) => {
|
|
1479
|
-
if (!
|
|
1485
|
+
if (!k.current) return null;
|
|
1480
1486
|
try {
|
|
1481
1487
|
const U = await new Promise(
|
|
1482
1488
|
(I, ee) => {
|
|
1483
|
-
|
|
1489
|
+
k.current.getDetails(
|
|
1484
1490
|
{
|
|
1485
1491
|
placeId: T,
|
|
1486
1492
|
fields: ["geometry", "address_components", "formatted_address"],
|
|
@@ -1530,22 +1536,22 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1530
1536
|
restrictCountry: a?.restrictCountry
|
|
1531
1537
|
};
|
|
1532
1538
|
}, yr = (a) => {
|
|
1533
|
-
const { searchLocalities: o, restrictCountry: l } = a, [m,
|
|
1539
|
+
const { searchLocalities: o, restrictCountry: l } = a, [m, u] = M([]), [_, h] = M(!1), [P, w] = M(null), W = Y(0);
|
|
1534
1540
|
J(() => {
|
|
1535
1541
|
w(null);
|
|
1536
1542
|
}, [o]);
|
|
1537
1543
|
const F = be(
|
|
1538
|
-
async (
|
|
1539
|
-
if (!
|
|
1540
|
-
|
|
1544
|
+
async (p) => {
|
|
1545
|
+
if (!p || p.length < 2 || !o) {
|
|
1546
|
+
u([]);
|
|
1541
1547
|
return;
|
|
1542
1548
|
}
|
|
1543
1549
|
const O = ++W.current;
|
|
1544
1550
|
h(!0), w(null);
|
|
1545
1551
|
try {
|
|
1546
|
-
const
|
|
1552
|
+
const v = br({ restrictCountry: l }), G = await o(p, v);
|
|
1547
1553
|
if (O !== W.current) return;
|
|
1548
|
-
const
|
|
1554
|
+
const k = (G || []).filter(
|
|
1549
1555
|
(g) => !!g?.id && !!g?.description && bt(g?.lat) && bt(g?.lng)
|
|
1550
1556
|
).map((g) => ({
|
|
1551
1557
|
id: g.id,
|
|
@@ -1554,16 +1560,16 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1554
1560
|
lat: g.lat,
|
|
1555
1561
|
lng: g.lng
|
|
1556
1562
|
}));
|
|
1557
|
-
|
|
1558
|
-
} catch (
|
|
1563
|
+
u(k);
|
|
1564
|
+
} catch (v) {
|
|
1559
1565
|
if (O !== W.current) return;
|
|
1560
|
-
|
|
1566
|
+
u([]), w(v?.message || "Failed to fetch locations");
|
|
1561
1567
|
} finally {
|
|
1562
1568
|
O === W.current && h(!1);
|
|
1563
1569
|
}
|
|
1564
1570
|
},
|
|
1565
1571
|
[l, o]
|
|
1566
|
-
), A = be(() =>
|
|
1572
|
+
), A = be(() => u([]), []);
|
|
1567
1573
|
return {
|
|
1568
1574
|
predictions: m,
|
|
1569
1575
|
isSearching: _,
|
|
@@ -1646,12 +1652,12 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1646
1652
|
{ code: "+975", country: "Bhutan" },
|
|
1647
1653
|
{ code: "+976", country: "Mongolia" },
|
|
1648
1654
|
{ code: "+977", country: "Nepal" }
|
|
1649
|
-
], et = Tt.map((a) => a.code), St = 10, nt = (a) => a.replace(/\D/g, ""), yt = (a) => nt(a).slice(0, St),
|
|
1655
|
+
], et = Tt.map((a) => a.code), St = 10, nt = (a) => a.replace(/\D/g, ""), yt = (a) => nt(a).slice(0, St), vr = (a) => nt(a).length === St, kr = (a, o, l) => vr(a) ? l.phone ? { shouldTrack: !1 } : (l.phone = !0, { shouldTrack: !0, fullPhone: `${o}-${nt(a)}` }) : (l.phone = !1, { shouldTrack: !1 }), xr = {}, wr = ({
|
|
1650
1656
|
t: a,
|
|
1651
1657
|
values: o,
|
|
1652
1658
|
onChange: l,
|
|
1653
1659
|
phoneIsdCode: m,
|
|
1654
|
-
onPhoneIsdCodeChange:
|
|
1660
|
+
onPhoneIsdCodeChange: u,
|
|
1655
1661
|
showV1ExtraFields: _ = !1,
|
|
1656
1662
|
analytics: h,
|
|
1657
1663
|
googleMapsApiKey: P,
|
|
@@ -1659,21 +1665,21 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1659
1665
|
googleMapsAutocompleteEnabled: W,
|
|
1660
1666
|
className: F = ""
|
|
1661
1667
|
}) => {
|
|
1662
|
-
const A = Ee(),
|
|
1668
|
+
const A = Ee(), p = A?.config?.analytics ?? h, O = A?.config.isGlobal ?? !0, v = A?.config?.googleMapsApiKey, G = A?.config?.atlasSearchLocalities, k = A?.config?.googleMapsAutocompleteEnabled, [g, C] = M(!1), [Q, N] = M(""), E = Y(null), T = Y(null), U = Y({}), b = (r) => l({ ...o, ...r }), B = (r, c) => {
|
|
1663
1669
|
if (r === "phone") {
|
|
1664
|
-
const H =
|
|
1665
|
-
H.shouldTrack &&
|
|
1670
|
+
const H = kr(c, m, U.current);
|
|
1671
|
+
H.shouldTrack && p?.trackPhoneSectionFilled?.({ phone: H.fullPhone });
|
|
1666
1672
|
return;
|
|
1667
1673
|
}
|
|
1668
1674
|
c.trim() && !U.current[r] && (U.current[r] = !0, {
|
|
1669
|
-
fullName: () =>
|
|
1670
|
-
dateOfBirth: () =>
|
|
1671
|
-
birthTime: () =>
|
|
1672
|
-
birthPlace: () =>
|
|
1675
|
+
fullName: () => p?.trackNameSectionFilled?.(),
|
|
1676
|
+
dateOfBirth: () => p?.trackDobFilled?.(),
|
|
1677
|
+
birthTime: () => p?.trackTimeFilled?.(),
|
|
1678
|
+
birthPlace: () => p?.trackPlaceOfBirthChosen?.()
|
|
1673
1679
|
}[r]?.());
|
|
1674
1680
|
}, X = (r) => {
|
|
1675
1681
|
const c = r.target.value;
|
|
1676
|
-
c.trim() &&
|
|
1682
|
+
c.trim() && p?.trackEmailSectionFilled?.({ email: c });
|
|
1677
1683
|
}, V = Q.trim().toLowerCase(), D = Tt.filter((r) => V ? r.country.toLowerCase().includes(V) || r.code.includes(V) : !0), I = Y(null);
|
|
1678
1684
|
Y(null);
|
|
1679
1685
|
const ee = Y(null), Z = Y(0), z = Y(null), [ye, ne] = M(!1), [s, S] = M({ hour12: 12, minute: "00", meridiem: "AM" }), K = (r) => String(r).padStart(2, "0"), ue = (r) => {
|
|
@@ -1681,7 +1687,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1681
1687
|
if (!c) return r;
|
|
1682
1688
|
const H = Number(c[1]), ge = c[2], Ue = H >= 12 ? "PM" : "AM";
|
|
1683
1689
|
return `${H % 12 === 0 ? 12 : H % 12}:${ge} ${Ue}`;
|
|
1684
|
-
},
|
|
1690
|
+
}, ve = (r) => {
|
|
1685
1691
|
const c = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(r);
|
|
1686
1692
|
if (!c) return { hour12: 12, minute: "00", meridiem: "AM" };
|
|
1687
1693
|
const H = Number(c[1]), ge = c[2], Ue = H >= 12 ? "PM" : "AM";
|
|
@@ -1690,10 +1696,10 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1690
1696
|
const c = Math.min(12, Math.max(1, r.hour12)), H = /^([0-5]\d)$/.test(r.minute) ? r.minute : "00";
|
|
1691
1697
|
let ge = c % 12;
|
|
1692
1698
|
return r.meridiem === "PM" && (ge += 12), `${K(ge)}:${H}`;
|
|
1693
|
-
}, he = Y(null), [te,
|
|
1699
|
+
}, he = Y(null), [te, pe] = M(!1), me = Y(o.birthPlace ?? ""), [ce, oe] = M(
|
|
1694
1700
|
null
|
|
1695
|
-
),
|
|
1696
|
-
apiKey: ie ?
|
|
1701
|
+
), ke = P ?? v ?? xr?.VITE_GOOGLE_MAPS_API_KEY, Se = w ?? G, ie = W ?? k ?? !0, se = (o.birthPlace ?? "").trim(), Te = O ? void 0 : "in", fe = _r({
|
|
1702
|
+
apiKey: ie ? ke : void 0,
|
|
1697
1703
|
language: "en",
|
|
1698
1704
|
restrictCountry: Te
|
|
1699
1705
|
}), we = yr({
|
|
@@ -1711,14 +1717,14 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1711
1717
|
secondaryText: r.secondary_text,
|
|
1712
1718
|
lat: r.lat,
|
|
1713
1719
|
lng: r.lng
|
|
1714
|
-
})), Ie = ie ? fe.isSearching : we.isSearching, Le = ie ? fe.loadError : we.loadError, j = ie ? !!
|
|
1720
|
+
})), Ie = ie ? fe.isSearching : we.isSearching, Le = ie ? fe.loadError : we.loadError, j = ie ? !!ke : !!Se, Be = ie ? fe.searchPlaces : we.searchPlaces, Me = ie ? fe.clearPredictions : we.clearPredictions, $e = Y(() => {
|
|
1715
1721
|
});
|
|
1716
1722
|
$e.current = () => {
|
|
1717
|
-
(o.birthPlace ?? "") !==
|
|
1723
|
+
(o.birthPlace ?? "") !== me.current && b({
|
|
1718
1724
|
birthPlace: "",
|
|
1719
1725
|
birthPlaceLat: void 0,
|
|
1720
1726
|
birthPlaceLng: void 0
|
|
1721
|
-
}),
|
|
1727
|
+
}), pe(!1);
|
|
1722
1728
|
}, J(() => {
|
|
1723
1729
|
const r = (c) => {
|
|
1724
1730
|
he.current && (he.current.contains(c.target) || $e.current());
|
|
@@ -1792,7 +1798,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1792
1798
|
className: n.input,
|
|
1793
1799
|
type: "text",
|
|
1794
1800
|
value: o.fullName,
|
|
1795
|
-
onFocus: () =>
|
|
1801
|
+
onFocus: () => p?.trackNameSectionClicked?.(),
|
|
1796
1802
|
onChange: (r) => {
|
|
1797
1803
|
const c = r.target.value;
|
|
1798
1804
|
b({ fullName: c }), B("fullName", c);
|
|
@@ -1829,7 +1835,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1829
1835
|
className: `${n.input} ${n.phoneInput}`,
|
|
1830
1836
|
type: "tel",
|
|
1831
1837
|
value: o.phone ?? "",
|
|
1832
|
-
onFocus: () =>
|
|
1838
|
+
onFocus: () => p?.trackPhoneSectionClicked?.(),
|
|
1833
1839
|
onChange: (r) => {
|
|
1834
1840
|
const c = r.target.value;
|
|
1835
1841
|
b({ phone: yt(c) }), B("phone", yt(c));
|
|
@@ -1871,7 +1877,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1871
1877
|
"aria-selected": r.code === m,
|
|
1872
1878
|
className: `${n.isdOption} ${r.code === m ? n.isdOptionActive : ""}`,
|
|
1873
1879
|
onClick: () => {
|
|
1874
|
-
|
|
1880
|
+
u(r.code), C(!1), N("");
|
|
1875
1881
|
},
|
|
1876
1882
|
children: [
|
|
1877
1883
|
/* @__PURE__ */ e.jsx("span", { className: n.isdCountryName, children: r.country }),
|
|
@@ -1904,7 +1910,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1904
1910
|
type: "button",
|
|
1905
1911
|
className: `${n.choiceBtn} ${o.gender === "male" ? n.choiceBtnActive : ""}`,
|
|
1906
1912
|
onClick: () => {
|
|
1907
|
-
b({ gender: "male" }),
|
|
1913
|
+
b({ gender: "male" }), p?.trackGenderSelected?.({
|
|
1908
1914
|
gender: "male"
|
|
1909
1915
|
});
|
|
1910
1916
|
},
|
|
@@ -1920,7 +1926,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1920
1926
|
type: "button",
|
|
1921
1927
|
className: `${n.choiceBtn} ${o.gender === "female" ? n.choiceBtnActive : ""}`,
|
|
1922
1928
|
onClick: () => {
|
|
1923
|
-
b({ gender: "female" }),
|
|
1929
|
+
b({ gender: "female" }), p?.trackGenderSelected?.({
|
|
1924
1930
|
gender: "female"
|
|
1925
1931
|
});
|
|
1926
1932
|
},
|
|
@@ -1946,7 +1952,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1946
1952
|
className: n.input,
|
|
1947
1953
|
type: "email",
|
|
1948
1954
|
value: o.email,
|
|
1949
|
-
onFocus: () =>
|
|
1955
|
+
onFocus: () => p?.trackEmailSectionClicked?.(),
|
|
1950
1956
|
onChange: (r) => {
|
|
1951
1957
|
b({ email: r.target.value });
|
|
1952
1958
|
},
|
|
@@ -1973,7 +1979,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1973
1979
|
"aria-label": a("info"),
|
|
1974
1980
|
"aria-expanded": ce === "dob",
|
|
1975
1981
|
onClick: () => {
|
|
1976
|
-
oe((r) => r === "dob" ? null : "dob"),
|
|
1982
|
+
oe((r) => r === "dob" ? null : "dob"), p?.trackInfoIconClicked?.({ fieldName: "dob" });
|
|
1977
1983
|
},
|
|
1978
1984
|
children: /* @__PURE__ */ e.jsx(
|
|
1979
1985
|
"img",
|
|
@@ -2009,7 +2015,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2009
2015
|
const c = r.target.value, H = /* @__PURE__ */ new Date(), ge = `${H.getFullYear()}-${K(H.getMonth() + 1)}-${K(H.getDate())}`;
|
|
2010
2016
|
c && c > ge || (b({ dateOfBirth: c }), B("dateOfBirth", c), ee.current = null);
|
|
2011
2017
|
},
|
|
2012
|
-
onFocus: () =>
|
|
2018
|
+
onFocus: () => p?.trackDobClicked?.(),
|
|
2013
2019
|
onClick: () => Ge(I),
|
|
2014
2020
|
onBlur: () => {
|
|
2015
2021
|
ee.current === I.current && (ee.current = null);
|
|
@@ -2054,7 +2060,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2054
2060
|
"aria-label": a("info"),
|
|
2055
2061
|
"aria-expanded": ce === "time",
|
|
2056
2062
|
onClick: () => {
|
|
2057
|
-
|
|
2063
|
+
p?.trackInfoIconClicked?.({ fieldName: "time" }), oe((r) => r === "time" ? null : "time");
|
|
2058
2064
|
},
|
|
2059
2065
|
children: /* @__PURE__ */ e.jsx(
|
|
2060
2066
|
"img",
|
|
@@ -2082,7 +2088,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2082
2088
|
type: "text",
|
|
2083
2089
|
value: o.birthTime ? ue(o.birthTime) : "",
|
|
2084
2090
|
readOnly: !0,
|
|
2085
|
-
onFocus: () =>
|
|
2091
|
+
onFocus: () => p?.trackTimeClicked?.(),
|
|
2086
2092
|
onChange: (r) => {
|
|
2087
2093
|
const c = r.target.value;
|
|
2088
2094
|
b({ birthTime: c }), B("birthTime", c);
|
|
@@ -2090,7 +2096,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2090
2096
|
disabled: o.birthTimeUnknown,
|
|
2091
2097
|
placeholder: "HH:MM AM",
|
|
2092
2098
|
onClick: () => {
|
|
2093
|
-
o.birthTimeUnknown || (S(
|
|
2099
|
+
o.birthTimeUnknown || (S(ve(o.birthTime || "12:00")), ne((r) => !r));
|
|
2094
2100
|
}
|
|
2095
2101
|
}
|
|
2096
2102
|
),
|
|
@@ -2103,7 +2109,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2103
2109
|
disabled: o.birthTimeUnknown,
|
|
2104
2110
|
onMouseDown: (r) => r.preventDefault(),
|
|
2105
2111
|
onClick: (r) => {
|
|
2106
|
-
r.preventDefault(), r.stopPropagation(), !o.birthTimeUnknown && (S(
|
|
2112
|
+
r.preventDefault(), r.stopPropagation(), !o.birthTimeUnknown && (S(ve(o.birthTime || "12:00")), ne((c) => !c));
|
|
2107
2113
|
},
|
|
2108
2114
|
children: /* @__PURE__ */ e.jsx(
|
|
2109
2115
|
"img",
|
|
@@ -2228,7 +2234,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2228
2234
|
type: "checkbox",
|
|
2229
2235
|
checked: o.birthTimeUnknown,
|
|
2230
2236
|
onChange: (r) => {
|
|
2231
|
-
|
|
2237
|
+
p?.trackTimeCheckboxClicked?.(), b({
|
|
2232
2238
|
birthTimeUnknown: r.target.checked,
|
|
2233
2239
|
birthTime: r.target.checked ? "" : o.birthTime
|
|
2234
2240
|
});
|
|
@@ -2264,7 +2270,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2264
2270
|
"aria-label": a("info"),
|
|
2265
2271
|
"aria-expanded": ce === "place",
|
|
2266
2272
|
onClick: () => {
|
|
2267
|
-
|
|
2273
|
+
p?.trackInfoIconClicked?.({
|
|
2268
2274
|
fieldName: "birthPlace"
|
|
2269
2275
|
}), oe((r) => r === "place" ? null : "place");
|
|
2270
2276
|
},
|
|
@@ -2299,10 +2305,10 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2299
2305
|
birthPlace: c,
|
|
2300
2306
|
birthPlaceLat: void 0,
|
|
2301
2307
|
birthPlaceLng: void 0
|
|
2302
|
-
}), B("birthPlace", c),
|
|
2308
|
+
}), B("birthPlace", c), pe(!0);
|
|
2303
2309
|
},
|
|
2304
2310
|
onFocus: () => {
|
|
2305
|
-
|
|
2311
|
+
p?.trackPlaceOfBirthClicked?.(), pe(!0);
|
|
2306
2312
|
},
|
|
2307
2313
|
placeholder: a("formBirthPlacePlaceholder"),
|
|
2308
2314
|
autoComplete: "address-level2"
|
|
@@ -2324,15 +2330,15 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2324
2330
|
className: n.suggestionItem,
|
|
2325
2331
|
onClick: async () => {
|
|
2326
2332
|
const c = r.description;
|
|
2327
|
-
if (
|
|
2333
|
+
if (me.current = c, b({
|
|
2328
2334
|
birthPlace: c,
|
|
2329
2335
|
birthPlaceLat: r.lat,
|
|
2330
2336
|
birthPlaceLng: r.lng
|
|
2331
|
-
}), Me(),
|
|
2337
|
+
}), Me(), pe(!1), ie) {
|
|
2332
2338
|
const H = await fe.getPlaceDetails(
|
|
2333
2339
|
r.id
|
|
2334
2340
|
);
|
|
2335
|
-
H && (
|
|
2341
|
+
H && (me.current = c, l({
|
|
2336
2342
|
...o,
|
|
2337
2343
|
birthPlace: c,
|
|
2338
2344
|
birthPlaceLat: H.lat,
|
|
@@ -2370,7 +2376,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2370
2376
|
type: "button",
|
|
2371
2377
|
className: `${n.choiceBtn} ${o.language_code === "hi" ? n.choiceBtnActive : ""}`,
|
|
2372
2378
|
onClick: () => {
|
|
2373
|
-
b({ language_code: "hi" }),
|
|
2379
|
+
b({ language_code: "hi" }), p?.trackLanguageOfReportSelected?.({
|
|
2374
2380
|
language: "hi"
|
|
2375
2381
|
});
|
|
2376
2382
|
},
|
|
@@ -2386,7 +2392,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2386
2392
|
type: "button",
|
|
2387
2393
|
className: `${n.choiceBtn} ${o.language_code === "en" ? n.choiceBtnActive : ""}`,
|
|
2388
2394
|
onClick: () => {
|
|
2389
|
-
b({ language_code: "en" }),
|
|
2395
|
+
b({ language_code: "en" }), p?.trackLanguageOfReportSelected?.({
|
|
2390
2396
|
language: "en"
|
|
2391
2397
|
});
|
|
2392
2398
|
},
|
|
@@ -2402,7 +2408,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2402
2408
|
type: "button",
|
|
2403
2409
|
className: `${n.choiceBtn} ${o.language_code === "te" ? n.choiceBtnActive : ""}`,
|
|
2404
2410
|
onClick: () => {
|
|
2405
|
-
b({ language_code: "te" }),
|
|
2411
|
+
b({ language_code: "te" }), p?.trackLanguageOfReportSelected?.({
|
|
2406
2412
|
language: "te"
|
|
2407
2413
|
});
|
|
2408
2414
|
},
|
|
@@ -2418,7 +2424,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2418
2424
|
type: "button",
|
|
2419
2425
|
className: `${n.choiceBtn} ${o.language_code === "ta" ? n.choiceBtnActive : ""}`,
|
|
2420
2426
|
onClick: () => {
|
|
2421
|
-
b({ language_code: "ta" }),
|
|
2427
|
+
b({ language_code: "ta" }), p?.trackLanguageOfReportSelected?.({
|
|
2422
2428
|
language: "ta"
|
|
2423
2429
|
});
|
|
2424
2430
|
},
|
|
@@ -2434,7 +2440,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2434
2440
|
type: "button",
|
|
2435
2441
|
className: `${n.choiceBtn} ${o.language_code === "kn" ? n.choiceBtnActive : ""}`,
|
|
2436
2442
|
onClick: () => {
|
|
2437
|
-
b({ language_code: "kn" }),
|
|
2443
|
+
b({ language_code: "kn" }), p?.trackLanguageOfReportSelected?.({
|
|
2438
2444
|
language: "kn"
|
|
2439
2445
|
});
|
|
2440
2446
|
},
|
|
@@ -2450,7 +2456,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2450
2456
|
type: "button",
|
|
2451
2457
|
className: `${n.choiceBtn} ${o.language_code === "gu" ? n.choiceBtnActive : ""}`,
|
|
2452
2458
|
onClick: () => {
|
|
2453
|
-
b({ language_code: "gu" }),
|
|
2459
|
+
b({ language_code: "gu" }), p?.trackLanguageOfReportSelected?.({
|
|
2454
2460
|
language: "gu"
|
|
2455
2461
|
});
|
|
2456
2462
|
},
|
|
@@ -2466,7 +2472,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2466
2472
|
type: "button",
|
|
2467
2473
|
className: `${n.choiceBtn} ${o.language_code === "mr" ? n.choiceBtnActive : ""}`,
|
|
2468
2474
|
onClick: () => {
|
|
2469
|
-
b({ language_code: "mr" }),
|
|
2475
|
+
b({ language_code: "mr" }), p?.trackLanguageOfReportSelected?.({
|
|
2470
2476
|
language: "mr"
|
|
2471
2477
|
});
|
|
2472
2478
|
},
|
|
@@ -2550,7 +2556,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2550
2556
|
values: o,
|
|
2551
2557
|
phoneIsdCode: l,
|
|
2552
2558
|
requireV1ExtraFields: m = !1,
|
|
2553
|
-
onValidationFailed:
|
|
2559
|
+
onValidationFailed: u,
|
|
2554
2560
|
onProceed: _,
|
|
2555
2561
|
onProceedGuidance: h,
|
|
2556
2562
|
href: P,
|
|
@@ -2558,17 +2564,17 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2558
2564
|
className: W = "",
|
|
2559
2565
|
discountedPriceLabel: F,
|
|
2560
2566
|
discountPillLabel: A,
|
|
2561
|
-
showPlanSheet:
|
|
2567
|
+
showPlanSheet: p,
|
|
2562
2568
|
confirmPlan: O,
|
|
2563
|
-
planSheetOpen:
|
|
2569
|
+
planSheetOpen: v,
|
|
2564
2570
|
selectedPlan: G
|
|
2565
2571
|
}) => {
|
|
2566
|
-
const
|
|
2572
|
+
const k = Ee(), g = k?.config.isGlobal ?? !0, C = k?.config?.variant, Q = Re(
|
|
2567
2573
|
() => Br(o, g, m),
|
|
2568
2574
|
[o, g, m]
|
|
2569
|
-
), N = Q === null, E = C === "v1" &&
|
|
2575
|
+
), N = Q === null, E = C === "v1" && k?.config?.showSheet, T = g ? F ?? a("formDiscountedPrice") : E ? "" : "₹499", U = k?.config.imageComponent ?? Ye, b = (X) => {
|
|
2570
2576
|
if (X.preventDefault(), C === "v1" && !N && w?.trackKundliDetailedClicked?.(), !N) {
|
|
2571
|
-
Q &&
|
|
2577
|
+
Q && u?.(Q);
|
|
2572
2578
|
return;
|
|
2573
2579
|
}
|
|
2574
2580
|
const V = !!h && C === "v1" && G?.id === jt, D = (o.phone ?? "").trim(), I = {
|
|
@@ -2576,7 +2582,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2576
2582
|
phone: D && `${l}-${D}`
|
|
2577
2583
|
};
|
|
2578
2584
|
if (E) {
|
|
2579
|
-
|
|
2585
|
+
v ? O?.() : p?.(I);
|
|
2580
2586
|
return;
|
|
2581
2587
|
}
|
|
2582
2588
|
w?.trackPrimaryCtaClickedL1?.({ avenue: "form" }), V ? h(I) : _?.(I);
|
|
@@ -2589,7 +2595,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2589
2595
|
"aria-label": a("formPriceAria"),
|
|
2590
2596
|
className: C === "v1" && N ? He.ctaFilled : C === "v1" ? He.ctaButton : void 0,
|
|
2591
2597
|
children: C === "v1" ? N ? /* @__PURE__ */ e.jsxs("span", { className: He.ctaFilledContent, children: [
|
|
2592
|
-
E ? a("selectPackage") :
|
|
2598
|
+
E ? a("selectPackage") : v && G ? `${a("proceedWithPlan")}${G.price}` : `${a("formProceed")} ${T}`,
|
|
2593
2599
|
/* @__PURE__ */ e.jsx(
|
|
2594
2600
|
U,
|
|
2595
2601
|
{
|
|
@@ -2622,13 +2628,13 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2622
2628
|
logoUrl: l = Fr,
|
|
2623
2629
|
className: m = ""
|
|
2624
2630
|
}) => {
|
|
2625
|
-
const
|
|
2631
|
+
const u = Ee(), _ = u?.config.isGlobal ?? !0, h = o != null && !_;
|
|
2626
2632
|
return /* @__PURE__ */ e.jsx(
|
|
2627
2633
|
zt,
|
|
2628
2634
|
{
|
|
2629
2635
|
t: a,
|
|
2630
2636
|
logoUrl: l,
|
|
2631
|
-
imageComponent:
|
|
2637
|
+
imageComponent: u?.config.imageComponent,
|
|
2632
2638
|
languageSelector: o,
|
|
2633
2639
|
showLanguageSelector: h,
|
|
2634
2640
|
className: m
|
|
@@ -2681,7 +2687,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2681
2687
|
alt: "",
|
|
2682
2688
|
"aria-hidden": !0
|
|
2683
2689
|
}
|
|
2684
|
-
), Hr = "_overlay_1u7x5_2", Yr = "_sheet_1u7x5_12", qr = "_sheetFullScreen_1u7x5_36", Vr = "_headerFull_1u7x5_50", zr = "_titleFull_1u7x5_63", Jr = "_header_1u7x5_50", Qr = "_backBtn_1u7x5_84", Xr = "_title_1u7x5_63", Zr = "_plansContainer_1u7x5_114", en = "_planCard_1u7x5_123", tn = "_withBadgeSpacing_1u7x5_137", an = "_planCardSelected_1u7x5_141", rn = "_planCardPopular_1u7x5_146", nn = "_popularBadge_1u7x5_155", on = "_planCardInner_1u7x5_173", sn = "_planTitleRow_1u7x5_184", ln = "_planTitle_1u7x5_184", cn = "_radioCircle_1u7x5_199", dn = "_radioChecked_1u7x5_212", un = "_radioInner_1u7x5_217",
|
|
2690
|
+
), Hr = "_overlay_1u7x5_2", Yr = "_sheet_1u7x5_12", qr = "_sheetFullScreen_1u7x5_36", Vr = "_headerFull_1u7x5_50", zr = "_titleFull_1u7x5_63", Jr = "_header_1u7x5_50", Qr = "_backBtn_1u7x5_84", Xr = "_title_1u7x5_63", Zr = "_plansContainer_1u7x5_114", en = "_planCard_1u7x5_123", tn = "_withBadgeSpacing_1u7x5_137", an = "_planCardSelected_1u7x5_141", rn = "_planCardPopular_1u7x5_146", nn = "_popularBadge_1u7x5_155", on = "_planCardInner_1u7x5_173", sn = "_planTitleRow_1u7x5_184", ln = "_planTitle_1u7x5_184", cn = "_radioCircle_1u7x5_199", dn = "_radioChecked_1u7x5_212", un = "_radioInner_1u7x5_217", pn = "_priceRow_1u7x5_225", mn = "_price_1u7x5_225", fn = "_originalPrice_1u7x5_238", hn = "_savingsBadge_1u7x5_245", gn = "_featureList_1u7x5_255", _n = "_featureItem_1u7x5_264", bn = "_featureIcon_1u7x5_270", yn = "_featureText_1u7x5_276", vn = "_astrologerHeading_1u7x5_287", kn = "_astrologerList_1u7x5_294", xn = "_astrologerCard_1u7x5_310", wn = "_astrologerAvatar_1u7x5_326", Pn = "_astrologerAvatarPlaceholder_1u7x5_343", Cn = "_astrologerTop_1u7x5_349", Tn = "_astrologerBasicInfo_1u7x5_355", Sn = "_astrologerName_1u7x5_362", jn = "_astrologerExp_1u7x5_371", Nn = "_astrologerDivider_1u7x5_377", An = "_planDivider_1u7x5_383", Rn = "_astrologerCertList_1u7x5_390", En = "_astrologerCertItem_1u7x5_396", In = "_bullet_1u7x5_404", Ln = "_footer_1u7x5_409", Bn = "_proceedBtn_1u7x5_419", x = {
|
|
2685
2691
|
overlay: Hr,
|
|
2686
2692
|
sheet: Yr,
|
|
2687
2693
|
sheetFullScreen: qr,
|
|
@@ -2702,16 +2708,16 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2702
2708
|
radioCircle: cn,
|
|
2703
2709
|
radioChecked: dn,
|
|
2704
2710
|
radioInner: un,
|
|
2705
|
-
priceRow:
|
|
2706
|
-
price:
|
|
2711
|
+
priceRow: pn,
|
|
2712
|
+
price: mn,
|
|
2707
2713
|
originalPrice: fn,
|
|
2708
2714
|
savingsBadge: hn,
|
|
2709
2715
|
featureList: gn,
|
|
2710
2716
|
featureItem: _n,
|
|
2711
2717
|
featureIcon: bn,
|
|
2712
2718
|
featureText: yn,
|
|
2713
|
-
astrologerHeading:
|
|
2714
|
-
astrologerList:
|
|
2719
|
+
astrologerHeading: vn,
|
|
2720
|
+
astrologerList: kn,
|
|
2715
2721
|
astrologerCard: xn,
|
|
2716
2722
|
astrologerAvatar: wn,
|
|
2717
2723
|
astrologerAvatarPlaceholder: Pn,
|
|
@@ -2765,7 +2771,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2765
2771
|
/* @__PURE__ */ e.jsx(Gr, {}),
|
|
2766
2772
|
/* @__PURE__ */ e.jsx("span", { children: a })
|
|
2767
2773
|
] }), $n = ({ plan: a, isSelected: o, onSelect: l, t: m }) => {
|
|
2768
|
-
const
|
|
2774
|
+
const u = () => l(a.id), _ = (h) => {
|
|
2769
2775
|
(h.key === " " || h.key === "Enter") && (h.preventDefault(), l(a.id));
|
|
2770
2776
|
};
|
|
2771
2777
|
return /* @__PURE__ */ e.jsxs(
|
|
@@ -2776,7 +2782,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2776
2782
|
o ? x.planCardSelected : "",
|
|
2777
2783
|
o && x.planCardPopular
|
|
2778
2784
|
].filter(Boolean).join(" "),
|
|
2779
|
-
onClick:
|
|
2785
|
+
onClick: u,
|
|
2780
2786
|
role: "radio",
|
|
2781
2787
|
"aria-checked": o,
|
|
2782
2788
|
tabIndex: 0,
|
|
@@ -2811,7 +2817,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2811
2817
|
]
|
|
2812
2818
|
}
|
|
2813
2819
|
);
|
|
2814
|
-
},
|
|
2820
|
+
}, vt = (a) => {
|
|
2815
2821
|
const o = new Date(a);
|
|
2816
2822
|
return Number.isNaN(o.getTime()) ? a : o.toLocaleTimeString(void 0, {
|
|
2817
2823
|
hour: "numeric",
|
|
@@ -2822,8 +2828,8 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2822
2828
|
const l = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], m = /* @__PURE__ */ new Date(`${a}T00:00:00`);
|
|
2823
2829
|
if (Number.isNaN(m.getTime()))
|
|
2824
2830
|
return { id: a, dayLabel: a, dayNum: "" };
|
|
2825
|
-
const
|
|
2826
|
-
(
|
|
2831
|
+
const u = (P) => new Date(P.getFullYear(), P.getMonth(), P.getDate()).getTime(), _ = Math.round(
|
|
2832
|
+
(u(m) - u(o)) / (1e3 * 60 * 60 * 24)
|
|
2827
2833
|
), h = _ === 0 ? "Today" : _ === 1 ? "Tomorrow" : l[m.getDay()];
|
|
2828
2834
|
return { id: a, dayLabel: h, dayNum: String(m.getDate()) };
|
|
2829
2835
|
}, Un = [
|
|
@@ -2835,7 +2841,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2835
2841
|
{ id: "health_wellbeing", labelKey: "planTopicHealthWellbeing", label: "Health & wellbeing" },
|
|
2836
2842
|
{ id: "love_marriage", labelKey: "planTopicLoveMarriage", label: "Love & marriage" },
|
|
2837
2843
|
{ id: "money_finance", labelKey: "planTopicMoneyFinance", label: "Money & finance" }
|
|
2838
|
-
], Kn = "
|
|
2844
|
+
], Kn = "_overlay_55div_2", Hn = "_sheet_55div_12", Yn = "_content_55div_34", qn = "_header_55div_41", Vn = "_backBtn_55div_54", zn = "_title_55div_72", Jn = "_subtitle_55div_80", Qn = "_reportReadyBanner_55div_88", Xn = "_reportReadyDuration_55div_97", Zn = "_trustRow_55div_103", eo = "_trustAvatars_55div_114", to = "_trustText_55div_127", ao = "_trustDivider_55div_133", ro = "_astrologerRow_55div_140", no = "_astrologerCard_55div_153", oo = "_astrologerTop_55div_166", io = "_astrologerAvatar_55div_172", so = "_astrologerBasicInfo_55div_189", lo = "_astrologerName_55div_194", co = "_astrologerMeta_55div_205", uo = "_astrologerCertList_55div_219", po = "_astrologerCertItem_55div_225", mo = "_bullet_55div_233", fo = "_sectionHeading_55div_238", ho = "_dateTabs_55div_246", go = "_dateTab_55div_246", _o = "_dateTabDivider_55div_273", bo = "_dateTabSelected_55div_283", yo = "_dateTabLabel_55div_289", vo = "_dateTabNum_55div_295", ko = "_periodTabs_55div_308", xo = "_periodTab_55div_308", wo = "_periodTabSelected_55div_334", Po = "_timeGrid_55div_341", Co = "_timeSlot_55div_348", To = "_timeSlotSelected_55div_364", So = "_topicGrid_55div_372", jo = "_topicChip_55div_378", No = "_topicChipSelected_55div_394", Ao = "_stateMessage_55div_401", Ro = "_loadingWrap_55div_409", Eo = "_skeletonShimmer_55div_414", Io = "_skeletonDateTabs_55div_428", Lo = "_skeletonDateTab_55div_428", Bo = "_skeletonPeriodTabs_55div_442", Do = "_skeletonPeriodTab_55div_442", Fo = "_skeletonTimeGrid_55div_457", Oo = "_skeletonTimeSlot_55div_463", Mo = "_retryBtn_55div_468", $o = "_footer_55div_482", Go = "_proceedBtn_55div_489", Uo = "_proceedBtnDisabled_55div_507", f = {
|
|
2839
2845
|
overlay: Kn,
|
|
2840
2846
|
sheet: Hn,
|
|
2841
2847
|
content: Yn,
|
|
@@ -2843,81 +2849,83 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2843
2849
|
backBtn: Vn,
|
|
2844
2850
|
title: zn,
|
|
2845
2851
|
subtitle: Jn,
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2852
|
+
reportReadyBanner: Qn,
|
|
2853
|
+
reportReadyDuration: Xn,
|
|
2854
|
+
trustRow: Zn,
|
|
2855
|
+
trustAvatars: eo,
|
|
2856
|
+
trustText: to,
|
|
2857
|
+
trustDivider: ao,
|
|
2858
|
+
astrologerRow: ro,
|
|
2859
|
+
astrologerCard: no,
|
|
2860
|
+
astrologerTop: oo,
|
|
2861
|
+
astrologerAvatar: io,
|
|
2862
|
+
astrologerBasicInfo: so,
|
|
2863
|
+
astrologerName: lo,
|
|
2864
|
+
astrologerMeta: co,
|
|
2865
|
+
astrologerCertList: uo,
|
|
2866
|
+
astrologerCertItem: po,
|
|
2867
|
+
bullet: mo,
|
|
2868
|
+
sectionHeading: fo,
|
|
2869
|
+
dateTabs: ho,
|
|
2870
|
+
dateTab: go,
|
|
2871
|
+
dateTabDivider: _o,
|
|
2872
|
+
dateTabSelected: bo,
|
|
2873
|
+
dateTabLabel: yo,
|
|
2874
|
+
dateTabNum: vo,
|
|
2875
|
+
periodTabs: ko,
|
|
2876
|
+
periodTab: xo,
|
|
2877
|
+
periodTabSelected: wo,
|
|
2878
|
+
timeGrid: Po,
|
|
2879
|
+
timeSlot: Co,
|
|
2880
|
+
timeSlotSelected: To,
|
|
2881
|
+
topicGrid: So,
|
|
2882
|
+
topicChip: jo,
|
|
2883
|
+
topicChipSelected: No,
|
|
2884
|
+
stateMessage: Ao,
|
|
2885
|
+
loadingWrap: Ro,
|
|
2886
|
+
skeletonShimmer: Eo,
|
|
2887
|
+
skeletonDateTabs: Io,
|
|
2888
|
+
skeletonDateTab: Lo,
|
|
2889
|
+
skeletonPeriodTabs: Bo,
|
|
2890
|
+
skeletonPeriodTab: Do,
|
|
2891
|
+
skeletonTimeGrid: Fo,
|
|
2892
|
+
skeletonTimeSlot: Oo,
|
|
2893
|
+
retryBtn: Mo,
|
|
2894
|
+
footer: $o,
|
|
2895
|
+
proceedBtn: Go,
|
|
2896
|
+
proceedBtnDisabled: Uo
|
|
2897
|
+
}, Wo = {
|
|
2890
2898
|
morning: Ur,
|
|
2891
2899
|
afternoon: Wr,
|
|
2892
2900
|
evening: Kr
|
|
2893
|
-
},
|
|
2901
|
+
}, Ko = {
|
|
2894
2902
|
morning: "planPeriodMorning",
|
|
2895
2903
|
afternoon: "planPeriodAfternoon",
|
|
2896
2904
|
evening: "planPeriodEvening"
|
|
2897
|
-
},
|
|
2905
|
+
}, Ho = ({
|
|
2898
2906
|
isOpen: a,
|
|
2899
2907
|
onClose: o,
|
|
2900
2908
|
onProceed: l,
|
|
2901
2909
|
astrologers: m,
|
|
2902
|
-
t:
|
|
2910
|
+
t: u,
|
|
2903
2911
|
analytics: _
|
|
2904
2912
|
}) => {
|
|
2905
|
-
const h = Ee(), P = h?.config.imageComponent ?? Ye, w = h?.config.fetchConsultationSlots, [W, F] = M([]), [A,
|
|
2913
|
+
const h = Ee(), P = h?.config.imageComponent ?? Ye, w = h?.config.fetchConsultationSlots, [W, F] = M([]), [A, p] = M(!1), [O, v] = M(!1), [G, k] = M(""), [g, C] = M(""), [Q, N] = M("morning"), [E, T] = M(null), U = Y(!1), b = Re(
|
|
2906
2914
|
() => W.filter((s) => s.has_availability && s.slots.length > 0),
|
|
2907
2915
|
[W]
|
|
2908
2916
|
), B = be(() => {
|
|
2909
|
-
w && (
|
|
2917
|
+
w && (p(!0), v(!1), w().then((s) => {
|
|
2910
2918
|
F(s?.days ?? []);
|
|
2911
2919
|
}).catch(() => {
|
|
2912
|
-
|
|
2913
|
-
}).finally(() =>
|
|
2920
|
+
v(!0);
|
|
2921
|
+
}).finally(() => p(!1)));
|
|
2914
2922
|
}, [w]);
|
|
2915
2923
|
J(() => {
|
|
2916
2924
|
if (!a) {
|
|
2917
2925
|
U.current = !1;
|
|
2918
2926
|
return;
|
|
2919
2927
|
}
|
|
2920
|
-
|
|
2928
|
+
k(""), B();
|
|
2921
2929
|
}, [a]), J(() => {
|
|
2922
2930
|
if (!b.length) {
|
|
2923
2931
|
C(""), T(null);
|
|
@@ -2973,7 +2981,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2973
2981
|
}, z = (s) => {
|
|
2974
2982
|
T(s), _?.trackSlotSelected?.({
|
|
2975
2983
|
date: g,
|
|
2976
|
-
time:
|
|
2984
|
+
time: vt(s.start),
|
|
2977
2985
|
day_part: s.period,
|
|
2978
2986
|
topic: G || null
|
|
2979
2987
|
});
|
|
@@ -2987,7 +2995,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2987
2995
|
topic: G
|
|
2988
2996
|
}));
|
|
2989
2997
|
}, ne = (s) => {
|
|
2990
|
-
|
|
2998
|
+
k(s), _?.trackGuidanceTopicSelected?.({ topic: s });
|
|
2991
2999
|
};
|
|
2992
3000
|
return /* @__PURE__ */ e.jsx(
|
|
2993
3001
|
"div",
|
|
@@ -2995,7 +3003,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2995
3003
|
className: f.overlay,
|
|
2996
3004
|
role: "dialog",
|
|
2997
3005
|
"aria-modal": "true",
|
|
2998
|
-
"aria-label":
|
|
3006
|
+
"aria-label": u?.("planConsultationSlotTitle") ?? "Select consultation slot",
|
|
2999
3007
|
children: /* @__PURE__ */ e.jsxs("div", { className: f.sheet, children: [
|
|
3000
3008
|
/* @__PURE__ */ e.jsxs("div", { className: f.header, children: [
|
|
3001
3009
|
/* @__PURE__ */ e.jsx(
|
|
@@ -3008,31 +3016,31 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3008
3016
|
children: /* @__PURE__ */ e.jsx(ot, {})
|
|
3009
3017
|
}
|
|
3010
3018
|
),
|
|
3011
|
-
/* @__PURE__ */ e.jsx("h2", { className: f.title, children:
|
|
3019
|
+
/* @__PURE__ */ e.jsx("h2", { className: f.title, children: u?.("planConsultationSlotTitle") ?? "Select consultation slot" })
|
|
3012
3020
|
] }),
|
|
3013
3021
|
/* @__PURE__ */ e.jsxs("div", { className: f.content, children: [
|
|
3014
|
-
/* @__PURE__ */ e.jsx("p", { className: f.subtitle, children:
|
|
3022
|
+
/* @__PURE__ */ e.jsx("p", { className: f.subtitle, children: u?.("planAstrologerHeading") ?? "We will assign you a top astrologer" }),
|
|
3015
3023
|
/* @__PURE__ */ e.jsx("div", { className: f.astrologerRow, role: "list", children: m.map((s, S) => /* @__PURE__ */ e.jsxs("div", { className: f.astrologerCard, role: "listitem", children: [
|
|
3016
3024
|
/* @__PURE__ */ e.jsxs("div", { className: f.astrologerTop, children: [
|
|
3017
3025
|
/* @__PURE__ */ e.jsx("div", { className: f.astrologerAvatar, "aria-hidden": !0, children: s.imageUrl && /* @__PURE__ */ e.jsx(
|
|
3018
3026
|
P,
|
|
3019
3027
|
{
|
|
3020
3028
|
src: s.imageUrl,
|
|
3021
|
-
alt:
|
|
3029
|
+
alt: u?.(s.name) ?? s.name,
|
|
3022
3030
|
width: 40,
|
|
3023
3031
|
height: 40
|
|
3024
3032
|
}
|
|
3025
3033
|
) }),
|
|
3026
3034
|
/* @__PURE__ */ e.jsxs("div", { className: f.astrologerBasicInfo, children: [
|
|
3027
|
-
/* @__PURE__ */ e.jsx("p", { className: f.astrologerName, children:
|
|
3028
|
-
/* @__PURE__ */ e.jsx("p", { className: f.astrologerMeta, children:
|
|
3035
|
+
/* @__PURE__ */ e.jsx("p", { className: f.astrologerName, children: u?.(s.name) ?? s.name }),
|
|
3036
|
+
/* @__PURE__ */ e.jsx("p", { className: f.astrologerMeta, children: u?.(s.experience) ?? s.experience }),
|
|
3029
3037
|
s.languages && s.languages.length > 0 && /* @__PURE__ */ e.jsx("p", { className: f.astrologerMeta, children: s.languages.join(", ") })
|
|
3030
3038
|
] })
|
|
3031
3039
|
] }),
|
|
3032
3040
|
/* @__PURE__ */ e.jsx("div", { className: f.astrologerCertList, children: s.certifications.map((K, ue) => /* @__PURE__ */ e.jsxs("p", { className: f.astrologerCertItem, children: [
|
|
3033
3041
|
/* @__PURE__ */ e.jsx("span", { className: f.bullet, children: "•" }),
|
|
3034
3042
|
" ",
|
|
3035
|
-
|
|
3043
|
+
u?.(K) ?? K
|
|
3036
3044
|
] }, ue)) })
|
|
3037
3045
|
] }, S)) }),
|
|
3038
3046
|
/* @__PURE__ */ e.jsxs("div", { className: f.trustRow, children: [
|
|
@@ -3048,10 +3056,17 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3048
3056
|
loading: "eager"
|
|
3049
3057
|
}
|
|
3050
3058
|
) }),
|
|
3051
|
-
/* @__PURE__ */ e.jsx("span", { className: f.trustText, children:
|
|
3059
|
+
/* @__PURE__ */ e.jsx("span", { className: f.trustText, children: u?.("planConsultationTrustLabel") ?? "3,750+ people have booked consultation" })
|
|
3052
3060
|
] }),
|
|
3053
3061
|
/* @__PURE__ */ e.jsx("hr", { className: f.trustDivider }),
|
|
3054
|
-
/* @__PURE__ */ e.jsx("p", { className: f.sectionHeading, children:
|
|
3062
|
+
/* @__PURE__ */ e.jsx("p", { className: f.sectionHeading, children: u?.("planSelectSlotHeading") ?? "Book your preferred consultation slot" }),
|
|
3063
|
+
/* @__PURE__ */ e.jsxs("p", { className: f.reportReadyBanner, children: [
|
|
3064
|
+
u?.("planReportReadyPrefix") ?? "Your Report will be ready in",
|
|
3065
|
+
" ",
|
|
3066
|
+
/* @__PURE__ */ e.jsx("span", { className: f.reportReadyDuration, children: u?.("planReportReadyDuration") ?? "24-48 hours" }),
|
|
3067
|
+
" ",
|
|
3068
|
+
u?.("planReportReadySuffix") ?? "from today"
|
|
3069
|
+
] }),
|
|
3055
3070
|
A && /* @__PURE__ */ e.jsxs("div", { className: f.loadingWrap, "aria-busy": "true", "aria-live": "polite", children: [
|
|
3056
3071
|
/* @__PURE__ */ e.jsx("div", { className: f.skeletonDateTabs, children: Array.from({ length: 5 }).map((s, S) => /* @__PURE__ */ e.jsx(
|
|
3057
3072
|
"div",
|
|
@@ -3076,10 +3091,10 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3076
3091
|
)) })
|
|
3077
3092
|
] }),
|
|
3078
3093
|
!A && O && /* @__PURE__ */ e.jsxs("div", { className: f.stateMessage, children: [
|
|
3079
|
-
|
|
3080
|
-
/* @__PURE__ */ e.jsx("button", { type: "button", className: f.retryBtn, onClick: B, children:
|
|
3094
|
+
u?.("planSlotsLoadError") ?? "Couldn't load slots. Please try again.",
|
|
3095
|
+
/* @__PURE__ */ e.jsx("button", { type: "button", className: f.retryBtn, onClick: B, children: u?.("planRetry") ?? "Retry" })
|
|
3081
3096
|
] }),
|
|
3082
|
-
!A && !O && b.length === 0 && /* @__PURE__ */ e.jsx("p", { className: f.stateMessage, children:
|
|
3097
|
+
!A && !O && b.length === 0 && /* @__PURE__ */ e.jsx("p", { className: f.stateMessage, children: u?.("planNoSlotsAvailable") ?? "No slots available right now." }),
|
|
3083
3098
|
!A && !O && b.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
3084
3099
|
/* @__PURE__ */ e.jsx("div", { className: f.dateTabs, role: "radiogroup", "aria-label": "Consultation date", children: b.map((s) => {
|
|
3085
3100
|
const S = s.date === g, { dayLabel: K, dayNum: ue } = Gn(s.date);
|
|
@@ -3096,7 +3111,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3096
3111
|
"aria-checked": S,
|
|
3097
3112
|
onClick: () => ee(s.date),
|
|
3098
3113
|
children: [
|
|
3099
|
-
/* @__PURE__ */ e.jsx("span", { className: f.dateTabLabel, children:
|
|
3114
|
+
/* @__PURE__ */ e.jsx("span", { className: f.dateTabLabel, children: u?.(K) ?? K }),
|
|
3100
3115
|
/* @__PURE__ */ e.jsx("span", { className: f.dateTabNum, children: ue })
|
|
3101
3116
|
]
|
|
3102
3117
|
}
|
|
@@ -3105,7 +3120,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3105
3120
|
] }, s.date);
|
|
3106
3121
|
}) }),
|
|
3107
3122
|
/* @__PURE__ */ e.jsx("div", { className: f.periodTabs, role: "tablist", "aria-label": "Time of day", children: V.map((s) => {
|
|
3108
|
-
const S =
|
|
3123
|
+
const S = Wo[s];
|
|
3109
3124
|
return /* @__PURE__ */ e.jsxs(
|
|
3110
3125
|
"button",
|
|
3111
3126
|
{
|
|
@@ -3119,7 +3134,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3119
3134
|
onClick: () => Z(s),
|
|
3120
3135
|
children: [
|
|
3121
3136
|
/* @__PURE__ */ e.jsx(S, {}),
|
|
3122
|
-
|
|
3137
|
+
u?.(Ko[s]) ?? s.charAt(0).toUpperCase() + s.slice(1)
|
|
3123
3138
|
]
|
|
3124
3139
|
},
|
|
3125
3140
|
s
|
|
@@ -3136,12 +3151,12 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3136
3151
|
role: "radio",
|
|
3137
3152
|
"aria-checked": E?.start === s.start,
|
|
3138
3153
|
onClick: () => z(s),
|
|
3139
|
-
children:
|
|
3154
|
+
children: vt(s.start)
|
|
3140
3155
|
},
|
|
3141
3156
|
`${s.start}-${S}`
|
|
3142
3157
|
)) })
|
|
3143
3158
|
] }),
|
|
3144
|
-
/* @__PURE__ */ e.jsx("p", { className: f.sectionHeading, children:
|
|
3159
|
+
/* @__PURE__ */ e.jsx("p", { className: f.sectionHeading, children: u?.("planGuidanceHeading") ?? "What would you like guidance on?" }),
|
|
3145
3160
|
/* @__PURE__ */ e.jsx("div", { className: f.topicGrid, role: "radiogroup", "aria-label": "Guidance topic", children: Wn.map((s) => /* @__PURE__ */ e.jsx(
|
|
3146
3161
|
"button",
|
|
3147
3162
|
{
|
|
@@ -3153,7 +3168,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3153
3168
|
role: "radio",
|
|
3154
3169
|
"aria-checked": G === s.id,
|
|
3155
3170
|
onClick: () => ne(s.id),
|
|
3156
|
-
children:
|
|
3171
|
+
children: u?.(s.labelKey) ?? s.label
|
|
3157
3172
|
},
|
|
3158
3173
|
s.id
|
|
3159
3174
|
)) })
|
|
@@ -3165,13 +3180,13 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3165
3180
|
className: [f.proceedBtn, I ? "" : f.proceedBtnDisabled].filter(Boolean).join(" "),
|
|
3166
3181
|
disabled: !I,
|
|
3167
3182
|
onClick: ye,
|
|
3168
|
-
children:
|
|
3183
|
+
children: u?.("planProceedToPayment") ?? "Proceed to payment"
|
|
3169
3184
|
}
|
|
3170
3185
|
) })
|
|
3171
3186
|
] })
|
|
3172
3187
|
}
|
|
3173
3188
|
);
|
|
3174
|
-
},
|
|
3189
|
+
}, Yo = [
|
|
3175
3190
|
{
|
|
3176
3191
|
id: "jyoti",
|
|
3177
3192
|
name: "planAstrologerNameJyoti",
|
|
@@ -3199,7 +3214,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3199
3214
|
experience: "planAstrologerExpNeeraj",
|
|
3200
3215
|
certifications: ["planAstrologerCertBhuCertified", "planAstrologerCertMantraRudraksha"]
|
|
3201
3216
|
}
|
|
3202
|
-
],
|
|
3217
|
+
], qo = (a) => [
|
|
3203
3218
|
{
|
|
3204
3219
|
id: "kundli-report",
|
|
3205
3220
|
title: "planNameBasic",
|
|
@@ -3225,35 +3240,35 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3225
3240
|
{ text: "planFeatureRealTimeAnswers", included: !0 },
|
|
3226
3241
|
{ text: "planFeatureTailoredRemedies", included: !0 }
|
|
3227
3242
|
],
|
|
3228
|
-
astrologers:
|
|
3243
|
+
astrologers: Yo.filter(
|
|
3229
3244
|
(o) => ["jyoti", "samiksha", "neeraj", "ashwini"].includes(o.id)
|
|
3230
3245
|
)
|
|
3231
3246
|
}
|
|
3232
|
-
],
|
|
3247
|
+
], Vo = ({
|
|
3233
3248
|
isOpen: a,
|
|
3234
3249
|
onClose: o,
|
|
3235
3250
|
selectedPlan: l,
|
|
3236
3251
|
onSelectPlan: m,
|
|
3237
|
-
plans:
|
|
3252
|
+
plans: u,
|
|
3238
3253
|
onProceed: _,
|
|
3239
3254
|
t: h,
|
|
3240
3255
|
analytics: P,
|
|
3241
3256
|
enableConsultationScheduling: w
|
|
3242
3257
|
}) => {
|
|
3243
|
-
const W = Ee(), F = W?.config.isGlobal ?? !0, A = w ?? W?.config.enableConsultationScheduling ?? !1,
|
|
3258
|
+
const W = Ee(), F = W?.config.isGlobal ?? !0, A = w ?? W?.config.enableConsultationScheduling ?? !1, p = u ?? qo(F), O = l?.id || p.find((N) => N.badge)?.id || p[0]?.id || "", v = Y(null), G = Y(null), k = Y(!1), [g, C] = M(!1);
|
|
3244
3259
|
J(() => {
|
|
3245
3260
|
if (a) {
|
|
3246
3261
|
if (!l) {
|
|
3247
|
-
const N =
|
|
3262
|
+
const N = p.find((E) => E.badge) ?? p[0];
|
|
3248
3263
|
N && m(N);
|
|
3249
3264
|
}
|
|
3250
|
-
|
|
3251
|
-
plans_shown:
|
|
3252
|
-
default_selected_plan: l?.id ||
|
|
3253
|
-
}),
|
|
3265
|
+
k.current || (P?.trackPlanPageViewed?.(), A && P?.trackPlanScreenViewed?.({
|
|
3266
|
+
plans_shown: p.map((N) => N.id),
|
|
3267
|
+
default_selected_plan: l?.id || p.find((N) => N.badge)?.id || p[0]?.id || ""
|
|
3268
|
+
}), k.current = !0);
|
|
3254
3269
|
} else
|
|
3255
|
-
|
|
3256
|
-
}, [a,
|
|
3270
|
+
k.current = !1;
|
|
3271
|
+
}, [a, p, l, m, P]);
|
|
3257
3272
|
const Q = () => {
|
|
3258
3273
|
P?.trackPlanPageClosed?.(), o();
|
|
3259
3274
|
};
|
|
@@ -3274,7 +3289,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3274
3289
|
/* @__PURE__ */ e.jsxs(
|
|
3275
3290
|
"div",
|
|
3276
3291
|
{
|
|
3277
|
-
ref:
|
|
3292
|
+
ref: v,
|
|
3278
3293
|
className: A ? x.sheetFullScreen : x.sheet,
|
|
3279
3294
|
children: [
|
|
3280
3295
|
A ? /* @__PURE__ */ e.jsxs("div", { className: x.headerFull, children: [
|
|
@@ -3303,14 +3318,14 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3303
3318
|
className: x.plansContainer,
|
|
3304
3319
|
role: "radiogroup",
|
|
3305
3320
|
"aria-label": "Kundli plans",
|
|
3306
|
-
children:
|
|
3321
|
+
children: p.map((N) => /* @__PURE__ */ e.jsx(
|
|
3307
3322
|
$n,
|
|
3308
3323
|
{
|
|
3309
3324
|
plan: N,
|
|
3310
3325
|
isSelected: N.id === O,
|
|
3311
3326
|
t: h,
|
|
3312
3327
|
onSelect: (E) => {
|
|
3313
|
-
const T =
|
|
3328
|
+
const T = p.find((U) => U.id === E);
|
|
3314
3329
|
T && (P?.trackPlanSelected?.({
|
|
3315
3330
|
planId: T.id,
|
|
3316
3331
|
planName: T.title,
|
|
@@ -3359,7 +3374,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3359
3374
|
}
|
|
3360
3375
|
),
|
|
3361
3376
|
A && l?.astrologers && l.astrologers.length > 0 && /* @__PURE__ */ e.jsx(
|
|
3362
|
-
|
|
3377
|
+
Ho,
|
|
3363
3378
|
{
|
|
3364
3379
|
isOpen: g,
|
|
3365
3380
|
onClose: () => C(!1),
|
|
@@ -3377,7 +3392,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3377
3392
|
]
|
|
3378
3393
|
}
|
|
3379
3394
|
) : null;
|
|
3380
|
-
},
|
|
3395
|
+
}, zo = "https://srm-cdn.a4b.io/yoda/1770362713543.svg", Jo = (a, o) => wt[a]?.[o] ?? o, Qo = (a, o) => a && et.includes(a) ? a : o ? "+1" : "+91", Xo = {
|
|
3381
3396
|
fullName: "",
|
|
3382
3397
|
phone: "",
|
|
3383
3398
|
phoneCountryCode: "",
|
|
@@ -3388,12 +3403,12 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3388
3403
|
birthTime: "",
|
|
3389
3404
|
birthTimeUnknown: !1,
|
|
3390
3405
|
birthPlace: ""
|
|
3391
|
-
},
|
|
3406
|
+
}, ii = ({
|
|
3392
3407
|
className: a = "",
|
|
3393
3408
|
locale: o,
|
|
3394
3409
|
showLanguageSelector: l = !0,
|
|
3395
3410
|
onBack: m,
|
|
3396
|
-
initialValues:
|
|
3411
|
+
initialValues: u,
|
|
3397
3412
|
onProceed: _,
|
|
3398
3413
|
onProceedGuidance: h,
|
|
3399
3414
|
proceedHref: P,
|
|
@@ -3401,10 +3416,10 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3401
3416
|
discountedPriceLabel: W,
|
|
3402
3417
|
googleMapsApiKey: F = "",
|
|
3403
3418
|
atlasSearchLocalities: A,
|
|
3404
|
-
googleMapsAutocompleteEnabled:
|
|
3419
|
+
googleMapsAutocompleteEnabled: p,
|
|
3405
3420
|
analytics: O
|
|
3406
3421
|
}) => {
|
|
3407
|
-
const
|
|
3422
|
+
const v = Ee(), G = ca(), k = v !== null, g = k ? v.locale : o, C = g ?? G?.locale ?? "en", [Q, N] = M(C), E = k ? v.locale : Q, T = k ? v.setLocale : N, [U, b] = M(!1), B = Y(null), X = Y(
|
|
3408
3423
|
g
|
|
3409
3424
|
), V = Y(
|
|
3410
3425
|
G?.locale
|
|
@@ -3412,7 +3427,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3412
3427
|
J(() => {
|
|
3413
3428
|
window.scrollTo({ top: 0, left: 0, behavior: "auto" });
|
|
3414
3429
|
}, []);
|
|
3415
|
-
const D = (j) =>
|
|
3430
|
+
const D = (j) => Jo(E, j);
|
|
3416
3431
|
J(() => {
|
|
3417
3432
|
g && X.current !== g && T(g), X.current = g;
|
|
3418
3433
|
}, [g, T]), J(() => {
|
|
@@ -3421,28 +3436,28 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3421
3436
|
j && V.current !== j && T(j), V.current = j;
|
|
3422
3437
|
}, [G?.locale, g, T]);
|
|
3423
3438
|
const [I, ee] = M({
|
|
3424
|
-
...
|
|
3425
|
-
...
|
|
3426
|
-
phone:
|
|
3427
|
-
}), Z =
|
|
3428
|
-
() =>
|
|
3439
|
+
...Xo,
|
|
3440
|
+
...u,
|
|
3441
|
+
phone: u?.phone ?? ""
|
|
3442
|
+
}), Z = k ? v?.config.isGlobal ?? !0 : !0, z = k ? v.formValues : I, ye = k ? v.setFormValues : ee, [ne, s] = M(
|
|
3443
|
+
() => Qo(z.phoneCountryCode, Z)
|
|
3429
3444
|
), S = Y(
|
|
3430
3445
|
!!(z.phoneCountryCode && et.includes(z.phoneCountryCode))
|
|
3431
3446
|
), K = Y(!1), ue = be((j) => {
|
|
3432
3447
|
K.current = !0, s(j);
|
|
3433
|
-
}, []),
|
|
3448
|
+
}, []), ve = Y(!0);
|
|
3434
3449
|
J(() => {
|
|
3435
|
-
if (
|
|
3436
|
-
|
|
3450
|
+
if (ve.current) {
|
|
3451
|
+
ve.current = !1;
|
|
3437
3452
|
return;
|
|
3438
3453
|
}
|
|
3439
3454
|
S.current || K.current || s(Z ? "+1" : "+91");
|
|
3440
3455
|
}, [Z]), J(() => {
|
|
3441
|
-
if (!
|
|
3456
|
+
if (!k || K.current) return;
|
|
3442
3457
|
const j = z.phoneCountryCode;
|
|
3443
3458
|
j && et.includes(j) && j !== ne && (S.current = !0, s(j));
|
|
3444
|
-
}, [
|
|
3445
|
-
const je =
|
|
3459
|
+
}, [k, z.phoneCountryCode]);
|
|
3460
|
+
const je = k ? v.goToPage : m, he = k ? v.onProceed : _, te = k ? v.onProceedGuidance : h, pe = k ? v.config.proceedHref : P, me = k ? v.config.originalPriceLabel : w, ce = k ? v.config.discountedPriceLabel : W, oe = k ? v.config.showLanguageSelector ?? !0 : l, ke = (k ? v?.config?.analytics : O) ?? O;
|
|
3446
3461
|
J(() => {
|
|
3447
3462
|
if (!U) return;
|
|
3448
3463
|
const j = (Be) => {
|
|
@@ -3454,7 +3469,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3454
3469
|
xe.current = j, ie(!0);
|
|
3455
3470
|
}, []), we = Y(!1);
|
|
3456
3471
|
J(() => {
|
|
3457
|
-
if (we.current || !
|
|
3472
|
+
if (we.current || !k || !v?.config.autoOpenPlanSheet || v?.config.variant !== "v1")
|
|
3458
3473
|
return;
|
|
3459
3474
|
we.current = !0;
|
|
3460
3475
|
const j = (z.phone ?? "").trim();
|
|
@@ -3462,10 +3477,10 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3462
3477
|
...z,
|
|
3463
3478
|
phone: j && `${ne}-${j}`
|
|
3464
3479
|
});
|
|
3465
|
-
}, [
|
|
3480
|
+
}, [k, v?.config.autoOpenPlanSheet, v?.config.variant, z, ne, fe]);
|
|
3466
3481
|
const Pe = be(() => {
|
|
3467
3482
|
if (!xe.current || !se) return;
|
|
3468
|
-
|
|
3483
|
+
ke?.trackPlanProceedClicked?.({
|
|
3469
3484
|
planId: se.id,
|
|
3470
3485
|
planName: se.title,
|
|
3471
3486
|
price: se.price,
|
|
@@ -3473,14 +3488,14 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3473
3488
|
});
|
|
3474
3489
|
const j = { ...xe.current, _selectedPlan: se };
|
|
3475
3490
|
se.id === jt && te ? te(j) : he?.(j), ie(!1), xe.current = null;
|
|
3476
|
-
}, [se, he, te]), Ie =
|
|
3491
|
+
}, [se, he, te]), Ie = v?.config.imageComponent ?? Ye, Le = oe ? /* @__PURE__ */ e.jsxs("div", { className: Ce.langDropdownWrap, ref: B, children: [
|
|
3477
3492
|
/* @__PURE__ */ e.jsxs(
|
|
3478
3493
|
"button",
|
|
3479
3494
|
{
|
|
3480
3495
|
type: "button",
|
|
3481
3496
|
className: Ce.langTrigger,
|
|
3482
3497
|
onClick: () => {
|
|
3483
|
-
|
|
3498
|
+
ke?.trackLanguageClickedFe?.({ language: E }), b((j) => !j);
|
|
3484
3499
|
},
|
|
3485
3500
|
"aria-expanded": U,
|
|
3486
3501
|
"aria-haspopup": "listbox",
|
|
@@ -3490,7 +3505,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3490
3505
|
/* @__PURE__ */ e.jsx(
|
|
3491
3506
|
Ie,
|
|
3492
3507
|
{
|
|
3493
|
-
src:
|
|
3508
|
+
src: zo,
|
|
3494
3509
|
alt: "",
|
|
3495
3510
|
className: Ce.langIcon,
|
|
3496
3511
|
width: 16,
|
|
@@ -3517,7 +3532,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3517
3532
|
"aria-selected": j === E,
|
|
3518
3533
|
className: Ce.langOption,
|
|
3519
3534
|
onClick: () => {
|
|
3520
|
-
|
|
3535
|
+
ke?.trackLanguageChangedFe?.({ newLanguage: j }), T(j), b(!1);
|
|
3521
3536
|
},
|
|
3522
3537
|
children: gt[j]
|
|
3523
3538
|
},
|
|
@@ -3531,7 +3546,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3531
3546
|
Or,
|
|
3532
3547
|
{
|
|
3533
3548
|
t: D,
|
|
3534
|
-
logoUrl:
|
|
3549
|
+
logoUrl: k ? v.config.logoUrl : void 0,
|
|
3535
3550
|
languageSelector: Le,
|
|
3536
3551
|
className: Ce.kundliHeaderNoBorder
|
|
3537
3552
|
}
|
|
@@ -3547,11 +3562,11 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3547
3562
|
onChange: ye,
|
|
3548
3563
|
googleMapsApiKey: F,
|
|
3549
3564
|
atlasSearchLocalities: A,
|
|
3550
|
-
googleMapsAutocompleteEnabled:
|
|
3565
|
+
googleMapsAutocompleteEnabled: p,
|
|
3551
3566
|
phoneIsdCode: ne,
|
|
3552
3567
|
onPhoneIsdCodeChange: ue,
|
|
3553
|
-
showV1ExtraFields:
|
|
3554
|
-
analytics:
|
|
3568
|
+
showV1ExtraFields: k ? v?.config.variant === "v1" : !1,
|
|
3569
|
+
analytics: ke
|
|
3555
3570
|
}
|
|
3556
3571
|
)
|
|
3557
3572
|
] }),
|
|
@@ -3563,18 +3578,18 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3563
3578
|
phoneIsdCode: ne,
|
|
3564
3579
|
onProceed: he,
|
|
3565
3580
|
onProceedGuidance: te,
|
|
3566
|
-
href:
|
|
3567
|
-
originalPriceLabel:
|
|
3581
|
+
href: pe,
|
|
3582
|
+
originalPriceLabel: me,
|
|
3568
3583
|
discountedPriceLabel: ce,
|
|
3569
|
-
analytics:
|
|
3584
|
+
analytics: ke,
|
|
3570
3585
|
showPlanSheet: fe,
|
|
3571
3586
|
confirmPlan: Pe,
|
|
3572
3587
|
planSheetOpen: Se,
|
|
3573
3588
|
selectedPlan: se
|
|
3574
3589
|
}
|
|
3575
3590
|
),
|
|
3576
|
-
|
|
3577
|
-
|
|
3591
|
+
v?.config.variant === "v1" && /* @__PURE__ */ e.jsx(
|
|
3592
|
+
Vo,
|
|
3578
3593
|
{
|
|
3579
3594
|
isOpen: Se,
|
|
3580
3595
|
onClose: () => ie(!1),
|
|
@@ -3584,11 +3599,11 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3584
3599
|
Pe?.();
|
|
3585
3600
|
},
|
|
3586
3601
|
t: D,
|
|
3587
|
-
analytics:
|
|
3602
|
+
analytics: ke
|
|
3588
3603
|
}
|
|
3589
3604
|
)
|
|
3590
3605
|
] });
|
|
3591
|
-
},
|
|
3606
|
+
}, si = {
|
|
3592
3607
|
banner_clicked_fe: "banner_clicked_fe",
|
|
3593
3608
|
primary_cta_clicked_fe: "primary_cta_clicked_fe",
|
|
3594
3609
|
language_changed_fe: "language_changed_fe",
|
|
@@ -3661,34 +3676,34 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3661
3676
|
kundli_view_sample_image_closed: "kundli_view_sample_image_closed"
|
|
3662
3677
|
};
|
|
3663
3678
|
export {
|
|
3664
|
-
|
|
3679
|
+
Ho as C,
|
|
3665
3680
|
Ye as D,
|
|
3666
3681
|
_a as F,
|
|
3667
|
-
|
|
3668
|
-
|
|
3682
|
+
ti as I,
|
|
3683
|
+
si as K,
|
|
3669
3684
|
gt as L,
|
|
3670
3685
|
jt as P,
|
|
3671
3686
|
xt as S,
|
|
3672
3687
|
wr as U,
|
|
3673
3688
|
Ct as a,
|
|
3674
3689
|
rt as b,
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3690
|
+
ii as c,
|
|
3691
|
+
ni as d,
|
|
3692
|
+
pa as e,
|
|
3693
|
+
ma as f,
|
|
3679
3694
|
da as g,
|
|
3680
3695
|
Ee as h,
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3696
|
+
ri as i,
|
|
3697
|
+
oi as j,
|
|
3698
|
+
qo as k,
|
|
3684
3699
|
e as l,
|
|
3685
3700
|
Or as m,
|
|
3686
3701
|
ot as n,
|
|
3687
3702
|
Dr as o,
|
|
3688
|
-
|
|
3689
|
-
|
|
3703
|
+
Vo as p,
|
|
3704
|
+
ai as r,
|
|
3690
3705
|
ua as s,
|
|
3691
3706
|
wt as t,
|
|
3692
3707
|
ca as u
|
|
3693
3708
|
};
|
|
3694
|
-
//# sourceMappingURL=analytics-
|
|
3709
|
+
//# sourceMappingURL=analytics-Cc0qKUCw.js.map
|