agent-embed-widget 0.0.1 → 0.0.3
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/agent-embed-widget.es.js +170 -124
- package/dist/agent-embed-widget.umd.js +4 -4
- package/package.json +2 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`@import "https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap";.thesys--widget{z-index:999;position:fixed}.thesys--tray-widget{width:50%;height:800px;bottom:0;right:0}.thesys--full-screen-widget{width:100%;height:100%;bottom:0;right:0}.thesys--widget-toggle{cursor:pointer;border-radius:50%;justify-content:center;align-items:center;width:56px;height:56px;display:flex;position:absolute;bottom:20px;right:20px}.thesys--widget-toggle-dark{color:#fff;background-color:#000}.thesys--widget-toggle-light{color:#000;background-color:#fff}.thesys--widget-window{border-radius:16px;width:100%;height:100%;position:absolute;overflow:hidden}.thesys--widget-titlebar{background:#191919;border-bottom:1px solid #292929;border-radius:16px 16px 0 0;justify-content:flex-end;align-items:center;width:100%;padding:12px 16px;display:flex}.thesys--widget-titlebar .close-button{appearance:none;cursor:pointer;color:#fff6;background:0 0;border:none;justify-content:center;align-items:center;display:flex}.thesys--full-screen-widget .thesys--widget-window{left:0}.thesys--tray-widget .thesys--widget-window{top:auto;bottom:84px;right:20px}.thesys--widget-frame{background:0 0;border:none;width:100%;height:100%}
|
|
1
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`@import "https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap";.thesys--widget{z-index:999;position:fixed}.thesys--tray-widget{width:50%;height:800px;max-height:calc(100vh - 100px);bottom:0;right:0}.thesys--full-screen-widget{width:100%;height:100%;bottom:0;right:0}.thesys--widget-toggle{cursor:pointer;appearance:none;border:none;border-radius:50%;justify-content:center;align-items:center;width:56px;height:56px;padding:0;display:flex;position:absolute;bottom:20px;right:20px}.thesys--widget-toggle-dark{color:#fff;background-color:#000}.thesys--widget-toggle-light{color:#000;background-color:#fff}.thesys--widget-window{border-radius:16px;width:100%;height:100%;position:absolute;overflow:hidden}.thesys--widget-titlebar{background:#191919;border-bottom:1px solid #292929;border-radius:16px 16px 0 0;justify-content:flex-end;align-items:center;width:100%;padding:12px 16px;display:flex}.thesys--widget-titlebar .close-button{appearance:none;cursor:pointer;color:#fff6;background:0 0;border:none;justify-content:center;align-items:center;display:flex}.thesys--full-screen-widget .thesys--widget-window{left:0}.thesys--tray-widget .thesys--widget-window{top:auto;bottom:84px;right:20px}.thesys--widget-frame{background:0 0;border:none;width:100%;height:100%;transition:opacity .2s ease-in-out}.thesys--widget-frame-loading{opacity:0}.thesys--widget-loader{z-index:1;border-radius:16px;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:absolute;top:0;left:0}.thesys--widget-loader-dark{background:#0a0a0a}.thesys--widget-loader-light{background:#fafafa}.thesys--widget-spinner{border:3px solid #0000;border-radius:50%;width:32px;height:32px;animation:.8s linear infinite thesys-spin}.thesys--widget-loader-dark .thesys--widget-spinner{border-color:#fff #ffffff4d #ffffff4d}.thesys--widget-loader-light .thesys--widget-spinner{border-color:#000 #0003 #0003}@keyframes thesys-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.thesys--widget-loading-text{-webkit-text-fill-color:transparent;background-size:200% 100%;-webkit-background-clip:text;background-clip:text;margin-top:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif;font-size:14px;font-weight:500;animation:1.5s ease-in-out infinite thesys-shimmer}.thesys--widget-loading-text-dark{background-image:linear-gradient(90deg,#fff6 0%,#ffffffe6 50%,#fff6 100%)}.thesys--widget-loading-text-light{background-image:linear-gradient(90deg,#0000004d 0%,#000c 50%,#0000004d 100%)}@keyframes thesys-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (max-width:768px){.thesys--tray-widget{width:100%;height:100%;bottom:0;right:0}}
|
|
2
2
|
/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();Object.create, Object.defineProperty, Object.getOwnPropertyDescriptor, Object.getOwnPropertyNames, Object.getPrototypeOf, Object.prototype.hasOwnProperty;
|
|
3
3
|
var __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), require_react_production = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
4
4
|
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.consumer"), s = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), f = Symbol.for("react.activity"), p = Symbol.iterator;
|
|
@@ -30,14 +30,14 @@ var __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t
|
|
|
30
30
|
var x = b.prototype = new y();
|
|
31
31
|
x.constructor = b, g(x, v.prototype), x.isPureReactComponent = !0;
|
|
32
32
|
var ee = Array.isArray;
|
|
33
|
-
function
|
|
34
|
-
var
|
|
33
|
+
function S() {}
|
|
34
|
+
var C = {
|
|
35
35
|
H: null,
|
|
36
36
|
A: null,
|
|
37
37
|
T: null,
|
|
38
38
|
S: null
|
|
39
|
-
},
|
|
40
|
-
function
|
|
39
|
+
}, te = Object.prototype.hasOwnProperty;
|
|
40
|
+
function ne(e, n, r) {
|
|
41
41
|
var i = r.ref;
|
|
42
42
|
return {
|
|
43
43
|
$$typeof: t,
|
|
@@ -47,10 +47,10 @@ var __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t
|
|
|
47
47
|
props: r
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
return
|
|
50
|
+
function re(e, t) {
|
|
51
|
+
return ne(e.type, t, e.props);
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function ie(e) {
|
|
54
54
|
return typeof e == "object" && !!e && e.$$typeof === t;
|
|
55
55
|
}
|
|
56
56
|
function ae(e) {
|
|
@@ -70,7 +70,7 @@ var __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t
|
|
|
70
70
|
switch (e.status) {
|
|
71
71
|
case "fulfilled": return e.value;
|
|
72
72
|
case "rejected": throw e.reason;
|
|
73
|
-
default: switch (typeof e.status == "string" ? e.then(
|
|
73
|
+
default: switch (typeof e.status == "string" ? e.then(S, S) : (e.status = "pending", e.then(function(t) {
|
|
74
74
|
e.status === "pending" && (e.status = "fulfilled", e.value = t);
|
|
75
75
|
}, function(t) {
|
|
76
76
|
e.status === "pending" && (e.status = "rejected", e.reason = t);
|
|
@@ -102,7 +102,7 @@ var __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t
|
|
|
102
102
|
}
|
|
103
103
|
if (c) return o = o(e), c = a === "" ? "." + se(e, 0) : a, ee(o) ? (i = "", c != null && (i = c.replace(oe, "$&/") + "/"), le(o, r, i, "", function(e) {
|
|
104
104
|
return e;
|
|
105
|
-
})) : o != null && (
|
|
105
|
+
})) : o != null && (ie(o) && (o = re(o, i + (o.key == null || e && e.key === o.key ? "" : ("" + o.key).replace(oe, "$&/") + "/") + c)), r.push(o)), 1;
|
|
106
106
|
c = 0;
|
|
107
107
|
var l = a === "" ? "." : a + ":";
|
|
108
108
|
if (ee(e)) for (var u = 0; u < e.length; u++) a = e[u], s = l + se(a, u), c += le(a, r, i, s, o);
|
|
@@ -165,14 +165,14 @@ var __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t
|
|
|
165
165
|
}) || [];
|
|
166
166
|
},
|
|
167
167
|
only: function(e) {
|
|
168
|
-
if (!
|
|
168
|
+
if (!ie(e)) throw Error("React.Children.only expected to receive a single React element child.");
|
|
169
169
|
return e;
|
|
170
170
|
}
|
|
171
171
|
};
|
|
172
|
-
e.Activity = f, e.Children = T, e.Component = v, e.Fragment = r, e.Profiler = a, e.PureComponent = b, e.StrictMode = i, e.Suspense = l, e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
|
|
172
|
+
e.Activity = f, e.Children = T, e.Component = v, e.Fragment = r, e.Profiler = a, e.PureComponent = b, e.StrictMode = i, e.Suspense = l, e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = C, e.__COMPILER_RUNTIME = {
|
|
173
173
|
__proto__: null,
|
|
174
174
|
c: function(e) {
|
|
175
|
-
return
|
|
175
|
+
return C.H.useMemoCache(e);
|
|
176
176
|
}
|
|
177
177
|
}, e.cache = function(e) {
|
|
178
178
|
return function() {
|
|
@@ -183,14 +183,14 @@ var __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t
|
|
|
183
183
|
}, e.cloneElement = function(e, t, n) {
|
|
184
184
|
if (e == null) throw Error("The argument must be a React element, but you passed " + e + ".");
|
|
185
185
|
var r = g({}, e.props), i = e.key;
|
|
186
|
-
if (t != null) for (a in t.key !== void 0 && (i = "" + t.key), t) !
|
|
186
|
+
if (t != null) for (a in t.key !== void 0 && (i = "" + t.key), t) !te.call(t, a) || a === "key" || a === "__self" || a === "__source" || a === "ref" && t.ref === void 0 || (r[a] = t[a]);
|
|
187
187
|
var a = arguments.length - 2;
|
|
188
188
|
if (a === 1) r.children = n;
|
|
189
189
|
else if (1 < a) {
|
|
190
190
|
for (var o = Array(a), s = 0; s < a; s++) o[s] = arguments[s + 2];
|
|
191
191
|
r.children = o;
|
|
192
192
|
}
|
|
193
|
-
return
|
|
193
|
+
return ne(e.type, i, r);
|
|
194
194
|
}, e.createContext = function(e) {
|
|
195
195
|
return e = {
|
|
196
196
|
$$typeof: s,
|
|
@@ -205,7 +205,7 @@ var __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t
|
|
|
205
205
|
}, e;
|
|
206
206
|
}, e.createElement = function(e, t, n) {
|
|
207
207
|
var r, i = {}, a = null;
|
|
208
|
-
if (t != null) for (r in t.key !== void 0 && (a = "" + t.key), t)
|
|
208
|
+
if (t != null) for (r in t.key !== void 0 && (a = "" + t.key), t) te.call(t, r) && r !== "key" && r !== "__self" && r !== "__source" && (i[r] = t[r]);
|
|
209
209
|
var o = arguments.length - 2;
|
|
210
210
|
if (o === 1) i.children = n;
|
|
211
211
|
else if (1 < o) {
|
|
@@ -213,7 +213,7 @@ var __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t
|
|
|
213
213
|
i.children = s;
|
|
214
214
|
}
|
|
215
215
|
if (e && e.defaultProps) for (r in o = e.defaultProps, o) i[r] === void 0 && (i[r] = o[r]);
|
|
216
|
-
return
|
|
216
|
+
return ne(e, a, i);
|
|
217
217
|
}, e.createRef = function() {
|
|
218
218
|
return { current: null };
|
|
219
219
|
}, e.forwardRef = function(e) {
|
|
@@ -221,7 +221,7 @@ var __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t
|
|
|
221
221
|
$$typeof: c,
|
|
222
222
|
render: e
|
|
223
223
|
};
|
|
224
|
-
}, e.isValidElement =
|
|
224
|
+
}, e.isValidElement = ie, e.lazy = function(e) {
|
|
225
225
|
return {
|
|
226
226
|
$$typeof: d,
|
|
227
227
|
_payload: {
|
|
@@ -237,54 +237,54 @@ var __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t
|
|
|
237
237
|
compare: t === void 0 ? null : t
|
|
238
238
|
};
|
|
239
239
|
}, e.startTransition = function(e) {
|
|
240
|
-
var t =
|
|
241
|
-
|
|
240
|
+
var t = C.T, n = {};
|
|
241
|
+
C.T = n;
|
|
242
242
|
try {
|
|
243
|
-
var r = e(), i =
|
|
244
|
-
i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && r.then(
|
|
243
|
+
var r = e(), i = C.S;
|
|
244
|
+
i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && r.then(S, w);
|
|
245
245
|
} catch (e) {
|
|
246
246
|
w(e);
|
|
247
247
|
} finally {
|
|
248
|
-
t !== null && n.types !== null && (t.types = n.types),
|
|
248
|
+
t !== null && n.types !== null && (t.types = n.types), C.T = t;
|
|
249
249
|
}
|
|
250
250
|
}, e.unstable_useCacheRefresh = function() {
|
|
251
|
-
return
|
|
251
|
+
return C.H.useCacheRefresh();
|
|
252
252
|
}, e.use = function(e) {
|
|
253
|
-
return
|
|
253
|
+
return C.H.use(e);
|
|
254
254
|
}, e.useActionState = function(e, t, n) {
|
|
255
|
-
return
|
|
255
|
+
return C.H.useActionState(e, t, n);
|
|
256
256
|
}, e.useCallback = function(e, t) {
|
|
257
|
-
return
|
|
257
|
+
return C.H.useCallback(e, t);
|
|
258
258
|
}, e.useContext = function(e) {
|
|
259
|
-
return
|
|
259
|
+
return C.H.useContext(e);
|
|
260
260
|
}, e.useDebugValue = function() {}, e.useDeferredValue = function(e, t) {
|
|
261
|
-
return
|
|
261
|
+
return C.H.useDeferredValue(e, t);
|
|
262
262
|
}, e.useEffect = function(e, t) {
|
|
263
|
-
return
|
|
263
|
+
return C.H.useEffect(e, t);
|
|
264
264
|
}, e.useEffectEvent = function(e) {
|
|
265
|
-
return
|
|
265
|
+
return C.H.useEffectEvent(e);
|
|
266
266
|
}, e.useId = function() {
|
|
267
|
-
return
|
|
267
|
+
return C.H.useId();
|
|
268
268
|
}, e.useImperativeHandle = function(e, t, n) {
|
|
269
|
-
return
|
|
269
|
+
return C.H.useImperativeHandle(e, t, n);
|
|
270
270
|
}, e.useInsertionEffect = function(e, t) {
|
|
271
|
-
return
|
|
271
|
+
return C.H.useInsertionEffect(e, t);
|
|
272
272
|
}, e.useLayoutEffect = function(e, t) {
|
|
273
|
-
return
|
|
273
|
+
return C.H.useLayoutEffect(e, t);
|
|
274
274
|
}, e.useMemo = function(e, t) {
|
|
275
|
-
return
|
|
275
|
+
return C.H.useMemo(e, t);
|
|
276
276
|
}, e.useOptimistic = function(e, t) {
|
|
277
|
-
return
|
|
277
|
+
return C.H.useOptimistic(e, t);
|
|
278
278
|
}, e.useReducer = function(e, t, n) {
|
|
279
|
-
return
|
|
279
|
+
return C.H.useReducer(e, t, n);
|
|
280
280
|
}, e.useRef = function(e) {
|
|
281
|
-
return
|
|
281
|
+
return C.H.useRef(e);
|
|
282
282
|
}, e.useState = function(e) {
|
|
283
|
-
return
|
|
283
|
+
return C.H.useState(e);
|
|
284
284
|
}, e.useSyncExternalStore = function(e, t, n) {
|
|
285
|
-
return
|
|
285
|
+
return C.H.useSyncExternalStore(e, t, n);
|
|
286
286
|
}, e.useTransition = function() {
|
|
287
|
-
return
|
|
287
|
+
return C.H.useTransition();
|
|
288
288
|
}, e.version = "19.2.3";
|
|
289
289
|
})), require_react = /* @__PURE__ */ __commonJSMin(((e, n) => {
|
|
290
290
|
n.exports = require_react_production();
|
|
@@ -340,28 +340,28 @@ var __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t
|
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
function x(e) {
|
|
343
|
-
if (h = !1, b(e), !m) if (n(c) !== null) m = !0, ee || (ee = !0,
|
|
343
|
+
if (h = !1, b(e), !m) if (n(c) !== null) m = !0, ee || (ee = !0, ie());
|
|
344
344
|
else {
|
|
345
345
|
var t = n(l);
|
|
346
346
|
t !== null && se(x, t.startTime - e);
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
|
-
var ee = !1,
|
|
350
|
-
function
|
|
351
|
-
return g ? !0 : !(e.unstable_now() -
|
|
349
|
+
var ee = !1, S = -1, C = 5, te = -1;
|
|
350
|
+
function ne() {
|
|
351
|
+
return g ? !0 : !(e.unstable_now() - te < C);
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function re() {
|
|
354
354
|
if (g = !1, ee) {
|
|
355
355
|
var t = e.unstable_now();
|
|
356
|
-
|
|
356
|
+
te = t;
|
|
357
357
|
var i = !0;
|
|
358
358
|
try {
|
|
359
359
|
a: {
|
|
360
|
-
m = !1, h && (h = !1, v(
|
|
360
|
+
m = !1, h && (h = !1, v(S), S = -1), p = !0;
|
|
361
361
|
var a = f;
|
|
362
362
|
try {
|
|
363
363
|
b: {
|
|
364
|
-
for (b(t), d = n(c); d !== null && !(d.expirationTime > t &&
|
|
364
|
+
for (b(t), d = n(c); d !== null && !(d.expirationTime > t && ne());) {
|
|
365
365
|
var o = d.callback;
|
|
366
366
|
if (typeof o == "function") {
|
|
367
367
|
d.callback = null, f = d.priorityLevel;
|
|
@@ -387,31 +387,31 @@ var __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t
|
|
|
387
387
|
i = void 0;
|
|
388
388
|
}
|
|
389
389
|
} finally {
|
|
390
|
-
i ?
|
|
390
|
+
i ? ie() : ee = !1;
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
|
-
var
|
|
395
|
-
if (typeof y == "function")
|
|
396
|
-
y(
|
|
394
|
+
var ie;
|
|
395
|
+
if (typeof y == "function") ie = function() {
|
|
396
|
+
y(re);
|
|
397
397
|
};
|
|
398
398
|
else if (typeof MessageChannel < "u") {
|
|
399
399
|
var ae = new MessageChannel(), oe = ae.port2;
|
|
400
|
-
ae.port1.onmessage =
|
|
400
|
+
ae.port1.onmessage = re, ie = function() {
|
|
401
401
|
oe.postMessage(null);
|
|
402
402
|
};
|
|
403
|
-
} else
|
|
404
|
-
_(
|
|
403
|
+
} else ie = function() {
|
|
404
|
+
_(re, 0);
|
|
405
405
|
};
|
|
406
406
|
function se(t, n) {
|
|
407
|
-
|
|
407
|
+
S = _(function() {
|
|
408
408
|
t(e.unstable_now());
|
|
409
409
|
}, n);
|
|
410
410
|
}
|
|
411
411
|
e.unstable_IdlePriority = 5, e.unstable_ImmediatePriority = 1, e.unstable_LowPriority = 4, e.unstable_NormalPriority = 3, e.unstable_Profiling = null, e.unstable_UserBlockingPriority = 2, e.unstable_cancelCallback = function(e) {
|
|
412
412
|
e.callback = null;
|
|
413
413
|
}, e.unstable_forceFrameRate = function(e) {
|
|
414
|
-
0 > e || 125 < e ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") :
|
|
414
|
+
0 > e || 125 < e ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : C = 0 < e ? Math.floor(1e3 / e) : 5;
|
|
415
415
|
}, e.unstable_getCurrentPriorityLevel = function() {
|
|
416
416
|
return f;
|
|
417
417
|
}, e.unstable_next = function(e) {
|
|
@@ -472,8 +472,8 @@ var __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t
|
|
|
472
472
|
startTime: a,
|
|
473
473
|
expirationTime: s,
|
|
474
474
|
sortIndex: -1
|
|
475
|
-
}, a > o ? (r.sortIndex = a, t(l, r), n(c) === null && r === n(l) && (h ? (v(
|
|
476
|
-
}, e.unstable_shouldYield =
|
|
475
|
+
}, a > o ? (r.sortIndex = a, t(l, r), n(c) === null && r === n(l) && (h ? (v(S), S = -1) : h = !0, se(x, a - o))) : (r.sortIndex = s, t(c, r), m || p || (m = !0, ee || (ee = !0, ie()))), r;
|
|
476
|
+
}, e.unstable_shouldYield = ne, e.unstable_wrapCallback = function(e) {
|
|
477
477
|
var t = f;
|
|
478
478
|
return function() {
|
|
479
479
|
var n = f;
|
|
@@ -720,7 +720,7 @@ var __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t
|
|
|
720
720
|
}
|
|
721
721
|
return null;
|
|
722
722
|
}
|
|
723
|
-
var h = Object.assign, g = Symbol.for("react.element"), _ = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), ee = Symbol.for("react.consumer"),
|
|
723
|
+
var h = Object.assign, g = Symbol.for("react.element"), _ = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), ee = Symbol.for("react.consumer"), S = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), te = Symbol.for("react.suspense"), ne = Symbol.for("react.suspense_list"), re = Symbol.for("react.memo"), ie = Symbol.for("react.lazy"), ae = Symbol.for("react.activity"), oe = Symbol.for("react.memo_cache_sentinel"), se = Symbol.iterator;
|
|
724
724
|
function ce(e) {
|
|
725
725
|
return typeof e != "object" || !e ? null : (e = se && e[se] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
726
726
|
}
|
|
@@ -733,19 +733,19 @@ var __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t
|
|
|
733
733
|
case y: return "Fragment";
|
|
734
734
|
case x: return "Profiler";
|
|
735
735
|
case b: return "StrictMode";
|
|
736
|
-
case
|
|
737
|
-
case
|
|
736
|
+
case te: return "Suspense";
|
|
737
|
+
case ne: return "SuspenseList";
|
|
738
738
|
case ae: return "Activity";
|
|
739
739
|
}
|
|
740
740
|
if (typeof e == "object") switch (e.$$typeof) {
|
|
741
741
|
case v: return "Portal";
|
|
742
|
-
case
|
|
742
|
+
case S: return e.displayName || "Context";
|
|
743
743
|
case ee: return (e._context.displayName || "Context") + ".Consumer";
|
|
744
|
-
case
|
|
744
|
+
case C:
|
|
745
745
|
var t = e.render;
|
|
746
746
|
return e = e.displayName, e ||= (e = t.displayName || t.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
|
|
747
|
-
case
|
|
748
|
-
case
|
|
747
|
+
case re: return t = e.displayName || null, t === null ? ue(e.type) || "Memo" : t;
|
|
748
|
+
case ie:
|
|
749
749
|
t = e._payload, e = e._init;
|
|
750
750
|
try {
|
|
751
751
|
return ue(e(t));
|
|
@@ -2023,23 +2023,23 @@ var __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t
|
|
|
2023
2023
|
o = 8, i |= 24;
|
|
2024
2024
|
break;
|
|
2025
2025
|
case x: return e = vi(12, n, t, i | 2), e.elementType = x, e.lanes = a, e;
|
|
2026
|
-
case
|
|
2027
|
-
case
|
|
2026
|
+
case te: return e = vi(13, n, t, i), e.elementType = te, e.lanes = a, e;
|
|
2027
|
+
case ne: return e = vi(19, n, t, i), e.elementType = ne, e.lanes = a, e;
|
|
2028
2028
|
default:
|
|
2029
2029
|
if (typeof e == "object" && e) switch (e.$$typeof) {
|
|
2030
|
-
case
|
|
2030
|
+
case S:
|
|
2031
2031
|
o = 10;
|
|
2032
2032
|
break a;
|
|
2033
2033
|
case ee:
|
|
2034
2034
|
o = 9;
|
|
2035
2035
|
break a;
|
|
2036
|
-
case
|
|
2036
|
+
case C:
|
|
2037
2037
|
o = 11;
|
|
2038
2038
|
break a;
|
|
2039
|
-
case
|
|
2039
|
+
case re:
|
|
2040
2040
|
o = 14;
|
|
2041
2041
|
break a;
|
|
2042
|
-
case
|
|
2042
|
+
case ie:
|
|
2043
2043
|
o = 16, r = null;
|
|
2044
2044
|
break a;
|
|
2045
2045
|
}
|
|
@@ -2298,7 +2298,7 @@ var __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t
|
|
|
2298
2298
|
});
|
|
2299
2299
|
};
|
|
2300
2300
|
}, pa = t.unstable_scheduleCallback, ma = t.unstable_NormalPriority, M = {
|
|
2301
|
-
$$typeof:
|
|
2301
|
+
$$typeof: S,
|
|
2302
2302
|
Consumer: null,
|
|
2303
2303
|
Provider: null,
|
|
2304
2304
|
_currentValue: null,
|
|
@@ -2463,7 +2463,7 @@ var __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t
|
|
|
2463
2463
|
}
|
|
2464
2464
|
function l(e, t, n, r) {
|
|
2465
2465
|
var a = n.type;
|
|
2466
|
-
return a === y ? d(e, t, n.props.children, r, n.key) : t !== null && (t.elementType === a || typeof a == "object" && a && a.$$typeof ===
|
|
2466
|
+
return a === y ? d(e, t, n.props.children, r, n.key) : t !== null && (t.elementType === a || typeof a == "object" && a && a.$$typeof === ie && Fa(a) === t.type) ? (t = i(t, n.props), Ha(t, n), t.return = e, t) : (t = Si(n.type, n.key, n.props, null, e.mode, r), Ha(t, n), t.return = e, t);
|
|
2467
2467
|
}
|
|
2468
2468
|
function u(e, t, n, r) {
|
|
2469
2469
|
return t === null || t.tag !== 4 || t.stateNode.containerInfo !== n.containerInfo || t.stateNode.implementation !== n.implementation ? (t = Ei(n, e.mode, r), t.return = e, t) : (t = i(t, n.children || []), t.return = e, t);
|
|
@@ -2477,11 +2477,11 @@ var __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t
|
|
|
2477
2477
|
switch (t.$$typeof) {
|
|
2478
2478
|
case _: return n = Si(t.type, t.key, t.props, null, e.mode, n), Ha(n, t), n.return = e, n;
|
|
2479
2479
|
case v: return t = Ei(t, e.mode, n), t.return = e, t;
|
|
2480
|
-
case
|
|
2480
|
+
case ie: return t = Fa(t), f(e, t, n);
|
|
2481
2481
|
}
|
|
2482
2482
|
if (de(t) || ce(t)) return t = Ci(t, e.mode, n, null), t.return = e, t;
|
|
2483
2483
|
if (typeof t.then == "function") return f(e, Va(t), n);
|
|
2484
|
-
if (t.$$typeof ===
|
|
2484
|
+
if (t.$$typeof === S) return f(e, ua(e, t), n);
|
|
2485
2485
|
Ua(e, t);
|
|
2486
2486
|
}
|
|
2487
2487
|
return null;
|
|
@@ -2493,11 +2493,11 @@ var __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t
|
|
|
2493
2493
|
switch (n.$$typeof) {
|
|
2494
2494
|
case _: return n.key === i ? l(e, t, n, r) : null;
|
|
2495
2495
|
case v: return n.key === i ? u(e, t, n, r) : null;
|
|
2496
|
-
case
|
|
2496
|
+
case ie: return n = Fa(n), p(e, t, n, r);
|
|
2497
2497
|
}
|
|
2498
2498
|
if (de(n) || ce(n)) return i === null ? d(e, t, n, r, null) : null;
|
|
2499
2499
|
if (typeof n.then == "function") return p(e, t, Va(n), r);
|
|
2500
|
-
if (n.$$typeof ===
|
|
2500
|
+
if (n.$$typeof === S) return p(e, t, ua(e, n), r);
|
|
2501
2501
|
Ua(e, n);
|
|
2502
2502
|
}
|
|
2503
2503
|
return null;
|
|
@@ -2508,11 +2508,11 @@ var __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t
|
|
|
2508
2508
|
switch (r.$$typeof) {
|
|
2509
2509
|
case _: return e = e.get(r.key === null ? n : r.key) || null, l(t, e, r, i);
|
|
2510
2510
|
case v: return e = e.get(r.key === null ? n : r.key) || null, u(t, e, r, i);
|
|
2511
|
-
case
|
|
2511
|
+
case ie: return r = Fa(r), m(e, t, n, r, i);
|
|
2512
2512
|
}
|
|
2513
2513
|
if (de(r) || ce(r)) return e = e.get(n) || null, d(t, e, r, i, null);
|
|
2514
2514
|
if (typeof r.then == "function") return m(e, t, n, Va(r), i);
|
|
2515
|
-
if (r.$$typeof ===
|
|
2515
|
+
if (r.$$typeof === S) return m(e, t, n, ua(t, r), i);
|
|
2516
2516
|
Ua(t, r);
|
|
2517
2517
|
}
|
|
2518
2518
|
return null;
|
|
@@ -2570,7 +2570,7 @@ var __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t
|
|
|
2570
2570
|
n(e, r.sibling), c = i(r, a.props.children), c.return = e, e = c;
|
|
2571
2571
|
break a;
|
|
2572
2572
|
}
|
|
2573
|
-
} else if (r.elementType === l || typeof l == "object" && l && l.$$typeof ===
|
|
2573
|
+
} else if (r.elementType === l || typeof l == "object" && l && l.$$typeof === ie && Fa(l) === r.type) {
|
|
2574
2574
|
n(e, r.sibling), c = i(r, a.props), Ha(c, a), c.return = e, e = c;
|
|
2575
2575
|
break a;
|
|
2576
2576
|
}
|
|
@@ -2598,7 +2598,7 @@ var __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t
|
|
|
2598
2598
|
c = Ei(a, e.mode, c), c.return = e, e = c;
|
|
2599
2599
|
}
|
|
2600
2600
|
return o(e);
|
|
2601
|
-
case
|
|
2601
|
+
case ie: return a = Fa(a), b(e, r, a, c);
|
|
2602
2602
|
}
|
|
2603
2603
|
if (de(a)) return h(e, r, a, c);
|
|
2604
2604
|
if (ce(a)) {
|
|
@@ -2606,7 +2606,7 @@ var __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t
|
|
|
2606
2606
|
return a = l.call(a), g(e, r, a, c);
|
|
2607
2607
|
}
|
|
2608
2608
|
if (typeof a.then == "function") return b(e, r, Va(a), c);
|
|
2609
|
-
if (a.$$typeof ===
|
|
2609
|
+
if (a.$$typeof === S) return b(e, r, ua(e, a), c);
|
|
2610
2610
|
Ua(e, a);
|
|
2611
2611
|
}
|
|
2612
2612
|
return typeof a == "string" && a !== "" || typeof a == "number" || typeof a == "bigint" ? (a = "" + a, r !== null && r.tag === 6 ? (n(e, r.sibling), c = i(r, a), c.return = e, e = c) : (n(e, r), c = wi(a, e.mode, c), c.return = e, e = c), o(e)) : n(e, r);
|
|
@@ -2918,7 +2918,7 @@ var __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t
|
|
|
2918
2918
|
function Ro(e) {
|
|
2919
2919
|
if (typeof e == "object" && e) {
|
|
2920
2920
|
if (typeof e.then == "function") return Lo(e);
|
|
2921
|
-
if (e.$$typeof ===
|
|
2921
|
+
if (e.$$typeof === S) return j(e);
|
|
2922
2922
|
}
|
|
2923
2923
|
throw Error(s(438, String(e)));
|
|
2924
2924
|
}
|
|
@@ -4168,10 +4168,10 @@ var __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t
|
|
|
4168
4168
|
else {
|
|
4169
4169
|
if (e != null) {
|
|
4170
4170
|
var i = e.$$typeof;
|
|
4171
|
-
if (i ===
|
|
4171
|
+
if (i === C) {
|
|
4172
4172
|
t.tag = 11, t = lc(null, t, e, r, n);
|
|
4173
4173
|
break a;
|
|
4174
|
-
} else if (i ===
|
|
4174
|
+
} else if (i === re) {
|
|
4175
4175
|
t.tag = 14, t = uc(null, t, e, r, n);
|
|
4176
4176
|
break a;
|
|
4177
4177
|
}
|
|
@@ -7555,7 +7555,7 @@ var __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t
|
|
|
7555
7555
|
}
|
|
7556
7556
|
}
|
|
7557
7557
|
var Qf = {
|
|
7558
|
-
$$typeof:
|
|
7558
|
+
$$typeof: S,
|
|
7559
7559
|
Provider: null,
|
|
7560
7560
|
Consumer: null,
|
|
7561
7561
|
_currentValue: fe,
|
|
@@ -7986,7 +7986,7 @@ var __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t
|
|
|
7986
7986
|
var n = !1, r = "", i = Qs, a = $s, o = ec;
|
|
7987
7987
|
return t != null && (!0 === t.unstable_strictMode && (n = !0), t.identifierPrefix !== void 0 && (r = t.identifierPrefix), t.onUncaughtError !== void 0 && (i = t.onUncaughtError), t.onCaughtError !== void 0 && (a = t.onCaughtError), t.onRecoverableError !== void 0 && (o = t.onRecoverableError)), t = ep(e, 1, !1, null, null, n, r, null, i, a, o, Pp), e[yt] = t.current, Sd(e), new Fp(t);
|
|
7988
7988
|
};
|
|
7989
|
-
})),
|
|
7989
|
+
})), import_client = (/* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
7990
7990
|
function n() {
|
|
7991
7991
|
if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) try {
|
|
7992
7992
|
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n);
|
|
@@ -7995,7 +7995,28 @@ var __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t
|
|
|
7995
7995
|
}
|
|
7996
7996
|
}
|
|
7997
7997
|
n(), t.exports = require_react_dom_client_production();
|
|
7998
|
-
})),
|
|
7998
|
+
})))(), import_react = require_react();
|
|
7999
|
+
const useIsMobile = () => {
|
|
8000
|
+
let [e, t] = (0, import_react.useState)(!1);
|
|
8001
|
+
return (0, import_react.useEffect)(() => {
|
|
8002
|
+
let e = () => {
|
|
8003
|
+
t(window.innerWidth < 768);
|
|
8004
|
+
};
|
|
8005
|
+
return e(), window.addEventListener("resize", e), () => {
|
|
8006
|
+
window.removeEventListener("resize", e);
|
|
8007
|
+
};
|
|
8008
|
+
}, []), e;
|
|
8009
|
+
};
|
|
8010
|
+
/**
|
|
8011
|
+
* @license React
|
|
8012
|
+
* react-jsx-runtime.production.js
|
|
8013
|
+
*
|
|
8014
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
8015
|
+
*
|
|
8016
|
+
* This source code is licensed under the MIT license found in the
|
|
8017
|
+
* LICENSE file in the root directory of this source tree.
|
|
8018
|
+
*/
|
|
8019
|
+
var require_react_jsx_runtime_production = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
7999
8020
|
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
|
|
8000
8021
|
function r(e, n, r) {
|
|
8001
8022
|
var i = null;
|
|
@@ -8010,23 +8031,39 @@ var __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t
|
|
|
8010
8031
|
};
|
|
8011
8032
|
}
|
|
8012
8033
|
e.Fragment = n, e.jsx = r, e.jsxs = r;
|
|
8013
|
-
})),
|
|
8034
|
+
})), import_jsx_runtime = (/* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
8014
8035
|
t.exports = require_react_jsx_runtime_production();
|
|
8015
|
-
}))
|
|
8036
|
+
})))(), LOADING_TEXTS = [
|
|
8037
|
+
"Warming up...",
|
|
8038
|
+
"Getting ready...",
|
|
8039
|
+
"Almost there..."
|
|
8040
|
+
], TEXT_ROTATION_INTERVAL = 2e3;
|
|
8016
8041
|
const Widget = ({ type: e, url: t, onToggle: n, theme: r }) => {
|
|
8017
|
-
let [i, a] = (0, import_react.useState)(!1), o = (0, import_react.
|
|
8018
|
-
|
|
8019
|
-
|
|
8020
|
-
|
|
8021
|
-
|
|
8042
|
+
let [i, a] = (0, import_react.useState)(!1), [o, s] = (0, import_react.useState)(!0), [c, d] = (0, import_react.useState)(0), h = useIsMobile(), g = (0, import_react.useRef)(null), _ = (0, import_react.useRef)(0);
|
|
8043
|
+
(0, import_react.useEffect)(() => {
|
|
8044
|
+
if (!o) return;
|
|
8045
|
+
let e = (t) => {
|
|
8046
|
+
_.current ||= t, t - _.current >= TEXT_ROTATION_INTERVAL && (d((e) => (e + 1) % LOADING_TEXTS.length), _.current = t), g.current = requestAnimationFrame(e);
|
|
8047
|
+
};
|
|
8048
|
+
return g.current = requestAnimationFrame(e), () => {
|
|
8049
|
+
g.current && cancelAnimationFrame(g.current), _.current = 0;
|
|
8050
|
+
};
|
|
8051
|
+
}, [o]);
|
|
8052
|
+
let v = h ? "tray" : e, y = !(h && i), b = (0, import_react.useCallback)((e) => {
|
|
8053
|
+
a(e), n(e), e && s(!0);
|
|
8054
|
+
}, [n]), x = (0, import_react.useCallback)(() => {
|
|
8055
|
+
s(!1);
|
|
8056
|
+
}, []), ee = (0, import_react.useCallback)(() => {
|
|
8057
|
+
b(!i);
|
|
8058
|
+
}, [i, b]);
|
|
8022
8059
|
(0, import_react.useEffect)(() => {
|
|
8023
8060
|
let e = (e) => {
|
|
8024
8061
|
if (!(!e.data || typeof e.data.type != "string")) switch (e.data.type) {
|
|
8025
8062
|
case "THESYS_WIDGET_CLOSE":
|
|
8026
|
-
|
|
8063
|
+
b(!1);
|
|
8027
8064
|
break;
|
|
8028
8065
|
case "THESYS_WIDGET_OPEN":
|
|
8029
|
-
|
|
8066
|
+
b(!0);
|
|
8030
8067
|
break;
|
|
8031
8068
|
case "THESYS_WIDGET_TOGGLE":
|
|
8032
8069
|
a((e) => {
|
|
@@ -8037,21 +8074,30 @@ const Widget = ({ type: e, url: t, onToggle: n, theme: r }) => {
|
|
|
8037
8074
|
}
|
|
8038
8075
|
};
|
|
8039
8076
|
return window.addEventListener("message", e), () => window.removeEventListener("message", e);
|
|
8040
|
-
}, [
|
|
8041
|
-
let
|
|
8042
|
-
let
|
|
8043
|
-
return
|
|
8044
|
-
}, [
|
|
8045
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [i && /* @__PURE__ */ (0, import_jsx_runtime.
|
|
8077
|
+
}, [b, n]);
|
|
8078
|
+
let S = (0, import_react.useMemo)(() => {
|
|
8079
|
+
let e = new URL(t);
|
|
8080
|
+
return v === "tray" ? e.searchParams.set("appRenderContext", "TRAY_EMBED_WIDGET") : v === "full-screen" && e.searchParams.set("appRenderContext", "FULLSCREEN_EMBED_WIDGET"), e.toString();
|
|
8081
|
+
}, [v, t]);
|
|
8082
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [i && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
8046
8083
|
className: "thesys--widget-window",
|
|
8047
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.
|
|
8048
|
-
|
|
8049
|
-
className: "thesys--widget-
|
|
8050
|
-
|
|
8051
|
-
|
|
8052
|
-
|
|
8084
|
+
children: [o && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
8085
|
+
className: `thesys--widget-loader thesys--widget-loader-${r}`,
|
|
8086
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "thesys--widget-spinner" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
8087
|
+
className: `thesys--widget-loading-text thesys--widget-loading-text-${r}`,
|
|
8088
|
+
children: LOADING_TEXTS[c]
|
|
8089
|
+
})]
|
|
8090
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("iframe", {
|
|
8091
|
+
src: S,
|
|
8092
|
+
className: `thesys--widget-frame${o ? " thesys--widget-frame-loading" : ""}`,
|
|
8093
|
+
allowTransparency: !0,
|
|
8094
|
+
onLoad: x
|
|
8095
|
+
})]
|
|
8096
|
+
}), y && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
|
|
8097
|
+
type: "button",
|
|
8053
8098
|
className: `thesys--widget-toggle thesys--widget-toggle-${r}`,
|
|
8054
|
-
onClick:
|
|
8099
|
+
onClick: ee,
|
|
8100
|
+
"aria-label": i ? "Close chat widget" : "Open chat widget",
|
|
8055
8101
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", {
|
|
8056
8102
|
width: "24",
|
|
8057
8103
|
height: "24",
|
|
@@ -8080,27 +8126,27 @@ const Widget = ({ type: e, url: t, onToggle: n, theme: r }) => {
|
|
|
8080
8126
|
})
|
|
8081
8127
|
})] });
|
|
8082
8128
|
}, embedWidget = (e) => {
|
|
8083
|
-
let t = e.type ?? "tray", n = document.createElement("div");
|
|
8084
|
-
|
|
8085
|
-
let
|
|
8086
|
-
e ? (
|
|
8129
|
+
let t = e.type ?? "tray", n = window.innerWidth < 768 ? "full-screen" : t, r = document.createElement("div");
|
|
8130
|
+
r.id = "agent-embed-widget", r.className = "thesys--widget" + (n === "tray" ? " thesys--tray-widget" : " thesys--full-screen-widget"), document.body.appendChild(r);
|
|
8131
|
+
let i = (e) => {
|
|
8132
|
+
e ? (r.style.width = "", r.style.height = "", n === "full-screen" && (r.style.top = "0", r.style.left = "0", r.style.bottom = "", r.style.right = "")) : (r.style.width = "56px", r.style.height = "56px", n === "full-screen" && (r.style.top = "", r.style.left = ""));
|
|
8087
8133
|
};
|
|
8088
|
-
|
|
8089
|
-
let
|
|
8090
|
-
return
|
|
8134
|
+
i(!1);
|
|
8135
|
+
let a = (0, import_client.createRoot)(r);
|
|
8136
|
+
return a.render(import_react.createElement(Widget, {
|
|
8091
8137
|
type: t,
|
|
8092
8138
|
url: e.url,
|
|
8093
|
-
onToggle:
|
|
8139
|
+
onToggle: i,
|
|
8094
8140
|
theme: e.theme ?? "dark"
|
|
8095
8141
|
})), {
|
|
8096
8142
|
open: () => {
|
|
8097
|
-
|
|
8143
|
+
r.style.display = "block";
|
|
8098
8144
|
},
|
|
8099
8145
|
close: () => {
|
|
8100
|
-
|
|
8146
|
+
r.style.display = "none";
|
|
8101
8147
|
},
|
|
8102
8148
|
destroy: () => {
|
|
8103
|
-
|
|
8149
|
+
r.isConnected && (a.unmount(), r.remove());
|
|
8104
8150
|
}
|
|
8105
8151
|
};
|
|
8106
8152
|
};
|