@srimandir/make-your-own-ritual 0.50.0 → 0.52.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.
|
@@ -7,6 +7,8 @@ import { PujaDetailsSheetScrollInfo } from '../PujaDetailsSheet';
|
|
|
7
7
|
* type, so ritual-recommendations' own type is untouched.
|
|
8
8
|
*/
|
|
9
9
|
export type MyorOutcomeRitualData = OutcomeRitualData & {
|
|
10
|
+
/** L2 title used only inside the Puja details bottom sheet. */
|
|
11
|
+
detailTitle?: string;
|
|
10
12
|
devoteesReviews?: DevoteeReviewData[];
|
|
11
13
|
learnMoreLabel?: string;
|
|
12
14
|
/** Drives which "learn more" sheet opens — a `ChadhavaSevaBottomSheet` for add-ons vs the full `PujaDetailsSheet` for a real ritual, same split the landing page makes. */
|
|
@@ -989,9 +989,9 @@ function ei() {
|
|
|
989
989
|
}
|
|
990
990
|
}
|
|
991
991
|
}
|
|
992
|
-
var
|
|
992
|
+
var N = Array.isArray;
|
|
993
993
|
function $e(t) {
|
|
994
|
-
return
|
|
994
|
+
return N(t);
|
|
995
995
|
}
|
|
996
996
|
function we(t) {
|
|
997
997
|
{
|
|
@@ -2292,7 +2292,7 @@ function zr(a) {
|
|
|
2292
2292
|
function Ur(a) {
|
|
2293
2293
|
return re({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z" }, child: [] }] })(a);
|
|
2294
2294
|
}
|
|
2295
|
-
const Vr = "myor_card_POf7K", Kr = "myor_cardSelected_wCllF", qr = "myor_cardUnselected_BPzTK", Qr = "myor_toggleButton_u8t2I", Jr = "myor_image_t2gR7", Xr = "myor_textCol_DMIK2", Zr = "myor_title_K9YEj", es = "myor_description_gY9eW", ts = "myor_checkboxWrap_oI9If", as = "myor_checkboxIconSelected_BGx0o", is = "myor_checkboxIconUnselected_jVp8v", rs = "myor_divider_FKvWz", ss = "myor_dividerRule_QJsNV", os = "myor_locationRow_8mnFW", ns = "myor_locationIcon_-Rlkl", ls = "myor_locationLabel_WobTw", cs = "myor_tagsRow_USLYk", ds = "myor_tagsRowBleed_Zo3-x", us = "myor_tagRowDefault_greq1", hs = "myor_tagText_nMC6Y", ms = "myor_tagTextDefault_h-vQx", ps = "myor_tagDot_sKYge", fs = "myor_priceRow_Rgvwn", ys = "myor_priceGroup_2-XnO", xs = "myor_priceLabel_d0XGz", bs = "myor_priceValue_JTX-v", gs = "myor_linkButton_SY8Y0", vs = "myor_linkIcon_Ux61m",
|
|
2295
|
+
const Vr = "myor_card_POf7K", Kr = "myor_cardSelected_wCllF", qr = "myor_cardUnselected_BPzTK", Qr = "myor_toggleButton_u8t2I", Jr = "myor_image_t2gR7", Xr = "myor_textCol_DMIK2", Zr = "myor_title_K9YEj", es = "myor_description_gY9eW", ts = "myor_checkboxWrap_oI9If", as = "myor_checkboxIconSelected_BGx0o", is = "myor_checkboxIconUnselected_jVp8v", rs = "myor_divider_FKvWz", ss = "myor_dividerRule_QJsNV", os = "myor_locationRow_8mnFW", ns = "myor_locationIcon_-Rlkl", ls = "myor_locationLabel_WobTw", cs = "myor_tagsRow_USLYk", ds = "myor_tagsRowBleed_Zo3-x", us = "myor_tagRowDefault_greq1", hs = "myor_tagText_nMC6Y", ms = "myor_tagTextDefault_h-vQx", ps = "myor_tagDot_sKYge", fs = "myor_priceRow_Rgvwn", ys = "myor_priceGroup_2-XnO", xs = "myor_priceLabel_d0XGz", bs = "myor_priceValue_JTX-v", gs = "myor_linkButton_SY8Y0", vs = "myor_linkIcon_Ux61m", O = {
|
|
2296
2296
|
card: Vr,
|
|
2297
2297
|
cardSelected: Kr,
|
|
2298
2298
|
cardUnselected: qr,
|
|
@@ -2360,33 +2360,33 @@ function Cs({
|
|
|
2360
2360
|
onImpression: Y
|
|
2361
2361
|
}) {
|
|
2362
2362
|
const R = _s(Y);
|
|
2363
|
-
return /* @__PURE__ */ e.jsxs("div", { ref: R, className: Se(
|
|
2364
|
-
/* @__PURE__ */ e.jsxs("button", { type: "button", onClick: v, "aria-pressed": P, "aria-label": b, className:
|
|
2365
|
-
/* @__PURE__ */ e.jsx("img", { src: a, alt: i, className:
|
|
2366
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2367
|
-
/* @__PURE__ */ e.jsx("p", { className: Se(
|
|
2368
|
-
/* @__PURE__ */ e.jsx("p", { className: Se(
|
|
2363
|
+
return /* @__PURE__ */ e.jsxs("div", { ref: R, className: Se(O.card, P ? O.cardSelected : O.cardUnselected, C), children: [
|
|
2364
|
+
/* @__PURE__ */ e.jsxs("button", { type: "button", onClick: v, "aria-pressed": P, "aria-label": b, className: O.toggleButton, children: [
|
|
2365
|
+
/* @__PURE__ */ e.jsx("img", { src: a, alt: i, className: O.image }),
|
|
2366
|
+
/* @__PURE__ */ e.jsxs("div", { className: O.textCol, children: [
|
|
2367
|
+
/* @__PURE__ */ e.jsx("p", { className: Se(O.title, r), children: n }),
|
|
2368
|
+
/* @__PURE__ */ e.jsx("p", { className: Se(O.description, p), children: h })
|
|
2369
2369
|
] }),
|
|
2370
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
2370
|
+
/* @__PURE__ */ e.jsx("span", { className: O.checkboxWrap, "aria-hidden": !0, children: P ? /* @__PURE__ */ e.jsx(Ur, { className: O.checkboxIconSelected }) : /* @__PURE__ */ e.jsx(zr, { className: O.checkboxIconUnselected }) })
|
|
2371
2371
|
] }),
|
|
2372
|
-
(f || u || c) && /* @__PURE__ */ e.jsx("hr", { className: Se(
|
|
2373
|
-
f && /* @__PURE__ */ e.jsxs("div", { className:
|
|
2374
|
-
/* @__PURE__ */ e.jsx("img", { src: Ts, alt: "", "aria-hidden": !0, className:
|
|
2375
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
2372
|
+
(f || u || c) && /* @__PURE__ */ e.jsx("hr", { className: Se(O.divider, O.dividerRule) }),
|
|
2373
|
+
f && /* @__PURE__ */ e.jsxs("div", { className: O.locationRow, children: [
|
|
2374
|
+
/* @__PURE__ */ e.jsx("img", { src: Ts, alt: "", "aria-hidden": !0, className: O.locationIcon }),
|
|
2375
|
+
/* @__PURE__ */ e.jsx("p", { className: O.locationLabel, children: f })
|
|
2376
2376
|
] }),
|
|
2377
|
-
(u || c) && /* @__PURE__ */ e.jsxs("div", { className: Se(
|
|
2378
|
-
u && /* @__PURE__ */ e.jsx("p", { className: Se(
|
|
2379
|
-
u && c && /* @__PURE__ */ e.jsx("span", { className: Se(
|
|
2380
|
-
c && /* @__PURE__ */ e.jsx("p", { className: Se(
|
|
2377
|
+
(u || c) && /* @__PURE__ */ e.jsxs("div", { className: Se(O.tagsRow, O.tagsRowBleed, A ?? O.tagRowDefault), children: [
|
|
2378
|
+
u && /* @__PURE__ */ e.jsx("p", { className: Se(O.tagText, l ?? O.tagTextDefault), children: u }),
|
|
2379
|
+
u && c && /* @__PURE__ */ e.jsx("span", { className: Se(O.tagDot, l ?? O.tagTextDefault), "aria-hidden": !0 }),
|
|
2380
|
+
c && /* @__PURE__ */ e.jsx("p", { className: Se(O.tagText, l ?? O.tagTextDefault), children: c })
|
|
2381
2381
|
] }),
|
|
2382
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2383
|
-
/* @__PURE__ */ e.jsxs("p", { className:
|
|
2384
|
-
T && /* @__PURE__ */ e.jsx("span", { className:
|
|
2385
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
2382
|
+
/* @__PURE__ */ e.jsxs("div", { className: O.priceRow, children: [
|
|
2383
|
+
/* @__PURE__ */ e.jsxs("p", { className: O.priceGroup, children: [
|
|
2384
|
+
T && /* @__PURE__ */ e.jsx("span", { className: O.priceLabel, children: T }),
|
|
2385
|
+
/* @__PURE__ */ e.jsx("span", { className: O.priceValue, children: D })
|
|
2386
2386
|
] }),
|
|
2387
|
-
/* @__PURE__ */ e.jsxs("button", { type: "button", onClick: $, className:
|
|
2387
|
+
/* @__PURE__ */ e.jsxs("button", { type: "button", onClick: $, className: O.linkButton, children: [
|
|
2388
2388
|
B,
|
|
2389
|
-
/* @__PURE__ */ e.jsx(na, { "aria-hidden": !0, className:
|
|
2389
|
+
/* @__PURE__ */ e.jsx(na, { "aria-hidden": !0, className: O.linkIcon })
|
|
2390
2390
|
] })
|
|
2391
2391
|
] })
|
|
2392
2392
|
] });
|
|
@@ -3094,7 +3094,7 @@ function Tn({
|
|
|
3094
3094
|
return E ? s.ancestorPujaItems.filter((fe, X) => !E[X]).map((fe) => fe.name) : [];
|
|
3095
3095
|
}, Re = a.filter(Ce), Be = a.filter(
|
|
3096
3096
|
(s) => !Ce(s) || Ke(s).length > 0
|
|
3097
|
-
), yt = Be.length > 0,
|
|
3097
|
+
), yt = Be.length > 0, N = a.find((s) => s.index === J) ?? null, $e = N?.ritualType != null && N.ritualType !== "ritual", we = a.find((s) => s.index === H) ?? null, We = we?.ancestorPujaItems?.map((s, E) => ({
|
|
3098
3098
|
...s,
|
|
3099
3099
|
isActive: m[we.index]?.[E] ?? s.isActive
|
|
3100
3100
|
})), at = R("billDetailsFeeLabel"), qe = (s) => typeof s == "string" ? s : "", Qe = (s, E, fe, X) => ({
|
|
@@ -3226,24 +3226,24 @@ function Tn({
|
|
|
3226
3226
|
totalAmount: gt
|
|
3227
3227
|
}
|
|
3228
3228
|
),
|
|
3229
|
-
$e &&
|
|
3229
|
+
$e && N && /* @__PURE__ */ e.jsx(
|
|
3230
3230
|
Gs,
|
|
3231
3231
|
{
|
|
3232
3232
|
isOpen: !0,
|
|
3233
3233
|
onClose: () => {
|
|
3234
3234
|
J != null && P?.(J), ne(null);
|
|
3235
3235
|
},
|
|
3236
|
-
imageUrl:
|
|
3237
|
-
title:
|
|
3238
|
-
description:
|
|
3239
|
-
dateLabel:
|
|
3240
|
-
locationLabel:
|
|
3236
|
+
imageUrl: N.imageUrl ?? "",
|
|
3237
|
+
title: N.title,
|
|
3238
|
+
description: N.description ?? "",
|
|
3239
|
+
dateLabel: N.dateLabel,
|
|
3240
|
+
locationLabel: N.locationLabel
|
|
3241
3241
|
}
|
|
3242
3242
|
),
|
|
3243
3243
|
/* @__PURE__ */ e.jsxs(
|
|
3244
3244
|
tn,
|
|
3245
3245
|
{
|
|
3246
|
-
isOpen:
|
|
3246
|
+
isOpen: N != null && !$e,
|
|
3247
3247
|
onClose: () => {
|
|
3248
3248
|
J != null && P?.(J), ne(null);
|
|
3249
3249
|
},
|
|
@@ -3263,35 +3263,35 @@ function Tn({
|
|
|
3263
3263
|
),
|
|
3264
3264
|
onScroll: v && J != null ? (s) => v(J, s) : void 0,
|
|
3265
3265
|
children: [
|
|
3266
|
-
|
|
3266
|
+
N && /* @__PURE__ */ e.jsx(
|
|
3267
3267
|
Ma,
|
|
3268
3268
|
{
|
|
3269
|
-
images:
|
|
3270
|
-
title:
|
|
3271
|
-
useCase:
|
|
3272
|
-
dateLabel:
|
|
3273
|
-
locationLabel:
|
|
3269
|
+
images: N.detailImages ?? (N.imageUrl ? [N.imageUrl] : []),
|
|
3270
|
+
title: N.detailTitle ?? N.title,
|
|
3271
|
+
useCase: N.pooja_usecase,
|
|
3272
|
+
dateLabel: N.dateLabel ?? "",
|
|
3273
|
+
locationLabel: N.locationLabel ?? ""
|
|
3274
3274
|
}
|
|
3275
3275
|
),
|
|
3276
|
-
|
|
3276
|
+
N && /* @__PURE__ */ e.jsx(
|
|
3277
3277
|
an,
|
|
3278
3278
|
{
|
|
3279
3279
|
heading: L("ritualAboutLink"),
|
|
3280
|
-
description:
|
|
3280
|
+
description: N.detailDescription ?? N.description,
|
|
3281
3281
|
readMoreLabel: L("ritualReadMore"),
|
|
3282
3282
|
readLessLabel: L("ritualReadLess")
|
|
3283
3283
|
}
|
|
3284
3284
|
),
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3285
|
+
N?.detailBenefits && /* @__PURE__ */ e.jsx(Fa, { heading: R("pujaBenefitsHeading"), benefits: N.detailBenefits }),
|
|
3286
|
+
N?.detailTempleSignificance && /* @__PURE__ */ e.jsx(Ya, { ...N.detailTempleSignificance }),
|
|
3287
|
+
N && N.devoteesReviews && N.devoteesReviews.length > 0 && /* @__PURE__ */ e.jsx(
|
|
3288
3288
|
sn,
|
|
3289
3289
|
{
|
|
3290
3290
|
heading: R("devoteesReviewsHeading"),
|
|
3291
3291
|
subtitle: R("devoteesReviewsSubtitle"),
|
|
3292
3292
|
mediaHeading: L("pujaVideoTestimonialsHeading"),
|
|
3293
3293
|
mediaSubtitle: L("pujaVideoTestimonialsSubtitle"),
|
|
3294
|
-
reviews:
|
|
3294
|
+
reviews: N.devoteesReviews,
|
|
3295
3295
|
reviewMedia: n,
|
|
3296
3296
|
seeMoreLabel: R("devoteesReviewsSeeMoreLabel"),
|
|
3297
3297
|
onSeeMoreClick: r
|