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