@opencx/widget-react 4.0.18 → 4.0.20
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 +515 -487
- package/dist/index.js.map +1 -1
- package/dist/src/components/special-components/ChatBottomComponents.d.ts +3 -0
- package/dist/src/components/special-components/ChatBottomComponents.d.ts.map +1 -0
- package/dist/src/components/special-components/SessionResolvedComponent.d.ts.map +1 -1
- package/dist/src/hooks/useSpecialComponentProps.d.ts +5 -0
- package/dist/src/hooks/useSpecialComponentProps.d.ts.map +1 -0
- 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/dist/src/screens/chat/ChatMain.d.ts.map +1 -1
- package/package.json +5 -5
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 Bt, forwardRef as ct, useState as I, cloneElement as dt, createContext as Lt, useEffect as re, useContext as Yt, 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 j, useModes as ht, useCsat as mt, useUploadFiles as qt, useIsAwaitingBotReply as gt, useContact as Xt, WidgetProvider as Ut, WidgetTriggerProvider as Vt } from "@opencx/widget-react-headless";
|
|
6
|
+
import { clsx as Gt } from "clsx";
|
|
7
|
+
import { twMerge as Kt } 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 Qt } from "@radix-ui/react-slot";
|
|
10
|
+
import { cva as Zt } from "class-variance-authority";
|
|
11
|
+
import { X as Jt, CircleDashedIcon as er, XIcon as fe, SquareXIcon as tr, SquareCheckBigIcon as rr, SquareCheckIcon as or, ShrinkIcon as nr, Minimize2Icon as sr, MinimizeIcon as ir, Maximize2Icon as ar, MaximizeIcon as lr, ExpandIcon as cr, CircleXIcon as dr, CircleCheckBigIcon as pr, CircleCheckIcon as wt, CheckCheckIcon as hr, CheckIcon as mr, ChevronLeftIcon as gr, LoaderIcon as wr, ArrowUpIcon as ut, PaperclipIcon as ur, ImageIcon as fr, CircleDashed as vr, AlertCircle as xr, Loader2 as br, FileAudio2Icon as yr, FileVideo2Icon as kr, FileIcon as Cr, UserRoundIcon as zr, ChevronRightIcon as Nr, SendHorizontal as Sr, ChevronDownIcon as _r } from "lucide-react";
|
|
12
|
+
import ft from "remark-gfm";
|
|
13
|
+
import Ir from "react-markdown";
|
|
14
|
+
import vt from "rehype-raw";
|
|
15
|
+
import { isExhaustive as D, isSupportedLanguage as Tr, getTranslation as Mr } 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 Dr } from "react-dropzone";
|
|
21
|
+
import Rr 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
|
|
27
|
+
return Kt(Gt(e));
|
|
28
28
|
}
|
|
29
29
|
const V = {
|
|
30
30
|
x: 2,
|
|
31
31
|
y: 2
|
|
32
|
-
},
|
|
33
|
-
|
|
32
|
+
}, W = Bt(
|
|
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
|
+
), E = F * V.x, v = H * V.y;
|
|
48
|
+
l({ x: E, 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,44 +78,44 @@ const V = {
|
|
|
78
78
|
}
|
|
79
79
|
)
|
|
80
80
|
);
|
|
81
|
-
|
|
82
|
-
const
|
|
81
|
+
W.displayName = "Wobble";
|
|
82
|
+
const jr = 10, Er = (e, o, t) => ({
|
|
83
83
|
initial: { opacity: 0, x: -e, ...o.initial },
|
|
84
84
|
animate: { opacity: 1, x: 0, ...o.animate, transition: { delay: t } },
|
|
85
85
|
exit: { opacity: 0, x: e, ...o.exit }
|
|
86
|
-
}),
|
|
86
|
+
}), Or = (e, o, t) => ({
|
|
87
87
|
initial: { opacity: 0, x: e, ...o.initial },
|
|
88
88
|
animate: { opacity: 1, x: 0, ...o.animate, transition: { delay: t } },
|
|
89
89
|
exit: { opacity: 0, x: -e, ...o.exit }
|
|
90
|
-
}),
|
|
90
|
+
}), Pr = (e, o, t) => ({
|
|
91
91
|
initial: { opacity: 0, y: e, ...o.initial },
|
|
92
92
|
animate: { opacity: 1, y: 0, ...o.animate, transition: { delay: t } },
|
|
93
93
|
exit: { opacity: 0, y: -e, ...o.exit }
|
|
94
|
-
}),
|
|
94
|
+
}), Ar = (e, o, t) => ({
|
|
95
95
|
initial: { opacity: 0, y: -e, ...o.initial },
|
|
96
96
|
animate: { opacity: 1, y: 0, ...o.animate, transition: { delay: t } },
|
|
97
97
|
exit: { opacity: 0, y: e, ...o.exit }
|
|
98
|
-
}),
|
|
99
|
-
right:
|
|
100
|
-
left:
|
|
101
|
-
up:
|
|
102
|
-
down:
|
|
103
|
-
}, w =
|
|
98
|
+
}), Fr = {
|
|
99
|
+
right: Er,
|
|
100
|
+
left: Or,
|
|
101
|
+
up: Pr,
|
|
102
|
+
down: Ar
|
|
103
|
+
}, w = ct(
|
|
104
104
|
({
|
|
105
105
|
fadeIn: e = "down",
|
|
106
|
-
distance: o =
|
|
106
|
+
distance: o = jr,
|
|
107
107
|
children: t,
|
|
108
108
|
snapExit: n = !1,
|
|
109
109
|
overrides: s = {},
|
|
110
|
-
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 ? Fr[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 Hr = Zt(
|
|
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 ? Qt : "button",
|
|
160
160
|
{
|
|
161
161
|
...g("ui_lib/btn"),
|
|
162
162
|
"data-variant": o,
|
|
163
|
-
className: p(
|
|
163
|
+
className: p(Hr({ 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 = Lt(null);
|
|
170
|
+
function Wr({ 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($r, {}),
|
|
184
184
|
e
|
|
185
185
|
]
|
|
186
186
|
}
|
|
187
187
|
);
|
|
188
188
|
}
|
|
189
189
|
function ce() {
|
|
190
|
-
const e =
|
|
190
|
+
const e = Yt(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 $r() {
|
|
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(Jt, { 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
|
+
Ir,
|
|
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 Br(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 Lr({ 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))}', Yr = oe.Provider, qr = oe.Root, Xr = 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(qr, { children: [
|
|
534
|
+
/* @__PURE__ */ r(Xr, { 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, E, 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" : ((E = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : E.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: Ur({
|
|
670
670
|
palette: h.palette,
|
|
671
671
|
primary: h.primaryColor
|
|
672
672
|
})
|
|
673
673
|
};
|
|
674
674
|
}
|
|
675
|
-
function
|
|
675
|
+
function Ur({
|
|
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 = er;
|
|
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 mr;
|
|
798
798
|
case "CheckCheck":
|
|
799
|
-
return
|
|
799
|
+
return hr;
|
|
800
800
|
case "CircleCheck":
|
|
801
|
-
return
|
|
801
|
+
return wt;
|
|
802
802
|
case "CircleCheckBig":
|
|
803
|
-
return
|
|
803
|
+
return pr;
|
|
804
804
|
case "CircleX":
|
|
805
|
-
return
|
|
805
|
+
return dr;
|
|
806
806
|
case "Expand":
|
|
807
|
-
return
|
|
807
|
+
return cr;
|
|
808
808
|
case "Maximize":
|
|
809
|
-
return
|
|
809
|
+
return lr;
|
|
810
810
|
case "Maximize2":
|
|
811
|
-
return
|
|
811
|
+
return ar;
|
|
812
812
|
case "Minimize":
|
|
813
|
-
return
|
|
813
|
+
return ir;
|
|
814
814
|
case "Minimize2":
|
|
815
|
-
return
|
|
815
|
+
return sr;
|
|
816
816
|
case "Shrink":
|
|
817
|
-
return
|
|
817
|
+
return nr;
|
|
818
818
|
case "SquareCheck":
|
|
819
|
-
return
|
|
819
|
+
return or;
|
|
820
820
|
case "SquareCheckBig":
|
|
821
|
-
return
|
|
821
|
+
return rr;
|
|
822
822
|
case "SquareX":
|
|
823
|
-
return
|
|
823
|
+
return tr;
|
|
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 Vr(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 Gr() {
|
|
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(gr, { className: "size-4 rtl:-scale-100" })
|
|
879
879
|
}
|
|
880
880
|
);
|
|
881
881
|
}
|
|
882
|
-
function
|
|
882
|
+
function Kr({
|
|
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(Kr, { 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 Qr = {
|
|
1069
1069
|
functionality: "close-widget",
|
|
1070
1070
|
hideOnLargeScreen: !0,
|
|
1071
1071
|
icon: "X"
|
|
1072
1072
|
};
|
|
1073
|
-
function
|
|
1073
|
+
function Zr() {
|
|
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: Qr }) : /* @__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 = Vr(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(Gr, {}),
|
|
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(Zr, {})
|
|
1102
1102
|
] }) });
|
|
1103
1103
|
}
|
|
1104
1104
|
function Pt({ className: e }) {
|
|
1105
|
-
return /* @__PURE__ */ r(
|
|
1105
|
+
return /* @__PURE__ */ r(wr, { className: p("size-4 animate-spin", e) });
|
|
1106
1106
|
}
|
|
1107
|
-
function
|
|
1107
|
+
function Jr() {
|
|
1108
1108
|
const {
|
|
1109
1109
|
messagesState: { isInitialFetchLoading: e }
|
|
1110
|
-
} =
|
|
1110
|
+
} = j(), { 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 eo() {
|
|
1116
|
+
const { activeMode: e, Component: o } = ht(), { sendMessage: t } = j(), { 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 O = 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
|
+
O.displayName = "MotionDiv__VerticalReveal";
|
|
1155
|
+
const to = [
|
|
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 ro() {
|
|
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(O, { 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(O, { 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: to.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(O, { 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 = Tr(o.language) ? o.language : "en";
|
|
1272
1272
|
return {
|
|
1273
|
-
t: (n) =>
|
|
1273
|
+
t: (n) => Mr(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 } = j(), 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 oo() {
|
|
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(O, { children: /* @__PURE__ */ r("div", { className: "pb-2 text-center text-xs", children: /* @__PURE__ */ r(ve, { children: s.message }) }) }, `${s.message}-${i}`)) });
|
|
1322
|
+
}
|
|
1323
|
+
function no({
|
|
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(br, { className: "size-4 animate-spin" });
|
|
1335
1339
|
case "error":
|
|
1336
|
-
return /* @__PURE__ */ r(
|
|
1340
|
+
return /* @__PURE__ */ r(xr, { 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(yr, {}) : l === "video" ? /* @__PURE__ */ r(kr, {}) : /* @__PURE__ */ r(Cr, {});
|
|
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 so() {
|
|
1395
|
+
var E;
|
|
1396
|
+
const { isSmallScreen: e } = P(), o = le(null), { sendMessage: t } = j(), { 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
|
+
} = qt(), k = !!((E = n.session) != null && E.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
|
+
} = Dr({
|
|
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
|
+
no,
|
|
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(ur, { className: "size-4" }) }, "paper-clip") : /* @__PURE__ */ r(w, { children: /* @__PURE__ */ r(fr, { 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(vr, { 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 io() {
|
|
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(O, { children: [
|
|
1564
|
+
/* @__PURE__ */ r(ro, {}),
|
|
1565
|
+
/* @__PURE__ */ r(S, { mode: "wait", children: t && /* @__PURE__ */ r(O, { children: /* @__PURE__ */ r(at, {}) }, "new-conv-or-back-to-convs-button") })
|
|
1566
|
+
] }, "csat") : /* @__PURE__ */ d(O, { 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 ao() {
|
|
1575
|
+
var a;
|
|
1576
|
+
const { initialQuestions: e, initialQuestionsPosition: o, thisWasHelpfulOrNot: t } = b(), { sessionState: n } = B(), { messagesState: s } = j(), 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(O, { children: [
|
|
1578
|
+
/* @__PURE__ */ r(io, {}),
|
|
1579
|
+
/* @__PURE__ */ r(it, {})
|
|
1580
|
+
] }, "session-closed") : /* @__PURE__ */ d(O, { children: [
|
|
1581
|
+
s.lastAIResMightSolveUserIssue && (t == null ? void 0 : t.enabled) !== !1 && /* @__PURE__ */ r(oo, {}),
|
|
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(so, {}),
|
|
1590
|
+
/* @__PURE__ */ r(it, {})
|
|
1591
|
+
] }, "chat-input") }) });
|
|
1584
1592
|
}
|
|
1585
|
-
function
|
|
1593
|
+
function lo({
|
|
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
|
+
lo,
|
|
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,32 @@ function ze({
|
|
|
1723
1731
|
}
|
|
1724
1732
|
);
|
|
1725
1733
|
}
|
|
1726
|
-
function
|
|
1727
|
-
var s;
|
|
1734
|
+
function Ft() {
|
|
1728
1735
|
const {
|
|
1729
1736
|
widgetCtx: { org: e }
|
|
1730
|
-
} =
|
|
1737
|
+
} = R(), {
|
|
1731
1738
|
sessionState: { session: o }
|
|
1732
|
-
} =
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
return
|
|
1739
|
+
} = B(), t = b(), {
|
|
1740
|
+
messagesState: { messages: n }
|
|
1741
|
+
} = j();
|
|
1742
|
+
return {
|
|
1743
|
+
props: {
|
|
1744
|
+
react: q,
|
|
1745
|
+
org: e,
|
|
1746
|
+
session: o,
|
|
1747
|
+
config: t,
|
|
1748
|
+
messages: n
|
|
1749
|
+
}
|
|
1750
|
+
};
|
|
1736
1751
|
}
|
|
1737
|
-
function
|
|
1752
|
+
function co() {
|
|
1753
|
+
var t, n;
|
|
1754
|
+
const { props: e } = Ft();
|
|
1755
|
+
if ((t = e.session) != null && t.isOpened || !e.session) return null;
|
|
1756
|
+
const o = (n = e.config.specialComponents) == null ? void 0 : n.onSessionResolved;
|
|
1757
|
+
return o ? /* @__PURE__ */ r(o, { ...e }) : null;
|
|
1758
|
+
}
|
|
1759
|
+
function po({
|
|
1738
1760
|
message: e,
|
|
1739
1761
|
isFirstInGroup: o,
|
|
1740
1762
|
isLastInGroup: t,
|
|
@@ -1747,7 +1769,7 @@ function lo({
|
|
|
1747
1769
|
...g("chat/user_msg/root"),
|
|
1748
1770
|
className: "w-5/6 flex flex-col items-end gap-1",
|
|
1749
1771
|
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((
|
|
1772
|
+
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
1773
|
e.content.length > 0 && /* @__PURE__ */ r(
|
|
1752
1774
|
"div",
|
|
1753
1775
|
{
|
|
@@ -1774,7 +1796,7 @@ function lo({
|
|
|
1774
1796
|
}
|
|
1775
1797
|
);
|
|
1776
1798
|
}
|
|
1777
|
-
function
|
|
1799
|
+
function ho({
|
|
1778
1800
|
messages: e
|
|
1779
1801
|
}) {
|
|
1780
1802
|
return /* @__PURE__ */ d(
|
|
@@ -1784,7 +1806,7 @@ function co({
|
|
|
1784
1806
|
className: p("group", "flex flex-col gap-1 justify-end items-end"),
|
|
1785
1807
|
children: [
|
|
1786
1808
|
e.map((o, t, n) => /* @__PURE__ */ r(
|
|
1787
|
-
|
|
1809
|
+
po,
|
|
1788
1810
|
{
|
|
1789
1811
|
message: o,
|
|
1790
1812
|
isFirstInGroup: t === 0,
|
|
@@ -1793,48 +1815,48 @@ function co({
|
|
|
1793
1815
|
},
|
|
1794
1816
|
o.id
|
|
1795
1817
|
)),
|
|
1796
|
-
/* @__PURE__ */ r(
|
|
1818
|
+
/* @__PURE__ */ r(At, { messages: e, containerClassName: "ms-auto" })
|
|
1797
1819
|
]
|
|
1798
1820
|
}
|
|
1799
1821
|
);
|
|
1800
1822
|
}
|
|
1801
|
-
function
|
|
1823
|
+
function mo(e) {
|
|
1802
1824
|
const o = [];
|
|
1803
1825
|
let t = null;
|
|
1804
1826
|
return e.forEach((n) => {
|
|
1805
|
-
var s,
|
|
1806
|
-
(!t || ((s = t[0]) == null ? void 0 : s.type) !== n.type) && (t = [], o.push(t)), ((
|
|
1827
|
+
var s, i, a, c, l, h;
|
|
1828
|
+
(!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
1829
|
}), o;
|
|
1808
1830
|
}
|
|
1809
|
-
function
|
|
1831
|
+
function go(e) {
|
|
1810
1832
|
var o;
|
|
1811
1833
|
return ((o = e == null ? void 0 : e[0]) == null ? void 0 : o.type) === "USER";
|
|
1812
1834
|
}
|
|
1813
|
-
function
|
|
1835
|
+
function wo(e) {
|
|
1814
1836
|
var o;
|
|
1815
1837
|
return ((o = e == null ? void 0 : e[0]) == null ? void 0 : o.type) === "AI";
|
|
1816
1838
|
}
|
|
1817
|
-
function
|
|
1839
|
+
function uo(e) {
|
|
1818
1840
|
var o;
|
|
1819
1841
|
return ((o = e == null ? void 0 : e[0]) == null ? void 0 : o.type) === "AGENT";
|
|
1820
1842
|
}
|
|
1821
|
-
function
|
|
1843
|
+
function fo() {
|
|
1822
1844
|
const {
|
|
1823
1845
|
messagesState: { messages: e }
|
|
1824
|
-
} =
|
|
1846
|
+
} = j(), {
|
|
1825
1847
|
advancedInitialMessages: o = [],
|
|
1826
1848
|
initialQuestionsPosition: t,
|
|
1827
1849
|
initialQuestions: n,
|
|
1828
1850
|
bot: s
|
|
1829
1851
|
} = b();
|
|
1830
1852
|
return /* @__PURE__ */ r(te, { children: e.length === 0 && o.length > 0 && /* @__PURE__ */ r(
|
|
1831
|
-
|
|
1853
|
+
Ne,
|
|
1832
1854
|
{
|
|
1833
1855
|
messages: o.map(
|
|
1834
|
-
({ message:
|
|
1856
|
+
({ message: i }, a) => ({
|
|
1835
1857
|
component: "bot_message",
|
|
1836
|
-
data: { message:
|
|
1837
|
-
id: `${
|
|
1858
|
+
data: { message: i },
|
|
1859
|
+
id: `${a}-${i}`,
|
|
1838
1860
|
type: "AI",
|
|
1839
1861
|
timestamp: null
|
|
1840
1862
|
})
|
|
@@ -1844,33 +1866,33 @@ function wo() {
|
|
|
1844
1866
|
}
|
|
1845
1867
|
) });
|
|
1846
1868
|
}
|
|
1847
|
-
function
|
|
1869
|
+
function vo() {
|
|
1848
1870
|
const {
|
|
1849
1871
|
messagesState: { messages: e }
|
|
1850
|
-
} =
|
|
1872
|
+
} = j(), { chatBannerItems: o } = b();
|
|
1851
1873
|
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(
|
|
1874
|
+
({ message: t, persistent: n }, s) => e.length > 0 && !n ? null : /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(ve, { children: t }) }, `${t}-${s}`)
|
|
1853
1875
|
) });
|
|
1854
1876
|
}
|
|
1855
|
-
function
|
|
1877
|
+
function xo() {
|
|
1856
1878
|
const {
|
|
1857
1879
|
messagesState: { messages: e }
|
|
1858
|
-
} =
|
|
1880
|
+
} = j(), o = b(), {
|
|
1859
1881
|
advancedInitialMessages: t = [],
|
|
1860
1882
|
initialQuestions: n,
|
|
1861
1883
|
initialQuestionsPosition: s
|
|
1862
|
-
} = o,
|
|
1863
|
-
var
|
|
1864
|
-
return t.length ? [] : e.length ? [] : (
|
|
1884
|
+
} = o, i = (() => {
|
|
1885
|
+
var a;
|
|
1886
|
+
return t.length ? [] : e.length ? [] : (a = o.initialMessages) != null && a.length ? o.initialMessages : ["Hello, how can I help you?"];
|
|
1865
1887
|
})();
|
|
1866
|
-
return /* @__PURE__ */ r(te, { children: e.length === 0 &&
|
|
1867
|
-
|
|
1888
|
+
return /* @__PURE__ */ r(te, { children: e.length === 0 && i.length > 0 && /* @__PURE__ */ r(
|
|
1889
|
+
Ne,
|
|
1868
1890
|
{
|
|
1869
|
-
messages:
|
|
1870
|
-
(
|
|
1891
|
+
messages: i.map(
|
|
1892
|
+
(a, c) => ({
|
|
1871
1893
|
component: "bot_message",
|
|
1872
|
-
data: { message:
|
|
1873
|
-
id: `${c}-${
|
|
1894
|
+
data: { message: a },
|
|
1895
|
+
id: `${c}-${a}`,
|
|
1874
1896
|
type: "AI",
|
|
1875
1897
|
timestamp: null
|
|
1876
1898
|
})
|
|
@@ -1880,18 +1902,23 @@ function fo() {
|
|
|
1880
1902
|
}
|
|
1881
1903
|
) });
|
|
1882
1904
|
}
|
|
1883
|
-
function
|
|
1905
|
+
function bo() {
|
|
1906
|
+
var t;
|
|
1907
|
+
const { props: e } = Ft(), o = (t = e.config.specialComponents) == null ? void 0 : t.chatBottomComponents;
|
|
1908
|
+
return o ? /* @__PURE__ */ r("div", { children: o.map(({ key: n, component: s }) => /* @__PURE__ */ r(s, { ...e }, n)) }) : null;
|
|
1909
|
+
}
|
|
1910
|
+
function yo() {
|
|
1884
1911
|
const {
|
|
1885
1912
|
messagesState: { messages: e }
|
|
1886
|
-
} =
|
|
1887
|
-
() =>
|
|
1913
|
+
} = j(), { isAwaitingBotReply: o } = gt(), { componentStore: t } = R(), n = b(), s = pt(
|
|
1914
|
+
() => mo(e),
|
|
1888
1915
|
[e]
|
|
1889
|
-
),
|
|
1916
|
+
), i = t.getComponent(
|
|
1890
1917
|
"loading"
|
|
1891
|
-
),
|
|
1918
|
+
), a = le(null);
|
|
1892
1919
|
function c() {
|
|
1893
1920
|
setTimeout(() => {
|
|
1894
|
-
const l =
|
|
1921
|
+
const l = a.current;
|
|
1895
1922
|
l && (l.scrollTop = l.scrollHeight);
|
|
1896
1923
|
}, 0);
|
|
1897
1924
|
}
|
|
@@ -1901,22 +1928,22 @@ function vo() {
|
|
|
1901
1928
|
"div",
|
|
1902
1929
|
{
|
|
1903
1930
|
...g("chat/msgs/root"),
|
|
1904
|
-
ref:
|
|
1931
|
+
ref: a,
|
|
1905
1932
|
className: "max-h-full scroll-smooth relative flex-1 py-2 px-4 flex flex-col gap-2 overflow-auto",
|
|
1906
1933
|
children: [
|
|
1907
|
-
/* @__PURE__ */ r(
|
|
1908
|
-
/* @__PURE__ */ r(wo, {}),
|
|
1934
|
+
/* @__PURE__ */ r(vo, {}),
|
|
1909
1935
|
/* @__PURE__ */ r(fo, {}),
|
|
1936
|
+
/* @__PURE__ */ r(xo, {}),
|
|
1910
1937
|
s.map((l) => {
|
|
1911
1938
|
var u, m, k;
|
|
1912
1939
|
const h = (u = l == null ? void 0 : l[0]) == null ? void 0 : u.type, x = (m = l[0]) == null ? void 0 : m.id;
|
|
1913
1940
|
if (!h || !x) return null;
|
|
1914
|
-
if (
|
|
1915
|
-
return /* @__PURE__ */ r(
|
|
1916
|
-
if (
|
|
1941
|
+
if (go(l))
|
|
1942
|
+
return /* @__PURE__ */ r(ho, { messages: l }, x);
|
|
1943
|
+
if (wo(l) || uo(l)) {
|
|
1917
1944
|
const f = (k = l[0]) == null ? void 0 : k.agent;
|
|
1918
1945
|
return /* @__PURE__ */ r(
|
|
1919
|
-
|
|
1946
|
+
Ne,
|
|
1920
1947
|
{
|
|
1921
1948
|
messages: l,
|
|
1922
1949
|
agent: f
|
|
@@ -1926,19 +1953,20 @@ function vo() {
|
|
|
1926
1953
|
}
|
|
1927
1954
|
return null;
|
|
1928
1955
|
}),
|
|
1929
|
-
o &&
|
|
1930
|
-
/* @__PURE__ */ r(
|
|
1956
|
+
o && i && /* @__PURE__ */ r(i, { agent: n.bot }),
|
|
1957
|
+
/* @__PURE__ */ r(bo, {}),
|
|
1958
|
+
/* @__PURE__ */ r(co, {})
|
|
1931
1959
|
]
|
|
1932
1960
|
}
|
|
1933
1961
|
);
|
|
1934
1962
|
}
|
|
1935
|
-
function
|
|
1963
|
+
function ko() {
|
|
1936
1964
|
const {
|
|
1937
1965
|
messagesState: { isInitialFetchLoading: e }
|
|
1938
|
-
} =
|
|
1966
|
+
} = j(), {
|
|
1939
1967
|
sessionState: { session: o }
|
|
1940
|
-
} =
|
|
1941
|
-
|
|
1968
|
+
} = B(), { isCanvasOpen: t } = Jr(), { theme: n } = X();
|
|
1969
|
+
ke({
|
|
1942
1970
|
width: t ? n.screens.chat.withCanvas.width : n.screens.chat.width,
|
|
1943
1971
|
height: t ? n.screens.chat.withCanvas.height : n.screens.chat.height
|
|
1944
1972
|
});
|
|
@@ -1959,7 +1987,7 @@ function xo() {
|
|
|
1959
1987
|
// Relative to the iframe
|
|
1960
1988
|
},
|
|
1961
1989
|
children: /* @__PURE__ */ d("div", { className: "size-full justify-between flex flex-col", children: [
|
|
1962
|
-
/* @__PURE__ */ r(
|
|
1990
|
+
/* @__PURE__ */ r(Ot, {}),
|
|
1963
1991
|
/* @__PURE__ */ r(S, { mode: "wait", children: e ? /* @__PURE__ */ r(
|
|
1964
1992
|
w,
|
|
1965
1993
|
{
|
|
@@ -1986,8 +2014,8 @@ function xo() {
|
|
|
1986
2014
|
transitionDuration: n.screens.chat.withCanvas.transitionDuration
|
|
1987
2015
|
},
|
|
1988
2016
|
children: [
|
|
1989
|
-
/* @__PURE__ */ r(
|
|
1990
|
-
/* @__PURE__ */ r(
|
|
2017
|
+
/* @__PURE__ */ r(yo, {}),
|
|
2018
|
+
/* @__PURE__ */ r(ao, {})
|
|
1991
2019
|
]
|
|
1992
2020
|
}
|
|
1993
2021
|
),
|
|
@@ -2003,7 +2031,7 @@ function xo() {
|
|
|
2003
2031
|
transitionTimingFunction: n.screens.chat.withCanvas.transitionTimingFunction,
|
|
2004
2032
|
transitionDuration: n.screens.chat.withCanvas.transitionDuration
|
|
2005
2033
|
},
|
|
2006
|
-
children: /* @__PURE__ */ r(
|
|
2034
|
+
children: /* @__PURE__ */ r(eo, {})
|
|
2007
2035
|
}
|
|
2008
2036
|
)
|
|
2009
2037
|
]
|
|
@@ -2014,7 +2042,7 @@ function xo() {
|
|
|
2014
2042
|
}
|
|
2015
2043
|
);
|
|
2016
2044
|
}
|
|
2017
|
-
function
|
|
2045
|
+
function Co({
|
|
2018
2046
|
className: e,
|
|
2019
2047
|
...o
|
|
2020
2048
|
}) {
|
|
@@ -2026,7 +2054,7 @@ function bo({
|
|
|
2026
2054
|
}
|
|
2027
2055
|
);
|
|
2028
2056
|
}
|
|
2029
|
-
function
|
|
2057
|
+
function zo({ className: e }) {
|
|
2030
2058
|
return /* @__PURE__ */ r(
|
|
2031
2059
|
"svg",
|
|
2032
2060
|
{
|
|
@@ -2046,7 +2074,7 @@ function yo({ className: e }) {
|
|
|
2046
2074
|
}
|
|
2047
2075
|
);
|
|
2048
2076
|
}
|
|
2049
|
-
function
|
|
2077
|
+
function Ht({ className: e }) {
|
|
2050
2078
|
const { token: o } = b();
|
|
2051
2079
|
return /* @__PURE__ */ r(
|
|
2052
2080
|
"div",
|
|
@@ -2055,7 +2083,7 @@ function At({ className: e }) {
|
|
|
2055
2083
|
"flex items-center justify-center gap-2 p-2 pt-0",
|
|
2056
2084
|
e
|
|
2057
2085
|
),
|
|
2058
|
-
children: /* @__PURE__ */ r(
|
|
2086
|
+
children: /* @__PURE__ */ r(W, { children: /* @__PURE__ */ d(
|
|
2059
2087
|
"a",
|
|
2060
2088
|
{
|
|
2061
2089
|
href: `https://open.cx/?ref=${o}`,
|
|
@@ -2070,7 +2098,7 @@ function At({ className: e }) {
|
|
|
2070
2098
|
/* @__PURE__ */ r("span", { children: "Powered by" }),
|
|
2071
2099
|
/* @__PURE__ */ r("span", { children: " " }),
|
|
2072
2100
|
/* @__PURE__ */ d("span", { className: "flex items-center gap-[1px]", children: [
|
|
2073
|
-
/* @__PURE__ */ r("span", { children: /* @__PURE__ */ r(
|
|
2101
|
+
/* @__PURE__ */ r("span", { children: /* @__PURE__ */ r(zo, { className: "size-3 inline-block" }) }),
|
|
2074
2102
|
/* @__PURE__ */ r("span", { className: "font-semibold", children: "open" })
|
|
2075
2103
|
] })
|
|
2076
2104
|
]
|
|
@@ -2079,14 +2107,14 @@ function At({ className: e }) {
|
|
|
2079
2107
|
}
|
|
2080
2108
|
);
|
|
2081
2109
|
}
|
|
2082
|
-
function
|
|
2110
|
+
function No({ children: e }) {
|
|
2083
2111
|
return /* @__PURE__ */ r("p", { className: "ps-4 text-xs text-muted-foreground/75 uppercase font-semibold tracking-tight", children: e });
|
|
2084
2112
|
}
|
|
2085
|
-
function
|
|
2113
|
+
function lt({
|
|
2086
2114
|
session: e,
|
|
2087
2115
|
className: o
|
|
2088
2116
|
}) {
|
|
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",
|
|
2117
|
+
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
2118
|
return /* @__PURE__ */ d(
|
|
2091
2119
|
y,
|
|
2092
2120
|
{
|
|
@@ -2099,35 +2127,35 @@ function it({
|
|
|
2099
2127
|
onClick: () => n(e.id),
|
|
2100
2128
|
children: [
|
|
2101
2129
|
/* @__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(
|
|
2130
|
+
/* @__PURE__ */ r(S, { mode: "wait", children: /* @__PURE__ */ r(w, { snapExit: !0, children: /* @__PURE__ */ d(xe, { className: "size-10", children: [
|
|
2131
|
+
/* @__PURE__ */ r(be, { src: i, alt: "Agent Icon" }),
|
|
2132
|
+
/* @__PURE__ */ r(ye, { children: /* @__PURE__ */ r(zr, { className: "size-4" }) })
|
|
2105
2133
|
] }) }) }),
|
|
2106
2134
|
/* @__PURE__ */ d("div", { className: "flex-1", children: [
|
|
2107
2135
|
/* @__PURE__ */ r(S, { mode: "wait", children: /* @__PURE__ */ r(w, { snapExit: !0, children: s }, s) }),
|
|
2108
2136
|
/* @__PURE__ */ r(S, { mode: "wait", children: e.lastMessage ? /* @__PURE__ */ r(w, { snapExit: !0, children: /* @__PURE__ */ r(
|
|
2109
|
-
|
|
2137
|
+
Tt,
|
|
2110
2138
|
{
|
|
2111
|
-
remarkPlugins: [
|
|
2112
|
-
rehypePlugins: [
|
|
2139
|
+
remarkPlugins: [ft],
|
|
2140
|
+
rehypePlugins: [vt],
|
|
2113
2141
|
className: "line-clamp-1 overflow-hidden text-ellipsis text-xs text-muted-foreground",
|
|
2114
2142
|
children: e.lastMessage
|
|
2115
2143
|
}
|
|
2116
|
-
) }, e.lastMessage || "content") : /* @__PURE__ */ r(w, { className: "w-1/2", snapExit: !0, children: /* @__PURE__ */ r(
|
|
2144
|
+
) }, e.lastMessage || "content") : /* @__PURE__ */ r(w, { className: "w-1/2", snapExit: !0, children: /* @__PURE__ */ r(Co, { className: "h-4 w-full" }) }, "skeleton") })
|
|
2117
2145
|
] })
|
|
2118
2146
|
] }),
|
|
2119
|
-
/* @__PURE__ */ r(
|
|
2147
|
+
/* @__PURE__ */ r(Nr, { className: "size-4 text-muted-foreground shrink-0 rtl:-scale-100" })
|
|
2120
2148
|
]
|
|
2121
2149
|
}
|
|
2122
2150
|
);
|
|
2123
2151
|
}
|
|
2124
|
-
function
|
|
2152
|
+
function So() {
|
|
2125
2153
|
const { t: e } = U(), { toChatScreen: o } = $(), {
|
|
2126
2154
|
sessionsState: { data: t, isInitialFetchLoading: n },
|
|
2127
2155
|
openSessions: s,
|
|
2128
|
-
closedSessions:
|
|
2129
|
-
canCreateNewSession:
|
|
2130
|
-
} =
|
|
2156
|
+
closedSessions: i,
|
|
2157
|
+
canCreateNewSession: a
|
|
2158
|
+
} = B();
|
|
2131
2159
|
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
2160
|
w,
|
|
2133
2161
|
{
|
|
@@ -2148,20 +2176,20 @@ function Co() {
|
|
|
2148
2176
|
delay: 0.2,
|
|
2149
2177
|
className: "space-y-2",
|
|
2150
2178
|
snapExit: !0,
|
|
2151
|
-
children: s.map((c) => /* @__PURE__ */ r(
|
|
2179
|
+
children: s.map((c) => /* @__PURE__ */ r(lt, { session: c }, c.id))
|
|
2152
2180
|
},
|
|
2153
2181
|
"open-sessions"
|
|
2154
2182
|
),
|
|
2155
|
-
|
|
2183
|
+
i.length > 0 && /* @__PURE__ */ d(
|
|
2156
2184
|
w,
|
|
2157
2185
|
{
|
|
2158
2186
|
className: "space-y-2",
|
|
2159
2187
|
delay: 0.2,
|
|
2160
2188
|
snapExit: !0,
|
|
2161
2189
|
children: [
|
|
2162
|
-
/* @__PURE__ */ r(
|
|
2163
|
-
|
|
2164
|
-
|
|
2190
|
+
/* @__PURE__ */ r(No, { children: e("closed_conversations") }),
|
|
2191
|
+
i.map((c) => /* @__PURE__ */ r(
|
|
2192
|
+
lt,
|
|
2165
2193
|
{
|
|
2166
2194
|
session: c,
|
|
2167
2195
|
className: "opacity-50 hover:opacity-100"
|
|
@@ -2173,7 +2201,7 @@ function Co() {
|
|
|
2173
2201
|
"closed-sessions"
|
|
2174
2202
|
)
|
|
2175
2203
|
] }),
|
|
2176
|
-
|
|
2204
|
+
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
2205
|
y,
|
|
2178
2206
|
{
|
|
2179
2207
|
...g("sessions/new_conversation_btn"),
|
|
@@ -2186,7 +2214,7 @@ function Co() {
|
|
|
2186
2214
|
) })
|
|
2187
2215
|
] }) : /* @__PURE__ */ d("div", { className: "flex-1 flex flex-col gap-2 items-center", children: [
|
|
2188
2216
|
/* @__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__ */
|
|
2217
|
+
/* @__PURE__ */ rt(
|
|
2190
2218
|
y,
|
|
2191
2219
|
{
|
|
2192
2220
|
...g("sessions/new_conversation_btn"),
|
|
@@ -2202,9 +2230,9 @@ function Co() {
|
|
|
2202
2230
|
"sessions"
|
|
2203
2231
|
) }) });
|
|
2204
2232
|
}
|
|
2205
|
-
function
|
|
2233
|
+
function _o() {
|
|
2206
2234
|
const { theme: e } = X();
|
|
2207
|
-
return
|
|
2235
|
+
return ke({
|
|
2208
2236
|
width: e.screens.sessions.width,
|
|
2209
2237
|
height: e.screens.sessions.height
|
|
2210
2238
|
}), /* @__PURE__ */ r(
|
|
@@ -2223,9 +2251,9 @@ function zo() {
|
|
|
2223
2251
|
// Relative to the iframe
|
|
2224
2252
|
},
|
|
2225
2253
|
children: /* @__PURE__ */ d("div", { className: "size-full flex flex-col", children: [
|
|
2226
|
-
/* @__PURE__ */ r(
|
|
2227
|
-
/* @__PURE__ */ r(
|
|
2228
|
-
/* @__PURE__ */ r(
|
|
2254
|
+
/* @__PURE__ */ r(Ot, {}),
|
|
2255
|
+
/* @__PURE__ */ r(So, {}),
|
|
2256
|
+
/* @__PURE__ */ r(Ht, {})
|
|
2229
2257
|
] })
|
|
2230
2258
|
}
|
|
2231
2259
|
);
|
|
@@ -2233,7 +2261,7 @@ function zo() {
|
|
|
2233
2261
|
const ie = G.forwardRef(
|
|
2234
2262
|
({ className: e, type: o, ...t }, n) => {
|
|
2235
2263
|
const { isSmallScreen: s } = P();
|
|
2236
|
-
return /* @__PURE__ */ r(
|
|
2264
|
+
return /* @__PURE__ */ r(W, { ref: n, children: /* @__PURE__ */ r(
|
|
2237
2265
|
"input",
|
|
2238
2266
|
{
|
|
2239
2267
|
type: o,
|
|
@@ -2251,15 +2279,15 @@ const ie = G.forwardRef(
|
|
|
2251
2279
|
}
|
|
2252
2280
|
);
|
|
2253
2281
|
ie.displayName = "Input";
|
|
2254
|
-
function
|
|
2255
|
-
const { contentIframeRef: e } =
|
|
2282
|
+
function Io() {
|
|
2283
|
+
const { contentIframeRef: e } = R(), { inline: o } = b(), t = le(null);
|
|
2256
2284
|
return re(() => {
|
|
2257
2285
|
const n = e == null ? void 0 : e.current;
|
|
2258
2286
|
if (n && t.current) {
|
|
2259
2287
|
const s = t.current;
|
|
2260
|
-
let
|
|
2261
|
-
const
|
|
2262
|
-
|
|
2288
|
+
let i;
|
|
2289
|
+
const a = new ResizeObserver(() => {
|
|
2290
|
+
i = requestAnimationFrame(() => {
|
|
2263
2291
|
const c = s.offsetHeight;
|
|
2264
2292
|
n.style.setProperty(
|
|
2265
2293
|
"--opencx-widget-height",
|
|
@@ -2267,35 +2295,35 @@ function No() {
|
|
|
2267
2295
|
);
|
|
2268
2296
|
});
|
|
2269
2297
|
});
|
|
2270
|
-
return
|
|
2271
|
-
cancelAnimationFrame(
|
|
2298
|
+
return a.observe(s), () => {
|
|
2299
|
+
cancelAnimationFrame(i), a.unobserve(s);
|
|
2272
2300
|
};
|
|
2273
2301
|
}
|
|
2274
2302
|
}, [e, o]), { observedElementRef: t };
|
|
2275
2303
|
}
|
|
2276
|
-
const
|
|
2304
|
+
const To = pe.object({
|
|
2277
2305
|
name: pe.string().min(2),
|
|
2278
2306
|
email: pe.string().email()
|
|
2279
2307
|
});
|
|
2280
|
-
function
|
|
2281
|
-
var _, M,
|
|
2308
|
+
function Mo() {
|
|
2309
|
+
var _, M, A, F, H, E, v, C;
|
|
2282
2310
|
const {
|
|
2283
2311
|
widgetCtx: { org: e }
|
|
2284
|
-
} =
|
|
2285
|
-
|
|
2312
|
+
} = R(), { setIsOpen: o } = K(), { createUnverifiedContact: t } = Xt(), { isSmallScreen: n } = P(), s = b(), { theme: i } = X(), { t: a } = U(), { observedElementRef: c } = Io();
|
|
2313
|
+
ke({
|
|
2286
2314
|
height: void 0,
|
|
2287
|
-
width:
|
|
2315
|
+
width: i.screens.welcome.width
|
|
2288
2316
|
});
|
|
2289
2317
|
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
2318
|
(z) => z !== "name" && z !== "email" && !!z
|
|
2291
|
-
), [k, f] = I({}), [N, T] =
|
|
2319
|
+
), [k, f] = I({}), [N, T] = Rr(
|
|
2292
2320
|
async (z) => {
|
|
2293
2321
|
z.preventDefault();
|
|
2294
|
-
const
|
|
2295
|
-
|
|
2322
|
+
const L = To.safeParse({ name: l, email: x });
|
|
2323
|
+
L.success && await t(
|
|
2296
2324
|
{
|
|
2297
|
-
email:
|
|
2298
|
-
non_verified_name:
|
|
2325
|
+
email: L.data.email,
|
|
2326
|
+
non_verified_name: L.data.name
|
|
2299
2327
|
},
|
|
2300
2328
|
// Only pass extra data if there is any
|
|
2301
2329
|
Object.values(k).filter(Boolean).length ? k : void 0
|
|
@@ -2311,7 +2339,7 @@ function _o() {
|
|
|
2311
2339
|
// Relative to the iframe
|
|
2312
2340
|
maxWidth: "100vw",
|
|
2313
2341
|
// Relative to the iframe
|
|
2314
|
-
minHeight:
|
|
2342
|
+
minHeight: i.screens.welcome.minHeight,
|
|
2315
2343
|
height: "100vh",
|
|
2316
2344
|
// Relative to the iframe
|
|
2317
2345
|
maxHeight: "100vh",
|
|
@@ -2337,17 +2365,17 @@ function _o() {
|
|
|
2337
2365
|
),
|
|
2338
2366
|
children: [
|
|
2339
2367
|
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: (
|
|
2368
|
+
/* @__PURE__ */ r("div", { className: "flex items-center justify-between w-full mb-2", children: (A = s.assets) != null && A.organizationLogo ? /* @__PURE__ */ r(
|
|
2341
2369
|
"img",
|
|
2342
2370
|
{
|
|
2343
|
-
src: (
|
|
2371
|
+
src: (F = s.assets) == null ? void 0 : F.organizationLogo,
|
|
2344
2372
|
alt: "Company Logo",
|
|
2345
2373
|
className: "h-8 w-auto object-contain"
|
|
2346
2374
|
}
|
|
2347
2375
|
) : /* @__PURE__ */ r("h2", { className: "font-bold text-sm", children: e.name }) }),
|
|
2348
2376
|
/* @__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) ||
|
|
2377
|
+
/* @__PURE__ */ r("h1", { className: "text-[1.75rem] font-semibold tracking-tight leading-none", children: ((E = (H = s.textContent) == null ? void 0 : H.welcomeScreen) == null ? void 0 : E.title) || a("welcome_screen_title") }),
|
|
2378
|
+
/* @__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
2379
|
] })
|
|
2352
2380
|
]
|
|
2353
2381
|
}
|
|
@@ -2369,7 +2397,7 @@ function _o() {
|
|
|
2369
2397
|
value: l,
|
|
2370
2398
|
onChange: (z) => h(z.target.value),
|
|
2371
2399
|
required: !0,
|
|
2372
|
-
placeholder:
|
|
2400
|
+
placeholder: a("your_name_placeholder"),
|
|
2373
2401
|
name: "name"
|
|
2374
2402
|
}
|
|
2375
2403
|
),
|
|
@@ -2380,7 +2408,7 @@ function _o() {
|
|
|
2380
2408
|
value: x,
|
|
2381
2409
|
onChange: (z) => u(z.target.value),
|
|
2382
2410
|
type: "email",
|
|
2383
|
-
placeholder:
|
|
2411
|
+
placeholder: a("your_email_placeholder"),
|
|
2384
2412
|
name: "email"
|
|
2385
2413
|
}
|
|
2386
2414
|
),
|
|
@@ -2388,11 +2416,11 @@ function _o() {
|
|
|
2388
2416
|
ie,
|
|
2389
2417
|
{
|
|
2390
2418
|
value: k[z],
|
|
2391
|
-
onChange: (
|
|
2419
|
+
onChange: (L) => f((ne) => ({
|
|
2392
2420
|
...ne,
|
|
2393
|
-
[z]:
|
|
2421
|
+
[z]: L.target.value
|
|
2394
2422
|
})),
|
|
2395
|
-
placeholder: `${z} (${
|
|
2423
|
+
placeholder: `${z} (${a("optional")})`
|
|
2396
2424
|
},
|
|
2397
2425
|
z
|
|
2398
2426
|
)),
|
|
@@ -2403,13 +2431,13 @@ function _o() {
|
|
|
2403
2431
|
className: "w-full",
|
|
2404
2432
|
size: "lg",
|
|
2405
2433
|
children: [
|
|
2406
|
-
N.loading ?
|
|
2407
|
-
/* @__PURE__ */ r(
|
|
2434
|
+
N.loading ? a("start_chat_button_loading") : a("start_chat_button"),
|
|
2435
|
+
/* @__PURE__ */ r(Sr, { className: "size-4 rtl:-scale-100" })
|
|
2408
2436
|
]
|
|
2409
2437
|
}
|
|
2410
2438
|
)
|
|
2411
2439
|
] }),
|
|
2412
|
-
/* @__PURE__ */ r(
|
|
2440
|
+
/* @__PURE__ */ r(Ht, {})
|
|
2413
2441
|
]
|
|
2414
2442
|
}
|
|
2415
2443
|
)
|
|
@@ -2419,7 +2447,7 @@ function _o() {
|
|
|
2419
2447
|
}
|
|
2420
2448
|
);
|
|
2421
2449
|
}
|
|
2422
|
-
function
|
|
2450
|
+
function Wt() {
|
|
2423
2451
|
const {
|
|
2424
2452
|
routerState: { screen: e }
|
|
2425
2453
|
} = $();
|
|
@@ -2432,7 +2460,7 @@ function Ft() {
|
|
|
2432
2460
|
fadeIn: "right",
|
|
2433
2461
|
className: "size-full",
|
|
2434
2462
|
snapExit: !0,
|
|
2435
|
-
children: /* @__PURE__ */ r(
|
|
2463
|
+
children: /* @__PURE__ */ r(Mo, {})
|
|
2436
2464
|
},
|
|
2437
2465
|
e
|
|
2438
2466
|
);
|
|
@@ -2443,7 +2471,7 @@ function Ft() {
|
|
|
2443
2471
|
fadeIn: "right",
|
|
2444
2472
|
className: "size-full",
|
|
2445
2473
|
snapExit: !0,
|
|
2446
|
-
children: /* @__PURE__ */ r(
|
|
2474
|
+
children: /* @__PURE__ */ r(_o, {})
|
|
2447
2475
|
},
|
|
2448
2476
|
e
|
|
2449
2477
|
);
|
|
@@ -2454,20 +2482,20 @@ function Ft() {
|
|
|
2454
2482
|
fadeIn: "right",
|
|
2455
2483
|
className: "size-full",
|
|
2456
2484
|
snapExit: !0,
|
|
2457
|
-
children: /* @__PURE__ */ r(
|
|
2485
|
+
children: /* @__PURE__ */ r(ko, {})
|
|
2458
2486
|
},
|
|
2459
2487
|
e
|
|
2460
2488
|
);
|
|
2461
2489
|
default:
|
|
2462
|
-
return D(e,
|
|
2490
|
+
return D(e, Wt.name), null;
|
|
2463
2491
|
}
|
|
2464
2492
|
})() }) });
|
|
2465
2493
|
}
|
|
2466
|
-
const
|
|
2494
|
+
const Do = "4.0.20", Ro = `<!DOCTYPE html>
|
|
2467
2495
|
<html>
|
|
2468
2496
|
<head>
|
|
2469
2497
|
<style>
|
|
2470
|
-
${
|
|
2498
|
+
${Mt}
|
|
2471
2499
|
html, body {
|
|
2472
2500
|
height: 100%;
|
|
2473
2501
|
width: 100%;
|
|
@@ -2481,8 +2509,8 @@ html, body {
|
|
|
2481
2509
|
<body>
|
|
2482
2510
|
</body>
|
|
2483
2511
|
</html>`;
|
|
2484
|
-
function
|
|
2485
|
-
const { isOpen: e } = K(), { contentIframeRef: o } =
|
|
2512
|
+
function $t() {
|
|
2513
|
+
const { isOpen: e } = K(), { contentIframeRef: o } = R(), { cssOverrides: t, inline: n } = b(), { theme: s, cssVars: i, computed: a } = X(), { dir: c } = U();
|
|
2486
2514
|
return /* @__PURE__ */ r(
|
|
2487
2515
|
Z.div,
|
|
2488
2516
|
{
|
|
@@ -2503,23 +2531,23 @@ function Ht() {
|
|
|
2503
2531
|
}
|
|
2504
2532
|
},
|
|
2505
2533
|
children: /* @__PURE__ */ d(
|
|
2506
|
-
|
|
2534
|
+
xt,
|
|
2507
2535
|
{
|
|
2508
2536
|
ref: o,
|
|
2509
|
-
initialContent:
|
|
2537
|
+
initialContent: Ro,
|
|
2510
2538
|
allowFullScreen: !0,
|
|
2511
2539
|
title: "OpenCX Live Chat",
|
|
2512
2540
|
style: {
|
|
2513
2541
|
// @ts-expect-error this is a valid css variable
|
|
2514
|
-
"--opencx-widget-width":
|
|
2515
|
-
"--opencx-widget-height":
|
|
2516
|
-
minWidth:
|
|
2542
|
+
"--opencx-widget-width": a.minWidth,
|
|
2543
|
+
"--opencx-widget-height": a.minHeight,
|
|
2544
|
+
minWidth: a.minWidth,
|
|
2517
2545
|
width: "var(--opencx-widget-width)",
|
|
2518
|
-
maxWidth:
|
|
2546
|
+
maxWidth: a.maxWidth,
|
|
2519
2547
|
// Relative to the viewport
|
|
2520
|
-
minHeight:
|
|
2548
|
+
minHeight: a.minHeight,
|
|
2521
2549
|
height: "var(--opencx-widget-height)",
|
|
2522
|
-
maxHeight:
|
|
2550
|
+
maxHeight: a.maxHeight,
|
|
2523
2551
|
// Relative to the viewport
|
|
2524
2552
|
overflow: "hidden",
|
|
2525
2553
|
/** 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 +2568,20 @@ function Ht() {
|
|
|
2540
2568
|
"div",
|
|
2541
2569
|
{
|
|
2542
2570
|
style: {
|
|
2543
|
-
...
|
|
2571
|
+
...i,
|
|
2544
2572
|
zIndex: s.widgetContentContainer.zIndex
|
|
2545
2573
|
},
|
|
2546
|
-
"data-version":
|
|
2574
|
+
"data-version": Do,
|
|
2547
2575
|
className: p(
|
|
2548
2576
|
"antialiased font-sans size-full overflow-hidden relative text-secondary-foreground isolate"
|
|
2549
2577
|
),
|
|
2550
2578
|
dir: c,
|
|
2551
2579
|
children: /* @__PURE__ */ r(
|
|
2552
|
-
|
|
2580
|
+
Yr,
|
|
2553
2581
|
{
|
|
2554
2582
|
delayDuration: 200,
|
|
2555
2583
|
disableHoverableContent: !0,
|
|
2556
|
-
children: /* @__PURE__ */ r(
|
|
2584
|
+
children: /* @__PURE__ */ r(Wr, { children: /* @__PURE__ */ r(Wt, {}) })
|
|
2557
2585
|
}
|
|
2558
2586
|
)
|
|
2559
2587
|
}
|
|
@@ -2564,7 +2592,7 @@ function Ht() {
|
|
|
2564
2592
|
}
|
|
2565
2593
|
);
|
|
2566
2594
|
}
|
|
2567
|
-
function
|
|
2595
|
+
function jo() {
|
|
2568
2596
|
const { theme: e } = X();
|
|
2569
2597
|
return /* @__PURE__ */ r(
|
|
2570
2598
|
ae.Content,
|
|
@@ -2580,11 +2608,11 @@ function Mo() {
|
|
|
2580
2608
|
sideOffset: e.widgetContentContainer.offset.side,
|
|
2581
2609
|
alignOffset: e.widgetContentContainer.offset.align,
|
|
2582
2610
|
avoidCollisions: !1,
|
|
2583
|
-
children: /* @__PURE__ */ r(
|
|
2611
|
+
children: /* @__PURE__ */ r($t, {})
|
|
2584
2612
|
}
|
|
2585
2613
|
);
|
|
2586
2614
|
}
|
|
2587
|
-
function
|
|
2615
|
+
function Eo({
|
|
2588
2616
|
className: e,
|
|
2589
2617
|
style: o
|
|
2590
2618
|
}) {
|
|
@@ -2619,11 +2647,11 @@ function Do({
|
|
|
2619
2647
|
}
|
|
2620
2648
|
);
|
|
2621
2649
|
}
|
|
2622
|
-
const
|
|
2650
|
+
const Oo = `<!DOCTYPE html>
|
|
2623
2651
|
<html>
|
|
2624
2652
|
<head>
|
|
2625
2653
|
<style>
|
|
2626
|
-
${
|
|
2654
|
+
${Mt}
|
|
2627
2655
|
html, body {
|
|
2628
2656
|
height: 100%;
|
|
2629
2657
|
width: 100%;
|
|
@@ -2636,13 +2664,13 @@ html, body {
|
|
|
2636
2664
|
<body>
|
|
2637
2665
|
</body>
|
|
2638
2666
|
</html>`;
|
|
2639
|
-
function
|
|
2640
|
-
var
|
|
2667
|
+
function Po() {
|
|
2668
|
+
var i, a;
|
|
2641
2669
|
const { isOpen: e } = K(), { cssOverrides: o, assets: t } = b(), { theme: n, cssVars: s } = X();
|
|
2642
2670
|
return /* @__PURE__ */ d(
|
|
2643
|
-
|
|
2671
|
+
xt,
|
|
2644
2672
|
{
|
|
2645
|
-
initialContent:
|
|
2673
|
+
initialContent: Oo,
|
|
2646
2674
|
style: {
|
|
2647
2675
|
height: `calc(${n.widgetTrigger.size.button}px + ${V.x * 2}px)`,
|
|
2648
2676
|
width: `calc(${n.widgetTrigger.size.button}px + ${V.y * 2}px)`,
|
|
@@ -2681,7 +2709,7 @@ function Ro() {
|
|
|
2681
2709
|
height: n.widgetTrigger.size.button,
|
|
2682
2710
|
width: n.widgetTrigger.size.button
|
|
2683
2711
|
},
|
|
2684
|
-
children: /* @__PURE__ */ r(
|
|
2712
|
+
children: /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r(
|
|
2685
2713
|
"div",
|
|
2686
2714
|
{
|
|
2687
2715
|
...g("trigger/btn"),
|
|
@@ -2702,7 +2730,7 @@ function Ro() {
|
|
|
2702
2730
|
initial: { rotate: 45 },
|
|
2703
2731
|
animate: { rotate: 0 }
|
|
2704
2732
|
},
|
|
2705
|
-
children: (
|
|
2733
|
+
children: (i = t == null ? void 0 : t.widgetTrigger) != null && i.closeIcon ? /* @__PURE__ */ r(
|
|
2706
2734
|
"img",
|
|
2707
2735
|
{
|
|
2708
2736
|
src: t.widgetTrigger.closeIcon,
|
|
@@ -2713,7 +2741,7 @@ function Ro() {
|
|
|
2713
2741
|
}
|
|
2714
2742
|
}
|
|
2715
2743
|
) : /* @__PURE__ */ r(
|
|
2716
|
-
|
|
2744
|
+
_r,
|
|
2717
2745
|
{
|
|
2718
2746
|
style: {
|
|
2719
2747
|
width: n.widgetTrigger.size.icon,
|
|
@@ -2731,7 +2759,7 @@ function Ro() {
|
|
|
2731
2759
|
initial: { rotate: 45 },
|
|
2732
2760
|
animate: { rotate: 0 }
|
|
2733
2761
|
},
|
|
2734
|
-
children: (
|
|
2762
|
+
children: (a = t == null ? void 0 : t.widgetTrigger) != null && a.openIcon ? /* @__PURE__ */ r(
|
|
2735
2763
|
"img",
|
|
2736
2764
|
{
|
|
2737
2765
|
src: t.widgetTrigger.openIcon,
|
|
@@ -2742,7 +2770,7 @@ function Ro() {
|
|
|
2742
2770
|
}
|
|
2743
2771
|
}
|
|
2744
2772
|
) : /* @__PURE__ */ r(
|
|
2745
|
-
|
|
2773
|
+
Eo,
|
|
2746
2774
|
{
|
|
2747
2775
|
style: {
|
|
2748
2776
|
width: n.widgetTrigger.size.icon,
|
|
@@ -2764,7 +2792,7 @@ function Ro() {
|
|
|
2764
2792
|
}
|
|
2765
2793
|
);
|
|
2766
2794
|
}
|
|
2767
|
-
function
|
|
2795
|
+
function Ao() {
|
|
2768
2796
|
const { dir: e } = ue();
|
|
2769
2797
|
return /* @__PURE__ */ r(
|
|
2770
2798
|
ae.Anchor,
|
|
@@ -2778,22 +2806,22 @@ function Eo() {
|
|
|
2778
2806
|
}
|
|
2779
2807
|
);
|
|
2780
2808
|
}
|
|
2781
|
-
function
|
|
2809
|
+
function Fo() {
|
|
2782
2810
|
const { isOpen: e, setIsOpen: o } = K();
|
|
2783
2811
|
return /* @__PURE__ */ d(ae.Root, { open: e, onOpenChange: o, children: [
|
|
2784
|
-
/* @__PURE__ */ r(
|
|
2785
|
-
/* @__PURE__ */ r(
|
|
2786
|
-
/* @__PURE__ */ r(
|
|
2812
|
+
/* @__PURE__ */ r(Ao, {}),
|
|
2813
|
+
/* @__PURE__ */ r(Po, {}),
|
|
2814
|
+
/* @__PURE__ */ r(jo, {})
|
|
2787
2815
|
] });
|
|
2788
2816
|
}
|
|
2789
|
-
const
|
|
2817
|
+
const Ho = [
|
|
2790
2818
|
{
|
|
2791
2819
|
key: "loading",
|
|
2792
|
-
component:
|
|
2820
|
+
component: Lr
|
|
2793
2821
|
},
|
|
2794
2822
|
{
|
|
2795
2823
|
key: "fallback",
|
|
2796
|
-
component:
|
|
2824
|
+
component: Br
|
|
2797
2825
|
},
|
|
2798
2826
|
{
|
|
2799
2827
|
key: "bot_message",
|
|
@@ -2803,7 +2831,7 @@ const Oo = [
|
|
|
2803
2831
|
key: "agent_message",
|
|
2804
2832
|
component: he
|
|
2805
2833
|
}
|
|
2806
|
-
],
|
|
2834
|
+
], Wo = {
|
|
2807
2835
|
get: async (e) => localStorage.getItem(e),
|
|
2808
2836
|
set: async (e, o) => {
|
|
2809
2837
|
localStorage.setItem(e, o);
|
|
@@ -2812,23 +2840,23 @@ const Oo = [
|
|
|
2812
2840
|
localStorage.removeItem(e);
|
|
2813
2841
|
}
|
|
2814
2842
|
};
|
|
2815
|
-
function
|
|
2843
|
+
function sn({
|
|
2816
2844
|
options: e,
|
|
2817
2845
|
components: o = [],
|
|
2818
2846
|
loadingComponent: t
|
|
2819
2847
|
}) {
|
|
2820
2848
|
return /* @__PURE__ */ r(
|
|
2821
|
-
|
|
2849
|
+
Ut,
|
|
2822
2850
|
{
|
|
2823
|
-
components: [...
|
|
2851
|
+
components: [...Ho, ...o],
|
|
2824
2852
|
options: e,
|
|
2825
|
-
storage:
|
|
2853
|
+
storage: Wo,
|
|
2826
2854
|
loadingComponent: t,
|
|
2827
|
-
children: /* @__PURE__ */ r(
|
|
2855
|
+
children: /* @__PURE__ */ r(Vt, { children: e.inline ? /* @__PURE__ */ r($t, {}) : /* @__PURE__ */ r(Fo, {}) })
|
|
2828
2856
|
}
|
|
2829
2857
|
);
|
|
2830
2858
|
}
|
|
2831
2859
|
export {
|
|
2832
|
-
|
|
2860
|
+
sn as Widget
|
|
2833
2861
|
};
|
|
2834
2862
|
//# sourceMappingURL=index.js.map
|