@opencx/widget-react 4.0.7 → 4.0.8
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 +14 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +582 -589
- package/dist/index.js.map +1 -1
- package/dist/src/components/RichText.d.ts +6 -0
- package/dist-embed/script.js +86 -86
- package/dist-embed/script.js.map +1 -1
- package/package.json +5 -5
- /package/dist/src/components/{markdown.d.ts → MemoizedReactMarkdown.d.ts} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
2
|
-
import * as
|
|
1
|
+
import { jsx as o, jsxs as c, Fragment as ve } from "react/jsx-runtime";
|
|
2
|
+
import * as ae from "@radix-ui/react-popover";
|
|
3
3
|
import * as E from "react";
|
|
4
|
-
import se, { memo as
|
|
5
|
-
import { useConfig as N, useDocumentDir as be, useWidget as
|
|
6
|
-
import mt from "rehype-raw";
|
|
7
|
-
import wt from "remark-gfm";
|
|
4
|
+
import se, { memo as Bt, forwardRef as ct, useState as j, cloneElement as Lt, useEffect as ie, useMemo as dt, useRef as le, createElement as nt } from "react";
|
|
5
|
+
import { useConfig as N, useDocumentDir as be, useWidget as q, useWidgetRouter as H, usePreludeData as ce, useWidgetTrigger as K, useSessions as U, useMessages as Y, useModes as pt, useUploadFiles as $t, useIsAwaitingBotReply as ht, useContact as Yt, WidgetProvider as qt, WidgetTriggerProvider as Ut } from "@opencx/widget-react-headless";
|
|
8
6
|
import * as R from "@radix-ui/react-dialog";
|
|
9
|
-
import { X as
|
|
10
|
-
import { clsx as
|
|
11
|
-
import { twMerge as
|
|
12
|
-
import { createPortal as
|
|
13
|
-
import
|
|
14
|
-
import { Slot as
|
|
15
|
-
import { cva as
|
|
16
|
-
import
|
|
7
|
+
import { X as Xt, CircleDashedIcon as Vt, XIcon as xe, SquareXIcon as Kt, SquareCheckBigIcon as Gt, SquareCheckIcon as Zt, ShrinkIcon as Jt, Minimize2Icon as Qt, MinimizeIcon as eo, Maximize2Icon as to, MaximizeIcon as oo, ExpandIcon as ro, CircleXIcon as no, CircleCheckBigIcon as so, CircleCheckIcon as mt, CheckCheckIcon as ao, CheckIcon as io, ChevronLeftIcon as lo, LoaderIcon as co, PaperclipIcon as po, ImageIcon as ho, CircleDashed as mo, ArrowUpIcon as go, AlertCircle as wo, Loader2 as uo, FileAudio2Icon as fo, FileVideo2Icon as vo, FileIcon as bo, UserRoundIcon as xo, ChevronRightIcon as yo, SendHorizontal as ko, ChevronDownIcon as Co } from "lucide-react";
|
|
8
|
+
import { clsx as zo } from "clsx";
|
|
9
|
+
import { twMerge as No } from "tailwind-merge";
|
|
10
|
+
import { createPortal as So } from "react-dom";
|
|
11
|
+
import gt, { useFrame as _o } from "@uiw/react-iframe";
|
|
12
|
+
import { Slot as Io } from "@radix-ui/react-slot";
|
|
13
|
+
import { cva as To } from "class-variance-authority";
|
|
14
|
+
import wt from "remark-gfm";
|
|
15
|
+
import Mo from "react-markdown";
|
|
16
|
+
import ut from "rehype-raw";
|
|
17
17
|
import { isExhaustive as D } from "@opencx/widget-core";
|
|
18
|
-
import { motion as J, AnimatePresence as
|
|
19
|
-
import * as
|
|
18
|
+
import { motion as J, AnimatePresence as I } from "framer-motion";
|
|
19
|
+
import * as G from "@radix-ui/react-avatar";
|
|
20
20
|
import * as te from "@radix-ui/react-tooltip";
|
|
21
21
|
import st from "tinycolor2";
|
|
22
|
-
import { useDropzone as
|
|
23
|
-
import
|
|
24
|
-
import { z as
|
|
25
|
-
function
|
|
22
|
+
import { useDropzone as Do } from "react-dropzone";
|
|
23
|
+
import Ro from "react-use/lib/useAsyncFn";
|
|
24
|
+
import { z as he } from "zod";
|
|
25
|
+
function g(e) {
|
|
26
26
|
return { "data-component": e };
|
|
27
27
|
}
|
|
28
28
|
function d(...e) {
|
|
29
|
-
return zo(
|
|
29
|
+
return No(zo(e));
|
|
30
30
|
}
|
|
31
31
|
const ft = "opencx-widget-portal";
|
|
32
|
-
function
|
|
32
|
+
function de() {
|
|
33
33
|
return null;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Oo({ children: e }) {
|
|
36
36
|
var t, n;
|
|
37
|
-
const r = (n = (t =
|
|
38
|
-
return r ?
|
|
37
|
+
const r = (n = (t = _o()) == null ? void 0 : t.document) == null ? void 0 : n.getElementById(ft);
|
|
38
|
+
return r ? So(e, r) : (console.error("Portal container not found!"), null);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function jo() {
|
|
41
41
|
return /* @__PURE__ */ o("div", { id: ft, className: "absolute size-full top-0 start-0" });
|
|
42
42
|
}
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
de.Portal = Oo;
|
|
44
|
+
de.Container = jo;
|
|
45
45
|
const V = {
|
|
46
46
|
x: 2,
|
|
47
47
|
y: 2
|
|
48
|
-
}, W =
|
|
48
|
+
}, W = Bt(
|
|
49
49
|
ct(
|
|
50
50
|
({ children: e, className: r, scale: t = 1.02, off: n = !1 }, s) => {
|
|
51
|
-
const [a, i] = j(!1), [
|
|
51
|
+
const [a, i] = j(!1), [l, p] = j({ x: 0, y: 0 });
|
|
52
52
|
if (n || /translate/.test(
|
|
53
53
|
e.props.className || ""
|
|
54
54
|
)) return e;
|
|
55
|
-
const
|
|
56
|
-
var
|
|
57
|
-
const { clientX:
|
|
55
|
+
const C = (u) => {
|
|
56
|
+
var k, B;
|
|
57
|
+
const { clientX: b, clientY: _ } = u, y = u.currentTarget.getBoundingClientRect(), T = b - (y.left + y.width / 2), M = _ - (y.top + y.height / 2), P = Math.max(
|
|
58
58
|
-1,
|
|
59
|
-
Math.min(1,
|
|
60
|
-
),
|
|
59
|
+
Math.min(1, T / (y.width / 2))
|
|
60
|
+
), F = Math.max(
|
|
61
61
|
-1,
|
|
62
|
-
Math.min(1, M / (
|
|
63
|
-
), O =
|
|
64
|
-
p({ x: O, y:
|
|
65
|
-
},
|
|
66
|
-
var
|
|
67
|
-
i(!0), (
|
|
68
|
-
},
|
|
69
|
-
var
|
|
70
|
-
i(!1), p({ x: 0, y: 0 }), (
|
|
71
|
-
},
|
|
72
|
-
"--wobble-x": a ? `${
|
|
73
|
-
"--wobble-y": a ? `${
|
|
62
|
+
Math.min(1, M / (y.height / 2))
|
|
63
|
+
), O = P * V.x, f = F * V.y;
|
|
64
|
+
p({ x: O, y: f }), (B = (k = e.props).onMouseMove) == null || B.call(k, u);
|
|
65
|
+
}, x = () => {
|
|
66
|
+
var u, b;
|
|
67
|
+
i(!0), (b = (u = e.props).onMouseEnter) == null || b.call(u);
|
|
68
|
+
}, h = () => {
|
|
69
|
+
var u, b;
|
|
70
|
+
i(!1), p({ x: 0, y: 0 }), (b = (u = e.props).onMouseLeave) == null || b.call(u);
|
|
71
|
+
}, v = {
|
|
72
|
+
"--wobble-x": a ? `${l.x}px` : "0px",
|
|
73
|
+
"--wobble-y": a ? `${l.y}px` : "0px",
|
|
74
74
|
"--scale": 1 - (t - 1)
|
|
75
75
|
};
|
|
76
|
-
return
|
|
76
|
+
return Lt(e, {
|
|
77
77
|
ref: s,
|
|
78
|
-
onMouseMove:
|
|
79
|
-
onMouseEnter:
|
|
80
|
-
onMouseLeave:
|
|
78
|
+
onMouseMove: C,
|
|
79
|
+
onMouseEnter: x,
|
|
80
|
+
onMouseLeave: h,
|
|
81
81
|
style: {
|
|
82
|
-
...
|
|
82
|
+
...v,
|
|
83
83
|
...e.props.style
|
|
84
84
|
},
|
|
85
85
|
className: d(
|
|
@@ -95,7 +95,7 @@ const V = {
|
|
|
95
95
|
)
|
|
96
96
|
);
|
|
97
97
|
W.displayName = "Wobble";
|
|
98
|
-
const
|
|
98
|
+
const Eo = To(
|
|
99
99
|
d(
|
|
100
100
|
"inline-flex shrink-0 items-center justify-center gap-2",
|
|
101
101
|
"text-sm font-medium whitespace-nowrap",
|
|
@@ -136,11 +136,11 @@ const jo = Io(
|
|
|
136
136
|
}
|
|
137
137
|
), z = E.forwardRef(
|
|
138
138
|
({ className: e, variant: r = "default", size: t, asChild: n = !1, ...s }, a) => /* @__PURE__ */ o(W, { ref: a, children: /* @__PURE__ */ o(
|
|
139
|
-
n ?
|
|
139
|
+
n ? Io : "button",
|
|
140
140
|
{
|
|
141
|
-
...
|
|
141
|
+
...g("ui_lib/btn"),
|
|
142
142
|
"data-variant": r,
|
|
143
|
-
className: d(
|
|
143
|
+
className: d(Eo({ variant: r, size: t, className: e })),
|
|
144
144
|
...s
|
|
145
145
|
}
|
|
146
146
|
) })
|
|
@@ -158,9 +158,9 @@ const vt = R.Root, bt = R.Trigger, xt = E.forwardRef(({ className: e, ...r }, t)
|
|
|
158
158
|
}
|
|
159
159
|
));
|
|
160
160
|
xt.displayName = R.Overlay.displayName;
|
|
161
|
-
const ye = E.forwardRef(({ className: e, children: r, withClose: t = !1, ...n }, s) => /* @__PURE__ */
|
|
161
|
+
const ye = E.forwardRef(({ className: e, children: r, withClose: t = !1, ...n }, s) => /* @__PURE__ */ c(de.Portal, { children: [
|
|
162
162
|
/* @__PURE__ */ o(xt, {}),
|
|
163
|
-
/* @__PURE__ */
|
|
163
|
+
/* @__PURE__ */ c(
|
|
164
164
|
R.Content,
|
|
165
165
|
{
|
|
166
166
|
ref: s,
|
|
@@ -176,8 +176,8 @@ const ye = E.forwardRef(({ className: e, children: r, withClose: t = !1, ...n },
|
|
|
176
176
|
{
|
|
177
177
|
asChild: !0,
|
|
178
178
|
className: "absolute end-4 top-4 opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",
|
|
179
|
-
children: /* @__PURE__ */
|
|
180
|
-
/* @__PURE__ */ o(
|
|
179
|
+
children: /* @__PURE__ */ c(z, { size: "fit", className: "rounded-full", variant: "secondary", children: [
|
|
180
|
+
/* @__PURE__ */ o(Xt, { className: "h-4 w-4" }),
|
|
181
181
|
/* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
|
|
182
182
|
] })
|
|
183
183
|
}
|
|
@@ -236,14 +236,14 @@ const zt = E.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ o(
|
|
|
236
236
|
));
|
|
237
237
|
zt.displayName = R.Description.displayName;
|
|
238
238
|
function Nt({ attachment: e }) {
|
|
239
|
-
const { name: r, size: t, type: n, url: s } = e, a = n.startsWith("image/"), i = n.startsWith("video/"),
|
|
240
|
-
return
|
|
239
|
+
const { name: r, size: t, type: n, url: s } = e, a = n.startsWith("image/"), i = n.startsWith("video/"), l = n.startsWith("audio/");
|
|
240
|
+
return l ? /* @__PURE__ */ o(W, { children: /* @__PURE__ */ o("div", { className: "w-full shrink-0 overflow-hidden", children: /* @__PURE__ */ c("audio", { controls: !0, className: "w-full", children: [
|
|
241
241
|
/* @__PURE__ */ o("source", { src: s, type: n }),
|
|
242
242
|
"Your browser does not support the audio tag."
|
|
243
|
-
] }) }) }) : i ? /* @__PURE__ */ o(W, { children: /* @__PURE__ */ o("div", { className: "w-full border shrink-0 rounded-2xl overflow-hidden", children: /* @__PURE__ */
|
|
243
|
+
] }) }) }) : i ? /* @__PURE__ */ o(W, { children: /* @__PURE__ */ o("div", { className: "w-full border shrink-0 rounded-2xl overflow-hidden", children: /* @__PURE__ */ c("video", { controls: !0, children: [
|
|
244
244
|
/* @__PURE__ */ o("source", { src: s, type: n }),
|
|
245
245
|
"Your browser does not support the video tag."
|
|
246
|
-
] }) }) }) : !a && !i && !
|
|
246
|
+
] }) }) }) : !a && !i && !l ? /* @__PURE__ */ o(W, { children: /* @__PURE__ */ o("div", { className: "size-fit border shrink-0 rounded-2xl overflow-hidden", children: /* @__PURE__ */ c("div", { className: "flex items-end gap-2 p-2", children: [
|
|
247
247
|
/* @__PURE__ */ o(
|
|
248
248
|
"a",
|
|
249
249
|
{
|
|
@@ -258,13 +258,13 @@ function Nt({ attachment: e }) {
|
|
|
258
258
|
children: r
|
|
259
259
|
}
|
|
260
260
|
),
|
|
261
|
-
/* @__PURE__ */
|
|
261
|
+
/* @__PURE__ */ c("span", { className: "text-xs text-muted-foreground whitespace-nowrap", children: [
|
|
262
262
|
(t / 1024).toFixed(2),
|
|
263
263
|
" KB"
|
|
264
264
|
] })
|
|
265
|
-
] }) }) }) : /* @__PURE__ */
|
|
265
|
+
] }) }) }) : /* @__PURE__ */ c(vt, { children: [
|
|
266
266
|
/* @__PURE__ */ o(W, { children: /* @__PURE__ */ o(bt, { children: /* @__PURE__ */ o("div", { className: "size-fit border shrink-0 rounded-2xl overflow-hidden", children: a && /* @__PURE__ */ o("img", { src: s, className: "object-cover size-16", alt: r }) }) }) }),
|
|
267
|
-
/* @__PURE__ */
|
|
267
|
+
/* @__PURE__ */ c(
|
|
268
268
|
ye,
|
|
269
269
|
{
|
|
270
270
|
"aria-describedby": void 0,
|
|
@@ -279,10 +279,30 @@ function Nt({ attachment: e }) {
|
|
|
279
279
|
] });
|
|
280
280
|
}
|
|
281
281
|
const St = se.memo(
|
|
282
|
-
|
|
282
|
+
Mo,
|
|
283
283
|
(e, r) => e.children === r.children && e.className === r.className
|
|
284
284
|
);
|
|
285
|
-
function
|
|
285
|
+
function _t({
|
|
286
|
+
children: e,
|
|
287
|
+
messageType: r,
|
|
288
|
+
messageId: t
|
|
289
|
+
}) {
|
|
290
|
+
const { anchorTarget: n } = N();
|
|
291
|
+
return /* @__PURE__ */ o(
|
|
292
|
+
St,
|
|
293
|
+
{
|
|
294
|
+
"data-type": r,
|
|
295
|
+
"data-id": t,
|
|
296
|
+
remarkPlugins: [wt],
|
|
297
|
+
rehypePlugins: [ut],
|
|
298
|
+
components: {
|
|
299
|
+
a: ({ children: s, ...a }) => /* @__PURE__ */ o("a", { target: n ?? "_top", ...a, children: s })
|
|
300
|
+
},
|
|
301
|
+
children: e
|
|
302
|
+
}
|
|
303
|
+
);
|
|
304
|
+
}
|
|
305
|
+
function ge({
|
|
286
306
|
data: e,
|
|
287
307
|
id: r,
|
|
288
308
|
type: t,
|
|
@@ -290,24 +310,24 @@ function ae({
|
|
|
290
310
|
isFirstInGroup: s,
|
|
291
311
|
isLastInGroup: a,
|
|
292
312
|
isAloneInGroup: i,
|
|
293
|
-
dataComponentNames:
|
|
313
|
+
dataComponentNames: l,
|
|
294
314
|
classNames: p
|
|
295
315
|
}) {
|
|
296
|
-
const {
|
|
297
|
-
return
|
|
316
|
+
const { message: m, variant: C = "default" } = e;
|
|
317
|
+
return C === "error" ? /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o("div", { className: "flex flex-row flex-wrap items-center justify-start", children: /* @__PURE__ */ o("div", { className: "leading-snug text-sm text-destructive", children: m }) }) }) : /* @__PURE__ */ c(
|
|
298
318
|
"div",
|
|
299
319
|
{
|
|
300
|
-
...
|
|
320
|
+
...g((l == null ? void 0 : l.messageContainer) ?? "chat/agent_msg/root"),
|
|
301
321
|
className: d(
|
|
302
322
|
"w-5/6 flex flex-col items-start gap-1",
|
|
303
323
|
p == null ? void 0 : p.messageContainer
|
|
304
324
|
),
|
|
305
325
|
children: [
|
|
306
|
-
n && n.length > 0 && /* @__PURE__ */ o("div", { className: "w-full gap-1 flex flex-row flex-wrap items-center justify-start", children: n == null ? void 0 : n.map((
|
|
307
|
-
|
|
326
|
+
n && n.length > 0 && /* @__PURE__ */ o("div", { className: "w-full gap-1 flex flex-row flex-wrap items-center justify-start", children: n == null ? void 0 : n.map((x) => /* @__PURE__ */ o(Nt, { attachment: x }, x.id)) }),
|
|
327
|
+
m.length > 0 && /* @__PURE__ */ o(
|
|
308
328
|
"div",
|
|
309
329
|
{
|
|
310
|
-
...
|
|
330
|
+
...g((l == null ? void 0 : l.message) ?? "chat/agent_msg/msg"),
|
|
311
331
|
"data-first": s,
|
|
312
332
|
"data-last": a,
|
|
313
333
|
"data-alone": i,
|
|
@@ -325,30 +345,18 @@ function ae({
|
|
|
325
345
|
!s && !a && !i && "rounded-l-md",
|
|
326
346
|
p == null ? void 0 : p.message
|
|
327
347
|
),
|
|
328
|
-
children: /* @__PURE__ */ o(
|
|
329
|
-
St,
|
|
330
|
-
{
|
|
331
|
-
"data-type": t,
|
|
332
|
-
"data-id": r,
|
|
333
|
-
remarkPlugins: [wt],
|
|
334
|
-
rehypePlugins: [mt],
|
|
335
|
-
components: {
|
|
336
|
-
a: ({ children: v, ...h }) => /* @__PURE__ */ o("a", { target: g ?? "_top", ...h, children: v })
|
|
337
|
-
},
|
|
338
|
-
children: x
|
|
339
|
-
}
|
|
340
|
-
)
|
|
348
|
+
children: /* @__PURE__ */ o(_t, { messageType: t, messageId: r, children: m })
|
|
341
349
|
}
|
|
342
350
|
)
|
|
343
351
|
]
|
|
344
352
|
}
|
|
345
353
|
);
|
|
346
354
|
}
|
|
347
|
-
function
|
|
355
|
+
function Po(e) {
|
|
348
356
|
return /* @__PURE__ */ o("div", { className: "w-full max-w-full overflow-auto shrink-0", children: /* @__PURE__ */ o("pre", { className: "text-xs leading-tight whitespace-pre-wrap break-word", children: JSON.stringify(e, null, 1) }) });
|
|
349
357
|
}
|
|
350
358
|
const Ce = E.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ o(
|
|
351
|
-
|
|
359
|
+
G.Root,
|
|
352
360
|
{
|
|
353
361
|
ref: t,
|
|
354
362
|
className: d(
|
|
@@ -359,18 +367,18 @@ const Ce = E.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ o(
|
|
|
359
367
|
...r
|
|
360
368
|
}
|
|
361
369
|
));
|
|
362
|
-
Ce.displayName =
|
|
370
|
+
Ce.displayName = G.Root.displayName;
|
|
363
371
|
const ze = E.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ o(
|
|
364
|
-
|
|
372
|
+
G.Image,
|
|
365
373
|
{
|
|
366
374
|
ref: t,
|
|
367
375
|
className: d("aspect-square h-full w-full", e),
|
|
368
376
|
...r
|
|
369
377
|
}
|
|
370
378
|
));
|
|
371
|
-
ze.displayName =
|
|
379
|
+
ze.displayName = G.Image.displayName;
|
|
372
380
|
const Ne = E.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ o(
|
|
373
|
-
|
|
381
|
+
G.Fallback,
|
|
374
382
|
{
|
|
375
383
|
ref: t,
|
|
376
384
|
className: d(
|
|
@@ -380,39 +388,39 @@ const Ne = E.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ o(
|
|
|
380
388
|
...r
|
|
381
389
|
}
|
|
382
390
|
));
|
|
383
|
-
Ne.displayName =
|
|
384
|
-
function
|
|
391
|
+
Ne.displayName = G.Fallback.displayName;
|
|
392
|
+
function we({
|
|
385
393
|
agent: e,
|
|
386
394
|
...r
|
|
387
395
|
}) {
|
|
388
396
|
var t, n;
|
|
389
|
-
return /* @__PURE__ */
|
|
397
|
+
return /* @__PURE__ */ c(Ce, { ...r, children: [
|
|
390
398
|
/* @__PURE__ */ o(ze, { src: (e == null ? void 0 : e.avatar) ?? "", alt: "Agent Icon" }),
|
|
391
399
|
(e == null ? void 0 : e.name) && /* @__PURE__ */ o(Ne, { children: (n = (t = e == null ? void 0 : e.name) == null ? void 0 : t.slice(0, 1)) == null ? void 0 : n.toUpperCase() })
|
|
392
400
|
] });
|
|
393
401
|
}
|
|
394
|
-
const Fo = 10,
|
|
402
|
+
const Fo = 10, Wo = (e, r, t) => ({
|
|
395
403
|
initial: { opacity: 0, x: -e, ...r.initial },
|
|
396
404
|
animate: { opacity: 1, x: 0, ...r.animate, transition: { delay: t } },
|
|
397
405
|
exit: { opacity: 0, x: e, ...r.exit }
|
|
398
|
-
}),
|
|
406
|
+
}), Ho = (e, r, t) => ({
|
|
399
407
|
initial: { opacity: 0, x: e, ...r.initial },
|
|
400
408
|
animate: { opacity: 1, x: 0, ...r.animate, transition: { delay: t } },
|
|
401
409
|
exit: { opacity: 0, x: -e, ...r.exit }
|
|
402
|
-
}),
|
|
410
|
+
}), Ao = (e, r, t) => ({
|
|
403
411
|
initial: { opacity: 0, y: e, ...r.initial },
|
|
404
412
|
animate: { opacity: 1, y: 0, ...r.animate, transition: { delay: t } },
|
|
405
413
|
exit: { opacity: 0, y: -e, ...r.exit }
|
|
406
|
-
}),
|
|
414
|
+
}), Bo = (e, r, t) => ({
|
|
407
415
|
initial: { opacity: 0, y: -e, ...r.initial },
|
|
408
416
|
animate: { opacity: 1, y: 0, ...r.animate, transition: { delay: t } },
|
|
409
417
|
exit: { opacity: 0, y: e, ...r.exit }
|
|
410
|
-
}),
|
|
411
|
-
right:
|
|
412
|
-
left:
|
|
413
|
-
up:
|
|
414
|
-
down:
|
|
415
|
-
},
|
|
418
|
+
}), Lo = {
|
|
419
|
+
right: Wo,
|
|
420
|
+
left: Ho,
|
|
421
|
+
up: Ao,
|
|
422
|
+
down: Bo
|
|
423
|
+
}, w = ct(
|
|
416
424
|
({
|
|
417
425
|
fadeIn: e = "down",
|
|
418
426
|
distance: r = Fo,
|
|
@@ -421,24 +429,24 @@ const Fo = 10, Po = (e, r, t) => ({
|
|
|
421
429
|
overrides: s = {},
|
|
422
430
|
delay: a = 0,
|
|
423
431
|
...i
|
|
424
|
-
},
|
|
425
|
-
const p = e ?
|
|
426
|
-
return n && p.exit && typeof p.exit == "object" && !Array.isArray(p.exit) && (p.exit.transition = { duration: 0 }), /* @__PURE__ */ o(J.div, { ref:
|
|
432
|
+
}, l) => {
|
|
433
|
+
const p = e ? Lo[e](r, s, a) : {};
|
|
434
|
+
return n && p.exit && typeof p.exit == "object" && !Array.isArray(p.exit) && (p.exit.transition = { duration: 0 }), /* @__PURE__ */ o(J.div, { ref: l, ...i, ...p, children: t });
|
|
427
435
|
}
|
|
428
436
|
);
|
|
429
|
-
|
|
430
|
-
function
|
|
431
|
-
return /* @__PURE__ */ o(
|
|
432
|
-
|
|
437
|
+
w.displayName = "MotionDiv";
|
|
438
|
+
function $o({ agent: e }) {
|
|
439
|
+
return /* @__PURE__ */ o(I, { children: /* @__PURE__ */ c(
|
|
440
|
+
w,
|
|
433
441
|
{
|
|
434
|
-
...
|
|
442
|
+
...g("chat/bot_loading/root"),
|
|
435
443
|
className: "flex flex-row items-end w-full gap-2 animate-pulse",
|
|
436
444
|
children: [
|
|
437
|
-
/* @__PURE__ */ o(
|
|
438
|
-
/* @__PURE__ */
|
|
445
|
+
/* @__PURE__ */ o(we, { agent: e }),
|
|
446
|
+
/* @__PURE__ */ c(
|
|
439
447
|
"div",
|
|
440
448
|
{
|
|
441
|
-
...
|
|
449
|
+
...g("chat/bot_loading/bouncing_dots_container"),
|
|
442
450
|
className: d(
|
|
443
451
|
"flex items-center [&_span]:bg-secondary-foreground [&_span]:size-1 gap-1 p-2 rounded-xl bg-secondary"
|
|
444
452
|
// 'border',
|
|
@@ -454,7 +462,7 @@ function Lo({ agent: e }) {
|
|
|
454
462
|
}
|
|
455
463
|
) });
|
|
456
464
|
}
|
|
457
|
-
const _t = '@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..700;1,14..32,100..700&display=swap";@import"https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*{-ms-overflow-style:none;scrollbar-width:none}*::-webkit-scrollbar{display:none}*{border-color:hsl(var(--opencx-border))}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%),0 3px rgb(var(--tw-prose-kbd-shadows) / 10%);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-kbd: #111827;--tw-prose-kbd-shadows: 17 24 39;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.end-4{inset-inline-end:1rem}.end-6{inset-inline-end:1.5rem}.left-2{left:.5rem}.left-\\[50\\%\\]{left:50%}.start-0{inset-inline-start:0px}.top-0{top:0}.top-4{top:1rem}.top-6{top:1.5rem}.top-\\[50\\%\\]{top:50%}.z-10{z-index:10}.z-50{z-index:50}.m-2{margin:.5rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.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-10{width:2.5rem;height:2.5rem}.size-12{width:3rem;height:3rem}.size-16{width:4rem;height:4rem}.size-3{width:.75rem;height:.75rem}.size-4{width:1rem;height:1rem}.size-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.size-auto{width:auto;height:auto}.size-fit{width:fit-content;height:fit-content}.size-full{width:100%;height:100%}.h-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-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%}.min-w-\\[8rem\\]{min-width:8rem}.max-w-\\[61\\.8\\%\\]{max-width:61.8%}.max-w-full{max-width:100%}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.translate-x-\\[-50\\%\\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[var\\(--wobble-x\\)\\]{--tw-translate-x: var(--wobble-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[-50\\%\\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[var\\(--wobble-y\\)\\]{--tw-translate-y: var(--wobble-y);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-\\[1px\\]{gap:1px}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.scroll-smooth{scroll-behavior:smooth}.text-ellipsis{text-overflow:ellipsis}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-\\[20px\\]{border-radius:20px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-l-md{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.rounded-r-md{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-bl-md{border-bottom-left-radius:.375rem}.rounded-br-md{border-bottom-right-radius:.375rem}.rounded-tl-md{border-top-left-radius:.375rem}.rounded-tr-md{border-top-right-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-none{border-style:none}.border-transparent{border-color:transparent}.bg-\\[white\\]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-background{background-color:hsl(var(--opencx-background))}.bg-black\\/50{background-color:#00000080}.bg-black\\/60{background-color:#0009}.bg-destructive{background-color:hsl(var(--opencx-destructive))}.bg-muted{background-color:hsl(var(--opencx-muted))}.bg-primary{background-color:hsl(var(--opencx-primary))}.bg-secondary{background-color:hsl(var(--opencx-secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-\\[radial-gradient\\(ellipse_at_top_left\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\,radial-gradient\\(ellipse_at_top_right\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\]{background-image:radial-gradient(ellipse at top left,hsl(var(--opencx-primary)),transparent),radial-gradient(ellipse at top right,hsl(var(--opencx-primary)),transparent)}.fill-current{fill:currentColor}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-0{padding-bottom:0}.pe-2{padding-inline-end:.5rem}.pe-4{padding-inline-end:1rem}.ps-2{padding-inline-start:.5rem}.ps-4{padding-inline-start:1rem}.ps-8{padding-inline-start:2rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.text-center{text-align:center}.text-start{text-align:start}.align-middle{vertical-align:middle}.text-\\[1\\.75rem\\]{font-size:1.75rem}.text-\\[10px\\]{font-size:10px}.text-\\[16px\\]{font-size:16px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-none{line-height:1}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-destructive{color:hsl(var(--opencx-destructive))}.text-destructive-foreground{color:hsl(var(--opencx-destructive-foreground))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}.text-foreground{color:hsl(var(--opencx-foreground))}.text-muted-foreground{color:hsl(var(--opencx-muted-foreground))}.text-muted-foreground\\/70{color:hsl(var(--opencx-muted-foreground) / .7)}.text-muted-foreground\\/75{color:hsl(var(--opencx-muted-foreground) / .75)}.text-primary{color:hsl(var(--opencx-primary))}.text-primary-foreground{color:hsl(var(--opencx-primary-foreground))}.text-secondary-foreground{color:hsl(var(--opencx-secondary-foreground))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.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-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;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-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-opacity{transition-property:opacity;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}.duration-200{transition-duration:.2s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.duration-200{animation-duration:.2s}.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}.required:after{content:" *";color:red}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.file\\:text-primary-foreground::file-selector-button{color:hsl(var(--opencx-primary-foreground))}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--opencx-muted-foreground))}.placeholder\\:text-muted-foreground\\/75::placeholder{color:hsl(var(--opencx-muted-foreground) / .75)}.focus-within\\:border-primary:focus-within{border-color:hsl(var(--opencx-primary))}.hover\\:scale-\\[var\\(--scale\\)\\]:hover{--tw-scale-x: var(--scale);--tw-scale-y: var(--scale);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:border-primary:hover{border-color:hsl(var(--opencx-primary))}.hover\\:bg-secondary:hover{background-color:hsl(var(--opencx-secondary))}.hover\\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.hover\\:text-primary:hover{color:hsl(var(--opencx-primary))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.focus\\:bg-accent:focus{background-color:hsl(var(--opencx-accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--opencx-accent-foreground))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--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\\:ring-ring:focus{--tw-ring-color: hsl(var(--opencx-ring))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--opencx-ring))}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--opencx-background))}.active\\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\\:hover\\:scale-\\[calc\\(var\\(--scale\\)-0\\.02\\)\\]:hover:active{--tw-scale-x: calc(var(--scale) - .02);--tw-scale-y: calc(var(--scale) - .02);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:active\\:scale-95:active:hover{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\\:opacity-100{opacity:1}.group:hover .group-hover\\:active\\:scale-90:active,.group:active .group-active\\:scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[state\\=checked\\]\\:translate-x-4[data-state=checked]{--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:hsl(var(--opencx-primary))}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--opencx-accent))}.data-\\[state\\=unchecked\\]\\:bg-input[data-state=unchecked]{background-color:hsl(var(--opencx-input))}.data-\\[state\\=open\\]\\:text-muted-foreground[data-state=open]{color:hsl(var(--opencx-muted-foreground))}.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}.data-\\[state\\=closed\\]\\:slide-out-to-left-1\\/2[data-state=closed]{--tw-exit-translate-x: -50%}.data-\\[state\\=closed\\]\\:slide-out-to-top-\\[48\\%\\][data-state=closed]{--tw-exit-translate-y: -48%}.data-\\[state\\=open\\]\\:slide-in-from-left-1\\/2[data-state=open]{--tw-enter-translate-x: -50%}.data-\\[state\\=open\\]\\:slide-in-from-top-\\[48\\%\\][data-state=open]{--tw-enter-translate-y: -48%}.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))}', $o = te.Provider, Yo = te.Root, qo = te.Trigger, It = E.forwardRef(({ className: e, sideOffset: r = 4, ...t }, n) => /* @__PURE__ */ o(
|
|
465
|
+
const It = '@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..700;1,14..32,100..700&display=swap";@import"https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*{-ms-overflow-style:none;scrollbar-width:none}*::-webkit-scrollbar{display:none}*{border-color:hsl(var(--opencx-border))}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%),0 3px rgb(var(--tw-prose-kbd-shadows) / 10%);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-kbd: #111827;--tw-prose-kbd-shadows: 17 24 39;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.end-4{inset-inline-end:1rem}.end-6{inset-inline-end:1.5rem}.left-2{left:.5rem}.left-\\[50\\%\\]{left:50%}.start-0{inset-inline-start:0px}.top-0{top:0}.top-4{top:1rem}.top-6{top:1.5rem}.top-\\[50\\%\\]{top:50%}.z-10{z-index:10}.z-50{z-index:50}.m-2{margin:.5rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.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-10{width:2.5rem;height:2.5rem}.size-12{width:3rem;height:3rem}.size-16{width:4rem;height:4rem}.size-3{width:.75rem;height:.75rem}.size-4{width:1rem;height:1rem}.size-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.size-auto{width:auto;height:auto}.size-fit{width:fit-content;height:fit-content}.size-full{width:100%;height:100%}.h-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-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%}.min-w-\\[8rem\\]{min-width:8rem}.max-w-\\[61\\.8\\%\\]{max-width:61.8%}.max-w-full{max-width:100%}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.translate-x-\\[-50\\%\\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[var\\(--wobble-x\\)\\]{--tw-translate-x: var(--wobble-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[-50\\%\\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[var\\(--wobble-y\\)\\]{--tw-translate-y: var(--wobble-y);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-\\[1px\\]{gap:1px}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.scroll-smooth{scroll-behavior:smooth}.text-ellipsis{text-overflow:ellipsis}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-\\[20px\\]{border-radius:20px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-l-md{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.rounded-r-md{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-bl-md{border-bottom-left-radius:.375rem}.rounded-br-md{border-bottom-right-radius:.375rem}.rounded-tl-md{border-top-left-radius:.375rem}.rounded-tr-md{border-top-right-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-none{border-style:none}.border-transparent{border-color:transparent}.bg-\\[white\\]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-background{background-color:hsl(var(--opencx-background))}.bg-black\\/50{background-color:#00000080}.bg-black\\/60{background-color:#0009}.bg-destructive{background-color:hsl(var(--opencx-destructive))}.bg-muted{background-color:hsl(var(--opencx-muted))}.bg-primary{background-color:hsl(var(--opencx-primary))}.bg-secondary{background-color:hsl(var(--opencx-secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-\\[radial-gradient\\(ellipse_at_top_left\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\,radial-gradient\\(ellipse_at_top_right\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\]{background-image:radial-gradient(ellipse at top left,hsl(var(--opencx-primary)),transparent),radial-gradient(ellipse at top right,hsl(var(--opencx-primary)),transparent)}.fill-current{fill:currentColor}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-0{padding-bottom:0}.pe-2{padding-inline-end:.5rem}.pe-4{padding-inline-end:1rem}.ps-2{padding-inline-start:.5rem}.ps-4{padding-inline-start:1rem}.ps-8{padding-inline-start:2rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.text-center{text-align:center}.text-start{text-align:start}.align-middle{vertical-align:middle}.text-\\[1\\.75rem\\]{font-size:1.75rem}.text-\\[10px\\]{font-size:10px}.text-\\[16px\\]{font-size:16px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-none{line-height:1}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-destructive{color:hsl(var(--opencx-destructive))}.text-destructive-foreground{color:hsl(var(--opencx-destructive-foreground))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}.text-foreground{color:hsl(var(--opencx-foreground))}.text-muted-foreground{color:hsl(var(--opencx-muted-foreground))}.text-muted-foreground\\/70{color:hsl(var(--opencx-muted-foreground) / .7)}.text-muted-foreground\\/75{color:hsl(var(--opencx-muted-foreground) / .75)}.text-primary{color:hsl(var(--opencx-primary))}.text-primary-foreground{color:hsl(var(--opencx-primary-foreground))}.text-secondary-foreground{color:hsl(var(--opencx-secondary-foreground))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.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-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-opacity{transition-property:opacity;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}.duration-200{transition-duration:.2s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.duration-200{animation-duration:.2s}.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}.required:after{content:" *";color:red}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.file\\:text-primary-foreground::file-selector-button{color:hsl(var(--opencx-primary-foreground))}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--opencx-muted-foreground))}.placeholder\\:text-muted-foreground\\/75::placeholder{color:hsl(var(--opencx-muted-foreground) / .75)}.focus-within\\:border-primary:focus-within{border-color:hsl(var(--opencx-primary))}.hover\\:scale-\\[var\\(--scale\\)\\]:hover{--tw-scale-x: var(--scale);--tw-scale-y: var(--scale);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:border-primary:hover{border-color:hsl(var(--opencx-primary))}.hover\\:bg-secondary:hover{background-color:hsl(var(--opencx-secondary))}.hover\\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.hover\\:text-primary:hover{color:hsl(var(--opencx-primary))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.focus\\:bg-accent:focus{background-color:hsl(var(--opencx-accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--opencx-accent-foreground))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--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\\:ring-ring:focus{--tw-ring-color: hsl(var(--opencx-ring))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--opencx-ring))}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--opencx-background))}.active\\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\\:hover\\:scale-\\[calc\\(var\\(--scale\\)-0\\.02\\)\\]:hover:active{--tw-scale-x: calc(var(--scale) - .02);--tw-scale-y: calc(var(--scale) - .02);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:active\\:scale-95:active:hover{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\\:opacity-100{opacity:1}.group:hover .group-hover\\:active\\:scale-90:active,.group:active .group-active\\:scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[state\\=checked\\]\\:translate-x-4[data-state=checked]{--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:hsl(var(--opencx-primary))}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--opencx-accent))}.data-\\[state\\=unchecked\\]\\:bg-input[data-state=unchecked]{background-color:hsl(var(--opencx-input))}.data-\\[state\\=open\\]\\:text-muted-foreground[data-state=open]{color:hsl(var(--opencx-muted-foreground))}.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}.data-\\[state\\=closed\\]\\:slide-out-to-left-1\\/2[data-state=closed]{--tw-exit-translate-x: -50%}.data-\\[state\\=closed\\]\\:slide-out-to-top-\\[48\\%\\][data-state=closed]{--tw-exit-translate-y: -48%}.data-\\[state\\=open\\]\\:slide-in-from-left-1\\/2[data-state=open]{--tw-enter-translate-x: -50%}.data-\\[state\\=open\\]\\:slide-in-from-top-\\[48\\%\\][data-state=open]{--tw-enter-translate-y: -48%}.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))}', Yo = te.Provider, qo = te.Root, Uo = te.Trigger, Tt = E.forwardRef(({ className: e, sideOffset: r = 4, ...t }, n) => /* @__PURE__ */ o(
|
|
458
466
|
te.Content,
|
|
459
467
|
{
|
|
460
468
|
ref: n,
|
|
@@ -466,7 +474,7 @@ const _t = '@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wgh
|
|
|
466
474
|
...t
|
|
467
475
|
}
|
|
468
476
|
));
|
|
469
|
-
|
|
477
|
+
Tt.displayName = te.Content.displayName;
|
|
470
478
|
function Q({
|
|
471
479
|
children: e,
|
|
472
480
|
content: r,
|
|
@@ -474,10 +482,10 @@ function Q({
|
|
|
474
482
|
align: n
|
|
475
483
|
}) {
|
|
476
484
|
const { disableTooltips: s } = N();
|
|
477
|
-
return !r || s ? e : /* @__PURE__ */
|
|
478
|
-
/* @__PURE__ */ o(
|
|
485
|
+
return !r || s ? e : /* @__PURE__ */ c(qo, { children: [
|
|
486
|
+
/* @__PURE__ */ o(Uo, { asChild: !0, children: e }),
|
|
479
487
|
/* @__PURE__ */ o(
|
|
480
|
-
|
|
488
|
+
Tt,
|
|
481
489
|
{
|
|
482
490
|
side: t,
|
|
483
491
|
align: n,
|
|
@@ -505,29 +513,29 @@ const re = {
|
|
|
505
513
|
transitionDuration: "1000ms"
|
|
506
514
|
};
|
|
507
515
|
function X() {
|
|
508
|
-
var
|
|
509
|
-
const { dir: e } = be(), { isSmallScreen: r } = A(), { theme: t, inline: n } = N(), s = ($) => n ? "100%" : $, a = ($,
|
|
510
|
-
zIndex: ((
|
|
516
|
+
var x, h, v, u, b, _, y, T, M, P, F, O, f, k, B, S, L, oe, Te, Me, De, Re, Oe, je, Ee, Pe, Fe, We, He, Ae, Be, Le, $e, Ye, qe, Ue, Xe, Ve, Ke, Ge, Ze, Je, Qe, et, tt, ot, rt;
|
|
517
|
+
const { dir: e } = be(), { isSmallScreen: r } = A(), { theme: t, inline: n } = N(), s = ($) => n ? "100%" : $, a = ($, pe) => r ? `100dv${$}` : pe, i = ($, pe) => s(a($, pe)), l = {
|
|
518
|
+
zIndex: ((x = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : x.zIndex) ?? 1e7,
|
|
511
519
|
offset: {
|
|
512
|
-
bottom: ((
|
|
513
|
-
right: ((
|
|
514
|
-
left: ((
|
|
520
|
+
bottom: ((v = (h = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : h.offset) == null ? void 0 : v.bottom) ?? 20,
|
|
521
|
+
right: ((b = (u = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : u.offset) == null ? void 0 : b.right) ?? (e === "ltr" ? 20 : "initial"),
|
|
522
|
+
left: ((y = (_ = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : _.offset) == null ? void 0 : y.left) ?? (e === "rtl" ? 20 : "initial")
|
|
515
523
|
},
|
|
516
524
|
size: {
|
|
517
|
-
button: ((M = (
|
|
518
|
-
icon: ((
|
|
525
|
+
button: ((M = (T = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : T.size) == null ? void 0 : M.button) ?? 48,
|
|
526
|
+
icon: ((F = (P = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : P.size) == null ? void 0 : F.icon) ?? 24
|
|
519
527
|
}
|
|
520
528
|
}, p = (() => {
|
|
521
|
-
const $ = e === "ltr" ?
|
|
529
|
+
const $ = e === "ltr" ? l.offset.right : l.offset.left;
|
|
522
530
|
return typeof $ != "number" ? 0 : $;
|
|
523
|
-
})(),
|
|
531
|
+
})(), m = {
|
|
524
532
|
palette: (t == null ? void 0 : t.palette) ?? "neutral",
|
|
525
533
|
primaryColor: (t == null ? void 0 : t.primaryColor) ?? "hsl(0 0% 9%)",
|
|
526
|
-
widgetTrigger:
|
|
534
|
+
widgetTrigger: l,
|
|
527
535
|
widgetContentContainer: {
|
|
528
536
|
borderRadius: r ? "0px" : ((O = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : O.borderRadius) ?? "32px",
|
|
529
|
-
zIndex: ((
|
|
530
|
-
outline: ((
|
|
537
|
+
zIndex: ((f = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : f.zIndex) ?? l.zIndex + 1,
|
|
538
|
+
outline: ((k = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : k.outline) ?? "none",
|
|
531
539
|
// was: '1px solid'
|
|
532
540
|
outlineColor: ((B = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : B.outlineColor) ?? "hsl(0 0% 50% / .5)",
|
|
533
541
|
boxShadow: ((S = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : S.boxShadow) ?? "0 0px 100px 0px rgb(0 0 0 / 0.25)",
|
|
@@ -535,7 +543,7 @@ function X() {
|
|
|
535
543
|
transitionTimingFunction: ((oe = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : oe.transitionTimingFunction) ?? re.transitionTimingFunction,
|
|
536
544
|
transitionDuration: ((Te = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Te.transitionDuration) ?? re.transitionDuration,
|
|
537
545
|
offset: {
|
|
538
|
-
side: r ? 0 :
|
|
546
|
+
side: r ? 0 : l.offset.bottom + l.size.button + V.y * 2 + (((De = (Me = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Me.offset) == null ? void 0 : De.side) ?? 10),
|
|
539
547
|
align: r ? 0 : p + (((Oe = (Re = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Re.offset) == null ? void 0 : Oe.align) ?? 0)
|
|
540
548
|
}
|
|
541
549
|
},
|
|
@@ -545,7 +553,7 @@ function X() {
|
|
|
545
553
|
// By setting minHeight to 1px, a nice animation will play from 1px to the dynamic height of the content of the screen
|
|
546
554
|
minHeight: i(
|
|
547
555
|
"h",
|
|
548
|
-
((
|
|
556
|
+
((Fe = (Pe = t == null ? void 0 : t.screens) == null ? void 0 : Pe.welcome) == null ? void 0 : Fe.minHeight) ?? "1px"
|
|
549
557
|
)
|
|
550
558
|
},
|
|
551
559
|
sessions: {
|
|
@@ -562,14 +570,14 @@ function X() {
|
|
|
562
570
|
),
|
|
563
571
|
height: i(
|
|
564
572
|
"h",
|
|
565
|
-
((Ze = (
|
|
573
|
+
((Ze = (Ge = (Ke = t == null ? void 0 : t.screens) == null ? void 0 : Ke.chat) == null ? void 0 : Ge.withCanvas) == null ? void 0 : Ze.height) ?? "min(800px, 100vh)"
|
|
566
574
|
),
|
|
567
575
|
transitionTimingFunction: ((et = (Qe = (Je = t == null ? void 0 : t.screens) == null ? void 0 : Je.chat) == null ? void 0 : Qe.withCanvas) == null ? void 0 : et.transitionTimingFunction) ?? re.transitionTimingFunction,
|
|
568
576
|
transitionDuration: ((rt = (ot = (tt = t == null ? void 0 : t.screens) == null ? void 0 : tt.chat) == null ? void 0 : ot.withCanvas) == null ? void 0 : rt.transitionDuration) ?? re.transitionDuration
|
|
569
577
|
}
|
|
570
578
|
}
|
|
571
579
|
}
|
|
572
|
-
},
|
|
580
|
+
}, C = {
|
|
573
581
|
// Subtract the offset.bottom twice so that it adds a bit of padding to the top
|
|
574
582
|
// Subtract the distance between the trigger and the widget content container
|
|
575
583
|
// Subtract the invisible padding of the trigger (for the wobble effect)
|
|
@@ -577,8 +585,8 @@ function X() {
|
|
|
577
585
|
"h",
|
|
578
586
|
`calc(
|
|
579
587
|
100vh
|
|
580
|
-
- ${
|
|
581
|
-
- ${
|
|
588
|
+
- ${m.widgetTrigger.offset.bottom}px
|
|
589
|
+
- ${m.widgetContentContainer.offset.side}px
|
|
582
590
|
- ${V.y * 2}px
|
|
583
591
|
)`
|
|
584
592
|
),
|
|
@@ -593,34 +601,34 @@ function X() {
|
|
|
593
601
|
minHeight: i(
|
|
594
602
|
"h",
|
|
595
603
|
`min(
|
|
596
|
-
${
|
|
597
|
-
${
|
|
598
|
-
${
|
|
604
|
+
${m.screens.welcome.minHeight},
|
|
605
|
+
${m.screens.sessions.height},
|
|
606
|
+
${m.screens.chat.height}
|
|
599
607
|
)`
|
|
600
608
|
),
|
|
601
609
|
minWidth: i(
|
|
602
610
|
"w",
|
|
603
611
|
`min(
|
|
604
|
-
${
|
|
605
|
-
${
|
|
606
|
-
${
|
|
612
|
+
${m.screens.welcome.width},
|
|
613
|
+
${m.screens.sessions.width},
|
|
614
|
+
${m.screens.chat.width}
|
|
607
615
|
)`
|
|
608
616
|
)
|
|
609
617
|
};
|
|
610
618
|
return {
|
|
611
|
-
theme:
|
|
612
|
-
computed:
|
|
613
|
-
cssVars:
|
|
614
|
-
palette:
|
|
615
|
-
primary:
|
|
619
|
+
theme: m,
|
|
620
|
+
computed: C,
|
|
621
|
+
cssVars: Xo({
|
|
622
|
+
palette: m.palette,
|
|
623
|
+
primary: m.primaryColor
|
|
616
624
|
})
|
|
617
625
|
};
|
|
618
626
|
}
|
|
619
|
-
function
|
|
627
|
+
function Xo({
|
|
620
628
|
palette: e,
|
|
621
629
|
primary: r
|
|
622
630
|
}) {
|
|
623
|
-
const t =
|
|
631
|
+
const t = Mt(e), n = st(r).toHsl(), s = st(r).isLight() ? t[950] : t[50];
|
|
624
632
|
return {
|
|
625
633
|
"--opencx-primary": `${n.h} ${n.s * 100}% ${n.l * 100}%`,
|
|
626
634
|
"--opencx-primary-foreground": s,
|
|
@@ -639,7 +647,7 @@ function Uo({
|
|
|
639
647
|
"--opencx-ring": "var(--opencx-foreground)"
|
|
640
648
|
};
|
|
641
649
|
}
|
|
642
|
-
function
|
|
650
|
+
function Mt(e) {
|
|
643
651
|
const r = {
|
|
644
652
|
50: "0 0% 98%",
|
|
645
653
|
100: "0 0% 96.1%",
|
|
@@ -699,11 +707,11 @@ function Tt(e) {
|
|
|
699
707
|
case "slate":
|
|
700
708
|
return s;
|
|
701
709
|
default:
|
|
702
|
-
return D(e,
|
|
710
|
+
return D(e, Mt.name), r;
|
|
703
711
|
}
|
|
704
712
|
}
|
|
705
|
-
function
|
|
706
|
-
const { contentIframeRef: e } =
|
|
713
|
+
function Dt() {
|
|
714
|
+
const { contentIframeRef: e } = q(), { inline: r } = N();
|
|
707
715
|
return {
|
|
708
716
|
setWidth: (t) => {
|
|
709
717
|
var n;
|
|
@@ -725,12 +733,12 @@ function Se({
|
|
|
725
733
|
width: e,
|
|
726
734
|
height: r
|
|
727
735
|
}) {
|
|
728
|
-
const { isSmallScreen: t } = A(), { setWidth: n, setHeight: s } =
|
|
729
|
-
|
|
736
|
+
const { isSmallScreen: t } = A(), { setWidth: n, setHeight: s } = Dt();
|
|
737
|
+
ie(() => {
|
|
730
738
|
e && n(e), r && s(r);
|
|
731
739
|
}, [t, r, e, n, s]);
|
|
732
740
|
}
|
|
733
|
-
const it =
|
|
741
|
+
const it = Vt;
|
|
734
742
|
function ee({
|
|
735
743
|
name: e,
|
|
736
744
|
className: r
|
|
@@ -738,33 +746,33 @@ function ee({
|
|
|
738
746
|
const t = (() => {
|
|
739
747
|
switch (e) {
|
|
740
748
|
case "Check":
|
|
741
|
-
return
|
|
749
|
+
return io;
|
|
742
750
|
case "CheckCheck":
|
|
743
|
-
return
|
|
751
|
+
return ao;
|
|
744
752
|
case "CircleCheck":
|
|
745
|
-
return
|
|
753
|
+
return mt;
|
|
746
754
|
case "CircleCheckBig":
|
|
747
|
-
return
|
|
755
|
+
return so;
|
|
748
756
|
case "CircleX":
|
|
749
|
-
return
|
|
757
|
+
return no;
|
|
750
758
|
case "Expand":
|
|
751
|
-
return
|
|
759
|
+
return ro;
|
|
752
760
|
case "Maximize":
|
|
753
|
-
return
|
|
761
|
+
return oo;
|
|
754
762
|
case "Maximize2":
|
|
755
|
-
return
|
|
763
|
+
return to;
|
|
756
764
|
case "Minimize":
|
|
757
|
-
return
|
|
765
|
+
return eo;
|
|
758
766
|
case "Minimize2":
|
|
759
|
-
return
|
|
767
|
+
return Qt;
|
|
760
768
|
case "Shrink":
|
|
761
|
-
return
|
|
769
|
+
return Jt;
|
|
762
770
|
case "SquareCheck":
|
|
763
|
-
return
|
|
771
|
+
return Zt;
|
|
764
772
|
case "SquareCheckBig":
|
|
765
773
|
return Gt;
|
|
766
774
|
case "SquareX":
|
|
767
|
-
return
|
|
775
|
+
return Kt;
|
|
768
776
|
case "X":
|
|
769
777
|
return xe;
|
|
770
778
|
case void 0:
|
|
@@ -775,7 +783,7 @@ function ee({
|
|
|
775
783
|
})();
|
|
776
784
|
return /* @__PURE__ */ o(t, { className: d("size-4", r) });
|
|
777
785
|
}
|
|
778
|
-
function
|
|
786
|
+
function Rt({
|
|
779
787
|
className: e,
|
|
780
788
|
...r
|
|
781
789
|
}) {
|
|
@@ -789,7 +797,7 @@ function Dt({
|
|
|
789
797
|
}
|
|
790
798
|
function _e() {
|
|
791
799
|
var s;
|
|
792
|
-
const { data: e } =
|
|
800
|
+
const { data: e } = ce(), {
|
|
793
801
|
routerState: { screen: r }
|
|
794
802
|
} = H(), { textContent: t } = N();
|
|
795
803
|
return (() => {
|
|
@@ -807,12 +815,12 @@ function _e() {
|
|
|
807
815
|
}
|
|
808
816
|
})() ?? ((s = e == null ? void 0 : e.data) == null ? void 0 : s.organizationName) ?? "Chat";
|
|
809
817
|
}
|
|
810
|
-
function
|
|
818
|
+
function Vo(e) {
|
|
811
819
|
switch (e) {
|
|
812
820
|
case "chat":
|
|
813
|
-
return
|
|
821
|
+
return g("chat/header");
|
|
814
822
|
case "sessions":
|
|
815
|
-
return
|
|
823
|
+
return g("sessions/header");
|
|
816
824
|
case "welcome":
|
|
817
825
|
return;
|
|
818
826
|
default:
|
|
@@ -820,7 +828,7 @@ function Xo(e) {
|
|
|
820
828
|
return;
|
|
821
829
|
}
|
|
822
830
|
}
|
|
823
|
-
function
|
|
831
|
+
function Ko() {
|
|
824
832
|
const { router: e } = N(), {
|
|
825
833
|
routerState: { screen: r },
|
|
826
834
|
toSessionsScreen: t
|
|
@@ -832,14 +840,14 @@ function Vo() {
|
|
|
832
840
|
size: "fit",
|
|
833
841
|
className: "rounded-full",
|
|
834
842
|
onClick: t,
|
|
835
|
-
children: /* @__PURE__ */ o(
|
|
843
|
+
children: /* @__PURE__ */ o(lo, { className: "size-4 rtl:-scale-100" })
|
|
836
844
|
}
|
|
837
845
|
);
|
|
838
846
|
}
|
|
839
847
|
function Go({
|
|
840
848
|
button: e
|
|
841
849
|
}) {
|
|
842
|
-
const { setIsOpen: r } =
|
|
850
|
+
const { setIsOpen: r } = K(), { isSmallScreen: t } = A();
|
|
843
851
|
return t && e.hideOnSmallScreen || !t && e.hideOnLargeScreen ? null : /* @__PURE__ */ o(
|
|
844
852
|
z,
|
|
845
853
|
{
|
|
@@ -859,7 +867,7 @@ function ue({
|
|
|
859
867
|
}) {
|
|
860
868
|
const [r, t] = j(!1), {
|
|
861
869
|
routerState: { screen: n }
|
|
862
|
-
} = H(), { isSmallScreen: s } = A(), { theme: a } = X(), { setWidth: i, setHeight:
|
|
870
|
+
} = H(), { isSmallScreen: s } = A(), { theme: a } = X(), { setWidth: i, setHeight: l } = Dt();
|
|
863
871
|
if (n !== "chat" && n !== "sessions") return null;
|
|
864
872
|
const p = (() => {
|
|
865
873
|
switch (n) {
|
|
@@ -870,7 +878,7 @@ function ue({
|
|
|
870
878
|
default:
|
|
871
879
|
return D(n, ue.name), a.screens.chat.height;
|
|
872
880
|
}
|
|
873
|
-
})(),
|
|
881
|
+
})(), m = (() => {
|
|
874
882
|
switch (n) {
|
|
875
883
|
case "chat":
|
|
876
884
|
return a.screens.chat.width;
|
|
@@ -879,10 +887,10 @@ function ue({
|
|
|
879
887
|
default:
|
|
880
888
|
return D(n, ue.name), a.screens.chat.width;
|
|
881
889
|
}
|
|
882
|
-
})(),
|
|
883
|
-
t((
|
|
884
|
-
const
|
|
885
|
-
return
|
|
890
|
+
})(), C = () => {
|
|
891
|
+
t((x) => {
|
|
892
|
+
const h = !x;
|
|
893
|
+
return l(h ? "100vh" : p), i(h ? `max(40vw, ${m})` : m), h;
|
|
886
894
|
});
|
|
887
895
|
};
|
|
888
896
|
return s && e.hideOnSmallScreen || !s && e.hideOnLargeScreen ? null : /* @__PURE__ */ o(
|
|
@@ -891,7 +899,7 @@ function ue({
|
|
|
891
899
|
variant: "ghost",
|
|
892
900
|
size: "fit",
|
|
893
901
|
className: "rounded-full",
|
|
894
|
-
onClick:
|
|
902
|
+
onClick: C,
|
|
895
903
|
children: /* @__PURE__ */ o(
|
|
896
904
|
ee,
|
|
897
905
|
{
|
|
@@ -901,14 +909,14 @@ function ue({
|
|
|
901
909
|
}
|
|
902
910
|
);
|
|
903
911
|
}
|
|
904
|
-
function
|
|
912
|
+
function Ot({
|
|
905
913
|
button: e
|
|
906
914
|
}) {
|
|
907
|
-
var _,
|
|
908
|
-
const [r, t] = j(!1), { widgetCtx: n } =
|
|
909
|
-
const { success:
|
|
910
|
-
if (t(!1), !
|
|
911
|
-
switch (
|
|
915
|
+
var _, y;
|
|
916
|
+
const [r, t] = j(!1), { widgetCtx: n } = q(), { setIsOpen: s } = K(), { resolveSession: a, sessionState: i } = U(), { isSmallScreen: l } = A(), p = !i.session, m = ((_ = i.session) == null ? void 0 : _.isOpened) === !1, C = e.onResolved || "stay-in-chat", x = e.behaviorBeforeSessionCreation || "disabled", h = e.behaviorIfSessionIsResolved || "disabled", v = !!(i.isResolvingSession || p && x === "disabled" || m && h === "disabled"), u = async () => {
|
|
917
|
+
const { success: T, error: M } = await a();
|
|
918
|
+
if (t(!1), !T) return console.error(M);
|
|
919
|
+
switch (C) {
|
|
912
920
|
case "stay-in-chat":
|
|
913
921
|
return;
|
|
914
922
|
case "close-widget":
|
|
@@ -921,12 +929,12 @@ function Rt({
|
|
|
921
929
|
s(!1), n.resetChat();
|
|
922
930
|
break;
|
|
923
931
|
default:
|
|
924
|
-
D(
|
|
932
|
+
D(C, Ot.name);
|
|
925
933
|
break;
|
|
926
934
|
}
|
|
927
|
-
},
|
|
935
|
+
}, b = () => {
|
|
928
936
|
if (p)
|
|
929
|
-
switch (
|
|
937
|
+
switch (x) {
|
|
930
938
|
case "disabled":
|
|
931
939
|
return;
|
|
932
940
|
case "close-widget":
|
|
@@ -934,12 +942,12 @@ function Rt({
|
|
|
934
942
|
break;
|
|
935
943
|
default:
|
|
936
944
|
D(
|
|
937
|
-
|
|
938
|
-
|
|
945
|
+
x,
|
|
946
|
+
b.name
|
|
939
947
|
);
|
|
940
948
|
}
|
|
941
|
-
if (
|
|
942
|
-
switch (
|
|
949
|
+
if (m)
|
|
950
|
+
switch (h) {
|
|
943
951
|
case "disabled":
|
|
944
952
|
return;
|
|
945
953
|
case "close-widget":
|
|
@@ -953,26 +961,26 @@ function Rt({
|
|
|
953
961
|
break;
|
|
954
962
|
default:
|
|
955
963
|
D(
|
|
956
|
-
|
|
957
|
-
|
|
964
|
+
h,
|
|
965
|
+
b.name
|
|
958
966
|
);
|
|
959
967
|
}
|
|
960
968
|
};
|
|
961
|
-
return
|
|
969
|
+
return l && e.hideOnSmallScreen || !l && e.hideOnLargeScreen ? null : ((y = e.confirmation) == null ? void 0 : y.type) === "modal" && !m && !p ? /* @__PURE__ */ c(vt, { open: r, onOpenChange: t, children: [
|
|
962
970
|
/* @__PURE__ */ o(bt, { asChild: !0, children: /* @__PURE__ */ o(
|
|
963
971
|
z,
|
|
964
972
|
{
|
|
965
973
|
variant: "ghost",
|
|
966
974
|
size: "fit",
|
|
967
975
|
className: "rounded-full",
|
|
968
|
-
disabled:
|
|
976
|
+
disabled: v,
|
|
969
977
|
children: /* @__PURE__ */ o(ee, { name: e.icon })
|
|
970
978
|
}
|
|
971
979
|
) }),
|
|
972
|
-
/* @__PURE__ */
|
|
980
|
+
/* @__PURE__ */ c(ye, { children: [
|
|
973
981
|
/* @__PURE__ */ o(yt, { children: /* @__PURE__ */ o(ke, { children: e.confirmation.title || "Close conversation" }) }),
|
|
974
982
|
/* @__PURE__ */ o(kt, { children: /* @__PURE__ */ o(zt, { children: e.confirmation.description || "Are you sure you want to close this conversation?" }) }),
|
|
975
|
-
/* @__PURE__ */
|
|
983
|
+
/* @__PURE__ */ c(Ct, { children: [
|
|
976
984
|
/* @__PURE__ */ o(
|
|
977
985
|
z,
|
|
978
986
|
{
|
|
@@ -986,7 +994,7 @@ function Rt({
|
|
|
986
994
|
z,
|
|
987
995
|
{
|
|
988
996
|
variant: "destructive",
|
|
989
|
-
onClick:
|
|
997
|
+
onClick: u,
|
|
990
998
|
disabled: i.isResolvingSession,
|
|
991
999
|
children: e.confirmation.confirmButtonText || "Yes"
|
|
992
1000
|
}
|
|
@@ -999,8 +1007,8 @@ function Rt({
|
|
|
999
1007
|
variant: "ghost",
|
|
1000
1008
|
size: "fit",
|
|
1001
1009
|
className: "rounded-full",
|
|
1002
|
-
onClick:
|
|
1003
|
-
disabled:
|
|
1010
|
+
onClick: m || p ? b : u,
|
|
1011
|
+
disabled: v,
|
|
1004
1012
|
children: /* @__PURE__ */ o(ee, { name: e.icon })
|
|
1005
1013
|
}
|
|
1006
1014
|
);
|
|
@@ -1012,21 +1020,21 @@ function fe({ button: e }) {
|
|
|
1012
1020
|
case "expand-shrink":
|
|
1013
1021
|
return /* @__PURE__ */ o(ue, { button: e });
|
|
1014
1022
|
case "resolve-session":
|
|
1015
|
-
return /* @__PURE__ */ o(
|
|
1023
|
+
return /* @__PURE__ */ o(Ot, { button: e });
|
|
1016
1024
|
default:
|
|
1017
1025
|
return D(e, fe.name), null;
|
|
1018
1026
|
}
|
|
1019
1027
|
}
|
|
1020
|
-
const
|
|
1028
|
+
const Zo = {
|
|
1021
1029
|
functionality: "close-widget",
|
|
1022
1030
|
hideOnLargeScreen: !0,
|
|
1023
1031
|
icon: "X"
|
|
1024
1032
|
};
|
|
1025
|
-
function
|
|
1033
|
+
function Jo() {
|
|
1026
1034
|
const {
|
|
1027
1035
|
routerState: { screen: e }
|
|
1028
1036
|
} = H(), { headerButtons: r } = N(), t = e === "chat" ? r == null ? void 0 : r.chatScreen : e === "sessions" ? r == null ? void 0 : r.sessionsScreen : [];
|
|
1029
|
-
return !t || t.length === 0 ? /* @__PURE__ */ o(fe, { button:
|
|
1037
|
+
return !t || t.length === 0 ? /* @__PURE__ */ o(fe, { button: Zo }) : /* @__PURE__ */ o(ve, { children: t.map((n) => /* @__PURE__ */ o(
|
|
1030
1038
|
fe,
|
|
1031
1039
|
{
|
|
1032
1040
|
button: n
|
|
@@ -1034,12 +1042,12 @@ function Zo() {
|
|
|
1034
1042
|
`${n.functionality}-${n.icon}`
|
|
1035
1043
|
)) });
|
|
1036
1044
|
}
|
|
1037
|
-
function
|
|
1045
|
+
function jt() {
|
|
1038
1046
|
const {
|
|
1039
1047
|
routerState: { screen: e }
|
|
1040
|
-
} = H(), { isLoading: r } =
|
|
1041
|
-
return /* @__PURE__ */ o("header", { ...t, className: "py-2 px-4 shrink-0", children: /* @__PURE__ */
|
|
1042
|
-
/* @__PURE__ */ o(
|
|
1048
|
+
} = H(), { isLoading: r } = ce(), t = Vo(e), n = _e();
|
|
1049
|
+
return /* @__PURE__ */ o("header", { ...t, className: "py-2 px-4 shrink-0", children: /* @__PURE__ */ c("div", { className: "flex items-center gap-2", children: [
|
|
1050
|
+
/* @__PURE__ */ o(Ko, {}),
|
|
1043
1051
|
/* @__PURE__ */ o(
|
|
1044
1052
|
"div",
|
|
1045
1053
|
{
|
|
@@ -1047,27 +1055,27 @@ function Ot() {
|
|
|
1047
1055
|
"flex-1 h-8 flex items-center",
|
|
1048
1056
|
e === "sessions" && "ps-2"
|
|
1049
1057
|
),
|
|
1050
|
-
children: /* @__PURE__ */ o(
|
|
1058
|
+
children: /* @__PURE__ */ o(I, { mode: "wait", children: r ? /* @__PURE__ */ o(w, { snapExit: !0, children: /* @__PURE__ */ o(Rt, { className: "h-5 w-1/2" }) }, "skeleton") : /* @__PURE__ */ o(w, { children: /* @__PURE__ */ o("h2", { className: "font-semibold", children: n }) }, "organization-name") })
|
|
1051
1059
|
}
|
|
1052
1060
|
),
|
|
1053
|
-
/* @__PURE__ */ o(
|
|
1061
|
+
/* @__PURE__ */ o(Jo, {})
|
|
1054
1062
|
] }) });
|
|
1055
1063
|
}
|
|
1056
|
-
function
|
|
1057
|
-
return /* @__PURE__ */ o(
|
|
1064
|
+
function Et({ className: e }) {
|
|
1065
|
+
return /* @__PURE__ */ o(co, { className: d("size-4 animate-spin", e) });
|
|
1058
1066
|
}
|
|
1059
|
-
function
|
|
1067
|
+
function Qo() {
|
|
1060
1068
|
const {
|
|
1061
1069
|
messagesState: { isInitialFetchLoading: e }
|
|
1062
|
-
} =
|
|
1070
|
+
} = Y(), { isSmallScreen: r } = A(), { activeMode: t, Component: n } = pt();
|
|
1063
1071
|
return {
|
|
1064
1072
|
isCanvasOpen: !e && !r && !!t && !!n
|
|
1065
1073
|
};
|
|
1066
1074
|
}
|
|
1067
|
-
function
|
|
1068
|
-
const { activeMode: e, Component: r } = pt(), { sendMessage: t } =
|
|
1075
|
+
function er() {
|
|
1076
|
+
const { activeMode: e, Component: r } = pt(), { sendMessage: t } = Y(), { createStateCheckpoint: n } = U(), [s, a] = j(!1), i = async (l) => {
|
|
1069
1077
|
try {
|
|
1070
|
-
a(!0), await t(
|
|
1078
|
+
a(!0), await t(l);
|
|
1071
1079
|
} catch (p) {
|
|
1072
1080
|
console.error(p);
|
|
1073
1081
|
} finally {
|
|
@@ -1085,7 +1093,7 @@ function Qo() {
|
|
|
1085
1093
|
}
|
|
1086
1094
|
);
|
|
1087
1095
|
}
|
|
1088
|
-
const
|
|
1096
|
+
const tr = {
|
|
1089
1097
|
"write-a-message": "اكتب رسالة...",
|
|
1090
1098
|
"session-closed-lead": "تم حل مشكلتك!",
|
|
1091
1099
|
"new-conversation": "محادثة جديدة",
|
|
@@ -1101,7 +1109,7 @@ const er = {
|
|
|
1101
1109
|
"no-conversations-yet": "لا يوجد محادثات",
|
|
1102
1110
|
"back-to-conversations": "العودة إلى المحادثات",
|
|
1103
1111
|
"closed-conversations": "المحادثات المغلقة"
|
|
1104
|
-
},
|
|
1112
|
+
}, or = {
|
|
1105
1113
|
"write-a-message": "Nachricht schreiben...",
|
|
1106
1114
|
"session-closed-lead": "Ihr Problem wurde gelöst!",
|
|
1107
1115
|
"new-conversation": "Neue Konversation",
|
|
@@ -1117,7 +1125,7 @@ const er = {
|
|
|
1117
1125
|
"no-conversations-yet": "noch keine Gespräche",
|
|
1118
1126
|
"back-to-conversations": "Zurück zur Konversationen",
|
|
1119
1127
|
"closed-conversations": "Geschlossene Konversationen"
|
|
1120
|
-
},
|
|
1128
|
+
}, rr = {
|
|
1121
1129
|
"write-a-message": "Write a message...",
|
|
1122
1130
|
"session-closed-lead": "Your issue has been resolved!",
|
|
1123
1131
|
"new-conversation": "New conversation",
|
|
@@ -1133,7 +1141,7 @@ const er = {
|
|
|
1133
1141
|
"no-conversations-yet": "No conversations yet",
|
|
1134
1142
|
"back-to-conversations": "Back to conversations",
|
|
1135
1143
|
"closed-conversations": "Closed conversations"
|
|
1136
|
-
},
|
|
1144
|
+
}, nr = {
|
|
1137
1145
|
"write-a-message": "Écrivez un message...",
|
|
1138
1146
|
"session-closed-lead": "Votre problème a été résolu !",
|
|
1139
1147
|
"new-conversation": "Nouvelle conversation",
|
|
@@ -1149,7 +1157,7 @@ const er = {
|
|
|
1149
1157
|
"no-conversations-yet": "Aucune conversation pour le moment",
|
|
1150
1158
|
"back-to-conversations": "Retour aux conversations",
|
|
1151
1159
|
"closed-conversations": "Conversations fermées"
|
|
1152
|
-
},
|
|
1160
|
+
}, sr = {
|
|
1153
1161
|
"write-a-message": "Schrijf een bericht...",
|
|
1154
1162
|
"session-closed-lead": "Uw probleem is opgelost!",
|
|
1155
1163
|
"new-conversation": "Nieuw gesprek",
|
|
@@ -1165,7 +1173,7 @@ const er = {
|
|
|
1165
1173
|
"no-conversations-yet": "Nog geen gesprekken",
|
|
1166
1174
|
"back-to-conversations": "Terug naar gesprekken",
|
|
1167
1175
|
"closed-conversations": "Afgesloten gesprekken"
|
|
1168
|
-
},
|
|
1176
|
+
}, ar = {
|
|
1169
1177
|
"write-a-message": "Escreva uma mensagem...",
|
|
1170
1178
|
"session-closed-lead": "Seu problema foi resolvido!",
|
|
1171
1179
|
"new-conversation": "Nova conversa",
|
|
@@ -1181,7 +1189,7 @@ const er = {
|
|
|
1181
1189
|
"no-conversations-yet": "Nenhuma conversa ainda",
|
|
1182
1190
|
"back-to-conversations": "Voltar para conversas",
|
|
1183
1191
|
"closed-conversations": "Conversas fechadas"
|
|
1184
|
-
},
|
|
1192
|
+
}, ir = {
|
|
1185
1193
|
"write-a-message": "Escribe un mensaje...",
|
|
1186
1194
|
"session-closed-lead": "¡Tu problema fue resuelto!",
|
|
1187
1195
|
"new-conversation": "Nueva conversación",
|
|
@@ -1197,7 +1205,7 @@ const er = {
|
|
|
1197
1205
|
"no-conversations-yet": "Sin conversaciones aún",
|
|
1198
1206
|
"back-to-conversations": "Volver a conversaciones",
|
|
1199
1207
|
"closed-conversations": "Conversaciones cerradas"
|
|
1200
|
-
},
|
|
1208
|
+
}, lr = {
|
|
1201
1209
|
"write-a-message": "Bir mesaj yazın...",
|
|
1202
1210
|
"session-closed-lead": "Sorununuz çözüldü!",
|
|
1203
1211
|
"new-conversation": "Yeni konuşma",
|
|
@@ -1213,29 +1221,29 @@ const er = {
|
|
|
1213
1221
|
"no-conversations-yet": "Henüz konuşma yok",
|
|
1214
1222
|
"back-to-conversations": "Konuşmalara geri dön",
|
|
1215
1223
|
"closed-conversations": "Kapatılan konuşmalar"
|
|
1216
|
-
},
|
|
1217
|
-
en:
|
|
1218
|
-
ar:
|
|
1219
|
-
nl:
|
|
1220
|
-
fr:
|
|
1221
|
-
de:
|
|
1222
|
-
pt:
|
|
1223
|
-
es:
|
|
1224
|
-
tr:
|
|
1225
|
-
},
|
|
1226
|
-
function
|
|
1227
|
-
return
|
|
1228
|
-
}
|
|
1229
|
-
function
|
|
1230
|
-
const t =
|
|
1224
|
+
}, Pt = {
|
|
1225
|
+
en: rr,
|
|
1226
|
+
ar: tr,
|
|
1227
|
+
nl: sr,
|
|
1228
|
+
fr: nr,
|
|
1229
|
+
de: or,
|
|
1230
|
+
pt: ar,
|
|
1231
|
+
es: ir,
|
|
1232
|
+
tr: lr
|
|
1233
|
+
}, cr = Object.keys(Pt);
|
|
1234
|
+
function dr(e) {
|
|
1235
|
+
return cr.includes(e);
|
|
1236
|
+
}
|
|
1237
|
+
function pr(e, r) {
|
|
1238
|
+
const t = Pt[r];
|
|
1231
1239
|
return t && t[e] || "";
|
|
1232
1240
|
}
|
|
1233
1241
|
function Z() {
|
|
1234
1242
|
const { dir: e } = be(), r = N();
|
|
1235
1243
|
return dt(() => {
|
|
1236
|
-
const t =
|
|
1244
|
+
const t = dr(r.language) ? r.language : "en";
|
|
1237
1245
|
return {
|
|
1238
|
-
t: (n) =>
|
|
1246
|
+
t: (n) => pr(n, t),
|
|
1239
1247
|
language: t,
|
|
1240
1248
|
dir: t === "ar" ? "rtl" : "ltr",
|
|
1241
1249
|
hostDocumentDir: e
|
|
@@ -1247,14 +1255,14 @@ function Ie({
|
|
|
1247
1255
|
className: r,
|
|
1248
1256
|
...t
|
|
1249
1257
|
}) {
|
|
1250
|
-
const { sendMessage: n } =
|
|
1258
|
+
const { sendMessage: n } = Y(), s = () => {
|
|
1251
1259
|
const a = e.trim();
|
|
1252
1260
|
a && n({ content: a });
|
|
1253
1261
|
};
|
|
1254
1262
|
return /* @__PURE__ */ o(
|
|
1255
1263
|
z,
|
|
1256
1264
|
{
|
|
1257
|
-
...
|
|
1265
|
+
...g("chat/suggested_reply_btn"),
|
|
1258
1266
|
size: "sm",
|
|
1259
1267
|
className: d("rounded-xl w-fit", r),
|
|
1260
1268
|
...t,
|
|
@@ -1263,7 +1271,7 @@ function Ie({
|
|
|
1263
1271
|
}
|
|
1264
1272
|
);
|
|
1265
1273
|
}
|
|
1266
|
-
function
|
|
1274
|
+
function hr() {
|
|
1267
1275
|
const { t: e } = Z(), r = [
|
|
1268
1276
|
e("i-need-more-help"),
|
|
1269
1277
|
e("this-was-helpful")
|
|
@@ -1271,7 +1279,7 @@ function pr() {
|
|
|
1271
1279
|
return /* @__PURE__ */ o(
|
|
1272
1280
|
"div",
|
|
1273
1281
|
{
|
|
1274
|
-
...
|
|
1282
|
+
...g("chat/might_solve_user_issue_suggested_replies_container"),
|
|
1275
1283
|
className: "flex items-center gap-2 p-2 pb-0 flex-wrap",
|
|
1276
1284
|
children: r.map((t) => /* @__PURE__ */ o(
|
|
1277
1285
|
Ie,
|
|
@@ -1284,14 +1292,14 @@ function pr() {
|
|
|
1284
1292
|
}
|
|
1285
1293
|
);
|
|
1286
1294
|
}
|
|
1287
|
-
function
|
|
1295
|
+
function mr({
|
|
1288
1296
|
file: { status: e, file: r, error: t },
|
|
1289
1297
|
onCancel: n
|
|
1290
1298
|
}) {
|
|
1291
1299
|
const [s, a] = j(
|
|
1292
1300
|
null
|
|
1293
1301
|
);
|
|
1294
|
-
|
|
1302
|
+
ie(() => {
|
|
1295
1303
|
if (!r.type.startsWith("image/")) return;
|
|
1296
1304
|
const p = new FileReader();
|
|
1297
1305
|
return p.onload = () => a(p.result), p.onerror = () => console.error("Error reading file"), p.readAsDataURL(r), () => p.abort();
|
|
@@ -1299,13 +1307,13 @@ function hr({
|
|
|
1299
1307
|
const i = () => {
|
|
1300
1308
|
switch (e) {
|
|
1301
1309
|
case "uploading":
|
|
1302
|
-
return /* @__PURE__ */ o(
|
|
1310
|
+
return /* @__PURE__ */ o(uo, { className: "size-4 animate-spin" });
|
|
1303
1311
|
case "error":
|
|
1304
1312
|
return /* @__PURE__ */ o(wo, { className: "size-4 text-destructive" });
|
|
1305
1313
|
default:
|
|
1306
1314
|
return null;
|
|
1307
1315
|
}
|
|
1308
|
-
},
|
|
1316
|
+
}, l = () => {
|
|
1309
1317
|
const p = r.type.split("/")[0];
|
|
1310
1318
|
return p === "image" && s ? /* @__PURE__ */ o(
|
|
1311
1319
|
"img",
|
|
@@ -1314,17 +1322,17 @@ function hr({
|
|
|
1314
1322
|
className: "object-cover bg-secondary size-full",
|
|
1315
1323
|
alt: r.name
|
|
1316
1324
|
}
|
|
1317
|
-
) : p === "audio" ? /* @__PURE__ */ o(
|
|
1325
|
+
) : p === "audio" ? /* @__PURE__ */ o(fo, {}) : p === "video" ? /* @__PURE__ */ o(vo, {}) : /* @__PURE__ */ o(bo, {});
|
|
1318
1326
|
};
|
|
1319
1327
|
return /* @__PURE__ */ o(
|
|
1320
1328
|
Q,
|
|
1321
1329
|
{
|
|
1322
1330
|
side: "bottom",
|
|
1323
|
-
content: e === "error" ? /* @__PURE__ */
|
|
1331
|
+
content: e === "error" ? /* @__PURE__ */ c("span", { className: "text-destructive", children: [
|
|
1324
1332
|
"Failed to upload: ",
|
|
1325
1333
|
t
|
|
1326
1334
|
] }) : r.name,
|
|
1327
|
-
children: /* @__PURE__ */
|
|
1335
|
+
children: /* @__PURE__ */ c(
|
|
1328
1336
|
"div",
|
|
1329
1337
|
{
|
|
1330
1338
|
className: d(
|
|
@@ -1348,54 +1356,54 @@ function hr({
|
|
|
1348
1356
|
children: /* @__PURE__ */ o(xe, { className: "size-4 text-primary-foreground" })
|
|
1349
1357
|
}
|
|
1350
1358
|
),
|
|
1351
|
-
/* @__PURE__ */ o(
|
|
1359
|
+
/* @__PURE__ */ o(l, {})
|
|
1352
1360
|
]
|
|
1353
1361
|
}
|
|
1354
1362
|
)
|
|
1355
1363
|
}
|
|
1356
1364
|
);
|
|
1357
1365
|
}
|
|
1358
|
-
function
|
|
1366
|
+
function gr() {
|
|
1359
1367
|
var O;
|
|
1360
|
-
const { isSmallScreen: e } = A(), r =
|
|
1361
|
-
allFiles:
|
|
1368
|
+
const { isSmallScreen: e } = A(), r = le(null), { sendMessage: t } = Y(), { sessionState: n } = U(), { t: s } = Z(), [a, i] = j(""), {
|
|
1369
|
+
allFiles: l,
|
|
1362
1370
|
emptyTheFiles: p,
|
|
1363
|
-
handleCancelUpload:
|
|
1364
|
-
appendFiles:
|
|
1365
|
-
isUploading:
|
|
1366
|
-
successFiles:
|
|
1367
|
-
} =
|
|
1368
|
-
|
|
1369
|
-
}, _ = !a.trim() &&
|
|
1370
|
-
if (
|
|
1371
|
-
|
|
1372
|
-
const
|
|
1371
|
+
handleCancelUpload: m,
|
|
1372
|
+
appendFiles: C,
|
|
1373
|
+
isUploading: x,
|
|
1374
|
+
successFiles: h
|
|
1375
|
+
} = $t(), v = !!((O = n.session) != null && O.isHandedOff), { isAwaitingBotReply: u } = ht(), b = (f) => {
|
|
1376
|
+
C(f);
|
|
1377
|
+
}, _ = !a.trim() && h.length === 0, y = async () => {
|
|
1378
|
+
if (u || _) return;
|
|
1379
|
+
x && console.info("please wait for the file(s) to upload");
|
|
1380
|
+
const f = a.trim();
|
|
1373
1381
|
t({
|
|
1374
|
-
content:
|
|
1375
|
-
attachments:
|
|
1376
|
-
(
|
|
1382
|
+
content: f,
|
|
1383
|
+
attachments: h.flatMap(
|
|
1384
|
+
(k) => k.fileUrl ? [
|
|
1377
1385
|
{
|
|
1378
|
-
url:
|
|
1379
|
-
type:
|
|
1380
|
-
name:
|
|
1381
|
-
id:
|
|
1382
|
-
size:
|
|
1386
|
+
url: k.fileUrl,
|
|
1387
|
+
type: k.file.type,
|
|
1388
|
+
name: k.file.name,
|
|
1389
|
+
id: k.id,
|
|
1390
|
+
size: k.file.size
|
|
1383
1391
|
}
|
|
1384
1392
|
] : []
|
|
1385
1393
|
)
|
|
1386
1394
|
}), i(""), p();
|
|
1387
1395
|
}, {
|
|
1388
|
-
getRootProps:
|
|
1396
|
+
getRootProps: T,
|
|
1389
1397
|
getInputProps: M,
|
|
1390
|
-
open:
|
|
1391
|
-
} =
|
|
1392
|
-
onDrop:
|
|
1398
|
+
open: P
|
|
1399
|
+
} = Do({
|
|
1400
|
+
onDrop: b,
|
|
1393
1401
|
noClick: !0,
|
|
1394
1402
|
onDropRejected() {
|
|
1395
1403
|
console.error("unsupported file type, or the file is too large");
|
|
1396
1404
|
},
|
|
1397
1405
|
maxSize: 5 * 1024 * 1024,
|
|
1398
|
-
accept:
|
|
1406
|
+
accept: v ? {
|
|
1399
1407
|
"text/*": [".txt"],
|
|
1400
1408
|
"image/*": [".png", ".jpg", ".jpeg", ".gif"],
|
|
1401
1409
|
"application/pdf": [".pdf"]
|
|
@@ -1405,22 +1413,22 @@ function mr() {
|
|
|
1405
1413
|
"image/gif": [".gif"],
|
|
1406
1414
|
"image/webp": [".webp"]
|
|
1407
1415
|
}
|
|
1408
|
-
}),
|
|
1409
|
-
const
|
|
1410
|
-
|
|
1416
|
+
}), F = (f) => {
|
|
1417
|
+
const k = f.clipboardData;
|
|
1418
|
+
k && k.files.length > 0 && b(Array.from(k.files));
|
|
1411
1419
|
};
|
|
1412
|
-
return /* @__PURE__ */
|
|
1420
|
+
return /* @__PURE__ */ c(
|
|
1413
1421
|
"div",
|
|
1414
1422
|
{
|
|
1415
|
-
...
|
|
1423
|
+
...g("chat/input_box/root"),
|
|
1416
1424
|
className: "p-2 relative space-y-1",
|
|
1417
|
-
...
|
|
1425
|
+
...T(),
|
|
1418
1426
|
children: [
|
|
1419
1427
|
/* @__PURE__ */ o("input", { ...M() }),
|
|
1420
|
-
/* @__PURE__ */
|
|
1428
|
+
/* @__PURE__ */ c(
|
|
1421
1429
|
"div",
|
|
1422
1430
|
{
|
|
1423
|
-
...
|
|
1431
|
+
...g("chat/input_box/inner_root"),
|
|
1424
1432
|
className: d(
|
|
1425
1433
|
"transition-all",
|
|
1426
1434
|
"bg-white",
|
|
@@ -1429,31 +1437,31 @@ function mr() {
|
|
|
1429
1437
|
"hover:border-primary focus-within:border-primary"
|
|
1430
1438
|
),
|
|
1431
1439
|
children: [
|
|
1432
|
-
/* @__PURE__ */
|
|
1440
|
+
/* @__PURE__ */ c(
|
|
1433
1441
|
"div",
|
|
1434
1442
|
{
|
|
1435
|
-
...
|
|
1443
|
+
...g("chat/input_box/textarea_and_attachments_container"),
|
|
1436
1444
|
className: "flex flex-col gap-2",
|
|
1437
1445
|
children: [
|
|
1438
|
-
|
|
1446
|
+
l.length > 0 && /* @__PURE__ */ o(
|
|
1439
1447
|
"div",
|
|
1440
1448
|
{
|
|
1441
|
-
...
|
|
1449
|
+
...g("chat/input_box/attachments_container"),
|
|
1442
1450
|
className: "flex items-center gap-1",
|
|
1443
|
-
children: /* @__PURE__ */ o(
|
|
1444
|
-
|
|
1451
|
+
children: /* @__PURE__ */ o(I, { mode: "popLayout", children: l.map((f) => /* @__PURE__ */ o(w, { snapExit: !0, children: /* @__PURE__ */ o(
|
|
1452
|
+
mr,
|
|
1445
1453
|
{
|
|
1446
|
-
onCancel: () =>
|
|
1447
|
-
file:
|
|
1454
|
+
onCancel: () => m(f.id),
|
|
1455
|
+
file: f
|
|
1448
1456
|
}
|
|
1449
|
-
) },
|
|
1457
|
+
) }, f.id)) })
|
|
1450
1458
|
}
|
|
1451
1459
|
),
|
|
1452
1460
|
/* @__PURE__ */ o(
|
|
1453
1461
|
"textarea",
|
|
1454
1462
|
{
|
|
1455
|
-
...
|
|
1456
|
-
onPaste:
|
|
1463
|
+
...g("chat/input_box/textarea"),
|
|
1464
|
+
onPaste: F,
|
|
1457
1465
|
ref: r,
|
|
1458
1466
|
id: "chat-input",
|
|
1459
1467
|
value: a,
|
|
@@ -1463,15 +1471,15 @@ function mr() {
|
|
|
1463
1471
|
// INPUT_CONTAINER_B_RADIUS,
|
|
1464
1472
|
"max-h-16 [field-sizing:content]",
|
|
1465
1473
|
"w-full resize-none px-2",
|
|
1466
|
-
|
|
1474
|
+
l.length === 0 && "pt-1",
|
|
1467
1475
|
"bg-transparent outline-none",
|
|
1468
1476
|
"placeholder:text-muted-foreground",
|
|
1469
1477
|
// 16px on mobiles prevents auto-zoom on the input when focused
|
|
1470
1478
|
e ? "text-[16px]" : "text-sm"
|
|
1471
1479
|
),
|
|
1472
|
-
onChange: (
|
|
1473
|
-
onKeyDown: async (
|
|
1474
|
-
|
|
1480
|
+
onChange: (f) => i(f.target.value),
|
|
1481
|
+
onKeyDown: async (f) => {
|
|
1482
|
+
f.key === "Enter" && !f.shiftKey && (f.preventDefault(), y());
|
|
1475
1483
|
},
|
|
1476
1484
|
placeholder: s("write-a-message")
|
|
1477
1485
|
}
|
|
@@ -1479,7 +1487,7 @@ function mr() {
|
|
|
1479
1487
|
]
|
|
1480
1488
|
}
|
|
1481
1489
|
),
|
|
1482
|
-
/* @__PURE__ */
|
|
1490
|
+
/* @__PURE__ */ c("div", { className: "gap-2 flex justify-between", children: [
|
|
1483
1491
|
/* @__PURE__ */ o(
|
|
1484
1492
|
Q,
|
|
1485
1493
|
{
|
|
@@ -1489,13 +1497,13 @@ function mr() {
|
|
|
1489
1497
|
children: /* @__PURE__ */ o(
|
|
1490
1498
|
z,
|
|
1491
1499
|
{
|
|
1492
|
-
onClick:
|
|
1500
|
+
onClick: P,
|
|
1493
1501
|
size: "fit",
|
|
1494
1502
|
variant: "ghost",
|
|
1495
1503
|
className: d(
|
|
1496
1504
|
"rounded-full size-8 flex items-center justify-center p-0 overflow-hidden"
|
|
1497
1505
|
),
|
|
1498
|
-
children: /* @__PURE__ */ o(
|
|
1506
|
+
children: /* @__PURE__ */ o(I, { mode: "wait", children: v ? /* @__PURE__ */ o(w, { children: /* @__PURE__ */ o(po, { className: "size-4" }) }, "paper-clip") : /* @__PURE__ */ o(w, { children: /* @__PURE__ */ o(ho, { className: "size-4" }) }, "image-icon") })
|
|
1499
1507
|
}
|
|
1500
1508
|
)
|
|
1501
1509
|
}
|
|
@@ -1504,10 +1512,10 @@ function mr() {
|
|
|
1504
1512
|
z,
|
|
1505
1513
|
{
|
|
1506
1514
|
size: "fit",
|
|
1507
|
-
onClick:
|
|
1508
|
-
disabled:
|
|
1515
|
+
onClick: y,
|
|
1516
|
+
disabled: u || x || _,
|
|
1509
1517
|
className: "rounded-full size-8 flex items-center justify-center p-0",
|
|
1510
|
-
children: /* @__PURE__ */ o(
|
|
1518
|
+
children: /* @__PURE__ */ o(I, { mode: "wait", children: u || x ? /* @__PURE__ */ o(w, { snapExit: !0, children: /* @__PURE__ */ o(mo, { className: "size-4 animate-spin animate-iteration-infinite" }) }, "loading") : /* @__PURE__ */ o(w, { snapExit: !0, children: /* @__PURE__ */ o(go, { className: "size-4" }) }, "send") })
|
|
1511
1519
|
}
|
|
1512
1520
|
) })
|
|
1513
1521
|
] })
|
|
@@ -1519,10 +1527,10 @@ function mr() {
|
|
|
1519
1527
|
);
|
|
1520
1528
|
}
|
|
1521
1529
|
function wr() {
|
|
1522
|
-
const { widgetCtx: e } =
|
|
1523
|
-
return /* @__PURE__ */ o("div", { className: "p-2", children: /* @__PURE__ */
|
|
1524
|
-
/* @__PURE__ */
|
|
1525
|
-
/* @__PURE__ */ o(
|
|
1530
|
+
const { widgetCtx: e } = q(), { router: r } = N(), { canCreateNewSession: t } = U(), { toSessionsScreen: n } = H(), { t: s } = Z();
|
|
1531
|
+
return /* @__PURE__ */ o("div", { className: "p-2", children: /* @__PURE__ */ c("div", { className: "p-2 bg-muted rounded-3xl space-y-2", children: [
|
|
1532
|
+
/* @__PURE__ */ c("div", { className: "ps-2 flex items-center gap-1", children: [
|
|
1533
|
+
/* @__PURE__ */ o(mt, { className: "size-4 text-emerald-600" }),
|
|
1526
1534
|
/* @__PURE__ */ o("h2", { className: "text-sm font-medium", children: s("session-closed-lead") })
|
|
1527
1535
|
] }),
|
|
1528
1536
|
/* @__PURE__ */ o("div", { children: t || r != null && r.chatScreenOnly ? /* @__PURE__ */ o(
|
|
@@ -1535,11 +1543,11 @@ function wr() {
|
|
|
1535
1543
|
) : /* @__PURE__ */ o(z, { onClick: n, className: "rounded-2xl w-full", children: s("back-to-conversations") }) })
|
|
1536
1544
|
] }) });
|
|
1537
1545
|
}
|
|
1538
|
-
function
|
|
1546
|
+
function ur() {
|
|
1539
1547
|
var i;
|
|
1540
|
-
const { initialQuestions: e, initialQuestionsPosition: r, thisWasHelpfulOrNot: t } = N(), { sessionState: n } =
|
|
1541
|
-
return /* @__PURE__ */ o("footer", { children: /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(
|
|
1542
|
-
|
|
1548
|
+
const { initialQuestions: e, initialQuestionsPosition: r, thisWasHelpfulOrNot: t } = N(), { sessionState: n } = U(), { messagesState: s } = Y(), a = s.messages.length === 0;
|
|
1549
|
+
return /* @__PURE__ */ o("footer", { children: /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(I, { mode: "wait", children: n.session && !((i = n.session) != null && i.isOpened) ? /* @__PURE__ */ o(
|
|
1550
|
+
w,
|
|
1543
1551
|
{
|
|
1544
1552
|
className: "overflow-hidden",
|
|
1545
1553
|
overrides: {
|
|
@@ -1550,8 +1558,8 @@ function gr() {
|
|
|
1550
1558
|
children: /* @__PURE__ */ o(wr, {})
|
|
1551
1559
|
},
|
|
1552
1560
|
"session-closed"
|
|
1553
|
-
) : /* @__PURE__ */
|
|
1554
|
-
|
|
1561
|
+
) : /* @__PURE__ */ c(
|
|
1562
|
+
w,
|
|
1555
1563
|
{
|
|
1556
1564
|
className: "overflow-hidden",
|
|
1557
1565
|
overrides: {
|
|
@@ -1560,27 +1568,27 @@ function gr() {
|
|
|
1560
1568
|
exit: { height: 0 }
|
|
1561
1569
|
},
|
|
1562
1570
|
children: [
|
|
1563
|
-
s.lastAIResMightSolveUserIssue && (t == null ? void 0 : t.enabled) !== !1 && /* @__PURE__ */ o(
|
|
1564
|
-
a && e && r !== "below-initial-messages" && /* @__PURE__ */ o("div", { className: "flex items-center flex-row justify-end gap-2 flex-wrap px-2", children: e == null ? void 0 : e.map((
|
|
1571
|
+
s.lastAIResMightSolveUserIssue && (t == null ? void 0 : t.enabled) !== !1 && /* @__PURE__ */ o(hr, {}),
|
|
1572
|
+
a && e && r !== "below-initial-messages" && /* @__PURE__ */ o("div", { className: "flex items-center flex-row justify-end gap-2 flex-wrap px-2", children: e == null ? void 0 : e.map((l, p) => /* @__PURE__ */ o(
|
|
1565
1573
|
Ie,
|
|
1566
1574
|
{
|
|
1567
|
-
suggestion:
|
|
1575
|
+
suggestion: l
|
|
1568
1576
|
},
|
|
1569
|
-
`${
|
|
1577
|
+
`${l}-${p}`
|
|
1570
1578
|
)) }),
|
|
1571
|
-
/* @__PURE__ */ o(
|
|
1579
|
+
/* @__PURE__ */ o(gr, {})
|
|
1572
1580
|
]
|
|
1573
1581
|
},
|
|
1574
1582
|
"chat-input"
|
|
1575
1583
|
) }) }) });
|
|
1576
1584
|
}
|
|
1577
|
-
function
|
|
1585
|
+
function fr({
|
|
1578
1586
|
isFirstInGroup: e,
|
|
1579
1587
|
isLastInGroup: r,
|
|
1580
1588
|
isAloneInGroup: t,
|
|
1581
1589
|
...n
|
|
1582
1590
|
}) {
|
|
1583
|
-
const { componentStore: s } =
|
|
1591
|
+
const { componentStore: s } = q();
|
|
1584
1592
|
if (n.data.action) {
|
|
1585
1593
|
const i = s.getComponent(n.data.action.name);
|
|
1586
1594
|
if (i)
|
|
@@ -1606,7 +1614,7 @@ function ur({
|
|
|
1606
1614
|
isAloneInGroup: t
|
|
1607
1615
|
}
|
|
1608
1616
|
) : /* @__PURE__ */ o(
|
|
1609
|
-
|
|
1617
|
+
ge,
|
|
1610
1618
|
{
|
|
1611
1619
|
...n,
|
|
1612
1620
|
isFirstInGroup: e,
|
|
@@ -1620,11 +1628,11 @@ function Ft({
|
|
|
1620
1628
|
className: r,
|
|
1621
1629
|
containerClassName: t
|
|
1622
1630
|
}) {
|
|
1623
|
-
var i,
|
|
1631
|
+
var i, l;
|
|
1624
1632
|
const { timestamps: n } = N();
|
|
1625
1633
|
if (!((i = n == null ? void 0 : n.perMessageGroup) != null && i.enabled))
|
|
1626
1634
|
return null;
|
|
1627
|
-
const s = (
|
|
1635
|
+
const s = (l = e[e.length - 1]) == null ? void 0 : l.timestamp;
|
|
1628
1636
|
if (!s) return null;
|
|
1629
1637
|
const a = (() => {
|
|
1630
1638
|
try {
|
|
@@ -1639,47 +1647,47 @@ function Ft({
|
|
|
1639
1647
|
})();
|
|
1640
1648
|
return a ? /* @__PURE__ */ o("div", { className: t, children: /* @__PURE__ */ o("span", { className: d("text-xs text-muted-foreground", r), children: a }) }) : null;
|
|
1641
1649
|
}
|
|
1642
|
-
function
|
|
1650
|
+
function me({
|
|
1643
1651
|
messages: e,
|
|
1644
1652
|
agent: r,
|
|
1645
1653
|
suggestedReplies: t
|
|
1646
1654
|
}) {
|
|
1647
|
-
return /* @__PURE__ */
|
|
1655
|
+
return /* @__PURE__ */ c(
|
|
1648
1656
|
"div",
|
|
1649
1657
|
{
|
|
1650
|
-
...
|
|
1658
|
+
...g("chat/agent_msg_group/root"),
|
|
1651
1659
|
className: d("flex items-end gap-2"),
|
|
1652
1660
|
children: [
|
|
1653
1661
|
/* @__PURE__ */ o(Q, { content: r == null ? void 0 : r.name, side: "right", align: "end", children: /* @__PURE__ */ o(
|
|
1654
|
-
|
|
1662
|
+
we,
|
|
1655
1663
|
{
|
|
1656
|
-
...
|
|
1664
|
+
...g("chat/agent_msg_group/root/avatar"),
|
|
1657
1665
|
agent: r,
|
|
1658
1666
|
className: "hidden"
|
|
1659
1667
|
}
|
|
1660
1668
|
) }),
|
|
1661
|
-
/* @__PURE__ */
|
|
1662
|
-
/* @__PURE__ */
|
|
1669
|
+
/* @__PURE__ */ c("div", { className: d("flex-1 flex flex-col gap-1"), children: [
|
|
1670
|
+
/* @__PURE__ */ c(
|
|
1663
1671
|
"div",
|
|
1664
1672
|
{
|
|
1665
|
-
...
|
|
1673
|
+
...g("chat/agent_msg_group/avatar_and_msgs/root"),
|
|
1666
1674
|
className: d("flex items-end gap-2"),
|
|
1667
1675
|
children: [
|
|
1668
1676
|
/* @__PURE__ */ o(Q, { content: r == null ? void 0 : r.name, side: "right", align: "end", children: /* @__PURE__ */ o(
|
|
1669
|
-
|
|
1677
|
+
we,
|
|
1670
1678
|
{
|
|
1671
|
-
...
|
|
1679
|
+
...g("chat/agent_msg_group/avatar_and_msgs/avatar"),
|
|
1672
1680
|
agent: r
|
|
1673
1681
|
}
|
|
1674
1682
|
) }),
|
|
1675
|
-
/* @__PURE__ */
|
|
1683
|
+
/* @__PURE__ */ c(
|
|
1676
1684
|
"div",
|
|
1677
1685
|
{
|
|
1678
|
-
...
|
|
1686
|
+
...g("chat/agent_msg_group/avatar_and_msgs/msgs"),
|
|
1679
1687
|
className: d("flex-1 flex flex-col gap-1"),
|
|
1680
1688
|
children: [
|
|
1681
1689
|
e.map((n, s, a) => /* @__PURE__ */ o(
|
|
1682
|
-
|
|
1690
|
+
fr,
|
|
1683
1691
|
{
|
|
1684
1692
|
isFirstInGroup: s === 0,
|
|
1685
1693
|
isLastInGroup: s === a.length - 1,
|
|
@@ -1698,7 +1706,7 @@ function we({
|
|
|
1698
1706
|
t && t.length > 0 && /* @__PURE__ */ o(
|
|
1699
1707
|
"div",
|
|
1700
1708
|
{
|
|
1701
|
-
...
|
|
1709
|
+
...g("chat/agent_msg_group/suggestions"),
|
|
1702
1710
|
className: d("flex flex-col gap-1 ps-8"),
|
|
1703
1711
|
children: t == null ? void 0 : t.map((n, s) => /* @__PURE__ */ o(
|
|
1704
1712
|
Ie,
|
|
@@ -1714,24 +1722,24 @@ function we({
|
|
|
1714
1722
|
}
|
|
1715
1723
|
);
|
|
1716
1724
|
}
|
|
1717
|
-
function
|
|
1725
|
+
function vr({
|
|
1718
1726
|
message: e,
|
|
1719
1727
|
isFirstInGroup: r,
|
|
1720
1728
|
isLastInGroup: t,
|
|
1721
1729
|
isAloneInGroup: n
|
|
1722
1730
|
}) {
|
|
1723
1731
|
var s;
|
|
1724
|
-
return /* @__PURE__ */
|
|
1732
|
+
return /* @__PURE__ */ c(
|
|
1725
1733
|
"div",
|
|
1726
1734
|
{
|
|
1727
|
-
...
|
|
1735
|
+
...g("chat/user_msg/root"),
|
|
1728
1736
|
className: "w-5/6 flex flex-col items-end gap-1",
|
|
1729
1737
|
children: [
|
|
1730
1738
|
e.attachments && e.attachments.length > 0 && /* @__PURE__ */ o("div", { className: "w-full flex gap-1 flex-wrap justify-end", children: (s = e.attachments) == null ? void 0 : s.map((a) => /* @__PURE__ */ o(Nt, { attachment: a }, a.id)) }),
|
|
1731
1739
|
e.content.length > 0 && /* @__PURE__ */ o(
|
|
1732
1740
|
"div",
|
|
1733
1741
|
{
|
|
1734
|
-
...
|
|
1742
|
+
...g("chat/user_msg/msg"),
|
|
1735
1743
|
"data-first": r,
|
|
1736
1744
|
"data-last": t,
|
|
1737
1745
|
"data-alone": n,
|
|
@@ -1754,17 +1762,17 @@ function fr({
|
|
|
1754
1762
|
}
|
|
1755
1763
|
);
|
|
1756
1764
|
}
|
|
1757
|
-
function
|
|
1765
|
+
function br({
|
|
1758
1766
|
messages: e
|
|
1759
1767
|
}) {
|
|
1760
|
-
return /* @__PURE__ */
|
|
1768
|
+
return /* @__PURE__ */ c(
|
|
1761
1769
|
"div",
|
|
1762
1770
|
{
|
|
1763
|
-
...
|
|
1771
|
+
...g("chat/user_msg_group/root"),
|
|
1764
1772
|
className: d("group", "flex flex-col gap-1 justify-end items-end"),
|
|
1765
1773
|
children: [
|
|
1766
1774
|
e.map((r, t, n) => /* @__PURE__ */ o(
|
|
1767
|
-
|
|
1775
|
+
vr,
|
|
1768
1776
|
{
|
|
1769
1777
|
message: r,
|
|
1770
1778
|
isFirstInGroup: t === 0,
|
|
@@ -1778,88 +1786,73 @@ function vr({
|
|
|
1778
1786
|
}
|
|
1779
1787
|
);
|
|
1780
1788
|
}
|
|
1781
|
-
function
|
|
1789
|
+
function xr(e) {
|
|
1782
1790
|
const r = [];
|
|
1783
1791
|
let t = null;
|
|
1784
1792
|
return e.forEach((n) => {
|
|
1785
|
-
var s, a, i,
|
|
1786
|
-
(!t || ((s = t[0]) == null ? void 0 : s.type) !== n.type) && (t = [], r.push(t)), ((a = t[0]) == null ? void 0 : a.type) === "FROM_AGENT" && n.type === "FROM_AGENT" && ((i = n.agent) == null ? void 0 : i.id) !== ((
|
|
1793
|
+
var s, a, i, l;
|
|
1794
|
+
(!t || ((s = t[0]) == null ? void 0 : s.type) !== n.type) && (t = [], r.push(t)), ((a = t[0]) == null ? void 0 : a.type) === "FROM_AGENT" && n.type === "FROM_AGENT" && ((i = n.agent) == null ? void 0 : i.id) !== ((l = t[0].agent) == null ? void 0 : l.id) && (t = [], r.push(t)), t.push(n);
|
|
1787
1795
|
}), r;
|
|
1788
1796
|
}
|
|
1789
|
-
function
|
|
1797
|
+
function yr(e) {
|
|
1790
1798
|
var r;
|
|
1791
1799
|
return ((r = e == null ? void 0 : e[0]) == null ? void 0 : r.type) === "FROM_USER";
|
|
1792
1800
|
}
|
|
1793
|
-
function
|
|
1801
|
+
function kr(e) {
|
|
1794
1802
|
var r;
|
|
1795
1803
|
return ((r = e == null ? void 0 : e[0]) == null ? void 0 : r.type) === "FROM_BOT";
|
|
1796
1804
|
}
|
|
1797
|
-
function
|
|
1805
|
+
function Cr(e) {
|
|
1798
1806
|
var r;
|
|
1799
1807
|
return ((r = e == null ? void 0 : e[0]) == null ? void 0 : r.type) === "FROM_AGENT";
|
|
1800
1808
|
}
|
|
1801
|
-
function
|
|
1809
|
+
function zr() {
|
|
1802
1810
|
const {
|
|
1803
1811
|
messagesState: { messages: e }
|
|
1804
|
-
} =
|
|
1805
|
-
|
|
1812
|
+
} = Y(), { chatBannerItems: r } = N();
|
|
1813
|
+
return !(r != null && r.length) || e.length > 0 && r.every((t) => !t.persistent) ? null : /* @__PURE__ */ o("div", { className: "w-full text-center text-xs", children: r.map(
|
|
1814
|
+
({ message: t, persistent: n }, s) => e.length > 0 && !n ? null : /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(_t, { children: t }) }, `${t}-${s}`)
|
|
1815
|
+
) });
|
|
1816
|
+
}
|
|
1817
|
+
function Nr() {
|
|
1818
|
+
const {
|
|
1819
|
+
messagesState: { messages: e }
|
|
1820
|
+
} = Y(), { isAwaitingBotReply: r } = ht(), { componentStore: t } = q(), n = N(), { initialQuestions: s, initialQuestionsPosition: a } = n, i = dt(
|
|
1821
|
+
() => xr(e),
|
|
1806
1822
|
[e]
|
|
1807
|
-
),
|
|
1823
|
+
), l = (() => {
|
|
1808
1824
|
var h;
|
|
1809
|
-
return e.length ? ((h = n.advancedInitialMessages) == null ? void 0 : h.filter((
|
|
1810
|
-
})(),
|
|
1825
|
+
return e.length ? ((h = n.advancedInitialMessages) == null ? void 0 : h.filter((v) => !!v.persistent)) || [] : n.advancedInitialMessages || [];
|
|
1826
|
+
})(), p = (() => {
|
|
1811
1827
|
var h;
|
|
1812
|
-
return
|
|
1813
|
-
})(),
|
|
1828
|
+
return l.length ? [] : e.length ? [] : (h = n.initialMessages) != null && h.length ? n.initialMessages : ["Hello, how can I help you?"];
|
|
1829
|
+
})(), m = t.getComponent(
|
|
1814
1830
|
"loading"
|
|
1815
|
-
),
|
|
1816
|
-
function
|
|
1831
|
+
), C = le(null);
|
|
1832
|
+
function x() {
|
|
1817
1833
|
setTimeout(() => {
|
|
1818
|
-
const h =
|
|
1834
|
+
const h = C.current;
|
|
1819
1835
|
h && (h.scrollTop = h.scrollHeight);
|
|
1820
1836
|
}, 0);
|
|
1821
1837
|
}
|
|
1822
|
-
return
|
|
1823
|
-
|
|
1824
|
-
}, [e]), /* @__PURE__ */
|
|
1838
|
+
return ie(() => {
|
|
1839
|
+
x();
|
|
1840
|
+
}, [e]), /* @__PURE__ */ c(
|
|
1825
1841
|
"div",
|
|
1826
1842
|
{
|
|
1827
|
-
...
|
|
1828
|
-
ref:
|
|
1843
|
+
...g("chat/msgs/root"),
|
|
1844
|
+
ref: C,
|
|
1829
1845
|
className: "max-h-full scroll-smooth relative flex-1 py-2 px-4 flex flex-col gap-2 overflow-auto",
|
|
1830
1846
|
children: [
|
|
1831
|
-
/* @__PURE__ */ o(
|
|
1832
|
-
|
|
1847
|
+
/* @__PURE__ */ o(zr, {}),
|
|
1848
|
+
l.length > 0 && /* @__PURE__ */ o(
|
|
1849
|
+
me,
|
|
1833
1850
|
{
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
id: h,
|
|
1837
|
-
type: "FROM_BOT",
|
|
1838
|
-
timestamp: null,
|
|
1839
|
-
dataComponentNames: {
|
|
1840
|
-
messageContainer: "chat/persistent_initial_msg/root",
|
|
1841
|
-
message: "chat/persistent_initial_msg/msg"
|
|
1842
|
-
},
|
|
1843
|
-
classNames: {
|
|
1844
|
-
messageContainer: d(
|
|
1845
|
-
"w-full flex flex-col items-center text-center"
|
|
1846
|
-
),
|
|
1847
|
-
message: "w-full bg-transparent border-none shadow-none text-xs"
|
|
1848
|
-
},
|
|
1849
|
-
isFirstInGroup: m === 0,
|
|
1850
|
-
isLastInGroup: m === u.length - 1,
|
|
1851
|
-
isAloneInGroup: u.length === 1
|
|
1852
|
-
},
|
|
1853
|
-
`${h}-${m}`
|
|
1854
|
-
)) }),
|
|
1855
|
-
p.length > 0 && /* @__PURE__ */ o(
|
|
1856
|
-
we,
|
|
1857
|
-
{
|
|
1858
|
-
messages: p.map(
|
|
1859
|
-
({ message: h }, m) => ({
|
|
1851
|
+
messages: l.map(
|
|
1852
|
+
({ message: h }, v) => ({
|
|
1860
1853
|
component: "bot_message",
|
|
1861
1854
|
data: { message: h },
|
|
1862
|
-
id: `${
|
|
1855
|
+
id: `${v}-${h}`,
|
|
1863
1856
|
type: "FROM_BOT",
|
|
1864
1857
|
timestamp: null
|
|
1865
1858
|
})
|
|
@@ -1868,14 +1861,14 @@ function Cr() {
|
|
|
1868
1861
|
agent: n.bot ? { ...n.bot, isAi: !0, id: null } : void 0
|
|
1869
1862
|
}
|
|
1870
1863
|
),
|
|
1871
|
-
e.length === 0 &&
|
|
1872
|
-
|
|
1864
|
+
e.length === 0 && p.length > 0 && /* @__PURE__ */ o(
|
|
1865
|
+
me,
|
|
1873
1866
|
{
|
|
1874
|
-
messages:
|
|
1875
|
-
(h,
|
|
1867
|
+
messages: p.map(
|
|
1868
|
+
(h, v) => ({
|
|
1876
1869
|
component: "bot_message",
|
|
1877
1870
|
data: { message: h },
|
|
1878
|
-
id: `${
|
|
1871
|
+
id: `${v}-${h}`,
|
|
1879
1872
|
type: "FROM_BOT",
|
|
1880
1873
|
timestamp: null
|
|
1881
1874
|
})
|
|
@@ -1885,44 +1878,44 @@ function Cr() {
|
|
|
1885
1878
|
}
|
|
1886
1879
|
),
|
|
1887
1880
|
i.map((h) => {
|
|
1888
|
-
var
|
|
1889
|
-
const
|
|
1890
|
-
if (!
|
|
1891
|
-
if (
|
|
1892
|
-
return /* @__PURE__ */ o(
|
|
1893
|
-
if (
|
|
1894
|
-
const
|
|
1881
|
+
var b, _, y;
|
|
1882
|
+
const v = (b = h == null ? void 0 : h[0]) == null ? void 0 : b.type, u = (_ = h[0]) == null ? void 0 : _.id;
|
|
1883
|
+
if (!v || !u) return null;
|
|
1884
|
+
if (yr(h))
|
|
1885
|
+
return /* @__PURE__ */ o(br, { messages: h }, u);
|
|
1886
|
+
if (kr(h) || Cr(h)) {
|
|
1887
|
+
const T = (y = h[0]) == null ? void 0 : y.agent;
|
|
1895
1888
|
return /* @__PURE__ */ o(
|
|
1896
|
-
|
|
1889
|
+
me,
|
|
1897
1890
|
{
|
|
1898
1891
|
messages: h,
|
|
1899
|
-
agent:
|
|
1892
|
+
agent: T
|
|
1900
1893
|
},
|
|
1901
1894
|
u
|
|
1902
1895
|
);
|
|
1903
1896
|
}
|
|
1904
1897
|
return null;
|
|
1905
1898
|
}),
|
|
1906
|
-
r &&
|
|
1899
|
+
r && m && /* @__PURE__ */ o(m, { agent: n.bot })
|
|
1907
1900
|
]
|
|
1908
1901
|
}
|
|
1909
1902
|
);
|
|
1910
1903
|
}
|
|
1911
|
-
function
|
|
1904
|
+
function Sr() {
|
|
1912
1905
|
const {
|
|
1913
1906
|
messagesState: { isInitialFetchLoading: e }
|
|
1914
|
-
} =
|
|
1907
|
+
} = Y(), {
|
|
1915
1908
|
sessionState: { session: r }
|
|
1916
|
-
} =
|
|
1909
|
+
} = U(), { isCanvasOpen: t } = Qo(), { theme: n } = X();
|
|
1917
1910
|
Se({
|
|
1918
1911
|
width: t ? n.screens.chat.withCanvas.width : n.screens.chat.width,
|
|
1919
1912
|
height: t ? n.screens.chat.withCanvas.height : n.screens.chat.height
|
|
1920
1913
|
});
|
|
1921
|
-
const s =
|
|
1914
|
+
const s = le((r == null ? void 0 : r.id) || "chat").current;
|
|
1922
1915
|
return /* @__PURE__ */ o(
|
|
1923
1916
|
"div",
|
|
1924
1917
|
{
|
|
1925
|
-
...
|
|
1918
|
+
...g("chat/root"),
|
|
1926
1919
|
className: d("flex flex-col overflow-hidden"),
|
|
1927
1920
|
style: {
|
|
1928
1921
|
width: "100vw",
|
|
@@ -1934,25 +1927,25 @@ function zr() {
|
|
|
1934
1927
|
maxHeight: "100vh"
|
|
1935
1928
|
// Relative to the iframe
|
|
1936
1929
|
},
|
|
1937
|
-
children: /* @__PURE__ */
|
|
1938
|
-
/* @__PURE__ */ o(
|
|
1939
|
-
/* @__PURE__ */ o(
|
|
1940
|
-
|
|
1930
|
+
children: /* @__PURE__ */ c("div", { className: "size-full justify-between flex flex-col", children: [
|
|
1931
|
+
/* @__PURE__ */ o(jt, {}),
|
|
1932
|
+
/* @__PURE__ */ o(I, { mode: "wait", children: e ? /* @__PURE__ */ o(
|
|
1933
|
+
w,
|
|
1941
1934
|
{
|
|
1942
1935
|
className: "flex flex-col items-center justify-center w-full flex-1",
|
|
1943
|
-
children: /* @__PURE__ */ o(
|
|
1936
|
+
children: /* @__PURE__ */ o(Et, {})
|
|
1944
1937
|
},
|
|
1945
1938
|
"loading"
|
|
1946
|
-
) : /* @__PURE__ */
|
|
1947
|
-
|
|
1939
|
+
) : /* @__PURE__ */ c(
|
|
1940
|
+
w,
|
|
1948
1941
|
{
|
|
1949
1942
|
className: "flex items-start h-full flex-1 overflow-auto",
|
|
1950
1943
|
snapExit: !0,
|
|
1951
1944
|
children: [
|
|
1952
|
-
/* @__PURE__ */
|
|
1945
|
+
/* @__PURE__ */ c(
|
|
1953
1946
|
"div",
|
|
1954
1947
|
{
|
|
1955
|
-
...
|
|
1948
|
+
...g("chat/main/root"),
|
|
1956
1949
|
className: d(
|
|
1957
1950
|
"flex flex-col h-full overflow-auto transition-all",
|
|
1958
1951
|
t ? "w-2/5" : "w-full"
|
|
@@ -1962,15 +1955,15 @@ function zr() {
|
|
|
1962
1955
|
transitionDuration: n.screens.chat.withCanvas.transitionDuration
|
|
1963
1956
|
},
|
|
1964
1957
|
children: [
|
|
1965
|
-
/* @__PURE__ */ o(
|
|
1966
|
-
/* @__PURE__ */ o(
|
|
1958
|
+
/* @__PURE__ */ o(Nr, {}),
|
|
1959
|
+
/* @__PURE__ */ o(ur, {})
|
|
1967
1960
|
]
|
|
1968
1961
|
}
|
|
1969
1962
|
),
|
|
1970
1963
|
/* @__PURE__ */ o(
|
|
1971
1964
|
"div",
|
|
1972
1965
|
{
|
|
1973
|
-
...
|
|
1966
|
+
...g("chat/canvas/root"),
|
|
1974
1967
|
className: d(
|
|
1975
1968
|
"h-full overflow-auto transition-all",
|
|
1976
1969
|
t ? "w-3/5" : "w-0"
|
|
@@ -1979,7 +1972,7 @@ function zr() {
|
|
|
1979
1972
|
transitionTimingFunction: n.screens.chat.withCanvas.transitionTimingFunction,
|
|
1980
1973
|
transitionDuration: n.screens.chat.withCanvas.transitionDuration
|
|
1981
1974
|
},
|
|
1982
|
-
children: /* @__PURE__ */ o(
|
|
1975
|
+
children: /* @__PURE__ */ o(er, {})
|
|
1983
1976
|
}
|
|
1984
1977
|
)
|
|
1985
1978
|
]
|
|
@@ -1990,7 +1983,7 @@ function zr() {
|
|
|
1990
1983
|
}
|
|
1991
1984
|
);
|
|
1992
1985
|
}
|
|
1993
|
-
function
|
|
1986
|
+
function _r({ className: e }) {
|
|
1994
1987
|
return /* @__PURE__ */ o(
|
|
1995
1988
|
"svg",
|
|
1996
1989
|
{
|
|
@@ -2010,7 +2003,7 @@ function Nr({ className: e }) {
|
|
|
2010
2003
|
}
|
|
2011
2004
|
);
|
|
2012
2005
|
}
|
|
2013
|
-
function
|
|
2006
|
+
function Wt({ className: e }) {
|
|
2014
2007
|
const { token: r } = N();
|
|
2015
2008
|
return /* @__PURE__ */ o(
|
|
2016
2009
|
"div",
|
|
@@ -2019,7 +2012,7 @@ function Pt({ className: e }) {
|
|
|
2019
2012
|
"flex items-center justify-center gap-2 p-2 pt-0",
|
|
2020
2013
|
e
|
|
2021
2014
|
),
|
|
2022
|
-
children: /* @__PURE__ */ o(W, { children: /* @__PURE__ */
|
|
2015
|
+
children: /* @__PURE__ */ o(W, { children: /* @__PURE__ */ c(
|
|
2023
2016
|
"a",
|
|
2024
2017
|
{
|
|
2025
2018
|
href: `https://open.cx/?ref=${r}`,
|
|
@@ -2033,8 +2026,8 @@ function Pt({ className: e }) {
|
|
|
2033
2026
|
children: [
|
|
2034
2027
|
/* @__PURE__ */ o("span", { children: "Powered by" }),
|
|
2035
2028
|
/* @__PURE__ */ o("span", { children: " " }),
|
|
2036
|
-
/* @__PURE__ */
|
|
2037
|
-
/* @__PURE__ */ o("span", { children: /* @__PURE__ */ o(
|
|
2029
|
+
/* @__PURE__ */ c("span", { className: "flex items-center gap-[1px]", children: [
|
|
2030
|
+
/* @__PURE__ */ o("span", { children: /* @__PURE__ */ o(_r, { className: "size-3 inline-block" }) }),
|
|
2038
2031
|
/* @__PURE__ */ o("span", { className: "font-semibold", children: "open" })
|
|
2039
2032
|
] })
|
|
2040
2033
|
]
|
|
@@ -2043,7 +2036,7 @@ function Pt({ className: e }) {
|
|
|
2043
2036
|
}
|
|
2044
2037
|
);
|
|
2045
2038
|
}
|
|
2046
|
-
function
|
|
2039
|
+
function Ir({ children: e }) {
|
|
2047
2040
|
return /* @__PURE__ */ o("p", { className: "ps-4 text-xs text-muted-foreground/75 uppercase font-semibold tracking-tight", children: e });
|
|
2048
2041
|
}
|
|
2049
2042
|
function lt({
|
|
@@ -2051,7 +2044,7 @@ function lt({
|
|
|
2051
2044
|
className: r
|
|
2052
2045
|
}) {
|
|
2053
2046
|
const { bot: t } = N(), { toChatScreen: n } = H(), s = e.assignee.kind === "human" ? e.assignee.name || "Support Agent" : (t == null ? void 0 : t.name) || "AI Support Agent", a = e.assignee.kind === "human" ? e.assignee.avatarUrl || "" : (t == null ? void 0 : t.avatar) || "";
|
|
2054
|
-
return /* @__PURE__ */
|
|
2047
|
+
return /* @__PURE__ */ c(
|
|
2055
2048
|
z,
|
|
2056
2049
|
{
|
|
2057
2050
|
variant: "ghost",
|
|
@@ -2062,75 +2055,75 @@ function lt({
|
|
|
2062
2055
|
),
|
|
2063
2056
|
onClick: () => n(e.id),
|
|
2064
2057
|
children: [
|
|
2065
|
-
/* @__PURE__ */
|
|
2066
|
-
/* @__PURE__ */ o(
|
|
2058
|
+
/* @__PURE__ */ c("div", { className: "flex-1 flex gap-2 items-center", children: [
|
|
2059
|
+
/* @__PURE__ */ o(I, { mode: "wait", children: /* @__PURE__ */ o(w, { snapExit: !0, children: /* @__PURE__ */ c(Ce, { className: "size-10", children: [
|
|
2067
2060
|
/* @__PURE__ */ o(ze, { src: a, alt: "Agent Icon" }),
|
|
2068
|
-
/* @__PURE__ */ o(Ne, { children: /* @__PURE__ */ o(
|
|
2061
|
+
/* @__PURE__ */ o(Ne, { children: /* @__PURE__ */ o(xo, { className: "size-4" }) })
|
|
2069
2062
|
] }) }) }),
|
|
2070
|
-
/* @__PURE__ */
|
|
2071
|
-
/* @__PURE__ */ o(
|
|
2072
|
-
/* @__PURE__ */ o(
|
|
2063
|
+
/* @__PURE__ */ c("div", { className: "flex-1", children: [
|
|
2064
|
+
/* @__PURE__ */ o(I, { mode: "wait", children: /* @__PURE__ */ o(w, { snapExit: !0, children: s }, s) }),
|
|
2065
|
+
/* @__PURE__ */ o(I, { mode: "wait", children: e.lastMessage ? /* @__PURE__ */ o(w, { snapExit: !0, children: /* @__PURE__ */ o(
|
|
2073
2066
|
St,
|
|
2074
2067
|
{
|
|
2075
2068
|
remarkPlugins: [wt],
|
|
2076
|
-
rehypePlugins: [
|
|
2069
|
+
rehypePlugins: [ut],
|
|
2077
2070
|
className: "line-clamp-1 overflow-hidden text-ellipsis text-xs text-muted-foreground",
|
|
2078
2071
|
children: e.lastMessage
|
|
2079
2072
|
}
|
|
2080
|
-
) }, e.lastMessage || "content") : /* @__PURE__ */ o(
|
|
2073
|
+
) }, e.lastMessage || "content") : /* @__PURE__ */ o(w, { className: "w-1/2", snapExit: !0, children: /* @__PURE__ */ o(Rt, { className: "h-4 w-full" }) }, "skeleton") })
|
|
2081
2074
|
] })
|
|
2082
2075
|
] }),
|
|
2083
|
-
/* @__PURE__ */ o(
|
|
2076
|
+
/* @__PURE__ */ o(yo, { className: "size-4 text-muted-foreground shrink-0 rtl:-scale-100" })
|
|
2084
2077
|
]
|
|
2085
2078
|
}
|
|
2086
2079
|
);
|
|
2087
2080
|
}
|
|
2088
|
-
function
|
|
2081
|
+
function Tr() {
|
|
2089
2082
|
const { t: e } = Z(), { toChatScreen: r } = H(), {
|
|
2090
2083
|
sessionsState: { data: t, isInitialFetchLoading: n },
|
|
2091
2084
|
openSessions: s,
|
|
2092
2085
|
closedSessions: a,
|
|
2093
2086
|
canCreateNewSession: i
|
|
2094
|
-
} =
|
|
2095
|
-
return /* @__PURE__ */ o("div", { className: "flex-1 flex flex-col overflow-scroll py-2 px-2", children: /* @__PURE__ */ o(
|
|
2096
|
-
|
|
2087
|
+
} = U();
|
|
2088
|
+
return /* @__PURE__ */ o("div", { className: "flex-1 flex flex-col overflow-scroll py-2 px-2", children: /* @__PURE__ */ o(I, { mode: "wait", children: n ? /* @__PURE__ */ o(
|
|
2089
|
+
w,
|
|
2097
2090
|
{
|
|
2098
2091
|
className: "flex-1 flex items-center justify-center",
|
|
2099
|
-
children: /* @__PURE__ */ o(
|
|
2092
|
+
children: /* @__PURE__ */ o(Et, {})
|
|
2100
2093
|
},
|
|
2101
2094
|
"loading"
|
|
2102
2095
|
) : /* @__PURE__ */ o(
|
|
2103
|
-
|
|
2096
|
+
w,
|
|
2104
2097
|
{
|
|
2105
2098
|
className: "flex-1 flex flex-col gap-2 relative",
|
|
2106
|
-
children: t.length ? /* @__PURE__ */
|
|
2107
|
-
/* @__PURE__ */
|
|
2099
|
+
children: t.length ? /* @__PURE__ */ c(ve, { children: [
|
|
2100
|
+
/* @__PURE__ */ c(I, { children: [
|
|
2108
2101
|
s.length > 0 && /* @__PURE__ */ o(
|
|
2109
|
-
|
|
2102
|
+
w,
|
|
2110
2103
|
{
|
|
2111
2104
|
fadeIn: "up",
|
|
2112
2105
|
delay: 0.2,
|
|
2113
2106
|
className: "space-y-2",
|
|
2114
2107
|
snapExit: !0,
|
|
2115
|
-
children: s.map((
|
|
2108
|
+
children: s.map((l) => /* @__PURE__ */ o(lt, { session: l }, l.id))
|
|
2116
2109
|
},
|
|
2117
2110
|
"open-sessions"
|
|
2118
2111
|
),
|
|
2119
|
-
a.length > 0 && /* @__PURE__ */
|
|
2120
|
-
|
|
2112
|
+
a.length > 0 && /* @__PURE__ */ c(
|
|
2113
|
+
w,
|
|
2121
2114
|
{
|
|
2122
2115
|
className: "space-y-2",
|
|
2123
2116
|
delay: 0.2,
|
|
2124
2117
|
snapExit: !0,
|
|
2125
2118
|
children: [
|
|
2126
|
-
/* @__PURE__ */ o(
|
|
2127
|
-
a.map((
|
|
2119
|
+
/* @__PURE__ */ o(Ir, { children: e("closed-conversations") }),
|
|
2120
|
+
a.map((l) => /* @__PURE__ */ o(
|
|
2128
2121
|
lt,
|
|
2129
2122
|
{
|
|
2130
|
-
session:
|
|
2123
|
+
session: l,
|
|
2131
2124
|
className: "opacity-50 hover:opacity-100"
|
|
2132
2125
|
},
|
|
2133
|
-
|
|
2126
|
+
l.id
|
|
2134
2127
|
))
|
|
2135
2128
|
]
|
|
2136
2129
|
},
|
|
@@ -2140,7 +2133,7 @@ function _r() {
|
|
|
2140
2133
|
i && /* @__PURE__ */ o("div", { className: "mt-auto w-full rounded-3xl sticky bottom-0 outline outline-8 outline-background bg-background", children: /* @__PURE__ */ nt(
|
|
2141
2134
|
z,
|
|
2142
2135
|
{
|
|
2143
|
-
...
|
|
2136
|
+
...g("sessions/new_conversation_btn"),
|
|
2144
2137
|
size: "lg",
|
|
2145
2138
|
key: "new-session",
|
|
2146
2139
|
className: "w-full",
|
|
@@ -2148,12 +2141,12 @@ function _r() {
|
|
|
2148
2141
|
},
|
|
2149
2142
|
e("new-conversation")
|
|
2150
2143
|
) })
|
|
2151
|
-
] }) : /* @__PURE__ */
|
|
2144
|
+
] }) : /* @__PURE__ */ c("div", { className: "flex-1 flex flex-col gap-2 items-center", children: [
|
|
2152
2145
|
/* @__PURE__ */ o("div", { className: "flex-1 flex items-center justify-center", children: /* @__PURE__ */ o("p", { className: "text-muted-foreground", children: e("no-conversations-yet") }) }),
|
|
2153
2146
|
/* @__PURE__ */ nt(
|
|
2154
2147
|
z,
|
|
2155
2148
|
{
|
|
2156
|
-
...
|
|
2149
|
+
...g("sessions/new_conversation_btn"),
|
|
2157
2150
|
size: "lg",
|
|
2158
2151
|
key: "new-session",
|
|
2159
2152
|
className: "w-full",
|
|
@@ -2166,7 +2159,7 @@ function _r() {
|
|
|
2166
2159
|
"sessions"
|
|
2167
2160
|
) }) });
|
|
2168
2161
|
}
|
|
2169
|
-
function
|
|
2162
|
+
function Mr() {
|
|
2170
2163
|
const { theme: e } = X();
|
|
2171
2164
|
return Se({
|
|
2172
2165
|
width: e.screens.sessions.width,
|
|
@@ -2174,7 +2167,7 @@ function Ir() {
|
|
|
2174
2167
|
}), /* @__PURE__ */ o(
|
|
2175
2168
|
"div",
|
|
2176
2169
|
{
|
|
2177
|
-
...
|
|
2170
|
+
...g("sessions/root"),
|
|
2178
2171
|
className: d("flex flex-col overflow-hidden bg-background"),
|
|
2179
2172
|
style: {
|
|
2180
2173
|
width: "100vw",
|
|
@@ -2186,10 +2179,10 @@ function Ir() {
|
|
|
2186
2179
|
maxHeight: "100vh"
|
|
2187
2180
|
// Relative to the iframe
|
|
2188
2181
|
},
|
|
2189
|
-
children: /* @__PURE__ */
|
|
2190
|
-
/* @__PURE__ */ o(
|
|
2191
|
-
/* @__PURE__ */ o(
|
|
2192
|
-
/* @__PURE__ */ o(
|
|
2182
|
+
children: /* @__PURE__ */ c("div", { className: "size-full flex flex-col", children: [
|
|
2183
|
+
/* @__PURE__ */ o(jt, {}),
|
|
2184
|
+
/* @__PURE__ */ o(Tr, {}),
|
|
2185
|
+
/* @__PURE__ */ o(Wt, {})
|
|
2193
2186
|
] })
|
|
2194
2187
|
}
|
|
2195
2188
|
);
|
|
@@ -2215,19 +2208,19 @@ const ne = E.forwardRef(
|
|
|
2215
2208
|
}
|
|
2216
2209
|
);
|
|
2217
2210
|
ne.displayName = "Input";
|
|
2218
|
-
function
|
|
2219
|
-
const { contentIframeRef: e } =
|
|
2220
|
-
return
|
|
2211
|
+
function Dr() {
|
|
2212
|
+
const { contentIframeRef: e } = q(), { inline: r } = N(), t = le(null);
|
|
2213
|
+
return ie(() => {
|
|
2221
2214
|
const n = e == null ? void 0 : e.current;
|
|
2222
2215
|
if (n && t.current) {
|
|
2223
2216
|
const s = t.current;
|
|
2224
2217
|
let a;
|
|
2225
2218
|
const i = new ResizeObserver(() => {
|
|
2226
2219
|
a = requestAnimationFrame(() => {
|
|
2227
|
-
const
|
|
2220
|
+
const l = s.offsetHeight;
|
|
2228
2221
|
n.style.setProperty(
|
|
2229
2222
|
"--opencx-widget-height",
|
|
2230
|
-
r ? "100%" : `${
|
|
2223
|
+
r ? "100%" : `${l.toFixed(1)}px`
|
|
2231
2224
|
);
|
|
2232
2225
|
});
|
|
2233
2226
|
});
|
|
@@ -2237,33 +2230,33 @@ function Tr() {
|
|
|
2237
2230
|
}
|
|
2238
2231
|
}, [e, r]), { observedElementRef: t };
|
|
2239
2232
|
}
|
|
2240
|
-
const
|
|
2241
|
-
name:
|
|
2242
|
-
email:
|
|
2233
|
+
const Rr = he.object({
|
|
2234
|
+
name: he.string().min(2),
|
|
2235
|
+
email: he.string().email()
|
|
2243
2236
|
});
|
|
2244
|
-
function
|
|
2245
|
-
var
|
|
2246
|
-
const { setIsOpen: e } =
|
|
2237
|
+
function Or() {
|
|
2238
|
+
var y, T, M, P, F, O, f, k, B;
|
|
2239
|
+
const { setIsOpen: e } = K(), { createUnverifiedContact: r } = Yt(), { isSmallScreen: t } = A(), n = N(), { theme: s } = X(), { t: a } = Z(), { data: i } = ce(), { observedElementRef: l } = Dr();
|
|
2247
2240
|
Se({
|
|
2248
2241
|
height: void 0,
|
|
2249
2242
|
width: s.screens.welcome.width
|
|
2250
2243
|
});
|
|
2251
|
-
const [p,
|
|
2244
|
+
const [p, m] = j(((y = n.prefillUserData) == null ? void 0 : y.name) || ""), [C, x] = j(((T = n.prefillUserData) == null ? void 0 : T.email) || ""), h = (n.extraDataCollectionFields || []).filter(
|
|
2252
2245
|
(S) => S !== "name" && S !== "email" && !!S
|
|
2253
|
-
), [
|
|
2246
|
+
), [v, u] = j({}), [b, _] = Ro(
|
|
2254
2247
|
async (S) => {
|
|
2255
2248
|
S.preventDefault();
|
|
2256
|
-
const L =
|
|
2249
|
+
const L = Rr.safeParse({ name: p, email: C });
|
|
2257
2250
|
L.success && await r(
|
|
2258
2251
|
{
|
|
2259
2252
|
email: L.data.email,
|
|
2260
2253
|
non_verified_name: L.data.name
|
|
2261
2254
|
},
|
|
2262
2255
|
// Only pass extra data if there is any
|
|
2263
|
-
Object.values(
|
|
2256
|
+
Object.values(v).filter(Boolean).length ? v : void 0
|
|
2264
2257
|
);
|
|
2265
2258
|
},
|
|
2266
|
-
[p,
|
|
2259
|
+
[p, C, v]
|
|
2267
2260
|
);
|
|
2268
2261
|
return /* @__PURE__ */ o(
|
|
2269
2262
|
"div",
|
|
@@ -2280,17 +2273,17 @@ function Dr() {
|
|
|
2280
2273
|
// Relative to the iframe
|
|
2281
2274
|
overflowY: "auto"
|
|
2282
2275
|
},
|
|
2283
|
-
children: /* @__PURE__ */
|
|
2276
|
+
children: /* @__PURE__ */ c(
|
|
2284
2277
|
"div",
|
|
2285
2278
|
{
|
|
2286
|
-
ref:
|
|
2279
|
+
ref: l,
|
|
2287
2280
|
className: d(
|
|
2288
2281
|
"flex flex-col",
|
|
2289
2282
|
t && "h-full",
|
|
2290
2283
|
"bg-[radial-gradient(ellipse_at_top_left,hsl(var(--opencx-primary)),transparent),radial-gradient(ellipse_at_top_right,hsl(var(--opencx-primary)),transparent)]"
|
|
2291
2284
|
),
|
|
2292
2285
|
children: [
|
|
2293
|
-
/* @__PURE__ */
|
|
2286
|
+
/* @__PURE__ */ c(
|
|
2294
2287
|
"div",
|
|
2295
2288
|
{
|
|
2296
2289
|
className: d(
|
|
@@ -2298,23 +2291,23 @@ function Dr() {
|
|
|
2298
2291
|
"text-primary-foreground"
|
|
2299
2292
|
),
|
|
2300
2293
|
children: [
|
|
2301
|
-
t && /* @__PURE__ */ o(
|
|
2294
|
+
t && /* @__PURE__ */ o(w, { className: "absolute top-6 end-6", children: /* @__PURE__ */ o(z, { size: "selfless", onClick: () => e(!1), children: /* @__PURE__ */ o(xe, { className: "size-4" }) }) }),
|
|
2302
2295
|
/* @__PURE__ */ o("div", { className: "flex items-center justify-between w-full mb-2", children: (M = n.assets) != null && M.organizationLogo ? /* @__PURE__ */ o(
|
|
2303
2296
|
"img",
|
|
2304
2297
|
{
|
|
2305
|
-
src: (
|
|
2298
|
+
src: (P = n.assets) == null ? void 0 : P.organizationLogo,
|
|
2306
2299
|
alt: "Company Logo",
|
|
2307
2300
|
className: "h-8 w-auto object-contain"
|
|
2308
2301
|
}
|
|
2309
|
-
) : /* @__PURE__ */ o("h2", { className: "font-bold text-sm", children: (
|
|
2310
|
-
/* @__PURE__ */
|
|
2311
|
-
/* @__PURE__ */ o("h1", { className: "text-[1.75rem] font-semibold tracking-tight leading-none", children: ((
|
|
2312
|
-
/* @__PURE__ */ o("p", { className: "text-sm", children: ((B = (
|
|
2302
|
+
) : /* @__PURE__ */ o("h2", { className: "font-bold text-sm", children: (F = i == null ? void 0 : i.data) == null ? void 0 : F.organizationName }) }),
|
|
2303
|
+
/* @__PURE__ */ c("div", { className: "space-y-2", children: [
|
|
2304
|
+
/* @__PURE__ */ o("h1", { className: "text-[1.75rem] font-semibold tracking-tight leading-none", children: ((f = (O = n.textContent) == null ? void 0 : O.welcomeScreen) == null ? void 0 : f.title) || a("welcome-title") }),
|
|
2305
|
+
/* @__PURE__ */ o("p", { className: "text-sm", children: ((B = (k = n.textContent) == null ? void 0 : k.welcomeScreen) == null ? void 0 : B.description) || a("welcome-description") })
|
|
2313
2306
|
] })
|
|
2314
2307
|
]
|
|
2315
2308
|
}
|
|
2316
2309
|
),
|
|
2317
|
-
/* @__PURE__ */
|
|
2310
|
+
/* @__PURE__ */ c(
|
|
2318
2311
|
"div",
|
|
2319
2312
|
{
|
|
2320
2313
|
className: d(
|
|
@@ -2324,12 +2317,12 @@ function Dr() {
|
|
|
2324
2317
|
"rounded-3xl"
|
|
2325
2318
|
),
|
|
2326
2319
|
children: [
|
|
2327
|
-
/* @__PURE__ */
|
|
2320
|
+
/* @__PURE__ */ c("form", { onSubmit: _, className: "space-y-2", children: [
|
|
2328
2321
|
/* @__PURE__ */ o(
|
|
2329
2322
|
ne,
|
|
2330
2323
|
{
|
|
2331
2324
|
value: p,
|
|
2332
|
-
onChange: (S) =>
|
|
2325
|
+
onChange: (S) => m(S.target.value),
|
|
2333
2326
|
required: !0,
|
|
2334
2327
|
placeholder: a("your-name"),
|
|
2335
2328
|
name: "name"
|
|
@@ -2339,18 +2332,18 @@ function Dr() {
|
|
|
2339
2332
|
ne,
|
|
2340
2333
|
{
|
|
2341
2334
|
required: !0,
|
|
2342
|
-
value:
|
|
2343
|
-
onChange: (S) =>
|
|
2335
|
+
value: C,
|
|
2336
|
+
onChange: (S) => x(S.target.value),
|
|
2344
2337
|
type: "email",
|
|
2345
2338
|
placeholder: a("your-email"),
|
|
2346
2339
|
name: "email"
|
|
2347
2340
|
}
|
|
2348
2341
|
),
|
|
2349
|
-
|
|
2342
|
+
h.map((S) => /* @__PURE__ */ o(
|
|
2350
2343
|
ne,
|
|
2351
2344
|
{
|
|
2352
|
-
value:
|
|
2353
|
-
onChange: (L) =>
|
|
2345
|
+
value: v[S],
|
|
2346
|
+
onChange: (L) => u((oe) => ({
|
|
2354
2347
|
...oe,
|
|
2355
2348
|
[S]: L.target.value
|
|
2356
2349
|
})),
|
|
@@ -2358,20 +2351,20 @@ function Dr() {
|
|
|
2358
2351
|
},
|
|
2359
2352
|
S
|
|
2360
2353
|
)),
|
|
2361
|
-
/* @__PURE__ */
|
|
2354
|
+
/* @__PURE__ */ c(
|
|
2362
2355
|
z,
|
|
2363
2356
|
{
|
|
2364
|
-
disabled:
|
|
2357
|
+
disabled: b.loading,
|
|
2365
2358
|
className: "w-full",
|
|
2366
2359
|
size: "lg",
|
|
2367
2360
|
children: [
|
|
2368
|
-
|
|
2369
|
-
/* @__PURE__ */ o(
|
|
2361
|
+
b.loading ? a("starting-chat") : a("start-chat"),
|
|
2362
|
+
/* @__PURE__ */ o(ko, { className: "size-4 rtl:-scale-100" })
|
|
2370
2363
|
]
|
|
2371
2364
|
}
|
|
2372
2365
|
)
|
|
2373
2366
|
] }),
|
|
2374
|
-
/* @__PURE__ */ o(
|
|
2367
|
+
/* @__PURE__ */ o(Wt, {})
|
|
2375
2368
|
]
|
|
2376
2369
|
}
|
|
2377
2370
|
)
|
|
@@ -2381,59 +2374,59 @@ function Dr() {
|
|
|
2381
2374
|
}
|
|
2382
2375
|
);
|
|
2383
2376
|
}
|
|
2384
|
-
function
|
|
2385
|
-
|
|
2377
|
+
function Ht() {
|
|
2378
|
+
ce();
|
|
2386
2379
|
const {
|
|
2387
2380
|
routerState: { screen: e }
|
|
2388
2381
|
} = H();
|
|
2389
|
-
return /* @__PURE__ */
|
|
2390
|
-
/* @__PURE__ */ o(
|
|
2391
|
-
/* @__PURE__ */ o("div", { className: "relative bg-background size-full", children: /* @__PURE__ */ o(
|
|
2382
|
+
return /* @__PURE__ */ c(ve, { children: [
|
|
2383
|
+
/* @__PURE__ */ o(de.Container, {}),
|
|
2384
|
+
/* @__PURE__ */ o("div", { className: "relative bg-background size-full", children: /* @__PURE__ */ o(I, { mode: "wait", children: (() => {
|
|
2392
2385
|
switch (e) {
|
|
2393
2386
|
case "welcome":
|
|
2394
2387
|
return /* @__PURE__ */ o(
|
|
2395
|
-
|
|
2388
|
+
w,
|
|
2396
2389
|
{
|
|
2397
2390
|
fadeIn: "right",
|
|
2398
2391
|
className: "size-full",
|
|
2399
2392
|
snapExit: !0,
|
|
2400
|
-
children: /* @__PURE__ */ o(
|
|
2393
|
+
children: /* @__PURE__ */ o(Or, {})
|
|
2401
2394
|
},
|
|
2402
2395
|
e
|
|
2403
2396
|
);
|
|
2404
2397
|
case "sessions":
|
|
2405
2398
|
return /* @__PURE__ */ o(
|
|
2406
|
-
|
|
2399
|
+
w,
|
|
2407
2400
|
{
|
|
2408
2401
|
fadeIn: "right",
|
|
2409
2402
|
className: "size-full",
|
|
2410
2403
|
snapExit: !0,
|
|
2411
|
-
children: /* @__PURE__ */ o(
|
|
2404
|
+
children: /* @__PURE__ */ o(Mr, {})
|
|
2412
2405
|
},
|
|
2413
2406
|
e
|
|
2414
2407
|
);
|
|
2415
2408
|
case "chat":
|
|
2416
2409
|
return /* @__PURE__ */ o(
|
|
2417
|
-
|
|
2410
|
+
w,
|
|
2418
2411
|
{
|
|
2419
2412
|
fadeIn: "right",
|
|
2420
2413
|
className: "size-full",
|
|
2421
2414
|
snapExit: !0,
|
|
2422
|
-
children: /* @__PURE__ */ o(
|
|
2415
|
+
children: /* @__PURE__ */ o(Sr, {})
|
|
2423
2416
|
},
|
|
2424
2417
|
e
|
|
2425
2418
|
);
|
|
2426
2419
|
default:
|
|
2427
|
-
return D(e,
|
|
2420
|
+
return D(e, Ht.name), null;
|
|
2428
2421
|
}
|
|
2429
2422
|
})() }) })
|
|
2430
2423
|
] });
|
|
2431
2424
|
}
|
|
2432
|
-
const
|
|
2425
|
+
const jr = "4.0.8", Er = `<!DOCTYPE html>
|
|
2433
2426
|
<html>
|
|
2434
2427
|
<head>
|
|
2435
2428
|
<style>
|
|
2436
|
-
${
|
|
2429
|
+
${It}
|
|
2437
2430
|
html, body {
|
|
2438
2431
|
height: 100%;
|
|
2439
2432
|
width: 100%;
|
|
@@ -2447,8 +2440,8 @@ html, body {
|
|
|
2447
2440
|
<body>
|
|
2448
2441
|
</body>
|
|
2449
2442
|
</html>`;
|
|
2450
|
-
function
|
|
2451
|
-
const { isOpen: e } =
|
|
2443
|
+
function At() {
|
|
2444
|
+
const { isOpen: e } = K(), { contentIframeRef: r } = q(), { cssOverrides: t, inline: n } = N(), { theme: s, cssVars: a, computed: i } = X(), { dir: l } = Z();
|
|
2452
2445
|
return /* @__PURE__ */ o(
|
|
2453
2446
|
J.div,
|
|
2454
2447
|
{
|
|
@@ -2468,11 +2461,11 @@ function Ht() {
|
|
|
2468
2461
|
height: n ? "100%" : void 0
|
|
2469
2462
|
}
|
|
2470
2463
|
},
|
|
2471
|
-
children: /* @__PURE__ */
|
|
2472
|
-
|
|
2464
|
+
children: /* @__PURE__ */ c(
|
|
2465
|
+
gt,
|
|
2473
2466
|
{
|
|
2474
2467
|
ref: r,
|
|
2475
|
-
initialContent:
|
|
2468
|
+
initialContent: Er,
|
|
2476
2469
|
allowFullScreen: !0,
|
|
2477
2470
|
title: "OpenCX Live Chat",
|
|
2478
2471
|
style: {
|
|
@@ -2503,7 +2496,7 @@ function Ht() {
|
|
|
2503
2496
|
children: [
|
|
2504
2497
|
t && /* @__PURE__ */ o("style", { children: t }),
|
|
2505
2498
|
/* @__PURE__ */ o(
|
|
2506
|
-
|
|
2499
|
+
Yo,
|
|
2507
2500
|
{
|
|
2508
2501
|
delayDuration: 200,
|
|
2509
2502
|
disableHoverableContent: !0,
|
|
@@ -2513,12 +2506,12 @@ function Ht() {
|
|
|
2513
2506
|
style: {
|
|
2514
2507
|
...a
|
|
2515
2508
|
},
|
|
2516
|
-
"data-version":
|
|
2509
|
+
"data-version": jr,
|
|
2517
2510
|
className: d(
|
|
2518
2511
|
"antialiased font-sans size-full overflow-hidden relative text-secondary-foreground"
|
|
2519
2512
|
),
|
|
2520
|
-
dir:
|
|
2521
|
-
children: /* @__PURE__ */ o(
|
|
2513
|
+
dir: l,
|
|
2514
|
+
children: /* @__PURE__ */ o(Ht, {})
|
|
2522
2515
|
}
|
|
2523
2516
|
)
|
|
2524
2517
|
}
|
|
@@ -2529,10 +2522,10 @@ function Ht() {
|
|
|
2529
2522
|
}
|
|
2530
2523
|
);
|
|
2531
2524
|
}
|
|
2532
|
-
function
|
|
2525
|
+
function Pr() {
|
|
2533
2526
|
const { theme: e } = X();
|
|
2534
2527
|
return /* @__PURE__ */ o(
|
|
2535
|
-
|
|
2528
|
+
ae.Content,
|
|
2536
2529
|
{
|
|
2537
2530
|
onInteractOutside: (r) => r.preventDefault(),
|
|
2538
2531
|
forceMount: !0,
|
|
@@ -2545,15 +2538,15 @@ function jr() {
|
|
|
2545
2538
|
sideOffset: e.widgetContentContainer.offset.side,
|
|
2546
2539
|
alignOffset: e.widgetContentContainer.offset.align,
|
|
2547
2540
|
avoidCollisions: !1,
|
|
2548
|
-
children: /* @__PURE__ */ o(
|
|
2541
|
+
children: /* @__PURE__ */ o(At, {})
|
|
2549
2542
|
}
|
|
2550
2543
|
);
|
|
2551
2544
|
}
|
|
2552
|
-
function
|
|
2545
|
+
function Fr({
|
|
2553
2546
|
className: e,
|
|
2554
2547
|
style: r
|
|
2555
2548
|
}) {
|
|
2556
|
-
return /* @__PURE__ */
|
|
2549
|
+
return /* @__PURE__ */ c(
|
|
2557
2550
|
"svg",
|
|
2558
2551
|
{
|
|
2559
2552
|
width: "32",
|
|
@@ -2584,11 +2577,11 @@ function Er({
|
|
|
2584
2577
|
}
|
|
2585
2578
|
);
|
|
2586
2579
|
}
|
|
2587
|
-
const
|
|
2580
|
+
const Wr = `<!DOCTYPE html>
|
|
2588
2581
|
<html>
|
|
2589
2582
|
<head>
|
|
2590
2583
|
<style>
|
|
2591
|
-
${
|
|
2584
|
+
${It}
|
|
2592
2585
|
html, body {
|
|
2593
2586
|
height: 100%;
|
|
2594
2587
|
width: 100%;
|
|
@@ -2601,13 +2594,13 @@ html, body {
|
|
|
2601
2594
|
<body>
|
|
2602
2595
|
</body>
|
|
2603
2596
|
</html>`;
|
|
2604
|
-
function
|
|
2597
|
+
function Hr() {
|
|
2605
2598
|
var a, i;
|
|
2606
|
-
const { isOpen: e } =
|
|
2607
|
-
return /* @__PURE__ */
|
|
2608
|
-
|
|
2599
|
+
const { isOpen: e } = K(), { cssOverrides: r, assets: t } = N(), { theme: n, cssVars: s } = X();
|
|
2600
|
+
return /* @__PURE__ */ c(
|
|
2601
|
+
gt,
|
|
2609
2602
|
{
|
|
2610
|
-
initialContent:
|
|
2603
|
+
initialContent: Wr,
|
|
2611
2604
|
style: {
|
|
2612
2605
|
height: `calc(${n.widgetTrigger.size.button}px + ${V.x * 2}px)`,
|
|
2613
2606
|
width: `calc(${n.widgetTrigger.size.button}px + ${V.y * 2}px)`,
|
|
@@ -2637,7 +2630,7 @@ function Pr() {
|
|
|
2637
2630
|
justifyContent: "center"
|
|
2638
2631
|
},
|
|
2639
2632
|
children: /* @__PURE__ */ o(
|
|
2640
|
-
|
|
2633
|
+
ae.PopoverTrigger,
|
|
2641
2634
|
{
|
|
2642
2635
|
className: d(
|
|
2643
2636
|
"font-sans flex items-center justify-center rounded-full"
|
|
@@ -2649,7 +2642,7 @@ function Pr() {
|
|
|
2649
2642
|
children: /* @__PURE__ */ o(W, { children: /* @__PURE__ */ o(
|
|
2650
2643
|
"div",
|
|
2651
2644
|
{
|
|
2652
|
-
...
|
|
2645
|
+
...g("trigger/btn"),
|
|
2653
2646
|
className: d(
|
|
2654
2647
|
"relative size-full rounded-full",
|
|
2655
2648
|
"flex items-center justify-center",
|
|
@@ -2658,8 +2651,8 @@ function Pr() {
|
|
|
2658
2651
|
"bg-primary",
|
|
2659
2652
|
"text-primary-foreground"
|
|
2660
2653
|
),
|
|
2661
|
-
children: /* @__PURE__ */ o(
|
|
2662
|
-
|
|
2654
|
+
children: /* @__PURE__ */ o(I, { mode: "wait", children: e ? /* @__PURE__ */ o(
|
|
2655
|
+
w,
|
|
2663
2656
|
{
|
|
2664
2657
|
snapExit: !0,
|
|
2665
2658
|
fadeIn: "up",
|
|
@@ -2678,7 +2671,7 @@ function Pr() {
|
|
|
2678
2671
|
}
|
|
2679
2672
|
}
|
|
2680
2673
|
) : /* @__PURE__ */ o(
|
|
2681
|
-
|
|
2674
|
+
Co,
|
|
2682
2675
|
{
|
|
2683
2676
|
style: {
|
|
2684
2677
|
width: n.widgetTrigger.size.icon,
|
|
@@ -2689,7 +2682,7 @@ function Pr() {
|
|
|
2689
2682
|
},
|
|
2690
2683
|
"x-icon"
|
|
2691
2684
|
) : /* @__PURE__ */ o(
|
|
2692
|
-
|
|
2685
|
+
w,
|
|
2693
2686
|
{
|
|
2694
2687
|
snapExit: !0,
|
|
2695
2688
|
overrides: {
|
|
@@ -2707,7 +2700,7 @@ function Pr() {
|
|
|
2707
2700
|
}
|
|
2708
2701
|
}
|
|
2709
2702
|
) : /* @__PURE__ */ o(
|
|
2710
|
-
|
|
2703
|
+
Fr,
|
|
2711
2704
|
{
|
|
2712
2705
|
style: {
|
|
2713
2706
|
width: n.widgetTrigger.size.icon,
|
|
@@ -2729,10 +2722,10 @@ function Pr() {
|
|
|
2729
2722
|
}
|
|
2730
2723
|
);
|
|
2731
2724
|
}
|
|
2732
|
-
function
|
|
2725
|
+
function Ar() {
|
|
2733
2726
|
const { dir: e } = be();
|
|
2734
2727
|
return /* @__PURE__ */ o(
|
|
2735
|
-
|
|
2728
|
+
ae.Anchor,
|
|
2736
2729
|
{
|
|
2737
2730
|
style: {
|
|
2738
2731
|
position: "fixed",
|
|
@@ -2743,32 +2736,32 @@ function Wr() {
|
|
|
2743
2736
|
}
|
|
2744
2737
|
);
|
|
2745
2738
|
}
|
|
2746
|
-
function
|
|
2747
|
-
const { isOpen: e, setIsOpen: r } =
|
|
2748
|
-
return /* @__PURE__ */
|
|
2749
|
-
/* @__PURE__ */ o(
|
|
2750
|
-
/* @__PURE__ */ o(
|
|
2751
|
-
/* @__PURE__ */ o(
|
|
2739
|
+
function Br() {
|
|
2740
|
+
const { isOpen: e, setIsOpen: r } = K();
|
|
2741
|
+
return /* @__PURE__ */ c(ae.Root, { open: e, onOpenChange: r, children: [
|
|
2742
|
+
/* @__PURE__ */ o(Ar, {}),
|
|
2743
|
+
/* @__PURE__ */ o(Hr, {}),
|
|
2744
|
+
/* @__PURE__ */ o(Pr, {})
|
|
2752
2745
|
] });
|
|
2753
2746
|
}
|
|
2754
|
-
const
|
|
2747
|
+
const Lr = [
|
|
2755
2748
|
{
|
|
2756
2749
|
key: "loading",
|
|
2757
|
-
component:
|
|
2750
|
+
component: $o
|
|
2758
2751
|
},
|
|
2759
2752
|
{
|
|
2760
2753
|
key: "fallback",
|
|
2761
|
-
component:
|
|
2754
|
+
component: Po
|
|
2762
2755
|
},
|
|
2763
2756
|
{
|
|
2764
2757
|
key: "bot_message",
|
|
2765
|
-
component:
|
|
2758
|
+
component: ge
|
|
2766
2759
|
},
|
|
2767
2760
|
{
|
|
2768
2761
|
key: "agent_message",
|
|
2769
|
-
component:
|
|
2762
|
+
component: ge
|
|
2770
2763
|
}
|
|
2771
|
-
],
|
|
2764
|
+
], $r = {
|
|
2772
2765
|
get: async (e) => localStorage.getItem(e),
|
|
2773
2766
|
set: async (e, r) => {
|
|
2774
2767
|
localStorage.setItem(e, r);
|
|
@@ -2777,23 +2770,23 @@ const Ar = [
|
|
|
2777
2770
|
localStorage.removeItem(e);
|
|
2778
2771
|
}
|
|
2779
2772
|
};
|
|
2780
|
-
function
|
|
2773
|
+
function dn({
|
|
2781
2774
|
options: e,
|
|
2782
2775
|
components: r = [],
|
|
2783
2776
|
loadingComponent: t
|
|
2784
2777
|
}) {
|
|
2785
2778
|
return /* @__PURE__ */ o(
|
|
2786
|
-
|
|
2779
|
+
qt,
|
|
2787
2780
|
{
|
|
2788
|
-
components: [...
|
|
2781
|
+
components: [...Lr, ...r],
|
|
2789
2782
|
options: e,
|
|
2790
|
-
storage:
|
|
2783
|
+
storage: $r,
|
|
2791
2784
|
loadingComponent: t,
|
|
2792
|
-
children: /* @__PURE__ */ o(
|
|
2785
|
+
children: /* @__PURE__ */ o(Ut, { children: e.inline ? /* @__PURE__ */ o(At, {}) : /* @__PURE__ */ o(Br, {}) })
|
|
2793
2786
|
}
|
|
2794
2787
|
);
|
|
2795
2788
|
}
|
|
2796
2789
|
export {
|
|
2797
|
-
|
|
2790
|
+
dn as Widget
|
|
2798
2791
|
};
|
|
2799
2792
|
//# sourceMappingURL=index.js.map
|