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