@srimandir/astrology-common 7.2.0 → 7.2.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/CircularMarquee/CircularMarquee.d.ts +1 -1
- package/dist/components/ConsultationSlotSelector/types.d.ts +3 -1
- package/dist/components/Consultations/AstrologerCard.d.ts +11 -0
- package/dist/components/Consultations/AstrologerList.d.ts +18 -0
- package/dist/components/Consultations/AstrologerPhoto.d.ts +9 -0
- package/dist/components/Consultations/RecommendedBadge.d.ts +7 -0
- package/dist/components/Consultations/icons.d.ts +5 -0
- package/dist/components/Consultations/index.d.ts +6 -0
- package/dist/components/Consultations/mockAstrologers.d.ts +2 -0
- package/dist/components/Consultations/types.d.ts +10 -0
- package/dist/components/ContactUsSection/ContactUsSection.d.ts +1 -1
- package/dist/components/FAQAccordion/FAQAccordion.d.ts +1 -1
- package/dist/components/FooterShell/FooterCTAButton.d.ts +1 -1
- package/dist/components/FooterShell/FooterShell.d.ts +1 -1
- package/dist/components/FormCheckboxWithHelp/FormCheckboxWithHelp.d.ts +1 -1
- package/dist/components/FormContainer/FormContainer.d.ts +1 -1
- package/dist/components/FormDateInput/FormDateInput.d.ts +1 -1
- package/dist/components/FormField/FormField.d.ts +1 -1
- package/dist/components/FormFooterNote/FormFooterNote.d.ts +1 -1
- package/dist/components/FormLocationInput/FormLocationInput.d.ts +1 -1
- package/dist/components/FormSectionHeader/FormSectionHeader.d.ts +1 -1
- package/dist/components/FormSegmentedControl/FormSegmentedControl.d.ts +1 -1
- package/dist/components/FormTagPills/FormTagPills.d.ts +1 -1
- package/dist/components/FormTextInput/FormTextInput.d.ts +1 -1
- package/dist/components/FormTimeInput/FormTimeInput.d.ts +1 -1
- package/dist/components/MarqueeStrip/MarqueeStrip.d.ts +1 -1
- package/dist/components/PageHeader/PageHeader.d.ts +1 -1
- package/dist/components/PhoneNumberInput/PhoneNumberInput.d.ts +27 -0
- package/dist/components/PhoneNumberInput/countries.d.ts +13 -0
- package/dist/components/PhoneNumberInput/icons.d.ts +3 -0
- package/dist/components/PhoneNumberInput/index.d.ts +3 -0
- package/dist/components/PhoneNumberInput/usePhoneNumberInput.d.ts +22 -0
- package/dist/components/PrivacyBanner/PrivacyBanner.d.ts +1 -1
- package/dist/components/UserReviewsSection/UserReviewsSection.d.ts +1 -1
- package/dist/index.cjs +1 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +1388 -1517
- package/dist/index.js.map +1 -1
- package/dist/utils/phoneValidation.d.ts +6 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,757 +1,147 @@
|
|
|
1
1
|
import "./styles.js";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
function Ue(e, n, i) {
|
|
38
|
-
{
|
|
39
|
-
var p = C.ReactDebugCurrentFrame, w = p.getStackAddendum();
|
|
40
|
-
w !== "" && (n += "%s", i = i.concat([w]));
|
|
41
|
-
var N = i.map(function(y) {
|
|
42
|
-
return String(y);
|
|
43
|
-
});
|
|
44
|
-
N.unshift("Warning: " + n), Function.prototype.apply.call(console[e], console, N);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
var Ee = !1, ze = !1, E = !1, He = !1, F = !1, xe;
|
|
48
|
-
xe = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
49
|
-
function Ke(e) {
|
|
50
|
-
return !!(typeof e == "string" || typeof e == "function" || e === c || e === u || F || e === l || e === g || e === v || He || e === S || Ee || ze || E || typeof e == "object" && e !== null && (e.$$typeof === j || e.$$typeof === h || e.$$typeof === _ || e.$$typeof === d || e.$$typeof === f || // This needs to include all possible module reference object
|
|
51
|
-
// types supported by any Flight configuration anywhere since
|
|
52
|
-
// we don't know which Flight build this will end up being used
|
|
53
|
-
// with.
|
|
54
|
-
e.$$typeof === xe || e.getModuleId !== void 0));
|
|
55
|
-
}
|
|
56
|
-
function X(e, n, i) {
|
|
57
|
-
var p = e.displayName;
|
|
58
|
-
if (p)
|
|
59
|
-
return p;
|
|
60
|
-
var w = n.displayName || n.name || "";
|
|
61
|
-
return w !== "" ? i + "(" + w + ")" : i;
|
|
62
|
-
}
|
|
63
|
-
function J(e) {
|
|
64
|
-
return e.displayName || "Context";
|
|
65
|
-
}
|
|
66
|
-
function P(e) {
|
|
67
|
-
if (e == null)
|
|
68
|
-
return null;
|
|
69
|
-
if (typeof e.tag == "number" && $("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
70
|
-
return e.displayName || e.name || null;
|
|
71
|
-
if (typeof e == "string")
|
|
72
|
-
return e;
|
|
73
|
-
switch (e) {
|
|
74
|
-
case c:
|
|
75
|
-
return "Fragment";
|
|
76
|
-
case s:
|
|
77
|
-
return "Portal";
|
|
78
|
-
case u:
|
|
79
|
-
return "Profiler";
|
|
80
|
-
case l:
|
|
81
|
-
return "StrictMode";
|
|
82
|
-
case g:
|
|
83
|
-
return "Suspense";
|
|
84
|
-
case v:
|
|
85
|
-
return "SuspenseList";
|
|
86
|
-
}
|
|
87
|
-
if (typeof e == "object")
|
|
88
|
-
switch (e.$$typeof) {
|
|
89
|
-
case d:
|
|
90
|
-
var n = e;
|
|
91
|
-
return J(n) + ".Consumer";
|
|
92
|
-
case _:
|
|
93
|
-
var i = e;
|
|
94
|
-
return J(i._context) + ".Provider";
|
|
95
|
-
case f:
|
|
96
|
-
return X(e, e.render, "ForwardRef");
|
|
97
|
-
case h:
|
|
98
|
-
var p = e.displayName || null;
|
|
99
|
-
return p !== null ? p : P(e.type) || "Memo";
|
|
100
|
-
case j: {
|
|
101
|
-
var w = e, N = w._payload, y = w._init;
|
|
102
|
-
try {
|
|
103
|
-
return P(y(N));
|
|
104
|
-
} catch {
|
|
105
|
-
return null;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
return null;
|
|
110
|
-
}
|
|
111
|
-
var U = Object.assign, te = 0, z, ne, ye, Ce, je, De, Oe;
|
|
112
|
-
function we() {
|
|
113
|
-
}
|
|
114
|
-
we.__reactDisabledLog = !0;
|
|
115
|
-
function Ne() {
|
|
116
|
-
{
|
|
117
|
-
if (te === 0) {
|
|
118
|
-
z = console.log, ne = console.info, ye = console.warn, Ce = console.error, je = console.group, De = console.groupCollapsed, Oe = console.groupEnd;
|
|
119
|
-
var e = {
|
|
120
|
-
configurable: !0,
|
|
121
|
-
enumerable: !0,
|
|
122
|
-
value: we,
|
|
123
|
-
writable: !0
|
|
124
|
-
};
|
|
125
|
-
Object.defineProperties(console, {
|
|
126
|
-
info: e,
|
|
127
|
-
log: e,
|
|
128
|
-
warn: e,
|
|
129
|
-
error: e,
|
|
130
|
-
group: e,
|
|
131
|
-
groupCollapsed: e,
|
|
132
|
-
groupEnd: e
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
te++;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
function de() {
|
|
139
|
-
{
|
|
140
|
-
if (te--, te === 0) {
|
|
141
|
-
var e = {
|
|
142
|
-
configurable: !0,
|
|
143
|
-
enumerable: !0,
|
|
144
|
-
writable: !0
|
|
145
|
-
};
|
|
146
|
-
Object.defineProperties(console, {
|
|
147
|
-
log: U({}, e, {
|
|
148
|
-
value: z
|
|
149
|
-
}),
|
|
150
|
-
info: U({}, e, {
|
|
151
|
-
value: ne
|
|
152
|
-
}),
|
|
153
|
-
warn: U({}, e, {
|
|
154
|
-
value: ye
|
|
155
|
-
}),
|
|
156
|
-
error: U({}, e, {
|
|
157
|
-
value: Ce
|
|
158
|
-
}),
|
|
159
|
-
group: U({}, e, {
|
|
160
|
-
value: je
|
|
161
|
-
}),
|
|
162
|
-
groupCollapsed: U({}, e, {
|
|
163
|
-
value: De
|
|
164
|
-
}),
|
|
165
|
-
groupEnd: U({}, e, {
|
|
166
|
-
value: Oe
|
|
167
|
-
})
|
|
168
|
-
});
|
|
169
|
-
}
|
|
170
|
-
te < 0 && $("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
var ae = C.ReactCurrentDispatcher, re;
|
|
174
|
-
function oe(e, n, i) {
|
|
175
|
-
{
|
|
176
|
-
if (re === void 0)
|
|
177
|
-
try {
|
|
178
|
-
throw Error();
|
|
179
|
-
} catch (w) {
|
|
180
|
-
var p = w.stack.trim().match(/\n( *(at )?)/);
|
|
181
|
-
re = p && p[1] || "";
|
|
182
|
-
}
|
|
183
|
-
return `
|
|
184
|
-
` + re + e;
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
var ue = !1, H;
|
|
188
|
-
{
|
|
189
|
-
var Pe = typeof WeakMap == "function" ? WeakMap : Map;
|
|
190
|
-
H = new Pe();
|
|
191
|
-
}
|
|
192
|
-
function Te(e, n) {
|
|
193
|
-
if (!e || ue)
|
|
194
|
-
return "";
|
|
195
|
-
{
|
|
196
|
-
var i = H.get(e);
|
|
197
|
-
if (i !== void 0)
|
|
198
|
-
return i;
|
|
199
|
-
}
|
|
200
|
-
var p;
|
|
201
|
-
ue = !0;
|
|
202
|
-
var w = Error.prepareStackTrace;
|
|
203
|
-
Error.prepareStackTrace = void 0;
|
|
204
|
-
var N;
|
|
205
|
-
N = ae.current, ae.current = null, Ne();
|
|
206
|
-
try {
|
|
207
|
-
if (n) {
|
|
208
|
-
var y = function() {
|
|
209
|
-
throw Error();
|
|
210
|
-
};
|
|
211
|
-
if (Object.defineProperty(y.prototype, "props", {
|
|
212
|
-
set: function() {
|
|
213
|
-
throw Error();
|
|
214
|
-
}
|
|
215
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
216
|
-
try {
|
|
217
|
-
Reflect.construct(y, []);
|
|
218
|
-
} catch (L) {
|
|
219
|
-
p = L;
|
|
220
|
-
}
|
|
221
|
-
Reflect.construct(e, [], y);
|
|
222
|
-
} else {
|
|
223
|
-
try {
|
|
224
|
-
y.call();
|
|
225
|
-
} catch (L) {
|
|
226
|
-
p = L;
|
|
227
|
-
}
|
|
228
|
-
e.call(y.prototype);
|
|
229
|
-
}
|
|
230
|
-
} else {
|
|
231
|
-
try {
|
|
232
|
-
throw Error();
|
|
233
|
-
} catch (L) {
|
|
234
|
-
p = L;
|
|
235
|
-
}
|
|
236
|
-
e();
|
|
237
|
-
}
|
|
238
|
-
} catch (L) {
|
|
239
|
-
if (L && p && typeof L.stack == "string") {
|
|
240
|
-
for (var b = L.stack.split(`
|
|
241
|
-
`), O = p.stack.split(`
|
|
242
|
-
`), k = b.length - 1, R = O.length - 1; k >= 1 && R >= 0 && b[k] !== O[R]; )
|
|
243
|
-
R--;
|
|
244
|
-
for (; k >= 1 && R >= 0; k--, R--)
|
|
245
|
-
if (b[k] !== O[R]) {
|
|
246
|
-
if (k !== 1 || R !== 1)
|
|
247
|
-
do
|
|
248
|
-
if (k--, R--, R < 0 || b[k] !== O[R]) {
|
|
249
|
-
var A = `
|
|
250
|
-
` + b[k].replace(" at new ", " at ");
|
|
251
|
-
return e.displayName && A.includes("<anonymous>") && (A = A.replace("<anonymous>", e.displayName)), typeof e == "function" && H.set(e, A), A;
|
|
252
|
-
}
|
|
253
|
-
while (k >= 1 && R >= 0);
|
|
254
|
-
break;
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
} finally {
|
|
258
|
-
ue = !1, ae.current = N, de(), Error.prepareStackTrace = w;
|
|
259
|
-
}
|
|
260
|
-
var he = e ? e.displayName || e.name : "", ce = he ? oe(he) : "";
|
|
261
|
-
return typeof e == "function" && H.set(e, ce), ce;
|
|
262
|
-
}
|
|
263
|
-
function Le(e, n, i) {
|
|
264
|
-
return Te(e, !1);
|
|
265
|
-
}
|
|
266
|
-
function Se(e) {
|
|
267
|
-
var n = e.prototype;
|
|
268
|
-
return !!(n && n.isReactComponent);
|
|
269
|
-
}
|
|
270
|
-
function se(e, n, i) {
|
|
271
|
-
if (e == null)
|
|
272
|
-
return "";
|
|
273
|
-
if (typeof e == "function")
|
|
274
|
-
return Te(e, Se(e));
|
|
275
|
-
if (typeof e == "string")
|
|
276
|
-
return oe(e);
|
|
277
|
-
switch (e) {
|
|
278
|
-
case g:
|
|
279
|
-
return oe("Suspense");
|
|
280
|
-
case v:
|
|
281
|
-
return oe("SuspenseList");
|
|
282
|
-
}
|
|
283
|
-
if (typeof e == "object")
|
|
284
|
-
switch (e.$$typeof) {
|
|
285
|
-
case f:
|
|
286
|
-
return Le(e.render);
|
|
287
|
-
case h:
|
|
288
|
-
return se(e.type, n, i);
|
|
289
|
-
case j: {
|
|
290
|
-
var p = e, w = p._payload, N = p._init;
|
|
291
|
-
try {
|
|
292
|
-
return se(N(w), n, i);
|
|
293
|
-
} catch {
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
return "";
|
|
298
|
-
}
|
|
299
|
-
var ie = Object.prototype.hasOwnProperty, Me = {}, Be = C.ReactDebugCurrentFrame;
|
|
300
|
-
function _e(e) {
|
|
301
|
-
if (e) {
|
|
302
|
-
var n = e._owner, i = se(e.type, e._source, n ? n.type : null);
|
|
303
|
-
Be.setExtraStackFrame(i);
|
|
304
|
-
} else
|
|
305
|
-
Be.setExtraStackFrame(null);
|
|
306
|
-
}
|
|
307
|
-
function o(e, n, i, p, w) {
|
|
308
|
-
{
|
|
309
|
-
var N = Function.call.bind(ie);
|
|
310
|
-
for (var y in e)
|
|
311
|
-
if (N(e, y)) {
|
|
312
|
-
var b = void 0;
|
|
313
|
-
try {
|
|
314
|
-
if (typeof e[y] != "function") {
|
|
315
|
-
var O = Error((p || "React class") + ": " + i + " type `" + y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[y] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
316
|
-
throw O.name = "Invariant Violation", O;
|
|
317
|
-
}
|
|
318
|
-
b = e[y](n, y, p, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
319
|
-
} catch (k) {
|
|
320
|
-
b = k;
|
|
321
|
-
}
|
|
322
|
-
b && !(b instanceof Error) && (_e(w), $("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", p || "React class", i, y, typeof b), _e(null)), b instanceof Error && !(b.message in Me) && (Me[b.message] = !0, _e(w), $("Failed %s type: %s", i, b.message), _e(null));
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
var x = Array.isArray;
|
|
327
|
-
function D(e) {
|
|
328
|
-
return x(e);
|
|
329
|
-
}
|
|
330
|
-
function K(e) {
|
|
331
|
-
{
|
|
332
|
-
var n = typeof Symbol == "function" && Symbol.toStringTag, i = n && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
333
|
-
return i;
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
function M(e) {
|
|
337
|
-
try {
|
|
338
|
-
return nt(e), !1;
|
|
339
|
-
} catch {
|
|
340
|
-
return !0;
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
function nt(e) {
|
|
344
|
-
return "" + e;
|
|
345
|
-
}
|
|
346
|
-
function at(e) {
|
|
347
|
-
if (M(e))
|
|
348
|
-
return $("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", K(e)), nt(e);
|
|
349
|
-
}
|
|
350
|
-
var rt = C.ReactCurrentOwner, wt = {
|
|
351
|
-
key: !0,
|
|
352
|
-
ref: !0,
|
|
353
|
-
__self: !0,
|
|
354
|
-
__source: !0
|
|
355
|
-
}, ot, st;
|
|
356
|
-
function Nt(e) {
|
|
357
|
-
if (ie.call(e, "ref")) {
|
|
358
|
-
var n = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
359
|
-
if (n && n.isReactWarning)
|
|
360
|
-
return !1;
|
|
361
|
-
}
|
|
362
|
-
return e.ref !== void 0;
|
|
363
|
-
}
|
|
364
|
-
function Tt(e) {
|
|
365
|
-
if (ie.call(e, "key")) {
|
|
366
|
-
var n = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
367
|
-
if (n && n.isReactWarning)
|
|
368
|
-
return !1;
|
|
369
|
-
}
|
|
370
|
-
return e.key !== void 0;
|
|
371
|
-
}
|
|
372
|
-
function St(e, n) {
|
|
373
|
-
typeof e.ref == "string" && rt.current;
|
|
374
|
-
}
|
|
375
|
-
function kt(e, n) {
|
|
376
|
-
{
|
|
377
|
-
var i = function() {
|
|
378
|
-
ot || (ot = !0, $("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", n));
|
|
379
|
-
};
|
|
380
|
-
i.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
381
|
-
get: i,
|
|
382
|
-
configurable: !0
|
|
383
|
-
});
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
function Rt(e, n) {
|
|
387
|
-
{
|
|
388
|
-
var i = function() {
|
|
389
|
-
st || (st = !0, $("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", n));
|
|
390
|
-
};
|
|
391
|
-
i.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
392
|
-
get: i,
|
|
393
|
-
configurable: !0
|
|
394
|
-
});
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
var $t = function(e, n, i, p, w, N, y) {
|
|
398
|
-
var b = {
|
|
399
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
400
|
-
$$typeof: r,
|
|
401
|
-
// Built-in properties that belong on the element
|
|
402
|
-
type: e,
|
|
403
|
-
key: n,
|
|
404
|
-
ref: i,
|
|
405
|
-
props: y,
|
|
406
|
-
// Record the component responsible for creating this element.
|
|
407
|
-
_owner: N
|
|
408
|
-
};
|
|
409
|
-
return b._store = {}, Object.defineProperty(b._store, "validated", {
|
|
410
|
-
configurable: !1,
|
|
411
|
-
enumerable: !1,
|
|
412
|
-
writable: !0,
|
|
413
|
-
value: !1
|
|
414
|
-
}), Object.defineProperty(b, "_self", {
|
|
415
|
-
configurable: !1,
|
|
416
|
-
enumerable: !1,
|
|
417
|
-
writable: !1,
|
|
418
|
-
value: p
|
|
419
|
-
}), Object.defineProperty(b, "_source", {
|
|
420
|
-
configurable: !1,
|
|
421
|
-
enumerable: !1,
|
|
422
|
-
writable: !1,
|
|
423
|
-
value: w
|
|
424
|
-
}), Object.freeze && (Object.freeze(b.props), Object.freeze(b)), b;
|
|
425
|
-
};
|
|
426
|
-
function It(e, n, i, p, w) {
|
|
427
|
-
{
|
|
428
|
-
var N, y = {}, b = null, O = null;
|
|
429
|
-
i !== void 0 && (at(i), b = "" + i), Tt(n) && (at(n.key), b = "" + n.key), Nt(n) && (O = n.ref, St(n, w));
|
|
430
|
-
for (N in n)
|
|
431
|
-
ie.call(n, N) && !wt.hasOwnProperty(N) && (y[N] = n[N]);
|
|
432
|
-
if (e && e.defaultProps) {
|
|
433
|
-
var k = e.defaultProps;
|
|
434
|
-
for (N in k)
|
|
435
|
-
y[N] === void 0 && (y[N] = k[N]);
|
|
436
|
-
}
|
|
437
|
-
if (b || O) {
|
|
438
|
-
var R = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
439
|
-
b && kt(y, R), O && Rt(y, R);
|
|
440
|
-
}
|
|
441
|
-
return $t(e, b, O, w, p, rt.current, y);
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
var Ge = C.ReactCurrentOwner, it = C.ReactDebugCurrentFrame;
|
|
445
|
-
function fe(e) {
|
|
446
|
-
if (e) {
|
|
447
|
-
var n = e._owner, i = se(e.type, e._source, n ? n.type : null);
|
|
448
|
-
it.setExtraStackFrame(i);
|
|
449
|
-
} else
|
|
450
|
-
it.setExtraStackFrame(null);
|
|
451
|
-
}
|
|
452
|
-
var Ve;
|
|
453
|
-
Ve = !1;
|
|
454
|
-
function Je(e) {
|
|
455
|
-
return typeof e == "object" && e !== null && e.$$typeof === r;
|
|
456
|
-
}
|
|
457
|
-
function ct() {
|
|
458
|
-
{
|
|
459
|
-
if (Ge.current) {
|
|
460
|
-
var e = P(Ge.current.type);
|
|
461
|
-
if (e)
|
|
462
|
-
return `
|
|
463
|
-
|
|
464
|
-
Check the render method of \`` + e + "`.";
|
|
465
|
-
}
|
|
466
|
-
return "";
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
function Et(e) {
|
|
470
|
-
return "";
|
|
471
|
-
}
|
|
472
|
-
var lt = {};
|
|
473
|
-
function Ct(e) {
|
|
474
|
-
{
|
|
475
|
-
var n = ct();
|
|
476
|
-
if (!n) {
|
|
477
|
-
var i = typeof e == "string" ? e : e.displayName || e.name;
|
|
478
|
-
i && (n = `
|
|
479
|
-
|
|
480
|
-
Check the top-level render call using <` + i + ">.");
|
|
481
|
-
}
|
|
482
|
-
return n;
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
function dt(e, n) {
|
|
486
|
-
{
|
|
487
|
-
if (!e._store || e._store.validated || e.key != null)
|
|
488
|
-
return;
|
|
489
|
-
e._store.validated = !0;
|
|
490
|
-
var i = Ct(n);
|
|
491
|
-
if (lt[i])
|
|
492
|
-
return;
|
|
493
|
-
lt[i] = !0;
|
|
494
|
-
var p = "";
|
|
495
|
-
e && e._owner && e._owner !== Ge.current && (p = " It was passed a child from " + P(e._owner.type) + "."), fe(e), $('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, p), fe(null);
|
|
496
|
-
}
|
|
497
|
-
}
|
|
498
|
-
function ut(e, n) {
|
|
499
|
-
{
|
|
500
|
-
if (typeof e != "object")
|
|
501
|
-
return;
|
|
502
|
-
if (D(e))
|
|
503
|
-
for (var i = 0; i < e.length; i++) {
|
|
504
|
-
var p = e[i];
|
|
505
|
-
Je(p) && dt(p, n);
|
|
506
|
-
}
|
|
507
|
-
else if (Je(e))
|
|
508
|
-
e._store && (e._store.validated = !0);
|
|
509
|
-
else if (e) {
|
|
510
|
-
var w = ve(e);
|
|
511
|
-
if (typeof w == "function" && w !== e.entries)
|
|
512
|
-
for (var N = w.call(e), y; !(y = N.next()).done; )
|
|
513
|
-
Je(y.value) && dt(y.value, n);
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
function Dt(e) {
|
|
518
|
-
{
|
|
519
|
-
var n = e.type;
|
|
520
|
-
if (n == null || typeof n == "string")
|
|
521
|
-
return;
|
|
522
|
-
var i;
|
|
523
|
-
if (typeof n == "function")
|
|
524
|
-
i = n.propTypes;
|
|
525
|
-
else if (typeof n == "object" && (n.$$typeof === f || // Note: Memo only checks outer props here.
|
|
526
|
-
// Inner props are checked in the reconciler.
|
|
527
|
-
n.$$typeof === h))
|
|
528
|
-
i = n.propTypes;
|
|
529
|
-
else
|
|
530
|
-
return;
|
|
531
|
-
if (i) {
|
|
532
|
-
var p = P(n);
|
|
533
|
-
o(i, e.props, "prop", p, e);
|
|
534
|
-
} else if (n.PropTypes !== void 0 && !Ve) {
|
|
535
|
-
Ve = !0;
|
|
536
|
-
var w = P(n);
|
|
537
|
-
$("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", w || "Unknown");
|
|
538
|
-
}
|
|
539
|
-
typeof n.getDefaultProps == "function" && !n.getDefaultProps.isReactClassApproved && $("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
function Ot(e) {
|
|
543
|
-
{
|
|
544
|
-
for (var n = Object.keys(e.props), i = 0; i < n.length; i++) {
|
|
545
|
-
var p = n[i];
|
|
546
|
-
if (p !== "children" && p !== "key") {
|
|
547
|
-
fe(e), $("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", p), fe(null);
|
|
548
|
-
break;
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
e.ref !== null && (fe(e), $("Invalid attribute `ref` supplied to `React.Fragment`."), fe(null));
|
|
552
|
-
}
|
|
553
|
-
}
|
|
554
|
-
var _t = {};
|
|
555
|
-
function ft(e, n, i, p, w, N) {
|
|
556
|
-
{
|
|
557
|
-
var y = Ke(e);
|
|
558
|
-
if (!y) {
|
|
559
|
-
var b = "";
|
|
560
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (b += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
561
|
-
var O = Et();
|
|
562
|
-
O ? b += O : b += ct();
|
|
563
|
-
var k;
|
|
564
|
-
e === null ? k = "null" : D(e) ? k = "array" : e !== void 0 && e.$$typeof === r ? (k = "<" + (P(e.type) || "Unknown") + " />", b = " Did you accidentally export a JSX literal instead of a component?") : k = typeof e, $("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", k, b);
|
|
565
|
-
}
|
|
566
|
-
var R = It(e, n, i, w, N);
|
|
567
|
-
if (R == null)
|
|
568
|
-
return R;
|
|
569
|
-
if (y) {
|
|
570
|
-
var A = n.children;
|
|
571
|
-
if (A !== void 0)
|
|
572
|
-
if (p)
|
|
573
|
-
if (D(A)) {
|
|
574
|
-
for (var he = 0; he < A.length; he++)
|
|
575
|
-
ut(A[he], e);
|
|
576
|
-
Object.freeze && Object.freeze(A);
|
|
577
|
-
} else
|
|
578
|
-
$("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
579
|
-
else
|
|
580
|
-
ut(A, e);
|
|
581
|
-
}
|
|
582
|
-
if (ie.call(n, "key")) {
|
|
583
|
-
var ce = P(e), L = Object.keys(n).filter(function(Ft) {
|
|
584
|
-
return Ft !== "key";
|
|
585
|
-
}), Xe = L.length > 0 ? "{key: someKey, " + L.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
586
|
-
if (!_t[ce + Xe]) {
|
|
587
|
-
var At = L.length > 0 ? "{" + L.join(": ..., ") + ": ...}" : "{}";
|
|
588
|
-
$(`A props object containing a "key" prop is being spread into JSX:
|
|
589
|
-
let props = %s;
|
|
590
|
-
<%s {...props} />
|
|
591
|
-
React keys must be passed directly to JSX without using spread:
|
|
592
|
-
let props = %s;
|
|
593
|
-
<%s key={someKey} {...props} />`, Xe, ce, At, ce), _t[ce + Xe] = !0;
|
|
594
|
-
}
|
|
595
|
-
}
|
|
596
|
-
return e === c ? Ot(R) : Dt(R), R;
|
|
597
|
-
}
|
|
598
|
-
}
|
|
599
|
-
function Pt(e, n, i) {
|
|
600
|
-
return ft(e, n, i, !0);
|
|
601
|
-
}
|
|
602
|
-
function Lt(e, n, i) {
|
|
603
|
-
return ft(e, n, i, !1);
|
|
604
|
-
}
|
|
605
|
-
var Mt = Lt, Bt = Pt;
|
|
606
|
-
Re.Fragment = c, Re.jsx = Mt, Re.jsxs = Bt;
|
|
607
|
-
})()), Re;
|
|
608
|
-
}
|
|
609
|
-
var mt;
|
|
610
|
-
function Ut() {
|
|
611
|
-
return mt || (mt = 1, process.env.NODE_ENV === "production" ? Ae.exports = Wt() : Ae.exports = Yt()), Ae.exports;
|
|
612
|
-
}
|
|
613
|
-
var t = Ut();
|
|
614
|
-
const zt = "_section_1fboo_1", Ht = "_heading_1fboo_5", Kt = "_trustLine_1fboo_9", Gt = "_star_1fboo_13", Vt = "_ratingNum_1fboo_17", Jt = "_trustText_1fboo_21", Xt = "_cardList_1fboo_25", Qt = "_card_1fboo_25", Zt = "_quote_1fboo_37", en = "_author_1fboo_41", tn = "_avatar_1fboo_45", nn = "_avatarPlaceholder_1fboo_49", an = "_authorInfo_1fboo_54", rn = "_authorName_1fboo_58", on = "_stars_1fboo_62", sn = "_readMoreWrap_1fboo_66", cn = "_toggleBtn_1fboo_70", ln = "_readMore_1fboo_66", dn = "_arrow_1fboo_89", un = "_dot_1fboo_93", T = {
|
|
615
|
-
section: zt,
|
|
616
|
-
heading: Ht,
|
|
617
|
-
trustLine: Kt,
|
|
618
|
-
star: Gt,
|
|
619
|
-
ratingNum: Vt,
|
|
620
|
-
trustText: Jt,
|
|
621
|
-
cardList: Xt,
|
|
622
|
-
card: Qt,
|
|
623
|
-
quote: Zt,
|
|
624
|
-
author: en,
|
|
625
|
-
avatar: tn,
|
|
626
|
-
avatarPlaceholder: nn,
|
|
627
|
-
authorInfo: an,
|
|
628
|
-
authorName: rn,
|
|
629
|
-
stars: on,
|
|
630
|
-
readMoreWrap: sn,
|
|
631
|
-
toggleBtn: cn,
|
|
632
|
-
readMore: ln,
|
|
633
|
-
arrow: dn,
|
|
634
|
-
dot: un
|
|
635
|
-
}, _n = 3, gt = 15;
|
|
636
|
-
function fn(a) {
|
|
637
|
-
const r = /* @__PURE__ */ new Map();
|
|
638
|
-
for (let d = 1; d <= gt; d += 1) {
|
|
639
|
-
const f = `feedbackTestimonial${d}`, g = a(f);
|
|
640
|
-
if (!g || g === f) continue;
|
|
641
|
-
const v = `feedbackAuthor${d}`, h = (() => {
|
|
642
|
-
const I = a(v);
|
|
643
|
-
return I && I !== v ? I : a("guest");
|
|
644
|
-
})(), j = `feedbackAuthor${d}AvatarUrl`, S = (() => {
|
|
645
|
-
const I = a(j);
|
|
646
|
-
return I && I !== j ? I : void 0;
|
|
2
|
+
import { jsxs as i, jsx as e, Fragment as De } from "react/jsx-runtime";
|
|
3
|
+
import { useMemo as E, useState as $, useEffect as re, useRef as Y, Fragment as Je, useCallback as le } from "react";
|
|
4
|
+
const Ze = "_section_1fboo_1", Xe = "_heading_1fboo_5", Qe = "_trustLine_1fboo_9", et = "_star_1fboo_13", tt = "_ratingNum_1fboo_17", nt = "_trustText_1fboo_21", at = "_cardList_1fboo_25", ot = "_card_1fboo_25", st = "_quote_1fboo_37", rt = "_author_1fboo_41", it = "_avatar_1fboo_45", ct = "_avatarPlaceholder_1fboo_49", lt = "_authorInfo_1fboo_54", dt = "_authorName_1fboo_58", mt = "_stars_1fboo_62", _t = "_readMoreWrap_1fboo_66", ht = "_toggleBtn_1fboo_70", ut = "_readMore_1fboo_66", gt = "_arrow_1fboo_89", pt = "_dot_1fboo_93", v = {
|
|
5
|
+
section: Ze,
|
|
6
|
+
heading: Xe,
|
|
7
|
+
trustLine: Qe,
|
|
8
|
+
star: et,
|
|
9
|
+
ratingNum: tt,
|
|
10
|
+
trustText: nt,
|
|
11
|
+
cardList: at,
|
|
12
|
+
card: ot,
|
|
13
|
+
quote: st,
|
|
14
|
+
author: rt,
|
|
15
|
+
avatar: it,
|
|
16
|
+
avatarPlaceholder: ct,
|
|
17
|
+
authorInfo: lt,
|
|
18
|
+
authorName: dt,
|
|
19
|
+
stars: mt,
|
|
20
|
+
readMoreWrap: _t,
|
|
21
|
+
toggleBtn: ht,
|
|
22
|
+
readMore: ut,
|
|
23
|
+
arrow: gt,
|
|
24
|
+
dot: pt
|
|
25
|
+
}, bt = 3, Be = 15;
|
|
26
|
+
function ft(t) {
|
|
27
|
+
const n = /* @__PURE__ */ new Map();
|
|
28
|
+
for (let l = 1; l <= Be; l += 1) {
|
|
29
|
+
const u = `feedbackTestimonial${l}`, h = t(u);
|
|
30
|
+
if (!h || h === u) continue;
|
|
31
|
+
const f = `feedbackAuthor${l}`, _ = (() => {
|
|
32
|
+
const w = t(f);
|
|
33
|
+
return w && w !== f ? w : t("guest");
|
|
34
|
+
})(), p = `feedbackAuthor${l}AvatarUrl`, b = (() => {
|
|
35
|
+
const w = t(p);
|
|
36
|
+
return w && w !== p ? w : void 0;
|
|
647
37
|
})();
|
|
648
|
-
|
|
649
|
-
quote:
|
|
650
|
-
authorName:
|
|
651
|
-
authorAvatarUrl:
|
|
38
|
+
n.set(l, {
|
|
39
|
+
quote: h,
|
|
40
|
+
authorName: _,
|
|
41
|
+
authorAvatarUrl: b,
|
|
652
42
|
rating: 5
|
|
653
43
|
});
|
|
654
44
|
}
|
|
655
|
-
const
|
|
656
|
-
for (let
|
|
657
|
-
|
|
658
|
-
const
|
|
659
|
-
let
|
|
660
|
-
for (;
|
|
661
|
-
if (
|
|
662
|
-
const
|
|
663
|
-
|
|
45
|
+
const a = [], s = [];
|
|
46
|
+
for (let l = 1; l <= Be; l += 1)
|
|
47
|
+
l >= 9 ? s.push(l) : a.push(l);
|
|
48
|
+
const r = [];
|
|
49
|
+
let c = 0, d = 0;
|
|
50
|
+
for (; c < a.length || d < s.length; ) {
|
|
51
|
+
if (d < s.length) {
|
|
52
|
+
const l = s[d++], u = n.get(l);
|
|
53
|
+
u && r.push(u);
|
|
664
54
|
}
|
|
665
|
-
if (
|
|
666
|
-
const
|
|
667
|
-
|
|
55
|
+
if (c < a.length) {
|
|
56
|
+
const l = a[c++], u = n.get(l);
|
|
57
|
+
u && r.push(u);
|
|
668
58
|
}
|
|
669
59
|
}
|
|
670
|
-
return
|
|
60
|
+
return r;
|
|
671
61
|
}
|
|
672
|
-
function
|
|
673
|
-
t
|
|
674
|
-
testimonials:
|
|
675
|
-
initialVisible:
|
|
676
|
-
readMoreHref:
|
|
677
|
-
onReadMore:
|
|
678
|
-
className:
|
|
679
|
-
headingClassName:
|
|
62
|
+
function Es({
|
|
63
|
+
t,
|
|
64
|
+
testimonials: n,
|
|
65
|
+
initialVisible: a = bt,
|
|
66
|
+
readMoreHref: s,
|
|
67
|
+
onReadMore: r,
|
|
68
|
+
className: c = "",
|
|
69
|
+
headingClassName: d
|
|
680
70
|
}) {
|
|
681
|
-
const
|
|
682
|
-
return /* @__PURE__ */
|
|
71
|
+
const l = n ?? E(() => ft(t), [t]), [u, h] = $(!1), f = l.length > a, _ = f && !u ? l.slice(0, a) : l, p = t("feedbackTitle"), b = t("feedbackRating"), w = t("feedbackTrust"), O = t("readMoreReviews"), k = t("readLess");
|
|
72
|
+
return /* @__PURE__ */ i(
|
|
683
73
|
"section",
|
|
684
74
|
{
|
|
685
|
-
className: `${
|
|
75
|
+
className: `${v.section} ${c}`,
|
|
686
76
|
"aria-labelledby": "reviews-heading",
|
|
687
77
|
children: [
|
|
688
|
-
/* @__PURE__ */
|
|
78
|
+
/* @__PURE__ */ e(
|
|
689
79
|
"h2",
|
|
690
80
|
{
|
|
691
81
|
id: "reviews-heading",
|
|
692
|
-
className: [
|
|
693
|
-
children:
|
|
82
|
+
className: [v.heading, d].filter(Boolean).join(" "),
|
|
83
|
+
children: p
|
|
694
84
|
}
|
|
695
85
|
),
|
|
696
|
-
/* @__PURE__ */
|
|
697
|
-
/* @__PURE__ */
|
|
698
|
-
/* @__PURE__ */
|
|
699
|
-
/* @__PURE__ */
|
|
700
|
-
/* @__PURE__ */
|
|
86
|
+
/* @__PURE__ */ i("p", { className: v.trustLine, children: [
|
|
87
|
+
/* @__PURE__ */ e("span", { className: v.star, "aria-hidden": !0, children: "★" }),
|
|
88
|
+
/* @__PURE__ */ e("span", { className: v.ratingNum, children: b }),
|
|
89
|
+
/* @__PURE__ */ e("span", { className: v.dot, "aria-hidden": !0 }),
|
|
90
|
+
/* @__PURE__ */ e("span", { className: v.trustText, children: w })
|
|
701
91
|
] }),
|
|
702
|
-
/* @__PURE__ */
|
|
703
|
-
/* @__PURE__ */
|
|
704
|
-
/* @__PURE__ */
|
|
705
|
-
|
|
92
|
+
/* @__PURE__ */ e("ul", { className: v.cardList, children: _.map((T, P) => /* @__PURE__ */ i("li", { className: v.card, children: [
|
|
93
|
+
/* @__PURE__ */ e("p", { className: v.quote, children: T.quote }),
|
|
94
|
+
/* @__PURE__ */ i("div", { className: v.author, children: [
|
|
95
|
+
T.authorAvatarUrl ? /* @__PURE__ */ e(
|
|
706
96
|
"img",
|
|
707
97
|
{
|
|
708
|
-
src:
|
|
98
|
+
src: T.authorAvatarUrl,
|
|
709
99
|
alt: "",
|
|
710
|
-
className:
|
|
100
|
+
className: v.avatar,
|
|
711
101
|
width: 40,
|
|
712
102
|
height: 40
|
|
713
103
|
}
|
|
714
|
-
) : /* @__PURE__ */
|
|
715
|
-
/* @__PURE__ */
|
|
716
|
-
/* @__PURE__ */
|
|
717
|
-
/* @__PURE__ */
|
|
104
|
+
) : /* @__PURE__ */ e("div", { className: v.avatarPlaceholder, "aria-hidden": !0 }),
|
|
105
|
+
/* @__PURE__ */ i("div", { className: v.authorInfo, children: [
|
|
106
|
+
/* @__PURE__ */ e("span", { className: v.authorName, children: T.authorName }),
|
|
107
|
+
/* @__PURE__ */ e("span", { className: v.stars, "aria-hidden": !0, children: "★".repeat(T.rating ?? 5) })
|
|
718
108
|
] })
|
|
719
109
|
] })
|
|
720
|
-
] },
|
|
721
|
-
|
|
110
|
+
] }, P)) }),
|
|
111
|
+
f && /* @__PURE__ */ e("div", { className: v.readMoreWrap, children: /* @__PURE__ */ i(
|
|
722
112
|
"button",
|
|
723
113
|
{
|
|
724
114
|
type: "button",
|
|
725
|
-
className:
|
|
726
|
-
onClick: () =>
|
|
727
|
-
"aria-expanded":
|
|
115
|
+
className: v.toggleBtn,
|
|
116
|
+
onClick: () => h((T) => !T),
|
|
117
|
+
"aria-expanded": u,
|
|
728
118
|
children: [
|
|
729
|
-
|
|
730
|
-
/* @__PURE__ */
|
|
119
|
+
u ? k : O,
|
|
120
|
+
/* @__PURE__ */ e("span", { className: v.arrow, "aria-hidden": !0, children: "›" })
|
|
731
121
|
]
|
|
732
122
|
}
|
|
733
123
|
) }),
|
|
734
|
-
(
|
|
124
|
+
(s || r) && !f && /* @__PURE__ */ e("div", { className: v.readMoreWrap, children: s ? /* @__PURE__ */ i(
|
|
735
125
|
"a",
|
|
736
126
|
{
|
|
737
|
-
href:
|
|
738
|
-
className:
|
|
127
|
+
href: s,
|
|
128
|
+
className: v.readMore,
|
|
739
129
|
target: "_blank",
|
|
740
130
|
rel: "noopener noreferrer",
|
|
741
131
|
children: [
|
|
742
|
-
|
|
743
|
-
/* @__PURE__ */
|
|
132
|
+
O,
|
|
133
|
+
/* @__PURE__ */ e("span", { className: v.arrow, "aria-hidden": !0, children: "›" })
|
|
744
134
|
]
|
|
745
135
|
}
|
|
746
|
-
) : /* @__PURE__ */
|
|
136
|
+
) : /* @__PURE__ */ i(
|
|
747
137
|
"button",
|
|
748
138
|
{
|
|
749
139
|
type: "button",
|
|
750
|
-
className:
|
|
751
|
-
onClick: () =>
|
|
140
|
+
className: v.readMore,
|
|
141
|
+
onClick: () => r?.(),
|
|
752
142
|
children: [
|
|
753
|
-
|
|
754
|
-
/* @__PURE__ */
|
|
143
|
+
O,
|
|
144
|
+
/* @__PURE__ */ e("span", { className: v.arrow, "aria-hidden": !0, children: "›" })
|
|
755
145
|
]
|
|
756
146
|
}
|
|
757
147
|
) })
|
|
@@ -759,77 +149,77 @@ function Lo({
|
|
|
759
149
|
}
|
|
760
150
|
);
|
|
761
151
|
}
|
|
762
|
-
const
|
|
763
|
-
section:
|
|
764
|
-
heading:
|
|
765
|
-
accordion:
|
|
766
|
-
item:
|
|
767
|
-
itemOpen:
|
|
768
|
-
question:
|
|
769
|
-
chevron:
|
|
770
|
-
chevronOpen:
|
|
771
|
-
answerWrap:
|
|
772
|
-
answerOpen:
|
|
773
|
-
answer:
|
|
152
|
+
const vt = "_section_4dc65_1", Nt = "_heading_4dc65_5", wt = "_accordion_4dc65_9", yt = "_item_4dc65_13", kt = "_itemOpen_4dc65_17", St = "_question_4dc65_22", It = "_chevron_4dc65_30", $t = "_chevronOpen_4dc65_34", Tt = "_answerWrap_4dc65_38", Lt = "_answerOpen_4dc65_42", xt = "_answer_4dc65_38", M = {
|
|
153
|
+
section: vt,
|
|
154
|
+
heading: Nt,
|
|
155
|
+
accordion: wt,
|
|
156
|
+
item: yt,
|
|
157
|
+
itemOpen: kt,
|
|
158
|
+
question: St,
|
|
159
|
+
chevron: It,
|
|
160
|
+
chevronOpen: $t,
|
|
161
|
+
answerWrap: Tt,
|
|
162
|
+
answerOpen: Lt,
|
|
163
|
+
answer: xt
|
|
774
164
|
};
|
|
775
|
-
function
|
|
776
|
-
t
|
|
777
|
-
items:
|
|
778
|
-
resolveAnswerKey:
|
|
779
|
-
defaultOpenIndex:
|
|
780
|
-
onItemOpen:
|
|
781
|
-
className:
|
|
782
|
-
headingClassName:
|
|
165
|
+
function Os({
|
|
166
|
+
t,
|
|
167
|
+
items: n,
|
|
168
|
+
resolveAnswerKey: a,
|
|
169
|
+
defaultOpenIndex: s = 0,
|
|
170
|
+
onItemOpen: r,
|
|
171
|
+
className: c = "",
|
|
172
|
+
headingClassName: d
|
|
783
173
|
}) {
|
|
784
|
-
const
|
|
785
|
-
() =>
|
|
786
|
-
question:
|
|
787
|
-
answer: a
|
|
174
|
+
const l = E(
|
|
175
|
+
() => n.map(({ qKey: _, aKey: p }) => ({
|
|
176
|
+
question: t(_),
|
|
177
|
+
answer: t(a ? a(p) : p)
|
|
788
178
|
})),
|
|
789
|
-
[
|
|
790
|
-
), [
|
|
791
|
-
return /* @__PURE__ */
|
|
179
|
+
[t, n, a]
|
|
180
|
+
), [u, h] = $(s), f = t("faqTitle");
|
|
181
|
+
return /* @__PURE__ */ i(
|
|
792
182
|
"section",
|
|
793
183
|
{
|
|
794
|
-
className: `${
|
|
184
|
+
className: `${M.section} ${c}`,
|
|
795
185
|
"aria-labelledby": "faq-heading",
|
|
796
186
|
children: [
|
|
797
|
-
/* @__PURE__ */
|
|
187
|
+
/* @__PURE__ */ e(
|
|
798
188
|
"h2",
|
|
799
189
|
{
|
|
800
190
|
id: "faq-heading",
|
|
801
|
-
className: [
|
|
802
|
-
children:
|
|
191
|
+
className: [M.heading, d].filter(Boolean).join(" "),
|
|
192
|
+
children: f
|
|
803
193
|
}
|
|
804
194
|
),
|
|
805
|
-
/* @__PURE__ */
|
|
806
|
-
const
|
|
807
|
-
return /* @__PURE__ */
|
|
195
|
+
/* @__PURE__ */ e("div", { className: M.accordion, role: "list", children: l.map((_, p) => {
|
|
196
|
+
const b = u === p;
|
|
197
|
+
return /* @__PURE__ */ i(
|
|
808
198
|
"div",
|
|
809
199
|
{
|
|
810
|
-
className: `${
|
|
200
|
+
className: `${M.item} ${b ? M.itemOpen : ""}`,
|
|
811
201
|
role: "listitem",
|
|
812
202
|
children: [
|
|
813
|
-
/* @__PURE__ */
|
|
203
|
+
/* @__PURE__ */ i(
|
|
814
204
|
"button",
|
|
815
205
|
{
|
|
816
206
|
type: "button",
|
|
817
|
-
className:
|
|
207
|
+
className: M.question,
|
|
818
208
|
onClick: () => {
|
|
819
|
-
const
|
|
820
|
-
|
|
209
|
+
const w = !b;
|
|
210
|
+
h(b ? -1 : p), w && r?.(_.question);
|
|
821
211
|
},
|
|
822
|
-
"aria-expanded":
|
|
823
|
-
"aria-controls": `faq-answer-${
|
|
824
|
-
id: `faq-question-${
|
|
212
|
+
"aria-expanded": b,
|
|
213
|
+
"aria-controls": `faq-answer-${p}`,
|
|
214
|
+
id: `faq-question-${p}`,
|
|
825
215
|
children: [
|
|
826
|
-
/* @__PURE__ */
|
|
827
|
-
/* @__PURE__ */
|
|
216
|
+
/* @__PURE__ */ e("span", { children: _.question }),
|
|
217
|
+
/* @__PURE__ */ e(
|
|
828
218
|
"span",
|
|
829
219
|
{
|
|
830
|
-
className: `${
|
|
220
|
+
className: `${M.chevron} ${b ? M.chevronOpen : ""}`,
|
|
831
221
|
"aria-hidden": !0,
|
|
832
|
-
children: /* @__PURE__ */
|
|
222
|
+
children: /* @__PURE__ */ e(
|
|
833
223
|
"svg",
|
|
834
224
|
{
|
|
835
225
|
width: "16",
|
|
@@ -838,7 +228,7 @@ function Mo({
|
|
|
838
228
|
fill: "none",
|
|
839
229
|
"aria-hidden": !0,
|
|
840
230
|
focusable: "false",
|
|
841
|
-
children: /* @__PURE__ */
|
|
231
|
+
children: /* @__PURE__ */ e(
|
|
842
232
|
"path",
|
|
843
233
|
{
|
|
844
234
|
d: "M5.8 8.3a1 1 0 0 1 1.4 0L10 11.09l2.8-2.8a1 1 0 1 1 1.4 1.42l-3.5 3.5a1 1 0 0 1-1.4 0l-3.5-3.5A1 1 0 0 1 5.8 8.3z",
|
|
@@ -852,112 +242,112 @@ function Mo({
|
|
|
852
242
|
]
|
|
853
243
|
}
|
|
854
244
|
),
|
|
855
|
-
/* @__PURE__ */
|
|
245
|
+
/* @__PURE__ */ e(
|
|
856
246
|
"div",
|
|
857
247
|
{
|
|
858
|
-
id: `faq-answer-${
|
|
248
|
+
id: `faq-answer-${p}`,
|
|
859
249
|
role: "region",
|
|
860
|
-
"aria-labelledby": `faq-question-${
|
|
861
|
-
className: `${
|
|
862
|
-
hidden: !
|
|
863
|
-
children: /* @__PURE__ */
|
|
250
|
+
"aria-labelledby": `faq-question-${p}`,
|
|
251
|
+
className: `${M.answerWrap} ${b ? M.answerOpen : ""}`,
|
|
252
|
+
hidden: !b,
|
|
253
|
+
children: /* @__PURE__ */ e("p", { className: M.answer, children: _.answer })
|
|
864
254
|
}
|
|
865
255
|
)
|
|
866
256
|
]
|
|
867
257
|
},
|
|
868
|
-
|
|
258
|
+
p
|
|
869
259
|
);
|
|
870
260
|
}) })
|
|
871
261
|
]
|
|
872
262
|
}
|
|
873
263
|
);
|
|
874
264
|
}
|
|
875
|
-
const
|
|
876
|
-
header:
|
|
877
|
-
brand:
|
|
878
|
-
logo:
|
|
879
|
-
logoImg:
|
|
880
|
-
logoPlaceholder:
|
|
881
|
-
brandText:
|
|
882
|
-
brandName:
|
|
883
|
-
rating:
|
|
884
|
-
langSlot:
|
|
885
|
-
},
|
|
886
|
-
function
|
|
887
|
-
t
|
|
888
|
-
logoUrl:
|
|
889
|
-
imageComponent:
|
|
890
|
-
languageSelector:
|
|
891
|
-
showLanguageSelector:
|
|
892
|
-
className:
|
|
265
|
+
const Ct = "_header_dbx4y_1", Dt = "_brand_dbx4y_7", Bt = "_logo_dbx4y_11", Mt = "_logoImg_dbx4y_15", Rt = "_logoPlaceholder_dbx4y_21", Pt = "_brandText_dbx4y_29", At = "_brandName_dbx4y_33", Et = "_rating_dbx4y_38", Ot = "_langSlot_dbx4y_49", A = {
|
|
266
|
+
header: Ct,
|
|
267
|
+
brand: Dt,
|
|
268
|
+
logo: Bt,
|
|
269
|
+
logoImg: Mt,
|
|
270
|
+
logoPlaceholder: Rt,
|
|
271
|
+
brandText: Pt,
|
|
272
|
+
brandName: At,
|
|
273
|
+
rating: Et,
|
|
274
|
+
langSlot: Ot
|
|
275
|
+
}, Me = 120, Re = 40;
|
|
276
|
+
function Fs({
|
|
277
|
+
t,
|
|
278
|
+
logoUrl: n,
|
|
279
|
+
imageComponent: a,
|
|
280
|
+
languageSelector: s,
|
|
281
|
+
showLanguageSelector: r = !0,
|
|
282
|
+
className: c = ""
|
|
893
283
|
}) {
|
|
894
|
-
const
|
|
895
|
-
return /* @__PURE__ */
|
|
896
|
-
/* @__PURE__ */
|
|
897
|
-
/* @__PURE__ */
|
|
898
|
-
|
|
284
|
+
const d = r && s != null, l = t("sriMandir"), u = t("ratingText");
|
|
285
|
+
return /* @__PURE__ */ i("header", { className: `${A.header} ${c}`, children: [
|
|
286
|
+
/* @__PURE__ */ i("div", { className: A.brand, children: [
|
|
287
|
+
/* @__PURE__ */ e("div", { className: A.logo, children: n ? a ? /* @__PURE__ */ e(
|
|
288
|
+
a,
|
|
899
289
|
{
|
|
900
|
-
src:
|
|
901
|
-
alt:
|
|
902
|
-
className:
|
|
903
|
-
width:
|
|
904
|
-
height:
|
|
290
|
+
src: n,
|
|
291
|
+
alt: l,
|
|
292
|
+
className: A.logoImg,
|
|
293
|
+
width: Me,
|
|
294
|
+
height: Re
|
|
905
295
|
}
|
|
906
|
-
) : /* @__PURE__ */
|
|
296
|
+
) : /* @__PURE__ */ e(
|
|
907
297
|
"img",
|
|
908
298
|
{
|
|
909
|
-
src:
|
|
910
|
-
alt:
|
|
911
|
-
className:
|
|
912
|
-
width:
|
|
913
|
-
height:
|
|
299
|
+
src: n,
|
|
300
|
+
alt: l,
|
|
301
|
+
className: A.logoImg,
|
|
302
|
+
width: Me,
|
|
303
|
+
height: Re,
|
|
914
304
|
decoding: "async"
|
|
915
305
|
}
|
|
916
|
-
) : /* @__PURE__ */
|
|
917
|
-
/* @__PURE__ */
|
|
918
|
-
/* @__PURE__ */
|
|
919
|
-
|
|
306
|
+
) : /* @__PURE__ */ e("div", { className: A.logoPlaceholder, "aria-hidden": !0 }) }),
|
|
307
|
+
/* @__PURE__ */ i("div", { className: A.brandText, children: [
|
|
308
|
+
/* @__PURE__ */ e("span", { className: A.brandName, children: l }),
|
|
309
|
+
u != null && u !== "" && /* @__PURE__ */ e("span", { className: A.rating, children: u })
|
|
920
310
|
] })
|
|
921
311
|
] }),
|
|
922
|
-
|
|
312
|
+
d && /* @__PURE__ */ e("div", { className: A.langSlot, children: s })
|
|
923
313
|
] });
|
|
924
314
|
}
|
|
925
|
-
const
|
|
926
|
-
wrap:
|
|
927
|
-
card:
|
|
928
|
-
cardInner:
|
|
315
|
+
const Ft = "_wrap_1vbpd_1", qt = "_card_1vbpd_5", Wt = "_cardInner_1vbpd_10", fe = {
|
|
316
|
+
wrap: Ft,
|
|
317
|
+
card: qt,
|
|
318
|
+
cardInner: Wt
|
|
929
319
|
};
|
|
930
|
-
function
|
|
931
|
-
children:
|
|
932
|
-
className:
|
|
933
|
-
"aria-label":
|
|
320
|
+
function qs({
|
|
321
|
+
children: t,
|
|
322
|
+
className: n = "",
|
|
323
|
+
"aria-label": a
|
|
934
324
|
}) {
|
|
935
|
-
return /* @__PURE__ */
|
|
325
|
+
return /* @__PURE__ */ e(
|
|
936
326
|
"section",
|
|
937
327
|
{
|
|
938
|
-
className: `${
|
|
939
|
-
"aria-label":
|
|
940
|
-
children: /* @__PURE__ */
|
|
328
|
+
className: `${fe.wrap} ${n}`,
|
|
329
|
+
"aria-label": a,
|
|
330
|
+
children: /* @__PURE__ */ e("div", { className: fe.card, children: /* @__PURE__ */ e("div", { className: fe.cardInner, children: t }) })
|
|
941
331
|
}
|
|
942
332
|
);
|
|
943
333
|
}
|
|
944
|
-
const
|
|
945
|
-
header:
|
|
946
|
-
left:
|
|
947
|
-
backBtn:
|
|
948
|
-
titleWrap:
|
|
949
|
-
title:
|
|
950
|
-
subtitle:
|
|
951
|
-
backIcon:
|
|
952
|
-
},
|
|
334
|
+
const jt = "_header_a05ni_1", Ht = "_left_a05ni_7", Kt = "_backBtn_a05ni_11", Ut = "_titleWrap_a05ni_21", zt = "_title_a05ni_21", Gt = "_subtitle_a05ni_31", Yt = "_backIcon_a05ni_37", G = {
|
|
335
|
+
header: jt,
|
|
336
|
+
left: Ht,
|
|
337
|
+
backBtn: Kt,
|
|
338
|
+
titleWrap: Ut,
|
|
339
|
+
title: zt,
|
|
340
|
+
subtitle: Gt,
|
|
341
|
+
backIcon: Yt
|
|
342
|
+
}, Vt = () => /* @__PURE__ */ e(
|
|
953
343
|
"svg",
|
|
954
344
|
{
|
|
955
|
-
className:
|
|
345
|
+
className: G.backIcon,
|
|
956
346
|
viewBox: "0 0 24 24",
|
|
957
347
|
fill: "none",
|
|
958
348
|
xmlns: "http://www.w3.org/2000/svg",
|
|
959
349
|
"aria-hidden": !0,
|
|
960
|
-
children: /* @__PURE__ */
|
|
350
|
+
children: /* @__PURE__ */ e(
|
|
961
351
|
"path",
|
|
962
352
|
{
|
|
963
353
|
d: "M15 18l-6-6 6-6",
|
|
@@ -969,167 +359,167 @@ const Mn = "_header_a05ni_1", Bn = "_left_a05ni_7", An = "_backBtn_a05ni_11", Fn
|
|
|
969
359
|
)
|
|
970
360
|
}
|
|
971
361
|
);
|
|
972
|
-
function
|
|
973
|
-
title:
|
|
974
|
-
subtitle:
|
|
975
|
-
onBack:
|
|
976
|
-
backAriaLabel:
|
|
977
|
-
className:
|
|
362
|
+
function Ws({
|
|
363
|
+
title: t,
|
|
364
|
+
subtitle: n,
|
|
365
|
+
onBack: a,
|
|
366
|
+
backAriaLabel: s = "Back",
|
|
367
|
+
className: r = ""
|
|
978
368
|
}) {
|
|
979
|
-
return /* @__PURE__ */
|
|
980
|
-
|
|
369
|
+
return /* @__PURE__ */ e("header", { className: `${G.header} ${r}`, children: /* @__PURE__ */ i("div", { className: G.left, children: [
|
|
370
|
+
a != null && /* @__PURE__ */ e(
|
|
981
371
|
"button",
|
|
982
372
|
{
|
|
983
373
|
type: "button",
|
|
984
|
-
className:
|
|
985
|
-
onClick:
|
|
986
|
-
"aria-label":
|
|
987
|
-
children: /* @__PURE__ */
|
|
374
|
+
className: G.backBtn,
|
|
375
|
+
onClick: a,
|
|
376
|
+
"aria-label": s,
|
|
377
|
+
children: /* @__PURE__ */ e(Vt, {})
|
|
988
378
|
}
|
|
989
379
|
),
|
|
990
|
-
/* @__PURE__ */
|
|
991
|
-
/* @__PURE__ */
|
|
992
|
-
|
|
380
|
+
/* @__PURE__ */ i("div", { className: G.titleWrap, children: [
|
|
381
|
+
/* @__PURE__ */ e("h1", { className: G.title, children: t }),
|
|
382
|
+
n != null && n !== "" && /* @__PURE__ */ e("p", { className: G.subtitle, children: n })
|
|
993
383
|
] })
|
|
994
384
|
] }) });
|
|
995
385
|
}
|
|
996
|
-
const
|
|
997
|
-
banner:
|
|
998
|
-
icon:
|
|
999
|
-
text:
|
|
1000
|
-
},
|
|
1001
|
-
function
|
|
1002
|
-
text:
|
|
1003
|
-
iconUrl:
|
|
1004
|
-
className:
|
|
386
|
+
const Jt = "_banner_1jco0_1", Zt = "_icon_1jco0_12", Xt = "_text_1jco0_16", ve = {
|
|
387
|
+
banner: Jt,
|
|
388
|
+
icon: Zt,
|
|
389
|
+
text: Xt
|
|
390
|
+
}, Qt = "https://srm-cdn.a4b.io/yoda/1770707793537.svg";
|
|
391
|
+
function js({
|
|
392
|
+
text: t,
|
|
393
|
+
iconUrl: n = Qt,
|
|
394
|
+
className: a = ""
|
|
1005
395
|
}) {
|
|
1006
|
-
return /* @__PURE__ */
|
|
396
|
+
return /* @__PURE__ */ e("div", { className: `${ve.banner} ${a}`, role: "status", children: /* @__PURE__ */ i("span", { className: ve.text, children: [
|
|
1007
397
|
" ",
|
|
1008
|
-
/* @__PURE__ */
|
|
398
|
+
/* @__PURE__ */ e(
|
|
1009
399
|
"img",
|
|
1010
400
|
{
|
|
1011
|
-
src:
|
|
401
|
+
src: n,
|
|
1012
402
|
alt: "",
|
|
1013
|
-
className:
|
|
403
|
+
className: ve.icon,
|
|
1014
404
|
width: 18,
|
|
1015
405
|
height: 18,
|
|
1016
406
|
"aria-hidden": !0
|
|
1017
407
|
}
|
|
1018
408
|
),
|
|
1019
409
|
" ",
|
|
1020
|
-
|
|
410
|
+
t
|
|
1021
411
|
] }) });
|
|
1022
412
|
}
|
|
1023
|
-
const
|
|
1024
|
-
field:
|
|
1025
|
-
labelRow:
|
|
1026
|
-
label:
|
|
1027
|
-
req:
|
|
1028
|
-
help:
|
|
1029
|
-
infoBtn:
|
|
1030
|
-
infoImg:
|
|
1031
|
-
infoWrap:
|
|
1032
|
-
tooltip:
|
|
1033
|
-
tooltipArrow:
|
|
1034
|
-
inputWrap:
|
|
1035
|
-
},
|
|
1036
|
-
function
|
|
1037
|
-
label:
|
|
1038
|
-
id:
|
|
1039
|
-
required:
|
|
1040
|
-
help:
|
|
1041
|
-
infoTooltip:
|
|
1042
|
-
infoAriaLabel:
|
|
1043
|
-
infoIconUrl:
|
|
1044
|
-
children:
|
|
1045
|
-
className:
|
|
413
|
+
const en = "_field_eqt7q_1", tn = "_labelRow_eqt7q_5", nn = "_label_eqt7q_5", an = "_req_eqt7q_14", on = "_help_eqt7q_18", sn = "_infoBtn_eqt7q_22", rn = "_infoImg_eqt7q_30", cn = "_infoWrap_eqt7q_34", ln = "_tooltip_eqt7q_38", dn = "_tooltipArrow_eqt7q_45", mn = "_inputWrap_eqt7q_50", R = {
|
|
414
|
+
field: en,
|
|
415
|
+
labelRow: tn,
|
|
416
|
+
label: nn,
|
|
417
|
+
req: an,
|
|
418
|
+
help: on,
|
|
419
|
+
infoBtn: sn,
|
|
420
|
+
infoImg: rn,
|
|
421
|
+
infoWrap: cn,
|
|
422
|
+
tooltip: ln,
|
|
423
|
+
tooltipArrow: dn,
|
|
424
|
+
inputWrap: mn
|
|
425
|
+
}, _n = "https://srm-cdn.a4b.io/yoda/1770372066357.svg";
|
|
426
|
+
function Hs({
|
|
427
|
+
label: t,
|
|
428
|
+
id: n,
|
|
429
|
+
required: a = !1,
|
|
430
|
+
help: s,
|
|
431
|
+
infoTooltip: r,
|
|
432
|
+
infoAriaLabel: c = "Info",
|
|
433
|
+
infoIconUrl: d = _n,
|
|
434
|
+
children: l,
|
|
435
|
+
className: u = ""
|
|
1046
436
|
}) {
|
|
1047
|
-
const [
|
|
1048
|
-
return
|
|
1049
|
-
if (!
|
|
1050
|
-
const
|
|
1051
|
-
|
|
1052
|
-
},
|
|
1053
|
-
|
|
437
|
+
const [h, f] = $(!1);
|
|
438
|
+
return re(() => {
|
|
439
|
+
if (!r) return;
|
|
440
|
+
const _ = (b) => {
|
|
441
|
+
b.target?.closest?.("[data-info-tooltip]") == null && f(!1);
|
|
442
|
+
}, p = (b) => {
|
|
443
|
+
b.key === "Escape" && f(!1);
|
|
1054
444
|
};
|
|
1055
|
-
return document.addEventListener("mousedown",
|
|
1056
|
-
document.removeEventListener("mousedown",
|
|
445
|
+
return document.addEventListener("mousedown", _), document.addEventListener("keydown", p), () => {
|
|
446
|
+
document.removeEventListener("mousedown", _), document.removeEventListener("keydown", p);
|
|
1057
447
|
};
|
|
1058
|
-
}, [
|
|
1059
|
-
/* @__PURE__ */
|
|
1060
|
-
/* @__PURE__ */
|
|
1061
|
-
|
|
1062
|
-
|
|
448
|
+
}, [r]), /* @__PURE__ */ i("div", { className: `${R.field} ${u}`, children: [
|
|
449
|
+
/* @__PURE__ */ i("div", { className: R.labelRow, children: [
|
|
450
|
+
/* @__PURE__ */ i("label", { className: R.label, htmlFor: n, children: [
|
|
451
|
+
t,
|
|
452
|
+
a && /* @__PURE__ */ e("span", { className: R.req, children: "*" })
|
|
1063
453
|
] }),
|
|
1064
|
-
|
|
1065
|
-
/* @__PURE__ */
|
|
454
|
+
r != null && r !== "" && /* @__PURE__ */ i("div", { className: R.infoWrap, "data-info-tooltip": !0, children: [
|
|
455
|
+
/* @__PURE__ */ e(
|
|
1066
456
|
"button",
|
|
1067
457
|
{
|
|
1068
458
|
type: "button",
|
|
1069
|
-
className:
|
|
1070
|
-
"aria-label":
|
|
1071
|
-
"aria-expanded":
|
|
1072
|
-
onClick: () =>
|
|
1073
|
-
children: /* @__PURE__ */
|
|
459
|
+
className: R.infoBtn,
|
|
460
|
+
"aria-label": c,
|
|
461
|
+
"aria-expanded": h,
|
|
462
|
+
onClick: () => f((_) => !_),
|
|
463
|
+
children: /* @__PURE__ */ e(
|
|
1074
464
|
"img",
|
|
1075
465
|
{
|
|
1076
|
-
className:
|
|
1077
|
-
src:
|
|
466
|
+
className: R.infoImg,
|
|
467
|
+
src: d,
|
|
1078
468
|
alt: "",
|
|
1079
469
|
"aria-hidden": !0
|
|
1080
470
|
}
|
|
1081
471
|
)
|
|
1082
472
|
}
|
|
1083
473
|
),
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
/* @__PURE__ */
|
|
474
|
+
h && /* @__PURE__ */ i("div", { className: R.tooltip, role: "tooltip", children: [
|
|
475
|
+
r,
|
|
476
|
+
/* @__PURE__ */ e("span", { className: R.tooltipArrow, "aria-hidden": !0 })
|
|
1087
477
|
] })
|
|
1088
478
|
] })
|
|
1089
479
|
] }),
|
|
1090
|
-
|
|
1091
|
-
/* @__PURE__ */
|
|
480
|
+
s != null && s !== "" && /* @__PURE__ */ e("div", { className: R.help, children: s }),
|
|
481
|
+
/* @__PURE__ */ e("div", { className: R.inputWrap, children: l })
|
|
1092
482
|
] });
|
|
1093
483
|
}
|
|
1094
|
-
const
|
|
1095
|
-
wrap:
|
|
1096
|
-
input:
|
|
1097
|
-
iconBtn:
|
|
1098
|
-
iconBtnInteractive:
|
|
1099
|
-
iconImg:
|
|
484
|
+
const hn = "_wrap_1uy4o_1", un = "_input_1uy4o_5", gn = "_iconBtn_1uy4o_21", pn = "_iconBtnInteractive_1uy4o_25", bn = "_iconImg_1uy4o_39", J = {
|
|
485
|
+
wrap: hn,
|
|
486
|
+
input: un,
|
|
487
|
+
iconBtn: gn,
|
|
488
|
+
iconBtnInteractive: pn,
|
|
489
|
+
iconImg: bn
|
|
1100
490
|
};
|
|
1101
|
-
function
|
|
1102
|
-
id:
|
|
1103
|
-
iconUrl:
|
|
1104
|
-
iconAlt:
|
|
1105
|
-
iconInteractive:
|
|
1106
|
-
onIconClick:
|
|
1107
|
-
className:
|
|
1108
|
-
...
|
|
491
|
+
function Ks({
|
|
492
|
+
id: t,
|
|
493
|
+
iconUrl: n,
|
|
494
|
+
iconAlt: a = "",
|
|
495
|
+
iconInteractive: s = !1,
|
|
496
|
+
onIconClick: r,
|
|
497
|
+
className: c = "",
|
|
498
|
+
...d
|
|
1109
499
|
}) {
|
|
1110
|
-
return /* @__PURE__ */
|
|
1111
|
-
/* @__PURE__ */
|
|
500
|
+
return /* @__PURE__ */ i("div", { className: `${J.wrap} ${c}`, children: [
|
|
501
|
+
/* @__PURE__ */ e(
|
|
1112
502
|
"input",
|
|
1113
503
|
{
|
|
1114
|
-
...
|
|
1115
|
-
id:
|
|
1116
|
-
className:
|
|
1117
|
-
type:
|
|
504
|
+
...d,
|
|
505
|
+
id: t,
|
|
506
|
+
className: J.input,
|
|
507
|
+
type: d.type ?? "text"
|
|
1118
508
|
}
|
|
1119
509
|
),
|
|
1120
|
-
|
|
510
|
+
n != null && /* @__PURE__ */ e(
|
|
1121
511
|
"button",
|
|
1122
512
|
{
|
|
1123
513
|
type: "button",
|
|
1124
|
-
className:
|
|
1125
|
-
"aria-label":
|
|
1126
|
-
onClick:
|
|
1127
|
-
tabIndex:
|
|
1128
|
-
children: /* @__PURE__ */
|
|
514
|
+
className: s ? `${J.iconBtn} ${J.iconBtnInteractive}` : J.iconBtn,
|
|
515
|
+
"aria-label": a || void 0,
|
|
516
|
+
onClick: s ? r : void 0,
|
|
517
|
+
tabIndex: s ? 0 : -1,
|
|
518
|
+
children: /* @__PURE__ */ e(
|
|
1129
519
|
"img",
|
|
1130
520
|
{
|
|
1131
|
-
className:
|
|
1132
|
-
src:
|
|
521
|
+
className: J.iconImg,
|
|
522
|
+
src: n,
|
|
1133
523
|
alt: "",
|
|
1134
524
|
"aria-hidden": !0,
|
|
1135
525
|
width: 22,
|
|
@@ -1140,60 +530,60 @@ function Yo({
|
|
|
1140
530
|
)
|
|
1141
531
|
] });
|
|
1142
532
|
}
|
|
1143
|
-
const
|
|
1144
|
-
wrap:
|
|
1145
|
-
input:
|
|
1146
|
-
iconBtn:
|
|
1147
|
-
iconImg:
|
|
1148
|
-
},
|
|
1149
|
-
function
|
|
1150
|
-
id:
|
|
1151
|
-
value:
|
|
1152
|
-
onChange:
|
|
1153
|
-
onIconClick:
|
|
1154
|
-
className:
|
|
1155
|
-
...
|
|
533
|
+
const fn = "_wrap_t646o_1", vn = "_input_t646o_5", Nn = "_iconBtn_t646o_28", wn = "_iconImg_t646o_42", de = {
|
|
534
|
+
wrap: fn,
|
|
535
|
+
input: vn,
|
|
536
|
+
iconBtn: Nn,
|
|
537
|
+
iconImg: wn
|
|
538
|
+
}, yn = "https://srm-cdn.a4b.io/yoda/1770372045894.svg";
|
|
539
|
+
function Us({
|
|
540
|
+
id: t,
|
|
541
|
+
value: n,
|
|
542
|
+
onChange: a,
|
|
543
|
+
onIconClick: s,
|
|
544
|
+
className: r = "",
|
|
545
|
+
...c
|
|
1156
546
|
}) {
|
|
1157
|
-
const
|
|
1158
|
-
const
|
|
1159
|
-
return `${
|
|
1160
|
-
}, []),
|
|
1161
|
-
if (
|
|
1162
|
-
|
|
547
|
+
const d = Y(null), l = E(() => {
|
|
548
|
+
const h = /* @__PURE__ */ new Date(), f = (_) => String(_).padStart(2, "0");
|
|
549
|
+
return `${h.getFullYear()}-${f(h.getMonth() + 1)}-${f(h.getDate())}`;
|
|
550
|
+
}, []), u = () => {
|
|
551
|
+
if (s) {
|
|
552
|
+
s();
|
|
1163
553
|
return;
|
|
1164
554
|
}
|
|
1165
|
-
const
|
|
1166
|
-
|
|
555
|
+
const h = d.current;
|
|
556
|
+
h && typeof h.showPicker == "function" ? h.showPicker() : h?.focus();
|
|
1167
557
|
};
|
|
1168
|
-
return /* @__PURE__ */
|
|
1169
|
-
/* @__PURE__ */
|
|
558
|
+
return /* @__PURE__ */ i("div", { className: `${de.wrap} ${r}`, children: [
|
|
559
|
+
/* @__PURE__ */ e(
|
|
1170
560
|
"input",
|
|
1171
561
|
{
|
|
1172
|
-
...
|
|
1173
|
-
ref:
|
|
1174
|
-
id:
|
|
562
|
+
...c,
|
|
563
|
+
ref: d,
|
|
564
|
+
id: t,
|
|
1175
565
|
type: "date",
|
|
1176
|
-
className:
|
|
1177
|
-
value:
|
|
1178
|
-
max:
|
|
1179
|
-
onChange: (
|
|
566
|
+
className: de.input,
|
|
567
|
+
value: n,
|
|
568
|
+
max: l,
|
|
569
|
+
onChange: (h) => a(h.target.value)
|
|
1180
570
|
}
|
|
1181
571
|
),
|
|
1182
|
-
/* @__PURE__ */
|
|
572
|
+
/* @__PURE__ */ e(
|
|
1183
573
|
"button",
|
|
1184
574
|
{
|
|
1185
575
|
type: "button",
|
|
1186
|
-
className: `${
|
|
576
|
+
className: `${de.iconBtn}`,
|
|
1187
577
|
"aria-label": "Open date picker",
|
|
1188
|
-
onMouseDown: (
|
|
1189
|
-
onClick: (
|
|
1190
|
-
|
|
578
|
+
onMouseDown: (h) => h.preventDefault(),
|
|
579
|
+
onClick: (h) => {
|
|
580
|
+
h.preventDefault(), u();
|
|
1191
581
|
},
|
|
1192
|
-
children: /* @__PURE__ */
|
|
582
|
+
children: /* @__PURE__ */ e(
|
|
1193
583
|
"img",
|
|
1194
584
|
{
|
|
1195
|
-
className:
|
|
1196
|
-
src:
|
|
585
|
+
className: de.iconImg,
|
|
586
|
+
src: yn,
|
|
1197
587
|
alt: "",
|
|
1198
588
|
"aria-hidden": !0,
|
|
1199
589
|
width: 22,
|
|
@@ -1204,50 +594,50 @@ function Uo({
|
|
|
1204
594
|
)
|
|
1205
595
|
] });
|
|
1206
596
|
}
|
|
1207
|
-
const
|
|
1208
|
-
wrap:
|
|
1209
|
-
input:
|
|
1210
|
-
iconBtn:
|
|
1211
|
-
iconImg:
|
|
1212
|
-
},
|
|
1213
|
-
function
|
|
1214
|
-
id:
|
|
1215
|
-
value:
|
|
1216
|
-
onChange:
|
|
1217
|
-
placeholder:
|
|
1218
|
-
disabled:
|
|
1219
|
-
onIconClick:
|
|
1220
|
-
className:
|
|
597
|
+
const kn = "_wrap_1jdg7_1", Sn = "_input_1jdg7_5", In = "_iconBtn_1jdg7_34", $n = "_iconImg_1jdg7_48", me = {
|
|
598
|
+
wrap: kn,
|
|
599
|
+
input: Sn,
|
|
600
|
+
iconBtn: In,
|
|
601
|
+
iconImg: $n
|
|
602
|
+
}, Tn = "https://srm-cdn.a4b.io/yoda/1770372014782.svg";
|
|
603
|
+
function zs({
|
|
604
|
+
id: t,
|
|
605
|
+
value: n,
|
|
606
|
+
onChange: a,
|
|
607
|
+
placeholder: s = "HH:MM AM",
|
|
608
|
+
disabled: r = !1,
|
|
609
|
+
onIconClick: c,
|
|
610
|
+
className: d = ""
|
|
1221
611
|
}) {
|
|
1222
|
-
return /* @__PURE__ */
|
|
1223
|
-
/* @__PURE__ */
|
|
612
|
+
return /* @__PURE__ */ i("div", { className: `${me.wrap} ${d}`, children: [
|
|
613
|
+
/* @__PURE__ */ e(
|
|
1224
614
|
"input",
|
|
1225
615
|
{
|
|
1226
|
-
id:
|
|
616
|
+
id: t,
|
|
1227
617
|
type: "time",
|
|
1228
|
-
className:
|
|
1229
|
-
value:
|
|
1230
|
-
onChange: (
|
|
1231
|
-
placeholder:
|
|
1232
|
-
disabled:
|
|
1233
|
-
onClick: () => !
|
|
618
|
+
className: me.input,
|
|
619
|
+
value: n,
|
|
620
|
+
onChange: (l) => a(l.target.value),
|
|
621
|
+
placeholder: s,
|
|
622
|
+
disabled: r,
|
|
623
|
+
onClick: () => !r && c?.()
|
|
1234
624
|
}
|
|
1235
625
|
),
|
|
1236
|
-
/* @__PURE__ */
|
|
626
|
+
/* @__PURE__ */ e(
|
|
1237
627
|
"button",
|
|
1238
628
|
{
|
|
1239
629
|
type: "button",
|
|
1240
|
-
className:
|
|
630
|
+
className: me.iconBtn,
|
|
1241
631
|
"aria-label": "Open time picker",
|
|
1242
|
-
disabled:
|
|
1243
|
-
onClick: (
|
|
1244
|
-
|
|
632
|
+
disabled: r,
|
|
633
|
+
onClick: (l) => {
|
|
634
|
+
l.preventDefault(), r || c?.();
|
|
1245
635
|
},
|
|
1246
|
-
children: /* @__PURE__ */
|
|
636
|
+
children: /* @__PURE__ */ e(
|
|
1247
637
|
"img",
|
|
1248
638
|
{
|
|
1249
|
-
className:
|
|
1250
|
-
src:
|
|
639
|
+
className: me.iconImg,
|
|
640
|
+
src: Tn,
|
|
1251
641
|
alt: "",
|
|
1252
642
|
"aria-hidden": !0,
|
|
1253
643
|
width: 22,
|
|
@@ -1258,25 +648,25 @@ function zo({
|
|
|
1258
648
|
)
|
|
1259
649
|
] });
|
|
1260
650
|
}
|
|
1261
|
-
const
|
|
1262
|
-
wrap:
|
|
1263
|
-
input:
|
|
1264
|
-
iconBtn:
|
|
1265
|
-
iconImg:
|
|
1266
|
-
},
|
|
1267
|
-
function
|
|
1268
|
-
id:
|
|
1269
|
-
iconUrl:
|
|
1270
|
-
className:
|
|
1271
|
-
...
|
|
651
|
+
const Ln = "_wrap_1bb6o_1", xn = "_input_1bb6o_5", Cn = "_iconBtn_1bb6o_21", Dn = "_iconImg_1bb6o_25", _e = {
|
|
652
|
+
wrap: Ln,
|
|
653
|
+
input: xn,
|
|
654
|
+
iconBtn: Cn,
|
|
655
|
+
iconImg: Dn
|
|
656
|
+
}, Bn = "https://srm-cdn.a4b.io/yoda/1770372031092.svg";
|
|
657
|
+
function Gs({
|
|
658
|
+
id: t,
|
|
659
|
+
iconUrl: n = Bn,
|
|
660
|
+
className: a = "",
|
|
661
|
+
...s
|
|
1272
662
|
}) {
|
|
1273
|
-
return /* @__PURE__ */
|
|
1274
|
-
/* @__PURE__ */
|
|
1275
|
-
/* @__PURE__ */
|
|
663
|
+
return /* @__PURE__ */ i("div", { className: `${_e.wrap} ${a}`, children: [
|
|
664
|
+
/* @__PURE__ */ e("input", { ...s, id: t, className: _e.input, type: "text" }),
|
|
665
|
+
/* @__PURE__ */ e("div", { className: _e.iconBtn, "aria-hidden": !0, children: /* @__PURE__ */ e(
|
|
1276
666
|
"img",
|
|
1277
667
|
{
|
|
1278
|
-
className:
|
|
1279
|
-
src:
|
|
668
|
+
className: _e.iconImg,
|
|
669
|
+
src: n,
|
|
1280
670
|
alt: "",
|
|
1281
671
|
width: 22,
|
|
1282
672
|
height: 22
|
|
@@ -1284,228 +674,228 @@ function Ho({
|
|
|
1284
674
|
) })
|
|
1285
675
|
] });
|
|
1286
676
|
}
|
|
1287
|
-
const
|
|
1288
|
-
segmented:
|
|
1289
|
-
segmentedOption:
|
|
1290
|
-
active:
|
|
677
|
+
const Mn = "_segmented_3sa9v_1", Rn = "_segmentedOption_3sa9v_6", Pn = "_active_3sa9v_15", Ne = {
|
|
678
|
+
segmented: Mn,
|
|
679
|
+
segmentedOption: Rn,
|
|
680
|
+
active: Pn
|
|
1291
681
|
};
|
|
1292
|
-
function
|
|
1293
|
-
id:
|
|
1294
|
-
options:
|
|
1295
|
-
value:
|
|
1296
|
-
onChange:
|
|
1297
|
-
className:
|
|
682
|
+
function Ys({
|
|
683
|
+
id: t,
|
|
684
|
+
options: n,
|
|
685
|
+
value: a,
|
|
686
|
+
onChange: s,
|
|
687
|
+
className: r = ""
|
|
1298
688
|
}) {
|
|
1299
|
-
return /* @__PURE__ */
|
|
689
|
+
return /* @__PURE__ */ e(
|
|
1300
690
|
"div",
|
|
1301
691
|
{
|
|
1302
|
-
className: `${
|
|
692
|
+
className: `${Ne.segmented} ${r}`,
|
|
1303
693
|
role: "group",
|
|
1304
|
-
"aria-labelledby": `${
|
|
1305
|
-
children:
|
|
694
|
+
"aria-labelledby": `${t}-label`,
|
|
695
|
+
children: n.map((c) => /* @__PURE__ */ e(
|
|
1306
696
|
"button",
|
|
1307
697
|
{
|
|
1308
698
|
type: "button",
|
|
1309
|
-
id:
|
|
1310
|
-
className: `${
|
|
1311
|
-
onClick: () => c
|
|
1312
|
-
children:
|
|
699
|
+
id: c.value === a ? t : void 0,
|
|
700
|
+
className: `${Ne.segmentedOption} ${c.value === a ? Ne.active : ""}`,
|
|
701
|
+
onClick: () => s(c.value),
|
|
702
|
+
children: c.label
|
|
1313
703
|
},
|
|
1314
|
-
|
|
704
|
+
c.value
|
|
1315
705
|
))
|
|
1316
706
|
}
|
|
1317
707
|
);
|
|
1318
708
|
}
|
|
1319
|
-
const
|
|
1320
|
-
pillsWrap:
|
|
1321
|
-
pill:
|
|
1322
|
-
selected:
|
|
709
|
+
const An = "_pillsWrap_z1kui_1", En = "_pill_z1kui_1", On = "_selected_z1kui_17", we = {
|
|
710
|
+
pillsWrap: An,
|
|
711
|
+
pill: En,
|
|
712
|
+
selected: On
|
|
1323
713
|
};
|
|
1324
|
-
function
|
|
1325
|
-
id:
|
|
1326
|
-
options:
|
|
1327
|
-
selected:
|
|
1328
|
-
onChange:
|
|
1329
|
-
className:
|
|
714
|
+
function Vs({
|
|
715
|
+
id: t,
|
|
716
|
+
options: n,
|
|
717
|
+
selected: a,
|
|
718
|
+
onChange: s,
|
|
719
|
+
className: r = ""
|
|
1330
720
|
}) {
|
|
1331
|
-
const
|
|
1332
|
-
|
|
721
|
+
const c = (d) => {
|
|
722
|
+
a.includes(d) ? s(a.filter((l) => l !== d)) : s([...a, d]);
|
|
1333
723
|
};
|
|
1334
|
-
return /* @__PURE__ */
|
|
724
|
+
return /* @__PURE__ */ e(
|
|
1335
725
|
"div",
|
|
1336
726
|
{
|
|
1337
|
-
className: `${
|
|
727
|
+
className: `${we.pillsWrap} ${r}`,
|
|
1338
728
|
role: "group",
|
|
1339
|
-
"aria-labelledby": `${
|
|
1340
|
-
children:
|
|
729
|
+
"aria-labelledby": `${t}-label`,
|
|
730
|
+
children: n.map((d) => /* @__PURE__ */ e(
|
|
1341
731
|
"button",
|
|
1342
732
|
{
|
|
1343
733
|
type: "button",
|
|
1344
|
-
className: `${
|
|
1345
|
-
onClick: () =>
|
|
1346
|
-
children:
|
|
734
|
+
className: `${we.pill} ${a.includes(d.key) ? we.selected : ""}`,
|
|
735
|
+
onClick: () => c(d.key),
|
|
736
|
+
children: d.label
|
|
1347
737
|
},
|
|
1348
|
-
|
|
738
|
+
d.key
|
|
1349
739
|
))
|
|
1350
740
|
}
|
|
1351
741
|
);
|
|
1352
742
|
}
|
|
1353
|
-
const
|
|
1354
|
-
wrapper:
|
|
1355
|
-
checkboxRow:
|
|
1356
|
-
checkbox:
|
|
1357
|
-
checkboxText:
|
|
1358
|
-
checkboxHelp:
|
|
743
|
+
const Fn = "_wrapper_i6a5b_2", qn = "_checkboxRow_i6a5b_6", Wn = "_checkbox_i6a5b_6", jn = "_checkboxText_i6a5b_31", Hn = "_checkboxHelp_i6a5b_37", ae = {
|
|
744
|
+
wrapper: Fn,
|
|
745
|
+
checkboxRow: qn,
|
|
746
|
+
checkbox: Wn,
|
|
747
|
+
checkboxText: jn,
|
|
748
|
+
checkboxHelp: Hn
|
|
1359
749
|
};
|
|
1360
|
-
function
|
|
1361
|
-
id:
|
|
1362
|
-
checked:
|
|
1363
|
-
onChange:
|
|
1364
|
-
primaryText:
|
|
1365
|
-
helpText:
|
|
1366
|
-
className:
|
|
750
|
+
function Js({
|
|
751
|
+
id: t,
|
|
752
|
+
checked: n,
|
|
753
|
+
onChange: a,
|
|
754
|
+
primaryText: s,
|
|
755
|
+
helpText: r,
|
|
756
|
+
className: c = ""
|
|
1367
757
|
}) {
|
|
1368
|
-
return /* @__PURE__ */
|
|
1369
|
-
/* @__PURE__ */
|
|
1370
|
-
/* @__PURE__ */
|
|
758
|
+
return /* @__PURE__ */ i("div", { className: `${ae.wrapper} ${c}`, children: [
|
|
759
|
+
/* @__PURE__ */ i("div", { className: ae.checkboxRow, children: [
|
|
760
|
+
/* @__PURE__ */ e(
|
|
1371
761
|
"input",
|
|
1372
762
|
{
|
|
1373
|
-
id:
|
|
763
|
+
id: t,
|
|
1374
764
|
type: "checkbox",
|
|
1375
|
-
className:
|
|
1376
|
-
checked:
|
|
1377
|
-
onChange: (
|
|
765
|
+
className: ae.checkbox,
|
|
766
|
+
checked: n,
|
|
767
|
+
onChange: (d) => a(d.target.checked)
|
|
1378
768
|
}
|
|
1379
769
|
),
|
|
1380
|
-
/* @__PURE__ */
|
|
770
|
+
/* @__PURE__ */ e("label", { htmlFor: t, className: ae.checkboxText, children: s })
|
|
1381
771
|
] }),
|
|
1382
|
-
|
|
772
|
+
r != null && r !== "" && /* @__PURE__ */ e("p", { className: ae.checkboxHelp, children: r })
|
|
1383
773
|
] });
|
|
1384
774
|
}
|
|
1385
|
-
const
|
|
1386
|
-
footerNote:
|
|
775
|
+
const Kn = "_footerNote_laev3_1", Un = {
|
|
776
|
+
footerNote: Kn
|
|
1387
777
|
};
|
|
1388
|
-
function
|
|
1389
|
-
children:
|
|
1390
|
-
className:
|
|
778
|
+
function Zs({
|
|
779
|
+
children: t,
|
|
780
|
+
className: n = ""
|
|
1391
781
|
}) {
|
|
1392
|
-
return /* @__PURE__ */
|
|
782
|
+
return /* @__PURE__ */ e("p", { className: `${Un.footerNote} ${n}`, children: t });
|
|
1393
783
|
}
|
|
1394
|
-
const
|
|
1395
|
-
footer:
|
|
1396
|
-
inner:
|
|
1397
|
-
badges:
|
|
1398
|
-
marqueeContent:
|
|
1399
|
-
badge:
|
|
1400
|
-
badgeIcon:
|
|
1401
|
-
ctaWrap:
|
|
1402
|
-
ctaStruck:
|
|
1403
|
-
ctaButton:
|
|
1404
|
-
offerRow:
|
|
1405
|
-
pill:
|
|
1406
|
-
ctaStatic:
|
|
784
|
+
const zn = "_footer_86zxt_1", Gn = "_inner_86zxt_8", Yn = "_badges_86zxt_12", Vn = "_marqueeContent_86zxt_20", Jn = "_badge_86zxt_12", Zn = "_badgeIcon_86zxt_35", Xn = "_ctaWrap_86zxt_39", Qn = "_ctaStruck_86zxt_43", ea = "_ctaButton_86zxt_49", ta = "_offerRow_86zxt_69", na = "_pill_86zxt_76", aa = "_ctaStatic_86zxt_85", X = {
|
|
785
|
+
footer: zn,
|
|
786
|
+
inner: Gn,
|
|
787
|
+
badges: Yn,
|
|
788
|
+
marqueeContent: Vn,
|
|
789
|
+
badge: Jn,
|
|
790
|
+
badgeIcon: Zn,
|
|
791
|
+
ctaWrap: Xn,
|
|
792
|
+
ctaStruck: Qn,
|
|
793
|
+
ctaButton: ea,
|
|
794
|
+
offerRow: ta,
|
|
795
|
+
pill: na,
|
|
796
|
+
ctaStatic: aa
|
|
1407
797
|
};
|
|
1408
|
-
function
|
|
1409
|
-
marquee:
|
|
1410
|
-
children:
|
|
1411
|
-
className:
|
|
798
|
+
function Xs({
|
|
799
|
+
marquee: t,
|
|
800
|
+
children: n,
|
|
801
|
+
className: a = ""
|
|
1412
802
|
}) {
|
|
1413
|
-
return /* @__PURE__ */
|
|
1414
|
-
|
|
1415
|
-
/* @__PURE__ */
|
|
803
|
+
return /* @__PURE__ */ e("footer", { className: `${X.footer} ${a}`, role: "contentinfo", children: /* @__PURE__ */ i("div", { className: X.inner, children: [
|
|
804
|
+
t != null && /* @__PURE__ */ e("div", { className: X.badges, "aria-hidden": !0, children: t }),
|
|
805
|
+
/* @__PURE__ */ e("div", { className: X.ctaWrap, children: n })
|
|
1416
806
|
] }) });
|
|
1417
807
|
}
|
|
1418
|
-
function
|
|
1419
|
-
children:
|
|
1420
|
-
href:
|
|
1421
|
-
disabled:
|
|
1422
|
-
onClick:
|
|
1423
|
-
static:
|
|
1424
|
-
className:
|
|
1425
|
-
"aria-label":
|
|
808
|
+
function Qs({
|
|
809
|
+
children: t,
|
|
810
|
+
href: n,
|
|
811
|
+
disabled: a = !1,
|
|
812
|
+
onClick: s,
|
|
813
|
+
static: r = !1,
|
|
814
|
+
className: c = "",
|
|
815
|
+
"aria-label": d
|
|
1426
816
|
}) {
|
|
1427
|
-
const
|
|
1428
|
-
return
|
|
817
|
+
const l = `${X.ctaButton} ${c}`.trim(), u = `${X.ctaStatic} ${c}`.trim(), h = d != null ? { "aria-label": d } : {};
|
|
818
|
+
return r ? /* @__PURE__ */ e("div", { className: u, role: "presentation", children: t }) : n != null ? /* @__PURE__ */ e(
|
|
1429
819
|
"a",
|
|
1430
820
|
{
|
|
1431
|
-
href:
|
|
1432
|
-
className:
|
|
821
|
+
href: n,
|
|
822
|
+
className: l,
|
|
1433
823
|
target: "_blank",
|
|
1434
824
|
rel: "noopener noreferrer",
|
|
1435
|
-
"aria-disabled":
|
|
1436
|
-
onClick: (
|
|
1437
|
-
...
|
|
1438
|
-
children:
|
|
825
|
+
"aria-disabled": a,
|
|
826
|
+
onClick: (f) => a && f.preventDefault(),
|
|
827
|
+
...h,
|
|
828
|
+
children: t
|
|
1439
829
|
}
|
|
1440
|
-
) : /* @__PURE__ */
|
|
830
|
+
) : /* @__PURE__ */ e(
|
|
1441
831
|
"button",
|
|
1442
832
|
{
|
|
1443
833
|
type: "button",
|
|
1444
|
-
className:
|
|
1445
|
-
disabled:
|
|
1446
|
-
onClick:
|
|
1447
|
-
...
|
|
1448
|
-
children:
|
|
834
|
+
className: l,
|
|
835
|
+
disabled: a,
|
|
836
|
+
onClick: s,
|
|
837
|
+
...h,
|
|
838
|
+
children: t
|
|
1449
839
|
}
|
|
1450
840
|
);
|
|
1451
841
|
}
|
|
1452
|
-
const
|
|
1453
|
-
wrapper:
|
|
1454
|
-
track:
|
|
842
|
+
const oa = "_wrapper_wxjzs_1", sa = "_track_wxjzs_7", Pe = {
|
|
843
|
+
wrapper: oa,
|
|
844
|
+
track: sa
|
|
1455
845
|
};
|
|
1456
|
-
function
|
|
1457
|
-
return /* @__PURE__ */
|
|
1458
|
-
|
|
1459
|
-
|
|
846
|
+
function ra({ children: t, className: n = "" }) {
|
|
847
|
+
return /* @__PURE__ */ e("div", { className: `${Pe.wrapper} ${n}`, "aria-hidden": !0, children: /* @__PURE__ */ i("div", { className: Pe.track, children: [
|
|
848
|
+
t,
|
|
849
|
+
t
|
|
1460
850
|
] }) });
|
|
1461
851
|
}
|
|
1462
|
-
const
|
|
1463
|
-
strip:
|
|
852
|
+
const ia = "_strip_2838b_1", ca = {
|
|
853
|
+
strip: ia
|
|
1464
854
|
};
|
|
1465
|
-
function
|
|
1466
|
-
return /* @__PURE__ */
|
|
855
|
+
function er({ children: t, className: n = "" }) {
|
|
856
|
+
return /* @__PURE__ */ e("div", { className: `${ca.strip} ${n}`, role: "region", "aria-label": "Trust badges", children: /* @__PURE__ */ e(ra, { children: t }) });
|
|
1467
857
|
}
|
|
1468
|
-
const
|
|
1469
|
-
section:
|
|
1470
|
-
heading:
|
|
1471
|
-
content:
|
|
1472
|
-
line:
|
|
1473
|
-
brandName:
|
|
858
|
+
const la = "_section_8y3x9_1", da = "_heading_8y3x9_6", ma = "_content_8y3x9_11", _a = "_line_8y3x9_16", ha = "_brandName_8y3x9_20", Z = {
|
|
859
|
+
section: la,
|
|
860
|
+
heading: da,
|
|
861
|
+
content: ma,
|
|
862
|
+
line: _a,
|
|
863
|
+
brandName: ha
|
|
1474
864
|
};
|
|
1475
|
-
function
|
|
1476
|
-
title:
|
|
1477
|
-
brandName:
|
|
1478
|
-
whatsAppLine:
|
|
1479
|
-
emailLine:
|
|
1480
|
-
className:
|
|
865
|
+
function tr({
|
|
866
|
+
title: t,
|
|
867
|
+
brandName: n,
|
|
868
|
+
whatsAppLine: a,
|
|
869
|
+
emailLine: s,
|
|
870
|
+
className: r = ""
|
|
1481
871
|
}) {
|
|
1482
|
-
return /* @__PURE__ */
|
|
1483
|
-
/* @__PURE__ */
|
|
1484
|
-
/* @__PURE__ */
|
|
1485
|
-
/* @__PURE__ */
|
|
1486
|
-
/* @__PURE__ */
|
|
1487
|
-
/* @__PURE__ */
|
|
872
|
+
return /* @__PURE__ */ i("section", { className: `${Z.section} ${r}`, "aria-labelledby": "contact-heading", children: [
|
|
873
|
+
/* @__PURE__ */ e("h2", { id: "contact-heading", className: Z.heading, children: t }),
|
|
874
|
+
/* @__PURE__ */ i("div", { className: Z.content, children: [
|
|
875
|
+
/* @__PURE__ */ e("p", { className: Z.brandName, children: n }),
|
|
876
|
+
/* @__PURE__ */ e("p", { className: Z.line, children: a }),
|
|
877
|
+
/* @__PURE__ */ e("p", { className: Z.line, children: s })
|
|
1488
878
|
] })
|
|
1489
879
|
] });
|
|
1490
880
|
}
|
|
1491
|
-
const
|
|
1492
|
-
const
|
|
1493
|
-
if (!
|
|
1494
|
-
const
|
|
1495
|
-
return `${
|
|
1496
|
-
},
|
|
1497
|
-
const
|
|
1498
|
-
if (Number.isNaN(
|
|
1499
|
-
return { id:
|
|
1500
|
-
const
|
|
1501
|
-
(
|
|
1502
|
-
),
|
|
1503
|
-
return { id:
|
|
1504
|
-
},
|
|
881
|
+
const ua = (t) => {
|
|
882
|
+
const n = t.match(/T(\d{2}):(\d{2})/);
|
|
883
|
+
if (!n) return t;
|
|
884
|
+
const a = Number(n[1]), s = n[2], r = a >= 12 ? "PM" : "AM";
|
|
885
|
+
return `${a % 12 || 12}:${s} ${r}`;
|
|
886
|
+
}, ga = (t, n = /* @__PURE__ */ new Date()) => {
|
|
887
|
+
const a = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], s = /* @__PURE__ */ new Date(`${t}T00:00:00`);
|
|
888
|
+
if (Number.isNaN(s.getTime()))
|
|
889
|
+
return { id: t, dayLabel: t, dayNum: "" };
|
|
890
|
+
const r = (l) => new Date(l.getFullYear(), l.getMonth(), l.getDate()).getTime(), c = Math.round(
|
|
891
|
+
(r(s) - r(n)) / (1e3 * 60 * 60 * 24)
|
|
892
|
+
), d = c === 0 ? "Today" : c === 1 ? "Tomorrow" : a[s.getDay()];
|
|
893
|
+
return { id: t, dayLabel: d, dayNum: String(s.getDate()) };
|
|
894
|
+
}, pa = [
|
|
1505
895
|
"morning",
|
|
1506
896
|
"afternoon",
|
|
1507
897
|
"evening"
|
|
1508
|
-
],
|
|
898
|
+
], ba = [
|
|
1509
899
|
{ code: "en", labelKey: "formReportLanguageEnglish", label: "English" },
|
|
1510
900
|
{ code: "hi", labelKey: "formReportLanguageHindi", label: "Hindi" },
|
|
1511
901
|
{ code: "te", labelKey: "formReportLanguageTelugu", label: "Telugu" },
|
|
@@ -1513,7 +903,7 @@ const cr = (a) => {
|
|
|
1513
903
|
{ code: "gu", labelKey: "formReportLanguageGujarati", label: "Gujarati" },
|
|
1514
904
|
{ code: "mr", labelKey: "formReportLanguageMarathi", label: "Marathi" },
|
|
1515
905
|
{ code: "ta", labelKey: "formReportLanguageTamil", label: "Tamil" }
|
|
1516
|
-
],
|
|
906
|
+
], fa = () => /* @__PURE__ */ e("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ e(
|
|
1517
907
|
"path",
|
|
1518
908
|
{
|
|
1519
909
|
d: "M3.5 8.5l2.5 2.5 6-6",
|
|
@@ -1522,7 +912,7 @@ const cr = (a) => {
|
|
|
1522
912
|
strokeLinecap: "round",
|
|
1523
913
|
strokeLinejoin: "round"
|
|
1524
914
|
}
|
|
1525
|
-
) }),
|
|
915
|
+
) }), va = () => /* @__PURE__ */ e(
|
|
1526
916
|
"svg",
|
|
1527
917
|
{
|
|
1528
918
|
width: "14",
|
|
@@ -1534,9 +924,9 @@ const cr = (a) => {
|
|
|
1534
924
|
strokeLinecap: "round",
|
|
1535
925
|
strokeLinejoin: "round",
|
|
1536
926
|
"aria-hidden": !0,
|
|
1537
|
-
children: /* @__PURE__ */
|
|
927
|
+
children: /* @__PURE__ */ e("path", { d: "M6 9l6 6 6-6" })
|
|
1538
928
|
}
|
|
1539
|
-
),
|
|
929
|
+
), Na = () => /* @__PURE__ */ e(
|
|
1540
930
|
"img",
|
|
1541
931
|
{
|
|
1542
932
|
src: "https://srm-cdn.a4b.io/yoda/1785316603029.svg",
|
|
@@ -1545,7 +935,7 @@ const cr = (a) => {
|
|
|
1545
935
|
alt: "",
|
|
1546
936
|
"aria-hidden": !0
|
|
1547
937
|
}
|
|
1548
|
-
),
|
|
938
|
+
), wa = () => /* @__PURE__ */ e(
|
|
1549
939
|
"img",
|
|
1550
940
|
{
|
|
1551
941
|
src: "https://srm-cdn.a4b.io/yoda/1785316621747.svg",
|
|
@@ -1554,7 +944,7 @@ const cr = (a) => {
|
|
|
1554
944
|
alt: "",
|
|
1555
945
|
"aria-hidden": !0
|
|
1556
946
|
}
|
|
1557
|
-
),
|
|
947
|
+
), ya = () => /* @__PURE__ */ e(
|
|
1558
948
|
"img",
|
|
1559
949
|
{
|
|
1560
950
|
src: "https://srm-cdn.a4b.io/yoda/1785316635953.svg",
|
|
@@ -1563,52 +953,52 @@ const cr = (a) => {
|
|
|
1563
953
|
alt: "",
|
|
1564
954
|
"aria-hidden": !0
|
|
1565
955
|
}
|
|
1566
|
-
),
|
|
1567
|
-
/* @__PURE__ */
|
|
1568
|
-
/* @__PURE__ */
|
|
1569
|
-
/* @__PURE__ */
|
|
1570
|
-
/* @__PURE__ */
|
|
1571
|
-
] }),
|
|
1572
|
-
section:
|
|
1573
|
-
headerRow:
|
|
1574
|
-
title:
|
|
1575
|
-
changeBtn:
|
|
1576
|
-
numberRow:
|
|
1577
|
-
countryCode:
|
|
1578
|
-
number:
|
|
1579
|
-
helper:
|
|
1580
|
-
},
|
|
1581
|
-
title:
|
|
1582
|
-
countryCode:
|
|
1583
|
-
phoneNumber:
|
|
1584
|
-
helperText:
|
|
1585
|
-
onEdit:
|
|
1586
|
-
t:
|
|
1587
|
-
className:
|
|
1588
|
-
}) => /* @__PURE__ */
|
|
1589
|
-
/* @__PURE__ */
|
|
1590
|
-
/* @__PURE__ */
|
|
1591
|
-
|
|
956
|
+
), ka = () => /* @__PURE__ */ i("svg", { width: "40", height: "40", viewBox: "0 0 24 24", fill: "none", "aria-hidden": !0, children: [
|
|
957
|
+
/* @__PURE__ */ e("rect", { x: "3", y: "4.5", width: "18", height: "16", rx: "3", stroke: "#D1D5DB", strokeWidth: "1.6" }),
|
|
958
|
+
/* @__PURE__ */ e("path", { d: "M3 9.5h18", stroke: "#D1D5DB", strokeWidth: "1.6" }),
|
|
959
|
+
/* @__PURE__ */ e("path", { d: "M8 2.5v4M16 2.5v4", stroke: "#D1D5DB", strokeWidth: "1.6", strokeLinecap: "round" }),
|
|
960
|
+
/* @__PURE__ */ e("path", { d: "M7.5 20.5L17 6", stroke: "#9CA3AF", strokeWidth: "1.6", strokeLinecap: "round" })
|
|
961
|
+
] }), Sa = "_section_1ltqn_2", Ia = "_headerRow_1ltqn_10", $a = "_title_1ltqn_18", Ta = "_changeBtn_1ltqn_24", La = "_numberRow_1ltqn_35", xa = "_countryCode_1ltqn_44", Ca = "_number_1ltqn_35", Da = "_helper_1ltqn_59", H = {
|
|
962
|
+
section: Sa,
|
|
963
|
+
headerRow: Ia,
|
|
964
|
+
title: $a,
|
|
965
|
+
changeBtn: Ta,
|
|
966
|
+
numberRow: La,
|
|
967
|
+
countryCode: xa,
|
|
968
|
+
number: Ca,
|
|
969
|
+
helper: Da
|
|
970
|
+
}, Ba = ({
|
|
971
|
+
title: t,
|
|
972
|
+
countryCode: n = "+91",
|
|
973
|
+
phoneNumber: a = "98765 43210",
|
|
974
|
+
helperText: s,
|
|
975
|
+
onEdit: r,
|
|
976
|
+
t: c,
|
|
977
|
+
className: d = ""
|
|
978
|
+
}) => /* @__PURE__ */ i("section", { className: [H.section, d].filter(Boolean).join(" "), children: [
|
|
979
|
+
/* @__PURE__ */ i("div", { className: H.headerRow, children: [
|
|
980
|
+
/* @__PURE__ */ e("span", { className: H.title, children: t ?? c?.("planPhoneNumberHeading") ?? "Your phone number" }),
|
|
981
|
+
r && /* @__PURE__ */ e("button", { type: "button", className: H.changeBtn, onClick: r, children: c?.("planPhoneNumberChange") ?? "Change" })
|
|
1592
982
|
] }),
|
|
1593
|
-
/* @__PURE__ */
|
|
1594
|
-
/* @__PURE__ */
|
|
1595
|
-
/* @__PURE__ */
|
|
983
|
+
/* @__PURE__ */ i("div", { className: H.numberRow, children: [
|
|
984
|
+
/* @__PURE__ */ e("span", { className: H.countryCode, children: n }),
|
|
985
|
+
/* @__PURE__ */ e("span", { className: H.number, children: a })
|
|
1596
986
|
] }),
|
|
1597
|
-
/* @__PURE__ */
|
|
1598
|
-
] }),
|
|
1599
|
-
section:
|
|
1600
|
-
title:
|
|
1601
|
-
profileRow:
|
|
1602
|
-
profileCard:
|
|
1603
|
-
profileCardSelected:
|
|
1604
|
-
profileTop:
|
|
1605
|
-
avatar:
|
|
1606
|
-
profileName:
|
|
1607
|
-
relationPill:
|
|
1608
|
-
profileMeta:
|
|
1609
|
-
addCard:
|
|
1610
|
-
addIcon:
|
|
1611
|
-
},
|
|
987
|
+
/* @__PURE__ */ e("p", { className: H.helper, children: s ?? c?.("planPhoneNumberHelper") ?? "The astrologer will call you on this number at your booked slot." })
|
|
988
|
+
] }), Ma = "_section_12hk9_2", Ra = "_title_12hk9_6", Pa = "_profileRow_12hk9_13", Aa = "_profileCard_12hk9_26", Ea = "_profileCardSelected_12hk9_47", Oa = "_profileTop_12hk9_52", Fa = "_avatar_12hk9_60", qa = "_profileName_12hk9_74", Wa = "_relationPill_12hk9_84", ja = "_profileMeta_12hk9_98", Ha = "_addCard_12hk9_108", Ka = "_addIcon_12hk9_127", x = {
|
|
989
|
+
section: Ma,
|
|
990
|
+
title: Ra,
|
|
991
|
+
profileRow: Pa,
|
|
992
|
+
profileCard: Aa,
|
|
993
|
+
profileCardSelected: Ea,
|
|
994
|
+
profileTop: Oa,
|
|
995
|
+
avatar: Fa,
|
|
996
|
+
profileName: qa,
|
|
997
|
+
relationPill: Wa,
|
|
998
|
+
profileMeta: ja,
|
|
999
|
+
addCard: Ha,
|
|
1000
|
+
addIcon: Ka
|
|
1001
|
+
}, Ua = [
|
|
1612
1002
|
{
|
|
1613
1003
|
id: "self",
|
|
1614
1004
|
name: "Aarav Sharma",
|
|
@@ -1623,237 +1013,238 @@ const cr = (a) => {
|
|
|
1623
1013
|
birthPlace: "Pune, India",
|
|
1624
1014
|
relation: "Spouse"
|
|
1625
1015
|
}
|
|
1626
|
-
],
|
|
1627
|
-
title:
|
|
1628
|
-
profiles:
|
|
1629
|
-
selectedProfileId:
|
|
1630
|
-
onProfileSelect:
|
|
1631
|
-
onAddProfile:
|
|
1632
|
-
t:
|
|
1633
|
-
className:
|
|
1016
|
+
], za = ({
|
|
1017
|
+
title: t,
|
|
1018
|
+
profiles: n = Ua,
|
|
1019
|
+
selectedProfileId: a,
|
|
1020
|
+
onProfileSelect: s,
|
|
1021
|
+
onAddProfile: r,
|
|
1022
|
+
t: c,
|
|
1023
|
+
className: d = ""
|
|
1634
1024
|
}) => {
|
|
1635
|
-
const [
|
|
1636
|
-
|
|
1025
|
+
const [l, u] = $(n[0]?.id ?? ""), h = a ?? l, f = (_) => {
|
|
1026
|
+
u(_), s?.(_);
|
|
1637
1027
|
};
|
|
1638
|
-
return /* @__PURE__ */
|
|
1639
|
-
/* @__PURE__ */
|
|
1640
|
-
/* @__PURE__ */
|
|
1641
|
-
|
|
1642
|
-
const
|
|
1643
|
-
return /* @__PURE__ */
|
|
1028
|
+
return /* @__PURE__ */ i("section", { className: [x.section, d].filter(Boolean).join(" "), children: [
|
|
1029
|
+
/* @__PURE__ */ e("p", { className: x.title, children: t ?? c?.("planAstrologyProfilesHeading") ?? "Astrology profile" }),
|
|
1030
|
+
/* @__PURE__ */ i("div", { className: x.profileRow, role: "radiogroup", "aria-label": "Astrology profile", children: [
|
|
1031
|
+
n.map((_) => {
|
|
1032
|
+
const p = _.id === h;
|
|
1033
|
+
return /* @__PURE__ */ i(
|
|
1644
1034
|
"button",
|
|
1645
1035
|
{
|
|
1646
1036
|
type: "button",
|
|
1647
1037
|
role: "radio",
|
|
1648
|
-
"aria-checked":
|
|
1649
|
-
className: [
|
|
1650
|
-
onClick: () =>
|
|
1038
|
+
"aria-checked": p,
|
|
1039
|
+
className: [x.profileCard, p ? x.profileCardSelected : ""].filter(Boolean).join(" "),
|
|
1040
|
+
onClick: () => f(_.id),
|
|
1651
1041
|
children: [
|
|
1652
|
-
/* @__PURE__ */
|
|
1653
|
-
/* @__PURE__ */
|
|
1654
|
-
/* @__PURE__ */
|
|
1042
|
+
/* @__PURE__ */ i("span", { className: x.profileTop, children: [
|
|
1043
|
+
/* @__PURE__ */ e("span", { className: x.avatar, "aria-hidden": !0, children: _.name.charAt(0).toUpperCase() }),
|
|
1044
|
+
/* @__PURE__ */ e("span", { className: x.profileName, children: _.name })
|
|
1655
1045
|
] }),
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1046
|
+
_.relation && /* @__PURE__ */ e("span", { className: x.relationPill, children: _.relation }),
|
|
1047
|
+
_.birthDetails && /* @__PURE__ */ e("span", { className: x.profileMeta, children: _.birthDetails }),
|
|
1048
|
+
_.birthPlace && /* @__PURE__ */ e("span", { className: x.profileMeta, children: _.birthPlace })
|
|
1659
1049
|
]
|
|
1660
1050
|
},
|
|
1661
|
-
|
|
1051
|
+
_.id
|
|
1662
1052
|
);
|
|
1663
1053
|
}),
|
|
1664
|
-
|
|
1665
|
-
/* @__PURE__ */
|
|
1666
|
-
|
|
1054
|
+
r && /* @__PURE__ */ i("button", { type: "button", className: x.addCard, onClick: r, children: [
|
|
1055
|
+
/* @__PURE__ */ e("span", { className: x.addIcon, "aria-hidden": !0, children: "+" }),
|
|
1056
|
+
c?.("planAddAstrologyProfile") ?? "Add profile"
|
|
1667
1057
|
] })
|
|
1668
1058
|
] })
|
|
1669
1059
|
] });
|
|
1670
|
-
},
|
|
1671
|
-
root:
|
|
1672
|
-
languageRow:
|
|
1673
|
-
languageLabel:
|
|
1674
|
-
languageDropdown:
|
|
1675
|
-
languageDropdownBtn:
|
|
1676
|
-
languageMenu:
|
|
1677
|
-
languageMenuItem:
|
|
1678
|
-
languageMenuItemSelected:
|
|
1679
|
-
languageDivider:
|
|
1680
|
-
sectionHeading:
|
|
1681
|
-
reportReadyBanner:
|
|
1682
|
-
reportReadyDuration:
|
|
1683
|
-
dateTabs:
|
|
1684
|
-
dateTabIndicator:
|
|
1685
|
-
dateTab:
|
|
1686
|
-
dateTabDivider:
|
|
1687
|
-
dateTabSelected:
|
|
1688
|
-
dateTabLabel:
|
|
1689
|
-
dateTabNum:
|
|
1690
|
-
periodTabs:
|
|
1691
|
-
periodTabIndicator:
|
|
1692
|
-
periodTab:
|
|
1693
|
-
periodTabSelected:
|
|
1694
|
-
timeGrid:
|
|
1695
|
-
emptyState:
|
|
1696
|
-
timeSlot:
|
|
1697
|
-
timeSlotSelected:
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1060
|
+
}, Ga = "_root_m8bvg_6", Ya = "_languageRow_m8bvg_19", Va = "_languageLabel_m8bvg_27", Ja = "_languageDropdown_m8bvg_33", Za = "_languageDropdownBtn_m8bvg_37", Xa = "_languageMenu_m8bvg_52", Qa = "_languageMenuItem_m8bvg_69", eo = "_languageMenuItemSelected_m8bvg_83", to = "_languageDivider_m8bvg_89", no = "_sectionHeading_m8bvg_96", ao = "_reportReadyBanner_m8bvg_104", oo = "_reportReadyDuration_m8bvg_113", so = "_dateTabs_m8bvg_119", ro = "_dateTabIndicator_m8bvg_131", io = "_dateTab_m8bvg_119", co = "_dateTabDivider_m8bvg_165", lo = "_dateTabSelected_m8bvg_175", mo = "_dateTabLabel_m8bvg_180", _o = "_dateTabNum_m8bvg_187", ho = "_periodTabs_m8bvg_201", uo = "_periodTabIndicator_m8bvg_129", go = "_periodTab_m8bvg_129", po = "_periodTabSelected_m8bvg_248", bo = "_timeGrid_m8bvg_253", fo = "_emptyState_m8bvg_280", vo = "_timeSlot_m8bvg_284", No = "_timeSlotSelected_m8bvg_300", wo = "_timeSlotDisabled_m8bvg_308", yo = "_stateMessage_m8bvg_320", ko = "_retryBtn_m8bvg_327", So = "_emptyStateIcon_m8bvg_353", Io = "_emptyStateTitle_m8bvg_364", $o = "_emptyStateSubtitle_m8bvg_371", To = "_loadingWrap_m8bvg_380", Lo = "_skeletonShimmer_m8bvg_385", xo = "_skeletonDateTabs_m8bvg_399", Co = "_skeletonDateTab_m8bvg_399", Do = "_skeletonPeriodTabs_m8bvg_413", Bo = "_skeletonPeriodTab_m8bvg_413", Mo = "_skeletonTimeGrid_m8bvg_428", Ro = "_skeletonTimeSlot_m8bvg_434", m = {
|
|
1061
|
+
root: Ga,
|
|
1062
|
+
languageRow: Ya,
|
|
1063
|
+
languageLabel: Va,
|
|
1064
|
+
languageDropdown: Ja,
|
|
1065
|
+
languageDropdownBtn: Za,
|
|
1066
|
+
languageMenu: Xa,
|
|
1067
|
+
languageMenuItem: Qa,
|
|
1068
|
+
languageMenuItemSelected: eo,
|
|
1069
|
+
languageDivider: to,
|
|
1070
|
+
sectionHeading: no,
|
|
1071
|
+
reportReadyBanner: ao,
|
|
1072
|
+
reportReadyDuration: oo,
|
|
1073
|
+
dateTabs: so,
|
|
1074
|
+
dateTabIndicator: ro,
|
|
1075
|
+
dateTab: io,
|
|
1076
|
+
dateTabDivider: co,
|
|
1077
|
+
dateTabSelected: lo,
|
|
1078
|
+
dateTabLabel: mo,
|
|
1079
|
+
dateTabNum: _o,
|
|
1080
|
+
periodTabs: ho,
|
|
1081
|
+
periodTabIndicator: uo,
|
|
1082
|
+
periodTab: go,
|
|
1083
|
+
periodTabSelected: po,
|
|
1084
|
+
timeGrid: bo,
|
|
1085
|
+
emptyState: fo,
|
|
1086
|
+
timeSlot: vo,
|
|
1087
|
+
timeSlotSelected: No,
|
|
1088
|
+
timeSlotDisabled: wo,
|
|
1089
|
+
stateMessage: yo,
|
|
1090
|
+
retryBtn: ko,
|
|
1091
|
+
emptyStateIcon: So,
|
|
1092
|
+
emptyStateTitle: Io,
|
|
1093
|
+
emptyStateSubtitle: $o,
|
|
1094
|
+
loadingWrap: To,
|
|
1095
|
+
skeletonShimmer: Lo,
|
|
1096
|
+
skeletonDateTabs: xo,
|
|
1097
|
+
skeletonDateTab: Co,
|
|
1098
|
+
skeletonPeriodTabs: Do,
|
|
1099
|
+
skeletonPeriodTab: Bo,
|
|
1100
|
+
skeletonTimeGrid: Mo,
|
|
1101
|
+
skeletonTimeSlot: Ro
|
|
1102
|
+
}, Po = {
|
|
1103
|
+
morning: Na,
|
|
1104
|
+
afternoon: wa,
|
|
1105
|
+
evening: ya
|
|
1106
|
+
}, Ao = {
|
|
1716
1107
|
morning: "planPeriodMorning",
|
|
1717
1108
|
afternoon: "planPeriodAfternoon",
|
|
1718
1109
|
evening: "planPeriodEvening"
|
|
1719
|
-
},
|
|
1720
|
-
days:
|
|
1721
|
-
loading:
|
|
1722
|
-
error:
|
|
1723
|
-
onRetry:
|
|
1724
|
-
selectedDate:
|
|
1725
|
-
onDateSelect:
|
|
1726
|
-
selectedPeriod:
|
|
1727
|
-
onPeriodSelect:
|
|
1728
|
-
selectedSlotStart:
|
|
1729
|
-
onSlotSelect:
|
|
1730
|
-
hideLanguageSelector:
|
|
1731
|
-
languageOptions:
|
|
1732
|
-
selectedLanguage:
|
|
1733
|
-
onLanguageSelect:
|
|
1734
|
-
showPhoneNumberSection:
|
|
1735
|
-
phoneNumberSection:
|
|
1736
|
-
showAstrologyProfilesSection:
|
|
1737
|
-
astrologyProfilesSection:
|
|
1738
|
-
heading:
|
|
1739
|
-
languageLabel:
|
|
1740
|
-
reportReadyNote:
|
|
1741
|
-
isGlobal:
|
|
1742
|
-
t:
|
|
1743
|
-
className:
|
|
1110
|
+
}, K = (...t) => t.filter(Boolean).join(" "), nr = ({
|
|
1111
|
+
days: t,
|
|
1112
|
+
loading: n = !1,
|
|
1113
|
+
error: a = !1,
|
|
1114
|
+
onRetry: s,
|
|
1115
|
+
selectedDate: r,
|
|
1116
|
+
onDateSelect: c,
|
|
1117
|
+
selectedPeriod: d,
|
|
1118
|
+
onPeriodSelect: l,
|
|
1119
|
+
selectedSlotStart: u,
|
|
1120
|
+
onSlotSelect: h,
|
|
1121
|
+
hideLanguageSelector: f = !1,
|
|
1122
|
+
languageOptions: _ = ba,
|
|
1123
|
+
selectedLanguage: p,
|
|
1124
|
+
onLanguageSelect: b,
|
|
1125
|
+
showPhoneNumberSection: w = !0,
|
|
1126
|
+
phoneNumberSection: O,
|
|
1127
|
+
showAstrologyProfilesSection: k = !0,
|
|
1128
|
+
astrologyProfilesSection: T,
|
|
1129
|
+
heading: P,
|
|
1130
|
+
languageLabel: Q,
|
|
1131
|
+
reportReadyNote: U,
|
|
1132
|
+
isGlobal: ee = !0,
|
|
1133
|
+
t: y,
|
|
1134
|
+
className: V = ""
|
|
1744
1135
|
}) => {
|
|
1745
|
-
const
|
|
1746
|
-
() =>
|
|
1747
|
-
[
|
|
1748
|
-
), [
|
|
1749
|
-
const o =
|
|
1750
|
-
return
|
|
1751
|
-
}, [
|
|
1752
|
-
() =>
|
|
1753
|
-
[
|
|
1754
|
-
),
|
|
1755
|
-
if (!
|
|
1756
|
-
const o = new Set(
|
|
1757
|
-
return
|
|
1758
|
-
}, [
|
|
1759
|
-
const o =
|
|
1760
|
-
return o &&
|
|
1761
|
-
}, [
|
|
1762
|
-
() =>
|
|
1763
|
-
[
|
|
1764
|
-
), [ye,
|
|
1765
|
-
if (
|
|
1766
|
-
const o =
|
|
1767
|
-
return
|
|
1768
|
-
}, [
|
|
1769
|
-
() =>
|
|
1770
|
-
),
|
|
1771
|
-
|
|
1772
|
-
if (!
|
|
1773
|
-
const o = (
|
|
1774
|
-
|
|
1136
|
+
const C = E(
|
|
1137
|
+
() => t.filter((o) => o.has_availability && o.slots.length > 0),
|
|
1138
|
+
[t]
|
|
1139
|
+
), [ie, he] = $(""), F = E(() => {
|
|
1140
|
+
const o = r ?? ie;
|
|
1141
|
+
return C.some((g) => g.date === o) ? o : C[0]?.date ?? "";
|
|
1142
|
+
}, [r, ie, C]), q = E(
|
|
1143
|
+
() => C.find((o) => o.date === F) ?? null,
|
|
1144
|
+
[C, F]
|
|
1145
|
+
), W = E(() => {
|
|
1146
|
+
if (!q) return [];
|
|
1147
|
+
const o = new Set(q.slots.map((g) => g.period));
|
|
1148
|
+
return pa.filter((g) => o.has(g));
|
|
1149
|
+
}, [q]), [te, N] = $(""), L = E(() => {
|
|
1150
|
+
const o = d ?? te;
|
|
1151
|
+
return o && W.includes(o) ? o : W[0] ?? "morning";
|
|
1152
|
+
}, [d, te, W]), z = E(
|
|
1153
|
+
() => q ? q.slots.filter((o) => o.period === L) : [],
|
|
1154
|
+
[q, L]
|
|
1155
|
+
), [ye, He] = $(""), ke = E(() => {
|
|
1156
|
+
if (u === null) return "";
|
|
1157
|
+
const o = u ?? ye;
|
|
1158
|
+
return z.some((g) => g.start === o) ? o : z[0]?.start ?? "";
|
|
1159
|
+
}, [u, ye, z]), [Ke, Ue] = $(
|
|
1160
|
+
() => _[0]?.code ?? "en"
|
|
1161
|
+
), Se = p ?? Ke, ue = _.find((o) => o.code === Se) ?? _[0], [ce, ge] = $(!1), pe = Y(null);
|
|
1162
|
+
re(() => {
|
|
1163
|
+
if (!ce) return;
|
|
1164
|
+
const o = (g) => {
|
|
1165
|
+
pe.current && !pe.current.contains(g.target) && ge(!1);
|
|
1775
1166
|
};
|
|
1776
1167
|
return document.addEventListener("mousedown", o), () => document.removeEventListener("mousedown", o);
|
|
1777
|
-
}, [
|
|
1778
|
-
const
|
|
1168
|
+
}, [ce]);
|
|
1169
|
+
const Ie = Y(null), $e = Y({}), [ne, Te] = $(null), Le = Y(null), xe = Y(
|
|
1779
1170
|
{}
|
|
1780
|
-
), [
|
|
1781
|
-
|
|
1171
|
+
), [be, Ce] = $(null);
|
|
1172
|
+
re(() => {
|
|
1782
1173
|
const o = () => {
|
|
1783
|
-
const
|
|
1784
|
-
if (!
|
|
1785
|
-
|
|
1174
|
+
const g = Ie.current, D = $e.current[F];
|
|
1175
|
+
if (!g || !D) {
|
|
1176
|
+
Te(null);
|
|
1786
1177
|
return;
|
|
1787
1178
|
}
|
|
1788
|
-
const
|
|
1789
|
-
|
|
1790
|
-
left:
|
|
1791
|
-
top:
|
|
1792
|
-
width:
|
|
1793
|
-
height:
|
|
1179
|
+
const j = g.getBoundingClientRect(), B = D.getBoundingClientRect();
|
|
1180
|
+
Te({
|
|
1181
|
+
left: B.left - j.left,
|
|
1182
|
+
top: B.top - j.top,
|
|
1183
|
+
width: B.width,
|
|
1184
|
+
height: B.height
|
|
1794
1185
|
});
|
|
1795
1186
|
};
|
|
1796
1187
|
return o(), window.addEventListener("resize", o), () => window.removeEventListener("resize", o);
|
|
1797
|
-
}, [
|
|
1188
|
+
}, [F, C, n, a]), re(() => {
|
|
1798
1189
|
const o = () => {
|
|
1799
|
-
const
|
|
1800
|
-
if (!
|
|
1801
|
-
|
|
1190
|
+
const g = Le.current, D = xe.current[L];
|
|
1191
|
+
if (!g || !D) {
|
|
1192
|
+
Ce(null);
|
|
1802
1193
|
return;
|
|
1803
1194
|
}
|
|
1804
|
-
const
|
|
1805
|
-
|
|
1806
|
-
left:
|
|
1807
|
-
width:
|
|
1195
|
+
const j = g.getBoundingClientRect(), B = D.getBoundingClientRect();
|
|
1196
|
+
Ce({
|
|
1197
|
+
left: B.left - j.left,
|
|
1198
|
+
width: B.width
|
|
1808
1199
|
});
|
|
1809
1200
|
};
|
|
1810
1201
|
return o(), window.addEventListener("resize", o), () => window.removeEventListener("resize", o);
|
|
1811
|
-
}, [
|
|
1812
|
-
const
|
|
1813
|
-
|
|
1814
|
-
},
|
|
1815
|
-
|
|
1816
|
-
},
|
|
1817
|
-
|
|
1818
|
-
},
|
|
1819
|
-
|
|
1202
|
+
}, [L, W, n, a]);
|
|
1203
|
+
const ze = (o) => {
|
|
1204
|
+
he(o), c?.(o);
|
|
1205
|
+
}, Ge = (o) => {
|
|
1206
|
+
N(o), l?.(o);
|
|
1207
|
+
}, Ye = (o) => {
|
|
1208
|
+
He(o.start), h?.(o);
|
|
1209
|
+
}, Ve = (o) => {
|
|
1210
|
+
Ue(o), ge(!1), b?.(o);
|
|
1820
1211
|
};
|
|
1821
|
-
return /* @__PURE__ */
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
!
|
|
1825
|
-
/* @__PURE__ */
|
|
1826
|
-
/* @__PURE__ */
|
|
1827
|
-
/* @__PURE__ */
|
|
1828
|
-
/* @__PURE__ */
|
|
1212
|
+
return /* @__PURE__ */ i("div", { className: K(m.root, V), children: [
|
|
1213
|
+
w && (O ?? /* @__PURE__ */ e(Ba, { t: y })),
|
|
1214
|
+
k && (T ?? /* @__PURE__ */ e(za, { t: y })),
|
|
1215
|
+
!f && /* @__PURE__ */ i(De, { children: [
|
|
1216
|
+
/* @__PURE__ */ i("div", { className: m.languageRow, children: [
|
|
1217
|
+
/* @__PURE__ */ e("span", { className: m.languageLabel, children: Q ?? y?.("planConsultationLanguageLabel") ?? "Your consultation language" }),
|
|
1218
|
+
/* @__PURE__ */ i("div", { className: m.languageDropdown, ref: pe, children: [
|
|
1219
|
+
/* @__PURE__ */ i(
|
|
1829
1220
|
"button",
|
|
1830
1221
|
{
|
|
1831
1222
|
type: "button",
|
|
1832
1223
|
className: m.languageDropdownBtn,
|
|
1833
|
-
onClick: () =>
|
|
1224
|
+
onClick: () => ge((o) => !o),
|
|
1834
1225
|
"aria-haspopup": "listbox",
|
|
1835
|
-
"aria-expanded":
|
|
1226
|
+
"aria-expanded": ce,
|
|
1836
1227
|
children: [
|
|
1837
|
-
(
|
|
1838
|
-
/* @__PURE__ */
|
|
1228
|
+
(ue?.labelKey && y?.(ue.labelKey)) ?? ue?.label,
|
|
1229
|
+
/* @__PURE__ */ e(va, {})
|
|
1839
1230
|
]
|
|
1840
1231
|
}
|
|
1841
1232
|
),
|
|
1842
|
-
|
|
1843
|
-
const
|
|
1844
|
-
return /* @__PURE__ */
|
|
1233
|
+
ce && /* @__PURE__ */ e("ul", { className: m.languageMenu, role: "listbox", children: _.map((o) => {
|
|
1234
|
+
const g = o.code === Se;
|
|
1235
|
+
return /* @__PURE__ */ i(
|
|
1845
1236
|
"li",
|
|
1846
1237
|
{
|
|
1847
1238
|
role: "option",
|
|
1848
|
-
"aria-selected":
|
|
1849
|
-
className:
|
|
1239
|
+
"aria-selected": g,
|
|
1240
|
+
className: K(
|
|
1850
1241
|
m.languageMenuItem,
|
|
1851
|
-
|
|
1242
|
+
g && m.languageMenuItemSelected
|
|
1852
1243
|
),
|
|
1853
|
-
onClick: () =>
|
|
1244
|
+
onClick: () => Ve(o.code),
|
|
1854
1245
|
children: [
|
|
1855
|
-
(o.labelKey &&
|
|
1856
|
-
|
|
1246
|
+
(o.labelKey && y?.(o.labelKey)) ?? o.label,
|
|
1247
|
+
g && /* @__PURE__ */ e(fa, {})
|
|
1857
1248
|
]
|
|
1858
1249
|
},
|
|
1859
1250
|
o.code
|
|
@@ -1861,115 +1252,115 @@ const cr = (a) => {
|
|
|
1861
1252
|
}) })
|
|
1862
1253
|
] })
|
|
1863
1254
|
] }),
|
|
1864
|
-
/* @__PURE__ */
|
|
1255
|
+
/* @__PURE__ */ e("hr", { className: m.languageDivider })
|
|
1865
1256
|
] }),
|
|
1866
|
-
/* @__PURE__ */
|
|
1867
|
-
|
|
1868
|
-
|
|
1257
|
+
/* @__PURE__ */ e("p", { className: m.sectionHeading, children: P ?? y?.("planSelectSlotHeading") ?? "Book your preferred consultation slot" }),
|
|
1258
|
+
U === void 0 ? /* @__PURE__ */ i("p", { className: m.reportReadyBanner, children: [
|
|
1259
|
+
y?.("planReportReadyPrefix") ?? "Your Report will be ready in",
|
|
1869
1260
|
" ",
|
|
1870
|
-
/* @__PURE__ */
|
|
1261
|
+
/* @__PURE__ */ e("span", { className: m.reportReadyDuration, children: y?.("planReportReadyDuration") ?? "24-48 hours" }),
|
|
1871
1262
|
" ",
|
|
1872
|
-
|
|
1873
|
-
] }) :
|
|
1874
|
-
|
|
1875
|
-
/* @__PURE__ */
|
|
1876
|
-
/* @__PURE__ */
|
|
1877
|
-
/* @__PURE__ */
|
|
1263
|
+
y?.("planReportReadySuffix") ?? "from today"
|
|
1264
|
+
] }) : U,
|
|
1265
|
+
n && /* @__PURE__ */ i("div", { className: m.loadingWrap, "aria-busy": "true", "aria-live": "polite", children: [
|
|
1266
|
+
/* @__PURE__ */ e("div", { className: m.skeletonDateTabs, children: Array.from({ length: 5 }).map((o, g) => /* @__PURE__ */ e("div", { className: K(m.skeletonDateTab, m.skeletonShimmer) }, g)) }),
|
|
1267
|
+
/* @__PURE__ */ e("div", { className: m.skeletonPeriodTabs, children: Array.from({ length: 3 }).map((o, g) => /* @__PURE__ */ e("div", { className: K(m.skeletonPeriodTab, m.skeletonShimmer) }, g)) }),
|
|
1268
|
+
/* @__PURE__ */ e("div", { className: m.skeletonTimeGrid, children: Array.from({ length: 6 }).map((o, g) => /* @__PURE__ */ e("div", { className: K(m.skeletonTimeSlot, m.skeletonShimmer) }, g)) })
|
|
1878
1269
|
] }),
|
|
1879
|
-
!
|
|
1880
|
-
|
|
1881
|
-
|
|
1270
|
+
!n && a && /* @__PURE__ */ i("div", { className: m.stateMessage, children: [
|
|
1271
|
+
y?.("planSlotsLoadError") ?? "Couldn't load slots. Please try again.",
|
|
1272
|
+
s && /* @__PURE__ */ e("button", { type: "button", className: m.retryBtn, onClick: s, children: y?.("planRetry") ?? "Retry" })
|
|
1882
1273
|
] }),
|
|
1883
|
-
!
|
|
1884
|
-
/* @__PURE__ */
|
|
1885
|
-
/* @__PURE__ */
|
|
1886
|
-
/* @__PURE__ */
|
|
1274
|
+
!n && !a && C.length === 0 && /* @__PURE__ */ i("div", { className: m.emptyState, children: [
|
|
1275
|
+
/* @__PURE__ */ e("span", { className: m.emptyStateIcon, children: /* @__PURE__ */ e(ka, {}) }),
|
|
1276
|
+
/* @__PURE__ */ e("p", { className: m.emptyStateTitle, children: y?.("planNoSlotsAvailableTitle") ?? "No slots available" }),
|
|
1277
|
+
/* @__PURE__ */ e("p", { className: m.emptyStateSubtitle, children: y?.("planNoSlotsAvailableSubtitle") ?? "Try a different consultation language above, or check back soon." })
|
|
1887
1278
|
] }),
|
|
1888
|
-
!
|
|
1889
|
-
/* @__PURE__ */
|
|
1279
|
+
!n && !a && C.length > 0 && /* @__PURE__ */ i(De, { children: [
|
|
1280
|
+
/* @__PURE__ */ i(
|
|
1890
1281
|
"div",
|
|
1891
1282
|
{
|
|
1892
1283
|
className: m.dateTabs,
|
|
1893
|
-
ref:
|
|
1284
|
+
ref: Ie,
|
|
1894
1285
|
role: "radiogroup",
|
|
1895
1286
|
"aria-label": "Consultation date",
|
|
1896
1287
|
children: [
|
|
1897
|
-
|
|
1288
|
+
ne && /* @__PURE__ */ e(
|
|
1898
1289
|
"span",
|
|
1899
1290
|
{
|
|
1900
1291
|
className: m.dateTabIndicator,
|
|
1901
1292
|
style: {
|
|
1902
|
-
transform: `translate(${
|
|
1903
|
-
width:
|
|
1904
|
-
height:
|
|
1293
|
+
transform: `translate(${ne.left}px, ${ne.top}px)`,
|
|
1294
|
+
width: ne.width,
|
|
1295
|
+
height: ne.height
|
|
1905
1296
|
},
|
|
1906
1297
|
"aria-hidden": "true"
|
|
1907
1298
|
}
|
|
1908
1299
|
),
|
|
1909
|
-
|
|
1910
|
-
const
|
|
1911
|
-
return /* @__PURE__ */
|
|
1912
|
-
/* @__PURE__ */
|
|
1300
|
+
C.map((o) => {
|
|
1301
|
+
const g = o.date === F, { dayLabel: D, dayNum: j } = ga(o.date);
|
|
1302
|
+
return /* @__PURE__ */ i(Je, { children: [
|
|
1303
|
+
/* @__PURE__ */ i(
|
|
1913
1304
|
"button",
|
|
1914
1305
|
{
|
|
1915
1306
|
type: "button",
|
|
1916
|
-
ref: (
|
|
1917
|
-
|
|
1307
|
+
ref: (B) => {
|
|
1308
|
+
$e.current[o.date] = B;
|
|
1918
1309
|
},
|
|
1919
|
-
className:
|
|
1310
|
+
className: K(m.dateTab, g && m.dateTabSelected),
|
|
1920
1311
|
role: "radio",
|
|
1921
|
-
"aria-checked":
|
|
1922
|
-
onClick: () =>
|
|
1312
|
+
"aria-checked": g,
|
|
1313
|
+
onClick: () => ze(o.date),
|
|
1923
1314
|
children: [
|
|
1924
|
-
/* @__PURE__ */
|
|
1925
|
-
/* @__PURE__ */
|
|
1315
|
+
/* @__PURE__ */ e("span", { className: m.dateTabLabel, children: y?.(D) ?? D }),
|
|
1316
|
+
/* @__PURE__ */ e("span", { className: m.dateTabNum, children: j })
|
|
1926
1317
|
]
|
|
1927
1318
|
}
|
|
1928
1319
|
),
|
|
1929
|
-
/* @__PURE__ */
|
|
1320
|
+
/* @__PURE__ */ e("span", { className: m.dateTabDivider, "aria-hidden": !0 })
|
|
1930
1321
|
] }, o.date);
|
|
1931
1322
|
})
|
|
1932
1323
|
]
|
|
1933
1324
|
}
|
|
1934
1325
|
),
|
|
1935
|
-
/* @__PURE__ */
|
|
1326
|
+
/* @__PURE__ */ i(
|
|
1936
1327
|
"div",
|
|
1937
1328
|
{
|
|
1938
1329
|
className: m.periodTabs,
|
|
1939
|
-
ref:
|
|
1330
|
+
ref: Le,
|
|
1940
1331
|
role: "tablist",
|
|
1941
1332
|
"aria-label": "Time of day",
|
|
1942
1333
|
children: [
|
|
1943
|
-
|
|
1334
|
+
be && /* @__PURE__ */ e(
|
|
1944
1335
|
"span",
|
|
1945
1336
|
{
|
|
1946
1337
|
className: m.periodTabIndicator,
|
|
1947
1338
|
style: {
|
|
1948
|
-
transform: `translateX(${
|
|
1949
|
-
width:
|
|
1339
|
+
transform: `translateX(${be.left}px)`,
|
|
1340
|
+
width: be.width
|
|
1950
1341
|
},
|
|
1951
1342
|
"aria-hidden": "true"
|
|
1952
1343
|
}
|
|
1953
1344
|
),
|
|
1954
|
-
|
|
1955
|
-
const
|
|
1956
|
-
return /* @__PURE__ */
|
|
1345
|
+
W.map((o) => {
|
|
1346
|
+
const g = Po[o], D = o === "evening" && ee, j = D ? "planPeriodEveningNight" : Ao[o];
|
|
1347
|
+
return /* @__PURE__ */ i(
|
|
1957
1348
|
"button",
|
|
1958
1349
|
{
|
|
1959
|
-
ref: (
|
|
1960
|
-
|
|
1350
|
+
ref: (B) => {
|
|
1351
|
+
xe.current[o] = B;
|
|
1961
1352
|
},
|
|
1962
1353
|
type: "button",
|
|
1963
|
-
className:
|
|
1354
|
+
className: K(
|
|
1964
1355
|
m.periodTab,
|
|
1965
|
-
o ===
|
|
1356
|
+
o === L && m.periodTabSelected
|
|
1966
1357
|
),
|
|
1967
1358
|
role: "tab",
|
|
1968
|
-
"aria-selected": o ===
|
|
1969
|
-
onClick: () =>
|
|
1359
|
+
"aria-selected": o === L,
|
|
1360
|
+
onClick: () => Ge(o),
|
|
1970
1361
|
children: [
|
|
1971
|
-
/* @__PURE__ */
|
|
1972
|
-
|
|
1362
|
+
/* @__PURE__ */ e(g, {}),
|
|
1363
|
+
y?.(j) ?? (D ? "Evening/Night" : o.charAt(0).toUpperCase() + o.slice(1))
|
|
1973
1364
|
]
|
|
1974
1365
|
},
|
|
1975
1366
|
o
|
|
@@ -1978,43 +1369,46 @@ const cr = (a) => {
|
|
|
1978
1369
|
]
|
|
1979
1370
|
}
|
|
1980
1371
|
),
|
|
1981
|
-
/* @__PURE__ */
|
|
1372
|
+
/* @__PURE__ */ e(
|
|
1982
1373
|
"div",
|
|
1983
1374
|
{
|
|
1984
1375
|
className: m.timeGrid,
|
|
1985
1376
|
role: "radiogroup",
|
|
1986
1377
|
"aria-label": "Consultation time",
|
|
1987
|
-
children:
|
|
1378
|
+
children: z.map((o, g) => /* @__PURE__ */ e(
|
|
1988
1379
|
"button",
|
|
1989
1380
|
{
|
|
1990
1381
|
type: "button",
|
|
1991
|
-
className:
|
|
1382
|
+
className: K(
|
|
1992
1383
|
m.timeSlot,
|
|
1993
|
-
|
|
1384
|
+
ke === o.start && m.timeSlotSelected,
|
|
1385
|
+
o.disabled && m.timeSlotDisabled
|
|
1994
1386
|
),
|
|
1995
1387
|
role: "radio",
|
|
1996
|
-
"aria-checked":
|
|
1997
|
-
|
|
1998
|
-
|
|
1388
|
+
"aria-checked": ke === o.start,
|
|
1389
|
+
"aria-disabled": o.disabled || void 0,
|
|
1390
|
+
disabled: o.disabled,
|
|
1391
|
+
onClick: () => !o.disabled && Ye(o),
|
|
1392
|
+
children: ua(o.start)
|
|
1999
1393
|
},
|
|
2000
|
-
`${o.start}-${
|
|
1394
|
+
`${o.start}-${g}`
|
|
2001
1395
|
))
|
|
2002
1396
|
},
|
|
2003
|
-
`${
|
|
1397
|
+
`${F}-${L}`
|
|
2004
1398
|
)
|
|
2005
1399
|
] })
|
|
2006
1400
|
] });
|
|
2007
|
-
},
|
|
2008
|
-
const
|
|
2009
|
-
return `${
|
|
2010
|
-
},
|
|
2011
|
-
const
|
|
1401
|
+
}, Ae = "+05:30", Eo = (t) => {
|
|
1402
|
+
const n = String(t.getMonth() + 1).padStart(2, "0"), a = String(t.getDate()).padStart(2, "0");
|
|
1403
|
+
return `${t.getFullYear()}-${n}-${a}`;
|
|
1404
|
+
}, Oo = (t, n, a, s) => {
|
|
1405
|
+
const r = (l) => String(l).padStart(2, "0"), c = a + 30, d = n + Math.floor(c / 60);
|
|
2012
1406
|
return {
|
|
2013
|
-
start: `${
|
|
2014
|
-
end: `${
|
|
2015
|
-
period:
|
|
1407
|
+
start: `${t}T${r(n)}:${r(a)}:00${Ae}`,
|
|
1408
|
+
end: `${t}T${r(d)}:${r(c % 60)}:00${Ae}`,
|
|
1409
|
+
period: s
|
|
2016
1410
|
};
|
|
2017
|
-
},
|
|
1411
|
+
}, Fo = {
|
|
2018
1412
|
morning: [
|
|
2019
1413
|
[9, 0],
|
|
2020
1414
|
[9, 30],
|
|
@@ -2036,54 +1430,531 @@ const cr = (a) => {
|
|
|
2036
1430
|
[19, 0],
|
|
2037
1431
|
[20, 0]
|
|
2038
1432
|
]
|
|
2039
|
-
},
|
|
2040
|
-
const
|
|
2041
|
-
|
|
2042
|
-
const
|
|
2043
|
-
(
|
|
1433
|
+
}, oe = (t, n) => {
|
|
1434
|
+
const a = /* @__PURE__ */ new Date();
|
|
1435
|
+
a.setDate(a.getDate() + t);
|
|
1436
|
+
const s = Eo(a), r = n.flatMap(
|
|
1437
|
+
(c) => Fo[c].map(([d, l]) => Oo(s, d, l, c))
|
|
2044
1438
|
);
|
|
2045
|
-
return { date:
|
|
2046
|
-
},
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
],
|
|
2053
|
-
...
|
|
1439
|
+
return { date: s, has_availability: r.length > 0, slots: r };
|
|
1440
|
+
}, qo = [
|
|
1441
|
+
oe(0, ["morning", "afternoon", "evening"]),
|
|
1442
|
+
oe(1, ["morning", "afternoon"]),
|
|
1443
|
+
oe(2, ["afternoon", "evening"]),
|
|
1444
|
+
oe(3, ["morning", "evening"]),
|
|
1445
|
+
oe(4, ["morning", "afternoon", "evening"])
|
|
1446
|
+
], ar = qo.map((t) => ({
|
|
1447
|
+
...t,
|
|
2054
1448
|
has_availability: !1,
|
|
2055
1449
|
slots: []
|
|
2056
|
-
}))
|
|
1450
|
+
})), Wo = () => /* @__PURE__ */ e(
|
|
1451
|
+
"svg",
|
|
1452
|
+
{
|
|
1453
|
+
width: "14",
|
|
1454
|
+
height: "14",
|
|
1455
|
+
viewBox: "0 0 24 24",
|
|
1456
|
+
fill: "none",
|
|
1457
|
+
stroke: "currentColor",
|
|
1458
|
+
strokeWidth: "2.2",
|
|
1459
|
+
strokeLinecap: "round",
|
|
1460
|
+
strokeLinejoin: "round",
|
|
1461
|
+
"aria-hidden": !0,
|
|
1462
|
+
children: /* @__PURE__ */ e("path", { d: "M6 9l6 6 6-6" })
|
|
1463
|
+
}
|
|
1464
|
+
), jo = [
|
|
1465
|
+
{ name: "United States", code: "+1", iso: "US" },
|
|
1466
|
+
{ name: "United Kingdom", code: "+44", iso: "GB" },
|
|
1467
|
+
{ name: "Australia", code: "+61", iso: "AU" },
|
|
1468
|
+
{ name: "Canada", code: "+1", iso: "CA" },
|
|
1469
|
+
{ name: "United Arab Emirates", code: "+971", iso: "AE" },
|
|
1470
|
+
{ name: "Singapore", code: "+65", iso: "SG" },
|
|
1471
|
+
{ name: "New Zealand", code: "+64", iso: "NZ" },
|
|
1472
|
+
{ name: "Mauritius", code: "+230", iso: "MU" },
|
|
1473
|
+
{ name: "Netherlands", code: "+31", iso: "NL" },
|
|
1474
|
+
{ name: "Malaysia", code: "+60", iso: "MY" },
|
|
1475
|
+
{ name: "Germany", code: "+49", iso: "DE" },
|
|
1476
|
+
{ name: "South Africa", code: "+27", iso: "ZA" },
|
|
1477
|
+
{ name: "Qatar", code: "+974", iso: "QA" },
|
|
1478
|
+
{ name: "Ireland", code: "+353", iso: "IE" },
|
|
1479
|
+
{ name: "Oman", code: "+968", iso: "OM" },
|
|
1480
|
+
{ name: "Saudi Arabia", code: "+966", iso: "SA" },
|
|
1481
|
+
{ name: "Hong Kong", code: "+852", iso: "HK" },
|
|
1482
|
+
{ name: "France", code: "+33", iso: "FR" },
|
|
1483
|
+
{ name: "Switzerland", code: "+41", iso: "CH" },
|
|
1484
|
+
{ name: "Bahrain", code: "+973", iso: "BH" },
|
|
1485
|
+
{ name: "Trinidad and Tobago", code: "+1-868", iso: "TT" },
|
|
1486
|
+
{ name: "Kuwait", code: "+965", iso: "KW" },
|
|
1487
|
+
{ name: "Belgium", code: "+32", iso: "BE" },
|
|
1488
|
+
{ name: "Japan", code: "+81", iso: "JP" },
|
|
1489
|
+
{ name: "Italy", code: "+39", iso: "IT" },
|
|
1490
|
+
{ name: "Spain", code: "+34", iso: "ES" },
|
|
1491
|
+
{ name: "Norway", code: "+47", iso: "NO" },
|
|
1492
|
+
{ name: "Sweden", code: "+46", iso: "SE" },
|
|
1493
|
+
{ name: "Portugal", code: "+351", iso: "PT" },
|
|
1494
|
+
{ name: "Poland", code: "+48", iso: "PL" },
|
|
1495
|
+
{ name: "Denmark", code: "+45", iso: "DK" },
|
|
1496
|
+
{ name: "Nepal", code: "+977", iso: "NP" },
|
|
1497
|
+
{ name: "Bangladesh", code: "+880", iso: "BD" },
|
|
1498
|
+
{ name: "Kenya", code: "+254", iso: "KE" },
|
|
1499
|
+
{ name: "Mexico", code: "+52", iso: "MX" },
|
|
1500
|
+
{ name: "Czechia", code: "+420", iso: "CZ" },
|
|
1501
|
+
{ name: "Indonesia", code: "+62", iso: "ID" },
|
|
1502
|
+
{ name: "Taiwan", code: "+886", iso: "TW" },
|
|
1503
|
+
{ name: "Fiji", code: "+679", iso: "FJ" },
|
|
1504
|
+
{ name: "Guyana", code: "+592", iso: "GY" },
|
|
1505
|
+
{ name: "Finland", code: "+358", iso: "FI" },
|
|
1506
|
+
{ name: "Nigeria", code: "+234", iso: "NG" },
|
|
1507
|
+
{ name: "Jamaica", code: "+1-876", iso: "JM" },
|
|
1508
|
+
{ name: "Sri Lanka", code: "+94", iso: "LK" },
|
|
1509
|
+
{ name: "Thailand", code: "+66", iso: "TH" },
|
|
1510
|
+
{ name: "Hungary", code: "+36", iso: "HU" },
|
|
1511
|
+
{ name: "Tanzania", code: "+255", iso: "TZ" },
|
|
1512
|
+
{ name: "Sint Maarten", code: "+1-721", iso: "SX" },
|
|
1513
|
+
{ name: "Philippines", code: "+63", iso: "PH" },
|
|
1514
|
+
{ name: "Estonia", code: "+372", iso: "EE" },
|
|
1515
|
+
{ name: "Ukraine", code: "+380", iso: "UA" },
|
|
1516
|
+
{ name: "Austria", code: "+43", iso: "AT" },
|
|
1517
|
+
{ name: "Réunion", code: "+262", iso: "RE" },
|
|
1518
|
+
{ name: "India", code: "+91", iso: "IN" }
|
|
1519
|
+
], Ho = (t) => {
|
|
1520
|
+
if (!t || t.length !== 2) return "🏳️";
|
|
1521
|
+
const n = t.toUpperCase().split("").map((a) => 127397 + a.charCodeAt(0));
|
|
1522
|
+
return String.fromCodePoint(...n);
|
|
1523
|
+
}, We = {
|
|
1524
|
+
"+1": {
|
|
1525
|
+
pattern: /^[2-9]\d{9}$/,
|
|
1526
|
+
minLength: 10,
|
|
1527
|
+
maxLength: 10,
|
|
1528
|
+
description: "10 digits, cannot start with 0 or 1"
|
|
1529
|
+
},
|
|
1530
|
+
"+44": {
|
|
1531
|
+
pattern: /^\d{10}$/,
|
|
1532
|
+
minLength: 10,
|
|
1533
|
+
maxLength: 10,
|
|
1534
|
+
description: "10 digits"
|
|
1535
|
+
},
|
|
1536
|
+
"+61": {
|
|
1537
|
+
pattern: /^\d{9}$/,
|
|
1538
|
+
minLength: 9,
|
|
1539
|
+
maxLength: 9,
|
|
1540
|
+
description: "9 digits"
|
|
1541
|
+
},
|
|
1542
|
+
"+971": {
|
|
1543
|
+
pattern: /^\d{8,9}$/,
|
|
1544
|
+
minLength: 8,
|
|
1545
|
+
maxLength: 9,
|
|
1546
|
+
description: "8-9 digits"
|
|
1547
|
+
},
|
|
1548
|
+
"+65": {
|
|
1549
|
+
pattern: /^\d{8}$/,
|
|
1550
|
+
minLength: 8,
|
|
1551
|
+
maxLength: 8,
|
|
1552
|
+
description: "8 digits"
|
|
1553
|
+
},
|
|
1554
|
+
"+49": {
|
|
1555
|
+
pattern: /^\d{10,11}$/,
|
|
1556
|
+
minLength: 10,
|
|
1557
|
+
maxLength: 11,
|
|
1558
|
+
description: "10-11 digits"
|
|
1559
|
+
},
|
|
1560
|
+
"+91": {
|
|
1561
|
+
pattern: /^[6-9]\d{9}$/,
|
|
1562
|
+
minLength: 10,
|
|
1563
|
+
maxLength: 10,
|
|
1564
|
+
description: "10 digits, must start with 6-9"
|
|
1565
|
+
},
|
|
1566
|
+
"+974": {
|
|
1567
|
+
pattern: /^\d{8}$/,
|
|
1568
|
+
minLength: 8,
|
|
1569
|
+
maxLength: 8,
|
|
1570
|
+
description: "8 digits"
|
|
1571
|
+
},
|
|
1572
|
+
"+60": {
|
|
1573
|
+
pattern: /^\d{9,10}$/,
|
|
1574
|
+
minLength: 9,
|
|
1575
|
+
maxLength: 10,
|
|
1576
|
+
description: "9-10 digits"
|
|
1577
|
+
},
|
|
1578
|
+
"+27": {
|
|
1579
|
+
pattern: /^\d{9}$/,
|
|
1580
|
+
minLength: 9,
|
|
1581
|
+
maxLength: 9,
|
|
1582
|
+
description: "9 digits"
|
|
1583
|
+
},
|
|
1584
|
+
"+64": {
|
|
1585
|
+
pattern: /^\d{8,10}$/,
|
|
1586
|
+
minLength: 8,
|
|
1587
|
+
maxLength: 10,
|
|
1588
|
+
description: "8-10 digits"
|
|
1589
|
+
},
|
|
1590
|
+
"+230": {
|
|
1591
|
+
pattern: /^\d{7,8}$/,
|
|
1592
|
+
minLength: 7,
|
|
1593
|
+
maxLength: 8,
|
|
1594
|
+
description: "7-8 digits"
|
|
1595
|
+
}
|
|
1596
|
+
}, je = {
|
|
1597
|
+
pattern: /^\d{6,15}$/,
|
|
1598
|
+
maxLength: 15,
|
|
1599
|
+
description: "6-15 digits"
|
|
1600
|
+
}, Ee = (t, n) => {
|
|
1601
|
+
if (!t)
|
|
1602
|
+
return { isValid: !0, error: "" };
|
|
1603
|
+
const a = We[n] || je;
|
|
1604
|
+
return a.pattern.test(t) ? { isValid: !0, error: "" } : {
|
|
1605
|
+
isValid: !1,
|
|
1606
|
+
error: `Please enter a valid phone number (${a.description})`
|
|
1607
|
+
};
|
|
1608
|
+
}, Oe = (t) => (We[t] || je).maxLength, Ko = ({
|
|
1609
|
+
countryCode: t,
|
|
1610
|
+
contactNumber: n,
|
|
1611
|
+
countries: a,
|
|
1612
|
+
onCountryCodeChange: s,
|
|
1613
|
+
onPhoneNumberChange: r,
|
|
1614
|
+
onValidationChange: c,
|
|
1615
|
+
onDropdownFocus: d,
|
|
1616
|
+
onInputFocus: l
|
|
1617
|
+
}) => {
|
|
1618
|
+
const [u, h] = $(!1), f = a.find((k) => k.code === t) ?? a[0], _ = Oe(t), p = le(
|
|
1619
|
+
(k) => {
|
|
1620
|
+
if (s(k.code, k.name), h(!1), n && c) {
|
|
1621
|
+
const { isValid: T, error: P } = Ee(n, k.code);
|
|
1622
|
+
c(T, P);
|
|
1623
|
+
}
|
|
1624
|
+
},
|
|
1625
|
+
[n, s, c]
|
|
1626
|
+
), b = le(
|
|
1627
|
+
(k) => {
|
|
1628
|
+
const P = k.target.value.replace(/[^\d]/g, "").slice(0, Oe(t));
|
|
1629
|
+
if (r(P), c) {
|
|
1630
|
+
const { isValid: Q, error: U } = Ee(P, t);
|
|
1631
|
+
c(Q, U);
|
|
1632
|
+
}
|
|
1633
|
+
},
|
|
1634
|
+
[t, r, c]
|
|
1635
|
+
), w = le(() => {
|
|
1636
|
+
h((k) => (k || d?.(t), !k));
|
|
1637
|
+
}, [t, d]), O = le(() => {
|
|
1638
|
+
h(!1), l?.(t);
|
|
1639
|
+
}, [t, l]);
|
|
1640
|
+
return {
|
|
1641
|
+
isDropdownOpen: u,
|
|
1642
|
+
selectedCountry: f,
|
|
1643
|
+
maxLength: _,
|
|
1644
|
+
handleCountrySelect: p,
|
|
1645
|
+
handlePhoneChange: b,
|
|
1646
|
+
handleDropdownToggle: w,
|
|
1647
|
+
handlePhoneFocus: O,
|
|
1648
|
+
closeDropdown: () => h(!1)
|
|
1649
|
+
};
|
|
1650
|
+
}, Uo = "_root_3ywyc_2", zo = "_label_3ywyc_9", Go = "_row_3ywyc_17", Yo = "_dropdownWrap_3ywyc_23", Vo = "_dropdownBtn_3ywyc_29", Jo = "_dropdownMenu_3ywyc_50", Zo = "_dropdownItem_3ywyc_64", Xo = "_dropdownItemCode_3ywyc_80", Qo = "_dropdownItemName_3ywyc_85", es = "_flagImg_3ywyc_93", ts = "_flagEmoji_3ywyc_97", ns = "_input_3ywyc_102", as = "_inputError_3ywyc_121", os = "_helper_3ywyc_129", ss = "_error_3ywyc_137", S = {
|
|
1651
|
+
root: Uo,
|
|
1652
|
+
label: zo,
|
|
1653
|
+
row: Go,
|
|
1654
|
+
dropdownWrap: Yo,
|
|
1655
|
+
dropdownBtn: Vo,
|
|
1656
|
+
dropdownMenu: Jo,
|
|
1657
|
+
dropdownItem: Zo,
|
|
1658
|
+
dropdownItemCode: Xo,
|
|
1659
|
+
dropdownItemName: Qo,
|
|
1660
|
+
flagImg: es,
|
|
1661
|
+
flagEmoji: ts,
|
|
1662
|
+
input: ns,
|
|
1663
|
+
inputError: as,
|
|
1664
|
+
helper: os,
|
|
1665
|
+
error: ss
|
|
1666
|
+
}, Fe = (...t) => t.filter(Boolean).join(" "), or = ({
|
|
1667
|
+
countryCode: t,
|
|
1668
|
+
contactNumber: n,
|
|
1669
|
+
error: a,
|
|
1670
|
+
label: s,
|
|
1671
|
+
helperText: r,
|
|
1672
|
+
countries: c = jo,
|
|
1673
|
+
getFlagUrl: d,
|
|
1674
|
+
onCountryCodeChange: l,
|
|
1675
|
+
onPhoneNumberChange: u,
|
|
1676
|
+
onValidationChange: h,
|
|
1677
|
+
onDropdownFocus: f,
|
|
1678
|
+
onInputFocus: _,
|
|
1679
|
+
inputRef: p,
|
|
1680
|
+
t: b,
|
|
1681
|
+
className: w = ""
|
|
1682
|
+
}) => {
|
|
1683
|
+
const [O, k] = $(c[0]?.code ?? "+91"), [T, P] = $(""), Q = t ?? O, U = n ?? T, ee = Y(null), {
|
|
1684
|
+
isDropdownOpen: y,
|
|
1685
|
+
selectedCountry: V,
|
|
1686
|
+
maxLength: C,
|
|
1687
|
+
handleCountrySelect: ie,
|
|
1688
|
+
handlePhoneChange: he,
|
|
1689
|
+
handleDropdownToggle: F,
|
|
1690
|
+
handlePhoneFocus: q,
|
|
1691
|
+
closeDropdown: W
|
|
1692
|
+
} = Ko({
|
|
1693
|
+
countryCode: Q,
|
|
1694
|
+
contactNumber: U,
|
|
1695
|
+
countries: c,
|
|
1696
|
+
onCountryCodeChange: (N, L) => {
|
|
1697
|
+
k(N), l?.(N, L);
|
|
1698
|
+
},
|
|
1699
|
+
onPhoneNumberChange: (N) => {
|
|
1700
|
+
P(N), u?.(N);
|
|
1701
|
+
},
|
|
1702
|
+
onValidationChange: h,
|
|
1703
|
+
onDropdownFocus: f,
|
|
1704
|
+
onInputFocus: _
|
|
1705
|
+
});
|
|
1706
|
+
re(() => {
|
|
1707
|
+
const N = (L) => {
|
|
1708
|
+
ee.current && !ee.current.contains(L.target) && W();
|
|
1709
|
+
};
|
|
1710
|
+
return y && document.addEventListener("mousedown", N), () => document.removeEventListener("mousedown", N);
|
|
1711
|
+
}, [y, W]);
|
|
1712
|
+
const te = (N, L) => {
|
|
1713
|
+
const z = N ? d?.(N) : null;
|
|
1714
|
+
return z ? /* @__PURE__ */ e("img", { src: z, alt: L, width: 20, height: 14, className: S.flagImg }) : /* @__PURE__ */ e("span", { className: S.flagEmoji, "aria-hidden": !0, children: Ho(N) });
|
|
1715
|
+
};
|
|
1716
|
+
return /* @__PURE__ */ i("div", { className: Fe(S.root, w), children: [
|
|
1717
|
+
s && /* @__PURE__ */ e("div", { className: S.label, children: s }),
|
|
1718
|
+
/* @__PURE__ */ i("div", { className: S.row, children: [
|
|
1719
|
+
/* @__PURE__ */ i("div", { className: S.dropdownWrap, ref: ee, children: [
|
|
1720
|
+
/* @__PURE__ */ i("button", { type: "button", className: S.dropdownBtn, onClick: F, children: [
|
|
1721
|
+
te(V?.iso, V?.name ?? "Flag"),
|
|
1722
|
+
/* @__PURE__ */ e("span", { children: V?.code ?? "+91" }),
|
|
1723
|
+
/* @__PURE__ */ e(Wo, {})
|
|
1724
|
+
] }),
|
|
1725
|
+
y && /* @__PURE__ */ e("div", { className: S.dropdownMenu, role: "listbox", children: c.map((N) => /* @__PURE__ */ i(
|
|
1726
|
+
"button",
|
|
1727
|
+
{
|
|
1728
|
+
type: "button",
|
|
1729
|
+
role: "option",
|
|
1730
|
+
"aria-selected": N.code === V?.code,
|
|
1731
|
+
className: S.dropdownItem,
|
|
1732
|
+
onClick: () => ie(N),
|
|
1733
|
+
children: [
|
|
1734
|
+
te(N.iso, N.name),
|
|
1735
|
+
/* @__PURE__ */ e("span", { className: S.dropdownItemCode, children: N.code }),
|
|
1736
|
+
/* @__PURE__ */ e("span", { className: S.dropdownItemName, children: N.name })
|
|
1737
|
+
]
|
|
1738
|
+
},
|
|
1739
|
+
`${N.code}-${N.iso}`
|
|
1740
|
+
)) })
|
|
1741
|
+
] }),
|
|
1742
|
+
/* @__PURE__ */ e(
|
|
1743
|
+
"input",
|
|
1744
|
+
{
|
|
1745
|
+
type: "tel",
|
|
1746
|
+
inputMode: "numeric",
|
|
1747
|
+
autoComplete: "off",
|
|
1748
|
+
value: U,
|
|
1749
|
+
maxLength: C,
|
|
1750
|
+
ref: p,
|
|
1751
|
+
className: Fe(S.input, a && S.inputError),
|
|
1752
|
+
placeholder: b?.("planPhoneNumberPlaceholder") ?? "0000000000",
|
|
1753
|
+
onChange: he,
|
|
1754
|
+
onFocus: q
|
|
1755
|
+
}
|
|
1756
|
+
)
|
|
1757
|
+
] }),
|
|
1758
|
+
r && /* @__PURE__ */ e("div", { className: S.helper, children: r }),
|
|
1759
|
+
a && /* @__PURE__ */ e("p", { className: S.error, children: a })
|
|
1760
|
+
] });
|
|
1761
|
+
}, rs = () => /* @__PURE__ */ e("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ e(
|
|
1762
|
+
"path",
|
|
1763
|
+
{
|
|
1764
|
+
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",
|
|
1765
|
+
fill: "#F59E0B",
|
|
1766
|
+
stroke: "#F59E0B",
|
|
1767
|
+
strokeWidth: "1.2",
|
|
1768
|
+
strokeLinecap: "round",
|
|
1769
|
+
strokeLinejoin: "round"
|
|
1770
|
+
}
|
|
1771
|
+
) }), is = () => /* @__PURE__ */ e("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ e(
|
|
1772
|
+
"path",
|
|
1773
|
+
{
|
|
1774
|
+
fillRule: "evenodd",
|
|
1775
|
+
clipRule: "evenodd",
|
|
1776
|
+
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",
|
|
1777
|
+
fill: "#F97316"
|
|
1778
|
+
}
|
|
1779
|
+
) }), cs = "_card_1ytv6_2", ls = "_cardSelected_1ytv6_24", ds = "_photoWrap_1ytv6_31", ms = "_photoFrame_1ytv6_37", _s = "_photoImg_1ytv6_45", hs = "_ratingPill_1ytv6_51", us = "_ratingValue_1ytv6_66", gs = "_info_1ytv6_74", ps = "_name_1ytv6_84", bs = "_meta_1ytv6_95", fs = "_languages_1ytv6_103", vs = "_consultationCount_1ytv6_113", Ns = "_checkIcon_1ytv6_121", ws = "_recommendedBadge_1ytv6_126", ys = "_recommendedLabel_1ytv6_138", I = {
|
|
1780
|
+
card: cs,
|
|
1781
|
+
cardSelected: ls,
|
|
1782
|
+
photoWrap: ds,
|
|
1783
|
+
photoFrame: ms,
|
|
1784
|
+
photoImg: _s,
|
|
1785
|
+
ratingPill: hs,
|
|
1786
|
+
ratingValue: us,
|
|
1787
|
+
info: gs,
|
|
1788
|
+
name: ps,
|
|
1789
|
+
meta: bs,
|
|
1790
|
+
languages: fs,
|
|
1791
|
+
consultationCount: vs,
|
|
1792
|
+
checkIcon: Ns,
|
|
1793
|
+
recommendedBadge: ws,
|
|
1794
|
+
recommendedLabel: ys
|
|
1795
|
+
}, ks = "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>", Ss = ({
|
|
1796
|
+
photoUrl: t,
|
|
1797
|
+
name: n,
|
|
1798
|
+
rating: a,
|
|
1799
|
+
fallbackPhotoUrl: s = ks
|
|
1800
|
+
}) => /* @__PURE__ */ i("div", { className: I.photoWrap, children: [
|
|
1801
|
+
/* @__PURE__ */ e("div", { className: I.photoFrame, children: /* @__PURE__ */ e(
|
|
1802
|
+
"img",
|
|
1803
|
+
{
|
|
1804
|
+
src: t || s,
|
|
1805
|
+
alt: n,
|
|
1806
|
+
width: 64,
|
|
1807
|
+
height: 78,
|
|
1808
|
+
className: I.photoImg,
|
|
1809
|
+
onError: (r) => {
|
|
1810
|
+
r.target.src = s;
|
|
1811
|
+
}
|
|
1812
|
+
}
|
|
1813
|
+
) }),
|
|
1814
|
+
/* @__PURE__ */ i("div", { className: I.ratingPill, children: [
|
|
1815
|
+
/* @__PURE__ */ e("span", { className: I.ratingValue, children: a }),
|
|
1816
|
+
/* @__PURE__ */ e(rs, {})
|
|
1817
|
+
] })
|
|
1818
|
+
] }), Is = ({ label: t, t: n }) => /* @__PURE__ */ e("div", { className: I.recommendedBadge, children: /* @__PURE__ */ e("span", { className: I.recommendedLabel, children: t ?? n?.("planRecommendedAstrologer") ?? "Recommended" }) }), $s = (...t) => t.filter(Boolean).join(" "), Ts = (t) => {
|
|
1819
|
+
if (t >= 1e3) {
|
|
1820
|
+
const n = t / 1e3;
|
|
1821
|
+
return `${Number.isInteger(n) ? n : n.toFixed(1)}K consultations`;
|
|
1822
|
+
}
|
|
1823
|
+
return `${t} consultations`;
|
|
1824
|
+
}, Ls = ({
|
|
1825
|
+
astrologer: t,
|
|
1826
|
+
isSelected: n = !1,
|
|
1827
|
+
onClick: a,
|
|
1828
|
+
fallbackPhotoUrl: s,
|
|
1829
|
+
formatConsultationCount: r = Ts
|
|
1830
|
+
}) => /* @__PURE__ */ i(
|
|
1831
|
+
"button",
|
|
1832
|
+
{
|
|
1833
|
+
type: "button",
|
|
1834
|
+
onClick: () => a?.(t),
|
|
1835
|
+
className: $s(I.card, n && I.cardSelected),
|
|
1836
|
+
children: [
|
|
1837
|
+
/* @__PURE__ */ e(
|
|
1838
|
+
Ss,
|
|
1839
|
+
{
|
|
1840
|
+
photoUrl: t.photo_url,
|
|
1841
|
+
name: t.name,
|
|
1842
|
+
rating: t.rating,
|
|
1843
|
+
fallbackPhotoUrl: s
|
|
1844
|
+
}
|
|
1845
|
+
),
|
|
1846
|
+
/* @__PURE__ */ i("div", { className: I.info, children: [
|
|
1847
|
+
/* @__PURE__ */ e("span", { className: I.name, children: t.name }),
|
|
1848
|
+
/* @__PURE__ */ i("div", { className: I.meta, children: [
|
|
1849
|
+
/* @__PURE__ */ e("span", { className: I.languages, children: t.languages.join(", ") }),
|
|
1850
|
+
/* @__PURE__ */ e("span", { className: I.consultationCount, children: r(t.consultation_count) })
|
|
1851
|
+
] })
|
|
1852
|
+
] }),
|
|
1853
|
+
n && /* @__PURE__ */ e("div", { className: I.checkIcon, children: /* @__PURE__ */ e(is, {}) }),
|
|
1854
|
+
t.is_recommended && /* @__PURE__ */ e(Is, {})
|
|
1855
|
+
]
|
|
1856
|
+
}
|
|
1857
|
+
), xs = "_section_jbaga_2", Cs = "_title_jbaga_6", Ds = "_row_jbaga_13", Bs = "_skeletonCard_jbaga_26", Ms = "_skeletonShimmer_jbaga_33", se = {
|
|
1858
|
+
section: xs,
|
|
1859
|
+
title: Cs,
|
|
1860
|
+
row: Ds,
|
|
1861
|
+
skeletonCard: Bs,
|
|
1862
|
+
skeletonShimmer: Ms
|
|
1863
|
+
}, qe = (...t) => t.filter(Boolean).join(" "), sr = ({
|
|
1864
|
+
astrologers: t,
|
|
1865
|
+
loading: n = !1,
|
|
1866
|
+
selectedAstrologerId: a,
|
|
1867
|
+
onAstrologerSelect: s,
|
|
1868
|
+
title: r,
|
|
1869
|
+
fallbackPhotoUrl: c,
|
|
1870
|
+
formatConsultationCount: d,
|
|
1871
|
+
t: l,
|
|
1872
|
+
className: u = ""
|
|
1873
|
+
}) => {
|
|
1874
|
+
const [h, f] = $(""), _ = a ?? h, p = (b) => {
|
|
1875
|
+
f(b.astrologer_id), s?.(b);
|
|
1876
|
+
};
|
|
1877
|
+
return /* @__PURE__ */ i("section", { className: qe(se.section, u), children: [
|
|
1878
|
+
/* @__PURE__ */ e("p", { className: se.title, children: r ?? l?.("planSelectAstrologerHeading") ?? "Select an astrologer" }),
|
|
1879
|
+
/* @__PURE__ */ e("div", { className: se.row, role: "radiogroup", "aria-label": "Astrologer", children: n ? Array.from({ length: 2 }).map((b, w) => /* @__PURE__ */ e("div", { className: qe(se.skeletonCard, se.skeletonShimmer) }, w)) : t.map((b) => /* @__PURE__ */ e(
|
|
1880
|
+
Ls,
|
|
1881
|
+
{
|
|
1882
|
+
astrologer: b,
|
|
1883
|
+
isSelected: b.astrologer_id === _,
|
|
1884
|
+
onClick: p,
|
|
1885
|
+
fallbackPhotoUrl: c,
|
|
1886
|
+
formatConsultationCount: d
|
|
1887
|
+
},
|
|
1888
|
+
b.astrologer_id
|
|
1889
|
+
)) })
|
|
1890
|
+
] });
|
|
1891
|
+
}, rr = [
|
|
1892
|
+
{
|
|
1893
|
+
astrologer_id: "astro-1",
|
|
1894
|
+
name: "Pandit Ramesh Sharma",
|
|
1895
|
+
photo_url: "",
|
|
1896
|
+
languages: ["Hindi", "English"],
|
|
1897
|
+
rating: 4.8,
|
|
1898
|
+
consultation_count: 12500,
|
|
1899
|
+
is_recommended: !0
|
|
1900
|
+
},
|
|
1901
|
+
{
|
|
1902
|
+
astrologer_id: "astro-2",
|
|
1903
|
+
name: "Dr. Anjali Mehta",
|
|
1904
|
+
photo_url: "",
|
|
1905
|
+
languages: ["English", "Gujarati"],
|
|
1906
|
+
rating: 4.6,
|
|
1907
|
+
consultation_count: 870
|
|
1908
|
+
},
|
|
1909
|
+
{
|
|
1910
|
+
astrologer_id: "astro-3",
|
|
1911
|
+
name: "Acharya Vivek Joshi",
|
|
1912
|
+
photo_url: "",
|
|
1913
|
+
languages: ["Hindi", "Marathi", "English"],
|
|
1914
|
+
rating: 4.9,
|
|
1915
|
+
consultation_count: 3400
|
|
1916
|
+
}
|
|
1917
|
+
];
|
|
2057
1918
|
export {
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
qo as
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
1919
|
+
Ls as AstrologerCard,
|
|
1920
|
+
sr as AstrologerList,
|
|
1921
|
+
Ss as AstrologerPhoto,
|
|
1922
|
+
za as AstrologyProfilesSection,
|
|
1923
|
+
ba as CONSULTATION_LANGUAGE_OPTIONS,
|
|
1924
|
+
pa as CONSULTATION_PERIOD_ORDER,
|
|
1925
|
+
ra as CircularMarquee,
|
|
1926
|
+
nr as ConsultationSlotSelector,
|
|
1927
|
+
tr as ContactUsSection,
|
|
1928
|
+
jo as DEFAULT_COUNTRIES,
|
|
1929
|
+
Os as FAQAccordion,
|
|
1930
|
+
Qs as FooterCTAButton,
|
|
1931
|
+
Xs as FooterShell,
|
|
1932
|
+
Js as FormCheckboxWithHelp,
|
|
1933
|
+
qs as FormContainer,
|
|
1934
|
+
Us as FormDateInput,
|
|
1935
|
+
Hs as FormField,
|
|
1936
|
+
Zs as FormFooterNote,
|
|
1937
|
+
Gs as FormLocationInput,
|
|
1938
|
+
Ws as FormSectionHeader,
|
|
1939
|
+
Ys as FormSegmentedControl,
|
|
1940
|
+
Vs as FormTagPills,
|
|
1941
|
+
Ks as FormTextInput,
|
|
1942
|
+
zs as FormTimeInput,
|
|
1943
|
+
rr as MOCK_ASTROLOGERS,
|
|
1944
|
+
qo as MOCK_SLOT_DAYS,
|
|
1945
|
+
ar as MOCK_SLOT_DAYS_EMPTY,
|
|
1946
|
+
er as MarqueeStrip,
|
|
1947
|
+
Fs as PageHeader,
|
|
1948
|
+
or as PhoneNumberInput,
|
|
1949
|
+
Ba as PhoneNumberSection,
|
|
1950
|
+
js as PrivacyBanner,
|
|
1951
|
+
Is as RecommendedBadge,
|
|
1952
|
+
Es as UserReviewsSection,
|
|
1953
|
+
X as footerShellStyles,
|
|
1954
|
+
ga as formatSlotDayLabel,
|
|
1955
|
+
ua as formatSlotTime,
|
|
1956
|
+
Ho as getFlagEmoji,
|
|
1957
|
+
Oe as getMaxLengthForCountry,
|
|
1958
|
+
Ee as validatePhoneByCountryCode
|
|
2088
1959
|
};
|
|
2089
1960
|
//# sourceMappingURL=index.js.map
|