@opencx/widget-react 4.0.48 → 4.0.50

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,69 +1,69 @@
1
1
  import { jsx as r, jsxs as d, Fragment as Q } from "react/jsx-runtime";
2
2
  import * as he from "@radix-ui/react-popover";
3
3
  import * as J from "react";
4
- import W, { memo as Gt, forwardRef as ft, useState as D, cloneElement as xt, createContext as Zt, useEffect as se, useContext as Kt, useRef as $, useCallback as q, useMemo as vt, createElement as lt } from "react";
5
- import { useWidget as P, useConfig as N, useSessions as Y, useMessages as O, useWidgetRouter as H, useDocumentDir as ye, useWidgetTrigger as V, useModes as bt, useCsat as yt, useUploadFiles as Qt, useIsAwaitingBotReply as kt, useContact as Ct, WidgetProvider as Jt, WidgetTriggerProvider as er } from "@opencx/widget-react-headless";
6
- import { clsx as tr } from "clsx";
7
- import { twMerge as rr } from "tailwind-merge";
4
+ import L, { memo as Kt, forwardRef as xt, useState as D, cloneElement as vt, createContext as Qt, useEffect as se, useContext as Jt, useRef as B, useCallback as q, useMemo as bt, createElement as lt } from "react";
5
+ import { useWidget as O, useConfig as C, useSessions as U, useMessages as A, useWidgetRouter as H, useDocumentDir as ye, useWidgetTrigger as V, useModes as yt, useCsat as kt, useUploadFiles as er, useIsAwaitingBotReply as Ct, useContact as zt, WidgetProvider as tr, WidgetTriggerProvider as rr } from "@opencx/widget-react-headless";
6
+ import { X as or, ZoomOut as nr, ZoomIn as sr, RotateCcw as ar, FileText as Nt, CircleDashedIcon as ir, XIcon as ke, SquareXIcon as lr, SquareCheckBigIcon as cr, SquareCheckIcon as dr, ShrinkIcon as pr, Minimize2Icon as hr, MinimizeIcon as mr, Maximize2Icon as ur, MaximizeIcon as gr, ExpandIcon as wr, CircleXIcon as fr, CircleCheckBigIcon as xr, CircleCheckIcon as St, CheckCheckIcon as vr, CheckIcon as br, ChevronLeftIcon as yr, LoaderIcon as kr, ArrowUpIcon as _t, PaperclipIcon as ct, CircleDashed as Cr, AlertCircle as zr, Loader2 as Nr, FileAudio2Icon as Sr, FileVideo2Icon as _r, FileIcon as Ir, UserRoundIcon as Tr, ChevronRightIcon as Mr, SendHorizontal as Dr, ChevronDownIcon as Rr } from "lucide-react";
7
+ import { clsx as jr } from "clsx";
8
+ import { twMerge as Pr } from "tailwind-merge";
8
9
  import { motion as re, AnimatePresence as T } from "framer-motion";
9
- import { Slot as or } from "@radix-ui/react-slot";
10
- import { cva as nr } from "class-variance-authority";
11
- import { X as sr, ZoomOut as ar, ZoomIn as ir, RotateCcw as lr, CircleDashedIcon as cr, XIcon as ke, SquareXIcon as dr, SquareCheckBigIcon as pr, SquareCheckIcon as hr, ShrinkIcon as mr, Minimize2Icon as ur, MinimizeIcon as gr, Maximize2Icon as wr, MaximizeIcon as fr, ExpandIcon as xr, CircleXIcon as vr, CircleCheckBigIcon as br, CircleCheckIcon as zt, CheckCheckIcon as yr, CheckIcon as kr, ChevronLeftIcon as Cr, LoaderIcon as zr, ArrowUpIcon as Nt, PaperclipIcon as Nr, ImageIcon as Sr, CircleDashed as _r, AlertCircle as Ir, Loader2 as Tr, FileAudio2Icon as Mr, FileVideo2Icon as Dr, FileIcon as Rr, UserRoundIcon as jr, ChevronRightIcon as Er, SendHorizontal as Pr, ChevronDownIcon as Or } from "lucide-react";
12
- import St from "remark-gfm";
10
+ import { Slot as Er } from "@radix-ui/react-slot";
11
+ import { cva as Or } from "class-variance-authority";
12
+ import It from "remark-gfm";
13
13
  import Ar from "react-markdown";
14
- import _t from "rehype-raw";
15
- import { isExhaustive as A, isSupportedLanguage as Hr, getTranslation as Fr } from "@opencx/widget-core";
14
+ import Tt from "rehype-raw";
15
+ import { isExhaustive as F, isSupportedLanguage as Fr, getTranslation as Hr } from "@opencx/widget-core";
16
16
  import * as ee from "@radix-ui/react-avatar";
17
- import It from "@uiw/react-iframe";
17
+ import Mt from "@uiw/react-iframe";
18
18
  import * as ae from "@radix-ui/react-tooltip";
19
- import ct from "tinycolor2";
19
+ import dt from "tinycolor2";
20
20
  import { useDropzone as Wr } from "react-dropzone";
21
21
  import Lr from "react-use/lib/useAsyncFn";
22
22
  import { z as ge } from "zod";
23
- function g(e) {
23
+ function w(e) {
24
24
  return { "data-component": e };
25
25
  }
26
26
  function h(...e) {
27
- return rr(tr(e));
27
+ return Pr(jr(e));
28
28
  }
29
29
  const K = {
30
30
  x: 2,
31
31
  y: 2
32
- }, X = Gt(
33
- ft(
32
+ }, Y = Kt(
33
+ xt(
34
34
  ({ children: e, className: o, scale: t = 1.02, off: n = !1 }, s) => {
35
35
  const [a, i] = D(!1), [l, c] = D({ x: 0, y: 0 });
36
36
  if (n || /translate/.test(
37
37
  e.props.className || ""
38
38
  )) return e;
39
- const b = (f) => {
40
- var y, I;
41
- const { clientX: z, clientY: M } = f, v = f.currentTarget.getBoundingClientRect(), R = z - (v.left + v.width / 2), E = M - (v.top + v.height / 2), j = Math.max(
39
+ const x = (v) => {
40
+ var M, u;
41
+ const { clientX: z, clientY: _ } = v, f = v.currentTarget.getBoundingClientRect(), R = z - (f.left + f.width / 2), P = _ - (f.top + f.height / 2), E = Math.max(
42
42
  -1,
43
- Math.min(1, R / (v.width / 2))
44
- ), u = Math.max(
43
+ Math.min(1, R / (f.width / 2))
44
+ ), g = Math.max(
45
45
  -1,
46
- Math.min(1, E / (v.height / 2))
47
- ), _ = j * K.x, w = u * K.y;
48
- c({ x: _, y: w }), (I = (y = e.props).onMouseMove) == null || I.call(y, f);
49
- }, x = () => {
50
- var f, z;
51
- i(!0), (z = (f = e.props).onMouseEnter) == null || z.call(f);
46
+ Math.min(1, P / (f.height / 2))
47
+ ), I = E * K.x, j = g * K.y;
48
+ c({ x: I, y: j }), (u = (M = e.props).onMouseMove) == null || u.call(M, v);
49
+ }, y = () => {
50
+ var v, z;
51
+ i(!0), (z = (v = e.props).onMouseEnter) == null || z.call(v);
52
52
  }, m = () => {
53
- var f, z;
54
- i(!1), c({ x: 0, y: 0 }), (z = (f = e.props).onMouseLeave) == null || z.call(f);
55
- }, C = {
53
+ var v, z;
54
+ i(!1), c({ x: 0, y: 0 }), (z = (v = e.props).onMouseLeave) == null || z.call(v);
55
+ }, k = {
56
56
  "--wobble-x": a ? `${l.x}px` : "0px",
57
57
  "--wobble-y": a ? `${l.y}px` : "0px",
58
58
  "--scale": 1 - (t - 1)
59
59
  };
60
- return xt(e, {
60
+ return vt(e, {
61
61
  ref: s,
62
- onMouseMove: b,
63
- onMouseEnter: x,
62
+ onMouseMove: x,
63
+ onMouseEnter: y,
64
64
  onMouseLeave: m,
65
65
  style: {
66
- ...C,
66
+ ...k,
67
67
  ...e.props.style
68
68
  },
69
69
  className: h(
@@ -78,12 +78,12 @@ const K = {
78
78
  }
79
79
  )
80
80
  );
81
- X.displayName = "Wobble";
82
- const $r = 10, Yr = (e, o, t) => ({
81
+ Y.displayName = "Wobble";
82
+ const $r = 10, Br = (e, o, t) => ({
83
83
  initial: { opacity: 0, x: -e, ...o.initial },
84
84
  animate: { opacity: 1, x: 0, ...o.animate, transition: { delay: t } },
85
85
  exit: { opacity: 0, x: e, ...o.exit }
86
- }), Br = (e, o, t) => ({
86
+ }), Yr = (e, o, t) => ({
87
87
  initial: { opacity: 0, x: e, ...o.initial },
88
88
  animate: { opacity: 1, x: 0, ...o.animate, transition: { delay: t } },
89
89
  exit: { opacity: 0, x: -e, ...o.exit }
@@ -96,11 +96,11 @@ const $r = 10, Yr = (e, o, t) => ({
96
96
  animate: { opacity: 1, y: 0, ...o.animate, transition: { delay: t } },
97
97
  exit: { opacity: 0, y: e, ...o.exit }
98
98
  }), qr = {
99
- right: Yr,
100
- left: Br,
99
+ right: Br,
100
+ left: Yr,
101
101
  up: Ur,
102
102
  down: Xr
103
- }, k = ft(
103
+ }, b = xt(
104
104
  ({
105
105
  fadeIn: e = "down",
106
106
  distance: o = $r,
@@ -114,8 +114,8 @@ const $r = 10, Yr = (e, o, t) => ({
114
114
  return n && c.exit && typeof c.exit == "object" && !Array.isArray(c.exit) && (c.exit.transition = { duration: 0 }), /* @__PURE__ */ r(re.div, { ref: l, ...i, ...c, children: t });
115
115
  }
116
116
  );
117
- k.displayName = "MotionDiv";
118
- const Vr = nr(
117
+ b.displayName = "MotionDiv";
118
+ const Vr = Or(
119
119
  h(
120
120
  "inline-flex shrink-0 items-center justify-center gap-2",
121
121
  "text-sm font-medium whitespace-nowrap",
@@ -154,19 +154,19 @@ const Vr = nr(
154
154
  size: "default"
155
155
  }
156
156
  }
157
- ), S = J.forwardRef(
158
- ({ className: e, variant: o = "default", size: t, asChild: n = !1, ...s }, a) => /* @__PURE__ */ r(X, { ref: a, children: /* @__PURE__ */ r(
159
- n ? or : "button",
157
+ ), N = J.forwardRef(
158
+ ({ className: e, variant: o = "default", size: t, asChild: n = !1, ...s }, a) => /* @__PURE__ */ r(Y, { ref: a, children: /* @__PURE__ */ r(
159
+ n ? Er : "button",
160
160
  {
161
- ...g("ui_lib/btn"),
161
+ ...w("ui_lib/btn"),
162
162
  "data-variant": o,
163
163
  className: h(Vr({ variant: o, size: t, className: e })),
164
164
  ...s
165
165
  }
166
166
  ) })
167
167
  );
168
- S.displayName = "Button";
169
- const Tt = Zt(null);
168
+ N.displayName = "Button";
169
+ const Dt = Qt(null);
170
170
  function Gr({ children: e }) {
171
171
  const [o, t] = D(!1), [n, s] = D(null), a = (l) => {
172
172
  s(l), t(!0);
@@ -176,7 +176,7 @@ function Gr({ children: e }) {
176
176
  }, 200);
177
177
  };
178
178
  return /* @__PURE__ */ d(
179
- Tt.Provider,
179
+ Dt.Provider,
180
180
  {
181
181
  value: { open: a, close: i, isOpen: o, content: n },
182
182
  children: [
@@ -187,7 +187,7 @@ function Gr({ children: e }) {
187
187
  );
188
188
  }
189
189
  function me() {
190
- const e = Kt(Tt);
190
+ const e = Jt(Dt);
191
191
  return e || (console.error("useDialoger must be used within a DialogerProvider"), {
192
192
  open: () => {
193
193
  },
@@ -198,7 +198,7 @@ function me() {
198
198
  });
199
199
  }
200
200
  function Zr() {
201
- const { contentIframeRef: e } = P(), { isOpen: o, content: t, close: n } = me();
201
+ const { contentIframeRef: e } = O(), { isOpen: o, content: t, close: n } = me();
202
202
  return se(() => {
203
203
  var a, i;
204
204
  const s = (l) => {
@@ -215,7 +215,7 @@ function Zr() {
215
215
  );
216
216
  };
217
217
  }, []), /* @__PURE__ */ r(T, { mode: "wait", children: o && t && /* @__PURE__ */ r(
218
- k,
218
+ b,
219
219
  {
220
220
  overrides: {
221
221
  initial: { y: 0 },
@@ -246,13 +246,13 @@ function Ce({
246
246
  children: [
247
247
  e,
248
248
  t && /* @__PURE__ */ d(
249
- S,
249
+ N,
250
250
  {
251
251
  size: "fit",
252
252
  className: "rounded-full absolute top-4 right-4 opacity-50 hover:opacity-100",
253
253
  onClick: n,
254
254
  children: [
255
- /* @__PURE__ */ r(sr, { className: "h-4 w-4" }),
255
+ /* @__PURE__ */ r(or, { className: "h-4 w-4" }),
256
256
  /* @__PURE__ */ r("span", { className: "sr-only", children: "Close" })
257
257
  ]
258
258
  }
@@ -261,7 +261,7 @@ function Ce({
261
261
  }
262
262
  );
263
263
  }
264
- const Mt = ({
264
+ const Rt = ({
265
265
  className: e,
266
266
  ...o
267
267
  }) => /* @__PURE__ */ r(
@@ -271,8 +271,8 @@ const Mt = ({
271
271
  ...o
272
272
  }
273
273
  );
274
- Mt.displayName = "DialogerHeader";
275
- const Dt = ({
274
+ Rt.displayName = "DialogerHeader";
275
+ const jt = ({
276
276
  className: e,
277
277
  ...o
278
278
  }) => /* @__PURE__ */ r(
@@ -282,13 +282,13 @@ const Dt = ({
282
282
  ...o
283
283
  }
284
284
  );
285
- Dt.displayName = "DialogerBody";
286
- const Rt = ({
285
+ jt.displayName = "DialogerBody";
286
+ const Pt = ({
287
287
  className: e,
288
288
  ...o
289
289
  }) => /* @__PURE__ */ r("div", { className: h("flex flex-col gap-2", e), ...o });
290
- Rt.displayName = "DialogerFooter";
291
- const jt = W.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
290
+ Pt.displayName = "DialogerFooter";
291
+ const Et = L.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
292
292
  "p",
293
293
  {
294
294
  ref: t,
@@ -299,8 +299,8 @@ const jt = W.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
299
299
  ...o
300
300
  }
301
301
  ));
302
- jt.displayName = "DialogerTitle";
303
- const Et = W.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
302
+ Et.displayName = "DialogerTitle";
303
+ const Ot = L.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
304
304
  "p",
305
305
  {
306
306
  ref: t,
@@ -308,17 +308,17 @@ const Et = W.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
308
308
  ...o
309
309
  }
310
310
  ));
311
- Et.displayName = "DialogerDescription";
311
+ Ot.displayName = "DialogerDescription";
312
312
  function ze({
313
313
  children: e,
314
314
  trigger: o
315
315
  }) {
316
316
  const { open: t } = me();
317
- return xt(o, {
317
+ return vt(o, {
318
318
  onClick: () => t(e)
319
319
  });
320
320
  }
321
- const dt = 1, pt = 5, le = 0.5, Kr = 2.5;
321
+ const pt = 1, ht = 5, le = 0.5, Kr = 2.5;
322
322
  function Qr(e, o, t, n) {
323
323
  if (!t || !n || o <= 1) return { x: 0, y: 0 };
324
324
  const s = t.getBoundingClientRect(), a = n.offsetWidth, i = n.offsetHeight, l = Math.max(0, (a * o - s.width) / (2 * o)), c = Math.max(
@@ -330,77 +330,77 @@ function Qr(e, o, t, n) {
330
330
  y: Math.min(c, Math.max(-c, e.y))
331
331
  };
332
332
  }
333
- function Pt({
333
+ function At({
334
334
  src: e,
335
335
  alt: o
336
336
  }) {
337
- const [t, n] = D(1), [s, a] = D({ x: 0, y: 0 }), [i, l] = D(!1), c = $({ x: 0, y: 0 }), p = $({ x: 0, y: 0 }), b = $(null), x = $(null), m = $(!1), C = (u) => Math.min(pt, Math.max(dt, u)), f = q(() => {
337
+ const [t, n] = D(1), [s, a] = D({ x: 0, y: 0 }), [i, l] = D(!1), c = B({ x: 0, y: 0 }), p = B({ x: 0, y: 0 }), x = B(null), y = B(null), m = B(!1), k = (g) => Math.min(ht, Math.max(pt, g)), v = q(() => {
338
338
  n(1), a({ x: 0, y: 0 });
339
339
  }, []), z = q(() => {
340
- n((u) => C(u + le));
341
- }, []), M = q(() => {
342
- n((u) => {
343
- const _ = C(u - le);
344
- return _ <= 1 && a({ x: 0, y: 0 }), _;
340
+ n((g) => k(g + le));
341
+ }, []), _ = q(() => {
342
+ n((g) => {
343
+ const I = k(g - le);
344
+ return I <= 1 && a({ x: 0, y: 0 }), I;
345
345
  });
346
346
  }, []);
347
- q((u) => {
348
- u.preventDefault(), u.stopPropagation();
349
- const _ = u.deltaY > 0 ? -le : le;
350
- n((w) => {
351
- const y = C(w + _);
352
- return y <= 1 && a({ x: 0, y: 0 }), y;
347
+ q((g) => {
348
+ g.preventDefault(), g.stopPropagation();
349
+ const I = g.deltaY > 0 ? -le : le;
350
+ n((j) => {
351
+ const M = k(j + I);
352
+ return M <= 1 && a({ x: 0, y: 0 }), M;
353
353
  });
354
354
  }, []);
355
- const v = q(
356
- (u) => {
357
- u.preventDefault(), m.current = !1, l(!0), c.current = { x: u.clientX, y: u.clientY }, p.current = { ...s }, u.target.setPointerCapture(u.pointerId);
355
+ const f = q(
356
+ (g) => {
357
+ g.preventDefault(), m.current = !1, l(!0), c.current = { x: g.clientX, y: g.clientY }, p.current = { ...s }, g.target.setPointerCapture(g.pointerId);
358
358
  },
359
359
  [s]
360
360
  ), R = q(
361
- (u) => {
361
+ (g) => {
362
362
  if (!i) return;
363
- const _ = u.clientX - c.current.x, w = u.clientY - c.current.y;
364
- if ((Math.abs(_) > 3 || Math.abs(w) > 3) && (m.current = !0), t <= 1) return;
365
- const y = {
366
- x: p.current.x + _ / t,
367
- y: p.current.y + w / t
363
+ const I = g.clientX - c.current.x, j = g.clientY - c.current.y;
364
+ if ((Math.abs(I) > 3 || Math.abs(j) > 3) && (m.current = !0), t <= 1) return;
365
+ const M = {
366
+ x: p.current.x + I / t,
367
+ y: p.current.y + j / t
368
368
  };
369
369
  a(
370
- Qr(y, t, b.current, x.current)
370
+ Qr(M, t, x.current, y.current)
371
371
  );
372
372
  },
373
373
  [i, t]
374
- ), E = q(() => {
375
- const u = m.current;
376
- l(!1), !u && n((_) => _ > 1 ? (a({ x: 0, y: 0 }), 1) : Kr);
377
- }, []), j = t > 1;
374
+ ), P = q(() => {
375
+ const g = m.current;
376
+ l(!1), !g && n((I) => I > 1 ? (a({ x: 0, y: 0 }), 1) : Kr);
377
+ }, []), E = t > 1;
378
378
  return /* @__PURE__ */ d(
379
379
  "div",
380
380
  {
381
381
  className: "relative size-full flex items-center justify-center select-none",
382
- onClick: (u) => u.stopPropagation(),
382
+ onClick: (g) => g.stopPropagation(),
383
383
  children: [
384
384
  /* @__PURE__ */ r(
385
385
  "div",
386
386
  {
387
- ref: b,
387
+ ref: x,
388
388
  className: h(
389
389
  "overflow-hidden max-h-full max-w-full rounded-2xl flex items-center justify-center",
390
- j && "size-full"
390
+ E && "size-full"
391
391
  ),
392
- onPointerDown: v,
392
+ onPointerDown: f,
393
393
  onPointerMove: R,
394
- onPointerUp: E,
395
- onPointerCancel: E,
394
+ onPointerUp: P,
395
+ onPointerCancel: P,
396
396
  style: {
397
- cursor: i ? "grabbing" : j ? "grab" : "zoom-in",
397
+ cursor: i ? "grabbing" : E ? "grab" : "zoom-in",
398
398
  touchAction: "none"
399
399
  },
400
400
  children: /* @__PURE__ */ r(
401
401
  "img",
402
402
  {
403
- ref: x,
403
+ ref: y,
404
404
  src: e,
405
405
  alt: o,
406
406
  className: "block max-w-full object-contain pointer-events-none",
@@ -416,15 +416,15 @@ function Pt({
416
416
  }
417
417
  ),
418
418
  /* @__PURE__ */ d("div", { className: "absolute bottom-3 left-1/2 -translate-x-1/2 flex items-center gap-1 bg-black/60 backdrop-blur-sm rounded-full px-1.5 py-1 transition opacity-50 hover:opacity-100", children: [
419
- /* @__PURE__ */ r(we, { onClick: M, label: "Zoom out", disabled: t <= dt, children: /* @__PURE__ */ r(ar, { className: "size-3.5" }) }),
419
+ /* @__PURE__ */ r(we, { onClick: _, label: "Zoom out", disabled: t <= pt, children: /* @__PURE__ */ r(nr, { className: "size-3.5" }) }),
420
420
  /* @__PURE__ */ d("span", { className: "text-white text-xs font-medium min-w-[3ch] text-center tabular-nums", children: [
421
421
  Math.round(t * 100),
422
422
  "%"
423
423
  ] }),
424
- /* @__PURE__ */ r(we, { onClick: z, label: "Zoom in", disabled: t >= pt, children: /* @__PURE__ */ r(ir, { className: "size-3.5" }) }),
425
- j && /* @__PURE__ */ d(Q, { children: [
424
+ /* @__PURE__ */ r(we, { onClick: z, label: "Zoom in", disabled: t >= ht, children: /* @__PURE__ */ r(sr, { className: "size-3.5" }) }),
425
+ E && /* @__PURE__ */ d(Q, { children: [
426
426
  /* @__PURE__ */ r("div", { className: "w-px h-4 bg-white/30 mx-0.5" }),
427
- /* @__PURE__ */ r(we, { onClick: f, label: "Reset zoom", children: /* @__PURE__ */ r(lr, { className: "size-3.5" }) })
427
+ /* @__PURE__ */ r(we, { onClick: v, label: "Reset zoom", children: /* @__PURE__ */ r(ar, { className: "size-3.5" }) })
428
428
  ] })
429
429
  ] })
430
430
  ]
@@ -448,28 +448,70 @@ function we({
448
448
  }
449
449
  );
450
450
  }
451
- function Ot({ attachment: e }) {
452
- const { name: o, size: t, type: n, url: s } = e, a = n.startsWith("image/"), i = n.startsWith("video/");
453
- return n.startsWith("audio/") ? /* @__PURE__ */ r(X, { children: /* @__PURE__ */ r("div", { className: "w-full shrink-0 overflow-hidden", children: /* @__PURE__ */ d("audio", { controls: !0, className: "w-full", children: [
451
+ function Ft({ attachment: e }) {
452
+ const { name: o, size: t, type: n, url: s } = e, a = n.startsWith("image/"), i = n.startsWith("video/"), l = n.startsWith("audio/"), c = n === "application/pdf";
453
+ return l ? /* @__PURE__ */ r(Y, { children: /* @__PURE__ */ r("div", { className: "w-full shrink-0 overflow-hidden", children: /* @__PURE__ */ d("audio", { controls: !0, className: "w-full", children: [
454
454
  /* @__PURE__ */ r("source", { src: s, type: n }),
455
455
  "Your browser does not support the audio tag."
456
- ] }) }) }) : i ? /* @__PURE__ */ r(X, { children: /* @__PURE__ */ r("div", { className: "w-full border shrink-0 rounded-2xl overflow-hidden", children: /* @__PURE__ */ d("video", { controls: !0, children: [
456
+ ] }) }) }) : i ? /* @__PURE__ */ r(Y, { children: /* @__PURE__ */ r("div", { className: "w-full border shrink-0 rounded-2xl overflow-hidden", children: /* @__PURE__ */ d("video", { controls: !0, children: [
457
457
  /* @__PURE__ */ r("source", { src: s, type: n }),
458
458
  "Your browser does not support the video tag."
459
459
  ] }) }) }) : a ? /* @__PURE__ */ r(
460
460
  ze,
461
461
  {
462
- trigger: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(X, { children: /* @__PURE__ */ r("div", { className: "size-fit border shrink-0 rounded-2xl overflow-hidden", children: /* @__PURE__ */ r("img", { src: s, className: "object-cover size-16", alt: o }) }) }) }),
462
+ trigger: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(Y, { children: /* @__PURE__ */ r("div", { className: "size-fit border shrink-0 rounded-2xl overflow-hidden", children: /* @__PURE__ */ r("img", { src: s, className: "object-cover size-16", alt: o }) }) }) }),
463
463
  children: /* @__PURE__ */ r(
464
464
  Ce,
465
465
  {
466
466
  className: "size-full max-w-full rounded-3xl flex items-center justify-center bg-transparent border-none gap-0",
467
467
  withClose: !0,
468
- children: /* @__PURE__ */ r(Pt, { src: s, alt: o })
468
+ children: /* @__PURE__ */ r(At, { src: s, alt: o })
469
469
  }
470
470
  )
471
471
  }
472
- ) : /* @__PURE__ */ r(X, { 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: [
472
+ ) : c ? /* @__PURE__ */ r(Y, { children: /* @__PURE__ */ r(
473
+ "a",
474
+ {
475
+ href: s,
476
+ target: "_blank",
477
+ rel: "noopener noreferrer",
478
+ className: h(
479
+ "block size-fit max-w-[min(100%,16rem)] shrink-0 rounded-2xl border",
480
+ "bg-background/80 transition-colors hover:bg-accent/60",
481
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
482
+ ),
483
+ children: /* @__PURE__ */ d("div", { className: "flex items-center gap-3 p-3 min-w-0", children: [
484
+ /* @__PURE__ */ r(
485
+ "div",
486
+ {
487
+ className: h(
488
+ "flex size-10 shrink-0 items-center justify-center rounded-xl",
489
+ "bg-secondary text-muted-foreground"
490
+ ),
491
+ "aria-hidden": !0,
492
+ children: /* @__PURE__ */ r(Nt, { className: "size-5", strokeWidth: 1.75 })
493
+ }
494
+ ),
495
+ /* @__PURE__ */ d("div", { className: "min-w-0 flex-1 flex flex-col gap-0.5 text-left", children: [
496
+ /* @__PURE__ */ r(
497
+ "span",
498
+ {
499
+ className: h(
500
+ "text-xs font-medium text-foreground line-clamp-1",
501
+ "break-words [word-break:break-word]"
502
+ // `[word-break:break-word]` is deprecated but works in the browser, while `break-words` which is `[overflow-wrap: break-word]` does not work
503
+ ),
504
+ children: o
505
+ }
506
+ ),
507
+ /* @__PURE__ */ d("span", { className: "text-xs text-muted-foreground tabular-nums", children: [
508
+ (t / 1024).toFixed(2),
509
+ " KB · PDF"
510
+ ] })
511
+ ] })
512
+ ] })
513
+ }
514
+ ) }) : /* @__PURE__ */ r(Y, { 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: [
473
515
  /* @__PURE__ */ r(
474
516
  "a",
475
517
  {
@@ -490,7 +532,7 @@ function Ot({ attachment: e }) {
490
532
  ] })
491
533
  ] }) }) });
492
534
  }
493
- const At = W.memo(
535
+ const Ht = L.memo(
494
536
  Ar,
495
537
  (e, o) => e.children === o.children && e.className === o.className
496
538
  );
@@ -499,14 +541,14 @@ function Ne({
499
541
  messageType: o,
500
542
  messageId: t
501
543
  }) {
502
- const { anchorTarget: n } = N();
544
+ const { anchorTarget: n } = C();
503
545
  return /* @__PURE__ */ r(
504
- At,
546
+ Ht,
505
547
  {
506
548
  "data-type": o,
507
549
  "data-id": t,
508
- remarkPlugins: [St],
509
- rehypePlugins: [_t],
550
+ remarkPlugins: [It],
551
+ rehypePlugins: [Tt],
510
552
  components: {
511
553
  a: ({ children: s, ...a }) => /* @__PURE__ */ r("a", { target: a.target || n || "_top", ...a, children: s }),
512
554
  img: ({ src: s, alt: a, ...i }) => s ? /* @__PURE__ */ r(
@@ -526,7 +568,7 @@ function Ne({
526
568
  {
527
569
  className: "size-full max-w-full rounded-3xl flex items-center justify-center bg-transparent border-none gap-0",
528
570
  withClose: !0,
529
- children: /* @__PURE__ */ r(Pt, { src: s, alt: a })
571
+ children: /* @__PURE__ */ r(At, { src: s, alt: a })
530
572
  }
531
573
  )
532
574
  }
@@ -539,15 +581,15 @@ function Ne({
539
581
  function te() {
540
582
  const {
541
583
  widgetCtx: { org: e }
542
- } = P(), {
584
+ } = O(), {
543
585
  sessionState: { session: o }
544
- } = Y(), t = N(), {
586
+ } = U(), t = C(), {
545
587
  messagesState: { messages: n }
546
- } = O(), {
588
+ } = A(), {
547
589
  routerState: { screen: s }
548
590
  } = H();
549
591
  return {
550
- react: W,
592
+ react: L,
551
593
  org: e,
552
594
  session: o,
553
595
  config: t,
@@ -575,26 +617,26 @@ function fe(e) {
575
617
  classNames: p
576
618
  } = e;
577
619
  if (n !== "AI" && n !== "AGENT") return null;
578
- const { message: b, variant: x = "default" } = o;
620
+ const { message: x, variant: y = "default" } = o;
579
621
  return /* @__PURE__ */ d(
580
622
  "div",
581
623
  {
582
- ...g((c == null ? void 0 : c.messageContainer) ?? "chat/agent_msg/root"),
624
+ ...w((c == null ? void 0 : c.messageContainer) ?? "chat/agent_msg/root"),
583
625
  className: h(
584
626
  "w-5/6 flex flex-col items-start gap-1",
585
627
  p == null ? void 0 : p.messageContainer
586
628
  ),
587
629
  children: [
588
- s && s.length > 0 && /* @__PURE__ */ r("div", { className: "w-full gap-1 flex flex-row flex-wrap items-center justify-start", children: s == null ? void 0 : s.map((m) => /* @__PURE__ */ r(Ot, { attachment: m }, m.id)) }),
589
- b.length > 0 && /* @__PURE__ */ d("div", { className: "flex flex-row gap-2", children: [
630
+ s && s.length > 0 && /* @__PURE__ */ r("div", { className: "w-full gap-1 flex flex-row flex-wrap items-center justify-start", children: s == null ? void 0 : s.map((m) => /* @__PURE__ */ r(Ft, { attachment: m }, m.id)) }),
631
+ x.length > 0 && /* @__PURE__ */ d("div", { className: "flex flex-row gap-2", children: [
590
632
  /* @__PURE__ */ r(
591
633
  "div",
592
634
  {
593
- ...g((c == null ? void 0 : c.message) ?? "chat/agent_msg/msg"),
635
+ ...w((c == null ? void 0 : c.message) ?? "chat/agent_msg/msg"),
594
636
  "data-first": a,
595
637
  "data-last": i,
596
638
  "data-alone": l,
597
- "data-variant": x,
639
+ "data-variant": y,
598
640
  className: h(
599
641
  "transition-all",
600
642
  "w-fit py-3 px-4 rounded-3xl bg-secondary text-secondary-foreground",
@@ -603,14 +645,14 @@ function fe(e) {
603
645
  // `[word-break:break-word]` is deprecated but works in the browser, while `break-words` which is `[overflow-wrap: break-word]` does not work
604
646
  // No need to add "whitespace-pre-wrap" in the agent or bot message because it is markup and content appear on separate lines as expected
605
647
  // Adding "whitespace-pre-wrap" will result in unnecessarily huge line breaks
606
- x === "error" && "bg-destructive/15 text-destructive",
648
+ y === "error" && "bg-destructive/15 text-destructive",
607
649
  // We're using the booleans directly here, not the data attributes, to make any external styling more specific than this
608
650
  a && !l && "rounded-bl-md",
609
651
  i && !l && "rounded-tl-md",
610
652
  !a && !i && !l && "rounded-l-md",
611
653
  p == null ? void 0 : p.message
612
654
  ),
613
- children: /* @__PURE__ */ r(Ne, { messageType: n, messageId: t, children: b })
655
+ children: /* @__PURE__ */ r(Ne, { messageType: n, messageId: t, children: x })
614
656
  }
615
657
  ),
616
658
  /* @__PURE__ */ r(Jr, { currentMessage: e })
@@ -668,16 +710,16 @@ function xe({
668
710
  }
669
711
  function to({ agent: e }) {
670
712
  return /* @__PURE__ */ r(T, { children: /* @__PURE__ */ d(
671
- k,
713
+ b,
672
714
  {
673
- ...g("chat/bot_loading/root"),
715
+ ...w("chat/bot_loading/root"),
674
716
  className: "flex flex-row items-end w-full gap-2 animate-pulse",
675
717
  children: [
676
718
  /* @__PURE__ */ r(xe, { agent: e }),
677
719
  /* @__PURE__ */ d(
678
720
  "div",
679
721
  {
680
- ...g("chat/bot_loading/bouncing_dots_container"),
722
+ ...w("chat/bot_loading/bouncing_dots_container"),
681
723
  className: h(
682
724
  "flex items-center [&_span]:bg-secondary-foreground [&_span]:size-1 gap-1 p-2 rounded-xl bg-secondary"
683
725
  // 'border',
@@ -693,7 +735,7 @@ function to({ agent: e }) {
693
735
  }
694
736
  ) });
695
737
  }
696
- const Ht = '*,: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%!important}.container{width:100%}@media (min-width: 640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\\!container{max-width:1536px!important}.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}.bottom-3{bottom:.75rem}.end-6{inset-inline-end:1.5rem}.left-1\\/2{left:50%}.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-0\\.5{margin-left:.125rem;margin-right:.125rem}.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-3\\.5{width:.875rem;height:.875rem}.size-4{width:1rem;height:1rem}.size-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.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-dvh{height:100dvh}.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-dvw{width:100dvw}.w-fit{width:fit-content}.w-full{width:100%}.w-px{width:1px}.min-w-80{min-width:20rem}.min-w-\\[3ch\\]{min-width:3ch}.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%}.flex-\\[2\\]{flex:2}.shrink-0{flex-shrink:0}.-translate-x-1\\/2,.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))}.transform{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-white\\/30{background-color:#ffffff4d}.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-1\\.5{padding:.375rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-8{padding:2rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.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{padding-top:.25rem;padding-bottom:.25rem}.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}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.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}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.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))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-white\\/80{color:#fffc}.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{--tw-enter-scale: 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}.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\\:bg-white\\/15:hover{background-color:#ffffff26}.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\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.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\\:text-white\\/30:disabled{color:#ffffff4d}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:hover\\:bg-transparent:hover:disabled{background-color:transparent}.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))}', ro = ae.Provider, oo = ae.Root, no = ae.Trigger, Ft = J.forwardRef(({ className: e, sideOffset: o = 4, ...t }, n) => /* @__PURE__ */ r(
738
+ const Wt = '*,: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%!important}.container{width:100%}@media (min-width: 640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\\!container{max-width:1536px!important}.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}.bottom-3{bottom:.75rem}.end-6{inset-inline-end:1.5rem}.left-1\\/2{left:50%}.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-0\\.5{margin-left:.125rem;margin-right:.125rem}.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-3\\.5{width:.875rem;height:.875rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.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-dvh{height:100dvh}.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-dvw{width:100dvw}.w-fit{width:fit-content}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0px}.min-w-80{min-width:20rem}.min-w-\\[3ch\\]{min-width:3ch}.min-w-\\[8rem\\]{min-width:8rem}.max-w-96{max-width:24rem}.max-w-\\[61\\.8\\%\\]{max-width:61.8%}.max-w-\\[min\\(100\\%\\,16rem\\)\\]{max-width:min(100%,16rem)}.max-w-full{max-width:100%}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-\\[2\\]{flex:2}.shrink-0{flex-shrink:0}.-translate-x-1\\/2,.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))}.transform{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-0\\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.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-background\\/80{background-color:hsl(var(--opencx-background) / .8)}.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-white\\/30{background-color:#ffffff4d}.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-1\\.5{padding:.375rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-8{padding:2rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.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{padding-top:.25rem;padding-bottom:.25rem}.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-left{text-align:left}.text-center{text-align:center}.text-start{text-align:start}.align-middle{vertical-align:middle}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.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}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.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))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-white\\/80{color:#fffc}.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{--tw-enter-scale: 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}.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-accent\\/60:hover{background-color:hsl(var(--opencx-accent) / .6)}.hover\\:bg-secondary:hover{background-color:hsl(var(--opencx-secondary))}.hover\\:bg-white\\/15:hover{background-color:#ffffff26}.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\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.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\\:text-white\\/30:disabled{color:#ffffff4d}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:hover\\:bg-transparent:hover:disabled{background-color:transparent}.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))}', ro = ae.Provider, oo = ae.Root, no = ae.Trigger, Lt = J.forwardRef(({ className: e, sideOffset: o = 4, ...t }, n) => /* @__PURE__ */ r(
697
739
  ae.Content,
698
740
  {
699
741
  ref: n,
@@ -705,18 +747,18 @@ const Ht = '*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;-
705
747
  ...t
706
748
  }
707
749
  ));
708
- Ft.displayName = ae.Content.displayName;
750
+ Lt.displayName = ae.Content.displayName;
709
751
  function oe({
710
752
  children: e,
711
753
  content: o,
712
754
  side: t,
713
755
  align: n
714
756
  }) {
715
- const { disableTooltips: s } = N();
757
+ const { disableTooltips: s } = C();
716
758
  return !o || s ? e : /* @__PURE__ */ d(oo, { children: [
717
759
  /* @__PURE__ */ r(no, { asChild: !0, children: e }),
718
760
  /* @__PURE__ */ r(
719
- Ft,
761
+ Lt,
720
762
  {
721
763
  side: t,
722
764
  align: n,
@@ -727,12 +769,12 @@ function oe({
727
769
  )
728
770
  ] });
729
771
  }
730
- const ht = 450;
731
- function L() {
732
- const [e, o] = W.useState(() => (window.top || window).innerWidth < ht);
733
- return W.useEffect(() => {
772
+ const mt = 450;
773
+ function $() {
774
+ const [e, o] = L.useState(() => (window.top || window).innerWidth < mt);
775
+ return L.useEffect(() => {
734
776
  const t = window.top || window, n = () => {
735
- o(t.innerWidth < ht);
777
+ o(t.innerWidth < mt);
736
778
  };
737
779
  return n(), t.addEventListener("resize", n), () => {
738
780
  t.removeEventListener("resize", n);
@@ -744,43 +786,43 @@ const ce = {
744
786
  transitionDuration: "1000ms"
745
787
  };
746
788
  function G() {
747
- var x, m, C, f, z, M, v, R, E, j, u, _, w, y, I, B, ie, Re, je, Ee, Pe, Oe, Ae, He, Fe, We, Le, $e, Ye, Be, Ue, Xe, qe, Ve, Ge, Ze, Ke, Qe, Je, et, tt, rt, ot, nt, st, at, it;
748
- const { dir: e } = ye(), { isSmallScreen: o } = L(), { theme: t, inline: n } = N(), s = (U) => n ? "100%" : U, a = (U, ue) => o ? `100dv${U}` : ue, i = (U, ue) => s(a(U, ue)), l = {
749
- zIndex: ((x = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : x.zIndex) ?? 1e7,
789
+ var y, m, k, v, z, _, f, R, P, E, g, I, j, M, u, S, ie, Re, je, Pe, Ee, Oe, Ae, Fe, He, We, Le, $e, Be, Ye, Ue, Xe, qe, Ve, Ge, Ze, Ke, Qe, Je, et, tt, rt, ot, nt, st, at, it;
790
+ const { dir: e } = ye(), { isSmallScreen: o } = $(), { theme: t, inline: n } = C(), s = (X) => n ? "100%" : X, a = (X, ue) => o ? `100dv${X}` : ue, i = (X, ue) => s(a(X, ue)), l = {
791
+ zIndex: ((y = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : y.zIndex) ?? 1e7,
750
792
  offset: {
751
- bottom: ((C = (m = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : m.offset) == null ? void 0 : C.bottom) ?? 20,
752
- right: ((z = (f = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : f.offset) == null ? void 0 : z.right) ?? (e === "ltr" ? 20 : "initial"),
753
- left: ((v = (M = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : M.offset) == null ? void 0 : v.left) ?? (e === "rtl" ? 20 : "initial")
793
+ bottom: ((k = (m = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : m.offset) == null ? void 0 : k.bottom) ?? 20,
794
+ right: ((z = (v = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : v.offset) == null ? void 0 : z.right) ?? (e === "ltr" ? 20 : "initial"),
795
+ left: ((f = (_ = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : _.offset) == null ? void 0 : f.left) ?? (e === "rtl" ? 20 : "initial")
754
796
  },
755
797
  size: {
756
- button: ((E = (R = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : R.size) == null ? void 0 : E.button) ?? 48,
757
- icon: ((u = (j = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : j.size) == null ? void 0 : u.icon) ?? 24
798
+ button: ((P = (R = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : R.size) == null ? void 0 : P.button) ?? 48,
799
+ icon: ((g = (E = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : E.size) == null ? void 0 : g.icon) ?? 24
758
800
  }
759
801
  }, c = (() => {
760
- const U = e === "ltr" ? l.offset.right : l.offset.left;
761
- return typeof U != "number" ? 0 : U;
802
+ const X = e === "ltr" ? l.offset.right : l.offset.left;
803
+ return typeof X != "number" ? 0 : X;
762
804
  })(), p = {
763
805
  palette: (t == null ? void 0 : t.palette) ?? "neutral",
764
806
  primaryColor: (t == null ? void 0 : t.primaryColor) ?? "hsl(0 0% 9%)",
765
807
  widgetTrigger: l,
766
808
  widgetContentContainer: {
767
- borderRadius: o ? "0px" : ((_ = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : _.borderRadius) ?? "32px",
768
- zIndex: ((w = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : w.zIndex) ?? l.zIndex + 1,
769
- outline: ((y = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : y.outline) ?? "none",
809
+ borderRadius: o ? "0px" : ((I = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : I.borderRadius) ?? "32px",
810
+ zIndex: ((j = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : j.zIndex) ?? l.zIndex + 1,
811
+ outline: ((M = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : M.outline) ?? "none",
770
812
  // was: '1px solid'
771
- outlineColor: ((I = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : I.outlineColor) ?? "hsl(0 0% 50% / .5)",
772
- boxShadow: ((B = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : B.boxShadow) ?? "0 0px 100px 0px rgb(0 0 0 / 0.25)",
813
+ outlineColor: ((u = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : u.outlineColor) ?? "hsl(0 0% 50% / .5)",
814
+ boxShadow: ((S = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : S.boxShadow) ?? "0 0px 100px 0px rgb(0 0 0 / 0.25)",
773
815
  transitionProperty: ((ie = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : ie.transitionProperty) ?? "all",
774
816
  transitionTimingFunction: ((Re = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Re.transitionTimingFunction) ?? ce.transitionTimingFunction,
775
817
  transitionDuration: ((je = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : je.transitionDuration) ?? ce.transitionDuration,
776
818
  offset: {
777
- side: o ? 0 : l.offset.bottom + l.size.button + K.y * 2 + (((Pe = (Ee = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Ee.offset) == null ? void 0 : Pe.side) ?? 10),
819
+ side: o ? 0 : l.offset.bottom + l.size.button + K.y * 2 + (((Ee = (Pe = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Pe.offset) == null ? void 0 : Ee.side) ?? 10),
778
820
  align: o ? 0 : c + (((Ae = (Oe = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Oe.offset) == null ? void 0 : Ae.align) ?? 0)
779
821
  }
780
822
  },
781
823
  screens: {
782
824
  welcome: {
783
- width: i("w", ((Fe = (He = t == null ? void 0 : t.screens) == null ? void 0 : He.welcome) == null ? void 0 : Fe.width) ?? "400px"),
825
+ width: i("w", ((He = (Fe = t == null ? void 0 : t.screens) == null ? void 0 : Fe.welcome) == null ? void 0 : He.width) ?? "400px"),
784
826
  // By setting minHeight to 1px, a nice animation will play from 1px to the dynamic height of the content of the screen
785
827
  minHeight: i(
786
828
  "h",
@@ -788,8 +830,8 @@ function G() {
788
830
  )
789
831
  },
790
832
  sessions: {
791
- width: i("w", ((Ye = ($e = t == null ? void 0 : t.screens) == null ? void 0 : $e.sessions) == null ? void 0 : Ye.width) ?? "450px"),
792
- height: i("h", ((Ue = (Be = t == null ? void 0 : t.screens) == null ? void 0 : Be.sessions) == null ? void 0 : Ue.height) ?? "600px")
833
+ width: i("w", ((Be = ($e = t == null ? void 0 : t.screens) == null ? void 0 : $e.sessions) == null ? void 0 : Be.width) ?? "450px"),
834
+ height: i("h", ((Ue = (Ye = t == null ? void 0 : t.screens) == null ? void 0 : Ye.sessions) == null ? void 0 : Ue.height) ?? "600px")
793
835
  },
794
836
  chat: {
795
837
  width: i("w", ((qe = (Xe = t == null ? void 0 : t.screens) == null ? void 0 : Xe.chat) == null ? void 0 : qe.width) ?? "525px"),
@@ -808,7 +850,7 @@ function G() {
808
850
  }
809
851
  }
810
852
  }
811
- }, b = {
853
+ }, x = {
812
854
  // Subtract the offset.bottom twice so that it adds a bit of padding to the top
813
855
  // Subtract the distance between the trigger and the widget content container
814
856
  // Subtract the invisible padding of the trigger (for the wobble effect)
@@ -848,7 +890,7 @@ function G() {
848
890
  };
849
891
  return {
850
892
  theme: p,
851
- computed: b,
893
+ computed: x,
852
894
  cssVars: so({
853
895
  palette: p.palette,
854
896
  primary: p.primaryColor
@@ -859,7 +901,7 @@ function so({
859
901
  palette: e,
860
902
  primary: o
861
903
  }) {
862
- const t = Wt(e), n = ct(o).toHsl(), s = ct(o).isLight() ? t[950] : t[50];
904
+ const t = $t(e), n = dt(o).toHsl(), s = dt(o).isLight() ? t[950] : t[50];
863
905
  return {
864
906
  "--opencx-primary": `${n.h} ${n.s * 100}% ${n.l * 100}%`,
865
907
  "--opencx-primary-foreground": s,
@@ -878,7 +920,7 @@ function so({
878
920
  "--opencx-ring": "var(--opencx-foreground)"
879
921
  };
880
922
  }
881
- function Wt(e) {
923
+ function $t(e) {
882
924
  const o = {
883
925
  50: "0 0% 98%",
884
926
  100: "0 0% 96.1%",
@@ -938,11 +980,11 @@ function Wt(e) {
938
980
  case "slate":
939
981
  return s;
940
982
  default:
941
- return A(e, Wt.name), o;
983
+ return F(e, $t.name), o;
942
984
  }
943
985
  }
944
- function Lt() {
945
- const { contentIframeRef: e } = P(), { inline: o } = N();
986
+ function Bt() {
987
+ const { contentIframeRef: e } = O(), { inline: o } = C();
946
988
  return {
947
989
  setWidth: (t) => {
948
990
  var n;
@@ -964,12 +1006,12 @@ function Te({
964
1006
  width: e,
965
1007
  height: o
966
1008
  }) {
967
- const { isSmallScreen: t } = L(), { setWidth: n, setHeight: s } = Lt();
1009
+ const { isSmallScreen: t } = $(), { setWidth: n, setHeight: s } = Bt();
968
1010
  se(() => {
969
1011
  e && n(e), o && s(o);
970
1012
  }, [t, o, e, n, s]);
971
1013
  }
972
- const mt = cr;
1014
+ const ut = ir;
973
1015
  function ne({
974
1016
  name: e,
975
1017
  className: o
@@ -977,39 +1019,39 @@ function ne({
977
1019
  const t = (() => {
978
1020
  switch (e) {
979
1021
  case "Check":
980
- return kr;
1022
+ return br;
981
1023
  case "CheckCheck":
982
- return yr;
1024
+ return vr;
983
1025
  case "CircleCheck":
984
- return zt;
1026
+ return St;
985
1027
  case "CircleCheckBig":
986
- return br;
1028
+ return xr;
987
1029
  case "CircleX":
988
- return vr;
1030
+ return fr;
989
1031
  case "Expand":
990
- return xr;
1032
+ return wr;
991
1033
  case "Maximize":
992
- return fr;
1034
+ return gr;
993
1035
  case "Maximize2":
994
- return wr;
1036
+ return ur;
995
1037
  case "Minimize":
996
- return gr;
1038
+ return mr;
997
1039
  case "Minimize2":
998
- return ur;
1040
+ return hr;
999
1041
  case "Shrink":
1000
- return mr;
1042
+ return pr;
1001
1043
  case "SquareCheck":
1002
- return hr;
1044
+ return dr;
1003
1045
  case "SquareCheckBig":
1004
- return pr;
1046
+ return cr;
1005
1047
  case "SquareX":
1006
- return dr;
1048
+ return lr;
1007
1049
  case "X":
1008
1050
  return ke;
1009
1051
  case void 0:
1010
- return mt;
1052
+ return ut;
1011
1053
  default:
1012
- return A(e, ne.name), mt;
1054
+ return F(e, ne.name), ut;
1013
1055
  }
1014
1056
  })();
1015
1057
  return /* @__PURE__ */ r(t, { className: h("size-4", o) });
@@ -1027,9 +1069,9 @@ function io({ fallback: e }) {
1027
1069
  function Me() {
1028
1070
  const {
1029
1071
  widgetCtx: { org: e }
1030
- } = P(), {
1072
+ } = O(), {
1031
1073
  routerState: { screen: o }
1032
- } = H(), { textContent: t } = N();
1074
+ } = H(), { textContent: t } = C();
1033
1075
  return (() => {
1034
1076
  var s, a;
1035
1077
  switch (o) {
@@ -1040,7 +1082,7 @@ function Me() {
1040
1082
  case "welcome":
1041
1083
  return;
1042
1084
  default:
1043
- A(o, Me.name);
1085
+ F(o, Me.name);
1044
1086
  return;
1045
1087
  }
1046
1088
  })() ?? e.name ?? "Chat";
@@ -1048,38 +1090,38 @@ function Me() {
1048
1090
  function lo(e) {
1049
1091
  switch (e) {
1050
1092
  case "chat":
1051
- return g("chat/header");
1093
+ return w("chat/header");
1052
1094
  case "sessions":
1053
- return g("sessions/header");
1095
+ return w("sessions/header");
1054
1096
  case "welcome":
1055
1097
  return;
1056
1098
  default:
1057
- A(e, Me.name);
1099
+ F(e, Me.name);
1058
1100
  return;
1059
1101
  }
1060
1102
  }
1061
1103
  function co() {
1062
- const { router: e } = N(), {
1104
+ const { router: e } = C(), {
1063
1105
  routerState: { screen: o },
1064
1106
  toSessionsScreen: t
1065
1107
  } = H();
1066
1108
  return o !== "chat" || e != null && e.chatScreenOnly ? null : /* @__PURE__ */ r(
1067
- S,
1109
+ N,
1068
1110
  {
1069
1111
  variant: "ghost",
1070
1112
  size: "fit",
1071
1113
  className: "rounded-full",
1072
1114
  onClick: t,
1073
- children: /* @__PURE__ */ r(Cr, { className: "size-4 rtl:-scale-100" })
1115
+ children: /* @__PURE__ */ r(yr, { className: "size-4 rtl:-scale-100" })
1074
1116
  }
1075
1117
  );
1076
1118
  }
1077
1119
  function po({
1078
1120
  button: e
1079
1121
  }) {
1080
- const { setIsOpen: o } = V(), { isSmallScreen: t } = L();
1122
+ const { setIsOpen: o } = V(), { isSmallScreen: t } = $();
1081
1123
  return t && e.hideOnSmallScreen || !t && e.hideOnLargeScreen ? null : /* @__PURE__ */ r(
1082
- S,
1124
+ N,
1083
1125
  {
1084
1126
  variant: "ghost",
1085
1127
  size: "fit",
@@ -1097,7 +1139,7 @@ function ve({
1097
1139
  }) {
1098
1140
  const [o, t] = D(!1), {
1099
1141
  routerState: { screen: n }
1100
- } = H(), { isSmallScreen: s } = L(), { theme: a } = G(), { setWidth: i, setHeight: l } = Lt();
1142
+ } = H(), { isSmallScreen: s } = $(), { theme: a } = G(), { setWidth: i, setHeight: l } = Bt();
1101
1143
  if (n !== "chat" && n !== "sessions") return null;
1102
1144
  const c = (() => {
1103
1145
  switch (n) {
@@ -1106,7 +1148,7 @@ function ve({
1106
1148
  case "sessions":
1107
1149
  return a.screens.sessions.height;
1108
1150
  default:
1109
- return A(n, ve.name), a.screens.chat.height;
1151
+ return F(n, ve.name), a.screens.chat.height;
1110
1152
  }
1111
1153
  })(), p = (() => {
1112
1154
  switch (n) {
@@ -1115,21 +1157,21 @@ function ve({
1115
1157
  case "sessions":
1116
1158
  return a.screens.sessions.width;
1117
1159
  default:
1118
- return A(n, ve.name), a.screens.chat.width;
1160
+ return F(n, ve.name), a.screens.chat.width;
1119
1161
  }
1120
- })(), b = () => {
1121
- t((x) => {
1122
- const m = !x;
1162
+ })(), x = () => {
1163
+ t((y) => {
1164
+ const m = !y;
1123
1165
  return l(m ? "100vh" : c), i(m ? `max(40vw, ${p})` : p), m;
1124
1166
  });
1125
1167
  };
1126
1168
  return s && e.hideOnSmallScreen || !s && e.hideOnLargeScreen ? null : /* @__PURE__ */ r(
1127
- S,
1169
+ N,
1128
1170
  {
1129
1171
  variant: "ghost",
1130
1172
  size: "fit",
1131
1173
  className: "rounded-full",
1132
- onClick: b,
1174
+ onClick: x,
1133
1175
  children: /* @__PURE__ */ r(
1134
1176
  ne,
1135
1177
  {
@@ -1139,13 +1181,13 @@ function ve({
1139
1181
  }
1140
1182
  );
1141
1183
  }
1142
- function $t({
1184
+ function Yt({
1143
1185
  button: e
1144
1186
  }) {
1145
- var z, M;
1146
- const { close: o } = me(), { widgetCtx: t } = P(), { setIsOpen: n } = V(), { resolveSession: s, sessionState: a } = Y(), { isSmallScreen: i } = L(), l = !a.session, c = ((z = a.session) == null ? void 0 : z.isOpened) === !1, p = e.onResolved || "stay-in-chat", b = e.behaviorBeforeSessionCreation || "disabled", x = e.behaviorIfSessionIsResolved || "disabled", m = !!(a.isResolvingSession || l && b === "disabled" || c && x === "disabled"), C = async () => {
1147
- const { success: v, error: R } = await s();
1148
- if (o(), !v) return console.error(R);
1187
+ var z, _;
1188
+ const { close: o } = me(), { widgetCtx: t } = O(), { setIsOpen: n } = V(), { resolveSession: s, sessionState: a } = U(), { isSmallScreen: i } = $(), l = !a.session, c = ((z = a.session) == null ? void 0 : z.isOpened) === !1, p = e.onResolved || "stay-in-chat", x = e.behaviorBeforeSessionCreation || "disabled", y = e.behaviorIfSessionIsResolved || "disabled", m = !!(a.isResolvingSession || l && x === "disabled" || c && y === "disabled"), k = async () => {
1189
+ const { success: f, error: R } = await s();
1190
+ if (o(), !f) return console.error(R);
1149
1191
  switch (p) {
1150
1192
  case "stay-in-chat":
1151
1193
  return;
@@ -1159,25 +1201,25 @@ function $t({
1159
1201
  n(!1), t.resetChat();
1160
1202
  break;
1161
1203
  default:
1162
- A(p, $t.name);
1204
+ F(p, Yt.name);
1163
1205
  break;
1164
1206
  }
1165
- }, f = () => {
1207
+ }, v = () => {
1166
1208
  if (l)
1167
- switch (b) {
1209
+ switch (x) {
1168
1210
  case "disabled":
1169
1211
  return;
1170
1212
  case "close-widget":
1171
1213
  n(!1);
1172
1214
  break;
1173
1215
  default:
1174
- A(
1175
- b,
1176
- f.name
1216
+ F(
1217
+ x,
1218
+ v.name
1177
1219
  );
1178
1220
  }
1179
1221
  if (c)
1180
- switch (x) {
1222
+ switch (y) {
1181
1223
  case "disabled":
1182
1224
  return;
1183
1225
  case "close-widget":
@@ -1192,17 +1234,17 @@ function $t({
1192
1234
  }, 200);
1193
1235
  break;
1194
1236
  default:
1195
- A(
1196
- x,
1197
- f.name
1237
+ F(
1238
+ y,
1239
+ v.name
1198
1240
  );
1199
1241
  }
1200
1242
  };
1201
- return i && e.hideOnSmallScreen || !i && e.hideOnLargeScreen ? null : ((M = e.confirmation) == null ? void 0 : M.type) === "modal" && !c && !l ? /* @__PURE__ */ r(
1243
+ return i && e.hideOnSmallScreen || !i && e.hideOnLargeScreen ? null : ((_ = e.confirmation) == null ? void 0 : _.type) === "modal" && !c && !l ? /* @__PURE__ */ r(
1202
1244
  ze,
1203
1245
  {
1204
1246
  trigger: /* @__PURE__ */ r(
1205
- S,
1247
+ N,
1206
1248
  {
1207
1249
  variant: "ghost",
1208
1250
  size: "fit",
@@ -1212,11 +1254,11 @@ function $t({
1212
1254
  }
1213
1255
  ),
1214
1256
  children: /* @__PURE__ */ d(Ce, { children: [
1215
- /* @__PURE__ */ r(Mt, { children: /* @__PURE__ */ r(jt, { children: e.confirmation.title || "Close conversation" }) }),
1216
- /* @__PURE__ */ r(Dt, { children: /* @__PURE__ */ r(Et, { children: e.confirmation.description || "Are you sure you want to close this conversation?" }) }),
1217
- /* @__PURE__ */ d(Rt, { children: [
1257
+ /* @__PURE__ */ r(Rt, { children: /* @__PURE__ */ r(Et, { children: e.confirmation.title || "Close conversation" }) }),
1258
+ /* @__PURE__ */ r(jt, { children: /* @__PURE__ */ r(Ot, { children: e.confirmation.description || "Are you sure you want to close this conversation?" }) }),
1259
+ /* @__PURE__ */ d(Pt, { children: [
1218
1260
  /* @__PURE__ */ r(
1219
- S,
1261
+ N,
1220
1262
  {
1221
1263
  variant: "secondary",
1222
1264
  onClick: o,
@@ -1225,10 +1267,10 @@ function $t({
1225
1267
  }
1226
1268
  ),
1227
1269
  /* @__PURE__ */ r(
1228
- S,
1270
+ N,
1229
1271
  {
1230
1272
  variant: "destructive",
1231
- onClick: C,
1273
+ onClick: k,
1232
1274
  disabled: a.isResolvingSession,
1233
1275
  children: e.confirmation.confirmButtonText || "Yes"
1234
1276
  }
@@ -1237,12 +1279,12 @@ function $t({
1237
1279
  ] })
1238
1280
  }
1239
1281
  ) : /* @__PURE__ */ r(
1240
- S,
1282
+ N,
1241
1283
  {
1242
1284
  variant: "ghost",
1243
1285
  size: "fit",
1244
1286
  className: "rounded-full",
1245
- onClick: c || l ? f : C,
1287
+ onClick: c || l ? v : k,
1246
1288
  disabled: m,
1247
1289
  children: /* @__PURE__ */ r(ne, { name: e.icon })
1248
1290
  }
@@ -1255,9 +1297,9 @@ function be({ button: e }) {
1255
1297
  case "expand-shrink":
1256
1298
  return /* @__PURE__ */ r(ve, { button: e });
1257
1299
  case "resolve-session":
1258
- return /* @__PURE__ */ r($t, { button: e });
1300
+ return /* @__PURE__ */ r(Yt, { button: e });
1259
1301
  default:
1260
- return A(e, be.name), null;
1302
+ return F(e, be.name), null;
1261
1303
  }
1262
1304
  }
1263
1305
  const ho = {
@@ -1268,7 +1310,7 @@ const ho = {
1268
1310
  function mo() {
1269
1311
  const {
1270
1312
  routerState: { screen: e }
1271
- } = H(), { headerButtons: o } = N(), t = e === "chat" ? o == null ? void 0 : o.chatScreen : e === "sessions" ? o == null ? void 0 : o.sessionsScreen : [];
1313
+ } = H(), { headerButtons: o } = C(), t = e === "chat" ? o == null ? void 0 : o.chatScreen : e === "sessions" ? o == null ? void 0 : o.sessionsScreen : [];
1272
1314
  return !t || t.length === 0 ? /* @__PURE__ */ r(be, { button: ho }) : /* @__PURE__ */ r(Q, { children: t.map((n) => /* @__PURE__ */ r(
1273
1315
  be,
1274
1316
  {
@@ -1277,7 +1319,7 @@ function mo() {
1277
1319
  `${n.functionality}-${n.icon}`
1278
1320
  )) });
1279
1321
  }
1280
- function Yt() {
1322
+ function Ut() {
1281
1323
  const {
1282
1324
  routerState: { screen: e }
1283
1325
  } = H(), o = lo(e), t = Me();
@@ -1304,19 +1346,19 @@ function Yt() {
1304
1346
  /* @__PURE__ */ r(ao, {})
1305
1347
  ] });
1306
1348
  }
1307
- function Bt({ className: e }) {
1308
- return /* @__PURE__ */ r(zr, { className: h("size-4 animate-spin", e) });
1349
+ function Xt({ className: e }) {
1350
+ return /* @__PURE__ */ r(kr, { className: h("size-4 animate-spin", e) });
1309
1351
  }
1310
1352
  function uo() {
1311
1353
  const {
1312
1354
  messagesState: { isInitialFetchLoading: e }
1313
- } = O(), { isSmallScreen: o } = L(), { activeMode: t, Component: n } = bt();
1355
+ } = A(), { isSmallScreen: o } = $(), { activeMode: t, Component: n } = yt();
1314
1356
  return {
1315
1357
  isCanvasOpen: !e && !o && !!t && !!n
1316
1358
  };
1317
1359
  }
1318
1360
  function go() {
1319
- const e = te(), { activeMode: o, Component: t } = bt(), { sendMessage: n } = O(), { createStateCheckpoint: s } = Y(), [a, i] = D(!1), l = async (c) => {
1361
+ const e = te(), { activeMode: o, Component: t } = yt(), { sendMessage: n } = A(), { createStateCheckpoint: s } = U(), [a, i] = D(!1), l = async (c) => {
1320
1362
  try {
1321
1363
  i(!0), await n(c);
1322
1364
  } catch (p) {
@@ -1336,11 +1378,11 @@ function go() {
1336
1378
  }
1337
1379
  );
1338
1380
  }
1339
- const F = W.forwardRef(
1381
+ const W = L.forwardRef(
1340
1382
  (e, o) => {
1341
1383
  var t, n, s;
1342
1384
  return /* @__PURE__ */ r(
1343
- k,
1385
+ b,
1344
1386
  {
1345
1387
  ...e,
1346
1388
  ref: o,
@@ -1354,7 +1396,7 @@ const F = W.forwardRef(
1354
1396
  );
1355
1397
  }
1356
1398
  );
1357
- F.displayName = "MotionDiv__VerticalReveal";
1399
+ W.displayName = "MotionDiv__VerticalReveal";
1358
1400
  const wo = [
1359
1401
  {
1360
1402
  label: "Terrible",
@@ -1383,22 +1425,22 @@ const wo = [
1383
1425
  }
1384
1426
  ];
1385
1427
  function fo() {
1386
- const { isSmallScreen: e } = L(), {
1428
+ const { isSmallScreen: e } = $(), {
1387
1429
  submitCsat: o,
1388
1430
  isCsatRequested: t,
1389
1431
  isCsatSubmitted: n,
1390
1432
  submittedScore: s,
1391
1433
  submittedFeedback: a
1392
- } = yt(), [i, l] = D(null), [c, p] = D(null), b = (m) => {
1393
- l((C) => C === m ? null : m);
1394
- }, x = () => {
1434
+ } = kt(), [i, l] = D(null), [c, p] = D(null), x = (m) => {
1435
+ l((k) => k === m ? null : m);
1436
+ }, y = () => {
1395
1437
  i && o({
1396
1438
  score: i,
1397
1439
  feedback: c || void 0
1398
1440
  });
1399
1441
  };
1400
1442
  return !t && !n ? null : /* @__PURE__ */ d("div", { className: "w-1/2 min-w-80 max-w-96 mx-auto overflow-hidden", children: [
1401
- /* @__PURE__ */ r(T, { mode: "wait", children: t && !i ? /* @__PURE__ */ r(F, { 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(F, { children: /* @__PURE__ */ r("p", { className: "text-sm text-muted-foreground text-center pt-2", children: "You rated the conversation as" }) }, "csat-submitted-title") : null }),
1443
+ /* @__PURE__ */ r(T, { mode: "wait", children: t && !i ? /* @__PURE__ */ r(W, { 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(W, { children: /* @__PURE__ */ r("p", { className: "text-sm text-muted-foreground text-center pt-2", children: "You rated the conversation as" }) }, "csat-submitted-title") : null }),
1402
1444
  /* @__PURE__ */ r(
1403
1445
  "div",
1404
1446
  {
@@ -1408,7 +1450,7 @@ function fo() {
1408
1450
  n && "gap-0 justify-center"
1409
1451
  ),
1410
1452
  children: wo.map((m) => /* @__PURE__ */ r(
1411
- S,
1453
+ N,
1412
1454
  {
1413
1455
  variant: m.value === i ? "secondary" : "ghost",
1414
1456
  size: "selfless",
@@ -1422,14 +1464,14 @@ function fo() {
1422
1464
  n && m.value !== s && "opacity-0 size-0",
1423
1465
  n && m.value === s && "opacity-100 size-fit text-4xl"
1424
1466
  ),
1425
- onClick: t ? () => b(m.value) : void 0,
1467
+ onClick: t ? () => x(m.value) : void 0,
1426
1468
  children: m.emoji
1427
1469
  },
1428
1470
  m.value
1429
1471
  ))
1430
1472
  }
1431
1473
  ),
1432
- /* @__PURE__ */ r(T, { mode: "wait", children: (i || s) && /* @__PURE__ */ r(F, { children: /* @__PURE__ */ d("div", { className: "pb-2 px-2 flex items-end", children: [
1474
+ /* @__PURE__ */ r(T, { mode: "wait", children: (i || s) && /* @__PURE__ */ r(W, { children: /* @__PURE__ */ d("div", { className: "pb-2 px-2 flex items-end", children: [
1433
1475
  /* @__PURE__ */ r(
1434
1476
  "textarea",
1435
1477
  {
@@ -1451,17 +1493,17 @@ function fo() {
1451
1493
  }
1452
1494
  ),
1453
1495
  /* @__PURE__ */ r(
1454
- S,
1496
+ N,
1455
1497
  {
1456
1498
  size: "fit",
1457
- onClick: x,
1499
+ onClick: y,
1458
1500
  disabled: !i,
1459
1501
  className: h(
1460
1502
  "transition-all overflow-hidden",
1461
1503
  "rounded-full size-8 flex items-center justify-center p-0",
1462
1504
  n && "opacity-0 size-0"
1463
1505
  ),
1464
- children: /* @__PURE__ */ r(Nt, { className: "size-4" })
1506
+ children: /* @__PURE__ */ r(_t, { className: "size-4" })
1465
1507
  }
1466
1508
  )
1467
1509
  ] }) }, "feedback-box") }),
@@ -1469,11 +1511,11 @@ function fo() {
1469
1511
  ] });
1470
1512
  }
1471
1513
  function Z() {
1472
- const { dir: e } = ye(), o = N();
1473
- return vt(() => {
1474
- const t = Hr(o.language) ? o.language : "en";
1514
+ const { dir: e } = ye(), o = C();
1515
+ return bt(() => {
1516
+ const t = Fr(o.language) ? o.language : "en";
1475
1517
  return {
1476
- t: (n) => Fr(n, t, o.translationOverrides),
1518
+ t: (n) => Hr(n, t, o.translationOverrides),
1477
1519
  language: t,
1478
1520
  dir: t === "ar" ? "rtl" : "ltr",
1479
1521
  hostDocumentDir: e
@@ -1485,14 +1527,14 @@ function De({
1485
1527
  className: o,
1486
1528
  ...t
1487
1529
  }) {
1488
- const { sendMessage: n } = O(), s = () => {
1530
+ const { sendMessage: n } = A(), s = () => {
1489
1531
  const a = e.trim();
1490
1532
  a && n({ content: a });
1491
1533
  };
1492
1534
  return /* @__PURE__ */ r(
1493
- S,
1535
+ N,
1494
1536
  {
1495
- ...g("chat/suggested_reply_btn"),
1537
+ ...w("chat/suggested_reply_btn"),
1496
1538
  size: "sm",
1497
1539
  className: h("rounded-xl w-fit", o),
1498
1540
  ...t,
@@ -1506,7 +1548,7 @@ function xo() {
1506
1548
  return /* @__PURE__ */ r(
1507
1549
  "div",
1508
1550
  {
1509
- ...g("chat/might_solve_user_issue_suggested_replies_container"),
1551
+ ...w("chat/might_solve_user_issue_suggested_replies_container"),
1510
1552
  className: "flex items-center gap-2 p-2 pb-0 flex-wrap",
1511
1553
  children: o.map((t) => /* @__PURE__ */ r(
1512
1554
  De,
@@ -1519,9 +1561,9 @@ function xo() {
1519
1561
  }
1520
1562
  );
1521
1563
  }
1522
- function ut() {
1523
- const { sessionState: e } = Y(), { chatFooterItems: o } = N(), t = !!e.session && !e.session.isOpened, n = !t;
1524
- return /* @__PURE__ */ r(T, { mode: "wait", children: o == null ? void 0 : o.map((s, a) => s.showWhenSessionIsOpen === !1 && n || s.showWhenSessionIsResolved === !1 && t ? null : /* @__PURE__ */ r(F, { children: /* @__PURE__ */ r("div", { className: "pb-2 text-center text-xs", children: /* @__PURE__ */ r(Ne, { children: s.message }) }) }, `${s.message}-${a}`)) });
1564
+ function gt() {
1565
+ const { sessionState: e } = U(), { chatFooterItems: o } = C(), t = !!e.session && !e.session.isOpened, n = !t;
1566
+ return /* @__PURE__ */ r(T, { mode: "wait", children: o == null ? void 0 : o.map((s, a) => s.showWhenSessionIsOpen === !1 && n || s.showWhenSessionIsResolved === !1 && t ? null : /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r("div", { className: "pb-2 text-center text-xs", children: /* @__PURE__ */ r(Ne, { children: s.message }) }) }, `${s.message}-${a}`)) });
1525
1567
  }
1526
1568
  function vo({
1527
1569
  file: { status: e, file: o, error: t },
@@ -1538,9 +1580,9 @@ function vo({
1538
1580
  const i = () => {
1539
1581
  switch (e) {
1540
1582
  case "uploading":
1541
- return /* @__PURE__ */ r(Tr, { className: "size-4 animate-spin" });
1583
+ return /* @__PURE__ */ r(Nr, { className: "size-4 animate-spin" });
1542
1584
  case "error":
1543
- return /* @__PURE__ */ r(Ir, { className: "size-4 text-destructive" });
1585
+ return /* @__PURE__ */ r(zr, { className: "size-4 text-destructive" });
1544
1586
  default:
1545
1587
  return null;
1546
1588
  }
@@ -1553,7 +1595,7 @@ function vo({
1553
1595
  className: "object-cover bg-secondary size-full",
1554
1596
  alt: o.name
1555
1597
  }
1556
- ) : c === "audio" ? /* @__PURE__ */ r(Mr, {}) : c === "video" ? /* @__PURE__ */ r(Dr, {}) : /* @__PURE__ */ r(Rr, {});
1598
+ ) : c === "audio" ? /* @__PURE__ */ r(Sr, { className: "size-4 text-muted-foreground" }) : c === "video" ? /* @__PURE__ */ r(_r, { className: "size-4 text-muted-foreground" }) : o.type === "application/pdf" ? /* @__PURE__ */ r(Nt, { className: "size-4 text-muted-foreground" }) : /* @__PURE__ */ r(Ir, { className: "size-4 text-muted-foreground" });
1557
1599
  };
1558
1600
  return /* @__PURE__ */ r(
1559
1601
  oe,
@@ -1595,46 +1637,46 @@ function vo({
1595
1637
  );
1596
1638
  }
1597
1639
  function bo() {
1598
- var _;
1599
- const { isSmallScreen: e } = L(), o = $(null), { sendMessage: t } = O(), { sessionState: n } = Y(), { t: s } = Z(), [a, i] = D(""), {
1600
- allFiles: l,
1601
- emptyTheFiles: c,
1602
- handleCancelUpload: p,
1603
- appendFiles: b,
1604
- isUploading: x,
1605
- successFiles: m
1606
- } = Qt(), C = !!((_ = n.session) != null && _.isHandedOff), { isAwaitingBotReply: f } = kt(), z = (w) => {
1607
- b(w);
1608
- }, M = !a.trim() && m.length === 0, v = async () => {
1609
- if (f || M) return;
1610
- x && console.info("please wait for the file(s) to upload");
1611
- const w = a.trim();
1640
+ var M;
1641
+ const { isSmallScreen: e } = $(), o = B(null), { sendMessage: t } = A(), { sessionState: n } = U(), { disableSendingWhenAwaitingAIReply: s } = C(), { t: a } = Z(), [i, l] = D(""), {
1642
+ allFiles: c,
1643
+ emptyTheFiles: p,
1644
+ handleCancelUpload: x,
1645
+ appendFiles: y,
1646
+ isUploading: m,
1647
+ successFiles: k
1648
+ } = er(), v = !!((M = n.session) != null && M.isHandedOff), { isAwaitingBotReply: z } = Ct(), _ = s !== !1 && z, f = (u) => {
1649
+ y(u);
1650
+ }, R = !i.trim() && k.length === 0, P = async () => {
1651
+ if (_ || R) return;
1652
+ m && console.info("please wait for the file(s) to upload");
1653
+ const u = i.trim();
1612
1654
  t({
1613
- content: w,
1614
- attachments: m.flatMap(
1615
- (y) => y.fileUrl ? [
1655
+ content: u,
1656
+ attachments: k.flatMap(
1657
+ (S) => S.fileUrl ? [
1616
1658
  {
1617
- url: y.fileUrl,
1618
- type: y.file.type,
1619
- name: y.file.name,
1620
- id: y.id,
1621
- size: y.file.size
1659
+ url: S.fileUrl,
1660
+ type: S.file.type,
1661
+ name: S.file.name,
1662
+ id: S.id,
1663
+ size: S.file.size
1622
1664
  }
1623
1665
  ] : []
1624
1666
  )
1625
- }), i(""), c();
1667
+ }), l(""), p();
1626
1668
  }, {
1627
- getRootProps: R,
1628
- getInputProps: E,
1629
- open: j
1669
+ getRootProps: E,
1670
+ getInputProps: g,
1671
+ open: I
1630
1672
  } = Wr({
1631
- onDrop: z,
1673
+ onDrop: f,
1632
1674
  noClick: !0,
1633
1675
  onDropRejected() {
1634
1676
  console.error("unsupported file type, or the file is too large");
1635
1677
  },
1636
1678
  maxSize: 5 * 1024 * 1024,
1637
- accept: C ? {
1679
+ accept: v ? {
1638
1680
  "text/*": [".txt"],
1639
1681
  "image/*": [".png", ".jpg", ".jpeg", ".gif"],
1640
1682
  "application/pdf": [".pdf"]
@@ -1642,24 +1684,25 @@ function bo() {
1642
1684
  "image/png": [".png"],
1643
1685
  "image/jpeg": [".jpg", ".jpeg"],
1644
1686
  "image/gif": [".gif"],
1645
- "image/webp": [".webp"]
1687
+ "image/webp": [".webp"],
1688
+ "application/pdf": [".pdf"]
1646
1689
  }
1647
- }), u = (w) => {
1648
- const y = w.clipboardData;
1649
- y && y.files.length > 0 && z(Array.from(y.files));
1690
+ }), j = (u) => {
1691
+ const S = u.clipboardData;
1692
+ S && S.files.length > 0 && f(Array.from(S.files));
1650
1693
  };
1651
1694
  return /* @__PURE__ */ d(
1652
1695
  "div",
1653
1696
  {
1654
- ...g("chat/input_box/root"),
1697
+ ...w("chat/input_box/root"),
1655
1698
  className: "p-2 relative space-y-1",
1656
- ...R(),
1699
+ ...E(),
1657
1700
  children: [
1658
- /* @__PURE__ */ r("input", { ...E() }),
1701
+ /* @__PURE__ */ r("input", { ...g() }),
1659
1702
  /* @__PURE__ */ d(
1660
1703
  "div",
1661
1704
  {
1662
- ...g("chat/input_box/inner_root"),
1705
+ ...w("chat/input_box/inner_root"),
1663
1706
  className: h(
1664
1707
  "transition-all",
1665
1708
  "bg-white",
@@ -1671,48 +1714,48 @@ function bo() {
1671
1714
  /* @__PURE__ */ d(
1672
1715
  "div",
1673
1716
  {
1674
- ...g("chat/input_box/textarea_and_attachments_container"),
1717
+ ...w("chat/input_box/textarea_and_attachments_container"),
1675
1718
  className: "flex flex-col gap-2",
1676
1719
  children: [
1677
- l.length > 0 && /* @__PURE__ */ r(
1720
+ c.length > 0 && /* @__PURE__ */ r(
1678
1721
  "div",
1679
1722
  {
1680
- ...g("chat/input_box/attachments_container"),
1723
+ ...w("chat/input_box/attachments_container"),
1681
1724
  className: "flex items-center gap-1",
1682
- children: /* @__PURE__ */ r(T, { mode: "popLayout", children: l.map((w) => /* @__PURE__ */ r(k, { snapExit: !0, children: /* @__PURE__ */ r(
1725
+ children: /* @__PURE__ */ r(T, { mode: "popLayout", children: c.map((u) => /* @__PURE__ */ r(b, { snapExit: !0, children: /* @__PURE__ */ r(
1683
1726
  vo,
1684
1727
  {
1685
- onCancel: () => p(w.id),
1686
- file: w
1728
+ onCancel: () => x(u.id),
1729
+ file: u
1687
1730
  }
1688
- ) }, w.id)) })
1731
+ ) }, u.id)) })
1689
1732
  }
1690
1733
  ),
1691
1734
  /* @__PURE__ */ r(
1692
1735
  "textarea",
1693
1736
  {
1694
- ...g("chat/input_box/textarea"),
1695
- onPaste: u,
1737
+ ...w("chat/input_box/textarea"),
1738
+ onPaste: j,
1696
1739
  ref: o,
1697
1740
  id: "chat-input",
1698
- value: a,
1741
+ value: i,
1699
1742
  rows: 3,
1700
1743
  className: h(
1701
1744
  /** Match the border radius of the container */
1702
1745
  // INPUT_CONTAINER_B_RADIUS,
1703
1746
  "max-h-16 [field-sizing:content]",
1704
1747
  "w-full resize-none px-2",
1705
- l.length === 0 && "pt-1",
1748
+ c.length === 0 && "pt-1",
1706
1749
  "bg-transparent outline-none",
1707
1750
  "placeholder:text-muted-foreground",
1708
1751
  // 16px on mobiles prevents auto-zoom on the input when focused
1709
1752
  e ? "text-[16px]" : "text-sm"
1710
1753
  ),
1711
- onChange: (w) => i(w.target.value),
1712
- onKeyDown: async (w) => {
1713
- w.key === "Enter" && !w.shiftKey && (w.preventDefault(), v());
1754
+ onChange: (u) => l(u.target.value),
1755
+ onKeyDown: async (u) => {
1756
+ u.key === "Enter" && !u.shiftKey && (u.preventDefault(), P());
1714
1757
  },
1715
- placeholder: s("write_a_message_placeholder")
1758
+ placeholder: a("write_a_message_placeholder")
1716
1759
  }
1717
1760
  )
1718
1761
  ]
@@ -1724,29 +1767,29 @@ function bo() {
1724
1767
  {
1725
1768
  side: "top",
1726
1769
  align: "start",
1727
- content: "attach files, (maximum size 5mb)",
1770
+ content: "attach images or PDF (maximum size 5mb)",
1728
1771
  children: /* @__PURE__ */ r(
1729
- S,
1772
+ N,
1730
1773
  {
1731
- onClick: j,
1774
+ onClick: I,
1732
1775
  size: "fit",
1733
1776
  variant: "ghost",
1734
1777
  className: h(
1735
1778
  "rounded-full size-8 flex items-center justify-center p-0 overflow-hidden"
1736
1779
  ),
1737
- children: /* @__PURE__ */ r(T, { mode: "wait", children: C && !f ? /* @__PURE__ */ r(k, { children: /* @__PURE__ */ r(Nr, { className: "size-4" }) }, "paper-clip") : /* @__PURE__ */ r(k, { children: /* @__PURE__ */ r(Sr, { className: "size-4" }) }, "image-icon") })
1780
+ children: /* @__PURE__ */ r(T, { mode: "wait", children: _ ? /* @__PURE__ */ r(b, { children: /* @__PURE__ */ r(ct, { className: "size-4 opacity-50" }) }, "paper-clip-disabled") : /* @__PURE__ */ r(b, { children: /* @__PURE__ */ r(ct, { className: "size-4" }) }, "paper-clip") })
1738
1781
  }
1739
1782
  )
1740
1783
  }
1741
1784
  ),
1742
1785
  /* @__PURE__ */ r(oe, { content: "send message", side: "top", align: "end", children: /* @__PURE__ */ r(
1743
- S,
1786
+ N,
1744
1787
  {
1745
1788
  size: "fit",
1746
- onClick: v,
1747
- disabled: f || x || M,
1789
+ onClick: P,
1790
+ disabled: _ || m || R,
1748
1791
  className: "rounded-full size-8 flex items-center justify-center p-0",
1749
- children: /* @__PURE__ */ r(T, { mode: "wait", children: f || x ? /* @__PURE__ */ r(k, { snapExit: !0, children: /* @__PURE__ */ r(_r, { className: "size-4 animate-spin animate-iteration-infinite" }) }, "loading") : /* @__PURE__ */ r(k, { snapExit: !0, children: /* @__PURE__ */ r(Nt, { className: "size-4" }) }, "send") })
1792
+ children: /* @__PURE__ */ r(T, { mode: "wait", children: _ || m ? /* @__PURE__ */ r(b, { snapExit: !0, children: /* @__PURE__ */ r(Cr, { className: "size-4 animate-spin animate-iteration-infinite" }) }, "loading") : /* @__PURE__ */ r(b, { snapExit: !0, children: /* @__PURE__ */ r(_t, { className: "size-4" }) }, "send") })
1750
1793
  }
1751
1794
  ) })
1752
1795
  ] })
@@ -1757,30 +1800,30 @@ function bo() {
1757
1800
  }
1758
1801
  );
1759
1802
  }
1760
- function gt() {
1761
- const { widgetCtx: e } = P(), { router: o } = N(), { canCreateNewSession: t } = Y(), { toSessionsScreen: n } = H(), { t: s } = Z();
1762
- return /* @__PURE__ */ r(Q, { children: t || o != null && o.chatScreenOnly ? /* @__PURE__ */ r(S, { onClick: e.resetChat, className: "rounded-2xl w-full", children: s("new_conversation") }) : /* @__PURE__ */ r(S, { onClick: n, className: "rounded-2xl w-full", children: s("back_to_conversations") }) });
1803
+ function wt() {
1804
+ const { widgetCtx: e } = O(), { router: o } = C(), { canCreateNewSession: t } = U(), { toSessionsScreen: n } = H(), { t: s } = Z();
1805
+ return /* @__PURE__ */ r(Q, { children: t || o != null && o.chatScreenOnly ? /* @__PURE__ */ r(N, { onClick: e.resetChat, className: "rounded-2xl w-full", children: s("new_conversation") }) : /* @__PURE__ */ r(N, { onClick: n, className: "rounded-2xl w-full", children: s("back_to_conversations") }) });
1763
1806
  }
1764
1807
  function yo() {
1765
- const { t: e } = Z(), { isCsatRequested: o, isCsatSubmitted: t } = yt();
1766
- return /* @__PURE__ */ r("div", { className: "p-2", children: /* @__PURE__ */ r("div", { className: "p-2 bg-muted rounded-3xl", children: /* @__PURE__ */ r(T, { mode: "wait", children: o || t ? /* @__PURE__ */ d(F, { children: [
1808
+ const { t: e } = Z(), { isCsatRequested: o, isCsatSubmitted: t } = kt();
1809
+ return /* @__PURE__ */ r("div", { className: "p-2", children: /* @__PURE__ */ r("div", { className: "p-2 bg-muted rounded-3xl", children: /* @__PURE__ */ r(T, { mode: "wait", children: o || t ? /* @__PURE__ */ d(W, { children: [
1767
1810
  /* @__PURE__ */ r(fo, {}),
1768
- /* @__PURE__ */ r(T, { mode: "wait", children: t && /* @__PURE__ */ r(F, { children: /* @__PURE__ */ r(gt, {}) }, "new-conv-or-back-to-convs-button") })
1769
- ] }, "csat") : /* @__PURE__ */ d(F, { children: [
1811
+ /* @__PURE__ */ r(T, { mode: "wait", children: t && /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r(wt, {}) }, "new-conv-or-back-to-convs-button") })
1812
+ ] }, "csat") : /* @__PURE__ */ d(W, { children: [
1770
1813
  /* @__PURE__ */ d("div", { className: "ps-2 flex items-center gap-1 pb-2", children: [
1771
- /* @__PURE__ */ r(zt, { className: "size-4 text-emerald-600" }),
1814
+ /* @__PURE__ */ r(St, { className: "size-4 text-emerald-600" }),
1772
1815
  /* @__PURE__ */ r("h2", { className: "text-sm font-medium", children: e("your_issue_has_been_resolved") })
1773
1816
  ] }),
1774
- /* @__PURE__ */ r(gt, {})
1817
+ /* @__PURE__ */ r(wt, {})
1775
1818
  ] }, "session-closed") }) }) });
1776
1819
  }
1777
1820
  function ko() {
1778
1821
  var i;
1779
- const { initialQuestions: e, initialQuestionsPosition: o, thisWasHelpfulOrNot: t } = N(), { sessionState: n } = Y(), { messagesState: s } = O(), a = s.messages.length === 0;
1780
- return /* @__PURE__ */ r("footer", { children: /* @__PURE__ */ r(T, { mode: "wait", children: n.session && !((i = n.session) != null && i.isOpened) ? /* @__PURE__ */ d(F, { children: [
1822
+ const { initialQuestions: e, initialQuestionsPosition: o, thisWasHelpfulOrNot: t } = C(), { sessionState: n } = U(), { messagesState: s } = A(), a = s.messages.length === 0;
1823
+ return /* @__PURE__ */ r("footer", { children: /* @__PURE__ */ r(T, { mode: "wait", children: n.session && !((i = n.session) != null && i.isOpened) ? /* @__PURE__ */ d(W, { children: [
1781
1824
  /* @__PURE__ */ r(yo, {}),
1782
- /* @__PURE__ */ r(ut, {})
1783
- ] }, "session-closed") : /* @__PURE__ */ d(F, { children: [
1825
+ /* @__PURE__ */ r(gt, {})
1826
+ ] }, "session-closed") : /* @__PURE__ */ d(W, { children: [
1784
1827
  s.lastAIResMightSolveUserIssue && (t == null ? void 0 : t.enabled) !== !1 && /* @__PURE__ */ r(xo, {}),
1785
1828
  a && e && o !== "below-initial-messages" && /* @__PURE__ */ r("div", { className: "flex items-center flex-row justify-end gap-2 flex-wrap px-2", children: e == null ? void 0 : e.map((l, c) => /* @__PURE__ */ r(
1786
1829
  De,
@@ -1790,7 +1833,7 @@ function ko() {
1790
1833
  `${l}-${c}`
1791
1834
  )) }),
1792
1835
  /* @__PURE__ */ r(bo, {}),
1793
- /* @__PURE__ */ r(ut, {})
1836
+ /* @__PURE__ */ r(gt, {})
1794
1837
  ] }, "chat-input") }) });
1795
1838
  }
1796
1839
  function Co({
@@ -1799,7 +1842,7 @@ function Co({
1799
1842
  isAloneInGroup: t,
1800
1843
  ...n
1801
1844
  }) {
1802
- const { componentStore: s } = P();
1845
+ const { componentStore: s } = O();
1803
1846
  if (n.type !== "AGENT" && n.type !== "AI") return null;
1804
1847
  if (n.data.action) {
1805
1848
  const i = s.getComponent(n.data.action.name);
@@ -1835,13 +1878,13 @@ function Co({
1835
1878
  }
1836
1879
  );
1837
1880
  }
1838
- function Ut({
1881
+ function qt({
1839
1882
  messages: e,
1840
1883
  className: o,
1841
1884
  containerClassName: t
1842
1885
  }) {
1843
1886
  var i, l;
1844
- const { timestamps: n } = N();
1887
+ const { timestamps: n } = C();
1845
1888
  if (!((i = n == null ? void 0 : n.perMessageGroup) != null && i.enabled))
1846
1889
  return null;
1847
1890
  const s = (l = e[e.length - 1]) == null ? void 0 : l.timestamp;
@@ -1867,13 +1910,13 @@ function pe({
1867
1910
  return /* @__PURE__ */ d(
1868
1911
  "div",
1869
1912
  {
1870
- ...g("chat/agent_msg_group/root"),
1913
+ ...w("chat/agent_msg_group/root"),
1871
1914
  className: h("flex items-end gap-2"),
1872
1915
  children: [
1873
1916
  /* @__PURE__ */ r(oe, { content: o == null ? void 0 : o.name, side: "right", align: "end", children: /* @__PURE__ */ r(
1874
1917
  xe,
1875
1918
  {
1876
- ...g("chat/agent_msg_group/root/avatar"),
1919
+ ...w("chat/agent_msg_group/root/avatar"),
1877
1920
  agent: o,
1878
1921
  className: "hidden"
1879
1922
  }
@@ -1882,20 +1925,20 @@ function pe({
1882
1925
  /* @__PURE__ */ d(
1883
1926
  "div",
1884
1927
  {
1885
- ...g("chat/agent_msg_group/avatar_and_msgs/root"),
1928
+ ...w("chat/agent_msg_group/avatar_and_msgs/root"),
1886
1929
  className: h("flex items-end gap-2"),
1887
1930
  children: [
1888
1931
  /* @__PURE__ */ r(oe, { content: o == null ? void 0 : o.name, side: "right", align: "end", children: /* @__PURE__ */ r(
1889
1932
  xe,
1890
1933
  {
1891
- ...g("chat/agent_msg_group/avatar_and_msgs/avatar"),
1934
+ ...w("chat/agent_msg_group/avatar_and_msgs/avatar"),
1892
1935
  agent: o
1893
1936
  }
1894
1937
  ) }),
1895
1938
  /* @__PURE__ */ d(
1896
1939
  "div",
1897
1940
  {
1898
- ...g("chat/agent_msg_group/avatar_and_msgs/msgs"),
1941
+ ...w("chat/agent_msg_group/avatar_and_msgs/msgs"),
1899
1942
  className: h("flex-1 flex flex-col gap-1"),
1900
1943
  children: [
1901
1944
  e.map((n, s, a) => /* @__PURE__ */ r(
@@ -1908,7 +1951,7 @@ function pe({
1908
1951
  },
1909
1952
  n.id
1910
1953
  )),
1911
- /* @__PURE__ */ r(Ut, { messages: e })
1954
+ /* @__PURE__ */ r(qt, { messages: e })
1912
1955
  ]
1913
1956
  }
1914
1957
  )
@@ -1918,7 +1961,7 @@ function pe({
1918
1961
  t && t.length > 0 && /* @__PURE__ */ r(
1919
1962
  "div",
1920
1963
  {
1921
- ...g("chat/agent_msg_group/suggestions"),
1964
+ ...w("chat/agent_msg_group/suggestions"),
1922
1965
  className: h("flex flex-col gap-1 ps-8"),
1923
1966
  children: t == null ? void 0 : t.map((n, s) => /* @__PURE__ */ r(
1924
1967
  De,
@@ -1951,14 +1994,14 @@ function No({
1951
1994
  return /* @__PURE__ */ d(
1952
1995
  "div",
1953
1996
  {
1954
- ...g("chat/user_msg/root"),
1997
+ ...w("chat/user_msg/root"),
1955
1998
  className: "w-5/6 flex flex-col items-end gap-1",
1956
1999
  children: [
1957
- 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(Ot, { attachment: a }, a.id)) }),
2000
+ 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(Ft, { attachment: a }, a.id)) }),
1958
2001
  e.content.length > 0 && /* @__PURE__ */ r(
1959
2002
  "div",
1960
2003
  {
1961
- ...g("chat/user_msg/msg"),
2004
+ ...w("chat/user_msg/msg"),
1962
2005
  "data-first": o,
1963
2006
  "data-last": t,
1964
2007
  "data-alone": n,
@@ -1987,7 +2030,7 @@ function So({
1987
2030
  return /* @__PURE__ */ d(
1988
2031
  "div",
1989
2032
  {
1990
- ...g("chat/user_msg_group/root"),
2033
+ ...w("chat/user_msg_group/root"),
1991
2034
  className: h("group", "flex flex-col gap-1 justify-end items-end"),
1992
2035
  children: [
1993
2036
  e.map((o, t, n) => /* @__PURE__ */ r(
@@ -2000,7 +2043,7 @@ function So({
2000
2043
  },
2001
2044
  o.id
2002
2045
  )),
2003
- /* @__PURE__ */ r(Ut, { messages: e, containerClassName: "ms-auto" })
2046
+ /* @__PURE__ */ r(qt, { messages: e, containerClassName: "ms-auto" })
2004
2047
  ]
2005
2048
  }
2006
2049
  );
@@ -2030,12 +2073,12 @@ function Mo(e) {
2030
2073
  function Do() {
2031
2074
  const {
2032
2075
  messagesState: { messages: e }
2033
- } = O(), {
2076
+ } = A(), {
2034
2077
  advancedInitialMessages: o = [],
2035
2078
  initialQuestionsPosition: t,
2036
2079
  initialQuestions: n,
2037
2080
  bot: s
2038
- } = N();
2081
+ } = C();
2039
2082
  return /* @__PURE__ */ r(Q, { children: e.length === 0 && o.length > 0 && /* @__PURE__ */ r(
2040
2083
  pe,
2041
2084
  {
@@ -2056,7 +2099,7 @@ function Do() {
2056
2099
  function Ro() {
2057
2100
  const {
2058
2101
  messagesState: { messages: e }
2059
- } = O(), { chatBannerItems: o } = N();
2102
+ } = A(), { chatBannerItems: o } = C();
2060
2103
  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(
2061
2104
  ({ message: t, persistent: n }, s) => e.length > 0 && !n ? null : /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(Ne, { children: t }) }, `${t}-${s}`)
2062
2105
  ) });
@@ -2064,7 +2107,7 @@ function Ro() {
2064
2107
  function jo() {
2065
2108
  const {
2066
2109
  messagesState: { messages: e }
2067
- } = O(), o = N(), {
2110
+ } = A(), o = C(), {
2068
2111
  advancedInitialMessages: t = [],
2069
2112
  initialQuestions: n,
2070
2113
  initialQuestionsPosition: s
@@ -2089,20 +2132,20 @@ function jo() {
2089
2132
  }
2090
2133
  ) });
2091
2134
  }
2092
- function Eo() {
2135
+ function Po() {
2093
2136
  var t;
2094
2137
  const e = te(), o = (t = e.config.customComponents) == null ? void 0 : t.chatBottomComponents;
2095
2138
  return o ? /* @__PURE__ */ r("div", { children: o.map(({ key: n, component: s }) => /* @__PURE__ */ r(s, { ...e }, n)) }) : null;
2096
2139
  }
2097
- function Po() {
2140
+ function Eo() {
2098
2141
  const {
2099
2142
  messagesState: { messages: e }
2100
- } = O(), { isAwaitingBotReply: o } = kt(), { componentStore: t } = P(), { bot: n, humanAgent: s } = N(), a = vt(
2143
+ } = A(), { isAwaitingBotReply: o } = Ct(), { componentStore: t } = O(), { bot: n, humanAgent: s } = C(), a = bt(
2101
2144
  () => _o(e),
2102
2145
  [e]
2103
2146
  ), i = t.getComponent(
2104
2147
  "loading"
2105
- ), l = $(null);
2148
+ ), l = B(null);
2106
2149
  function c() {
2107
2150
  setTimeout(() => {
2108
2151
  const p = l.current;
@@ -2114,22 +2157,22 @@ function Po() {
2114
2157
  }, [e]), /* @__PURE__ */ d(
2115
2158
  "div",
2116
2159
  {
2117
- ...g("chat/msgs/root"),
2160
+ ...w("chat/msgs/root"),
2118
2161
  ref: l,
2119
2162
  className: "max-h-full scroll-smooth relative flex-1 py-2 px-4 flex flex-col gap-2 overflow-auto",
2120
2163
  children: [
2121
2164
  /* @__PURE__ */ r(Ro, {}),
2122
2165
  /* @__PURE__ */ r(Do, {}),
2123
2166
  /* @__PURE__ */ r(jo, {}),
2124
- a.map((p, b) => {
2125
- var C, f, z, M;
2126
- const x = (C = p == null ? void 0 : p[0]) == null ? void 0 : C.type, m = (f = p[0]) == null ? void 0 : f.id;
2127
- if (!x || !m) return null;
2167
+ a.map((p, x) => {
2168
+ var k, v, z, _;
2169
+ const y = (k = p == null ? void 0 : p[0]) == null ? void 0 : k.type, m = (v = p[0]) == null ? void 0 : v.id;
2170
+ if (!y || !m) return null;
2128
2171
  if (Io(p))
2129
2172
  return /* @__PURE__ */ r(So, { messages: p }, m);
2130
2173
  if (To(p)) {
2131
- const v = b === a.length - 1;
2132
- return o && v ? null : ((z = p[0]) == null || z.agent, /* @__PURE__ */ r(
2174
+ const f = x === a.length - 1;
2175
+ return o && f ? null : ((z = p[0]) == null || z.agent, /* @__PURE__ */ r(
2133
2176
  pe,
2134
2177
  {
2135
2178
  messages: p,
@@ -2139,15 +2182,15 @@ function Po() {
2139
2182
  ));
2140
2183
  }
2141
2184
  if (Mo(p)) {
2142
- const v = (M = p[0]) == null ? void 0 : M.agent;
2185
+ const f = (_ = p[0]) == null ? void 0 : _.agent;
2143
2186
  return /* @__PURE__ */ r(
2144
2187
  pe,
2145
2188
  {
2146
2189
  messages: p,
2147
- agent: v ? {
2148
- ...v,
2149
- name: (s == null ? void 0 : s.name) || v.name || "",
2150
- avatarUrl: (s == null ? void 0 : s.avatarUrl) || v.avatarUrl || null
2190
+ agent: f ? {
2191
+ ...f,
2192
+ name: (s == null ? void 0 : s.name) || f.name || "",
2193
+ avatarUrl: (s == null ? void 0 : s.avatarUrl) || f.avatarUrl || null
2151
2194
  } : s ? {
2152
2195
  isAi: !1,
2153
2196
  id: null,
@@ -2161,7 +2204,7 @@ function Po() {
2161
2204
  return null;
2162
2205
  }),
2163
2206
  o && i && /* @__PURE__ */ r(i, { agent: n }),
2164
- /* @__PURE__ */ r(Eo, {}),
2207
+ /* @__PURE__ */ r(Po, {}),
2165
2208
  /* @__PURE__ */ r(zo, {})
2166
2209
  ]
2167
2210
  }
@@ -2170,18 +2213,18 @@ function Po() {
2170
2213
  function Oo() {
2171
2214
  const {
2172
2215
  messagesState: { isInitialFetchLoading: e }
2173
- } = O(), {
2216
+ } = A(), {
2174
2217
  sessionState: { session: o }
2175
- } = Y(), { isCanvasOpen: t } = uo(), { theme: n } = G();
2218
+ } = U(), { isCanvasOpen: t } = uo(), { theme: n } = G();
2176
2219
  Te({
2177
2220
  width: t ? n.screens.chat.withCanvas.width : n.screens.chat.width,
2178
2221
  height: t ? n.screens.chat.withCanvas.height : n.screens.chat.height
2179
2222
  });
2180
- const s = $((o == null ? void 0 : o.id) || "chat").current;
2223
+ const s = B((o == null ? void 0 : o.id) || "chat").current;
2181
2224
  return /* @__PURE__ */ r(
2182
2225
  "div",
2183
2226
  {
2184
- ...g("chat/root"),
2227
+ ...w("chat/root"),
2185
2228
  className: h("flex flex-col overflow-hidden"),
2186
2229
  style: {
2187
2230
  width: "100vw",
@@ -2194,16 +2237,16 @@ function Oo() {
2194
2237
  // Relative to the iframe
2195
2238
  },
2196
2239
  children: /* @__PURE__ */ d("div", { className: "size-full justify-between flex flex-col", children: [
2197
- /* @__PURE__ */ r(Yt, {}),
2240
+ /* @__PURE__ */ r(Ut, {}),
2198
2241
  /* @__PURE__ */ r(T, { mode: "wait", children: e ? /* @__PURE__ */ r(
2199
- k,
2242
+ b,
2200
2243
  {
2201
2244
  className: "flex flex-col items-center justify-center w-full flex-1",
2202
- children: /* @__PURE__ */ r(Bt, {})
2245
+ children: /* @__PURE__ */ r(Xt, {})
2203
2246
  },
2204
2247
  "loading"
2205
2248
  ) : /* @__PURE__ */ d(
2206
- k,
2249
+ b,
2207
2250
  {
2208
2251
  className: "flex items-start h-full flex-1 overflow-auto",
2209
2252
  snapExit: !0,
@@ -2211,7 +2254,7 @@ function Oo() {
2211
2254
  /* @__PURE__ */ d(
2212
2255
  "div",
2213
2256
  {
2214
- ...g("chat/main/root"),
2257
+ ...w("chat/main/root"),
2215
2258
  className: h(
2216
2259
  "flex flex-col h-full overflow-auto transition-all",
2217
2260
  t ? "w-2/5" : "w-full"
@@ -2221,7 +2264,7 @@ function Oo() {
2221
2264
  transitionDuration: n.screens.chat.withCanvas.transitionDuration
2222
2265
  },
2223
2266
  children: [
2224
- /* @__PURE__ */ r(Po, {}),
2267
+ /* @__PURE__ */ r(Eo, {}),
2225
2268
  /* @__PURE__ */ r(ko, {})
2226
2269
  ]
2227
2270
  }
@@ -2229,7 +2272,7 @@ function Oo() {
2229
2272
  /* @__PURE__ */ r(
2230
2273
  "div",
2231
2274
  {
2232
- ...g("chat/canvas/root"),
2275
+ ...w("chat/canvas/root"),
2233
2276
  className: h(
2234
2277
  "h-full overflow-auto transition-all",
2235
2278
  t ? "w-3/5" : "w-0"
@@ -2261,7 +2304,7 @@ function Ao({
2261
2304
  }
2262
2305
  );
2263
2306
  }
2264
- function Ho({ className: e }) {
2307
+ function Fo({ className: e }) {
2265
2308
  return /* @__PURE__ */ r(
2266
2309
  "svg",
2267
2310
  {
@@ -2281,8 +2324,8 @@ function Ho({ className: e }) {
2281
2324
  }
2282
2325
  );
2283
2326
  }
2284
- function Xt({ className: e }) {
2285
- const { token: o } = N();
2327
+ function Vt({ className: e }) {
2328
+ const { token: o } = C();
2286
2329
  return /* @__PURE__ */ r(
2287
2330
  "div",
2288
2331
  {
@@ -2290,7 +2333,7 @@ function Xt({ className: e }) {
2290
2333
  "flex items-center justify-center gap-2 p-2 pt-0",
2291
2334
  e
2292
2335
  ),
2293
- children: /* @__PURE__ */ r(X, { children: /* @__PURE__ */ d(
2336
+ children: /* @__PURE__ */ r(Y, { children: /* @__PURE__ */ d(
2294
2337
  "a",
2295
2338
  {
2296
2339
  href: `https://open.cx/?ref=${o}`,
@@ -2305,7 +2348,7 @@ function Xt({ className: e }) {
2305
2348
  /* @__PURE__ */ r("span", { children: "Powered by" }),
2306
2349
  /* @__PURE__ */ r("span", { children: " " }),
2307
2350
  /* @__PURE__ */ d("span", { className: "flex items-center gap-[1px]", children: [
2308
- /* @__PURE__ */ r("span", { children: /* @__PURE__ */ r(Ho, { className: "size-3 inline-block" }) }),
2351
+ /* @__PURE__ */ r("span", { children: /* @__PURE__ */ r(Fo, { className: "size-3 inline-block" }) }),
2309
2352
  /* @__PURE__ */ r("span", { className: "font-semibold", children: "open" })
2310
2353
  ] })
2311
2354
  ]
@@ -2314,16 +2357,16 @@ function Xt({ className: e }) {
2314
2357
  }
2315
2358
  );
2316
2359
  }
2317
- function Fo({ children: e }) {
2360
+ function Ho({ children: e }) {
2318
2361
  return /* @__PURE__ */ r("p", { className: "ps-4 text-xs text-muted-foreground/75 uppercase font-semibold tracking-tight", children: e });
2319
2362
  }
2320
- function wt({
2363
+ function ft({
2321
2364
  session: e,
2322
2365
  className: o
2323
2366
  }) {
2324
- const { bot: t, humanAgent: n } = N(), { toChatScreen: s } = H(), a = e.assignee.kind === "human" ? (n == null ? void 0 : n.name) || e.assignee.name || "Support Agent" : (t == null ? void 0 : t.name) || "AI Support Agent", i = e.assignee.kind === "human" ? (n == null ? void 0 : n.avatarUrl) || e.assignee.avatarUrl || "" : (t == null ? void 0 : t.avatarUrl) || (t == null ? void 0 : t.avatar) || "";
2367
+ const { bot: t, humanAgent: n } = C(), { toChatScreen: s } = H(), a = e.assignee.kind === "human" ? (n == null ? void 0 : n.name) || e.assignee.name || "Support Agent" : (t == null ? void 0 : t.name) || "AI Support Agent", i = e.assignee.kind === "human" ? (n == null ? void 0 : n.avatarUrl) || e.assignee.avatarUrl || "" : (t == null ? void 0 : t.avatarUrl) || (t == null ? void 0 : t.avatar) || "";
2325
2368
  return /* @__PURE__ */ d(
2326
- S,
2369
+ N,
2327
2370
  {
2328
2371
  variant: "ghost",
2329
2372
  size: "lg",
@@ -2334,24 +2377,24 @@ function wt({
2334
2377
  onClick: () => s(e.id),
2335
2378
  children: [
2336
2379
  /* @__PURE__ */ d("div", { className: "flex-1 flex gap-2 items-center", children: [
2337
- /* @__PURE__ */ r(T, { mode: "wait", children: /* @__PURE__ */ r(k, { snapExit: !0, children: /* @__PURE__ */ d(Se, { className: "size-10", children: [
2380
+ /* @__PURE__ */ r(T, { mode: "wait", children: /* @__PURE__ */ r(b, { snapExit: !0, children: /* @__PURE__ */ d(Se, { className: "size-10", children: [
2338
2381
  /* @__PURE__ */ r(_e, { src: i, alt: "Agent Icon" }),
2339
- /* @__PURE__ */ r(Ie, { children: /* @__PURE__ */ r(jr, { className: "size-4" }) })
2382
+ /* @__PURE__ */ r(Ie, { children: /* @__PURE__ */ r(Tr, { className: "size-4" }) })
2340
2383
  ] }) }) }),
2341
2384
  /* @__PURE__ */ d("div", { className: "flex-1", children: [
2342
- /* @__PURE__ */ r(T, { mode: "wait", children: /* @__PURE__ */ r(k, { snapExit: !0, children: a }, a) }),
2343
- /* @__PURE__ */ r(T, { mode: "wait", children: e.lastMessage ? /* @__PURE__ */ r(k, { snapExit: !0, children: /* @__PURE__ */ r(
2344
- At,
2385
+ /* @__PURE__ */ r(T, { mode: "wait", children: /* @__PURE__ */ r(b, { snapExit: !0, children: a }, a) }),
2386
+ /* @__PURE__ */ r(T, { mode: "wait", children: e.lastMessage ? /* @__PURE__ */ r(b, { snapExit: !0, children: /* @__PURE__ */ r(
2387
+ Ht,
2345
2388
  {
2346
- remarkPlugins: [St],
2347
- rehypePlugins: [_t],
2389
+ remarkPlugins: [It],
2390
+ rehypePlugins: [Tt],
2348
2391
  className: "line-clamp-1 overflow-hidden text-ellipsis text-xs text-muted-foreground",
2349
2392
  children: e.lastMessage
2350
2393
  }
2351
- ) }, e.lastMessage || "content") : /* @__PURE__ */ r(k, { className: "w-1/2", snapExit: !0, children: /* @__PURE__ */ r(Ao, { className: "h-4 w-full" }) }, "skeleton") })
2394
+ ) }, e.lastMessage || "content") : /* @__PURE__ */ r(b, { className: "w-1/2", snapExit: !0, children: /* @__PURE__ */ r(Ao, { className: "h-4 w-full" }) }, "skeleton") })
2352
2395
  ] })
2353
2396
  ] }),
2354
- /* @__PURE__ */ r(Er, { className: "size-4 text-muted-foreground shrink-0 rtl:-scale-100" })
2397
+ /* @__PURE__ */ r(Mr, { className: "size-4 text-muted-foreground shrink-0 rtl:-scale-100" })
2355
2398
  ]
2356
2399
  }
2357
2400
  );
@@ -2362,41 +2405,41 @@ function Wo() {
2362
2405
  openSessions: s,
2363
2406
  closedSessions: a,
2364
2407
  canCreateNewSession: i
2365
- } = Y();
2408
+ } = U();
2366
2409
  return /* @__PURE__ */ r("div", { className: "flex-1 flex flex-col overflow-scroll py-2 px-2", children: /* @__PURE__ */ r(T, { mode: "wait", children: n ? /* @__PURE__ */ r(
2367
- k,
2410
+ b,
2368
2411
  {
2369
2412
  className: "flex-1 flex items-center justify-center",
2370
- children: /* @__PURE__ */ r(Bt, {})
2413
+ children: /* @__PURE__ */ r(Xt, {})
2371
2414
  },
2372
2415
  "loading"
2373
2416
  ) : /* @__PURE__ */ r(
2374
- k,
2417
+ b,
2375
2418
  {
2376
2419
  className: "flex-1 flex flex-col gap-2 relative",
2377
2420
  children: t.length ? /* @__PURE__ */ d(Q, { children: [
2378
2421
  /* @__PURE__ */ d(T, { children: [
2379
2422
  s.length > 0 && /* @__PURE__ */ r(
2380
- k,
2423
+ b,
2381
2424
  {
2382
2425
  fadeIn: "up",
2383
2426
  delay: 0.2,
2384
2427
  className: "space-y-2",
2385
2428
  snapExit: !0,
2386
- children: s.map((l) => /* @__PURE__ */ r(wt, { session: l }, l.id))
2429
+ children: s.map((l) => /* @__PURE__ */ r(ft, { session: l }, l.id))
2387
2430
  },
2388
2431
  "open-sessions"
2389
2432
  ),
2390
2433
  a.length > 0 && /* @__PURE__ */ d(
2391
- k,
2434
+ b,
2392
2435
  {
2393
2436
  className: "space-y-2",
2394
2437
  delay: 0.2,
2395
2438
  snapExit: !0,
2396
2439
  children: [
2397
- /* @__PURE__ */ r(Fo, { children: e("closed_conversations") }),
2440
+ /* @__PURE__ */ r(Ho, { children: e("closed_conversations") }),
2398
2441
  a.map((l) => /* @__PURE__ */ r(
2399
- wt,
2442
+ ft,
2400
2443
  {
2401
2444
  session: l,
2402
2445
  className: "opacity-50 hover:opacity-100"
@@ -2409,9 +2452,9 @@ function Wo() {
2409
2452
  )
2410
2453
  ] }),
2411
2454
  i && /* @__PURE__ */ r("div", { className: "mt-auto w-full rounded-3xl sticky bottom-0 outline outline-8 outline-background bg-background", children: /* @__PURE__ */ lt(
2412
- S,
2455
+ N,
2413
2456
  {
2414
- ...g("sessions/new_conversation_btn"),
2457
+ ...w("sessions/new_conversation_btn"),
2415
2458
  size: "lg",
2416
2459
  key: "new-session",
2417
2460
  className: "w-full",
@@ -2422,9 +2465,9 @@ function Wo() {
2422
2465
  ] }) : /* @__PURE__ */ d("div", { className: "flex-1 flex flex-col gap-2 items-center", children: [
2423
2466
  /* @__PURE__ */ r("div", { className: "flex-1 flex items-center justify-center", children: /* @__PURE__ */ r("p", { className: "text-muted-foreground", children: e("no_conversations_yet") }) }),
2424
2467
  /* @__PURE__ */ lt(
2425
- S,
2468
+ N,
2426
2469
  {
2427
- ...g("sessions/new_conversation_btn"),
2470
+ ...w("sessions/new_conversation_btn"),
2428
2471
  size: "lg",
2429
2472
  key: "new-session",
2430
2473
  className: "w-full",
@@ -2445,7 +2488,7 @@ function Lo() {
2445
2488
  }), /* @__PURE__ */ r(
2446
2489
  "div",
2447
2490
  {
2448
- ...g("sessions/root"),
2491
+ ...w("sessions/root"),
2449
2492
  className: h("flex flex-col overflow-hidden bg-background"),
2450
2493
  style: {
2451
2494
  width: "100vw",
@@ -2458,16 +2501,16 @@ function Lo() {
2458
2501
  // Relative to the iframe
2459
2502
  },
2460
2503
  children: /* @__PURE__ */ d("div", { className: "size-full flex flex-col", children: [
2461
- /* @__PURE__ */ r(Yt, {}),
2504
+ /* @__PURE__ */ r(Ut, {}),
2462
2505
  /* @__PURE__ */ r(Wo, {}),
2463
- /* @__PURE__ */ r(Xt, {})
2506
+ /* @__PURE__ */ r(Vt, {})
2464
2507
  ] })
2465
2508
  }
2466
2509
  );
2467
2510
  }
2468
2511
  const de = J.forwardRef(
2469
2512
  ({ className: e, type: o, ...t }, n) => {
2470
- const { isSmallScreen: s } = L();
2513
+ const { isSmallScreen: s } = $();
2471
2514
  return /* @__PURE__ */ r(
2472
2515
  "input",
2473
2516
  {
@@ -2488,7 +2531,7 @@ const de = J.forwardRef(
2488
2531
  );
2489
2532
  de.displayName = "Input";
2490
2533
  function $o() {
2491
- const { contentIframeRef: e } = P(), { inline: o } = N(), t = $(null);
2534
+ const { contentIframeRef: e } = O(), { inline: o } = C(), t = B(null);
2492
2535
  return se(() => {
2493
2536
  const n = e == null ? void 0 : e.current;
2494
2537
  if (n && t.current) {
@@ -2509,35 +2552,35 @@ function $o() {
2509
2552
  }
2510
2553
  }, [e, o]), { observedElementRef: t };
2511
2554
  }
2512
- const Yo = ge.object({
2555
+ const Bo = ge.object({
2513
2556
  name: ge.string().min(2),
2514
2557
  email: ge.string().email()
2515
2558
  });
2516
- function Bo() {
2517
- var v, R, E, j, u, _, w, y;
2559
+ function Yo() {
2560
+ var f, R, P, E, g, I, j, M;
2518
2561
  const {
2519
2562
  widgetCtx: { org: e }
2520
- } = P(), { setIsOpen: o } = V(), { createUnverifiedContact: t } = Ct(), { isSmallScreen: n } = L(), s = N(), { theme: a } = G(), { t: i } = Z(), { observedElementRef: l } = $o();
2563
+ } = O(), { setIsOpen: o } = V(), { createUnverifiedContact: t } = zt(), { isSmallScreen: n } = $(), s = C(), { theme: a } = G(), { t: i } = Z(), { observedElementRef: l } = $o();
2521
2564
  Te({
2522
2565
  height: void 0,
2523
2566
  width: a.screens.welcome.width
2524
2567
  });
2525
- const [c, p] = D(((v = s.prefillUserData) == null ? void 0 : v.name) || ""), [b, x] = D(((R = s.prefillUserData) == null ? void 0 : R.email) || ""), m = (s.extraDataCollectionFields || []).filter(
2526
- (I) => I !== "name" && I !== "email" && !!I
2527
- ), [C, f] = D({}), [z, M] = Lr(
2528
- async (I) => {
2529
- I.preventDefault();
2530
- const B = Yo.safeParse({ name: c, email: b });
2531
- B.success && await t(
2568
+ const [c, p] = D(((f = s.prefillUserData) == null ? void 0 : f.name) || ""), [x, y] = D(((R = s.prefillUserData) == null ? void 0 : R.email) || ""), m = (s.extraDataCollectionFields || []).filter(
2569
+ (u) => u !== "name" && u !== "email" && !!u
2570
+ ), [k, v] = D({}), [z, _] = Lr(
2571
+ async (u) => {
2572
+ u.preventDefault();
2573
+ const S = Bo.safeParse({ name: c, email: x });
2574
+ S.success && await t(
2532
2575
  {
2533
- email: B.data.email,
2534
- non_verified_name: B.data.name
2576
+ email: S.data.email,
2577
+ non_verified_name: S.data.name
2535
2578
  },
2536
2579
  // Only pass extra data if there is any
2537
- Object.values(C).filter(Boolean).length ? C : void 0
2580
+ Object.values(k).filter(Boolean).length ? k : void 0
2538
2581
  );
2539
2582
  },
2540
- [c, b, C]
2583
+ [c, x, k]
2541
2584
  );
2542
2585
  return /* @__PURE__ */ r(
2543
2586
  "div",
@@ -2572,18 +2615,18 @@ function Bo() {
2572
2615
  "text-primary-foreground"
2573
2616
  ),
2574
2617
  children: [
2575
- n && /* @__PURE__ */ r(k, { className: "absolute top-6 end-6", children: /* @__PURE__ */ r(S, { size: "selfless", onClick: () => o(!1), children: /* @__PURE__ */ r(ke, { className: "size-4" }) }) }),
2576
- /* @__PURE__ */ r("div", { className: "flex items-center justify-between w-full mb-2", children: (E = s.assets) != null && E.organizationLogo ? /* @__PURE__ */ r(
2618
+ n && /* @__PURE__ */ r(b, { className: "absolute top-6 end-6", children: /* @__PURE__ */ r(N, { size: "selfless", onClick: () => o(!1), children: /* @__PURE__ */ r(ke, { className: "size-4" }) }) }),
2619
+ /* @__PURE__ */ r("div", { className: "flex items-center justify-between w-full mb-2", children: (P = s.assets) != null && P.organizationLogo ? /* @__PURE__ */ r(
2577
2620
  "img",
2578
2621
  {
2579
- src: (j = s.assets) == null ? void 0 : j.organizationLogo,
2622
+ src: (E = s.assets) == null ? void 0 : E.organizationLogo,
2580
2623
  alt: "Company Logo",
2581
2624
  className: "h-8 w-auto object-contain"
2582
2625
  }
2583
2626
  ) : /* @__PURE__ */ r("h2", { className: "font-bold text-sm", children: e.name }) }),
2584
2627
  /* @__PURE__ */ d("div", { className: "space-y-2", children: [
2585
- /* @__PURE__ */ r("h1", { className: "text-[1.75rem] font-semibold tracking-tight leading-none", children: ((_ = (u = s.textContent) == null ? void 0 : u.welcomeScreen) == null ? void 0 : _.title) || i("welcome_screen_title") }),
2586
- /* @__PURE__ */ r("p", { className: "text-sm", children: ((y = (w = s.textContent) == null ? void 0 : w.welcomeScreen) == null ? void 0 : y.description) || i("welcome_screen_description") })
2628
+ /* @__PURE__ */ r("h1", { className: "text-[1.75rem] font-semibold tracking-tight leading-none", children: ((I = (g = s.textContent) == null ? void 0 : g.welcomeScreen) == null ? void 0 : I.title) || i("welcome_screen_title") }),
2629
+ /* @__PURE__ */ r("p", { className: "text-sm", children: ((M = (j = s.textContent) == null ? void 0 : j.welcomeScreen) == null ? void 0 : M.description) || i("welcome_screen_description") })
2587
2630
  ] })
2588
2631
  ]
2589
2632
  }
@@ -2598,12 +2641,12 @@ function Bo() {
2598
2641
  "rounded-3xl"
2599
2642
  ),
2600
2643
  children: [
2601
- /* @__PURE__ */ d("form", { onSubmit: M, className: "space-y-2", children: [
2644
+ /* @__PURE__ */ d("form", { onSubmit: _, className: "space-y-2", children: [
2602
2645
  /* @__PURE__ */ r(
2603
2646
  de,
2604
2647
  {
2605
2648
  value: c,
2606
- onChange: (I) => p(I.target.value),
2649
+ onChange: (u) => p(u.target.value),
2607
2650
  required: !0,
2608
2651
  placeholder: i("your_name_placeholder"),
2609
2652
  name: "name"
@@ -2613,39 +2656,39 @@ function Bo() {
2613
2656
  de,
2614
2657
  {
2615
2658
  required: !0,
2616
- value: b,
2617
- onChange: (I) => x(I.target.value),
2659
+ value: x,
2660
+ onChange: (u) => y(u.target.value),
2618
2661
  type: "email",
2619
2662
  placeholder: i("your_email_placeholder"),
2620
2663
  name: "email"
2621
2664
  }
2622
2665
  ),
2623
- m.map((I) => /* @__PURE__ */ r(
2666
+ m.map((u) => /* @__PURE__ */ r(
2624
2667
  de,
2625
2668
  {
2626
- value: C[I],
2627
- onChange: (B) => f((ie) => ({
2669
+ value: k[u],
2670
+ onChange: (S) => v((ie) => ({
2628
2671
  ...ie,
2629
- [I]: B.target.value
2672
+ [u]: S.target.value
2630
2673
  })),
2631
- placeholder: `${I} (${i("optional")})`
2674
+ placeholder: `${u} (${i("optional")})`
2632
2675
  },
2633
- I
2676
+ u
2634
2677
  )),
2635
2678
  /* @__PURE__ */ d(
2636
- S,
2679
+ N,
2637
2680
  {
2638
2681
  disabled: z.loading,
2639
2682
  className: "w-full",
2640
2683
  size: "lg",
2641
2684
  children: [
2642
2685
  z.loading ? i("start_chat_button_loading") : i("start_chat_button"),
2643
- /* @__PURE__ */ r(Pr, { className: "size-4 rtl:-scale-100" })
2686
+ /* @__PURE__ */ r(Dr, { className: "size-4 rtl:-scale-100" })
2644
2687
  ]
2645
2688
  }
2646
2689
  )
2647
2690
  ] }),
2648
- /* @__PURE__ */ r(Xt, {})
2691
+ /* @__PURE__ */ r(Vt, {})
2649
2692
  ]
2650
2693
  }
2651
2694
  )
@@ -2655,7 +2698,7 @@ function Bo() {
2655
2698
  }
2656
2699
  );
2657
2700
  }
2658
- function qt() {
2701
+ function Gt() {
2659
2702
  const {
2660
2703
  routerState: { screen: e }
2661
2704
  } = H();
@@ -2663,18 +2706,18 @@ function qt() {
2663
2706
  switch (e) {
2664
2707
  case "welcome":
2665
2708
  return /* @__PURE__ */ r(
2666
- k,
2709
+ b,
2667
2710
  {
2668
2711
  fadeIn: "right",
2669
2712
  className: "size-full",
2670
2713
  snapExit: !0,
2671
- children: /* @__PURE__ */ r(Bo, {})
2714
+ children: /* @__PURE__ */ r(Yo, {})
2672
2715
  },
2673
2716
  e
2674
2717
  );
2675
2718
  case "sessions":
2676
2719
  return /* @__PURE__ */ r(
2677
- k,
2720
+ b,
2678
2721
  {
2679
2722
  fadeIn: "right",
2680
2723
  className: "size-full",
@@ -2685,7 +2728,7 @@ function qt() {
2685
2728
  );
2686
2729
  case "chat":
2687
2730
  return /* @__PURE__ */ r(
2688
- k,
2731
+ b,
2689
2732
  {
2690
2733
  fadeIn: "right",
2691
2734
  className: "size-full",
@@ -2695,15 +2738,15 @@ function qt() {
2695
2738
  e
2696
2739
  );
2697
2740
  default:
2698
- return A(e, qt.name), null;
2741
+ return F(e, Gt.name), null;
2699
2742
  }
2700
2743
  })() }) });
2701
2744
  }
2702
- const Uo = "4.0.48", Xo = `<!DOCTYPE html>
2745
+ const Uo = "4.0.50", Xo = `<!DOCTYPE html>
2703
2746
  <html>
2704
2747
  <head>
2705
2748
  <style>
2706
- ${Ht}
2749
+ ${Wt}
2707
2750
  html, body {
2708
2751
  height: 100%;
2709
2752
  width: 100%;
@@ -2717,8 +2760,8 @@ html, body {
2717
2760
  <body>
2718
2761
  </body>
2719
2762
  </html>`;
2720
- function Vt() {
2721
- const { isOpen: e } = V(), { contentIframeRef: o } = P(), { cssOverrides: t, inline: n } = N(), { theme: s, cssVars: a, computed: i } = G(), { dir: l } = Z();
2763
+ function Zt() {
2764
+ const { isOpen: e } = V(), { contentIframeRef: o } = O(), { cssOverrides: t, inline: n } = C(), { theme: s, cssVars: a, computed: i } = G(), { dir: l } = Z();
2722
2765
  return /* @__PURE__ */ r(
2723
2766
  re.div,
2724
2767
  {
@@ -2739,7 +2782,7 @@ function Vt() {
2739
2782
  }
2740
2783
  },
2741
2784
  children: /* @__PURE__ */ d(
2742
- It,
2785
+ Mt,
2743
2786
  {
2744
2787
  ref: o,
2745
2788
  initialContent: Xo,
@@ -2789,7 +2832,7 @@ function Vt() {
2789
2832
  {
2790
2833
  delayDuration: 200,
2791
2834
  disableHoverableContent: !0,
2792
- children: /* @__PURE__ */ r(Gr, { children: /* @__PURE__ */ r(qt, {}) })
2835
+ children: /* @__PURE__ */ r(Gr, { children: /* @__PURE__ */ r(Gt, {}) })
2793
2836
  }
2794
2837
  )
2795
2838
  }
@@ -2818,7 +2861,7 @@ function qo() {
2818
2861
  sideOffset: e.widgetContentContainer.offset.side,
2819
2862
  alignOffset: e.widgetContentContainer.offset.align,
2820
2863
  avoidCollisions: !1,
2821
- children: /* @__PURE__ */ r(Vt, {})
2864
+ children: /* @__PURE__ */ r(Zt, {})
2822
2865
  }
2823
2866
  );
2824
2867
  }
@@ -2861,7 +2904,7 @@ const Go = `<!DOCTYPE html>
2861
2904
  <html>
2862
2905
  <head>
2863
2906
  <style>
2864
- ${Ht}
2907
+ ${Wt}
2865
2908
  html, body {
2866
2909
  height: 100%;
2867
2910
  width: 100%;
@@ -2876,13 +2919,13 @@ html, body {
2876
2919
  </html>`;
2877
2920
  function Zo() {
2878
2921
  var l, c;
2879
- const { isOpen: e, setIsOpen: o } = V(), { cssOverrides: t, assets: n, customComponents: s } = N(), { theme: a, cssVars: i } = G();
2922
+ const { isOpen: e, setIsOpen: o } = V(), { cssOverrides: t, assets: n, customComponents: s } = C(), { theme: a, cssVars: i } = G();
2880
2923
  return s != null && s.widgetTrigger ? s.widgetTrigger({
2881
- react: W,
2924
+ react: L,
2882
2925
  isOpen: e,
2883
2926
  setIsOpen: (p) => o(p)
2884
2927
  }) : /* @__PURE__ */ d(
2885
- It,
2928
+ Mt,
2886
2929
  {
2887
2930
  initialContent: Go,
2888
2931
  title: "OpenCX Live Chat Trigger",
@@ -2924,10 +2967,10 @@ function Zo() {
2924
2967
  height: a.widgetTrigger.size.button,
2925
2968
  width: a.widgetTrigger.size.button
2926
2969
  },
2927
- children: /* @__PURE__ */ r(X, { children: /* @__PURE__ */ r(
2970
+ children: /* @__PURE__ */ r(Y, { children: /* @__PURE__ */ r(
2928
2971
  "div",
2929
2972
  {
2930
- ...g("trigger/btn"),
2973
+ ...w("trigger/btn"),
2931
2974
  className: h(
2932
2975
  "relative size-full rounded-full",
2933
2976
  "flex items-center justify-center",
@@ -2937,7 +2980,7 @@ function Zo() {
2937
2980
  "text-primary-foreground"
2938
2981
  ),
2939
2982
  children: /* @__PURE__ */ r(T, { mode: "wait", children: e ? /* @__PURE__ */ r(
2940
- k,
2983
+ b,
2941
2984
  {
2942
2985
  snapExit: !0,
2943
2986
  fadeIn: "up",
@@ -2956,7 +2999,7 @@ function Zo() {
2956
2999
  }
2957
3000
  }
2958
3001
  ) : /* @__PURE__ */ r(
2959
- Or,
3002
+ Rr,
2960
3003
  {
2961
3004
  style: {
2962
3005
  width: a.widgetTrigger.size.icon,
@@ -2967,7 +3010,7 @@ function Zo() {
2967
3010
  },
2968
3011
  "x-icon"
2969
3012
  ) : /* @__PURE__ */ r(
2970
- k,
3013
+ b,
2971
3014
  {
2972
3015
  snapExit: !0,
2973
3016
  overrides: {
@@ -3024,11 +3067,11 @@ function Ko() {
3024
3067
  function Qo({
3025
3068
  widgetRef: e
3026
3069
  }) {
3027
- const { widgetCtx: o } = P(), { contactState: t } = Ct(), { setIsOpen: n, isOpen: s } = V(), {
3070
+ const { widgetCtx: o } = O(), { contactState: t } = zt(), { setIsOpen: n, isOpen: s } = V(), {
3028
3071
  toChatScreen: a,
3029
3072
  routerState: { screen: i }
3030
- } = H(), { sendMessage: l } = O();
3031
- return W.useImperativeHandle(
3073
+ } = H(), { sendMessage: l } = A();
3074
+ return L.useImperativeHandle(
3032
3075
  e,
3033
3076
  () => ({
3034
3077
  newChat: async (c) => {
@@ -3084,17 +3127,17 @@ const en = [
3084
3127
  remove: async (e) => {
3085
3128
  localStorage.removeItem(e);
3086
3129
  }
3087
- }, rn = W.forwardRef(function({ options: o, components: t = [], loadingComponent: n }, s) {
3130
+ }, rn = L.forwardRef(function({ options: o, components: t = [], loadingComponent: n }, s) {
3088
3131
  return /* @__PURE__ */ r(
3089
- Jt,
3132
+ tr,
3090
3133
  {
3091
3134
  components: [...en, ...t],
3092
3135
  options: o,
3093
3136
  storage: tn,
3094
3137
  loadingComponent: n,
3095
- children: /* @__PURE__ */ d(er, { children: [
3138
+ children: /* @__PURE__ */ d(rr, { children: [
3096
3139
  /* @__PURE__ */ r(Qo, { widgetRef: s }),
3097
- o.inline ? /* @__PURE__ */ r(Vt, {}) : /* @__PURE__ */ r(Jo, {})
3140
+ o.inline ? /* @__PURE__ */ r(Zt, {}) : /* @__PURE__ */ r(Jo, {})
3098
3141
  ] })
3099
3142
  }
3100
3143
  );