@leatcom/portal-sessions 0.0.101 → 0.0.104
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.
|
@@ -6,7 +6,7 @@ import Se, { createContext as sa, useContext as Qo, useEffect as je, useLayoutEf
|
|
|
6
6
|
import { unstable_batchedUpdates as WE } from "react-dom";
|
|
7
7
|
try {
|
|
8
8
|
let t = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}, e = new t.Error().stack;
|
|
9
|
-
e && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[e] = "
|
|
9
|
+
e && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[e] = "0280c6c0-8d3a-4b0c-b32d-0c6342b281be", t._sentryDebugIdIdentifier = "sentry-dbid-0280c6c0-8d3a-4b0c-b32d-0c6342b281be");
|
|
10
10
|
} catch {
|
|
11
11
|
}
|
|
12
12
|
{
|
|
@@ -35,7 +35,7 @@ function YE(t, e) {
|
|
|
35
35
|
}
|
|
36
36
|
{
|
|
37
37
|
let t = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
38
|
-
t.SENTRY_RELEASE = { id: "
|
|
38
|
+
t.SENTRY_RELEASE = { id: "7c68729fb8d4b5e22710f73065a8133679a7fe2e" };
|
|
39
39
|
}
|
|
40
40
|
var pi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
41
41
|
function Dd(t) {
|
|
@@ -33174,7 +33174,7 @@ class xd {
|
|
|
33174
33174
|
Wn(this, "created_at");
|
|
33175
33175
|
}
|
|
33176
33176
|
getDisplayName() {
|
|
33177
|
-
return this.current_display_values.firstname || this.current_display_values.lastname ? `${this.current_display_values.firstname} ${this.current_display_values.lastname}` : this.
|
|
33177
|
+
return this.current_display_values.firstname || this.current_display_values.lastname ? `${this.current_display_values.firstname} ${this.current_display_values.lastname}` : this.email;
|
|
33178
33178
|
}
|
|
33179
33179
|
}
|
|
33180
33180
|
const vw = sa({
|
|
@@ -33433,7 +33433,7 @@ function ED() {
|
|
|
33433
33433
|
const { t } = qe(), { contact: e } = Cr(), { portalSession: n } = We();
|
|
33434
33434
|
return /* @__PURE__ */ v.jsxs("div", { className: "flex gap-2 lg:flex-col", children: [
|
|
33435
33435
|
/* @__PURE__ */ v.jsx(Ts, { children: /* @__PURE__ */ v.jsxs("div", { className: "flex h-full flex-col items-center justify-center", children: [
|
|
33436
|
-
/* @__PURE__ */ v.jsx("p", { className: "text-2xl leading-8", children: e.
|
|
33436
|
+
/* @__PURE__ */ v.jsx("p", { className: "text-2xl leading-8", children: e.credit_balance.balance }),
|
|
33437
33437
|
/* @__PURE__ */ v.jsx("p", { className: "text-sm text-core-gray-500", children: n.loyaltyProgram.custom_credit_name })
|
|
33438
33438
|
] }) }),
|
|
33439
33439
|
/* @__PURE__ */ v.jsx(Ts, { children: /* @__PURE__ */ v.jsxs("div", { className: "flex h-full flex-col items-center justify-center", children: [
|
|
@@ -33443,17 +33443,20 @@ function ED() {
|
|
|
33443
33443
|
] });
|
|
33444
33444
|
}
|
|
33445
33445
|
function _D() {
|
|
33446
|
-
const { t } = qe(), { contact: e } = Cr(), { portalSession: n } = We(), r = (
|
|
33446
|
+
const { t } = qe(), { contact: e } = Cr(), { portalSession: n } = We(), r = (i, a) => e1(i, a) ? `${e1(i, a)} ${t("yearsAgo")}` : Zp(i, a) ? `${Zp(i, a)} ${t("weeksAgo")}` : Jp(i, a) ? `${Jp(i, a)} ${t("daysAgo")}` : t("today"), o = () => {
|
|
33447
|
+
var i;
|
|
33448
|
+
return (i = e.current_display_values) != null && i.loyalty_last_transaction_date ? r(
|
|
33449
|
+
/* @__PURE__ */ new Date(),
|
|
33450
|
+
new Date(e.current_display_values.loyalty_last_transaction_date)
|
|
33451
|
+
) : "";
|
|
33452
|
+
};
|
|
33447
33453
|
return /* @__PURE__ */ v.jsx(Ts, { children: /* @__PURE__ */ v.jsxs("div", { className: "h-full justify-between", children: [
|
|
33448
33454
|
/* @__PURE__ */ v.jsx("p", { className: "mb-4 text-lg font-semibold leading-7", children: t("stats") }),
|
|
33449
33455
|
/* @__PURE__ */ v.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
33450
33456
|
/* @__PURE__ */ v.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
33451
33457
|
/* @__PURE__ */ v.jsx(Pn, { icon: "calendar" }),
|
|
33452
33458
|
/* @__PURE__ */ v.jsxs("div", { children: [
|
|
33453
|
-
/* @__PURE__ */ v.jsx("p", { className: "text-xs font-semibold", children:
|
|
33454
|
-
/* @__PURE__ */ new Date(),
|
|
33455
|
-
new Date(e.current_display_values.loyalty_last_transaction_date)
|
|
33456
|
-
) }),
|
|
33459
|
+
/* @__PURE__ */ v.jsx("p", { className: "text-xs font-semibold", children: o() }),
|
|
33457
33460
|
/* @__PURE__ */ v.jsx("p", { className: "text-xs text-core-gray-500", children: t("lastVisit") })
|
|
33458
33461
|
] })
|
|
33459
33462
|
] }),
|
|
@@ -33662,7 +33665,7 @@ function xD() {
|
|
|
33662
33665
|
" ",
|
|
33663
33666
|
r.current_display_values.lastname
|
|
33664
33667
|
] }) }),
|
|
33665
|
-
/* @__PURE__ */ v.jsx("p", { className: "text-sm text-core-gray-500", children: r.
|
|
33668
|
+
/* @__PURE__ */ v.jsx("p", { className: "text-sm text-core-gray-500", children: r.email })
|
|
33666
33669
|
] })
|
|
33667
33670
|
]
|
|
33668
33671
|
}
|
|
@@ -33987,7 +33990,7 @@ function kD() {
|
|
|
33987
33990
|
d(!0), u.post(`${r.uuid}/rewards/claim`, {
|
|
33988
33991
|
uuid: s.uuid
|
|
33989
33992
|
}).then((y) => {
|
|
33990
|
-
|
|
33993
|
+
g(y.data.data), p(), i(), n(t("rewardClaimed", { name: y.data.data.title }));
|
|
33991
33994
|
}).catch(e).finally(() => {
|
|
33992
33995
|
f(!1), c(void 0), d(!1);
|
|
33993
33996
|
});
|