@leatcom/portal-sessions 0.0.60 → 0.0.61
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.
|
@@ -16642,11 +16642,13 @@ function mR() {
|
|
|
16642
16642
|
}
|
|
16643
16643
|
function gR() {
|
|
16644
16644
|
const { t: e } = ot(), { contact: t } = Er(), { mutate: n } = s0(), r = Pt(), [i, s] = Ce(""), [o, c] = Ce(!1), [u, d] = Ce(!1), f = async () => {
|
|
16645
|
-
|
|
16646
|
-
|
|
16647
|
-
|
|
16648
|
-
|
|
16649
|
-
|
|
16645
|
+
if (!(!i || !t || !t.email)) {
|
|
16646
|
+
c(!0);
|
|
16647
|
+
try {
|
|
16648
|
+
await or.linkIdentifier(i, t.email), await n(), r("/portal/profile/contact-identifiers");
|
|
16649
|
+
} finally {
|
|
16650
|
+
s(""), c(!1);
|
|
16651
|
+
}
|
|
16650
16652
|
}
|
|
16651
16653
|
};
|
|
16652
16654
|
return De(() => {
|
|
@@ -16949,7 +16951,7 @@ function wR() {
|
|
|
16949
16951
|
);
|
|
16950
16952
|
r(), i(), s(), Ve.success(e("rewardClaimed", { name: v.data.data.title })), o && o(v.data.data, A), h(!1), b(void 0);
|
|
16951
16953
|
}
|
|
16952
|
-
}, g = () => c.filter((v) => v.type === Mi.REWARD_RECEPTION).map((v) => t == null ? void 0 : t.find((w) => w.uuid === v.data.reward.uuid));
|
|
16954
|
+
}, g = () => c.filter((v) => v.type === Mi.REWARD_RECEPTION).map((v) => t == null ? void 0 : t.find((w) => w.uuid === v.data.reward.uuid)).filter((v) => v);
|
|
16953
16955
|
return /* @__PURE__ */ m.jsxs("div", { className: "h-full md:container", children: [
|
|
16954
16956
|
/* @__PURE__ */ m.jsxs(Gt, { children: [
|
|
16955
16957
|
/* @__PURE__ */ m.jsx(Mt, { children: /* @__PURE__ */ m.jsxs("div", { className: "flex h-16 items-center justify-between", children: [
|
|
@@ -17083,7 +17085,7 @@ function _R() {
|
|
|
17083
17085
|
}
|
|
17084
17086
|
function Os() {
|
|
17085
17087
|
const { state: e } = cn(), { t } = ot(), n = Pt(), { onContactLink: r } = Mn(), { session: i, mutate: s } = Et(), { publish: o } = hu(), [c, u] = Ce(""), [d, f] = Ce(!1), [p, l] = Ce(!1), b = async (h) => {
|
|
17086
|
-
if (h.preventDefault(), i) {
|
|
17088
|
+
if (h.preventDefault(), !(!c || d) && i) {
|
|
17087
17089
|
f(!0);
|
|
17088
17090
|
try {
|
|
17089
17091
|
await Mo(i.uuid, c, void 0, r), await s(), Ve.success(t("contactSavedToSession")), e && e.redirectRoute && n(e.redirectRoute, { state: e });
|