@srimandir/astrology-common 7.4.0 → 7.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/astrology-common.css +1 -1
- package/dist/components/CircularMarquee/CircularMarquee.d.ts +1 -1
- package/dist/components/ConsultationSlotSelector/ConsultationSlotSelector.d.ts +2 -0
- 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/RecommendedRibbon.d.ts +17 -0
- package/dist/components/Consultations/icons.d.ts +5 -0
- package/dist/components/Consultations/index.d.ts +7 -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 +1407 -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 Re } from "react/jsx-runtime";
|
|
3
|
+
import { useMemo as E, useState as I, useEffect as se, useRef as G, Fragment as Xe, useCallback as le } from "react";
|
|
4
|
+
const Qe = "_section_1fboo_1", et = "_heading_1fboo_5", tt = "_trustLine_1fboo_9", nt = "_star_1fboo_13", at = "_ratingNum_1fboo_17", ot = "_trustText_1fboo_21", st = "_cardList_1fboo_25", rt = "_card_1fboo_25", it = "_quote_1fboo_37", ct = "_author_1fboo_41", lt = "_avatar_1fboo_45", dt = "_avatarPlaceholder_1fboo_49", mt = "_authorInfo_1fboo_54", _t = "_authorName_1fboo_58", ht = "_stars_1fboo_62", pt = "_readMoreWrap_1fboo_66", ut = "_toggleBtn_1fboo_70", gt = "_readMore_1fboo_66", bt = "_arrow_1fboo_89", ft = "_dot_1fboo_93", v = {
|
|
5
|
+
section: Qe,
|
|
6
|
+
heading: et,
|
|
7
|
+
trustLine: tt,
|
|
8
|
+
star: nt,
|
|
9
|
+
ratingNum: at,
|
|
10
|
+
trustText: ot,
|
|
11
|
+
cardList: st,
|
|
12
|
+
card: rt,
|
|
13
|
+
quote: it,
|
|
14
|
+
author: ct,
|
|
15
|
+
avatar: lt,
|
|
16
|
+
avatarPlaceholder: dt,
|
|
17
|
+
authorInfo: mt,
|
|
18
|
+
authorName: _t,
|
|
19
|
+
stars: ht,
|
|
20
|
+
readMoreWrap: pt,
|
|
21
|
+
toggleBtn: ut,
|
|
22
|
+
readMore: gt,
|
|
23
|
+
arrow: bt,
|
|
24
|
+
dot: ft
|
|
25
|
+
}, Nt = 3, Me = 15;
|
|
26
|
+
function vt(t) {
|
|
27
|
+
const n = /* @__PURE__ */ new Map();
|
|
28
|
+
for (let l = 1; l <= Me; l += 1) {
|
|
29
|
+
const p = `feedbackTestimonial${l}`, h = t(p);
|
|
30
|
+
if (!h || h === p) continue;
|
|
31
|
+
const f = `feedbackAuthor${l}`, _ = (() => {
|
|
32
|
+
const w = t(f);
|
|
33
|
+
return w && w !== f ? w : t("guest");
|
|
34
|
+
})(), g = `feedbackAuthor${l}AvatarUrl`, b = (() => {
|
|
35
|
+
const w = t(g);
|
|
36
|
+
return w && w !== g ? 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 <= Me; 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++], p = n.get(l);
|
|
53
|
+
p && r.push(p);
|
|
664
54
|
}
|
|
665
|
-
if (
|
|
666
|
-
const
|
|
667
|
-
|
|
55
|
+
if (c < a.length) {
|
|
56
|
+
const l = a[c++], p = n.get(l);
|
|
57
|
+
p && r.push(p);
|
|
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 Ks({
|
|
63
|
+
t,
|
|
64
|
+
testimonials: n,
|
|
65
|
+
initialVisible: a = Nt,
|
|
66
|
+
readMoreHref: s,
|
|
67
|
+
onReadMore: r,
|
|
68
|
+
className: c = "",
|
|
69
|
+
headingClassName: d
|
|
680
70
|
}) {
|
|
681
|
-
const
|
|
682
|
-
return /* @__PURE__ */
|
|
71
|
+
const l = n ?? E(() => vt(t), [t]), [p, h] = I(!1), f = l.length > a, _ = f && !p ? l.slice(0, a) : l, g = t("feedbackTitle"), b = t("feedbackRating"), w = t("feedbackTrust"), O = t("readMoreReviews"), k = t("readLess");
|
|
72
|
+
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: g
|
|
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, M) => /* @__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
|
+
] }, M)) }),
|
|
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": p,
|
|
728
118
|
children: [
|
|
729
|
-
|
|
730
|
-
/* @__PURE__ */
|
|
119
|
+
p ? 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 wt = "_section_4dc65_1", yt = "_heading_4dc65_5", kt = "_accordion_4dc65_9", St = "_item_4dc65_13", $t = "_itemOpen_4dc65_17", It = "_question_4dc65_22", Tt = "_chevron_4dc65_30", Lt = "_chevronOpen_4dc65_34", xt = "_answerWrap_4dc65_38", Ct = "_answerOpen_4dc65_42", Dt = "_answer_4dc65_38", B = {
|
|
153
|
+
section: wt,
|
|
154
|
+
heading: yt,
|
|
155
|
+
accordion: kt,
|
|
156
|
+
item: St,
|
|
157
|
+
itemOpen: $t,
|
|
158
|
+
question: It,
|
|
159
|
+
chevron: Tt,
|
|
160
|
+
chevronOpen: Lt,
|
|
161
|
+
answerWrap: xt,
|
|
162
|
+
answerOpen: Ct,
|
|
163
|
+
answer: Dt
|
|
774
164
|
};
|
|
775
|
-
function
|
|
776
|
-
t
|
|
777
|
-
items:
|
|
778
|
-
resolveAnswerKey:
|
|
779
|
-
defaultOpenIndex:
|
|
780
|
-
onItemOpen:
|
|
781
|
-
className:
|
|
782
|
-
headingClassName:
|
|
165
|
+
function Us({
|
|
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: g }) => ({
|
|
176
|
+
question: t(_),
|
|
177
|
+
answer: t(a ? a(g) : g)
|
|
788
178
|
})),
|
|
789
|
-
[
|
|
790
|
-
), [
|
|
791
|
-
return /* @__PURE__ */
|
|
179
|
+
[t, n, a]
|
|
180
|
+
), [p, h] = I(s), f = t("faqTitle");
|
|
181
|
+
return /* @__PURE__ */ i(
|
|
792
182
|
"section",
|
|
793
183
|
{
|
|
794
|
-
className: `${
|
|
184
|
+
className: `${B.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: [B.heading, d].filter(Boolean).join(" "),
|
|
192
|
+
children: f
|
|
803
193
|
}
|
|
804
194
|
),
|
|
805
|
-
/* @__PURE__ */
|
|
806
|
-
const
|
|
807
|
-
return /* @__PURE__ */
|
|
195
|
+
/* @__PURE__ */ e("div", { className: B.accordion, role: "list", children: l.map((_, g) => {
|
|
196
|
+
const b = p === g;
|
|
197
|
+
return /* @__PURE__ */ i(
|
|
808
198
|
"div",
|
|
809
199
|
{
|
|
810
|
-
className: `${
|
|
200
|
+
className: `${B.item} ${b ? B.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: B.question,
|
|
818
208
|
onClick: () => {
|
|
819
|
-
const
|
|
820
|
-
|
|
209
|
+
const w = !b;
|
|
210
|
+
h(b ? -1 : g), 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-${g}`,
|
|
214
|
+
id: `faq-question-${g}`,
|
|
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: `${B.chevron} ${b ? B.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-${g}`,
|
|
859
249
|
role: "region",
|
|
860
|
-
"aria-labelledby": `faq-question-${
|
|
861
|
-
className: `${
|
|
862
|
-
hidden: !
|
|
863
|
-
children: /* @__PURE__ */
|
|
250
|
+
"aria-labelledby": `faq-question-${g}`,
|
|
251
|
+
className: `${B.answerWrap} ${b ? B.answerOpen : ""}`,
|
|
252
|
+
hidden: !b,
|
|
253
|
+
children: /* @__PURE__ */ e("p", { className: B.answer, children: _.answer })
|
|
864
254
|
}
|
|
865
255
|
)
|
|
866
256
|
]
|
|
867
257
|
},
|
|
868
|
-
|
|
258
|
+
g
|
|
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 Bt = "_header_dbx4y_1", Rt = "_brand_dbx4y_7", Mt = "_logo_dbx4y_11", Pt = "_logoImg_dbx4y_15", At = "_logoPlaceholder_dbx4y_21", Et = "_brandText_dbx4y_29", Ot = "_brandName_dbx4y_33", Ft = "_rating_dbx4y_38", qt = "_langSlot_dbx4y_49", A = {
|
|
266
|
+
header: Bt,
|
|
267
|
+
brand: Rt,
|
|
268
|
+
logo: Mt,
|
|
269
|
+
logoImg: Pt,
|
|
270
|
+
logoPlaceholder: At,
|
|
271
|
+
brandText: Et,
|
|
272
|
+
brandName: Ot,
|
|
273
|
+
rating: Ft,
|
|
274
|
+
langSlot: qt
|
|
275
|
+
}, Pe = 120, Ae = 40;
|
|
276
|
+
function Gs({
|
|
277
|
+
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"), p = 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: Pe,
|
|
294
|
+
height: Ae
|
|
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: Pe,
|
|
303
|
+
height: Ae,
|
|
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
|
+
p != null && p !== "" && /* @__PURE__ */ e("span", { className: A.rating, children: p })
|
|
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 Wt = "_wrap_1vbpd_1", jt = "_card_1vbpd_5", Ht = "_cardInner_1vbpd_10", ve = {
|
|
316
|
+
wrap: Wt,
|
|
317
|
+
card: jt,
|
|
318
|
+
cardInner: Ht
|
|
929
319
|
};
|
|
930
|
-
function
|
|
931
|
-
children:
|
|
932
|
-
className:
|
|
933
|
-
"aria-label":
|
|
320
|
+
function Ys({
|
|
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: `${ve.wrap} ${n}`,
|
|
329
|
+
"aria-label": a,
|
|
330
|
+
children: /* @__PURE__ */ e("div", { className: ve.card, children: /* @__PURE__ */ e("div", { className: ve.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 zt = "_header_a05ni_1", Kt = "_left_a05ni_7", Ut = "_backBtn_a05ni_11", Gt = "_titleWrap_a05ni_21", Yt = "_title_a05ni_21", Vt = "_subtitle_a05ni_31", Jt = "_backIcon_a05ni_37", U = {
|
|
335
|
+
header: zt,
|
|
336
|
+
left: Kt,
|
|
337
|
+
backBtn: Ut,
|
|
338
|
+
titleWrap: Gt,
|
|
339
|
+
title: Yt,
|
|
340
|
+
subtitle: Vt,
|
|
341
|
+
backIcon: Jt
|
|
342
|
+
}, Zt = () => /* @__PURE__ */ e(
|
|
953
343
|
"svg",
|
|
954
344
|
{
|
|
955
|
-
className:
|
|
345
|
+
className: U.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 Vs({
|
|
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: `${U.header} ${r}`, children: /* @__PURE__ */ i("div", { className: U.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: U.backBtn,
|
|
375
|
+
onClick: a,
|
|
376
|
+
"aria-label": s,
|
|
377
|
+
children: /* @__PURE__ */ e(Zt, {})
|
|
988
378
|
}
|
|
989
379
|
),
|
|
990
|
-
/* @__PURE__ */
|
|
991
|
-
/* @__PURE__ */
|
|
992
|
-
|
|
380
|
+
/* @__PURE__ */ i("div", { className: U.titleWrap, children: [
|
|
381
|
+
/* @__PURE__ */ e("h1", { className: U.title, children: t }),
|
|
382
|
+
n != null && n !== "" && /* @__PURE__ */ e("p", { className: U.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 Xt = "_banner_1jco0_1", Qt = "_icon_1jco0_12", en = "_text_1jco0_16", we = {
|
|
387
|
+
banner: Xt,
|
|
388
|
+
icon: Qt,
|
|
389
|
+
text: en
|
|
390
|
+
}, tn = "https://srm-cdn.a4b.io/yoda/1770707793537.svg";
|
|
391
|
+
function Js({
|
|
392
|
+
text: t,
|
|
393
|
+
iconUrl: n = tn,
|
|
394
|
+
className: a = ""
|
|
1005
395
|
}) {
|
|
1006
|
-
return /* @__PURE__ */
|
|
396
|
+
return /* @__PURE__ */ e("div", { className: `${we.banner} ${a}`, role: "status", children: /* @__PURE__ */ i("span", { className: we.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: we.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 nn = "_field_eqt7q_1", an = "_labelRow_eqt7q_5", on = "_label_eqt7q_5", sn = "_req_eqt7q_14", rn = "_help_eqt7q_18", cn = "_infoBtn_eqt7q_22", ln = "_infoImg_eqt7q_30", dn = "_infoWrap_eqt7q_34", mn = "_tooltip_eqt7q_38", _n = "_tooltipArrow_eqt7q_45", hn = "_inputWrap_eqt7q_50", R = {
|
|
414
|
+
field: nn,
|
|
415
|
+
labelRow: an,
|
|
416
|
+
label: on,
|
|
417
|
+
req: sn,
|
|
418
|
+
help: rn,
|
|
419
|
+
infoBtn: cn,
|
|
420
|
+
infoImg: ln,
|
|
421
|
+
infoWrap: dn,
|
|
422
|
+
tooltip: mn,
|
|
423
|
+
tooltipArrow: _n,
|
|
424
|
+
inputWrap: hn
|
|
425
|
+
}, pn = "https://srm-cdn.a4b.io/yoda/1770372066357.svg";
|
|
426
|
+
function Zs({
|
|
427
|
+
label: t,
|
|
428
|
+
id: n,
|
|
429
|
+
required: a = !1,
|
|
430
|
+
help: s,
|
|
431
|
+
infoTooltip: r,
|
|
432
|
+
infoAriaLabel: c = "Info",
|
|
433
|
+
infoIconUrl: d = pn,
|
|
434
|
+
children: l,
|
|
435
|
+
className: p = ""
|
|
1046
436
|
}) {
|
|
1047
|
-
const [
|
|
1048
|
-
return
|
|
1049
|
-
if (!
|
|
1050
|
-
const
|
|
1051
|
-
|
|
1052
|
-
},
|
|
1053
|
-
|
|
437
|
+
const [h, f] = I(!1);
|
|
438
|
+
return se(() => {
|
|
439
|
+
if (!r) return;
|
|
440
|
+
const _ = (b) => {
|
|
441
|
+
b.target?.closest?.("[data-info-tooltip]") == null && f(!1);
|
|
442
|
+
}, g = (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", g), () => {
|
|
446
|
+
document.removeEventListener("mousedown", _), document.removeEventListener("keydown", g);
|
|
1057
447
|
};
|
|
1058
|
-
}, [
|
|
1059
|
-
/* @__PURE__ */
|
|
1060
|
-
/* @__PURE__ */
|
|
1061
|
-
|
|
1062
|
-
|
|
448
|
+
}, [r]), /* @__PURE__ */ i("div", { className: `${R.field} ${p}`, children: [
|
|
449
|
+
/* @__PURE__ */ i("div", { className: R.labelRow, children: [
|
|
450
|
+
/* @__PURE__ */ i("label", { className: R.label, htmlFor: n, children: [
|
|
451
|
+
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 un = "_wrap_1uy4o_1", gn = "_input_1uy4o_5", bn = "_iconBtn_1uy4o_21", fn = "_iconBtnInteractive_1uy4o_25", Nn = "_iconImg_1uy4o_39", Z = {
|
|
485
|
+
wrap: un,
|
|
486
|
+
input: gn,
|
|
487
|
+
iconBtn: bn,
|
|
488
|
+
iconBtnInteractive: fn,
|
|
489
|
+
iconImg: Nn
|
|
1100
490
|
};
|
|
1101
|
-
function
|
|
1102
|
-
id:
|
|
1103
|
-
iconUrl:
|
|
1104
|
-
iconAlt:
|
|
1105
|
-
iconInteractive:
|
|
1106
|
-
onIconClick:
|
|
1107
|
-
className:
|
|
1108
|
-
...
|
|
491
|
+
function Xs({
|
|
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: `${Z.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: Z.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 ? `${Z.iconBtn} ${Z.iconBtnInteractive}` : Z.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: Z.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 vn = "_wrap_t646o_1", wn = "_input_t646o_5", yn = "_iconBtn_t646o_28", kn = "_iconImg_t646o_42", de = {
|
|
534
|
+
wrap: vn,
|
|
535
|
+
input: wn,
|
|
536
|
+
iconBtn: yn,
|
|
537
|
+
iconImg: kn
|
|
538
|
+
}, Sn = "https://srm-cdn.a4b.io/yoda/1770372045894.svg";
|
|
539
|
+
function Qs({
|
|
540
|
+
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 = G(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
|
+
}, []), p = () => {
|
|
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(), p();
|
|
1191
581
|
},
|
|
1192
|
-
children: /* @__PURE__ */
|
|
582
|
+
children: /* @__PURE__ */ e(
|
|
1193
583
|
"img",
|
|
1194
584
|
{
|
|
1195
|
-
className:
|
|
1196
|
-
src:
|
|
585
|
+
className: de.iconImg,
|
|
586
|
+
src: Sn,
|
|
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 $n = "_wrap_1jdg7_1", In = "_input_1jdg7_5", Tn = "_iconBtn_1jdg7_34", Ln = "_iconImg_1jdg7_48", me = {
|
|
598
|
+
wrap: $n,
|
|
599
|
+
input: In,
|
|
600
|
+
iconBtn: Tn,
|
|
601
|
+
iconImg: Ln
|
|
602
|
+
}, xn = "https://srm-cdn.a4b.io/yoda/1770372014782.svg";
|
|
603
|
+
function er({
|
|
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: xn,
|
|
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 Cn = "_wrap_1bb6o_1", Dn = "_input_1bb6o_5", Bn = "_iconBtn_1bb6o_21", Rn = "_iconImg_1bb6o_25", _e = {
|
|
652
|
+
wrap: Cn,
|
|
653
|
+
input: Dn,
|
|
654
|
+
iconBtn: Bn,
|
|
655
|
+
iconImg: Rn
|
|
656
|
+
}, Mn = "https://srm-cdn.a4b.io/yoda/1770372031092.svg";
|
|
657
|
+
function tr({
|
|
658
|
+
id: t,
|
|
659
|
+
iconUrl: n = Mn,
|
|
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 Pn = "_segmented_3sa9v_1", An = "_segmentedOption_3sa9v_6", En = "_active_3sa9v_15", ye = {
|
|
678
|
+
segmented: Pn,
|
|
679
|
+
segmentedOption: An,
|
|
680
|
+
active: En
|
|
1291
681
|
};
|
|
1292
|
-
function
|
|
1293
|
-
id:
|
|
1294
|
-
options:
|
|
1295
|
-
value:
|
|
1296
|
-
onChange:
|
|
1297
|
-
className:
|
|
682
|
+
function nr({
|
|
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: `${ye.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: `${ye.segmentedOption} ${c.value === a ? ye.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 On = "_pillsWrap_z1kui_1", Fn = "_pill_z1kui_1", qn = "_selected_z1kui_17", ke = {
|
|
710
|
+
pillsWrap: On,
|
|
711
|
+
pill: Fn,
|
|
712
|
+
selected: qn
|
|
1323
713
|
};
|
|
1324
|
-
function
|
|
1325
|
-
id:
|
|
1326
|
-
options:
|
|
1327
|
-
selected:
|
|
1328
|
-
onChange:
|
|
1329
|
-
className:
|
|
714
|
+
function ar({
|
|
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: `${ke.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: `${ke.pill} ${a.includes(d.key) ? ke.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 Wn = "_wrapper_i6a5b_2", jn = "_checkboxRow_i6a5b_6", Hn = "_checkbox_i6a5b_6", zn = "_checkboxText_i6a5b_31", Kn = "_checkboxHelp_i6a5b_37", ne = {
|
|
744
|
+
wrapper: Wn,
|
|
745
|
+
checkboxRow: jn,
|
|
746
|
+
checkbox: Hn,
|
|
747
|
+
checkboxText: zn,
|
|
748
|
+
checkboxHelp: Kn
|
|
1359
749
|
};
|
|
1360
|
-
function
|
|
1361
|
-
id:
|
|
1362
|
-
checked:
|
|
1363
|
-
onChange:
|
|
1364
|
-
primaryText:
|
|
1365
|
-
helpText:
|
|
1366
|
-
className:
|
|
750
|
+
function or({
|
|
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: `${ne.wrapper} ${c}`, children: [
|
|
759
|
+
/* @__PURE__ */ i("div", { className: ne.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: ne.checkbox,
|
|
766
|
+
checked: n,
|
|
767
|
+
onChange: (d) => a(d.target.checked)
|
|
1378
768
|
}
|
|
1379
769
|
),
|
|
1380
|
-
/* @__PURE__ */
|
|
770
|
+
/* @__PURE__ */ e("label", { htmlFor: t, className: ne.checkboxText, children: s })
|
|
1381
771
|
] }),
|
|
1382
|
-
|
|
772
|
+
r != null && r !== "" && /* @__PURE__ */ e("p", { className: ne.checkboxHelp, children: r })
|
|
1383
773
|
] });
|
|
1384
774
|
}
|
|
1385
|
-
const
|
|
1386
|
-
footerNote:
|
|
775
|
+
const Un = "_footerNote_laev3_1", Gn = {
|
|
776
|
+
footerNote: Un
|
|
1387
777
|
};
|
|
1388
|
-
function
|
|
1389
|
-
children:
|
|
1390
|
-
className:
|
|
778
|
+
function sr({
|
|
779
|
+
children: t,
|
|
780
|
+
className: n = ""
|
|
1391
781
|
}) {
|
|
1392
|
-
return /* @__PURE__ */
|
|
782
|
+
return /* @__PURE__ */ e("p", { className: `${Gn.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 Yn = "_footer_86zxt_1", Vn = "_inner_86zxt_8", Jn = "_badges_86zxt_12", Zn = "_marqueeContent_86zxt_20", Xn = "_badge_86zxt_12", Qn = "_badgeIcon_86zxt_35", ea = "_ctaWrap_86zxt_39", ta = "_ctaStruck_86zxt_43", na = "_ctaButton_86zxt_49", aa = "_offerRow_86zxt_69", oa = "_pill_86zxt_76", sa = "_ctaStatic_86zxt_85", Q = {
|
|
785
|
+
footer: Yn,
|
|
786
|
+
inner: Vn,
|
|
787
|
+
badges: Jn,
|
|
788
|
+
marqueeContent: Zn,
|
|
789
|
+
badge: Xn,
|
|
790
|
+
badgeIcon: Qn,
|
|
791
|
+
ctaWrap: ea,
|
|
792
|
+
ctaStruck: ta,
|
|
793
|
+
ctaButton: na,
|
|
794
|
+
offerRow: aa,
|
|
795
|
+
pill: oa,
|
|
796
|
+
ctaStatic: sa
|
|
1407
797
|
};
|
|
1408
|
-
function
|
|
1409
|
-
marquee:
|
|
1410
|
-
children:
|
|
1411
|
-
className:
|
|
798
|
+
function rr({
|
|
799
|
+
marquee: t,
|
|
800
|
+
children: n,
|
|
801
|
+
className: a = ""
|
|
1412
802
|
}) {
|
|
1413
|
-
return /* @__PURE__ */
|
|
1414
|
-
|
|
1415
|
-
/* @__PURE__ */
|
|
803
|
+
return /* @__PURE__ */ e("footer", { className: `${Q.footer} ${a}`, role: "contentinfo", children: /* @__PURE__ */ i("div", { className: Q.inner, children: [
|
|
804
|
+
t != null && /* @__PURE__ */ e("div", { className: Q.badges, "aria-hidden": !0, children: t }),
|
|
805
|
+
/* @__PURE__ */ e("div", { className: Q.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 ir({
|
|
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 = `${Q.ctaButton} ${c}`.trim(), p = `${Q.ctaStatic} ${c}`.trim(), h = d != null ? { "aria-label": d } : {};
|
|
818
|
+
return r ? /* @__PURE__ */ e("div", { className: p, role: "presentation", children: t }) : n != null ? /* @__PURE__ */ e(
|
|
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 ra = "_wrapper_wxjzs_1", ia = "_track_wxjzs_7", Ee = {
|
|
843
|
+
wrapper: ra,
|
|
844
|
+
track: ia
|
|
1455
845
|
};
|
|
1456
|
-
function
|
|
1457
|
-
return /* @__PURE__ */
|
|
1458
|
-
|
|
1459
|
-
|
|
846
|
+
function ca({ children: t, className: n = "" }) {
|
|
847
|
+
return /* @__PURE__ */ e("div", { className: `${Ee.wrapper} ${n}`, "aria-hidden": !0, children: /* @__PURE__ */ i("div", { className: Ee.track, children: [
|
|
848
|
+
t,
|
|
849
|
+
t
|
|
1460
850
|
] }) });
|
|
1461
851
|
}
|
|
1462
|
-
const
|
|
1463
|
-
strip:
|
|
852
|
+
const la = "_strip_2838b_1", da = {
|
|
853
|
+
strip: la
|
|
1464
854
|
};
|
|
1465
|
-
function
|
|
1466
|
-
return /* @__PURE__ */
|
|
855
|
+
function cr({ children: t, className: n = "" }) {
|
|
856
|
+
return /* @__PURE__ */ e("div", { className: `${da.strip} ${n}`, role: "region", "aria-label": "Trust badges", children: /* @__PURE__ */ e(ca, { children: t }) });
|
|
1467
857
|
}
|
|
1468
|
-
const
|
|
1469
|
-
section:
|
|
1470
|
-
heading:
|
|
1471
|
-
content:
|
|
1472
|
-
line:
|
|
1473
|
-
brandName:
|
|
858
|
+
const ma = "_section_8y3x9_1", _a = "_heading_8y3x9_6", ha = "_content_8y3x9_11", pa = "_line_8y3x9_16", ua = "_brandName_8y3x9_20", X = {
|
|
859
|
+
section: ma,
|
|
860
|
+
heading: _a,
|
|
861
|
+
content: ha,
|
|
862
|
+
line: pa,
|
|
863
|
+
brandName: ua
|
|
1474
864
|
};
|
|
1475
|
-
function
|
|
1476
|
-
title:
|
|
1477
|
-
brandName:
|
|
1478
|
-
whatsAppLine:
|
|
1479
|
-
emailLine:
|
|
1480
|
-
className:
|
|
865
|
+
function lr({
|
|
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: `${X.section} ${r}`, "aria-labelledby": "contact-heading", children: [
|
|
873
|
+
/* @__PURE__ */ e("h2", { id: "contact-heading", className: X.heading, children: t }),
|
|
874
|
+
/* @__PURE__ */ i("div", { className: X.content, children: [
|
|
875
|
+
/* @__PURE__ */ e("p", { className: X.brandName, children: n }),
|
|
876
|
+
/* @__PURE__ */ e("p", { className: X.line, children: a }),
|
|
877
|
+
/* @__PURE__ */ e("p", { className: X.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 ga = (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
|
+
}, ba = (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
|
+
}, fa = [
|
|
1505
895
|
"morning",
|
|
1506
896
|
"afternoon",
|
|
1507
897
|
"evening"
|
|
1508
|
-
],
|
|
898
|
+
], Na = [
|
|
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
|
+
], va = () => /* @__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
|
+
) }), wa = () => /* @__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
|
+
), ya = () => /* @__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
|
+
), ka = () => /* @__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
|
+
), Sa = () => /* @__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
|
+
), $a = () => /* @__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
|
+
] }), Ia = "_section_1ltqn_2", Ta = "_headerRow_1ltqn_10", La = "_title_1ltqn_18", xa = "_changeBtn_1ltqn_24", Ca = "_numberRow_1ltqn_35", Da = "_countryCode_1ltqn_44", Ba = "_number_1ltqn_35", Ra = "_helper_1ltqn_59", H = {
|
|
962
|
+
section: Ia,
|
|
963
|
+
headerRow: Ta,
|
|
964
|
+
title: La,
|
|
965
|
+
changeBtn: xa,
|
|
966
|
+
numberRow: Ca,
|
|
967
|
+
countryCode: Da,
|
|
968
|
+
number: Ba,
|
|
969
|
+
helper: Ra
|
|
970
|
+
}, Ma = ({
|
|
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
|
+
] }), Pa = "_section_12hk9_2", Aa = "_title_12hk9_6", Ea = "_profileRow_12hk9_13", Oa = "_profileCard_12hk9_26", Fa = "_profileCardSelected_12hk9_47", qa = "_profileTop_12hk9_52", Wa = "_avatar_12hk9_60", ja = "_profileName_12hk9_74", Ha = "_relationPill_12hk9_84", za = "_profileMeta_12hk9_98", Ka = "_addCard_12hk9_108", Ua = "_addIcon_12hk9_127", L = {
|
|
989
|
+
section: Pa,
|
|
990
|
+
title: Aa,
|
|
991
|
+
profileRow: Ea,
|
|
992
|
+
profileCard: Oa,
|
|
993
|
+
profileCardSelected: Fa,
|
|
994
|
+
profileTop: qa,
|
|
995
|
+
avatar: Wa,
|
|
996
|
+
profileName: ja,
|
|
997
|
+
relationPill: Ha,
|
|
998
|
+
profileMeta: za,
|
|
999
|
+
addCard: Ka,
|
|
1000
|
+
addIcon: Ua
|
|
1001
|
+
}, Ga = [
|
|
1612
1002
|
{
|
|
1613
1003
|
id: "self",
|
|
1614
1004
|
name: "Aarav Sharma",
|
|
@@ -1623,237 +1013,241 @@ 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
|
+
], Ya = ({
|
|
1017
|
+
title: t,
|
|
1018
|
+
profiles: n = Ga,
|
|
1019
|
+
selectedProfileId: a,
|
|
1020
|
+
onProfileSelect: s,
|
|
1021
|
+
onAddProfile: r,
|
|
1022
|
+
t: c,
|
|
1023
|
+
className: d = ""
|
|
1634
1024
|
}) => {
|
|
1635
|
-
const [
|
|
1636
|
-
|
|
1025
|
+
const [l, p] = I(n[0]?.id ?? ""), h = a ?? l, f = (_) => {
|
|
1026
|
+
p(_), s?.(_);
|
|
1637
1027
|
};
|
|
1638
|
-
return /* @__PURE__ */
|
|
1639
|
-
/* @__PURE__ */
|
|
1640
|
-
/* @__PURE__ */
|
|
1641
|
-
|
|
1642
|
-
const
|
|
1643
|
-
return /* @__PURE__ */
|
|
1028
|
+
return /* @__PURE__ */ i("section", { className: [L.section, d].filter(Boolean).join(" "), children: [
|
|
1029
|
+
/* @__PURE__ */ e("p", { className: L.title, children: t ?? c?.("planAstrologyProfilesHeading") ?? "Astrology profile" }),
|
|
1030
|
+
/* @__PURE__ */ i("div", { className: L.profileRow, role: "radiogroup", "aria-label": "Astrology profile", children: [
|
|
1031
|
+
n.map((_) => {
|
|
1032
|
+
const g = _.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": g,
|
|
1039
|
+
className: [L.profileCard, g ? L.profileCardSelected : ""].filter(Boolean).join(" "),
|
|
1040
|
+
onClick: () => f(_.id),
|
|
1651
1041
|
children: [
|
|
1652
|
-
/* @__PURE__ */
|
|
1653
|
-
/* @__PURE__ */
|
|
1654
|
-
/* @__PURE__ */
|
|
1042
|
+
/* @__PURE__ */ i("span", { className: L.profileTop, children: [
|
|
1043
|
+
/* @__PURE__ */ e("span", { className: L.avatar, "aria-hidden": !0, children: _.name.charAt(0).toUpperCase() }),
|
|
1044
|
+
/* @__PURE__ */ e("span", { className: L.profileName, children: _.name })
|
|
1655
1045
|
] }),
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1046
|
+
_.relation && /* @__PURE__ */ e("span", { className: L.relationPill, children: _.relation }),
|
|
1047
|
+
_.birthDetails && /* @__PURE__ */ e("span", { className: L.profileMeta, children: _.birthDetails }),
|
|
1048
|
+
_.birthPlace && /* @__PURE__ */ e("span", { className: L.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: L.addCard, onClick: r, children: [
|
|
1055
|
+
/* @__PURE__ */ e("span", { className: L.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
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1060
|
+
}, Va = "_root_fo16p_6", Ja = "_languageRow_fo16p_19", Za = "_languageLabel_fo16p_27", Xa = "_languageDropdown_fo16p_33", Qa = "_languageDropdownBtn_fo16p_37", eo = "_languageMenu_fo16p_52", to = "_languageMenuItem_fo16p_69", no = "_languageMenuItemSelected_fo16p_83", ao = "_languageDivider_fo16p_89", oo = "_sectionHeadingRow_fo16p_96", so = "_sectionHeading_fo16p_96", ro = "_timezoneLabel_fo16p_111", io = "_reportReadyBanner_fo16p_120", co = "_reportReadyDuration_fo16p_129", lo = "_dateTabs_fo16p_135", mo = "_dateTabIndicator_fo16p_147", _o = "_dateTab_fo16p_135", ho = "_dateTabDivider_fo16p_181", po = "_dateTabSelected_fo16p_191", uo = "_dateTabLabel_fo16p_196", go = "_dateTabNum_fo16p_203", bo = "_periodTabs_fo16p_217", fo = "_periodTabIndicator_fo16p_145", No = "_periodTab_fo16p_145", vo = "_periodTabSelected_fo16p_264", wo = "_timeGrid_fo16p_269", yo = "_emptyState_fo16p_296", ko = "_timeSlot_fo16p_300", So = "_timeSlotSelected_fo16p_316", $o = "_timeSlotDisabled_fo16p_324", Io = "_stateMessage_fo16p_335", To = "_retryBtn_fo16p_342", Lo = "_emptyStateIcon_fo16p_368", xo = "_emptyStateTitle_fo16p_379", Co = "_emptyStateSubtitle_fo16p_386", Do = "_loadingWrap_fo16p_395", Bo = "_skeletonShimmer_fo16p_400", Ro = "_skeletonDateTabs_fo16p_414", Mo = "_skeletonDateTab_fo16p_414", Po = "_skeletonPeriodTabs_fo16p_428", Ao = "_skeletonPeriodTab_fo16p_428", Eo = "_skeletonTimeGrid_fo16p_443", Oo = "_skeletonTimeSlot_fo16p_449", m = {
|
|
1061
|
+
root: Va,
|
|
1062
|
+
languageRow: Ja,
|
|
1063
|
+
languageLabel: Za,
|
|
1064
|
+
languageDropdown: Xa,
|
|
1065
|
+
languageDropdownBtn: Qa,
|
|
1066
|
+
languageMenu: eo,
|
|
1067
|
+
languageMenuItem: to,
|
|
1068
|
+
languageMenuItemSelected: no,
|
|
1069
|
+
languageDivider: ao,
|
|
1070
|
+
sectionHeadingRow: oo,
|
|
1071
|
+
sectionHeading: so,
|
|
1072
|
+
timezoneLabel: ro,
|
|
1073
|
+
reportReadyBanner: io,
|
|
1074
|
+
reportReadyDuration: co,
|
|
1075
|
+
dateTabs: lo,
|
|
1076
|
+
dateTabIndicator: mo,
|
|
1077
|
+
dateTab: _o,
|
|
1078
|
+
dateTabDivider: ho,
|
|
1079
|
+
dateTabSelected: po,
|
|
1080
|
+
dateTabLabel: uo,
|
|
1081
|
+
dateTabNum: go,
|
|
1082
|
+
periodTabs: bo,
|
|
1083
|
+
periodTabIndicator: fo,
|
|
1084
|
+
periodTab: No,
|
|
1085
|
+
periodTabSelected: vo,
|
|
1086
|
+
timeGrid: wo,
|
|
1087
|
+
emptyState: yo,
|
|
1088
|
+
timeSlot: ko,
|
|
1089
|
+
timeSlotSelected: So,
|
|
1090
|
+
timeSlotDisabled: $o,
|
|
1091
|
+
stateMessage: Io,
|
|
1092
|
+
retryBtn: To,
|
|
1093
|
+
emptyStateIcon: Lo,
|
|
1094
|
+
emptyStateTitle: xo,
|
|
1095
|
+
emptyStateSubtitle: Co,
|
|
1096
|
+
loadingWrap: Do,
|
|
1097
|
+
skeletonShimmer: Bo,
|
|
1098
|
+
skeletonDateTabs: Ro,
|
|
1099
|
+
skeletonDateTab: Mo,
|
|
1100
|
+
skeletonPeriodTabs: Po,
|
|
1101
|
+
skeletonPeriodTab: Ao,
|
|
1102
|
+
skeletonTimeGrid: Eo,
|
|
1103
|
+
skeletonTimeSlot: Oo
|
|
1104
|
+
}, Fo = {
|
|
1105
|
+
morning: ya,
|
|
1106
|
+
afternoon: ka,
|
|
1107
|
+
evening: Sa
|
|
1108
|
+
}, qo = {
|
|
1716
1109
|
morning: "planPeriodMorning",
|
|
1717
1110
|
afternoon: "planPeriodAfternoon",
|
|
1718
1111
|
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
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1112
|
+
}, z = (...t) => t.filter(Boolean).join(" "), dr = ({
|
|
1113
|
+
days: t,
|
|
1114
|
+
loading: n = !1,
|
|
1115
|
+
error: a = !1,
|
|
1116
|
+
onRetry: s,
|
|
1117
|
+
selectedDate: r,
|
|
1118
|
+
onDateSelect: c,
|
|
1119
|
+
selectedPeriod: d,
|
|
1120
|
+
onPeriodSelect: l,
|
|
1121
|
+
selectedSlotStart: p,
|
|
1122
|
+
onSlotSelect: h,
|
|
1123
|
+
hideLanguageSelector: f = !1,
|
|
1124
|
+
languageOptions: _ = Na,
|
|
1125
|
+
selectedLanguage: g,
|
|
1126
|
+
onLanguageSelect: b,
|
|
1127
|
+
showPhoneNumberSection: w = !0,
|
|
1128
|
+
phoneNumberSection: O,
|
|
1129
|
+
showAstrologyProfilesSection: k = !0,
|
|
1130
|
+
astrologyProfilesSection: T,
|
|
1131
|
+
heading: M,
|
|
1132
|
+
timezoneLabel: Y,
|
|
1133
|
+
languageLabel: V,
|
|
1134
|
+
reportReadyNote: J,
|
|
1135
|
+
isGlobal: ee = !0,
|
|
1136
|
+
t: y,
|
|
1137
|
+
className: pe = ""
|
|
1744
1138
|
}) => {
|
|
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
|
-
), [
|
|
1765
|
-
if (
|
|
1766
|
-
const o =
|
|
1767
|
-
return
|
|
1768
|
-
}, [
|
|
1769
|
-
() =>
|
|
1770
|
-
),
|
|
1771
|
-
|
|
1772
|
-
if (!
|
|
1773
|
-
const o = (
|
|
1774
|
-
|
|
1139
|
+
const x = E(
|
|
1140
|
+
() => t.filter((o) => o.has_availability && o.slots.length > 0),
|
|
1141
|
+
[t]
|
|
1142
|
+
), [re, ue] = I(""), q = E(() => {
|
|
1143
|
+
const o = r ?? re;
|
|
1144
|
+
return x.some((u) => u.date === o) ? o : x[0]?.date ?? "";
|
|
1145
|
+
}, [r, re, x]), F = E(
|
|
1146
|
+
() => x.find((o) => o.date === q) ?? null,
|
|
1147
|
+
[x, q]
|
|
1148
|
+
), W = E(() => {
|
|
1149
|
+
if (!F) return [];
|
|
1150
|
+
const o = new Set(F.slots.map((u) => u.period));
|
|
1151
|
+
return fa.filter((u) => o.has(u));
|
|
1152
|
+
}, [F]), [N, K] = I(""), P = E(() => {
|
|
1153
|
+
const o = d ?? N;
|
|
1154
|
+
return o && W.includes(o) ? o : W[0] ?? "morning";
|
|
1155
|
+
}, [d, N, W]), ie = E(
|
|
1156
|
+
() => F ? F.slots.filter((o) => o.period === P) : [],
|
|
1157
|
+
[F, P]
|
|
1158
|
+
), [Se, Ke] = I(""), $e = E(() => {
|
|
1159
|
+
if (p === null) return "";
|
|
1160
|
+
const o = p ?? Se;
|
|
1161
|
+
return ie.some((u) => u.start === o) ? o : ie[0]?.start ?? "";
|
|
1162
|
+
}, [p, Se, ie]), [Ue, Ge] = I(
|
|
1163
|
+
() => _[0]?.code ?? "en"
|
|
1164
|
+
), Ie = g ?? Ue, ge = _.find((o) => o.code === Ie) ?? _[0], [ce, be] = I(!1), fe = G(null);
|
|
1165
|
+
se(() => {
|
|
1166
|
+
if (!ce) return;
|
|
1167
|
+
const o = (u) => {
|
|
1168
|
+
fe.current && !fe.current.contains(u.target) && be(!1);
|
|
1775
1169
|
};
|
|
1776
1170
|
return document.addEventListener("mousedown", o), () => document.removeEventListener("mousedown", o);
|
|
1777
|
-
}, [
|
|
1778
|
-
const
|
|
1171
|
+
}, [ce]);
|
|
1172
|
+
const Te = G(null), Le = G({}), [te, xe] = I(null), Ce = G(null), De = G(
|
|
1779
1173
|
{}
|
|
1780
|
-
), [
|
|
1781
|
-
|
|
1174
|
+
), [Ne, Be] = I(null);
|
|
1175
|
+
se(() => {
|
|
1782
1176
|
const o = () => {
|
|
1783
|
-
const
|
|
1784
|
-
if (!
|
|
1785
|
-
|
|
1177
|
+
const u = Te.current, C = Le.current[q];
|
|
1178
|
+
if (!u || !C) {
|
|
1179
|
+
xe(null);
|
|
1786
1180
|
return;
|
|
1787
1181
|
}
|
|
1788
|
-
const
|
|
1789
|
-
|
|
1790
|
-
left:
|
|
1791
|
-
top:
|
|
1792
|
-
width:
|
|
1793
|
-
height:
|
|
1182
|
+
const j = u.getBoundingClientRect(), D = C.getBoundingClientRect();
|
|
1183
|
+
xe({
|
|
1184
|
+
left: D.left - j.left,
|
|
1185
|
+
top: D.top - j.top,
|
|
1186
|
+
width: D.width,
|
|
1187
|
+
height: D.height
|
|
1794
1188
|
});
|
|
1795
1189
|
};
|
|
1796
1190
|
return o(), window.addEventListener("resize", o), () => window.removeEventListener("resize", o);
|
|
1797
|
-
}, [
|
|
1191
|
+
}, [q, x, n, a]), se(() => {
|
|
1798
1192
|
const o = () => {
|
|
1799
|
-
const
|
|
1800
|
-
if (!
|
|
1801
|
-
|
|
1193
|
+
const u = Ce.current, C = De.current[P];
|
|
1194
|
+
if (!u || !C) {
|
|
1195
|
+
Be(null);
|
|
1802
1196
|
return;
|
|
1803
1197
|
}
|
|
1804
|
-
const
|
|
1805
|
-
|
|
1806
|
-
left:
|
|
1807
|
-
width:
|
|
1198
|
+
const j = u.getBoundingClientRect(), D = C.getBoundingClientRect();
|
|
1199
|
+
Be({
|
|
1200
|
+
left: D.left - j.left,
|
|
1201
|
+
width: D.width
|
|
1808
1202
|
});
|
|
1809
1203
|
};
|
|
1810
1204
|
return o(), window.addEventListener("resize", o), () => window.removeEventListener("resize", o);
|
|
1811
|
-
}, [
|
|
1812
|
-
const
|
|
1813
|
-
|
|
1814
|
-
},
|
|
1815
|
-
|
|
1816
|
-
},
|
|
1817
|
-
|
|
1818
|
-
},
|
|
1819
|
-
|
|
1205
|
+
}, [P, W, n, a]);
|
|
1206
|
+
const Ye = (o) => {
|
|
1207
|
+
ue(o), c?.(o);
|
|
1208
|
+
}, Ve = (o) => {
|
|
1209
|
+
K(o), l?.(o);
|
|
1210
|
+
}, Je = (o) => {
|
|
1211
|
+
Ke(o.start), h?.(o);
|
|
1212
|
+
}, Ze = (o) => {
|
|
1213
|
+
Ge(o), be(!1), b?.(o);
|
|
1820
1214
|
};
|
|
1821
|
-
return /* @__PURE__ */
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
!
|
|
1825
|
-
/* @__PURE__ */
|
|
1826
|
-
/* @__PURE__ */
|
|
1827
|
-
/* @__PURE__ */
|
|
1828
|
-
/* @__PURE__ */
|
|
1215
|
+
return /* @__PURE__ */ i("div", { className: z(m.root, pe), children: [
|
|
1216
|
+
w && (O ?? /* @__PURE__ */ e(Ma, { t: y })),
|
|
1217
|
+
k && (T ?? /* @__PURE__ */ e(Ya, { t: y })),
|
|
1218
|
+
!f && /* @__PURE__ */ i(Re, { children: [
|
|
1219
|
+
/* @__PURE__ */ i("div", { className: m.languageRow, children: [
|
|
1220
|
+
/* @__PURE__ */ e("span", { className: m.languageLabel, children: V ?? y?.("planConsultationLanguageLabel") ?? "Your consultation language" }),
|
|
1221
|
+
/* @__PURE__ */ i("div", { className: m.languageDropdown, ref: fe, children: [
|
|
1222
|
+
/* @__PURE__ */ i(
|
|
1829
1223
|
"button",
|
|
1830
1224
|
{
|
|
1831
1225
|
type: "button",
|
|
1832
1226
|
className: m.languageDropdownBtn,
|
|
1833
|
-
onClick: () =>
|
|
1227
|
+
onClick: () => be((o) => !o),
|
|
1834
1228
|
"aria-haspopup": "listbox",
|
|
1835
|
-
"aria-expanded":
|
|
1229
|
+
"aria-expanded": ce,
|
|
1836
1230
|
children: [
|
|
1837
|
-
(
|
|
1838
|
-
/* @__PURE__ */
|
|
1231
|
+
(ge?.labelKey && y?.(ge.labelKey)) ?? ge?.label,
|
|
1232
|
+
/* @__PURE__ */ e(wa, {})
|
|
1839
1233
|
]
|
|
1840
1234
|
}
|
|
1841
1235
|
),
|
|
1842
|
-
|
|
1843
|
-
const
|
|
1844
|
-
return /* @__PURE__ */
|
|
1236
|
+
ce && /* @__PURE__ */ e("ul", { className: m.languageMenu, role: "listbox", children: _.map((o) => {
|
|
1237
|
+
const u = o.code === Ie;
|
|
1238
|
+
return /* @__PURE__ */ i(
|
|
1845
1239
|
"li",
|
|
1846
1240
|
{
|
|
1847
1241
|
role: "option",
|
|
1848
|
-
"aria-selected":
|
|
1849
|
-
className:
|
|
1242
|
+
"aria-selected": u,
|
|
1243
|
+
className: z(
|
|
1850
1244
|
m.languageMenuItem,
|
|
1851
|
-
|
|
1245
|
+
u && m.languageMenuItemSelected
|
|
1852
1246
|
),
|
|
1853
|
-
onClick: () =>
|
|
1247
|
+
onClick: () => Ze(o.code),
|
|
1854
1248
|
children: [
|
|
1855
|
-
(o.labelKey &&
|
|
1856
|
-
|
|
1249
|
+
(o.labelKey && y?.(o.labelKey)) ?? o.label,
|
|
1250
|
+
u && /* @__PURE__ */ e(va, {})
|
|
1857
1251
|
]
|
|
1858
1252
|
},
|
|
1859
1253
|
o.code
|
|
@@ -1861,115 +1255,118 @@ const cr = (a) => {
|
|
|
1861
1255
|
}) })
|
|
1862
1256
|
] })
|
|
1863
1257
|
] }),
|
|
1864
|
-
/* @__PURE__ */
|
|
1258
|
+
/* @__PURE__ */ e("hr", { className: m.languageDivider })
|
|
1259
|
+
] }),
|
|
1260
|
+
/* @__PURE__ */ i("div", { className: m.sectionHeadingRow, children: [
|
|
1261
|
+
/* @__PURE__ */ e("p", { className: m.sectionHeading, children: M ?? y?.("planSelectSlotHeading") ?? "Book your preferred consultation slot" }),
|
|
1262
|
+
Y && /* @__PURE__ */ e("p", { className: m.timezoneLabel, children: Y })
|
|
1865
1263
|
] }),
|
|
1866
|
-
/* @__PURE__ */
|
|
1867
|
-
|
|
1868
|
-
E?.("planReportReadyPrefix") ?? "Your Report will be ready in",
|
|
1264
|
+
J === void 0 ? /* @__PURE__ */ i("p", { className: m.reportReadyBanner, children: [
|
|
1265
|
+
y?.("planReportReadyPrefix") ?? "Your Report will be ready in",
|
|
1869
1266
|
" ",
|
|
1870
|
-
/* @__PURE__ */
|
|
1267
|
+
/* @__PURE__ */ e("span", { className: m.reportReadyDuration, children: y?.("planReportReadyDuration") ?? "24-48 hours" }),
|
|
1871
1268
|
" ",
|
|
1872
|
-
|
|
1873
|
-
] }) :
|
|
1874
|
-
|
|
1875
|
-
/* @__PURE__ */
|
|
1876
|
-
/* @__PURE__ */
|
|
1877
|
-
/* @__PURE__ */
|
|
1269
|
+
y?.("planReportReadySuffix") ?? "from today"
|
|
1270
|
+
] }) : J,
|
|
1271
|
+
n && /* @__PURE__ */ i("div", { className: m.loadingWrap, "aria-busy": "true", "aria-live": "polite", children: [
|
|
1272
|
+
/* @__PURE__ */ e("div", { className: m.skeletonDateTabs, children: Array.from({ length: 5 }).map((o, u) => /* @__PURE__ */ e("div", { className: z(m.skeletonDateTab, m.skeletonShimmer) }, u)) }),
|
|
1273
|
+
/* @__PURE__ */ e("div", { className: m.skeletonPeriodTabs, children: Array.from({ length: 3 }).map((o, u) => /* @__PURE__ */ e("div", { className: z(m.skeletonPeriodTab, m.skeletonShimmer) }, u)) }),
|
|
1274
|
+
/* @__PURE__ */ e("div", { className: m.skeletonTimeGrid, children: Array.from({ length: 6 }).map((o, u) => /* @__PURE__ */ e("div", { className: z(m.skeletonTimeSlot, m.skeletonShimmer) }, u)) })
|
|
1878
1275
|
] }),
|
|
1879
|
-
!
|
|
1880
|
-
|
|
1881
|
-
|
|
1276
|
+
!n && a && /* @__PURE__ */ i("div", { className: m.stateMessage, children: [
|
|
1277
|
+
y?.("planSlotsLoadError") ?? "Couldn't load slots. Please try again.",
|
|
1278
|
+
s && /* @__PURE__ */ e("button", { type: "button", className: m.retryBtn, onClick: s, children: y?.("planRetry") ?? "Retry" })
|
|
1882
1279
|
] }),
|
|
1883
|
-
!
|
|
1884
|
-
/* @__PURE__ */
|
|
1885
|
-
/* @__PURE__ */
|
|
1886
|
-
/* @__PURE__ */
|
|
1280
|
+
!n && !a && x.length === 0 && /* @__PURE__ */ i("div", { className: m.emptyState, children: [
|
|
1281
|
+
/* @__PURE__ */ e("span", { className: m.emptyStateIcon, children: /* @__PURE__ */ e($a, {}) }),
|
|
1282
|
+
/* @__PURE__ */ e("p", { className: m.emptyStateTitle, children: y?.("planNoSlotsAvailableTitle") ?? "No slots available" }),
|
|
1283
|
+
/* @__PURE__ */ e("p", { className: m.emptyStateSubtitle, children: y?.("planNoSlotsAvailableSubtitle") ?? "Try a different consultation language above, or check back soon." })
|
|
1887
1284
|
] }),
|
|
1888
|
-
!
|
|
1889
|
-
/* @__PURE__ */
|
|
1285
|
+
!n && !a && x.length > 0 && /* @__PURE__ */ i(Re, { children: [
|
|
1286
|
+
/* @__PURE__ */ i(
|
|
1890
1287
|
"div",
|
|
1891
1288
|
{
|
|
1892
1289
|
className: m.dateTabs,
|
|
1893
|
-
ref:
|
|
1290
|
+
ref: Te,
|
|
1894
1291
|
role: "radiogroup",
|
|
1895
1292
|
"aria-label": "Consultation date",
|
|
1896
1293
|
children: [
|
|
1897
|
-
|
|
1294
|
+
te && /* @__PURE__ */ e(
|
|
1898
1295
|
"span",
|
|
1899
1296
|
{
|
|
1900
1297
|
className: m.dateTabIndicator,
|
|
1901
1298
|
style: {
|
|
1902
|
-
transform: `translate(${
|
|
1903
|
-
width:
|
|
1904
|
-
height:
|
|
1299
|
+
transform: `translate(${te.left}px, ${te.top}px)`,
|
|
1300
|
+
width: te.width,
|
|
1301
|
+
height: te.height
|
|
1905
1302
|
},
|
|
1906
1303
|
"aria-hidden": "true"
|
|
1907
1304
|
}
|
|
1908
1305
|
),
|
|
1909
|
-
|
|
1910
|
-
const
|
|
1911
|
-
return /* @__PURE__ */
|
|
1912
|
-
/* @__PURE__ */
|
|
1306
|
+
x.map((o) => {
|
|
1307
|
+
const u = o.date === q, { dayLabel: C, dayNum: j } = ba(o.date);
|
|
1308
|
+
return /* @__PURE__ */ i(Xe, { children: [
|
|
1309
|
+
/* @__PURE__ */ i(
|
|
1913
1310
|
"button",
|
|
1914
1311
|
{
|
|
1915
1312
|
type: "button",
|
|
1916
|
-
ref: (
|
|
1917
|
-
|
|
1313
|
+
ref: (D) => {
|
|
1314
|
+
Le.current[o.date] = D;
|
|
1918
1315
|
},
|
|
1919
|
-
className:
|
|
1316
|
+
className: z(m.dateTab, u && m.dateTabSelected),
|
|
1920
1317
|
role: "radio",
|
|
1921
|
-
"aria-checked":
|
|
1922
|
-
onClick: () =>
|
|
1318
|
+
"aria-checked": u,
|
|
1319
|
+
onClick: () => Ye(o.date),
|
|
1923
1320
|
children: [
|
|
1924
|
-
/* @__PURE__ */
|
|
1925
|
-
/* @__PURE__ */
|
|
1321
|
+
/* @__PURE__ */ e("span", { className: m.dateTabLabel, children: y?.(C) ?? C }),
|
|
1322
|
+
/* @__PURE__ */ e("span", { className: m.dateTabNum, children: j })
|
|
1926
1323
|
]
|
|
1927
1324
|
}
|
|
1928
1325
|
),
|
|
1929
|
-
/* @__PURE__ */
|
|
1326
|
+
/* @__PURE__ */ e("span", { className: m.dateTabDivider, "aria-hidden": !0 })
|
|
1930
1327
|
] }, o.date);
|
|
1931
1328
|
})
|
|
1932
1329
|
]
|
|
1933
1330
|
}
|
|
1934
1331
|
),
|
|
1935
|
-
/* @__PURE__ */
|
|
1332
|
+
/* @__PURE__ */ i(
|
|
1936
1333
|
"div",
|
|
1937
1334
|
{
|
|
1938
1335
|
className: m.periodTabs,
|
|
1939
|
-
ref:
|
|
1336
|
+
ref: Ce,
|
|
1940
1337
|
role: "tablist",
|
|
1941
1338
|
"aria-label": "Time of day",
|
|
1942
1339
|
children: [
|
|
1943
|
-
|
|
1340
|
+
Ne && /* @__PURE__ */ e(
|
|
1944
1341
|
"span",
|
|
1945
1342
|
{
|
|
1946
1343
|
className: m.periodTabIndicator,
|
|
1947
1344
|
style: {
|
|
1948
|
-
transform: `translateX(${
|
|
1949
|
-
width:
|
|
1345
|
+
transform: `translateX(${Ne.left}px)`,
|
|
1346
|
+
width: Ne.width
|
|
1950
1347
|
},
|
|
1951
1348
|
"aria-hidden": "true"
|
|
1952
1349
|
}
|
|
1953
1350
|
),
|
|
1954
|
-
|
|
1955
|
-
const
|
|
1956
|
-
return /* @__PURE__ */
|
|
1351
|
+
W.map((o) => {
|
|
1352
|
+
const u = Fo[o], C = o === "evening" && ee, j = C ? "planPeriodEveningNight" : qo[o];
|
|
1353
|
+
return /* @__PURE__ */ i(
|
|
1957
1354
|
"button",
|
|
1958
1355
|
{
|
|
1959
|
-
ref: (
|
|
1960
|
-
|
|
1356
|
+
ref: (D) => {
|
|
1357
|
+
De.current[o] = D;
|
|
1961
1358
|
},
|
|
1962
1359
|
type: "button",
|
|
1963
|
-
className:
|
|
1360
|
+
className: z(
|
|
1964
1361
|
m.periodTab,
|
|
1965
|
-
o ===
|
|
1362
|
+
o === P && m.periodTabSelected
|
|
1966
1363
|
),
|
|
1967
1364
|
role: "tab",
|
|
1968
|
-
"aria-selected": o ===
|
|
1969
|
-
onClick: () =>
|
|
1365
|
+
"aria-selected": o === P,
|
|
1366
|
+
onClick: () => Ve(o),
|
|
1970
1367
|
children: [
|
|
1971
|
-
/* @__PURE__ */
|
|
1972
|
-
|
|
1368
|
+
/* @__PURE__ */ e(u, {}),
|
|
1369
|
+
y?.(j) ?? (C ? "Evening/Night" : o.charAt(0).toUpperCase() + o.slice(1))
|
|
1973
1370
|
]
|
|
1974
1371
|
},
|
|
1975
1372
|
o
|
|
@@ -1978,43 +1375,46 @@ const cr = (a) => {
|
|
|
1978
1375
|
]
|
|
1979
1376
|
}
|
|
1980
1377
|
),
|
|
1981
|
-
/* @__PURE__ */
|
|
1378
|
+
/* @__PURE__ */ e(
|
|
1982
1379
|
"div",
|
|
1983
1380
|
{
|
|
1984
1381
|
className: m.timeGrid,
|
|
1985
1382
|
role: "radiogroup",
|
|
1986
1383
|
"aria-label": "Consultation time",
|
|
1987
|
-
children:
|
|
1384
|
+
children: ie.map((o, u) => /* @__PURE__ */ e(
|
|
1988
1385
|
"button",
|
|
1989
1386
|
{
|
|
1990
1387
|
type: "button",
|
|
1991
|
-
className:
|
|
1388
|
+
className: z(
|
|
1992
1389
|
m.timeSlot,
|
|
1993
|
-
|
|
1390
|
+
$e === o.start && m.timeSlotSelected,
|
|
1391
|
+
o.disabled && m.timeSlotDisabled
|
|
1994
1392
|
),
|
|
1995
1393
|
role: "radio",
|
|
1996
|
-
"aria-checked":
|
|
1997
|
-
|
|
1998
|
-
|
|
1394
|
+
"aria-checked": $e === o.start,
|
|
1395
|
+
"aria-disabled": o.disabled || void 0,
|
|
1396
|
+
disabled: o.disabled,
|
|
1397
|
+
onClick: () => !o.disabled && Je(o),
|
|
1398
|
+
children: ga(o.start)
|
|
1999
1399
|
},
|
|
2000
|
-
`${o.start}-${
|
|
1400
|
+
`${o.start}-${u}`
|
|
2001
1401
|
))
|
|
2002
1402
|
},
|
|
2003
|
-
`${
|
|
1403
|
+
`${q}-${P}`
|
|
2004
1404
|
)
|
|
2005
1405
|
] })
|
|
2006
1406
|
] });
|
|
2007
|
-
},
|
|
2008
|
-
const
|
|
2009
|
-
return `${
|
|
2010
|
-
},
|
|
2011
|
-
const
|
|
1407
|
+
}, Oe = "+05:30", Wo = (t) => {
|
|
1408
|
+
const n = String(t.getMonth() + 1).padStart(2, "0"), a = String(t.getDate()).padStart(2, "0");
|
|
1409
|
+
return `${t.getFullYear()}-${n}-${a}`;
|
|
1410
|
+
}, jo = (t, n, a, s) => {
|
|
1411
|
+
const r = (l) => String(l).padStart(2, "0"), c = a + 30, d = n + Math.floor(c / 60);
|
|
2012
1412
|
return {
|
|
2013
|
-
start: `${
|
|
2014
|
-
end: `${
|
|
2015
|
-
period:
|
|
1413
|
+
start: `${t}T${r(n)}:${r(a)}:00${Oe}`,
|
|
1414
|
+
end: `${t}T${r(d)}:${r(c % 60)}:00${Oe}`,
|
|
1415
|
+
period: s
|
|
2016
1416
|
};
|
|
2017
|
-
},
|
|
1417
|
+
}, Ho = {
|
|
2018
1418
|
morning: [
|
|
2019
1419
|
[9, 0],
|
|
2020
1420
|
[9, 30],
|
|
@@ -2036,54 +1436,544 @@ const cr = (a) => {
|
|
|
2036
1436
|
[19, 0],
|
|
2037
1437
|
[20, 0]
|
|
2038
1438
|
]
|
|
2039
|
-
},
|
|
2040
|
-
const
|
|
2041
|
-
|
|
2042
|
-
const
|
|
2043
|
-
(
|
|
1439
|
+
}, ae = (t, n) => {
|
|
1440
|
+
const a = /* @__PURE__ */ new Date();
|
|
1441
|
+
a.setDate(a.getDate() + t);
|
|
1442
|
+
const s = Wo(a), r = n.flatMap(
|
|
1443
|
+
(c) => Ho[c].map(([d, l]) => jo(s, d, l, c))
|
|
2044
1444
|
);
|
|
2045
|
-
return { date:
|
|
2046
|
-
},
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
],
|
|
2053
|
-
...
|
|
1445
|
+
return { date: s, has_availability: r.length > 0, slots: r };
|
|
1446
|
+
}, zo = [
|
|
1447
|
+
ae(0, ["morning", "afternoon", "evening"]),
|
|
1448
|
+
ae(1, ["morning", "afternoon"]),
|
|
1449
|
+
ae(2, ["afternoon", "evening"]),
|
|
1450
|
+
ae(3, ["morning", "evening"]),
|
|
1451
|
+
ae(4, ["morning", "afternoon", "evening"])
|
|
1452
|
+
], mr = zo.map((t) => ({
|
|
1453
|
+
...t,
|
|
2054
1454
|
has_availability: !1,
|
|
2055
1455
|
slots: []
|
|
2056
|
-
}))
|
|
1456
|
+
})), Ko = () => /* @__PURE__ */ e(
|
|
1457
|
+
"svg",
|
|
1458
|
+
{
|
|
1459
|
+
width: "14",
|
|
1460
|
+
height: "14",
|
|
1461
|
+
viewBox: "0 0 24 24",
|
|
1462
|
+
fill: "none",
|
|
1463
|
+
stroke: "currentColor",
|
|
1464
|
+
strokeWidth: "2.2",
|
|
1465
|
+
strokeLinecap: "round",
|
|
1466
|
+
strokeLinejoin: "round",
|
|
1467
|
+
"aria-hidden": !0,
|
|
1468
|
+
children: /* @__PURE__ */ e("path", { d: "M6 9l6 6 6-6" })
|
|
1469
|
+
}
|
|
1470
|
+
), Uo = [
|
|
1471
|
+
{ name: "United States", code: "+1", iso: "US" },
|
|
1472
|
+
{ name: "United Kingdom", code: "+44", iso: "GB" },
|
|
1473
|
+
{ name: "Australia", code: "+61", iso: "AU" },
|
|
1474
|
+
{ name: "Canada", code: "+1", iso: "CA" },
|
|
1475
|
+
{ name: "United Arab Emirates", code: "+971", iso: "AE" },
|
|
1476
|
+
{ name: "Singapore", code: "+65", iso: "SG" },
|
|
1477
|
+
{ name: "New Zealand", code: "+64", iso: "NZ" },
|
|
1478
|
+
{ name: "Mauritius", code: "+230", iso: "MU" },
|
|
1479
|
+
{ name: "Netherlands", code: "+31", iso: "NL" },
|
|
1480
|
+
{ name: "Malaysia", code: "+60", iso: "MY" },
|
|
1481
|
+
{ name: "Germany", code: "+49", iso: "DE" },
|
|
1482
|
+
{ name: "South Africa", code: "+27", iso: "ZA" },
|
|
1483
|
+
{ name: "Qatar", code: "+974", iso: "QA" },
|
|
1484
|
+
{ name: "Ireland", code: "+353", iso: "IE" },
|
|
1485
|
+
{ name: "Oman", code: "+968", iso: "OM" },
|
|
1486
|
+
{ name: "Saudi Arabia", code: "+966", iso: "SA" },
|
|
1487
|
+
{ name: "Hong Kong", code: "+852", iso: "HK" },
|
|
1488
|
+
{ name: "France", code: "+33", iso: "FR" },
|
|
1489
|
+
{ name: "Switzerland", code: "+41", iso: "CH" },
|
|
1490
|
+
{ name: "Bahrain", code: "+973", iso: "BH" },
|
|
1491
|
+
{ name: "Trinidad and Tobago", code: "+1-868", iso: "TT" },
|
|
1492
|
+
{ name: "Kuwait", code: "+965", iso: "KW" },
|
|
1493
|
+
{ name: "Belgium", code: "+32", iso: "BE" },
|
|
1494
|
+
{ name: "Japan", code: "+81", iso: "JP" },
|
|
1495
|
+
{ name: "Italy", code: "+39", iso: "IT" },
|
|
1496
|
+
{ name: "Spain", code: "+34", iso: "ES" },
|
|
1497
|
+
{ name: "Norway", code: "+47", iso: "NO" },
|
|
1498
|
+
{ name: "Sweden", code: "+46", iso: "SE" },
|
|
1499
|
+
{ name: "Portugal", code: "+351", iso: "PT" },
|
|
1500
|
+
{ name: "Poland", code: "+48", iso: "PL" },
|
|
1501
|
+
{ name: "Denmark", code: "+45", iso: "DK" },
|
|
1502
|
+
{ name: "Nepal", code: "+977", iso: "NP" },
|
|
1503
|
+
{ name: "Bangladesh", code: "+880", iso: "BD" },
|
|
1504
|
+
{ name: "Kenya", code: "+254", iso: "KE" },
|
|
1505
|
+
{ name: "Mexico", code: "+52", iso: "MX" },
|
|
1506
|
+
{ name: "Czechia", code: "+420", iso: "CZ" },
|
|
1507
|
+
{ name: "Indonesia", code: "+62", iso: "ID" },
|
|
1508
|
+
{ name: "Taiwan", code: "+886", iso: "TW" },
|
|
1509
|
+
{ name: "Fiji", code: "+679", iso: "FJ" },
|
|
1510
|
+
{ name: "Guyana", code: "+592", iso: "GY" },
|
|
1511
|
+
{ name: "Finland", code: "+358", iso: "FI" },
|
|
1512
|
+
{ name: "Nigeria", code: "+234", iso: "NG" },
|
|
1513
|
+
{ name: "Jamaica", code: "+1-876", iso: "JM" },
|
|
1514
|
+
{ name: "Sri Lanka", code: "+94", iso: "LK" },
|
|
1515
|
+
{ name: "Thailand", code: "+66", iso: "TH" },
|
|
1516
|
+
{ name: "Hungary", code: "+36", iso: "HU" },
|
|
1517
|
+
{ name: "Tanzania", code: "+255", iso: "TZ" },
|
|
1518
|
+
{ name: "Sint Maarten", code: "+1-721", iso: "SX" },
|
|
1519
|
+
{ name: "Philippines", code: "+63", iso: "PH" },
|
|
1520
|
+
{ name: "Estonia", code: "+372", iso: "EE" },
|
|
1521
|
+
{ name: "Ukraine", code: "+380", iso: "UA" },
|
|
1522
|
+
{ name: "Austria", code: "+43", iso: "AT" },
|
|
1523
|
+
{ name: "Réunion", code: "+262", iso: "RE" },
|
|
1524
|
+
{ name: "India", code: "+91", iso: "IN" }
|
|
1525
|
+
], Go = (t) => {
|
|
1526
|
+
if (!t || t.length !== 2) return "🏳️";
|
|
1527
|
+
const n = t.toUpperCase().split("").map((a) => 127397 + a.charCodeAt(0));
|
|
1528
|
+
return String.fromCodePoint(...n);
|
|
1529
|
+
}, He = {
|
|
1530
|
+
"+1": {
|
|
1531
|
+
pattern: /^[2-9]\d{9}$/,
|
|
1532
|
+
minLength: 10,
|
|
1533
|
+
maxLength: 10,
|
|
1534
|
+
description: "10 digits, cannot start with 0 or 1"
|
|
1535
|
+
},
|
|
1536
|
+
"+44": {
|
|
1537
|
+
pattern: /^\d{10}$/,
|
|
1538
|
+
minLength: 10,
|
|
1539
|
+
maxLength: 10,
|
|
1540
|
+
description: "10 digits"
|
|
1541
|
+
},
|
|
1542
|
+
"+61": {
|
|
1543
|
+
pattern: /^\d{9}$/,
|
|
1544
|
+
minLength: 9,
|
|
1545
|
+
maxLength: 9,
|
|
1546
|
+
description: "9 digits"
|
|
1547
|
+
},
|
|
1548
|
+
"+971": {
|
|
1549
|
+
pattern: /^\d{8,9}$/,
|
|
1550
|
+
minLength: 8,
|
|
1551
|
+
maxLength: 9,
|
|
1552
|
+
description: "8-9 digits"
|
|
1553
|
+
},
|
|
1554
|
+
"+65": {
|
|
1555
|
+
pattern: /^\d{8}$/,
|
|
1556
|
+
minLength: 8,
|
|
1557
|
+
maxLength: 8,
|
|
1558
|
+
description: "8 digits"
|
|
1559
|
+
},
|
|
1560
|
+
"+49": {
|
|
1561
|
+
pattern: /^\d{10,11}$/,
|
|
1562
|
+
minLength: 10,
|
|
1563
|
+
maxLength: 11,
|
|
1564
|
+
description: "10-11 digits"
|
|
1565
|
+
},
|
|
1566
|
+
"+91": {
|
|
1567
|
+
pattern: /^[6-9]\d{9}$/,
|
|
1568
|
+
minLength: 10,
|
|
1569
|
+
maxLength: 10,
|
|
1570
|
+
description: "10 digits, must start with 6-9"
|
|
1571
|
+
},
|
|
1572
|
+
"+974": {
|
|
1573
|
+
pattern: /^\d{8}$/,
|
|
1574
|
+
minLength: 8,
|
|
1575
|
+
maxLength: 8,
|
|
1576
|
+
description: "8 digits"
|
|
1577
|
+
},
|
|
1578
|
+
"+60": {
|
|
1579
|
+
pattern: /^\d{9,10}$/,
|
|
1580
|
+
minLength: 9,
|
|
1581
|
+
maxLength: 10,
|
|
1582
|
+
description: "9-10 digits"
|
|
1583
|
+
},
|
|
1584
|
+
"+27": {
|
|
1585
|
+
pattern: /^\d{9}$/,
|
|
1586
|
+
minLength: 9,
|
|
1587
|
+
maxLength: 9,
|
|
1588
|
+
description: "9 digits"
|
|
1589
|
+
},
|
|
1590
|
+
"+64": {
|
|
1591
|
+
pattern: /^\d{8,10}$/,
|
|
1592
|
+
minLength: 8,
|
|
1593
|
+
maxLength: 10,
|
|
1594
|
+
description: "8-10 digits"
|
|
1595
|
+
},
|
|
1596
|
+
"+230": {
|
|
1597
|
+
pattern: /^\d{7,8}$/,
|
|
1598
|
+
minLength: 7,
|
|
1599
|
+
maxLength: 8,
|
|
1600
|
+
description: "7-8 digits"
|
|
1601
|
+
}
|
|
1602
|
+
}, ze = {
|
|
1603
|
+
pattern: /^\d{6,15}$/,
|
|
1604
|
+
maxLength: 15,
|
|
1605
|
+
description: "6-15 digits"
|
|
1606
|
+
}, Fe = (t, n) => {
|
|
1607
|
+
if (!t)
|
|
1608
|
+
return { isValid: !0, error: "" };
|
|
1609
|
+
const a = He[n] || ze;
|
|
1610
|
+
return a.pattern.test(t) ? { isValid: !0, error: "" } : {
|
|
1611
|
+
isValid: !1,
|
|
1612
|
+
error: `Please enter a valid phone number (${a.description})`
|
|
1613
|
+
};
|
|
1614
|
+
}, qe = (t) => (He[t] || ze).maxLength, Yo = ({
|
|
1615
|
+
countryCode: t,
|
|
1616
|
+
contactNumber: n,
|
|
1617
|
+
countries: a,
|
|
1618
|
+
onCountryCodeChange: s,
|
|
1619
|
+
onPhoneNumberChange: r,
|
|
1620
|
+
onValidationChange: c,
|
|
1621
|
+
onDropdownFocus: d,
|
|
1622
|
+
onInputFocus: l
|
|
1623
|
+
}) => {
|
|
1624
|
+
const [p, h] = I(!1), f = a.find((k) => k.code === t) ?? a[0], _ = qe(t), g = le(
|
|
1625
|
+
(k) => {
|
|
1626
|
+
if (s(k.code, k.name), h(!1), n && c) {
|
|
1627
|
+
const { isValid: T, error: M } = Fe(n, k.code);
|
|
1628
|
+
c(T, M);
|
|
1629
|
+
}
|
|
1630
|
+
},
|
|
1631
|
+
[n, s, c]
|
|
1632
|
+
), b = le(
|
|
1633
|
+
(k) => {
|
|
1634
|
+
const M = k.target.value.replace(/[^\d]/g, "").slice(0, qe(t));
|
|
1635
|
+
if (r(M), c) {
|
|
1636
|
+
const { isValid: Y, error: V } = Fe(M, t);
|
|
1637
|
+
c(Y, V);
|
|
1638
|
+
}
|
|
1639
|
+
},
|
|
1640
|
+
[t, r, c]
|
|
1641
|
+
), w = le(() => {
|
|
1642
|
+
h((k) => (k || d?.(t), !k));
|
|
1643
|
+
}, [t, d]), O = le(() => {
|
|
1644
|
+
h(!1), l?.(t);
|
|
1645
|
+
}, [t, l]);
|
|
1646
|
+
return {
|
|
1647
|
+
isDropdownOpen: p,
|
|
1648
|
+
selectedCountry: f,
|
|
1649
|
+
maxLength: _,
|
|
1650
|
+
handleCountrySelect: g,
|
|
1651
|
+
handlePhoneChange: b,
|
|
1652
|
+
handleDropdownToggle: w,
|
|
1653
|
+
handlePhoneFocus: O,
|
|
1654
|
+
closeDropdown: () => h(!1)
|
|
1655
|
+
};
|
|
1656
|
+
}, Vo = "_root_3ywyc_2", Jo = "_label_3ywyc_9", Zo = "_row_3ywyc_17", Xo = "_dropdownWrap_3ywyc_23", Qo = "_dropdownBtn_3ywyc_29", es = "_dropdownMenu_3ywyc_50", ts = "_dropdownItem_3ywyc_64", ns = "_dropdownItemCode_3ywyc_80", as = "_dropdownItemName_3ywyc_85", os = "_flagImg_3ywyc_93", ss = "_flagEmoji_3ywyc_97", rs = "_input_3ywyc_102", is = "_inputError_3ywyc_121", cs = "_helper_3ywyc_129", ls = "_error_3ywyc_137", S = {
|
|
1657
|
+
root: Vo,
|
|
1658
|
+
label: Jo,
|
|
1659
|
+
row: Zo,
|
|
1660
|
+
dropdownWrap: Xo,
|
|
1661
|
+
dropdownBtn: Qo,
|
|
1662
|
+
dropdownMenu: es,
|
|
1663
|
+
dropdownItem: ts,
|
|
1664
|
+
dropdownItemCode: ns,
|
|
1665
|
+
dropdownItemName: as,
|
|
1666
|
+
flagImg: os,
|
|
1667
|
+
flagEmoji: ss,
|
|
1668
|
+
input: rs,
|
|
1669
|
+
inputError: is,
|
|
1670
|
+
helper: cs,
|
|
1671
|
+
error: ls
|
|
1672
|
+
}, We = (...t) => t.filter(Boolean).join(" "), _r = ({
|
|
1673
|
+
countryCode: t,
|
|
1674
|
+
contactNumber: n,
|
|
1675
|
+
error: a,
|
|
1676
|
+
label: s,
|
|
1677
|
+
helperText: r,
|
|
1678
|
+
countries: c = Uo,
|
|
1679
|
+
getFlagUrl: d,
|
|
1680
|
+
onCountryCodeChange: l,
|
|
1681
|
+
onPhoneNumberChange: p,
|
|
1682
|
+
onValidationChange: h,
|
|
1683
|
+
onDropdownFocus: f,
|
|
1684
|
+
onInputFocus: _,
|
|
1685
|
+
inputRef: g,
|
|
1686
|
+
t: b,
|
|
1687
|
+
className: w = ""
|
|
1688
|
+
}) => {
|
|
1689
|
+
const [O, k] = I(c[0]?.code ?? "+91"), [T, M] = I(""), Y = t ?? O, V = n ?? T, J = G(null), {
|
|
1690
|
+
isDropdownOpen: ee,
|
|
1691
|
+
selectedCountry: y,
|
|
1692
|
+
maxLength: pe,
|
|
1693
|
+
handleCountrySelect: x,
|
|
1694
|
+
handlePhoneChange: re,
|
|
1695
|
+
handleDropdownToggle: ue,
|
|
1696
|
+
handlePhoneFocus: q,
|
|
1697
|
+
closeDropdown: F
|
|
1698
|
+
} = Yo({
|
|
1699
|
+
countryCode: Y,
|
|
1700
|
+
contactNumber: V,
|
|
1701
|
+
countries: c,
|
|
1702
|
+
onCountryCodeChange: (N, K) => {
|
|
1703
|
+
k(N), l?.(N, K);
|
|
1704
|
+
},
|
|
1705
|
+
onPhoneNumberChange: (N) => {
|
|
1706
|
+
M(N), p?.(N);
|
|
1707
|
+
},
|
|
1708
|
+
onValidationChange: h,
|
|
1709
|
+
onDropdownFocus: f,
|
|
1710
|
+
onInputFocus: _
|
|
1711
|
+
});
|
|
1712
|
+
se(() => {
|
|
1713
|
+
const N = (K) => {
|
|
1714
|
+
J.current && !J.current.contains(K.target) && F();
|
|
1715
|
+
};
|
|
1716
|
+
return ee && document.addEventListener("mousedown", N), () => document.removeEventListener("mousedown", N);
|
|
1717
|
+
}, [ee, F]);
|
|
1718
|
+
const W = (N, K) => {
|
|
1719
|
+
const P = N ? d?.(N) : null;
|
|
1720
|
+
return P ? /* @__PURE__ */ e("img", { src: P, alt: K, width: 20, height: 14, className: S.flagImg }) : /* @__PURE__ */ e("span", { className: S.flagEmoji, "aria-hidden": !0, children: Go(N) });
|
|
1721
|
+
};
|
|
1722
|
+
return /* @__PURE__ */ i("div", { className: We(S.root, w), children: [
|
|
1723
|
+
s && /* @__PURE__ */ e("div", { className: S.label, children: s }),
|
|
1724
|
+
/* @__PURE__ */ i("div", { className: S.row, children: [
|
|
1725
|
+
/* @__PURE__ */ i("div", { className: S.dropdownWrap, ref: J, children: [
|
|
1726
|
+
/* @__PURE__ */ i("button", { type: "button", className: S.dropdownBtn, onClick: ue, children: [
|
|
1727
|
+
W(y?.iso, y?.name ?? "Flag"),
|
|
1728
|
+
/* @__PURE__ */ e("span", { children: y?.code ?? "+91" }),
|
|
1729
|
+
/* @__PURE__ */ e(Ko, {})
|
|
1730
|
+
] }),
|
|
1731
|
+
ee && /* @__PURE__ */ e("div", { className: S.dropdownMenu, role: "listbox", children: c.map((N) => /* @__PURE__ */ i(
|
|
1732
|
+
"button",
|
|
1733
|
+
{
|
|
1734
|
+
type: "button",
|
|
1735
|
+
role: "option",
|
|
1736
|
+
"aria-selected": N.code === y?.code,
|
|
1737
|
+
className: S.dropdownItem,
|
|
1738
|
+
onClick: () => x(N),
|
|
1739
|
+
children: [
|
|
1740
|
+
W(N.iso, N.name),
|
|
1741
|
+
/* @__PURE__ */ e("span", { className: S.dropdownItemCode, children: N.code }),
|
|
1742
|
+
/* @__PURE__ */ e("span", { className: S.dropdownItemName, children: N.name })
|
|
1743
|
+
]
|
|
1744
|
+
},
|
|
1745
|
+
`${N.code}-${N.iso}`
|
|
1746
|
+
)) })
|
|
1747
|
+
] }),
|
|
1748
|
+
/* @__PURE__ */ e(
|
|
1749
|
+
"input",
|
|
1750
|
+
{
|
|
1751
|
+
type: "tel",
|
|
1752
|
+
inputMode: "numeric",
|
|
1753
|
+
autoComplete: "off",
|
|
1754
|
+
value: V,
|
|
1755
|
+
maxLength: pe,
|
|
1756
|
+
ref: g,
|
|
1757
|
+
className: We(S.input, a && S.inputError),
|
|
1758
|
+
placeholder: b?.("planPhoneNumberPlaceholder") ?? "0000000000",
|
|
1759
|
+
onChange: re,
|
|
1760
|
+
onFocus: q
|
|
1761
|
+
}
|
|
1762
|
+
)
|
|
1763
|
+
] }),
|
|
1764
|
+
r && /* @__PURE__ */ e("div", { className: S.helper, children: r }),
|
|
1765
|
+
a && /* @__PURE__ */ e("p", { className: S.error, children: a })
|
|
1766
|
+
] });
|
|
1767
|
+
}, ds = () => /* @__PURE__ */ e("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ e(
|
|
1768
|
+
"path",
|
|
1769
|
+
{
|
|
1770
|
+
d: "M8 1.33337L10.06 5.50671L14.6667 6.18004L11.3333 9.42671L12.12 14.0134L8 11.8467L3.88 14.0134L4.66667 9.42671L1.33333 6.18004L5.94 5.50671L8 1.33337Z",
|
|
1771
|
+
fill: "#F59E0B",
|
|
1772
|
+
stroke: "#F59E0B",
|
|
1773
|
+
strokeWidth: "1.2",
|
|
1774
|
+
strokeLinecap: "round",
|
|
1775
|
+
strokeLinejoin: "round"
|
|
1776
|
+
}
|
|
1777
|
+
) }), ms = () => /* @__PURE__ */ e("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ e(
|
|
1778
|
+
"path",
|
|
1779
|
+
{
|
|
1780
|
+
fillRule: "evenodd",
|
|
1781
|
+
clipRule: "evenodd",
|
|
1782
|
+
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",
|
|
1783
|
+
fill: "#F97316"
|
|
1784
|
+
}
|
|
1785
|
+
) }), _s = "_card_1mv2d_3", hs = "_cardSelected_1mv2d_25", ps = "_photoWrap_1mv2d_32", us = "_photoFrame_1mv2d_38", gs = "_photoImg_1mv2d_46", bs = "_ratingPill_1mv2d_52", fs = "_ratingValue_1mv2d_67", Ns = "_info_1mv2d_75", vs = "_name_1mv2d_85", ws = "_meta_1mv2d_96", ys = "_languages_1mv2d_104", ks = "_consultationCount_1mv2d_114", Ss = "_checkIcon_1mv2d_122", $s = "_recommendedBadge_1mv2d_127", Is = "_recommendedLabel_1mv2d_149", $ = {
|
|
1786
|
+
card: _s,
|
|
1787
|
+
cardSelected: hs,
|
|
1788
|
+
photoWrap: ps,
|
|
1789
|
+
photoFrame: us,
|
|
1790
|
+
photoImg: gs,
|
|
1791
|
+
ratingPill: bs,
|
|
1792
|
+
ratingValue: fs,
|
|
1793
|
+
info: Ns,
|
|
1794
|
+
name: vs,
|
|
1795
|
+
meta: ws,
|
|
1796
|
+
languages: ys,
|
|
1797
|
+
consultationCount: ks,
|
|
1798
|
+
checkIcon: Ss,
|
|
1799
|
+
recommendedBadge: $s,
|
|
1800
|
+
recommendedLabel: Is
|
|
1801
|
+
}, Ts = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='78' viewBox='0 0 64 78'><rect width='64' height='78' fill='%23F3F4F6'/><circle cx='32' cy='30' r='12' fill='%23D1D5DB'/><path d='M12 70c2-14 12-22 20-22s18 8 20 22' fill='%23D1D5DB'/></svg>", Ls = ({
|
|
1802
|
+
photoUrl: t,
|
|
1803
|
+
name: n,
|
|
1804
|
+
rating: a,
|
|
1805
|
+
fallbackPhotoUrl: s = Ts
|
|
1806
|
+
}) => /* @__PURE__ */ i("div", { className: $.photoWrap, children: [
|
|
1807
|
+
/* @__PURE__ */ e("div", { className: $.photoFrame, children: /* @__PURE__ */ e(
|
|
1808
|
+
"img",
|
|
1809
|
+
{
|
|
1810
|
+
src: t || s,
|
|
1811
|
+
alt: n,
|
|
1812
|
+
width: 64,
|
|
1813
|
+
height: 78,
|
|
1814
|
+
className: $.photoImg,
|
|
1815
|
+
onError: (r) => {
|
|
1816
|
+
r.target.src = s;
|
|
1817
|
+
}
|
|
1818
|
+
}
|
|
1819
|
+
) }),
|
|
1820
|
+
/* @__PURE__ */ i("div", { className: $.ratingPill, children: [
|
|
1821
|
+
/* @__PURE__ */ e("span", { className: $.ratingValue, children: a }),
|
|
1822
|
+
/* @__PURE__ */ e(ds, {})
|
|
1823
|
+
] })
|
|
1824
|
+
] }), xs = ({ label: t, t: n }) => /* @__PURE__ */ e("div", { className: $.recommendedBadge, children: /* @__PURE__ */ e("span", { className: $.recommendedLabel, children: t ?? n?.("planRecommendedAstrologer") ?? "Recommended" }) }), Cs = (...t) => t.filter(Boolean).join(" "), Ds = (t) => {
|
|
1825
|
+
if (t >= 1e3) {
|
|
1826
|
+
const n = t / 1e3;
|
|
1827
|
+
return `${Number.isInteger(n) ? n : n.toFixed(1)}K consultations`;
|
|
1828
|
+
}
|
|
1829
|
+
return `${t} consultations`;
|
|
1830
|
+
}, Bs = ({
|
|
1831
|
+
astrologer: t,
|
|
1832
|
+
isSelected: n = !1,
|
|
1833
|
+
onClick: a,
|
|
1834
|
+
fallbackPhotoUrl: s,
|
|
1835
|
+
formatConsultationCount: r = Ds
|
|
1836
|
+
}) => /* @__PURE__ */ i(
|
|
1837
|
+
"button",
|
|
1838
|
+
{
|
|
1839
|
+
type: "button",
|
|
1840
|
+
onClick: () => a?.(t),
|
|
1841
|
+
className: Cs($.card, n && $.cardSelected),
|
|
1842
|
+
children: [
|
|
1843
|
+
/* @__PURE__ */ e(
|
|
1844
|
+
Ls,
|
|
1845
|
+
{
|
|
1846
|
+
photoUrl: t.photo_url,
|
|
1847
|
+
name: t.name,
|
|
1848
|
+
rating: t.rating,
|
|
1849
|
+
fallbackPhotoUrl: s
|
|
1850
|
+
}
|
|
1851
|
+
),
|
|
1852
|
+
/* @__PURE__ */ i("div", { className: $.info, children: [
|
|
1853
|
+
/* @__PURE__ */ e("span", { className: $.name, children: t.name }),
|
|
1854
|
+
/* @__PURE__ */ i("div", { className: $.meta, children: [
|
|
1855
|
+
/* @__PURE__ */ e("span", { className: $.languages, children: t.languages.join(", ") }),
|
|
1856
|
+
/* @__PURE__ */ e("span", { className: $.consultationCount, children: r(t.consultation_count) })
|
|
1857
|
+
] })
|
|
1858
|
+
] }),
|
|
1859
|
+
n && /* @__PURE__ */ e("div", { className: $.checkIcon, children: /* @__PURE__ */ e(ms, {}) }),
|
|
1860
|
+
t.is_recommended && /* @__PURE__ */ e(xs, {})
|
|
1861
|
+
]
|
|
1862
|
+
}
|
|
1863
|
+
), Rs = "_wrapper_vfs2z_41", Ms = "_ribbon_vfs2z_8", Ps = "_fold_vfs2z_64", As = "_label_vfs2z_74", he = {
|
|
1864
|
+
wrapper: Rs,
|
|
1865
|
+
ribbon: Ms,
|
|
1866
|
+
fold: Ps,
|
|
1867
|
+
label: As
|
|
1868
|
+
}, hr = ({
|
|
1869
|
+
label: t,
|
|
1870
|
+
t: n,
|
|
1871
|
+
className: a
|
|
1872
|
+
}) => /* @__PURE__ */ i("div", { className: [he.wrapper, a].filter(Boolean).join(" "), children: [
|
|
1873
|
+
/* @__PURE__ */ e("div", { className: he.ribbon, children: /* @__PURE__ */ e("span", { className: he.label, children: t ?? n?.("planRecommendedAstrologer") ?? "Recommended" }) }),
|
|
1874
|
+
/* @__PURE__ */ e("div", { className: he.fold })
|
|
1875
|
+
] }), Es = "_section_jbaga_2", Os = "_title_jbaga_6", Fs = "_row_jbaga_13", qs = "_skeletonCard_jbaga_26", Ws = "_skeletonShimmer_jbaga_33", oe = {
|
|
1876
|
+
section: Es,
|
|
1877
|
+
title: Os,
|
|
1878
|
+
row: Fs,
|
|
1879
|
+
skeletonCard: qs,
|
|
1880
|
+
skeletonShimmer: Ws
|
|
1881
|
+
}, je = (...t) => t.filter(Boolean).join(" "), pr = ({
|
|
1882
|
+
astrologers: t,
|
|
1883
|
+
loading: n = !1,
|
|
1884
|
+
selectedAstrologerId: a,
|
|
1885
|
+
onAstrologerSelect: s,
|
|
1886
|
+
title: r,
|
|
1887
|
+
fallbackPhotoUrl: c,
|
|
1888
|
+
formatConsultationCount: d,
|
|
1889
|
+
t: l,
|
|
1890
|
+
className: p = ""
|
|
1891
|
+
}) => {
|
|
1892
|
+
const [h, f] = I(""), _ = a ?? h, g = (b) => {
|
|
1893
|
+
f(b.astrologer_id), s?.(b);
|
|
1894
|
+
};
|
|
1895
|
+
return /* @__PURE__ */ i("section", { className: je(oe.section, p), children: [
|
|
1896
|
+
/* @__PURE__ */ e("p", { className: oe.title, children: r ?? l?.("planSelectAstrologerHeading") ?? "Select an astrologer" }),
|
|
1897
|
+
/* @__PURE__ */ e("div", { className: oe.row, role: "radiogroup", "aria-label": "Astrologer", children: n ? Array.from({ length: 2 }).map((b, w) => /* @__PURE__ */ e("div", { className: je(oe.skeletonCard, oe.skeletonShimmer) }, w)) : t.map((b) => /* @__PURE__ */ e(
|
|
1898
|
+
Bs,
|
|
1899
|
+
{
|
|
1900
|
+
astrologer: b,
|
|
1901
|
+
isSelected: b.astrologer_id === _,
|
|
1902
|
+
onClick: g,
|
|
1903
|
+
fallbackPhotoUrl: c,
|
|
1904
|
+
formatConsultationCount: d
|
|
1905
|
+
},
|
|
1906
|
+
b.astrologer_id
|
|
1907
|
+
)) })
|
|
1908
|
+
] });
|
|
1909
|
+
}, ur = [
|
|
1910
|
+
{
|
|
1911
|
+
astrologer_id: "astro-1",
|
|
1912
|
+
name: "Pandit Ramesh Sharma",
|
|
1913
|
+
photo_url: "",
|
|
1914
|
+
languages: ["Hindi", "English"],
|
|
1915
|
+
rating: 4.8,
|
|
1916
|
+
consultation_count: 12500,
|
|
1917
|
+
is_recommended: !0
|
|
1918
|
+
},
|
|
1919
|
+
{
|
|
1920
|
+
astrologer_id: "astro-2",
|
|
1921
|
+
name: "Dr. Anjali Mehta",
|
|
1922
|
+
photo_url: "",
|
|
1923
|
+
languages: ["English", "Gujarati"],
|
|
1924
|
+
rating: 4.6,
|
|
1925
|
+
consultation_count: 870
|
|
1926
|
+
},
|
|
1927
|
+
{
|
|
1928
|
+
astrologer_id: "astro-3",
|
|
1929
|
+
name: "Acharya Vivek Joshi",
|
|
1930
|
+
photo_url: "",
|
|
1931
|
+
languages: ["Hindi", "Marathi", "English"],
|
|
1932
|
+
rating: 4.9,
|
|
1933
|
+
consultation_count: 3400
|
|
1934
|
+
}
|
|
1935
|
+
];
|
|
2057
1936
|
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
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
1937
|
+
Bs as AstrologerCard,
|
|
1938
|
+
pr as AstrologerList,
|
|
1939
|
+
Ls as AstrologerPhoto,
|
|
1940
|
+
Ya as AstrologyProfilesSection,
|
|
1941
|
+
Na as CONSULTATION_LANGUAGE_OPTIONS,
|
|
1942
|
+
fa as CONSULTATION_PERIOD_ORDER,
|
|
1943
|
+
ca as CircularMarquee,
|
|
1944
|
+
dr as ConsultationSlotSelector,
|
|
1945
|
+
lr as ContactUsSection,
|
|
1946
|
+
Uo as DEFAULT_COUNTRIES,
|
|
1947
|
+
Us as FAQAccordion,
|
|
1948
|
+
ir as FooterCTAButton,
|
|
1949
|
+
rr as FooterShell,
|
|
1950
|
+
or as FormCheckboxWithHelp,
|
|
1951
|
+
Ys as FormContainer,
|
|
1952
|
+
Qs as FormDateInput,
|
|
1953
|
+
Zs as FormField,
|
|
1954
|
+
sr as FormFooterNote,
|
|
1955
|
+
tr as FormLocationInput,
|
|
1956
|
+
Vs as FormSectionHeader,
|
|
1957
|
+
nr as FormSegmentedControl,
|
|
1958
|
+
ar as FormTagPills,
|
|
1959
|
+
Xs as FormTextInput,
|
|
1960
|
+
er as FormTimeInput,
|
|
1961
|
+
ur as MOCK_ASTROLOGERS,
|
|
1962
|
+
zo as MOCK_SLOT_DAYS,
|
|
1963
|
+
mr as MOCK_SLOT_DAYS_EMPTY,
|
|
1964
|
+
cr as MarqueeStrip,
|
|
1965
|
+
Gs as PageHeader,
|
|
1966
|
+
_r as PhoneNumberInput,
|
|
1967
|
+
Ma as PhoneNumberSection,
|
|
1968
|
+
Js as PrivacyBanner,
|
|
1969
|
+
xs as RecommendedBadge,
|
|
1970
|
+
hr as RecommendedRibbon,
|
|
1971
|
+
Ks as UserReviewsSection,
|
|
1972
|
+
Q as footerShellStyles,
|
|
1973
|
+
ba as formatSlotDayLabel,
|
|
1974
|
+
ga as formatSlotTime,
|
|
1975
|
+
Go as getFlagEmoji,
|
|
1976
|
+
qe as getMaxLengthForCountry,
|
|
1977
|
+
Fe as validatePhoneByCountryCode
|
|
2088
1978
|
};
|
|
2089
1979
|
//# sourceMappingURL=index.js.map
|