@opencx/widget-react 4.0.18 → 4.0.19
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 +9 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +485 -477
- package/dist/index.js.map +1 -1
- package/dist/src/screens/chat/ChatFooter.d.ts.map +1 -1
- package/dist/src/screens/chat/ChatFooterItems.d.ts +3 -0
- package/dist/src/screens/chat/ChatFooterItems.d.ts.map +1 -0
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
import { jsx as r, jsxs as d, Fragment as te } from "react/jsx-runtime";
|
|
2
2
|
import * as ae from "@radix-ui/react-popover";
|
|
3
3
|
import * as G from "react";
|
|
4
|
-
import
|
|
5
|
-
import { useWidget as
|
|
6
|
-
import { clsx as
|
|
7
|
-
import { twMerge as
|
|
4
|
+
import q, { memo as $t, forwardRef as ct, useState as I, cloneElement as dt, createContext as Bt, useEffect as re, useContext as Lt, useMemo as pt, useRef as le, createElement as rt } from "react";
|
|
5
|
+
import { useWidget as R, useConfig as b, useDocumentDir as ue, useWidgetRouter as $, useWidgetTrigger as K, useSessions as B, useMessages as O, useModes as ht, useCsat as mt, useUploadFiles as Yt, useIsAwaitingBotReply as gt, useContact as qt, WidgetProvider as Xt, WidgetTriggerProvider as Ut } from "@opencx/widget-react-headless";
|
|
6
|
+
import { clsx as Vt } from "clsx";
|
|
7
|
+
import { twMerge as Gt } from "tailwind-merge";
|
|
8
8
|
import { motion as Z, AnimatePresence as S } from "framer-motion";
|
|
9
|
-
import { Slot as
|
|
10
|
-
import { cva as
|
|
11
|
-
import { X as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { isExhaustive as D, isSupportedLanguage as
|
|
9
|
+
import { Slot as Kt } from "@radix-ui/react-slot";
|
|
10
|
+
import { cva as Qt } from "class-variance-authority";
|
|
11
|
+
import { X as Zt, CircleDashedIcon as Jt, XIcon as fe, SquareXIcon as er, SquareCheckBigIcon as tr, SquareCheckIcon as rr, ShrinkIcon as or, Minimize2Icon as nr, MinimizeIcon as sr, Maximize2Icon as ir, MaximizeIcon as ar, ExpandIcon as lr, CircleXIcon as cr, CircleCheckBigIcon as dr, CircleCheckIcon as wt, CheckCheckIcon as pr, CheckIcon as hr, ChevronLeftIcon as mr, LoaderIcon as gr, ArrowUpIcon as ut, PaperclipIcon as wr, ImageIcon as ur, CircleDashed as fr, AlertCircle as vr, Loader2 as xr, FileAudio2Icon as br, FileVideo2Icon as yr, FileIcon as kr, UserRoundIcon as Cr, ChevronRightIcon as zr, SendHorizontal as Nr, ChevronDownIcon as Sr } from "lucide-react";
|
|
12
|
+
import ft from "remark-gfm";
|
|
13
|
+
import _r from "react-markdown";
|
|
14
|
+
import vt from "rehype-raw";
|
|
15
|
+
import { isExhaustive as D, isSupportedLanguage as Ir, getTranslation as Tr } from "@opencx/widget-core";
|
|
16
16
|
import * as Q from "@radix-ui/react-avatar";
|
|
17
|
-
import
|
|
17
|
+
import xt from "@uiw/react-iframe";
|
|
18
18
|
import * as oe from "@radix-ui/react-tooltip";
|
|
19
|
-
import
|
|
20
|
-
import { useDropzone as
|
|
21
|
-
import
|
|
19
|
+
import ot from "tinycolor2";
|
|
20
|
+
import { useDropzone as Mr } from "react-dropzone";
|
|
21
|
+
import Dr from "react-use/lib/useAsyncFn";
|
|
22
22
|
import { z as pe } from "zod";
|
|
23
23
|
function g(e) {
|
|
24
24
|
return { "data-component": e };
|
|
25
25
|
}
|
|
26
26
|
function p(...e) {
|
|
27
|
-
return Vt(
|
|
27
|
+
return Gt(Vt(e));
|
|
28
28
|
}
|
|
29
29
|
const V = {
|
|
30
30
|
x: 2,
|
|
31
31
|
y: 2
|
|
32
|
-
},
|
|
33
|
-
|
|
32
|
+
}, W = $t(
|
|
33
|
+
ct(
|
|
34
34
|
({ children: e, className: o, scale: t = 1.02, off: n = !1 }, s) => {
|
|
35
|
-
const [
|
|
35
|
+
const [i, a] = I(!1), [c, l] = I({ x: 0, y: 0 });
|
|
36
36
|
if (n || /translate/.test(
|
|
37
37
|
e.props.className || ""
|
|
38
38
|
)) return e;
|
|
39
39
|
const x = (f) => {
|
|
40
40
|
var C, z;
|
|
41
|
-
const { clientX: N, clientY: T } = f, _ = f.currentTarget.getBoundingClientRect(), M = N - (_.left + _.width / 2),
|
|
41
|
+
const { clientX: N, clientY: T } = f, _ = f.currentTarget.getBoundingClientRect(), M = N - (_.left + _.width / 2), A = T - (_.top + _.height / 2), F = Math.max(
|
|
42
42
|
-1,
|
|
43
43
|
Math.min(1, M / (_.width / 2))
|
|
44
|
-
),
|
|
44
|
+
), H = Math.max(
|
|
45
45
|
-1,
|
|
46
|
-
Math.min(1,
|
|
47
|
-
),
|
|
48
|
-
l({ x:
|
|
46
|
+
Math.min(1, A / (_.height / 2))
|
|
47
|
+
), j = F * V.x, v = H * V.y;
|
|
48
|
+
l({ x: j, y: v }), (z = (C = e.props).onMouseMove) == null || z.call(C, f);
|
|
49
49
|
}, u = () => {
|
|
50
50
|
var f, N;
|
|
51
|
-
|
|
51
|
+
a(!0), (N = (f = e.props).onMouseEnter) == null || N.call(f);
|
|
52
52
|
}, m = () => {
|
|
53
53
|
var f, N;
|
|
54
|
-
|
|
54
|
+
a(!1), l({ x: 0, y: 0 }), (N = (f = e.props).onMouseLeave) == null || N.call(f);
|
|
55
55
|
}, k = {
|
|
56
|
-
"--wobble-x":
|
|
57
|
-
"--wobble-y":
|
|
56
|
+
"--wobble-x": i ? `${c.x}px` : "0px",
|
|
57
|
+
"--wobble-y": i ? `${c.y}px` : "0px",
|
|
58
58
|
"--scale": 1 - (t - 1)
|
|
59
59
|
};
|
|
60
|
-
return
|
|
60
|
+
return dt(e, {
|
|
61
61
|
ref: s,
|
|
62
62
|
onMouseMove: x,
|
|
63
63
|
onMouseEnter: u,
|
|
@@ -78,16 +78,16 @@ const V = {
|
|
|
78
78
|
}
|
|
79
79
|
)
|
|
80
80
|
);
|
|
81
|
-
|
|
82
|
-
const
|
|
81
|
+
W.displayName = "Wobble";
|
|
82
|
+
const Rr = 10, jr = (e, o, t) => ({
|
|
83
83
|
initial: { opacity: 0, x: -e, ...o.initial },
|
|
84
84
|
animate: { opacity: 1, x: 0, ...o.animate, transition: { delay: t } },
|
|
85
85
|
exit: { opacity: 0, x: e, ...o.exit }
|
|
86
|
-
}),
|
|
86
|
+
}), Er = (e, o, t) => ({
|
|
87
87
|
initial: { opacity: 0, x: e, ...o.initial },
|
|
88
88
|
animate: { opacity: 1, x: 0, ...o.animate, transition: { delay: t } },
|
|
89
89
|
exit: { opacity: 0, x: -e, ...o.exit }
|
|
90
|
-
}),
|
|
90
|
+
}), Or = (e, o, t) => ({
|
|
91
91
|
initial: { opacity: 0, y: e, ...o.initial },
|
|
92
92
|
animate: { opacity: 1, y: 0, ...o.animate, transition: { delay: t } },
|
|
93
93
|
exit: { opacity: 0, y: -e, ...o.exit }
|
|
@@ -95,27 +95,27 @@ const Dr = 10, jr = (e, o, t) => ({
|
|
|
95
95
|
initial: { opacity: 0, y: -e, ...o.initial },
|
|
96
96
|
animate: { opacity: 1, y: 0, ...o.animate, transition: { delay: t } },
|
|
97
97
|
exit: { opacity: 0, y: e, ...o.exit }
|
|
98
|
-
}),
|
|
98
|
+
}), Ar = {
|
|
99
99
|
right: jr,
|
|
100
|
-
left:
|
|
101
|
-
up:
|
|
100
|
+
left: Er,
|
|
101
|
+
up: Or,
|
|
102
102
|
down: Pr
|
|
103
|
-
}, w =
|
|
103
|
+
}, w = ct(
|
|
104
104
|
({
|
|
105
105
|
fadeIn: e = "down",
|
|
106
|
-
distance: o =
|
|
106
|
+
distance: o = Rr,
|
|
107
107
|
children: t,
|
|
108
108
|
snapExit: n = !1,
|
|
109
109
|
overrides: s = {},
|
|
110
|
-
delay:
|
|
111
|
-
...
|
|
110
|
+
delay: i = 0,
|
|
111
|
+
...a
|
|
112
112
|
}, c) => {
|
|
113
|
-
const l = e ?
|
|
114
|
-
return n && l.exit && typeof l.exit == "object" && !Array.isArray(l.exit) && (l.exit.transition = { duration: 0 }), /* @__PURE__ */ r(Z.div, { ref: c, ...
|
|
113
|
+
const l = e ? Ar[e](o, s, i) : {};
|
|
114
|
+
return n && l.exit && typeof l.exit == "object" && !Array.isArray(l.exit) && (l.exit.transition = { duration: 0 }), /* @__PURE__ */ r(Z.div, { ref: c, ...a, ...l, children: t });
|
|
115
115
|
}
|
|
116
116
|
);
|
|
117
117
|
w.displayName = "MotionDiv";
|
|
118
|
-
const
|
|
118
|
+
const Fr = Qt(
|
|
119
119
|
p(
|
|
120
120
|
"inline-flex shrink-0 items-center justify-center gap-2",
|
|
121
121
|
"text-sm font-medium whitespace-nowrap",
|
|
@@ -155,39 +155,39 @@ const Ar = Kt(
|
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
), y = G.forwardRef(
|
|
158
|
-
({ className: e, variant: o = "default", size: t, asChild: n = !1, ...s },
|
|
159
|
-
n ?
|
|
158
|
+
({ className: e, variant: o = "default", size: t, asChild: n = !1, ...s }, i) => /* @__PURE__ */ r(W, { ref: i, children: /* @__PURE__ */ r(
|
|
159
|
+
n ? Kt : "button",
|
|
160
160
|
{
|
|
161
161
|
...g("ui_lib/btn"),
|
|
162
162
|
"data-variant": o,
|
|
163
|
-
className: p(
|
|
163
|
+
className: p(Fr({ variant: o, size: t, className: e })),
|
|
164
164
|
...s
|
|
165
165
|
}
|
|
166
166
|
) })
|
|
167
167
|
);
|
|
168
168
|
y.displayName = "Button";
|
|
169
|
-
const
|
|
170
|
-
function
|
|
171
|
-
const [o, t] = I(!1), [n, s] = I(null),
|
|
169
|
+
const bt = Bt(null);
|
|
170
|
+
function Hr({ children: e }) {
|
|
171
|
+
const [o, t] = I(!1), [n, s] = I(null), i = (c) => {
|
|
172
172
|
s(c), t(!0);
|
|
173
|
-
},
|
|
173
|
+
}, a = () => {
|
|
174
174
|
t(!1), setTimeout(() => {
|
|
175
175
|
s(null);
|
|
176
176
|
}, 200);
|
|
177
177
|
};
|
|
178
178
|
return /* @__PURE__ */ d(
|
|
179
|
-
|
|
179
|
+
bt.Provider,
|
|
180
180
|
{
|
|
181
|
-
value: { open:
|
|
181
|
+
value: { open: i, close: a, isOpen: o, content: n },
|
|
182
182
|
children: [
|
|
183
|
-
/* @__PURE__ */ r(
|
|
183
|
+
/* @__PURE__ */ r(Wr, {}),
|
|
184
184
|
e
|
|
185
185
|
]
|
|
186
186
|
}
|
|
187
187
|
);
|
|
188
188
|
}
|
|
189
189
|
function ce() {
|
|
190
|
-
const e =
|
|
190
|
+
const e = Lt(bt);
|
|
191
191
|
return e || (console.error("useDialoger must be used within a DialogerProvider"), {
|
|
192
192
|
open: () => {
|
|
193
193
|
},
|
|
@@ -197,14 +197,14 @@ function ce() {
|
|
|
197
197
|
content: null
|
|
198
198
|
});
|
|
199
199
|
}
|
|
200
|
-
function
|
|
201
|
-
const { contentIframeRef: e } =
|
|
200
|
+
function Wr() {
|
|
201
|
+
const { contentIframeRef: e } = R(), { isOpen: o, content: t, close: n } = ce();
|
|
202
202
|
return re(() => {
|
|
203
|
-
var
|
|
203
|
+
var i, a;
|
|
204
204
|
const s = (c) => {
|
|
205
205
|
c.key === "Escape" && n();
|
|
206
206
|
};
|
|
207
|
-
return (
|
|
207
|
+
return (a = (i = e == null ? void 0 : e.current) == null ? void 0 : i.contentWindow) == null || a.document.addEventListener(
|
|
208
208
|
"keydown",
|
|
209
209
|
s
|
|
210
210
|
), () => {
|
|
@@ -229,7 +229,7 @@ function Hr() {
|
|
|
229
229
|
"dialog-content"
|
|
230
230
|
) });
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function yt({
|
|
233
233
|
children: e,
|
|
234
234
|
className: o,
|
|
235
235
|
withClose: t = !1
|
|
@@ -253,7 +253,7 @@ function xt({
|
|
|
253
253
|
variant: "secondary",
|
|
254
254
|
onClick: n,
|
|
255
255
|
children: [
|
|
256
|
-
/* @__PURE__ */ r(
|
|
256
|
+
/* @__PURE__ */ r(Zt, { className: "h-4 w-4" }),
|
|
257
257
|
/* @__PURE__ */ r("span", { className: "sr-only", children: "Close" })
|
|
258
258
|
]
|
|
259
259
|
}
|
|
@@ -262,7 +262,7 @@ function xt({
|
|
|
262
262
|
}
|
|
263
263
|
);
|
|
264
264
|
}
|
|
265
|
-
const
|
|
265
|
+
const kt = ({
|
|
266
266
|
className: e,
|
|
267
267
|
...o
|
|
268
268
|
}) => /* @__PURE__ */ r(
|
|
@@ -272,8 +272,8 @@ const bt = ({
|
|
|
272
272
|
...o
|
|
273
273
|
}
|
|
274
274
|
);
|
|
275
|
-
|
|
276
|
-
const
|
|
275
|
+
kt.displayName = "DialogerHeader";
|
|
276
|
+
const Ct = ({
|
|
277
277
|
className: e,
|
|
278
278
|
...o
|
|
279
279
|
}) => /* @__PURE__ */ r(
|
|
@@ -283,13 +283,13 @@ const yt = ({
|
|
|
283
283
|
...o
|
|
284
284
|
}
|
|
285
285
|
);
|
|
286
|
-
|
|
287
|
-
const
|
|
286
|
+
Ct.displayName = "DialogerBody";
|
|
287
|
+
const zt = ({
|
|
288
288
|
className: e,
|
|
289
289
|
...o
|
|
290
290
|
}) => /* @__PURE__ */ r("div", { className: p("flex flex-col gap-2", e), ...o });
|
|
291
|
-
|
|
292
|
-
const
|
|
291
|
+
zt.displayName = "DialogerFooter";
|
|
292
|
+
const Nt = q.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
293
293
|
"p",
|
|
294
294
|
{
|
|
295
295
|
ref: t,
|
|
@@ -300,8 +300,8 @@ const Ct = Y.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
|
300
300
|
...o
|
|
301
301
|
}
|
|
302
302
|
));
|
|
303
|
-
|
|
304
|
-
const
|
|
303
|
+
Nt.displayName = "DialogerTitle";
|
|
304
|
+
const St = q.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
305
305
|
"p",
|
|
306
306
|
{
|
|
307
307
|
ref: t,
|
|
@@ -309,25 +309,25 @@ const zt = Y.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
|
309
309
|
...o
|
|
310
310
|
}
|
|
311
311
|
));
|
|
312
|
-
|
|
313
|
-
function
|
|
312
|
+
St.displayName = "DialogerDescription";
|
|
313
|
+
function _t({
|
|
314
314
|
children: e,
|
|
315
315
|
trigger: o
|
|
316
316
|
}) {
|
|
317
317
|
const { open: t } = ce();
|
|
318
|
-
return
|
|
318
|
+
return dt(o, {
|
|
319
319
|
onClick: () => t(e)
|
|
320
320
|
});
|
|
321
321
|
}
|
|
322
|
-
function
|
|
323
|
-
const { name: o, size: t, type: n, url: s } = e,
|
|
324
|
-
return c ? /* @__PURE__ */ r(
|
|
322
|
+
function It({ attachment: e }) {
|
|
323
|
+
const { name: o, size: t, type: n, url: s } = e, i = n.startsWith("image/"), a = n.startsWith("video/"), c = n.startsWith("audio/");
|
|
324
|
+
return c ? /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r("div", { className: "w-full shrink-0 overflow-hidden", children: /* @__PURE__ */ d("audio", { controls: !0, className: "w-full", children: [
|
|
325
325
|
/* @__PURE__ */ r("source", { src: s, type: n }),
|
|
326
326
|
"Your browser does not support the audio tag."
|
|
327
|
-
] }) }) }) :
|
|
327
|
+
] }) }) }) : a ? /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r("div", { className: "w-full border shrink-0 rounded-2xl overflow-hidden", children: /* @__PURE__ */ d("video", { controls: !0, children: [
|
|
328
328
|
/* @__PURE__ */ r("source", { src: s, type: n }),
|
|
329
329
|
"Your browser does not support the video tag."
|
|
330
|
-
] }) }) }) : !
|
|
330
|
+
] }) }) }) : !i && !a && !c ? /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r("div", { className: "size-fit border shrink-0 rounded-2xl overflow-hidden", children: /* @__PURE__ */ d("div", { className: "flex items-end gap-2 p-2", children: [
|
|
331
331
|
/* @__PURE__ */ r(
|
|
332
332
|
"a",
|
|
333
333
|
{
|
|
@@ -347,39 +347,39 @@ function St({ attachment: e }) {
|
|
|
347
347
|
" KB"
|
|
348
348
|
] })
|
|
349
349
|
] }) }) }) : /* @__PURE__ */ r(
|
|
350
|
-
|
|
350
|
+
_t,
|
|
351
351
|
{
|
|
352
|
-
trigger: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(
|
|
352
|
+
trigger: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r("div", { className: "size-fit border shrink-0 rounded-2xl overflow-hidden", children: i && /* @__PURE__ */ r("img", { src: s, className: "object-cover size-16", alt: o }) }) }) }),
|
|
353
353
|
children: /* @__PURE__ */ r(
|
|
354
|
-
|
|
354
|
+
yt,
|
|
355
355
|
{
|
|
356
356
|
className: "size-full max-w-full rounded-3xl flex items-center justify-center bg-transparent border-none gap-0",
|
|
357
357
|
withClose: !0,
|
|
358
|
-
children:
|
|
358
|
+
children: i && /* @__PURE__ */ r("div", { className: "size-fit shrink-0 rounded-2xl overflow-hidden max-h-full", children: /* @__PURE__ */ r("img", { src: s, className: "object-cover size-auto", alt: o }) })
|
|
359
359
|
}
|
|
360
360
|
)
|
|
361
361
|
}
|
|
362
362
|
);
|
|
363
363
|
}
|
|
364
|
-
const
|
|
365
|
-
|
|
364
|
+
const Tt = q.memo(
|
|
365
|
+
_r,
|
|
366
366
|
(e, o) => e.children === o.children && e.className === o.className
|
|
367
367
|
);
|
|
368
|
-
function
|
|
368
|
+
function ve({
|
|
369
369
|
children: e,
|
|
370
370
|
messageType: o,
|
|
371
371
|
messageId: t
|
|
372
372
|
}) {
|
|
373
373
|
const { anchorTarget: n } = b();
|
|
374
374
|
return /* @__PURE__ */ r(
|
|
375
|
-
|
|
375
|
+
Tt,
|
|
376
376
|
{
|
|
377
377
|
"data-type": o,
|
|
378
378
|
"data-id": t,
|
|
379
|
-
remarkPlugins: [
|
|
380
|
-
rehypePlugins: [
|
|
379
|
+
remarkPlugins: [ft],
|
|
380
|
+
rehypePlugins: [vt],
|
|
381
381
|
components: {
|
|
382
|
-
a: ({ children: s, ...
|
|
382
|
+
a: ({ children: s, ...i }) => /* @__PURE__ */ r("a", { target: i.target || n || "_top", ...i, children: s })
|
|
383
383
|
},
|
|
384
384
|
children: e
|
|
385
385
|
}
|
|
@@ -391,8 +391,8 @@ function he({
|
|
|
391
391
|
type: t,
|
|
392
392
|
attachments: n,
|
|
393
393
|
isFirstInGroup: s,
|
|
394
|
-
isLastInGroup:
|
|
395
|
-
isAloneInGroup:
|
|
394
|
+
isLastInGroup: i,
|
|
395
|
+
isAloneInGroup: a,
|
|
396
396
|
dataComponentNames: c,
|
|
397
397
|
classNames: l
|
|
398
398
|
}) {
|
|
@@ -407,14 +407,14 @@ function he({
|
|
|
407
407
|
l == null ? void 0 : l.messageContainer
|
|
408
408
|
),
|
|
409
409
|
children: [
|
|
410
|
-
n && n.length > 0 && /* @__PURE__ */ r("div", { className: "w-full gap-1 flex flex-row flex-wrap items-center justify-start", children: n == null ? void 0 : n.map((u) => /* @__PURE__ */ r(
|
|
410
|
+
n && n.length > 0 && /* @__PURE__ */ r("div", { className: "w-full gap-1 flex flex-row flex-wrap items-center justify-start", children: n == null ? void 0 : n.map((u) => /* @__PURE__ */ r(It, { attachment: u }, u.id)) }),
|
|
411
411
|
h.length > 0 && /* @__PURE__ */ r(
|
|
412
412
|
"div",
|
|
413
413
|
{
|
|
414
414
|
...g((c == null ? void 0 : c.message) ?? "chat/agent_msg/msg"),
|
|
415
415
|
"data-first": s,
|
|
416
|
-
"data-last":
|
|
417
|
-
"data-alone":
|
|
416
|
+
"data-last": i,
|
|
417
|
+
"data-alone": a,
|
|
418
418
|
className: p(
|
|
419
419
|
"transition-all",
|
|
420
420
|
"w-fit py-3 px-4 rounded-3xl bg-secondary text-secondary-foreground",
|
|
@@ -424,22 +424,22 @@ function he({
|
|
|
424
424
|
// No need to add "whitespace-pre-wrap" in the agent or bot message because it is markup and content appear on separate lines as expected
|
|
425
425
|
// Adding "whitespace-pre-wrap" will result in unnecessarily huge line breaks
|
|
426
426
|
// We're using the booleans directly here, not the data attributes, to make any external styling more specific than this
|
|
427
|
-
s && !
|
|
428
|
-
|
|
429
|
-
!s && !
|
|
427
|
+
s && !a && "rounded-bl-md",
|
|
428
|
+
i && !a && "rounded-tl-md",
|
|
429
|
+
!s && !i && !a && "rounded-l-md",
|
|
430
430
|
l == null ? void 0 : l.message
|
|
431
431
|
),
|
|
432
|
-
children: /* @__PURE__ */ r(
|
|
432
|
+
children: /* @__PURE__ */ r(ve, { messageType: t, messageId: o, children: h })
|
|
433
433
|
}
|
|
434
434
|
)
|
|
435
435
|
]
|
|
436
436
|
}
|
|
437
437
|
);
|
|
438
438
|
}
|
|
439
|
-
function
|
|
439
|
+
function $r(e) {
|
|
440
440
|
return /* @__PURE__ */ r("div", { className: "w-full max-w-full overflow-auto shrink-0", children: /* @__PURE__ */ r("pre", { className: "text-xs leading-tight whitespace-pre-wrap break-word", children: JSON.stringify(e, null, 1) }) });
|
|
441
441
|
}
|
|
442
|
-
const
|
|
442
|
+
const xe = G.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
443
443
|
Q.Root,
|
|
444
444
|
{
|
|
445
445
|
ref: t,
|
|
@@ -451,8 +451,8 @@ const ve = G.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
|
451
451
|
...o
|
|
452
452
|
}
|
|
453
453
|
));
|
|
454
|
-
|
|
455
|
-
const
|
|
454
|
+
xe.displayName = Q.Root.displayName;
|
|
455
|
+
const be = G.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
456
456
|
Q.Image,
|
|
457
457
|
{
|
|
458
458
|
ref: t,
|
|
@@ -460,8 +460,8 @@ const xe = G.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
|
460
460
|
...o
|
|
461
461
|
}
|
|
462
462
|
));
|
|
463
|
-
|
|
464
|
-
const
|
|
463
|
+
be.displayName = Q.Image.displayName;
|
|
464
|
+
const ye = G.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
465
465
|
Q.Fallback,
|
|
466
466
|
{
|
|
467
467
|
ref: t,
|
|
@@ -472,18 +472,18 @@ const be = G.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
|
472
472
|
...o
|
|
473
473
|
}
|
|
474
474
|
));
|
|
475
|
-
|
|
475
|
+
ye.displayName = Q.Fallback.displayName;
|
|
476
476
|
function me({
|
|
477
477
|
agent: e,
|
|
478
478
|
...o
|
|
479
479
|
}) {
|
|
480
480
|
var t, n;
|
|
481
|
-
return /* @__PURE__ */ d(
|
|
482
|
-
/* @__PURE__ */ r(
|
|
483
|
-
(e == null ? void 0 : e.name) && /* @__PURE__ */ r(
|
|
481
|
+
return /* @__PURE__ */ d(xe, { ...o, children: [
|
|
482
|
+
/* @__PURE__ */ r(be, { src: (e == null ? void 0 : e.avatar) ?? "", alt: "Agent Icon" }),
|
|
483
|
+
(e == null ? void 0 : e.name) && /* @__PURE__ */ r(ye, { children: (n = (t = e == null ? void 0 : e.name) == null ? void 0 : t.slice(0, 1)) == null ? void 0 : n.toUpperCase() })
|
|
484
484
|
] });
|
|
485
485
|
}
|
|
486
|
-
function
|
|
486
|
+
function Br({ agent: e }) {
|
|
487
487
|
return /* @__PURE__ */ r(S, { children: /* @__PURE__ */ d(
|
|
488
488
|
w,
|
|
489
489
|
{
|
|
@@ -510,7 +510,7 @@ function $r({ agent: e }) {
|
|
|
510
510
|
}
|
|
511
511
|
) });
|
|
512
512
|
}
|
|
513
|
-
const Tt = '@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-6{inset-inline-end:1.5rem}.left-2{left:.5rem}.left-\\[50\\%\\]{left:50%}.right-4{right:1rem}.top-4{top:1rem}.top-6{top:1.5rem}.top-\\[50\\%\\]{top:50%}.isolate{isolation:isolate}.z-10{z-index:10}.z-50{z-index:50}.m-2{margin:.5rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ms-auto{margin-inline-start:auto}.mt-0\\.5{margin-top:.125rem}.mt-auto{margin-top:auto}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.size-0{width:0px;height:0px}.size-10{width:2.5rem;height:2.5rem}.size-12{width:3rem;height:3rem}.size-16{width:4rem;height:4rem}.size-3{width:.75rem;height:.75rem}.size-4{width:1rem;height:1rem}.size-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.size-auto{width:auto;height:auto}.size-fit{width:fit-content;height:fit-content}.size-full{width:100%;height:100%}.h-0{height:0px}.h-10{height:2.5rem}.h-2{height:.5rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-full{height:100%}.h-px{height:1px}.max-h-16{max-height:4rem}.max-h-40{max-height:10rem}.max-h-full{max-height:100%}.min-h-12{min-height:3rem}.w-0{width:0px}.w-1\\/2{width:50%}.w-10{width:2.5rem}.w-2{width:.5rem}.w-2\\/5{width:40%}.w-3\\.5{width:.875rem}.w-3\\/5{width:60%}.w-4{width:1rem}.w-5\\/6{width:83.333333%}.w-60{width:15rem}.w-9{width:2.25rem}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.min-w-80{min-width:20rem}.min-w-\\[8rem\\]{min-width:8rem}.max-w-96{max-width:24rem}.max-w-\\[61\\.8\\%\\]{max-width:61.8%}.max-w-full{max-width:100%}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.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}.pb-2{padding-bottom:.5rem}.pe-2{padding-inline-end:.5rem}.pe-4{padding-inline-end:1rem}.ps-2{padding-inline-start:.5rem}.ps-4{padding-inline-start:1rem}.ps-8{padding-inline-start:2rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.text-center{text-align:center}.text-start{text-align:start}.align-middle{vertical-align:middle}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-\\[1\\.75rem\\]{font-size:1.75rem}.text-\\[10px\\]{font-size:10px}.text-\\[16px\\]{font-size:16px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-none{line-height:1}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-destructive{color:hsl(var(--opencx-destructive))}.text-destructive-foreground{color:hsl(var(--opencx-destructive-foreground))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}.text-foreground{color:hsl(var(--opencx-foreground))}.text-muted-foreground{color:hsl(var(--opencx-muted-foreground))}.text-muted-foreground\\/70{color:hsl(var(--opencx-muted-foreground) / .7)}.text-muted-foreground\\/75{color:hsl(var(--opencx-muted-foreground) / .75)}.text-primary{color:hsl(var(--opencx-primary))}.text-primary-foreground{color:hsl(var(--opencx-primary-foreground))}.text-secondary-foreground{color:hsl(var(--opencx-secondary-foreground))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-35{opacity:.35}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-95{opacity:.95}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-8{outline-width:8px}.outline-background{outline-color:hsl(var(--opencx-background))}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-offset-background{--tw-ring-offset-color: hsl(var(--opencx-background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[height\\]{transition-property:height;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.\\[animation-delay\\:-0\\.15s\\]{animation-delay:-.15s}.\\[animation-delay\\:-0\\.3s\\]{animation-delay:-.3s}.\\[field-sizing\\:content\\;\\],.\\[field-sizing\\:content\\]{field-sizing:content}.\\[word-break\\:break-word\\]{word-break:break-word}.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-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--opencx-ring))}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--opencx-background))}.active\\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\\:hover\\:scale-\\[calc\\(var\\(--scale\\)-0\\.02\\)\\]:hover:active{--tw-scale-x: calc(var(--scale) - .02);--tw-scale-y: calc(var(--scale) - .02);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:active\\:scale-95:active:hover{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\\:opacity-100{opacity:1}.group:hover .group-hover\\:active\\:scale-90:active,.group:active .group-active\\:scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[state\\=checked\\]\\:translate-x-4[data-state=checked]{--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:hsl(var(--opencx-primary))}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--opencx-accent))}.data-\\[state\\=unchecked\\]\\:bg-input[data-state=unchecked]{background-color:hsl(var(--opencx-input))}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.prose-a\\:underline :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-line:underline}.prose-a\\:decoration-primary :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-color:hsl(var(--opencx-primary))}.rtl\\:-scale-100:where([dir=rtl],[dir=rtl] *){--tw-scale-x: -1;--tw-scale-y: -1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\\[\\&_span\\]\\:size-1 span{width:.25rem;height:.25rem}.\\[\\&_span\\]\\:bg-secondary-foreground span{background-color:hsl(var(--opencx-secondary-foreground))}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:size-4 svg{width:1rem;height:1rem}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_svg\\]\\:text-muted-foreground\\/70 svg{color:hsl(var(--opencx-muted-foreground) / .7)}.\\[\\&_svg\\]\\:hover\\:text-primary:hover svg{color:hsl(var(--opencx-primary))}', Br = oe.Provider, Lr = oe.Root, Yr = oe.Trigger, Mt = G.forwardRef(({ className: e, sideOffset: o = 4, ...t }, n) => /* @__PURE__ */ r(
|
|
513
|
+
const Mt = '@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-6{inset-inline-end:1.5rem}.left-2{left:.5rem}.left-\\[50\\%\\]{left:50%}.right-4{right:1rem}.top-4{top:1rem}.top-6{top:1.5rem}.top-\\[50\\%\\]{top:50%}.isolate{isolation:isolate}.z-10{z-index:10}.z-50{z-index:50}.m-2{margin:.5rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ms-auto{margin-inline-start:auto}.mt-0\\.5{margin-top:.125rem}.mt-auto{margin-top:auto}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.size-0{width:0px;height:0px}.size-10{width:2.5rem;height:2.5rem}.size-12{width:3rem;height:3rem}.size-16{width:4rem;height:4rem}.size-3{width:.75rem;height:.75rem}.size-4{width:1rem;height:1rem}.size-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.size-auto{width:auto;height:auto}.size-fit{width:fit-content;height:fit-content}.size-full{width:100%;height:100%}.h-0{height:0px}.h-10{height:2.5rem}.h-2{height:.5rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-full{height:100%}.h-px{height:1px}.max-h-16{max-height:4rem}.max-h-40{max-height:10rem}.max-h-full{max-height:100%}.min-h-12{min-height:3rem}.w-0{width:0px}.w-1\\/2{width:50%}.w-10{width:2.5rem}.w-2{width:.5rem}.w-2\\/5{width:40%}.w-3\\.5{width:.875rem}.w-3\\/5{width:60%}.w-4{width:1rem}.w-5\\/6{width:83.333333%}.w-60{width:15rem}.w-9{width:2.25rem}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.min-w-80{min-width:20rem}.min-w-\\[8rem\\]{min-width:8rem}.max-w-96{max-width:24rem}.max-w-\\[61\\.8\\%\\]{max-width:61.8%}.max-w-full{max-width:100%}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.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}.pb-2{padding-bottom:.5rem}.pe-2{padding-inline-end:.5rem}.pe-4{padding-inline-end:1rem}.ps-2{padding-inline-start:.5rem}.ps-4{padding-inline-start:1rem}.ps-8{padding-inline-start:2rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.text-center{text-align:center}.text-start{text-align:start}.align-middle{vertical-align:middle}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-\\[1\\.75rem\\]{font-size:1.75rem}.text-\\[10px\\]{font-size:10px}.text-\\[16px\\]{font-size:16px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-none{line-height:1}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-destructive{color:hsl(var(--opencx-destructive))}.text-destructive-foreground{color:hsl(var(--opencx-destructive-foreground))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}.text-foreground{color:hsl(var(--opencx-foreground))}.text-muted-foreground{color:hsl(var(--opencx-muted-foreground))}.text-muted-foreground\\/70{color:hsl(var(--opencx-muted-foreground) / .7)}.text-muted-foreground\\/75{color:hsl(var(--opencx-muted-foreground) / .75)}.text-primary{color:hsl(var(--opencx-primary))}.text-primary-foreground{color:hsl(var(--opencx-primary-foreground))}.text-secondary-foreground{color:hsl(var(--opencx-secondary-foreground))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-35{opacity:.35}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-95{opacity:.95}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-8{outline-width:8px}.outline-background{outline-color:hsl(var(--opencx-background))}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-offset-background{--tw-ring-offset-color: hsl(var(--opencx-background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[height\\]{transition-property:height;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.\\[animation-delay\\:-0\\.15s\\]{animation-delay:-.15s}.\\[animation-delay\\:-0\\.3s\\]{animation-delay:-.3s}.\\[field-sizing\\:content\\;\\],.\\[field-sizing\\:content\\]{field-sizing:content}.\\[word-break\\:break-word\\]{word-break:break-word}.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-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--opencx-ring))}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--opencx-background))}.active\\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\\:hover\\:scale-\\[calc\\(var\\(--scale\\)-0\\.02\\)\\]:hover:active{--tw-scale-x: calc(var(--scale) - .02);--tw-scale-y: calc(var(--scale) - .02);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:active\\:scale-95:active:hover{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\\:opacity-100{opacity:1}.group:hover .group-hover\\:active\\:scale-90:active,.group:active .group-active\\:scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[state\\=checked\\]\\:translate-x-4[data-state=checked]{--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:hsl(var(--opencx-primary))}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--opencx-accent))}.data-\\[state\\=unchecked\\]\\:bg-input[data-state=unchecked]{background-color:hsl(var(--opencx-input))}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.prose-a\\:underline :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-line:underline}.prose-a\\:decoration-primary :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-color:hsl(var(--opencx-primary))}.rtl\\:-scale-100:where([dir=rtl],[dir=rtl] *){--tw-scale-x: -1;--tw-scale-y: -1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\\[\\&_span\\]\\:size-1 span{width:.25rem;height:.25rem}.\\[\\&_span\\]\\:bg-secondary-foreground span{background-color:hsl(var(--opencx-secondary-foreground))}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:size-4 svg{width:1rem;height:1rem}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_svg\\]\\:text-muted-foreground\\/70 svg{color:hsl(var(--opencx-muted-foreground) / .7)}.\\[\\&_svg\\]\\:hover\\:text-primary:hover svg{color:hsl(var(--opencx-primary))}', Lr = oe.Provider, Yr = oe.Root, qr = oe.Trigger, Dt = G.forwardRef(({ className: e, sideOffset: o = 4, ...t }, n) => /* @__PURE__ */ r(
|
|
514
514
|
oe.Content,
|
|
515
515
|
{
|
|
516
516
|
ref: n,
|
|
@@ -522,7 +522,7 @@ const Tt = '@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wgh
|
|
|
522
522
|
...t
|
|
523
523
|
}
|
|
524
524
|
));
|
|
525
|
-
|
|
525
|
+
Dt.displayName = oe.Content.displayName;
|
|
526
526
|
function J({
|
|
527
527
|
children: e,
|
|
528
528
|
content: o,
|
|
@@ -530,10 +530,10 @@ function J({
|
|
|
530
530
|
align: n
|
|
531
531
|
}) {
|
|
532
532
|
const { disableTooltips: s } = b();
|
|
533
|
-
return !o || s ? e : /* @__PURE__ */ d(
|
|
534
|
-
/* @__PURE__ */ r(
|
|
533
|
+
return !o || s ? e : /* @__PURE__ */ d(Yr, { children: [
|
|
534
|
+
/* @__PURE__ */ r(qr, { asChild: !0, children: e }),
|
|
535
535
|
/* @__PURE__ */ r(
|
|
536
|
-
|
|
536
|
+
Dt,
|
|
537
537
|
{
|
|
538
538
|
side: t,
|
|
539
539
|
align: n,
|
|
@@ -544,12 +544,12 @@ function J({
|
|
|
544
544
|
)
|
|
545
545
|
] });
|
|
546
546
|
}
|
|
547
|
-
const
|
|
547
|
+
const nt = 450;
|
|
548
548
|
function P() {
|
|
549
|
-
const [e, o] =
|
|
550
|
-
return
|
|
549
|
+
const [e, o] = q.useState(() => (window.top || window).innerWidth < nt);
|
|
550
|
+
return q.useEffect(() => {
|
|
551
551
|
const t = window.top || window, n = () => {
|
|
552
|
-
o(t.innerWidth <
|
|
552
|
+
o(t.innerWidth < nt);
|
|
553
553
|
};
|
|
554
554
|
return n(), t.addEventListener("resize", n), () => {
|
|
555
555
|
t.removeEventListener("resize", n);
|
|
@@ -561,8 +561,8 @@ const se = {
|
|
|
561
561
|
transitionDuration: "1000ms"
|
|
562
562
|
};
|
|
563
563
|
function X() {
|
|
564
|
-
var u, m, k, f, N, T, _, M,
|
|
565
|
-
const { dir: e } = ue(), { isSmallScreen: o } = P(), { theme: t, inline: n } = b(), s = (
|
|
564
|
+
var u, m, k, f, N, T, _, M, A, F, H, j, v, C, z, L, ne, Se, _e, Ie, Te, Me, De, Re, je, Ee, Oe, Pe, Ae, Fe, He, We, $e, Be, Le, Ye, qe, Xe, Ue, Ve, Ge, Ke, Qe, Ze, Je, et, tt;
|
|
565
|
+
const { dir: e } = ue(), { isSmallScreen: o } = P(), { theme: t, inline: n } = b(), s = (Y) => n ? "100%" : Y, i = (Y, de) => o ? `100dv${Y}` : de, a = (Y, de) => s(i(Y, de)), c = {
|
|
566
566
|
zIndex: ((u = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : u.zIndex) ?? 1e7,
|
|
567
567
|
offset: {
|
|
568
568
|
bottom: ((k = (m = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : m.offset) == null ? void 0 : k.bottom) ?? 20,
|
|
@@ -570,58 +570,58 @@ function X() {
|
|
|
570
570
|
left: ((_ = (T = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : T.offset) == null ? void 0 : _.left) ?? (e === "rtl" ? 20 : "initial")
|
|
571
571
|
},
|
|
572
572
|
size: {
|
|
573
|
-
button: ((
|
|
574
|
-
icon: ((
|
|
573
|
+
button: ((A = (M = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : M.size) == null ? void 0 : A.button) ?? 48,
|
|
574
|
+
icon: ((H = (F = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : F.size) == null ? void 0 : H.icon) ?? 24
|
|
575
575
|
}
|
|
576
576
|
}, l = (() => {
|
|
577
|
-
const
|
|
578
|
-
return typeof
|
|
577
|
+
const Y = e === "ltr" ? c.offset.right : c.offset.left;
|
|
578
|
+
return typeof Y != "number" ? 0 : Y;
|
|
579
579
|
})(), h = {
|
|
580
580
|
palette: (t == null ? void 0 : t.palette) ?? "neutral",
|
|
581
581
|
primaryColor: (t == null ? void 0 : t.primaryColor) ?? "hsl(0 0% 9%)",
|
|
582
582
|
widgetTrigger: c,
|
|
583
583
|
widgetContentContainer: {
|
|
584
|
-
borderRadius: o ? "0px" : ((
|
|
584
|
+
borderRadius: o ? "0px" : ((j = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : j.borderRadius) ?? "32px",
|
|
585
585
|
zIndex: ((v = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : v.zIndex) ?? c.zIndex + 1,
|
|
586
586
|
outline: ((C = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : C.outline) ?? "none",
|
|
587
587
|
// was: '1px solid'
|
|
588
588
|
outlineColor: ((z = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : z.outlineColor) ?? "hsl(0 0% 50% / .5)",
|
|
589
|
-
boxShadow: ((
|
|
589
|
+
boxShadow: ((L = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : L.boxShadow) ?? "0 0px 100px 0px rgb(0 0 0 / 0.25)",
|
|
590
590
|
transitionProperty: ((ne = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : ne.transitionProperty) ?? "all",
|
|
591
|
-
transitionTimingFunction: ((
|
|
592
|
-
transitionDuration: ((
|
|
591
|
+
transitionTimingFunction: ((Se = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Se.transitionTimingFunction) ?? se.transitionTimingFunction,
|
|
592
|
+
transitionDuration: ((_e = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : _e.transitionDuration) ?? se.transitionDuration,
|
|
593
593
|
offset: {
|
|
594
|
-
side: o ? 0 : c.offset.bottom + c.size.button + V.y * 2 + (((
|
|
595
|
-
align: o ? 0 : l + (((
|
|
594
|
+
side: o ? 0 : c.offset.bottom + c.size.button + V.y * 2 + (((Te = (Ie = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Ie.offset) == null ? void 0 : Te.side) ?? 10),
|
|
595
|
+
align: o ? 0 : l + (((De = (Me = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Me.offset) == null ? void 0 : De.align) ?? 0)
|
|
596
596
|
}
|
|
597
597
|
},
|
|
598
598
|
screens: {
|
|
599
599
|
welcome: {
|
|
600
|
-
width:
|
|
600
|
+
width: a("w", ((je = (Re = t == null ? void 0 : t.screens) == null ? void 0 : Re.welcome) == null ? void 0 : je.width) ?? "400px"),
|
|
601
601
|
// By setting minHeight to 1px, a nice animation will play from 1px to the dynamic height of the content of the screen
|
|
602
|
-
minHeight:
|
|
602
|
+
minHeight: a(
|
|
603
603
|
"h",
|
|
604
|
-
((
|
|
604
|
+
((Oe = (Ee = t == null ? void 0 : t.screens) == null ? void 0 : Ee.welcome) == null ? void 0 : Oe.minHeight) ?? "1px"
|
|
605
605
|
)
|
|
606
606
|
},
|
|
607
607
|
sessions: {
|
|
608
|
-
width:
|
|
609
|
-
height:
|
|
608
|
+
width: a("w", ((Ae = (Pe = t == null ? void 0 : t.screens) == null ? void 0 : Pe.sessions) == null ? void 0 : Ae.width) ?? "450px"),
|
|
609
|
+
height: a("h", ((He = (Fe = t == null ? void 0 : t.screens) == null ? void 0 : Fe.sessions) == null ? void 0 : He.height) ?? "600px")
|
|
610
610
|
},
|
|
611
611
|
chat: {
|
|
612
|
-
width:
|
|
613
|
-
height:
|
|
612
|
+
width: a("w", (($e = (We = t == null ? void 0 : t.screens) == null ? void 0 : We.chat) == null ? void 0 : $e.width) ?? "525px"),
|
|
613
|
+
height: a("h", ((Le = (Be = t == null ? void 0 : t.screens) == null ? void 0 : Be.chat) == null ? void 0 : Le.height) ?? "700px"),
|
|
614
614
|
withCanvas: {
|
|
615
|
-
width:
|
|
615
|
+
width: a(
|
|
616
616
|
"w",
|
|
617
|
-
((
|
|
617
|
+
((Xe = (qe = (Ye = t == null ? void 0 : t.screens) == null ? void 0 : Ye.chat) == null ? void 0 : qe.withCanvas) == null ? void 0 : Xe.width) ?? "min(1050px, 100vw)"
|
|
618
618
|
),
|
|
619
|
-
height:
|
|
619
|
+
height: a(
|
|
620
620
|
"h",
|
|
621
|
-
((
|
|
621
|
+
((Ge = (Ve = (Ue = t == null ? void 0 : t.screens) == null ? void 0 : Ue.chat) == null ? void 0 : Ve.withCanvas) == null ? void 0 : Ge.height) ?? "min(800px, 100vh)"
|
|
622
622
|
),
|
|
623
|
-
transitionTimingFunction: ((
|
|
624
|
-
transitionDuration: ((
|
|
623
|
+
transitionTimingFunction: ((Ze = (Qe = (Ke = t == null ? void 0 : t.screens) == null ? void 0 : Ke.chat) == null ? void 0 : Qe.withCanvas) == null ? void 0 : Ze.transitionTimingFunction) ?? se.transitionTimingFunction,
|
|
624
|
+
transitionDuration: ((tt = (et = (Je = t == null ? void 0 : t.screens) == null ? void 0 : Je.chat) == null ? void 0 : et.withCanvas) == null ? void 0 : tt.transitionDuration) ?? se.transitionDuration
|
|
625
625
|
}
|
|
626
626
|
}
|
|
627
627
|
}
|
|
@@ -629,7 +629,7 @@ function X() {
|
|
|
629
629
|
// Subtract the offset.bottom twice so that it adds a bit of padding to the top
|
|
630
630
|
// Subtract the distance between the trigger and the widget content container
|
|
631
631
|
// Subtract the invisible padding of the trigger (for the wobble effect)
|
|
632
|
-
maxHeight:
|
|
632
|
+
maxHeight: a(
|
|
633
633
|
"h",
|
|
634
634
|
`calc(
|
|
635
635
|
100vh
|
|
@@ -639,14 +639,14 @@ function X() {
|
|
|
639
639
|
)`
|
|
640
640
|
),
|
|
641
641
|
// Subtract the offset.right twice so that it adds a bit of padding to the left
|
|
642
|
-
maxWidth:
|
|
642
|
+
maxWidth: a(
|
|
643
643
|
"w",
|
|
644
644
|
`calc(
|
|
645
645
|
100vw
|
|
646
646
|
- ${l * 2}px
|
|
647
647
|
)`
|
|
648
648
|
),
|
|
649
|
-
minHeight:
|
|
649
|
+
minHeight: a(
|
|
650
650
|
"h",
|
|
651
651
|
`min(
|
|
652
652
|
${h.screens.welcome.minHeight},
|
|
@@ -654,7 +654,7 @@ function X() {
|
|
|
654
654
|
${h.screens.chat.height}
|
|
655
655
|
)`
|
|
656
656
|
),
|
|
657
|
-
minWidth:
|
|
657
|
+
minWidth: a(
|
|
658
658
|
"w",
|
|
659
659
|
`min(
|
|
660
660
|
${h.screens.welcome.width},
|
|
@@ -666,17 +666,17 @@ function X() {
|
|
|
666
666
|
return {
|
|
667
667
|
theme: h,
|
|
668
668
|
computed: x,
|
|
669
|
-
cssVars:
|
|
669
|
+
cssVars: Xr({
|
|
670
670
|
palette: h.palette,
|
|
671
671
|
primary: h.primaryColor
|
|
672
672
|
})
|
|
673
673
|
};
|
|
674
674
|
}
|
|
675
|
-
function
|
|
675
|
+
function Xr({
|
|
676
676
|
palette: e,
|
|
677
677
|
primary: o
|
|
678
678
|
}) {
|
|
679
|
-
const t =
|
|
679
|
+
const t = Rt(e), n = ot(o).toHsl(), s = ot(o).isLight() ? t[950] : t[50];
|
|
680
680
|
return {
|
|
681
681
|
"--opencx-primary": `${n.h} ${n.s * 100}% ${n.l * 100}%`,
|
|
682
682
|
"--opencx-primary-foreground": s,
|
|
@@ -695,7 +695,7 @@ function qr({
|
|
|
695
695
|
"--opencx-ring": "var(--opencx-foreground)"
|
|
696
696
|
};
|
|
697
697
|
}
|
|
698
|
-
function
|
|
698
|
+
function Rt(e) {
|
|
699
699
|
const o = {
|
|
700
700
|
50: "0 0% 98%",
|
|
701
701
|
100: "0 0% 96.1%",
|
|
@@ -755,11 +755,11 @@ function Dt(e) {
|
|
|
755
755
|
case "slate":
|
|
756
756
|
return s;
|
|
757
757
|
default:
|
|
758
|
-
return D(e,
|
|
758
|
+
return D(e, Rt.name), o;
|
|
759
759
|
}
|
|
760
760
|
}
|
|
761
761
|
function jt() {
|
|
762
|
-
const { contentIframeRef: e } =
|
|
762
|
+
const { contentIframeRef: e } = R(), { inline: o } = b();
|
|
763
763
|
return {
|
|
764
764
|
setWidth: (t) => {
|
|
765
765
|
var n;
|
|
@@ -777,7 +777,7 @@ function jt() {
|
|
|
777
777
|
}
|
|
778
778
|
};
|
|
779
779
|
}
|
|
780
|
-
function
|
|
780
|
+
function ke({
|
|
781
781
|
width: e,
|
|
782
782
|
height: o
|
|
783
783
|
}) {
|
|
@@ -786,7 +786,7 @@ function ye({
|
|
|
786
786
|
e && n(e), o && s(o);
|
|
787
787
|
}, [t, o, e, n, s]);
|
|
788
788
|
}
|
|
789
|
-
const
|
|
789
|
+
const st = Jt;
|
|
790
790
|
function ee({
|
|
791
791
|
name: e,
|
|
792
792
|
className: o
|
|
@@ -794,63 +794,63 @@ function ee({
|
|
|
794
794
|
const t = (() => {
|
|
795
795
|
switch (e) {
|
|
796
796
|
case "Check":
|
|
797
|
-
return
|
|
797
|
+
return hr;
|
|
798
798
|
case "CheckCheck":
|
|
799
|
-
return
|
|
799
|
+
return pr;
|
|
800
800
|
case "CircleCheck":
|
|
801
|
-
return
|
|
801
|
+
return wt;
|
|
802
802
|
case "CircleCheckBig":
|
|
803
|
-
return
|
|
803
|
+
return dr;
|
|
804
804
|
case "CircleX":
|
|
805
|
-
return
|
|
805
|
+
return cr;
|
|
806
806
|
case "Expand":
|
|
807
|
-
return
|
|
807
|
+
return lr;
|
|
808
808
|
case "Maximize":
|
|
809
|
-
return
|
|
809
|
+
return ar;
|
|
810
810
|
case "Maximize2":
|
|
811
|
-
return
|
|
811
|
+
return ir;
|
|
812
812
|
case "Minimize":
|
|
813
|
-
return
|
|
813
|
+
return sr;
|
|
814
814
|
case "Minimize2":
|
|
815
|
-
return
|
|
815
|
+
return nr;
|
|
816
816
|
case "Shrink":
|
|
817
|
-
return
|
|
817
|
+
return or;
|
|
818
818
|
case "SquareCheck":
|
|
819
|
-
return
|
|
819
|
+
return rr;
|
|
820
820
|
case "SquareCheckBig":
|
|
821
|
-
return
|
|
821
|
+
return tr;
|
|
822
822
|
case "SquareX":
|
|
823
|
-
return
|
|
823
|
+
return er;
|
|
824
824
|
case "X":
|
|
825
825
|
return fe;
|
|
826
826
|
case void 0:
|
|
827
|
-
return
|
|
827
|
+
return st;
|
|
828
828
|
default:
|
|
829
|
-
return D(e, ee.name),
|
|
829
|
+
return D(e, ee.name), st;
|
|
830
830
|
}
|
|
831
831
|
})();
|
|
832
832
|
return /* @__PURE__ */ r(t, { className: p("size-4", o) });
|
|
833
833
|
}
|
|
834
|
-
function
|
|
835
|
-
const { widgetCtx: { org: e } } =
|
|
834
|
+
function Ce() {
|
|
835
|
+
const { widgetCtx: { org: e } } = R(), {
|
|
836
836
|
routerState: { screen: o }
|
|
837
837
|
} = $(), { textContent: t } = b();
|
|
838
838
|
return (() => {
|
|
839
|
-
var s,
|
|
839
|
+
var s, i;
|
|
840
840
|
switch (o) {
|
|
841
841
|
case "chat":
|
|
842
842
|
return (s = t == null ? void 0 : t.chatScreen) == null ? void 0 : s.headerTitle;
|
|
843
843
|
case "sessions":
|
|
844
|
-
return (
|
|
844
|
+
return (i = t == null ? void 0 : t.sessionsScreen) == null ? void 0 : i.headerTitle;
|
|
845
845
|
case "welcome":
|
|
846
846
|
return;
|
|
847
847
|
default:
|
|
848
|
-
D(o,
|
|
848
|
+
D(o, Ce.name);
|
|
849
849
|
return;
|
|
850
850
|
}
|
|
851
851
|
})() ?? e.name ?? "Chat";
|
|
852
852
|
}
|
|
853
|
-
function
|
|
853
|
+
function Ur(e) {
|
|
854
854
|
switch (e) {
|
|
855
855
|
case "chat":
|
|
856
856
|
return g("chat/header");
|
|
@@ -859,11 +859,11 @@ function Xr(e) {
|
|
|
859
859
|
case "welcome":
|
|
860
860
|
return;
|
|
861
861
|
default:
|
|
862
|
-
D(e,
|
|
862
|
+
D(e, Ce.name);
|
|
863
863
|
return;
|
|
864
864
|
}
|
|
865
865
|
}
|
|
866
|
-
function
|
|
866
|
+
function Vr() {
|
|
867
867
|
const { router: e } = b(), {
|
|
868
868
|
routerState: { screen: o },
|
|
869
869
|
toSessionsScreen: t
|
|
@@ -875,11 +875,11 @@ function Ur() {
|
|
|
875
875
|
size: "fit",
|
|
876
876
|
className: "rounded-full",
|
|
877
877
|
onClick: t,
|
|
878
|
-
children: /* @__PURE__ */ r(
|
|
878
|
+
children: /* @__PURE__ */ r(mr, { className: "size-4 rtl:-scale-100" })
|
|
879
879
|
}
|
|
880
880
|
);
|
|
881
881
|
}
|
|
882
|
-
function
|
|
882
|
+
function Gr({
|
|
883
883
|
button: e
|
|
884
884
|
}) {
|
|
885
885
|
const { setIsOpen: o } = K(), { isSmallScreen: t } = P();
|
|
@@ -902,30 +902,30 @@ function ge({
|
|
|
902
902
|
}) {
|
|
903
903
|
const [o, t] = I(!1), {
|
|
904
904
|
routerState: { screen: n }
|
|
905
|
-
} = $(), { isSmallScreen: s } = P(), { theme:
|
|
905
|
+
} = $(), { isSmallScreen: s } = P(), { theme: i } = X(), { setWidth: a, setHeight: c } = jt();
|
|
906
906
|
if (n !== "chat" && n !== "sessions") return null;
|
|
907
907
|
const l = (() => {
|
|
908
908
|
switch (n) {
|
|
909
909
|
case "chat":
|
|
910
|
-
return
|
|
910
|
+
return i.screens.chat.height;
|
|
911
911
|
case "sessions":
|
|
912
|
-
return
|
|
912
|
+
return i.screens.sessions.height;
|
|
913
913
|
default:
|
|
914
|
-
return D(n, ge.name),
|
|
914
|
+
return D(n, ge.name), i.screens.chat.height;
|
|
915
915
|
}
|
|
916
916
|
})(), h = (() => {
|
|
917
917
|
switch (n) {
|
|
918
918
|
case "chat":
|
|
919
|
-
return
|
|
919
|
+
return i.screens.chat.width;
|
|
920
920
|
case "sessions":
|
|
921
|
-
return
|
|
921
|
+
return i.screens.sessions.width;
|
|
922
922
|
default:
|
|
923
|
-
return D(n, ge.name),
|
|
923
|
+
return D(n, ge.name), i.screens.chat.width;
|
|
924
924
|
}
|
|
925
925
|
})(), x = () => {
|
|
926
926
|
t((u) => {
|
|
927
927
|
const m = !u;
|
|
928
|
-
return c(m ? "100vh" : l),
|
|
928
|
+
return c(m ? "100vh" : l), a(m ? `max(40vw, ${h})` : h), m;
|
|
929
929
|
});
|
|
930
930
|
};
|
|
931
931
|
return s && e.hideOnSmallScreen || !s && e.hideOnLargeScreen ? null : /* @__PURE__ */ r(
|
|
@@ -944,11 +944,11 @@ function ge({
|
|
|
944
944
|
}
|
|
945
945
|
);
|
|
946
946
|
}
|
|
947
|
-
function
|
|
947
|
+
function Et({
|
|
948
948
|
button: e
|
|
949
949
|
}) {
|
|
950
950
|
var N, T;
|
|
951
|
-
const { close: o } = ce(), { widgetCtx: t } =
|
|
951
|
+
const { close: o } = ce(), { widgetCtx: t } = R(), { setIsOpen: n } = K(), { resolveSession: s, sessionState: i } = B(), { isSmallScreen: a } = P(), c = !i.session, l = ((N = i.session) == null ? void 0 : N.isOpened) === !1, h = e.onResolved || "stay-in-chat", x = e.behaviorBeforeSessionCreation || "disabled", u = e.behaviorIfSessionIsResolved || "disabled", m = !!(i.isResolvingSession || c && x === "disabled" || l && u === "disabled"), k = async () => {
|
|
952
952
|
const { success: _, error: M } = await s();
|
|
953
953
|
if (o(), !_) return console.error(M);
|
|
954
954
|
switch (h) {
|
|
@@ -964,7 +964,7 @@ function Rt({
|
|
|
964
964
|
n(!1), t.resetChat();
|
|
965
965
|
break;
|
|
966
966
|
default:
|
|
967
|
-
D(h,
|
|
967
|
+
D(h, Et.name);
|
|
968
968
|
break;
|
|
969
969
|
}
|
|
970
970
|
}, f = () => {
|
|
@@ -1003,8 +1003,8 @@ function Rt({
|
|
|
1003
1003
|
);
|
|
1004
1004
|
}
|
|
1005
1005
|
};
|
|
1006
|
-
return
|
|
1007
|
-
|
|
1006
|
+
return a && e.hideOnSmallScreen || !a && e.hideOnLargeScreen ? null : ((T = e.confirmation) == null ? void 0 : T.type) === "modal" && !l && !c ? /* @__PURE__ */ r(
|
|
1007
|
+
_t,
|
|
1008
1008
|
{
|
|
1009
1009
|
trigger: /* @__PURE__ */ r(
|
|
1010
1010
|
y,
|
|
@@ -1016,16 +1016,16 @@ function Rt({
|
|
|
1016
1016
|
children: /* @__PURE__ */ r(ee, { name: e.icon })
|
|
1017
1017
|
}
|
|
1018
1018
|
),
|
|
1019
|
-
children: /* @__PURE__ */ d(
|
|
1020
|
-
/* @__PURE__ */ r(
|
|
1021
|
-
/* @__PURE__ */ r(
|
|
1022
|
-
/* @__PURE__ */ d(
|
|
1019
|
+
children: /* @__PURE__ */ d(yt, { children: [
|
|
1020
|
+
/* @__PURE__ */ r(kt, { children: /* @__PURE__ */ r(Nt, { children: e.confirmation.title || "Close conversation" }) }),
|
|
1021
|
+
/* @__PURE__ */ r(Ct, { children: /* @__PURE__ */ r(St, { children: e.confirmation.description || "Are you sure you want to close this conversation?" }) }),
|
|
1022
|
+
/* @__PURE__ */ d(zt, { children: [
|
|
1023
1023
|
/* @__PURE__ */ r(
|
|
1024
1024
|
y,
|
|
1025
1025
|
{
|
|
1026
1026
|
variant: "secondary",
|
|
1027
1027
|
onClick: o,
|
|
1028
|
-
disabled:
|
|
1028
|
+
disabled: i.isResolvingSession,
|
|
1029
1029
|
children: e.confirmation.cancelButtonText || "No"
|
|
1030
1030
|
}
|
|
1031
1031
|
),
|
|
@@ -1034,7 +1034,7 @@ function Rt({
|
|
|
1034
1034
|
{
|
|
1035
1035
|
variant: "destructive",
|
|
1036
1036
|
onClick: k,
|
|
1037
|
-
disabled:
|
|
1037
|
+
disabled: i.isResolvingSession,
|
|
1038
1038
|
children: e.confirmation.confirmButtonText || "Yes"
|
|
1039
1039
|
}
|
|
1040
1040
|
)
|
|
@@ -1056,25 +1056,25 @@ function Rt({
|
|
|
1056
1056
|
function we({ button: e }) {
|
|
1057
1057
|
switch (e.functionality) {
|
|
1058
1058
|
case "close-widget":
|
|
1059
|
-
return /* @__PURE__ */ r(
|
|
1059
|
+
return /* @__PURE__ */ r(Gr, { button: e });
|
|
1060
1060
|
case "expand-shrink":
|
|
1061
1061
|
return /* @__PURE__ */ r(ge, { button: e });
|
|
1062
1062
|
case "resolve-session":
|
|
1063
|
-
return /* @__PURE__ */ r(
|
|
1063
|
+
return /* @__PURE__ */ r(Et, { button: e });
|
|
1064
1064
|
default:
|
|
1065
1065
|
return D(e, we.name), null;
|
|
1066
1066
|
}
|
|
1067
1067
|
}
|
|
1068
|
-
const
|
|
1068
|
+
const Kr = {
|
|
1069
1069
|
functionality: "close-widget",
|
|
1070
1070
|
hideOnLargeScreen: !0,
|
|
1071
1071
|
icon: "X"
|
|
1072
1072
|
};
|
|
1073
|
-
function
|
|
1073
|
+
function Qr() {
|
|
1074
1074
|
const {
|
|
1075
1075
|
routerState: { screen: e }
|
|
1076
1076
|
} = $(), { headerButtons: o } = b(), t = e === "chat" ? o == null ? void 0 : o.chatScreen : e === "sessions" ? o == null ? void 0 : o.sessionsScreen : [];
|
|
1077
|
-
return !t || t.length === 0 ? /* @__PURE__ */ r(we, { button:
|
|
1077
|
+
return !t || t.length === 0 ? /* @__PURE__ */ r(we, { button: Kr }) : /* @__PURE__ */ r(te, { children: t.map((n) => /* @__PURE__ */ r(
|
|
1078
1078
|
we,
|
|
1079
1079
|
{
|
|
1080
1080
|
button: n
|
|
@@ -1082,12 +1082,12 @@ function Kr() {
|
|
|
1082
1082
|
`${n.functionality}-${n.icon}`
|
|
1083
1083
|
)) });
|
|
1084
1084
|
}
|
|
1085
|
-
function
|
|
1085
|
+
function Ot() {
|
|
1086
1086
|
const {
|
|
1087
1087
|
routerState: { screen: e }
|
|
1088
|
-
} = $(), o =
|
|
1088
|
+
} = $(), o = Ur(e), t = Ce();
|
|
1089
1089
|
return /* @__PURE__ */ r("header", { ...o, className: "py-2 px-4 shrink-0", children: /* @__PURE__ */ d("div", { className: "flex items-center gap-2", children: [
|
|
1090
|
-
/* @__PURE__ */ r(
|
|
1090
|
+
/* @__PURE__ */ r(Vr, {}),
|
|
1091
1091
|
/* @__PURE__ */ r(
|
|
1092
1092
|
"div",
|
|
1093
1093
|
{
|
|
@@ -1098,42 +1098,42 @@ function Et() {
|
|
|
1098
1098
|
children: /* @__PURE__ */ r("h2", { className: "font-semibold", children: t })
|
|
1099
1099
|
}
|
|
1100
1100
|
),
|
|
1101
|
-
/* @__PURE__ */ r(
|
|
1101
|
+
/* @__PURE__ */ r(Qr, {})
|
|
1102
1102
|
] }) });
|
|
1103
1103
|
}
|
|
1104
1104
|
function Pt({ className: e }) {
|
|
1105
|
-
return /* @__PURE__ */ r(
|
|
1105
|
+
return /* @__PURE__ */ r(gr, { className: p("size-4 animate-spin", e) });
|
|
1106
1106
|
}
|
|
1107
|
-
function
|
|
1107
|
+
function Zr() {
|
|
1108
1108
|
const {
|
|
1109
1109
|
messagesState: { isInitialFetchLoading: e }
|
|
1110
|
-
} =
|
|
1110
|
+
} = O(), { isSmallScreen: o } = P(), { activeMode: t, Component: n } = ht();
|
|
1111
1111
|
return {
|
|
1112
1112
|
isCanvasOpen: !e && !o && !!t && !!n
|
|
1113
1113
|
};
|
|
1114
1114
|
}
|
|
1115
|
-
function
|
|
1116
|
-
const { activeMode: e, Component: o } =
|
|
1115
|
+
function Jr() {
|
|
1116
|
+
const { activeMode: e, Component: o } = ht(), { sendMessage: t } = O(), { createStateCheckpoint: n } = B(), [s, i] = I(!1), a = async (c) => {
|
|
1117
1117
|
try {
|
|
1118
|
-
|
|
1118
|
+
i(!0), await t(c);
|
|
1119
1119
|
} catch (l) {
|
|
1120
1120
|
console.error(l);
|
|
1121
1121
|
} finally {
|
|
1122
|
-
|
|
1122
|
+
i(!1);
|
|
1123
1123
|
}
|
|
1124
1124
|
};
|
|
1125
1125
|
return !e || !o ? null : /* @__PURE__ */ r(
|
|
1126
1126
|
o,
|
|
1127
1127
|
{
|
|
1128
|
-
react:
|
|
1128
|
+
react: q,
|
|
1129
1129
|
mode: e,
|
|
1130
1130
|
createStateCheckpoint: n,
|
|
1131
|
-
sendMessage:
|
|
1131
|
+
sendMessage: a,
|
|
1132
1132
|
isSendingMessage: s
|
|
1133
1133
|
}
|
|
1134
1134
|
);
|
|
1135
1135
|
}
|
|
1136
|
-
const
|
|
1136
|
+
const E = q.forwardRef(
|
|
1137
1137
|
(e, o) => {
|
|
1138
1138
|
var t, n, s;
|
|
1139
1139
|
return /* @__PURE__ */ r(
|
|
@@ -1151,8 +1151,8 @@ const W = Y.forwardRef(
|
|
|
1151
1151
|
);
|
|
1152
1152
|
}
|
|
1153
1153
|
);
|
|
1154
|
-
|
|
1155
|
-
const
|
|
1154
|
+
E.displayName = "MotionDiv__VerticalReveal";
|
|
1155
|
+
const eo = [
|
|
1156
1156
|
{
|
|
1157
1157
|
label: "Terrible",
|
|
1158
1158
|
value: 1,
|
|
@@ -1179,23 +1179,23 @@ const Jr = [
|
|
|
1179
1179
|
emoji: "😍"
|
|
1180
1180
|
}
|
|
1181
1181
|
];
|
|
1182
|
-
function
|
|
1182
|
+
function to() {
|
|
1183
1183
|
const { isSmallScreen: e } = P(), {
|
|
1184
1184
|
submitCsat: o,
|
|
1185
1185
|
isCsatRequested: t,
|
|
1186
1186
|
isCsatSubmitted: n,
|
|
1187
1187
|
submittedScore: s,
|
|
1188
|
-
submittedFeedback:
|
|
1189
|
-
} =
|
|
1188
|
+
submittedFeedback: i
|
|
1189
|
+
} = mt(), [a, c] = I(null), [l, h] = I(null), x = (m) => {
|
|
1190
1190
|
c((k) => k === m ? null : m);
|
|
1191
1191
|
}, u = () => {
|
|
1192
|
-
|
|
1193
|
-
score:
|
|
1192
|
+
a && o({
|
|
1193
|
+
score: a,
|
|
1194
1194
|
feedback: l || void 0
|
|
1195
1195
|
});
|
|
1196
1196
|
};
|
|
1197
1197
|
return !t && !n ? null : /* @__PURE__ */ d("div", { className: "w-1/2 min-w-80 max-w-96 mx-auto overflow-hidden", children: [
|
|
1198
|
-
/* @__PURE__ */ r(S, { mode: "wait", children: t && !
|
|
1198
|
+
/* @__PURE__ */ r(S, { mode: "wait", children: t && !a ? /* @__PURE__ */ r(E, { children: /* @__PURE__ */ r("p", { className: "text-sm text-muted-foreground text-center pt-2", children: "How was your conversation?" }) }, "csat-requested-title") : n ? /* @__PURE__ */ r(E, { children: /* @__PURE__ */ r("p", { className: "text-sm text-muted-foreground text-center pt-2", children: "You rated the conversation as" }) }, "csat-submitted-title") : null }),
|
|
1199
1199
|
/* @__PURE__ */ r(
|
|
1200
1200
|
"div",
|
|
1201
1201
|
{
|
|
@@ -1204,18 +1204,18 @@ function eo() {
|
|
|
1204
1204
|
"transition-all",
|
|
1205
1205
|
n && "gap-0 justify-center"
|
|
1206
1206
|
),
|
|
1207
|
-
children:
|
|
1207
|
+
children: eo.map((m) => /* @__PURE__ */ r(
|
|
1208
1208
|
y,
|
|
1209
1209
|
{
|
|
1210
|
-
variant: m.value ===
|
|
1210
|
+
variant: m.value === a ? "secondary" : "ghost",
|
|
1211
1211
|
size: "selfless",
|
|
1212
1212
|
className: p(
|
|
1213
1213
|
"transition-all overflow-hidden",
|
|
1214
1214
|
"text-2xl size-8 rounded-full",
|
|
1215
1215
|
"opacity-35",
|
|
1216
1216
|
"hover:opacity-100",
|
|
1217
|
-
!
|
|
1218
|
-
m.value ===
|
|
1217
|
+
!a && "opacity-100",
|
|
1218
|
+
m.value === a && "opacity-100",
|
|
1219
1219
|
n && m.value !== s && "opacity-0 size-0",
|
|
1220
1220
|
n && m.value === s && "opacity-100 size-fit text-4xl"
|
|
1221
1221
|
),
|
|
@@ -1226,7 +1226,7 @@ function eo() {
|
|
|
1226
1226
|
))
|
|
1227
1227
|
}
|
|
1228
1228
|
),
|
|
1229
|
-
/* @__PURE__ */ r(S, { mode: "wait", children: (
|
|
1229
|
+
/* @__PURE__ */ r(S, { mode: "wait", children: (a || s) && /* @__PURE__ */ r(E, { children: /* @__PURE__ */ d("div", { className: "pb-2 px-2 flex items-end", children: [
|
|
1230
1230
|
/* @__PURE__ */ r(
|
|
1231
1231
|
"textarea",
|
|
1232
1232
|
{
|
|
@@ -1241,7 +1241,7 @@ function eo() {
|
|
|
1241
1241
|
e ? "text-[16px]" : "text-sm",
|
|
1242
1242
|
n && "text-center"
|
|
1243
1243
|
),
|
|
1244
|
-
value: n ?
|
|
1244
|
+
value: n ? i || "" : l || "",
|
|
1245
1245
|
onChange: t ? (m) => h(m.target.value) : void 0,
|
|
1246
1246
|
readOnly: n,
|
|
1247
1247
|
placeholder: t ? "Tell us more... (optional)" : void 0
|
|
@@ -1252,13 +1252,13 @@ function eo() {
|
|
|
1252
1252
|
{
|
|
1253
1253
|
size: "fit",
|
|
1254
1254
|
onClick: u,
|
|
1255
|
-
disabled: !
|
|
1255
|
+
disabled: !a,
|
|
1256
1256
|
className: p(
|
|
1257
1257
|
"transition-all overflow-hidden",
|
|
1258
1258
|
"rounded-full size-8 flex items-center justify-center p-0",
|
|
1259
1259
|
n && "opacity-0 size-0"
|
|
1260
1260
|
),
|
|
1261
|
-
children: /* @__PURE__ */ r(
|
|
1261
|
+
children: /* @__PURE__ */ r(ut, { className: "size-4" })
|
|
1262
1262
|
}
|
|
1263
1263
|
)
|
|
1264
1264
|
] }) }, "feedback-box") }),
|
|
@@ -1267,24 +1267,24 @@ function eo() {
|
|
|
1267
1267
|
}
|
|
1268
1268
|
function U() {
|
|
1269
1269
|
const { dir: e } = ue(), o = b();
|
|
1270
|
-
return
|
|
1271
|
-
const t =
|
|
1270
|
+
return pt(() => {
|
|
1271
|
+
const t = Ir(o.language) ? o.language : "en";
|
|
1272
1272
|
return {
|
|
1273
|
-
t: (n) =>
|
|
1273
|
+
t: (n) => Tr(n, t, o.translationOverrides),
|
|
1274
1274
|
language: t,
|
|
1275
1275
|
dir: t === "ar" ? "rtl" : "ltr",
|
|
1276
1276
|
hostDocumentDir: e
|
|
1277
1277
|
};
|
|
1278
1278
|
}, [o.language, e]);
|
|
1279
1279
|
}
|
|
1280
|
-
function
|
|
1280
|
+
function ze({
|
|
1281
1281
|
suggestion: e,
|
|
1282
1282
|
className: o,
|
|
1283
1283
|
...t
|
|
1284
1284
|
}) {
|
|
1285
|
-
const { sendMessage: n } =
|
|
1286
|
-
const
|
|
1287
|
-
|
|
1285
|
+
const { sendMessage: n } = O(), s = () => {
|
|
1286
|
+
const i = e.trim();
|
|
1287
|
+
i && n({ content: i });
|
|
1288
1288
|
};
|
|
1289
1289
|
return /* @__PURE__ */ r(
|
|
1290
1290
|
y,
|
|
@@ -1298,7 +1298,7 @@ function Ce({
|
|
|
1298
1298
|
}
|
|
1299
1299
|
);
|
|
1300
1300
|
}
|
|
1301
|
-
function
|
|
1301
|
+
function ro() {
|
|
1302
1302
|
const { t: e } = U(), o = [e("i_need_more_help"), e("this_was_helpful")];
|
|
1303
1303
|
return /* @__PURE__ */ r(
|
|
1304
1304
|
"div",
|
|
@@ -1306,7 +1306,7 @@ function to() {
|
|
|
1306
1306
|
...g("chat/might_solve_user_issue_suggested_replies_container"),
|
|
1307
1307
|
className: "flex items-center gap-2 p-2 pb-0 flex-wrap",
|
|
1308
1308
|
children: o.map((t) => /* @__PURE__ */ r(
|
|
1309
|
-
|
|
1309
|
+
ze,
|
|
1310
1310
|
{
|
|
1311
1311
|
suggestion: t,
|
|
1312
1312
|
className: "flex-1"
|
|
@@ -1316,24 +1316,28 @@ function to() {
|
|
|
1316
1316
|
}
|
|
1317
1317
|
);
|
|
1318
1318
|
}
|
|
1319
|
-
function
|
|
1319
|
+
function it() {
|
|
1320
|
+
const { sessionState: e } = B(), { chatFooterItems: o } = b(), t = !!e.session && !e.session.isOpened, n = !t;
|
|
1321
|
+
return /* @__PURE__ */ r(S, { mode: "wait", children: o == null ? void 0 : o.map((s, i) => s.showWhenSessionIsOpen === !1 && n || s.showWhenSessionIsResolved === !1 && t ? null : /* @__PURE__ */ r(E, { children: /* @__PURE__ */ r("div", { className: "pb-2 text-center text-xs", children: /* @__PURE__ */ r(ve, { children: s.message }) }) }, `${s.message}-${i}`)) });
|
|
1322
|
+
}
|
|
1323
|
+
function oo({
|
|
1320
1324
|
file: { status: e, file: o, error: t },
|
|
1321
1325
|
onCancel: n
|
|
1322
1326
|
}) {
|
|
1323
|
-
const [s,
|
|
1327
|
+
const [s, i] = I(
|
|
1324
1328
|
null
|
|
1325
1329
|
);
|
|
1326
1330
|
re(() => {
|
|
1327
1331
|
if (!o.type.startsWith("image/")) return;
|
|
1328
1332
|
const l = new FileReader();
|
|
1329
|
-
return l.onload = () =>
|
|
1333
|
+
return l.onload = () => i(l.result), l.onerror = () => console.error("Error reading file"), l.readAsDataURL(o), () => l.abort();
|
|
1330
1334
|
}, [o]);
|
|
1331
|
-
const
|
|
1335
|
+
const a = () => {
|
|
1332
1336
|
switch (e) {
|
|
1333
1337
|
case "uploading":
|
|
1334
|
-
return /* @__PURE__ */ r(
|
|
1338
|
+
return /* @__PURE__ */ r(xr, { className: "size-4 animate-spin" });
|
|
1335
1339
|
case "error":
|
|
1336
|
-
return /* @__PURE__ */ r(
|
|
1340
|
+
return /* @__PURE__ */ r(vr, { className: "size-4 text-destructive" });
|
|
1337
1341
|
default:
|
|
1338
1342
|
return null;
|
|
1339
1343
|
}
|
|
@@ -1346,7 +1350,7 @@ function ro({
|
|
|
1346
1350
|
className: "object-cover bg-secondary size-full",
|
|
1347
1351
|
alt: o.name
|
|
1348
1352
|
}
|
|
1349
|
-
) : l === "audio" ? /* @__PURE__ */ r(
|
|
1353
|
+
) : l === "audio" ? /* @__PURE__ */ r(br, {}) : l === "video" ? /* @__PURE__ */ r(yr, {}) : /* @__PURE__ */ r(kr, {});
|
|
1350
1354
|
};
|
|
1351
1355
|
return /* @__PURE__ */ r(
|
|
1352
1356
|
J,
|
|
@@ -1366,7 +1370,7 @@ function ro({
|
|
|
1366
1370
|
"flex items-center justify-center shrink-0"
|
|
1367
1371
|
),
|
|
1368
1372
|
children: [
|
|
1369
|
-
/* @__PURE__ */ r("div", { className: "absolute inset-0 flex items-center justify-center", children:
|
|
1373
|
+
/* @__PURE__ */ r("div", { className: "absolute inset-0 flex items-center justify-center", children: a() }),
|
|
1370
1374
|
/* @__PURE__ */ r(
|
|
1371
1375
|
"button",
|
|
1372
1376
|
{
|
|
@@ -1387,21 +1391,21 @@ function ro({
|
|
|
1387
1391
|
}
|
|
1388
1392
|
);
|
|
1389
1393
|
}
|
|
1390
|
-
function
|
|
1391
|
-
var
|
|
1392
|
-
const { isSmallScreen: e } = P(), o = le(null), { sendMessage: t } =
|
|
1394
|
+
function no() {
|
|
1395
|
+
var j;
|
|
1396
|
+
const { isSmallScreen: e } = P(), o = le(null), { sendMessage: t } = O(), { sessionState: n } = B(), { t: s } = U(), [i, a] = I(""), {
|
|
1393
1397
|
allFiles: c,
|
|
1394
1398
|
emptyTheFiles: l,
|
|
1395
1399
|
handleCancelUpload: h,
|
|
1396
1400
|
appendFiles: x,
|
|
1397
1401
|
isUploading: u,
|
|
1398
1402
|
successFiles: m
|
|
1399
|
-
} =
|
|
1403
|
+
} = Yt(), k = !!((j = n.session) != null && j.isHandedOff), { isAwaitingBotReply: f } = gt(), N = (v) => {
|
|
1400
1404
|
x(v);
|
|
1401
|
-
}, T = !
|
|
1405
|
+
}, T = !i.trim() && m.length === 0, _ = async () => {
|
|
1402
1406
|
if (f || T) return;
|
|
1403
1407
|
u && console.info("please wait for the file(s) to upload");
|
|
1404
|
-
const v =
|
|
1408
|
+
const v = i.trim();
|
|
1405
1409
|
t({
|
|
1406
1410
|
content: v,
|
|
1407
1411
|
attachments: m.flatMap(
|
|
@@ -1415,12 +1419,12 @@ function oo() {
|
|
|
1415
1419
|
}
|
|
1416
1420
|
] : []
|
|
1417
1421
|
)
|
|
1418
|
-
}),
|
|
1422
|
+
}), a(""), l();
|
|
1419
1423
|
}, {
|
|
1420
1424
|
getRootProps: M,
|
|
1421
|
-
getInputProps:
|
|
1422
|
-
open:
|
|
1423
|
-
} =
|
|
1425
|
+
getInputProps: A,
|
|
1426
|
+
open: F
|
|
1427
|
+
} = Mr({
|
|
1424
1428
|
onDrop: N,
|
|
1425
1429
|
noClick: !0,
|
|
1426
1430
|
onDropRejected() {
|
|
@@ -1437,7 +1441,7 @@ function oo() {
|
|
|
1437
1441
|
"image/gif": [".gif"],
|
|
1438
1442
|
"image/webp": [".webp"]
|
|
1439
1443
|
}
|
|
1440
|
-
}),
|
|
1444
|
+
}), H = (v) => {
|
|
1441
1445
|
const C = v.clipboardData;
|
|
1442
1446
|
C && C.files.length > 0 && N(Array.from(C.files));
|
|
1443
1447
|
};
|
|
@@ -1448,7 +1452,7 @@ function oo() {
|
|
|
1448
1452
|
className: "p-2 relative space-y-1",
|
|
1449
1453
|
...M(),
|
|
1450
1454
|
children: [
|
|
1451
|
-
/* @__PURE__ */ r("input", { ...
|
|
1455
|
+
/* @__PURE__ */ r("input", { ...A() }),
|
|
1452
1456
|
/* @__PURE__ */ d(
|
|
1453
1457
|
"div",
|
|
1454
1458
|
{
|
|
@@ -1473,7 +1477,7 @@ function oo() {
|
|
|
1473
1477
|
...g("chat/input_box/attachments_container"),
|
|
1474
1478
|
className: "flex items-center gap-1",
|
|
1475
1479
|
children: /* @__PURE__ */ r(S, { mode: "popLayout", children: c.map((v) => /* @__PURE__ */ r(w, { snapExit: !0, children: /* @__PURE__ */ r(
|
|
1476
|
-
|
|
1480
|
+
oo,
|
|
1477
1481
|
{
|
|
1478
1482
|
onCancel: () => h(v.id),
|
|
1479
1483
|
file: v
|
|
@@ -1485,10 +1489,10 @@ function oo() {
|
|
|
1485
1489
|
"textarea",
|
|
1486
1490
|
{
|
|
1487
1491
|
...g("chat/input_box/textarea"),
|
|
1488
|
-
onPaste:
|
|
1492
|
+
onPaste: H,
|
|
1489
1493
|
ref: o,
|
|
1490
1494
|
id: "chat-input",
|
|
1491
|
-
value:
|
|
1495
|
+
value: i,
|
|
1492
1496
|
rows: 3,
|
|
1493
1497
|
className: p(
|
|
1494
1498
|
/** Match the border radius of the container */
|
|
@@ -1501,7 +1505,7 @@ function oo() {
|
|
|
1501
1505
|
// 16px on mobiles prevents auto-zoom on the input when focused
|
|
1502
1506
|
e ? "text-[16px]" : "text-sm"
|
|
1503
1507
|
),
|
|
1504
|
-
onChange: (v) =>
|
|
1508
|
+
onChange: (v) => a(v.target.value),
|
|
1505
1509
|
onKeyDown: async (v) => {
|
|
1506
1510
|
v.key === "Enter" && !v.shiftKey && (v.preventDefault(), _());
|
|
1507
1511
|
},
|
|
@@ -1521,13 +1525,13 @@ function oo() {
|
|
|
1521
1525
|
children: /* @__PURE__ */ r(
|
|
1522
1526
|
y,
|
|
1523
1527
|
{
|
|
1524
|
-
onClick:
|
|
1528
|
+
onClick: F,
|
|
1525
1529
|
size: "fit",
|
|
1526
1530
|
variant: "ghost",
|
|
1527
1531
|
className: p(
|
|
1528
1532
|
"rounded-full size-8 flex items-center justify-center p-0 overflow-hidden"
|
|
1529
1533
|
),
|
|
1530
|
-
children: /* @__PURE__ */ r(S, { mode: "wait", children: k ? /* @__PURE__ */ r(w, { children: /* @__PURE__ */ r(
|
|
1534
|
+
children: /* @__PURE__ */ r(S, { mode: "wait", children: k ? /* @__PURE__ */ r(w, { children: /* @__PURE__ */ r(wr, { className: "size-4" }) }, "paper-clip") : /* @__PURE__ */ r(w, { children: /* @__PURE__ */ r(ur, { className: "size-4" }) }, "image-icon") })
|
|
1531
1535
|
}
|
|
1532
1536
|
)
|
|
1533
1537
|
}
|
|
@@ -1539,7 +1543,7 @@ function oo() {
|
|
|
1539
1543
|
onClick: _,
|
|
1540
1544
|
disabled: f || u || T,
|
|
1541
1545
|
className: "rounded-full size-8 flex items-center justify-center p-0",
|
|
1542
|
-
children: /* @__PURE__ */ r(S, { mode: "wait", children: f || u ? /* @__PURE__ */ r(w, { snapExit: !0, children: /* @__PURE__ */ r(
|
|
1546
|
+
children: /* @__PURE__ */ r(S, { mode: "wait", children: f || u ? /* @__PURE__ */ r(w, { snapExit: !0, children: /* @__PURE__ */ r(fr, { className: "size-4 animate-spin animate-iteration-infinite" }) }, "loading") : /* @__PURE__ */ r(w, { snapExit: !0, children: /* @__PURE__ */ r(ut, { className: "size-4" }) }, "send") })
|
|
1543
1547
|
}
|
|
1544
1548
|
) })
|
|
1545
1549
|
] })
|
|
@@ -1550,51 +1554,55 @@ function oo() {
|
|
|
1550
1554
|
}
|
|
1551
1555
|
);
|
|
1552
1556
|
}
|
|
1553
|
-
function
|
|
1554
|
-
const { widgetCtx: e } =
|
|
1557
|
+
function at() {
|
|
1558
|
+
const { widgetCtx: e } = R(), { router: o } = b(), { canCreateNewSession: t } = B(), { toSessionsScreen: n } = $(), { t: s } = U();
|
|
1555
1559
|
return /* @__PURE__ */ r(te, { children: t || o != null && o.chatScreenOnly ? /* @__PURE__ */ r(y, { onClick: e.resetChat, className: "rounded-2xl w-full", children: s("new_conversation") }) : /* @__PURE__ */ r(y, { onClick: n, className: "rounded-2xl w-full", children: s("back_to_conversations") }) });
|
|
1556
1560
|
}
|
|
1557
|
-
function
|
|
1558
|
-
const { t: e } = U(), { isCsatRequested: o, isCsatSubmitted: t } =
|
|
1559
|
-
return /* @__PURE__ */ r("div", { className: "p-2", children: /* @__PURE__ */ r("div", { className: "p-2 bg-muted rounded-3xl", children: /* @__PURE__ */ r(S, { mode: "wait", children: o || t ? /* @__PURE__ */ d(
|
|
1560
|
-
/* @__PURE__ */ r(
|
|
1561
|
-
/* @__PURE__ */ r(S, { mode: "wait", children: t && /* @__PURE__ */ r(
|
|
1562
|
-
] }, "csat") : /* @__PURE__ */ d(
|
|
1561
|
+
function so() {
|
|
1562
|
+
const { t: e } = U(), { isCsatRequested: o, isCsatSubmitted: t } = mt();
|
|
1563
|
+
return /* @__PURE__ */ r("div", { className: "p-2", children: /* @__PURE__ */ r("div", { className: "p-2 bg-muted rounded-3xl", children: /* @__PURE__ */ r(S, { mode: "wait", children: o || t ? /* @__PURE__ */ d(E, { children: [
|
|
1564
|
+
/* @__PURE__ */ r(to, {}),
|
|
1565
|
+
/* @__PURE__ */ r(S, { mode: "wait", children: t && /* @__PURE__ */ r(E, { children: /* @__PURE__ */ r(at, {}) }, "new-conv-or-back-to-convs-button") })
|
|
1566
|
+
] }, "csat") : /* @__PURE__ */ d(E, { children: [
|
|
1563
1567
|
/* @__PURE__ */ d("div", { className: "ps-2 flex items-center gap-1 pb-2", children: [
|
|
1564
|
-
/* @__PURE__ */ r(
|
|
1568
|
+
/* @__PURE__ */ r(wt, { className: "size-4 text-emerald-600" }),
|
|
1565
1569
|
/* @__PURE__ */ r("h2", { className: "text-sm font-medium", children: e("your_issue_has_been_resolved") })
|
|
1566
1570
|
] }),
|
|
1567
|
-
/* @__PURE__ */ r(
|
|
1571
|
+
/* @__PURE__ */ r(at, {})
|
|
1568
1572
|
] }, "session-closed") }) }) });
|
|
1569
1573
|
}
|
|
1570
|
-
function
|
|
1571
|
-
var
|
|
1572
|
-
const { initialQuestions: e, initialQuestionsPosition: o, thisWasHelpfulOrNot: t } = b(), { sessionState: n } =
|
|
1573
|
-
return /* @__PURE__ */ r("footer", { children: /* @__PURE__ */ r(
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1574
|
+
function io() {
|
|
1575
|
+
var a;
|
|
1576
|
+
const { initialQuestions: e, initialQuestionsPosition: o, thisWasHelpfulOrNot: t } = b(), { sessionState: n } = B(), { messagesState: s } = O(), i = s.messages.length === 0;
|
|
1577
|
+
return /* @__PURE__ */ r("footer", { children: /* @__PURE__ */ r(S, { mode: "wait", children: n.session && !((a = n.session) != null && a.isOpened) ? /* @__PURE__ */ d(E, { children: [
|
|
1578
|
+
/* @__PURE__ */ r(so, {}),
|
|
1579
|
+
/* @__PURE__ */ r(it, {})
|
|
1580
|
+
] }, "session-closed") : /* @__PURE__ */ d(E, { children: [
|
|
1581
|
+
s.lastAIResMightSolveUserIssue && (t == null ? void 0 : t.enabled) !== !1 && /* @__PURE__ */ r(ro, {}),
|
|
1582
|
+
i && e && o !== "below-initial-messages" && /* @__PURE__ */ r("div", { className: "flex items-center flex-row justify-end gap-2 flex-wrap px-2", children: e == null ? void 0 : e.map((c, l) => /* @__PURE__ */ r(
|
|
1583
|
+
ze,
|
|
1577
1584
|
{
|
|
1578
1585
|
suggestion: c
|
|
1579
1586
|
},
|
|
1580
1587
|
`${c}-${l}`
|
|
1581
1588
|
)) }),
|
|
1582
|
-
/* @__PURE__ */ r(
|
|
1583
|
-
|
|
1589
|
+
/* @__PURE__ */ r(no, {}),
|
|
1590
|
+
/* @__PURE__ */ r(it, {})
|
|
1591
|
+
] }, "chat-input") }) });
|
|
1584
1592
|
}
|
|
1585
|
-
function
|
|
1593
|
+
function ao({
|
|
1586
1594
|
isFirstInGroup: e,
|
|
1587
1595
|
isLastInGroup: o,
|
|
1588
1596
|
isAloneInGroup: t,
|
|
1589
1597
|
...n
|
|
1590
1598
|
}) {
|
|
1591
|
-
const { componentStore: s } =
|
|
1599
|
+
const { componentStore: s } = R();
|
|
1592
1600
|
if (n.type !== "AGENT" && n.type !== "AI") return null;
|
|
1593
1601
|
if (n.data.action) {
|
|
1594
|
-
const
|
|
1595
|
-
if (
|
|
1602
|
+
const a = s.getComponent(n.data.action.name);
|
|
1603
|
+
if (a)
|
|
1596
1604
|
return /* @__PURE__ */ r(
|
|
1597
|
-
|
|
1605
|
+
a,
|
|
1598
1606
|
{
|
|
1599
1607
|
...n,
|
|
1600
1608
|
id: n.id,
|
|
@@ -1604,9 +1612,9 @@ function io({
|
|
|
1604
1612
|
}
|
|
1605
1613
|
);
|
|
1606
1614
|
}
|
|
1607
|
-
const
|
|
1608
|
-
return
|
|
1609
|
-
|
|
1615
|
+
const i = s.getComponent(n.component);
|
|
1616
|
+
return i ? /* @__PURE__ */ r(
|
|
1617
|
+
i,
|
|
1610
1618
|
{
|
|
1611
1619
|
...n,
|
|
1612
1620
|
id: n.id,
|
|
@@ -1624,18 +1632,18 @@ function io({
|
|
|
1624
1632
|
}
|
|
1625
1633
|
);
|
|
1626
1634
|
}
|
|
1627
|
-
function
|
|
1635
|
+
function At({
|
|
1628
1636
|
messages: e,
|
|
1629
1637
|
className: o,
|
|
1630
1638
|
containerClassName: t
|
|
1631
1639
|
}) {
|
|
1632
|
-
var
|
|
1640
|
+
var a, c;
|
|
1633
1641
|
const { timestamps: n } = b();
|
|
1634
|
-
if (!((
|
|
1642
|
+
if (!((a = n == null ? void 0 : n.perMessageGroup) != null && a.enabled))
|
|
1635
1643
|
return null;
|
|
1636
1644
|
const s = (c = e[e.length - 1]) == null ? void 0 : c.timestamp;
|
|
1637
1645
|
if (!s) return null;
|
|
1638
|
-
const
|
|
1646
|
+
const i = (() => {
|
|
1639
1647
|
try {
|
|
1640
1648
|
return new Date(s).toLocaleTimeString([], {
|
|
1641
1649
|
hour: "2-digit",
|
|
@@ -1646,9 +1654,9 @@ function Ot({
|
|
|
1646
1654
|
return console.error(l), null;
|
|
1647
1655
|
}
|
|
1648
1656
|
})();
|
|
1649
|
-
return
|
|
1657
|
+
return i ? /* @__PURE__ */ r("div", { className: t, children: /* @__PURE__ */ r("span", { className: p("text-xs text-muted-foreground", o), children: i }) }) : null;
|
|
1650
1658
|
}
|
|
1651
|
-
function
|
|
1659
|
+
function Ne({
|
|
1652
1660
|
messages: e,
|
|
1653
1661
|
agent: o,
|
|
1654
1662
|
suggestedReplies: t
|
|
@@ -1687,17 +1695,17 @@ function ze({
|
|
|
1687
1695
|
...g("chat/agent_msg_group/avatar_and_msgs/msgs"),
|
|
1688
1696
|
className: p("flex-1 flex flex-col gap-1"),
|
|
1689
1697
|
children: [
|
|
1690
|
-
e.map((n, s,
|
|
1691
|
-
|
|
1698
|
+
e.map((n, s, i) => /* @__PURE__ */ r(
|
|
1699
|
+
ao,
|
|
1692
1700
|
{
|
|
1693
1701
|
isFirstInGroup: s === 0,
|
|
1694
|
-
isLastInGroup: s ===
|
|
1695
|
-
isAloneInGroup:
|
|
1702
|
+
isLastInGroup: s === i.length - 1,
|
|
1703
|
+
isAloneInGroup: i.length === 1,
|
|
1696
1704
|
...n
|
|
1697
1705
|
},
|
|
1698
1706
|
n.id
|
|
1699
1707
|
)),
|
|
1700
|
-
/* @__PURE__ */ r(
|
|
1708
|
+
/* @__PURE__ */ r(At, { messages: e })
|
|
1701
1709
|
]
|
|
1702
1710
|
}
|
|
1703
1711
|
)
|
|
@@ -1710,7 +1718,7 @@ function ze({
|
|
|
1710
1718
|
...g("chat/agent_msg_group/suggestions"),
|
|
1711
1719
|
className: p("flex flex-col gap-1 ps-8"),
|
|
1712
1720
|
children: t == null ? void 0 : t.map((n, s) => /* @__PURE__ */ r(
|
|
1713
|
-
|
|
1721
|
+
ze,
|
|
1714
1722
|
{
|
|
1715
1723
|
suggestion: n
|
|
1716
1724
|
},
|
|
@@ -1723,18 +1731,18 @@ function ze({
|
|
|
1723
1731
|
}
|
|
1724
1732
|
);
|
|
1725
1733
|
}
|
|
1726
|
-
function
|
|
1734
|
+
function lo() {
|
|
1727
1735
|
var s;
|
|
1728
1736
|
const {
|
|
1729
1737
|
widgetCtx: { org: e }
|
|
1730
|
-
} =
|
|
1738
|
+
} = R(), {
|
|
1731
1739
|
sessionState: { session: o }
|
|
1732
|
-
} =
|
|
1740
|
+
} = B(), t = b();
|
|
1733
1741
|
if (o != null && o.isOpened || !o) return null;
|
|
1734
1742
|
const n = (s = t.specialComponents) == null ? void 0 : s.onSessionResolved;
|
|
1735
|
-
return n ? /* @__PURE__ */ r(n, { react:
|
|
1743
|
+
return n ? /* @__PURE__ */ r(n, { react: q, session: o, config: t, org: e }) : null;
|
|
1736
1744
|
}
|
|
1737
|
-
function
|
|
1745
|
+
function co({
|
|
1738
1746
|
message: e,
|
|
1739
1747
|
isFirstInGroup: o,
|
|
1740
1748
|
isLastInGroup: t,
|
|
@@ -1747,7 +1755,7 @@ function lo({
|
|
|
1747
1755
|
...g("chat/user_msg/root"),
|
|
1748
1756
|
className: "w-5/6 flex flex-col items-end gap-1",
|
|
1749
1757
|
children: [
|
|
1750
|
-
e.attachments && e.attachments.length > 0 && /* @__PURE__ */ r("div", { className: "w-full flex gap-1 flex-wrap justify-end", children: (s = e.attachments) == null ? void 0 : s.map((
|
|
1758
|
+
e.attachments && e.attachments.length > 0 && /* @__PURE__ */ r("div", { className: "w-full flex gap-1 flex-wrap justify-end", children: (s = e.attachments) == null ? void 0 : s.map((i) => /* @__PURE__ */ r(It, { attachment: i }, i.id)) }),
|
|
1751
1759
|
e.content.length > 0 && /* @__PURE__ */ r(
|
|
1752
1760
|
"div",
|
|
1753
1761
|
{
|
|
@@ -1774,7 +1782,7 @@ function lo({
|
|
|
1774
1782
|
}
|
|
1775
1783
|
);
|
|
1776
1784
|
}
|
|
1777
|
-
function
|
|
1785
|
+
function po({
|
|
1778
1786
|
messages: e
|
|
1779
1787
|
}) {
|
|
1780
1788
|
return /* @__PURE__ */ d(
|
|
@@ -1784,7 +1792,7 @@ function co({
|
|
|
1784
1792
|
className: p("group", "flex flex-col gap-1 justify-end items-end"),
|
|
1785
1793
|
children: [
|
|
1786
1794
|
e.map((o, t, n) => /* @__PURE__ */ r(
|
|
1787
|
-
|
|
1795
|
+
co,
|
|
1788
1796
|
{
|
|
1789
1797
|
message: o,
|
|
1790
1798
|
isFirstInGroup: t === 0,
|
|
@@ -1793,48 +1801,48 @@ function co({
|
|
|
1793
1801
|
},
|
|
1794
1802
|
o.id
|
|
1795
1803
|
)),
|
|
1796
|
-
/* @__PURE__ */ r(
|
|
1804
|
+
/* @__PURE__ */ r(At, { messages: e, containerClassName: "ms-auto" })
|
|
1797
1805
|
]
|
|
1798
1806
|
}
|
|
1799
1807
|
);
|
|
1800
1808
|
}
|
|
1801
|
-
function
|
|
1809
|
+
function ho(e) {
|
|
1802
1810
|
const o = [];
|
|
1803
1811
|
let t = null;
|
|
1804
1812
|
return e.forEach((n) => {
|
|
1805
|
-
var s,
|
|
1806
|
-
(!t || ((s = t[0]) == null ? void 0 : s.type) !== n.type) && (t = [], o.push(t)), ((
|
|
1813
|
+
var s, i, a, c, l, h;
|
|
1814
|
+
(!t || ((s = t[0]) == null ? void 0 : s.type) !== n.type) && (t = [], o.push(t)), ((i = t[0]) == null ? void 0 : i.type) === "AGENT" && n.type === "AGENT" && (((a = n.agent) == null ? void 0 : a.id) !== ((c = t[0].agent) == null ? void 0 : c.id) || ((l = n.agent) == null ? void 0 : l.name) !== ((h = t[0].agent) == null ? void 0 : h.name)) && (t = [], o.push(t)), t.push(n);
|
|
1807
1815
|
}), o;
|
|
1808
1816
|
}
|
|
1809
|
-
function
|
|
1817
|
+
function mo(e) {
|
|
1810
1818
|
var o;
|
|
1811
1819
|
return ((o = e == null ? void 0 : e[0]) == null ? void 0 : o.type) === "USER";
|
|
1812
1820
|
}
|
|
1813
|
-
function
|
|
1821
|
+
function go(e) {
|
|
1814
1822
|
var o;
|
|
1815
1823
|
return ((o = e == null ? void 0 : e[0]) == null ? void 0 : o.type) === "AI";
|
|
1816
1824
|
}
|
|
1817
|
-
function
|
|
1825
|
+
function wo(e) {
|
|
1818
1826
|
var o;
|
|
1819
1827
|
return ((o = e == null ? void 0 : e[0]) == null ? void 0 : o.type) === "AGENT";
|
|
1820
1828
|
}
|
|
1821
|
-
function
|
|
1829
|
+
function uo() {
|
|
1822
1830
|
const {
|
|
1823
1831
|
messagesState: { messages: e }
|
|
1824
|
-
} =
|
|
1832
|
+
} = O(), {
|
|
1825
1833
|
advancedInitialMessages: o = [],
|
|
1826
1834
|
initialQuestionsPosition: t,
|
|
1827
1835
|
initialQuestions: n,
|
|
1828
1836
|
bot: s
|
|
1829
1837
|
} = b();
|
|
1830
1838
|
return /* @__PURE__ */ r(te, { children: e.length === 0 && o.length > 0 && /* @__PURE__ */ r(
|
|
1831
|
-
|
|
1839
|
+
Ne,
|
|
1832
1840
|
{
|
|
1833
1841
|
messages: o.map(
|
|
1834
|
-
({ message:
|
|
1842
|
+
({ message: i }, a) => ({
|
|
1835
1843
|
component: "bot_message",
|
|
1836
|
-
data: { message:
|
|
1837
|
-
id: `${
|
|
1844
|
+
data: { message: i },
|
|
1845
|
+
id: `${a}-${i}`,
|
|
1838
1846
|
type: "AI",
|
|
1839
1847
|
timestamp: null
|
|
1840
1848
|
})
|
|
@@ -1844,33 +1852,33 @@ function wo() {
|
|
|
1844
1852
|
}
|
|
1845
1853
|
) });
|
|
1846
1854
|
}
|
|
1847
|
-
function
|
|
1855
|
+
function fo() {
|
|
1848
1856
|
const {
|
|
1849
1857
|
messagesState: { messages: e }
|
|
1850
|
-
} =
|
|
1858
|
+
} = O(), { chatBannerItems: o } = b();
|
|
1851
1859
|
return !(o != null && o.length) || e.length > 0 && o.every((t) => !t.persistent) ? null : /* @__PURE__ */ r("div", { className: "w-full text-center text-xs", children: o.map(
|
|
1852
|
-
({ message: t, persistent: n }, s) => e.length > 0 && !n ? null : /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(
|
|
1860
|
+
({ message: t, persistent: n }, s) => e.length > 0 && !n ? null : /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(ve, { children: t }) }, `${t}-${s}`)
|
|
1853
1861
|
) });
|
|
1854
1862
|
}
|
|
1855
|
-
function
|
|
1863
|
+
function vo() {
|
|
1856
1864
|
const {
|
|
1857
1865
|
messagesState: { messages: e }
|
|
1858
|
-
} =
|
|
1866
|
+
} = O(), o = b(), {
|
|
1859
1867
|
advancedInitialMessages: t = [],
|
|
1860
1868
|
initialQuestions: n,
|
|
1861
1869
|
initialQuestionsPosition: s
|
|
1862
|
-
} = o,
|
|
1863
|
-
var
|
|
1864
|
-
return t.length ? [] : e.length ? [] : (
|
|
1870
|
+
} = o, i = (() => {
|
|
1871
|
+
var a;
|
|
1872
|
+
return t.length ? [] : e.length ? [] : (a = o.initialMessages) != null && a.length ? o.initialMessages : ["Hello, how can I help you?"];
|
|
1865
1873
|
})();
|
|
1866
|
-
return /* @__PURE__ */ r(te, { children: e.length === 0 &&
|
|
1867
|
-
|
|
1874
|
+
return /* @__PURE__ */ r(te, { children: e.length === 0 && i.length > 0 && /* @__PURE__ */ r(
|
|
1875
|
+
Ne,
|
|
1868
1876
|
{
|
|
1869
|
-
messages:
|
|
1870
|
-
(
|
|
1877
|
+
messages: i.map(
|
|
1878
|
+
(a, c) => ({
|
|
1871
1879
|
component: "bot_message",
|
|
1872
|
-
data: { message:
|
|
1873
|
-
id: `${c}-${
|
|
1880
|
+
data: { message: a },
|
|
1881
|
+
id: `${c}-${a}`,
|
|
1874
1882
|
type: "AI",
|
|
1875
1883
|
timestamp: null
|
|
1876
1884
|
})
|
|
@@ -1880,18 +1888,18 @@ function fo() {
|
|
|
1880
1888
|
}
|
|
1881
1889
|
) });
|
|
1882
1890
|
}
|
|
1883
|
-
function
|
|
1891
|
+
function xo() {
|
|
1884
1892
|
const {
|
|
1885
1893
|
messagesState: { messages: e }
|
|
1886
|
-
} =
|
|
1887
|
-
() =>
|
|
1894
|
+
} = O(), { isAwaitingBotReply: o } = gt(), { componentStore: t } = R(), n = b(), s = pt(
|
|
1895
|
+
() => ho(e),
|
|
1888
1896
|
[e]
|
|
1889
|
-
),
|
|
1897
|
+
), i = t.getComponent(
|
|
1890
1898
|
"loading"
|
|
1891
|
-
),
|
|
1899
|
+
), a = le(null);
|
|
1892
1900
|
function c() {
|
|
1893
1901
|
setTimeout(() => {
|
|
1894
|
-
const l =
|
|
1902
|
+
const l = a.current;
|
|
1895
1903
|
l && (l.scrollTop = l.scrollHeight);
|
|
1896
1904
|
}, 0);
|
|
1897
1905
|
}
|
|
@@ -1901,22 +1909,22 @@ function vo() {
|
|
|
1901
1909
|
"div",
|
|
1902
1910
|
{
|
|
1903
1911
|
...g("chat/msgs/root"),
|
|
1904
|
-
ref:
|
|
1912
|
+
ref: a,
|
|
1905
1913
|
className: "max-h-full scroll-smooth relative flex-1 py-2 px-4 flex flex-col gap-2 overflow-auto",
|
|
1906
1914
|
children: [
|
|
1907
|
-
/* @__PURE__ */ r(uo, {}),
|
|
1908
|
-
/* @__PURE__ */ r(wo, {}),
|
|
1909
1915
|
/* @__PURE__ */ r(fo, {}),
|
|
1916
|
+
/* @__PURE__ */ r(uo, {}),
|
|
1917
|
+
/* @__PURE__ */ r(vo, {}),
|
|
1910
1918
|
s.map((l) => {
|
|
1911
1919
|
var u, m, k;
|
|
1912
1920
|
const h = (u = l == null ? void 0 : l[0]) == null ? void 0 : u.type, x = (m = l[0]) == null ? void 0 : m.id;
|
|
1913
1921
|
if (!h || !x) return null;
|
|
1914
|
-
if (
|
|
1915
|
-
return /* @__PURE__ */ r(
|
|
1916
|
-
if (
|
|
1922
|
+
if (mo(l))
|
|
1923
|
+
return /* @__PURE__ */ r(po, { messages: l }, x);
|
|
1924
|
+
if (go(l) || wo(l)) {
|
|
1917
1925
|
const f = (k = l[0]) == null ? void 0 : k.agent;
|
|
1918
1926
|
return /* @__PURE__ */ r(
|
|
1919
|
-
|
|
1927
|
+
Ne,
|
|
1920
1928
|
{
|
|
1921
1929
|
messages: l,
|
|
1922
1930
|
agent: f
|
|
@@ -1926,19 +1934,19 @@ function vo() {
|
|
|
1926
1934
|
}
|
|
1927
1935
|
return null;
|
|
1928
1936
|
}),
|
|
1929
|
-
o &&
|
|
1930
|
-
/* @__PURE__ */ r(
|
|
1937
|
+
o && i && /* @__PURE__ */ r(i, { agent: n.bot }),
|
|
1938
|
+
/* @__PURE__ */ r(lo, {})
|
|
1931
1939
|
]
|
|
1932
1940
|
}
|
|
1933
1941
|
);
|
|
1934
1942
|
}
|
|
1935
|
-
function
|
|
1943
|
+
function bo() {
|
|
1936
1944
|
const {
|
|
1937
1945
|
messagesState: { isInitialFetchLoading: e }
|
|
1938
|
-
} =
|
|
1946
|
+
} = O(), {
|
|
1939
1947
|
sessionState: { session: o }
|
|
1940
|
-
} =
|
|
1941
|
-
|
|
1948
|
+
} = B(), { isCanvasOpen: t } = Zr(), { theme: n } = X();
|
|
1949
|
+
ke({
|
|
1942
1950
|
width: t ? n.screens.chat.withCanvas.width : n.screens.chat.width,
|
|
1943
1951
|
height: t ? n.screens.chat.withCanvas.height : n.screens.chat.height
|
|
1944
1952
|
});
|
|
@@ -1959,7 +1967,7 @@ function xo() {
|
|
|
1959
1967
|
// Relative to the iframe
|
|
1960
1968
|
},
|
|
1961
1969
|
children: /* @__PURE__ */ d("div", { className: "size-full justify-between flex flex-col", children: [
|
|
1962
|
-
/* @__PURE__ */ r(
|
|
1970
|
+
/* @__PURE__ */ r(Ot, {}),
|
|
1963
1971
|
/* @__PURE__ */ r(S, { mode: "wait", children: e ? /* @__PURE__ */ r(
|
|
1964
1972
|
w,
|
|
1965
1973
|
{
|
|
@@ -1986,8 +1994,8 @@ function xo() {
|
|
|
1986
1994
|
transitionDuration: n.screens.chat.withCanvas.transitionDuration
|
|
1987
1995
|
},
|
|
1988
1996
|
children: [
|
|
1989
|
-
/* @__PURE__ */ r(
|
|
1990
|
-
/* @__PURE__ */ r(
|
|
1997
|
+
/* @__PURE__ */ r(xo, {}),
|
|
1998
|
+
/* @__PURE__ */ r(io, {})
|
|
1991
1999
|
]
|
|
1992
2000
|
}
|
|
1993
2001
|
),
|
|
@@ -2003,7 +2011,7 @@ function xo() {
|
|
|
2003
2011
|
transitionTimingFunction: n.screens.chat.withCanvas.transitionTimingFunction,
|
|
2004
2012
|
transitionDuration: n.screens.chat.withCanvas.transitionDuration
|
|
2005
2013
|
},
|
|
2006
|
-
children: /* @__PURE__ */ r(
|
|
2014
|
+
children: /* @__PURE__ */ r(Jr, {})
|
|
2007
2015
|
}
|
|
2008
2016
|
)
|
|
2009
2017
|
]
|
|
@@ -2014,7 +2022,7 @@ function xo() {
|
|
|
2014
2022
|
}
|
|
2015
2023
|
);
|
|
2016
2024
|
}
|
|
2017
|
-
function
|
|
2025
|
+
function yo({
|
|
2018
2026
|
className: e,
|
|
2019
2027
|
...o
|
|
2020
2028
|
}) {
|
|
@@ -2026,7 +2034,7 @@ function bo({
|
|
|
2026
2034
|
}
|
|
2027
2035
|
);
|
|
2028
2036
|
}
|
|
2029
|
-
function
|
|
2037
|
+
function ko({ className: e }) {
|
|
2030
2038
|
return /* @__PURE__ */ r(
|
|
2031
2039
|
"svg",
|
|
2032
2040
|
{
|
|
@@ -2046,7 +2054,7 @@ function yo({ className: e }) {
|
|
|
2046
2054
|
}
|
|
2047
2055
|
);
|
|
2048
2056
|
}
|
|
2049
|
-
function
|
|
2057
|
+
function Ft({ className: e }) {
|
|
2050
2058
|
const { token: o } = b();
|
|
2051
2059
|
return /* @__PURE__ */ r(
|
|
2052
2060
|
"div",
|
|
@@ -2055,7 +2063,7 @@ function At({ className: e }) {
|
|
|
2055
2063
|
"flex items-center justify-center gap-2 p-2 pt-0",
|
|
2056
2064
|
e
|
|
2057
2065
|
),
|
|
2058
|
-
children: /* @__PURE__ */ r(
|
|
2066
|
+
children: /* @__PURE__ */ r(W, { children: /* @__PURE__ */ d(
|
|
2059
2067
|
"a",
|
|
2060
2068
|
{
|
|
2061
2069
|
href: `https://open.cx/?ref=${o}`,
|
|
@@ -2070,7 +2078,7 @@ function At({ className: e }) {
|
|
|
2070
2078
|
/* @__PURE__ */ r("span", { children: "Powered by" }),
|
|
2071
2079
|
/* @__PURE__ */ r("span", { children: " " }),
|
|
2072
2080
|
/* @__PURE__ */ d("span", { className: "flex items-center gap-[1px]", children: [
|
|
2073
|
-
/* @__PURE__ */ r("span", { children: /* @__PURE__ */ r(
|
|
2081
|
+
/* @__PURE__ */ r("span", { children: /* @__PURE__ */ r(ko, { className: "size-3 inline-block" }) }),
|
|
2074
2082
|
/* @__PURE__ */ r("span", { className: "font-semibold", children: "open" })
|
|
2075
2083
|
] })
|
|
2076
2084
|
]
|
|
@@ -2079,14 +2087,14 @@ function At({ className: e }) {
|
|
|
2079
2087
|
}
|
|
2080
2088
|
);
|
|
2081
2089
|
}
|
|
2082
|
-
function
|
|
2090
|
+
function Co({ children: e }) {
|
|
2083
2091
|
return /* @__PURE__ */ r("p", { className: "ps-4 text-xs text-muted-foreground/75 uppercase font-semibold tracking-tight", children: e });
|
|
2084
2092
|
}
|
|
2085
|
-
function
|
|
2093
|
+
function lt({
|
|
2086
2094
|
session: e,
|
|
2087
2095
|
className: o
|
|
2088
2096
|
}) {
|
|
2089
|
-
const { bot: t } = b(), { toChatScreen: n } = $(), s = e.assignee.kind === "human" ? e.assignee.name || "Support Agent" : (t == null ? void 0 : t.name) || "AI Support Agent",
|
|
2097
|
+
const { bot: t } = b(), { toChatScreen: n } = $(), s = e.assignee.kind === "human" ? e.assignee.name || "Support Agent" : (t == null ? void 0 : t.name) || "AI Support Agent", i = e.assignee.kind === "human" ? e.assignee.avatarUrl || "" : (t == null ? void 0 : t.avatar) || "";
|
|
2090
2098
|
return /* @__PURE__ */ d(
|
|
2091
2099
|
y,
|
|
2092
2100
|
{
|
|
@@ -2099,35 +2107,35 @@ function it({
|
|
|
2099
2107
|
onClick: () => n(e.id),
|
|
2100
2108
|
children: [
|
|
2101
2109
|
/* @__PURE__ */ d("div", { className: "flex-1 flex gap-2 items-center", children: [
|
|
2102
|
-
/* @__PURE__ */ r(S, { mode: "wait", children: /* @__PURE__ */ r(w, { snapExit: !0, children: /* @__PURE__ */ d(
|
|
2103
|
-
/* @__PURE__ */ r(
|
|
2104
|
-
/* @__PURE__ */ r(
|
|
2110
|
+
/* @__PURE__ */ r(S, { mode: "wait", children: /* @__PURE__ */ r(w, { snapExit: !0, children: /* @__PURE__ */ d(xe, { className: "size-10", children: [
|
|
2111
|
+
/* @__PURE__ */ r(be, { src: i, alt: "Agent Icon" }),
|
|
2112
|
+
/* @__PURE__ */ r(ye, { children: /* @__PURE__ */ r(Cr, { className: "size-4" }) })
|
|
2105
2113
|
] }) }) }),
|
|
2106
2114
|
/* @__PURE__ */ d("div", { className: "flex-1", children: [
|
|
2107
2115
|
/* @__PURE__ */ r(S, { mode: "wait", children: /* @__PURE__ */ r(w, { snapExit: !0, children: s }, s) }),
|
|
2108
2116
|
/* @__PURE__ */ r(S, { mode: "wait", children: e.lastMessage ? /* @__PURE__ */ r(w, { snapExit: !0, children: /* @__PURE__ */ r(
|
|
2109
|
-
|
|
2117
|
+
Tt,
|
|
2110
2118
|
{
|
|
2111
|
-
remarkPlugins: [
|
|
2112
|
-
rehypePlugins: [
|
|
2119
|
+
remarkPlugins: [ft],
|
|
2120
|
+
rehypePlugins: [vt],
|
|
2113
2121
|
className: "line-clamp-1 overflow-hidden text-ellipsis text-xs text-muted-foreground",
|
|
2114
2122
|
children: e.lastMessage
|
|
2115
2123
|
}
|
|
2116
|
-
) }, e.lastMessage || "content") : /* @__PURE__ */ r(w, { className: "w-1/2", snapExit: !0, children: /* @__PURE__ */ r(
|
|
2124
|
+
) }, e.lastMessage || "content") : /* @__PURE__ */ r(w, { className: "w-1/2", snapExit: !0, children: /* @__PURE__ */ r(yo, { className: "h-4 w-full" }) }, "skeleton") })
|
|
2117
2125
|
] })
|
|
2118
2126
|
] }),
|
|
2119
|
-
/* @__PURE__ */ r(
|
|
2127
|
+
/* @__PURE__ */ r(zr, { className: "size-4 text-muted-foreground shrink-0 rtl:-scale-100" })
|
|
2120
2128
|
]
|
|
2121
2129
|
}
|
|
2122
2130
|
);
|
|
2123
2131
|
}
|
|
2124
|
-
function
|
|
2132
|
+
function zo() {
|
|
2125
2133
|
const { t: e } = U(), { toChatScreen: o } = $(), {
|
|
2126
2134
|
sessionsState: { data: t, isInitialFetchLoading: n },
|
|
2127
2135
|
openSessions: s,
|
|
2128
|
-
closedSessions:
|
|
2129
|
-
canCreateNewSession:
|
|
2130
|
-
} =
|
|
2136
|
+
closedSessions: i,
|
|
2137
|
+
canCreateNewSession: a
|
|
2138
|
+
} = B();
|
|
2131
2139
|
return /* @__PURE__ */ r("div", { className: "flex-1 flex flex-col overflow-scroll py-2 px-2", children: /* @__PURE__ */ r(S, { mode: "wait", children: n ? /* @__PURE__ */ r(
|
|
2132
2140
|
w,
|
|
2133
2141
|
{
|
|
@@ -2148,20 +2156,20 @@ function Co() {
|
|
|
2148
2156
|
delay: 0.2,
|
|
2149
2157
|
className: "space-y-2",
|
|
2150
2158
|
snapExit: !0,
|
|
2151
|
-
children: s.map((c) => /* @__PURE__ */ r(
|
|
2159
|
+
children: s.map((c) => /* @__PURE__ */ r(lt, { session: c }, c.id))
|
|
2152
2160
|
},
|
|
2153
2161
|
"open-sessions"
|
|
2154
2162
|
),
|
|
2155
|
-
|
|
2163
|
+
i.length > 0 && /* @__PURE__ */ d(
|
|
2156
2164
|
w,
|
|
2157
2165
|
{
|
|
2158
2166
|
className: "space-y-2",
|
|
2159
2167
|
delay: 0.2,
|
|
2160
2168
|
snapExit: !0,
|
|
2161
2169
|
children: [
|
|
2162
|
-
/* @__PURE__ */ r(
|
|
2163
|
-
|
|
2164
|
-
|
|
2170
|
+
/* @__PURE__ */ r(Co, { children: e("closed_conversations") }),
|
|
2171
|
+
i.map((c) => /* @__PURE__ */ r(
|
|
2172
|
+
lt,
|
|
2165
2173
|
{
|
|
2166
2174
|
session: c,
|
|
2167
2175
|
className: "opacity-50 hover:opacity-100"
|
|
@@ -2173,7 +2181,7 @@ function Co() {
|
|
|
2173
2181
|
"closed-sessions"
|
|
2174
2182
|
)
|
|
2175
2183
|
] }),
|
|
2176
|
-
|
|
2184
|
+
a && /* @__PURE__ */ r("div", { className: "mt-auto w-full rounded-3xl sticky bottom-0 outline outline-8 outline-background bg-background", children: /* @__PURE__ */ rt(
|
|
2177
2185
|
y,
|
|
2178
2186
|
{
|
|
2179
2187
|
...g("sessions/new_conversation_btn"),
|
|
@@ -2186,7 +2194,7 @@ function Co() {
|
|
|
2186
2194
|
) })
|
|
2187
2195
|
] }) : /* @__PURE__ */ d("div", { className: "flex-1 flex flex-col gap-2 items-center", children: [
|
|
2188
2196
|
/* @__PURE__ */ r("div", { className: "flex-1 flex items-center justify-center", children: /* @__PURE__ */ r("p", { className: "text-muted-foreground", children: e("no_conversations_yet") }) }),
|
|
2189
|
-
/* @__PURE__ */
|
|
2197
|
+
/* @__PURE__ */ rt(
|
|
2190
2198
|
y,
|
|
2191
2199
|
{
|
|
2192
2200
|
...g("sessions/new_conversation_btn"),
|
|
@@ -2202,9 +2210,9 @@ function Co() {
|
|
|
2202
2210
|
"sessions"
|
|
2203
2211
|
) }) });
|
|
2204
2212
|
}
|
|
2205
|
-
function
|
|
2213
|
+
function No() {
|
|
2206
2214
|
const { theme: e } = X();
|
|
2207
|
-
return
|
|
2215
|
+
return ke({
|
|
2208
2216
|
width: e.screens.sessions.width,
|
|
2209
2217
|
height: e.screens.sessions.height
|
|
2210
2218
|
}), /* @__PURE__ */ r(
|
|
@@ -2223,9 +2231,9 @@ function zo() {
|
|
|
2223
2231
|
// Relative to the iframe
|
|
2224
2232
|
},
|
|
2225
2233
|
children: /* @__PURE__ */ d("div", { className: "size-full flex flex-col", children: [
|
|
2226
|
-
/* @__PURE__ */ r(
|
|
2227
|
-
/* @__PURE__ */ r(
|
|
2228
|
-
/* @__PURE__ */ r(
|
|
2234
|
+
/* @__PURE__ */ r(Ot, {}),
|
|
2235
|
+
/* @__PURE__ */ r(zo, {}),
|
|
2236
|
+
/* @__PURE__ */ r(Ft, {})
|
|
2229
2237
|
] })
|
|
2230
2238
|
}
|
|
2231
2239
|
);
|
|
@@ -2233,7 +2241,7 @@ function zo() {
|
|
|
2233
2241
|
const ie = G.forwardRef(
|
|
2234
2242
|
({ className: e, type: o, ...t }, n) => {
|
|
2235
2243
|
const { isSmallScreen: s } = P();
|
|
2236
|
-
return /* @__PURE__ */ r(
|
|
2244
|
+
return /* @__PURE__ */ r(W, { ref: n, children: /* @__PURE__ */ r(
|
|
2237
2245
|
"input",
|
|
2238
2246
|
{
|
|
2239
2247
|
type: o,
|
|
@@ -2251,15 +2259,15 @@ const ie = G.forwardRef(
|
|
|
2251
2259
|
}
|
|
2252
2260
|
);
|
|
2253
2261
|
ie.displayName = "Input";
|
|
2254
|
-
function
|
|
2255
|
-
const { contentIframeRef: e } =
|
|
2262
|
+
function So() {
|
|
2263
|
+
const { contentIframeRef: e } = R(), { inline: o } = b(), t = le(null);
|
|
2256
2264
|
return re(() => {
|
|
2257
2265
|
const n = e == null ? void 0 : e.current;
|
|
2258
2266
|
if (n && t.current) {
|
|
2259
2267
|
const s = t.current;
|
|
2260
|
-
let
|
|
2261
|
-
const
|
|
2262
|
-
|
|
2268
|
+
let i;
|
|
2269
|
+
const a = new ResizeObserver(() => {
|
|
2270
|
+
i = requestAnimationFrame(() => {
|
|
2263
2271
|
const c = s.offsetHeight;
|
|
2264
2272
|
n.style.setProperty(
|
|
2265
2273
|
"--opencx-widget-height",
|
|
@@ -2267,35 +2275,35 @@ function No() {
|
|
|
2267
2275
|
);
|
|
2268
2276
|
});
|
|
2269
2277
|
});
|
|
2270
|
-
return
|
|
2271
|
-
cancelAnimationFrame(
|
|
2278
|
+
return a.observe(s), () => {
|
|
2279
|
+
cancelAnimationFrame(i), a.unobserve(s);
|
|
2272
2280
|
};
|
|
2273
2281
|
}
|
|
2274
2282
|
}, [e, o]), { observedElementRef: t };
|
|
2275
2283
|
}
|
|
2276
|
-
const
|
|
2284
|
+
const _o = pe.object({
|
|
2277
2285
|
name: pe.string().min(2),
|
|
2278
2286
|
email: pe.string().email()
|
|
2279
2287
|
});
|
|
2280
|
-
function
|
|
2281
|
-
var _, M,
|
|
2288
|
+
function Io() {
|
|
2289
|
+
var _, M, A, F, H, j, v, C;
|
|
2282
2290
|
const {
|
|
2283
2291
|
widgetCtx: { org: e }
|
|
2284
|
-
} =
|
|
2285
|
-
|
|
2292
|
+
} = R(), { setIsOpen: o } = K(), { createUnverifiedContact: t } = qt(), { isSmallScreen: n } = P(), s = b(), { theme: i } = X(), { t: a } = U(), { observedElementRef: c } = So();
|
|
2293
|
+
ke({
|
|
2286
2294
|
height: void 0,
|
|
2287
|
-
width:
|
|
2295
|
+
width: i.screens.welcome.width
|
|
2288
2296
|
});
|
|
2289
2297
|
const [l, h] = I(((_ = s.prefillUserData) == null ? void 0 : _.name) || ""), [x, u] = I(((M = s.prefillUserData) == null ? void 0 : M.email) || ""), m = (s.extraDataCollectionFields || []).filter(
|
|
2290
2298
|
(z) => z !== "name" && z !== "email" && !!z
|
|
2291
|
-
), [k, f] = I({}), [N, T] =
|
|
2299
|
+
), [k, f] = I({}), [N, T] = Dr(
|
|
2292
2300
|
async (z) => {
|
|
2293
2301
|
z.preventDefault();
|
|
2294
|
-
const
|
|
2295
|
-
|
|
2302
|
+
const L = _o.safeParse({ name: l, email: x });
|
|
2303
|
+
L.success && await t(
|
|
2296
2304
|
{
|
|
2297
|
-
email:
|
|
2298
|
-
non_verified_name:
|
|
2305
|
+
email: L.data.email,
|
|
2306
|
+
non_verified_name: L.data.name
|
|
2299
2307
|
},
|
|
2300
2308
|
// Only pass extra data if there is any
|
|
2301
2309
|
Object.values(k).filter(Boolean).length ? k : void 0
|
|
@@ -2311,7 +2319,7 @@ function _o() {
|
|
|
2311
2319
|
// Relative to the iframe
|
|
2312
2320
|
maxWidth: "100vw",
|
|
2313
2321
|
// Relative to the iframe
|
|
2314
|
-
minHeight:
|
|
2322
|
+
minHeight: i.screens.welcome.minHeight,
|
|
2315
2323
|
height: "100vh",
|
|
2316
2324
|
// Relative to the iframe
|
|
2317
2325
|
maxHeight: "100vh",
|
|
@@ -2337,17 +2345,17 @@ function _o() {
|
|
|
2337
2345
|
),
|
|
2338
2346
|
children: [
|
|
2339
2347
|
n && /* @__PURE__ */ r(w, { className: "absolute top-6 end-6", children: /* @__PURE__ */ r(y, { size: "selfless", onClick: () => o(!1), children: /* @__PURE__ */ r(fe, { className: "size-4" }) }) }),
|
|
2340
|
-
/* @__PURE__ */ r("div", { className: "flex items-center justify-between w-full mb-2", children: (
|
|
2348
|
+
/* @__PURE__ */ r("div", { className: "flex items-center justify-between w-full mb-2", children: (A = s.assets) != null && A.organizationLogo ? /* @__PURE__ */ r(
|
|
2341
2349
|
"img",
|
|
2342
2350
|
{
|
|
2343
|
-
src: (
|
|
2351
|
+
src: (F = s.assets) == null ? void 0 : F.organizationLogo,
|
|
2344
2352
|
alt: "Company Logo",
|
|
2345
2353
|
className: "h-8 w-auto object-contain"
|
|
2346
2354
|
}
|
|
2347
2355
|
) : /* @__PURE__ */ r("h2", { className: "font-bold text-sm", children: e.name }) }),
|
|
2348
2356
|
/* @__PURE__ */ d("div", { className: "space-y-2", children: [
|
|
2349
|
-
/* @__PURE__ */ r("h1", { className: "text-[1.75rem] font-semibold tracking-tight leading-none", children: ((
|
|
2350
|
-
/* @__PURE__ */ r("p", { className: "text-sm", children: ((C = (v = s.textContent) == null ? void 0 : v.welcomeScreen) == null ? void 0 : C.description) ||
|
|
2357
|
+
/* @__PURE__ */ r("h1", { className: "text-[1.75rem] font-semibold tracking-tight leading-none", children: ((j = (H = s.textContent) == null ? void 0 : H.welcomeScreen) == null ? void 0 : j.title) || a("welcome_screen_title") }),
|
|
2358
|
+
/* @__PURE__ */ r("p", { className: "text-sm", children: ((C = (v = s.textContent) == null ? void 0 : v.welcomeScreen) == null ? void 0 : C.description) || a("welcome_screen_description") })
|
|
2351
2359
|
] })
|
|
2352
2360
|
]
|
|
2353
2361
|
}
|
|
@@ -2369,7 +2377,7 @@ function _o() {
|
|
|
2369
2377
|
value: l,
|
|
2370
2378
|
onChange: (z) => h(z.target.value),
|
|
2371
2379
|
required: !0,
|
|
2372
|
-
placeholder:
|
|
2380
|
+
placeholder: a("your_name_placeholder"),
|
|
2373
2381
|
name: "name"
|
|
2374
2382
|
}
|
|
2375
2383
|
),
|
|
@@ -2380,7 +2388,7 @@ function _o() {
|
|
|
2380
2388
|
value: x,
|
|
2381
2389
|
onChange: (z) => u(z.target.value),
|
|
2382
2390
|
type: "email",
|
|
2383
|
-
placeholder:
|
|
2391
|
+
placeholder: a("your_email_placeholder"),
|
|
2384
2392
|
name: "email"
|
|
2385
2393
|
}
|
|
2386
2394
|
),
|
|
@@ -2388,11 +2396,11 @@ function _o() {
|
|
|
2388
2396
|
ie,
|
|
2389
2397
|
{
|
|
2390
2398
|
value: k[z],
|
|
2391
|
-
onChange: (
|
|
2399
|
+
onChange: (L) => f((ne) => ({
|
|
2392
2400
|
...ne,
|
|
2393
|
-
[z]:
|
|
2401
|
+
[z]: L.target.value
|
|
2394
2402
|
})),
|
|
2395
|
-
placeholder: `${z} (${
|
|
2403
|
+
placeholder: `${z} (${a("optional")})`
|
|
2396
2404
|
},
|
|
2397
2405
|
z
|
|
2398
2406
|
)),
|
|
@@ -2403,13 +2411,13 @@ function _o() {
|
|
|
2403
2411
|
className: "w-full",
|
|
2404
2412
|
size: "lg",
|
|
2405
2413
|
children: [
|
|
2406
|
-
N.loading ?
|
|
2407
|
-
/* @__PURE__ */ r(
|
|
2414
|
+
N.loading ? a("start_chat_button_loading") : a("start_chat_button"),
|
|
2415
|
+
/* @__PURE__ */ r(Nr, { className: "size-4 rtl:-scale-100" })
|
|
2408
2416
|
]
|
|
2409
2417
|
}
|
|
2410
2418
|
)
|
|
2411
2419
|
] }),
|
|
2412
|
-
/* @__PURE__ */ r(
|
|
2420
|
+
/* @__PURE__ */ r(Ft, {})
|
|
2413
2421
|
]
|
|
2414
2422
|
}
|
|
2415
2423
|
)
|
|
@@ -2419,7 +2427,7 @@ function _o() {
|
|
|
2419
2427
|
}
|
|
2420
2428
|
);
|
|
2421
2429
|
}
|
|
2422
|
-
function
|
|
2430
|
+
function Ht() {
|
|
2423
2431
|
const {
|
|
2424
2432
|
routerState: { screen: e }
|
|
2425
2433
|
} = $();
|
|
@@ -2432,7 +2440,7 @@ function Ft() {
|
|
|
2432
2440
|
fadeIn: "right",
|
|
2433
2441
|
className: "size-full",
|
|
2434
2442
|
snapExit: !0,
|
|
2435
|
-
children: /* @__PURE__ */ r(
|
|
2443
|
+
children: /* @__PURE__ */ r(Io, {})
|
|
2436
2444
|
},
|
|
2437
2445
|
e
|
|
2438
2446
|
);
|
|
@@ -2443,7 +2451,7 @@ function Ft() {
|
|
|
2443
2451
|
fadeIn: "right",
|
|
2444
2452
|
className: "size-full",
|
|
2445
2453
|
snapExit: !0,
|
|
2446
|
-
children: /* @__PURE__ */ r(
|
|
2454
|
+
children: /* @__PURE__ */ r(No, {})
|
|
2447
2455
|
},
|
|
2448
2456
|
e
|
|
2449
2457
|
);
|
|
@@ -2454,20 +2462,20 @@ function Ft() {
|
|
|
2454
2462
|
fadeIn: "right",
|
|
2455
2463
|
className: "size-full",
|
|
2456
2464
|
snapExit: !0,
|
|
2457
|
-
children: /* @__PURE__ */ r(
|
|
2465
|
+
children: /* @__PURE__ */ r(bo, {})
|
|
2458
2466
|
},
|
|
2459
2467
|
e
|
|
2460
2468
|
);
|
|
2461
2469
|
default:
|
|
2462
|
-
return D(e,
|
|
2470
|
+
return D(e, Ht.name), null;
|
|
2463
2471
|
}
|
|
2464
2472
|
})() }) });
|
|
2465
2473
|
}
|
|
2466
|
-
const
|
|
2474
|
+
const To = "4.0.19", Mo = `<!DOCTYPE html>
|
|
2467
2475
|
<html>
|
|
2468
2476
|
<head>
|
|
2469
2477
|
<style>
|
|
2470
|
-
${
|
|
2478
|
+
${Mt}
|
|
2471
2479
|
html, body {
|
|
2472
2480
|
height: 100%;
|
|
2473
2481
|
width: 100%;
|
|
@@ -2481,8 +2489,8 @@ html, body {
|
|
|
2481
2489
|
<body>
|
|
2482
2490
|
</body>
|
|
2483
2491
|
</html>`;
|
|
2484
|
-
function
|
|
2485
|
-
const { isOpen: e } = K(), { contentIframeRef: o } =
|
|
2492
|
+
function Wt() {
|
|
2493
|
+
const { isOpen: e } = K(), { contentIframeRef: o } = R(), { cssOverrides: t, inline: n } = b(), { theme: s, cssVars: i, computed: a } = X(), { dir: c } = U();
|
|
2486
2494
|
return /* @__PURE__ */ r(
|
|
2487
2495
|
Z.div,
|
|
2488
2496
|
{
|
|
@@ -2503,23 +2511,23 @@ function Ht() {
|
|
|
2503
2511
|
}
|
|
2504
2512
|
},
|
|
2505
2513
|
children: /* @__PURE__ */ d(
|
|
2506
|
-
|
|
2514
|
+
xt,
|
|
2507
2515
|
{
|
|
2508
2516
|
ref: o,
|
|
2509
|
-
initialContent:
|
|
2517
|
+
initialContent: Mo,
|
|
2510
2518
|
allowFullScreen: !0,
|
|
2511
2519
|
title: "OpenCX Live Chat",
|
|
2512
2520
|
style: {
|
|
2513
2521
|
// @ts-expect-error this is a valid css variable
|
|
2514
|
-
"--opencx-widget-width":
|
|
2515
|
-
"--opencx-widget-height":
|
|
2516
|
-
minWidth:
|
|
2522
|
+
"--opencx-widget-width": a.minWidth,
|
|
2523
|
+
"--opencx-widget-height": a.minHeight,
|
|
2524
|
+
minWidth: a.minWidth,
|
|
2517
2525
|
width: "var(--opencx-widget-width)",
|
|
2518
|
-
maxWidth:
|
|
2526
|
+
maxWidth: a.maxWidth,
|
|
2519
2527
|
// Relative to the viewport
|
|
2520
|
-
minHeight:
|
|
2528
|
+
minHeight: a.minHeight,
|
|
2521
2529
|
height: "var(--opencx-widget-height)",
|
|
2522
|
-
maxHeight:
|
|
2530
|
+
maxHeight: a.maxHeight,
|
|
2523
2531
|
// Relative to the viewport
|
|
2524
2532
|
overflow: "hidden",
|
|
2525
2533
|
/** outline is better than border because of box sizing; the outline wouldn't affect the content inside... the border will mess up how the children's border radius sits with the parent */
|
|
@@ -2540,20 +2548,20 @@ function Ht() {
|
|
|
2540
2548
|
"div",
|
|
2541
2549
|
{
|
|
2542
2550
|
style: {
|
|
2543
|
-
...
|
|
2551
|
+
...i,
|
|
2544
2552
|
zIndex: s.widgetContentContainer.zIndex
|
|
2545
2553
|
},
|
|
2546
|
-
"data-version":
|
|
2554
|
+
"data-version": To,
|
|
2547
2555
|
className: p(
|
|
2548
2556
|
"antialiased font-sans size-full overflow-hidden relative text-secondary-foreground isolate"
|
|
2549
2557
|
),
|
|
2550
2558
|
dir: c,
|
|
2551
2559
|
children: /* @__PURE__ */ r(
|
|
2552
|
-
|
|
2560
|
+
Lr,
|
|
2553
2561
|
{
|
|
2554
2562
|
delayDuration: 200,
|
|
2555
2563
|
disableHoverableContent: !0,
|
|
2556
|
-
children: /* @__PURE__ */ r(
|
|
2564
|
+
children: /* @__PURE__ */ r(Hr, { children: /* @__PURE__ */ r(Ht, {}) })
|
|
2557
2565
|
}
|
|
2558
2566
|
)
|
|
2559
2567
|
}
|
|
@@ -2564,7 +2572,7 @@ function Ht() {
|
|
|
2564
2572
|
}
|
|
2565
2573
|
);
|
|
2566
2574
|
}
|
|
2567
|
-
function
|
|
2575
|
+
function Do() {
|
|
2568
2576
|
const { theme: e } = X();
|
|
2569
2577
|
return /* @__PURE__ */ r(
|
|
2570
2578
|
ae.Content,
|
|
@@ -2580,11 +2588,11 @@ function Mo() {
|
|
|
2580
2588
|
sideOffset: e.widgetContentContainer.offset.side,
|
|
2581
2589
|
alignOffset: e.widgetContentContainer.offset.align,
|
|
2582
2590
|
avoidCollisions: !1,
|
|
2583
|
-
children: /* @__PURE__ */ r(
|
|
2591
|
+
children: /* @__PURE__ */ r(Wt, {})
|
|
2584
2592
|
}
|
|
2585
2593
|
);
|
|
2586
2594
|
}
|
|
2587
|
-
function
|
|
2595
|
+
function Ro({
|
|
2588
2596
|
className: e,
|
|
2589
2597
|
style: o
|
|
2590
2598
|
}) {
|
|
@@ -2623,7 +2631,7 @@ const jo = `<!DOCTYPE html>
|
|
|
2623
2631
|
<html>
|
|
2624
2632
|
<head>
|
|
2625
2633
|
<style>
|
|
2626
|
-
${
|
|
2634
|
+
${Mt}
|
|
2627
2635
|
html, body {
|
|
2628
2636
|
height: 100%;
|
|
2629
2637
|
width: 100%;
|
|
@@ -2636,11 +2644,11 @@ html, body {
|
|
|
2636
2644
|
<body>
|
|
2637
2645
|
</body>
|
|
2638
2646
|
</html>`;
|
|
2639
|
-
function
|
|
2640
|
-
var
|
|
2647
|
+
function Eo() {
|
|
2648
|
+
var i, a;
|
|
2641
2649
|
const { isOpen: e } = K(), { cssOverrides: o, assets: t } = b(), { theme: n, cssVars: s } = X();
|
|
2642
2650
|
return /* @__PURE__ */ d(
|
|
2643
|
-
|
|
2651
|
+
xt,
|
|
2644
2652
|
{
|
|
2645
2653
|
initialContent: jo,
|
|
2646
2654
|
style: {
|
|
@@ -2681,7 +2689,7 @@ function Ro() {
|
|
|
2681
2689
|
height: n.widgetTrigger.size.button,
|
|
2682
2690
|
width: n.widgetTrigger.size.button
|
|
2683
2691
|
},
|
|
2684
|
-
children: /* @__PURE__ */ r(
|
|
2692
|
+
children: /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r(
|
|
2685
2693
|
"div",
|
|
2686
2694
|
{
|
|
2687
2695
|
...g("trigger/btn"),
|
|
@@ -2702,7 +2710,7 @@ function Ro() {
|
|
|
2702
2710
|
initial: { rotate: 45 },
|
|
2703
2711
|
animate: { rotate: 0 }
|
|
2704
2712
|
},
|
|
2705
|
-
children: (
|
|
2713
|
+
children: (i = t == null ? void 0 : t.widgetTrigger) != null && i.closeIcon ? /* @__PURE__ */ r(
|
|
2706
2714
|
"img",
|
|
2707
2715
|
{
|
|
2708
2716
|
src: t.widgetTrigger.closeIcon,
|
|
@@ -2713,7 +2721,7 @@ function Ro() {
|
|
|
2713
2721
|
}
|
|
2714
2722
|
}
|
|
2715
2723
|
) : /* @__PURE__ */ r(
|
|
2716
|
-
|
|
2724
|
+
Sr,
|
|
2717
2725
|
{
|
|
2718
2726
|
style: {
|
|
2719
2727
|
width: n.widgetTrigger.size.icon,
|
|
@@ -2731,7 +2739,7 @@ function Ro() {
|
|
|
2731
2739
|
initial: { rotate: 45 },
|
|
2732
2740
|
animate: { rotate: 0 }
|
|
2733
2741
|
},
|
|
2734
|
-
children: (
|
|
2742
|
+
children: (a = t == null ? void 0 : t.widgetTrigger) != null && a.openIcon ? /* @__PURE__ */ r(
|
|
2735
2743
|
"img",
|
|
2736
2744
|
{
|
|
2737
2745
|
src: t.widgetTrigger.openIcon,
|
|
@@ -2742,7 +2750,7 @@ function Ro() {
|
|
|
2742
2750
|
}
|
|
2743
2751
|
}
|
|
2744
2752
|
) : /* @__PURE__ */ r(
|
|
2745
|
-
|
|
2753
|
+
Ro,
|
|
2746
2754
|
{
|
|
2747
2755
|
style: {
|
|
2748
2756
|
width: n.widgetTrigger.size.icon,
|
|
@@ -2764,7 +2772,7 @@ function Ro() {
|
|
|
2764
2772
|
}
|
|
2765
2773
|
);
|
|
2766
2774
|
}
|
|
2767
|
-
function
|
|
2775
|
+
function Oo() {
|
|
2768
2776
|
const { dir: e } = ue();
|
|
2769
2777
|
return /* @__PURE__ */ r(
|
|
2770
2778
|
ae.Anchor,
|
|
@@ -2781,19 +2789,19 @@ function Eo() {
|
|
|
2781
2789
|
function Po() {
|
|
2782
2790
|
const { isOpen: e, setIsOpen: o } = K();
|
|
2783
2791
|
return /* @__PURE__ */ d(ae.Root, { open: e, onOpenChange: o, children: [
|
|
2792
|
+
/* @__PURE__ */ r(Oo, {}),
|
|
2784
2793
|
/* @__PURE__ */ r(Eo, {}),
|
|
2785
|
-
/* @__PURE__ */ r(
|
|
2786
|
-
/* @__PURE__ */ r(Mo, {})
|
|
2794
|
+
/* @__PURE__ */ r(Do, {})
|
|
2787
2795
|
] });
|
|
2788
2796
|
}
|
|
2789
|
-
const
|
|
2797
|
+
const Ao = [
|
|
2790
2798
|
{
|
|
2791
2799
|
key: "loading",
|
|
2792
|
-
component:
|
|
2800
|
+
component: Br
|
|
2793
2801
|
},
|
|
2794
2802
|
{
|
|
2795
2803
|
key: "fallback",
|
|
2796
|
-
component:
|
|
2804
|
+
component: $r
|
|
2797
2805
|
},
|
|
2798
2806
|
{
|
|
2799
2807
|
key: "bot_message",
|
|
@@ -2803,7 +2811,7 @@ const Oo = [
|
|
|
2803
2811
|
key: "agent_message",
|
|
2804
2812
|
component: he
|
|
2805
2813
|
}
|
|
2806
|
-
],
|
|
2814
|
+
], Fo = {
|
|
2807
2815
|
get: async (e) => localStorage.getItem(e),
|
|
2808
2816
|
set: async (e, o) => {
|
|
2809
2817
|
localStorage.setItem(e, o);
|
|
@@ -2812,23 +2820,23 @@ const Oo = [
|
|
|
2812
2820
|
localStorage.removeItem(e);
|
|
2813
2821
|
}
|
|
2814
2822
|
};
|
|
2815
|
-
function
|
|
2823
|
+
function on({
|
|
2816
2824
|
options: e,
|
|
2817
2825
|
components: o = [],
|
|
2818
2826
|
loadingComponent: t
|
|
2819
2827
|
}) {
|
|
2820
2828
|
return /* @__PURE__ */ r(
|
|
2821
|
-
|
|
2829
|
+
Xt,
|
|
2822
2830
|
{
|
|
2823
|
-
components: [...
|
|
2831
|
+
components: [...Ao, ...o],
|
|
2824
2832
|
options: e,
|
|
2825
|
-
storage:
|
|
2833
|
+
storage: Fo,
|
|
2826
2834
|
loadingComponent: t,
|
|
2827
|
-
children: /* @__PURE__ */ r(
|
|
2835
|
+
children: /* @__PURE__ */ r(Ut, { children: e.inline ? /* @__PURE__ */ r(Wt, {}) : /* @__PURE__ */ r(Po, {}) })
|
|
2828
2836
|
}
|
|
2829
2837
|
);
|
|
2830
2838
|
}
|
|
2831
2839
|
export {
|
|
2832
|
-
|
|
2840
|
+
on as Widget
|
|
2833
2841
|
};
|
|
2834
2842
|
//# sourceMappingURL=index.js.map
|