@opencx/widget-react 4.0.30 → 4.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +17 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +690 -676
- package/dist/index.js.map +1 -1
- package/dist/src/components/AgentAvatar.d.ts +7 -0
- package/dist/src/components/AgentAvatar.d.ts.map +1 -0
- package/dist/src/components/{BotOrAgentMessage.d.ts → AgentMessage.d.ts} +2 -2
- package/dist/src/components/AgentMessage.d.ts.map +1 -0
- package/dist/src/components/AgentMessageGroup.d.ts +8 -0
- package/dist/src/components/AgentMessageGroup.d.ts.map +1 -0
- package/dist/src/components/Header.d.ts.map +1 -1
- package/dist/src/components/custom-components/{BotOrAgentMessageDefaultComponent.d.ts → AgentMessageDefaultComponent.d.ts} +2 -2
- package/dist/src/components/custom-components/AgentMessageDefaultComponent.d.ts.map +1 -0
- package/dist/src/components/custom-components/ChatBottomComponents.d.ts.map +1 -0
- package/dist/src/components/custom-components/HeaderBottomComponent.d.ts.map +1 -0
- package/dist/src/components/custom-components/HeaderTitleComponent.d.ts +5 -0
- package/dist/src/components/custom-components/HeaderTitleComponent.d.ts.map +1 -0
- package/dist/src/components/custom-components/LoadingDefaultComponent.d.ts +2 -2
- package/dist/src/components/custom-components/LoadingDefaultComponent.d.ts.map +1 -1
- package/dist/src/components/custom-components/SessionResolvedComponent.d.ts.map +1 -0
- package/dist/src/hooks/useComponentContext.d.ts +3 -0
- package/dist/src/hooks/useComponentContext.d.ts.map +1 -0
- package/dist/src/hooks/useTranslation.d.ts +1 -1
- package/dist/src/screens/chat/ChatCanvas.d.ts.map +1 -1
- package/dist/src/screens/chat/ChatMain.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/src/components/AgentOrBotAvatar.d.ts +0 -7
- package/dist/src/components/AgentOrBotAvatar.d.ts.map +0 -1
- package/dist/src/components/BotOrAgentMessage.d.ts.map +0 -1
- package/dist/src/components/BotOrAgentMessageGroup.d.ts +0 -8
- package/dist/src/components/BotOrAgentMessageGroup.d.ts.map +0 -1
- package/dist/src/components/custom-components/BotOrAgentMessageDefaultComponent.d.ts.map +0 -1
- package/dist/src/components/special-components/ChatBottomComponents.d.ts.map +0 -1
- package/dist/src/components/special-components/HeaderBottomComponent.d.ts.map +0 -1
- package/dist/src/components/special-components/SessionResolvedComponent.d.ts.map +0 -1
- package/dist/src/hooks/useSpecialComponentProps.d.ts +0 -5
- package/dist/src/hooks/useSpecialComponentProps.d.ts.map +0 -1
- /package/dist/src/components/{special-components → custom-components}/ChatBottomComponents.d.ts +0 -0
- /package/dist/src/components/{special-components → custom-components}/HeaderBottomComponent.d.ts +0 -0
- /package/dist/src/components/{special-components → custom-components}/SessionResolvedComponent.d.ts +0 -0
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
2
|
-
import * as
|
|
1
|
+
import { jsx as r, jsxs as c, Fragment as te } from "react/jsx-runtime";
|
|
2
|
+
import * as ce from "@radix-ui/react-popover";
|
|
3
3
|
import * as G from "react";
|
|
4
|
-
import
|
|
5
|
-
import { useWidget as R, useConfig as
|
|
4
|
+
import U, { memo as Lt, forwardRef as dt, useState as T, cloneElement as pt, createContext as Bt, useEffect as re, useContext as Yt, useMemo as ht, useRef as de, createElement as ot } from "react";
|
|
5
|
+
import { useWidget as R, useConfig as b, useDocumentDir as ve, useSessions as L, useMessages as j, useWidgetRouter as A, useWidgetTrigger as K, useModes as mt, useCsat as gt, useUploadFiles as Ut, useIsAwaitingBotReply as wt, useContact as qt, WidgetProvider as Xt, WidgetTriggerProvider as Vt } from "@opencx/widget-react-headless";
|
|
6
6
|
import { clsx as Gt } from "clsx";
|
|
7
7
|
import { twMerge as Kt } from "tailwind-merge";
|
|
8
8
|
import { motion as Z, AnimatePresence as _ } from "framer-motion";
|
|
9
9
|
import { Slot as Qt } from "@radix-ui/react-slot";
|
|
10
10
|
import { cva as Zt } from "class-variance-authority";
|
|
11
|
-
import { X as Jt, CircleDashedIcon as er, XIcon as
|
|
11
|
+
import { X as Jt, CircleDashedIcon as er, XIcon as xe, SquareXIcon as tr, SquareCheckBigIcon as rr, SquareCheckIcon as or, ShrinkIcon as nr, Minimize2Icon as sr, MinimizeIcon as ir, Maximize2Icon as ar, MaximizeIcon as lr, ExpandIcon as cr, CircleXIcon as dr, CircleCheckBigIcon as pr, CircleCheckIcon as ut, CheckCheckIcon as hr, CheckIcon as mr, ChevronLeftIcon as gr, LoaderIcon as wr, ArrowUpIcon as ft, PaperclipIcon as ur, ImageIcon as fr, CircleDashed as vr, AlertCircle as xr, Loader2 as br, FileAudio2Icon as yr, FileVideo2Icon as kr, FileIcon as Cr, UserRoundIcon as zr, ChevronRightIcon as Nr, SendHorizontal as Sr, ChevronDownIcon as _r } from "lucide-react";
|
|
12
12
|
import vt from "remark-gfm";
|
|
13
13
|
import Ir from "react-markdown";
|
|
14
14
|
import xt from "rehype-raw";
|
|
@@ -19,7 +19,7 @@ import * as oe from "@radix-ui/react-tooltip";
|
|
|
19
19
|
import nt from "tinycolor2";
|
|
20
20
|
import { useDropzone as Dr } from "react-dropzone";
|
|
21
21
|
import Rr from "react-use/lib/useAsyncFn";
|
|
22
|
-
import { z as
|
|
22
|
+
import { z as me } from "zod";
|
|
23
23
|
function g(e) {
|
|
24
24
|
return { "data-component": e };
|
|
25
25
|
}
|
|
@@ -29,41 +29,41 @@ function p(...e) {
|
|
|
29
29
|
const V = {
|
|
30
30
|
x: 2,
|
|
31
31
|
y: 2
|
|
32
|
-
},
|
|
32
|
+
}, $ = Lt(
|
|
33
33
|
dt(
|
|
34
34
|
({ children: e, className: o, scale: t = 1.02, off: n = !1 }, s) => {
|
|
35
|
-
const [
|
|
35
|
+
const [a, i] = T(!1), [l, d] = T({ x: 0, y: 0 });
|
|
36
36
|
if (n || /translate/.test(
|
|
37
37
|
e.props.className || ""
|
|
38
38
|
)) return e;
|
|
39
|
-
const
|
|
40
|
-
var
|
|
41
|
-
const { clientX:
|
|
39
|
+
const y = (w) => {
|
|
40
|
+
var N, S;
|
|
41
|
+
const { clientX: k, clientY: I } = w, x = w.currentTarget.getBoundingClientRect(), M = k - (x.left + x.width / 2), O = I - (x.top + x.height / 2), F = Math.max(
|
|
42
42
|
-1,
|
|
43
|
-
Math.min(1, M / (
|
|
43
|
+
Math.min(1, M / (x.width / 2))
|
|
44
44
|
), W = Math.max(
|
|
45
45
|
-1,
|
|
46
|
-
Math.min(1,
|
|
47
|
-
), E =
|
|
48
|
-
|
|
49
|
-
},
|
|
50
|
-
var
|
|
51
|
-
|
|
46
|
+
Math.min(1, O / (x.height / 2))
|
|
47
|
+
), E = F * V.x, f = W * V.y;
|
|
48
|
+
d({ x: E, y: f }), (S = (N = e.props).onMouseMove) == null || S.call(N, w);
|
|
49
|
+
}, v = () => {
|
|
50
|
+
var w, k;
|
|
51
|
+
i(!0), (k = (w = e.props).onMouseEnter) == null || k.call(w);
|
|
52
52
|
}, m = () => {
|
|
53
|
-
var
|
|
54
|
-
|
|
55
|
-
},
|
|
56
|
-
"--wobble-x":
|
|
57
|
-
"--wobble-y":
|
|
53
|
+
var w, k;
|
|
54
|
+
i(!1), d({ x: 0, y: 0 }), (k = (w = e.props).onMouseLeave) == null || k.call(w);
|
|
55
|
+
}, z = {
|
|
56
|
+
"--wobble-x": a ? `${l.x}px` : "0px",
|
|
57
|
+
"--wobble-y": a ? `${l.y}px` : "0px",
|
|
58
58
|
"--scale": 1 - (t - 1)
|
|
59
59
|
};
|
|
60
60
|
return pt(e, {
|
|
61
61
|
ref: s,
|
|
62
|
-
onMouseMove:
|
|
63
|
-
onMouseEnter:
|
|
62
|
+
onMouseMove: y,
|
|
63
|
+
onMouseEnter: v,
|
|
64
64
|
onMouseLeave: m,
|
|
65
65
|
style: {
|
|
66
|
-
...
|
|
66
|
+
...z,
|
|
67
67
|
...e.props.style
|
|
68
68
|
},
|
|
69
69
|
className: p(
|
|
@@ -78,44 +78,44 @@ const V = {
|
|
|
78
78
|
}
|
|
79
79
|
)
|
|
80
80
|
);
|
|
81
|
-
|
|
81
|
+
$.displayName = "Wobble";
|
|
82
82
|
const jr = 10, Er = (e, o, t) => ({
|
|
83
83
|
initial: { opacity: 0, x: -e, ...o.initial },
|
|
84
84
|
animate: { opacity: 1, x: 0, ...o.animate, transition: { delay: t } },
|
|
85
85
|
exit: { opacity: 0, x: e, ...o.exit }
|
|
86
|
-
}),
|
|
86
|
+
}), Pr = (e, o, t) => ({
|
|
87
87
|
initial: { opacity: 0, x: e, ...o.initial },
|
|
88
88
|
animate: { opacity: 1, x: 0, ...o.animate, transition: { delay: t } },
|
|
89
89
|
exit: { opacity: 0, x: -e, ...o.exit }
|
|
90
|
-
}),
|
|
90
|
+
}), Ar = (e, o, t) => ({
|
|
91
91
|
initial: { opacity: 0, y: e, ...o.initial },
|
|
92
92
|
animate: { opacity: 1, y: 0, ...o.animate, transition: { delay: t } },
|
|
93
93
|
exit: { opacity: 0, y: -e, ...o.exit }
|
|
94
|
-
}),
|
|
94
|
+
}), Hr = (e, o, t) => ({
|
|
95
95
|
initial: { opacity: 0, y: -e, ...o.initial },
|
|
96
96
|
animate: { opacity: 1, y: 0, ...o.animate, transition: { delay: t } },
|
|
97
97
|
exit: { opacity: 0, y: e, ...o.exit }
|
|
98
|
-
}),
|
|
98
|
+
}), Or = {
|
|
99
99
|
right: Er,
|
|
100
|
-
left:
|
|
101
|
-
up:
|
|
102
|
-
down:
|
|
103
|
-
},
|
|
100
|
+
left: Pr,
|
|
101
|
+
up: Ar,
|
|
102
|
+
down: Hr
|
|
103
|
+
}, u = dt(
|
|
104
104
|
({
|
|
105
105
|
fadeIn: e = "down",
|
|
106
106
|
distance: o = jr,
|
|
107
107
|
children: t,
|
|
108
108
|
snapExit: n = !1,
|
|
109
109
|
overrides: s = {},
|
|
110
|
-
delay:
|
|
111
|
-
...
|
|
112
|
-
},
|
|
113
|
-
const
|
|
114
|
-
return n &&
|
|
110
|
+
delay: a = 0,
|
|
111
|
+
...i
|
|
112
|
+
}, l) => {
|
|
113
|
+
const d = e ? Or[e](o, s, a) : {};
|
|
114
|
+
return n && d.exit && typeof d.exit == "object" && !Array.isArray(d.exit) && (d.exit.transition = { duration: 0 }), /* @__PURE__ */ r(Z.div, { ref: l, ...i, ...d, children: t });
|
|
115
115
|
}
|
|
116
116
|
);
|
|
117
|
-
|
|
118
|
-
const
|
|
117
|
+
u.displayName = "MotionDiv";
|
|
118
|
+
const Fr = Zt(
|
|
119
119
|
p(
|
|
120
120
|
"inline-flex shrink-0 items-center justify-center gap-2",
|
|
121
121
|
"text-sm font-medium whitespace-nowrap",
|
|
@@ -154,39 +154,39 @@ const Hr = Zt(
|
|
|
154
154
|
size: "default"
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
),
|
|
158
|
-
({ className: e, variant: o = "default", size: t, asChild: n = !1, ...s },
|
|
157
|
+
), C = G.forwardRef(
|
|
158
|
+
({ className: e, variant: o = "default", size: t, asChild: n = !1, ...s }, a) => /* @__PURE__ */ r($, { ref: a, children: /* @__PURE__ */ r(
|
|
159
159
|
n ? Qt : "button",
|
|
160
160
|
{
|
|
161
161
|
...g("ui_lib/btn"),
|
|
162
162
|
"data-variant": o,
|
|
163
|
-
className: p(
|
|
163
|
+
className: p(Fr({ variant: o, size: t, className: e })),
|
|
164
164
|
...s
|
|
165
165
|
}
|
|
166
166
|
) })
|
|
167
167
|
);
|
|
168
|
-
|
|
169
|
-
const yt =
|
|
168
|
+
C.displayName = "Button";
|
|
169
|
+
const yt = Bt(null);
|
|
170
170
|
function Wr({ children: e }) {
|
|
171
|
-
const [o, t] = T(!1), [n, s] = T(null),
|
|
172
|
-
s(
|
|
173
|
-
},
|
|
171
|
+
const [o, t] = T(!1), [n, s] = T(null), a = (l) => {
|
|
172
|
+
s(l), t(!0);
|
|
173
|
+
}, i = () => {
|
|
174
174
|
t(!1), setTimeout(() => {
|
|
175
175
|
s(null);
|
|
176
176
|
}, 200);
|
|
177
177
|
};
|
|
178
|
-
return /* @__PURE__ */
|
|
178
|
+
return /* @__PURE__ */ c(
|
|
179
179
|
yt.Provider,
|
|
180
180
|
{
|
|
181
|
-
value: { open:
|
|
181
|
+
value: { open: a, close: i, isOpen: o, content: n },
|
|
182
182
|
children: [
|
|
183
|
-
/* @__PURE__ */ r(
|
|
183
|
+
/* @__PURE__ */ r($r, {}),
|
|
184
184
|
e
|
|
185
185
|
]
|
|
186
186
|
}
|
|
187
187
|
);
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function pe() {
|
|
190
190
|
const e = Yt(yt);
|
|
191
191
|
return e || (console.error("useDialoger must be used within a DialogerProvider"), {
|
|
192
192
|
open: () => {
|
|
@@ -197,25 +197,25 @@ function de() {
|
|
|
197
197
|
content: null
|
|
198
198
|
});
|
|
199
199
|
}
|
|
200
|
-
function
|
|
201
|
-
const { contentIframeRef: e } = R(), { isOpen: o, content: t, close: n } =
|
|
200
|
+
function $r() {
|
|
201
|
+
const { contentIframeRef: e } = R(), { isOpen: o, content: t, close: n } = pe();
|
|
202
202
|
return re(() => {
|
|
203
|
-
var
|
|
204
|
-
const s = (
|
|
205
|
-
|
|
203
|
+
var a, i;
|
|
204
|
+
const s = (l) => {
|
|
205
|
+
l.key === "Escape" && n();
|
|
206
206
|
};
|
|
207
|
-
return (
|
|
207
|
+
return (i = (a = e == null ? void 0 : e.current) == null ? void 0 : a.contentWindow) == null || i.document.addEventListener(
|
|
208
208
|
"keydown",
|
|
209
209
|
s
|
|
210
210
|
), () => {
|
|
211
|
-
var
|
|
212
|
-
return (
|
|
211
|
+
var l, d;
|
|
212
|
+
return (d = (l = e == null ? void 0 : e.current) == null ? void 0 : l.contentWindow) == null ? void 0 : d.document.removeEventListener(
|
|
213
213
|
"keydown",
|
|
214
214
|
s
|
|
215
215
|
);
|
|
216
216
|
};
|
|
217
217
|
}, []), /* @__PURE__ */ r(_, { mode: "wait", children: o && t && /* @__PURE__ */ r(
|
|
218
|
-
|
|
218
|
+
u,
|
|
219
219
|
{
|
|
220
220
|
overrides: {
|
|
221
221
|
initial: { y: 0 },
|
|
@@ -234,8 +234,8 @@ function kt({
|
|
|
234
234
|
className: o,
|
|
235
235
|
withClose: t = !1
|
|
236
236
|
}) {
|
|
237
|
-
const { close: n } =
|
|
238
|
-
return /* @__PURE__ */
|
|
237
|
+
const { close: n } = pe();
|
|
238
|
+
return /* @__PURE__ */ c(
|
|
239
239
|
"div",
|
|
240
240
|
{
|
|
241
241
|
className: p(
|
|
@@ -245,8 +245,8 @@ function kt({
|
|
|
245
245
|
onClick: (s) => s.stopPropagation(),
|
|
246
246
|
children: [
|
|
247
247
|
e,
|
|
248
|
-
t && /* @__PURE__ */
|
|
249
|
-
|
|
248
|
+
t && /* @__PURE__ */ c(
|
|
249
|
+
C,
|
|
250
250
|
{
|
|
251
251
|
size: "fit",
|
|
252
252
|
className: "rounded-full absolute top-4 right-4",
|
|
@@ -289,7 +289,7 @@ const Nt = ({
|
|
|
289
289
|
...o
|
|
290
290
|
}) => /* @__PURE__ */ r("div", { className: p("flex flex-col gap-2", e), ...o });
|
|
291
291
|
Nt.displayName = "DialogerFooter";
|
|
292
|
-
const St =
|
|
292
|
+
const St = U.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
293
293
|
"p",
|
|
294
294
|
{
|
|
295
295
|
ref: t,
|
|
@@ -301,7 +301,7 @@ const St = q.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
|
301
301
|
}
|
|
302
302
|
));
|
|
303
303
|
St.displayName = "DialogerTitle";
|
|
304
|
-
const _t =
|
|
304
|
+
const _t = U.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
305
305
|
"p",
|
|
306
306
|
{
|
|
307
307
|
ref: t,
|
|
@@ -314,20 +314,20 @@ function It({
|
|
|
314
314
|
children: e,
|
|
315
315
|
trigger: o
|
|
316
316
|
}) {
|
|
317
|
-
const { open: t } =
|
|
317
|
+
const { open: t } = pe();
|
|
318
318
|
return pt(o, {
|
|
319
319
|
onClick: () => t(e)
|
|
320
320
|
});
|
|
321
321
|
}
|
|
322
322
|
function Tt({ attachment: e }) {
|
|
323
|
-
const { name: o, size: t, type: n, url: s } = e,
|
|
324
|
-
return
|
|
323
|
+
const { name: o, size: t, type: n, url: s } = e, a = n.startsWith("image/"), i = n.startsWith("video/"), l = n.startsWith("audio/");
|
|
324
|
+
return l ? /* @__PURE__ */ r($, { children: /* @__PURE__ */ r("div", { className: "w-full shrink-0 overflow-hidden", children: /* @__PURE__ */ c("audio", { controls: !0, className: "w-full", children: [
|
|
325
325
|
/* @__PURE__ */ r("source", { src: s, type: n }),
|
|
326
326
|
"Your browser does not support the audio tag."
|
|
327
|
-
] }) }) }) :
|
|
327
|
+
] }) }) }) : i ? /* @__PURE__ */ r($, { children: /* @__PURE__ */ r("div", { className: "w-full border shrink-0 rounded-2xl overflow-hidden", children: /* @__PURE__ */ c("video", { controls: !0, children: [
|
|
328
328
|
/* @__PURE__ */ r("source", { src: s, type: n }),
|
|
329
329
|
"Your browser does not support the video tag."
|
|
330
|
-
] }) }) }) : !
|
|
330
|
+
] }) }) }) : !a && !i && !l ? /* @__PURE__ */ r($, { children: /* @__PURE__ */ r("div", { className: "size-fit border shrink-0 rounded-2xl overflow-hidden", children: /* @__PURE__ */ c("div", { className: "flex items-end gap-2 p-2", children: [
|
|
331
331
|
/* @__PURE__ */ r(
|
|
332
332
|
"a",
|
|
333
333
|
{
|
|
@@ -342,35 +342,35 @@ function Tt({ attachment: e }) {
|
|
|
342
342
|
children: o
|
|
343
343
|
}
|
|
344
344
|
),
|
|
345
|
-
/* @__PURE__ */
|
|
345
|
+
/* @__PURE__ */ c("span", { className: "text-xs text-muted-foreground whitespace-nowrap", children: [
|
|
346
346
|
(t / 1024).toFixed(2),
|
|
347
347
|
" KB"
|
|
348
348
|
] })
|
|
349
349
|
] }) }) }) : /* @__PURE__ */ r(
|
|
350
350
|
It,
|
|
351
351
|
{
|
|
352
|
-
trigger: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(
|
|
352
|
+
trigger: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r($, { children: /* @__PURE__ */ r("div", { className: "size-fit border shrink-0 rounded-2xl overflow-hidden", children: a && /* @__PURE__ */ r("img", { src: s, className: "object-cover size-16", alt: o }) }) }) }),
|
|
353
353
|
children: /* @__PURE__ */ r(
|
|
354
354
|
kt,
|
|
355
355
|
{
|
|
356
356
|
className: "size-full max-w-full rounded-3xl flex items-center justify-center bg-transparent border-none gap-0",
|
|
357
357
|
withClose: !0,
|
|
358
|
-
children:
|
|
358
|
+
children: a && /* @__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 Mt =
|
|
364
|
+
const Mt = U.memo(
|
|
365
365
|
Ir,
|
|
366
366
|
(e, o) => e.children === o.children && e.className === o.className
|
|
367
367
|
);
|
|
368
|
-
function
|
|
368
|
+
function be({
|
|
369
369
|
children: e,
|
|
370
370
|
messageType: o,
|
|
371
371
|
messageId: t
|
|
372
372
|
}) {
|
|
373
|
-
const { anchorTarget: n } =
|
|
373
|
+
const { anchorTarget: n } = b();
|
|
374
374
|
return /* @__PURE__ */ r(
|
|
375
375
|
Mt,
|
|
376
376
|
{
|
|
@@ -379,43 +379,43 @@ function xe({
|
|
|
379
379
|
remarkPlugins: [vt],
|
|
380
380
|
rehypePlugins: [xt],
|
|
381
381
|
components: {
|
|
382
|
-
a: ({ children: s, ...
|
|
382
|
+
a: ({ children: s, ...a }) => /* @__PURE__ */ r("a", { target: a.target || n || "_top", ...a, children: s })
|
|
383
383
|
},
|
|
384
384
|
children: e
|
|
385
385
|
}
|
|
386
386
|
);
|
|
387
387
|
}
|
|
388
|
-
function
|
|
388
|
+
function ge({
|
|
389
389
|
data: e,
|
|
390
390
|
id: o,
|
|
391
391
|
type: t,
|
|
392
392
|
attachments: n,
|
|
393
393
|
isFirstInGroup: s,
|
|
394
|
-
isLastInGroup:
|
|
395
|
-
isAloneInGroup:
|
|
396
|
-
dataComponentNames:
|
|
397
|
-
classNames:
|
|
394
|
+
isLastInGroup: a,
|
|
395
|
+
isAloneInGroup: i,
|
|
396
|
+
dataComponentNames: l,
|
|
397
|
+
classNames: d
|
|
398
398
|
}) {
|
|
399
399
|
if (t !== "AI" && t !== "AGENT") return null;
|
|
400
|
-
const { message: h, variant:
|
|
401
|
-
return /* @__PURE__ */
|
|
400
|
+
const { message: h, variant: y = "default" } = e;
|
|
401
|
+
return /* @__PURE__ */ c(
|
|
402
402
|
"div",
|
|
403
403
|
{
|
|
404
|
-
...g((
|
|
404
|
+
...g((l == null ? void 0 : l.messageContainer) ?? "chat/agent_msg/root"),
|
|
405
405
|
className: p(
|
|
406
406
|
"w-5/6 flex flex-col items-start gap-1",
|
|
407
|
-
|
|
407
|
+
d == null ? void 0 : d.messageContainer
|
|
408
408
|
),
|
|
409
409
|
children: [
|
|
410
|
-
n && n.length > 0 && /* @__PURE__ */ r("div", { className: "w-full gap-1 flex flex-row flex-wrap items-center justify-start", children: n == null ? void 0 : n.map((
|
|
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((v) => /* @__PURE__ */ r(Tt, { attachment: v }, v.id)) }),
|
|
411
411
|
h.length > 0 && /* @__PURE__ */ r(
|
|
412
412
|
"div",
|
|
413
413
|
{
|
|
414
|
-
...g((
|
|
414
|
+
...g((l == null ? void 0 : l.message) ?? "chat/agent_msg/msg"),
|
|
415
415
|
"data-first": s,
|
|
416
|
-
"data-last":
|
|
417
|
-
"data-alone":
|
|
418
|
-
"data-variant":
|
|
416
|
+
"data-last": a,
|
|
417
|
+
"data-alone": i,
|
|
418
|
+
"data-variant": y,
|
|
419
419
|
className: p(
|
|
420
420
|
"transition-all",
|
|
421
421
|
"w-fit py-3 px-4 rounded-3xl bg-secondary text-secondary-foreground",
|
|
@@ -424,24 +424,24 @@ function me({
|
|
|
424
424
|
// `[word-break:break-word]` is deprecated but works in the browser, while `break-words` which is `[overflow-wrap: break-word]` does not work
|
|
425
425
|
// No need to add "whitespace-pre-wrap" in the agent or bot message because it is markup and content appear on separate lines as expected
|
|
426
426
|
// Adding "whitespace-pre-wrap" will result in unnecessarily huge line breaks
|
|
427
|
-
|
|
427
|
+
y === "error" && "bg-destructive/15 text-destructive",
|
|
428
428
|
// We're using the booleans directly here, not the data attributes, to make any external styling more specific than this
|
|
429
|
-
s && !
|
|
430
|
-
|
|
431
|
-
!s && !
|
|
432
|
-
|
|
429
|
+
s && !i && "rounded-bl-md",
|
|
430
|
+
a && !i && "rounded-tl-md",
|
|
431
|
+
!s && !a && !i && "rounded-l-md",
|
|
432
|
+
d == null ? void 0 : d.message
|
|
433
433
|
),
|
|
434
|
-
children: /* @__PURE__ */ r(
|
|
434
|
+
children: /* @__PURE__ */ r(be, { messageType: t, messageId: o, children: h })
|
|
435
435
|
}
|
|
436
436
|
)
|
|
437
437
|
]
|
|
438
438
|
}
|
|
439
439
|
);
|
|
440
440
|
}
|
|
441
|
-
function
|
|
441
|
+
function Lr(e) {
|
|
442
442
|
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) }) });
|
|
443
443
|
}
|
|
444
|
-
const
|
|
444
|
+
const ye = G.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
445
445
|
Q.Root,
|
|
446
446
|
{
|
|
447
447
|
ref: t,
|
|
@@ -453,8 +453,8 @@ const be = G.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
|
453
453
|
...o
|
|
454
454
|
}
|
|
455
455
|
));
|
|
456
|
-
|
|
457
|
-
const
|
|
456
|
+
ye.displayName = Q.Root.displayName;
|
|
457
|
+
const ke = G.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
458
458
|
Q.Image,
|
|
459
459
|
{
|
|
460
460
|
ref: t,
|
|
@@ -462,8 +462,8 @@ const ye = G.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
|
462
462
|
...o
|
|
463
463
|
}
|
|
464
464
|
));
|
|
465
|
-
|
|
466
|
-
const
|
|
465
|
+
ke.displayName = Q.Image.displayName;
|
|
466
|
+
const Ce = G.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
467
467
|
Q.Fallback,
|
|
468
468
|
{
|
|
469
469
|
ref: t,
|
|
@@ -474,26 +474,26 @@ const ke = G.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
|
474
474
|
...o
|
|
475
475
|
}
|
|
476
476
|
));
|
|
477
|
-
|
|
478
|
-
function
|
|
477
|
+
Ce.displayName = Q.Fallback.displayName;
|
|
478
|
+
function we({
|
|
479
479
|
agent: e,
|
|
480
480
|
...o
|
|
481
481
|
}) {
|
|
482
482
|
var t, n;
|
|
483
|
-
return /* @__PURE__ */
|
|
484
|
-
/* @__PURE__ */ r(
|
|
485
|
-
(e == null ? void 0 : e.name) && /* @__PURE__ */ r(
|
|
483
|
+
return /* @__PURE__ */ c(ye, { ...o, children: [
|
|
484
|
+
/* @__PURE__ */ r(ke, { src: (e == null ? void 0 : e.avatarUrl) || (e == null ? void 0 : e.avatar) || "", alt: "Agent Icon" }),
|
|
485
|
+
(e == null ? void 0 : e.name) && /* @__PURE__ */ r(Ce, { children: (n = (t = e == null ? void 0 : e.name) == null ? void 0 : t.slice(0, 1)) == null ? void 0 : n.toUpperCase() })
|
|
486
486
|
] });
|
|
487
487
|
}
|
|
488
|
-
function
|
|
489
|
-
return /* @__PURE__ */ r(_, { children: /* @__PURE__ */
|
|
490
|
-
|
|
488
|
+
function Br({ agent: e }) {
|
|
489
|
+
return /* @__PURE__ */ r(_, { children: /* @__PURE__ */ c(
|
|
490
|
+
u,
|
|
491
491
|
{
|
|
492
492
|
...g("chat/bot_loading/root"),
|
|
493
493
|
className: "flex flex-row items-end w-full gap-2 animate-pulse",
|
|
494
494
|
children: [
|
|
495
|
-
/* @__PURE__ */ r(
|
|
496
|
-
/* @__PURE__ */
|
|
495
|
+
/* @__PURE__ */ r(we, { agent: e }),
|
|
496
|
+
/* @__PURE__ */ c(
|
|
497
497
|
"div",
|
|
498
498
|
{
|
|
499
499
|
...g("chat/bot_loading/bouncing_dots_container"),
|
|
@@ -512,7 +512,7 @@ function Lr({ agent: e }) {
|
|
|
512
512
|
}
|
|
513
513
|
) });
|
|
514
514
|
}
|
|
515
|
-
const Dt = '@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-destructive\\/15{background-color:hsl(var(--opencx-destructive) / .15)}.bg-muted{background-color:hsl(var(--opencx-muted))}.bg-primary{background-color:hsl(var(--opencx-primary))}.bg-secondary{background-color:hsl(var(--opencx-secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-\\[radial-gradient\\(ellipse_at_top_left\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\,radial-gradient\\(ellipse_at_top_right\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\]{background-image:radial-gradient(ellipse at top left,hsl(var(--opencx-primary)),transparent),radial-gradient(ellipse at top right,hsl(var(--opencx-primary)),transparent)}.fill-current{fill:currentColor}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-0{padding-bottom:0}.pb-2{padding-bottom:.5rem}.pe-2{padding-inline-end:.5rem}.pe-4{padding-inline-end:1rem}.ps-2{padding-inline-start:.5rem}.ps-4{padding-inline-start:1rem}.ps-8{padding-inline-start:2rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.text-center{text-align:center}.text-start{text-align:start}.align-middle{vertical-align:middle}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-\\[1\\.75rem\\]{font-size:1.75rem}.text-\\[10px\\]{font-size:10px}.text-\\[16px\\]{font-size:16px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-none{line-height:1}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-destructive{color:hsl(var(--opencx-destructive))}.text-destructive-foreground{color:hsl(var(--opencx-destructive-foreground))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}.text-foreground{color:hsl(var(--opencx-foreground))}.text-muted-foreground{color:hsl(var(--opencx-muted-foreground))}.text-muted-foreground\\/70{color:hsl(var(--opencx-muted-foreground) / .7)}.text-muted-foreground\\/75{color:hsl(var(--opencx-muted-foreground) / .75)}.text-primary{color:hsl(var(--opencx-primary))}.text-primary-foreground{color:hsl(var(--opencx-primary-foreground))}.text-secondary-foreground{color:hsl(var(--opencx-secondary-foreground))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-35{opacity:.35}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-95{opacity:.95}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-8{outline-width:8px}.outline-background{outline-color:hsl(var(--opencx-background))}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-offset-background{--tw-ring-offset-color: hsl(var(--opencx-background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[height\\]{transition-property:height;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.\\[animation-delay\\:-0\\.15s\\]{animation-delay:-.15s}.\\[animation-delay\\:-0\\.3s\\]{animation-delay:-.3s}.\\[field-sizing\\:content\\;\\],.\\[field-sizing\\:content\\]{field-sizing:content}.\\[word-break\\:break-word\\]{word-break:break-word}.required:after{content:" *";color:red}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.file\\:text-primary-foreground::file-selector-button{color:hsl(var(--opencx-primary-foreground))}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--opencx-muted-foreground))}.placeholder\\:text-muted-foreground\\/75::placeholder{color:hsl(var(--opencx-muted-foreground) / .75)}.focus-within\\:border-primary:focus-within{border-color:hsl(var(--opencx-primary))}.hover\\:scale-\\[var\\(--scale\\)\\]:hover{--tw-scale-x: var(--scale);--tw-scale-y: var(--scale);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:border-primary:hover{border-color:hsl(var(--opencx-primary))}.hover\\:bg-secondary:hover{background-color:hsl(var(--opencx-secondary))}.hover\\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.hover\\:text-primary:hover{color:hsl(var(--opencx-primary))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.focus\\:bg-accent:focus{background-color:hsl(var(--opencx-accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--opencx-accent-foreground))}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--opencx-ring))}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--opencx-background))}.active\\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\\:hover\\:scale-\\[calc\\(var\\(--scale\\)-0\\.02\\)\\]:hover:active{--tw-scale-x: calc(var(--scale) - .02);--tw-scale-y: calc(var(--scale) - .02);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:active\\:scale-95:active:hover{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\\:opacity-100{opacity:1}.group:hover .group-hover\\:active\\:scale-90:active,.group:active .group-active\\:scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[state\\=checked\\]\\:translate-x-4[data-state=checked]{--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:hsl(var(--opencx-primary))}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--opencx-accent))}.data-\\[state\\=unchecked\\]\\:bg-input[data-state=unchecked]{background-color:hsl(var(--opencx-input))}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.prose-a\\:underline :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-line:underline}.prose-a\\:decoration-primary :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-color:hsl(var(--opencx-primary))}.rtl\\:-scale-100:where([dir=rtl],[dir=rtl] *){--tw-scale-x: -1;--tw-scale-y: -1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\\[\\&_span\\]\\:size-1 span{width:.25rem;height:.25rem}.\\[\\&_span\\]\\:bg-secondary-foreground span{background-color:hsl(var(--opencx-secondary-foreground))}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:size-4 svg{width:1rem;height:1rem}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_svg\\]\\:text-muted-foreground\\/70 svg{color:hsl(var(--opencx-muted-foreground) / .7)}.\\[\\&_svg\\]\\:hover\\:text-primary:hover svg{color:hsl(var(--opencx-primary))}', Yr = oe.Provider, qr = oe.Root, Xr = oe.Trigger, Rt = G.forwardRef(({ className: e, sideOffset: o = 4, ...t }, n) => /* @__PURE__ */ r(
|
|
515
|
+
const Dt = '@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-destructive\\/15{background-color:hsl(var(--opencx-destructive) / .15)}.bg-muted{background-color:hsl(var(--opencx-muted))}.bg-primary{background-color:hsl(var(--opencx-primary))}.bg-secondary{background-color:hsl(var(--opencx-secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-\\[radial-gradient\\(ellipse_at_top_left\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\,radial-gradient\\(ellipse_at_top_right\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\]{background-image:radial-gradient(ellipse at top left,hsl(var(--opencx-primary)),transparent),radial-gradient(ellipse at top right,hsl(var(--opencx-primary)),transparent)}.fill-current{fill:currentColor}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-0{padding-bottom:0}.pb-2{padding-bottom:.5rem}.pe-2{padding-inline-end:.5rem}.pe-4{padding-inline-end:1rem}.ps-2{padding-inline-start:.5rem}.ps-4{padding-inline-start:1rem}.ps-8{padding-inline-start:2rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.text-center{text-align:center}.text-start{text-align:start}.align-middle{vertical-align:middle}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-\\[1\\.75rem\\]{font-size:1.75rem}.text-\\[10px\\]{font-size:10px}.text-\\[16px\\]{font-size:16px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-none{line-height:1}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-destructive{color:hsl(var(--opencx-destructive))}.text-destructive-foreground{color:hsl(var(--opencx-destructive-foreground))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}.text-foreground{color:hsl(var(--opencx-foreground))}.text-muted-foreground{color:hsl(var(--opencx-muted-foreground))}.text-muted-foreground\\/70{color:hsl(var(--opencx-muted-foreground) / .7)}.text-muted-foreground\\/75{color:hsl(var(--opencx-muted-foreground) / .75)}.text-primary{color:hsl(var(--opencx-primary))}.text-primary-foreground{color:hsl(var(--opencx-primary-foreground))}.text-secondary-foreground{color:hsl(var(--opencx-secondary-foreground))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-35{opacity:.35}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-95{opacity:.95}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-8{outline-width:8px}.outline-background{outline-color:hsl(var(--opencx-background))}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-offset-background{--tw-ring-offset-color: hsl(var(--opencx-background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[height\\]{transition-property:height;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.\\[animation-delay\\:-0\\.15s\\]{animation-delay:-.15s}.\\[animation-delay\\:-0\\.3s\\]{animation-delay:-.3s}.\\[field-sizing\\:content\\;\\],.\\[field-sizing\\:content\\]{field-sizing:content}.\\[word-break\\:break-word\\]{word-break:break-word}.required:after{content:" *";color:red}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.file\\:text-primary-foreground::file-selector-button{color:hsl(var(--opencx-primary-foreground))}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--opencx-muted-foreground))}.placeholder\\:text-muted-foreground\\/75::placeholder{color:hsl(var(--opencx-muted-foreground) / .75)}.focus-within\\:border-primary:focus-within{border-color:hsl(var(--opencx-primary))}.hover\\:scale-\\[var\\(--scale\\)\\]:hover{--tw-scale-x: var(--scale);--tw-scale-y: var(--scale);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:border-primary:hover{border-color:hsl(var(--opencx-primary))}.hover\\:bg-secondary:hover{background-color:hsl(var(--opencx-secondary))}.hover\\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.hover\\:text-primary:hover{color:hsl(var(--opencx-primary))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.focus\\:bg-accent:focus{background-color:hsl(var(--opencx-accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--opencx-accent-foreground))}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--opencx-ring))}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--opencx-background))}.active\\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\\:hover\\:scale-\\[calc\\(var\\(--scale\\)-0\\.02\\)\\]:hover:active{--tw-scale-x: calc(var(--scale) - .02);--tw-scale-y: calc(var(--scale) - .02);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:active\\:scale-95:active:hover{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\\:opacity-100{opacity:1}.group:hover .group-hover\\:active\\:scale-90:active,.group:active .group-active\\:scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[state\\=checked\\]\\:translate-x-4[data-state=checked]{--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:hsl(var(--opencx-primary))}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--opencx-accent))}.data-\\[state\\=unchecked\\]\\:bg-input[data-state=unchecked]{background-color:hsl(var(--opencx-input))}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.prose-a\\:underline :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-line:underline}.prose-a\\:decoration-primary :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-color:hsl(var(--opencx-primary))}.rtl\\:-scale-100:where([dir=rtl],[dir=rtl] *){--tw-scale-x: -1;--tw-scale-y: -1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\\[\\&_span\\]\\:size-1 span{width:.25rem;height:.25rem}.\\[\\&_span\\]\\:bg-secondary-foreground span{background-color:hsl(var(--opencx-secondary-foreground))}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:size-4 svg{width:1rem;height:1rem}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_svg\\]\\:text-muted-foreground\\/70 svg{color:hsl(var(--opencx-muted-foreground) / .7)}.\\[\\&_svg\\]\\:hover\\:text-primary:hover svg{color:hsl(var(--opencx-primary))}', Yr = oe.Provider, Ur = oe.Root, qr = oe.Trigger, Rt = G.forwardRef(({ className: e, sideOffset: o = 4, ...t }, n) => /* @__PURE__ */ r(
|
|
516
516
|
oe.Content,
|
|
517
517
|
{
|
|
518
518
|
ref: n,
|
|
@@ -531,9 +531,9 @@ function J({
|
|
|
531
531
|
side: t,
|
|
532
532
|
align: n
|
|
533
533
|
}) {
|
|
534
|
-
const { disableTooltips: s } =
|
|
535
|
-
return !o || s ? e : /* @__PURE__ */
|
|
536
|
-
/* @__PURE__ */ r(
|
|
534
|
+
const { disableTooltips: s } = b();
|
|
535
|
+
return !o || s ? e : /* @__PURE__ */ c(Ur, { children: [
|
|
536
|
+
/* @__PURE__ */ r(qr, { asChild: !0, children: e }),
|
|
537
537
|
/* @__PURE__ */ r(
|
|
538
538
|
Rt,
|
|
539
539
|
{
|
|
@@ -547,9 +547,9 @@ function J({
|
|
|
547
547
|
] });
|
|
548
548
|
}
|
|
549
549
|
const st = 450;
|
|
550
|
-
function
|
|
551
|
-
const [e, o] =
|
|
552
|
-
return
|
|
550
|
+
function H() {
|
|
551
|
+
const [e, o] = U.useState(() => (window.top || window).innerWidth < st);
|
|
552
|
+
return U.useEffect(() => {
|
|
553
553
|
const t = window.top || window, n = () => {
|
|
554
554
|
o(t.innerWidth < st);
|
|
555
555
|
};
|
|
@@ -558,80 +558,80 @@ function A() {
|
|
|
558
558
|
};
|
|
559
559
|
}, []), { isSmallScreen: e };
|
|
560
560
|
}
|
|
561
|
-
const
|
|
561
|
+
const ie = {
|
|
562
562
|
transitionTimingFunction: "cubic-bezier(0.16, 1, 0.3, 1)",
|
|
563
563
|
transitionDuration: "1000ms"
|
|
564
564
|
};
|
|
565
|
-
function
|
|
566
|
-
var
|
|
567
|
-
const { dir: e } =
|
|
568
|
-
zIndex: ((
|
|
565
|
+
function q() {
|
|
566
|
+
var v, m, z, w, k, I, x, M, O, F, W, E, f, N, S, B, se, _e, Ie, Te, Me, De, Re, je, Ee, Pe, Ae, He, Oe, Fe, We, $e, Le, Be, Ye, Ue, qe, Xe, Ve, Ge, Ke, Qe, Ze, Je, et, tt, rt;
|
|
567
|
+
const { dir: e } = ve(), { isSmallScreen: o } = H(), { theme: t, inline: n } = b(), s = (Y) => n ? "100%" : Y, a = (Y, he) => o ? `100dv${Y}` : he, i = (Y, he) => s(a(Y, he)), l = {
|
|
568
|
+
zIndex: ((v = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : v.zIndex) ?? 1e7,
|
|
569
569
|
offset: {
|
|
570
|
-
bottom: ((
|
|
571
|
-
right: ((
|
|
572
|
-
left: ((
|
|
570
|
+
bottom: ((z = (m = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : m.offset) == null ? void 0 : z.bottom) ?? 20,
|
|
571
|
+
right: ((k = (w = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : w.offset) == null ? void 0 : k.right) ?? (e === "ltr" ? 20 : "initial"),
|
|
572
|
+
left: ((x = (I = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : I.offset) == null ? void 0 : x.left) ?? (e === "rtl" ? 20 : "initial")
|
|
573
573
|
},
|
|
574
574
|
size: {
|
|
575
|
-
button: ((
|
|
576
|
-
icon: ((W = (
|
|
575
|
+
button: ((O = (M = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : M.size) == null ? void 0 : O.button) ?? 48,
|
|
576
|
+
icon: ((W = (F = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : F.size) == null ? void 0 : W.icon) ?? 24
|
|
577
577
|
}
|
|
578
|
-
},
|
|
579
|
-
const Y = e === "ltr" ?
|
|
578
|
+
}, d = (() => {
|
|
579
|
+
const Y = e === "ltr" ? l.offset.right : l.offset.left;
|
|
580
580
|
return typeof Y != "number" ? 0 : Y;
|
|
581
581
|
})(), h = {
|
|
582
582
|
palette: (t == null ? void 0 : t.palette) ?? "neutral",
|
|
583
583
|
primaryColor: (t == null ? void 0 : t.primaryColor) ?? "hsl(0 0% 9%)",
|
|
584
|
-
widgetTrigger:
|
|
584
|
+
widgetTrigger: l,
|
|
585
585
|
widgetContentContainer: {
|
|
586
586
|
borderRadius: o ? "0px" : ((E = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : E.borderRadius) ?? "32px",
|
|
587
|
-
zIndex: ((
|
|
588
|
-
outline: ((
|
|
587
|
+
zIndex: ((f = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : f.zIndex) ?? l.zIndex + 1,
|
|
588
|
+
outline: ((N = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : N.outline) ?? "none",
|
|
589
589
|
// was: '1px solid'
|
|
590
|
-
outlineColor: ((
|
|
591
|
-
boxShadow: ((
|
|
592
|
-
transitionProperty: ((
|
|
593
|
-
transitionTimingFunction: ((_e = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : _e.transitionTimingFunction) ??
|
|
594
|
-
transitionDuration: ((Ie = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Ie.transitionDuration) ??
|
|
590
|
+
outlineColor: ((S = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : S.outlineColor) ?? "hsl(0 0% 50% / .5)",
|
|
591
|
+
boxShadow: ((B = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : B.boxShadow) ?? "0 0px 100px 0px rgb(0 0 0 / 0.25)",
|
|
592
|
+
transitionProperty: ((se = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : se.transitionProperty) ?? "all",
|
|
593
|
+
transitionTimingFunction: ((_e = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : _e.transitionTimingFunction) ?? ie.transitionTimingFunction,
|
|
594
|
+
transitionDuration: ((Ie = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Ie.transitionDuration) ?? ie.transitionDuration,
|
|
595
595
|
offset: {
|
|
596
|
-
side: o ? 0 :
|
|
597
|
-
align: o ? 0 :
|
|
596
|
+
side: o ? 0 : l.offset.bottom + l.size.button + V.y * 2 + (((Me = (Te = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Te.offset) == null ? void 0 : Me.side) ?? 10),
|
|
597
|
+
align: o ? 0 : d + (((Re = (De = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : De.offset) == null ? void 0 : Re.align) ?? 0)
|
|
598
598
|
}
|
|
599
599
|
},
|
|
600
600
|
screens: {
|
|
601
601
|
welcome: {
|
|
602
|
-
width:
|
|
602
|
+
width: i("w", ((Ee = (je = t == null ? void 0 : t.screens) == null ? void 0 : je.welcome) == null ? void 0 : Ee.width) ?? "400px"),
|
|
603
603
|
// By setting minHeight to 1px, a nice animation will play from 1px to the dynamic height of the content of the screen
|
|
604
|
-
minHeight:
|
|
604
|
+
minHeight: i(
|
|
605
605
|
"h",
|
|
606
|
-
((
|
|
606
|
+
((Ae = (Pe = t == null ? void 0 : t.screens) == null ? void 0 : Pe.welcome) == null ? void 0 : Ae.minHeight) ?? "1px"
|
|
607
607
|
)
|
|
608
608
|
},
|
|
609
609
|
sessions: {
|
|
610
|
-
width:
|
|
611
|
-
height:
|
|
610
|
+
width: i("w", ((Oe = (He = t == null ? void 0 : t.screens) == null ? void 0 : He.sessions) == null ? void 0 : Oe.width) ?? "450px"),
|
|
611
|
+
height: i("h", ((We = (Fe = t == null ? void 0 : t.screens) == null ? void 0 : Fe.sessions) == null ? void 0 : We.height) ?? "600px")
|
|
612
612
|
},
|
|
613
613
|
chat: {
|
|
614
|
-
width:
|
|
615
|
-
height:
|
|
614
|
+
width: i("w", ((Le = ($e = t == null ? void 0 : t.screens) == null ? void 0 : $e.chat) == null ? void 0 : Le.width) ?? "525px"),
|
|
615
|
+
height: i("h", ((Ye = (Be = t == null ? void 0 : t.screens) == null ? void 0 : Be.chat) == null ? void 0 : Ye.height) ?? "700px"),
|
|
616
616
|
withCanvas: {
|
|
617
|
-
width:
|
|
617
|
+
width: i(
|
|
618
618
|
"w",
|
|
619
|
-
((
|
|
619
|
+
((Xe = (qe = (Ue = t == null ? void 0 : t.screens) == null ? void 0 : Ue.chat) == null ? void 0 : qe.withCanvas) == null ? void 0 : Xe.width) ?? "min(1050px, 100vw)"
|
|
620
620
|
),
|
|
621
|
-
height:
|
|
621
|
+
height: i(
|
|
622
622
|
"h",
|
|
623
623
|
((Ke = (Ge = (Ve = t == null ? void 0 : t.screens) == null ? void 0 : Ve.chat) == null ? void 0 : Ge.withCanvas) == null ? void 0 : Ke.height) ?? "min(800px, 100vh)"
|
|
624
624
|
),
|
|
625
|
-
transitionTimingFunction: ((Je = (Ze = (Qe = t == null ? void 0 : t.screens) == null ? void 0 : Qe.chat) == null ? void 0 : Ze.withCanvas) == null ? void 0 : Je.transitionTimingFunction) ??
|
|
626
|
-
transitionDuration: ((rt = (tt = (et = t == null ? void 0 : t.screens) == null ? void 0 : et.chat) == null ? void 0 : tt.withCanvas) == null ? void 0 : rt.transitionDuration) ??
|
|
625
|
+
transitionTimingFunction: ((Je = (Ze = (Qe = t == null ? void 0 : t.screens) == null ? void 0 : Qe.chat) == null ? void 0 : Ze.withCanvas) == null ? void 0 : Je.transitionTimingFunction) ?? ie.transitionTimingFunction,
|
|
626
|
+
transitionDuration: ((rt = (tt = (et = t == null ? void 0 : t.screens) == null ? void 0 : et.chat) == null ? void 0 : tt.withCanvas) == null ? void 0 : rt.transitionDuration) ?? ie.transitionDuration
|
|
627
627
|
}
|
|
628
628
|
}
|
|
629
629
|
}
|
|
630
|
-
},
|
|
630
|
+
}, y = {
|
|
631
631
|
// Subtract the offset.bottom twice so that it adds a bit of padding to the top
|
|
632
632
|
// Subtract the distance between the trigger and the widget content container
|
|
633
633
|
// Subtract the invisible padding of the trigger (for the wobble effect)
|
|
634
|
-
maxHeight:
|
|
634
|
+
maxHeight: i(
|
|
635
635
|
"h",
|
|
636
636
|
`calc(
|
|
637
637
|
100vh
|
|
@@ -641,14 +641,14 @@ function X() {
|
|
|
641
641
|
)`
|
|
642
642
|
),
|
|
643
643
|
// Subtract the offset.right twice so that it adds a bit of padding to the left
|
|
644
|
-
maxWidth:
|
|
644
|
+
maxWidth: i(
|
|
645
645
|
"w",
|
|
646
646
|
`calc(
|
|
647
647
|
100vw
|
|
648
|
-
- ${
|
|
648
|
+
- ${d * 2}px
|
|
649
649
|
)`
|
|
650
650
|
),
|
|
651
|
-
minHeight:
|
|
651
|
+
minHeight: i(
|
|
652
652
|
"h",
|
|
653
653
|
`min(
|
|
654
654
|
${h.screens.welcome.minHeight},
|
|
@@ -656,7 +656,7 @@ function X() {
|
|
|
656
656
|
${h.screens.chat.height}
|
|
657
657
|
)`
|
|
658
658
|
),
|
|
659
|
-
minWidth:
|
|
659
|
+
minWidth: i(
|
|
660
660
|
"w",
|
|
661
661
|
`min(
|
|
662
662
|
${h.screens.welcome.width},
|
|
@@ -667,14 +667,14 @@ function X() {
|
|
|
667
667
|
};
|
|
668
668
|
return {
|
|
669
669
|
theme: h,
|
|
670
|
-
computed:
|
|
671
|
-
cssVars:
|
|
670
|
+
computed: y,
|
|
671
|
+
cssVars: Xr({
|
|
672
672
|
palette: h.palette,
|
|
673
673
|
primary: h.primaryColor
|
|
674
674
|
})
|
|
675
675
|
};
|
|
676
676
|
}
|
|
677
|
-
function
|
|
677
|
+
function Xr({
|
|
678
678
|
palette: e,
|
|
679
679
|
primary: o
|
|
680
680
|
}) {
|
|
@@ -761,7 +761,7 @@ function jt(e) {
|
|
|
761
761
|
}
|
|
762
762
|
}
|
|
763
763
|
function Et() {
|
|
764
|
-
const { contentIframeRef: e } = R(), { inline: o } =
|
|
764
|
+
const { contentIframeRef: e } = R(), { inline: o } = b();
|
|
765
765
|
return {
|
|
766
766
|
setWidth: (t) => {
|
|
767
767
|
var n;
|
|
@@ -779,11 +779,11 @@ function Et() {
|
|
|
779
779
|
}
|
|
780
780
|
};
|
|
781
781
|
}
|
|
782
|
-
function
|
|
782
|
+
function ze({
|
|
783
783
|
width: e,
|
|
784
784
|
height: o
|
|
785
785
|
}) {
|
|
786
|
-
const { isSmallScreen: t } =
|
|
786
|
+
const { isSmallScreen: t } = H(), { setWidth: n, setHeight: s } = Et();
|
|
787
787
|
re(() => {
|
|
788
788
|
e && n(e), o && s(o);
|
|
789
789
|
}, [t, o, e, n, s]);
|
|
@@ -824,7 +824,7 @@ function ee({
|
|
|
824
824
|
case "SquareX":
|
|
825
825
|
return tr;
|
|
826
826
|
case "X":
|
|
827
|
-
return
|
|
827
|
+
return xe;
|
|
828
828
|
case void 0:
|
|
829
829
|
return it;
|
|
830
830
|
default:
|
|
@@ -833,45 +833,48 @@ function ee({
|
|
|
833
833
|
})();
|
|
834
834
|
return /* @__PURE__ */ r(t, { className: p("size-4", o) });
|
|
835
835
|
}
|
|
836
|
-
function
|
|
836
|
+
function ne() {
|
|
837
837
|
const {
|
|
838
838
|
widgetCtx: { org: e }
|
|
839
839
|
} = R(), {
|
|
840
840
|
sessionState: { session: o }
|
|
841
|
-
} =
|
|
841
|
+
} = L(), t = b(), {
|
|
842
842
|
messagesState: { messages: n }
|
|
843
843
|
} = j(), {
|
|
844
844
|
routerState: { screen: s }
|
|
845
|
-
} =
|
|
845
|
+
} = A();
|
|
846
846
|
return {
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
currentScreen: s
|
|
854
|
-
}
|
|
847
|
+
react: U,
|
|
848
|
+
org: e,
|
|
849
|
+
session: o,
|
|
850
|
+
config: t,
|
|
851
|
+
messages: n,
|
|
852
|
+
currentScreen: s
|
|
855
853
|
};
|
|
856
854
|
}
|
|
857
855
|
function Vr() {
|
|
858
856
|
var t;
|
|
859
|
-
const
|
|
857
|
+
const e = ne(), o = (t = e.config.customComponents) == null ? void 0 : t.headerBottom;
|
|
860
858
|
return o ? /* @__PURE__ */ r(o, { ...e }) : null;
|
|
861
859
|
}
|
|
860
|
+
function Gr({ fallback: e }) {
|
|
861
|
+
var n;
|
|
862
|
+
const o = ne(), t = (n = o.config.customComponents) == null ? void 0 : n.headerTitle;
|
|
863
|
+
return t ? /* @__PURE__ */ r(t, { ...o }) : e;
|
|
864
|
+
}
|
|
862
865
|
function Ne() {
|
|
863
866
|
const {
|
|
864
867
|
widgetCtx: { org: e }
|
|
865
868
|
} = R(), {
|
|
866
869
|
routerState: { screen: o }
|
|
867
|
-
} =
|
|
870
|
+
} = A(), { textContent: t } = b();
|
|
868
871
|
return (() => {
|
|
869
|
-
var s,
|
|
872
|
+
var s, a;
|
|
870
873
|
switch (o) {
|
|
871
874
|
case "chat":
|
|
872
875
|
return (s = t == null ? void 0 : t.chatScreen) == null ? void 0 : s.headerTitle;
|
|
873
876
|
case "sessions":
|
|
874
|
-
return (
|
|
877
|
+
return (a = t == null ? void 0 : t.sessionsScreen) == null ? void 0 : a.headerTitle;
|
|
875
878
|
case "welcome":
|
|
876
879
|
return;
|
|
877
880
|
default:
|
|
@@ -880,7 +883,7 @@ function Ne() {
|
|
|
880
883
|
}
|
|
881
884
|
})() ?? e.name ?? "Chat";
|
|
882
885
|
}
|
|
883
|
-
function
|
|
886
|
+
function Kr(e) {
|
|
884
887
|
switch (e) {
|
|
885
888
|
case "chat":
|
|
886
889
|
return g("chat/header");
|
|
@@ -893,13 +896,13 @@ function Gr(e) {
|
|
|
893
896
|
return;
|
|
894
897
|
}
|
|
895
898
|
}
|
|
896
|
-
function
|
|
897
|
-
const { router: e } =
|
|
899
|
+
function Qr() {
|
|
900
|
+
const { router: e } = b(), {
|
|
898
901
|
routerState: { screen: o },
|
|
899
902
|
toSessionsScreen: t
|
|
900
|
-
} =
|
|
903
|
+
} = A();
|
|
901
904
|
return o !== "chat" || e != null && e.chatScreenOnly ? null : /* @__PURE__ */ r(
|
|
902
|
-
|
|
905
|
+
C,
|
|
903
906
|
{
|
|
904
907
|
variant: "ghost",
|
|
905
908
|
size: "fit",
|
|
@@ -909,12 +912,12 @@ function Kr() {
|
|
|
909
912
|
}
|
|
910
913
|
);
|
|
911
914
|
}
|
|
912
|
-
function
|
|
915
|
+
function Zr({
|
|
913
916
|
button: e
|
|
914
917
|
}) {
|
|
915
|
-
const { setIsOpen: o } = K(), { isSmallScreen: t } =
|
|
918
|
+
const { setIsOpen: o } = K(), { isSmallScreen: t } = H();
|
|
916
919
|
return t && e.hideOnSmallScreen || !t && e.hideOnLargeScreen ? null : /* @__PURE__ */ r(
|
|
917
|
-
|
|
920
|
+
C,
|
|
918
921
|
{
|
|
919
922
|
variant: "ghost",
|
|
920
923
|
size: "fit",
|
|
@@ -927,44 +930,44 @@ function Qr({
|
|
|
927
930
|
}
|
|
928
931
|
);
|
|
929
932
|
}
|
|
930
|
-
function
|
|
933
|
+
function ue({
|
|
931
934
|
button: e
|
|
932
935
|
}) {
|
|
933
936
|
const [o, t] = T(!1), {
|
|
934
937
|
routerState: { screen: n }
|
|
935
|
-
} =
|
|
938
|
+
} = A(), { isSmallScreen: s } = H(), { theme: a } = q(), { setWidth: i, setHeight: l } = Et();
|
|
936
939
|
if (n !== "chat" && n !== "sessions") return null;
|
|
937
|
-
const
|
|
940
|
+
const d = (() => {
|
|
938
941
|
switch (n) {
|
|
939
942
|
case "chat":
|
|
940
|
-
return
|
|
943
|
+
return a.screens.chat.height;
|
|
941
944
|
case "sessions":
|
|
942
|
-
return
|
|
945
|
+
return a.screens.sessions.height;
|
|
943
946
|
default:
|
|
944
|
-
return D(n,
|
|
947
|
+
return D(n, ue.name), a.screens.chat.height;
|
|
945
948
|
}
|
|
946
949
|
})(), h = (() => {
|
|
947
950
|
switch (n) {
|
|
948
951
|
case "chat":
|
|
949
|
-
return
|
|
952
|
+
return a.screens.chat.width;
|
|
950
953
|
case "sessions":
|
|
951
|
-
return
|
|
954
|
+
return a.screens.sessions.width;
|
|
952
955
|
default:
|
|
953
|
-
return D(n,
|
|
956
|
+
return D(n, ue.name), a.screens.chat.width;
|
|
954
957
|
}
|
|
955
|
-
})(),
|
|
956
|
-
t((
|
|
957
|
-
const m = !
|
|
958
|
-
return
|
|
958
|
+
})(), y = () => {
|
|
959
|
+
t((v) => {
|
|
960
|
+
const m = !v;
|
|
961
|
+
return l(m ? "100vh" : d), i(m ? `max(40vw, ${h})` : h), m;
|
|
959
962
|
});
|
|
960
963
|
};
|
|
961
964
|
return s && e.hideOnSmallScreen || !s && e.hideOnLargeScreen ? null : /* @__PURE__ */ r(
|
|
962
|
-
|
|
965
|
+
C,
|
|
963
966
|
{
|
|
964
967
|
variant: "ghost",
|
|
965
968
|
size: "fit",
|
|
966
969
|
className: "rounded-full",
|
|
967
|
-
onClick:
|
|
970
|
+
onClick: y,
|
|
968
971
|
children: /* @__PURE__ */ r(
|
|
969
972
|
ee,
|
|
970
973
|
{
|
|
@@ -974,13 +977,13 @@ function we({
|
|
|
974
977
|
}
|
|
975
978
|
);
|
|
976
979
|
}
|
|
977
|
-
function
|
|
980
|
+
function Pt({
|
|
978
981
|
button: e
|
|
979
982
|
}) {
|
|
980
|
-
var
|
|
981
|
-
const { close: o } =
|
|
982
|
-
const { success:
|
|
983
|
-
if (o(), !
|
|
983
|
+
var k, I;
|
|
984
|
+
const { close: o } = pe(), { widgetCtx: t } = R(), { setIsOpen: n } = K(), { resolveSession: s, sessionState: a } = L(), { isSmallScreen: i } = H(), l = !a.session, d = ((k = a.session) == null ? void 0 : k.isOpened) === !1, h = e.onResolved || "stay-in-chat", y = e.behaviorBeforeSessionCreation || "disabled", v = e.behaviorIfSessionIsResolved || "disabled", m = !!(a.isResolvingSession || l && y === "disabled" || d && v === "disabled"), z = async () => {
|
|
985
|
+
const { success: x, error: M } = await s();
|
|
986
|
+
if (o(), !x) return console.error(M);
|
|
984
987
|
switch (h) {
|
|
985
988
|
case "stay-in-chat":
|
|
986
989
|
return;
|
|
@@ -994,12 +997,12 @@ function Ot({
|
|
|
994
997
|
n(!1), t.resetChat();
|
|
995
998
|
break;
|
|
996
999
|
default:
|
|
997
|
-
D(h,
|
|
1000
|
+
D(h, Pt.name);
|
|
998
1001
|
break;
|
|
999
1002
|
}
|
|
1000
|
-
},
|
|
1001
|
-
if (
|
|
1002
|
-
switch (
|
|
1003
|
+
}, w = () => {
|
|
1004
|
+
if (l)
|
|
1005
|
+
switch (y) {
|
|
1003
1006
|
case "disabled":
|
|
1004
1007
|
return;
|
|
1005
1008
|
case "close-widget":
|
|
@@ -1007,12 +1010,12 @@ function Ot({
|
|
|
1007
1010
|
break;
|
|
1008
1011
|
default:
|
|
1009
1012
|
D(
|
|
1010
|
-
|
|
1011
|
-
|
|
1013
|
+
y,
|
|
1014
|
+
w.name
|
|
1012
1015
|
);
|
|
1013
1016
|
}
|
|
1014
|
-
if (
|
|
1015
|
-
switch (
|
|
1017
|
+
if (d)
|
|
1018
|
+
switch (v) {
|
|
1016
1019
|
case "disabled":
|
|
1017
1020
|
return;
|
|
1018
1021
|
case "close-widget":
|
|
@@ -1028,16 +1031,16 @@ function Ot({
|
|
|
1028
1031
|
break;
|
|
1029
1032
|
default:
|
|
1030
1033
|
D(
|
|
1031
|
-
|
|
1032
|
-
|
|
1034
|
+
v,
|
|
1035
|
+
w.name
|
|
1033
1036
|
);
|
|
1034
1037
|
}
|
|
1035
1038
|
};
|
|
1036
|
-
return
|
|
1039
|
+
return i && e.hideOnSmallScreen || !i && e.hideOnLargeScreen ? null : ((I = e.confirmation) == null ? void 0 : I.type) === "modal" && !d && !l ? /* @__PURE__ */ r(
|
|
1037
1040
|
It,
|
|
1038
1041
|
{
|
|
1039
1042
|
trigger: /* @__PURE__ */ r(
|
|
1040
|
-
|
|
1043
|
+
C,
|
|
1041
1044
|
{
|
|
1042
1045
|
variant: "ghost",
|
|
1043
1046
|
size: "fit",
|
|
@@ -1046,25 +1049,25 @@ function Ot({
|
|
|
1046
1049
|
children: /* @__PURE__ */ r(ee, { name: e.icon })
|
|
1047
1050
|
}
|
|
1048
1051
|
),
|
|
1049
|
-
children: /* @__PURE__ */
|
|
1052
|
+
children: /* @__PURE__ */ c(kt, { children: [
|
|
1050
1053
|
/* @__PURE__ */ r(Ct, { children: /* @__PURE__ */ r(St, { children: e.confirmation.title || "Close conversation" }) }),
|
|
1051
1054
|
/* @__PURE__ */ r(zt, { children: /* @__PURE__ */ r(_t, { children: e.confirmation.description || "Are you sure you want to close this conversation?" }) }),
|
|
1052
|
-
/* @__PURE__ */
|
|
1055
|
+
/* @__PURE__ */ c(Nt, { children: [
|
|
1053
1056
|
/* @__PURE__ */ r(
|
|
1054
|
-
|
|
1057
|
+
C,
|
|
1055
1058
|
{
|
|
1056
1059
|
variant: "secondary",
|
|
1057
1060
|
onClick: o,
|
|
1058
|
-
disabled:
|
|
1061
|
+
disabled: a.isResolvingSession,
|
|
1059
1062
|
children: e.confirmation.cancelButtonText || "No"
|
|
1060
1063
|
}
|
|
1061
1064
|
),
|
|
1062
1065
|
/* @__PURE__ */ r(
|
|
1063
|
-
|
|
1066
|
+
C,
|
|
1064
1067
|
{
|
|
1065
1068
|
variant: "destructive",
|
|
1066
|
-
onClick:
|
|
1067
|
-
disabled:
|
|
1069
|
+
onClick: z,
|
|
1070
|
+
disabled: a.isResolvingSession,
|
|
1068
1071
|
children: e.confirmation.confirmButtonText || "Yes"
|
|
1069
1072
|
}
|
|
1070
1073
|
)
|
|
@@ -1072,53 +1075,53 @@ function Ot({
|
|
|
1072
1075
|
] })
|
|
1073
1076
|
}
|
|
1074
1077
|
) : /* @__PURE__ */ r(
|
|
1075
|
-
|
|
1078
|
+
C,
|
|
1076
1079
|
{
|
|
1077
1080
|
variant: "ghost",
|
|
1078
1081
|
size: "fit",
|
|
1079
1082
|
className: "rounded-full",
|
|
1080
|
-
onClick:
|
|
1083
|
+
onClick: d || l ? w : z,
|
|
1081
1084
|
disabled: m,
|
|
1082
1085
|
children: /* @__PURE__ */ r(ee, { name: e.icon })
|
|
1083
1086
|
}
|
|
1084
1087
|
);
|
|
1085
1088
|
}
|
|
1086
|
-
function
|
|
1089
|
+
function fe({ button: e }) {
|
|
1087
1090
|
switch (e.functionality) {
|
|
1088
1091
|
case "close-widget":
|
|
1089
|
-
return /* @__PURE__ */ r(
|
|
1092
|
+
return /* @__PURE__ */ r(Zr, { button: e });
|
|
1090
1093
|
case "expand-shrink":
|
|
1091
|
-
return /* @__PURE__ */ r(
|
|
1094
|
+
return /* @__PURE__ */ r(ue, { button: e });
|
|
1092
1095
|
case "resolve-session":
|
|
1093
|
-
return /* @__PURE__ */ r(
|
|
1096
|
+
return /* @__PURE__ */ r(Pt, { button: e });
|
|
1094
1097
|
default:
|
|
1095
|
-
return D(e,
|
|
1098
|
+
return D(e, fe.name), null;
|
|
1096
1099
|
}
|
|
1097
1100
|
}
|
|
1098
|
-
const
|
|
1101
|
+
const Jr = {
|
|
1099
1102
|
functionality: "close-widget",
|
|
1100
1103
|
hideOnLargeScreen: !0,
|
|
1101
1104
|
icon: "X"
|
|
1102
1105
|
};
|
|
1103
|
-
function
|
|
1106
|
+
function eo() {
|
|
1104
1107
|
const {
|
|
1105
1108
|
routerState: { screen: e }
|
|
1106
|
-
} =
|
|
1107
|
-
return !t || t.length === 0 ? /* @__PURE__ */ r(
|
|
1108
|
-
|
|
1109
|
+
} = A(), { headerButtons: o } = b(), t = e === "chat" ? o == null ? void 0 : o.chatScreen : e === "sessions" ? o == null ? void 0 : o.sessionsScreen : [];
|
|
1110
|
+
return !t || t.length === 0 ? /* @__PURE__ */ r(fe, { button: Jr }) : /* @__PURE__ */ r(te, { children: t.map((n) => /* @__PURE__ */ r(
|
|
1111
|
+
fe,
|
|
1109
1112
|
{
|
|
1110
1113
|
button: n
|
|
1111
1114
|
},
|
|
1112
1115
|
`${n.functionality}-${n.icon}`
|
|
1113
1116
|
)) });
|
|
1114
1117
|
}
|
|
1115
|
-
function
|
|
1118
|
+
function At() {
|
|
1116
1119
|
const {
|
|
1117
1120
|
routerState: { screen: e }
|
|
1118
|
-
} =
|
|
1119
|
-
return /* @__PURE__ */
|
|
1120
|
-
/* @__PURE__ */
|
|
1121
|
-
/* @__PURE__ */ r(
|
|
1121
|
+
} = A(), o = Kr(e), t = Ne();
|
|
1122
|
+
return /* @__PURE__ */ c("header", { ...o, className: "py-2 px-4 shrink-0", children: [
|
|
1123
|
+
/* @__PURE__ */ c("div", { className: "flex items-center gap-2", children: [
|
|
1124
|
+
/* @__PURE__ */ r(Qr, {}),
|
|
1122
1125
|
/* @__PURE__ */ r(
|
|
1123
1126
|
"div",
|
|
1124
1127
|
{
|
|
@@ -1126,51 +1129,56 @@ function Pt() {
|
|
|
1126
1129
|
"flex-1 h-8 flex items-center",
|
|
1127
1130
|
e === "sessions" && "ps-2"
|
|
1128
1131
|
),
|
|
1129
|
-
children: /* @__PURE__ */ r(
|
|
1132
|
+
children: /* @__PURE__ */ r(
|
|
1133
|
+
Gr,
|
|
1134
|
+
{
|
|
1135
|
+
fallback: /* @__PURE__ */ r("h2", { className: "font-semibold", children: t })
|
|
1136
|
+
}
|
|
1137
|
+
)
|
|
1130
1138
|
}
|
|
1131
1139
|
),
|
|
1132
|
-
/* @__PURE__ */ r(
|
|
1140
|
+
/* @__PURE__ */ r(eo, {})
|
|
1133
1141
|
] }),
|
|
1134
1142
|
/* @__PURE__ */ r(Vr, {})
|
|
1135
1143
|
] });
|
|
1136
1144
|
}
|
|
1137
|
-
function
|
|
1145
|
+
function Ht({ className: e }) {
|
|
1138
1146
|
return /* @__PURE__ */ r(wr, { className: p("size-4 animate-spin", e) });
|
|
1139
1147
|
}
|
|
1140
|
-
function
|
|
1148
|
+
function to() {
|
|
1141
1149
|
const {
|
|
1142
1150
|
messagesState: { isInitialFetchLoading: e }
|
|
1143
|
-
} = j(), { isSmallScreen: o } =
|
|
1151
|
+
} = j(), { isSmallScreen: o } = H(), { activeMode: t, Component: n } = mt();
|
|
1144
1152
|
return {
|
|
1145
1153
|
isCanvasOpen: !e && !o && !!t && !!n
|
|
1146
1154
|
};
|
|
1147
1155
|
}
|
|
1148
|
-
function
|
|
1149
|
-
const { activeMode:
|
|
1156
|
+
function ro() {
|
|
1157
|
+
const e = ne(), { activeMode: o, Component: t } = mt(), { sendMessage: n } = j(), { createStateCheckpoint: s } = L(), [a, i] = T(!1), l = async (d) => {
|
|
1150
1158
|
try {
|
|
1151
|
-
i(!0), await
|
|
1152
|
-
} catch (
|
|
1153
|
-
console.error(
|
|
1159
|
+
i(!0), await n(d);
|
|
1160
|
+
} catch (h) {
|
|
1161
|
+
console.error(h);
|
|
1154
1162
|
} finally {
|
|
1155
1163
|
i(!1);
|
|
1156
1164
|
}
|
|
1157
1165
|
};
|
|
1158
|
-
return !
|
|
1159
|
-
|
|
1166
|
+
return !o || !t ? null : /* @__PURE__ */ r(
|
|
1167
|
+
t,
|
|
1160
1168
|
{
|
|
1161
|
-
|
|
1162
|
-
mode:
|
|
1163
|
-
createStateCheckpoint:
|
|
1164
|
-
sendMessage:
|
|
1165
|
-
isSendingMessage:
|
|
1169
|
+
...e,
|
|
1170
|
+
mode: o,
|
|
1171
|
+
createStateCheckpoint: s,
|
|
1172
|
+
sendMessage: l,
|
|
1173
|
+
isSendingMessage: a
|
|
1166
1174
|
}
|
|
1167
1175
|
);
|
|
1168
1176
|
}
|
|
1169
|
-
const
|
|
1177
|
+
const P = U.forwardRef(
|
|
1170
1178
|
(e, o) => {
|
|
1171
1179
|
var t, n, s;
|
|
1172
1180
|
return /* @__PURE__ */ r(
|
|
1173
|
-
|
|
1181
|
+
u,
|
|
1174
1182
|
{
|
|
1175
1183
|
...e,
|
|
1176
1184
|
ref: o,
|
|
@@ -1184,8 +1192,8 @@ const O = q.forwardRef(
|
|
|
1184
1192
|
);
|
|
1185
1193
|
}
|
|
1186
1194
|
);
|
|
1187
|
-
|
|
1188
|
-
const
|
|
1195
|
+
P.displayName = "MotionDiv__VerticalReveal";
|
|
1196
|
+
const oo = [
|
|
1189
1197
|
{
|
|
1190
1198
|
label: "Terrible",
|
|
1191
1199
|
value: 1,
|
|
@@ -1212,23 +1220,23 @@ const ro = [
|
|
|
1212
1220
|
emoji: "😍"
|
|
1213
1221
|
}
|
|
1214
1222
|
];
|
|
1215
|
-
function
|
|
1216
|
-
const { isSmallScreen: e } =
|
|
1223
|
+
function no() {
|
|
1224
|
+
const { isSmallScreen: e } = H(), {
|
|
1217
1225
|
submitCsat: o,
|
|
1218
1226
|
isCsatRequested: t,
|
|
1219
1227
|
isCsatSubmitted: n,
|
|
1220
1228
|
submittedScore: s,
|
|
1221
|
-
submittedFeedback:
|
|
1222
|
-
} = gt(), [
|
|
1223
|
-
|
|
1224
|
-
},
|
|
1225
|
-
|
|
1226
|
-
score:
|
|
1227
|
-
feedback:
|
|
1229
|
+
submittedFeedback: a
|
|
1230
|
+
} = gt(), [i, l] = T(null), [d, h] = T(null), y = (m) => {
|
|
1231
|
+
l((z) => z === m ? null : m);
|
|
1232
|
+
}, v = () => {
|
|
1233
|
+
i && o({
|
|
1234
|
+
score: i,
|
|
1235
|
+
feedback: d || void 0
|
|
1228
1236
|
});
|
|
1229
1237
|
};
|
|
1230
|
-
return !t && !n ? null : /* @__PURE__ */
|
|
1231
|
-
/* @__PURE__ */ r(_, { mode: "wait", children: t && !
|
|
1238
|
+
return !t && !n ? null : /* @__PURE__ */ c("div", { className: "w-1/2 min-w-80 max-w-96 mx-auto overflow-hidden", children: [
|
|
1239
|
+
/* @__PURE__ */ r(_, { mode: "wait", children: t && !i ? /* @__PURE__ */ r(P, { 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(P, { children: /* @__PURE__ */ r("p", { className: "text-sm text-muted-foreground text-center pt-2", children: "You rated the conversation as" }) }, "csat-submitted-title") : null }),
|
|
1232
1240
|
/* @__PURE__ */ r(
|
|
1233
1241
|
"div",
|
|
1234
1242
|
{
|
|
@@ -1237,29 +1245,29 @@ function oo() {
|
|
|
1237
1245
|
"transition-all",
|
|
1238
1246
|
n && "gap-0 justify-center"
|
|
1239
1247
|
),
|
|
1240
|
-
children:
|
|
1241
|
-
|
|
1248
|
+
children: oo.map((m) => /* @__PURE__ */ r(
|
|
1249
|
+
C,
|
|
1242
1250
|
{
|
|
1243
|
-
variant: m.value ===
|
|
1251
|
+
variant: m.value === i ? "secondary" : "ghost",
|
|
1244
1252
|
size: "selfless",
|
|
1245
1253
|
className: p(
|
|
1246
1254
|
"transition-all overflow-hidden",
|
|
1247
1255
|
"text-2xl size-8 rounded-full",
|
|
1248
1256
|
"opacity-35",
|
|
1249
1257
|
"hover:opacity-100",
|
|
1250
|
-
!
|
|
1251
|
-
m.value ===
|
|
1258
|
+
!i && "opacity-100",
|
|
1259
|
+
m.value === i && "opacity-100",
|
|
1252
1260
|
n && m.value !== s && "opacity-0 size-0",
|
|
1253
1261
|
n && m.value === s && "opacity-100 size-fit text-4xl"
|
|
1254
1262
|
),
|
|
1255
|
-
onClick: t ? () =>
|
|
1263
|
+
onClick: t ? () => y(m.value) : void 0,
|
|
1256
1264
|
children: m.emoji
|
|
1257
1265
|
},
|
|
1258
1266
|
m.value
|
|
1259
1267
|
))
|
|
1260
1268
|
}
|
|
1261
1269
|
),
|
|
1262
|
-
/* @__PURE__ */ r(_, { mode: "wait", children: (
|
|
1270
|
+
/* @__PURE__ */ r(_, { mode: "wait", children: (i || s) && /* @__PURE__ */ r(P, { children: /* @__PURE__ */ c("div", { className: "pb-2 px-2 flex items-end", children: [
|
|
1263
1271
|
/* @__PURE__ */ r(
|
|
1264
1272
|
"textarea",
|
|
1265
1273
|
{
|
|
@@ -1274,18 +1282,18 @@ function oo() {
|
|
|
1274
1282
|
e ? "text-[16px]" : "text-sm",
|
|
1275
1283
|
n && "text-center"
|
|
1276
1284
|
),
|
|
1277
|
-
value: n ?
|
|
1285
|
+
value: n ? a || "" : d || "",
|
|
1278
1286
|
onChange: t ? (m) => h(m.target.value) : void 0,
|
|
1279
1287
|
readOnly: n,
|
|
1280
1288
|
placeholder: t ? "Tell us more... (optional)" : void 0
|
|
1281
1289
|
}
|
|
1282
1290
|
),
|
|
1283
1291
|
/* @__PURE__ */ r(
|
|
1284
|
-
|
|
1292
|
+
C,
|
|
1285
1293
|
{
|
|
1286
1294
|
size: "fit",
|
|
1287
|
-
onClick:
|
|
1288
|
-
disabled: !
|
|
1295
|
+
onClick: v,
|
|
1296
|
+
disabled: !i,
|
|
1289
1297
|
className: p(
|
|
1290
1298
|
"transition-all overflow-hidden",
|
|
1291
1299
|
"rounded-full size-8 flex items-center justify-center p-0",
|
|
@@ -1298,8 +1306,8 @@ function oo() {
|
|
|
1298
1306
|
/* @__PURE__ */ r("div", { className: p("h-0 transition-[height]", n && "h-4") })
|
|
1299
1307
|
] });
|
|
1300
1308
|
}
|
|
1301
|
-
function
|
|
1302
|
-
const { dir: e } =
|
|
1309
|
+
function X() {
|
|
1310
|
+
const { dir: e } = ve(), o = b();
|
|
1303
1311
|
return ht(() => {
|
|
1304
1312
|
const t = Tr(o.language) ? o.language : "en";
|
|
1305
1313
|
return {
|
|
@@ -1316,11 +1324,11 @@ function Se({
|
|
|
1316
1324
|
...t
|
|
1317
1325
|
}) {
|
|
1318
1326
|
const { sendMessage: n } = j(), s = () => {
|
|
1319
|
-
const
|
|
1320
|
-
|
|
1327
|
+
const a = e.trim();
|
|
1328
|
+
a && n({ content: a });
|
|
1321
1329
|
};
|
|
1322
1330
|
return /* @__PURE__ */ r(
|
|
1323
|
-
|
|
1331
|
+
C,
|
|
1324
1332
|
{
|
|
1325
1333
|
...g("chat/suggested_reply_btn"),
|
|
1326
1334
|
size: "sm",
|
|
@@ -1331,8 +1339,8 @@ function Se({
|
|
|
1331
1339
|
}
|
|
1332
1340
|
);
|
|
1333
1341
|
}
|
|
1334
|
-
function
|
|
1335
|
-
const { t: e } =
|
|
1342
|
+
function so() {
|
|
1343
|
+
const { t: e } = X(), o = [e("i_need_more_help"), e("this_was_helpful")];
|
|
1336
1344
|
return /* @__PURE__ */ r(
|
|
1337
1345
|
"div",
|
|
1338
1346
|
{
|
|
@@ -1350,22 +1358,22 @@ function no() {
|
|
|
1350
1358
|
);
|
|
1351
1359
|
}
|
|
1352
1360
|
function at() {
|
|
1353
|
-
const { sessionState: e } =
|
|
1354
|
-
return /* @__PURE__ */ r(_, { mode: "wait", children: o == null ? void 0 : o.map((s,
|
|
1361
|
+
const { sessionState: e } = L(), { chatFooterItems: o } = b(), t = !!e.session && !e.session.isOpened, n = !t;
|
|
1362
|
+
return /* @__PURE__ */ r(_, { mode: "wait", children: o == null ? void 0 : o.map((s, a) => s.showWhenSessionIsOpen === !1 && n || s.showWhenSessionIsResolved === !1 && t ? null : /* @__PURE__ */ r(P, { children: /* @__PURE__ */ r("div", { className: "pb-2 text-center text-xs", children: /* @__PURE__ */ r(be, { children: s.message }) }) }, `${s.message}-${a}`)) });
|
|
1355
1363
|
}
|
|
1356
|
-
function
|
|
1364
|
+
function io({
|
|
1357
1365
|
file: { status: e, file: o, error: t },
|
|
1358
1366
|
onCancel: n
|
|
1359
1367
|
}) {
|
|
1360
|
-
const [s,
|
|
1368
|
+
const [s, a] = T(
|
|
1361
1369
|
null
|
|
1362
1370
|
);
|
|
1363
1371
|
re(() => {
|
|
1364
1372
|
if (!o.type.startsWith("image/")) return;
|
|
1365
|
-
const
|
|
1366
|
-
return
|
|
1373
|
+
const d = new FileReader();
|
|
1374
|
+
return d.onload = () => a(d.result), d.onerror = () => console.error("Error reading file"), d.readAsDataURL(o), () => d.abort();
|
|
1367
1375
|
}, [o]);
|
|
1368
|
-
const
|
|
1376
|
+
const i = () => {
|
|
1369
1377
|
switch (e) {
|
|
1370
1378
|
case "uploading":
|
|
1371
1379
|
return /* @__PURE__ */ r(br, { className: "size-4 animate-spin" });
|
|
@@ -1374,26 +1382,26 @@ function so({
|
|
|
1374
1382
|
default:
|
|
1375
1383
|
return null;
|
|
1376
1384
|
}
|
|
1377
|
-
},
|
|
1378
|
-
const
|
|
1379
|
-
return
|
|
1385
|
+
}, l = () => {
|
|
1386
|
+
const d = o.type.split("/")[0];
|
|
1387
|
+
return d === "image" && s ? /* @__PURE__ */ r(
|
|
1380
1388
|
"img",
|
|
1381
1389
|
{
|
|
1382
1390
|
src: typeof s == "string" ? s : "",
|
|
1383
1391
|
className: "object-cover bg-secondary size-full",
|
|
1384
1392
|
alt: o.name
|
|
1385
1393
|
}
|
|
1386
|
-
) :
|
|
1394
|
+
) : d === "audio" ? /* @__PURE__ */ r(yr, {}) : d === "video" ? /* @__PURE__ */ r(kr, {}) : /* @__PURE__ */ r(Cr, {});
|
|
1387
1395
|
};
|
|
1388
1396
|
return /* @__PURE__ */ r(
|
|
1389
1397
|
J,
|
|
1390
1398
|
{
|
|
1391
1399
|
side: "bottom",
|
|
1392
|
-
content: e === "error" ? /* @__PURE__ */
|
|
1400
|
+
content: e === "error" ? /* @__PURE__ */ c("span", { className: "text-destructive", children: [
|
|
1393
1401
|
"Failed to upload: ",
|
|
1394
1402
|
t
|
|
1395
1403
|
] }) : o.name,
|
|
1396
|
-
children: /* @__PURE__ */
|
|
1404
|
+
children: /* @__PURE__ */ c(
|
|
1397
1405
|
"div",
|
|
1398
1406
|
{
|
|
1399
1407
|
className: p(
|
|
@@ -1403,7 +1411,7 @@ function so({
|
|
|
1403
1411
|
"flex items-center justify-center shrink-0"
|
|
1404
1412
|
),
|
|
1405
1413
|
children: [
|
|
1406
|
-
/* @__PURE__ */ r("div", { className: "absolute inset-0 flex items-center justify-center", children:
|
|
1414
|
+
/* @__PURE__ */ r("div", { className: "absolute inset-0 flex items-center justify-center", children: i() }),
|
|
1407
1415
|
/* @__PURE__ */ r(
|
|
1408
1416
|
"button",
|
|
1409
1417
|
{
|
|
@@ -1414,57 +1422,57 @@ function so({
|
|
|
1414
1422
|
"opacity-0 group-hover:opacity-100 transition"
|
|
1415
1423
|
),
|
|
1416
1424
|
onClick: n,
|
|
1417
|
-
children: /* @__PURE__ */ r(
|
|
1425
|
+
children: /* @__PURE__ */ r(xe, { className: "size-4 text-primary-foreground" })
|
|
1418
1426
|
}
|
|
1419
1427
|
),
|
|
1420
|
-
/* @__PURE__ */ r(
|
|
1428
|
+
/* @__PURE__ */ r(l, {})
|
|
1421
1429
|
]
|
|
1422
1430
|
}
|
|
1423
1431
|
)
|
|
1424
1432
|
}
|
|
1425
1433
|
);
|
|
1426
1434
|
}
|
|
1427
|
-
function
|
|
1435
|
+
function ao() {
|
|
1428
1436
|
var E;
|
|
1429
|
-
const { isSmallScreen: e } =
|
|
1430
|
-
allFiles:
|
|
1431
|
-
emptyTheFiles:
|
|
1437
|
+
const { isSmallScreen: e } = H(), o = de(null), { sendMessage: t } = j(), { sessionState: n } = L(), { t: s } = X(), [a, i] = T(""), {
|
|
1438
|
+
allFiles: l,
|
|
1439
|
+
emptyTheFiles: d,
|
|
1432
1440
|
handleCancelUpload: h,
|
|
1433
|
-
appendFiles:
|
|
1434
|
-
isUploading:
|
|
1441
|
+
appendFiles: y,
|
|
1442
|
+
isUploading: v,
|
|
1435
1443
|
successFiles: m
|
|
1436
|
-
} =
|
|
1437
|
-
|
|
1438
|
-
}, I = !
|
|
1439
|
-
if (
|
|
1440
|
-
|
|
1441
|
-
const
|
|
1444
|
+
} = Ut(), z = !!((E = n.session) != null && E.isHandedOff), { isAwaitingBotReply: w } = wt(), k = (f) => {
|
|
1445
|
+
y(f);
|
|
1446
|
+
}, I = !a.trim() && m.length === 0, x = async () => {
|
|
1447
|
+
if (w || I) return;
|
|
1448
|
+
v && console.info("please wait for the file(s) to upload");
|
|
1449
|
+
const f = a.trim();
|
|
1442
1450
|
t({
|
|
1443
|
-
content:
|
|
1451
|
+
content: f,
|
|
1444
1452
|
attachments: m.flatMap(
|
|
1445
|
-
(
|
|
1453
|
+
(N) => N.fileUrl ? [
|
|
1446
1454
|
{
|
|
1447
|
-
url:
|
|
1448
|
-
type:
|
|
1449
|
-
name:
|
|
1450
|
-
id:
|
|
1451
|
-
size:
|
|
1455
|
+
url: N.fileUrl,
|
|
1456
|
+
type: N.file.type,
|
|
1457
|
+
name: N.file.name,
|
|
1458
|
+
id: N.id,
|
|
1459
|
+
size: N.file.size
|
|
1452
1460
|
}
|
|
1453
1461
|
] : []
|
|
1454
1462
|
)
|
|
1455
|
-
}),
|
|
1463
|
+
}), i(""), d();
|
|
1456
1464
|
}, {
|
|
1457
1465
|
getRootProps: M,
|
|
1458
|
-
getInputProps:
|
|
1459
|
-
open:
|
|
1466
|
+
getInputProps: O,
|
|
1467
|
+
open: F
|
|
1460
1468
|
} = Dr({
|
|
1461
|
-
onDrop:
|
|
1469
|
+
onDrop: k,
|
|
1462
1470
|
noClick: !0,
|
|
1463
1471
|
onDropRejected() {
|
|
1464
1472
|
console.error("unsupported file type, or the file is too large");
|
|
1465
1473
|
},
|
|
1466
1474
|
maxSize: 5 * 1024 * 1024,
|
|
1467
|
-
accept:
|
|
1475
|
+
accept: z ? {
|
|
1468
1476
|
"text/*": [".txt"],
|
|
1469
1477
|
"image/*": [".png", ".jpg", ".jpeg", ".gif"],
|
|
1470
1478
|
"application/pdf": [".pdf"]
|
|
@@ -1474,19 +1482,19 @@ function io() {
|
|
|
1474
1482
|
"image/gif": [".gif"],
|
|
1475
1483
|
"image/webp": [".webp"]
|
|
1476
1484
|
}
|
|
1477
|
-
}), W = (
|
|
1478
|
-
const
|
|
1479
|
-
|
|
1485
|
+
}), W = (f) => {
|
|
1486
|
+
const N = f.clipboardData;
|
|
1487
|
+
N && N.files.length > 0 && k(Array.from(N.files));
|
|
1480
1488
|
};
|
|
1481
|
-
return /* @__PURE__ */
|
|
1489
|
+
return /* @__PURE__ */ c(
|
|
1482
1490
|
"div",
|
|
1483
1491
|
{
|
|
1484
1492
|
...g("chat/input_box/root"),
|
|
1485
1493
|
className: "p-2 relative space-y-1",
|
|
1486
1494
|
...M(),
|
|
1487
1495
|
children: [
|
|
1488
|
-
/* @__PURE__ */ r("input", { ...
|
|
1489
|
-
/* @__PURE__ */
|
|
1496
|
+
/* @__PURE__ */ r("input", { ...O() }),
|
|
1497
|
+
/* @__PURE__ */ c(
|
|
1490
1498
|
"div",
|
|
1491
1499
|
{
|
|
1492
1500
|
...g("chat/input_box/inner_root"),
|
|
@@ -1498,24 +1506,24 @@ function io() {
|
|
|
1498
1506
|
"hover:border-primary focus-within:border-primary"
|
|
1499
1507
|
),
|
|
1500
1508
|
children: [
|
|
1501
|
-
/* @__PURE__ */
|
|
1509
|
+
/* @__PURE__ */ c(
|
|
1502
1510
|
"div",
|
|
1503
1511
|
{
|
|
1504
1512
|
...g("chat/input_box/textarea_and_attachments_container"),
|
|
1505
1513
|
className: "flex flex-col gap-2",
|
|
1506
1514
|
children: [
|
|
1507
|
-
|
|
1515
|
+
l.length > 0 && /* @__PURE__ */ r(
|
|
1508
1516
|
"div",
|
|
1509
1517
|
{
|
|
1510
1518
|
...g("chat/input_box/attachments_container"),
|
|
1511
1519
|
className: "flex items-center gap-1",
|
|
1512
|
-
children: /* @__PURE__ */ r(_, { mode: "popLayout", children:
|
|
1513
|
-
|
|
1520
|
+
children: /* @__PURE__ */ r(_, { mode: "popLayout", children: l.map((f) => /* @__PURE__ */ r(u, { snapExit: !0, children: /* @__PURE__ */ r(
|
|
1521
|
+
io,
|
|
1514
1522
|
{
|
|
1515
|
-
onCancel: () => h(
|
|
1516
|
-
file:
|
|
1523
|
+
onCancel: () => h(f.id),
|
|
1524
|
+
file: f
|
|
1517
1525
|
}
|
|
1518
|
-
) },
|
|
1526
|
+
) }, f.id)) })
|
|
1519
1527
|
}
|
|
1520
1528
|
),
|
|
1521
1529
|
/* @__PURE__ */ r(
|
|
@@ -1525,22 +1533,22 @@ function io() {
|
|
|
1525
1533
|
onPaste: W,
|
|
1526
1534
|
ref: o,
|
|
1527
1535
|
id: "chat-input",
|
|
1528
|
-
value:
|
|
1536
|
+
value: a,
|
|
1529
1537
|
rows: 3,
|
|
1530
1538
|
className: p(
|
|
1531
1539
|
/** Match the border radius of the container */
|
|
1532
1540
|
// INPUT_CONTAINER_B_RADIUS,
|
|
1533
1541
|
"max-h-16 [field-sizing:content]",
|
|
1534
1542
|
"w-full resize-none px-2",
|
|
1535
|
-
|
|
1543
|
+
l.length === 0 && "pt-1",
|
|
1536
1544
|
"bg-transparent outline-none",
|
|
1537
1545
|
"placeholder:text-muted-foreground",
|
|
1538
1546
|
// 16px on mobiles prevents auto-zoom on the input when focused
|
|
1539
1547
|
e ? "text-[16px]" : "text-sm"
|
|
1540
1548
|
),
|
|
1541
|
-
onChange: (
|
|
1542
|
-
onKeyDown: async (
|
|
1543
|
-
|
|
1549
|
+
onChange: (f) => i(f.target.value),
|
|
1550
|
+
onKeyDown: async (f) => {
|
|
1551
|
+
f.key === "Enter" && !f.shiftKey && (f.preventDefault(), x());
|
|
1544
1552
|
},
|
|
1545
1553
|
placeholder: s("write_a_message_placeholder")
|
|
1546
1554
|
}
|
|
@@ -1548,7 +1556,7 @@ function io() {
|
|
|
1548
1556
|
]
|
|
1549
1557
|
}
|
|
1550
1558
|
),
|
|
1551
|
-
/* @__PURE__ */
|
|
1559
|
+
/* @__PURE__ */ c("div", { className: "gap-2 flex justify-between", children: [
|
|
1552
1560
|
/* @__PURE__ */ r(
|
|
1553
1561
|
J,
|
|
1554
1562
|
{
|
|
@@ -1556,27 +1564,27 @@ function io() {
|
|
|
1556
1564
|
align: "start",
|
|
1557
1565
|
content: "attach files, (maximum size 5mb)",
|
|
1558
1566
|
children: /* @__PURE__ */ r(
|
|
1559
|
-
|
|
1567
|
+
C,
|
|
1560
1568
|
{
|
|
1561
|
-
onClick:
|
|
1569
|
+
onClick: F,
|
|
1562
1570
|
size: "fit",
|
|
1563
1571
|
variant: "ghost",
|
|
1564
1572
|
className: p(
|
|
1565
1573
|
"rounded-full size-8 flex items-center justify-center p-0 overflow-hidden"
|
|
1566
1574
|
),
|
|
1567
|
-
children: /* @__PURE__ */ r(_, { mode: "wait", children:
|
|
1575
|
+
children: /* @__PURE__ */ r(_, { mode: "wait", children: z && !w ? /* @__PURE__ */ r(u, { children: /* @__PURE__ */ r(ur, { className: "size-4" }) }, "paper-clip") : /* @__PURE__ */ r(u, { children: /* @__PURE__ */ r(fr, { className: "size-4" }) }, "image-icon") })
|
|
1568
1576
|
}
|
|
1569
1577
|
)
|
|
1570
1578
|
}
|
|
1571
1579
|
),
|
|
1572
1580
|
/* @__PURE__ */ r(J, { content: "send message", side: "top", align: "end", children: /* @__PURE__ */ r(
|
|
1573
|
-
|
|
1581
|
+
C,
|
|
1574
1582
|
{
|
|
1575
1583
|
size: "fit",
|
|
1576
|
-
onClick:
|
|
1577
|
-
disabled:
|
|
1584
|
+
onClick: x,
|
|
1585
|
+
disabled: w || v || I,
|
|
1578
1586
|
className: "rounded-full size-8 flex items-center justify-center p-0",
|
|
1579
|
-
children: /* @__PURE__ */ r(_, { mode: "wait", children:
|
|
1587
|
+
children: /* @__PURE__ */ r(_, { mode: "wait", children: w || v ? /* @__PURE__ */ r(u, { snapExit: !0, children: /* @__PURE__ */ r(vr, { className: "size-4 animate-spin animate-iteration-infinite" }) }, "loading") : /* @__PURE__ */ r(u, { snapExit: !0, children: /* @__PURE__ */ r(ft, { className: "size-4" }) }, "send") })
|
|
1580
1588
|
}
|
|
1581
1589
|
) })
|
|
1582
1590
|
] })
|
|
@@ -1588,42 +1596,42 @@ function io() {
|
|
|
1588
1596
|
);
|
|
1589
1597
|
}
|
|
1590
1598
|
function lt() {
|
|
1591
|
-
const { widgetCtx: e } = R(), { router: o } =
|
|
1592
|
-
return /* @__PURE__ */ r(te, { children: t || o != null && o.chatScreenOnly ? /* @__PURE__ */ r(
|
|
1599
|
+
const { widgetCtx: e } = R(), { router: o } = b(), { canCreateNewSession: t } = L(), { toSessionsScreen: n } = A(), { t: s } = X();
|
|
1600
|
+
return /* @__PURE__ */ r(te, { children: t || o != null && o.chatScreenOnly ? /* @__PURE__ */ r(C, { onClick: e.resetChat, className: "rounded-2xl w-full", children: s("new_conversation") }) : /* @__PURE__ */ r(C, { onClick: n, className: "rounded-2xl w-full", children: s("back_to_conversations") }) });
|
|
1593
1601
|
}
|
|
1594
|
-
function
|
|
1595
|
-
const { t: e } =
|
|
1596
|
-
return /* @__PURE__ */ r("div", { className: "p-2", children: /* @__PURE__ */ r("div", { className: "p-2 bg-muted rounded-3xl", children: /* @__PURE__ */ r(_, { mode: "wait", children: o || t ? /* @__PURE__ */
|
|
1597
|
-
/* @__PURE__ */ r(
|
|
1598
|
-
/* @__PURE__ */ r(_, { mode: "wait", children: t && /* @__PURE__ */ r(
|
|
1599
|
-
] }, "csat") : /* @__PURE__ */
|
|
1600
|
-
/* @__PURE__ */
|
|
1602
|
+
function lo() {
|
|
1603
|
+
const { t: e } = X(), { isCsatRequested: o, isCsatSubmitted: t } = gt();
|
|
1604
|
+
return /* @__PURE__ */ r("div", { className: "p-2", children: /* @__PURE__ */ r("div", { className: "p-2 bg-muted rounded-3xl", children: /* @__PURE__ */ r(_, { mode: "wait", children: o || t ? /* @__PURE__ */ c(P, { children: [
|
|
1605
|
+
/* @__PURE__ */ r(no, {}),
|
|
1606
|
+
/* @__PURE__ */ r(_, { mode: "wait", children: t && /* @__PURE__ */ r(P, { children: /* @__PURE__ */ r(lt, {}) }, "new-conv-or-back-to-convs-button") })
|
|
1607
|
+
] }, "csat") : /* @__PURE__ */ c(P, { children: [
|
|
1608
|
+
/* @__PURE__ */ c("div", { className: "ps-2 flex items-center gap-1 pb-2", children: [
|
|
1601
1609
|
/* @__PURE__ */ r(ut, { className: "size-4 text-emerald-600" }),
|
|
1602
1610
|
/* @__PURE__ */ r("h2", { className: "text-sm font-medium", children: e("your_issue_has_been_resolved") })
|
|
1603
1611
|
] }),
|
|
1604
1612
|
/* @__PURE__ */ r(lt, {})
|
|
1605
1613
|
] }, "session-closed") }) }) });
|
|
1606
1614
|
}
|
|
1607
|
-
function
|
|
1608
|
-
var
|
|
1609
|
-
const { initialQuestions: e, initialQuestionsPosition: o, thisWasHelpfulOrNot: t } =
|
|
1610
|
-
return /* @__PURE__ */ r("footer", { children: /* @__PURE__ */ r(_, { mode: "wait", children: n.session && !((
|
|
1611
|
-
/* @__PURE__ */ r(
|
|
1615
|
+
function co() {
|
|
1616
|
+
var i;
|
|
1617
|
+
const { initialQuestions: e, initialQuestionsPosition: o, thisWasHelpfulOrNot: t } = b(), { sessionState: n } = L(), { messagesState: s } = j(), a = s.messages.length === 0;
|
|
1618
|
+
return /* @__PURE__ */ r("footer", { children: /* @__PURE__ */ r(_, { mode: "wait", children: n.session && !((i = n.session) != null && i.isOpened) ? /* @__PURE__ */ c(P, { children: [
|
|
1619
|
+
/* @__PURE__ */ r(lo, {}),
|
|
1612
1620
|
/* @__PURE__ */ r(at, {})
|
|
1613
|
-
] }, "session-closed") : /* @__PURE__ */
|
|
1614
|
-
s.lastAIResMightSolveUserIssue && (t == null ? void 0 : t.enabled) !== !1 && /* @__PURE__ */ r(
|
|
1615
|
-
|
|
1621
|
+
] }, "session-closed") : /* @__PURE__ */ c(P, { children: [
|
|
1622
|
+
s.lastAIResMightSolveUserIssue && (t == null ? void 0 : t.enabled) !== !1 && /* @__PURE__ */ r(so, {}),
|
|
1623
|
+
a && 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((l, d) => /* @__PURE__ */ r(
|
|
1616
1624
|
Se,
|
|
1617
1625
|
{
|
|
1618
|
-
suggestion:
|
|
1626
|
+
suggestion: l
|
|
1619
1627
|
},
|
|
1620
|
-
`${
|
|
1628
|
+
`${l}-${d}`
|
|
1621
1629
|
)) }),
|
|
1622
|
-
/* @__PURE__ */ r(
|
|
1630
|
+
/* @__PURE__ */ r(ao, {}),
|
|
1623
1631
|
/* @__PURE__ */ r(at, {})
|
|
1624
1632
|
] }, "chat-input") }) });
|
|
1625
1633
|
}
|
|
1626
|
-
function
|
|
1634
|
+
function po({
|
|
1627
1635
|
isFirstInGroup: e,
|
|
1628
1636
|
isLastInGroup: o,
|
|
1629
1637
|
isAloneInGroup: t,
|
|
@@ -1632,10 +1640,10 @@ function co({
|
|
|
1632
1640
|
const { componentStore: s } = R();
|
|
1633
1641
|
if (n.type !== "AGENT" && n.type !== "AI") return null;
|
|
1634
1642
|
if (n.data.action) {
|
|
1635
|
-
const
|
|
1636
|
-
if (
|
|
1643
|
+
const i = s.getComponent(n.data.action.name);
|
|
1644
|
+
if (i)
|
|
1637
1645
|
return /* @__PURE__ */ r(
|
|
1638
|
-
|
|
1646
|
+
i,
|
|
1639
1647
|
{
|
|
1640
1648
|
...n,
|
|
1641
1649
|
id: n.id,
|
|
@@ -1645,9 +1653,9 @@ function co({
|
|
|
1645
1653
|
}
|
|
1646
1654
|
);
|
|
1647
1655
|
}
|
|
1648
|
-
const
|
|
1649
|
-
return
|
|
1650
|
-
|
|
1656
|
+
const a = s.getComponent(n.component);
|
|
1657
|
+
return a ? /* @__PURE__ */ r(
|
|
1658
|
+
a,
|
|
1651
1659
|
{
|
|
1652
1660
|
...n,
|
|
1653
1661
|
id: n.id,
|
|
@@ -1656,7 +1664,7 @@ function co({
|
|
|
1656
1664
|
isAloneInGroup: t
|
|
1657
1665
|
}
|
|
1658
1666
|
) : /* @__PURE__ */ r(
|
|
1659
|
-
|
|
1667
|
+
ge,
|
|
1660
1668
|
{
|
|
1661
1669
|
...n,
|
|
1662
1670
|
isFirstInGroup: e,
|
|
@@ -1665,80 +1673,80 @@ function co({
|
|
|
1665
1673
|
}
|
|
1666
1674
|
);
|
|
1667
1675
|
}
|
|
1668
|
-
function
|
|
1676
|
+
function Ot({
|
|
1669
1677
|
messages: e,
|
|
1670
1678
|
className: o,
|
|
1671
1679
|
containerClassName: t
|
|
1672
1680
|
}) {
|
|
1673
|
-
var
|
|
1674
|
-
const { timestamps: n } =
|
|
1675
|
-
if (!((
|
|
1681
|
+
var i, l;
|
|
1682
|
+
const { timestamps: n } = b();
|
|
1683
|
+
if (!((i = n == null ? void 0 : n.perMessageGroup) != null && i.enabled))
|
|
1676
1684
|
return null;
|
|
1677
|
-
const s = (
|
|
1685
|
+
const s = (l = e[e.length - 1]) == null ? void 0 : l.timestamp;
|
|
1678
1686
|
if (!s) return null;
|
|
1679
|
-
const
|
|
1687
|
+
const a = (() => {
|
|
1680
1688
|
try {
|
|
1681
1689
|
return new Date(s).toLocaleTimeString([], {
|
|
1682
1690
|
hour: "2-digit",
|
|
1683
1691
|
minute: "2-digit",
|
|
1684
1692
|
hour12: !0
|
|
1685
1693
|
});
|
|
1686
|
-
} catch (
|
|
1687
|
-
return console.error(
|
|
1694
|
+
} catch (d) {
|
|
1695
|
+
return console.error(d), null;
|
|
1688
1696
|
}
|
|
1689
1697
|
})();
|
|
1690
|
-
return
|
|
1698
|
+
return a ? /* @__PURE__ */ r("div", { className: t, children: /* @__PURE__ */ r("span", { className: p("text-xs text-muted-foreground", o), children: a }) }) : null;
|
|
1691
1699
|
}
|
|
1692
|
-
function
|
|
1700
|
+
function le({
|
|
1693
1701
|
messages: e,
|
|
1694
1702
|
agent: o,
|
|
1695
1703
|
suggestedReplies: t
|
|
1696
1704
|
}) {
|
|
1697
|
-
return /* @__PURE__ */
|
|
1705
|
+
return /* @__PURE__ */ c(
|
|
1698
1706
|
"div",
|
|
1699
1707
|
{
|
|
1700
1708
|
...g("chat/agent_msg_group/root"),
|
|
1701
1709
|
className: p("flex items-end gap-2"),
|
|
1702
1710
|
children: [
|
|
1703
1711
|
/* @__PURE__ */ r(J, { content: o == null ? void 0 : o.name, side: "right", align: "end", children: /* @__PURE__ */ r(
|
|
1704
|
-
|
|
1712
|
+
we,
|
|
1705
1713
|
{
|
|
1706
1714
|
...g("chat/agent_msg_group/root/avatar"),
|
|
1707
1715
|
agent: o,
|
|
1708
1716
|
className: "hidden"
|
|
1709
1717
|
}
|
|
1710
1718
|
) }),
|
|
1711
|
-
/* @__PURE__ */
|
|
1712
|
-
/* @__PURE__ */
|
|
1719
|
+
/* @__PURE__ */ c("div", { className: p("flex-1 flex flex-col gap-1"), children: [
|
|
1720
|
+
/* @__PURE__ */ c(
|
|
1713
1721
|
"div",
|
|
1714
1722
|
{
|
|
1715
1723
|
...g("chat/agent_msg_group/avatar_and_msgs/root"),
|
|
1716
1724
|
className: p("flex items-end gap-2"),
|
|
1717
1725
|
children: [
|
|
1718
1726
|
/* @__PURE__ */ r(J, { content: o == null ? void 0 : o.name, side: "right", align: "end", children: /* @__PURE__ */ r(
|
|
1719
|
-
|
|
1727
|
+
we,
|
|
1720
1728
|
{
|
|
1721
1729
|
...g("chat/agent_msg_group/avatar_and_msgs/avatar"),
|
|
1722
1730
|
agent: o
|
|
1723
1731
|
}
|
|
1724
1732
|
) }),
|
|
1725
|
-
/* @__PURE__ */
|
|
1733
|
+
/* @__PURE__ */ c(
|
|
1726
1734
|
"div",
|
|
1727
1735
|
{
|
|
1728
1736
|
...g("chat/agent_msg_group/avatar_and_msgs/msgs"),
|
|
1729
1737
|
className: p("flex-1 flex flex-col gap-1"),
|
|
1730
1738
|
children: [
|
|
1731
|
-
e.map((n, s,
|
|
1732
|
-
|
|
1739
|
+
e.map((n, s, a) => /* @__PURE__ */ r(
|
|
1740
|
+
po,
|
|
1733
1741
|
{
|
|
1734
1742
|
isFirstInGroup: s === 0,
|
|
1735
|
-
isLastInGroup: s ===
|
|
1736
|
-
isAloneInGroup:
|
|
1743
|
+
isLastInGroup: s === a.length - 1,
|
|
1744
|
+
isAloneInGroup: a.length === 1,
|
|
1737
1745
|
...n
|
|
1738
1746
|
},
|
|
1739
1747
|
n.id
|
|
1740
1748
|
)),
|
|
1741
|
-
/* @__PURE__ */ r(
|
|
1749
|
+
/* @__PURE__ */ r(Ot, { messages: e })
|
|
1742
1750
|
]
|
|
1743
1751
|
}
|
|
1744
1752
|
)
|
|
@@ -1764,27 +1772,27 @@ function ae({
|
|
|
1764
1772
|
}
|
|
1765
1773
|
);
|
|
1766
1774
|
}
|
|
1767
|
-
function
|
|
1775
|
+
function ho() {
|
|
1768
1776
|
var t, n;
|
|
1769
|
-
const
|
|
1777
|
+
const e = ne();
|
|
1770
1778
|
if ((t = e.session) != null && t.isOpened || !e.session) return null;
|
|
1771
|
-
const o = (n = e.config.
|
|
1779
|
+
const o = (n = e.config.customComponents) == null ? void 0 : n.onSessionResolved;
|
|
1772
1780
|
return o ? /* @__PURE__ */ r(o, { ...e }) : null;
|
|
1773
1781
|
}
|
|
1774
|
-
function
|
|
1782
|
+
function mo({
|
|
1775
1783
|
message: e,
|
|
1776
1784
|
isFirstInGroup: o,
|
|
1777
1785
|
isLastInGroup: t,
|
|
1778
1786
|
isAloneInGroup: n
|
|
1779
1787
|
}) {
|
|
1780
1788
|
var s;
|
|
1781
|
-
return /* @__PURE__ */
|
|
1789
|
+
return /* @__PURE__ */ c(
|
|
1782
1790
|
"div",
|
|
1783
1791
|
{
|
|
1784
1792
|
...g("chat/user_msg/root"),
|
|
1785
1793
|
className: "w-5/6 flex flex-col items-end gap-1",
|
|
1786
1794
|
children: [
|
|
1787
|
-
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((
|
|
1795
|
+
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((a) => /* @__PURE__ */ r(Tt, { attachment: a }, a.id)) }),
|
|
1788
1796
|
e.content.length > 0 && /* @__PURE__ */ r(
|
|
1789
1797
|
"div",
|
|
1790
1798
|
{
|
|
@@ -1811,17 +1819,17 @@ function ho({
|
|
|
1811
1819
|
}
|
|
1812
1820
|
);
|
|
1813
1821
|
}
|
|
1814
|
-
function
|
|
1822
|
+
function go({
|
|
1815
1823
|
messages: e
|
|
1816
1824
|
}) {
|
|
1817
|
-
return /* @__PURE__ */
|
|
1825
|
+
return /* @__PURE__ */ c(
|
|
1818
1826
|
"div",
|
|
1819
1827
|
{
|
|
1820
1828
|
...g("chat/user_msg_group/root"),
|
|
1821
1829
|
className: p("group", "flex flex-col gap-1 justify-end items-end"),
|
|
1822
1830
|
children: [
|
|
1823
1831
|
e.map((o, t, n) => /* @__PURE__ */ r(
|
|
1824
|
-
|
|
1832
|
+
mo,
|
|
1825
1833
|
{
|
|
1826
1834
|
message: o,
|
|
1827
1835
|
isFirstInGroup: t === 0,
|
|
@@ -1830,34 +1838,34 @@ function mo({
|
|
|
1830
1838
|
},
|
|
1831
1839
|
o.id
|
|
1832
1840
|
)),
|
|
1833
|
-
/* @__PURE__ */ r(
|
|
1841
|
+
/* @__PURE__ */ r(Ot, { messages: e, containerClassName: "ms-auto" })
|
|
1834
1842
|
]
|
|
1835
1843
|
}
|
|
1836
1844
|
);
|
|
1837
1845
|
}
|
|
1838
|
-
function
|
|
1846
|
+
function wo(e) {
|
|
1839
1847
|
const o = [];
|
|
1840
1848
|
let t = null;
|
|
1841
1849
|
return e.forEach((n) => {
|
|
1842
|
-
var s,
|
|
1850
|
+
var s, a, i, l, d, h;
|
|
1843
1851
|
// Start a new group if the type changes
|
|
1844
1852
|
(((s = t == null ? void 0 : t[0]) == null ? void 0 : s.type) !== n.type || // Start a new group if the agent changes
|
|
1845
|
-
((
|
|
1853
|
+
((a = t[0]) == null ? void 0 : a.type) === "AGENT" && n.type === "AGENT" && (((i = n.agent) == null ? void 0 : i.id) !== ((l = t[0].agent) == null ? void 0 : l.id) || ((d = n.agent) == null ? void 0 : d.name) !== ((h = t[0].agent) == null ? void 0 : h.name))) && (t = [], o.push(t)), t.push(n);
|
|
1846
1854
|
}), o;
|
|
1847
1855
|
}
|
|
1848
|
-
function
|
|
1856
|
+
function uo(e) {
|
|
1849
1857
|
var o;
|
|
1850
1858
|
return ((o = e == null ? void 0 : e[0]) == null ? void 0 : o.type) === "USER";
|
|
1851
1859
|
}
|
|
1852
|
-
function
|
|
1860
|
+
function fo(e) {
|
|
1853
1861
|
var o;
|
|
1854
1862
|
return ((o = e == null ? void 0 : e[0]) == null ? void 0 : o.type) === "AI";
|
|
1855
1863
|
}
|
|
1856
|
-
function
|
|
1864
|
+
function vo(e) {
|
|
1857
1865
|
var o;
|
|
1858
1866
|
return ((o = e == null ? void 0 : e[0]) == null ? void 0 : o.type) === "AGENT";
|
|
1859
1867
|
}
|
|
1860
|
-
function
|
|
1868
|
+
function xo() {
|
|
1861
1869
|
const {
|
|
1862
1870
|
messagesState: { messages: e }
|
|
1863
1871
|
} = j(), {
|
|
@@ -1865,15 +1873,15 @@ function vo() {
|
|
|
1865
1873
|
initialQuestionsPosition: t,
|
|
1866
1874
|
initialQuestions: n,
|
|
1867
1875
|
bot: s
|
|
1868
|
-
} =
|
|
1876
|
+
} = b();
|
|
1869
1877
|
return /* @__PURE__ */ r(te, { children: e.length === 0 && o.length > 0 && /* @__PURE__ */ r(
|
|
1870
|
-
|
|
1878
|
+
le,
|
|
1871
1879
|
{
|
|
1872
1880
|
messages: o.map(
|
|
1873
|
-
({ message:
|
|
1881
|
+
({ message: a }, i) => ({
|
|
1874
1882
|
component: "bot_message",
|
|
1875
|
-
data: { message:
|
|
1876
|
-
id: `${
|
|
1883
|
+
data: { message: a },
|
|
1884
|
+
id: `${i}-${a}`,
|
|
1877
1885
|
type: "AI",
|
|
1878
1886
|
timestamp: null
|
|
1879
1887
|
})
|
|
@@ -1883,33 +1891,33 @@ function vo() {
|
|
|
1883
1891
|
}
|
|
1884
1892
|
) });
|
|
1885
1893
|
}
|
|
1886
|
-
function
|
|
1894
|
+
function bo() {
|
|
1887
1895
|
const {
|
|
1888
1896
|
messagesState: { messages: e }
|
|
1889
|
-
} = j(), { chatBannerItems: o } =
|
|
1897
|
+
} = j(), { chatBannerItems: o } = b();
|
|
1890
1898
|
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(
|
|
1891
|
-
({ message: t, persistent: n }, s) => e.length > 0 && !n ? null : /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(
|
|
1899
|
+
({ message: t, persistent: n }, s) => e.length > 0 && !n ? null : /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(be, { children: t }) }, `${t}-${s}`)
|
|
1892
1900
|
) });
|
|
1893
1901
|
}
|
|
1894
|
-
function
|
|
1902
|
+
function yo() {
|
|
1895
1903
|
const {
|
|
1896
1904
|
messagesState: { messages: e }
|
|
1897
|
-
} = j(), o =
|
|
1905
|
+
} = j(), o = b(), {
|
|
1898
1906
|
advancedInitialMessages: t = [],
|
|
1899
1907
|
initialQuestions: n,
|
|
1900
1908
|
initialQuestionsPosition: s
|
|
1901
|
-
} = o,
|
|
1902
|
-
var
|
|
1903
|
-
return t.length ? [] : e.length ? [] : (
|
|
1909
|
+
} = o, a = (() => {
|
|
1910
|
+
var i;
|
|
1911
|
+
return t.length ? [] : e.length ? [] : (i = o.initialMessages) != null && i.length ? o.initialMessages : ["Hello, how can I help you?"];
|
|
1904
1912
|
})();
|
|
1905
|
-
return /* @__PURE__ */ r(te, { children: e.length === 0 &&
|
|
1906
|
-
|
|
1913
|
+
return /* @__PURE__ */ r(te, { children: e.length === 0 && a.length > 0 && /* @__PURE__ */ r(
|
|
1914
|
+
le,
|
|
1907
1915
|
{
|
|
1908
|
-
messages:
|
|
1909
|
-
(
|
|
1916
|
+
messages: a.map(
|
|
1917
|
+
(i, l) => ({
|
|
1910
1918
|
component: "bot_message",
|
|
1911
|
-
data: { message:
|
|
1912
|
-
id: `${
|
|
1919
|
+
data: { message: i },
|
|
1920
|
+
id: `${l}-${i}`,
|
|
1913
1921
|
type: "AI",
|
|
1914
1922
|
timestamp: null
|
|
1915
1923
|
})
|
|
@@ -1919,88 +1927,94 @@ function bo() {
|
|
|
1919
1927
|
}
|
|
1920
1928
|
) });
|
|
1921
1929
|
}
|
|
1922
|
-
function
|
|
1930
|
+
function ko() {
|
|
1923
1931
|
var t;
|
|
1924
|
-
const
|
|
1932
|
+
const e = ne(), o = (t = e.config.customComponents) == null ? void 0 : t.chatBottomComponents;
|
|
1925
1933
|
return o ? /* @__PURE__ */ r("div", { children: o.map(({ key: n, component: s }) => /* @__PURE__ */ r(s, { ...e }, n)) }) : null;
|
|
1926
1934
|
}
|
|
1927
|
-
function
|
|
1935
|
+
function Co() {
|
|
1928
1936
|
const {
|
|
1929
1937
|
messagesState: { messages: e }
|
|
1930
|
-
} = j(), { isAwaitingBotReply: o } = wt(), { componentStore: t } = R(), n =
|
|
1931
|
-
() =>
|
|
1938
|
+
} = j(), { isAwaitingBotReply: o } = wt(), { componentStore: t } = R(), { bot: n, humanAgent: s } = b(), a = ht(
|
|
1939
|
+
() => wo(e),
|
|
1932
1940
|
[e]
|
|
1933
1941
|
), i = t.getComponent(
|
|
1934
1942
|
"loading"
|
|
1935
|
-
),
|
|
1936
|
-
function
|
|
1943
|
+
), l = de(null);
|
|
1944
|
+
function d() {
|
|
1937
1945
|
setTimeout(() => {
|
|
1938
|
-
const
|
|
1939
|
-
|
|
1946
|
+
const h = l.current;
|
|
1947
|
+
h && (h.scrollTop = h.scrollHeight);
|
|
1940
1948
|
}, 0);
|
|
1941
1949
|
}
|
|
1942
1950
|
return re(() => {
|
|
1943
|
-
|
|
1944
|
-
}, [e]), /* @__PURE__ */
|
|
1951
|
+
d();
|
|
1952
|
+
}, [e]), /* @__PURE__ */ c(
|
|
1945
1953
|
"div",
|
|
1946
1954
|
{
|
|
1947
1955
|
...g("chat/msgs/root"),
|
|
1948
|
-
ref:
|
|
1956
|
+
ref: l,
|
|
1949
1957
|
className: "max-h-full scroll-smooth relative flex-1 py-2 px-4 flex flex-col gap-2 overflow-auto",
|
|
1950
1958
|
children: [
|
|
1951
|
-
/* @__PURE__ */ r(xo, {}),
|
|
1952
|
-
/* @__PURE__ */ r(vo, {}),
|
|
1953
1959
|
/* @__PURE__ */ r(bo, {}),
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
if (uo(
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
const
|
|
1964
|
-
return /* @__PURE__ */ r(
|
|
1965
|
-
|
|
1960
|
+
/* @__PURE__ */ r(xo, {}),
|
|
1961
|
+
/* @__PURE__ */ r(yo, {}),
|
|
1962
|
+
a.map((h, y) => {
|
|
1963
|
+
var z, w, k, I;
|
|
1964
|
+
const v = (z = h == null ? void 0 : h[0]) == null ? void 0 : z.type, m = (w = h[0]) == null ? void 0 : w.id;
|
|
1965
|
+
if (!v || !m) return null;
|
|
1966
|
+
if (uo(h))
|
|
1967
|
+
return /* @__PURE__ */ r(go, { messages: h }, m);
|
|
1968
|
+
if (fo(h)) {
|
|
1969
|
+
const x = y === a.length - 1;
|
|
1970
|
+
return o && x ? null : ((k = h[0]) == null || k.agent, /* @__PURE__ */ r(
|
|
1971
|
+
le,
|
|
1966
1972
|
{
|
|
1967
|
-
messages:
|
|
1968
|
-
agent:
|
|
1973
|
+
messages: h,
|
|
1974
|
+
agent: n ? { ...n, isAi: !0, id: null } : void 0
|
|
1969
1975
|
},
|
|
1970
|
-
|
|
1971
|
-
);
|
|
1976
|
+
m
|
|
1977
|
+
));
|
|
1972
1978
|
}
|
|
1973
|
-
if (
|
|
1974
|
-
const
|
|
1979
|
+
if (vo(h)) {
|
|
1980
|
+
const x = (I = h[0]) == null ? void 0 : I.agent;
|
|
1975
1981
|
return /* @__PURE__ */ r(
|
|
1976
|
-
|
|
1982
|
+
le,
|
|
1977
1983
|
{
|
|
1978
|
-
messages:
|
|
1979
|
-
agent:
|
|
1984
|
+
messages: h,
|
|
1985
|
+
agent: x ? {
|
|
1986
|
+
...x,
|
|
1987
|
+
avatarUrl: (s == null ? void 0 : s.avatarUrl) || x.avatarUrl || null
|
|
1988
|
+
} : s ? {
|
|
1989
|
+
isAi: !1,
|
|
1990
|
+
id: null,
|
|
1991
|
+
name: "",
|
|
1992
|
+
avatarUrl: s.avatarUrl || null
|
|
1993
|
+
} : void 0
|
|
1980
1994
|
},
|
|
1981
|
-
|
|
1995
|
+
m
|
|
1982
1996
|
);
|
|
1983
1997
|
}
|
|
1984
1998
|
return null;
|
|
1985
1999
|
}),
|
|
1986
|
-
o && i && /* @__PURE__ */ r(i, { agent: n
|
|
1987
|
-
/* @__PURE__ */ r(
|
|
1988
|
-
/* @__PURE__ */ r(
|
|
2000
|
+
o && i && /* @__PURE__ */ r(i, { agent: n }),
|
|
2001
|
+
/* @__PURE__ */ r(ko, {}),
|
|
2002
|
+
/* @__PURE__ */ r(ho, {})
|
|
1989
2003
|
]
|
|
1990
2004
|
}
|
|
1991
2005
|
);
|
|
1992
2006
|
}
|
|
1993
|
-
function
|
|
2007
|
+
function zo() {
|
|
1994
2008
|
const {
|
|
1995
2009
|
messagesState: { isInitialFetchLoading: e }
|
|
1996
2010
|
} = j(), {
|
|
1997
2011
|
sessionState: { session: o }
|
|
1998
|
-
} =
|
|
1999
|
-
|
|
2012
|
+
} = L(), { isCanvasOpen: t } = to(), { theme: n } = q();
|
|
2013
|
+
ze({
|
|
2000
2014
|
width: t ? n.screens.chat.withCanvas.width : n.screens.chat.width,
|
|
2001
2015
|
height: t ? n.screens.chat.withCanvas.height : n.screens.chat.height
|
|
2002
2016
|
});
|
|
2003
|
-
const s =
|
|
2017
|
+
const s = de((o == null ? void 0 : o.id) || "chat").current;
|
|
2004
2018
|
return /* @__PURE__ */ r(
|
|
2005
2019
|
"div",
|
|
2006
2020
|
{
|
|
@@ -2016,22 +2030,22 @@ function Co() {
|
|
|
2016
2030
|
maxHeight: "100vh"
|
|
2017
2031
|
// Relative to the iframe
|
|
2018
2032
|
},
|
|
2019
|
-
children: /* @__PURE__ */
|
|
2020
|
-
/* @__PURE__ */ r(
|
|
2033
|
+
children: /* @__PURE__ */ c("div", { className: "size-full justify-between flex flex-col", children: [
|
|
2034
|
+
/* @__PURE__ */ r(At, {}),
|
|
2021
2035
|
/* @__PURE__ */ r(_, { mode: "wait", children: e ? /* @__PURE__ */ r(
|
|
2022
|
-
|
|
2036
|
+
u,
|
|
2023
2037
|
{
|
|
2024
2038
|
className: "flex flex-col items-center justify-center w-full flex-1",
|
|
2025
|
-
children: /* @__PURE__ */ r(
|
|
2039
|
+
children: /* @__PURE__ */ r(Ht, {})
|
|
2026
2040
|
},
|
|
2027
2041
|
"loading"
|
|
2028
|
-
) : /* @__PURE__ */
|
|
2029
|
-
|
|
2042
|
+
) : /* @__PURE__ */ c(
|
|
2043
|
+
u,
|
|
2030
2044
|
{
|
|
2031
2045
|
className: "flex items-start h-full flex-1 overflow-auto",
|
|
2032
2046
|
snapExit: !0,
|
|
2033
2047
|
children: [
|
|
2034
|
-
/* @__PURE__ */
|
|
2048
|
+
/* @__PURE__ */ c(
|
|
2035
2049
|
"div",
|
|
2036
2050
|
{
|
|
2037
2051
|
...g("chat/main/root"),
|
|
@@ -2044,8 +2058,8 @@ function Co() {
|
|
|
2044
2058
|
transitionDuration: n.screens.chat.withCanvas.transitionDuration
|
|
2045
2059
|
},
|
|
2046
2060
|
children: [
|
|
2047
|
-
/* @__PURE__ */ r(
|
|
2048
|
-
/* @__PURE__ */ r(
|
|
2061
|
+
/* @__PURE__ */ r(Co, {}),
|
|
2062
|
+
/* @__PURE__ */ r(co, {})
|
|
2049
2063
|
]
|
|
2050
2064
|
}
|
|
2051
2065
|
),
|
|
@@ -2061,7 +2075,7 @@ function Co() {
|
|
|
2061
2075
|
transitionTimingFunction: n.screens.chat.withCanvas.transitionTimingFunction,
|
|
2062
2076
|
transitionDuration: n.screens.chat.withCanvas.transitionDuration
|
|
2063
2077
|
},
|
|
2064
|
-
children: /* @__PURE__ */ r(
|
|
2078
|
+
children: /* @__PURE__ */ r(ro, {})
|
|
2065
2079
|
}
|
|
2066
2080
|
)
|
|
2067
2081
|
]
|
|
@@ -2072,7 +2086,7 @@ function Co() {
|
|
|
2072
2086
|
}
|
|
2073
2087
|
);
|
|
2074
2088
|
}
|
|
2075
|
-
function
|
|
2089
|
+
function No({
|
|
2076
2090
|
className: e,
|
|
2077
2091
|
...o
|
|
2078
2092
|
}) {
|
|
@@ -2084,7 +2098,7 @@ function zo({
|
|
|
2084
2098
|
}
|
|
2085
2099
|
);
|
|
2086
2100
|
}
|
|
2087
|
-
function
|
|
2101
|
+
function So({ className: e }) {
|
|
2088
2102
|
return /* @__PURE__ */ r(
|
|
2089
2103
|
"svg",
|
|
2090
2104
|
{
|
|
@@ -2104,8 +2118,8 @@ function No({ className: e }) {
|
|
|
2104
2118
|
}
|
|
2105
2119
|
);
|
|
2106
2120
|
}
|
|
2107
|
-
function
|
|
2108
|
-
const { token: o } =
|
|
2121
|
+
function Ft({ className: e }) {
|
|
2122
|
+
const { token: o } = b();
|
|
2109
2123
|
return /* @__PURE__ */ r(
|
|
2110
2124
|
"div",
|
|
2111
2125
|
{
|
|
@@ -2113,7 +2127,7 @@ function Ht({ className: e }) {
|
|
|
2113
2127
|
"flex items-center justify-center gap-2 p-2 pt-0",
|
|
2114
2128
|
e
|
|
2115
2129
|
),
|
|
2116
|
-
children: /* @__PURE__ */ r(
|
|
2130
|
+
children: /* @__PURE__ */ r($, { children: /* @__PURE__ */ c(
|
|
2117
2131
|
"a",
|
|
2118
2132
|
{
|
|
2119
2133
|
href: `https://open.cx/?ref=${o}`,
|
|
@@ -2127,8 +2141,8 @@ function Ht({ className: e }) {
|
|
|
2127
2141
|
children: [
|
|
2128
2142
|
/* @__PURE__ */ r("span", { children: "Powered by" }),
|
|
2129
2143
|
/* @__PURE__ */ r("span", { children: " " }),
|
|
2130
|
-
/* @__PURE__ */
|
|
2131
|
-
/* @__PURE__ */ r("span", { children: /* @__PURE__ */ r(
|
|
2144
|
+
/* @__PURE__ */ c("span", { className: "flex items-center gap-[1px]", children: [
|
|
2145
|
+
/* @__PURE__ */ r("span", { children: /* @__PURE__ */ r(So, { className: "size-3 inline-block" }) }),
|
|
2132
2146
|
/* @__PURE__ */ r("span", { className: "font-semibold", children: "open" })
|
|
2133
2147
|
] })
|
|
2134
2148
|
]
|
|
@@ -2137,16 +2151,16 @@ function Ht({ className: e }) {
|
|
|
2137
2151
|
}
|
|
2138
2152
|
);
|
|
2139
2153
|
}
|
|
2140
|
-
function
|
|
2154
|
+
function _o({ children: e }) {
|
|
2141
2155
|
return /* @__PURE__ */ r("p", { className: "ps-4 text-xs text-muted-foreground/75 uppercase font-semibold tracking-tight", children: e });
|
|
2142
2156
|
}
|
|
2143
2157
|
function ct({
|
|
2144
2158
|
session: e,
|
|
2145
2159
|
className: o
|
|
2146
2160
|
}) {
|
|
2147
|
-
const { bot: t } =
|
|
2148
|
-
return /* @__PURE__ */
|
|
2149
|
-
|
|
2161
|
+
const { bot: t, humanAgent: n } = b(), { toChatScreen: s } = A(), a = e.assignee.kind === "human" ? e.assignee.name || "Support Agent" : (t == null ? void 0 : t.name) || "AI Support Agent", i = e.assignee.kind === "human" ? (n == null ? void 0 : n.avatarUrl) || e.assignee.avatarUrl || "" : (t == null ? void 0 : t.avatarUrl) || (t == null ? void 0 : t.avatar) || "";
|
|
2162
|
+
return /* @__PURE__ */ c(
|
|
2163
|
+
C,
|
|
2150
2164
|
{
|
|
2151
2165
|
variant: "ghost",
|
|
2152
2166
|
size: "lg",
|
|
@@ -2154,16 +2168,16 @@ function ct({
|
|
|
2154
2168
|
"rounded-full p-2 pe-4 flex text-start justify-between w-full whitespace-normal",
|
|
2155
2169
|
o
|
|
2156
2170
|
),
|
|
2157
|
-
onClick: () =>
|
|
2171
|
+
onClick: () => s(e.id),
|
|
2158
2172
|
children: [
|
|
2159
|
-
/* @__PURE__ */
|
|
2160
|
-
/* @__PURE__ */ r(_, { mode: "wait", children: /* @__PURE__ */ r(
|
|
2161
|
-
/* @__PURE__ */ r(
|
|
2162
|
-
/* @__PURE__ */ r(
|
|
2173
|
+
/* @__PURE__ */ c("div", { className: "flex-1 flex gap-2 items-center", children: [
|
|
2174
|
+
/* @__PURE__ */ r(_, { mode: "wait", children: /* @__PURE__ */ r(u, { snapExit: !0, children: /* @__PURE__ */ c(ye, { className: "size-10", children: [
|
|
2175
|
+
/* @__PURE__ */ r(ke, { src: i, alt: "Agent Icon" }),
|
|
2176
|
+
/* @__PURE__ */ r(Ce, { children: /* @__PURE__ */ r(zr, { className: "size-4" }) })
|
|
2163
2177
|
] }) }) }),
|
|
2164
|
-
/* @__PURE__ */
|
|
2165
|
-
/* @__PURE__ */ r(_, { mode: "wait", children: /* @__PURE__ */ r(
|
|
2166
|
-
/* @__PURE__ */ r(_, { mode: "wait", children: e.lastMessage ? /* @__PURE__ */ r(
|
|
2178
|
+
/* @__PURE__ */ c("div", { className: "flex-1", children: [
|
|
2179
|
+
/* @__PURE__ */ r(_, { mode: "wait", children: /* @__PURE__ */ r(u, { snapExit: !0, children: a }, a) }),
|
|
2180
|
+
/* @__PURE__ */ r(_, { mode: "wait", children: e.lastMessage ? /* @__PURE__ */ r(u, { snapExit: !0, children: /* @__PURE__ */ r(
|
|
2167
2181
|
Mt,
|
|
2168
2182
|
{
|
|
2169
2183
|
remarkPlugins: [vt],
|
|
@@ -2171,7 +2185,7 @@ function ct({
|
|
|
2171
2185
|
className: "line-clamp-1 overflow-hidden text-ellipsis text-xs text-muted-foreground",
|
|
2172
2186
|
children: e.lastMessage
|
|
2173
2187
|
}
|
|
2174
|
-
) }, e.lastMessage || "content") : /* @__PURE__ */ r(
|
|
2188
|
+
) }, e.lastMessage || "content") : /* @__PURE__ */ r(u, { className: "w-1/2", snapExit: !0, children: /* @__PURE__ */ r(No, { className: "h-4 w-full" }) }, "skeleton") })
|
|
2175
2189
|
] })
|
|
2176
2190
|
] }),
|
|
2177
2191
|
/* @__PURE__ */ r(Nr, { className: "size-4 text-muted-foreground shrink-0 rtl:-scale-100" })
|
|
@@ -2179,60 +2193,60 @@ function ct({
|
|
|
2179
2193
|
}
|
|
2180
2194
|
);
|
|
2181
2195
|
}
|
|
2182
|
-
function
|
|
2183
|
-
const { t: e } =
|
|
2196
|
+
function Io() {
|
|
2197
|
+
const { t: e } = X(), { toChatScreen: o } = A(), {
|
|
2184
2198
|
sessionsState: { data: t, isInitialFetchLoading: n },
|
|
2185
2199
|
openSessions: s,
|
|
2186
|
-
closedSessions:
|
|
2187
|
-
canCreateNewSession:
|
|
2188
|
-
} =
|
|
2200
|
+
closedSessions: a,
|
|
2201
|
+
canCreateNewSession: i
|
|
2202
|
+
} = L();
|
|
2189
2203
|
return /* @__PURE__ */ r("div", { className: "flex-1 flex flex-col overflow-scroll py-2 px-2", children: /* @__PURE__ */ r(_, { mode: "wait", children: n ? /* @__PURE__ */ r(
|
|
2190
|
-
|
|
2204
|
+
u,
|
|
2191
2205
|
{
|
|
2192
2206
|
className: "flex-1 flex items-center justify-center",
|
|
2193
|
-
children: /* @__PURE__ */ r(
|
|
2207
|
+
children: /* @__PURE__ */ r(Ht, {})
|
|
2194
2208
|
},
|
|
2195
2209
|
"loading"
|
|
2196
2210
|
) : /* @__PURE__ */ r(
|
|
2197
|
-
|
|
2211
|
+
u,
|
|
2198
2212
|
{
|
|
2199
2213
|
className: "flex-1 flex flex-col gap-2 relative",
|
|
2200
|
-
children: t.length ? /* @__PURE__ */
|
|
2201
|
-
/* @__PURE__ */
|
|
2214
|
+
children: t.length ? /* @__PURE__ */ c(te, { children: [
|
|
2215
|
+
/* @__PURE__ */ c(_, { children: [
|
|
2202
2216
|
s.length > 0 && /* @__PURE__ */ r(
|
|
2203
|
-
|
|
2217
|
+
u,
|
|
2204
2218
|
{
|
|
2205
2219
|
fadeIn: "up",
|
|
2206
2220
|
delay: 0.2,
|
|
2207
2221
|
className: "space-y-2",
|
|
2208
2222
|
snapExit: !0,
|
|
2209
|
-
children: s.map((
|
|
2223
|
+
children: s.map((l) => /* @__PURE__ */ r(ct, { session: l }, l.id))
|
|
2210
2224
|
},
|
|
2211
2225
|
"open-sessions"
|
|
2212
2226
|
),
|
|
2213
|
-
|
|
2214
|
-
|
|
2227
|
+
a.length > 0 && /* @__PURE__ */ c(
|
|
2228
|
+
u,
|
|
2215
2229
|
{
|
|
2216
2230
|
className: "space-y-2",
|
|
2217
2231
|
delay: 0.2,
|
|
2218
2232
|
snapExit: !0,
|
|
2219
2233
|
children: [
|
|
2220
|
-
/* @__PURE__ */ r(
|
|
2221
|
-
|
|
2234
|
+
/* @__PURE__ */ r(_o, { children: e("closed_conversations") }),
|
|
2235
|
+
a.map((l) => /* @__PURE__ */ r(
|
|
2222
2236
|
ct,
|
|
2223
2237
|
{
|
|
2224
|
-
session:
|
|
2238
|
+
session: l,
|
|
2225
2239
|
className: "opacity-50 hover:opacity-100"
|
|
2226
2240
|
},
|
|
2227
|
-
|
|
2241
|
+
l.id
|
|
2228
2242
|
))
|
|
2229
2243
|
]
|
|
2230
2244
|
},
|
|
2231
2245
|
"closed-sessions"
|
|
2232
2246
|
)
|
|
2233
2247
|
] }),
|
|
2234
|
-
|
|
2235
|
-
|
|
2248
|
+
i && /* @__PURE__ */ r("div", { className: "mt-auto w-full rounded-3xl sticky bottom-0 outline outline-8 outline-background bg-background", children: /* @__PURE__ */ ot(
|
|
2249
|
+
C,
|
|
2236
2250
|
{
|
|
2237
2251
|
...g("sessions/new_conversation_btn"),
|
|
2238
2252
|
size: "lg",
|
|
@@ -2242,10 +2256,10 @@ function _o() {
|
|
|
2242
2256
|
},
|
|
2243
2257
|
e("new_conversation")
|
|
2244
2258
|
) })
|
|
2245
|
-
] }) : /* @__PURE__ */
|
|
2259
|
+
] }) : /* @__PURE__ */ c("div", { className: "flex-1 flex flex-col gap-2 items-center", children: [
|
|
2246
2260
|
/* @__PURE__ */ r("div", { className: "flex-1 flex items-center justify-center", children: /* @__PURE__ */ r("p", { className: "text-muted-foreground", children: e("no_conversations_yet") }) }),
|
|
2247
2261
|
/* @__PURE__ */ ot(
|
|
2248
|
-
|
|
2262
|
+
C,
|
|
2249
2263
|
{
|
|
2250
2264
|
...g("sessions/new_conversation_btn"),
|
|
2251
2265
|
size: "lg",
|
|
@@ -2260,9 +2274,9 @@ function _o() {
|
|
|
2260
2274
|
"sessions"
|
|
2261
2275
|
) }) });
|
|
2262
2276
|
}
|
|
2263
|
-
function
|
|
2264
|
-
const { theme: e } =
|
|
2265
|
-
return
|
|
2277
|
+
function To() {
|
|
2278
|
+
const { theme: e } = q();
|
|
2279
|
+
return ze({
|
|
2266
2280
|
width: e.screens.sessions.width,
|
|
2267
2281
|
height: e.screens.sessions.height
|
|
2268
2282
|
}), /* @__PURE__ */ r(
|
|
@@ -2280,18 +2294,18 @@ function Io() {
|
|
|
2280
2294
|
maxHeight: "100vh"
|
|
2281
2295
|
// Relative to the iframe
|
|
2282
2296
|
},
|
|
2283
|
-
children: /* @__PURE__ */
|
|
2284
|
-
/* @__PURE__ */ r(
|
|
2285
|
-
/* @__PURE__ */ r(
|
|
2286
|
-
/* @__PURE__ */ r(
|
|
2297
|
+
children: /* @__PURE__ */ c("div", { className: "size-full flex flex-col", children: [
|
|
2298
|
+
/* @__PURE__ */ r(At, {}),
|
|
2299
|
+
/* @__PURE__ */ r(Io, {}),
|
|
2300
|
+
/* @__PURE__ */ r(Ft, {})
|
|
2287
2301
|
] })
|
|
2288
2302
|
}
|
|
2289
2303
|
);
|
|
2290
2304
|
}
|
|
2291
|
-
const
|
|
2305
|
+
const ae = G.forwardRef(
|
|
2292
2306
|
({ className: e, type: o, ...t }, n) => {
|
|
2293
|
-
const { isSmallScreen: s } =
|
|
2294
|
-
return /* @__PURE__ */ r(
|
|
2307
|
+
const { isSmallScreen: s } = H();
|
|
2308
|
+
return /* @__PURE__ */ r($, { ref: n, children: /* @__PURE__ */ r(
|
|
2295
2309
|
"input",
|
|
2296
2310
|
{
|
|
2297
2311
|
type: o,
|
|
@@ -2308,58 +2322,58 @@ const ie = G.forwardRef(
|
|
|
2308
2322
|
) });
|
|
2309
2323
|
}
|
|
2310
2324
|
);
|
|
2311
|
-
|
|
2312
|
-
function
|
|
2313
|
-
const { contentIframeRef: e } = R(), { inline: o } =
|
|
2325
|
+
ae.displayName = "Input";
|
|
2326
|
+
function Mo() {
|
|
2327
|
+
const { contentIframeRef: e } = R(), { inline: o } = b(), t = de(null);
|
|
2314
2328
|
return re(() => {
|
|
2315
2329
|
const n = e == null ? void 0 : e.current;
|
|
2316
2330
|
if (n && t.current) {
|
|
2317
2331
|
const s = t.current;
|
|
2318
|
-
let
|
|
2319
|
-
const
|
|
2320
|
-
|
|
2321
|
-
const
|
|
2332
|
+
let a;
|
|
2333
|
+
const i = new ResizeObserver(() => {
|
|
2334
|
+
a = requestAnimationFrame(() => {
|
|
2335
|
+
const l = s.offsetHeight;
|
|
2322
2336
|
n.style.setProperty(
|
|
2323
2337
|
"--opencx-widget-height",
|
|
2324
|
-
o ? "100%" : `${
|
|
2338
|
+
o ? "100%" : `${l.toFixed(1)}px`
|
|
2325
2339
|
);
|
|
2326
2340
|
});
|
|
2327
2341
|
});
|
|
2328
|
-
return
|
|
2329
|
-
cancelAnimationFrame(
|
|
2342
|
+
return i.observe(s), () => {
|
|
2343
|
+
cancelAnimationFrame(a), i.unobserve(s);
|
|
2330
2344
|
};
|
|
2331
2345
|
}
|
|
2332
2346
|
}, [e, o]), { observedElementRef: t };
|
|
2333
2347
|
}
|
|
2334
|
-
const
|
|
2335
|
-
name:
|
|
2336
|
-
email:
|
|
2348
|
+
const Do = me.object({
|
|
2349
|
+
name: me.string().min(2),
|
|
2350
|
+
email: me.string().email()
|
|
2337
2351
|
});
|
|
2338
|
-
function
|
|
2339
|
-
var
|
|
2352
|
+
function Ro() {
|
|
2353
|
+
var x, M, O, F, W, E, f, N;
|
|
2340
2354
|
const {
|
|
2341
2355
|
widgetCtx: { org: e }
|
|
2342
|
-
} = R(), { setIsOpen: o } = K(), { createUnverifiedContact: t } =
|
|
2343
|
-
|
|
2356
|
+
} = R(), { setIsOpen: o } = K(), { createUnverifiedContact: t } = qt(), { isSmallScreen: n } = H(), s = b(), { theme: a } = q(), { t: i } = X(), { observedElementRef: l } = Mo();
|
|
2357
|
+
ze({
|
|
2344
2358
|
height: void 0,
|
|
2345
|
-
width:
|
|
2359
|
+
width: a.screens.welcome.width
|
|
2346
2360
|
});
|
|
2347
|
-
const [
|
|
2348
|
-
(
|
|
2349
|
-
), [
|
|
2350
|
-
async (
|
|
2351
|
-
|
|
2352
|
-
const
|
|
2353
|
-
|
|
2361
|
+
const [d, h] = T(((x = s.prefillUserData) == null ? void 0 : x.name) || ""), [y, v] = T(((M = s.prefillUserData) == null ? void 0 : M.email) || ""), m = (s.extraDataCollectionFields || []).filter(
|
|
2362
|
+
(S) => S !== "name" && S !== "email" && !!S
|
|
2363
|
+
), [z, w] = T({}), [k, I] = Rr(
|
|
2364
|
+
async (S) => {
|
|
2365
|
+
S.preventDefault();
|
|
2366
|
+
const B = Do.safeParse({ name: d, email: y });
|
|
2367
|
+
B.success && await t(
|
|
2354
2368
|
{
|
|
2355
|
-
email:
|
|
2356
|
-
non_verified_name:
|
|
2369
|
+
email: B.data.email,
|
|
2370
|
+
non_verified_name: B.data.name
|
|
2357
2371
|
},
|
|
2358
2372
|
// Only pass extra data if there is any
|
|
2359
|
-
Object.values(
|
|
2373
|
+
Object.values(z).filter(Boolean).length ? z : void 0
|
|
2360
2374
|
);
|
|
2361
2375
|
},
|
|
2362
|
-
[
|
|
2376
|
+
[d, y, z]
|
|
2363
2377
|
);
|
|
2364
2378
|
return /* @__PURE__ */ r(
|
|
2365
2379
|
"div",
|
|
@@ -2369,24 +2383,24 @@ function Do() {
|
|
|
2369
2383
|
// Relative to the iframe
|
|
2370
2384
|
maxWidth: "100vw",
|
|
2371
2385
|
// Relative to the iframe
|
|
2372
|
-
minHeight:
|
|
2386
|
+
minHeight: a.screens.welcome.minHeight,
|
|
2373
2387
|
height: "100vh",
|
|
2374
2388
|
// Relative to the iframe
|
|
2375
2389
|
maxHeight: "100vh",
|
|
2376
2390
|
// Relative to the iframe
|
|
2377
2391
|
overflowY: "auto"
|
|
2378
2392
|
},
|
|
2379
|
-
children: /* @__PURE__ */
|
|
2393
|
+
children: /* @__PURE__ */ c(
|
|
2380
2394
|
"div",
|
|
2381
2395
|
{
|
|
2382
|
-
ref:
|
|
2396
|
+
ref: l,
|
|
2383
2397
|
className: p(
|
|
2384
2398
|
"flex flex-col",
|
|
2385
2399
|
n && "h-full",
|
|
2386
2400
|
"bg-[radial-gradient(ellipse_at_top_left,hsl(var(--opencx-primary)),transparent),radial-gradient(ellipse_at_top_right,hsl(var(--opencx-primary)),transparent)]"
|
|
2387
2401
|
),
|
|
2388
2402
|
children: [
|
|
2389
|
-
/* @__PURE__ */
|
|
2403
|
+
/* @__PURE__ */ c(
|
|
2390
2404
|
"div",
|
|
2391
2405
|
{
|
|
2392
2406
|
className: p(
|
|
@@ -2394,23 +2408,23 @@ function Do() {
|
|
|
2394
2408
|
"text-primary-foreground"
|
|
2395
2409
|
),
|
|
2396
2410
|
children: [
|
|
2397
|
-
n && /* @__PURE__ */ r(
|
|
2398
|
-
/* @__PURE__ */ r("div", { className: "flex items-center justify-between w-full mb-2", children: (
|
|
2411
|
+
n && /* @__PURE__ */ r(u, { className: "absolute top-6 end-6", children: /* @__PURE__ */ r(C, { size: "selfless", onClick: () => o(!1), children: /* @__PURE__ */ r(xe, { className: "size-4" }) }) }),
|
|
2412
|
+
/* @__PURE__ */ r("div", { className: "flex items-center justify-between w-full mb-2", children: (O = s.assets) != null && O.organizationLogo ? /* @__PURE__ */ r(
|
|
2399
2413
|
"img",
|
|
2400
2414
|
{
|
|
2401
|
-
src: (
|
|
2415
|
+
src: (F = s.assets) == null ? void 0 : F.organizationLogo,
|
|
2402
2416
|
alt: "Company Logo",
|
|
2403
2417
|
className: "h-8 w-auto object-contain"
|
|
2404
2418
|
}
|
|
2405
2419
|
) : /* @__PURE__ */ r("h2", { className: "font-bold text-sm", children: e.name }) }),
|
|
2406
|
-
/* @__PURE__ */
|
|
2407
|
-
/* @__PURE__ */ r("h1", { className: "text-[1.75rem] font-semibold tracking-tight leading-none", children: ((E = (W = s.textContent) == null ? void 0 : W.welcomeScreen) == null ? void 0 : E.title) ||
|
|
2408
|
-
/* @__PURE__ */ r("p", { className: "text-sm", children: ((
|
|
2420
|
+
/* @__PURE__ */ c("div", { className: "space-y-2", children: [
|
|
2421
|
+
/* @__PURE__ */ r("h1", { className: "text-[1.75rem] font-semibold tracking-tight leading-none", children: ((E = (W = s.textContent) == null ? void 0 : W.welcomeScreen) == null ? void 0 : E.title) || i("welcome_screen_title") }),
|
|
2422
|
+
/* @__PURE__ */ r("p", { className: "text-sm", children: ((N = (f = s.textContent) == null ? void 0 : f.welcomeScreen) == null ? void 0 : N.description) || i("welcome_screen_description") })
|
|
2409
2423
|
] })
|
|
2410
2424
|
]
|
|
2411
2425
|
}
|
|
2412
2426
|
),
|
|
2413
|
-
/* @__PURE__ */
|
|
2427
|
+
/* @__PURE__ */ c(
|
|
2414
2428
|
"div",
|
|
2415
2429
|
{
|
|
2416
2430
|
className: p(
|
|
@@ -2420,54 +2434,54 @@ function Do() {
|
|
|
2420
2434
|
"rounded-3xl"
|
|
2421
2435
|
),
|
|
2422
2436
|
children: [
|
|
2423
|
-
/* @__PURE__ */
|
|
2437
|
+
/* @__PURE__ */ c("form", { onSubmit: I, className: "space-y-2", children: [
|
|
2424
2438
|
/* @__PURE__ */ r(
|
|
2425
|
-
|
|
2439
|
+
ae,
|
|
2426
2440
|
{
|
|
2427
|
-
value:
|
|
2428
|
-
onChange: (
|
|
2441
|
+
value: d,
|
|
2442
|
+
onChange: (S) => h(S.target.value),
|
|
2429
2443
|
required: !0,
|
|
2430
|
-
placeholder:
|
|
2444
|
+
placeholder: i("your_name_placeholder"),
|
|
2431
2445
|
name: "name"
|
|
2432
2446
|
}
|
|
2433
2447
|
),
|
|
2434
2448
|
/* @__PURE__ */ r(
|
|
2435
|
-
|
|
2449
|
+
ae,
|
|
2436
2450
|
{
|
|
2437
2451
|
required: !0,
|
|
2438
|
-
value:
|
|
2439
|
-
onChange: (
|
|
2452
|
+
value: y,
|
|
2453
|
+
onChange: (S) => v(S.target.value),
|
|
2440
2454
|
type: "email",
|
|
2441
|
-
placeholder:
|
|
2455
|
+
placeholder: i("your_email_placeholder"),
|
|
2442
2456
|
name: "email"
|
|
2443
2457
|
}
|
|
2444
2458
|
),
|
|
2445
|
-
m.map((
|
|
2446
|
-
|
|
2459
|
+
m.map((S) => /* @__PURE__ */ r(
|
|
2460
|
+
ae,
|
|
2447
2461
|
{
|
|
2448
|
-
value:
|
|
2449
|
-
onChange: (
|
|
2450
|
-
...
|
|
2451
|
-
[
|
|
2462
|
+
value: z[S],
|
|
2463
|
+
onChange: (B) => w((se) => ({
|
|
2464
|
+
...se,
|
|
2465
|
+
[S]: B.target.value
|
|
2452
2466
|
})),
|
|
2453
|
-
placeholder: `${
|
|
2467
|
+
placeholder: `${S} (${i("optional")})`
|
|
2454
2468
|
},
|
|
2455
|
-
|
|
2469
|
+
S
|
|
2456
2470
|
)),
|
|
2457
|
-
/* @__PURE__ */
|
|
2458
|
-
|
|
2471
|
+
/* @__PURE__ */ c(
|
|
2472
|
+
C,
|
|
2459
2473
|
{
|
|
2460
|
-
disabled:
|
|
2474
|
+
disabled: k.loading,
|
|
2461
2475
|
className: "w-full",
|
|
2462
2476
|
size: "lg",
|
|
2463
2477
|
children: [
|
|
2464
|
-
|
|
2478
|
+
k.loading ? i("start_chat_button_loading") : i("start_chat_button"),
|
|
2465
2479
|
/* @__PURE__ */ r(Sr, { className: "size-4 rtl:-scale-100" })
|
|
2466
2480
|
]
|
|
2467
2481
|
}
|
|
2468
2482
|
)
|
|
2469
2483
|
] }),
|
|
2470
|
-
/* @__PURE__ */ r(
|
|
2484
|
+
/* @__PURE__ */ r(Ft, {})
|
|
2471
2485
|
]
|
|
2472
2486
|
}
|
|
2473
2487
|
)
|
|
@@ -2480,39 +2494,39 @@ function Do() {
|
|
|
2480
2494
|
function Wt() {
|
|
2481
2495
|
const {
|
|
2482
2496
|
routerState: { screen: e }
|
|
2483
|
-
} =
|
|
2497
|
+
} = A();
|
|
2484
2498
|
return /* @__PURE__ */ r("div", { className: "relative bg-background size-full", children: /* @__PURE__ */ r(_, { mode: "wait", children: (() => {
|
|
2485
2499
|
switch (e) {
|
|
2486
2500
|
case "welcome":
|
|
2487
2501
|
return /* @__PURE__ */ r(
|
|
2488
|
-
|
|
2502
|
+
u,
|
|
2489
2503
|
{
|
|
2490
2504
|
fadeIn: "right",
|
|
2491
2505
|
className: "size-full",
|
|
2492
2506
|
snapExit: !0,
|
|
2493
|
-
children: /* @__PURE__ */ r(
|
|
2507
|
+
children: /* @__PURE__ */ r(Ro, {})
|
|
2494
2508
|
},
|
|
2495
2509
|
e
|
|
2496
2510
|
);
|
|
2497
2511
|
case "sessions":
|
|
2498
2512
|
return /* @__PURE__ */ r(
|
|
2499
|
-
|
|
2513
|
+
u,
|
|
2500
2514
|
{
|
|
2501
2515
|
fadeIn: "right",
|
|
2502
2516
|
className: "size-full",
|
|
2503
2517
|
snapExit: !0,
|
|
2504
|
-
children: /* @__PURE__ */ r(
|
|
2518
|
+
children: /* @__PURE__ */ r(To, {})
|
|
2505
2519
|
},
|
|
2506
2520
|
e
|
|
2507
2521
|
);
|
|
2508
2522
|
case "chat":
|
|
2509
2523
|
return /* @__PURE__ */ r(
|
|
2510
|
-
|
|
2524
|
+
u,
|
|
2511
2525
|
{
|
|
2512
2526
|
fadeIn: "right",
|
|
2513
2527
|
className: "size-full",
|
|
2514
2528
|
snapExit: !0,
|
|
2515
|
-
children: /* @__PURE__ */ r(
|
|
2529
|
+
children: /* @__PURE__ */ r(zo, {})
|
|
2516
2530
|
},
|
|
2517
2531
|
e
|
|
2518
2532
|
);
|
|
@@ -2521,7 +2535,7 @@ function Wt() {
|
|
|
2521
2535
|
}
|
|
2522
2536
|
})() }) });
|
|
2523
2537
|
}
|
|
2524
|
-
const
|
|
2538
|
+
const jo = "4.0.34", Eo = `<!DOCTYPE html>
|
|
2525
2539
|
<html>
|
|
2526
2540
|
<head>
|
|
2527
2541
|
<style>
|
|
@@ -2539,8 +2553,8 @@ html, body {
|
|
|
2539
2553
|
<body>
|
|
2540
2554
|
</body>
|
|
2541
2555
|
</html>`;
|
|
2542
|
-
function
|
|
2543
|
-
const { isOpen: e } = K(), { contentIframeRef: o } = R(), { cssOverrides: t, inline: n } =
|
|
2556
|
+
function $t() {
|
|
2557
|
+
const { isOpen: e } = K(), { contentIframeRef: o } = R(), { cssOverrides: t, inline: n } = b(), { theme: s, cssVars: a, computed: i } = q(), { dir: l } = X();
|
|
2544
2558
|
return /* @__PURE__ */ r(
|
|
2545
2559
|
Z.div,
|
|
2546
2560
|
{
|
|
@@ -2560,24 +2574,24 @@ function Bt() {
|
|
|
2560
2574
|
height: n ? "100%" : void 0
|
|
2561
2575
|
}
|
|
2562
2576
|
},
|
|
2563
|
-
children: /* @__PURE__ */
|
|
2577
|
+
children: /* @__PURE__ */ c(
|
|
2564
2578
|
bt,
|
|
2565
2579
|
{
|
|
2566
2580
|
ref: o,
|
|
2567
|
-
initialContent:
|
|
2581
|
+
initialContent: Eo,
|
|
2568
2582
|
allowFullScreen: !0,
|
|
2569
2583
|
title: "OpenCX Live Chat",
|
|
2570
2584
|
style: {
|
|
2571
2585
|
// @ts-expect-error this is a valid css variable
|
|
2572
|
-
"--opencx-widget-width":
|
|
2573
|
-
"--opencx-widget-height":
|
|
2574
|
-
minWidth:
|
|
2586
|
+
"--opencx-widget-width": i.minWidth,
|
|
2587
|
+
"--opencx-widget-height": i.minHeight,
|
|
2588
|
+
minWidth: i.minWidth,
|
|
2575
2589
|
width: "var(--opencx-widget-width)",
|
|
2576
|
-
maxWidth:
|
|
2590
|
+
maxWidth: i.maxWidth,
|
|
2577
2591
|
// Relative to the viewport
|
|
2578
|
-
minHeight:
|
|
2592
|
+
minHeight: i.minHeight,
|
|
2579
2593
|
height: "var(--opencx-widget-height)",
|
|
2580
|
-
maxHeight:
|
|
2594
|
+
maxHeight: i.maxHeight,
|
|
2581
2595
|
// Relative to the viewport
|
|
2582
2596
|
overflow: "hidden",
|
|
2583
2597
|
/** outline is better than border because of box sizing; the outline wouldn't affect the content inside... the border will mess up how the children's border radius sits with the parent */
|
|
@@ -2598,14 +2612,14 @@ function Bt() {
|
|
|
2598
2612
|
"div",
|
|
2599
2613
|
{
|
|
2600
2614
|
style: {
|
|
2601
|
-
...
|
|
2615
|
+
...a,
|
|
2602
2616
|
zIndex: s.widgetContentContainer.zIndex
|
|
2603
2617
|
},
|
|
2604
|
-
"data-version":
|
|
2618
|
+
"data-version": jo,
|
|
2605
2619
|
className: p(
|
|
2606
2620
|
"antialiased font-sans size-full overflow-hidden relative text-secondary-foreground isolate"
|
|
2607
2621
|
),
|
|
2608
|
-
dir:
|
|
2622
|
+
dir: l,
|
|
2609
2623
|
children: /* @__PURE__ */ r(
|
|
2610
2624
|
Yr,
|
|
2611
2625
|
{
|
|
@@ -2622,10 +2636,10 @@ function Bt() {
|
|
|
2622
2636
|
}
|
|
2623
2637
|
);
|
|
2624
2638
|
}
|
|
2625
|
-
function
|
|
2626
|
-
const { theme: e } =
|
|
2639
|
+
function Po() {
|
|
2640
|
+
const { theme: e } = q();
|
|
2627
2641
|
return /* @__PURE__ */ r(
|
|
2628
|
-
|
|
2642
|
+
ce.Content,
|
|
2629
2643
|
{
|
|
2630
2644
|
onInteractOutside: (o) => o.preventDefault(),
|
|
2631
2645
|
forceMount: !0,
|
|
@@ -2638,15 +2652,15 @@ function Eo() {
|
|
|
2638
2652
|
sideOffset: e.widgetContentContainer.offset.side,
|
|
2639
2653
|
alignOffset: e.widgetContentContainer.offset.align,
|
|
2640
2654
|
avoidCollisions: !1,
|
|
2641
|
-
children: /* @__PURE__ */ r(
|
|
2655
|
+
children: /* @__PURE__ */ r($t, {})
|
|
2642
2656
|
}
|
|
2643
2657
|
);
|
|
2644
2658
|
}
|
|
2645
|
-
function
|
|
2659
|
+
function Ao({
|
|
2646
2660
|
className: e,
|
|
2647
2661
|
style: o
|
|
2648
2662
|
}) {
|
|
2649
|
-
return /* @__PURE__ */
|
|
2663
|
+
return /* @__PURE__ */ c(
|
|
2650
2664
|
"svg",
|
|
2651
2665
|
{
|
|
2652
2666
|
width: "32",
|
|
@@ -2677,7 +2691,7 @@ function Oo({
|
|
|
2677
2691
|
}
|
|
2678
2692
|
);
|
|
2679
2693
|
}
|
|
2680
|
-
const
|
|
2694
|
+
const Ho = `<!DOCTYPE html>
|
|
2681
2695
|
<html>
|
|
2682
2696
|
<head>
|
|
2683
2697
|
<style>
|
|
@@ -2694,13 +2708,13 @@ html, body {
|
|
|
2694
2708
|
<body>
|
|
2695
2709
|
</body>
|
|
2696
2710
|
</html>`;
|
|
2697
|
-
function
|
|
2698
|
-
var
|
|
2699
|
-
const { isOpen: e } = K(), { cssOverrides: o, assets: t } =
|
|
2700
|
-
return /* @__PURE__ */
|
|
2711
|
+
function Oo() {
|
|
2712
|
+
var a, i;
|
|
2713
|
+
const { isOpen: e } = K(), { cssOverrides: o, assets: t } = b(), { theme: n, cssVars: s } = q();
|
|
2714
|
+
return /* @__PURE__ */ c(
|
|
2701
2715
|
bt,
|
|
2702
2716
|
{
|
|
2703
|
-
initialContent:
|
|
2717
|
+
initialContent: Ho,
|
|
2704
2718
|
style: {
|
|
2705
2719
|
height: `calc(${n.widgetTrigger.size.button}px + ${V.x * 2}px)`,
|
|
2706
2720
|
width: `calc(${n.widgetTrigger.size.button}px + ${V.y * 2}px)`,
|
|
@@ -2730,7 +2744,7 @@ function Ao() {
|
|
|
2730
2744
|
justifyContent: "center"
|
|
2731
2745
|
},
|
|
2732
2746
|
children: /* @__PURE__ */ r(
|
|
2733
|
-
|
|
2747
|
+
ce.PopoverTrigger,
|
|
2734
2748
|
{
|
|
2735
2749
|
className: p(
|
|
2736
2750
|
"font-sans flex items-center justify-center rounded-full"
|
|
@@ -2739,7 +2753,7 @@ function Ao() {
|
|
|
2739
2753
|
height: n.widgetTrigger.size.button,
|
|
2740
2754
|
width: n.widgetTrigger.size.button
|
|
2741
2755
|
},
|
|
2742
|
-
children: /* @__PURE__ */ r(
|
|
2756
|
+
children: /* @__PURE__ */ r($, { children: /* @__PURE__ */ r(
|
|
2743
2757
|
"div",
|
|
2744
2758
|
{
|
|
2745
2759
|
...g("trigger/btn"),
|
|
@@ -2752,7 +2766,7 @@ function Ao() {
|
|
|
2752
2766
|
"text-primary-foreground"
|
|
2753
2767
|
),
|
|
2754
2768
|
children: /* @__PURE__ */ r(_, { mode: "wait", children: e ? /* @__PURE__ */ r(
|
|
2755
|
-
|
|
2769
|
+
u,
|
|
2756
2770
|
{
|
|
2757
2771
|
snapExit: !0,
|
|
2758
2772
|
fadeIn: "up",
|
|
@@ -2760,7 +2774,7 @@ function Ao() {
|
|
|
2760
2774
|
initial: { rotate: 45 },
|
|
2761
2775
|
animate: { rotate: 0 }
|
|
2762
2776
|
},
|
|
2763
|
-
children: (
|
|
2777
|
+
children: (a = t == null ? void 0 : t.widgetTrigger) != null && a.closeIcon ? /* @__PURE__ */ r(
|
|
2764
2778
|
"img",
|
|
2765
2779
|
{
|
|
2766
2780
|
src: t.widgetTrigger.closeIcon,
|
|
@@ -2782,14 +2796,14 @@ function Ao() {
|
|
|
2782
2796
|
},
|
|
2783
2797
|
"x-icon"
|
|
2784
2798
|
) : /* @__PURE__ */ r(
|
|
2785
|
-
|
|
2799
|
+
u,
|
|
2786
2800
|
{
|
|
2787
2801
|
snapExit: !0,
|
|
2788
2802
|
overrides: {
|
|
2789
2803
|
initial: { rotate: 45 },
|
|
2790
2804
|
animate: { rotate: 0 }
|
|
2791
2805
|
},
|
|
2792
|
-
children: (
|
|
2806
|
+
children: (i = t == null ? void 0 : t.widgetTrigger) != null && i.openIcon ? /* @__PURE__ */ r(
|
|
2793
2807
|
"img",
|
|
2794
2808
|
{
|
|
2795
2809
|
src: t.widgetTrigger.openIcon,
|
|
@@ -2800,7 +2814,7 @@ function Ao() {
|
|
|
2800
2814
|
}
|
|
2801
2815
|
}
|
|
2802
2816
|
) : /* @__PURE__ */ r(
|
|
2803
|
-
|
|
2817
|
+
Ao,
|
|
2804
2818
|
{
|
|
2805
2819
|
style: {
|
|
2806
2820
|
width: n.widgetTrigger.size.icon,
|
|
@@ -2823,9 +2837,9 @@ function Ao() {
|
|
|
2823
2837
|
);
|
|
2824
2838
|
}
|
|
2825
2839
|
function Fo() {
|
|
2826
|
-
const { dir: e } =
|
|
2840
|
+
const { dir: e } = ve();
|
|
2827
2841
|
return /* @__PURE__ */ r(
|
|
2828
|
-
|
|
2842
|
+
ce.Anchor,
|
|
2829
2843
|
{
|
|
2830
2844
|
style: {
|
|
2831
2845
|
position: "fixed",
|
|
@@ -2836,32 +2850,32 @@ function Fo() {
|
|
|
2836
2850
|
}
|
|
2837
2851
|
);
|
|
2838
2852
|
}
|
|
2839
|
-
function
|
|
2853
|
+
function Wo() {
|
|
2840
2854
|
const { isOpen: e, setIsOpen: o } = K();
|
|
2841
|
-
return /* @__PURE__ */
|
|
2855
|
+
return /* @__PURE__ */ c(ce.Root, { open: e, onOpenChange: o, children: [
|
|
2842
2856
|
/* @__PURE__ */ r(Fo, {}),
|
|
2843
|
-
/* @__PURE__ */ r(
|
|
2844
|
-
/* @__PURE__ */ r(
|
|
2857
|
+
/* @__PURE__ */ r(Oo, {}),
|
|
2858
|
+
/* @__PURE__ */ r(Po, {})
|
|
2845
2859
|
] });
|
|
2846
2860
|
}
|
|
2847
|
-
const
|
|
2861
|
+
const $o = [
|
|
2848
2862
|
{
|
|
2849
2863
|
key: "loading",
|
|
2850
|
-
component:
|
|
2864
|
+
component: Br
|
|
2851
2865
|
},
|
|
2852
2866
|
{
|
|
2853
2867
|
key: "fallback",
|
|
2854
|
-
component:
|
|
2868
|
+
component: Lr
|
|
2855
2869
|
},
|
|
2856
2870
|
{
|
|
2857
2871
|
key: "bot_message",
|
|
2858
|
-
component:
|
|
2872
|
+
component: ge
|
|
2859
2873
|
},
|
|
2860
2874
|
{
|
|
2861
2875
|
key: "agent_message",
|
|
2862
|
-
component:
|
|
2876
|
+
component: ge
|
|
2863
2877
|
}
|
|
2864
|
-
],
|
|
2878
|
+
], Lo = {
|
|
2865
2879
|
get: async (e) => localStorage.getItem(e),
|
|
2866
2880
|
set: async (e, o) => {
|
|
2867
2881
|
localStorage.setItem(e, o);
|
|
@@ -2870,23 +2884,23 @@ const Wo = [
|
|
|
2870
2884
|
localStorage.removeItem(e);
|
|
2871
2885
|
}
|
|
2872
2886
|
};
|
|
2873
|
-
function
|
|
2887
|
+
function ln({
|
|
2874
2888
|
options: e,
|
|
2875
2889
|
components: o = [],
|
|
2876
2890
|
loadingComponent: t
|
|
2877
2891
|
}) {
|
|
2878
2892
|
return /* @__PURE__ */ r(
|
|
2879
|
-
|
|
2893
|
+
Xt,
|
|
2880
2894
|
{
|
|
2881
|
-
components: [
|
|
2895
|
+
components: [...$o, ...o],
|
|
2882
2896
|
options: e,
|
|
2883
|
-
storage:
|
|
2897
|
+
storage: Lo,
|
|
2884
2898
|
loadingComponent: t,
|
|
2885
|
-
children: /* @__PURE__ */ r(Vt, { children: e.inline ? /* @__PURE__ */ r(
|
|
2899
|
+
children: /* @__PURE__ */ r(Vt, { children: e.inline ? /* @__PURE__ */ r($t, {}) : /* @__PURE__ */ r(Wo, {}) })
|
|
2886
2900
|
}
|
|
2887
2901
|
);
|
|
2888
2902
|
}
|
|
2889
2903
|
export {
|
|
2890
|
-
|
|
2904
|
+
ln as Widget
|
|
2891
2905
|
};
|
|
2892
2906
|
//# sourceMappingURL=index.js.map
|