@alxxsck/ai-assistant 3.9.1 → 3.9.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/{Avatar-DYZMXzeU.js → Avatar-CN5cO5lL.js} +1 -1
- package/dist/{ChatWidgetContent-Dobcw4dL.js → ChatWidgetContent-vam_rCAz.js} +90 -81
- package/dist/{MediaVideoPlayer-CpFrFtgc.js → MediaVideoPlayer-c33ZaBYE.js} +2 -2
- package/dist/{MediaVideoViewer-DGFmY3Sc.js → MediaVideoViewer-BQmvzpx0.js} +3 -3
- package/dist/bridge-ai-chat-widget.es.js +1 -1
- package/dist/{index-DQncn0pT.js → index-gOiy4KzG.js} +3 -3
- package/dist/{mount-Ci-JrfQL.js → mount-Df-vqgr1.js} +1007 -1003
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as qs } from "./index-
|
|
1
|
+
import { l as qs } from "./index-gOiy4KzG.js";
|
|
2
2
|
var Dr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
3
3
|
const Lc = "182", Nd = 0, Tl = 1, Fd = 2, Ys = 1, Zu = 2, Wr = 3, ti = 0, qt = 1, Ln = 2, $n = 0, lr = 1, Al = 2, El = 3, wl = 4, Ud = 5, Ii = 100, Od = 101, kd = 102, Bd = 103, zd = 104, Hd = 200, Gd = 201, Vd = 202, Wd = 203, yo = 204, Mo = 205, Xd = 206, jd = 207, qd = 208, Yd = 209, Kd = 210, Jd = 211, Zd = 212, Qd = 213, $d = 214, To = 0, Ao = 1, Eo = 2, pr = 3, wo = 4, Ro = 5, Co = 6, Po = 7, Dc = 0, ef = 1, tf = 2, Un = 0, Qu = 1, $u = 2, eh = 3, th = 4, nh = 5, ih = 6, Nc = 7, Rl = "attached", nf = "detached", rh = 300, Bi = 301, mr = 302, Io = 303, Lo = 304, ga = 306, Ft = 1e3, Nn = 1001, ra = 1002, Tt = 1003, sh = 1004, Xr = 1005, At = 1006, Ks = 1007, Zn = 1008, en = 1009, ah = 1010, oh = 1011, ns = 1012, Fc = 1013, kn = 1014, un = 1015, ni = 1016, Uc = 1017, Oc = 1018, is = 1020, ch = 35902, lh = 35899, uh = 1021, hh = 1022, hn = 1023, ii = 1026, Di = 1027, kc = 1028, Bc = 1029, _r = 1030, zc = 1031, Hc = 1033, Js = 33776, Zs = 33777, Qs = 33778, $s = 33779, Do = 35840, No = 35841, Fo = 35842, Uo = 35843, Oo = 36196, ko = 37492, Bo = 37496, zo = 37488, Ho = 37489, Go = 37490, Vo = 37491, Wo = 37808, Xo = 37809, jo = 37810, qo = 37811, Yo = 37812, Ko = 37813, Jo = 37814, Zo = 37815, Qo = 37816, $o = 37817, ec = 37818, tc = 37819, nc = 37820, ic = 37821, rc = 36492, sc = 36494, ac = 36495, oc = 36283, cc = 36284, lc = 36285, uc = 36286, dh = 2200, rf = 2201, sf = 2202, rs = 2300, ss = 2301, Ca = 2302, ar = 2400, or = 2401, sa = 2402, Gc = 2500, af = 2501, of = 0, fh = 1, hc = 2, cf = 3200, Vc = 0, lf = 1, pi = "", nt = "srgb", Wt = "srgb-linear", aa = "linear", $e = "srgb", Wi = 7680, Cl = 519, uf = 512, hf = 513, df = 514, Wc = 515, ff = 516, pf = 517, Xc = 518, mf = 519, dc = 35044, Pl = "300 es", Fn = 2e3, oa = 2001;
|
|
4
4
|
function ph(s) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as N, jsx as i, Fragment as ye } from "react/jsx-runtime";
|
|
2
2
|
import * as De from "react";
|
|
3
3
|
import ae, { useContext as Be, createContext as it, useId as Et, useState as R, useMemo as ke, useCallback as Q, useEffect as B, useRef as A, useSyncExternalStore as nr, Fragment as bn, useReducer as ya, createRef as Go, useLayoutEffect as Re, Suspense as Un, lazy as rr, memo as xa } from "react";
|
|
4
|
-
import { Y as Fe, K as je, a as ar, y as st, n as Ct, b as _t, o as Ne, c as Xt, s as cn, u as Yt, l as Zt, d as Qt, r as $r, e as qo, t as or, T as Yo, p as Na, f as Ea, g as Ca, h as Xo, O as hn, i as _a, j as pt, k as an, m as Zo, A as Dr, $ as Qo, q as Jo, V as ei, v as fe, w as We, x as de, z as ve, P as Pe, L as me, B as ti, C as ni, S as ka, D as ri, E as ai, F as oi, G as Jt, H as ir, I as Ta, J as sr, M as Ge, N as Se, Q as Lt, R as tt, U as ii, W as si, X as yn, Z as li, _ as lr, a0 as ci, a1 as di, a2 as ui, a3 as Aa, a4 as pi, a5 as hi, a6 as fi, a7 as cr, a8 as mi, a9 as gi, aa as dr, ab as Qe, ac as vi, ad as wi, ae as bi, af as yi, ag as xi, ah as Ni, ai as dn, aj as Ei, ak as nt, al as Ci, am as Sa, an as Ma, ao as _i, ap as ki, aq as Ti, ar as Ai, as as Si, at as Mi, au as La, av as ur, aw as Ra, ax as Li, ay as Ri, az as Ii, aA as Oi, aB as Pi, aC as pr, aD as $i, aE as un, aF as Di, aG as Fi, aH as zi, aI as Ui, aJ as Hi, aK as Vi, aL as Bi, aM as Rt, aN as ji, aO as Mn, aP as Wi, aQ as Pt, aR as Hn } from "./mount-
|
|
5
|
-
import { m as Ki, M as bt, u as Gi, e as qi, o as Yi, g as Xi, L as hr, d as Zi, f as Qi, a as Ji } from "./index-
|
|
4
|
+
import { Y as Fe, K as je, a as ar, y as st, n as Ct, b as _t, o as Ne, c as Xt, s as cn, u as Yt, l as Zt, d as Qt, r as $r, e as qo, t as or, T as Yo, p as Na, f as Ea, g as Ca, h as Xo, O as hn, i as _a, j as pt, k as an, m as Zo, A as Dr, $ as Qo, q as Jo, V as ei, v as fe, w as We, x as de, z as ve, P as Pe, L as me, B as ti, C as ni, S as ka, D as ri, E as ai, F as oi, G as Jt, H as ir, I as Ta, J as sr, M as Ge, N as Se, Q as Lt, R as tt, U as ii, W as si, X as yn, Z as li, _ as lr, a0 as ci, a1 as di, a2 as ui, a3 as Aa, a4 as pi, a5 as hi, a6 as fi, a7 as cr, a8 as mi, a9 as gi, aa as dr, ab as Qe, ac as vi, ad as wi, ae as bi, af as yi, ag as xi, ah as Ni, ai as dn, aj as Ei, ak as nt, al as Ci, am as Sa, an as Ma, ao as _i, ap as ki, aq as Ti, ar as Ai, as as Si, at as Mi, au as La, av as ur, aw as Ra, ax as Li, ay as Ri, az as Ii, aA as Oi, aB as Pi, aC as pr, aD as $i, aE as un, aF as Di, aG as Fi, aH as zi, aI as Ui, aJ as Hi, aK as Vi, aL as Bi, aM as Rt, aN as ji, aO as Mn, aP as Wi, aQ as Pt, aR as Hn } from "./mount-Df-vqgr1.js";
|
|
5
|
+
import { m as Ki, M as bt, u as Gi, e as qi, o as Yi, g as Xi, L as hr, d as Zi, f as Qi, a as Ji } from "./index-gOiy4KzG.js";
|
|
6
6
|
import { createPortal as Ia } from "react-dom";
|
|
7
7
|
let es = "span";
|
|
8
8
|
var fn = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(fn || {});
|
|
@@ -2619,7 +2619,7 @@ function Xc(e, t) {
|
|
|
2619
2619
|
}
|
|
2620
2620
|
return Yc(y, a, r.length, _, k), y;
|
|
2621
2621
|
}
|
|
2622
|
-
const Zc = rr(() => import("./MediaVideoViewer-
|
|
2622
|
+
const Zc = rr(() => import("./MediaVideoViewer-BQmvzpx0.js"));
|
|
2623
2623
|
function Qc({
|
|
2624
2624
|
entitlementId: e,
|
|
2625
2625
|
previewUrl: t,
|
|
@@ -3164,7 +3164,7 @@ function ed({
|
|
|
3164
3164
|
)
|
|
3165
3165
|
] });
|
|
3166
3166
|
}
|
|
3167
|
-
const td = rr(() => import("./MediaVideoPlayer-
|
|
3167
|
+
const td = rr(() => import("./MediaVideoPlayer-c33ZaBYE.js")), nd = rr(() => import("./MediaVideoViewer-BQmvzpx0.js"));
|
|
3168
3168
|
function rd({ messageId: e }) {
|
|
3169
3169
|
const { config: t, api: n } = We(), { t: r } = de(), a = t.customerInteractionSession.accessToken, [o, s] = R(), [c, d] = R(""), l = A(null), [f, u] = R(!0), p = `${a}:${e}`, [h, m] = R(!1), [v, b] = R(0), [T, g] = R(""), [E, y] = R(""), [k, _] = R(!1), x = o?.token === a && o.messageId === e ? o.photo : void 0, I = x?.state === "UNLOCKED" && E !== p && (!x.deadline || performance.now() < x.deadline) && (!x.localExpiresAt || Date.now() < x.localExpiresAt) ? x.original?.url : void 0;
|
|
3170
3170
|
B(() => {
|
|
@@ -5592,7 +5592,7 @@ function Vd() {
|
|
|
5592
5592
|
{
|
|
5593
5593
|
ref: ee,
|
|
5594
5594
|
"aria-busy": kn || Ie,
|
|
5595
|
-
className: "chat-timeline relative z-1 flex
|
|
5595
|
+
className: "chat-timeline relative z-1 flex shrink-0 flex-col justify-end gap-2 pt-3 pb-3",
|
|
5596
5596
|
children: [
|
|
5597
5597
|
(kt || Ie) && /* @__PURE__ */ N("div", { className: "relative flex h-7 shrink-0 items-center justify-center", children: [
|
|
5598
5598
|
/* @__PURE__ */ i(
|
|
@@ -6180,90 +6180,99 @@ function Jd({
|
|
|
6180
6180
|
state: { chatMode: l }
|
|
6181
6181
|
}), T();
|
|
6182
6182
|
};
|
|
6183
|
-
return /* @__PURE__ */
|
|
6183
|
+
return /* @__PURE__ */ N(
|
|
6184
6184
|
"div",
|
|
6185
6185
|
{
|
|
6186
6186
|
...t,
|
|
6187
6187
|
className: ve("chat-top-controls relative z-10", e),
|
|
6188
|
-
children:
|
|
6189
|
-
|
|
6190
|
-
|
|
6191
|
-
|
|
6192
|
-
|
|
6193
|
-
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
type: "button",
|
|
6198
|
-
className: "chat-icon-button",
|
|
6199
|
-
"aria-label": s("chat.listTitle"),
|
|
6200
|
-
onClick: y,
|
|
6201
|
-
children: /* @__PURE__ */ i(io, { className: "h-5 w-5", "aria-hidden": "true" })
|
|
6202
|
-
}
|
|
6203
|
-
),
|
|
6204
|
-
m && b.humanSupport !== "ASSIGNED" ? /* @__PURE__ */ N("div", { className: "flex min-w-0 items-center gap-3", children: [
|
|
6205
|
-
/* @__PURE__ */ i(
|
|
6206
|
-
lr,
|
|
6188
|
+
children: [
|
|
6189
|
+
/* @__PURE__ */ i(
|
|
6190
|
+
Qd,
|
|
6191
|
+
{
|
|
6192
|
+
draggable: o.presentation === "windowed",
|
|
6193
|
+
dragLabel: s("controls.move"),
|
|
6194
|
+
identity: /* @__PURE__ */ N("div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
6195
|
+
m && /* @__PURE__ */ i(
|
|
6196
|
+
"button",
|
|
6207
6197
|
{
|
|
6208
|
-
|
|
6209
|
-
|
|
6198
|
+
type: "button",
|
|
6199
|
+
className: "chat-icon-button",
|
|
6200
|
+
"aria-label": s("chat.listTitle"),
|
|
6201
|
+
onClick: y,
|
|
6202
|
+
children: /* @__PURE__ */ i(io, { className: "h-5 w-5", "aria-hidden": "true" })
|
|
6210
6203
|
}
|
|
6211
6204
|
),
|
|
6212
|
-
/* @__PURE__ */ N("div", { className: "flex min-w-0
|
|
6213
|
-
/* @__PURE__ */ i(
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
|
|
6219
|
-
|
|
6220
|
-
|
|
6221
|
-
|
|
6222
|
-
|
|
6223
|
-
|
|
6224
|
-
|
|
6225
|
-
|
|
6226
|
-
|
|
6227
|
-
|
|
6228
|
-
|
|
6229
|
-
|
|
6230
|
-
|
|
6205
|
+
m && b.humanSupport !== "ASSIGNED" ? /* @__PURE__ */ N("div", { className: "flex min-w-0 items-center gap-3", children: [
|
|
6206
|
+
/* @__PURE__ */ i(
|
|
6207
|
+
lr,
|
|
6208
|
+
{
|
|
6209
|
+
className: "h-8 w-8 shrink-0 text-[var(--chat-action-primary)]",
|
|
6210
|
+
"aria-hidden": "true"
|
|
6211
|
+
}
|
|
6212
|
+
),
|
|
6213
|
+
/* @__PURE__ */ N("div", { className: "flex min-w-0 flex-col gap-1 text-start", children: [
|
|
6214
|
+
/* @__PURE__ */ i("strong", { className: "block truncate text-sm leading-4 text-white", children: s("support.title") }),
|
|
6215
|
+
/* @__PURE__ */ i("span", { className: "block truncate text-xs leading-[13px] text-white/45", children: s(
|
|
6216
|
+
h.status === "CLOSED" ? "support.closed" : b.humanSupport === "WAITING_EXTERNAL" ? "support.externalWaiting" : "support.released"
|
|
6217
|
+
) })
|
|
6218
|
+
] })
|
|
6219
|
+
] }) : /* @__PURE__ */ i(
|
|
6220
|
+
jd,
|
|
6221
|
+
{
|
|
6222
|
+
conversationId: p ?? "lola-default",
|
|
6223
|
+
presentation: b
|
|
6224
|
+
}
|
|
6225
|
+
)
|
|
6231
6226
|
] }),
|
|
6232
|
-
|
|
6233
|
-
|
|
6234
|
-
|
|
6235
|
-
|
|
6236
|
-
|
|
6237
|
-
|
|
6238
|
-
|
|
6239
|
-
|
|
6240
|
-
|
|
6241
|
-
|
|
6242
|
-
|
|
6243
|
-
|
|
6244
|
-
|
|
6245
|
-
|
|
6246
|
-
|
|
6247
|
-
|
|
6248
|
-
|
|
6249
|
-
|
|
6250
|
-
|
|
6251
|
-
|
|
6252
|
-
|
|
6253
|
-
|
|
6254
|
-
|
|
6255
|
-
|
|
6256
|
-
|
|
6257
|
-
|
|
6258
|
-
|
|
6259
|
-
|
|
6260
|
-
|
|
6261
|
-
|
|
6262
|
-
|
|
6263
|
-
|
|
6264
|
-
|
|
6265
|
-
|
|
6266
|
-
|
|
6227
|
+
actions: /* @__PURE__ */ N(ye, { children: [
|
|
6228
|
+
!m && /* @__PURE__ */ N(ye, { children: [
|
|
6229
|
+
/* @__PURE__ */ i(Di, {}),
|
|
6230
|
+
/* @__PURE__ */ i(Qc, {})
|
|
6231
|
+
] }),
|
|
6232
|
+
!m && /* @__PURE__ */ i(
|
|
6233
|
+
me,
|
|
6234
|
+
{
|
|
6235
|
+
onClick: y,
|
|
6236
|
+
"aria-label": s("controls.openChatList"),
|
|
6237
|
+
"data-lola-drag-exclude": !0,
|
|
6238
|
+
className: "chat-icon-button",
|
|
6239
|
+
children: /* @__PURE__ */ i(Wl, { "aria-hidden": "true", className: "h-5 w-5", strokeWidth: 2 })
|
|
6240
|
+
}
|
|
6241
|
+
),
|
|
6242
|
+
/* @__PURE__ */ i(
|
|
6243
|
+
me,
|
|
6244
|
+
{
|
|
6245
|
+
type: "button",
|
|
6246
|
+
"aria-label": s("controls.collapse"),
|
|
6247
|
+
"data-lola-drag-exclude": !0,
|
|
6248
|
+
className: "chat-icon-button",
|
|
6249
|
+
onClick: g,
|
|
6250
|
+
children: /* @__PURE__ */ i(Bd, { "aria-hidden": "true", className: "h-5 w-5" })
|
|
6251
|
+
}
|
|
6252
|
+
),
|
|
6253
|
+
/* @__PURE__ */ i(
|
|
6254
|
+
me,
|
|
6255
|
+
{
|
|
6256
|
+
type: "button",
|
|
6257
|
+
"aria-label": s("controls.close"),
|
|
6258
|
+
"data-lola-drag-exclude": !0,
|
|
6259
|
+
className: "chat-icon-button",
|
|
6260
|
+
onClick: E,
|
|
6261
|
+
children: /* @__PURE__ */ i(ka, { "aria-hidden": "true", className: "h-4 w-4" })
|
|
6262
|
+
}
|
|
6263
|
+
)
|
|
6264
|
+
] })
|
|
6265
|
+
}
|
|
6266
|
+
),
|
|
6267
|
+
!m && /* @__PURE__ */ i(
|
|
6268
|
+
"div",
|
|
6269
|
+
{
|
|
6270
|
+
className: "avatar-rotation-anchor absolute end-4 top-[calc(100%+1.25rem)]",
|
|
6271
|
+
"data-lola-drag-exclude": !0,
|
|
6272
|
+
children: /* @__PURE__ */ i(Zd, {}, n)
|
|
6273
|
+
}
|
|
6274
|
+
)
|
|
6275
|
+
]
|
|
6267
6276
|
}
|
|
6268
6277
|
);
|
|
6269
6278
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as As, jsx as ot } from "react/jsx-runtime";
|
|
2
2
|
import w, { useRef as Ei, useEffect as vi, useLayoutEffect as Ts } from "react";
|
|
3
|
-
import { S as So } from "./index-
|
|
4
|
-
import { x as ko } from "./mount-
|
|
3
|
+
import { S as So } from "./index-gOiy4KzG.js";
|
|
4
|
+
import { x as ko } from "./mount-Df-vqgr1.js";
|
|
5
5
|
const Lo = /* @__PURE__ */ new Set([
|
|
6
6
|
"style",
|
|
7
7
|
"children",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { createPortal as h } from "react-dom";
|
|
3
3
|
import { useRef as b, useState as c, useEffect as w } from "react";
|
|
4
|
-
import x from "./MediaVideoPlayer-
|
|
5
|
-
import { x as g } from "./mount-
|
|
6
|
-
import { D as p, X as y } from "./ChatWidgetContent-
|
|
4
|
+
import x from "./MediaVideoPlayer-c33ZaBYE.js";
|
|
5
|
+
import { x as g } from "./mount-Df-vqgr1.js";
|
|
6
|
+
import { D as p, X as y } from "./ChatWidgetContent-vam_rCAz.js";
|
|
7
7
|
const k = ".lola-video-viewer{position:fixed;inset:0;margin:auto;border:0;padding:0;width:min(100vw,1100px);height:100dvh;max-width:100vw;max-height:100dvh;background:#101217;color:#fff;font:14px/1.4 system-ui,sans-serif;display:flex;flex-direction:column;overscroll-behavior:contain;opacity:1;transform:translateY(0);transition:opacity .18s var(--chat-ease-out, cubic-bezier(.23, 1, .32, 1)),transform .18s var(--chat-ease-out, cubic-bezier(.23, 1, .32, 1))}@starting-style{.lola-video-viewer[open]{opacity:0;transform:translateY(6px)}}.lola-video-viewer::backdrop{background:#080a10eb}.lola-video-viewer header{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;padding-top:max(12px,env(safe-area-inset-top));gap:12px}.lola-video-viewer header>div{display:flex;gap:8px}.lola-video-viewer button,.lola-video-viewer a{display:inline-flex;align-items:center;justify-content:center;background:#ffffff12;border:0;border-radius:50%;color:#fff;width:44px;height:44px;cursor:pointer}.lola-video-viewer button:focus-visible,.lola-video-viewer a:focus-visible{outline:2px solid white;outline-offset:2px}.lola-video-viewer main{flex:1;min-height:0;padding-bottom:env(safe-area-inset-bottom)}.lola-video-viewer p{padding:8px 16px}@media(prefers-reduced-motion:reduce){.lola-video-viewer{transition:opacity .12s ease;transform:none}@starting-style{.lola-video-viewer[open]{transform:none}}}";
|
|
8
8
|
function P({
|
|
9
9
|
src: f,
|