@srimandir/pitru-paksh-common 2.63.0 → 2.67.0
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createI18n as Ga, cn as m, BottomSheet as ke, DEFAULT_COUNTRIES as Ua, getMaxLengthForCountry as sa, validatePhoneByCountryCode as ra, getFlagEmoji as Ka } from "@srimandir/common";
|
|
2
2
|
import { cn as $l } from "@srimandir/common";
|
|
3
3
|
import * as Za from "react";
|
|
4
|
-
import k, { useState as
|
|
4
|
+
import k, { useState as V, useRef as rt, useMemo as $e, useEffect as at, Fragment as Ya } from "react";
|
|
5
5
|
import { cva as qa } from "class-variance-authority";
|
|
6
6
|
import Xa from "react-player";
|
|
7
7
|
const Gn = ["en", "hi", "kn", "te"], Qa = {
|
|
@@ -281,54 +281,54 @@ var Ee = {};
|
|
|
281
281
|
var Ct;
|
|
282
282
|
function ss() {
|
|
283
283
|
return Ct || (Ct = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
284
|
-
var t = k, a = /* @__PURE__ */ Symbol.for("react.element"), s = /* @__PURE__ */ Symbol.for("react.portal"), n = /* @__PURE__ */ Symbol.for("react.fragment"), l = /* @__PURE__ */ Symbol.for("react.strict_mode"), i = /* @__PURE__ */ Symbol.for("react.profiler"), c = /* @__PURE__ */ Symbol.for("react.provider"), o = /* @__PURE__ */ Symbol.for("react.context"), d = /* @__PURE__ */ Symbol.for("react.forward_ref"), g = /* @__PURE__ */ Symbol.for("react.suspense"), x = /* @__PURE__ */ Symbol.for("react.suspense_list"), u = /* @__PURE__ */ Symbol.for("react.memo"), f = /* @__PURE__ */ Symbol.for("react.lazy"), b = /* @__PURE__ */ Symbol.for("react.offscreen"), p = Symbol.iterator,
|
|
285
|
-
function
|
|
284
|
+
var t = k, a = /* @__PURE__ */ Symbol.for("react.element"), s = /* @__PURE__ */ Symbol.for("react.portal"), n = /* @__PURE__ */ Symbol.for("react.fragment"), l = /* @__PURE__ */ Symbol.for("react.strict_mode"), i = /* @__PURE__ */ Symbol.for("react.profiler"), c = /* @__PURE__ */ Symbol.for("react.provider"), o = /* @__PURE__ */ Symbol.for("react.context"), d = /* @__PURE__ */ Symbol.for("react.forward_ref"), g = /* @__PURE__ */ Symbol.for("react.suspense"), x = /* @__PURE__ */ Symbol.for("react.suspense_list"), u = /* @__PURE__ */ Symbol.for("react.memo"), f = /* @__PURE__ */ Symbol.for("react.lazy"), b = /* @__PURE__ */ Symbol.for("react.offscreen"), p = Symbol.iterator, C = "@@iterator";
|
|
285
|
+
function y(r) {
|
|
286
286
|
if (r === null || typeof r != "object")
|
|
287
287
|
return null;
|
|
288
|
-
var h = p && r[p] || r[
|
|
288
|
+
var h = p && r[p] || r[C];
|
|
289
289
|
return typeof h == "function" ? h : null;
|
|
290
290
|
}
|
|
291
291
|
var j = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
292
|
-
function
|
|
292
|
+
function v(r) {
|
|
293
293
|
{
|
|
294
|
-
for (var h = arguments.length, N = new Array(h > 1 ? h - 1 : 0),
|
|
295
|
-
N[
|
|
296
|
-
|
|
294
|
+
for (var h = arguments.length, N = new Array(h > 1 ? h - 1 : 0), S = 1; S < h; S++)
|
|
295
|
+
N[S - 1] = arguments[S];
|
|
296
|
+
_("error", r, N);
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function _(r, h, N) {
|
|
300
300
|
{
|
|
301
|
-
var
|
|
302
|
-
|
|
303
|
-
var
|
|
301
|
+
var S = j.ReactDebugCurrentFrame, I = S.getStackAddendum();
|
|
302
|
+
I !== "" && (h += "%s", N = N.concat([I]));
|
|
303
|
+
var H = N.map(function(A) {
|
|
304
304
|
return String(A);
|
|
305
305
|
});
|
|
306
|
-
|
|
306
|
+
H.unshift("Warning: " + h), Function.prototype.apply.call(console[r], console, H);
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
|
-
var
|
|
310
|
-
|
|
311
|
-
function
|
|
312
|
-
return !!(typeof r == "string" || typeof r == "function" || r === n || r === i || D || r === l || r === g || r === x || z || r === b ||
|
|
309
|
+
var M = !1, G = !1, B = !1, z = !1, D = !1, W;
|
|
310
|
+
W = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
311
|
+
function $(r) {
|
|
312
|
+
return !!(typeof r == "string" || typeof r == "function" || r === n || r === i || D || r === l || r === g || r === x || z || r === b || M || G || B || typeof r == "object" && r !== null && (r.$$typeof === f || r.$$typeof === u || r.$$typeof === c || r.$$typeof === o || r.$$typeof === d || // This needs to include all possible module reference object
|
|
313
313
|
// types supported by any Flight configuration anywhere since
|
|
314
314
|
// we don't know which Flight build this will end up being used
|
|
315
315
|
// with.
|
|
316
|
-
r.$$typeof ===
|
|
316
|
+
r.$$typeof === W || r.getModuleId !== void 0));
|
|
317
317
|
}
|
|
318
|
-
function
|
|
319
|
-
var
|
|
320
|
-
if (
|
|
321
|
-
return
|
|
322
|
-
var
|
|
323
|
-
return
|
|
318
|
+
function P(r, h, N) {
|
|
319
|
+
var S = r.displayName;
|
|
320
|
+
if (S)
|
|
321
|
+
return S;
|
|
322
|
+
var I = h.displayName || h.name || "";
|
|
323
|
+
return I !== "" ? N + "(" + I + ")" : N;
|
|
324
324
|
}
|
|
325
325
|
function L(r) {
|
|
326
326
|
return r.displayName || "Context";
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function F(r) {
|
|
329
329
|
if (r == null)
|
|
330
330
|
return null;
|
|
331
|
-
if (typeof r.tag == "number" &&
|
|
331
|
+
if (typeof r.tag == "number" && v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
|
|
332
332
|
return r.displayName || r.name || null;
|
|
333
333
|
if (typeof r == "string")
|
|
334
334
|
return r;
|
|
@@ -355,14 +355,14 @@ function ss() {
|
|
|
355
355
|
var N = r;
|
|
356
356
|
return L(N._context) + ".Provider";
|
|
357
357
|
case d:
|
|
358
|
-
return
|
|
358
|
+
return P(r, r.render, "ForwardRef");
|
|
359
359
|
case u:
|
|
360
|
-
var
|
|
361
|
-
return
|
|
360
|
+
var S = r.displayName || null;
|
|
361
|
+
return S !== null ? S : F(r.type) || "Memo";
|
|
362
362
|
case f: {
|
|
363
|
-
var
|
|
363
|
+
var I = r, H = I._payload, A = I._init;
|
|
364
364
|
try {
|
|
365
|
-
return
|
|
365
|
+
return F(A(H));
|
|
366
366
|
} catch {
|
|
367
367
|
return null;
|
|
368
368
|
}
|
|
@@ -370,14 +370,14 @@ function ss() {
|
|
|
370
370
|
}
|
|
371
371
|
return null;
|
|
372
372
|
}
|
|
373
|
-
var
|
|
373
|
+
var Q = Object.assign, U = 0, ee, Z, ne, le, T, O, oe;
|
|
374
374
|
function de() {
|
|
375
375
|
}
|
|
376
376
|
de.__reactDisabledLog = !0;
|
|
377
377
|
function ce() {
|
|
378
378
|
{
|
|
379
|
-
if (
|
|
380
|
-
|
|
379
|
+
if (U === 0) {
|
|
380
|
+
ee = console.log, Z = console.info, ne = console.warn, le = console.error, T = console.group, O = console.groupCollapsed, oe = console.groupEnd;
|
|
381
381
|
var r = {
|
|
382
382
|
configurable: !0,
|
|
383
383
|
enumerable: !0,
|
|
@@ -394,42 +394,42 @@ function ss() {
|
|
|
394
394
|
groupEnd: r
|
|
395
395
|
});
|
|
396
396
|
}
|
|
397
|
-
|
|
397
|
+
U++;
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
function xe() {
|
|
401
401
|
{
|
|
402
|
-
if (
|
|
402
|
+
if (U--, U === 0) {
|
|
403
403
|
var r = {
|
|
404
404
|
configurable: !0,
|
|
405
405
|
enumerable: !0,
|
|
406
406
|
writable: !0
|
|
407
407
|
};
|
|
408
408
|
Object.defineProperties(console, {
|
|
409
|
-
log:
|
|
410
|
-
value:
|
|
409
|
+
log: Q({}, r, {
|
|
410
|
+
value: ee
|
|
411
411
|
}),
|
|
412
|
-
info:
|
|
412
|
+
info: Q({}, r, {
|
|
413
413
|
value: Z
|
|
414
414
|
}),
|
|
415
|
-
warn:
|
|
416
|
-
value:
|
|
415
|
+
warn: Q({}, r, {
|
|
416
|
+
value: ne
|
|
417
417
|
}),
|
|
418
|
-
error:
|
|
418
|
+
error: Q({}, r, {
|
|
419
419
|
value: le
|
|
420
420
|
}),
|
|
421
|
-
group:
|
|
421
|
+
group: Q({}, r, {
|
|
422
422
|
value: T
|
|
423
423
|
}),
|
|
424
|
-
groupCollapsed:
|
|
424
|
+
groupCollapsed: Q({}, r, {
|
|
425
425
|
value: O
|
|
426
426
|
}),
|
|
427
|
-
groupEnd:
|
|
427
|
+
groupEnd: Q({}, r, {
|
|
428
428
|
value: oe
|
|
429
429
|
})
|
|
430
430
|
});
|
|
431
431
|
}
|
|
432
|
-
|
|
432
|
+
U < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
433
433
|
}
|
|
434
434
|
}
|
|
435
435
|
var be = j.ReactCurrentDispatcher, ge;
|
|
@@ -438,9 +438,9 @@ function ss() {
|
|
|
438
438
|
if (ge === void 0)
|
|
439
439
|
try {
|
|
440
440
|
throw Error();
|
|
441
|
-
} catch (
|
|
442
|
-
var
|
|
443
|
-
ge =
|
|
441
|
+
} catch (I) {
|
|
442
|
+
var S = I.stack.trim().match(/\n( *(at )?)/);
|
|
443
|
+
ge = S && S[1] || "";
|
|
444
444
|
}
|
|
445
445
|
return `
|
|
446
446
|
` + ge + r;
|
|
@@ -459,12 +459,12 @@ function ss() {
|
|
|
459
459
|
if (N !== void 0)
|
|
460
460
|
return N;
|
|
461
461
|
}
|
|
462
|
-
var
|
|
462
|
+
var S;
|
|
463
463
|
Se = !0;
|
|
464
|
-
var
|
|
464
|
+
var I = Error.prepareStackTrace;
|
|
465
465
|
Error.prepareStackTrace = void 0;
|
|
466
|
-
var
|
|
467
|
-
|
|
466
|
+
var H;
|
|
467
|
+
H = be.current, be.current = null, ce();
|
|
468
468
|
try {
|
|
469
469
|
if (h) {
|
|
470
470
|
var A = function() {
|
|
@@ -478,14 +478,14 @@ function ss() {
|
|
|
478
478
|
try {
|
|
479
479
|
Reflect.construct(A, []);
|
|
480
480
|
} catch (se) {
|
|
481
|
-
|
|
481
|
+
S = se;
|
|
482
482
|
}
|
|
483
483
|
Reflect.construct(r, [], A);
|
|
484
484
|
} else {
|
|
485
485
|
try {
|
|
486
486
|
A.call();
|
|
487
487
|
} catch (se) {
|
|
488
|
-
|
|
488
|
+
S = se;
|
|
489
489
|
}
|
|
490
490
|
r.call(A.prototype);
|
|
491
491
|
}
|
|
@@ -493,21 +493,21 @@ function ss() {
|
|
|
493
493
|
try {
|
|
494
494
|
throw Error();
|
|
495
495
|
} catch (se) {
|
|
496
|
-
|
|
496
|
+
S = se;
|
|
497
497
|
}
|
|
498
498
|
r();
|
|
499
499
|
}
|
|
500
500
|
} catch (se) {
|
|
501
|
-
if (se &&
|
|
501
|
+
if (se && S && typeof se.stack == "string") {
|
|
502
502
|
for (var R = se.stack.split(`
|
|
503
|
-
`),
|
|
504
|
-
`), K = R.length - 1, Y =
|
|
503
|
+
`), te = S.stack.split(`
|
|
504
|
+
`), K = R.length - 1, Y = te.length - 1; K >= 1 && Y >= 0 && R[K] !== te[Y]; )
|
|
505
505
|
Y--;
|
|
506
506
|
for (; K >= 1 && Y >= 0; K--, Y--)
|
|
507
|
-
if (R[K] !==
|
|
507
|
+
if (R[K] !== te[Y]) {
|
|
508
508
|
if (K !== 1 || Y !== 1)
|
|
509
509
|
do
|
|
510
|
-
if (K--, Y--, Y < 0 || R[K] !==
|
|
510
|
+
if (K--, Y--, Y < 0 || R[K] !== te[Y]) {
|
|
511
511
|
var ie = `
|
|
512
512
|
` + R[K].replace(" at new ", " at ");
|
|
513
513
|
return r.displayName && ie.includes("<anonymous>") && (ie = ie.replace("<anonymous>", r.displayName)), typeof r == "function" && fe.set(r, ie), ie;
|
|
@@ -517,7 +517,7 @@ function ss() {
|
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
519
|
} finally {
|
|
520
|
-
Se = !1, be.current =
|
|
520
|
+
Se = !1, be.current = H, xe(), Error.prepareStackTrace = I;
|
|
521
521
|
}
|
|
522
522
|
var we = r ? r.displayName || r.name : "", pe = we ? je(we) : "";
|
|
523
523
|
return typeof r == "function" && fe.set(r, pe), pe;
|
|
@@ -549,9 +549,9 @@ function ss() {
|
|
|
549
549
|
case u:
|
|
550
550
|
return ve(r.type, h, N);
|
|
551
551
|
case f: {
|
|
552
|
-
var
|
|
552
|
+
var S = r, I = S._payload, H = S._init;
|
|
553
553
|
try {
|
|
554
|
-
return ve(
|
|
554
|
+
return ve(H(I), h, N);
|
|
555
555
|
} catch {
|
|
556
556
|
}
|
|
557
557
|
}
|
|
@@ -566,22 +566,22 @@ function ss() {
|
|
|
566
566
|
} else
|
|
567
567
|
De.setExtraStackFrame(null);
|
|
568
568
|
}
|
|
569
|
-
function
|
|
569
|
+
function w(r, h, N, S, I) {
|
|
570
570
|
{
|
|
571
|
-
var
|
|
571
|
+
var H = Function.call.bind(me);
|
|
572
572
|
for (var A in r)
|
|
573
|
-
if (
|
|
573
|
+
if (H(r, A)) {
|
|
574
574
|
var R = void 0;
|
|
575
575
|
try {
|
|
576
576
|
if (typeof r[A] != "function") {
|
|
577
|
-
var
|
|
578
|
-
throw
|
|
577
|
+
var te = Error((S || "React class") + ": " + N + " type `" + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[A] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
578
|
+
throw te.name = "Invariant Violation", te;
|
|
579
579
|
}
|
|
580
|
-
R = r[A](h, A,
|
|
580
|
+
R = r[A](h, A, S, N, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
581
581
|
} catch (K) {
|
|
582
582
|
R = K;
|
|
583
583
|
}
|
|
584
|
-
R && !(R instanceof Error) && (ye(
|
|
584
|
+
R && !(R instanceof Error) && (ye(I), v("%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).", S || "React class", N, A, typeof R), ye(null)), R instanceof Error && !(R.message in ze) && (ze[R.message] = !0, ye(I), v("Failed %s type: %s", N, R.message), ye(null));
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
587
|
}
|
|
@@ -607,7 +607,7 @@ function ss() {
|
|
|
607
607
|
}
|
|
608
608
|
function ut(r) {
|
|
609
609
|
if (ka(r))
|
|
610
|
-
return
|
|
610
|
+
return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", La(r)), dt(r);
|
|
611
611
|
}
|
|
612
612
|
var xt = j.ReactCurrentOwner, _a = {
|
|
613
613
|
key: !0,
|
|
@@ -637,7 +637,7 @@ function ss() {
|
|
|
637
637
|
function Ra(r, h) {
|
|
638
638
|
{
|
|
639
639
|
var N = function() {
|
|
640
|
-
ft || (ft = !0,
|
|
640
|
+
ft || (ft = !0, v("%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)", h));
|
|
641
641
|
};
|
|
642
642
|
N.isReactWarning = !0, Object.defineProperty(r, "key", {
|
|
643
643
|
get: N,
|
|
@@ -648,7 +648,7 @@ function ss() {
|
|
|
648
648
|
function Ea(r, h) {
|
|
649
649
|
{
|
|
650
650
|
var N = function() {
|
|
651
|
-
mt || (mt = !0,
|
|
651
|
+
mt || (mt = !0, v("%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)", h));
|
|
652
652
|
};
|
|
653
653
|
N.isReactWarning = !0, Object.defineProperty(r, "ref", {
|
|
654
654
|
get: N,
|
|
@@ -656,7 +656,7 @@ function ss() {
|
|
|
656
656
|
});
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
|
-
var Aa = function(r, h, N,
|
|
659
|
+
var Aa = function(r, h, N, S, I, H, A) {
|
|
660
660
|
var R = {
|
|
661
661
|
// This tag allows us to uniquely identify this as a React Element
|
|
662
662
|
$$typeof: a,
|
|
@@ -666,7 +666,7 @@ function ss() {
|
|
|
666
666
|
ref: N,
|
|
667
667
|
props: A,
|
|
668
668
|
// Record the component responsible for creating this element.
|
|
669
|
-
_owner:
|
|
669
|
+
_owner: H
|
|
670
670
|
};
|
|
671
671
|
return R._store = {}, Object.defineProperty(R._store, "validated", {
|
|
672
672
|
configurable: !1,
|
|
@@ -677,30 +677,30 @@ function ss() {
|
|
|
677
677
|
configurable: !1,
|
|
678
678
|
enumerable: !1,
|
|
679
679
|
writable: !1,
|
|
680
|
-
value:
|
|
680
|
+
value: S
|
|
681
681
|
}), Object.defineProperty(R, "_source", {
|
|
682
682
|
configurable: !1,
|
|
683
683
|
enumerable: !1,
|
|
684
684
|
writable: !1,
|
|
685
|
-
value:
|
|
685
|
+
value: I
|
|
686
686
|
}), Object.freeze && (Object.freeze(R.props), Object.freeze(R)), R;
|
|
687
687
|
};
|
|
688
|
-
function Oa(r, h, N,
|
|
688
|
+
function Oa(r, h, N, S, I) {
|
|
689
689
|
{
|
|
690
|
-
var
|
|
691
|
-
N !== void 0 && (ut(N), R = "" + N), Sa(h) && (ut(h.key), R = "" + h.key), Pa(h) && (
|
|
692
|
-
for (
|
|
693
|
-
me.call(h,
|
|
690
|
+
var H, A = {}, R = null, te = null;
|
|
691
|
+
N !== void 0 && (ut(N), R = "" + N), Sa(h) && (ut(h.key), R = "" + h.key), Pa(h) && (te = h.ref, Ta(h, I));
|
|
692
|
+
for (H in h)
|
|
693
|
+
me.call(h, H) && !_a.hasOwnProperty(H) && (A[H] = h[H]);
|
|
694
694
|
if (r && r.defaultProps) {
|
|
695
695
|
var K = r.defaultProps;
|
|
696
|
-
for (
|
|
697
|
-
A[
|
|
696
|
+
for (H in K)
|
|
697
|
+
A[H] === void 0 && (A[H] = K[H]);
|
|
698
698
|
}
|
|
699
|
-
if (R ||
|
|
699
|
+
if (R || te) {
|
|
700
700
|
var Y = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
|
|
701
|
-
R && Ra(A, Y),
|
|
701
|
+
R && Ra(A, Y), te && Ea(A, Y);
|
|
702
702
|
}
|
|
703
|
-
return Aa(r, R,
|
|
703
|
+
return Aa(r, R, te, I, S, xt.current, A);
|
|
704
704
|
}
|
|
705
705
|
}
|
|
706
706
|
var Ye = j.ReactCurrentOwner, pt = j.ReactDebugCurrentFrame;
|
|
@@ -719,7 +719,7 @@ function ss() {
|
|
|
719
719
|
function ht() {
|
|
720
720
|
{
|
|
721
721
|
if (Ye.current) {
|
|
722
|
-
var r =
|
|
722
|
+
var r = F(Ye.current.type);
|
|
723
723
|
if (r)
|
|
724
724
|
return `
|
|
725
725
|
|
|
@@ -753,8 +753,8 @@ Check the top-level render call using <` + N + ">.");
|
|
|
753
753
|
if (bt[N])
|
|
754
754
|
return;
|
|
755
755
|
bt[N] = !0;
|
|
756
|
-
var
|
|
757
|
-
r && r._owner && r._owner !== Ye.current && (
|
|
756
|
+
var S = "";
|
|
757
|
+
r && r._owner && r._owner !== Ye.current && (S = " It was passed a child from " + F(r._owner.type) + "."), Ne(r), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', N, S), Ne(null);
|
|
758
758
|
}
|
|
759
759
|
}
|
|
760
760
|
function jt(r, h) {
|
|
@@ -763,15 +763,15 @@ Check the top-level render call using <` + N + ">.");
|
|
|
763
763
|
return;
|
|
764
764
|
if (ae(r))
|
|
765
765
|
for (var N = 0; N < r.length; N++) {
|
|
766
|
-
var
|
|
767
|
-
Xe(
|
|
766
|
+
var S = r[N];
|
|
767
|
+
Xe(S) && gt(S, h);
|
|
768
768
|
}
|
|
769
769
|
else if (Xe(r))
|
|
770
770
|
r._store && (r._store.validated = !0);
|
|
771
771
|
else if (r) {
|
|
772
|
-
var
|
|
773
|
-
if (typeof
|
|
774
|
-
for (var
|
|
772
|
+
var I = y(r);
|
|
773
|
+
if (typeof I == "function" && I !== r.entries)
|
|
774
|
+
for (var H = I.call(r), A; !(A = H.next()).done; )
|
|
775
775
|
Xe(A.value) && gt(A.value, h);
|
|
776
776
|
}
|
|
777
777
|
}
|
|
@@ -791,63 +791,63 @@ Check the top-level render call using <` + N + ">.");
|
|
|
791
791
|
else
|
|
792
792
|
return;
|
|
793
793
|
if (N) {
|
|
794
|
-
var
|
|
795
|
-
|
|
794
|
+
var S = F(h);
|
|
795
|
+
w(N, r.props, "prop", S, r);
|
|
796
796
|
} else if (h.PropTypes !== void 0 && !qe) {
|
|
797
797
|
qe = !0;
|
|
798
|
-
var
|
|
799
|
-
|
|
798
|
+
var I = F(h);
|
|
799
|
+
v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", I || "Unknown");
|
|
800
800
|
}
|
|
801
|
-
typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved &&
|
|
801
|
+
typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
802
802
|
}
|
|
803
803
|
}
|
|
804
804
|
function za(r) {
|
|
805
805
|
{
|
|
806
806
|
for (var h = Object.keys(r.props), N = 0; N < h.length; N++) {
|
|
807
|
-
var
|
|
808
|
-
if (
|
|
809
|
-
Ne(r),
|
|
807
|
+
var S = h[N];
|
|
808
|
+
if (S !== "children" && S !== "key") {
|
|
809
|
+
Ne(r), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", S), Ne(null);
|
|
810
810
|
break;
|
|
811
811
|
}
|
|
812
812
|
}
|
|
813
|
-
r.ref !== null && (Ne(r),
|
|
813
|
+
r.ref !== null && (Ne(r), v("Invalid attribute `ref` supplied to `React.Fragment`."), Ne(null));
|
|
814
814
|
}
|
|
815
815
|
}
|
|
816
816
|
var vt = {};
|
|
817
|
-
function yt(r, h, N,
|
|
817
|
+
function yt(r, h, N, S, I, H) {
|
|
818
818
|
{
|
|
819
|
-
var A =
|
|
819
|
+
var A = $(r);
|
|
820
820
|
if (!A) {
|
|
821
821
|
var R = "";
|
|
822
822
|
(r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (R += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
823
|
-
var
|
|
824
|
-
|
|
823
|
+
var te = Ma();
|
|
824
|
+
te ? R += te : R += ht();
|
|
825
825
|
var K;
|
|
826
|
-
r === null ? K = "null" : ae(r) ? K = "array" : r !== void 0 && r.$$typeof === a ? (K = "<" + (
|
|
826
|
+
r === null ? K = "null" : ae(r) ? K = "array" : r !== void 0 && r.$$typeof === a ? (K = "<" + (F(r.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : K = typeof r, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", K, R);
|
|
827
827
|
}
|
|
828
|
-
var Y = Oa(r, h, N,
|
|
828
|
+
var Y = Oa(r, h, N, I, H);
|
|
829
829
|
if (Y == null)
|
|
830
830
|
return Y;
|
|
831
831
|
if (A) {
|
|
832
832
|
var ie = h.children;
|
|
833
833
|
if (ie !== void 0)
|
|
834
|
-
if (
|
|
834
|
+
if (S)
|
|
835
835
|
if (ae(ie)) {
|
|
836
836
|
for (var we = 0; we < ie.length; we++)
|
|
837
837
|
jt(ie[we], r);
|
|
838
838
|
Object.freeze && Object.freeze(ie);
|
|
839
839
|
} else
|
|
840
|
-
|
|
840
|
+
v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
841
841
|
else
|
|
842
842
|
jt(ie, r);
|
|
843
843
|
}
|
|
844
844
|
if (me.call(h, "key")) {
|
|
845
|
-
var pe =
|
|
845
|
+
var pe = F(r), se = Object.keys(h).filter(function(Wa) {
|
|
846
846
|
return Wa !== "key";
|
|
847
847
|
}), Qe = se.length > 0 ? "{key: someKey, " + se.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
848
848
|
if (!vt[pe + Qe]) {
|
|
849
849
|
var $a = se.length > 0 ? "{" + se.join(": ..., ") + ": ...}" : "{}";
|
|
850
|
-
|
|
850
|
+
v(`A props object containing a "key" prop is being spread into JSX:
|
|
851
851
|
let props = %s;
|
|
852
852
|
<%s {...props} />
|
|
853
853
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -1209,12 +1209,14 @@ function qn({
|
|
|
1209
1209
|
removeWarningMessagePrefix: x,
|
|
1210
1210
|
removeWarningMessageSuffix: u = "?",
|
|
1211
1211
|
removeWarningConfirmLabel: f,
|
|
1212
|
-
removeWarningCancelLabel: b
|
|
1212
|
+
removeWarningCancelLabel: b,
|
|
1213
|
+
onRemoveWarningShown: p,
|
|
1214
|
+
onRemoveWarningCancel: C
|
|
1213
1215
|
}) {
|
|
1214
|
-
const [
|
|
1216
|
+
const [y, j] = V(null);
|
|
1215
1217
|
if (!t)
|
|
1216
1218
|
return null;
|
|
1217
|
-
const v =
|
|
1219
|
+
const v = y != null ? l[y] : null;
|
|
1218
1220
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1219
1221
|
/* @__PURE__ */ e.jsxs("div", { className: "fixed inset-0 z-50 mx-auto flex w-full max-w-md items-end justify-center", children: [
|
|
1220
1222
|
/* @__PURE__ */ e.jsx(
|
|
@@ -1252,7 +1254,7 @@ function qn({
|
|
|
1252
1254
|
}
|
|
1253
1255
|
),
|
|
1254
1256
|
/* @__PURE__ */ e.jsx("p", { className: "w-full text-center text-base font-semibold leading-[22px] text-gray-700", children: n }),
|
|
1255
|
-
/* @__PURE__ */ e.jsx("div", { className: "flex w-full flex-col items-start gap-3 rounded-lg bg-[#f7f8f9] px-2 py-4", children: l.map((
|
|
1257
|
+
/* @__PURE__ */ e.jsx("div", { className: "flex w-full flex-col items-start gap-3 rounded-lg bg-[#f7f8f9] px-2 py-4", children: l.map((_, M) => /* @__PURE__ */ e.jsxs(
|
|
1256
1258
|
"div",
|
|
1257
1259
|
{
|
|
1258
1260
|
className: "flex w-full items-center justify-between gap-3",
|
|
@@ -1260,19 +1262,21 @@ function qn({
|
|
|
1260
1262
|
/* @__PURE__ */ e.jsxs(
|
|
1261
1263
|
"p",
|
|
1262
1264
|
{
|
|
1263
|
-
className: `min-w-0 flex-1 text-base font-semibold leading-[22px] ${
|
|
1265
|
+
className: `min-w-0 flex-1 text-base font-semibold leading-[22px] ${_.isActive ? "text-[#22272b]" : "text-[#22272b]/50"}`,
|
|
1264
1266
|
children: [
|
|
1265
|
-
|
|
1267
|
+
_.name,
|
|
1266
1268
|
" ",
|
|
1267
|
-
/* @__PURE__ */ e.jsx("span", { className: "text-xs font-medium leading-4 text-gray-500", children:
|
|
1269
|
+
/* @__PURE__ */ e.jsx("span", { className: "text-xs font-medium leading-4 text-gray-500", children: _.tithi })
|
|
1268
1270
|
]
|
|
1269
1271
|
}
|
|
1270
1272
|
),
|
|
1271
|
-
|
|
1273
|
+
_.isActive ? /* @__PURE__ */ e.jsxs(
|
|
1272
1274
|
"button",
|
|
1273
1275
|
{
|
|
1274
1276
|
type: "button",
|
|
1275
|
-
onClick: () =>
|
|
1277
|
+
onClick: () => {
|
|
1278
|
+
j(M), p?.(_);
|
|
1279
|
+
},
|
|
1276
1280
|
className: "flex shrink-0 items-center gap-1 border-0 bg-transparent p-0 text-xs font-semibold leading-4 text-gray-500 underline",
|
|
1277
1281
|
children: [
|
|
1278
1282
|
g,
|
|
@@ -1283,7 +1287,7 @@ function qn({
|
|
|
1283
1287
|
"button",
|
|
1284
1288
|
{
|
|
1285
1289
|
type: "button",
|
|
1286
|
-
onClick: () => i(
|
|
1290
|
+
onClick: () => i(M),
|
|
1287
1291
|
className: "flex shrink-0 items-center gap-1 border-0 bg-transparent p-0 text-xs font-semibold leading-4 text-[#159169] underline",
|
|
1288
1292
|
children: [
|
|
1289
1293
|
d,
|
|
@@ -1293,7 +1297,7 @@ function qn({
|
|
|
1293
1297
|
)
|
|
1294
1298
|
]
|
|
1295
1299
|
},
|
|
1296
|
-
|
|
1300
|
+
_.id
|
|
1297
1301
|
)) }),
|
|
1298
1302
|
/* @__PURE__ */ e.jsx(
|
|
1299
1303
|
vs,
|
|
@@ -1318,9 +1322,11 @@ function qn({
|
|
|
1318
1322
|
confirmLabel: f,
|
|
1319
1323
|
cancelLabel: b,
|
|
1320
1324
|
onConfirm: () => {
|
|
1321
|
-
|
|
1325
|
+
y != null && i(y), j(null);
|
|
1322
1326
|
},
|
|
1323
|
-
onCancel: () =>
|
|
1327
|
+
onCancel: () => {
|
|
1328
|
+
v && C?.(v), j(null);
|
|
1329
|
+
}
|
|
1324
1330
|
}
|
|
1325
1331
|
)
|
|
1326
1332
|
] });
|
|
@@ -1674,7 +1680,7 @@ function al({
|
|
|
1674
1680
|
dateLabel: l,
|
|
1675
1681
|
locationLabel: i
|
|
1676
1682
|
}) {
|
|
1677
|
-
const [c, o] =
|
|
1683
|
+
const [c, o] = V(0), d = rt(null), g = () => {
|
|
1678
1684
|
const x = d.current;
|
|
1679
1685
|
if (!x || x.children.length === 0)
|
|
1680
1686
|
return;
|
|
@@ -1783,7 +1789,7 @@ function rl({
|
|
|
1783
1789
|
imageAlt: s = "",
|
|
1784
1790
|
paragraphs: n
|
|
1785
1791
|
}) {
|
|
1786
|
-
const { t: l } = _e(), [i, c] =
|
|
1792
|
+
const { t: l } = _e(), [i, c] = V(!1);
|
|
1787
1793
|
return /* @__PURE__ */ e.jsxs("section", { className: "flex w-full flex-col items-start bg-white px-4 py-4", children: [
|
|
1788
1794
|
/* @__PURE__ */ e.jsx("p", { className: "w-full text-lg font-bold leading-6 text-[#242424]", children: t }),
|
|
1789
1795
|
/* @__PURE__ */ e.jsxs("div", { className: "flex w-full flex-col items-start pt-4", children: [
|
|
@@ -1861,7 +1867,7 @@ function nl({
|
|
|
1861
1867
|
seeMoreLabel: l,
|
|
1862
1868
|
onSeeMoreClick: i
|
|
1863
1869
|
}) {
|
|
1864
|
-
const [c, o] =
|
|
1870
|
+
const [c, o] = V(!1), d = c ? s : s.slice(0, Mt), [g, x] = V(0), u = rt(null), f = () => {
|
|
1865
1871
|
const b = u.current;
|
|
1866
1872
|
if (!b || b.children.length === 0)
|
|
1867
1873
|
return;
|
|
@@ -1958,13 +1964,13 @@ function nl({
|
|
|
1958
1964
|
] })
|
|
1959
1965
|
] }),
|
|
1960
1966
|
/* @__PURE__ */ e.jsxs("div", { className: "flex w-full flex-col items-start gap-2 px-4 pt-3", children: [
|
|
1961
|
-
/* @__PURE__ */ e.jsx("div", { className: "flex items-center gap-2", children: Array.from({ length: b.stars }).map((
|
|
1967
|
+
/* @__PURE__ */ e.jsx("div", { className: "flex items-center gap-2", children: Array.from({ length: b.stars }).map((C, y) => /* @__PURE__ */ e.jsx(
|
|
1962
1968
|
it,
|
|
1963
1969
|
{
|
|
1964
1970
|
"aria-hidden": !0,
|
|
1965
1971
|
className: "size-5 text-[#F06A16]"
|
|
1966
1972
|
},
|
|
1967
|
-
|
|
1973
|
+
y
|
|
1968
1974
|
)) }),
|
|
1969
1975
|
/* @__PURE__ */ e.jsx("p", { className: "w-full text-sm font-normal leading-5 text-gray-500", children: b.text })
|
|
1970
1976
|
] }),
|
|
@@ -2134,7 +2140,7 @@ const il = ({
|
|
|
2134
2140
|
showTitleAccent: g = !1,
|
|
2135
2141
|
titleClassName: x
|
|
2136
2142
|
}) => {
|
|
2137
|
-
const [u, f] =
|
|
2143
|
+
const [u, f] = V(l), [b, p] = V(o), C = n && a.length > s, y = C && !u ? a.slice(0, s) : a;
|
|
2138
2144
|
return /* @__PURE__ */ e.jsxs(
|
|
2139
2145
|
"div",
|
|
2140
2146
|
{
|
|
@@ -2147,8 +2153,8 @@ const il = ({
|
|
|
2147
2153
|
/* @__PURE__ */ e.jsx("span", { "aria-hidden": !0, className: "block h-5 w-1 shrink-0 rounded-full bg-[#f75e22]" }),
|
|
2148
2154
|
t
|
|
2149
2155
|
] }) : /* @__PURE__ */ e.jsx("h2", { className: m("w-full text-base font-bold text-[#1d2125]", x), children: t }),
|
|
2150
|
-
/* @__PURE__ */ e.jsx("div", { className: "flex w-full flex-col gap-3", children:
|
|
2151
|
-
const
|
|
2156
|
+
/* @__PURE__ */ e.jsx("div", { className: "flex w-full flex-col gap-3", children: y.map((j, v) => {
|
|
2157
|
+
const _ = b === v;
|
|
2152
2158
|
return /* @__PURE__ */ e.jsxs(
|
|
2153
2159
|
"div",
|
|
2154
2160
|
{
|
|
@@ -2160,19 +2166,22 @@ const il = ({
|
|
|
2160
2166
|
type: "button",
|
|
2161
2167
|
className: m(
|
|
2162
2168
|
"flex w-full items-center justify-between gap-2 p-3 text-left",
|
|
2163
|
-
|
|
2169
|
+
_ ? "bg-[#f7f8f9]" : "bg-white"
|
|
2164
2170
|
),
|
|
2165
|
-
onClick: () => p(
|
|
2166
|
-
"aria-expanded":
|
|
2167
|
-
"aria-controls": `faq-answer-${
|
|
2168
|
-
id: `faq-question-${
|
|
2171
|
+
onClick: () => p(_ ? -1 : v),
|
|
2172
|
+
"aria-expanded": _,
|
|
2173
|
+
"aria-controls": `faq-answer-${v}`,
|
|
2174
|
+
id: `faq-question-${v}`,
|
|
2169
2175
|
children: [
|
|
2170
2176
|
/* @__PURE__ */ e.jsx("span", { className: "flex-1 text-sm font-medium text-[#22272b]", children: j.question }),
|
|
2171
2177
|
/* @__PURE__ */ e.jsx(
|
|
2172
2178
|
Oe,
|
|
2173
2179
|
{
|
|
2174
2180
|
size: 24,
|
|
2175
|
-
className: m(
|
|
2181
|
+
className: m(
|
|
2182
|
+
"shrink-0 text-[#f75e22] transition-transform duration-200",
|
|
2183
|
+
_ ? "rotate-180" : ""
|
|
2184
|
+
),
|
|
2176
2185
|
"aria-hidden": !0
|
|
2177
2186
|
}
|
|
2178
2187
|
)
|
|
@@ -2182,20 +2191,20 @@ const il = ({
|
|
|
2182
2191
|
/* @__PURE__ */ e.jsx(
|
|
2183
2192
|
"div",
|
|
2184
2193
|
{
|
|
2185
|
-
id: `faq-answer-${
|
|
2194
|
+
id: `faq-answer-${v}`,
|
|
2186
2195
|
role: "region",
|
|
2187
|
-
"aria-labelledby": `faq-question-${
|
|
2188
|
-
hidden: !
|
|
2196
|
+
"aria-labelledby": `faq-question-${v}`,
|
|
2197
|
+
hidden: !_,
|
|
2189
2198
|
className: "bg-white p-3",
|
|
2190
2199
|
children: /* @__PURE__ */ e.jsx("p", { className: "text-sm text-[#374151]", children: j.answer })
|
|
2191
2200
|
}
|
|
2192
2201
|
)
|
|
2193
2202
|
]
|
|
2194
2203
|
},
|
|
2195
|
-
|
|
2204
|
+
v
|
|
2196
2205
|
);
|
|
2197
2206
|
}) }),
|
|
2198
|
-
|
|
2207
|
+
C && /* @__PURE__ */ e.jsx(
|
|
2199
2208
|
X,
|
|
2200
2209
|
{
|
|
2201
2210
|
variant: "secondary",
|
|
@@ -2229,14 +2238,14 @@ const il = ({
|
|
|
2229
2238
|
defaultOpenIndex: d = -1,
|
|
2230
2239
|
className: g = ""
|
|
2231
2240
|
}) => {
|
|
2232
|
-
const [x, u] =
|
|
2241
|
+
const [x, u] = V(i), [f, b] = V(d), p = l && s.length > n, C = p && !x ? s.slice(0, n) : s;
|
|
2233
2242
|
return /* @__PURE__ */ e.jsxs("div", { className: m("flex flex-col gap-3 bg-white px-4 py-6", g), children: [
|
|
2234
2243
|
/* @__PURE__ */ e.jsxs("h2", { className: "flex items-center gap-2 text-sm font-bold text-[#374151]", children: [
|
|
2235
2244
|
a && /* @__PURE__ */ e.jsx("span", { "aria-hidden": !0, className: "block h-[18px] w-[3px] shrink-0 bg-[#f75e22]" }),
|
|
2236
2245
|
t
|
|
2237
2246
|
] }),
|
|
2238
|
-
/* @__PURE__ */ e.jsx("div", { className: "flex w-full flex-col", children:
|
|
2239
|
-
const
|
|
2247
|
+
/* @__PURE__ */ e.jsx("div", { className: "flex w-full flex-col", children: C.map((y, j) => {
|
|
2248
|
+
const v = f === j, _ = v ? ks : Oe;
|
|
2240
2249
|
return /* @__PURE__ */ e.jsxs(
|
|
2241
2250
|
"div",
|
|
2242
2251
|
{
|
|
@@ -2247,13 +2256,13 @@ const il = ({
|
|
|
2247
2256
|
{
|
|
2248
2257
|
type: "button",
|
|
2249
2258
|
className: "flex w-full items-center justify-between gap-2 text-left",
|
|
2250
|
-
onClick: () => b(
|
|
2251
|
-
"aria-expanded":
|
|
2259
|
+
onClick: () => b(v ? -1 : j),
|
|
2260
|
+
"aria-expanded": v,
|
|
2252
2261
|
"aria-controls": `faq-accordion-answer-${j}`,
|
|
2253
2262
|
id: `faq-accordion-question-${j}`,
|
|
2254
2263
|
children: [
|
|
2255
|
-
/* @__PURE__ */ e.jsx("span", { className: "flex-1 text-sm font-semibold text-[#22272b]", children:
|
|
2256
|
-
/* @__PURE__ */ e.jsx(
|
|
2264
|
+
/* @__PURE__ */ e.jsx("span", { className: "flex-1 text-sm font-semibold text-[#22272b]", children: y.question }),
|
|
2265
|
+
/* @__PURE__ */ e.jsx(_, { size: 24, className: "shrink-0 text-[#f75e22]", "aria-hidden": !0 })
|
|
2257
2266
|
]
|
|
2258
2267
|
}
|
|
2259
2268
|
),
|
|
@@ -2263,8 +2272,8 @@ const il = ({
|
|
|
2263
2272
|
id: `faq-accordion-answer-${j}`,
|
|
2264
2273
|
role: "region",
|
|
2265
2274
|
"aria-labelledby": `faq-accordion-question-${j}`,
|
|
2266
|
-
hidden: !
|
|
2267
|
-
children: /* @__PURE__ */ e.jsx("p", { className: "mt-2 text-xs text-[#374151]", children:
|
|
2275
|
+
hidden: !v,
|
|
2276
|
+
children: /* @__PURE__ */ e.jsx("p", { className: "mt-2 text-xs text-[#374151]", children: y.answer })
|
|
2268
2277
|
}
|
|
2269
2278
|
)
|
|
2270
2279
|
]
|
|
@@ -2278,7 +2287,7 @@ const il = ({
|
|
|
2278
2287
|
variant: "secondary",
|
|
2279
2288
|
size: "lg",
|
|
2280
2289
|
className: "w-full",
|
|
2281
|
-
onClick: () => u((
|
|
2290
|
+
onClick: () => u((y) => !y),
|
|
2282
2291
|
"aria-expanded": x,
|
|
2283
2292
|
rightIcon: /* @__PURE__ */ e.jsx(
|
|
2284
2293
|
Oe,
|
|
@@ -2306,45 +2315,45 @@ const il = ({
|
|
|
2306
2315
|
autoPlay: g = !1,
|
|
2307
2316
|
onPlayToggle: x
|
|
2308
2317
|
}, u) => {
|
|
2309
|
-
const [f, b] = k.useState(!1), [p,
|
|
2310
|
-
}),
|
|
2318
|
+
const [f, b] = k.useState(!1), [p, C] = k.useState(!0), [y, j] = k.useState(!1), [v, _] = k.useState(0), [M, G] = k.useState(0), [B, z] = k.useState(!0), D = k.useRef(null), W = k.useRef(null), $ = k.useRef(() => {
|
|
2319
|
+
}), P = k.useRef(null);
|
|
2311
2320
|
k.useEffect(() => {
|
|
2312
2321
|
g && (b(!0), j(!1));
|
|
2313
2322
|
}, [g]);
|
|
2314
2323
|
const L = k.useCallback(() => {
|
|
2315
|
-
|
|
2324
|
+
P.current && clearTimeout(P.current), P.current = setTimeout(
|
|
2316
2325
|
() => z(!1),
|
|
2317
2326
|
1500
|
|
2318
2327
|
);
|
|
2319
2328
|
}, []);
|
|
2320
2329
|
k.useEffect(() => {
|
|
2321
2330
|
if (!f || !p) {
|
|
2322
|
-
|
|
2331
|
+
P.current && clearTimeout(P.current), z(!0);
|
|
2323
2332
|
return;
|
|
2324
2333
|
}
|
|
2325
2334
|
return L(), () => {
|
|
2326
|
-
|
|
2335
|
+
P.current && clearTimeout(P.current);
|
|
2327
2336
|
};
|
|
2328
2337
|
}, [f, p, L]);
|
|
2329
|
-
const
|
|
2338
|
+
const F = i !== void 0 || c !== void 0, U = m(
|
|
2330
2339
|
"block w-full",
|
|
2331
|
-
(
|
|
2332
|
-
),
|
|
2340
|
+
(F || !F && o !== void 0 || d) && "h-full object-cover object-center"
|
|
2341
|
+
), ee = k.useCallback(
|
|
2333
2342
|
(T) => {
|
|
2334
2343
|
D.current = T, typeof u == "function" ? u(T) : u && (u.current = T);
|
|
2335
2344
|
},
|
|
2336
2345
|
[u]
|
|
2337
2346
|
), Z = k.useCallback(() => {
|
|
2338
|
-
if (!l || !
|
|
2347
|
+
if (!l || !W.current)
|
|
2339
2348
|
return;
|
|
2340
|
-
const T =
|
|
2349
|
+
const T = W.current, O = document.fullscreenElement;
|
|
2341
2350
|
O && D.current?.contains(O) && document.exitFullscreen?.().catch(() => {
|
|
2342
2351
|
}), document.pictureInPictureElement === T && document.exitPictureInPicture?.().catch(() => {
|
|
2343
2352
|
}), T.webkitSetPresentationMode?.("inline"), T.webkitDisplayingFullscreen && T.webkitExitFullscreen?.();
|
|
2344
|
-
}, [l]),
|
|
2353
|
+
}, [l]), ne = k.useCallback(
|
|
2345
2354
|
(T) => {
|
|
2346
|
-
if (
|
|
2347
|
-
},
|
|
2355
|
+
if ($.current(), $.current = () => {
|
|
2356
|
+
}, W.current = T, !l || !T)
|
|
2348
2357
|
return;
|
|
2349
2358
|
const O = T;
|
|
2350
2359
|
O.playsInline = !0, O.disablePictureInPicture = !0, O.disableRemotePlayback = !0, O.setAttribute("playsinline", ""), O.setAttribute("webkit-playsinline", "true"), O.setAttribute("x5-playsinline", "true"), O.setAttribute("x5-video-player-type", "h5-page"), O.setAttribute("x5-video-player-fullscreen", "false"), O.setAttribute(
|
|
@@ -2353,7 +2362,7 @@ const il = ({
|
|
|
2353
2362
|
), O.addEventListener(
|
|
2354
2363
|
"webkitbeginfullscreen",
|
|
2355
2364
|
Z
|
|
2356
|
-
), document.addEventListener("fullscreenchange", Z),
|
|
2365
|
+
), document.addEventListener("fullscreenchange", Z), $.current = () => {
|
|
2357
2366
|
O.removeEventListener(
|
|
2358
2367
|
"webkitbeginfullscreen",
|
|
2359
2368
|
Z
|
|
@@ -2364,7 +2373,7 @@ const il = ({
|
|
|
2364
2373
|
);
|
|
2365
2374
|
k.useEffect(
|
|
2366
2375
|
() => () => {
|
|
2367
|
-
|
|
2376
|
+
$.current();
|
|
2368
2377
|
},
|
|
2369
2378
|
[]
|
|
2370
2379
|
), k.useEffect(() => {
|
|
@@ -2373,7 +2382,7 @@ const il = ({
|
|
|
2373
2382
|
if (!T || typeof IntersectionObserver > "u") return;
|
|
2374
2383
|
const O = new IntersectionObserver(
|
|
2375
2384
|
([oe]) => {
|
|
2376
|
-
oe.isIntersecting ||
|
|
2385
|
+
oe.isIntersecting || C(!1);
|
|
2377
2386
|
},
|
|
2378
2387
|
{ threshold: 0 }
|
|
2379
2388
|
);
|
|
@@ -2381,30 +2390,30 @@ const il = ({
|
|
|
2381
2390
|
}, [f]);
|
|
2382
2391
|
const le = (T) => {
|
|
2383
2392
|
const O = Number(T.target.value);
|
|
2384
|
-
|
|
2393
|
+
_(O), W.current && (W.current.currentTime = O);
|
|
2385
2394
|
};
|
|
2386
2395
|
return /* @__PURE__ */ e.jsx(
|
|
2387
2396
|
"div",
|
|
2388
2397
|
{
|
|
2389
|
-
ref:
|
|
2390
|
-
style:
|
|
2398
|
+
ref: ee,
|
|
2399
|
+
style: F ? { width: i, height: c } : { aspectRatio: o },
|
|
2391
2400
|
className: m(
|
|
2392
2401
|
"relative w-full overflow-hidden",
|
|
2393
2402
|
n && "rounded-2xl",
|
|
2394
2403
|
s
|
|
2395
2404
|
),
|
|
2396
2405
|
onClick: () => {
|
|
2397
|
-
f && !
|
|
2406
|
+
f && !B && (z(!0), p && L());
|
|
2398
2407
|
},
|
|
2399
2408
|
children: f ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2400
2409
|
/* @__PURE__ */ e.jsx(
|
|
2401
2410
|
Xa,
|
|
2402
2411
|
{
|
|
2403
|
-
ref:
|
|
2412
|
+
ref: ne,
|
|
2404
2413
|
src: t,
|
|
2405
2414
|
poster: a,
|
|
2406
2415
|
playing: p,
|
|
2407
|
-
muted:
|
|
2416
|
+
muted: y,
|
|
2408
2417
|
controls: !1,
|
|
2409
2418
|
pip: !1,
|
|
2410
2419
|
playsInline: !0,
|
|
@@ -2421,14 +2430,14 @@ const il = ({
|
|
|
2421
2430
|
autoPlay: g,
|
|
2422
2431
|
width: i,
|
|
2423
2432
|
height: c,
|
|
2424
|
-
className:
|
|
2425
|
-
onTimeUpdate: (T) =>
|
|
2426
|
-
onDurationChange: (T) =>
|
|
2427
|
-
onPause: () =>
|
|
2428
|
-
onEnded: () =>
|
|
2433
|
+
className: U,
|
|
2434
|
+
onTimeUpdate: (T) => _(T.currentTarget.currentTime),
|
|
2435
|
+
onDurationChange: (T) => G(T.currentTarget.duration),
|
|
2436
|
+
onPause: () => C(!1),
|
|
2437
|
+
onEnded: () => C(!1)
|
|
2429
2438
|
}
|
|
2430
2439
|
),
|
|
2431
|
-
|
|
2440
|
+
B && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2432
2441
|
/* @__PURE__ */ e.jsx(
|
|
2433
2442
|
X,
|
|
2434
2443
|
{
|
|
@@ -2437,7 +2446,7 @@ const il = ({
|
|
|
2437
2446
|
size: "lg",
|
|
2438
2447
|
"aria-label": p ? "Pause" : "Play",
|
|
2439
2448
|
className: "absolute inset-0 m-auto border border-white/20 bg-black/40 text-white! backdrop-blur-sm hover:bg-black/50",
|
|
2440
|
-
onClick: () =>
|
|
2449
|
+
onClick: () => C((T) => (x?.(!T), !T)),
|
|
2441
2450
|
children: p ? /* @__PURE__ */ e.jsx(er, { size: 16 }) : /* @__PURE__ */ e.jsx(
|
|
2442
2451
|
Ot,
|
|
2443
2452
|
{
|
|
@@ -2453,10 +2462,10 @@ const il = ({
|
|
|
2453
2462
|
variant: "ghost",
|
|
2454
2463
|
iconOnly: !0,
|
|
2455
2464
|
size: "sm",
|
|
2456
|
-
"aria-label":
|
|
2465
|
+
"aria-label": y ? "Unmute" : "Mute",
|
|
2457
2466
|
className: "absolute left-2 top-2 text-white! hover:bg-white/10",
|
|
2458
2467
|
onClick: () => j((T) => !T),
|
|
2459
|
-
children:
|
|
2468
|
+
children: y ? /* @__PURE__ */ e.jsx(Xs, { size: 14 }) : /* @__PURE__ */ e.jsx(qs, { size: 14 })
|
|
2460
2469
|
}
|
|
2461
2470
|
),
|
|
2462
2471
|
/* @__PURE__ */ e.jsx(
|
|
@@ -2464,9 +2473,9 @@ const il = ({
|
|
|
2464
2473
|
{
|
|
2465
2474
|
type: "range",
|
|
2466
2475
|
min: 0,
|
|
2467
|
-
max:
|
|
2476
|
+
max: M || 0,
|
|
2468
2477
|
step: 0.1,
|
|
2469
|
-
value:
|
|
2478
|
+
value: v,
|
|
2470
2479
|
onChange: le,
|
|
2471
2480
|
"aria-label": "Seek",
|
|
2472
2481
|
className: "absolute bottom-4 left-5 right-5 h-1 accent-white"
|
|
@@ -2474,7 +2483,7 @@ const il = ({
|
|
|
2474
2483
|
)
|
|
2475
2484
|
] })
|
|
2476
2485
|
] }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2477
|
-
/* @__PURE__ */ e.jsx("img", { src: a, alt: "", className:
|
|
2486
|
+
/* @__PURE__ */ e.jsx("img", { src: a, alt: "", className: U }),
|
|
2478
2487
|
/* @__PURE__ */ e.jsx("div", { className: "absolute inset-0 bg-linear-to-b from-black/0 to-black/60" }),
|
|
2479
2488
|
/* @__PURE__ */ e.jsx(
|
|
2480
2489
|
X,
|
|
@@ -2509,32 +2518,32 @@ const lr = () => /* @__PURE__ */ e.jsx("img", { src: "https://srm-cdn.a4b.io/yod
|
|
|
2509
2518
|
menuClassName: d = "",
|
|
2510
2519
|
...g
|
|
2511
2520
|
}, x) => {
|
|
2512
|
-
const [u, f] = k.useState(n), b = l !== void 0, p = b ? l : u,
|
|
2513
|
-
(
|
|
2514
|
-
b || f(
|
|
2521
|
+
const [u, f] = k.useState(n), b = l !== void 0, p = b ? l : u, C = k.useCallback(
|
|
2522
|
+
(v) => {
|
|
2523
|
+
b || f(v), i?.(v);
|
|
2515
2524
|
},
|
|
2516
2525
|
[b, i]
|
|
2517
|
-
),
|
|
2518
|
-
k.useImperativeHandle(x, () =>
|
|
2526
|
+
), y = k.useRef(null);
|
|
2527
|
+
k.useImperativeHandle(x, () => y.current), k.useEffect(() => {
|
|
2519
2528
|
if (!p) return;
|
|
2520
|
-
const
|
|
2521
|
-
|
|
2522
|
-
},
|
|
2523
|
-
|
|
2529
|
+
const v = (M) => {
|
|
2530
|
+
y.current?.contains(M.target) || C(!1);
|
|
2531
|
+
}, _ = (M) => {
|
|
2532
|
+
M.key === "Escape" && C(!1);
|
|
2524
2533
|
};
|
|
2525
|
-
return document.addEventListener("mousedown",
|
|
2526
|
-
document.removeEventListener("mousedown",
|
|
2534
|
+
return document.addEventListener("mousedown", v), document.addEventListener("keydown", _), () => {
|
|
2535
|
+
document.removeEventListener("mousedown", v), document.removeEventListener("keydown", _);
|
|
2527
2536
|
};
|
|
2528
|
-
}, [p,
|
|
2529
|
-
const j = (
|
|
2530
|
-
s?.(
|
|
2537
|
+
}, [p, C]);
|
|
2538
|
+
const j = (v) => {
|
|
2539
|
+
s?.(v.value), C(!1);
|
|
2531
2540
|
};
|
|
2532
|
-
return /* @__PURE__ */ e.jsxs("div", { ref:
|
|
2541
|
+
return /* @__PURE__ */ e.jsxs("div", { ref: y, className: m("relative inline-block", c), ...g, children: [
|
|
2533
2542
|
/* @__PURE__ */ e.jsxs(
|
|
2534
2543
|
"button",
|
|
2535
2544
|
{
|
|
2536
2545
|
type: "button",
|
|
2537
|
-
onClick: () =>
|
|
2546
|
+
onClick: () => C(!p),
|
|
2538
2547
|
"aria-label": "Switch language",
|
|
2539
2548
|
"aria-haspopup": "listbox",
|
|
2540
2549
|
"aria-expanded": p,
|
|
@@ -2563,20 +2572,20 @@ const lr = () => /* @__PURE__ */ e.jsx("img", { src: "https://srm-cdn.a4b.io/yod
|
|
|
2563
2572
|
"absolute left-0 top-full z-10 mt-2 min-w-35 overflow-hidden rounded-lg border border-gray-200 bg-white py-1 shadow-lg",
|
|
2564
2573
|
d
|
|
2565
2574
|
),
|
|
2566
|
-
children: t.map((
|
|
2567
|
-
const
|
|
2568
|
-
return /* @__PURE__ */ e.jsx("li", { role: "option", "aria-selected":
|
|
2575
|
+
children: t.map((v) => {
|
|
2576
|
+
const _ = v.value === a;
|
|
2577
|
+
return /* @__PURE__ */ e.jsx("li", { role: "option", "aria-selected": _, children: /* @__PURE__ */ e.jsx(
|
|
2569
2578
|
"button",
|
|
2570
2579
|
{
|
|
2571
2580
|
type: "button",
|
|
2572
|
-
onClick: () => j(
|
|
2581
|
+
onClick: () => j(v),
|
|
2573
2582
|
className: m(
|
|
2574
2583
|
"block w-full px-3 py-2 text-left text-sm hover:bg-gray-50",
|
|
2575
|
-
|
|
2584
|
+
_ ? "font-medium text-[#f75e22]" : "text-[#1d2125]"
|
|
2576
2585
|
),
|
|
2577
|
-
children:
|
|
2586
|
+
children: v.label
|
|
2578
2587
|
}
|
|
2579
|
-
) },
|
|
2588
|
+
) }, v.value);
|
|
2580
2589
|
})
|
|
2581
2590
|
}
|
|
2582
2591
|
)
|
|
@@ -2881,20 +2890,20 @@ const ot = k.forwardRef(
|
|
|
2881
2890
|
tag: f,
|
|
2882
2891
|
tagClassName: b,
|
|
2883
2892
|
children: p,
|
|
2884
|
-
note:
|
|
2885
|
-
noteClassName:
|
|
2893
|
+
note: C,
|
|
2894
|
+
noteClassName: y,
|
|
2886
2895
|
className: j,
|
|
2887
|
-
disabled:
|
|
2888
|
-
type:
|
|
2889
|
-
...
|
|
2890
|
-
},
|
|
2891
|
-
const
|
|
2896
|
+
disabled: v,
|
|
2897
|
+
type: _ = "button",
|
|
2898
|
+
...M
|
|
2899
|
+
}, G) => {
|
|
2900
|
+
const B = /* @__PURE__ */ e.jsxs(
|
|
2892
2901
|
"div",
|
|
2893
2902
|
{
|
|
2894
2903
|
className: m(
|
|
2895
2904
|
"relative overflow-visible rounded-xl border transition-colors",
|
|
2896
2905
|
t ? "border-[#F38415] bg-[#FEF5E9]" : "border-gray-200 bg-white",
|
|
2897
|
-
|
|
2906
|
+
v && "opacity-50",
|
|
2898
2907
|
j
|
|
2899
2908
|
),
|
|
2900
2909
|
children: [
|
|
@@ -2911,17 +2920,17 @@ const ot = k.forwardRef(
|
|
|
2911
2920
|
/* @__PURE__ */ e.jsxs(
|
|
2912
2921
|
"button",
|
|
2913
2922
|
{
|
|
2914
|
-
ref:
|
|
2915
|
-
type:
|
|
2923
|
+
ref: G,
|
|
2924
|
+
type: _,
|
|
2916
2925
|
role: "radio",
|
|
2917
2926
|
"aria-checked": t,
|
|
2918
|
-
disabled:
|
|
2927
|
+
disabled: v,
|
|
2919
2928
|
onClick: a,
|
|
2920
2929
|
className: m(
|
|
2921
2930
|
"flex w-full items-center gap-3 overflow-hidden rounded-xl px-3 py-2 text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#f75e22] focus-visible:ring-offset-2 disabled:cursor-not-allowed",
|
|
2922
2931
|
f && "pt-7"
|
|
2923
2932
|
),
|
|
2924
|
-
...
|
|
2933
|
+
...M,
|
|
2925
2934
|
children: [
|
|
2926
2935
|
(s || n) && /* @__PURE__ */ e.jsx(
|
|
2927
2936
|
Me,
|
|
@@ -2969,19 +2978,19 @@ const ot = k.forwardRef(
|
|
|
2969
2978
|
]
|
|
2970
2979
|
}
|
|
2971
2980
|
);
|
|
2972
|
-
return
|
|
2973
|
-
|
|
2981
|
+
return C ? /* @__PURE__ */ e.jsxs("div", { className: "overflow-hidden rounded-xl bg-[#FCCF9A]", children: [
|
|
2982
|
+
B,
|
|
2974
2983
|
/* @__PURE__ */ e.jsx(
|
|
2975
2984
|
"div",
|
|
2976
2985
|
{
|
|
2977
2986
|
className: m(
|
|
2978
2987
|
"px-4 py-1 text-center text-[10px] leading-3.5 font-medium bg-[#fccf9a] text-[#632E06]",
|
|
2979
|
-
|
|
2988
|
+
y
|
|
2980
2989
|
),
|
|
2981
|
-
children:
|
|
2990
|
+
children: C
|
|
2982
2991
|
}
|
|
2983
2992
|
)
|
|
2984
|
-
] }) :
|
|
2993
|
+
] }) : B;
|
|
2985
2994
|
}
|
|
2986
2995
|
);
|
|
2987
2996
|
ot.displayName = "SelectorCard";
|
|
@@ -3268,9 +3277,9 @@ const xl = ({ value: t, onClick: a, className: s, ...n }) => /* @__PURE__ */ e.j
|
|
|
3268
3277
|
currencySymbol: f = "₹",
|
|
3269
3278
|
showSavedBadge: b,
|
|
3270
3279
|
savedLabel: p,
|
|
3271
|
-
action:
|
|
3280
|
+
action: C
|
|
3272
3281
|
}) => {
|
|
3273
|
-
const
|
|
3282
|
+
const y = typeof u == "number" && u > x, j = y ? Math.round((u - x) / u * 100) : 0, v = (b ?? y) && j > 0;
|
|
3274
3283
|
return /* @__PURE__ */ e.jsx(
|
|
3275
3284
|
Ie,
|
|
3276
3285
|
{
|
|
@@ -3285,13 +3294,13 @@ const xl = ({ value: t, onClick: a, className: s, ...n }) => /* @__PURE__ */ e.j
|
|
|
3285
3294
|
f,
|
|
3286
3295
|
x
|
|
3287
3296
|
] }),
|
|
3288
|
-
|
|
3297
|
+
y && /* @__PURE__ */ e.jsxs("span", { className: re.basePrice, children: [
|
|
3289
3298
|
f,
|
|
3290
3299
|
u
|
|
3291
3300
|
] }),
|
|
3292
|
-
|
|
3301
|
+
v && /* @__PURE__ */ e.jsx("span", { className: re.savedBadge, children: p ?? `Save ${j}%` })
|
|
3293
3302
|
] }),
|
|
3294
|
-
|
|
3303
|
+
C && /* @__PURE__ */ e.jsx("div", { className: re.actionWrap, children: C })
|
|
3295
3304
|
] }),
|
|
3296
3305
|
children: /* @__PURE__ */ e.jsxs("div", { className: re.contentBlock, children: [
|
|
3297
3306
|
/* @__PURE__ */ e.jsx("div", { className: re.imageWrap, children: /* @__PURE__ */ e.jsx("img", { src: n, alt: l, className: re.image }) }),
|
|
@@ -3303,7 +3312,7 @@ const xl = ({ value: t, onClick: a, className: s, ...n }) => /* @__PURE__ */ e.j
|
|
|
3303
3312
|
] })
|
|
3304
3313
|
}
|
|
3305
3314
|
);
|
|
3306
|
-
}, Pr = "_card_19yuv_11", Sr = "_tappable_19yuv_19", Tr = "_tag_19yuv_23", Rr = "_content_19yuv_37", Er = "_info_19yuv_44", Ar = "_textGroup_19yuv_53", Or = "_title_19yuv_59", Mr = "_description_19yuv_66", Ir = "_descriptionClamp_19yuv_78", Br = "_readMoreToggleBlock_19yuv_89", zr = "_readMoreToggle_19yuv_89", Dr = "_priceRow_19yuv_106", Fr = "_price_19yuv_106", Hr = "_originalPrice_19yuv_121", Vr = "_imageWrap_19yuv_127", $r = "_image_19yuv_127", Wr = "_actionWrap_19yuv_141",
|
|
3315
|
+
}, Pr = "_card_19yuv_11", Sr = "_tappable_19yuv_19", Tr = "_tag_19yuv_23", Rr = "_content_19yuv_37", Er = "_info_19yuv_44", Ar = "_textGroup_19yuv_53", Or = "_title_19yuv_59", Mr = "_description_19yuv_66", Ir = "_descriptionClamp_19yuv_78", Br = "_readMoreToggleBlock_19yuv_89", zr = "_readMoreToggle_19yuv_89", Dr = "_priceRow_19yuv_106", Fr = "_price_19yuv_106", Hr = "_originalPrice_19yuv_121", Vr = "_imageWrap_19yuv_127", $r = "_image_19yuv_127", Wr = "_actionWrap_19yuv_141", J = {
|
|
3307
3316
|
card: Pr,
|
|
3308
3317
|
tappable: Sr,
|
|
3309
3318
|
tag: Tr,
|
|
@@ -3337,75 +3346,80 @@ const xl = ({ value: t, onClick: a, className: s, ...n }) => /* @__PURE__ */ e.j
|
|
|
3337
3346
|
originalPrice: f,
|
|
3338
3347
|
tag: b,
|
|
3339
3348
|
tagClassName: p,
|
|
3340
|
-
action:
|
|
3341
|
-
sheetPrice:
|
|
3349
|
+
action: C,
|
|
3350
|
+
sheetPrice: y,
|
|
3342
3351
|
sheetBasePrice: j,
|
|
3343
|
-
sheetCurrencySymbol:
|
|
3344
|
-
sheetShowSavedBadge:
|
|
3345
|
-
sheetSavedLabel:
|
|
3346
|
-
sheetAriaLabel:
|
|
3347
|
-
onReadMoreClick:
|
|
3348
|
-
|
|
3349
|
-
|
|
3352
|
+
sheetCurrencySymbol: v,
|
|
3353
|
+
sheetShowSavedBadge: _,
|
|
3354
|
+
sheetSavedLabel: M,
|
|
3355
|
+
sheetAriaLabel: G,
|
|
3356
|
+
onReadMoreClick: B,
|
|
3357
|
+
onSheetOpenChange: z,
|
|
3358
|
+
className: D,
|
|
3359
|
+
...W
|
|
3350
3360
|
}) => {
|
|
3351
|
-
const [
|
|
3361
|
+
const [$, P] = V(!1), [L, F] = V(!1), Q = i ? Gr(i).length > o : typeof l == "string" && l.length > o, U = Q && !i && !$ ? `${l.slice(0, o).trimEnd()}... ` : l, ee = typeof y == "number", Z = !!i && Q && !$, ne = Q && /* @__PURE__ */ e.jsx(
|
|
3352
3362
|
"button",
|
|
3353
3363
|
{
|
|
3354
3364
|
type: "button",
|
|
3355
|
-
onClick: (
|
|
3356
|
-
|
|
3365
|
+
onClick: (le) => {
|
|
3366
|
+
le.stopPropagation(), ee ? (F(!0), B?.(!0), z?.(!0)) : P((T) => (B?.(!T), !T));
|
|
3357
3367
|
},
|
|
3358
|
-
className: m(
|
|
3359
|
-
children:
|
|
3368
|
+
className: m(J.readMoreToggle, i && J.readMoreToggleBlock),
|
|
3369
|
+
children: ee ? g : $ ? x : g
|
|
3360
3370
|
}
|
|
3361
3371
|
);
|
|
3362
3372
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
3363
3373
|
/* @__PURE__ */ e.jsxs(
|
|
3364
3374
|
"div",
|
|
3365
3375
|
{
|
|
3366
|
-
className: m(
|
|
3367
|
-
onClick:
|
|
3368
|
-
|
|
3376
|
+
className: m(J.card, ee && J.tappable, D),
|
|
3377
|
+
onClick: ee ? () => {
|
|
3378
|
+
F(!0), z?.(!0);
|
|
3379
|
+
} : void 0,
|
|
3380
|
+
...W,
|
|
3369
3381
|
children: [
|
|
3370
|
-
b && /* @__PURE__ */ e.jsx("div", { className: m(
|
|
3371
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
3372
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
3373
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
3374
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
3375
|
-
i ? /* @__PURE__ */ e.jsxs("div", { className:
|
|
3382
|
+
b && /* @__PURE__ */ e.jsx("div", { className: m(J.tag, p), children: b }),
|
|
3383
|
+
/* @__PURE__ */ e.jsxs("div", { className: J.content, children: [
|
|
3384
|
+
/* @__PURE__ */ e.jsxs("div", { className: J.info, children: [
|
|
3385
|
+
/* @__PURE__ */ e.jsxs("div", { className: J.textGroup, children: [
|
|
3386
|
+
/* @__PURE__ */ e.jsx("p", { className: J.title, children: n }),
|
|
3387
|
+
i ? /* @__PURE__ */ e.jsxs("div", { className: J.description, children: [
|
|
3376
3388
|
/* @__PURE__ */ e.jsx(
|
|
3377
3389
|
"div",
|
|
3378
3390
|
{
|
|
3379
|
-
className: m(
|
|
3380
|
-
style:
|
|
3391
|
+
className: m(Z && J.descriptionClamp),
|
|
3392
|
+
style: Z ? { WebkitLineClamp: c } : void 0,
|
|
3381
3393
|
dangerouslySetInnerHTML: { __html: i }
|
|
3382
3394
|
}
|
|
3383
3395
|
),
|
|
3384
|
-
|
|
3385
|
-
] }) : l && /* @__PURE__ */ e.jsxs("p", { className:
|
|
3386
|
-
|
|
3387
|
-
|
|
3396
|
+
ne
|
|
3397
|
+
] }) : l && /* @__PURE__ */ e.jsxs("p", { className: J.description, children: [
|
|
3398
|
+
U,
|
|
3399
|
+
ne
|
|
3388
3400
|
] })
|
|
3389
3401
|
] }),
|
|
3390
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
3391
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
3392
|
-
f && /* @__PURE__ */ e.jsx("span", { className:
|
|
3402
|
+
/* @__PURE__ */ e.jsxs("div", { className: J.priceRow, children: [
|
|
3403
|
+
/* @__PURE__ */ e.jsx("span", { className: J.price, children: u }),
|
|
3404
|
+
f && /* @__PURE__ */ e.jsx("span", { className: J.originalPrice, children: f })
|
|
3393
3405
|
] })
|
|
3394
3406
|
] }),
|
|
3395
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
3396
|
-
/* @__PURE__ */ e.jsx("img", { src: t, alt: a, className:
|
|
3397
|
-
|
|
3407
|
+
/* @__PURE__ */ e.jsxs("div", { className: J.imageWrap, children: [
|
|
3408
|
+
/* @__PURE__ */ e.jsx("img", { src: t, alt: a, className: J.image }),
|
|
3409
|
+
C && /* @__PURE__ */ e.jsx("div", { className: J.actionWrap, onClick: (le) => le.stopPropagation(), children: C })
|
|
3398
3410
|
] })
|
|
3399
3411
|
] })
|
|
3400
3412
|
]
|
|
3401
3413
|
}
|
|
3402
3414
|
),
|
|
3403
|
-
|
|
3415
|
+
ee && /* @__PURE__ */ e.jsx(
|
|
3404
3416
|
_r,
|
|
3405
3417
|
{
|
|
3406
|
-
isOpen:
|
|
3407
|
-
onClose: () =>
|
|
3408
|
-
|
|
3418
|
+
isOpen: L,
|
|
3419
|
+
onClose: () => {
|
|
3420
|
+
F(!1), z?.(!1);
|
|
3421
|
+
},
|
|
3422
|
+
ariaLabel: G,
|
|
3409
3423
|
image: s || t,
|
|
3410
3424
|
imageAlt: a,
|
|
3411
3425
|
tag: b,
|
|
@@ -3413,12 +3427,12 @@ const xl = ({ value: t, onClick: a, className: s, ...n }) => /* @__PURE__ */ e.j
|
|
|
3413
3427
|
title: n,
|
|
3414
3428
|
description: l,
|
|
3415
3429
|
descriptionHtml: i,
|
|
3416
|
-
price:
|
|
3430
|
+
price: y,
|
|
3417
3431
|
basePrice: j,
|
|
3418
|
-
currencySymbol:
|
|
3419
|
-
showSavedBadge:
|
|
3420
|
-
savedLabel:
|
|
3421
|
-
action:
|
|
3432
|
+
currencySymbol: v,
|
|
3433
|
+
showSavedBadge: _,
|
|
3434
|
+
savedLabel: M,
|
|
3435
|
+
action: C
|
|
3422
3436
|
}
|
|
3423
3437
|
)
|
|
3424
3438
|
] });
|
|
@@ -3602,9 +3616,9 @@ const Kr = [
|
|
|
3602
3616
|
buttonWrapperClassName: f,
|
|
3603
3617
|
growProceedButton: b = !1,
|
|
3604
3618
|
className: p,
|
|
3605
|
-
...
|
|
3619
|
+
...C
|
|
3606
3620
|
}) => {
|
|
3607
|
-
const
|
|
3621
|
+
const y = Yr(t);
|
|
3608
3622
|
return /* @__PURE__ */ e.jsxs(
|
|
3609
3623
|
"div",
|
|
3610
3624
|
{
|
|
@@ -3612,7 +3626,7 @@ const Kr = [
|
|
|
3612
3626
|
"flex items-center gap-3 rounded-t-[20px] bg-white px-4 py-4 shadow-[0_0_20px_rgba(0,0,0,0.15)]",
|
|
3613
3627
|
p
|
|
3614
3628
|
),
|
|
3615
|
-
...
|
|
3629
|
+
...C,
|
|
3616
3630
|
children: [
|
|
3617
3631
|
/* @__PURE__ */ e.jsxs("div", { className: m("min-w-0", b ? "flex-none" : "flex-1"), children: [
|
|
3618
3632
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-1.5", children: [
|
|
@@ -3631,7 +3645,7 @@ const Kr = [
|
|
|
3631
3645
|
{
|
|
3632
3646
|
type: "button",
|
|
3633
3647
|
onClick: c,
|
|
3634
|
-
"aria-label":
|
|
3648
|
+
"aria-label": y.infoButtonAriaLabel ?? "View bill details",
|
|
3635
3649
|
className: m(
|
|
3636
3650
|
"inline-flex shrink-0 items-center justify-center text-[#f75e22]!",
|
|
3637
3651
|
!c && "pointer-events-none",
|
|
@@ -3670,7 +3684,7 @@ const Kr = [
|
|
|
3670
3684
|
u?.className
|
|
3671
3685
|
),
|
|
3672
3686
|
children: [
|
|
3673
|
-
d ??
|
|
3687
|
+
d ?? y.proceedLabel,
|
|
3674
3688
|
g
|
|
3675
3689
|
]
|
|
3676
3690
|
}
|
|
@@ -3761,10 +3775,10 @@ const Kr = [
|
|
|
3761
3775
|
optionsClassName: f,
|
|
3762
3776
|
trustBadges: b,
|
|
3763
3777
|
checkout: p,
|
|
3764
|
-
stickyFooter:
|
|
3765
|
-
footerClassName:
|
|
3778
|
+
stickyFooter: C = !0,
|
|
3779
|
+
footerClassName: y
|
|
3766
3780
|
}) => {
|
|
3767
|
-
const j = qr(t),
|
|
3781
|
+
const j = qr(t), v = a ?? j.title, _ = s ?? j.description, M = n ?? j.benefits, G = b ?? {
|
|
3768
3782
|
badges: [
|
|
3769
3783
|
{ id: "money-back", icon: /* @__PURE__ */ e.jsx(ha, { className: "size-5" }), label: j.trustBadgeLabels.moneyBack },
|
|
3770
3784
|
{ id: "no-hidden-cost", icon: /* @__PURE__ */ e.jsx(ba, { className: "size-5" }), label: j.trustBadgeLabels.noHiddenCost },
|
|
@@ -3775,51 +3789,51 @@ const Kr = [
|
|
|
3775
3789
|
};
|
|
3776
3790
|
return /* @__PURE__ */ e.jsxs("div", { className: m("w-full", g), children: [
|
|
3777
3791
|
/* @__PURE__ */ e.jsxs("div", { className: m("px-4 pt-5 pb-4", x), children: [
|
|
3778
|
-
/* @__PURE__ */ e.jsx("p", { className: "text-[20px] leading-6.5 font-extrabold text-[#1d2125]", children:
|
|
3779
|
-
|
|
3792
|
+
/* @__PURE__ */ e.jsx("p", { className: "text-[20px] leading-6.5 font-extrabold text-[#1d2125]", children: v }),
|
|
3793
|
+
_ && /* @__PURE__ */ e.jsx("p", { className: "mt-2 text-[14px] leading-5.5 text-gray-500", children: _ })
|
|
3780
3794
|
] }),
|
|
3781
|
-
|
|
3795
|
+
M && M.length > 0 && /* @__PURE__ */ e.jsx("div", { className: m("flex flex-col gap-3.5 bg-[#f3f5f7] px-4 py-5", u), children: M.map((B, z) => /* @__PURE__ */ e.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
3782
3796
|
/* @__PURE__ */ e.jsx(nt, { size: 18, className: "mt-0.5 shrink-0 text-emerald-600", "aria-hidden": !0 }),
|
|
3783
|
-
/* @__PURE__ */ e.jsx("span", { className: "text-[14px] leading-5.5 text-gray-600", children:
|
|
3797
|
+
/* @__PURE__ */ e.jsx("span", { className: "text-[14px] leading-5.5 text-gray-600", children: B })
|
|
3784
3798
|
] }, z)) }),
|
|
3785
3799
|
/* @__PURE__ */ e.jsx(
|
|
3786
3800
|
"div",
|
|
3787
3801
|
{
|
|
3788
3802
|
role: "radiogroup",
|
|
3789
|
-
"aria-label": d ?? (typeof
|
|
3803
|
+
"aria-label": d ?? (typeof v == "string" ? v : void 0),
|
|
3790
3804
|
className: m("flex flex-col gap-3 p-4", f),
|
|
3791
|
-
children: l.map((
|
|
3805
|
+
children: l.map((B) => {
|
|
3792
3806
|
const {
|
|
3793
3807
|
id: z,
|
|
3794
3808
|
price: D,
|
|
3795
|
-
free:
|
|
3796
|
-
badge:
|
|
3797
|
-
priceBadgeProps:
|
|
3809
|
+
free: W,
|
|
3810
|
+
badge: $,
|
|
3811
|
+
priceBadgeProps: P,
|
|
3798
3812
|
note: L,
|
|
3799
|
-
children:
|
|
3800
|
-
iconClassName:
|
|
3801
|
-
radioVariant:
|
|
3802
|
-
...
|
|
3803
|
-
} =
|
|
3813
|
+
children: F,
|
|
3814
|
+
iconClassName: Q,
|
|
3815
|
+
radioVariant: U,
|
|
3816
|
+
...ee
|
|
3817
|
+
} = B, Z = i === z, ne = $ ?? (D == null ? void 0 : W ? /* @__PURE__ */ e.jsx("span", { className: m("text-sm font-medium text-[#22272b]", P?.className), ...P, children: D }) : /* @__PURE__ */ e.jsx(xr, { value: D, ...P }));
|
|
3804
3818
|
return /* @__PURE__ */ e.jsx(
|
|
3805
3819
|
ot,
|
|
3806
3820
|
{
|
|
3807
|
-
...
|
|
3808
|
-
iconClassName: m("size-10",
|
|
3809
|
-
radioVariant:
|
|
3810
|
-
badge:
|
|
3821
|
+
...ee,
|
|
3822
|
+
iconClassName: m("size-10", Q),
|
|
3823
|
+
radioVariant: U ?? o,
|
|
3824
|
+
badge: ne,
|
|
3811
3825
|
selected: Z,
|
|
3812
3826
|
onSelect: () => c(z),
|
|
3813
3827
|
note: Z ? L : void 0,
|
|
3814
|
-
children:
|
|
3828
|
+
children: F
|
|
3815
3829
|
},
|
|
3816
3830
|
z
|
|
3817
3831
|
);
|
|
3818
3832
|
})
|
|
3819
3833
|
}
|
|
3820
3834
|
),
|
|
3821
|
-
(
|
|
3822
|
-
|
|
3835
|
+
(G || p) && /* @__PURE__ */ e.jsxs("div", { className: m(C && "sticky bottom-0 z-10", y), children: [
|
|
3836
|
+
G && /* @__PURE__ */ e.jsx(Zr, { ...G }),
|
|
3823
3837
|
p && /* @__PURE__ */ e.jsx(ct, { locale: t, ...p })
|
|
3824
3838
|
] })
|
|
3825
3839
|
] });
|
|
@@ -3887,10 +3901,10 @@ const Kr = [
|
|
|
3887
3901
|
a && /* @__PURE__ */ e.jsx("span", { className: m("shrink-0 text-sm", s), children: a }),
|
|
3888
3902
|
b
|
|
3889
3903
|
] }),
|
|
3890
|
-
(i || p && p.length > 0) && /* @__PURE__ */ e.jsx("p", { className: m("mt-2 text-[15px] font-semibold text-[#1d2125]", d), children: p && p.length > 0 ? p.map((
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
] },
|
|
3904
|
+
(i || p && p.length > 0) && /* @__PURE__ */ e.jsx("p", { className: m("mt-2 text-[15px] font-semibold text-[#1d2125]", d), children: p && p.length > 0 ? p.map((C, y) => /* @__PURE__ */ e.jsxs(k.Fragment, { children: [
|
|
3905
|
+
y > 0 && /* @__PURE__ */ e.jsx("span", { className: "mx-1.5 text-gray-400", children: "•" }),
|
|
3906
|
+
C
|
|
3907
|
+
] }, y)) : i })
|
|
3894
3908
|
] }) });
|
|
3895
3909
|
}, $t = {
|
|
3896
3910
|
en: {
|
|
@@ -3945,7 +3959,7 @@ const Na = ({
|
|
|
3945
3959
|
className: x,
|
|
3946
3960
|
...u
|
|
3947
3961
|
}) => {
|
|
3948
|
-
const { title: f, totalLabel: b, panditFeeLabel: p, photoVideoFeeLabel:
|
|
3962
|
+
const { title: f, totalLabel: b, panditFeeLabel: p, photoVideoFeeLabel: C, freeLabel: y } = ya(t);
|
|
3949
3963
|
return /* @__PURE__ */ e.jsxs("div", { className: m("bg-white px-4 py-6", x), ...u, children: [
|
|
3950
3964
|
s && /* @__PURE__ */ e.jsxs(
|
|
3951
3965
|
"h2",
|
|
@@ -4018,16 +4032,16 @@ const Na = ({
|
|
|
4018
4032
|
{
|
|
4019
4033
|
label: p,
|
|
4020
4034
|
originalValue: d ? "$3.99" : "₹51.0",
|
|
4021
|
-
freeLabel:
|
|
4035
|
+
freeLabel: y,
|
|
4022
4036
|
rowClassName: l
|
|
4023
4037
|
}
|
|
4024
4038
|
),
|
|
4025
4039
|
/* @__PURE__ */ e.jsx(
|
|
4026
4040
|
Wt,
|
|
4027
4041
|
{
|
|
4028
|
-
label:
|
|
4042
|
+
label: C,
|
|
4029
4043
|
originalValue: d ? "$0.49" : "₹21.0",
|
|
4030
|
-
freeLabel:
|
|
4044
|
+
freeLabel: y,
|
|
4031
4045
|
rowClassName: l
|
|
4032
4046
|
}
|
|
4033
4047
|
)
|
|
@@ -4134,21 +4148,21 @@ const vl = ({
|
|
|
4134
4148
|
addons: f,
|
|
4135
4149
|
addonsSectionClassName: b,
|
|
4136
4150
|
addonsHeaderClassName: p,
|
|
4137
|
-
addonsTitleClassName:
|
|
4138
|
-
addonsDescriptionClassName:
|
|
4151
|
+
addonsTitleClassName: C,
|
|
4152
|
+
addonsDescriptionClassName: y,
|
|
4139
4153
|
addonsClassName: j,
|
|
4140
|
-
addonClassName:
|
|
4141
|
-
addonComponent:
|
|
4142
|
-
onAddonRef:
|
|
4143
|
-
billDetails:
|
|
4144
|
-
faq:
|
|
4154
|
+
addonClassName: v,
|
|
4155
|
+
addonComponent: _ = Ur,
|
|
4156
|
+
onAddonRef: M,
|
|
4157
|
+
billDetails: G,
|
|
4158
|
+
faq: B,
|
|
4145
4159
|
checkout: z,
|
|
4146
4160
|
className: D,
|
|
4147
|
-
children:
|
|
4148
|
-
|
|
4161
|
+
children: W,
|
|
4162
|
+
...$
|
|
4149
4163
|
}) => {
|
|
4150
|
-
const { backButtonAriaLabel:
|
|
4151
|
-
return /* @__PURE__ */ e.jsxs("div", { className: m("flex min-h-screen flex-col bg-white", D),
|
|
4164
|
+
const { backButtonAriaLabel: P, headerTitle: L, addonsTitle: F, addonsDescription: Q, checkoutProceedLabel: U, checkoutRitualSingular: ee, checkoutRitualPlural: Z } = Ue(t), { price: ne, ritualCount: le, ...T } = z ?? {};
|
|
4165
|
+
return /* @__PURE__ */ e.jsxs("div", { className: m("flex min-h-screen flex-col bg-white", D), ...$, children: [
|
|
4152
4166
|
/* @__PURE__ */ e.jsxs("div", { className: "flex flex-1 flex-col", children: [
|
|
4153
4167
|
/* @__PURE__ */ e.jsxs("div", { className: m("flex items-center gap-3 px-4 py-3", n), children: [
|
|
4154
4168
|
a && /* @__PURE__ */ e.jsx(
|
|
@@ -4156,7 +4170,7 @@ const vl = ({
|
|
|
4156
4170
|
{
|
|
4157
4171
|
type: "button",
|
|
4158
4172
|
onClick: a,
|
|
4159
|
-
"aria-label": s ??
|
|
4173
|
+
"aria-label": s ?? P,
|
|
4160
4174
|
className: m(
|
|
4161
4175
|
"flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-lg border-0 bg-transparent p-0",
|
|
4162
4176
|
l
|
|
@@ -4184,21 +4198,21 @@ const vl = ({
|
|
|
4184
4198
|
c,
|
|
4185
4199
|
f && f.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: m("flex flex-col gap-4 bg-gray-50 px-4 py-6", b), children: [
|
|
4186
4200
|
/* @__PURE__ */ e.jsxs("div", { className: p, children: [
|
|
4187
|
-
/* @__PURE__ */ e.jsx("h2", { className: m("text-base font-bold text-gray-700",
|
|
4188
|
-
/* @__PURE__ */ e.jsx("p", { className: m("mt-1 text-sm text-gray-500",
|
|
4201
|
+
/* @__PURE__ */ e.jsx("h2", { className: m("text-base font-bold text-gray-700", C), children: F }),
|
|
4202
|
+
/* @__PURE__ */ e.jsx("p", { className: m("mt-1 text-sm text-gray-500", y), children: Q })
|
|
4189
4203
|
] }),
|
|
4190
|
-
/* @__PURE__ */ e.jsx("div", { className: m("flex flex-col gap-4", j), children: f.map(({ id: O, className: oe, ...de }) => /* @__PURE__ */ e.jsx("div", { ref:
|
|
4191
|
-
|
|
4204
|
+
/* @__PURE__ */ e.jsx("div", { className: m("flex flex-col gap-4", j), children: f.map(({ id: O, className: oe, ...de }) => /* @__PURE__ */ e.jsx("div", { ref: M ? (ce) => M(O, ce) : void 0, children: /* @__PURE__ */ e.jsx(
|
|
4205
|
+
_,
|
|
4192
4206
|
{
|
|
4193
4207
|
locale: t,
|
|
4194
|
-
className: m(
|
|
4208
|
+
className: m(v, oe),
|
|
4195
4209
|
...de
|
|
4196
4210
|
}
|
|
4197
4211
|
) }, O)) })
|
|
4198
4212
|
] }),
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4213
|
+
G && /* @__PURE__ */ e.jsx(Na, { ...G, locale: t }),
|
|
4214
|
+
B && /* @__PURE__ */ e.jsx(rr, { ...B }),
|
|
4215
|
+
W
|
|
4202
4216
|
] }),
|
|
4203
4217
|
z && /* @__PURE__ */ e.jsx("div", { className: "sticky bottom-0", children: /* @__PURE__ */ e.jsx(
|
|
4204
4218
|
ct,
|
|
@@ -4206,9 +4220,9 @@ const vl = ({
|
|
|
4206
4220
|
growProceedButton: !0,
|
|
4207
4221
|
...T,
|
|
4208
4222
|
locale: t,
|
|
4209
|
-
amount:
|
|
4210
|
-
subtitle: `${le} ${le === 1 ?
|
|
4211
|
-
proceedLabel:
|
|
4223
|
+
amount: ne,
|
|
4224
|
+
subtitle: `${le} ${le === 1 ? ee : Z}`,
|
|
4225
|
+
proceedLabel: U
|
|
4212
4226
|
}
|
|
4213
4227
|
) })
|
|
4214
4228
|
] });
|
|
@@ -4228,9 +4242,9 @@ const vl = ({
|
|
|
4228
4242
|
id: u,
|
|
4229
4243
|
...f
|
|
4230
4244
|
}, b) => {
|
|
4231
|
-
const p = k.useId(),
|
|
4245
|
+
const p = k.useId(), C = u ?? p, y = i ?? (l ? `${a.length}${x ? `/${x}` : ""}` : void 0);
|
|
4232
4246
|
return /* @__PURE__ */ e.jsxs("div", { className: m("flex w-full flex-col gap-2", d), children: [
|
|
4233
|
-
t && /* @__PURE__ */ e.jsx("label", { htmlFor:
|
|
4247
|
+
t && /* @__PURE__ */ e.jsx("label", { htmlFor: C, className: "text-[14px] leading-5 font-semibold text-[#6b7280]", children: t }),
|
|
4234
4248
|
/* @__PURE__ */ e.jsxs("div", { className: "flex w-full flex-col gap-1", children: [
|
|
4235
4249
|
/* @__PURE__ */ e.jsxs(
|
|
4236
4250
|
"div",
|
|
@@ -4246,7 +4260,7 @@ const vl = ({
|
|
|
4246
4260
|
"input",
|
|
4247
4261
|
{
|
|
4248
4262
|
ref: b,
|
|
4249
|
-
id:
|
|
4263
|
+
id: C,
|
|
4250
4264
|
value: a,
|
|
4251
4265
|
maxLength: x,
|
|
4252
4266
|
onChange: (j) => s(j.target.value),
|
|
@@ -4261,7 +4275,7 @@ const vl = ({
|
|
|
4261
4275
|
]
|
|
4262
4276
|
}
|
|
4263
4277
|
),
|
|
4264
|
-
|
|
4278
|
+
y && /* @__PURE__ */ e.jsx("p", { className: m("text-[12px] leading-4 font-medium", c ? "text-[#ef4444]" : "text-[#9ca3af]"), children: y })
|
|
4265
4279
|
] })
|
|
4266
4280
|
] });
|
|
4267
4281
|
}
|
|
@@ -4277,7 +4291,7 @@ function yl({
|
|
|
4277
4291
|
onConfirm: c,
|
|
4278
4292
|
initialTithi: o
|
|
4279
4293
|
}) {
|
|
4280
|
-
const [d, g] =
|
|
4294
|
+
const [d, g] = V(o), x = () => {
|
|
4281
4295
|
d && c(d);
|
|
4282
4296
|
};
|
|
4283
4297
|
return /* @__PURE__ */ e.jsx(
|
|
@@ -4381,26 +4395,26 @@ function Nl({
|
|
|
4381
4395
|
minDate: u,
|
|
4382
4396
|
maxDate: f
|
|
4383
4397
|
}) {
|
|
4384
|
-
const b = u?.year ?? g, p = f?.year ?? x,
|
|
4385
|
-
const
|
|
4386
|
-
return Array.from({ length: p -
|
|
4387
|
-
}, [b, p]), [
|
|
4388
|
-
() => d ? Math.max(0,
|
|
4389
|
-
),
|
|
4390
|
-
let
|
|
4391
|
-
return f &&
|
|
4392
|
-
}, [
|
|
4393
|
-
let
|
|
4394
|
-
return f &&
|
|
4395
|
-
}, [
|
|
4398
|
+
const b = u?.year ?? g, p = f?.year ?? x, C = $e(() => {
|
|
4399
|
+
const P = b ?? p - 120;
|
|
4400
|
+
return Array.from({ length: p - P + 1 }, (L, F) => P + F);
|
|
4401
|
+
}, [b, p]), [y, j] = V(() => d ? d.day - 1 : Math.floor(Gt.length / 2)), [v, _] = V(() => d ? d.month - 1 : 0), [M, G] = V(
|
|
4402
|
+
() => d ? Math.max(0, C.indexOf(d.year)) : Math.floor(C.length / 2)
|
|
4403
|
+
), B = C[M], z = $e(() => {
|
|
4404
|
+
let P = en;
|
|
4405
|
+
return f && B === f.year && (P = P.filter((L) => L <= f.month - 1)), u && B === u.year && (P = P.filter((L) => L >= u.month - 1)), P;
|
|
4406
|
+
}, [B, u, f]), D = (z[v] ?? z[z.length - 1] ?? 0) + 1, W = $e(() => {
|
|
4407
|
+
let P = Gt;
|
|
4408
|
+
return f && B === f.year && D === f.month && (P = P.filter((L) => L <= f.day)), u && B === u.year && D === u.month && (P = P.filter((L) => L >= u.day)), P;
|
|
4409
|
+
}, [B, D, u, f]);
|
|
4396
4410
|
at(() => {
|
|
4397
|
-
|
|
4411
|
+
_((P) => Math.min(P, z.length - 1));
|
|
4398
4412
|
}, [z]), at(() => {
|
|
4399
|
-
j((
|
|
4400
|
-
}, [
|
|
4401
|
-
const
|
|
4402
|
-
const
|
|
4403
|
-
c({ day:
|
|
4413
|
+
j((P) => Math.min(P, W.length - 1));
|
|
4414
|
+
}, [W]);
|
|
4415
|
+
const $ = () => {
|
|
4416
|
+
const P = W[y] ?? W[W.length - 1] ?? 1;
|
|
4417
|
+
c({ day: P, month: D, year: B });
|
|
4404
4418
|
};
|
|
4405
4419
|
return /* @__PURE__ */ e.jsx(
|
|
4406
4420
|
ke,
|
|
@@ -4418,19 +4432,19 @@ function Nl({
|
|
|
4418
4432
|
] }),
|
|
4419
4433
|
footer: /* @__PURE__ */ e.jsxs("div", { className: "flex w-full items-center gap-6 px-5 pt-2 pb-5", children: [
|
|
4420
4434
|
o && /* @__PURE__ */ e.jsx("p", { className: "shrink-0 text-[12px] leading-4 font-semibold whitespace-nowrap text-[#6b7280]", children: o }),
|
|
4421
|
-
/* @__PURE__ */ e.jsx(X, { variant: "primary", size: "lg", className: "flex-1 rounded-xl", onClick:
|
|
4435
|
+
/* @__PURE__ */ e.jsx(X, { variant: "primary", size: "lg", className: "flex-1 rounded-xl", onClick: $, children: i })
|
|
4422
4436
|
] }),
|
|
4423
4437
|
children: /* @__PURE__ */ e.jsxs("div", { className: "relative flex w-full items-center justify-center gap-11 px-5 py-4", children: [
|
|
4424
|
-
/* @__PURE__ */ e.jsx(Le, { options:
|
|
4438
|
+
/* @__PURE__ */ e.jsx(Le, { options: W.map(String), selectedIndex: y, onChange: j }),
|
|
4425
4439
|
/* @__PURE__ */ e.jsx(
|
|
4426
4440
|
Le,
|
|
4427
4441
|
{
|
|
4428
|
-
options: z.map((
|
|
4429
|
-
selectedIndex:
|
|
4430
|
-
onChange:
|
|
4442
|
+
options: z.map((P) => l[P]),
|
|
4443
|
+
selectedIndex: v,
|
|
4444
|
+
onChange: _
|
|
4431
4445
|
}
|
|
4432
4446
|
),
|
|
4433
|
-
/* @__PURE__ */ e.jsx(Le, { options:
|
|
4447
|
+
/* @__PURE__ */ e.jsx(Le, { options: C.map(String), selectedIndex: M, onChange: G }),
|
|
4434
4448
|
/* @__PURE__ */ e.jsx("div", { className: "pointer-events-none absolute inset-x-5 top-16 h-px bg-[#e5e7eb]" }),
|
|
4435
4449
|
/* @__PURE__ */ e.jsx("div", { className: "pointer-events-none absolute inset-x-5 top-28 h-px bg-[#e5e7eb]" })
|
|
4436
4450
|
] })
|
|
@@ -4457,9 +4471,9 @@ function wl({
|
|
|
4457
4471
|
amLabel: d = "AM",
|
|
4458
4472
|
pmLabel: g = "PM"
|
|
4459
4473
|
}) {
|
|
4460
|
-
const x = $e(() => tn(o?.hour ?? 11), [o?.hour]), u = [d, g], [f, b] =
|
|
4461
|
-
const
|
|
4462
|
-
i({ hour:
|
|
4474
|
+
const x = $e(() => tn(o?.hour ?? 11), [o?.hour]), u = [d, g], [f, b] = V(() => Je.indexOf(x.hour12)), [p, C] = V(() => o?.minute ?? 0), [y, j] = V(() => x.period === "AM" ? 0 : 1), v = () => {
|
|
4475
|
+
const _ = an(Je[f], y === 0 ? "AM" : "PM");
|
|
4476
|
+
i({ hour: _, minute: Ut[p] });
|
|
4463
4477
|
};
|
|
4464
4478
|
return /* @__PURE__ */ e.jsx(
|
|
4465
4479
|
ke,
|
|
@@ -4475,19 +4489,19 @@ function wl({
|
|
|
4475
4489
|
] }),
|
|
4476
4490
|
footer: /* @__PURE__ */ e.jsxs("div", { className: "flex w-full items-center gap-6 px-5 pt-2 pb-5", children: [
|
|
4477
4491
|
c && /* @__PURE__ */ e.jsx("p", { className: "shrink-0 text-[12px] leading-4 font-semibold whitespace-nowrap text-[#6b7280]", children: c }),
|
|
4478
|
-
/* @__PURE__ */ e.jsx(X, { variant: "primary", size: "lg", className: "flex-1 rounded-xl", onClick:
|
|
4492
|
+
/* @__PURE__ */ e.jsx(X, { variant: "primary", size: "lg", className: "flex-1 rounded-xl", onClick: v, children: l })
|
|
4479
4493
|
] }),
|
|
4480
4494
|
children: /* @__PURE__ */ e.jsxs("div", { className: "relative flex w-full items-center justify-center gap-11 px-5 py-4", children: [
|
|
4481
4495
|
/* @__PURE__ */ e.jsx(Le, { options: Je.map(String), selectedIndex: f, onChange: b }),
|
|
4482
4496
|
/* @__PURE__ */ e.jsx(
|
|
4483
4497
|
Le,
|
|
4484
4498
|
{
|
|
4485
|
-
options: Ut.map((
|
|
4499
|
+
options: Ut.map((_) => String(_).padStart(2, "0")),
|
|
4486
4500
|
selectedIndex: p,
|
|
4487
|
-
onChange:
|
|
4501
|
+
onChange: C
|
|
4488
4502
|
}
|
|
4489
4503
|
),
|
|
4490
|
-
/* @__PURE__ */ e.jsx(Le, { options: u, selectedIndex:
|
|
4504
|
+
/* @__PURE__ */ e.jsx(Le, { options: u, selectedIndex: y, onChange: j }),
|
|
4491
4505
|
/* @__PURE__ */ e.jsx("div", { className: "pointer-events-none absolute inset-x-5 top-16 h-px bg-[#e5e7eb]" }),
|
|
4492
4506
|
/* @__PURE__ */ e.jsx("div", { className: "pointer-events-none absolute inset-x-5 top-28 h-px bg-[#e5e7eb]" })
|
|
4493
4507
|
] })
|
|
@@ -4536,7 +4550,7 @@ function Cl({
|
|
|
4536
4550
|
countries: d = Ua,
|
|
4537
4551
|
initialCountryIso: g = "IN"
|
|
4538
4552
|
}) {
|
|
4539
|
-
const x = d.find((
|
|
4553
|
+
const x = d.find((y) => y.iso === g) ?? d[0], [u, f] = V(o), b = sa(x.code), p = ra(u, x.code).isValid && u.length > 0, C = () => {
|
|
4540
4554
|
p && c(u, x);
|
|
4541
4555
|
};
|
|
4542
4556
|
return /* @__PURE__ */ e.jsx(
|
|
@@ -4557,7 +4571,7 @@ function Cl({
|
|
|
4557
4571
|
className: "w-full rounded-xl bg-linear-to-b from-[#5eb98e] to-[#159169] focus-visible:ring-[#159169]",
|
|
4558
4572
|
rightIcon: /* @__PURE__ */ e.jsx(Pe, { "aria-hidden": !0 }),
|
|
4559
4573
|
disabled: !p,
|
|
4560
|
-
onClick:
|
|
4574
|
+
onClick: C,
|
|
4561
4575
|
children: i
|
|
4562
4576
|
}
|
|
4563
4577
|
) }),
|
|
@@ -4576,7 +4590,7 @@ function Cl({
|
|
|
4576
4590
|
/* @__PURE__ */ e.jsx("span", { className: "text-[18px] leading-6 font-medium text-[#6b7280]", children: x.code })
|
|
4577
4591
|
] }),
|
|
4578
4592
|
maxLength: b,
|
|
4579
|
-
onChange: (
|
|
4593
|
+
onChange: (y) => f(y.replace(/\D/g, "").slice(0, b)),
|
|
4580
4594
|
containerClassName: "mt-2 w-full gap-0",
|
|
4581
4595
|
wrapperClassName: "h-14 gap-2 rounded-xl px-4",
|
|
4582
4596
|
className: "text-[18px] placeholder:text-[#ced1d7]"
|
|
@@ -4597,7 +4611,7 @@ function Ll({
|
|
|
4597
4611
|
initialValue: c = "",
|
|
4598
4612
|
errorText: o = "Please enter a valid email"
|
|
4599
4613
|
}) {
|
|
4600
|
-
const [d, g] =
|
|
4614
|
+
const [d, g] = V(c), [x, u] = V(!1), f = d.trim(), b = rn.test(f), p = x && f.length > 0 && !b, C = () => {
|
|
4601
4615
|
b && i(f);
|
|
4602
4616
|
};
|
|
4603
4617
|
return /* @__PURE__ */ e.jsx(
|
|
@@ -4615,7 +4629,7 @@ function Ll({
|
|
|
4615
4629
|
className: "w-full rounded-xl",
|
|
4616
4630
|
rightIcon: /* @__PURE__ */ e.jsx(Pe, { "aria-hidden": !0 }),
|
|
4617
4631
|
disabled: !b,
|
|
4618
|
-
onClick:
|
|
4632
|
+
onClick: C,
|
|
4619
4633
|
children: l
|
|
4620
4634
|
}
|
|
4621
4635
|
) }),
|
|
@@ -4660,24 +4674,24 @@ function kl({
|
|
|
4660
4674
|
title: f,
|
|
4661
4675
|
description: b,
|
|
4662
4676
|
learnMoreLabel: p,
|
|
4663
|
-
onLearnMoreClick:
|
|
4664
|
-
learnMoreHref:
|
|
4677
|
+
onLearnMoreClick: C,
|
|
4678
|
+
learnMoreHref: y,
|
|
4665
4679
|
dateLabel: j,
|
|
4666
|
-
locationLabel:
|
|
4667
|
-
priceInfoLabel:
|
|
4668
|
-
onPriceInfoClick:
|
|
4669
|
-
price:
|
|
4670
|
-
cta:
|
|
4680
|
+
locationLabel: v,
|
|
4681
|
+
priceInfoLabel: _,
|
|
4682
|
+
onPriceInfoClick: M,
|
|
4683
|
+
price: G,
|
|
4684
|
+
cta: B,
|
|
4671
4685
|
className: z = ""
|
|
4672
4686
|
}) {
|
|
4673
|
-
const [D,
|
|
4687
|
+
const [D, W] = V(!1), $ = s || D, P = $ && (x != null || u != null), L = $ && (j != null || v != null);
|
|
4674
4688
|
return /* @__PURE__ */ e.jsxs(
|
|
4675
4689
|
"div",
|
|
4676
4690
|
{
|
|
4677
|
-
className: `flex w-full flex-col items-center overflow-hidden rounded-[20px] border border-[#e5e3fd] bg-white px-4 pb-4 ${
|
|
4691
|
+
className: `flex w-full flex-col items-center overflow-hidden rounded-[20px] border border-[#e5e3fd] bg-white px-4 pb-4 ${$ ? "gap-3 shadow-[0px_0px_20px_0px_rgba(215,99,28,0.05)]" : "gap-4 shadow-[0px_0px_20px_0px_rgba(215,99,28,0.12)]"} ${z}`,
|
|
4678
4692
|
children: [
|
|
4679
4693
|
/* @__PURE__ */ e.jsxs("div", { className: "flex w-full flex-col items-center", children: [
|
|
4680
|
-
/* @__PURE__ */ e.jsxs("div", { className: `flex w-full items-center justify-between gap-1 ${
|
|
4694
|
+
/* @__PURE__ */ e.jsxs("div", { className: `flex w-full items-center justify-between gap-1 ${$ ? "py-4" : "pt-4"}`, children: [
|
|
4681
4695
|
/* @__PURE__ */ e.jsxs(
|
|
4682
4696
|
"div",
|
|
4683
4697
|
{
|
|
@@ -4708,7 +4722,7 @@ function kl({
|
|
|
4708
4722
|
type: "button",
|
|
4709
4723
|
className: "flex size-8 shrink-0 items-center justify-center border-0 bg-transparent p-0",
|
|
4710
4724
|
onClick: () => {
|
|
4711
|
-
|
|
4725
|
+
W((F) => (i?.(!F), !F));
|
|
4712
4726
|
},
|
|
4713
4727
|
"aria-label": c,
|
|
4714
4728
|
"aria-expanded": D,
|
|
@@ -4723,8 +4737,8 @@ function kl({
|
|
|
4723
4737
|
)
|
|
4724
4738
|
] })
|
|
4725
4739
|
] }),
|
|
4726
|
-
|
|
4727
|
-
|
|
4740
|
+
$ && o != null && /* @__PURE__ */ e.jsx("div", { className: "-mx-4 aspect-[2/1] self-stretch overflow-hidden ", children: g ? /* @__PURE__ */ e.jsx(g, { src: o, alt: d ?? "", className: "size-full object-cover" }) : /* @__PURE__ */ e.jsx("img", { src: o, alt: d, className: "size-full object-cover" }) }),
|
|
4741
|
+
P && /* @__PURE__ */ e.jsxs(
|
|
4728
4742
|
"div",
|
|
4729
4743
|
{
|
|
4730
4744
|
className: "-mx-4 flex items-center gap-2.5 self-stretch px-4 py-1",
|
|
@@ -4743,12 +4757,12 @@ function kl({
|
|
|
4743
4757
|
/* @__PURE__ */ e.jsx("h3", { className: "text-base font-bold leading-[22px] text-[#361407]", children: f }),
|
|
4744
4758
|
/* @__PURE__ */ e.jsx("p", { className: "w-full text-xs font-semibold leading-4 text-[#6B7280]", children: b })
|
|
4745
4759
|
] }),
|
|
4746
|
-
|
|
4760
|
+
$ && p != null && /* @__PURE__ */ e.jsxs(
|
|
4747
4761
|
"a",
|
|
4748
4762
|
{
|
|
4749
|
-
href:
|
|
4763
|
+
href: y,
|
|
4750
4764
|
className: "inline-flex items-center gap-0.5 text-xs font-medium leading-4 text-[#F75E22] underline",
|
|
4751
|
-
onClick:
|
|
4765
|
+
onClick: C,
|
|
4752
4766
|
children: [
|
|
4753
4767
|
p,
|
|
4754
4768
|
/* @__PURE__ */ e.jsx(_s, { "aria-hidden": !0, className: "size-3.5 text-[#F75E22]" })
|
|
@@ -4764,31 +4778,31 @@ function kl({
|
|
|
4764
4778
|
/* @__PURE__ */ e.jsx(xa, { "aria-hidden": !0, className: "size-3.5 shrink-0 text-gray-700" }),
|
|
4765
4779
|
/* @__PURE__ */ e.jsx("p", { className: "text-xs font-medium leading-4 text-gray-700", children: j })
|
|
4766
4780
|
] }),
|
|
4767
|
-
|
|
4781
|
+
v != null && /* @__PURE__ */ e.jsxs("div", { className: "flex w-full items-center gap-2", children: [
|
|
4768
4782
|
/* @__PURE__ */ e.jsx("img", { src: nn, alt: "", "aria-hidden": !0, className: "size-3.5 shrink-0" }),
|
|
4769
|
-
/* @__PURE__ */ e.jsx("p", { className: "text-xs font-medium leading-4 text-gray-700", children:
|
|
4783
|
+
/* @__PURE__ */ e.jsx("p", { className: "text-xs font-medium leading-4 text-gray-700", children: v })
|
|
4770
4784
|
] })
|
|
4771
4785
|
] })
|
|
4772
4786
|
] }),
|
|
4773
4787
|
/* @__PURE__ */ e.jsx("hr", { className: "w-full border-t border-gray-100" }),
|
|
4774
4788
|
/* @__PURE__ */ e.jsxs("div", { className: "flex w-full items-center justify-between", children: [
|
|
4775
4789
|
/* @__PURE__ */ e.jsxs("div", { className: "flex flex-col items-start gap-0.5", children: [
|
|
4776
|
-
|
|
4777
|
-
/* @__PURE__ */ e.jsx("p", { className: "whitespace-nowrap text-[10px] font-medium leading-[14px] text-gray-500", children:
|
|
4778
|
-
|
|
4790
|
+
_ != null && /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
4791
|
+
/* @__PURE__ */ e.jsx("p", { className: "whitespace-nowrap text-[10px] font-medium leading-[14px] text-gray-500", children: _ }),
|
|
4792
|
+
M && /* @__PURE__ */ e.jsx(
|
|
4779
4793
|
"button",
|
|
4780
4794
|
{
|
|
4781
4795
|
type: "button",
|
|
4782
4796
|
className: "flex size-4 shrink-0 items-center justify-center border-0 bg-transparent p-0",
|
|
4783
|
-
onClick:
|
|
4797
|
+
onClick: M,
|
|
4784
4798
|
"aria-label": "More info",
|
|
4785
4799
|
children: /* @__PURE__ */ e.jsx(he, { "aria-hidden": !0, className: "size-4 text-[#1D2125]" })
|
|
4786
4800
|
}
|
|
4787
4801
|
)
|
|
4788
4802
|
] }),
|
|
4789
|
-
/* @__PURE__ */ e.jsx("p", { className: "whitespace-nowrap text-lg font-bold leading-6 text-[#159169]", children:
|
|
4803
|
+
/* @__PURE__ */ e.jsx("p", { className: "whitespace-nowrap text-lg font-bold leading-6 text-[#159169]", children: G })
|
|
4790
4804
|
] }),
|
|
4791
|
-
/* @__PURE__ */ e.jsx("div", { className: "shrink-0", children:
|
|
4805
|
+
/* @__PURE__ */ e.jsx("div", { className: "shrink-0", children: B })
|
|
4792
4806
|
] })
|
|
4793
4807
|
] })
|
|
4794
4808
|
] })
|
|
@@ -4910,11 +4924,11 @@ function on({
|
|
|
4910
4924
|
/* @__PURE__ */ e.jsx("div", { className: "h-px w-full bg-[#e5e7eb]" }),
|
|
4911
4925
|
/* @__PURE__ */ e.jsxs("div", { className: "flex w-full flex-col gap-3 px-3", children: [
|
|
4912
4926
|
/* @__PURE__ */ e.jsx("p", { className: "text-[14px] leading-5 font-bold text-[#374151]", children: f.performerLabel }),
|
|
4913
|
-
/* @__PURE__ */ e.jsx("div", { className: "flex w-full flex-wrap items-center gap-2", children: l.filter((p) => p.trim().length > 0).map((p,
|
|
4914
|
-
|
|
4927
|
+
/* @__PURE__ */ e.jsx("div", { className: "flex w-full flex-wrap items-center gap-2", children: l.filter((p) => p.trim().length > 0).map((p, C) => /* @__PURE__ */ e.jsx(Zt, { children: /* @__PURE__ */ e.jsxs("span", { className: "text-[12px] leading-4 font-semibold text-[#374151]", children: [
|
|
4928
|
+
C + 1,
|
|
4915
4929
|
". ",
|
|
4916
4930
|
p
|
|
4917
|
-
] }) },
|
|
4931
|
+
] }) }, C)) })
|
|
4918
4932
|
] }),
|
|
4919
4933
|
/* @__PURE__ */ e.jsx("div", { className: "h-px w-full bg-[#e5e7eb]" }),
|
|
4920
4934
|
/* @__PURE__ */ e.jsxs("div", { className: "flex w-full flex-col gap-2 px-3", children: [
|
|
@@ -5161,64 +5175,64 @@ function _l({
|
|
|
5161
5175
|
copy: f,
|
|
5162
5176
|
proceedCtaLabel: b,
|
|
5163
5177
|
proceedButtonProps: p,
|
|
5164
|
-
onProceedPayment:
|
|
5165
|
-
onProceedCtaClick:
|
|
5178
|
+
onProceedPayment: C,
|
|
5179
|
+
onProceedCtaClick: y,
|
|
5166
5180
|
onConfirmModalOpen: j,
|
|
5167
|
-
onConfirmEditDetailsClick:
|
|
5168
|
-
onConfirmModalDismiss:
|
|
5169
|
-
onGotraInfoOpen:
|
|
5170
|
-
onGotraInfoOkayClick:
|
|
5171
|
-
className:
|
|
5181
|
+
onConfirmEditDetailsClick: v,
|
|
5182
|
+
onConfirmModalDismiss: _,
|
|
5183
|
+
onGotraInfoOpen: M,
|
|
5184
|
+
onGotraInfoOkayClick: G,
|
|
5185
|
+
className: B
|
|
5172
5186
|
}) {
|
|
5173
|
-
const [z, D] =
|
|
5174
|
-
Object.keys(
|
|
5175
|
-
) :
|
|
5176
|
-
const q = xn(
|
|
5177
|
-
return
|
|
5178
|
-
},
|
|
5187
|
+
const [z, D] = V(!1), [W, $] = V(!1), P = dn(t), L = f ? Object.fromEntries(
|
|
5188
|
+
Object.keys(P).map((w) => [w, f[w] || P[w]])
|
|
5189
|
+
) : P, F = wa(t), Q = (w) => {
|
|
5190
|
+
const q = xn(w + 1, t);
|
|
5191
|
+
return w === 0 ? `*${q} ${L.kartaNameLabel}` : `${q} ${L.kartaNameLabel} ${L.kartaNameOptionalSuffix}`;
|
|
5192
|
+
}, U = (w) => s({ ...a, ...w }), ee = (w, q) => {
|
|
5179
5193
|
const ae = [...a.kartaNames];
|
|
5180
|
-
ae[
|
|
5181
|
-
}, Z = (
|
|
5182
|
-
|
|
5194
|
+
ae[w] = Qt(q), U({ kartaNames: ae });
|
|
5195
|
+
}, Z = (w, q) => {
|
|
5196
|
+
U({
|
|
5183
5197
|
ancestors: a.ancestors.map(
|
|
5184
|
-
(ae) => ae.id ===
|
|
5198
|
+
(ae) => ae.id === w ? { ...ae, value: Qt(q) } : ae
|
|
5185
5199
|
)
|
|
5186
5200
|
});
|
|
5187
|
-
}, [
|
|
5201
|
+
}, [ne, le] = V(
|
|
5188
5202
|
/* @__PURE__ */ new Set()
|
|
5189
|
-
), T = (
|
|
5203
|
+
), T = (w) => le((q) => new Set(q).add(w)), O = (w) => w.length > 0 && !Ae(w), oe = (w) => w.value.length > 0 ? Ae(w.value) ? void 0 : L.nameMinLengthError : ne.has(w.id) ? L.ancestorNameRequiredError : void 0, [de, ce] = V(!1), xe = rt(null);
|
|
5190
5204
|
at(() => {
|
|
5191
5205
|
if (!de) return;
|
|
5192
|
-
const
|
|
5206
|
+
const w = (q) => {
|
|
5193
5207
|
xe.current && !xe.current.contains(q.target) && ce(!1);
|
|
5194
5208
|
};
|
|
5195
|
-
return document.addEventListener("mousedown",
|
|
5209
|
+
return document.addEventListener("mousedown", w), () => document.removeEventListener("mousedown", w);
|
|
5196
5210
|
}, [de]);
|
|
5197
5211
|
const be = l.filter(
|
|
5198
|
-
(
|
|
5199
|
-
), ge = (
|
|
5200
|
-
|
|
5201
|
-
gotra:
|
|
5202
|
-
isGotraUnknown:
|
|
5212
|
+
(w) => w.toLowerCase().includes(a.gotra.trim().toLowerCase())
|
|
5213
|
+
), ge = (w) => {
|
|
5214
|
+
U({
|
|
5215
|
+
gotra: w,
|
|
5216
|
+
isGotraUnknown: w.trim() === L.kashyapGotraLabel
|
|
5203
5217
|
});
|
|
5204
|
-
}, je = (
|
|
5205
|
-
ge(
|
|
5218
|
+
}, je = (w) => {
|
|
5219
|
+
ge(w), ce(!1);
|
|
5206
5220
|
}, Se = () => {
|
|
5207
|
-
const
|
|
5208
|
-
|
|
5221
|
+
const w = !a.isGotraUnknown;
|
|
5222
|
+
U({ isGotraUnknown: w, gotra: w ? L.kashyapGotraLabel : "" });
|
|
5209
5223
|
}, fe = sa(tt), Be = ra(
|
|
5210
5224
|
a.whatsappNumber,
|
|
5211
5225
|
tt
|
|
5212
5226
|
).isValid, Te = mn.test(a.email), Ke = a.whatsappNumber.length > 0 && !Be, Ze = a.email.length > 0 && !Te, ve = (n ? Te : a.whatsappNumber.trim().length > 0 && Be) && Ae(a.kartaNames[0]) && // Karta names after the first are optional (see `getKartaNameLabel`) —
|
|
5213
5227
|
// left blank is fine, but a partially-typed one still has to clear
|
|
5214
5228
|
// `MIN_NAME_LENGTH` like every other name field.
|
|
5215
|
-
a.kartaNames.slice(1).every((
|
|
5229
|
+
a.kartaNames.slice(1).every((w) => w.trim().length === 0 || Ae(w)) && a.gotra.trim().length > 0 && a.ancestors.every((w) => Ae(w.value)), me = u ?? ve, ze = a.gotra.trim().length > 0 ? a.gotra : L.kashyapGotraLabel, De = n ? a.email : a.whatsappNumber, ye = t;
|
|
5216
5230
|
return /* @__PURE__ */ e.jsxs(
|
|
5217
5231
|
"div",
|
|
5218
5232
|
{
|
|
5219
5233
|
className: m(
|
|
5220
5234
|
"flex min-h-screen w-full flex-col bg-linear-to-b from-[5.546%] from-[#fbe9f0] to-[12.146%] to-[#f7f8f9]",
|
|
5221
|
-
|
|
5235
|
+
B
|
|
5222
5236
|
),
|
|
5223
5237
|
children: [
|
|
5224
5238
|
/* @__PURE__ */ e.jsxs("div", { className: "flex w-full items-center gap-3 border-b border-[#f3f4f6] bg-white px-4 py-3 drop-shadow-[0px_0px_5px_rgba(0,0,0,0.08)] ", children: [
|
|
@@ -5245,7 +5259,7 @@ function _l({
|
|
|
5245
5259
|
value: a.email,
|
|
5246
5260
|
placeholder: L.emailPlaceholder,
|
|
5247
5261
|
error: Ze,
|
|
5248
|
-
onChange: (
|
|
5262
|
+
onChange: (w) => U({ email: w }),
|
|
5249
5263
|
containerClassName: "w-full gap-0",
|
|
5250
5264
|
wrapperClassName: "h-14 rounded-xl px-4",
|
|
5251
5265
|
className: "text-[18px]"
|
|
@@ -5264,8 +5278,8 @@ function _l({
|
|
|
5264
5278
|
placeholder: L.whatsappNumberPlaceholder,
|
|
5265
5279
|
maxLength: fe,
|
|
5266
5280
|
error: Ke,
|
|
5267
|
-
onChange: (
|
|
5268
|
-
whatsappNumber:
|
|
5281
|
+
onChange: (w) => U({
|
|
5282
|
+
whatsappNumber: w.replace(/\D/g, "").slice(0, fe)
|
|
5269
5283
|
}),
|
|
5270
5284
|
containerClassName: "w-auto flex-1 gap-0",
|
|
5271
5285
|
wrapperClassName: "h-14 rounded-xl px-4",
|
|
@@ -5286,20 +5300,20 @@ function _l({
|
|
|
5286
5300
|
),
|
|
5287
5301
|
/* @__PURE__ */ e.jsx("p", { className: "flex-1 text-[16px] leading-[22px] font-bold text-[#22272b]", children: L.kartaNameSectionTitle })
|
|
5288
5302
|
] }),
|
|
5289
|
-
/* @__PURE__ */ e.jsx("div", { className: "flex w-full flex-col gap-2.5", children: a.kartaNames.map((
|
|
5303
|
+
/* @__PURE__ */ e.jsx("div", { className: "flex w-full flex-col gap-2.5", children: a.kartaNames.map((w, q) => /* @__PURE__ */ e.jsx(
|
|
5290
5304
|
ue,
|
|
5291
5305
|
{
|
|
5292
|
-
label:
|
|
5306
|
+
label: Q(q),
|
|
5293
5307
|
placeholder: L.kartaNamePlaceholder,
|
|
5294
|
-
value:
|
|
5308
|
+
value: w,
|
|
5295
5309
|
maxLength: et,
|
|
5296
5310
|
showCharCount: !0,
|
|
5297
|
-
error: O(
|
|
5298
|
-
supportingText: O(
|
|
5311
|
+
error: O(w),
|
|
5312
|
+
supportingText: O(w) ? L.nameMinLengthError : void 0,
|
|
5299
5313
|
wrapperClassName: m(
|
|
5300
5314
|
"h-12 rounded-xl"
|
|
5301
5315
|
),
|
|
5302
|
-
onChange: (ae) =>
|
|
5316
|
+
onChange: (ae) => ee(q, ae)
|
|
5303
5317
|
},
|
|
5304
5318
|
q
|
|
5305
5319
|
)) })
|
|
@@ -5324,8 +5338,8 @@ function _l({
|
|
|
5324
5338
|
maxLength: et,
|
|
5325
5339
|
autoComplete: "off",
|
|
5326
5340
|
onFocus: () => ce(!0),
|
|
5327
|
-
onChange: (
|
|
5328
|
-
ge(
|
|
5341
|
+
onChange: (w) => {
|
|
5342
|
+
ge(w.target.value), ce(!0);
|
|
5329
5343
|
},
|
|
5330
5344
|
className: "w-full min-w-0 flex-1 border-0 bg-transparent p-0 text-[16px] leading-5.5 font-medium text-[#374151] placeholder:text-[#ced1d7] focus:outline-none focus:ring-0"
|
|
5331
5345
|
}
|
|
@@ -5335,9 +5349,9 @@ function _l({
|
|
|
5335
5349
|
{
|
|
5336
5350
|
type: "button",
|
|
5337
5351
|
onClick: () => {
|
|
5338
|
-
|
|
5352
|
+
$(!0), M?.();
|
|
5339
5353
|
},
|
|
5340
|
-
"aria-label":
|
|
5354
|
+
"aria-label": F.heading,
|
|
5341
5355
|
className: "flex size-6 shrink-0 items-center justify-center border-0 bg-transparent p-0 text-[#9ca3af]",
|
|
5342
5356
|
children: /* @__PURE__ */ e.jsx(he, { size: 24, "aria-hidden": !0 })
|
|
5343
5357
|
}
|
|
@@ -5348,20 +5362,20 @@ function _l({
|
|
|
5348
5362
|
{
|
|
5349
5363
|
role: "listbox",
|
|
5350
5364
|
className: "absolute top-[calc(100%+4px)] left-0 z-10 max-h-60 w-full overflow-y-auto rounded-xl border border-[#e5e7eb] bg-white py-1 shadow-lg",
|
|
5351
|
-
children: be.map((
|
|
5365
|
+
children: be.map((w) => /* @__PURE__ */ e.jsx(
|
|
5352
5366
|
"button",
|
|
5353
5367
|
{
|
|
5354
5368
|
type: "button",
|
|
5355
5369
|
role: "option",
|
|
5356
|
-
"aria-selected":
|
|
5357
|
-
onClick: () => je(
|
|
5370
|
+
"aria-selected": w === a.gotra,
|
|
5371
|
+
onClick: () => je(w),
|
|
5358
5372
|
className: m(
|
|
5359
5373
|
"flex w-full items-center px-3 py-2 text-left text-[14px] font-medium text-[#1d2125] hover:bg-[#f9fafb]",
|
|
5360
|
-
|
|
5374
|
+
w === a.gotra && "bg-[#fff9e9]"
|
|
5361
5375
|
),
|
|
5362
|
-
children:
|
|
5376
|
+
children: w
|
|
5363
5377
|
},
|
|
5364
|
-
|
|
5378
|
+
w
|
|
5365
5379
|
))
|
|
5366
5380
|
}
|
|
5367
5381
|
)
|
|
@@ -5416,13 +5430,13 @@ function _l({
|
|
|
5416
5430
|
/* @__PURE__ */ e.jsx("div", { className: "flex h-12 w-full items-center rounded-xl border border-[#d1d5db] bg-[#f3f4f6] px-3", children: /* @__PURE__ */ e.jsx("span", { className: "text-[16px] leading-5.5 font-medium text-[#374151]", children: L.sarvaPitruFieldValue }) }),
|
|
5417
5431
|
/* @__PURE__ */ e.jsx("p", { className: "px-3 text-[12px] leading-4 font-medium text-[#6b7280]", children: L.sarvaPitruHelperText })
|
|
5418
5432
|
] }),
|
|
5419
|
-
a.ancestors.map((
|
|
5420
|
-
const q = oe(
|
|
5433
|
+
a.ancestors.map((w) => {
|
|
5434
|
+
const q = oe(w);
|
|
5421
5435
|
return /* @__PURE__ */ e.jsx(
|
|
5422
5436
|
ue,
|
|
5423
5437
|
{
|
|
5424
|
-
label: `*${
|
|
5425
|
-
value:
|
|
5438
|
+
label: `*${w.label} ${L.ancestorNameFieldSuffix}`,
|
|
5439
|
+
value: w.value,
|
|
5426
5440
|
prefix: L.latePrefixLabel,
|
|
5427
5441
|
placeholder: L.kartaNamePlaceholder,
|
|
5428
5442
|
maxLength: et,
|
|
@@ -5430,10 +5444,10 @@ function _l({
|
|
|
5430
5444
|
error: q != null,
|
|
5431
5445
|
supportingText: q,
|
|
5432
5446
|
wrapperClassName: "h-12 rounded-xl",
|
|
5433
|
-
onChange: (ae) => Z(
|
|
5434
|
-
onBlur: () => T(
|
|
5447
|
+
onChange: (ae) => Z(w.id, ae),
|
|
5448
|
+
onBlur: () => T(w.id)
|
|
5435
5449
|
},
|
|
5436
|
-
|
|
5450
|
+
w.id
|
|
5437
5451
|
);
|
|
5438
5452
|
})
|
|
5439
5453
|
] })
|
|
@@ -5448,7 +5462,7 @@ function _l({
|
|
|
5448
5462
|
showInfoIcon: x,
|
|
5449
5463
|
proceedLabel: b ?? L.proceedCtaLabel,
|
|
5450
5464
|
onProceed: () => {
|
|
5451
|
-
D(!0),
|
|
5465
|
+
D(!0), y?.(), j?.();
|
|
5452
5466
|
},
|
|
5453
5467
|
growProceedButton: !0,
|
|
5454
5468
|
proceedButtonProps: {
|
|
@@ -5463,10 +5477,10 @@ function _l({
|
|
|
5463
5477
|
isGlobal: n,
|
|
5464
5478
|
isOpen: z,
|
|
5465
5479
|
onClose: () => {
|
|
5466
|
-
D(!1),
|
|
5480
|
+
D(!1), _?.();
|
|
5467
5481
|
},
|
|
5468
5482
|
onEditDetailsClick: () => {
|
|
5469
|
-
D(!1),
|
|
5483
|
+
D(!1), v?.();
|
|
5470
5484
|
},
|
|
5471
5485
|
locale: t,
|
|
5472
5486
|
ancestors: i ? [
|
|
@@ -5482,16 +5496,16 @@ function _l({
|
|
|
5482
5496
|
whatsappNumber: De,
|
|
5483
5497
|
amount: o,
|
|
5484
5498
|
onProceedPayment: () => {
|
|
5485
|
-
D(!1),
|
|
5499
|
+
D(!1), C();
|
|
5486
5500
|
}
|
|
5487
5501
|
}
|
|
5488
5502
|
),
|
|
5489
5503
|
/* @__PURE__ */ e.jsx(
|
|
5490
5504
|
cn,
|
|
5491
5505
|
{
|
|
5492
|
-
isOpen:
|
|
5493
|
-
onClose: () =>
|
|
5494
|
-
onOkayClick:
|
|
5506
|
+
isOpen: W,
|
|
5507
|
+
onClose: () => $(!1),
|
|
5508
|
+
onOkayClick: G,
|
|
5495
5509
|
locale: ye
|
|
5496
5510
|
}
|
|
5497
5511
|
)
|
|
@@ -5630,12 +5644,12 @@ function Tl({
|
|
|
5630
5644
|
saveCta: d,
|
|
5631
5645
|
maxNameLength: g = Ln
|
|
5632
5646
|
}) {
|
|
5633
|
-
const [x, u] =
|
|
5634
|
-
f(), a(
|
|
5647
|
+
const [x, u] = V([""]), f = () => u([""]), b = (y) => {
|
|
5648
|
+
f(), a(y);
|
|
5635
5649
|
}, p = () => {
|
|
5636
|
-
const
|
|
5637
|
-
|
|
5638
|
-
},
|
|
5650
|
+
const y = x.map((j) => j.trim()).filter(Boolean);
|
|
5651
|
+
y.length !== 0 && (s(y), f());
|
|
5652
|
+
}, C = x.some((y) => y.trim().length > 0);
|
|
5639
5653
|
return /* @__PURE__ */ e.jsx(
|
|
5640
5654
|
ke,
|
|
5641
5655
|
{
|
|
@@ -5652,22 +5666,22 @@ function Tl({
|
|
|
5652
5666
|
size: "xl",
|
|
5653
5667
|
className: "w-full rounded-xl",
|
|
5654
5668
|
rightIcon: /* @__PURE__ */ e.jsx(Pe, { "aria-hidden": !0 }),
|
|
5655
|
-
disabled: !
|
|
5669
|
+
disabled: !C,
|
|
5656
5670
|
onClick: p,
|
|
5657
5671
|
children: d
|
|
5658
5672
|
}
|
|
5659
5673
|
) }),
|
|
5660
5674
|
children: /* @__PURE__ */ e.jsxs("div", { className: "flex w-full flex-col gap-2.5 px-4 py-3", children: [
|
|
5661
|
-
x.map((
|
|
5675
|
+
x.map((y, j) => /* @__PURE__ */ e.jsx(
|
|
5662
5676
|
ue,
|
|
5663
5677
|
{
|
|
5664
5678
|
label: l,
|
|
5665
5679
|
placeholder: c,
|
|
5666
|
-
value:
|
|
5680
|
+
value: y,
|
|
5667
5681
|
prefix: i,
|
|
5668
5682
|
maxLength: g,
|
|
5669
5683
|
showCharCount: !0,
|
|
5670
|
-
onChange: (
|
|
5684
|
+
onChange: (v) => u((_) => _.map((M, G) => G === j ? v : M))
|
|
5671
5685
|
},
|
|
5672
5686
|
j
|
|
5673
5687
|
)),
|
|
@@ -5678,7 +5692,7 @@ function Tl({
|
|
|
5678
5692
|
size: "sm",
|
|
5679
5693
|
className: "self-start text-[#f75e22]",
|
|
5680
5694
|
leftIcon: /* @__PURE__ */ e.jsx(Cs, { "aria-hidden": !0 }),
|
|
5681
|
-
onClick: () => u((
|
|
5695
|
+
onClick: () => u((y) => [...y, ""]),
|
|
5682
5696
|
children: o
|
|
5683
5697
|
}
|
|
5684
5698
|
)
|