@opencx/widget-react 4.0.29 → 4.0.32

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,25 +1,25 @@
1
1
  import { jsx as r, jsxs as d, Fragment as te } from "react/jsx-runtime";
2
- import * as le from "@radix-ui/react-popover";
2
+ import * as ce from "@radix-ui/react-popover";
3
3
  import * as G from "react";
4
- import q, { memo as Bt, forwardRef as ct, useState as T, cloneElement as dt, createContext as Lt, useEffect as re, useContext as Yt, useMemo as pt, useRef as ce, createElement as rt } from "react";
5
- import { useWidget as R, useConfig as x, useDocumentDir as fe, useWidgetRouter as $, useWidgetTrigger as K, useSessions as B, useMessages as j, useModes as ht, useCsat as mt, useUploadFiles as qt, useIsAwaitingBotReply as gt, useContact as Xt, WidgetProvider as Ut, WidgetTriggerProvider as Vt } from "@opencx/widget-react-headless";
4
+ import q, { memo as $t, forwardRef as dt, useState as T, cloneElement as pt, createContext as Lt, useEffect as re, useContext as Yt, useMemo as ht, useRef as de, createElement as ot } from "react";
5
+ import { useWidget as R, useConfig as x, useDocumentDir as ve, useSessions as $, useMessages as j, useWidgetRouter as P, useWidgetTrigger as K, useModes as mt, useCsat as gt, useUploadFiles as qt, useIsAwaitingBotReply as wt, useContact as Xt, WidgetProvider as Ut, WidgetTriggerProvider as Vt } from "@opencx/widget-react-headless";
6
6
  import { clsx as Gt } from "clsx";
7
7
  import { twMerge as Kt } from "tailwind-merge";
8
8
  import { motion as Z, AnimatePresence as _ } from "framer-motion";
9
9
  import { Slot as Qt } from "@radix-ui/react-slot";
10
10
  import { cva as Zt } from "class-variance-authority";
11
- import { X as Jt, CircleDashedIcon as er, XIcon as ve, SquareXIcon as tr, SquareCheckBigIcon as rr, SquareCheckIcon as or, ShrinkIcon as nr, Minimize2Icon as sr, MinimizeIcon as ir, Maximize2Icon as ar, MaximizeIcon as lr, ExpandIcon as cr, CircleXIcon as dr, CircleCheckBigIcon as pr, CircleCheckIcon as wt, CheckCheckIcon as hr, CheckIcon as mr, ChevronLeftIcon as gr, LoaderIcon as wr, ArrowUpIcon as ut, PaperclipIcon as ur, ImageIcon as fr, CircleDashed as vr, AlertCircle as xr, Loader2 as br, FileAudio2Icon as yr, FileVideo2Icon as kr, FileIcon as Cr, UserRoundIcon as zr, ChevronRightIcon as Nr, SendHorizontal as Sr, ChevronDownIcon as _r } from "lucide-react";
12
- import ft from "remark-gfm";
11
+ import { X as Jt, CircleDashedIcon as er, XIcon as xe, SquareXIcon as tr, SquareCheckBigIcon as rr, SquareCheckIcon as or, ShrinkIcon as nr, Minimize2Icon as sr, MinimizeIcon as ir, Maximize2Icon as ar, MaximizeIcon as lr, ExpandIcon as cr, CircleXIcon as dr, CircleCheckBigIcon as pr, CircleCheckIcon as ut, CheckCheckIcon as hr, CheckIcon as mr, ChevronLeftIcon as gr, LoaderIcon as wr, ArrowUpIcon as ft, PaperclipIcon as ur, ImageIcon as fr, CircleDashed as vr, AlertCircle as xr, Loader2 as br, FileAudio2Icon as yr, FileVideo2Icon as kr, FileIcon as Cr, UserRoundIcon as zr, ChevronRightIcon as Nr, SendHorizontal as Sr, ChevronDownIcon as _r } from "lucide-react";
12
+ import vt from "remark-gfm";
13
13
  import Ir from "react-markdown";
14
- import vt from "rehype-raw";
14
+ import xt from "rehype-raw";
15
15
  import { isExhaustive as D, isSupportedLanguage as Tr, getTranslation as Mr } from "@opencx/widget-core";
16
16
  import * as Q from "@radix-ui/react-avatar";
17
- import xt from "@uiw/react-iframe";
17
+ import bt from "@uiw/react-iframe";
18
18
  import * as oe from "@radix-ui/react-tooltip";
19
- import ot from "tinycolor2";
19
+ import nt from "tinycolor2";
20
20
  import { useDropzone as Dr } from "react-dropzone";
21
21
  import Rr from "react-use/lib/useAsyncFn";
22
- import { z as he } from "zod";
22
+ import { z as me } from "zod";
23
23
  function g(e) {
24
24
  return { "data-component": e };
25
25
  }
@@ -29,35 +29,35 @@ function p(...e) {
29
29
  const V = {
30
30
  x: 2,
31
31
  y: 2
32
- }, W = Bt(
33
- ct(
32
+ }, B = $t(
33
+ dt(
34
34
  ({ children: e, className: o, scale: t = 1.02, off: n = !1 }, s) => {
35
- const [i, a] = T(!1), [c, l] = T({ x: 0, y: 0 });
35
+ const [a, i] = T(!1), [c, l] = T({ x: 0, y: 0 });
36
36
  if (n || /translate/.test(
37
37
  e.props.className || ""
38
38
  )) return e;
39
39
  const b = (u) => {
40
40
  var z, N;
41
- const { clientX: y, clientY: I } = u, S = u.currentTarget.getBoundingClientRect(), M = y - (S.left + S.width / 2), A = I - (S.top + S.height / 2), F = Math.max(
41
+ const { clientX: y, clientY: I } = u, S = u.currentTarget.getBoundingClientRect(), M = y - (S.left + S.width / 2), H = I - (S.top + S.height / 2), F = Math.max(
42
42
  -1,
43
43
  Math.min(1, M / (S.width / 2))
44
- ), H = Math.max(
44
+ ), W = Math.max(
45
45
  -1,
46
- Math.min(1, A / (S.height / 2))
47
- ), E = F * V.x, v = H * V.y;
46
+ Math.min(1, H / (S.height / 2))
47
+ ), E = F * V.x, v = W * V.y;
48
48
  l({ x: E, y: v }), (N = (z = e.props).onMouseMove) == null || N.call(z, u);
49
49
  }, w = () => {
50
50
  var u, y;
51
- a(!0), (y = (u = e.props).onMouseEnter) == null || y.call(u);
51
+ i(!0), (y = (u = e.props).onMouseEnter) == null || y.call(u);
52
52
  }, m = () => {
53
53
  var u, y;
54
- a(!1), l({ x: 0, y: 0 }), (y = (u = e.props).onMouseLeave) == null || y.call(u);
54
+ i(!1), l({ x: 0, y: 0 }), (y = (u = e.props).onMouseLeave) == null || y.call(u);
55
55
  }, C = {
56
- "--wobble-x": i ? `${c.x}px` : "0px",
57
- "--wobble-y": i ? `${c.y}px` : "0px",
56
+ "--wobble-x": a ? `${c.x}px` : "0px",
57
+ "--wobble-y": a ? `${c.y}px` : "0px",
58
58
  "--scale": 1 - (t - 1)
59
59
  };
60
- return dt(e, {
60
+ return pt(e, {
61
61
  ref: s,
62
62
  onMouseMove: b,
63
63
  onMouseEnter: w,
@@ -78,7 +78,7 @@ const V = {
78
78
  }
79
79
  )
80
80
  );
81
- W.displayName = "Wobble";
81
+ B.displayName = "Wobble";
82
82
  const jr = 10, Er = (e, o, t) => ({
83
83
  initial: { opacity: 0, x: -e, ...o.initial },
84
84
  animate: { opacity: 1, x: 0, ...o.animate, transition: { delay: t } },
@@ -95,27 +95,27 @@ const jr = 10, Er = (e, o, t) => ({
95
95
  initial: { opacity: 0, y: -e, ...o.initial },
96
96
  animate: { opacity: 1, y: 0, ...o.animate, transition: { delay: t } },
97
97
  exit: { opacity: 0, y: e, ...o.exit }
98
- }), Fr = {
98
+ }), Hr = {
99
99
  right: Er,
100
100
  left: Or,
101
101
  up: Pr,
102
102
  down: Ar
103
- }, f = ct(
103
+ }, f = dt(
104
104
  ({
105
105
  fadeIn: e = "down",
106
106
  distance: o = jr,
107
107
  children: t,
108
108
  snapExit: n = !1,
109
109
  overrides: s = {},
110
- delay: i = 0,
111
- ...a
110
+ delay: a = 0,
111
+ ...i
112
112
  }, c) => {
113
- const l = e ? Fr[e](o, s, i) : {};
114
- return n && l.exit && typeof l.exit == "object" && !Array.isArray(l.exit) && (l.exit.transition = { duration: 0 }), /* @__PURE__ */ r(Z.div, { ref: c, ...a, ...l, children: t });
113
+ const l = e ? Hr[e](o, s, a) : {};
114
+ return n && l.exit && typeof l.exit == "object" && !Array.isArray(l.exit) && (l.exit.transition = { duration: 0 }), /* @__PURE__ */ r(Z.div, { ref: c, ...i, ...l, children: t });
115
115
  }
116
116
  );
117
117
  f.displayName = "MotionDiv";
118
- const Hr = Zt(
118
+ const Fr = Zt(
119
119
  p(
120
120
  "inline-flex shrink-0 items-center justify-center gap-2",
121
121
  "text-sm font-medium whitespace-nowrap",
@@ -155,39 +155,39 @@ const Hr = Zt(
155
155
  }
156
156
  }
157
157
  ), k = G.forwardRef(
158
- ({ className: e, variant: o = "default", size: t, asChild: n = !1, ...s }, i) => /* @__PURE__ */ r(W, { ref: i, children: /* @__PURE__ */ r(
158
+ ({ className: e, variant: o = "default", size: t, asChild: n = !1, ...s }, a) => /* @__PURE__ */ r(B, { ref: a, children: /* @__PURE__ */ r(
159
159
  n ? Qt : "button",
160
160
  {
161
161
  ...g("ui_lib/btn"),
162
162
  "data-variant": o,
163
- className: p(Hr({ variant: o, size: t, className: e })),
163
+ className: p(Fr({ variant: o, size: t, className: e })),
164
164
  ...s
165
165
  }
166
166
  ) })
167
167
  );
168
168
  k.displayName = "Button";
169
- const bt = Lt(null);
169
+ const yt = Lt(null);
170
170
  function Wr({ children: e }) {
171
- const [o, t] = T(!1), [n, s] = T(null), i = (c) => {
171
+ const [o, t] = T(!1), [n, s] = T(null), a = (c) => {
172
172
  s(c), t(!0);
173
- }, a = () => {
173
+ }, i = () => {
174
174
  t(!1), setTimeout(() => {
175
175
  s(null);
176
176
  }, 200);
177
177
  };
178
178
  return /* @__PURE__ */ d(
179
- bt.Provider,
179
+ yt.Provider,
180
180
  {
181
- value: { open: i, close: a, isOpen: o, content: n },
181
+ value: { open: a, close: i, isOpen: o, content: n },
182
182
  children: [
183
- /* @__PURE__ */ r($r, {}),
183
+ /* @__PURE__ */ r(Br, {}),
184
184
  e
185
185
  ]
186
186
  }
187
187
  );
188
188
  }
189
- function de() {
190
- const e = Yt(bt);
189
+ function pe() {
190
+ const e = Yt(yt);
191
191
  return e || (console.error("useDialoger must be used within a DialogerProvider"), {
192
192
  open: () => {
193
193
  },
@@ -197,14 +197,14 @@ function de() {
197
197
  content: null
198
198
  });
199
199
  }
200
- function $r() {
201
- const { contentIframeRef: e } = R(), { isOpen: o, content: t, close: n } = de();
200
+ function Br() {
201
+ const { contentIframeRef: e } = R(), { isOpen: o, content: t, close: n } = pe();
202
202
  return re(() => {
203
- var i, a;
203
+ var a, i;
204
204
  const s = (c) => {
205
205
  c.key === "Escape" && n();
206
206
  };
207
- return (a = (i = e == null ? void 0 : e.current) == null ? void 0 : i.contentWindow) == null || a.document.addEventListener(
207
+ return (i = (a = e == null ? void 0 : e.current) == null ? void 0 : a.contentWindow) == null || i.document.addEventListener(
208
208
  "keydown",
209
209
  s
210
210
  ), () => {
@@ -229,12 +229,12 @@ function $r() {
229
229
  "dialog-content"
230
230
  ) });
231
231
  }
232
- function yt({
232
+ function kt({
233
233
  children: e,
234
234
  className: o,
235
235
  withClose: t = !1
236
236
  }) {
237
- const { close: n } = de();
237
+ const { close: n } = pe();
238
238
  return /* @__PURE__ */ d(
239
239
  "div",
240
240
  {
@@ -262,7 +262,7 @@ function yt({
262
262
  }
263
263
  );
264
264
  }
265
- const kt = ({
265
+ const Ct = ({
266
266
  className: e,
267
267
  ...o
268
268
  }) => /* @__PURE__ */ r(
@@ -272,8 +272,8 @@ const kt = ({
272
272
  ...o
273
273
  }
274
274
  );
275
- kt.displayName = "DialogerHeader";
276
- const Ct = ({
275
+ Ct.displayName = "DialogerHeader";
276
+ const zt = ({
277
277
  className: e,
278
278
  ...o
279
279
  }) => /* @__PURE__ */ r(
@@ -283,13 +283,13 @@ const Ct = ({
283
283
  ...o
284
284
  }
285
285
  );
286
- Ct.displayName = "DialogerBody";
287
- const zt = ({
286
+ zt.displayName = "DialogerBody";
287
+ const Nt = ({
288
288
  className: e,
289
289
  ...o
290
290
  }) => /* @__PURE__ */ r("div", { className: p("flex flex-col gap-2", e), ...o });
291
- zt.displayName = "DialogerFooter";
292
- const Nt = q.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
291
+ Nt.displayName = "DialogerFooter";
292
+ const St = q.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
293
293
  "p",
294
294
  {
295
295
  ref: t,
@@ -300,8 +300,8 @@ const Nt = q.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
300
300
  ...o
301
301
  }
302
302
  ));
303
- Nt.displayName = "DialogerTitle";
304
- const St = q.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
303
+ St.displayName = "DialogerTitle";
304
+ const _t = q.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
305
305
  "p",
306
306
  {
307
307
  ref: t,
@@ -309,25 +309,25 @@ const St = q.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
309
309
  ...o
310
310
  }
311
311
  ));
312
- St.displayName = "DialogerDescription";
313
- function _t({
312
+ _t.displayName = "DialogerDescription";
313
+ function It({
314
314
  children: e,
315
315
  trigger: o
316
316
  }) {
317
- const { open: t } = de();
318
- return dt(o, {
317
+ const { open: t } = pe();
318
+ return pt(o, {
319
319
  onClick: () => t(e)
320
320
  });
321
321
  }
322
- function It({ attachment: e }) {
323
- const { name: o, size: t, type: n, url: s } = e, i = n.startsWith("image/"), a = n.startsWith("video/"), c = n.startsWith("audio/");
324
- return c ? /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r("div", { className: "w-full shrink-0 overflow-hidden", children: /* @__PURE__ */ d("audio", { controls: !0, className: "w-full", children: [
322
+ function Tt({ attachment: e }) {
323
+ const { name: o, size: t, type: n, url: s } = e, a = n.startsWith("image/"), i = n.startsWith("video/"), c = n.startsWith("audio/");
324
+ return c ? /* @__PURE__ */ r(B, { children: /* @__PURE__ */ r("div", { className: "w-full shrink-0 overflow-hidden", children: /* @__PURE__ */ d("audio", { controls: !0, className: "w-full", children: [
325
325
  /* @__PURE__ */ r("source", { src: s, type: n }),
326
326
  "Your browser does not support the audio tag."
327
- ] }) }) }) : a ? /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r("div", { className: "w-full border shrink-0 rounded-2xl overflow-hidden", children: /* @__PURE__ */ d("video", { controls: !0, children: [
327
+ ] }) }) }) : i ? /* @__PURE__ */ r(B, { children: /* @__PURE__ */ r("div", { className: "w-full border shrink-0 rounded-2xl overflow-hidden", children: /* @__PURE__ */ d("video", { controls: !0, children: [
328
328
  /* @__PURE__ */ r("source", { src: s, type: n }),
329
329
  "Your browser does not support the video tag."
330
- ] }) }) }) : !i && !a && !c ? /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r("div", { className: "size-fit border shrink-0 rounded-2xl overflow-hidden", children: /* @__PURE__ */ d("div", { className: "flex items-end gap-2 p-2", children: [
330
+ ] }) }) }) : !a && !i && !c ? /* @__PURE__ */ r(B, { children: /* @__PURE__ */ r("div", { className: "size-fit border shrink-0 rounded-2xl overflow-hidden", children: /* @__PURE__ */ d("div", { className: "flex items-end gap-2 p-2", children: [
331
331
  /* @__PURE__ */ r(
332
332
  "a",
333
333
  {
@@ -347,52 +347,52 @@ function It({ attachment: e }) {
347
347
  " KB"
348
348
  ] })
349
349
  ] }) }) }) : /* @__PURE__ */ r(
350
- _t,
350
+ It,
351
351
  {
352
- trigger: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r("div", { className: "size-fit border shrink-0 rounded-2xl overflow-hidden", children: i && /* @__PURE__ */ r("img", { src: s, className: "object-cover size-16", alt: o }) }) }) }),
352
+ trigger: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(B, { children: /* @__PURE__ */ r("div", { className: "size-fit border shrink-0 rounded-2xl overflow-hidden", children: a && /* @__PURE__ */ r("img", { src: s, className: "object-cover size-16", alt: o }) }) }) }),
353
353
  children: /* @__PURE__ */ r(
354
- yt,
354
+ kt,
355
355
  {
356
356
  className: "size-full max-w-full rounded-3xl flex items-center justify-center bg-transparent border-none gap-0",
357
357
  withClose: !0,
358
- children: i && /* @__PURE__ */ r("div", { className: "size-fit shrink-0 rounded-2xl overflow-hidden max-h-full", children: /* @__PURE__ */ r("img", { src: s, className: "object-cover size-auto", alt: o }) })
358
+ children: a && /* @__PURE__ */ r("div", { className: "size-fit shrink-0 rounded-2xl overflow-hidden max-h-full", children: /* @__PURE__ */ r("img", { src: s, className: "object-cover size-auto", alt: o }) })
359
359
  }
360
360
  )
361
361
  }
362
362
  );
363
363
  }
364
- const Tt = q.memo(
364
+ const Mt = q.memo(
365
365
  Ir,
366
366
  (e, o) => e.children === o.children && e.className === o.className
367
367
  );
368
- function xe({
368
+ function be({
369
369
  children: e,
370
370
  messageType: o,
371
371
  messageId: t
372
372
  }) {
373
373
  const { anchorTarget: n } = x();
374
374
  return /* @__PURE__ */ r(
375
- Tt,
375
+ Mt,
376
376
  {
377
377
  "data-type": o,
378
378
  "data-id": t,
379
- remarkPlugins: [ft],
380
- rehypePlugins: [vt],
379
+ remarkPlugins: [vt],
380
+ rehypePlugins: [xt],
381
381
  components: {
382
- a: ({ children: s, ...i }) => /* @__PURE__ */ r("a", { target: i.target || n || "_top", ...i, children: s })
382
+ a: ({ children: s, ...a }) => /* @__PURE__ */ r("a", { target: a.target || n || "_top", ...a, children: s })
383
383
  },
384
384
  children: e
385
385
  }
386
386
  );
387
387
  }
388
- function me({
388
+ function ge({
389
389
  data: e,
390
390
  id: o,
391
391
  type: t,
392
392
  attachments: n,
393
393
  isFirstInGroup: s,
394
- isLastInGroup: i,
395
- isAloneInGroup: a,
394
+ isLastInGroup: a,
395
+ isAloneInGroup: i,
396
396
  dataComponentNames: c,
397
397
  classNames: l
398
398
  }) {
@@ -407,14 +407,14 @@ function me({
407
407
  l == null ? void 0 : l.messageContainer
408
408
  ),
409
409
  children: [
410
- n && n.length > 0 && /* @__PURE__ */ r("div", { className: "w-full gap-1 flex flex-row flex-wrap items-center justify-start", children: n == null ? void 0 : n.map((w) => /* @__PURE__ */ r(It, { attachment: w }, w.id)) }),
410
+ n && n.length > 0 && /* @__PURE__ */ r("div", { className: "w-full gap-1 flex flex-row flex-wrap items-center justify-start", children: n == null ? void 0 : n.map((w) => /* @__PURE__ */ r(Tt, { attachment: w }, w.id)) }),
411
411
  h.length > 0 && /* @__PURE__ */ r(
412
412
  "div",
413
413
  {
414
414
  ...g((c == null ? void 0 : c.message) ?? "chat/agent_msg/msg"),
415
415
  "data-first": s,
416
- "data-last": i,
417
- "data-alone": a,
416
+ "data-last": a,
417
+ "data-alone": i,
418
418
  "data-variant": b,
419
419
  className: p(
420
420
  "transition-all",
@@ -426,22 +426,22 @@ function me({
426
426
  // Adding "whitespace-pre-wrap" will result in unnecessarily huge line breaks
427
427
  b === "error" && "bg-destructive/15 text-destructive",
428
428
  // We're using the booleans directly here, not the data attributes, to make any external styling more specific than this
429
- s && !a && "rounded-bl-md",
430
- i && !a && "rounded-tl-md",
431
- !s && !i && !a && "rounded-l-md",
429
+ s && !i && "rounded-bl-md",
430
+ a && !i && "rounded-tl-md",
431
+ !s && !a && !i && "rounded-l-md",
432
432
  l == null ? void 0 : l.message
433
433
  ),
434
- children: /* @__PURE__ */ r(xe, { messageType: t, messageId: o, children: h })
434
+ children: /* @__PURE__ */ r(be, { messageType: t, messageId: o, children: h })
435
435
  }
436
436
  )
437
437
  ]
438
438
  }
439
439
  );
440
440
  }
441
- function Br(e) {
441
+ function $r(e) {
442
442
  return /* @__PURE__ */ r("div", { className: "w-full max-w-full overflow-auto shrink-0", children: /* @__PURE__ */ r("pre", { className: "text-xs leading-tight whitespace-pre-wrap break-word", children: JSON.stringify(e, null, 1) }) });
443
443
  }
444
- const be = G.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
444
+ const ye = G.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
445
445
  Q.Root,
446
446
  {
447
447
  ref: t,
@@ -453,8 +453,8 @@ const be = G.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
453
453
  ...o
454
454
  }
455
455
  ));
456
- be.displayName = Q.Root.displayName;
457
- const ye = G.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
456
+ ye.displayName = Q.Root.displayName;
457
+ const ke = G.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
458
458
  Q.Image,
459
459
  {
460
460
  ref: t,
@@ -462,8 +462,8 @@ const ye = G.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
462
462
  ...o
463
463
  }
464
464
  ));
465
- ye.displayName = Q.Image.displayName;
466
- const ke = G.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
465
+ ke.displayName = Q.Image.displayName;
466
+ const Ce = G.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
467
467
  Q.Fallback,
468
468
  {
469
469
  ref: t,
@@ -474,15 +474,15 @@ const ke = G.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
474
474
  ...o
475
475
  }
476
476
  ));
477
- ke.displayName = Q.Fallback.displayName;
478
- function ge({
477
+ Ce.displayName = Q.Fallback.displayName;
478
+ function we({
479
479
  agent: e,
480
480
  ...o
481
481
  }) {
482
482
  var t, n;
483
- return /* @__PURE__ */ d(be, { ...o, children: [
484
- /* @__PURE__ */ r(ye, { src: (e == null ? void 0 : e.avatar) ?? "", alt: "Agent Icon" }),
485
- (e == null ? void 0 : e.name) && /* @__PURE__ */ r(ke, { children: (n = (t = e == null ? void 0 : e.name) == null ? void 0 : t.slice(0, 1)) == null ? void 0 : n.toUpperCase() })
483
+ return /* @__PURE__ */ d(ye, { ...o, children: [
484
+ /* @__PURE__ */ r(ke, { src: (e == null ? void 0 : e.avatar) ?? "", alt: "Agent Icon" }),
485
+ (e == null ? void 0 : e.name) && /* @__PURE__ */ r(Ce, { children: (n = (t = e == null ? void 0 : e.name) == null ? void 0 : t.slice(0, 1)) == null ? void 0 : n.toUpperCase() })
486
486
  ] });
487
487
  }
488
488
  function Lr({ agent: e }) {
@@ -492,7 +492,7 @@ function Lr({ agent: e }) {
492
492
  ...g("chat/bot_loading/root"),
493
493
  className: "flex flex-row items-end w-full gap-2 animate-pulse",
494
494
  children: [
495
- /* @__PURE__ */ r(ge, { agent: e }),
495
+ /* @__PURE__ */ r(we, { agent: e }),
496
496
  /* @__PURE__ */ d(
497
497
  "div",
498
498
  {
@@ -512,7 +512,7 @@ function Lr({ agent: e }) {
512
512
  }
513
513
  ) });
514
514
  }
515
- const Mt = '@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..700;1,14..32,100..700&display=swap";@import"https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*{-ms-overflow-style:none;scrollbar-width:none}*::-webkit-scrollbar{display:none}*{border-color:hsl(var(--opencx-border))}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%),0 3px rgb(var(--tw-prose-kbd-shadows) / 10%);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-kbd: #111827;--tw-prose-kbd-shadows: 17 24 39;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.end-6{inset-inline-end:1.5rem}.left-2{left:.5rem}.left-\\[50\\%\\]{left:50%}.right-4{right:1rem}.top-4{top:1rem}.top-6{top:1.5rem}.top-\\[50\\%\\]{top:50%}.isolate{isolation:isolate}.z-10{z-index:10}.z-50{z-index:50}.m-2{margin:.5rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ms-auto{margin-inline-start:auto}.mt-0\\.5{margin-top:.125rem}.mt-auto{margin-top:auto}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.size-0{width:0px;height:0px}.size-10{width:2.5rem;height:2.5rem}.size-12{width:3rem;height:3rem}.size-16{width:4rem;height:4rem}.size-3{width:.75rem;height:.75rem}.size-4{width:1rem;height:1rem}.size-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.size-auto{width:auto;height:auto}.size-fit{width:fit-content;height:fit-content}.size-full{width:100%;height:100%}.h-0{height:0px}.h-10{height:2.5rem}.h-2{height:.5rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-full{height:100%}.h-px{height:1px}.max-h-16{max-height:4rem}.max-h-40{max-height:10rem}.max-h-full{max-height:100%}.min-h-12{min-height:3rem}.w-0{width:0px}.w-1\\/2{width:50%}.w-10{width:2.5rem}.w-2{width:.5rem}.w-2\\/5{width:40%}.w-3\\.5{width:.875rem}.w-3\\/5{width:60%}.w-4{width:1rem}.w-5\\/6{width:83.333333%}.w-60{width:15rem}.w-9{width:2.25rem}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.min-w-80{min-width:20rem}.min-w-\\[8rem\\]{min-width:8rem}.max-w-96{max-width:24rem}.max-w-\\[61\\.8\\%\\]{max-width:61.8%}.max-w-full{max-width:100%}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.translate-x-\\[-50\\%\\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[var\\(--wobble-x\\)\\]{--tw-translate-x: var(--wobble-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[-50\\%\\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[var\\(--wobble-y\\)\\]{--tw-translate-y: var(--wobble-y);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-\\[1px\\]{gap:1px}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.scroll-smooth{scroll-behavior:smooth}.text-ellipsis{text-overflow:ellipsis}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-\\[20px\\]{border-radius:20px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-l-md{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.rounded-r-md{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-bl-md{border-bottom-left-radius:.375rem}.rounded-br-md{border-bottom-right-radius:.375rem}.rounded-tl-md{border-top-left-radius:.375rem}.rounded-tr-md{border-top-right-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-none{border-style:none}.border-transparent{border-color:transparent}.bg-\\[white\\]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-background{background-color:hsl(var(--opencx-background))}.bg-black\\/50{background-color:#00000080}.bg-black\\/60{background-color:#0009}.bg-destructive{background-color:hsl(var(--opencx-destructive))}.bg-destructive\\/15{background-color:hsl(var(--opencx-destructive) / .15)}.bg-muted{background-color:hsl(var(--opencx-muted))}.bg-primary{background-color:hsl(var(--opencx-primary))}.bg-secondary{background-color:hsl(var(--opencx-secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-\\[radial-gradient\\(ellipse_at_top_left\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\,radial-gradient\\(ellipse_at_top_right\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\]{background-image:radial-gradient(ellipse at top left,hsl(var(--opencx-primary)),transparent),radial-gradient(ellipse at top right,hsl(var(--opencx-primary)),transparent)}.fill-current{fill:currentColor}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-0{padding-bottom:0}.pb-2{padding-bottom:.5rem}.pe-2{padding-inline-end:.5rem}.pe-4{padding-inline-end:1rem}.ps-2{padding-inline-start:.5rem}.ps-4{padding-inline-start:1rem}.ps-8{padding-inline-start:2rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.text-center{text-align:center}.text-start{text-align:start}.align-middle{vertical-align:middle}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-\\[1\\.75rem\\]{font-size:1.75rem}.text-\\[10px\\]{font-size:10px}.text-\\[16px\\]{font-size:16px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-none{line-height:1}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-destructive{color:hsl(var(--opencx-destructive))}.text-destructive-foreground{color:hsl(var(--opencx-destructive-foreground))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}.text-foreground{color:hsl(var(--opencx-foreground))}.text-muted-foreground{color:hsl(var(--opencx-muted-foreground))}.text-muted-foreground\\/70{color:hsl(var(--opencx-muted-foreground) / .7)}.text-muted-foreground\\/75{color:hsl(var(--opencx-muted-foreground) / .75)}.text-primary{color:hsl(var(--opencx-primary))}.text-primary-foreground{color:hsl(var(--opencx-primary-foreground))}.text-secondary-foreground{color:hsl(var(--opencx-secondary-foreground))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-35{opacity:.35}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-95{opacity:.95}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-8{outline-width:8px}.outline-background{outline-color:hsl(var(--opencx-background))}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-offset-background{--tw-ring-offset-color: hsl(var(--opencx-background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[height\\]{transition-property:height;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.\\[animation-delay\\:-0\\.15s\\]{animation-delay:-.15s}.\\[animation-delay\\:-0\\.3s\\]{animation-delay:-.3s}.\\[field-sizing\\:content\\;\\],.\\[field-sizing\\:content\\]{field-sizing:content}.\\[word-break\\:break-word\\]{word-break:break-word}.required:after{content:" *";color:red}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.file\\:text-primary-foreground::file-selector-button{color:hsl(var(--opencx-primary-foreground))}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--opencx-muted-foreground))}.placeholder\\:text-muted-foreground\\/75::placeholder{color:hsl(var(--opencx-muted-foreground) / .75)}.focus-within\\:border-primary:focus-within{border-color:hsl(var(--opencx-primary))}.hover\\:scale-\\[var\\(--scale\\)\\]:hover{--tw-scale-x: var(--scale);--tw-scale-y: var(--scale);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:border-primary:hover{border-color:hsl(var(--opencx-primary))}.hover\\:bg-secondary:hover{background-color:hsl(var(--opencx-secondary))}.hover\\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.hover\\:text-primary:hover{color:hsl(var(--opencx-primary))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.focus\\:bg-accent:focus{background-color:hsl(var(--opencx-accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--opencx-accent-foreground))}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--opencx-ring))}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--opencx-background))}.active\\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\\:hover\\:scale-\\[calc\\(var\\(--scale\\)-0\\.02\\)\\]:hover:active{--tw-scale-x: calc(var(--scale) - .02);--tw-scale-y: calc(var(--scale) - .02);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:active\\:scale-95:active:hover{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\\:opacity-100{opacity:1}.group:hover .group-hover\\:active\\:scale-90:active,.group:active .group-active\\:scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[state\\=checked\\]\\:translate-x-4[data-state=checked]{--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:hsl(var(--opencx-primary))}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--opencx-accent))}.data-\\[state\\=unchecked\\]\\:bg-input[data-state=unchecked]{background-color:hsl(var(--opencx-input))}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.prose-a\\:underline :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-line:underline}.prose-a\\:decoration-primary :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-color:hsl(var(--opencx-primary))}.rtl\\:-scale-100:where([dir=rtl],[dir=rtl] *){--tw-scale-x: -1;--tw-scale-y: -1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\\[\\&_span\\]\\:size-1 span{width:.25rem;height:.25rem}.\\[\\&_span\\]\\:bg-secondary-foreground span{background-color:hsl(var(--opencx-secondary-foreground))}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:size-4 svg{width:1rem;height:1rem}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_svg\\]\\:text-muted-foreground\\/70 svg{color:hsl(var(--opencx-muted-foreground) / .7)}.\\[\\&_svg\\]\\:hover\\:text-primary:hover svg{color:hsl(var(--opencx-primary))}', Yr = oe.Provider, qr = oe.Root, Xr = oe.Trigger, Dt = G.forwardRef(({ className: e, sideOffset: o = 4, ...t }, n) => /* @__PURE__ */ r(
515
+ const Dt = '@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..700;1,14..32,100..700&display=swap";@import"https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*{-ms-overflow-style:none;scrollbar-width:none}*::-webkit-scrollbar{display:none}*{border-color:hsl(var(--opencx-border))}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%),0 3px rgb(var(--tw-prose-kbd-shadows) / 10%);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-kbd: #111827;--tw-prose-kbd-shadows: 17 24 39;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.end-6{inset-inline-end:1.5rem}.left-2{left:.5rem}.left-\\[50\\%\\]{left:50%}.right-4{right:1rem}.top-4{top:1rem}.top-6{top:1.5rem}.top-\\[50\\%\\]{top:50%}.isolate{isolation:isolate}.z-10{z-index:10}.z-50{z-index:50}.m-2{margin:.5rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ms-auto{margin-inline-start:auto}.mt-0\\.5{margin-top:.125rem}.mt-auto{margin-top:auto}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.size-0{width:0px;height:0px}.size-10{width:2.5rem;height:2.5rem}.size-12{width:3rem;height:3rem}.size-16{width:4rem;height:4rem}.size-3{width:.75rem;height:.75rem}.size-4{width:1rem;height:1rem}.size-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.size-auto{width:auto;height:auto}.size-fit{width:fit-content;height:fit-content}.size-full{width:100%;height:100%}.h-0{height:0px}.h-10{height:2.5rem}.h-2{height:.5rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-full{height:100%}.h-px{height:1px}.max-h-16{max-height:4rem}.max-h-40{max-height:10rem}.max-h-full{max-height:100%}.min-h-12{min-height:3rem}.w-0{width:0px}.w-1\\/2{width:50%}.w-10{width:2.5rem}.w-2{width:.5rem}.w-2\\/5{width:40%}.w-3\\.5{width:.875rem}.w-3\\/5{width:60%}.w-4{width:1rem}.w-5\\/6{width:83.333333%}.w-60{width:15rem}.w-9{width:2.25rem}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.min-w-80{min-width:20rem}.min-w-\\[8rem\\]{min-width:8rem}.max-w-96{max-width:24rem}.max-w-\\[61\\.8\\%\\]{max-width:61.8%}.max-w-full{max-width:100%}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.translate-x-\\[-50\\%\\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[var\\(--wobble-x\\)\\]{--tw-translate-x: var(--wobble-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[-50\\%\\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[var\\(--wobble-y\\)\\]{--tw-translate-y: var(--wobble-y);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-\\[1px\\]{gap:1px}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.scroll-smooth{scroll-behavior:smooth}.text-ellipsis{text-overflow:ellipsis}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-\\[20px\\]{border-radius:20px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-l-md{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.rounded-r-md{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-bl-md{border-bottom-left-radius:.375rem}.rounded-br-md{border-bottom-right-radius:.375rem}.rounded-tl-md{border-top-left-radius:.375rem}.rounded-tr-md{border-top-right-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-none{border-style:none}.border-transparent{border-color:transparent}.bg-\\[white\\]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-background{background-color:hsl(var(--opencx-background))}.bg-black\\/50{background-color:#00000080}.bg-black\\/60{background-color:#0009}.bg-destructive{background-color:hsl(var(--opencx-destructive))}.bg-destructive\\/15{background-color:hsl(var(--opencx-destructive) / .15)}.bg-muted{background-color:hsl(var(--opencx-muted))}.bg-primary{background-color:hsl(var(--opencx-primary))}.bg-secondary{background-color:hsl(var(--opencx-secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-\\[radial-gradient\\(ellipse_at_top_left\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\,radial-gradient\\(ellipse_at_top_right\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\]{background-image:radial-gradient(ellipse at top left,hsl(var(--opencx-primary)),transparent),radial-gradient(ellipse at top right,hsl(var(--opencx-primary)),transparent)}.fill-current{fill:currentColor}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-0{padding-bottom:0}.pb-2{padding-bottom:.5rem}.pe-2{padding-inline-end:.5rem}.pe-4{padding-inline-end:1rem}.ps-2{padding-inline-start:.5rem}.ps-4{padding-inline-start:1rem}.ps-8{padding-inline-start:2rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.text-center{text-align:center}.text-start{text-align:start}.align-middle{vertical-align:middle}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-\\[1\\.75rem\\]{font-size:1.75rem}.text-\\[10px\\]{font-size:10px}.text-\\[16px\\]{font-size:16px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-none{line-height:1}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-destructive{color:hsl(var(--opencx-destructive))}.text-destructive-foreground{color:hsl(var(--opencx-destructive-foreground))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}.text-foreground{color:hsl(var(--opencx-foreground))}.text-muted-foreground{color:hsl(var(--opencx-muted-foreground))}.text-muted-foreground\\/70{color:hsl(var(--opencx-muted-foreground) / .7)}.text-muted-foreground\\/75{color:hsl(var(--opencx-muted-foreground) / .75)}.text-primary{color:hsl(var(--opencx-primary))}.text-primary-foreground{color:hsl(var(--opencx-primary-foreground))}.text-secondary-foreground{color:hsl(var(--opencx-secondary-foreground))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-35{opacity:.35}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-95{opacity:.95}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-8{outline-width:8px}.outline-background{outline-color:hsl(var(--opencx-background))}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-offset-background{--tw-ring-offset-color: hsl(var(--opencx-background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[height\\]{transition-property:height;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.\\[animation-delay\\:-0\\.15s\\]{animation-delay:-.15s}.\\[animation-delay\\:-0\\.3s\\]{animation-delay:-.3s}.\\[field-sizing\\:content\\;\\],.\\[field-sizing\\:content\\]{field-sizing:content}.\\[word-break\\:break-word\\]{word-break:break-word}.required:after{content:" *";color:red}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.file\\:text-primary-foreground::file-selector-button{color:hsl(var(--opencx-primary-foreground))}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--opencx-muted-foreground))}.placeholder\\:text-muted-foreground\\/75::placeholder{color:hsl(var(--opencx-muted-foreground) / .75)}.focus-within\\:border-primary:focus-within{border-color:hsl(var(--opencx-primary))}.hover\\:scale-\\[var\\(--scale\\)\\]:hover{--tw-scale-x: var(--scale);--tw-scale-y: var(--scale);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:border-primary:hover{border-color:hsl(var(--opencx-primary))}.hover\\:bg-secondary:hover{background-color:hsl(var(--opencx-secondary))}.hover\\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.hover\\:text-primary:hover{color:hsl(var(--opencx-primary))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.focus\\:bg-accent:focus{background-color:hsl(var(--opencx-accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--opencx-accent-foreground))}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--opencx-ring))}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--opencx-background))}.active\\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\\:hover\\:scale-\\[calc\\(var\\(--scale\\)-0\\.02\\)\\]:hover:active{--tw-scale-x: calc(var(--scale) - .02);--tw-scale-y: calc(var(--scale) - .02);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:active\\:scale-95:active:hover{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\\:opacity-100{opacity:1}.group:hover .group-hover\\:active\\:scale-90:active,.group:active .group-active\\:scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[state\\=checked\\]\\:translate-x-4[data-state=checked]{--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:hsl(var(--opencx-primary))}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--opencx-accent))}.data-\\[state\\=unchecked\\]\\:bg-input[data-state=unchecked]{background-color:hsl(var(--opencx-input))}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.prose-a\\:underline :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-line:underline}.prose-a\\:decoration-primary :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-color:hsl(var(--opencx-primary))}.rtl\\:-scale-100:where([dir=rtl],[dir=rtl] *){--tw-scale-x: -1;--tw-scale-y: -1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\\[\\&_span\\]\\:size-1 span{width:.25rem;height:.25rem}.\\[\\&_span\\]\\:bg-secondary-foreground span{background-color:hsl(var(--opencx-secondary-foreground))}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:size-4 svg{width:1rem;height:1rem}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_svg\\]\\:text-muted-foreground\\/70 svg{color:hsl(var(--opencx-muted-foreground) / .7)}.\\[\\&_svg\\]\\:hover\\:text-primary:hover svg{color:hsl(var(--opencx-primary))}', Yr = oe.Provider, qr = oe.Root, Xr = oe.Trigger, Rt = G.forwardRef(({ className: e, sideOffset: o = 4, ...t }, n) => /* @__PURE__ */ r(
516
516
  oe.Content,
517
517
  {
518
518
  ref: n,
@@ -524,7 +524,7 @@ const Mt = '@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wgh
524
524
  ...t
525
525
  }
526
526
  ));
527
- Dt.displayName = oe.Content.displayName;
527
+ Rt.displayName = oe.Content.displayName;
528
528
  function J({
529
529
  children: e,
530
530
  content: o,
@@ -535,7 +535,7 @@ function J({
535
535
  return !o || s ? e : /* @__PURE__ */ d(qr, { children: [
536
536
  /* @__PURE__ */ r(Xr, { asChild: !0, children: e }),
537
537
  /* @__PURE__ */ r(
538
- Dt,
538
+ Rt,
539
539
  {
540
540
  side: t,
541
541
  align: n,
@@ -546,25 +546,25 @@ function J({
546
546
  )
547
547
  ] });
548
548
  }
549
- const nt = 450;
550
- function P() {
551
- const [e, o] = q.useState(() => (window.top || window).innerWidth < nt);
549
+ const st = 450;
550
+ function A() {
551
+ const [e, o] = q.useState(() => (window.top || window).innerWidth < st);
552
552
  return q.useEffect(() => {
553
553
  const t = window.top || window, n = () => {
554
- o(t.innerWidth < nt);
554
+ o(t.innerWidth < st);
555
555
  };
556
556
  return n(), t.addEventListener("resize", n), () => {
557
557
  t.removeEventListener("resize", n);
558
558
  };
559
559
  }, []), { isSmallScreen: e };
560
560
  }
561
- const se = {
561
+ const ie = {
562
562
  transitionTimingFunction: "cubic-bezier(0.16, 1, 0.3, 1)",
563
563
  transitionDuration: "1000ms"
564
564
  };
565
565
  function X() {
566
- var w, m, C, u, y, I, S, M, A, F, H, E, v, z, N, L, ne, Se, _e, Ie, Te, Me, De, Re, je, Ee, Oe, Pe, Ae, Fe, He, We, $e, Be, Le, Ye, qe, Xe, Ue, Ve, Ge, Ke, Qe, Ze, Je, et, tt;
567
- const { dir: e } = fe(), { isSmallScreen: o } = P(), { theme: t, inline: n } = x(), s = (Y) => n ? "100%" : Y, i = (Y, pe) => o ? `100dv${Y}` : pe, a = (Y, pe) => s(i(Y, pe)), c = {
566
+ var w, m, C, u, y, I, S, M, H, F, W, E, v, z, N, L, se, _e, Ie, Te, Me, De, Re, je, Ee, Oe, Pe, Ae, He, Fe, We, Be, $e, Le, Ye, qe, Xe, Ue, Ve, Ge, Ke, Qe, Ze, Je, et, tt, rt;
567
+ const { dir: e } = ve(), { isSmallScreen: o } = A(), { theme: t, inline: n } = x(), s = (Y) => n ? "100%" : Y, a = (Y, he) => o ? `100dv${Y}` : he, i = (Y, he) => s(a(Y, he)), c = {
568
568
  zIndex: ((w = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : w.zIndex) ?? 1e7,
569
569
  offset: {
570
570
  bottom: ((C = (m = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : m.offset) == null ? void 0 : C.bottom) ?? 20,
@@ -572,8 +572,8 @@ function X() {
572
572
  left: ((S = (I = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : I.offset) == null ? void 0 : S.left) ?? (e === "rtl" ? 20 : "initial")
573
573
  },
574
574
  size: {
575
- button: ((A = (M = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : M.size) == null ? void 0 : A.button) ?? 48,
576
- icon: ((H = (F = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : F.size) == null ? void 0 : H.icon) ?? 24
575
+ button: ((H = (M = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : M.size) == null ? void 0 : H.button) ?? 48,
576
+ icon: ((W = (F = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : F.size) == null ? void 0 : W.icon) ?? 24
577
577
  }
578
578
  }, l = (() => {
579
579
  const Y = e === "ltr" ? c.offset.right : c.offset.left;
@@ -589,41 +589,41 @@ function X() {
589
589
  // was: '1px solid'
590
590
  outlineColor: ((N = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : N.outlineColor) ?? "hsl(0 0% 50% / .5)",
591
591
  boxShadow: ((L = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : L.boxShadow) ?? "0 0px 100px 0px rgb(0 0 0 / 0.25)",
592
- transitionProperty: ((ne = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : ne.transitionProperty) ?? "all",
593
- transitionTimingFunction: ((Se = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Se.transitionTimingFunction) ?? se.transitionTimingFunction,
594
- transitionDuration: ((_e = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : _e.transitionDuration) ?? se.transitionDuration,
592
+ transitionProperty: ((se = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : se.transitionProperty) ?? "all",
593
+ transitionTimingFunction: ((_e = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : _e.transitionTimingFunction) ?? ie.transitionTimingFunction,
594
+ transitionDuration: ((Ie = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Ie.transitionDuration) ?? ie.transitionDuration,
595
595
  offset: {
596
- side: o ? 0 : c.offset.bottom + c.size.button + V.y * 2 + (((Te = (Ie = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Ie.offset) == null ? void 0 : Te.side) ?? 10),
597
- align: o ? 0 : l + (((De = (Me = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Me.offset) == null ? void 0 : De.align) ?? 0)
596
+ side: o ? 0 : c.offset.bottom + c.size.button + V.y * 2 + (((Me = (Te = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Te.offset) == null ? void 0 : Me.side) ?? 10),
597
+ align: o ? 0 : l + (((Re = (De = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : De.offset) == null ? void 0 : Re.align) ?? 0)
598
598
  }
599
599
  },
600
600
  screens: {
601
601
  welcome: {
602
- width: a("w", ((je = (Re = t == null ? void 0 : t.screens) == null ? void 0 : Re.welcome) == null ? void 0 : je.width) ?? "400px"),
602
+ width: i("w", ((Ee = (je = t == null ? void 0 : t.screens) == null ? void 0 : je.welcome) == null ? void 0 : Ee.width) ?? "400px"),
603
603
  // By setting minHeight to 1px, a nice animation will play from 1px to the dynamic height of the content of the screen
604
- minHeight: a(
604
+ minHeight: i(
605
605
  "h",
606
- ((Oe = (Ee = t == null ? void 0 : t.screens) == null ? void 0 : Ee.welcome) == null ? void 0 : Oe.minHeight) ?? "1px"
606
+ ((Pe = (Oe = t == null ? void 0 : t.screens) == null ? void 0 : Oe.welcome) == null ? void 0 : Pe.minHeight) ?? "1px"
607
607
  )
608
608
  },
609
609
  sessions: {
610
- width: a("w", ((Ae = (Pe = t == null ? void 0 : t.screens) == null ? void 0 : Pe.sessions) == null ? void 0 : Ae.width) ?? "450px"),
611
- height: a("h", ((He = (Fe = t == null ? void 0 : t.screens) == null ? void 0 : Fe.sessions) == null ? void 0 : He.height) ?? "600px")
610
+ width: i("w", ((He = (Ae = t == null ? void 0 : t.screens) == null ? void 0 : Ae.sessions) == null ? void 0 : He.width) ?? "450px"),
611
+ height: i("h", ((We = (Fe = t == null ? void 0 : t.screens) == null ? void 0 : Fe.sessions) == null ? void 0 : We.height) ?? "600px")
612
612
  },
613
613
  chat: {
614
- width: a("w", (($e = (We = t == null ? void 0 : t.screens) == null ? void 0 : We.chat) == null ? void 0 : $e.width) ?? "525px"),
615
- height: a("h", ((Le = (Be = t == null ? void 0 : t.screens) == null ? void 0 : Be.chat) == null ? void 0 : Le.height) ?? "700px"),
614
+ width: i("w", (($e = (Be = t == null ? void 0 : t.screens) == null ? void 0 : Be.chat) == null ? void 0 : $e.width) ?? "525px"),
615
+ height: i("h", ((Ye = (Le = t == null ? void 0 : t.screens) == null ? void 0 : Le.chat) == null ? void 0 : Ye.height) ?? "700px"),
616
616
  withCanvas: {
617
- width: a(
617
+ width: i(
618
618
  "w",
619
- ((Xe = (qe = (Ye = t == null ? void 0 : t.screens) == null ? void 0 : Ye.chat) == null ? void 0 : qe.withCanvas) == null ? void 0 : Xe.width) ?? "min(1050px, 100vw)"
619
+ ((Ue = (Xe = (qe = t == null ? void 0 : t.screens) == null ? void 0 : qe.chat) == null ? void 0 : Xe.withCanvas) == null ? void 0 : Ue.width) ?? "min(1050px, 100vw)"
620
620
  ),
621
- height: a(
621
+ height: i(
622
622
  "h",
623
- ((Ge = (Ve = (Ue = t == null ? void 0 : t.screens) == null ? void 0 : Ue.chat) == null ? void 0 : Ve.withCanvas) == null ? void 0 : Ge.height) ?? "min(800px, 100vh)"
623
+ ((Ke = (Ge = (Ve = t == null ? void 0 : t.screens) == null ? void 0 : Ve.chat) == null ? void 0 : Ge.withCanvas) == null ? void 0 : Ke.height) ?? "min(800px, 100vh)"
624
624
  ),
625
- transitionTimingFunction: ((Ze = (Qe = (Ke = t == null ? void 0 : t.screens) == null ? void 0 : Ke.chat) == null ? void 0 : Qe.withCanvas) == null ? void 0 : Ze.transitionTimingFunction) ?? se.transitionTimingFunction,
626
- transitionDuration: ((tt = (et = (Je = t == null ? void 0 : t.screens) == null ? void 0 : Je.chat) == null ? void 0 : et.withCanvas) == null ? void 0 : tt.transitionDuration) ?? se.transitionDuration
625
+ transitionTimingFunction: ((Je = (Ze = (Qe = t == null ? void 0 : t.screens) == null ? void 0 : Qe.chat) == null ? void 0 : Ze.withCanvas) == null ? void 0 : Je.transitionTimingFunction) ?? ie.transitionTimingFunction,
626
+ transitionDuration: ((rt = (tt = (et = t == null ? void 0 : t.screens) == null ? void 0 : et.chat) == null ? void 0 : tt.withCanvas) == null ? void 0 : rt.transitionDuration) ?? ie.transitionDuration
627
627
  }
628
628
  }
629
629
  }
@@ -631,7 +631,7 @@ function X() {
631
631
  // Subtract the offset.bottom twice so that it adds a bit of padding to the top
632
632
  // Subtract the distance between the trigger and the widget content container
633
633
  // Subtract the invisible padding of the trigger (for the wobble effect)
634
- maxHeight: a(
634
+ maxHeight: i(
635
635
  "h",
636
636
  `calc(
637
637
  100vh
@@ -641,14 +641,14 @@ function X() {
641
641
  )`
642
642
  ),
643
643
  // Subtract the offset.right twice so that it adds a bit of padding to the left
644
- maxWidth: a(
644
+ maxWidth: i(
645
645
  "w",
646
646
  `calc(
647
647
  100vw
648
648
  - ${l * 2}px
649
649
  )`
650
650
  ),
651
- minHeight: a(
651
+ minHeight: i(
652
652
  "h",
653
653
  `min(
654
654
  ${h.screens.welcome.minHeight},
@@ -656,7 +656,7 @@ function X() {
656
656
  ${h.screens.chat.height}
657
657
  )`
658
658
  ),
659
- minWidth: a(
659
+ minWidth: i(
660
660
  "w",
661
661
  `min(
662
662
  ${h.screens.welcome.width},
@@ -678,7 +678,7 @@ function Ur({
678
678
  palette: e,
679
679
  primary: o
680
680
  }) {
681
- const t = Rt(e), n = ot(o).toHsl(), s = ot(o).isLight() ? t[950] : t[50];
681
+ const t = jt(e), n = nt(o).toHsl(), s = nt(o).isLight() ? t[950] : t[50];
682
682
  return {
683
683
  "--opencx-primary": `${n.h} ${n.s * 100}% ${n.l * 100}%`,
684
684
  "--opencx-primary-foreground": s,
@@ -697,7 +697,7 @@ function Ur({
697
697
  "--opencx-ring": "var(--opencx-foreground)"
698
698
  };
699
699
  }
700
- function Rt(e) {
700
+ function jt(e) {
701
701
  const o = {
702
702
  50: "0 0% 98%",
703
703
  100: "0 0% 96.1%",
@@ -757,10 +757,10 @@ function Rt(e) {
757
757
  case "slate":
758
758
  return s;
759
759
  default:
760
- return D(e, Rt.name), o;
760
+ return D(e, jt.name), o;
761
761
  }
762
762
  }
763
- function jt() {
763
+ function Et() {
764
764
  const { contentIframeRef: e } = R(), { inline: o } = x();
765
765
  return {
766
766
  setWidth: (t) => {
@@ -779,16 +779,16 @@ function jt() {
779
779
  }
780
780
  };
781
781
  }
782
- function Ce({
782
+ function ze({
783
783
  width: e,
784
784
  height: o
785
785
  }) {
786
- const { isSmallScreen: t } = P(), { setWidth: n, setHeight: s } = jt();
786
+ const { isSmallScreen: t } = A(), { setWidth: n, setHeight: s } = Et();
787
787
  re(() => {
788
788
  e && n(e), o && s(o);
789
789
  }, [t, o, e, n, s]);
790
790
  }
791
- const st = er;
791
+ const it = er;
792
792
  function ee({
793
793
  name: e,
794
794
  className: o
@@ -800,7 +800,7 @@ function ee({
800
800
  case "CheckCheck":
801
801
  return hr;
802
802
  case "CircleCheck":
803
- return wt;
803
+ return ut;
804
804
  case "CircleCheckBig":
805
805
  return pr;
806
806
  case "CircleX":
@@ -824,35 +824,66 @@ function ee({
824
824
  case "SquareX":
825
825
  return tr;
826
826
  case "X":
827
- return ve;
827
+ return xe;
828
828
  case void 0:
829
- return st;
829
+ return it;
830
830
  default:
831
- return D(e, ee.name), st;
831
+ return D(e, ee.name), it;
832
832
  }
833
833
  })();
834
834
  return /* @__PURE__ */ r(t, { className: p("size-4", o) });
835
835
  }
836
- function ze() {
837
- const { widgetCtx: { org: e } } = R(), {
836
+ function ne() {
837
+ const {
838
+ widgetCtx: { org: e }
839
+ } = R(), {
840
+ sessionState: { session: o }
841
+ } = $(), t = x(), {
842
+ messagesState: { messages: n }
843
+ } = j(), {
844
+ routerState: { screen: s }
845
+ } = P();
846
+ return {
847
+ react: q,
848
+ org: e,
849
+ session: o,
850
+ config: t,
851
+ messages: n,
852
+ currentScreen: s
853
+ };
854
+ }
855
+ function Vr() {
856
+ var t;
857
+ const e = ne(), o = (t = e.config.customComponents) == null ? void 0 : t.headerBottom;
858
+ return o ? /* @__PURE__ */ r(o, { ...e }) : null;
859
+ }
860
+ function Gr({ fallback: e }) {
861
+ var n;
862
+ const o = ne(), t = (n = o.config.customComponents) == null ? void 0 : n.headerTitle;
863
+ return t ? /* @__PURE__ */ r(t, { ...o }) : e;
864
+ }
865
+ function Ne() {
866
+ const {
867
+ widgetCtx: { org: e }
868
+ } = R(), {
838
869
  routerState: { screen: o }
839
- } = $(), { textContent: t } = x();
870
+ } = P(), { textContent: t } = x();
840
871
  return (() => {
841
- var s, i;
872
+ var s, a;
842
873
  switch (o) {
843
874
  case "chat":
844
875
  return (s = t == null ? void 0 : t.chatScreen) == null ? void 0 : s.headerTitle;
845
876
  case "sessions":
846
- return (i = t == null ? void 0 : t.sessionsScreen) == null ? void 0 : i.headerTitle;
877
+ return (a = t == null ? void 0 : t.sessionsScreen) == null ? void 0 : a.headerTitle;
847
878
  case "welcome":
848
879
  return;
849
880
  default:
850
- D(o, ze.name);
881
+ D(o, Ne.name);
851
882
  return;
852
883
  }
853
884
  })() ?? e.name ?? "Chat";
854
885
  }
855
- function Vr(e) {
886
+ function Kr(e) {
856
887
  switch (e) {
857
888
  case "chat":
858
889
  return g("chat/header");
@@ -861,15 +892,15 @@ function Vr(e) {
861
892
  case "welcome":
862
893
  return;
863
894
  default:
864
- D(e, ze.name);
895
+ D(e, Ne.name);
865
896
  return;
866
897
  }
867
898
  }
868
- function Gr() {
899
+ function Qr() {
869
900
  const { router: e } = x(), {
870
901
  routerState: { screen: o },
871
902
  toSessionsScreen: t
872
- } = $();
903
+ } = P();
873
904
  return o !== "chat" || e != null && e.chatScreenOnly ? null : /* @__PURE__ */ r(
874
905
  k,
875
906
  {
@@ -881,10 +912,10 @@ function Gr() {
881
912
  }
882
913
  );
883
914
  }
884
- function Kr({
915
+ function Zr({
885
916
  button: e
886
917
  }) {
887
- const { setIsOpen: o } = K(), { isSmallScreen: t } = P();
918
+ const { setIsOpen: o } = K(), { isSmallScreen: t } = A();
888
919
  return t && e.hideOnSmallScreen || !t && e.hideOnLargeScreen ? null : /* @__PURE__ */ r(
889
920
  k,
890
921
  {
@@ -899,35 +930,35 @@ function Kr({
899
930
  }
900
931
  );
901
932
  }
902
- function we({
933
+ function ue({
903
934
  button: e
904
935
  }) {
905
936
  const [o, t] = T(!1), {
906
937
  routerState: { screen: n }
907
- } = $(), { isSmallScreen: s } = P(), { theme: i } = X(), { setWidth: a, setHeight: c } = jt();
938
+ } = P(), { isSmallScreen: s } = A(), { theme: a } = X(), { setWidth: i, setHeight: c } = Et();
908
939
  if (n !== "chat" && n !== "sessions") return null;
909
940
  const l = (() => {
910
941
  switch (n) {
911
942
  case "chat":
912
- return i.screens.chat.height;
943
+ return a.screens.chat.height;
913
944
  case "sessions":
914
- return i.screens.sessions.height;
945
+ return a.screens.sessions.height;
915
946
  default:
916
- return D(n, we.name), i.screens.chat.height;
947
+ return D(n, ue.name), a.screens.chat.height;
917
948
  }
918
949
  })(), h = (() => {
919
950
  switch (n) {
920
951
  case "chat":
921
- return i.screens.chat.width;
952
+ return a.screens.chat.width;
922
953
  case "sessions":
923
- return i.screens.sessions.width;
954
+ return a.screens.sessions.width;
924
955
  default:
925
- return D(n, we.name), i.screens.chat.width;
956
+ return D(n, ue.name), a.screens.chat.width;
926
957
  }
927
958
  })(), b = () => {
928
959
  t((w) => {
929
960
  const m = !w;
930
- return c(m ? "100vh" : l), a(m ? `max(40vw, ${h})` : h), m;
961
+ return c(m ? "100vh" : l), i(m ? `max(40vw, ${h})` : h), m;
931
962
  });
932
963
  };
933
964
  return s && e.hideOnSmallScreen || !s && e.hideOnLargeScreen ? null : /* @__PURE__ */ r(
@@ -946,11 +977,11 @@ function we({
946
977
  }
947
978
  );
948
979
  }
949
- function Et({
980
+ function Ot({
950
981
  button: e
951
982
  }) {
952
983
  var y, I;
953
- const { close: o } = de(), { widgetCtx: t } = R(), { setIsOpen: n } = K(), { resolveSession: s, sessionState: i } = B(), { isSmallScreen: a } = P(), c = !i.session, l = ((y = i.session) == null ? void 0 : y.isOpened) === !1, h = e.onResolved || "stay-in-chat", b = e.behaviorBeforeSessionCreation || "disabled", w = e.behaviorIfSessionIsResolved || "disabled", m = !!(i.isResolvingSession || c && b === "disabled" || l && w === "disabled"), C = async () => {
984
+ const { close: o } = pe(), { widgetCtx: t } = R(), { setIsOpen: n } = K(), { resolveSession: s, sessionState: a } = $(), { isSmallScreen: i } = A(), c = !a.session, l = ((y = a.session) == null ? void 0 : y.isOpened) === !1, h = e.onResolved || "stay-in-chat", b = e.behaviorBeforeSessionCreation || "disabled", w = e.behaviorIfSessionIsResolved || "disabled", m = !!(a.isResolvingSession || c && b === "disabled" || l && w === "disabled"), C = async () => {
954
985
  const { success: S, error: M } = await s();
955
986
  if (o(), !S) return console.error(M);
956
987
  switch (h) {
@@ -966,7 +997,7 @@ function Et({
966
997
  n(!1), t.resetChat();
967
998
  break;
968
999
  default:
969
- D(h, Et.name);
1000
+ D(h, Ot.name);
970
1001
  break;
971
1002
  }
972
1003
  }, u = () => {
@@ -1005,8 +1036,8 @@ function Et({
1005
1036
  );
1006
1037
  }
1007
1038
  };
1008
- return a && e.hideOnSmallScreen || !a && e.hideOnLargeScreen ? null : ((I = e.confirmation) == null ? void 0 : I.type) === "modal" && !l && !c ? /* @__PURE__ */ r(
1009
- _t,
1039
+ return i && e.hideOnSmallScreen || !i && e.hideOnLargeScreen ? null : ((I = e.confirmation) == null ? void 0 : I.type) === "modal" && !l && !c ? /* @__PURE__ */ r(
1040
+ It,
1010
1041
  {
1011
1042
  trigger: /* @__PURE__ */ r(
1012
1043
  k,
@@ -1018,16 +1049,16 @@ function Et({
1018
1049
  children: /* @__PURE__ */ r(ee, { name: e.icon })
1019
1050
  }
1020
1051
  ),
1021
- children: /* @__PURE__ */ d(yt, { children: [
1022
- /* @__PURE__ */ r(kt, { children: /* @__PURE__ */ r(Nt, { children: e.confirmation.title || "Close conversation" }) }),
1023
- /* @__PURE__ */ r(Ct, { children: /* @__PURE__ */ r(St, { children: e.confirmation.description || "Are you sure you want to close this conversation?" }) }),
1024
- /* @__PURE__ */ d(zt, { children: [
1052
+ children: /* @__PURE__ */ d(kt, { children: [
1053
+ /* @__PURE__ */ r(Ct, { children: /* @__PURE__ */ r(St, { children: e.confirmation.title || "Close conversation" }) }),
1054
+ /* @__PURE__ */ r(zt, { children: /* @__PURE__ */ r(_t, { children: e.confirmation.description || "Are you sure you want to close this conversation?" }) }),
1055
+ /* @__PURE__ */ d(Nt, { children: [
1025
1056
  /* @__PURE__ */ r(
1026
1057
  k,
1027
1058
  {
1028
1059
  variant: "secondary",
1029
1060
  onClick: o,
1030
- disabled: i.isResolvingSession,
1061
+ disabled: a.isResolvingSession,
1031
1062
  children: e.confirmation.cancelButtonText || "No"
1032
1063
  }
1033
1064
  ),
@@ -1036,7 +1067,7 @@ function Et({
1036
1067
  {
1037
1068
  variant: "destructive",
1038
1069
  onClick: C,
1039
- disabled: i.isResolvingSession,
1070
+ disabled: a.isResolvingSession,
1040
1071
  children: e.confirmation.confirmButtonText || "Yes"
1041
1072
  }
1042
1073
  )
@@ -1055,83 +1086,91 @@ function Et({
1055
1086
  }
1056
1087
  );
1057
1088
  }
1058
- function ue({ button: e }) {
1089
+ function fe({ button: e }) {
1059
1090
  switch (e.functionality) {
1060
1091
  case "close-widget":
1061
- return /* @__PURE__ */ r(Kr, { button: e });
1092
+ return /* @__PURE__ */ r(Zr, { button: e });
1062
1093
  case "expand-shrink":
1063
- return /* @__PURE__ */ r(we, { button: e });
1094
+ return /* @__PURE__ */ r(ue, { button: e });
1064
1095
  case "resolve-session":
1065
- return /* @__PURE__ */ r(Et, { button: e });
1096
+ return /* @__PURE__ */ r(Ot, { button: e });
1066
1097
  default:
1067
- return D(e, ue.name), null;
1098
+ return D(e, fe.name), null;
1068
1099
  }
1069
1100
  }
1070
- const Qr = {
1101
+ const Jr = {
1071
1102
  functionality: "close-widget",
1072
1103
  hideOnLargeScreen: !0,
1073
1104
  icon: "X"
1074
1105
  };
1075
- function Zr() {
1106
+ function eo() {
1076
1107
  const {
1077
1108
  routerState: { screen: e }
1078
- } = $(), { headerButtons: o } = x(), t = e === "chat" ? o == null ? void 0 : o.chatScreen : e === "sessions" ? o == null ? void 0 : o.sessionsScreen : [];
1079
- return !t || t.length === 0 ? /* @__PURE__ */ r(ue, { button: Qr }) : /* @__PURE__ */ r(te, { children: t.map((n) => /* @__PURE__ */ r(
1080
- ue,
1109
+ } = P(), { headerButtons: o } = x(), t = e === "chat" ? o == null ? void 0 : o.chatScreen : e === "sessions" ? o == null ? void 0 : o.sessionsScreen : [];
1110
+ return !t || t.length === 0 ? /* @__PURE__ */ r(fe, { button: Jr }) : /* @__PURE__ */ r(te, { children: t.map((n) => /* @__PURE__ */ r(
1111
+ fe,
1081
1112
  {
1082
1113
  button: n
1083
1114
  },
1084
1115
  `${n.functionality}-${n.icon}`
1085
1116
  )) });
1086
1117
  }
1087
- function Ot() {
1118
+ function Pt() {
1088
1119
  const {
1089
1120
  routerState: { screen: e }
1090
- } = $(), o = Vr(e), t = ze();
1091
- return /* @__PURE__ */ r("header", { ...o, className: "py-2 px-4 shrink-0", children: /* @__PURE__ */ d("div", { className: "flex items-center gap-2", children: [
1092
- /* @__PURE__ */ r(Gr, {}),
1093
- /* @__PURE__ */ r(
1094
- "div",
1095
- {
1096
- className: p(
1097
- "flex-1 h-8 flex items-center",
1098
- e === "sessions" && "ps-2"
1099
- ),
1100
- children: /* @__PURE__ */ r("h2", { className: "font-semibold", children: t })
1101
- }
1102
- ),
1103
- /* @__PURE__ */ r(Zr, {})
1104
- ] }) });
1121
+ } = P(), o = Kr(e), t = Ne();
1122
+ return /* @__PURE__ */ d("header", { ...o, className: "py-2 px-4 shrink-0", children: [
1123
+ /* @__PURE__ */ d("div", { className: "flex items-center gap-2", children: [
1124
+ /* @__PURE__ */ r(Qr, {}),
1125
+ /* @__PURE__ */ r(
1126
+ "div",
1127
+ {
1128
+ className: p(
1129
+ "flex-1 h-8 flex items-center",
1130
+ e === "sessions" && "ps-2"
1131
+ ),
1132
+ children: /* @__PURE__ */ r(
1133
+ Gr,
1134
+ {
1135
+ fallback: /* @__PURE__ */ r("h2", { className: "font-semibold", children: t })
1136
+ }
1137
+ )
1138
+ }
1139
+ ),
1140
+ /* @__PURE__ */ r(eo, {})
1141
+ ] }),
1142
+ /* @__PURE__ */ r(Vr, {})
1143
+ ] });
1105
1144
  }
1106
- function Pt({ className: e }) {
1145
+ function At({ className: e }) {
1107
1146
  return /* @__PURE__ */ r(wr, { className: p("size-4 animate-spin", e) });
1108
1147
  }
1109
- function Jr() {
1148
+ function to() {
1110
1149
  const {
1111
1150
  messagesState: { isInitialFetchLoading: e }
1112
- } = j(), { isSmallScreen: o } = P(), { activeMode: t, Component: n } = ht();
1151
+ } = j(), { isSmallScreen: o } = A(), { activeMode: t, Component: n } = mt();
1113
1152
  return {
1114
1153
  isCanvasOpen: !e && !o && !!t && !!n
1115
1154
  };
1116
1155
  }
1117
- function eo() {
1118
- const { activeMode: e, Component: o } = ht(), { sendMessage: t } = j(), { createStateCheckpoint: n } = B(), [s, i] = T(!1), a = async (c) => {
1156
+ function ro() {
1157
+ const e = ne(), { activeMode: o, Component: t } = mt(), { sendMessage: n } = j(), { createStateCheckpoint: s } = $(), [a, i] = T(!1), c = async (l) => {
1119
1158
  try {
1120
- i(!0), await t(c);
1121
- } catch (l) {
1122
- console.error(l);
1159
+ i(!0), await n(l);
1160
+ } catch (h) {
1161
+ console.error(h);
1123
1162
  } finally {
1124
1163
  i(!1);
1125
1164
  }
1126
1165
  };
1127
- return !e || !o ? null : /* @__PURE__ */ r(
1128
- o,
1166
+ return !o || !t ? null : /* @__PURE__ */ r(
1167
+ t,
1129
1168
  {
1130
- react: q,
1131
- mode: e,
1132
- createStateCheckpoint: n,
1133
- sendMessage: a,
1134
- isSendingMessage: s
1169
+ ...e,
1170
+ mode: o,
1171
+ createStateCheckpoint: s,
1172
+ sendMessage: c,
1173
+ isSendingMessage: a
1135
1174
  }
1136
1175
  );
1137
1176
  }
@@ -1154,7 +1193,7 @@ const O = q.forwardRef(
1154
1193
  }
1155
1194
  );
1156
1195
  O.displayName = "MotionDiv__VerticalReveal";
1157
- const to = [
1196
+ const oo = [
1158
1197
  {
1159
1198
  label: "Terrible",
1160
1199
  value: 1,
@@ -1181,23 +1220,23 @@ const to = [
1181
1220
  emoji: "😍"
1182
1221
  }
1183
1222
  ];
1184
- function ro() {
1185
- const { isSmallScreen: e } = P(), {
1223
+ function no() {
1224
+ const { isSmallScreen: e } = A(), {
1186
1225
  submitCsat: o,
1187
1226
  isCsatRequested: t,
1188
1227
  isCsatSubmitted: n,
1189
1228
  submittedScore: s,
1190
- submittedFeedback: i
1191
- } = mt(), [a, c] = T(null), [l, h] = T(null), b = (m) => {
1229
+ submittedFeedback: a
1230
+ } = gt(), [i, c] = T(null), [l, h] = T(null), b = (m) => {
1192
1231
  c((C) => C === m ? null : m);
1193
1232
  }, w = () => {
1194
- a && o({
1195
- score: a,
1233
+ i && o({
1234
+ score: i,
1196
1235
  feedback: l || void 0
1197
1236
  });
1198
1237
  };
1199
1238
  return !t && !n ? null : /* @__PURE__ */ d("div", { className: "w-1/2 min-w-80 max-w-96 mx-auto overflow-hidden", children: [
1200
- /* @__PURE__ */ r(_, { mode: "wait", children: t && !a ? /* @__PURE__ */ r(O, { children: /* @__PURE__ */ r("p", { className: "text-sm text-muted-foreground text-center pt-2", children: "How was your conversation?" }) }, "csat-requested-title") : n ? /* @__PURE__ */ r(O, { children: /* @__PURE__ */ r("p", { className: "text-sm text-muted-foreground text-center pt-2", children: "You rated the conversation as" }) }, "csat-submitted-title") : null }),
1239
+ /* @__PURE__ */ r(_, { mode: "wait", children: t && !i ? /* @__PURE__ */ r(O, { children: /* @__PURE__ */ r("p", { className: "text-sm text-muted-foreground text-center pt-2", children: "How was your conversation?" }) }, "csat-requested-title") : n ? /* @__PURE__ */ r(O, { children: /* @__PURE__ */ r("p", { className: "text-sm text-muted-foreground text-center pt-2", children: "You rated the conversation as" }) }, "csat-submitted-title") : null }),
1201
1240
  /* @__PURE__ */ r(
1202
1241
  "div",
1203
1242
  {
@@ -1206,18 +1245,18 @@ function ro() {
1206
1245
  "transition-all",
1207
1246
  n && "gap-0 justify-center"
1208
1247
  ),
1209
- children: to.map((m) => /* @__PURE__ */ r(
1248
+ children: oo.map((m) => /* @__PURE__ */ r(
1210
1249
  k,
1211
1250
  {
1212
- variant: m.value === a ? "secondary" : "ghost",
1251
+ variant: m.value === i ? "secondary" : "ghost",
1213
1252
  size: "selfless",
1214
1253
  className: p(
1215
1254
  "transition-all overflow-hidden",
1216
1255
  "text-2xl size-8 rounded-full",
1217
1256
  "opacity-35",
1218
1257
  "hover:opacity-100",
1219
- !a && "opacity-100",
1220
- m.value === a && "opacity-100",
1258
+ !i && "opacity-100",
1259
+ m.value === i && "opacity-100",
1221
1260
  n && m.value !== s && "opacity-0 size-0",
1222
1261
  n && m.value === s && "opacity-100 size-fit text-4xl"
1223
1262
  ),
@@ -1228,7 +1267,7 @@ function ro() {
1228
1267
  ))
1229
1268
  }
1230
1269
  ),
1231
- /* @__PURE__ */ r(_, { mode: "wait", children: (a || s) && /* @__PURE__ */ r(O, { children: /* @__PURE__ */ d("div", { className: "pb-2 px-2 flex items-end", children: [
1270
+ /* @__PURE__ */ r(_, { mode: "wait", children: (i || s) && /* @__PURE__ */ r(O, { children: /* @__PURE__ */ d("div", { className: "pb-2 px-2 flex items-end", children: [
1232
1271
  /* @__PURE__ */ r(
1233
1272
  "textarea",
1234
1273
  {
@@ -1243,7 +1282,7 @@ function ro() {
1243
1282
  e ? "text-[16px]" : "text-sm",
1244
1283
  n && "text-center"
1245
1284
  ),
1246
- value: n ? i || "" : l || "",
1285
+ value: n ? a || "" : l || "",
1247
1286
  onChange: t ? (m) => h(m.target.value) : void 0,
1248
1287
  readOnly: n,
1249
1288
  placeholder: t ? "Tell us more... (optional)" : void 0
@@ -1254,13 +1293,13 @@ function ro() {
1254
1293
  {
1255
1294
  size: "fit",
1256
1295
  onClick: w,
1257
- disabled: !a,
1296
+ disabled: !i,
1258
1297
  className: p(
1259
1298
  "transition-all overflow-hidden",
1260
1299
  "rounded-full size-8 flex items-center justify-center p-0",
1261
1300
  n && "opacity-0 size-0"
1262
1301
  ),
1263
- children: /* @__PURE__ */ r(ut, { className: "size-4" })
1302
+ children: /* @__PURE__ */ r(ft, { className: "size-4" })
1264
1303
  }
1265
1304
  )
1266
1305
  ] }) }, "feedback-box") }),
@@ -1268,8 +1307,8 @@ function ro() {
1268
1307
  ] });
1269
1308
  }
1270
1309
  function U() {
1271
- const { dir: e } = fe(), o = x();
1272
- return pt(() => {
1310
+ const { dir: e } = ve(), o = x();
1311
+ return ht(() => {
1273
1312
  const t = Tr(o.language) ? o.language : "en";
1274
1313
  return {
1275
1314
  t: (n) => Mr(n, t, o.translationOverrides),
@@ -1279,14 +1318,14 @@ function U() {
1279
1318
  };
1280
1319
  }, [o.language, e]);
1281
1320
  }
1282
- function Ne({
1321
+ function Se({
1283
1322
  suggestion: e,
1284
1323
  className: o,
1285
1324
  ...t
1286
1325
  }) {
1287
1326
  const { sendMessage: n } = j(), s = () => {
1288
- const i = e.trim();
1289
- i && n({ content: i });
1327
+ const a = e.trim();
1328
+ a && n({ content: a });
1290
1329
  };
1291
1330
  return /* @__PURE__ */ r(
1292
1331
  k,
@@ -1300,7 +1339,7 @@ function Ne({
1300
1339
  }
1301
1340
  );
1302
1341
  }
1303
- function oo() {
1342
+ function so() {
1304
1343
  const { t: e } = U(), o = [e("i_need_more_help"), e("this_was_helpful")];
1305
1344
  return /* @__PURE__ */ r(
1306
1345
  "div",
@@ -1308,7 +1347,7 @@ function oo() {
1308
1347
  ...g("chat/might_solve_user_issue_suggested_replies_container"),
1309
1348
  className: "flex items-center gap-2 p-2 pb-0 flex-wrap",
1310
1349
  children: o.map((t) => /* @__PURE__ */ r(
1311
- Ne,
1350
+ Se,
1312
1351
  {
1313
1352
  suggestion: t,
1314
1353
  className: "flex-1"
@@ -1318,23 +1357,23 @@ function oo() {
1318
1357
  }
1319
1358
  );
1320
1359
  }
1321
- function it() {
1322
- const { sessionState: e } = B(), { chatFooterItems: o } = x(), t = !!e.session && !e.session.isOpened, n = !t;
1323
- return /* @__PURE__ */ r(_, { mode: "wait", children: o == null ? void 0 : o.map((s, i) => s.showWhenSessionIsOpen === !1 && n || s.showWhenSessionIsResolved === !1 && t ? null : /* @__PURE__ */ r(O, { children: /* @__PURE__ */ r("div", { className: "pb-2 text-center text-xs", children: /* @__PURE__ */ r(xe, { children: s.message }) }) }, `${s.message}-${i}`)) });
1360
+ function at() {
1361
+ const { sessionState: e } = $(), { chatFooterItems: o } = x(), t = !!e.session && !e.session.isOpened, n = !t;
1362
+ return /* @__PURE__ */ r(_, { mode: "wait", children: o == null ? void 0 : o.map((s, a) => s.showWhenSessionIsOpen === !1 && n || s.showWhenSessionIsResolved === !1 && t ? null : /* @__PURE__ */ r(O, { children: /* @__PURE__ */ r("div", { className: "pb-2 text-center text-xs", children: /* @__PURE__ */ r(be, { children: s.message }) }) }, `${s.message}-${a}`)) });
1324
1363
  }
1325
- function no({
1364
+ function io({
1326
1365
  file: { status: e, file: o, error: t },
1327
1366
  onCancel: n
1328
1367
  }) {
1329
- const [s, i] = T(
1368
+ const [s, a] = T(
1330
1369
  null
1331
1370
  );
1332
1371
  re(() => {
1333
1372
  if (!o.type.startsWith("image/")) return;
1334
1373
  const l = new FileReader();
1335
- return l.onload = () => i(l.result), l.onerror = () => console.error("Error reading file"), l.readAsDataURL(o), () => l.abort();
1374
+ return l.onload = () => a(l.result), l.onerror = () => console.error("Error reading file"), l.readAsDataURL(o), () => l.abort();
1336
1375
  }, [o]);
1337
- const a = () => {
1376
+ const i = () => {
1338
1377
  switch (e) {
1339
1378
  case "uploading":
1340
1379
  return /* @__PURE__ */ r(br, { className: "size-4 animate-spin" });
@@ -1372,7 +1411,7 @@ function no({
1372
1411
  "flex items-center justify-center shrink-0"
1373
1412
  ),
1374
1413
  children: [
1375
- /* @__PURE__ */ r("div", { className: "absolute inset-0 flex items-center justify-center", children: a() }),
1414
+ /* @__PURE__ */ r("div", { className: "absolute inset-0 flex items-center justify-center", children: i() }),
1376
1415
  /* @__PURE__ */ r(
1377
1416
  "button",
1378
1417
  {
@@ -1383,7 +1422,7 @@ function no({
1383
1422
  "opacity-0 group-hover:opacity-100 transition"
1384
1423
  ),
1385
1424
  onClick: n,
1386
- children: /* @__PURE__ */ r(ve, { className: "size-4 text-primary-foreground" })
1425
+ children: /* @__PURE__ */ r(xe, { className: "size-4 text-primary-foreground" })
1387
1426
  }
1388
1427
  ),
1389
1428
  /* @__PURE__ */ r(c, {})
@@ -1393,21 +1432,21 @@ function no({
1393
1432
  }
1394
1433
  );
1395
1434
  }
1396
- function so() {
1435
+ function ao() {
1397
1436
  var E;
1398
- const { isSmallScreen: e } = P(), o = ce(null), { sendMessage: t } = j(), { sessionState: n } = B(), { t: s } = U(), [i, a] = T(""), {
1437
+ const { isSmallScreen: e } = A(), o = de(null), { sendMessage: t } = j(), { sessionState: n } = $(), { t: s } = U(), [a, i] = T(""), {
1399
1438
  allFiles: c,
1400
1439
  emptyTheFiles: l,
1401
1440
  handleCancelUpload: h,
1402
1441
  appendFiles: b,
1403
1442
  isUploading: w,
1404
1443
  successFiles: m
1405
- } = qt(), C = !!((E = n.session) != null && E.isHandedOff), { isAwaitingBotReply: u } = gt(), y = (v) => {
1444
+ } = qt(), C = !!((E = n.session) != null && E.isHandedOff), { isAwaitingBotReply: u } = wt(), y = (v) => {
1406
1445
  b(v);
1407
- }, I = !i.trim() && m.length === 0, S = async () => {
1446
+ }, I = !a.trim() && m.length === 0, S = async () => {
1408
1447
  if (u || I) return;
1409
1448
  w && console.info("please wait for the file(s) to upload");
1410
- const v = i.trim();
1449
+ const v = a.trim();
1411
1450
  t({
1412
1451
  content: v,
1413
1452
  attachments: m.flatMap(
@@ -1421,10 +1460,10 @@ function so() {
1421
1460
  }
1422
1461
  ] : []
1423
1462
  )
1424
- }), a(""), l();
1463
+ }), i(""), l();
1425
1464
  }, {
1426
1465
  getRootProps: M,
1427
- getInputProps: A,
1466
+ getInputProps: H,
1428
1467
  open: F
1429
1468
  } = Dr({
1430
1469
  onDrop: y,
@@ -1443,7 +1482,7 @@ function so() {
1443
1482
  "image/gif": [".gif"],
1444
1483
  "image/webp": [".webp"]
1445
1484
  }
1446
- }), H = (v) => {
1485
+ }), W = (v) => {
1447
1486
  const z = v.clipboardData;
1448
1487
  z && z.files.length > 0 && y(Array.from(z.files));
1449
1488
  };
@@ -1454,7 +1493,7 @@ function so() {
1454
1493
  className: "p-2 relative space-y-1",
1455
1494
  ...M(),
1456
1495
  children: [
1457
- /* @__PURE__ */ r("input", { ...A() }),
1496
+ /* @__PURE__ */ r("input", { ...H() }),
1458
1497
  /* @__PURE__ */ d(
1459
1498
  "div",
1460
1499
  {
@@ -1479,7 +1518,7 @@ function so() {
1479
1518
  ...g("chat/input_box/attachments_container"),
1480
1519
  className: "flex items-center gap-1",
1481
1520
  children: /* @__PURE__ */ r(_, { mode: "popLayout", children: c.map((v) => /* @__PURE__ */ r(f, { snapExit: !0, children: /* @__PURE__ */ r(
1482
- no,
1521
+ io,
1483
1522
  {
1484
1523
  onCancel: () => h(v.id),
1485
1524
  file: v
@@ -1491,10 +1530,10 @@ function so() {
1491
1530
  "textarea",
1492
1531
  {
1493
1532
  ...g("chat/input_box/textarea"),
1494
- onPaste: H,
1533
+ onPaste: W,
1495
1534
  ref: o,
1496
1535
  id: "chat-input",
1497
- value: i,
1536
+ value: a,
1498
1537
  rows: 3,
1499
1538
  className: p(
1500
1539
  /** Match the border radius of the container */
@@ -1507,7 +1546,7 @@ function so() {
1507
1546
  // 16px on mobiles prevents auto-zoom on the input when focused
1508
1547
  e ? "text-[16px]" : "text-sm"
1509
1548
  ),
1510
- onChange: (v) => a(v.target.value),
1549
+ onChange: (v) => i(v.target.value),
1511
1550
  onKeyDown: async (v) => {
1512
1551
  v.key === "Enter" && !v.shiftKey && (v.preventDefault(), S());
1513
1552
  },
@@ -1545,7 +1584,7 @@ function so() {
1545
1584
  onClick: S,
1546
1585
  disabled: u || w || I,
1547
1586
  className: "rounded-full size-8 flex items-center justify-center p-0",
1548
- children: /* @__PURE__ */ r(_, { mode: "wait", children: u || w ? /* @__PURE__ */ r(f, { snapExit: !0, children: /* @__PURE__ */ r(vr, { className: "size-4 animate-spin animate-iteration-infinite" }) }, "loading") : /* @__PURE__ */ r(f, { snapExit: !0, children: /* @__PURE__ */ r(ut, { className: "size-4" }) }, "send") })
1587
+ children: /* @__PURE__ */ r(_, { mode: "wait", children: u || w ? /* @__PURE__ */ r(f, { snapExit: !0, children: /* @__PURE__ */ r(vr, { className: "size-4 animate-spin animate-iteration-infinite" }) }, "loading") : /* @__PURE__ */ r(f, { snapExit: !0, children: /* @__PURE__ */ r(ft, { className: "size-4" }) }, "send") })
1549
1588
  }
1550
1589
  ) })
1551
1590
  ] })
@@ -1556,43 +1595,43 @@ function so() {
1556
1595
  }
1557
1596
  );
1558
1597
  }
1559
- function at() {
1560
- const { widgetCtx: e } = R(), { router: o } = x(), { canCreateNewSession: t } = B(), { toSessionsScreen: n } = $(), { t: s } = U();
1598
+ function lt() {
1599
+ const { widgetCtx: e } = R(), { router: o } = x(), { canCreateNewSession: t } = $(), { toSessionsScreen: n } = P(), { t: s } = U();
1561
1600
  return /* @__PURE__ */ r(te, { children: t || o != null && o.chatScreenOnly ? /* @__PURE__ */ r(k, { onClick: e.resetChat, className: "rounded-2xl w-full", children: s("new_conversation") }) : /* @__PURE__ */ r(k, { onClick: n, className: "rounded-2xl w-full", children: s("back_to_conversations") }) });
1562
1601
  }
1563
- function io() {
1564
- const { t: e } = U(), { isCsatRequested: o, isCsatSubmitted: t } = mt();
1602
+ function lo() {
1603
+ const { t: e } = U(), { isCsatRequested: o, isCsatSubmitted: t } = gt();
1565
1604
  return /* @__PURE__ */ r("div", { className: "p-2", children: /* @__PURE__ */ r("div", { className: "p-2 bg-muted rounded-3xl", children: /* @__PURE__ */ r(_, { mode: "wait", children: o || t ? /* @__PURE__ */ d(O, { children: [
1566
- /* @__PURE__ */ r(ro, {}),
1567
- /* @__PURE__ */ r(_, { mode: "wait", children: t && /* @__PURE__ */ r(O, { children: /* @__PURE__ */ r(at, {}) }, "new-conv-or-back-to-convs-button") })
1605
+ /* @__PURE__ */ r(no, {}),
1606
+ /* @__PURE__ */ r(_, { mode: "wait", children: t && /* @__PURE__ */ r(O, { children: /* @__PURE__ */ r(lt, {}) }, "new-conv-or-back-to-convs-button") })
1568
1607
  ] }, "csat") : /* @__PURE__ */ d(O, { children: [
1569
1608
  /* @__PURE__ */ d("div", { className: "ps-2 flex items-center gap-1 pb-2", children: [
1570
- /* @__PURE__ */ r(wt, { className: "size-4 text-emerald-600" }),
1609
+ /* @__PURE__ */ r(ut, { className: "size-4 text-emerald-600" }),
1571
1610
  /* @__PURE__ */ r("h2", { className: "text-sm font-medium", children: e("your_issue_has_been_resolved") })
1572
1611
  ] }),
1573
- /* @__PURE__ */ r(at, {})
1612
+ /* @__PURE__ */ r(lt, {})
1574
1613
  ] }, "session-closed") }) }) });
1575
1614
  }
1576
- function ao() {
1577
- var a;
1578
- const { initialQuestions: e, initialQuestionsPosition: o, thisWasHelpfulOrNot: t } = x(), { sessionState: n } = B(), { messagesState: s } = j(), i = s.messages.length === 0;
1579
- return /* @__PURE__ */ r("footer", { children: /* @__PURE__ */ r(_, { mode: "wait", children: n.session && !((a = n.session) != null && a.isOpened) ? /* @__PURE__ */ d(O, { children: [
1580
- /* @__PURE__ */ r(io, {}),
1581
- /* @__PURE__ */ r(it, {})
1615
+ function co() {
1616
+ var i;
1617
+ const { initialQuestions: e, initialQuestionsPosition: o, thisWasHelpfulOrNot: t } = x(), { sessionState: n } = $(), { messagesState: s } = j(), a = s.messages.length === 0;
1618
+ return /* @__PURE__ */ r("footer", { children: /* @__PURE__ */ r(_, { mode: "wait", children: n.session && !((i = n.session) != null && i.isOpened) ? /* @__PURE__ */ d(O, { children: [
1619
+ /* @__PURE__ */ r(lo, {}),
1620
+ /* @__PURE__ */ r(at, {})
1582
1621
  ] }, "session-closed") : /* @__PURE__ */ d(O, { children: [
1583
- s.lastAIResMightSolveUserIssue && (t == null ? void 0 : t.enabled) !== !1 && /* @__PURE__ */ r(oo, {}),
1584
- i && e && o !== "below-initial-messages" && /* @__PURE__ */ r("div", { className: "flex items-center flex-row justify-end gap-2 flex-wrap px-2", children: e == null ? void 0 : e.map((c, l) => /* @__PURE__ */ r(
1585
- Ne,
1622
+ s.lastAIResMightSolveUserIssue && (t == null ? void 0 : t.enabled) !== !1 && /* @__PURE__ */ r(so, {}),
1623
+ a && e && o !== "below-initial-messages" && /* @__PURE__ */ r("div", { className: "flex items-center flex-row justify-end gap-2 flex-wrap px-2", children: e == null ? void 0 : e.map((c, l) => /* @__PURE__ */ r(
1624
+ Se,
1586
1625
  {
1587
1626
  suggestion: c
1588
1627
  },
1589
1628
  `${c}-${l}`
1590
1629
  )) }),
1591
- /* @__PURE__ */ r(so, {}),
1592
- /* @__PURE__ */ r(it, {})
1630
+ /* @__PURE__ */ r(ao, {}),
1631
+ /* @__PURE__ */ r(at, {})
1593
1632
  ] }, "chat-input") }) });
1594
1633
  }
1595
- function lo({
1634
+ function po({
1596
1635
  isFirstInGroup: e,
1597
1636
  isLastInGroup: o,
1598
1637
  isAloneInGroup: t,
@@ -1601,10 +1640,10 @@ function lo({
1601
1640
  const { componentStore: s } = R();
1602
1641
  if (n.type !== "AGENT" && n.type !== "AI") return null;
1603
1642
  if (n.data.action) {
1604
- const a = s.getComponent(n.data.action.name);
1605
- if (a)
1643
+ const i = s.getComponent(n.data.action.name);
1644
+ if (i)
1606
1645
  return /* @__PURE__ */ r(
1607
- a,
1646
+ i,
1608
1647
  {
1609
1648
  ...n,
1610
1649
  id: n.id,
@@ -1614,9 +1653,9 @@ function lo({
1614
1653
  }
1615
1654
  );
1616
1655
  }
1617
- const i = s.getComponent(n.component);
1618
- return i ? /* @__PURE__ */ r(
1619
- i,
1656
+ const a = s.getComponent(n.component);
1657
+ return a ? /* @__PURE__ */ r(
1658
+ a,
1620
1659
  {
1621
1660
  ...n,
1622
1661
  id: n.id,
@@ -1625,7 +1664,7 @@ function lo({
1625
1664
  isAloneInGroup: t
1626
1665
  }
1627
1666
  ) : /* @__PURE__ */ r(
1628
- me,
1667
+ ge,
1629
1668
  {
1630
1669
  ...n,
1631
1670
  isFirstInGroup: e,
@@ -1634,18 +1673,18 @@ function lo({
1634
1673
  }
1635
1674
  );
1636
1675
  }
1637
- function At({
1676
+ function Ht({
1638
1677
  messages: e,
1639
1678
  className: o,
1640
1679
  containerClassName: t
1641
1680
  }) {
1642
- var a, c;
1681
+ var i, c;
1643
1682
  const { timestamps: n } = x();
1644
- if (!((a = n == null ? void 0 : n.perMessageGroup) != null && a.enabled))
1683
+ if (!((i = n == null ? void 0 : n.perMessageGroup) != null && i.enabled))
1645
1684
  return null;
1646
1685
  const s = (c = e[e.length - 1]) == null ? void 0 : c.timestamp;
1647
1686
  if (!s) return null;
1648
- const i = (() => {
1687
+ const a = (() => {
1649
1688
  try {
1650
1689
  return new Date(s).toLocaleTimeString([], {
1651
1690
  hour: "2-digit",
@@ -1656,9 +1695,9 @@ function At({
1656
1695
  return console.error(l), null;
1657
1696
  }
1658
1697
  })();
1659
- return i ? /* @__PURE__ */ r("div", { className: t, children: /* @__PURE__ */ r("span", { className: p("text-xs text-muted-foreground", o), children: i }) }) : null;
1698
+ return a ? /* @__PURE__ */ r("div", { className: t, children: /* @__PURE__ */ r("span", { className: p("text-xs text-muted-foreground", o), children: a }) }) : null;
1660
1699
  }
1661
- function ae({
1700
+ function le({
1662
1701
  messages: e,
1663
1702
  agent: o,
1664
1703
  suggestedReplies: t
@@ -1670,7 +1709,7 @@ function ae({
1670
1709
  className: p("flex items-end gap-2"),
1671
1710
  children: [
1672
1711
  /* @__PURE__ */ r(J, { content: o == null ? void 0 : o.name, side: "right", align: "end", children: /* @__PURE__ */ r(
1673
- ge,
1712
+ we,
1674
1713
  {
1675
1714
  ...g("chat/agent_msg_group/root/avatar"),
1676
1715
  agent: o,
@@ -1685,7 +1724,7 @@ function ae({
1685
1724
  className: p("flex items-end gap-2"),
1686
1725
  children: [
1687
1726
  /* @__PURE__ */ r(J, { content: o == null ? void 0 : o.name, side: "right", align: "end", children: /* @__PURE__ */ r(
1688
- ge,
1727
+ we,
1689
1728
  {
1690
1729
  ...g("chat/agent_msg_group/avatar_and_msgs/avatar"),
1691
1730
  agent: o
@@ -1697,17 +1736,17 @@ function ae({
1697
1736
  ...g("chat/agent_msg_group/avatar_and_msgs/msgs"),
1698
1737
  className: p("flex-1 flex flex-col gap-1"),
1699
1738
  children: [
1700
- e.map((n, s, i) => /* @__PURE__ */ r(
1701
- lo,
1739
+ e.map((n, s, a) => /* @__PURE__ */ r(
1740
+ po,
1702
1741
  {
1703
1742
  isFirstInGroup: s === 0,
1704
- isLastInGroup: s === i.length - 1,
1705
- isAloneInGroup: i.length === 1,
1743
+ isLastInGroup: s === a.length - 1,
1744
+ isAloneInGroup: a.length === 1,
1706
1745
  ...n
1707
1746
  },
1708
1747
  n.id
1709
1748
  )),
1710
- /* @__PURE__ */ r(At, { messages: e })
1749
+ /* @__PURE__ */ r(Ht, { messages: e })
1711
1750
  ]
1712
1751
  }
1713
1752
  )
@@ -1720,7 +1759,7 @@ function ae({
1720
1759
  ...g("chat/agent_msg_group/suggestions"),
1721
1760
  className: p("flex flex-col gap-1 ps-8"),
1722
1761
  children: t == null ? void 0 : t.map((n, s) => /* @__PURE__ */ r(
1723
- Ne,
1762
+ Se,
1724
1763
  {
1725
1764
  suggestion: n
1726
1765
  },
@@ -1733,32 +1772,14 @@ function ae({
1733
1772
  }
1734
1773
  );
1735
1774
  }
1736
- function Ft() {
1737
- const {
1738
- widgetCtx: { org: e }
1739
- } = R(), {
1740
- sessionState: { session: o }
1741
- } = B(), t = x(), {
1742
- messagesState: { messages: n }
1743
- } = j();
1744
- return {
1745
- props: {
1746
- react: q,
1747
- org: e,
1748
- session: o,
1749
- config: t,
1750
- messages: n
1751
- }
1752
- };
1753
- }
1754
- function co() {
1775
+ function ho() {
1755
1776
  var t, n;
1756
- const { props: e } = Ft();
1777
+ const e = ne();
1757
1778
  if ((t = e.session) != null && t.isOpened || !e.session) return null;
1758
- const o = (n = e.config.specialComponents) == null ? void 0 : n.onSessionResolved;
1779
+ const o = (n = e.config.customComponents) == null ? void 0 : n.onSessionResolved;
1759
1780
  return o ? /* @__PURE__ */ r(o, { ...e }) : null;
1760
1781
  }
1761
- function po({
1782
+ function mo({
1762
1783
  message: e,
1763
1784
  isFirstInGroup: o,
1764
1785
  isLastInGroup: t,
@@ -1771,7 +1792,7 @@ function po({
1771
1792
  ...g("chat/user_msg/root"),
1772
1793
  className: "w-5/6 flex flex-col items-end gap-1",
1773
1794
  children: [
1774
- e.attachments && e.attachments.length > 0 && /* @__PURE__ */ r("div", { className: "w-full flex gap-1 flex-wrap justify-end", children: (s = e.attachments) == null ? void 0 : s.map((i) => /* @__PURE__ */ r(It, { attachment: i }, i.id)) }),
1795
+ e.attachments && e.attachments.length > 0 && /* @__PURE__ */ r("div", { className: "w-full flex gap-1 flex-wrap justify-end", children: (s = e.attachments) == null ? void 0 : s.map((a) => /* @__PURE__ */ r(Tt, { attachment: a }, a.id)) }),
1775
1796
  e.content.length > 0 && /* @__PURE__ */ r(
1776
1797
  "div",
1777
1798
  {
@@ -1798,7 +1819,7 @@ function po({
1798
1819
  }
1799
1820
  );
1800
1821
  }
1801
- function ho({
1822
+ function go({
1802
1823
  messages: e
1803
1824
  }) {
1804
1825
  return /* @__PURE__ */ d(
@@ -1808,7 +1829,7 @@ function ho({
1808
1829
  className: p("group", "flex flex-col gap-1 justify-end items-end"),
1809
1830
  children: [
1810
1831
  e.map((o, t, n) => /* @__PURE__ */ r(
1811
- po,
1832
+ mo,
1812
1833
  {
1813
1834
  message: o,
1814
1835
  isFirstInGroup: t === 0,
@@ -1817,34 +1838,34 @@ function ho({
1817
1838
  },
1818
1839
  o.id
1819
1840
  )),
1820
- /* @__PURE__ */ r(At, { messages: e, containerClassName: "ms-auto" })
1841
+ /* @__PURE__ */ r(Ht, { messages: e, containerClassName: "ms-auto" })
1821
1842
  ]
1822
1843
  }
1823
1844
  );
1824
1845
  }
1825
- function mo(e) {
1846
+ function wo(e) {
1826
1847
  const o = [];
1827
1848
  let t = null;
1828
1849
  return e.forEach((n) => {
1829
- var s, i, a, c, l, h;
1850
+ var s, a, i, c, l, h;
1830
1851
  // Start a new group if the type changes
1831
1852
  (((s = t == null ? void 0 : t[0]) == null ? void 0 : s.type) !== n.type || // Start a new group if the agent changes
1832
- ((i = t[0]) == null ? void 0 : i.type) === "AGENT" && n.type === "AGENT" && (((a = n.agent) == null ? void 0 : a.id) !== ((c = t[0].agent) == null ? void 0 : c.id) || ((l = n.agent) == null ? void 0 : l.name) !== ((h = t[0].agent) == null ? void 0 : h.name))) && (t = [], o.push(t)), t.push(n);
1853
+ ((a = t[0]) == null ? void 0 : a.type) === "AGENT" && n.type === "AGENT" && (((i = n.agent) == null ? void 0 : i.id) !== ((c = t[0].agent) == null ? void 0 : c.id) || ((l = n.agent) == null ? void 0 : l.name) !== ((h = t[0].agent) == null ? void 0 : h.name))) && (t = [], o.push(t)), t.push(n);
1833
1854
  }), o;
1834
1855
  }
1835
- function go(e) {
1856
+ function uo(e) {
1836
1857
  var o;
1837
1858
  return ((o = e == null ? void 0 : e[0]) == null ? void 0 : o.type) === "USER";
1838
1859
  }
1839
- function wo(e) {
1860
+ function fo(e) {
1840
1861
  var o;
1841
1862
  return ((o = e == null ? void 0 : e[0]) == null ? void 0 : o.type) === "AI";
1842
1863
  }
1843
- function uo(e) {
1864
+ function vo(e) {
1844
1865
  var o;
1845
1866
  return ((o = e == null ? void 0 : e[0]) == null ? void 0 : o.type) === "AGENT";
1846
1867
  }
1847
- function fo() {
1868
+ function xo() {
1848
1869
  const {
1849
1870
  messagesState: { messages: e }
1850
1871
  } = j(), {
@@ -1854,13 +1875,13 @@ function fo() {
1854
1875
  bot: s
1855
1876
  } = x();
1856
1877
  return /* @__PURE__ */ r(te, { children: e.length === 0 && o.length > 0 && /* @__PURE__ */ r(
1857
- ae,
1878
+ le,
1858
1879
  {
1859
1880
  messages: o.map(
1860
- ({ message: i }, a) => ({
1881
+ ({ message: a }, i) => ({
1861
1882
  component: "bot_message",
1862
- data: { message: i },
1863
- id: `${a}-${i}`,
1883
+ data: { message: a },
1884
+ id: `${i}-${a}`,
1864
1885
  type: "AI",
1865
1886
  timestamp: null
1866
1887
  })
@@ -1870,33 +1891,33 @@ function fo() {
1870
1891
  }
1871
1892
  ) });
1872
1893
  }
1873
- function vo() {
1894
+ function bo() {
1874
1895
  const {
1875
1896
  messagesState: { messages: e }
1876
1897
  } = j(), { chatBannerItems: o } = x();
1877
1898
  return !(o != null && o.length) || e.length > 0 && o.every((t) => !t.persistent) ? null : /* @__PURE__ */ r("div", { className: "w-full text-center text-xs", children: o.map(
1878
- ({ message: t, persistent: n }, s) => e.length > 0 && !n ? null : /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(xe, { children: t }) }, `${t}-${s}`)
1899
+ ({ message: t, persistent: n }, s) => e.length > 0 && !n ? null : /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(be, { children: t }) }, `${t}-${s}`)
1879
1900
  ) });
1880
1901
  }
1881
- function xo() {
1902
+ function yo() {
1882
1903
  const {
1883
1904
  messagesState: { messages: e }
1884
1905
  } = j(), o = x(), {
1885
1906
  advancedInitialMessages: t = [],
1886
1907
  initialQuestions: n,
1887
1908
  initialQuestionsPosition: s
1888
- } = o, i = (() => {
1889
- var a;
1890
- return t.length ? [] : e.length ? [] : (a = o.initialMessages) != null && a.length ? o.initialMessages : ["Hello, how can I help you?"];
1909
+ } = o, a = (() => {
1910
+ var i;
1911
+ return t.length ? [] : e.length ? [] : (i = o.initialMessages) != null && i.length ? o.initialMessages : ["Hello, how can I help you?"];
1891
1912
  })();
1892
- return /* @__PURE__ */ r(te, { children: e.length === 0 && i.length > 0 && /* @__PURE__ */ r(
1893
- ae,
1913
+ return /* @__PURE__ */ r(te, { children: e.length === 0 && a.length > 0 && /* @__PURE__ */ r(
1914
+ le,
1894
1915
  {
1895
- messages: i.map(
1896
- (a, c) => ({
1916
+ messages: a.map(
1917
+ (i, c) => ({
1897
1918
  component: "bot_message",
1898
- data: { message: a },
1899
- id: `${c}-${a}`,
1919
+ data: { message: i },
1920
+ id: `${c}-${i}`,
1900
1921
  type: "AI",
1901
1922
  timestamp: null
1902
1923
  })
@@ -1906,23 +1927,23 @@ function xo() {
1906
1927
  }
1907
1928
  ) });
1908
1929
  }
1909
- function bo() {
1930
+ function ko() {
1910
1931
  var t;
1911
- const { props: e } = Ft(), o = (t = e.config.specialComponents) == null ? void 0 : t.chatBottomComponents;
1932
+ const e = ne(), o = (t = e.config.customComponents) == null ? void 0 : t.chatBottomComponents;
1912
1933
  return o ? /* @__PURE__ */ r("div", { children: o.map(({ key: n, component: s }) => /* @__PURE__ */ r(s, { ...e }, n)) }) : null;
1913
1934
  }
1914
- function yo() {
1935
+ function Co() {
1915
1936
  const {
1916
1937
  messagesState: { messages: e }
1917
- } = j(), { isAwaitingBotReply: o } = gt(), { componentStore: t } = R(), n = x(), s = pt(
1918
- () => mo(e),
1938
+ } = j(), { isAwaitingBotReply: o } = wt(), { componentStore: t } = R(), n = x(), s = ht(
1939
+ () => wo(e),
1919
1940
  [e]
1920
- ), i = t.getComponent(
1941
+ ), a = t.getComponent(
1921
1942
  "loading"
1922
- ), a = ce(null);
1943
+ ), i = de(null);
1923
1944
  function c() {
1924
1945
  setTimeout(() => {
1925
- const l = a.current;
1946
+ const l = i.current;
1926
1947
  l && (l.scrollTop = l.scrollHeight);
1927
1948
  }, 0);
1928
1949
  }
@@ -1932,24 +1953,24 @@ function yo() {
1932
1953
  "div",
1933
1954
  {
1934
1955
  ...g("chat/msgs/root"),
1935
- ref: a,
1956
+ ref: i,
1936
1957
  className: "max-h-full scroll-smooth relative flex-1 py-2 px-4 flex flex-col gap-2 overflow-auto",
1937
1958
  children: [
1938
- /* @__PURE__ */ r(vo, {}),
1939
- /* @__PURE__ */ r(fo, {}),
1959
+ /* @__PURE__ */ r(bo, {}),
1940
1960
  /* @__PURE__ */ r(xo, {}),
1961
+ /* @__PURE__ */ r(yo, {}),
1941
1962
  s.map((l, h) => {
1942
1963
  var m, C, u, y;
1943
1964
  const b = (m = l == null ? void 0 : l[0]) == null ? void 0 : m.type, w = (C = l[0]) == null ? void 0 : C.id;
1944
1965
  if (!b || !w) return null;
1945
- if (go(l))
1946
- return /* @__PURE__ */ r(ho, { messages: l }, w);
1947
- if (wo(l)) {
1966
+ if (uo(l))
1967
+ return /* @__PURE__ */ r(go, { messages: l }, w);
1968
+ if (fo(l)) {
1948
1969
  const I = h === s.length - 1;
1949
1970
  if (o && I) return null;
1950
1971
  const S = (u = l[0]) == null ? void 0 : u.agent;
1951
1972
  return /* @__PURE__ */ r(
1952
- ae,
1973
+ le,
1953
1974
  {
1954
1975
  messages: l,
1955
1976
  agent: S
@@ -1957,10 +1978,10 @@ function yo() {
1957
1978
  w
1958
1979
  );
1959
1980
  }
1960
- if (uo(l)) {
1981
+ if (vo(l)) {
1961
1982
  const I = (y = l[0]) == null ? void 0 : y.agent;
1962
1983
  return /* @__PURE__ */ r(
1963
- ae,
1984
+ le,
1964
1985
  {
1965
1986
  messages: l,
1966
1987
  agent: I
@@ -1970,24 +1991,24 @@ function yo() {
1970
1991
  }
1971
1992
  return null;
1972
1993
  }),
1973
- o && i && /* @__PURE__ */ r(i, { agent: n.bot }),
1974
- /* @__PURE__ */ r(bo, {}),
1975
- /* @__PURE__ */ r(co, {})
1994
+ o && a && /* @__PURE__ */ r(a, { agent: n.bot }),
1995
+ /* @__PURE__ */ r(ko, {}),
1996
+ /* @__PURE__ */ r(ho, {})
1976
1997
  ]
1977
1998
  }
1978
1999
  );
1979
2000
  }
1980
- function ko() {
2001
+ function zo() {
1981
2002
  const {
1982
2003
  messagesState: { isInitialFetchLoading: e }
1983
2004
  } = j(), {
1984
2005
  sessionState: { session: o }
1985
- } = B(), { isCanvasOpen: t } = Jr(), { theme: n } = X();
1986
- Ce({
2006
+ } = $(), { isCanvasOpen: t } = to(), { theme: n } = X();
2007
+ ze({
1987
2008
  width: t ? n.screens.chat.withCanvas.width : n.screens.chat.width,
1988
2009
  height: t ? n.screens.chat.withCanvas.height : n.screens.chat.height
1989
2010
  });
1990
- const s = ce((o == null ? void 0 : o.id) || "chat").current;
2011
+ const s = de((o == null ? void 0 : o.id) || "chat").current;
1991
2012
  return /* @__PURE__ */ r(
1992
2013
  "div",
1993
2014
  {
@@ -2004,12 +2025,12 @@ function ko() {
2004
2025
  // Relative to the iframe
2005
2026
  },
2006
2027
  children: /* @__PURE__ */ d("div", { className: "size-full justify-between flex flex-col", children: [
2007
- /* @__PURE__ */ r(Ot, {}),
2028
+ /* @__PURE__ */ r(Pt, {}),
2008
2029
  /* @__PURE__ */ r(_, { mode: "wait", children: e ? /* @__PURE__ */ r(
2009
2030
  f,
2010
2031
  {
2011
2032
  className: "flex flex-col items-center justify-center w-full flex-1",
2012
- children: /* @__PURE__ */ r(Pt, {})
2033
+ children: /* @__PURE__ */ r(At, {})
2013
2034
  },
2014
2035
  "loading"
2015
2036
  ) : /* @__PURE__ */ d(
@@ -2031,8 +2052,8 @@ function ko() {
2031
2052
  transitionDuration: n.screens.chat.withCanvas.transitionDuration
2032
2053
  },
2033
2054
  children: [
2034
- /* @__PURE__ */ r(yo, {}),
2035
- /* @__PURE__ */ r(ao, {})
2055
+ /* @__PURE__ */ r(Co, {}),
2056
+ /* @__PURE__ */ r(co, {})
2036
2057
  ]
2037
2058
  }
2038
2059
  ),
@@ -2048,7 +2069,7 @@ function ko() {
2048
2069
  transitionTimingFunction: n.screens.chat.withCanvas.transitionTimingFunction,
2049
2070
  transitionDuration: n.screens.chat.withCanvas.transitionDuration
2050
2071
  },
2051
- children: /* @__PURE__ */ r(eo, {})
2072
+ children: /* @__PURE__ */ r(ro, {})
2052
2073
  }
2053
2074
  )
2054
2075
  ]
@@ -2059,7 +2080,7 @@ function ko() {
2059
2080
  }
2060
2081
  );
2061
2082
  }
2062
- function Co({
2083
+ function No({
2063
2084
  className: e,
2064
2085
  ...o
2065
2086
  }) {
@@ -2071,7 +2092,7 @@ function Co({
2071
2092
  }
2072
2093
  );
2073
2094
  }
2074
- function zo({ className: e }) {
2095
+ function So({ className: e }) {
2075
2096
  return /* @__PURE__ */ r(
2076
2097
  "svg",
2077
2098
  {
@@ -2091,7 +2112,7 @@ function zo({ className: e }) {
2091
2112
  }
2092
2113
  );
2093
2114
  }
2094
- function Ht({ className: e }) {
2115
+ function Ft({ className: e }) {
2095
2116
  const { token: o } = x();
2096
2117
  return /* @__PURE__ */ r(
2097
2118
  "div",
@@ -2100,7 +2121,7 @@ function Ht({ className: e }) {
2100
2121
  "flex items-center justify-center gap-2 p-2 pt-0",
2101
2122
  e
2102
2123
  ),
2103
- children: /* @__PURE__ */ r(W, { children: /* @__PURE__ */ d(
2124
+ children: /* @__PURE__ */ r(B, { children: /* @__PURE__ */ d(
2104
2125
  "a",
2105
2126
  {
2106
2127
  href: `https://open.cx/?ref=${o}`,
@@ -2115,7 +2136,7 @@ function Ht({ className: e }) {
2115
2136
  /* @__PURE__ */ r("span", { children: "Powered by" }),
2116
2137
  /* @__PURE__ */ r("span", { children: " " }),
2117
2138
  /* @__PURE__ */ d("span", { className: "flex items-center gap-[1px]", children: [
2118
- /* @__PURE__ */ r("span", { children: /* @__PURE__ */ r(zo, { className: "size-3 inline-block" }) }),
2139
+ /* @__PURE__ */ r("span", { children: /* @__PURE__ */ r(So, { className: "size-3 inline-block" }) }),
2119
2140
  /* @__PURE__ */ r("span", { className: "font-semibold", children: "open" })
2120
2141
  ] })
2121
2142
  ]
@@ -2124,14 +2145,14 @@ function Ht({ className: e }) {
2124
2145
  }
2125
2146
  );
2126
2147
  }
2127
- function No({ children: e }) {
2148
+ function _o({ children: e }) {
2128
2149
  return /* @__PURE__ */ r("p", { className: "ps-4 text-xs text-muted-foreground/75 uppercase font-semibold tracking-tight", children: e });
2129
2150
  }
2130
- function lt({
2151
+ function ct({
2131
2152
  session: e,
2132
2153
  className: o
2133
2154
  }) {
2134
- const { bot: t } = x(), { toChatScreen: n } = $(), s = e.assignee.kind === "human" ? e.assignee.name || "Support Agent" : (t == null ? void 0 : t.name) || "AI Support Agent", i = e.assignee.kind === "human" ? e.assignee.avatarUrl || "" : (t == null ? void 0 : t.avatar) || "";
2155
+ const { bot: t } = x(), { toChatScreen: n } = P(), s = e.assignee.kind === "human" ? e.assignee.name || "Support Agent" : (t == null ? void 0 : t.name) || "AI Support Agent", a = e.assignee.kind === "human" ? e.assignee.avatarUrl || "" : (t == null ? void 0 : t.avatar) || "";
2135
2156
  return /* @__PURE__ */ d(
2136
2157
  k,
2137
2158
  {
@@ -2144,21 +2165,21 @@ function lt({
2144
2165
  onClick: () => n(e.id),
2145
2166
  children: [
2146
2167
  /* @__PURE__ */ d("div", { className: "flex-1 flex gap-2 items-center", children: [
2147
- /* @__PURE__ */ r(_, { mode: "wait", children: /* @__PURE__ */ r(f, { snapExit: !0, children: /* @__PURE__ */ d(be, { className: "size-10", children: [
2148
- /* @__PURE__ */ r(ye, { src: i, alt: "Agent Icon" }),
2149
- /* @__PURE__ */ r(ke, { children: /* @__PURE__ */ r(zr, { className: "size-4" }) })
2168
+ /* @__PURE__ */ r(_, { mode: "wait", children: /* @__PURE__ */ r(f, { snapExit: !0, children: /* @__PURE__ */ d(ye, { className: "size-10", children: [
2169
+ /* @__PURE__ */ r(ke, { src: a, alt: "Agent Icon" }),
2170
+ /* @__PURE__ */ r(Ce, { children: /* @__PURE__ */ r(zr, { className: "size-4" }) })
2150
2171
  ] }) }) }),
2151
2172
  /* @__PURE__ */ d("div", { className: "flex-1", children: [
2152
2173
  /* @__PURE__ */ r(_, { mode: "wait", children: /* @__PURE__ */ r(f, { snapExit: !0, children: s }, s) }),
2153
2174
  /* @__PURE__ */ r(_, { mode: "wait", children: e.lastMessage ? /* @__PURE__ */ r(f, { snapExit: !0, children: /* @__PURE__ */ r(
2154
- Tt,
2175
+ Mt,
2155
2176
  {
2156
- remarkPlugins: [ft],
2157
- rehypePlugins: [vt],
2177
+ remarkPlugins: [vt],
2178
+ rehypePlugins: [xt],
2158
2179
  className: "line-clamp-1 overflow-hidden text-ellipsis text-xs text-muted-foreground",
2159
2180
  children: e.lastMessage
2160
2181
  }
2161
- ) }, e.lastMessage || "content") : /* @__PURE__ */ r(f, { className: "w-1/2", snapExit: !0, children: /* @__PURE__ */ r(Co, { className: "h-4 w-full" }) }, "skeleton") })
2182
+ ) }, e.lastMessage || "content") : /* @__PURE__ */ r(f, { className: "w-1/2", snapExit: !0, children: /* @__PURE__ */ r(No, { className: "h-4 w-full" }) }, "skeleton") })
2162
2183
  ] })
2163
2184
  ] }),
2164
2185
  /* @__PURE__ */ r(Nr, { className: "size-4 text-muted-foreground shrink-0 rtl:-scale-100" })
@@ -2166,18 +2187,18 @@ function lt({
2166
2187
  }
2167
2188
  );
2168
2189
  }
2169
- function So() {
2170
- const { t: e } = U(), { toChatScreen: o } = $(), {
2190
+ function Io() {
2191
+ const { t: e } = U(), { toChatScreen: o } = P(), {
2171
2192
  sessionsState: { data: t, isInitialFetchLoading: n },
2172
2193
  openSessions: s,
2173
- closedSessions: i,
2174
- canCreateNewSession: a
2175
- } = B();
2194
+ closedSessions: a,
2195
+ canCreateNewSession: i
2196
+ } = $();
2176
2197
  return /* @__PURE__ */ r("div", { className: "flex-1 flex flex-col overflow-scroll py-2 px-2", children: /* @__PURE__ */ r(_, { mode: "wait", children: n ? /* @__PURE__ */ r(
2177
2198
  f,
2178
2199
  {
2179
2200
  className: "flex-1 flex items-center justify-center",
2180
- children: /* @__PURE__ */ r(Pt, {})
2201
+ children: /* @__PURE__ */ r(At, {})
2181
2202
  },
2182
2203
  "loading"
2183
2204
  ) : /* @__PURE__ */ r(
@@ -2193,20 +2214,20 @@ function So() {
2193
2214
  delay: 0.2,
2194
2215
  className: "space-y-2",
2195
2216
  snapExit: !0,
2196
- children: s.map((c) => /* @__PURE__ */ r(lt, { session: c }, c.id))
2217
+ children: s.map((c) => /* @__PURE__ */ r(ct, { session: c }, c.id))
2197
2218
  },
2198
2219
  "open-sessions"
2199
2220
  ),
2200
- i.length > 0 && /* @__PURE__ */ d(
2221
+ a.length > 0 && /* @__PURE__ */ d(
2201
2222
  f,
2202
2223
  {
2203
2224
  className: "space-y-2",
2204
2225
  delay: 0.2,
2205
2226
  snapExit: !0,
2206
2227
  children: [
2207
- /* @__PURE__ */ r(No, { children: e("closed_conversations") }),
2208
- i.map((c) => /* @__PURE__ */ r(
2209
- lt,
2228
+ /* @__PURE__ */ r(_o, { children: e("closed_conversations") }),
2229
+ a.map((c) => /* @__PURE__ */ r(
2230
+ ct,
2210
2231
  {
2211
2232
  session: c,
2212
2233
  className: "opacity-50 hover:opacity-100"
@@ -2218,7 +2239,7 @@ function So() {
2218
2239
  "closed-sessions"
2219
2240
  )
2220
2241
  ] }),
2221
- a && /* @__PURE__ */ r("div", { className: "mt-auto w-full rounded-3xl sticky bottom-0 outline outline-8 outline-background bg-background", children: /* @__PURE__ */ rt(
2242
+ i && /* @__PURE__ */ r("div", { className: "mt-auto w-full rounded-3xl sticky bottom-0 outline outline-8 outline-background bg-background", children: /* @__PURE__ */ ot(
2222
2243
  k,
2223
2244
  {
2224
2245
  ...g("sessions/new_conversation_btn"),
@@ -2231,7 +2252,7 @@ function So() {
2231
2252
  ) })
2232
2253
  ] }) : /* @__PURE__ */ d("div", { className: "flex-1 flex flex-col gap-2 items-center", children: [
2233
2254
  /* @__PURE__ */ r("div", { className: "flex-1 flex items-center justify-center", children: /* @__PURE__ */ r("p", { className: "text-muted-foreground", children: e("no_conversations_yet") }) }),
2234
- /* @__PURE__ */ rt(
2255
+ /* @__PURE__ */ ot(
2235
2256
  k,
2236
2257
  {
2237
2258
  ...g("sessions/new_conversation_btn"),
@@ -2247,9 +2268,9 @@ function So() {
2247
2268
  "sessions"
2248
2269
  ) }) });
2249
2270
  }
2250
- function _o() {
2271
+ function To() {
2251
2272
  const { theme: e } = X();
2252
- return Ce({
2273
+ return ze({
2253
2274
  width: e.screens.sessions.width,
2254
2275
  height: e.screens.sessions.height
2255
2276
  }), /* @__PURE__ */ r(
@@ -2268,17 +2289,17 @@ function _o() {
2268
2289
  // Relative to the iframe
2269
2290
  },
2270
2291
  children: /* @__PURE__ */ d("div", { className: "size-full flex flex-col", children: [
2271
- /* @__PURE__ */ r(Ot, {}),
2272
- /* @__PURE__ */ r(So, {}),
2273
- /* @__PURE__ */ r(Ht, {})
2292
+ /* @__PURE__ */ r(Pt, {}),
2293
+ /* @__PURE__ */ r(Io, {}),
2294
+ /* @__PURE__ */ r(Ft, {})
2274
2295
  ] })
2275
2296
  }
2276
2297
  );
2277
2298
  }
2278
- const ie = G.forwardRef(
2299
+ const ae = G.forwardRef(
2279
2300
  ({ className: e, type: o, ...t }, n) => {
2280
- const { isSmallScreen: s } = P();
2281
- return /* @__PURE__ */ r(W, { ref: n, children: /* @__PURE__ */ r(
2301
+ const { isSmallScreen: s } = A();
2302
+ return /* @__PURE__ */ r(B, { ref: n, children: /* @__PURE__ */ r(
2282
2303
  "input",
2283
2304
  {
2284
2305
  type: o,
@@ -2295,16 +2316,16 @@ const ie = G.forwardRef(
2295
2316
  ) });
2296
2317
  }
2297
2318
  );
2298
- ie.displayName = "Input";
2299
- function Io() {
2300
- const { contentIframeRef: e } = R(), { inline: o } = x(), t = ce(null);
2319
+ ae.displayName = "Input";
2320
+ function Mo() {
2321
+ const { contentIframeRef: e } = R(), { inline: o } = x(), t = de(null);
2301
2322
  return re(() => {
2302
2323
  const n = e == null ? void 0 : e.current;
2303
2324
  if (n && t.current) {
2304
2325
  const s = t.current;
2305
- let i;
2306
- const a = new ResizeObserver(() => {
2307
- i = requestAnimationFrame(() => {
2326
+ let a;
2327
+ const i = new ResizeObserver(() => {
2328
+ a = requestAnimationFrame(() => {
2308
2329
  const c = s.offsetHeight;
2309
2330
  n.style.setProperty(
2310
2331
  "--opencx-widget-height",
@@ -2312,31 +2333,31 @@ function Io() {
2312
2333
  );
2313
2334
  });
2314
2335
  });
2315
- return a.observe(s), () => {
2316
- cancelAnimationFrame(i), a.unobserve(s);
2336
+ return i.observe(s), () => {
2337
+ cancelAnimationFrame(a), i.unobserve(s);
2317
2338
  };
2318
2339
  }
2319
2340
  }, [e, o]), { observedElementRef: t };
2320
2341
  }
2321
- const To = he.object({
2322
- name: he.string().min(2),
2323
- email: he.string().email()
2342
+ const Do = me.object({
2343
+ name: me.string().min(2),
2344
+ email: me.string().email()
2324
2345
  });
2325
- function Mo() {
2326
- var S, M, A, F, H, E, v, z;
2346
+ function Ro() {
2347
+ var S, M, H, F, W, E, v, z;
2327
2348
  const {
2328
2349
  widgetCtx: { org: e }
2329
- } = R(), { setIsOpen: o } = K(), { createUnverifiedContact: t } = Xt(), { isSmallScreen: n } = P(), s = x(), { theme: i } = X(), { t: a } = U(), { observedElementRef: c } = Io();
2330
- Ce({
2350
+ } = R(), { setIsOpen: o } = K(), { createUnverifiedContact: t } = Xt(), { isSmallScreen: n } = A(), s = x(), { theme: a } = X(), { t: i } = U(), { observedElementRef: c } = Mo();
2351
+ ze({
2331
2352
  height: void 0,
2332
- width: i.screens.welcome.width
2353
+ width: a.screens.welcome.width
2333
2354
  });
2334
2355
  const [l, h] = T(((S = s.prefillUserData) == null ? void 0 : S.name) || ""), [b, w] = T(((M = s.prefillUserData) == null ? void 0 : M.email) || ""), m = (s.extraDataCollectionFields || []).filter(
2335
2356
  (N) => N !== "name" && N !== "email" && !!N
2336
2357
  ), [C, u] = T({}), [y, I] = Rr(
2337
2358
  async (N) => {
2338
2359
  N.preventDefault();
2339
- const L = To.safeParse({ name: l, email: b });
2360
+ const L = Do.safeParse({ name: l, email: b });
2340
2361
  L.success && await t(
2341
2362
  {
2342
2363
  email: L.data.email,
@@ -2356,7 +2377,7 @@ function Mo() {
2356
2377
  // Relative to the iframe
2357
2378
  maxWidth: "100vw",
2358
2379
  // Relative to the iframe
2359
- minHeight: i.screens.welcome.minHeight,
2380
+ minHeight: a.screens.welcome.minHeight,
2360
2381
  height: "100vh",
2361
2382
  // Relative to the iframe
2362
2383
  maxHeight: "100vh",
@@ -2381,8 +2402,8 @@ function Mo() {
2381
2402
  "text-primary-foreground"
2382
2403
  ),
2383
2404
  children: [
2384
- n && /* @__PURE__ */ r(f, { className: "absolute top-6 end-6", children: /* @__PURE__ */ r(k, { size: "selfless", onClick: () => o(!1), children: /* @__PURE__ */ r(ve, { className: "size-4" }) }) }),
2385
- /* @__PURE__ */ r("div", { className: "flex items-center justify-between w-full mb-2", children: (A = s.assets) != null && A.organizationLogo ? /* @__PURE__ */ r(
2405
+ n && /* @__PURE__ */ r(f, { className: "absolute top-6 end-6", children: /* @__PURE__ */ r(k, { size: "selfless", onClick: () => o(!1), children: /* @__PURE__ */ r(xe, { className: "size-4" }) }) }),
2406
+ /* @__PURE__ */ r("div", { className: "flex items-center justify-between w-full mb-2", children: (H = s.assets) != null && H.organizationLogo ? /* @__PURE__ */ r(
2386
2407
  "img",
2387
2408
  {
2388
2409
  src: (F = s.assets) == null ? void 0 : F.organizationLogo,
@@ -2391,8 +2412,8 @@ function Mo() {
2391
2412
  }
2392
2413
  ) : /* @__PURE__ */ r("h2", { className: "font-bold text-sm", children: e.name }) }),
2393
2414
  /* @__PURE__ */ d("div", { className: "space-y-2", children: [
2394
- /* @__PURE__ */ r("h1", { className: "text-[1.75rem] font-semibold tracking-tight leading-none", children: ((E = (H = s.textContent) == null ? void 0 : H.welcomeScreen) == null ? void 0 : E.title) || a("welcome_screen_title") }),
2395
- /* @__PURE__ */ r("p", { className: "text-sm", children: ((z = (v = s.textContent) == null ? void 0 : v.welcomeScreen) == null ? void 0 : z.description) || a("welcome_screen_description") })
2415
+ /* @__PURE__ */ r("h1", { className: "text-[1.75rem] font-semibold tracking-tight leading-none", children: ((E = (W = s.textContent) == null ? void 0 : W.welcomeScreen) == null ? void 0 : E.title) || i("welcome_screen_title") }),
2416
+ /* @__PURE__ */ r("p", { className: "text-sm", children: ((z = (v = s.textContent) == null ? void 0 : v.welcomeScreen) == null ? void 0 : z.description) || i("welcome_screen_description") })
2396
2417
  ] })
2397
2418
  ]
2398
2419
  }
@@ -2409,35 +2430,35 @@ function Mo() {
2409
2430
  children: [
2410
2431
  /* @__PURE__ */ d("form", { onSubmit: I, className: "space-y-2", children: [
2411
2432
  /* @__PURE__ */ r(
2412
- ie,
2433
+ ae,
2413
2434
  {
2414
2435
  value: l,
2415
2436
  onChange: (N) => h(N.target.value),
2416
2437
  required: !0,
2417
- placeholder: a("your_name_placeholder"),
2438
+ placeholder: i("your_name_placeholder"),
2418
2439
  name: "name"
2419
2440
  }
2420
2441
  ),
2421
2442
  /* @__PURE__ */ r(
2422
- ie,
2443
+ ae,
2423
2444
  {
2424
2445
  required: !0,
2425
2446
  value: b,
2426
2447
  onChange: (N) => w(N.target.value),
2427
2448
  type: "email",
2428
- placeholder: a("your_email_placeholder"),
2449
+ placeholder: i("your_email_placeholder"),
2429
2450
  name: "email"
2430
2451
  }
2431
2452
  ),
2432
2453
  m.map((N) => /* @__PURE__ */ r(
2433
- ie,
2454
+ ae,
2434
2455
  {
2435
2456
  value: C[N],
2436
- onChange: (L) => u((ne) => ({
2437
- ...ne,
2457
+ onChange: (L) => u((se) => ({
2458
+ ...se,
2438
2459
  [N]: L.target.value
2439
2460
  })),
2440
- placeholder: `${N} (${a("optional")})`
2461
+ placeholder: `${N} (${i("optional")})`
2441
2462
  },
2442
2463
  N
2443
2464
  )),
@@ -2448,13 +2469,13 @@ function Mo() {
2448
2469
  className: "w-full",
2449
2470
  size: "lg",
2450
2471
  children: [
2451
- y.loading ? a("start_chat_button_loading") : a("start_chat_button"),
2472
+ y.loading ? i("start_chat_button_loading") : i("start_chat_button"),
2452
2473
  /* @__PURE__ */ r(Sr, { className: "size-4 rtl:-scale-100" })
2453
2474
  ]
2454
2475
  }
2455
2476
  )
2456
2477
  ] }),
2457
- /* @__PURE__ */ r(Ht, {})
2478
+ /* @__PURE__ */ r(Ft, {})
2458
2479
  ]
2459
2480
  }
2460
2481
  )
@@ -2467,7 +2488,7 @@ function Mo() {
2467
2488
  function Wt() {
2468
2489
  const {
2469
2490
  routerState: { screen: e }
2470
- } = $();
2491
+ } = P();
2471
2492
  return /* @__PURE__ */ r("div", { className: "relative bg-background size-full", children: /* @__PURE__ */ r(_, { mode: "wait", children: (() => {
2472
2493
  switch (e) {
2473
2494
  case "welcome":
@@ -2477,7 +2498,7 @@ function Wt() {
2477
2498
  fadeIn: "right",
2478
2499
  className: "size-full",
2479
2500
  snapExit: !0,
2480
- children: /* @__PURE__ */ r(Mo, {})
2501
+ children: /* @__PURE__ */ r(Ro, {})
2481
2502
  },
2482
2503
  e
2483
2504
  );
@@ -2488,7 +2509,7 @@ function Wt() {
2488
2509
  fadeIn: "right",
2489
2510
  className: "size-full",
2490
2511
  snapExit: !0,
2491
- children: /* @__PURE__ */ r(_o, {})
2512
+ children: /* @__PURE__ */ r(To, {})
2492
2513
  },
2493
2514
  e
2494
2515
  );
@@ -2499,7 +2520,7 @@ function Wt() {
2499
2520
  fadeIn: "right",
2500
2521
  className: "size-full",
2501
2522
  snapExit: !0,
2502
- children: /* @__PURE__ */ r(ko, {})
2523
+ children: /* @__PURE__ */ r(zo, {})
2503
2524
  },
2504
2525
  e
2505
2526
  );
@@ -2508,11 +2529,11 @@ function Wt() {
2508
2529
  }
2509
2530
  })() }) });
2510
2531
  }
2511
- const Do = "4.0.29", Ro = `<!DOCTYPE html>
2532
+ const jo = "4.0.32", Eo = `<!DOCTYPE html>
2512
2533
  <html>
2513
2534
  <head>
2514
2535
  <style>
2515
- ${Mt}
2536
+ ${Dt}
2516
2537
  html, body {
2517
2538
  height: 100%;
2518
2539
  width: 100%;
@@ -2526,8 +2547,8 @@ html, body {
2526
2547
  <body>
2527
2548
  </body>
2528
2549
  </html>`;
2529
- function $t() {
2530
- const { isOpen: e } = K(), { contentIframeRef: o } = R(), { cssOverrides: t, inline: n } = x(), { theme: s, cssVars: i, computed: a } = X(), { dir: c } = U();
2550
+ function Bt() {
2551
+ const { isOpen: e } = K(), { contentIframeRef: o } = R(), { cssOverrides: t, inline: n } = x(), { theme: s, cssVars: a, computed: i } = X(), { dir: c } = U();
2531
2552
  return /* @__PURE__ */ r(
2532
2553
  Z.div,
2533
2554
  {
@@ -2548,23 +2569,23 @@ function $t() {
2548
2569
  }
2549
2570
  },
2550
2571
  children: /* @__PURE__ */ d(
2551
- xt,
2572
+ bt,
2552
2573
  {
2553
2574
  ref: o,
2554
- initialContent: Ro,
2575
+ initialContent: Eo,
2555
2576
  allowFullScreen: !0,
2556
2577
  title: "OpenCX Live Chat",
2557
2578
  style: {
2558
2579
  // @ts-expect-error this is a valid css variable
2559
- "--opencx-widget-width": a.minWidth,
2560
- "--opencx-widget-height": a.minHeight,
2561
- minWidth: a.minWidth,
2580
+ "--opencx-widget-width": i.minWidth,
2581
+ "--opencx-widget-height": i.minHeight,
2582
+ minWidth: i.minWidth,
2562
2583
  width: "var(--opencx-widget-width)",
2563
- maxWidth: a.maxWidth,
2584
+ maxWidth: i.maxWidth,
2564
2585
  // Relative to the viewport
2565
- minHeight: a.minHeight,
2586
+ minHeight: i.minHeight,
2566
2587
  height: "var(--opencx-widget-height)",
2567
- maxHeight: a.maxHeight,
2588
+ maxHeight: i.maxHeight,
2568
2589
  // Relative to the viewport
2569
2590
  overflow: "hidden",
2570
2591
  /** outline is better than border because of box sizing; the outline wouldn't affect the content inside... the border will mess up how the children's border radius sits with the parent */
@@ -2585,10 +2606,10 @@ function $t() {
2585
2606
  "div",
2586
2607
  {
2587
2608
  style: {
2588
- ...i,
2609
+ ...a,
2589
2610
  zIndex: s.widgetContentContainer.zIndex
2590
2611
  },
2591
- "data-version": Do,
2612
+ "data-version": jo,
2592
2613
  className: p(
2593
2614
  "antialiased font-sans size-full overflow-hidden relative text-secondary-foreground isolate"
2594
2615
  ),
@@ -2609,10 +2630,10 @@ function $t() {
2609
2630
  }
2610
2631
  );
2611
2632
  }
2612
- function jo() {
2633
+ function Oo() {
2613
2634
  const { theme: e } = X();
2614
2635
  return /* @__PURE__ */ r(
2615
- le.Content,
2636
+ ce.Content,
2616
2637
  {
2617
2638
  onInteractOutside: (o) => o.preventDefault(),
2618
2639
  forceMount: !0,
@@ -2625,11 +2646,11 @@ function jo() {
2625
2646
  sideOffset: e.widgetContentContainer.offset.side,
2626
2647
  alignOffset: e.widgetContentContainer.offset.align,
2627
2648
  avoidCollisions: !1,
2628
- children: /* @__PURE__ */ r($t, {})
2649
+ children: /* @__PURE__ */ r(Bt, {})
2629
2650
  }
2630
2651
  );
2631
2652
  }
2632
- function Eo({
2653
+ function Po({
2633
2654
  className: e,
2634
2655
  style: o
2635
2656
  }) {
@@ -2664,11 +2685,11 @@ function Eo({
2664
2685
  }
2665
2686
  );
2666
2687
  }
2667
- const Oo = `<!DOCTYPE html>
2688
+ const Ao = `<!DOCTYPE html>
2668
2689
  <html>
2669
2690
  <head>
2670
2691
  <style>
2671
- ${Mt}
2692
+ ${Dt}
2672
2693
  html, body {
2673
2694
  height: 100%;
2674
2695
  width: 100%;
@@ -2681,13 +2702,13 @@ html, body {
2681
2702
  <body>
2682
2703
  </body>
2683
2704
  </html>`;
2684
- function Po() {
2685
- var i, a;
2705
+ function Ho() {
2706
+ var a, i;
2686
2707
  const { isOpen: e } = K(), { cssOverrides: o, assets: t } = x(), { theme: n, cssVars: s } = X();
2687
2708
  return /* @__PURE__ */ d(
2688
- xt,
2709
+ bt,
2689
2710
  {
2690
- initialContent: Oo,
2711
+ initialContent: Ao,
2691
2712
  style: {
2692
2713
  height: `calc(${n.widgetTrigger.size.button}px + ${V.x * 2}px)`,
2693
2714
  width: `calc(${n.widgetTrigger.size.button}px + ${V.y * 2}px)`,
@@ -2717,7 +2738,7 @@ function Po() {
2717
2738
  justifyContent: "center"
2718
2739
  },
2719
2740
  children: /* @__PURE__ */ r(
2720
- le.PopoverTrigger,
2741
+ ce.PopoverTrigger,
2721
2742
  {
2722
2743
  className: p(
2723
2744
  "font-sans flex items-center justify-center rounded-full"
@@ -2726,7 +2747,7 @@ function Po() {
2726
2747
  height: n.widgetTrigger.size.button,
2727
2748
  width: n.widgetTrigger.size.button
2728
2749
  },
2729
- children: /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r(
2750
+ children: /* @__PURE__ */ r(B, { children: /* @__PURE__ */ r(
2730
2751
  "div",
2731
2752
  {
2732
2753
  ...g("trigger/btn"),
@@ -2747,7 +2768,7 @@ function Po() {
2747
2768
  initial: { rotate: 45 },
2748
2769
  animate: { rotate: 0 }
2749
2770
  },
2750
- children: (i = t == null ? void 0 : t.widgetTrigger) != null && i.closeIcon ? /* @__PURE__ */ r(
2771
+ children: (a = t == null ? void 0 : t.widgetTrigger) != null && a.closeIcon ? /* @__PURE__ */ r(
2751
2772
  "img",
2752
2773
  {
2753
2774
  src: t.widgetTrigger.closeIcon,
@@ -2776,7 +2797,7 @@ function Po() {
2776
2797
  initial: { rotate: 45 },
2777
2798
  animate: { rotate: 0 }
2778
2799
  },
2779
- children: (a = t == null ? void 0 : t.widgetTrigger) != null && a.openIcon ? /* @__PURE__ */ r(
2800
+ children: (i = t == null ? void 0 : t.widgetTrigger) != null && i.openIcon ? /* @__PURE__ */ r(
2780
2801
  "img",
2781
2802
  {
2782
2803
  src: t.widgetTrigger.openIcon,
@@ -2787,7 +2808,7 @@ function Po() {
2787
2808
  }
2788
2809
  }
2789
2810
  ) : /* @__PURE__ */ r(
2790
- Eo,
2811
+ Po,
2791
2812
  {
2792
2813
  style: {
2793
2814
  width: n.widgetTrigger.size.icon,
@@ -2809,10 +2830,10 @@ function Po() {
2809
2830
  }
2810
2831
  );
2811
2832
  }
2812
- function Ao() {
2813
- const { dir: e } = fe();
2833
+ function Fo() {
2834
+ const { dir: e } = ve();
2814
2835
  return /* @__PURE__ */ r(
2815
- le.Anchor,
2836
+ ce.Anchor,
2816
2837
  {
2817
2838
  style: {
2818
2839
  position: "fixed",
@@ -2823,32 +2844,32 @@ function Ao() {
2823
2844
  }
2824
2845
  );
2825
2846
  }
2826
- function Fo() {
2847
+ function Wo() {
2827
2848
  const { isOpen: e, setIsOpen: o } = K();
2828
- return /* @__PURE__ */ d(le.Root, { open: e, onOpenChange: o, children: [
2829
- /* @__PURE__ */ r(Ao, {}),
2830
- /* @__PURE__ */ r(Po, {}),
2831
- /* @__PURE__ */ r(jo, {})
2849
+ return /* @__PURE__ */ d(ce.Root, { open: e, onOpenChange: o, children: [
2850
+ /* @__PURE__ */ r(Fo, {}),
2851
+ /* @__PURE__ */ r(Ho, {}),
2852
+ /* @__PURE__ */ r(Oo, {})
2832
2853
  ] });
2833
2854
  }
2834
- const Ho = [
2855
+ const Bo = [
2835
2856
  {
2836
2857
  key: "loading",
2837
2858
  component: Lr
2838
2859
  },
2839
2860
  {
2840
2861
  key: "fallback",
2841
- component: Br
2862
+ component: $r
2842
2863
  },
2843
2864
  {
2844
2865
  key: "bot_message",
2845
- component: me
2866
+ component: ge
2846
2867
  },
2847
2868
  {
2848
2869
  key: "agent_message",
2849
- component: me
2870
+ component: ge
2850
2871
  }
2851
- ], Wo = {
2872
+ ], $o = {
2852
2873
  get: async (e) => localStorage.getItem(e),
2853
2874
  set: async (e, o) => {
2854
2875
  localStorage.setItem(e, o);
@@ -2857,7 +2878,7 @@ const Ho = [
2857
2878
  localStorage.removeItem(e);
2858
2879
  }
2859
2880
  };
2860
- function sn({
2881
+ function ln({
2861
2882
  options: e,
2862
2883
  components: o = [],
2863
2884
  loadingComponent: t
@@ -2865,15 +2886,15 @@ function sn({
2865
2886
  return /* @__PURE__ */ r(
2866
2887
  Ut,
2867
2888
  {
2868
- components: [...Ho, ...o],
2889
+ components: [...Bo, ...o],
2869
2890
  options: e,
2870
- storage: Wo,
2891
+ storage: $o,
2871
2892
  loadingComponent: t,
2872
- children: /* @__PURE__ */ r(Vt, { children: e.inline ? /* @__PURE__ */ r($t, {}) : /* @__PURE__ */ r(Fo, {}) })
2893
+ children: /* @__PURE__ */ r(Vt, { children: e.inline ? /* @__PURE__ */ r(Bt, {}) : /* @__PURE__ */ r(Wo, {}) })
2873
2894
  }
2874
2895
  );
2875
2896
  }
2876
2897
  export {
2877
- sn as Widget
2898
+ ln as Widget
2878
2899
  };
2879
2900
  //# sourceMappingURL=index.js.map