@leatcom/portal-sessions 0.0.53 → 0.0.54
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/portal-sessions.es.d.ts +6 -0
- package/dist/portal-sessions.es.js +120 -117
- package/dist/portal-sessions.umd.js +14 -14
- package/package.json +1 -1
|
@@ -712,7 +712,7 @@ function qe(e, t) {
|
|
|
712
712
|
if (e === !1 || e === null || typeof e > "u")
|
|
713
713
|
throw new Error(t);
|
|
714
714
|
}
|
|
715
|
-
function
|
|
715
|
+
function vn(e, t) {
|
|
716
716
|
if (!e) {
|
|
717
717
|
typeof console < "u" && console.warn(t);
|
|
718
718
|
try {
|
|
@@ -986,7 +986,7 @@ function ea(e, t) {
|
|
|
986
986
|
};
|
|
987
987
|
}
|
|
988
988
|
function Yg(e, t, n) {
|
|
989
|
-
t === void 0 && (t = !1), n === void 0 && (n = !0),
|
|
989
|
+
t === void 0 && (t = !1), n === void 0 && (n = !0), vn(e === "*" || !e.endsWith("*") || e.endsWith("/*"), 'Route path "' + e + '" will be treated as if it were ' + ('"' + e.replace(/\*$/, "/*") + '" because the `*` character must ') + "always follow a `/` in the pattern. To get rid of this warning, " + ('please change the route path to "' + e.replace(/\*$/, "/*") + '".'));
|
|
990
990
|
let r = [], i = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (a, l, f) => (r.push({
|
|
991
991
|
paramName: l,
|
|
992
992
|
isOptional: f != null
|
|
@@ -999,7 +999,7 @@ function Kg(e) {
|
|
|
999
999
|
try {
|
|
1000
1000
|
return e.split("/").map((t) => decodeURIComponent(t).replace(/\//g, "%2F")).join("/");
|
|
1001
1001
|
} catch (t) {
|
|
1002
|
-
return
|
|
1002
|
+
return vn(!1, 'The URL path "' + e + '" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent ' + ("encoding (" + t + ").")), e;
|
|
1003
1003
|
}
|
|
1004
1004
|
}
|
|
1005
1005
|
function Xn(e, t) {
|
|
@@ -1097,12 +1097,12 @@ const dn = /* @__PURE__ */ we.createContext(null);
|
|
|
1097
1097
|
process.env.NODE_ENV !== "production" && (dn.displayName = "Navigation");
|
|
1098
1098
|
const Bi = /* @__PURE__ */ we.createContext(null);
|
|
1099
1099
|
process.env.NODE_ENV !== "production" && (Bi.displayName = "Location");
|
|
1100
|
-
const
|
|
1100
|
+
const wn = /* @__PURE__ */ we.createContext({
|
|
1101
1101
|
outlet: null,
|
|
1102
1102
|
matches: [],
|
|
1103
1103
|
isDataRoute: !1
|
|
1104
1104
|
});
|
|
1105
|
-
process.env.NODE_ENV !== "production" && (
|
|
1105
|
+
process.env.NODE_ENV !== "production" && (wn.displayName = "Route");
|
|
1106
1106
|
const Qa = /* @__PURE__ */ we.createContext(null);
|
|
1107
1107
|
process.env.NODE_ENV !== "production" && (Qa.displayName = "RouteError");
|
|
1108
1108
|
function tm(e, t) {
|
|
@@ -1149,7 +1149,7 @@ function Gu(e) {
|
|
|
1149
1149
|
function xt() {
|
|
1150
1150
|
let {
|
|
1151
1151
|
isDataRoute: e
|
|
1152
|
-
} = we.useContext(
|
|
1152
|
+
} = we.useContext(wn);
|
|
1153
1153
|
return e ? gm() : nm();
|
|
1154
1154
|
}
|
|
1155
1155
|
function nm() {
|
|
@@ -1165,13 +1165,13 @@ function nm() {
|
|
|
1165
1165
|
navigator: r
|
|
1166
1166
|
} = we.useContext(dn), {
|
|
1167
1167
|
matches: i
|
|
1168
|
-
} = we.useContext(
|
|
1168
|
+
} = we.useContext(wn), {
|
|
1169
1169
|
pathname: s
|
|
1170
1170
|
} = Gt(), a = JSON.stringify(Ya(i, n.v7_relativeSplatPath)), l = we.useRef(!1);
|
|
1171
1171
|
return Gu(() => {
|
|
1172
1172
|
l.current = !0;
|
|
1173
1173
|
}), we.useCallback(function(g, h) {
|
|
1174
|
-
if (h === void 0 && (h = {}), process.env.NODE_ENV !== "production" &&
|
|
1174
|
+
if (h === void 0 && (h = {}), process.env.NODE_ENV !== "production" && vn(l.current, Uu), !l.current)
|
|
1175
1175
|
return;
|
|
1176
1176
|
if (typeof g == "number") {
|
|
1177
1177
|
r.go(g);
|
|
@@ -1184,7 +1184,7 @@ function nm() {
|
|
|
1184
1184
|
function Yu() {
|
|
1185
1185
|
let {
|
|
1186
1186
|
matches: e
|
|
1187
|
-
} = we.useContext(
|
|
1187
|
+
} = we.useContext(wn), t = e[e.length - 1];
|
|
1188
1188
|
return t ? t.params : {};
|
|
1189
1189
|
}
|
|
1190
1190
|
function ki(e, t) {
|
|
@@ -1194,7 +1194,7 @@ function ki(e, t) {
|
|
|
1194
1194
|
future: r
|
|
1195
1195
|
} = we.useContext(dn), {
|
|
1196
1196
|
matches: i
|
|
1197
|
-
} = we.useContext(
|
|
1197
|
+
} = we.useContext(wn), {
|
|
1198
1198
|
pathname: s
|
|
1199
1199
|
} = Gt(), a = JSON.stringify(Ya(i, r.v7_relativeSplatPath));
|
|
1200
1200
|
return we.useMemo(() => Ka(e, JSON.parse(a), s, n === "path"), [e, a, s, n]);
|
|
@@ -1213,7 +1213,7 @@ function im(e, t, n, r) {
|
|
|
1213
1213
|
navigator: i
|
|
1214
1214
|
} = we.useContext(dn), {
|
|
1215
1215
|
matches: s
|
|
1216
|
-
} = we.useContext(
|
|
1216
|
+
} = we.useContext(wn), a = s[s.length - 1], l = a ? a.params : {}, f = a ? a.pathname : "/", g = a ? a.pathnameBase : "/", h = a && a.route;
|
|
1217
1217
|
if (process.env.NODE_ENV !== "production") {
|
|
1218
1218
|
let y = h && h.path || "";
|
|
1219
1219
|
$u(f, !h || y.endsWith("*"), "You rendered descendant <Routes> (or called `useRoutes()`) at " + ('"' + f + '" (under <Route path="' + y + '">) but the ') + `parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
@@ -1235,7 +1235,7 @@ function im(e, t, n, r) {
|
|
|
1235
1235
|
let m = Pg(e, {
|
|
1236
1236
|
pathname: d
|
|
1237
1237
|
});
|
|
1238
|
-
process.env.NODE_ENV !== "production" && (process.env.NODE_ENV !== "production" &&
|
|
1238
|
+
process.env.NODE_ENV !== "production" && (process.env.NODE_ENV !== "production" && vn(h || m != null, 'No routes matched location "' + c.pathname + c.search + c.hash + '" '), process.env.NODE_ENV !== "production" && vn(m == null || m[m.length - 1].route.element !== void 0 || m[m.length - 1].route.Component !== void 0 || m[m.length - 1].route.lazy !== void 0, 'Matched leaf route at location "' + c.pathname + c.search + c.hash + '" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.'));
|
|
1239
1239
|
let p = lm(m && m.map((y) => Object.assign({}, y, {
|
|
1240
1240
|
params: Object.assign({}, l, y.params),
|
|
1241
1241
|
pathname: Ln([
|
|
@@ -1311,7 +1311,7 @@ class am extends we.Component {
|
|
|
1311
1311
|
console.error("React Router caught the following error during render", t, n);
|
|
1312
1312
|
}
|
|
1313
1313
|
render() {
|
|
1314
|
-
return this.state.error !== void 0 ? /* @__PURE__ */ we.createElement(
|
|
1314
|
+
return this.state.error !== void 0 ? /* @__PURE__ */ we.createElement(wn.Provider, {
|
|
1315
1315
|
value: this.props.routeContext
|
|
1316
1316
|
}, /* @__PURE__ */ we.createElement(Qa.Provider, {
|
|
1317
1317
|
value: this.state.error,
|
|
@@ -1325,7 +1325,7 @@ function cm(e) {
|
|
|
1325
1325
|
match: n,
|
|
1326
1326
|
children: r
|
|
1327
1327
|
} = e, i = we.useContext(Pi);
|
|
1328
|
-
return i && i.static && i.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (i.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */ we.createElement(
|
|
1328
|
+
return i && i.static && i.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (i.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */ we.createElement(wn.Provider, {
|
|
1329
1329
|
value: t
|
|
1330
1330
|
}, r);
|
|
1331
1331
|
}
|
|
@@ -1404,7 +1404,7 @@ function dm(e) {
|
|
|
1404
1404
|
return t || (process.env.NODE_ENV !== "production" ? qe(!1, Wa(e)) : qe(!1)), t;
|
|
1405
1405
|
}
|
|
1406
1406
|
function fm(e) {
|
|
1407
|
-
let t = we.useContext(
|
|
1407
|
+
let t = we.useContext(wn);
|
|
1408
1408
|
return t || (process.env.NODE_ENV !== "production" ? qe(!1, Wa(e)) : qe(!1)), t;
|
|
1409
1409
|
}
|
|
1410
1410
|
function Ha(e) {
|
|
@@ -1426,14 +1426,14 @@ function gm() {
|
|
|
1426
1426
|
return Gu(() => {
|
|
1427
1427
|
n.current = !0;
|
|
1428
1428
|
}), we.useCallback(function(i, s) {
|
|
1429
|
-
s === void 0 && (s = {}), process.env.NODE_ENV !== "production" &&
|
|
1429
|
+
s === void 0 && (s = {}), process.env.NODE_ENV !== "production" && vn(n.current, Uu), n.current && (typeof i == "number" ? e.navigate(i) : e.navigate(i, hi({
|
|
1430
1430
|
fromRouteId: t
|
|
1431
1431
|
}, s)));
|
|
1432
1432
|
}, [e, t]);
|
|
1433
1433
|
}
|
|
1434
1434
|
const nl = {};
|
|
1435
1435
|
function $u(e, t, n) {
|
|
1436
|
-
!t && !nl[e] && (nl[e] = !0, process.env.NODE_ENV !== "production" &&
|
|
1436
|
+
!t && !nl[e] && (nl[e] = !0, process.env.NODE_ENV !== "production" && vn(!1, n));
|
|
1437
1437
|
}
|
|
1438
1438
|
function Mi(e) {
|
|
1439
1439
|
let {
|
|
@@ -1452,10 +1452,10 @@ function Mi(e) {
|
|
|
1452
1452
|
future: s,
|
|
1453
1453
|
static: a
|
|
1454
1454
|
} = we.useContext(dn);
|
|
1455
|
-
process.env.NODE_ENV !== "production" &&
|
|
1455
|
+
process.env.NODE_ENV !== "production" && vn(!a, "<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");
|
|
1456
1456
|
let {
|
|
1457
1457
|
matches: l
|
|
1458
|
-
} = we.useContext(
|
|
1458
|
+
} = we.useContext(wn), {
|
|
1459
1459
|
pathname: f
|
|
1460
1460
|
} = Gt(), g = xt(), h = Ka(t, Ya(l, s.v7_relativeSplatPath), f, i === "path"), v = JSON.stringify(h);
|
|
1461
1461
|
return we.useEffect(() => g(JSON.parse(v), {
|
|
@@ -1506,7 +1506,7 @@ function mm(e) {
|
|
|
1506
1506
|
navigationType: i
|
|
1507
1507
|
};
|
|
1508
1508
|
}, [f, h, v, c, E, o, i]);
|
|
1509
|
-
return process.env.NODE_ENV !== "production" &&
|
|
1509
|
+
return process.env.NODE_ENV !== "production" && vn(d != null, '<Router basename="' + f + '"> is not able to match the URL ' + ('"' + h + v + c + '" because it does not start with the ') + "basename, so the <Router> won't render anything."), d == null ? null : /* @__PURE__ */ we.createElement(dn.Provider, {
|
|
1510
1510
|
value: g
|
|
1511
1511
|
}, /* @__PURE__ */ we.createElement(Bi.Provider, {
|
|
1512
1512
|
children: n,
|
|
@@ -1618,7 +1618,7 @@ function Em() {
|
|
|
1618
1618
|
}
|
|
1619
1619
|
const Cm = /* @__PURE__ */ new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]);
|
|
1620
1620
|
function Is(e) {
|
|
1621
|
-
return e != null && !Cm.has(e) ? (process.env.NODE_ENV !== "production" &&
|
|
1621
|
+
return e != null && !Cm.has(e) ? (process.env.NODE_ENV !== "production" && vn(!1, '"' + e + '" is not a valid `encType` for `<Form>`/`<fetcher.Form>` ' + ('and will default to "' + yo + '"')), null) : e;
|
|
1622
1622
|
}
|
|
1623
1623
|
function Am(e, t) {
|
|
1624
1624
|
let n, r, i, s, a;
|
|
@@ -1715,7 +1715,7 @@ const Nm = typeof window < "u" && typeof window.document < "u" && typeof window.
|
|
|
1715
1715
|
let b = new URL(window.location.href), C = g.startsWith("//") ? new URL(b.protocol + g) : new URL(g), S = Xn(C.pathname, E);
|
|
1716
1716
|
C.origin === b.origin && S != null ? g = S + C.search + C.hash : d = !0;
|
|
1717
1717
|
} catch {
|
|
1718
|
-
process.env.NODE_ENV !== "production" &&
|
|
1718
|
+
process.env.NODE_ENV !== "production" && vn(!1, '<Link to="' + g + '"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.');
|
|
1719
1719
|
}
|
|
1720
1720
|
let m = tm(g, {
|
|
1721
1721
|
relative: i
|
|
@@ -1908,7 +1908,7 @@ function Vm(e, t) {
|
|
|
1908
1908
|
relative: n
|
|
1909
1909
|
} = t === void 0 ? {} : t, {
|
|
1910
1910
|
basename: r
|
|
1911
|
-
} = we.useContext(dn), i = we.useContext(
|
|
1911
|
+
} = we.useContext(dn), i = we.useContext(wn);
|
|
1912
1912
|
i || (process.env.NODE_ENV !== "production" ? qe(!1, "useFormAction must be used inside a RouteContext") : qe(!1));
|
|
1913
1913
|
let [s] = i.matches.slice(-1), a = Tr({}, ki(e || ".", {
|
|
1914
1914
|
relative: n
|
|
@@ -3522,11 +3522,11 @@ function ed(e, t) {
|
|
|
3522
3522
|
const { toString: d0 } = Object.prototype, { getPrototypeOf: Za } = Object, Ko = /* @__PURE__ */ ((e) => (t) => {
|
|
3523
3523
|
const n = d0.call(t);
|
|
3524
3524
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
3525
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
3525
|
+
})(/* @__PURE__ */ Object.create(null)), xn = (e) => (e = e.toLowerCase(), (t) => Ko(t) === e), $o = (e) => (t) => typeof t === e, { isArray: Dr } = Array, mi = $o("undefined");
|
|
3526
3526
|
function f0(e) {
|
|
3527
3527
|
return e !== null && !mi(e) && e.constructor !== null && !mi(e.constructor) && un(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
3528
3528
|
}
|
|
3529
|
-
const td =
|
|
3529
|
+
const td = xn("ArrayBuffer");
|
|
3530
3530
|
function h0(e) {
|
|
3531
3531
|
let t;
|
|
3532
3532
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && td(e.buffer), t;
|
|
@@ -3536,11 +3536,11 @@ const p0 = $o("string"), un = $o("function"), nd = $o("number"), Qo = (e) => e !
|
|
|
3536
3536
|
return !1;
|
|
3537
3537
|
const t = Za(e);
|
|
3538
3538
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
3539
|
-
}, m0 =
|
|
3539
|
+
}, m0 = xn("Date"), y0 = xn("File"), v0 = xn("Blob"), b0 = xn("FileList"), w0 = (e) => Qo(e) && un(e.pipe), x0 = (e) => {
|
|
3540
3540
|
let t;
|
|
3541
3541
|
return e && (typeof FormData == "function" && e instanceof FormData || un(e.append) && ((t = Ko(e)) === "formdata" || // detect form-data instance
|
|
3542
3542
|
t === "object" && un(e.toString) && e.toString() === "[object FormData]"));
|
|
3543
|
-
}, E0 =
|
|
3543
|
+
}, E0 = xn("URLSearchParams"), [C0, A0, S0, T0] = ["ReadableStream", "Request", "Response", "Headers"].map(xn), R0 = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
3544
3544
|
function _i(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
3545
3545
|
if (e === null || typeof e > "u")
|
|
3546
3546
|
return;
|
|
@@ -3620,12 +3620,12 @@ const j0 = (e, t, n, { allOwnKeys: r } = {}) => (_i(t, (i, s) => {
|
|
|
3620
3620
|
for (; (n = e.exec(t)) !== null; )
|
|
3621
3621
|
r.push(n);
|
|
3622
3622
|
return r;
|
|
3623
|
-
}, _0 =
|
|
3623
|
+
}, _0 = xn("HTMLFormElement"), F0 = (e) => e.toLowerCase().replace(
|
|
3624
3624
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
3625
3625
|
function(n, r, i) {
|
|
3626
3626
|
return r.toUpperCase() + i;
|
|
3627
3627
|
}
|
|
3628
|
-
), pl = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), L0 =
|
|
3628
|
+
), pl = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), L0 = xn("RegExp"), sd = (e, t) => {
|
|
3629
3629
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
3630
3630
|
_i(n, (i, s) => {
|
|
3631
3631
|
let a;
|
|
@@ -3685,7 +3685,7 @@ const $0 = (e) => {
|
|
|
3685
3685
|
return r;
|
|
3686
3686
|
};
|
|
3687
3687
|
return n(e, 0);
|
|
3688
|
-
}, Q0 =
|
|
3688
|
+
}, Q0 = xn("AsyncFunction"), W0 = (e) => e && (Qo(e) || un(e)) && un(e.then) && un(e.catch), ae = {
|
|
3689
3689
|
isArray: Dr,
|
|
3690
3690
|
isArrayBuffer: td,
|
|
3691
3691
|
isBuffer: f0,
|
|
@@ -3718,7 +3718,7 @@ const $0 = (e) => {
|
|
|
3718
3718
|
inherits: I0,
|
|
3719
3719
|
toFlatObject: N0,
|
|
3720
3720
|
kindOf: Ko,
|
|
3721
|
-
kindOfTest:
|
|
3721
|
+
kindOfTest: xn,
|
|
3722
3722
|
endsWith: D0,
|
|
3723
3723
|
toArray: P0,
|
|
3724
3724
|
forEachEntry: k0,
|
|
@@ -3989,14 +3989,14 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", oy
|
|
|
3989
3989
|
hasStandardBrowserEnv: ry,
|
|
3990
3990
|
hasStandardBrowserWebWorkerEnv: iy,
|
|
3991
3991
|
origin: oy
|
|
3992
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3992
|
+
}, Symbol.toStringTag, { value: "Module" })), yn = {
|
|
3993
3993
|
...sy,
|
|
3994
3994
|
...ny
|
|
3995
3995
|
};
|
|
3996
3996
|
function ay(e, t) {
|
|
3997
|
-
return Wo(e, new
|
|
3997
|
+
return Wo(e, new yn.classes.URLSearchParams(), Object.assign({
|
|
3998
3998
|
visitor: function(n, r, i, s) {
|
|
3999
|
-
return
|
|
3999
|
+
return yn.isNode && ae.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
|
|
4000
4000
|
}
|
|
4001
4001
|
}, t));
|
|
4002
4002
|
}
|
|
@@ -4091,8 +4091,8 @@ const Fi = {
|
|
|
4091
4091
|
maxContentLength: -1,
|
|
4092
4092
|
maxBodyLength: -1,
|
|
4093
4093
|
env: {
|
|
4094
|
-
FormData:
|
|
4095
|
-
Blob:
|
|
4094
|
+
FormData: yn.classes.FormData,
|
|
4095
|
+
Blob: yn.classes.Blob
|
|
4096
4096
|
},
|
|
4097
4097
|
validateStatus: function(t) {
|
|
4098
4098
|
return t >= 200 && t < 300;
|
|
@@ -4375,7 +4375,7 @@ const Do = (e, t, n = 3) => {
|
|
|
4375
4375
|
};
|
|
4376
4376
|
v[t ? "download" : "upload"] = !0, e(v);
|
|
4377
4377
|
}, n);
|
|
4378
|
-
}, wy =
|
|
4378
|
+
}, wy = yn.hasStandardBrowserEnv ? (
|
|
4379
4379
|
// Standard browser envs have full support of the APIs needed to test
|
|
4380
4380
|
// whether the request URL is of the same origin as current location.
|
|
4381
4381
|
function() {
|
|
@@ -4406,7 +4406,7 @@ const Do = (e, t, n = 3) => {
|
|
|
4406
4406
|
return !0;
|
|
4407
4407
|
};
|
|
4408
4408
|
}()
|
|
4409
|
-
), xy =
|
|
4409
|
+
), xy = yn.hasStandardBrowserEnv ? (
|
|
4410
4410
|
// Standard browser envs support document.cookie
|
|
4411
4411
|
{
|
|
4412
4412
|
write(e, t, n, r, i, s) {
|
|
@@ -4518,14 +4518,14 @@ const vd = (e) => {
|
|
|
4518
4518
|
);
|
|
4519
4519
|
let f;
|
|
4520
4520
|
if (ae.isFormData(n)) {
|
|
4521
|
-
if (
|
|
4521
|
+
if (yn.hasStandardBrowserEnv || yn.hasStandardBrowserWebWorkerEnv)
|
|
4522
4522
|
a.setContentType(void 0);
|
|
4523
4523
|
else if ((f = a.getContentType()) !== !1) {
|
|
4524
4524
|
const [g, ...h] = f ? f.split(";").map((v) => v.trim()).filter(Boolean) : [];
|
|
4525
4525
|
a.setContentType([g || "multipart/form-data", ...h].join("; "));
|
|
4526
4526
|
}
|
|
4527
4527
|
}
|
|
4528
|
-
if (
|
|
4528
|
+
if (yn.hasStandardBrowserEnv && (r && ae.isFunction(r) && (r = r(t)), r || r !== !1 && wy(t.url))) {
|
|
4529
4529
|
const g = i && s && xy.read(s);
|
|
4530
4530
|
g && a.set(i, g);
|
|
4531
4531
|
}
|
|
@@ -4581,7 +4581,7 @@ const vd = (e) => {
|
|
|
4581
4581
|
h && (r(!E || E.type ? new Pr(null, e, h) : E), h.abort(), h = null);
|
|
4582
4582
|
}, i.cancelToken && i.cancelToken.subscribe(f), i.signal && (i.signal.aborted ? f() : i.signal.addEventListener("abort", f)));
|
|
4583
4583
|
const c = yy(i.url);
|
|
4584
|
-
if (c &&
|
|
4584
|
+
if (c && yn.protocols.indexOf(c) === -1) {
|
|
4585
4585
|
r(new Ve("Unsupported protocol " + c + ":", Ve.ERR_BAD_REQUEST, e));
|
|
4586
4586
|
return;
|
|
4587
4587
|
}
|
|
@@ -4650,7 +4650,7 @@ const vd = (e) => {
|
|
|
4650
4650
|
}));
|
|
4651
4651
|
}, Ho = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", bd = Ho && typeof ReadableStream == "function", oa = Ho && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Oy = bd && (() => {
|
|
4652
4652
|
let e = !1;
|
|
4653
|
-
const t = new Request(
|
|
4653
|
+
const t = new Request(yn.origin, {
|
|
4654
4654
|
body: new ReadableStream(),
|
|
4655
4655
|
method: "POST",
|
|
4656
4656
|
get duplex() {
|
|
@@ -6238,11 +6238,12 @@ const Vd = Ua(null), qd = ({
|
|
|
6238
6238
|
apiKey: t,
|
|
6239
6239
|
shopUuid: n,
|
|
6240
6240
|
sessionUuid: r,
|
|
6241
|
-
|
|
6242
|
-
|
|
6243
|
-
|
|
6244
|
-
|
|
6245
|
-
|
|
6241
|
+
cameraFacingMode: i,
|
|
6242
|
+
onContactLink: s,
|
|
6243
|
+
onClaimReward: a,
|
|
6244
|
+
onRedeemVoucher: l,
|
|
6245
|
+
onUseGiftcard: f,
|
|
6246
|
+
host: g
|
|
6246
6247
|
}) => (localStorage.setItem("portal_session_uuid", r), /* @__PURE__ */ u.jsx(
|
|
6247
6248
|
Vd.Provider,
|
|
6248
6249
|
{
|
|
@@ -6250,15 +6251,16 @@ const Vd = Ua(null), qd = ({
|
|
|
6250
6251
|
apiKey: t,
|
|
6251
6252
|
shopUuid: n,
|
|
6252
6253
|
sessionUuid: r,
|
|
6253
|
-
|
|
6254
|
-
|
|
6255
|
-
|
|
6256
|
-
|
|
6257
|
-
|
|
6254
|
+
cameraFacingMode: i,
|
|
6255
|
+
onContactLink: s,
|
|
6256
|
+
onClaimReward: a,
|
|
6257
|
+
onRedeemVoucher: l,
|
|
6258
|
+
onUseGiftcard: f,
|
|
6259
|
+
host: g
|
|
6258
6260
|
},
|
|
6259
6261
|
children: e
|
|
6260
6262
|
}
|
|
6261
|
-
)),
|
|
6263
|
+
)), fn = () => {
|
|
6262
6264
|
const e = Di(Vd);
|
|
6263
6265
|
if (e === null)
|
|
6264
6266
|
throw "Only use 'useSession' within a SessionProvider";
|
|
@@ -6267,7 +6269,7 @@ const Vd = Ua(null), qd = ({
|
|
|
6267
6269
|
create: (e) => ct.instance.post(wa, e),
|
|
6268
6270
|
setContact: (e, t) => ct.instance.put(wa + e, t)
|
|
6269
6271
|
}, ot = () => {
|
|
6270
|
-
const { sessionUuid: e } =
|
|
6272
|
+
const { sessionUuid: e } = fn(), { data: t, error: n, isLoading: r, isValidating: i, mutate: s } = qn(wa + e);
|
|
6271
6273
|
return {
|
|
6272
6274
|
session: t == null ? void 0 : t.data.data,
|
|
6273
6275
|
data: t,
|
|
@@ -10636,7 +10638,7 @@ function C1({ value: e, max: t, label: n }) {
|
|
|
10636
10638
|
] });
|
|
10637
10639
|
}
|
|
10638
10640
|
function os({ state: e }) {
|
|
10639
|
-
const t =
|
|
10641
|
+
const t = fn(), { t: n } = ze(), r = xt(), [i, s] = Se(""), [a, l] = Se(!1), { session: f, mutate: g } = ot(), [h, v] = Se(!1), c = async (o) => {
|
|
10640
10642
|
if (t.onContactLink) {
|
|
10641
10643
|
const {
|
|
10642
10644
|
data: { data: d }
|
|
@@ -11996,7 +11998,7 @@ var uc = (() => {
|
|
|
11996
11998
|
for (var T = arguments.length, N = new Array(T), G = 0; G < T; G++)
|
|
11997
11999
|
N[G] = arguments[G];
|
|
11998
12000
|
return Lh(x, w, N);
|
|
11999
|
-
},
|
|
12001
|
+
}, hn = (x, w) => {
|
|
12000
12002
|
x = lt(x);
|
|
12001
12003
|
function T() {
|
|
12002
12004
|
return x.includes("j") ? Vh(x, w) : gt(w);
|
|
@@ -12029,7 +12031,7 @@ var uc = (() => {
|
|
|
12029
12031
|
}
|
|
12030
12032
|
throw w.forEach(G), new Rc(`${x}: ` + T.map(jc).join([", "]));
|
|
12031
12033
|
}, Uh = (x, w, T, N, G, X, re, ie, he, be, Te, Ge, ke) => {
|
|
12032
|
-
Te = lt(Te), X =
|
|
12034
|
+
Te = lt(Te), X = hn(G, X), ie && (ie = hn(re, ie)), be && (be = hn(he, be)), ke = hn(Ge, ke);
|
|
12033
12035
|
var We = Dh(Te);
|
|
12034
12036
|
Vr(We, function() {
|
|
12035
12037
|
zi(`Cannot construct ${Te} due to unbound types`, [N]);
|
|
@@ -12103,7 +12105,7 @@ var uc = (() => {
|
|
|
12103
12105
|
}
|
|
12104
12106
|
var Yh = (x, w, T, N, G, X) => {
|
|
12105
12107
|
var re = bs(w, T);
|
|
12106
|
-
G =
|
|
12108
|
+
G = hn(N, G), Ft([], [x], (ie) => {
|
|
12107
12109
|
ie = ie[0];
|
|
12108
12110
|
var he = `constructor ${ie.name}`;
|
|
12109
12111
|
if (ie.registeredClass.constructor_body === void 0 && (ie.registeredClass.constructor_body = []), ie.registeredClass.constructor_body[w - 1] !== void 0)
|
|
@@ -12118,7 +12120,7 @@ var uc = (() => {
|
|
|
12118
12120
|
return w !== -1 ? x.substr(0, w) : x;
|
|
12119
12121
|
}, Kh = (x, w, T, N, G, X, re, ie, he) => {
|
|
12120
12122
|
var be = bs(T, N);
|
|
12121
|
-
w = lt(w), w = Oc(w), X =
|
|
12123
|
+
w = lt(w), w = Oc(w), X = hn(G, X), Ft([], [x], (Te) => {
|
|
12122
12124
|
Te = Te[0];
|
|
12123
12125
|
var Ge = `${Te.name}.${w}`;
|
|
12124
12126
|
w.startsWith("@@") && (w = Symbol[w.substring(2)]), ie && Te.registeredClass.pureVirtualFunctions.push(w);
|
|
@@ -12246,7 +12248,7 @@ var uc = (() => {
|
|
|
12246
12248
|
});
|
|
12247
12249
|
}, ep = (x, w, T, N, G, X, re) => {
|
|
12248
12250
|
var ie = bs(w, T);
|
|
12249
|
-
x = lt(x), x = Oc(x), G =
|
|
12251
|
+
x = lt(x), x = Oc(x), G = hn(N, G), Vr(x, function() {
|
|
12250
12252
|
zi(`Cannot call ${x} due to unbound types`, ie);
|
|
12251
12253
|
}, w - 1), Ft([], ie, (he) => {
|
|
12252
12254
|
var be = [he[0], null].concat(he.slice(1));
|
|
@@ -12487,18 +12489,18 @@ var uc = (() => {
|
|
|
12487
12489
|
}, pp = (x, w, T, N, G, X) => {
|
|
12488
12490
|
Ze[x] = {
|
|
12489
12491
|
name: lt(w),
|
|
12490
|
-
rawConstructor:
|
|
12491
|
-
rawDestructor:
|
|
12492
|
+
rawConstructor: hn(T, N),
|
|
12493
|
+
rawDestructor: hn(G, X),
|
|
12492
12494
|
fields: []
|
|
12493
12495
|
};
|
|
12494
12496
|
}, gp = (x, w, T, N, G, X, re, ie, he, be) => {
|
|
12495
12497
|
Ze[x].fields.push({
|
|
12496
12498
|
fieldName: lt(w),
|
|
12497
12499
|
getterReturnType: T,
|
|
12498
|
-
getter:
|
|
12500
|
+
getter: hn(N, G),
|
|
12499
12501
|
getterContext: X,
|
|
12500
12502
|
setterArgumentType: re,
|
|
12501
|
-
setter:
|
|
12503
|
+
setter: hn(ie, he),
|
|
12502
12504
|
setterContext: be
|
|
12503
12505
|
});
|
|
12504
12506
|
}, mp = (x, w) => {
|
|
@@ -13776,8 +13778,8 @@ function ss({ dataSetter: e, setDefer: t, label: n = "" }) {
|
|
|
13776
13778
|
}
|
|
13777
13779
|
const $b = "data:image/svg+xml,%3csvg%20height='24'%20viewBox='0%200%2024%2024'%20width='24'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m21.25%207.5c.3796958%200%20.693491.28215388.7431534.64822944l.0068466.10177056v8.5c0%201.7330315-1.3564548%203.1492459-3.0655761%203.2448552l-.1844239.0051448h-12.689l.71933009.7196699c.26626656.2662666.29047261.6829303.07261815.9765418l-.07261815.0841184c-.26626657.2662665-.68293025.2904726-.97654174.0726181l-.08411844-.0726181-2-2-.06339799-.0720275c-.00244939-.0031685-.00487398-.0063571-.00727348-.0095656l.07067147.0815931c-.03705327-.0370533-.06941902-.077019-.09709724-.1191603-.01316484-.0201549-.025545-.0411423-.03690171-.0627516-.00483354-.0091218-.00919014-.0178526-.01336588-.0266478-.01274712-.0267885-.02425172-.0552483-.03400215-.0845099-.00225837-.0069437-.00418282-.0130149-.00602813-.019105-.02092163-.0684786-.0322748-.1419912-.0322748-.2181555%200-.0383922.00288471-.0761107.00844919-.1129505.00180466-.0115676.0038603-.0232773.00619514-.0349422.00494363-.0250031.01111685-.0492994.01844184-.073091.00362656-.0116598.00765847-.0237092.01200456-.0356703.00848426-.0232976.01778613-.0453662.02808241-.0668678.00549219-.0116011.01179514-.0239381.01846187-.0361292.01323523-.0240158.02734042-.0467392.04258121-.0686124.00392129-.0057417.00832657-.0118713.01283554-.0179483.0251194-.0332177.04801831-.0595185.07261815-.0841184l2-2c.29289322-.2928932.76776696-.2928932%201.06066018%200%20.26626656.2662666.29047261.6829303.07261815.9765418l-.07261815.0841184-.72033009.7196699h12.69c.9181734%200%201.6711923-.7071103%201.7441988-1.6064728l.0058012-.1435272v-8.5c0-.41421356.3357864-.75.75-.75zm-3.0537883-5.35294824.0841184.07261815%202%202c.0254481.02544812.049076.05271652.0706715.08159313l-.0706715-.08159313c.0370533.03705328.069419.07701901.0970972.1191603.0131649.02015493.025545.04114226.0369017.06275154.0048336.00912187.0091902.01785262.0133659.02664784.0127471.02678853.0242517.0552483.0340022.08450994.0022583.00694369.0041828.01301489.0060281.01910493.0209216.06847868.0322748.14199127.0322748.21815554%200%20.03839224-.0028847.07611073-.0084492.11295053-.0014988.0095454-.0031606.01924362-.0050138.02891241-.0051364.02710922-.0117072.05340972-.0196232.07912072-.0036265.0116598-.0076584.02370928-.0120045.03567032-.0084843.02329763-.0177862.04536621-.0280824.06686781-.0054922.01160108-.0117952.02393815-.0184619.03612923-.0132352.02401575-.0273404.04673917-.0425812.06861233-.0039213.00574174-.0083266.01187138-.0128356.0179483-.023778.03144192-.0451015.05615345-.0679264.07938506l-.0046917.00473338-2%202c-.2928932.29289321-.767767.29289321-1.0606602%200-.2662665-.26626657-.2904726-.68293025-.0726181-.97654174l.0726181-.08411844.7183301-.71966991h-12.688c-.9181734%200-1.67119234.70711027-1.7441988%201.60647279l-.0058012.14352721v8.5c0%20.4142136-.33578644.75-.75.75-.37969577%200-.69349096-.2821539-.74315338-.6482294l-.00684662-.1017706v-8.5c0-1.73303146%201.35645477-3.14924593%203.06557609-3.24485521l.18442391-.00514479h12.689l-.7193301-.71966991c-.2662665-.26626657-.2904726-.68293025-.0726181-.97654174l.0726181-.08411844c.2662666-.26626656.6829303-.29047261.9765418-.07261815zm-6.1962117%205.85294824c2.209139%200%204%201.790861%204%204s-1.790861%204-4%204-4-1.790861-4-4%201.790861-4%204-4zm0%201.5c-1.3807119%200-2.5%201.1192881-2.5%202.5s1.1192881%202.5%202.5%202.5%202.5-1.1192881%202.5-2.5-1.1192881-2.5-2.5-2.5z'%20fill='%23212121'/%3e%3c/svg%3e";
|
|
13778
13780
|
function Qb({ onScan: e }) {
|
|
13779
|
-
const
|
|
13780
|
-
"user"
|
|
13781
|
+
const t = fn(), [n, r] = Se(
|
|
13782
|
+
t.cameraFacingMode ?? "user"
|
|
13781
13783
|
/* USER */
|
|
13782
13784
|
);
|
|
13783
13785
|
return /* @__PURE__ */ u.jsxs("div", { className: "relative w-full", children: [
|
|
@@ -13789,7 +13791,7 @@ function Qb({ onScan: e }) {
|
|
|
13789
13791
|
},
|
|
13790
13792
|
onScan: e,
|
|
13791
13793
|
constraints: {
|
|
13792
|
-
facingMode:
|
|
13794
|
+
facingMode: n
|
|
13793
13795
|
},
|
|
13794
13796
|
allowMultiple: !0,
|
|
13795
13797
|
classNames: {
|
|
@@ -13802,8 +13804,8 @@ function Qb({ onScan: e }) {
|
|
|
13802
13804
|
"div",
|
|
13803
13805
|
{
|
|
13804
13806
|
className: "absolute right-2 top-2 flex h-10 w-10 cursor-pointer items-center justify-center rounded bg-white shadow-overlay",
|
|
13805
|
-
onClick: () =>
|
|
13806
|
-
|
|
13807
|
+
onClick: () => r(
|
|
13808
|
+
n === "user" ? "environment" : "user"
|
|
13807
13809
|
/* ENVIRONMENT */
|
|
13808
13810
|
),
|
|
13809
13811
|
children: /* @__PURE__ */ u.jsx("img", { src: $b, alt: "camera-switch" })
|
|
@@ -13887,8 +13889,8 @@ function Jb(e) {
|
|
|
13887
13889
|
var zb = Object.defineProperty, Zb = (e, t) => {
|
|
13888
13890
|
for (var n in t)
|
|
13889
13891
|
zb(e, n, { get: t[n], enumerable: !0 });
|
|
13890
|
-
},
|
|
13891
|
-
Zb(
|
|
13892
|
+
}, bn = {};
|
|
13893
|
+
Zb(bn, {
|
|
13892
13894
|
assign: () => tw,
|
|
13893
13895
|
colors: () => Zn,
|
|
13894
13896
|
createStringInterpolator: () => yc,
|
|
@@ -14240,12 +14242,12 @@ var iw = (e, t, n) => Math.min(Math.max(n, e), t), ow = {
|
|
|
14240
14242
|
whitesmoke: 4126537215,
|
|
14241
14243
|
yellow: 4294902015,
|
|
14242
14244
|
yellowgreen: 2597139199
|
|
14243
|
-
},
|
|
14245
|
+
}, mn = "[-+]?\\d*\\.?\\d+", Fo = mn + "%";
|
|
14244
14246
|
function ls(...e) {
|
|
14245
14247
|
return "\\(\\s*(" + e.join(")\\s*,\\s*(") + ")\\s*\\)";
|
|
14246
14248
|
}
|
|
14247
|
-
var sw = new RegExp("rgb" + ls(
|
|
14248
|
-
"hsla" + ls(
|
|
14249
|
+
var sw = new RegExp("rgb" + ls(mn, mn, mn)), aw = new RegExp("rgba" + ls(mn, mn, mn, mn)), cw = new RegExp("hsl" + ls(mn, Fo, Fo)), lw = new RegExp(
|
|
14250
|
+
"hsla" + ls(mn, Fo, Fo, mn)
|
|
14249
14251
|
), uw = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, dw = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, fw = /^#([0-9a-fA-F]{6})$/, hw = /^#([0-9a-fA-F]{8})$/;
|
|
14250
14252
|
function pw(e) {
|
|
14251
14253
|
let t;
|
|
@@ -14805,7 +14807,7 @@ function nh(e) {
|
|
|
14805
14807
|
return { ...e };
|
|
14806
14808
|
}
|
|
14807
14809
|
function Ri(e) {
|
|
14808
|
-
return e = Jt(e), xe.arr(e) ? e.map(Ri) : ds(e) ?
|
|
14810
|
+
return e = Jt(e), xe.arr(e) ? e.map(Ri) : ds(e) ? bn.createStringInterpolator({
|
|
14809
14811
|
range: [0, 1],
|
|
14810
14812
|
output: [e, e]
|
|
14811
14813
|
})(1) : e;
|
|
@@ -14879,7 +14881,7 @@ function rh(e, { key: t, props: n, defaultProps: r, state: i, actions: s }) {
|
|
|
14879
14881
|
i.resumeQueue.add(c), i.timeouts.delete(g), g.cancel(), f = g.time - _e.now();
|
|
14880
14882
|
}
|
|
14881
14883
|
function c() {
|
|
14882
|
-
f > 0 && !
|
|
14884
|
+
f > 0 && !bn.skipAnimation ? (i.delayed = !0, g = _e.setTimeout(E, f), i.pauseQueue.add(v), i.timeouts.add(g)) : E();
|
|
14883
14885
|
}
|
|
14884
14886
|
function E() {
|
|
14885
14887
|
i.delayed && (i.delayed = !1), i.pauseQueue.delete(v), i.timeouts.delete(g), e <= (i.cancelId || 0) && (h = !0);
|
|
@@ -14891,7 +14893,7 @@ function rh(e, { key: t, props: n, defaultProps: r, state: i, actions: s }) {
|
|
|
14891
14893
|
}
|
|
14892
14894
|
});
|
|
14893
14895
|
}
|
|
14894
|
-
var Cc = (e, t) => t.length == 1 ? t[0] : t.some((n) => n.cancelled) ? Sr(e.get()) : t.every((n) => n.noop) ? ih(e.get()) :
|
|
14896
|
+
var Cc = (e, t) => t.length == 1 ? t[0] : t.some((n) => n.cancelled) ? Sr(e.get()) : t.every((n) => n.noop) ? ih(e.get()) : pn(
|
|
14895
14897
|
e.get(),
|
|
14896
14898
|
t.every((n) => n.finished)
|
|
14897
14899
|
), ih = (e) => ({
|
|
@@ -14899,7 +14901,7 @@ var Cc = (e, t) => t.length == 1 ? t[0] : t.some((n) => n.cancelled) ? Sr(e.get(
|
|
|
14899
14901
|
noop: !0,
|
|
14900
14902
|
finished: !0,
|
|
14901
14903
|
cancelled: !1
|
|
14902
|
-
}),
|
|
14904
|
+
}), pn = (e, t, n = !1) => ({
|
|
14903
14905
|
value: e,
|
|
14904
14906
|
finished: t,
|
|
14905
14907
|
cancelled: n
|
|
@@ -14926,15 +14928,15 @@ function oh(e, t, n, r) {
|
|
|
14926
14928
|
const p = (
|
|
14927
14929
|
// The `cancel` prop or `stop` method was used.
|
|
14928
14930
|
i <= (n.cancelId || 0) && Sr(r) || // The async `to` prop was replaced.
|
|
14929
|
-
i !== n.asyncId &&
|
|
14931
|
+
i !== n.asyncId && pn(r, !1)
|
|
14930
14932
|
);
|
|
14931
14933
|
if (p)
|
|
14932
14934
|
throw m.result = p, v(m), m;
|
|
14933
14935
|
}, o = (m, p) => {
|
|
14934
14936
|
const y = new yu(), b = new vu();
|
|
14935
14937
|
return (async () => {
|
|
14936
|
-
if (
|
|
14937
|
-
throw ji(n), b.result =
|
|
14938
|
+
if (bn.skipAnimation)
|
|
14939
|
+
throw ji(n), b.result = pn(r, !1), v(b), b;
|
|
14938
14940
|
E(y);
|
|
14939
14941
|
const C = xe.obj(m) ? { ...m } : { ...p, to: m };
|
|
14940
14942
|
C.parentId = i, Rn(g, (R, j) => {
|
|
@@ -14947,14 +14949,14 @@ function oh(e, t, n, r) {
|
|
|
14947
14949
|
})();
|
|
14948
14950
|
};
|
|
14949
14951
|
let d;
|
|
14950
|
-
if (
|
|
14951
|
-
return ji(n),
|
|
14952
|
+
if (bn.skipAnimation)
|
|
14953
|
+
return ji(n), pn(r, !1);
|
|
14952
14954
|
try {
|
|
14953
14955
|
let m;
|
|
14954
14956
|
xe.arr(e) ? m = (async (p) => {
|
|
14955
14957
|
for (const y of p)
|
|
14956
14958
|
await o(y);
|
|
14957
|
-
})(e) : m = Promise.resolve(e(o, r.stop.bind(r))), await Promise.all([m.then(h), c]), d =
|
|
14959
|
+
})(e) : m = Promise.resolve(e(o, r.stop.bind(r))), await Promise.all([m.then(h), c]), d = pn(r.get(), !0, !1);
|
|
14958
14960
|
} catch (m) {
|
|
14959
14961
|
if (m instanceof yu)
|
|
14960
14962
|
d = m.result;
|
|
@@ -15000,11 +15002,11 @@ var yu = class extends Error {
|
|
|
15000
15002
|
}
|
|
15001
15003
|
/** Create a spring that maps our value to another value */
|
|
15002
15004
|
to(...e) {
|
|
15003
|
-
return
|
|
15005
|
+
return bn.to(this, e);
|
|
15004
15006
|
}
|
|
15005
15007
|
/** @deprecated Use the `to` method instead. */
|
|
15006
15008
|
interpolate(...e) {
|
|
15007
|
-
return Tw(),
|
|
15009
|
+
return Tw(), bn.to(this, e);
|
|
15008
15010
|
}
|
|
15009
15011
|
toJSON() {
|
|
15010
15012
|
return this.get();
|
|
@@ -15234,7 +15236,7 @@ var yu = class extends Error {
|
|
|
15234
15236
|
Wr(this) || (wu(this, !0), ri(s.pauseQueue), Jr(
|
|
15235
15237
|
this,
|
|
15236
15238
|
"onPause",
|
|
15237
|
-
|
|
15239
|
+
pn(this, Hr(this, this.animation.to)),
|
|
15238
15240
|
this
|
|
15239
15241
|
));
|
|
15240
15242
|
},
|
|
@@ -15242,7 +15244,7 @@ var yu = class extends Error {
|
|
|
15242
15244
|
Wr(this) && (wu(this, !1), Yn(this) && this._resume(), ri(s.resumeQueue), Jr(
|
|
15243
15245
|
this,
|
|
15244
15246
|
"onResume",
|
|
15245
|
-
|
|
15247
|
+
pn(this, Hr(this, this.animation.to)),
|
|
15246
15248
|
this
|
|
15247
15249
|
));
|
|
15248
15250
|
},
|
|
@@ -15283,7 +15285,7 @@ var yu = class extends Error {
|
|
|
15283
15285
|
);
|
|
15284
15286
|
let y = En(this);
|
|
15285
15287
|
if (!y || xe.und(h))
|
|
15286
|
-
return n(
|
|
15288
|
+
return n(pn(this, !0));
|
|
15287
15289
|
const b = (
|
|
15288
15290
|
// When `reset` is undefined, the `from` prop implies `reset: true`,
|
|
15289
15291
|
// except for declarative updates. When `reset` is defined, there
|
|
@@ -15309,7 +15311,7 @@ var yu = class extends Error {
|
|
|
15309
15311
|
if (V && Yn(this) && (l.changed && !b ? D = !0 : D || this._stop(f)), !o && ((D || cn(f)) && (l.values = y.getPayload(), l.toValues = cn(h) ? null : I == Ti ? [1] : nn(S)), l.immediate != j && (l.immediate = j, !j && !b && this._set(f)), D)) {
|
|
15310
15312
|
const { onRest: K } = l;
|
|
15311
15313
|
Qe(Xw, (F) => Eu(this, t, F));
|
|
15312
|
-
const $ =
|
|
15314
|
+
const $ = pn(this, Hr(this, f));
|
|
15313
15315
|
ri(this._pendingCalls, $), this._pendingCalls.add(n), l.changed && _e.batchedUpdates(() => {
|
|
15314
15316
|
var F;
|
|
15315
15317
|
l.changed = !b, K == null || K($, this), b ? sr(a.onRest, $) : (F = l.onStart) == null || F.call(l, $, this);
|
|
@@ -15353,7 +15355,7 @@ var yu = class extends Error {
|
|
|
15353
15355
|
e.changed || (e.changed = !0, Jr(
|
|
15354
15356
|
this,
|
|
15355
15357
|
"onStart",
|
|
15356
|
-
|
|
15358
|
+
pn(this, Hr(this, e.to)),
|
|
15357
15359
|
this
|
|
15358
15360
|
));
|
|
15359
15361
|
}
|
|
@@ -15368,7 +15370,7 @@ var yu = class extends Error {
|
|
|
15368
15370
|
En(this).reset(Jt(e.to)), e.immediate || (e.fromValues = e.values.map((t) => t.lastPosition)), Yn(this) || (bu(this, !0), Wr(this) || this._resume());
|
|
15369
15371
|
}
|
|
15370
15372
|
_resume() {
|
|
15371
|
-
|
|
15373
|
+
bn.skipAnimation ? this.finish() : cs.start(this);
|
|
15372
15374
|
}
|
|
15373
15375
|
/**
|
|
15374
15376
|
* Exit the frameloop and notify `onRest` listeners.
|
|
@@ -15385,7 +15387,7 @@ var yu = class extends Error {
|
|
|
15385
15387
|
type: "idle",
|
|
15386
15388
|
parent: this
|
|
15387
15389
|
});
|
|
15388
|
-
const r = t ? Sr(this.get()) :
|
|
15390
|
+
const r = t ? Sr(this.get()) : pn(this.get(), Hr(this, e ?? n.to));
|
|
15389
15391
|
ri(this._pendingCalls, r), n.changed && (n.changed = !1, Jr(this, "onRest", r, this));
|
|
15390
15392
|
}
|
|
15391
15393
|
}
|
|
@@ -15771,7 +15773,7 @@ var ax = class extends Ac {
|
|
|
15771
15773
|
_start() {
|
|
15772
15774
|
this.idle && !Au(this._active) && (this.idle = !1, Qe(fs(this), (e) => {
|
|
15773
15775
|
e.done = !1;
|
|
15774
|
-
}),
|
|
15776
|
+
}), bn.skipAnimation ? (_e.batchedUpdates(() => this.advance()), Ws(this)) : cs.start(this));
|
|
15775
15777
|
}
|
|
15776
15778
|
// Observe our sources only when we're observed.
|
|
15777
15779
|
_attach() {
|
|
@@ -15808,7 +15810,7 @@ function Ws(e) {
|
|
|
15808
15810
|
parent: e
|
|
15809
15811
|
}));
|
|
15810
15812
|
}
|
|
15811
|
-
|
|
15813
|
+
bn.assign({
|
|
15812
15814
|
createStringInterpolator: Wf,
|
|
15813
15815
|
to: (e, t) => new ax(e, t)
|
|
15814
15816
|
});
|
|
@@ -16083,7 +16085,7 @@ var hx = /^(matrix|translate|scale|rotate|skew)/, px = /^(translate)/, gx = /^(r
|
|
|
16083
16085
|
"text",
|
|
16084
16086
|
"tspan"
|
|
16085
16087
|
];
|
|
16086
|
-
|
|
16088
|
+
bn.assign({
|
|
16087
16089
|
batchedUpdates: Tg,
|
|
16088
16090
|
createStringInterpolator: Wf,
|
|
16089
16091
|
colors: ow
|
|
@@ -16346,7 +16348,7 @@ function yh() {
|
|
|
16346
16348
|
] }) });
|
|
16347
16349
|
}
|
|
16348
16350
|
function jx() {
|
|
16349
|
-
const { t: e } = ze(), { hash: t } = Yu(), { giftcard: n, isLoading: r, mutate: i } = Fd(t), { session: s, mutate: a } = ot(), { onUseGiftcard: l } =
|
|
16351
|
+
const { t: e } = ze(), { hash: t } = Yu(), { giftcard: n, isLoading: r, mutate: i } = Fd(t), { session: s, mutate: a } = ot(), { onUseGiftcard: l } = fn(), f = xt(), g = (s == null ? void 0 : s.input_data.amount_in_cents) ?? 0, [h] = Se(s.results.remaining_amount ?? g), v = (s == null ? void 0 : s.input_data.allow_multiple_giftcards) ?? !0;
|
|
16350
16352
|
if (r)
|
|
16351
16353
|
return /* @__PURE__ */ u.jsx("div", { className: "flex h-screen w-screen items-center justify-center text-core-primary-500", children: /* @__PURE__ */ u.jsx(Mr, { className: "h-[48px] w-[48px]" }) });
|
|
16352
16354
|
if (!n)
|
|
@@ -16889,28 +16891,28 @@ function Vx() {
|
|
|
16889
16891
|
}
|
|
16890
16892
|
function qx() {
|
|
16891
16893
|
return /* @__PURE__ */ u.jsxs(On, { children: [
|
|
16892
|
-
/* @__PURE__ */ u.jsx(Ie, { path: "/profile", element: /* @__PURE__ */ u.jsx(
|
|
16893
|
-
/* @__PURE__ */ u.jsx(Ie, { path: "/profile/activity", element: /* @__PURE__ */ u.jsx(
|
|
16894
|
-
/* @__PURE__ */ u.jsx(Ie, { path: "/profile/subscriptions", element: /* @__PURE__ */ u.jsx(
|
|
16894
|
+
/* @__PURE__ */ u.jsx(Ie, { path: "/profile", element: /* @__PURE__ */ u.jsx(gn, { element: /* @__PURE__ */ u.jsx(Bx, {}) }) }),
|
|
16895
|
+
/* @__PURE__ */ u.jsx(Ie, { path: "/profile/activity", element: /* @__PURE__ */ u.jsx(gn, { element: /* @__PURE__ */ u.jsx(kx, {}) }) }),
|
|
16896
|
+
/* @__PURE__ */ u.jsx(Ie, { path: "/profile/subscriptions", element: /* @__PURE__ */ u.jsx(gn, { element: /* @__PURE__ */ u.jsx(Mx, {}) }) }),
|
|
16895
16897
|
/* @__PURE__ */ u.jsx(
|
|
16896
16898
|
Ie,
|
|
16897
16899
|
{
|
|
16898
16900
|
path: "/profile/contact-identifiers",
|
|
16899
|
-
element: /* @__PURE__ */ u.jsx(
|
|
16901
|
+
element: /* @__PURE__ */ u.jsx(gn, { element: /* @__PURE__ */ u.jsx(Fx, {}) })
|
|
16900
16902
|
}
|
|
16901
16903
|
),
|
|
16902
16904
|
/* @__PURE__ */ u.jsx(
|
|
16903
16905
|
Ie,
|
|
16904
16906
|
{
|
|
16905
16907
|
path: "/profile/contact-identifiers/create",
|
|
16906
|
-
element: /* @__PURE__ */ u.jsx(
|
|
16908
|
+
element: /* @__PURE__ */ u.jsx(gn, { element: /* @__PURE__ */ u.jsx(Lx, {}) })
|
|
16907
16909
|
}
|
|
16908
16910
|
),
|
|
16909
16911
|
/* @__PURE__ */ u.jsx(
|
|
16910
16912
|
Ie,
|
|
16911
16913
|
{
|
|
16912
16914
|
path: "/profile/contact-attributes",
|
|
16913
|
-
element: /* @__PURE__ */ u.jsx(
|
|
16915
|
+
element: /* @__PURE__ */ u.jsx(gn, { element: /* @__PURE__ */ u.jsx(Vx, {}) })
|
|
16914
16916
|
}
|
|
16915
16917
|
)
|
|
16916
16918
|
] });
|
|
@@ -16943,7 +16945,7 @@ function Fa({ voucher: e, selected: t, setSelected: n }) {
|
|
|
16943
16945
|
);
|
|
16944
16946
|
}
|
|
16945
16947
|
function Ux() {
|
|
16946
|
-
const { t: e } = ze(), { vouchers: t, isLoading: n, mutate: r } = _v(), { onRedeemVoucher: i } =
|
|
16948
|
+
const { t: e } = ze(), { vouchers: t, isLoading: n, mutate: r } = _v(), { onRedeemVoucher: i } = fn(), { mutate: s } = Xo(), {
|
|
16947
16949
|
session: { events: a },
|
|
16948
16950
|
mutate: l
|
|
16949
16951
|
} = ot(), [f, g] = Se(), [h, v] = Se(!1);
|
|
@@ -17046,7 +17048,7 @@ function Js({ reward: e, selected: t, setSelected: n, disabled: r, readOnly: i }
|
|
|
17046
17048
|
);
|
|
17047
17049
|
}
|
|
17048
17050
|
function Gx() {
|
|
17049
|
-
const { t: e } = ze(), { rewards: t, isLoading: n, mutate: r } = kv(), { mutate: i } = Tn(), { mutate: s } = Xo(), { onClaimReward: a } =
|
|
17051
|
+
const { t: e } = ze(), { rewards: t, isLoading: n, mutate: r } = kv(), { mutate: i } = Tn(), { mutate: s } = Xo(), { onClaimReward: a } = fn(), {
|
|
17050
17052
|
session: { events: l, loyalty_program: f },
|
|
17051
17053
|
mutate: g
|
|
17052
17054
|
} = ot(), { contact: h, isLoading: v } = Tn(), [c, E] = Se(), [o, d] = Se(!1);
|
|
@@ -17183,8 +17185,8 @@ function Kx() {
|
|
|
17183
17185
|
/* @__PURE__ */ u.jsxs(Yx, { children: [
|
|
17184
17186
|
/* @__PURE__ */ u.jsx(qx, {}),
|
|
17185
17187
|
/* @__PURE__ */ u.jsxs(On, { children: [
|
|
17186
|
-
/* @__PURE__ */ u.jsx(Ie, { path: "/rewards", element: /* @__PURE__ */ u.jsx(
|
|
17187
|
-
/* @__PURE__ */ u.jsx(Ie, { path: "/vouchers", element: /* @__PURE__ */ u.jsx(
|
|
17188
|
+
/* @__PURE__ */ u.jsx(Ie, { path: "/rewards", element: /* @__PURE__ */ u.jsx(gn, { element: /* @__PURE__ */ u.jsx(Gx, {}) }) }),
|
|
17189
|
+
/* @__PURE__ */ u.jsx(Ie, { path: "/vouchers", element: /* @__PURE__ */ u.jsx(gn, { element: /* @__PURE__ */ u.jsx(Ux, {}) }) })
|
|
17188
17190
|
] })
|
|
17189
17191
|
] })
|
|
17190
17192
|
] });
|
|
@@ -17199,7 +17201,7 @@ function Qx() {
|
|
|
17199
17201
|
return /* @__PURE__ */ u.jsx(Yt, { children: /* @__PURE__ */ u.jsx(os, { state: { redirectRoute: `${qt.PORTAL}` } }) });
|
|
17200
17202
|
}
|
|
17201
17203
|
function Gi() {
|
|
17202
|
-
const { state: e } = Gt(), { t } = ze(), n = xt(), { onContactLink: r } =
|
|
17204
|
+
const { state: e } = Gt(), { t } = ze(), n = xt(), { onContactLink: r } = fn(), { session: i, mutate: s } = ot(), { publish: a } = is(), [l, f] = Se(""), [g, h] = Se(!1), [v, c] = Se(!1), E = async (d) => {
|
|
17203
17205
|
if (d.preventDefault(), i) {
|
|
17204
17206
|
h(!0);
|
|
17205
17207
|
try {
|
|
@@ -17288,7 +17290,7 @@ function Wx() {
|
|
|
17288
17290
|
] }) });
|
|
17289
17291
|
}
|
|
17290
17292
|
function jn() {
|
|
17291
|
-
const { state: e } = Gt(), { t } = ze(), { session: n, mutate: r } = ot(), i = xt(), s =
|
|
17293
|
+
const { state: e } = Gt(), { t } = ze(), { session: n, mutate: r } = ot(), i = xt(), s = fn(), [a, l] = Se(!1), [f, g] = Se([]), [h, v] = Se(
|
|
17292
17294
|
{}
|
|
17293
17295
|
), [c, E] = Se(!1);
|
|
17294
17296
|
Ne(() => {
|
|
@@ -17354,7 +17356,7 @@ function jn() {
|
|
|
17354
17356
|
] }) });
|
|
17355
17357
|
}
|
|
17356
17358
|
function Yi() {
|
|
17357
|
-
const { t: e } = ze(), { state: t } = Gt(), { session: n, mutate: r } = ot(), i = xt(), { publish: s } = is(), a =
|
|
17359
|
+
const { t: e } = ze(), { state: t } = Gt(), { session: n, mutate: r } = ot(), i = xt(), { publish: s } = is(), a = fn(), [l, f] = Se(!1), [g, h] = Se(""), [v, c] = Se(!1);
|
|
17358
17360
|
if (!t || !t.contactIdentifier)
|
|
17359
17361
|
return /* @__PURE__ */ u.jsx(Mi, { to: "../" });
|
|
17360
17362
|
const E = async (d) => {
|
|
@@ -17476,7 +17478,7 @@ function Zx() {
|
|
|
17476
17478
|
/* @__PURE__ */ u.jsx(Ie, { path: "/email/new-contact", element: /* @__PURE__ */ u.jsx(jn, {}) }),
|
|
17477
17479
|
/* @__PURE__ */ u.jsx(Ie, { path: "/link-identifier", element: /* @__PURE__ */ u.jsx(Yi, {}) }),
|
|
17478
17480
|
/* @__PURE__ */ u.jsx(Ie, { path: "/link-identifier/new-contact", element: /* @__PURE__ */ u.jsx(jn, {}) }),
|
|
17479
|
-
/* @__PURE__ */ u.jsx(Ie, { path: "/transaction", element: /* @__PURE__ */ u.jsx(
|
|
17481
|
+
/* @__PURE__ */ u.jsx(Ie, { path: "/transaction", element: /* @__PURE__ */ u.jsx(gn, { element: /* @__PURE__ */ u.jsx(zx, {}) }) })
|
|
17480
17482
|
] });
|
|
17481
17483
|
}
|
|
17482
17484
|
function wh() {
|
|
@@ -17569,7 +17571,7 @@ function tE() {
|
|
|
17569
17571
|
/* @__PURE__ */ u.jsx(Ie, { path: "/email/new-contact", element: /* @__PURE__ */ u.jsx(jn, {}) }),
|
|
17570
17572
|
/* @__PURE__ */ u.jsx(Ie, { path: "/link-identifier", element: /* @__PURE__ */ u.jsx(Yi, {}) }),
|
|
17571
17573
|
/* @__PURE__ */ u.jsx(Ie, { path: "/link-identifier/new-contact", element: /* @__PURE__ */ u.jsx(jn, {}) }),
|
|
17572
|
-
/* @__PURE__ */ u.jsx(Ie, { path: "/pay", element: /* @__PURE__ */ u.jsx(
|
|
17574
|
+
/* @__PURE__ */ u.jsx(Ie, { path: "/pay", element: /* @__PURE__ */ u.jsx(gn, { element: /* @__PURE__ */ u.jsx(eE, {}) }) })
|
|
17573
17575
|
] });
|
|
17574
17576
|
}
|
|
17575
17577
|
function nE() {
|
|
@@ -17579,7 +17581,7 @@ function nE() {
|
|
|
17579
17581
|
/* @__PURE__ */ u.jsx(Ie, { path: "/email/new-contact", element: /* @__PURE__ */ u.jsx(jn, {}) }),
|
|
17580
17582
|
/* @__PURE__ */ u.jsx(Ie, { path: "/link-identifier", element: /* @__PURE__ */ u.jsx(Yi, {}) }),
|
|
17581
17583
|
/* @__PURE__ */ u.jsx(Ie, { path: "/link-identifier/new-contact", element: /* @__PURE__ */ u.jsx(jn, {}) }),
|
|
17582
|
-
/* @__PURE__ */ u.jsx(Ie, { path: "/top-up", element: /* @__PURE__ */ u.jsx(
|
|
17584
|
+
/* @__PURE__ */ u.jsx(Ie, { path: "/top-up", element: /* @__PURE__ */ u.jsx(gn, { element: /* @__PURE__ */ u.jsx(Xx, {}) }) })
|
|
17583
17585
|
] });
|
|
17584
17586
|
}
|
|
17585
17587
|
function rE() {
|
|
@@ -17626,7 +17628,7 @@ function rE() {
|
|
|
17626
17628
|
] });
|
|
17627
17629
|
}
|
|
17628
17630
|
function iE() {
|
|
17629
|
-
const { state: e } = Gt(), t = xt(), { t: n } = ze(), { session: r, mutate: i } = ot(), { onRedeemVoucher: s } =
|
|
17631
|
+
const { state: e } = Gt(), t = xt(), { t: n } = ze(), { session: r, mutate: i } = ot(), { onRedeemVoucher: s } = fn(), [a, l] = Se(e.voucher);
|
|
17630
17632
|
if (!a)
|
|
17631
17633
|
return /* @__PURE__ */ u.jsx(u.Fragment, {});
|
|
17632
17634
|
const f = Dt(async () => {
|
|
@@ -17673,7 +17675,7 @@ function sE() {
|
|
|
17673
17675
|
}
|
|
17674
17676
|
const aE = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewBox='0%200%2024%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.37482%209.55838C0.802045%2011.696%200.887351%2013.9567%201.61959%2016.045C2.35183%2018.1334%203.69695%2019.9524%205.47921%2021.2642C7.26146%2022.5761%209.39798%2023.3199%2011.6096%2023.3985C13.8212%2023.477%2016.0051%2022.8866%2017.876%2021.7045C19.7468%2020.5223%2021.2175%2018.8034%2022.0961%2016.7722C22.9746%2014.7411%2023.2201%2012.4921%2022.8004%2010.3193C22.3807%208.1464%2021.3154%206.15066%2019.7436%204.59277C18.1718%203.03489%2016.1667%201.98732%2013.9902%201.58693M7.14096%202.53681C5.21049%203.48732%203.60119%204.98315%202.51232%206.8391M10.7049%201.48193C10.452%201.51191%2010.2003%201.55066%209.95012%201.59811M18.1995%2015.656C18.757%2014.5927%2019.0317%2013.4039%2018.9971%2012.2038C18.9625%2011.0037%2018.6198%209.83263%2018.002%208.8032C17.3842%207.77377%2016.512%206.92055%2015.4692%206.32553C14.4264%205.73051%2013.2481%205.4137%2012.0476%205.40554C10.847%205.39739%209.66449%205.69816%208.61372%206.27895C7.56295%206.85974%206.67923%207.70104%206.04747%208.72198C5.41572%209.74292%205.05717%2010.9092%205.00628%2012.1087C4.9554%2013.3082%205.21389%2014.5007%205.75691%2015.5714M9.15764%2013.3648C9.00624%2012.9162%208.96314%2012.4382%209.03189%2011.9698C9.10064%2011.5014%209.27926%2011.0559%209.55317%2010.6697C9.82708%2010.2836%2010.1885%209.96774%2010.6079%209.74803C11.0272%209.52832%2011.4926%209.41098%2011.966%209.4056C12.4394%209.40023%2012.9074%209.50697%2013.3316%209.71709C13.7559%209.92722%2014.1244%2010.2348%2014.407%2010.6146C14.6896%2010.9944%2014.8783%2011.4358%2014.9576%2011.9025C15.037%2012.3692%2015.0048%2012.8481%2014.8636%2013.3M14.0993%2010.2622C14.0043%2010.1691%2013.9032%2010.0825%2013.7967%2010.0028M8.2478%2018.3147C9.32147%2018.9965%2010.5606%2019.3728%2011.832%2019.4033C13.1035%2019.4339%2014.3592%2019.1174%2015.4644%2018.488'%20stroke='%233430FF'%20stroke-width='2'%20stroke-linecap='round'/%3e%3c/svg%3e";
|
|
17675
17677
|
function cE() {
|
|
17676
|
-
const e = xt(), { t } = ze(), n =
|
|
17678
|
+
const e = xt(), { t } = ze(), n = fn();
|
|
17677
17679
|
return Ne(() => {
|
|
17678
17680
|
n.sessionUuid && e(`/${n.sessionUuid}`);
|
|
17679
17681
|
}, [n.sessionUuid, e]), /* @__PURE__ */ u.jsxs("div", { className: "relative flex w-full flex-col items-center justify-center gap-12 text-center", children: [
|
|
@@ -17695,7 +17697,7 @@ function cE() {
|
|
|
17695
17697
|
] });
|
|
17696
17698
|
}
|
|
17697
17699
|
function lE() {
|
|
17698
|
-
const e = xt(), { t } = ze(), { sessionUuid: n } =
|
|
17700
|
+
const e = xt(), { t } = ze(), { sessionUuid: n } = fn(), { session: r, isLoading: i, mutate: s } = ot();
|
|
17699
17701
|
return Ne(() => {
|
|
17700
17702
|
if (!i && r) {
|
|
17701
17703
|
const a = r.type in qt ? `/${r.type.replaceAll("_", "-").toLowerCase()}` : "/";
|
|
@@ -17760,7 +17762,7 @@ function xh() {
|
|
|
17760
17762
|
)
|
|
17761
17763
|
] });
|
|
17762
17764
|
}
|
|
17763
|
-
function
|
|
17765
|
+
function gn({ element: e }) {
|
|
17764
17766
|
const { session: t } = ot();
|
|
17765
17767
|
return t.contact ? e : /* @__PURE__ */ u.jsx(Mi, { to: "/" });
|
|
17766
17768
|
}
|
|
@@ -18821,6 +18823,7 @@ function GE(e) {
|
|
|
18821
18823
|
api_key: e.apiKey,
|
|
18822
18824
|
shop_uuid: e.shopUuid,
|
|
18823
18825
|
contact_uuid: e.contactUuid,
|
|
18826
|
+
...e.cameraFacingMode && { camera_facing_mode: e.cameraFacingMode },
|
|
18824
18827
|
...e.amountInCents && { amount_in_cents: e.amountInCents },
|
|
18825
18828
|
...e.allowMultipleGiftcards && { allow_multiple_giftcards: e.allowMultipleGiftcards },
|
|
18826
18829
|
...e.enableRegistration && { enable_registration: e.enableRegistration },
|