@opencx/widget-react 4.0.14 → 4.0.15
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 +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +635 -637
- package/dist/index.js.map +1 -1
- package/dist/src/components/Header.d.ts.map +1 -1
- package/dist/src/screens/index.d.ts.map +1 -1
- package/dist-embed/script.js +91 -91
- package/dist-embed/script.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
import { jsx as o, jsxs as d, Fragment as
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import $, { memo as
|
|
5
|
-
import { useWidget as
|
|
6
|
-
import { clsx as
|
|
7
|
-
import { twMerge as
|
|
8
|
-
import { motion as
|
|
9
|
-
import { Slot as
|
|
10
|
-
import { cva as
|
|
11
|
-
import { X as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
1
|
+
import { jsx as o, jsxs as d, Fragment as te } from "react/jsx-runtime";
|
|
2
|
+
import * as ie from "@radix-ui/react-popover";
|
|
3
|
+
import * as G from "react";
|
|
4
|
+
import $, { memo as Bt, forwardRef as it, useState as I, cloneElement as lt, createContext as Lt, useEffect as oe, useContext as Yt, useMemo as ct, useRef as le, createElement as tt } from "react";
|
|
5
|
+
import { useWidget as E, useConfig as x, useDocumentDir as we, useWidgetRouter as B, useWidgetTrigger as K, useSessions as q, useMessages as R, useModes as dt, useCsat as pt, useUploadFiles as $t, useIsAwaitingBotReply as ht, useContact as qt, WidgetProvider as Ut, WidgetTriggerProvider as Vt } from "@opencx/widget-react-headless";
|
|
6
|
+
import { clsx as Xt } from "clsx";
|
|
7
|
+
import { twMerge as Gt } from "tailwind-merge";
|
|
8
|
+
import { motion as Q, AnimatePresence as S } from "framer-motion";
|
|
9
|
+
import { Slot as Kt } from "@radix-ui/react-slot";
|
|
10
|
+
import { cva as Zt } from "class-variance-authority";
|
|
11
|
+
import { X as Qt, CircleDashedIcon as Jt, XIcon as fe, SquareXIcon as eo, SquareCheckBigIcon as to, SquareCheckIcon as oo, ShrinkIcon as ro, Minimize2Icon as no, MinimizeIcon as so, Maximize2Icon as ao, MaximizeIcon as io, ExpandIcon as lo, CircleXIcon as co, CircleCheckBigIcon as po, CircleCheckIcon as mt, CheckCheckIcon as ho, CheckIcon as mo, ChevronLeftIcon as uo, LoaderIcon as go, ArrowUpIcon as ut, PaperclipIcon as wo, ImageIcon as fo, CircleDashed as vo, AlertCircle as bo, Loader2 as xo, FileAudio2Icon as yo, FileVideo2Icon as ko, FileIcon as Co, UserRoundIcon as zo, ChevronRightIcon as No, SendHorizontal as So, ChevronDownIcon as _o } from "lucide-react";
|
|
12
|
+
import gt from "remark-gfm";
|
|
13
|
+
import Io from "react-markdown";
|
|
14
|
+
import wt from "rehype-raw";
|
|
15
15
|
import { isExhaustive as D } from "@opencx/widget-core";
|
|
16
|
-
import * as
|
|
17
|
-
import
|
|
18
|
-
import * as
|
|
19
|
-
import
|
|
20
|
-
import { useDropzone as
|
|
21
|
-
import
|
|
22
|
-
import { z as
|
|
16
|
+
import * as Z from "@radix-ui/react-avatar";
|
|
17
|
+
import ft from "@uiw/react-iframe";
|
|
18
|
+
import * as re from "@radix-ui/react-tooltip";
|
|
19
|
+
import ot from "tinycolor2";
|
|
20
|
+
import { useDropzone as To } from "react-dropzone";
|
|
21
|
+
import Mo from "react-use/lib/useAsyncFn";
|
|
22
|
+
import { z as pe } from "zod";
|
|
23
23
|
function u(e) {
|
|
24
24
|
return { "data-component": e };
|
|
25
25
|
}
|
|
26
26
|
function p(...e) {
|
|
27
|
-
return
|
|
27
|
+
return Gt(Xt(e));
|
|
28
28
|
}
|
|
29
|
-
const
|
|
29
|
+
const X = {
|
|
30
30
|
x: 2,
|
|
31
31
|
y: 2
|
|
32
|
-
},
|
|
33
|
-
|
|
32
|
+
}, H = Bt(
|
|
33
|
+
it(
|
|
34
34
|
({ children: e, className: r, 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 b = (f) => {
|
|
40
|
-
var C,
|
|
41
|
-
const { clientX:
|
|
40
|
+
var C, z;
|
|
41
|
+
const { clientX: N, clientY: T } = f, _ = f.currentTarget.getBoundingClientRect(), M = N - (_.left + _.width / 2), A = T - (_.top + _.height / 2), P = Math.max(
|
|
42
42
|
-1,
|
|
43
|
-
Math.min(1, M / (
|
|
44
|
-
),
|
|
43
|
+
Math.min(1, M / (_.width / 2))
|
|
44
|
+
), W = Math.max(
|
|
45
45
|
-1,
|
|
46
|
-
Math.min(1,
|
|
47
|
-
), j = P *
|
|
48
|
-
l({ x: j, y: v }), (
|
|
46
|
+
Math.min(1, A / (_.height / 2))
|
|
47
|
+
), j = P * X.x, v = W * X.y;
|
|
48
|
+
l({ x: j, y: v }), (z = (C = e.props).onMouseMove) == null || z.call(C, f);
|
|
49
49
|
}, w = () => {
|
|
50
|
-
var f,
|
|
51
|
-
|
|
50
|
+
var f, N;
|
|
51
|
+
a(!0), (N = (f = e.props).onMouseEnter) == null || N.call(f);
|
|
52
52
|
}, m = () => {
|
|
53
|
-
var f,
|
|
54
|
-
|
|
53
|
+
var f, N;
|
|
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 lt(e, {
|
|
61
61
|
ref: s,
|
|
62
62
|
onMouseMove: b,
|
|
63
63
|
onMouseEnter: w,
|
|
@@ -78,44 +78,44 @@ const G = {
|
|
|
78
78
|
}
|
|
79
79
|
)
|
|
80
80
|
);
|
|
81
|
-
|
|
82
|
-
const
|
|
81
|
+
H.displayName = "Wobble";
|
|
82
|
+
const Do = 10, jo = (e, r, t) => ({
|
|
83
83
|
initial: { opacity: 0, x: -e, ...r.initial },
|
|
84
84
|
animate: { opacity: 1, x: 0, ...r.animate, transition: { delay: t } },
|
|
85
85
|
exit: { opacity: 0, x: e, ...r.exit }
|
|
86
|
-
}),
|
|
86
|
+
}), Eo = (e, r, t) => ({
|
|
87
87
|
initial: { opacity: 0, x: e, ...r.initial },
|
|
88
88
|
animate: { opacity: 1, x: 0, ...r.animate, transition: { delay: t } },
|
|
89
89
|
exit: { opacity: 0, x: -e, ...r.exit }
|
|
90
|
-
}),
|
|
90
|
+
}), Ro = (e, r, t) => ({
|
|
91
91
|
initial: { opacity: 0, y: e, ...r.initial },
|
|
92
92
|
animate: { opacity: 1, y: 0, ...r.animate, transition: { delay: t } },
|
|
93
93
|
exit: { opacity: 0, y: -e, ...r.exit }
|
|
94
|
-
}),
|
|
94
|
+
}), Oo = (e, r, t) => ({
|
|
95
95
|
initial: { opacity: 0, y: -e, ...r.initial },
|
|
96
96
|
animate: { opacity: 1, y: 0, ...r.animate, transition: { delay: t } },
|
|
97
97
|
exit: { opacity: 0, y: e, ...r.exit }
|
|
98
|
-
}),
|
|
99
|
-
right:
|
|
100
|
-
left:
|
|
101
|
-
up:
|
|
102
|
-
down:
|
|
103
|
-
}, g =
|
|
98
|
+
}), Ao = {
|
|
99
|
+
right: jo,
|
|
100
|
+
left: Eo,
|
|
101
|
+
up: Ro,
|
|
102
|
+
down: Oo
|
|
103
|
+
}, g = it(
|
|
104
104
|
({
|
|
105
105
|
fadeIn: e = "down",
|
|
106
|
-
distance: r =
|
|
106
|
+
distance: r = Do,
|
|
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__ */ o(
|
|
113
|
+
const l = e ? Ao[e](r, s, i) : {};
|
|
114
|
+
return n && l.exit && typeof l.exit == "object" && !Array.isArray(l.exit) && (l.exit.transition = { duration: 0 }), /* @__PURE__ */ o(Q.div, { ref: c, ...a, ...l, children: t });
|
|
115
115
|
}
|
|
116
116
|
);
|
|
117
117
|
g.displayName = "MotionDiv";
|
|
118
|
-
const
|
|
118
|
+
const Po = Zt(
|
|
119
119
|
p(
|
|
120
120
|
"inline-flex shrink-0 items-center justify-center gap-2",
|
|
121
121
|
"text-sm font-medium whitespace-nowrap",
|
|
@@ -154,40 +154,40 @@ const Ho = Jt(
|
|
|
154
154
|
size: "default"
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
), y =
|
|
158
|
-
({ className: e, variant: r = "default", size: t, asChild: n = !1, ...s },
|
|
159
|
-
n ?
|
|
157
|
+
), y = G.forwardRef(
|
|
158
|
+
({ className: e, variant: r = "default", size: t, asChild: n = !1, ...s }, i) => /* @__PURE__ */ o(H, { ref: i, children: /* @__PURE__ */ o(
|
|
159
|
+
n ? Kt : "button",
|
|
160
160
|
{
|
|
161
161
|
...u("ui_lib/btn"),
|
|
162
162
|
"data-variant": r,
|
|
163
|
-
className: p(
|
|
163
|
+
className: p(Po({ variant: r, size: t, className: e })),
|
|
164
164
|
...s
|
|
165
165
|
}
|
|
166
166
|
) })
|
|
167
167
|
);
|
|
168
168
|
y.displayName = "Button";
|
|
169
|
-
const
|
|
170
|
-
function
|
|
171
|
-
const [r, t] = I(!1), [n, s] = I(null),
|
|
169
|
+
const vt = Lt(null);
|
|
170
|
+
function Wo({ children: e }) {
|
|
171
|
+
const [r, 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
|
+
vt.Provider,
|
|
180
180
|
{
|
|
181
|
-
value: { open:
|
|
181
|
+
value: { open: i, close: a, isOpen: r, content: n },
|
|
182
182
|
children: [
|
|
183
|
-
/* @__PURE__ */ o(
|
|
183
|
+
/* @__PURE__ */ o(Ho, {}),
|
|
184
184
|
e
|
|
185
185
|
]
|
|
186
186
|
}
|
|
187
187
|
);
|
|
188
188
|
}
|
|
189
|
-
function
|
|
190
|
-
const e =
|
|
189
|
+
function ce() {
|
|
190
|
+
const e = Yt(vt);
|
|
191
191
|
return e || (console.error("useDialoger must be used within a DialogerProvider"), {
|
|
192
192
|
open: () => {
|
|
193
193
|
},
|
|
@@ -197,14 +197,14 @@ function pe() {
|
|
|
197
197
|
content: null
|
|
198
198
|
});
|
|
199
199
|
}
|
|
200
|
-
function
|
|
201
|
-
const { contentIframeRef: e } =
|
|
202
|
-
return
|
|
203
|
-
var
|
|
200
|
+
function Ho() {
|
|
201
|
+
const { contentIframeRef: e } = E(), { isOpen: r, content: t, close: n } = ce();
|
|
202
|
+
return oe(() => {
|
|
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
|
), () => {
|
|
@@ -214,7 +214,7 @@ function Bo() {
|
|
|
214
214
|
s
|
|
215
215
|
);
|
|
216
216
|
};
|
|
217
|
-
}, []), /* @__PURE__ */ o(
|
|
217
|
+
}, []), /* @__PURE__ */ o(S, { mode: "wait", children: r && t && /* @__PURE__ */ o(
|
|
218
218
|
g,
|
|
219
219
|
{
|
|
220
220
|
overrides: {
|
|
@@ -229,12 +229,12 @@ function Bo() {
|
|
|
229
229
|
"dialog-content"
|
|
230
230
|
) });
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function bt({
|
|
233
233
|
children: e,
|
|
234
234
|
className: r,
|
|
235
235
|
withClose: t = !1
|
|
236
236
|
}) {
|
|
237
|
-
const { close: n } =
|
|
237
|
+
const { close: n } = ce();
|
|
238
238
|
return /* @__PURE__ */ d(
|
|
239
239
|
"div",
|
|
240
240
|
{
|
|
@@ -253,7 +253,7 @@ function xt({
|
|
|
253
253
|
variant: "secondary",
|
|
254
254
|
onClick: n,
|
|
255
255
|
children: [
|
|
256
|
-
/* @__PURE__ */ o(
|
|
256
|
+
/* @__PURE__ */ o(Qt, { className: "h-4 w-4" }),
|
|
257
257
|
/* @__PURE__ */ o("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 xt = ({
|
|
266
266
|
className: e,
|
|
267
267
|
...r
|
|
268
268
|
}) => /* @__PURE__ */ o(
|
|
@@ -272,8 +272,8 @@ const yt = ({
|
|
|
272
272
|
...r
|
|
273
273
|
}
|
|
274
274
|
);
|
|
275
|
-
|
|
276
|
-
const
|
|
275
|
+
xt.displayName = "DialogerHeader";
|
|
276
|
+
const yt = ({
|
|
277
277
|
className: e,
|
|
278
278
|
...r
|
|
279
279
|
}) => /* @__PURE__ */ o(
|
|
@@ -283,13 +283,13 @@ const kt = ({
|
|
|
283
283
|
...r
|
|
284
284
|
}
|
|
285
285
|
);
|
|
286
|
-
|
|
287
|
-
const
|
|
286
|
+
yt.displayName = "DialogerBody";
|
|
287
|
+
const kt = ({
|
|
288
288
|
className: e,
|
|
289
289
|
...r
|
|
290
290
|
}) => /* @__PURE__ */ o("div", { className: p("flex flex-col gap-2", e), ...r });
|
|
291
|
-
|
|
292
|
-
const
|
|
291
|
+
kt.displayName = "DialogerFooter";
|
|
292
|
+
const Ct = $.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ o(
|
|
293
293
|
"p",
|
|
294
294
|
{
|
|
295
295
|
ref: t,
|
|
@@ -300,8 +300,8 @@ const zt = $.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ o(
|
|
|
300
300
|
...r
|
|
301
301
|
}
|
|
302
302
|
));
|
|
303
|
-
|
|
304
|
-
const
|
|
303
|
+
Ct.displayName = "DialogerTitle";
|
|
304
|
+
const zt = $.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ o(
|
|
305
305
|
"p",
|
|
306
306
|
{
|
|
307
307
|
ref: t,
|
|
@@ -309,25 +309,25 @@ const Nt = $.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ o(
|
|
|
309
309
|
...r
|
|
310
310
|
}
|
|
311
311
|
));
|
|
312
|
-
|
|
313
|
-
function
|
|
312
|
+
zt.displayName = "DialogerDescription";
|
|
313
|
+
function Nt({
|
|
314
314
|
children: e,
|
|
315
315
|
trigger: r
|
|
316
316
|
}) {
|
|
317
|
-
const { open: t } =
|
|
318
|
-
return
|
|
317
|
+
const { open: t } = ce();
|
|
318
|
+
return lt(r, {
|
|
319
319
|
onClick: () => t(e)
|
|
320
320
|
});
|
|
321
321
|
}
|
|
322
|
-
function
|
|
323
|
-
const { name: r, size: t, type: n, url: s } = e,
|
|
324
|
-
return c ? /* @__PURE__ */ o(
|
|
322
|
+
function St({ attachment: e }) {
|
|
323
|
+
const { name: r, size: t, type: n, url: s } = e, i = n.startsWith("image/"), a = n.startsWith("video/"), c = n.startsWith("audio/");
|
|
324
|
+
return c ? /* @__PURE__ */ o(H, { children: /* @__PURE__ */ o("div", { className: "w-full shrink-0 overflow-hidden", children: /* @__PURE__ */ d("audio", { controls: !0, className: "w-full", children: [
|
|
325
325
|
/* @__PURE__ */ o("source", { src: s, type: n }),
|
|
326
326
|
"Your browser does not support the audio tag."
|
|
327
|
-
] }) }) }) :
|
|
327
|
+
] }) }) }) : a ? /* @__PURE__ */ o(H, { children: /* @__PURE__ */ o("div", { className: "w-full border shrink-0 rounded-2xl overflow-hidden", children: /* @__PURE__ */ d("video", { controls: !0, children: [
|
|
328
328
|
/* @__PURE__ */ o("source", { src: s, type: n }),
|
|
329
329
|
"Your browser does not support the video tag."
|
|
330
|
-
] }) }) }) : !
|
|
330
|
+
] }) }) }) : !i && !a && !c ? /* @__PURE__ */ o(H, { children: /* @__PURE__ */ o("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__ */ o(
|
|
332
332
|
"a",
|
|
333
333
|
{
|
|
@@ -347,52 +347,52 @@ function _t({ attachment: e }) {
|
|
|
347
347
|
" KB"
|
|
348
348
|
] })
|
|
349
349
|
] }) }) }) : /* @__PURE__ */ o(
|
|
350
|
-
|
|
350
|
+
Nt,
|
|
351
351
|
{
|
|
352
|
-
trigger: /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(
|
|
352
|
+
trigger: /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(H, { children: /* @__PURE__ */ o("div", { className: "size-fit border shrink-0 rounded-2xl overflow-hidden", children: i && /* @__PURE__ */ o("img", { src: s, className: "object-cover size-16", alt: r }) }) }) }),
|
|
353
353
|
children: /* @__PURE__ */ o(
|
|
354
|
-
|
|
354
|
+
bt,
|
|
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__ */ o("div", { className: "size-fit shrink-0 rounded-2xl overflow-hidden max-h-full", children: /* @__PURE__ */ o("img", { src: s, className: "object-cover size-auto", alt: r }) })
|
|
359
359
|
}
|
|
360
360
|
)
|
|
361
361
|
}
|
|
362
362
|
);
|
|
363
363
|
}
|
|
364
|
-
const
|
|
365
|
-
|
|
364
|
+
const _t = $.memo(
|
|
365
|
+
Io,
|
|
366
366
|
(e, r) => e.children === r.children && e.className === r.className
|
|
367
367
|
);
|
|
368
|
-
function
|
|
368
|
+
function It({
|
|
369
369
|
children: e,
|
|
370
370
|
messageType: r,
|
|
371
371
|
messageId: t
|
|
372
372
|
}) {
|
|
373
373
|
const { anchorTarget: n } = x();
|
|
374
374
|
return /* @__PURE__ */ o(
|
|
375
|
-
|
|
375
|
+
_t,
|
|
376
376
|
{
|
|
377
377
|
"data-type": r,
|
|
378
378
|
"data-id": t,
|
|
379
|
-
remarkPlugins: [
|
|
380
|
-
rehypePlugins: [
|
|
379
|
+
remarkPlugins: [gt],
|
|
380
|
+
rehypePlugins: [wt],
|
|
381
381
|
components: {
|
|
382
|
-
a: ({ children: s, ...
|
|
382
|
+
a: ({ children: s, ...i }) => /* @__PURE__ */ o("a", { target: n ?? "_top", ...i, children: s })
|
|
383
383
|
},
|
|
384
384
|
children: e
|
|
385
385
|
}
|
|
386
386
|
);
|
|
387
387
|
}
|
|
388
|
-
function
|
|
388
|
+
function he({
|
|
389
389
|
data: e,
|
|
390
390
|
id: r,
|
|
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 ue({
|
|
|
407
407
|
l == null ? void 0 : l.messageContainer
|
|
408
408
|
),
|
|
409
409
|
children: [
|
|
410
|
-
n && n.length > 0 && /* @__PURE__ */ o("div", { className: "w-full gap-1 flex flex-row flex-wrap items-center justify-start", children: n == null ? void 0 : n.map((w) => /* @__PURE__ */ o(
|
|
410
|
+
n && n.length > 0 && /* @__PURE__ */ o("div", { className: "w-full gap-1 flex flex-row flex-wrap items-center justify-start", children: n == null ? void 0 : n.map((w) => /* @__PURE__ */ o(St, { attachment: w }, w.id)) }),
|
|
411
411
|
h.length > 0 && /* @__PURE__ */ o(
|
|
412
412
|
"div",
|
|
413
413
|
{
|
|
414
414
|
...u((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,23 +424,23 @@ function ue({
|
|
|
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__ */ o(
|
|
432
|
+
children: /* @__PURE__ */ o(It, { messageType: t, messageId: r, children: h })
|
|
433
433
|
}
|
|
434
434
|
)
|
|
435
435
|
]
|
|
436
436
|
}
|
|
437
437
|
);
|
|
438
438
|
}
|
|
439
|
-
function
|
|
439
|
+
function Fo(e) {
|
|
440
440
|
return /* @__PURE__ */ o("div", { className: "w-full max-w-full overflow-auto shrink-0", children: /* @__PURE__ */ o("pre", { className: "text-xs leading-tight whitespace-pre-wrap break-word", children: JSON.stringify(e, null, 1) }) });
|
|
441
441
|
}
|
|
442
|
-
const
|
|
443
|
-
|
|
442
|
+
const ve = G.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ o(
|
|
443
|
+
Z.Root,
|
|
444
444
|
{
|
|
445
445
|
ref: t,
|
|
446
446
|
className: p(
|
|
@@ -451,18 +451,18 @@ const xe = K.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ o(
|
|
|
451
451
|
...r
|
|
452
452
|
}
|
|
453
453
|
));
|
|
454
|
-
|
|
455
|
-
const
|
|
456
|
-
|
|
454
|
+
ve.displayName = Z.Root.displayName;
|
|
455
|
+
const be = G.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ o(
|
|
456
|
+
Z.Image,
|
|
457
457
|
{
|
|
458
458
|
ref: t,
|
|
459
459
|
className: p("aspect-square h-full w-full", e),
|
|
460
460
|
...r
|
|
461
461
|
}
|
|
462
462
|
));
|
|
463
|
-
|
|
464
|
-
const
|
|
465
|
-
|
|
463
|
+
be.displayName = Z.Image.displayName;
|
|
464
|
+
const xe = G.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ o(
|
|
465
|
+
Z.Fallback,
|
|
466
466
|
{
|
|
467
467
|
ref: t,
|
|
468
468
|
className: p(
|
|
@@ -472,25 +472,25 @@ const ke = K.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ o(
|
|
|
472
472
|
...r
|
|
473
473
|
}
|
|
474
474
|
));
|
|
475
|
-
|
|
476
|
-
function
|
|
475
|
+
xe.displayName = Z.Fallback.displayName;
|
|
476
|
+
function me({
|
|
477
477
|
agent: e,
|
|
478
478
|
...r
|
|
479
479
|
}) {
|
|
480
480
|
var t, n;
|
|
481
|
-
return /* @__PURE__ */ d(
|
|
482
|
-
/* @__PURE__ */ o(
|
|
483
|
-
(e == null ? void 0 : e.name) && /* @__PURE__ */ o(
|
|
481
|
+
return /* @__PURE__ */ d(ve, { ...r, children: [
|
|
482
|
+
/* @__PURE__ */ o(be, { src: (e == null ? void 0 : e.avatar) ?? "", alt: "Agent Icon" }),
|
|
483
|
+
(e == null ? void 0 : e.name) && /* @__PURE__ */ o(xe, { 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
|
|
487
|
-
return /* @__PURE__ */ o(
|
|
486
|
+
function Bo({ agent: e }) {
|
|
487
|
+
return /* @__PURE__ */ o(S, { children: /* @__PURE__ */ d(
|
|
488
488
|
g,
|
|
489
489
|
{
|
|
490
490
|
...u("chat/bot_loading/root"),
|
|
491
491
|
className: "flex flex-row items-end w-full gap-2 animate-pulse",
|
|
492
492
|
children: [
|
|
493
|
-
/* @__PURE__ */ o(
|
|
493
|
+
/* @__PURE__ */ o(me, { agent: e }),
|
|
494
494
|
/* @__PURE__ */ d(
|
|
495
495
|
"div",
|
|
496
496
|
{
|
|
@@ -500,9 +500,9 @@ function Yo({ agent: e }) {
|
|
|
500
500
|
// 'border',
|
|
501
501
|
),
|
|
502
502
|
children: [
|
|
503
|
-
/* @__PURE__ */ o(
|
|
504
|
-
/* @__PURE__ */ o(
|
|
505
|
-
/* @__PURE__ */ o(
|
|
503
|
+
/* @__PURE__ */ o(Q.span, { className: "rounded-full animate-bounce [animation-delay:-0.3s]" }),
|
|
504
|
+
/* @__PURE__ */ o(Q.span, { className: "rounded-full animate-bounce [animation-delay:-0.15s]" }),
|
|
505
|
+
/* @__PURE__ */ o(Q.span, { className: "rounded-full animate-bounce" })
|
|
506
506
|
]
|
|
507
507
|
}
|
|
508
508
|
)
|
|
@@ -510,8 +510,8 @@ function Yo({ agent: e }) {
|
|
|
510
510
|
}
|
|
511
511
|
) });
|
|
512
512
|
}
|
|
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))}', $o = ne.Provider, qo = ne.Root, Uo = ne.Trigger, Dt = K.forwardRef(({ className: e, sideOffset: r = 4, ...t }, n) => /* @__PURE__ */ o(
|
|
514
|
-
|
|
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))}', Lo = re.Provider, Yo = re.Root, $o = re.Trigger, Mt = G.forwardRef(({ className: e, sideOffset: r = 4, ...t }, n) => /* @__PURE__ */ o(
|
|
514
|
+
re.Content,
|
|
515
515
|
{
|
|
516
516
|
ref: n,
|
|
517
517
|
sideOffset: r,
|
|
@@ -522,18 +522,18 @@ const Mt = '@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wgh
|
|
|
522
522
|
...t
|
|
523
523
|
}
|
|
524
524
|
));
|
|
525
|
-
|
|
526
|
-
function
|
|
525
|
+
Mt.displayName = re.Content.displayName;
|
|
526
|
+
function J({
|
|
527
527
|
children: e,
|
|
528
528
|
content: r,
|
|
529
529
|
side: t,
|
|
530
530
|
align: n
|
|
531
531
|
}) {
|
|
532
532
|
const { disableTooltips: s } = x();
|
|
533
|
-
return !r || s ? e : /* @__PURE__ */ d(
|
|
534
|
-
/* @__PURE__ */ o(
|
|
533
|
+
return !r || s ? e : /* @__PURE__ */ d(Yo, { children: [
|
|
534
|
+
/* @__PURE__ */ o($o, { asChild: !0, children: e }),
|
|
535
535
|
/* @__PURE__ */ o(
|
|
536
|
-
|
|
536
|
+
Mt,
|
|
537
537
|
{
|
|
538
538
|
side: t,
|
|
539
539
|
align: n,
|
|
@@ -544,34 +544,34 @@ function ee({
|
|
|
544
544
|
)
|
|
545
545
|
] });
|
|
546
546
|
}
|
|
547
|
-
const
|
|
548
|
-
function
|
|
549
|
-
const [e, r] = $.useState(() => (window.top || window).innerWidth <
|
|
547
|
+
const rt = 450;
|
|
548
|
+
function O() {
|
|
549
|
+
const [e, r] = $.useState(() => (window.top || window).innerWidth < rt);
|
|
550
550
|
return $.useEffect(() => {
|
|
551
551
|
const t = window.top || window, n = () => {
|
|
552
|
-
r(t.innerWidth <
|
|
552
|
+
r(t.innerWidth < rt);
|
|
553
553
|
};
|
|
554
554
|
return n(), t.addEventListener("resize", n), () => {
|
|
555
555
|
t.removeEventListener("resize", n);
|
|
556
556
|
};
|
|
557
557
|
}, []), { isSmallScreen: e };
|
|
558
558
|
}
|
|
559
|
-
const
|
|
559
|
+
const se = {
|
|
560
560
|
transitionTimingFunction: "cubic-bezier(0.16, 1, 0.3, 1)",
|
|
561
561
|
transitionDuration: "1000ms"
|
|
562
562
|
};
|
|
563
|
-
function
|
|
564
|
-
var w, m, k, f,
|
|
565
|
-
const { dir: e } =
|
|
563
|
+
function U() {
|
|
564
|
+
var w, m, k, f, N, T, _, M, A, P, W, j, v, C, z, L, ne, Ne, Se, _e, Ie, Te, Me, De, je, Ee, Re, Oe, Ae, Pe, We, He, Fe, Be, Le, Ye, $e, qe, Ue, Ve, Xe, Ge, Ke, Ze, Qe, Je, et;
|
|
565
|
+
const { dir: e } = we(), { isSmallScreen: r } = O(), { theme: t, inline: n } = x(), s = (Y) => n ? "100%" : Y, i = (Y, de) => r ? `100dv${Y}` : de, a = (Y, de) => s(i(Y, de)), c = {
|
|
566
566
|
zIndex: ((w = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : w.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,
|
|
569
|
-
right: ((
|
|
570
|
-
left: ((
|
|
569
|
+
right: ((N = (f = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : f.offset) == null ? void 0 : N.right) ?? (e === "ltr" ? 20 : "initial"),
|
|
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: ((W = (P = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : P.size) == null ? void 0 : W.icon) ?? 24
|
|
575
575
|
}
|
|
576
576
|
}, l = (() => {
|
|
577
577
|
const Y = e === "ltr" ? c.offset.right : c.offset.left;
|
|
@@ -585,43 +585,43 @@ function V() {
|
|
|
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
|
-
outlineColor: ((
|
|
589
|
-
boxShadow: ((
|
|
590
|
-
transitionProperty: ((
|
|
591
|
-
transitionTimingFunction: ((
|
|
592
|
-
transitionDuration: ((
|
|
588
|
+
outlineColor: ((z = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : z.outlineColor) ?? "hsl(0 0% 50% / .5)",
|
|
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
|
+
transitionProperty: ((ne = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : ne.transitionProperty) ?? "all",
|
|
591
|
+
transitionTimingFunction: ((Ne = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Ne.transitionTimingFunction) ?? se.transitionTimingFunction,
|
|
592
|
+
transitionDuration: ((Se = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Se.transitionDuration) ?? se.transitionDuration,
|
|
593
593
|
offset: {
|
|
594
|
-
side: r ? 0 : c.offset.bottom + c.size.button +
|
|
595
|
-
align: r ? 0 : l + (((
|
|
594
|
+
side: r ? 0 : c.offset.bottom + c.size.button + X.y * 2 + (((Ie = (_e = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : _e.offset) == null ? void 0 : Ie.side) ?? 10),
|
|
595
|
+
align: r ? 0 : l + (((Me = (Te = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Te.offset) == null ? void 0 : Me.align) ?? 0)
|
|
596
596
|
}
|
|
597
597
|
},
|
|
598
598
|
screens: {
|
|
599
599
|
welcome: {
|
|
600
|
-
width:
|
|
600
|
+
width: a("w", ((je = (De = t == null ? void 0 : t.screens) == null ? void 0 : De.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
|
+
((Re = (Ee = t == null ? void 0 : t.screens) == null ? void 0 : Ee.welcome) == null ? void 0 : Re.minHeight) ?? "1px"
|
|
605
605
|
)
|
|
606
606
|
},
|
|
607
607
|
sessions: {
|
|
608
|
-
width:
|
|
609
|
-
height:
|
|
608
|
+
width: a("w", ((Ae = (Oe = t == null ? void 0 : t.screens) == null ? void 0 : Oe.sessions) == null ? void 0 : Ae.width) ?? "450px"),
|
|
609
|
+
height: a("h", ((We = (Pe = t == null ? void 0 : t.screens) == null ? void 0 : Pe.sessions) == null ? void 0 : We.height) ?? "600px")
|
|
610
610
|
},
|
|
611
611
|
chat: {
|
|
612
|
-
width:
|
|
613
|
-
height:
|
|
612
|
+
width: a("w", ((Fe = (He = t == null ? void 0 : t.screens) == null ? void 0 : He.chat) == null ? void 0 : Fe.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
|
+
((qe = ($e = (Ye = t == null ? void 0 : t.screens) == null ? void 0 : Ye.chat) == null ? void 0 : $e.withCanvas) == null ? void 0 : qe.width) ?? "min(1050px, 100vw)"
|
|
618
618
|
),
|
|
619
|
-
height:
|
|
619
|
+
height: a(
|
|
620
620
|
"h",
|
|
621
|
-
((
|
|
621
|
+
((Xe = (Ve = (Ue = t == null ? void 0 : t.screens) == null ? void 0 : Ue.chat) == null ? void 0 : Ve.withCanvas) == null ? void 0 : Xe.height) ?? "min(800px, 100vh)"
|
|
622
622
|
),
|
|
623
|
-
transitionTimingFunction: ((
|
|
624
|
-
transitionDuration: ((
|
|
623
|
+
transitionTimingFunction: ((Ze = (Ke = (Ge = t == null ? void 0 : t.screens) == null ? void 0 : Ge.chat) == null ? void 0 : Ke.withCanvas) == null ? void 0 : Ze.transitionTimingFunction) ?? se.transitionTimingFunction,
|
|
624
|
+
transitionDuration: ((et = (Je = (Qe = t == null ? void 0 : t.screens) == null ? void 0 : Qe.chat) == null ? void 0 : Je.withCanvas) == null ? void 0 : et.transitionDuration) ?? se.transitionDuration
|
|
625
625
|
}
|
|
626
626
|
}
|
|
627
627
|
}
|
|
@@ -629,24 +629,24 @@ function V() {
|
|
|
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
|
|
636
636
|
- ${h.widgetTrigger.offset.bottom}px
|
|
637
637
|
- ${h.widgetContentContainer.offset.side}px
|
|
638
|
-
- ${
|
|
638
|
+
- ${X.y * 2}px
|
|
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 V() {
|
|
|
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 V() {
|
|
|
666
666
|
return {
|
|
667
667
|
theme: h,
|
|
668
668
|
computed: b,
|
|
669
|
-
cssVars:
|
|
669
|
+
cssVars: qo({
|
|
670
670
|
palette: h.palette,
|
|
671
671
|
primary: h.primaryColor
|
|
672
672
|
})
|
|
673
673
|
};
|
|
674
674
|
}
|
|
675
|
-
function
|
|
675
|
+
function qo({
|
|
676
676
|
palette: e,
|
|
677
677
|
primary: r
|
|
678
678
|
}) {
|
|
679
|
-
const t =
|
|
679
|
+
const t = Dt(e), n = ot(r).toHsl(), s = ot(r).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 Vo({
|
|
|
695
695
|
"--opencx-ring": "var(--opencx-foreground)"
|
|
696
696
|
};
|
|
697
697
|
}
|
|
698
|
-
function
|
|
698
|
+
function Dt(e) {
|
|
699
699
|
const r = {
|
|
700
700
|
50: "0 0% 98%",
|
|
701
701
|
100: "0 0% 96.1%",
|
|
@@ -755,11 +755,11 @@ function jt(e) {
|
|
|
755
755
|
case "slate":
|
|
756
756
|
return s;
|
|
757
757
|
default:
|
|
758
|
-
return D(e,
|
|
758
|
+
return D(e, Dt.name), r;
|
|
759
759
|
}
|
|
760
760
|
}
|
|
761
|
-
function
|
|
762
|
-
const { contentIframeRef: e } =
|
|
761
|
+
function jt() {
|
|
762
|
+
const { contentIframeRef: e } = E(), { inline: r } = x();
|
|
763
763
|
return {
|
|
764
764
|
setWidth: (t) => {
|
|
765
765
|
var n;
|
|
@@ -777,93 +777,80 @@ function Et() {
|
|
|
777
777
|
}
|
|
778
778
|
};
|
|
779
779
|
}
|
|
780
|
-
function
|
|
780
|
+
function ye({
|
|
781
781
|
width: e,
|
|
782
782
|
height: r
|
|
783
783
|
}) {
|
|
784
|
-
const { isSmallScreen: t } =
|
|
785
|
-
|
|
784
|
+
const { isSmallScreen: t } = O(), { setWidth: n, setHeight: s } = jt();
|
|
785
|
+
oe(() => {
|
|
786
786
|
e && n(e), r && s(r);
|
|
787
787
|
}, [t, r, e, n, s]);
|
|
788
788
|
}
|
|
789
|
-
const
|
|
790
|
-
function
|
|
789
|
+
const nt = Jt;
|
|
790
|
+
function ee({
|
|
791
791
|
name: e,
|
|
792
792
|
className: r
|
|
793
793
|
}) {
|
|
794
794
|
const t = (() => {
|
|
795
795
|
switch (e) {
|
|
796
796
|
case "Check":
|
|
797
|
-
return
|
|
797
|
+
return mo;
|
|
798
798
|
case "CheckCheck":
|
|
799
|
-
return
|
|
799
|
+
return ho;
|
|
800
800
|
case "CircleCheck":
|
|
801
|
-
return
|
|
801
|
+
return mt;
|
|
802
802
|
case "CircleCheckBig":
|
|
803
|
-
return
|
|
803
|
+
return po;
|
|
804
804
|
case "CircleX":
|
|
805
|
-
return
|
|
805
|
+
return co;
|
|
806
806
|
case "Expand":
|
|
807
|
-
return
|
|
807
|
+
return lo;
|
|
808
808
|
case "Maximize":
|
|
809
|
-
return
|
|
809
|
+
return io;
|
|
810
810
|
case "Maximize2":
|
|
811
|
-
return
|
|
811
|
+
return ao;
|
|
812
812
|
case "Minimize":
|
|
813
|
-
return
|
|
813
|
+
return so;
|
|
814
814
|
case "Minimize2":
|
|
815
|
-
return
|
|
815
|
+
return no;
|
|
816
816
|
case "Shrink":
|
|
817
|
-
return
|
|
817
|
+
return ro;
|
|
818
818
|
case "SquareCheck":
|
|
819
|
-
return
|
|
819
|
+
return oo;
|
|
820
820
|
case "SquareCheckBig":
|
|
821
|
-
return
|
|
821
|
+
return to;
|
|
822
822
|
case "SquareX":
|
|
823
|
-
return
|
|
823
|
+
return eo;
|
|
824
824
|
case "X":
|
|
825
|
-
return
|
|
825
|
+
return fe;
|
|
826
826
|
case void 0:
|
|
827
|
-
return
|
|
827
|
+
return nt;
|
|
828
828
|
default:
|
|
829
|
-
return D(e,
|
|
829
|
+
return D(e, ee.name), nt;
|
|
830
830
|
}
|
|
831
831
|
})();
|
|
832
832
|
return /* @__PURE__ */ o(t, { className: p("size-4", r) });
|
|
833
833
|
}
|
|
834
|
-
function
|
|
835
|
-
|
|
836
|
-
...r
|
|
837
|
-
}) {
|
|
838
|
-
return /* @__PURE__ */ o(
|
|
839
|
-
"div",
|
|
840
|
-
{
|
|
841
|
-
className: p("animate-pulse rounded-md bg-secondary", e),
|
|
842
|
-
...r
|
|
843
|
-
}
|
|
844
|
-
);
|
|
845
|
-
}
|
|
846
|
-
function ze() {
|
|
847
|
-
var s;
|
|
848
|
-
const { data: e } = de(), {
|
|
834
|
+
function ke() {
|
|
835
|
+
const { widgetCtx: { org: e } } = E(), {
|
|
849
836
|
routerState: { screen: r }
|
|
850
|
-
} =
|
|
837
|
+
} = B(), { textContent: t } = x();
|
|
851
838
|
return (() => {
|
|
852
|
-
var
|
|
839
|
+
var s, i;
|
|
853
840
|
switch (r) {
|
|
854
841
|
case "chat":
|
|
855
|
-
return (
|
|
842
|
+
return (s = t == null ? void 0 : t.chatScreen) == null ? void 0 : s.headerTitle;
|
|
856
843
|
case "sessions":
|
|
857
844
|
return (i = t == null ? void 0 : t.sessionsScreen) == null ? void 0 : i.headerTitle;
|
|
858
845
|
case "welcome":
|
|
859
846
|
return;
|
|
860
847
|
default:
|
|
861
|
-
D(r,
|
|
848
|
+
D(r, ke.name);
|
|
862
849
|
return;
|
|
863
850
|
}
|
|
864
|
-
})() ??
|
|
851
|
+
})() ?? e.name ?? "Chat";
|
|
865
852
|
}
|
|
866
|
-
function
|
|
853
|
+
function Uo(e) {
|
|
867
854
|
switch (e) {
|
|
868
855
|
case "chat":
|
|
869
856
|
return u("chat/header");
|
|
@@ -872,15 +859,15 @@ function Xo(e) {
|
|
|
872
859
|
case "welcome":
|
|
873
860
|
return;
|
|
874
861
|
default:
|
|
875
|
-
D(e,
|
|
862
|
+
D(e, ke.name);
|
|
876
863
|
return;
|
|
877
864
|
}
|
|
878
865
|
}
|
|
879
|
-
function
|
|
866
|
+
function Vo() {
|
|
880
867
|
const { router: e } = x(), {
|
|
881
868
|
routerState: { screen: r },
|
|
882
869
|
toSessionsScreen: t
|
|
883
|
-
} =
|
|
870
|
+
} = B();
|
|
884
871
|
return r !== "chat" || e != null && e.chatScreenOnly ? null : /* @__PURE__ */ o(
|
|
885
872
|
y,
|
|
886
873
|
{
|
|
@@ -888,14 +875,14 @@ function Go() {
|
|
|
888
875
|
size: "fit",
|
|
889
876
|
className: "rounded-full",
|
|
890
877
|
onClick: t,
|
|
891
|
-
children: /* @__PURE__ */ o(
|
|
878
|
+
children: /* @__PURE__ */ o(uo, { className: "size-4 rtl:-scale-100" })
|
|
892
879
|
}
|
|
893
880
|
);
|
|
894
881
|
}
|
|
895
|
-
function
|
|
882
|
+
function Xo({
|
|
896
883
|
button: e
|
|
897
884
|
}) {
|
|
898
|
-
const { setIsOpen: r } =
|
|
885
|
+
const { setIsOpen: r } = K(), { isSmallScreen: t } = O();
|
|
899
886
|
return t && e.hideOnSmallScreen || !t && e.hideOnLargeScreen ? null : /* @__PURE__ */ o(
|
|
900
887
|
y,
|
|
901
888
|
{
|
|
@@ -906,39 +893,39 @@ function Ko({
|
|
|
906
893
|
if (e.handleClick) return e.handleClick();
|
|
907
894
|
r(!1);
|
|
908
895
|
},
|
|
909
|
-
children: /* @__PURE__ */ o(
|
|
896
|
+
children: /* @__PURE__ */ o(ee, { name: e.icon })
|
|
910
897
|
}
|
|
911
898
|
);
|
|
912
899
|
}
|
|
913
|
-
function
|
|
900
|
+
function ue({
|
|
914
901
|
button: e
|
|
915
902
|
}) {
|
|
916
903
|
const [r, t] = I(!1), {
|
|
917
904
|
routerState: { screen: n }
|
|
918
|
-
} =
|
|
905
|
+
} = B(), { isSmallScreen: s } = O(), { theme: i } = U(), { setWidth: a, setHeight: c } = jt();
|
|
919
906
|
if (n !== "chat" && n !== "sessions") return null;
|
|
920
907
|
const l = (() => {
|
|
921
908
|
switch (n) {
|
|
922
909
|
case "chat":
|
|
923
|
-
return
|
|
910
|
+
return i.screens.chat.height;
|
|
924
911
|
case "sessions":
|
|
925
|
-
return
|
|
912
|
+
return i.screens.sessions.height;
|
|
926
913
|
default:
|
|
927
|
-
return D(n,
|
|
914
|
+
return D(n, ue.name), i.screens.chat.height;
|
|
928
915
|
}
|
|
929
916
|
})(), h = (() => {
|
|
930
917
|
switch (n) {
|
|
931
918
|
case "chat":
|
|
932
|
-
return
|
|
919
|
+
return i.screens.chat.width;
|
|
933
920
|
case "sessions":
|
|
934
|
-
return
|
|
921
|
+
return i.screens.sessions.width;
|
|
935
922
|
default:
|
|
936
|
-
return D(n,
|
|
923
|
+
return D(n, ue.name), i.screens.chat.width;
|
|
937
924
|
}
|
|
938
925
|
})(), b = () => {
|
|
939
926
|
t((w) => {
|
|
940
927
|
const m = !w;
|
|
941
|
-
return c(m ? "100vh" : l),
|
|
928
|
+
return c(m ? "100vh" : l), a(m ? `max(40vw, ${h})` : h), m;
|
|
942
929
|
});
|
|
943
930
|
};
|
|
944
931
|
return s && e.hideOnSmallScreen || !s && e.hideOnLargeScreen ? null : /* @__PURE__ */ o(
|
|
@@ -949,7 +936,7 @@ function we({
|
|
|
949
936
|
className: "rounded-full",
|
|
950
937
|
onClick: b,
|
|
951
938
|
children: /* @__PURE__ */ o(
|
|
952
|
-
|
|
939
|
+
ee,
|
|
953
940
|
{
|
|
954
941
|
name: e.icon || (r ? e.shrinkIcon : e.expandIcon)
|
|
955
942
|
}
|
|
@@ -957,13 +944,13 @@ function we({
|
|
|
957
944
|
}
|
|
958
945
|
);
|
|
959
946
|
}
|
|
960
|
-
function
|
|
947
|
+
function Et({
|
|
961
948
|
button: e
|
|
962
949
|
}) {
|
|
963
|
-
var
|
|
964
|
-
const { close: r } =
|
|
965
|
-
const { success:
|
|
966
|
-
if (r(), !
|
|
950
|
+
var N, T;
|
|
951
|
+
const { close: r } = ce(), { widgetCtx: t } = E(), { setIsOpen: n } = K(), { resolveSession: s, sessionState: i } = q(), { isSmallScreen: a } = O(), c = !i.session, l = ((N = i.session) == null ? void 0 : N.isOpened) === !1, h = e.onResolved || "stay-in-chat", b = e.behaviorBeforeSessionCreation || "disabled", w = e.behaviorIfSessionIsResolved || "disabled", m = !!(i.isResolvingSession || c && b === "disabled" || l && w === "disabled"), k = async () => {
|
|
952
|
+
const { success: _, error: M } = await s();
|
|
953
|
+
if (r(), !_) return console.error(M);
|
|
967
954
|
switch (h) {
|
|
968
955
|
case "stay-in-chat":
|
|
969
956
|
return;
|
|
@@ -977,7 +964,7 @@ function Ot({
|
|
|
977
964
|
n(!1), t.resetChat();
|
|
978
965
|
break;
|
|
979
966
|
default:
|
|
980
|
-
D(h,
|
|
967
|
+
D(h, Et.name);
|
|
981
968
|
break;
|
|
982
969
|
}
|
|
983
970
|
}, f = () => {
|
|
@@ -1016,8 +1003,8 @@ function Ot({
|
|
|
1016
1003
|
);
|
|
1017
1004
|
}
|
|
1018
1005
|
};
|
|
1019
|
-
return
|
|
1020
|
-
|
|
1006
|
+
return a && e.hideOnSmallScreen || !a && e.hideOnLargeScreen ? null : ((T = e.confirmation) == null ? void 0 : T.type) === "modal" && !l && !c ? /* @__PURE__ */ o(
|
|
1007
|
+
Nt,
|
|
1021
1008
|
{
|
|
1022
1009
|
trigger: /* @__PURE__ */ o(
|
|
1023
1010
|
y,
|
|
@@ -1026,19 +1013,19 @@ function Ot({
|
|
|
1026
1013
|
size: "fit",
|
|
1027
1014
|
className: "rounded-full",
|
|
1028
1015
|
disabled: m,
|
|
1029
|
-
children: /* @__PURE__ */ o(
|
|
1016
|
+
children: /* @__PURE__ */ o(ee, { name: e.icon })
|
|
1030
1017
|
}
|
|
1031
1018
|
),
|
|
1032
|
-
children: /* @__PURE__ */ d(
|
|
1033
|
-
/* @__PURE__ */ o(
|
|
1034
|
-
/* @__PURE__ */ o(
|
|
1035
|
-
/* @__PURE__ */ d(
|
|
1019
|
+
children: /* @__PURE__ */ d(bt, { children: [
|
|
1020
|
+
/* @__PURE__ */ o(xt, { children: /* @__PURE__ */ o(Ct, { children: e.confirmation.title || "Close conversation" }) }),
|
|
1021
|
+
/* @__PURE__ */ o(yt, { children: /* @__PURE__ */ o(zt, { children: e.confirmation.description || "Are you sure you want to close this conversation?" }) }),
|
|
1022
|
+
/* @__PURE__ */ d(kt, { children: [
|
|
1036
1023
|
/* @__PURE__ */ o(
|
|
1037
1024
|
y,
|
|
1038
1025
|
{
|
|
1039
1026
|
variant: "secondary",
|
|
1040
1027
|
onClick: r,
|
|
1041
|
-
disabled:
|
|
1028
|
+
disabled: i.isResolvingSession,
|
|
1042
1029
|
children: e.confirmation.cancelButtonText || "No"
|
|
1043
1030
|
}
|
|
1044
1031
|
),
|
|
@@ -1047,7 +1034,7 @@ function Ot({
|
|
|
1047
1034
|
{
|
|
1048
1035
|
variant: "destructive",
|
|
1049
1036
|
onClick: k,
|
|
1050
|
-
disabled:
|
|
1037
|
+
disabled: i.isResolvingSession,
|
|
1051
1038
|
children: e.confirmation.confirmButtonText || "Yes"
|
|
1052
1039
|
}
|
|
1053
1040
|
)
|
|
@@ -1062,45 +1049,45 @@ function Ot({
|
|
|
1062
1049
|
className: "rounded-full",
|
|
1063
1050
|
onClick: l || c ? f : k,
|
|
1064
1051
|
disabled: m,
|
|
1065
|
-
children: /* @__PURE__ */ o(
|
|
1052
|
+
children: /* @__PURE__ */ o(ee, { name: e.icon })
|
|
1066
1053
|
}
|
|
1067
1054
|
);
|
|
1068
1055
|
}
|
|
1069
|
-
function
|
|
1056
|
+
function ge({ button: e }) {
|
|
1070
1057
|
switch (e.functionality) {
|
|
1071
1058
|
case "close-widget":
|
|
1072
|
-
return /* @__PURE__ */ o(
|
|
1059
|
+
return /* @__PURE__ */ o(Xo, { button: e });
|
|
1073
1060
|
case "expand-shrink":
|
|
1074
|
-
return /* @__PURE__ */ o(
|
|
1061
|
+
return /* @__PURE__ */ o(ue, { button: e });
|
|
1075
1062
|
case "resolve-session":
|
|
1076
|
-
return /* @__PURE__ */ o(
|
|
1063
|
+
return /* @__PURE__ */ o(Et, { button: e });
|
|
1077
1064
|
default:
|
|
1078
|
-
return D(e,
|
|
1065
|
+
return D(e, ge.name), null;
|
|
1079
1066
|
}
|
|
1080
1067
|
}
|
|
1081
|
-
const
|
|
1068
|
+
const Go = {
|
|
1082
1069
|
functionality: "close-widget",
|
|
1083
1070
|
hideOnLargeScreen: !0,
|
|
1084
1071
|
icon: "X"
|
|
1085
1072
|
};
|
|
1086
|
-
function
|
|
1073
|
+
function Ko() {
|
|
1087
1074
|
const {
|
|
1088
1075
|
routerState: { screen: e }
|
|
1089
|
-
} =
|
|
1090
|
-
return !t || t.length === 0 ? /* @__PURE__ */ o(
|
|
1091
|
-
|
|
1076
|
+
} = B(), { headerButtons: r } = x(), t = e === "chat" ? r == null ? void 0 : r.chatScreen : e === "sessions" ? r == null ? void 0 : r.sessionsScreen : [];
|
|
1077
|
+
return !t || t.length === 0 ? /* @__PURE__ */ o(ge, { button: Go }) : /* @__PURE__ */ o(te, { children: t.map((n) => /* @__PURE__ */ o(
|
|
1078
|
+
ge,
|
|
1092
1079
|
{
|
|
1093
1080
|
button: n
|
|
1094
1081
|
},
|
|
1095
1082
|
`${n.functionality}-${n.icon}`
|
|
1096
1083
|
)) });
|
|
1097
1084
|
}
|
|
1098
|
-
function
|
|
1085
|
+
function Rt() {
|
|
1099
1086
|
const {
|
|
1100
1087
|
routerState: { screen: e }
|
|
1101
|
-
} =
|
|
1102
|
-
return /* @__PURE__ */ o("header", { ...
|
|
1103
|
-
/* @__PURE__ */ o(
|
|
1088
|
+
} = B(), r = Uo(e), t = ke();
|
|
1089
|
+
return /* @__PURE__ */ o("header", { ...r, className: "py-2 px-4 shrink-0", children: /* @__PURE__ */ d("div", { className: "flex items-center gap-2", children: [
|
|
1090
|
+
/* @__PURE__ */ o(Vo, {}),
|
|
1104
1091
|
/* @__PURE__ */ o(
|
|
1105
1092
|
"div",
|
|
1106
1093
|
{
|
|
@@ -1108,31 +1095,31 @@ function Pt() {
|
|
|
1108
1095
|
"flex-1 h-8 flex items-center",
|
|
1109
1096
|
e === "sessions" && "ps-2"
|
|
1110
1097
|
),
|
|
1111
|
-
children: /* @__PURE__ */ o(
|
|
1098
|
+
children: /* @__PURE__ */ o("h2", { className: "font-semibold", children: t })
|
|
1112
1099
|
}
|
|
1113
1100
|
),
|
|
1114
|
-
/* @__PURE__ */ o(
|
|
1101
|
+
/* @__PURE__ */ o(Ko, {})
|
|
1115
1102
|
] }) });
|
|
1116
1103
|
}
|
|
1117
|
-
function
|
|
1118
|
-
return /* @__PURE__ */ o(
|
|
1104
|
+
function Ot({ className: e }) {
|
|
1105
|
+
return /* @__PURE__ */ o(go, { className: p("size-4 animate-spin", e) });
|
|
1119
1106
|
}
|
|
1120
|
-
function
|
|
1107
|
+
function Zo() {
|
|
1121
1108
|
const {
|
|
1122
1109
|
messagesState: { isInitialFetchLoading: e }
|
|
1123
|
-
} =
|
|
1110
|
+
} = R(), { isSmallScreen: r } = O(), { activeMode: t, Component: n } = dt();
|
|
1124
1111
|
return {
|
|
1125
1112
|
isCanvasOpen: !e && !r && !!t && !!n
|
|
1126
1113
|
};
|
|
1127
1114
|
}
|
|
1128
|
-
function
|
|
1129
|
-
const { activeMode: e, Component: r } =
|
|
1115
|
+
function Qo() {
|
|
1116
|
+
const { activeMode: e, Component: r } = dt(), { sendMessage: t } = R(), { createStateCheckpoint: n } = q(), [s, i] = I(!1), a = async (c) => {
|
|
1130
1117
|
try {
|
|
1131
|
-
|
|
1118
|
+
i(!0), await t(c);
|
|
1132
1119
|
} catch (l) {
|
|
1133
1120
|
console.error(l);
|
|
1134
1121
|
} finally {
|
|
1135
|
-
|
|
1122
|
+
i(!1);
|
|
1136
1123
|
}
|
|
1137
1124
|
};
|
|
1138
1125
|
return !e || !r ? null : /* @__PURE__ */ o(
|
|
@@ -1141,12 +1128,12 @@ function er() {
|
|
|
1141
1128
|
react: $,
|
|
1142
1129
|
mode: e,
|
|
1143
1130
|
createStateCheckpoint: n,
|
|
1144
|
-
sendMessage:
|
|
1131
|
+
sendMessage: a,
|
|
1145
1132
|
isSendingMessage: s
|
|
1146
1133
|
}
|
|
1147
1134
|
);
|
|
1148
1135
|
}
|
|
1149
|
-
const
|
|
1136
|
+
const F = $.forwardRef(
|
|
1150
1137
|
(e, r) => {
|
|
1151
1138
|
var t, n, s;
|
|
1152
1139
|
return /* @__PURE__ */ o(
|
|
@@ -1164,8 +1151,8 @@ const H = $.forwardRef(
|
|
|
1164
1151
|
);
|
|
1165
1152
|
}
|
|
1166
1153
|
);
|
|
1167
|
-
|
|
1168
|
-
const
|
|
1154
|
+
F.displayName = "MotionDiv__VerticalReveal";
|
|
1155
|
+
const Jo = [
|
|
1169
1156
|
{
|
|
1170
1157
|
label: "Terrible",
|
|
1171
1158
|
value: 1,
|
|
@@ -1192,23 +1179,23 @@ const tr = [
|
|
|
1192
1179
|
emoji: "😍"
|
|
1193
1180
|
}
|
|
1194
1181
|
];
|
|
1195
|
-
function
|
|
1196
|
-
const { isSmallScreen: e } =
|
|
1182
|
+
function er() {
|
|
1183
|
+
const { isSmallScreen: e } = O(), {
|
|
1197
1184
|
submitCsat: r,
|
|
1198
1185
|
isCsatRequested: t,
|
|
1199
1186
|
isCsatSubmitted: n,
|
|
1200
1187
|
submittedScore: s,
|
|
1201
|
-
submittedFeedback:
|
|
1202
|
-
} =
|
|
1188
|
+
submittedFeedback: i
|
|
1189
|
+
} = pt(), [a, c] = I(null), [l, h] = I(null), b = (m) => {
|
|
1203
1190
|
c((k) => k === m ? null : m);
|
|
1204
1191
|
}, w = () => {
|
|
1205
|
-
|
|
1206
|
-
score:
|
|
1192
|
+
a && r({
|
|
1193
|
+
score: a,
|
|
1207
1194
|
feedback: l || void 0
|
|
1208
1195
|
});
|
|
1209
1196
|
};
|
|
1210
1197
|
return !t && !n ? null : /* @__PURE__ */ d("div", { className: "w-1/2 min-w-80 max-w-96 mx-auto overflow-hidden", children: [
|
|
1211
|
-
/* @__PURE__ */ o(
|
|
1198
|
+
/* @__PURE__ */ o(S, { mode: "wait", children: t && !a ? /* @__PURE__ */ o(F, { children: /* @__PURE__ */ o("p", { className: "text-sm text-muted-foreground text-center pt-2", children: "How was your conversation?" }) }, "csat-requested-title") : n ? /* @__PURE__ */ o(F, { children: /* @__PURE__ */ o("p", { className: "text-sm text-muted-foreground text-center pt-2", children: "You rated the conversation as" }) }, "csat-submitted-title") : null }),
|
|
1212
1199
|
/* @__PURE__ */ o(
|
|
1213
1200
|
"div",
|
|
1214
1201
|
{
|
|
@@ -1217,18 +1204,18 @@ function or() {
|
|
|
1217
1204
|
"transition-all",
|
|
1218
1205
|
n && "gap-0 justify-center"
|
|
1219
1206
|
),
|
|
1220
|
-
children:
|
|
1207
|
+
children: Jo.map((m) => /* @__PURE__ */ o(
|
|
1221
1208
|
y,
|
|
1222
1209
|
{
|
|
1223
|
-
variant: m.value ===
|
|
1210
|
+
variant: m.value === a ? "secondary" : "ghost",
|
|
1224
1211
|
size: "selfless",
|
|
1225
1212
|
className: p(
|
|
1226
1213
|
"transition-all overflow-hidden",
|
|
1227
1214
|
"text-2xl size-8 rounded-full",
|
|
1228
1215
|
"opacity-35",
|
|
1229
1216
|
"hover:opacity-100",
|
|
1230
|
-
!
|
|
1231
|
-
m.value ===
|
|
1217
|
+
!a && "opacity-100",
|
|
1218
|
+
m.value === a && "opacity-100",
|
|
1232
1219
|
n && m.value !== s && "opacity-0 size-0",
|
|
1233
1220
|
n && m.value === s && "opacity-100 size-fit text-4xl"
|
|
1234
1221
|
),
|
|
@@ -1239,7 +1226,7 @@ function or() {
|
|
|
1239
1226
|
))
|
|
1240
1227
|
}
|
|
1241
1228
|
),
|
|
1242
|
-
/* @__PURE__ */ o(
|
|
1229
|
+
/* @__PURE__ */ o(S, { mode: "wait", children: (a || s) && /* @__PURE__ */ o(F, { children: /* @__PURE__ */ d("div", { className: "pb-2 px-2 flex items-end", children: [
|
|
1243
1230
|
/* @__PURE__ */ o(
|
|
1244
1231
|
"textarea",
|
|
1245
1232
|
{
|
|
@@ -1254,7 +1241,7 @@ function or() {
|
|
|
1254
1241
|
e ? "text-[16px]" : "text-sm",
|
|
1255
1242
|
n && "text-center"
|
|
1256
1243
|
),
|
|
1257
|
-
value: n ?
|
|
1244
|
+
value: n ? i || "" : l || "",
|
|
1258
1245
|
onChange: t ? (m) => h(m.target.value) : void 0,
|
|
1259
1246
|
readOnly: n,
|
|
1260
1247
|
placeholder: t ? "Tell us more... (optional)" : void 0
|
|
@@ -1265,20 +1252,20 @@ function or() {
|
|
|
1265
1252
|
{
|
|
1266
1253
|
size: "fit",
|
|
1267
1254
|
onClick: w,
|
|
1268
|
-
disabled: !
|
|
1255
|
+
disabled: !a,
|
|
1269
1256
|
className: p(
|
|
1270
1257
|
"transition-all overflow-hidden",
|
|
1271
1258
|
"rounded-full size-8 flex items-center justify-center p-0",
|
|
1272
1259
|
n && "opacity-0 size-0"
|
|
1273
1260
|
),
|
|
1274
|
-
children: /* @__PURE__ */ o(
|
|
1261
|
+
children: /* @__PURE__ */ o(ut, { className: "size-4" })
|
|
1275
1262
|
}
|
|
1276
1263
|
)
|
|
1277
1264
|
] }) }, "feedback-box") }),
|
|
1278
1265
|
/* @__PURE__ */ o("div", { className: p("h-0 transition-[height]", n && "h-4") })
|
|
1279
1266
|
] });
|
|
1280
1267
|
}
|
|
1281
|
-
const
|
|
1268
|
+
const tr = {
|
|
1282
1269
|
"write-a-message": "اكتب رسالة...",
|
|
1283
1270
|
"session-closed-lead": "تم حل مشكلتك!",
|
|
1284
1271
|
"new-conversation": "محادثة جديدة",
|
|
@@ -1294,7 +1281,7 @@ const rr = {
|
|
|
1294
1281
|
"no-conversations-yet": "لا يوجد محادثات",
|
|
1295
1282
|
"back-to-conversations": "العودة إلى المحادثات",
|
|
1296
1283
|
"closed-conversations": "المحادثات المغلقة"
|
|
1297
|
-
},
|
|
1284
|
+
}, or = {
|
|
1298
1285
|
"write-a-message": "Nachricht schreiben...",
|
|
1299
1286
|
"session-closed-lead": "Ihr Problem wurde gelöst!",
|
|
1300
1287
|
"new-conversation": "Neue Konversation",
|
|
@@ -1310,7 +1297,7 @@ const rr = {
|
|
|
1310
1297
|
"no-conversations-yet": "noch keine Gespräche",
|
|
1311
1298
|
"back-to-conversations": "Zurück zur Konversationen",
|
|
1312
1299
|
"closed-conversations": "Geschlossene Konversationen"
|
|
1313
|
-
},
|
|
1300
|
+
}, rr = {
|
|
1314
1301
|
"write-a-message": "Write a message...",
|
|
1315
1302
|
"session-closed-lead": "Your issue has been resolved!",
|
|
1316
1303
|
"new-conversation": "New conversation",
|
|
@@ -1326,7 +1313,7 @@ const rr = {
|
|
|
1326
1313
|
"no-conversations-yet": "No conversations yet",
|
|
1327
1314
|
"back-to-conversations": "Back to conversations",
|
|
1328
1315
|
"closed-conversations": "Closed conversations"
|
|
1329
|
-
},
|
|
1316
|
+
}, nr = {
|
|
1330
1317
|
"write-a-message": "Écrivez un message...",
|
|
1331
1318
|
"session-closed-lead": "Votre problème a été résolu !",
|
|
1332
1319
|
"new-conversation": "Nouvelle conversation",
|
|
@@ -1342,7 +1329,7 @@ const rr = {
|
|
|
1342
1329
|
"no-conversations-yet": "Aucune conversation pour le moment",
|
|
1343
1330
|
"back-to-conversations": "Retour aux conversations",
|
|
1344
1331
|
"closed-conversations": "Conversations fermées"
|
|
1345
|
-
},
|
|
1332
|
+
}, sr = {
|
|
1346
1333
|
"write-a-message": "Schrijf een bericht...",
|
|
1347
1334
|
"session-closed-lead": "Uw probleem is opgelost!",
|
|
1348
1335
|
"new-conversation": "Nieuw gesprek",
|
|
@@ -1358,7 +1345,7 @@ const rr = {
|
|
|
1358
1345
|
"no-conversations-yet": "Nog geen gesprekken",
|
|
1359
1346
|
"back-to-conversations": "Terug naar gesprekken",
|
|
1360
1347
|
"closed-conversations": "Afgesloten gesprekken"
|
|
1361
|
-
},
|
|
1348
|
+
}, ar = {
|
|
1362
1349
|
"write-a-message": "Escreva uma mensagem...",
|
|
1363
1350
|
"session-closed-lead": "Seu problema foi resolvido!",
|
|
1364
1351
|
"new-conversation": "Nova conversa",
|
|
@@ -1374,7 +1361,7 @@ const rr = {
|
|
|
1374
1361
|
"no-conversations-yet": "Nenhuma conversa ainda",
|
|
1375
1362
|
"back-to-conversations": "Voltar para conversas",
|
|
1376
1363
|
"closed-conversations": "Conversas fechadas"
|
|
1377
|
-
},
|
|
1364
|
+
}, ir = {
|
|
1378
1365
|
"write-a-message": "Escribe un mensaje...",
|
|
1379
1366
|
"session-closed-lead": "¡Tu problema fue resuelto!",
|
|
1380
1367
|
"new-conversation": "Nueva conversación",
|
|
@@ -1390,7 +1377,7 @@ const rr = {
|
|
|
1390
1377
|
"no-conversations-yet": "Sin conversaciones aún",
|
|
1391
1378
|
"back-to-conversations": "Volver a conversaciones",
|
|
1392
1379
|
"closed-conversations": "Conversaciones cerradas"
|
|
1393
|
-
},
|
|
1380
|
+
}, lr = {
|
|
1394
1381
|
"write-a-message": "Bir mesaj yazın...",
|
|
1395
1382
|
"session-closed-lead": "Sorununuz çözüldü!",
|
|
1396
1383
|
"new-conversation": "Yeni konuşma",
|
|
@@ -1406,43 +1393,43 @@ const rr = {
|
|
|
1406
1393
|
"no-conversations-yet": "Henüz konuşma yok",
|
|
1407
1394
|
"back-to-conversations": "Konuşmalara geri dön",
|
|
1408
1395
|
"closed-conversations": "Kapatılan konuşmalar"
|
|
1409
|
-
},
|
|
1410
|
-
en:
|
|
1411
|
-
ar:
|
|
1412
|
-
nl:
|
|
1413
|
-
fr:
|
|
1414
|
-
de:
|
|
1415
|
-
pt:
|
|
1416
|
-
es:
|
|
1417
|
-
tr:
|
|
1418
|
-
},
|
|
1419
|
-
function
|
|
1420
|
-
return
|
|
1421
|
-
}
|
|
1422
|
-
function
|
|
1423
|
-
const t =
|
|
1396
|
+
}, At = {
|
|
1397
|
+
en: rr,
|
|
1398
|
+
ar: tr,
|
|
1399
|
+
nl: sr,
|
|
1400
|
+
fr: nr,
|
|
1401
|
+
de: or,
|
|
1402
|
+
pt: ar,
|
|
1403
|
+
es: ir,
|
|
1404
|
+
tr: lr
|
|
1405
|
+
}, cr = Object.keys(At);
|
|
1406
|
+
function dr(e) {
|
|
1407
|
+
return cr.includes(e);
|
|
1408
|
+
}
|
|
1409
|
+
function pr(e, r) {
|
|
1410
|
+
const t = At[r];
|
|
1424
1411
|
return t && t[e] || "";
|
|
1425
1412
|
}
|
|
1426
|
-
function
|
|
1427
|
-
const { dir: e } =
|
|
1428
|
-
return
|
|
1429
|
-
const t =
|
|
1413
|
+
function V() {
|
|
1414
|
+
const { dir: e } = we(), r = x();
|
|
1415
|
+
return ct(() => {
|
|
1416
|
+
const t = dr(r.language) ? r.language : "en";
|
|
1430
1417
|
return {
|
|
1431
|
-
t: (n) =>
|
|
1418
|
+
t: (n) => pr(n, t),
|
|
1432
1419
|
language: t,
|
|
1433
1420
|
dir: t === "ar" ? "rtl" : "ltr",
|
|
1434
1421
|
hostDocumentDir: e
|
|
1435
1422
|
};
|
|
1436
1423
|
}, [r.language, e]);
|
|
1437
1424
|
}
|
|
1438
|
-
function
|
|
1425
|
+
function Ce({
|
|
1439
1426
|
suggestion: e,
|
|
1440
1427
|
className: r,
|
|
1441
1428
|
...t
|
|
1442
1429
|
}) {
|
|
1443
|
-
const { sendMessage: n } =
|
|
1444
|
-
const
|
|
1445
|
-
|
|
1430
|
+
const { sendMessage: n } = R(), s = () => {
|
|
1431
|
+
const i = e.trim();
|
|
1432
|
+
i && n({ content: i });
|
|
1446
1433
|
};
|
|
1447
1434
|
return /* @__PURE__ */ o(
|
|
1448
1435
|
y,
|
|
@@ -1456,8 +1443,8 @@ function Ne({
|
|
|
1456
1443
|
}
|
|
1457
1444
|
);
|
|
1458
1445
|
}
|
|
1459
|
-
function
|
|
1460
|
-
const { t: e } =
|
|
1446
|
+
function hr() {
|
|
1447
|
+
const { t: e } = V(), r = [
|
|
1461
1448
|
e("i-need-more-help"),
|
|
1462
1449
|
e("this-was-helpful")
|
|
1463
1450
|
];
|
|
@@ -1467,7 +1454,7 @@ function ur() {
|
|
|
1467
1454
|
...u("chat/might_solve_user_issue_suggested_replies_container"),
|
|
1468
1455
|
className: "flex items-center gap-2 p-2 pb-0 flex-wrap",
|
|
1469
1456
|
children: r.map((t) => /* @__PURE__ */ o(
|
|
1470
|
-
|
|
1457
|
+
Ce,
|
|
1471
1458
|
{
|
|
1472
1459
|
suggestion: t,
|
|
1473
1460
|
className: "flex-1"
|
|
@@ -1477,24 +1464,24 @@ function ur() {
|
|
|
1477
1464
|
}
|
|
1478
1465
|
);
|
|
1479
1466
|
}
|
|
1480
|
-
function
|
|
1467
|
+
function mr({
|
|
1481
1468
|
file: { status: e, file: r, error: t },
|
|
1482
1469
|
onCancel: n
|
|
1483
1470
|
}) {
|
|
1484
|
-
const [s,
|
|
1471
|
+
const [s, i] = I(
|
|
1485
1472
|
null
|
|
1486
1473
|
);
|
|
1487
|
-
|
|
1474
|
+
oe(() => {
|
|
1488
1475
|
if (!r.type.startsWith("image/")) return;
|
|
1489
1476
|
const l = new FileReader();
|
|
1490
|
-
return l.onload = () =>
|
|
1477
|
+
return l.onload = () => i(l.result), l.onerror = () => console.error("Error reading file"), l.readAsDataURL(r), () => l.abort();
|
|
1491
1478
|
}, [r]);
|
|
1492
|
-
const
|
|
1479
|
+
const a = () => {
|
|
1493
1480
|
switch (e) {
|
|
1494
1481
|
case "uploading":
|
|
1495
|
-
return /* @__PURE__ */ o(
|
|
1482
|
+
return /* @__PURE__ */ o(xo, { className: "size-4 animate-spin" });
|
|
1496
1483
|
case "error":
|
|
1497
|
-
return /* @__PURE__ */ o(
|
|
1484
|
+
return /* @__PURE__ */ o(bo, { className: "size-4 text-destructive" });
|
|
1498
1485
|
default:
|
|
1499
1486
|
return null;
|
|
1500
1487
|
}
|
|
@@ -1507,10 +1494,10 @@ function gr({
|
|
|
1507
1494
|
className: "object-cover bg-secondary size-full",
|
|
1508
1495
|
alt: r.name
|
|
1509
1496
|
}
|
|
1510
|
-
) : l === "audio" ? /* @__PURE__ */ o(
|
|
1497
|
+
) : l === "audio" ? /* @__PURE__ */ o(yo, {}) : l === "video" ? /* @__PURE__ */ o(ko, {}) : /* @__PURE__ */ o(Co, {});
|
|
1511
1498
|
};
|
|
1512
1499
|
return /* @__PURE__ */ o(
|
|
1513
|
-
|
|
1500
|
+
J,
|
|
1514
1501
|
{
|
|
1515
1502
|
side: "bottom",
|
|
1516
1503
|
content: e === "error" ? /* @__PURE__ */ d("span", { className: "text-destructive", children: [
|
|
@@ -1527,7 +1514,7 @@ function gr({
|
|
|
1527
1514
|
"flex items-center justify-center shrink-0"
|
|
1528
1515
|
),
|
|
1529
1516
|
children: [
|
|
1530
|
-
/* @__PURE__ */ o("div", { className: "absolute inset-0 flex items-center justify-center", children:
|
|
1517
|
+
/* @__PURE__ */ o("div", { className: "absolute inset-0 flex items-center justify-center", children: a() }),
|
|
1531
1518
|
/* @__PURE__ */ o(
|
|
1532
1519
|
"button",
|
|
1533
1520
|
{
|
|
@@ -1538,7 +1525,7 @@ function gr({
|
|
|
1538
1525
|
"opacity-0 group-hover:opacity-100 transition"
|
|
1539
1526
|
),
|
|
1540
1527
|
onClick: n,
|
|
1541
|
-
children: /* @__PURE__ */ o(
|
|
1528
|
+
children: /* @__PURE__ */ o(fe, { className: "size-4 text-primary-foreground" })
|
|
1542
1529
|
}
|
|
1543
1530
|
),
|
|
1544
1531
|
/* @__PURE__ */ o(c, {})
|
|
@@ -1548,21 +1535,21 @@ function gr({
|
|
|
1548
1535
|
}
|
|
1549
1536
|
);
|
|
1550
1537
|
}
|
|
1551
|
-
function
|
|
1538
|
+
function ur() {
|
|
1552
1539
|
var j;
|
|
1553
|
-
const { isSmallScreen: e } =
|
|
1540
|
+
const { isSmallScreen: e } = O(), r = le(null), { sendMessage: t } = R(), { sessionState: n } = q(), { t: s } = V(), [i, a] = I(""), {
|
|
1554
1541
|
allFiles: c,
|
|
1555
1542
|
emptyTheFiles: l,
|
|
1556
1543
|
handleCancelUpload: h,
|
|
1557
1544
|
appendFiles: b,
|
|
1558
1545
|
isUploading: w,
|
|
1559
1546
|
successFiles: m
|
|
1560
|
-
} =
|
|
1547
|
+
} = $t(), k = !!((j = n.session) != null && j.isHandedOff), { isAwaitingBotReply: f } = ht(), N = (v) => {
|
|
1561
1548
|
b(v);
|
|
1562
|
-
}, T = !
|
|
1549
|
+
}, T = !i.trim() && m.length === 0, _ = async () => {
|
|
1563
1550
|
if (f || T) return;
|
|
1564
1551
|
w && console.info("please wait for the file(s) to upload");
|
|
1565
|
-
const v =
|
|
1552
|
+
const v = i.trim();
|
|
1566
1553
|
t({
|
|
1567
1554
|
content: v,
|
|
1568
1555
|
attachments: m.flatMap(
|
|
@@ -1576,13 +1563,13 @@ function wr() {
|
|
|
1576
1563
|
}
|
|
1577
1564
|
] : []
|
|
1578
1565
|
)
|
|
1579
|
-
}),
|
|
1566
|
+
}), a(""), l();
|
|
1580
1567
|
}, {
|
|
1581
1568
|
getRootProps: M,
|
|
1582
|
-
getInputProps:
|
|
1569
|
+
getInputProps: A,
|
|
1583
1570
|
open: P
|
|
1584
|
-
} =
|
|
1585
|
-
onDrop:
|
|
1571
|
+
} = To({
|
|
1572
|
+
onDrop: N,
|
|
1586
1573
|
noClick: !0,
|
|
1587
1574
|
onDropRejected() {
|
|
1588
1575
|
console.error("unsupported file type, or the file is too large");
|
|
@@ -1598,9 +1585,9 @@ function wr() {
|
|
|
1598
1585
|
"image/gif": [".gif"],
|
|
1599
1586
|
"image/webp": [".webp"]
|
|
1600
1587
|
}
|
|
1601
|
-
}),
|
|
1588
|
+
}), W = (v) => {
|
|
1602
1589
|
const C = v.clipboardData;
|
|
1603
|
-
C && C.files.length > 0 &&
|
|
1590
|
+
C && C.files.length > 0 && N(Array.from(C.files));
|
|
1604
1591
|
};
|
|
1605
1592
|
return /* @__PURE__ */ d(
|
|
1606
1593
|
"div",
|
|
@@ -1609,7 +1596,7 @@ function wr() {
|
|
|
1609
1596
|
className: "p-2 relative space-y-1",
|
|
1610
1597
|
...M(),
|
|
1611
1598
|
children: [
|
|
1612
|
-
/* @__PURE__ */ o("input", { ...
|
|
1599
|
+
/* @__PURE__ */ o("input", { ...A() }),
|
|
1613
1600
|
/* @__PURE__ */ d(
|
|
1614
1601
|
"div",
|
|
1615
1602
|
{
|
|
@@ -1633,8 +1620,8 @@ function wr() {
|
|
|
1633
1620
|
{
|
|
1634
1621
|
...u("chat/input_box/attachments_container"),
|
|
1635
1622
|
className: "flex items-center gap-1",
|
|
1636
|
-
children: /* @__PURE__ */ o(
|
|
1637
|
-
|
|
1623
|
+
children: /* @__PURE__ */ o(S, { mode: "popLayout", children: c.map((v) => /* @__PURE__ */ o(g, { snapExit: !0, children: /* @__PURE__ */ o(
|
|
1624
|
+
mr,
|
|
1638
1625
|
{
|
|
1639
1626
|
onCancel: () => h(v.id),
|
|
1640
1627
|
file: v
|
|
@@ -1646,10 +1633,10 @@ function wr() {
|
|
|
1646
1633
|
"textarea",
|
|
1647
1634
|
{
|
|
1648
1635
|
...u("chat/input_box/textarea"),
|
|
1649
|
-
onPaste:
|
|
1636
|
+
onPaste: W,
|
|
1650
1637
|
ref: r,
|
|
1651
1638
|
id: "chat-input",
|
|
1652
|
-
value:
|
|
1639
|
+
value: i,
|
|
1653
1640
|
rows: 3,
|
|
1654
1641
|
className: p(
|
|
1655
1642
|
/** Match the border radius of the container */
|
|
@@ -1662,9 +1649,9 @@ function wr() {
|
|
|
1662
1649
|
// 16px on mobiles prevents auto-zoom on the input when focused
|
|
1663
1650
|
e ? "text-[16px]" : "text-sm"
|
|
1664
1651
|
),
|
|
1665
|
-
onChange: (v) =>
|
|
1652
|
+
onChange: (v) => a(v.target.value),
|
|
1666
1653
|
onKeyDown: async (v) => {
|
|
1667
|
-
v.key === "Enter" && !v.shiftKey && (v.preventDefault(),
|
|
1654
|
+
v.key === "Enter" && !v.shiftKey && (v.preventDefault(), _());
|
|
1668
1655
|
},
|
|
1669
1656
|
placeholder: s("write-a-message")
|
|
1670
1657
|
}
|
|
@@ -1674,7 +1661,7 @@ function wr() {
|
|
|
1674
1661
|
),
|
|
1675
1662
|
/* @__PURE__ */ d("div", { className: "gap-2 flex justify-between", children: [
|
|
1676
1663
|
/* @__PURE__ */ o(
|
|
1677
|
-
|
|
1664
|
+
J,
|
|
1678
1665
|
{
|
|
1679
1666
|
side: "top",
|
|
1680
1667
|
align: "start",
|
|
@@ -1688,19 +1675,19 @@ function wr() {
|
|
|
1688
1675
|
className: p(
|
|
1689
1676
|
"rounded-full size-8 flex items-center justify-center p-0 overflow-hidden"
|
|
1690
1677
|
),
|
|
1691
|
-
children: /* @__PURE__ */ o(
|
|
1678
|
+
children: /* @__PURE__ */ o(S, { mode: "wait", children: k ? /* @__PURE__ */ o(g, { children: /* @__PURE__ */ o(wo, { className: "size-4" }) }, "paper-clip") : /* @__PURE__ */ o(g, { children: /* @__PURE__ */ o(fo, { className: "size-4" }) }, "image-icon") })
|
|
1692
1679
|
}
|
|
1693
1680
|
)
|
|
1694
1681
|
}
|
|
1695
1682
|
),
|
|
1696
|
-
/* @__PURE__ */ o(
|
|
1683
|
+
/* @__PURE__ */ o(J, { content: "send message", side: "top", align: "end", children: /* @__PURE__ */ o(
|
|
1697
1684
|
y,
|
|
1698
1685
|
{
|
|
1699
1686
|
size: "fit",
|
|
1700
|
-
onClick:
|
|
1687
|
+
onClick: _,
|
|
1701
1688
|
disabled: f || w || T,
|
|
1702
1689
|
className: "rounded-full size-8 flex items-center justify-center p-0",
|
|
1703
|
-
children: /* @__PURE__ */ o(
|
|
1690
|
+
children: /* @__PURE__ */ o(S, { mode: "wait", children: f || w ? /* @__PURE__ */ o(g, { snapExit: !0, children: /* @__PURE__ */ o(vo, { className: "size-4 animate-spin animate-iteration-infinite" }) }, "loading") : /* @__PURE__ */ o(g, { snapExit: !0, children: /* @__PURE__ */ o(ut, { className: "size-4" }) }, "send") })
|
|
1704
1691
|
}
|
|
1705
1692
|
) })
|
|
1706
1693
|
] })
|
|
@@ -1711,51 +1698,51 @@ function wr() {
|
|
|
1711
1698
|
}
|
|
1712
1699
|
);
|
|
1713
1700
|
}
|
|
1714
|
-
function
|
|
1715
|
-
const { widgetCtx: e } =
|
|
1716
|
-
return /* @__PURE__ */ o(
|
|
1701
|
+
function st() {
|
|
1702
|
+
const { widgetCtx: e } = E(), { router: r } = x(), { canCreateNewSession: t } = q(), { toSessionsScreen: n } = B(), { t: s } = V();
|
|
1703
|
+
return /* @__PURE__ */ o(te, { children: t || r != null && r.chatScreenOnly ? /* @__PURE__ */ o(y, { onClick: e.resetChat, className: "rounded-2xl w-full", children: s("new-conversation") }) : /* @__PURE__ */ o(y, { onClick: n, className: "rounded-2xl w-full", children: s("back-to-conversations") }) });
|
|
1717
1704
|
}
|
|
1718
|
-
function
|
|
1719
|
-
const { t: e } =
|
|
1720
|
-
return /* @__PURE__ */ o("div", { className: "p-2", children: /* @__PURE__ */ o("div", { className: "p-2 bg-muted rounded-3xl", children: /* @__PURE__ */ o(
|
|
1721
|
-
/* @__PURE__ */ o(
|
|
1722
|
-
/* @__PURE__ */ o(
|
|
1723
|
-
] }, "csat") : /* @__PURE__ */ d(
|
|
1705
|
+
function gr() {
|
|
1706
|
+
const { t: e } = V(), { isCsatRequested: r, isCsatSubmitted: t } = pt();
|
|
1707
|
+
return /* @__PURE__ */ o("div", { className: "p-2", children: /* @__PURE__ */ o("div", { className: "p-2 bg-muted rounded-3xl", children: /* @__PURE__ */ o(S, { mode: "wait", children: r || t ? /* @__PURE__ */ d(F, { children: [
|
|
1708
|
+
/* @__PURE__ */ o(er, {}),
|
|
1709
|
+
/* @__PURE__ */ o(S, { mode: "wait", children: t && /* @__PURE__ */ o(F, { children: /* @__PURE__ */ o(st, {}) }, "new-conv-or-back-to-convs-button") })
|
|
1710
|
+
] }, "csat") : /* @__PURE__ */ d(F, { children: [
|
|
1724
1711
|
/* @__PURE__ */ d("div", { className: "ps-2 flex items-center gap-1 pb-2", children: [
|
|
1725
|
-
/* @__PURE__ */ o(
|
|
1712
|
+
/* @__PURE__ */ o(mt, { className: "size-4 text-emerald-600" }),
|
|
1726
1713
|
/* @__PURE__ */ o("h2", { className: "text-sm font-medium", children: e("session-closed-lead") })
|
|
1727
1714
|
] }),
|
|
1728
|
-
/* @__PURE__ */ o(
|
|
1715
|
+
/* @__PURE__ */ o(st, {})
|
|
1729
1716
|
] }, "session-closed") }) }) });
|
|
1730
1717
|
}
|
|
1731
|
-
function
|
|
1732
|
-
var
|
|
1733
|
-
const { initialQuestions: e, initialQuestionsPosition: r, thisWasHelpfulOrNot: t } = x(), { sessionState: n } =
|
|
1734
|
-
return /* @__PURE__ */ o("footer", { children: /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(
|
|
1735
|
-
s.lastAIResMightSolveUserIssue && (t == null ? void 0 : t.enabled) !== !1 && /* @__PURE__ */ o(
|
|
1736
|
-
|
|
1737
|
-
|
|
1718
|
+
function wr() {
|
|
1719
|
+
var a;
|
|
1720
|
+
const { initialQuestions: e, initialQuestionsPosition: r, thisWasHelpfulOrNot: t } = x(), { sessionState: n } = q(), { messagesState: s } = R(), i = s.messages.length === 0;
|
|
1721
|
+
return /* @__PURE__ */ o("footer", { children: /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(S, { mode: "wait", children: n.session && !((a = n.session) != null && a.isOpened) ? /* @__PURE__ */ o(F, { children: /* @__PURE__ */ o(gr, {}) }, "session-closed") : /* @__PURE__ */ d(F, { children: [
|
|
1722
|
+
s.lastAIResMightSolveUserIssue && (t == null ? void 0 : t.enabled) !== !1 && /* @__PURE__ */ o(hr, {}),
|
|
1723
|
+
i && e && r !== "below-initial-messages" && /* @__PURE__ */ o("div", { className: "flex items-center flex-row justify-end gap-2 flex-wrap px-2", children: e == null ? void 0 : e.map((c, l) => /* @__PURE__ */ o(
|
|
1724
|
+
Ce,
|
|
1738
1725
|
{
|
|
1739
1726
|
suggestion: c
|
|
1740
1727
|
},
|
|
1741
1728
|
`${c}-${l}`
|
|
1742
1729
|
)) }),
|
|
1743
|
-
/* @__PURE__ */ o(
|
|
1730
|
+
/* @__PURE__ */ o(ur, {})
|
|
1744
1731
|
] }, "chat-input") }) }) });
|
|
1745
1732
|
}
|
|
1746
|
-
function
|
|
1733
|
+
function fr({
|
|
1747
1734
|
isFirstInGroup: e,
|
|
1748
1735
|
isLastInGroup: r,
|
|
1749
1736
|
isAloneInGroup: t,
|
|
1750
1737
|
...n
|
|
1751
1738
|
}) {
|
|
1752
|
-
const { componentStore: s } =
|
|
1739
|
+
const { componentStore: s } = E();
|
|
1753
1740
|
if (n.type !== "AGENT" && n.type !== "AI") return null;
|
|
1754
1741
|
if (n.data.action) {
|
|
1755
|
-
const
|
|
1756
|
-
if (
|
|
1742
|
+
const a = s.getComponent(n.data.action.name);
|
|
1743
|
+
if (a)
|
|
1757
1744
|
return /* @__PURE__ */ o(
|
|
1758
|
-
|
|
1745
|
+
a,
|
|
1759
1746
|
{
|
|
1760
1747
|
...n,
|
|
1761
1748
|
id: n.id,
|
|
@@ -1765,9 +1752,9 @@ function br({
|
|
|
1765
1752
|
}
|
|
1766
1753
|
);
|
|
1767
1754
|
}
|
|
1768
|
-
const
|
|
1769
|
-
return
|
|
1770
|
-
|
|
1755
|
+
const i = s.getComponent(n.component);
|
|
1756
|
+
return i ? /* @__PURE__ */ o(
|
|
1757
|
+
i,
|
|
1771
1758
|
{
|
|
1772
1759
|
...n,
|
|
1773
1760
|
id: n.id,
|
|
@@ -1776,7 +1763,7 @@ function br({
|
|
|
1776
1763
|
isAloneInGroup: t
|
|
1777
1764
|
}
|
|
1778
1765
|
) : /* @__PURE__ */ o(
|
|
1779
|
-
|
|
1766
|
+
he,
|
|
1780
1767
|
{
|
|
1781
1768
|
...n,
|
|
1782
1769
|
isFirstInGroup: e,
|
|
@@ -1785,18 +1772,18 @@ function br({
|
|
|
1785
1772
|
}
|
|
1786
1773
|
);
|
|
1787
1774
|
}
|
|
1788
|
-
function
|
|
1775
|
+
function Pt({
|
|
1789
1776
|
messages: e,
|
|
1790
1777
|
className: r,
|
|
1791
1778
|
containerClassName: t
|
|
1792
1779
|
}) {
|
|
1793
|
-
var
|
|
1780
|
+
var a, c;
|
|
1794
1781
|
const { timestamps: n } = x();
|
|
1795
|
-
if (!((
|
|
1782
|
+
if (!((a = n == null ? void 0 : n.perMessageGroup) != null && a.enabled))
|
|
1796
1783
|
return null;
|
|
1797
1784
|
const s = (c = e[e.length - 1]) == null ? void 0 : c.timestamp;
|
|
1798
1785
|
if (!s) return null;
|
|
1799
|
-
const
|
|
1786
|
+
const i = (() => {
|
|
1800
1787
|
try {
|
|
1801
1788
|
return new Date(s).toLocaleTimeString([], {
|
|
1802
1789
|
hour: "2-digit",
|
|
@@ -1807,9 +1794,9 @@ function Ht({
|
|
|
1807
1794
|
return console.error(l), null;
|
|
1808
1795
|
}
|
|
1809
1796
|
})();
|
|
1810
|
-
return
|
|
1797
|
+
return i ? /* @__PURE__ */ o("div", { className: t, children: /* @__PURE__ */ o("span", { className: p("text-xs text-muted-foreground", r), children: i }) }) : null;
|
|
1811
1798
|
}
|
|
1812
|
-
function
|
|
1799
|
+
function ze({
|
|
1813
1800
|
messages: e,
|
|
1814
1801
|
agent: r,
|
|
1815
1802
|
suggestedReplies: t
|
|
@@ -1820,8 +1807,8 @@ function Se({
|
|
|
1820
1807
|
...u("chat/agent_msg_group/root"),
|
|
1821
1808
|
className: p("flex items-end gap-2"),
|
|
1822
1809
|
children: [
|
|
1823
|
-
/* @__PURE__ */ o(
|
|
1824
|
-
|
|
1810
|
+
/* @__PURE__ */ o(J, { content: r == null ? void 0 : r.name, side: "right", align: "end", children: /* @__PURE__ */ o(
|
|
1811
|
+
me,
|
|
1825
1812
|
{
|
|
1826
1813
|
...u("chat/agent_msg_group/root/avatar"),
|
|
1827
1814
|
agent: r,
|
|
@@ -1835,8 +1822,8 @@ function Se({
|
|
|
1835
1822
|
...u("chat/agent_msg_group/avatar_and_msgs/root"),
|
|
1836
1823
|
className: p("flex items-end gap-2"),
|
|
1837
1824
|
children: [
|
|
1838
|
-
/* @__PURE__ */ o(
|
|
1839
|
-
|
|
1825
|
+
/* @__PURE__ */ o(J, { content: r == null ? void 0 : r.name, side: "right", align: "end", children: /* @__PURE__ */ o(
|
|
1826
|
+
me,
|
|
1840
1827
|
{
|
|
1841
1828
|
...u("chat/agent_msg_group/avatar_and_msgs/avatar"),
|
|
1842
1829
|
agent: r
|
|
@@ -1848,17 +1835,17 @@ function Se({
|
|
|
1848
1835
|
...u("chat/agent_msg_group/avatar_and_msgs/msgs"),
|
|
1849
1836
|
className: p("flex-1 flex flex-col gap-1"),
|
|
1850
1837
|
children: [
|
|
1851
|
-
e.map((n, s,
|
|
1852
|
-
|
|
1838
|
+
e.map((n, s, i) => /* @__PURE__ */ o(
|
|
1839
|
+
fr,
|
|
1853
1840
|
{
|
|
1854
1841
|
isFirstInGroup: s === 0,
|
|
1855
|
-
isLastInGroup: s ===
|
|
1856
|
-
isAloneInGroup:
|
|
1842
|
+
isLastInGroup: s === i.length - 1,
|
|
1843
|
+
isAloneInGroup: i.length === 1,
|
|
1857
1844
|
...n
|
|
1858
1845
|
},
|
|
1859
1846
|
n.id
|
|
1860
1847
|
)),
|
|
1861
|
-
/* @__PURE__ */ o(
|
|
1848
|
+
/* @__PURE__ */ o(Pt, { messages: e })
|
|
1862
1849
|
]
|
|
1863
1850
|
}
|
|
1864
1851
|
)
|
|
@@ -1871,7 +1858,7 @@ function Se({
|
|
|
1871
1858
|
...u("chat/agent_msg_group/suggestions"),
|
|
1872
1859
|
className: p("flex flex-col gap-1 ps-8"),
|
|
1873
1860
|
children: t == null ? void 0 : t.map((n, s) => /* @__PURE__ */ o(
|
|
1874
|
-
|
|
1861
|
+
Ce,
|
|
1875
1862
|
{
|
|
1876
1863
|
suggestion: n
|
|
1877
1864
|
},
|
|
@@ -1884,7 +1871,7 @@ function Se({
|
|
|
1884
1871
|
}
|
|
1885
1872
|
);
|
|
1886
1873
|
}
|
|
1887
|
-
function
|
|
1874
|
+
function vr({
|
|
1888
1875
|
message: e,
|
|
1889
1876
|
isFirstInGroup: r,
|
|
1890
1877
|
isLastInGroup: t,
|
|
@@ -1897,7 +1884,7 @@ function xr({
|
|
|
1897
1884
|
...u("chat/user_msg/root"),
|
|
1898
1885
|
className: "w-5/6 flex flex-col items-end gap-1",
|
|
1899
1886
|
children: [
|
|
1900
|
-
e.attachments && e.attachments.length > 0 && /* @__PURE__ */ o("div", { className: "w-full flex gap-1 flex-wrap justify-end", children: (s = e.attachments) == null ? void 0 : s.map((
|
|
1887
|
+
e.attachments && e.attachments.length > 0 && /* @__PURE__ */ o("div", { className: "w-full flex gap-1 flex-wrap justify-end", children: (s = e.attachments) == null ? void 0 : s.map((i) => /* @__PURE__ */ o(St, { attachment: i }, i.id)) }),
|
|
1901
1888
|
e.content.length > 0 && /* @__PURE__ */ o(
|
|
1902
1889
|
"div",
|
|
1903
1890
|
{
|
|
@@ -1924,7 +1911,7 @@ function xr({
|
|
|
1924
1911
|
}
|
|
1925
1912
|
);
|
|
1926
1913
|
}
|
|
1927
|
-
function
|
|
1914
|
+
function br({
|
|
1928
1915
|
messages: e
|
|
1929
1916
|
}) {
|
|
1930
1917
|
return /* @__PURE__ */ d(
|
|
@@ -1934,7 +1921,7 @@ function yr({
|
|
|
1934
1921
|
className: p("group", "flex flex-col gap-1 justify-end items-end"),
|
|
1935
1922
|
children: [
|
|
1936
1923
|
e.map((r, t, n) => /* @__PURE__ */ o(
|
|
1937
|
-
|
|
1924
|
+
vr,
|
|
1938
1925
|
{
|
|
1939
1926
|
message: r,
|
|
1940
1927
|
isFirstInGroup: t === 0,
|
|
@@ -1943,48 +1930,48 @@ function yr({
|
|
|
1943
1930
|
},
|
|
1944
1931
|
r.id
|
|
1945
1932
|
)),
|
|
1946
|
-
/* @__PURE__ */ o(
|
|
1933
|
+
/* @__PURE__ */ o(Pt, { messages: e, containerClassName: "ms-auto" })
|
|
1947
1934
|
]
|
|
1948
1935
|
}
|
|
1949
1936
|
);
|
|
1950
1937
|
}
|
|
1951
|
-
function
|
|
1938
|
+
function xr(e) {
|
|
1952
1939
|
const r = [];
|
|
1953
1940
|
let t = null;
|
|
1954
1941
|
return e.forEach((n) => {
|
|
1955
|
-
var s,
|
|
1956
|
-
(!t || ((s = t[0]) == null ? void 0 : s.type) !== n.type) && (t = [], r.push(t)), ((
|
|
1942
|
+
var s, i, a, c, l, h;
|
|
1943
|
+
(!t || ((s = t[0]) == null ? void 0 : s.type) !== n.type) && (t = [], r.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 = [], r.push(t)), t.push(n);
|
|
1957
1944
|
}), r;
|
|
1958
1945
|
}
|
|
1959
|
-
function
|
|
1946
|
+
function yr(e) {
|
|
1960
1947
|
var r;
|
|
1961
1948
|
return ((r = e == null ? void 0 : e[0]) == null ? void 0 : r.type) === "USER";
|
|
1962
1949
|
}
|
|
1963
|
-
function
|
|
1950
|
+
function kr(e) {
|
|
1964
1951
|
var r;
|
|
1965
1952
|
return ((r = e == null ? void 0 : e[0]) == null ? void 0 : r.type) === "AI";
|
|
1966
1953
|
}
|
|
1967
|
-
function
|
|
1954
|
+
function Cr(e) {
|
|
1968
1955
|
var r;
|
|
1969
1956
|
return ((r = e == null ? void 0 : e[0]) == null ? void 0 : r.type) === "AGENT";
|
|
1970
1957
|
}
|
|
1971
|
-
function
|
|
1958
|
+
function zr() {
|
|
1972
1959
|
const {
|
|
1973
1960
|
messagesState: { messages: e }
|
|
1974
|
-
} =
|
|
1961
|
+
} = R(), {
|
|
1975
1962
|
advancedInitialMessages: r = [],
|
|
1976
1963
|
initialQuestionsPosition: t,
|
|
1977
1964
|
initialQuestions: n,
|
|
1978
1965
|
bot: s
|
|
1979
1966
|
} = x();
|
|
1980
|
-
return /* @__PURE__ */ o(
|
|
1981
|
-
|
|
1967
|
+
return /* @__PURE__ */ o(te, { children: e.length === 0 && r.length > 0 && /* @__PURE__ */ o(
|
|
1968
|
+
ze,
|
|
1982
1969
|
{
|
|
1983
1970
|
messages: r.map(
|
|
1984
|
-
({ message:
|
|
1971
|
+
({ message: i }, a) => ({
|
|
1985
1972
|
component: "bot_message",
|
|
1986
|
-
data: { message:
|
|
1987
|
-
id: `${
|
|
1973
|
+
data: { message: i },
|
|
1974
|
+
id: `${a}-${i}`,
|
|
1988
1975
|
type: "AI",
|
|
1989
1976
|
timestamp: null
|
|
1990
1977
|
})
|
|
@@ -1994,33 +1981,33 @@ function Sr() {
|
|
|
1994
1981
|
}
|
|
1995
1982
|
) });
|
|
1996
1983
|
}
|
|
1997
|
-
function
|
|
1984
|
+
function Nr() {
|
|
1998
1985
|
const {
|
|
1999
1986
|
messagesState: { messages: e }
|
|
2000
|
-
} =
|
|
1987
|
+
} = R(), { chatBannerItems: r } = x();
|
|
2001
1988
|
return !(r != null && r.length) || e.length > 0 && r.every((t) => !t.persistent) ? null : /* @__PURE__ */ o("div", { className: "w-full text-center text-xs", children: r.map(
|
|
2002
|
-
({ message: t, persistent: n }, s) => e.length > 0 && !n ? null : /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(
|
|
1989
|
+
({ message: t, persistent: n }, s) => e.length > 0 && !n ? null : /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(It, { children: t }) }, `${t}-${s}`)
|
|
2003
1990
|
) });
|
|
2004
1991
|
}
|
|
2005
|
-
function
|
|
1992
|
+
function Sr() {
|
|
2006
1993
|
const {
|
|
2007
1994
|
messagesState: { messages: e }
|
|
2008
|
-
} =
|
|
1995
|
+
} = R(), r = x(), {
|
|
2009
1996
|
advancedInitialMessages: t = [],
|
|
2010
1997
|
initialQuestions: n,
|
|
2011
1998
|
initialQuestionsPosition: s
|
|
2012
|
-
} = r,
|
|
2013
|
-
var
|
|
2014
|
-
return t.length ? [] : e.length ? [] : (
|
|
1999
|
+
} = r, i = (() => {
|
|
2000
|
+
var a;
|
|
2001
|
+
return t.length ? [] : e.length ? [] : (a = r.initialMessages) != null && a.length ? r.initialMessages : ["Hello, how can I help you?"];
|
|
2015
2002
|
})();
|
|
2016
|
-
return /* @__PURE__ */ o(
|
|
2017
|
-
|
|
2003
|
+
return /* @__PURE__ */ o(te, { children: e.length === 0 && i.length > 0 && /* @__PURE__ */ o(
|
|
2004
|
+
ze,
|
|
2018
2005
|
{
|
|
2019
|
-
messages:
|
|
2020
|
-
(
|
|
2006
|
+
messages: i.map(
|
|
2007
|
+
(a, c) => ({
|
|
2021
2008
|
component: "bot_message",
|
|
2022
|
-
data: { message:
|
|
2023
|
-
id: `${c}-${
|
|
2009
|
+
data: { message: a },
|
|
2010
|
+
id: `${c}-${a}`,
|
|
2024
2011
|
type: "AI",
|
|
2025
2012
|
timestamp: null
|
|
2026
2013
|
})
|
|
@@ -2030,43 +2017,43 @@ function Ir() {
|
|
|
2030
2017
|
}
|
|
2031
2018
|
) });
|
|
2032
2019
|
}
|
|
2033
|
-
function
|
|
2020
|
+
function _r() {
|
|
2034
2021
|
const {
|
|
2035
2022
|
messagesState: { messages: e }
|
|
2036
|
-
} =
|
|
2037
|
-
() =>
|
|
2023
|
+
} = R(), { isAwaitingBotReply: r } = ht(), { componentStore: t } = E(), n = x(), s = ct(
|
|
2024
|
+
() => xr(e),
|
|
2038
2025
|
[e]
|
|
2039
|
-
),
|
|
2026
|
+
), i = t.getComponent(
|
|
2040
2027
|
"loading"
|
|
2041
|
-
),
|
|
2028
|
+
), a = le(null);
|
|
2042
2029
|
function c() {
|
|
2043
2030
|
setTimeout(() => {
|
|
2044
|
-
const l =
|
|
2031
|
+
const l = a.current;
|
|
2045
2032
|
l && (l.scrollTop = l.scrollHeight);
|
|
2046
2033
|
}, 0);
|
|
2047
2034
|
}
|
|
2048
|
-
return
|
|
2035
|
+
return oe(() => {
|
|
2049
2036
|
c();
|
|
2050
2037
|
}, [e]), /* @__PURE__ */ d(
|
|
2051
2038
|
"div",
|
|
2052
2039
|
{
|
|
2053
2040
|
...u("chat/msgs/root"),
|
|
2054
|
-
ref:
|
|
2041
|
+
ref: a,
|
|
2055
2042
|
className: "max-h-full scroll-smooth relative flex-1 py-2 px-4 flex flex-col gap-2 overflow-auto",
|
|
2056
2043
|
children: [
|
|
2057
|
-
/* @__PURE__ */ o(
|
|
2044
|
+
/* @__PURE__ */ o(Nr, {}),
|
|
2045
|
+
/* @__PURE__ */ o(zr, {}),
|
|
2058
2046
|
/* @__PURE__ */ o(Sr, {}),
|
|
2059
|
-
/* @__PURE__ */ o(Ir, {}),
|
|
2060
2047
|
s.map((l) => {
|
|
2061
2048
|
var w, m, k;
|
|
2062
2049
|
const h = (w = l == null ? void 0 : l[0]) == null ? void 0 : w.type, b = (m = l[0]) == null ? void 0 : m.id;
|
|
2063
2050
|
if (!h || !b) return null;
|
|
2064
|
-
if (
|
|
2065
|
-
return /* @__PURE__ */ o(
|
|
2066
|
-
if (
|
|
2051
|
+
if (yr(l))
|
|
2052
|
+
return /* @__PURE__ */ o(br, { messages: l }, b);
|
|
2053
|
+
if (kr(l) || Cr(l)) {
|
|
2067
2054
|
const f = (k = l[0]) == null ? void 0 : k.agent;
|
|
2068
2055
|
return /* @__PURE__ */ o(
|
|
2069
|
-
|
|
2056
|
+
ze,
|
|
2070
2057
|
{
|
|
2071
2058
|
messages: l,
|
|
2072
2059
|
agent: f
|
|
@@ -2076,31 +2063,31 @@ function Tr() {
|
|
|
2076
2063
|
}
|
|
2077
2064
|
return null;
|
|
2078
2065
|
}),
|
|
2079
|
-
r &&
|
|
2080
|
-
/* @__PURE__ */ o(
|
|
2066
|
+
r && i && /* @__PURE__ */ o(i, { agent: n.bot }),
|
|
2067
|
+
/* @__PURE__ */ o(Ir, {})
|
|
2081
2068
|
]
|
|
2082
2069
|
}
|
|
2083
2070
|
);
|
|
2084
2071
|
}
|
|
2085
|
-
function
|
|
2072
|
+
function Ir() {
|
|
2086
2073
|
const {
|
|
2087
2074
|
sessionState: { session: e }
|
|
2088
|
-
} =
|
|
2075
|
+
} = q(), { specialComponents: r } = x();
|
|
2089
2076
|
if (e != null && e.isOpened || !e) return null;
|
|
2090
2077
|
const t = r == null ? void 0 : r.onSessionResolved;
|
|
2091
2078
|
return t ? /* @__PURE__ */ o(t, { react: $ }) : null;
|
|
2092
2079
|
}
|
|
2093
|
-
function
|
|
2080
|
+
function Tr() {
|
|
2094
2081
|
const {
|
|
2095
2082
|
messagesState: { isInitialFetchLoading: e }
|
|
2096
|
-
} =
|
|
2083
|
+
} = R(), {
|
|
2097
2084
|
sessionState: { session: r }
|
|
2098
|
-
} =
|
|
2099
|
-
|
|
2085
|
+
} = q(), { isCanvasOpen: t } = Zo(), { theme: n } = U();
|
|
2086
|
+
ye({
|
|
2100
2087
|
width: t ? n.screens.chat.withCanvas.width : n.screens.chat.width,
|
|
2101
2088
|
height: t ? n.screens.chat.withCanvas.height : n.screens.chat.height
|
|
2102
2089
|
});
|
|
2103
|
-
const s =
|
|
2090
|
+
const s = le((r == null ? void 0 : r.id) || "chat").current;
|
|
2104
2091
|
return /* @__PURE__ */ o(
|
|
2105
2092
|
"div",
|
|
2106
2093
|
{
|
|
@@ -2117,12 +2104,12 @@ function Dr() {
|
|
|
2117
2104
|
// Relative to the iframe
|
|
2118
2105
|
},
|
|
2119
2106
|
children: /* @__PURE__ */ d("div", { className: "size-full justify-between flex flex-col", children: [
|
|
2120
|
-
/* @__PURE__ */ o(
|
|
2121
|
-
/* @__PURE__ */ o(
|
|
2107
|
+
/* @__PURE__ */ o(Rt, {}),
|
|
2108
|
+
/* @__PURE__ */ o(S, { mode: "wait", children: e ? /* @__PURE__ */ o(
|
|
2122
2109
|
g,
|
|
2123
2110
|
{
|
|
2124
2111
|
className: "flex flex-col items-center justify-center w-full flex-1",
|
|
2125
|
-
children: /* @__PURE__ */ o(
|
|
2112
|
+
children: /* @__PURE__ */ o(Ot, {})
|
|
2126
2113
|
},
|
|
2127
2114
|
"loading"
|
|
2128
2115
|
) : /* @__PURE__ */ d(
|
|
@@ -2144,8 +2131,8 @@ function Dr() {
|
|
|
2144
2131
|
transitionDuration: n.screens.chat.withCanvas.transitionDuration
|
|
2145
2132
|
},
|
|
2146
2133
|
children: [
|
|
2147
|
-
/* @__PURE__ */ o(
|
|
2148
|
-
/* @__PURE__ */ o(
|
|
2134
|
+
/* @__PURE__ */ o(_r, {}),
|
|
2135
|
+
/* @__PURE__ */ o(wr, {})
|
|
2149
2136
|
]
|
|
2150
2137
|
}
|
|
2151
2138
|
),
|
|
@@ -2161,7 +2148,7 @@ function Dr() {
|
|
|
2161
2148
|
transitionTimingFunction: n.screens.chat.withCanvas.transitionTimingFunction,
|
|
2162
2149
|
transitionDuration: n.screens.chat.withCanvas.transitionDuration
|
|
2163
2150
|
},
|
|
2164
|
-
children: /* @__PURE__ */ o(
|
|
2151
|
+
children: /* @__PURE__ */ o(Qo, {})
|
|
2165
2152
|
}
|
|
2166
2153
|
)
|
|
2167
2154
|
]
|
|
@@ -2172,7 +2159,19 @@ function Dr() {
|
|
|
2172
2159
|
}
|
|
2173
2160
|
);
|
|
2174
2161
|
}
|
|
2175
|
-
function
|
|
2162
|
+
function Mr({
|
|
2163
|
+
className: e,
|
|
2164
|
+
...r
|
|
2165
|
+
}) {
|
|
2166
|
+
return /* @__PURE__ */ o(
|
|
2167
|
+
"div",
|
|
2168
|
+
{
|
|
2169
|
+
className: p("animate-pulse rounded-md bg-secondary", e),
|
|
2170
|
+
...r
|
|
2171
|
+
}
|
|
2172
|
+
);
|
|
2173
|
+
}
|
|
2174
|
+
function Dr({ className: e }) {
|
|
2176
2175
|
return /* @__PURE__ */ o(
|
|
2177
2176
|
"svg",
|
|
2178
2177
|
{
|
|
@@ -2192,7 +2191,7 @@ function jr({ className: e }) {
|
|
|
2192
2191
|
}
|
|
2193
2192
|
);
|
|
2194
2193
|
}
|
|
2195
|
-
function
|
|
2194
|
+
function Wt({ className: e }) {
|
|
2196
2195
|
const { token: r } = x();
|
|
2197
2196
|
return /* @__PURE__ */ o(
|
|
2198
2197
|
"div",
|
|
@@ -2201,7 +2200,7 @@ function Ft({ className: e }) {
|
|
|
2201
2200
|
"flex items-center justify-center gap-2 p-2 pt-0",
|
|
2202
2201
|
e
|
|
2203
2202
|
),
|
|
2204
|
-
children: /* @__PURE__ */ o(
|
|
2203
|
+
children: /* @__PURE__ */ o(H, { children: /* @__PURE__ */ d(
|
|
2205
2204
|
"a",
|
|
2206
2205
|
{
|
|
2207
2206
|
href: `https://open.cx/?ref=${r}`,
|
|
@@ -2216,7 +2215,7 @@ function Ft({ className: e }) {
|
|
|
2216
2215
|
/* @__PURE__ */ o("span", { children: "Powered by" }),
|
|
2217
2216
|
/* @__PURE__ */ o("span", { children: " " }),
|
|
2218
2217
|
/* @__PURE__ */ d("span", { className: "flex items-center gap-[1px]", children: [
|
|
2219
|
-
/* @__PURE__ */ o("span", { children: /* @__PURE__ */ o(
|
|
2218
|
+
/* @__PURE__ */ o("span", { children: /* @__PURE__ */ o(Dr, { className: "size-3 inline-block" }) }),
|
|
2220
2219
|
/* @__PURE__ */ o("span", { className: "font-semibold", children: "open" })
|
|
2221
2220
|
] })
|
|
2222
2221
|
]
|
|
@@ -2225,14 +2224,14 @@ function Ft({ className: e }) {
|
|
|
2225
2224
|
}
|
|
2226
2225
|
);
|
|
2227
2226
|
}
|
|
2228
|
-
function
|
|
2227
|
+
function jr({ children: e }) {
|
|
2229
2228
|
return /* @__PURE__ */ o("p", { className: "ps-4 text-xs text-muted-foreground/75 uppercase font-semibold tracking-tight", children: e });
|
|
2230
2229
|
}
|
|
2231
|
-
function
|
|
2230
|
+
function at({
|
|
2232
2231
|
session: e,
|
|
2233
2232
|
className: r
|
|
2234
2233
|
}) {
|
|
2235
|
-
const { bot: t } = x(), { toChatScreen: n } =
|
|
2234
|
+
const { bot: t } = x(), { toChatScreen: n } = B(), 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) || "";
|
|
2236
2235
|
return /* @__PURE__ */ d(
|
|
2237
2236
|
y,
|
|
2238
2237
|
{
|
|
@@ -2245,48 +2244,48 @@ function it({
|
|
|
2245
2244
|
onClick: () => n(e.id),
|
|
2246
2245
|
children: [
|
|
2247
2246
|
/* @__PURE__ */ d("div", { className: "flex-1 flex gap-2 items-center", children: [
|
|
2248
|
-
/* @__PURE__ */ o(
|
|
2249
|
-
/* @__PURE__ */ o(
|
|
2250
|
-
/* @__PURE__ */ o(
|
|
2247
|
+
/* @__PURE__ */ o(S, { mode: "wait", children: /* @__PURE__ */ o(g, { snapExit: !0, children: /* @__PURE__ */ d(ve, { className: "size-10", children: [
|
|
2248
|
+
/* @__PURE__ */ o(be, { src: i, alt: "Agent Icon" }),
|
|
2249
|
+
/* @__PURE__ */ o(xe, { children: /* @__PURE__ */ o(zo, { className: "size-4" }) })
|
|
2251
2250
|
] }) }) }),
|
|
2252
2251
|
/* @__PURE__ */ d("div", { className: "flex-1", children: [
|
|
2253
|
-
/* @__PURE__ */ o(
|
|
2254
|
-
/* @__PURE__ */ o(
|
|
2255
|
-
|
|
2252
|
+
/* @__PURE__ */ o(S, { mode: "wait", children: /* @__PURE__ */ o(g, { snapExit: !0, children: s }, s) }),
|
|
2253
|
+
/* @__PURE__ */ o(S, { mode: "wait", children: e.lastMessage ? /* @__PURE__ */ o(g, { snapExit: !0, children: /* @__PURE__ */ o(
|
|
2254
|
+
_t,
|
|
2256
2255
|
{
|
|
2257
|
-
remarkPlugins: [
|
|
2258
|
-
rehypePlugins: [
|
|
2256
|
+
remarkPlugins: [gt],
|
|
2257
|
+
rehypePlugins: [wt],
|
|
2259
2258
|
className: "line-clamp-1 overflow-hidden text-ellipsis text-xs text-muted-foreground",
|
|
2260
2259
|
children: e.lastMessage
|
|
2261
2260
|
}
|
|
2262
|
-
) }, e.lastMessage || "content") : /* @__PURE__ */ o(g, { className: "w-1/2", snapExit: !0, children: /* @__PURE__ */ o(
|
|
2261
|
+
) }, e.lastMessage || "content") : /* @__PURE__ */ o(g, { className: "w-1/2", snapExit: !0, children: /* @__PURE__ */ o(Mr, { className: "h-4 w-full" }) }, "skeleton") })
|
|
2263
2262
|
] })
|
|
2264
2263
|
] }),
|
|
2265
|
-
/* @__PURE__ */ o(
|
|
2264
|
+
/* @__PURE__ */ o(No, { className: "size-4 text-muted-foreground shrink-0 rtl:-scale-100" })
|
|
2266
2265
|
]
|
|
2267
2266
|
}
|
|
2268
2267
|
);
|
|
2269
2268
|
}
|
|
2270
|
-
function
|
|
2271
|
-
const { t: e } =
|
|
2269
|
+
function Er() {
|
|
2270
|
+
const { t: e } = V(), { toChatScreen: r } = B(), {
|
|
2272
2271
|
sessionsState: { data: t, isInitialFetchLoading: n },
|
|
2273
2272
|
openSessions: s,
|
|
2274
|
-
closedSessions:
|
|
2275
|
-
canCreateNewSession:
|
|
2276
|
-
} =
|
|
2277
|
-
return /* @__PURE__ */ o("div", { className: "flex-1 flex flex-col overflow-scroll py-2 px-2", children: /* @__PURE__ */ o(
|
|
2273
|
+
closedSessions: i,
|
|
2274
|
+
canCreateNewSession: a
|
|
2275
|
+
} = q();
|
|
2276
|
+
return /* @__PURE__ */ o("div", { className: "flex-1 flex flex-col overflow-scroll py-2 px-2", children: /* @__PURE__ */ o(S, { mode: "wait", children: n ? /* @__PURE__ */ o(
|
|
2278
2277
|
g,
|
|
2279
2278
|
{
|
|
2280
2279
|
className: "flex-1 flex items-center justify-center",
|
|
2281
|
-
children: /* @__PURE__ */ o(
|
|
2280
|
+
children: /* @__PURE__ */ o(Ot, {})
|
|
2282
2281
|
},
|
|
2283
2282
|
"loading"
|
|
2284
2283
|
) : /* @__PURE__ */ o(
|
|
2285
2284
|
g,
|
|
2286
2285
|
{
|
|
2287
2286
|
className: "flex-1 flex flex-col gap-2 relative",
|
|
2288
|
-
children: t.length ? /* @__PURE__ */ d(
|
|
2289
|
-
/* @__PURE__ */ d(
|
|
2287
|
+
children: t.length ? /* @__PURE__ */ d(te, { children: [
|
|
2288
|
+
/* @__PURE__ */ d(S, { children: [
|
|
2290
2289
|
s.length > 0 && /* @__PURE__ */ o(
|
|
2291
2290
|
g,
|
|
2292
2291
|
{
|
|
@@ -2294,20 +2293,20 @@ function Rr() {
|
|
|
2294
2293
|
delay: 0.2,
|
|
2295
2294
|
className: "space-y-2",
|
|
2296
2295
|
snapExit: !0,
|
|
2297
|
-
children: s.map((c) => /* @__PURE__ */ o(
|
|
2296
|
+
children: s.map((c) => /* @__PURE__ */ o(at, { session: c }, c.id))
|
|
2298
2297
|
},
|
|
2299
2298
|
"open-sessions"
|
|
2300
2299
|
),
|
|
2301
|
-
|
|
2300
|
+
i.length > 0 && /* @__PURE__ */ d(
|
|
2302
2301
|
g,
|
|
2303
2302
|
{
|
|
2304
2303
|
className: "space-y-2",
|
|
2305
2304
|
delay: 0.2,
|
|
2306
2305
|
snapExit: !0,
|
|
2307
2306
|
children: [
|
|
2308
|
-
/* @__PURE__ */ o(
|
|
2309
|
-
|
|
2310
|
-
|
|
2307
|
+
/* @__PURE__ */ o(jr, { children: e("closed-conversations") }),
|
|
2308
|
+
i.map((c) => /* @__PURE__ */ o(
|
|
2309
|
+
at,
|
|
2311
2310
|
{
|
|
2312
2311
|
session: c,
|
|
2313
2312
|
className: "opacity-50 hover:opacity-100"
|
|
@@ -2319,7 +2318,7 @@ function Rr() {
|
|
|
2319
2318
|
"closed-sessions"
|
|
2320
2319
|
)
|
|
2321
2320
|
] }),
|
|
2322
|
-
|
|
2321
|
+
a && /* @__PURE__ */ o("div", { className: "mt-auto w-full rounded-3xl sticky bottom-0 outline outline-8 outline-background bg-background", children: /* @__PURE__ */ tt(
|
|
2323
2322
|
y,
|
|
2324
2323
|
{
|
|
2325
2324
|
...u("sessions/new_conversation_btn"),
|
|
@@ -2332,7 +2331,7 @@ function Rr() {
|
|
|
2332
2331
|
) })
|
|
2333
2332
|
] }) : /* @__PURE__ */ d("div", { className: "flex-1 flex flex-col gap-2 items-center", children: [
|
|
2334
2333
|
/* @__PURE__ */ o("div", { className: "flex-1 flex items-center justify-center", children: /* @__PURE__ */ o("p", { className: "text-muted-foreground", children: e("no-conversations-yet") }) }),
|
|
2335
|
-
/* @__PURE__ */
|
|
2334
|
+
/* @__PURE__ */ tt(
|
|
2336
2335
|
y,
|
|
2337
2336
|
{
|
|
2338
2337
|
...u("sessions/new_conversation_btn"),
|
|
@@ -2348,9 +2347,9 @@ function Rr() {
|
|
|
2348
2347
|
"sessions"
|
|
2349
2348
|
) }) });
|
|
2350
2349
|
}
|
|
2351
|
-
function
|
|
2352
|
-
const { theme: e } =
|
|
2353
|
-
return
|
|
2350
|
+
function Rr() {
|
|
2351
|
+
const { theme: e } = U();
|
|
2352
|
+
return ye({
|
|
2354
2353
|
width: e.screens.sessions.width,
|
|
2355
2354
|
height: e.screens.sessions.height
|
|
2356
2355
|
}), /* @__PURE__ */ o(
|
|
@@ -2369,17 +2368,17 @@ function Or() {
|
|
|
2369
2368
|
// Relative to the iframe
|
|
2370
2369
|
},
|
|
2371
2370
|
children: /* @__PURE__ */ d("div", { className: "size-full flex flex-col", children: [
|
|
2372
|
-
/* @__PURE__ */ o(
|
|
2373
|
-
/* @__PURE__ */ o(
|
|
2374
|
-
/* @__PURE__ */ o(
|
|
2371
|
+
/* @__PURE__ */ o(Rt, {}),
|
|
2372
|
+
/* @__PURE__ */ o(Er, {}),
|
|
2373
|
+
/* @__PURE__ */ o(Wt, {})
|
|
2375
2374
|
] })
|
|
2376
2375
|
}
|
|
2377
2376
|
);
|
|
2378
2377
|
}
|
|
2379
|
-
const
|
|
2378
|
+
const ae = G.forwardRef(
|
|
2380
2379
|
({ className: e, type: r, ...t }, n) => {
|
|
2381
|
-
const { isSmallScreen: s } =
|
|
2382
|
-
return /* @__PURE__ */ o(
|
|
2380
|
+
const { isSmallScreen: s } = O();
|
|
2381
|
+
return /* @__PURE__ */ o(H, { ref: n, children: /* @__PURE__ */ o(
|
|
2383
2382
|
"input",
|
|
2384
2383
|
{
|
|
2385
2384
|
type: r,
|
|
@@ -2396,16 +2395,16 @@ const ie = K.forwardRef(
|
|
|
2396
2395
|
) });
|
|
2397
2396
|
}
|
|
2398
2397
|
);
|
|
2399
|
-
|
|
2400
|
-
function
|
|
2401
|
-
const { contentIframeRef: e } =
|
|
2402
|
-
return
|
|
2398
|
+
ae.displayName = "Input";
|
|
2399
|
+
function Or() {
|
|
2400
|
+
const { contentIframeRef: e } = E(), { inline: r } = x(), t = le(null);
|
|
2401
|
+
return oe(() => {
|
|
2403
2402
|
const n = e == null ? void 0 : e.current;
|
|
2404
2403
|
if (n && t.current) {
|
|
2405
2404
|
const s = t.current;
|
|
2406
|
-
let
|
|
2407
|
-
const
|
|
2408
|
-
|
|
2405
|
+
let i;
|
|
2406
|
+
const a = new ResizeObserver(() => {
|
|
2407
|
+
i = requestAnimationFrame(() => {
|
|
2409
2408
|
const c = s.offsetHeight;
|
|
2410
2409
|
n.style.setProperty(
|
|
2411
2410
|
"--opencx-widget-height",
|
|
@@ -2413,30 +2412,30 @@ function Pr() {
|
|
|
2413
2412
|
);
|
|
2414
2413
|
});
|
|
2415
2414
|
});
|
|
2416
|
-
return
|
|
2417
|
-
cancelAnimationFrame(
|
|
2415
|
+
return a.observe(s), () => {
|
|
2416
|
+
cancelAnimationFrame(i), a.unobserve(s);
|
|
2418
2417
|
};
|
|
2419
2418
|
}
|
|
2420
2419
|
}, [e, r]), { observedElementRef: t };
|
|
2421
2420
|
}
|
|
2422
|
-
const Ar =
|
|
2423
|
-
name:
|
|
2424
|
-
email:
|
|
2421
|
+
const Ar = pe.object({
|
|
2422
|
+
name: pe.string().min(2),
|
|
2423
|
+
email: pe.string().email()
|
|
2425
2424
|
});
|
|
2426
|
-
function
|
|
2427
|
-
var
|
|
2428
|
-
const {
|
|
2429
|
-
|
|
2425
|
+
function Pr() {
|
|
2426
|
+
var _, M, A, P, W, j, v, C;
|
|
2427
|
+
const { widgetCtx: { org: e } } = E(), { setIsOpen: r } = K(), { createUnverifiedContact: t } = qt(), { isSmallScreen: n } = O(), s = x(), { theme: i } = U(), { t: a } = V(), { observedElementRef: c } = Or();
|
|
2428
|
+
ye({
|
|
2430
2429
|
height: void 0,
|
|
2431
|
-
width:
|
|
2430
|
+
width: i.screens.welcome.width
|
|
2432
2431
|
});
|
|
2433
|
-
const [l, h] = I(((
|
|
2434
|
-
(
|
|
2435
|
-
), [k, f] = I({}), [
|
|
2436
|
-
async (
|
|
2437
|
-
|
|
2432
|
+
const [l, h] = I(((_ = s.prefillUserData) == null ? void 0 : _.name) || ""), [b, w] = I(((M = s.prefillUserData) == null ? void 0 : M.email) || ""), m = (s.extraDataCollectionFields || []).filter(
|
|
2433
|
+
(z) => z !== "name" && z !== "email" && !!z
|
|
2434
|
+
), [k, f] = I({}), [N, T] = Mo(
|
|
2435
|
+
async (z) => {
|
|
2436
|
+
z.preventDefault();
|
|
2438
2437
|
const L = Ar.safeParse({ name: l, email: b });
|
|
2439
|
-
L.success && await
|
|
2438
|
+
L.success && await t(
|
|
2440
2439
|
{
|
|
2441
2440
|
email: L.data.email,
|
|
2442
2441
|
non_verified_name: L.data.name
|
|
@@ -2455,7 +2454,7 @@ function Wr() {
|
|
|
2455
2454
|
// Relative to the iframe
|
|
2456
2455
|
maxWidth: "100vw",
|
|
2457
2456
|
// Relative to the iframe
|
|
2458
|
-
minHeight:
|
|
2457
|
+
minHeight: i.screens.welcome.minHeight,
|
|
2459
2458
|
height: "100vh",
|
|
2460
2459
|
// Relative to the iframe
|
|
2461
2460
|
maxHeight: "100vh",
|
|
@@ -2468,7 +2467,7 @@ function Wr() {
|
|
|
2468
2467
|
ref: c,
|
|
2469
2468
|
className: p(
|
|
2470
2469
|
"flex flex-col",
|
|
2471
|
-
|
|
2470
|
+
n && "h-full",
|
|
2472
2471
|
"bg-[radial-gradient(ellipse_at_top_left,hsl(var(--opencx-primary)),transparent),radial-gradient(ellipse_at_top_right,hsl(var(--opencx-primary)),transparent)]"
|
|
2473
2472
|
),
|
|
2474
2473
|
children: [
|
|
@@ -2480,18 +2479,18 @@ function Wr() {
|
|
|
2480
2479
|
"text-primary-foreground"
|
|
2481
2480
|
),
|
|
2482
2481
|
children: [
|
|
2483
|
-
|
|
2484
|
-
/* @__PURE__ */ o("div", { className: "flex items-center justify-between w-full mb-2", children: (
|
|
2482
|
+
n && /* @__PURE__ */ o(g, { className: "absolute top-6 end-6", children: /* @__PURE__ */ o(y, { size: "selfless", onClick: () => r(!1), children: /* @__PURE__ */ o(fe, { className: "size-4" }) }) }),
|
|
2483
|
+
/* @__PURE__ */ o("div", { className: "flex items-center justify-between w-full mb-2", children: (A = s.assets) != null && A.organizationLogo ? /* @__PURE__ */ o(
|
|
2485
2484
|
"img",
|
|
2486
2485
|
{
|
|
2487
|
-
src: (P =
|
|
2486
|
+
src: (P = s.assets) == null ? void 0 : P.organizationLogo,
|
|
2488
2487
|
alt: "Company Logo",
|
|
2489
2488
|
className: "h-8 w-auto object-contain"
|
|
2490
2489
|
}
|
|
2491
|
-
) : /* @__PURE__ */ o("h2", { className: "font-bold text-sm", children:
|
|
2490
|
+
) : /* @__PURE__ */ o("h2", { className: "font-bold text-sm", children: e.name }) }),
|
|
2492
2491
|
/* @__PURE__ */ d("div", { className: "space-y-2", children: [
|
|
2493
|
-
/* @__PURE__ */ o("h1", { className: "text-[1.75rem] font-semibold tracking-tight leading-none", children: ((
|
|
2494
|
-
/* @__PURE__ */ o("p", { className: "text-sm", children: ((
|
|
2492
|
+
/* @__PURE__ */ o("h1", { className: "text-[1.75rem] font-semibold tracking-tight leading-none", children: ((j = (W = s.textContent) == null ? void 0 : W.welcomeScreen) == null ? void 0 : j.title) || a("welcome-title") }),
|
|
2493
|
+
/* @__PURE__ */ o("p", { className: "text-sm", children: ((C = (v = s.textContent) == null ? void 0 : v.welcomeScreen) == null ? void 0 : C.description) || a("welcome-description") })
|
|
2495
2494
|
] })
|
|
2496
2495
|
]
|
|
2497
2496
|
}
|
|
@@ -2508,52 +2507,52 @@ function Wr() {
|
|
|
2508
2507
|
children: [
|
|
2509
2508
|
/* @__PURE__ */ d("form", { onSubmit: T, className: "space-y-2", children: [
|
|
2510
2509
|
/* @__PURE__ */ o(
|
|
2511
|
-
|
|
2510
|
+
ae,
|
|
2512
2511
|
{
|
|
2513
2512
|
value: l,
|
|
2514
|
-
onChange: (
|
|
2513
|
+
onChange: (z) => h(z.target.value),
|
|
2515
2514
|
required: !0,
|
|
2516
2515
|
placeholder: a("your-name"),
|
|
2517
2516
|
name: "name"
|
|
2518
2517
|
}
|
|
2519
2518
|
),
|
|
2520
2519
|
/* @__PURE__ */ o(
|
|
2521
|
-
|
|
2520
|
+
ae,
|
|
2522
2521
|
{
|
|
2523
2522
|
required: !0,
|
|
2524
2523
|
value: b,
|
|
2525
|
-
onChange: (
|
|
2524
|
+
onChange: (z) => w(z.target.value),
|
|
2526
2525
|
type: "email",
|
|
2527
2526
|
placeholder: a("your-email"),
|
|
2528
2527
|
name: "email"
|
|
2529
2528
|
}
|
|
2530
2529
|
),
|
|
2531
|
-
m.map((
|
|
2532
|
-
|
|
2530
|
+
m.map((z) => /* @__PURE__ */ o(
|
|
2531
|
+
ae,
|
|
2533
2532
|
{
|
|
2534
|
-
value: k[
|
|
2535
|
-
onChange: (L) => f((
|
|
2536
|
-
...
|
|
2537
|
-
[
|
|
2533
|
+
value: k[z],
|
|
2534
|
+
onChange: (L) => f((ne) => ({
|
|
2535
|
+
...ne,
|
|
2536
|
+
[z]: L.target.value
|
|
2538
2537
|
})),
|
|
2539
|
-
placeholder: `${
|
|
2538
|
+
placeholder: `${z} (${a("optional")})`
|
|
2540
2539
|
},
|
|
2541
|
-
|
|
2540
|
+
z
|
|
2542
2541
|
)),
|
|
2543
2542
|
/* @__PURE__ */ d(
|
|
2544
2543
|
y,
|
|
2545
2544
|
{
|
|
2546
|
-
disabled:
|
|
2545
|
+
disabled: N.loading,
|
|
2547
2546
|
className: "w-full",
|
|
2548
2547
|
size: "lg",
|
|
2549
2548
|
children: [
|
|
2550
|
-
|
|
2551
|
-
/* @__PURE__ */ o(
|
|
2549
|
+
N.loading ? a("starting-chat") : a("start-chat"),
|
|
2550
|
+
/* @__PURE__ */ o(So, { className: "size-4 rtl:-scale-100" })
|
|
2552
2551
|
]
|
|
2553
2552
|
}
|
|
2554
2553
|
)
|
|
2555
2554
|
] }),
|
|
2556
|
-
/* @__PURE__ */ o(
|
|
2555
|
+
/* @__PURE__ */ o(Wt, {})
|
|
2557
2556
|
]
|
|
2558
2557
|
}
|
|
2559
2558
|
)
|
|
@@ -2563,12 +2562,11 @@ function Wr() {
|
|
|
2563
2562
|
}
|
|
2564
2563
|
);
|
|
2565
2564
|
}
|
|
2566
|
-
function
|
|
2567
|
-
de();
|
|
2565
|
+
function Ht() {
|
|
2568
2566
|
const {
|
|
2569
2567
|
routerState: { screen: e }
|
|
2570
|
-
} =
|
|
2571
|
-
return /* @__PURE__ */ o("div", { className: "relative bg-background size-full", children: /* @__PURE__ */ o(
|
|
2568
|
+
} = B();
|
|
2569
|
+
return /* @__PURE__ */ o("div", { className: "relative bg-background size-full", children: /* @__PURE__ */ o(S, { mode: "wait", children: (() => {
|
|
2572
2570
|
switch (e) {
|
|
2573
2571
|
case "welcome":
|
|
2574
2572
|
return /* @__PURE__ */ o(
|
|
@@ -2577,7 +2575,7 @@ function Bt() {
|
|
|
2577
2575
|
fadeIn: "right",
|
|
2578
2576
|
className: "size-full",
|
|
2579
2577
|
snapExit: !0,
|
|
2580
|
-
children: /* @__PURE__ */ o(
|
|
2578
|
+
children: /* @__PURE__ */ o(Pr, {})
|
|
2581
2579
|
},
|
|
2582
2580
|
e
|
|
2583
2581
|
);
|
|
@@ -2588,7 +2586,7 @@ function Bt() {
|
|
|
2588
2586
|
fadeIn: "right",
|
|
2589
2587
|
className: "size-full",
|
|
2590
2588
|
snapExit: !0,
|
|
2591
|
-
children: /* @__PURE__ */ o(
|
|
2589
|
+
children: /* @__PURE__ */ o(Rr, {})
|
|
2592
2590
|
},
|
|
2593
2591
|
e
|
|
2594
2592
|
);
|
|
@@ -2599,20 +2597,20 @@ function Bt() {
|
|
|
2599
2597
|
fadeIn: "right",
|
|
2600
2598
|
className: "size-full",
|
|
2601
2599
|
snapExit: !0,
|
|
2602
|
-
children: /* @__PURE__ */ o(
|
|
2600
|
+
children: /* @__PURE__ */ o(Tr, {})
|
|
2603
2601
|
},
|
|
2604
2602
|
e
|
|
2605
2603
|
);
|
|
2606
2604
|
default:
|
|
2607
|
-
return D(e,
|
|
2605
|
+
return D(e, Ht.name), null;
|
|
2608
2606
|
}
|
|
2609
2607
|
})() }) });
|
|
2610
2608
|
}
|
|
2611
|
-
const
|
|
2609
|
+
const Wr = "4.0.15", Hr = `<!DOCTYPE html>
|
|
2612
2610
|
<html>
|
|
2613
2611
|
<head>
|
|
2614
2612
|
<style>
|
|
2615
|
-
${
|
|
2613
|
+
${Tt}
|
|
2616
2614
|
html, body {
|
|
2617
2615
|
height: 100%;
|
|
2618
2616
|
width: 100%;
|
|
@@ -2626,10 +2624,10 @@ html, body {
|
|
|
2626
2624
|
<body>
|
|
2627
2625
|
</body>
|
|
2628
2626
|
</html>`;
|
|
2629
|
-
function
|
|
2630
|
-
const { isOpen: e } =
|
|
2627
|
+
function Ft() {
|
|
2628
|
+
const { isOpen: e } = K(), { contentIframeRef: r } = E(), { cssOverrides: t, inline: n } = x(), { theme: s, cssVars: i, computed: a } = U(), { dir: c } = V();
|
|
2631
2629
|
return /* @__PURE__ */ o(
|
|
2632
|
-
|
|
2630
|
+
Q.div,
|
|
2633
2631
|
{
|
|
2634
2632
|
animate: e ? "visible" : "hidden",
|
|
2635
2633
|
initial: "hidden",
|
|
@@ -2648,23 +2646,23 @@ function Lt() {
|
|
|
2648
2646
|
}
|
|
2649
2647
|
},
|
|
2650
2648
|
children: /* @__PURE__ */ d(
|
|
2651
|
-
|
|
2649
|
+
ft,
|
|
2652
2650
|
{
|
|
2653
2651
|
ref: r,
|
|
2654
|
-
initialContent:
|
|
2652
|
+
initialContent: Hr,
|
|
2655
2653
|
allowFullScreen: !0,
|
|
2656
2654
|
title: "OpenCX Live Chat",
|
|
2657
2655
|
style: {
|
|
2658
2656
|
// @ts-expect-error this is a valid css variable
|
|
2659
|
-
"--opencx-widget-width":
|
|
2660
|
-
"--opencx-widget-height":
|
|
2661
|
-
minWidth:
|
|
2657
|
+
"--opencx-widget-width": a.minWidth,
|
|
2658
|
+
"--opencx-widget-height": a.minHeight,
|
|
2659
|
+
minWidth: a.minWidth,
|
|
2662
2660
|
width: "var(--opencx-widget-width)",
|
|
2663
|
-
maxWidth:
|
|
2661
|
+
maxWidth: a.maxWidth,
|
|
2664
2662
|
// Relative to the viewport
|
|
2665
|
-
minHeight:
|
|
2663
|
+
minHeight: a.minHeight,
|
|
2666
2664
|
height: "var(--opencx-widget-height)",
|
|
2667
|
-
maxHeight:
|
|
2665
|
+
maxHeight: a.maxHeight,
|
|
2668
2666
|
// Relative to the viewport
|
|
2669
2667
|
overflow: "hidden",
|
|
2670
2668
|
/** 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 */
|
|
@@ -2685,20 +2683,20 @@ function Lt() {
|
|
|
2685
2683
|
"div",
|
|
2686
2684
|
{
|
|
2687
2685
|
style: {
|
|
2688
|
-
...
|
|
2686
|
+
...i,
|
|
2689
2687
|
zIndex: s.widgetContentContainer.zIndex
|
|
2690
2688
|
},
|
|
2691
|
-
"data-version":
|
|
2689
|
+
"data-version": Wr,
|
|
2692
2690
|
className: p(
|
|
2693
2691
|
"antialiased font-sans size-full overflow-hidden relative text-secondary-foreground isolate"
|
|
2694
2692
|
),
|
|
2695
2693
|
dir: c,
|
|
2696
2694
|
children: /* @__PURE__ */ o(
|
|
2697
|
-
|
|
2695
|
+
Lo,
|
|
2698
2696
|
{
|
|
2699
2697
|
delayDuration: 200,
|
|
2700
2698
|
disableHoverableContent: !0,
|
|
2701
|
-
children: /* @__PURE__ */ o(
|
|
2699
|
+
children: /* @__PURE__ */ o(Wo, { children: /* @__PURE__ */ o(Ht, {}) })
|
|
2702
2700
|
}
|
|
2703
2701
|
)
|
|
2704
2702
|
}
|
|
@@ -2709,10 +2707,10 @@ function Lt() {
|
|
|
2709
2707
|
}
|
|
2710
2708
|
);
|
|
2711
2709
|
}
|
|
2712
|
-
function
|
|
2713
|
-
const { theme: e } =
|
|
2710
|
+
function Fr() {
|
|
2711
|
+
const { theme: e } = U();
|
|
2714
2712
|
return /* @__PURE__ */ o(
|
|
2715
|
-
|
|
2713
|
+
ie.Content,
|
|
2716
2714
|
{
|
|
2717
2715
|
onInteractOutside: (r) => r.preventDefault(),
|
|
2718
2716
|
forceMount: !0,
|
|
@@ -2725,11 +2723,11 @@ function Br() {
|
|
|
2725
2723
|
sideOffset: e.widgetContentContainer.offset.side,
|
|
2726
2724
|
alignOffset: e.widgetContentContainer.offset.align,
|
|
2727
2725
|
avoidCollisions: !1,
|
|
2728
|
-
children: /* @__PURE__ */ o(
|
|
2726
|
+
children: /* @__PURE__ */ o(Ft, {})
|
|
2729
2727
|
}
|
|
2730
2728
|
);
|
|
2731
2729
|
}
|
|
2732
|
-
function
|
|
2730
|
+
function Br({
|
|
2733
2731
|
className: e,
|
|
2734
2732
|
style: r
|
|
2735
2733
|
}) {
|
|
@@ -2764,11 +2762,11 @@ function Lr({
|
|
|
2764
2762
|
}
|
|
2765
2763
|
);
|
|
2766
2764
|
}
|
|
2767
|
-
const
|
|
2765
|
+
const Lr = `<!DOCTYPE html>
|
|
2768
2766
|
<html>
|
|
2769
2767
|
<head>
|
|
2770
2768
|
<style>
|
|
2771
|
-
${
|
|
2769
|
+
${Tt}
|
|
2772
2770
|
html, body {
|
|
2773
2771
|
height: 100%;
|
|
2774
2772
|
width: 100%;
|
|
@@ -2781,16 +2779,16 @@ html, body {
|
|
|
2781
2779
|
<body>
|
|
2782
2780
|
</body>
|
|
2783
2781
|
</html>`;
|
|
2784
|
-
function
|
|
2785
|
-
var
|
|
2786
|
-
const { isOpen: e } =
|
|
2782
|
+
function Yr() {
|
|
2783
|
+
var i, a;
|
|
2784
|
+
const { isOpen: e } = K(), { cssOverrides: r, assets: t } = x(), { theme: n, cssVars: s } = U();
|
|
2787
2785
|
return /* @__PURE__ */ d(
|
|
2788
|
-
|
|
2786
|
+
ft,
|
|
2789
2787
|
{
|
|
2790
|
-
initialContent:
|
|
2788
|
+
initialContent: Lr,
|
|
2791
2789
|
style: {
|
|
2792
|
-
height: `calc(${n.widgetTrigger.size.button}px + ${
|
|
2793
|
-
width: `calc(${n.widgetTrigger.size.button}px + ${
|
|
2790
|
+
height: `calc(${n.widgetTrigger.size.button}px + ${X.x * 2}px)`,
|
|
2791
|
+
width: `calc(${n.widgetTrigger.size.button}px + ${X.y * 2}px)`,
|
|
2794
2792
|
fontSize: "16px",
|
|
2795
2793
|
position: "fixed",
|
|
2796
2794
|
zIndex: n.widgetTrigger.zIndex,
|
|
@@ -2817,7 +2815,7 @@ function $r() {
|
|
|
2817
2815
|
justifyContent: "center"
|
|
2818
2816
|
},
|
|
2819
2817
|
children: /* @__PURE__ */ o(
|
|
2820
|
-
|
|
2818
|
+
ie.PopoverTrigger,
|
|
2821
2819
|
{
|
|
2822
2820
|
className: p(
|
|
2823
2821
|
"font-sans flex items-center justify-center rounded-full"
|
|
@@ -2826,7 +2824,7 @@ function $r() {
|
|
|
2826
2824
|
height: n.widgetTrigger.size.button,
|
|
2827
2825
|
width: n.widgetTrigger.size.button
|
|
2828
2826
|
},
|
|
2829
|
-
children: /* @__PURE__ */ o(
|
|
2827
|
+
children: /* @__PURE__ */ o(H, { children: /* @__PURE__ */ o(
|
|
2830
2828
|
"div",
|
|
2831
2829
|
{
|
|
2832
2830
|
...u("trigger/btn"),
|
|
@@ -2838,7 +2836,7 @@ function $r() {
|
|
|
2838
2836
|
"bg-primary",
|
|
2839
2837
|
"text-primary-foreground"
|
|
2840
2838
|
),
|
|
2841
|
-
children: /* @__PURE__ */ o(
|
|
2839
|
+
children: /* @__PURE__ */ o(S, { mode: "wait", children: e ? /* @__PURE__ */ o(
|
|
2842
2840
|
g,
|
|
2843
2841
|
{
|
|
2844
2842
|
snapExit: !0,
|
|
@@ -2847,7 +2845,7 @@ function $r() {
|
|
|
2847
2845
|
initial: { rotate: 45 },
|
|
2848
2846
|
animate: { rotate: 0 }
|
|
2849
2847
|
},
|
|
2850
|
-
children: (
|
|
2848
|
+
children: (i = t == null ? void 0 : t.widgetTrigger) != null && i.closeIcon ? /* @__PURE__ */ o(
|
|
2851
2849
|
"img",
|
|
2852
2850
|
{
|
|
2853
2851
|
src: t.widgetTrigger.closeIcon,
|
|
@@ -2858,7 +2856,7 @@ function $r() {
|
|
|
2858
2856
|
}
|
|
2859
2857
|
}
|
|
2860
2858
|
) : /* @__PURE__ */ o(
|
|
2861
|
-
|
|
2859
|
+
_o,
|
|
2862
2860
|
{
|
|
2863
2861
|
style: {
|
|
2864
2862
|
width: n.widgetTrigger.size.icon,
|
|
@@ -2876,7 +2874,7 @@ function $r() {
|
|
|
2876
2874
|
initial: { rotate: 45 },
|
|
2877
2875
|
animate: { rotate: 0 }
|
|
2878
2876
|
},
|
|
2879
|
-
children: (
|
|
2877
|
+
children: (a = t == null ? void 0 : t.widgetTrigger) != null && a.openIcon ? /* @__PURE__ */ o(
|
|
2880
2878
|
"img",
|
|
2881
2879
|
{
|
|
2882
2880
|
src: t.widgetTrigger.openIcon,
|
|
@@ -2887,7 +2885,7 @@ function $r() {
|
|
|
2887
2885
|
}
|
|
2888
2886
|
}
|
|
2889
2887
|
) : /* @__PURE__ */ o(
|
|
2890
|
-
|
|
2888
|
+
Br,
|
|
2891
2889
|
{
|
|
2892
2890
|
style: {
|
|
2893
2891
|
width: n.widgetTrigger.size.icon,
|
|
@@ -2909,10 +2907,10 @@ function $r() {
|
|
|
2909
2907
|
}
|
|
2910
2908
|
);
|
|
2911
2909
|
}
|
|
2912
|
-
function
|
|
2913
|
-
const { dir: e } =
|
|
2910
|
+
function $r() {
|
|
2911
|
+
const { dir: e } = we();
|
|
2914
2912
|
return /* @__PURE__ */ o(
|
|
2915
|
-
|
|
2913
|
+
ie.Anchor,
|
|
2916
2914
|
{
|
|
2917
2915
|
style: {
|
|
2918
2916
|
position: "fixed",
|
|
@@ -2923,32 +2921,32 @@ function qr() {
|
|
|
2923
2921
|
}
|
|
2924
2922
|
);
|
|
2925
2923
|
}
|
|
2926
|
-
function
|
|
2927
|
-
const { isOpen: e, setIsOpen: r } =
|
|
2928
|
-
return /* @__PURE__ */ d(
|
|
2929
|
-
/* @__PURE__ */ o(qr, {}),
|
|
2924
|
+
function qr() {
|
|
2925
|
+
const { isOpen: e, setIsOpen: r } = K();
|
|
2926
|
+
return /* @__PURE__ */ d(ie.Root, { open: e, onOpenChange: r, children: [
|
|
2930
2927
|
/* @__PURE__ */ o($r, {}),
|
|
2931
|
-
/* @__PURE__ */ o(
|
|
2928
|
+
/* @__PURE__ */ o(Yr, {}),
|
|
2929
|
+
/* @__PURE__ */ o(Fr, {})
|
|
2932
2930
|
] });
|
|
2933
2931
|
}
|
|
2934
|
-
const
|
|
2932
|
+
const Ur = [
|
|
2935
2933
|
{
|
|
2936
2934
|
key: "loading",
|
|
2937
|
-
component:
|
|
2935
|
+
component: Bo
|
|
2938
2936
|
},
|
|
2939
2937
|
{
|
|
2940
2938
|
key: "fallback",
|
|
2941
|
-
component:
|
|
2939
|
+
component: Fo
|
|
2942
2940
|
},
|
|
2943
2941
|
{
|
|
2944
2942
|
key: "bot_message",
|
|
2945
|
-
component:
|
|
2943
|
+
component: he
|
|
2946
2944
|
},
|
|
2947
2945
|
{
|
|
2948
2946
|
key: "agent_message",
|
|
2949
|
-
component:
|
|
2947
|
+
component: he
|
|
2950
2948
|
}
|
|
2951
|
-
],
|
|
2949
|
+
], Vr = {
|
|
2952
2950
|
get: async (e) => localStorage.getItem(e),
|
|
2953
2951
|
set: async (e, r) => {
|
|
2954
2952
|
localStorage.setItem(e, r);
|
|
@@ -2957,23 +2955,23 @@ const Vr = [
|
|
|
2957
2955
|
localStorage.removeItem(e);
|
|
2958
2956
|
}
|
|
2959
2957
|
};
|
|
2960
|
-
function
|
|
2958
|
+
function mn({
|
|
2961
2959
|
options: e,
|
|
2962
2960
|
components: r = [],
|
|
2963
2961
|
loadingComponent: t
|
|
2964
2962
|
}) {
|
|
2965
2963
|
return /* @__PURE__ */ o(
|
|
2966
|
-
|
|
2964
|
+
Ut,
|
|
2967
2965
|
{
|
|
2968
|
-
components: [...
|
|
2966
|
+
components: [...Ur, ...r],
|
|
2969
2967
|
options: e,
|
|
2970
|
-
storage:
|
|
2968
|
+
storage: Vr,
|
|
2971
2969
|
loadingComponent: t,
|
|
2972
|
-
children: /* @__PURE__ */ o(
|
|
2970
|
+
children: /* @__PURE__ */ o(Vt, { children: e.inline ? /* @__PURE__ */ o(Ft, {}) : /* @__PURE__ */ o(qr, {}) })
|
|
2973
2971
|
}
|
|
2974
2972
|
);
|
|
2975
2973
|
}
|
|
2976
2974
|
export {
|
|
2977
|
-
|
|
2975
|
+
mn as Widget
|
|
2978
2976
|
};
|
|
2979
2977
|
//# sourceMappingURL=index.js.map
|