@opencx/widget-react 4.0.43 → 4.0.45
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 +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +375 -345
- package/dist/index.js.map +1 -1
- package/dist/src/WidgetImperativeHandler.d.ts +10 -0
- package/dist/src/WidgetImperativeHandler.d.ts.map +1 -0
- package/dist/src/components/lib/input.d.ts.map +1 -1
- package/dist/src/index.d.ts +5 -3
- package/dist/src/index.d.ts.map +1 -1
- package/package.json +4 -3
package/dist/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
1
|
+
import { jsx as r, jsxs as d, Fragment as re } from "react/jsx-runtime";
|
|
2
2
|
import * as ce from "@radix-ui/react-popover";
|
|
3
|
-
import * as
|
|
4
|
-
import
|
|
5
|
-
import { useWidget as
|
|
3
|
+
import * as K from "react";
|
|
4
|
+
import L, { memo as Bt, forwardRef as dt, useState as T, cloneElement as pt, createContext as Yt, useEffect as oe, useContext as Ut, useMemo as ht, useRef as de, createElement as ot } from "react";
|
|
5
|
+
import { useWidget as M, useConfig as b, useSessions as $, useMessages as D, useWidgetRouter as E, useDocumentDir as ve, useWidgetTrigger as q, useModes as mt, useCsat as gt, useUploadFiles as qt, useIsAwaitingBotReply as ut, useContact as wt, WidgetProvider as Xt, WidgetTriggerProvider as Vt } from "@opencx/widget-react-headless";
|
|
6
6
|
import { clsx as Gt } from "clsx";
|
|
7
7
|
import { twMerge as Kt } from "tailwind-merge";
|
|
8
8
|
import { motion as J, AnimatePresence as _ } from "framer-motion";
|
|
9
9
|
import { Slot as Qt } from "@radix-ui/react-slot";
|
|
10
10
|
import { cva as Zt } from "class-variance-authority";
|
|
11
|
-
import { X as Jt, CircleDashedIcon as er, XIcon as xe, SquareXIcon as tr, SquareCheckBigIcon as rr, SquareCheckIcon as or, ShrinkIcon as nr, Minimize2Icon as sr, MinimizeIcon as ar, Maximize2Icon as ir, MaximizeIcon as lr, ExpandIcon as cr, CircleXIcon as dr, CircleCheckBigIcon as pr, CircleCheckIcon as
|
|
12
|
-
import
|
|
11
|
+
import { X as Jt, CircleDashedIcon as er, XIcon as xe, SquareXIcon as tr, SquareCheckBigIcon as rr, SquareCheckIcon as or, ShrinkIcon as nr, Minimize2Icon as sr, MinimizeIcon as ar, Maximize2Icon as ir, MaximizeIcon as lr, ExpandIcon as cr, CircleXIcon as dr, CircleCheckBigIcon as pr, CircleCheckIcon as ft, CheckCheckIcon as hr, CheckIcon as mr, ChevronLeftIcon as gr, LoaderIcon as ur, ArrowUpIcon as vt, PaperclipIcon as wr, ImageIcon as fr, CircleDashed as vr, AlertCircle as xr, Loader2 as br, FileAudio2Icon as yr, FileVideo2Icon as kr, FileIcon as Cr, UserRoundIcon as zr, ChevronRightIcon as Nr, SendHorizontal as Sr, ChevronDownIcon as _r } from "lucide-react";
|
|
12
|
+
import xt from "remark-gfm";
|
|
13
13
|
import Ir from "react-markdown";
|
|
14
|
-
import
|
|
15
|
-
import { isExhaustive as
|
|
14
|
+
import bt from "rehype-raw";
|
|
15
|
+
import { isExhaustive as j, isSupportedLanguage as Tr, getTranslation as Mr } from "@opencx/widget-core";
|
|
16
16
|
import * as Q from "@radix-ui/react-avatar";
|
|
17
|
-
import
|
|
17
|
+
import yt from "@uiw/react-iframe";
|
|
18
18
|
import * as ne from "@radix-ui/react-tooltip";
|
|
19
19
|
import nt from "tinycolor2";
|
|
20
20
|
import { useDropzone as Dr } from "react-dropzone";
|
|
21
|
-
import
|
|
21
|
+
import Rr from "react-use/lib/useAsyncFn";
|
|
22
22
|
import { z as me } from "zod";
|
|
23
23
|
function g(e) {
|
|
24
24
|
return { "data-component": e };
|
|
@@ -26,32 +26,32 @@ function g(e) {
|
|
|
26
26
|
function p(...e) {
|
|
27
27
|
return Kt(Gt(e));
|
|
28
28
|
}
|
|
29
|
-
const
|
|
29
|
+
const G = {
|
|
30
30
|
x: 2,
|
|
31
31
|
y: 2
|
|
32
|
-
},
|
|
32
|
+
}, U = Bt(
|
|
33
33
|
dt(
|
|
34
34
|
({ children: e, className: o, scale: t = 1.02, off: n = !1 }, s) => {
|
|
35
|
-
const [i, a] = T(!1), [l,
|
|
35
|
+
const [i, a] = T(!1), [l, c] = T({ x: 0, y: 0 });
|
|
36
36
|
if (n || /translate/.test(
|
|
37
37
|
e.props.className || ""
|
|
38
38
|
)) return e;
|
|
39
|
-
const y = (
|
|
39
|
+
const y = (u) => {
|
|
40
40
|
var N, S;
|
|
41
|
-
const { clientX: k, clientY: I } =
|
|
41
|
+
const { clientX: k, clientY: I } = u, f = u.currentTarget.getBoundingClientRect(), R = k - (f.left + f.width / 2), F = I - (f.top + f.height / 2), H = Math.max(
|
|
42
42
|
-1,
|
|
43
|
-
Math.min(1,
|
|
43
|
+
Math.min(1, R / (f.width / 2))
|
|
44
44
|
), W = Math.max(
|
|
45
45
|
-1,
|
|
46
|
-
Math.min(1,
|
|
47
|
-
),
|
|
48
|
-
|
|
46
|
+
Math.min(1, F / (f.height / 2))
|
|
47
|
+
), O = H * G.x, v = W * G.y;
|
|
48
|
+
c({ x: O, y: v }), (S = (N = e.props).onMouseMove) == null || S.call(N, u);
|
|
49
49
|
}, x = () => {
|
|
50
|
-
var
|
|
51
|
-
a(!0), (k = (
|
|
50
|
+
var u, k;
|
|
51
|
+
a(!0), (k = (u = e.props).onMouseEnter) == null || k.call(u);
|
|
52
52
|
}, m = () => {
|
|
53
|
-
var
|
|
54
|
-
a(!1),
|
|
53
|
+
var u, k;
|
|
54
|
+
a(!1), c({ x: 0, y: 0 }), (k = (u = e.props).onMouseLeave) == null || k.call(u);
|
|
55
55
|
}, z = {
|
|
56
56
|
"--wobble-x": i ? `${l.x}px` : "0px",
|
|
57
57
|
"--wobble-y": i ? `${l.y}px` : "0px",
|
|
@@ -78,43 +78,43 @@ const V = {
|
|
|
78
78
|
}
|
|
79
79
|
)
|
|
80
80
|
);
|
|
81
|
-
|
|
82
|
-
const
|
|
81
|
+
U.displayName = "Wobble";
|
|
82
|
+
const jr = 10, Er = (e, o, t) => ({
|
|
83
83
|
initial: { opacity: 0, x: -e, ...o.initial },
|
|
84
84
|
animate: { opacity: 1, x: 0, ...o.animate, transition: { delay: t } },
|
|
85
85
|
exit: { opacity: 0, x: e, ...o.exit }
|
|
86
|
-
}),
|
|
86
|
+
}), Or = (e, o, t) => ({
|
|
87
87
|
initial: { opacity: 0, x: e, ...o.initial },
|
|
88
88
|
animate: { opacity: 1, x: 0, ...o.animate, transition: { delay: t } },
|
|
89
89
|
exit: { opacity: 0, x: -e, ...o.exit }
|
|
90
|
-
}),
|
|
90
|
+
}), Pr = (e, o, t) => ({
|
|
91
91
|
initial: { opacity: 0, y: e, ...o.initial },
|
|
92
92
|
animate: { opacity: 1, y: 0, ...o.animate, transition: { delay: t } },
|
|
93
93
|
exit: { opacity: 0, y: -e, ...o.exit }
|
|
94
|
-
}),
|
|
94
|
+
}), Ar = (e, o, t) => ({
|
|
95
95
|
initial: { opacity: 0, y: -e, ...o.initial },
|
|
96
96
|
animate: { opacity: 1, y: 0, ...o.animate, transition: { delay: t } },
|
|
97
97
|
exit: { opacity: 0, y: e, ...o.exit }
|
|
98
|
-
}),
|
|
99
|
-
right:
|
|
100
|
-
left:
|
|
101
|
-
up:
|
|
102
|
-
down:
|
|
103
|
-
},
|
|
98
|
+
}), Fr = {
|
|
99
|
+
right: Er,
|
|
100
|
+
left: Or,
|
|
101
|
+
up: Pr,
|
|
102
|
+
down: Ar
|
|
103
|
+
}, w = dt(
|
|
104
104
|
({
|
|
105
105
|
fadeIn: e = "down",
|
|
106
|
-
distance: o =
|
|
106
|
+
distance: o = jr,
|
|
107
107
|
children: t,
|
|
108
108
|
snapExit: n = !1,
|
|
109
109
|
overrides: s = {},
|
|
110
110
|
delay: i = 0,
|
|
111
111
|
...a
|
|
112
112
|
}, l) => {
|
|
113
|
-
const
|
|
114
|
-
return n &&
|
|
113
|
+
const c = e ? Fr[e](o, s, i) : {};
|
|
114
|
+
return n && c.exit && typeof c.exit == "object" && !Array.isArray(c.exit) && (c.exit.transition = { duration: 0 }), /* @__PURE__ */ r(J.div, { ref: l, ...a, ...c, children: t });
|
|
115
115
|
}
|
|
116
116
|
);
|
|
117
|
-
|
|
117
|
+
w.displayName = "MotionDiv";
|
|
118
118
|
const Hr = Zt(
|
|
119
119
|
p(
|
|
120
120
|
"inline-flex shrink-0 items-center justify-center gap-2",
|
|
@@ -154,8 +154,8 @@ const Hr = Zt(
|
|
|
154
154
|
size: "default"
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
), C =
|
|
158
|
-
({ className: e, variant: o = "default", size: t, asChild: n = !1, ...s }, i) => /* @__PURE__ */ r(
|
|
157
|
+
), C = K.forwardRef(
|
|
158
|
+
({ className: e, variant: o = "default", size: t, asChild: n = !1, ...s }, i) => /* @__PURE__ */ r(U, { ref: i, children: /* @__PURE__ */ r(
|
|
159
159
|
n ? Qt : "button",
|
|
160
160
|
{
|
|
161
161
|
...g("ui_lib/btn"),
|
|
@@ -166,7 +166,7 @@ const Hr = Zt(
|
|
|
166
166
|
) })
|
|
167
167
|
);
|
|
168
168
|
C.displayName = "Button";
|
|
169
|
-
const
|
|
169
|
+
const kt = Yt(null);
|
|
170
170
|
function Wr({ children: e }) {
|
|
171
171
|
const [o, t] = T(!1), [n, s] = T(null), i = (l) => {
|
|
172
172
|
s(l), t(!0);
|
|
@@ -175,8 +175,8 @@ function Wr({ children: e }) {
|
|
|
175
175
|
s(null);
|
|
176
176
|
}, 200);
|
|
177
177
|
};
|
|
178
|
-
return /* @__PURE__ */
|
|
179
|
-
|
|
178
|
+
return /* @__PURE__ */ d(
|
|
179
|
+
kt.Provider,
|
|
180
180
|
{
|
|
181
181
|
value: { open: i, close: a, isOpen: o, content: n },
|
|
182
182
|
children: [
|
|
@@ -187,7 +187,7 @@ function Wr({ children: e }) {
|
|
|
187
187
|
);
|
|
188
188
|
}
|
|
189
189
|
function pe() {
|
|
190
|
-
const e =
|
|
190
|
+
const e = Ut(kt);
|
|
191
191
|
return e || (console.error("useDialoger must be used within a DialogerProvider"), {
|
|
192
192
|
open: () => {
|
|
193
193
|
},
|
|
@@ -198,7 +198,7 @@ function pe() {
|
|
|
198
198
|
});
|
|
199
199
|
}
|
|
200
200
|
function Lr() {
|
|
201
|
-
const { contentIframeRef: e } =
|
|
201
|
+
const { contentIframeRef: e } = M(), { isOpen: o, content: t, close: n } = pe();
|
|
202
202
|
return oe(() => {
|
|
203
203
|
var i, a;
|
|
204
204
|
const s = (l) => {
|
|
@@ -208,14 +208,14 @@ function Lr() {
|
|
|
208
208
|
"keydown",
|
|
209
209
|
s
|
|
210
210
|
), () => {
|
|
211
|
-
var l,
|
|
212
|
-
return (
|
|
211
|
+
var l, c;
|
|
212
|
+
return (c = (l = e == null ? void 0 : e.current) == null ? void 0 : l.contentWindow) == null ? void 0 : c.document.removeEventListener(
|
|
213
213
|
"keydown",
|
|
214
214
|
s
|
|
215
215
|
);
|
|
216
216
|
};
|
|
217
217
|
}, []), /* @__PURE__ */ r(_, { mode: "wait", children: o && t && /* @__PURE__ */ r(
|
|
218
|
-
|
|
218
|
+
w,
|
|
219
219
|
{
|
|
220
220
|
overrides: {
|
|
221
221
|
initial: { y: 0 },
|
|
@@ -229,13 +229,13 @@ function Lr() {
|
|
|
229
229
|
"dialog-content"
|
|
230
230
|
) });
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function Ct({
|
|
233
233
|
children: e,
|
|
234
234
|
className: o,
|
|
235
235
|
withClose: t = !1
|
|
236
236
|
}) {
|
|
237
237
|
const { close: n } = pe();
|
|
238
|
-
return /* @__PURE__ */
|
|
238
|
+
return /* @__PURE__ */ d(
|
|
239
239
|
"div",
|
|
240
240
|
{
|
|
241
241
|
className: p(
|
|
@@ -245,7 +245,7 @@ function kt({
|
|
|
245
245
|
onClick: (s) => s.stopPropagation(),
|
|
246
246
|
children: [
|
|
247
247
|
e,
|
|
248
|
-
t && /* @__PURE__ */
|
|
248
|
+
t && /* @__PURE__ */ d(
|
|
249
249
|
C,
|
|
250
250
|
{
|
|
251
251
|
size: "fit",
|
|
@@ -262,7 +262,7 @@ function kt({
|
|
|
262
262
|
}
|
|
263
263
|
);
|
|
264
264
|
}
|
|
265
|
-
const
|
|
265
|
+
const zt = ({
|
|
266
266
|
className: e,
|
|
267
267
|
...o
|
|
268
268
|
}) => /* @__PURE__ */ r(
|
|
@@ -272,8 +272,8 @@ const Ct = ({
|
|
|
272
272
|
...o
|
|
273
273
|
}
|
|
274
274
|
);
|
|
275
|
-
|
|
276
|
-
const
|
|
275
|
+
zt.displayName = "DialogerHeader";
|
|
276
|
+
const Nt = ({
|
|
277
277
|
className: e,
|
|
278
278
|
...o
|
|
279
279
|
}) => /* @__PURE__ */ r(
|
|
@@ -283,13 +283,13 @@ const zt = ({
|
|
|
283
283
|
...o
|
|
284
284
|
}
|
|
285
285
|
);
|
|
286
|
-
|
|
287
|
-
const
|
|
286
|
+
Nt.displayName = "DialogerBody";
|
|
287
|
+
const St = ({
|
|
288
288
|
className: e,
|
|
289
289
|
...o
|
|
290
290
|
}) => /* @__PURE__ */ r("div", { className: p("flex flex-col gap-2", e), ...o });
|
|
291
|
-
|
|
292
|
-
const
|
|
291
|
+
St.displayName = "DialogerFooter";
|
|
292
|
+
const _t = L.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
293
293
|
"p",
|
|
294
294
|
{
|
|
295
295
|
ref: t,
|
|
@@ -300,8 +300,8 @@ const St = U.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
|
300
300
|
...o
|
|
301
301
|
}
|
|
302
302
|
));
|
|
303
|
-
|
|
304
|
-
const
|
|
303
|
+
_t.displayName = "DialogerTitle";
|
|
304
|
+
const It = L.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
305
305
|
"p",
|
|
306
306
|
{
|
|
307
307
|
ref: t,
|
|
@@ -309,8 +309,8 @@ const _t = U.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
|
309
309
|
...o
|
|
310
310
|
}
|
|
311
311
|
));
|
|
312
|
-
|
|
313
|
-
function
|
|
312
|
+
It.displayName = "DialogerDescription";
|
|
313
|
+
function Tt({
|
|
314
314
|
children: e,
|
|
315
315
|
trigger: o
|
|
316
316
|
}) {
|
|
@@ -319,15 +319,15 @@ function It({
|
|
|
319
319
|
onClick: () => t(e)
|
|
320
320
|
});
|
|
321
321
|
}
|
|
322
|
-
function
|
|
322
|
+
function Mt({ attachment: e }) {
|
|
323
323
|
const { name: o, size: t, type: n, url: s } = e, i = n.startsWith("image/"), a = n.startsWith("video/"), l = n.startsWith("audio/");
|
|
324
|
-
return l ? /* @__PURE__ */ r(
|
|
324
|
+
return l ? /* @__PURE__ */ r(U, { children: /* @__PURE__ */ r("div", { className: "w-full shrink-0 overflow-hidden", children: /* @__PURE__ */ d("audio", { controls: !0, className: "w-full", children: [
|
|
325
325
|
/* @__PURE__ */ r("source", { src: s, type: n }),
|
|
326
326
|
"Your browser does not support the audio tag."
|
|
327
|
-
] }) }) }) : a ? /* @__PURE__ */ r(
|
|
327
|
+
] }) }) }) : a ? /* @__PURE__ */ r(U, { children: /* @__PURE__ */ r("div", { className: "w-full border shrink-0 rounded-2xl overflow-hidden", children: /* @__PURE__ */ d("video", { controls: !0, children: [
|
|
328
328
|
/* @__PURE__ */ r("source", { src: s, type: n }),
|
|
329
329
|
"Your browser does not support the video tag."
|
|
330
|
-
] }) }) }) : !i && !a && !l ? /* @__PURE__ */ r(
|
|
330
|
+
] }) }) }) : !i && !a && !l ? /* @__PURE__ */ r(U, { children: /* @__PURE__ */ r("div", { className: "size-fit border shrink-0 rounded-2xl overflow-hidden", children: /* @__PURE__ */ d("div", { className: "flex items-end gap-2 p-2", children: [
|
|
331
331
|
/* @__PURE__ */ r(
|
|
332
332
|
"a",
|
|
333
333
|
{
|
|
@@ -342,16 +342,16 @@ function Tt({ attachment: e }) {
|
|
|
342
342
|
children: o
|
|
343
343
|
}
|
|
344
344
|
),
|
|
345
|
-
/* @__PURE__ */
|
|
345
|
+
/* @__PURE__ */ d("span", { className: "text-xs text-muted-foreground whitespace-nowrap", children: [
|
|
346
346
|
(t / 1024).toFixed(2),
|
|
347
347
|
" KB"
|
|
348
348
|
] })
|
|
349
349
|
] }) }) }) : /* @__PURE__ */ r(
|
|
350
|
-
|
|
350
|
+
Tt,
|
|
351
351
|
{
|
|
352
|
-
trigger: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(
|
|
352
|
+
trigger: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(U, { children: /* @__PURE__ */ r("div", { className: "size-fit border shrink-0 rounded-2xl overflow-hidden", children: i && /* @__PURE__ */ r("img", { src: s, className: "object-cover size-16", alt: o }) }) }) }),
|
|
353
353
|
children: /* @__PURE__ */ r(
|
|
354
|
-
|
|
354
|
+
Ct,
|
|
355
355
|
{
|
|
356
356
|
className: "size-full max-w-full rounded-3xl flex items-center justify-center bg-transparent border-none gap-0",
|
|
357
357
|
withClose: !0,
|
|
@@ -361,7 +361,7 @@ function Tt({ attachment: e }) {
|
|
|
361
361
|
}
|
|
362
362
|
);
|
|
363
363
|
}
|
|
364
|
-
const
|
|
364
|
+
const Dt = L.memo(
|
|
365
365
|
Ir,
|
|
366
366
|
(e, o) => e.children === o.children && e.className === o.className
|
|
367
367
|
);
|
|
@@ -372,12 +372,12 @@ function be({
|
|
|
372
372
|
}) {
|
|
373
373
|
const { anchorTarget: n } = b();
|
|
374
374
|
return /* @__PURE__ */ r(
|
|
375
|
-
|
|
375
|
+
Dt,
|
|
376
376
|
{
|
|
377
377
|
"data-type": o,
|
|
378
378
|
"data-id": t,
|
|
379
|
-
remarkPlugins: [
|
|
380
|
-
rehypePlugins: [
|
|
379
|
+
remarkPlugins: [xt],
|
|
380
|
+
rehypePlugins: [bt],
|
|
381
381
|
components: {
|
|
382
382
|
a: ({ children: s, ...i }) => /* @__PURE__ */ r("a", { target: i.target || n || "_top", ...i, children: s })
|
|
383
383
|
},
|
|
@@ -388,15 +388,15 @@ function be({
|
|
|
388
388
|
function Z() {
|
|
389
389
|
const {
|
|
390
390
|
widgetCtx: { org: e }
|
|
391
|
-
} =
|
|
391
|
+
} = M(), {
|
|
392
392
|
sessionState: { session: o }
|
|
393
393
|
} = $(), t = b(), {
|
|
394
394
|
messagesState: { messages: n }
|
|
395
|
-
} =
|
|
395
|
+
} = D(), {
|
|
396
396
|
routerState: { screen: s }
|
|
397
|
-
} =
|
|
397
|
+
} = E();
|
|
398
398
|
return {
|
|
399
|
-
react:
|
|
399
|
+
react: L,
|
|
400
400
|
org: e,
|
|
401
401
|
session: o,
|
|
402
402
|
config: t,
|
|
@@ -420,26 +420,26 @@ function ge(e) {
|
|
|
420
420
|
isFirstInGroup: i,
|
|
421
421
|
isLastInGroup: a,
|
|
422
422
|
isAloneInGroup: l,
|
|
423
|
-
dataComponentNames:
|
|
423
|
+
dataComponentNames: c,
|
|
424
424
|
classNames: h
|
|
425
425
|
} = e;
|
|
426
426
|
if (n !== "AI" && n !== "AGENT") return null;
|
|
427
427
|
const { message: y, variant: x = "default" } = o;
|
|
428
|
-
return /* @__PURE__ */
|
|
428
|
+
return /* @__PURE__ */ d(
|
|
429
429
|
"div",
|
|
430
430
|
{
|
|
431
|
-
...g((
|
|
431
|
+
...g((c == null ? void 0 : c.messageContainer) ?? "chat/agent_msg/root"),
|
|
432
432
|
className: p(
|
|
433
433
|
"w-5/6 flex flex-col items-start gap-1",
|
|
434
434
|
h == null ? void 0 : h.messageContainer
|
|
435
435
|
),
|
|
436
436
|
children: [
|
|
437
|
-
s && s.length > 0 && /* @__PURE__ */ r("div", { className: "w-full gap-1 flex flex-row flex-wrap items-center justify-start", children: s == null ? void 0 : s.map((m) => /* @__PURE__ */ r(
|
|
438
|
-
y.length > 0 && /* @__PURE__ */
|
|
437
|
+
s && s.length > 0 && /* @__PURE__ */ r("div", { className: "w-full gap-1 flex flex-row flex-wrap items-center justify-start", children: s == null ? void 0 : s.map((m) => /* @__PURE__ */ r(Mt, { attachment: m }, m.id)) }),
|
|
438
|
+
y.length > 0 && /* @__PURE__ */ d("div", { className: "flex flex-row gap-2", children: [
|
|
439
439
|
/* @__PURE__ */ r(
|
|
440
440
|
"div",
|
|
441
441
|
{
|
|
442
|
-
...g((
|
|
442
|
+
...g((c == null ? void 0 : c.message) ?? "chat/agent_msg/msg"),
|
|
443
443
|
"data-first": i,
|
|
444
444
|
"data-last": a,
|
|
445
445
|
"data-alone": l,
|
|
@@ -471,7 +471,7 @@ function ge(e) {
|
|
|
471
471
|
function Br(e) {
|
|
472
472
|
return /* @__PURE__ */ r("div", { className: "w-full max-w-full overflow-auto shrink-0", children: /* @__PURE__ */ r("pre", { className: "text-xs leading-tight whitespace-pre-wrap break-word", children: JSON.stringify(e, null, 1) }) });
|
|
473
473
|
}
|
|
474
|
-
const ye =
|
|
474
|
+
const ye = K.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
475
475
|
Q.Root,
|
|
476
476
|
{
|
|
477
477
|
ref: t,
|
|
@@ -484,7 +484,7 @@ const ye = G.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
|
484
484
|
}
|
|
485
485
|
));
|
|
486
486
|
ye.displayName = Q.Root.displayName;
|
|
487
|
-
const ke =
|
|
487
|
+
const ke = K.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
488
488
|
Q.Image,
|
|
489
489
|
{
|
|
490
490
|
ref: t,
|
|
@@ -493,7 +493,7 @@ const ke = G.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
|
493
493
|
}
|
|
494
494
|
));
|
|
495
495
|
ke.displayName = Q.Image.displayName;
|
|
496
|
-
const Ce =
|
|
496
|
+
const Ce = K.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
497
497
|
Q.Fallback,
|
|
498
498
|
{
|
|
499
499
|
ref: t,
|
|
@@ -505,25 +505,25 @@ const Ce = G.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
|
505
505
|
}
|
|
506
506
|
));
|
|
507
507
|
Ce.displayName = Q.Fallback.displayName;
|
|
508
|
-
function
|
|
508
|
+
function ue({
|
|
509
509
|
agent: e,
|
|
510
510
|
...o
|
|
511
511
|
}) {
|
|
512
512
|
var t, n;
|
|
513
|
-
return /* @__PURE__ */
|
|
513
|
+
return /* @__PURE__ */ d(ye, { ...o, children: [
|
|
514
514
|
/* @__PURE__ */ r(ke, { src: (e == null ? void 0 : e.avatarUrl) || (e == null ? void 0 : e.avatar) || "", alt: "Agent Icon" }),
|
|
515
515
|
(e == null ? void 0 : e.name) && /* @__PURE__ */ r(Ce, { children: (n = (t = e == null ? void 0 : e.name) == null ? void 0 : t.slice(0, 1)) == null ? void 0 : n.toUpperCase() })
|
|
516
516
|
] });
|
|
517
517
|
}
|
|
518
518
|
function Yr({ agent: e }) {
|
|
519
|
-
return /* @__PURE__ */ r(_, { children: /* @__PURE__ */
|
|
520
|
-
|
|
519
|
+
return /* @__PURE__ */ r(_, { children: /* @__PURE__ */ d(
|
|
520
|
+
w,
|
|
521
521
|
{
|
|
522
522
|
...g("chat/bot_loading/root"),
|
|
523
523
|
className: "flex flex-row items-end w-full gap-2 animate-pulse",
|
|
524
524
|
children: [
|
|
525
|
-
/* @__PURE__ */ r(
|
|
526
|
-
/* @__PURE__ */
|
|
525
|
+
/* @__PURE__ */ r(ue, { agent: e }),
|
|
526
|
+
/* @__PURE__ */ d(
|
|
527
527
|
"div",
|
|
528
528
|
{
|
|
529
529
|
...g("chat/bot_loading/bouncing_dots_container"),
|
|
@@ -542,7 +542,7 @@ function Yr({ agent: e }) {
|
|
|
542
542
|
}
|
|
543
543
|
) });
|
|
544
544
|
}
|
|
545
|
-
const Dt = '*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*{-ms-overflow-style:none;scrollbar-width:none}*::-webkit-scrollbar{display:none}*{border-color:hsl(var(--opencx-border))}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%),0 3px rgb(var(--tw-prose-kbd-shadows) / 10%);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-kbd: #111827;--tw-prose-kbd-shadows: 17 24 39;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.end-6{inset-inline-end:1.5rem}.left-2{left:.5rem}.left-\\[50\\%\\]{left:50%}.right-4{right:1rem}.top-4{top:1rem}.top-6{top:1.5rem}.top-\\[50\\%\\]{top:50%}.isolate{isolation:isolate}.z-10{z-index:10}.z-50{z-index:50}.m-2{margin:.5rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ms-auto{margin-inline-start:auto}.mt-0\\.5{margin-top:.125rem}.mt-auto{margin-top:auto}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.size-0{width:0px;height:0px}.size-10{width:2.5rem;height:2.5rem}.size-12{width:3rem;height:3rem}.size-16{width:4rem;height:4rem}.size-3{width:.75rem;height:.75rem}.size-4{width:1rem;height:1rem}.size-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.size-auto{width:auto;height:auto}.size-fit{width:fit-content;height:fit-content}.size-full{width:100%;height:100%}.h-0{height:0px}.h-10{height:2.5rem}.h-2{height:.5rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-dvh{height:100dvh}.h-full{height:100%}.h-px{height:1px}.max-h-16{max-height:4rem}.max-h-40{max-height:10rem}.max-h-full{max-height:100%}.min-h-12{min-height:3rem}.w-0{width:0px}.w-1\\/2{width:50%}.w-10{width:2.5rem}.w-2{width:.5rem}.w-2\\/5{width:40%}.w-3\\.5{width:.875rem}.w-3\\/5{width:60%}.w-4{width:1rem}.w-5\\/6{width:83.333333%}.w-60{width:15rem}.w-9{width:2.25rem}.w-auto{width:auto}.w-dvw{width:100dvw}.w-fit{width:fit-content}.w-full{width:100%}.min-w-80{min-width:20rem}.min-w-\\[8rem\\]{min-width:8rem}.max-w-96{max-width:24rem}.max-w-\\[61\\.8\\%\\]{max-width:61.8%}.max-w-full{max-width:100%}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-\\[2\\]{flex:2}.shrink-0{flex-shrink:0}.translate-x-\\[-50\\%\\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[var\\(--wobble-x\\)\\]{--tw-translate-x: var(--wobble-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[-50\\%\\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[var\\(--wobble-y\\)\\]{--tw-translate-y: var(--wobble-y);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-\\[1px\\]{gap:1px}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.scroll-smooth{scroll-behavior:smooth}.text-ellipsis{text-overflow:ellipsis}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-\\[20px\\]{border-radius:20px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-l-md{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.rounded-r-md{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-bl-md{border-bottom-left-radius:.375rem}.rounded-br-md{border-bottom-right-radius:.375rem}.rounded-tl-md{border-top-left-radius:.375rem}.rounded-tr-md{border-top-right-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-none{border-style:none}.border-transparent{border-color:transparent}.bg-\\[white\\]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-background{background-color:hsl(var(--opencx-background))}.bg-black\\/50{background-color:#00000080}.bg-black\\/60{background-color:#0009}.bg-destructive{background-color:hsl(var(--opencx-destructive))}.bg-destructive\\/15{background-color:hsl(var(--opencx-destructive) / .15)}.bg-muted{background-color:hsl(var(--opencx-muted))}.bg-primary{background-color:hsl(var(--opencx-primary))}.bg-secondary{background-color:hsl(var(--opencx-secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-\\[radial-gradient\\(ellipse_at_top_left\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\,radial-gradient\\(ellipse_at_top_right\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\]{background-image:radial-gradient(ellipse at top left,hsl(var(--opencx-primary)),transparent),radial-gradient(ellipse at top right,hsl(var(--opencx-primary)),transparent)}.fill-current{fill:currentColor}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-8{padding:2rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-0{padding-bottom:0}.pb-2{padding-bottom:.5rem}.pe-2{padding-inline-end:.5rem}.pe-4{padding-inline-end:1rem}.ps-2{padding-inline-start:.5rem}.ps-4{padding-inline-start:1rem}.ps-8{padding-inline-start:2rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.text-center{text-align:center}.text-start{text-align:start}.align-middle{vertical-align:middle}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-\\[1\\.75rem\\]{font-size:1.75rem}.text-\\[10px\\]{font-size:10px}.text-\\[16px\\]{font-size:16px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-none{line-height:1}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-destructive{color:hsl(var(--opencx-destructive))}.text-destructive-foreground{color:hsl(var(--opencx-destructive-foreground))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}.text-foreground{color:hsl(var(--opencx-foreground))}.text-muted-foreground{color:hsl(var(--opencx-muted-foreground))}.text-muted-foreground\\/70{color:hsl(var(--opencx-muted-foreground) / .7)}.text-muted-foreground\\/75{color:hsl(var(--opencx-muted-foreground) / .75)}.text-primary{color:hsl(var(--opencx-primary))}.text-primary-foreground{color:hsl(var(--opencx-primary-foreground))}.text-secondary-foreground{color:hsl(var(--opencx-secondary-foreground))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-35{opacity:.35}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-95{opacity:.95}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-8{outline-width:8px}.outline-background{outline-color:hsl(var(--opencx-background))}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-offset-background{--tw-ring-offset-color: hsl(var(--opencx-background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[height\\]{transition-property:height;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.\\[animation-delay\\:-0\\.15s\\]{animation-delay:-.15s}.\\[animation-delay\\:-0\\.3s\\]{animation-delay:-.3s}.\\[field-sizing\\:content\\;\\],.\\[field-sizing\\:content\\]{field-sizing:content}.\\[word-break\\:break-word\\]{word-break:break-word}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.file\\:text-primary-foreground::file-selector-button{color:hsl(var(--opencx-primary-foreground))}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--opencx-muted-foreground))}.placeholder\\:text-muted-foreground\\/75::placeholder{color:hsl(var(--opencx-muted-foreground) / .75)}.focus-within\\:border-primary:focus-within{border-color:hsl(var(--opencx-primary))}.hover\\:scale-\\[var\\(--scale\\)\\]:hover{--tw-scale-x: var(--scale);--tw-scale-y: var(--scale);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:border-primary:hover{border-color:hsl(var(--opencx-primary))}.hover\\:bg-secondary:hover{background-color:hsl(var(--opencx-secondary))}.hover\\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.hover\\:text-primary:hover{color:hsl(var(--opencx-primary))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.focus\\:bg-accent:focus{background-color:hsl(var(--opencx-accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--opencx-accent-foreground))}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--opencx-ring))}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--opencx-background))}.active\\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\\:hover\\:scale-\\[calc\\(var\\(--scale\\)-0\\.02\\)\\]:hover:active{--tw-scale-x: calc(var(--scale) - .02);--tw-scale-y: calc(var(--scale) - .02);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:active\\:scale-95:active:hover{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\\:opacity-100{opacity:1}.group:hover .group-hover\\:active\\:scale-90:active,.group:active .group-active\\:scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[state\\=checked\\]\\:translate-x-4[data-state=checked]{--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:hsl(var(--opencx-primary))}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--opencx-accent))}.data-\\[state\\=unchecked\\]\\:bg-input[data-state=unchecked]{background-color:hsl(var(--opencx-input))}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.prose-a\\:underline :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-line:underline}.prose-a\\:decoration-primary :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-color:hsl(var(--opencx-primary))}.rtl\\:-scale-100:where([dir=rtl],[dir=rtl] *){--tw-scale-x: -1;--tw-scale-y: -1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\\[\\&_span\\]\\:size-1 span{width:.25rem;height:.25rem}.\\[\\&_span\\]\\:bg-secondary-foreground span{background-color:hsl(var(--opencx-secondary-foreground))}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:size-4 svg{width:1rem;height:1rem}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_svg\\]\\:text-muted-foreground\\/70 svg{color:hsl(var(--opencx-muted-foreground) / .7)}.\\[\\&_svg\\]\\:hover\\:text-primary:hover svg{color:hsl(var(--opencx-primary))}', Ur = ne.Provider, qr = ne.Root, Xr = ne.Trigger, jt = G.forwardRef(({ className: e, sideOffset: o = 4, ...t }, n) => /* @__PURE__ */ r(
|
|
545
|
+
const Rt = '*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*{-ms-overflow-style:none;scrollbar-width:none}*::-webkit-scrollbar{display:none}*{border-color:hsl(var(--opencx-border))}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%),0 3px rgb(var(--tw-prose-kbd-shadows) / 10%);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-kbd: #111827;--tw-prose-kbd-shadows: 17 24 39;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.end-6{inset-inline-end:1.5rem}.left-2{left:.5rem}.left-\\[50\\%\\]{left:50%}.right-4{right:1rem}.top-4{top:1rem}.top-6{top:1.5rem}.top-\\[50\\%\\]{top:50%}.isolate{isolation:isolate}.z-10{z-index:10}.z-50{z-index:50}.m-2{margin:.5rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ms-auto{margin-inline-start:auto}.mt-0\\.5{margin-top:.125rem}.mt-auto{margin-top:auto}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.size-0{width:0px;height:0px}.size-10{width:2.5rem;height:2.5rem}.size-12{width:3rem;height:3rem}.size-16{width:4rem;height:4rem}.size-3{width:.75rem;height:.75rem}.size-4{width:1rem;height:1rem}.size-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.size-auto{width:auto;height:auto}.size-fit{width:fit-content;height:fit-content}.size-full{width:100%;height:100%}.h-0{height:0px}.h-10{height:2.5rem}.h-2{height:.5rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-dvh{height:100dvh}.h-full{height:100%}.h-px{height:1px}.max-h-16{max-height:4rem}.max-h-40{max-height:10rem}.max-h-full{max-height:100%}.min-h-12{min-height:3rem}.w-0{width:0px}.w-1\\/2{width:50%}.w-10{width:2.5rem}.w-2{width:.5rem}.w-2\\/5{width:40%}.w-3\\.5{width:.875rem}.w-3\\/5{width:60%}.w-4{width:1rem}.w-5\\/6{width:83.333333%}.w-60{width:15rem}.w-9{width:2.25rem}.w-auto{width:auto}.w-dvw{width:100dvw}.w-fit{width:fit-content}.w-full{width:100%}.min-w-80{min-width:20rem}.min-w-\\[8rem\\]{min-width:8rem}.max-w-96{max-width:24rem}.max-w-\\[61\\.8\\%\\]{max-width:61.8%}.max-w-full{max-width:100%}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-\\[2\\]{flex:2}.shrink-0{flex-shrink:0}.translate-x-\\[-50\\%\\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[var\\(--wobble-x\\)\\]{--tw-translate-x: var(--wobble-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[-50\\%\\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[var\\(--wobble-y\\)\\]{--tw-translate-y: var(--wobble-y);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-\\[1px\\]{gap:1px}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.scroll-smooth{scroll-behavior:smooth}.text-ellipsis{text-overflow:ellipsis}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-\\[20px\\]{border-radius:20px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-l-md{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.rounded-r-md{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-bl-md{border-bottom-left-radius:.375rem}.rounded-br-md{border-bottom-right-radius:.375rem}.rounded-tl-md{border-top-left-radius:.375rem}.rounded-tr-md{border-top-right-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-none{border-style:none}.border-transparent{border-color:transparent}.bg-\\[white\\]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-background{background-color:hsl(var(--opencx-background))}.bg-black\\/50{background-color:#00000080}.bg-black\\/60{background-color:#0009}.bg-destructive{background-color:hsl(var(--opencx-destructive))}.bg-destructive\\/15{background-color:hsl(var(--opencx-destructive) / .15)}.bg-muted{background-color:hsl(var(--opencx-muted))}.bg-primary{background-color:hsl(var(--opencx-primary))}.bg-secondary{background-color:hsl(var(--opencx-secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-\\[radial-gradient\\(ellipse_at_top_left\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\,radial-gradient\\(ellipse_at_top_right\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\]{background-image:radial-gradient(ellipse at top left,hsl(var(--opencx-primary)),transparent),radial-gradient(ellipse at top right,hsl(var(--opencx-primary)),transparent)}.fill-current{fill:currentColor}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-8{padding:2rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-0{padding-bottom:0}.pb-2{padding-bottom:.5rem}.pe-2{padding-inline-end:.5rem}.pe-4{padding-inline-end:1rem}.ps-2{padding-inline-start:.5rem}.ps-4{padding-inline-start:1rem}.ps-8{padding-inline-start:2rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.text-center{text-align:center}.text-start{text-align:start}.align-middle{vertical-align:middle}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-\\[1\\.75rem\\]{font-size:1.75rem}.text-\\[10px\\]{font-size:10px}.text-\\[16px\\]{font-size:16px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-none{line-height:1}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-destructive{color:hsl(var(--opencx-destructive))}.text-destructive-foreground{color:hsl(var(--opencx-destructive-foreground))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}.text-foreground{color:hsl(var(--opencx-foreground))}.text-muted-foreground{color:hsl(var(--opencx-muted-foreground))}.text-muted-foreground\\/70{color:hsl(var(--opencx-muted-foreground) / .7)}.text-muted-foreground\\/75{color:hsl(var(--opencx-muted-foreground) / .75)}.text-primary{color:hsl(var(--opencx-primary))}.text-primary-foreground{color:hsl(var(--opencx-primary-foreground))}.text-secondary-foreground{color:hsl(var(--opencx-secondary-foreground))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-35{opacity:.35}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-95{opacity:.95}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-8{outline-width:8px}.outline-background{outline-color:hsl(var(--opencx-background))}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-offset-background{--tw-ring-offset-color: hsl(var(--opencx-background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[height\\]{transition-property:height;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.\\[animation-delay\\:-0\\.15s\\]{animation-delay:-.15s}.\\[animation-delay\\:-0\\.3s\\]{animation-delay:-.3s}.\\[field-sizing\\:content\\;\\],.\\[field-sizing\\:content\\]{field-sizing:content}.\\[word-break\\:break-word\\]{word-break:break-word}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.file\\:text-primary-foreground::file-selector-button{color:hsl(var(--opencx-primary-foreground))}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--opencx-muted-foreground))}.placeholder\\:text-muted-foreground\\/75::placeholder{color:hsl(var(--opencx-muted-foreground) / .75)}.focus-within\\:border-primary:focus-within{border-color:hsl(var(--opencx-primary))}.hover\\:scale-\\[var\\(--scale\\)\\]:hover{--tw-scale-x: var(--scale);--tw-scale-y: var(--scale);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:border-primary:hover{border-color:hsl(var(--opencx-primary))}.hover\\:bg-secondary:hover{background-color:hsl(var(--opencx-secondary))}.hover\\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.hover\\:text-primary:hover{color:hsl(var(--opencx-primary))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.focus\\:bg-accent:focus{background-color:hsl(var(--opencx-accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--opencx-accent-foreground))}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--opencx-ring))}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--opencx-background))}.active\\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\\:hover\\:scale-\\[calc\\(var\\(--scale\\)-0\\.02\\)\\]:hover:active{--tw-scale-x: calc(var(--scale) - .02);--tw-scale-y: calc(var(--scale) - .02);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:active\\:scale-95:active:hover{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\\:opacity-100{opacity:1}.group:hover .group-hover\\:active\\:scale-90:active,.group:active .group-active\\:scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[state\\=checked\\]\\:translate-x-4[data-state=checked]{--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:hsl(var(--opencx-primary))}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--opencx-accent))}.data-\\[state\\=unchecked\\]\\:bg-input[data-state=unchecked]{background-color:hsl(var(--opencx-input))}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.prose-a\\:underline :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-line:underline}.prose-a\\:decoration-primary :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-color:hsl(var(--opencx-primary))}.rtl\\:-scale-100:where([dir=rtl],[dir=rtl] *){--tw-scale-x: -1;--tw-scale-y: -1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\\[\\&_span\\]\\:size-1 span{width:.25rem;height:.25rem}.\\[\\&_span\\]\\:bg-secondary-foreground span{background-color:hsl(var(--opencx-secondary-foreground))}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:size-4 svg{width:1rem;height:1rem}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_svg\\]\\:text-muted-foreground\\/70 svg{color:hsl(var(--opencx-muted-foreground) / .7)}.\\[\\&_svg\\]\\:hover\\:text-primary:hover svg{color:hsl(var(--opencx-primary))}', Ur = ne.Provider, qr = ne.Root, Xr = ne.Trigger, jt = K.forwardRef(({ className: e, sideOffset: o = 4, ...t }, n) => /* @__PURE__ */ r(
|
|
546
546
|
ne.Content,
|
|
547
547
|
{
|
|
548
548
|
ref: n,
|
|
@@ -562,7 +562,7 @@ function ee({
|
|
|
562
562
|
align: n
|
|
563
563
|
}) {
|
|
564
564
|
const { disableTooltips: s } = b();
|
|
565
|
-
return !o || s ? e : /* @__PURE__ */
|
|
565
|
+
return !o || s ? e : /* @__PURE__ */ d(qr, { children: [
|
|
566
566
|
/* @__PURE__ */ r(Xr, { asChild: !0, children: e }),
|
|
567
567
|
/* @__PURE__ */ r(
|
|
568
568
|
jt,
|
|
@@ -577,9 +577,9 @@ function ee({
|
|
|
577
577
|
] });
|
|
578
578
|
}
|
|
579
579
|
const st = 450;
|
|
580
|
-
function
|
|
581
|
-
const [e, o] =
|
|
582
|
-
return
|
|
580
|
+
function A() {
|
|
581
|
+
const [e, o] = L.useState(() => (window.top || window).innerWidth < st);
|
|
582
|
+
return L.useEffect(() => {
|
|
583
583
|
const t = window.top || window, n = () => {
|
|
584
584
|
o(t.innerWidth < st);
|
|
585
585
|
};
|
|
@@ -592,20 +592,20 @@ const ae = {
|
|
|
592
592
|
transitionTimingFunction: "cubic-bezier(0.16, 1, 0.3, 1)",
|
|
593
593
|
transitionDuration: "1000ms"
|
|
594
594
|
};
|
|
595
|
-
function
|
|
596
|
-
var x, m, z,
|
|
597
|
-
const { dir: e } = ve(), { isSmallScreen: o } =
|
|
595
|
+
function X() {
|
|
596
|
+
var x, m, z, u, k, I, f, R, F, H, W, O, v, N, S, B, se, _e, Ie, Te, Me, De, Re, je, Ee, Oe, Pe, Ae, Fe, He, We, Le, $e, Be, Ye, Ue, qe, Xe, Ve, Ge, Ke, Qe, Ze, Je, et, tt, rt;
|
|
597
|
+
const { dir: e } = ve(), { isSmallScreen: o } = A(), { theme: t, inline: n } = b(), s = (Y) => n ? "100%" : Y, i = (Y, he) => o ? `100dv${Y}` : he, a = (Y, he) => s(i(Y, he)), l = {
|
|
598
598
|
zIndex: ((x = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : x.zIndex) ?? 1e7,
|
|
599
599
|
offset: {
|
|
600
600
|
bottom: ((z = (m = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : m.offset) == null ? void 0 : z.bottom) ?? 20,
|
|
601
|
-
right: ((k = (
|
|
601
|
+
right: ((k = (u = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : u.offset) == null ? void 0 : k.right) ?? (e === "ltr" ? 20 : "initial"),
|
|
602
602
|
left: ((f = (I = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : I.offset) == null ? void 0 : f.left) ?? (e === "rtl" ? 20 : "initial")
|
|
603
603
|
},
|
|
604
604
|
size: {
|
|
605
|
-
button: ((
|
|
605
|
+
button: ((F = (R = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : R.size) == null ? void 0 : F.button) ?? 48,
|
|
606
606
|
icon: ((W = (H = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : H.size) == null ? void 0 : W.icon) ?? 24
|
|
607
607
|
}
|
|
608
|
-
},
|
|
608
|
+
}, c = (() => {
|
|
609
609
|
const Y = e === "ltr" ? l.offset.right : l.offset.left;
|
|
610
610
|
return typeof Y != "number" ? 0 : Y;
|
|
611
611
|
})(), h = {
|
|
@@ -613,7 +613,7 @@ function q() {
|
|
|
613
613
|
primaryColor: (t == null ? void 0 : t.primaryColor) ?? "hsl(0 0% 9%)",
|
|
614
614
|
widgetTrigger: l,
|
|
615
615
|
widgetContentContainer: {
|
|
616
|
-
borderRadius: o ? "0px" : ((
|
|
616
|
+
borderRadius: o ? "0px" : ((O = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : O.borderRadius) ?? "32px",
|
|
617
617
|
zIndex: ((v = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : v.zIndex) ?? l.zIndex + 1,
|
|
618
618
|
outline: ((N = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : N.outline) ?? "none",
|
|
619
619
|
// was: '1px solid'
|
|
@@ -623,21 +623,21 @@ function q() {
|
|
|
623
623
|
transitionTimingFunction: ((_e = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : _e.transitionTimingFunction) ?? ae.transitionTimingFunction,
|
|
624
624
|
transitionDuration: ((Ie = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Ie.transitionDuration) ?? ae.transitionDuration,
|
|
625
625
|
offset: {
|
|
626
|
-
side: o ? 0 : l.offset.bottom + l.size.button +
|
|
627
|
-
align: o ? 0 :
|
|
626
|
+
side: o ? 0 : l.offset.bottom + l.size.button + G.y * 2 + (((Me = (Te = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Te.offset) == null ? void 0 : Me.side) ?? 10),
|
|
627
|
+
align: o ? 0 : c + (((Re = (De = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : De.offset) == null ? void 0 : Re.align) ?? 0)
|
|
628
628
|
}
|
|
629
629
|
},
|
|
630
630
|
screens: {
|
|
631
631
|
welcome: {
|
|
632
|
-
width: a("w", ((
|
|
632
|
+
width: a("w", ((Ee = (je = t == null ? void 0 : t.screens) == null ? void 0 : je.welcome) == null ? void 0 : Ee.width) ?? "400px"),
|
|
633
633
|
// By setting minHeight to 1px, a nice animation will play from 1px to the dynamic height of the content of the screen
|
|
634
634
|
minHeight: a(
|
|
635
635
|
"h",
|
|
636
|
-
((
|
|
636
|
+
((Pe = (Oe = t == null ? void 0 : t.screens) == null ? void 0 : Oe.welcome) == null ? void 0 : Pe.minHeight) ?? "1px"
|
|
637
637
|
)
|
|
638
638
|
},
|
|
639
639
|
sessions: {
|
|
640
|
-
width: a("w", ((
|
|
640
|
+
width: a("w", ((Fe = (Ae = t == null ? void 0 : t.screens) == null ? void 0 : Ae.sessions) == null ? void 0 : Fe.width) ?? "450px"),
|
|
641
641
|
height: a("h", ((We = (He = t == null ? void 0 : t.screens) == null ? void 0 : He.sessions) == null ? void 0 : We.height) ?? "600px")
|
|
642
642
|
},
|
|
643
643
|
chat: {
|
|
@@ -667,7 +667,7 @@ function q() {
|
|
|
667
667
|
100vh
|
|
668
668
|
- ${h.widgetTrigger.offset.bottom}px
|
|
669
669
|
- ${h.widgetContentContainer.offset.side}px
|
|
670
|
-
- ${
|
|
670
|
+
- ${G.y * 2}px
|
|
671
671
|
)`
|
|
672
672
|
),
|
|
673
673
|
// Subtract the offset.right twice so that it adds a bit of padding to the left
|
|
@@ -675,7 +675,7 @@ function q() {
|
|
|
675
675
|
"w",
|
|
676
676
|
`calc(
|
|
677
677
|
100vw
|
|
678
|
-
- ${
|
|
678
|
+
- ${c * 2}px
|
|
679
679
|
)`
|
|
680
680
|
),
|
|
681
681
|
minHeight: a(
|
|
@@ -787,11 +787,11 @@ function Et(e) {
|
|
|
787
787
|
case "slate":
|
|
788
788
|
return s;
|
|
789
789
|
default:
|
|
790
|
-
return
|
|
790
|
+
return j(e, Et.name), o;
|
|
791
791
|
}
|
|
792
792
|
}
|
|
793
|
-
function
|
|
794
|
-
const { contentIframeRef: e } =
|
|
793
|
+
function Ot() {
|
|
794
|
+
const { contentIframeRef: e } = M(), { inline: o } = b();
|
|
795
795
|
return {
|
|
796
796
|
setWidth: (t) => {
|
|
797
797
|
var n;
|
|
@@ -813,7 +813,7 @@ function ze({
|
|
|
813
813
|
width: e,
|
|
814
814
|
height: o
|
|
815
815
|
}) {
|
|
816
|
-
const { isSmallScreen: t } =
|
|
816
|
+
const { isSmallScreen: t } = A(), { setWidth: n, setHeight: s } = Ot();
|
|
817
817
|
oe(() => {
|
|
818
818
|
e && n(e), o && s(o);
|
|
819
819
|
}, [t, o, e, n, s]);
|
|
@@ -830,7 +830,7 @@ function te({
|
|
|
830
830
|
case "CheckCheck":
|
|
831
831
|
return hr;
|
|
832
832
|
case "CircleCheck":
|
|
833
|
-
return
|
|
833
|
+
return ft;
|
|
834
834
|
case "CircleCheckBig":
|
|
835
835
|
return pr;
|
|
836
836
|
case "CircleX":
|
|
@@ -858,7 +858,7 @@ function te({
|
|
|
858
858
|
case void 0:
|
|
859
859
|
return at;
|
|
860
860
|
default:
|
|
861
|
-
return
|
|
861
|
+
return j(e, te.name), at;
|
|
862
862
|
}
|
|
863
863
|
})();
|
|
864
864
|
return /* @__PURE__ */ r(t, { className: p("size-4", o) });
|
|
@@ -876,9 +876,9 @@ function Kr({ fallback: e }) {
|
|
|
876
876
|
function Ne() {
|
|
877
877
|
const {
|
|
878
878
|
widgetCtx: { org: e }
|
|
879
|
-
} =
|
|
879
|
+
} = M(), {
|
|
880
880
|
routerState: { screen: o }
|
|
881
|
-
} =
|
|
881
|
+
} = E(), { textContent: t } = b();
|
|
882
882
|
return (() => {
|
|
883
883
|
var s, i;
|
|
884
884
|
switch (o) {
|
|
@@ -889,7 +889,7 @@ function Ne() {
|
|
|
889
889
|
case "welcome":
|
|
890
890
|
return;
|
|
891
891
|
default:
|
|
892
|
-
|
|
892
|
+
j(o, Ne.name);
|
|
893
893
|
return;
|
|
894
894
|
}
|
|
895
895
|
})() ?? e.name ?? "Chat";
|
|
@@ -903,7 +903,7 @@ function Qr(e) {
|
|
|
903
903
|
case "welcome":
|
|
904
904
|
return;
|
|
905
905
|
default:
|
|
906
|
-
|
|
906
|
+
j(e, Ne.name);
|
|
907
907
|
return;
|
|
908
908
|
}
|
|
909
909
|
}
|
|
@@ -911,7 +911,7 @@ function Zr() {
|
|
|
911
911
|
const { router: e } = b(), {
|
|
912
912
|
routerState: { screen: o },
|
|
913
913
|
toSessionsScreen: t
|
|
914
|
-
} =
|
|
914
|
+
} = E();
|
|
915
915
|
return o !== "chat" || e != null && e.chatScreenOnly ? null : /* @__PURE__ */ r(
|
|
916
916
|
C,
|
|
917
917
|
{
|
|
@@ -926,7 +926,7 @@ function Zr() {
|
|
|
926
926
|
function Jr({
|
|
927
927
|
button: e
|
|
928
928
|
}) {
|
|
929
|
-
const { setIsOpen: o } =
|
|
929
|
+
const { setIsOpen: o } = q(), { isSmallScreen: t } = A();
|
|
930
930
|
return t && e.hideOnSmallScreen || !t && e.hideOnLargeScreen ? null : /* @__PURE__ */ r(
|
|
931
931
|
C,
|
|
932
932
|
{
|
|
@@ -941,21 +941,21 @@ function Jr({
|
|
|
941
941
|
}
|
|
942
942
|
);
|
|
943
943
|
}
|
|
944
|
-
function
|
|
944
|
+
function we({
|
|
945
945
|
button: e
|
|
946
946
|
}) {
|
|
947
947
|
const [o, t] = T(!1), {
|
|
948
948
|
routerState: { screen: n }
|
|
949
|
-
} =
|
|
949
|
+
} = E(), { isSmallScreen: s } = A(), { theme: i } = X(), { setWidth: a, setHeight: l } = Ot();
|
|
950
950
|
if (n !== "chat" && n !== "sessions") return null;
|
|
951
|
-
const
|
|
951
|
+
const c = (() => {
|
|
952
952
|
switch (n) {
|
|
953
953
|
case "chat":
|
|
954
954
|
return i.screens.chat.height;
|
|
955
955
|
case "sessions":
|
|
956
956
|
return i.screens.sessions.height;
|
|
957
957
|
default:
|
|
958
|
-
return
|
|
958
|
+
return j(n, we.name), i.screens.chat.height;
|
|
959
959
|
}
|
|
960
960
|
})(), h = (() => {
|
|
961
961
|
switch (n) {
|
|
@@ -964,12 +964,12 @@ function ue({
|
|
|
964
964
|
case "sessions":
|
|
965
965
|
return i.screens.sessions.width;
|
|
966
966
|
default:
|
|
967
|
-
return
|
|
967
|
+
return j(n, we.name), i.screens.chat.width;
|
|
968
968
|
}
|
|
969
969
|
})(), y = () => {
|
|
970
970
|
t((x) => {
|
|
971
971
|
const m = !x;
|
|
972
|
-
return l(m ? "100vh" :
|
|
972
|
+
return l(m ? "100vh" : c), a(m ? `max(40vw, ${h})` : h), m;
|
|
973
973
|
});
|
|
974
974
|
};
|
|
975
975
|
return s && e.hideOnSmallScreen || !s && e.hideOnLargeScreen ? null : /* @__PURE__ */ r(
|
|
@@ -992,9 +992,9 @@ function Pt({
|
|
|
992
992
|
button: e
|
|
993
993
|
}) {
|
|
994
994
|
var k, I;
|
|
995
|
-
const { close: o } = pe(), { widgetCtx: t } =
|
|
996
|
-
const { success: f, error:
|
|
997
|
-
if (o(), !f) return console.error(
|
|
995
|
+
const { close: o } = pe(), { widgetCtx: t } = M(), { setIsOpen: n } = q(), { resolveSession: s, sessionState: i } = $(), { isSmallScreen: a } = A(), l = !i.session, c = ((k = i.session) == null ? void 0 : k.isOpened) === !1, h = e.onResolved || "stay-in-chat", y = e.behaviorBeforeSessionCreation || "disabled", x = e.behaviorIfSessionIsResolved || "disabled", m = !!(i.isResolvingSession || l && y === "disabled" || c && x === "disabled"), z = async () => {
|
|
996
|
+
const { success: f, error: R } = await s();
|
|
997
|
+
if (o(), !f) return console.error(R);
|
|
998
998
|
switch (h) {
|
|
999
999
|
case "stay-in-chat":
|
|
1000
1000
|
return;
|
|
@@ -1008,10 +1008,10 @@ function Pt({
|
|
|
1008
1008
|
n(!1), t.resetChat();
|
|
1009
1009
|
break;
|
|
1010
1010
|
default:
|
|
1011
|
-
|
|
1011
|
+
j(h, Pt.name);
|
|
1012
1012
|
break;
|
|
1013
1013
|
}
|
|
1014
|
-
},
|
|
1014
|
+
}, u = () => {
|
|
1015
1015
|
if (l)
|
|
1016
1016
|
switch (y) {
|
|
1017
1017
|
case "disabled":
|
|
@@ -1020,12 +1020,12 @@ function Pt({
|
|
|
1020
1020
|
n(!1);
|
|
1021
1021
|
break;
|
|
1022
1022
|
default:
|
|
1023
|
-
|
|
1023
|
+
j(
|
|
1024
1024
|
y,
|
|
1025
|
-
|
|
1025
|
+
u.name
|
|
1026
1026
|
);
|
|
1027
1027
|
}
|
|
1028
|
-
if (
|
|
1028
|
+
if (c)
|
|
1029
1029
|
switch (x) {
|
|
1030
1030
|
case "disabled":
|
|
1031
1031
|
return;
|
|
@@ -1041,14 +1041,14 @@ function Pt({
|
|
|
1041
1041
|
}, 200);
|
|
1042
1042
|
break;
|
|
1043
1043
|
default:
|
|
1044
|
-
|
|
1044
|
+
j(
|
|
1045
1045
|
x,
|
|
1046
|
-
|
|
1046
|
+
u.name
|
|
1047
1047
|
);
|
|
1048
1048
|
}
|
|
1049
1049
|
};
|
|
1050
|
-
return a && e.hideOnSmallScreen || !a && e.hideOnLargeScreen ? null : ((I = e.confirmation) == null ? void 0 : I.type) === "modal" && !
|
|
1051
|
-
|
|
1050
|
+
return a && e.hideOnSmallScreen || !a && e.hideOnLargeScreen ? null : ((I = e.confirmation) == null ? void 0 : I.type) === "modal" && !c && !l ? /* @__PURE__ */ r(
|
|
1051
|
+
Tt,
|
|
1052
1052
|
{
|
|
1053
1053
|
trigger: /* @__PURE__ */ r(
|
|
1054
1054
|
C,
|
|
@@ -1060,10 +1060,10 @@ function Pt({
|
|
|
1060
1060
|
children: /* @__PURE__ */ r(te, { name: e.icon })
|
|
1061
1061
|
}
|
|
1062
1062
|
),
|
|
1063
|
-
children: /* @__PURE__ */
|
|
1064
|
-
/* @__PURE__ */ r(
|
|
1065
|
-
/* @__PURE__ */ r(
|
|
1066
|
-
/* @__PURE__ */
|
|
1063
|
+
children: /* @__PURE__ */ d(Ct, { children: [
|
|
1064
|
+
/* @__PURE__ */ r(zt, { children: /* @__PURE__ */ r(_t, { children: e.confirmation.title || "Close conversation" }) }),
|
|
1065
|
+
/* @__PURE__ */ r(Nt, { children: /* @__PURE__ */ r(It, { children: e.confirmation.description || "Are you sure you want to close this conversation?" }) }),
|
|
1066
|
+
/* @__PURE__ */ d(St, { children: [
|
|
1067
1067
|
/* @__PURE__ */ r(
|
|
1068
1068
|
C,
|
|
1069
1069
|
{
|
|
@@ -1091,7 +1091,7 @@ function Pt({
|
|
|
1091
1091
|
variant: "ghost",
|
|
1092
1092
|
size: "fit",
|
|
1093
1093
|
className: "rounded-full",
|
|
1094
|
-
onClick:
|
|
1094
|
+
onClick: c || l ? u : z,
|
|
1095
1095
|
disabled: m,
|
|
1096
1096
|
children: /* @__PURE__ */ r(te, { name: e.icon })
|
|
1097
1097
|
}
|
|
@@ -1102,11 +1102,11 @@ function fe({ button: e }) {
|
|
|
1102
1102
|
case "close-widget":
|
|
1103
1103
|
return /* @__PURE__ */ r(Jr, { button: e });
|
|
1104
1104
|
case "expand-shrink":
|
|
1105
|
-
return /* @__PURE__ */ r(
|
|
1105
|
+
return /* @__PURE__ */ r(we, { button: e });
|
|
1106
1106
|
case "resolve-session":
|
|
1107
1107
|
return /* @__PURE__ */ r(Pt, { button: e });
|
|
1108
1108
|
default:
|
|
1109
|
-
return
|
|
1109
|
+
return j(e, fe.name), null;
|
|
1110
1110
|
}
|
|
1111
1111
|
}
|
|
1112
1112
|
const eo = {
|
|
@@ -1117,7 +1117,7 @@ const eo = {
|
|
|
1117
1117
|
function to() {
|
|
1118
1118
|
const {
|
|
1119
1119
|
routerState: { screen: e }
|
|
1120
|
-
} =
|
|
1120
|
+
} = E(), { headerButtons: o } = b(), t = e === "chat" ? o == null ? void 0 : o.chatScreen : e === "sessions" ? o == null ? void 0 : o.sessionsScreen : [];
|
|
1121
1121
|
return !t || t.length === 0 ? /* @__PURE__ */ r(fe, { button: eo }) : /* @__PURE__ */ r(re, { children: t.map((n) => /* @__PURE__ */ r(
|
|
1122
1122
|
fe,
|
|
1123
1123
|
{
|
|
@@ -1129,9 +1129,9 @@ function to() {
|
|
|
1129
1129
|
function At() {
|
|
1130
1130
|
const {
|
|
1131
1131
|
routerState: { screen: e }
|
|
1132
|
-
} =
|
|
1133
|
-
return /* @__PURE__ */
|
|
1134
|
-
/* @__PURE__ */
|
|
1132
|
+
} = E(), o = Qr(e), t = Ne();
|
|
1133
|
+
return /* @__PURE__ */ d("header", { ...o, className: "py-2 px-4 shrink-0", children: [
|
|
1134
|
+
/* @__PURE__ */ d("div", { className: "flex items-center gap-2", children: [
|
|
1135
1135
|
/* @__PURE__ */ r(Zr, {}),
|
|
1136
1136
|
/* @__PURE__ */ r(
|
|
1137
1137
|
"div",
|
|
@@ -1154,20 +1154,20 @@ function At() {
|
|
|
1154
1154
|
] });
|
|
1155
1155
|
}
|
|
1156
1156
|
function Ft({ className: e }) {
|
|
1157
|
-
return /* @__PURE__ */ r(
|
|
1157
|
+
return /* @__PURE__ */ r(ur, { className: p("size-4 animate-spin", e) });
|
|
1158
1158
|
}
|
|
1159
1159
|
function ro() {
|
|
1160
1160
|
const {
|
|
1161
1161
|
messagesState: { isInitialFetchLoading: e }
|
|
1162
|
-
} =
|
|
1162
|
+
} = D(), { isSmallScreen: o } = A(), { activeMode: t, Component: n } = mt();
|
|
1163
1163
|
return {
|
|
1164
1164
|
isCanvasOpen: !e && !o && !!t && !!n
|
|
1165
1165
|
};
|
|
1166
1166
|
}
|
|
1167
1167
|
function oo() {
|
|
1168
|
-
const e = Z(), { activeMode: o, Component: t } = mt(), { sendMessage: n } =
|
|
1168
|
+
const e = Z(), { activeMode: o, Component: t } = mt(), { sendMessage: n } = D(), { createStateCheckpoint: s } = $(), [i, a] = T(!1), l = async (c) => {
|
|
1169
1169
|
try {
|
|
1170
|
-
a(!0), await n(
|
|
1170
|
+
a(!0), await n(c);
|
|
1171
1171
|
} catch (h) {
|
|
1172
1172
|
console.error(h);
|
|
1173
1173
|
} finally {
|
|
@@ -1185,11 +1185,11 @@ function oo() {
|
|
|
1185
1185
|
}
|
|
1186
1186
|
);
|
|
1187
1187
|
}
|
|
1188
|
-
const P =
|
|
1188
|
+
const P = L.forwardRef(
|
|
1189
1189
|
(e, o) => {
|
|
1190
1190
|
var t, n, s;
|
|
1191
1191
|
return /* @__PURE__ */ r(
|
|
1192
|
-
|
|
1192
|
+
w,
|
|
1193
1193
|
{
|
|
1194
1194
|
...e,
|
|
1195
1195
|
ref: o,
|
|
@@ -1232,21 +1232,21 @@ const no = [
|
|
|
1232
1232
|
}
|
|
1233
1233
|
];
|
|
1234
1234
|
function so() {
|
|
1235
|
-
const { isSmallScreen: e } =
|
|
1235
|
+
const { isSmallScreen: e } = A(), {
|
|
1236
1236
|
submitCsat: o,
|
|
1237
1237
|
isCsatRequested: t,
|
|
1238
1238
|
isCsatSubmitted: n,
|
|
1239
1239
|
submittedScore: s,
|
|
1240
1240
|
submittedFeedback: i
|
|
1241
|
-
} = gt(), [a, l] = T(null), [
|
|
1241
|
+
} = gt(), [a, l] = T(null), [c, h] = T(null), y = (m) => {
|
|
1242
1242
|
l((z) => z === m ? null : m);
|
|
1243
1243
|
}, x = () => {
|
|
1244
1244
|
a && o({
|
|
1245
1245
|
score: a,
|
|
1246
|
-
feedback:
|
|
1246
|
+
feedback: c || void 0
|
|
1247
1247
|
});
|
|
1248
1248
|
};
|
|
1249
|
-
return !t && !n ? null : /* @__PURE__ */
|
|
1249
|
+
return !t && !n ? null : /* @__PURE__ */ d("div", { className: "w-1/2 min-w-80 max-w-96 mx-auto overflow-hidden", children: [
|
|
1250
1250
|
/* @__PURE__ */ r(_, { mode: "wait", children: t && !a ? /* @__PURE__ */ r(P, { children: /* @__PURE__ */ r("p", { className: "text-sm text-muted-foreground text-center pt-2", children: "How was your conversation?" }) }, "csat-requested-title") : n ? /* @__PURE__ */ r(P, { children: /* @__PURE__ */ r("p", { className: "text-sm text-muted-foreground text-center pt-2", children: "You rated the conversation as" }) }, "csat-submitted-title") : null }),
|
|
1251
1251
|
/* @__PURE__ */ r(
|
|
1252
1252
|
"div",
|
|
@@ -1278,7 +1278,7 @@ function so() {
|
|
|
1278
1278
|
))
|
|
1279
1279
|
}
|
|
1280
1280
|
),
|
|
1281
|
-
/* @__PURE__ */ r(_, { mode: "wait", children: (a || s) && /* @__PURE__ */ r(P, { children: /* @__PURE__ */
|
|
1281
|
+
/* @__PURE__ */ r(_, { mode: "wait", children: (a || s) && /* @__PURE__ */ r(P, { children: /* @__PURE__ */ d("div", { className: "pb-2 px-2 flex items-end", children: [
|
|
1282
1282
|
/* @__PURE__ */ r(
|
|
1283
1283
|
"textarea",
|
|
1284
1284
|
{
|
|
@@ -1293,7 +1293,7 @@ function so() {
|
|
|
1293
1293
|
e ? "text-[16px]" : "text-sm",
|
|
1294
1294
|
n && "text-center"
|
|
1295
1295
|
),
|
|
1296
|
-
value: n ? i || "" :
|
|
1296
|
+
value: n ? i || "" : c || "",
|
|
1297
1297
|
onChange: t ? (m) => h(m.target.value) : void 0,
|
|
1298
1298
|
readOnly: n,
|
|
1299
1299
|
placeholder: t ? "Tell us more... (optional)" : void 0
|
|
@@ -1310,14 +1310,14 @@ function so() {
|
|
|
1310
1310
|
"rounded-full size-8 flex items-center justify-center p-0",
|
|
1311
1311
|
n && "opacity-0 size-0"
|
|
1312
1312
|
),
|
|
1313
|
-
children: /* @__PURE__ */ r(
|
|
1313
|
+
children: /* @__PURE__ */ r(vt, { className: "size-4" })
|
|
1314
1314
|
}
|
|
1315
1315
|
)
|
|
1316
1316
|
] }) }, "feedback-box") }),
|
|
1317
1317
|
/* @__PURE__ */ r("div", { className: p("h-0 transition-[height]", n && "h-4") })
|
|
1318
1318
|
] });
|
|
1319
1319
|
}
|
|
1320
|
-
function
|
|
1320
|
+
function V() {
|
|
1321
1321
|
const { dir: e } = ve(), o = b();
|
|
1322
1322
|
return ht(() => {
|
|
1323
1323
|
const t = Tr(o.language) ? o.language : "en";
|
|
@@ -1334,7 +1334,7 @@ function Se({
|
|
|
1334
1334
|
className: o,
|
|
1335
1335
|
...t
|
|
1336
1336
|
}) {
|
|
1337
|
-
const { sendMessage: n } =
|
|
1337
|
+
const { sendMessage: n } = D(), s = () => {
|
|
1338
1338
|
const i = e.trim();
|
|
1339
1339
|
i && n({ content: i });
|
|
1340
1340
|
};
|
|
@@ -1351,7 +1351,7 @@ function Se({
|
|
|
1351
1351
|
);
|
|
1352
1352
|
}
|
|
1353
1353
|
function ao() {
|
|
1354
|
-
const { t: e } =
|
|
1354
|
+
const { t: e } = V(), o = [e("i_need_more_help"), e("this_was_helpful")];
|
|
1355
1355
|
return /* @__PURE__ */ r(
|
|
1356
1356
|
"div",
|
|
1357
1357
|
{
|
|
@@ -1381,8 +1381,8 @@ function io({
|
|
|
1381
1381
|
);
|
|
1382
1382
|
oe(() => {
|
|
1383
1383
|
if (!o.type.startsWith("image/")) return;
|
|
1384
|
-
const
|
|
1385
|
-
return
|
|
1384
|
+
const c = new FileReader();
|
|
1385
|
+
return c.onload = () => i(c.result), c.onerror = () => console.error("Error reading file"), c.readAsDataURL(o), () => c.abort();
|
|
1386
1386
|
}, [o]);
|
|
1387
1387
|
const a = () => {
|
|
1388
1388
|
switch (e) {
|
|
@@ -1394,25 +1394,25 @@ function io({
|
|
|
1394
1394
|
return null;
|
|
1395
1395
|
}
|
|
1396
1396
|
}, l = () => {
|
|
1397
|
-
const
|
|
1398
|
-
return
|
|
1397
|
+
const c = o.type.split("/")[0];
|
|
1398
|
+
return c === "image" && s ? /* @__PURE__ */ r(
|
|
1399
1399
|
"img",
|
|
1400
1400
|
{
|
|
1401
1401
|
src: typeof s == "string" ? s : "",
|
|
1402
1402
|
className: "object-cover bg-secondary size-full",
|
|
1403
1403
|
alt: o.name
|
|
1404
1404
|
}
|
|
1405
|
-
) :
|
|
1405
|
+
) : c === "audio" ? /* @__PURE__ */ r(yr, {}) : c === "video" ? /* @__PURE__ */ r(kr, {}) : /* @__PURE__ */ r(Cr, {});
|
|
1406
1406
|
};
|
|
1407
1407
|
return /* @__PURE__ */ r(
|
|
1408
1408
|
ee,
|
|
1409
1409
|
{
|
|
1410
1410
|
side: "bottom",
|
|
1411
|
-
content: e === "error" ? /* @__PURE__ */
|
|
1411
|
+
content: e === "error" ? /* @__PURE__ */ d("span", { className: "text-destructive", children: [
|
|
1412
1412
|
"Failed to upload: ",
|
|
1413
1413
|
t
|
|
1414
1414
|
] }) : o.name,
|
|
1415
|
-
children: /* @__PURE__ */
|
|
1415
|
+
children: /* @__PURE__ */ d(
|
|
1416
1416
|
"div",
|
|
1417
1417
|
{
|
|
1418
1418
|
className: p(
|
|
@@ -1444,18 +1444,18 @@ function io({
|
|
|
1444
1444
|
);
|
|
1445
1445
|
}
|
|
1446
1446
|
function lo() {
|
|
1447
|
-
var
|
|
1448
|
-
const { isSmallScreen: e } =
|
|
1447
|
+
var O;
|
|
1448
|
+
const { isSmallScreen: e } = A(), o = de(null), { sendMessage: t } = D(), { sessionState: n } = $(), { t: s } = V(), [i, a] = T(""), {
|
|
1449
1449
|
allFiles: l,
|
|
1450
|
-
emptyTheFiles:
|
|
1450
|
+
emptyTheFiles: c,
|
|
1451
1451
|
handleCancelUpload: h,
|
|
1452
1452
|
appendFiles: y,
|
|
1453
1453
|
isUploading: x,
|
|
1454
1454
|
successFiles: m
|
|
1455
|
-
} =
|
|
1455
|
+
} = qt(), z = !!((O = n.session) != null && O.isHandedOff), { isAwaitingBotReply: u } = ut(), k = (v) => {
|
|
1456
1456
|
y(v);
|
|
1457
1457
|
}, I = !i.trim() && m.length === 0, f = async () => {
|
|
1458
|
-
if (
|
|
1458
|
+
if (u || I) return;
|
|
1459
1459
|
x && console.info("please wait for the file(s) to upload");
|
|
1460
1460
|
const v = i.trim();
|
|
1461
1461
|
t({
|
|
@@ -1471,10 +1471,10 @@ function lo() {
|
|
|
1471
1471
|
}
|
|
1472
1472
|
] : []
|
|
1473
1473
|
)
|
|
1474
|
-
}), a(""),
|
|
1474
|
+
}), a(""), c();
|
|
1475
1475
|
}, {
|
|
1476
|
-
getRootProps:
|
|
1477
|
-
getInputProps:
|
|
1476
|
+
getRootProps: R,
|
|
1477
|
+
getInputProps: F,
|
|
1478
1478
|
open: H
|
|
1479
1479
|
} = Dr({
|
|
1480
1480
|
onDrop: k,
|
|
@@ -1497,15 +1497,15 @@ function lo() {
|
|
|
1497
1497
|
const N = v.clipboardData;
|
|
1498
1498
|
N && N.files.length > 0 && k(Array.from(N.files));
|
|
1499
1499
|
};
|
|
1500
|
-
return /* @__PURE__ */
|
|
1500
|
+
return /* @__PURE__ */ d(
|
|
1501
1501
|
"div",
|
|
1502
1502
|
{
|
|
1503
1503
|
...g("chat/input_box/root"),
|
|
1504
1504
|
className: "p-2 relative space-y-1",
|
|
1505
|
-
...
|
|
1505
|
+
...R(),
|
|
1506
1506
|
children: [
|
|
1507
|
-
/* @__PURE__ */ r("input", { ...
|
|
1508
|
-
/* @__PURE__ */
|
|
1507
|
+
/* @__PURE__ */ r("input", { ...F() }),
|
|
1508
|
+
/* @__PURE__ */ d(
|
|
1509
1509
|
"div",
|
|
1510
1510
|
{
|
|
1511
1511
|
...g("chat/input_box/inner_root"),
|
|
@@ -1517,7 +1517,7 @@ function lo() {
|
|
|
1517
1517
|
"hover:border-primary focus-within:border-primary"
|
|
1518
1518
|
),
|
|
1519
1519
|
children: [
|
|
1520
|
-
/* @__PURE__ */
|
|
1520
|
+
/* @__PURE__ */ d(
|
|
1521
1521
|
"div",
|
|
1522
1522
|
{
|
|
1523
1523
|
...g("chat/input_box/textarea_and_attachments_container"),
|
|
@@ -1528,7 +1528,7 @@ function lo() {
|
|
|
1528
1528
|
{
|
|
1529
1529
|
...g("chat/input_box/attachments_container"),
|
|
1530
1530
|
className: "flex items-center gap-1",
|
|
1531
|
-
children: /* @__PURE__ */ r(_, { mode: "popLayout", children: l.map((v) => /* @__PURE__ */ r(
|
|
1531
|
+
children: /* @__PURE__ */ r(_, { mode: "popLayout", children: l.map((v) => /* @__PURE__ */ r(w, { snapExit: !0, children: /* @__PURE__ */ r(
|
|
1532
1532
|
io,
|
|
1533
1533
|
{
|
|
1534
1534
|
onCancel: () => h(v.id),
|
|
@@ -1567,7 +1567,7 @@ function lo() {
|
|
|
1567
1567
|
]
|
|
1568
1568
|
}
|
|
1569
1569
|
),
|
|
1570
|
-
/* @__PURE__ */
|
|
1570
|
+
/* @__PURE__ */ d("div", { className: "gap-2 flex justify-between", children: [
|
|
1571
1571
|
/* @__PURE__ */ r(
|
|
1572
1572
|
ee,
|
|
1573
1573
|
{
|
|
@@ -1583,7 +1583,7 @@ function lo() {
|
|
|
1583
1583
|
className: p(
|
|
1584
1584
|
"rounded-full size-8 flex items-center justify-center p-0 overflow-hidden"
|
|
1585
1585
|
),
|
|
1586
|
-
children: /* @__PURE__ */ r(_, { mode: "wait", children: z && !
|
|
1586
|
+
children: /* @__PURE__ */ r(_, { mode: "wait", children: z && !u ? /* @__PURE__ */ r(w, { children: /* @__PURE__ */ r(wr, { className: "size-4" }) }, "paper-clip") : /* @__PURE__ */ r(w, { children: /* @__PURE__ */ r(fr, { className: "size-4" }) }, "image-icon") })
|
|
1587
1587
|
}
|
|
1588
1588
|
)
|
|
1589
1589
|
}
|
|
@@ -1593,9 +1593,9 @@ function lo() {
|
|
|
1593
1593
|
{
|
|
1594
1594
|
size: "fit",
|
|
1595
1595
|
onClick: f,
|
|
1596
|
-
disabled:
|
|
1596
|
+
disabled: u || x || I,
|
|
1597
1597
|
className: "rounded-full size-8 flex items-center justify-center p-0",
|
|
1598
|
-
children: /* @__PURE__ */ r(_, { mode: "wait", children:
|
|
1598
|
+
children: /* @__PURE__ */ r(_, { mode: "wait", children: u || x ? /* @__PURE__ */ r(w, { snapExit: !0, children: /* @__PURE__ */ r(vr, { className: "size-4 animate-spin animate-iteration-infinite" }) }, "loading") : /* @__PURE__ */ r(w, { snapExit: !0, children: /* @__PURE__ */ r(vt, { className: "size-4" }) }, "send") })
|
|
1599
1599
|
}
|
|
1600
1600
|
) })
|
|
1601
1601
|
] })
|
|
@@ -1607,17 +1607,17 @@ function lo() {
|
|
|
1607
1607
|
);
|
|
1608
1608
|
}
|
|
1609
1609
|
function lt() {
|
|
1610
|
-
const { widgetCtx: e } =
|
|
1610
|
+
const { widgetCtx: e } = M(), { router: o } = b(), { canCreateNewSession: t } = $(), { toSessionsScreen: n } = E(), { t: s } = V();
|
|
1611
1611
|
return /* @__PURE__ */ r(re, { children: t || o != null && o.chatScreenOnly ? /* @__PURE__ */ r(C, { onClick: e.resetChat, className: "rounded-2xl w-full", children: s("new_conversation") }) : /* @__PURE__ */ r(C, { onClick: n, className: "rounded-2xl w-full", children: s("back_to_conversations") }) });
|
|
1612
1612
|
}
|
|
1613
1613
|
function co() {
|
|
1614
|
-
const { t: e } =
|
|
1615
|
-
return /* @__PURE__ */ r("div", { className: "p-2", children: /* @__PURE__ */ r("div", { className: "p-2 bg-muted rounded-3xl", children: /* @__PURE__ */ r(_, { mode: "wait", children: o || t ? /* @__PURE__ */
|
|
1614
|
+
const { t: e } = V(), { isCsatRequested: o, isCsatSubmitted: t } = gt();
|
|
1615
|
+
return /* @__PURE__ */ r("div", { className: "p-2", children: /* @__PURE__ */ r("div", { className: "p-2 bg-muted rounded-3xl", children: /* @__PURE__ */ r(_, { mode: "wait", children: o || t ? /* @__PURE__ */ d(P, { children: [
|
|
1616
1616
|
/* @__PURE__ */ r(so, {}),
|
|
1617
1617
|
/* @__PURE__ */ r(_, { mode: "wait", children: t && /* @__PURE__ */ r(P, { children: /* @__PURE__ */ r(lt, {}) }, "new-conv-or-back-to-convs-button") })
|
|
1618
|
-
] }, "csat") : /* @__PURE__ */
|
|
1619
|
-
/* @__PURE__ */
|
|
1620
|
-
/* @__PURE__ */ r(
|
|
1618
|
+
] }, "csat") : /* @__PURE__ */ d(P, { children: [
|
|
1619
|
+
/* @__PURE__ */ d("div", { className: "ps-2 flex items-center gap-1 pb-2", children: [
|
|
1620
|
+
/* @__PURE__ */ r(ft, { className: "size-4 text-emerald-600" }),
|
|
1621
1621
|
/* @__PURE__ */ r("h2", { className: "text-sm font-medium", children: e("your_issue_has_been_resolved") })
|
|
1622
1622
|
] }),
|
|
1623
1623
|
/* @__PURE__ */ r(lt, {})
|
|
@@ -1625,18 +1625,18 @@ function co() {
|
|
|
1625
1625
|
}
|
|
1626
1626
|
function po() {
|
|
1627
1627
|
var a;
|
|
1628
|
-
const { initialQuestions: e, initialQuestionsPosition: o, thisWasHelpfulOrNot: t } = b(), { sessionState: n } = $(), { messagesState: s } =
|
|
1629
|
-
return /* @__PURE__ */ r("footer", { children: /* @__PURE__ */ r(_, { mode: "wait", children: n.session && !((a = n.session) != null && a.isOpened) ? /* @__PURE__ */
|
|
1628
|
+
const { initialQuestions: e, initialQuestionsPosition: o, thisWasHelpfulOrNot: t } = b(), { sessionState: n } = $(), { messagesState: s } = D(), i = s.messages.length === 0;
|
|
1629
|
+
return /* @__PURE__ */ r("footer", { children: /* @__PURE__ */ r(_, { mode: "wait", children: n.session && !((a = n.session) != null && a.isOpened) ? /* @__PURE__ */ d(P, { children: [
|
|
1630
1630
|
/* @__PURE__ */ r(co, {}),
|
|
1631
1631
|
/* @__PURE__ */ r(it, {})
|
|
1632
|
-
] }, "session-closed") : /* @__PURE__ */
|
|
1632
|
+
] }, "session-closed") : /* @__PURE__ */ d(P, { children: [
|
|
1633
1633
|
s.lastAIResMightSolveUserIssue && (t == null ? void 0 : t.enabled) !== !1 && /* @__PURE__ */ r(ao, {}),
|
|
1634
|
-
i && e && o !== "below-initial-messages" && /* @__PURE__ */ r("div", { className: "flex items-center flex-row justify-end gap-2 flex-wrap px-2", children: e == null ? void 0 : e.map((l,
|
|
1634
|
+
i && e && o !== "below-initial-messages" && /* @__PURE__ */ r("div", { className: "flex items-center flex-row justify-end gap-2 flex-wrap px-2", children: e == null ? void 0 : e.map((l, c) => /* @__PURE__ */ r(
|
|
1635
1635
|
Se,
|
|
1636
1636
|
{
|
|
1637
1637
|
suggestion: l
|
|
1638
1638
|
},
|
|
1639
|
-
`${l}-${
|
|
1639
|
+
`${l}-${c}`
|
|
1640
1640
|
)) }),
|
|
1641
1641
|
/* @__PURE__ */ r(lo, {}),
|
|
1642
1642
|
/* @__PURE__ */ r(it, {})
|
|
@@ -1648,7 +1648,7 @@ function ho({
|
|
|
1648
1648
|
isAloneInGroup: t,
|
|
1649
1649
|
...n
|
|
1650
1650
|
}) {
|
|
1651
|
-
const { componentStore: s } =
|
|
1651
|
+
const { componentStore: s } = M();
|
|
1652
1652
|
if (n.type !== "AGENT" && n.type !== "AI") return null;
|
|
1653
1653
|
if (n.data.action) {
|
|
1654
1654
|
const a = s.getComponent(n.data.action.name);
|
|
@@ -1684,7 +1684,7 @@ function ho({
|
|
|
1684
1684
|
}
|
|
1685
1685
|
);
|
|
1686
1686
|
}
|
|
1687
|
-
function
|
|
1687
|
+
function Ht({
|
|
1688
1688
|
messages: e,
|
|
1689
1689
|
className: o,
|
|
1690
1690
|
containerClassName: t
|
|
@@ -1702,8 +1702,8 @@ function Ot({
|
|
|
1702
1702
|
minute: "2-digit",
|
|
1703
1703
|
hour12: !0
|
|
1704
1704
|
});
|
|
1705
|
-
} catch (
|
|
1706
|
-
return console.error(
|
|
1705
|
+
} catch (c) {
|
|
1706
|
+
return console.error(c), null;
|
|
1707
1707
|
}
|
|
1708
1708
|
})();
|
|
1709
1709
|
return i ? /* @__PURE__ */ r("div", { className: t, children: /* @__PURE__ */ r("span", { className: p("text-xs text-muted-foreground", o), children: i }) }) : null;
|
|
@@ -1713,35 +1713,35 @@ function le({
|
|
|
1713
1713
|
agent: o,
|
|
1714
1714
|
suggestedReplies: t
|
|
1715
1715
|
}) {
|
|
1716
|
-
return /* @__PURE__ */
|
|
1716
|
+
return /* @__PURE__ */ d(
|
|
1717
1717
|
"div",
|
|
1718
1718
|
{
|
|
1719
1719
|
...g("chat/agent_msg_group/root"),
|
|
1720
1720
|
className: p("flex items-end gap-2"),
|
|
1721
1721
|
children: [
|
|
1722
1722
|
/* @__PURE__ */ r(ee, { content: o == null ? void 0 : o.name, side: "right", align: "end", children: /* @__PURE__ */ r(
|
|
1723
|
-
|
|
1723
|
+
ue,
|
|
1724
1724
|
{
|
|
1725
1725
|
...g("chat/agent_msg_group/root/avatar"),
|
|
1726
1726
|
agent: o,
|
|
1727
1727
|
className: "hidden"
|
|
1728
1728
|
}
|
|
1729
1729
|
) }),
|
|
1730
|
-
/* @__PURE__ */
|
|
1731
|
-
/* @__PURE__ */
|
|
1730
|
+
/* @__PURE__ */ d("div", { className: p("flex-1 flex flex-col gap-1"), children: [
|
|
1731
|
+
/* @__PURE__ */ d(
|
|
1732
1732
|
"div",
|
|
1733
1733
|
{
|
|
1734
1734
|
...g("chat/agent_msg_group/avatar_and_msgs/root"),
|
|
1735
1735
|
className: p("flex items-end gap-2"),
|
|
1736
1736
|
children: [
|
|
1737
1737
|
/* @__PURE__ */ r(ee, { content: o == null ? void 0 : o.name, side: "right", align: "end", children: /* @__PURE__ */ r(
|
|
1738
|
-
|
|
1738
|
+
ue,
|
|
1739
1739
|
{
|
|
1740
1740
|
...g("chat/agent_msg_group/avatar_and_msgs/avatar"),
|
|
1741
1741
|
agent: o
|
|
1742
1742
|
}
|
|
1743
1743
|
) }),
|
|
1744
|
-
/* @__PURE__ */
|
|
1744
|
+
/* @__PURE__ */ d(
|
|
1745
1745
|
"div",
|
|
1746
1746
|
{
|
|
1747
1747
|
...g("chat/agent_msg_group/avatar_and_msgs/msgs"),
|
|
@@ -1757,7 +1757,7 @@ function le({
|
|
|
1757
1757
|
},
|
|
1758
1758
|
n.id
|
|
1759
1759
|
)),
|
|
1760
|
-
/* @__PURE__ */ r(
|
|
1760
|
+
/* @__PURE__ */ r(Ht, { messages: e })
|
|
1761
1761
|
]
|
|
1762
1762
|
}
|
|
1763
1763
|
)
|
|
@@ -1797,13 +1797,13 @@ function go({
|
|
|
1797
1797
|
isAloneInGroup: n
|
|
1798
1798
|
}) {
|
|
1799
1799
|
var s;
|
|
1800
|
-
return /* @__PURE__ */
|
|
1800
|
+
return /* @__PURE__ */ d(
|
|
1801
1801
|
"div",
|
|
1802
1802
|
{
|
|
1803
1803
|
...g("chat/user_msg/root"),
|
|
1804
1804
|
className: "w-5/6 flex flex-col items-end gap-1",
|
|
1805
1805
|
children: [
|
|
1806
|
-
e.attachments && e.attachments.length > 0 && /* @__PURE__ */ r("div", { className: "w-full flex gap-1 flex-wrap justify-end", children: (s = e.attachments) == null ? void 0 : s.map((i) => /* @__PURE__ */ r(
|
|
1806
|
+
e.attachments && e.attachments.length > 0 && /* @__PURE__ */ r("div", { className: "w-full flex gap-1 flex-wrap justify-end", children: (s = e.attachments) == null ? void 0 : s.map((i) => /* @__PURE__ */ r(Mt, { attachment: i }, i.id)) }),
|
|
1807
1807
|
e.content.length > 0 && /* @__PURE__ */ r(
|
|
1808
1808
|
"div",
|
|
1809
1809
|
{
|
|
@@ -1830,10 +1830,10 @@ function go({
|
|
|
1830
1830
|
}
|
|
1831
1831
|
);
|
|
1832
1832
|
}
|
|
1833
|
-
function
|
|
1833
|
+
function uo({
|
|
1834
1834
|
messages: e
|
|
1835
1835
|
}) {
|
|
1836
|
-
return /* @__PURE__ */
|
|
1836
|
+
return /* @__PURE__ */ d(
|
|
1837
1837
|
"div",
|
|
1838
1838
|
{
|
|
1839
1839
|
...g("chat/user_msg_group/root"),
|
|
@@ -1849,19 +1849,19 @@ function wo({
|
|
|
1849
1849
|
},
|
|
1850
1850
|
o.id
|
|
1851
1851
|
)),
|
|
1852
|
-
/* @__PURE__ */ r(
|
|
1852
|
+
/* @__PURE__ */ r(Ht, { messages: e, containerClassName: "ms-auto" })
|
|
1853
1853
|
]
|
|
1854
1854
|
}
|
|
1855
1855
|
);
|
|
1856
1856
|
}
|
|
1857
|
-
function
|
|
1857
|
+
function wo(e) {
|
|
1858
1858
|
const o = [];
|
|
1859
1859
|
let t = null;
|
|
1860
1860
|
return e.forEach((n) => {
|
|
1861
|
-
var s, i, a, l,
|
|
1861
|
+
var s, i, a, l, c, h;
|
|
1862
1862
|
// Start a new group if the type changes
|
|
1863
1863
|
(((s = t == null ? void 0 : t[0]) == null ? void 0 : s.type) !== n.type || // Start a new group if the agent changes
|
|
1864
|
-
((i = t[0]) == null ? void 0 : i.type) === "AGENT" && n.type === "AGENT" && (((a = n.agent) == null ? void 0 : a.id) !== ((l = t[0].agent) == null ? void 0 : l.id) || ((
|
|
1864
|
+
((i = t[0]) == null ? void 0 : i.type) === "AGENT" && n.type === "AGENT" && (((a = n.agent) == null ? void 0 : a.id) !== ((l = t[0].agent) == null ? void 0 : l.id) || ((c = n.agent) == null ? void 0 : c.name) !== ((h = t[0].agent) == null ? void 0 : h.name))) && (t = [], o.push(t)), t.push(n);
|
|
1865
1865
|
}), o;
|
|
1866
1866
|
}
|
|
1867
1867
|
function fo(e) {
|
|
@@ -1879,7 +1879,7 @@ function xo(e) {
|
|
|
1879
1879
|
function bo() {
|
|
1880
1880
|
const {
|
|
1881
1881
|
messagesState: { messages: e }
|
|
1882
|
-
} =
|
|
1882
|
+
} = D(), {
|
|
1883
1883
|
advancedInitialMessages: o = [],
|
|
1884
1884
|
initialQuestionsPosition: t,
|
|
1885
1885
|
initialQuestions: n,
|
|
@@ -1905,7 +1905,7 @@ function bo() {
|
|
|
1905
1905
|
function yo() {
|
|
1906
1906
|
const {
|
|
1907
1907
|
messagesState: { messages: e }
|
|
1908
|
-
} =
|
|
1908
|
+
} = D(), { chatBannerItems: o } = b();
|
|
1909
1909
|
return !(o != null && o.length) || e.length > 0 && o.every((t) => !t.persistent) ? null : /* @__PURE__ */ r("div", { className: "w-full text-center text-xs", children: o.map(
|
|
1910
1910
|
({ message: t, persistent: n }, s) => e.length > 0 && !n ? null : /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(be, { children: t }) }, `${t}-${s}`)
|
|
1911
1911
|
) });
|
|
@@ -1913,7 +1913,7 @@ function yo() {
|
|
|
1913
1913
|
function ko() {
|
|
1914
1914
|
const {
|
|
1915
1915
|
messagesState: { messages: e }
|
|
1916
|
-
} =
|
|
1916
|
+
} = D(), o = b(), {
|
|
1917
1917
|
advancedInitialMessages: t = [],
|
|
1918
1918
|
initialQuestions: n,
|
|
1919
1919
|
initialQuestionsPosition: s
|
|
@@ -1946,21 +1946,21 @@ function Co() {
|
|
|
1946
1946
|
function zo() {
|
|
1947
1947
|
const {
|
|
1948
1948
|
messagesState: { messages: e }
|
|
1949
|
-
} =
|
|
1950
|
-
() =>
|
|
1949
|
+
} = D(), { isAwaitingBotReply: o } = ut(), { componentStore: t } = M(), { bot: n, humanAgent: s } = b(), i = ht(
|
|
1950
|
+
() => wo(e),
|
|
1951
1951
|
[e]
|
|
1952
1952
|
), a = t.getComponent(
|
|
1953
1953
|
"loading"
|
|
1954
1954
|
), l = de(null);
|
|
1955
|
-
function
|
|
1955
|
+
function c() {
|
|
1956
1956
|
setTimeout(() => {
|
|
1957
1957
|
const h = l.current;
|
|
1958
1958
|
h && (h.scrollTop = h.scrollHeight);
|
|
1959
1959
|
}, 0);
|
|
1960
1960
|
}
|
|
1961
1961
|
return oe(() => {
|
|
1962
|
-
|
|
1963
|
-
}, [e]), /* @__PURE__ */
|
|
1962
|
+
c();
|
|
1963
|
+
}, [e]), /* @__PURE__ */ d(
|
|
1964
1964
|
"div",
|
|
1965
1965
|
{
|
|
1966
1966
|
...g("chat/msgs/root"),
|
|
@@ -1971,11 +1971,11 @@ function zo() {
|
|
|
1971
1971
|
/* @__PURE__ */ r(bo, {}),
|
|
1972
1972
|
/* @__PURE__ */ r(ko, {}),
|
|
1973
1973
|
i.map((h, y) => {
|
|
1974
|
-
var z,
|
|
1975
|
-
const x = (z = h == null ? void 0 : h[0]) == null ? void 0 : z.type, m = (
|
|
1974
|
+
var z, u, k, I;
|
|
1975
|
+
const x = (z = h == null ? void 0 : h[0]) == null ? void 0 : z.type, m = (u = h[0]) == null ? void 0 : u.id;
|
|
1976
1976
|
if (!x || !m) return null;
|
|
1977
1977
|
if (fo(h))
|
|
1978
|
-
return /* @__PURE__ */ r(
|
|
1978
|
+
return /* @__PURE__ */ r(uo, { messages: h }, m);
|
|
1979
1979
|
if (vo(h)) {
|
|
1980
1980
|
const f = y === i.length - 1;
|
|
1981
1981
|
return o && f ? null : ((k = h[0]) == null || k.agent, /* @__PURE__ */ r(
|
|
@@ -2019,9 +2019,9 @@ function zo() {
|
|
|
2019
2019
|
function No() {
|
|
2020
2020
|
const {
|
|
2021
2021
|
messagesState: { isInitialFetchLoading: e }
|
|
2022
|
-
} =
|
|
2022
|
+
} = D(), {
|
|
2023
2023
|
sessionState: { session: o }
|
|
2024
|
-
} = $(), { isCanvasOpen: t } = ro(), { theme: n } =
|
|
2024
|
+
} = $(), { isCanvasOpen: t } = ro(), { theme: n } = X();
|
|
2025
2025
|
ze({
|
|
2026
2026
|
width: t ? n.screens.chat.withCanvas.width : n.screens.chat.width,
|
|
2027
2027
|
height: t ? n.screens.chat.withCanvas.height : n.screens.chat.height
|
|
@@ -2042,22 +2042,22 @@ function No() {
|
|
|
2042
2042
|
maxHeight: "100vh"
|
|
2043
2043
|
// Relative to the iframe
|
|
2044
2044
|
},
|
|
2045
|
-
children: /* @__PURE__ */
|
|
2045
|
+
children: /* @__PURE__ */ d("div", { className: "size-full justify-between flex flex-col", children: [
|
|
2046
2046
|
/* @__PURE__ */ r(At, {}),
|
|
2047
2047
|
/* @__PURE__ */ r(_, { mode: "wait", children: e ? /* @__PURE__ */ r(
|
|
2048
|
-
|
|
2048
|
+
w,
|
|
2049
2049
|
{
|
|
2050
2050
|
className: "flex flex-col items-center justify-center w-full flex-1",
|
|
2051
2051
|
children: /* @__PURE__ */ r(Ft, {})
|
|
2052
2052
|
},
|
|
2053
2053
|
"loading"
|
|
2054
|
-
) : /* @__PURE__ */
|
|
2055
|
-
|
|
2054
|
+
) : /* @__PURE__ */ d(
|
|
2055
|
+
w,
|
|
2056
2056
|
{
|
|
2057
2057
|
className: "flex items-start h-full flex-1 overflow-auto",
|
|
2058
2058
|
snapExit: !0,
|
|
2059
2059
|
children: [
|
|
2060
|
-
/* @__PURE__ */
|
|
2060
|
+
/* @__PURE__ */ d(
|
|
2061
2061
|
"div",
|
|
2062
2062
|
{
|
|
2063
2063
|
...g("chat/main/root"),
|
|
@@ -2130,7 +2130,7 @@ function _o({ className: e }) {
|
|
|
2130
2130
|
}
|
|
2131
2131
|
);
|
|
2132
2132
|
}
|
|
2133
|
-
function
|
|
2133
|
+
function Wt({ className: e }) {
|
|
2134
2134
|
const { token: o } = b();
|
|
2135
2135
|
return /* @__PURE__ */ r(
|
|
2136
2136
|
"div",
|
|
@@ -2139,7 +2139,7 @@ function Ht({ className: e }) {
|
|
|
2139
2139
|
"flex items-center justify-center gap-2 p-2 pt-0",
|
|
2140
2140
|
e
|
|
2141
2141
|
),
|
|
2142
|
-
children: /* @__PURE__ */ r(
|
|
2142
|
+
children: /* @__PURE__ */ r(U, { children: /* @__PURE__ */ d(
|
|
2143
2143
|
"a",
|
|
2144
2144
|
{
|
|
2145
2145
|
href: `https://open.cx/?ref=${o}`,
|
|
@@ -2153,7 +2153,7 @@ function Ht({ className: e }) {
|
|
|
2153
2153
|
children: [
|
|
2154
2154
|
/* @__PURE__ */ r("span", { children: "Powered by" }),
|
|
2155
2155
|
/* @__PURE__ */ r("span", { children: " " }),
|
|
2156
|
-
/* @__PURE__ */
|
|
2156
|
+
/* @__PURE__ */ d("span", { className: "flex items-center gap-[1px]", children: [
|
|
2157
2157
|
/* @__PURE__ */ r("span", { children: /* @__PURE__ */ r(_o, { className: "size-3 inline-block" }) }),
|
|
2158
2158
|
/* @__PURE__ */ r("span", { className: "font-semibold", children: "open" })
|
|
2159
2159
|
] })
|
|
@@ -2170,8 +2170,8 @@ function ct({
|
|
|
2170
2170
|
session: e,
|
|
2171
2171
|
className: o
|
|
2172
2172
|
}) {
|
|
2173
|
-
const { bot: t, humanAgent: n } = b(), { toChatScreen: s } =
|
|
2174
|
-
return /* @__PURE__ */
|
|
2173
|
+
const { bot: t, humanAgent: n } = b(), { toChatScreen: s } = E(), i = e.assignee.kind === "human" ? (n == null ? void 0 : n.name) || e.assignee.name || "Support Agent" : (t == null ? void 0 : t.name) || "AI Support Agent", a = e.assignee.kind === "human" ? (n == null ? void 0 : n.avatarUrl) || e.assignee.avatarUrl || "" : (t == null ? void 0 : t.avatarUrl) || (t == null ? void 0 : t.avatar) || "";
|
|
2174
|
+
return /* @__PURE__ */ d(
|
|
2175
2175
|
C,
|
|
2176
2176
|
{
|
|
2177
2177
|
variant: "ghost",
|
|
@@ -2182,22 +2182,22 @@ function ct({
|
|
|
2182
2182
|
),
|
|
2183
2183
|
onClick: () => s(e.id),
|
|
2184
2184
|
children: [
|
|
2185
|
-
/* @__PURE__ */
|
|
2186
|
-
/* @__PURE__ */ r(_, { mode: "wait", children: /* @__PURE__ */ r(
|
|
2185
|
+
/* @__PURE__ */ d("div", { className: "flex-1 flex gap-2 items-center", children: [
|
|
2186
|
+
/* @__PURE__ */ r(_, { mode: "wait", children: /* @__PURE__ */ r(w, { snapExit: !0, children: /* @__PURE__ */ d(ye, { className: "size-10", children: [
|
|
2187
2187
|
/* @__PURE__ */ r(ke, { src: a, alt: "Agent Icon" }),
|
|
2188
2188
|
/* @__PURE__ */ r(Ce, { children: /* @__PURE__ */ r(zr, { className: "size-4" }) })
|
|
2189
2189
|
] }) }) }),
|
|
2190
|
-
/* @__PURE__ */
|
|
2191
|
-
/* @__PURE__ */ r(_, { mode: "wait", children: /* @__PURE__ */ r(
|
|
2192
|
-
/* @__PURE__ */ r(_, { mode: "wait", children: e.lastMessage ? /* @__PURE__ */ r(
|
|
2193
|
-
|
|
2190
|
+
/* @__PURE__ */ d("div", { className: "flex-1", children: [
|
|
2191
|
+
/* @__PURE__ */ r(_, { mode: "wait", children: /* @__PURE__ */ r(w, { snapExit: !0, children: i }, i) }),
|
|
2192
|
+
/* @__PURE__ */ r(_, { mode: "wait", children: e.lastMessage ? /* @__PURE__ */ r(w, { snapExit: !0, children: /* @__PURE__ */ r(
|
|
2193
|
+
Dt,
|
|
2194
2194
|
{
|
|
2195
|
-
remarkPlugins: [
|
|
2196
|
-
rehypePlugins: [
|
|
2195
|
+
remarkPlugins: [xt],
|
|
2196
|
+
rehypePlugins: [bt],
|
|
2197
2197
|
className: "line-clamp-1 overflow-hidden text-ellipsis text-xs text-muted-foreground",
|
|
2198
2198
|
children: e.lastMessage
|
|
2199
2199
|
}
|
|
2200
|
-
) }, e.lastMessage || "content") : /* @__PURE__ */ r(
|
|
2200
|
+
) }, e.lastMessage || "content") : /* @__PURE__ */ r(w, { className: "w-1/2", snapExit: !0, children: /* @__PURE__ */ r(So, { className: "h-4 w-full" }) }, "skeleton") })
|
|
2201
2201
|
] })
|
|
2202
2202
|
] }),
|
|
2203
2203
|
/* @__PURE__ */ r(Nr, { className: "size-4 text-muted-foreground shrink-0 rtl:-scale-100" })
|
|
@@ -2206,27 +2206,27 @@ function ct({
|
|
|
2206
2206
|
);
|
|
2207
2207
|
}
|
|
2208
2208
|
function To() {
|
|
2209
|
-
const { t: e } =
|
|
2209
|
+
const { t: e } = V(), { toChatScreen: o } = E(), {
|
|
2210
2210
|
sessionsState: { data: t, isInitialFetchLoading: n },
|
|
2211
2211
|
openSessions: s,
|
|
2212
2212
|
closedSessions: i,
|
|
2213
2213
|
canCreateNewSession: a
|
|
2214
2214
|
} = $();
|
|
2215
2215
|
return /* @__PURE__ */ r("div", { className: "flex-1 flex flex-col overflow-scroll py-2 px-2", children: /* @__PURE__ */ r(_, { mode: "wait", children: n ? /* @__PURE__ */ r(
|
|
2216
|
-
|
|
2216
|
+
w,
|
|
2217
2217
|
{
|
|
2218
2218
|
className: "flex-1 flex items-center justify-center",
|
|
2219
2219
|
children: /* @__PURE__ */ r(Ft, {})
|
|
2220
2220
|
},
|
|
2221
2221
|
"loading"
|
|
2222
2222
|
) : /* @__PURE__ */ r(
|
|
2223
|
-
|
|
2223
|
+
w,
|
|
2224
2224
|
{
|
|
2225
2225
|
className: "flex-1 flex flex-col gap-2 relative",
|
|
2226
|
-
children: t.length ? /* @__PURE__ */
|
|
2227
|
-
/* @__PURE__ */
|
|
2226
|
+
children: t.length ? /* @__PURE__ */ d(re, { children: [
|
|
2227
|
+
/* @__PURE__ */ d(_, { children: [
|
|
2228
2228
|
s.length > 0 && /* @__PURE__ */ r(
|
|
2229
|
-
|
|
2229
|
+
w,
|
|
2230
2230
|
{
|
|
2231
2231
|
fadeIn: "up",
|
|
2232
2232
|
delay: 0.2,
|
|
@@ -2236,8 +2236,8 @@ function To() {
|
|
|
2236
2236
|
},
|
|
2237
2237
|
"open-sessions"
|
|
2238
2238
|
),
|
|
2239
|
-
i.length > 0 && /* @__PURE__ */
|
|
2240
|
-
|
|
2239
|
+
i.length > 0 && /* @__PURE__ */ d(
|
|
2240
|
+
w,
|
|
2241
2241
|
{
|
|
2242
2242
|
className: "space-y-2",
|
|
2243
2243
|
delay: 0.2,
|
|
@@ -2268,7 +2268,7 @@ function To() {
|
|
|
2268
2268
|
},
|
|
2269
2269
|
e("new_conversation")
|
|
2270
2270
|
) })
|
|
2271
|
-
] }) : /* @__PURE__ */
|
|
2271
|
+
] }) : /* @__PURE__ */ d("div", { className: "flex-1 flex flex-col gap-2 items-center", children: [
|
|
2272
2272
|
/* @__PURE__ */ r("div", { className: "flex-1 flex items-center justify-center", children: /* @__PURE__ */ r("p", { className: "text-muted-foreground", children: e("no_conversations_yet") }) }),
|
|
2273
2273
|
/* @__PURE__ */ ot(
|
|
2274
2274
|
C,
|
|
@@ -2287,7 +2287,7 @@ function To() {
|
|
|
2287
2287
|
) }) });
|
|
2288
2288
|
}
|
|
2289
2289
|
function Mo() {
|
|
2290
|
-
const { theme: e } =
|
|
2290
|
+
const { theme: e } = X();
|
|
2291
2291
|
return ze({
|
|
2292
2292
|
width: e.screens.sessions.width,
|
|
2293
2293
|
height: e.screens.sessions.height
|
|
@@ -2306,20 +2306,21 @@ function Mo() {
|
|
|
2306
2306
|
maxHeight: "100vh"
|
|
2307
2307
|
// Relative to the iframe
|
|
2308
2308
|
},
|
|
2309
|
-
children: /* @__PURE__ */
|
|
2309
|
+
children: /* @__PURE__ */ d("div", { className: "size-full flex flex-col", children: [
|
|
2310
2310
|
/* @__PURE__ */ r(At, {}),
|
|
2311
2311
|
/* @__PURE__ */ r(To, {}),
|
|
2312
|
-
/* @__PURE__ */ r(
|
|
2312
|
+
/* @__PURE__ */ r(Wt, {})
|
|
2313
2313
|
] })
|
|
2314
2314
|
}
|
|
2315
2315
|
);
|
|
2316
2316
|
}
|
|
2317
|
-
const ie =
|
|
2317
|
+
const ie = K.forwardRef(
|
|
2318
2318
|
({ className: e, type: o, ...t }, n) => {
|
|
2319
|
-
const { isSmallScreen: s } =
|
|
2320
|
-
return /* @__PURE__ */ r(
|
|
2319
|
+
const { isSmallScreen: s } = A();
|
|
2320
|
+
return /* @__PURE__ */ r(
|
|
2321
2321
|
"input",
|
|
2322
2322
|
{
|
|
2323
|
+
ref: n,
|
|
2323
2324
|
type: o,
|
|
2324
2325
|
className: p(
|
|
2325
2326
|
// 16px on mobiles prevents auto-zoom on the input when focused
|
|
@@ -2331,12 +2332,12 @@ const ie = G.forwardRef(
|
|
|
2331
2332
|
),
|
|
2332
2333
|
...t
|
|
2333
2334
|
}
|
|
2334
|
-
)
|
|
2335
|
+
);
|
|
2335
2336
|
}
|
|
2336
2337
|
);
|
|
2337
2338
|
ie.displayName = "Input";
|
|
2338
2339
|
function Do() {
|
|
2339
|
-
const { contentIframeRef: e } =
|
|
2340
|
+
const { contentIframeRef: e } = M(), { inline: o } = b(), t = de(null);
|
|
2340
2341
|
return oe(() => {
|
|
2341
2342
|
const n = e == null ? void 0 : e.current;
|
|
2342
2343
|
if (n && t.current) {
|
|
@@ -2357,25 +2358,25 @@ function Do() {
|
|
|
2357
2358
|
}
|
|
2358
2359
|
}, [e, o]), { observedElementRef: t };
|
|
2359
2360
|
}
|
|
2360
|
-
const
|
|
2361
|
+
const Ro = me.object({
|
|
2361
2362
|
name: me.string().min(2),
|
|
2362
2363
|
email: me.string().email()
|
|
2363
2364
|
});
|
|
2364
|
-
function
|
|
2365
|
-
var f,
|
|
2365
|
+
function jo() {
|
|
2366
|
+
var f, R, F, H, W, O, v, N;
|
|
2366
2367
|
const {
|
|
2367
2368
|
widgetCtx: { org: e }
|
|
2368
|
-
} =
|
|
2369
|
+
} = M(), { setIsOpen: o } = q(), { createUnverifiedContact: t } = wt(), { isSmallScreen: n } = A(), s = b(), { theme: i } = X(), { t: a } = V(), { observedElementRef: l } = Do();
|
|
2369
2370
|
ze({
|
|
2370
2371
|
height: void 0,
|
|
2371
2372
|
width: i.screens.welcome.width
|
|
2372
2373
|
});
|
|
2373
|
-
const [
|
|
2374
|
+
const [c, h] = T(((f = s.prefillUserData) == null ? void 0 : f.name) || ""), [y, x] = T(((R = s.prefillUserData) == null ? void 0 : R.email) || ""), m = (s.extraDataCollectionFields || []).filter(
|
|
2374
2375
|
(S) => S !== "name" && S !== "email" && !!S
|
|
2375
|
-
), [z,
|
|
2376
|
+
), [z, u] = T({}), [k, I] = Rr(
|
|
2376
2377
|
async (S) => {
|
|
2377
2378
|
S.preventDefault();
|
|
2378
|
-
const B =
|
|
2379
|
+
const B = Ro.safeParse({ name: c, email: y });
|
|
2379
2380
|
B.success && await t(
|
|
2380
2381
|
{
|
|
2381
2382
|
email: B.data.email,
|
|
@@ -2385,7 +2386,7 @@ function Eo() {
|
|
|
2385
2386
|
Object.values(z).filter(Boolean).length ? z : void 0
|
|
2386
2387
|
);
|
|
2387
2388
|
},
|
|
2388
|
-
[
|
|
2389
|
+
[c, y, z]
|
|
2389
2390
|
);
|
|
2390
2391
|
return /* @__PURE__ */ r(
|
|
2391
2392
|
"div",
|
|
@@ -2402,7 +2403,7 @@ function Eo() {
|
|
|
2402
2403
|
// Relative to the iframe
|
|
2403
2404
|
overflowY: "auto"
|
|
2404
2405
|
},
|
|
2405
|
-
children: /* @__PURE__ */
|
|
2406
|
+
children: /* @__PURE__ */ d(
|
|
2406
2407
|
"div",
|
|
2407
2408
|
{
|
|
2408
2409
|
ref: l,
|
|
@@ -2412,7 +2413,7 @@ function Eo() {
|
|
|
2412
2413
|
"bg-[radial-gradient(ellipse_at_top_left,hsl(var(--opencx-primary)),transparent),radial-gradient(ellipse_at_top_right,hsl(var(--opencx-primary)),transparent)]"
|
|
2413
2414
|
),
|
|
2414
2415
|
children: [
|
|
2415
|
-
/* @__PURE__ */
|
|
2416
|
+
/* @__PURE__ */ d(
|
|
2416
2417
|
"div",
|
|
2417
2418
|
{
|
|
2418
2419
|
className: p(
|
|
@@ -2420,8 +2421,8 @@ function Eo() {
|
|
|
2420
2421
|
"text-primary-foreground"
|
|
2421
2422
|
),
|
|
2422
2423
|
children: [
|
|
2423
|
-
n && /* @__PURE__ */ r(
|
|
2424
|
-
/* @__PURE__ */ r("div", { className: "flex items-center justify-between w-full mb-2", children: (
|
|
2424
|
+
n && /* @__PURE__ */ r(w, { className: "absolute top-6 end-6", children: /* @__PURE__ */ r(C, { size: "selfless", onClick: () => o(!1), children: /* @__PURE__ */ r(xe, { className: "size-4" }) }) }),
|
|
2425
|
+
/* @__PURE__ */ r("div", { className: "flex items-center justify-between w-full mb-2", children: (F = s.assets) != null && F.organizationLogo ? /* @__PURE__ */ r(
|
|
2425
2426
|
"img",
|
|
2426
2427
|
{
|
|
2427
2428
|
src: (H = s.assets) == null ? void 0 : H.organizationLogo,
|
|
@@ -2429,14 +2430,14 @@ function Eo() {
|
|
|
2429
2430
|
className: "h-8 w-auto object-contain"
|
|
2430
2431
|
}
|
|
2431
2432
|
) : /* @__PURE__ */ r("h2", { className: "font-bold text-sm", children: e.name }) }),
|
|
2432
|
-
/* @__PURE__ */
|
|
2433
|
-
/* @__PURE__ */ r("h1", { className: "text-[1.75rem] font-semibold tracking-tight leading-none", children: ((
|
|
2433
|
+
/* @__PURE__ */ d("div", { className: "space-y-2", children: [
|
|
2434
|
+
/* @__PURE__ */ r("h1", { className: "text-[1.75rem] font-semibold tracking-tight leading-none", children: ((O = (W = s.textContent) == null ? void 0 : W.welcomeScreen) == null ? void 0 : O.title) || a("welcome_screen_title") }),
|
|
2434
2435
|
/* @__PURE__ */ r("p", { className: "text-sm", children: ((N = (v = s.textContent) == null ? void 0 : v.welcomeScreen) == null ? void 0 : N.description) || a("welcome_screen_description") })
|
|
2435
2436
|
] })
|
|
2436
2437
|
]
|
|
2437
2438
|
}
|
|
2438
2439
|
),
|
|
2439
|
-
/* @__PURE__ */
|
|
2440
|
+
/* @__PURE__ */ d(
|
|
2440
2441
|
"div",
|
|
2441
2442
|
{
|
|
2442
2443
|
className: p(
|
|
@@ -2446,11 +2447,11 @@ function Eo() {
|
|
|
2446
2447
|
"rounded-3xl"
|
|
2447
2448
|
),
|
|
2448
2449
|
children: [
|
|
2449
|
-
/* @__PURE__ */
|
|
2450
|
+
/* @__PURE__ */ d("form", { onSubmit: I, className: "space-y-2", children: [
|
|
2450
2451
|
/* @__PURE__ */ r(
|
|
2451
2452
|
ie,
|
|
2452
2453
|
{
|
|
2453
|
-
value:
|
|
2454
|
+
value: c,
|
|
2454
2455
|
onChange: (S) => h(S.target.value),
|
|
2455
2456
|
required: !0,
|
|
2456
2457
|
placeholder: a("your_name_placeholder"),
|
|
@@ -2472,7 +2473,7 @@ function Eo() {
|
|
|
2472
2473
|
ie,
|
|
2473
2474
|
{
|
|
2474
2475
|
value: z[S],
|
|
2475
|
-
onChange: (B) =>
|
|
2476
|
+
onChange: (B) => u((se) => ({
|
|
2476
2477
|
...se,
|
|
2477
2478
|
[S]: B.target.value
|
|
2478
2479
|
})),
|
|
@@ -2480,7 +2481,7 @@ function Eo() {
|
|
|
2480
2481
|
},
|
|
2481
2482
|
S
|
|
2482
2483
|
)),
|
|
2483
|
-
/* @__PURE__ */
|
|
2484
|
+
/* @__PURE__ */ d(
|
|
2484
2485
|
C,
|
|
2485
2486
|
{
|
|
2486
2487
|
disabled: k.loading,
|
|
@@ -2493,7 +2494,7 @@ function Eo() {
|
|
|
2493
2494
|
}
|
|
2494
2495
|
)
|
|
2495
2496
|
] }),
|
|
2496
|
-
/* @__PURE__ */ r(
|
|
2497
|
+
/* @__PURE__ */ r(Wt, {})
|
|
2497
2498
|
]
|
|
2498
2499
|
}
|
|
2499
2500
|
)
|
|
@@ -2503,26 +2504,26 @@ function Eo() {
|
|
|
2503
2504
|
}
|
|
2504
2505
|
);
|
|
2505
2506
|
}
|
|
2506
|
-
function
|
|
2507
|
+
function Lt() {
|
|
2507
2508
|
const {
|
|
2508
2509
|
routerState: { screen: e }
|
|
2509
|
-
} =
|
|
2510
|
+
} = E();
|
|
2510
2511
|
return /* @__PURE__ */ r("div", { className: "relative bg-background size-full", children: /* @__PURE__ */ r(_, { mode: "wait", children: (() => {
|
|
2511
2512
|
switch (e) {
|
|
2512
2513
|
case "welcome":
|
|
2513
2514
|
return /* @__PURE__ */ r(
|
|
2514
|
-
|
|
2515
|
+
w,
|
|
2515
2516
|
{
|
|
2516
2517
|
fadeIn: "right",
|
|
2517
2518
|
className: "size-full",
|
|
2518
2519
|
snapExit: !0,
|
|
2519
|
-
children: /* @__PURE__ */ r(
|
|
2520
|
+
children: /* @__PURE__ */ r(jo, {})
|
|
2520
2521
|
},
|
|
2521
2522
|
e
|
|
2522
2523
|
);
|
|
2523
2524
|
case "sessions":
|
|
2524
2525
|
return /* @__PURE__ */ r(
|
|
2525
|
-
|
|
2526
|
+
w,
|
|
2526
2527
|
{
|
|
2527
2528
|
fadeIn: "right",
|
|
2528
2529
|
className: "size-full",
|
|
@@ -2533,7 +2534,7 @@ function Wt() {
|
|
|
2533
2534
|
);
|
|
2534
2535
|
case "chat":
|
|
2535
2536
|
return /* @__PURE__ */ r(
|
|
2536
|
-
|
|
2537
|
+
w,
|
|
2537
2538
|
{
|
|
2538
2539
|
fadeIn: "right",
|
|
2539
2540
|
className: "size-full",
|
|
@@ -2543,15 +2544,15 @@ function Wt() {
|
|
|
2543
2544
|
e
|
|
2544
2545
|
);
|
|
2545
2546
|
default:
|
|
2546
|
-
return
|
|
2547
|
+
return j(e, Lt.name), null;
|
|
2547
2548
|
}
|
|
2548
2549
|
})() }) });
|
|
2549
2550
|
}
|
|
2550
|
-
const
|
|
2551
|
+
const Eo = "4.0.45", Oo = `<!DOCTYPE html>
|
|
2551
2552
|
<html>
|
|
2552
2553
|
<head>
|
|
2553
2554
|
<style>
|
|
2554
|
-
${
|
|
2555
|
+
${Rt}
|
|
2555
2556
|
html, body {
|
|
2556
2557
|
height: 100%;
|
|
2557
2558
|
width: 100%;
|
|
@@ -2565,8 +2566,8 @@ html, body {
|
|
|
2565
2566
|
<body>
|
|
2566
2567
|
</body>
|
|
2567
2568
|
</html>`;
|
|
2568
|
-
function
|
|
2569
|
-
const { isOpen: e } =
|
|
2569
|
+
function $t() {
|
|
2570
|
+
const { isOpen: e } = q(), { contentIframeRef: o } = M(), { cssOverrides: t, inline: n } = b(), { theme: s, cssVars: i, computed: a } = X(), { dir: l } = V();
|
|
2570
2571
|
return /* @__PURE__ */ r(
|
|
2571
2572
|
J.div,
|
|
2572
2573
|
{
|
|
@@ -2586,11 +2587,11 @@ function Lt() {
|
|
|
2586
2587
|
height: n ? "100%" : void 0
|
|
2587
2588
|
}
|
|
2588
2589
|
},
|
|
2589
|
-
children: /* @__PURE__ */
|
|
2590
|
-
|
|
2590
|
+
children: /* @__PURE__ */ d(
|
|
2591
|
+
yt,
|
|
2591
2592
|
{
|
|
2592
2593
|
ref: o,
|
|
2593
|
-
initialContent:
|
|
2594
|
+
initialContent: Oo,
|
|
2594
2595
|
allowFullScreen: !0,
|
|
2595
2596
|
title: "OpenCX Live Chat",
|
|
2596
2597
|
style: {
|
|
@@ -2627,7 +2628,7 @@ function Lt() {
|
|
|
2627
2628
|
...i,
|
|
2628
2629
|
zIndex: s.widgetContentContainer.zIndex
|
|
2629
2630
|
},
|
|
2630
|
-
"data-version":
|
|
2631
|
+
"data-version": Eo,
|
|
2631
2632
|
className: p(
|
|
2632
2633
|
"antialiased font-sans size-full overflow-hidden relative text-secondary-foreground isolate"
|
|
2633
2634
|
),
|
|
@@ -2637,7 +2638,7 @@ function Lt() {
|
|
|
2637
2638
|
{
|
|
2638
2639
|
delayDuration: 200,
|
|
2639
2640
|
disableHoverableContent: !0,
|
|
2640
|
-
children: /* @__PURE__ */ r(Wr, { children: /* @__PURE__ */ r(
|
|
2641
|
+
children: /* @__PURE__ */ r(Wr, { children: /* @__PURE__ */ r(Lt, {}) })
|
|
2641
2642
|
}
|
|
2642
2643
|
)
|
|
2643
2644
|
}
|
|
@@ -2648,8 +2649,8 @@ function Lt() {
|
|
|
2648
2649
|
}
|
|
2649
2650
|
);
|
|
2650
2651
|
}
|
|
2651
|
-
function
|
|
2652
|
-
const { theme: e } =
|
|
2652
|
+
function Po() {
|
|
2653
|
+
const { theme: e } = X();
|
|
2653
2654
|
return /* @__PURE__ */ r(
|
|
2654
2655
|
ce.Content,
|
|
2655
2656
|
{
|
|
@@ -2666,15 +2667,15 @@ function Ao() {
|
|
|
2666
2667
|
sideOffset: e.widgetContentContainer.offset.side,
|
|
2667
2668
|
alignOffset: e.widgetContentContainer.offset.align,
|
|
2668
2669
|
avoidCollisions: !1,
|
|
2669
|
-
children: /* @__PURE__ */ r(
|
|
2670
|
+
children: /* @__PURE__ */ r($t, {})
|
|
2670
2671
|
}
|
|
2671
2672
|
);
|
|
2672
2673
|
}
|
|
2673
|
-
function
|
|
2674
|
+
function Ao({
|
|
2674
2675
|
className: e,
|
|
2675
2676
|
style: o
|
|
2676
2677
|
}) {
|
|
2677
|
-
return /* @__PURE__ */
|
|
2678
|
+
return /* @__PURE__ */ d(
|
|
2678
2679
|
"svg",
|
|
2679
2680
|
{
|
|
2680
2681
|
width: "32",
|
|
@@ -2705,11 +2706,11 @@ function Fo({
|
|
|
2705
2706
|
}
|
|
2706
2707
|
);
|
|
2707
2708
|
}
|
|
2708
|
-
const
|
|
2709
|
+
const Fo = `<!DOCTYPE html>
|
|
2709
2710
|
<html>
|
|
2710
2711
|
<head>
|
|
2711
2712
|
<style>
|
|
2712
|
-
${
|
|
2713
|
+
${Rt}
|
|
2713
2714
|
html, body {
|
|
2714
2715
|
height: 100%;
|
|
2715
2716
|
width: 100%;
|
|
@@ -2724,15 +2725,15 @@ html, body {
|
|
|
2724
2725
|
</html>`;
|
|
2725
2726
|
function Ho() {
|
|
2726
2727
|
var i, a;
|
|
2727
|
-
const { isOpen: e } =
|
|
2728
|
-
return /* @__PURE__ */
|
|
2729
|
-
|
|
2728
|
+
const { isOpen: e } = q(), { cssOverrides: o, assets: t } = b(), { theme: n, cssVars: s } = X();
|
|
2729
|
+
return /* @__PURE__ */ d(
|
|
2730
|
+
yt,
|
|
2730
2731
|
{
|
|
2731
|
-
initialContent:
|
|
2732
|
+
initialContent: Fo,
|
|
2732
2733
|
title: "OpenCX Live Chat Trigger",
|
|
2733
2734
|
style: {
|
|
2734
|
-
height: `calc(${n.widgetTrigger.size.button}px + ${
|
|
2735
|
-
width: `calc(${n.widgetTrigger.size.button}px + ${
|
|
2735
|
+
height: `calc(${n.widgetTrigger.size.button}px + ${G.x * 2}px)`,
|
|
2736
|
+
width: `calc(${n.widgetTrigger.size.button}px + ${G.y * 2}px)`,
|
|
2736
2737
|
fontSize: "16px",
|
|
2737
2738
|
position: "fixed",
|
|
2738
2739
|
zIndex: n.widgetTrigger.zIndex,
|
|
@@ -2768,7 +2769,7 @@ function Ho() {
|
|
|
2768
2769
|
height: n.widgetTrigger.size.button,
|
|
2769
2770
|
width: n.widgetTrigger.size.button
|
|
2770
2771
|
},
|
|
2771
|
-
children: /* @__PURE__ */ r(
|
|
2772
|
+
children: /* @__PURE__ */ r(U, { children: /* @__PURE__ */ r(
|
|
2772
2773
|
"div",
|
|
2773
2774
|
{
|
|
2774
2775
|
...g("trigger/btn"),
|
|
@@ -2781,7 +2782,7 @@ function Ho() {
|
|
|
2781
2782
|
"text-primary-foreground"
|
|
2782
2783
|
),
|
|
2783
2784
|
children: /* @__PURE__ */ r(_, { mode: "wait", children: e ? /* @__PURE__ */ r(
|
|
2784
|
-
|
|
2785
|
+
w,
|
|
2785
2786
|
{
|
|
2786
2787
|
snapExit: !0,
|
|
2787
2788
|
fadeIn: "up",
|
|
@@ -2811,7 +2812,7 @@ function Ho() {
|
|
|
2811
2812
|
},
|
|
2812
2813
|
"x-icon"
|
|
2813
2814
|
) : /* @__PURE__ */ r(
|
|
2814
|
-
|
|
2815
|
+
w,
|
|
2815
2816
|
{
|
|
2816
2817
|
snapExit: !0,
|
|
2817
2818
|
overrides: {
|
|
@@ -2829,7 +2830,7 @@ function Ho() {
|
|
|
2829
2830
|
}
|
|
2830
2831
|
}
|
|
2831
2832
|
) : /* @__PURE__ */ r(
|
|
2832
|
-
|
|
2833
|
+
Ao,
|
|
2833
2834
|
{
|
|
2834
2835
|
style: {
|
|
2835
2836
|
width: n.widgetTrigger.size.icon,
|
|
@@ -2865,15 +2866,45 @@ function Wo() {
|
|
|
2865
2866
|
}
|
|
2866
2867
|
);
|
|
2867
2868
|
}
|
|
2868
|
-
function Lo(
|
|
2869
|
-
|
|
2870
|
-
|
|
2869
|
+
function Lo({
|
|
2870
|
+
widgetRef: e
|
|
2871
|
+
}) {
|
|
2872
|
+
const { widgetCtx: o } = M(), { contactState: t } = wt(), { setIsOpen: n, isOpen: s } = q(), {
|
|
2873
|
+
toChatScreen: i,
|
|
2874
|
+
routerState: { screen: a }
|
|
2875
|
+
} = E(), { sendMessage: l } = D();
|
|
2876
|
+
return L.useImperativeHandle(
|
|
2877
|
+
e,
|
|
2878
|
+
() => ({
|
|
2879
|
+
newChat: async (c) => {
|
|
2880
|
+
var h;
|
|
2881
|
+
if (!((h = t.contact) != null && h.token)) {
|
|
2882
|
+
console.warn("Cannot start a new chat: contact not yet initialized.");
|
|
2883
|
+
return;
|
|
2884
|
+
}
|
|
2885
|
+
console.log({ isOpen: s }), s || n(!0), a === "chat" && o.resetChat(), i(), c != null && c.message && l({ content: c.message });
|
|
2886
|
+
}
|
|
2887
|
+
}),
|
|
2888
|
+
[
|
|
2889
|
+
o,
|
|
2890
|
+
t,
|
|
2891
|
+
n,
|
|
2892
|
+
s,
|
|
2893
|
+
a,
|
|
2894
|
+
i,
|
|
2895
|
+
l
|
|
2896
|
+
]
|
|
2897
|
+
), null;
|
|
2898
|
+
}
|
|
2899
|
+
function $o() {
|
|
2900
|
+
const { isOpen: e, setIsOpen: o } = q();
|
|
2901
|
+
return /* @__PURE__ */ d(ce.Root, { open: e, onOpenChange: o, children: [
|
|
2871
2902
|
/* @__PURE__ */ r(Wo, {}),
|
|
2872
2903
|
/* @__PURE__ */ r(Ho, {}),
|
|
2873
|
-
/* @__PURE__ */ r(
|
|
2904
|
+
/* @__PURE__ */ r(Po, {})
|
|
2874
2905
|
] });
|
|
2875
2906
|
}
|
|
2876
|
-
const
|
|
2907
|
+
const Bo = [
|
|
2877
2908
|
{
|
|
2878
2909
|
key: "loading",
|
|
2879
2910
|
component: Yr
|
|
@@ -2890,7 +2921,7 @@ const $o = [
|
|
|
2890
2921
|
key: "agent_message",
|
|
2891
2922
|
component: ge
|
|
2892
2923
|
}
|
|
2893
|
-
],
|
|
2924
|
+
], Yo = {
|
|
2894
2925
|
get: async (e) => localStorage.getItem(e),
|
|
2895
2926
|
set: async (e, o) => {
|
|
2896
2927
|
localStorage.setItem(e, o);
|
|
@@ -2898,24 +2929,23 @@ const $o = [
|
|
|
2898
2929
|
remove: async (e) => {
|
|
2899
2930
|
localStorage.removeItem(e);
|
|
2900
2931
|
}
|
|
2901
|
-
}
|
|
2902
|
-
function cn({
|
|
2903
|
-
options: e,
|
|
2904
|
-
components: o = [],
|
|
2905
|
-
loadingComponent: t
|
|
2906
|
-
}) {
|
|
2932
|
+
}, Uo = L.forwardRef(function({ options: o, components: t = [], loadingComponent: n }, s) {
|
|
2907
2933
|
return /* @__PURE__ */ r(
|
|
2908
2934
|
Xt,
|
|
2909
2935
|
{
|
|
2910
|
-
components: [
|
|
2911
|
-
options:
|
|
2912
|
-
storage:
|
|
2913
|
-
loadingComponent:
|
|
2914
|
-
children: /* @__PURE__ */
|
|
2936
|
+
components: [...Bo, ...t],
|
|
2937
|
+
options: o,
|
|
2938
|
+
storage: Yo,
|
|
2939
|
+
loadingComponent: n,
|
|
2940
|
+
children: /* @__PURE__ */ d(Vt, { children: [
|
|
2941
|
+
/* @__PURE__ */ r(Lo, { widgetRef: s }),
|
|
2942
|
+
o.inline ? /* @__PURE__ */ r($t, {}) : /* @__PURE__ */ r($o, {})
|
|
2943
|
+
] })
|
|
2915
2944
|
}
|
|
2916
2945
|
);
|
|
2917
|
-
}
|
|
2946
|
+
});
|
|
2947
|
+
Uo.displayName = "Widget";
|
|
2918
2948
|
export {
|
|
2919
|
-
|
|
2949
|
+
Uo as Widget
|
|
2920
2950
|
};
|
|
2921
2951
|
//# sourceMappingURL=index.js.map
|