@getsoren/shared-module 2.63.0 → 2.63.2
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/events.js +7 -5
- package/package.json +1 -1
package/dist/events.js
CHANGED
|
@@ -462,9 +462,10 @@ var n = "eventDeclaration", r = "soren-event", i = 2, a = {
|
|
|
462
462
|
"kind",
|
|
463
463
|
...(e?.events.length ?? 0) > 1 ? ["event"] : [],
|
|
464
464
|
...t?.reasons?.length ? ["reason"] : [],
|
|
465
|
+
...t?.hasTitle ? ["fields"] : [],
|
|
465
466
|
...t?.dates && !i || t && b(t, n.reason) ? ["dates"] : [],
|
|
466
467
|
...t?.checks?.length ? ["checks"] : [],
|
|
467
|
-
|
|
468
|
+
...!t?.hasTitle && t?.fields?.length ? ["fields"] : [],
|
|
468
469
|
...r && t?.price && t.amountGate ? ["amountGate"] : [],
|
|
469
470
|
...r && t?.price && (!t.amountGate || n.amountGate) ? ["amount"] : [],
|
|
470
471
|
...t ? ["details"] : []
|
|
@@ -626,15 +627,16 @@ var n = "eventDeclaration", r = "soren-event", i = 2, a = {
|
|
|
626
627
|
}, B = () => {
|
|
627
628
|
u(void 0), f(void 0), h("kind"), _(N), b(!1);
|
|
628
629
|
}, V = (e, t, n = {}) => {
|
|
629
|
-
let r = {
|
|
630
|
+
let r = L(t), i = {
|
|
630
631
|
...N,
|
|
631
632
|
amount: R(t),
|
|
632
|
-
dates:
|
|
633
|
+
dates: r,
|
|
633
634
|
reason: t.reasons?.length ? "" : t.reason ?? "",
|
|
634
635
|
reBillRatio: O ? a : "",
|
|
635
|
-
...n
|
|
636
|
+
...n,
|
|
637
|
+
...c && !n.dates?.fromDate && { dates: r }
|
|
636
638
|
};
|
|
637
|
-
u(e.id), f(t.id), _(
|
|
639
|
+
u(e.id), f(t.id), _(i), h(S(x(e, t, i, D && !!t.price, !!c), i, o));
|
|
638
640
|
}, H = ({ eventId: e, answers: t }) => {
|
|
639
641
|
let n = C.find(({ events: t }) => t.some(({ id: t }) => t === e)), r = n?.events.find(({ id: t }) => t === e);
|
|
640
642
|
return n && r ? (V(n, r, t), b(!0), !0) : !1;
|