@opencx/widget-react 4.0.32 → 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 +14 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +432 -426
- 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/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/LoadingDefaultComponent.d.ts +2 -2
- package/dist/src/components/custom-components/LoadingDefaultComponent.d.ts.map +1 -1
- package/dist/src/screens/chat/ChatMain.d.ts.map +1 -1
- package/package.json +5 -5
- 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/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
1
|
+
import { jsx as r, jsxs as c, Fragment as te } from "react/jsx-runtime";
|
|
2
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";
|
|
@@ -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 [a, i] = T(!1), [
|
|
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 = F * V.x,
|
|
48
|
-
|
|
49
|
-
},
|
|
50
|
-
var
|
|
51
|
-
i(!0), (
|
|
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
|
-
i(!1),
|
|
55
|
-
},
|
|
56
|
-
"--wobble-x": a ? `${
|
|
57
|
-
"--wobble-y": a ? `${
|
|
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,29 +78,29 @@ 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,
|
|
@@ -109,12 +109,12 @@ const jr = 10, Er = (e, o, t) => ({
|
|
|
109
109
|
overrides: s = {},
|
|
110
110
|
delay: a = 0,
|
|
111
111
|
...i
|
|
112
|
-
},
|
|
113
|
-
const
|
|
114
|
-
return n &&
|
|
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
|
-
|
|
117
|
+
u.displayName = "MotionDiv";
|
|
118
118
|
const Fr = Zt(
|
|
119
119
|
p(
|
|
120
120
|
"inline-flex shrink-0 items-center justify-center gap-2",
|
|
@@ -154,8 +154,8 @@ const Fr = Zt(
|
|
|
154
154
|
size: "default"
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
),
|
|
158
|
-
({ className: e, variant: o = "default", size: t, asChild: n = !1, ...s }, a) => /* @__PURE__ */ r(
|
|
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"),
|
|
@@ -165,22 +165,22 @@ const Fr = Zt(
|
|
|
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), a = (
|
|
172
|
-
s(
|
|
171
|
+
const [o, t] = T(!1), [n, s] = T(null), a = (l) => {
|
|
172
|
+
s(l), t(!0);
|
|
173
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
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
|
}
|
|
@@ -197,25 +197,25 @@ function pe() {
|
|
|
197
197
|
content: null
|
|
198
198
|
});
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function $r() {
|
|
201
201
|
const { contentIframeRef: e } = R(), { isOpen: o, content: t, close: n } = pe();
|
|
202
202
|
return re(() => {
|
|
203
203
|
var a, i;
|
|
204
|
-
const s = (
|
|
205
|
-
|
|
204
|
+
const s = (l) => {
|
|
205
|
+
l.key === "Escape" && n();
|
|
206
206
|
};
|
|
207
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 },
|
|
@@ -235,7 +235,7 @@ function kt({
|
|
|
235
235
|
withClose: t = !1
|
|
236
236
|
}) {
|
|
237
237
|
const { close: n } = pe();
|
|
238
|
-
return /* @__PURE__ */
|
|
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,
|
|
@@ -320,14 +320,14 @@ function It({
|
|
|
320
320
|
});
|
|
321
321
|
}
|
|
322
322
|
function Tt({ attachment: e }) {
|
|
323
|
-
const { name: o, size: t, type: n, url: s } = e, a = n.startsWith("image/"), i = n.startsWith("video/"),
|
|
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
|
-
] }) }) }) : i ? /* @__PURE__ */ r(
|
|
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
|
-
] }) }) }) : !a && !i && !
|
|
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,14 +342,14 @@ 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
|
{
|
|
@@ -361,7 +361,7 @@ function Tt({ attachment: e }) {
|
|
|
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
|
);
|
|
@@ -370,7 +370,7 @@ function be({
|
|
|
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
|
{
|
|
@@ -393,29 +393,29 @@ function ge({
|
|
|
393
393
|
isFirstInGroup: s,
|
|
394
394
|
isLastInGroup: a,
|
|
395
395
|
isAloneInGroup: i,
|
|
396
|
-
dataComponentNames:
|
|
397
|
-
classNames:
|
|
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
416
|
"data-last": a,
|
|
417
417
|
"data-alone": i,
|
|
418
|
-
"data-variant":
|
|
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,12 +424,12 @@ function ge({
|
|
|
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
429
|
s && !i && "rounded-bl-md",
|
|
430
430
|
a && !i && "rounded-tl-md",
|
|
431
431
|
!s && !a && !i && "rounded-l-md",
|
|
432
|
-
|
|
432
|
+
d == null ? void 0 : d.message
|
|
433
433
|
),
|
|
434
434
|
children: /* @__PURE__ */ r(be, { messageType: t, messageId: o, children: h })
|
|
435
435
|
}
|
|
@@ -438,7 +438,7 @@ function ge({
|
|
|
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
444
|
const ye = G.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
@@ -480,20 +480,20 @@ function we({
|
|
|
480
480
|
...o
|
|
481
481
|
}) {
|
|
482
482
|
var t, n;
|
|
483
|
-
return /* @__PURE__ */
|
|
484
|
-
/* @__PURE__ */ r(ke, { src: (e == null ? void 0 : e.avatar)
|
|
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
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
495
|
/* @__PURE__ */ r(we, { agent: e }),
|
|
496
|
-
/* @__PURE__ */
|
|
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
|
};
|
|
@@ -562,39 +562,39 @@ 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 } = ve(), { isSmallScreen: o } =
|
|
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: ((
|
|
575
|
+
button: ((O = (M = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : M.size) == null ? void 0 : O.button) ?? 48,
|
|
576
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: ((
|
|
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
592
|
transitionProperty: ((se = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : se.transitionProperty) ?? "all",
|
|
593
593
|
transitionTimingFunction: ((_e = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : _e.transitionTimingFunction) ?? ie.transitionTimingFunction,
|
|
594
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: {
|
|
@@ -603,20 +603,20 @@ function X() {
|
|
|
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
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: i("w", ((
|
|
610
|
+
width: i("w", ((Oe = (He = t == null ? void 0 : t.screens) == null ? void 0 : He.sessions) == null ? void 0 : Oe.width) ?? "450px"),
|
|
611
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: i("w", ((
|
|
615
|
-
height: i("h", ((Ye = (
|
|
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
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
621
|
height: i(
|
|
622
622
|
"h",
|
|
@@ -627,7 +627,7 @@ function X() {
|
|
|
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)
|
|
@@ -645,7 +645,7 @@ function X() {
|
|
|
645
645
|
"w",
|
|
646
646
|
`calc(
|
|
647
647
|
100vw
|
|
648
|
-
- ${
|
|
648
|
+
- ${d * 2}px
|
|
649
649
|
)`
|
|
650
650
|
),
|
|
651
651
|
minHeight: i(
|
|
@@ -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;
|
|
@@ -783,7 +783,7 @@ 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]);
|
|
@@ -838,13 +838,13 @@ function ne() {
|
|
|
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
|
-
react:
|
|
847
|
+
react: U,
|
|
848
848
|
org: e,
|
|
849
849
|
session: o,
|
|
850
850
|
config: t,
|
|
@@ -867,7 +867,7 @@ function Ne() {
|
|
|
867
867
|
widgetCtx: { org: e }
|
|
868
868
|
} = R(), {
|
|
869
869
|
routerState: { screen: o }
|
|
870
|
-
} =
|
|
870
|
+
} = A(), { textContent: t } = b();
|
|
871
871
|
return (() => {
|
|
872
872
|
var s, a;
|
|
873
873
|
switch (o) {
|
|
@@ -897,12 +897,12 @@ function Kr(e) {
|
|
|
897
897
|
}
|
|
898
898
|
}
|
|
899
899
|
function Qr() {
|
|
900
|
-
const { router: e } =
|
|
900
|
+
const { router: e } = b(), {
|
|
901
901
|
routerState: { screen: o },
|
|
902
902
|
toSessionsScreen: t
|
|
903
|
-
} =
|
|
903
|
+
} = A();
|
|
904
904
|
return o !== "chat" || e != null && e.chatScreenOnly ? null : /* @__PURE__ */ r(
|
|
905
|
-
|
|
905
|
+
C,
|
|
906
906
|
{
|
|
907
907
|
variant: "ghost",
|
|
908
908
|
size: "fit",
|
|
@@ -915,9 +915,9 @@ function Qr() {
|
|
|
915
915
|
function Zr({
|
|
916
916
|
button: e
|
|
917
917
|
}) {
|
|
918
|
-
const { setIsOpen: o } = K(), { isSmallScreen: t } =
|
|
918
|
+
const { setIsOpen: o } = K(), { isSmallScreen: t } = H();
|
|
919
919
|
return t && e.hideOnSmallScreen || !t && e.hideOnLargeScreen ? null : /* @__PURE__ */ r(
|
|
920
|
-
|
|
920
|
+
C,
|
|
921
921
|
{
|
|
922
922
|
variant: "ghost",
|
|
923
923
|
size: "fit",
|
|
@@ -935,9 +935,9 @@ function ue({
|
|
|
935
935
|
}) {
|
|
936
936
|
const [o, t] = T(!1), {
|
|
937
937
|
routerState: { screen: n }
|
|
938
|
-
} =
|
|
938
|
+
} = A(), { isSmallScreen: s } = H(), { theme: a } = q(), { setWidth: i, setHeight: l } = Et();
|
|
939
939
|
if (n !== "chat" && n !== "sessions") return null;
|
|
940
|
-
const
|
|
940
|
+
const d = (() => {
|
|
941
941
|
switch (n) {
|
|
942
942
|
case "chat":
|
|
943
943
|
return a.screens.chat.height;
|
|
@@ -955,19 +955,19 @@ function ue({
|
|
|
955
955
|
default:
|
|
956
956
|
return D(n, ue.name), a.screens.chat.width;
|
|
957
957
|
}
|
|
958
|
-
})(),
|
|
959
|
-
t((
|
|
960
|
-
const m = !
|
|
961
|
-
return
|
|
958
|
+
})(), y = () => {
|
|
959
|
+
t((v) => {
|
|
960
|
+
const m = !v;
|
|
961
|
+
return l(m ? "100vh" : d), i(m ? `max(40vw, ${h})` : h), m;
|
|
962
962
|
});
|
|
963
963
|
};
|
|
964
964
|
return s && e.hideOnSmallScreen || !s && e.hideOnLargeScreen ? null : /* @__PURE__ */ r(
|
|
965
|
-
|
|
965
|
+
C,
|
|
966
966
|
{
|
|
967
967
|
variant: "ghost",
|
|
968
968
|
size: "fit",
|
|
969
969
|
className: "rounded-full",
|
|
970
|
-
onClick:
|
|
970
|
+
onClick: y,
|
|
971
971
|
children: /* @__PURE__ */ r(
|
|
972
972
|
ee,
|
|
973
973
|
{
|
|
@@ -977,13 +977,13 @@ function ue({
|
|
|
977
977
|
}
|
|
978
978
|
);
|
|
979
979
|
}
|
|
980
|
-
function
|
|
980
|
+
function Pt({
|
|
981
981
|
button: e
|
|
982
982
|
}) {
|
|
983
|
-
var
|
|
984
|
-
const { close: o } = pe(), { widgetCtx: t } = R(), { setIsOpen: n } = K(), { resolveSession: s, sessionState: a } =
|
|
985
|
-
const { success:
|
|
986
|
-
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);
|
|
987
987
|
switch (h) {
|
|
988
988
|
case "stay-in-chat":
|
|
989
989
|
return;
|
|
@@ -997,12 +997,12 @@ function Ot({
|
|
|
997
997
|
n(!1), t.resetChat();
|
|
998
998
|
break;
|
|
999
999
|
default:
|
|
1000
|
-
D(h,
|
|
1000
|
+
D(h, Pt.name);
|
|
1001
1001
|
break;
|
|
1002
1002
|
}
|
|
1003
|
-
},
|
|
1004
|
-
if (
|
|
1005
|
-
switch (
|
|
1003
|
+
}, w = () => {
|
|
1004
|
+
if (l)
|
|
1005
|
+
switch (y) {
|
|
1006
1006
|
case "disabled":
|
|
1007
1007
|
return;
|
|
1008
1008
|
case "close-widget":
|
|
@@ -1010,12 +1010,12 @@ function Ot({
|
|
|
1010
1010
|
break;
|
|
1011
1011
|
default:
|
|
1012
1012
|
D(
|
|
1013
|
-
|
|
1014
|
-
|
|
1013
|
+
y,
|
|
1014
|
+
w.name
|
|
1015
1015
|
);
|
|
1016
1016
|
}
|
|
1017
|
-
if (
|
|
1018
|
-
switch (
|
|
1017
|
+
if (d)
|
|
1018
|
+
switch (v) {
|
|
1019
1019
|
case "disabled":
|
|
1020
1020
|
return;
|
|
1021
1021
|
case "close-widget":
|
|
@@ -1031,16 +1031,16 @@ function Ot({
|
|
|
1031
1031
|
break;
|
|
1032
1032
|
default:
|
|
1033
1033
|
D(
|
|
1034
|
-
|
|
1035
|
-
|
|
1034
|
+
v,
|
|
1035
|
+
w.name
|
|
1036
1036
|
);
|
|
1037
1037
|
}
|
|
1038
1038
|
};
|
|
1039
|
-
return i && e.hideOnSmallScreen || !i && e.hideOnLargeScreen ? null : ((I = e.confirmation) == null ? void 0 : I.type) === "modal" && !
|
|
1039
|
+
return i && e.hideOnSmallScreen || !i && e.hideOnLargeScreen ? null : ((I = e.confirmation) == null ? void 0 : I.type) === "modal" && !d && !l ? /* @__PURE__ */ r(
|
|
1040
1040
|
It,
|
|
1041
1041
|
{
|
|
1042
1042
|
trigger: /* @__PURE__ */ r(
|
|
1043
|
-
|
|
1043
|
+
C,
|
|
1044
1044
|
{
|
|
1045
1045
|
variant: "ghost",
|
|
1046
1046
|
size: "fit",
|
|
@@ -1049,12 +1049,12 @@ function Ot({
|
|
|
1049
1049
|
children: /* @__PURE__ */ r(ee, { name: e.icon })
|
|
1050
1050
|
}
|
|
1051
1051
|
),
|
|
1052
|
-
children: /* @__PURE__ */
|
|
1052
|
+
children: /* @__PURE__ */ c(kt, { children: [
|
|
1053
1053
|
/* @__PURE__ */ r(Ct, { children: /* @__PURE__ */ r(St, { children: e.confirmation.title || "Close conversation" }) }),
|
|
1054
1054
|
/* @__PURE__ */ r(zt, { children: /* @__PURE__ */ r(_t, { children: e.confirmation.description || "Are you sure you want to close this conversation?" }) }),
|
|
1055
|
-
/* @__PURE__ */
|
|
1055
|
+
/* @__PURE__ */ c(Nt, { children: [
|
|
1056
1056
|
/* @__PURE__ */ r(
|
|
1057
|
-
|
|
1057
|
+
C,
|
|
1058
1058
|
{
|
|
1059
1059
|
variant: "secondary",
|
|
1060
1060
|
onClick: o,
|
|
@@ -1063,10 +1063,10 @@ function Ot({
|
|
|
1063
1063
|
}
|
|
1064
1064
|
),
|
|
1065
1065
|
/* @__PURE__ */ r(
|
|
1066
|
-
|
|
1066
|
+
C,
|
|
1067
1067
|
{
|
|
1068
1068
|
variant: "destructive",
|
|
1069
|
-
onClick:
|
|
1069
|
+
onClick: z,
|
|
1070
1070
|
disabled: a.isResolvingSession,
|
|
1071
1071
|
children: e.confirmation.confirmButtonText || "Yes"
|
|
1072
1072
|
}
|
|
@@ -1075,12 +1075,12 @@ function Ot({
|
|
|
1075
1075
|
] })
|
|
1076
1076
|
}
|
|
1077
1077
|
) : /* @__PURE__ */ r(
|
|
1078
|
-
|
|
1078
|
+
C,
|
|
1079
1079
|
{
|
|
1080
1080
|
variant: "ghost",
|
|
1081
1081
|
size: "fit",
|
|
1082
1082
|
className: "rounded-full",
|
|
1083
|
-
onClick:
|
|
1083
|
+
onClick: d || l ? w : z,
|
|
1084
1084
|
disabled: m,
|
|
1085
1085
|
children: /* @__PURE__ */ r(ee, { name: e.icon })
|
|
1086
1086
|
}
|
|
@@ -1093,7 +1093,7 @@ function fe({ button: e }) {
|
|
|
1093
1093
|
case "expand-shrink":
|
|
1094
1094
|
return /* @__PURE__ */ r(ue, { button: e });
|
|
1095
1095
|
case "resolve-session":
|
|
1096
|
-
return /* @__PURE__ */ r(
|
|
1096
|
+
return /* @__PURE__ */ r(Pt, { button: e });
|
|
1097
1097
|
default:
|
|
1098
1098
|
return D(e, fe.name), null;
|
|
1099
1099
|
}
|
|
@@ -1106,7 +1106,7 @@ const Jr = {
|
|
|
1106
1106
|
function eo() {
|
|
1107
1107
|
const {
|
|
1108
1108
|
routerState: { screen: e }
|
|
1109
|
-
} =
|
|
1109
|
+
} = A(), { headerButtons: o } = b(), t = e === "chat" ? o == null ? void 0 : o.chatScreen : e === "sessions" ? o == null ? void 0 : o.sessionsScreen : [];
|
|
1110
1110
|
return !t || t.length === 0 ? /* @__PURE__ */ r(fe, { button: Jr }) : /* @__PURE__ */ r(te, { children: t.map((n) => /* @__PURE__ */ r(
|
|
1111
1111
|
fe,
|
|
1112
1112
|
{
|
|
@@ -1115,12 +1115,12 @@ function eo() {
|
|
|
1115
1115
|
`${n.functionality}-${n.icon}`
|
|
1116
1116
|
)) });
|
|
1117
1117
|
}
|
|
1118
|
-
function
|
|
1118
|
+
function At() {
|
|
1119
1119
|
const {
|
|
1120
1120
|
routerState: { screen: e }
|
|
1121
|
-
} =
|
|
1122
|
-
return /* @__PURE__ */
|
|
1123
|
-
/* @__PURE__ */
|
|
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
1124
|
/* @__PURE__ */ r(Qr, {}),
|
|
1125
1125
|
/* @__PURE__ */ r(
|
|
1126
1126
|
"div",
|
|
@@ -1142,21 +1142,21 @@ function Pt() {
|
|
|
1142
1142
|
/* @__PURE__ */ r(Vr, {})
|
|
1143
1143
|
] });
|
|
1144
1144
|
}
|
|
1145
|
-
function
|
|
1145
|
+
function Ht({ className: e }) {
|
|
1146
1146
|
return /* @__PURE__ */ r(wr, { className: p("size-4 animate-spin", e) });
|
|
1147
1147
|
}
|
|
1148
1148
|
function to() {
|
|
1149
1149
|
const {
|
|
1150
1150
|
messagesState: { isInitialFetchLoading: e }
|
|
1151
|
-
} = j(), { isSmallScreen: o } =
|
|
1151
|
+
} = j(), { isSmallScreen: o } = H(), { activeMode: t, Component: n } = mt();
|
|
1152
1152
|
return {
|
|
1153
1153
|
isCanvasOpen: !e && !o && !!t && !!n
|
|
1154
1154
|
};
|
|
1155
1155
|
}
|
|
1156
1156
|
function ro() {
|
|
1157
|
-
const e = ne(), { activeMode: o, Component: t } = mt(), { sendMessage: n } = j(), { createStateCheckpoint: s } =
|
|
1157
|
+
const e = ne(), { activeMode: o, Component: t } = mt(), { sendMessage: n } = j(), { createStateCheckpoint: s } = L(), [a, i] = T(!1), l = async (d) => {
|
|
1158
1158
|
try {
|
|
1159
|
-
i(!0), await n(
|
|
1159
|
+
i(!0), await n(d);
|
|
1160
1160
|
} catch (h) {
|
|
1161
1161
|
console.error(h);
|
|
1162
1162
|
} finally {
|
|
@@ -1169,16 +1169,16 @@ function ro() {
|
|
|
1169
1169
|
...e,
|
|
1170
1170
|
mode: o,
|
|
1171
1171
|
createStateCheckpoint: s,
|
|
1172
|
-
sendMessage:
|
|
1172
|
+
sendMessage: l,
|
|
1173
1173
|
isSendingMessage: a
|
|
1174
1174
|
}
|
|
1175
1175
|
);
|
|
1176
1176
|
}
|
|
1177
|
-
const
|
|
1177
|
+
const P = U.forwardRef(
|
|
1178
1178
|
(e, o) => {
|
|
1179
1179
|
var t, n, s;
|
|
1180
1180
|
return /* @__PURE__ */ r(
|
|
1181
|
-
|
|
1181
|
+
u,
|
|
1182
1182
|
{
|
|
1183
1183
|
...e,
|
|
1184
1184
|
ref: o,
|
|
@@ -1192,7 +1192,7 @@ const O = q.forwardRef(
|
|
|
1192
1192
|
);
|
|
1193
1193
|
}
|
|
1194
1194
|
);
|
|
1195
|
-
|
|
1195
|
+
P.displayName = "MotionDiv__VerticalReveal";
|
|
1196
1196
|
const oo = [
|
|
1197
1197
|
{
|
|
1198
1198
|
label: "Terrible",
|
|
@@ -1221,22 +1221,22 @@ const oo = [
|
|
|
1221
1221
|
}
|
|
1222
1222
|
];
|
|
1223
1223
|
function no() {
|
|
1224
|
-
const { isSmallScreen: e } =
|
|
1224
|
+
const { isSmallScreen: e } = H(), {
|
|
1225
1225
|
submitCsat: o,
|
|
1226
1226
|
isCsatRequested: t,
|
|
1227
1227
|
isCsatSubmitted: n,
|
|
1228
1228
|
submittedScore: s,
|
|
1229
1229
|
submittedFeedback: a
|
|
1230
|
-
} = gt(), [i,
|
|
1231
|
-
|
|
1232
|
-
},
|
|
1230
|
+
} = gt(), [i, l] = T(null), [d, h] = T(null), y = (m) => {
|
|
1231
|
+
l((z) => z === m ? null : m);
|
|
1232
|
+
}, v = () => {
|
|
1233
1233
|
i && o({
|
|
1234
1234
|
score: i,
|
|
1235
|
-
feedback:
|
|
1235
|
+
feedback: d || void 0
|
|
1236
1236
|
});
|
|
1237
1237
|
};
|
|
1238
|
-
return !t && !n ? null : /* @__PURE__ */
|
|
1239
|
-
/* @__PURE__ */ r(_, { mode: "wait", children: t && !i ? /* @__PURE__ */ r(
|
|
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 }),
|
|
1240
1240
|
/* @__PURE__ */ r(
|
|
1241
1241
|
"div",
|
|
1242
1242
|
{
|
|
@@ -1246,7 +1246,7 @@ function no() {
|
|
|
1246
1246
|
n && "gap-0 justify-center"
|
|
1247
1247
|
),
|
|
1248
1248
|
children: oo.map((m) => /* @__PURE__ */ r(
|
|
1249
|
-
|
|
1249
|
+
C,
|
|
1250
1250
|
{
|
|
1251
1251
|
variant: m.value === i ? "secondary" : "ghost",
|
|
1252
1252
|
size: "selfless",
|
|
@@ -1260,14 +1260,14 @@ function no() {
|
|
|
1260
1260
|
n && m.value !== s && "opacity-0 size-0",
|
|
1261
1261
|
n && m.value === s && "opacity-100 size-fit text-4xl"
|
|
1262
1262
|
),
|
|
1263
|
-
onClick: t ? () =>
|
|
1263
|
+
onClick: t ? () => y(m.value) : void 0,
|
|
1264
1264
|
children: m.emoji
|
|
1265
1265
|
},
|
|
1266
1266
|
m.value
|
|
1267
1267
|
))
|
|
1268
1268
|
}
|
|
1269
1269
|
),
|
|
1270
|
-
/* @__PURE__ */ r(_, { mode: "wait", children: (i || s) && /* @__PURE__ */ r(
|
|
1270
|
+
/* @__PURE__ */ r(_, { mode: "wait", children: (i || s) && /* @__PURE__ */ r(P, { children: /* @__PURE__ */ c("div", { className: "pb-2 px-2 flex items-end", children: [
|
|
1271
1271
|
/* @__PURE__ */ r(
|
|
1272
1272
|
"textarea",
|
|
1273
1273
|
{
|
|
@@ -1282,17 +1282,17 @@ function no() {
|
|
|
1282
1282
|
e ? "text-[16px]" : "text-sm",
|
|
1283
1283
|
n && "text-center"
|
|
1284
1284
|
),
|
|
1285
|
-
value: n ? a || "" :
|
|
1285
|
+
value: n ? a || "" : d || "",
|
|
1286
1286
|
onChange: t ? (m) => h(m.target.value) : void 0,
|
|
1287
1287
|
readOnly: n,
|
|
1288
1288
|
placeholder: t ? "Tell us more... (optional)" : void 0
|
|
1289
1289
|
}
|
|
1290
1290
|
),
|
|
1291
1291
|
/* @__PURE__ */ r(
|
|
1292
|
-
|
|
1292
|
+
C,
|
|
1293
1293
|
{
|
|
1294
1294
|
size: "fit",
|
|
1295
|
-
onClick:
|
|
1295
|
+
onClick: v,
|
|
1296
1296
|
disabled: !i,
|
|
1297
1297
|
className: p(
|
|
1298
1298
|
"transition-all overflow-hidden",
|
|
@@ -1306,8 +1306,8 @@ function no() {
|
|
|
1306
1306
|
/* @__PURE__ */ r("div", { className: p("h-0 transition-[height]", n && "h-4") })
|
|
1307
1307
|
] });
|
|
1308
1308
|
}
|
|
1309
|
-
function
|
|
1310
|
-
const { dir: e } = ve(), o =
|
|
1309
|
+
function X() {
|
|
1310
|
+
const { dir: e } = ve(), o = b();
|
|
1311
1311
|
return ht(() => {
|
|
1312
1312
|
const t = Tr(o.language) ? o.language : "en";
|
|
1313
1313
|
return {
|
|
@@ -1328,7 +1328,7 @@ function Se({
|
|
|
1328
1328
|
a && n({ content: a });
|
|
1329
1329
|
};
|
|
1330
1330
|
return /* @__PURE__ */ r(
|
|
1331
|
-
|
|
1331
|
+
C,
|
|
1332
1332
|
{
|
|
1333
1333
|
...g("chat/suggested_reply_btn"),
|
|
1334
1334
|
size: "sm",
|
|
@@ -1340,7 +1340,7 @@ function Se({
|
|
|
1340
1340
|
);
|
|
1341
1341
|
}
|
|
1342
1342
|
function so() {
|
|
1343
|
-
const { t: e } =
|
|
1343
|
+
const { t: e } = X(), o = [e("i_need_more_help"), e("this_was_helpful")];
|
|
1344
1344
|
return /* @__PURE__ */ r(
|
|
1345
1345
|
"div",
|
|
1346
1346
|
{
|
|
@@ -1358,8 +1358,8 @@ function so() {
|
|
|
1358
1358
|
);
|
|
1359
1359
|
}
|
|
1360
1360
|
function at() {
|
|
1361
|
-
const { sessionState: e } =
|
|
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(
|
|
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}`)) });
|
|
1363
1363
|
}
|
|
1364
1364
|
function io({
|
|
1365
1365
|
file: { status: e, file: o, error: t },
|
|
@@ -1370,8 +1370,8 @@ function io({
|
|
|
1370
1370
|
);
|
|
1371
1371
|
re(() => {
|
|
1372
1372
|
if (!o.type.startsWith("image/")) return;
|
|
1373
|
-
const
|
|
1374
|
-
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();
|
|
1375
1375
|
}, [o]);
|
|
1376
1376
|
const i = () => {
|
|
1377
1377
|
switch (e) {
|
|
@@ -1382,26 +1382,26 @@ function io({
|
|
|
1382
1382
|
default:
|
|
1383
1383
|
return null;
|
|
1384
1384
|
}
|
|
1385
|
-
},
|
|
1386
|
-
const
|
|
1387
|
-
return
|
|
1385
|
+
}, l = () => {
|
|
1386
|
+
const d = o.type.split("/")[0];
|
|
1387
|
+
return d === "image" && s ? /* @__PURE__ */ r(
|
|
1388
1388
|
"img",
|
|
1389
1389
|
{
|
|
1390
1390
|
src: typeof s == "string" ? s : "",
|
|
1391
1391
|
className: "object-cover bg-secondary size-full",
|
|
1392
1392
|
alt: o.name
|
|
1393
1393
|
}
|
|
1394
|
-
) :
|
|
1394
|
+
) : d === "audio" ? /* @__PURE__ */ r(yr, {}) : d === "video" ? /* @__PURE__ */ r(kr, {}) : /* @__PURE__ */ r(Cr, {});
|
|
1395
1395
|
};
|
|
1396
1396
|
return /* @__PURE__ */ r(
|
|
1397
1397
|
J,
|
|
1398
1398
|
{
|
|
1399
1399
|
side: "bottom",
|
|
1400
|
-
content: e === "error" ? /* @__PURE__ */
|
|
1400
|
+
content: e === "error" ? /* @__PURE__ */ c("span", { className: "text-destructive", children: [
|
|
1401
1401
|
"Failed to upload: ",
|
|
1402
1402
|
t
|
|
1403
1403
|
] }) : o.name,
|
|
1404
|
-
children: /* @__PURE__ */
|
|
1404
|
+
children: /* @__PURE__ */ c(
|
|
1405
1405
|
"div",
|
|
1406
1406
|
{
|
|
1407
1407
|
className: p(
|
|
@@ -1425,7 +1425,7 @@ function io({
|
|
|
1425
1425
|
children: /* @__PURE__ */ r(xe, { className: "size-4 text-primary-foreground" })
|
|
1426
1426
|
}
|
|
1427
1427
|
),
|
|
1428
|
-
/* @__PURE__ */ r(
|
|
1428
|
+
/* @__PURE__ */ r(l, {})
|
|
1429
1429
|
]
|
|
1430
1430
|
}
|
|
1431
1431
|
)
|
|
@@ -1434,45 +1434,45 @@ function io({
|
|
|
1434
1434
|
}
|
|
1435
1435
|
function ao() {
|
|
1436
1436
|
var E;
|
|
1437
|
-
const { isSmallScreen: e } =
|
|
1438
|
-
allFiles:
|
|
1439
|
-
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,
|
|
1440
1440
|
handleCancelUpload: h,
|
|
1441
|
-
appendFiles:
|
|
1442
|
-
isUploading:
|
|
1441
|
+
appendFiles: y,
|
|
1442
|
+
isUploading: v,
|
|
1443
1443
|
successFiles: m
|
|
1444
|
-
} =
|
|
1445
|
-
|
|
1446
|
-
}, I = !a.trim() && m.length === 0,
|
|
1447
|
-
if (
|
|
1448
|
-
|
|
1449
|
-
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();
|
|
1450
1450
|
t({
|
|
1451
|
-
content:
|
|
1451
|
+
content: f,
|
|
1452
1452
|
attachments: m.flatMap(
|
|
1453
|
-
(
|
|
1453
|
+
(N) => N.fileUrl ? [
|
|
1454
1454
|
{
|
|
1455
|
-
url:
|
|
1456
|
-
type:
|
|
1457
|
-
name:
|
|
1458
|
-
id:
|
|
1459
|
-
size:
|
|
1455
|
+
url: N.fileUrl,
|
|
1456
|
+
type: N.file.type,
|
|
1457
|
+
name: N.file.name,
|
|
1458
|
+
id: N.id,
|
|
1459
|
+
size: N.file.size
|
|
1460
1460
|
}
|
|
1461
1461
|
] : []
|
|
1462
1462
|
)
|
|
1463
|
-
}), i(""),
|
|
1463
|
+
}), i(""), d();
|
|
1464
1464
|
}, {
|
|
1465
1465
|
getRootProps: M,
|
|
1466
|
-
getInputProps:
|
|
1466
|
+
getInputProps: O,
|
|
1467
1467
|
open: F
|
|
1468
1468
|
} = Dr({
|
|
1469
|
-
onDrop:
|
|
1469
|
+
onDrop: k,
|
|
1470
1470
|
noClick: !0,
|
|
1471
1471
|
onDropRejected() {
|
|
1472
1472
|
console.error("unsupported file type, or the file is too large");
|
|
1473
1473
|
},
|
|
1474
1474
|
maxSize: 5 * 1024 * 1024,
|
|
1475
|
-
accept:
|
|
1475
|
+
accept: z ? {
|
|
1476
1476
|
"text/*": [".txt"],
|
|
1477
1477
|
"image/*": [".png", ".jpg", ".jpeg", ".gif"],
|
|
1478
1478
|
"application/pdf": [".pdf"]
|
|
@@ -1482,19 +1482,19 @@ function ao() {
|
|
|
1482
1482
|
"image/gif": [".gif"],
|
|
1483
1483
|
"image/webp": [".webp"]
|
|
1484
1484
|
}
|
|
1485
|
-
}), W = (
|
|
1486
|
-
const
|
|
1487
|
-
|
|
1485
|
+
}), W = (f) => {
|
|
1486
|
+
const N = f.clipboardData;
|
|
1487
|
+
N && N.files.length > 0 && k(Array.from(N.files));
|
|
1488
1488
|
};
|
|
1489
|
-
return /* @__PURE__ */
|
|
1489
|
+
return /* @__PURE__ */ c(
|
|
1490
1490
|
"div",
|
|
1491
1491
|
{
|
|
1492
1492
|
...g("chat/input_box/root"),
|
|
1493
1493
|
className: "p-2 relative space-y-1",
|
|
1494
1494
|
...M(),
|
|
1495
1495
|
children: [
|
|
1496
|
-
/* @__PURE__ */ r("input", { ...
|
|
1497
|
-
/* @__PURE__ */
|
|
1496
|
+
/* @__PURE__ */ r("input", { ...O() }),
|
|
1497
|
+
/* @__PURE__ */ c(
|
|
1498
1498
|
"div",
|
|
1499
1499
|
{
|
|
1500
1500
|
...g("chat/input_box/inner_root"),
|
|
@@ -1506,24 +1506,24 @@ function ao() {
|
|
|
1506
1506
|
"hover:border-primary focus-within:border-primary"
|
|
1507
1507
|
),
|
|
1508
1508
|
children: [
|
|
1509
|
-
/* @__PURE__ */
|
|
1509
|
+
/* @__PURE__ */ c(
|
|
1510
1510
|
"div",
|
|
1511
1511
|
{
|
|
1512
1512
|
...g("chat/input_box/textarea_and_attachments_container"),
|
|
1513
1513
|
className: "flex flex-col gap-2",
|
|
1514
1514
|
children: [
|
|
1515
|
-
|
|
1515
|
+
l.length > 0 && /* @__PURE__ */ r(
|
|
1516
1516
|
"div",
|
|
1517
1517
|
{
|
|
1518
1518
|
...g("chat/input_box/attachments_container"),
|
|
1519
1519
|
className: "flex items-center gap-1",
|
|
1520
|
-
children: /* @__PURE__ */ r(_, { mode: "popLayout", children:
|
|
1520
|
+
children: /* @__PURE__ */ r(_, { mode: "popLayout", children: l.map((f) => /* @__PURE__ */ r(u, { snapExit: !0, children: /* @__PURE__ */ r(
|
|
1521
1521
|
io,
|
|
1522
1522
|
{
|
|
1523
|
-
onCancel: () => h(
|
|
1524
|
-
file:
|
|
1523
|
+
onCancel: () => h(f.id),
|
|
1524
|
+
file: f
|
|
1525
1525
|
}
|
|
1526
|
-
) },
|
|
1526
|
+
) }, f.id)) })
|
|
1527
1527
|
}
|
|
1528
1528
|
),
|
|
1529
1529
|
/* @__PURE__ */ r(
|
|
@@ -1540,15 +1540,15 @@ function ao() {
|
|
|
1540
1540
|
// INPUT_CONTAINER_B_RADIUS,
|
|
1541
1541
|
"max-h-16 [field-sizing:content]",
|
|
1542
1542
|
"w-full resize-none px-2",
|
|
1543
|
-
|
|
1543
|
+
l.length === 0 && "pt-1",
|
|
1544
1544
|
"bg-transparent outline-none",
|
|
1545
1545
|
"placeholder:text-muted-foreground",
|
|
1546
1546
|
// 16px on mobiles prevents auto-zoom on the input when focused
|
|
1547
1547
|
e ? "text-[16px]" : "text-sm"
|
|
1548
1548
|
),
|
|
1549
|
-
onChange: (
|
|
1550
|
-
onKeyDown: async (
|
|
1551
|
-
|
|
1549
|
+
onChange: (f) => i(f.target.value),
|
|
1550
|
+
onKeyDown: async (f) => {
|
|
1551
|
+
f.key === "Enter" && !f.shiftKey && (f.preventDefault(), x());
|
|
1552
1552
|
},
|
|
1553
1553
|
placeholder: s("write_a_message_placeholder")
|
|
1554
1554
|
}
|
|
@@ -1556,7 +1556,7 @@ function ao() {
|
|
|
1556
1556
|
]
|
|
1557
1557
|
}
|
|
1558
1558
|
),
|
|
1559
|
-
/* @__PURE__ */
|
|
1559
|
+
/* @__PURE__ */ c("div", { className: "gap-2 flex justify-between", children: [
|
|
1560
1560
|
/* @__PURE__ */ r(
|
|
1561
1561
|
J,
|
|
1562
1562
|
{
|
|
@@ -1564,7 +1564,7 @@ function ao() {
|
|
|
1564
1564
|
align: "start",
|
|
1565
1565
|
content: "attach files, (maximum size 5mb)",
|
|
1566
1566
|
children: /* @__PURE__ */ r(
|
|
1567
|
-
|
|
1567
|
+
C,
|
|
1568
1568
|
{
|
|
1569
1569
|
onClick: F,
|
|
1570
1570
|
size: "fit",
|
|
@@ -1572,19 +1572,19 @@ function ao() {
|
|
|
1572
1572
|
className: p(
|
|
1573
1573
|
"rounded-full size-8 flex items-center justify-center p-0 overflow-hidden"
|
|
1574
1574
|
),
|
|
1575
|
-
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") })
|
|
1576
1576
|
}
|
|
1577
1577
|
)
|
|
1578
1578
|
}
|
|
1579
1579
|
),
|
|
1580
1580
|
/* @__PURE__ */ r(J, { content: "send message", side: "top", align: "end", children: /* @__PURE__ */ r(
|
|
1581
|
-
|
|
1581
|
+
C,
|
|
1582
1582
|
{
|
|
1583
1583
|
size: "fit",
|
|
1584
|
-
onClick:
|
|
1585
|
-
disabled:
|
|
1584
|
+
onClick: x,
|
|
1585
|
+
disabled: w || v || I,
|
|
1586
1586
|
className: "rounded-full size-8 flex items-center justify-center p-0",
|
|
1587
|
-
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") })
|
|
1588
1588
|
}
|
|
1589
1589
|
) })
|
|
1590
1590
|
] })
|
|
@@ -1596,16 +1596,16 @@ function ao() {
|
|
|
1596
1596
|
);
|
|
1597
1597
|
}
|
|
1598
1598
|
function lt() {
|
|
1599
|
-
const { widgetCtx: e } = R(), { router: o } =
|
|
1600
|
-
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") }) });
|
|
1601
1601
|
}
|
|
1602
1602
|
function lo() {
|
|
1603
|
-
const { t: e } =
|
|
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__ */
|
|
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
1605
|
/* @__PURE__ */ r(no, {}),
|
|
1606
|
-
/* @__PURE__ */ r(_, { mode: "wait", children: t && /* @__PURE__ */ r(
|
|
1607
|
-
] }, "csat") : /* @__PURE__ */
|
|
1608
|
-
/* @__PURE__ */
|
|
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: [
|
|
1609
1609
|
/* @__PURE__ */ r(ut, { className: "size-4 text-emerald-600" }),
|
|
1610
1610
|
/* @__PURE__ */ r("h2", { className: "text-sm font-medium", children: e("your_issue_has_been_resolved") })
|
|
1611
1611
|
] }),
|
|
@@ -1614,18 +1614,18 @@ function lo() {
|
|
|
1614
1614
|
}
|
|
1615
1615
|
function co() {
|
|
1616
1616
|
var i;
|
|
1617
|
-
const { initialQuestions: e, initialQuestionsPosition: o, thisWasHelpfulOrNot: t } =
|
|
1618
|
-
return /* @__PURE__ */ r("footer", { children: /* @__PURE__ */ r(_, { mode: "wait", children: n.session && !((i = n.session) != null && i.isOpened) ? /* @__PURE__ */
|
|
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
1619
|
/* @__PURE__ */ r(lo, {}),
|
|
1620
1620
|
/* @__PURE__ */ r(at, {})
|
|
1621
|
-
] }, "session-closed") : /* @__PURE__ */
|
|
1621
|
+
] }, "session-closed") : /* @__PURE__ */ c(P, { children: [
|
|
1622
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((
|
|
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(
|
|
1624
1624
|
Se,
|
|
1625
1625
|
{
|
|
1626
|
-
suggestion:
|
|
1626
|
+
suggestion: l
|
|
1627
1627
|
},
|
|
1628
|
-
`${
|
|
1628
|
+
`${l}-${d}`
|
|
1629
1629
|
)) }),
|
|
1630
1630
|
/* @__PURE__ */ r(ao, {}),
|
|
1631
1631
|
/* @__PURE__ */ r(at, {})
|
|
@@ -1673,16 +1673,16 @@ function po({
|
|
|
1673
1673
|
}
|
|
1674
1674
|
);
|
|
1675
1675
|
}
|
|
1676
|
-
function
|
|
1676
|
+
function Ot({
|
|
1677
1677
|
messages: e,
|
|
1678
1678
|
className: o,
|
|
1679
1679
|
containerClassName: t
|
|
1680
1680
|
}) {
|
|
1681
|
-
var i,
|
|
1682
|
-
const { timestamps: n } =
|
|
1681
|
+
var i, l;
|
|
1682
|
+
const { timestamps: n } = b();
|
|
1683
1683
|
if (!((i = n == null ? void 0 : n.perMessageGroup) != null && i.enabled))
|
|
1684
1684
|
return null;
|
|
1685
|
-
const s = (
|
|
1685
|
+
const s = (l = e[e.length - 1]) == null ? void 0 : l.timestamp;
|
|
1686
1686
|
if (!s) return null;
|
|
1687
1687
|
const a = (() => {
|
|
1688
1688
|
try {
|
|
@@ -1691,8 +1691,8 @@ function Ht({
|
|
|
1691
1691
|
minute: "2-digit",
|
|
1692
1692
|
hour12: !0
|
|
1693
1693
|
});
|
|
1694
|
-
} catch (
|
|
1695
|
-
return console.error(
|
|
1694
|
+
} catch (d) {
|
|
1695
|
+
return console.error(d), null;
|
|
1696
1696
|
}
|
|
1697
1697
|
})();
|
|
1698
1698
|
return a ? /* @__PURE__ */ r("div", { className: t, children: /* @__PURE__ */ r("span", { className: p("text-xs text-muted-foreground", o), children: a }) }) : null;
|
|
@@ -1702,7 +1702,7 @@ function le({
|
|
|
1702
1702
|
agent: o,
|
|
1703
1703
|
suggestedReplies: t
|
|
1704
1704
|
}) {
|
|
1705
|
-
return /* @__PURE__ */
|
|
1705
|
+
return /* @__PURE__ */ c(
|
|
1706
1706
|
"div",
|
|
1707
1707
|
{
|
|
1708
1708
|
...g("chat/agent_msg_group/root"),
|
|
@@ -1716,8 +1716,8 @@ function le({
|
|
|
1716
1716
|
className: "hidden"
|
|
1717
1717
|
}
|
|
1718
1718
|
) }),
|
|
1719
|
-
/* @__PURE__ */
|
|
1720
|
-
/* @__PURE__ */
|
|
1719
|
+
/* @__PURE__ */ c("div", { className: p("flex-1 flex flex-col gap-1"), children: [
|
|
1720
|
+
/* @__PURE__ */ c(
|
|
1721
1721
|
"div",
|
|
1722
1722
|
{
|
|
1723
1723
|
...g("chat/agent_msg_group/avatar_and_msgs/root"),
|
|
@@ -1730,7 +1730,7 @@ function le({
|
|
|
1730
1730
|
agent: o
|
|
1731
1731
|
}
|
|
1732
1732
|
) }),
|
|
1733
|
-
/* @__PURE__ */
|
|
1733
|
+
/* @__PURE__ */ c(
|
|
1734
1734
|
"div",
|
|
1735
1735
|
{
|
|
1736
1736
|
...g("chat/agent_msg_group/avatar_and_msgs/msgs"),
|
|
@@ -1746,7 +1746,7 @@ function le({
|
|
|
1746
1746
|
},
|
|
1747
1747
|
n.id
|
|
1748
1748
|
)),
|
|
1749
|
-
/* @__PURE__ */ r(
|
|
1749
|
+
/* @__PURE__ */ r(Ot, { messages: e })
|
|
1750
1750
|
]
|
|
1751
1751
|
}
|
|
1752
1752
|
)
|
|
@@ -1786,7 +1786,7 @@ function mo({
|
|
|
1786
1786
|
isAloneInGroup: n
|
|
1787
1787
|
}) {
|
|
1788
1788
|
var s;
|
|
1789
|
-
return /* @__PURE__ */
|
|
1789
|
+
return /* @__PURE__ */ c(
|
|
1790
1790
|
"div",
|
|
1791
1791
|
{
|
|
1792
1792
|
...g("chat/user_msg/root"),
|
|
@@ -1822,7 +1822,7 @@ function mo({
|
|
|
1822
1822
|
function go({
|
|
1823
1823
|
messages: e
|
|
1824
1824
|
}) {
|
|
1825
|
-
return /* @__PURE__ */
|
|
1825
|
+
return /* @__PURE__ */ c(
|
|
1826
1826
|
"div",
|
|
1827
1827
|
{
|
|
1828
1828
|
...g("chat/user_msg_group/root"),
|
|
@@ -1838,7 +1838,7 @@ function go({
|
|
|
1838
1838
|
},
|
|
1839
1839
|
o.id
|
|
1840
1840
|
)),
|
|
1841
|
-
/* @__PURE__ */ r(
|
|
1841
|
+
/* @__PURE__ */ r(Ot, { messages: e, containerClassName: "ms-auto" })
|
|
1842
1842
|
]
|
|
1843
1843
|
}
|
|
1844
1844
|
);
|
|
@@ -1847,10 +1847,10 @@ function wo(e) {
|
|
|
1847
1847
|
const o = [];
|
|
1848
1848
|
let t = null;
|
|
1849
1849
|
return e.forEach((n) => {
|
|
1850
|
-
var s, a, i,
|
|
1850
|
+
var s, a, i, l, d, h;
|
|
1851
1851
|
// Start a new group if the type changes
|
|
1852
1852
|
(((s = t == null ? void 0 : t[0]) == null ? void 0 : s.type) !== n.type || // Start a new group if the agent changes
|
|
1853
|
-
((a = t[0]) == null ? void 0 : a.type) === "AGENT" && n.type === "AGENT" && (((i = n.agent) == null ? void 0 : i.id) !== ((
|
|
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);
|
|
1854
1854
|
}), o;
|
|
1855
1855
|
}
|
|
1856
1856
|
function uo(e) {
|
|
@@ -1873,7 +1873,7 @@ function xo() {
|
|
|
1873
1873
|
initialQuestionsPosition: t,
|
|
1874
1874
|
initialQuestions: n,
|
|
1875
1875
|
bot: s
|
|
1876
|
-
} =
|
|
1876
|
+
} = b();
|
|
1877
1877
|
return /* @__PURE__ */ r(te, { children: e.length === 0 && o.length > 0 && /* @__PURE__ */ r(
|
|
1878
1878
|
le,
|
|
1879
1879
|
{
|
|
@@ -1894,7 +1894,7 @@ function xo() {
|
|
|
1894
1894
|
function bo() {
|
|
1895
1895
|
const {
|
|
1896
1896
|
messagesState: { messages: e }
|
|
1897
|
-
} = j(), { chatBannerItems: o } =
|
|
1897
|
+
} = j(), { chatBannerItems: o } = b();
|
|
1898
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(
|
|
1899
1899
|
({ message: t, persistent: n }, s) => e.length > 0 && !n ? null : /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(be, { children: t }) }, `${t}-${s}`)
|
|
1900
1900
|
) });
|
|
@@ -1902,7 +1902,7 @@ function bo() {
|
|
|
1902
1902
|
function yo() {
|
|
1903
1903
|
const {
|
|
1904
1904
|
messagesState: { messages: e }
|
|
1905
|
-
} = j(), o =
|
|
1905
|
+
} = j(), o = b(), {
|
|
1906
1906
|
advancedInitialMessages: t = [],
|
|
1907
1907
|
initialQuestions: n,
|
|
1908
1908
|
initialQuestionsPosition: s
|
|
@@ -1914,10 +1914,10 @@ function yo() {
|
|
|
1914
1914
|
le,
|
|
1915
1915
|
{
|
|
1916
1916
|
messages: a.map(
|
|
1917
|
-
(i,
|
|
1917
|
+
(i, l) => ({
|
|
1918
1918
|
component: "bot_message",
|
|
1919
1919
|
data: { message: i },
|
|
1920
|
-
id: `${
|
|
1920
|
+
id: `${l}-${i}`,
|
|
1921
1921
|
type: "AI",
|
|
1922
1922
|
timestamp: null
|
|
1923
1923
|
})
|
|
@@ -1935,63 +1935,69 @@ function ko() {
|
|
|
1935
1935
|
function Co() {
|
|
1936
1936
|
const {
|
|
1937
1937
|
messagesState: { messages: e }
|
|
1938
|
-
} = j(), { isAwaitingBotReply: o } = wt(), { componentStore: t } = R(), n =
|
|
1938
|
+
} = j(), { isAwaitingBotReply: o } = wt(), { componentStore: t } = R(), { bot: n, humanAgent: s } = b(), a = ht(
|
|
1939
1939
|
() => wo(e),
|
|
1940
1940
|
[e]
|
|
1941
|
-
),
|
|
1941
|
+
), i = t.getComponent(
|
|
1942
1942
|
"loading"
|
|
1943
|
-
),
|
|
1944
|
-
function
|
|
1943
|
+
), l = de(null);
|
|
1944
|
+
function d() {
|
|
1945
1945
|
setTimeout(() => {
|
|
1946
|
-
const
|
|
1947
|
-
|
|
1946
|
+
const h = l.current;
|
|
1947
|
+
h && (h.scrollTop = h.scrollHeight);
|
|
1948
1948
|
}, 0);
|
|
1949
1949
|
}
|
|
1950
1950
|
return re(() => {
|
|
1951
|
-
|
|
1952
|
-
}, [e]), /* @__PURE__ */
|
|
1951
|
+
d();
|
|
1952
|
+
}, [e]), /* @__PURE__ */ c(
|
|
1953
1953
|
"div",
|
|
1954
1954
|
{
|
|
1955
1955
|
...g("chat/msgs/root"),
|
|
1956
|
-
ref:
|
|
1956
|
+
ref: l,
|
|
1957
1957
|
className: "max-h-full scroll-smooth relative flex-1 py-2 px-4 flex flex-col gap-2 overflow-auto",
|
|
1958
1958
|
children: [
|
|
1959
1959
|
/* @__PURE__ */ r(bo, {}),
|
|
1960
1960
|
/* @__PURE__ */ r(xo, {}),
|
|
1961
1961
|
/* @__PURE__ */ r(yo, {}),
|
|
1962
|
-
|
|
1963
|
-
var
|
|
1964
|
-
const
|
|
1965
|
-
if (!
|
|
1966
|
-
if (uo(
|
|
1967
|
-
return /* @__PURE__ */ r(go, { messages:
|
|
1968
|
-
if (fo(
|
|
1969
|
-
const
|
|
1970
|
-
|
|
1971
|
-
const S = (u = l[0]) == null ? void 0 : u.agent;
|
|
1972
|
-
return /* @__PURE__ */ r(
|
|
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(
|
|
1973
1971
|
le,
|
|
1974
1972
|
{
|
|
1975
|
-
messages:
|
|
1976
|
-
agent:
|
|
1973
|
+
messages: h,
|
|
1974
|
+
agent: n ? { ...n, isAi: !0, id: null } : void 0
|
|
1977
1975
|
},
|
|
1978
|
-
|
|
1979
|
-
);
|
|
1976
|
+
m
|
|
1977
|
+
));
|
|
1980
1978
|
}
|
|
1981
|
-
if (vo(
|
|
1982
|
-
const
|
|
1979
|
+
if (vo(h)) {
|
|
1980
|
+
const x = (I = h[0]) == null ? void 0 : I.agent;
|
|
1983
1981
|
return /* @__PURE__ */ r(
|
|
1984
1982
|
le,
|
|
1985
1983
|
{
|
|
1986
|
-
messages:
|
|
1987
|
-
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
|
|
1988
1994
|
},
|
|
1989
|
-
|
|
1995
|
+
m
|
|
1990
1996
|
);
|
|
1991
1997
|
}
|
|
1992
1998
|
return null;
|
|
1993
1999
|
}),
|
|
1994
|
-
o &&
|
|
2000
|
+
o && i && /* @__PURE__ */ r(i, { agent: n }),
|
|
1995
2001
|
/* @__PURE__ */ r(ko, {}),
|
|
1996
2002
|
/* @__PURE__ */ r(ho, {})
|
|
1997
2003
|
]
|
|
@@ -2003,7 +2009,7 @@ function zo() {
|
|
|
2003
2009
|
messagesState: { isInitialFetchLoading: e }
|
|
2004
2010
|
} = j(), {
|
|
2005
2011
|
sessionState: { session: o }
|
|
2006
|
-
} =
|
|
2012
|
+
} = L(), { isCanvasOpen: t } = to(), { theme: n } = q();
|
|
2007
2013
|
ze({
|
|
2008
2014
|
width: t ? n.screens.chat.withCanvas.width : n.screens.chat.width,
|
|
2009
2015
|
height: t ? n.screens.chat.withCanvas.height : n.screens.chat.height
|
|
@@ -2024,22 +2030,22 @@ function zo() {
|
|
|
2024
2030
|
maxHeight: "100vh"
|
|
2025
2031
|
// Relative to the iframe
|
|
2026
2032
|
},
|
|
2027
|
-
children: /* @__PURE__ */
|
|
2028
|
-
/* @__PURE__ */ r(
|
|
2033
|
+
children: /* @__PURE__ */ c("div", { className: "size-full justify-between flex flex-col", children: [
|
|
2034
|
+
/* @__PURE__ */ r(At, {}),
|
|
2029
2035
|
/* @__PURE__ */ r(_, { mode: "wait", children: e ? /* @__PURE__ */ r(
|
|
2030
|
-
|
|
2036
|
+
u,
|
|
2031
2037
|
{
|
|
2032
2038
|
className: "flex flex-col items-center justify-center w-full flex-1",
|
|
2033
|
-
children: /* @__PURE__ */ r(
|
|
2039
|
+
children: /* @__PURE__ */ r(Ht, {})
|
|
2034
2040
|
},
|
|
2035
2041
|
"loading"
|
|
2036
|
-
) : /* @__PURE__ */
|
|
2037
|
-
|
|
2042
|
+
) : /* @__PURE__ */ c(
|
|
2043
|
+
u,
|
|
2038
2044
|
{
|
|
2039
2045
|
className: "flex items-start h-full flex-1 overflow-auto",
|
|
2040
2046
|
snapExit: !0,
|
|
2041
2047
|
children: [
|
|
2042
|
-
/* @__PURE__ */
|
|
2048
|
+
/* @__PURE__ */ c(
|
|
2043
2049
|
"div",
|
|
2044
2050
|
{
|
|
2045
2051
|
...g("chat/main/root"),
|
|
@@ -2113,7 +2119,7 @@ function So({ className: e }) {
|
|
|
2113
2119
|
);
|
|
2114
2120
|
}
|
|
2115
2121
|
function Ft({ className: e }) {
|
|
2116
|
-
const { token: o } =
|
|
2122
|
+
const { token: o } = b();
|
|
2117
2123
|
return /* @__PURE__ */ r(
|
|
2118
2124
|
"div",
|
|
2119
2125
|
{
|
|
@@ -2121,7 +2127,7 @@ function Ft({ className: e }) {
|
|
|
2121
2127
|
"flex items-center justify-center gap-2 p-2 pt-0",
|
|
2122
2128
|
e
|
|
2123
2129
|
),
|
|
2124
|
-
children: /* @__PURE__ */ r(
|
|
2130
|
+
children: /* @__PURE__ */ r($, { children: /* @__PURE__ */ c(
|
|
2125
2131
|
"a",
|
|
2126
2132
|
{
|
|
2127
2133
|
href: `https://open.cx/?ref=${o}`,
|
|
@@ -2135,7 +2141,7 @@ function Ft({ className: e }) {
|
|
|
2135
2141
|
children: [
|
|
2136
2142
|
/* @__PURE__ */ r("span", { children: "Powered by" }),
|
|
2137
2143
|
/* @__PURE__ */ r("span", { children: " " }),
|
|
2138
|
-
/* @__PURE__ */
|
|
2144
|
+
/* @__PURE__ */ c("span", { className: "flex items-center gap-[1px]", children: [
|
|
2139
2145
|
/* @__PURE__ */ r("span", { children: /* @__PURE__ */ r(So, { className: "size-3 inline-block" }) }),
|
|
2140
2146
|
/* @__PURE__ */ r("span", { className: "font-semibold", children: "open" })
|
|
2141
2147
|
] })
|
|
@@ -2152,9 +2158,9 @@ function ct({
|
|
|
2152
2158
|
session: e,
|
|
2153
2159
|
className: o
|
|
2154
2160
|
}) {
|
|
2155
|
-
const { bot: t } =
|
|
2156
|
-
return /* @__PURE__ */
|
|
2157
|
-
|
|
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,
|
|
2158
2164
|
{
|
|
2159
2165
|
variant: "ghost",
|
|
2160
2166
|
size: "lg",
|
|
@@ -2162,16 +2168,16 @@ function ct({
|
|
|
2162
2168
|
"rounded-full p-2 pe-4 flex text-start justify-between w-full whitespace-normal",
|
|
2163
2169
|
o
|
|
2164
2170
|
),
|
|
2165
|
-
onClick: () =>
|
|
2171
|
+
onClick: () => s(e.id),
|
|
2166
2172
|
children: [
|
|
2167
|
-
/* @__PURE__ */
|
|
2168
|
-
/* @__PURE__ */ r(_, { mode: "wait", children: /* @__PURE__ */ r(
|
|
2169
|
-
/* @__PURE__ */ r(ke, { src:
|
|
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" }),
|
|
2170
2176
|
/* @__PURE__ */ r(Ce, { children: /* @__PURE__ */ r(zr, { className: "size-4" }) })
|
|
2171
2177
|
] }) }) }),
|
|
2172
|
-
/* @__PURE__ */
|
|
2173
|
-
/* @__PURE__ */ r(_, { mode: "wait", children: /* @__PURE__ */ r(
|
|
2174
|
-
/* @__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(
|
|
2175
2181
|
Mt,
|
|
2176
2182
|
{
|
|
2177
2183
|
remarkPlugins: [vt],
|
|
@@ -2179,7 +2185,7 @@ function ct({
|
|
|
2179
2185
|
className: "line-clamp-1 overflow-hidden text-ellipsis text-xs text-muted-foreground",
|
|
2180
2186
|
children: e.lastMessage
|
|
2181
2187
|
}
|
|
2182
|
-
) }, 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") })
|
|
2183
2189
|
] })
|
|
2184
2190
|
] }),
|
|
2185
2191
|
/* @__PURE__ */ r(Nr, { className: "size-4 text-muted-foreground shrink-0 rtl:-scale-100" })
|
|
@@ -2188,51 +2194,51 @@ function ct({
|
|
|
2188
2194
|
);
|
|
2189
2195
|
}
|
|
2190
2196
|
function Io() {
|
|
2191
|
-
const { t: e } =
|
|
2197
|
+
const { t: e } = X(), { toChatScreen: o } = A(), {
|
|
2192
2198
|
sessionsState: { data: t, isInitialFetchLoading: n },
|
|
2193
2199
|
openSessions: s,
|
|
2194
2200
|
closedSessions: a,
|
|
2195
2201
|
canCreateNewSession: i
|
|
2196
|
-
} =
|
|
2202
|
+
} = L();
|
|
2197
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(
|
|
2198
|
-
|
|
2204
|
+
u,
|
|
2199
2205
|
{
|
|
2200
2206
|
className: "flex-1 flex items-center justify-center",
|
|
2201
|
-
children: /* @__PURE__ */ r(
|
|
2207
|
+
children: /* @__PURE__ */ r(Ht, {})
|
|
2202
2208
|
},
|
|
2203
2209
|
"loading"
|
|
2204
2210
|
) : /* @__PURE__ */ r(
|
|
2205
|
-
|
|
2211
|
+
u,
|
|
2206
2212
|
{
|
|
2207
2213
|
className: "flex-1 flex flex-col gap-2 relative",
|
|
2208
|
-
children: t.length ? /* @__PURE__ */
|
|
2209
|
-
/* @__PURE__ */
|
|
2214
|
+
children: t.length ? /* @__PURE__ */ c(te, { children: [
|
|
2215
|
+
/* @__PURE__ */ c(_, { children: [
|
|
2210
2216
|
s.length > 0 && /* @__PURE__ */ r(
|
|
2211
|
-
|
|
2217
|
+
u,
|
|
2212
2218
|
{
|
|
2213
2219
|
fadeIn: "up",
|
|
2214
2220
|
delay: 0.2,
|
|
2215
2221
|
className: "space-y-2",
|
|
2216
2222
|
snapExit: !0,
|
|
2217
|
-
children: s.map((
|
|
2223
|
+
children: s.map((l) => /* @__PURE__ */ r(ct, { session: l }, l.id))
|
|
2218
2224
|
},
|
|
2219
2225
|
"open-sessions"
|
|
2220
2226
|
),
|
|
2221
|
-
a.length > 0 && /* @__PURE__ */
|
|
2222
|
-
|
|
2227
|
+
a.length > 0 && /* @__PURE__ */ c(
|
|
2228
|
+
u,
|
|
2223
2229
|
{
|
|
2224
2230
|
className: "space-y-2",
|
|
2225
2231
|
delay: 0.2,
|
|
2226
2232
|
snapExit: !0,
|
|
2227
2233
|
children: [
|
|
2228
2234
|
/* @__PURE__ */ r(_o, { children: e("closed_conversations") }),
|
|
2229
|
-
a.map((
|
|
2235
|
+
a.map((l) => /* @__PURE__ */ r(
|
|
2230
2236
|
ct,
|
|
2231
2237
|
{
|
|
2232
|
-
session:
|
|
2238
|
+
session: l,
|
|
2233
2239
|
className: "opacity-50 hover:opacity-100"
|
|
2234
2240
|
},
|
|
2235
|
-
|
|
2241
|
+
l.id
|
|
2236
2242
|
))
|
|
2237
2243
|
]
|
|
2238
2244
|
},
|
|
@@ -2240,7 +2246,7 @@ function Io() {
|
|
|
2240
2246
|
)
|
|
2241
2247
|
] }),
|
|
2242
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(
|
|
2243
|
-
|
|
2249
|
+
C,
|
|
2244
2250
|
{
|
|
2245
2251
|
...g("sessions/new_conversation_btn"),
|
|
2246
2252
|
size: "lg",
|
|
@@ -2250,10 +2256,10 @@ function Io() {
|
|
|
2250
2256
|
},
|
|
2251
2257
|
e("new_conversation")
|
|
2252
2258
|
) })
|
|
2253
|
-
] }) : /* @__PURE__ */
|
|
2259
|
+
] }) : /* @__PURE__ */ c("div", { className: "flex-1 flex flex-col gap-2 items-center", children: [
|
|
2254
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") }) }),
|
|
2255
2261
|
/* @__PURE__ */ ot(
|
|
2256
|
-
|
|
2262
|
+
C,
|
|
2257
2263
|
{
|
|
2258
2264
|
...g("sessions/new_conversation_btn"),
|
|
2259
2265
|
size: "lg",
|
|
@@ -2269,7 +2275,7 @@ function Io() {
|
|
|
2269
2275
|
) }) });
|
|
2270
2276
|
}
|
|
2271
2277
|
function To() {
|
|
2272
|
-
const { theme: e } =
|
|
2278
|
+
const { theme: e } = q();
|
|
2273
2279
|
return ze({
|
|
2274
2280
|
width: e.screens.sessions.width,
|
|
2275
2281
|
height: e.screens.sessions.height
|
|
@@ -2288,8 +2294,8 @@ function To() {
|
|
|
2288
2294
|
maxHeight: "100vh"
|
|
2289
2295
|
// Relative to the iframe
|
|
2290
2296
|
},
|
|
2291
|
-
children: /* @__PURE__ */
|
|
2292
|
-
/* @__PURE__ */ r(
|
|
2297
|
+
children: /* @__PURE__ */ c("div", { className: "size-full flex flex-col", children: [
|
|
2298
|
+
/* @__PURE__ */ r(At, {}),
|
|
2293
2299
|
/* @__PURE__ */ r(Io, {}),
|
|
2294
2300
|
/* @__PURE__ */ r(Ft, {})
|
|
2295
2301
|
] })
|
|
@@ -2298,8 +2304,8 @@ function To() {
|
|
|
2298
2304
|
}
|
|
2299
2305
|
const ae = G.forwardRef(
|
|
2300
2306
|
({ className: e, type: o, ...t }, n) => {
|
|
2301
|
-
const { isSmallScreen: s } =
|
|
2302
|
-
return /* @__PURE__ */ r(
|
|
2307
|
+
const { isSmallScreen: s } = H();
|
|
2308
|
+
return /* @__PURE__ */ r($, { ref: n, children: /* @__PURE__ */ r(
|
|
2303
2309
|
"input",
|
|
2304
2310
|
{
|
|
2305
2311
|
type: o,
|
|
@@ -2318,7 +2324,7 @@ const ae = G.forwardRef(
|
|
|
2318
2324
|
);
|
|
2319
2325
|
ae.displayName = "Input";
|
|
2320
2326
|
function Mo() {
|
|
2321
|
-
const { contentIframeRef: e } = R(), { inline: o } =
|
|
2327
|
+
const { contentIframeRef: e } = R(), { inline: o } = b(), t = de(null);
|
|
2322
2328
|
return re(() => {
|
|
2323
2329
|
const n = e == null ? void 0 : e.current;
|
|
2324
2330
|
if (n && t.current) {
|
|
@@ -2326,10 +2332,10 @@ function Mo() {
|
|
|
2326
2332
|
let a;
|
|
2327
2333
|
const i = new ResizeObserver(() => {
|
|
2328
2334
|
a = requestAnimationFrame(() => {
|
|
2329
|
-
const
|
|
2335
|
+
const l = s.offsetHeight;
|
|
2330
2336
|
n.style.setProperty(
|
|
2331
2337
|
"--opencx-widget-height",
|
|
2332
|
-
o ? "100%" : `${
|
|
2338
|
+
o ? "100%" : `${l.toFixed(1)}px`
|
|
2333
2339
|
);
|
|
2334
2340
|
});
|
|
2335
2341
|
});
|
|
@@ -2344,30 +2350,30 @@ const Do = me.object({
|
|
|
2344
2350
|
email: me.string().email()
|
|
2345
2351
|
});
|
|
2346
2352
|
function Ro() {
|
|
2347
|
-
var
|
|
2353
|
+
var x, M, O, F, W, E, f, N;
|
|
2348
2354
|
const {
|
|
2349
2355
|
widgetCtx: { org: e }
|
|
2350
|
-
} = R(), { setIsOpen: o } = K(), { createUnverifiedContact: t } =
|
|
2356
|
+
} = R(), { setIsOpen: o } = K(), { createUnverifiedContact: t } = qt(), { isSmallScreen: n } = H(), s = b(), { theme: a } = q(), { t: i } = X(), { observedElementRef: l } = Mo();
|
|
2351
2357
|
ze({
|
|
2352
2358
|
height: void 0,
|
|
2353
2359
|
width: a.screens.welcome.width
|
|
2354
2360
|
});
|
|
2355
|
-
const [
|
|
2356
|
-
(
|
|
2357
|
-
), [
|
|
2358
|
-
async (
|
|
2359
|
-
|
|
2360
|
-
const
|
|
2361
|
-
|
|
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(
|
|
2362
2368
|
{
|
|
2363
|
-
email:
|
|
2364
|
-
non_verified_name:
|
|
2369
|
+
email: B.data.email,
|
|
2370
|
+
non_verified_name: B.data.name
|
|
2365
2371
|
},
|
|
2366
2372
|
// Only pass extra data if there is any
|
|
2367
|
-
Object.values(
|
|
2373
|
+
Object.values(z).filter(Boolean).length ? z : void 0
|
|
2368
2374
|
);
|
|
2369
2375
|
},
|
|
2370
|
-
[
|
|
2376
|
+
[d, y, z]
|
|
2371
2377
|
);
|
|
2372
2378
|
return /* @__PURE__ */ r(
|
|
2373
2379
|
"div",
|
|
@@ -2384,17 +2390,17 @@ function Ro() {
|
|
|
2384
2390
|
// Relative to the iframe
|
|
2385
2391
|
overflowY: "auto"
|
|
2386
2392
|
},
|
|
2387
|
-
children: /* @__PURE__ */
|
|
2393
|
+
children: /* @__PURE__ */ c(
|
|
2388
2394
|
"div",
|
|
2389
2395
|
{
|
|
2390
|
-
ref:
|
|
2396
|
+
ref: l,
|
|
2391
2397
|
className: p(
|
|
2392
2398
|
"flex flex-col",
|
|
2393
2399
|
n && "h-full",
|
|
2394
2400
|
"bg-[radial-gradient(ellipse_at_top_left,hsl(var(--opencx-primary)),transparent),radial-gradient(ellipse_at_top_right,hsl(var(--opencx-primary)),transparent)]"
|
|
2395
2401
|
),
|
|
2396
2402
|
children: [
|
|
2397
|
-
/* @__PURE__ */
|
|
2403
|
+
/* @__PURE__ */ c(
|
|
2398
2404
|
"div",
|
|
2399
2405
|
{
|
|
2400
2406
|
className: p(
|
|
@@ -2402,8 +2408,8 @@ function Ro() {
|
|
|
2402
2408
|
"text-primary-foreground"
|
|
2403
2409
|
),
|
|
2404
2410
|
children: [
|
|
2405
|
-
n && /* @__PURE__ */ r(
|
|
2406
|
-
/* @__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(
|
|
2407
2413
|
"img",
|
|
2408
2414
|
{
|
|
2409
2415
|
src: (F = s.assets) == null ? void 0 : F.organizationLogo,
|
|
@@ -2411,14 +2417,14 @@ function Ro() {
|
|
|
2411
2417
|
className: "h-8 w-auto object-contain"
|
|
2412
2418
|
}
|
|
2413
2419
|
) : /* @__PURE__ */ r("h2", { className: "font-bold text-sm", children: e.name }) }),
|
|
2414
|
-
/* @__PURE__ */
|
|
2420
|
+
/* @__PURE__ */ c("div", { className: "space-y-2", children: [
|
|
2415
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") }),
|
|
2416
|
-
/* @__PURE__ */ r("p", { className: "text-sm", children: ((
|
|
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") })
|
|
2417
2423
|
] })
|
|
2418
2424
|
]
|
|
2419
2425
|
}
|
|
2420
2426
|
),
|
|
2421
|
-
/* @__PURE__ */
|
|
2427
|
+
/* @__PURE__ */ c(
|
|
2422
2428
|
"div",
|
|
2423
2429
|
{
|
|
2424
2430
|
className: p(
|
|
@@ -2428,12 +2434,12 @@ function Ro() {
|
|
|
2428
2434
|
"rounded-3xl"
|
|
2429
2435
|
),
|
|
2430
2436
|
children: [
|
|
2431
|
-
/* @__PURE__ */
|
|
2437
|
+
/* @__PURE__ */ c("form", { onSubmit: I, className: "space-y-2", children: [
|
|
2432
2438
|
/* @__PURE__ */ r(
|
|
2433
2439
|
ae,
|
|
2434
2440
|
{
|
|
2435
|
-
value:
|
|
2436
|
-
onChange: (
|
|
2441
|
+
value: d,
|
|
2442
|
+
onChange: (S) => h(S.target.value),
|
|
2437
2443
|
required: !0,
|
|
2438
2444
|
placeholder: i("your_name_placeholder"),
|
|
2439
2445
|
name: "name"
|
|
@@ -2443,33 +2449,33 @@ function Ro() {
|
|
|
2443
2449
|
ae,
|
|
2444
2450
|
{
|
|
2445
2451
|
required: !0,
|
|
2446
|
-
value:
|
|
2447
|
-
onChange: (
|
|
2452
|
+
value: y,
|
|
2453
|
+
onChange: (S) => v(S.target.value),
|
|
2448
2454
|
type: "email",
|
|
2449
2455
|
placeholder: i("your_email_placeholder"),
|
|
2450
2456
|
name: "email"
|
|
2451
2457
|
}
|
|
2452
2458
|
),
|
|
2453
|
-
m.map((
|
|
2459
|
+
m.map((S) => /* @__PURE__ */ r(
|
|
2454
2460
|
ae,
|
|
2455
2461
|
{
|
|
2456
|
-
value:
|
|
2457
|
-
onChange: (
|
|
2462
|
+
value: z[S],
|
|
2463
|
+
onChange: (B) => w((se) => ({
|
|
2458
2464
|
...se,
|
|
2459
|
-
[
|
|
2465
|
+
[S]: B.target.value
|
|
2460
2466
|
})),
|
|
2461
|
-
placeholder: `${
|
|
2467
|
+
placeholder: `${S} (${i("optional")})`
|
|
2462
2468
|
},
|
|
2463
|
-
|
|
2469
|
+
S
|
|
2464
2470
|
)),
|
|
2465
|
-
/* @__PURE__ */
|
|
2466
|
-
|
|
2471
|
+
/* @__PURE__ */ c(
|
|
2472
|
+
C,
|
|
2467
2473
|
{
|
|
2468
|
-
disabled:
|
|
2474
|
+
disabled: k.loading,
|
|
2469
2475
|
className: "w-full",
|
|
2470
2476
|
size: "lg",
|
|
2471
2477
|
children: [
|
|
2472
|
-
|
|
2478
|
+
k.loading ? i("start_chat_button_loading") : i("start_chat_button"),
|
|
2473
2479
|
/* @__PURE__ */ r(Sr, { className: "size-4 rtl:-scale-100" })
|
|
2474
2480
|
]
|
|
2475
2481
|
}
|
|
@@ -2488,12 +2494,12 @@ function Ro() {
|
|
|
2488
2494
|
function Wt() {
|
|
2489
2495
|
const {
|
|
2490
2496
|
routerState: { screen: e }
|
|
2491
|
-
} =
|
|
2497
|
+
} = A();
|
|
2492
2498
|
return /* @__PURE__ */ r("div", { className: "relative bg-background size-full", children: /* @__PURE__ */ r(_, { mode: "wait", children: (() => {
|
|
2493
2499
|
switch (e) {
|
|
2494
2500
|
case "welcome":
|
|
2495
2501
|
return /* @__PURE__ */ r(
|
|
2496
|
-
|
|
2502
|
+
u,
|
|
2497
2503
|
{
|
|
2498
2504
|
fadeIn: "right",
|
|
2499
2505
|
className: "size-full",
|
|
@@ -2504,7 +2510,7 @@ function Wt() {
|
|
|
2504
2510
|
);
|
|
2505
2511
|
case "sessions":
|
|
2506
2512
|
return /* @__PURE__ */ r(
|
|
2507
|
-
|
|
2513
|
+
u,
|
|
2508
2514
|
{
|
|
2509
2515
|
fadeIn: "right",
|
|
2510
2516
|
className: "size-full",
|
|
@@ -2515,7 +2521,7 @@ function Wt() {
|
|
|
2515
2521
|
);
|
|
2516
2522
|
case "chat":
|
|
2517
2523
|
return /* @__PURE__ */ r(
|
|
2518
|
-
|
|
2524
|
+
u,
|
|
2519
2525
|
{
|
|
2520
2526
|
fadeIn: "right",
|
|
2521
2527
|
className: "size-full",
|
|
@@ -2529,7 +2535,7 @@ function Wt() {
|
|
|
2529
2535
|
}
|
|
2530
2536
|
})() }) });
|
|
2531
2537
|
}
|
|
2532
|
-
const jo = "4.0.
|
|
2538
|
+
const jo = "4.0.34", Eo = `<!DOCTYPE html>
|
|
2533
2539
|
<html>
|
|
2534
2540
|
<head>
|
|
2535
2541
|
<style>
|
|
@@ -2547,8 +2553,8 @@ html, body {
|
|
|
2547
2553
|
<body>
|
|
2548
2554
|
</body>
|
|
2549
2555
|
</html>`;
|
|
2550
|
-
function
|
|
2551
|
-
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();
|
|
2552
2558
|
return /* @__PURE__ */ r(
|
|
2553
2559
|
Z.div,
|
|
2554
2560
|
{
|
|
@@ -2568,7 +2574,7 @@ function Bt() {
|
|
|
2568
2574
|
height: n ? "100%" : void 0
|
|
2569
2575
|
}
|
|
2570
2576
|
},
|
|
2571
|
-
children: /* @__PURE__ */
|
|
2577
|
+
children: /* @__PURE__ */ c(
|
|
2572
2578
|
bt,
|
|
2573
2579
|
{
|
|
2574
2580
|
ref: o,
|
|
@@ -2613,7 +2619,7 @@ function Bt() {
|
|
|
2613
2619
|
className: p(
|
|
2614
2620
|
"antialiased font-sans size-full overflow-hidden relative text-secondary-foreground isolate"
|
|
2615
2621
|
),
|
|
2616
|
-
dir:
|
|
2622
|
+
dir: l,
|
|
2617
2623
|
children: /* @__PURE__ */ r(
|
|
2618
2624
|
Yr,
|
|
2619
2625
|
{
|
|
@@ -2630,8 +2636,8 @@ function Bt() {
|
|
|
2630
2636
|
}
|
|
2631
2637
|
);
|
|
2632
2638
|
}
|
|
2633
|
-
function
|
|
2634
|
-
const { theme: e } =
|
|
2639
|
+
function Po() {
|
|
2640
|
+
const { theme: e } = q();
|
|
2635
2641
|
return /* @__PURE__ */ r(
|
|
2636
2642
|
ce.Content,
|
|
2637
2643
|
{
|
|
@@ -2646,15 +2652,15 @@ function Oo() {
|
|
|
2646
2652
|
sideOffset: e.widgetContentContainer.offset.side,
|
|
2647
2653
|
alignOffset: e.widgetContentContainer.offset.align,
|
|
2648
2654
|
avoidCollisions: !1,
|
|
2649
|
-
children: /* @__PURE__ */ r(
|
|
2655
|
+
children: /* @__PURE__ */ r($t, {})
|
|
2650
2656
|
}
|
|
2651
2657
|
);
|
|
2652
2658
|
}
|
|
2653
|
-
function
|
|
2659
|
+
function Ao({
|
|
2654
2660
|
className: e,
|
|
2655
2661
|
style: o
|
|
2656
2662
|
}) {
|
|
2657
|
-
return /* @__PURE__ */
|
|
2663
|
+
return /* @__PURE__ */ c(
|
|
2658
2664
|
"svg",
|
|
2659
2665
|
{
|
|
2660
2666
|
width: "32",
|
|
@@ -2685,7 +2691,7 @@ function Po({
|
|
|
2685
2691
|
}
|
|
2686
2692
|
);
|
|
2687
2693
|
}
|
|
2688
|
-
const
|
|
2694
|
+
const Ho = `<!DOCTYPE html>
|
|
2689
2695
|
<html>
|
|
2690
2696
|
<head>
|
|
2691
2697
|
<style>
|
|
@@ -2702,13 +2708,13 @@ html, body {
|
|
|
2702
2708
|
<body>
|
|
2703
2709
|
</body>
|
|
2704
2710
|
</html>`;
|
|
2705
|
-
function
|
|
2711
|
+
function Oo() {
|
|
2706
2712
|
var a, i;
|
|
2707
|
-
const { isOpen: e } = K(), { cssOverrides: o, assets: t } =
|
|
2708
|
-
return /* @__PURE__ */
|
|
2713
|
+
const { isOpen: e } = K(), { cssOverrides: o, assets: t } = b(), { theme: n, cssVars: s } = q();
|
|
2714
|
+
return /* @__PURE__ */ c(
|
|
2709
2715
|
bt,
|
|
2710
2716
|
{
|
|
2711
|
-
initialContent:
|
|
2717
|
+
initialContent: Ho,
|
|
2712
2718
|
style: {
|
|
2713
2719
|
height: `calc(${n.widgetTrigger.size.button}px + ${V.x * 2}px)`,
|
|
2714
2720
|
width: `calc(${n.widgetTrigger.size.button}px + ${V.y * 2}px)`,
|
|
@@ -2747,7 +2753,7 @@ function Ho() {
|
|
|
2747
2753
|
height: n.widgetTrigger.size.button,
|
|
2748
2754
|
width: n.widgetTrigger.size.button
|
|
2749
2755
|
},
|
|
2750
|
-
children: /* @__PURE__ */ r(
|
|
2756
|
+
children: /* @__PURE__ */ r($, { children: /* @__PURE__ */ r(
|
|
2751
2757
|
"div",
|
|
2752
2758
|
{
|
|
2753
2759
|
...g("trigger/btn"),
|
|
@@ -2760,7 +2766,7 @@ function Ho() {
|
|
|
2760
2766
|
"text-primary-foreground"
|
|
2761
2767
|
),
|
|
2762
2768
|
children: /* @__PURE__ */ r(_, { mode: "wait", children: e ? /* @__PURE__ */ r(
|
|
2763
|
-
|
|
2769
|
+
u,
|
|
2764
2770
|
{
|
|
2765
2771
|
snapExit: !0,
|
|
2766
2772
|
fadeIn: "up",
|
|
@@ -2790,7 +2796,7 @@ function Ho() {
|
|
|
2790
2796
|
},
|
|
2791
2797
|
"x-icon"
|
|
2792
2798
|
) : /* @__PURE__ */ r(
|
|
2793
|
-
|
|
2799
|
+
u,
|
|
2794
2800
|
{
|
|
2795
2801
|
snapExit: !0,
|
|
2796
2802
|
overrides: {
|
|
@@ -2808,7 +2814,7 @@ function Ho() {
|
|
|
2808
2814
|
}
|
|
2809
2815
|
}
|
|
2810
2816
|
) : /* @__PURE__ */ r(
|
|
2811
|
-
|
|
2817
|
+
Ao,
|
|
2812
2818
|
{
|
|
2813
2819
|
style: {
|
|
2814
2820
|
width: n.widgetTrigger.size.icon,
|
|
@@ -2846,20 +2852,20 @@ function Fo() {
|
|
|
2846
2852
|
}
|
|
2847
2853
|
function Wo() {
|
|
2848
2854
|
const { isOpen: e, setIsOpen: o } = K();
|
|
2849
|
-
return /* @__PURE__ */
|
|
2855
|
+
return /* @__PURE__ */ c(ce.Root, { open: e, onOpenChange: o, children: [
|
|
2850
2856
|
/* @__PURE__ */ r(Fo, {}),
|
|
2851
|
-
/* @__PURE__ */ r(
|
|
2852
|
-
/* @__PURE__ */ r(
|
|
2857
|
+
/* @__PURE__ */ r(Oo, {}),
|
|
2858
|
+
/* @__PURE__ */ r(Po, {})
|
|
2853
2859
|
] });
|
|
2854
2860
|
}
|
|
2855
|
-
const
|
|
2861
|
+
const $o = [
|
|
2856
2862
|
{
|
|
2857
2863
|
key: "loading",
|
|
2858
|
-
component:
|
|
2864
|
+
component: Br
|
|
2859
2865
|
},
|
|
2860
2866
|
{
|
|
2861
2867
|
key: "fallback",
|
|
2862
|
-
component:
|
|
2868
|
+
component: Lr
|
|
2863
2869
|
},
|
|
2864
2870
|
{
|
|
2865
2871
|
key: "bot_message",
|
|
@@ -2869,7 +2875,7 @@ const Bo = [
|
|
|
2869
2875
|
key: "agent_message",
|
|
2870
2876
|
component: ge
|
|
2871
2877
|
}
|
|
2872
|
-
],
|
|
2878
|
+
], Lo = {
|
|
2873
2879
|
get: async (e) => localStorage.getItem(e),
|
|
2874
2880
|
set: async (e, o) => {
|
|
2875
2881
|
localStorage.setItem(e, o);
|
|
@@ -2884,13 +2890,13 @@ function ln({
|
|
|
2884
2890
|
loadingComponent: t
|
|
2885
2891
|
}) {
|
|
2886
2892
|
return /* @__PURE__ */ r(
|
|
2887
|
-
|
|
2893
|
+
Xt,
|
|
2888
2894
|
{
|
|
2889
|
-
components: [
|
|
2895
|
+
components: [...$o, ...o],
|
|
2890
2896
|
options: e,
|
|
2891
|
-
storage:
|
|
2897
|
+
storage: Lo,
|
|
2892
2898
|
loadingComponent: t,
|
|
2893
|
-
children: /* @__PURE__ */ r(Vt, { children: e.inline ? /* @__PURE__ */ r(
|
|
2899
|
+
children: /* @__PURE__ */ r(Vt, { children: e.inline ? /* @__PURE__ */ r($t, {}) : /* @__PURE__ */ r(Wo, {}) })
|
|
2894
2900
|
}
|
|
2895
2901
|
);
|
|
2896
2902
|
}
|