@24city/web-console 0.3.11 → 0.3.13
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/CHANGELOG.md +29 -0
- package/README.md +13 -1
- package/dist/account/account-api.d.ts +22 -1
- package/dist/account/auth-provider.d.ts +3 -1
- package/dist/account/index.js +76 -72
- package/dist/account/route-guard.d.ts +1 -1
- package/dist/account/use-track.d.ts +32 -5
- package/dist/chunks/auth-provider-DAxku5aX.js +72 -0
- package/dist/chunks/{console-layout-CTVkNVdl.js → console-layout-aa4l4x0s.js} +20 -20
- package/dist/chunks/logout-signal-XyvlxcEc.js +388 -0
- package/dist/chunks/{stale-build-CpZMSNSH.js → stale-build-4Zf1W-0Q.js} +2 -2
- package/dist/chunks/{use-show-once-mq5WGTrX.js → use-show-once-DQHhTzlT.js} +144 -144
- package/dist/chunks/wallet-badge-DIJeoyjn.js +700 -0
- package/dist/index.js +225 -220
- package/dist/layout/index.js +1 -1
- package/dist/runtime/error-summary.d.ts +2 -0
- package/dist/runtime/index.js +19 -18
- package/package.json +1 -1
- package/dist/chunks/auth-provider-3AIfwcdS.js +0 -62
- package/dist/chunks/logout-signal-CsnJzWTz.js +0 -381
- package/dist/chunks/wallet-badge-3oCaCiNm.js +0 -629
|
@@ -0,0 +1,388 @@
|
|
|
1
|
+
import { sanitizeInternalReturnPath as A } from "@24city/web-runtime/core/internal-path";
|
|
2
|
+
import { createContext as x, useSyncExternalStore as F, useContext as z } from "react";
|
|
3
|
+
import { summarizeCustomerError as O } from "@24city/web-runtime/error-summary";
|
|
4
|
+
const T = (t) => t.includes("\\") || [...t].some((e) => {
|
|
5
|
+
const s = e.charCodeAt(0);
|
|
6
|
+
return s <= 31 || s === 127;
|
|
7
|
+
}), ut = (t) => !T(t) && t.startsWith("/") && !t.startsWith("//") && (() => {
|
|
8
|
+
try {
|
|
9
|
+
const e = new URL(t, "https://product.invalid");
|
|
10
|
+
return e.origin === "https://product.invalid" && A(t, e.pathname) === t;
|
|
11
|
+
} catch {
|
|
12
|
+
return !1;
|
|
13
|
+
}
|
|
14
|
+
})(), lt = (t, e) => !T(t) && A(t, e) === t, M = (t, e) => !t || T(t) ? e : A(t, e), U = (t) => typeof t == "object" && t !== null && !Array.isArray(t), p = (t, e) => {
|
|
15
|
+
const s = e.data;
|
|
16
|
+
if (!U(s) || s.code !== 0 || !("data" in s))
|
|
17
|
+
throw new Error(`接口 ${t} 返回了无效响应`);
|
|
18
|
+
return s.data;
|
|
19
|
+
}, l = (t, e, s) => {
|
|
20
|
+
if (!U(t)) throw new Error(`接口 ${e} 字段 ${s} 无效`);
|
|
21
|
+
return t;
|
|
22
|
+
}, n = (t, e, s) => {
|
|
23
|
+
const r = t[e];
|
|
24
|
+
if (typeof r != "string" || !r.trim())
|
|
25
|
+
throw new Error(`接口 ${s} 字段 ${e} 无效`);
|
|
26
|
+
return r;
|
|
27
|
+
}, g = (t, e, s) => {
|
|
28
|
+
const r = t[e];
|
|
29
|
+
if (typeof r != "number" || !Number.isSafeInteger(r) || r < 0)
|
|
30
|
+
throw new Error(`接口 ${s} 字段 ${e} 无效`);
|
|
31
|
+
return r;
|
|
32
|
+
}, m = "/account", u = `${m}/session`, $ = `${m}/logout`, i = `${m}/spaces`, C = `${i}/switch`, E = `${m}/profile`, h = `${m}/wallet`, P = `${m}/entitlements`, f = `${m}/subscription`, a = `${m}/plans`, b = `${m}/shown-prompts`, W = `${m}/events`, k = `${m}/visits`, q = /^[a-z][a-z0-9_]{0,31}$/, I = (t, e, s) => {
|
|
33
|
+
const r = t[e];
|
|
34
|
+
if (r !== null && typeof r != "string")
|
|
35
|
+
throw new Error(`接口 ${s} 字段 ${e} 无效`);
|
|
36
|
+
return r;
|
|
37
|
+
}, S = (t, e, s) => {
|
|
38
|
+
const r = t[e];
|
|
39
|
+
if (r != null) {
|
|
40
|
+
if (typeof r != "string")
|
|
41
|
+
throw new Error(`接口 ${s} 字段 ${e} 无效`);
|
|
42
|
+
return r;
|
|
43
|
+
}
|
|
44
|
+
}, V = (t, e, s) => {
|
|
45
|
+
const r = t[e];
|
|
46
|
+
return r === null ? {} : l(r, s, e);
|
|
47
|
+
}, B = (t) => {
|
|
48
|
+
const e = l(t, $, "data"), s = S(e, "endSessionUrl", $);
|
|
49
|
+
if (!s) return null;
|
|
50
|
+
try {
|
|
51
|
+
return new URL(s).protocol === "https:" ? s : null;
|
|
52
|
+
} catch {
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
}, D = (t) => {
|
|
56
|
+
const e = l(t, u, "data");
|
|
57
|
+
if (e.purpose !== "user") throw new Error("产品用户 Web 只接受 user Purpose 会话");
|
|
58
|
+
return {
|
|
59
|
+
globalUserId: n(e, "globalUserId", u),
|
|
60
|
+
localUserId: g(e, "localUserId", u),
|
|
61
|
+
activeSpaceId: n(e, "activeSpaceId", u),
|
|
62
|
+
authorityId: g(e, "authorityId", u),
|
|
63
|
+
orgId: g(e, "orgId", u),
|
|
64
|
+
purpose: "user",
|
|
65
|
+
csrfToken: n(e, "csrfToken", u),
|
|
66
|
+
issuedAt: n(e, "issuedAt", u),
|
|
67
|
+
lastSeenAt: n(e, "lastSeenAt", u),
|
|
68
|
+
absoluteExpiresAt: n(e, "absoluteExpiresAt", u),
|
|
69
|
+
lastCentralVerifiedAt: n(e, "lastCentralVerifiedAt", u),
|
|
70
|
+
accountCenterUrl: n(e, "accountCenterUrl", u)
|
|
71
|
+
};
|
|
72
|
+
}, _ = (t, e, s) => {
|
|
73
|
+
const r = l(t, e, s);
|
|
74
|
+
return {
|
|
75
|
+
id: n(r, "id", e),
|
|
76
|
+
entitlementCode: n(r, "entitlementCode", e),
|
|
77
|
+
status: S(r, "status", e),
|
|
78
|
+
startsAt: n(r, "startsAt", e),
|
|
79
|
+
expiresAt: I(r, "expiresAt", e),
|
|
80
|
+
metadata: V(r, "metadata", e)
|
|
81
|
+
};
|
|
82
|
+
}, G = (t, e) => {
|
|
83
|
+
const s = l(t, i, `spaces[${e}]`), r = l(s.entitlementSummary, i, "entitlementSummary"), o = r.codes, c = s.entitlements;
|
|
84
|
+
if (!Array.isArray(o) || o.some((y) => typeof y != "string"))
|
|
85
|
+
throw new Error(`接口 ${i} 字段 entitlementSummary.codes 无效`);
|
|
86
|
+
if (!Array.isArray(c))
|
|
87
|
+
throw new Error(`接口 ${i} 字段 entitlements 无效`);
|
|
88
|
+
return {
|
|
89
|
+
id: n(s, "id", i),
|
|
90
|
+
name: n(s, "name", i),
|
|
91
|
+
slug: n(s, "slug", i),
|
|
92
|
+
type: n(s, "type", i),
|
|
93
|
+
role: n(s, "role", i),
|
|
94
|
+
status: n(s, "status", i),
|
|
95
|
+
membershipStatus: n(s, "membershipStatus", i),
|
|
96
|
+
entitlementSummary: {
|
|
97
|
+
activeCount: g(r, "activeCount", i),
|
|
98
|
+
codes: [...o]
|
|
99
|
+
},
|
|
100
|
+
entitlements: c.map(
|
|
101
|
+
(y, d) => _(y, i, `entitlements[${d}]`)
|
|
102
|
+
)
|
|
103
|
+
};
|
|
104
|
+
}, H = (t) => {
|
|
105
|
+
const e = l(t, i, "data"), s = n(e, "activeSpaceId", i);
|
|
106
|
+
if (!Array.isArray(e.spaces)) throw new Error(`接口 ${i} 字段 spaces 无效`);
|
|
107
|
+
const r = e.spaces.map(G);
|
|
108
|
+
if (!r.some((o) => o.id === s))
|
|
109
|
+
throw new Error(`接口 ${i} 的当前空间不在可用空间列表中`);
|
|
110
|
+
return { activeSpaceId: s, spaces: r };
|
|
111
|
+
}, j = (t) => {
|
|
112
|
+
const e = l(t, E, "data");
|
|
113
|
+
return { nickName: (S(e, "nickName", E) ?? "").trim() };
|
|
114
|
+
}, K = (t) => {
|
|
115
|
+
const e = l(t, h, "data"), s = (r) => {
|
|
116
|
+
const o = e[r];
|
|
117
|
+
if (typeof o != "number" || !Number.isSafeInteger(o))
|
|
118
|
+
throw new Error(`接口 ${h} 字段 ${r} 无效`);
|
|
119
|
+
return o;
|
|
120
|
+
};
|
|
121
|
+
return {
|
|
122
|
+
spaceId: n(e, "spaceId", h),
|
|
123
|
+
globalUserId: n(e, "globalUserId", h),
|
|
124
|
+
productCode: n(e, "productCode", h),
|
|
125
|
+
availablePoints: s("availablePoints"),
|
|
126
|
+
reservedPoints: s("reservedPoints"),
|
|
127
|
+
globalAvailablePoints: s("globalAvailablePoints"),
|
|
128
|
+
globalReservedPoints: s("globalReservedPoints"),
|
|
129
|
+
productAvailablePoints: s("productAvailablePoints"),
|
|
130
|
+
productReservedPoints: s("productReservedPoints"),
|
|
131
|
+
walletAvailablePoints: s("walletAvailablePoints"),
|
|
132
|
+
walletReservedPoints: s("walletReservedPoints"),
|
|
133
|
+
walletVersion: g(e, "walletVersion", h)
|
|
134
|
+
};
|
|
135
|
+
}, Y = (t) => {
|
|
136
|
+
if (t === null) return null;
|
|
137
|
+
const e = l(t, f, "data"), s = e.tier;
|
|
138
|
+
if (typeof s != "number" || !Number.isSafeInteger(s))
|
|
139
|
+
throw new Error(`接口 ${f} 字段 tier 无效`);
|
|
140
|
+
if (typeof e.isDefault != "boolean")
|
|
141
|
+
throw new Error(`接口 ${f} 字段 isDefault 无效`);
|
|
142
|
+
return {
|
|
143
|
+
subscriptionId: I(e, "subscriptionId", f),
|
|
144
|
+
planCode: n(e, "planCode", f),
|
|
145
|
+
planName: (S(e, "planName", f) ?? "").trim(),
|
|
146
|
+
tier: s,
|
|
147
|
+
isDefault: e.isDefault,
|
|
148
|
+
spaceType: S(e, "spaceType", f) ?? "",
|
|
149
|
+
currentPeriodEnd: I(e, "currentPeriodEnd", f)
|
|
150
|
+
};
|
|
151
|
+
}, X = /* @__PURE__ */ new Set(["month", "year", "one_time"]), J = (t, e) => {
|
|
152
|
+
const s = l(t, a, e), r = n(s, "billingPeriod", a);
|
|
153
|
+
if (!X.has(r)) throw new Error(`接口 ${a} 字段 ${e}.billingPeriod 无效`);
|
|
154
|
+
return {
|
|
155
|
+
code: n(s, "code", a),
|
|
156
|
+
amountCents: g(s, "amountCents", a),
|
|
157
|
+
currency: n(s, "currency", a),
|
|
158
|
+
billingPeriod: r,
|
|
159
|
+
durationDays: g(s, "durationDays", a),
|
|
160
|
+
pointCycles: g(s, "pointCycles", a)
|
|
161
|
+
};
|
|
162
|
+
}, Q = (t, e) => {
|
|
163
|
+
const s = l(t, a, e), r = s.limit;
|
|
164
|
+
if (r != null && (typeof r != "number" || !Number.isSafeInteger(r) || r < 0))
|
|
165
|
+
throw new Error(`接口 ${a} 字段 ${e}.limit 无效`);
|
|
166
|
+
const o = Array.isArray(s.discounts) ? s.discounts.filter((c) => typeof c == "string") : [];
|
|
167
|
+
return {
|
|
168
|
+
key: S(s, "key", a) ?? "",
|
|
169
|
+
name: n(s, "name", a),
|
|
170
|
+
description: S(s, "description", a) ?? "",
|
|
171
|
+
limit: typeof r == "number" ? r : null,
|
|
172
|
+
discounts: o
|
|
173
|
+
};
|
|
174
|
+
}, Z = (t, e) => {
|
|
175
|
+
const s = `data[${e}]`, r = l(t, a, s), o = n(r, "spaceType", a);
|
|
176
|
+
if (o !== "personal" && o !== "team") throw new Error(`接口 ${a} 字段 ${s}.spaceType 无效`);
|
|
177
|
+
if (typeof r.tier != "number" || !Number.isSafeInteger(r.tier)) throw new Error(`接口 ${a} 字段 ${s}.tier 无效`);
|
|
178
|
+
if (typeof r.isDefault != "boolean") throw new Error(`接口 ${a} 字段 ${s}.isDefault 无效`);
|
|
179
|
+
if (!Array.isArray(r.prices)) throw new Error(`接口 ${a} 字段 ${s}.prices 无效`);
|
|
180
|
+
const c = Array.isArray(r.benefits) ? r.benefits : [], y = Array.isArray(r.otherProducts) ? r.otherProducts.filter((d) => typeof d == "string" && d.trim() !== "").map((d) => d.trim()) : [];
|
|
181
|
+
return {
|
|
182
|
+
code: n(r, "code", a),
|
|
183
|
+
name: n(r, "name", a).trim(),
|
|
184
|
+
spaceType: o,
|
|
185
|
+
tier: r.tier,
|
|
186
|
+
isDefault: r.isDefault,
|
|
187
|
+
includedSeats: g(r, "includedSeats", a),
|
|
188
|
+
monthlyPoints: g(r, "monthlyPoints", a),
|
|
189
|
+
prices: r.prices.map((d, N) => J(d, `${s}.prices[${N}]`)),
|
|
190
|
+
benefits: c.map((d, N) => Q(d, `${s}.benefits[${N}]`)),
|
|
191
|
+
otherProducts: y
|
|
192
|
+
};
|
|
193
|
+
}, L = (t, e) => {
|
|
194
|
+
const s = l(t, b, "data")[e];
|
|
195
|
+
if (!Array.isArray(s) || s.some((r) => typeof r != "string"))
|
|
196
|
+
throw new Error(`接口 ${b} 字段 ${e} 无效`);
|
|
197
|
+
return [...s];
|
|
198
|
+
}, tt = (t) => {
|
|
199
|
+
if (!Array.isArray(t)) throw new Error(`接口 ${a} 字段 data 无效`);
|
|
200
|
+
return t.map(Z);
|
|
201
|
+
}, dt = (t, e) => {
|
|
202
|
+
const s = e === "/" ? "" : e;
|
|
203
|
+
return {
|
|
204
|
+
async reportBehaviorEvents(r) {
|
|
205
|
+
r.length !== 0 && await t.post(W, { events: r });
|
|
206
|
+
},
|
|
207
|
+
async reportVisits(r) {
|
|
208
|
+
r.length !== 0 && await t.post(k, { pageViews: r });
|
|
209
|
+
},
|
|
210
|
+
startLogin(r, o, c) {
|
|
211
|
+
const y = M(r, o), d = c != null && c.entry && q.test(c.entry) ? `&entry=${c.entry}` : "";
|
|
212
|
+
return `${s}${m}/startLogin?returnPath=${encodeURIComponent(y)}${d}`;
|
|
213
|
+
},
|
|
214
|
+
async getSession() {
|
|
215
|
+
return D(p(u, await t.get(u)));
|
|
216
|
+
},
|
|
217
|
+
async getSpaces() {
|
|
218
|
+
return H(p(i, await t.get(i)));
|
|
219
|
+
},
|
|
220
|
+
async switchSpace(r) {
|
|
221
|
+
const o = p(C, await t.post(C, { globalSpaceId: r }));
|
|
222
|
+
return D(o);
|
|
223
|
+
},
|
|
224
|
+
async getProfile() {
|
|
225
|
+
return j(p(E, await t.get(E)));
|
|
226
|
+
},
|
|
227
|
+
async getWallet() {
|
|
228
|
+
return K(p(h, await t.get(h)));
|
|
229
|
+
},
|
|
230
|
+
async getEntitlements() {
|
|
231
|
+
const r = p(P, await t.get(P));
|
|
232
|
+
if (!Array.isArray(r)) throw new Error(`接口 ${P} 字段 data 无效`);
|
|
233
|
+
return r.map((o, c) => _(o, P, `entitlements[${c}]`));
|
|
234
|
+
},
|
|
235
|
+
async getSubscription() {
|
|
236
|
+
return Y(p(f, await t.get(f)));
|
|
237
|
+
},
|
|
238
|
+
async getPlans() {
|
|
239
|
+
return tt(p(a, await t.get(a)));
|
|
240
|
+
},
|
|
241
|
+
async logout() {
|
|
242
|
+
const r = p($, await t.post($));
|
|
243
|
+
return { endSessionUrl: B(r) };
|
|
244
|
+
},
|
|
245
|
+
async getShownPrompts(r) {
|
|
246
|
+
const o = await t.get(b, { params: { keys: r.join(",") } });
|
|
247
|
+
return L(p(b, o), "shown");
|
|
248
|
+
},
|
|
249
|
+
async claimShownPrompts(r) {
|
|
250
|
+
const o = await t.post(b, { keys: [...r] });
|
|
251
|
+
return L(p(b, o), "claimed");
|
|
252
|
+
}
|
|
253
|
+
};
|
|
254
|
+
}, mt = async (t) => {
|
|
255
|
+
let e = await t.getSession();
|
|
256
|
+
const s = await t.getSpaces();
|
|
257
|
+
if (s.activeSpaceId !== e.activeSpaceId && (e = await t.getSession()), s.activeSpaceId !== e.activeSpaceId)
|
|
258
|
+
throw new Error("产品会话与统一空间上下文不一致");
|
|
259
|
+
return { session: e, spaces: s.spaces };
|
|
260
|
+
}, pt = (t) => t == null || !Number.isFinite(t) ? "暂无" : t >= 1e8 ? `${(Math.floor(t / 1e7) / 10).toFixed(1)}亿` : t >= 1e4 ? `${(Math.floor(t / 1e3) / 10).toFixed(1)}万` : t.toLocaleString("zh-CN"), ft = (t) => t.toLocaleString("zh-CN", { maximumFractionDigits: 0 }), gt = (t) => t > 0 && t < 0.01 ? "<0.01" : t.toLocaleString("zh-CN", { maximumFractionDigits: 2 }), wt = (t) => t ? `¥${(t / 100).toLocaleString("zh-CN", { minimumFractionDigits: 2, maximumFractionDigits: 2 })}` : "暂无", ht = (t) => {
|
|
261
|
+
if (t === void 0 || t <= 0) return "";
|
|
262
|
+
const e = Math.floor(t / 60), s = Math.floor(t % 60);
|
|
263
|
+
return `${e}:${String(s).padStart(2, "0")}`;
|
|
264
|
+
}, yt = (t) => {
|
|
265
|
+
if (t === void 0 || t <= 0) return "暂无";
|
|
266
|
+
const e = Math.floor(t / 3600), s = Math.floor(t % 3600 / 60), r = t % 60;
|
|
267
|
+
return e > 0 ? `${e}小时${s}分` : s > 0 ? `${s}分${r}秒` : `${r}秒`;
|
|
268
|
+
}, St = (t) => {
|
|
269
|
+
const e = new Date(t);
|
|
270
|
+
return Number.isNaN(e.getTime()) ? "暂无" : new Intl.DateTimeFormat("zh-CN", { dateStyle: "short", timeStyle: "short" }).format(e);
|
|
271
|
+
}, bt = (t) => {
|
|
272
|
+
if (!t) return "长期有效";
|
|
273
|
+
const e = new Date(t);
|
|
274
|
+
return Number.isNaN(e.getTime()) ? "暂无" : new Intl.DateTimeFormat("zh-CN", { dateStyle: "medium" }).format(e);
|
|
275
|
+
}, et = () => ({
|
|
276
|
+
session: null,
|
|
277
|
+
spaces: [],
|
|
278
|
+
bootstrapped: !1,
|
|
279
|
+
serviceUnavailable: !1
|
|
280
|
+
}), Pt = () => {
|
|
281
|
+
let t = et();
|
|
282
|
+
const e = /* @__PURE__ */ new Set(), s = (r) => {
|
|
283
|
+
t = r, e.forEach((o) => o());
|
|
284
|
+
};
|
|
285
|
+
return {
|
|
286
|
+
subscribe(r) {
|
|
287
|
+
return e.add(r), () => e.delete(r);
|
|
288
|
+
},
|
|
289
|
+
getState: () => t,
|
|
290
|
+
getCsrfToken: () => {
|
|
291
|
+
var r;
|
|
292
|
+
return ((r = t.session) == null ? void 0 : r.csrfToken) ?? null;
|
|
293
|
+
},
|
|
294
|
+
setContext(r) {
|
|
295
|
+
s({ session: r.session, spaces: [...r.spaces], bootstrapped: !0, serviceUnavailable: !1 });
|
|
296
|
+
},
|
|
297
|
+
setBootstrapping() {
|
|
298
|
+
s({ ...t, bootstrapped: !1, serviceUnavailable: !1 });
|
|
299
|
+
},
|
|
300
|
+
clear(r = {}) {
|
|
301
|
+
s({ session: null, spaces: [], bootstrapped: !0, serviceUnavailable: r.unavailable ?? !1 });
|
|
302
|
+
}
|
|
303
|
+
};
|
|
304
|
+
}, R = x(null), $t = R.Provider, rt = () => {
|
|
305
|
+
const t = z(R);
|
|
306
|
+
if (!t) throw new Error("AuthStoreProvider 尚未初始化");
|
|
307
|
+
return t;
|
|
308
|
+
}, Et = () => {
|
|
309
|
+
const t = rt();
|
|
310
|
+
return F(t.subscribe, t.getState, t.getState);
|
|
311
|
+
}, Nt = (t) => t instanceof Error && t.message.trim() ? t.message : "请稍后重试;如问题持续,请联系管理员。", It = (t, e) => O(t).status === e, At = (t) => {
|
|
312
|
+
const { category: e, status: s } = O(t);
|
|
313
|
+
return e === "network" || e === "timeout" || s === 502 || s === 503 || s === 504;
|
|
314
|
+
}, v = "24city.console.logout-at", st = 15e3;
|
|
315
|
+
let w = null;
|
|
316
|
+
const nt = () => {
|
|
317
|
+
try {
|
|
318
|
+
return Number(window.localStorage.getItem(v) ?? Number.NaN);
|
|
319
|
+
} catch {
|
|
320
|
+
return Number.NaN;
|
|
321
|
+
}
|
|
322
|
+
};
|
|
323
|
+
function Tt(t = Date.now()) {
|
|
324
|
+
try {
|
|
325
|
+
window.localStorage.setItem(v, String(t));
|
|
326
|
+
} catch {
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
function ot() {
|
|
330
|
+
try {
|
|
331
|
+
window.localStorage.removeItem(v);
|
|
332
|
+
} catch {
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
function vt() {
|
|
336
|
+
w = "leaving";
|
|
337
|
+
}
|
|
338
|
+
function Ct() {
|
|
339
|
+
return w === "leaving";
|
|
340
|
+
}
|
|
341
|
+
function Dt(t = Date.now()) {
|
|
342
|
+
if (w === "leaving") return !1;
|
|
343
|
+
const e = t - nt();
|
|
344
|
+
return e >= 0 && e < st && (w = "logged-out"), w === "logged-out";
|
|
345
|
+
}
|
|
346
|
+
function Lt() {
|
|
347
|
+
return w === "logged-out";
|
|
348
|
+
}
|
|
349
|
+
function Ot() {
|
|
350
|
+
w === "logged-out" && (w = null);
|
|
351
|
+
}
|
|
352
|
+
function Ut() {
|
|
353
|
+
w = null, ot();
|
|
354
|
+
}
|
|
355
|
+
export {
|
|
356
|
+
$t as A,
|
|
357
|
+
l as B,
|
|
358
|
+
n as C,
|
|
359
|
+
M as D,
|
|
360
|
+
Nt as E,
|
|
361
|
+
p as F,
|
|
362
|
+
Tt as a,
|
|
363
|
+
Pt as b,
|
|
364
|
+
dt as c,
|
|
365
|
+
Lt as d,
|
|
366
|
+
Ut as e,
|
|
367
|
+
mt as f,
|
|
368
|
+
rt as g,
|
|
369
|
+
gt as h,
|
|
370
|
+
Ct as i,
|
|
371
|
+
ht as j,
|
|
372
|
+
bt as k,
|
|
373
|
+
vt as l,
|
|
374
|
+
St as m,
|
|
375
|
+
Dt as n,
|
|
376
|
+
yt as o,
|
|
377
|
+
pt as p,
|
|
378
|
+
ft as q,
|
|
379
|
+
Ot as r,
|
|
380
|
+
wt as s,
|
|
381
|
+
It as t,
|
|
382
|
+
Et as u,
|
|
383
|
+
lt as v,
|
|
384
|
+
ot as w,
|
|
385
|
+
ut as x,
|
|
386
|
+
At as y,
|
|
387
|
+
g as z
|
|
388
|
+
};
|
|
@@ -2,8 +2,8 @@ import { jsx as t } from "react/jsx-runtime";
|
|
|
2
2
|
import { QueryClient as c, QueryClientProvider as l } from "@tanstack/react-query";
|
|
3
3
|
import { useMemo as i } from "react";
|
|
4
4
|
import { CustomerRuntimeConfigProvider as f } from "@24city/web-runtime/runtime-config-provider";
|
|
5
|
-
import { A as d } from "./auth-provider-
|
|
6
|
-
import { b as m, A as p } from "./logout-signal-
|
|
5
|
+
import { A as d } from "./auth-provider-DAxku5aX.js";
|
|
6
|
+
import { b as m, A as p } from "./logout-signal-XyvlxcEc.js";
|
|
7
7
|
import { U as C, E as y } from "./unsupported-browser-Dwq1mNRy.js";
|
|
8
8
|
import { C as h } from "./context-CaVim6ZO.js";
|
|
9
9
|
import { parseCustomerRuntimeConfig as R, loadCustomerRuntimeConfig as v } from "@24city/web-runtime/core/runtime-config";
|