@srimandir/pitru-paksh-common 3.1.2 → 3.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pitru-paksh-common.js +199 -202
- package/dist/pitru-paksh-common.umd.cjs +6 -6
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createI18n as Ga, cn as m, BottomSheet as
|
|
1
|
+
import { createI18n as Ga, cn as m, BottomSheet as Ie, DEFAULT_COUNTRIES as Ua, getMaxLengthForCountry as sa, validatePhoneByCountryCode as ra, getFlagEmoji as Ka } from "@srimandir/common";
|
|
2
2
|
import { cn as Wl } from "@srimandir/common";
|
|
3
3
|
import * as Za from "react";
|
|
4
4
|
import k, { useState as V, useRef as Ze, useMemo as $e, useEffect as We, forwardRef as Ya, Fragment as qa } from "react";
|
|
@@ -258,7 +258,7 @@ const Un = ["en", "hi", "kn", "te"], Ja = {
|
|
|
258
258
|
kn: ts,
|
|
259
259
|
te: as
|
|
260
260
|
}, na = Ga(rt), Kn = na.I18nProvider;
|
|
261
|
-
function
|
|
261
|
+
function ke() {
|
|
262
262
|
return na.useI18n();
|
|
263
263
|
}
|
|
264
264
|
const Nt = (t, a) => (rt[t] ?? rt.en)[a];
|
|
@@ -281,26 +281,26 @@ var Ee = {};
|
|
|
281
281
|
var Ct;
|
|
282
282
|
function rs() {
|
|
283
283
|
return Ct || (Ct = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
284
|
-
var t = k, a = /* @__PURE__ */ Symbol.for("react.element"), r = /* @__PURE__ */ Symbol.for("react.portal"), n = /* @__PURE__ */ Symbol.for("react.fragment"), l = /* @__PURE__ */ Symbol.for("react.strict_mode"), i = /* @__PURE__ */ Symbol.for("react.profiler"), u = /* @__PURE__ */ Symbol.for("react.provider"), o = /* @__PURE__ */ Symbol.for("react.context"), c = /* @__PURE__ */ Symbol.for("react.forward_ref"), g = /* @__PURE__ */ Symbol.for("react.suspense"), x = /* @__PURE__ */ Symbol.for("react.suspense_list"), d = /* @__PURE__ */ Symbol.for("react.memo"), f = /* @__PURE__ */ Symbol.for("react.lazy"), b = /* @__PURE__ */ Symbol.for("react.offscreen"), p = Symbol.iterator,
|
|
284
|
+
var t = k, a = /* @__PURE__ */ Symbol.for("react.element"), r = /* @__PURE__ */ Symbol.for("react.portal"), n = /* @__PURE__ */ Symbol.for("react.fragment"), l = /* @__PURE__ */ Symbol.for("react.strict_mode"), i = /* @__PURE__ */ Symbol.for("react.profiler"), u = /* @__PURE__ */ Symbol.for("react.provider"), o = /* @__PURE__ */ Symbol.for("react.context"), c = /* @__PURE__ */ Symbol.for("react.forward_ref"), g = /* @__PURE__ */ Symbol.for("react.suspense"), x = /* @__PURE__ */ Symbol.for("react.suspense_list"), d = /* @__PURE__ */ Symbol.for("react.memo"), f = /* @__PURE__ */ Symbol.for("react.lazy"), b = /* @__PURE__ */ Symbol.for("react.offscreen"), p = Symbol.iterator, C = "@@iterator";
|
|
285
285
|
function y(s) {
|
|
286
286
|
if (s === null || typeof s != "object")
|
|
287
287
|
return null;
|
|
288
|
-
var h = p && s[p] || s[
|
|
288
|
+
var h = p && s[p] || s[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
292
|
function v(s) {
|
|
293
293
|
{
|
|
294
|
-
for (var h = arguments.length,
|
|
295
|
-
|
|
296
|
-
_("error", s,
|
|
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", s, N);
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
|
-
function _(s, h,
|
|
299
|
+
function _(s, h, N) {
|
|
300
300
|
{
|
|
301
301
|
var S = j.ReactDebugCurrentFrame, I = S.getStackAddendum();
|
|
302
|
-
I !== "" && (h += "%s",
|
|
303
|
-
var H =
|
|
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[s], console, H);
|
|
@@ -315,12 +315,12 @@ function rs() {
|
|
|
315
315
|
// with.
|
|
316
316
|
s.$$typeof === W || s.getModuleId !== void 0));
|
|
317
317
|
}
|
|
318
|
-
function P(s, h,
|
|
318
|
+
function P(s, h, N) {
|
|
319
319
|
var S = s.displayName;
|
|
320
320
|
if (S)
|
|
321
321
|
return S;
|
|
322
322
|
var I = h.displayName || h.name || "";
|
|
323
|
-
return I !== "" ?
|
|
323
|
+
return I !== "" ? N + "(" + I + ")" : N;
|
|
324
324
|
}
|
|
325
325
|
function L(s) {
|
|
326
326
|
return s.displayName || "Context";
|
|
@@ -352,8 +352,8 @@ function rs() {
|
|
|
352
352
|
var h = s;
|
|
353
353
|
return L(h) + ".Consumer";
|
|
354
354
|
case u:
|
|
355
|
-
var
|
|
356
|
-
return L(
|
|
355
|
+
var N = s;
|
|
356
|
+
return L(N._context) + ".Provider";
|
|
357
357
|
case c:
|
|
358
358
|
return P(s, s.render, "ForwardRef");
|
|
359
359
|
case d:
|
|
@@ -433,7 +433,7 @@ function rs() {
|
|
|
433
433
|
}
|
|
434
434
|
}
|
|
435
435
|
var be = j.ReactCurrentDispatcher, ge;
|
|
436
|
-
function je(s, h,
|
|
436
|
+
function je(s, h, N) {
|
|
437
437
|
{
|
|
438
438
|
if (ge === void 0)
|
|
439
439
|
try {
|
|
@@ -455,9 +455,9 @@ function rs() {
|
|
|
455
455
|
if (!s || Se)
|
|
456
456
|
return "";
|
|
457
457
|
{
|
|
458
|
-
var
|
|
459
|
-
if (
|
|
460
|
-
return
|
|
458
|
+
var N = fe.get(s);
|
|
459
|
+
if (N !== void 0)
|
|
460
|
+
return N;
|
|
461
461
|
}
|
|
462
462
|
var S;
|
|
463
463
|
Se = !0;
|
|
@@ -522,14 +522,14 @@ function rs() {
|
|
|
522
522
|
var we = s ? s.displayName || s.name : "", pe = we ? je(we) : "";
|
|
523
523
|
return typeof s == "function" && fe.set(s, pe), pe;
|
|
524
524
|
}
|
|
525
|
-
function Ye(s, h,
|
|
525
|
+
function Ye(s, h, N) {
|
|
526
526
|
return Te(s, !1);
|
|
527
527
|
}
|
|
528
528
|
function qe(s) {
|
|
529
529
|
var h = s.prototype;
|
|
530
530
|
return !!(h && h.isReactComponent);
|
|
531
531
|
}
|
|
532
|
-
function ve(s, h,
|
|
532
|
+
function ve(s, h, N) {
|
|
533
533
|
if (s == null)
|
|
534
534
|
return "";
|
|
535
535
|
if (typeof s == "function")
|
|
@@ -547,11 +547,11 @@ function rs() {
|
|
|
547
547
|
case c:
|
|
548
548
|
return Ye(s.render);
|
|
549
549
|
case d:
|
|
550
|
-
return ve(s.type, h,
|
|
550
|
+
return ve(s.type, h, N);
|
|
551
551
|
case f: {
|
|
552
552
|
var S = s, I = S._payload, H = S._init;
|
|
553
553
|
try {
|
|
554
|
-
return ve(H(I), h,
|
|
554
|
+
return ve(H(I), h, N);
|
|
555
555
|
} catch {
|
|
556
556
|
}
|
|
557
557
|
}
|
|
@@ -561,12 +561,12 @@ function rs() {
|
|
|
561
561
|
var me = Object.prototype.hasOwnProperty, ze = {}, De = j.ReactDebugCurrentFrame;
|
|
562
562
|
function ye(s) {
|
|
563
563
|
if (s) {
|
|
564
|
-
var h = s._owner,
|
|
565
|
-
De.setExtraStackFrame(
|
|
564
|
+
var h = s._owner, N = ve(s.type, s._source, h ? h.type : null);
|
|
565
|
+
De.setExtraStackFrame(N);
|
|
566
566
|
} else
|
|
567
567
|
De.setExtraStackFrame(null);
|
|
568
568
|
}
|
|
569
|
-
function
|
|
569
|
+
function w(s, h, N, S, I) {
|
|
570
570
|
{
|
|
571
571
|
var H = Function.call.bind(me);
|
|
572
572
|
for (var A in s)
|
|
@@ -574,14 +574,14 @@ function rs() {
|
|
|
574
574
|
var R = void 0;
|
|
575
575
|
try {
|
|
576
576
|
if (typeof s[A] != "function") {
|
|
577
|
-
var te = Error((S || "React class") + ": " +
|
|
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 s[A] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
578
578
|
throw te.name = "Invariant Violation", te;
|
|
579
579
|
}
|
|
580
|
-
R = s[A](h, A, S,
|
|
580
|
+
R = s[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(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",
|
|
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
|
}
|
|
@@ -591,8 +591,8 @@ function rs() {
|
|
|
591
591
|
}
|
|
592
592
|
function La(s) {
|
|
593
593
|
{
|
|
594
|
-
var h = typeof Symbol == "function" && Symbol.toStringTag,
|
|
595
|
-
return
|
|
594
|
+
var h = typeof Symbol == "function" && Symbol.toStringTag, N = h && s[Symbol.toStringTag] || s.constructor.name || "Object";
|
|
595
|
+
return N;
|
|
596
596
|
}
|
|
597
597
|
}
|
|
598
598
|
function ka(s) {
|
|
@@ -636,34 +636,34 @@ function rs() {
|
|
|
636
636
|
}
|
|
637
637
|
function Ra(s, h) {
|
|
638
638
|
{
|
|
639
|
-
var
|
|
639
|
+
var N = function() {
|
|
640
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
|
-
|
|
643
|
-
get:
|
|
642
|
+
N.isReactWarning = !0, Object.defineProperty(s, "key", {
|
|
643
|
+
get: N,
|
|
644
644
|
configurable: !0
|
|
645
645
|
});
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
648
|
function Ea(s, h) {
|
|
649
649
|
{
|
|
650
|
-
var
|
|
650
|
+
var N = function() {
|
|
651
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
|
-
|
|
654
|
-
get:
|
|
653
|
+
N.isReactWarning = !0, Object.defineProperty(s, "ref", {
|
|
654
|
+
get: N,
|
|
655
655
|
configurable: !0
|
|
656
656
|
});
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
|
-
var Aa = function(s, h,
|
|
659
|
+
var Aa = function(s, 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,
|
|
663
663
|
// Built-in properties that belong on the element
|
|
664
664
|
type: s,
|
|
665
665
|
key: h,
|
|
666
|
-
ref:
|
|
666
|
+
ref: N,
|
|
667
667
|
props: A,
|
|
668
668
|
// Record the component responsible for creating this element.
|
|
669
669
|
_owner: H
|
|
@@ -685,10 +685,10 @@ function rs() {
|
|
|
685
685
|
value: I
|
|
686
686
|
}), Object.freeze && (Object.freeze(R.props), Object.freeze(R)), R;
|
|
687
687
|
};
|
|
688
|
-
function Oa(s, h,
|
|
688
|
+
function Oa(s, h, N, S, I) {
|
|
689
689
|
{
|
|
690
690
|
var H, A = {}, R = null, te = null;
|
|
691
|
-
|
|
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
692
|
for (H in h)
|
|
693
693
|
me.call(h, H) && !_a.hasOwnProperty(H) && (A[H] = h[H]);
|
|
694
694
|
if (s && s.defaultProps) {
|
|
@@ -706,8 +706,8 @@ function rs() {
|
|
|
706
706
|
var Xe = j.ReactCurrentOwner, pt = j.ReactDebugCurrentFrame;
|
|
707
707
|
function Ne(s) {
|
|
708
708
|
if (s) {
|
|
709
|
-
var h = s._owner,
|
|
710
|
-
pt.setExtraStackFrame(
|
|
709
|
+
var h = s._owner, N = ve(s.type, s._source, h ? h.type : null);
|
|
710
|
+
pt.setExtraStackFrame(N);
|
|
711
711
|
} else
|
|
712
712
|
pt.setExtraStackFrame(null);
|
|
713
713
|
}
|
|
@@ -736,10 +736,10 @@ Check the render method of \`` + s + "`.";
|
|
|
736
736
|
{
|
|
737
737
|
var h = ht();
|
|
738
738
|
if (!h) {
|
|
739
|
-
var
|
|
740
|
-
|
|
739
|
+
var N = typeof s == "string" ? s : s.displayName || s.name;
|
|
740
|
+
N && (h = `
|
|
741
741
|
|
|
742
|
-
Check the top-level render call using <` +
|
|
742
|
+
Check the top-level render call using <` + N + ">.");
|
|
743
743
|
}
|
|
744
744
|
return h;
|
|
745
745
|
}
|
|
@@ -749,12 +749,12 @@ Check the top-level render call using <` + w + ">.");
|
|
|
749
749
|
if (!s._store || s._store.validated || s.key != null)
|
|
750
750
|
return;
|
|
751
751
|
s._store.validated = !0;
|
|
752
|
-
var
|
|
753
|
-
if (bt[
|
|
752
|
+
var N = Ia(h);
|
|
753
|
+
if (bt[N])
|
|
754
754
|
return;
|
|
755
|
-
bt[
|
|
755
|
+
bt[N] = !0;
|
|
756
756
|
var S = "";
|
|
757
|
-
s && s._owner && s._owner !== Xe.current && (S = " It was passed a child from " + F(s._owner.type) + "."), Ne(s), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',
|
|
757
|
+
s && s._owner && s._owner !== Xe.current && (S = " It was passed a child from " + F(s._owner.type) + "."), Ne(s), 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(s, h) {
|
|
@@ -762,8 +762,8 @@ Check the top-level render call using <` + w + ">.");
|
|
|
762
762
|
if (typeof s != "object")
|
|
763
763
|
return;
|
|
764
764
|
if (ae(s))
|
|
765
|
-
for (var
|
|
766
|
-
var S = s[
|
|
765
|
+
for (var N = 0; N < s.length; N++) {
|
|
766
|
+
var S = s[N];
|
|
767
767
|
Je(S) && gt(S, h);
|
|
768
768
|
}
|
|
769
769
|
else if (Je(s))
|
|
@@ -781,18 +781,18 @@ Check the top-level render call using <` + w + ">.");
|
|
|
781
781
|
var h = s.type;
|
|
782
782
|
if (h == null || typeof h == "string")
|
|
783
783
|
return;
|
|
784
|
-
var
|
|
784
|
+
var N;
|
|
785
785
|
if (typeof h == "function")
|
|
786
|
-
|
|
786
|
+
N = h.propTypes;
|
|
787
787
|
else if (typeof h == "object" && (h.$$typeof === c || // Note: Memo only checks outer props here.
|
|
788
788
|
// Inner props are checked in the reconciler.
|
|
789
789
|
h.$$typeof === d))
|
|
790
|
-
|
|
790
|
+
N = h.propTypes;
|
|
791
791
|
else
|
|
792
792
|
return;
|
|
793
|
-
if (
|
|
793
|
+
if (N) {
|
|
794
794
|
var S = F(h);
|
|
795
|
-
|
|
795
|
+
w(N, s.props, "prop", S, s);
|
|
796
796
|
} else if (h.PropTypes !== void 0 && !Qe) {
|
|
797
797
|
Qe = !0;
|
|
798
798
|
var I = F(h);
|
|
@@ -803,8 +803,8 @@ Check the top-level render call using <` + w + ">.");
|
|
|
803
803
|
}
|
|
804
804
|
function za(s) {
|
|
805
805
|
{
|
|
806
|
-
for (var h = Object.keys(s.props),
|
|
807
|
-
var S = h[
|
|
806
|
+
for (var h = Object.keys(s.props), N = 0; N < h.length; N++) {
|
|
807
|
+
var S = h[N];
|
|
808
808
|
if (S !== "children" && S !== "key") {
|
|
809
809
|
Ne(s), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", S), Ne(null);
|
|
810
810
|
break;
|
|
@@ -814,7 +814,7 @@ Check the top-level render call using <` + w + ">.");
|
|
|
814
814
|
}
|
|
815
815
|
}
|
|
816
816
|
var vt = {};
|
|
817
|
-
function yt(s, h,
|
|
817
|
+
function yt(s, h, N, S, I, H) {
|
|
818
818
|
{
|
|
819
819
|
var A = $(s);
|
|
820
820
|
if (!A) {
|
|
@@ -825,7 +825,7 @@ Check the top-level render call using <` + w + ">.");
|
|
|
825
825
|
var K;
|
|
826
826
|
s === null ? K = "null" : ae(s) ? K = "array" : s !== void 0 && s.$$typeof === a ? (K = "<" + (F(s.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : K = typeof s, 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(s, h,
|
|
828
|
+
var Y = Oa(s, h, N, I, H);
|
|
829
829
|
if (Y == null)
|
|
830
830
|
return Y;
|
|
831
831
|
if (A) {
|
|
@@ -858,11 +858,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
858
858
|
return s === n ? za(Y) : Ba(Y), Y;
|
|
859
859
|
}
|
|
860
860
|
}
|
|
861
|
-
function Da(s, h,
|
|
862
|
-
return yt(s, h,
|
|
861
|
+
function Da(s, h, N) {
|
|
862
|
+
return yt(s, h, N, !0);
|
|
863
863
|
}
|
|
864
|
-
function Fa(s, h,
|
|
865
|
-
return yt(s, h,
|
|
864
|
+
function Fa(s, h, N) {
|
|
865
|
+
return yt(s, h, N, !1);
|
|
866
866
|
}
|
|
867
867
|
var Ha = Fa, Va = Da;
|
|
868
868
|
Ee.Fragment = n, Ee.jsx = Ha, Ee.jsxs = Va;
|
|
@@ -1211,7 +1211,7 @@ function Xn({
|
|
|
1211
1211
|
removeWarningConfirmLabel: f,
|
|
1212
1212
|
removeWarningCancelLabel: b,
|
|
1213
1213
|
onRemoveWarningShown: p,
|
|
1214
|
-
onRemoveWarningCancel:
|
|
1214
|
+
onRemoveWarningCancel: C
|
|
1215
1215
|
}) {
|
|
1216
1216
|
const [y, j] = V(null);
|
|
1217
1217
|
if (!t)
|
|
@@ -1325,7 +1325,7 @@ function Xn({
|
|
|
1325
1325
|
y != null && i(y), j(null);
|
|
1326
1326
|
},
|
|
1327
1327
|
onCancel: () => {
|
|
1328
|
-
v &&
|
|
1328
|
+
v && C?.(v), j(null);
|
|
1329
1329
|
}
|
|
1330
1330
|
}
|
|
1331
1331
|
)
|
|
@@ -1370,7 +1370,7 @@ function Ss(t) {
|
|
|
1370
1370
|
function xa(t) {
|
|
1371
1371
|
return E({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "rect", attr: { x: "3", y: "4", width: "18", height: "18", rx: "2", ry: "2" }, child: [] }, { tag: "line", attr: { x1: "16", y1: "2", x2: "16", y2: "6" }, child: [] }, { tag: "line", attr: { x1: "8", y1: "2", x2: "8", y2: "6" }, child: [] }, { tag: "line", attr: { x1: "3", y1: "10", x2: "21", y2: "10" }, child: [] }] })(t);
|
|
1372
1372
|
}
|
|
1373
|
-
function
|
|
1373
|
+
function _e(t) {
|
|
1374
1374
|
return E({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "line", attr: { x1: "5", y1: "12", x2: "19", y2: "12" }, child: [] }, { tag: "polyline", attr: { points: "12 5 19 12 12 19" }, child: [] }] })(t);
|
|
1375
1375
|
}
|
|
1376
1376
|
function lt(t) {
|
|
@@ -1384,7 +1384,7 @@ function Qn({
|
|
|
1384
1384
|
onProceedClick: l,
|
|
1385
1385
|
disabled: i
|
|
1386
1386
|
}) {
|
|
1387
|
-
const { t: u } =
|
|
1387
|
+
const { t: u } = ke();
|
|
1388
1388
|
return /* @__PURE__ */ e.jsxs(
|
|
1389
1389
|
"div",
|
|
1390
1390
|
{
|
|
@@ -1421,7 +1421,7 @@ function Qn({
|
|
|
1421
1421
|
},
|
|
1422
1422
|
children: [
|
|
1423
1423
|
r ?? u("outcomeStickyCtaProceedLabel"),
|
|
1424
|
-
/* @__PURE__ */ e.jsx(
|
|
1424
|
+
/* @__PURE__ */ e.jsx(_e, { "aria-hidden": !0, className: "size-[18px] text-white" })
|
|
1425
1425
|
]
|
|
1426
1426
|
}
|
|
1427
1427
|
)
|
|
@@ -1431,7 +1431,7 @@ function Qn({
|
|
|
1431
1431
|
}
|
|
1432
1432
|
const Ts = "https://srm-sbox-cdn.a4b.io/yoda/1788262425704.svg";
|
|
1433
1433
|
function Jn() {
|
|
1434
|
-
const { t } =
|
|
1434
|
+
const { t } = ke();
|
|
1435
1435
|
return /* @__PURE__ */ e.jsxs("div", { className: "flex w-full flex-col items-center gap-3 rounded-[20px] border border-[#e5e3fd] bg-white p-3 shadow-[0px_0px_20px_0px_rgba(215,99,28,0.05)]", children: [
|
|
1436
1436
|
/* @__PURE__ */ e.jsx("img", { src: Ts, alt: "", "aria-hidden": !0, className: "size-6" }),
|
|
1437
1437
|
/* @__PURE__ */ e.jsxs("div", { className: "flex w-full flex-col items-center gap-1", children: [
|
|
@@ -1442,7 +1442,7 @@ function Jn() {
|
|
|
1442
1442
|
}
|
|
1443
1443
|
const Rs = "https://srm-sbox-cdn.a4b.io/yoda/1788261755933.webp", Es = "https://srm-sbox-cdn.a4b.io/yoda/1788261771996.webp", St = "https://srm-sbox-cdn.a4b.io/yoda/1788261812755.svg", As = "linear-gradient(28.44deg, #fbe9f0 0.54%, #ffffff 18.28%, #ffffff 53.34%, #fcccdf 100%), linear-gradient(90deg, #fff9e9 0%, #fff9e9 100%)";
|
|
1444
1444
|
function el() {
|
|
1445
|
-
const { t } =
|
|
1445
|
+
const { t } = ke();
|
|
1446
1446
|
return /* @__PURE__ */ e.jsxs(
|
|
1447
1447
|
"section",
|
|
1448
1448
|
{
|
|
@@ -1535,7 +1535,7 @@ const Tt = "https://srm-cdn.a4b.io/yoda/1788322995409.svg", Rt = "https://srm-cd
|
|
|
1535
1535
|
}
|
|
1536
1536
|
];
|
|
1537
1537
|
function tl() {
|
|
1538
|
-
const { t } =
|
|
1538
|
+
const { t } = ke();
|
|
1539
1539
|
return /* @__PURE__ */ e.jsxs("section", { className: "flex w-full flex-col items-center justify-center gap-5 px-4 py-8", children: [
|
|
1540
1540
|
/* @__PURE__ */ e.jsxs("div", { className: "flex w-full items-center gap-2", children: [
|
|
1541
1541
|
/* @__PURE__ */ e.jsxs("div", { className: "flex flex-1 items-center gap-1", children: [
|
|
@@ -1622,7 +1622,7 @@ const Et = "https://srm-sbox-cdn.a4b.io/yoda/1788262151570.svg", At = "https://s
|
|
|
1622
1622
|
}
|
|
1623
1623
|
];
|
|
1624
1624
|
function al() {
|
|
1625
|
-
const { t } =
|
|
1625
|
+
const { t } = ke();
|
|
1626
1626
|
return /* @__PURE__ */ e.jsxs("section", { className: "flex w-full flex-col items-center gap-4 py-4", children: [
|
|
1627
1627
|
/* @__PURE__ */ e.jsxs("div", { className: "flex w-full items-center gap-2 px-4", children: [
|
|
1628
1628
|
/* @__PURE__ */ e.jsxs("div", { className: "flex flex-1 items-center gap-1", children: [
|
|
@@ -1789,7 +1789,7 @@ function nl({
|
|
|
1789
1789
|
imageAlt: r = "",
|
|
1790
1790
|
paragraphs: n
|
|
1791
1791
|
}) {
|
|
1792
|
-
const { t: l } =
|
|
1792
|
+
const { t: l } = ke(), [i, u] = V(!1);
|
|
1793
1793
|
return /* @__PURE__ */ e.jsxs("section", { className: "flex w-full flex-col items-start bg-white px-4 py-4", children: [
|
|
1794
1794
|
/* @__PURE__ */ e.jsx("p", { className: "w-full text-lg font-bold leading-6 text-[#242424]", children: t }),
|
|
1795
1795
|
/* @__PURE__ */ e.jsxs("div", { className: "flex w-full flex-col items-start pt-4", children: [
|
|
@@ -1964,7 +1964,7 @@ function ll({
|
|
|
1964
1964
|
] })
|
|
1965
1965
|
] }),
|
|
1966
1966
|
/* @__PURE__ */ e.jsxs("div", { className: "flex w-full flex-col items-start gap-2 px-4 pt-3", children: [
|
|
1967
|
-
/* @__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(
|
|
1968
1968
|
it,
|
|
1969
1969
|
{
|
|
1970
1970
|
"aria-hidden": !0,
|
|
@@ -2067,7 +2067,7 @@ const rr = Xa(
|
|
|
2067
2067
|
)
|
|
2068
2068
|
);
|
|
2069
2069
|
X.displayName = "Button";
|
|
2070
|
-
function
|
|
2070
|
+
function Pe(t) {
|
|
2071
2071
|
return t.isOpen ? /* @__PURE__ */ e.jsx(
|
|
2072
2072
|
"div",
|
|
2073
2073
|
{
|
|
@@ -2077,7 +2077,7 @@ function Ie(t) {
|
|
|
2077
2077
|
maxWidth: "var(--pitru-paksh-sheet-overlay-max-width, 28rem)",
|
|
2078
2078
|
zIndex: 1100
|
|
2079
2079
|
},
|
|
2080
|
-
children: /* @__PURE__ */ e.jsx(
|
|
2080
|
+
children: /* @__PURE__ */ e.jsx(Ie, { ...t })
|
|
2081
2081
|
}
|
|
2082
2082
|
) : null;
|
|
2083
2083
|
}
|
|
@@ -2140,7 +2140,7 @@ const ol = ({
|
|
|
2140
2140
|
showTitleAccent: g = !1,
|
|
2141
2141
|
titleClassName: x
|
|
2142
2142
|
}) => {
|
|
2143
|
-
const [d, f] = V(l), [b, p] = V(o),
|
|
2143
|
+
const [d, f] = V(l), [b, p] = V(o), C = n && a.length > r, y = C && !d ? a.slice(0, r) : a;
|
|
2144
2144
|
return /* @__PURE__ */ e.jsxs(
|
|
2145
2145
|
"div",
|
|
2146
2146
|
{
|
|
@@ -2204,7 +2204,7 @@ const ol = ({
|
|
|
2204
2204
|
v
|
|
2205
2205
|
);
|
|
2206
2206
|
}) }),
|
|
2207
|
-
|
|
2207
|
+
C && /* @__PURE__ */ e.jsx(
|
|
2208
2208
|
X,
|
|
2209
2209
|
{
|
|
2210
2210
|
variant: "secondary",
|
|
@@ -2238,13 +2238,13 @@ const ol = ({
|
|
|
2238
2238
|
defaultOpenIndex: c = -1,
|
|
2239
2239
|
className: g = ""
|
|
2240
2240
|
}) => {
|
|
2241
|
-
const [x, d] = V(i), [f, b] = V(c), p = l && r.length > n,
|
|
2241
|
+
const [x, d] = V(i), [f, b] = V(c), p = l && r.length > n, C = p && !x ? r.slice(0, n) : r;
|
|
2242
2242
|
return /* @__PURE__ */ e.jsxs("div", { className: m("flex flex-col gap-3 bg-white px-4 py-6", g), children: [
|
|
2243
2243
|
/* @__PURE__ */ e.jsxs("h2", { className: "flex items-center gap-2 text-sm font-bold text-[#374151]", children: [
|
|
2244
2244
|
a && /* @__PURE__ */ e.jsx("span", { "aria-hidden": !0, className: "block h-[18px] w-[3px] shrink-0 bg-[#f75e22]" }),
|
|
2245
2245
|
t
|
|
2246
2246
|
] }),
|
|
2247
|
-
/* @__PURE__ */ e.jsx("div", { className: "flex w-full flex-col", children:
|
|
2247
|
+
/* @__PURE__ */ e.jsx("div", { className: "flex w-full flex-col", children: C.map((y, j) => {
|
|
2248
2248
|
const v = f === j, _ = v ? _s : Oe;
|
|
2249
2249
|
return /* @__PURE__ */ e.jsxs(
|
|
2250
2250
|
"div",
|
|
@@ -2315,10 +2315,10 @@ const ol = ({
|
|
|
2315
2315
|
autoPlay: g = !1,
|
|
2316
2316
|
onPlayToggle: x
|
|
2317
2317
|
}, d) => {
|
|
2318
|
-
const [f, b] = k.useState(!1), [p,
|
|
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
2319
|
}), P = k.useRef(null);
|
|
2320
2320
|
k.useEffect(() => {
|
|
2321
|
-
g && (b(!0),
|
|
2321
|
+
g && (b(!0), j(!1));
|
|
2322
2322
|
}, [g]);
|
|
2323
2323
|
const L = k.useCallback(() => {
|
|
2324
2324
|
P.current && clearTimeout(P.current), P.current = setTimeout(
|
|
@@ -2382,7 +2382,7 @@ const ol = ({
|
|
|
2382
2382
|
if (!T || typeof IntersectionObserver > "u") return;
|
|
2383
2383
|
const O = new IntersectionObserver(
|
|
2384
2384
|
([oe]) => {
|
|
2385
|
-
oe.isIntersecting ||
|
|
2385
|
+
oe.isIntersecting || C(!1);
|
|
2386
2386
|
},
|
|
2387
2387
|
{ threshold: 0 }
|
|
2388
2388
|
);
|
|
@@ -2419,12 +2419,8 @@ const ol = ({
|
|
|
2419
2419
|
playsInline: !0,
|
|
2420
2420
|
disablePictureInPicture: l,
|
|
2421
2421
|
disableRemotePlayback: l,
|
|
2422
|
-
onPlay:
|
|
2423
|
-
|
|
2424
|
-
},
|
|
2425
|
-
onPlaying: () => {
|
|
2426
|
-
N(!0), Z();
|
|
2427
|
-
},
|
|
2422
|
+
onPlay: Z,
|
|
2423
|
+
onPlaying: Z,
|
|
2428
2424
|
onDoubleClick: (T) => {
|
|
2429
2425
|
l && T.preventDefault();
|
|
2430
2426
|
},
|
|
@@ -2437,10 +2433,8 @@ const ol = ({
|
|
|
2437
2433
|
className: U,
|
|
2438
2434
|
onTimeUpdate: (T) => _(T.currentTarget.currentTime),
|
|
2439
2435
|
onDurationChange: (T) => G(T.currentTarget.duration),
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
onEnded: () => N(!1),
|
|
2443
|
-
onError: () => N(!1)
|
|
2436
|
+
onPause: () => C(!1),
|
|
2437
|
+
onEnded: () => C(!1)
|
|
2444
2438
|
}
|
|
2445
2439
|
),
|
|
2446
2440
|
B && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
@@ -2452,7 +2446,7 @@ const ol = ({
|
|
|
2452
2446
|
size: "lg",
|
|
2453
2447
|
"aria-label": p ? "Pause" : "Play",
|
|
2454
2448
|
className: "absolute inset-0 m-auto border border-white/20 bg-black/40 text-white! backdrop-blur-sm hover:bg-black/50",
|
|
2455
|
-
onClick: () =>
|
|
2449
|
+
onClick: () => C((T) => (x?.(!T), !T)),
|
|
2456
2450
|
children: p ? /* @__PURE__ */ e.jsx(tr, { size: 16 }) : /* @__PURE__ */ e.jsx(
|
|
2457
2451
|
Ot,
|
|
2458
2452
|
{
|
|
@@ -2500,7 +2494,7 @@ const ol = ({
|
|
|
2500
2494
|
"aria-label": "Play video",
|
|
2501
2495
|
className: "absolute inset-0 m-auto border border-white/20 bg-black/40 text-white! backdrop-blur-sm hover:bg-black/50",
|
|
2502
2496
|
onClick: () => {
|
|
2503
|
-
b(!0),
|
|
2497
|
+
b(!0), x?.(!0);
|
|
2504
2498
|
},
|
|
2505
2499
|
children: /* @__PURE__ */ e.jsx(Ot, { size: 16, style: { transform: "translateX(1px)" } })
|
|
2506
2500
|
}
|
|
@@ -2524,7 +2518,7 @@ const ir = () => /* @__PURE__ */ e.jsx("img", { src: "https://srm-cdn.a4b.io/yod
|
|
|
2524
2518
|
menuClassName: c = "",
|
|
2525
2519
|
...g
|
|
2526
2520
|
}, x) => {
|
|
2527
|
-
const [d, f] = k.useState(n), b = l !== void 0, p = b ? l : d,
|
|
2521
|
+
const [d, f] = k.useState(n), b = l !== void 0, p = b ? l : d, C = k.useCallback(
|
|
2528
2522
|
(v) => {
|
|
2529
2523
|
b || f(v), i?.(v);
|
|
2530
2524
|
},
|
|
@@ -2533,23 +2527,23 @@ const ir = () => /* @__PURE__ */ e.jsx("img", { src: "https://srm-cdn.a4b.io/yod
|
|
|
2533
2527
|
k.useImperativeHandle(x, () => y.current), k.useEffect(() => {
|
|
2534
2528
|
if (!p) return;
|
|
2535
2529
|
const v = (M) => {
|
|
2536
|
-
y.current?.contains(M.target) ||
|
|
2530
|
+
y.current?.contains(M.target) || C(!1);
|
|
2537
2531
|
}, _ = (M) => {
|
|
2538
|
-
M.key === "Escape" &&
|
|
2532
|
+
M.key === "Escape" && C(!1);
|
|
2539
2533
|
};
|
|
2540
2534
|
return document.addEventListener("mousedown", v), document.addEventListener("keydown", _), () => {
|
|
2541
2535
|
document.removeEventListener("mousedown", v), document.removeEventListener("keydown", _);
|
|
2542
2536
|
};
|
|
2543
|
-
}, [p,
|
|
2537
|
+
}, [p, C]);
|
|
2544
2538
|
const j = (v) => {
|
|
2545
|
-
r?.(v.value),
|
|
2539
|
+
r?.(v.value), C(!1);
|
|
2546
2540
|
};
|
|
2547
2541
|
return /* @__PURE__ */ e.jsxs("div", { ref: y, className: m("relative inline-block", u), ...g, children: [
|
|
2548
2542
|
/* @__PURE__ */ e.jsxs(
|
|
2549
2543
|
"button",
|
|
2550
2544
|
{
|
|
2551
2545
|
type: "button",
|
|
2552
|
-
onClick: () =>
|
|
2546
|
+
onClick: () => C(!p),
|
|
2553
2547
|
"aria-label": "Switch language",
|
|
2554
2548
|
"aria-haspopup": "listbox",
|
|
2555
2549
|
"aria-expanded": p,
|
|
@@ -2896,7 +2890,7 @@ const ot = k.forwardRef(
|
|
|
2896
2890
|
tag: f,
|
|
2897
2891
|
tagClassName: b,
|
|
2898
2892
|
children: p,
|
|
2899
|
-
note:
|
|
2893
|
+
note: C,
|
|
2900
2894
|
noteClassName: y,
|
|
2901
2895
|
className: j,
|
|
2902
2896
|
disabled: v,
|
|
@@ -2984,7 +2978,7 @@ const ot = k.forwardRef(
|
|
|
2984
2978
|
]
|
|
2985
2979
|
}
|
|
2986
2980
|
);
|
|
2987
|
-
return
|
|
2981
|
+
return C ? /* @__PURE__ */ e.jsxs("div", { className: "overflow-hidden rounded-xl bg-[#FCCF9A]", children: [
|
|
2988
2982
|
B,
|
|
2989
2983
|
/* @__PURE__ */ e.jsx(
|
|
2990
2984
|
"div",
|
|
@@ -2993,7 +2987,7 @@ const ot = k.forwardRef(
|
|
|
2993
2987
|
"px-4 py-1 text-center text-[10px] leading-3.5 font-medium bg-[#fccf9a] text-[#632E06]",
|
|
2994
2988
|
y
|
|
2995
2989
|
),
|
|
2996
|
-
children:
|
|
2990
|
+
children: C
|
|
2997
2991
|
}
|
|
2998
2992
|
)
|
|
2999
2993
|
] }) : B;
|
|
@@ -3283,11 +3277,11 @@ const fl = ({ value: t, onClick: a, className: r, ...n }) => /* @__PURE__ */ e.j
|
|
|
3283
3277
|
currencySymbol: f = "₹",
|
|
3284
3278
|
showSavedBadge: b,
|
|
3285
3279
|
savedLabel: p,
|
|
3286
|
-
action:
|
|
3280
|
+
action: C
|
|
3287
3281
|
}) => {
|
|
3288
3282
|
const y = typeof d == "number" && d > x, j = y ? Math.round((d - x) / d * 100) : 0, v = (b ?? y) && j > 0;
|
|
3289
3283
|
return /* @__PURE__ */ e.jsx(
|
|
3290
|
-
|
|
3284
|
+
Pe,
|
|
3291
3285
|
{
|
|
3292
3286
|
isOpen: t,
|
|
3293
3287
|
onClose: a,
|
|
@@ -3306,7 +3300,7 @@ const fl = ({ value: t, onClick: a, className: r, ...n }) => /* @__PURE__ */ e.j
|
|
|
3306
3300
|
] }),
|
|
3307
3301
|
v && /* @__PURE__ */ e.jsx("span", { className: re.savedBadge, children: p ?? `Save ${j}%` })
|
|
3308
3302
|
] }),
|
|
3309
|
-
|
|
3303
|
+
C && /* @__PURE__ */ e.jsx("div", { className: re.actionWrap, children: C })
|
|
3310
3304
|
] }),
|
|
3311
3305
|
children: /* @__PURE__ */ e.jsxs("div", { className: re.contentBlock, children: [
|
|
3312
3306
|
/* @__PURE__ */ e.jsx("div", { className: re.imageWrap, children: /* @__PURE__ */ e.jsx("img", { src: n, alt: l, className: re.image }) }),
|
|
@@ -3352,7 +3346,7 @@ const fl = ({ value: t, onClick: a, className: r, ...n }) => /* @__PURE__ */ e.j
|
|
|
3352
3346
|
originalPrice: f,
|
|
3353
3347
|
tag: b,
|
|
3354
3348
|
tagClassName: p,
|
|
3355
|
-
action:
|
|
3349
|
+
action: C,
|
|
3356
3350
|
sheetPrice: y,
|
|
3357
3351
|
sheetBasePrice: j,
|
|
3358
3352
|
sheetCurrencySymbol: v,
|
|
@@ -3412,7 +3406,7 @@ const fl = ({ value: t, onClick: a, className: r, ...n }) => /* @__PURE__ */ e.j
|
|
|
3412
3406
|
] }),
|
|
3413
3407
|
/* @__PURE__ */ e.jsxs("div", { className: J.imageWrap, children: [
|
|
3414
3408
|
/* @__PURE__ */ e.jsx("img", { src: t, alt: a, className: J.image }),
|
|
3415
|
-
|
|
3409
|
+
C && /* @__PURE__ */ e.jsx("div", { className: J.actionWrap, onClick: (le) => le.stopPropagation(), children: C })
|
|
3416
3410
|
] })
|
|
3417
3411
|
] })
|
|
3418
3412
|
]
|
|
@@ -3438,7 +3432,7 @@ const fl = ({ value: t, onClick: a, className: r, ...n }) => /* @__PURE__ */ e.j
|
|
|
3438
3432
|
currencySymbol: v,
|
|
3439
3433
|
showSavedBadge: _,
|
|
3440
3434
|
savedLabel: M,
|
|
3441
|
-
action:
|
|
3435
|
+
action: C
|
|
3442
3436
|
}
|
|
3443
3437
|
)
|
|
3444
3438
|
] });
|
|
@@ -3616,13 +3610,13 @@ const Zr = [
|
|
|
3616
3610
|
onInfoClick: u,
|
|
3617
3611
|
infoIconClassName: o,
|
|
3618
3612
|
proceedLabel: c,
|
|
3619
|
-
proceedIcon: g = /* @__PURE__ */ e.jsx(
|
|
3613
|
+
proceedIcon: g = /* @__PURE__ */ e.jsx(_e, { "aria-hidden": !0 }),
|
|
3620
3614
|
onProceed: x,
|
|
3621
3615
|
proceedButtonProps: d,
|
|
3622
3616
|
buttonWrapperClassName: f,
|
|
3623
3617
|
growProceedButton: b = !1,
|
|
3624
3618
|
className: p,
|
|
3625
|
-
...
|
|
3619
|
+
...C
|
|
3626
3620
|
}) => {
|
|
3627
3621
|
const y = qr(t);
|
|
3628
3622
|
return /* @__PURE__ */ e.jsxs(
|
|
@@ -3632,7 +3626,7 @@ const Zr = [
|
|
|
3632
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)]",
|
|
3633
3627
|
p
|
|
3634
3628
|
),
|
|
3635
|
-
...
|
|
3629
|
+
...C,
|
|
3636
3630
|
children: [
|
|
3637
3631
|
/* @__PURE__ */ e.jsxs("div", { className: m("min-w-0", b ? "flex-none" : "flex-1"), children: [
|
|
3638
3632
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-1.5", children: [
|
|
@@ -3781,7 +3775,7 @@ const Zr = [
|
|
|
3781
3775
|
optionsClassName: f,
|
|
3782
3776
|
trustBadges: b,
|
|
3783
3777
|
checkout: p,
|
|
3784
|
-
stickyFooter:
|
|
3778
|
+
stickyFooter: C = !0,
|
|
3785
3779
|
footerClassName: y
|
|
3786
3780
|
}) => {
|
|
3787
3781
|
const j = Xr(t), v = a ?? j.title, _ = r ?? j.description, M = n ?? j.benefits, G = b ?? {
|
|
@@ -3838,7 +3832,7 @@ const Zr = [
|
|
|
3838
3832
|
})
|
|
3839
3833
|
}
|
|
3840
3834
|
),
|
|
3841
|
-
(G || p) && /* @__PURE__ */ e.jsxs("div", { className: m(
|
|
3835
|
+
(G || p) && /* @__PURE__ */ e.jsxs("div", { className: m(C && "sticky bottom-0 z-10", y), children: [
|
|
3842
3836
|
G && /* @__PURE__ */ e.jsx(Yr, { ...G }),
|
|
3843
3837
|
p && /* @__PURE__ */ e.jsx(ct, { locale: t, ...p })
|
|
3844
3838
|
] })
|
|
@@ -3907,9 +3901,9 @@ const Zr = [
|
|
|
3907
3901
|
a && /* @__PURE__ */ e.jsx("span", { className: m("shrink-0 text-sm", r), children: a }),
|
|
3908
3902
|
b
|
|
3909
3903
|
] }),
|
|
3910
|
-
(i || p && p.length > 0) && /* @__PURE__ */ e.jsx("p", { className: m("mt-2 text-[15px] font-semibold text-[#1d2125]", c), children: p && p.length > 0 ? p.map((
|
|
3904
|
+
(i || p && p.length > 0) && /* @__PURE__ */ e.jsx("p", { className: m("mt-2 text-[15px] font-semibold text-[#1d2125]", c), children: p && p.length > 0 ? p.map((C, y) => /* @__PURE__ */ e.jsxs(k.Fragment, { children: [
|
|
3911
3905
|
y > 0 && /* @__PURE__ */ e.jsx("span", { className: "mx-1.5 text-gray-400", children: "•" }),
|
|
3912
|
-
|
|
3906
|
+
C
|
|
3913
3907
|
] }, y)) : i })
|
|
3914
3908
|
] }) });
|
|
3915
3909
|
}, $t = {
|
|
@@ -3965,7 +3959,7 @@ const Na = ({
|
|
|
3965
3959
|
className: x,
|
|
3966
3960
|
...d
|
|
3967
3961
|
}) => {
|
|
3968
|
-
const { title: f, totalLabel: b, panditFeeLabel: p, photoVideoFeeLabel:
|
|
3962
|
+
const { title: f, totalLabel: b, panditFeeLabel: p, photoVideoFeeLabel: C, freeLabel: y } = ya(t);
|
|
3969
3963
|
return /* @__PURE__ */ e.jsxs("div", { className: m("bg-white px-4 py-6", x), ...d, children: [
|
|
3970
3964
|
r && /* @__PURE__ */ e.jsxs(
|
|
3971
3965
|
"h2",
|
|
@@ -4045,7 +4039,7 @@ const Na = ({
|
|
|
4045
4039
|
/* @__PURE__ */ e.jsx(
|
|
4046
4040
|
Wt,
|
|
4047
4041
|
{
|
|
4048
|
-
label:
|
|
4042
|
+
label: C,
|
|
4049
4043
|
originalValue: c ? "$0.49" : "₹21.0",
|
|
4050
4044
|
freeLabel: y,
|
|
4051
4045
|
rowClassName: l
|
|
@@ -4082,7 +4076,7 @@ function vl({
|
|
|
4082
4076
|
}) {
|
|
4083
4077
|
const x = ya(r);
|
|
4084
4078
|
return /* @__PURE__ */ e.jsx(
|
|
4085
|
-
|
|
4079
|
+
Pe,
|
|
4086
4080
|
{
|
|
4087
4081
|
isOpen: t,
|
|
4088
4082
|
onClose: a,
|
|
@@ -4154,7 +4148,7 @@ const yl = ({
|
|
|
4154
4148
|
addons: f,
|
|
4155
4149
|
addonsSectionClassName: b,
|
|
4156
4150
|
addonsHeaderClassName: p,
|
|
4157
|
-
addonsTitleClassName:
|
|
4151
|
+
addonsTitleClassName: C,
|
|
4158
4152
|
addonsDescriptionClassName: y,
|
|
4159
4153
|
addonsClassName: j,
|
|
4160
4154
|
addonClassName: v,
|
|
@@ -4204,7 +4198,7 @@ const yl = ({
|
|
|
4204
4198
|
u,
|
|
4205
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: [
|
|
4206
4200
|
/* @__PURE__ */ e.jsxs("div", { className: p, children: [
|
|
4207
|
-
/* @__PURE__ */ e.jsx("h2", { className: m("text-base font-bold text-gray-700",
|
|
4201
|
+
/* @__PURE__ */ e.jsx("h2", { className: m("text-base font-bold text-gray-700", C), children: F }),
|
|
4208
4202
|
/* @__PURE__ */ e.jsx("p", { className: m("mt-1 text-sm text-gray-500", y), children: Q })
|
|
4209
4203
|
] }),
|
|
4210
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(
|
|
@@ -4248,9 +4242,9 @@ const yl = ({
|
|
|
4248
4242
|
id: d,
|
|
4249
4243
|
...f
|
|
4250
4244
|
}, b) => {
|
|
4251
|
-
const p = k.useId(),
|
|
4245
|
+
const p = k.useId(), C = d ?? p, y = i ?? (l ? `${a.length}${x ? `/${x}` : ""}` : void 0);
|
|
4252
4246
|
return /* @__PURE__ */ e.jsxs("div", { className: m("flex w-full flex-col gap-2", c), children: [
|
|
4253
|
-
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 }),
|
|
4254
4248
|
/* @__PURE__ */ e.jsxs("div", { className: "flex w-full flex-col gap-1", children: [
|
|
4255
4249
|
/* @__PURE__ */ e.jsxs(
|
|
4256
4250
|
"div",
|
|
@@ -4266,7 +4260,7 @@ const yl = ({
|
|
|
4266
4260
|
"input",
|
|
4267
4261
|
{
|
|
4268
4262
|
ref: b,
|
|
4269
|
-
id:
|
|
4263
|
+
id: C,
|
|
4270
4264
|
value: a,
|
|
4271
4265
|
maxLength: x,
|
|
4272
4266
|
onChange: (j) => r(j.target.value),
|
|
@@ -4301,7 +4295,7 @@ function Nl({
|
|
|
4301
4295
|
c && u(c);
|
|
4302
4296
|
};
|
|
4303
4297
|
return /* @__PURE__ */ e.jsx(
|
|
4304
|
-
|
|
4298
|
+
Ie,
|
|
4305
4299
|
{
|
|
4306
4300
|
isOpen: t,
|
|
4307
4301
|
onClose: a,
|
|
@@ -4401,12 +4395,12 @@ function wl({
|
|
|
4401
4395
|
minDate: d,
|
|
4402
4396
|
maxDate: f
|
|
4403
4397
|
}) {
|
|
4404
|
-
const b = d?.year ?? g, p = f?.year ?? x,
|
|
4398
|
+
const b = d?.year ?? g, p = f?.year ?? x, C = $e(() => {
|
|
4405
4399
|
const P = b ?? p - 120;
|
|
4406
4400
|
return Array.from({ length: p - P + 1 }, (L, F) => P + F);
|
|
4407
4401
|
}, [b, p]), [y, j] = V(() => c ? c.day - 1 : Math.floor(Gt.length / 2)), [v, _] = V(() => c ? c.month - 1 : 0), [M, G] = V(
|
|
4408
|
-
() => c ? Math.max(0,
|
|
4409
|
-
), B =
|
|
4402
|
+
() => c ? Math.max(0, C.indexOf(c.year)) : Math.floor(C.length / 2)
|
|
4403
|
+
), B = C[M], z = $e(() => {
|
|
4410
4404
|
let P = tn;
|
|
4411
4405
|
return f && B === f.year && (P = P.filter((L) => L <= f.month - 1)), d && B === d.year && (P = P.filter((L) => L >= d.month - 1)), P;
|
|
4412
4406
|
}, [B, d, f]), D = (z[v] ?? z[z.length - 1] ?? 0) + 1, W = $e(() => {
|
|
@@ -4423,7 +4417,7 @@ function wl({
|
|
|
4423
4417
|
u({ day: P, month: D, year: B });
|
|
4424
4418
|
};
|
|
4425
4419
|
return /* @__PURE__ */ e.jsx(
|
|
4426
|
-
|
|
4420
|
+
Ie,
|
|
4427
4421
|
{
|
|
4428
4422
|
isOpen: t,
|
|
4429
4423
|
onClose: a,
|
|
@@ -4448,7 +4442,7 @@ function wl({
|
|
|
4448
4442
|
onChange: _
|
|
4449
4443
|
}
|
|
4450
4444
|
),
|
|
4451
|
-
/* @__PURE__ */ e.jsx(Le, { options:
|
|
4445
|
+
/* @__PURE__ */ e.jsx(Le, { options: C.map(String), selectedIndex: M, onChange: G }),
|
|
4452
4446
|
/* @__PURE__ */ e.jsx("div", { className: "pointer-events-none absolute inset-x-5 top-16 h-px bg-[#e5e7eb]" }),
|
|
4453
4447
|
/* @__PURE__ */ e.jsx("div", { className: "pointer-events-none absolute inset-x-5 top-28 h-px bg-[#e5e7eb]" })
|
|
4454
4448
|
] })
|
|
@@ -4475,12 +4469,12 @@ function Cl({
|
|
|
4475
4469
|
amLabel: c = "AM",
|
|
4476
4470
|
pmLabel: g = "PM"
|
|
4477
4471
|
}) {
|
|
4478
|
-
const x = $e(() => an(o?.hour ?? 11), [o?.hour]), d = [c, g], [f, b] = V(() => tt.indexOf(x.hour12)), [p,
|
|
4472
|
+
const x = $e(() => an(o?.hour ?? 11), [o?.hour]), d = [c, g], [f, b] = V(() => tt.indexOf(x.hour12)), [p, C] = V(() => o?.minute ?? 0), [y, j] = V(() => x.period === "AM" ? 0 : 1), v = () => {
|
|
4479
4473
|
const _ = sn(tt[f], y === 0 ? "AM" : "PM");
|
|
4480
4474
|
i({ hour: _, minute: Ut[p] });
|
|
4481
4475
|
};
|
|
4482
4476
|
return /* @__PURE__ */ e.jsx(
|
|
4483
|
-
|
|
4477
|
+
Ie,
|
|
4484
4478
|
{
|
|
4485
4479
|
isOpen: t,
|
|
4486
4480
|
onClose: a,
|
|
@@ -4502,7 +4496,7 @@ function Cl({
|
|
|
4502
4496
|
{
|
|
4503
4497
|
options: Ut.map((_) => String(_).padStart(2, "0")),
|
|
4504
4498
|
selectedIndex: p,
|
|
4505
|
-
onChange:
|
|
4499
|
+
onChange: C
|
|
4506
4500
|
}
|
|
4507
4501
|
),
|
|
4508
4502
|
/* @__PURE__ */ e.jsx(Le, { options: d, selectedIndex: y, onChange: j }),
|
|
@@ -4554,16 +4548,17 @@ function Ll({
|
|
|
4554
4548
|
countries: c = Ua,
|
|
4555
4549
|
initialCountryIso: g = "IN"
|
|
4556
4550
|
}) {
|
|
4557
|
-
const x = c.find((y) => y.iso === g) ?? c[0], [d, f] = V(o), b = sa(x.code), p = ra(d, x.code).isValid && d.length > 0,
|
|
4551
|
+
const x = c.find((y) => y.iso === g) ?? c[0], [d, f] = V(o), b = sa(x.code), p = ra(d, x.code).isValid && d.length > 0, C = () => {
|
|
4558
4552
|
p && u(d, x);
|
|
4559
4553
|
};
|
|
4560
4554
|
return /* @__PURE__ */ e.jsx(
|
|
4561
|
-
|
|
4555
|
+
Pe,
|
|
4562
4556
|
{
|
|
4563
4557
|
isOpen: t,
|
|
4564
4558
|
onClose: a,
|
|
4565
4559
|
showDragHandle: !0,
|
|
4566
|
-
showCloseButton: !
|
|
4560
|
+
showCloseButton: !0,
|
|
4561
|
+
closeButtonOutside: !0,
|
|
4567
4562
|
ariaLabel: r,
|
|
4568
4563
|
className: "min-h-[25vh]",
|
|
4569
4564
|
overlayClassName: "pitru-paksh-common-root",
|
|
@@ -4573,9 +4568,9 @@ function Ll({
|
|
|
4573
4568
|
variant: "primary",
|
|
4574
4569
|
size: "xl",
|
|
4575
4570
|
className: "w-full rounded-xl bg-linear-to-b from-[#5eb98e] to-[#159169] focus-visible:ring-[#159169]",
|
|
4576
|
-
rightIcon: /* @__PURE__ */ e.jsx(
|
|
4571
|
+
rightIcon: /* @__PURE__ */ e.jsx(_e, { "aria-hidden": !0 }),
|
|
4577
4572
|
disabled: !p,
|
|
4578
|
-
onClick:
|
|
4573
|
+
onClick: C,
|
|
4579
4574
|
children: i
|
|
4580
4575
|
}
|
|
4581
4576
|
) }),
|
|
@@ -4615,15 +4610,17 @@ function kl({
|
|
|
4615
4610
|
initialValue: u = "",
|
|
4616
4611
|
errorText: o = "Please enter a valid email"
|
|
4617
4612
|
}) {
|
|
4618
|
-
const [c, g] = V(u), [x, d] = V(!1), f = c.trim(), b = nn.test(f), p = x && f.length > 0 && !b,
|
|
4613
|
+
const [c, g] = V(u), [x, d] = V(!1), f = c.trim(), b = nn.test(f), p = x && f.length > 0 && !b, C = () => {
|
|
4619
4614
|
b && i(f);
|
|
4620
4615
|
};
|
|
4621
4616
|
return /* @__PURE__ */ e.jsx(
|
|
4622
|
-
|
|
4617
|
+
Pe,
|
|
4623
4618
|
{
|
|
4624
4619
|
isOpen: t,
|
|
4625
4620
|
onClose: a,
|
|
4626
4621
|
showDragHandle: !0,
|
|
4622
|
+
showCloseButton: !0,
|
|
4623
|
+
closeButtonOutside: !0,
|
|
4627
4624
|
ariaLabel: r,
|
|
4628
4625
|
footer: /* @__PURE__ */ e.jsx("div", { className: "px-4 pt-3 pb-5", children: /* @__PURE__ */ e.jsx(
|
|
4629
4626
|
X,
|
|
@@ -4631,9 +4628,9 @@ function kl({
|
|
|
4631
4628
|
variant: "primary",
|
|
4632
4629
|
size: "xl",
|
|
4633
4630
|
className: "w-full rounded-xl",
|
|
4634
|
-
rightIcon: /* @__PURE__ */ e.jsx(
|
|
4631
|
+
rightIcon: /* @__PURE__ */ e.jsx(_e, { "aria-hidden": !0 }),
|
|
4635
4632
|
disabled: !b,
|
|
4636
|
-
onClick:
|
|
4633
|
+
onClick: C,
|
|
4637
4634
|
children: l
|
|
4638
4635
|
}
|
|
4639
4636
|
) }),
|
|
@@ -4678,7 +4675,7 @@ function _l({
|
|
|
4678
4675
|
title: f,
|
|
4679
4676
|
description: b,
|
|
4680
4677
|
learnMoreLabel: p,
|
|
4681
|
-
onLearnMoreClick:
|
|
4678
|
+
onLearnMoreClick: C,
|
|
4682
4679
|
learnMoreHref: y,
|
|
4683
4680
|
dateLabel: j,
|
|
4684
4681
|
locationLabel: v,
|
|
@@ -4766,7 +4763,7 @@ function _l({
|
|
|
4766
4763
|
{
|
|
4767
4764
|
href: y,
|
|
4768
4765
|
className: "inline-flex items-center gap-0.5 text-xs font-medium leading-4 text-[#F75E22] underline",
|
|
4769
|
-
onClick:
|
|
4766
|
+
onClick: C,
|
|
4770
4767
|
children: [
|
|
4771
4768
|
p,
|
|
4772
4769
|
/* @__PURE__ */ e.jsx(Ps, { "aria-hidden": !0, className: "size-3.5 text-[#F75E22]" })
|
|
@@ -4879,7 +4876,7 @@ function cn({
|
|
|
4879
4876
|
}) {
|
|
4880
4877
|
const f = on(r), b = f.payButtonTemplate.replace("{amount}", o);
|
|
4881
4878
|
return /* @__PURE__ */ e.jsx(
|
|
4882
|
-
|
|
4879
|
+
Pe,
|
|
4883
4880
|
{
|
|
4884
4881
|
isOpen: t,
|
|
4885
4882
|
onClose: a,
|
|
@@ -4928,11 +4925,11 @@ function cn({
|
|
|
4928
4925
|
/* @__PURE__ */ e.jsx("div", { className: "h-px w-full bg-[#e5e7eb]" }),
|
|
4929
4926
|
/* @__PURE__ */ e.jsxs("div", { className: "flex w-full flex-col gap-3 px-3", children: [
|
|
4930
4927
|
/* @__PURE__ */ e.jsx("p", { className: "text-[14px] leading-5 font-bold text-[#374151]", children: f.performerLabel }),
|
|
4931
|
-
/* @__PURE__ */ e.jsx("div", { className: "flex w-full flex-wrap items-center gap-2", children: l.filter((p) => p.trim().length > 0).map((p,
|
|
4932
|
-
|
|
4928
|
+
/* @__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: [
|
|
4929
|
+
C + 1,
|
|
4933
4930
|
". ",
|
|
4934
4931
|
p
|
|
4935
|
-
] }) },
|
|
4932
|
+
] }) }, C)) })
|
|
4936
4933
|
] }),
|
|
4937
4934
|
/* @__PURE__ */ e.jsx("div", { className: "h-px w-full bg-[#e5e7eb]" }),
|
|
4938
4935
|
/* @__PURE__ */ e.jsxs("div", { className: "flex w-full flex-col gap-2 px-3", children: [
|
|
@@ -4978,7 +4975,7 @@ const Yt = {
|
|
|
4978
4975
|
function dn({ isOpen: t, onClose: a, onOkayClick: r, locale: n = "en", className: l }) {
|
|
4979
4976
|
const i = wa(n);
|
|
4980
4977
|
return /* @__PURE__ */ e.jsx(
|
|
4981
|
-
|
|
4978
|
+
Pe,
|
|
4982
4979
|
{
|
|
4983
4980
|
isOpen: t,
|
|
4984
4981
|
onClose: a,
|
|
@@ -5179,7 +5176,7 @@ function Pl({
|
|
|
5179
5176
|
copy: f,
|
|
5180
5177
|
proceedCtaLabel: b,
|
|
5181
5178
|
proceedButtonProps: p,
|
|
5182
|
-
onProceedPayment:
|
|
5179
|
+
onProceedPayment: C,
|
|
5183
5180
|
onProceedCtaClick: y,
|
|
5184
5181
|
onConfirmModalOpen: j,
|
|
5185
5182
|
onConfirmEditDetailsClick: v,
|
|
@@ -5189,48 +5186,48 @@ function Pl({
|
|
|
5189
5186
|
className: B
|
|
5190
5187
|
}) {
|
|
5191
5188
|
const [z, D] = V(!1), [W, $] = V(!1), P = un(t), L = f ? Object.fromEntries(
|
|
5192
|
-
Object.keys(P).map((
|
|
5193
|
-
) : P, F = wa(t), Q = (
|
|
5194
|
-
const q = fn(
|
|
5195
|
-
return
|
|
5196
|
-
}, U = (
|
|
5189
|
+
Object.keys(P).map((w) => [w, f[w] || P[w]])
|
|
5190
|
+
) : P, F = wa(t), Q = (w) => {
|
|
5191
|
+
const q = fn(w + 1, t);
|
|
5192
|
+
return w === 0 ? `*${q} ${L.kartaNameLabel}` : `${q} ${L.kartaNameLabel} ${L.kartaNameOptionalSuffix}`;
|
|
5193
|
+
}, U = (w) => r({ ...a, ...w }), ee = (w, q) => {
|
|
5197
5194
|
const ae = [...a.kartaNames];
|
|
5198
|
-
ae[
|
|
5199
|
-
}, Z = (
|
|
5195
|
+
ae[w] = Qt(q), U({ kartaNames: ae });
|
|
5196
|
+
}, Z = (w, q) => {
|
|
5200
5197
|
U({
|
|
5201
5198
|
ancestors: a.ancestors.map(
|
|
5202
|
-
(ae) => ae.id ===
|
|
5199
|
+
(ae) => ae.id === w ? { ...ae, value: Qt(q) } : ae
|
|
5203
5200
|
)
|
|
5204
5201
|
});
|
|
5205
5202
|
}, [ne, le] = V(
|
|
5206
5203
|
/* @__PURE__ */ new Set()
|
|
5207
|
-
), T = (
|
|
5204
|
+
), 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 = Ze(null);
|
|
5208
5205
|
We(() => {
|
|
5209
5206
|
if (!de) return;
|
|
5210
|
-
const
|
|
5207
|
+
const w = (q) => {
|
|
5211
5208
|
xe.current && !xe.current.contains(q.target) && ce(!1);
|
|
5212
5209
|
};
|
|
5213
|
-
return document.addEventListener("mousedown",
|
|
5210
|
+
return document.addEventListener("mousedown", w), () => document.removeEventListener("mousedown", w);
|
|
5214
5211
|
}, [de]);
|
|
5215
5212
|
const be = l.filter(
|
|
5216
|
-
(
|
|
5217
|
-
), ge = (
|
|
5213
|
+
(w) => w.toLowerCase().includes(a.gotra.trim().toLowerCase())
|
|
5214
|
+
), ge = (w) => {
|
|
5218
5215
|
U({
|
|
5219
|
-
gotra:
|
|
5220
|
-
isGotraUnknown:
|
|
5216
|
+
gotra: w,
|
|
5217
|
+
isGotraUnknown: w.trim() === L.kashyapGotraLabel
|
|
5221
5218
|
});
|
|
5222
|
-
}, je = (
|
|
5223
|
-
ge(
|
|
5219
|
+
}, je = (w) => {
|
|
5220
|
+
ge(w), ce(!1);
|
|
5224
5221
|
}, Se = () => {
|
|
5225
|
-
const
|
|
5226
|
-
U({ isGotraUnknown:
|
|
5222
|
+
const w = !a.isGotraUnknown;
|
|
5223
|
+
U({ isGotraUnknown: w, gotra: w ? L.kashyapGotraLabel : "" });
|
|
5227
5224
|
}, fe = sa(st), Be = ra(
|
|
5228
5225
|
a.whatsappNumber,
|
|
5229
5226
|
st
|
|
5230
5227
|
).isValid, Te = pn.test(a.email), Ye = a.whatsappNumber.length > 0 && !Be, qe = 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`) —
|
|
5231
5228
|
// left blank is fine, but a partially-typed one still has to clear
|
|
5232
5229
|
// `MIN_NAME_LENGTH` like every other name field.
|
|
5233
|
-
a.kartaNames.slice(1).every((
|
|
5230
|
+
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 = d ?? ve, ze = a.gotra.trim().length > 0 ? a.gotra : L.kashyapGotraLabel, De = n ? a.email : a.whatsappNumber, ye = t;
|
|
5234
5231
|
return /* @__PURE__ */ e.jsxs(
|
|
5235
5232
|
"div",
|
|
5236
5233
|
{
|
|
@@ -5263,7 +5260,7 @@ function Pl({
|
|
|
5263
5260
|
value: a.email,
|
|
5264
5261
|
placeholder: L.emailPlaceholder,
|
|
5265
5262
|
error: qe,
|
|
5266
|
-
onChange: (
|
|
5263
|
+
onChange: (w) => U({ email: w }),
|
|
5267
5264
|
containerClassName: "w-full gap-0",
|
|
5268
5265
|
wrapperClassName: "h-14 rounded-xl px-4",
|
|
5269
5266
|
className: "text-[18px]"
|
|
@@ -5282,8 +5279,8 @@ function Pl({
|
|
|
5282
5279
|
placeholder: L.whatsappNumberPlaceholder,
|
|
5283
5280
|
maxLength: fe,
|
|
5284
5281
|
error: Ye,
|
|
5285
|
-
onChange: (
|
|
5286
|
-
whatsappNumber:
|
|
5282
|
+
onChange: (w) => U({
|
|
5283
|
+
whatsappNumber: w.replace(/\D/g, "").slice(0, fe)
|
|
5287
5284
|
}),
|
|
5288
5285
|
containerClassName: "w-auto flex-1 gap-0",
|
|
5289
5286
|
wrapperClassName: "h-14 rounded-xl px-4",
|
|
@@ -5304,16 +5301,16 @@ function Pl({
|
|
|
5304
5301
|
),
|
|
5305
5302
|
/* @__PURE__ */ e.jsx("p", { className: "flex-1 text-[16px] leading-[22px] font-bold text-[#22272b]", children: L.kartaNameSectionTitle })
|
|
5306
5303
|
] }),
|
|
5307
|
-
/* @__PURE__ */ e.jsx("div", { className: "flex w-full flex-col gap-2.5", children: a.kartaNames.map((
|
|
5304
|
+
/* @__PURE__ */ e.jsx("div", { className: "flex w-full flex-col gap-2.5", children: a.kartaNames.map((w, q) => /* @__PURE__ */ e.jsx(
|
|
5308
5305
|
ue,
|
|
5309
5306
|
{
|
|
5310
5307
|
label: Q(q),
|
|
5311
5308
|
placeholder: L.kartaNamePlaceholder,
|
|
5312
|
-
value:
|
|
5309
|
+
value: w,
|
|
5313
5310
|
maxLength: at,
|
|
5314
5311
|
showCharCount: !0,
|
|
5315
|
-
error: O(
|
|
5316
|
-
supportingText: O(
|
|
5312
|
+
error: O(w),
|
|
5313
|
+
supportingText: O(w) ? L.nameMinLengthError : void 0,
|
|
5317
5314
|
wrapperClassName: m(
|
|
5318
5315
|
"h-12 rounded-xl"
|
|
5319
5316
|
),
|
|
@@ -5342,8 +5339,8 @@ function Pl({
|
|
|
5342
5339
|
maxLength: at,
|
|
5343
5340
|
autoComplete: "off",
|
|
5344
5341
|
onFocus: () => ce(!0),
|
|
5345
|
-
onChange: (
|
|
5346
|
-
ge(
|
|
5342
|
+
onChange: (w) => {
|
|
5343
|
+
ge(w.target.value), ce(!0);
|
|
5347
5344
|
},
|
|
5348
5345
|
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"
|
|
5349
5346
|
}
|
|
@@ -5366,20 +5363,20 @@ function Pl({
|
|
|
5366
5363
|
{
|
|
5367
5364
|
role: "listbox",
|
|
5368
5365
|
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",
|
|
5369
|
-
children: be.map((
|
|
5366
|
+
children: be.map((w) => /* @__PURE__ */ e.jsx(
|
|
5370
5367
|
"button",
|
|
5371
5368
|
{
|
|
5372
5369
|
type: "button",
|
|
5373
5370
|
role: "option",
|
|
5374
|
-
"aria-selected":
|
|
5375
|
-
onClick: () => je(
|
|
5371
|
+
"aria-selected": w === a.gotra,
|
|
5372
|
+
onClick: () => je(w),
|
|
5376
5373
|
className: m(
|
|
5377
5374
|
"flex w-full items-center px-3 py-2 text-left text-[14px] font-medium text-[#1d2125] hover:bg-[#f9fafb]",
|
|
5378
|
-
|
|
5375
|
+
w === a.gotra && "bg-[#fff9e9]"
|
|
5379
5376
|
),
|
|
5380
|
-
children:
|
|
5377
|
+
children: w
|
|
5381
5378
|
},
|
|
5382
|
-
|
|
5379
|
+
w
|
|
5383
5380
|
))
|
|
5384
5381
|
}
|
|
5385
5382
|
)
|
|
@@ -5434,13 +5431,13 @@ function Pl({
|
|
|
5434
5431
|
/* @__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 }) }),
|
|
5435
5432
|
/* @__PURE__ */ e.jsx("p", { className: "px-3 text-[12px] leading-4 font-medium text-[#6b7280]", children: L.sarvaPitruHelperText })
|
|
5436
5433
|
] }),
|
|
5437
|
-
a.ancestors.map((
|
|
5438
|
-
const q = oe(
|
|
5434
|
+
a.ancestors.map((w) => {
|
|
5435
|
+
const q = oe(w);
|
|
5439
5436
|
return /* @__PURE__ */ e.jsx(
|
|
5440
5437
|
ue,
|
|
5441
5438
|
{
|
|
5442
|
-
label: `*${
|
|
5443
|
-
value:
|
|
5439
|
+
label: `*${w.label} ${L.ancestorNameFieldSuffix}`,
|
|
5440
|
+
value: w.value,
|
|
5444
5441
|
prefix: L.latePrefixLabel,
|
|
5445
5442
|
placeholder: L.kartaNamePlaceholder,
|
|
5446
5443
|
maxLength: at,
|
|
@@ -5448,10 +5445,10 @@ function Pl({
|
|
|
5448
5445
|
error: q != null,
|
|
5449
5446
|
supportingText: q,
|
|
5450
5447
|
wrapperClassName: "h-12 rounded-xl",
|
|
5451
|
-
onChange: (ae) => Z(
|
|
5452
|
-
onBlur: () => T(
|
|
5448
|
+
onChange: (ae) => Z(w.id, ae),
|
|
5449
|
+
onBlur: () => T(w.id)
|
|
5453
5450
|
},
|
|
5454
|
-
|
|
5451
|
+
w.id
|
|
5455
5452
|
);
|
|
5456
5453
|
})
|
|
5457
5454
|
] })
|
|
@@ -5500,7 +5497,7 @@ function Pl({
|
|
|
5500
5497
|
whatsappNumber: De,
|
|
5501
5498
|
amount: o,
|
|
5502
5499
|
onProceedPayment: () => {
|
|
5503
|
-
D(!1),
|
|
5500
|
+
D(!1), C();
|
|
5504
5501
|
}
|
|
5505
5502
|
}
|
|
5506
5503
|
),
|
|
@@ -5653,9 +5650,9 @@ function Rl({
|
|
|
5653
5650
|
}, p = () => {
|
|
5654
5651
|
const y = x.map((j) => j.trim()).filter(Boolean);
|
|
5655
5652
|
y.length !== 0 && (r(y), f());
|
|
5656
|
-
},
|
|
5653
|
+
}, C = x.some((y) => y.trim().length > 0);
|
|
5657
5654
|
return /* @__PURE__ */ e.jsx(
|
|
5658
|
-
|
|
5655
|
+
Ie,
|
|
5659
5656
|
{
|
|
5660
5657
|
isOpen: t,
|
|
5661
5658
|
onClose: b,
|
|
@@ -5669,8 +5666,8 @@ function Rl({
|
|
|
5669
5666
|
variant: "primary",
|
|
5670
5667
|
size: "xl",
|
|
5671
5668
|
className: "w-full rounded-xl",
|
|
5672
|
-
rightIcon: /* @__PURE__ */ e.jsx(
|
|
5673
|
-
disabled: !
|
|
5669
|
+
rightIcon: /* @__PURE__ */ e.jsx(_e, { "aria-hidden": !0 }),
|
|
5670
|
+
disabled: !C,
|
|
5674
5671
|
onClick: p,
|
|
5675
5672
|
children: c
|
|
5676
5673
|
}
|
|
@@ -6099,7 +6096,7 @@ function Hl({
|
|
|
6099
6096
|
showInfoIcon: l = !0,
|
|
6100
6097
|
onInfoClick: i,
|
|
6101
6098
|
proceedLabel: u = "Continue",
|
|
6102
|
-
proceedIcon: o = /* @__PURE__ */ e.jsx(
|
|
6099
|
+
proceedIcon: o = /* @__PURE__ */ e.jsx(_e, { "aria-hidden": !0 }),
|
|
6103
6100
|
onProceed: c,
|
|
6104
6101
|
disabled: g,
|
|
6105
6102
|
proceedButtonProps: x,
|
|
@@ -6180,7 +6177,7 @@ export {
|
|
|
6180
6177
|
qn as CheckIcon,
|
|
6181
6178
|
ct as CheckoutBar,
|
|
6182
6179
|
or as Chip,
|
|
6183
|
-
|
|
6180
|
+
Pe as ConfinedBottomSheet,
|
|
6184
6181
|
cn as ConfirmPujaDetailsModal,
|
|
6185
6182
|
El as DEATH_TITHI_OPTIONS,
|
|
6186
6183
|
wl as DatePickerSheet,
|
|
@@ -6258,5 +6255,5 @@ export {
|
|
|
6258
6255
|
Dl as mapPujaL2Response,
|
|
6259
6256
|
rt as outcomeTranslations,
|
|
6260
6257
|
In as parseIsoDate,
|
|
6261
|
-
|
|
6258
|
+
ke as useOutcomeI18n
|
|
6262
6259
|
};
|