@opencx/widget-react 4.0.17 → 4.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.cjs +10 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +751 -889
- package/dist/index.js.map +1 -1
- package/dist/src/components/MightSolveUserIssueSuggestedReplies.d.ts.map +1 -1
- package/dist/src/hooks/useTranslation.d.ts +2 -2
- package/dist/src/hooks/useTranslation.d.ts.map +1 -1
- package/dist/src/screens/chat/ChatFooter.d.ts.map +1 -1
- package/dist/src/screens/chat/ChatFooterItems.d.ts +3 -0
- package/dist/src/screens/chat/ChatFooterItems.d.ts.map +1 -0
- package/dist/src/screens/welcome/index.d.ts.map +1 -1
- package/package.json +5 -5
- package/dist/src/translation/ar.d.ts +0 -3
- package/dist/src/translation/ar.d.ts.map +0 -1
- package/dist/src/translation/de.d.ts +0 -3
- package/dist/src/translation/de.d.ts.map +0 -1
- package/dist/src/translation/en.d.ts +0 -3
- package/dist/src/translation/en.d.ts.map +0 -1
- package/dist/src/translation/es.d.ts +0 -3
- package/dist/src/translation/es.d.ts.map +0 -1
- package/dist/src/translation/fr.d.ts +0 -3
- package/dist/src/translation/fr.d.ts.map +0 -1
- package/dist/src/translation/index.d.ts +0 -17
- package/dist/src/translation/index.d.ts.map +0 -1
- package/dist/src/translation/nl.d.ts +0 -3
- package/dist/src/translation/nl.d.ts.map +0 -1
- package/dist/src/translation/pt.d.ts +0 -3
- package/dist/src/translation/pt.d.ts.map +0 -1
- package/dist/src/translation/tr.d.ts +0 -3
- package/dist/src/translation/tr.d.ts.map +0 -1
- package/dist/src/translation/translation.types.d.ts +0 -5
- package/dist/src/translation/translation.types.d.ts.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
1
|
+
import { jsx as r, jsxs as d, Fragment as te } from "react/jsx-runtime";
|
|
2
|
+
import * as ae from "@radix-ui/react-popover";
|
|
3
3
|
import * as G from "react";
|
|
4
|
-
import
|
|
5
|
-
import { useWidget as
|
|
6
|
-
import { clsx as
|
|
4
|
+
import q, { memo as $t, forwardRef as ct, useState as I, cloneElement as dt, createContext as Bt, useEffect as re, useContext as Lt, useMemo as pt, useRef as le, createElement as rt } from "react";
|
|
5
|
+
import { useWidget as R, useConfig as b, useDocumentDir as ue, useWidgetRouter as $, useWidgetTrigger as K, useSessions as B, useMessages as O, useModes as ht, useCsat as mt, useUploadFiles as Yt, useIsAwaitingBotReply as gt, useContact as qt, WidgetProvider as Xt, WidgetTriggerProvider as Ut } from "@opencx/widget-react-headless";
|
|
6
|
+
import { clsx as Vt } from "clsx";
|
|
7
7
|
import { twMerge as Gt } from "tailwind-merge";
|
|
8
|
-
import { motion as
|
|
8
|
+
import { motion as Z, AnimatePresence as S } from "framer-motion";
|
|
9
9
|
import { Slot as Kt } from "@radix-ui/react-slot";
|
|
10
|
-
import { cva as
|
|
11
|
-
import { X as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { isExhaustive as D } from "@opencx/widget-core";
|
|
16
|
-
import * as
|
|
17
|
-
import
|
|
18
|
-
import * as
|
|
10
|
+
import { cva as Qt } from "class-variance-authority";
|
|
11
|
+
import { X as Zt, CircleDashedIcon as Jt, XIcon as fe, SquareXIcon as er, SquareCheckBigIcon as tr, SquareCheckIcon as rr, ShrinkIcon as or, Minimize2Icon as nr, MinimizeIcon as sr, Maximize2Icon as ir, MaximizeIcon as ar, ExpandIcon as lr, CircleXIcon as cr, CircleCheckBigIcon as dr, CircleCheckIcon as wt, CheckCheckIcon as pr, CheckIcon as hr, ChevronLeftIcon as mr, LoaderIcon as gr, ArrowUpIcon as ut, PaperclipIcon as wr, ImageIcon as ur, CircleDashed as fr, AlertCircle as vr, Loader2 as xr, FileAudio2Icon as br, FileVideo2Icon as yr, FileIcon as kr, UserRoundIcon as Cr, ChevronRightIcon as zr, SendHorizontal as Nr, ChevronDownIcon as Sr } from "lucide-react";
|
|
12
|
+
import ft from "remark-gfm";
|
|
13
|
+
import _r from "react-markdown";
|
|
14
|
+
import vt from "rehype-raw";
|
|
15
|
+
import { isExhaustive as D, isSupportedLanguage as Ir, getTranslation as Tr } from "@opencx/widget-core";
|
|
16
|
+
import * as Q from "@radix-ui/react-avatar";
|
|
17
|
+
import xt from "@uiw/react-iframe";
|
|
18
|
+
import * as oe from "@radix-ui/react-tooltip";
|
|
19
19
|
import ot from "tinycolor2";
|
|
20
|
-
import { useDropzone as
|
|
21
|
-
import
|
|
20
|
+
import { useDropzone as Mr } from "react-dropzone";
|
|
21
|
+
import Dr from "react-use/lib/useAsyncFn";
|
|
22
22
|
import { z as pe } from "zod";
|
|
23
|
-
function
|
|
23
|
+
function g(e) {
|
|
24
24
|
return { "data-component": e };
|
|
25
25
|
}
|
|
26
26
|
function p(...e) {
|
|
27
|
-
return Gt(
|
|
27
|
+
return Gt(Vt(e));
|
|
28
28
|
}
|
|
29
|
-
const
|
|
29
|
+
const V = {
|
|
30
30
|
x: 2,
|
|
31
31
|
y: 2
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
({ children: e, className:
|
|
32
|
+
}, W = $t(
|
|
33
|
+
ct(
|
|
34
|
+
({ children: e, className: o, scale: t = 1.02, off: n = !1 }, s) => {
|
|
35
35
|
const [i, a] = I(!1), [c, l] = I({ x: 0, y: 0 });
|
|
36
36
|
if (n || /translate/.test(
|
|
37
37
|
e.props.className || ""
|
|
38
38
|
)) return e;
|
|
39
|
-
const
|
|
39
|
+
const x = (f) => {
|
|
40
40
|
var C, z;
|
|
41
|
-
const { clientX: N, clientY: T } = f, _ = f.currentTarget.getBoundingClientRect(), M = N - (_.left + _.width / 2), A = T - (_.top + _.height / 2),
|
|
41
|
+
const { clientX: N, clientY: T } = f, _ = f.currentTarget.getBoundingClientRect(), M = N - (_.left + _.width / 2), A = T - (_.top + _.height / 2), F = Math.max(
|
|
42
42
|
-1,
|
|
43
43
|
Math.min(1, M / (_.width / 2))
|
|
44
|
-
),
|
|
44
|
+
), H = Math.max(
|
|
45
45
|
-1,
|
|
46
46
|
Math.min(1, A / (_.height / 2))
|
|
47
|
-
),
|
|
48
|
-
l({ x:
|
|
49
|
-
},
|
|
47
|
+
), j = F * V.x, v = H * V.y;
|
|
48
|
+
l({ x: j, y: v }), (z = (C = e.props).onMouseMove) == null || z.call(C, f);
|
|
49
|
+
}, u = () => {
|
|
50
50
|
var f, N;
|
|
51
51
|
a(!0), (N = (f = e.props).onMouseEnter) == null || N.call(f);
|
|
52
52
|
}, m = () => {
|
|
@@ -57,10 +57,10 @@ const X = {
|
|
|
57
57
|
"--wobble-y": i ? `${c.y}px` : "0px",
|
|
58
58
|
"--scale": 1 - (t - 1)
|
|
59
59
|
};
|
|
60
|
-
return
|
|
60
|
+
return dt(e, {
|
|
61
61
|
ref: s,
|
|
62
|
-
onMouseMove:
|
|
63
|
-
onMouseEnter:
|
|
62
|
+
onMouseMove: x,
|
|
63
|
+
onMouseEnter: u,
|
|
64
64
|
onMouseLeave: m,
|
|
65
65
|
style: {
|
|
66
66
|
...k,
|
|
@@ -70,7 +70,7 @@ const X = {
|
|
|
70
70
|
"translate-x-[var(--wobble-x)]",
|
|
71
71
|
"translate-y-[var(--wobble-y)]",
|
|
72
72
|
"hover:scale-[var(--scale)] active:hover:scale-[calc(var(--scale)-0.02)]",
|
|
73
|
-
|
|
73
|
+
o,
|
|
74
74
|
e.props.className,
|
|
75
75
|
"transition-all ease-out"
|
|
76
76
|
)
|
|
@@ -78,44 +78,44 @@ const X = {
|
|
|
78
78
|
}
|
|
79
79
|
)
|
|
80
80
|
);
|
|
81
|
-
|
|
82
|
-
const
|
|
83
|
-
initial: { opacity: 0, x: -e, ...
|
|
84
|
-
animate: { opacity: 1, x: 0, ...
|
|
85
|
-
exit: { opacity: 0, x: e, ...
|
|
86
|
-
}),
|
|
87
|
-
initial: { opacity: 0, x: e, ...
|
|
88
|
-
animate: { opacity: 1, x: 0, ...
|
|
89
|
-
exit: { opacity: 0, x: -e, ...
|
|
90
|
-
}),
|
|
91
|
-
initial: { opacity: 0, y: e, ...
|
|
92
|
-
animate: { opacity: 1, y: 0, ...
|
|
93
|
-
exit: { opacity: 0, y: -e, ...
|
|
94
|
-
}),
|
|
95
|
-
initial: { opacity: 0, y: -e, ...
|
|
96
|
-
animate: { opacity: 1, y: 0, ...
|
|
97
|
-
exit: { opacity: 0, y: e, ...
|
|
98
|
-
}),
|
|
99
|
-
right:
|
|
100
|
-
left:
|
|
101
|
-
up:
|
|
102
|
-
down:
|
|
103
|
-
},
|
|
81
|
+
W.displayName = "Wobble";
|
|
82
|
+
const Rr = 10, jr = (e, o, t) => ({
|
|
83
|
+
initial: { opacity: 0, x: -e, ...o.initial },
|
|
84
|
+
animate: { opacity: 1, x: 0, ...o.animate, transition: { delay: t } },
|
|
85
|
+
exit: { opacity: 0, x: e, ...o.exit }
|
|
86
|
+
}), Er = (e, o, t) => ({
|
|
87
|
+
initial: { opacity: 0, x: e, ...o.initial },
|
|
88
|
+
animate: { opacity: 1, x: 0, ...o.animate, transition: { delay: t } },
|
|
89
|
+
exit: { opacity: 0, x: -e, ...o.exit }
|
|
90
|
+
}), Or = (e, o, t) => ({
|
|
91
|
+
initial: { opacity: 0, y: e, ...o.initial },
|
|
92
|
+
animate: { opacity: 1, y: 0, ...o.animate, transition: { delay: t } },
|
|
93
|
+
exit: { opacity: 0, y: -e, ...o.exit }
|
|
94
|
+
}), Pr = (e, o, t) => ({
|
|
95
|
+
initial: { opacity: 0, y: -e, ...o.initial },
|
|
96
|
+
animate: { opacity: 1, y: 0, ...o.animate, transition: { delay: t } },
|
|
97
|
+
exit: { opacity: 0, y: e, ...o.exit }
|
|
98
|
+
}), Ar = {
|
|
99
|
+
right: jr,
|
|
100
|
+
left: Er,
|
|
101
|
+
up: Or,
|
|
102
|
+
down: Pr
|
|
103
|
+
}, w = ct(
|
|
104
104
|
({
|
|
105
105
|
fadeIn: e = "down",
|
|
106
|
-
distance:
|
|
106
|
+
distance: o = Rr,
|
|
107
107
|
children: t,
|
|
108
108
|
snapExit: n = !1,
|
|
109
109
|
overrides: s = {},
|
|
110
110
|
delay: i = 0,
|
|
111
111
|
...a
|
|
112
112
|
}, c) => {
|
|
113
|
-
const l = e ?
|
|
114
|
-
return n && l.exit && typeof l.exit == "object" && !Array.isArray(l.exit) && (l.exit.transition = { duration: 0 }), /* @__PURE__ */
|
|
113
|
+
const l = e ? Ar[e](o, s, i) : {};
|
|
114
|
+
return n && l.exit && typeof l.exit == "object" && !Array.isArray(l.exit) && (l.exit.transition = { duration: 0 }), /* @__PURE__ */ r(Z.div, { ref: c, ...a, ...l, children: t });
|
|
115
115
|
}
|
|
116
116
|
);
|
|
117
|
-
|
|
118
|
-
const
|
|
117
|
+
w.displayName = "MotionDiv";
|
|
118
|
+
const Fr = Qt(
|
|
119
119
|
p(
|
|
120
120
|
"inline-flex shrink-0 items-center justify-center gap-2",
|
|
121
121
|
"text-sm font-medium whitespace-nowrap",
|
|
@@ -155,20 +155,20 @@ const Po = Zt(
|
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
), y = G.forwardRef(
|
|
158
|
-
({ className: e, variant:
|
|
158
|
+
({ className: e, variant: o = "default", size: t, asChild: n = !1, ...s }, i) => /* @__PURE__ */ r(W, { ref: i, children: /* @__PURE__ */ r(
|
|
159
159
|
n ? Kt : "button",
|
|
160
160
|
{
|
|
161
|
-
...
|
|
162
|
-
"data-variant":
|
|
163
|
-
className: p(
|
|
161
|
+
...g("ui_lib/btn"),
|
|
162
|
+
"data-variant": o,
|
|
163
|
+
className: p(Fr({ variant: o, size: t, className: e })),
|
|
164
164
|
...s
|
|
165
165
|
}
|
|
166
166
|
) })
|
|
167
167
|
);
|
|
168
168
|
y.displayName = "Button";
|
|
169
|
-
const
|
|
170
|
-
function
|
|
171
|
-
const [
|
|
169
|
+
const bt = Bt(null);
|
|
170
|
+
function Hr({ children: e }) {
|
|
171
|
+
const [o, t] = I(!1), [n, s] = I(null), i = (c) => {
|
|
172
172
|
s(c), t(!0);
|
|
173
173
|
}, a = () => {
|
|
174
174
|
t(!1), setTimeout(() => {
|
|
@@ -176,18 +176,18 @@ function Wo({ children: e }) {
|
|
|
176
176
|
}, 200);
|
|
177
177
|
};
|
|
178
178
|
return /* @__PURE__ */ d(
|
|
179
|
-
|
|
179
|
+
bt.Provider,
|
|
180
180
|
{
|
|
181
|
-
value: { open: i, close: a, isOpen:
|
|
181
|
+
value: { open: i, close: a, isOpen: o, content: n },
|
|
182
182
|
children: [
|
|
183
|
-
/* @__PURE__ */
|
|
183
|
+
/* @__PURE__ */ r(Wr, {}),
|
|
184
184
|
e
|
|
185
185
|
]
|
|
186
186
|
}
|
|
187
187
|
);
|
|
188
188
|
}
|
|
189
189
|
function ce() {
|
|
190
|
-
const e =
|
|
190
|
+
const e = Lt(bt);
|
|
191
191
|
return e || (console.error("useDialoger must be used within a DialogerProvider"), {
|
|
192
192
|
open: () => {
|
|
193
193
|
},
|
|
@@ -197,9 +197,9 @@ function ce() {
|
|
|
197
197
|
content: null
|
|
198
198
|
});
|
|
199
199
|
}
|
|
200
|
-
function
|
|
201
|
-
const { contentIframeRef: e } =
|
|
202
|
-
return
|
|
200
|
+
function Wr() {
|
|
201
|
+
const { contentIframeRef: e } = R(), { isOpen: o, content: t, close: n } = ce();
|
|
202
|
+
return re(() => {
|
|
203
203
|
var i, a;
|
|
204
204
|
const s = (c) => {
|
|
205
205
|
c.key === "Escape" && n();
|
|
@@ -214,8 +214,8 @@ function Ho() {
|
|
|
214
214
|
s
|
|
215
215
|
);
|
|
216
216
|
};
|
|
217
|
-
}, []), /* @__PURE__ */
|
|
218
|
-
|
|
217
|
+
}, []), /* @__PURE__ */ r(S, { mode: "wait", children: o && t && /* @__PURE__ */ r(
|
|
218
|
+
w,
|
|
219
219
|
{
|
|
220
220
|
overrides: {
|
|
221
221
|
initial: { y: 0 },
|
|
@@ -229,9 +229,9 @@ function Ho() {
|
|
|
229
229
|
"dialog-content"
|
|
230
230
|
) });
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function yt({
|
|
233
233
|
children: e,
|
|
234
|
-
className:
|
|
234
|
+
className: o,
|
|
235
235
|
withClose: t = !1
|
|
236
236
|
}) {
|
|
237
237
|
const { close: n } = ce();
|
|
@@ -240,7 +240,7 @@ function bt({
|
|
|
240
240
|
{
|
|
241
241
|
className: p(
|
|
242
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
|
-
|
|
243
|
+
o
|
|
244
244
|
),
|
|
245
245
|
onClick: (s) => s.stopPropagation(),
|
|
246
246
|
children: [
|
|
@@ -253,8 +253,8 @@ function bt({
|
|
|
253
253
|
variant: "secondary",
|
|
254
254
|
onClick: n,
|
|
255
255
|
children: [
|
|
256
|
-
/* @__PURE__ */
|
|
257
|
-
/* @__PURE__ */
|
|
256
|
+
/* @__PURE__ */ r(Zt, { className: "h-4 w-4" }),
|
|
257
|
+
/* @__PURE__ */ r("span", { className: "sr-only", children: "Close" })
|
|
258
258
|
]
|
|
259
259
|
}
|
|
260
260
|
)
|
|
@@ -262,34 +262,34 @@ function bt({
|
|
|
262
262
|
}
|
|
263
263
|
);
|
|
264
264
|
}
|
|
265
|
-
const
|
|
265
|
+
const kt = ({
|
|
266
266
|
className: e,
|
|
267
|
-
...
|
|
268
|
-
}) => /* @__PURE__ */
|
|
267
|
+
...o
|
|
268
|
+
}) => /* @__PURE__ */ r(
|
|
269
269
|
"div",
|
|
270
270
|
{
|
|
271
271
|
className: p("flex flex-col gap-2 text-center pt-2", e),
|
|
272
|
-
...
|
|
272
|
+
...o
|
|
273
273
|
}
|
|
274
274
|
);
|
|
275
|
-
|
|
276
|
-
const
|
|
275
|
+
kt.displayName = "DialogerHeader";
|
|
276
|
+
const Ct = ({
|
|
277
277
|
className: e,
|
|
278
|
-
...
|
|
279
|
-
}) => /* @__PURE__ */
|
|
278
|
+
...o
|
|
279
|
+
}) => /* @__PURE__ */ r(
|
|
280
280
|
"div",
|
|
281
281
|
{
|
|
282
282
|
className: p("flex flex-col gap-2 text-center", e),
|
|
283
|
-
...
|
|
283
|
+
...o
|
|
284
284
|
}
|
|
285
285
|
);
|
|
286
|
-
|
|
287
|
-
const
|
|
286
|
+
Ct.displayName = "DialogerBody";
|
|
287
|
+
const zt = ({
|
|
288
288
|
className: e,
|
|
289
|
-
...
|
|
290
|
-
}) => /* @__PURE__ */
|
|
291
|
-
|
|
292
|
-
const
|
|
289
|
+
...o
|
|
290
|
+
}) => /* @__PURE__ */ r("div", { className: p("flex flex-col gap-2", e), ...o });
|
|
291
|
+
zt.displayName = "DialogerFooter";
|
|
292
|
+
const Nt = q.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
293
293
|
"p",
|
|
294
294
|
{
|
|
295
295
|
ref: t,
|
|
@@ -297,38 +297,38 @@ const Ct = $.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ o(
|
|
|
297
297
|
"text-lg font-semibold leading-none tracking-tight",
|
|
298
298
|
e
|
|
299
299
|
),
|
|
300
|
-
...
|
|
300
|
+
...o
|
|
301
301
|
}
|
|
302
302
|
));
|
|
303
|
-
|
|
304
|
-
const
|
|
303
|
+
Nt.displayName = "DialogerTitle";
|
|
304
|
+
const St = q.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
305
305
|
"p",
|
|
306
306
|
{
|
|
307
307
|
ref: t,
|
|
308
308
|
className: p("text-sm text-muted-foreground", e),
|
|
309
|
-
...
|
|
309
|
+
...o
|
|
310
310
|
}
|
|
311
311
|
));
|
|
312
|
-
|
|
313
|
-
function
|
|
312
|
+
St.displayName = "DialogerDescription";
|
|
313
|
+
function _t({
|
|
314
314
|
children: e,
|
|
315
|
-
trigger:
|
|
315
|
+
trigger: o
|
|
316
316
|
}) {
|
|
317
317
|
const { open: t } = ce();
|
|
318
|
-
return
|
|
318
|
+
return dt(o, {
|
|
319
319
|
onClick: () => t(e)
|
|
320
320
|
});
|
|
321
321
|
}
|
|
322
|
-
function
|
|
323
|
-
const { name:
|
|
324
|
-
return c ? /* @__PURE__ */
|
|
325
|
-
/* @__PURE__ */
|
|
322
|
+
function It({ attachment: e }) {
|
|
323
|
+
const { name: o, size: t, type: n, url: s } = e, i = n.startsWith("image/"), a = n.startsWith("video/"), c = n.startsWith("audio/");
|
|
324
|
+
return c ? /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r("div", { className: "w-full shrink-0 overflow-hidden", children: /* @__PURE__ */ d("audio", { controls: !0, className: "w-full", children: [
|
|
325
|
+
/* @__PURE__ */ r("source", { src: s, type: n }),
|
|
326
326
|
"Your browser does not support the audio tag."
|
|
327
|
-
] }) }) }) : a ? /* @__PURE__ */
|
|
328
|
-
/* @__PURE__ */
|
|
327
|
+
] }) }) }) : a ? /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r("div", { className: "w-full border shrink-0 rounded-2xl overflow-hidden", children: /* @__PURE__ */ d("video", { controls: !0, children: [
|
|
328
|
+
/* @__PURE__ */ r("source", { src: s, type: n }),
|
|
329
329
|
"Your browser does not support the video tag."
|
|
330
|
-
] }) }) }) : !i && !a && !c ? /* @__PURE__ */
|
|
331
|
-
/* @__PURE__ */
|
|
330
|
+
] }) }) }) : !i && !a && !c ? /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r("div", { className: "size-fit border shrink-0 rounded-2xl overflow-hidden", children: /* @__PURE__ */ d("div", { className: "flex items-end gap-2 p-2", children: [
|
|
331
|
+
/* @__PURE__ */ r(
|
|
332
332
|
"a",
|
|
333
333
|
{
|
|
334
334
|
href: s,
|
|
@@ -339,47 +339,47 @@ function St({ attachment: e }) {
|
|
|
339
339
|
"break-words [word-break:break-word]"
|
|
340
340
|
// `[word-break:break-word]` is deprecated but works in the browser, while `break-words` which is `[overflow-wrap: break-word]` does not work
|
|
341
341
|
),
|
|
342
|
-
children:
|
|
342
|
+
children: o
|
|
343
343
|
}
|
|
344
344
|
),
|
|
345
345
|
/* @__PURE__ */ d("span", { className: "text-xs text-muted-foreground whitespace-nowrap", children: [
|
|
346
346
|
(t / 1024).toFixed(2),
|
|
347
347
|
" KB"
|
|
348
348
|
] })
|
|
349
|
-
] }) }) }) : /* @__PURE__ */
|
|
350
|
-
|
|
349
|
+
] }) }) }) : /* @__PURE__ */ r(
|
|
350
|
+
_t,
|
|
351
351
|
{
|
|
352
|
-
trigger: /* @__PURE__ */
|
|
353
|
-
children: /* @__PURE__ */
|
|
354
|
-
|
|
352
|
+
trigger: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r("div", { className: "size-fit border shrink-0 rounded-2xl overflow-hidden", children: i && /* @__PURE__ */ r("img", { src: s, className: "object-cover size-16", alt: o }) }) }) }),
|
|
353
|
+
children: /* @__PURE__ */ r(
|
|
354
|
+
yt,
|
|
355
355
|
{
|
|
356
356
|
className: "size-full max-w-full rounded-3xl flex items-center justify-center bg-transparent border-none gap-0",
|
|
357
357
|
withClose: !0,
|
|
358
|
-
children: i && /* @__PURE__ */
|
|
358
|
+
children: i && /* @__PURE__ */ r("div", { className: "size-fit shrink-0 rounded-2xl overflow-hidden max-h-full", children: /* @__PURE__ */ r("img", { src: s, className: "object-cover size-auto", alt: o }) })
|
|
359
359
|
}
|
|
360
360
|
)
|
|
361
361
|
}
|
|
362
362
|
);
|
|
363
363
|
}
|
|
364
|
-
const
|
|
365
|
-
|
|
366
|
-
(e,
|
|
364
|
+
const Tt = q.memo(
|
|
365
|
+
_r,
|
|
366
|
+
(e, o) => e.children === o.children && e.className === o.className
|
|
367
367
|
);
|
|
368
|
-
function
|
|
368
|
+
function ve({
|
|
369
369
|
children: e,
|
|
370
|
-
messageType:
|
|
370
|
+
messageType: o,
|
|
371
371
|
messageId: t
|
|
372
372
|
}) {
|
|
373
|
-
const { anchorTarget: n } =
|
|
374
|
-
return /* @__PURE__ */
|
|
375
|
-
|
|
373
|
+
const { anchorTarget: n } = b();
|
|
374
|
+
return /* @__PURE__ */ r(
|
|
375
|
+
Tt,
|
|
376
376
|
{
|
|
377
|
-
"data-type":
|
|
377
|
+
"data-type": o,
|
|
378
378
|
"data-id": t,
|
|
379
|
-
remarkPlugins: [
|
|
380
|
-
rehypePlugins: [
|
|
379
|
+
remarkPlugins: [ft],
|
|
380
|
+
rehypePlugins: [vt],
|
|
381
381
|
components: {
|
|
382
|
-
a: ({ children: s, ...i }) => /* @__PURE__ */
|
|
382
|
+
a: ({ children: s, ...i }) => /* @__PURE__ */ r("a", { target: i.target || n || "_top", ...i, children: s })
|
|
383
383
|
},
|
|
384
384
|
children: e
|
|
385
385
|
}
|
|
@@ -387,7 +387,7 @@ function It({
|
|
|
387
387
|
}
|
|
388
388
|
function he({
|
|
389
389
|
data: e,
|
|
390
|
-
id:
|
|
390
|
+
id: o,
|
|
391
391
|
type: t,
|
|
392
392
|
attachments: n,
|
|
393
393
|
isFirstInGroup: s,
|
|
@@ -397,21 +397,21 @@ function he({
|
|
|
397
397
|
classNames: l
|
|
398
398
|
}) {
|
|
399
399
|
if (t !== "AI" && t !== "AGENT") return null;
|
|
400
|
-
const { message: h, variant:
|
|
401
|
-
return
|
|
400
|
+
const { message: h, variant: x = "default" } = e;
|
|
401
|
+
return x === "error" ? /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r("div", { className: "flex flex-row flex-wrap items-center justify-start", children: /* @__PURE__ */ r("div", { className: "leading-snug text-sm text-destructive", children: h }) }) }) : /* @__PURE__ */ d(
|
|
402
402
|
"div",
|
|
403
403
|
{
|
|
404
|
-
...
|
|
404
|
+
...g((c == null ? void 0 : c.messageContainer) ?? "chat/agent_msg/root"),
|
|
405
405
|
className: p(
|
|
406
406
|
"w-5/6 flex flex-col items-start gap-1",
|
|
407
407
|
l == null ? void 0 : l.messageContainer
|
|
408
408
|
),
|
|
409
409
|
children: [
|
|
410
|
-
n && n.length > 0 && /* @__PURE__ */
|
|
411
|
-
h.length > 0 && /* @__PURE__ */
|
|
410
|
+
n && n.length > 0 && /* @__PURE__ */ r("div", { className: "w-full gap-1 flex flex-row flex-wrap items-center justify-start", children: n == null ? void 0 : n.map((u) => /* @__PURE__ */ r(It, { attachment: u }, u.id)) }),
|
|
411
|
+
h.length > 0 && /* @__PURE__ */ r(
|
|
412
412
|
"div",
|
|
413
413
|
{
|
|
414
|
-
...
|
|
414
|
+
...g((c == null ? void 0 : c.message) ?? "chat/agent_msg/msg"),
|
|
415
415
|
"data-first": s,
|
|
416
416
|
"data-last": i,
|
|
417
417
|
"data-alone": a,
|
|
@@ -429,18 +429,18 @@ function he({
|
|
|
429
429
|
!s && !i && !a && "rounded-l-md",
|
|
430
430
|
l == null ? void 0 : l.message
|
|
431
431
|
),
|
|
432
|
-
children: /* @__PURE__ */
|
|
432
|
+
children: /* @__PURE__ */ r(ve, { messageType: t, messageId: o, children: h })
|
|
433
433
|
}
|
|
434
434
|
)
|
|
435
435
|
]
|
|
436
436
|
}
|
|
437
437
|
);
|
|
438
438
|
}
|
|
439
|
-
function
|
|
440
|
-
return /* @__PURE__ */
|
|
439
|
+
function $r(e) {
|
|
440
|
+
return /* @__PURE__ */ r("div", { className: "w-full max-w-full overflow-auto shrink-0", children: /* @__PURE__ */ r("pre", { className: "text-xs leading-tight whitespace-pre-wrap break-word", children: JSON.stringify(e, null, 1) }) });
|
|
441
441
|
}
|
|
442
|
-
const
|
|
443
|
-
|
|
442
|
+
const xe = G.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
443
|
+
Q.Root,
|
|
444
444
|
{
|
|
445
445
|
ref: t,
|
|
446
446
|
className: p(
|
|
@@ -448,61 +448,61 @@ const ve = G.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ o(
|
|
|
448
448
|
// 'border',
|
|
449
449
|
e
|
|
450
450
|
),
|
|
451
|
-
...
|
|
451
|
+
...o
|
|
452
452
|
}
|
|
453
453
|
));
|
|
454
|
-
|
|
455
|
-
const be = G.forwardRef(({ className: e, ...
|
|
456
|
-
|
|
454
|
+
xe.displayName = Q.Root.displayName;
|
|
455
|
+
const be = G.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
456
|
+
Q.Image,
|
|
457
457
|
{
|
|
458
458
|
ref: t,
|
|
459
459
|
className: p("aspect-square h-full w-full", e),
|
|
460
|
-
...
|
|
460
|
+
...o
|
|
461
461
|
}
|
|
462
462
|
));
|
|
463
|
-
be.displayName =
|
|
464
|
-
const
|
|
465
|
-
|
|
463
|
+
be.displayName = Q.Image.displayName;
|
|
464
|
+
const ye = G.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
465
|
+
Q.Fallback,
|
|
466
466
|
{
|
|
467
467
|
ref: t,
|
|
468
468
|
className: p(
|
|
469
469
|
"flex size-full text-xs items-center justify-center rounded-lg",
|
|
470
470
|
e
|
|
471
471
|
),
|
|
472
|
-
...
|
|
472
|
+
...o
|
|
473
473
|
}
|
|
474
474
|
));
|
|
475
|
-
|
|
475
|
+
ye.displayName = Q.Fallback.displayName;
|
|
476
476
|
function me({
|
|
477
477
|
agent: e,
|
|
478
|
-
...
|
|
478
|
+
...o
|
|
479
479
|
}) {
|
|
480
480
|
var t, n;
|
|
481
|
-
return /* @__PURE__ */ d(
|
|
482
|
-
/* @__PURE__ */
|
|
483
|
-
(e == null ? void 0 : e.name) && /* @__PURE__ */
|
|
481
|
+
return /* @__PURE__ */ d(xe, { ...o, children: [
|
|
482
|
+
/* @__PURE__ */ r(be, { src: (e == null ? void 0 : e.avatar) ?? "", alt: "Agent Icon" }),
|
|
483
|
+
(e == null ? void 0 : e.name) && /* @__PURE__ */ r(ye, { children: (n = (t = e == null ? void 0 : e.name) == null ? void 0 : t.slice(0, 1)) == null ? void 0 : n.toUpperCase() })
|
|
484
484
|
] });
|
|
485
485
|
}
|
|
486
|
-
function
|
|
487
|
-
return /* @__PURE__ */
|
|
488
|
-
|
|
486
|
+
function Br({ agent: e }) {
|
|
487
|
+
return /* @__PURE__ */ r(S, { children: /* @__PURE__ */ d(
|
|
488
|
+
w,
|
|
489
489
|
{
|
|
490
|
-
...
|
|
490
|
+
...g("chat/bot_loading/root"),
|
|
491
491
|
className: "flex flex-row items-end w-full gap-2 animate-pulse",
|
|
492
492
|
children: [
|
|
493
|
-
/* @__PURE__ */
|
|
493
|
+
/* @__PURE__ */ r(me, { agent: e }),
|
|
494
494
|
/* @__PURE__ */ d(
|
|
495
495
|
"div",
|
|
496
496
|
{
|
|
497
|
-
...
|
|
497
|
+
...g("chat/bot_loading/bouncing_dots_container"),
|
|
498
498
|
className: p(
|
|
499
499
|
"flex items-center [&_span]:bg-secondary-foreground [&_span]:size-1 gap-1 p-2 rounded-xl bg-secondary"
|
|
500
500
|
// 'border',
|
|
501
501
|
),
|
|
502
502
|
children: [
|
|
503
|
-
/* @__PURE__ */
|
|
504
|
-
/* @__PURE__ */
|
|
505
|
-
/* @__PURE__ */
|
|
503
|
+
/* @__PURE__ */ r(Z.span, { className: "rounded-full animate-bounce [animation-delay:-0.3s]" }),
|
|
504
|
+
/* @__PURE__ */ r(Z.span, { className: "rounded-full animate-bounce [animation-delay:-0.15s]" }),
|
|
505
|
+
/* @__PURE__ */ r(Z.span, { className: "rounded-full animate-bounce" })
|
|
506
506
|
]
|
|
507
507
|
}
|
|
508
508
|
)
|
|
@@ -510,11 +510,11 @@ function Bo({ agent: e }) {
|
|
|
510
510
|
}
|
|
511
511
|
) });
|
|
512
512
|
}
|
|
513
|
-
const Tt = '@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..700;1,14..32,100..700&display=swap";@import"https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*{-ms-overflow-style:none;scrollbar-width:none}*::-webkit-scrollbar{display:none}*{border-color:hsl(var(--opencx-border))}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%),0 3px rgb(var(--tw-prose-kbd-shadows) / 10%);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-kbd: #111827;--tw-prose-kbd-shadows: 17 24 39;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.end-6{inset-inline-end:1.5rem}.left-2{left:.5rem}.left-\\[50\\%\\]{left:50%}.right-4{right:1rem}.top-4{top:1rem}.top-6{top:1.5rem}.top-\\[50\\%\\]{top:50%}.isolate{isolation:isolate}.z-10{z-index:10}.z-50{z-index:50}.m-2{margin:.5rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ms-auto{margin-inline-start:auto}.mt-0\\.5{margin-top:.125rem}.mt-auto{margin-top:auto}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.size-0{width:0px;height:0px}.size-10{width:2.5rem;height:2.5rem}.size-12{width:3rem;height:3rem}.size-16{width:4rem;height:4rem}.size-3{width:.75rem;height:.75rem}.size-4{width:1rem;height:1rem}.size-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.size-auto{width:auto;height:auto}.size-fit{width:fit-content;height:fit-content}.size-full{width:100%;height:100%}.h-0{height:0px}.h-10{height:2.5rem}.h-2{height:.5rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-full{height:100%}.h-px{height:1px}.max-h-16{max-height:4rem}.max-h-40{max-height:10rem}.max-h-full{max-height:100%}.min-h-12{min-height:3rem}.w-0{width:0px}.w-1\\/2{width:50%}.w-10{width:2.5rem}.w-2{width:.5rem}.w-2\\/5{width:40%}.w-3\\.5{width:.875rem}.w-3\\/5{width:60%}.w-4{width:1rem}.w-5\\/6{width:83.333333%}.w-60{width:15rem}.w-9{width:2.25rem}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.min-w-80{min-width:20rem}.min-w-\\[8rem\\]{min-width:8rem}.max-w-96{max-width:24rem}.max-w-\\[61\\.8\\%\\]{max-width:61.8%}.max-w-full{max-width:100%}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.translate-x-\\[-50\\%\\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[var\\(--wobble-x\\)\\]{--tw-translate-x: var(--wobble-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[-50\\%\\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[var\\(--wobble-y\\)\\]{--tw-translate-y: var(--wobble-y);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-\\[1px\\]{gap:1px}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.scroll-smooth{scroll-behavior:smooth}.text-ellipsis{text-overflow:ellipsis}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-\\[20px\\]{border-radius:20px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-l-md{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.rounded-r-md{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-bl-md{border-bottom-left-radius:.375rem}.rounded-br-md{border-bottom-right-radius:.375rem}.rounded-tl-md{border-top-left-radius:.375rem}.rounded-tr-md{border-top-right-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-none{border-style:none}.border-transparent{border-color:transparent}.bg-\\[white\\]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-background{background-color:hsl(var(--opencx-background))}.bg-black\\/50{background-color:#00000080}.bg-black\\/60{background-color:#0009}.bg-destructive{background-color:hsl(var(--opencx-destructive))}.bg-muted{background-color:hsl(var(--opencx-muted))}.bg-primary{background-color:hsl(var(--opencx-primary))}.bg-secondary{background-color:hsl(var(--opencx-secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-\\[radial-gradient\\(ellipse_at_top_left\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\,radial-gradient\\(ellipse_at_top_right\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\]{background-image:radial-gradient(ellipse at top left,hsl(var(--opencx-primary)),transparent),radial-gradient(ellipse at top right,hsl(var(--opencx-primary)),transparent)}.fill-current{fill:currentColor}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-0{padding-bottom:0}.pb-2{padding-bottom:.5rem}.pe-2{padding-inline-end:.5rem}.pe-4{padding-inline-end:1rem}.ps-2{padding-inline-start:.5rem}.ps-4{padding-inline-start:1rem}.ps-8{padding-inline-start:2rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.text-center{text-align:center}.text-start{text-align:start}.align-middle{vertical-align:middle}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-\\[1\\.75rem\\]{font-size:1.75rem}.text-\\[10px\\]{font-size:10px}.text-\\[16px\\]{font-size:16px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-none{line-height:1}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-destructive{color:hsl(var(--opencx-destructive))}.text-destructive-foreground{color:hsl(var(--opencx-destructive-foreground))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}.text-foreground{color:hsl(var(--opencx-foreground))}.text-muted-foreground{color:hsl(var(--opencx-muted-foreground))}.text-muted-foreground\\/70{color:hsl(var(--opencx-muted-foreground) / .7)}.text-muted-foreground\\/75{color:hsl(var(--opencx-muted-foreground) / .75)}.text-primary{color:hsl(var(--opencx-primary))}.text-primary-foreground{color:hsl(var(--opencx-primary-foreground))}.text-secondary-foreground{color:hsl(var(--opencx-secondary-foreground))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-35{opacity:.35}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-95{opacity:.95}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-8{outline-width:8px}.outline-background{outline-color:hsl(var(--opencx-background))}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-offset-background{--tw-ring-offset-color: hsl(var(--opencx-background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[height\\]{transition-property:height;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.\\[animation-delay\\:-0\\.15s\\]{animation-delay:-.15s}.\\[animation-delay\\:-0\\.3s\\]{animation-delay:-.3s}.\\[field-sizing\\:content\\;\\],.\\[field-sizing\\:content\\]{field-sizing:content}.\\[word-break\\:break-word\\]{word-break:break-word}.required:after{content:" *";color:red}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.file\\:text-primary-foreground::file-selector-button{color:hsl(var(--opencx-primary-foreground))}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--opencx-muted-foreground))}.placeholder\\:text-muted-foreground\\/75::placeholder{color:hsl(var(--opencx-muted-foreground) / .75)}.focus-within\\:border-primary:focus-within{border-color:hsl(var(--opencx-primary))}.hover\\:scale-\\[var\\(--scale\\)\\]:hover{--tw-scale-x: var(--scale);--tw-scale-y: var(--scale);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:border-primary:hover{border-color:hsl(var(--opencx-primary))}.hover\\:bg-secondary:hover{background-color:hsl(var(--opencx-secondary))}.hover\\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.hover\\:text-primary:hover{color:hsl(var(--opencx-primary))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.focus\\:bg-accent:focus{background-color:hsl(var(--opencx-accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--opencx-accent-foreground))}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--opencx-ring))}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--opencx-background))}.active\\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\\:hover\\:scale-\\[calc\\(var\\(--scale\\)-0\\.02\\)\\]:hover:active{--tw-scale-x: calc(var(--scale) - .02);--tw-scale-y: calc(var(--scale) - .02);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:active\\:scale-95:active:hover{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\\:opacity-100{opacity:1}.group:hover .group-hover\\:active\\:scale-90:active,.group:active .group-active\\:scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[state\\=checked\\]\\:translate-x-4[data-state=checked]{--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:hsl(var(--opencx-primary))}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--opencx-accent))}.data-\\[state\\=unchecked\\]\\:bg-input[data-state=unchecked]{background-color:hsl(var(--opencx-input))}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.prose-a\\:underline :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-line:underline}.prose-a\\:decoration-primary :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-color:hsl(var(--opencx-primary))}.rtl\\:-scale-100:where([dir=rtl],[dir=rtl] *){--tw-scale-x: -1;--tw-scale-y: -1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\\[\\&_span\\]\\:size-1 span{width:.25rem;height:.25rem}.\\[\\&_span\\]\\:bg-secondary-foreground span{background-color:hsl(var(--opencx-secondary-foreground))}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:size-4 svg{width:1rem;height:1rem}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_svg\\]\\:text-muted-foreground\\/70 svg{color:hsl(var(--opencx-muted-foreground) / .7)}.\\[\\&_svg\\]\\:hover\\:text-primary:hover svg{color:hsl(var(--opencx-primary))}', Lo = re.Provider, Yo = re.Root, $o = re.Trigger, Mt = G.forwardRef(({ className: e, sideOffset: r = 4, ...t }, n) => /* @__PURE__ */ o(
|
|
514
|
-
|
|
513
|
+
const Mt = '@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..700;1,14..32,100..700&display=swap";@import"https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*{-ms-overflow-style:none;scrollbar-width:none}*::-webkit-scrollbar{display:none}*{border-color:hsl(var(--opencx-border))}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%),0 3px rgb(var(--tw-prose-kbd-shadows) / 10%);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-kbd: #111827;--tw-prose-kbd-shadows: 17 24 39;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.end-6{inset-inline-end:1.5rem}.left-2{left:.5rem}.left-\\[50\\%\\]{left:50%}.right-4{right:1rem}.top-4{top:1rem}.top-6{top:1.5rem}.top-\\[50\\%\\]{top:50%}.isolate{isolation:isolate}.z-10{z-index:10}.z-50{z-index:50}.m-2{margin:.5rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ms-auto{margin-inline-start:auto}.mt-0\\.5{margin-top:.125rem}.mt-auto{margin-top:auto}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.size-0{width:0px;height:0px}.size-10{width:2.5rem;height:2.5rem}.size-12{width:3rem;height:3rem}.size-16{width:4rem;height:4rem}.size-3{width:.75rem;height:.75rem}.size-4{width:1rem;height:1rem}.size-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.size-auto{width:auto;height:auto}.size-fit{width:fit-content;height:fit-content}.size-full{width:100%;height:100%}.h-0{height:0px}.h-10{height:2.5rem}.h-2{height:.5rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-full{height:100%}.h-px{height:1px}.max-h-16{max-height:4rem}.max-h-40{max-height:10rem}.max-h-full{max-height:100%}.min-h-12{min-height:3rem}.w-0{width:0px}.w-1\\/2{width:50%}.w-10{width:2.5rem}.w-2{width:.5rem}.w-2\\/5{width:40%}.w-3\\.5{width:.875rem}.w-3\\/5{width:60%}.w-4{width:1rem}.w-5\\/6{width:83.333333%}.w-60{width:15rem}.w-9{width:2.25rem}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.min-w-80{min-width:20rem}.min-w-\\[8rem\\]{min-width:8rem}.max-w-96{max-width:24rem}.max-w-\\[61\\.8\\%\\]{max-width:61.8%}.max-w-full{max-width:100%}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.translate-x-\\[-50\\%\\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[var\\(--wobble-x\\)\\]{--tw-translate-x: var(--wobble-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[-50\\%\\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[var\\(--wobble-y\\)\\]{--tw-translate-y: var(--wobble-y);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-\\[1px\\]{gap:1px}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.scroll-smooth{scroll-behavior:smooth}.text-ellipsis{text-overflow:ellipsis}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-\\[20px\\]{border-radius:20px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-l-md{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.rounded-r-md{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-bl-md{border-bottom-left-radius:.375rem}.rounded-br-md{border-bottom-right-radius:.375rem}.rounded-tl-md{border-top-left-radius:.375rem}.rounded-tr-md{border-top-right-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-none{border-style:none}.border-transparent{border-color:transparent}.bg-\\[white\\]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-background{background-color:hsl(var(--opencx-background))}.bg-black\\/50{background-color:#00000080}.bg-black\\/60{background-color:#0009}.bg-destructive{background-color:hsl(var(--opencx-destructive))}.bg-muted{background-color:hsl(var(--opencx-muted))}.bg-primary{background-color:hsl(var(--opencx-primary))}.bg-secondary{background-color:hsl(var(--opencx-secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-\\[radial-gradient\\(ellipse_at_top_left\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\,radial-gradient\\(ellipse_at_top_right\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\]{background-image:radial-gradient(ellipse at top left,hsl(var(--opencx-primary)),transparent),radial-gradient(ellipse at top right,hsl(var(--opencx-primary)),transparent)}.fill-current{fill:currentColor}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-0{padding-bottom:0}.pb-2{padding-bottom:.5rem}.pe-2{padding-inline-end:.5rem}.pe-4{padding-inline-end:1rem}.ps-2{padding-inline-start:.5rem}.ps-4{padding-inline-start:1rem}.ps-8{padding-inline-start:2rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.text-center{text-align:center}.text-start{text-align:start}.align-middle{vertical-align:middle}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-\\[1\\.75rem\\]{font-size:1.75rem}.text-\\[10px\\]{font-size:10px}.text-\\[16px\\]{font-size:16px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-none{line-height:1}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-destructive{color:hsl(var(--opencx-destructive))}.text-destructive-foreground{color:hsl(var(--opencx-destructive-foreground))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}.text-foreground{color:hsl(var(--opencx-foreground))}.text-muted-foreground{color:hsl(var(--opencx-muted-foreground))}.text-muted-foreground\\/70{color:hsl(var(--opencx-muted-foreground) / .7)}.text-muted-foreground\\/75{color:hsl(var(--opencx-muted-foreground) / .75)}.text-primary{color:hsl(var(--opencx-primary))}.text-primary-foreground{color:hsl(var(--opencx-primary-foreground))}.text-secondary-foreground{color:hsl(var(--opencx-secondary-foreground))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-35{opacity:.35}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-95{opacity:.95}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-8{outline-width:8px}.outline-background{outline-color:hsl(var(--opencx-background))}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-offset-background{--tw-ring-offset-color: hsl(var(--opencx-background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[height\\]{transition-property:height;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.\\[animation-delay\\:-0\\.15s\\]{animation-delay:-.15s}.\\[animation-delay\\:-0\\.3s\\]{animation-delay:-.3s}.\\[field-sizing\\:content\\;\\],.\\[field-sizing\\:content\\]{field-sizing:content}.\\[word-break\\:break-word\\]{word-break:break-word}.required:after{content:" *";color:red}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.file\\:text-primary-foreground::file-selector-button{color:hsl(var(--opencx-primary-foreground))}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--opencx-muted-foreground))}.placeholder\\:text-muted-foreground\\/75::placeholder{color:hsl(var(--opencx-muted-foreground) / .75)}.focus-within\\:border-primary:focus-within{border-color:hsl(var(--opencx-primary))}.hover\\:scale-\\[var\\(--scale\\)\\]:hover{--tw-scale-x: var(--scale);--tw-scale-y: var(--scale);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:border-primary:hover{border-color:hsl(var(--opencx-primary))}.hover\\:bg-secondary:hover{background-color:hsl(var(--opencx-secondary))}.hover\\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.hover\\:text-primary:hover{color:hsl(var(--opencx-primary))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.focus\\:bg-accent:focus{background-color:hsl(var(--opencx-accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--opencx-accent-foreground))}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--opencx-ring))}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--opencx-background))}.active\\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\\:hover\\:scale-\\[calc\\(var\\(--scale\\)-0\\.02\\)\\]:hover:active{--tw-scale-x: calc(var(--scale) - .02);--tw-scale-y: calc(var(--scale) - .02);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:active\\:scale-95:active:hover{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\\:opacity-100{opacity:1}.group:hover .group-hover\\:active\\:scale-90:active,.group:active .group-active\\:scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[state\\=checked\\]\\:translate-x-4[data-state=checked]{--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:hsl(var(--opencx-primary))}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--opencx-accent))}.data-\\[state\\=unchecked\\]\\:bg-input[data-state=unchecked]{background-color:hsl(var(--opencx-input))}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.prose-a\\:underline :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-line:underline}.prose-a\\:decoration-primary :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-color:hsl(var(--opencx-primary))}.rtl\\:-scale-100:where([dir=rtl],[dir=rtl] *){--tw-scale-x: -1;--tw-scale-y: -1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\\[\\&_span\\]\\:size-1 span{width:.25rem;height:.25rem}.\\[\\&_span\\]\\:bg-secondary-foreground span{background-color:hsl(var(--opencx-secondary-foreground))}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:size-4 svg{width:1rem;height:1rem}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_svg\\]\\:text-muted-foreground\\/70 svg{color:hsl(var(--opencx-muted-foreground) / .7)}.\\[\\&_svg\\]\\:hover\\:text-primary:hover svg{color:hsl(var(--opencx-primary))}', Lr = oe.Provider, Yr = oe.Root, qr = oe.Trigger, Dt = G.forwardRef(({ className: e, sideOffset: o = 4, ...t }, n) => /* @__PURE__ */ r(
|
|
514
|
+
oe.Content,
|
|
515
515
|
{
|
|
516
516
|
ref: n,
|
|
517
|
-
sideOffset:
|
|
517
|
+
sideOffset: o,
|
|
518
518
|
className: p(
|
|
519
519
|
"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",
|
|
520
520
|
e
|
|
@@ -522,34 +522,34 @@ const Tt = '@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wgh
|
|
|
522
522
|
...t
|
|
523
523
|
}
|
|
524
524
|
));
|
|
525
|
-
|
|
525
|
+
Dt.displayName = oe.Content.displayName;
|
|
526
526
|
function J({
|
|
527
527
|
children: e,
|
|
528
|
-
content:
|
|
528
|
+
content: o,
|
|
529
529
|
side: t,
|
|
530
530
|
align: n
|
|
531
531
|
}) {
|
|
532
|
-
const { disableTooltips: s } =
|
|
533
|
-
return !
|
|
534
|
-
/* @__PURE__ */
|
|
535
|
-
/* @__PURE__ */
|
|
536
|
-
|
|
532
|
+
const { disableTooltips: s } = b();
|
|
533
|
+
return !o || s ? e : /* @__PURE__ */ d(Yr, { children: [
|
|
534
|
+
/* @__PURE__ */ r(qr, { asChild: !0, children: e }),
|
|
535
|
+
/* @__PURE__ */ r(
|
|
536
|
+
Dt,
|
|
537
537
|
{
|
|
538
538
|
side: t,
|
|
539
539
|
align: n,
|
|
540
540
|
collisionPadding: 8,
|
|
541
541
|
avoidCollisions: !0,
|
|
542
|
-
children:
|
|
542
|
+
children: o
|
|
543
543
|
}
|
|
544
544
|
)
|
|
545
545
|
] });
|
|
546
546
|
}
|
|
547
|
-
const
|
|
548
|
-
function
|
|
549
|
-
const [e,
|
|
550
|
-
return
|
|
547
|
+
const nt = 450;
|
|
548
|
+
function P() {
|
|
549
|
+
const [e, o] = q.useState(() => (window.top || window).innerWidth < nt);
|
|
550
|
+
return q.useEffect(() => {
|
|
551
551
|
const t = window.top || window, n = () => {
|
|
552
|
-
|
|
552
|
+
o(t.innerWidth < nt);
|
|
553
553
|
};
|
|
554
554
|
return n(), t.addEventListener("resize", n), () => {
|
|
555
555
|
t.removeEventListener("resize", n);
|
|
@@ -560,10 +560,10 @@ const se = {
|
|
|
560
560
|
transitionTimingFunction: "cubic-bezier(0.16, 1, 0.3, 1)",
|
|
561
561
|
transitionDuration: "1000ms"
|
|
562
562
|
};
|
|
563
|
-
function
|
|
564
|
-
var
|
|
565
|
-
const { dir: e } =
|
|
566
|
-
zIndex: ((
|
|
563
|
+
function X() {
|
|
564
|
+
var u, m, k, f, N, T, _, M, A, F, H, j, v, C, z, L, ne, Se, _e, Ie, Te, Me, De, Re, je, Ee, Oe, Pe, Ae, Fe, He, We, $e, Be, Le, Ye, qe, Xe, Ue, Ve, Ge, Ke, Qe, Ze, Je, et, tt;
|
|
565
|
+
const { dir: e } = ue(), { isSmallScreen: o } = P(), { theme: t, inline: n } = b(), s = (Y) => n ? "100%" : Y, i = (Y, de) => o ? `100dv${Y}` : de, a = (Y, de) => s(i(Y, de)), c = {
|
|
566
|
+
zIndex: ((u = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : u.zIndex) ?? 1e7,
|
|
567
567
|
offset: {
|
|
568
568
|
bottom: ((k = (m = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : m.offset) == null ? void 0 : k.bottom) ?? 20,
|
|
569
569
|
right: ((N = (f = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : f.offset) == null ? void 0 : N.right) ?? (e === "ltr" ? 20 : "initial"),
|
|
@@ -571,7 +571,7 @@ function U() {
|
|
|
571
571
|
},
|
|
572
572
|
size: {
|
|
573
573
|
button: ((A = (M = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : M.size) == null ? void 0 : A.button) ?? 48,
|
|
574
|
-
icon: ((
|
|
574
|
+
icon: ((H = (F = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : F.size) == null ? void 0 : H.icon) ?? 24
|
|
575
575
|
}
|
|
576
576
|
}, l = (() => {
|
|
577
577
|
const Y = e === "ltr" ? c.offset.right : c.offset.left;
|
|
@@ -581,51 +581,51 @@ function U() {
|
|
|
581
581
|
primaryColor: (t == null ? void 0 : t.primaryColor) ?? "hsl(0 0% 9%)",
|
|
582
582
|
widgetTrigger: c,
|
|
583
583
|
widgetContentContainer: {
|
|
584
|
-
borderRadius:
|
|
584
|
+
borderRadius: o ? "0px" : ((j = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : j.borderRadius) ?? "32px",
|
|
585
585
|
zIndex: ((v = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : v.zIndex) ?? c.zIndex + 1,
|
|
586
586
|
outline: ((C = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : C.outline) ?? "none",
|
|
587
587
|
// was: '1px solid'
|
|
588
588
|
outlineColor: ((z = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : z.outlineColor) ?? "hsl(0 0% 50% / .5)",
|
|
589
589
|
boxShadow: ((L = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : L.boxShadow) ?? "0 0px 100px 0px rgb(0 0 0 / 0.25)",
|
|
590
590
|
transitionProperty: ((ne = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : ne.transitionProperty) ?? "all",
|
|
591
|
-
transitionTimingFunction: ((
|
|
592
|
-
transitionDuration: ((
|
|
591
|
+
transitionTimingFunction: ((Se = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Se.transitionTimingFunction) ?? se.transitionTimingFunction,
|
|
592
|
+
transitionDuration: ((_e = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : _e.transitionDuration) ?? se.transitionDuration,
|
|
593
593
|
offset: {
|
|
594
|
-
side:
|
|
595
|
-
align:
|
|
594
|
+
side: o ? 0 : c.offset.bottom + c.size.button + V.y * 2 + (((Te = (Ie = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Ie.offset) == null ? void 0 : Te.side) ?? 10),
|
|
595
|
+
align: o ? 0 : l + (((De = (Me = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Me.offset) == null ? void 0 : De.align) ?? 0)
|
|
596
596
|
}
|
|
597
597
|
},
|
|
598
598
|
screens: {
|
|
599
599
|
welcome: {
|
|
600
|
-
width: a("w", ((je = (
|
|
600
|
+
width: a("w", ((je = (Re = t == null ? void 0 : t.screens) == null ? void 0 : Re.welcome) == null ? void 0 : je.width) ?? "400px"),
|
|
601
601
|
// By setting minHeight to 1px, a nice animation will play from 1px to the dynamic height of the content of the screen
|
|
602
602
|
minHeight: a(
|
|
603
603
|
"h",
|
|
604
|
-
((
|
|
604
|
+
((Oe = (Ee = t == null ? void 0 : t.screens) == null ? void 0 : Ee.welcome) == null ? void 0 : Oe.minHeight) ?? "1px"
|
|
605
605
|
)
|
|
606
606
|
},
|
|
607
607
|
sessions: {
|
|
608
|
-
width: a("w", ((Ae = (
|
|
609
|
-
height: a("h", ((
|
|
608
|
+
width: a("w", ((Ae = (Pe = t == null ? void 0 : t.screens) == null ? void 0 : Pe.sessions) == null ? void 0 : Ae.width) ?? "450px"),
|
|
609
|
+
height: a("h", ((He = (Fe = t == null ? void 0 : t.screens) == null ? void 0 : Fe.sessions) == null ? void 0 : He.height) ?? "600px")
|
|
610
610
|
},
|
|
611
611
|
chat: {
|
|
612
|
-
width: a("w", ((
|
|
612
|
+
width: a("w", (($e = (We = t == null ? void 0 : t.screens) == null ? void 0 : We.chat) == null ? void 0 : $e.width) ?? "525px"),
|
|
613
613
|
height: a("h", ((Le = (Be = t == null ? void 0 : t.screens) == null ? void 0 : Be.chat) == null ? void 0 : Le.height) ?? "700px"),
|
|
614
614
|
withCanvas: {
|
|
615
615
|
width: a(
|
|
616
616
|
"w",
|
|
617
|
-
((
|
|
617
|
+
((Xe = (qe = (Ye = t == null ? void 0 : t.screens) == null ? void 0 : Ye.chat) == null ? void 0 : qe.withCanvas) == null ? void 0 : Xe.width) ?? "min(1050px, 100vw)"
|
|
618
618
|
),
|
|
619
619
|
height: a(
|
|
620
620
|
"h",
|
|
621
|
-
((
|
|
621
|
+
((Ge = (Ve = (Ue = t == null ? void 0 : t.screens) == null ? void 0 : Ue.chat) == null ? void 0 : Ve.withCanvas) == null ? void 0 : Ge.height) ?? "min(800px, 100vh)"
|
|
622
622
|
),
|
|
623
|
-
transitionTimingFunction: ((Ze = (
|
|
624
|
-
transitionDuration: ((
|
|
623
|
+
transitionTimingFunction: ((Ze = (Qe = (Ke = t == null ? void 0 : t.screens) == null ? void 0 : Ke.chat) == null ? void 0 : Qe.withCanvas) == null ? void 0 : Ze.transitionTimingFunction) ?? se.transitionTimingFunction,
|
|
624
|
+
transitionDuration: ((tt = (et = (Je = t == null ? void 0 : t.screens) == null ? void 0 : Je.chat) == null ? void 0 : et.withCanvas) == null ? void 0 : tt.transitionDuration) ?? se.transitionDuration
|
|
625
625
|
}
|
|
626
626
|
}
|
|
627
627
|
}
|
|
628
|
-
},
|
|
628
|
+
}, x = {
|
|
629
629
|
// Subtract the offset.bottom twice so that it adds a bit of padding to the top
|
|
630
630
|
// Subtract the distance between the trigger and the widget content container
|
|
631
631
|
// Subtract the invisible padding of the trigger (for the wobble effect)
|
|
@@ -635,7 +635,7 @@ function U() {
|
|
|
635
635
|
100vh
|
|
636
636
|
- ${h.widgetTrigger.offset.bottom}px
|
|
637
637
|
- ${h.widgetContentContainer.offset.side}px
|
|
638
|
-
- ${
|
|
638
|
+
- ${V.y * 2}px
|
|
639
639
|
)`
|
|
640
640
|
),
|
|
641
641
|
// Subtract the offset.right twice so that it adds a bit of padding to the left
|
|
@@ -665,18 +665,18 @@ function U() {
|
|
|
665
665
|
};
|
|
666
666
|
return {
|
|
667
667
|
theme: h,
|
|
668
|
-
computed:
|
|
669
|
-
cssVars:
|
|
668
|
+
computed: x,
|
|
669
|
+
cssVars: Xr({
|
|
670
670
|
palette: h.palette,
|
|
671
671
|
primary: h.primaryColor
|
|
672
672
|
})
|
|
673
673
|
};
|
|
674
674
|
}
|
|
675
|
-
function
|
|
675
|
+
function Xr({
|
|
676
676
|
palette: e,
|
|
677
|
-
primary:
|
|
677
|
+
primary: o
|
|
678
678
|
}) {
|
|
679
|
-
const t =
|
|
679
|
+
const t = Rt(e), n = ot(o).toHsl(), s = ot(o).isLight() ? t[950] : t[50];
|
|
680
680
|
return {
|
|
681
681
|
"--opencx-primary": `${n.h} ${n.s * 100}% ${n.l * 100}%`,
|
|
682
682
|
"--opencx-primary-foreground": s,
|
|
@@ -695,8 +695,8 @@ function qo({
|
|
|
695
695
|
"--opencx-ring": "var(--opencx-foreground)"
|
|
696
696
|
};
|
|
697
697
|
}
|
|
698
|
-
function
|
|
699
|
-
const
|
|
698
|
+
function Rt(e) {
|
|
699
|
+
const o = {
|
|
700
700
|
50: "0 0% 98%",
|
|
701
701
|
100: "0 0% 96.1%",
|
|
702
702
|
200: "0 0% 89.8%",
|
|
@@ -747,7 +747,7 @@ function Dt(e) {
|
|
|
747
747
|
};
|
|
748
748
|
switch (e) {
|
|
749
749
|
case "neutral":
|
|
750
|
-
return
|
|
750
|
+
return o;
|
|
751
751
|
case "stone":
|
|
752
752
|
return t;
|
|
753
753
|
case "zinc":
|
|
@@ -755,89 +755,89 @@ function Dt(e) {
|
|
|
755
755
|
case "slate":
|
|
756
756
|
return s;
|
|
757
757
|
default:
|
|
758
|
-
return D(e,
|
|
758
|
+
return D(e, Rt.name), o;
|
|
759
759
|
}
|
|
760
760
|
}
|
|
761
761
|
function jt() {
|
|
762
|
-
const { contentIframeRef: e } =
|
|
762
|
+
const { contentIframeRef: e } = R(), { inline: o } = b();
|
|
763
763
|
return {
|
|
764
764
|
setWidth: (t) => {
|
|
765
765
|
var n;
|
|
766
766
|
(n = e == null ? void 0 : e.current) == null || n.style.setProperty(
|
|
767
767
|
"--opencx-widget-width",
|
|
768
|
-
|
|
768
|
+
o ? "100%" : t
|
|
769
769
|
);
|
|
770
770
|
},
|
|
771
771
|
setHeight: (t) => {
|
|
772
772
|
var n;
|
|
773
773
|
(n = e == null ? void 0 : e.current) == null || n.style.setProperty(
|
|
774
774
|
"--opencx-widget-height",
|
|
775
|
-
|
|
775
|
+
o ? "100%" : t
|
|
776
776
|
);
|
|
777
777
|
}
|
|
778
778
|
};
|
|
779
779
|
}
|
|
780
|
-
function
|
|
780
|
+
function ke({
|
|
781
781
|
width: e,
|
|
782
|
-
height:
|
|
782
|
+
height: o
|
|
783
783
|
}) {
|
|
784
|
-
const { isSmallScreen: t } =
|
|
785
|
-
|
|
786
|
-
e && n(e),
|
|
787
|
-
}, [t,
|
|
784
|
+
const { isSmallScreen: t } = P(), { setWidth: n, setHeight: s } = jt();
|
|
785
|
+
re(() => {
|
|
786
|
+
e && n(e), o && s(o);
|
|
787
|
+
}, [t, o, e, n, s]);
|
|
788
788
|
}
|
|
789
|
-
const
|
|
789
|
+
const st = Jt;
|
|
790
790
|
function ee({
|
|
791
791
|
name: e,
|
|
792
|
-
className:
|
|
792
|
+
className: o
|
|
793
793
|
}) {
|
|
794
794
|
const t = (() => {
|
|
795
795
|
switch (e) {
|
|
796
796
|
case "Check":
|
|
797
|
-
return
|
|
797
|
+
return hr;
|
|
798
798
|
case "CheckCheck":
|
|
799
|
-
return
|
|
799
|
+
return pr;
|
|
800
800
|
case "CircleCheck":
|
|
801
|
-
return
|
|
801
|
+
return wt;
|
|
802
802
|
case "CircleCheckBig":
|
|
803
|
-
return
|
|
803
|
+
return dr;
|
|
804
804
|
case "CircleX":
|
|
805
|
-
return
|
|
805
|
+
return cr;
|
|
806
806
|
case "Expand":
|
|
807
|
-
return
|
|
807
|
+
return lr;
|
|
808
808
|
case "Maximize":
|
|
809
|
-
return
|
|
809
|
+
return ar;
|
|
810
810
|
case "Maximize2":
|
|
811
|
-
return
|
|
811
|
+
return ir;
|
|
812
812
|
case "Minimize":
|
|
813
|
-
return
|
|
813
|
+
return sr;
|
|
814
814
|
case "Minimize2":
|
|
815
|
-
return
|
|
815
|
+
return nr;
|
|
816
816
|
case "Shrink":
|
|
817
|
-
return
|
|
817
|
+
return or;
|
|
818
818
|
case "SquareCheck":
|
|
819
|
-
return
|
|
819
|
+
return rr;
|
|
820
820
|
case "SquareCheckBig":
|
|
821
|
-
return
|
|
821
|
+
return tr;
|
|
822
822
|
case "SquareX":
|
|
823
|
-
return
|
|
823
|
+
return er;
|
|
824
824
|
case "X":
|
|
825
825
|
return fe;
|
|
826
826
|
case void 0:
|
|
827
|
-
return
|
|
827
|
+
return st;
|
|
828
828
|
default:
|
|
829
|
-
return D(e, ee.name),
|
|
829
|
+
return D(e, ee.name), st;
|
|
830
830
|
}
|
|
831
831
|
})();
|
|
832
|
-
return /* @__PURE__ */
|
|
832
|
+
return /* @__PURE__ */ r(t, { className: p("size-4", o) });
|
|
833
833
|
}
|
|
834
|
-
function
|
|
835
|
-
const { widgetCtx: { org: e } } =
|
|
836
|
-
routerState: { screen:
|
|
837
|
-
} =
|
|
834
|
+
function Ce() {
|
|
835
|
+
const { widgetCtx: { org: e } } = R(), {
|
|
836
|
+
routerState: { screen: o }
|
|
837
|
+
} = $(), { textContent: t } = b();
|
|
838
838
|
return (() => {
|
|
839
839
|
var s, i;
|
|
840
|
-
switch (
|
|
840
|
+
switch (o) {
|
|
841
841
|
case "chat":
|
|
842
842
|
return (s = t == null ? void 0 : t.chatScreen) == null ? void 0 : s.headerTitle;
|
|
843
843
|
case "sessions":
|
|
@@ -845,45 +845,45 @@ function ke() {
|
|
|
845
845
|
case "welcome":
|
|
846
846
|
return;
|
|
847
847
|
default:
|
|
848
|
-
D(
|
|
848
|
+
D(o, Ce.name);
|
|
849
849
|
return;
|
|
850
850
|
}
|
|
851
851
|
})() ?? e.name ?? "Chat";
|
|
852
852
|
}
|
|
853
|
-
function
|
|
853
|
+
function Ur(e) {
|
|
854
854
|
switch (e) {
|
|
855
855
|
case "chat":
|
|
856
|
-
return
|
|
856
|
+
return g("chat/header");
|
|
857
857
|
case "sessions":
|
|
858
|
-
return
|
|
858
|
+
return g("sessions/header");
|
|
859
859
|
case "welcome":
|
|
860
860
|
return;
|
|
861
861
|
default:
|
|
862
|
-
D(e,
|
|
862
|
+
D(e, Ce.name);
|
|
863
863
|
return;
|
|
864
864
|
}
|
|
865
865
|
}
|
|
866
|
-
function
|
|
867
|
-
const { router: e } =
|
|
868
|
-
routerState: { screen:
|
|
866
|
+
function Vr() {
|
|
867
|
+
const { router: e } = b(), {
|
|
868
|
+
routerState: { screen: o },
|
|
869
869
|
toSessionsScreen: t
|
|
870
|
-
} =
|
|
871
|
-
return
|
|
870
|
+
} = $();
|
|
871
|
+
return o !== "chat" || e != null && e.chatScreenOnly ? null : /* @__PURE__ */ r(
|
|
872
872
|
y,
|
|
873
873
|
{
|
|
874
874
|
variant: "ghost",
|
|
875
875
|
size: "fit",
|
|
876
876
|
className: "rounded-full",
|
|
877
877
|
onClick: t,
|
|
878
|
-
children: /* @__PURE__ */
|
|
878
|
+
children: /* @__PURE__ */ r(mr, { className: "size-4 rtl:-scale-100" })
|
|
879
879
|
}
|
|
880
880
|
);
|
|
881
881
|
}
|
|
882
|
-
function
|
|
882
|
+
function Gr({
|
|
883
883
|
button: e
|
|
884
884
|
}) {
|
|
885
|
-
const { setIsOpen:
|
|
886
|
-
return t && e.hideOnSmallScreen || !t && e.hideOnLargeScreen ? null : /* @__PURE__ */
|
|
885
|
+
const { setIsOpen: o } = K(), { isSmallScreen: t } = P();
|
|
886
|
+
return t && e.hideOnSmallScreen || !t && e.hideOnLargeScreen ? null : /* @__PURE__ */ r(
|
|
887
887
|
y,
|
|
888
888
|
{
|
|
889
889
|
variant: "ghost",
|
|
@@ -891,18 +891,18 @@ function Xo({
|
|
|
891
891
|
className: "rounded-full",
|
|
892
892
|
onClick: () => {
|
|
893
893
|
if (e.handleClick) return e.handleClick();
|
|
894
|
-
|
|
894
|
+
o(!1);
|
|
895
895
|
},
|
|
896
|
-
children: /* @__PURE__ */
|
|
896
|
+
children: /* @__PURE__ */ r(ee, { name: e.icon })
|
|
897
897
|
}
|
|
898
898
|
);
|
|
899
899
|
}
|
|
900
|
-
function
|
|
900
|
+
function ge({
|
|
901
901
|
button: e
|
|
902
902
|
}) {
|
|
903
|
-
const [
|
|
903
|
+
const [o, t] = I(!1), {
|
|
904
904
|
routerState: { screen: n }
|
|
905
|
-
} =
|
|
905
|
+
} = $(), { isSmallScreen: s } = P(), { theme: i } = X(), { setWidth: a, setHeight: c } = jt();
|
|
906
906
|
if (n !== "chat" && n !== "sessions") return null;
|
|
907
907
|
const l = (() => {
|
|
908
908
|
switch (n) {
|
|
@@ -911,7 +911,7 @@ function ue({
|
|
|
911
911
|
case "sessions":
|
|
912
912
|
return i.screens.sessions.height;
|
|
913
913
|
default:
|
|
914
|
-
return D(n,
|
|
914
|
+
return D(n, ge.name), i.screens.chat.height;
|
|
915
915
|
}
|
|
916
916
|
})(), h = (() => {
|
|
917
917
|
switch (n) {
|
|
@@ -920,25 +920,25 @@ function ue({
|
|
|
920
920
|
case "sessions":
|
|
921
921
|
return i.screens.sessions.width;
|
|
922
922
|
default:
|
|
923
|
-
return D(n,
|
|
923
|
+
return D(n, ge.name), i.screens.chat.width;
|
|
924
924
|
}
|
|
925
|
-
})(),
|
|
926
|
-
t((
|
|
927
|
-
const m = !
|
|
925
|
+
})(), x = () => {
|
|
926
|
+
t((u) => {
|
|
927
|
+
const m = !u;
|
|
928
928
|
return c(m ? "100vh" : l), a(m ? `max(40vw, ${h})` : h), m;
|
|
929
929
|
});
|
|
930
930
|
};
|
|
931
|
-
return s && e.hideOnSmallScreen || !s && e.hideOnLargeScreen ? null : /* @__PURE__ */
|
|
931
|
+
return s && e.hideOnSmallScreen || !s && e.hideOnLargeScreen ? null : /* @__PURE__ */ r(
|
|
932
932
|
y,
|
|
933
933
|
{
|
|
934
934
|
variant: "ghost",
|
|
935
935
|
size: "fit",
|
|
936
936
|
className: "rounded-full",
|
|
937
|
-
onClick:
|
|
938
|
-
children: /* @__PURE__ */
|
|
937
|
+
onClick: x,
|
|
938
|
+
children: /* @__PURE__ */ r(
|
|
939
939
|
ee,
|
|
940
940
|
{
|
|
941
|
-
name: e.icon || (
|
|
941
|
+
name: e.icon || (o ? e.shrinkIcon : e.expandIcon)
|
|
942
942
|
}
|
|
943
943
|
)
|
|
944
944
|
}
|
|
@@ -948,9 +948,9 @@ function Et({
|
|
|
948
948
|
button: e
|
|
949
949
|
}) {
|
|
950
950
|
var N, T;
|
|
951
|
-
const { close:
|
|
951
|
+
const { close: o } = ce(), { widgetCtx: t } = R(), { setIsOpen: n } = K(), { resolveSession: s, sessionState: i } = B(), { isSmallScreen: a } = P(), c = !i.session, l = ((N = i.session) == null ? void 0 : N.isOpened) === !1, h = e.onResolved || "stay-in-chat", x = e.behaviorBeforeSessionCreation || "disabled", u = e.behaviorIfSessionIsResolved || "disabled", m = !!(i.isResolvingSession || c && x === "disabled" || l && u === "disabled"), k = async () => {
|
|
952
952
|
const { success: _, error: M } = await s();
|
|
953
|
-
if (
|
|
953
|
+
if (o(), !_) return console.error(M);
|
|
954
954
|
switch (h) {
|
|
955
955
|
case "stay-in-chat":
|
|
956
956
|
return;
|
|
@@ -969,7 +969,7 @@ function Et({
|
|
|
969
969
|
}
|
|
970
970
|
}, f = () => {
|
|
971
971
|
if (c)
|
|
972
|
-
switch (
|
|
972
|
+
switch (x) {
|
|
973
973
|
case "disabled":
|
|
974
974
|
return;
|
|
975
975
|
case "close-widget":
|
|
@@ -977,12 +977,12 @@ function Et({
|
|
|
977
977
|
break;
|
|
978
978
|
default:
|
|
979
979
|
D(
|
|
980
|
-
|
|
980
|
+
x,
|
|
981
981
|
f.name
|
|
982
982
|
);
|
|
983
983
|
}
|
|
984
984
|
if (l)
|
|
985
|
-
switch (
|
|
985
|
+
switch (u) {
|
|
986
986
|
case "disabled":
|
|
987
987
|
return;
|
|
988
988
|
case "close-widget":
|
|
@@ -998,38 +998,38 @@ function Et({
|
|
|
998
998
|
break;
|
|
999
999
|
default:
|
|
1000
1000
|
D(
|
|
1001
|
-
|
|
1001
|
+
u,
|
|
1002
1002
|
f.name
|
|
1003
1003
|
);
|
|
1004
1004
|
}
|
|
1005
1005
|
};
|
|
1006
|
-
return a && e.hideOnSmallScreen || !a && e.hideOnLargeScreen ? null : ((T = e.confirmation) == null ? void 0 : T.type) === "modal" && !l && !c ? /* @__PURE__ */
|
|
1007
|
-
|
|
1006
|
+
return a && e.hideOnSmallScreen || !a && e.hideOnLargeScreen ? null : ((T = e.confirmation) == null ? void 0 : T.type) === "modal" && !l && !c ? /* @__PURE__ */ r(
|
|
1007
|
+
_t,
|
|
1008
1008
|
{
|
|
1009
|
-
trigger: /* @__PURE__ */
|
|
1009
|
+
trigger: /* @__PURE__ */ r(
|
|
1010
1010
|
y,
|
|
1011
1011
|
{
|
|
1012
1012
|
variant: "ghost",
|
|
1013
1013
|
size: "fit",
|
|
1014
1014
|
className: "rounded-full",
|
|
1015
1015
|
disabled: m,
|
|
1016
|
-
children: /* @__PURE__ */
|
|
1016
|
+
children: /* @__PURE__ */ r(ee, { name: e.icon })
|
|
1017
1017
|
}
|
|
1018
1018
|
),
|
|
1019
|
-
children: /* @__PURE__ */ d(
|
|
1020
|
-
/* @__PURE__ */
|
|
1021
|
-
/* @__PURE__ */
|
|
1022
|
-
/* @__PURE__ */ d(
|
|
1023
|
-
/* @__PURE__ */
|
|
1019
|
+
children: /* @__PURE__ */ d(yt, { children: [
|
|
1020
|
+
/* @__PURE__ */ r(kt, { children: /* @__PURE__ */ r(Nt, { children: e.confirmation.title || "Close conversation" }) }),
|
|
1021
|
+
/* @__PURE__ */ r(Ct, { children: /* @__PURE__ */ r(St, { children: e.confirmation.description || "Are you sure you want to close this conversation?" }) }),
|
|
1022
|
+
/* @__PURE__ */ d(zt, { children: [
|
|
1023
|
+
/* @__PURE__ */ r(
|
|
1024
1024
|
y,
|
|
1025
1025
|
{
|
|
1026
1026
|
variant: "secondary",
|
|
1027
|
-
onClick:
|
|
1027
|
+
onClick: o,
|
|
1028
1028
|
disabled: i.isResolvingSession,
|
|
1029
1029
|
children: e.confirmation.cancelButtonText || "No"
|
|
1030
1030
|
}
|
|
1031
1031
|
),
|
|
1032
|
-
/* @__PURE__ */
|
|
1032
|
+
/* @__PURE__ */ r(
|
|
1033
1033
|
y,
|
|
1034
1034
|
{
|
|
1035
1035
|
variant: "destructive",
|
|
@@ -1041,7 +1041,7 @@ function Et({
|
|
|
1041
1041
|
] })
|
|
1042
1042
|
] })
|
|
1043
1043
|
}
|
|
1044
|
-
) : /* @__PURE__ */
|
|
1044
|
+
) : /* @__PURE__ */ r(
|
|
1045
1045
|
y,
|
|
1046
1046
|
{
|
|
1047
1047
|
variant: "ghost",
|
|
@@ -1049,71 +1049,71 @@ function Et({
|
|
|
1049
1049
|
className: "rounded-full",
|
|
1050
1050
|
onClick: l || c ? f : k,
|
|
1051
1051
|
disabled: m,
|
|
1052
|
-
children: /* @__PURE__ */
|
|
1052
|
+
children: /* @__PURE__ */ r(ee, { name: e.icon })
|
|
1053
1053
|
}
|
|
1054
1054
|
);
|
|
1055
1055
|
}
|
|
1056
|
-
function
|
|
1056
|
+
function we({ button: e }) {
|
|
1057
1057
|
switch (e.functionality) {
|
|
1058
1058
|
case "close-widget":
|
|
1059
|
-
return /* @__PURE__ */
|
|
1059
|
+
return /* @__PURE__ */ r(Gr, { button: e });
|
|
1060
1060
|
case "expand-shrink":
|
|
1061
|
-
return /* @__PURE__ */
|
|
1061
|
+
return /* @__PURE__ */ r(ge, { button: e });
|
|
1062
1062
|
case "resolve-session":
|
|
1063
|
-
return /* @__PURE__ */
|
|
1063
|
+
return /* @__PURE__ */ r(Et, { button: e });
|
|
1064
1064
|
default:
|
|
1065
|
-
return D(e,
|
|
1065
|
+
return D(e, we.name), null;
|
|
1066
1066
|
}
|
|
1067
1067
|
}
|
|
1068
|
-
const
|
|
1068
|
+
const Kr = {
|
|
1069
1069
|
functionality: "close-widget",
|
|
1070
1070
|
hideOnLargeScreen: !0,
|
|
1071
1071
|
icon: "X"
|
|
1072
1072
|
};
|
|
1073
|
-
function
|
|
1073
|
+
function Qr() {
|
|
1074
1074
|
const {
|
|
1075
1075
|
routerState: { screen: e }
|
|
1076
|
-
} =
|
|
1077
|
-
return !t || t.length === 0 ? /* @__PURE__ */
|
|
1078
|
-
|
|
1076
|
+
} = $(), { headerButtons: o } = b(), t = e === "chat" ? o == null ? void 0 : o.chatScreen : e === "sessions" ? o == null ? void 0 : o.sessionsScreen : [];
|
|
1077
|
+
return !t || t.length === 0 ? /* @__PURE__ */ r(we, { button: Kr }) : /* @__PURE__ */ r(te, { children: t.map((n) => /* @__PURE__ */ r(
|
|
1078
|
+
we,
|
|
1079
1079
|
{
|
|
1080
1080
|
button: n
|
|
1081
1081
|
},
|
|
1082
1082
|
`${n.functionality}-${n.icon}`
|
|
1083
1083
|
)) });
|
|
1084
1084
|
}
|
|
1085
|
-
function
|
|
1085
|
+
function Ot() {
|
|
1086
1086
|
const {
|
|
1087
1087
|
routerState: { screen: e }
|
|
1088
|
-
} =
|
|
1089
|
-
return /* @__PURE__ */
|
|
1090
|
-
/* @__PURE__ */
|
|
1091
|
-
/* @__PURE__ */
|
|
1088
|
+
} = $(), o = Ur(e), t = Ce();
|
|
1089
|
+
return /* @__PURE__ */ r("header", { ...o, className: "py-2 px-4 shrink-0", children: /* @__PURE__ */ d("div", { className: "flex items-center gap-2", children: [
|
|
1090
|
+
/* @__PURE__ */ r(Vr, {}),
|
|
1091
|
+
/* @__PURE__ */ r(
|
|
1092
1092
|
"div",
|
|
1093
1093
|
{
|
|
1094
1094
|
className: p(
|
|
1095
1095
|
"flex-1 h-8 flex items-center",
|
|
1096
1096
|
e === "sessions" && "ps-2"
|
|
1097
1097
|
),
|
|
1098
|
-
children: /* @__PURE__ */
|
|
1098
|
+
children: /* @__PURE__ */ r("h2", { className: "font-semibold", children: t })
|
|
1099
1099
|
}
|
|
1100
1100
|
),
|
|
1101
|
-
/* @__PURE__ */
|
|
1101
|
+
/* @__PURE__ */ r(Qr, {})
|
|
1102
1102
|
] }) });
|
|
1103
1103
|
}
|
|
1104
|
-
function
|
|
1105
|
-
return /* @__PURE__ */
|
|
1104
|
+
function Pt({ className: e }) {
|
|
1105
|
+
return /* @__PURE__ */ r(gr, { className: p("size-4 animate-spin", e) });
|
|
1106
1106
|
}
|
|
1107
|
-
function
|
|
1107
|
+
function Zr() {
|
|
1108
1108
|
const {
|
|
1109
1109
|
messagesState: { isInitialFetchLoading: e }
|
|
1110
|
-
} =
|
|
1110
|
+
} = O(), { isSmallScreen: o } = P(), { activeMode: t, Component: n } = ht();
|
|
1111
1111
|
return {
|
|
1112
|
-
isCanvasOpen: !e && !
|
|
1112
|
+
isCanvasOpen: !e && !o && !!t && !!n
|
|
1113
1113
|
};
|
|
1114
1114
|
}
|
|
1115
|
-
function
|
|
1116
|
-
const { activeMode: e, Component:
|
|
1115
|
+
function Jr() {
|
|
1116
|
+
const { activeMode: e, Component: o } = ht(), { sendMessage: t } = O(), { createStateCheckpoint: n } = B(), [s, i] = I(!1), a = async (c) => {
|
|
1117
1117
|
try {
|
|
1118
1118
|
i(!0), await t(c);
|
|
1119
1119
|
} catch (l) {
|
|
@@ -1122,10 +1122,10 @@ function Qo() {
|
|
|
1122
1122
|
i(!1);
|
|
1123
1123
|
}
|
|
1124
1124
|
};
|
|
1125
|
-
return !e || !
|
|
1126
|
-
|
|
1125
|
+
return !e || !o ? null : /* @__PURE__ */ r(
|
|
1126
|
+
o,
|
|
1127
1127
|
{
|
|
1128
|
-
react:
|
|
1128
|
+
react: q,
|
|
1129
1129
|
mode: e,
|
|
1130
1130
|
createStateCheckpoint: n,
|
|
1131
1131
|
sendMessage: a,
|
|
@@ -1133,14 +1133,14 @@ function Qo() {
|
|
|
1133
1133
|
}
|
|
1134
1134
|
);
|
|
1135
1135
|
}
|
|
1136
|
-
const
|
|
1137
|
-
(e,
|
|
1136
|
+
const E = q.forwardRef(
|
|
1137
|
+
(e, o) => {
|
|
1138
1138
|
var t, n, s;
|
|
1139
|
-
return /* @__PURE__ */
|
|
1140
|
-
|
|
1139
|
+
return /* @__PURE__ */ r(
|
|
1140
|
+
w,
|
|
1141
1141
|
{
|
|
1142
1142
|
...e,
|
|
1143
|
-
ref:
|
|
1143
|
+
ref: o,
|
|
1144
1144
|
className: p("overflow-hidden", e.className),
|
|
1145
1145
|
overrides: {
|
|
1146
1146
|
initial: { height: 0, opacity: 0, ...(t = e.overrides) == null ? void 0 : t.initial },
|
|
@@ -1151,8 +1151,8 @@ const F = $.forwardRef(
|
|
|
1151
1151
|
);
|
|
1152
1152
|
}
|
|
1153
1153
|
);
|
|
1154
|
-
|
|
1155
|
-
const
|
|
1154
|
+
E.displayName = "MotionDiv__VerticalReveal";
|
|
1155
|
+
const eo = [
|
|
1156
1156
|
{
|
|
1157
1157
|
label: "Terrible",
|
|
1158
1158
|
value: 1,
|
|
@@ -1179,24 +1179,24 @@ const Jo = [
|
|
|
1179
1179
|
emoji: "😍"
|
|
1180
1180
|
}
|
|
1181
1181
|
];
|
|
1182
|
-
function
|
|
1183
|
-
const { isSmallScreen: e } =
|
|
1184
|
-
submitCsat:
|
|
1182
|
+
function to() {
|
|
1183
|
+
const { isSmallScreen: e } = P(), {
|
|
1184
|
+
submitCsat: o,
|
|
1185
1185
|
isCsatRequested: t,
|
|
1186
1186
|
isCsatSubmitted: n,
|
|
1187
1187
|
submittedScore: s,
|
|
1188
1188
|
submittedFeedback: i
|
|
1189
|
-
} =
|
|
1189
|
+
} = mt(), [a, c] = I(null), [l, h] = I(null), x = (m) => {
|
|
1190
1190
|
c((k) => k === m ? null : m);
|
|
1191
|
-
},
|
|
1192
|
-
a &&
|
|
1191
|
+
}, u = () => {
|
|
1192
|
+
a && o({
|
|
1193
1193
|
score: a,
|
|
1194
1194
|
feedback: l || void 0
|
|
1195
1195
|
});
|
|
1196
1196
|
};
|
|
1197
1197
|
return !t && !n ? null : /* @__PURE__ */ d("div", { className: "w-1/2 min-w-80 max-w-96 mx-auto overflow-hidden", children: [
|
|
1198
|
-
/* @__PURE__ */
|
|
1199
|
-
/* @__PURE__ */
|
|
1198
|
+
/* @__PURE__ */ r(S, { mode: "wait", children: t && !a ? /* @__PURE__ */ r(E, { children: /* @__PURE__ */ r("p", { className: "text-sm text-muted-foreground text-center pt-2", children: "How was your conversation?" }) }, "csat-requested-title") : n ? /* @__PURE__ */ r(E, { children: /* @__PURE__ */ r("p", { className: "text-sm text-muted-foreground text-center pt-2", children: "You rated the conversation as" }) }, "csat-submitted-title") : null }),
|
|
1199
|
+
/* @__PURE__ */ r(
|
|
1200
1200
|
"div",
|
|
1201
1201
|
{
|
|
1202
1202
|
className: p(
|
|
@@ -1204,7 +1204,7 @@ function er() {
|
|
|
1204
1204
|
"transition-all",
|
|
1205
1205
|
n && "gap-0 justify-center"
|
|
1206
1206
|
),
|
|
1207
|
-
children:
|
|
1207
|
+
children: eo.map((m) => /* @__PURE__ */ r(
|
|
1208
1208
|
y,
|
|
1209
1209
|
{
|
|
1210
1210
|
variant: m.value === a ? "secondary" : "ghost",
|
|
@@ -1219,15 +1219,15 @@ function er() {
|
|
|
1219
1219
|
n && m.value !== s && "opacity-0 size-0",
|
|
1220
1220
|
n && m.value === s && "opacity-100 size-fit text-4xl"
|
|
1221
1221
|
),
|
|
1222
|
-
onClick: t ? () =>
|
|
1222
|
+
onClick: t ? () => x(m.value) : void 0,
|
|
1223
1223
|
children: m.emoji
|
|
1224
1224
|
},
|
|
1225
1225
|
m.value
|
|
1226
1226
|
))
|
|
1227
1227
|
}
|
|
1228
1228
|
),
|
|
1229
|
-
/* @__PURE__ */
|
|
1230
|
-
/* @__PURE__ */
|
|
1229
|
+
/* @__PURE__ */ r(S, { mode: "wait", children: (a || s) && /* @__PURE__ */ r(E, { children: /* @__PURE__ */ d("div", { className: "pb-2 px-2 flex items-end", children: [
|
|
1230
|
+
/* @__PURE__ */ r(
|
|
1231
1231
|
"textarea",
|
|
1232
1232
|
{
|
|
1233
1233
|
rows: 3,
|
|
@@ -1247,214 +1247,66 @@ function er() {
|
|
|
1247
1247
|
placeholder: t ? "Tell us more... (optional)" : void 0
|
|
1248
1248
|
}
|
|
1249
1249
|
),
|
|
1250
|
-
/* @__PURE__ */
|
|
1250
|
+
/* @__PURE__ */ r(
|
|
1251
1251
|
y,
|
|
1252
1252
|
{
|
|
1253
1253
|
size: "fit",
|
|
1254
|
-
onClick:
|
|
1254
|
+
onClick: u,
|
|
1255
1255
|
disabled: !a,
|
|
1256
1256
|
className: p(
|
|
1257
1257
|
"transition-all overflow-hidden",
|
|
1258
1258
|
"rounded-full size-8 flex items-center justify-center p-0",
|
|
1259
1259
|
n && "opacity-0 size-0"
|
|
1260
1260
|
),
|
|
1261
|
-
children: /* @__PURE__ */
|
|
1261
|
+
children: /* @__PURE__ */ r(ut, { className: "size-4" })
|
|
1262
1262
|
}
|
|
1263
1263
|
)
|
|
1264
1264
|
] }) }, "feedback-box") }),
|
|
1265
|
-
/* @__PURE__ */
|
|
1265
|
+
/* @__PURE__ */ r("div", { className: p("h-0 transition-[height]", n && "h-4") })
|
|
1266
1266
|
] });
|
|
1267
1267
|
}
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
"welcome-title": "مرحبًا بك في دردشة الدعم الخاصة بنا",
|
|
1273
|
-
"welcome-description": "نحن هنا للمساعدة! ابدأ محادثة وسنرد عليك في أقرب وقت ممكن.",
|
|
1274
|
-
"your-name": "اسمك",
|
|
1275
|
-
"your-email": "عنوان بريدك الإلكتروني",
|
|
1276
|
-
"start-chat": "تحدث إلى الدعم",
|
|
1277
|
-
"starting-chat": "جاري الاتصال...",
|
|
1278
|
-
"i-need-more-help": "أحتاج المزيد من المساعدة",
|
|
1279
|
-
"this-was-helpful": "كان هذا مفيدًا",
|
|
1280
|
-
optional: "اختياري",
|
|
1281
|
-
"no-conversations-yet": "لا يوجد محادثات",
|
|
1282
|
-
"back-to-conversations": "العودة إلى المحادثات",
|
|
1283
|
-
"closed-conversations": "المحادثات المغلقة"
|
|
1284
|
-
}, or = {
|
|
1285
|
-
"write-a-message": "Nachricht schreiben...",
|
|
1286
|
-
"session-closed-lead": "Ihr Problem wurde gelöst!",
|
|
1287
|
-
"new-conversation": "Neue Konversation",
|
|
1288
|
-
"welcome-title": "Willkommen in unserem Support-Chat",
|
|
1289
|
-
"welcome-description": "Wir sind hier, um zu helfen! Beginnen Sie ein Gesprách und wir werden so schnell wie mogelijk antworten.",
|
|
1290
|
-
"your-name": "Ihr Name",
|
|
1291
|
-
"your-email": "Ihre E-Mail-Adresse",
|
|
1292
|
-
"start-chat": "Mit dem Support sprechen",
|
|
1293
|
-
"starting-chat": "Verbindung wird hergestellt...",
|
|
1294
|
-
"i-need-more-help": "Ich brauche weitere Hilfe",
|
|
1295
|
-
"this-was-helpful": "Dies war hilfreich",
|
|
1296
|
-
optional: "Optional",
|
|
1297
|
-
"no-conversations-yet": "noch keine Gespräche",
|
|
1298
|
-
"back-to-conversations": "Zurück zur Konversationen",
|
|
1299
|
-
"closed-conversations": "Geschlossene Konversationen"
|
|
1300
|
-
}, rr = {
|
|
1301
|
-
"write-a-message": "Write a message...",
|
|
1302
|
-
"session-closed-lead": "Your issue has been resolved!",
|
|
1303
|
-
"new-conversation": "New conversation",
|
|
1304
|
-
"welcome-title": "Welcome to our support chat",
|
|
1305
|
-
"welcome-description": "We're here to help! Start a conversation and we'll get back to you as soon as possible.",
|
|
1306
|
-
"your-name": "Your name",
|
|
1307
|
-
"your-email": "Your email address",
|
|
1308
|
-
"start-chat": "Talk to support",
|
|
1309
|
-
"starting-chat": "Connecting...",
|
|
1310
|
-
"i-need-more-help": "I need more help",
|
|
1311
|
-
"this-was-helpful": "This was helpful",
|
|
1312
|
-
optional: "Optional",
|
|
1313
|
-
"no-conversations-yet": "No conversations yet",
|
|
1314
|
-
"back-to-conversations": "Back to conversations",
|
|
1315
|
-
"closed-conversations": "Closed conversations"
|
|
1316
|
-
}, nr = {
|
|
1317
|
-
"write-a-message": "Écrivez un message...",
|
|
1318
|
-
"session-closed-lead": "Votre problème a été résolu !",
|
|
1319
|
-
"new-conversation": "Nouvelle conversation",
|
|
1320
|
-
"welcome-title": "Bienvenue dans notre chat de support",
|
|
1321
|
-
"welcome-description": "Nous sommes là pour vous aider ! Commencez une conversation et nous vous répondrons dès que possible.",
|
|
1322
|
-
"your-name": "Votre nom",
|
|
1323
|
-
"your-email": "Votre adresse e-mail",
|
|
1324
|
-
"start-chat": "Parler au support",
|
|
1325
|
-
"starting-chat": "Connexion...",
|
|
1326
|
-
"i-need-more-help": "Je besoin d'aide plus",
|
|
1327
|
-
"this-was-helpful": "C'était utile",
|
|
1328
|
-
optional: "Optionnel",
|
|
1329
|
-
"no-conversations-yet": "Aucune conversation pour le moment",
|
|
1330
|
-
"back-to-conversations": "Retour aux conversations",
|
|
1331
|
-
"closed-conversations": "Conversations fermées"
|
|
1332
|
-
}, sr = {
|
|
1333
|
-
"write-a-message": "Schrijf een bericht...",
|
|
1334
|
-
"session-closed-lead": "Uw probleem is opgelost!",
|
|
1335
|
-
"new-conversation": "Nieuw gesprek",
|
|
1336
|
-
"welcome-title": "Welkom bij onze supportchat",
|
|
1337
|
-
"welcome-description": "We zijn hier om te helpen! Begin een gesprek en we nemen zo snel mogelijk contact met u op.",
|
|
1338
|
-
"your-name": "Uw naam",
|
|
1339
|
-
"your-email": "Uw e-mailadres",
|
|
1340
|
-
"start-chat": "Praat met ondersteuning",
|
|
1341
|
-
"starting-chat": "Verbinding maken...",
|
|
1342
|
-
"i-need-more-help": "Ik heb nog meer hulp nodig",
|
|
1343
|
-
"this-was-helpful": "Mijn vraag is opgelost",
|
|
1344
|
-
optional: "Optioneel",
|
|
1345
|
-
"no-conversations-yet": "Nog geen gesprekken",
|
|
1346
|
-
"back-to-conversations": "Terug naar gesprekken",
|
|
1347
|
-
"closed-conversations": "Afgesloten gesprekken"
|
|
1348
|
-
}, ar = {
|
|
1349
|
-
"write-a-message": "Escreva uma mensagem...",
|
|
1350
|
-
"session-closed-lead": "Seu problema foi resolvido!",
|
|
1351
|
-
"new-conversation": "Nova conversa",
|
|
1352
|
-
"welcome-title": "Bem-vindo ao nosso chat de suporte",
|
|
1353
|
-
"welcome-description": "Estamos aqui para ajudar! Inicie uma conversa e responderemos o mais rápido possível.",
|
|
1354
|
-
"your-name": "Seu nome",
|
|
1355
|
-
"your-email": "Seu endereço de email",
|
|
1356
|
-
"start-chat": "Falar com o suporte",
|
|
1357
|
-
"starting-chat": "Conectando...",
|
|
1358
|
-
"i-need-more-help": "preciso de mais ajuda",
|
|
1359
|
-
"this-was-helpful": "Isso foi útil",
|
|
1360
|
-
optional: "Opcional",
|
|
1361
|
-
"no-conversations-yet": "Nenhuma conversa ainda",
|
|
1362
|
-
"back-to-conversations": "Voltar para conversas",
|
|
1363
|
-
"closed-conversations": "Conversas fechadas"
|
|
1364
|
-
}, ir = {
|
|
1365
|
-
"write-a-message": "Escribe un mensaje...",
|
|
1366
|
-
"session-closed-lead": "¡Tu problema fue resuelto!",
|
|
1367
|
-
"new-conversation": "Nueva conversación",
|
|
1368
|
-
"welcome-title": "Bienvenido a nuestro chat de soporte",
|
|
1369
|
-
"welcome-description": "¡Estamos aquí para ayudarte! Inicia una conversación y responderemos lo antes posible.",
|
|
1370
|
-
"your-name": "Tu nombre",
|
|
1371
|
-
"your-email": "Tu correo electrónico",
|
|
1372
|
-
"start-chat": "Hablar con soporte",
|
|
1373
|
-
"starting-chat": "Conectando...",
|
|
1374
|
-
"i-need-more-help": "Necesito más ayuda",
|
|
1375
|
-
"this-was-helpful": "Esto fue útil",
|
|
1376
|
-
optional: "Opcional",
|
|
1377
|
-
"no-conversations-yet": "Sin conversaciones aún",
|
|
1378
|
-
"back-to-conversations": "Volver a conversaciones",
|
|
1379
|
-
"closed-conversations": "Conversaciones cerradas"
|
|
1380
|
-
}, lr = {
|
|
1381
|
-
"write-a-message": "Bir mesaj yazın...",
|
|
1382
|
-
"session-closed-lead": "Sorununuz çözüldü!",
|
|
1383
|
-
"new-conversation": "Yeni konuşma",
|
|
1384
|
-
"welcome-title": "Destek sohbetimize hoş geldiniz",
|
|
1385
|
-
"welcome-description": "Yardım etmek için buradayız! Bir konuşma başlatın, en kısa sürede size geri döneceğiz.",
|
|
1386
|
-
"your-name": "Adınız",
|
|
1387
|
-
"your-email": "E-posta adresiniz",
|
|
1388
|
-
"start-chat": "Destekle konuş",
|
|
1389
|
-
"starting-chat": "Bağlanıyor...",
|
|
1390
|
-
"i-need-more-help": "Daha fazla yardıma ihtiyacım var",
|
|
1391
|
-
"this-was-helpful": "Bu yardımcı oldu",
|
|
1392
|
-
optional: "İsteğe bağlı",
|
|
1393
|
-
"no-conversations-yet": "Henüz konuşma yok",
|
|
1394
|
-
"back-to-conversations": "Konuşmalara geri dön",
|
|
1395
|
-
"closed-conversations": "Kapatılan konuşmalar"
|
|
1396
|
-
}, At = {
|
|
1397
|
-
en: rr,
|
|
1398
|
-
ar: tr,
|
|
1399
|
-
nl: sr,
|
|
1400
|
-
fr: nr,
|
|
1401
|
-
de: or,
|
|
1402
|
-
pt: ar,
|
|
1403
|
-
es: ir,
|
|
1404
|
-
tr: lr
|
|
1405
|
-
}, cr = Object.keys(At);
|
|
1406
|
-
function dr(e) {
|
|
1407
|
-
return cr.includes(e);
|
|
1408
|
-
}
|
|
1409
|
-
function pr(e, r) {
|
|
1410
|
-
const t = At[r];
|
|
1411
|
-
return t && t[e] || "";
|
|
1412
|
-
}
|
|
1413
|
-
function V() {
|
|
1414
|
-
const { dir: e } = we(), r = x();
|
|
1415
|
-
return ct(() => {
|
|
1416
|
-
const t = dr(r.language) ? r.language : "en";
|
|
1268
|
+
function U() {
|
|
1269
|
+
const { dir: e } = ue(), o = b();
|
|
1270
|
+
return pt(() => {
|
|
1271
|
+
const t = Ir(o.language) ? o.language : "en";
|
|
1417
1272
|
return {
|
|
1418
|
-
t: (n) =>
|
|
1273
|
+
t: (n) => Tr(n, t, o.translationOverrides),
|
|
1419
1274
|
language: t,
|
|
1420
1275
|
dir: t === "ar" ? "rtl" : "ltr",
|
|
1421
1276
|
hostDocumentDir: e
|
|
1422
1277
|
};
|
|
1423
|
-
}, [
|
|
1278
|
+
}, [o.language, e]);
|
|
1424
1279
|
}
|
|
1425
|
-
function
|
|
1280
|
+
function ze({
|
|
1426
1281
|
suggestion: e,
|
|
1427
|
-
className:
|
|
1282
|
+
className: o,
|
|
1428
1283
|
...t
|
|
1429
1284
|
}) {
|
|
1430
|
-
const { sendMessage: n } =
|
|
1285
|
+
const { sendMessage: n } = O(), s = () => {
|
|
1431
1286
|
const i = e.trim();
|
|
1432
1287
|
i && n({ content: i });
|
|
1433
1288
|
};
|
|
1434
|
-
return /* @__PURE__ */
|
|
1289
|
+
return /* @__PURE__ */ r(
|
|
1435
1290
|
y,
|
|
1436
1291
|
{
|
|
1437
|
-
...
|
|
1292
|
+
...g("chat/suggested_reply_btn"),
|
|
1438
1293
|
size: "sm",
|
|
1439
|
-
className: p("rounded-xl w-fit",
|
|
1294
|
+
className: p("rounded-xl w-fit", o),
|
|
1440
1295
|
...t,
|
|
1441
1296
|
onClick: s,
|
|
1442
1297
|
children: e
|
|
1443
1298
|
}
|
|
1444
1299
|
);
|
|
1445
1300
|
}
|
|
1446
|
-
function
|
|
1447
|
-
const { t: e } =
|
|
1448
|
-
|
|
1449
|
-
e("this-was-helpful")
|
|
1450
|
-
];
|
|
1451
|
-
return /* @__PURE__ */ o(
|
|
1301
|
+
function ro() {
|
|
1302
|
+
const { t: e } = U(), o = [e("i_need_more_help"), e("this_was_helpful")];
|
|
1303
|
+
return /* @__PURE__ */ r(
|
|
1452
1304
|
"div",
|
|
1453
1305
|
{
|
|
1454
|
-
...
|
|
1306
|
+
...g("chat/might_solve_user_issue_suggested_replies_container"),
|
|
1455
1307
|
className: "flex items-center gap-2 p-2 pb-0 flex-wrap",
|
|
1456
|
-
children:
|
|
1457
|
-
|
|
1308
|
+
children: o.map((t) => /* @__PURE__ */ r(
|
|
1309
|
+
ze,
|
|
1458
1310
|
{
|
|
1459
1311
|
suggestion: t,
|
|
1460
1312
|
className: "flex-1"
|
|
@@ -1464,46 +1316,50 @@ function hr() {
|
|
|
1464
1316
|
}
|
|
1465
1317
|
);
|
|
1466
1318
|
}
|
|
1467
|
-
function
|
|
1468
|
-
|
|
1319
|
+
function it() {
|
|
1320
|
+
const { sessionState: e } = B(), { chatFooterItems: o } = b(), t = !!e.session && !e.session.isOpened, n = !t;
|
|
1321
|
+
return /* @__PURE__ */ r(S, { mode: "wait", children: o == null ? void 0 : o.map((s, i) => s.showWhenSessionIsOpen === !1 && n || s.showWhenSessionIsResolved === !1 && t ? null : /* @__PURE__ */ r(E, { children: /* @__PURE__ */ r("div", { className: "pb-2 text-center text-xs", children: /* @__PURE__ */ r(ve, { children: s.message }) }) }, `${s.message}-${i}`)) });
|
|
1322
|
+
}
|
|
1323
|
+
function oo({
|
|
1324
|
+
file: { status: e, file: o, error: t },
|
|
1469
1325
|
onCancel: n
|
|
1470
1326
|
}) {
|
|
1471
1327
|
const [s, i] = I(
|
|
1472
1328
|
null
|
|
1473
1329
|
);
|
|
1474
|
-
|
|
1475
|
-
if (!
|
|
1330
|
+
re(() => {
|
|
1331
|
+
if (!o.type.startsWith("image/")) return;
|
|
1476
1332
|
const l = new FileReader();
|
|
1477
|
-
return l.onload = () => i(l.result), l.onerror = () => console.error("Error reading file"), l.readAsDataURL(
|
|
1478
|
-
}, [
|
|
1333
|
+
return l.onload = () => i(l.result), l.onerror = () => console.error("Error reading file"), l.readAsDataURL(o), () => l.abort();
|
|
1334
|
+
}, [o]);
|
|
1479
1335
|
const a = () => {
|
|
1480
1336
|
switch (e) {
|
|
1481
1337
|
case "uploading":
|
|
1482
|
-
return /* @__PURE__ */
|
|
1338
|
+
return /* @__PURE__ */ r(xr, { className: "size-4 animate-spin" });
|
|
1483
1339
|
case "error":
|
|
1484
|
-
return /* @__PURE__ */
|
|
1340
|
+
return /* @__PURE__ */ r(vr, { className: "size-4 text-destructive" });
|
|
1485
1341
|
default:
|
|
1486
1342
|
return null;
|
|
1487
1343
|
}
|
|
1488
1344
|
}, c = () => {
|
|
1489
|
-
const l =
|
|
1490
|
-
return l === "image" && s ? /* @__PURE__ */
|
|
1345
|
+
const l = o.type.split("/")[0];
|
|
1346
|
+
return l === "image" && s ? /* @__PURE__ */ r(
|
|
1491
1347
|
"img",
|
|
1492
1348
|
{
|
|
1493
1349
|
src: typeof s == "string" ? s : "",
|
|
1494
1350
|
className: "object-cover bg-secondary size-full",
|
|
1495
|
-
alt:
|
|
1351
|
+
alt: o.name
|
|
1496
1352
|
}
|
|
1497
|
-
) : l === "audio" ? /* @__PURE__ */
|
|
1353
|
+
) : l === "audio" ? /* @__PURE__ */ r(br, {}) : l === "video" ? /* @__PURE__ */ r(yr, {}) : /* @__PURE__ */ r(kr, {});
|
|
1498
1354
|
};
|
|
1499
|
-
return /* @__PURE__ */
|
|
1355
|
+
return /* @__PURE__ */ r(
|
|
1500
1356
|
J,
|
|
1501
1357
|
{
|
|
1502
1358
|
side: "bottom",
|
|
1503
1359
|
content: e === "error" ? /* @__PURE__ */ d("span", { className: "text-destructive", children: [
|
|
1504
1360
|
"Failed to upload: ",
|
|
1505
1361
|
t
|
|
1506
|
-
] }) :
|
|
1362
|
+
] }) : o.name,
|
|
1507
1363
|
children: /* @__PURE__ */ d(
|
|
1508
1364
|
"div",
|
|
1509
1365
|
{
|
|
@@ -1514,8 +1370,8 @@ function mr({
|
|
|
1514
1370
|
"flex items-center justify-center shrink-0"
|
|
1515
1371
|
),
|
|
1516
1372
|
children: [
|
|
1517
|
-
/* @__PURE__ */
|
|
1518
|
-
/* @__PURE__ */
|
|
1373
|
+
/* @__PURE__ */ r("div", { className: "absolute inset-0 flex items-center justify-center", children: a() }),
|
|
1374
|
+
/* @__PURE__ */ r(
|
|
1519
1375
|
"button",
|
|
1520
1376
|
{
|
|
1521
1377
|
type: "button",
|
|
@@ -1525,30 +1381,30 @@ function mr({
|
|
|
1525
1381
|
"opacity-0 group-hover:opacity-100 transition"
|
|
1526
1382
|
),
|
|
1527
1383
|
onClick: n,
|
|
1528
|
-
children: /* @__PURE__ */
|
|
1384
|
+
children: /* @__PURE__ */ r(fe, { className: "size-4 text-primary-foreground" })
|
|
1529
1385
|
}
|
|
1530
1386
|
),
|
|
1531
|
-
/* @__PURE__ */
|
|
1387
|
+
/* @__PURE__ */ r(c, {})
|
|
1532
1388
|
]
|
|
1533
1389
|
}
|
|
1534
1390
|
)
|
|
1535
1391
|
}
|
|
1536
1392
|
);
|
|
1537
1393
|
}
|
|
1538
|
-
function
|
|
1539
|
-
var
|
|
1540
|
-
const { isSmallScreen: e } =
|
|
1394
|
+
function no() {
|
|
1395
|
+
var j;
|
|
1396
|
+
const { isSmallScreen: e } = P(), o = le(null), { sendMessage: t } = O(), { sessionState: n } = B(), { t: s } = U(), [i, a] = I(""), {
|
|
1541
1397
|
allFiles: c,
|
|
1542
1398
|
emptyTheFiles: l,
|
|
1543
1399
|
handleCancelUpload: h,
|
|
1544
|
-
appendFiles:
|
|
1545
|
-
isUploading:
|
|
1400
|
+
appendFiles: x,
|
|
1401
|
+
isUploading: u,
|
|
1546
1402
|
successFiles: m
|
|
1547
|
-
} =
|
|
1548
|
-
|
|
1403
|
+
} = Yt(), k = !!((j = n.session) != null && j.isHandedOff), { isAwaitingBotReply: f } = gt(), N = (v) => {
|
|
1404
|
+
x(v);
|
|
1549
1405
|
}, T = !i.trim() && m.length === 0, _ = async () => {
|
|
1550
1406
|
if (f || T) return;
|
|
1551
|
-
|
|
1407
|
+
u && console.info("please wait for the file(s) to upload");
|
|
1552
1408
|
const v = i.trim();
|
|
1553
1409
|
t({
|
|
1554
1410
|
content: v,
|
|
@@ -1567,8 +1423,8 @@ function ur() {
|
|
|
1567
1423
|
}, {
|
|
1568
1424
|
getRootProps: M,
|
|
1569
1425
|
getInputProps: A,
|
|
1570
|
-
open:
|
|
1571
|
-
} =
|
|
1426
|
+
open: F
|
|
1427
|
+
} = Mr({
|
|
1572
1428
|
onDrop: N,
|
|
1573
1429
|
noClick: !0,
|
|
1574
1430
|
onDropRejected() {
|
|
@@ -1585,22 +1441,22 @@ function ur() {
|
|
|
1585
1441
|
"image/gif": [".gif"],
|
|
1586
1442
|
"image/webp": [".webp"]
|
|
1587
1443
|
}
|
|
1588
|
-
}),
|
|
1444
|
+
}), H = (v) => {
|
|
1589
1445
|
const C = v.clipboardData;
|
|
1590
1446
|
C && C.files.length > 0 && N(Array.from(C.files));
|
|
1591
1447
|
};
|
|
1592
1448
|
return /* @__PURE__ */ d(
|
|
1593
1449
|
"div",
|
|
1594
1450
|
{
|
|
1595
|
-
...
|
|
1451
|
+
...g("chat/input_box/root"),
|
|
1596
1452
|
className: "p-2 relative space-y-1",
|
|
1597
1453
|
...M(),
|
|
1598
1454
|
children: [
|
|
1599
|
-
/* @__PURE__ */
|
|
1455
|
+
/* @__PURE__ */ r("input", { ...A() }),
|
|
1600
1456
|
/* @__PURE__ */ d(
|
|
1601
1457
|
"div",
|
|
1602
1458
|
{
|
|
1603
|
-
...
|
|
1459
|
+
...g("chat/input_box/inner_root"),
|
|
1604
1460
|
className: p(
|
|
1605
1461
|
"transition-all",
|
|
1606
1462
|
"bg-white",
|
|
@@ -1612,16 +1468,16 @@ function ur() {
|
|
|
1612
1468
|
/* @__PURE__ */ d(
|
|
1613
1469
|
"div",
|
|
1614
1470
|
{
|
|
1615
|
-
...
|
|
1471
|
+
...g("chat/input_box/textarea_and_attachments_container"),
|
|
1616
1472
|
className: "flex flex-col gap-2",
|
|
1617
1473
|
children: [
|
|
1618
|
-
c.length > 0 && /* @__PURE__ */
|
|
1474
|
+
c.length > 0 && /* @__PURE__ */ r(
|
|
1619
1475
|
"div",
|
|
1620
1476
|
{
|
|
1621
|
-
...
|
|
1477
|
+
...g("chat/input_box/attachments_container"),
|
|
1622
1478
|
className: "flex items-center gap-1",
|
|
1623
|
-
children: /* @__PURE__ */
|
|
1624
|
-
|
|
1479
|
+
children: /* @__PURE__ */ r(S, { mode: "popLayout", children: c.map((v) => /* @__PURE__ */ r(w, { snapExit: !0, children: /* @__PURE__ */ r(
|
|
1480
|
+
oo,
|
|
1625
1481
|
{
|
|
1626
1482
|
onCancel: () => h(v.id),
|
|
1627
1483
|
file: v
|
|
@@ -1629,12 +1485,12 @@ function ur() {
|
|
|
1629
1485
|
) }, v.id)) })
|
|
1630
1486
|
}
|
|
1631
1487
|
),
|
|
1632
|
-
/* @__PURE__ */
|
|
1488
|
+
/* @__PURE__ */ r(
|
|
1633
1489
|
"textarea",
|
|
1634
1490
|
{
|
|
1635
|
-
...
|
|
1636
|
-
onPaste:
|
|
1637
|
-
ref:
|
|
1491
|
+
...g("chat/input_box/textarea"),
|
|
1492
|
+
onPaste: H,
|
|
1493
|
+
ref: o,
|
|
1638
1494
|
id: "chat-input",
|
|
1639
1495
|
value: i,
|
|
1640
1496
|
rows: 3,
|
|
@@ -1653,41 +1509,41 @@ function ur() {
|
|
|
1653
1509
|
onKeyDown: async (v) => {
|
|
1654
1510
|
v.key === "Enter" && !v.shiftKey && (v.preventDefault(), _());
|
|
1655
1511
|
},
|
|
1656
|
-
placeholder: s("
|
|
1512
|
+
placeholder: s("write_a_message_placeholder")
|
|
1657
1513
|
}
|
|
1658
1514
|
)
|
|
1659
1515
|
]
|
|
1660
1516
|
}
|
|
1661
1517
|
),
|
|
1662
1518
|
/* @__PURE__ */ d("div", { className: "gap-2 flex justify-between", children: [
|
|
1663
|
-
/* @__PURE__ */
|
|
1519
|
+
/* @__PURE__ */ r(
|
|
1664
1520
|
J,
|
|
1665
1521
|
{
|
|
1666
1522
|
side: "top",
|
|
1667
1523
|
align: "start",
|
|
1668
1524
|
content: "attach files, (maximum size 5mb)",
|
|
1669
|
-
children: /* @__PURE__ */
|
|
1525
|
+
children: /* @__PURE__ */ r(
|
|
1670
1526
|
y,
|
|
1671
1527
|
{
|
|
1672
|
-
onClick:
|
|
1528
|
+
onClick: F,
|
|
1673
1529
|
size: "fit",
|
|
1674
1530
|
variant: "ghost",
|
|
1675
1531
|
className: p(
|
|
1676
1532
|
"rounded-full size-8 flex items-center justify-center p-0 overflow-hidden"
|
|
1677
1533
|
),
|
|
1678
|
-
children: /* @__PURE__ */
|
|
1534
|
+
children: /* @__PURE__ */ r(S, { mode: "wait", children: k ? /* @__PURE__ */ r(w, { children: /* @__PURE__ */ r(wr, { className: "size-4" }) }, "paper-clip") : /* @__PURE__ */ r(w, { children: /* @__PURE__ */ r(ur, { className: "size-4" }) }, "image-icon") })
|
|
1679
1535
|
}
|
|
1680
1536
|
)
|
|
1681
1537
|
}
|
|
1682
1538
|
),
|
|
1683
|
-
/* @__PURE__ */
|
|
1539
|
+
/* @__PURE__ */ r(J, { content: "send message", side: "top", align: "end", children: /* @__PURE__ */ r(
|
|
1684
1540
|
y,
|
|
1685
1541
|
{
|
|
1686
1542
|
size: "fit",
|
|
1687
1543
|
onClick: _,
|
|
1688
|
-
disabled: f ||
|
|
1544
|
+
disabled: f || u || T,
|
|
1689
1545
|
className: "rounded-full size-8 flex items-center justify-center p-0",
|
|
1690
|
-
children: /* @__PURE__ */
|
|
1546
|
+
children: /* @__PURE__ */ r(S, { mode: "wait", children: f || u ? /* @__PURE__ */ r(w, { snapExit: !0, children: /* @__PURE__ */ r(fr, { className: "size-4 animate-spin animate-iteration-infinite" }) }, "loading") : /* @__PURE__ */ r(w, { snapExit: !0, children: /* @__PURE__ */ r(ut, { className: "size-4" }) }, "send") })
|
|
1691
1547
|
}
|
|
1692
1548
|
) })
|
|
1693
1549
|
] })
|
|
@@ -1698,87 +1554,91 @@ function ur() {
|
|
|
1698
1554
|
}
|
|
1699
1555
|
);
|
|
1700
1556
|
}
|
|
1701
|
-
function
|
|
1702
|
-
const { widgetCtx: e } =
|
|
1703
|
-
return /* @__PURE__ */
|
|
1557
|
+
function at() {
|
|
1558
|
+
const { widgetCtx: e } = R(), { router: o } = b(), { canCreateNewSession: t } = B(), { toSessionsScreen: n } = $(), { t: s } = U();
|
|
1559
|
+
return /* @__PURE__ */ r(te, { children: t || o != null && o.chatScreenOnly ? /* @__PURE__ */ r(y, { onClick: e.resetChat, className: "rounded-2xl w-full", children: s("new_conversation") }) : /* @__PURE__ */ r(y, { onClick: n, className: "rounded-2xl w-full", children: s("back_to_conversations") }) });
|
|
1704
1560
|
}
|
|
1705
|
-
function
|
|
1706
|
-
const { t: e } =
|
|
1707
|
-
return /* @__PURE__ */
|
|
1708
|
-
/* @__PURE__ */
|
|
1709
|
-
/* @__PURE__ */
|
|
1710
|
-
] }, "csat") : /* @__PURE__ */ d(
|
|
1561
|
+
function so() {
|
|
1562
|
+
const { t: e } = U(), { isCsatRequested: o, isCsatSubmitted: t } = mt();
|
|
1563
|
+
return /* @__PURE__ */ r("div", { className: "p-2", children: /* @__PURE__ */ r("div", { className: "p-2 bg-muted rounded-3xl", children: /* @__PURE__ */ r(S, { mode: "wait", children: o || t ? /* @__PURE__ */ d(E, { children: [
|
|
1564
|
+
/* @__PURE__ */ r(to, {}),
|
|
1565
|
+
/* @__PURE__ */ r(S, { mode: "wait", children: t && /* @__PURE__ */ r(E, { children: /* @__PURE__ */ r(at, {}) }, "new-conv-or-back-to-convs-button") })
|
|
1566
|
+
] }, "csat") : /* @__PURE__ */ d(E, { children: [
|
|
1711
1567
|
/* @__PURE__ */ d("div", { className: "ps-2 flex items-center gap-1 pb-2", children: [
|
|
1712
|
-
/* @__PURE__ */
|
|
1713
|
-
/* @__PURE__ */
|
|
1568
|
+
/* @__PURE__ */ r(wt, { className: "size-4 text-emerald-600" }),
|
|
1569
|
+
/* @__PURE__ */ r("h2", { className: "text-sm font-medium", children: e("your_issue_has_been_resolved") })
|
|
1714
1570
|
] }),
|
|
1715
|
-
/* @__PURE__ */
|
|
1571
|
+
/* @__PURE__ */ r(at, {})
|
|
1716
1572
|
] }, "session-closed") }) }) });
|
|
1717
1573
|
}
|
|
1718
|
-
function
|
|
1574
|
+
function io() {
|
|
1719
1575
|
var a;
|
|
1720
|
-
const { initialQuestions: e, initialQuestionsPosition:
|
|
1721
|
-
return /* @__PURE__ */
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1576
|
+
const { initialQuestions: e, initialQuestionsPosition: o, thisWasHelpfulOrNot: t } = b(), { sessionState: n } = B(), { messagesState: s } = O(), i = s.messages.length === 0;
|
|
1577
|
+
return /* @__PURE__ */ r("footer", { children: /* @__PURE__ */ r(S, { mode: "wait", children: n.session && !((a = n.session) != null && a.isOpened) ? /* @__PURE__ */ d(E, { children: [
|
|
1578
|
+
/* @__PURE__ */ r(so, {}),
|
|
1579
|
+
/* @__PURE__ */ r(it, {})
|
|
1580
|
+
] }, "session-closed") : /* @__PURE__ */ d(E, { children: [
|
|
1581
|
+
s.lastAIResMightSolveUserIssue && (t == null ? void 0 : t.enabled) !== !1 && /* @__PURE__ */ r(ro, {}),
|
|
1582
|
+
i && e && o !== "below-initial-messages" && /* @__PURE__ */ r("div", { className: "flex items-center flex-row justify-end gap-2 flex-wrap px-2", children: e == null ? void 0 : e.map((c, l) => /* @__PURE__ */ r(
|
|
1583
|
+
ze,
|
|
1725
1584
|
{
|
|
1726
1585
|
suggestion: c
|
|
1727
1586
|
},
|
|
1728
1587
|
`${c}-${l}`
|
|
1729
1588
|
)) }),
|
|
1730
|
-
/* @__PURE__ */
|
|
1731
|
-
|
|
1589
|
+
/* @__PURE__ */ r(no, {}),
|
|
1590
|
+
/* @__PURE__ */ r(it, {})
|
|
1591
|
+
] }, "chat-input") }) });
|
|
1732
1592
|
}
|
|
1733
|
-
function
|
|
1593
|
+
function ao({
|
|
1734
1594
|
isFirstInGroup: e,
|
|
1735
|
-
isLastInGroup:
|
|
1595
|
+
isLastInGroup: o,
|
|
1736
1596
|
isAloneInGroup: t,
|
|
1737
1597
|
...n
|
|
1738
1598
|
}) {
|
|
1739
|
-
const { componentStore: s } =
|
|
1599
|
+
const { componentStore: s } = R();
|
|
1740
1600
|
if (n.type !== "AGENT" && n.type !== "AI") return null;
|
|
1741
1601
|
if (n.data.action) {
|
|
1742
1602
|
const a = s.getComponent(n.data.action.name);
|
|
1743
1603
|
if (a)
|
|
1744
|
-
return /* @__PURE__ */
|
|
1604
|
+
return /* @__PURE__ */ r(
|
|
1745
1605
|
a,
|
|
1746
1606
|
{
|
|
1747
1607
|
...n,
|
|
1748
1608
|
id: n.id,
|
|
1749
1609
|
isFirstInGroup: e,
|
|
1750
|
-
isLastInGroup:
|
|
1610
|
+
isLastInGroup: o,
|
|
1751
1611
|
isAloneInGroup: t
|
|
1752
1612
|
}
|
|
1753
1613
|
);
|
|
1754
1614
|
}
|
|
1755
1615
|
const i = s.getComponent(n.component);
|
|
1756
|
-
return i ? /* @__PURE__ */
|
|
1616
|
+
return i ? /* @__PURE__ */ r(
|
|
1757
1617
|
i,
|
|
1758
1618
|
{
|
|
1759
1619
|
...n,
|
|
1760
1620
|
id: n.id,
|
|
1761
1621
|
isFirstInGroup: e,
|
|
1762
|
-
isLastInGroup:
|
|
1622
|
+
isLastInGroup: o,
|
|
1763
1623
|
isAloneInGroup: t
|
|
1764
1624
|
}
|
|
1765
|
-
) : /* @__PURE__ */
|
|
1625
|
+
) : /* @__PURE__ */ r(
|
|
1766
1626
|
he,
|
|
1767
1627
|
{
|
|
1768
1628
|
...n,
|
|
1769
1629
|
isFirstInGroup: e,
|
|
1770
|
-
isLastInGroup:
|
|
1630
|
+
isLastInGroup: o,
|
|
1771
1631
|
isAloneInGroup: t
|
|
1772
1632
|
}
|
|
1773
1633
|
);
|
|
1774
1634
|
}
|
|
1775
|
-
function
|
|
1635
|
+
function At({
|
|
1776
1636
|
messages: e,
|
|
1777
|
-
className:
|
|
1637
|
+
className: o,
|
|
1778
1638
|
containerClassName: t
|
|
1779
1639
|
}) {
|
|
1780
1640
|
var a, c;
|
|
1781
|
-
const { timestamps: n } =
|
|
1641
|
+
const { timestamps: n } = b();
|
|
1782
1642
|
if (!((a = n == null ? void 0 : n.perMessageGroup) != null && a.enabled))
|
|
1783
1643
|
return null;
|
|
1784
1644
|
const s = (c = e[e.length - 1]) == null ? void 0 : c.timestamp;
|
|
@@ -1794,24 +1654,24 @@ function Pt({
|
|
|
1794
1654
|
return console.error(l), null;
|
|
1795
1655
|
}
|
|
1796
1656
|
})();
|
|
1797
|
-
return i ? /* @__PURE__ */
|
|
1657
|
+
return i ? /* @__PURE__ */ r("div", { className: t, children: /* @__PURE__ */ r("span", { className: p("text-xs text-muted-foreground", o), children: i }) }) : null;
|
|
1798
1658
|
}
|
|
1799
|
-
function
|
|
1659
|
+
function Ne({
|
|
1800
1660
|
messages: e,
|
|
1801
|
-
agent:
|
|
1661
|
+
agent: o,
|
|
1802
1662
|
suggestedReplies: t
|
|
1803
1663
|
}) {
|
|
1804
1664
|
return /* @__PURE__ */ d(
|
|
1805
1665
|
"div",
|
|
1806
1666
|
{
|
|
1807
|
-
...
|
|
1667
|
+
...g("chat/agent_msg_group/root"),
|
|
1808
1668
|
className: p("flex items-end gap-2"),
|
|
1809
1669
|
children: [
|
|
1810
|
-
/* @__PURE__ */
|
|
1670
|
+
/* @__PURE__ */ r(J, { content: o == null ? void 0 : o.name, side: "right", align: "end", children: /* @__PURE__ */ r(
|
|
1811
1671
|
me,
|
|
1812
1672
|
{
|
|
1813
|
-
...
|
|
1814
|
-
agent:
|
|
1673
|
+
...g("chat/agent_msg_group/root/avatar"),
|
|
1674
|
+
agent: o,
|
|
1815
1675
|
className: "hidden"
|
|
1816
1676
|
}
|
|
1817
1677
|
) }),
|
|
@@ -1819,24 +1679,24 @@ function ze({
|
|
|
1819
1679
|
/* @__PURE__ */ d(
|
|
1820
1680
|
"div",
|
|
1821
1681
|
{
|
|
1822
|
-
...
|
|
1682
|
+
...g("chat/agent_msg_group/avatar_and_msgs/root"),
|
|
1823
1683
|
className: p("flex items-end gap-2"),
|
|
1824
1684
|
children: [
|
|
1825
|
-
/* @__PURE__ */
|
|
1685
|
+
/* @__PURE__ */ r(J, { content: o == null ? void 0 : o.name, side: "right", align: "end", children: /* @__PURE__ */ r(
|
|
1826
1686
|
me,
|
|
1827
1687
|
{
|
|
1828
|
-
...
|
|
1829
|
-
agent:
|
|
1688
|
+
...g("chat/agent_msg_group/avatar_and_msgs/avatar"),
|
|
1689
|
+
agent: o
|
|
1830
1690
|
}
|
|
1831
1691
|
) }),
|
|
1832
1692
|
/* @__PURE__ */ d(
|
|
1833
1693
|
"div",
|
|
1834
1694
|
{
|
|
1835
|
-
...
|
|
1695
|
+
...g("chat/agent_msg_group/avatar_and_msgs/msgs"),
|
|
1836
1696
|
className: p("flex-1 flex flex-col gap-1"),
|
|
1837
1697
|
children: [
|
|
1838
|
-
e.map((n, s, i) => /* @__PURE__ */
|
|
1839
|
-
|
|
1698
|
+
e.map((n, s, i) => /* @__PURE__ */ r(
|
|
1699
|
+
ao,
|
|
1840
1700
|
{
|
|
1841
1701
|
isFirstInGroup: s === 0,
|
|
1842
1702
|
isLastInGroup: s === i.length - 1,
|
|
@@ -1845,20 +1705,20 @@ function ze({
|
|
|
1845
1705
|
},
|
|
1846
1706
|
n.id
|
|
1847
1707
|
)),
|
|
1848
|
-
/* @__PURE__ */
|
|
1708
|
+
/* @__PURE__ */ r(At, { messages: e })
|
|
1849
1709
|
]
|
|
1850
1710
|
}
|
|
1851
1711
|
)
|
|
1852
1712
|
]
|
|
1853
1713
|
}
|
|
1854
1714
|
),
|
|
1855
|
-
t && t.length > 0 && /* @__PURE__ */
|
|
1715
|
+
t && t.length > 0 && /* @__PURE__ */ r(
|
|
1856
1716
|
"div",
|
|
1857
1717
|
{
|
|
1858
|
-
...
|
|
1718
|
+
...g("chat/agent_msg_group/suggestions"),
|
|
1859
1719
|
className: p("flex flex-col gap-1 ps-8"),
|
|
1860
|
-
children: t == null ? void 0 : t.map((n, s) => /* @__PURE__ */
|
|
1861
|
-
|
|
1720
|
+
children: t == null ? void 0 : t.map((n, s) => /* @__PURE__ */ r(
|
|
1721
|
+
ze,
|
|
1862
1722
|
{
|
|
1863
1723
|
suggestion: n
|
|
1864
1724
|
},
|
|
@@ -1871,20 +1731,20 @@ function ze({
|
|
|
1871
1731
|
}
|
|
1872
1732
|
);
|
|
1873
1733
|
}
|
|
1874
|
-
function
|
|
1734
|
+
function lo() {
|
|
1875
1735
|
var s;
|
|
1876
1736
|
const {
|
|
1877
1737
|
widgetCtx: { org: e }
|
|
1878
|
-
} =
|
|
1879
|
-
sessionState: { session:
|
|
1880
|
-
} =
|
|
1881
|
-
if (
|
|
1738
|
+
} = R(), {
|
|
1739
|
+
sessionState: { session: o }
|
|
1740
|
+
} = B(), t = b();
|
|
1741
|
+
if (o != null && o.isOpened || !o) return null;
|
|
1882
1742
|
const n = (s = t.specialComponents) == null ? void 0 : s.onSessionResolved;
|
|
1883
|
-
return n ? /* @__PURE__ */
|
|
1743
|
+
return n ? /* @__PURE__ */ r(n, { react: q, session: o, config: t, org: e }) : null;
|
|
1884
1744
|
}
|
|
1885
|
-
function
|
|
1745
|
+
function co({
|
|
1886
1746
|
message: e,
|
|
1887
|
-
isFirstInGroup:
|
|
1747
|
+
isFirstInGroup: o,
|
|
1888
1748
|
isLastInGroup: t,
|
|
1889
1749
|
isAloneInGroup: n
|
|
1890
1750
|
}) {
|
|
@@ -1892,15 +1752,15 @@ function br({
|
|
|
1892
1752
|
return /* @__PURE__ */ d(
|
|
1893
1753
|
"div",
|
|
1894
1754
|
{
|
|
1895
|
-
...
|
|
1755
|
+
...g("chat/user_msg/root"),
|
|
1896
1756
|
className: "w-5/6 flex flex-col items-end gap-1",
|
|
1897
1757
|
children: [
|
|
1898
|
-
e.attachments && e.attachments.length > 0 && /* @__PURE__ */
|
|
1899
|
-
e.content.length > 0 && /* @__PURE__ */
|
|
1758
|
+
e.attachments && e.attachments.length > 0 && /* @__PURE__ */ r("div", { className: "w-full flex gap-1 flex-wrap justify-end", children: (s = e.attachments) == null ? void 0 : s.map((i) => /* @__PURE__ */ r(It, { attachment: i }, i.id)) }),
|
|
1759
|
+
e.content.length > 0 && /* @__PURE__ */ r(
|
|
1900
1760
|
"div",
|
|
1901
1761
|
{
|
|
1902
|
-
...
|
|
1903
|
-
"data-first":
|
|
1762
|
+
...g("chat/user_msg/msg"),
|
|
1763
|
+
"data-first": o,
|
|
1904
1764
|
"data-last": t,
|
|
1905
1765
|
"data-alone": n,
|
|
1906
1766
|
className: p(
|
|
@@ -1911,9 +1771,9 @@ function br({
|
|
|
1911
1771
|
// `[word-break:break-word]` is deprecated but works in the browser, while `break-words` which is `[overflow-wrap: break-word]` does not work
|
|
1912
1772
|
"whitespace-pre-wrap",
|
|
1913
1773
|
// We're using the booleans directly here, not the data attributes, to make any external styling more specific than this
|
|
1914
|
-
|
|
1774
|
+
o && !n && "rounded-br-md",
|
|
1915
1775
|
t && !n && "rounded-tr-md",
|
|
1916
|
-
!
|
|
1776
|
+
!o && !t && !n && "rounded-r-md"
|
|
1917
1777
|
),
|
|
1918
1778
|
children: e.content
|
|
1919
1779
|
}
|
|
@@ -1922,63 +1782,63 @@ function br({
|
|
|
1922
1782
|
}
|
|
1923
1783
|
);
|
|
1924
1784
|
}
|
|
1925
|
-
function
|
|
1785
|
+
function po({
|
|
1926
1786
|
messages: e
|
|
1927
1787
|
}) {
|
|
1928
1788
|
return /* @__PURE__ */ d(
|
|
1929
1789
|
"div",
|
|
1930
1790
|
{
|
|
1931
|
-
...
|
|
1791
|
+
...g("chat/user_msg_group/root"),
|
|
1932
1792
|
className: p("group", "flex flex-col gap-1 justify-end items-end"),
|
|
1933
1793
|
children: [
|
|
1934
|
-
e.map((
|
|
1935
|
-
|
|
1794
|
+
e.map((o, t, n) => /* @__PURE__ */ r(
|
|
1795
|
+
co,
|
|
1936
1796
|
{
|
|
1937
|
-
message:
|
|
1797
|
+
message: o,
|
|
1938
1798
|
isFirstInGroup: t === 0,
|
|
1939
1799
|
isLastInGroup: t === n.length - 1,
|
|
1940
1800
|
isAloneInGroup: n.length === 1
|
|
1941
1801
|
},
|
|
1942
|
-
|
|
1802
|
+
o.id
|
|
1943
1803
|
)),
|
|
1944
|
-
/* @__PURE__ */
|
|
1804
|
+
/* @__PURE__ */ r(At, { messages: e, containerClassName: "ms-auto" })
|
|
1945
1805
|
]
|
|
1946
1806
|
}
|
|
1947
1807
|
);
|
|
1948
1808
|
}
|
|
1949
|
-
function
|
|
1950
|
-
const
|
|
1809
|
+
function ho(e) {
|
|
1810
|
+
const o = [];
|
|
1951
1811
|
let t = null;
|
|
1952
1812
|
return e.forEach((n) => {
|
|
1953
1813
|
var s, i, a, c, l, h;
|
|
1954
|
-
(!t || ((s = t[0]) == null ? void 0 : s.type) !== n.type) && (t = [],
|
|
1955
|
-
}),
|
|
1814
|
+
(!t || ((s = t[0]) == null ? void 0 : s.type) !== n.type) && (t = [], o.push(t)), ((i = t[0]) == null ? void 0 : i.type) === "AGENT" && n.type === "AGENT" && (((a = n.agent) == null ? void 0 : a.id) !== ((c = t[0].agent) == null ? void 0 : c.id) || ((l = n.agent) == null ? void 0 : l.name) !== ((h = t[0].agent) == null ? void 0 : h.name)) && (t = [], o.push(t)), t.push(n);
|
|
1815
|
+
}), o;
|
|
1956
1816
|
}
|
|
1957
|
-
function
|
|
1958
|
-
var
|
|
1959
|
-
return ((
|
|
1817
|
+
function mo(e) {
|
|
1818
|
+
var o;
|
|
1819
|
+
return ((o = e == null ? void 0 : e[0]) == null ? void 0 : o.type) === "USER";
|
|
1960
1820
|
}
|
|
1961
|
-
function
|
|
1962
|
-
var
|
|
1963
|
-
return ((
|
|
1821
|
+
function go(e) {
|
|
1822
|
+
var o;
|
|
1823
|
+
return ((o = e == null ? void 0 : e[0]) == null ? void 0 : o.type) === "AI";
|
|
1964
1824
|
}
|
|
1965
|
-
function
|
|
1966
|
-
var
|
|
1967
|
-
return ((
|
|
1825
|
+
function wo(e) {
|
|
1826
|
+
var o;
|
|
1827
|
+
return ((o = e == null ? void 0 : e[0]) == null ? void 0 : o.type) === "AGENT";
|
|
1968
1828
|
}
|
|
1969
|
-
function
|
|
1829
|
+
function uo() {
|
|
1970
1830
|
const {
|
|
1971
1831
|
messagesState: { messages: e }
|
|
1972
|
-
} =
|
|
1973
|
-
advancedInitialMessages:
|
|
1832
|
+
} = O(), {
|
|
1833
|
+
advancedInitialMessages: o = [],
|
|
1974
1834
|
initialQuestionsPosition: t,
|
|
1975
1835
|
initialQuestions: n,
|
|
1976
1836
|
bot: s
|
|
1977
|
-
} =
|
|
1978
|
-
return /* @__PURE__ */
|
|
1979
|
-
|
|
1837
|
+
} = b();
|
|
1838
|
+
return /* @__PURE__ */ r(te, { children: e.length === 0 && o.length > 0 && /* @__PURE__ */ r(
|
|
1839
|
+
Ne,
|
|
1980
1840
|
{
|
|
1981
|
-
messages:
|
|
1841
|
+
messages: o.map(
|
|
1982
1842
|
({ message: i }, a) => ({
|
|
1983
1843
|
component: "bot_message",
|
|
1984
1844
|
data: { message: i },
|
|
@@ -1992,27 +1852,27 @@ function Nr() {
|
|
|
1992
1852
|
}
|
|
1993
1853
|
) });
|
|
1994
1854
|
}
|
|
1995
|
-
function
|
|
1855
|
+
function fo() {
|
|
1996
1856
|
const {
|
|
1997
1857
|
messagesState: { messages: e }
|
|
1998
|
-
} =
|
|
1999
|
-
return !(
|
|
2000
|
-
({ message: t, persistent: n }, s) => e.length > 0 && !n ? null : /* @__PURE__ */
|
|
1858
|
+
} = O(), { chatBannerItems: o } = b();
|
|
1859
|
+
return !(o != null && o.length) || e.length > 0 && o.every((t) => !t.persistent) ? null : /* @__PURE__ */ r("div", { className: "w-full text-center text-xs", children: o.map(
|
|
1860
|
+
({ message: t, persistent: n }, s) => e.length > 0 && !n ? null : /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(ve, { children: t }) }, `${t}-${s}`)
|
|
2001
1861
|
) });
|
|
2002
1862
|
}
|
|
2003
|
-
function
|
|
1863
|
+
function vo() {
|
|
2004
1864
|
const {
|
|
2005
1865
|
messagesState: { messages: e }
|
|
2006
|
-
} =
|
|
1866
|
+
} = O(), o = b(), {
|
|
2007
1867
|
advancedInitialMessages: t = [],
|
|
2008
1868
|
initialQuestions: n,
|
|
2009
1869
|
initialQuestionsPosition: s
|
|
2010
|
-
} =
|
|
1870
|
+
} = o, i = (() => {
|
|
2011
1871
|
var a;
|
|
2012
|
-
return t.length ? [] : e.length ? [] : (a =
|
|
1872
|
+
return t.length ? [] : e.length ? [] : (a = o.initialMessages) != null && a.length ? o.initialMessages : ["Hello, how can I help you?"];
|
|
2013
1873
|
})();
|
|
2014
|
-
return /* @__PURE__ */
|
|
2015
|
-
|
|
1874
|
+
return /* @__PURE__ */ r(te, { children: e.length === 0 && i.length > 0 && /* @__PURE__ */ r(
|
|
1875
|
+
Ne,
|
|
2016
1876
|
{
|
|
2017
1877
|
messages: i.map(
|
|
2018
1878
|
(a, c) => ({
|
|
@@ -2024,15 +1884,15 @@ function _r() {
|
|
|
2024
1884
|
})
|
|
2025
1885
|
),
|
|
2026
1886
|
suggestedReplies: s === "below-initial-messages" ? n : void 0,
|
|
2027
|
-
agent:
|
|
1887
|
+
agent: o.bot ? { ...o.bot, isAi: !0, id: null } : void 0
|
|
2028
1888
|
}
|
|
2029
1889
|
) });
|
|
2030
1890
|
}
|
|
2031
|
-
function
|
|
1891
|
+
function xo() {
|
|
2032
1892
|
const {
|
|
2033
1893
|
messagesState: { messages: e }
|
|
2034
|
-
} =
|
|
2035
|
-
() =>
|
|
1894
|
+
} = O(), { isAwaitingBotReply: o } = gt(), { componentStore: t } = R(), n = b(), s = pt(
|
|
1895
|
+
() => ho(e),
|
|
2036
1896
|
[e]
|
|
2037
1897
|
), i = t.getComponent(
|
|
2038
1898
|
"loading"
|
|
@@ -2043,58 +1903,58 @@ function Ir() {
|
|
|
2043
1903
|
l && (l.scrollTop = l.scrollHeight);
|
|
2044
1904
|
}, 0);
|
|
2045
1905
|
}
|
|
2046
|
-
return
|
|
1906
|
+
return re(() => {
|
|
2047
1907
|
c();
|
|
2048
1908
|
}, [e]), /* @__PURE__ */ d(
|
|
2049
1909
|
"div",
|
|
2050
1910
|
{
|
|
2051
|
-
...
|
|
1911
|
+
...g("chat/msgs/root"),
|
|
2052
1912
|
ref: a,
|
|
2053
1913
|
className: "max-h-full scroll-smooth relative flex-1 py-2 px-4 flex flex-col gap-2 overflow-auto",
|
|
2054
1914
|
children: [
|
|
2055
|
-
/* @__PURE__ */
|
|
2056
|
-
/* @__PURE__ */
|
|
2057
|
-
/* @__PURE__ */
|
|
1915
|
+
/* @__PURE__ */ r(fo, {}),
|
|
1916
|
+
/* @__PURE__ */ r(uo, {}),
|
|
1917
|
+
/* @__PURE__ */ r(vo, {}),
|
|
2058
1918
|
s.map((l) => {
|
|
2059
|
-
var
|
|
2060
|
-
const h = (
|
|
2061
|
-
if (!h || !
|
|
2062
|
-
if (
|
|
2063
|
-
return /* @__PURE__ */
|
|
2064
|
-
if (
|
|
1919
|
+
var u, m, k;
|
|
1920
|
+
const h = (u = l == null ? void 0 : l[0]) == null ? void 0 : u.type, x = (m = l[0]) == null ? void 0 : m.id;
|
|
1921
|
+
if (!h || !x) return null;
|
|
1922
|
+
if (mo(l))
|
|
1923
|
+
return /* @__PURE__ */ r(po, { messages: l }, x);
|
|
1924
|
+
if (go(l) || wo(l)) {
|
|
2065
1925
|
const f = (k = l[0]) == null ? void 0 : k.agent;
|
|
2066
|
-
return /* @__PURE__ */
|
|
2067
|
-
|
|
1926
|
+
return /* @__PURE__ */ r(
|
|
1927
|
+
Ne,
|
|
2068
1928
|
{
|
|
2069
1929
|
messages: l,
|
|
2070
1930
|
agent: f
|
|
2071
1931
|
},
|
|
2072
|
-
|
|
1932
|
+
x
|
|
2073
1933
|
);
|
|
2074
1934
|
}
|
|
2075
1935
|
return null;
|
|
2076
1936
|
}),
|
|
2077
|
-
|
|
2078
|
-
/* @__PURE__ */
|
|
1937
|
+
o && i && /* @__PURE__ */ r(i, { agent: n.bot }),
|
|
1938
|
+
/* @__PURE__ */ r(lo, {})
|
|
2079
1939
|
]
|
|
2080
1940
|
}
|
|
2081
1941
|
);
|
|
2082
1942
|
}
|
|
2083
|
-
function
|
|
1943
|
+
function bo() {
|
|
2084
1944
|
const {
|
|
2085
1945
|
messagesState: { isInitialFetchLoading: e }
|
|
2086
|
-
} =
|
|
2087
|
-
sessionState: { session:
|
|
2088
|
-
} =
|
|
2089
|
-
|
|
1946
|
+
} = O(), {
|
|
1947
|
+
sessionState: { session: o }
|
|
1948
|
+
} = B(), { isCanvasOpen: t } = Zr(), { theme: n } = X();
|
|
1949
|
+
ke({
|
|
2090
1950
|
width: t ? n.screens.chat.withCanvas.width : n.screens.chat.width,
|
|
2091
1951
|
height: t ? n.screens.chat.withCanvas.height : n.screens.chat.height
|
|
2092
1952
|
});
|
|
2093
|
-
const s = le((
|
|
2094
|
-
return /* @__PURE__ */
|
|
1953
|
+
const s = le((o == null ? void 0 : o.id) || "chat").current;
|
|
1954
|
+
return /* @__PURE__ */ r(
|
|
2095
1955
|
"div",
|
|
2096
1956
|
{
|
|
2097
|
-
...
|
|
1957
|
+
...g("chat/root"),
|
|
2098
1958
|
className: p("flex flex-col overflow-hidden"),
|
|
2099
1959
|
style: {
|
|
2100
1960
|
width: "100vw",
|
|
@@ -2107,16 +1967,16 @@ function Tr() {
|
|
|
2107
1967
|
// Relative to the iframe
|
|
2108
1968
|
},
|
|
2109
1969
|
children: /* @__PURE__ */ d("div", { className: "size-full justify-between flex flex-col", children: [
|
|
2110
|
-
/* @__PURE__ */
|
|
2111
|
-
/* @__PURE__ */
|
|
2112
|
-
|
|
1970
|
+
/* @__PURE__ */ r(Ot, {}),
|
|
1971
|
+
/* @__PURE__ */ r(S, { mode: "wait", children: e ? /* @__PURE__ */ r(
|
|
1972
|
+
w,
|
|
2113
1973
|
{
|
|
2114
1974
|
className: "flex flex-col items-center justify-center w-full flex-1",
|
|
2115
|
-
children: /* @__PURE__ */
|
|
1975
|
+
children: /* @__PURE__ */ r(Pt, {})
|
|
2116
1976
|
},
|
|
2117
1977
|
"loading"
|
|
2118
1978
|
) : /* @__PURE__ */ d(
|
|
2119
|
-
|
|
1979
|
+
w,
|
|
2120
1980
|
{
|
|
2121
1981
|
className: "flex items-start h-full flex-1 overflow-auto",
|
|
2122
1982
|
snapExit: !0,
|
|
@@ -2124,7 +1984,7 @@ function Tr() {
|
|
|
2124
1984
|
/* @__PURE__ */ d(
|
|
2125
1985
|
"div",
|
|
2126
1986
|
{
|
|
2127
|
-
...
|
|
1987
|
+
...g("chat/main/root"),
|
|
2128
1988
|
className: p(
|
|
2129
1989
|
"flex flex-col h-full overflow-auto transition-all",
|
|
2130
1990
|
t ? "w-2/5" : "w-full"
|
|
@@ -2134,15 +1994,15 @@ function Tr() {
|
|
|
2134
1994
|
transitionDuration: n.screens.chat.withCanvas.transitionDuration
|
|
2135
1995
|
},
|
|
2136
1996
|
children: [
|
|
2137
|
-
/* @__PURE__ */
|
|
2138
|
-
/* @__PURE__ */
|
|
1997
|
+
/* @__PURE__ */ r(xo, {}),
|
|
1998
|
+
/* @__PURE__ */ r(io, {})
|
|
2139
1999
|
]
|
|
2140
2000
|
}
|
|
2141
2001
|
),
|
|
2142
|
-
/* @__PURE__ */
|
|
2002
|
+
/* @__PURE__ */ r(
|
|
2143
2003
|
"div",
|
|
2144
2004
|
{
|
|
2145
|
-
...
|
|
2005
|
+
...g("chat/canvas/root"),
|
|
2146
2006
|
className: p(
|
|
2147
2007
|
"h-full overflow-auto transition-all",
|
|
2148
2008
|
t ? "w-3/5" : "w-0"
|
|
@@ -2151,7 +2011,7 @@ function Tr() {
|
|
|
2151
2011
|
transitionTimingFunction: n.screens.chat.withCanvas.transitionTimingFunction,
|
|
2152
2012
|
transitionDuration: n.screens.chat.withCanvas.transitionDuration
|
|
2153
2013
|
},
|
|
2154
|
-
children: /* @__PURE__ */
|
|
2014
|
+
children: /* @__PURE__ */ r(Jr, {})
|
|
2155
2015
|
}
|
|
2156
2016
|
)
|
|
2157
2017
|
]
|
|
@@ -2162,20 +2022,20 @@ function Tr() {
|
|
|
2162
2022
|
}
|
|
2163
2023
|
);
|
|
2164
2024
|
}
|
|
2165
|
-
function
|
|
2025
|
+
function yo({
|
|
2166
2026
|
className: e,
|
|
2167
|
-
...
|
|
2027
|
+
...o
|
|
2168
2028
|
}) {
|
|
2169
|
-
return /* @__PURE__ */
|
|
2029
|
+
return /* @__PURE__ */ r(
|
|
2170
2030
|
"div",
|
|
2171
2031
|
{
|
|
2172
2032
|
className: p("animate-pulse rounded-md bg-secondary", e),
|
|
2173
|
-
...
|
|
2033
|
+
...o
|
|
2174
2034
|
}
|
|
2175
2035
|
);
|
|
2176
2036
|
}
|
|
2177
|
-
function
|
|
2178
|
-
return /* @__PURE__ */
|
|
2037
|
+
function ko({ className: e }) {
|
|
2038
|
+
return /* @__PURE__ */ r(
|
|
2179
2039
|
"svg",
|
|
2180
2040
|
{
|
|
2181
2041
|
width: "26",
|
|
@@ -2184,7 +2044,7 @@ function Dr({ className: e }) {
|
|
|
2184
2044
|
fill: "none",
|
|
2185
2045
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2186
2046
|
className: p("text-primary-foreground", e),
|
|
2187
|
-
children: /* @__PURE__ */
|
|
2047
|
+
children: /* @__PURE__ */ r(
|
|
2188
2048
|
"path",
|
|
2189
2049
|
{
|
|
2190
2050
|
d: "M1.34103 25.6132H5.44245C5.74203 25.6228 6.02673 25.7462 6.23867 25.9582C6.45062 26.1703 6.5739 26.4551 6.58348 26.7548V30.8584C6.59305 31.1581 6.71634 31.443 6.92828 31.655C7.14023 31.8671 7.42492 31.9904 7.7245 32H18.2894C18.589 31.9904 18.8737 31.8671 19.0856 31.655C19.2976 31.443 19.4209 31.1581 19.4304 30.8584V26.7548C19.4401 26.4545 19.5638 26.1692 19.7765 25.957C19.9892 25.7449 20.2748 25.6219 20.5749 25.6132H24.659C24.9586 25.6036 25.2433 25.4803 25.4552 25.2682C25.6671 25.0562 25.7904 24.7713 25.8 24.4716V7.52839C25.7904 7.22865 25.6671 6.94381 25.4552 6.73176C25.2433 6.5197 24.9586 6.39635 24.659 6.38677H20.561C20.2603 6.37802 19.9742 6.25457 19.7614 6.04169C19.5487 5.82881 19.4253 5.54261 19.4165 5.24168V1.14161C19.4072 0.84419 19.2858 0.561291 19.0768 0.349589C18.8678 0.137887 18.5865 0.0130193 18.2894 0L7.7245 0C7.42492 0.00957792 7.14023 0.132929 6.92828 0.344983C6.71634 0.557036 6.59305 0.841878 6.58348 1.14161V5.24168C6.57477 5.54203 6.45187 5.82773 6.23983 6.04052C6.0278 6.25331 5.74262 6.37715 5.44245 6.38677H1.34103C1.04144 6.39635 0.756749 6.5197 0.544805 6.73176C0.332861 6.94381 0.209574 7.22865 0.200001 7.52839V24.4716C0.209574 24.7713 0.332861 25.0562 0.544805 25.2682C0.756749 25.4803 1.04144 25.6036 1.34103 25.6132ZM6.58348 24.4716V7.52839C6.59305 7.22865 6.71634 6.94381 6.92828 6.73176C7.14023 6.5197 7.42492 6.39635 7.7245 6.38677H18.2894C18.589 6.39635 18.8737 6.5197 19.0856 6.73176C19.2976 6.94381 19.4209 7.22865 19.4304 7.52839V24.4716C19.4209 24.7713 19.2976 25.0562 19.0856 25.2682C18.8737 25.4803 18.589 25.6036 18.2894 25.6132H7.7245C7.42492 25.6036 7.14023 25.4803 6.92828 25.2682C6.71634 25.0562 6.59305 24.7713 6.58348 24.4716Z",
|
|
@@ -2194,19 +2054,19 @@ function Dr({ className: e }) {
|
|
|
2194
2054
|
}
|
|
2195
2055
|
);
|
|
2196
2056
|
}
|
|
2197
|
-
function
|
|
2198
|
-
const { token:
|
|
2199
|
-
return /* @__PURE__ */
|
|
2057
|
+
function Ft({ className: e }) {
|
|
2058
|
+
const { token: o } = b();
|
|
2059
|
+
return /* @__PURE__ */ r(
|
|
2200
2060
|
"div",
|
|
2201
2061
|
{
|
|
2202
2062
|
className: p(
|
|
2203
2063
|
"flex items-center justify-center gap-2 p-2 pt-0",
|
|
2204
2064
|
e
|
|
2205
2065
|
),
|
|
2206
|
-
children: /* @__PURE__ */
|
|
2066
|
+
children: /* @__PURE__ */ r(W, { children: /* @__PURE__ */ d(
|
|
2207
2067
|
"a",
|
|
2208
2068
|
{
|
|
2209
|
-
href: `https://open.cx/?ref=${
|
|
2069
|
+
href: `https://open.cx/?ref=${o}`,
|
|
2210
2070
|
target: "_blank",
|
|
2211
2071
|
rel: "noreferrer",
|
|
2212
2072
|
className: p(
|
|
@@ -2215,11 +2075,11 @@ function Wt({ className: e }) {
|
|
|
2215
2075
|
"hover:text-primary [&_svg]:hover:text-primary"
|
|
2216
2076
|
),
|
|
2217
2077
|
children: [
|
|
2218
|
-
/* @__PURE__ */
|
|
2219
|
-
/* @__PURE__ */
|
|
2078
|
+
/* @__PURE__ */ r("span", { children: "Powered by" }),
|
|
2079
|
+
/* @__PURE__ */ r("span", { children: " " }),
|
|
2220
2080
|
/* @__PURE__ */ d("span", { className: "flex items-center gap-[1px]", children: [
|
|
2221
|
-
/* @__PURE__ */
|
|
2222
|
-
/* @__PURE__ */
|
|
2081
|
+
/* @__PURE__ */ r("span", { children: /* @__PURE__ */ r(ko, { className: "size-3 inline-block" }) }),
|
|
2082
|
+
/* @__PURE__ */ r("span", { className: "font-semibold", children: "open" })
|
|
2223
2083
|
] })
|
|
2224
2084
|
]
|
|
2225
2085
|
}
|
|
@@ -2227,14 +2087,14 @@ function Wt({ className: e }) {
|
|
|
2227
2087
|
}
|
|
2228
2088
|
);
|
|
2229
2089
|
}
|
|
2230
|
-
function
|
|
2231
|
-
return /* @__PURE__ */
|
|
2090
|
+
function Co({ children: e }) {
|
|
2091
|
+
return /* @__PURE__ */ r("p", { className: "ps-4 text-xs text-muted-foreground/75 uppercase font-semibold tracking-tight", children: e });
|
|
2232
2092
|
}
|
|
2233
|
-
function
|
|
2093
|
+
function lt({
|
|
2234
2094
|
session: e,
|
|
2235
|
-
className:
|
|
2095
|
+
className: o
|
|
2236
2096
|
}) {
|
|
2237
|
-
const { bot: t } =
|
|
2097
|
+
const { bot: t } = b(), { toChatScreen: n } = $(), s = e.assignee.kind === "human" ? e.assignee.name || "Support Agent" : (t == null ? void 0 : t.name) || "AI Support Agent", i = e.assignee.kind === "human" ? e.assignee.avatarUrl || "" : (t == null ? void 0 : t.avatar) || "";
|
|
2238
2098
|
return /* @__PURE__ */ d(
|
|
2239
2099
|
y,
|
|
2240
2100
|
{
|
|
@@ -2242,74 +2102,74 @@ function at({
|
|
|
2242
2102
|
size: "lg",
|
|
2243
2103
|
className: p(
|
|
2244
2104
|
"rounded-full p-2 pe-4 flex text-start justify-between w-full whitespace-normal",
|
|
2245
|
-
|
|
2105
|
+
o
|
|
2246
2106
|
),
|
|
2247
2107
|
onClick: () => n(e.id),
|
|
2248
2108
|
children: [
|
|
2249
2109
|
/* @__PURE__ */ d("div", { className: "flex-1 flex gap-2 items-center", children: [
|
|
2250
|
-
/* @__PURE__ */
|
|
2251
|
-
/* @__PURE__ */
|
|
2252
|
-
/* @__PURE__ */
|
|
2110
|
+
/* @__PURE__ */ r(S, { mode: "wait", children: /* @__PURE__ */ r(w, { snapExit: !0, children: /* @__PURE__ */ d(xe, { className: "size-10", children: [
|
|
2111
|
+
/* @__PURE__ */ r(be, { src: i, alt: "Agent Icon" }),
|
|
2112
|
+
/* @__PURE__ */ r(ye, { children: /* @__PURE__ */ r(Cr, { className: "size-4" }) })
|
|
2253
2113
|
] }) }) }),
|
|
2254
2114
|
/* @__PURE__ */ d("div", { className: "flex-1", children: [
|
|
2255
|
-
/* @__PURE__ */
|
|
2256
|
-
/* @__PURE__ */
|
|
2257
|
-
|
|
2115
|
+
/* @__PURE__ */ r(S, { mode: "wait", children: /* @__PURE__ */ r(w, { snapExit: !0, children: s }, s) }),
|
|
2116
|
+
/* @__PURE__ */ r(S, { mode: "wait", children: e.lastMessage ? /* @__PURE__ */ r(w, { snapExit: !0, children: /* @__PURE__ */ r(
|
|
2117
|
+
Tt,
|
|
2258
2118
|
{
|
|
2259
|
-
remarkPlugins: [
|
|
2260
|
-
rehypePlugins: [
|
|
2119
|
+
remarkPlugins: [ft],
|
|
2120
|
+
rehypePlugins: [vt],
|
|
2261
2121
|
className: "line-clamp-1 overflow-hidden text-ellipsis text-xs text-muted-foreground",
|
|
2262
2122
|
children: e.lastMessage
|
|
2263
2123
|
}
|
|
2264
|
-
) }, e.lastMessage || "content") : /* @__PURE__ */
|
|
2124
|
+
) }, e.lastMessage || "content") : /* @__PURE__ */ r(w, { className: "w-1/2", snapExit: !0, children: /* @__PURE__ */ r(yo, { className: "h-4 w-full" }) }, "skeleton") })
|
|
2265
2125
|
] })
|
|
2266
2126
|
] }),
|
|
2267
|
-
/* @__PURE__ */
|
|
2127
|
+
/* @__PURE__ */ r(zr, { className: "size-4 text-muted-foreground shrink-0 rtl:-scale-100" })
|
|
2268
2128
|
]
|
|
2269
2129
|
}
|
|
2270
2130
|
);
|
|
2271
2131
|
}
|
|
2272
|
-
function
|
|
2273
|
-
const { t: e } =
|
|
2132
|
+
function zo() {
|
|
2133
|
+
const { t: e } = U(), { toChatScreen: o } = $(), {
|
|
2274
2134
|
sessionsState: { data: t, isInitialFetchLoading: n },
|
|
2275
2135
|
openSessions: s,
|
|
2276
2136
|
closedSessions: i,
|
|
2277
2137
|
canCreateNewSession: a
|
|
2278
|
-
} =
|
|
2279
|
-
return /* @__PURE__ */
|
|
2280
|
-
|
|
2138
|
+
} = B();
|
|
2139
|
+
return /* @__PURE__ */ r("div", { className: "flex-1 flex flex-col overflow-scroll py-2 px-2", children: /* @__PURE__ */ r(S, { mode: "wait", children: n ? /* @__PURE__ */ r(
|
|
2140
|
+
w,
|
|
2281
2141
|
{
|
|
2282
2142
|
className: "flex-1 flex items-center justify-center",
|
|
2283
|
-
children: /* @__PURE__ */
|
|
2143
|
+
children: /* @__PURE__ */ r(Pt, {})
|
|
2284
2144
|
},
|
|
2285
2145
|
"loading"
|
|
2286
|
-
) : /* @__PURE__ */
|
|
2287
|
-
|
|
2146
|
+
) : /* @__PURE__ */ r(
|
|
2147
|
+
w,
|
|
2288
2148
|
{
|
|
2289
2149
|
className: "flex-1 flex flex-col gap-2 relative",
|
|
2290
2150
|
children: t.length ? /* @__PURE__ */ d(te, { children: [
|
|
2291
2151
|
/* @__PURE__ */ d(S, { children: [
|
|
2292
|
-
s.length > 0 && /* @__PURE__ */
|
|
2293
|
-
|
|
2152
|
+
s.length > 0 && /* @__PURE__ */ r(
|
|
2153
|
+
w,
|
|
2294
2154
|
{
|
|
2295
2155
|
fadeIn: "up",
|
|
2296
2156
|
delay: 0.2,
|
|
2297
2157
|
className: "space-y-2",
|
|
2298
2158
|
snapExit: !0,
|
|
2299
|
-
children: s.map((c) => /* @__PURE__ */
|
|
2159
|
+
children: s.map((c) => /* @__PURE__ */ r(lt, { session: c }, c.id))
|
|
2300
2160
|
},
|
|
2301
2161
|
"open-sessions"
|
|
2302
2162
|
),
|
|
2303
2163
|
i.length > 0 && /* @__PURE__ */ d(
|
|
2304
|
-
|
|
2164
|
+
w,
|
|
2305
2165
|
{
|
|
2306
2166
|
className: "space-y-2",
|
|
2307
2167
|
delay: 0.2,
|
|
2308
2168
|
snapExit: !0,
|
|
2309
2169
|
children: [
|
|
2310
|
-
/* @__PURE__ */
|
|
2311
|
-
i.map((c) => /* @__PURE__ */
|
|
2312
|
-
|
|
2170
|
+
/* @__PURE__ */ r(Co, { children: e("closed_conversations") }),
|
|
2171
|
+
i.map((c) => /* @__PURE__ */ r(
|
|
2172
|
+
lt,
|
|
2313
2173
|
{
|
|
2314
2174
|
session: c,
|
|
2315
2175
|
className: "opacity-50 hover:opacity-100"
|
|
@@ -2321,44 +2181,44 @@ function Er() {
|
|
|
2321
2181
|
"closed-sessions"
|
|
2322
2182
|
)
|
|
2323
2183
|
] }),
|
|
2324
|
-
a && /* @__PURE__ */
|
|
2184
|
+
a && /* @__PURE__ */ r("div", { className: "mt-auto w-full rounded-3xl sticky bottom-0 outline outline-8 outline-background bg-background", children: /* @__PURE__ */ rt(
|
|
2325
2185
|
y,
|
|
2326
2186
|
{
|
|
2327
|
-
...
|
|
2187
|
+
...g("sessions/new_conversation_btn"),
|
|
2328
2188
|
size: "lg",
|
|
2329
2189
|
key: "new-session",
|
|
2330
2190
|
className: "w-full",
|
|
2331
|
-
onClick: () =>
|
|
2191
|
+
onClick: () => o()
|
|
2332
2192
|
},
|
|
2333
|
-
e("
|
|
2193
|
+
e("new_conversation")
|
|
2334
2194
|
) })
|
|
2335
2195
|
] }) : /* @__PURE__ */ d("div", { className: "flex-1 flex flex-col gap-2 items-center", children: [
|
|
2336
|
-
/* @__PURE__ */
|
|
2337
|
-
/* @__PURE__ */
|
|
2196
|
+
/* @__PURE__ */ r("div", { className: "flex-1 flex items-center justify-center", children: /* @__PURE__ */ r("p", { className: "text-muted-foreground", children: e("no_conversations_yet") }) }),
|
|
2197
|
+
/* @__PURE__ */ rt(
|
|
2338
2198
|
y,
|
|
2339
2199
|
{
|
|
2340
|
-
...
|
|
2200
|
+
...g("sessions/new_conversation_btn"),
|
|
2341
2201
|
size: "lg",
|
|
2342
2202
|
key: "new-session",
|
|
2343
2203
|
className: "w-full",
|
|
2344
|
-
onClick: () =>
|
|
2204
|
+
onClick: () => o()
|
|
2345
2205
|
},
|
|
2346
|
-
e("
|
|
2206
|
+
e("new_conversation")
|
|
2347
2207
|
)
|
|
2348
2208
|
] })
|
|
2349
2209
|
},
|
|
2350
2210
|
"sessions"
|
|
2351
2211
|
) }) });
|
|
2352
2212
|
}
|
|
2353
|
-
function
|
|
2354
|
-
const { theme: e } =
|
|
2355
|
-
return
|
|
2213
|
+
function No() {
|
|
2214
|
+
const { theme: e } = X();
|
|
2215
|
+
return ke({
|
|
2356
2216
|
width: e.screens.sessions.width,
|
|
2357
2217
|
height: e.screens.sessions.height
|
|
2358
|
-
}), /* @__PURE__ */
|
|
2218
|
+
}), /* @__PURE__ */ r(
|
|
2359
2219
|
"div",
|
|
2360
2220
|
{
|
|
2361
|
-
...
|
|
2221
|
+
...g("sessions/root"),
|
|
2362
2222
|
className: p("flex flex-col overflow-hidden bg-background"),
|
|
2363
2223
|
style: {
|
|
2364
2224
|
width: "100vw",
|
|
@@ -2371,20 +2231,20 @@ function Rr() {
|
|
|
2371
2231
|
// Relative to the iframe
|
|
2372
2232
|
},
|
|
2373
2233
|
children: /* @__PURE__ */ d("div", { className: "size-full flex flex-col", children: [
|
|
2374
|
-
/* @__PURE__ */
|
|
2375
|
-
/* @__PURE__ */
|
|
2376
|
-
/* @__PURE__ */
|
|
2234
|
+
/* @__PURE__ */ r(Ot, {}),
|
|
2235
|
+
/* @__PURE__ */ r(zo, {}),
|
|
2236
|
+
/* @__PURE__ */ r(Ft, {})
|
|
2377
2237
|
] })
|
|
2378
2238
|
}
|
|
2379
2239
|
);
|
|
2380
2240
|
}
|
|
2381
|
-
const
|
|
2382
|
-
({ className: e, type:
|
|
2383
|
-
const { isSmallScreen: s } =
|
|
2384
|
-
return /* @__PURE__ */
|
|
2241
|
+
const ie = G.forwardRef(
|
|
2242
|
+
({ className: e, type: o, ...t }, n) => {
|
|
2243
|
+
const { isSmallScreen: s } = P();
|
|
2244
|
+
return /* @__PURE__ */ r(W, { ref: n, children: /* @__PURE__ */ r(
|
|
2385
2245
|
"input",
|
|
2386
2246
|
{
|
|
2387
|
-
type:
|
|
2247
|
+
type: o,
|
|
2388
2248
|
className: p(
|
|
2389
2249
|
// 16px on mobiles prevents auto-zoom on the input when focused
|
|
2390
2250
|
s ? "text-[16px]" : "text-sm",
|
|
@@ -2398,10 +2258,10 @@ const ae = G.forwardRef(
|
|
|
2398
2258
|
) });
|
|
2399
2259
|
}
|
|
2400
2260
|
);
|
|
2401
|
-
|
|
2402
|
-
function
|
|
2403
|
-
const { contentIframeRef: e } =
|
|
2404
|
-
return
|
|
2261
|
+
ie.displayName = "Input";
|
|
2262
|
+
function So() {
|
|
2263
|
+
const { contentIframeRef: e } = R(), { inline: o } = b(), t = le(null);
|
|
2264
|
+
return re(() => {
|
|
2405
2265
|
const n = e == null ? void 0 : e.current;
|
|
2406
2266
|
if (n && t.current) {
|
|
2407
2267
|
const s = t.current;
|
|
@@ -2411,7 +2271,7 @@ function Or() {
|
|
|
2411
2271
|
const c = s.offsetHeight;
|
|
2412
2272
|
n.style.setProperty(
|
|
2413
2273
|
"--opencx-widget-height",
|
|
2414
|
-
|
|
2274
|
+
o ? "100%" : `${c.toFixed(1)}px`
|
|
2415
2275
|
);
|
|
2416
2276
|
});
|
|
2417
2277
|
});
|
|
@@ -2419,25 +2279,27 @@ function Or() {
|
|
|
2419
2279
|
cancelAnimationFrame(i), a.unobserve(s);
|
|
2420
2280
|
};
|
|
2421
2281
|
}
|
|
2422
|
-
}, [e,
|
|
2282
|
+
}, [e, o]), { observedElementRef: t };
|
|
2423
2283
|
}
|
|
2424
|
-
const
|
|
2284
|
+
const _o = pe.object({
|
|
2425
2285
|
name: pe.string().min(2),
|
|
2426
2286
|
email: pe.string().email()
|
|
2427
2287
|
});
|
|
2428
|
-
function
|
|
2429
|
-
var _, M, A,
|
|
2430
|
-
const {
|
|
2431
|
-
|
|
2288
|
+
function Io() {
|
|
2289
|
+
var _, M, A, F, H, j, v, C;
|
|
2290
|
+
const {
|
|
2291
|
+
widgetCtx: { org: e }
|
|
2292
|
+
} = R(), { setIsOpen: o } = K(), { createUnverifiedContact: t } = qt(), { isSmallScreen: n } = P(), s = b(), { theme: i } = X(), { t: a } = U(), { observedElementRef: c } = So();
|
|
2293
|
+
ke({
|
|
2432
2294
|
height: void 0,
|
|
2433
2295
|
width: i.screens.welcome.width
|
|
2434
2296
|
});
|
|
2435
|
-
const [l, h] = I(((_ = s.prefillUserData) == null ? void 0 : _.name) || ""), [
|
|
2297
|
+
const [l, h] = I(((_ = s.prefillUserData) == null ? void 0 : _.name) || ""), [x, u] = I(((M = s.prefillUserData) == null ? void 0 : M.email) || ""), m = (s.extraDataCollectionFields || []).filter(
|
|
2436
2298
|
(z) => z !== "name" && z !== "email" && !!z
|
|
2437
|
-
), [k, f] = I({}), [N, T] =
|
|
2299
|
+
), [k, f] = I({}), [N, T] = Dr(
|
|
2438
2300
|
async (z) => {
|
|
2439
2301
|
z.preventDefault();
|
|
2440
|
-
const L =
|
|
2302
|
+
const L = _o.safeParse({ name: l, email: x });
|
|
2441
2303
|
L.success && await t(
|
|
2442
2304
|
{
|
|
2443
2305
|
email: L.data.email,
|
|
@@ -2447,9 +2309,9 @@ function Pr() {
|
|
|
2447
2309
|
Object.values(k).filter(Boolean).length ? k : void 0
|
|
2448
2310
|
);
|
|
2449
2311
|
},
|
|
2450
|
-
[l,
|
|
2312
|
+
[l, x, k]
|
|
2451
2313
|
);
|
|
2452
|
-
return /* @__PURE__ */
|
|
2314
|
+
return /* @__PURE__ */ r(
|
|
2453
2315
|
"div",
|
|
2454
2316
|
{
|
|
2455
2317
|
style: {
|
|
@@ -2482,18 +2344,18 @@ function Pr() {
|
|
|
2482
2344
|
"text-primary-foreground"
|
|
2483
2345
|
),
|
|
2484
2346
|
children: [
|
|
2485
|
-
n && /* @__PURE__ */
|
|
2486
|
-
/* @__PURE__ */
|
|
2347
|
+
n && /* @__PURE__ */ r(w, { className: "absolute top-6 end-6", children: /* @__PURE__ */ r(y, { size: "selfless", onClick: () => o(!1), children: /* @__PURE__ */ r(fe, { className: "size-4" }) }) }),
|
|
2348
|
+
/* @__PURE__ */ r("div", { className: "flex items-center justify-between w-full mb-2", children: (A = s.assets) != null && A.organizationLogo ? /* @__PURE__ */ r(
|
|
2487
2349
|
"img",
|
|
2488
2350
|
{
|
|
2489
|
-
src: (
|
|
2351
|
+
src: (F = s.assets) == null ? void 0 : F.organizationLogo,
|
|
2490
2352
|
alt: "Company Logo",
|
|
2491
2353
|
className: "h-8 w-auto object-contain"
|
|
2492
2354
|
}
|
|
2493
|
-
) : /* @__PURE__ */
|
|
2355
|
+
) : /* @__PURE__ */ r("h2", { className: "font-bold text-sm", children: e.name }) }),
|
|
2494
2356
|
/* @__PURE__ */ d("div", { className: "space-y-2", children: [
|
|
2495
|
-
/* @__PURE__ */
|
|
2496
|
-
/* @__PURE__ */
|
|
2357
|
+
/* @__PURE__ */ r("h1", { className: "text-[1.75rem] font-semibold tracking-tight leading-none", children: ((j = (H = s.textContent) == null ? void 0 : H.welcomeScreen) == null ? void 0 : j.title) || a("welcome_screen_title") }),
|
|
2358
|
+
/* @__PURE__ */ r("p", { className: "text-sm", children: ((C = (v = s.textContent) == null ? void 0 : v.welcomeScreen) == null ? void 0 : C.description) || a("welcome_screen_description") })
|
|
2497
2359
|
] })
|
|
2498
2360
|
]
|
|
2499
2361
|
}
|
|
@@ -2509,29 +2371,29 @@ function Pr() {
|
|
|
2509
2371
|
),
|
|
2510
2372
|
children: [
|
|
2511
2373
|
/* @__PURE__ */ d("form", { onSubmit: T, className: "space-y-2", children: [
|
|
2512
|
-
/* @__PURE__ */
|
|
2513
|
-
|
|
2374
|
+
/* @__PURE__ */ r(
|
|
2375
|
+
ie,
|
|
2514
2376
|
{
|
|
2515
2377
|
value: l,
|
|
2516
2378
|
onChange: (z) => h(z.target.value),
|
|
2517
2379
|
required: !0,
|
|
2518
|
-
placeholder: a("
|
|
2380
|
+
placeholder: a("your_name_placeholder"),
|
|
2519
2381
|
name: "name"
|
|
2520
2382
|
}
|
|
2521
2383
|
),
|
|
2522
|
-
/* @__PURE__ */
|
|
2523
|
-
|
|
2384
|
+
/* @__PURE__ */ r(
|
|
2385
|
+
ie,
|
|
2524
2386
|
{
|
|
2525
2387
|
required: !0,
|
|
2526
|
-
value:
|
|
2527
|
-
onChange: (z) =>
|
|
2388
|
+
value: x,
|
|
2389
|
+
onChange: (z) => u(z.target.value),
|
|
2528
2390
|
type: "email",
|
|
2529
|
-
placeholder: a("
|
|
2391
|
+
placeholder: a("your_email_placeholder"),
|
|
2530
2392
|
name: "email"
|
|
2531
2393
|
}
|
|
2532
2394
|
),
|
|
2533
|
-
m.map((z) => /* @__PURE__ */
|
|
2534
|
-
|
|
2395
|
+
m.map((z) => /* @__PURE__ */ r(
|
|
2396
|
+
ie,
|
|
2535
2397
|
{
|
|
2536
2398
|
value: k[z],
|
|
2537
2399
|
onChange: (L) => f((ne) => ({
|
|
@@ -2549,13 +2411,13 @@ function Pr() {
|
|
|
2549
2411
|
className: "w-full",
|
|
2550
2412
|
size: "lg",
|
|
2551
2413
|
children: [
|
|
2552
|
-
N.loading ? a("
|
|
2553
|
-
/* @__PURE__ */
|
|
2414
|
+
N.loading ? a("start_chat_button_loading") : a("start_chat_button"),
|
|
2415
|
+
/* @__PURE__ */ r(Nr, { className: "size-4 rtl:-scale-100" })
|
|
2554
2416
|
]
|
|
2555
2417
|
}
|
|
2556
2418
|
)
|
|
2557
2419
|
] }),
|
|
2558
|
-
/* @__PURE__ */
|
|
2420
|
+
/* @__PURE__ */ r(Ft, {})
|
|
2559
2421
|
]
|
|
2560
2422
|
}
|
|
2561
2423
|
)
|
|
@@ -2568,39 +2430,39 @@ function Pr() {
|
|
|
2568
2430
|
function Ht() {
|
|
2569
2431
|
const {
|
|
2570
2432
|
routerState: { screen: e }
|
|
2571
|
-
} =
|
|
2572
|
-
return /* @__PURE__ */
|
|
2433
|
+
} = $();
|
|
2434
|
+
return /* @__PURE__ */ r("div", { className: "relative bg-background size-full", children: /* @__PURE__ */ r(S, { mode: "wait", children: (() => {
|
|
2573
2435
|
switch (e) {
|
|
2574
2436
|
case "welcome":
|
|
2575
|
-
return /* @__PURE__ */
|
|
2576
|
-
|
|
2437
|
+
return /* @__PURE__ */ r(
|
|
2438
|
+
w,
|
|
2577
2439
|
{
|
|
2578
2440
|
fadeIn: "right",
|
|
2579
2441
|
className: "size-full",
|
|
2580
2442
|
snapExit: !0,
|
|
2581
|
-
children: /* @__PURE__ */
|
|
2443
|
+
children: /* @__PURE__ */ r(Io, {})
|
|
2582
2444
|
},
|
|
2583
2445
|
e
|
|
2584
2446
|
);
|
|
2585
2447
|
case "sessions":
|
|
2586
|
-
return /* @__PURE__ */
|
|
2587
|
-
|
|
2448
|
+
return /* @__PURE__ */ r(
|
|
2449
|
+
w,
|
|
2588
2450
|
{
|
|
2589
2451
|
fadeIn: "right",
|
|
2590
2452
|
className: "size-full",
|
|
2591
2453
|
snapExit: !0,
|
|
2592
|
-
children: /* @__PURE__ */
|
|
2454
|
+
children: /* @__PURE__ */ r(No, {})
|
|
2593
2455
|
},
|
|
2594
2456
|
e
|
|
2595
2457
|
);
|
|
2596
2458
|
case "chat":
|
|
2597
|
-
return /* @__PURE__ */
|
|
2598
|
-
|
|
2459
|
+
return /* @__PURE__ */ r(
|
|
2460
|
+
w,
|
|
2599
2461
|
{
|
|
2600
2462
|
fadeIn: "right",
|
|
2601
2463
|
className: "size-full",
|
|
2602
2464
|
snapExit: !0,
|
|
2603
|
-
children: /* @__PURE__ */
|
|
2465
|
+
children: /* @__PURE__ */ r(bo, {})
|
|
2604
2466
|
},
|
|
2605
2467
|
e
|
|
2606
2468
|
);
|
|
@@ -2609,11 +2471,11 @@ function Ht() {
|
|
|
2609
2471
|
}
|
|
2610
2472
|
})() }) });
|
|
2611
2473
|
}
|
|
2612
|
-
const
|
|
2474
|
+
const To = "4.0.19", Mo = `<!DOCTYPE html>
|
|
2613
2475
|
<html>
|
|
2614
2476
|
<head>
|
|
2615
2477
|
<style>
|
|
2616
|
-
${
|
|
2478
|
+
${Mt}
|
|
2617
2479
|
html, body {
|
|
2618
2480
|
height: 100%;
|
|
2619
2481
|
width: 100%;
|
|
@@ -2627,10 +2489,10 @@ html, body {
|
|
|
2627
2489
|
<body>
|
|
2628
2490
|
</body>
|
|
2629
2491
|
</html>`;
|
|
2630
|
-
function
|
|
2631
|
-
const { isOpen: e } = K(), { contentIframeRef:
|
|
2632
|
-
return /* @__PURE__ */
|
|
2633
|
-
|
|
2492
|
+
function Wt() {
|
|
2493
|
+
const { isOpen: e } = K(), { contentIframeRef: o } = R(), { cssOverrides: t, inline: n } = b(), { theme: s, cssVars: i, computed: a } = X(), { dir: c } = U();
|
|
2494
|
+
return /* @__PURE__ */ r(
|
|
2495
|
+
Z.div,
|
|
2634
2496
|
{
|
|
2635
2497
|
animate: e ? "visible" : "hidden",
|
|
2636
2498
|
initial: "hidden",
|
|
@@ -2649,10 +2511,10 @@ function Ft() {
|
|
|
2649
2511
|
}
|
|
2650
2512
|
},
|
|
2651
2513
|
children: /* @__PURE__ */ d(
|
|
2652
|
-
|
|
2514
|
+
xt,
|
|
2653
2515
|
{
|
|
2654
|
-
ref:
|
|
2655
|
-
initialContent:
|
|
2516
|
+
ref: o,
|
|
2517
|
+
initialContent: Mo,
|
|
2656
2518
|
allowFullScreen: !0,
|
|
2657
2519
|
title: "OpenCX Live Chat",
|
|
2658
2520
|
style: {
|
|
@@ -2681,25 +2543,25 @@ function Ft() {
|
|
|
2681
2543
|
borderWidth: "0px"
|
|
2682
2544
|
},
|
|
2683
2545
|
children: [
|
|
2684
|
-
t && /* @__PURE__ */
|
|
2685
|
-
/* @__PURE__ */
|
|
2546
|
+
t && /* @__PURE__ */ r("style", { children: t }),
|
|
2547
|
+
/* @__PURE__ */ r(
|
|
2686
2548
|
"div",
|
|
2687
2549
|
{
|
|
2688
2550
|
style: {
|
|
2689
2551
|
...i,
|
|
2690
2552
|
zIndex: s.widgetContentContainer.zIndex
|
|
2691
2553
|
},
|
|
2692
|
-
"data-version":
|
|
2554
|
+
"data-version": To,
|
|
2693
2555
|
className: p(
|
|
2694
2556
|
"antialiased font-sans size-full overflow-hidden relative text-secondary-foreground isolate"
|
|
2695
2557
|
),
|
|
2696
2558
|
dir: c,
|
|
2697
|
-
children: /* @__PURE__ */
|
|
2698
|
-
|
|
2559
|
+
children: /* @__PURE__ */ r(
|
|
2560
|
+
Lr,
|
|
2699
2561
|
{
|
|
2700
2562
|
delayDuration: 200,
|
|
2701
2563
|
disableHoverableContent: !0,
|
|
2702
|
-
children: /* @__PURE__ */
|
|
2564
|
+
children: /* @__PURE__ */ r(Hr, { children: /* @__PURE__ */ r(Ht, {}) })
|
|
2703
2565
|
}
|
|
2704
2566
|
)
|
|
2705
2567
|
}
|
|
@@ -2710,12 +2572,12 @@ function Ft() {
|
|
|
2710
2572
|
}
|
|
2711
2573
|
);
|
|
2712
2574
|
}
|
|
2713
|
-
function
|
|
2714
|
-
const { theme: e } =
|
|
2715
|
-
return /* @__PURE__ */
|
|
2716
|
-
|
|
2575
|
+
function Do() {
|
|
2576
|
+
const { theme: e } = X();
|
|
2577
|
+
return /* @__PURE__ */ r(
|
|
2578
|
+
ae.Content,
|
|
2717
2579
|
{
|
|
2718
|
-
onInteractOutside: (
|
|
2580
|
+
onInteractOutside: (o) => o.preventDefault(),
|
|
2719
2581
|
forceMount: !0,
|
|
2720
2582
|
style: {
|
|
2721
2583
|
zIndex: e.widgetContentContainer.zIndex,
|
|
@@ -2726,13 +2588,13 @@ function Fr() {
|
|
|
2726
2588
|
sideOffset: e.widgetContentContainer.offset.side,
|
|
2727
2589
|
alignOffset: e.widgetContentContainer.offset.align,
|
|
2728
2590
|
avoidCollisions: !1,
|
|
2729
|
-
children: /* @__PURE__ */
|
|
2591
|
+
children: /* @__PURE__ */ r(Wt, {})
|
|
2730
2592
|
}
|
|
2731
2593
|
);
|
|
2732
2594
|
}
|
|
2733
|
-
function
|
|
2595
|
+
function Ro({
|
|
2734
2596
|
className: e,
|
|
2735
|
-
style:
|
|
2597
|
+
style: o
|
|
2736
2598
|
}) {
|
|
2737
2599
|
return /* @__PURE__ */ d(
|
|
2738
2600
|
"svg",
|
|
@@ -2743,16 +2605,16 @@ function Br({
|
|
|
2743
2605
|
fill: "none",
|
|
2744
2606
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2745
2607
|
className: p("text-primary-foreground", e),
|
|
2746
|
-
style:
|
|
2608
|
+
style: o,
|
|
2747
2609
|
children: [
|
|
2748
|
-
/* @__PURE__ */
|
|
2610
|
+
/* @__PURE__ */ r(
|
|
2749
2611
|
"path",
|
|
2750
2612
|
{
|
|
2751
2613
|
d: "M0 6.94263C0 3.62892 2.68629 0.942627 6 0.942627H26C29.3137 0.942627 32 3.62892 32 6.94263V17.9426C32 21.2563 29.3137 23.9426 26 23.9426H6C2.68629 23.9426 0 21.2563 0 17.9426V6.94263Z",
|
|
2752
2614
|
fill: "currentColor"
|
|
2753
2615
|
}
|
|
2754
2616
|
),
|
|
2755
|
-
/* @__PURE__ */
|
|
2617
|
+
/* @__PURE__ */ r(
|
|
2756
2618
|
"path",
|
|
2757
2619
|
{
|
|
2758
2620
|
fillRule: "evenodd",
|
|
@@ -2765,11 +2627,11 @@ function Br({
|
|
|
2765
2627
|
}
|
|
2766
2628
|
);
|
|
2767
2629
|
}
|
|
2768
|
-
const
|
|
2630
|
+
const jo = `<!DOCTYPE html>
|
|
2769
2631
|
<html>
|
|
2770
2632
|
<head>
|
|
2771
2633
|
<style>
|
|
2772
|
-
${
|
|
2634
|
+
${Mt}
|
|
2773
2635
|
html, body {
|
|
2774
2636
|
height: 100%;
|
|
2775
2637
|
width: 100%;
|
|
@@ -2782,16 +2644,16 @@ html, body {
|
|
|
2782
2644
|
<body>
|
|
2783
2645
|
</body>
|
|
2784
2646
|
</html>`;
|
|
2785
|
-
function
|
|
2647
|
+
function Eo() {
|
|
2786
2648
|
var i, a;
|
|
2787
|
-
const { isOpen: e } = K(), { cssOverrides:
|
|
2649
|
+
const { isOpen: e } = K(), { cssOverrides: o, assets: t } = b(), { theme: n, cssVars: s } = X();
|
|
2788
2650
|
return /* @__PURE__ */ d(
|
|
2789
|
-
|
|
2651
|
+
xt,
|
|
2790
2652
|
{
|
|
2791
|
-
initialContent:
|
|
2653
|
+
initialContent: jo,
|
|
2792
2654
|
style: {
|
|
2793
|
-
height: `calc(${n.widgetTrigger.size.button}px + ${
|
|
2794
|
-
width: `calc(${n.widgetTrigger.size.button}px + ${
|
|
2655
|
+
height: `calc(${n.widgetTrigger.size.button}px + ${V.x * 2}px)`,
|
|
2656
|
+
width: `calc(${n.widgetTrigger.size.button}px + ${V.y * 2}px)`,
|
|
2795
2657
|
fontSize: "16px",
|
|
2796
2658
|
position: "fixed",
|
|
2797
2659
|
zIndex: n.widgetTrigger.zIndex,
|
|
@@ -2805,8 +2667,8 @@ function Yr() {
|
|
|
2805
2667
|
borderRadius: "100%"
|
|
2806
2668
|
},
|
|
2807
2669
|
children: [
|
|
2808
|
-
|
|
2809
|
-
/* @__PURE__ */
|
|
2670
|
+
o && /* @__PURE__ */ r("style", { children: o }),
|
|
2671
|
+
/* @__PURE__ */ r(
|
|
2810
2672
|
"div",
|
|
2811
2673
|
{
|
|
2812
2674
|
style: {
|
|
@@ -2817,8 +2679,8 @@ function Yr() {
|
|
|
2817
2679
|
alignItems: "center",
|
|
2818
2680
|
justifyContent: "center"
|
|
2819
2681
|
},
|
|
2820
|
-
children: /* @__PURE__ */
|
|
2821
|
-
|
|
2682
|
+
children: /* @__PURE__ */ r(
|
|
2683
|
+
ae.PopoverTrigger,
|
|
2822
2684
|
{
|
|
2823
2685
|
className: p(
|
|
2824
2686
|
"font-sans flex items-center justify-center rounded-full"
|
|
@@ -2827,10 +2689,10 @@ function Yr() {
|
|
|
2827
2689
|
height: n.widgetTrigger.size.button,
|
|
2828
2690
|
width: n.widgetTrigger.size.button
|
|
2829
2691
|
},
|
|
2830
|
-
children: /* @__PURE__ */
|
|
2692
|
+
children: /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r(
|
|
2831
2693
|
"div",
|
|
2832
2694
|
{
|
|
2833
|
-
...
|
|
2695
|
+
...g("trigger/btn"),
|
|
2834
2696
|
className: p(
|
|
2835
2697
|
"relative size-full rounded-full",
|
|
2836
2698
|
"flex items-center justify-center",
|
|
@@ -2839,8 +2701,8 @@ function Yr() {
|
|
|
2839
2701
|
"bg-primary",
|
|
2840
2702
|
"text-primary-foreground"
|
|
2841
2703
|
),
|
|
2842
|
-
children: /* @__PURE__ */
|
|
2843
|
-
|
|
2704
|
+
children: /* @__PURE__ */ r(S, { mode: "wait", children: e ? /* @__PURE__ */ r(
|
|
2705
|
+
w,
|
|
2844
2706
|
{
|
|
2845
2707
|
snapExit: !0,
|
|
2846
2708
|
fadeIn: "up",
|
|
@@ -2848,7 +2710,7 @@ function Yr() {
|
|
|
2848
2710
|
initial: { rotate: 45 },
|
|
2849
2711
|
animate: { rotate: 0 }
|
|
2850
2712
|
},
|
|
2851
|
-
children: (i = t == null ? void 0 : t.widgetTrigger) != null && i.closeIcon ? /* @__PURE__ */
|
|
2713
|
+
children: (i = t == null ? void 0 : t.widgetTrigger) != null && i.closeIcon ? /* @__PURE__ */ r(
|
|
2852
2714
|
"img",
|
|
2853
2715
|
{
|
|
2854
2716
|
src: t.widgetTrigger.closeIcon,
|
|
@@ -2858,8 +2720,8 @@ function Yr() {
|
|
|
2858
2720
|
height: n.widgetTrigger.size.icon
|
|
2859
2721
|
}
|
|
2860
2722
|
}
|
|
2861
|
-
) : /* @__PURE__ */
|
|
2862
|
-
|
|
2723
|
+
) : /* @__PURE__ */ r(
|
|
2724
|
+
Sr,
|
|
2863
2725
|
{
|
|
2864
2726
|
style: {
|
|
2865
2727
|
width: n.widgetTrigger.size.icon,
|
|
@@ -2869,15 +2731,15 @@ function Yr() {
|
|
|
2869
2731
|
)
|
|
2870
2732
|
},
|
|
2871
2733
|
"x-icon"
|
|
2872
|
-
) : /* @__PURE__ */
|
|
2873
|
-
|
|
2734
|
+
) : /* @__PURE__ */ r(
|
|
2735
|
+
w,
|
|
2874
2736
|
{
|
|
2875
2737
|
snapExit: !0,
|
|
2876
2738
|
overrides: {
|
|
2877
2739
|
initial: { rotate: 45 },
|
|
2878
2740
|
animate: { rotate: 0 }
|
|
2879
2741
|
},
|
|
2880
|
-
children: (a = t == null ? void 0 : t.widgetTrigger) != null && a.openIcon ? /* @__PURE__ */
|
|
2742
|
+
children: (a = t == null ? void 0 : t.widgetTrigger) != null && a.openIcon ? /* @__PURE__ */ r(
|
|
2881
2743
|
"img",
|
|
2882
2744
|
{
|
|
2883
2745
|
src: t.widgetTrigger.openIcon,
|
|
@@ -2887,8 +2749,8 @@ function Yr() {
|
|
|
2887
2749
|
height: n.widgetTrigger.size.icon
|
|
2888
2750
|
}
|
|
2889
2751
|
}
|
|
2890
|
-
) : /* @__PURE__ */
|
|
2891
|
-
|
|
2752
|
+
) : /* @__PURE__ */ r(
|
|
2753
|
+
Ro,
|
|
2892
2754
|
{
|
|
2893
2755
|
style: {
|
|
2894
2756
|
width: n.widgetTrigger.size.icon,
|
|
@@ -2910,10 +2772,10 @@ function Yr() {
|
|
|
2910
2772
|
}
|
|
2911
2773
|
);
|
|
2912
2774
|
}
|
|
2913
|
-
function
|
|
2914
|
-
const { dir: e } =
|
|
2915
|
-
return /* @__PURE__ */
|
|
2916
|
-
|
|
2775
|
+
function Oo() {
|
|
2776
|
+
const { dir: e } = ue();
|
|
2777
|
+
return /* @__PURE__ */ r(
|
|
2778
|
+
ae.Anchor,
|
|
2917
2779
|
{
|
|
2918
2780
|
style: {
|
|
2919
2781
|
position: "fixed",
|
|
@@ -2924,22 +2786,22 @@ function $r() {
|
|
|
2924
2786
|
}
|
|
2925
2787
|
);
|
|
2926
2788
|
}
|
|
2927
|
-
function
|
|
2928
|
-
const { isOpen: e, setIsOpen:
|
|
2929
|
-
return /* @__PURE__ */ d(
|
|
2930
|
-
/* @__PURE__ */
|
|
2931
|
-
/* @__PURE__ */
|
|
2932
|
-
/* @__PURE__ */
|
|
2789
|
+
function Po() {
|
|
2790
|
+
const { isOpen: e, setIsOpen: o } = K();
|
|
2791
|
+
return /* @__PURE__ */ d(ae.Root, { open: e, onOpenChange: o, children: [
|
|
2792
|
+
/* @__PURE__ */ r(Oo, {}),
|
|
2793
|
+
/* @__PURE__ */ r(Eo, {}),
|
|
2794
|
+
/* @__PURE__ */ r(Do, {})
|
|
2933
2795
|
] });
|
|
2934
2796
|
}
|
|
2935
|
-
const
|
|
2797
|
+
const Ao = [
|
|
2936
2798
|
{
|
|
2937
2799
|
key: "loading",
|
|
2938
|
-
component:
|
|
2800
|
+
component: Br
|
|
2939
2801
|
},
|
|
2940
2802
|
{
|
|
2941
2803
|
key: "fallback",
|
|
2942
|
-
component:
|
|
2804
|
+
component: $r
|
|
2943
2805
|
},
|
|
2944
2806
|
{
|
|
2945
2807
|
key: "bot_message",
|
|
@@ -2949,32 +2811,32 @@ const Ur = [
|
|
|
2949
2811
|
key: "agent_message",
|
|
2950
2812
|
component: he
|
|
2951
2813
|
}
|
|
2952
|
-
],
|
|
2814
|
+
], Fo = {
|
|
2953
2815
|
get: async (e) => localStorage.getItem(e),
|
|
2954
|
-
set: async (e,
|
|
2955
|
-
localStorage.setItem(e,
|
|
2816
|
+
set: async (e, o) => {
|
|
2817
|
+
localStorage.setItem(e, o);
|
|
2956
2818
|
},
|
|
2957
2819
|
remove: async (e) => {
|
|
2958
2820
|
localStorage.removeItem(e);
|
|
2959
2821
|
}
|
|
2960
2822
|
};
|
|
2961
|
-
function
|
|
2823
|
+
function on({
|
|
2962
2824
|
options: e,
|
|
2963
|
-
components:
|
|
2825
|
+
components: o = [],
|
|
2964
2826
|
loadingComponent: t
|
|
2965
2827
|
}) {
|
|
2966
|
-
return /* @__PURE__ */
|
|
2967
|
-
|
|
2828
|
+
return /* @__PURE__ */ r(
|
|
2829
|
+
Xt,
|
|
2968
2830
|
{
|
|
2969
|
-
components: [...
|
|
2831
|
+
components: [...Ao, ...o],
|
|
2970
2832
|
options: e,
|
|
2971
|
-
storage:
|
|
2833
|
+
storage: Fo,
|
|
2972
2834
|
loadingComponent: t,
|
|
2973
|
-
children: /* @__PURE__ */
|
|
2835
|
+
children: /* @__PURE__ */ r(Ut, { children: e.inline ? /* @__PURE__ */ r(Wt, {}) : /* @__PURE__ */ r(Po, {}) })
|
|
2974
2836
|
}
|
|
2975
2837
|
);
|
|
2976
2838
|
}
|
|
2977
2839
|
export {
|
|
2978
|
-
|
|
2840
|
+
on as Widget
|
|
2979
2841
|
};
|
|
2980
2842
|
//# sourceMappingURL=index.js.map
|