@srimandir/astrology-common 7.4.1 → 7.4.2
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/astrology-common.css +1 -1
- package/dist/components/Consultations/RecommendedRibbon.d.ts +17 -0
- package/dist/components/Consultations/index.d.ts +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +516 -503
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import "./styles.js";
|
|
2
|
-
import { jsxs as i, jsx as e, Fragment as
|
|
3
|
-
import { useMemo as E, useState as
|
|
4
|
-
const
|
|
5
|
-
section:
|
|
6
|
-
heading:
|
|
7
|
-
trustLine:
|
|
8
|
-
star:
|
|
9
|
-
ratingNum:
|
|
10
|
-
trustText:
|
|
11
|
-
cardList:
|
|
12
|
-
card:
|
|
13
|
-
quote:
|
|
14
|
-
author:
|
|
15
|
-
avatar:
|
|
16
|
-
avatarPlaceholder:
|
|
17
|
-
authorInfo:
|
|
18
|
-
authorName:
|
|
19
|
-
stars:
|
|
20
|
-
readMoreWrap:
|
|
2
|
+
import { jsxs as i, jsx as e, Fragment as Re } from "react/jsx-runtime";
|
|
3
|
+
import { useMemo as E, useState as I, useEffect as se, useRef as G, Fragment as Xe, useCallback as le } from "react";
|
|
4
|
+
const Qe = "_section_1fboo_1", et = "_heading_1fboo_5", tt = "_trustLine_1fboo_9", nt = "_star_1fboo_13", at = "_ratingNum_1fboo_17", ot = "_trustText_1fboo_21", st = "_cardList_1fboo_25", rt = "_card_1fboo_25", it = "_quote_1fboo_37", ct = "_author_1fboo_41", lt = "_avatar_1fboo_45", dt = "_avatarPlaceholder_1fboo_49", mt = "_authorInfo_1fboo_54", _t = "_authorName_1fboo_58", ht = "_stars_1fboo_62", pt = "_readMoreWrap_1fboo_66", ut = "_toggleBtn_1fboo_70", gt = "_readMore_1fboo_66", bt = "_arrow_1fboo_89", ft = "_dot_1fboo_93", v = {
|
|
5
|
+
section: Qe,
|
|
6
|
+
heading: et,
|
|
7
|
+
trustLine: tt,
|
|
8
|
+
star: nt,
|
|
9
|
+
ratingNum: at,
|
|
10
|
+
trustText: ot,
|
|
11
|
+
cardList: st,
|
|
12
|
+
card: rt,
|
|
13
|
+
quote: it,
|
|
14
|
+
author: ct,
|
|
15
|
+
avatar: lt,
|
|
16
|
+
avatarPlaceholder: dt,
|
|
17
|
+
authorInfo: mt,
|
|
18
|
+
authorName: _t,
|
|
19
|
+
stars: ht,
|
|
20
|
+
readMoreWrap: pt,
|
|
21
21
|
toggleBtn: ut,
|
|
22
|
-
readMore:
|
|
23
|
-
arrow:
|
|
24
|
-
dot:
|
|
25
|
-
},
|
|
26
|
-
function
|
|
22
|
+
readMore: gt,
|
|
23
|
+
arrow: bt,
|
|
24
|
+
dot: ft
|
|
25
|
+
}, Nt = 3, Me = 15;
|
|
26
|
+
function vt(t) {
|
|
27
27
|
const n = /* @__PURE__ */ new Map();
|
|
28
28
|
for (let l = 1; l <= Me; l += 1) {
|
|
29
|
-
const
|
|
30
|
-
if (!h || h ===
|
|
29
|
+
const p = `feedbackTestimonial${l}`, h = t(p);
|
|
30
|
+
if (!h || h === p) continue;
|
|
31
31
|
const f = `feedbackAuthor${l}`, _ = (() => {
|
|
32
32
|
const w = t(f);
|
|
33
33
|
return w && w !== f ? w : t("guest");
|
|
@@ -49,26 +49,26 @@ function Nt(t) {
|
|
|
49
49
|
let c = 0, d = 0;
|
|
50
50
|
for (; c < a.length || d < s.length; ) {
|
|
51
51
|
if (d < s.length) {
|
|
52
|
-
const l = s[d++],
|
|
53
|
-
|
|
52
|
+
const l = s[d++], p = n.get(l);
|
|
53
|
+
p && r.push(p);
|
|
54
54
|
}
|
|
55
55
|
if (c < a.length) {
|
|
56
|
-
const l = a[c++],
|
|
57
|
-
|
|
56
|
+
const l = a[c++], p = n.get(l);
|
|
57
|
+
p && r.push(p);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
return r;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function Ks({
|
|
63
63
|
t,
|
|
64
64
|
testimonials: n,
|
|
65
|
-
initialVisible: a =
|
|
65
|
+
initialVisible: a = Nt,
|
|
66
66
|
readMoreHref: s,
|
|
67
67
|
onReadMore: r,
|
|
68
68
|
className: c = "",
|
|
69
69
|
headingClassName: d
|
|
70
70
|
}) {
|
|
71
|
-
const l = n ?? E(() =>
|
|
71
|
+
const l = n ?? E(() => vt(t), [t]), [p, h] = I(!1), f = l.length > a, _ = f && !p ? l.slice(0, a) : l, g = t("feedbackTitle"), b = t("feedbackRating"), w = t("feedbackTrust"), O = t("readMoreReviews"), k = t("readLess");
|
|
72
72
|
return /* @__PURE__ */ i(
|
|
73
73
|
"section",
|
|
74
74
|
{
|
|
@@ -89,7 +89,7 @@ function qs({
|
|
|
89
89
|
/* @__PURE__ */ e("span", { className: v.dot, "aria-hidden": !0 }),
|
|
90
90
|
/* @__PURE__ */ e("span", { className: v.trustText, children: w })
|
|
91
91
|
] }),
|
|
92
|
-
/* @__PURE__ */ e("ul", { className: v.cardList, children: _.map((T,
|
|
92
|
+
/* @__PURE__ */ e("ul", { className: v.cardList, children: _.map((T, M) => /* @__PURE__ */ i("li", { className: v.card, children: [
|
|
93
93
|
/* @__PURE__ */ e("p", { className: v.quote, children: T.quote }),
|
|
94
94
|
/* @__PURE__ */ i("div", { className: v.author, children: [
|
|
95
95
|
T.authorAvatarUrl ? /* @__PURE__ */ e(
|
|
@@ -107,16 +107,16 @@ function qs({
|
|
|
107
107
|
/* @__PURE__ */ e("span", { className: v.stars, "aria-hidden": !0, children: "★".repeat(T.rating ?? 5) })
|
|
108
108
|
] })
|
|
109
109
|
] })
|
|
110
|
-
] },
|
|
110
|
+
] }, M)) }),
|
|
111
111
|
f && /* @__PURE__ */ e("div", { className: v.readMoreWrap, children: /* @__PURE__ */ i(
|
|
112
112
|
"button",
|
|
113
113
|
{
|
|
114
114
|
type: "button",
|
|
115
115
|
className: v.toggleBtn,
|
|
116
116
|
onClick: () => h((T) => !T),
|
|
117
|
-
"aria-expanded":
|
|
117
|
+
"aria-expanded": p,
|
|
118
118
|
children: [
|
|
119
|
-
|
|
119
|
+
p ? k : O,
|
|
120
120
|
/* @__PURE__ */ e("span", { className: v.arrow, "aria-hidden": !0, children: "›" })
|
|
121
121
|
]
|
|
122
122
|
}
|
|
@@ -149,20 +149,20 @@ function qs({
|
|
|
149
149
|
}
|
|
150
150
|
);
|
|
151
151
|
}
|
|
152
|
-
const
|
|
153
|
-
section:
|
|
154
|
-
heading:
|
|
155
|
-
accordion:
|
|
156
|
-
item:
|
|
157
|
-
itemOpen:
|
|
152
|
+
const wt = "_section_4dc65_1", yt = "_heading_4dc65_5", kt = "_accordion_4dc65_9", St = "_item_4dc65_13", $t = "_itemOpen_4dc65_17", It = "_question_4dc65_22", Tt = "_chevron_4dc65_30", Lt = "_chevronOpen_4dc65_34", xt = "_answerWrap_4dc65_38", Ct = "_answerOpen_4dc65_42", Dt = "_answer_4dc65_38", B = {
|
|
153
|
+
section: wt,
|
|
154
|
+
heading: yt,
|
|
155
|
+
accordion: kt,
|
|
156
|
+
item: St,
|
|
157
|
+
itemOpen: $t,
|
|
158
158
|
question: It,
|
|
159
|
-
chevron:
|
|
160
|
-
chevronOpen:
|
|
161
|
-
answerWrap:
|
|
162
|
-
answerOpen:
|
|
163
|
-
answer:
|
|
159
|
+
chevron: Tt,
|
|
160
|
+
chevronOpen: Lt,
|
|
161
|
+
answerWrap: xt,
|
|
162
|
+
answerOpen: Ct,
|
|
163
|
+
answer: Dt
|
|
164
164
|
};
|
|
165
|
-
function
|
|
165
|
+
function Us({
|
|
166
166
|
t,
|
|
167
167
|
items: n,
|
|
168
168
|
resolveAnswerKey: a,
|
|
@@ -177,7 +177,7 @@ function Ws({
|
|
|
177
177
|
answer: t(a ? a(g) : g)
|
|
178
178
|
})),
|
|
179
179
|
[t, n, a]
|
|
180
|
-
), [
|
|
180
|
+
), [p, h] = I(s), f = t("faqTitle");
|
|
181
181
|
return /* @__PURE__ */ i(
|
|
182
182
|
"section",
|
|
183
183
|
{
|
|
@@ -193,7 +193,7 @@ function Ws({
|
|
|
193
193
|
}
|
|
194
194
|
),
|
|
195
195
|
/* @__PURE__ */ e("div", { className: B.accordion, role: "list", children: l.map((_, g) => {
|
|
196
|
-
const b =
|
|
196
|
+
const b = p === g;
|
|
197
197
|
return /* @__PURE__ */ i(
|
|
198
198
|
"div",
|
|
199
199
|
{
|
|
@@ -262,18 +262,18 @@ function Ws({
|
|
|
262
262
|
}
|
|
263
263
|
);
|
|
264
264
|
}
|
|
265
|
-
const
|
|
266
|
-
header:
|
|
267
|
-
brand:
|
|
265
|
+
const Bt = "_header_dbx4y_1", Rt = "_brand_dbx4y_7", Mt = "_logo_dbx4y_11", Pt = "_logoImg_dbx4y_15", At = "_logoPlaceholder_dbx4y_21", Et = "_brandText_dbx4y_29", Ot = "_brandName_dbx4y_33", Ft = "_rating_dbx4y_38", qt = "_langSlot_dbx4y_49", A = {
|
|
266
|
+
header: Bt,
|
|
267
|
+
brand: Rt,
|
|
268
268
|
logo: Mt,
|
|
269
|
-
logoImg:
|
|
270
|
-
logoPlaceholder:
|
|
271
|
-
brandText:
|
|
272
|
-
brandName:
|
|
273
|
-
rating:
|
|
274
|
-
langSlot:
|
|
275
|
-
},
|
|
276
|
-
function
|
|
269
|
+
logoImg: Pt,
|
|
270
|
+
logoPlaceholder: At,
|
|
271
|
+
brandText: Et,
|
|
272
|
+
brandName: Ot,
|
|
273
|
+
rating: Ft,
|
|
274
|
+
langSlot: qt
|
|
275
|
+
}, Pe = 120, Ae = 40;
|
|
276
|
+
function Gs({
|
|
277
277
|
t,
|
|
278
278
|
logoUrl: n,
|
|
279
279
|
imageComponent: a,
|
|
@@ -281,7 +281,7 @@ function js({
|
|
|
281
281
|
showLanguageSelector: r = !0,
|
|
282
282
|
className: c = ""
|
|
283
283
|
}) {
|
|
284
|
-
const d = r && s != null, l = t("sriMandir"),
|
|
284
|
+
const d = r && s != null, l = t("sriMandir"), p = t("ratingText");
|
|
285
285
|
return /* @__PURE__ */ i("header", { className: `${A.header} ${c}`, children: [
|
|
286
286
|
/* @__PURE__ */ i("div", { className: A.brand, children: [
|
|
287
287
|
/* @__PURE__ */ e("div", { className: A.logo, children: n ? a ? /* @__PURE__ */ e(
|
|
@@ -290,8 +290,8 @@ function js({
|
|
|
290
290
|
src: n,
|
|
291
291
|
alt: l,
|
|
292
292
|
className: A.logoImg,
|
|
293
|
-
width:
|
|
294
|
-
height:
|
|
293
|
+
width: Pe,
|
|
294
|
+
height: Ae
|
|
295
295
|
}
|
|
296
296
|
) : /* @__PURE__ */ e(
|
|
297
297
|
"img",
|
|
@@ -299,25 +299,25 @@ function js({
|
|
|
299
299
|
src: n,
|
|
300
300
|
alt: l,
|
|
301
301
|
className: A.logoImg,
|
|
302
|
-
width:
|
|
303
|
-
height:
|
|
302
|
+
width: Pe,
|
|
303
|
+
height: Ae,
|
|
304
304
|
decoding: "async"
|
|
305
305
|
}
|
|
306
306
|
) : /* @__PURE__ */ e("div", { className: A.logoPlaceholder, "aria-hidden": !0 }) }),
|
|
307
307
|
/* @__PURE__ */ i("div", { className: A.brandText, children: [
|
|
308
308
|
/* @__PURE__ */ e("span", { className: A.brandName, children: l }),
|
|
309
|
-
|
|
309
|
+
p != null && p !== "" && /* @__PURE__ */ e("span", { className: A.rating, children: p })
|
|
310
310
|
] })
|
|
311
311
|
] }),
|
|
312
312
|
d && /* @__PURE__ */ e("div", { className: A.langSlot, children: s })
|
|
313
313
|
] });
|
|
314
314
|
}
|
|
315
|
-
const
|
|
316
|
-
wrap:
|
|
317
|
-
card:
|
|
318
|
-
cardInner:
|
|
315
|
+
const Wt = "_wrap_1vbpd_1", jt = "_card_1vbpd_5", Ht = "_cardInner_1vbpd_10", ve = {
|
|
316
|
+
wrap: Wt,
|
|
317
|
+
card: jt,
|
|
318
|
+
cardInner: Ht
|
|
319
319
|
};
|
|
320
|
-
function
|
|
320
|
+
function Ys({
|
|
321
321
|
children: t,
|
|
322
322
|
className: n = "",
|
|
323
323
|
"aria-label": a
|
|
@@ -325,21 +325,21 @@ function Hs({
|
|
|
325
325
|
return /* @__PURE__ */ e(
|
|
326
326
|
"section",
|
|
327
327
|
{
|
|
328
|
-
className: `${
|
|
328
|
+
className: `${ve.wrap} ${n}`,
|
|
329
329
|
"aria-label": a,
|
|
330
|
-
children: /* @__PURE__ */ e("div", { className:
|
|
330
|
+
children: /* @__PURE__ */ e("div", { className: ve.card, children: /* @__PURE__ */ e("div", { className: ve.cardInner, children: t }) })
|
|
331
331
|
}
|
|
332
332
|
);
|
|
333
333
|
}
|
|
334
|
-
const
|
|
335
|
-
header:
|
|
336
|
-
left:
|
|
337
|
-
backBtn:
|
|
338
|
-
titleWrap:
|
|
339
|
-
title:
|
|
340
|
-
subtitle:
|
|
341
|
-
backIcon:
|
|
342
|
-
},
|
|
334
|
+
const zt = "_header_a05ni_1", Kt = "_left_a05ni_7", Ut = "_backBtn_a05ni_11", Gt = "_titleWrap_a05ni_21", Yt = "_title_a05ni_21", Vt = "_subtitle_a05ni_31", Jt = "_backIcon_a05ni_37", U = {
|
|
335
|
+
header: zt,
|
|
336
|
+
left: Kt,
|
|
337
|
+
backBtn: Ut,
|
|
338
|
+
titleWrap: Gt,
|
|
339
|
+
title: Yt,
|
|
340
|
+
subtitle: Vt,
|
|
341
|
+
backIcon: Jt
|
|
342
|
+
}, Zt = () => /* @__PURE__ */ e(
|
|
343
343
|
"svg",
|
|
344
344
|
{
|
|
345
345
|
className: U.backIcon,
|
|
@@ -359,7 +359,7 @@ const Ht = "_header_a05ni_1", zt = "_left_a05ni_7", Kt = "_backBtn_a05ni_11", Ut
|
|
|
359
359
|
)
|
|
360
360
|
}
|
|
361
361
|
);
|
|
362
|
-
function
|
|
362
|
+
function Vs({
|
|
363
363
|
title: t,
|
|
364
364
|
subtitle: n,
|
|
365
365
|
onBack: a,
|
|
@@ -374,7 +374,7 @@ function zs({
|
|
|
374
374
|
className: U.backBtn,
|
|
375
375
|
onClick: a,
|
|
376
376
|
"aria-label": s,
|
|
377
|
-
children: /* @__PURE__ */ e(
|
|
377
|
+
children: /* @__PURE__ */ e(Zt, {})
|
|
378
378
|
}
|
|
379
379
|
),
|
|
380
380
|
/* @__PURE__ */ i("div", { className: U.titleWrap, children: [
|
|
@@ -383,24 +383,24 @@ function zs({
|
|
|
383
383
|
] })
|
|
384
384
|
] }) });
|
|
385
385
|
}
|
|
386
|
-
const
|
|
387
|
-
banner:
|
|
388
|
-
icon:
|
|
389
|
-
text:
|
|
390
|
-
},
|
|
391
|
-
function
|
|
386
|
+
const Xt = "_banner_1jco0_1", Qt = "_icon_1jco0_12", en = "_text_1jco0_16", we = {
|
|
387
|
+
banner: Xt,
|
|
388
|
+
icon: Qt,
|
|
389
|
+
text: en
|
|
390
|
+
}, tn = "https://srm-cdn.a4b.io/yoda/1770707793537.svg";
|
|
391
|
+
function Js({
|
|
392
392
|
text: t,
|
|
393
|
-
iconUrl: n =
|
|
393
|
+
iconUrl: n = tn,
|
|
394
394
|
className: a = ""
|
|
395
395
|
}) {
|
|
396
|
-
return /* @__PURE__ */ e("div", { className: `${
|
|
396
|
+
return /* @__PURE__ */ e("div", { className: `${we.banner} ${a}`, role: "status", children: /* @__PURE__ */ i("span", { className: we.text, children: [
|
|
397
397
|
" ",
|
|
398
398
|
/* @__PURE__ */ e(
|
|
399
399
|
"img",
|
|
400
400
|
{
|
|
401
401
|
src: n,
|
|
402
402
|
alt: "",
|
|
403
|
-
className:
|
|
403
|
+
className: we.icon,
|
|
404
404
|
width: 18,
|
|
405
405
|
height: 18,
|
|
406
406
|
"aria-hidden": !0
|
|
@@ -410,31 +410,31 @@ function Ks({
|
|
|
410
410
|
t
|
|
411
411
|
] }) });
|
|
412
412
|
}
|
|
413
|
-
const
|
|
414
|
-
field:
|
|
415
|
-
labelRow:
|
|
416
|
-
label:
|
|
417
|
-
req:
|
|
418
|
-
help:
|
|
419
|
-
infoBtn:
|
|
420
|
-
infoImg:
|
|
421
|
-
infoWrap:
|
|
422
|
-
tooltip:
|
|
423
|
-
tooltipArrow:
|
|
424
|
-
inputWrap:
|
|
425
|
-
},
|
|
426
|
-
function
|
|
413
|
+
const nn = "_field_eqt7q_1", an = "_labelRow_eqt7q_5", on = "_label_eqt7q_5", sn = "_req_eqt7q_14", rn = "_help_eqt7q_18", cn = "_infoBtn_eqt7q_22", ln = "_infoImg_eqt7q_30", dn = "_infoWrap_eqt7q_34", mn = "_tooltip_eqt7q_38", _n = "_tooltipArrow_eqt7q_45", hn = "_inputWrap_eqt7q_50", R = {
|
|
414
|
+
field: nn,
|
|
415
|
+
labelRow: an,
|
|
416
|
+
label: on,
|
|
417
|
+
req: sn,
|
|
418
|
+
help: rn,
|
|
419
|
+
infoBtn: cn,
|
|
420
|
+
infoImg: ln,
|
|
421
|
+
infoWrap: dn,
|
|
422
|
+
tooltip: mn,
|
|
423
|
+
tooltipArrow: _n,
|
|
424
|
+
inputWrap: hn
|
|
425
|
+
}, pn = "https://srm-cdn.a4b.io/yoda/1770372066357.svg";
|
|
426
|
+
function Zs({
|
|
427
427
|
label: t,
|
|
428
428
|
id: n,
|
|
429
429
|
required: a = !1,
|
|
430
430
|
help: s,
|
|
431
431
|
infoTooltip: r,
|
|
432
432
|
infoAriaLabel: c = "Info",
|
|
433
|
-
infoIconUrl: d =
|
|
433
|
+
infoIconUrl: d = pn,
|
|
434
434
|
children: l,
|
|
435
|
-
className:
|
|
435
|
+
className: p = ""
|
|
436
436
|
}) {
|
|
437
|
-
const [h, f] =
|
|
437
|
+
const [h, f] = I(!1);
|
|
438
438
|
return se(() => {
|
|
439
439
|
if (!r) return;
|
|
440
440
|
const _ = (b) => {
|
|
@@ -445,25 +445,25 @@ function Us({
|
|
|
445
445
|
return document.addEventListener("mousedown", _), document.addEventListener("keydown", g), () => {
|
|
446
446
|
document.removeEventListener("mousedown", _), document.removeEventListener("keydown", g);
|
|
447
447
|
};
|
|
448
|
-
}, [r]), /* @__PURE__ */ i("div", { className: `${
|
|
449
|
-
/* @__PURE__ */ i("div", { className:
|
|
450
|
-
/* @__PURE__ */ i("label", { className:
|
|
448
|
+
}, [r]), /* @__PURE__ */ i("div", { className: `${R.field} ${p}`, children: [
|
|
449
|
+
/* @__PURE__ */ i("div", { className: R.labelRow, children: [
|
|
450
|
+
/* @__PURE__ */ i("label", { className: R.label, htmlFor: n, children: [
|
|
451
451
|
t,
|
|
452
|
-
a && /* @__PURE__ */ e("span", { className:
|
|
452
|
+
a && /* @__PURE__ */ e("span", { className: R.req, children: "*" })
|
|
453
453
|
] }),
|
|
454
|
-
r != null && r !== "" && /* @__PURE__ */ i("div", { className:
|
|
454
|
+
r != null && r !== "" && /* @__PURE__ */ i("div", { className: R.infoWrap, "data-info-tooltip": !0, children: [
|
|
455
455
|
/* @__PURE__ */ e(
|
|
456
456
|
"button",
|
|
457
457
|
{
|
|
458
458
|
type: "button",
|
|
459
|
-
className:
|
|
459
|
+
className: R.infoBtn,
|
|
460
460
|
"aria-label": c,
|
|
461
461
|
"aria-expanded": h,
|
|
462
462
|
onClick: () => f((_) => !_),
|
|
463
463
|
children: /* @__PURE__ */ e(
|
|
464
464
|
"img",
|
|
465
465
|
{
|
|
466
|
-
className:
|
|
466
|
+
className: R.infoImg,
|
|
467
467
|
src: d,
|
|
468
468
|
alt: "",
|
|
469
469
|
"aria-hidden": !0
|
|
@@ -471,24 +471,24 @@ function Us({
|
|
|
471
471
|
)
|
|
472
472
|
}
|
|
473
473
|
),
|
|
474
|
-
h && /* @__PURE__ */ i("div", { className:
|
|
474
|
+
h && /* @__PURE__ */ i("div", { className: R.tooltip, role: "tooltip", children: [
|
|
475
475
|
r,
|
|
476
|
-
/* @__PURE__ */ e("span", { className:
|
|
476
|
+
/* @__PURE__ */ e("span", { className: R.tooltipArrow, "aria-hidden": !0 })
|
|
477
477
|
] })
|
|
478
478
|
] })
|
|
479
479
|
] }),
|
|
480
|
-
s != null && s !== "" && /* @__PURE__ */ e("div", { className:
|
|
481
|
-
/* @__PURE__ */ e("div", { className:
|
|
480
|
+
s != null && s !== "" && /* @__PURE__ */ e("div", { className: R.help, children: s }),
|
|
481
|
+
/* @__PURE__ */ e("div", { className: R.inputWrap, children: l })
|
|
482
482
|
] });
|
|
483
483
|
}
|
|
484
|
-
const un = "_wrap_1uy4o_1",
|
|
484
|
+
const un = "_wrap_1uy4o_1", gn = "_input_1uy4o_5", bn = "_iconBtn_1uy4o_21", fn = "_iconBtnInteractive_1uy4o_25", Nn = "_iconImg_1uy4o_39", Z = {
|
|
485
485
|
wrap: un,
|
|
486
|
-
input:
|
|
487
|
-
iconBtn:
|
|
488
|
-
iconBtnInteractive:
|
|
489
|
-
iconImg:
|
|
486
|
+
input: gn,
|
|
487
|
+
iconBtn: bn,
|
|
488
|
+
iconBtnInteractive: fn,
|
|
489
|
+
iconImg: Nn
|
|
490
490
|
};
|
|
491
|
-
function
|
|
491
|
+
function Xs({
|
|
492
492
|
id: t,
|
|
493
493
|
iconUrl: n,
|
|
494
494
|
iconAlt: a = "",
|
|
@@ -530,13 +530,13 @@ function Gs({
|
|
|
530
530
|
)
|
|
531
531
|
] });
|
|
532
532
|
}
|
|
533
|
-
const
|
|
534
|
-
wrap:
|
|
535
|
-
input:
|
|
536
|
-
iconBtn:
|
|
537
|
-
iconImg:
|
|
538
|
-
},
|
|
539
|
-
function
|
|
533
|
+
const vn = "_wrap_t646o_1", wn = "_input_t646o_5", yn = "_iconBtn_t646o_28", kn = "_iconImg_t646o_42", de = {
|
|
534
|
+
wrap: vn,
|
|
535
|
+
input: wn,
|
|
536
|
+
iconBtn: yn,
|
|
537
|
+
iconImg: kn
|
|
538
|
+
}, Sn = "https://srm-cdn.a4b.io/yoda/1770372045894.svg";
|
|
539
|
+
function Qs({
|
|
540
540
|
id: t,
|
|
541
541
|
value: n,
|
|
542
542
|
onChange: a,
|
|
@@ -547,7 +547,7 @@ function Ys({
|
|
|
547
547
|
const d = G(null), l = E(() => {
|
|
548
548
|
const h = /* @__PURE__ */ new Date(), f = (_) => String(_).padStart(2, "0");
|
|
549
549
|
return `${h.getFullYear()}-${f(h.getMonth() + 1)}-${f(h.getDate())}`;
|
|
550
|
-
}, []),
|
|
550
|
+
}, []), p = () => {
|
|
551
551
|
if (s) {
|
|
552
552
|
s();
|
|
553
553
|
return;
|
|
@@ -577,13 +577,13 @@ function Ys({
|
|
|
577
577
|
"aria-label": "Open date picker",
|
|
578
578
|
onMouseDown: (h) => h.preventDefault(),
|
|
579
579
|
onClick: (h) => {
|
|
580
|
-
h.preventDefault(),
|
|
580
|
+
h.preventDefault(), p();
|
|
581
581
|
},
|
|
582
582
|
children: /* @__PURE__ */ e(
|
|
583
583
|
"img",
|
|
584
584
|
{
|
|
585
585
|
className: de.iconImg,
|
|
586
|
-
src:
|
|
586
|
+
src: Sn,
|
|
587
587
|
alt: "",
|
|
588
588
|
"aria-hidden": !0,
|
|
589
589
|
width: 22,
|
|
@@ -594,13 +594,13 @@ function Ys({
|
|
|
594
594
|
)
|
|
595
595
|
] });
|
|
596
596
|
}
|
|
597
|
-
const
|
|
598
|
-
wrap:
|
|
597
|
+
const $n = "_wrap_1jdg7_1", In = "_input_1jdg7_5", Tn = "_iconBtn_1jdg7_34", Ln = "_iconImg_1jdg7_48", me = {
|
|
598
|
+
wrap: $n,
|
|
599
599
|
input: In,
|
|
600
|
-
iconBtn:
|
|
601
|
-
iconImg:
|
|
602
|
-
},
|
|
603
|
-
function
|
|
600
|
+
iconBtn: Tn,
|
|
601
|
+
iconImg: Ln
|
|
602
|
+
}, xn = "https://srm-cdn.a4b.io/yoda/1770372014782.svg";
|
|
603
|
+
function er({
|
|
604
604
|
id: t,
|
|
605
605
|
value: n,
|
|
606
606
|
onChange: a,
|
|
@@ -637,7 +637,7 @@ function Vs({
|
|
|
637
637
|
"img",
|
|
638
638
|
{
|
|
639
639
|
className: me.iconImg,
|
|
640
|
-
src:
|
|
640
|
+
src: xn,
|
|
641
641
|
alt: "",
|
|
642
642
|
"aria-hidden": !0,
|
|
643
643
|
width: 22,
|
|
@@ -648,13 +648,13 @@ function Vs({
|
|
|
648
648
|
)
|
|
649
649
|
] });
|
|
650
650
|
}
|
|
651
|
-
const
|
|
652
|
-
wrap:
|
|
653
|
-
input:
|
|
654
|
-
iconBtn:
|
|
655
|
-
iconImg:
|
|
651
|
+
const Cn = "_wrap_1bb6o_1", Dn = "_input_1bb6o_5", Bn = "_iconBtn_1bb6o_21", Rn = "_iconImg_1bb6o_25", _e = {
|
|
652
|
+
wrap: Cn,
|
|
653
|
+
input: Dn,
|
|
654
|
+
iconBtn: Bn,
|
|
655
|
+
iconImg: Rn
|
|
656
656
|
}, Mn = "https://srm-cdn.a4b.io/yoda/1770372031092.svg";
|
|
657
|
-
function
|
|
657
|
+
function tr({
|
|
658
658
|
id: t,
|
|
659
659
|
iconUrl: n = Mn,
|
|
660
660
|
className: a = "",
|
|
@@ -674,12 +674,12 @@ function Js({
|
|
|
674
674
|
) })
|
|
675
675
|
] });
|
|
676
676
|
}
|
|
677
|
-
const
|
|
678
|
-
segmented:
|
|
679
|
-
segmentedOption:
|
|
680
|
-
active:
|
|
677
|
+
const Pn = "_segmented_3sa9v_1", An = "_segmentedOption_3sa9v_6", En = "_active_3sa9v_15", ye = {
|
|
678
|
+
segmented: Pn,
|
|
679
|
+
segmentedOption: An,
|
|
680
|
+
active: En
|
|
681
681
|
};
|
|
682
|
-
function
|
|
682
|
+
function nr({
|
|
683
683
|
id: t,
|
|
684
684
|
options: n,
|
|
685
685
|
value: a,
|
|
@@ -689,7 +689,7 @@ function Zs({
|
|
|
689
689
|
return /* @__PURE__ */ e(
|
|
690
690
|
"div",
|
|
691
691
|
{
|
|
692
|
-
className: `${
|
|
692
|
+
className: `${ye.segmented} ${r}`,
|
|
693
693
|
role: "group",
|
|
694
694
|
"aria-labelledby": `${t}-label`,
|
|
695
695
|
children: n.map((c) => /* @__PURE__ */ e(
|
|
@@ -697,7 +697,7 @@ function Zs({
|
|
|
697
697
|
{
|
|
698
698
|
type: "button",
|
|
699
699
|
id: c.value === a ? t : void 0,
|
|
700
|
-
className: `${
|
|
700
|
+
className: `${ye.segmentedOption} ${c.value === a ? ye.active : ""}`,
|
|
701
701
|
onClick: () => s(c.value),
|
|
702
702
|
children: c.label
|
|
703
703
|
},
|
|
@@ -706,12 +706,12 @@ function Zs({
|
|
|
706
706
|
}
|
|
707
707
|
);
|
|
708
708
|
}
|
|
709
|
-
const
|
|
710
|
-
pillsWrap:
|
|
711
|
-
pill:
|
|
712
|
-
selected:
|
|
709
|
+
const On = "_pillsWrap_z1kui_1", Fn = "_pill_z1kui_1", qn = "_selected_z1kui_17", ke = {
|
|
710
|
+
pillsWrap: On,
|
|
711
|
+
pill: Fn,
|
|
712
|
+
selected: qn
|
|
713
713
|
};
|
|
714
|
-
function
|
|
714
|
+
function ar({
|
|
715
715
|
id: t,
|
|
716
716
|
options: n,
|
|
717
717
|
selected: a,
|
|
@@ -724,14 +724,14 @@ function Xs({
|
|
|
724
724
|
return /* @__PURE__ */ e(
|
|
725
725
|
"div",
|
|
726
726
|
{
|
|
727
|
-
className: `${
|
|
727
|
+
className: `${ke.pillsWrap} ${r}`,
|
|
728
728
|
role: "group",
|
|
729
729
|
"aria-labelledby": `${t}-label`,
|
|
730
730
|
children: n.map((d) => /* @__PURE__ */ e(
|
|
731
731
|
"button",
|
|
732
732
|
{
|
|
733
733
|
type: "button",
|
|
734
|
-
className: `${
|
|
734
|
+
className: `${ke.pill} ${a.includes(d.key) ? ke.selected : ""}`,
|
|
735
735
|
onClick: () => c(d.key),
|
|
736
736
|
children: d.label
|
|
737
737
|
},
|
|
@@ -740,14 +740,14 @@ function Xs({
|
|
|
740
740
|
}
|
|
741
741
|
);
|
|
742
742
|
}
|
|
743
|
-
const
|
|
744
|
-
wrapper:
|
|
745
|
-
checkboxRow:
|
|
746
|
-
checkbox:
|
|
747
|
-
checkboxText:
|
|
748
|
-
checkboxHelp:
|
|
743
|
+
const Wn = "_wrapper_i6a5b_2", jn = "_checkboxRow_i6a5b_6", Hn = "_checkbox_i6a5b_6", zn = "_checkboxText_i6a5b_31", Kn = "_checkboxHelp_i6a5b_37", ne = {
|
|
744
|
+
wrapper: Wn,
|
|
745
|
+
checkboxRow: jn,
|
|
746
|
+
checkbox: Hn,
|
|
747
|
+
checkboxText: zn,
|
|
748
|
+
checkboxHelp: Kn
|
|
749
749
|
};
|
|
750
|
-
function
|
|
750
|
+
function or({
|
|
751
751
|
id: t,
|
|
752
752
|
checked: n,
|
|
753
753
|
onChange: a,
|
|
@@ -772,30 +772,30 @@ function Qs({
|
|
|
772
772
|
r != null && r !== "" && /* @__PURE__ */ e("p", { className: ne.checkboxHelp, children: r })
|
|
773
773
|
] });
|
|
774
774
|
}
|
|
775
|
-
const
|
|
776
|
-
footerNote:
|
|
775
|
+
const Un = "_footerNote_laev3_1", Gn = {
|
|
776
|
+
footerNote: Un
|
|
777
777
|
};
|
|
778
|
-
function
|
|
778
|
+
function sr({
|
|
779
779
|
children: t,
|
|
780
780
|
className: n = ""
|
|
781
781
|
}) {
|
|
782
|
-
return /* @__PURE__ */ e("p", { className: `${
|
|
782
|
+
return /* @__PURE__ */ e("p", { className: `${Gn.footerNote} ${n}`, children: t });
|
|
783
783
|
}
|
|
784
|
-
const
|
|
785
|
-
footer:
|
|
786
|
-
inner:
|
|
787
|
-
badges:
|
|
788
|
-
marqueeContent:
|
|
789
|
-
badge:
|
|
790
|
-
badgeIcon:
|
|
791
|
-
ctaWrap:
|
|
792
|
-
ctaStruck:
|
|
793
|
-
ctaButton:
|
|
794
|
-
offerRow:
|
|
795
|
-
pill:
|
|
796
|
-
ctaStatic:
|
|
784
|
+
const Yn = "_footer_86zxt_1", Vn = "_inner_86zxt_8", Jn = "_badges_86zxt_12", Zn = "_marqueeContent_86zxt_20", Xn = "_badge_86zxt_12", Qn = "_badgeIcon_86zxt_35", ea = "_ctaWrap_86zxt_39", ta = "_ctaStruck_86zxt_43", na = "_ctaButton_86zxt_49", aa = "_offerRow_86zxt_69", oa = "_pill_86zxt_76", sa = "_ctaStatic_86zxt_85", Q = {
|
|
785
|
+
footer: Yn,
|
|
786
|
+
inner: Vn,
|
|
787
|
+
badges: Jn,
|
|
788
|
+
marqueeContent: Zn,
|
|
789
|
+
badge: Xn,
|
|
790
|
+
badgeIcon: Qn,
|
|
791
|
+
ctaWrap: ea,
|
|
792
|
+
ctaStruck: ta,
|
|
793
|
+
ctaButton: na,
|
|
794
|
+
offerRow: aa,
|
|
795
|
+
pill: oa,
|
|
796
|
+
ctaStatic: sa
|
|
797
797
|
};
|
|
798
|
-
function
|
|
798
|
+
function rr({
|
|
799
799
|
marquee: t,
|
|
800
800
|
children: n,
|
|
801
801
|
className: a = ""
|
|
@@ -805,7 +805,7 @@ function tr({
|
|
|
805
805
|
/* @__PURE__ */ e("div", { className: Q.ctaWrap, children: n })
|
|
806
806
|
] }) });
|
|
807
807
|
}
|
|
808
|
-
function
|
|
808
|
+
function ir({
|
|
809
809
|
children: t,
|
|
810
810
|
href: n,
|
|
811
811
|
disabled: a = !1,
|
|
@@ -814,8 +814,8 @@ function nr({
|
|
|
814
814
|
className: c = "",
|
|
815
815
|
"aria-label": d
|
|
816
816
|
}) {
|
|
817
|
-
const l = `${Q.ctaButton} ${c}`.trim(),
|
|
818
|
-
return r ? /* @__PURE__ */ e("div", { className:
|
|
817
|
+
const l = `${Q.ctaButton} ${c}`.trim(), p = `${Q.ctaStatic} ${c}`.trim(), h = d != null ? { "aria-label": d } : {};
|
|
818
|
+
return r ? /* @__PURE__ */ e("div", { className: p, role: "presentation", children: t }) : n != null ? /* @__PURE__ */ e(
|
|
819
819
|
"a",
|
|
820
820
|
{
|
|
821
821
|
href: n,
|
|
@@ -839,30 +839,30 @@ function nr({
|
|
|
839
839
|
}
|
|
840
840
|
);
|
|
841
841
|
}
|
|
842
|
-
const
|
|
843
|
-
wrapper:
|
|
844
|
-
track:
|
|
842
|
+
const ra = "_wrapper_wxjzs_1", ia = "_track_wxjzs_7", Ee = {
|
|
843
|
+
wrapper: ra,
|
|
844
|
+
track: ia
|
|
845
845
|
};
|
|
846
|
-
function
|
|
847
|
-
return /* @__PURE__ */ e("div", { className: `${
|
|
846
|
+
function ca({ children: t, className: n = "" }) {
|
|
847
|
+
return /* @__PURE__ */ e("div", { className: `${Ee.wrapper} ${n}`, "aria-hidden": !0, children: /* @__PURE__ */ i("div", { className: Ee.track, children: [
|
|
848
848
|
t,
|
|
849
849
|
t
|
|
850
850
|
] }) });
|
|
851
851
|
}
|
|
852
|
-
const
|
|
853
|
-
strip:
|
|
852
|
+
const la = "_strip_2838b_1", da = {
|
|
853
|
+
strip: la
|
|
854
854
|
};
|
|
855
|
-
function
|
|
856
|
-
return /* @__PURE__ */ e("div", { className: `${
|
|
855
|
+
function cr({ children: t, className: n = "" }) {
|
|
856
|
+
return /* @__PURE__ */ e("div", { className: `${da.strip} ${n}`, role: "region", "aria-label": "Trust badges", children: /* @__PURE__ */ e(ca, { children: t }) });
|
|
857
857
|
}
|
|
858
|
-
const
|
|
859
|
-
section:
|
|
860
|
-
heading:
|
|
861
|
-
content:
|
|
862
|
-
line:
|
|
858
|
+
const ma = "_section_8y3x9_1", _a = "_heading_8y3x9_6", ha = "_content_8y3x9_11", pa = "_line_8y3x9_16", ua = "_brandName_8y3x9_20", X = {
|
|
859
|
+
section: ma,
|
|
860
|
+
heading: _a,
|
|
861
|
+
content: ha,
|
|
862
|
+
line: pa,
|
|
863
863
|
brandName: ua
|
|
864
864
|
};
|
|
865
|
-
function
|
|
865
|
+
function lr({
|
|
866
866
|
title: t,
|
|
867
867
|
brandName: n,
|
|
868
868
|
whatsAppLine: a,
|
|
@@ -878,12 +878,12 @@ function or({
|
|
|
878
878
|
] })
|
|
879
879
|
] });
|
|
880
880
|
}
|
|
881
|
-
const
|
|
881
|
+
const ga = (t) => {
|
|
882
882
|
const n = t.match(/T(\d{2}):(\d{2})/);
|
|
883
883
|
if (!n) return t;
|
|
884
884
|
const a = Number(n[1]), s = n[2], r = a >= 12 ? "PM" : "AM";
|
|
885
885
|
return `${a % 12 || 12}:${s} ${r}`;
|
|
886
|
-
},
|
|
886
|
+
}, ba = (t, n = /* @__PURE__ */ new Date()) => {
|
|
887
887
|
const a = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], s = /* @__PURE__ */ new Date(`${t}T00:00:00`);
|
|
888
888
|
if (Number.isNaN(s.getTime()))
|
|
889
889
|
return { id: t, dayLabel: t, dayNum: "" };
|
|
@@ -891,11 +891,11 @@ const pa = (t) => {
|
|
|
891
891
|
(r(s) - r(n)) / (1e3 * 60 * 60 * 24)
|
|
892
892
|
), d = c === 0 ? "Today" : c === 1 ? "Tomorrow" : a[s.getDay()];
|
|
893
893
|
return { id: t, dayLabel: d, dayNum: String(s.getDate()) };
|
|
894
|
-
},
|
|
894
|
+
}, fa = [
|
|
895
895
|
"morning",
|
|
896
896
|
"afternoon",
|
|
897
897
|
"evening"
|
|
898
|
-
],
|
|
898
|
+
], Na = [
|
|
899
899
|
{ code: "en", labelKey: "formReportLanguageEnglish", label: "English" },
|
|
900
900
|
{ code: "hi", labelKey: "formReportLanguageHindi", label: "Hindi" },
|
|
901
901
|
{ code: "te", labelKey: "formReportLanguageTelugu", label: "Telugu" },
|
|
@@ -903,7 +903,7 @@ const pa = (t) => {
|
|
|
903
903
|
{ code: "gu", labelKey: "formReportLanguageGujarati", label: "Gujarati" },
|
|
904
904
|
{ code: "mr", labelKey: "formReportLanguageMarathi", label: "Marathi" },
|
|
905
905
|
{ code: "ta", labelKey: "formReportLanguageTamil", label: "Tamil" }
|
|
906
|
-
],
|
|
906
|
+
], va = () => /* @__PURE__ */ e("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ e(
|
|
907
907
|
"path",
|
|
908
908
|
{
|
|
909
909
|
d: "M3.5 8.5l2.5 2.5 6-6",
|
|
@@ -912,7 +912,7 @@ const pa = (t) => {
|
|
|
912
912
|
strokeLinecap: "round",
|
|
913
913
|
strokeLinejoin: "round"
|
|
914
914
|
}
|
|
915
|
-
) }),
|
|
915
|
+
) }), wa = () => /* @__PURE__ */ e(
|
|
916
916
|
"svg",
|
|
917
917
|
{
|
|
918
918
|
width: "14",
|
|
@@ -926,7 +926,7 @@ const pa = (t) => {
|
|
|
926
926
|
"aria-hidden": !0,
|
|
927
927
|
children: /* @__PURE__ */ e("path", { d: "M6 9l6 6 6-6" })
|
|
928
928
|
}
|
|
929
|
-
),
|
|
929
|
+
), ya = () => /* @__PURE__ */ e(
|
|
930
930
|
"img",
|
|
931
931
|
{
|
|
932
932
|
src: "https://srm-cdn.a4b.io/yoda/1785316603029.svg",
|
|
@@ -935,7 +935,7 @@ const pa = (t) => {
|
|
|
935
935
|
alt: "",
|
|
936
936
|
"aria-hidden": !0
|
|
937
937
|
}
|
|
938
|
-
),
|
|
938
|
+
), ka = () => /* @__PURE__ */ e(
|
|
939
939
|
"img",
|
|
940
940
|
{
|
|
941
941
|
src: "https://srm-cdn.a4b.io/yoda/1785316621747.svg",
|
|
@@ -944,7 +944,7 @@ const pa = (t) => {
|
|
|
944
944
|
alt: "",
|
|
945
945
|
"aria-hidden": !0
|
|
946
946
|
}
|
|
947
|
-
),
|
|
947
|
+
), Sa = () => /* @__PURE__ */ e(
|
|
948
948
|
"img",
|
|
949
949
|
{
|
|
950
950
|
src: "https://srm-cdn.a4b.io/yoda/1785316635953.svg",
|
|
@@ -953,20 +953,20 @@ const pa = (t) => {
|
|
|
953
953
|
alt: "",
|
|
954
954
|
"aria-hidden": !0
|
|
955
955
|
}
|
|
956
|
-
),
|
|
956
|
+
), $a = () => /* @__PURE__ */ i("svg", { width: "40", height: "40", viewBox: "0 0 24 24", fill: "none", "aria-hidden": !0, children: [
|
|
957
957
|
/* @__PURE__ */ e("rect", { x: "3", y: "4.5", width: "18", height: "16", rx: "3", stroke: "#D1D5DB", strokeWidth: "1.6" }),
|
|
958
958
|
/* @__PURE__ */ e("path", { d: "M3 9.5h18", stroke: "#D1D5DB", strokeWidth: "1.6" }),
|
|
959
959
|
/* @__PURE__ */ e("path", { d: "M8 2.5v4M16 2.5v4", stroke: "#D1D5DB", strokeWidth: "1.6", strokeLinecap: "round" }),
|
|
960
960
|
/* @__PURE__ */ e("path", { d: "M7.5 20.5L17 6", stroke: "#9CA3AF", strokeWidth: "1.6", strokeLinecap: "round" })
|
|
961
|
-
] }), Ia = "_section_1ltqn_2",
|
|
961
|
+
] }), Ia = "_section_1ltqn_2", Ta = "_headerRow_1ltqn_10", La = "_title_1ltqn_18", xa = "_changeBtn_1ltqn_24", Ca = "_numberRow_1ltqn_35", Da = "_countryCode_1ltqn_44", Ba = "_number_1ltqn_35", Ra = "_helper_1ltqn_59", H = {
|
|
962
962
|
section: Ia,
|
|
963
|
-
headerRow:
|
|
964
|
-
title:
|
|
965
|
-
changeBtn:
|
|
966
|
-
numberRow:
|
|
967
|
-
countryCode:
|
|
968
|
-
number:
|
|
969
|
-
helper:
|
|
963
|
+
headerRow: Ta,
|
|
964
|
+
title: La,
|
|
965
|
+
changeBtn: xa,
|
|
966
|
+
numberRow: Ca,
|
|
967
|
+
countryCode: Da,
|
|
968
|
+
number: Ba,
|
|
969
|
+
helper: Ra
|
|
970
970
|
}, Ma = ({
|
|
971
971
|
title: t,
|
|
972
972
|
countryCode: n = "+91",
|
|
@@ -985,20 +985,20 @@ const pa = (t) => {
|
|
|
985
985
|
/* @__PURE__ */ e("span", { className: H.number, children: a })
|
|
986
986
|
] }),
|
|
987
987
|
/* @__PURE__ */ e("p", { className: H.helper, children: s ?? c?.("planPhoneNumberHelper") ?? "The astrologer will call you on this number at your booked slot." })
|
|
988
|
-
] }),
|
|
989
|
-
section:
|
|
990
|
-
title:
|
|
991
|
-
profileRow:
|
|
992
|
-
profileCard:
|
|
993
|
-
profileCardSelected:
|
|
994
|
-
profileTop:
|
|
995
|
-
avatar:
|
|
996
|
-
profileName:
|
|
997
|
-
relationPill:
|
|
998
|
-
profileMeta:
|
|
999
|
-
addCard:
|
|
1000
|
-
addIcon:
|
|
1001
|
-
},
|
|
988
|
+
] }), Pa = "_section_12hk9_2", Aa = "_title_12hk9_6", Ea = "_profileRow_12hk9_13", Oa = "_profileCard_12hk9_26", Fa = "_profileCardSelected_12hk9_47", qa = "_profileTop_12hk9_52", Wa = "_avatar_12hk9_60", ja = "_profileName_12hk9_74", Ha = "_relationPill_12hk9_84", za = "_profileMeta_12hk9_98", Ka = "_addCard_12hk9_108", Ua = "_addIcon_12hk9_127", L = {
|
|
989
|
+
section: Pa,
|
|
990
|
+
title: Aa,
|
|
991
|
+
profileRow: Ea,
|
|
992
|
+
profileCard: Oa,
|
|
993
|
+
profileCardSelected: Fa,
|
|
994
|
+
profileTop: qa,
|
|
995
|
+
avatar: Wa,
|
|
996
|
+
profileName: ja,
|
|
997
|
+
relationPill: Ha,
|
|
998
|
+
profileMeta: za,
|
|
999
|
+
addCard: Ka,
|
|
1000
|
+
addIcon: Ua
|
|
1001
|
+
}, Ga = [
|
|
1002
1002
|
{
|
|
1003
1003
|
id: "self",
|
|
1004
1004
|
name: "Aarav Sharma",
|
|
@@ -1013,17 +1013,17 @@ const pa = (t) => {
|
|
|
1013
1013
|
birthPlace: "Pune, India",
|
|
1014
1014
|
relation: "Spouse"
|
|
1015
1015
|
}
|
|
1016
|
-
],
|
|
1016
|
+
], Ya = ({
|
|
1017
1017
|
title: t,
|
|
1018
|
-
profiles: n =
|
|
1018
|
+
profiles: n = Ga,
|
|
1019
1019
|
selectedProfileId: a,
|
|
1020
1020
|
onProfileSelect: s,
|
|
1021
1021
|
onAddProfile: r,
|
|
1022
1022
|
t: c,
|
|
1023
1023
|
className: d = ""
|
|
1024
1024
|
}) => {
|
|
1025
|
-
const [l,
|
|
1026
|
-
|
|
1025
|
+
const [l, p] = I(n[0]?.id ?? ""), h = a ?? l, f = (_) => {
|
|
1026
|
+
p(_), s?.(_);
|
|
1027
1027
|
};
|
|
1028
1028
|
return /* @__PURE__ */ i("section", { className: [L.section, d].filter(Boolean).join(" "), children: [
|
|
1029
1029
|
/* @__PURE__ */ e("p", { className: L.title, children: t ?? c?.("planAstrologyProfilesHeading") ?? "Astrology profile" }),
|
|
@@ -1057,59 +1057,59 @@ const pa = (t) => {
|
|
|
1057
1057
|
] })
|
|
1058
1058
|
] })
|
|
1059
1059
|
] });
|
|
1060
|
-
},
|
|
1061
|
-
root:
|
|
1062
|
-
languageRow:
|
|
1063
|
-
languageLabel:
|
|
1064
|
-
languageDropdown:
|
|
1065
|
-
languageDropdownBtn:
|
|
1066
|
-
languageMenu:
|
|
1067
|
-
languageMenuItem:
|
|
1068
|
-
languageMenuItemSelected:
|
|
1069
|
-
languageDivider:
|
|
1070
|
-
sectionHeadingRow:
|
|
1071
|
-
sectionHeading:
|
|
1072
|
-
timezoneLabel:
|
|
1073
|
-
reportReadyBanner:
|
|
1074
|
-
reportReadyDuration:
|
|
1075
|
-
dateTabs:
|
|
1076
|
-
dateTabIndicator:
|
|
1077
|
-
dateTab:
|
|
1078
|
-
dateTabDivider:
|
|
1079
|
-
dateTabSelected:
|
|
1060
|
+
}, Va = "_root_fo16p_6", Ja = "_languageRow_fo16p_19", Za = "_languageLabel_fo16p_27", Xa = "_languageDropdown_fo16p_33", Qa = "_languageDropdownBtn_fo16p_37", eo = "_languageMenu_fo16p_52", to = "_languageMenuItem_fo16p_69", no = "_languageMenuItemSelected_fo16p_83", ao = "_languageDivider_fo16p_89", oo = "_sectionHeadingRow_fo16p_96", so = "_sectionHeading_fo16p_96", ro = "_timezoneLabel_fo16p_111", io = "_reportReadyBanner_fo16p_120", co = "_reportReadyDuration_fo16p_129", lo = "_dateTabs_fo16p_135", mo = "_dateTabIndicator_fo16p_147", _o = "_dateTab_fo16p_135", ho = "_dateTabDivider_fo16p_181", po = "_dateTabSelected_fo16p_191", uo = "_dateTabLabel_fo16p_196", go = "_dateTabNum_fo16p_203", bo = "_periodTabs_fo16p_217", fo = "_periodTabIndicator_fo16p_145", No = "_periodTab_fo16p_145", vo = "_periodTabSelected_fo16p_264", wo = "_timeGrid_fo16p_269", yo = "_emptyState_fo16p_296", ko = "_timeSlot_fo16p_300", So = "_timeSlotSelected_fo16p_316", $o = "_timeSlotDisabled_fo16p_324", Io = "_stateMessage_fo16p_335", To = "_retryBtn_fo16p_342", Lo = "_emptyStateIcon_fo16p_368", xo = "_emptyStateTitle_fo16p_379", Co = "_emptyStateSubtitle_fo16p_386", Do = "_loadingWrap_fo16p_395", Bo = "_skeletonShimmer_fo16p_400", Ro = "_skeletonDateTabs_fo16p_414", Mo = "_skeletonDateTab_fo16p_414", Po = "_skeletonPeriodTabs_fo16p_428", Ao = "_skeletonPeriodTab_fo16p_428", Eo = "_skeletonTimeGrid_fo16p_443", Oo = "_skeletonTimeSlot_fo16p_449", m = {
|
|
1061
|
+
root: Va,
|
|
1062
|
+
languageRow: Ja,
|
|
1063
|
+
languageLabel: Za,
|
|
1064
|
+
languageDropdown: Xa,
|
|
1065
|
+
languageDropdownBtn: Qa,
|
|
1066
|
+
languageMenu: eo,
|
|
1067
|
+
languageMenuItem: to,
|
|
1068
|
+
languageMenuItemSelected: no,
|
|
1069
|
+
languageDivider: ao,
|
|
1070
|
+
sectionHeadingRow: oo,
|
|
1071
|
+
sectionHeading: so,
|
|
1072
|
+
timezoneLabel: ro,
|
|
1073
|
+
reportReadyBanner: io,
|
|
1074
|
+
reportReadyDuration: co,
|
|
1075
|
+
dateTabs: lo,
|
|
1076
|
+
dateTabIndicator: mo,
|
|
1077
|
+
dateTab: _o,
|
|
1078
|
+
dateTabDivider: ho,
|
|
1079
|
+
dateTabSelected: po,
|
|
1080
1080
|
dateTabLabel: uo,
|
|
1081
|
-
dateTabNum:
|
|
1082
|
-
periodTabs:
|
|
1083
|
-
periodTabIndicator:
|
|
1084
|
-
periodTab:
|
|
1085
|
-
periodTabSelected:
|
|
1086
|
-
timeGrid:
|
|
1087
|
-
emptyState:
|
|
1088
|
-
timeSlot:
|
|
1089
|
-
timeSlotSelected:
|
|
1090
|
-
timeSlotDisabled:
|
|
1081
|
+
dateTabNum: go,
|
|
1082
|
+
periodTabs: bo,
|
|
1083
|
+
periodTabIndicator: fo,
|
|
1084
|
+
periodTab: No,
|
|
1085
|
+
periodTabSelected: vo,
|
|
1086
|
+
timeGrid: wo,
|
|
1087
|
+
emptyState: yo,
|
|
1088
|
+
timeSlot: ko,
|
|
1089
|
+
timeSlotSelected: So,
|
|
1090
|
+
timeSlotDisabled: $o,
|
|
1091
1091
|
stateMessage: Io,
|
|
1092
|
-
retryBtn:
|
|
1093
|
-
emptyStateIcon:
|
|
1094
|
-
emptyStateTitle:
|
|
1095
|
-
emptyStateSubtitle:
|
|
1096
|
-
loadingWrap:
|
|
1097
|
-
skeletonShimmer:
|
|
1098
|
-
skeletonDateTabs:
|
|
1092
|
+
retryBtn: To,
|
|
1093
|
+
emptyStateIcon: Lo,
|
|
1094
|
+
emptyStateTitle: xo,
|
|
1095
|
+
emptyStateSubtitle: Co,
|
|
1096
|
+
loadingWrap: Do,
|
|
1097
|
+
skeletonShimmer: Bo,
|
|
1098
|
+
skeletonDateTabs: Ro,
|
|
1099
1099
|
skeletonDateTab: Mo,
|
|
1100
|
-
skeletonPeriodTabs:
|
|
1101
|
-
skeletonPeriodTab:
|
|
1102
|
-
skeletonTimeGrid:
|
|
1103
|
-
skeletonTimeSlot:
|
|
1104
|
-
}, Oo = {
|
|
1105
|
-
morning: wa,
|
|
1106
|
-
afternoon: ya,
|
|
1107
|
-
evening: ka
|
|
1100
|
+
skeletonPeriodTabs: Po,
|
|
1101
|
+
skeletonPeriodTab: Ao,
|
|
1102
|
+
skeletonTimeGrid: Eo,
|
|
1103
|
+
skeletonTimeSlot: Oo
|
|
1108
1104
|
}, Fo = {
|
|
1105
|
+
morning: ya,
|
|
1106
|
+
afternoon: ka,
|
|
1107
|
+
evening: Sa
|
|
1108
|
+
}, qo = {
|
|
1109
1109
|
morning: "planPeriodMorning",
|
|
1110
1110
|
afternoon: "planPeriodAfternoon",
|
|
1111
1111
|
evening: "planPeriodEvening"
|
|
1112
|
-
}, z = (...t) => t.filter(Boolean).join(" "),
|
|
1112
|
+
}, z = (...t) => t.filter(Boolean).join(" "), dr = ({
|
|
1113
1113
|
days: t,
|
|
1114
1114
|
loading: n = !1,
|
|
1115
1115
|
error: a = !1,
|
|
@@ -1118,69 +1118,69 @@ const pa = (t) => {
|
|
|
1118
1118
|
onDateSelect: c,
|
|
1119
1119
|
selectedPeriod: d,
|
|
1120
1120
|
onPeriodSelect: l,
|
|
1121
|
-
selectedSlotStart:
|
|
1121
|
+
selectedSlotStart: p,
|
|
1122
1122
|
onSlotSelect: h,
|
|
1123
1123
|
hideLanguageSelector: f = !1,
|
|
1124
|
-
languageOptions: _ =
|
|
1124
|
+
languageOptions: _ = Na,
|
|
1125
1125
|
selectedLanguage: g,
|
|
1126
1126
|
onLanguageSelect: b,
|
|
1127
1127
|
showPhoneNumberSection: w = !0,
|
|
1128
1128
|
phoneNumberSection: O,
|
|
1129
1129
|
showAstrologyProfilesSection: k = !0,
|
|
1130
1130
|
astrologyProfilesSection: T,
|
|
1131
|
-
heading:
|
|
1131
|
+
heading: M,
|
|
1132
1132
|
timezoneLabel: Y,
|
|
1133
1133
|
languageLabel: V,
|
|
1134
1134
|
reportReadyNote: J,
|
|
1135
1135
|
isGlobal: ee = !0,
|
|
1136
1136
|
t: y,
|
|
1137
|
-
className:
|
|
1137
|
+
className: pe = ""
|
|
1138
1138
|
}) => {
|
|
1139
1139
|
const x = E(
|
|
1140
1140
|
() => t.filter((o) => o.has_availability && o.slots.length > 0),
|
|
1141
1141
|
[t]
|
|
1142
|
-
), [re, ue] =
|
|
1142
|
+
), [re, ue] = I(""), q = E(() => {
|
|
1143
1143
|
const o = r ?? re;
|
|
1144
|
-
return x.some((
|
|
1144
|
+
return x.some((u) => u.date === o) ? o : x[0]?.date ?? "";
|
|
1145
1145
|
}, [r, re, x]), F = E(
|
|
1146
1146
|
() => x.find((o) => o.date === q) ?? null,
|
|
1147
1147
|
[x, q]
|
|
1148
1148
|
), W = E(() => {
|
|
1149
1149
|
if (!F) return [];
|
|
1150
|
-
const o = new Set(F.slots.map((
|
|
1151
|
-
return
|
|
1152
|
-
}, [F]), [N, K] =
|
|
1150
|
+
const o = new Set(F.slots.map((u) => u.period));
|
|
1151
|
+
return fa.filter((u) => o.has(u));
|
|
1152
|
+
}, [F]), [N, K] = I(""), P = E(() => {
|
|
1153
1153
|
const o = d ?? N;
|
|
1154
1154
|
return o && W.includes(o) ? o : W[0] ?? "morning";
|
|
1155
1155
|
}, [d, N, W]), ie = E(
|
|
1156
1156
|
() => F ? F.slots.filter((o) => o.period === P) : [],
|
|
1157
1157
|
[F, P]
|
|
1158
|
-
), [
|
|
1159
|
-
if (
|
|
1160
|
-
const o =
|
|
1161
|
-
return ie.some((
|
|
1162
|
-
}, [
|
|
1158
|
+
), [Se, Ke] = I(""), $e = E(() => {
|
|
1159
|
+
if (p === null) return "";
|
|
1160
|
+
const o = p ?? Se;
|
|
1161
|
+
return ie.some((u) => u.start === o) ? o : ie[0]?.start ?? "";
|
|
1162
|
+
}, [p, Se, ie]), [Ue, Ge] = I(
|
|
1163
1163
|
() => _[0]?.code ?? "en"
|
|
1164
|
-
), Ie = g ??
|
|
1164
|
+
), Ie = g ?? Ue, ge = _.find((o) => o.code === Ie) ?? _[0], [ce, be] = I(!1), fe = G(null);
|
|
1165
1165
|
se(() => {
|
|
1166
1166
|
if (!ce) return;
|
|
1167
|
-
const o = (
|
|
1168
|
-
|
|
1167
|
+
const o = (u) => {
|
|
1168
|
+
fe.current && !fe.current.contains(u.target) && be(!1);
|
|
1169
1169
|
};
|
|
1170
1170
|
return document.addEventListener("mousedown", o), () => document.removeEventListener("mousedown", o);
|
|
1171
1171
|
}, [ce]);
|
|
1172
|
-
const
|
|
1172
|
+
const Te = G(null), Le = G({}), [te, xe] = I(null), Ce = G(null), De = G(
|
|
1173
1173
|
{}
|
|
1174
|
-
), [
|
|
1174
|
+
), [Ne, Be] = I(null);
|
|
1175
1175
|
se(() => {
|
|
1176
1176
|
const o = () => {
|
|
1177
|
-
const
|
|
1178
|
-
if (!
|
|
1179
|
-
|
|
1177
|
+
const u = Te.current, C = Le.current[q];
|
|
1178
|
+
if (!u || !C) {
|
|
1179
|
+
xe(null);
|
|
1180
1180
|
return;
|
|
1181
1181
|
}
|
|
1182
|
-
const j =
|
|
1183
|
-
|
|
1182
|
+
const j = u.getBoundingClientRect(), D = C.getBoundingClientRect();
|
|
1183
|
+
xe({
|
|
1184
1184
|
left: D.left - j.left,
|
|
1185
1185
|
top: D.top - j.top,
|
|
1186
1186
|
width: D.width,
|
|
@@ -1190,64 +1190,64 @@ const pa = (t) => {
|
|
|
1190
1190
|
return o(), window.addEventListener("resize", o), () => window.removeEventListener("resize", o);
|
|
1191
1191
|
}, [q, x, n, a]), se(() => {
|
|
1192
1192
|
const o = () => {
|
|
1193
|
-
const
|
|
1194
|
-
if (!
|
|
1195
|
-
|
|
1193
|
+
const u = Ce.current, C = De.current[P];
|
|
1194
|
+
if (!u || !C) {
|
|
1195
|
+
Be(null);
|
|
1196
1196
|
return;
|
|
1197
1197
|
}
|
|
1198
|
-
const j =
|
|
1199
|
-
|
|
1198
|
+
const j = u.getBoundingClientRect(), D = C.getBoundingClientRect();
|
|
1199
|
+
Be({
|
|
1200
1200
|
left: D.left - j.left,
|
|
1201
1201
|
width: D.width
|
|
1202
1202
|
});
|
|
1203
1203
|
};
|
|
1204
1204
|
return o(), window.addEventListener("resize", o), () => window.removeEventListener("resize", o);
|
|
1205
1205
|
}, [P, W, n, a]);
|
|
1206
|
-
const
|
|
1206
|
+
const Ye = (o) => {
|
|
1207
1207
|
ue(o), c?.(o);
|
|
1208
|
-
}, Ye = (o) => {
|
|
1209
|
-
K(o), l?.(o);
|
|
1210
1208
|
}, Ve = (o) => {
|
|
1211
|
-
|
|
1209
|
+
K(o), l?.(o);
|
|
1212
1210
|
}, Je = (o) => {
|
|
1213
|
-
|
|
1211
|
+
Ke(o.start), h?.(o);
|
|
1212
|
+
}, Ze = (o) => {
|
|
1213
|
+
Ge(o), be(!1), b?.(o);
|
|
1214
1214
|
};
|
|
1215
|
-
return /* @__PURE__ */ i("div", { className: z(m.root,
|
|
1215
|
+
return /* @__PURE__ */ i("div", { className: z(m.root, pe), children: [
|
|
1216
1216
|
w && (O ?? /* @__PURE__ */ e(Ma, { t: y })),
|
|
1217
|
-
k && (T ?? /* @__PURE__ */ e(
|
|
1218
|
-
!f && /* @__PURE__ */ i(
|
|
1217
|
+
k && (T ?? /* @__PURE__ */ e(Ya, { t: y })),
|
|
1218
|
+
!f && /* @__PURE__ */ i(Re, { children: [
|
|
1219
1219
|
/* @__PURE__ */ i("div", { className: m.languageRow, children: [
|
|
1220
1220
|
/* @__PURE__ */ e("span", { className: m.languageLabel, children: V ?? y?.("planConsultationLanguageLabel") ?? "Your consultation language" }),
|
|
1221
|
-
/* @__PURE__ */ i("div", { className: m.languageDropdown, ref:
|
|
1221
|
+
/* @__PURE__ */ i("div", { className: m.languageDropdown, ref: fe, children: [
|
|
1222
1222
|
/* @__PURE__ */ i(
|
|
1223
1223
|
"button",
|
|
1224
1224
|
{
|
|
1225
1225
|
type: "button",
|
|
1226
1226
|
className: m.languageDropdownBtn,
|
|
1227
|
-
onClick: () =>
|
|
1227
|
+
onClick: () => be((o) => !o),
|
|
1228
1228
|
"aria-haspopup": "listbox",
|
|
1229
1229
|
"aria-expanded": ce,
|
|
1230
1230
|
children: [
|
|
1231
|
-
(
|
|
1232
|
-
/* @__PURE__ */ e(
|
|
1231
|
+
(ge?.labelKey && y?.(ge.labelKey)) ?? ge?.label,
|
|
1232
|
+
/* @__PURE__ */ e(wa, {})
|
|
1233
1233
|
]
|
|
1234
1234
|
}
|
|
1235
1235
|
),
|
|
1236
1236
|
ce && /* @__PURE__ */ e("ul", { className: m.languageMenu, role: "listbox", children: _.map((o) => {
|
|
1237
|
-
const
|
|
1237
|
+
const u = o.code === Ie;
|
|
1238
1238
|
return /* @__PURE__ */ i(
|
|
1239
1239
|
"li",
|
|
1240
1240
|
{
|
|
1241
1241
|
role: "option",
|
|
1242
|
-
"aria-selected":
|
|
1242
|
+
"aria-selected": u,
|
|
1243
1243
|
className: z(
|
|
1244
1244
|
m.languageMenuItem,
|
|
1245
|
-
|
|
1245
|
+
u && m.languageMenuItemSelected
|
|
1246
1246
|
),
|
|
1247
|
-
onClick: () =>
|
|
1247
|
+
onClick: () => Ze(o.code),
|
|
1248
1248
|
children: [
|
|
1249
1249
|
(o.labelKey && y?.(o.labelKey)) ?? o.label,
|
|
1250
|
-
|
|
1250
|
+
u && /* @__PURE__ */ e(va, {})
|
|
1251
1251
|
]
|
|
1252
1252
|
},
|
|
1253
1253
|
o.code
|
|
@@ -1258,7 +1258,7 @@ const pa = (t) => {
|
|
|
1258
1258
|
/* @__PURE__ */ e("hr", { className: m.languageDivider })
|
|
1259
1259
|
] }),
|
|
1260
1260
|
/* @__PURE__ */ i("div", { className: m.sectionHeadingRow, children: [
|
|
1261
|
-
/* @__PURE__ */ e("p", { className: m.sectionHeading, children:
|
|
1261
|
+
/* @__PURE__ */ e("p", { className: m.sectionHeading, children: M ?? y?.("planSelectSlotHeading") ?? "Book your preferred consultation slot" }),
|
|
1262
1262
|
Y && /* @__PURE__ */ e("p", { className: m.timezoneLabel, children: Y })
|
|
1263
1263
|
] }),
|
|
1264
1264
|
J === void 0 ? /* @__PURE__ */ i("p", { className: m.reportReadyBanner, children: [
|
|
@@ -1269,25 +1269,25 @@ const pa = (t) => {
|
|
|
1269
1269
|
y?.("planReportReadySuffix") ?? "from today"
|
|
1270
1270
|
] }) : J,
|
|
1271
1271
|
n && /* @__PURE__ */ i("div", { className: m.loadingWrap, "aria-busy": "true", "aria-live": "polite", children: [
|
|
1272
|
-
/* @__PURE__ */ e("div", { className: m.skeletonDateTabs, children: Array.from({ length: 5 }).map((o,
|
|
1273
|
-
/* @__PURE__ */ e("div", { className: m.skeletonPeriodTabs, children: Array.from({ length: 3 }).map((o,
|
|
1274
|
-
/* @__PURE__ */ e("div", { className: m.skeletonTimeGrid, children: Array.from({ length: 6 }).map((o,
|
|
1272
|
+
/* @__PURE__ */ e("div", { className: m.skeletonDateTabs, children: Array.from({ length: 5 }).map((o, u) => /* @__PURE__ */ e("div", { className: z(m.skeletonDateTab, m.skeletonShimmer) }, u)) }),
|
|
1273
|
+
/* @__PURE__ */ e("div", { className: m.skeletonPeriodTabs, children: Array.from({ length: 3 }).map((o, u) => /* @__PURE__ */ e("div", { className: z(m.skeletonPeriodTab, m.skeletonShimmer) }, u)) }),
|
|
1274
|
+
/* @__PURE__ */ e("div", { className: m.skeletonTimeGrid, children: Array.from({ length: 6 }).map((o, u) => /* @__PURE__ */ e("div", { className: z(m.skeletonTimeSlot, m.skeletonShimmer) }, u)) })
|
|
1275
1275
|
] }),
|
|
1276
1276
|
!n && a && /* @__PURE__ */ i("div", { className: m.stateMessage, children: [
|
|
1277
1277
|
y?.("planSlotsLoadError") ?? "Couldn't load slots. Please try again.",
|
|
1278
1278
|
s && /* @__PURE__ */ e("button", { type: "button", className: m.retryBtn, onClick: s, children: y?.("planRetry") ?? "Retry" })
|
|
1279
1279
|
] }),
|
|
1280
1280
|
!n && !a && x.length === 0 && /* @__PURE__ */ i("div", { className: m.emptyState, children: [
|
|
1281
|
-
/* @__PURE__ */ e("span", { className: m.emptyStateIcon, children: /* @__PURE__ */ e(
|
|
1281
|
+
/* @__PURE__ */ e("span", { className: m.emptyStateIcon, children: /* @__PURE__ */ e($a, {}) }),
|
|
1282
1282
|
/* @__PURE__ */ e("p", { className: m.emptyStateTitle, children: y?.("planNoSlotsAvailableTitle") ?? "No slots available" }),
|
|
1283
1283
|
/* @__PURE__ */ e("p", { className: m.emptyStateSubtitle, children: y?.("planNoSlotsAvailableSubtitle") ?? "Try a different consultation language above, or check back soon." })
|
|
1284
1284
|
] }),
|
|
1285
|
-
!n && !a && x.length > 0 && /* @__PURE__ */ i(
|
|
1285
|
+
!n && !a && x.length > 0 && /* @__PURE__ */ i(Re, { children: [
|
|
1286
1286
|
/* @__PURE__ */ i(
|
|
1287
1287
|
"div",
|
|
1288
1288
|
{
|
|
1289
1289
|
className: m.dateTabs,
|
|
1290
|
-
ref:
|
|
1290
|
+
ref: Te,
|
|
1291
1291
|
role: "radiogroup",
|
|
1292
1292
|
"aria-label": "Consultation date",
|
|
1293
1293
|
children: [
|
|
@@ -1304,19 +1304,19 @@ const pa = (t) => {
|
|
|
1304
1304
|
}
|
|
1305
1305
|
),
|
|
1306
1306
|
x.map((o) => {
|
|
1307
|
-
const
|
|
1308
|
-
return /* @__PURE__ */ i(
|
|
1307
|
+
const u = o.date === q, { dayLabel: C, dayNum: j } = ba(o.date);
|
|
1308
|
+
return /* @__PURE__ */ i(Xe, { children: [
|
|
1309
1309
|
/* @__PURE__ */ i(
|
|
1310
1310
|
"button",
|
|
1311
1311
|
{
|
|
1312
1312
|
type: "button",
|
|
1313
1313
|
ref: (D) => {
|
|
1314
|
-
|
|
1314
|
+
Le.current[o.date] = D;
|
|
1315
1315
|
},
|
|
1316
|
-
className: z(m.dateTab,
|
|
1316
|
+
className: z(m.dateTab, u && m.dateTabSelected),
|
|
1317
1317
|
role: "radio",
|
|
1318
|
-
"aria-checked":
|
|
1319
|
-
onClick: () =>
|
|
1318
|
+
"aria-checked": u,
|
|
1319
|
+
onClick: () => Ye(o.date),
|
|
1320
1320
|
children: [
|
|
1321
1321
|
/* @__PURE__ */ e("span", { className: m.dateTabLabel, children: y?.(C) ?? C }),
|
|
1322
1322
|
/* @__PURE__ */ e("span", { className: m.dateTabNum, children: j })
|
|
@@ -1333,28 +1333,28 @@ const pa = (t) => {
|
|
|
1333
1333
|
"div",
|
|
1334
1334
|
{
|
|
1335
1335
|
className: m.periodTabs,
|
|
1336
|
-
ref:
|
|
1336
|
+
ref: Ce,
|
|
1337
1337
|
role: "tablist",
|
|
1338
1338
|
"aria-label": "Time of day",
|
|
1339
1339
|
children: [
|
|
1340
|
-
|
|
1340
|
+
Ne && /* @__PURE__ */ e(
|
|
1341
1341
|
"span",
|
|
1342
1342
|
{
|
|
1343
1343
|
className: m.periodTabIndicator,
|
|
1344
1344
|
style: {
|
|
1345
|
-
transform: `translateX(${
|
|
1346
|
-
width:
|
|
1345
|
+
transform: `translateX(${Ne.left}px)`,
|
|
1346
|
+
width: Ne.width
|
|
1347
1347
|
},
|
|
1348
1348
|
"aria-hidden": "true"
|
|
1349
1349
|
}
|
|
1350
1350
|
),
|
|
1351
1351
|
W.map((o) => {
|
|
1352
|
-
const
|
|
1352
|
+
const u = Fo[o], C = o === "evening" && ee, j = C ? "planPeriodEveningNight" : qo[o];
|
|
1353
1353
|
return /* @__PURE__ */ i(
|
|
1354
1354
|
"button",
|
|
1355
1355
|
{
|
|
1356
1356
|
ref: (D) => {
|
|
1357
|
-
|
|
1357
|
+
De.current[o] = D;
|
|
1358
1358
|
},
|
|
1359
1359
|
type: "button",
|
|
1360
1360
|
className: z(
|
|
@@ -1363,9 +1363,9 @@ const pa = (t) => {
|
|
|
1363
1363
|
),
|
|
1364
1364
|
role: "tab",
|
|
1365
1365
|
"aria-selected": o === P,
|
|
1366
|
-
onClick: () =>
|
|
1366
|
+
onClick: () => Ve(o),
|
|
1367
1367
|
children: [
|
|
1368
|
-
/* @__PURE__ */ e(
|
|
1368
|
+
/* @__PURE__ */ e(u, {}),
|
|
1369
1369
|
y?.(j) ?? (C ? "Evening/Night" : o.charAt(0).toUpperCase() + o.slice(1))
|
|
1370
1370
|
]
|
|
1371
1371
|
},
|
|
@@ -1381,40 +1381,40 @@ const pa = (t) => {
|
|
|
1381
1381
|
className: m.timeGrid,
|
|
1382
1382
|
role: "radiogroup",
|
|
1383
1383
|
"aria-label": "Consultation time",
|
|
1384
|
-
children: ie.map((o,
|
|
1384
|
+
children: ie.map((o, u) => /* @__PURE__ */ e(
|
|
1385
1385
|
"button",
|
|
1386
1386
|
{
|
|
1387
1387
|
type: "button",
|
|
1388
1388
|
className: z(
|
|
1389
1389
|
m.timeSlot,
|
|
1390
|
-
|
|
1390
|
+
$e === o.start && m.timeSlotSelected,
|
|
1391
1391
|
o.disabled && m.timeSlotDisabled
|
|
1392
1392
|
),
|
|
1393
1393
|
role: "radio",
|
|
1394
|
-
"aria-checked":
|
|
1394
|
+
"aria-checked": $e === o.start,
|
|
1395
1395
|
"aria-disabled": o.disabled || void 0,
|
|
1396
1396
|
disabled: o.disabled,
|
|
1397
|
-
onClick: () => !o.disabled &&
|
|
1398
|
-
children:
|
|
1397
|
+
onClick: () => !o.disabled && Je(o),
|
|
1398
|
+
children: ga(o.start)
|
|
1399
1399
|
},
|
|
1400
|
-
`${o.start}-${
|
|
1400
|
+
`${o.start}-${u}`
|
|
1401
1401
|
))
|
|
1402
1402
|
},
|
|
1403
1403
|
`${q}-${P}`
|
|
1404
1404
|
)
|
|
1405
1405
|
] })
|
|
1406
1406
|
] });
|
|
1407
|
-
},
|
|
1407
|
+
}, Oe = "+05:30", Wo = (t) => {
|
|
1408
1408
|
const n = String(t.getMonth() + 1).padStart(2, "0"), a = String(t.getDate()).padStart(2, "0");
|
|
1409
1409
|
return `${t.getFullYear()}-${n}-${a}`;
|
|
1410
|
-
},
|
|
1410
|
+
}, jo = (t, n, a, s) => {
|
|
1411
1411
|
const r = (l) => String(l).padStart(2, "0"), c = a + 30, d = n + Math.floor(c / 60);
|
|
1412
1412
|
return {
|
|
1413
|
-
start: `${t}T${r(n)}:${r(a)}:00${
|
|
1414
|
-
end: `${t}T${r(d)}:${r(c % 60)}:00${
|
|
1413
|
+
start: `${t}T${r(n)}:${r(a)}:00${Oe}`,
|
|
1414
|
+
end: `${t}T${r(d)}:${r(c % 60)}:00${Oe}`,
|
|
1415
1415
|
period: s
|
|
1416
1416
|
};
|
|
1417
|
-
},
|
|
1417
|
+
}, Ho = {
|
|
1418
1418
|
morning: [
|
|
1419
1419
|
[9, 0],
|
|
1420
1420
|
[9, 30],
|
|
@@ -1439,21 +1439,21 @@ const pa = (t) => {
|
|
|
1439
1439
|
}, ae = (t, n) => {
|
|
1440
1440
|
const a = /* @__PURE__ */ new Date();
|
|
1441
1441
|
a.setDate(a.getDate() + t);
|
|
1442
|
-
const s =
|
|
1443
|
-
(c) =>
|
|
1442
|
+
const s = Wo(a), r = n.flatMap(
|
|
1443
|
+
(c) => Ho[c].map(([d, l]) => jo(s, d, l, c))
|
|
1444
1444
|
);
|
|
1445
1445
|
return { date: s, has_availability: r.length > 0, slots: r };
|
|
1446
|
-
},
|
|
1446
|
+
}, zo = [
|
|
1447
1447
|
ae(0, ["morning", "afternoon", "evening"]),
|
|
1448
1448
|
ae(1, ["morning", "afternoon"]),
|
|
1449
1449
|
ae(2, ["afternoon", "evening"]),
|
|
1450
1450
|
ae(3, ["morning", "evening"]),
|
|
1451
1451
|
ae(4, ["morning", "afternoon", "evening"])
|
|
1452
|
-
],
|
|
1452
|
+
], mr = zo.map((t) => ({
|
|
1453
1453
|
...t,
|
|
1454
1454
|
has_availability: !1,
|
|
1455
1455
|
slots: []
|
|
1456
|
-
})),
|
|
1456
|
+
})), Ko = () => /* @__PURE__ */ e(
|
|
1457
1457
|
"svg",
|
|
1458
1458
|
{
|
|
1459
1459
|
width: "14",
|
|
@@ -1467,7 +1467,7 @@ const pa = (t) => {
|
|
|
1467
1467
|
"aria-hidden": !0,
|
|
1468
1468
|
children: /* @__PURE__ */ e("path", { d: "M6 9l6 6 6-6" })
|
|
1469
1469
|
}
|
|
1470
|
-
),
|
|
1470
|
+
), Uo = [
|
|
1471
1471
|
{ name: "United States", code: "+1", iso: "US" },
|
|
1472
1472
|
{ name: "United Kingdom", code: "+44", iso: "GB" },
|
|
1473
1473
|
{ name: "Australia", code: "+61", iso: "AU" },
|
|
@@ -1522,11 +1522,11 @@ const pa = (t) => {
|
|
|
1522
1522
|
{ name: "Austria", code: "+43", iso: "AT" },
|
|
1523
1523
|
{ name: "Réunion", code: "+262", iso: "RE" },
|
|
1524
1524
|
{ name: "India", code: "+91", iso: "IN" }
|
|
1525
|
-
],
|
|
1525
|
+
], Go = (t) => {
|
|
1526
1526
|
if (!t || t.length !== 2) return "🏳️";
|
|
1527
1527
|
const n = t.toUpperCase().split("").map((a) => 127397 + a.charCodeAt(0));
|
|
1528
1528
|
return String.fromCodePoint(...n);
|
|
1529
|
-
},
|
|
1529
|
+
}, He = {
|
|
1530
1530
|
"+1": {
|
|
1531
1531
|
pattern: /^[2-9]\d{9}$/,
|
|
1532
1532
|
minLength: 10,
|
|
@@ -1599,19 +1599,19 @@ const pa = (t) => {
|
|
|
1599
1599
|
maxLength: 8,
|
|
1600
1600
|
description: "7-8 digits"
|
|
1601
1601
|
}
|
|
1602
|
-
},
|
|
1602
|
+
}, ze = {
|
|
1603
1603
|
pattern: /^\d{6,15}$/,
|
|
1604
1604
|
maxLength: 15,
|
|
1605
1605
|
description: "6-15 digits"
|
|
1606
|
-
},
|
|
1606
|
+
}, Fe = (t, n) => {
|
|
1607
1607
|
if (!t)
|
|
1608
1608
|
return { isValid: !0, error: "" };
|
|
1609
|
-
const a =
|
|
1609
|
+
const a = He[n] || ze;
|
|
1610
1610
|
return a.pattern.test(t) ? { isValid: !0, error: "" } : {
|
|
1611
1611
|
isValid: !1,
|
|
1612
1612
|
error: `Please enter a valid phone number (${a.description})`
|
|
1613
1613
|
};
|
|
1614
|
-
},
|
|
1614
|
+
}, qe = (t) => (He[t] || ze).maxLength, Yo = ({
|
|
1615
1615
|
countryCode: t,
|
|
1616
1616
|
contactNumber: n,
|
|
1617
1617
|
countries: a,
|
|
@@ -1621,19 +1621,19 @@ const pa = (t) => {
|
|
|
1621
1621
|
onDropdownFocus: d,
|
|
1622
1622
|
onInputFocus: l
|
|
1623
1623
|
}) => {
|
|
1624
|
-
const [
|
|
1624
|
+
const [p, h] = I(!1), f = a.find((k) => k.code === t) ?? a[0], _ = qe(t), g = le(
|
|
1625
1625
|
(k) => {
|
|
1626
1626
|
if (s(k.code, k.name), h(!1), n && c) {
|
|
1627
|
-
const { isValid: T, error:
|
|
1628
|
-
c(T,
|
|
1627
|
+
const { isValid: T, error: M } = Fe(n, k.code);
|
|
1628
|
+
c(T, M);
|
|
1629
1629
|
}
|
|
1630
1630
|
},
|
|
1631
1631
|
[n, s, c]
|
|
1632
1632
|
), b = le(
|
|
1633
1633
|
(k) => {
|
|
1634
|
-
const
|
|
1635
|
-
if (r(
|
|
1636
|
-
const { isValid: Y, error: V } =
|
|
1634
|
+
const M = k.target.value.replace(/[^\d]/g, "").slice(0, qe(t));
|
|
1635
|
+
if (r(M), c) {
|
|
1636
|
+
const { isValid: Y, error: V } = Fe(M, t);
|
|
1637
1637
|
c(Y, V);
|
|
1638
1638
|
}
|
|
1639
1639
|
},
|
|
@@ -1644,7 +1644,7 @@ const pa = (t) => {
|
|
|
1644
1644
|
h(!1), l?.(t);
|
|
1645
1645
|
}, [t, l]);
|
|
1646
1646
|
return {
|
|
1647
|
-
isDropdownOpen:
|
|
1647
|
+
isDropdownOpen: p,
|
|
1648
1648
|
selectedCountry: f,
|
|
1649
1649
|
maxLength: _,
|
|
1650
1650
|
handleCountrySelect: g,
|
|
@@ -1653,32 +1653,32 @@ const pa = (t) => {
|
|
|
1653
1653
|
handlePhoneFocus: O,
|
|
1654
1654
|
closeDropdown: () => h(!1)
|
|
1655
1655
|
};
|
|
1656
|
-
},
|
|
1657
|
-
root:
|
|
1658
|
-
label:
|
|
1659
|
-
row:
|
|
1660
|
-
dropdownWrap:
|
|
1661
|
-
dropdownBtn:
|
|
1662
|
-
dropdownMenu:
|
|
1663
|
-
dropdownItem:
|
|
1664
|
-
dropdownItemCode:
|
|
1665
|
-
dropdownItemName:
|
|
1666
|
-
flagImg:
|
|
1667
|
-
flagEmoji:
|
|
1668
|
-
input:
|
|
1669
|
-
inputError:
|
|
1670
|
-
helper:
|
|
1671
|
-
error:
|
|
1672
|
-
},
|
|
1656
|
+
}, Vo = "_root_3ywyc_2", Jo = "_label_3ywyc_9", Zo = "_row_3ywyc_17", Xo = "_dropdownWrap_3ywyc_23", Qo = "_dropdownBtn_3ywyc_29", es = "_dropdownMenu_3ywyc_50", ts = "_dropdownItem_3ywyc_64", ns = "_dropdownItemCode_3ywyc_80", as = "_dropdownItemName_3ywyc_85", os = "_flagImg_3ywyc_93", ss = "_flagEmoji_3ywyc_97", rs = "_input_3ywyc_102", is = "_inputError_3ywyc_121", cs = "_helper_3ywyc_129", ls = "_error_3ywyc_137", S = {
|
|
1657
|
+
root: Vo,
|
|
1658
|
+
label: Jo,
|
|
1659
|
+
row: Zo,
|
|
1660
|
+
dropdownWrap: Xo,
|
|
1661
|
+
dropdownBtn: Qo,
|
|
1662
|
+
dropdownMenu: es,
|
|
1663
|
+
dropdownItem: ts,
|
|
1664
|
+
dropdownItemCode: ns,
|
|
1665
|
+
dropdownItemName: as,
|
|
1666
|
+
flagImg: os,
|
|
1667
|
+
flagEmoji: ss,
|
|
1668
|
+
input: rs,
|
|
1669
|
+
inputError: is,
|
|
1670
|
+
helper: cs,
|
|
1671
|
+
error: ls
|
|
1672
|
+
}, We = (...t) => t.filter(Boolean).join(" "), _r = ({
|
|
1673
1673
|
countryCode: t,
|
|
1674
1674
|
contactNumber: n,
|
|
1675
1675
|
error: a,
|
|
1676
1676
|
label: s,
|
|
1677
1677
|
helperText: r,
|
|
1678
|
-
countries: c =
|
|
1678
|
+
countries: c = Uo,
|
|
1679
1679
|
getFlagUrl: d,
|
|
1680
1680
|
onCountryCodeChange: l,
|
|
1681
|
-
onPhoneNumberChange:
|
|
1681
|
+
onPhoneNumberChange: p,
|
|
1682
1682
|
onValidationChange: h,
|
|
1683
1683
|
onDropdownFocus: f,
|
|
1684
1684
|
onInputFocus: _,
|
|
@@ -1686,16 +1686,16 @@ const pa = (t) => {
|
|
|
1686
1686
|
t: b,
|
|
1687
1687
|
className: w = ""
|
|
1688
1688
|
}) => {
|
|
1689
|
-
const [O, k] =
|
|
1689
|
+
const [O, k] = I(c[0]?.code ?? "+91"), [T, M] = I(""), Y = t ?? O, V = n ?? T, J = G(null), {
|
|
1690
1690
|
isDropdownOpen: ee,
|
|
1691
1691
|
selectedCountry: y,
|
|
1692
|
-
maxLength:
|
|
1692
|
+
maxLength: pe,
|
|
1693
1693
|
handleCountrySelect: x,
|
|
1694
1694
|
handlePhoneChange: re,
|
|
1695
1695
|
handleDropdownToggle: ue,
|
|
1696
1696
|
handlePhoneFocus: q,
|
|
1697
1697
|
closeDropdown: F
|
|
1698
|
-
} =
|
|
1698
|
+
} = Yo({
|
|
1699
1699
|
countryCode: Y,
|
|
1700
1700
|
contactNumber: V,
|
|
1701
1701
|
countries: c,
|
|
@@ -1703,7 +1703,7 @@ const pa = (t) => {
|
|
|
1703
1703
|
k(N), l?.(N, K);
|
|
1704
1704
|
},
|
|
1705
1705
|
onPhoneNumberChange: (N) => {
|
|
1706
|
-
|
|
1706
|
+
M(N), p?.(N);
|
|
1707
1707
|
},
|
|
1708
1708
|
onValidationChange: h,
|
|
1709
1709
|
onDropdownFocus: f,
|
|
@@ -1717,16 +1717,16 @@ const pa = (t) => {
|
|
|
1717
1717
|
}, [ee, F]);
|
|
1718
1718
|
const W = (N, K) => {
|
|
1719
1719
|
const P = N ? d?.(N) : null;
|
|
1720
|
-
return P ? /* @__PURE__ */ e("img", { src: P, alt: K, width: 20, height: 14, className: S.flagImg }) : /* @__PURE__ */ e("span", { className: S.flagEmoji, "aria-hidden": !0, children:
|
|
1720
|
+
return P ? /* @__PURE__ */ e("img", { src: P, alt: K, width: 20, height: 14, className: S.flagImg }) : /* @__PURE__ */ e("span", { className: S.flagEmoji, "aria-hidden": !0, children: Go(N) });
|
|
1721
1721
|
};
|
|
1722
|
-
return /* @__PURE__ */ i("div", { className:
|
|
1722
|
+
return /* @__PURE__ */ i("div", { className: We(S.root, w), children: [
|
|
1723
1723
|
s && /* @__PURE__ */ e("div", { className: S.label, children: s }),
|
|
1724
1724
|
/* @__PURE__ */ i("div", { className: S.row, children: [
|
|
1725
1725
|
/* @__PURE__ */ i("div", { className: S.dropdownWrap, ref: J, children: [
|
|
1726
1726
|
/* @__PURE__ */ i("button", { type: "button", className: S.dropdownBtn, onClick: ue, children: [
|
|
1727
1727
|
W(y?.iso, y?.name ?? "Flag"),
|
|
1728
1728
|
/* @__PURE__ */ e("span", { children: y?.code ?? "+91" }),
|
|
1729
|
-
/* @__PURE__ */ e(
|
|
1729
|
+
/* @__PURE__ */ e(Ko, {})
|
|
1730
1730
|
] }),
|
|
1731
1731
|
ee && /* @__PURE__ */ e("div", { className: S.dropdownMenu, role: "listbox", children: c.map((N) => /* @__PURE__ */ i(
|
|
1732
1732
|
"button",
|
|
@@ -1752,9 +1752,9 @@ const pa = (t) => {
|
|
|
1752
1752
|
inputMode: "numeric",
|
|
1753
1753
|
autoComplete: "off",
|
|
1754
1754
|
value: V,
|
|
1755
|
-
maxLength:
|
|
1755
|
+
maxLength: pe,
|
|
1756
1756
|
ref: g,
|
|
1757
|
-
className:
|
|
1757
|
+
className: We(S.input, a && S.inputError),
|
|
1758
1758
|
placeholder: b?.("planPhoneNumberPlaceholder") ?? "0000000000",
|
|
1759
1759
|
onChange: re,
|
|
1760
1760
|
onFocus: q
|
|
@@ -1764,7 +1764,7 @@ const pa = (t) => {
|
|
|
1764
1764
|
r && /* @__PURE__ */ e("div", { className: S.helper, children: r }),
|
|
1765
1765
|
a && /* @__PURE__ */ e("p", { className: S.error, children: a })
|
|
1766
1766
|
] });
|
|
1767
|
-
},
|
|
1767
|
+
}, ds = () => /* @__PURE__ */ e("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ e(
|
|
1768
1768
|
"path",
|
|
1769
1769
|
{
|
|
1770
1770
|
d: "M8 1.33337L10.06 5.50671L14.6667 6.18004L11.3333 9.42671L12.12 14.0134L8 11.8467L3.88 14.0134L4.66667 9.42671L1.33333 6.18004L5.94 5.50671L8 1.33337Z",
|
|
@@ -1774,7 +1774,7 @@ const pa = (t) => {
|
|
|
1774
1774
|
strokeLinecap: "round",
|
|
1775
1775
|
strokeLinejoin: "round"
|
|
1776
1776
|
}
|
|
1777
|
-
) }),
|
|
1777
|
+
) }), ms = () => /* @__PURE__ */ e("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ e(
|
|
1778
1778
|
"path",
|
|
1779
1779
|
{
|
|
1780
1780
|
fillRule: "evenodd",
|
|
@@ -1782,66 +1782,66 @@ const pa = (t) => {
|
|
|
1782
1782
|
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",
|
|
1783
1783
|
fill: "#F97316"
|
|
1784
1784
|
}
|
|
1785
|
-
) }),
|
|
1786
|
-
card:
|
|
1787
|
-
cardSelected:
|
|
1788
|
-
photoWrap:
|
|
1785
|
+
) }), _s = "_card_1mv2d_3", hs = "_cardSelected_1mv2d_25", ps = "_photoWrap_1mv2d_32", us = "_photoFrame_1mv2d_38", gs = "_photoImg_1mv2d_46", bs = "_ratingPill_1mv2d_52", fs = "_ratingValue_1mv2d_67", Ns = "_info_1mv2d_75", vs = "_name_1mv2d_85", ws = "_meta_1mv2d_96", ys = "_languages_1mv2d_104", ks = "_consultationCount_1mv2d_114", Ss = "_checkIcon_1mv2d_122", $s = "_recommendedBadge_1mv2d_127", Is = "_recommendedLabel_1mv2d_149", $ = {
|
|
1786
|
+
card: _s,
|
|
1787
|
+
cardSelected: hs,
|
|
1788
|
+
photoWrap: ps,
|
|
1789
1789
|
photoFrame: us,
|
|
1790
|
-
photoImg:
|
|
1791
|
-
ratingPill:
|
|
1792
|
-
ratingValue:
|
|
1793
|
-
info:
|
|
1794
|
-
name:
|
|
1795
|
-
meta:
|
|
1796
|
-
languages:
|
|
1797
|
-
consultationCount:
|
|
1798
|
-
checkIcon:
|
|
1799
|
-
recommendedBadge:
|
|
1790
|
+
photoImg: gs,
|
|
1791
|
+
ratingPill: bs,
|
|
1792
|
+
ratingValue: fs,
|
|
1793
|
+
info: Ns,
|
|
1794
|
+
name: vs,
|
|
1795
|
+
meta: ws,
|
|
1796
|
+
languages: ys,
|
|
1797
|
+
consultationCount: ks,
|
|
1798
|
+
checkIcon: Ss,
|
|
1799
|
+
recommendedBadge: $s,
|
|
1800
1800
|
recommendedLabel: Is
|
|
1801
|
-
},
|
|
1801
|
+
}, Ts = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='78' viewBox='0 0 64 78'><rect width='64' height='78' fill='%23F3F4F6'/><circle cx='32' cy='30' r='12' fill='%23D1D5DB'/><path d='M12 70c2-14 12-22 20-22s18 8 20 22' fill='%23D1D5DB'/></svg>", Ls = ({
|
|
1802
1802
|
photoUrl: t,
|
|
1803
1803
|
name: n,
|
|
1804
1804
|
rating: a,
|
|
1805
|
-
fallbackPhotoUrl: s =
|
|
1806
|
-
}) => /* @__PURE__ */ i("div", { className:
|
|
1807
|
-
/* @__PURE__ */ e("div", { className:
|
|
1805
|
+
fallbackPhotoUrl: s = Ts
|
|
1806
|
+
}) => /* @__PURE__ */ i("div", { className: $.photoWrap, children: [
|
|
1807
|
+
/* @__PURE__ */ e("div", { className: $.photoFrame, children: /* @__PURE__ */ e(
|
|
1808
1808
|
"img",
|
|
1809
1809
|
{
|
|
1810
1810
|
src: t || s,
|
|
1811
1811
|
alt: n,
|
|
1812
1812
|
width: 64,
|
|
1813
1813
|
height: 78,
|
|
1814
|
-
className:
|
|
1814
|
+
className: $.photoImg,
|
|
1815
1815
|
onError: (r) => {
|
|
1816
1816
|
r.target.src = s;
|
|
1817
1817
|
}
|
|
1818
1818
|
}
|
|
1819
1819
|
) }),
|
|
1820
|
-
/* @__PURE__ */ i("div", { className:
|
|
1821
|
-
/* @__PURE__ */ e("span", { className:
|
|
1822
|
-
/* @__PURE__ */ e(
|
|
1820
|
+
/* @__PURE__ */ i("div", { className: $.ratingPill, children: [
|
|
1821
|
+
/* @__PURE__ */ e("span", { className: $.ratingValue, children: a }),
|
|
1822
|
+
/* @__PURE__ */ e(ds, {})
|
|
1823
1823
|
] })
|
|
1824
|
-
] }),
|
|
1824
|
+
] }), xs = ({ label: t, t: n }) => /* @__PURE__ */ e("div", { className: $.recommendedBadge, children: /* @__PURE__ */ e("span", { className: $.recommendedLabel, children: t ?? n?.("planRecommendedAstrologer") ?? "Recommended" }) }), Cs = (...t) => t.filter(Boolean).join(" "), Ds = (t) => {
|
|
1825
1825
|
if (t >= 1e3) {
|
|
1826
1826
|
const n = t / 1e3;
|
|
1827
1827
|
return `${Number.isInteger(n) ? n : n.toFixed(1)}K consultations`;
|
|
1828
1828
|
}
|
|
1829
1829
|
return `${t} consultations`;
|
|
1830
|
-
},
|
|
1830
|
+
}, Bs = ({
|
|
1831
1831
|
astrologer: t,
|
|
1832
1832
|
isSelected: n = !1,
|
|
1833
1833
|
onClick: a,
|
|
1834
1834
|
fallbackPhotoUrl: s,
|
|
1835
|
-
formatConsultationCount: r =
|
|
1835
|
+
formatConsultationCount: r = Ds
|
|
1836
1836
|
}) => /* @__PURE__ */ i(
|
|
1837
1837
|
"button",
|
|
1838
1838
|
{
|
|
1839
1839
|
type: "button",
|
|
1840
1840
|
onClick: () => a?.(t),
|
|
1841
|
-
className:
|
|
1841
|
+
className: Cs($.card, n && $.cardSelected),
|
|
1842
1842
|
children: [
|
|
1843
1843
|
/* @__PURE__ */ e(
|
|
1844
|
-
|
|
1844
|
+
Ls,
|
|
1845
1845
|
{
|
|
1846
1846
|
photoUrl: t.photo_url,
|
|
1847
1847
|
name: t.name,
|
|
@@ -1849,24 +1849,36 @@ const pa = (t) => {
|
|
|
1849
1849
|
fallbackPhotoUrl: s
|
|
1850
1850
|
}
|
|
1851
1851
|
),
|
|
1852
|
-
/* @__PURE__ */ i("div", { className:
|
|
1853
|
-
/* @__PURE__ */ e("span", { className:
|
|
1854
|
-
/* @__PURE__ */ i("div", { className:
|
|
1855
|
-
/* @__PURE__ */ e("span", { className:
|
|
1856
|
-
/* @__PURE__ */ e("span", { className:
|
|
1852
|
+
/* @__PURE__ */ i("div", { className: $.info, children: [
|
|
1853
|
+
/* @__PURE__ */ e("span", { className: $.name, children: t.name }),
|
|
1854
|
+
/* @__PURE__ */ i("div", { className: $.meta, children: [
|
|
1855
|
+
/* @__PURE__ */ e("span", { className: $.languages, children: t.languages.join(", ") }),
|
|
1856
|
+
/* @__PURE__ */ e("span", { className: $.consultationCount, children: r(t.consultation_count) })
|
|
1857
1857
|
] })
|
|
1858
1858
|
] }),
|
|
1859
|
-
n && /* @__PURE__ */ e("div", { className:
|
|
1860
|
-
t.is_recommended && /* @__PURE__ */ e(
|
|
1859
|
+
n && /* @__PURE__ */ e("div", { className: $.checkIcon, children: /* @__PURE__ */ e(ms, {}) }),
|
|
1860
|
+
t.is_recommended && /* @__PURE__ */ e(xs, {})
|
|
1861
1861
|
]
|
|
1862
1862
|
}
|
|
1863
|
-
),
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1863
|
+
), Rs = "_wrapper_vfs2z_41", Ms = "_ribbon_vfs2z_8", Ps = "_fold_vfs2z_64", As = "_label_vfs2z_74", he = {
|
|
1864
|
+
wrapper: Rs,
|
|
1865
|
+
ribbon: Ms,
|
|
1866
|
+
fold: Ps,
|
|
1867
|
+
label: As
|
|
1868
|
+
}, hr = ({
|
|
1869
|
+
label: t,
|
|
1870
|
+
t: n,
|
|
1871
|
+
className: a
|
|
1872
|
+
}) => /* @__PURE__ */ i("div", { className: [he.wrapper, a].filter(Boolean).join(" "), children: [
|
|
1873
|
+
/* @__PURE__ */ e("div", { className: he.ribbon, children: /* @__PURE__ */ e("span", { className: he.label, children: t ?? n?.("planRecommendedAstrologer") ?? "Recommended" }) }),
|
|
1874
|
+
/* @__PURE__ */ e("div", { className: he.fold })
|
|
1875
|
+
] }), Es = "_section_jbaga_2", Os = "_title_jbaga_6", Fs = "_row_jbaga_13", qs = "_skeletonCard_jbaga_26", Ws = "_skeletonShimmer_jbaga_33", oe = {
|
|
1876
|
+
section: Es,
|
|
1877
|
+
title: Os,
|
|
1878
|
+
row: Fs,
|
|
1879
|
+
skeletonCard: qs,
|
|
1880
|
+
skeletonShimmer: Ws
|
|
1881
|
+
}, je = (...t) => t.filter(Boolean).join(" "), pr = ({
|
|
1870
1882
|
astrologers: t,
|
|
1871
1883
|
loading: n = !1,
|
|
1872
1884
|
selectedAstrologerId: a,
|
|
@@ -1875,15 +1887,15 @@ const pa = (t) => {
|
|
|
1875
1887
|
fallbackPhotoUrl: c,
|
|
1876
1888
|
formatConsultationCount: d,
|
|
1877
1889
|
t: l,
|
|
1878
|
-
className:
|
|
1890
|
+
className: p = ""
|
|
1879
1891
|
}) => {
|
|
1880
|
-
const [h, f] =
|
|
1892
|
+
const [h, f] = I(""), _ = a ?? h, g = (b) => {
|
|
1881
1893
|
f(b.astrologer_id), s?.(b);
|
|
1882
1894
|
};
|
|
1883
|
-
return /* @__PURE__ */ i("section", { className:
|
|
1895
|
+
return /* @__PURE__ */ i("section", { className: je(oe.section, p), children: [
|
|
1884
1896
|
/* @__PURE__ */ e("p", { className: oe.title, children: r ?? l?.("planSelectAstrologerHeading") ?? "Select an astrologer" }),
|
|
1885
|
-
/* @__PURE__ */ e("div", { className: oe.row, role: "radiogroup", "aria-label": "Astrologer", children: n ? Array.from({ length: 2 }).map((b, w) => /* @__PURE__ */ e("div", { className:
|
|
1886
|
-
|
|
1897
|
+
/* @__PURE__ */ e("div", { className: oe.row, role: "radiogroup", "aria-label": "Astrologer", children: n ? Array.from({ length: 2 }).map((b, w) => /* @__PURE__ */ e("div", { className: je(oe.skeletonCard, oe.skeletonShimmer) }, w)) : t.map((b) => /* @__PURE__ */ e(
|
|
1898
|
+
Bs,
|
|
1887
1899
|
{
|
|
1888
1900
|
astrologer: b,
|
|
1889
1901
|
isSelected: b.astrologer_id === _,
|
|
@@ -1894,7 +1906,7 @@ const pa = (t) => {
|
|
|
1894
1906
|
b.astrologer_id
|
|
1895
1907
|
)) })
|
|
1896
1908
|
] });
|
|
1897
|
-
},
|
|
1909
|
+
}, ur = [
|
|
1898
1910
|
{
|
|
1899
1911
|
astrologer_id: "astro-1",
|
|
1900
1912
|
name: "Pandit Ramesh Sharma",
|
|
@@ -1922,45 +1934,46 @@ const pa = (t) => {
|
|
|
1922
1934
|
}
|
|
1923
1935
|
];
|
|
1924
1936
|
export {
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1937
|
+
Bs as AstrologerCard,
|
|
1938
|
+
pr as AstrologerList,
|
|
1939
|
+
Ls as AstrologerPhoto,
|
|
1940
|
+
Ya as AstrologyProfilesSection,
|
|
1941
|
+
Na as CONSULTATION_LANGUAGE_OPTIONS,
|
|
1942
|
+
fa as CONSULTATION_PERIOD_ORDER,
|
|
1943
|
+
ca as CircularMarquee,
|
|
1944
|
+
dr as ConsultationSlotSelector,
|
|
1945
|
+
lr as ContactUsSection,
|
|
1946
|
+
Uo as DEFAULT_COUNTRIES,
|
|
1947
|
+
Us as FAQAccordion,
|
|
1948
|
+
ir as FooterCTAButton,
|
|
1949
|
+
rr as FooterShell,
|
|
1950
|
+
or as FormCheckboxWithHelp,
|
|
1951
|
+
Ys as FormContainer,
|
|
1952
|
+
Qs as FormDateInput,
|
|
1953
|
+
Zs as FormField,
|
|
1954
|
+
sr as FormFooterNote,
|
|
1955
|
+
tr as FormLocationInput,
|
|
1956
|
+
Vs as FormSectionHeader,
|
|
1957
|
+
nr as FormSegmentedControl,
|
|
1958
|
+
ar as FormTagPills,
|
|
1959
|
+
Xs as FormTextInput,
|
|
1960
|
+
er as FormTimeInput,
|
|
1961
|
+
ur as MOCK_ASTROLOGERS,
|
|
1962
|
+
zo as MOCK_SLOT_DAYS,
|
|
1963
|
+
mr as MOCK_SLOT_DAYS_EMPTY,
|
|
1964
|
+
cr as MarqueeStrip,
|
|
1965
|
+
Gs as PageHeader,
|
|
1966
|
+
_r as PhoneNumberInput,
|
|
1955
1967
|
Ma as PhoneNumberSection,
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1968
|
+
Js as PrivacyBanner,
|
|
1969
|
+
xs as RecommendedBadge,
|
|
1970
|
+
hr as RecommendedRibbon,
|
|
1971
|
+
Ks as UserReviewsSection,
|
|
1959
1972
|
Q as footerShellStyles,
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1973
|
+
ba as formatSlotDayLabel,
|
|
1974
|
+
ga as formatSlotTime,
|
|
1975
|
+
Go as getFlagEmoji,
|
|
1976
|
+
qe as getMaxLengthForCountry,
|
|
1977
|
+
Fe as validatePhoneByCountryCode
|
|
1965
1978
|
};
|
|
1966
1979
|
//# sourceMappingURL=index.js.map
|