@opencx/widget-react 4.0.59 → 4.0.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +15 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +614 -609
- package/dist/index.js.map +1 -1
- package/dist/src/WidgetPopoverContent.d.ts.map +1 -1
- package/dist/src/hooks/useTheme.d.ts +1 -0
- package/dist/src/hooks/useTheme.d.ts.map +1 -1
- package/dist/src/utils/__tests__/resolve-trigger-side.spec.d.ts +2 -0
- package/dist/src/utils/__tests__/resolve-trigger-side.spec.d.ts.map +1 -0
- package/dist/src/utils/resolve-trigger-side.d.ts +15 -0
- package/dist/src/utils/resolve-trigger-side.d.ts.map +1 -0
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { jsx as r, jsxs as d, Fragment as J } from "react/jsx-runtime";
|
|
2
2
|
import * as me from "@radix-ui/react-popover";
|
|
3
3
|
import * as ee from "react";
|
|
4
|
-
import L, { memo as
|
|
5
|
-
import { useWidget as A, useConfig as z, useSessions as U, useMessages as O, useWidgetRouter as H, useDocumentDir as ke, useWidgetTrigger as
|
|
6
|
-
import { X as
|
|
7
|
-
import { clsx as
|
|
8
|
-
import { twMerge as
|
|
4
|
+
import L, { memo as sr, forwardRef as zt, useState as P, cloneElement as Nt, createContext as ar, useEffect as se, useContext as ir, useRef as B, useCallback as Z, useMemo as St, createElement as pt } from "react";
|
|
5
|
+
import { useWidget as A, useConfig as z, useSessions as U, useMessages as O, useWidgetRouter as H, useDocumentDir as ke, useWidgetTrigger as K, useModes as _t, useCsat as It, useUploadFiles as lr, useIsAwaitingBotReply as Tt, useContact as Mt, WidgetProvider as cr, WidgetTriggerProvider as dr } from "@opencx/widget-react-headless";
|
|
6
|
+
import { X as pr, ZoomOut as mr, ZoomIn as hr, RotateCcw as gr, FileText as Dt, FileSpreadsheet as Et, CircleDashedIcon as ur, XIcon as Ce, SquareXIcon as wr, SquareCheckBigIcon as fr, SquareCheckIcon as xr, ShrinkIcon as vr, Minimize2Icon as br, MinimizeIcon as yr, Maximize2Icon as kr, MaximizeIcon as Cr, ExpandIcon as zr, CircleXIcon as Nr, CircleCheckBigIcon as Sr, CircleCheckIcon as Rt, CheckCheckIcon as _r, CheckIcon as Ir, ChevronLeftIcon as Tr, LoaderIcon as Mr, ArrowUpIcon as Pt, PaperclipIcon as mt, CircleDashed as Dr, AlertCircle as Er, Loader2 as Rr, FileAudio2Icon as Pr, FileVideo2Icon as jr, FileIcon as Ar, UserRoundIcon as Or, ChevronRightIcon as Fr, SendHorizontal as Hr, ChevronDownIcon as Wr } from "lucide-react";
|
|
7
|
+
import { clsx as Lr } from "clsx";
|
|
8
|
+
import { twMerge as $r } from "tailwind-merge";
|
|
9
9
|
import { motion as re, AnimatePresence as D } from "framer-motion";
|
|
10
|
-
import { Slot as
|
|
11
|
-
import { cva as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { isExhaustive as F, isSupportedLanguage as
|
|
10
|
+
import { Slot as Br } from "@radix-ui/react-slot";
|
|
11
|
+
import { cva as Yr } from "class-variance-authority";
|
|
12
|
+
import jt from "remark-gfm";
|
|
13
|
+
import Ur from "react-markdown";
|
|
14
|
+
import At from "rehype-raw";
|
|
15
|
+
import { isExhaustive as F, isSupportedLanguage as Xr, getTranslation as qr } from "@opencx/widget-core";
|
|
16
16
|
import * as te from "@radix-ui/react-avatar";
|
|
17
|
-
import
|
|
17
|
+
import Ot from "@uiw/react-iframe";
|
|
18
18
|
import * as ae from "@radix-ui/react-tooltip";
|
|
19
|
-
import
|
|
20
|
-
import { useDropzone as
|
|
21
|
-
import
|
|
19
|
+
import ht from "tinycolor2";
|
|
20
|
+
import { useDropzone as Vr } from "react-dropzone";
|
|
21
|
+
import Gr from "react-use/lib/useAsyncFn";
|
|
22
22
|
import { z as ue } from "zod";
|
|
23
|
-
function
|
|
23
|
+
function x(e) {
|
|
24
24
|
return { "data-component": e };
|
|
25
25
|
}
|
|
26
26
|
const fe = [
|
|
@@ -39,16 +39,16 @@ const fe = [
|
|
|
39
39
|
],
|
|
40
40
|
extensions: ["xls", "xlsx"]
|
|
41
41
|
}
|
|
42
|
-
],
|
|
42
|
+
], gt = Object.fromEntries(
|
|
43
43
|
fe.flatMap(
|
|
44
44
|
(e) => e.mimes.map((o) => [o, e.extensions.map((t) => `.${t}`)])
|
|
45
45
|
)
|
|
46
|
-
),
|
|
46
|
+
), ut = {
|
|
47
47
|
"video/mp4": [".mp4"],
|
|
48
48
|
"video/webm": [".webm"],
|
|
49
49
|
"video/quicktime": [".mov"]
|
|
50
50
|
};
|
|
51
|
-
function
|
|
51
|
+
function Ft({
|
|
52
52
|
type: e,
|
|
53
53
|
name: o
|
|
54
54
|
}) {
|
|
@@ -56,50 +56,50 @@ function At({
|
|
|
56
56
|
const t = ((s = o.split(".").pop()) == null ? void 0 : s.toLowerCase()) ?? "", n = ((i = e.toLowerCase().split(";")[0]) == null ? void 0 : i.trim()) ?? "";
|
|
57
57
|
return fe.find((a) => t && a.extensions.includes(t)) ?? fe.find((a) => n && a.mimes.includes(n)) ?? null;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
return
|
|
59
|
+
function p(...e) {
|
|
60
|
+
return $r(Lr(e));
|
|
61
61
|
}
|
|
62
62
|
const Q = {
|
|
63
63
|
x: 2,
|
|
64
64
|
y: 2
|
|
65
|
-
}, Y =
|
|
66
|
-
|
|
65
|
+
}, Y = sr(
|
|
66
|
+
zt(
|
|
67
67
|
({ children: e, className: o, scale: t = 1.02, off: n = !1 }, s) => {
|
|
68
68
|
const [i, a] = P(!1), [l, c] = P({ x: 0, y: 0 });
|
|
69
69
|
if (n || /translate/.test(
|
|
70
70
|
e.props.className || ""
|
|
71
71
|
)) return e;
|
|
72
|
-
const
|
|
73
|
-
var R,
|
|
74
|
-
const { clientX: C, clientY: T } =
|
|
72
|
+
const h = (v) => {
|
|
73
|
+
var R, u;
|
|
74
|
+
const { clientX: C, clientY: T } = v, b = v.currentTarget.getBoundingClientRect(), N = C - (b.left + b.width / 2), _ = T - (b.top + b.height / 2), E = Math.max(
|
|
75
75
|
-1,
|
|
76
|
-
Math.min(1, N / (
|
|
77
|
-
),
|
|
76
|
+
Math.min(1, N / (b.width / 2))
|
|
77
|
+
), f = Math.max(
|
|
78
78
|
-1,
|
|
79
|
-
Math.min(1, _ / (
|
|
80
|
-
), M = E * Q.x, j =
|
|
81
|
-
c({ x: M, y: j }), (
|
|
82
|
-
},
|
|
83
|
-
var
|
|
84
|
-
a(!0), (C = (
|
|
85
|
-
},
|
|
86
|
-
var
|
|
87
|
-
a(!1), c({ x: 0, y: 0 }), (C = (
|
|
88
|
-
},
|
|
79
|
+
Math.min(1, _ / (b.height / 2))
|
|
80
|
+
), M = E * Q.x, j = f * Q.y;
|
|
81
|
+
c({ x: M, y: j }), (u = (R = e.props).onMouseMove) == null || u.call(R, v);
|
|
82
|
+
}, y = () => {
|
|
83
|
+
var v, C;
|
|
84
|
+
a(!0), (C = (v = e.props).onMouseEnter) == null || C.call(v);
|
|
85
|
+
}, w = () => {
|
|
86
|
+
var v, C;
|
|
87
|
+
a(!1), c({ x: 0, y: 0 }), (C = (v = e.props).onMouseLeave) == null || C.call(v);
|
|
88
|
+
}, g = {
|
|
89
89
|
"--wobble-x": i ? `${l.x}px` : "0px",
|
|
90
90
|
"--wobble-y": i ? `${l.y}px` : "0px",
|
|
91
91
|
"--scale": 1 - (t - 1)
|
|
92
92
|
};
|
|
93
|
-
return
|
|
93
|
+
return Nt(e, {
|
|
94
94
|
ref: s,
|
|
95
|
-
onMouseMove:
|
|
96
|
-
onMouseEnter:
|
|
97
|
-
onMouseLeave:
|
|
95
|
+
onMouseMove: h,
|
|
96
|
+
onMouseEnter: y,
|
|
97
|
+
onMouseLeave: w,
|
|
98
98
|
style: {
|
|
99
|
-
...
|
|
99
|
+
...g,
|
|
100
100
|
...e.props.style
|
|
101
101
|
},
|
|
102
|
-
className:
|
|
102
|
+
className: p(
|
|
103
103
|
"translate-x-[var(--wobble-x)]",
|
|
104
104
|
"translate-y-[var(--wobble-y)]",
|
|
105
105
|
"hover:scale-[var(--scale)] active:hover:scale-[calc(var(--scale)-0.02)]",
|
|
@@ -112,44 +112,44 @@ const Q = {
|
|
|
112
112
|
)
|
|
113
113
|
);
|
|
114
114
|
Y.displayName = "Wobble";
|
|
115
|
-
const
|
|
115
|
+
const Zr = 10, Kr = (e, o, t) => ({
|
|
116
116
|
initial: { opacity: 0, x: -e, ...o.initial },
|
|
117
117
|
animate: { opacity: 1, x: 0, ...o.animate, transition: { delay: t } },
|
|
118
118
|
exit: { opacity: 0, x: e, ...o.exit }
|
|
119
|
-
}),
|
|
119
|
+
}), Qr = (e, o, t) => ({
|
|
120
120
|
initial: { opacity: 0, x: e, ...o.initial },
|
|
121
121
|
animate: { opacity: 1, x: 0, ...o.animate, transition: { delay: t } },
|
|
122
122
|
exit: { opacity: 0, x: -e, ...o.exit }
|
|
123
|
-
}),
|
|
123
|
+
}), Jr = (e, o, t) => ({
|
|
124
124
|
initial: { opacity: 0, y: e, ...o.initial },
|
|
125
125
|
animate: { opacity: 1, y: 0, ...o.animate, transition: { delay: t } },
|
|
126
126
|
exit: { opacity: 0, y: -e, ...o.exit }
|
|
127
|
-
}),
|
|
127
|
+
}), eo = (e, o, t) => ({
|
|
128
128
|
initial: { opacity: 0, y: -e, ...o.initial },
|
|
129
129
|
animate: { opacity: 1, y: 0, ...o.animate, transition: { delay: t } },
|
|
130
130
|
exit: { opacity: 0, y: e, ...o.exit }
|
|
131
|
-
}),
|
|
132
|
-
right:
|
|
133
|
-
left:
|
|
134
|
-
up:
|
|
135
|
-
down:
|
|
136
|
-
}, k =
|
|
131
|
+
}), to = {
|
|
132
|
+
right: Kr,
|
|
133
|
+
left: Qr,
|
|
134
|
+
up: Jr,
|
|
135
|
+
down: eo
|
|
136
|
+
}, k = zt(
|
|
137
137
|
({
|
|
138
138
|
fadeIn: e = "down",
|
|
139
|
-
distance: o =
|
|
139
|
+
distance: o = Zr,
|
|
140
140
|
children: t,
|
|
141
141
|
snapExit: n = !1,
|
|
142
142
|
overrides: s = {},
|
|
143
143
|
delay: i = 0,
|
|
144
144
|
...a
|
|
145
145
|
}, l) => {
|
|
146
|
-
const c = e ?
|
|
146
|
+
const c = e ? to[e](o, s, i) : {};
|
|
147
147
|
return n && c.exit && typeof c.exit == "object" && !Array.isArray(c.exit) && (c.exit.transition = { duration: 0 }), /* @__PURE__ */ r(re.div, { ref: l, ...a, ...c, children: t });
|
|
148
148
|
}
|
|
149
149
|
);
|
|
150
150
|
k.displayName = "MotionDiv";
|
|
151
|
-
const
|
|
152
|
-
|
|
151
|
+
const ro = Yr(
|
|
152
|
+
p(
|
|
153
153
|
"inline-flex shrink-0 items-center justify-center gap-2",
|
|
154
154
|
"text-sm font-medium whitespace-nowrap",
|
|
155
155
|
"ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
@@ -189,18 +189,18 @@ const eo = $r(
|
|
|
189
189
|
}
|
|
190
190
|
), S = ee.forwardRef(
|
|
191
191
|
({ className: e, variant: o = "default", size: t, asChild: n = !1, ...s }, i) => /* @__PURE__ */ r(Y, { ref: i, children: /* @__PURE__ */ r(
|
|
192
|
-
n ?
|
|
192
|
+
n ? Br : "button",
|
|
193
193
|
{
|
|
194
|
-
...
|
|
194
|
+
...x("ui_lib/btn"),
|
|
195
195
|
"data-variant": o,
|
|
196
|
-
className:
|
|
196
|
+
className: p(ro({ variant: o, size: t, className: e })),
|
|
197
197
|
...s
|
|
198
198
|
}
|
|
199
199
|
) })
|
|
200
200
|
);
|
|
201
201
|
S.displayName = "Button";
|
|
202
|
-
const
|
|
203
|
-
function
|
|
202
|
+
const Ht = ar(null);
|
|
203
|
+
function oo({ children: e }) {
|
|
204
204
|
const [o, t] = P(!1), [n, s] = P(null), i = (l) => {
|
|
205
205
|
s(l), t(!0);
|
|
206
206
|
}, a = () => {
|
|
@@ -209,18 +209,18 @@ function to({ children: e }) {
|
|
|
209
209
|
}, 200);
|
|
210
210
|
};
|
|
211
211
|
return /* @__PURE__ */ d(
|
|
212
|
-
|
|
212
|
+
Ht.Provider,
|
|
213
213
|
{
|
|
214
214
|
value: { open: i, close: a, isOpen: o, content: n },
|
|
215
215
|
children: [
|
|
216
|
-
/* @__PURE__ */ r(
|
|
216
|
+
/* @__PURE__ */ r(no, {}),
|
|
217
217
|
e
|
|
218
218
|
]
|
|
219
219
|
}
|
|
220
220
|
);
|
|
221
221
|
}
|
|
222
222
|
function he() {
|
|
223
|
-
const e =
|
|
223
|
+
const e = ir(Ht);
|
|
224
224
|
return e || (console.error("useDialoger must be used within a DialogerProvider"), {
|
|
225
225
|
open: () => {
|
|
226
226
|
},
|
|
@@ -230,7 +230,7 @@ function he() {
|
|
|
230
230
|
content: null
|
|
231
231
|
});
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function no() {
|
|
234
234
|
const { contentIframeRef: e } = A(), { isOpen: o, content: t, close: n } = he();
|
|
235
235
|
return se(() => {
|
|
236
236
|
var i, a;
|
|
@@ -271,7 +271,7 @@ function ze({
|
|
|
271
271
|
return /* @__PURE__ */ d(
|
|
272
272
|
"div",
|
|
273
273
|
{
|
|
274
|
-
className:
|
|
274
|
+
className: p(
|
|
275
275
|
"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",
|
|
276
276
|
o
|
|
277
277
|
),
|
|
@@ -285,7 +285,7 @@ function ze({
|
|
|
285
285
|
className: "rounded-full absolute top-4 right-4 opacity-50 hover:opacity-100",
|
|
286
286
|
onClick: n,
|
|
287
287
|
children: [
|
|
288
|
-
/* @__PURE__ */ r(
|
|
288
|
+
/* @__PURE__ */ r(pr, { className: "h-4 w-4" }),
|
|
289
289
|
/* @__PURE__ */ r("span", { className: "sr-only", children: "Close" })
|
|
290
290
|
]
|
|
291
291
|
}
|
|
@@ -294,68 +294,68 @@ function ze({
|
|
|
294
294
|
}
|
|
295
295
|
);
|
|
296
296
|
}
|
|
297
|
-
const
|
|
297
|
+
const Wt = ({
|
|
298
298
|
className: e,
|
|
299
299
|
...o
|
|
300
300
|
}) => /* @__PURE__ */ r(
|
|
301
301
|
"div",
|
|
302
302
|
{
|
|
303
|
-
className:
|
|
303
|
+
className: p("flex flex-col gap-2 text-center pt-2", e),
|
|
304
304
|
...o
|
|
305
305
|
}
|
|
306
306
|
);
|
|
307
|
-
|
|
308
|
-
const
|
|
307
|
+
Wt.displayName = "DialogerHeader";
|
|
308
|
+
const Lt = ({
|
|
309
309
|
className: e,
|
|
310
310
|
...o
|
|
311
311
|
}) => /* @__PURE__ */ r(
|
|
312
312
|
"div",
|
|
313
313
|
{
|
|
314
|
-
className:
|
|
314
|
+
className: p("flex flex-col gap-2 text-center", e),
|
|
315
315
|
...o
|
|
316
316
|
}
|
|
317
317
|
);
|
|
318
|
-
|
|
319
|
-
const
|
|
318
|
+
Lt.displayName = "DialogerBody";
|
|
319
|
+
const $t = ({
|
|
320
320
|
className: e,
|
|
321
321
|
...o
|
|
322
|
-
}) => /* @__PURE__ */ r("div", { className:
|
|
323
|
-
|
|
324
|
-
const
|
|
322
|
+
}) => /* @__PURE__ */ r("div", { className: p("flex flex-col gap-2", e), ...o });
|
|
323
|
+
$t.displayName = "DialogerFooter";
|
|
324
|
+
const Bt = L.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
325
325
|
"p",
|
|
326
326
|
{
|
|
327
327
|
ref: t,
|
|
328
|
-
className:
|
|
328
|
+
className: p(
|
|
329
329
|
"text-lg font-semibold leading-none tracking-tight",
|
|
330
330
|
e
|
|
331
331
|
),
|
|
332
332
|
...o
|
|
333
333
|
}
|
|
334
334
|
));
|
|
335
|
-
|
|
336
|
-
const
|
|
335
|
+
Bt.displayName = "DialogerTitle";
|
|
336
|
+
const Yt = L.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
337
337
|
"p",
|
|
338
338
|
{
|
|
339
339
|
ref: t,
|
|
340
|
-
className:
|
|
340
|
+
className: p("text-sm text-muted-foreground", e),
|
|
341
341
|
...o
|
|
342
342
|
}
|
|
343
343
|
));
|
|
344
|
-
|
|
344
|
+
Yt.displayName = "DialogerDescription";
|
|
345
345
|
function Ne({
|
|
346
346
|
children: e,
|
|
347
347
|
trigger: o
|
|
348
348
|
}) {
|
|
349
349
|
const { open: t } = he();
|
|
350
|
-
return
|
|
350
|
+
return Nt(o, {
|
|
351
351
|
onClick: () => {
|
|
352
352
|
var s, i;
|
|
353
353
|
t(e), (i = (s = o.props).onClick) == null || i.call(s);
|
|
354
354
|
}
|
|
355
355
|
});
|
|
356
356
|
}
|
|
357
|
-
const
|
|
358
|
-
function
|
|
357
|
+
const wt = 1, ft = 5, le = 0.5, so = 2.5;
|
|
358
|
+
function ao(e, o, t, n) {
|
|
359
359
|
if (!t || !n || o <= 1) return { x: 0, y: 0 };
|
|
360
360
|
const s = t.getBoundingClientRect(), i = n.offsetWidth, a = n.offsetHeight, l = Math.max(0, (i * o - s.width) / (2 * o)), c = Math.max(
|
|
361
361
|
0,
|
|
@@ -366,66 +366,66 @@ function no(e, o, t, n) {
|
|
|
366
366
|
y: Math.min(c, Math.max(-c, e.y))
|
|
367
367
|
};
|
|
368
368
|
}
|
|
369
|
-
function
|
|
369
|
+
function Ut({
|
|
370
370
|
src: e,
|
|
371
371
|
alt: o
|
|
372
372
|
}) {
|
|
373
|
-
const [t, n] = P(1), [s, i] = P({ x: 0, y: 0 }), [a, l] = P(!1), c = B({ x: 0, y: 0 }),
|
|
373
|
+
const [t, n] = P(1), [s, i] = P({ x: 0, y: 0 }), [a, l] = P(!1), c = B({ x: 0, y: 0 }), m = B({ x: 0, y: 0 }), h = B(null), y = B(null), w = B(!1), g = (f) => Math.min(ft, Math.max(wt, f)), v = Z(() => {
|
|
374
374
|
n(1), i({ x: 0, y: 0 });
|
|
375
|
-
}, []), C =
|
|
376
|
-
n((
|
|
377
|
-
}, []), T =
|
|
378
|
-
n((
|
|
379
|
-
const M =
|
|
375
|
+
}, []), C = Z(() => {
|
|
376
|
+
n((f) => g(f + le));
|
|
377
|
+
}, []), T = Z(() => {
|
|
378
|
+
n((f) => {
|
|
379
|
+
const M = g(f - le);
|
|
380
380
|
return M <= 1 && i({ x: 0, y: 0 }), M;
|
|
381
381
|
});
|
|
382
382
|
}, []);
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
const M =
|
|
383
|
+
Z((f) => {
|
|
384
|
+
f.preventDefault(), f.stopPropagation();
|
|
385
|
+
const M = f.deltaY > 0 ? -le : le;
|
|
386
386
|
n((j) => {
|
|
387
|
-
const R =
|
|
387
|
+
const R = g(j + M);
|
|
388
388
|
return R <= 1 && i({ x: 0, y: 0 }), R;
|
|
389
389
|
});
|
|
390
390
|
}, []);
|
|
391
|
-
const
|
|
392
|
-
(
|
|
393
|
-
|
|
391
|
+
const b = Z(
|
|
392
|
+
(f) => {
|
|
393
|
+
f.preventDefault(), w.current = !1, l(!0), c.current = { x: f.clientX, y: f.clientY }, m.current = { ...s }, f.target.setPointerCapture(f.pointerId);
|
|
394
394
|
},
|
|
395
395
|
[s]
|
|
396
|
-
), N =
|
|
397
|
-
(
|
|
396
|
+
), N = Z(
|
|
397
|
+
(f) => {
|
|
398
398
|
if (!a) return;
|
|
399
|
-
const M =
|
|
400
|
-
if ((Math.abs(M) > 3 || Math.abs(j) > 3) && (
|
|
399
|
+
const M = f.clientX - c.current.x, j = f.clientY - c.current.y;
|
|
400
|
+
if ((Math.abs(M) > 3 || Math.abs(j) > 3) && (w.current = !0), t <= 1) return;
|
|
401
401
|
const R = {
|
|
402
|
-
x:
|
|
403
|
-
y:
|
|
402
|
+
x: m.current.x + M / t,
|
|
403
|
+
y: m.current.y + j / t
|
|
404
404
|
};
|
|
405
405
|
i(
|
|
406
|
-
|
|
406
|
+
ao(R, t, h.current, y.current)
|
|
407
407
|
);
|
|
408
408
|
},
|
|
409
409
|
[a, t]
|
|
410
|
-
), _ =
|
|
411
|
-
const
|
|
412
|
-
l(!1), !
|
|
410
|
+
), _ = Z(() => {
|
|
411
|
+
const f = w.current;
|
|
412
|
+
l(!1), !f && n((M) => M > 1 ? (i({ x: 0, y: 0 }), 1) : so);
|
|
413
413
|
}, []), E = t > 1;
|
|
414
414
|
return /* @__PURE__ */ d(
|
|
415
415
|
"div",
|
|
416
416
|
{
|
|
417
417
|
className: "relative size-full flex items-center justify-center select-none",
|
|
418
|
-
onClick: (
|
|
418
|
+
onClick: (f) => f.stopPropagation(),
|
|
419
419
|
children: [
|
|
420
420
|
/* @__PURE__ */ r(
|
|
421
421
|
"div",
|
|
422
422
|
{
|
|
423
|
-
ref:
|
|
424
|
-
className:
|
|
423
|
+
ref: h,
|
|
424
|
+
className: p(
|
|
425
425
|
"overflow-hidden max-h-full max-w-full rounded-2xl flex items-center justify-center",
|
|
426
426
|
E && "size-full"
|
|
427
427
|
),
|
|
428
|
-
onPointerDown:
|
|
428
|
+
onPointerDown: b,
|
|
429
429
|
onPointerMove: N,
|
|
430
430
|
onPointerUp: _,
|
|
431
431
|
onPointerCancel: _,
|
|
@@ -436,7 +436,7 @@ function Bt({
|
|
|
436
436
|
children: /* @__PURE__ */ r(
|
|
437
437
|
"img",
|
|
438
438
|
{
|
|
439
|
-
ref:
|
|
439
|
+
ref: y,
|
|
440
440
|
src: e,
|
|
441
441
|
alt: o,
|
|
442
442
|
className: "block max-w-full object-contain pointer-events-none",
|
|
@@ -452,15 +452,15 @@ function Bt({
|
|
|
452
452
|
}
|
|
453
453
|
),
|
|
454
454
|
/* @__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: [
|
|
455
|
-
/* @__PURE__ */ r(we, { onClick: T, label: "Zoom out", disabled: t <=
|
|
455
|
+
/* @__PURE__ */ r(we, { onClick: T, label: "Zoom out", disabled: t <= wt, children: /* @__PURE__ */ r(mr, { className: "size-3.5" }) }),
|
|
456
456
|
/* @__PURE__ */ d("span", { className: "text-white text-xs font-medium min-w-[3ch] text-center tabular-nums", children: [
|
|
457
457
|
Math.round(t * 100),
|
|
458
458
|
"%"
|
|
459
459
|
] }),
|
|
460
|
-
/* @__PURE__ */ r(we, { onClick: C, label: "Zoom in", disabled: t >=
|
|
460
|
+
/* @__PURE__ */ r(we, { onClick: C, label: "Zoom in", disabled: t >= ft, children: /* @__PURE__ */ r(hr, { className: "size-3.5" }) }),
|
|
461
461
|
E && /* @__PURE__ */ d(J, { children: [
|
|
462
462
|
/* @__PURE__ */ r("div", { className: "w-px h-4 bg-white/30 mx-0.5" }),
|
|
463
|
-
/* @__PURE__ */ r(we, { onClick:
|
|
463
|
+
/* @__PURE__ */ r(we, { onClick: v, label: "Reset zoom", children: /* @__PURE__ */ r(gr, { className: "size-3.5" }) })
|
|
464
464
|
] })
|
|
465
465
|
] })
|
|
466
466
|
]
|
|
@@ -484,7 +484,7 @@ function we({
|
|
|
484
484
|
}
|
|
485
485
|
);
|
|
486
486
|
}
|
|
487
|
-
function
|
|
487
|
+
function xt({
|
|
488
488
|
url: e,
|
|
489
489
|
name: o,
|
|
490
490
|
size: t,
|
|
@@ -497,7 +497,7 @@ function wt({
|
|
|
497
497
|
href: e,
|
|
498
498
|
target: "_blank",
|
|
499
499
|
rel: "noopener noreferrer",
|
|
500
|
-
className:
|
|
500
|
+
className: p(
|
|
501
501
|
"block size-fit max-w-[min(100%,16rem)] shrink-0 rounded-2xl border",
|
|
502
502
|
"bg-background/80 transition-colors hover:bg-accent/60",
|
|
503
503
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
|
|
@@ -506,7 +506,7 @@ function wt({
|
|
|
506
506
|
/* @__PURE__ */ r(
|
|
507
507
|
"div",
|
|
508
508
|
{
|
|
509
|
-
className:
|
|
509
|
+
className: p(
|
|
510
510
|
"flex size-10 shrink-0 items-center justify-center rounded-xl",
|
|
511
511
|
"bg-secondary text-muted-foreground"
|
|
512
512
|
),
|
|
@@ -518,7 +518,7 @@ function wt({
|
|
|
518
518
|
/* @__PURE__ */ r(
|
|
519
519
|
"span",
|
|
520
520
|
{
|
|
521
|
-
className:
|
|
521
|
+
className: p(
|
|
522
522
|
"text-xs font-medium text-foreground line-clamp-1",
|
|
523
523
|
"break-words [word-break:break-word]"
|
|
524
524
|
// `[word-break:break-word]` is deprecated but works in the browser, while `break-words` which is `[overflow-wrap: break-word]` does not work
|
|
@@ -536,7 +536,7 @@ function wt({
|
|
|
536
536
|
}
|
|
537
537
|
) });
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function Xt({ attachment: e }) {
|
|
540
540
|
const { name: o, size: t, type: n, url: s } = e, i = n.startsWith("image/"), a = n.startsWith("video/"), l = n.startsWith("audio/"), c = n === "application/pdf";
|
|
541
541
|
if (l)
|
|
542
542
|
return /* @__PURE__ */ r(Y, { children: /* @__PURE__ */ r("div", { className: "w-full shrink-0 overflow-hidden", children: /* @__PURE__ */ d("audio", { controls: !0, className: "w-full", children: [
|
|
@@ -558,31 +558,31 @@ function Yt({ attachment: e }) {
|
|
|
558
558
|
{
|
|
559
559
|
className: "size-full max-w-full rounded-3xl flex items-center justify-center bg-transparent border-none gap-0",
|
|
560
560
|
withClose: !0,
|
|
561
|
-
children: /* @__PURE__ */ r(
|
|
561
|
+
children: /* @__PURE__ */ r(Ut, { src: s, alt: o })
|
|
562
562
|
}
|
|
563
563
|
)
|
|
564
564
|
}
|
|
565
565
|
);
|
|
566
566
|
if (c)
|
|
567
567
|
return /* @__PURE__ */ r(
|
|
568
|
-
|
|
568
|
+
xt,
|
|
569
569
|
{
|
|
570
570
|
url: s,
|
|
571
571
|
name: o,
|
|
572
572
|
size: t,
|
|
573
|
-
icon: /* @__PURE__ */ r(
|
|
573
|
+
icon: /* @__PURE__ */ r(Dt, { className: "size-5", strokeWidth: 1.75 }),
|
|
574
574
|
label: "PDF"
|
|
575
575
|
}
|
|
576
576
|
);
|
|
577
|
-
const
|
|
578
|
-
return
|
|
579
|
-
|
|
577
|
+
const m = Ft({ type: n, name: o });
|
|
578
|
+
return m ? /* @__PURE__ */ r(
|
|
579
|
+
xt,
|
|
580
580
|
{
|
|
581
581
|
url: s,
|
|
582
582
|
name: o,
|
|
583
583
|
size: t,
|
|
584
|
-
icon: /* @__PURE__ */ r(
|
|
585
|
-
label:
|
|
584
|
+
icon: /* @__PURE__ */ r(Et, { className: "size-5", strokeWidth: 1.75 }),
|
|
585
|
+
label: m.label
|
|
586
586
|
}
|
|
587
587
|
) : /* @__PURE__ */ r(Y, { 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: [
|
|
588
588
|
/* @__PURE__ */ r(
|
|
@@ -591,7 +591,7 @@ function Yt({ attachment: e }) {
|
|
|
591
591
|
href: s,
|
|
592
592
|
target: "_blank",
|
|
593
593
|
rel: "noopener noreferrer",
|
|
594
|
-
className:
|
|
594
|
+
className: p(
|
|
595
595
|
"text-xs text-blue-500 line-clamp-2 underline hover:text-blue-600",
|
|
596
596
|
"break-words [word-break:break-word]"
|
|
597
597
|
// `[word-break:break-word]` is deprecated but works in the browser, while `break-words` which is `[overflow-wrap: break-word]` does not work
|
|
@@ -605,8 +605,8 @@ function Yt({ attachment: e }) {
|
|
|
605
605
|
] })
|
|
606
606
|
] }) }) });
|
|
607
607
|
}
|
|
608
|
-
const
|
|
609
|
-
|
|
608
|
+
const qt = L.memo(
|
|
609
|
+
Ur,
|
|
610
610
|
(e, o) => e.children === o.children && e.className === o.className
|
|
611
611
|
);
|
|
612
612
|
function Se({
|
|
@@ -616,12 +616,12 @@ function Se({
|
|
|
616
616
|
}) {
|
|
617
617
|
const { anchorTarget: n } = z();
|
|
618
618
|
return /* @__PURE__ */ r(
|
|
619
|
-
|
|
619
|
+
qt,
|
|
620
620
|
{
|
|
621
621
|
"data-type": o,
|
|
622
622
|
"data-id": t,
|
|
623
|
-
remarkPlugins: [
|
|
624
|
-
rehypePlugins: [
|
|
623
|
+
remarkPlugins: [jt],
|
|
624
|
+
rehypePlugins: [At],
|
|
625
625
|
components: {
|
|
626
626
|
a: ({ children: s, ...i }) => /* @__PURE__ */ r("a", { target: i.target || n || "_top", ...i, children: s }),
|
|
627
627
|
img: ({ src: s, alt: i, ...a }) => s ? /* @__PURE__ */ r(
|
|
@@ -641,7 +641,7 @@ function Se({
|
|
|
641
641
|
{
|
|
642
642
|
className: "size-full max-w-full rounded-3xl flex items-center justify-center bg-transparent border-none gap-0",
|
|
643
643
|
withClose: !0,
|
|
644
|
-
children: /* @__PURE__ */ r(
|
|
644
|
+
children: /* @__PURE__ */ r(Ut, { src: s, alt: i })
|
|
645
645
|
}
|
|
646
646
|
)
|
|
647
647
|
}
|
|
@@ -670,7 +670,7 @@ function X() {
|
|
|
670
670
|
currentScreen: s
|
|
671
671
|
};
|
|
672
672
|
}
|
|
673
|
-
function
|
|
673
|
+
function io({
|
|
674
674
|
currentMessage: e
|
|
675
675
|
}) {
|
|
676
676
|
var n;
|
|
@@ -687,30 +687,30 @@ function xe(e) {
|
|
|
687
687
|
isLastInGroup: a,
|
|
688
688
|
isAloneInGroup: l,
|
|
689
689
|
dataComponentNames: c,
|
|
690
|
-
classNames:
|
|
690
|
+
classNames: m
|
|
691
691
|
} = e;
|
|
692
692
|
if (n !== "AI" && n !== "AGENT") return null;
|
|
693
|
-
const { message:
|
|
693
|
+
const { message: h, variant: y = "default" } = o;
|
|
694
694
|
return /* @__PURE__ */ d(
|
|
695
695
|
"div",
|
|
696
696
|
{
|
|
697
|
-
...
|
|
698
|
-
className:
|
|
697
|
+
...x((c == null ? void 0 : c.messageContainer) ?? "chat/agent_msg/root"),
|
|
698
|
+
className: p(
|
|
699
699
|
"w-5/6 flex flex-col items-start gap-1",
|
|
700
|
-
|
|
700
|
+
m == null ? void 0 : m.messageContainer
|
|
701
701
|
),
|
|
702
702
|
children: [
|
|
703
|
-
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((
|
|
704
|
-
|
|
703
|
+
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((w) => /* @__PURE__ */ r(Xt, { attachment: w }, w.id)) }),
|
|
704
|
+
h.length > 0 && /* @__PURE__ */ d("div", { className: "flex flex-row gap-2", children: [
|
|
705
705
|
/* @__PURE__ */ r(
|
|
706
706
|
"div",
|
|
707
707
|
{
|
|
708
|
-
...
|
|
708
|
+
...x((c == null ? void 0 : c.message) ?? "chat/agent_msg/msg"),
|
|
709
709
|
"data-first": i,
|
|
710
710
|
"data-last": a,
|
|
711
711
|
"data-alone": l,
|
|
712
|
-
"data-variant":
|
|
713
|
-
className:
|
|
712
|
+
"data-variant": y,
|
|
713
|
+
className: p(
|
|
714
714
|
"transition-all",
|
|
715
715
|
"w-fit py-3 px-4 rounded-3xl bg-secondary text-secondary-foreground",
|
|
716
716
|
"leading-snug text-sm prose prose-sm prose-a:decoration-primary prose-a:underline",
|
|
@@ -718,30 +718,30 @@ function xe(e) {
|
|
|
718
718
|
// `[word-break:break-word]` is deprecated but works in the browser, while `break-words` which is `[overflow-wrap: break-word]` does not work
|
|
719
719
|
// No need to add "whitespace-pre-wrap" in the agent or bot message because it is markup and content appear on separate lines as expected
|
|
720
720
|
// Adding "whitespace-pre-wrap" will result in unnecessarily huge line breaks
|
|
721
|
-
|
|
721
|
+
y === "error" && "bg-destructive/15 text-destructive",
|
|
722
722
|
// We're using the booleans directly here, not the data attributes, to make any external styling more specific than this
|
|
723
723
|
i && !l && "rounded-bl-md",
|
|
724
724
|
a && !l && "rounded-tl-md",
|
|
725
725
|
!i && !a && !l && "rounded-l-md",
|
|
726
|
-
|
|
726
|
+
m == null ? void 0 : m.message
|
|
727
727
|
),
|
|
728
|
-
children: /* @__PURE__ */ r(Se, { messageType: n, messageId: t, children:
|
|
728
|
+
children: /* @__PURE__ */ r(Se, { messageType: n, messageId: t, children: h })
|
|
729
729
|
}
|
|
730
730
|
),
|
|
731
|
-
/* @__PURE__ */ r(
|
|
731
|
+
/* @__PURE__ */ r(io, { currentMessage: e })
|
|
732
732
|
] })
|
|
733
733
|
]
|
|
734
734
|
}
|
|
735
735
|
);
|
|
736
736
|
}
|
|
737
|
-
function
|
|
737
|
+
function lo(e) {
|
|
738
738
|
return /* @__PURE__ */ r("div", { className: "w-full max-w-full overflow-auto shrink-0", children: /* @__PURE__ */ r("pre", { className: "text-xs leading-tight whitespace-pre-wrap break-word", children: JSON.stringify(e, null, 1) }) });
|
|
739
739
|
}
|
|
740
740
|
const _e = ee.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
741
741
|
te.Root,
|
|
742
742
|
{
|
|
743
743
|
ref: t,
|
|
744
|
-
className:
|
|
744
|
+
className: p(
|
|
745
745
|
"relative flex size-6 aspect-square shrink-0 overflow-hidden rounded-full bg-secondary",
|
|
746
746
|
// 'border',
|
|
747
747
|
e
|
|
@@ -754,7 +754,7 @@ const Ie = ee.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
|
754
754
|
te.Image,
|
|
755
755
|
{
|
|
756
756
|
ref: t,
|
|
757
|
-
className:
|
|
757
|
+
className: p("aspect-square h-full w-full", e),
|
|
758
758
|
...o
|
|
759
759
|
}
|
|
760
760
|
));
|
|
@@ -763,7 +763,7 @@ const Te = ee.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
|
763
763
|
te.Fallback,
|
|
764
764
|
{
|
|
765
765
|
ref: t,
|
|
766
|
-
className:
|
|
766
|
+
className: p(
|
|
767
767
|
"flex size-full text-xs items-center justify-center rounded-lg",
|
|
768
768
|
e
|
|
769
769
|
),
|
|
@@ -781,19 +781,19 @@ function ve({
|
|
|
781
781
|
(e == null ? void 0 : e.name) && /* @__PURE__ */ r(Te, { children: (n = (t = e == null ? void 0 : e.name) == null ? void 0 : t.slice(0, 1)) == null ? void 0 : n.toUpperCase() })
|
|
782
782
|
] });
|
|
783
783
|
}
|
|
784
|
-
function
|
|
784
|
+
function co({ agent: e }) {
|
|
785
785
|
return /* @__PURE__ */ r(D, { children: /* @__PURE__ */ d(
|
|
786
786
|
k,
|
|
787
787
|
{
|
|
788
|
-
...
|
|
788
|
+
...x("chat/bot_loading/root"),
|
|
789
789
|
className: "flex flex-row items-end w-full gap-2 animate-pulse",
|
|
790
790
|
children: [
|
|
791
791
|
/* @__PURE__ */ r(ve, { agent: e }),
|
|
792
792
|
/* @__PURE__ */ d(
|
|
793
793
|
"div",
|
|
794
794
|
{
|
|
795
|
-
...
|
|
796
|
-
className:
|
|
795
|
+
...x("chat/bot_loading/bouncing_dots_container"),
|
|
796
|
+
className: p(
|
|
797
797
|
"flex items-center [&_span]:bg-secondary-foreground [&_span]:size-1 gap-1 p-2 rounded-xl bg-secondary"
|
|
798
798
|
// 'border',
|
|
799
799
|
),
|
|
@@ -808,19 +808,19 @@ function io({ agent: e }) {
|
|
|
808
808
|
}
|
|
809
809
|
) });
|
|
810
810
|
}
|
|
811
|
-
const Xt = '*,: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))}', lo = ae.Provider, co = ae.Root, po = ae.Trigger, qt = ee.forwardRef(({ className: e, sideOffset: o = 4, ...t }, n) => /* @__PURE__ */ r(
|
|
811
|
+
const Vt = '*,: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-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-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%}.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}.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))}', po = ae.Provider, mo = ae.Root, ho = ae.Trigger, Gt = ee.forwardRef(({ className: e, sideOffset: o = 4, ...t }, n) => /* @__PURE__ */ r(
|
|
812
812
|
ae.Content,
|
|
813
813
|
{
|
|
814
814
|
ref: n,
|
|
815
815
|
sideOffset: o,
|
|
816
|
-
className:
|
|
816
|
+
className: p(
|
|
817
817
|
"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",
|
|
818
818
|
e
|
|
819
819
|
),
|
|
820
820
|
...t
|
|
821
821
|
}
|
|
822
822
|
));
|
|
823
|
-
|
|
823
|
+
Gt.displayName = ae.Content.displayName;
|
|
824
824
|
function oe({
|
|
825
825
|
children: e,
|
|
826
826
|
content: o,
|
|
@@ -828,10 +828,10 @@ function oe({
|
|
|
828
828
|
align: n
|
|
829
829
|
}) {
|
|
830
830
|
const { disableTooltips: s } = z();
|
|
831
|
-
return !o || s ? e : /* @__PURE__ */ d(
|
|
832
|
-
/* @__PURE__ */ r(
|
|
831
|
+
return !o || s ? e : /* @__PURE__ */ d(mo, { children: [
|
|
832
|
+
/* @__PURE__ */ r(ho, { asChild: !0, children: e }),
|
|
833
833
|
/* @__PURE__ */ r(
|
|
834
|
-
|
|
834
|
+
Gt,
|
|
835
835
|
{
|
|
836
836
|
side: t,
|
|
837
837
|
align: n,
|
|
@@ -842,12 +842,16 @@ function oe({
|
|
|
842
842
|
)
|
|
843
843
|
] });
|
|
844
844
|
}
|
|
845
|
-
|
|
845
|
+
function go(e, o) {
|
|
846
|
+
const t = typeof (e == null ? void 0 : e.right) == "number", n = typeof (e == null ? void 0 : e.left) == "number";
|
|
847
|
+
return t && !n ? "right" : n && !t || o === "rtl" ? "left" : "right";
|
|
848
|
+
}
|
|
849
|
+
const vt = 450;
|
|
846
850
|
function $() {
|
|
847
|
-
const [e, o] = L.useState(() => (window.top || window).innerWidth <
|
|
851
|
+
const [e, o] = L.useState(() => (window.top || window).innerWidth < vt);
|
|
848
852
|
return L.useEffect(() => {
|
|
849
853
|
const t = window.top || window, n = () => {
|
|
850
|
-
o(t.innerWidth <
|
|
854
|
+
o(t.innerWidth < vt);
|
|
851
855
|
};
|
|
852
856
|
return n(), t.addEventListener("resize", n), () => {
|
|
853
857
|
t.removeEventListener("resize", n);
|
|
@@ -858,72 +862,72 @@ const ce = {
|
|
|
858
862
|
transitionTimingFunction: "cubic-bezier(0.16, 1, 0.3, 1)",
|
|
859
863
|
transitionDuration: "1000ms"
|
|
860
864
|
};
|
|
861
|
-
function
|
|
862
|
-
var
|
|
863
|
-
const { dir: e } = ke(), { isSmallScreen: o } = $(), { theme: t, inline: n } = z(), s = (q) => n ? "100%" : q, i = (q, ge) => o ? `100dv${q}` : ge, a = (q, ge) => s(i(q, ge)), l = {
|
|
864
|
-
zIndex: ((
|
|
865
|
+
function V() {
|
|
866
|
+
var w, g, v, C, T, b, N, _, E, f, M, j, R, u, I, ie, Re, Pe, je, Ae, Oe, Fe, He, We, Le, $e, Be, Ye, Ue, Xe, qe, Ve, Ge, Ze, Ke, Qe, Je, et, tt, rt, ot, nt, st, at, it, lt, ct, dt;
|
|
867
|
+
const { dir: e } = ke(), { isSmallScreen: o } = $(), { theme: t, inline: n } = z(), s = (q) => n ? "100%" : q, i = (q, ge) => o ? `100dv${q}` : ge, a = (q, ge) => s(i(q, ge)), l = go((w = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : w.offset, e), c = {
|
|
868
|
+
zIndex: ((g = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : g.zIndex) ?? 1e7,
|
|
865
869
|
offset: {
|
|
866
|
-
bottom: ((
|
|
867
|
-
right: ((
|
|
868
|
-
left: ((
|
|
870
|
+
bottom: ((C = (v = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : v.offset) == null ? void 0 : C.bottom) ?? 20,
|
|
871
|
+
right: ((b = (T = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : T.offset) == null ? void 0 : b.right) ?? (l === "right" ? 20 : "initial"),
|
|
872
|
+
left: ((_ = (N = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : N.offset) == null ? void 0 : _.left) ?? (l === "left" ? 20 : "initial")
|
|
869
873
|
},
|
|
870
874
|
size: {
|
|
871
|
-
button: ((
|
|
872
|
-
icon: ((
|
|
875
|
+
button: ((f = (E = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : E.size) == null ? void 0 : f.button) ?? 48,
|
|
876
|
+
icon: ((j = (M = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : M.size) == null ? void 0 : j.icon) ?? 24
|
|
873
877
|
}
|
|
874
|
-
},
|
|
875
|
-
const q =
|
|
878
|
+
}, m = (() => {
|
|
879
|
+
const q = l === "right" ? c.offset.right : c.offset.left;
|
|
876
880
|
return typeof q != "number" ? 0 : q;
|
|
877
|
-
})(),
|
|
881
|
+
})(), h = {
|
|
878
882
|
palette: (t == null ? void 0 : t.palette) ?? "neutral",
|
|
879
883
|
primaryColor: (t == null ? void 0 : t.primaryColor) ?? "hsl(0 0% 9%)",
|
|
880
|
-
widgetTrigger:
|
|
884
|
+
widgetTrigger: c,
|
|
881
885
|
widgetContentContainer: {
|
|
882
|
-
borderRadius: o ? "0px" : ((
|
|
883
|
-
zIndex: ((
|
|
884
|
-
outline: ((
|
|
886
|
+
borderRadius: o ? "0px" : ((R = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : R.borderRadius) ?? "32px",
|
|
887
|
+
zIndex: ((u = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : u.zIndex) ?? c.zIndex + 1,
|
|
888
|
+
outline: ((I = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : I.outline) ?? "none",
|
|
885
889
|
// was: '1px solid'
|
|
886
|
-
outlineColor: ((
|
|
887
|
-
boxShadow: ((
|
|
888
|
-
transitionProperty: ((
|
|
889
|
-
transitionTimingFunction: ((
|
|
890
|
-
transitionDuration: ((
|
|
890
|
+
outlineColor: ((ie = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : ie.outlineColor) ?? "hsl(0 0% 50% / .5)",
|
|
891
|
+
boxShadow: ((Re = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Re.boxShadow) ?? "0 0px 100px 0px rgb(0 0 0 / 0.25)",
|
|
892
|
+
transitionProperty: ((Pe = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Pe.transitionProperty) ?? "all",
|
|
893
|
+
transitionTimingFunction: ((je = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : je.transitionTimingFunction) ?? ce.transitionTimingFunction,
|
|
894
|
+
transitionDuration: ((Ae = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Ae.transitionDuration) ?? ce.transitionDuration,
|
|
891
895
|
offset: {
|
|
892
|
-
side: o ? 0 :
|
|
893
|
-
align: o ? 0 :
|
|
896
|
+
side: o ? 0 : c.offset.bottom + c.size.button + Q.y * 2 + (((Fe = (Oe = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Oe.offset) == null ? void 0 : Fe.side) ?? 10),
|
|
897
|
+
align: o ? 0 : m + (((We = (He = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : He.offset) == null ? void 0 : We.align) ?? 0)
|
|
894
898
|
}
|
|
895
899
|
},
|
|
896
900
|
screens: {
|
|
897
901
|
welcome: {
|
|
898
|
-
width: a("w", ((
|
|
902
|
+
width: a("w", (($e = (Le = t == null ? void 0 : t.screens) == null ? void 0 : Le.welcome) == null ? void 0 : $e.width) ?? "400px"),
|
|
899
903
|
// By setting minHeight to 1px, a nice animation will play from 1px to the dynamic height of the content of the screen
|
|
900
904
|
minHeight: a(
|
|
901
905
|
"h",
|
|
902
|
-
((
|
|
906
|
+
((Ye = (Be = t == null ? void 0 : t.screens) == null ? void 0 : Be.welcome) == null ? void 0 : Ye.minHeight) ?? "1px"
|
|
903
907
|
)
|
|
904
908
|
},
|
|
905
909
|
sessions: {
|
|
906
|
-
width: a("w", ((
|
|
907
|
-
height: a("h", ((
|
|
910
|
+
width: a("w", ((Xe = (Ue = t == null ? void 0 : t.screens) == null ? void 0 : Ue.sessions) == null ? void 0 : Xe.width) ?? "450px"),
|
|
911
|
+
height: a("h", ((Ve = (qe = t == null ? void 0 : t.screens) == null ? void 0 : qe.sessions) == null ? void 0 : Ve.height) ?? "600px")
|
|
908
912
|
},
|
|
909
913
|
chat: {
|
|
910
|
-
width: a("w", ((
|
|
911
|
-
height: a("h", ((
|
|
914
|
+
width: a("w", ((Ze = (Ge = t == null ? void 0 : t.screens) == null ? void 0 : Ge.chat) == null ? void 0 : Ze.width) ?? "525px"),
|
|
915
|
+
height: a("h", ((Qe = (Ke = t == null ? void 0 : t.screens) == null ? void 0 : Ke.chat) == null ? void 0 : Qe.height) ?? "700px"),
|
|
912
916
|
withCanvas: {
|
|
913
917
|
width: a(
|
|
914
918
|
"w",
|
|
915
|
-
((
|
|
919
|
+
((tt = (et = (Je = t == null ? void 0 : t.screens) == null ? void 0 : Je.chat) == null ? void 0 : et.withCanvas) == null ? void 0 : tt.width) ?? "min(1050px, 100vw)"
|
|
916
920
|
),
|
|
917
921
|
height: a(
|
|
918
922
|
"h",
|
|
919
|
-
((
|
|
923
|
+
((nt = (ot = (rt = t == null ? void 0 : t.screens) == null ? void 0 : rt.chat) == null ? void 0 : ot.withCanvas) == null ? void 0 : nt.height) ?? "min(800px, 100vh)"
|
|
920
924
|
),
|
|
921
|
-
transitionTimingFunction: ((
|
|
922
|
-
transitionDuration: ((
|
|
925
|
+
transitionTimingFunction: ((it = (at = (st = t == null ? void 0 : t.screens) == null ? void 0 : st.chat) == null ? void 0 : at.withCanvas) == null ? void 0 : it.transitionTimingFunction) ?? ce.transitionTimingFunction,
|
|
926
|
+
transitionDuration: ((dt = (ct = (lt = t == null ? void 0 : t.screens) == null ? void 0 : lt.chat) == null ? void 0 : ct.withCanvas) == null ? void 0 : dt.transitionDuration) ?? ce.transitionDuration
|
|
923
927
|
}
|
|
924
928
|
}
|
|
925
929
|
}
|
|
926
|
-
},
|
|
930
|
+
}, y = {
|
|
927
931
|
// Subtract the offset.bottom twice so that it adds a bit of padding to the top
|
|
928
932
|
// Subtract the distance between the trigger and the widget content container
|
|
929
933
|
// Subtract the invisible padding of the trigger (for the wobble effect)
|
|
@@ -931,8 +935,8 @@ function K() {
|
|
|
931
935
|
"h",
|
|
932
936
|
`calc(
|
|
933
937
|
100vh
|
|
934
|
-
- ${
|
|
935
|
-
- ${
|
|
938
|
+
- ${h.widgetTrigger.offset.bottom}px
|
|
939
|
+
- ${h.widgetContentContainer.offset.side}px
|
|
936
940
|
- ${Q.y * 2}px
|
|
937
941
|
)`
|
|
938
942
|
),
|
|
@@ -941,40 +945,41 @@ function K() {
|
|
|
941
945
|
"w",
|
|
942
946
|
`calc(
|
|
943
947
|
100vw
|
|
944
|
-
- ${
|
|
948
|
+
- ${m * 2}px
|
|
945
949
|
)`
|
|
946
950
|
),
|
|
947
951
|
minHeight: a(
|
|
948
952
|
"h",
|
|
949
953
|
`min(
|
|
950
|
-
${
|
|
951
|
-
${
|
|
952
|
-
${
|
|
954
|
+
${h.screens.welcome.minHeight},
|
|
955
|
+
${h.screens.sessions.height},
|
|
956
|
+
${h.screens.chat.height}
|
|
953
957
|
)`
|
|
954
958
|
),
|
|
955
959
|
minWidth: a(
|
|
956
960
|
"w",
|
|
957
961
|
`min(
|
|
958
|
-
${
|
|
959
|
-
${
|
|
960
|
-
${
|
|
962
|
+
${h.screens.welcome.width},
|
|
963
|
+
${h.screens.sessions.width},
|
|
964
|
+
${h.screens.chat.width}
|
|
961
965
|
)`
|
|
962
966
|
)
|
|
963
967
|
};
|
|
964
968
|
return {
|
|
965
|
-
theme:
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
969
|
+
theme: h,
|
|
970
|
+
triggerSide: l,
|
|
971
|
+
computed: y,
|
|
972
|
+
cssVars: uo({
|
|
973
|
+
palette: h.palette,
|
|
974
|
+
primary: h.primaryColor
|
|
970
975
|
})
|
|
971
976
|
};
|
|
972
977
|
}
|
|
973
|
-
function
|
|
978
|
+
function uo({
|
|
974
979
|
palette: e,
|
|
975
980
|
primary: o
|
|
976
981
|
}) {
|
|
977
|
-
const t =
|
|
982
|
+
const t = Zt(e), n = ht(o).toHsl(), s = ht(o).isLight() ? t[950] : t[50];
|
|
978
983
|
return {
|
|
979
984
|
"--opencx-primary": `${n.h} ${n.s * 100}% ${n.l * 100}%`,
|
|
980
985
|
"--opencx-primary-foreground": s,
|
|
@@ -993,7 +998,7 @@ function mo({
|
|
|
993
998
|
"--opencx-ring": "var(--opencx-foreground)"
|
|
994
999
|
};
|
|
995
1000
|
}
|
|
996
|
-
function
|
|
1001
|
+
function Zt(e) {
|
|
997
1002
|
const o = {
|
|
998
1003
|
50: "0 0% 98%",
|
|
999
1004
|
100: "0 0% 96.1%",
|
|
@@ -1053,10 +1058,10 @@ function Vt(e) {
|
|
|
1053
1058
|
case "slate":
|
|
1054
1059
|
return s;
|
|
1055
1060
|
default:
|
|
1056
|
-
return F(e,
|
|
1061
|
+
return F(e, Zt.name), o;
|
|
1057
1062
|
}
|
|
1058
1063
|
}
|
|
1059
|
-
function
|
|
1064
|
+
function Kt() {
|
|
1060
1065
|
const { contentIframeRef: e } = A(), { inline: o } = z();
|
|
1061
1066
|
return {
|
|
1062
1067
|
setWidth: (t) => {
|
|
@@ -1079,12 +1084,12 @@ function Me({
|
|
|
1079
1084
|
width: e,
|
|
1080
1085
|
height: o
|
|
1081
1086
|
}) {
|
|
1082
|
-
const { isSmallScreen: t } = $(), { setWidth: n, setHeight: s } =
|
|
1087
|
+
const { isSmallScreen: t } = $(), { setWidth: n, setHeight: s } = Kt();
|
|
1083
1088
|
se(() => {
|
|
1084
1089
|
e && n(e), o && s(o);
|
|
1085
1090
|
}, [t, o, e, n, s]);
|
|
1086
1091
|
}
|
|
1087
|
-
const
|
|
1092
|
+
const bt = ur;
|
|
1088
1093
|
function ne({
|
|
1089
1094
|
name: e,
|
|
1090
1095
|
className: o
|
|
@@ -1092,49 +1097,49 @@ function ne({
|
|
|
1092
1097
|
const t = (() => {
|
|
1093
1098
|
switch (e) {
|
|
1094
1099
|
case "Check":
|
|
1095
|
-
return
|
|
1100
|
+
return Ir;
|
|
1096
1101
|
case "CheckCheck":
|
|
1097
|
-
return
|
|
1102
|
+
return _r;
|
|
1098
1103
|
case "CircleCheck":
|
|
1099
|
-
return
|
|
1104
|
+
return Rt;
|
|
1100
1105
|
case "CircleCheckBig":
|
|
1101
|
-
return
|
|
1106
|
+
return Sr;
|
|
1102
1107
|
case "CircleX":
|
|
1103
|
-
return
|
|
1108
|
+
return Nr;
|
|
1104
1109
|
case "Expand":
|
|
1105
|
-
return
|
|
1110
|
+
return zr;
|
|
1106
1111
|
case "Maximize":
|
|
1107
|
-
return
|
|
1112
|
+
return Cr;
|
|
1108
1113
|
case "Maximize2":
|
|
1109
|
-
return
|
|
1114
|
+
return kr;
|
|
1110
1115
|
case "Minimize":
|
|
1111
|
-
return
|
|
1116
|
+
return yr;
|
|
1112
1117
|
case "Minimize2":
|
|
1113
|
-
return
|
|
1118
|
+
return br;
|
|
1114
1119
|
case "Shrink":
|
|
1115
|
-
return
|
|
1120
|
+
return vr;
|
|
1116
1121
|
case "SquareCheck":
|
|
1117
|
-
return
|
|
1122
|
+
return xr;
|
|
1118
1123
|
case "SquareCheckBig":
|
|
1119
|
-
return
|
|
1124
|
+
return fr;
|
|
1120
1125
|
case "SquareX":
|
|
1121
|
-
return
|
|
1126
|
+
return wr;
|
|
1122
1127
|
case "X":
|
|
1123
1128
|
return Ce;
|
|
1124
1129
|
case void 0:
|
|
1125
|
-
return
|
|
1130
|
+
return bt;
|
|
1126
1131
|
default:
|
|
1127
|
-
return F(e, ne.name),
|
|
1132
|
+
return F(e, ne.name), bt;
|
|
1128
1133
|
}
|
|
1129
1134
|
})();
|
|
1130
|
-
return /* @__PURE__ */ r(t, { className:
|
|
1135
|
+
return /* @__PURE__ */ r(t, { className: p("size-4", o) });
|
|
1131
1136
|
}
|
|
1132
|
-
function
|
|
1137
|
+
function wo() {
|
|
1133
1138
|
var t;
|
|
1134
1139
|
const e = X(), o = (t = e.config.customComponents) == null ? void 0 : t.headerBottom;
|
|
1135
1140
|
return o ? /* @__PURE__ */ r(o, { ...e }) : null;
|
|
1136
1141
|
}
|
|
1137
|
-
function
|
|
1142
|
+
function fo({ fallback: e }) {
|
|
1138
1143
|
var n;
|
|
1139
1144
|
const o = X(), t = (n = o.config.customComponents) == null ? void 0 : n.headerTitle;
|
|
1140
1145
|
return t ? /* @__PURE__ */ r(t, { ...o }) : e;
|
|
@@ -1160,12 +1165,12 @@ function De() {
|
|
|
1160
1165
|
}
|
|
1161
1166
|
})() ?? e.name ?? "Chat";
|
|
1162
1167
|
}
|
|
1163
|
-
function
|
|
1168
|
+
function xo(e) {
|
|
1164
1169
|
switch (e) {
|
|
1165
1170
|
case "chat":
|
|
1166
|
-
return
|
|
1171
|
+
return x("chat/header");
|
|
1167
1172
|
case "sessions":
|
|
1168
|
-
return
|
|
1173
|
+
return x("sessions/header");
|
|
1169
1174
|
case "welcome":
|
|
1170
1175
|
return;
|
|
1171
1176
|
default:
|
|
@@ -1173,7 +1178,7 @@ function uo(e) {
|
|
|
1173
1178
|
return;
|
|
1174
1179
|
}
|
|
1175
1180
|
}
|
|
1176
|
-
function
|
|
1181
|
+
function vo() {
|
|
1177
1182
|
const { router: e } = z(), {
|
|
1178
1183
|
routerState: { screen: o },
|
|
1179
1184
|
toSessionsScreen: t
|
|
@@ -1185,14 +1190,14 @@ function wo() {
|
|
|
1185
1190
|
size: "fit",
|
|
1186
1191
|
className: "rounded-full",
|
|
1187
1192
|
onClick: t,
|
|
1188
|
-
children: /* @__PURE__ */ r(
|
|
1193
|
+
children: /* @__PURE__ */ r(Tr, { className: "size-4 rtl:-scale-100" })
|
|
1189
1194
|
}
|
|
1190
1195
|
);
|
|
1191
1196
|
}
|
|
1192
|
-
function
|
|
1197
|
+
function bo({
|
|
1193
1198
|
button: e
|
|
1194
1199
|
}) {
|
|
1195
|
-
const { setIsOpen: o } =
|
|
1200
|
+
const { setIsOpen: o } = K(), { isSmallScreen: t } = $(), n = X();
|
|
1196
1201
|
return t && e.hideOnSmallScreen || !t && e.hideOnLargeScreen ? null : /* @__PURE__ */ r(
|
|
1197
1202
|
S,
|
|
1198
1203
|
{
|
|
@@ -1212,9 +1217,9 @@ function be({
|
|
|
1212
1217
|
}) {
|
|
1213
1218
|
const [o, t] = P(!1), {
|
|
1214
1219
|
routerState: { screen: n }
|
|
1215
|
-
} = H(), { isSmallScreen: s } = $(), { theme: i } =
|
|
1220
|
+
} = H(), { isSmallScreen: s } = $(), { theme: i } = V(), { setWidth: a, setHeight: l } = Kt(), c = X();
|
|
1216
1221
|
if (n !== "chat" && n !== "sessions") return null;
|
|
1217
|
-
const
|
|
1222
|
+
const m = (() => {
|
|
1218
1223
|
switch (n) {
|
|
1219
1224
|
case "chat":
|
|
1220
1225
|
return i.screens.chat.height;
|
|
@@ -1223,7 +1228,7 @@ function be({
|
|
|
1223
1228
|
default:
|
|
1224
1229
|
return F(n, be.name), i.screens.chat.height;
|
|
1225
1230
|
}
|
|
1226
|
-
})(),
|
|
1231
|
+
})(), h = (() => {
|
|
1227
1232
|
switch (n) {
|
|
1228
1233
|
case "chat":
|
|
1229
1234
|
return i.screens.chat.width;
|
|
@@ -1232,12 +1237,12 @@ function be({
|
|
|
1232
1237
|
default:
|
|
1233
1238
|
return F(n, be.name), i.screens.chat.width;
|
|
1234
1239
|
}
|
|
1235
|
-
})(),
|
|
1236
|
-
var
|
|
1237
|
-
t((
|
|
1238
|
-
const
|
|
1239
|
-
return l(
|
|
1240
|
-
}), (
|
|
1240
|
+
})(), y = () => {
|
|
1241
|
+
var w;
|
|
1242
|
+
t((g) => {
|
|
1243
|
+
const v = !g;
|
|
1244
|
+
return l(v ? "100vh" : m), a(v ? `max(40vw, ${h})` : h), v;
|
|
1245
|
+
}), (w = e.onClicked) == null || w.call(e, c);
|
|
1241
1246
|
};
|
|
1242
1247
|
return s && e.hideOnSmallScreen || !s && e.hideOnLargeScreen ? null : /* @__PURE__ */ r(
|
|
1243
1248
|
S,
|
|
@@ -1245,7 +1250,7 @@ function be({
|
|
|
1245
1250
|
variant: "ghost",
|
|
1246
1251
|
size: "fit",
|
|
1247
1252
|
className: "rounded-full",
|
|
1248
|
-
onClick:
|
|
1253
|
+
onClick: y,
|
|
1249
1254
|
children: /* @__PURE__ */ r(
|
|
1250
1255
|
ne,
|
|
1251
1256
|
{
|
|
@@ -1255,15 +1260,15 @@ function be({
|
|
|
1255
1260
|
}
|
|
1256
1261
|
);
|
|
1257
1262
|
}
|
|
1258
|
-
function
|
|
1263
|
+
function Qt({
|
|
1259
1264
|
button: e
|
|
1260
1265
|
}) {
|
|
1261
|
-
var T,
|
|
1262
|
-
const { close: o } = he(), { widgetCtx: t } = A(), { setIsOpen: n } =
|
|
1266
|
+
var T, b;
|
|
1267
|
+
const { close: o } = he(), { widgetCtx: t } = A(), { setIsOpen: n } = K(), { resolveSession: s, sessionState: i } = U(), { isSmallScreen: a } = $(), l = X(), c = !i.session, m = ((T = i.session) == null ? void 0 : T.isOpened) === !1, h = e.onResolved || "stay-in-chat", y = e.behaviorBeforeSessionCreation || "disabled", w = e.behaviorIfSessionIsResolved || "disabled", g = !!(i.isResolvingSession || c && y === "disabled" || m && w === "disabled"), v = async () => {
|
|
1263
1268
|
const { success: N, error: _ } = await s();
|
|
1264
1269
|
if (o(), !N)
|
|
1265
1270
|
return console.error(_), !1;
|
|
1266
|
-
switch (
|
|
1271
|
+
switch (h) {
|
|
1267
1272
|
case "stay-in-chat":
|
|
1268
1273
|
break;
|
|
1269
1274
|
case "close-widget":
|
|
@@ -1276,13 +1281,13 @@ function Zt({
|
|
|
1276
1281
|
n(!1), t.resetChat();
|
|
1277
1282
|
break;
|
|
1278
1283
|
default:
|
|
1279
|
-
F(
|
|
1284
|
+
F(h, Qt.name);
|
|
1280
1285
|
break;
|
|
1281
1286
|
}
|
|
1282
1287
|
return !0;
|
|
1283
1288
|
}, C = () => {
|
|
1284
1289
|
if (c)
|
|
1285
|
-
switch (
|
|
1290
|
+
switch (y) {
|
|
1286
1291
|
case "disabled":
|
|
1287
1292
|
return;
|
|
1288
1293
|
case "close-widget":
|
|
@@ -1290,12 +1295,12 @@ function Zt({
|
|
|
1290
1295
|
break;
|
|
1291
1296
|
default:
|
|
1292
1297
|
F(
|
|
1293
|
-
|
|
1298
|
+
y,
|
|
1294
1299
|
C.name
|
|
1295
1300
|
);
|
|
1296
1301
|
}
|
|
1297
|
-
if (
|
|
1298
|
-
switch (
|
|
1302
|
+
if (m)
|
|
1303
|
+
switch (w) {
|
|
1299
1304
|
case "disabled":
|
|
1300
1305
|
return;
|
|
1301
1306
|
case "close-widget":
|
|
@@ -1311,12 +1316,12 @@ function Zt({
|
|
|
1311
1316
|
break;
|
|
1312
1317
|
default:
|
|
1313
1318
|
F(
|
|
1314
|
-
|
|
1319
|
+
w,
|
|
1315
1320
|
C.name
|
|
1316
1321
|
);
|
|
1317
1322
|
}
|
|
1318
1323
|
};
|
|
1319
|
-
return a && e.hideOnSmallScreen || !a && e.hideOnLargeScreen ? null : ((
|
|
1324
|
+
return a && e.hideOnSmallScreen || !a && e.hideOnLargeScreen ? null : ((b = e.confirmation) == null ? void 0 : b.type) === "modal" && !m && !c ? /* @__PURE__ */ r(
|
|
1320
1325
|
Ne,
|
|
1321
1326
|
{
|
|
1322
1327
|
trigger: /* @__PURE__ */ r(
|
|
@@ -1325,7 +1330,7 @@ function Zt({
|
|
|
1325
1330
|
variant: "ghost",
|
|
1326
1331
|
size: "fit",
|
|
1327
1332
|
className: "rounded-full",
|
|
1328
|
-
disabled:
|
|
1333
|
+
disabled: g,
|
|
1329
1334
|
onClick: () => {
|
|
1330
1335
|
var N;
|
|
1331
1336
|
return (N = e.onClicked) == null ? void 0 : N.call(e, l);
|
|
@@ -1334,9 +1339,9 @@ function Zt({
|
|
|
1334
1339
|
}
|
|
1335
1340
|
),
|
|
1336
1341
|
children: /* @__PURE__ */ d(ze, { children: [
|
|
1337
|
-
/* @__PURE__ */ r(
|
|
1338
|
-
/* @__PURE__ */ r(
|
|
1339
|
-
/* @__PURE__ */ d(
|
|
1342
|
+
/* @__PURE__ */ r(Wt, { children: /* @__PURE__ */ r(Bt, { children: e.confirmation.title || "Close conversation" }) }),
|
|
1343
|
+
/* @__PURE__ */ r(Lt, { children: /* @__PURE__ */ r(Yt, { children: e.confirmation.description || "Are you sure you want to close this conversation?" }) }),
|
|
1344
|
+
/* @__PURE__ */ d($t, { children: [
|
|
1340
1345
|
/* @__PURE__ */ r(
|
|
1341
1346
|
S,
|
|
1342
1347
|
{
|
|
@@ -1352,7 +1357,7 @@ function Zt({
|
|
|
1352
1357
|
variant: "destructive",
|
|
1353
1358
|
onClick: async () => {
|
|
1354
1359
|
var _, E;
|
|
1355
|
-
await
|
|
1360
|
+
await v() && ((E = (_ = e.confirmation) == null ? void 0 : _.onResolved) == null || E.call(_, l));
|
|
1356
1361
|
},
|
|
1357
1362
|
disabled: i.isResolvingSession,
|
|
1358
1363
|
children: e.confirmation.confirmButtonText || "Yes"
|
|
@@ -1369,9 +1374,9 @@ function Zt({
|
|
|
1369
1374
|
className: "rounded-full",
|
|
1370
1375
|
onClick: () => {
|
|
1371
1376
|
var N;
|
|
1372
|
-
|
|
1377
|
+
m || c ? C() : v(), (N = e.onClicked) == null || N.call(e, l);
|
|
1373
1378
|
},
|
|
1374
|
-
disabled:
|
|
1379
|
+
disabled: g,
|
|
1375
1380
|
children: /* @__PURE__ */ r(ne, { name: e.icon })
|
|
1376
1381
|
}
|
|
1377
1382
|
);
|
|
@@ -1379,25 +1384,25 @@ function Zt({
|
|
|
1379
1384
|
function ye({ button: e }) {
|
|
1380
1385
|
switch (e.functionality) {
|
|
1381
1386
|
case "close-widget":
|
|
1382
|
-
return /* @__PURE__ */ r(
|
|
1387
|
+
return /* @__PURE__ */ r(bo, { button: e });
|
|
1383
1388
|
case "expand-shrink":
|
|
1384
1389
|
return /* @__PURE__ */ r(be, { button: e });
|
|
1385
1390
|
case "resolve-session":
|
|
1386
|
-
return /* @__PURE__ */ r(
|
|
1391
|
+
return /* @__PURE__ */ r(Qt, { button: e });
|
|
1387
1392
|
default:
|
|
1388
1393
|
return F(e, ye.name), null;
|
|
1389
1394
|
}
|
|
1390
1395
|
}
|
|
1391
|
-
const
|
|
1396
|
+
const yo = {
|
|
1392
1397
|
functionality: "close-widget",
|
|
1393
1398
|
hideOnLargeScreen: !0,
|
|
1394
1399
|
icon: "X"
|
|
1395
1400
|
};
|
|
1396
|
-
function
|
|
1401
|
+
function ko() {
|
|
1397
1402
|
const {
|
|
1398
1403
|
routerState: { screen: e }
|
|
1399
1404
|
} = H(), { headerButtons: o } = z(), t = e === "chat" ? o == null ? void 0 : o.chatScreen : e === "sessions" ? o == null ? void 0 : o.sessionsScreen : [];
|
|
1400
|
-
return !t || t.length === 0 ? /* @__PURE__ */ r(ye, { button:
|
|
1405
|
+
return !t || t.length === 0 ? /* @__PURE__ */ r(ye, { button: yo }) : /* @__PURE__ */ r(J, { children: t.map((n) => /* @__PURE__ */ r(
|
|
1401
1406
|
ye,
|
|
1402
1407
|
{
|
|
1403
1408
|
button: n
|
|
@@ -1405,50 +1410,50 @@ function vo() {
|
|
|
1405
1410
|
`${n.functionality}-${n.icon}`
|
|
1406
1411
|
)) });
|
|
1407
1412
|
}
|
|
1408
|
-
function
|
|
1413
|
+
function Jt() {
|
|
1409
1414
|
const {
|
|
1410
1415
|
routerState: { screen: e }
|
|
1411
|
-
} = H(), o =
|
|
1416
|
+
} = H(), o = xo(e), t = De();
|
|
1412
1417
|
return /* @__PURE__ */ d("header", { ...o, className: "py-2 px-4 shrink-0", children: [
|
|
1413
1418
|
/* @__PURE__ */ d("div", { className: "flex items-center gap-2", children: [
|
|
1414
|
-
/* @__PURE__ */ r(
|
|
1419
|
+
/* @__PURE__ */ r(vo, {}),
|
|
1415
1420
|
/* @__PURE__ */ r(
|
|
1416
1421
|
"div",
|
|
1417
1422
|
{
|
|
1418
|
-
className:
|
|
1423
|
+
className: p(
|
|
1419
1424
|
"flex-1 h-8 flex items-center",
|
|
1420
1425
|
e === "sessions" && "ps-2"
|
|
1421
1426
|
),
|
|
1422
1427
|
children: /* @__PURE__ */ r(
|
|
1423
|
-
|
|
1428
|
+
fo,
|
|
1424
1429
|
{
|
|
1425
1430
|
fallback: /* @__PURE__ */ r("h2", { className: "font-semibold", children: t })
|
|
1426
1431
|
}
|
|
1427
1432
|
)
|
|
1428
1433
|
}
|
|
1429
1434
|
),
|
|
1430
|
-
/* @__PURE__ */ r(
|
|
1435
|
+
/* @__PURE__ */ r(ko, {})
|
|
1431
1436
|
] }),
|
|
1432
|
-
/* @__PURE__ */ r(
|
|
1437
|
+
/* @__PURE__ */ r(wo, {})
|
|
1433
1438
|
] });
|
|
1434
1439
|
}
|
|
1435
|
-
function
|
|
1436
|
-
return /* @__PURE__ */ r(
|
|
1440
|
+
function er({ className: e }) {
|
|
1441
|
+
return /* @__PURE__ */ r(Mr, { className: p("size-4 animate-spin", e) });
|
|
1437
1442
|
}
|
|
1438
|
-
function
|
|
1443
|
+
function Co() {
|
|
1439
1444
|
const {
|
|
1440
1445
|
messagesState: { isInitialFetchLoading: e }
|
|
1441
|
-
} = O(), { isSmallScreen: o } = $(), { activeMode: t, Component: n } =
|
|
1446
|
+
} = O(), { isSmallScreen: o } = $(), { activeMode: t, Component: n } = _t();
|
|
1442
1447
|
return {
|
|
1443
1448
|
isCanvasOpen: !e && !o && !!t && !!n
|
|
1444
1449
|
};
|
|
1445
1450
|
}
|
|
1446
|
-
function
|
|
1447
|
-
const e = X(), { activeMode: o, Component: t } =
|
|
1451
|
+
function zo() {
|
|
1452
|
+
const e = X(), { activeMode: o, Component: t } = _t(), { sendMessage: n } = O(), { createStateCheckpoint: s } = U(), [i, a] = P(!1), l = async (c) => {
|
|
1448
1453
|
try {
|
|
1449
1454
|
a(!0), await n(c);
|
|
1450
|
-
} catch (
|
|
1451
|
-
console.error(
|
|
1455
|
+
} catch (m) {
|
|
1456
|
+
console.error(m);
|
|
1452
1457
|
} finally {
|
|
1453
1458
|
a(!1);
|
|
1454
1459
|
}
|
|
@@ -1464,12 +1469,12 @@ function yo() {
|
|
|
1464
1469
|
}
|
|
1465
1470
|
);
|
|
1466
1471
|
}
|
|
1467
|
-
function
|
|
1472
|
+
function G() {
|
|
1468
1473
|
const { dir: e } = ke(), o = z();
|
|
1469
|
-
return
|
|
1470
|
-
const t =
|
|
1474
|
+
return St(() => {
|
|
1475
|
+
const t = Xr(o.language) ? o.language : "en";
|
|
1471
1476
|
return {
|
|
1472
|
-
t: (n) =>
|
|
1477
|
+
t: (n) => qr(n, t, o.translationOverrides),
|
|
1473
1478
|
language: t,
|
|
1474
1479
|
dir: t === "ar" ? "rtl" : "ltr",
|
|
1475
1480
|
hostDocumentDir: e
|
|
@@ -1484,7 +1489,7 @@ const W = L.forwardRef(
|
|
|
1484
1489
|
{
|
|
1485
1490
|
...e,
|
|
1486
1491
|
ref: o,
|
|
1487
|
-
className:
|
|
1492
|
+
className: p("overflow-hidden", e.className),
|
|
1488
1493
|
overrides: {
|
|
1489
1494
|
initial: { height: 0, opacity: 0, ...(t = e.overrides) == null ? void 0 : t.initial },
|
|
1490
1495
|
animate: { height: "auto", opacity: 1, ...(n = e.overrides) == null ? void 0 : n.animate },
|
|
@@ -1495,7 +1500,7 @@ const W = L.forwardRef(
|
|
|
1495
1500
|
}
|
|
1496
1501
|
);
|
|
1497
1502
|
W.displayName = "MotionDiv__VerticalReveal";
|
|
1498
|
-
const
|
|
1503
|
+
const No = [
|
|
1499
1504
|
{
|
|
1500
1505
|
label: "Terrible",
|
|
1501
1506
|
value: 1,
|
|
@@ -1522,19 +1527,19 @@ const ko = [
|
|
|
1522
1527
|
emoji: "😍"
|
|
1523
1528
|
}
|
|
1524
1529
|
];
|
|
1525
|
-
function
|
|
1526
|
-
const { isSmallScreen: e } = $(), { t: o } =
|
|
1530
|
+
function So() {
|
|
1531
|
+
const { isSmallScreen: e } = $(), { t: o } = G(), {
|
|
1527
1532
|
submitCsat: t,
|
|
1528
1533
|
isCsatRequested: n,
|
|
1529
1534
|
isCsatSubmitted: s,
|
|
1530
1535
|
submittedScore: i,
|
|
1531
1536
|
submittedFeedback: a
|
|
1532
|
-
} =
|
|
1533
|
-
c((
|
|
1534
|
-
},
|
|
1537
|
+
} = It(), [l, c] = P(null), [m, h] = P(null), y = (g) => {
|
|
1538
|
+
c((v) => v === g ? null : g);
|
|
1539
|
+
}, w = () => {
|
|
1535
1540
|
l && t({
|
|
1536
1541
|
score: l,
|
|
1537
|
-
feedback:
|
|
1542
|
+
feedback: m || void 0
|
|
1538
1543
|
});
|
|
1539
1544
|
};
|
|
1540
1545
|
return !n && !s ? null : /* @__PURE__ */ d("div", { className: "w-1/2 min-w-80 max-w-96 mx-auto overflow-hidden", children: [
|
|
@@ -1543,30 +1548,30 @@ function Co() {
|
|
|
1543
1548
|
"div",
|
|
1544
1549
|
{
|
|
1545
1550
|
dir: "ltr",
|
|
1546
|
-
className:
|
|
1551
|
+
className: p(
|
|
1547
1552
|
"flex gap-4 justify-between pt-2 px-2 pb-2",
|
|
1548
1553
|
"transition-all",
|
|
1549
1554
|
s && "gap-0 justify-center"
|
|
1550
1555
|
),
|
|
1551
|
-
children:
|
|
1556
|
+
children: No.map((g) => /* @__PURE__ */ r(
|
|
1552
1557
|
S,
|
|
1553
1558
|
{
|
|
1554
|
-
variant:
|
|
1559
|
+
variant: g.value === l ? "secondary" : "ghost",
|
|
1555
1560
|
size: "selfless",
|
|
1556
|
-
className:
|
|
1561
|
+
className: p(
|
|
1557
1562
|
"transition-all overflow-hidden",
|
|
1558
1563
|
"text-2xl size-8 rounded-full",
|
|
1559
1564
|
"opacity-35",
|
|
1560
1565
|
"hover:opacity-100",
|
|
1561
1566
|
!l && "opacity-100",
|
|
1562
|
-
|
|
1563
|
-
s &&
|
|
1564
|
-
s &&
|
|
1567
|
+
g.value === l && "opacity-100",
|
|
1568
|
+
s && g.value !== i && "opacity-0 size-0",
|
|
1569
|
+
s && g.value === i && "opacity-100 size-fit text-4xl"
|
|
1565
1570
|
),
|
|
1566
|
-
onClick: n ? () =>
|
|
1567
|
-
children:
|
|
1571
|
+
onClick: n ? () => y(g.value) : void 0,
|
|
1572
|
+
children: g.emoji
|
|
1568
1573
|
},
|
|
1569
|
-
|
|
1574
|
+
g.value
|
|
1570
1575
|
))
|
|
1571
1576
|
}
|
|
1572
1577
|
),
|
|
@@ -1575,7 +1580,7 @@ function Co() {
|
|
|
1575
1580
|
"textarea",
|
|
1576
1581
|
{
|
|
1577
1582
|
rows: 3,
|
|
1578
|
-
className:
|
|
1583
|
+
className: p(
|
|
1579
1584
|
"transition-all",
|
|
1580
1585
|
"max-h-40 [field-sizing:content]",
|
|
1581
1586
|
"w-full resize-none",
|
|
@@ -1585,8 +1590,8 @@ function Co() {
|
|
|
1585
1590
|
e ? "text-[16px]" : "text-sm",
|
|
1586
1591
|
s && "text-center"
|
|
1587
1592
|
),
|
|
1588
|
-
value: s ? a || "" :
|
|
1589
|
-
onChange: n ? (
|
|
1593
|
+
value: s ? a || "" : m || "",
|
|
1594
|
+
onChange: n ? (g) => h(g.target.value) : void 0,
|
|
1590
1595
|
readOnly: s,
|
|
1591
1596
|
placeholder: n ? o("csat_feedback_placeholder") : void 0
|
|
1592
1597
|
}
|
|
@@ -1595,21 +1600,21 @@ function Co() {
|
|
|
1595
1600
|
S,
|
|
1596
1601
|
{
|
|
1597
1602
|
size: "fit",
|
|
1598
|
-
onClick:
|
|
1603
|
+
onClick: w,
|
|
1599
1604
|
disabled: !l,
|
|
1600
|
-
className:
|
|
1605
|
+
className: p(
|
|
1601
1606
|
"transition-all overflow-hidden",
|
|
1602
1607
|
"rounded-full size-8 flex items-center justify-center p-0",
|
|
1603
1608
|
s && "opacity-0 size-0"
|
|
1604
1609
|
),
|
|
1605
|
-
children: /* @__PURE__ */ r(
|
|
1610
|
+
children: /* @__PURE__ */ r(Pt, { className: "size-4" })
|
|
1606
1611
|
}
|
|
1607
1612
|
)
|
|
1608
1613
|
] }) }, "feedback-box") }),
|
|
1609
1614
|
/* @__PURE__ */ r(
|
|
1610
1615
|
"div",
|
|
1611
1616
|
{
|
|
1612
|
-
className:
|
|
1617
|
+
className: p("h-0 transition-[height]", s && "h-4")
|
|
1613
1618
|
}
|
|
1614
1619
|
)
|
|
1615
1620
|
] });
|
|
@@ -1626,21 +1631,21 @@ function Ee({
|
|
|
1626
1631
|
return /* @__PURE__ */ r(
|
|
1627
1632
|
S,
|
|
1628
1633
|
{
|
|
1629
|
-
...
|
|
1634
|
+
...x("chat/suggested_reply_btn"),
|
|
1630
1635
|
size: "sm",
|
|
1631
|
-
className:
|
|
1636
|
+
className: p("rounded-xl w-fit", o),
|
|
1632
1637
|
...t,
|
|
1633
1638
|
onClick: s,
|
|
1634
1639
|
children: e
|
|
1635
1640
|
}
|
|
1636
1641
|
);
|
|
1637
1642
|
}
|
|
1638
|
-
function
|
|
1639
|
-
const { t: e } =
|
|
1643
|
+
function _o() {
|
|
1644
|
+
const { t: e } = G(), o = [e("i_need_more_help"), e("this_was_helpful")];
|
|
1640
1645
|
return /* @__PURE__ */ r(
|
|
1641
1646
|
"div",
|
|
1642
1647
|
{
|
|
1643
|
-
...
|
|
1648
|
+
...x("chat/might_solve_user_issue_suggested_replies_container"),
|
|
1644
1649
|
className: "flex items-center gap-2 p-2 pb-0 flex-wrap",
|
|
1645
1650
|
children: o.map((t) => /* @__PURE__ */ r(
|
|
1646
1651
|
Ee,
|
|
@@ -1653,11 +1658,11 @@ function zo() {
|
|
|
1653
1658
|
}
|
|
1654
1659
|
);
|
|
1655
1660
|
}
|
|
1656
|
-
function
|
|
1661
|
+
function yt() {
|
|
1657
1662
|
const { sessionState: e } = U(), { chatFooterItems: o } = z(), t = !!e.session && !e.session.isOpened, n = !t;
|
|
1658
1663
|
return /* @__PURE__ */ r(D, { mode: "wait", children: o == null ? void 0 : o.map((s, i) => s.showWhenSessionIsOpen === !1 && n || s.showWhenSessionIsResolved === !1 && t ? null : /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r("div", { className: "pb-2 text-center text-xs", children: /* @__PURE__ */ r(Se, { children: s.message }) }) }, `${s.message}-${i}`)) });
|
|
1659
1664
|
}
|
|
1660
|
-
function
|
|
1665
|
+
function Io({
|
|
1661
1666
|
file: { status: e, file: o, error: t },
|
|
1662
1667
|
onCancel: n
|
|
1663
1668
|
}) {
|
|
@@ -1672,9 +1677,9 @@ function No({
|
|
|
1672
1677
|
const a = () => {
|
|
1673
1678
|
switch (e) {
|
|
1674
1679
|
case "uploading":
|
|
1675
|
-
return /* @__PURE__ */ r(
|
|
1680
|
+
return /* @__PURE__ */ r(Rr, { className: "size-4 animate-spin" });
|
|
1676
1681
|
case "error":
|
|
1677
|
-
return /* @__PURE__ */ r(
|
|
1682
|
+
return /* @__PURE__ */ r(Er, { className: "size-4 text-destructive" });
|
|
1678
1683
|
default:
|
|
1679
1684
|
return null;
|
|
1680
1685
|
}
|
|
@@ -1687,7 +1692,7 @@ function No({
|
|
|
1687
1692
|
className: "object-cover bg-secondary size-full",
|
|
1688
1693
|
alt: o.name
|
|
1689
1694
|
}
|
|
1690
|
-
) : c === "audio" ? /* @__PURE__ */ r(
|
|
1695
|
+
) : c === "audio" ? /* @__PURE__ */ r(Pr, { className: "size-4 text-muted-foreground" }) : c === "video" ? /* @__PURE__ */ r(jr, { className: "size-4 text-muted-foreground" }) : o.type === "application/pdf" ? /* @__PURE__ */ r(Dt, { className: "size-4 text-muted-foreground" }) : Ft({ type: o.type, name: o.name }) ? /* @__PURE__ */ r(Et, { className: "size-4 text-muted-foreground" }) : /* @__PURE__ */ r(Ar, { className: "size-4 text-muted-foreground" });
|
|
1691
1696
|
};
|
|
1692
1697
|
return /* @__PURE__ */ r(
|
|
1693
1698
|
oe,
|
|
@@ -1700,7 +1705,7 @@ function No({
|
|
|
1700
1705
|
children: /* @__PURE__ */ d(
|
|
1701
1706
|
"div",
|
|
1702
1707
|
{
|
|
1703
|
-
className:
|
|
1708
|
+
className: p(
|
|
1704
1709
|
e === "uploading" && "opacity-50",
|
|
1705
1710
|
"group",
|
|
1706
1711
|
"size-12 border rounded-2xl overflow-hidden relative",
|
|
@@ -1712,7 +1717,7 @@ function No({
|
|
|
1712
1717
|
"button",
|
|
1713
1718
|
{
|
|
1714
1719
|
type: "button",
|
|
1715
|
-
className:
|
|
1720
|
+
className: p(
|
|
1716
1721
|
"absolute bg-black/50 inset-0 size-full z-10 opacity-0",
|
|
1717
1722
|
"flex items-center justify-center",
|
|
1718
1723
|
"opacity-0 group-hover:opacity-100 transition"
|
|
@@ -1728,25 +1733,25 @@ function No({
|
|
|
1728
1733
|
}
|
|
1729
1734
|
);
|
|
1730
1735
|
}
|
|
1731
|
-
const
|
|
1732
|
-
function
|
|
1736
|
+
const To = 25 * 1024 * 1024;
|
|
1737
|
+
function Mo() {
|
|
1733
1738
|
var R;
|
|
1734
|
-
const { isSmallScreen: e } = $(), o = B(null), { sendMessage: t } = O(), { sessionState: n } = U(), { disableSendingWhenAwaitingAIReply: s } = z(), { t: i } =
|
|
1739
|
+
const { isSmallScreen: e } = $(), o = B(null), { sendMessage: t } = O(), { sessionState: n } = U(), { disableSendingWhenAwaitingAIReply: s } = z(), { t: i } = G(), [a, l] = P(""), {
|
|
1735
1740
|
allFiles: c,
|
|
1736
|
-
emptyTheFiles:
|
|
1737
|
-
handleCancelUpload:
|
|
1738
|
-
appendFiles:
|
|
1739
|
-
isUploading:
|
|
1740
|
-
successFiles:
|
|
1741
|
-
} =
|
|
1742
|
-
|
|
1743
|
-
}, N = !a.trim() &&
|
|
1741
|
+
emptyTheFiles: m,
|
|
1742
|
+
handleCancelUpload: h,
|
|
1743
|
+
appendFiles: y,
|
|
1744
|
+
isUploading: w,
|
|
1745
|
+
successFiles: g
|
|
1746
|
+
} = lr(), v = !!((R = n.session) != null && R.isHandedOff), { isAwaitingBotReply: C } = Tt(), T = s !== !1 && C, b = (u) => {
|
|
1747
|
+
y(u);
|
|
1748
|
+
}, N = !a.trim() && g.length === 0, _ = async () => {
|
|
1744
1749
|
if (T || N) return;
|
|
1745
|
-
|
|
1746
|
-
const
|
|
1750
|
+
w && console.info("please wait for the file(s) to upload");
|
|
1751
|
+
const u = a.trim();
|
|
1747
1752
|
t({
|
|
1748
|
-
content:
|
|
1749
|
-
attachments:
|
|
1753
|
+
content: u,
|
|
1754
|
+
attachments: g.flatMap(
|
|
1750
1755
|
(I) => I.fileUrl ? [
|
|
1751
1756
|
{
|
|
1752
1757
|
url: I.fileUrl,
|
|
@@ -1757,50 +1762,50 @@ function _o() {
|
|
|
1757
1762
|
}
|
|
1758
1763
|
] : []
|
|
1759
1764
|
)
|
|
1760
|
-
}), l(""),
|
|
1765
|
+
}), l(""), m();
|
|
1761
1766
|
}, {
|
|
1762
1767
|
getRootProps: E,
|
|
1763
|
-
getInputProps:
|
|
1768
|
+
getInputProps: f,
|
|
1764
1769
|
open: M
|
|
1765
|
-
} =
|
|
1766
|
-
onDrop:
|
|
1770
|
+
} = Vr({
|
|
1771
|
+
onDrop: b,
|
|
1767
1772
|
noClick: !0,
|
|
1768
1773
|
onDropRejected() {
|
|
1769
1774
|
console.error("unsupported file type, or the file is too large");
|
|
1770
1775
|
},
|
|
1771
|
-
maxSize:
|
|
1772
|
-
accept:
|
|
1776
|
+
maxSize: To,
|
|
1777
|
+
accept: v ? {
|
|
1773
1778
|
"text/*": [".txt"],
|
|
1774
1779
|
"image/*": [".png", ".jpg", ".jpeg", ".gif"],
|
|
1775
1780
|
"application/pdf": [".pdf"],
|
|
1776
|
-
...
|
|
1777
|
-
...
|
|
1781
|
+
...gt,
|
|
1782
|
+
...ut
|
|
1778
1783
|
} : {
|
|
1779
1784
|
"image/png": [".png"],
|
|
1780
1785
|
"image/jpeg": [".jpg", ".jpeg"],
|
|
1781
1786
|
"image/gif": [".gif"],
|
|
1782
1787
|
"image/webp": [".webp"],
|
|
1783
1788
|
"application/pdf": [".pdf"],
|
|
1784
|
-
...
|
|
1785
|
-
...
|
|
1789
|
+
...gt,
|
|
1790
|
+
...ut
|
|
1786
1791
|
}
|
|
1787
|
-
}), j = (
|
|
1788
|
-
const I =
|
|
1789
|
-
I && I.files.length > 0 &&
|
|
1792
|
+
}), j = (u) => {
|
|
1793
|
+
const I = u.clipboardData;
|
|
1794
|
+
I && I.files.length > 0 && b(Array.from(I.files));
|
|
1790
1795
|
};
|
|
1791
1796
|
return /* @__PURE__ */ d(
|
|
1792
1797
|
"div",
|
|
1793
1798
|
{
|
|
1794
|
-
...
|
|
1799
|
+
...x("chat/input_box/root"),
|
|
1795
1800
|
className: "p-2 relative space-y-1",
|
|
1796
1801
|
...E(),
|
|
1797
1802
|
children: [
|
|
1798
|
-
/* @__PURE__ */ r("input", { ...
|
|
1803
|
+
/* @__PURE__ */ r("input", { ...f() }),
|
|
1799
1804
|
/* @__PURE__ */ d(
|
|
1800
1805
|
"div",
|
|
1801
1806
|
{
|
|
1802
|
-
...
|
|
1803
|
-
className:
|
|
1807
|
+
...x("chat/input_box/inner_root"),
|
|
1808
|
+
className: p(
|
|
1804
1809
|
"transition-all",
|
|
1805
1810
|
"bg-white",
|
|
1806
1811
|
// 'border',
|
|
@@ -1811,33 +1816,33 @@ function _o() {
|
|
|
1811
1816
|
/* @__PURE__ */ d(
|
|
1812
1817
|
"div",
|
|
1813
1818
|
{
|
|
1814
|
-
...
|
|
1819
|
+
...x("chat/input_box/textarea_and_attachments_container"),
|
|
1815
1820
|
className: "flex flex-col gap-2",
|
|
1816
1821
|
children: [
|
|
1817
1822
|
c.length > 0 && /* @__PURE__ */ r(
|
|
1818
1823
|
"div",
|
|
1819
1824
|
{
|
|
1820
|
-
...
|
|
1825
|
+
...x("chat/input_box/attachments_container"),
|
|
1821
1826
|
className: "flex items-center gap-1",
|
|
1822
|
-
children: /* @__PURE__ */ r(D, { mode: "popLayout", children: c.map((
|
|
1823
|
-
|
|
1827
|
+
children: /* @__PURE__ */ r(D, { mode: "popLayout", children: c.map((u) => /* @__PURE__ */ r(k, { snapExit: !0, children: /* @__PURE__ */ r(
|
|
1828
|
+
Io,
|
|
1824
1829
|
{
|
|
1825
|
-
onCancel: () =>
|
|
1826
|
-
file:
|
|
1830
|
+
onCancel: () => h(u.id),
|
|
1831
|
+
file: u
|
|
1827
1832
|
}
|
|
1828
|
-
) },
|
|
1833
|
+
) }, u.id)) })
|
|
1829
1834
|
}
|
|
1830
1835
|
),
|
|
1831
1836
|
/* @__PURE__ */ r(
|
|
1832
1837
|
"textarea",
|
|
1833
1838
|
{
|
|
1834
|
-
...
|
|
1839
|
+
...x("chat/input_box/textarea"),
|
|
1835
1840
|
onPaste: j,
|
|
1836
1841
|
ref: o,
|
|
1837
1842
|
id: "chat-input",
|
|
1838
1843
|
value: a,
|
|
1839
1844
|
rows: 3,
|
|
1840
|
-
className:
|
|
1845
|
+
className: p(
|
|
1841
1846
|
/** Match the border radius of the container */
|
|
1842
1847
|
// INPUT_CONTAINER_B_RADIUS,
|
|
1843
1848
|
"max-h-16 [field-sizing:content]",
|
|
@@ -1848,9 +1853,9 @@ function _o() {
|
|
|
1848
1853
|
// 16px on mobiles prevents auto-zoom on the input when focused
|
|
1849
1854
|
e ? "text-[16px]" : "text-sm"
|
|
1850
1855
|
),
|
|
1851
|
-
onChange: (
|
|
1852
|
-
onKeyDown: async (
|
|
1853
|
-
|
|
1856
|
+
onChange: (u) => l(u.target.value),
|
|
1857
|
+
onKeyDown: async (u) => {
|
|
1858
|
+
u.key === "Enter" && !u.shiftKey && (u.preventDefault(), _());
|
|
1854
1859
|
},
|
|
1855
1860
|
placeholder: i("write_a_message_placeholder")
|
|
1856
1861
|
}
|
|
@@ -1871,10 +1876,10 @@ function _o() {
|
|
|
1871
1876
|
onClick: M,
|
|
1872
1877
|
size: "fit",
|
|
1873
1878
|
variant: "ghost",
|
|
1874
|
-
className:
|
|
1879
|
+
className: p(
|
|
1875
1880
|
"rounded-full size-8 flex items-center justify-center p-0 overflow-hidden"
|
|
1876
1881
|
),
|
|
1877
|
-
children: /* @__PURE__ */ r(D, { mode: "wait", children: T ? /* @__PURE__ */ r(k, { children: /* @__PURE__ */ r(
|
|
1882
|
+
children: /* @__PURE__ */ r(D, { mode: "wait", children: T ? /* @__PURE__ */ r(k, { children: /* @__PURE__ */ r(mt, { className: "size-4 opacity-50" }) }, "paper-clip-disabled") : /* @__PURE__ */ r(k, { children: /* @__PURE__ */ r(mt, { className: "size-4" }) }, "paper-clip") })
|
|
1878
1883
|
}
|
|
1879
1884
|
)
|
|
1880
1885
|
}
|
|
@@ -1884,9 +1889,9 @@ function _o() {
|
|
|
1884
1889
|
{
|
|
1885
1890
|
size: "fit",
|
|
1886
1891
|
onClick: _,
|
|
1887
|
-
disabled: T ||
|
|
1892
|
+
disabled: T || w || N,
|
|
1888
1893
|
className: "rounded-full size-8 flex items-center justify-center p-0",
|
|
1889
|
-
children: /* @__PURE__ */ r(D, { mode: "wait", children: T ||
|
|
1894
|
+
children: /* @__PURE__ */ r(D, { mode: "wait", children: T || w ? /* @__PURE__ */ r(k, { snapExit: !0, children: /* @__PURE__ */ r(Dr, { className: "size-4 animate-spin animate-iteration-infinite" }) }, "loading") : /* @__PURE__ */ r(k, { snapExit: !0, children: /* @__PURE__ */ r(Pt, { className: "size-4" }) }, "send") })
|
|
1890
1895
|
}
|
|
1891
1896
|
) })
|
|
1892
1897
|
] })
|
|
@@ -1897,31 +1902,31 @@ function _o() {
|
|
|
1897
1902
|
}
|
|
1898
1903
|
);
|
|
1899
1904
|
}
|
|
1900
|
-
function
|
|
1901
|
-
const { widgetCtx: e } = A(), { router: o } = z(), { canCreateNewSession: t } = U(), { toSessionsScreen: n } = H(), { t: s } =
|
|
1905
|
+
function kt() {
|
|
1906
|
+
const { widgetCtx: e } = A(), { router: o } = z(), { canCreateNewSession: t } = U(), { toSessionsScreen: n } = H(), { t: s } = G();
|
|
1902
1907
|
return /* @__PURE__ */ r(J, { 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") }) });
|
|
1903
1908
|
}
|
|
1904
|
-
function
|
|
1905
|
-
const { t: e } =
|
|
1909
|
+
function Do() {
|
|
1910
|
+
const { t: e } = G(), { isCsatRequested: o, isCsatSubmitted: t } = It();
|
|
1906
1911
|
return /* @__PURE__ */ r("div", { className: "p-2", children: /* @__PURE__ */ r("div", { className: "p-2 bg-muted rounded-3xl", children: /* @__PURE__ */ r(D, { mode: "wait", children: o || t ? /* @__PURE__ */ d(W, { children: [
|
|
1907
|
-
/* @__PURE__ */ r(
|
|
1908
|
-
/* @__PURE__ */ r(D, { mode: "wait", children: t && /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r(
|
|
1912
|
+
/* @__PURE__ */ r(So, {}),
|
|
1913
|
+
/* @__PURE__ */ r(D, { mode: "wait", children: t && /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r(kt, {}) }, "new-conv-or-back-to-convs-button") })
|
|
1909
1914
|
] }, "csat") : /* @__PURE__ */ d(W, { children: [
|
|
1910
1915
|
/* @__PURE__ */ d("div", { className: "ps-2 flex items-center gap-1 pb-2", children: [
|
|
1911
|
-
/* @__PURE__ */ r(
|
|
1916
|
+
/* @__PURE__ */ r(Rt, { className: "size-4 text-emerald-600" }),
|
|
1912
1917
|
/* @__PURE__ */ r("h2", { className: "text-sm font-medium", children: e("your_issue_has_been_resolved") })
|
|
1913
1918
|
] }),
|
|
1914
|
-
/* @__PURE__ */ r(
|
|
1919
|
+
/* @__PURE__ */ r(kt, {})
|
|
1915
1920
|
] }, "session-closed") }) }) });
|
|
1916
1921
|
}
|
|
1917
|
-
function
|
|
1922
|
+
function Eo() {
|
|
1918
1923
|
var a;
|
|
1919
1924
|
const { initialQuestions: e, initialQuestionsPosition: o, thisWasHelpfulOrNot: t } = z(), { sessionState: n } = U(), { messagesState: s } = O(), i = s.messages.length === 0;
|
|
1920
1925
|
return /* @__PURE__ */ r("footer", { children: /* @__PURE__ */ r(D, { mode: "wait", children: n.session && !((a = n.session) != null && a.isOpened) ? /* @__PURE__ */ d(W, { children: [
|
|
1921
|
-
/* @__PURE__ */ r(
|
|
1922
|
-
/* @__PURE__ */ r(
|
|
1926
|
+
/* @__PURE__ */ r(Do, {}),
|
|
1927
|
+
/* @__PURE__ */ r(yt, {})
|
|
1923
1928
|
] }, "session-closed") : /* @__PURE__ */ d(W, { children: [
|
|
1924
|
-
s.lastAIResMightSolveUserIssue && (t == null ? void 0 : t.enabled) !== !1 && /* @__PURE__ */ r(
|
|
1929
|
+
s.lastAIResMightSolveUserIssue && (t == null ? void 0 : t.enabled) !== !1 && /* @__PURE__ */ r(_o, {}),
|
|
1925
1930
|
i && e && o !== "below-initial-messages" && /* @__PURE__ */ r("div", { className: "flex items-center flex-row justify-end gap-2 flex-wrap px-2", children: e == null ? void 0 : e.map((l, c) => /* @__PURE__ */ r(
|
|
1926
1931
|
Ee,
|
|
1927
1932
|
{
|
|
@@ -1929,11 +1934,11 @@ function To() {
|
|
|
1929
1934
|
},
|
|
1930
1935
|
`${l}-${c}`
|
|
1931
1936
|
)) }),
|
|
1932
|
-
/* @__PURE__ */ r(
|
|
1933
|
-
/* @__PURE__ */ r(
|
|
1937
|
+
/* @__PURE__ */ r(Mo, {}),
|
|
1938
|
+
/* @__PURE__ */ r(yt, {})
|
|
1934
1939
|
] }, "chat-input") }) });
|
|
1935
1940
|
}
|
|
1936
|
-
function
|
|
1941
|
+
function Ro({
|
|
1937
1942
|
isFirstInGroup: e,
|
|
1938
1943
|
isLastInGroup: o,
|
|
1939
1944
|
isAloneInGroup: t,
|
|
@@ -1975,7 +1980,7 @@ function Mo({
|
|
|
1975
1980
|
}
|
|
1976
1981
|
);
|
|
1977
1982
|
}
|
|
1978
|
-
function
|
|
1983
|
+
function tr({
|
|
1979
1984
|
messages: e,
|
|
1980
1985
|
className: o,
|
|
1981
1986
|
containerClassName: t
|
|
@@ -1997,7 +2002,7 @@ function Jt({
|
|
|
1997
2002
|
return console.error(c), null;
|
|
1998
2003
|
}
|
|
1999
2004
|
})();
|
|
2000
|
-
return i ? /* @__PURE__ */ r("div", { className: t, children: /* @__PURE__ */ r("span", { className:
|
|
2005
|
+
return i ? /* @__PURE__ */ r("div", { className: t, children: /* @__PURE__ */ r("span", { className: p("text-xs text-muted-foreground", o), children: i }) }) : null;
|
|
2001
2006
|
}
|
|
2002
2007
|
function pe({
|
|
2003
2008
|
messages: e,
|
|
@@ -2007,39 +2012,39 @@ function pe({
|
|
|
2007
2012
|
return /* @__PURE__ */ d(
|
|
2008
2013
|
"div",
|
|
2009
2014
|
{
|
|
2010
|
-
...
|
|
2011
|
-
className:
|
|
2015
|
+
...x("chat/agent_msg_group/root"),
|
|
2016
|
+
className: p("flex items-end gap-2"),
|
|
2012
2017
|
children: [
|
|
2013
2018
|
/* @__PURE__ */ r(oe, { content: o == null ? void 0 : o.name, side: "right", align: "end", children: /* @__PURE__ */ r(
|
|
2014
2019
|
ve,
|
|
2015
2020
|
{
|
|
2016
|
-
...
|
|
2021
|
+
...x("chat/agent_msg_group/root/avatar"),
|
|
2017
2022
|
agent: o,
|
|
2018
2023
|
className: "hidden"
|
|
2019
2024
|
}
|
|
2020
2025
|
) }),
|
|
2021
|
-
/* @__PURE__ */ d("div", { className:
|
|
2026
|
+
/* @__PURE__ */ d("div", { className: p("flex-1 flex flex-col gap-1"), children: [
|
|
2022
2027
|
/* @__PURE__ */ d(
|
|
2023
2028
|
"div",
|
|
2024
2029
|
{
|
|
2025
|
-
...
|
|
2026
|
-
className:
|
|
2030
|
+
...x("chat/agent_msg_group/avatar_and_msgs/root"),
|
|
2031
|
+
className: p("flex items-end gap-2"),
|
|
2027
2032
|
children: [
|
|
2028
2033
|
/* @__PURE__ */ r(oe, { content: o == null ? void 0 : o.name, side: "right", align: "end", children: /* @__PURE__ */ r(
|
|
2029
2034
|
ve,
|
|
2030
2035
|
{
|
|
2031
|
-
...
|
|
2036
|
+
...x("chat/agent_msg_group/avatar_and_msgs/avatar"),
|
|
2032
2037
|
agent: o
|
|
2033
2038
|
}
|
|
2034
2039
|
) }),
|
|
2035
2040
|
/* @__PURE__ */ d(
|
|
2036
2041
|
"div",
|
|
2037
2042
|
{
|
|
2038
|
-
...
|
|
2039
|
-
className:
|
|
2043
|
+
...x("chat/agent_msg_group/avatar_and_msgs/msgs"),
|
|
2044
|
+
className: p("flex-1 flex flex-col gap-1"),
|
|
2040
2045
|
children: [
|
|
2041
2046
|
e.map((n, s, i) => /* @__PURE__ */ r(
|
|
2042
|
-
|
|
2047
|
+
Ro,
|
|
2043
2048
|
{
|
|
2044
2049
|
isFirstInGroup: s === 0,
|
|
2045
2050
|
isLastInGroup: s === i.length - 1,
|
|
@@ -2048,7 +2053,7 @@ function pe({
|
|
|
2048
2053
|
},
|
|
2049
2054
|
n.id
|
|
2050
2055
|
)),
|
|
2051
|
-
/* @__PURE__ */ r(
|
|
2056
|
+
/* @__PURE__ */ r(tr, { messages: e })
|
|
2052
2057
|
]
|
|
2053
2058
|
}
|
|
2054
2059
|
)
|
|
@@ -2058,8 +2063,8 @@ function pe({
|
|
|
2058
2063
|
t && t.length > 0 && /* @__PURE__ */ r(
|
|
2059
2064
|
"div",
|
|
2060
2065
|
{
|
|
2061
|
-
...
|
|
2062
|
-
className:
|
|
2066
|
+
...x("chat/agent_msg_group/suggestions"),
|
|
2067
|
+
className: p("flex flex-col gap-1 ps-8"),
|
|
2063
2068
|
children: t == null ? void 0 : t.map((n, s) => /* @__PURE__ */ r(
|
|
2064
2069
|
Ee,
|
|
2065
2070
|
{
|
|
@@ -2074,14 +2079,14 @@ function pe({
|
|
|
2074
2079
|
}
|
|
2075
2080
|
);
|
|
2076
2081
|
}
|
|
2077
|
-
function
|
|
2082
|
+
function Po() {
|
|
2078
2083
|
var t, n;
|
|
2079
2084
|
const e = X();
|
|
2080
2085
|
if ((t = e.session) != null && t.isOpened || !e.session) return null;
|
|
2081
2086
|
const o = (n = e.config.customComponents) == null ? void 0 : n.onSessionResolved;
|
|
2082
2087
|
return o ? /* @__PURE__ */ r(o, { ...e }) : null;
|
|
2083
2088
|
}
|
|
2084
|
-
function
|
|
2089
|
+
function jo({
|
|
2085
2090
|
message: e,
|
|
2086
2091
|
isFirstInGroup: o,
|
|
2087
2092
|
isLastInGroup: t,
|
|
@@ -2091,18 +2096,18 @@ function Eo({
|
|
|
2091
2096
|
return /* @__PURE__ */ d(
|
|
2092
2097
|
"div",
|
|
2093
2098
|
{
|
|
2094
|
-
...
|
|
2099
|
+
...x("chat/user_msg/root"),
|
|
2095
2100
|
className: "w-5/6 flex flex-col items-end gap-1",
|
|
2096
2101
|
children: [
|
|
2097
|
-
e.attachments && e.attachments.length > 0 && /* @__PURE__ */ r("div", { className: "w-full flex gap-1 flex-wrap justify-end", children: (s = e.attachments) == null ? void 0 : s.map((i) => /* @__PURE__ */ r(
|
|
2102
|
+
e.attachments && e.attachments.length > 0 && /* @__PURE__ */ r("div", { className: "w-full flex gap-1 flex-wrap justify-end", children: (s = e.attachments) == null ? void 0 : s.map((i) => /* @__PURE__ */ r(Xt, { attachment: i }, i.id)) }),
|
|
2098
2103
|
e.content.length > 0 && /* @__PURE__ */ r(
|
|
2099
2104
|
"div",
|
|
2100
2105
|
{
|
|
2101
|
-
...
|
|
2106
|
+
...x("chat/user_msg/msg"),
|
|
2102
2107
|
"data-first": o,
|
|
2103
2108
|
"data-last": t,
|
|
2104
2109
|
"data-alone": n,
|
|
2105
|
-
className:
|
|
2110
|
+
className: p(
|
|
2106
2111
|
"transition-all",
|
|
2107
2112
|
"w-fit py-3 px-4 rounded-3xl text-sm",
|
|
2108
2113
|
"bg-primary text-primary-foreground",
|
|
@@ -2121,17 +2126,17 @@ function Eo({
|
|
|
2121
2126
|
}
|
|
2122
2127
|
);
|
|
2123
2128
|
}
|
|
2124
|
-
function
|
|
2129
|
+
function Ao({
|
|
2125
2130
|
messages: e
|
|
2126
2131
|
}) {
|
|
2127
2132
|
return /* @__PURE__ */ d(
|
|
2128
2133
|
"div",
|
|
2129
2134
|
{
|
|
2130
|
-
...
|
|
2131
|
-
className:
|
|
2135
|
+
...x("chat/user_msg_group/root"),
|
|
2136
|
+
className: p("group", "flex flex-col gap-1 justify-end items-end"),
|
|
2132
2137
|
children: [
|
|
2133
2138
|
e.map((o, t, n) => /* @__PURE__ */ r(
|
|
2134
|
-
|
|
2139
|
+
jo,
|
|
2135
2140
|
{
|
|
2136
2141
|
message: o,
|
|
2137
2142
|
isFirstInGroup: t === 0,
|
|
@@ -2140,34 +2145,34 @@ function Ro({
|
|
|
2140
2145
|
},
|
|
2141
2146
|
o.id
|
|
2142
2147
|
)),
|
|
2143
|
-
/* @__PURE__ */ r(
|
|
2148
|
+
/* @__PURE__ */ r(tr, { messages: e, containerClassName: "ms-auto" })
|
|
2144
2149
|
]
|
|
2145
2150
|
}
|
|
2146
2151
|
);
|
|
2147
2152
|
}
|
|
2148
|
-
function
|
|
2153
|
+
function Oo(e) {
|
|
2149
2154
|
const o = [];
|
|
2150
2155
|
let t = null;
|
|
2151
2156
|
return e.forEach((n) => {
|
|
2152
|
-
var s, i, a, l, c,
|
|
2157
|
+
var s, i, a, l, c, m;
|
|
2153
2158
|
// Start a new group if the type changes
|
|
2154
2159
|
(((s = t == null ? void 0 : t[0]) == null ? void 0 : s.type) !== n.type || // Start a new group if the agent changes
|
|
2155
|
-
((i = t[0]) == null ? void 0 : i.type) === "AGENT" && n.type === "AGENT" && (((a = n.agent) == null ? void 0 : a.id) !== ((l = t[0].agent) == null ? void 0 : l.id) || ((c = n.agent) == null ? void 0 : c.name) !== ((
|
|
2160
|
+
((i = t[0]) == null ? void 0 : i.type) === "AGENT" && n.type === "AGENT" && (((a = n.agent) == null ? void 0 : a.id) !== ((l = t[0].agent) == null ? void 0 : l.id) || ((c = n.agent) == null ? void 0 : c.name) !== ((m = t[0].agent) == null ? void 0 : m.name))) && (t = [], o.push(t)), t.push(n);
|
|
2156
2161
|
}), o;
|
|
2157
2162
|
}
|
|
2158
|
-
function
|
|
2163
|
+
function Fo(e) {
|
|
2159
2164
|
var o;
|
|
2160
2165
|
return ((o = e == null ? void 0 : e[0]) == null ? void 0 : o.type) === "USER";
|
|
2161
2166
|
}
|
|
2162
|
-
function
|
|
2167
|
+
function Ho(e) {
|
|
2163
2168
|
var o;
|
|
2164
2169
|
return ((o = e == null ? void 0 : e[0]) == null ? void 0 : o.type) === "AI";
|
|
2165
2170
|
}
|
|
2166
|
-
function
|
|
2171
|
+
function Wo(e) {
|
|
2167
2172
|
var o;
|
|
2168
2173
|
return ((o = e == null ? void 0 : e[0]) == null ? void 0 : o.type) === "AGENT";
|
|
2169
2174
|
}
|
|
2170
|
-
function
|
|
2175
|
+
function Lo() {
|
|
2171
2176
|
const {
|
|
2172
2177
|
messagesState: { messages: e }
|
|
2173
2178
|
} = O(), {
|
|
@@ -2193,7 +2198,7 @@ function Fo() {
|
|
|
2193
2198
|
}
|
|
2194
2199
|
) });
|
|
2195
2200
|
}
|
|
2196
|
-
function
|
|
2201
|
+
function $o() {
|
|
2197
2202
|
const {
|
|
2198
2203
|
messagesState: { messages: e }
|
|
2199
2204
|
} = O(), { chatBannerItems: o } = z();
|
|
@@ -2201,7 +2206,7 @@ function Ho() {
|
|
|
2201
2206
|
({ message: t, persistent: n }, s) => e.length > 0 && !n ? null : /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(Se, { children: t }) }, `${t}-${s}`)
|
|
2202
2207
|
) });
|
|
2203
2208
|
}
|
|
2204
|
-
function
|
|
2209
|
+
function Bo() {
|
|
2205
2210
|
const {
|
|
2206
2211
|
messagesState: { messages: e }
|
|
2207
2212
|
} = O(), o = z(), {
|
|
@@ -2229,24 +2234,24 @@ function Wo() {
|
|
|
2229
2234
|
}
|
|
2230
2235
|
) });
|
|
2231
2236
|
}
|
|
2232
|
-
function
|
|
2237
|
+
function Yo() {
|
|
2233
2238
|
var t;
|
|
2234
2239
|
const e = X(), o = (t = e.config.customComponents) == null ? void 0 : t.chatBottomComponents;
|
|
2235
2240
|
return o ? /* @__PURE__ */ r("div", { children: o.map(({ key: n, component: s }) => /* @__PURE__ */ r(s, { ...e }, n)) }) : null;
|
|
2236
2241
|
}
|
|
2237
|
-
function
|
|
2242
|
+
function Uo() {
|
|
2238
2243
|
const {
|
|
2239
2244
|
messagesState: { messages: e }
|
|
2240
|
-
} = O(), { isAwaitingBotReply: o } =
|
|
2241
|
-
() =>
|
|
2245
|
+
} = O(), { isAwaitingBotReply: o } = Tt(), { componentStore: t } = A(), { bot: n, humanAgent: s } = z(), i = St(
|
|
2246
|
+
() => Oo(e),
|
|
2242
2247
|
[e]
|
|
2243
2248
|
), a = t.getComponent(
|
|
2244
2249
|
"loading"
|
|
2245
2250
|
), l = B(null);
|
|
2246
2251
|
function c() {
|
|
2247
2252
|
setTimeout(() => {
|
|
2248
|
-
const
|
|
2249
|
-
|
|
2253
|
+
const m = l.current;
|
|
2254
|
+
m && (m.scrollTop = m.scrollHeight);
|
|
2250
2255
|
}, 0);
|
|
2251
2256
|
}
|
|
2252
2257
|
return se(() => {
|
|
@@ -2254,40 +2259,40 @@ function $o() {
|
|
|
2254
2259
|
}, [e]), /* @__PURE__ */ d(
|
|
2255
2260
|
"div",
|
|
2256
2261
|
{
|
|
2257
|
-
...
|
|
2262
|
+
...x("chat/msgs/root"),
|
|
2258
2263
|
ref: l,
|
|
2259
2264
|
className: "max-h-full scroll-smooth relative flex-1 py-2 px-4 flex flex-col gap-2 overflow-auto",
|
|
2260
2265
|
children: [
|
|
2261
|
-
/* @__PURE__ */ r(
|
|
2262
|
-
/* @__PURE__ */ r(
|
|
2263
|
-
/* @__PURE__ */ r(
|
|
2264
|
-
i.map((
|
|
2265
|
-
var
|
|
2266
|
-
const
|
|
2267
|
-
if (!
|
|
2268
|
-
if (
|
|
2269
|
-
return /* @__PURE__ */ r(
|
|
2270
|
-
if (
|
|
2271
|
-
const
|
|
2272
|
-
return o &&
|
|
2266
|
+
/* @__PURE__ */ r($o, {}),
|
|
2267
|
+
/* @__PURE__ */ r(Lo, {}),
|
|
2268
|
+
/* @__PURE__ */ r(Bo, {}),
|
|
2269
|
+
i.map((m, h) => {
|
|
2270
|
+
var g, v, C, T;
|
|
2271
|
+
const y = (g = m == null ? void 0 : m[0]) == null ? void 0 : g.type, w = (v = m[0]) == null ? void 0 : v.id;
|
|
2272
|
+
if (!y || !w) return null;
|
|
2273
|
+
if (Fo(m))
|
|
2274
|
+
return /* @__PURE__ */ r(Ao, { messages: m }, w);
|
|
2275
|
+
if (Ho(m)) {
|
|
2276
|
+
const b = h === i.length - 1;
|
|
2277
|
+
return o && b ? null : ((C = m[0]) == null || C.agent, /* @__PURE__ */ r(
|
|
2273
2278
|
pe,
|
|
2274
2279
|
{
|
|
2275
|
-
messages:
|
|
2280
|
+
messages: m,
|
|
2276
2281
|
agent: n ? { ...n, isAi: !0, id: null } : void 0
|
|
2277
2282
|
},
|
|
2278
|
-
|
|
2283
|
+
w
|
|
2279
2284
|
));
|
|
2280
2285
|
}
|
|
2281
|
-
if (
|
|
2282
|
-
const
|
|
2286
|
+
if (Wo(m)) {
|
|
2287
|
+
const b = (T = m[0]) == null ? void 0 : T.agent;
|
|
2283
2288
|
return /* @__PURE__ */ r(
|
|
2284
2289
|
pe,
|
|
2285
2290
|
{
|
|
2286
|
-
messages:
|
|
2287
|
-
agent:
|
|
2288
|
-
...
|
|
2289
|
-
name: (s == null ? void 0 : s.name) ||
|
|
2290
|
-
avatarUrl: (s == null ? void 0 : s.avatarUrl) ||
|
|
2291
|
+
messages: m,
|
|
2292
|
+
agent: b ? {
|
|
2293
|
+
...b,
|
|
2294
|
+
name: (s == null ? void 0 : s.name) || b.name || "",
|
|
2295
|
+
avatarUrl: (s == null ? void 0 : s.avatarUrl) || b.avatarUrl || null
|
|
2291
2296
|
} : s ? {
|
|
2292
2297
|
isAi: !1,
|
|
2293
2298
|
id: null,
|
|
@@ -2295,24 +2300,24 @@ function $o() {
|
|
|
2295
2300
|
avatarUrl: s.avatarUrl || null
|
|
2296
2301
|
} : void 0
|
|
2297
2302
|
},
|
|
2298
|
-
|
|
2303
|
+
w
|
|
2299
2304
|
);
|
|
2300
2305
|
}
|
|
2301
2306
|
return null;
|
|
2302
2307
|
}),
|
|
2303
2308
|
o && a && /* @__PURE__ */ r(a, { agent: n }),
|
|
2304
|
-
/* @__PURE__ */ r(
|
|
2305
|
-
/* @__PURE__ */ r(
|
|
2309
|
+
/* @__PURE__ */ r(Yo, {}),
|
|
2310
|
+
/* @__PURE__ */ r(Po, {})
|
|
2306
2311
|
]
|
|
2307
2312
|
}
|
|
2308
2313
|
);
|
|
2309
2314
|
}
|
|
2310
|
-
function
|
|
2315
|
+
function Xo() {
|
|
2311
2316
|
const {
|
|
2312
2317
|
messagesState: { isInitialFetchLoading: e }
|
|
2313
2318
|
} = O(), {
|
|
2314
2319
|
sessionState: { session: o }
|
|
2315
|
-
} = U(), { isCanvasOpen: t } =
|
|
2320
|
+
} = U(), { isCanvasOpen: t } = Co(), { theme: n } = V();
|
|
2316
2321
|
Me({
|
|
2317
2322
|
width: t ? n.screens.chat.withCanvas.width : n.screens.chat.width,
|
|
2318
2323
|
height: t ? n.screens.chat.withCanvas.height : n.screens.chat.height
|
|
@@ -2321,8 +2326,8 @@ function Bo() {
|
|
|
2321
2326
|
return /* @__PURE__ */ r(
|
|
2322
2327
|
"div",
|
|
2323
2328
|
{
|
|
2324
|
-
...
|
|
2325
|
-
className:
|
|
2329
|
+
...x("chat/root"),
|
|
2330
|
+
className: p("flex flex-col overflow-hidden"),
|
|
2326
2331
|
style: {
|
|
2327
2332
|
width: "100vw",
|
|
2328
2333
|
// Relative to the iframe
|
|
@@ -2334,12 +2339,12 @@ function Bo() {
|
|
|
2334
2339
|
// Relative to the iframe
|
|
2335
2340
|
},
|
|
2336
2341
|
children: /* @__PURE__ */ d("div", { className: "size-full justify-between flex flex-col", children: [
|
|
2337
|
-
/* @__PURE__ */ r(
|
|
2342
|
+
/* @__PURE__ */ r(Jt, {}),
|
|
2338
2343
|
/* @__PURE__ */ r(D, { mode: "wait", children: e ? /* @__PURE__ */ r(
|
|
2339
2344
|
k,
|
|
2340
2345
|
{
|
|
2341
2346
|
className: "flex flex-col items-center justify-center w-full flex-1",
|
|
2342
|
-
children: /* @__PURE__ */ r(
|
|
2347
|
+
children: /* @__PURE__ */ r(er, {})
|
|
2343
2348
|
},
|
|
2344
2349
|
"loading"
|
|
2345
2350
|
) : /* @__PURE__ */ d(
|
|
@@ -2351,8 +2356,8 @@ function Bo() {
|
|
|
2351
2356
|
/* @__PURE__ */ d(
|
|
2352
2357
|
"div",
|
|
2353
2358
|
{
|
|
2354
|
-
...
|
|
2355
|
-
className:
|
|
2359
|
+
...x("chat/main/root"),
|
|
2360
|
+
className: p(
|
|
2356
2361
|
"flex flex-col h-full overflow-auto transition-all",
|
|
2357
2362
|
t ? "w-2/5" : "w-full"
|
|
2358
2363
|
),
|
|
@@ -2361,16 +2366,16 @@ function Bo() {
|
|
|
2361
2366
|
transitionDuration: n.screens.chat.withCanvas.transitionDuration
|
|
2362
2367
|
},
|
|
2363
2368
|
children: [
|
|
2364
|
-
/* @__PURE__ */ r(
|
|
2365
|
-
/* @__PURE__ */ r(
|
|
2369
|
+
/* @__PURE__ */ r(Uo, {}),
|
|
2370
|
+
/* @__PURE__ */ r(Eo, {})
|
|
2366
2371
|
]
|
|
2367
2372
|
}
|
|
2368
2373
|
),
|
|
2369
2374
|
/* @__PURE__ */ r(
|
|
2370
2375
|
"div",
|
|
2371
2376
|
{
|
|
2372
|
-
...
|
|
2373
|
-
className:
|
|
2377
|
+
...x("chat/canvas/root"),
|
|
2378
|
+
className: p(
|
|
2374
2379
|
"h-full overflow-auto transition-all",
|
|
2375
2380
|
t ? "w-3/5" : "w-0"
|
|
2376
2381
|
),
|
|
@@ -2378,7 +2383,7 @@ function Bo() {
|
|
|
2378
2383
|
transitionTimingFunction: n.screens.chat.withCanvas.transitionTimingFunction,
|
|
2379
2384
|
transitionDuration: n.screens.chat.withCanvas.transitionDuration
|
|
2380
2385
|
},
|
|
2381
|
-
children: /* @__PURE__ */ r(
|
|
2386
|
+
children: /* @__PURE__ */ r(zo, {})
|
|
2382
2387
|
}
|
|
2383
2388
|
)
|
|
2384
2389
|
]
|
|
@@ -2389,19 +2394,19 @@ function Bo() {
|
|
|
2389
2394
|
}
|
|
2390
2395
|
);
|
|
2391
2396
|
}
|
|
2392
|
-
function
|
|
2397
|
+
function qo({
|
|
2393
2398
|
className: e,
|
|
2394
2399
|
...o
|
|
2395
2400
|
}) {
|
|
2396
2401
|
return /* @__PURE__ */ r(
|
|
2397
2402
|
"div",
|
|
2398
2403
|
{
|
|
2399
|
-
className:
|
|
2404
|
+
className: p("animate-pulse rounded-md bg-secondary", e),
|
|
2400
2405
|
...o
|
|
2401
2406
|
}
|
|
2402
2407
|
);
|
|
2403
2408
|
}
|
|
2404
|
-
function
|
|
2409
|
+
function Vo({ className: e }) {
|
|
2405
2410
|
return /* @__PURE__ */ r(
|
|
2406
2411
|
"svg",
|
|
2407
2412
|
{
|
|
@@ -2410,7 +2415,7 @@ function Uo({ className: e }) {
|
|
|
2410
2415
|
viewBox: "0 0 26 32",
|
|
2411
2416
|
fill: "none",
|
|
2412
2417
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2413
|
-
className:
|
|
2418
|
+
className: p("text-primary-foreground", e),
|
|
2414
2419
|
children: /* @__PURE__ */ r(
|
|
2415
2420
|
"path",
|
|
2416
2421
|
{
|
|
@@ -2421,12 +2426,12 @@ function Uo({ className: e }) {
|
|
|
2421
2426
|
}
|
|
2422
2427
|
);
|
|
2423
2428
|
}
|
|
2424
|
-
function
|
|
2429
|
+
function rr({ className: e }) {
|
|
2425
2430
|
const { token: o } = z();
|
|
2426
2431
|
return /* @__PURE__ */ r(
|
|
2427
2432
|
"div",
|
|
2428
2433
|
{
|
|
2429
|
-
className:
|
|
2434
|
+
className: p(
|
|
2430
2435
|
"flex items-center justify-center gap-2 p-2 pt-0",
|
|
2431
2436
|
e
|
|
2432
2437
|
),
|
|
@@ -2436,7 +2441,7 @@ function er({ className: e }) {
|
|
|
2436
2441
|
href: `https://open.cx/?ref=${o}`,
|
|
2437
2442
|
target: "_blank",
|
|
2438
2443
|
rel: "noreferrer",
|
|
2439
|
-
className:
|
|
2444
|
+
className: p(
|
|
2440
2445
|
"text-[10px] flex items-center",
|
|
2441
2446
|
"text-muted-foreground/70 [&_svg]:text-muted-foreground/70",
|
|
2442
2447
|
"hover:text-primary [&_svg]:hover:text-primary"
|
|
@@ -2445,7 +2450,7 @@ function er({ className: e }) {
|
|
|
2445
2450
|
/* @__PURE__ */ r("span", { children: "Powered by" }),
|
|
2446
2451
|
/* @__PURE__ */ r("span", { children: " " }),
|
|
2447
2452
|
/* @__PURE__ */ d("span", { className: "flex items-center gap-[1px]", children: [
|
|
2448
|
-
/* @__PURE__ */ r("span", { children: /* @__PURE__ */ r(
|
|
2453
|
+
/* @__PURE__ */ r("span", { children: /* @__PURE__ */ r(Vo, { className: "size-3 inline-block" }) }),
|
|
2449
2454
|
/* @__PURE__ */ r("span", { className: "font-semibold", children: "open" })
|
|
2450
2455
|
] })
|
|
2451
2456
|
]
|
|
@@ -2454,10 +2459,10 @@ function er({ className: e }) {
|
|
|
2454
2459
|
}
|
|
2455
2460
|
);
|
|
2456
2461
|
}
|
|
2457
|
-
function
|
|
2462
|
+
function Go({ children: e }) {
|
|
2458
2463
|
return /* @__PURE__ */ r("p", { className: "ps-4 text-xs text-muted-foreground/75 uppercase font-semibold tracking-tight", children: e });
|
|
2459
2464
|
}
|
|
2460
|
-
function
|
|
2465
|
+
function Ct({
|
|
2461
2466
|
session: e,
|
|
2462
2467
|
className: o
|
|
2463
2468
|
}) {
|
|
@@ -2467,7 +2472,7 @@ function yt({
|
|
|
2467
2472
|
{
|
|
2468
2473
|
variant: "ghost",
|
|
2469
2474
|
size: "lg",
|
|
2470
|
-
className:
|
|
2475
|
+
className: p(
|
|
2471
2476
|
"rounded-full p-2 pe-4 flex text-start justify-between w-full whitespace-normal",
|
|
2472
2477
|
o
|
|
2473
2478
|
),
|
|
@@ -2476,28 +2481,28 @@ function yt({
|
|
|
2476
2481
|
/* @__PURE__ */ d("div", { className: "flex-1 flex gap-2 items-center", children: [
|
|
2477
2482
|
/* @__PURE__ */ r(D, { mode: "wait", children: /* @__PURE__ */ r(k, { snapExit: !0, children: /* @__PURE__ */ d(_e, { className: "size-10", children: [
|
|
2478
2483
|
/* @__PURE__ */ r(Ie, { src: a, alt: "Agent Icon" }),
|
|
2479
|
-
/* @__PURE__ */ r(Te, { children: /* @__PURE__ */ r(
|
|
2484
|
+
/* @__PURE__ */ r(Te, { children: /* @__PURE__ */ r(Or, { className: "size-4" }) })
|
|
2480
2485
|
] }) }) }),
|
|
2481
2486
|
/* @__PURE__ */ d("div", { className: "flex-1", children: [
|
|
2482
2487
|
/* @__PURE__ */ r(D, { mode: "wait", children: /* @__PURE__ */ r(k, { snapExit: !0, children: i }, i) }),
|
|
2483
2488
|
/* @__PURE__ */ r(D, { mode: "wait", children: e.lastMessage ? /* @__PURE__ */ r(k, { snapExit: !0, children: /* @__PURE__ */ r(
|
|
2484
|
-
|
|
2489
|
+
qt,
|
|
2485
2490
|
{
|
|
2486
|
-
remarkPlugins: [
|
|
2487
|
-
rehypePlugins: [
|
|
2491
|
+
remarkPlugins: [jt],
|
|
2492
|
+
rehypePlugins: [At],
|
|
2488
2493
|
className: "line-clamp-1 overflow-hidden text-ellipsis text-xs text-muted-foreground",
|
|
2489
2494
|
children: e.lastMessage
|
|
2490
2495
|
}
|
|
2491
|
-
) }, e.lastMessage || "content") : /* @__PURE__ */ r(k, { className: "w-1/2", snapExit: !0, children: /* @__PURE__ */ r(
|
|
2496
|
+
) }, e.lastMessage || "content") : /* @__PURE__ */ r(k, { className: "w-1/2", snapExit: !0, children: /* @__PURE__ */ r(qo, { className: "h-4 w-full" }) }, "skeleton") })
|
|
2492
2497
|
] })
|
|
2493
2498
|
] }),
|
|
2494
|
-
/* @__PURE__ */ r(
|
|
2499
|
+
/* @__PURE__ */ r(Fr, { className: "size-4 text-muted-foreground shrink-0 rtl:-scale-100" })
|
|
2495
2500
|
]
|
|
2496
2501
|
}
|
|
2497
2502
|
);
|
|
2498
2503
|
}
|
|
2499
|
-
function
|
|
2500
|
-
const { t: e } =
|
|
2504
|
+
function Zo() {
|
|
2505
|
+
const { t: e } = G(), { toChatScreen: o } = H(), {
|
|
2501
2506
|
sessionsState: { data: t, isInitialFetchLoading: n },
|
|
2502
2507
|
openSessions: s,
|
|
2503
2508
|
closedSessions: i,
|
|
@@ -2507,7 +2512,7 @@ function qo() {
|
|
|
2507
2512
|
k,
|
|
2508
2513
|
{
|
|
2509
2514
|
className: "flex-1 flex items-center justify-center",
|
|
2510
|
-
children: /* @__PURE__ */ r(
|
|
2515
|
+
children: /* @__PURE__ */ r(er, {})
|
|
2511
2516
|
},
|
|
2512
2517
|
"loading"
|
|
2513
2518
|
) : /* @__PURE__ */ r(
|
|
@@ -2523,7 +2528,7 @@ function qo() {
|
|
|
2523
2528
|
delay: 0.2,
|
|
2524
2529
|
className: "space-y-2",
|
|
2525
2530
|
snapExit: !0,
|
|
2526
|
-
children: s.map((l) => /* @__PURE__ */ r(
|
|
2531
|
+
children: s.map((l) => /* @__PURE__ */ r(Ct, { session: l }, l.id))
|
|
2527
2532
|
},
|
|
2528
2533
|
"open-sessions"
|
|
2529
2534
|
),
|
|
@@ -2534,9 +2539,9 @@ function qo() {
|
|
|
2534
2539
|
delay: 0.2,
|
|
2535
2540
|
snapExit: !0,
|
|
2536
2541
|
children: [
|
|
2537
|
-
/* @__PURE__ */ r(
|
|
2542
|
+
/* @__PURE__ */ r(Go, { children: e("closed_conversations") }),
|
|
2538
2543
|
i.map((l) => /* @__PURE__ */ r(
|
|
2539
|
-
|
|
2544
|
+
Ct,
|
|
2540
2545
|
{
|
|
2541
2546
|
session: l,
|
|
2542
2547
|
className: "opacity-50 hover:opacity-100"
|
|
@@ -2548,10 +2553,10 @@ function qo() {
|
|
|
2548
2553
|
"closed-sessions"
|
|
2549
2554
|
)
|
|
2550
2555
|
] }),
|
|
2551
|
-
a && /* @__PURE__ */ r("div", { className: "mt-auto w-full rounded-3xl sticky bottom-0 outline outline-8 outline-background bg-background", children: /* @__PURE__ */
|
|
2556
|
+
a && /* @__PURE__ */ r("div", { className: "mt-auto w-full rounded-3xl sticky bottom-0 outline outline-8 outline-background bg-background", children: /* @__PURE__ */ pt(
|
|
2552
2557
|
S,
|
|
2553
2558
|
{
|
|
2554
|
-
...
|
|
2559
|
+
...x("sessions/new_conversation_btn"),
|
|
2555
2560
|
size: "lg",
|
|
2556
2561
|
key: "new-session",
|
|
2557
2562
|
className: "w-full",
|
|
@@ -2561,10 +2566,10 @@ function qo() {
|
|
|
2561
2566
|
) })
|
|
2562
2567
|
] }) : /* @__PURE__ */ d("div", { className: "flex-1 flex flex-col gap-2 items-center", children: [
|
|
2563
2568
|
/* @__PURE__ */ r("div", { className: "flex-1 flex items-center justify-center", children: /* @__PURE__ */ r("p", { className: "text-muted-foreground", children: e("no_conversations_yet") }) }),
|
|
2564
|
-
/* @__PURE__ */
|
|
2569
|
+
/* @__PURE__ */ pt(
|
|
2565
2570
|
S,
|
|
2566
2571
|
{
|
|
2567
|
-
...
|
|
2572
|
+
...x("sessions/new_conversation_btn"),
|
|
2568
2573
|
size: "lg",
|
|
2569
2574
|
key: "new-session",
|
|
2570
2575
|
className: "w-full",
|
|
@@ -2577,16 +2582,16 @@ function qo() {
|
|
|
2577
2582
|
"sessions"
|
|
2578
2583
|
) }) });
|
|
2579
2584
|
}
|
|
2580
|
-
function
|
|
2581
|
-
const { theme: e } =
|
|
2585
|
+
function Ko() {
|
|
2586
|
+
const { theme: e } = V();
|
|
2582
2587
|
return Me({
|
|
2583
2588
|
width: e.screens.sessions.width,
|
|
2584
2589
|
height: e.screens.sessions.height
|
|
2585
2590
|
}), /* @__PURE__ */ r(
|
|
2586
2591
|
"div",
|
|
2587
2592
|
{
|
|
2588
|
-
...
|
|
2589
|
-
className:
|
|
2593
|
+
...x("sessions/root"),
|
|
2594
|
+
className: p("flex flex-col overflow-hidden bg-background"),
|
|
2590
2595
|
style: {
|
|
2591
2596
|
width: "100vw",
|
|
2592
2597
|
// Relative to the iframe
|
|
@@ -2598,9 +2603,9 @@ function Vo() {
|
|
|
2598
2603
|
// Relative to the iframe
|
|
2599
2604
|
},
|
|
2600
2605
|
children: /* @__PURE__ */ d("div", { className: "size-full flex flex-col", children: [
|
|
2601
|
-
/* @__PURE__ */ r(
|
|
2602
|
-
/* @__PURE__ */ r(
|
|
2603
|
-
/* @__PURE__ */ r(
|
|
2606
|
+
/* @__PURE__ */ r(Jt, {}),
|
|
2607
|
+
/* @__PURE__ */ r(Zo, {}),
|
|
2608
|
+
/* @__PURE__ */ r(rr, {})
|
|
2604
2609
|
] })
|
|
2605
2610
|
}
|
|
2606
2611
|
);
|
|
@@ -2613,7 +2618,7 @@ const de = ee.forwardRef(
|
|
|
2613
2618
|
{
|
|
2614
2619
|
ref: n,
|
|
2615
2620
|
type: o,
|
|
2616
|
-
className:
|
|
2621
|
+
className: p(
|
|
2617
2622
|
// 16px on mobiles prevents auto-zoom on the input when focused
|
|
2618
2623
|
s ? "text-[16px]" : "text-sm",
|
|
2619
2624
|
"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",
|
|
@@ -2627,7 +2632,7 @@ const de = ee.forwardRef(
|
|
|
2627
2632
|
}
|
|
2628
2633
|
);
|
|
2629
2634
|
de.displayName = "Input";
|
|
2630
|
-
function
|
|
2635
|
+
function Qo() {
|
|
2631
2636
|
const { contentIframeRef: e } = A(), { inline: o } = z(), t = B(null);
|
|
2632
2637
|
return se(() => {
|
|
2633
2638
|
const n = e == null ? void 0 : e.current;
|
|
@@ -2649,35 +2654,35 @@ function Go() {
|
|
|
2649
2654
|
}
|
|
2650
2655
|
}, [e, o]), { observedElementRef: t };
|
|
2651
2656
|
}
|
|
2652
|
-
const
|
|
2657
|
+
const Jo = ue.object({
|
|
2653
2658
|
name: ue.string().min(2),
|
|
2654
2659
|
email: ue.string().email()
|
|
2655
2660
|
});
|
|
2656
|
-
function
|
|
2657
|
-
var
|
|
2661
|
+
function en() {
|
|
2662
|
+
var b, N, _, E, f, M, j, R;
|
|
2658
2663
|
const {
|
|
2659
2664
|
widgetCtx: { org: e }
|
|
2660
|
-
} = A(), { setIsOpen: o } =
|
|
2665
|
+
} = A(), { setIsOpen: o } = K(), { createUnverifiedContact: t } = Mt(), { isSmallScreen: n } = $(), s = z(), { theme: i } = V(), { t: a } = G(), { observedElementRef: l } = Qo();
|
|
2661
2666
|
Me({
|
|
2662
2667
|
height: void 0,
|
|
2663
2668
|
width: i.screens.welcome.width
|
|
2664
2669
|
});
|
|
2665
|
-
const [c,
|
|
2666
|
-
(
|
|
2667
|
-
), [
|
|
2668
|
-
async (
|
|
2669
|
-
|
|
2670
|
-
const I =
|
|
2670
|
+
const [c, m] = P(((b = s.prefillUserData) == null ? void 0 : b.name) || ""), [h, y] = P(((N = s.prefillUserData) == null ? void 0 : N.email) || ""), w = (s.extraDataCollectionFields || []).filter(
|
|
2671
|
+
(u) => u !== "name" && u !== "email" && !!u
|
|
2672
|
+
), [g, v] = P({}), [C, T] = Gr(
|
|
2673
|
+
async (u) => {
|
|
2674
|
+
u.preventDefault();
|
|
2675
|
+
const I = Jo.safeParse({ name: c, email: h });
|
|
2671
2676
|
I.success && await t(
|
|
2672
2677
|
{
|
|
2673
2678
|
email: I.data.email,
|
|
2674
2679
|
non_verified_name: I.data.name
|
|
2675
2680
|
},
|
|
2676
2681
|
// Only pass extra data if there is any
|
|
2677
|
-
Object.values(
|
|
2682
|
+
Object.values(g).filter(Boolean).length ? g : void 0
|
|
2678
2683
|
);
|
|
2679
2684
|
},
|
|
2680
|
-
[c,
|
|
2685
|
+
[c, h, g]
|
|
2681
2686
|
);
|
|
2682
2687
|
return /* @__PURE__ */ r(
|
|
2683
2688
|
"div",
|
|
@@ -2698,7 +2703,7 @@ function Ko() {
|
|
|
2698
2703
|
"div",
|
|
2699
2704
|
{
|
|
2700
2705
|
ref: l,
|
|
2701
|
-
className:
|
|
2706
|
+
className: p(
|
|
2702
2707
|
"flex flex-col",
|
|
2703
2708
|
n && "h-full",
|
|
2704
2709
|
"bg-[radial-gradient(ellipse_at_top_left,hsl(var(--opencx-primary)),transparent),radial-gradient(ellipse_at_top_right,hsl(var(--opencx-primary)),transparent)]"
|
|
@@ -2707,7 +2712,7 @@ function Ko() {
|
|
|
2707
2712
|
/* @__PURE__ */ d(
|
|
2708
2713
|
"div",
|
|
2709
2714
|
{
|
|
2710
|
-
className:
|
|
2715
|
+
className: p(
|
|
2711
2716
|
"flex-1 flex flex-col px-4 py-12 text-start space-y-4 relative z-10",
|
|
2712
2717
|
"text-primary-foreground"
|
|
2713
2718
|
),
|
|
@@ -2722,7 +2727,7 @@ function Ko() {
|
|
|
2722
2727
|
}
|
|
2723
2728
|
) : /* @__PURE__ */ r("h2", { className: "font-bold text-sm", children: e.name }) }),
|
|
2724
2729
|
/* @__PURE__ */ d("div", { className: "space-y-2", children: [
|
|
2725
|
-
/* @__PURE__ */ r("h1", { className: "text-[1.75rem] font-semibold tracking-tight leading-none", children: ((M = (
|
|
2730
|
+
/* @__PURE__ */ r("h1", { className: "text-[1.75rem] font-semibold tracking-tight leading-none", children: ((M = (f = s.textContent) == null ? void 0 : f.welcomeScreen) == null ? void 0 : M.title) || a("welcome_screen_title") }),
|
|
2726
2731
|
/* @__PURE__ */ r("p", { className: "text-sm", children: ((R = (j = s.textContent) == null ? void 0 : j.welcomeScreen) == null ? void 0 : R.description) || a("welcome_screen_description") })
|
|
2727
2732
|
] })
|
|
2728
2733
|
]
|
|
@@ -2731,7 +2736,7 @@ function Ko() {
|
|
|
2731
2736
|
/* @__PURE__ */ d(
|
|
2732
2737
|
"div",
|
|
2733
2738
|
{
|
|
2734
|
-
className:
|
|
2739
|
+
className: p(
|
|
2735
2740
|
"z-10 m-2 px-2 pt-2 bp-0 space-y-2",
|
|
2736
2741
|
"bg-[white]",
|
|
2737
2742
|
"border shadow",
|
|
@@ -2743,7 +2748,7 @@ function Ko() {
|
|
|
2743
2748
|
de,
|
|
2744
2749
|
{
|
|
2745
2750
|
value: c,
|
|
2746
|
-
onChange: (
|
|
2751
|
+
onChange: (u) => m(u.target.value),
|
|
2747
2752
|
required: !0,
|
|
2748
2753
|
placeholder: a("your_name_placeholder"),
|
|
2749
2754
|
name: "name"
|
|
@@ -2753,24 +2758,24 @@ function Ko() {
|
|
|
2753
2758
|
de,
|
|
2754
2759
|
{
|
|
2755
2760
|
required: !0,
|
|
2756
|
-
value:
|
|
2757
|
-
onChange: (
|
|
2761
|
+
value: h,
|
|
2762
|
+
onChange: (u) => y(u.target.value),
|
|
2758
2763
|
type: "email",
|
|
2759
2764
|
placeholder: a("your_email_placeholder"),
|
|
2760
2765
|
name: "email"
|
|
2761
2766
|
}
|
|
2762
2767
|
),
|
|
2763
|
-
|
|
2768
|
+
w.map((u) => /* @__PURE__ */ r(
|
|
2764
2769
|
de,
|
|
2765
2770
|
{
|
|
2766
|
-
value:
|
|
2767
|
-
onChange: (I) =>
|
|
2771
|
+
value: g[u],
|
|
2772
|
+
onChange: (I) => v((ie) => ({
|
|
2768
2773
|
...ie,
|
|
2769
|
-
[
|
|
2774
|
+
[u]: I.target.value
|
|
2770
2775
|
})),
|
|
2771
|
-
placeholder: `${
|
|
2776
|
+
placeholder: `${u} (${a("optional")})`
|
|
2772
2777
|
},
|
|
2773
|
-
|
|
2778
|
+
u
|
|
2774
2779
|
)),
|
|
2775
2780
|
/* @__PURE__ */ d(
|
|
2776
2781
|
S,
|
|
@@ -2780,12 +2785,12 @@ function Ko() {
|
|
|
2780
2785
|
size: "lg",
|
|
2781
2786
|
children: [
|
|
2782
2787
|
C.loading ? a("start_chat_button_loading") : a("start_chat_button"),
|
|
2783
|
-
/* @__PURE__ */ r(
|
|
2788
|
+
/* @__PURE__ */ r(Hr, { className: "size-4 rtl:-scale-100" })
|
|
2784
2789
|
]
|
|
2785
2790
|
}
|
|
2786
2791
|
)
|
|
2787
2792
|
] }),
|
|
2788
|
-
/* @__PURE__ */ r(
|
|
2793
|
+
/* @__PURE__ */ r(rr, {})
|
|
2789
2794
|
]
|
|
2790
2795
|
}
|
|
2791
2796
|
)
|
|
@@ -2795,7 +2800,7 @@ function Ko() {
|
|
|
2795
2800
|
}
|
|
2796
2801
|
);
|
|
2797
2802
|
}
|
|
2798
|
-
function
|
|
2803
|
+
function or() {
|
|
2799
2804
|
const {
|
|
2800
2805
|
routerState: { screen: e }
|
|
2801
2806
|
} = H();
|
|
@@ -2808,7 +2813,7 @@ function tr() {
|
|
|
2808
2813
|
fadeIn: "right",
|
|
2809
2814
|
className: "size-full",
|
|
2810
2815
|
snapExit: !0,
|
|
2811
|
-
children: /* @__PURE__ */ r(
|
|
2816
|
+
children: /* @__PURE__ */ r(en, {})
|
|
2812
2817
|
},
|
|
2813
2818
|
e
|
|
2814
2819
|
);
|
|
@@ -2819,7 +2824,7 @@ function tr() {
|
|
|
2819
2824
|
fadeIn: "right",
|
|
2820
2825
|
className: "size-full",
|
|
2821
2826
|
snapExit: !0,
|
|
2822
|
-
children: /* @__PURE__ */ r(
|
|
2827
|
+
children: /* @__PURE__ */ r(Ko, {})
|
|
2823
2828
|
},
|
|
2824
2829
|
e
|
|
2825
2830
|
);
|
|
@@ -2830,20 +2835,20 @@ function tr() {
|
|
|
2830
2835
|
fadeIn: "right",
|
|
2831
2836
|
className: "size-full",
|
|
2832
2837
|
snapExit: !0,
|
|
2833
|
-
children: /* @__PURE__ */ r(
|
|
2838
|
+
children: /* @__PURE__ */ r(Xo, {})
|
|
2834
2839
|
},
|
|
2835
2840
|
e
|
|
2836
2841
|
);
|
|
2837
2842
|
default:
|
|
2838
|
-
return F(e,
|
|
2843
|
+
return F(e, or.name), null;
|
|
2839
2844
|
}
|
|
2840
2845
|
})() }) });
|
|
2841
2846
|
}
|
|
2842
|
-
const
|
|
2847
|
+
const tn = "4.0.60", rn = `<!DOCTYPE html>
|
|
2843
2848
|
<html>
|
|
2844
2849
|
<head>
|
|
2845
2850
|
<style>
|
|
2846
|
-
${
|
|
2851
|
+
${Vt}
|
|
2847
2852
|
html, body {
|
|
2848
2853
|
height: 100%;
|
|
2849
2854
|
width: 100%;
|
|
@@ -2857,8 +2862,8 @@ html, body {
|
|
|
2857
2862
|
<body>
|
|
2858
2863
|
</body>
|
|
2859
2864
|
</html>`;
|
|
2860
|
-
function
|
|
2861
|
-
const { isOpen: e } =
|
|
2865
|
+
function nr() {
|
|
2866
|
+
const { isOpen: e } = K(), { contentIframeRef: o } = A(), { cssOverrides: t, inline: n } = z(), { theme: s, cssVars: i, computed: a } = V(), { dir: l } = G();
|
|
2862
2867
|
return /* @__PURE__ */ r(
|
|
2863
2868
|
re.div,
|
|
2864
2869
|
{
|
|
@@ -2879,10 +2884,10 @@ function rr() {
|
|
|
2879
2884
|
}
|
|
2880
2885
|
},
|
|
2881
2886
|
children: /* @__PURE__ */ d(
|
|
2882
|
-
|
|
2887
|
+
Ot,
|
|
2883
2888
|
{
|
|
2884
2889
|
ref: o,
|
|
2885
|
-
initialContent:
|
|
2890
|
+
initialContent: rn,
|
|
2886
2891
|
allowFullScreen: !0,
|
|
2887
2892
|
title: "OpenCX Live Chat",
|
|
2888
2893
|
style: {
|
|
@@ -2919,17 +2924,17 @@ function rr() {
|
|
|
2919
2924
|
...i,
|
|
2920
2925
|
zIndex: s.widgetContentContainer.zIndex
|
|
2921
2926
|
},
|
|
2922
|
-
"data-version":
|
|
2923
|
-
className:
|
|
2927
|
+
"data-version": tn,
|
|
2928
|
+
className: p(
|
|
2924
2929
|
"antialiased font-sans size-full overflow-hidden relative text-secondary-foreground isolate"
|
|
2925
2930
|
),
|
|
2926
2931
|
dir: l,
|
|
2927
2932
|
children: /* @__PURE__ */ r(
|
|
2928
|
-
|
|
2933
|
+
po,
|
|
2929
2934
|
{
|
|
2930
2935
|
delayDuration: 200,
|
|
2931
2936
|
disableHoverableContent: !0,
|
|
2932
|
-
children: /* @__PURE__ */ r(
|
|
2937
|
+
children: /* @__PURE__ */ r(oo, { children: /* @__PURE__ */ r(or, {}) })
|
|
2933
2938
|
}
|
|
2934
2939
|
)
|
|
2935
2940
|
}
|
|
@@ -2940,29 +2945,29 @@ function rr() {
|
|
|
2940
2945
|
}
|
|
2941
2946
|
);
|
|
2942
2947
|
}
|
|
2943
|
-
function
|
|
2944
|
-
const { theme: e } =
|
|
2948
|
+
function on() {
|
|
2949
|
+
const { theme: e, triggerSide: o } = V(), { dir: t } = ke(), n = (t === "rtl" ? o === "left" : o === "right") ? "end" : "start";
|
|
2945
2950
|
return /* @__PURE__ */ r(
|
|
2946
2951
|
me.Content,
|
|
2947
2952
|
{
|
|
2948
|
-
onInteractOutside: (
|
|
2953
|
+
onInteractOutside: (s) => s.preventDefault(),
|
|
2949
2954
|
forceMount: !0,
|
|
2950
2955
|
style: {
|
|
2951
2956
|
zIndex: e.widgetContentContainer.zIndex,
|
|
2952
2957
|
fontSize: "16px"
|
|
2953
2958
|
},
|
|
2954
2959
|
side: "top",
|
|
2955
|
-
align:
|
|
2960
|
+
align: n,
|
|
2956
2961
|
"aria-modal": "false",
|
|
2957
2962
|
"aria-label": "Support chat",
|
|
2958
2963
|
sideOffset: e.widgetContentContainer.offset.side,
|
|
2959
2964
|
alignOffset: e.widgetContentContainer.offset.align,
|
|
2960
2965
|
avoidCollisions: !1,
|
|
2961
|
-
children: /* @__PURE__ */ r(
|
|
2966
|
+
children: /* @__PURE__ */ r(nr, {})
|
|
2962
2967
|
}
|
|
2963
2968
|
);
|
|
2964
2969
|
}
|
|
2965
|
-
function
|
|
2970
|
+
function nn({
|
|
2966
2971
|
className: e,
|
|
2967
2972
|
style: o
|
|
2968
2973
|
}) {
|
|
@@ -2974,7 +2979,7 @@ function tn({
|
|
|
2974
2979
|
viewBox: "0 0 32 30",
|
|
2975
2980
|
fill: "none",
|
|
2976
2981
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2977
|
-
className:
|
|
2982
|
+
className: p("text-primary-foreground", e),
|
|
2978
2983
|
style: o,
|
|
2979
2984
|
children: [
|
|
2980
2985
|
/* @__PURE__ */ r(
|
|
@@ -2997,11 +3002,11 @@ function tn({
|
|
|
2997
3002
|
}
|
|
2998
3003
|
);
|
|
2999
3004
|
}
|
|
3000
|
-
const
|
|
3005
|
+
const sn = `<!DOCTYPE html>
|
|
3001
3006
|
<html>
|
|
3002
3007
|
<head>
|
|
3003
3008
|
<style>
|
|
3004
|
-
${
|
|
3009
|
+
${Vt}
|
|
3005
3010
|
html, body {
|
|
3006
3011
|
height: 100%;
|
|
3007
3012
|
width: 100%;
|
|
@@ -3014,17 +3019,17 @@ html, body {
|
|
|
3014
3019
|
<body>
|
|
3015
3020
|
</body>
|
|
3016
3021
|
</html>`;
|
|
3017
|
-
function
|
|
3018
|
-
var
|
|
3019
|
-
const { isOpen: e, setIsOpen: o } =
|
|
3022
|
+
function an() {
|
|
3023
|
+
var m, h, y;
|
|
3024
|
+
const { isOpen: e, setIsOpen: o } = K(), { cssOverrides: t, assets: n, customComponents: s, accessibility: i } = z(), { theme: a, cssVars: l } = V(), c = ((m = i == null ? void 0 : i.widgetTriggerButton) == null ? void 0 : m.label) ?? "Chat with us";
|
|
3020
3025
|
return s != null && s.widgetTrigger ? s.widgetTrigger({
|
|
3021
3026
|
react: L,
|
|
3022
3027
|
isOpen: e,
|
|
3023
|
-
setIsOpen: (
|
|
3028
|
+
setIsOpen: (w) => o(w)
|
|
3024
3029
|
}) : /* @__PURE__ */ d(
|
|
3025
|
-
|
|
3030
|
+
Ot,
|
|
3026
3031
|
{
|
|
3027
|
-
initialContent:
|
|
3032
|
+
initialContent: sn,
|
|
3028
3033
|
title: "OpenCX Live Chat Trigger",
|
|
3029
3034
|
style: {
|
|
3030
3035
|
height: `calc(${a.widgetTrigger.size.button}px + ${Q.x * 2}px)`,
|
|
@@ -3059,7 +3064,7 @@ function on() {
|
|
|
3059
3064
|
{
|
|
3060
3065
|
"aria-label": c,
|
|
3061
3066
|
title: c,
|
|
3062
|
-
className:
|
|
3067
|
+
className: p(
|
|
3063
3068
|
"font-sans flex items-center justify-center rounded-full"
|
|
3064
3069
|
),
|
|
3065
3070
|
style: {
|
|
@@ -3069,8 +3074,8 @@ function on() {
|
|
|
3069
3074
|
children: /* @__PURE__ */ r(Y, { children: /* @__PURE__ */ r(
|
|
3070
3075
|
"div",
|
|
3071
3076
|
{
|
|
3072
|
-
...
|
|
3073
|
-
className:
|
|
3077
|
+
...x("trigger/btn"),
|
|
3078
|
+
className: p(
|
|
3074
3079
|
"relative size-full rounded-full",
|
|
3075
3080
|
"flex items-center justify-center",
|
|
3076
3081
|
"overflow-hidden",
|
|
@@ -3087,7 +3092,7 @@ function on() {
|
|
|
3087
3092
|
initial: { rotate: 45 },
|
|
3088
3093
|
animate: { rotate: 0 }
|
|
3089
3094
|
},
|
|
3090
|
-
children: (
|
|
3095
|
+
children: (h = n == null ? void 0 : n.widgetTrigger) != null && h.closeIcon ? /* @__PURE__ */ r(
|
|
3091
3096
|
"img",
|
|
3092
3097
|
{
|
|
3093
3098
|
src: n.widgetTrigger.closeIcon,
|
|
@@ -3098,7 +3103,7 @@ function on() {
|
|
|
3098
3103
|
}
|
|
3099
3104
|
}
|
|
3100
3105
|
) : /* @__PURE__ */ r(
|
|
3101
|
-
|
|
3106
|
+
Wr,
|
|
3102
3107
|
{
|
|
3103
3108
|
style: {
|
|
3104
3109
|
width: a.widgetTrigger.size.icon,
|
|
@@ -3116,7 +3121,7 @@ function on() {
|
|
|
3116
3121
|
initial: { rotate: 45 },
|
|
3117
3122
|
animate: { rotate: 0 }
|
|
3118
3123
|
},
|
|
3119
|
-
children: (
|
|
3124
|
+
children: (y = n == null ? void 0 : n.widgetTrigger) != null && y.openIcon ? /* @__PURE__ */ r(
|
|
3120
3125
|
"img",
|
|
3121
3126
|
{
|
|
3122
3127
|
src: n.widgetTrigger.openIcon,
|
|
@@ -3127,7 +3132,7 @@ function on() {
|
|
|
3127
3132
|
}
|
|
3128
3133
|
}
|
|
3129
3134
|
) : /* @__PURE__ */ r(
|
|
3130
|
-
|
|
3135
|
+
nn,
|
|
3131
3136
|
{
|
|
3132
3137
|
style: {
|
|
3133
3138
|
width: a.widgetTrigger.size.icon,
|
|
@@ -3149,24 +3154,24 @@ function on() {
|
|
|
3149
3154
|
}
|
|
3150
3155
|
);
|
|
3151
3156
|
}
|
|
3152
|
-
function
|
|
3153
|
-
const {
|
|
3157
|
+
function ln() {
|
|
3158
|
+
const { triggerSide: e } = V();
|
|
3154
3159
|
return /* @__PURE__ */ r(
|
|
3155
3160
|
me.Anchor,
|
|
3156
3161
|
{
|
|
3157
3162
|
style: {
|
|
3158
3163
|
position: "fixed",
|
|
3159
3164
|
bottom: 0,
|
|
3160
|
-
right: e === "
|
|
3161
|
-
left: e === "
|
|
3165
|
+
right: e === "right" ? 0 : void 0,
|
|
3166
|
+
left: e === "left" ? 0 : void 0
|
|
3162
3167
|
}
|
|
3163
3168
|
}
|
|
3164
3169
|
);
|
|
3165
3170
|
}
|
|
3166
|
-
function
|
|
3171
|
+
function cn({
|
|
3167
3172
|
widgetRef: e
|
|
3168
3173
|
}) {
|
|
3169
|
-
const { widgetCtx: o } = A(), { contactState: t } =
|
|
3174
|
+
const { widgetCtx: o } = A(), { contactState: t } = Mt(), { setIsOpen: n, isOpen: s } = K(), {
|
|
3170
3175
|
toChatScreen: i,
|
|
3171
3176
|
routerState: { screen: a }
|
|
3172
3177
|
} = H(), { sendMessage: l } = O();
|
|
@@ -3174,8 +3179,8 @@ function sn({
|
|
|
3174
3179
|
e,
|
|
3175
3180
|
() => ({
|
|
3176
3181
|
newChat: async (c) => {
|
|
3177
|
-
var
|
|
3178
|
-
if (!((
|
|
3182
|
+
var m;
|
|
3183
|
+
if (!((m = t.contact) != null && m.token)) {
|
|
3179
3184
|
console.warn("Cannot start a new chat: contact not yet initialized.");
|
|
3180
3185
|
return;
|
|
3181
3186
|
}
|
|
@@ -3193,22 +3198,22 @@ function sn({
|
|
|
3193
3198
|
]
|
|
3194
3199
|
), null;
|
|
3195
3200
|
}
|
|
3196
|
-
function
|
|
3197
|
-
const { isOpen: e, setIsOpen: o } =
|
|
3201
|
+
function dn() {
|
|
3202
|
+
const { isOpen: e, setIsOpen: o } = K();
|
|
3198
3203
|
return /* @__PURE__ */ d(me.Root, { open: e, onOpenChange: o, children: [
|
|
3199
|
-
/* @__PURE__ */ r(
|
|
3200
|
-
/* @__PURE__ */ r(
|
|
3201
|
-
/* @__PURE__ */ r(
|
|
3204
|
+
/* @__PURE__ */ r(ln, {}),
|
|
3205
|
+
/* @__PURE__ */ r(an, {}),
|
|
3206
|
+
/* @__PURE__ */ r(on, {})
|
|
3202
3207
|
] });
|
|
3203
3208
|
}
|
|
3204
|
-
const
|
|
3209
|
+
const pn = [
|
|
3205
3210
|
{
|
|
3206
3211
|
key: "loading",
|
|
3207
|
-
component:
|
|
3212
|
+
component: co
|
|
3208
3213
|
},
|
|
3209
3214
|
{
|
|
3210
3215
|
key: "fallback",
|
|
3211
|
-
component:
|
|
3216
|
+
component: lo
|
|
3212
3217
|
},
|
|
3213
3218
|
{
|
|
3214
3219
|
key: "bot_message",
|
|
@@ -3218,7 +3223,7 @@ const ln = [
|
|
|
3218
3223
|
key: "agent_message",
|
|
3219
3224
|
component: xe
|
|
3220
3225
|
}
|
|
3221
|
-
],
|
|
3226
|
+
], mn = {
|
|
3222
3227
|
get: async (e) => localStorage.getItem(e),
|
|
3223
3228
|
set: async (e, o) => {
|
|
3224
3229
|
localStorage.setItem(e, o);
|
|
@@ -3226,23 +3231,23 @@ const ln = [
|
|
|
3226
3231
|
remove: async (e) => {
|
|
3227
3232
|
localStorage.removeItem(e);
|
|
3228
3233
|
}
|
|
3229
|
-
},
|
|
3234
|
+
}, hn = L.forwardRef(function({ options: o, components: t = [], loadingComponent: n }, s) {
|
|
3230
3235
|
return /* @__PURE__ */ r(
|
|
3231
|
-
|
|
3236
|
+
cr,
|
|
3232
3237
|
{
|
|
3233
|
-
components: [...
|
|
3238
|
+
components: [...pn, ...t],
|
|
3234
3239
|
options: o,
|
|
3235
|
-
storage:
|
|
3240
|
+
storage: mn,
|
|
3236
3241
|
loadingComponent: n,
|
|
3237
|
-
children: /* @__PURE__ */ d(
|
|
3238
|
-
/* @__PURE__ */ r(
|
|
3239
|
-
o.inline ? /* @__PURE__ */ r(
|
|
3242
|
+
children: /* @__PURE__ */ d(dr, { children: [
|
|
3243
|
+
/* @__PURE__ */ r(cn, { widgetRef: s }),
|
|
3244
|
+
o.inline ? /* @__PURE__ */ r(nr, {}) : /* @__PURE__ */ r(dn, {})
|
|
3240
3245
|
] })
|
|
3241
3246
|
}
|
|
3242
3247
|
);
|
|
3243
3248
|
});
|
|
3244
|
-
|
|
3249
|
+
hn.displayName = "Widget";
|
|
3245
3250
|
export {
|
|
3246
|
-
|
|
3251
|
+
hn as Widget
|
|
3247
3252
|
};
|
|
3248
3253
|
//# sourceMappingURL=index.js.map
|