@opencx/widget-react 4.0.8 → 4.0.10

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