@opencx/widget-react 4.0.48 → 4.0.49
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.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import { jsx as r, jsxs as d, Fragment as Q } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
2
|
+
import * as me from "@radix-ui/react-popover";
|
|
3
3
|
import * as J from "react";
|
|
4
|
-
import W, { memo as
|
|
5
|
-
import { useWidget as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import W, { memo as Kt, forwardRef as xt, useState as D, cloneElement as vt, createContext as Qt, useEffect as se, useContext as Jt, useRef as $, useCallback as q, useMemo as bt, createElement as lt } from "react";
|
|
5
|
+
import { useWidget as E, useConfig as N, useSessions as Y, useMessages as O, useWidgetRouter as F, useDocumentDir as ye, useWidgetTrigger as V, useModes as yt, useCsat as kt, useUploadFiles as er, useIsAwaitingBotReply as Ct, useContact as zt, WidgetProvider as tr, WidgetTriggerProvider as rr } from "@opencx/widget-react-headless";
|
|
6
|
+
import { X as or, ZoomOut as nr, ZoomIn as sr, RotateCcw as ar, FileText as Nt, CircleDashedIcon as ir, XIcon as ke, SquareXIcon as lr, SquareCheckBigIcon as cr, SquareCheckIcon as dr, ShrinkIcon as pr, Minimize2Icon as mr, MinimizeIcon as hr, Maximize2Icon as ur, MaximizeIcon as gr, ExpandIcon as wr, CircleXIcon as fr, CircleCheckBigIcon as xr, CircleCheckIcon as St, CheckCheckIcon as vr, CheckIcon as br, ChevronLeftIcon as yr, LoaderIcon as kr, ArrowUpIcon as _t, PaperclipIcon as ct, CircleDashed as Cr, AlertCircle as zr, Loader2 as Nr, FileAudio2Icon as Sr, FileVideo2Icon as _r, FileIcon as Ir, UserRoundIcon as Tr, ChevronRightIcon as Mr, SendHorizontal as Dr, ChevronDownIcon as Rr } from "lucide-react";
|
|
7
|
+
import { clsx as jr } from "clsx";
|
|
8
|
+
import { twMerge as Pr } from "tailwind-merge";
|
|
8
9
|
import { motion as re, AnimatePresence as T } from "framer-motion";
|
|
9
|
-
import { Slot as
|
|
10
|
-
import { cva as
|
|
11
|
-
import
|
|
12
|
-
import St from "remark-gfm";
|
|
10
|
+
import { Slot as Er } from "@radix-ui/react-slot";
|
|
11
|
+
import { cva as Or } from "class-variance-authority";
|
|
12
|
+
import It from "remark-gfm";
|
|
13
13
|
import Ar from "react-markdown";
|
|
14
|
-
import
|
|
15
|
-
import { isExhaustive as A, isSupportedLanguage as
|
|
14
|
+
import Tt from "rehype-raw";
|
|
15
|
+
import { isExhaustive as A, isSupportedLanguage as Fr, getTranslation as Hr } from "@opencx/widget-core";
|
|
16
16
|
import * as ee from "@radix-ui/react-avatar";
|
|
17
|
-
import
|
|
17
|
+
import Mt from "@uiw/react-iframe";
|
|
18
18
|
import * as ae from "@radix-ui/react-tooltip";
|
|
19
|
-
import
|
|
19
|
+
import dt from "tinycolor2";
|
|
20
20
|
import { useDropzone as Wr } from "react-dropzone";
|
|
21
21
|
import Lr from "react-use/lib/useAsyncFn";
|
|
22
22
|
import { z as ge } from "zod";
|
|
23
23
|
function g(e) {
|
|
24
24
|
return { "data-component": e };
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
return
|
|
26
|
+
function m(...e) {
|
|
27
|
+
return Pr(jr(e));
|
|
28
28
|
}
|
|
29
29
|
const K = {
|
|
30
30
|
x: 2,
|
|
31
31
|
y: 2
|
|
32
|
-
},
|
|
33
|
-
|
|
32
|
+
}, B = Kt(
|
|
33
|
+
xt(
|
|
34
34
|
({ children: e, className: o, scale: t = 1.02, off: n = !1 }, s) => {
|
|
35
35
|
const [a, i] = D(!1), [l, c] = D({ x: 0, y: 0 });
|
|
36
36
|
if (n || /translate/.test(
|
|
@@ -38,35 +38,35 @@ const K = {
|
|
|
38
38
|
)) return e;
|
|
39
39
|
const b = (f) => {
|
|
40
40
|
var y, I;
|
|
41
|
-
const { clientX:
|
|
41
|
+
const { clientX: C, clientY: M } = f, v = f.currentTarget.getBoundingClientRect(), R = C - (v.left + v.width / 2), P = M - (v.top + v.height / 2), j = Math.max(
|
|
42
42
|
-1,
|
|
43
43
|
Math.min(1, R / (v.width / 2))
|
|
44
44
|
), u = Math.max(
|
|
45
45
|
-1,
|
|
46
|
-
Math.min(1,
|
|
46
|
+
Math.min(1, P / (v.height / 2))
|
|
47
47
|
), _ = j * K.x, w = u * K.y;
|
|
48
48
|
c({ x: _, y: w }), (I = (y = e.props).onMouseMove) == null || I.call(y, f);
|
|
49
49
|
}, x = () => {
|
|
50
|
-
var f,
|
|
51
|
-
i(!0), (
|
|
52
|
-
},
|
|
53
|
-
var f,
|
|
54
|
-
i(!1), c({ x: 0, y: 0 }), (
|
|
55
|
-
},
|
|
50
|
+
var f, C;
|
|
51
|
+
i(!0), (C = (f = e.props).onMouseEnter) == null || C.call(f);
|
|
52
|
+
}, h = () => {
|
|
53
|
+
var f, C;
|
|
54
|
+
i(!1), c({ x: 0, y: 0 }), (C = (f = e.props).onMouseLeave) == null || C.call(f);
|
|
55
|
+
}, z = {
|
|
56
56
|
"--wobble-x": a ? `${l.x}px` : "0px",
|
|
57
57
|
"--wobble-y": a ? `${l.y}px` : "0px",
|
|
58
58
|
"--scale": 1 - (t - 1)
|
|
59
59
|
};
|
|
60
|
-
return
|
|
60
|
+
return vt(e, {
|
|
61
61
|
ref: s,
|
|
62
62
|
onMouseMove: b,
|
|
63
63
|
onMouseEnter: x,
|
|
64
|
-
onMouseLeave:
|
|
64
|
+
onMouseLeave: h,
|
|
65
65
|
style: {
|
|
66
|
-
...
|
|
66
|
+
...z,
|
|
67
67
|
...e.props.style
|
|
68
68
|
},
|
|
69
|
-
className:
|
|
69
|
+
className: m(
|
|
70
70
|
"translate-x-[var(--wobble-x)]",
|
|
71
71
|
"translate-y-[var(--wobble-y)]",
|
|
72
72
|
"hover:scale-[var(--scale)] active:hover:scale-[calc(var(--scale)-0.02)]",
|
|
@@ -78,12 +78,12 @@ const K = {
|
|
|
78
78
|
}
|
|
79
79
|
)
|
|
80
80
|
);
|
|
81
|
-
|
|
82
|
-
const $r = 10,
|
|
81
|
+
B.displayName = "Wobble";
|
|
82
|
+
const $r = 10, Br = (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
|
+
}), Yr = (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 }
|
|
@@ -96,11 +96,11 @@ const $r = 10, Yr = (e, o, t) => ({
|
|
|
96
96
|
animate: { opacity: 1, y: 0, ...o.animate, transition: { delay: t } },
|
|
97
97
|
exit: { opacity: 0, y: e, ...o.exit }
|
|
98
98
|
}), qr = {
|
|
99
|
-
right:
|
|
100
|
-
left:
|
|
99
|
+
right: Br,
|
|
100
|
+
left: Yr,
|
|
101
101
|
up: Ur,
|
|
102
102
|
down: Xr
|
|
103
|
-
}, k =
|
|
103
|
+
}, k = xt(
|
|
104
104
|
({
|
|
105
105
|
fadeIn: e = "down",
|
|
106
106
|
distance: o = $r,
|
|
@@ -115,8 +115,8 @@ const $r = 10, Yr = (e, o, t) => ({
|
|
|
115
115
|
}
|
|
116
116
|
);
|
|
117
117
|
k.displayName = "MotionDiv";
|
|
118
|
-
const Vr =
|
|
119
|
-
|
|
118
|
+
const Vr = Or(
|
|
119
|
+
m(
|
|
120
120
|
"inline-flex shrink-0 items-center justify-center gap-2",
|
|
121
121
|
"text-sm font-medium whitespace-nowrap",
|
|
122
122
|
"ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
@@ -155,18 +155,18 @@ const Vr = nr(
|
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
), S = J.forwardRef(
|
|
158
|
-
({ className: e, variant: o = "default", size: t, asChild: n = !1, ...s }, a) => /* @__PURE__ */ r(
|
|
159
|
-
n ?
|
|
158
|
+
({ className: e, variant: o = "default", size: t, asChild: n = !1, ...s }, a) => /* @__PURE__ */ r(B, { ref: a, children: /* @__PURE__ */ r(
|
|
159
|
+
n ? Er : "button",
|
|
160
160
|
{
|
|
161
161
|
...g("ui_lib/btn"),
|
|
162
162
|
"data-variant": o,
|
|
163
|
-
className:
|
|
163
|
+
className: m(Vr({ variant: o, size: t, className: e })),
|
|
164
164
|
...s
|
|
165
165
|
}
|
|
166
166
|
) })
|
|
167
167
|
);
|
|
168
168
|
S.displayName = "Button";
|
|
169
|
-
const
|
|
169
|
+
const Dt = Qt(null);
|
|
170
170
|
function Gr({ children: e }) {
|
|
171
171
|
const [o, t] = D(!1), [n, s] = D(null), a = (l) => {
|
|
172
172
|
s(l), t(!0);
|
|
@@ -176,7 +176,7 @@ function Gr({ children: e }) {
|
|
|
176
176
|
}, 200);
|
|
177
177
|
};
|
|
178
178
|
return /* @__PURE__ */ d(
|
|
179
|
-
|
|
179
|
+
Dt.Provider,
|
|
180
180
|
{
|
|
181
181
|
value: { open: a, close: i, isOpen: o, content: n },
|
|
182
182
|
children: [
|
|
@@ -186,8 +186,8 @@ function Gr({ children: e }) {
|
|
|
186
186
|
}
|
|
187
187
|
);
|
|
188
188
|
}
|
|
189
|
-
function
|
|
190
|
-
const e =
|
|
189
|
+
function he() {
|
|
190
|
+
const e = Jt(Dt);
|
|
191
191
|
return e || (console.error("useDialoger must be used within a DialogerProvider"), {
|
|
192
192
|
open: () => {
|
|
193
193
|
},
|
|
@@ -198,7 +198,7 @@ function me() {
|
|
|
198
198
|
});
|
|
199
199
|
}
|
|
200
200
|
function Zr() {
|
|
201
|
-
const { contentIframeRef: e } =
|
|
201
|
+
const { contentIframeRef: e } = E(), { isOpen: o, content: t, close: n } = he();
|
|
202
202
|
return se(() => {
|
|
203
203
|
var a, i;
|
|
204
204
|
const s = (l) => {
|
|
@@ -234,11 +234,11 @@ function Ce({
|
|
|
234
234
|
className: o,
|
|
235
235
|
withClose: t = !1
|
|
236
236
|
}) {
|
|
237
|
-
const { close: n } =
|
|
237
|
+
const { close: n } = he();
|
|
238
238
|
return /* @__PURE__ */ d(
|
|
239
239
|
"div",
|
|
240
240
|
{
|
|
241
|
-
className:
|
|
241
|
+
className: m(
|
|
242
242
|
"fixed left-[50%] top-[50%] z-50 flex flex-col gap-4 w-full max-w-[61.8%] translate-x-[-50%] translate-y-[-50%] border bg-background p-4 rounded-3xl",
|
|
243
243
|
o
|
|
244
244
|
),
|
|
@@ -252,7 +252,7 @@ function Ce({
|
|
|
252
252
|
className: "rounded-full absolute top-4 right-4 opacity-50 hover:opacity-100",
|
|
253
253
|
onClick: n,
|
|
254
254
|
children: [
|
|
255
|
-
/* @__PURE__ */ r(
|
|
255
|
+
/* @__PURE__ */ r(or, { className: "h-4 w-4" }),
|
|
256
256
|
/* @__PURE__ */ r("span", { className: "sr-only", children: "Close" })
|
|
257
257
|
]
|
|
258
258
|
}
|
|
@@ -261,64 +261,64 @@ function Ce({
|
|
|
261
261
|
}
|
|
262
262
|
);
|
|
263
263
|
}
|
|
264
|
-
const
|
|
264
|
+
const Rt = ({
|
|
265
265
|
className: e,
|
|
266
266
|
...o
|
|
267
267
|
}) => /* @__PURE__ */ r(
|
|
268
268
|
"div",
|
|
269
269
|
{
|
|
270
|
-
className:
|
|
270
|
+
className: m("flex flex-col gap-2 text-center pt-2", e),
|
|
271
271
|
...o
|
|
272
272
|
}
|
|
273
273
|
);
|
|
274
|
-
|
|
275
|
-
const
|
|
274
|
+
Rt.displayName = "DialogerHeader";
|
|
275
|
+
const jt = ({
|
|
276
276
|
className: e,
|
|
277
277
|
...o
|
|
278
278
|
}) => /* @__PURE__ */ r(
|
|
279
279
|
"div",
|
|
280
280
|
{
|
|
281
|
-
className:
|
|
281
|
+
className: m("flex flex-col gap-2 text-center", e),
|
|
282
282
|
...o
|
|
283
283
|
}
|
|
284
284
|
);
|
|
285
|
-
|
|
286
|
-
const
|
|
285
|
+
jt.displayName = "DialogerBody";
|
|
286
|
+
const Pt = ({
|
|
287
287
|
className: e,
|
|
288
288
|
...o
|
|
289
|
-
}) => /* @__PURE__ */ r("div", { className:
|
|
290
|
-
|
|
291
|
-
const
|
|
289
|
+
}) => /* @__PURE__ */ r("div", { className: m("flex flex-col gap-2", e), ...o });
|
|
290
|
+
Pt.displayName = "DialogerFooter";
|
|
291
|
+
const Et = W.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
292
292
|
"p",
|
|
293
293
|
{
|
|
294
294
|
ref: t,
|
|
295
|
-
className:
|
|
295
|
+
className: m(
|
|
296
296
|
"text-lg font-semibold leading-none tracking-tight",
|
|
297
297
|
e
|
|
298
298
|
),
|
|
299
299
|
...o
|
|
300
300
|
}
|
|
301
301
|
));
|
|
302
|
-
|
|
303
|
-
const
|
|
302
|
+
Et.displayName = "DialogerTitle";
|
|
303
|
+
const Ot = W.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
304
304
|
"p",
|
|
305
305
|
{
|
|
306
306
|
ref: t,
|
|
307
|
-
className:
|
|
307
|
+
className: m("text-sm text-muted-foreground", e),
|
|
308
308
|
...o
|
|
309
309
|
}
|
|
310
310
|
));
|
|
311
|
-
|
|
311
|
+
Ot.displayName = "DialogerDescription";
|
|
312
312
|
function ze({
|
|
313
313
|
children: e,
|
|
314
314
|
trigger: o
|
|
315
315
|
}) {
|
|
316
|
-
const { open: t } =
|
|
317
|
-
return
|
|
316
|
+
const { open: t } = he();
|
|
317
|
+
return vt(o, {
|
|
318
318
|
onClick: () => t(e)
|
|
319
319
|
});
|
|
320
320
|
}
|
|
321
|
-
const
|
|
321
|
+
const pt = 1, mt = 5, le = 0.5, Kr = 2.5;
|
|
322
322
|
function Qr(e, o, t, n) {
|
|
323
323
|
if (!t || !n || o <= 1) return { x: 0, y: 0 };
|
|
324
324
|
const s = t.getBoundingClientRect(), a = n.offsetWidth, i = n.offsetHeight, l = Math.max(0, (a * o - s.width) / (2 * o)), c = Math.max(
|
|
@@ -330,17 +330,17 @@ function Qr(e, o, t, n) {
|
|
|
330
330
|
y: Math.min(c, Math.max(-c, e.y))
|
|
331
331
|
};
|
|
332
332
|
}
|
|
333
|
-
function
|
|
333
|
+
function At({
|
|
334
334
|
src: e,
|
|
335
335
|
alt: o
|
|
336
336
|
}) {
|
|
337
|
-
const [t, n] = D(1), [s, a] = D({ x: 0, y: 0 }), [i, l] = D(!1), c = $({ x: 0, y: 0 }), p = $({ x: 0, y: 0 }), b = $(null), x = $(null),
|
|
337
|
+
const [t, n] = D(1), [s, a] = D({ x: 0, y: 0 }), [i, l] = D(!1), c = $({ x: 0, y: 0 }), p = $({ x: 0, y: 0 }), b = $(null), x = $(null), h = $(!1), z = (u) => Math.min(mt, Math.max(pt, u)), f = q(() => {
|
|
338
338
|
n(1), a({ x: 0, y: 0 });
|
|
339
|
-
}, []),
|
|
340
|
-
n((u) =>
|
|
339
|
+
}, []), C = q(() => {
|
|
340
|
+
n((u) => z(u + le));
|
|
341
341
|
}, []), M = q(() => {
|
|
342
342
|
n((u) => {
|
|
343
|
-
const _ =
|
|
343
|
+
const _ = z(u - le);
|
|
344
344
|
return _ <= 1 && a({ x: 0, y: 0 }), _;
|
|
345
345
|
});
|
|
346
346
|
}, []);
|
|
@@ -348,20 +348,20 @@ function Pt({
|
|
|
348
348
|
u.preventDefault(), u.stopPropagation();
|
|
349
349
|
const _ = u.deltaY > 0 ? -le : le;
|
|
350
350
|
n((w) => {
|
|
351
|
-
const y =
|
|
351
|
+
const y = z(w + _);
|
|
352
352
|
return y <= 1 && a({ x: 0, y: 0 }), y;
|
|
353
353
|
});
|
|
354
354
|
}, []);
|
|
355
355
|
const v = q(
|
|
356
356
|
(u) => {
|
|
357
|
-
u.preventDefault(),
|
|
357
|
+
u.preventDefault(), h.current = !1, l(!0), c.current = { x: u.clientX, y: u.clientY }, p.current = { ...s }, u.target.setPointerCapture(u.pointerId);
|
|
358
358
|
},
|
|
359
359
|
[s]
|
|
360
360
|
), R = q(
|
|
361
361
|
(u) => {
|
|
362
362
|
if (!i) return;
|
|
363
363
|
const _ = u.clientX - c.current.x, w = u.clientY - c.current.y;
|
|
364
|
-
if ((Math.abs(_) > 3 || Math.abs(w) > 3) && (
|
|
364
|
+
if ((Math.abs(_) > 3 || Math.abs(w) > 3) && (h.current = !0), t <= 1) return;
|
|
365
365
|
const y = {
|
|
366
366
|
x: p.current.x + _ / t,
|
|
367
367
|
y: p.current.y + w / t
|
|
@@ -371,8 +371,8 @@ function Pt({
|
|
|
371
371
|
);
|
|
372
372
|
},
|
|
373
373
|
[i, t]
|
|
374
|
-
),
|
|
375
|
-
const u =
|
|
374
|
+
), P = q(() => {
|
|
375
|
+
const u = h.current;
|
|
376
376
|
l(!1), !u && n((_) => _ > 1 ? (a({ x: 0, y: 0 }), 1) : Kr);
|
|
377
377
|
}, []), j = t > 1;
|
|
378
378
|
return /* @__PURE__ */ d(
|
|
@@ -385,14 +385,14 @@ function Pt({
|
|
|
385
385
|
"div",
|
|
386
386
|
{
|
|
387
387
|
ref: b,
|
|
388
|
-
className:
|
|
388
|
+
className: m(
|
|
389
389
|
"overflow-hidden max-h-full max-w-full rounded-2xl flex items-center justify-center",
|
|
390
390
|
j && "size-full"
|
|
391
391
|
),
|
|
392
392
|
onPointerDown: v,
|
|
393
393
|
onPointerMove: R,
|
|
394
|
-
onPointerUp:
|
|
395
|
-
onPointerCancel:
|
|
394
|
+
onPointerUp: P,
|
|
395
|
+
onPointerCancel: P,
|
|
396
396
|
style: {
|
|
397
397
|
cursor: i ? "grabbing" : j ? "grab" : "zoom-in",
|
|
398
398
|
touchAction: "none"
|
|
@@ -416,15 +416,15 @@ function Pt({
|
|
|
416
416
|
}
|
|
417
417
|
),
|
|
418
418
|
/* @__PURE__ */ d("div", { className: "absolute bottom-3 left-1/2 -translate-x-1/2 flex items-center gap-1 bg-black/60 backdrop-blur-sm rounded-full px-1.5 py-1 transition opacity-50 hover:opacity-100", children: [
|
|
419
|
-
/* @__PURE__ */ r(we, { onClick: M, label: "Zoom out", disabled: t <=
|
|
419
|
+
/* @__PURE__ */ r(we, { onClick: M, label: "Zoom out", disabled: t <= pt, children: /* @__PURE__ */ r(nr, { className: "size-3.5" }) }),
|
|
420
420
|
/* @__PURE__ */ d("span", { className: "text-white text-xs font-medium min-w-[3ch] text-center tabular-nums", children: [
|
|
421
421
|
Math.round(t * 100),
|
|
422
422
|
"%"
|
|
423
423
|
] }),
|
|
424
|
-
/* @__PURE__ */ r(we, { onClick:
|
|
424
|
+
/* @__PURE__ */ r(we, { onClick: C, label: "Zoom in", disabled: t >= mt, children: /* @__PURE__ */ r(sr, { className: "size-3.5" }) }),
|
|
425
425
|
j && /* @__PURE__ */ d(Q, { children: [
|
|
426
426
|
/* @__PURE__ */ r("div", { className: "w-px h-4 bg-white/30 mx-0.5" }),
|
|
427
|
-
/* @__PURE__ */ r(we, { onClick: f, label: "Reset zoom", children: /* @__PURE__ */ r(
|
|
427
|
+
/* @__PURE__ */ r(we, { onClick: f, label: "Reset zoom", children: /* @__PURE__ */ r(ar, { className: "size-3.5" }) })
|
|
428
428
|
] })
|
|
429
429
|
] })
|
|
430
430
|
]
|
|
@@ -448,35 +448,77 @@ function we({
|
|
|
448
448
|
}
|
|
449
449
|
);
|
|
450
450
|
}
|
|
451
|
-
function
|
|
452
|
-
const { name: o, size: t, type: n, url: s } = e, a = n.startsWith("image/"), i = n.startsWith("video/");
|
|
453
|
-
return
|
|
451
|
+
function Ft({ attachment: e }) {
|
|
452
|
+
const { name: o, size: t, type: n, url: s } = e, a = n.startsWith("image/"), i = n.startsWith("video/"), l = n.startsWith("audio/"), c = n === "application/pdf";
|
|
453
|
+
return l ? /* @__PURE__ */ r(B, { children: /* @__PURE__ */ r("div", { className: "w-full shrink-0 overflow-hidden", children: /* @__PURE__ */ d("audio", { controls: !0, className: "w-full", children: [
|
|
454
454
|
/* @__PURE__ */ r("source", { src: s, type: n }),
|
|
455
455
|
"Your browser does not support the audio tag."
|
|
456
|
-
] }) }) }) : i ? /* @__PURE__ */ r(
|
|
456
|
+
] }) }) }) : i ? /* @__PURE__ */ r(B, { children: /* @__PURE__ */ r("div", { className: "w-full border shrink-0 rounded-2xl overflow-hidden", children: /* @__PURE__ */ d("video", { controls: !0, children: [
|
|
457
457
|
/* @__PURE__ */ r("source", { src: s, type: n }),
|
|
458
458
|
"Your browser does not support the video tag."
|
|
459
459
|
] }) }) }) : a ? /* @__PURE__ */ r(
|
|
460
460
|
ze,
|
|
461
461
|
{
|
|
462
|
-
trigger: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(
|
|
462
|
+
trigger: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(B, { children: /* @__PURE__ */ r("div", { className: "size-fit border shrink-0 rounded-2xl overflow-hidden", children: /* @__PURE__ */ r("img", { src: s, className: "object-cover size-16", alt: o }) }) }) }),
|
|
463
463
|
children: /* @__PURE__ */ r(
|
|
464
464
|
Ce,
|
|
465
465
|
{
|
|
466
466
|
className: "size-full max-w-full rounded-3xl flex items-center justify-center bg-transparent border-none gap-0",
|
|
467
467
|
withClose: !0,
|
|
468
|
-
children: /* @__PURE__ */ r(
|
|
468
|
+
children: /* @__PURE__ */ r(At, { src: s, alt: o })
|
|
469
469
|
}
|
|
470
470
|
)
|
|
471
471
|
}
|
|
472
|
-
) :
|
|
472
|
+
) : c ? /* @__PURE__ */ r(B, { children: /* @__PURE__ */ r(
|
|
473
|
+
"a",
|
|
474
|
+
{
|
|
475
|
+
href: s,
|
|
476
|
+
target: "_blank",
|
|
477
|
+
rel: "noopener noreferrer",
|
|
478
|
+
className: m(
|
|
479
|
+
"block size-fit max-w-[min(100%,16rem)] shrink-0 rounded-2xl border",
|
|
480
|
+
"bg-background/80 transition-colors hover:bg-accent/60",
|
|
481
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
|
|
482
|
+
),
|
|
483
|
+
children: /* @__PURE__ */ d("div", { className: "flex items-center gap-3 p-3 min-w-0", children: [
|
|
484
|
+
/* @__PURE__ */ r(
|
|
485
|
+
"div",
|
|
486
|
+
{
|
|
487
|
+
className: m(
|
|
488
|
+
"flex size-10 shrink-0 items-center justify-center rounded-xl",
|
|
489
|
+
"bg-secondary text-muted-foreground"
|
|
490
|
+
),
|
|
491
|
+
"aria-hidden": !0,
|
|
492
|
+
children: /* @__PURE__ */ r(Nt, { className: "size-5", strokeWidth: 1.75 })
|
|
493
|
+
}
|
|
494
|
+
),
|
|
495
|
+
/* @__PURE__ */ d("div", { className: "min-w-0 flex-1 flex flex-col gap-0.5 text-left", children: [
|
|
496
|
+
/* @__PURE__ */ r(
|
|
497
|
+
"span",
|
|
498
|
+
{
|
|
499
|
+
className: m(
|
|
500
|
+
"text-xs font-medium text-foreground line-clamp-1",
|
|
501
|
+
"break-words [word-break:break-word]"
|
|
502
|
+
// `[word-break:break-word]` is deprecated but works in the browser, while `break-words` which is `[overflow-wrap: break-word]` does not work
|
|
503
|
+
),
|
|
504
|
+
children: o
|
|
505
|
+
}
|
|
506
|
+
),
|
|
507
|
+
/* @__PURE__ */ d("span", { className: "text-xs text-muted-foreground tabular-nums", children: [
|
|
508
|
+
(t / 1024).toFixed(2),
|
|
509
|
+
" KB · PDF"
|
|
510
|
+
] })
|
|
511
|
+
] })
|
|
512
|
+
] })
|
|
513
|
+
}
|
|
514
|
+
) }) : /* @__PURE__ */ r(B, { 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: [
|
|
473
515
|
/* @__PURE__ */ r(
|
|
474
516
|
"a",
|
|
475
517
|
{
|
|
476
518
|
href: s,
|
|
477
519
|
target: "_blank",
|
|
478
520
|
rel: "noopener noreferrer",
|
|
479
|
-
className:
|
|
521
|
+
className: m(
|
|
480
522
|
"text-xs text-blue-500 line-clamp-2 underline hover:text-blue-600",
|
|
481
523
|
"break-words [word-break:break-word]"
|
|
482
524
|
// `[word-break:break-word]` is deprecated but works in the browser, while `break-words` which is `[overflow-wrap: break-word]` does not work
|
|
@@ -490,7 +532,7 @@ function Ot({ attachment: e }) {
|
|
|
490
532
|
] })
|
|
491
533
|
] }) }) });
|
|
492
534
|
}
|
|
493
|
-
const
|
|
535
|
+
const Ht = W.memo(
|
|
494
536
|
Ar,
|
|
495
537
|
(e, o) => e.children === o.children && e.className === o.className
|
|
496
538
|
);
|
|
@@ -501,12 +543,12 @@ function Ne({
|
|
|
501
543
|
}) {
|
|
502
544
|
const { anchorTarget: n } = N();
|
|
503
545
|
return /* @__PURE__ */ r(
|
|
504
|
-
|
|
546
|
+
Ht,
|
|
505
547
|
{
|
|
506
548
|
"data-type": o,
|
|
507
549
|
"data-id": t,
|
|
508
|
-
remarkPlugins: [
|
|
509
|
-
rehypePlugins: [
|
|
550
|
+
remarkPlugins: [It],
|
|
551
|
+
rehypePlugins: [Tt],
|
|
510
552
|
components: {
|
|
511
553
|
a: ({ children: s, ...a }) => /* @__PURE__ */ r("a", { target: a.target || n || "_top", ...a, children: s }),
|
|
512
554
|
img: ({ src: s, alt: a, ...i }) => s ? /* @__PURE__ */ r(
|
|
@@ -526,7 +568,7 @@ function Ne({
|
|
|
526
568
|
{
|
|
527
569
|
className: "size-full max-w-full rounded-3xl flex items-center justify-center bg-transparent border-none gap-0",
|
|
528
570
|
withClose: !0,
|
|
529
|
-
children: /* @__PURE__ */ r(
|
|
571
|
+
children: /* @__PURE__ */ r(At, { src: s, alt: a })
|
|
530
572
|
}
|
|
531
573
|
)
|
|
532
574
|
}
|
|
@@ -539,13 +581,13 @@ function Ne({
|
|
|
539
581
|
function te() {
|
|
540
582
|
const {
|
|
541
583
|
widgetCtx: { org: e }
|
|
542
|
-
} =
|
|
584
|
+
} = E(), {
|
|
543
585
|
sessionState: { session: o }
|
|
544
586
|
} = Y(), t = N(), {
|
|
545
587
|
messagesState: { messages: n }
|
|
546
588
|
} = O(), {
|
|
547
589
|
routerState: { screen: s }
|
|
548
|
-
} =
|
|
590
|
+
} = F();
|
|
549
591
|
return {
|
|
550
592
|
react: W,
|
|
551
593
|
org: e,
|
|
@@ -580,12 +622,12 @@ function fe(e) {
|
|
|
580
622
|
"div",
|
|
581
623
|
{
|
|
582
624
|
...g((c == null ? void 0 : c.messageContainer) ?? "chat/agent_msg/root"),
|
|
583
|
-
className:
|
|
625
|
+
className: m(
|
|
584
626
|
"w-5/6 flex flex-col items-start gap-1",
|
|
585
627
|
p == null ? void 0 : p.messageContainer
|
|
586
628
|
),
|
|
587
629
|
children: [
|
|
588
|
-
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((
|
|
630
|
+
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((h) => /* @__PURE__ */ r(Ft, { attachment: h }, h.id)) }),
|
|
589
631
|
b.length > 0 && /* @__PURE__ */ d("div", { className: "flex flex-row gap-2", children: [
|
|
590
632
|
/* @__PURE__ */ r(
|
|
591
633
|
"div",
|
|
@@ -595,7 +637,7 @@ function fe(e) {
|
|
|
595
637
|
"data-last": i,
|
|
596
638
|
"data-alone": l,
|
|
597
639
|
"data-variant": x,
|
|
598
|
-
className:
|
|
640
|
+
className: m(
|
|
599
641
|
"transition-all",
|
|
600
642
|
"w-fit py-3 px-4 rounded-3xl bg-secondary text-secondary-foreground",
|
|
601
643
|
"leading-snug text-sm prose prose-sm prose-a:decoration-primary prose-a:underline",
|
|
@@ -626,7 +668,7 @@ const Se = J.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
|
626
668
|
ee.Root,
|
|
627
669
|
{
|
|
628
670
|
ref: t,
|
|
629
|
-
className:
|
|
671
|
+
className: m(
|
|
630
672
|
"relative flex size-6 aspect-square shrink-0 overflow-hidden rounded-full bg-secondary",
|
|
631
673
|
// 'border',
|
|
632
674
|
e
|
|
@@ -639,7 +681,7 @@ const _e = J.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
|
639
681
|
ee.Image,
|
|
640
682
|
{
|
|
641
683
|
ref: t,
|
|
642
|
-
className:
|
|
684
|
+
className: m("aspect-square h-full w-full", e),
|
|
643
685
|
...o
|
|
644
686
|
}
|
|
645
687
|
));
|
|
@@ -648,7 +690,7 @@ const Ie = J.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
|
648
690
|
ee.Fallback,
|
|
649
691
|
{
|
|
650
692
|
ref: t,
|
|
651
|
-
className:
|
|
693
|
+
className: m(
|
|
652
694
|
"flex size-full text-xs items-center justify-center rounded-lg",
|
|
653
695
|
e
|
|
654
696
|
),
|
|
@@ -678,7 +720,7 @@ function to({ agent: e }) {
|
|
|
678
720
|
"div",
|
|
679
721
|
{
|
|
680
722
|
...g("chat/bot_loading/bouncing_dots_container"),
|
|
681
|
-
className:
|
|
723
|
+
className: m(
|
|
682
724
|
"flex items-center [&_span]:bg-secondary-foreground [&_span]:size-1 gap-1 p-2 rounded-xl bg-secondary"
|
|
683
725
|
// 'border',
|
|
684
726
|
),
|
|
@@ -693,19 +735,19 @@ function to({ agent: e }) {
|
|
|
693
735
|
}
|
|
694
736
|
) });
|
|
695
737
|
}
|
|
696
|
-
const Ht = '*,: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%!important}.container{width:100%}@media (min-width: 640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\\!container{max-width:1536px!important}.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}.bottom-3{bottom:.75rem}.end-6{inset-inline-end:1.5rem}.left-1\\/2{left:50%}.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-0\\.5{margin-left:.125rem;margin-right:.125rem}.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-3\\.5{width:.875rem;height:.875rem}.size-4{width:1rem;height:1rem}.size-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.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%}.w-px{width:1px}.min-w-80{min-width:20rem}.min-w-\\[3ch\\]{min-width:3ch}.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-1\\/2,.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))}.transform{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-white\\/30{background-color:#ffffff4d}.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-1\\.5{padding:.375rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-8{padding:2rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.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{padding-top:.25rem;padding-bottom:.25rem}.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}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.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))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-white\\/80{color:#fffc}.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{--tw-enter-scale: 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\\:bg-white\\/15:hover{background-color:#ffffff26}.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\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.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\\:text-white\\/30:disabled{color:#ffffff4d}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:hover\\:bg-transparent:hover:disabled{background-color:transparent}.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))}', ro = ae.Provider, oo = ae.Root, no = ae.Trigger, Ft = J.forwardRef(({ className: e, sideOffset: o = 4, ...t }, n) => /* @__PURE__ */ r(
|
|
738
|
+
const Wt = '*,: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%!important}.container{width:100%}@media (min-width: 640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\\!container{max-width:1536px!important}.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}.bottom-3{bottom:.75rem}.end-6{inset-inline-end:1.5rem}.left-1\\/2{left:50%}.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-0\\.5{margin-left:.125rem;margin-right:.125rem}.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-3\\.5{width:.875rem;height:.875rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.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%}.w-px{width:1px}.min-w-0{min-width:0px}.min-w-80{min-width:20rem}.min-w-\\[3ch\\]{min-width:3ch}.min-w-\\[8rem\\]{min-width:8rem}.max-w-96{max-width:24rem}.max-w-\\[61\\.8\\%\\]{max-width:61.8%}.max-w-\\[min\\(100\\%\\,16rem\\)\\]{max-width:min(100%,16rem)}.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-1\\/2,.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))}.transform{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-0\\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.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-background\\/80{background-color:hsl(var(--opencx-background) / .8)}.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-white\\/30{background-color:#ffffff4d}.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-1\\.5{padding:.375rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-8{padding:2rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.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{padding-top:.25rem;padding-bottom:.25rem}.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-left{text-align:left}.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}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.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))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-white\\/80{color:#fffc}.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{--tw-enter-scale: 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-accent\\/60:hover{background-color:hsl(var(--opencx-accent) / .6)}.hover\\:bg-secondary:hover{background-color:hsl(var(--opencx-secondary))}.hover\\:bg-white\\/15:hover{background-color:#ffffff26}.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\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.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\\:text-white\\/30:disabled{color:#ffffff4d}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:hover\\:bg-transparent:hover:disabled{background-color:transparent}.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))}', ro = ae.Provider, oo = ae.Root, no = ae.Trigger, Lt = J.forwardRef(({ className: e, sideOffset: o = 4, ...t }, n) => /* @__PURE__ */ r(
|
|
697
739
|
ae.Content,
|
|
698
740
|
{
|
|
699
741
|
ref: n,
|
|
700
742
|
sideOffset: o,
|
|
701
|
-
className:
|
|
743
|
+
className: m(
|
|
702
744
|
"z-50 overflow-hidden max-w-xs rounded-xl bg-primary border text-primary-foreground p-2 text-center align-middle text-xs animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
703
745
|
e
|
|
704
746
|
),
|
|
705
747
|
...t
|
|
706
748
|
}
|
|
707
749
|
));
|
|
708
|
-
|
|
750
|
+
Lt.displayName = ae.Content.displayName;
|
|
709
751
|
function oe({
|
|
710
752
|
children: e,
|
|
711
753
|
content: o,
|
|
@@ -716,7 +758,7 @@ function oe({
|
|
|
716
758
|
return !o || s ? e : /* @__PURE__ */ d(oo, { children: [
|
|
717
759
|
/* @__PURE__ */ r(no, { asChild: !0, children: e }),
|
|
718
760
|
/* @__PURE__ */ r(
|
|
719
|
-
|
|
761
|
+
Lt,
|
|
720
762
|
{
|
|
721
763
|
side: t,
|
|
722
764
|
align: n,
|
|
@@ -744,21 +786,21 @@ const ce = {
|
|
|
744
786
|
transitionDuration: "1000ms"
|
|
745
787
|
};
|
|
746
788
|
function G() {
|
|
747
|
-
var x,
|
|
748
|
-
const { dir: e } = ye(), { isSmallScreen: o } = L(), { theme: t, inline: n } = N(), s = (
|
|
789
|
+
var x, h, z, f, C, M, v, R, P, j, u, _, w, y, I, U, ie, Re, je, Pe, Ee, Oe, Ae, Fe, He, We, Le, $e, Be, Ye, Ue, Xe, qe, Ve, Ge, Ze, Ke, Qe, Je, et, tt, rt, ot, nt, st, at, it;
|
|
790
|
+
const { dir: e } = ye(), { isSmallScreen: o } = L(), { theme: t, inline: n } = N(), s = (X) => n ? "100%" : X, a = (X, ue) => o ? `100dv${X}` : ue, i = (X, ue) => s(a(X, ue)), l = {
|
|
749
791
|
zIndex: ((x = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : x.zIndex) ?? 1e7,
|
|
750
792
|
offset: {
|
|
751
|
-
bottom: ((
|
|
752
|
-
right: ((
|
|
793
|
+
bottom: ((z = (h = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : h.offset) == null ? void 0 : z.bottom) ?? 20,
|
|
794
|
+
right: ((C = (f = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : f.offset) == null ? void 0 : C.right) ?? (e === "ltr" ? 20 : "initial"),
|
|
753
795
|
left: ((v = (M = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : M.offset) == null ? void 0 : v.left) ?? (e === "rtl" ? 20 : "initial")
|
|
754
796
|
},
|
|
755
797
|
size: {
|
|
756
|
-
button: ((
|
|
798
|
+
button: ((P = (R = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : R.size) == null ? void 0 : P.button) ?? 48,
|
|
757
799
|
icon: ((u = (j = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : j.size) == null ? void 0 : u.icon) ?? 24
|
|
758
800
|
}
|
|
759
801
|
}, c = (() => {
|
|
760
|
-
const
|
|
761
|
-
return typeof
|
|
802
|
+
const X = e === "ltr" ? l.offset.right : l.offset.left;
|
|
803
|
+
return typeof X != "number" ? 0 : X;
|
|
762
804
|
})(), p = {
|
|
763
805
|
palette: (t == null ? void 0 : t.palette) ?? "neutral",
|
|
764
806
|
primaryColor: (t == null ? void 0 : t.primaryColor) ?? "hsl(0 0% 9%)",
|
|
@@ -769,18 +811,18 @@ function G() {
|
|
|
769
811
|
outline: ((y = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : y.outline) ?? "none",
|
|
770
812
|
// was: '1px solid'
|
|
771
813
|
outlineColor: ((I = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : I.outlineColor) ?? "hsl(0 0% 50% / .5)",
|
|
772
|
-
boxShadow: ((
|
|
814
|
+
boxShadow: ((U = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : U.boxShadow) ?? "0 0px 100px 0px rgb(0 0 0 / 0.25)",
|
|
773
815
|
transitionProperty: ((ie = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : ie.transitionProperty) ?? "all",
|
|
774
816
|
transitionTimingFunction: ((Re = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Re.transitionTimingFunction) ?? ce.transitionTimingFunction,
|
|
775
817
|
transitionDuration: ((je = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : je.transitionDuration) ?? ce.transitionDuration,
|
|
776
818
|
offset: {
|
|
777
|
-
side: o ? 0 : l.offset.bottom + l.size.button + K.y * 2 + (((
|
|
819
|
+
side: o ? 0 : l.offset.bottom + l.size.button + K.y * 2 + (((Ee = (Pe = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Pe.offset) == null ? void 0 : Ee.side) ?? 10),
|
|
778
820
|
align: o ? 0 : c + (((Ae = (Oe = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Oe.offset) == null ? void 0 : Ae.align) ?? 0)
|
|
779
821
|
}
|
|
780
822
|
},
|
|
781
823
|
screens: {
|
|
782
824
|
welcome: {
|
|
783
|
-
width: i("w", ((
|
|
825
|
+
width: i("w", ((He = (Fe = t == null ? void 0 : t.screens) == null ? void 0 : Fe.welcome) == null ? void 0 : He.width) ?? "400px"),
|
|
784
826
|
// By setting minHeight to 1px, a nice animation will play from 1px to the dynamic height of the content of the screen
|
|
785
827
|
minHeight: i(
|
|
786
828
|
"h",
|
|
@@ -788,8 +830,8 @@ function G() {
|
|
|
788
830
|
)
|
|
789
831
|
},
|
|
790
832
|
sessions: {
|
|
791
|
-
width: i("w", ((
|
|
792
|
-
height: i("h", ((Ue = (
|
|
833
|
+
width: i("w", ((Be = ($e = t == null ? void 0 : t.screens) == null ? void 0 : $e.sessions) == null ? void 0 : Be.width) ?? "450px"),
|
|
834
|
+
height: i("h", ((Ue = (Ye = t == null ? void 0 : t.screens) == null ? void 0 : Ye.sessions) == null ? void 0 : Ue.height) ?? "600px")
|
|
793
835
|
},
|
|
794
836
|
chat: {
|
|
795
837
|
width: i("w", ((qe = (Xe = t == null ? void 0 : t.screens) == null ? void 0 : Xe.chat) == null ? void 0 : qe.width) ?? "525px"),
|
|
@@ -859,7 +901,7 @@ function so({
|
|
|
859
901
|
palette: e,
|
|
860
902
|
primary: o
|
|
861
903
|
}) {
|
|
862
|
-
const t =
|
|
904
|
+
const t = $t(e), n = dt(o).toHsl(), s = dt(o).isLight() ? t[950] : t[50];
|
|
863
905
|
return {
|
|
864
906
|
"--opencx-primary": `${n.h} ${n.s * 100}% ${n.l * 100}%`,
|
|
865
907
|
"--opencx-primary-foreground": s,
|
|
@@ -878,7 +920,7 @@ function so({
|
|
|
878
920
|
"--opencx-ring": "var(--opencx-foreground)"
|
|
879
921
|
};
|
|
880
922
|
}
|
|
881
|
-
function
|
|
923
|
+
function $t(e) {
|
|
882
924
|
const o = {
|
|
883
925
|
50: "0 0% 98%",
|
|
884
926
|
100: "0 0% 96.1%",
|
|
@@ -938,11 +980,11 @@ function Wt(e) {
|
|
|
938
980
|
case "slate":
|
|
939
981
|
return s;
|
|
940
982
|
default:
|
|
941
|
-
return A(e,
|
|
983
|
+
return A(e, $t.name), o;
|
|
942
984
|
}
|
|
943
985
|
}
|
|
944
|
-
function
|
|
945
|
-
const { contentIframeRef: e } =
|
|
986
|
+
function Bt() {
|
|
987
|
+
const { contentIframeRef: e } = E(), { inline: o } = N();
|
|
946
988
|
return {
|
|
947
989
|
setWidth: (t) => {
|
|
948
990
|
var n;
|
|
@@ -964,12 +1006,12 @@ function Te({
|
|
|
964
1006
|
width: e,
|
|
965
1007
|
height: o
|
|
966
1008
|
}) {
|
|
967
|
-
const { isSmallScreen: t } = L(), { setWidth: n, setHeight: s } =
|
|
1009
|
+
const { isSmallScreen: t } = L(), { setWidth: n, setHeight: s } = Bt();
|
|
968
1010
|
se(() => {
|
|
969
1011
|
e && n(e), o && s(o);
|
|
970
1012
|
}, [t, o, e, n, s]);
|
|
971
1013
|
}
|
|
972
|
-
const
|
|
1014
|
+
const ut = ir;
|
|
973
1015
|
function ne({
|
|
974
1016
|
name: e,
|
|
975
1017
|
className: o
|
|
@@ -977,42 +1019,42 @@ function ne({
|
|
|
977
1019
|
const t = (() => {
|
|
978
1020
|
switch (e) {
|
|
979
1021
|
case "Check":
|
|
980
|
-
return
|
|
1022
|
+
return br;
|
|
981
1023
|
case "CheckCheck":
|
|
982
|
-
return
|
|
1024
|
+
return vr;
|
|
983
1025
|
case "CircleCheck":
|
|
984
|
-
return
|
|
1026
|
+
return St;
|
|
985
1027
|
case "CircleCheckBig":
|
|
986
|
-
return
|
|
1028
|
+
return xr;
|
|
987
1029
|
case "CircleX":
|
|
988
|
-
return
|
|
1030
|
+
return fr;
|
|
989
1031
|
case "Expand":
|
|
990
|
-
return
|
|
1032
|
+
return wr;
|
|
991
1033
|
case "Maximize":
|
|
992
|
-
return
|
|
1034
|
+
return gr;
|
|
993
1035
|
case "Maximize2":
|
|
994
|
-
return
|
|
1036
|
+
return ur;
|
|
995
1037
|
case "Minimize":
|
|
996
|
-
return
|
|
1038
|
+
return hr;
|
|
997
1039
|
case "Minimize2":
|
|
998
|
-
return ur;
|
|
999
|
-
case "Shrink":
|
|
1000
1040
|
return mr;
|
|
1041
|
+
case "Shrink":
|
|
1042
|
+
return pr;
|
|
1001
1043
|
case "SquareCheck":
|
|
1002
|
-
return
|
|
1044
|
+
return dr;
|
|
1003
1045
|
case "SquareCheckBig":
|
|
1004
|
-
return
|
|
1046
|
+
return cr;
|
|
1005
1047
|
case "SquareX":
|
|
1006
|
-
return
|
|
1048
|
+
return lr;
|
|
1007
1049
|
case "X":
|
|
1008
1050
|
return ke;
|
|
1009
1051
|
case void 0:
|
|
1010
|
-
return
|
|
1052
|
+
return ut;
|
|
1011
1053
|
default:
|
|
1012
|
-
return A(e, ne.name),
|
|
1054
|
+
return A(e, ne.name), ut;
|
|
1013
1055
|
}
|
|
1014
1056
|
})();
|
|
1015
|
-
return /* @__PURE__ */ r(t, { className:
|
|
1057
|
+
return /* @__PURE__ */ r(t, { className: m("size-4", o) });
|
|
1016
1058
|
}
|
|
1017
1059
|
function ao() {
|
|
1018
1060
|
var t;
|
|
@@ -1027,9 +1069,9 @@ function io({ fallback: e }) {
|
|
|
1027
1069
|
function Me() {
|
|
1028
1070
|
const {
|
|
1029
1071
|
widgetCtx: { org: e }
|
|
1030
|
-
} =
|
|
1072
|
+
} = E(), {
|
|
1031
1073
|
routerState: { screen: o }
|
|
1032
|
-
} =
|
|
1074
|
+
} = F(), { textContent: t } = N();
|
|
1033
1075
|
return (() => {
|
|
1034
1076
|
var s, a;
|
|
1035
1077
|
switch (o) {
|
|
@@ -1062,7 +1104,7 @@ function co() {
|
|
|
1062
1104
|
const { router: e } = N(), {
|
|
1063
1105
|
routerState: { screen: o },
|
|
1064
1106
|
toSessionsScreen: t
|
|
1065
|
-
} =
|
|
1107
|
+
} = F();
|
|
1066
1108
|
return o !== "chat" || e != null && e.chatScreenOnly ? null : /* @__PURE__ */ r(
|
|
1067
1109
|
S,
|
|
1068
1110
|
{
|
|
@@ -1070,7 +1112,7 @@ function co() {
|
|
|
1070
1112
|
size: "fit",
|
|
1071
1113
|
className: "rounded-full",
|
|
1072
1114
|
onClick: t,
|
|
1073
|
-
children: /* @__PURE__ */ r(
|
|
1115
|
+
children: /* @__PURE__ */ r(yr, { className: "size-4 rtl:-scale-100" })
|
|
1074
1116
|
}
|
|
1075
1117
|
);
|
|
1076
1118
|
}
|
|
@@ -1097,7 +1139,7 @@ function ve({
|
|
|
1097
1139
|
}) {
|
|
1098
1140
|
const [o, t] = D(!1), {
|
|
1099
1141
|
routerState: { screen: n }
|
|
1100
|
-
} =
|
|
1142
|
+
} = F(), { isSmallScreen: s } = L(), { theme: a } = G(), { setWidth: i, setHeight: l } = Bt();
|
|
1101
1143
|
if (n !== "chat" && n !== "sessions") return null;
|
|
1102
1144
|
const c = (() => {
|
|
1103
1145
|
switch (n) {
|
|
@@ -1119,8 +1161,8 @@ function ve({
|
|
|
1119
1161
|
}
|
|
1120
1162
|
})(), b = () => {
|
|
1121
1163
|
t((x) => {
|
|
1122
|
-
const
|
|
1123
|
-
return l(
|
|
1164
|
+
const h = !x;
|
|
1165
|
+
return l(h ? "100vh" : c), i(h ? `max(40vw, ${p})` : p), h;
|
|
1124
1166
|
});
|
|
1125
1167
|
};
|
|
1126
1168
|
return s && e.hideOnSmallScreen || !s && e.hideOnLargeScreen ? null : /* @__PURE__ */ r(
|
|
@@ -1139,11 +1181,11 @@ function ve({
|
|
|
1139
1181
|
}
|
|
1140
1182
|
);
|
|
1141
1183
|
}
|
|
1142
|
-
function
|
|
1184
|
+
function Yt({
|
|
1143
1185
|
button: e
|
|
1144
1186
|
}) {
|
|
1145
|
-
var
|
|
1146
|
-
const { close: o } =
|
|
1187
|
+
var C, M;
|
|
1188
|
+
const { close: o } = he(), { widgetCtx: t } = E(), { setIsOpen: n } = V(), { resolveSession: s, sessionState: a } = Y(), { isSmallScreen: i } = L(), l = !a.session, c = ((C = a.session) == null ? void 0 : C.isOpened) === !1, p = e.onResolved || "stay-in-chat", b = e.behaviorBeforeSessionCreation || "disabled", x = e.behaviorIfSessionIsResolved || "disabled", h = !!(a.isResolvingSession || l && b === "disabled" || c && x === "disabled"), z = async () => {
|
|
1147
1189
|
const { success: v, error: R } = await s();
|
|
1148
1190
|
if (o(), !v) return console.error(R);
|
|
1149
1191
|
switch (p) {
|
|
@@ -1159,7 +1201,7 @@ function $t({
|
|
|
1159
1201
|
n(!1), t.resetChat();
|
|
1160
1202
|
break;
|
|
1161
1203
|
default:
|
|
1162
|
-
A(p,
|
|
1204
|
+
A(p, Yt.name);
|
|
1163
1205
|
break;
|
|
1164
1206
|
}
|
|
1165
1207
|
}, f = () => {
|
|
@@ -1207,14 +1249,14 @@ function $t({
|
|
|
1207
1249
|
variant: "ghost",
|
|
1208
1250
|
size: "fit",
|
|
1209
1251
|
className: "rounded-full",
|
|
1210
|
-
disabled:
|
|
1252
|
+
disabled: h,
|
|
1211
1253
|
children: /* @__PURE__ */ r(ne, { name: e.icon })
|
|
1212
1254
|
}
|
|
1213
1255
|
),
|
|
1214
1256
|
children: /* @__PURE__ */ d(Ce, { children: [
|
|
1215
|
-
/* @__PURE__ */ r(
|
|
1216
|
-
/* @__PURE__ */ r(
|
|
1217
|
-
/* @__PURE__ */ d(
|
|
1257
|
+
/* @__PURE__ */ r(Rt, { children: /* @__PURE__ */ r(Et, { children: e.confirmation.title || "Close conversation" }) }),
|
|
1258
|
+
/* @__PURE__ */ r(jt, { children: /* @__PURE__ */ r(Ot, { children: e.confirmation.description || "Are you sure you want to close this conversation?" }) }),
|
|
1259
|
+
/* @__PURE__ */ d(Pt, { children: [
|
|
1218
1260
|
/* @__PURE__ */ r(
|
|
1219
1261
|
S,
|
|
1220
1262
|
{
|
|
@@ -1228,7 +1270,7 @@ function $t({
|
|
|
1228
1270
|
S,
|
|
1229
1271
|
{
|
|
1230
1272
|
variant: "destructive",
|
|
1231
|
-
onClick:
|
|
1273
|
+
onClick: z,
|
|
1232
1274
|
disabled: a.isResolvingSession,
|
|
1233
1275
|
children: e.confirmation.confirmButtonText || "Yes"
|
|
1234
1276
|
}
|
|
@@ -1242,8 +1284,8 @@ function $t({
|
|
|
1242
1284
|
variant: "ghost",
|
|
1243
1285
|
size: "fit",
|
|
1244
1286
|
className: "rounded-full",
|
|
1245
|
-
onClick: c || l ? f :
|
|
1246
|
-
disabled:
|
|
1287
|
+
onClick: c || l ? f : z,
|
|
1288
|
+
disabled: h,
|
|
1247
1289
|
children: /* @__PURE__ */ r(ne, { name: e.icon })
|
|
1248
1290
|
}
|
|
1249
1291
|
);
|
|
@@ -1255,21 +1297,21 @@ function be({ button: e }) {
|
|
|
1255
1297
|
case "expand-shrink":
|
|
1256
1298
|
return /* @__PURE__ */ r(ve, { button: e });
|
|
1257
1299
|
case "resolve-session":
|
|
1258
|
-
return /* @__PURE__ */ r(
|
|
1300
|
+
return /* @__PURE__ */ r(Yt, { button: e });
|
|
1259
1301
|
default:
|
|
1260
1302
|
return A(e, be.name), null;
|
|
1261
1303
|
}
|
|
1262
1304
|
}
|
|
1263
|
-
const
|
|
1305
|
+
const mo = {
|
|
1264
1306
|
functionality: "close-widget",
|
|
1265
1307
|
hideOnLargeScreen: !0,
|
|
1266
1308
|
icon: "X"
|
|
1267
1309
|
};
|
|
1268
|
-
function
|
|
1310
|
+
function ho() {
|
|
1269
1311
|
const {
|
|
1270
1312
|
routerState: { screen: e }
|
|
1271
|
-
} =
|
|
1272
|
-
return !t || t.length === 0 ? /* @__PURE__ */ r(be, { button:
|
|
1313
|
+
} = F(), { headerButtons: o } = N(), t = e === "chat" ? o == null ? void 0 : o.chatScreen : e === "sessions" ? o == null ? void 0 : o.sessionsScreen : [];
|
|
1314
|
+
return !t || t.length === 0 ? /* @__PURE__ */ r(be, { button: mo }) : /* @__PURE__ */ r(Q, { children: t.map((n) => /* @__PURE__ */ r(
|
|
1273
1315
|
be,
|
|
1274
1316
|
{
|
|
1275
1317
|
button: n
|
|
@@ -1277,17 +1319,17 @@ function mo() {
|
|
|
1277
1319
|
`${n.functionality}-${n.icon}`
|
|
1278
1320
|
)) });
|
|
1279
1321
|
}
|
|
1280
|
-
function
|
|
1322
|
+
function Ut() {
|
|
1281
1323
|
const {
|
|
1282
1324
|
routerState: { screen: e }
|
|
1283
|
-
} =
|
|
1325
|
+
} = F(), o = lo(e), t = Me();
|
|
1284
1326
|
return /* @__PURE__ */ d("header", { ...o, className: "py-2 px-4 shrink-0", children: [
|
|
1285
1327
|
/* @__PURE__ */ d("div", { className: "flex items-center gap-2", children: [
|
|
1286
1328
|
/* @__PURE__ */ r(co, {}),
|
|
1287
1329
|
/* @__PURE__ */ r(
|
|
1288
1330
|
"div",
|
|
1289
1331
|
{
|
|
1290
|
-
className:
|
|
1332
|
+
className: m(
|
|
1291
1333
|
"flex-1 h-8 flex items-center",
|
|
1292
1334
|
e === "sessions" && "ps-2"
|
|
1293
1335
|
),
|
|
@@ -1299,24 +1341,24 @@ function Yt() {
|
|
|
1299
1341
|
)
|
|
1300
1342
|
}
|
|
1301
1343
|
),
|
|
1302
|
-
/* @__PURE__ */ r(
|
|
1344
|
+
/* @__PURE__ */ r(ho, {})
|
|
1303
1345
|
] }),
|
|
1304
1346
|
/* @__PURE__ */ r(ao, {})
|
|
1305
1347
|
] });
|
|
1306
1348
|
}
|
|
1307
|
-
function
|
|
1308
|
-
return /* @__PURE__ */ r(
|
|
1349
|
+
function Xt({ className: e }) {
|
|
1350
|
+
return /* @__PURE__ */ r(kr, { className: m("size-4 animate-spin", e) });
|
|
1309
1351
|
}
|
|
1310
1352
|
function uo() {
|
|
1311
1353
|
const {
|
|
1312
1354
|
messagesState: { isInitialFetchLoading: e }
|
|
1313
|
-
} = O(), { isSmallScreen: o } = L(), { activeMode: t, Component: n } =
|
|
1355
|
+
} = O(), { isSmallScreen: o } = L(), { activeMode: t, Component: n } = yt();
|
|
1314
1356
|
return {
|
|
1315
1357
|
isCanvasOpen: !e && !o && !!t && !!n
|
|
1316
1358
|
};
|
|
1317
1359
|
}
|
|
1318
1360
|
function go() {
|
|
1319
|
-
const e = te(), { activeMode: o, Component: t } =
|
|
1361
|
+
const e = te(), { activeMode: o, Component: t } = yt(), { sendMessage: n } = O(), { createStateCheckpoint: s } = Y(), [a, i] = D(!1), l = async (c) => {
|
|
1320
1362
|
try {
|
|
1321
1363
|
i(!0), await n(c);
|
|
1322
1364
|
} catch (p) {
|
|
@@ -1336,7 +1378,7 @@ function go() {
|
|
|
1336
1378
|
}
|
|
1337
1379
|
);
|
|
1338
1380
|
}
|
|
1339
|
-
const
|
|
1381
|
+
const H = W.forwardRef(
|
|
1340
1382
|
(e, o) => {
|
|
1341
1383
|
var t, n, s;
|
|
1342
1384
|
return /* @__PURE__ */ r(
|
|
@@ -1344,7 +1386,7 @@ const F = W.forwardRef(
|
|
|
1344
1386
|
{
|
|
1345
1387
|
...e,
|
|
1346
1388
|
ref: o,
|
|
1347
|
-
className:
|
|
1389
|
+
className: m("overflow-hidden", e.className),
|
|
1348
1390
|
overrides: {
|
|
1349
1391
|
initial: { height: 0, opacity: 0, ...(t = e.overrides) == null ? void 0 : t.initial },
|
|
1350
1392
|
animate: { height: "auto", opacity: 1, ...(n = e.overrides) == null ? void 0 : n.animate },
|
|
@@ -1354,7 +1396,7 @@ const F = W.forwardRef(
|
|
|
1354
1396
|
);
|
|
1355
1397
|
}
|
|
1356
1398
|
);
|
|
1357
|
-
|
|
1399
|
+
H.displayName = "MotionDiv__VerticalReveal";
|
|
1358
1400
|
const wo = [
|
|
1359
1401
|
{
|
|
1360
1402
|
label: "Terrible",
|
|
@@ -1389,8 +1431,8 @@ function fo() {
|
|
|
1389
1431
|
isCsatSubmitted: n,
|
|
1390
1432
|
submittedScore: s,
|
|
1391
1433
|
submittedFeedback: a
|
|
1392
|
-
} =
|
|
1393
|
-
l((
|
|
1434
|
+
} = kt(), [i, l] = D(null), [c, p] = D(null), b = (h) => {
|
|
1435
|
+
l((z) => z === h ? null : h);
|
|
1394
1436
|
}, x = () => {
|
|
1395
1437
|
i && o({
|
|
1396
1438
|
score: i,
|
|
@@ -1398,43 +1440,43 @@ function fo() {
|
|
|
1398
1440
|
});
|
|
1399
1441
|
};
|
|
1400
1442
|
return !t && !n ? null : /* @__PURE__ */ d("div", { className: "w-1/2 min-w-80 max-w-96 mx-auto overflow-hidden", children: [
|
|
1401
|
-
/* @__PURE__ */ r(T, { mode: "wait", children: t && !i ? /* @__PURE__ */ r(
|
|
1443
|
+
/* @__PURE__ */ r(T, { mode: "wait", children: t && !i ? /* @__PURE__ */ r(H, { 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(H, { children: /* @__PURE__ */ r("p", { className: "text-sm text-muted-foreground text-center pt-2", children: "You rated the conversation as" }) }, "csat-submitted-title") : null }),
|
|
1402
1444
|
/* @__PURE__ */ r(
|
|
1403
1445
|
"div",
|
|
1404
1446
|
{
|
|
1405
|
-
className:
|
|
1447
|
+
className: m(
|
|
1406
1448
|
"flex gap-4 justify-between pt-2 px-2 pb-2",
|
|
1407
1449
|
"transition-all",
|
|
1408
1450
|
n && "gap-0 justify-center"
|
|
1409
1451
|
),
|
|
1410
|
-
children: wo.map((
|
|
1452
|
+
children: wo.map((h) => /* @__PURE__ */ r(
|
|
1411
1453
|
S,
|
|
1412
1454
|
{
|
|
1413
|
-
variant:
|
|
1455
|
+
variant: h.value === i ? "secondary" : "ghost",
|
|
1414
1456
|
size: "selfless",
|
|
1415
|
-
className:
|
|
1457
|
+
className: m(
|
|
1416
1458
|
"transition-all overflow-hidden",
|
|
1417
1459
|
"text-2xl size-8 rounded-full",
|
|
1418
1460
|
"opacity-35",
|
|
1419
1461
|
"hover:opacity-100",
|
|
1420
1462
|
!i && "opacity-100",
|
|
1421
|
-
|
|
1422
|
-
n &&
|
|
1423
|
-
n &&
|
|
1463
|
+
h.value === i && "opacity-100",
|
|
1464
|
+
n && h.value !== s && "opacity-0 size-0",
|
|
1465
|
+
n && h.value === s && "opacity-100 size-fit text-4xl"
|
|
1424
1466
|
),
|
|
1425
|
-
onClick: t ? () => b(
|
|
1426
|
-
children:
|
|
1467
|
+
onClick: t ? () => b(h.value) : void 0,
|
|
1468
|
+
children: h.emoji
|
|
1427
1469
|
},
|
|
1428
|
-
|
|
1470
|
+
h.value
|
|
1429
1471
|
))
|
|
1430
1472
|
}
|
|
1431
1473
|
),
|
|
1432
|
-
/* @__PURE__ */ r(T, { mode: "wait", children: (i || s) && /* @__PURE__ */ r(
|
|
1474
|
+
/* @__PURE__ */ r(T, { mode: "wait", children: (i || s) && /* @__PURE__ */ r(H, { children: /* @__PURE__ */ d("div", { className: "pb-2 px-2 flex items-end", children: [
|
|
1433
1475
|
/* @__PURE__ */ r(
|
|
1434
1476
|
"textarea",
|
|
1435
1477
|
{
|
|
1436
1478
|
rows: 3,
|
|
1437
|
-
className:
|
|
1479
|
+
className: m(
|
|
1438
1480
|
"transition-all",
|
|
1439
1481
|
"max-h-40 [field-sizing:content]",
|
|
1440
1482
|
"w-full resize-none",
|
|
@@ -1445,7 +1487,7 @@ function fo() {
|
|
|
1445
1487
|
n && "text-center"
|
|
1446
1488
|
),
|
|
1447
1489
|
value: n ? a || "" : c || "",
|
|
1448
|
-
onChange: t ? (
|
|
1490
|
+
onChange: t ? (h) => p(h.target.value) : void 0,
|
|
1449
1491
|
readOnly: n,
|
|
1450
1492
|
placeholder: t ? "Tell us more... (optional)" : void 0
|
|
1451
1493
|
}
|
|
@@ -1456,24 +1498,24 @@ function fo() {
|
|
|
1456
1498
|
size: "fit",
|
|
1457
1499
|
onClick: x,
|
|
1458
1500
|
disabled: !i,
|
|
1459
|
-
className:
|
|
1501
|
+
className: m(
|
|
1460
1502
|
"transition-all overflow-hidden",
|
|
1461
1503
|
"rounded-full size-8 flex items-center justify-center p-0",
|
|
1462
1504
|
n && "opacity-0 size-0"
|
|
1463
1505
|
),
|
|
1464
|
-
children: /* @__PURE__ */ r(
|
|
1506
|
+
children: /* @__PURE__ */ r(_t, { className: "size-4" })
|
|
1465
1507
|
}
|
|
1466
1508
|
)
|
|
1467
1509
|
] }) }, "feedback-box") }),
|
|
1468
|
-
/* @__PURE__ */ r("div", { className:
|
|
1510
|
+
/* @__PURE__ */ r("div", { className: m("h-0 transition-[height]", n && "h-4") })
|
|
1469
1511
|
] });
|
|
1470
1512
|
}
|
|
1471
1513
|
function Z() {
|
|
1472
1514
|
const { dir: e } = ye(), o = N();
|
|
1473
|
-
return
|
|
1474
|
-
const t =
|
|
1515
|
+
return bt(() => {
|
|
1516
|
+
const t = Fr(o.language) ? o.language : "en";
|
|
1475
1517
|
return {
|
|
1476
|
-
t: (n) =>
|
|
1518
|
+
t: (n) => Hr(n, t, o.translationOverrides),
|
|
1477
1519
|
language: t,
|
|
1478
1520
|
dir: t === "ar" ? "rtl" : "ltr",
|
|
1479
1521
|
hostDocumentDir: e
|
|
@@ -1494,7 +1536,7 @@ function De({
|
|
|
1494
1536
|
{
|
|
1495
1537
|
...g("chat/suggested_reply_btn"),
|
|
1496
1538
|
size: "sm",
|
|
1497
|
-
className:
|
|
1539
|
+
className: m("rounded-xl w-fit", o),
|
|
1498
1540
|
...t,
|
|
1499
1541
|
onClick: s,
|
|
1500
1542
|
children: e
|
|
@@ -1519,9 +1561,9 @@ function xo() {
|
|
|
1519
1561
|
}
|
|
1520
1562
|
);
|
|
1521
1563
|
}
|
|
1522
|
-
function
|
|
1564
|
+
function gt() {
|
|
1523
1565
|
const { sessionState: e } = Y(), { chatFooterItems: o } = N(), t = !!e.session && !e.session.isOpened, n = !t;
|
|
1524
|
-
return /* @__PURE__ */ r(T, { mode: "wait", children: o == null ? void 0 : o.map((s, a) => s.showWhenSessionIsOpen === !1 && n || s.showWhenSessionIsResolved === !1 && t ? null : /* @__PURE__ */ r(
|
|
1566
|
+
return /* @__PURE__ */ r(T, { mode: "wait", children: o == null ? void 0 : o.map((s, a) => s.showWhenSessionIsOpen === !1 && n || s.showWhenSessionIsResolved === !1 && t ? null : /* @__PURE__ */ r(H, { children: /* @__PURE__ */ r("div", { className: "pb-2 text-center text-xs", children: /* @__PURE__ */ r(Ne, { children: s.message }) }) }, `${s.message}-${a}`)) });
|
|
1525
1567
|
}
|
|
1526
1568
|
function vo({
|
|
1527
1569
|
file: { status: e, file: o, error: t },
|
|
@@ -1538,9 +1580,9 @@ function vo({
|
|
|
1538
1580
|
const i = () => {
|
|
1539
1581
|
switch (e) {
|
|
1540
1582
|
case "uploading":
|
|
1541
|
-
return /* @__PURE__ */ r(
|
|
1583
|
+
return /* @__PURE__ */ r(Nr, { className: "size-4 animate-spin" });
|
|
1542
1584
|
case "error":
|
|
1543
|
-
return /* @__PURE__ */ r(
|
|
1585
|
+
return /* @__PURE__ */ r(zr, { className: "size-4 text-destructive" });
|
|
1544
1586
|
default:
|
|
1545
1587
|
return null;
|
|
1546
1588
|
}
|
|
@@ -1553,7 +1595,7 @@ function vo({
|
|
|
1553
1595
|
className: "object-cover bg-secondary size-full",
|
|
1554
1596
|
alt: o.name
|
|
1555
1597
|
}
|
|
1556
|
-
) : c === "audio" ? /* @__PURE__ */ r(
|
|
1598
|
+
) : c === "audio" ? /* @__PURE__ */ r(Sr, { className: "size-4 text-muted-foreground" }) : c === "video" ? /* @__PURE__ */ r(_r, { className: "size-4 text-muted-foreground" }) : o.type === "application/pdf" ? /* @__PURE__ */ r(Nt, { className: "size-4 text-muted-foreground" }) : /* @__PURE__ */ r(Ir, { className: "size-4 text-muted-foreground" });
|
|
1557
1599
|
};
|
|
1558
1600
|
return /* @__PURE__ */ r(
|
|
1559
1601
|
oe,
|
|
@@ -1566,7 +1608,7 @@ function vo({
|
|
|
1566
1608
|
children: /* @__PURE__ */ d(
|
|
1567
1609
|
"div",
|
|
1568
1610
|
{
|
|
1569
|
-
className:
|
|
1611
|
+
className: m(
|
|
1570
1612
|
e === "uploading" && "opacity-50",
|
|
1571
1613
|
"group",
|
|
1572
1614
|
"size-12 border rounded-2xl overflow-hidden relative",
|
|
@@ -1578,7 +1620,7 @@ function vo({
|
|
|
1578
1620
|
"button",
|
|
1579
1621
|
{
|
|
1580
1622
|
type: "button",
|
|
1581
|
-
className:
|
|
1623
|
+
className: m(
|
|
1582
1624
|
"absolute bg-black/50 inset-0 size-full z-10 opacity-0",
|
|
1583
1625
|
"flex items-center justify-center",
|
|
1584
1626
|
"opacity-0 group-hover:opacity-100 transition"
|
|
@@ -1602,16 +1644,16 @@ function bo() {
|
|
|
1602
1644
|
handleCancelUpload: p,
|
|
1603
1645
|
appendFiles: b,
|
|
1604
1646
|
isUploading: x,
|
|
1605
|
-
successFiles:
|
|
1606
|
-
} =
|
|
1647
|
+
successFiles: h
|
|
1648
|
+
} = er(), z = !!((_ = n.session) != null && _.isHandedOff), { isAwaitingBotReply: f } = Ct(), C = (w) => {
|
|
1607
1649
|
b(w);
|
|
1608
|
-
}, M = !a.trim() &&
|
|
1650
|
+
}, M = !a.trim() && h.length === 0, v = async () => {
|
|
1609
1651
|
if (f || M) return;
|
|
1610
1652
|
x && console.info("please wait for the file(s) to upload");
|
|
1611
1653
|
const w = a.trim();
|
|
1612
1654
|
t({
|
|
1613
1655
|
content: w,
|
|
1614
|
-
attachments:
|
|
1656
|
+
attachments: h.flatMap(
|
|
1615
1657
|
(y) => y.fileUrl ? [
|
|
1616
1658
|
{
|
|
1617
1659
|
url: y.fileUrl,
|
|
@@ -1625,16 +1667,16 @@ function bo() {
|
|
|
1625
1667
|
}), i(""), c();
|
|
1626
1668
|
}, {
|
|
1627
1669
|
getRootProps: R,
|
|
1628
|
-
getInputProps:
|
|
1670
|
+
getInputProps: P,
|
|
1629
1671
|
open: j
|
|
1630
1672
|
} = Wr({
|
|
1631
|
-
onDrop:
|
|
1673
|
+
onDrop: C,
|
|
1632
1674
|
noClick: !0,
|
|
1633
1675
|
onDropRejected() {
|
|
1634
1676
|
console.error("unsupported file type, or the file is too large");
|
|
1635
1677
|
},
|
|
1636
1678
|
maxSize: 5 * 1024 * 1024,
|
|
1637
|
-
accept:
|
|
1679
|
+
accept: z ? {
|
|
1638
1680
|
"text/*": [".txt"],
|
|
1639
1681
|
"image/*": [".png", ".jpg", ".jpeg", ".gif"],
|
|
1640
1682
|
"application/pdf": [".pdf"]
|
|
@@ -1642,11 +1684,12 @@ function bo() {
|
|
|
1642
1684
|
"image/png": [".png"],
|
|
1643
1685
|
"image/jpeg": [".jpg", ".jpeg"],
|
|
1644
1686
|
"image/gif": [".gif"],
|
|
1645
|
-
"image/webp": [".webp"]
|
|
1687
|
+
"image/webp": [".webp"],
|
|
1688
|
+
"application/pdf": [".pdf"]
|
|
1646
1689
|
}
|
|
1647
1690
|
}), u = (w) => {
|
|
1648
1691
|
const y = w.clipboardData;
|
|
1649
|
-
y && y.files.length > 0 &&
|
|
1692
|
+
y && y.files.length > 0 && C(Array.from(y.files));
|
|
1650
1693
|
};
|
|
1651
1694
|
return /* @__PURE__ */ d(
|
|
1652
1695
|
"div",
|
|
@@ -1655,12 +1698,12 @@ function bo() {
|
|
|
1655
1698
|
className: "p-2 relative space-y-1",
|
|
1656
1699
|
...R(),
|
|
1657
1700
|
children: [
|
|
1658
|
-
/* @__PURE__ */ r("input", { ...
|
|
1701
|
+
/* @__PURE__ */ r("input", { ...P() }),
|
|
1659
1702
|
/* @__PURE__ */ d(
|
|
1660
1703
|
"div",
|
|
1661
1704
|
{
|
|
1662
1705
|
...g("chat/input_box/inner_root"),
|
|
1663
|
-
className:
|
|
1706
|
+
className: m(
|
|
1664
1707
|
"transition-all",
|
|
1665
1708
|
"bg-white",
|
|
1666
1709
|
// 'border',
|
|
@@ -1697,7 +1740,7 @@ function bo() {
|
|
|
1697
1740
|
id: "chat-input",
|
|
1698
1741
|
value: a,
|
|
1699
1742
|
rows: 3,
|
|
1700
|
-
className:
|
|
1743
|
+
className: m(
|
|
1701
1744
|
/** Match the border radius of the container */
|
|
1702
1745
|
// INPUT_CONTAINER_B_RADIUS,
|
|
1703
1746
|
"max-h-16 [field-sizing:content]",
|
|
@@ -1724,17 +1767,17 @@ function bo() {
|
|
|
1724
1767
|
{
|
|
1725
1768
|
side: "top",
|
|
1726
1769
|
align: "start",
|
|
1727
|
-
content: "attach
|
|
1770
|
+
content: "attach images or PDF (maximum size 5mb)",
|
|
1728
1771
|
children: /* @__PURE__ */ r(
|
|
1729
1772
|
S,
|
|
1730
1773
|
{
|
|
1731
1774
|
onClick: j,
|
|
1732
1775
|
size: "fit",
|
|
1733
1776
|
variant: "ghost",
|
|
1734
|
-
className:
|
|
1777
|
+
className: m(
|
|
1735
1778
|
"rounded-full size-8 flex items-center justify-center p-0 overflow-hidden"
|
|
1736
1779
|
),
|
|
1737
|
-
children: /* @__PURE__ */ r(T, { mode: "wait", children:
|
|
1780
|
+
children: /* @__PURE__ */ r(T, { mode: "wait", children: f ? /* @__PURE__ */ r(k, { children: /* @__PURE__ */ r(ct, { className: "size-4 opacity-50" }) }, "paper-clip-disabled") : /* @__PURE__ */ r(k, { children: /* @__PURE__ */ r(ct, { className: "size-4" }) }, "paper-clip") })
|
|
1738
1781
|
}
|
|
1739
1782
|
)
|
|
1740
1783
|
}
|
|
@@ -1746,7 +1789,7 @@ function bo() {
|
|
|
1746
1789
|
onClick: v,
|
|
1747
1790
|
disabled: f || x || M,
|
|
1748
1791
|
className: "rounded-full size-8 flex items-center justify-center p-0",
|
|
1749
|
-
children: /* @__PURE__ */ r(T, { mode: "wait", children: f || x ? /* @__PURE__ */ r(k, { snapExit: !0, children: /* @__PURE__ */ r(
|
|
1792
|
+
children: /* @__PURE__ */ r(T, { mode: "wait", children: f || x ? /* @__PURE__ */ r(k, { snapExit: !0, children: /* @__PURE__ */ r(Cr, { className: "size-4 animate-spin animate-iteration-infinite" }) }, "loading") : /* @__PURE__ */ r(k, { snapExit: !0, children: /* @__PURE__ */ r(_t, { className: "size-4" }) }, "send") })
|
|
1750
1793
|
}
|
|
1751
1794
|
) })
|
|
1752
1795
|
] })
|
|
@@ -1757,30 +1800,30 @@ function bo() {
|
|
|
1757
1800
|
}
|
|
1758
1801
|
);
|
|
1759
1802
|
}
|
|
1760
|
-
function
|
|
1761
|
-
const { widgetCtx: e } =
|
|
1803
|
+
function wt() {
|
|
1804
|
+
const { widgetCtx: e } = E(), { router: o } = N(), { canCreateNewSession: t } = Y(), { toSessionsScreen: n } = F(), { t: s } = Z();
|
|
1762
1805
|
return /* @__PURE__ */ r(Q, { children: t || o != null && o.chatScreenOnly ? /* @__PURE__ */ r(S, { onClick: e.resetChat, className: "rounded-2xl w-full", children: s("new_conversation") }) : /* @__PURE__ */ r(S, { onClick: n, className: "rounded-2xl w-full", children: s("back_to_conversations") }) });
|
|
1763
1806
|
}
|
|
1764
1807
|
function yo() {
|
|
1765
|
-
const { t: e } = Z(), { isCsatRequested: o, isCsatSubmitted: t } =
|
|
1766
|
-
return /* @__PURE__ */ r("div", { className: "p-2", children: /* @__PURE__ */ r("div", { className: "p-2 bg-muted rounded-3xl", children: /* @__PURE__ */ r(T, { mode: "wait", children: o || t ? /* @__PURE__ */ d(
|
|
1808
|
+
const { t: e } = Z(), { isCsatRequested: o, isCsatSubmitted: t } = kt();
|
|
1809
|
+
return /* @__PURE__ */ r("div", { className: "p-2", children: /* @__PURE__ */ r("div", { className: "p-2 bg-muted rounded-3xl", children: /* @__PURE__ */ r(T, { mode: "wait", children: o || t ? /* @__PURE__ */ d(H, { children: [
|
|
1767
1810
|
/* @__PURE__ */ r(fo, {}),
|
|
1768
|
-
/* @__PURE__ */ r(T, { mode: "wait", children: t && /* @__PURE__ */ r(
|
|
1769
|
-
] }, "csat") : /* @__PURE__ */ d(
|
|
1811
|
+
/* @__PURE__ */ r(T, { mode: "wait", children: t && /* @__PURE__ */ r(H, { children: /* @__PURE__ */ r(wt, {}) }, "new-conv-or-back-to-convs-button") })
|
|
1812
|
+
] }, "csat") : /* @__PURE__ */ d(H, { children: [
|
|
1770
1813
|
/* @__PURE__ */ d("div", { className: "ps-2 flex items-center gap-1 pb-2", children: [
|
|
1771
|
-
/* @__PURE__ */ r(
|
|
1814
|
+
/* @__PURE__ */ r(St, { className: "size-4 text-emerald-600" }),
|
|
1772
1815
|
/* @__PURE__ */ r("h2", { className: "text-sm font-medium", children: e("your_issue_has_been_resolved") })
|
|
1773
1816
|
] }),
|
|
1774
|
-
/* @__PURE__ */ r(
|
|
1817
|
+
/* @__PURE__ */ r(wt, {})
|
|
1775
1818
|
] }, "session-closed") }) }) });
|
|
1776
1819
|
}
|
|
1777
1820
|
function ko() {
|
|
1778
1821
|
var i;
|
|
1779
1822
|
const { initialQuestions: e, initialQuestionsPosition: o, thisWasHelpfulOrNot: t } = N(), { sessionState: n } = Y(), { messagesState: s } = O(), a = s.messages.length === 0;
|
|
1780
|
-
return /* @__PURE__ */ r("footer", { children: /* @__PURE__ */ r(T, { mode: "wait", children: n.session && !((i = n.session) != null && i.isOpened) ? /* @__PURE__ */ d(
|
|
1823
|
+
return /* @__PURE__ */ r("footer", { children: /* @__PURE__ */ r(T, { mode: "wait", children: n.session && !((i = n.session) != null && i.isOpened) ? /* @__PURE__ */ d(H, { children: [
|
|
1781
1824
|
/* @__PURE__ */ r(yo, {}),
|
|
1782
|
-
/* @__PURE__ */ r(
|
|
1783
|
-
] }, "session-closed") : /* @__PURE__ */ d(
|
|
1825
|
+
/* @__PURE__ */ r(gt, {})
|
|
1826
|
+
] }, "session-closed") : /* @__PURE__ */ d(H, { children: [
|
|
1784
1827
|
s.lastAIResMightSolveUserIssue && (t == null ? void 0 : t.enabled) !== !1 && /* @__PURE__ */ r(xo, {}),
|
|
1785
1828
|
a && 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(
|
|
1786
1829
|
De,
|
|
@@ -1790,7 +1833,7 @@ function ko() {
|
|
|
1790
1833
|
`${l}-${c}`
|
|
1791
1834
|
)) }),
|
|
1792
1835
|
/* @__PURE__ */ r(bo, {}),
|
|
1793
|
-
/* @__PURE__ */ r(
|
|
1836
|
+
/* @__PURE__ */ r(gt, {})
|
|
1794
1837
|
] }, "chat-input") }) });
|
|
1795
1838
|
}
|
|
1796
1839
|
function Co({
|
|
@@ -1799,7 +1842,7 @@ function Co({
|
|
|
1799
1842
|
isAloneInGroup: t,
|
|
1800
1843
|
...n
|
|
1801
1844
|
}) {
|
|
1802
|
-
const { componentStore: s } =
|
|
1845
|
+
const { componentStore: s } = E();
|
|
1803
1846
|
if (n.type !== "AGENT" && n.type !== "AI") return null;
|
|
1804
1847
|
if (n.data.action) {
|
|
1805
1848
|
const i = s.getComponent(n.data.action.name);
|
|
@@ -1835,7 +1878,7 @@ function Co({
|
|
|
1835
1878
|
}
|
|
1836
1879
|
);
|
|
1837
1880
|
}
|
|
1838
|
-
function
|
|
1881
|
+
function qt({
|
|
1839
1882
|
messages: e,
|
|
1840
1883
|
className: o,
|
|
1841
1884
|
containerClassName: t
|
|
@@ -1857,7 +1900,7 @@ function Ut({
|
|
|
1857
1900
|
return console.error(c), null;
|
|
1858
1901
|
}
|
|
1859
1902
|
})();
|
|
1860
|
-
return a ? /* @__PURE__ */ r("div", { className: t, children: /* @__PURE__ */ r("span", { className:
|
|
1903
|
+
return a ? /* @__PURE__ */ r("div", { className: t, children: /* @__PURE__ */ r("span", { className: m("text-xs text-muted-foreground", o), children: a }) }) : null;
|
|
1861
1904
|
}
|
|
1862
1905
|
function pe({
|
|
1863
1906
|
messages: e,
|
|
@@ -1868,7 +1911,7 @@ function pe({
|
|
|
1868
1911
|
"div",
|
|
1869
1912
|
{
|
|
1870
1913
|
...g("chat/agent_msg_group/root"),
|
|
1871
|
-
className:
|
|
1914
|
+
className: m("flex items-end gap-2"),
|
|
1872
1915
|
children: [
|
|
1873
1916
|
/* @__PURE__ */ r(oe, { content: o == null ? void 0 : o.name, side: "right", align: "end", children: /* @__PURE__ */ r(
|
|
1874
1917
|
xe,
|
|
@@ -1878,12 +1921,12 @@ function pe({
|
|
|
1878
1921
|
className: "hidden"
|
|
1879
1922
|
}
|
|
1880
1923
|
) }),
|
|
1881
|
-
/* @__PURE__ */ d("div", { className:
|
|
1924
|
+
/* @__PURE__ */ d("div", { className: m("flex-1 flex flex-col gap-1"), children: [
|
|
1882
1925
|
/* @__PURE__ */ d(
|
|
1883
1926
|
"div",
|
|
1884
1927
|
{
|
|
1885
1928
|
...g("chat/agent_msg_group/avatar_and_msgs/root"),
|
|
1886
|
-
className:
|
|
1929
|
+
className: m("flex items-end gap-2"),
|
|
1887
1930
|
children: [
|
|
1888
1931
|
/* @__PURE__ */ r(oe, { content: o == null ? void 0 : o.name, side: "right", align: "end", children: /* @__PURE__ */ r(
|
|
1889
1932
|
xe,
|
|
@@ -1896,7 +1939,7 @@ function pe({
|
|
|
1896
1939
|
"div",
|
|
1897
1940
|
{
|
|
1898
1941
|
...g("chat/agent_msg_group/avatar_and_msgs/msgs"),
|
|
1899
|
-
className:
|
|
1942
|
+
className: m("flex-1 flex flex-col gap-1"),
|
|
1900
1943
|
children: [
|
|
1901
1944
|
e.map((n, s, a) => /* @__PURE__ */ r(
|
|
1902
1945
|
Co,
|
|
@@ -1908,7 +1951,7 @@ function pe({
|
|
|
1908
1951
|
},
|
|
1909
1952
|
n.id
|
|
1910
1953
|
)),
|
|
1911
|
-
/* @__PURE__ */ r(
|
|
1954
|
+
/* @__PURE__ */ r(qt, { messages: e })
|
|
1912
1955
|
]
|
|
1913
1956
|
}
|
|
1914
1957
|
)
|
|
@@ -1919,7 +1962,7 @@ function pe({
|
|
|
1919
1962
|
"div",
|
|
1920
1963
|
{
|
|
1921
1964
|
...g("chat/agent_msg_group/suggestions"),
|
|
1922
|
-
className:
|
|
1965
|
+
className: m("flex flex-col gap-1 ps-8"),
|
|
1923
1966
|
children: t == null ? void 0 : t.map((n, s) => /* @__PURE__ */ r(
|
|
1924
1967
|
De,
|
|
1925
1968
|
{
|
|
@@ -1954,7 +1997,7 @@ function No({
|
|
|
1954
1997
|
...g("chat/user_msg/root"),
|
|
1955
1998
|
className: "w-5/6 flex flex-col items-end gap-1",
|
|
1956
1999
|
children: [
|
|
1957
|
-
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((a) => /* @__PURE__ */ r(
|
|
2000
|
+
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((a) => /* @__PURE__ */ r(Ft, { attachment: a }, a.id)) }),
|
|
1958
2001
|
e.content.length > 0 && /* @__PURE__ */ r(
|
|
1959
2002
|
"div",
|
|
1960
2003
|
{
|
|
@@ -1962,7 +2005,7 @@ function No({
|
|
|
1962
2005
|
"data-first": o,
|
|
1963
2006
|
"data-last": t,
|
|
1964
2007
|
"data-alone": n,
|
|
1965
|
-
className:
|
|
2008
|
+
className: m(
|
|
1966
2009
|
"transition-all",
|
|
1967
2010
|
"w-fit py-3 px-4 rounded-3xl text-sm",
|
|
1968
2011
|
"bg-primary text-primary-foreground",
|
|
@@ -1988,7 +2031,7 @@ function So({
|
|
|
1988
2031
|
"div",
|
|
1989
2032
|
{
|
|
1990
2033
|
...g("chat/user_msg_group/root"),
|
|
1991
|
-
className:
|
|
2034
|
+
className: m("group", "flex flex-col gap-1 justify-end items-end"),
|
|
1992
2035
|
children: [
|
|
1993
2036
|
e.map((o, t, n) => /* @__PURE__ */ r(
|
|
1994
2037
|
No,
|
|
@@ -2000,7 +2043,7 @@ function So({
|
|
|
2000
2043
|
},
|
|
2001
2044
|
o.id
|
|
2002
2045
|
)),
|
|
2003
|
-
/* @__PURE__ */ r(
|
|
2046
|
+
/* @__PURE__ */ r(qt, { messages: e, containerClassName: "ms-auto" })
|
|
2004
2047
|
]
|
|
2005
2048
|
}
|
|
2006
2049
|
);
|
|
@@ -2089,15 +2132,15 @@ function jo() {
|
|
|
2089
2132
|
}
|
|
2090
2133
|
) });
|
|
2091
2134
|
}
|
|
2092
|
-
function
|
|
2135
|
+
function Po() {
|
|
2093
2136
|
var t;
|
|
2094
2137
|
const e = te(), o = (t = e.config.customComponents) == null ? void 0 : t.chatBottomComponents;
|
|
2095
2138
|
return o ? /* @__PURE__ */ r("div", { children: o.map(({ key: n, component: s }) => /* @__PURE__ */ r(s, { ...e }, n)) }) : null;
|
|
2096
2139
|
}
|
|
2097
|
-
function
|
|
2140
|
+
function Eo() {
|
|
2098
2141
|
const {
|
|
2099
2142
|
messagesState: { messages: e }
|
|
2100
|
-
} = O(), { isAwaitingBotReply: o } =
|
|
2143
|
+
} = O(), { isAwaitingBotReply: o } = Ct(), { componentStore: t } = E(), { bot: n, humanAgent: s } = N(), a = bt(
|
|
2101
2144
|
() => _o(e),
|
|
2102
2145
|
[e]
|
|
2103
2146
|
), i = t.getComponent(
|
|
@@ -2122,20 +2165,20 @@ function Po() {
|
|
|
2122
2165
|
/* @__PURE__ */ r(Do, {}),
|
|
2123
2166
|
/* @__PURE__ */ r(jo, {}),
|
|
2124
2167
|
a.map((p, b) => {
|
|
2125
|
-
var
|
|
2126
|
-
const x = (
|
|
2127
|
-
if (!x || !
|
|
2168
|
+
var z, f, C, M;
|
|
2169
|
+
const x = (z = p == null ? void 0 : p[0]) == null ? void 0 : z.type, h = (f = p[0]) == null ? void 0 : f.id;
|
|
2170
|
+
if (!x || !h) return null;
|
|
2128
2171
|
if (Io(p))
|
|
2129
|
-
return /* @__PURE__ */ r(So, { messages: p },
|
|
2172
|
+
return /* @__PURE__ */ r(So, { messages: p }, h);
|
|
2130
2173
|
if (To(p)) {
|
|
2131
2174
|
const v = b === a.length - 1;
|
|
2132
|
-
return o && v ? null : ((
|
|
2175
|
+
return o && v ? null : ((C = p[0]) == null || C.agent, /* @__PURE__ */ r(
|
|
2133
2176
|
pe,
|
|
2134
2177
|
{
|
|
2135
2178
|
messages: p,
|
|
2136
2179
|
agent: n ? { ...n, isAi: !0, id: null } : void 0
|
|
2137
2180
|
},
|
|
2138
|
-
|
|
2181
|
+
h
|
|
2139
2182
|
));
|
|
2140
2183
|
}
|
|
2141
2184
|
if (Mo(p)) {
|
|
@@ -2155,13 +2198,13 @@ function Po() {
|
|
|
2155
2198
|
avatarUrl: s.avatarUrl || null
|
|
2156
2199
|
} : void 0
|
|
2157
2200
|
},
|
|
2158
|
-
|
|
2201
|
+
h
|
|
2159
2202
|
);
|
|
2160
2203
|
}
|
|
2161
2204
|
return null;
|
|
2162
2205
|
}),
|
|
2163
2206
|
o && i && /* @__PURE__ */ r(i, { agent: n }),
|
|
2164
|
-
/* @__PURE__ */ r(
|
|
2207
|
+
/* @__PURE__ */ r(Po, {}),
|
|
2165
2208
|
/* @__PURE__ */ r(zo, {})
|
|
2166
2209
|
]
|
|
2167
2210
|
}
|
|
@@ -2182,7 +2225,7 @@ function Oo() {
|
|
|
2182
2225
|
"div",
|
|
2183
2226
|
{
|
|
2184
2227
|
...g("chat/root"),
|
|
2185
|
-
className:
|
|
2228
|
+
className: m("flex flex-col overflow-hidden"),
|
|
2186
2229
|
style: {
|
|
2187
2230
|
width: "100vw",
|
|
2188
2231
|
// Relative to the iframe
|
|
@@ -2194,12 +2237,12 @@ function Oo() {
|
|
|
2194
2237
|
// Relative to the iframe
|
|
2195
2238
|
},
|
|
2196
2239
|
children: /* @__PURE__ */ d("div", { className: "size-full justify-between flex flex-col", children: [
|
|
2197
|
-
/* @__PURE__ */ r(
|
|
2240
|
+
/* @__PURE__ */ r(Ut, {}),
|
|
2198
2241
|
/* @__PURE__ */ r(T, { mode: "wait", children: e ? /* @__PURE__ */ r(
|
|
2199
2242
|
k,
|
|
2200
2243
|
{
|
|
2201
2244
|
className: "flex flex-col items-center justify-center w-full flex-1",
|
|
2202
|
-
children: /* @__PURE__ */ r(
|
|
2245
|
+
children: /* @__PURE__ */ r(Xt, {})
|
|
2203
2246
|
},
|
|
2204
2247
|
"loading"
|
|
2205
2248
|
) : /* @__PURE__ */ d(
|
|
@@ -2212,7 +2255,7 @@ function Oo() {
|
|
|
2212
2255
|
"div",
|
|
2213
2256
|
{
|
|
2214
2257
|
...g("chat/main/root"),
|
|
2215
|
-
className:
|
|
2258
|
+
className: m(
|
|
2216
2259
|
"flex flex-col h-full overflow-auto transition-all",
|
|
2217
2260
|
t ? "w-2/5" : "w-full"
|
|
2218
2261
|
),
|
|
@@ -2221,7 +2264,7 @@ function Oo() {
|
|
|
2221
2264
|
transitionDuration: n.screens.chat.withCanvas.transitionDuration
|
|
2222
2265
|
},
|
|
2223
2266
|
children: [
|
|
2224
|
-
/* @__PURE__ */ r(
|
|
2267
|
+
/* @__PURE__ */ r(Eo, {}),
|
|
2225
2268
|
/* @__PURE__ */ r(ko, {})
|
|
2226
2269
|
]
|
|
2227
2270
|
}
|
|
@@ -2230,7 +2273,7 @@ function Oo() {
|
|
|
2230
2273
|
"div",
|
|
2231
2274
|
{
|
|
2232
2275
|
...g("chat/canvas/root"),
|
|
2233
|
-
className:
|
|
2276
|
+
className: m(
|
|
2234
2277
|
"h-full overflow-auto transition-all",
|
|
2235
2278
|
t ? "w-3/5" : "w-0"
|
|
2236
2279
|
),
|
|
@@ -2256,12 +2299,12 @@ function Ao({
|
|
|
2256
2299
|
return /* @__PURE__ */ r(
|
|
2257
2300
|
"div",
|
|
2258
2301
|
{
|
|
2259
|
-
className:
|
|
2302
|
+
className: m("animate-pulse rounded-md bg-secondary", e),
|
|
2260
2303
|
...o
|
|
2261
2304
|
}
|
|
2262
2305
|
);
|
|
2263
2306
|
}
|
|
2264
|
-
function
|
|
2307
|
+
function Fo({ className: e }) {
|
|
2265
2308
|
return /* @__PURE__ */ r(
|
|
2266
2309
|
"svg",
|
|
2267
2310
|
{
|
|
@@ -2270,7 +2313,7 @@ function Ho({ className: e }) {
|
|
|
2270
2313
|
viewBox: "0 0 26 32",
|
|
2271
2314
|
fill: "none",
|
|
2272
2315
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2273
|
-
className:
|
|
2316
|
+
className: m("text-primary-foreground", e),
|
|
2274
2317
|
children: /* @__PURE__ */ r(
|
|
2275
2318
|
"path",
|
|
2276
2319
|
{
|
|
@@ -2281,22 +2324,22 @@ function Ho({ className: e }) {
|
|
|
2281
2324
|
}
|
|
2282
2325
|
);
|
|
2283
2326
|
}
|
|
2284
|
-
function
|
|
2327
|
+
function Vt({ className: e }) {
|
|
2285
2328
|
const { token: o } = N();
|
|
2286
2329
|
return /* @__PURE__ */ r(
|
|
2287
2330
|
"div",
|
|
2288
2331
|
{
|
|
2289
|
-
className:
|
|
2332
|
+
className: m(
|
|
2290
2333
|
"flex items-center justify-center gap-2 p-2 pt-0",
|
|
2291
2334
|
e
|
|
2292
2335
|
),
|
|
2293
|
-
children: /* @__PURE__ */ r(
|
|
2336
|
+
children: /* @__PURE__ */ r(B, { children: /* @__PURE__ */ d(
|
|
2294
2337
|
"a",
|
|
2295
2338
|
{
|
|
2296
2339
|
href: `https://open.cx/?ref=${o}`,
|
|
2297
2340
|
target: "_blank",
|
|
2298
2341
|
rel: "noreferrer",
|
|
2299
|
-
className:
|
|
2342
|
+
className: m(
|
|
2300
2343
|
"text-[10px] flex items-center",
|
|
2301
2344
|
"text-muted-foreground/70 [&_svg]:text-muted-foreground/70",
|
|
2302
2345
|
"hover:text-primary [&_svg]:hover:text-primary"
|
|
@@ -2305,7 +2348,7 @@ function Xt({ className: e }) {
|
|
|
2305
2348
|
/* @__PURE__ */ r("span", { children: "Powered by" }),
|
|
2306
2349
|
/* @__PURE__ */ r("span", { children: " " }),
|
|
2307
2350
|
/* @__PURE__ */ d("span", { className: "flex items-center gap-[1px]", children: [
|
|
2308
|
-
/* @__PURE__ */ r("span", { children: /* @__PURE__ */ r(
|
|
2351
|
+
/* @__PURE__ */ r("span", { children: /* @__PURE__ */ r(Fo, { className: "size-3 inline-block" }) }),
|
|
2309
2352
|
/* @__PURE__ */ r("span", { className: "font-semibold", children: "open" })
|
|
2310
2353
|
] })
|
|
2311
2354
|
]
|
|
@@ -2314,20 +2357,20 @@ function Xt({ className: e }) {
|
|
|
2314
2357
|
}
|
|
2315
2358
|
);
|
|
2316
2359
|
}
|
|
2317
|
-
function
|
|
2360
|
+
function Ho({ children: e }) {
|
|
2318
2361
|
return /* @__PURE__ */ r("p", { className: "ps-4 text-xs text-muted-foreground/75 uppercase font-semibold tracking-tight", children: e });
|
|
2319
2362
|
}
|
|
2320
|
-
function
|
|
2363
|
+
function ft({
|
|
2321
2364
|
session: e,
|
|
2322
2365
|
className: o
|
|
2323
2366
|
}) {
|
|
2324
|
-
const { bot: t, humanAgent: n } = N(), { toChatScreen: s } =
|
|
2367
|
+
const { bot: t, humanAgent: n } = N(), { toChatScreen: s } = F(), a = e.assignee.kind === "human" ? (n == null ? void 0 : n.name) || e.assignee.name || "Support Agent" : (t == null ? void 0 : t.name) || "AI Support Agent", i = 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) || "";
|
|
2325
2368
|
return /* @__PURE__ */ d(
|
|
2326
2369
|
S,
|
|
2327
2370
|
{
|
|
2328
2371
|
variant: "ghost",
|
|
2329
2372
|
size: "lg",
|
|
2330
|
-
className:
|
|
2373
|
+
className: m(
|
|
2331
2374
|
"rounded-full p-2 pe-4 flex text-start justify-between w-full whitespace-normal",
|
|
2332
2375
|
o
|
|
2333
2376
|
),
|
|
@@ -2336,28 +2379,28 @@ function wt({
|
|
|
2336
2379
|
/* @__PURE__ */ d("div", { className: "flex-1 flex gap-2 items-center", children: [
|
|
2337
2380
|
/* @__PURE__ */ r(T, { mode: "wait", children: /* @__PURE__ */ r(k, { snapExit: !0, children: /* @__PURE__ */ d(Se, { className: "size-10", children: [
|
|
2338
2381
|
/* @__PURE__ */ r(_e, { src: i, alt: "Agent Icon" }),
|
|
2339
|
-
/* @__PURE__ */ r(Ie, { children: /* @__PURE__ */ r(
|
|
2382
|
+
/* @__PURE__ */ r(Ie, { children: /* @__PURE__ */ r(Tr, { className: "size-4" }) })
|
|
2340
2383
|
] }) }) }),
|
|
2341
2384
|
/* @__PURE__ */ d("div", { className: "flex-1", children: [
|
|
2342
2385
|
/* @__PURE__ */ r(T, { mode: "wait", children: /* @__PURE__ */ r(k, { snapExit: !0, children: a }, a) }),
|
|
2343
2386
|
/* @__PURE__ */ r(T, { mode: "wait", children: e.lastMessage ? /* @__PURE__ */ r(k, { snapExit: !0, children: /* @__PURE__ */ r(
|
|
2344
|
-
|
|
2387
|
+
Ht,
|
|
2345
2388
|
{
|
|
2346
|
-
remarkPlugins: [
|
|
2347
|
-
rehypePlugins: [
|
|
2389
|
+
remarkPlugins: [It],
|
|
2390
|
+
rehypePlugins: [Tt],
|
|
2348
2391
|
className: "line-clamp-1 overflow-hidden text-ellipsis text-xs text-muted-foreground",
|
|
2349
2392
|
children: e.lastMessage
|
|
2350
2393
|
}
|
|
2351
2394
|
) }, e.lastMessage || "content") : /* @__PURE__ */ r(k, { className: "w-1/2", snapExit: !0, children: /* @__PURE__ */ r(Ao, { className: "h-4 w-full" }) }, "skeleton") })
|
|
2352
2395
|
] })
|
|
2353
2396
|
] }),
|
|
2354
|
-
/* @__PURE__ */ r(
|
|
2397
|
+
/* @__PURE__ */ r(Mr, { className: "size-4 text-muted-foreground shrink-0 rtl:-scale-100" })
|
|
2355
2398
|
]
|
|
2356
2399
|
}
|
|
2357
2400
|
);
|
|
2358
2401
|
}
|
|
2359
2402
|
function Wo() {
|
|
2360
|
-
const { t: e } = Z(), { toChatScreen: o } =
|
|
2403
|
+
const { t: e } = Z(), { toChatScreen: o } = F(), {
|
|
2361
2404
|
sessionsState: { data: t, isInitialFetchLoading: n },
|
|
2362
2405
|
openSessions: s,
|
|
2363
2406
|
closedSessions: a,
|
|
@@ -2367,7 +2410,7 @@ function Wo() {
|
|
|
2367
2410
|
k,
|
|
2368
2411
|
{
|
|
2369
2412
|
className: "flex-1 flex items-center justify-center",
|
|
2370
|
-
children: /* @__PURE__ */ r(
|
|
2413
|
+
children: /* @__PURE__ */ r(Xt, {})
|
|
2371
2414
|
},
|
|
2372
2415
|
"loading"
|
|
2373
2416
|
) : /* @__PURE__ */ r(
|
|
@@ -2383,7 +2426,7 @@ function Wo() {
|
|
|
2383
2426
|
delay: 0.2,
|
|
2384
2427
|
className: "space-y-2",
|
|
2385
2428
|
snapExit: !0,
|
|
2386
|
-
children: s.map((l) => /* @__PURE__ */ r(
|
|
2429
|
+
children: s.map((l) => /* @__PURE__ */ r(ft, { session: l }, l.id))
|
|
2387
2430
|
},
|
|
2388
2431
|
"open-sessions"
|
|
2389
2432
|
),
|
|
@@ -2394,9 +2437,9 @@ function Wo() {
|
|
|
2394
2437
|
delay: 0.2,
|
|
2395
2438
|
snapExit: !0,
|
|
2396
2439
|
children: [
|
|
2397
|
-
/* @__PURE__ */ r(
|
|
2440
|
+
/* @__PURE__ */ r(Ho, { children: e("closed_conversations") }),
|
|
2398
2441
|
a.map((l) => /* @__PURE__ */ r(
|
|
2399
|
-
|
|
2442
|
+
ft,
|
|
2400
2443
|
{
|
|
2401
2444
|
session: l,
|
|
2402
2445
|
className: "opacity-50 hover:opacity-100"
|
|
@@ -2446,7 +2489,7 @@ function Lo() {
|
|
|
2446
2489
|
"div",
|
|
2447
2490
|
{
|
|
2448
2491
|
...g("sessions/root"),
|
|
2449
|
-
className:
|
|
2492
|
+
className: m("flex flex-col overflow-hidden bg-background"),
|
|
2450
2493
|
style: {
|
|
2451
2494
|
width: "100vw",
|
|
2452
2495
|
// Relative to the iframe
|
|
@@ -2458,9 +2501,9 @@ function Lo() {
|
|
|
2458
2501
|
// Relative to the iframe
|
|
2459
2502
|
},
|
|
2460
2503
|
children: /* @__PURE__ */ d("div", { className: "size-full flex flex-col", children: [
|
|
2461
|
-
/* @__PURE__ */ r(
|
|
2504
|
+
/* @__PURE__ */ r(Ut, {}),
|
|
2462
2505
|
/* @__PURE__ */ r(Wo, {}),
|
|
2463
|
-
/* @__PURE__ */ r(
|
|
2506
|
+
/* @__PURE__ */ r(Vt, {})
|
|
2464
2507
|
] })
|
|
2465
2508
|
}
|
|
2466
2509
|
);
|
|
@@ -2473,7 +2516,7 @@ const de = J.forwardRef(
|
|
|
2473
2516
|
{
|
|
2474
2517
|
ref: n,
|
|
2475
2518
|
type: o,
|
|
2476
|
-
className:
|
|
2519
|
+
className: m(
|
|
2477
2520
|
// 16px on mobiles prevents auto-zoom on the input when focused
|
|
2478
2521
|
s ? "text-[16px]" : "text-sm",
|
|
2479
2522
|
"flex w-full rounded-xl p-2 ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-primary-foreground placeholder:text-muted-foreground/75 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 transition",
|
|
@@ -2488,7 +2531,7 @@ const de = J.forwardRef(
|
|
|
2488
2531
|
);
|
|
2489
2532
|
de.displayName = "Input";
|
|
2490
2533
|
function $o() {
|
|
2491
|
-
const { contentIframeRef: e } =
|
|
2534
|
+
const { contentIframeRef: e } = E(), { inline: o } = N(), t = $(null);
|
|
2492
2535
|
return se(() => {
|
|
2493
2536
|
const n = e == null ? void 0 : e.current;
|
|
2494
2537
|
if (n && t.current) {
|
|
@@ -2509,35 +2552,35 @@ function $o() {
|
|
|
2509
2552
|
}
|
|
2510
2553
|
}, [e, o]), { observedElementRef: t };
|
|
2511
2554
|
}
|
|
2512
|
-
const
|
|
2555
|
+
const Bo = ge.object({
|
|
2513
2556
|
name: ge.string().min(2),
|
|
2514
2557
|
email: ge.string().email()
|
|
2515
2558
|
});
|
|
2516
|
-
function
|
|
2517
|
-
var v, R,
|
|
2559
|
+
function Yo() {
|
|
2560
|
+
var v, R, P, j, u, _, w, y;
|
|
2518
2561
|
const {
|
|
2519
2562
|
widgetCtx: { org: e }
|
|
2520
|
-
} =
|
|
2563
|
+
} = E(), { setIsOpen: o } = V(), { createUnverifiedContact: t } = zt(), { isSmallScreen: n } = L(), s = N(), { theme: a } = G(), { t: i } = Z(), { observedElementRef: l } = $o();
|
|
2521
2564
|
Te({
|
|
2522
2565
|
height: void 0,
|
|
2523
2566
|
width: a.screens.welcome.width
|
|
2524
2567
|
});
|
|
2525
|
-
const [c, p] = D(((v = s.prefillUserData) == null ? void 0 : v.name) || ""), [b, x] = D(((R = s.prefillUserData) == null ? void 0 : R.email) || ""),
|
|
2568
|
+
const [c, p] = D(((v = s.prefillUserData) == null ? void 0 : v.name) || ""), [b, x] = D(((R = s.prefillUserData) == null ? void 0 : R.email) || ""), h = (s.extraDataCollectionFields || []).filter(
|
|
2526
2569
|
(I) => I !== "name" && I !== "email" && !!I
|
|
2527
|
-
), [
|
|
2570
|
+
), [z, f] = D({}), [C, M] = Lr(
|
|
2528
2571
|
async (I) => {
|
|
2529
2572
|
I.preventDefault();
|
|
2530
|
-
const
|
|
2531
|
-
|
|
2573
|
+
const U = Bo.safeParse({ name: c, email: b });
|
|
2574
|
+
U.success && await t(
|
|
2532
2575
|
{
|
|
2533
|
-
email:
|
|
2534
|
-
non_verified_name:
|
|
2576
|
+
email: U.data.email,
|
|
2577
|
+
non_verified_name: U.data.name
|
|
2535
2578
|
},
|
|
2536
2579
|
// Only pass extra data if there is any
|
|
2537
|
-
Object.values(
|
|
2580
|
+
Object.values(z).filter(Boolean).length ? z : void 0
|
|
2538
2581
|
);
|
|
2539
2582
|
},
|
|
2540
|
-
[c, b,
|
|
2583
|
+
[c, b, z]
|
|
2541
2584
|
);
|
|
2542
2585
|
return /* @__PURE__ */ r(
|
|
2543
2586
|
"div",
|
|
@@ -2558,7 +2601,7 @@ function Bo() {
|
|
|
2558
2601
|
"div",
|
|
2559
2602
|
{
|
|
2560
2603
|
ref: l,
|
|
2561
|
-
className:
|
|
2604
|
+
className: m(
|
|
2562
2605
|
"flex flex-col",
|
|
2563
2606
|
n && "h-full",
|
|
2564
2607
|
"bg-[radial-gradient(ellipse_at_top_left,hsl(var(--opencx-primary)),transparent),radial-gradient(ellipse_at_top_right,hsl(var(--opencx-primary)),transparent)]"
|
|
@@ -2567,13 +2610,13 @@ function Bo() {
|
|
|
2567
2610
|
/* @__PURE__ */ d(
|
|
2568
2611
|
"div",
|
|
2569
2612
|
{
|
|
2570
|
-
className:
|
|
2613
|
+
className: m(
|
|
2571
2614
|
"flex-1 flex flex-col px-4 py-12 text-start space-y-4 relative z-10",
|
|
2572
2615
|
"text-primary-foreground"
|
|
2573
2616
|
),
|
|
2574
2617
|
children: [
|
|
2575
2618
|
n && /* @__PURE__ */ r(k, { className: "absolute top-6 end-6", children: /* @__PURE__ */ r(S, { size: "selfless", onClick: () => o(!1), children: /* @__PURE__ */ r(ke, { className: "size-4" }) }) }),
|
|
2576
|
-
/* @__PURE__ */ r("div", { className: "flex items-center justify-between w-full mb-2", children: (
|
|
2619
|
+
/* @__PURE__ */ r("div", { className: "flex items-center justify-between w-full mb-2", children: (P = s.assets) != null && P.organizationLogo ? /* @__PURE__ */ r(
|
|
2577
2620
|
"img",
|
|
2578
2621
|
{
|
|
2579
2622
|
src: (j = s.assets) == null ? void 0 : j.organizationLogo,
|
|
@@ -2591,7 +2634,7 @@ function Bo() {
|
|
|
2591
2634
|
/* @__PURE__ */ d(
|
|
2592
2635
|
"div",
|
|
2593
2636
|
{
|
|
2594
|
-
className:
|
|
2637
|
+
className: m(
|
|
2595
2638
|
"z-10 m-2 px-2 pt-2 bp-0 space-y-2",
|
|
2596
2639
|
"bg-[white]",
|
|
2597
2640
|
"border shadow",
|
|
@@ -2620,13 +2663,13 @@ function Bo() {
|
|
|
2620
2663
|
name: "email"
|
|
2621
2664
|
}
|
|
2622
2665
|
),
|
|
2623
|
-
|
|
2666
|
+
h.map((I) => /* @__PURE__ */ r(
|
|
2624
2667
|
de,
|
|
2625
2668
|
{
|
|
2626
|
-
value:
|
|
2627
|
-
onChange: (
|
|
2669
|
+
value: z[I],
|
|
2670
|
+
onChange: (U) => f((ie) => ({
|
|
2628
2671
|
...ie,
|
|
2629
|
-
[I]:
|
|
2672
|
+
[I]: U.target.value
|
|
2630
2673
|
})),
|
|
2631
2674
|
placeholder: `${I} (${i("optional")})`
|
|
2632
2675
|
},
|
|
@@ -2635,17 +2678,17 @@ function Bo() {
|
|
|
2635
2678
|
/* @__PURE__ */ d(
|
|
2636
2679
|
S,
|
|
2637
2680
|
{
|
|
2638
|
-
disabled:
|
|
2681
|
+
disabled: C.loading,
|
|
2639
2682
|
className: "w-full",
|
|
2640
2683
|
size: "lg",
|
|
2641
2684
|
children: [
|
|
2642
|
-
|
|
2643
|
-
/* @__PURE__ */ r(
|
|
2685
|
+
C.loading ? i("start_chat_button_loading") : i("start_chat_button"),
|
|
2686
|
+
/* @__PURE__ */ r(Dr, { className: "size-4 rtl:-scale-100" })
|
|
2644
2687
|
]
|
|
2645
2688
|
}
|
|
2646
2689
|
)
|
|
2647
2690
|
] }),
|
|
2648
|
-
/* @__PURE__ */ r(
|
|
2691
|
+
/* @__PURE__ */ r(Vt, {})
|
|
2649
2692
|
]
|
|
2650
2693
|
}
|
|
2651
2694
|
)
|
|
@@ -2655,10 +2698,10 @@ function Bo() {
|
|
|
2655
2698
|
}
|
|
2656
2699
|
);
|
|
2657
2700
|
}
|
|
2658
|
-
function
|
|
2701
|
+
function Gt() {
|
|
2659
2702
|
const {
|
|
2660
2703
|
routerState: { screen: e }
|
|
2661
|
-
} =
|
|
2704
|
+
} = F();
|
|
2662
2705
|
return /* @__PURE__ */ r("div", { className: "relative bg-background size-full", children: /* @__PURE__ */ r(T, { mode: "wait", children: (() => {
|
|
2663
2706
|
switch (e) {
|
|
2664
2707
|
case "welcome":
|
|
@@ -2668,7 +2711,7 @@ function qt() {
|
|
|
2668
2711
|
fadeIn: "right",
|
|
2669
2712
|
className: "size-full",
|
|
2670
2713
|
snapExit: !0,
|
|
2671
|
-
children: /* @__PURE__ */ r(
|
|
2714
|
+
children: /* @__PURE__ */ r(Yo, {})
|
|
2672
2715
|
},
|
|
2673
2716
|
e
|
|
2674
2717
|
);
|
|
@@ -2695,15 +2738,15 @@ function qt() {
|
|
|
2695
2738
|
e
|
|
2696
2739
|
);
|
|
2697
2740
|
default:
|
|
2698
|
-
return A(e,
|
|
2741
|
+
return A(e, Gt.name), null;
|
|
2699
2742
|
}
|
|
2700
2743
|
})() }) });
|
|
2701
2744
|
}
|
|
2702
|
-
const Uo = "4.0.
|
|
2745
|
+
const Uo = "4.0.49", Xo = `<!DOCTYPE html>
|
|
2703
2746
|
<html>
|
|
2704
2747
|
<head>
|
|
2705
2748
|
<style>
|
|
2706
|
-
${
|
|
2749
|
+
${Wt}
|
|
2707
2750
|
html, body {
|
|
2708
2751
|
height: 100%;
|
|
2709
2752
|
width: 100%;
|
|
@@ -2717,8 +2760,8 @@ html, body {
|
|
|
2717
2760
|
<body>
|
|
2718
2761
|
</body>
|
|
2719
2762
|
</html>`;
|
|
2720
|
-
function
|
|
2721
|
-
const { isOpen: e } = V(), { contentIframeRef: o } =
|
|
2763
|
+
function Zt() {
|
|
2764
|
+
const { isOpen: e } = V(), { contentIframeRef: o } = E(), { cssOverrides: t, inline: n } = N(), { theme: s, cssVars: a, computed: i } = G(), { dir: l } = Z();
|
|
2722
2765
|
return /* @__PURE__ */ r(
|
|
2723
2766
|
re.div,
|
|
2724
2767
|
{
|
|
@@ -2739,7 +2782,7 @@ function Vt() {
|
|
|
2739
2782
|
}
|
|
2740
2783
|
},
|
|
2741
2784
|
children: /* @__PURE__ */ d(
|
|
2742
|
-
|
|
2785
|
+
Mt,
|
|
2743
2786
|
{
|
|
2744
2787
|
ref: o,
|
|
2745
2788
|
initialContent: Xo,
|
|
@@ -2780,7 +2823,7 @@ function Vt() {
|
|
|
2780
2823
|
zIndex: s.widgetContentContainer.zIndex
|
|
2781
2824
|
},
|
|
2782
2825
|
"data-version": Uo,
|
|
2783
|
-
className:
|
|
2826
|
+
className: m(
|
|
2784
2827
|
"antialiased font-sans size-full overflow-hidden relative text-secondary-foreground isolate"
|
|
2785
2828
|
),
|
|
2786
2829
|
dir: l,
|
|
@@ -2789,7 +2832,7 @@ function Vt() {
|
|
|
2789
2832
|
{
|
|
2790
2833
|
delayDuration: 200,
|
|
2791
2834
|
disableHoverableContent: !0,
|
|
2792
|
-
children: /* @__PURE__ */ r(Gr, { children: /* @__PURE__ */ r(
|
|
2835
|
+
children: /* @__PURE__ */ r(Gr, { children: /* @__PURE__ */ r(Gt, {}) })
|
|
2793
2836
|
}
|
|
2794
2837
|
)
|
|
2795
2838
|
}
|
|
@@ -2803,7 +2846,7 @@ function Vt() {
|
|
|
2803
2846
|
function qo() {
|
|
2804
2847
|
const { theme: e } = G();
|
|
2805
2848
|
return /* @__PURE__ */ r(
|
|
2806
|
-
|
|
2849
|
+
me.Content,
|
|
2807
2850
|
{
|
|
2808
2851
|
onInteractOutside: (o) => o.preventDefault(),
|
|
2809
2852
|
forceMount: !0,
|
|
@@ -2818,7 +2861,7 @@ function qo() {
|
|
|
2818
2861
|
sideOffset: e.widgetContentContainer.offset.side,
|
|
2819
2862
|
alignOffset: e.widgetContentContainer.offset.align,
|
|
2820
2863
|
avoidCollisions: !1,
|
|
2821
|
-
children: /* @__PURE__ */ r(
|
|
2864
|
+
children: /* @__PURE__ */ r(Zt, {})
|
|
2822
2865
|
}
|
|
2823
2866
|
);
|
|
2824
2867
|
}
|
|
@@ -2834,7 +2877,7 @@ function Vo({
|
|
|
2834
2877
|
viewBox: "0 0 32 30",
|
|
2835
2878
|
fill: "none",
|
|
2836
2879
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2837
|
-
className:
|
|
2880
|
+
className: m("text-primary-foreground", e),
|
|
2838
2881
|
style: o,
|
|
2839
2882
|
children: [
|
|
2840
2883
|
/* @__PURE__ */ r(
|
|
@@ -2861,7 +2904,7 @@ const Go = `<!DOCTYPE html>
|
|
|
2861
2904
|
<html>
|
|
2862
2905
|
<head>
|
|
2863
2906
|
<style>
|
|
2864
|
-
${
|
|
2907
|
+
${Wt}
|
|
2865
2908
|
html, body {
|
|
2866
2909
|
height: 100%;
|
|
2867
2910
|
width: 100%;
|
|
@@ -2882,7 +2925,7 @@ function Zo() {
|
|
|
2882
2925
|
isOpen: e,
|
|
2883
2926
|
setIsOpen: (p) => o(p)
|
|
2884
2927
|
}) : /* @__PURE__ */ d(
|
|
2885
|
-
|
|
2928
|
+
Mt,
|
|
2886
2929
|
{
|
|
2887
2930
|
initialContent: Go,
|
|
2888
2931
|
title: "OpenCX Live Chat Trigger",
|
|
@@ -2915,20 +2958,20 @@ function Zo() {
|
|
|
2915
2958
|
justifyContent: "center"
|
|
2916
2959
|
},
|
|
2917
2960
|
children: /* @__PURE__ */ r(
|
|
2918
|
-
|
|
2961
|
+
me.PopoverTrigger,
|
|
2919
2962
|
{
|
|
2920
|
-
className:
|
|
2963
|
+
className: m(
|
|
2921
2964
|
"font-sans flex items-center justify-center rounded-full"
|
|
2922
2965
|
),
|
|
2923
2966
|
style: {
|
|
2924
2967
|
height: a.widgetTrigger.size.button,
|
|
2925
2968
|
width: a.widgetTrigger.size.button
|
|
2926
2969
|
},
|
|
2927
|
-
children: /* @__PURE__ */ r(
|
|
2970
|
+
children: /* @__PURE__ */ r(B, { children: /* @__PURE__ */ r(
|
|
2928
2971
|
"div",
|
|
2929
2972
|
{
|
|
2930
2973
|
...g("trigger/btn"),
|
|
2931
|
-
className:
|
|
2974
|
+
className: m(
|
|
2932
2975
|
"relative size-full rounded-full",
|
|
2933
2976
|
"flex items-center justify-center",
|
|
2934
2977
|
"overflow-hidden",
|
|
@@ -2956,7 +2999,7 @@ function Zo() {
|
|
|
2956
2999
|
}
|
|
2957
3000
|
}
|
|
2958
3001
|
) : /* @__PURE__ */ r(
|
|
2959
|
-
|
|
3002
|
+
Rr,
|
|
2960
3003
|
{
|
|
2961
3004
|
style: {
|
|
2962
3005
|
width: a.widgetTrigger.size.icon,
|
|
@@ -3010,7 +3053,7 @@ function Zo() {
|
|
|
3010
3053
|
function Ko() {
|
|
3011
3054
|
const { dir: e } = ye();
|
|
3012
3055
|
return /* @__PURE__ */ r(
|
|
3013
|
-
|
|
3056
|
+
me.Anchor,
|
|
3014
3057
|
{
|
|
3015
3058
|
style: {
|
|
3016
3059
|
position: "fixed",
|
|
@@ -3024,10 +3067,10 @@ function Ko() {
|
|
|
3024
3067
|
function Qo({
|
|
3025
3068
|
widgetRef: e
|
|
3026
3069
|
}) {
|
|
3027
|
-
const { widgetCtx: o } =
|
|
3070
|
+
const { widgetCtx: o } = E(), { contactState: t } = zt(), { setIsOpen: n, isOpen: s } = V(), {
|
|
3028
3071
|
toChatScreen: a,
|
|
3029
3072
|
routerState: { screen: i }
|
|
3030
|
-
} =
|
|
3073
|
+
} = F(), { sendMessage: l } = O();
|
|
3031
3074
|
return W.useImperativeHandle(
|
|
3032
3075
|
e,
|
|
3033
3076
|
() => ({
|
|
@@ -3053,7 +3096,7 @@ function Qo({
|
|
|
3053
3096
|
}
|
|
3054
3097
|
function Jo() {
|
|
3055
3098
|
const { isOpen: e, setIsOpen: o } = V();
|
|
3056
|
-
return /* @__PURE__ */ d(
|
|
3099
|
+
return /* @__PURE__ */ d(me.Root, { open: e, onOpenChange: o, children: [
|
|
3057
3100
|
/* @__PURE__ */ r(Ko, {}),
|
|
3058
3101
|
/* @__PURE__ */ r(Zo, {}),
|
|
3059
3102
|
/* @__PURE__ */ r(qo, {})
|
|
@@ -3086,15 +3129,15 @@ const en = [
|
|
|
3086
3129
|
}
|
|
3087
3130
|
}, rn = W.forwardRef(function({ options: o, components: t = [], loadingComponent: n }, s) {
|
|
3088
3131
|
return /* @__PURE__ */ r(
|
|
3089
|
-
|
|
3132
|
+
tr,
|
|
3090
3133
|
{
|
|
3091
3134
|
components: [...en, ...t],
|
|
3092
3135
|
options: o,
|
|
3093
3136
|
storage: tn,
|
|
3094
3137
|
loadingComponent: n,
|
|
3095
|
-
children: /* @__PURE__ */ d(
|
|
3138
|
+
children: /* @__PURE__ */ d(rr, { children: [
|
|
3096
3139
|
/* @__PURE__ */ r(Qo, { widgetRef: s }),
|
|
3097
|
-
o.inline ? /* @__PURE__ */ r(
|
|
3140
|
+
o.inline ? /* @__PURE__ */ r(Zt, {}) : /* @__PURE__ */ r(Jo, {})
|
|
3098
3141
|
] })
|
|
3099
3142
|
}
|
|
3100
3143
|
);
|