@gengage/assistant-fe 0.4.0 → 0.4.2
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/chat/types.d.ts +12 -0
- package/dist/{chat-ChY1FmRk.js → chat-Ci4ZA37X.js} +134 -131
- package/dist/chat.iife.js +2 -2
- package/dist/chat.js +1 -1
- package/dist/common/client.d.ts +6 -1
- package/dist/common/config-schema.d.ts +1 -1
- package/dist/common/overlay.d.ts +6 -0
- package/dist/{common-B4si3_SB.js → common-DUMmqYxM.js} +112 -101
- package/dist/common.js +3 -3
- package/dist/index.js +3 -3
- package/dist/{native-webview-DnuKAW7i.js → native-webview-v2HYw_9X.js} +74 -75
- package/dist/native.iife.js +2 -2
- package/dist/native.js +1 -1
- package/package.json +1 -1
package/dist/chat.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as e, f as t, i as r, l as s, m as n, n as i, o as l, p as C, r as c, s as h, t as o } from "./chat-
|
|
1
|
+
import { c as e, f as t, i as r, l as s, m as n, n as i, o as l, p as C, r as c, s as h, t as o } from "./chat-Ci4ZA37X.js";
|
|
2
2
|
export {
|
|
3
3
|
t as CHAT_SCROLL_ELEMENT_ID,
|
|
4
4
|
l as ChatPresentationState,
|
package/dist/common/client.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AccountRuntimeConfig } from './config-schema.js';
|
|
2
|
-
import { OverlayWidgetsController } from './overlay.js';
|
|
2
|
+
import { OverlayWidgetsController, OverlayWidgetsOptions } from './overlay.js';
|
|
3
3
|
import { PageContext } from './types.js';
|
|
4
4
|
export interface HostActions {
|
|
5
5
|
onAddToCart?: (params: import('./types.js').AddToCartParams) => void;
|
|
@@ -19,4 +19,9 @@ export interface GengageClientOptions {
|
|
|
19
19
|
hostActions?: HostActions;
|
|
20
20
|
preflight?: boolean;
|
|
21
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Maps validated account runtime config to overlay widget options.
|
|
24
|
+
* Exported for unit tests.
|
|
25
|
+
*/
|
|
26
|
+
export declare function mapAccountRuntimeConfigToOverlayOptions(config: AccountRuntimeConfig, hostActions?: HostActions, initialContext?: Partial<PageContext>): OverlayWidgetsOptions;
|
|
22
27
|
export declare function initGengageClient(options: GengageClientOptions): Promise<OverlayWidgetsController>;
|
|
@@ -23,7 +23,7 @@ export declare const AccountRuntimeConfigSchema: z.ZodObject<{
|
|
|
23
23
|
qna: z.ZodDefault<z.ZodObject<{
|
|
24
24
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
25
25
|
}, z.core.$strip>>;
|
|
26
|
-
simrel: z.
|
|
26
|
+
simrel: z.ZodOptional<z.ZodObject<{
|
|
27
27
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
28
28
|
}, z.core.$strip>>;
|
|
29
29
|
simbut: z.ZodDefault<z.ZodObject<{
|
package/dist/common/overlay.d.ts
CHANGED
|
@@ -29,6 +29,12 @@ export interface OverlayChatOptions {
|
|
|
29
29
|
renderer?: ChatWidgetConfig['renderer'];
|
|
30
30
|
/** When true, allow full product details in the assistant side panel; default is chat summary only. */
|
|
31
31
|
productDetailsExtended?: boolean;
|
|
32
|
+
/** Hides percent discount badges on chat product cards / details when true. */
|
|
33
|
+
hideProductDiscountBadge?: ChatWidgetConfig['hideProductDiscountBadge'];
|
|
34
|
+
/** When true, hides user reviews (ReviewHighlights, review chip, AITopPicks reviewHighlight). */
|
|
35
|
+
hideUserReviews?: ChatWidgetConfig['hideUserReviews'];
|
|
36
|
+
/** When true, hides in-stock / out-of-stock labels on product cards. */
|
|
37
|
+
hideStockStatus?: ChatWidgetConfig['hideStockStatus'];
|
|
32
38
|
isDemoWebsite?: ChatWidgetConfig['isDemoWebsite'];
|
|
33
39
|
/** Pill launcher — forwarded to `chat.pillLauncher` (applied inside GengageChat). */
|
|
34
40
|
pillLauncher?: ChatWidgetConfig['pillLauncher'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { f as u } from "./schemas-JFGRVTVz.js";
|
|
2
|
-
import { h, l as f } from "./native-webview-
|
|
2
|
+
import { h, l as f } from "./native-webview-v2HYw_9X.js";
|
|
3
3
|
var m = {
|
|
4
4
|
enabled: !0,
|
|
5
5
|
endpoint: "/analytics",
|
|
@@ -39,8 +39,8 @@ var m = {
|
|
|
39
39
|
}
|
|
40
40
|
flush() {
|
|
41
41
|
if (!this.config.enabled || this.queue.length === 0) return;
|
|
42
|
-
const e = this.queue.splice(0, this.config.batchSize), t = this.buildTransportBody(e),
|
|
43
|
-
this.send(
|
|
42
|
+
const e = this.queue.splice(0, this.config.batchSize), t = this.buildTransportBody(e), i = l(this.config.endpoint, this.config.middlewareUrl);
|
|
43
|
+
this.send(i, t);
|
|
44
44
|
}
|
|
45
45
|
flushAll() {
|
|
46
46
|
for (; this.queue.length > 0; ) this.flush();
|
|
@@ -62,18 +62,18 @@ var m = {
|
|
|
62
62
|
}
|
|
63
63
|
send(e, t) {
|
|
64
64
|
try {
|
|
65
|
-
const
|
|
66
|
-
if (this.config.useBeacon && this.config.auth.mode !== "x-api-key-header" && this.config.auth.mode !== "bearer-header" &&
|
|
67
|
-
const
|
|
68
|
-
navigator.sendBeacon(e,
|
|
65
|
+
const i = JSON.stringify(t);
|
|
66
|
+
if (this.config.useBeacon && this.config.auth.mode !== "x-api-key-header" && this.config.auth.mode !== "bearer-header" && c()) {
|
|
67
|
+
const o = new Blob([i], { type: "application/json" });
|
|
68
|
+
navigator.sendBeacon(e, o);
|
|
69
69
|
return;
|
|
70
70
|
}
|
|
71
71
|
if (typeof fetch > "u") return;
|
|
72
|
-
const
|
|
73
|
-
this.config.auth.mode === "x-api-key-header" && this.config.auth.key && (
|
|
72
|
+
const n = { "Content-Type": "application/json" };
|
|
73
|
+
this.config.auth.mode === "x-api-key-header" && this.config.auth.key && (n[this.config.auth.headerName] = this.config.auth.key), this.config.auth.mode === "bearer-header" && this.config.auth.key && (n.Authorization = `Bearer ${this.config.auth.key}`), fetch(e, {
|
|
74
74
|
method: "POST",
|
|
75
|
-
headers:
|
|
76
|
-
body:
|
|
75
|
+
headers: n,
|
|
76
|
+
body: i,
|
|
77
77
|
keepalive: !0
|
|
78
78
|
}).catch(() => {
|
|
79
79
|
});
|
|
@@ -82,14 +82,14 @@ var m = {
|
|
|
82
82
|
}
|
|
83
83
|
flushAllSync() {
|
|
84
84
|
if (!this.config.enabled) return;
|
|
85
|
-
const e =
|
|
85
|
+
const e = l(this.config.endpoint, this.config.middlewareUrl);
|
|
86
86
|
for (; this.queue.length > 0; ) {
|
|
87
|
-
const t = this.queue.splice(0, this.config.batchSize),
|
|
87
|
+
const t = this.queue.splice(0, this.config.batchSize), i = this.buildTransportBody(t);
|
|
88
88
|
try {
|
|
89
|
-
const
|
|
90
|
-
if (
|
|
91
|
-
const
|
|
92
|
-
navigator.sendBeacon(e,
|
|
89
|
+
const n = JSON.stringify(i);
|
|
90
|
+
if (c()) {
|
|
91
|
+
const o = new Blob([n], { type: "application/json" });
|
|
92
|
+
navigator.sendBeacon(e, o);
|
|
93
93
|
}
|
|
94
94
|
} catch {
|
|
95
95
|
}
|
|
@@ -111,22 +111,22 @@ function p(e) {
|
|
|
111
111
|
};
|
|
112
112
|
return e.view_id !== void 0 && (t.view_id = e.view_id), e.user_id !== void 0 && (t.user_id = e.user_id), e.widget !== void 0 && (t.widget = e.widget), e.page_type !== void 0 && (t.page_type = e.page_type), e.sku !== void 0 && (t.sku = e.sku), t;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function l(e, t) {
|
|
115
115
|
return /^https?:\/\//i.test(e) ? e : `${u(t)}${e.startsWith("/") ? e : `/${e}`}`;
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function c() {
|
|
118
118
|
return typeof navigator < "u" && typeof navigator.sendBeacon == "function";
|
|
119
119
|
}
|
|
120
120
|
var E = "tr";
|
|
121
|
-
function
|
|
121
|
+
function A(e) {
|
|
122
122
|
return {
|
|
123
123
|
ACCOUNT_ID: e.accountId,
|
|
124
124
|
MIDDLEWARE_URL: e.middlewareUrl,
|
|
125
125
|
LOCALE: e.locale ?? "tr"
|
|
126
126
|
};
|
|
127
127
|
}
|
|
128
|
-
function
|
|
129
|
-
const
|
|
128
|
+
function P(e, t = {}) {
|
|
129
|
+
const i = {
|
|
130
130
|
accountId: e.accountId,
|
|
131
131
|
middlewareUrl: e.middlewareUrl,
|
|
132
132
|
session: { sessionId: e.sessionId },
|
|
@@ -134,10 +134,10 @@ function A(e, t = {}) {
|
|
|
134
134
|
locale: e.locale ?? "tr",
|
|
135
135
|
...t
|
|
136
136
|
};
|
|
137
|
-
return e.theme !== void 0 && (
|
|
137
|
+
return e.theme !== void 0 && (i.theme = e.theme), i;
|
|
138
138
|
}
|
|
139
139
|
function L(e, t = {}) {
|
|
140
|
-
const
|
|
140
|
+
const i = {
|
|
141
141
|
accountId: e.accountId,
|
|
142
142
|
middlewareUrl: e.middlewareUrl,
|
|
143
143
|
session: { sessionId: e.sessionId },
|
|
@@ -148,10 +148,10 @@ function L(e, t = {}) {
|
|
|
148
148
|
mountTarget: e.mountTarget,
|
|
149
149
|
...t
|
|
150
150
|
};
|
|
151
|
-
return e.theme !== void 0 && (
|
|
151
|
+
return e.theme !== void 0 && (i.theme = e.theme), i;
|
|
152
152
|
}
|
|
153
153
|
function q(e, t = {}) {
|
|
154
|
-
const
|
|
154
|
+
const i = {
|
|
155
155
|
accountId: e.accountId,
|
|
156
156
|
middlewareUrl: e.middlewareUrl,
|
|
157
157
|
session: { sessionId: e.sessionId },
|
|
@@ -159,9 +159,9 @@ function q(e, t = {}) {
|
|
|
159
159
|
mountTarget: e.mountTarget,
|
|
160
160
|
...t
|
|
161
161
|
};
|
|
162
|
-
return e.theme !== void 0 && (
|
|
162
|
+
return e.theme !== void 0 && (i.theme = e.theme), i;
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function O(e, t = {}) {
|
|
165
165
|
return {
|
|
166
166
|
enabled: !0,
|
|
167
167
|
middlewareUrl: e,
|
|
@@ -171,53 +171,61 @@ function B(e, t = {}) {
|
|
|
171
171
|
...t
|
|
172
172
|
};
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function w(e) {
|
|
175
175
|
try {
|
|
176
176
|
return document.querySelector(e), !0;
|
|
177
177
|
} catch {
|
|
178
178
|
return !1;
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
|
-
function
|
|
182
|
-
const
|
|
183
|
-
["qna",
|
|
184
|
-
["simrel",
|
|
185
|
-
["simbut",
|
|
186
|
-
["chat",
|
|
181
|
+
function v(e, t) {
|
|
182
|
+
const i = [], n = e.mounts, o = [
|
|
183
|
+
["qna", n.qna],
|
|
184
|
+
["simrel", n.simrel],
|
|
185
|
+
["simbut", n.simbut],
|
|
186
|
+
["chat", n.chat]
|
|
187
187
|
];
|
|
188
|
-
for (const [
|
|
188
|
+
for (const [s, a] of o)
|
|
189
189
|
if (a !== void 0) {
|
|
190
|
-
if (
|
|
191
|
-
|
|
190
|
+
if (s === "simrel" && e.widgets.simrel === void 0) {
|
|
191
|
+
i.push({
|
|
192
|
+
code: "SIMREL_MOUNT_IGNORED",
|
|
193
|
+
message: "[gengage preflight] mounts.simrel is set but widgets.simrel is not declared — SimRel will not initialize. Add widgets.simrel: { enabled: true } to enable it.",
|
|
194
|
+
severity: "warn"
|
|
195
|
+
});
|
|
196
|
+
continue;
|
|
197
|
+
}
|
|
198
|
+
if (!w(a)) {
|
|
199
|
+
i.push({
|
|
192
200
|
code: "INVALID_SELECTOR",
|
|
193
|
-
message: `[gengage preflight] ${
|
|
201
|
+
message: `[gengage preflight] ${s} mount selector is invalid CSS: "${a}"`,
|
|
194
202
|
severity: "error"
|
|
195
203
|
});
|
|
196
204
|
continue;
|
|
197
205
|
}
|
|
198
|
-
document.querySelector(a) ||
|
|
206
|
+
document.querySelector(a) || i.push({
|
|
199
207
|
code: "MOUNT_NOT_FOUND",
|
|
200
|
-
message: `[gengage preflight] ${
|
|
208
|
+
message: `[gengage preflight] ${s} mount target not found: "${a}" — widget will skip or wait for DOM`,
|
|
201
209
|
severity: "warn"
|
|
202
210
|
});
|
|
203
211
|
}
|
|
204
|
-
if (e.widgets.simbut.enabled &&
|
|
205
|
-
const
|
|
206
|
-
document.querySelector(
|
|
212
|
+
if (e.widgets.simbut.enabled && n.simbut === void 0) {
|
|
213
|
+
const s = "#gengage-simbut";
|
|
214
|
+
document.querySelector(s) || i.push({
|
|
207
215
|
code: "SIMBUT_MOUNT_REQUIRED",
|
|
208
|
-
message: `[gengage preflight] SimBut is enabled but no mount target is configured. Set mounts.simbut to your product image wrapper selector (e.g. "#product-gallery"). The default "${
|
|
216
|
+
message: `[gengage preflight] SimBut is enabled but no mount target is configured. Set mounts.simbut to your product image wrapper selector (e.g. "#product-gallery"). The default "${s}" was not found in the DOM.`,
|
|
209
217
|
severity: "error"
|
|
210
218
|
});
|
|
211
219
|
}
|
|
212
|
-
const
|
|
213
|
-
if (window[
|
|
220
|
+
const r = e.gtm.idempotencyKey;
|
|
221
|
+
if (window[r] !== void 0 && i.push({
|
|
214
222
|
code: "DUPLICATE_IDEMPOTENCY",
|
|
215
|
-
message: `[gengage preflight] window["${
|
|
223
|
+
message: `[gengage preflight] window["${r}"] already exists — widgets may have already initialized`,
|
|
216
224
|
severity: "warn"
|
|
217
225
|
}), !t?.skipCspCheck) {
|
|
218
|
-
let
|
|
226
|
+
let s = !1;
|
|
219
227
|
const a = (d) => {
|
|
220
|
-
d.blockedURI && e.middlewareUrl.startsWith(d.blockedURI) && (
|
|
228
|
+
d.blockedURI && e.middlewareUrl.startsWith(d.blockedURI) && (s = !0);
|
|
221
229
|
};
|
|
222
230
|
document.addEventListener("securitypolicyviolation", a);
|
|
223
231
|
try {
|
|
@@ -227,58 +235,61 @@ function w(e, t) {
|
|
|
227
235
|
}).catch(() => {
|
|
228
236
|
});
|
|
229
237
|
} catch {
|
|
230
|
-
|
|
238
|
+
s = !0;
|
|
231
239
|
}
|
|
232
|
-
document.removeEventListener("securitypolicyviolation", a),
|
|
240
|
+
document.removeEventListener("securitypolicyviolation", a), s && i.push({
|
|
233
241
|
code: "CSP_BLOCKED",
|
|
234
242
|
message: `[gengage preflight] middleware URL may be blocked by Content-Security-Policy: "${e.middlewareUrl}". Add it to connect-src.`,
|
|
235
243
|
severity: "warn"
|
|
236
244
|
});
|
|
237
245
|
}
|
|
238
|
-
for (const
|
|
246
|
+
for (const s of i) s.severity === "error" ? console.error(s.message) : console.warn(s.message);
|
|
239
247
|
return {
|
|
240
|
-
ok:
|
|
241
|
-
warnings:
|
|
248
|
+
ok: i.every((s) => s.severity !== "error"),
|
|
249
|
+
warnings: i
|
|
242
250
|
};
|
|
243
251
|
}
|
|
244
252
|
function b(e) {
|
|
245
253
|
const t = h(e);
|
|
246
254
|
if (!t.success) {
|
|
247
|
-
const
|
|
248
|
-
throw new Error(`[gengage] Invalid runtime config: ${
|
|
255
|
+
const i = t.error.issues.map((n) => `${n.path.join(".")}: ${n.message}`).join("; ");
|
|
256
|
+
throw new Error(`[gengage] Invalid runtime config: ${i}`);
|
|
249
257
|
}
|
|
250
258
|
return t.data;
|
|
251
259
|
}
|
|
252
|
-
function T(e, t,
|
|
253
|
-
const
|
|
260
|
+
function T(e, t, i) {
|
|
261
|
+
const n = {
|
|
254
262
|
accountId: e.accountId,
|
|
255
263
|
middlewareUrl: e.middlewareUrl,
|
|
256
264
|
idempotencyKey: e.gtm.idempotencyKey
|
|
257
265
|
};
|
|
258
|
-
return e.locale !== void 0 && (
|
|
266
|
+
return e.locale !== void 0 && (n.locale = e.locale), i !== void 0 && (n.pageContext = i, i.sku !== void 0 && (n.sku = i.sku)), n.chat = { enabled: e.widgets.chat.enabled }, e.mounts.chat !== void 0 && (n.chat.mountTarget = e.mounts.chat), n.qna = { enabled: e.widgets.qna.enabled }, e.mounts.qna !== void 0 && (n.qna.mountTarget = e.mounts.qna), e.widgets.simrel !== void 0 && (n.simrel = {
|
|
267
|
+
enabled: e.widgets.simrel.enabled,
|
|
268
|
+
...e.mounts.simrel !== void 0 ? { mountTarget: e.mounts.simrel } : {}
|
|
269
|
+
}), n.simbut = { enabled: e.widgets.simbut.enabled }, e.mounts.simbut !== void 0 && (n.simbut.mountTarget = e.mounts.simbut), t?.onAddToCart !== void 0 && (n.onAddToCart = t.onAddToCart), t?.onProductNavigate !== void 0 && (n.onProductNavigate = t.onProductNavigate), t?.onFindSimilar !== void 0 && (n.simbut.onFindSimilar = t.onFindSimilar), t?.onScriptCall !== void 0 && (n.onScriptCall = t.onScriptCall), n;
|
|
259
270
|
}
|
|
260
|
-
async function
|
|
271
|
+
async function R(e) {
|
|
261
272
|
const t = b(e.runtimeConfig);
|
|
262
273
|
if (e.preflight !== !1) {
|
|
263
|
-
const
|
|
264
|
-
if (!
|
|
265
|
-
const
|
|
266
|
-
throw new Error(`[gengage] Preflight failed: ${
|
|
274
|
+
const o = v(t);
|
|
275
|
+
if (!o.ok) {
|
|
276
|
+
const r = o.warnings.filter((s) => s.severity === "error");
|
|
277
|
+
throw new Error(`[gengage] Preflight failed: ${r.map((s) => s.message).join("; ")}`);
|
|
267
278
|
}
|
|
268
279
|
}
|
|
269
|
-
const
|
|
280
|
+
const i = e.contextResolver?.(), n = await f(T(t, e.hostActions, i));
|
|
270
281
|
if (e.contextResolver !== void 0) {
|
|
271
|
-
const
|
|
272
|
-
const a =
|
|
273
|
-
|
|
282
|
+
const o = e.contextResolver, r = () => {
|
|
283
|
+
const a = o();
|
|
284
|
+
n.updateContext(a);
|
|
274
285
|
};
|
|
275
|
-
window.addEventListener("gengage:context:update",
|
|
276
|
-
const
|
|
277
|
-
|
|
278
|
-
window.removeEventListener("gengage:context:update",
|
|
286
|
+
window.addEventListener("gengage:context:update", r);
|
|
287
|
+
const s = n.destroy.bind(n);
|
|
288
|
+
n.destroy = () => {
|
|
289
|
+
window.removeEventListener("gengage:context:update", r), s();
|
|
279
290
|
};
|
|
280
291
|
}
|
|
281
|
-
return
|
|
292
|
+
return n;
|
|
282
293
|
}
|
|
283
294
|
var k = [
|
|
284
295
|
{
|
|
@@ -328,49 +339,49 @@ var k = [
|
|
|
328
339
|
]
|
|
329
340
|
}
|
|
330
341
|
];
|
|
331
|
-
function
|
|
332
|
-
const
|
|
333
|
-
if (!
|
|
334
|
-
const
|
|
335
|
-
for (const
|
|
336
|
-
if (!(
|
|
342
|
+
function I(e, t) {
|
|
343
|
+
const i = t ?? (typeof window < "u" ? new URL(window.location.href) : null);
|
|
344
|
+
if (!i) return "other";
|
|
345
|
+
const n = e ?? k, o = i.pathname;
|
|
346
|
+
for (const r of n)
|
|
347
|
+
if (!(r.urlPatterns && !r.urlPatterns.some((s) => {
|
|
337
348
|
try {
|
|
338
|
-
return new RegExp(
|
|
349
|
+
return new RegExp(s, "i").test(o);
|
|
339
350
|
} catch {
|
|
340
351
|
return !1;
|
|
341
352
|
}
|
|
342
|
-
})) && !(
|
|
343
|
-
return
|
|
353
|
+
})) && !(r.queryParam && !i.searchParams.has(r.queryParam)) && !(r.selector && typeof document < "u" && !document.querySelector(r.selector)))
|
|
354
|
+
return r.pageType;
|
|
344
355
|
return "other";
|
|
345
356
|
}
|
|
346
|
-
function
|
|
357
|
+
function S(e) {
|
|
347
358
|
const t = e ?? (typeof window < "u" ? new URL(window.location.href) : null);
|
|
348
359
|
if (!t) return;
|
|
349
|
-
const
|
|
350
|
-
if (
|
|
351
|
-
const
|
|
352
|
-
if (
|
|
360
|
+
const i = t.pathname, n = i.match(/\/(?:p|urun|product)\/([^/?#]+)/i);
|
|
361
|
+
if (n?.[1]) return n[1];
|
|
362
|
+
const o = i.match(/-p-(\d+)/i);
|
|
363
|
+
if (o?.[1]) return o[1];
|
|
353
364
|
}
|
|
354
|
-
function
|
|
355
|
-
const t =
|
|
365
|
+
function D(e) {
|
|
366
|
+
const t = I(e), i = { pageType: t };
|
|
356
367
|
if (t === "pdp") {
|
|
357
|
-
const
|
|
358
|
-
|
|
368
|
+
const n = S();
|
|
369
|
+
n && (i.sku = n);
|
|
359
370
|
}
|
|
360
|
-
return typeof window < "u" && (
|
|
371
|
+
return typeof window < "u" && (i.url = window.location.href), i;
|
|
361
372
|
}
|
|
362
373
|
export {
|
|
363
|
-
|
|
364
|
-
|
|
374
|
+
v as a,
|
|
375
|
+
O as c,
|
|
365
376
|
q as d,
|
|
366
377
|
y as f,
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
378
|
+
R as i,
|
|
379
|
+
P as l,
|
|
380
|
+
I as n,
|
|
370
381
|
E as o,
|
|
371
382
|
U as p,
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
383
|
+
S as r,
|
|
384
|
+
A as s,
|
|
385
|
+
D as t,
|
|
375
386
|
L as u
|
|
376
387
|
};
|
package/dist/common.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { C as a, S as t, b as s, d as r, f as n, g as i, h as o, m as c, p as m, v as l, w as g, x as d, y as u } from "./schemas-JFGRVTVz.js";
|
|
2
2
|
import { $ as E, G as S, J as h, K as v, Q as y, V as f, X as C, Y as A, Z as T, _ as w, a as U, b as W, c as I, d as P, et as b, f as D, g as R, h as k, i as G, it as O, l as N, m as _, n as x, nt as L, p as M, q as z, rt as B, s as H, tt as K, u as F, v as V, y as Q } from "./locale-MM0U5eeR.js";
|
|
3
|
-
import { a as Z, d as J, h as X, u as Y } from "./chat-
|
|
3
|
+
import { a as Z, d as J, h as X, u as Y } from "./chat-Ci4ZA37X.js";
|
|
4
4
|
import { n as j, t as ee } from "./connection-warning-n88bjkqL.js";
|
|
5
|
-
import { a as te, c as se, d as re, f as ne, h as ie, i as oe, l as ce, m as me, n as le, o as ge, p as de, r as ue, s as pe, u as Ee } from "./native-webview-
|
|
6
|
-
import { a as he, c as ve, d as ye, f as fe, i as Ce, l as Ae, n as Te, o as we, p as Ue, r as We, s as Ie, t as Pe, u as be } from "./common-
|
|
5
|
+
import { a as te, c as se, d as re, f as ne, h as ie, i as oe, l as ce, m as me, n as le, o as ge, p as de, r as ue, s as pe, u as Ee } from "./native-webview-v2HYw_9X.js";
|
|
6
|
+
import { a as he, c as ve, d as ye, f as fe, i as Ce, l as Ae, n as Te, o as we, p as Ue, r as We, s as Ie, t as Pe, u as be } from "./common-DUMmqYxM.js";
|
|
7
7
|
export {
|
|
8
8
|
Ee as AccountRuntimeConfigSchema,
|
|
9
9
|
re as AnalyticsAuthModeSchema,
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { C as a, b as t, d as s, f as i, w as n, x as r } from "./schemas-JFGRVTVz.js";
|
|
2
2
|
import { V as c, _ as m, b as l, d, f as g, g as p, l as u, p as f, u as S, v as C, y as h } from "./locale-MM0U5eeR.js";
|
|
3
|
-
import { a as y, c as A, d as I, h as R, l as T, n as W, s as w, t as D, u as E } from "./chat-
|
|
3
|
+
import { a as y, c as A, d as I, h as R, l as T, n as W, s as w, t as D, u as E } from "./chat-Ci4ZA37X.js";
|
|
4
4
|
import { t as N } from "./connection-warning-n88bjkqL.js";
|
|
5
5
|
import { a as P, i as G, n as _, o as k, t as Q } from "./qna-CQugVOHy.js";
|
|
6
6
|
import { a as L, i as x, n as B, o as M, t as F } from "./simrel-DjzpRZmZ.js";
|
|
7
7
|
import { n as H, t as K } from "./simbut-Cb5RfaAp.js";
|
|
8
|
-
import { a as Z, c as j, d as q, f as J, h as X, i as Y, l as $, m as ee, n as ae, o as te, p as se, r as ie, s as ne, u as re } from "./native-webview-
|
|
9
|
-
import { a as ce, c as me, d as le, i as de, l as ge, n as pe, o as ue, p as fe, r as Se, s as Ce, t as he, u as Ue } from "./common-
|
|
8
|
+
import { a as Z, c as j, d as q, f as J, h as X, i as Y, l as $, m as ee, n as ae, o as te, p as se, r as ie, s as ne, u as re } from "./native-webview-v2HYw_9X.js";
|
|
9
|
+
import { a as ce, c as me, d as le, i as de, l as ge, n as pe, o as ue, p as fe, r as Se, s as Ce, t as he, u as Ue } from "./common-DUMmqYxM.js";
|
|
10
10
|
export {
|
|
11
11
|
re as AccountRuntimeConfigSchema,
|
|
12
12
|
q as AnalyticsAuthModeSchema,
|