@srimandir/pitru-paksh-ritual-recommendation 2.0.7 → 2.0.9
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,6 +1,6 @@
|
|
|
1
1
|
import { createI18n as fa, BottomSheet as Rt } from "@srimandir/common";
|
|
2
2
|
import Q, { useState as E, useRef as ke, useEffect as Ze, useMemo as rt, Fragment as ma } from "react";
|
|
3
|
-
import { VideoPlayer as Tt, Button as _, TestimonialCard as xa, FAQSection as ha, TopBar as pa, L2Card as ga, OutcomeButton as Se, CheckIcon as Pt, PlusIcon as Ot, OutcomeSummary as ba, TextField as ya, SelectorCard as Lt, StepProgressHeader as Be, AudioQuestionCard as Je, Chip as
|
|
3
|
+
import { VideoPlayer as Tt, Button as _, TestimonialCard as xa, FAQSection as ha, TopBar as pa, L2Card as ga, OutcomeButton as Se, CheckIcon as Pt, PlusIcon as Ot, OutcomeSummary as ba, TextField as ya, SelectorCard as Lt, StepProgressHeader as Be, AudioQuestionCard as Je, Chip as ve, SelectorCardEditableField as ot, SelectorCardNote as va, TithiPickerSheet as ja, DatePickerSheet as Na } from "@srimandir/pitru-paksh-common";
|
|
4
4
|
const wa = {
|
|
5
5
|
// shared
|
|
6
6
|
trustPujasCompleted: "300K+ pujas completed",
|
|
@@ -594,11 +594,11 @@ var ue = {};
|
|
|
594
594
|
var dt;
|
|
595
595
|
function Oa() {
|
|
596
596
|
return dt || (dt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
597
|
-
var t = Q, i = /* @__PURE__ */ Symbol.for("react.element"), n = /* @__PURE__ */ Symbol.for("react.portal"), s = /* @__PURE__ */ Symbol.for("react.fragment"), d = /* @__PURE__ */ Symbol.for("react.strict_mode"), l = /* @__PURE__ */ Symbol.for("react.profiler"), o = /* @__PURE__ */ Symbol.for("react.provider"), f = /* @__PURE__ */ Symbol.for("react.context"), c = /* @__PURE__ */ Symbol.for("react.forward_ref"), x = /* @__PURE__ */ Symbol.for("react.suspense"), b = /* @__PURE__ */ Symbol.for("react.suspense_list"), N = /* @__PURE__ */ Symbol.for("react.memo"), h = /* @__PURE__ */ Symbol.for("react.lazy"), L = /* @__PURE__ */ Symbol.for("react.offscreen"), w = Symbol.iterator,
|
|
597
|
+
var t = Q, i = /* @__PURE__ */ Symbol.for("react.element"), n = /* @__PURE__ */ Symbol.for("react.portal"), s = /* @__PURE__ */ Symbol.for("react.fragment"), d = /* @__PURE__ */ Symbol.for("react.strict_mode"), l = /* @__PURE__ */ Symbol.for("react.profiler"), o = /* @__PURE__ */ Symbol.for("react.provider"), f = /* @__PURE__ */ Symbol.for("react.context"), c = /* @__PURE__ */ Symbol.for("react.forward_ref"), x = /* @__PURE__ */ Symbol.for("react.suspense"), b = /* @__PURE__ */ Symbol.for("react.suspense_list"), N = /* @__PURE__ */ Symbol.for("react.memo"), h = /* @__PURE__ */ Symbol.for("react.lazy"), L = /* @__PURE__ */ Symbol.for("react.offscreen"), w = Symbol.iterator, v = "@@iterator";
|
|
598
598
|
function z(a) {
|
|
599
599
|
if (a === null || typeof a != "object")
|
|
600
600
|
return null;
|
|
601
|
-
var r = w && a[w] || a[
|
|
601
|
+
var r = w && a[w] || a[v];
|
|
602
602
|
return typeof r == "function" ? r : null;
|
|
603
603
|
}
|
|
604
604
|
var G = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -812,17 +812,17 @@ function Oa() {
|
|
|
812
812
|
}
|
|
813
813
|
} catch (W) {
|
|
814
814
|
if (W && g && typeof W.stack == "string") {
|
|
815
|
-
for (var
|
|
815
|
+
for (var j = W.stack.split(`
|
|
816
816
|
`), C = g.stack.split(`
|
|
817
|
-
`), A =
|
|
817
|
+
`), A = j.length - 1, I = C.length - 1; A >= 1 && I >= 0 && j[A] !== C[I]; )
|
|
818
818
|
I--;
|
|
819
819
|
for (; A >= 1 && I >= 0; A--, I--)
|
|
820
|
-
if (
|
|
820
|
+
if (j[A] !== C[I]) {
|
|
821
821
|
if (A !== 1 || I !== 1)
|
|
822
822
|
do
|
|
823
|
-
if (A--, I--, I < 0 ||
|
|
823
|
+
if (A--, I--, I < 0 || j[A] !== C[I]) {
|
|
824
824
|
var J = `
|
|
825
|
-
` +
|
|
825
|
+
` + j[A].replace(" at new ", " at ");
|
|
826
826
|
return a.displayName && J.includes("<anonymous>") && (J = J.replace("<anonymous>", a.displayName)), typeof a == "function" && pe.set(a, J), J;
|
|
827
827
|
}
|
|
828
828
|
while (A >= 1 && I >= 0);
|
|
@@ -884,17 +884,17 @@ function Oa() {
|
|
|
884
884
|
var O = Function.call.bind(ce);
|
|
885
885
|
for (var k in a)
|
|
886
886
|
if (O(a, k)) {
|
|
887
|
-
var
|
|
887
|
+
var j = void 0;
|
|
888
888
|
try {
|
|
889
889
|
if (typeof a[k] != "function") {
|
|
890
890
|
var C = Error((g || "React class") + ": " + u + " type `" + k + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[k] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
891
891
|
throw C.name = "Invariant Violation", C;
|
|
892
892
|
}
|
|
893
|
-
|
|
893
|
+
j = a[k](r, k, g, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
894
894
|
} catch (A) {
|
|
895
|
-
|
|
895
|
+
j = A;
|
|
896
896
|
}
|
|
897
|
-
|
|
897
|
+
j && !(j instanceof Error) && (be(S), R("%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).", g || "React class", u, k, typeof j), be(null)), j instanceof Error && !(j.message in Ve) && (Ve[j.message] = !0, be(S), R("Failed %s type: %s", u, j.message), be(null));
|
|
898
898
|
}
|
|
899
899
|
}
|
|
900
900
|
}
|
|
@@ -970,7 +970,7 @@ function Oa() {
|
|
|
970
970
|
}
|
|
971
971
|
}
|
|
972
972
|
var ea = function(a, r, u, g, S, O, k) {
|
|
973
|
-
var
|
|
973
|
+
var j = {
|
|
974
974
|
// This tag allows us to uniquely identify this as a React Element
|
|
975
975
|
$$typeof: i,
|
|
976
976
|
// Built-in properties that belong on the element
|
|
@@ -981,27 +981,27 @@ function Oa() {
|
|
|
981
981
|
// Record the component responsible for creating this element.
|
|
982
982
|
_owner: O
|
|
983
983
|
};
|
|
984
|
-
return
|
|
984
|
+
return j._store = {}, Object.defineProperty(j._store, "validated", {
|
|
985
985
|
configurable: !1,
|
|
986
986
|
enumerable: !1,
|
|
987
987
|
writable: !0,
|
|
988
988
|
value: !1
|
|
989
|
-
}), Object.defineProperty(
|
|
989
|
+
}), Object.defineProperty(j, "_self", {
|
|
990
990
|
configurable: !1,
|
|
991
991
|
enumerable: !1,
|
|
992
992
|
writable: !1,
|
|
993
993
|
value: g
|
|
994
|
-
}), Object.defineProperty(
|
|
994
|
+
}), Object.defineProperty(j, "_source", {
|
|
995
995
|
configurable: !1,
|
|
996
996
|
enumerable: !1,
|
|
997
997
|
writable: !1,
|
|
998
998
|
value: S
|
|
999
|
-
}), Object.freeze && (Object.freeze(
|
|
999
|
+
}), Object.freeze && (Object.freeze(j.props), Object.freeze(j)), j;
|
|
1000
1000
|
};
|
|
1001
1001
|
function ta(a, r, u, g, S) {
|
|
1002
1002
|
{
|
|
1003
|
-
var O, k = {},
|
|
1004
|
-
u !== void 0 && (Xe(u),
|
|
1003
|
+
var O, k = {}, j = null, C = null;
|
|
1004
|
+
u !== void 0 && (Xe(u), j = "" + u), Xt(r) && (Xe(r.key), j = "" + r.key), Qt(r) && (C = r.ref, qt(r, S));
|
|
1005
1005
|
for (O in r)
|
|
1006
1006
|
ce.call(r, O) && !Ut.hasOwnProperty(O) && (k[O] = r[O]);
|
|
1007
1007
|
if (a && a.defaultProps) {
|
|
@@ -1009,11 +1009,11 @@ function Oa() {
|
|
|
1009
1009
|
for (O in A)
|
|
1010
1010
|
k[O] === void 0 && (k[O] = A[O]);
|
|
1011
1011
|
}
|
|
1012
|
-
if (
|
|
1012
|
+
if (j || C) {
|
|
1013
1013
|
var I = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
|
|
1014
|
-
|
|
1014
|
+
j && _t(k, I), C && $t(k, I);
|
|
1015
1015
|
}
|
|
1016
|
-
return ea(a,
|
|
1016
|
+
return ea(a, j, C, S, g, qe.current, k);
|
|
1017
1017
|
}
|
|
1018
1018
|
}
|
|
1019
1019
|
var Ee = G.ReactCurrentOwner, et = G.ReactDebugCurrentFrame;
|
|
@@ -1131,12 +1131,12 @@ Check the top-level render call using <` + u + ">.");
|
|
|
1131
1131
|
{
|
|
1132
1132
|
var k = K(a);
|
|
1133
1133
|
if (!k) {
|
|
1134
|
-
var
|
|
1135
|
-
(a === void 0 || typeof a == "object" && a !== null && Object.keys(a).length === 0) && (
|
|
1134
|
+
var j = "";
|
|
1135
|
+
(a === void 0 || typeof a == "object" && a !== null && Object.keys(a).length === 0) && (j += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
1136
1136
|
var C = aa();
|
|
1137
|
-
C ?
|
|
1137
|
+
C ? j += C : j += tt();
|
|
1138
1138
|
var A;
|
|
1139
|
-
a === null ? A = "null" : ze(a) ? A = "array" : a !== void 0 && a.$$typeof === i ? (A = "<" + (p(a.type) || "Unknown") + " />",
|
|
1139
|
+
a === null ? A = "null" : ze(a) ? A = "array" : a !== void 0 && a.$$typeof === i ? (A = "<" + (p(a.type) || "Unknown") + " />", j = " Did you accidentally export a JSX literal instead of a component?") : A = typeof a, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", A, j);
|
|
1140
1140
|
}
|
|
1141
1141
|
var I = ta(a, r, u, S, O);
|
|
1142
1142
|
if (I == null)
|
|
@@ -1210,14 +1210,14 @@ function za(t, i) {
|
|
|
1210
1210
|
}
|
|
1211
1211
|
return n;
|
|
1212
1212
|
}
|
|
1213
|
-
function
|
|
1214
|
-
return
|
|
1213
|
+
function je() {
|
|
1214
|
+
return je = Object.assign ? Object.assign.bind() : function(t) {
|
|
1215
1215
|
for (var i = 1; i < arguments.length; i++) {
|
|
1216
1216
|
var n = arguments[i];
|
|
1217
1217
|
for (var s in n) ({}).hasOwnProperty.call(n, s) && (t[s] = n[s]);
|
|
1218
1218
|
}
|
|
1219
1219
|
return t;
|
|
1220
|
-
},
|
|
1220
|
+
}, je.apply(null, arguments);
|
|
1221
1221
|
}
|
|
1222
1222
|
function mt(t, i) {
|
|
1223
1223
|
var n = Object.keys(t);
|
|
@@ -1263,14 +1263,14 @@ function zt(t) {
|
|
|
1263
1263
|
}, i.attr), zt(i.child)));
|
|
1264
1264
|
}
|
|
1265
1265
|
function D(t) {
|
|
1266
|
-
return (i) => /* @__PURE__ */ Q.createElement(Ia,
|
|
1266
|
+
return (i) => /* @__PURE__ */ Q.createElement(Ia, je({
|
|
1267
1267
|
attr: Ne({}, t.attr)
|
|
1268
1268
|
}, i), zt(t.child));
|
|
1269
1269
|
}
|
|
1270
1270
|
function Ia(t) {
|
|
1271
1271
|
var i = (n) => {
|
|
1272
1272
|
var s = t.attr, d = t.size, l = t.title, o = Da(t, Ma), f = d || n.size || "1em", c;
|
|
1273
|
-
return n.className && (c = n.className), t.className && (c = (c ? c + " " : "") + t.className), /* @__PURE__ */ Q.createElement("svg",
|
|
1273
|
+
return n.className && (c = n.className), t.className && (c = (c ? c + " " : "") + t.className), /* @__PURE__ */ Q.createElement("svg", je({
|
|
1274
1274
|
stroke: "currentColor",
|
|
1275
1275
|
fill: "currentColor",
|
|
1276
1276
|
strokeWidth: "0"
|
|
@@ -1657,14 +1657,14 @@ function bi({ videoUrl: t }) {
|
|
|
1657
1657
|
] });
|
|
1658
1658
|
}
|
|
1659
1659
|
const yi = Array.from({ length: 6 }, (t, i) => i + 1);
|
|
1660
|
-
function
|
|
1660
|
+
function vi() {
|
|
1661
1661
|
const { t } = P(), i = yi.map((n) => ({
|
|
1662
1662
|
question: t(`landingFaqQ${n}`),
|
|
1663
1663
|
answer: t(`landingFaqA${n}`)
|
|
1664
1664
|
}));
|
|
1665
1665
|
return /* @__PURE__ */ e.jsx("section", { className: "flex w-full flex-col gap-5", children: /* @__PURE__ */ e.jsx(ha, { title: t("landingFaqTitle"), items: i, initialVisibleCount: 6 }) });
|
|
1666
1666
|
}
|
|
1667
|
-
function
|
|
1667
|
+
function ji() {
|
|
1668
1668
|
const { t } = P();
|
|
1669
1669
|
return /* @__PURE__ */ e.jsx("div", { className: "flex w-full flex-col items-start gap-6 bg-[#fff6f0] px-4 py-6 border-b border-[#B2B2B2]/50", children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col items-start", children: [
|
|
1670
1670
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-start gap-2", children: [
|
|
@@ -1712,7 +1712,7 @@ function Oi() {
|
|
|
1712
1712
|
)
|
|
1713
1713
|
] })
|
|
1714
1714
|
] }),
|
|
1715
|
-
/* @__PURE__ */ e.jsx(
|
|
1715
|
+
/* @__PURE__ */ e.jsx(ji, {}),
|
|
1716
1716
|
/* @__PURE__ */ e.jsx(Si, {})
|
|
1717
1717
|
] }) });
|
|
1718
1718
|
}
|
|
@@ -1767,7 +1767,7 @@ function as({
|
|
|
1767
1767
|
/* @__PURE__ */ e.jsx(fi, {}),
|
|
1768
1768
|
/* @__PURE__ */ e.jsx(hi, {}),
|
|
1769
1769
|
/* @__PURE__ */ e.jsx(bi, { videoUrl: t }),
|
|
1770
|
-
/* @__PURE__ */ e.jsx(
|
|
1770
|
+
/* @__PURE__ */ e.jsx(vi, {}),
|
|
1771
1771
|
/* @__PURE__ */ e.jsx(Oi, {})
|
|
1772
1772
|
] });
|
|
1773
1773
|
}
|
|
@@ -1787,7 +1787,7 @@ function Di({
|
|
|
1787
1787
|
dateLabel: h,
|
|
1788
1788
|
locationLabel: L,
|
|
1789
1789
|
price: w,
|
|
1790
|
-
isAdded:
|
|
1790
|
+
isAdded: v,
|
|
1791
1791
|
onCtaClick: z,
|
|
1792
1792
|
onPriceInfoClick: G
|
|
1793
1793
|
}) {
|
|
@@ -1797,7 +1797,7 @@ function Di({
|
|
|
1797
1797
|
{
|
|
1798
1798
|
chipNumber: String(t).padStart(2, "0"),
|
|
1799
1799
|
chipLabel: i,
|
|
1800
|
-
isAdded:
|
|
1800
|
+
isAdded: v,
|
|
1801
1801
|
onEditClick: n,
|
|
1802
1802
|
editButtonAriaLabel: R("outcomeEditAriaLabel"),
|
|
1803
1803
|
onExpandClick: s,
|
|
@@ -1819,10 +1819,10 @@ function Di({
|
|
|
1819
1819
|
cta: /* @__PURE__ */ e.jsx(
|
|
1820
1820
|
Se,
|
|
1821
1821
|
{
|
|
1822
|
-
variant:
|
|
1823
|
-
leftIcon:
|
|
1822
|
+
variant: v ? "secondary" : "primary",
|
|
1823
|
+
leftIcon: v ? /* @__PURE__ */ e.jsx(Pt, {}) : /* @__PURE__ */ e.jsx(Ot, {}),
|
|
1824
1824
|
onClick: z,
|
|
1825
|
-
children: R(
|
|
1825
|
+
children: R(v ? "outcomeAddedLabel" : "outcomeAddLabel")
|
|
1826
1826
|
}
|
|
1827
1827
|
)
|
|
1828
1828
|
}
|
|
@@ -1967,7 +1967,7 @@ function _i(t) {
|
|
|
1967
1967
|
function $i(t) {
|
|
1968
1968
|
return D({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208 208-93.31 208-208S370.69 48 256 48m80 224h-64v64a16 16 0 0 1-32 0v-64h-64a16 16 0 0 1 0-32h64v-64a16 16 0 0 1 32 0v64h64a16 16 0 0 1 0 32" }, child: [] }] })(t);
|
|
1969
1969
|
}
|
|
1970
|
-
const
|
|
1970
|
+
const vt = "https://srm-sbox-cdn.a4b.io/yoda/1788262151570.svg", jt = "https://srm-sbox-cdn.a4b.io/yoda/1788261913205.svg", en = "https://srm-sbox-cdn.a4b.io/yoda/1788262091738.webp", tn = "https://srm-sbox-cdn.a4b.io/yoda/1788262066955.webp", an = "https://srm-sbox-cdn.a4b.io/yoda/1788262081237.webp", nn = "https://srm-sbox-cdn.a4b.io/yoda/1788262102550.webp", sn = [
|
|
1971
1971
|
{ key: "nameGotra", image: en, titleKey: "processNameGotraTitle", descriptionKey: "processNameGotraDescription" },
|
|
1972
1972
|
{ key: "liveUpdates", image: tn, titleKey: "processLiveUpdatesTitle", descriptionKey: "processLiveUpdatesDescription" },
|
|
1973
1973
|
{ key: "mantras", image: an, titleKey: "processMantrasTitle", descriptionKey: "processMantrasDescription" },
|
|
@@ -1978,13 +1978,13 @@ function ln() {
|
|
|
1978
1978
|
return /* @__PURE__ */ e.jsxs("section", { className: "flex w-full flex-col items-center gap-4 py-4", children: [
|
|
1979
1979
|
/* @__PURE__ */ e.jsxs("div", { className: "flex w-full items-center gap-2 px-4", children: [
|
|
1980
1980
|
/* @__PURE__ */ e.jsxs("div", { className: "flex flex-1 items-center gap-1", children: [
|
|
1981
|
-
/* @__PURE__ */ e.jsx("img", { src:
|
|
1982
|
-
/* @__PURE__ */ e.jsx("img", { src:
|
|
1981
|
+
/* @__PURE__ */ e.jsx("img", { src: vt, alt: "", "aria-hidden": !0, className: "h-px flex-1 -scale-x-100" }),
|
|
1982
|
+
/* @__PURE__ */ e.jsx("img", { src: jt, alt: "", "aria-hidden": !0, className: "size-2 shrink-0" })
|
|
1983
1983
|
] }),
|
|
1984
1984
|
/* @__PURE__ */ e.jsx("p", { className: "shrink-0 text-sm font-bold leading-5 text-[#22272b]", children: t("processInvolvedHeading") }),
|
|
1985
1985
|
/* @__PURE__ */ e.jsxs("div", { className: "flex flex-1 items-center gap-1", children: [
|
|
1986
|
-
/* @__PURE__ */ e.jsx("img", { src:
|
|
1987
|
-
/* @__PURE__ */ e.jsx("img", { src:
|
|
1986
|
+
/* @__PURE__ */ e.jsx("img", { src: jt, alt: "", "aria-hidden": !0, className: "size-2 shrink-0" }),
|
|
1987
|
+
/* @__PURE__ */ e.jsx("img", { src: vt, alt: "", "aria-hidden": !0, className: "h-px flex-1" })
|
|
1988
1988
|
] })
|
|
1989
1989
|
] }),
|
|
1990
1990
|
/* @__PURE__ */ e.jsx("div", { className: "flex w-full flex-col items-start gap-4 px-4", children: sn.map((i) => /* @__PURE__ */ e.jsxs("div", { className: "flex h-24 w-full items-center overflow-hidden rounded-xl border border-gray-100", children: [
|
|
@@ -2115,7 +2115,7 @@ function xn({
|
|
|
2115
2115
|
if (!h.current) return;
|
|
2116
2116
|
const G = h.current.y - z.clientY, R = Math.min(window.innerHeight, Math.max(200, h.current.height + G));
|
|
2117
2117
|
f(R);
|
|
2118
|
-
},
|
|
2118
|
+
}, v = () => {
|
|
2119
2119
|
if (!h.current) return;
|
|
2120
2120
|
const z = (o ?? 0) >= window.innerHeight * mn;
|
|
2121
2121
|
h.current = null, N(!1), x(z), f(z ? window.innerHeight : window.innerHeight * He);
|
|
@@ -2160,8 +2160,8 @@ function xn({
|
|
|
2160
2160
|
"aria-label": s,
|
|
2161
2161
|
onPointerDown: L,
|
|
2162
2162
|
onPointerMove: w,
|
|
2163
|
-
onPointerUp:
|
|
2164
|
-
onPointerCancel:
|
|
2163
|
+
onPointerUp: v,
|
|
2164
|
+
onPointerCancel: v,
|
|
2165
2165
|
className: "flex w-full shrink-0 cursor-grab touch-none items-center justify-center border-0 bg-transparent py-2 active:cursor-grabbing",
|
|
2166
2166
|
children: /* @__PURE__ */ e.jsx("span", { className: "h-1 w-10 rounded-full bg-gray-300" })
|
|
2167
2167
|
}
|
|
@@ -2200,8 +2200,8 @@ function me(t) {
|
|
|
2200
2200
|
function Oe(t) {
|
|
2201
2201
|
return D({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "line", attr: { x1: "19", y1: "12", x2: "5", y2: "12" }, child: [] }, { tag: "polyline", attr: { points: "12 19 5 12 12 5" }, child: [] }] })(t);
|
|
2202
2202
|
}
|
|
2203
|
-
const yn = "https://srm-cdn.a4b.io/yoda/1788253585577.svg",
|
|
2204
|
-
function
|
|
2203
|
+
const yn = "https://srm-cdn.a4b.io/yoda/1788253585577.svg", vn = "https://srm-cdn.a4b.io/yoda/1788323562516.svg";
|
|
2204
|
+
function jn({
|
|
2205
2205
|
images: t,
|
|
2206
2206
|
title: i,
|
|
2207
2207
|
description: n,
|
|
@@ -2243,7 +2243,7 @@ function vn({
|
|
|
2243
2243
|
/* @__PURE__ */ e.jsxs("div", { className: "flex w-full flex-col items-center gap-3", children: [
|
|
2244
2244
|
/* @__PURE__ */ e.jsx("p", { className: "w-full text-xl font-bold leading-7 text-[#361407]", children: i }),
|
|
2245
2245
|
/* @__PURE__ */ e.jsx("p", { className: "w-full text-sm font-normal leading-5 text-gray-500", children: n }),
|
|
2246
|
-
/* @__PURE__ */ e.jsx("img", { src:
|
|
2246
|
+
/* @__PURE__ */ e.jsx("img", { src: vn, alt: "", "aria-hidden": !0, className: "h-px w-full" }),
|
|
2247
2247
|
/* @__PURE__ */ e.jsxs("div", { className: "flex w-full flex-col items-start gap-2", children: [
|
|
2248
2248
|
/* @__PURE__ */ e.jsxs("div", { className: "flex w-full items-center gap-2", children: [
|
|
2249
2249
|
/* @__PURE__ */ e.jsx(Ht, { "aria-hidden": !0, className: "size-3.5 shrink-0 text-gray-700" }),
|
|
@@ -2560,7 +2560,7 @@ function En({
|
|
|
2560
2560
|
const [L, w] = E(null);
|
|
2561
2561
|
if (!t)
|
|
2562
2562
|
return null;
|
|
2563
|
-
const
|
|
2563
|
+
const v = L != null ? d[L] : null;
|
|
2564
2564
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2565
2565
|
/* @__PURE__ */ e.jsxs("div", { className: "fixed inset-0 z-50 mx-auto flex w-full max-w-md items-end justify-center", children: [
|
|
2566
2566
|
/* @__PURE__ */ e.jsx(
|
|
@@ -2626,10 +2626,10 @@ function En({
|
|
|
2626
2626
|
/* @__PURE__ */ e.jsx(
|
|
2627
2627
|
Mn,
|
|
2628
2628
|
{
|
|
2629
|
-
isOpen:
|
|
2629
|
+
isOpen: v != null,
|
|
2630
2630
|
avatarUrl: n,
|
|
2631
2631
|
messagePrefix: b,
|
|
2632
|
-
highlightedNames:
|
|
2632
|
+
highlightedNames: v ? `${v.name} ${v.tithi}?` : "",
|
|
2633
2633
|
confirmLabel: N,
|
|
2634
2634
|
cancelLabel: h,
|
|
2635
2635
|
onConfirm: () => {
|
|
@@ -2715,7 +2715,7 @@ function is({
|
|
|
2715
2715
|
}) {
|
|
2716
2716
|
const { t: h } = P(), [L, w] = E(
|
|
2717
2717
|
() => Object.fromEntries(i.map((m) => [m.index, m.isAdded]))
|
|
2718
|
-
), [
|
|
2718
|
+
), [v, z] = E(n?.isAdded ?? !1), [G, R] = E(null), [V, $] = E(null), [ee, X] = E(null), [re, ie] = E(
|
|
2719
2719
|
() => Object.fromEntries(
|
|
2720
2720
|
i.filter((m) => m.ancestorPujaItems).map((m) => [m.index, m.ancestorPujaItems.map((H) => H.isActive)])
|
|
2721
2721
|
)
|
|
@@ -2728,7 +2728,7 @@ function is({
|
|
|
2728
2728
|
subtitle: m.locationLabel ?? "",
|
|
2729
2729
|
lineTotal: m.price
|
|
2730
2730
|
})),
|
|
2731
|
-
...n &&
|
|
2731
|
+
...n && v ? [{ name: n.title, subtitle: n.description, lineTotal: n.price }] : []
|
|
2732
2732
|
], F = typeof V == "number" ? i.find((m) => m.index === V) ?? null : null, y = F ? [{ name: F.title, subtitle: F.locationLabel ?? "", lineTotal: F.price }] : te, T = F ? F.price : x, M = (m) => /* @__PURE__ */ e.jsx(
|
|
2733
2733
|
Di,
|
|
2734
2734
|
{
|
|
@@ -2768,7 +2768,7 @@ function is({
|
|
|
2768
2768
|
Gi,
|
|
2769
2769
|
{
|
|
2770
2770
|
...n,
|
|
2771
|
-
isAdded:
|
|
2771
|
+
isAdded: v,
|
|
2772
2772
|
onCtaClick: () => {
|
|
2773
2773
|
z((m) => !m), n.onCtaClick?.();
|
|
2774
2774
|
}
|
|
@@ -2831,7 +2831,7 @@ function is({
|
|
|
2831
2831
|
),
|
|
2832
2832
|
children: [
|
|
2833
2833
|
p && /* @__PURE__ */ e.jsx(
|
|
2834
|
-
|
|
2834
|
+
jn,
|
|
2835
2835
|
{
|
|
2836
2836
|
images: p.detailImages ?? (p.imageUrl ? [p.imageUrl] : []),
|
|
2837
2837
|
title: p.title,
|
|
@@ -2957,32 +2957,18 @@ function Ct({
|
|
|
2957
2957
|
return t ? /* @__PURE__ */ e.jsx(
|
|
2958
2958
|
"div",
|
|
2959
2959
|
{
|
|
2960
|
-
className: "
|
|
2960
|
+
className: "avatar-card-dialog",
|
|
2961
2961
|
role: "presentation",
|
|
2962
2962
|
onClick: (N) => {
|
|
2963
2963
|
N.target === N.currentTarget && i();
|
|
2964
2964
|
},
|
|
2965
|
-
children: /* @__PURE__ */ e.jsxs("div", { className: "
|
|
2966
|
-
/* @__PURE__ */ e.jsxs("div", { className: "
|
|
2967
|
-
/* @__PURE__ */ e.jsx(
|
|
2968
|
-
|
|
2969
|
-
{
|
|
2970
|
-
src: Hn,
|
|
2971
|
-
alt: "",
|
|
2972
|
-
className: "absolute top-[calc(50%-7.16px)] left-1/2 size-[60.7px] -translate-x-1/2 -translate-y-1/2"
|
|
2973
|
-
}
|
|
2974
|
-
),
|
|
2975
|
-
/* @__PURE__ */ e.jsx(
|
|
2976
|
-
"img",
|
|
2977
|
-
{
|
|
2978
|
-
src: n,
|
|
2979
|
-
alt: "",
|
|
2980
|
-
className: "pointer-events-none absolute top-0 left-1/2 size-18 -translate-x-1/2 translate-y-0 object-contain"
|
|
2981
|
-
}
|
|
2982
|
-
)
|
|
2965
|
+
children: /* @__PURE__ */ e.jsxs("div", { className: "avatar-card-dialog__card", children: [
|
|
2966
|
+
/* @__PURE__ */ e.jsxs("div", { className: "avatar-card-dialog__avatar", children: [
|
|
2967
|
+
/* @__PURE__ */ e.jsx("img", { src: Hn, alt: "", className: "avatar-card-dialog__avatar-glow" }),
|
|
2968
|
+
/* @__PURE__ */ e.jsx("img", { src: n, alt: "", className: "avatar-card-dialog__avatar-image" })
|
|
2983
2969
|
] }),
|
|
2984
|
-
/* @__PURE__ */ e.jsxs("div", { className: "
|
|
2985
|
-
/* @__PURE__ */ e.jsx("p", { className: "
|
|
2970
|
+
/* @__PURE__ */ e.jsxs("div", { className: "avatar-card-dialog__content", children: [
|
|
2971
|
+
/* @__PURE__ */ e.jsx("p", { className: "avatar-card-dialog__heading", children: s }),
|
|
2986
2972
|
/* @__PURE__ */ e.jsx(
|
|
2987
2973
|
Lt,
|
|
2988
2974
|
{
|
|
@@ -3002,7 +2988,7 @@ function Ct({
|
|
|
3002
2988
|
{
|
|
3003
2989
|
variant: "primary",
|
|
3004
2990
|
size: "md",
|
|
3005
|
-
className: "
|
|
2991
|
+
className: "avatar-card-dialog__button",
|
|
3006
2992
|
onClick: l,
|
|
3007
2993
|
children: d
|
|
3008
2994
|
}
|
|
@@ -3063,26 +3049,26 @@ function ns({
|
|
|
3063
3049
|
/* @__PURE__ */ e.jsx("p", { className: "text-[14px] leading-5 font-semibold text-[#47250c]", children: o("selectAncestorsSubheading") })
|
|
3064
3050
|
] }),
|
|
3065
3051
|
/* @__PURE__ */ e.jsxs("div", { className: "flex w-full flex-1 flex-wrap content-start items-center gap-3", children: [
|
|
3066
|
-
Te.map((
|
|
3067
|
-
|
|
3052
|
+
Te.map((v) => /* @__PURE__ */ e.jsx(
|
|
3053
|
+
ve,
|
|
3068
3054
|
{
|
|
3069
|
-
label: o(
|
|
3070
|
-
selected: f.includes(
|
|
3071
|
-
onClick: () => i({ type: "TOGGLE_ANCESTOR", payload:
|
|
3055
|
+
label: o(v.labelKey),
|
|
3056
|
+
selected: f.includes(v.id),
|
|
3057
|
+
onClick: () => i({ type: "TOGGLE_ANCESTOR", payload: v.id })
|
|
3072
3058
|
},
|
|
3073
|
-
|
|
3059
|
+
v.id
|
|
3074
3060
|
)),
|
|
3075
|
-
c.map((
|
|
3076
|
-
|
|
3061
|
+
c.map((v) => /* @__PURE__ */ e.jsx(
|
|
3062
|
+
ve,
|
|
3077
3063
|
{
|
|
3078
|
-
label:
|
|
3079
|
-
selected: f.includes(
|
|
3080
|
-
onClick: () => i({ type: "TOGGLE_ANCESTOR", payload:
|
|
3064
|
+
label: v,
|
|
3065
|
+
selected: f.includes(v),
|
|
3066
|
+
onClick: () => i({ type: "TOGGLE_ANCESTOR", payload: v })
|
|
3081
3067
|
},
|
|
3082
|
-
|
|
3068
|
+
v
|
|
3083
3069
|
)),
|
|
3084
3070
|
/* @__PURE__ */ e.jsx(
|
|
3085
|
-
|
|
3071
|
+
ve,
|
|
3086
3072
|
{
|
|
3087
3073
|
label: o("selectAncestorsOptionAddMore"),
|
|
3088
3074
|
icon: /* @__PURE__ */ e.jsx(It, { size: 20, className: "text-[#f75e22]" }),
|
|
@@ -3096,7 +3082,7 @@ function ns({
|
|
|
3096
3082
|
{
|
|
3097
3083
|
isOpen: x,
|
|
3098
3084
|
onClose: () => b(!1),
|
|
3099
|
-
onSave: (
|
|
3085
|
+
onSave: (v) => i({ type: "ADD_CUSTOM_ANCESTORS", payload: v })
|
|
3100
3086
|
}
|
|
3101
3087
|
),
|
|
3102
3088
|
/* @__PURE__ */ e.jsx(
|
|
@@ -3136,8 +3122,8 @@ function Zn(t) {
|
|
|
3136
3122
|
const Bn = 2, Jn = 3;
|
|
3137
3123
|
function ss({ store: t, mutate: i, avatarUrl: n, audioSrc: s, onBackClick: d, onProceed: l }) {
|
|
3138
3124
|
const { t: o } = P(), { selectedAncestors: f, causeOfDeathByAncestor: c } = t, [x, b] = E(!1), N = f.filter((w) => w !== Re).map((w) => {
|
|
3139
|
-
const
|
|
3140
|
-
return { key: w, label:
|
|
3125
|
+
const v = Te.find((z) => z.id === w);
|
|
3126
|
+
return { key: w, label: v ? o(v.labelKey) : w };
|
|
3141
3127
|
}), h = N.length > 0 && N.every((w) => c[w.key] === "natural"), L = N.length > 0 && N.every((w) => !!c[w.key]);
|
|
3142
3128
|
return /* @__PURE__ */ e.jsxs("div", { className: "flex min-h-screen w-full flex-col bg-linear-to-b from-[28.5%] from-[#fff9e9] to-33% to-white pt-2", children: [
|
|
3143
3129
|
/* @__PURE__ */ e.jsxs("div", { className: "flex w-full items-center gap-3 px-4 py-3", children: [
|
|
@@ -3194,17 +3180,17 @@ function ss({ store: t, mutate: i, avatarUrl: n, audioSrc: s, onBackClick: d, on
|
|
|
3194
3180
|
/* @__PURE__ */ e.jsx("p", { className: "text-[14px] leading-5 font-bold text-[#39200e]", children: w.label })
|
|
3195
3181
|
] }),
|
|
3196
3182
|
/* @__PURE__ */ e.jsx("div", { className: "h-px w-full bg-[rgba(28,27,27,0.05)]" }),
|
|
3197
|
-
/* @__PURE__ */ e.jsx("div", { className: "flex w-full flex-wrap items-center gap-2", children: qa.map((
|
|
3198
|
-
|
|
3183
|
+
/* @__PURE__ */ e.jsx("div", { className: "flex w-full flex-wrap items-center gap-2", children: qa.map((v) => /* @__PURE__ */ e.jsx(
|
|
3184
|
+
ve,
|
|
3199
3185
|
{
|
|
3200
|
-
label: o(
|
|
3201
|
-
selected: c[w.key] ===
|
|
3186
|
+
label: o(v.labelKey),
|
|
3187
|
+
selected: c[w.key] === v.value,
|
|
3202
3188
|
onClick: () => i({
|
|
3203
3189
|
type: "SET_CAUSE_OF_DEATH",
|
|
3204
|
-
payload: { ancestorKey: w.key, cause:
|
|
3190
|
+
payload: { ancestorKey: w.key, cause: v.value }
|
|
3205
3191
|
})
|
|
3206
3192
|
},
|
|
3207
|
-
|
|
3193
|
+
v.value
|
|
3208
3194
|
)) })
|
|
3209
3195
|
]
|
|
3210
3196
|
},
|
|
@@ -3329,7 +3315,7 @@ function ls({
|
|
|
3329
3315
|
deathTithiValueByAncestor: h,
|
|
3330
3316
|
deathDateByAncestor: L,
|
|
3331
3317
|
tithiValidityByAncestor: w,
|
|
3332
|
-
currentDeathTithiAncestorIndex:
|
|
3318
|
+
currentDeathTithiAncestorIndex: v
|
|
3333
3319
|
} = t, [z, G] = E(!1), [R, V] = E(!1), [$, ee] = E(null), X = rt(() => {
|
|
3334
3320
|
const y = new Intl.DateTimeFormat(x === "hi" ? "hi-IN" : "en-IN", { month: "long" });
|
|
3335
3321
|
return Array.from({ length: 12 }, (T, M) => y.format(new Date(2e3, M, 1)));
|
|
@@ -3339,7 +3325,7 @@ function ls({
|
|
|
3339
3325
|
}, ie = rt(() => xt.map((y) => c(y)), [c]), B = b.filter((y) => y !== Re).map((y) => {
|
|
3340
3326
|
const T = Te.find((M) => M.id === y);
|
|
3341
3327
|
return { key: y, label: T ? c(T.labelKey) : y };
|
|
3342
|
-
}), K = Math.min(
|
|
3328
|
+
}), K = Math.min(v, Math.max(B.length - 1, 0)), [U, q] = E(K);
|
|
3343
3329
|
Ze(() => {
|
|
3344
3330
|
q(K);
|
|
3345
3331
|
}, [K]);
|
|
@@ -3436,7 +3422,7 @@ function ls({
|
|
|
3436
3422
|
onClick: () => V(!0)
|
|
3437
3423
|
}
|
|
3438
3424
|
),
|
|
3439
|
-
T && y.value === "unknown" && /* @__PURE__ */ e.jsxs(
|
|
3425
|
+
T && y.value === "unknown" && /* @__PURE__ */ e.jsxs(va, { className: "bg-transparent px-4 text-left", children: [
|
|
3440
3426
|
/* @__PURE__ */ e.jsx("p", { className: "text-[12px] leading-4 font-bold text-[#632e06]", children: c("deathTithiOption3ExpandedTitle") }),
|
|
3441
3427
|
/* @__PURE__ */ e.jsx("p", { className: "mt-1 text-[10px] leading-3.5 font-medium text-[#632e06]", children: c("deathTithiOption3ExpandedBody") })
|
|
3442
3428
|
] })
|
|
@@ -3447,7 +3433,7 @@ function ls({
|
|
|
3447
3433
|
}) })
|
|
3448
3434
|
] }),
|
|
3449
3435
|
p && /* @__PURE__ */ e.jsx(
|
|
3450
|
-
|
|
3436
|
+
ja,
|
|
3451
3437
|
{
|
|
3452
3438
|
isOpen: z,
|
|
3453
3439
|
onClose: () => G(!1),
|