@opencx/widget-react 4.0.6 → 4.0.8

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,85 +1,85 @@
1
- import { jsx as o, jsxs as l, Fragment as ve } from "react/jsx-runtime";
2
- import * as ie from "@radix-ui/react-popover";
1
+ import { jsx as o, jsxs as c, Fragment as ve } from "react/jsx-runtime";
2
+ import * as ae from "@radix-ui/react-popover";
3
3
  import * as E from "react";
4
- import se, { memo as Ht, forwardRef as ct, useState as j, cloneElement as At, useEffect as le, useMemo as dt, useRef as ce, createElement as nt } from "react";
5
- import { useConfig as S, useDocumentDir as be, useWidget as Y, useWidgetRouter as H, usePreludeData as de, useWidgetTrigger as K, useSessions as q, useMessages as U, useModes as pt, useUploadFiles as Bt, useIsAwaitingBotReply as ht, useContact as Lt, WidgetProvider as $t, WidgetTriggerProvider as Yt } from "@opencx/widget-react-headless";
6
- import mt from "rehype-raw";
7
- import wt from "remark-gfm";
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";
8
6
  import * as R from "@radix-ui/react-dialog";
9
- import { X as qt, CircleDashedIcon as Ut, XIcon as xe, SquareXIcon as Xt, SquareCheckBigIcon as Vt, SquareCheckIcon as Kt, ShrinkIcon as Gt, Minimize2Icon as Zt, MinimizeIcon as Jt, Maximize2Icon as Qt, MaximizeIcon as eo, ExpandIcon as to, CircleXIcon as oo, CircleCheckBigIcon as ro, CircleCheckIcon as gt, CheckCheckIcon as no, CheckIcon as so, ChevronLeftIcon as ao, LoaderIcon as io, PaperclipIcon as lo, ImageIcon as co, CircleDashed as po, ArrowUpIcon as ho, AlertCircle as mo, Loader2 as wo, FileAudio2Icon as go, FileVideo2Icon as uo, FileIcon as fo, UserRoundIcon as vo, ChevronRightIcon as bo, SendHorizontal as xo, ChevronDownIcon as yo } from "lucide-react";
10
- import { clsx as ko } from "clsx";
11
- import { twMerge as Co } from "tailwind-merge";
12
- import { createPortal as zo } from "react-dom";
13
- import ut, { useFrame as No } from "@uiw/react-iframe";
14
- import { Slot as So } from "@radix-ui/react-slot";
15
- import { cva as _o } from "class-variance-authority";
16
- import Io from "react-markdown";
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
17
  import { isExhaustive as D } from "@opencx/widget-core";
18
- import { motion as J, AnimatePresence as T } from "framer-motion";
18
+ import { motion as J, AnimatePresence as I } from "framer-motion";
19
19
  import * as G from "@radix-ui/react-avatar";
20
20
  import * as te from "@radix-ui/react-tooltip";
21
21
  import st from "tinycolor2";
22
- import { useDropzone as To } from "react-dropzone";
23
- import Mo from "react-use/lib/useAsyncFn";
24
- import { z as me } from "zod";
25
- function w(e) {
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) {
26
26
  return { "data-component": e };
27
27
  }
28
28
  function d(...e) {
29
- return Co(ko(e));
29
+ return No(zo(e));
30
30
  }
31
31
  const ft = "opencx-widget-portal";
32
- function pe() {
32
+ function de() {
33
33
  return null;
34
34
  }
35
- function Do({ children: e }) {
35
+ function Oo({ children: e }) {
36
36
  var t, n;
37
- const r = (n = (t = No()) == null ? void 0 : t.document) == null ? void 0 : n.getElementById(ft);
38
- return r ? zo(e, r) : (console.error("Portal container not found!"), null);
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
39
  }
40
- function Ro() {
40
+ function jo() {
41
41
  return /* @__PURE__ */ o("div", { id: ft, className: "absolute size-full top-0 start-0" });
42
42
  }
43
- pe.Portal = Do;
44
- pe.Container = Ro;
43
+ de.Portal = Oo;
44
+ de.Container = jo;
45
45
  const V = {
46
46
  x: 2,
47
47
  y: 2
48
- }, W = Ht(
48
+ }, W = Bt(
49
49
  ct(
50
50
  ({ children: e, className: r, scale: t = 1.02, off: n = !1 }, s) => {
51
- const [a, i] = j(!1), [c, p] = j({ x: 0, y: 0 });
51
+ const [a, i] = j(!1), [l, p] = j({ x: 0, y: 0 });
52
52
  if (n || /translate/.test(
53
53
  e.props.className || ""
54
54
  )) return e;
55
- const x = (m) => {
56
- var C, B;
57
- const { clientX: u, clientY: _ } = m, k = m.currentTarget.getBoundingClientRect(), I = u - (k.left + k.width / 2), M = _ - (k.top + k.height / 2), F = Math.max(
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(
58
58
  -1,
59
- Math.min(1, I / (k.width / 2))
60
- ), P = Math.max(
59
+ Math.min(1, T / (y.width / 2))
60
+ ), F = Math.max(
61
61
  -1,
62
- Math.min(1, M / (k.height / 2))
63
- ), O = F * V.x, b = P * V.y;
64
- p({ x: O, y: b }), (B = (C = e.props).onMouseMove) == null || B.call(C, m);
65
- }, y = () => {
66
- var m, u;
67
- i(!0), (u = (m = e.props).onMouseEnter) == null || u.call(m);
68
- }, v = () => {
69
- var m, u;
70
- i(!1), p({ x: 0, y: 0 }), (u = (m = e.props).onMouseLeave) == null || u.call(m);
71
- }, h = {
72
- "--wobble-x": a ? `${c.x}px` : "0px",
73
- "--wobble-y": a ? `${c.y}px` : "0px",
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);
65
+ }, x = () => {
66
+ var u, b;
67
+ i(!0), (b = (u = e.props).onMouseEnter) == null || b.call(u);
68
+ }, h = () => {
69
+ var u, b;
70
+ i(!1), p({ x: 0, y: 0 }), (b = (u = e.props).onMouseLeave) == null || b.call(u);
71
+ }, v = {
72
+ "--wobble-x": a ? `${l.x}px` : "0px",
73
+ "--wobble-y": a ? `${l.y}px` : "0px",
74
74
  "--scale": 1 - (t - 1)
75
75
  };
76
- return At(e, {
76
+ return Lt(e, {
77
77
  ref: s,
78
- onMouseMove: x,
79
- onMouseEnter: y,
80
- onMouseLeave: v,
78
+ onMouseMove: C,
79
+ onMouseEnter: x,
80
+ onMouseLeave: h,
81
81
  style: {
82
- ...h,
82
+ ...v,
83
83
  ...e.props.style
84
84
  },
85
85
  className: d(
@@ -95,7 +95,7 @@ const V = {
95
95
  )
96
96
  );
97
97
  W.displayName = "Wobble";
98
- const Oo = _o(
98
+ const Eo = To(
99
99
  d(
100
100
  "inline-flex shrink-0 items-center justify-center gap-2",
101
101
  "text-sm font-medium whitespace-nowrap",
@@ -136,11 +136,11 @@ const Oo = _o(
136
136
  }
137
137
  ), z = E.forwardRef(
138
138
  ({ className: e, variant: r = "default", size: t, asChild: n = !1, ...s }, a) => /* @__PURE__ */ o(W, { ref: a, children: /* @__PURE__ */ o(
139
- n ? So : "button",
139
+ n ? Io : "button",
140
140
  {
141
- ...w("ui_lib/btn"),
141
+ ...g("ui_lib/btn"),
142
142
  "data-variant": r,
143
- className: d(Oo({ variant: r, size: t, className: e })),
143
+ className: d(Eo({ variant: r, size: t, className: e })),
144
144
  ...s
145
145
  }
146
146
  ) })
@@ -158,9 +158,9 @@ const vt = R.Root, bt = R.Trigger, xt = E.forwardRef(({ className: e, ...r }, t)
158
158
  }
159
159
  ));
160
160
  xt.displayName = R.Overlay.displayName;
161
- const ye = E.forwardRef(({ className: e, children: r, withClose: t = !1, ...n }, s) => /* @__PURE__ */ l(pe.Portal, { children: [
161
+ const ye = E.forwardRef(({ className: e, children: r, withClose: t = !1, ...n }, s) => /* @__PURE__ */ c(de.Portal, { children: [
162
162
  /* @__PURE__ */ o(xt, {}),
163
- /* @__PURE__ */ l(
163
+ /* @__PURE__ */ c(
164
164
  R.Content,
165
165
  {
166
166
  ref: s,
@@ -176,8 +176,8 @@ const ye = E.forwardRef(({ className: e, children: r, withClose: t = !1, ...n },
176
176
  {
177
177
  asChild: !0,
178
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__ */ l(z, { size: "fit", className: "rounded-full", variant: "secondary", children: [
180
- /* @__PURE__ */ o(qt, { className: "h-4 w-4" }),
179
+ children: /* @__PURE__ */ c(z, { size: "fit", className: "rounded-full", variant: "secondary", children: [
180
+ /* @__PURE__ */ o(Xt, { className: "h-4 w-4" }),
181
181
  /* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
182
182
  ] })
183
183
  }
@@ -236,14 +236,14 @@ const zt = E.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ o(
236
236
  ));
237
237
  zt.displayName = R.Description.displayName;
238
238
  function Nt({ attachment: e }) {
239
- const { name: r, size: t, type: n, url: s } = e, a = n.startsWith("image/"), i = n.startsWith("video/"), c = n.startsWith("audio/");
240
- return c ? /* @__PURE__ */ o(W, { children: /* @__PURE__ */ o("div", { className: "w-full shrink-0 overflow-hidden", children: /* @__PURE__ */ l("audio", { controls: !0, className: "w-full", children: [
239
+ 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: [
241
241
  /* @__PURE__ */ o("source", { src: s, type: n }),
242
242
  "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__ */ l("video", { controls: !0, children: [
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: [
244
244
  /* @__PURE__ */ o("source", { src: s, type: n }),
245
245
  "Your browser does not support the video tag."
246
- ] }) }) }) : !a && !i && !c ? /* @__PURE__ */ o(W, { children: /* @__PURE__ */ o("div", { className: "size-fit border shrink-0 rounded-2xl overflow-hidden", children: /* @__PURE__ */ l("div", { className: "flex items-end gap-2 p-2", children: [
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: [
247
247
  /* @__PURE__ */ o(
248
248
  "a",
249
249
  {
@@ -258,13 +258,13 @@ function Nt({ attachment: e }) {
258
258
  children: r
259
259
  }
260
260
  ),
261
- /* @__PURE__ */ l("span", { className: "text-xs text-muted-foreground whitespace-nowrap", children: [
261
+ /* @__PURE__ */ c("span", { className: "text-xs text-muted-foreground whitespace-nowrap", children: [
262
262
  (t / 1024).toFixed(2),
263
263
  " KB"
264
264
  ] })
265
- ] }) }) }) : /* @__PURE__ */ l(vt, { children: [
265
+ ] }) }) }) : /* @__PURE__ */ c(vt, { children: [
266
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__ */ l(
267
+ /* @__PURE__ */ c(
268
268
  ye,
269
269
  {
270
270
  "aria-describedby": void 0,
@@ -279,10 +279,30 @@ function Nt({ attachment: e }) {
279
279
  ] });
280
280
  }
281
281
  const St = se.memo(
282
- Io,
282
+ Mo,
283
283
  (e, r) => e.children === r.children && e.className === r.className
284
284
  );
285
- function ae({
285
+ function _t({
286
+ children: e,
287
+ messageType: r,
288
+ messageId: t
289
+ }) {
290
+ const { anchorTarget: n } = N();
291
+ return /* @__PURE__ */ o(
292
+ St,
293
+ {
294
+ "data-type": r,
295
+ "data-id": t,
296
+ remarkPlugins: [wt],
297
+ rehypePlugins: [ut],
298
+ components: {
299
+ a: ({ children: s, ...a }) => /* @__PURE__ */ o("a", { target: n ?? "_top", ...a, children: s })
300
+ },
301
+ children: e
302
+ }
303
+ );
304
+ }
305
+ function ge({
286
306
  data: e,
287
307
  id: r,
288
308
  type: t,
@@ -290,24 +310,24 @@ function ae({
290
310
  isFirstInGroup: s,
291
311
  isLastInGroup: a,
292
312
  isAloneInGroup: i,
293
- dataComponentNames: c,
313
+ dataComponentNames: l,
294
314
  classNames: p
295
315
  }) {
296
- const { anchorTarget: g } = S(), { message: x, variant: y = "default" } = e;
297
- 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: x }) }) }) : /* @__PURE__ */ l(
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(
298
318
  "div",
299
319
  {
300
- ...w((c == null ? void 0 : c.messageContainer) ?? "chat/agent_msg/root"),
320
+ ...g((l == null ? void 0 : l.messageContainer) ?? "chat/agent_msg/root"),
301
321
  className: d(
302
322
  "w-5/6 flex flex-col items-start gap-1",
303
323
  p == null ? void 0 : p.messageContainer
304
324
  ),
305
325
  children: [
306
- 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((v) => /* @__PURE__ */ o(Nt, { attachment: v }, v.id)) }),
307
- x.length > 0 && /* @__PURE__ */ o(
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(
308
328
  "div",
309
329
  {
310
- ...w((c == null ? void 0 : c.message) ?? "chat/agent_msg/msg"),
330
+ ...g((l == null ? void 0 : l.message) ?? "chat/agent_msg/msg"),
311
331
  "data-first": s,
312
332
  "data-last": a,
313
333
  "data-alone": i,
@@ -325,26 +345,14 @@ function ae({
325
345
  !s && !a && !i && "rounded-l-md",
326
346
  p == null ? void 0 : p.message
327
347
  ),
328
- children: /* @__PURE__ */ o(
329
- St,
330
- {
331
- "data-type": t,
332
- "data-id": r,
333
- remarkPlugins: [wt],
334
- rehypePlugins: [mt],
335
- components: {
336
- a: ({ children: v, ...h }) => /* @__PURE__ */ o("a", { target: g ?? "_top", ...h, children: v })
337
- },
338
- children: x
339
- }
340
- )
348
+ children: /* @__PURE__ */ o(_t, { messageType: t, messageId: r, children: m })
341
349
  }
342
350
  )
343
351
  ]
344
352
  }
345
353
  );
346
354
  }
347
- function jo(e) {
355
+ function Po(e) {
348
356
  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) }) });
349
357
  }
350
358
  const Ce = E.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ o(
@@ -381,64 +389,64 @@ const Ne = E.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ o(
381
389
  }
382
390
  ));
383
391
  Ne.displayName = G.Fallback.displayName;
384
- function ge({
392
+ function we({
385
393
  agent: e,
386
394
  ...r
387
395
  }) {
388
396
  var t, n;
389
- return /* @__PURE__ */ l(Ce, { ...r, children: [
397
+ return /* @__PURE__ */ c(Ce, { ...r, children: [
390
398
  /* @__PURE__ */ o(ze, { src: (e == null ? void 0 : e.avatar) ?? "", alt: "Agent Icon" }),
391
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() })
392
400
  ] });
393
401
  }
394
- const Eo = 10, Fo = (e, r, t) => ({
402
+ const Fo = 10, Wo = (e, r, t) => ({
395
403
  initial: { opacity: 0, x: -e, ...r.initial },
396
404
  animate: { opacity: 1, x: 0, ...r.animate, transition: { delay: t } },
397
405
  exit: { opacity: 0, x: e, ...r.exit }
398
- }), Po = (e, r, t) => ({
406
+ }), Ho = (e, r, t) => ({
399
407
  initial: { opacity: 0, x: e, ...r.initial },
400
408
  animate: { opacity: 1, x: 0, ...r.animate, transition: { delay: t } },
401
409
  exit: { opacity: 0, x: -e, ...r.exit }
402
- }), Wo = (e, r, t) => ({
410
+ }), Ao = (e, r, t) => ({
403
411
  initial: { opacity: 0, y: e, ...r.initial },
404
412
  animate: { opacity: 1, y: 0, ...r.animate, transition: { delay: t } },
405
413
  exit: { opacity: 0, y: -e, ...r.exit }
406
- }), Ho = (e, r, t) => ({
414
+ }), Bo = (e, r, t) => ({
407
415
  initial: { opacity: 0, y: -e, ...r.initial },
408
416
  animate: { opacity: 1, y: 0, ...r.animate, transition: { delay: t } },
409
417
  exit: { opacity: 0, y: e, ...r.exit }
410
- }), Ao = {
411
- right: Fo,
412
- left: Po,
413
- up: Wo,
414
- down: Ho
415
- }, f = ct(
418
+ }), Lo = {
419
+ right: Wo,
420
+ left: Ho,
421
+ up: Ao,
422
+ down: Bo
423
+ }, w = ct(
416
424
  ({
417
425
  fadeIn: e = "down",
418
- distance: r = Eo,
426
+ distance: r = Fo,
419
427
  children: t,
420
428
  snapExit: n = !1,
421
429
  overrides: s = {},
422
430
  delay: a = 0,
423
431
  ...i
424
- }, c) => {
425
- const p = e ? Ao[e](r, s, a) : {};
426
- return n && p.exit && typeof p.exit == "object" && !Array.isArray(p.exit) && (p.exit.transition = { duration: 0 }), /* @__PURE__ */ o(J.div, { ref: c, ...i, ...p, children: t });
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 });
427
435
  }
428
436
  );
429
- f.displayName = "MotionDiv";
430
- function Bo({ agent: e }) {
431
- return /* @__PURE__ */ o(T, { children: /* @__PURE__ */ l(
432
- f,
437
+ w.displayName = "MotionDiv";
438
+ function $o({ agent: e }) {
439
+ return /* @__PURE__ */ o(I, { children: /* @__PURE__ */ c(
440
+ w,
433
441
  {
434
- ...w("chat/bot_loading/root"),
442
+ ...g("chat/bot_loading/root"),
435
443
  className: "flex flex-row items-end w-full gap-2 animate-pulse",
436
444
  children: [
437
- /* @__PURE__ */ o(ge, { agent: e }),
438
- /* @__PURE__ */ l(
445
+ /* @__PURE__ */ o(we, { agent: e }),
446
+ /* @__PURE__ */ c(
439
447
  "div",
440
448
  {
441
- ...w("chat/bot_loading/bouncing_dots_container"),
449
+ ...g("chat/bot_loading/bouncing_dots_container"),
442
450
  className: d(
443
451
  "flex items-center [&_span]:bg-secondary-foreground [&_span]:size-1 gap-1 p-2 rounded-xl bg-secondary"
444
452
  // 'border',
@@ -454,7 +462,7 @@ function Bo({ agent: e }) {
454
462
  }
455
463
  ) });
456
464
  }
457
- const _t = '@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-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;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))}', Lo = te.Provider, $o = te.Root, Yo = te.Trigger, It = E.forwardRef(({ className: e, sideOffset: r = 4, ...t }, n) => /* @__PURE__ */ o(
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(
458
466
  te.Content,
459
467
  {
460
468
  ref: n,
@@ -466,18 +474,18 @@ const _t = '@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wgh
466
474
  ...t
467
475
  }
468
476
  ));
469
- It.displayName = te.Content.displayName;
477
+ Tt.displayName = te.Content.displayName;
470
478
  function Q({
471
479
  children: e,
472
480
  content: r,
473
481
  side: t,
474
482
  align: n
475
483
  }) {
476
- const { disableTooltips: s } = S();
477
- return !r || s ? e : /* @__PURE__ */ l($o, { children: [
478
- /* @__PURE__ */ o(Yo, { asChild: !0, children: e }),
484
+ const { disableTooltips: s } = N();
485
+ return !r || s ? e : /* @__PURE__ */ c(qo, { children: [
486
+ /* @__PURE__ */ o(Uo, { asChild: !0, children: e }),
479
487
  /* @__PURE__ */ o(
480
- It,
488
+ Tt,
481
489
  {
482
490
  side: t,
483
491
  align: n,
@@ -505,37 +513,37 @@ const re = {
505
513
  transitionDuration: "1000ms"
506
514
  };
507
515
  function X() {
508
- var y, v, h, m, u, _, k, I, M, F, P, O, b, C, B, N, L, oe, Te, Me, De, Re, Oe, je, Ee, Fe, Pe, We, He, Ae, Be, Le, $e, Ye, qe, Ue, Xe, Ve, Ke, Ge, Ze, Je, Qe, et, tt, ot, rt;
509
- const { dir: e } = be(), { isSmallScreen: r } = A(), { theme: t, inline: n } = S(), s = ($) => n ? "100%" : $, a = ($, he) => r ? `100dv${$}` : he, i = ($, he) => s(a($, he)), c = {
510
- zIndex: ((y = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : y.zIndex) ?? 1e7,
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 = {
518
+ zIndex: ((x = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : x.zIndex) ?? 1e7,
511
519
  offset: {
512
- bottom: ((h = (v = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : v.offset) == null ? void 0 : h.bottom) ?? 20,
513
- right: ((u = (m = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : m.offset) == null ? void 0 : u.right) ?? (e === "ltr" ? 20 : "initial"),
514
- left: ((k = (_ = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : _.offset) == null ? void 0 : k.left) ?? (e === "rtl" ? 20 : "initial")
520
+ bottom: ((v = (h = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : h.offset) == null ? void 0 : v.bottom) ?? 20,
521
+ 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")
515
523
  },
516
524
  size: {
517
- button: ((M = (I = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : I.size) == null ? void 0 : M.button) ?? 48,
518
- icon: ((P = (F = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : F.size) == null ? void 0 : P.icon) ?? 24
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
519
527
  }
520
528
  }, p = (() => {
521
- const $ = e === "ltr" ? c.offset.right : c.offset.left;
529
+ const $ = e === "ltr" ? l.offset.right : l.offset.left;
522
530
  return typeof $ != "number" ? 0 : $;
523
- })(), g = {
531
+ })(), m = {
524
532
  palette: (t == null ? void 0 : t.palette) ?? "neutral",
525
533
  primaryColor: (t == null ? void 0 : t.primaryColor) ?? "hsl(0 0% 9%)",
526
- widgetTrigger: c,
534
+ widgetTrigger: l,
527
535
  widgetContentContainer: {
528
536
  borderRadius: r ? "0px" : ((O = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : O.borderRadius) ?? "32px",
529
- zIndex: ((b = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : b.zIndex) ?? c.zIndex + 1,
530
- outline: ((C = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : C.outline) ?? "none",
537
+ 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",
531
539
  // was: '1px solid'
532
540
  outlineColor: ((B = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : B.outlineColor) ?? "hsl(0 0% 50% / .5)",
533
- boxShadow: ((N = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : N.boxShadow) ?? "0 0px 100px 0px rgb(0 0 0 / 0.25)",
541
+ boxShadow: ((S = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : S.boxShadow) ?? "0 0px 100px 0px rgb(0 0 0 / 0.25)",
534
542
  transitionProperty: ((L = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : L.transitionProperty) ?? "all",
535
543
  transitionTimingFunction: ((oe = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : oe.transitionTimingFunction) ?? re.transitionTimingFunction,
536
544
  transitionDuration: ((Te = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Te.transitionDuration) ?? re.transitionDuration,
537
545
  offset: {
538
- side: r ? 0 : c.offset.bottom + c.size.button + V.y * 2 + (((De = (Me = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Me.offset) == null ? void 0 : De.side) ?? 10),
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),
539
547
  align: r ? 0 : p + (((Oe = (Re = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Re.offset) == null ? void 0 : Oe.align) ?? 0)
540
548
  }
541
549
  },
@@ -545,7 +553,7 @@ function X() {
545
553
  // By setting minHeight to 1px, a nice animation will play from 1px to the dynamic height of the content of the screen
546
554
  minHeight: i(
547
555
  "h",
548
- ((Pe = (Fe = t == null ? void 0 : t.screens) == null ? void 0 : Fe.welcome) == null ? void 0 : Pe.minHeight) ?? "1px"
556
+ ((Fe = (Pe = t == null ? void 0 : t.screens) == null ? void 0 : Pe.welcome) == null ? void 0 : Fe.minHeight) ?? "1px"
549
557
  )
550
558
  },
551
559
  sessions: {
@@ -569,7 +577,7 @@ function X() {
569
577
  }
570
578
  }
571
579
  }
572
- }, x = {
580
+ }, C = {
573
581
  // Subtract the offset.bottom twice so that it adds a bit of padding to the top
574
582
  // Subtract the distance between the trigger and the widget content container
575
583
  // Subtract the invisible padding of the trigger (for the wobble effect)
@@ -577,8 +585,8 @@ function X() {
577
585
  "h",
578
586
  `calc(
579
587
  100vh
580
- - ${g.widgetTrigger.offset.bottom}px
581
- - ${g.widgetContentContainer.offset.side}px
588
+ - ${m.widgetTrigger.offset.bottom}px
589
+ - ${m.widgetContentContainer.offset.side}px
582
590
  - ${V.y * 2}px
583
591
  )`
584
592
  ),
@@ -593,34 +601,34 @@ function X() {
593
601
  minHeight: i(
594
602
  "h",
595
603
  `min(
596
- ${g.screens.welcome.minHeight},
597
- ${g.screens.sessions.height},
598
- ${g.screens.chat.height}
604
+ ${m.screens.welcome.minHeight},
605
+ ${m.screens.sessions.height},
606
+ ${m.screens.chat.height}
599
607
  )`
600
608
  ),
601
609
  minWidth: i(
602
610
  "w",
603
611
  `min(
604
- ${g.screens.welcome.width},
605
- ${g.screens.sessions.width},
606
- ${g.screens.chat.width}
612
+ ${m.screens.welcome.width},
613
+ ${m.screens.sessions.width},
614
+ ${m.screens.chat.width}
607
615
  )`
608
616
  )
609
617
  };
610
618
  return {
611
- theme: g,
612
- computed: x,
613
- cssVars: qo({
614
- palette: g.palette,
615
- primary: g.primaryColor
619
+ theme: m,
620
+ computed: C,
621
+ cssVars: Xo({
622
+ palette: m.palette,
623
+ primary: m.primaryColor
616
624
  })
617
625
  };
618
626
  }
619
- function qo({
627
+ function Xo({
620
628
  palette: e,
621
629
  primary: r
622
630
  }) {
623
- const t = Tt(e), n = st(r).toHsl(), s = st(r).isLight() ? t[950] : t[50];
631
+ const t = Mt(e), n = st(r).toHsl(), s = st(r).isLight() ? t[950] : t[50];
624
632
  return {
625
633
  "--opencx-primary": `${n.h} ${n.s * 100}% ${n.l * 100}%`,
626
634
  "--opencx-primary-foreground": s,
@@ -639,7 +647,7 @@ function qo({
639
647
  "--opencx-ring": "var(--opencx-foreground)"
640
648
  };
641
649
  }
642
- function Tt(e) {
650
+ function Mt(e) {
643
651
  const r = {
644
652
  50: "0 0% 98%",
645
653
  100: "0 0% 96.1%",
@@ -699,11 +707,11 @@ function Tt(e) {
699
707
  case "slate":
700
708
  return s;
701
709
  default:
702
- return D(e, Tt.name), r;
710
+ return D(e, Mt.name), r;
703
711
  }
704
712
  }
705
- function Mt() {
706
- const { contentIframeRef: e } = Y(), { inline: r } = S();
713
+ function Dt() {
714
+ const { contentIframeRef: e } = q(), { inline: r } = N();
707
715
  return {
708
716
  setWidth: (t) => {
709
717
  var n;
@@ -725,12 +733,12 @@ function Se({
725
733
  width: e,
726
734
  height: r
727
735
  }) {
728
- const { isSmallScreen: t } = A(), { setWidth: n, setHeight: s } = Mt();
729
- le(() => {
736
+ const { isSmallScreen: t } = A(), { setWidth: n, setHeight: s } = Dt();
737
+ ie(() => {
730
738
  e && n(e), r && s(r);
731
739
  }, [t, r, e, n, s]);
732
740
  }
733
- const it = Ut;
741
+ const it = Vt;
734
742
  function ee({
735
743
  name: e,
736
744
  className: r
@@ -738,33 +746,33 @@ function ee({
738
746
  const t = (() => {
739
747
  switch (e) {
740
748
  case "Check":
741
- return so;
749
+ return io;
742
750
  case "CheckCheck":
743
- return no;
751
+ return ao;
744
752
  case "CircleCheck":
745
- return gt;
753
+ return mt;
746
754
  case "CircleCheckBig":
747
- return ro;
755
+ return so;
748
756
  case "CircleX":
749
- return oo;
757
+ return no;
750
758
  case "Expand":
751
- return to;
759
+ return ro;
752
760
  case "Maximize":
753
- return eo;
761
+ return oo;
754
762
  case "Maximize2":
755
- return Qt;
763
+ return to;
756
764
  case "Minimize":
757
- return Jt;
765
+ return eo;
758
766
  case "Minimize2":
759
- return Zt;
767
+ return Qt;
760
768
  case "Shrink":
761
- return Gt;
769
+ return Jt;
762
770
  case "SquareCheck":
763
- return Kt;
771
+ return Zt;
764
772
  case "SquareCheckBig":
765
- return Vt;
773
+ return Gt;
766
774
  case "SquareX":
767
- return Xt;
775
+ return Kt;
768
776
  case "X":
769
777
  return xe;
770
778
  case void 0:
@@ -775,7 +783,7 @@ function ee({
775
783
  })();
776
784
  return /* @__PURE__ */ o(t, { className: d("size-4", r) });
777
785
  }
778
- function Dt({
786
+ function Rt({
779
787
  className: e,
780
788
  ...r
781
789
  }) {
@@ -789,9 +797,9 @@ function Dt({
789
797
  }
790
798
  function _e() {
791
799
  var s;
792
- const { data: e } = de(), {
800
+ const { data: e } = ce(), {
793
801
  routerState: { screen: r }
794
- } = H(), { textContent: t } = S();
802
+ } = H(), { textContent: t } = N();
795
803
  return (() => {
796
804
  var a, i;
797
805
  switch (r) {
@@ -807,12 +815,12 @@ function _e() {
807
815
  }
808
816
  })() ?? ((s = e == null ? void 0 : e.data) == null ? void 0 : s.organizationName) ?? "Chat";
809
817
  }
810
- function Uo(e) {
818
+ function Vo(e) {
811
819
  switch (e) {
812
820
  case "chat":
813
- return w("chat/header");
821
+ return g("chat/header");
814
822
  case "sessions":
815
- return w("sessions/header");
823
+ return g("sessions/header");
816
824
  case "welcome":
817
825
  return;
818
826
  default:
@@ -820,8 +828,8 @@ function Uo(e) {
820
828
  return;
821
829
  }
822
830
  }
823
- function Xo() {
824
- const { router: e } = S(), {
831
+ function Ko() {
832
+ const { router: e } = N(), {
825
833
  routerState: { screen: r },
826
834
  toSessionsScreen: t
827
835
  } = H();
@@ -832,11 +840,11 @@ function Xo() {
832
840
  size: "fit",
833
841
  className: "rounded-full",
834
842
  onClick: t,
835
- children: /* @__PURE__ */ o(ao, { className: "size-4 rtl:-scale-100" })
843
+ children: /* @__PURE__ */ o(lo, { className: "size-4 rtl:-scale-100" })
836
844
  }
837
845
  );
838
846
  }
839
- function Vo({
847
+ function Go({
840
848
  button: e
841
849
  }) {
842
850
  const { setIsOpen: r } = K(), { isSmallScreen: t } = A();
@@ -859,7 +867,7 @@ function ue({
859
867
  }) {
860
868
  const [r, t] = j(!1), {
861
869
  routerState: { screen: n }
862
- } = H(), { isSmallScreen: s } = A(), { theme: a } = X(), { setWidth: i, setHeight: c } = Mt();
870
+ } = H(), { isSmallScreen: s } = A(), { theme: a } = X(), { setWidth: i, setHeight: l } = Dt();
863
871
  if (n !== "chat" && n !== "sessions") return null;
864
872
  const p = (() => {
865
873
  switch (n) {
@@ -870,7 +878,7 @@ function ue({
870
878
  default:
871
879
  return D(n, ue.name), a.screens.chat.height;
872
880
  }
873
- })(), g = (() => {
881
+ })(), m = (() => {
874
882
  switch (n) {
875
883
  case "chat":
876
884
  return a.screens.chat.width;
@@ -879,10 +887,10 @@ function ue({
879
887
  default:
880
888
  return D(n, ue.name), a.screens.chat.width;
881
889
  }
882
- })(), x = () => {
883
- t((y) => {
884
- const v = !y;
885
- return c(v ? "100vh" : p), i(v ? `max(40vw, ${g})` : g), v;
890
+ })(), C = () => {
891
+ t((x) => {
892
+ const h = !x;
893
+ return l(h ? "100vh" : p), i(h ? `max(40vw, ${m})` : m), h;
886
894
  });
887
895
  };
888
896
  return s && e.hideOnSmallScreen || !s && e.hideOnLargeScreen ? null : /* @__PURE__ */ o(
@@ -891,7 +899,7 @@ function ue({
891
899
  variant: "ghost",
892
900
  size: "fit",
893
901
  className: "rounded-full",
894
- onClick: x,
902
+ onClick: C,
895
903
  children: /* @__PURE__ */ o(
896
904
  ee,
897
905
  {
@@ -901,14 +909,14 @@ function ue({
901
909
  }
902
910
  );
903
911
  }
904
- function Rt({
912
+ function Ot({
905
913
  button: e
906
914
  }) {
907
- var _, k;
908
- const [r, t] = j(!1), { widgetCtx: n } = Y(), { setIsOpen: s } = K(), { resolveSession: a, sessionState: i } = q(), { isSmallScreen: c } = A(), p = !i.session, g = ((_ = i.session) == null ? void 0 : _.isOpened) === !1, x = e.onResolved || "stay-in-chat", y = e.behaviorBeforeSessionCreation || "disabled", v = e.behaviorIfSessionIsResolved || "disabled", h = !!(i.isResolvingSession || p && y === "disabled" || g && v === "disabled"), m = async () => {
909
- const { success: I, error: M } = await a();
910
- if (t(!1), !I) return console.error(M);
911
- switch (x) {
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) {
912
920
  case "stay-in-chat":
913
921
  return;
914
922
  case "close-widget":
@@ -921,12 +929,12 @@ function Rt({
921
929
  s(!1), n.resetChat();
922
930
  break;
923
931
  default:
924
- D(x, Rt.name);
932
+ D(C, Ot.name);
925
933
  break;
926
934
  }
927
- }, u = () => {
935
+ }, b = () => {
928
936
  if (p)
929
- switch (y) {
937
+ switch (x) {
930
938
  case "disabled":
931
939
  return;
932
940
  case "close-widget":
@@ -934,12 +942,12 @@ function Rt({
934
942
  break;
935
943
  default:
936
944
  D(
937
- y,
938
- u.name
945
+ x,
946
+ b.name
939
947
  );
940
948
  }
941
- if (g)
942
- switch (v) {
949
+ if (m)
950
+ switch (h) {
943
951
  case "disabled":
944
952
  return;
945
953
  case "close-widget":
@@ -953,26 +961,26 @@ function Rt({
953
961
  break;
954
962
  default:
955
963
  D(
956
- v,
957
- u.name
964
+ h,
965
+ b.name
958
966
  );
959
967
  }
960
968
  };
961
- return c && e.hideOnSmallScreen || !c && e.hideOnLargeScreen ? null : ((k = e.confirmation) == null ? void 0 : k.type) === "modal" && !g && !p ? /* @__PURE__ */ l(vt, { open: r, onOpenChange: t, children: [
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: [
962
970
  /* @__PURE__ */ o(bt, { asChild: !0, children: /* @__PURE__ */ o(
963
971
  z,
964
972
  {
965
973
  variant: "ghost",
966
974
  size: "fit",
967
975
  className: "rounded-full",
968
- disabled: h,
976
+ disabled: v,
969
977
  children: /* @__PURE__ */ o(ee, { name: e.icon })
970
978
  }
971
979
  ) }),
972
- /* @__PURE__ */ l(ye, { children: [
980
+ /* @__PURE__ */ c(ye, { children: [
973
981
  /* @__PURE__ */ o(yt, { children: /* @__PURE__ */ o(ke, { children: e.confirmation.title || "Close conversation" }) }),
974
982
  /* @__PURE__ */ o(kt, { children: /* @__PURE__ */ o(zt, { children: e.confirmation.description || "Are you sure you want to close this conversation?" }) }),
975
- /* @__PURE__ */ l(Ct, { children: [
983
+ /* @__PURE__ */ c(Ct, { children: [
976
984
  /* @__PURE__ */ o(
977
985
  z,
978
986
  {
@@ -986,7 +994,7 @@ function Rt({
986
994
  z,
987
995
  {
988
996
  variant: "destructive",
989
- onClick: m,
997
+ onClick: u,
990
998
  disabled: i.isResolvingSession,
991
999
  children: e.confirmation.confirmButtonText || "Yes"
992
1000
  }
@@ -999,8 +1007,8 @@ function Rt({
999
1007
  variant: "ghost",
1000
1008
  size: "fit",
1001
1009
  className: "rounded-full",
1002
- onClick: g || p ? u : m,
1003
- disabled: h,
1010
+ onClick: m || p ? b : u,
1011
+ disabled: v,
1004
1012
  children: /* @__PURE__ */ o(ee, { name: e.icon })
1005
1013
  }
1006
1014
  );
@@ -1008,25 +1016,25 @@ function Rt({
1008
1016
  function fe({ button: e }) {
1009
1017
  switch (e.functionality) {
1010
1018
  case "close-widget":
1011
- return /* @__PURE__ */ o(Vo, { button: e });
1019
+ return /* @__PURE__ */ o(Go, { button: e });
1012
1020
  case "expand-shrink":
1013
1021
  return /* @__PURE__ */ o(ue, { button: e });
1014
1022
  case "resolve-session":
1015
- return /* @__PURE__ */ o(Rt, { button: e });
1023
+ return /* @__PURE__ */ o(Ot, { button: e });
1016
1024
  default:
1017
1025
  return D(e, fe.name), null;
1018
1026
  }
1019
1027
  }
1020
- const Ko = {
1028
+ const Zo = {
1021
1029
  functionality: "close-widget",
1022
1030
  hideOnLargeScreen: !0,
1023
1031
  icon: "X"
1024
1032
  };
1025
- function Go() {
1033
+ function Jo() {
1026
1034
  const {
1027
1035
  routerState: { screen: e }
1028
- } = H(), { headerButtons: r } = S(), t = e === "chat" ? r == null ? void 0 : r.chatScreen : e === "sessions" ? r == null ? void 0 : r.sessionsScreen : [];
1029
- return !t || t.length === 0 ? /* @__PURE__ */ o(fe, { button: Ko }) : /* @__PURE__ */ o(ve, { children: t.map((n) => /* @__PURE__ */ o(
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(
1030
1038
  fe,
1031
1039
  {
1032
1040
  button: n
@@ -1034,12 +1042,12 @@ function Go() {
1034
1042
  `${n.functionality}-${n.icon}`
1035
1043
  )) });
1036
1044
  }
1037
- function Ot() {
1045
+ function jt() {
1038
1046
  const {
1039
1047
  routerState: { screen: e }
1040
- } = H(), { isLoading: r } = de(), t = Uo(e), n = _e();
1041
- return /* @__PURE__ */ o("header", { ...t, className: "py-2 px-4 shrink-0", children: /* @__PURE__ */ l("div", { className: "flex items-center gap-2", children: [
1042
- /* @__PURE__ */ o(Xo, {}),
1048
+ } = H(), { isLoading: r } = ce(), t = Vo(e), n = _e();
1049
+ 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, {}),
1043
1051
  /* @__PURE__ */ o(
1044
1052
  "div",
1045
1053
  {
@@ -1047,27 +1055,27 @@ function Ot() {
1047
1055
  "flex-1 h-8 flex items-center",
1048
1056
  e === "sessions" && "ps-2"
1049
1057
  ),
1050
- children: /* @__PURE__ */ o(T, { mode: "wait", children: r ? /* @__PURE__ */ o(f, { snapExit: !0, children: /* @__PURE__ */ o(Dt, { className: "h-5 w-1/2" }) }, "skeleton") : /* @__PURE__ */ o(f, { children: /* @__PURE__ */ o("h2", { className: "font-semibold", children: n }) }, "organization-name") })
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") })
1051
1059
  }
1052
1060
  ),
1053
- /* @__PURE__ */ o(Go, {})
1061
+ /* @__PURE__ */ o(Jo, {})
1054
1062
  ] }) });
1055
1063
  }
1056
- function jt({ className: e }) {
1057
- return /* @__PURE__ */ o(io, { className: d("size-4 animate-spin", e) });
1064
+ function Et({ className: e }) {
1065
+ return /* @__PURE__ */ o(co, { className: d("size-4 animate-spin", e) });
1058
1066
  }
1059
- function Zo() {
1067
+ function Qo() {
1060
1068
  const {
1061
1069
  messagesState: { isInitialFetchLoading: e }
1062
- } = U(), { isSmallScreen: r } = A(), { activeMode: t, Component: n } = pt();
1070
+ } = Y(), { isSmallScreen: r } = A(), { activeMode: t, Component: n } = pt();
1063
1071
  return {
1064
1072
  isCanvasOpen: !e && !r && !!t && !!n
1065
1073
  };
1066
1074
  }
1067
- function Jo() {
1068
- const { activeMode: e, Component: r } = pt(), { sendMessage: t } = U(), { createStateCheckpoint: n } = q(), [s, a] = j(!1), i = async (c) => {
1075
+ function er() {
1076
+ const { activeMode: e, Component: r } = pt(), { sendMessage: t } = Y(), { createStateCheckpoint: n } = U(), [s, a] = j(!1), i = async (l) => {
1069
1077
  try {
1070
- a(!0), await t(c);
1078
+ a(!0), await t(l);
1071
1079
  } catch (p) {
1072
1080
  console.error(p);
1073
1081
  } finally {
@@ -1085,7 +1093,7 @@ function Jo() {
1085
1093
  }
1086
1094
  );
1087
1095
  }
1088
- const Qo = {
1096
+ const tr = {
1089
1097
  "write-a-message": "اكتب رسالة...",
1090
1098
  "session-closed-lead": "تم حل مشكلتك!",
1091
1099
  "new-conversation": "محادثة جديدة",
@@ -1101,7 +1109,7 @@ const Qo = {
1101
1109
  "no-conversations-yet": "لا يوجد محادثات",
1102
1110
  "back-to-conversations": "العودة إلى المحادثات",
1103
1111
  "closed-conversations": "المحادثات المغلقة"
1104
- }, er = {
1112
+ }, or = {
1105
1113
  "write-a-message": "Nachricht schreiben...",
1106
1114
  "session-closed-lead": "Ihr Problem wurde gelöst!",
1107
1115
  "new-conversation": "Neue Konversation",
@@ -1117,7 +1125,7 @@ const Qo = {
1117
1125
  "no-conversations-yet": "noch keine Gespräche",
1118
1126
  "back-to-conversations": "Zurück zur Konversationen",
1119
1127
  "closed-conversations": "Geschlossene Konversationen"
1120
- }, tr = {
1128
+ }, rr = {
1121
1129
  "write-a-message": "Write a message...",
1122
1130
  "session-closed-lead": "Your issue has been resolved!",
1123
1131
  "new-conversation": "New conversation",
@@ -1133,7 +1141,7 @@ const Qo = {
1133
1141
  "no-conversations-yet": "No conversations yet",
1134
1142
  "back-to-conversations": "Back to conversations",
1135
1143
  "closed-conversations": "Closed conversations"
1136
- }, or = {
1144
+ }, nr = {
1137
1145
  "write-a-message": "Écrivez un message...",
1138
1146
  "session-closed-lead": "Votre problème a été résolu !",
1139
1147
  "new-conversation": "Nouvelle conversation",
@@ -1149,7 +1157,7 @@ const Qo = {
1149
1157
  "no-conversations-yet": "Aucune conversation pour le moment",
1150
1158
  "back-to-conversations": "Retour aux conversations",
1151
1159
  "closed-conversations": "Conversations fermées"
1152
- }, rr = {
1160
+ }, sr = {
1153
1161
  "write-a-message": "Schrijf een bericht...",
1154
1162
  "session-closed-lead": "Uw probleem is opgelost!",
1155
1163
  "new-conversation": "Nieuw gesprek",
@@ -1165,7 +1173,7 @@ const Qo = {
1165
1173
  "no-conversations-yet": "Nog geen gesprekken",
1166
1174
  "back-to-conversations": "Terug naar gesprekken",
1167
1175
  "closed-conversations": "Afgesloten gesprekken"
1168
- }, nr = {
1176
+ }, ar = {
1169
1177
  "write-a-message": "Escreva uma mensagem...",
1170
1178
  "session-closed-lead": "Seu problema foi resolvido!",
1171
1179
  "new-conversation": "Nova conversa",
@@ -1181,7 +1189,7 @@ const Qo = {
1181
1189
  "no-conversations-yet": "Nenhuma conversa ainda",
1182
1190
  "back-to-conversations": "Voltar para conversas",
1183
1191
  "closed-conversations": "Conversas fechadas"
1184
- }, sr = {
1192
+ }, ir = {
1185
1193
  "write-a-message": "Escribe un mensaje...",
1186
1194
  "session-closed-lead": "¡Tu problema fue resuelto!",
1187
1195
  "new-conversation": "Nueva conversación",
@@ -1197,7 +1205,7 @@ const Qo = {
1197
1205
  "no-conversations-yet": "Sin conversaciones aún",
1198
1206
  "back-to-conversations": "Volver a conversaciones",
1199
1207
  "closed-conversations": "Conversaciones cerradas"
1200
- }, ar = {
1208
+ }, lr = {
1201
1209
  "write-a-message": "Bir mesaj yazın...",
1202
1210
  "session-closed-lead": "Sorununuz çözüldü!",
1203
1211
  "new-conversation": "Yeni konuşma",
@@ -1213,29 +1221,29 @@ const Qo = {
1213
1221
  "no-conversations-yet": "Henüz konuşma yok",
1214
1222
  "back-to-conversations": "Konuşmalara geri dön",
1215
1223
  "closed-conversations": "Kapatılan konuşmalar"
1216
- }, Et = {
1217
- en: tr,
1218
- ar: Qo,
1219
- nl: rr,
1220
- fr: or,
1221
- de: er,
1222
- pt: nr,
1223
- es: sr,
1224
- tr: ar
1225
- }, ir = Object.keys(Et);
1226
- function lr(e) {
1227
- return ir.includes(e);
1228
- }
1229
- function cr(e, r) {
1230
- const t = Et[r];
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];
1231
1239
  return t && t[e] || "";
1232
1240
  }
1233
1241
  function Z() {
1234
- const { dir: e } = be(), r = S();
1242
+ const { dir: e } = be(), r = N();
1235
1243
  return dt(() => {
1236
- const t = lr(r.language) ? r.language : "en";
1244
+ const t = dr(r.language) ? r.language : "en";
1237
1245
  return {
1238
- t: (n) => cr(n, t),
1246
+ t: (n) => pr(n, t),
1239
1247
  language: t,
1240
1248
  dir: t === "ar" ? "rtl" : "ltr",
1241
1249
  hostDocumentDir: e
@@ -1247,14 +1255,14 @@ function Ie({
1247
1255
  className: r,
1248
1256
  ...t
1249
1257
  }) {
1250
- const { sendMessage: n } = U(), s = () => {
1258
+ const { sendMessage: n } = Y(), s = () => {
1251
1259
  const a = e.trim();
1252
1260
  a && n({ content: a });
1253
1261
  };
1254
1262
  return /* @__PURE__ */ o(
1255
1263
  z,
1256
1264
  {
1257
- ...w("chat/suggested_reply_btn"),
1265
+ ...g("chat/suggested_reply_btn"),
1258
1266
  size: "sm",
1259
1267
  className: d("rounded-xl w-fit", r),
1260
1268
  ...t,
@@ -1263,7 +1271,7 @@ function Ie({
1263
1271
  }
1264
1272
  );
1265
1273
  }
1266
- function dr() {
1274
+ function hr() {
1267
1275
  const { t: e } = Z(), r = [
1268
1276
  e("i-need-more-help"),
1269
1277
  e("this-was-helpful")
@@ -1271,7 +1279,7 @@ function dr() {
1271
1279
  return /* @__PURE__ */ o(
1272
1280
  "div",
1273
1281
  {
1274
- ...w("chat/might_solve_user_issue_suggested_replies_container"),
1282
+ ...g("chat/might_solve_user_issue_suggested_replies_container"),
1275
1283
  className: "flex items-center gap-2 p-2 pb-0 flex-wrap",
1276
1284
  children: r.map((t) => /* @__PURE__ */ o(
1277
1285
  Ie,
@@ -1284,14 +1292,14 @@ function dr() {
1284
1292
  }
1285
1293
  );
1286
1294
  }
1287
- function pr({
1295
+ function mr({
1288
1296
  file: { status: e, file: r, error: t },
1289
1297
  onCancel: n
1290
1298
  }) {
1291
1299
  const [s, a] = j(
1292
1300
  null
1293
1301
  );
1294
- le(() => {
1302
+ ie(() => {
1295
1303
  if (!r.type.startsWith("image/")) return;
1296
1304
  const p = new FileReader();
1297
1305
  return p.onload = () => a(p.result), p.onerror = () => console.error("Error reading file"), p.readAsDataURL(r), () => p.abort();
@@ -1299,13 +1307,13 @@ function pr({
1299
1307
  const i = () => {
1300
1308
  switch (e) {
1301
1309
  case "uploading":
1302
- return /* @__PURE__ */ o(wo, { className: "size-4 animate-spin" });
1310
+ return /* @__PURE__ */ o(uo, { className: "size-4 animate-spin" });
1303
1311
  case "error":
1304
- return /* @__PURE__ */ o(mo, { className: "size-4 text-destructive" });
1312
+ return /* @__PURE__ */ o(wo, { className: "size-4 text-destructive" });
1305
1313
  default:
1306
1314
  return null;
1307
1315
  }
1308
- }, c = () => {
1316
+ }, l = () => {
1309
1317
  const p = r.type.split("/")[0];
1310
1318
  return p === "image" && s ? /* @__PURE__ */ o(
1311
1319
  "img",
@@ -1314,17 +1322,17 @@ function pr({
1314
1322
  className: "object-cover bg-secondary size-full",
1315
1323
  alt: r.name
1316
1324
  }
1317
- ) : p === "audio" ? /* @__PURE__ */ o(go, {}) : p === "video" ? /* @__PURE__ */ o(uo, {}) : /* @__PURE__ */ o(fo, {});
1325
+ ) : p === "audio" ? /* @__PURE__ */ o(fo, {}) : p === "video" ? /* @__PURE__ */ o(vo, {}) : /* @__PURE__ */ o(bo, {});
1318
1326
  };
1319
1327
  return /* @__PURE__ */ o(
1320
1328
  Q,
1321
1329
  {
1322
1330
  side: "bottom",
1323
- content: e === "error" ? /* @__PURE__ */ l("span", { className: "text-destructive", children: [
1331
+ content: e === "error" ? /* @__PURE__ */ c("span", { className: "text-destructive", children: [
1324
1332
  "Failed to upload: ",
1325
1333
  t
1326
1334
  ] }) : r.name,
1327
- children: /* @__PURE__ */ l(
1335
+ children: /* @__PURE__ */ c(
1328
1336
  "div",
1329
1337
  {
1330
1338
  className: d(
@@ -1348,54 +1356,54 @@ function pr({
1348
1356
  children: /* @__PURE__ */ o(xe, { className: "size-4 text-primary-foreground" })
1349
1357
  }
1350
1358
  ),
1351
- /* @__PURE__ */ o(c, {})
1359
+ /* @__PURE__ */ o(l, {})
1352
1360
  ]
1353
1361
  }
1354
1362
  )
1355
1363
  }
1356
1364
  );
1357
1365
  }
1358
- function hr() {
1366
+ function gr() {
1359
1367
  var O;
1360
- const { isSmallScreen: e } = A(), r = ce(null), { sendMessage: t } = U(), { sessionState: n } = q(), { t: s } = Z(), [a, i] = j(""), {
1361
- allFiles: c,
1368
+ const { isSmallScreen: e } = A(), r = le(null), { sendMessage: t } = Y(), { sessionState: n } = U(), { t: s } = Z(), [a, i] = j(""), {
1369
+ allFiles: l,
1362
1370
  emptyTheFiles: p,
1363
- handleCancelUpload: g,
1364
- appendFiles: x,
1365
- isUploading: y,
1366
- successFiles: v
1367
- } = Bt(), h = !!((O = n.session) != null && O.isHandedOff), { isAwaitingBotReply: m } = ht(), u = (b) => {
1368
- x(b);
1369
- }, _ = !a.trim() && v.length === 0, k = async () => {
1370
- if (m || _) return;
1371
- y && console.info("please wait for the file(s) to upload");
1372
- const b = a.trim();
1371
+ handleCancelUpload: m,
1372
+ appendFiles: C,
1373
+ isUploading: x,
1374
+ 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 () => {
1378
+ if (u || _) return;
1379
+ x && console.info("please wait for the file(s) to upload");
1380
+ const f = a.trim();
1373
1381
  t({
1374
- content: b,
1375
- attachments: v.flatMap(
1376
- (C) => C.fileUrl ? [
1382
+ content: f,
1383
+ attachments: h.flatMap(
1384
+ (k) => k.fileUrl ? [
1377
1385
  {
1378
- url: C.fileUrl,
1379
- type: C.file.type,
1380
- name: C.file.name,
1381
- id: C.id,
1382
- size: C.file.size
1386
+ url: k.fileUrl,
1387
+ type: k.file.type,
1388
+ name: k.file.name,
1389
+ id: k.id,
1390
+ size: k.file.size
1383
1391
  }
1384
1392
  ] : []
1385
1393
  )
1386
1394
  }), i(""), p();
1387
1395
  }, {
1388
- getRootProps: I,
1396
+ getRootProps: T,
1389
1397
  getInputProps: M,
1390
- open: F
1391
- } = To({
1392
- onDrop: u,
1398
+ open: P
1399
+ } = Do({
1400
+ onDrop: b,
1393
1401
  noClick: !0,
1394
1402
  onDropRejected() {
1395
1403
  console.error("unsupported file type, or the file is too large");
1396
1404
  },
1397
1405
  maxSize: 5 * 1024 * 1024,
1398
- accept: h ? {
1406
+ accept: v ? {
1399
1407
  "text/*": [".txt"],
1400
1408
  "image/*": [".png", ".jpg", ".jpeg", ".gif"],
1401
1409
  "application/pdf": [".pdf"]
@@ -1405,22 +1413,22 @@ function hr() {
1405
1413
  "image/gif": [".gif"],
1406
1414
  "image/webp": [".webp"]
1407
1415
  }
1408
- }), P = (b) => {
1409
- const C = b.clipboardData;
1410
- C && C.files.length > 0 && u(Array.from(C.files));
1416
+ }), F = (f) => {
1417
+ const k = f.clipboardData;
1418
+ k && k.files.length > 0 && b(Array.from(k.files));
1411
1419
  };
1412
- return /* @__PURE__ */ l(
1420
+ return /* @__PURE__ */ c(
1413
1421
  "div",
1414
1422
  {
1415
- ...w("chat/input_box/root"),
1423
+ ...g("chat/input_box/root"),
1416
1424
  className: "p-2 relative space-y-1",
1417
- ...I(),
1425
+ ...T(),
1418
1426
  children: [
1419
1427
  /* @__PURE__ */ o("input", { ...M() }),
1420
- /* @__PURE__ */ l(
1428
+ /* @__PURE__ */ c(
1421
1429
  "div",
1422
1430
  {
1423
- ...w("chat/input_box/inner_root"),
1431
+ ...g("chat/input_box/inner_root"),
1424
1432
  className: d(
1425
1433
  "transition-all",
1426
1434
  "bg-white",
@@ -1429,31 +1437,31 @@ function hr() {
1429
1437
  "hover:border-primary focus-within:border-primary"
1430
1438
  ),
1431
1439
  children: [
1432
- /* @__PURE__ */ l(
1440
+ /* @__PURE__ */ c(
1433
1441
  "div",
1434
1442
  {
1435
- ...w("chat/input_box/textarea_and_attachments_container"),
1443
+ ...g("chat/input_box/textarea_and_attachments_container"),
1436
1444
  className: "flex flex-col gap-2",
1437
1445
  children: [
1438
- c.length > 0 && /* @__PURE__ */ o(
1446
+ l.length > 0 && /* @__PURE__ */ o(
1439
1447
  "div",
1440
1448
  {
1441
- ...w("chat/input_box/attachments_container"),
1449
+ ...g("chat/input_box/attachments_container"),
1442
1450
  className: "flex items-center gap-1",
1443
- children: /* @__PURE__ */ o(T, { mode: "popLayout", children: c.map((b) => /* @__PURE__ */ o(f, { snapExit: !0, children: /* @__PURE__ */ o(
1444
- pr,
1451
+ children: /* @__PURE__ */ o(I, { mode: "popLayout", children: l.map((f) => /* @__PURE__ */ o(w, { snapExit: !0, children: /* @__PURE__ */ o(
1452
+ mr,
1445
1453
  {
1446
- onCancel: () => g(b.id),
1447
- file: b
1454
+ onCancel: () => m(f.id),
1455
+ file: f
1448
1456
  }
1449
- ) }, b.id)) })
1457
+ ) }, f.id)) })
1450
1458
  }
1451
1459
  ),
1452
1460
  /* @__PURE__ */ o(
1453
1461
  "textarea",
1454
1462
  {
1455
- ...w("chat/input_box/textarea"),
1456
- onPaste: P,
1463
+ ...g("chat/input_box/textarea"),
1464
+ onPaste: F,
1457
1465
  ref: r,
1458
1466
  id: "chat-input",
1459
1467
  value: a,
@@ -1463,15 +1471,15 @@ function hr() {
1463
1471
  // INPUT_CONTAINER_B_RADIUS,
1464
1472
  "max-h-16 [field-sizing:content]",
1465
1473
  "w-full resize-none px-2",
1466
- c.length === 0 && "pt-1",
1474
+ l.length === 0 && "pt-1",
1467
1475
  "bg-transparent outline-none",
1468
1476
  "placeholder:text-muted-foreground",
1469
1477
  // 16px on mobiles prevents auto-zoom on the input when focused
1470
1478
  e ? "text-[16px]" : "text-sm"
1471
1479
  ),
1472
- onChange: (b) => i(b.target.value),
1473
- onKeyDown: async (b) => {
1474
- b.key === "Enter" && !b.shiftKey && (b.preventDefault(), k());
1480
+ onChange: (f) => i(f.target.value),
1481
+ onKeyDown: async (f) => {
1482
+ f.key === "Enter" && !f.shiftKey && (f.preventDefault(), y());
1475
1483
  },
1476
1484
  placeholder: s("write-a-message")
1477
1485
  }
@@ -1479,7 +1487,7 @@ function hr() {
1479
1487
  ]
1480
1488
  }
1481
1489
  ),
1482
- /* @__PURE__ */ l("div", { className: "gap-2 flex justify-between", children: [
1490
+ /* @__PURE__ */ c("div", { className: "gap-2 flex justify-between", children: [
1483
1491
  /* @__PURE__ */ o(
1484
1492
  Q,
1485
1493
  {
@@ -1489,13 +1497,13 @@ function hr() {
1489
1497
  children: /* @__PURE__ */ o(
1490
1498
  z,
1491
1499
  {
1492
- onClick: F,
1500
+ onClick: P,
1493
1501
  size: "fit",
1494
1502
  variant: "ghost",
1495
1503
  className: d(
1496
1504
  "rounded-full size-8 flex items-center justify-center p-0 overflow-hidden"
1497
1505
  ),
1498
- children: /* @__PURE__ */ o(T, { mode: "wait", children: h ? /* @__PURE__ */ o(f, { children: /* @__PURE__ */ o(lo, { className: "size-4" }) }, "paper-clip") : /* @__PURE__ */ o(f, { children: /* @__PURE__ */ o(co, { className: "size-4" }) }, "image-icon") })
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") })
1499
1507
  }
1500
1508
  )
1501
1509
  }
@@ -1504,10 +1512,10 @@ function hr() {
1504
1512
  z,
1505
1513
  {
1506
1514
  size: "fit",
1507
- onClick: k,
1508
- disabled: m || y || _,
1515
+ onClick: y,
1516
+ disabled: u || x || _,
1509
1517
  className: "rounded-full size-8 flex items-center justify-center p-0",
1510
- children: /* @__PURE__ */ o(T, { mode: "wait", children: m || y ? /* @__PURE__ */ o(f, { snapExit: !0, children: /* @__PURE__ */ o(po, { className: "size-4 animate-spin animate-iteration-infinite" }) }, "loading") : /* @__PURE__ */ o(f, { snapExit: !0, children: /* @__PURE__ */ o(ho, { className: "size-4" }) }, "send") })
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") })
1511
1519
  }
1512
1520
  ) })
1513
1521
  ] })
@@ -1518,11 +1526,11 @@ function hr() {
1518
1526
  }
1519
1527
  );
1520
1528
  }
1521
- function mr() {
1522
- const { widgetCtx: e } = Y(), { router: r } = S(), { canCreateNewSession: t } = q(), { toSessionsScreen: n } = H(), { t: s } = Z();
1523
- return /* @__PURE__ */ o("div", { className: "p-2", children: /* @__PURE__ */ l("div", { className: "p-2 bg-muted rounded-3xl space-y-2", children: [
1524
- /* @__PURE__ */ l("div", { className: "ps-2 flex items-center gap-1", children: [
1525
- /* @__PURE__ */ o(gt, { className: "size-4 text-emerald-600" }),
1529
+ function wr() {
1530
+ const { widgetCtx: e } = q(), { router: r } = N(), { canCreateNewSession: t } = U(), { toSessionsScreen: n } = H(), { t: s } = Z();
1531
+ return /* @__PURE__ */ o("div", { className: "p-2", children: /* @__PURE__ */ c("div", { className: "p-2 bg-muted rounded-3xl space-y-2", children: [
1532
+ /* @__PURE__ */ c("div", { className: "ps-2 flex items-center gap-1", children: [
1533
+ /* @__PURE__ */ o(mt, { className: "size-4 text-emerald-600" }),
1526
1534
  /* @__PURE__ */ o("h2", { className: "text-sm font-medium", children: s("session-closed-lead") })
1527
1535
  ] }),
1528
1536
  /* @__PURE__ */ o("div", { children: t || r != null && r.chatScreenOnly ? /* @__PURE__ */ o(
@@ -1535,11 +1543,11 @@ function mr() {
1535
1543
  ) : /* @__PURE__ */ o(z, { onClick: n, className: "rounded-2xl w-full", children: s("back-to-conversations") }) })
1536
1544
  ] }) });
1537
1545
  }
1538
- function wr() {
1546
+ function ur() {
1539
1547
  var i;
1540
- const { initialQuestions: e, initialQuestionsPosition: r, thisWasHelpfulOrNot: t } = S(), { sessionState: n } = q(), { messagesState: s } = U(), a = s.messages.length === 0;
1541
- return /* @__PURE__ */ o("footer", { children: /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(T, { mode: "wait", children: n.session && !((i = n.session) != null && i.isOpened) ? /* @__PURE__ */ o(
1542
- f,
1548
+ const { initialQuestions: e, initialQuestionsPosition: r, thisWasHelpfulOrNot: t } = N(), { sessionState: n } = U(), { messagesState: s } = Y(), a = s.messages.length === 0;
1549
+ 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
+ w,
1543
1551
  {
1544
1552
  className: "overflow-hidden",
1545
1553
  overrides: {
@@ -1547,11 +1555,11 @@ function wr() {
1547
1555
  animate: { height: "auto" },
1548
1556
  exit: { height: 0 }
1549
1557
  },
1550
- children: /* @__PURE__ */ o(mr, {})
1558
+ children: /* @__PURE__ */ o(wr, {})
1551
1559
  },
1552
1560
  "session-closed"
1553
- ) : /* @__PURE__ */ l(
1554
- f,
1561
+ ) : /* @__PURE__ */ c(
1562
+ w,
1555
1563
  {
1556
1564
  className: "overflow-hidden",
1557
1565
  overrides: {
@@ -1560,27 +1568,27 @@ function wr() {
1560
1568
  exit: { height: 0 }
1561
1569
  },
1562
1570
  children: [
1563
- s.lastAIResMightSolveUserIssue && (t == null ? void 0 : t.enabled) !== !1 && /* @__PURE__ */ o(dr, {}),
1564
- a && e && r !== "below-initial-messages" && /* @__PURE__ */ o("div", { className: "flex items-center flex-row justify-end gap-2 flex-wrap px-2", children: e == null ? void 0 : e.map((c, p) => /* @__PURE__ */ o(
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(
1565
1573
  Ie,
1566
1574
  {
1567
- suggestion: c
1575
+ suggestion: l
1568
1576
  },
1569
- `${c}-${p}`
1577
+ `${l}-${p}`
1570
1578
  )) }),
1571
- /* @__PURE__ */ o(hr, {})
1579
+ /* @__PURE__ */ o(gr, {})
1572
1580
  ]
1573
1581
  },
1574
1582
  "chat-input"
1575
1583
  ) }) }) });
1576
1584
  }
1577
- function gr({
1585
+ function fr({
1578
1586
  isFirstInGroup: e,
1579
1587
  isLastInGroup: r,
1580
1588
  isAloneInGroup: t,
1581
1589
  ...n
1582
1590
  }) {
1583
- const { componentStore: s } = Y();
1591
+ const { componentStore: s } = q();
1584
1592
  if (n.data.action) {
1585
1593
  const i = s.getComponent(n.data.action.name);
1586
1594
  if (i)
@@ -1606,7 +1614,7 @@ function gr({
1606
1614
  isAloneInGroup: t
1607
1615
  }
1608
1616
  ) : /* @__PURE__ */ o(
1609
- ae,
1617
+ ge,
1610
1618
  {
1611
1619
  ...n,
1612
1620
  isFirstInGroup: e,
@@ -1615,54 +1623,81 @@ function gr({
1615
1623
  }
1616
1624
  );
1617
1625
  }
1618
- function we({
1626
+ function Ft({
1627
+ messages: e,
1628
+ className: r,
1629
+ containerClassName: t
1630
+ }) {
1631
+ var i, l;
1632
+ const { timestamps: n } = N();
1633
+ if (!((i = n == null ? void 0 : n.perMessageGroup) != null && i.enabled))
1634
+ return null;
1635
+ const s = (l = e[e.length - 1]) == null ? void 0 : l.timestamp;
1636
+ if (!s) return null;
1637
+ const a = (() => {
1638
+ try {
1639
+ return new Date(s).toLocaleTimeString([], {
1640
+ hour: "2-digit",
1641
+ minute: "2-digit",
1642
+ hour12: !0
1643
+ });
1644
+ } catch (p) {
1645
+ return console.error(p), null;
1646
+ }
1647
+ })();
1648
+ return a ? /* @__PURE__ */ o("div", { className: t, children: /* @__PURE__ */ o("span", { className: d("text-xs text-muted-foreground", r), children: a }) }) : null;
1649
+ }
1650
+ function me({
1619
1651
  messages: e,
1620
1652
  agent: r,
1621
1653
  suggestedReplies: t
1622
1654
  }) {
1623
- return /* @__PURE__ */ l(
1655
+ return /* @__PURE__ */ c(
1624
1656
  "div",
1625
1657
  {
1626
- ...w("chat/agent_msg_group/root"),
1658
+ ...g("chat/agent_msg_group/root"),
1627
1659
  className: d("flex items-end gap-2"),
1628
1660
  children: [
1629
1661
  /* @__PURE__ */ o(Q, { content: r == null ? void 0 : r.name, side: "right", align: "end", children: /* @__PURE__ */ o(
1630
- ge,
1662
+ we,
1631
1663
  {
1632
- ...w("chat/agent_msg_group/root/avatar"),
1664
+ ...g("chat/agent_msg_group/root/avatar"),
1633
1665
  agent: r,
1634
1666
  className: "hidden"
1635
1667
  }
1636
1668
  ) }),
1637
- /* @__PURE__ */ l("div", { className: d("flex-1 flex flex-col gap-2"), children: [
1638
- /* @__PURE__ */ l(
1669
+ /* @__PURE__ */ c("div", { className: d("flex-1 flex flex-col gap-1"), children: [
1670
+ /* @__PURE__ */ c(
1639
1671
  "div",
1640
1672
  {
1641
- ...w("chat/agent_msg_group/avatar_and_msgs/root"),
1673
+ ...g("chat/agent_msg_group/avatar_and_msgs/root"),
1642
1674
  className: d("flex items-end gap-2"),
1643
1675
  children: [
1644
1676
  /* @__PURE__ */ o(Q, { content: r == null ? void 0 : r.name, side: "right", align: "end", children: /* @__PURE__ */ o(
1645
- ge,
1677
+ we,
1646
1678
  {
1647
- ...w("chat/agent_msg_group/avatar_and_msgs/avatar"),
1679
+ ...g("chat/agent_msg_group/avatar_and_msgs/avatar"),
1648
1680
  agent: r
1649
1681
  }
1650
1682
  ) }),
1651
- /* @__PURE__ */ o(
1683
+ /* @__PURE__ */ c(
1652
1684
  "div",
1653
1685
  {
1654
- ...w("chat/agent_msg_group/avatar_and_msgs/msgs"),
1686
+ ...g("chat/agent_msg_group/avatar_and_msgs/msgs"),
1655
1687
  className: d("flex-1 flex flex-col gap-1"),
1656
- children: e.map((n, s, a) => /* @__PURE__ */ o(
1657
- gr,
1658
- {
1659
- isFirstInGroup: s === 0,
1660
- isLastInGroup: s === a.length - 1,
1661
- isAloneInGroup: a.length === 1,
1662
- ...n
1663
- },
1664
- n.id
1665
- ))
1688
+ children: [
1689
+ e.map((n, s, a) => /* @__PURE__ */ o(
1690
+ fr,
1691
+ {
1692
+ isFirstInGroup: s === 0,
1693
+ isLastInGroup: s === a.length - 1,
1694
+ isAloneInGroup: a.length === 1,
1695
+ ...n
1696
+ },
1697
+ n.id
1698
+ )),
1699
+ /* @__PURE__ */ o(Ft, { messages: e })
1700
+ ]
1666
1701
  }
1667
1702
  )
1668
1703
  ]
@@ -1671,7 +1706,7 @@ function we({
1671
1706
  t && t.length > 0 && /* @__PURE__ */ o(
1672
1707
  "div",
1673
1708
  {
1674
- ...w("chat/agent_msg_group/suggestions"),
1709
+ ...g("chat/agent_msg_group/suggestions"),
1675
1710
  className: d("flex flex-col gap-1 ps-8"),
1676
1711
  children: t == null ? void 0 : t.map((n, s) => /* @__PURE__ */ o(
1677
1712
  Ie,
@@ -1687,24 +1722,24 @@ function we({
1687
1722
  }
1688
1723
  );
1689
1724
  }
1690
- function ur({
1725
+ function vr({
1691
1726
  message: e,
1692
1727
  isFirstInGroup: r,
1693
1728
  isLastInGroup: t,
1694
1729
  isAloneInGroup: n
1695
1730
  }) {
1696
1731
  var s;
1697
- return /* @__PURE__ */ l(
1732
+ return /* @__PURE__ */ c(
1698
1733
  "div",
1699
1734
  {
1700
- ...w("chat/user_msg/root"),
1735
+ ...g("chat/user_msg/root"),
1701
1736
  className: "w-5/6 flex flex-col items-end gap-1",
1702
1737
  children: [
1703
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)) }),
1704
1739
  e.content.length > 0 && /* @__PURE__ */ o(
1705
1740
  "div",
1706
1741
  {
1707
- ...w("chat/user_msg/msg"),
1742
+ ...g("chat/user_msg/msg"),
1708
1743
  "data-first": r,
1709
1744
  "data-last": t,
1710
1745
  "data-alone": n,
@@ -1727,127 +1762,115 @@ function ur({
1727
1762
  }
1728
1763
  );
1729
1764
  }
1730
- function fr({
1765
+ function br({
1731
1766
  messages: e
1732
1767
  }) {
1733
- return /* @__PURE__ */ o(
1768
+ return /* @__PURE__ */ c(
1734
1769
  "div",
1735
1770
  {
1736
- ...w("chat/user_msg_group/root"),
1771
+ ...g("chat/user_msg_group/root"),
1737
1772
  className: d("group", "flex flex-col gap-1 justify-end items-end"),
1738
- children: e.map((r, t, n) => /* @__PURE__ */ o(
1739
- ur,
1740
- {
1741
- message: r,
1742
- isFirstInGroup: t === 0,
1743
- isLastInGroup: t === n.length - 1,
1744
- isAloneInGroup: n.length === 1
1745
- },
1746
- r.id
1747
- ))
1773
+ children: [
1774
+ e.map((r, t, n) => /* @__PURE__ */ o(
1775
+ vr,
1776
+ {
1777
+ message: r,
1778
+ isFirstInGroup: t === 0,
1779
+ isLastInGroup: t === n.length - 1,
1780
+ isAloneInGroup: n.length === 1
1781
+ },
1782
+ r.id
1783
+ )),
1784
+ /* @__PURE__ */ o(Ft, { messages: e, containerClassName: "ms-auto" })
1785
+ ]
1748
1786
  }
1749
1787
  );
1750
1788
  }
1751
- function vr(e) {
1789
+ function xr(e) {
1752
1790
  const r = [];
1753
1791
  let t = null;
1754
1792
  return e.forEach((n) => {
1755
- var s, a, i, c;
1756
- (!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) !== ((c = t[0].agent) == null ? void 0 : c.id) && (t = [], r.push(t)), t.push(n);
1793
+ var s, a, i, l;
1794
+ (!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);
1757
1795
  }), r;
1758
1796
  }
1759
- function br(e) {
1797
+ function yr(e) {
1760
1798
  var r;
1761
1799
  return ((r = e == null ? void 0 : e[0]) == null ? void 0 : r.type) === "FROM_USER";
1762
1800
  }
1763
- function xr(e) {
1801
+ function kr(e) {
1764
1802
  var r;
1765
1803
  return ((r = e == null ? void 0 : e[0]) == null ? void 0 : r.type) === "FROM_BOT";
1766
1804
  }
1767
- function yr(e) {
1805
+ function Cr(e) {
1768
1806
  var r;
1769
1807
  return ((r = e == null ? void 0 : e[0]) == null ? void 0 : r.type) === "FROM_AGENT";
1770
1808
  }
1771
- function kr() {
1809
+ function zr() {
1772
1810
  const {
1773
1811
  messagesState: { messages: e }
1774
- } = U(), { isAwaitingBotReply: r } = ht(), { componentStore: t } = Y(), n = S(), { initialQuestions: s, initialQuestionsPosition: a } = n, i = dt(
1775
- () => vr(e),
1812
+ } = Y(), { chatBannerItems: r } = N();
1813
+ 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}`)
1815
+ ) });
1816
+ }
1817
+ function Nr() {
1818
+ const {
1819
+ messagesState: { messages: e }
1820
+ } = Y(), { isAwaitingBotReply: r } = ht(), { componentStore: t } = q(), n = N(), { initialQuestions: s, initialQuestionsPosition: a } = n, i = dt(
1821
+ () => xr(e),
1776
1822
  [e]
1777
- ), c = n.persistentInitialMessages || [], p = (() => {
1823
+ ), l = (() => {
1778
1824
  var h;
1779
- return e.length ? ((h = n.advancedInitialMessages) == null ? void 0 : h.filter((m) => !!m.persistent)) || [] : n.advancedInitialMessages || [];
1780
- })(), g = (() => {
1825
+ return e.length ? ((h = n.advancedInitialMessages) == null ? void 0 : h.filter((v) => !!v.persistent)) || [] : n.advancedInitialMessages || [];
1826
+ })(), p = (() => {
1781
1827
  var h;
1782
- return p.length ? [] : e.length ? [] : (h = n.initialMessages) != null && h.length ? n.initialMessages : ["Hello, how can I help you?"];
1783
- })(), x = t.getComponent(
1828
+ return l.length ? [] : e.length ? [] : (h = n.initialMessages) != null && h.length ? n.initialMessages : ["Hello, how can I help you?"];
1829
+ })(), m = t.getComponent(
1784
1830
  "loading"
1785
- ), y = ce(null);
1786
- function v() {
1831
+ ), C = le(null);
1832
+ function x() {
1787
1833
  setTimeout(() => {
1788
- const h = y.current;
1834
+ const h = C.current;
1789
1835
  h && (h.scrollTop = h.scrollHeight);
1790
1836
  }, 0);
1791
1837
  }
1792
- return le(() => {
1793
- v();
1794
- }, [e]), /* @__PURE__ */ l(
1838
+ return ie(() => {
1839
+ x();
1840
+ }, [e]), /* @__PURE__ */ c(
1795
1841
  "div",
1796
1842
  {
1797
- ...w("chat/msgs/root"),
1798
- ref: y,
1843
+ ...g("chat/msgs/root"),
1844
+ ref: C,
1799
1845
  className: "max-h-full scroll-smooth relative flex-1 py-2 px-4 flex flex-col gap-2 overflow-auto",
1800
1846
  children: [
1801
- /* @__PURE__ */ o("div", { ...w("chat/persistent_initial_msgs/root"), children: c.map((h, m, u) => /* @__PURE__ */ o(
1802
- ae,
1847
+ /* @__PURE__ */ o(zr, {}),
1848
+ l.length > 0 && /* @__PURE__ */ o(
1849
+ me,
1803
1850
  {
1804
- component: "bot_message",
1805
- data: { message: h },
1806
- id: h,
1807
- type: "FROM_BOT",
1808
- timestamp: Date.now().toString(),
1809
- dataComponentNames: {
1810
- messageContainer: "chat/persistent_initial_msg/root",
1811
- message: "chat/persistent_initial_msg/msg"
1812
- },
1813
- classNames: {
1814
- messageContainer: d(
1815
- "w-full flex flex-col items-center text-center"
1816
- ),
1817
- message: "w-full bg-transparent border-none shadow-none text-xs"
1818
- },
1819
- isFirstInGroup: m === 0,
1820
- isLastInGroup: m === u.length - 1,
1821
- isAloneInGroup: u.length === 1
1822
- },
1823
- `${h}-${m}`
1824
- )) }),
1825
- p.length > 0 && /* @__PURE__ */ o(
1826
- we,
1827
- {
1828
- messages: p.map(
1829
- ({ message: h }, m) => ({
1851
+ messages: l.map(
1852
+ ({ message: h }, v) => ({
1830
1853
  component: "bot_message",
1831
1854
  data: { message: h },
1832
- id: `${m}-${h}`,
1855
+ id: `${v}-${h}`,
1833
1856
  type: "FROM_BOT",
1834
- timestamp: Date.now().toString()
1857
+ timestamp: null
1835
1858
  })
1836
1859
  ),
1837
1860
  suggestedReplies: e.length === 0 && a === "below-initial-messages" ? s : void 0,
1838
1861
  agent: n.bot ? { ...n.bot, isAi: !0, id: null } : void 0
1839
1862
  }
1840
1863
  ),
1841
- e.length === 0 && g.length > 0 && /* @__PURE__ */ o(
1842
- we,
1864
+ e.length === 0 && p.length > 0 && /* @__PURE__ */ o(
1865
+ me,
1843
1866
  {
1844
- messages: g.map(
1845
- (h, m) => ({
1867
+ messages: p.map(
1868
+ (h, v) => ({
1846
1869
  component: "bot_message",
1847
1870
  data: { message: h },
1848
- id: `${m}-${h}`,
1871
+ id: `${v}-${h}`,
1849
1872
  type: "FROM_BOT",
1850
- timestamp: Date.now().toString()
1873
+ timestamp: null
1851
1874
  })
1852
1875
  ),
1853
1876
  suggestedReplies: a === "below-initial-messages" ? s : void 0,
@@ -1855,44 +1878,44 @@ function kr() {
1855
1878
  }
1856
1879
  ),
1857
1880
  i.map((h) => {
1858
- var _, k, I;
1859
- const m = (_ = h == null ? void 0 : h[0]) == null ? void 0 : _.type, u = (k = h[0]) == null ? void 0 : k.id;
1860
- if (!m || !u) return null;
1861
- if (br(h))
1862
- return /* @__PURE__ */ o(fr, { messages: h }, u);
1863
- if (xr(h) || yr(h)) {
1864
- const M = (I = h[0]) == null ? void 0 : I.agent;
1881
+ var b, _, y;
1882
+ const v = (b = h == null ? void 0 : h[0]) == null ? void 0 : b.type, u = (_ = h[0]) == null ? void 0 : _.id;
1883
+ 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;
1865
1888
  return /* @__PURE__ */ o(
1866
- we,
1889
+ me,
1867
1890
  {
1868
1891
  messages: h,
1869
- agent: M
1892
+ agent: T
1870
1893
  },
1871
1894
  u
1872
1895
  );
1873
1896
  }
1874
1897
  return null;
1875
1898
  }),
1876
- r && x && /* @__PURE__ */ o(x, { agent: n.bot })
1899
+ r && m && /* @__PURE__ */ o(m, { agent: n.bot })
1877
1900
  ]
1878
1901
  }
1879
1902
  );
1880
1903
  }
1881
- function Cr() {
1904
+ function Sr() {
1882
1905
  const {
1883
1906
  messagesState: { isInitialFetchLoading: e }
1884
- } = U(), {
1907
+ } = Y(), {
1885
1908
  sessionState: { session: r }
1886
- } = q(), { isCanvasOpen: t } = Zo(), { theme: n } = X();
1909
+ } = U(), { isCanvasOpen: t } = Qo(), { theme: n } = X();
1887
1910
  Se({
1888
1911
  width: t ? n.screens.chat.withCanvas.width : n.screens.chat.width,
1889
1912
  height: t ? n.screens.chat.withCanvas.height : n.screens.chat.height
1890
1913
  });
1891
- const s = ce((r == null ? void 0 : r.id) || "chat").current;
1914
+ const s = le((r == null ? void 0 : r.id) || "chat").current;
1892
1915
  return /* @__PURE__ */ o(
1893
1916
  "div",
1894
1917
  {
1895
- ...w("chat/root"),
1918
+ ...g("chat/root"),
1896
1919
  className: d("flex flex-col overflow-hidden"),
1897
1920
  style: {
1898
1921
  width: "100vw",
@@ -1904,25 +1927,25 @@ function Cr() {
1904
1927
  maxHeight: "100vh"
1905
1928
  // Relative to the iframe
1906
1929
  },
1907
- children: /* @__PURE__ */ l("div", { className: "size-full justify-between flex flex-col", children: [
1908
- /* @__PURE__ */ o(Ot, {}),
1909
- /* @__PURE__ */ o(T, { mode: "wait", children: e ? /* @__PURE__ */ o(
1910
- f,
1930
+ children: /* @__PURE__ */ c("div", { className: "size-full justify-between flex flex-col", children: [
1931
+ /* @__PURE__ */ o(jt, {}),
1932
+ /* @__PURE__ */ o(I, { mode: "wait", children: e ? /* @__PURE__ */ o(
1933
+ w,
1911
1934
  {
1912
1935
  className: "flex flex-col items-center justify-center w-full flex-1",
1913
- children: /* @__PURE__ */ o(jt, {})
1936
+ children: /* @__PURE__ */ o(Et, {})
1914
1937
  },
1915
1938
  "loading"
1916
- ) : /* @__PURE__ */ l(
1917
- f,
1939
+ ) : /* @__PURE__ */ c(
1940
+ w,
1918
1941
  {
1919
1942
  className: "flex items-start h-full flex-1 overflow-auto",
1920
1943
  snapExit: !0,
1921
1944
  children: [
1922
- /* @__PURE__ */ l(
1945
+ /* @__PURE__ */ c(
1923
1946
  "div",
1924
1947
  {
1925
- ...w("chat/main/root"),
1948
+ ...g("chat/main/root"),
1926
1949
  className: d(
1927
1950
  "flex flex-col h-full overflow-auto transition-all",
1928
1951
  t ? "w-2/5" : "w-full"
@@ -1932,15 +1955,15 @@ function Cr() {
1932
1955
  transitionDuration: n.screens.chat.withCanvas.transitionDuration
1933
1956
  },
1934
1957
  children: [
1935
- /* @__PURE__ */ o(kr, {}),
1936
- /* @__PURE__ */ o(wr, {})
1958
+ /* @__PURE__ */ o(Nr, {}),
1959
+ /* @__PURE__ */ o(ur, {})
1937
1960
  ]
1938
1961
  }
1939
1962
  ),
1940
1963
  /* @__PURE__ */ o(
1941
1964
  "div",
1942
1965
  {
1943
- ...w("chat/canvas/root"),
1966
+ ...g("chat/canvas/root"),
1944
1967
  className: d(
1945
1968
  "h-full overflow-auto transition-all",
1946
1969
  t ? "w-3/5" : "w-0"
@@ -1949,7 +1972,7 @@ function Cr() {
1949
1972
  transitionTimingFunction: n.screens.chat.withCanvas.transitionTimingFunction,
1950
1973
  transitionDuration: n.screens.chat.withCanvas.transitionDuration
1951
1974
  },
1952
- children: /* @__PURE__ */ o(Jo, {})
1975
+ children: /* @__PURE__ */ o(er, {})
1953
1976
  }
1954
1977
  )
1955
1978
  ]
@@ -1960,7 +1983,7 @@ function Cr() {
1960
1983
  }
1961
1984
  );
1962
1985
  }
1963
- function zr({ className: e }) {
1986
+ function _r({ className: e }) {
1964
1987
  return /* @__PURE__ */ o(
1965
1988
  "svg",
1966
1989
  {
@@ -1980,8 +2003,8 @@ function zr({ className: e }) {
1980
2003
  }
1981
2004
  );
1982
2005
  }
1983
- function Ft({ className: e }) {
1984
- const { token: r } = S();
2006
+ function Wt({ className: e }) {
2007
+ const { token: r } = N();
1985
2008
  return /* @__PURE__ */ o(
1986
2009
  "div",
1987
2010
  {
@@ -1989,7 +2012,7 @@ function Ft({ className: e }) {
1989
2012
  "flex items-center justify-center gap-2 p-2 pt-0",
1990
2013
  e
1991
2014
  ),
1992
- children: /* @__PURE__ */ o(W, { children: /* @__PURE__ */ l(
2015
+ children: /* @__PURE__ */ o(W, { children: /* @__PURE__ */ c(
1993
2016
  "a",
1994
2017
  {
1995
2018
  href: `https://open.cx/?ref=${r}`,
@@ -2003,8 +2026,8 @@ function Ft({ className: e }) {
2003
2026
  children: [
2004
2027
  /* @__PURE__ */ o("span", { children: "Powered by" }),
2005
2028
  /* @__PURE__ */ o("span", { children: " " }),
2006
- /* @__PURE__ */ l("span", { className: "flex items-center gap-[1px]", children: [
2007
- /* @__PURE__ */ o("span", { children: /* @__PURE__ */ o(zr, { className: "size-3 inline-block" }) }),
2029
+ /* @__PURE__ */ c("span", { className: "flex items-center gap-[1px]", children: [
2030
+ /* @__PURE__ */ o("span", { children: /* @__PURE__ */ o(_r, { className: "size-3 inline-block" }) }),
2008
2031
  /* @__PURE__ */ o("span", { className: "font-semibold", children: "open" })
2009
2032
  ] })
2010
2033
  ]
@@ -2013,15 +2036,15 @@ function Ft({ className: e }) {
2013
2036
  }
2014
2037
  );
2015
2038
  }
2016
- function Nr({ children: e }) {
2039
+ function Ir({ children: e }) {
2017
2040
  return /* @__PURE__ */ o("p", { className: "ps-4 text-xs text-muted-foreground/75 uppercase font-semibold tracking-tight", children: e });
2018
2041
  }
2019
2042
  function lt({
2020
2043
  session: e,
2021
2044
  className: r
2022
2045
  }) {
2023
- const { bot: t } = S(), { 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) || "";
2024
- return /* @__PURE__ */ l(
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) || "";
2047
+ return /* @__PURE__ */ c(
2025
2048
  z,
2026
2049
  {
2027
2050
  variant: "ghost",
@@ -2032,75 +2055,75 @@ function lt({
2032
2055
  ),
2033
2056
  onClick: () => n(e.id),
2034
2057
  children: [
2035
- /* @__PURE__ */ l("div", { className: "flex-1 flex gap-2 items-center", children: [
2036
- /* @__PURE__ */ o(T, { mode: "wait", children: /* @__PURE__ */ o(f, { snapExit: !0, children: /* @__PURE__ */ l(Ce, { className: "size-10", children: [
2058
+ /* @__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: [
2037
2060
  /* @__PURE__ */ o(ze, { src: a, alt: "Agent Icon" }),
2038
- /* @__PURE__ */ o(Ne, { children: /* @__PURE__ */ o(vo, { className: "size-4" }) })
2061
+ /* @__PURE__ */ o(Ne, { children: /* @__PURE__ */ o(xo, { className: "size-4" }) })
2039
2062
  ] }) }) }),
2040
- /* @__PURE__ */ l("div", { className: "flex-1", children: [
2041
- /* @__PURE__ */ o(T, { mode: "wait", children: /* @__PURE__ */ o(f, { snapExit: !0, children: s }, s) }),
2042
- /* @__PURE__ */ o(T, { mode: "wait", children: e.lastMessage ? /* @__PURE__ */ o(f, { snapExit: !0, children: /* @__PURE__ */ o(
2063
+ /* @__PURE__ */ c("div", { className: "flex-1", children: [
2064
+ /* @__PURE__ */ o(I, { mode: "wait", children: /* @__PURE__ */ o(w, { snapExit: !0, children: s }, s) }),
2065
+ /* @__PURE__ */ o(I, { mode: "wait", children: e.lastMessage ? /* @__PURE__ */ o(w, { snapExit: !0, children: /* @__PURE__ */ o(
2043
2066
  St,
2044
2067
  {
2045
2068
  remarkPlugins: [wt],
2046
- rehypePlugins: [mt],
2069
+ rehypePlugins: [ut],
2047
2070
  className: "line-clamp-1 overflow-hidden text-ellipsis text-xs text-muted-foreground",
2048
2071
  children: e.lastMessage
2049
2072
  }
2050
- ) }, e.lastMessage || "content") : /* @__PURE__ */ o(f, { className: "w-1/2", snapExit: !0, children: /* @__PURE__ */ o(Dt, { className: "h-4 w-full" }) }, "skeleton") })
2073
+ ) }, e.lastMessage || "content") : /* @__PURE__ */ o(w, { className: "w-1/2", snapExit: !0, children: /* @__PURE__ */ o(Rt, { className: "h-4 w-full" }) }, "skeleton") })
2051
2074
  ] })
2052
2075
  ] }),
2053
- /* @__PURE__ */ o(bo, { className: "size-4 text-muted-foreground shrink-0 rtl:-scale-100" })
2076
+ /* @__PURE__ */ o(yo, { className: "size-4 text-muted-foreground shrink-0 rtl:-scale-100" })
2054
2077
  ]
2055
2078
  }
2056
2079
  );
2057
2080
  }
2058
- function Sr() {
2081
+ function Tr() {
2059
2082
  const { t: e } = Z(), { toChatScreen: r } = H(), {
2060
2083
  sessionsState: { data: t, isInitialFetchLoading: n },
2061
2084
  openSessions: s,
2062
2085
  closedSessions: a,
2063
2086
  canCreateNewSession: i
2064
- } = q();
2065
- return /* @__PURE__ */ o("div", { className: "flex-1 flex flex-col overflow-scroll py-2 px-2", children: /* @__PURE__ */ o(T, { mode: "wait", children: n ? /* @__PURE__ */ o(
2066
- f,
2087
+ } = U();
2088
+ 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
+ w,
2067
2090
  {
2068
2091
  className: "flex-1 flex items-center justify-center",
2069
- children: /* @__PURE__ */ o(jt, {})
2092
+ children: /* @__PURE__ */ o(Et, {})
2070
2093
  },
2071
2094
  "loading"
2072
2095
  ) : /* @__PURE__ */ o(
2073
- f,
2096
+ w,
2074
2097
  {
2075
2098
  className: "flex-1 flex flex-col gap-2 relative",
2076
- children: t.length ? /* @__PURE__ */ l(ve, { children: [
2077
- /* @__PURE__ */ l(T, { children: [
2099
+ children: t.length ? /* @__PURE__ */ c(ve, { children: [
2100
+ /* @__PURE__ */ c(I, { children: [
2078
2101
  s.length > 0 && /* @__PURE__ */ o(
2079
- f,
2102
+ w,
2080
2103
  {
2081
2104
  fadeIn: "up",
2082
2105
  delay: 0.2,
2083
2106
  className: "space-y-2",
2084
2107
  snapExit: !0,
2085
- children: s.map((c) => /* @__PURE__ */ o(lt, { session: c }, c.id))
2108
+ children: s.map((l) => /* @__PURE__ */ o(lt, { session: l }, l.id))
2086
2109
  },
2087
2110
  "open-sessions"
2088
2111
  ),
2089
- a.length > 0 && /* @__PURE__ */ l(
2090
- f,
2112
+ a.length > 0 && /* @__PURE__ */ c(
2113
+ w,
2091
2114
  {
2092
2115
  className: "space-y-2",
2093
2116
  delay: 0.2,
2094
2117
  snapExit: !0,
2095
2118
  children: [
2096
- /* @__PURE__ */ o(Nr, { children: e("closed-conversations") }),
2097
- a.map((c) => /* @__PURE__ */ o(
2119
+ /* @__PURE__ */ o(Ir, { children: e("closed-conversations") }),
2120
+ a.map((l) => /* @__PURE__ */ o(
2098
2121
  lt,
2099
2122
  {
2100
- session: c,
2123
+ session: l,
2101
2124
  className: "opacity-50 hover:opacity-100"
2102
2125
  },
2103
- c.id
2126
+ l.id
2104
2127
  ))
2105
2128
  ]
2106
2129
  },
@@ -2110,7 +2133,7 @@ function Sr() {
2110
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(
2111
2134
  z,
2112
2135
  {
2113
- ...w("sessions/new_conversation_btn"),
2136
+ ...g("sessions/new_conversation_btn"),
2114
2137
  size: "lg",
2115
2138
  key: "new-session",
2116
2139
  className: "w-full",
@@ -2118,12 +2141,12 @@ function Sr() {
2118
2141
  },
2119
2142
  e("new-conversation")
2120
2143
  ) })
2121
- ] }) : /* @__PURE__ */ l("div", { className: "flex-1 flex flex-col gap-2 items-center", children: [
2144
+ ] }) : /* @__PURE__ */ c("div", { className: "flex-1 flex flex-col gap-2 items-center", children: [
2122
2145
  /* @__PURE__ */ o("div", { className: "flex-1 flex items-center justify-center", children: /* @__PURE__ */ o("p", { className: "text-muted-foreground", children: e("no-conversations-yet") }) }),
2123
2146
  /* @__PURE__ */ nt(
2124
2147
  z,
2125
2148
  {
2126
- ...w("sessions/new_conversation_btn"),
2149
+ ...g("sessions/new_conversation_btn"),
2127
2150
  size: "lg",
2128
2151
  key: "new-session",
2129
2152
  className: "w-full",
@@ -2136,7 +2159,7 @@ function Sr() {
2136
2159
  "sessions"
2137
2160
  ) }) });
2138
2161
  }
2139
- function _r() {
2162
+ function Mr() {
2140
2163
  const { theme: e } = X();
2141
2164
  return Se({
2142
2165
  width: e.screens.sessions.width,
@@ -2144,7 +2167,7 @@ function _r() {
2144
2167
  }), /* @__PURE__ */ o(
2145
2168
  "div",
2146
2169
  {
2147
- ...w("sessions/root"),
2170
+ ...g("sessions/root"),
2148
2171
  className: d("flex flex-col overflow-hidden bg-background"),
2149
2172
  style: {
2150
2173
  width: "100vw",
@@ -2156,10 +2179,10 @@ function _r() {
2156
2179
  maxHeight: "100vh"
2157
2180
  // Relative to the iframe
2158
2181
  },
2159
- children: /* @__PURE__ */ l("div", { className: "size-full flex flex-col", children: [
2160
- /* @__PURE__ */ o(Ot, {}),
2161
- /* @__PURE__ */ o(Sr, {}),
2162
- /* @__PURE__ */ o(Ft, {})
2182
+ children: /* @__PURE__ */ c("div", { className: "size-full flex flex-col", children: [
2183
+ /* @__PURE__ */ o(jt, {}),
2184
+ /* @__PURE__ */ o(Tr, {}),
2185
+ /* @__PURE__ */ o(Wt, {})
2163
2186
  ] })
2164
2187
  }
2165
2188
  );
@@ -2185,19 +2208,19 @@ const ne = E.forwardRef(
2185
2208
  }
2186
2209
  );
2187
2210
  ne.displayName = "Input";
2188
- function Ir() {
2189
- const { contentIframeRef: e } = Y(), { inline: r } = S(), t = ce(null);
2190
- return le(() => {
2211
+ function Dr() {
2212
+ const { contentIframeRef: e } = q(), { inline: r } = N(), t = le(null);
2213
+ return ie(() => {
2191
2214
  const n = e == null ? void 0 : e.current;
2192
2215
  if (n && t.current) {
2193
2216
  const s = t.current;
2194
2217
  let a;
2195
2218
  const i = new ResizeObserver(() => {
2196
2219
  a = requestAnimationFrame(() => {
2197
- const c = s.offsetHeight;
2220
+ const l = s.offsetHeight;
2198
2221
  n.style.setProperty(
2199
2222
  "--opencx-widget-height",
2200
- r ? "100%" : `${c.toFixed(1)}px`
2223
+ r ? "100%" : `${l.toFixed(1)}px`
2201
2224
  );
2202
2225
  });
2203
2226
  });
@@ -2207,33 +2230,33 @@ function Ir() {
2207
2230
  }
2208
2231
  }, [e, r]), { observedElementRef: t };
2209
2232
  }
2210
- const Tr = me.object({
2211
- name: me.string().min(2),
2212
- email: me.string().email()
2233
+ const Rr = he.object({
2234
+ name: he.string().min(2),
2235
+ email: he.string().email()
2213
2236
  });
2214
- function Mr() {
2215
- var k, I, M, F, P, O, b, C, B;
2216
- const { setIsOpen: e } = K(), { createUnverifiedContact: r } = Lt(), { isSmallScreen: t } = A(), n = S(), { theme: s } = X(), { t: a } = Z(), { data: i } = de(), { observedElementRef: c } = Ir();
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();
2217
2240
  Se({
2218
2241
  height: void 0,
2219
2242
  width: s.screens.welcome.width
2220
2243
  });
2221
- const [p, g] = j(((k = n.prefillUserData) == null ? void 0 : k.name) || ""), [x, y] = j(((I = n.prefillUserData) == null ? void 0 : I.email) || ""), v = (n.extraDataCollectionFields || []).filter(
2222
- (N) => N !== "name" && N !== "email" && !!N
2223
- ), [h, m] = j({}), [u, _] = Mo(
2224
- async (N) => {
2225
- N.preventDefault();
2226
- const L = Tr.safeParse({ name: p, email: x });
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(
2245
+ (S) => S !== "name" && S !== "email" && !!S
2246
+ ), [v, u] = j({}), [b, _] = Ro(
2247
+ async (S) => {
2248
+ S.preventDefault();
2249
+ const L = Rr.safeParse({ name: p, email: C });
2227
2250
  L.success && await r(
2228
2251
  {
2229
2252
  email: L.data.email,
2230
2253
  non_verified_name: L.data.name
2231
2254
  },
2232
2255
  // Only pass extra data if there is any
2233
- Object.values(h).filter(Boolean).length ? h : void 0
2256
+ Object.values(v).filter(Boolean).length ? v : void 0
2234
2257
  );
2235
2258
  },
2236
- [p, x, h]
2259
+ [p, C, v]
2237
2260
  );
2238
2261
  return /* @__PURE__ */ o(
2239
2262
  "div",
@@ -2250,17 +2273,17 @@ function Mr() {
2250
2273
  // Relative to the iframe
2251
2274
  overflowY: "auto"
2252
2275
  },
2253
- children: /* @__PURE__ */ l(
2276
+ children: /* @__PURE__ */ c(
2254
2277
  "div",
2255
2278
  {
2256
- ref: c,
2279
+ ref: l,
2257
2280
  className: d(
2258
2281
  "flex flex-col",
2259
2282
  t && "h-full",
2260
2283
  "bg-[radial-gradient(ellipse_at_top_left,hsl(var(--opencx-primary)),transparent),radial-gradient(ellipse_at_top_right,hsl(var(--opencx-primary)),transparent)]"
2261
2284
  ),
2262
2285
  children: [
2263
- /* @__PURE__ */ l(
2286
+ /* @__PURE__ */ c(
2264
2287
  "div",
2265
2288
  {
2266
2289
  className: d(
@@ -2268,23 +2291,23 @@ function Mr() {
2268
2291
  "text-primary-foreground"
2269
2292
  ),
2270
2293
  children: [
2271
- t && /* @__PURE__ */ o(f, { className: "absolute top-6 end-6", children: /* @__PURE__ */ o(z, { size: "selfless", onClick: () => e(!1), children: /* @__PURE__ */ o(xe, { className: "size-4" }) }) }),
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" }) }) }),
2272
2295
  /* @__PURE__ */ o("div", { className: "flex items-center justify-between w-full mb-2", children: (M = n.assets) != null && M.organizationLogo ? /* @__PURE__ */ o(
2273
2296
  "img",
2274
2297
  {
2275
- src: (F = n.assets) == null ? void 0 : F.organizationLogo,
2298
+ src: (P = n.assets) == null ? void 0 : P.organizationLogo,
2276
2299
  alt: "Company Logo",
2277
2300
  className: "h-8 w-auto object-contain"
2278
2301
  }
2279
- ) : /* @__PURE__ */ o("h2", { className: "font-bold text-sm", children: (P = i == null ? void 0 : i.data) == null ? void 0 : P.organizationName }) }),
2280
- /* @__PURE__ */ l("div", { className: "space-y-2", children: [
2281
- /* @__PURE__ */ o("h1", { className: "text-[1.75rem] font-semibold tracking-tight leading-none", children: ((b = (O = n.textContent) == null ? void 0 : O.welcomeScreen) == null ? void 0 : b.title) || a("welcome-title") }),
2282
- /* @__PURE__ */ o("p", { className: "text-sm", children: ((B = (C = n.textContent) == null ? void 0 : C.welcomeScreen) == null ? void 0 : B.description) || a("welcome-description") })
2302
+ ) : /* @__PURE__ */ o("h2", { className: "font-bold text-sm", children: (F = i == null ? void 0 : i.data) == null ? void 0 : F.organizationName }) }),
2303
+ /* @__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") })
2283
2306
  ] })
2284
2307
  ]
2285
2308
  }
2286
2309
  ),
2287
- /* @__PURE__ */ l(
2310
+ /* @__PURE__ */ c(
2288
2311
  "div",
2289
2312
  {
2290
2313
  className: d(
@@ -2294,12 +2317,12 @@ function Mr() {
2294
2317
  "rounded-3xl"
2295
2318
  ),
2296
2319
  children: [
2297
- /* @__PURE__ */ l("form", { onSubmit: _, className: "space-y-2", children: [
2320
+ /* @__PURE__ */ c("form", { onSubmit: _, className: "space-y-2", children: [
2298
2321
  /* @__PURE__ */ o(
2299
2322
  ne,
2300
2323
  {
2301
2324
  value: p,
2302
- onChange: (N) => g(N.target.value),
2325
+ onChange: (S) => m(S.target.value),
2303
2326
  required: !0,
2304
2327
  placeholder: a("your-name"),
2305
2328
  name: "name"
@@ -2309,39 +2332,39 @@ function Mr() {
2309
2332
  ne,
2310
2333
  {
2311
2334
  required: !0,
2312
- value: x,
2313
- onChange: (N) => y(N.target.value),
2335
+ value: C,
2336
+ onChange: (S) => x(S.target.value),
2314
2337
  type: "email",
2315
2338
  placeholder: a("your-email"),
2316
2339
  name: "email"
2317
2340
  }
2318
2341
  ),
2319
- v.map((N) => /* @__PURE__ */ o(
2342
+ h.map((S) => /* @__PURE__ */ o(
2320
2343
  ne,
2321
2344
  {
2322
- value: h[N],
2323
- onChange: (L) => m((oe) => ({
2345
+ value: v[S],
2346
+ onChange: (L) => u((oe) => ({
2324
2347
  ...oe,
2325
- [N]: L.target.value
2348
+ [S]: L.target.value
2326
2349
  })),
2327
- placeholder: `${N} (${a("optional")})`
2350
+ placeholder: `${S} (${a("optional")})`
2328
2351
  },
2329
- N
2352
+ S
2330
2353
  )),
2331
- /* @__PURE__ */ l(
2354
+ /* @__PURE__ */ c(
2332
2355
  z,
2333
2356
  {
2334
- disabled: u.loading,
2357
+ disabled: b.loading,
2335
2358
  className: "w-full",
2336
2359
  size: "lg",
2337
2360
  children: [
2338
- u.loading ? a("starting-chat") : a("start-chat"),
2339
- /* @__PURE__ */ o(xo, { className: "size-4 rtl:-scale-100" })
2361
+ b.loading ? a("starting-chat") : a("start-chat"),
2362
+ /* @__PURE__ */ o(ko, { className: "size-4 rtl:-scale-100" })
2340
2363
  ]
2341
2364
  }
2342
2365
  )
2343
2366
  ] }),
2344
- /* @__PURE__ */ o(Ft, {})
2367
+ /* @__PURE__ */ o(Wt, {})
2345
2368
  ]
2346
2369
  }
2347
2370
  )
@@ -2351,59 +2374,59 @@ function Mr() {
2351
2374
  }
2352
2375
  );
2353
2376
  }
2354
- function Pt() {
2355
- de();
2377
+ function Ht() {
2378
+ ce();
2356
2379
  const {
2357
2380
  routerState: { screen: e }
2358
2381
  } = H();
2359
- return /* @__PURE__ */ l(ve, { children: [
2360
- /* @__PURE__ */ o(pe.Container, {}),
2361
- /* @__PURE__ */ o("div", { className: "relative bg-background size-full", children: /* @__PURE__ */ o(T, { mode: "wait", children: (() => {
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: (() => {
2362
2385
  switch (e) {
2363
2386
  case "welcome":
2364
2387
  return /* @__PURE__ */ o(
2365
- f,
2388
+ w,
2366
2389
  {
2367
2390
  fadeIn: "right",
2368
2391
  className: "size-full",
2369
2392
  snapExit: !0,
2370
- children: /* @__PURE__ */ o(Mr, {})
2393
+ children: /* @__PURE__ */ o(Or, {})
2371
2394
  },
2372
2395
  e
2373
2396
  );
2374
2397
  case "sessions":
2375
2398
  return /* @__PURE__ */ o(
2376
- f,
2399
+ w,
2377
2400
  {
2378
2401
  fadeIn: "right",
2379
2402
  className: "size-full",
2380
2403
  snapExit: !0,
2381
- children: /* @__PURE__ */ o(_r, {})
2404
+ children: /* @__PURE__ */ o(Mr, {})
2382
2405
  },
2383
2406
  e
2384
2407
  );
2385
2408
  case "chat":
2386
2409
  return /* @__PURE__ */ o(
2387
- f,
2410
+ w,
2388
2411
  {
2389
2412
  fadeIn: "right",
2390
2413
  className: "size-full",
2391
2414
  snapExit: !0,
2392
- children: /* @__PURE__ */ o(Cr, {})
2415
+ children: /* @__PURE__ */ o(Sr, {})
2393
2416
  },
2394
2417
  e
2395
2418
  );
2396
2419
  default:
2397
- return D(e, Pt.name), null;
2420
+ return D(e, Ht.name), null;
2398
2421
  }
2399
2422
  })() }) })
2400
2423
  ] });
2401
2424
  }
2402
- const Dr = "4.0.6", Rr = `<!DOCTYPE html>
2425
+ const jr = "4.0.8", Er = `<!DOCTYPE html>
2403
2426
  <html>
2404
2427
  <head>
2405
2428
  <style>
2406
- ${_t}
2429
+ ${It}
2407
2430
  html, body {
2408
2431
  height: 100%;
2409
2432
  width: 100%;
@@ -2417,8 +2440,8 @@ html, body {
2417
2440
  <body>
2418
2441
  </body>
2419
2442
  </html>`;
2420
- function Wt() {
2421
- const { isOpen: e } = K(), { contentIframeRef: r } = Y(), { cssOverrides: t, inline: n } = S(), { theme: s, cssVars: a, computed: i } = X(), { dir: c } = Z();
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();
2422
2445
  return /* @__PURE__ */ o(
2423
2446
  J.div,
2424
2447
  {
@@ -2438,11 +2461,11 @@ function Wt() {
2438
2461
  height: n ? "100%" : void 0
2439
2462
  }
2440
2463
  },
2441
- children: /* @__PURE__ */ l(
2442
- ut,
2464
+ children: /* @__PURE__ */ c(
2465
+ gt,
2443
2466
  {
2444
2467
  ref: r,
2445
- initialContent: Rr,
2468
+ initialContent: Er,
2446
2469
  allowFullScreen: !0,
2447
2470
  title: "OpenCX Live Chat",
2448
2471
  style: {
@@ -2473,7 +2496,7 @@ function Wt() {
2473
2496
  children: [
2474
2497
  t && /* @__PURE__ */ o("style", { children: t }),
2475
2498
  /* @__PURE__ */ o(
2476
- Lo,
2499
+ Yo,
2477
2500
  {
2478
2501
  delayDuration: 200,
2479
2502
  disableHoverableContent: !0,
@@ -2483,12 +2506,12 @@ function Wt() {
2483
2506
  style: {
2484
2507
  ...a
2485
2508
  },
2486
- "data-version": Dr,
2509
+ "data-version": jr,
2487
2510
  className: d(
2488
2511
  "antialiased font-sans size-full overflow-hidden relative text-secondary-foreground"
2489
2512
  ),
2490
- dir: c,
2491
- children: /* @__PURE__ */ o(Pt, {})
2513
+ dir: l,
2514
+ children: /* @__PURE__ */ o(Ht, {})
2492
2515
  }
2493
2516
  )
2494
2517
  }
@@ -2499,10 +2522,10 @@ function Wt() {
2499
2522
  }
2500
2523
  );
2501
2524
  }
2502
- function Or() {
2525
+ function Pr() {
2503
2526
  const { theme: e } = X();
2504
2527
  return /* @__PURE__ */ o(
2505
- ie.Content,
2528
+ ae.Content,
2506
2529
  {
2507
2530
  onInteractOutside: (r) => r.preventDefault(),
2508
2531
  forceMount: !0,
@@ -2515,15 +2538,15 @@ function Or() {
2515
2538
  sideOffset: e.widgetContentContainer.offset.side,
2516
2539
  alignOffset: e.widgetContentContainer.offset.align,
2517
2540
  avoidCollisions: !1,
2518
- children: /* @__PURE__ */ o(Wt, {})
2541
+ children: /* @__PURE__ */ o(At, {})
2519
2542
  }
2520
2543
  );
2521
2544
  }
2522
- function jr({
2545
+ function Fr({
2523
2546
  className: e,
2524
2547
  style: r
2525
2548
  }) {
2526
- return /* @__PURE__ */ l(
2549
+ return /* @__PURE__ */ c(
2527
2550
  "svg",
2528
2551
  {
2529
2552
  width: "32",
@@ -2554,11 +2577,11 @@ function jr({
2554
2577
  }
2555
2578
  );
2556
2579
  }
2557
- const Er = `<!DOCTYPE html>
2580
+ const Wr = `<!DOCTYPE html>
2558
2581
  <html>
2559
2582
  <head>
2560
2583
  <style>
2561
- ${_t}
2584
+ ${It}
2562
2585
  html, body {
2563
2586
  height: 100%;
2564
2587
  width: 100%;
@@ -2571,13 +2594,13 @@ html, body {
2571
2594
  <body>
2572
2595
  </body>
2573
2596
  </html>`;
2574
- function Fr() {
2597
+ function Hr() {
2575
2598
  var a, i;
2576
- const { isOpen: e } = K(), { cssOverrides: r, assets: t } = S(), { theme: n, cssVars: s } = X();
2577
- return /* @__PURE__ */ l(
2578
- ut,
2599
+ const { isOpen: e } = K(), { cssOverrides: r, assets: t } = N(), { theme: n, cssVars: s } = X();
2600
+ return /* @__PURE__ */ c(
2601
+ gt,
2579
2602
  {
2580
- initialContent: Er,
2603
+ initialContent: Wr,
2581
2604
  style: {
2582
2605
  height: `calc(${n.widgetTrigger.size.button}px + ${V.x * 2}px)`,
2583
2606
  width: `calc(${n.widgetTrigger.size.button}px + ${V.y * 2}px)`,
@@ -2607,7 +2630,7 @@ function Fr() {
2607
2630
  justifyContent: "center"
2608
2631
  },
2609
2632
  children: /* @__PURE__ */ o(
2610
- ie.PopoverTrigger,
2633
+ ae.PopoverTrigger,
2611
2634
  {
2612
2635
  className: d(
2613
2636
  "font-sans flex items-center justify-center rounded-full"
@@ -2619,7 +2642,7 @@ function Fr() {
2619
2642
  children: /* @__PURE__ */ o(W, { children: /* @__PURE__ */ o(
2620
2643
  "div",
2621
2644
  {
2622
- ...w("trigger/btn"),
2645
+ ...g("trigger/btn"),
2623
2646
  className: d(
2624
2647
  "relative size-full rounded-full",
2625
2648
  "flex items-center justify-center",
@@ -2628,8 +2651,8 @@ function Fr() {
2628
2651
  "bg-primary",
2629
2652
  "text-primary-foreground"
2630
2653
  ),
2631
- children: /* @__PURE__ */ o(T, { mode: "wait", children: e ? /* @__PURE__ */ o(
2632
- f,
2654
+ children: /* @__PURE__ */ o(I, { mode: "wait", children: e ? /* @__PURE__ */ o(
2655
+ w,
2633
2656
  {
2634
2657
  snapExit: !0,
2635
2658
  fadeIn: "up",
@@ -2648,7 +2671,7 @@ function Fr() {
2648
2671
  }
2649
2672
  }
2650
2673
  ) : /* @__PURE__ */ o(
2651
- yo,
2674
+ Co,
2652
2675
  {
2653
2676
  style: {
2654
2677
  width: n.widgetTrigger.size.icon,
@@ -2659,7 +2682,7 @@ function Fr() {
2659
2682
  },
2660
2683
  "x-icon"
2661
2684
  ) : /* @__PURE__ */ o(
2662
- f,
2685
+ w,
2663
2686
  {
2664
2687
  snapExit: !0,
2665
2688
  overrides: {
@@ -2677,7 +2700,7 @@ function Fr() {
2677
2700
  }
2678
2701
  }
2679
2702
  ) : /* @__PURE__ */ o(
2680
- jr,
2703
+ Fr,
2681
2704
  {
2682
2705
  style: {
2683
2706
  width: n.widgetTrigger.size.icon,
@@ -2699,10 +2722,10 @@ function Fr() {
2699
2722
  }
2700
2723
  );
2701
2724
  }
2702
- function Pr() {
2725
+ function Ar() {
2703
2726
  const { dir: e } = be();
2704
2727
  return /* @__PURE__ */ o(
2705
- ie.Anchor,
2728
+ ae.Anchor,
2706
2729
  {
2707
2730
  style: {
2708
2731
  position: "fixed",
@@ -2713,32 +2736,32 @@ function Pr() {
2713
2736
  }
2714
2737
  );
2715
2738
  }
2716
- function Wr() {
2739
+ function Br() {
2717
2740
  const { isOpen: e, setIsOpen: r } = K();
2718
- return /* @__PURE__ */ l(ie.Root, { open: e, onOpenChange: r, children: [
2719
- /* @__PURE__ */ o(Pr, {}),
2720
- /* @__PURE__ */ o(Fr, {}),
2721
- /* @__PURE__ */ o(Or, {})
2741
+ return /* @__PURE__ */ c(ae.Root, { open: e, onOpenChange: r, children: [
2742
+ /* @__PURE__ */ o(Ar, {}),
2743
+ /* @__PURE__ */ o(Hr, {}),
2744
+ /* @__PURE__ */ o(Pr, {})
2722
2745
  ] });
2723
2746
  }
2724
- const Hr = [
2747
+ const Lr = [
2725
2748
  {
2726
2749
  key: "loading",
2727
- component: Bo
2750
+ component: $o
2728
2751
  },
2729
2752
  {
2730
2753
  key: "fallback",
2731
- component: jo
2754
+ component: Po
2732
2755
  },
2733
2756
  {
2734
2757
  key: "bot_message",
2735
- component: ae
2758
+ component: ge
2736
2759
  },
2737
2760
  {
2738
2761
  key: "agent_message",
2739
- component: ae
2762
+ component: ge
2740
2763
  }
2741
- ], Ar = {
2764
+ ], $r = {
2742
2765
  get: async (e) => localStorage.getItem(e),
2743
2766
  set: async (e, r) => {
2744
2767
  localStorage.setItem(e, r);
@@ -2747,23 +2770,23 @@ const Hr = [
2747
2770
  localStorage.removeItem(e);
2748
2771
  }
2749
2772
  };
2750
- function an({
2773
+ function dn({
2751
2774
  options: e,
2752
2775
  components: r = [],
2753
2776
  loadingComponent: t
2754
2777
  }) {
2755
2778
  return /* @__PURE__ */ o(
2756
- $t,
2779
+ qt,
2757
2780
  {
2758
- components: [...Hr, ...r],
2781
+ components: [...Lr, ...r],
2759
2782
  options: e,
2760
- storage: Ar,
2783
+ storage: $r,
2761
2784
  loadingComponent: t,
2762
- children: /* @__PURE__ */ o(Yt, { children: e.inline ? /* @__PURE__ */ o(Wt, {}) : /* @__PURE__ */ o(Wr, {}) })
2785
+ children: /* @__PURE__ */ o(Ut, { children: e.inline ? /* @__PURE__ */ o(At, {}) : /* @__PURE__ */ o(Br, {}) })
2763
2786
  }
2764
2787
  );
2765
2788
  }
2766
2789
  export {
2767
- an as Widget
2790
+ dn as Widget
2768
2791
  };
2769
2792
  //# sourceMappingURL=index.js.map