@leatcom/portal-sessions 0.0.47 → 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.
|
@@ -10723,7 +10723,15 @@ function rs({ state: e }) {
|
|
|
10723
10723
|
i && !a && !h && E();
|
|
10724
10724
|
}, [i]), /* @__PURE__ */ u.jsxs(Tt, { children: [
|
|
10725
10725
|
/* @__PURE__ */ u.jsx(Ct, { children: /* @__PURE__ */ u.jsx("div", { className: "flex h-16 items-center", children: /* @__PURE__ */ u.jsx("p", { children: n("scanOrEnterX", { x: "identifier" }) }) }) }),
|
|
10726
|
-
/* @__PURE__ */ u.jsx(Et, { children: /* @__PURE__ */ u.jsx(
|
|
10726
|
+
/* @__PURE__ */ u.jsx(Et, { children: /* @__PURE__ */ u.jsx(
|
|
10727
|
+
"form",
|
|
10728
|
+
{
|
|
10729
|
+
onSubmit: (o) => {
|
|
10730
|
+
o.preventDefault(), E();
|
|
10731
|
+
},
|
|
10732
|
+
children: /* @__PURE__ */ u.jsx(is, { dataSetter: s, setDefer: v, label: n("contactIdentifier") })
|
|
10733
|
+
}
|
|
10734
|
+
) }),
|
|
10727
10735
|
/* @__PURE__ */ u.jsx(Bt, { children: /* @__PURE__ */ u.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
10728
10736
|
/* @__PURE__ */ u.jsx(ot, { label: n("continue"), onClick: E }),
|
|
10729
10737
|
f.input_data.enable_email_identification && /* @__PURE__ */ u.jsx(
|
|
@@ -16823,7 +16831,15 @@ function Mx() {
|
|
|
16823
16831
|
i && !a && !f && h().then();
|
|
16824
16832
|
}, [i, a, f, h]), /* @__PURE__ */ u.jsx("div", { className: "h-full md:container", children: /* @__PURE__ */ u.jsxs(Tt, { children: [
|
|
16825
16833
|
/* @__PURE__ */ u.jsx(Ct, { children: /* @__PURE__ */ u.jsx(Vi, { label: e("back"), path: "../" }) }),
|
|
16826
|
-
/* @__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
|
+
) }),
|
|
16827
16843
|
/* @__PURE__ */ u.jsx(Bt, { children: /* @__PURE__ */ u.jsx(ot, { label: e("addIdentifier"), className: "w-full", onClick: h, disabled: a }) })
|
|
16828
16844
|
] }) });
|
|
16829
16845
|
}
|
|
@@ -17055,7 +17071,7 @@ function Lx() {
|
|
|
17055
17071
|
}
|
|
17056
17072
|
function Ws({ reward: e, selected: t, setSelected: n, disabled: r, readOnly: i }) {
|
|
17057
17073
|
const { t: s } = ze(), { session: a } = st(), { contact: l, isLoading: f } = Tn(), m = f ? 0 : l.credit_balance.balance;
|
|
17058
|
-
return
|
|
17074
|
+
return /* @__PURE__ */ u.jsxs(
|
|
17059
17075
|
"div",
|
|
17060
17076
|
{
|
|
17061
17077
|
className: `max-h-[48px] rounded-lg border ${r ? "pointer-events-none opacity-40" : !i && "cursor-pointer"}`,
|
|
@@ -17244,8 +17260,8 @@ function Yx() {
|
|
|
17244
17260
|
return /* @__PURE__ */ u.jsx(Gt, { children: /* @__PURE__ */ u.jsx(rs, { state: { redirectRoute: `${Wt.PORTAL}` } }) });
|
|
17245
17261
|
}
|
|
17246
17262
|
function qi() {
|
|
17247
|
-
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 () => {
|
|
17248
|
-
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) {
|
|
17249
17265
|
m(!0);
|
|
17250
17266
|
try {
|
|
17251
17267
|
await Zo.setContact(i.uuid, { email: a }), await s(), Me.success(t("contactSavedToSession")), e && e.redirectRoute && n(e.redirectRoute, { state: e });
|
|
@@ -17271,7 +17287,7 @@ function qi() {
|
|
|
17271
17287
|
),
|
|
17272
17288
|
/* @__PURE__ */ u.jsx("p", { children: t("fillInXBelow", { x: t("emailAddress").toLowerCase() }) })
|
|
17273
17289
|
] }) }),
|
|
17274
|
-
/* @__PURE__ */ u.jsx(Et, { children: /* @__PURE__ */ u.jsx(ns, { label: t("emailAddress"), onChange: (o) => l(o.target.value) }) }),
|
|
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) }) }) }),
|
|
17275
17291
|
/* @__PURE__ */ u.jsx(Bt, { children: /* @__PURE__ */ u.jsx(
|
|
17276
17292
|
ot,
|
|
17277
17293
|
{
|
|
@@ -17381,8 +17397,8 @@ function Ui() {
|
|
|
17381
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);
|
|
17382
17398
|
if (!t || !t.contactIdentifier)
|
|
17383
17399
|
return /* @__PURE__ */ u.jsx(Bi, { to: "../" });
|
|
17384
|
-
const c = async () => {
|
|
17385
|
-
l(!0);
|
|
17400
|
+
const c = async (o) => {
|
|
17401
|
+
o.preventDefault(), l(!0);
|
|
17386
17402
|
try {
|
|
17387
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 });
|
|
17388
17404
|
} catch {
|
|
@@ -17397,13 +17413,13 @@ function Ui() {
|
|
|
17397
17413
|
/* @__PURE__ */ u.jsx(Ct, { children: /* @__PURE__ */ u.jsx("div", { className: "flex h-16 items-center", children: e("linkContact") }) }),
|
|
17398
17414
|
/* @__PURE__ */ u.jsx(Et, { children: /* @__PURE__ */ u.jsxs("div", { className: "flex flex-col gap-3", children: [
|
|
17399
17415
|
/* @__PURE__ */ u.jsx(s1, { body: e("noEmailAddressLinkedToIdentifier") }),
|
|
17400
|
-
/* @__PURE__ */ u.jsx(
|
|
17416
|
+
/* @__PURE__ */ u.jsx("form", { onSubmit: c, children: /* @__PURE__ */ u.jsx(
|
|
17401
17417
|
ns,
|
|
17402
17418
|
{
|
|
17403
17419
|
label: e("emailAddress"),
|
|
17404
17420
|
onChange: (o) => m(o.target.value)
|
|
17405
17421
|
}
|
|
17406
|
-
)
|
|
17422
|
+
) })
|
|
17407
17423
|
] }) }),
|
|
17408
17424
|
/* @__PURE__ */ u.jsx(Bt, { children: /* @__PURE__ */ u.jsx(ot, { label: e("continue"), className: "w-full", onClick: c, disabled: !f || a }) })
|
|
17409
17425
|
] }),
|