@chatsystem/client 1.1.66 → 1.1.67
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/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +103 -106
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as L, jsxs as
|
|
1
|
+
import { jsx as L, jsxs as Ce, Fragment as vt } from "react/jsx-runtime";
|
|
2
2
|
import * as Fe from "react";
|
|
3
3
|
import De, { useState as de, useEffect as Se, forwardRef as Mu, useRef as we, useMemo as dn, useImperativeHandle as Oc, useContext as nt, useCallback as Pt, createContext as Lc, useLayoutEffect as Rc } from "react";
|
|
4
4
|
import tr, { createPortal as Dc } from "react-dom";
|
|
@@ -449,14 +449,14 @@ const Qc = Mu(function({
|
|
|
449
449
|
onEnd: V,
|
|
450
450
|
onFrame: se
|
|
451
451
|
}, ie) {
|
|
452
|
-
const S = we(null), $ = we(null), [F, Y] = de(null), [z, K] = de(null), [fe,
|
|
452
|
+
const S = we(null), $ = we(null), [F, Y] = de(null), [z, K] = de(null), [fe, xe] = de(null), [Le, He] = de(!1), [p, H] = de(!!d), [W, T] = de(m), G = we(1), [ee, j] = de(null), Z = Math.max(
|
|
453
453
|
1,
|
|
454
454
|
Math.floor(typeof window < "u" && window.devicePixelRatio || 1)
|
|
455
455
|
);
|
|
456
456
|
Se(() => {
|
|
457
457
|
let le = !1;
|
|
458
458
|
return He(!1), Uu(t).then(({ imgEl: Ne, bitmap: be }) => {
|
|
459
|
-
le || (Y(Ne), K(be),
|
|
459
|
+
le || (Y(Ne), K(be), xe({ w: Ne.naturalWidth, h: Ne.naturalHeight }), He(!0), N?.());
|
|
460
460
|
}).catch(() => {
|
|
461
461
|
}), () => {
|
|
462
462
|
le = !0;
|
|
@@ -508,30 +508,30 @@ const Qc = Mu(function({
|
|
|
508
508
|
if (!te || !ne) return [];
|
|
509
509
|
const { cols: le, rows: Ne } = Ut;
|
|
510
510
|
if (!le || !Ne) return [];
|
|
511
|
-
const be = Math.min(o ?? le * Ne, le * Ne),
|
|
511
|
+
const be = Math.min(o ?? le * Ne, le * Ne), Ae = [];
|
|
512
512
|
for (let Re = 0; Re < be; Re++) {
|
|
513
513
|
const O = Re % le, P = Math.floor(Re / le), Q = rt + O * (te + U), re = ze + P * (ne + Me);
|
|
514
|
-
|
|
514
|
+
Ae.push({ x: Q, y: re, w: te, h: ne });
|
|
515
515
|
}
|
|
516
|
-
if (F &&
|
|
516
|
+
if (F && Ae.length) {
|
|
517
517
|
const Re = document.createElement("canvas");
|
|
518
518
|
Re.width = F.naturalWidth, Re.height = F.naturalHeight;
|
|
519
519
|
const O = Re.getContext("2d");
|
|
520
520
|
if (O) {
|
|
521
521
|
O.drawImage(F, 0, 0);
|
|
522
|
-
let P =
|
|
522
|
+
let P = Ae.length;
|
|
523
523
|
for (; P > 0 && Xc(
|
|
524
524
|
O,
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
525
|
+
Ae[P - 1].x,
|
|
526
|
+
Ae[P - 1].y,
|
|
527
|
+
Ae[P - 1].w,
|
|
528
|
+
Ae[P - 1].h
|
|
529
529
|
); )
|
|
530
530
|
P--;
|
|
531
|
-
return
|
|
531
|
+
return Ae.slice(0, P);
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
|
-
return
|
|
534
|
+
return Ae;
|
|
535
535
|
}, [
|
|
536
536
|
c,
|
|
537
537
|
Ut,
|
|
@@ -546,8 +546,8 @@ const Qc = Mu(function({
|
|
|
546
546
|
]), St = () => {
|
|
547
547
|
const le = S.current;
|
|
548
548
|
if (!le || Ve.length === 0) return;
|
|
549
|
-
const Ne = Ve[Math.max(0, Math.min(W, Ve.length - 1))], be = Math.max(1, Math.round(Ne.w * A)),
|
|
550
|
-
le.style.width = be + "px", le.style.height =
|
|
549
|
+
const Ne = Ve[Math.max(0, Math.min(W, Ve.length - 1))], be = Math.max(1, Math.round(Ne.w * A)), Ae = Math.max(1, Math.round(Ne.h * A));
|
|
550
|
+
le.style.width = be + "px", le.style.height = Ae + "px", le.width = be * Z, le.height = Ae * Z;
|
|
551
551
|
};
|
|
552
552
|
Se(() => {
|
|
553
553
|
St();
|
|
@@ -555,11 +555,11 @@ const Qc = Mu(function({
|
|
|
555
555
|
const ht = (le) => {
|
|
556
556
|
const Ne = z ?? F ?? null, be = S.current;
|
|
557
557
|
if (!be || !Ne || Ve.length === 0) return;
|
|
558
|
-
const
|
|
559
|
-
if (!
|
|
560
|
-
|
|
558
|
+
const Ae = be.getContext("2d");
|
|
559
|
+
if (!Ae) return;
|
|
560
|
+
Ae.save(), Ae.setTransform(1, 0, 0, 1, 0, 0), Ae.clearRect(0, 0, be.width, be.height), _ && (Ae.fillStyle = _, Ae.fillRect(0, 0, be.width, be.height));
|
|
561
561
|
const Re = Ve[le];
|
|
562
|
-
|
|
562
|
+
Ae.scale(Z, Z), Ae.drawImage(
|
|
563
563
|
Ne,
|
|
564
564
|
Re.x,
|
|
565
565
|
Re.y,
|
|
@@ -569,22 +569,22 @@ const Qc = Mu(function({
|
|
|
569
569
|
0,
|
|
570
570
|
Math.round(Re.w * A),
|
|
571
571
|
Math.round(Re.h * A)
|
|
572
|
-
),
|
|
572
|
+
), Ae.restore();
|
|
573
573
|
};
|
|
574
574
|
return Se(() => {
|
|
575
575
|
if (!Le || Ve.length === 0) return;
|
|
576
576
|
let le = performance.now();
|
|
577
|
-
const Ne = 1e3 / Math.max(1, Math.min(120, f)), be = (
|
|
577
|
+
const Ne = 1e3 / Math.max(1, Math.min(120, f)), be = (Ae) => {
|
|
578
578
|
if ($.current = requestAnimationFrame(be), !p) {
|
|
579
579
|
ht(W);
|
|
580
580
|
return;
|
|
581
581
|
}
|
|
582
|
-
const Re =
|
|
582
|
+
const Re = Ae - le;
|
|
583
583
|
if (Re < Ne) {
|
|
584
584
|
ht(W);
|
|
585
585
|
return;
|
|
586
586
|
}
|
|
587
|
-
le =
|
|
587
|
+
le = Ae - Re % Ne, T((O) => {
|
|
588
588
|
const P = Ve.length - 1;
|
|
589
589
|
let Q = O;
|
|
590
590
|
return E === "forward" ? Q = O + 1 : E === "backward" ? Q = O - 1 : ((O >= P && G.current === 1 || O <= 0 && G.current === -1) && (G.current *= -1), Q = O + G.current), (Q > P || Q < 0) && (h ? Q = E === "backward" ? P : 0 : (Q = Math.max(0, Math.min(Q, P)), H(!1), V?.())), Q;
|
|
@@ -629,7 +629,7 @@ function Kc({
|
|
|
629
629
|
}).catch((u) => !s && a(u.message ?? "Failed to load")), () => {
|
|
630
630
|
s = !0;
|
|
631
631
|
};
|
|
632
|
-
}, [e]), i ? /* @__PURE__ */
|
|
632
|
+
}, [e]), i ? /* @__PURE__ */ Ce("div", { className: t, role: "alert", children: [
|
|
633
633
|
"Couldn’t load SVG: ",
|
|
634
634
|
i
|
|
635
635
|
] }) : n ? /* @__PURE__ */ L("div", { className: t, dangerouslySetInnerHTML: { __html: n } }) : /* @__PURE__ */ L("div", { className: t });
|
|
@@ -683,7 +683,7 @@ const ca = ({ facet: e }) => {
|
|
|
683
683
|
tablet: A ?? 0.8,
|
|
684
684
|
desktop: m ?? 1
|
|
685
685
|
});
|
|
686
|
-
return /* @__PURE__ */
|
|
686
|
+
return /* @__PURE__ */ Ce("div", { className: "assetContainer", children: [
|
|
687
687
|
t === Ze.AgentDisplayFacetModeType.LOTTIE && /* @__PURE__ */ L(
|
|
688
688
|
qc,
|
|
689
689
|
{
|
|
@@ -718,7 +718,7 @@ const ca = ({ facet: e }) => {
|
|
|
718
718
|
setIsWidgetOpen: t
|
|
719
719
|
}) => {
|
|
720
720
|
const { companySettings: n } = nt(Tn);
|
|
721
|
-
return /* @__PURE__ */
|
|
721
|
+
return /* @__PURE__ */ Ce(
|
|
722
722
|
"div",
|
|
723
723
|
{
|
|
724
724
|
className: `launcher
|
|
@@ -908,7 +908,7 @@ function tf() {
|
|
|
908
908
|
}
|
|
909
909
|
}
|
|
910
910
|
}
|
|
911
|
-
var C = o, N = c, V = u, se = s, ie = t, S = f, $ = r, F = E, Y = m, z = n, K = a, fe = i,
|
|
911
|
+
var C = o, N = c, V = u, se = s, ie = t, S = f, $ = r, F = E, Y = m, z = n, K = a, fe = i, xe = d, Le = !1;
|
|
912
912
|
function He(U) {
|
|
913
913
|
return Le || (Le = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), p(U) || R(U) === o;
|
|
914
914
|
}
|
|
@@ -948,7 +948,7 @@ function tf() {
|
|
|
948
948
|
function ge(U) {
|
|
949
949
|
return R(U) === d;
|
|
950
950
|
}
|
|
951
|
-
ye.AsyncMode = C, ye.ConcurrentMode = N, ye.ContextConsumer = V, ye.ContextProvider = se, ye.Element = ie, ye.ForwardRef = S, ye.Fragment = $, ye.Lazy = F, ye.Memo = Y, ye.Portal = z, ye.Profiler = K, ye.StrictMode = fe, ye.Suspense =
|
|
951
|
+
ye.AsyncMode = C, ye.ConcurrentMode = N, ye.ContextConsumer = V, ye.ContextProvider = se, ye.Element = ie, ye.ForwardRef = S, ye.Fragment = $, ye.Lazy = F, ye.Memo = Y, ye.Portal = z, ye.Profiler = K, ye.StrictMode = fe, ye.Suspense = xe, ye.isAsyncMode = He, ye.isConcurrentMode = p, ye.isContextConsumer = H, ye.isContextProvider = W, ye.isElement = T, ye.isForwardRef = G, ye.isFragment = ee, ye.isLazy = j, ye.isMemo = Z, ye.isPortal = te, ye.isProfiler = ne, ye.isStrictMode = X, ye.isSuspense = ge, ye.isValidElementType = w, ye.typeOf = R;
|
|
952
952
|
})()), ye;
|
|
953
953
|
}
|
|
954
954
|
var qa;
|
|
@@ -7408,7 +7408,7 @@ function lh(e, t, n) {
|
|
|
7408
7408
|
return T === null || J(T) ? F(T) : ce(T) ? (e.consume(T), $) : n(T);
|
|
7409
7409
|
}
|
|
7410
7410
|
function F(T) {
|
|
7411
|
-
return T === 45 && i === 2 ? (e.consume(T), fe) : T === 60 && i === 1 ? (e.consume(T),
|
|
7411
|
+
return T === 45 && i === 2 ? (e.consume(T), fe) : T === 60 && i === 1 ? (e.consume(T), xe) : T === 62 && i === 4 ? (e.consume(T), H) : T === 63 && i === 3 ? (e.consume(T), p) : T === 93 && i === 5 ? (e.consume(T), He) : J(T) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(
|
|
7412
7412
|
sh,
|
|
7413
7413
|
W,
|
|
7414
7414
|
Y
|
|
@@ -7430,7 +7430,7 @@ function lh(e, t, n) {
|
|
|
7430
7430
|
function fe(T) {
|
|
7431
7431
|
return T === 45 ? (e.consume(T), p) : F(T);
|
|
7432
7432
|
}
|
|
7433
|
-
function
|
|
7433
|
+
function xe(T) {
|
|
7434
7434
|
return T === 47 ? (e.consume(T), s = "", Le) : F(T);
|
|
7435
7435
|
}
|
|
7436
7436
|
function Le(T) {
|
|
@@ -7490,7 +7490,7 @@ function hh(e, t, n) {
|
|
|
7490
7490
|
return p === 45 ? (e.consume(p), m) : n(p);
|
|
7491
7491
|
}
|
|
7492
7492
|
function d(p) {
|
|
7493
|
-
return p === null ? n(p) : p === 45 ? (e.consume(p), h) : J(p) ? (s = d,
|
|
7493
|
+
return p === null ? n(p) : p === 45 ? (e.consume(p), h) : J(p) ? (s = d, xe(p)) : (e.consume(p), d);
|
|
7494
7494
|
}
|
|
7495
7495
|
function h(p) {
|
|
7496
7496
|
return p === 45 ? (e.consume(p), m) : d(p);
|
|
@@ -7503,7 +7503,7 @@ function hh(e, t, n) {
|
|
|
7503
7503
|
return p === H.charCodeAt(a++) ? (e.consume(p), a === H.length ? A : E) : n(p);
|
|
7504
7504
|
}
|
|
7505
7505
|
function A(p) {
|
|
7506
|
-
return p === null ? n(p) : p === 93 ? (e.consume(p), _) : J(p) ? (s = A,
|
|
7506
|
+
return p === null ? n(p) : p === 93 ? (e.consume(p), _) : J(p) ? (s = A, xe(p)) : (e.consume(p), A);
|
|
7507
7507
|
}
|
|
7508
7508
|
function _(p) {
|
|
7509
7509
|
return p === 93 ? (e.consume(p), x) : A(p);
|
|
@@ -7512,10 +7512,10 @@ function hh(e, t, n) {
|
|
|
7512
7512
|
return p === 62 ? fe(p) : p === 93 ? (e.consume(p), x) : A(p);
|
|
7513
7513
|
}
|
|
7514
7514
|
function v(p) {
|
|
7515
|
-
return p === null || p === 62 ? fe(p) : J(p) ? (s = v,
|
|
7515
|
+
return p === null || p === 62 ? fe(p) : J(p) ? (s = v, xe(p)) : (e.consume(p), v);
|
|
7516
7516
|
}
|
|
7517
7517
|
function w(p) {
|
|
7518
|
-
return p === null ? n(p) : p === 63 ? (e.consume(p), R) : J(p) ? (s = w,
|
|
7518
|
+
return p === null ? n(p) : p === 63 ? (e.consume(p), R) : J(p) ? (s = w, xe(p)) : (e.consume(p), w);
|
|
7519
7519
|
}
|
|
7520
7520
|
function R(p) {
|
|
7521
7521
|
return p === 62 ? fe(p) : w(p);
|
|
@@ -7527,25 +7527,25 @@ function hh(e, t, n) {
|
|
|
7527
7527
|
return p === 45 || Ye(p) ? (e.consume(p), N) : V(p);
|
|
7528
7528
|
}
|
|
7529
7529
|
function V(p) {
|
|
7530
|
-
return J(p) ? (s = V,
|
|
7530
|
+
return J(p) ? (s = V, xe(p)) : ce(p) ? (e.consume(p), V) : fe(p);
|
|
7531
7531
|
}
|
|
7532
7532
|
function se(p) {
|
|
7533
7533
|
return p === 45 || Ye(p) ? (e.consume(p), se) : p === 47 || p === 62 || Ie(p) ? ie(p) : n(p);
|
|
7534
7534
|
}
|
|
7535
7535
|
function ie(p) {
|
|
7536
|
-
return p === 47 ? (e.consume(p), fe) : p === 58 || p === 95 || Xe(p) ? (e.consume(p), S) : J(p) ? (s = ie,
|
|
7536
|
+
return p === 47 ? (e.consume(p), fe) : p === 58 || p === 95 || Xe(p) ? (e.consume(p), S) : J(p) ? (s = ie, xe(p)) : ce(p) ? (e.consume(p), ie) : fe(p);
|
|
7537
7537
|
}
|
|
7538
7538
|
function S(p) {
|
|
7539
7539
|
return p === 45 || p === 46 || p === 58 || p === 95 || Ye(p) ? (e.consume(p), S) : $(p);
|
|
7540
7540
|
}
|
|
7541
7541
|
function $(p) {
|
|
7542
|
-
return p === 61 ? (e.consume(p), F) : J(p) ? (s = $,
|
|
7542
|
+
return p === 61 ? (e.consume(p), F) : J(p) ? (s = $, xe(p)) : ce(p) ? (e.consume(p), $) : ie(p);
|
|
7543
7543
|
}
|
|
7544
7544
|
function F(p) {
|
|
7545
|
-
return p === null || p === 60 || p === 61 || p === 62 || p === 96 ? n(p) : p === 34 || p === 39 ? (e.consume(p), i = p, Y) : J(p) ? (s = F,
|
|
7545
|
+
return p === null || p === 60 || p === 61 || p === 62 || p === 96 ? n(p) : p === 34 || p === 39 ? (e.consume(p), i = p, Y) : J(p) ? (s = F, xe(p)) : ce(p) ? (e.consume(p), F) : (e.consume(p), z);
|
|
7546
7546
|
}
|
|
7547
7547
|
function Y(p) {
|
|
7548
|
-
return p === i ? (e.consume(p), i = void 0, K) : p === null ? n(p) : J(p) ? (s = Y,
|
|
7548
|
+
return p === i ? (e.consume(p), i = void 0, K) : p === null ? n(p) : J(p) ? (s = Y, xe(p)) : (e.consume(p), Y);
|
|
7549
7549
|
}
|
|
7550
7550
|
function z(p) {
|
|
7551
7551
|
return p === null || p === 34 || p === 39 || p === 60 || p === 61 || p === 96 ? n(p) : p === 47 || p === 62 || Ie(p) ? ie(p) : (e.consume(p), z);
|
|
@@ -7556,7 +7556,7 @@ function hh(e, t, n) {
|
|
|
7556
7556
|
function fe(p) {
|
|
7557
7557
|
return p === 62 ? (e.consume(p), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(p);
|
|
7558
7558
|
}
|
|
7559
|
-
function
|
|
7559
|
+
function xe(p) {
|
|
7560
7560
|
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(p), e.exit("lineEnding"), Le;
|
|
7561
7561
|
}
|
|
7562
7562
|
function Le(p) {
|
|
@@ -8197,7 +8197,7 @@ function jh(e, t, n) {
|
|
|
8197
8197
|
function V($, F) {
|
|
8198
8198
|
return Y;
|
|
8199
8199
|
function Y(z, K, fe) {
|
|
8200
|
-
let
|
|
8200
|
+
let xe, Le, He, p;
|
|
8201
8201
|
return Array.isArray(z) ? W(z) : "tokenize" in z ? (
|
|
8202
8202
|
// @ts-expect-error Looks like a construct.
|
|
8203
8203
|
W([z])
|
|
@@ -8215,7 +8215,7 @@ function jh(e, t, n) {
|
|
|
8215
8215
|
}
|
|
8216
8216
|
}
|
|
8217
8217
|
function W(j) {
|
|
8218
|
-
return
|
|
8218
|
+
return xe = j, Le = 0, j.length === 0 ? fe : T(j[Le]);
|
|
8219
8219
|
}
|
|
8220
8220
|
function T(j) {
|
|
8221
8221
|
return Z;
|
|
@@ -8235,7 +8235,7 @@ function jh(e, t, n) {
|
|
|
8235
8235
|
return $(He, p), K;
|
|
8236
8236
|
}
|
|
8237
8237
|
function ee(j) {
|
|
8238
|
-
return p.restore(), ++Le <
|
|
8238
|
+
return p.restore(), ++Le < xe.length ? T(xe[Le]) : fe;
|
|
8239
8239
|
}
|
|
8240
8240
|
}
|
|
8241
8241
|
}
|
|
@@ -8542,7 +8542,7 @@ function cm(e) {
|
|
|
8542
8542
|
htmlFlowData: S,
|
|
8543
8543
|
htmlText: o(z),
|
|
8544
8544
|
htmlTextData: S,
|
|
8545
|
-
image: o(
|
|
8545
|
+
image: o(xe),
|
|
8546
8546
|
label: He,
|
|
8547
8547
|
labelText: Le,
|
|
8548
8548
|
lineEnding: $,
|
|
@@ -8627,16 +8627,16 @@ function cm(e) {
|
|
|
8627
8627
|
function i(O, P, Q) {
|
|
8628
8628
|
let re = P - 1, Ee = -1, Je = !1, wt, it, nn, qe;
|
|
8629
8629
|
for (; ++re <= Q; ) {
|
|
8630
|
-
const
|
|
8631
|
-
switch (
|
|
8630
|
+
const _e = O[re];
|
|
8631
|
+
switch (_e[1].type) {
|
|
8632
8632
|
case "listUnordered":
|
|
8633
8633
|
case "listOrdered":
|
|
8634
8634
|
case "blockQuote": {
|
|
8635
|
-
|
|
8635
|
+
_e[0] === "enter" ? Ee++ : Ee--, qe = void 0;
|
|
8636
8636
|
break;
|
|
8637
8637
|
}
|
|
8638
8638
|
case "lineEndingBlank": {
|
|
8639
|
-
|
|
8639
|
+
_e[0] === "enter" && (wt && !qe && !Ee && !nn && (nn = re), qe = void 0);
|
|
8640
8640
|
break;
|
|
8641
8641
|
}
|
|
8642
8642
|
case "linePrefix":
|
|
@@ -8648,7 +8648,7 @@ function cm(e) {
|
|
|
8648
8648
|
default:
|
|
8649
8649
|
qe = void 0;
|
|
8650
8650
|
}
|
|
8651
|
-
if (!Ee &&
|
|
8651
|
+
if (!Ee && _e[0] === "enter" && _e[1].type === "listItemPrefix" || Ee === -1 && _e[0] === "exit" && (_e[1].type === "listUnordered" || _e[1].type === "listOrdered")) {
|
|
8652
8652
|
if (wt) {
|
|
8653
8653
|
let kt = re;
|
|
8654
8654
|
for (it = void 0; kt--; ) {
|
|
@@ -8660,18 +8660,18 @@ function cm(e) {
|
|
|
8660
8660
|
}
|
|
8661
8661
|
nn && (!it || nn < it) && (wt._spread = !0), wt.end = Object.assign(
|
|
8662
8662
|
{},
|
|
8663
|
-
it ? O[it][1].start :
|
|
8664
|
-
), O.splice(it || re, 0, ["exit", wt,
|
|
8663
|
+
it ? O[it][1].start : _e[1].end
|
|
8664
|
+
), O.splice(it || re, 0, ["exit", wt, _e[2]]), re++, Q++;
|
|
8665
8665
|
}
|
|
8666
|
-
if (
|
|
8666
|
+
if (_e[1].type === "listItemPrefix") {
|
|
8667
8667
|
const kt = {
|
|
8668
8668
|
type: "listItem",
|
|
8669
8669
|
_spread: !1,
|
|
8670
|
-
start: Object.assign({},
|
|
8670
|
+
start: Object.assign({}, _e[1].start),
|
|
8671
8671
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
8672
8672
|
end: void 0
|
|
8673
8673
|
};
|
|
8674
|
-
wt = kt, O.splice(re, 0, ["enter", kt,
|
|
8674
|
+
wt = kt, O.splice(re, 0, ["enter", kt, _e[2]]), re++, Q++, nn = void 0, qe = !0;
|
|
8675
8675
|
}
|
|
8676
8676
|
}
|
|
8677
8677
|
}
|
|
@@ -8779,7 +8779,7 @@ function cm(e) {
|
|
|
8779
8779
|
function ie(O) {
|
|
8780
8780
|
const Q = this.stack[this.stack.length - 1].children;
|
|
8781
8781
|
let re = Q[Q.length - 1];
|
|
8782
|
-
(!re || re.type !== "text") && (re =
|
|
8782
|
+
(!re || re.type !== "text") && (re = Ae(), re.position = {
|
|
8783
8783
|
start: Ot(O.start),
|
|
8784
8784
|
// @ts-expect-error: we’ll add `end` later.
|
|
8785
8785
|
end: void 0
|
|
@@ -8822,7 +8822,7 @@ function cm(e) {
|
|
|
8822
8822
|
delete O.identifier, delete O.label;
|
|
8823
8823
|
this.data.referenceType = void 0;
|
|
8824
8824
|
}
|
|
8825
|
-
function
|
|
8825
|
+
function xe() {
|
|
8826
8826
|
const O = this.stack[this.stack.length - 1];
|
|
8827
8827
|
if (this.data.inReference) {
|
|
8828
8828
|
const P = this.data.referenceType || "shortcut";
|
|
@@ -8985,7 +8985,7 @@ function cm(e) {
|
|
|
8985
8985
|
children: []
|
|
8986
8986
|
};
|
|
8987
8987
|
}
|
|
8988
|
-
function
|
|
8988
|
+
function Ae() {
|
|
8989
8989
|
return {
|
|
8990
8990
|
type: "text",
|
|
8991
8991
|
value: ""
|
|
@@ -11159,7 +11159,7 @@ function tl(e) {
|
|
|
11159
11159
|
components: a,
|
|
11160
11160
|
ignoreInvalidStyle: !0,
|
|
11161
11161
|
jsx: L,
|
|
11162
|
-
jsxs:
|
|
11162
|
+
jsxs: Ce,
|
|
11163
11163
|
passKeys: !0,
|
|
11164
11164
|
passNode: !0
|
|
11165
11165
|
});
|
|
@@ -17538,9 +17538,9 @@ const Yb = (e) => /* @__PURE__ */ Fe.createElement("svg", { xmlns: "http://www.w
|
|
|
17538
17538
|
metaData: t
|
|
17539
17539
|
}) => {
|
|
17540
17540
|
const { chatlineLabelUserTranslation: n } = pa();
|
|
17541
|
-
return /* @__PURE__ */
|
|
17541
|
+
return /* @__PURE__ */ Ce("div", { className: "flex px-3 justify-between mt-8 bg-gray-200 rounded-lg", children: [
|
|
17542
17542
|
/* @__PURE__ */ L("div", { className: "w-10 mr-3 flex-col content-center", children: /* @__PURE__ */ L("div", { children: /* @__PURE__ */ L(Yb, { fill: "#4564d6" }) }) }),
|
|
17543
|
-
/* @__PURE__ */
|
|
17543
|
+
/* @__PURE__ */ Ce(
|
|
17544
17544
|
"div",
|
|
17545
17545
|
{
|
|
17546
17546
|
className: `w-full p-4 rounded-lg transition-all duration-300 ${t?.isErrorMessage ? "bg-red-100 border-l-4 border-red-400 text-red-800 shadow-md animate-fade-in" : " text-gray-800"}`,
|
|
@@ -19586,9 +19586,9 @@ function i2({
|
|
|
19586
19586
|
}
|
|
19587
19587
|
const a2 = ({ content: e, metaData: t, context: n, seenRootEl: r }) => {
|
|
19588
19588
|
const { chatlineLabelAssistantTranslation: i } = pa();
|
|
19589
|
-
return /* @__PURE__ */
|
|
19589
|
+
return /* @__PURE__ */ Ce("div", { className: "flex justify-between mt-8 px-3 chatLineAssistant", children: [
|
|
19590
19590
|
/* @__PURE__ */ L("div", { className: "w-10 mr-3 mt-6", children: /* @__PURE__ */ L("div", { children: /* @__PURE__ */ L(e2, {}) }) }),
|
|
19591
|
-
/* @__PURE__ */
|
|
19591
|
+
/* @__PURE__ */ Ce(
|
|
19592
19592
|
"div",
|
|
19593
19593
|
{
|
|
19594
19594
|
className: `w-full p-4 rounded-lg transition-all duration-300 ${t?.isErrorMessage ? "bg-red-100 border-l-4 border-red-400 text-red-800 shadow-md animate-fade-in" : "bg-white text-gray-800"}`,
|
|
@@ -19625,7 +19625,7 @@ const a2 = ({ content: e, metaData: t, context: n, seenRootEl: r }) => {
|
|
|
19625
19625
|
metaData: n,
|
|
19626
19626
|
context: r,
|
|
19627
19627
|
seenRootEl: i
|
|
19628
|
-
}) => /* @__PURE__ */
|
|
19628
|
+
}) => /* @__PURE__ */ Ce(vt, { children: [
|
|
19629
19629
|
e === "user" && /* @__PURE__ */ L(jb, { content: t, metaData: n }),
|
|
19630
19630
|
e === "assistant" && /* @__PURE__ */ L(
|
|
19631
19631
|
a2,
|
|
@@ -20556,13 +20556,13 @@ const dy = (e) => e.charCodeAt(e.length - 1) === 10, hy = (e) => {
|
|
|
20556
20556
|
}, R = () => {
|
|
20557
20557
|
d && d();
|
|
20558
20558
|
};
|
|
20559
|
-
return /* @__PURE__ */
|
|
20559
|
+
return /* @__PURE__ */ Ce(
|
|
20560
20560
|
"div",
|
|
20561
20561
|
{
|
|
20562
20562
|
style: { display: "flex", flexDirection: "column" },
|
|
20563
20563
|
className: `${e.classNameContainer} w-full`,
|
|
20564
20564
|
children: [
|
|
20565
|
-
/* @__PURE__ */
|
|
20565
|
+
/* @__PURE__ */ Ce("div", { style: { display: "flex", flexDirection: "column" }, children: [
|
|
20566
20566
|
/* @__PURE__ */ L("label", { ...m, className: e.classNameLabel, children: s }),
|
|
20567
20567
|
/* @__PURE__ */ L(
|
|
20568
20568
|
"textarea",
|
|
@@ -20625,7 +20625,7 @@ const dy = (e) => e.charCodeAt(e.length - 1) === 10, hy = (e) => {
|
|
|
20625
20625
|
disabled: t,
|
|
20626
20626
|
type: "button",
|
|
20627
20627
|
"aria-label": "Send message",
|
|
20628
|
-
children: /* @__PURE__ */ L("span", { className: "", "data-state": "closed", children: /* @__PURE__ */
|
|
20628
|
+
children: /* @__PURE__ */ L("span", { className: "", "data-state": "closed", children: /* @__PURE__ */ Ce(
|
|
20629
20629
|
"svg",
|
|
20630
20630
|
{
|
|
20631
20631
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -20673,7 +20673,7 @@ const py = {
|
|
|
20673
20673
|
"chatbot.error.api.500": "Oops ! There has been an error. Please try again later.",
|
|
20674
20674
|
"chatbot.chatline.label.user": "You",
|
|
20675
20675
|
"chatbot.chatline.label.assistant": "Assistant",
|
|
20676
|
-
"chatbot.chatline.loading.function.genericSearchMessage": "
|
|
20676
|
+
"chatbot.chatline.loading.function.genericSearchMessage": "Thiking ...",
|
|
20677
20677
|
"chatbot.chatline.loading.function.search": "Search",
|
|
20678
20678
|
"chatbot.chatline.loading.function.extractProductName": "Looking into the cavern",
|
|
20679
20679
|
"chatbot.chatline.loading.function.suggestProductName": "Consulting the shadocks",
|
|
@@ -20697,7 +20697,7 @@ const py = {
|
|
|
20697
20697
|
"chatbot.chatline.label.user": "Vous",
|
|
20698
20698
|
"chatbot.chatline.label.assistant": "Assistant",
|
|
20699
20699
|
"chatbot.chatline.loading.function.search": "Recherche",
|
|
20700
|
-
"chatbot.chatline.loading.function.genericSearchMessage": "Je
|
|
20700
|
+
"chatbot.chatline.loading.function.genericSearchMessage": "Je réfléchis ...",
|
|
20701
20701
|
"chatbot.chatline.loading.function.extractProductName": "Recherche dans la caverne",
|
|
20702
20702
|
"chatbot.chatline.loading.function.suggestProductName": "Consultation des shadocks",
|
|
20703
20703
|
"chatbot.chatline.loading.function.criteriaDefinition": "Recherche des ziboublis",
|
|
@@ -20840,14 +20840,11 @@ const yc = () => {
|
|
|
20840
20840
|
stepTranslation: a,
|
|
20841
20841
|
lookingForProductTranslation: s
|
|
20842
20842
|
} = yc();
|
|
20843
|
-
return /* @__PURE__ */ L(vt, { children: e === "loadingIntermediaryStates" && /* @__PURE__ */
|
|
20844
|
-
/* @__PURE__ */
|
|
20845
|
-
/* @__PURE__ */
|
|
20846
|
-
s,
|
|
20847
|
-
"..."
|
|
20848
|
-
] }),
|
|
20843
|
+
return /* @__PURE__ */ L(vt, { children: e === "loadingIntermediaryStates" && /* @__PURE__ */ Ce("div", { children: [
|
|
20844
|
+
/* @__PURE__ */ Ce("div", { children: [
|
|
20845
|
+
/* @__PURE__ */ L("p", { className: "text-center my-2 text-lg", children: s }),
|
|
20849
20846
|
/* @__PURE__ */ L("p", { className: "text-center my-1 text-md", children: t && `${i(t)}` }),
|
|
20850
|
-
n && /* @__PURE__ */
|
|
20847
|
+
n && /* @__PURE__ */ Ce("p", { className: "text-center my-2", children: [
|
|
20851
20848
|
a,
|
|
20852
20849
|
/* @__PURE__ */ L("span", { children: " " }),
|
|
20853
20850
|
n,
|
|
@@ -20875,7 +20872,7 @@ const yc = () => {
|
|
|
20875
20872
|
onKeyUp: (t) => {
|
|
20876
20873
|
(t.key === "Enter" || t.key === " ") && t.preventDefault();
|
|
20877
20874
|
},
|
|
20878
|
-
children: /* @__PURE__ */ L("span", { className: "", "data-state": "closed", children: /* @__PURE__ */
|
|
20875
|
+
children: /* @__PURE__ */ L("span", { className: "", "data-state": "closed", children: /* @__PURE__ */ Ce(
|
|
20879
20876
|
"svg",
|
|
20880
20877
|
{
|
|
20881
20878
|
fill: "#000000",
|
|
@@ -20895,7 +20892,7 @@ const yc = () => {
|
|
|
20895
20892
|
"stroke-linejoin": "round"
|
|
20896
20893
|
}
|
|
20897
20894
|
),
|
|
20898
|
-
/* @__PURE__ */
|
|
20895
|
+
/* @__PURE__ */ Ce("g", { id: "SVGRepo_iconCarrier", children: [
|
|
20899
20896
|
" ",
|
|
20900
20897
|
/* @__PURE__ */ L("path", { d: "M148.5,0C66.486,0,0,66.486,0,148.5S66.486,297,148.5,297S297,230.514,297,148.5S230.514,0,148.5,0z M213.292,190.121 c0,12.912-10.467,23.379-23.378,23.379H106.67c-12.911,0-23.378-10.467-23.378-23.379v-83.242c0-12.912,10.467-23.379,23.378-23.379 h83.244c12.911,0,23.378,10.467,23.378,23.379V190.121z" }),
|
|
20901
20898
|
" "
|
|
@@ -20968,7 +20965,7 @@ const yc = () => {
|
|
|
20968
20965
|
DiscussionLimitReachedExplainationTranslation: r,
|
|
20969
20966
|
DiscussionLimitReachedTitleTranslation: i
|
|
20970
20967
|
} = vy();
|
|
20971
|
-
return /* @__PURE__ */ L(vt, { children: /* @__PURE__ */ L("div", { className: "px-3 mt-4", children: /* @__PURE__ */
|
|
20968
|
+
return /* @__PURE__ */ L(vt, { children: /* @__PURE__ */ L("div", { className: "px-3 mt-4", children: /* @__PURE__ */ Ce(
|
|
20972
20969
|
"div",
|
|
20973
20970
|
{
|
|
20974
20971
|
role: "status",
|
|
@@ -20994,10 +20991,10 @@ const yc = () => {
|
|
|
20994
20991
|
)
|
|
20995
20992
|
}
|
|
20996
20993
|
) }),
|
|
20997
|
-
/* @__PURE__ */
|
|
20994
|
+
/* @__PURE__ */ Ce("div", { className: "flex-1 min-w-0", children: [
|
|
20998
20995
|
/* @__PURE__ */ L("p", { className: "font-semibold", children: i }),
|
|
20999
20996
|
/* @__PURE__ */ L("p", { className: "text-sm break-words", children: r }),
|
|
21000
|
-
/* @__PURE__ */ L("div", { className: "my-2", children: /* @__PURE__ */
|
|
20997
|
+
/* @__PURE__ */ L("div", { className: "my-2", children: /* @__PURE__ */ Ce(
|
|
21001
20998
|
"button",
|
|
21002
20999
|
{
|
|
21003
21000
|
type: "button",
|
|
@@ -21220,9 +21217,9 @@ const Ac = De.createContext({
|
|
|
21220
21217
|
message: e,
|
|
21221
21218
|
actionLabel: t,
|
|
21222
21219
|
onClick: n
|
|
21223
|
-
}) => /* @__PURE__ */
|
|
21220
|
+
}) => /* @__PURE__ */ Ce("div", { className: "mt-3 mb-2 flex items-start gap-2 rounded-md border border-sky-100 bg-sky-50 px-3 py-2 text-xs text-sky-900 shadow-sm", children: [
|
|
21224
21221
|
/* @__PURE__ */ L("div", { className: "mt-0.5 inline-flex h-4 w-4 items-center justify-center rounded-full bg-sky-500 text-[10px] font-semibold text-white", children: "i" }),
|
|
21225
|
-
/* @__PURE__ */
|
|
21222
|
+
/* @__PURE__ */ Ce("div", { className: "flex-1", children: [
|
|
21226
21223
|
/* @__PURE__ */ L("p", { className: "leading-snug", children: e }),
|
|
21227
21224
|
/* @__PURE__ */ L(
|
|
21228
21225
|
"button",
|
|
@@ -21265,7 +21262,7 @@ const _c = ({
|
|
|
21265
21262
|
C
|
|
21266
21263
|
), [$, F] = de(
|
|
21267
21264
|
null
|
|
21268
|
-
), [Y, z] = de(!1), { companySettings: K } = nt(Tn), { appCurrentLang: fe } = nt(Tc),
|
|
21265
|
+
), [Y, z] = de(!1), { companySettings: K } = nt(Tn), { appCurrentLang: fe } = nt(Tc), xe = w !== "notLoading" || (c?.items?.length ?? 0) > 0, [Le, He] = de(!0), p = !!x && (x.items?.length ?? 0) > 0, H = () => {
|
|
21269
21266
|
v(), He(!1);
|
|
21270
21267
|
}, W = we(w);
|
|
21271
21268
|
Se(() => {
|
|
@@ -21279,7 +21276,7 @@ const _c = ({
|
|
|
21279
21276
|
c.discussionId
|
|
21280
21277
|
]);
|
|
21281
21278
|
const T = {
|
|
21282
|
-
...
|
|
21279
|
+
...xe ? {
|
|
21283
21280
|
maxHeight: "100vh"
|
|
21284
21281
|
//TODO overridable with custom css
|
|
21285
21282
|
} : {
|
|
@@ -21317,7 +21314,7 @@ const _c = ({
|
|
|
21317
21314
|
fetch(`${ge}/ai/prompt/${e}`, rt).then(async (ze) => {
|
|
21318
21315
|
const Ut = ze?.body?.getReader(), Ve = new TextDecoder();
|
|
21319
21316
|
let St = "", ht = "", le = !1, Ne = !1, be = null;
|
|
21320
|
-
const
|
|
21317
|
+
const Ae = ze.headers.get("discussionId"), Re = parseInt(Ae, 10);
|
|
21321
21318
|
A(Re), await new ReadableStream({
|
|
21322
21319
|
start(P) {
|
|
21323
21320
|
return Q();
|
|
@@ -21342,30 +21339,30 @@ const _c = ({
|
|
|
21342
21339
|
for (const qe of it)
|
|
21343
21340
|
if (sn.isObjectOutputstreamTextDTO(qe)) {
|
|
21344
21341
|
const {
|
|
21345
|
-
content:
|
|
21342
|
+
content: _e,
|
|
21346
21343
|
isLastAnswer: kt,
|
|
21347
21344
|
streamSourceUuid: at,
|
|
21348
21345
|
shouldStopStream: Ua
|
|
21349
21346
|
} = qe;
|
|
21350
|
-
be && be !== at && (St += '<span style="display:block;height:1rem;"></span>'), be = at, (kt || Ua) && (Ne = !0), P.enqueue(
|
|
21347
|
+
be && be !== at && (St += '<span style="display:block;height:1rem;"></span>'), be = at, (kt || Ua) && (Ne = !0), P.enqueue(_e), yy(_e) ? (ht += _e, St += ht, ht = "", le = !1) : le || Ty(_e) ? (ht += _e, le = !0) : St += _e, _(
|
|
21351
21348
|
St,
|
|
21352
21349
|
Ua
|
|
21353
21350
|
);
|
|
21354
21351
|
} else if (sn.isObjectOutputstreamLoadingCurrentStepNumberDTO(
|
|
21355
21352
|
qe
|
|
21356
21353
|
)) {
|
|
21357
|
-
const { content:
|
|
21358
|
-
P.enqueue(
|
|
21354
|
+
const { content: _e } = qe;
|
|
21355
|
+
P.enqueue(_e), F(_e);
|
|
21359
21356
|
} else if (sn.isObjectOutputstreamLoadingCurrentStepNameDTO(
|
|
21360
21357
|
qe
|
|
21361
21358
|
)) {
|
|
21362
|
-
const { content:
|
|
21363
|
-
P.enqueue(
|
|
21359
|
+
const { content: _e } = qe;
|
|
21360
|
+
P.enqueue(_e), S(_e);
|
|
21364
21361
|
} else if (sn.isObjectOutputstreamLoadingNumberOfStepsDTO(
|
|
21365
21362
|
qe
|
|
21366
21363
|
)) {
|
|
21367
|
-
const { content:
|
|
21368
|
-
P.enqueue(
|
|
21364
|
+
const { content: _e } = qe;
|
|
21365
|
+
P.enqueue(_e), se(_e);
|
|
21369
21366
|
} else
|
|
21370
21367
|
console.warn(`Object not handled - ${qe}`);
|
|
21371
21368
|
if (Ee && Ne) {
|
|
@@ -21381,7 +21378,7 @@ const _c = ({
|
|
|
21381
21378
|
console.error(ze), console.log("Cancelling stream"), R("notLoading"), dr = new AbortController();
|
|
21382
21379
|
});
|
|
21383
21380
|
};
|
|
21384
|
-
return /* @__PURE__ */
|
|
21381
|
+
return /* @__PURE__ */ Ce(
|
|
21385
21382
|
"div",
|
|
21386
21383
|
{
|
|
21387
21384
|
className: [
|
|
@@ -21395,7 +21392,7 @@ const _c = ({
|
|
|
21395
21392
|
ref: n,
|
|
21396
21393
|
style: T,
|
|
21397
21394
|
children: [
|
|
21398
|
-
/* @__PURE__ */
|
|
21395
|
+
/* @__PURE__ */ Ce(
|
|
21399
21396
|
"div",
|
|
21400
21397
|
{
|
|
21401
21398
|
className: "flex-1 overflow-y-auto min-h-0 messagesContainer",
|
|
@@ -21715,7 +21712,7 @@ function $y() {
|
|
|
21715
21712
|
function H(W, T, G, ee, j, Z) {
|
|
21716
21713
|
var te = W[T], ne = fe(te);
|
|
21717
21714
|
if (ne !== p) {
|
|
21718
|
-
var X =
|
|
21715
|
+
var X = xe(te);
|
|
21719
21716
|
return new A(
|
|
21720
21717
|
"Invalid " + ee + " `" + j + "` of type " + ("`" + X + "` supplied to `" + G + "`, expected ") + ("`" + p + "`."),
|
|
21721
21718
|
{ expectedType: p }
|
|
@@ -21788,7 +21785,7 @@ function $y() {
|
|
|
21788
21785
|
if (E(Z, p[te]))
|
|
21789
21786
|
return null;
|
|
21790
21787
|
var ne = JSON.stringify(p, function(ge, U) {
|
|
21791
|
-
var Me =
|
|
21788
|
+
var Me = xe(U);
|
|
21792
21789
|
return Me === "symbol" ? String(U) : U;
|
|
21793
21790
|
});
|
|
21794
21791
|
return new A("Invalid " + ee + " `" + j + "` of value `" + String(Z) + "` " + ("supplied to `" + G + "`, expected one of " + ne + "."));
|
|
@@ -21853,7 +21850,7 @@ function $y() {
|
|
|
21853
21850
|
for (var ne in p) {
|
|
21854
21851
|
var X = p[ne];
|
|
21855
21852
|
if (typeof X != "function")
|
|
21856
|
-
return $(G, ee, j, ne,
|
|
21853
|
+
return $(G, ee, j, ne, xe(X));
|
|
21857
21854
|
var ge = X(Z, ne, G, ee, j + "." + ne, n);
|
|
21858
21855
|
if (ge)
|
|
21859
21856
|
return ge;
|
|
@@ -21871,7 +21868,7 @@ function $y() {
|
|
|
21871
21868
|
for (var X in ne) {
|
|
21872
21869
|
var ge = p[X];
|
|
21873
21870
|
if (r(p, X) && typeof ge != "function")
|
|
21874
|
-
return $(G, ee, j, X,
|
|
21871
|
+
return $(G, ee, j, X, xe(ge));
|
|
21875
21872
|
if (!ge)
|
|
21876
21873
|
return new A(
|
|
21877
21874
|
"Invalid " + ee + " `" + j + "` key `" + X + "` supplied to `" + G + "`.\nBad object: " + JSON.stringify(W[T], null, " ") + `
|
|
@@ -21925,7 +21922,7 @@ Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
|
|
|
21925
21922
|
var H = typeof p;
|
|
21926
21923
|
return Array.isArray(p) ? "array" : p instanceof RegExp ? "object" : K(H, p) ? "symbol" : H;
|
|
21927
21924
|
}
|
|
21928
|
-
function
|
|
21925
|
+
function xe(p) {
|
|
21929
21926
|
if (typeof p > "u" || p === null)
|
|
21930
21927
|
return "" + p;
|
|
21931
21928
|
var H = fe(p);
|
|
@@ -21938,7 +21935,7 @@ Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
|
|
|
21938
21935
|
return H;
|
|
21939
21936
|
}
|
|
21940
21937
|
function Le(p) {
|
|
21941
|
-
var H =
|
|
21938
|
+
var H = xe(p);
|
|
21942
21939
|
switch (H) {
|
|
21943
21940
|
case "array":
|
|
21944
21941
|
case "object":
|
|
@@ -22605,7 +22602,7 @@ const Ky = ({ setIsWidgetOpen: e }) => /* @__PURE__ */ L(vt, { children: /* @__P
|
|
|
22605
22602
|
)
|
|
22606
22603
|
}
|
|
22607
22604
|
) }), Zy = Mu(
|
|
22608
|
-
({ props: e }, t) => /* @__PURE__ */
|
|
22605
|
+
({ props: e }, t) => /* @__PURE__ */ Ce(
|
|
22609
22606
|
"div",
|
|
22610
22607
|
{
|
|
22611
22608
|
ref: t,
|
|
@@ -22620,7 +22617,7 @@ const Ky = ({ setIsWidgetOpen: e }) => /* @__PURE__ */ L(vt, { children: /* @__P
|
|
|
22620
22617
|
bg-white shadow-xl flex flex-col overflow-hidden
|
|
22621
22618
|
`,
|
|
22622
22619
|
children: [
|
|
22623
|
-
/* @__PURE__ */
|
|
22620
|
+
/* @__PURE__ */ Ce(
|
|
22624
22621
|
"div",
|
|
22625
22622
|
{
|
|
22626
22623
|
className: "relative bg-violet-700 py-2 text-white text-center flex justify-center items-center",
|
|
@@ -22680,8 +22677,8 @@ const Ky = ({ setIsWidgetOpen: e }) => /* @__PURE__ */ L(vt, { children: /* @__P
|
|
|
22680
22677
|
}
|
|
22681
22678
|
}), tx = ({ displayMode: e, appToken: t }) => {
|
|
22682
22679
|
const [n, r] = de(!1), { appInternalContext: i } = nt(kc);
|
|
22683
|
-
return /* @__PURE__ */
|
|
22684
|
-
e === En.LAUNCHER && i.hasFetchedSettings && /* @__PURE__ */
|
|
22680
|
+
return /* @__PURE__ */ Ce(vt, { children: [
|
|
22681
|
+
e === En.LAUNCHER && i.hasFetchedSettings && /* @__PURE__ */ Ce(vt, { children: [
|
|
22685
22682
|
/* @__PURE__ */ L(
|
|
22686
22683
|
Jc,
|
|
22687
22684
|
{
|
|
@@ -24685,7 +24682,7 @@ function Nx({
|
|
|
24685
24682
|
return E.appendChild(_), c(_), () => {
|
|
24686
24683
|
c(null), m.remove(), u.current = null;
|
|
24687
24684
|
};
|
|
24688
|
-
}, [a, e]), /* @__PURE__ */
|
|
24685
|
+
}, [a, e]), /* @__PURE__ */ Ce(vt, { children: [
|
|
24689
24686
|
a === "inline" && /* @__PURE__ */ L("div", { ref: s }),
|
|
24690
24687
|
" ",
|
|
24691
24688
|
o && Dc(
|