@leatcom/portal-sessions 0.0.48 → 0.0.49
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.
|
@@ -16831,7 +16831,15 @@ function Mx() {
|
|
|
16831
16831
|
i && !a && !f && h().then();
|
|
16832
16832
|
}, [i, a, f, h]), /* @__PURE__ */ u.jsx("div", { className: "h-full md:container", children: /* @__PURE__ */ u.jsxs(Tt, { children: [
|
|
16833
16833
|
/* @__PURE__ */ u.jsx(Ct, { children: /* @__PURE__ */ u.jsx(Vi, { label: e("back"), path: "../" }) }),
|
|
16834
|
-
/* @__PURE__ */ u.jsx(Et, { children: /* @__PURE__ */ u.jsx(
|
|
16834
|
+
/* @__PURE__ */ u.jsx(Et, { children: /* @__PURE__ */ u.jsx(
|
|
16835
|
+
"form",
|
|
16836
|
+
{
|
|
16837
|
+
onSubmit: (v) => {
|
|
16838
|
+
v.preventDefault(), h().then();
|
|
16839
|
+
},
|
|
16840
|
+
children: /* @__PURE__ */ u.jsx(is, { dataSetter: s, setDefer: m, label: e("contactIdentifier") })
|
|
16841
|
+
}
|
|
16842
|
+
) }),
|
|
16835
16843
|
/* @__PURE__ */ u.jsx(Bt, { children: /* @__PURE__ */ u.jsx(ot, { label: e("addIdentifier"), className: "w-full", onClick: h, disabled: a }) })
|
|
16836
16844
|
] }) });
|
|
16837
16845
|
}
|
|
@@ -17252,8 +17260,8 @@ function Yx() {
|
|
|
17252
17260
|
return /* @__PURE__ */ u.jsx(Gt, { children: /* @__PURE__ */ u.jsx(rs, { state: { redirectRoute: `${Wt.PORTAL}` } }) });
|
|
17253
17261
|
}
|
|
17254
17262
|
function qi() {
|
|
17255
|
-
const { state: e } = nn(), { t } = ze(), n = St(), { onContactLink: r } = xn(), { session: i, mutate: s } = st(), [a, l] = Ce(""), [f, m] = Ce(!1), [h, v] = Ce(!1), c = async () => {
|
|
17256
|
-
if (i) {
|
|
17263
|
+
const { state: e } = nn(), { t } = ze(), n = St(), { onContactLink: r } = xn(), { session: i, mutate: s } = st(), [a, l] = Ce(""), [f, m] = Ce(!1), [h, v] = Ce(!1), c = async (o) => {
|
|
17264
|
+
if (o.preventDefault(), i) {
|
|
17257
17265
|
m(!0);
|
|
17258
17266
|
try {
|
|
17259
17267
|
await Zo.setContact(i.uuid, { email: a }), await s(), Me.success(t("contactSavedToSession")), e && e.redirectRoute && n(e.redirectRoute, { state: e });
|
|
@@ -17279,15 +17287,7 @@ function qi() {
|
|
|
17279
17287
|
),
|
|
17280
17288
|
/* @__PURE__ */ u.jsx("p", { children: t("fillInXBelow", { x: t("emailAddress").toLowerCase() }) })
|
|
17281
17289
|
] }) }),
|
|
17282
|
-
/* @__PURE__ */ u.jsx(Et, { children: /* @__PURE__ */ u.jsx(
|
|
17283
|
-
"form",
|
|
17284
|
-
{
|
|
17285
|
-
onSubmit: (o) => {
|
|
17286
|
-
o.preventDefault(), c();
|
|
17287
|
-
},
|
|
17288
|
-
children: /* @__PURE__ */ u.jsx(ns, { label: t("emailAddress"), onChange: (o) => l(o.target.value) })
|
|
17289
|
-
}
|
|
17290
|
-
) }),
|
|
17290
|
+
/* @__PURE__ */ u.jsx(Et, { children: /* @__PURE__ */ u.jsx("form", { onSubmit: c, children: /* @__PURE__ */ u.jsx(ns, { label: t("emailAddress"), onChange: (o) => l(o.target.value) }) }) }),
|
|
17291
17291
|
/* @__PURE__ */ u.jsx(Bt, { children: /* @__PURE__ */ u.jsx(
|
|
17292
17292
|
ot,
|
|
17293
17293
|
{
|
|
@@ -17397,8 +17397,8 @@ function Ui() {
|
|
|
17397
17397
|
const { t: e } = ze(), { state: t } = nn(), { session: n, mutate: r } = st(), i = St(), s = xn(), [a, l] = Ce(!1), [f, m] = Ce(""), [h, v] = Ce(!1);
|
|
17398
17398
|
if (!t || !t.contactIdentifier)
|
|
17399
17399
|
return /* @__PURE__ */ u.jsx(Bi, { to: "../" });
|
|
17400
|
-
const c = async () => {
|
|
17401
|
-
l(!0);
|
|
17400
|
+
const c = async (o) => {
|
|
17401
|
+
o.preventDefault(), l(!0);
|
|
17402
17402
|
try {
|
|
17403
17403
|
await Sn.linkIdentifier(t.contactIdentifier, f), await Po(n.uuid, f, t.contactIdentifier, s.onContactLink), await r(), Me.success(e("contactIdentifierLinkedToEmail", { value: t.contactIdentifier, email: f })), t && t.redirectRoute && i(t.redirectRoute, { state: t });
|
|
17404
17404
|
} catch {
|
|
@@ -17413,13 +17413,13 @@ function Ui() {
|
|
|
17413
17413
|
/* @__PURE__ */ u.jsx(Ct, { children: /* @__PURE__ */ u.jsx("div", { className: "flex h-16 items-center", children: e("linkContact") }) }),
|
|
17414
17414
|
/* @__PURE__ */ u.jsx(Et, { children: /* @__PURE__ */ u.jsxs("div", { className: "flex flex-col gap-3", children: [
|
|
17415
17415
|
/* @__PURE__ */ u.jsx(s1, { body: e("noEmailAddressLinkedToIdentifier") }),
|
|
17416
|
-
/* @__PURE__ */ u.jsx(
|
|
17416
|
+
/* @__PURE__ */ u.jsx("form", { onSubmit: c, children: /* @__PURE__ */ u.jsx(
|
|
17417
17417
|
ns,
|
|
17418
17418
|
{
|
|
17419
17419
|
label: e("emailAddress"),
|
|
17420
17420
|
onChange: (o) => m(o.target.value)
|
|
17421
17421
|
}
|
|
17422
|
-
)
|
|
17422
|
+
) })
|
|
17423
17423
|
] }) }),
|
|
17424
17424
|
/* @__PURE__ */ u.jsx(Bt, { children: /* @__PURE__ */ u.jsx(ot, { label: e("continue"), className: "w-full", onClick: c, disabled: !f || a }) })
|
|
17425
17425
|
] }),
|