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