@srimandir/kundli-matching-generator 1.0.27 → 1.0.28
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/{criticalCss-WjPGKUBF.js → criticalCss-DtVpO1wg.js} +52 -52
- package/dist/{criticalCss-WjPGKUBF.js.map → criticalCss-DtVpO1wg.js.map} +1 -1
- package/dist/kundli-matching-generator.js +1 -1
- package/dist/page-entry.js +1 -1
- package/dist/translations-CLfxnJz7.js.map +1 -1
- package/package.json +4 -3
- package/dist/pdf-CH8PifTT.js +0 -10218
- package/dist/pdf-CH8PifTT.js.map +0 -1
|
@@ -226,19 +226,19 @@ const qs = ({
|
|
|
226
226
|
title: n,
|
|
227
227
|
pdfUrl: t
|
|
228
228
|
}) => {
|
|
229
|
-
const i = C(null), [d, o] = R(!0), [
|
|
229
|
+
const i = C(null), [d, o] = R(!0), [h, _] = R(null), [N, I] = R(null);
|
|
230
230
|
return w(() => {
|
|
231
231
|
if (!s) return;
|
|
232
|
-
const
|
|
232
|
+
const m = (x) => {
|
|
233
233
|
x.key === "Escape" && r();
|
|
234
234
|
};
|
|
235
|
-
return document.addEventListener("keydown",
|
|
236
|
-
document.removeEventListener("keydown",
|
|
235
|
+
return document.addEventListener("keydown", m), document.body.style.overflow = "hidden", () => {
|
|
236
|
+
document.removeEventListener("keydown", m), document.body.style.overflow = "";
|
|
237
237
|
};
|
|
238
238
|
}, [s, r]), w(() => {
|
|
239
|
-
s && import("
|
|
240
|
-
I(
|
|
241
|
-
}).catch((
|
|
239
|
+
s && import("pdfjs-dist").then((m) => {
|
|
240
|
+
I(m);
|
|
241
|
+
}).catch((m) => {
|
|
242
242
|
_("Failed to load PDF viewer"), o(!1);
|
|
243
243
|
});
|
|
244
244
|
}, [s]), w(() => {
|
|
@@ -273,7 +273,7 @@ const qs = ({
|
|
|
273
273
|
"div",
|
|
274
274
|
{
|
|
275
275
|
className: L.modal,
|
|
276
|
-
onClick: (
|
|
276
|
+
onClick: (m) => m.stopPropagation(),
|
|
277
277
|
children: [
|
|
278
278
|
/* @__PURE__ */ e.jsxs("div", { className: L.header, children: [
|
|
279
279
|
/* @__PURE__ */ e.jsx("h2", { id: "sample-report-modal-title", className: L.title, children: n }),
|
|
@@ -290,8 +290,8 @@ const qs = ({
|
|
|
290
290
|
] }),
|
|
291
291
|
/* @__PURE__ */ e.jsxs("div", { className: L.content, children: [
|
|
292
292
|
/* @__PURE__ */ e.jsxs("div", { className: L.pdfFrame, children: [
|
|
293
|
-
|
|
294
|
-
/* @__PURE__ */ e.jsx("span", { children:
|
|
293
|
+
h && /* @__PURE__ */ e.jsxs("div", { className: L.pdfError, children: [
|
|
294
|
+
/* @__PURE__ */ e.jsx("span", { children: h }),
|
|
295
295
|
/* @__PURE__ */ e.jsx("a", { href: t, target: "_blank", rel: "noopener noreferrer", children: "Open in new tab instead" })
|
|
296
296
|
] }),
|
|
297
297
|
/* @__PURE__ */ e.jsx("div", { ref: i, className: L.pdfPages })
|
|
@@ -318,7 +318,7 @@ const qs = ({
|
|
|
318
318
|
analytics: n,
|
|
319
319
|
className: t = ""
|
|
320
320
|
}) => {
|
|
321
|
-
const [i, d] = R(!1), o = s("viewSampleReport"),
|
|
321
|
+
const [i, d] = R(!1), o = s("viewSampleReport"), h = s("sampleReportModalTitle"), _ = () => {
|
|
322
322
|
n?.trackViewSampleReportClicked?.(), d(!0);
|
|
323
323
|
}, N = () => {
|
|
324
324
|
n?.trackViewSampleReportClosed?.(), d(!1);
|
|
@@ -330,7 +330,7 @@ const qs = ({
|
|
|
330
330
|
{
|
|
331
331
|
isOpen: i,
|
|
332
332
|
onClose: N,
|
|
333
|
-
title:
|
|
333
|
+
title: h,
|
|
334
334
|
pdfUrl: r
|
|
335
335
|
}
|
|
336
336
|
)
|
|
@@ -346,7 +346,7 @@ function U({
|
|
|
346
346
|
return w(() => {
|
|
347
347
|
const o = i.current;
|
|
348
348
|
if (!o) return;
|
|
349
|
-
const
|
|
349
|
+
const h = new IntersectionObserver(
|
|
350
350
|
([_]) => {
|
|
351
351
|
!_?.isIntersecting || d.current || (d.current = !0, n?.trackSneakPeekCardViewed?.({
|
|
352
352
|
cardNumber: s,
|
|
@@ -356,7 +356,7 @@ function U({
|
|
|
356
356
|
{ threshold: 0.5 }
|
|
357
357
|
// Card must be 50% visible
|
|
358
358
|
);
|
|
359
|
-
return
|
|
359
|
+
return h.observe(o), () => h.disconnect();
|
|
360
360
|
}, [s, r, n]), /* @__PURE__ */ e.jsx("div", { ref: i, children: t });
|
|
361
361
|
}
|
|
362
362
|
const aa = ({
|
|
@@ -646,7 +646,7 @@ const aa = ({
|
|
|
646
646
|
className: n = "",
|
|
647
647
|
analytics: t
|
|
648
648
|
}) => {
|
|
649
|
-
const i = C(null), [d, o] = R(0), [
|
|
649
|
+
const i = C(null), [d, o] = R(0), [h, _] = R(!1), N = C(null), I = C(!1), m = C(-1), x = r || [
|
|
650
650
|
{
|
|
651
651
|
name: s("testimonial1Name"),
|
|
652
652
|
avatarUrl: s("testimonial1Avatar"),
|
|
@@ -716,12 +716,12 @@ const aa = ({
|
|
|
716
716
|
}, [f]), w(() => () => {
|
|
717
717
|
N.current && clearTimeout(N.current);
|
|
718
718
|
}, []), w(() => {
|
|
719
|
-
if (
|
|
719
|
+
if (h) return;
|
|
720
720
|
const b = setInterval(() => {
|
|
721
721
|
o((u) => u + 1);
|
|
722
722
|
}, Ia);
|
|
723
723
|
return () => clearInterval(b);
|
|
724
|
-
}, [
|
|
724
|
+
}, [h]), w(() => {
|
|
725
725
|
if (!i.current || d === 0) return;
|
|
726
726
|
D(d, !0);
|
|
727
727
|
const b = setTimeout(() => {
|
|
@@ -746,7 +746,7 @@ const aa = ({
|
|
|
746
746
|
if (T !== d && T >= 0 && T < k.length) {
|
|
747
747
|
o(T);
|
|
748
748
|
const M = T % g;
|
|
749
|
-
|
|
749
|
+
m.current !== M && t?.trackTestimonialScrolled && (m.current = M, t.trackTestimonialScrolled({
|
|
750
750
|
reviewIndex: M,
|
|
751
751
|
reviewerName: x[M]?.name || "",
|
|
752
752
|
isManualScroll: !0
|
|
@@ -987,13 +987,13 @@ const aa = ({
|
|
|
987
987
|
const o = ee(
|
|
988
988
|
() => lt(r, t),
|
|
989
989
|
[r, t]
|
|
990
|
-
),
|
|
990
|
+
), h = o === null, _ = (N) => {
|
|
991
991
|
if (N.preventDefault(), i?.trackKundliMatchingL0CtaClick?.({
|
|
992
|
-
ctaText: s(
|
|
993
|
-
isFormComplete:
|
|
994
|
-
}), !
|
|
992
|
+
ctaText: s(h ? "ctaButtonSelectPlan" : "ctaButton"),
|
|
993
|
+
isFormComplete: h
|
|
994
|
+
}), !h) {
|
|
995
995
|
if (o) {
|
|
996
|
-
const
|
|
996
|
+
const m = {
|
|
997
997
|
"boy.fullName": "boy-full-name",
|
|
998
998
|
"boy.dateOfBirth": "boy-dob",
|
|
999
999
|
"boy.birthTime": "boy-birth-time",
|
|
@@ -1005,7 +1005,7 @@ const aa = ({
|
|
|
1005
1005
|
phone: "kundli-matching-phone",
|
|
1006
1006
|
email: "kundli-matching-email",
|
|
1007
1007
|
reportLanguage: "language-selector"
|
|
1008
|
-
}[o], x = document.getElementById(
|
|
1008
|
+
}[o], x = document.getElementById(m);
|
|
1009
1009
|
x && (x.scrollIntoView({ behavior: "smooth", block: "center" }), (x.tagName === "INPUT" || x.tagName === "TEXTAREA") && setTimeout(() => x.focus(), 500));
|
|
1010
1010
|
}
|
|
1011
1011
|
return;
|
|
@@ -1018,8 +1018,8 @@ const aa = ({
|
|
|
1018
1018
|
ie,
|
|
1019
1019
|
{
|
|
1020
1020
|
onClick: _,
|
|
1021
|
-
className:
|
|
1022
|
-
children:
|
|
1021
|
+
className: h ? H.ctaCompleted : H.ctaIncomplete,
|
|
1022
|
+
children: h ? /* @__PURE__ */ e.jsxs("span", { className: H.ctaWithArrow, children: [
|
|
1023
1023
|
s("ctaButtonSelectPlan"),
|
|
1024
1024
|
/* @__PURE__ */ e.jsx(
|
|
1025
1025
|
"img",
|
|
@@ -1171,7 +1171,7 @@ const aa = ({
|
|
|
1171
1171
|
s.astrologers && /* @__PURE__ */ e.jsx("div", { className: c.planDivider }),
|
|
1172
1172
|
s.astrologers && s.astrologers.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1173
1173
|
/* @__PURE__ */ e.jsx("p", { className: c.astrologerHeading, children: "We will assign you a top astrologer from below" }),
|
|
1174
|
-
/* @__PURE__ */ e.jsx("div", { className: c.astrologerList, role: "list", children: s.astrologers.map((o,
|
|
1174
|
+
/* @__PURE__ */ e.jsx("div", { className: c.astrologerList, role: "list", children: s.astrologers.map((o, h) => /* @__PURE__ */ e.jsx("div", { role: "listitem", children: /* @__PURE__ */ e.jsx(rr, { astrologer: o, t }) }, h)) })
|
|
1175
1175
|
] })
|
|
1176
1176
|
] })
|
|
1177
1177
|
]
|
|
@@ -1246,19 +1246,19 @@ const aa = ({
|
|
|
1246
1246
|
plans: i,
|
|
1247
1247
|
onProceed: d,
|
|
1248
1248
|
isGlobal: o = !1,
|
|
1249
|
-
t:
|
|
1249
|
+
t: h
|
|
1250
1250
|
}) => {
|
|
1251
|
-
const _ = i ?? or(o), N = n?.id || _.find((
|
|
1251
|
+
const _ = i ?? or(o), N = n?.id || _.find((m) => m.badge)?.id || _[0]?.id || "", I = C(null);
|
|
1252
1252
|
return w(() => {
|
|
1253
1253
|
if (s && !n) {
|
|
1254
|
-
const
|
|
1255
|
-
|
|
1254
|
+
const m = _.find((x) => x.badge) ?? _[0];
|
|
1255
|
+
m && t(m);
|
|
1256
1256
|
}
|
|
1257
1257
|
}, [s, _, n, t]), w(() => {
|
|
1258
1258
|
if (!s) return;
|
|
1259
|
-
const
|
|
1259
|
+
const m = document.body.style.overflow;
|
|
1260
1260
|
return document.body.style.overflow = "hidden", () => {
|
|
1261
|
-
document.body.style.overflow =
|
|
1261
|
+
document.body.style.overflow = m;
|
|
1262
1262
|
};
|
|
1263
1263
|
}, [s]), s ? /* @__PURE__ */ e.jsx(
|
|
1264
1264
|
"div",
|
|
@@ -1266,27 +1266,27 @@ const aa = ({
|
|
|
1266
1266
|
className: c.overlay,
|
|
1267
1267
|
role: "dialog",
|
|
1268
1268
|
"aria-modal": "true",
|
|
1269
|
-
"aria-label":
|
|
1269
|
+
"aria-label": h?.("Choose Your Kundli Plan") ?? "Choose Your Kundli Plan",
|
|
1270
1270
|
children: /* @__PURE__ */ e.jsxs("div", { ref: I, className: c.sheet, children: [
|
|
1271
1271
|
/* @__PURE__ */ e.jsx(
|
|
1272
1272
|
ar,
|
|
1273
1273
|
{
|
|
1274
|
-
title:
|
|
1274
|
+
title: h?.("Choose Your Kundli Plan") ?? "Choose Your Kundli Plan",
|
|
1275
1275
|
onBack: r
|
|
1276
1276
|
}
|
|
1277
1277
|
),
|
|
1278
|
-
/* @__PURE__ */ e.jsx("div", { className: c.plansContainer, role: "radiogroup", "aria-label": "Kundli matching plans", children: _.map((
|
|
1278
|
+
/* @__PURE__ */ e.jsx("div", { className: c.plansContainer, role: "radiogroup", "aria-label": "Kundli matching plans", children: _.map((m) => /* @__PURE__ */ e.jsx(
|
|
1279
1279
|
ir,
|
|
1280
1280
|
{
|
|
1281
|
-
plan:
|
|
1282
|
-
isSelected:
|
|
1283
|
-
t:
|
|
1281
|
+
plan: m,
|
|
1282
|
+
isSelected: m.id === N,
|
|
1283
|
+
t: h,
|
|
1284
1284
|
onSelect: (x) => {
|
|
1285
1285
|
const k = _.find((g) => g.id === x);
|
|
1286
1286
|
k && t(k);
|
|
1287
1287
|
}
|
|
1288
1288
|
},
|
|
1289
|
-
|
|
1289
|
+
m.id
|
|
1290
1290
|
)) }),
|
|
1291
1291
|
/* @__PURE__ */ e.jsx("div", { className: c.footer, children: /* @__PURE__ */ e.jsx(
|
|
1292
1292
|
"button",
|
|
@@ -1313,8 +1313,8 @@ function S({
|
|
|
1313
1313
|
const d = t.current;
|
|
1314
1314
|
if (!d) return;
|
|
1315
1315
|
const o = new IntersectionObserver(
|
|
1316
|
-
([
|
|
1317
|
-
!
|
|
1316
|
+
([h]) => {
|
|
1317
|
+
!h?.isIntersecting || i.current || (i.current = !0, r(s));
|
|
1318
1318
|
},
|
|
1319
1319
|
{
|
|
1320
1320
|
threshold: 0.1,
|
|
@@ -1333,7 +1333,7 @@ const xr = ({
|
|
|
1333
1333
|
analytics: i,
|
|
1334
1334
|
googleMapsApiKey: d,
|
|
1335
1335
|
plans: o,
|
|
1336
|
-
onProceed:
|
|
1336
|
+
onProceed: h,
|
|
1337
1337
|
onLocaleChange: _
|
|
1338
1338
|
}) => /* @__PURE__ */ e.jsx(
|
|
1339
1339
|
z,
|
|
@@ -1343,16 +1343,16 @@ const xr = ({
|
|
|
1343
1343
|
isGlobal: t,
|
|
1344
1344
|
googleMapsApiKey: d,
|
|
1345
1345
|
plans: o,
|
|
1346
|
-
onProceed:
|
|
1346
|
+
onProceed: h,
|
|
1347
1347
|
analytics: i,
|
|
1348
1348
|
onLocaleChange: _,
|
|
1349
1349
|
children: /* @__PURE__ */ e.jsx(pr, { className: s })
|
|
1350
1350
|
}
|
|
1351
1351
|
);
|
|
1352
1352
|
function pr({ className: s }) {
|
|
1353
|
-
const { locale: r, setLocale: n, config: t, formValues: i, setFormValues: d } = Q(), [o,
|
|
1353
|
+
const { locale: r, setLocale: n, config: t, formValues: i, setFormValues: d } = Q(), [o, h] = R(!1), [_, N] = R(
|
|
1354
1354
|
null
|
|
1355
|
-
), [I,
|
|
1355
|
+
), [I, m] = R(!1), x = C(null), k = C(!1), g = (l) => mr(r, l), f = se((l) => {
|
|
1356
1356
|
({
|
|
1357
1357
|
hero: () => t.analytics?.trackHeroSectionViewed?.(),
|
|
1358
1358
|
features: () => t.analytics?.trackFeaturesSectionViewed?.(),
|
|
@@ -1368,7 +1368,7 @@ function pr({ className: s }) {
|
|
|
1368
1368
|
w(() => {
|
|
1369
1369
|
if (!I) return;
|
|
1370
1370
|
const l = (T) => {
|
|
1371
|
-
x.current && !x.current.contains(T.target) &&
|
|
1371
|
+
x.current && !x.current.contains(T.target) && m(!1);
|
|
1372
1372
|
};
|
|
1373
1373
|
return document.addEventListener("mousedown", l), () => document.removeEventListener("mousedown", l);
|
|
1374
1374
|
}, [I]), w(() => {
|
|
@@ -1379,7 +1379,7 @@ function pr({ className: s }) {
|
|
|
1379
1379
|
}, O = () => {
|
|
1380
1380
|
t.analytics?.trackPrimaryCtaClickedL1?.({
|
|
1381
1381
|
avenue: "kundli_matching_form"
|
|
1382
|
-
}), k.current = !1,
|
|
1382
|
+
}), k.current = !1, h(!0), t.analytics?.trackPlanPageViewed?.();
|
|
1383
1383
|
}, b = (l) => {
|
|
1384
1384
|
N(l), t.analytics?.trackPlanSelected?.({
|
|
1385
1385
|
planId: l.id,
|
|
@@ -1395,14 +1395,14 @@ function pr({ className: s }) {
|
|
|
1395
1395
|
price: l.price
|
|
1396
1396
|
}), t.onProceed ? t.onProceed(i, l) : console.log("Proceeding to payment:", { formValues: i, plan: l });
|
|
1397
1397
|
}, v = () => {
|
|
1398
|
-
k.current || t.analytics?.trackPlanPageClosed?.(),
|
|
1398
|
+
k.current || t.analytics?.trackPlanPageClosed?.(), h(!1);
|
|
1399
1399
|
}, E = D ? /* @__PURE__ */ e.jsxs("div", { className: "relative", ref: x, children: [
|
|
1400
1400
|
/* @__PURE__ */ e.jsxs(
|
|
1401
1401
|
"button",
|
|
1402
1402
|
{
|
|
1403
1403
|
type: "button",
|
|
1404
1404
|
onClick: () => {
|
|
1405
|
-
t.analytics?.trackLanguageClickedFe?.({ language: r }),
|
|
1405
|
+
t.analytics?.trackLanguageClickedFe?.({ language: r }), m((l) => !l);
|
|
1406
1406
|
},
|
|
1407
1407
|
"aria-expanded": I,
|
|
1408
1408
|
"aria-haspopup": "listbox",
|
|
@@ -1437,7 +1437,7 @@ function pr({ className: s }) {
|
|
|
1437
1437
|
role: "option",
|
|
1438
1438
|
"aria-selected": l === r,
|
|
1439
1439
|
onClick: () => {
|
|
1440
|
-
n(l),
|
|
1440
|
+
n(l), m(!1);
|
|
1441
1441
|
},
|
|
1442
1442
|
className: "px-4 py-2 text-sm cursor-pointer hover:bg-gray-50 transition-colors",
|
|
1443
1443
|
style: {
|
|
@@ -1521,4 +1521,4 @@ export {
|
|
|
1521
1521
|
Fe as d,
|
|
1522
1522
|
oe as e
|
|
1523
1523
|
};
|
|
1524
|
-
//# sourceMappingURL=criticalCss-
|
|
1524
|
+
//# sourceMappingURL=criticalCss-DtVpO1wg.js.map
|