@opencx/widget-react 4.0.57 → 4.0.59

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,24 +1,24 @@
1
1
  import { jsx as r, jsxs as d, Fragment as J } from "react/jsx-runtime";
2
2
  import * as me from "@radix-ui/react-popover";
3
3
  import * as ee from "react";
4
- import L, { memo as rr, forwardRef as yt, useState as R, cloneElement as kt, createContext as or, useEffect as se, useContext as nr, useRef as B, useCallback as G, useMemo as Ct, createElement as ct } from "react";
5
- import { useWidget as O, useConfig as N, useSessions as U, useMessages as A, useWidgetRouter as H, useDocumentDir as ke, useWidgetTrigger as Z, useModes as zt, useCsat as Nt, useUploadFiles as sr, useIsAwaitingBotReply as St, useContact as _t, WidgetProvider as ar, WidgetTriggerProvider as ir } from "@opencx/widget-react-headless";
6
- import { X as lr, ZoomOut as cr, ZoomIn as dr, RotateCcw as pr, FileText as It, FileSpreadsheet as Tt, CircleDashedIcon as mr, XIcon as Ce, SquareXIcon as hr, SquareCheckBigIcon as gr, SquareCheckIcon as ur, ShrinkIcon as wr, Minimize2Icon as fr, MinimizeIcon as xr, Maximize2Icon as vr, MaximizeIcon as br, ExpandIcon as yr, CircleXIcon as kr, CircleCheckBigIcon as Cr, CircleCheckIcon as Mt, CheckCheckIcon as zr, CheckIcon as Nr, ChevronLeftIcon as Sr, LoaderIcon as _r, ArrowUpIcon as Dt, PaperclipIcon as dt, CircleDashed as Ir, AlertCircle as Tr, Loader2 as Mr, FileAudio2Icon as Dr, FileVideo2Icon as Er, FileIcon as Rr, UserRoundIcon as Pr, ChevronRightIcon as jr, SendHorizontal as Or, ChevronDownIcon as Ar } from "lucide-react";
7
- import { clsx as Fr } from "clsx";
8
- import { twMerge as Hr } from "tailwind-merge";
9
- import { motion as re, AnimatePresence as M } from "framer-motion";
10
- import { Slot as Wr } from "@radix-ui/react-slot";
11
- import { cva as Lr } from "class-variance-authority";
12
- import Et from "remark-gfm";
13
- import $r from "react-markdown";
14
- import Rt from "rehype-raw";
15
- import { isExhaustive as F, isSupportedLanguage as Br, getTranslation as Yr } from "@opencx/widget-core";
4
+ import L, { memo as or, forwardRef as kt, useState as P, cloneElement as Ct, createContext as nr, useEffect as se, useContext as sr, useRef as B, useCallback as G, useMemo as zt, createElement as ct } from "react";
5
+ import { useWidget as A, useConfig as z, useSessions as U, useMessages as O, useWidgetRouter as H, useDocumentDir as ke, useWidgetTrigger as Z, useModes as Nt, useCsat as St, useUploadFiles as ar, useIsAwaitingBotReply as _t, useContact as It, WidgetProvider as ir, WidgetTriggerProvider as lr } from "@opencx/widget-react-headless";
6
+ import { X as cr, ZoomOut as dr, ZoomIn as pr, RotateCcw as mr, FileText as Tt, FileSpreadsheet as Mt, CircleDashedIcon as hr, XIcon as Ce, SquareXIcon as gr, SquareCheckBigIcon as ur, SquareCheckIcon as wr, ShrinkIcon as fr, Minimize2Icon as xr, MinimizeIcon as vr, Maximize2Icon as br, MaximizeIcon as yr, ExpandIcon as kr, CircleXIcon as Cr, CircleCheckBigIcon as zr, CircleCheckIcon as Dt, CheckCheckIcon as Nr, CheckIcon as Sr, ChevronLeftIcon as _r, LoaderIcon as Ir, ArrowUpIcon as Et, PaperclipIcon as dt, CircleDashed as Tr, AlertCircle as Mr, Loader2 as Dr, FileAudio2Icon as Er, FileVideo2Icon as Rr, FileIcon as Pr, UserRoundIcon as jr, ChevronRightIcon as Ar, SendHorizontal as Or, ChevronDownIcon as Fr } from "lucide-react";
7
+ import { clsx as Hr } from "clsx";
8
+ import { twMerge as Wr } from "tailwind-merge";
9
+ import { motion as re, AnimatePresence as D } from "framer-motion";
10
+ import { Slot as Lr } from "@radix-ui/react-slot";
11
+ import { cva as $r } from "class-variance-authority";
12
+ import Rt from "remark-gfm";
13
+ import Br from "react-markdown";
14
+ import Pt from "rehype-raw";
15
+ import { isExhaustive as F, isSupportedLanguage as Yr, getTranslation as Ur } from "@opencx/widget-core";
16
16
  import * as te from "@radix-ui/react-avatar";
17
- import Pt from "@uiw/react-iframe";
17
+ import jt from "@uiw/react-iframe";
18
18
  import * as ae from "@radix-ui/react-tooltip";
19
19
  import pt from "tinycolor2";
20
- import { useDropzone as Ur } from "react-dropzone";
21
- import Xr from "react-use/lib/useAsyncFn";
20
+ import { useDropzone as Xr } from "react-dropzone";
21
+ import qr from "react-use/lib/useAsyncFn";
22
22
  import { z as ue } from "zod";
23
23
  function f(e) {
24
24
  return { "data-component": e };
@@ -43,8 +43,12 @@ const fe = [
43
43
  fe.flatMap(
44
44
  (e) => e.mimes.map((o) => [o, e.extensions.map((t) => `.${t}`)])
45
45
  )
46
- );
47
- function jt({
46
+ ), ht = {
47
+ "video/mp4": [".mp4"],
48
+ "video/webm": [".webm"],
49
+ "video/quicktime": [".mov"]
50
+ };
51
+ function At({
48
52
  type: e,
49
53
  name: o
50
54
  }) {
@@ -53,40 +57,40 @@ function jt({
53
57
  return fe.find((a) => t && a.extensions.includes(t)) ?? fe.find((a) => n && a.mimes.includes(n)) ?? null;
54
58
  }
55
59
  function m(...e) {
56
- return Hr(Fr(e));
60
+ return Wr(Hr(e));
57
61
  }
58
62
  const Q = {
59
63
  x: 2,
60
64
  y: 2
61
- }, Y = rr(
62
- yt(
65
+ }, Y = or(
66
+ kt(
63
67
  ({ children: e, className: o, scale: t = 1.02, off: n = !1 }, s) => {
64
- const [i, a] = R(!1), [l, c] = R({ x: 0, y: 0 });
68
+ const [i, a] = P(!1), [l, c] = P({ x: 0, y: 0 });
65
69
  if (n || /translate/.test(
66
70
  e.props.className || ""
67
71
  )) return e;
68
72
  const v = (x) => {
69
- var E, g;
70
- const { clientX: z, clientY: I } = x, y = x.currentTarget.getBoundingClientRect(), k = z - (y.left + y.width / 2), D = I - (y.top + y.height / 2), j = Math.max(
73
+ var R, g;
74
+ const { clientX: C, clientY: T } = x, y = x.currentTarget.getBoundingClientRect(), N = C - (y.left + y.width / 2), _ = T - (y.top + y.height / 2), E = Math.max(
71
75
  -1,
72
- Math.min(1, k / (y.width / 2))
76
+ Math.min(1, N / (y.width / 2))
73
77
  ), w = Math.max(
74
78
  -1,
75
- Math.min(1, D / (y.height / 2))
76
- ), T = j * Q.x, P = w * Q.y;
77
- c({ x: T, y: P }), (g = (E = e.props).onMouseMove) == null || g.call(E, x);
79
+ Math.min(1, _ / (y.height / 2))
80
+ ), M = E * Q.x, j = w * Q.y;
81
+ c({ x: M, y: j }), (g = (R = e.props).onMouseMove) == null || g.call(R, x);
78
82
  }, b = () => {
79
- var x, z;
80
- a(!0), (z = (x = e.props).onMouseEnter) == null || z.call(x);
83
+ var x, C;
84
+ a(!0), (C = (x = e.props).onMouseEnter) == null || C.call(x);
81
85
  }, u = () => {
82
- var x, z;
83
- a(!1), c({ x: 0, y: 0 }), (z = (x = e.props).onMouseLeave) == null || z.call(x);
86
+ var x, C;
87
+ a(!1), c({ x: 0, y: 0 }), (C = (x = e.props).onMouseLeave) == null || C.call(x);
84
88
  }, h = {
85
89
  "--wobble-x": i ? `${l.x}px` : "0px",
86
90
  "--wobble-y": i ? `${l.y}px` : "0px",
87
91
  "--scale": 1 - (t - 1)
88
92
  };
89
- return kt(e, {
93
+ return Ct(e, {
90
94
  ref: s,
91
95
  onMouseMove: v,
92
96
  onMouseEnter: b,
@@ -108,43 +112,43 @@ const Q = {
108
112
  )
109
113
  );
110
114
  Y.displayName = "Wobble";
111
- const qr = 10, Vr = (e, o, t) => ({
115
+ const Vr = 10, Gr = (e, o, t) => ({
112
116
  initial: { opacity: 0, x: -e, ...o.initial },
113
117
  animate: { opacity: 1, x: 0, ...o.animate, transition: { delay: t } },
114
118
  exit: { opacity: 0, x: e, ...o.exit }
115
- }), Gr = (e, o, t) => ({
119
+ }), Zr = (e, o, t) => ({
116
120
  initial: { opacity: 0, x: e, ...o.initial },
117
121
  animate: { opacity: 1, x: 0, ...o.animate, transition: { delay: t } },
118
122
  exit: { opacity: 0, x: -e, ...o.exit }
119
- }), Zr = (e, o, t) => ({
123
+ }), Kr = (e, o, t) => ({
120
124
  initial: { opacity: 0, y: e, ...o.initial },
121
125
  animate: { opacity: 1, y: 0, ...o.animate, transition: { delay: t } },
122
126
  exit: { opacity: 0, y: -e, ...o.exit }
123
- }), Kr = (e, o, t) => ({
127
+ }), Qr = (e, o, t) => ({
124
128
  initial: { opacity: 0, y: -e, ...o.initial },
125
129
  animate: { opacity: 1, y: 0, ...o.animate, transition: { delay: t } },
126
130
  exit: { opacity: 0, y: e, ...o.exit }
127
- }), Qr = {
128
- right: Vr,
129
- left: Gr,
130
- up: Zr,
131
- down: Kr
132
- }, C = yt(
131
+ }), Jr = {
132
+ right: Gr,
133
+ left: Zr,
134
+ up: Kr,
135
+ down: Qr
136
+ }, k = kt(
133
137
  ({
134
138
  fadeIn: e = "down",
135
- distance: o = qr,
139
+ distance: o = Vr,
136
140
  children: t,
137
141
  snapExit: n = !1,
138
142
  overrides: s = {},
139
143
  delay: i = 0,
140
144
  ...a
141
145
  }, l) => {
142
- const c = e ? Qr[e](o, s, i) : {};
146
+ const c = e ? Jr[e](o, s, i) : {};
143
147
  return n && c.exit && typeof c.exit == "object" && !Array.isArray(c.exit) && (c.exit.transition = { duration: 0 }), /* @__PURE__ */ r(re.div, { ref: l, ...a, ...c, children: t });
144
148
  }
145
149
  );
146
- C.displayName = "MotionDiv";
147
- const Jr = Lr(
150
+ k.displayName = "MotionDiv";
151
+ const eo = $r(
148
152
  m(
149
153
  "inline-flex shrink-0 items-center justify-center gap-2",
150
154
  "text-sm font-medium whitespace-nowrap",
@@ -185,19 +189,19 @@ const Jr = Lr(
185
189
  }
186
190
  ), S = ee.forwardRef(
187
191
  ({ className: e, variant: o = "default", size: t, asChild: n = !1, ...s }, i) => /* @__PURE__ */ r(Y, { ref: i, children: /* @__PURE__ */ r(
188
- n ? Wr : "button",
192
+ n ? Lr : "button",
189
193
  {
190
194
  ...f("ui_lib/btn"),
191
195
  "data-variant": o,
192
- className: m(Jr({ variant: o, size: t, className: e })),
196
+ className: m(eo({ variant: o, size: t, className: e })),
193
197
  ...s
194
198
  }
195
199
  ) })
196
200
  );
197
201
  S.displayName = "Button";
198
- const Ot = or(null);
199
- function eo({ children: e }) {
200
- const [o, t] = R(!1), [n, s] = R(null), i = (l) => {
202
+ const Ot = nr(null);
203
+ function to({ children: e }) {
204
+ const [o, t] = P(!1), [n, s] = P(null), i = (l) => {
201
205
  s(l), t(!0);
202
206
  }, a = () => {
203
207
  t(!1), setTimeout(() => {
@@ -209,14 +213,14 @@ function eo({ children: e }) {
209
213
  {
210
214
  value: { open: i, close: a, isOpen: o, content: n },
211
215
  children: [
212
- /* @__PURE__ */ r(to, {}),
216
+ /* @__PURE__ */ r(ro, {}),
213
217
  e
214
218
  ]
215
219
  }
216
220
  );
217
221
  }
218
222
  function he() {
219
- const e = nr(Ot);
223
+ const e = sr(Ot);
220
224
  return e || (console.error("useDialoger must be used within a DialogerProvider"), {
221
225
  open: () => {
222
226
  },
@@ -226,8 +230,8 @@ function he() {
226
230
  content: null
227
231
  });
228
232
  }
229
- function to() {
230
- const { contentIframeRef: e } = O(), { isOpen: o, content: t, close: n } = he();
233
+ function ro() {
234
+ const { contentIframeRef: e } = A(), { isOpen: o, content: t, close: n } = he();
231
235
  return se(() => {
232
236
  var i, a;
233
237
  const s = (l) => {
@@ -243,8 +247,8 @@ function to() {
243
247
  s
244
248
  );
245
249
  };
246
- }, []), /* @__PURE__ */ r(M, { mode: "wait", children: o && t && /* @__PURE__ */ r(
247
- C,
250
+ }, []), /* @__PURE__ */ r(D, { mode: "wait", children: o && t && /* @__PURE__ */ r(
251
+ k,
248
252
  {
249
253
  overrides: {
250
254
  initial: { y: 0 },
@@ -281,7 +285,7 @@ function ze({
281
285
  className: "rounded-full absolute top-4 right-4 opacity-50 hover:opacity-100",
282
286
  onClick: n,
283
287
  children: [
284
- /* @__PURE__ */ r(lr, { className: "h-4 w-4" }),
288
+ /* @__PURE__ */ r(cr, { className: "h-4 w-4" }),
285
289
  /* @__PURE__ */ r("span", { className: "sr-only", children: "Close" })
286
290
  ]
287
291
  }
@@ -290,7 +294,7 @@ function ze({
290
294
  }
291
295
  );
292
296
  }
293
- const At = ({
297
+ const Ft = ({
294
298
  className: e,
295
299
  ...o
296
300
  }) => /* @__PURE__ */ r(
@@ -300,8 +304,8 @@ const At = ({
300
304
  ...o
301
305
  }
302
306
  );
303
- At.displayName = "DialogerHeader";
304
- const Ft = ({
307
+ Ft.displayName = "DialogerHeader";
308
+ const Ht = ({
305
309
  className: e,
306
310
  ...o
307
311
  }) => /* @__PURE__ */ r(
@@ -311,13 +315,13 @@ const Ft = ({
311
315
  ...o
312
316
  }
313
317
  );
314
- Ft.displayName = "DialogerBody";
315
- const Ht = ({
318
+ Ht.displayName = "DialogerBody";
319
+ const Wt = ({
316
320
  className: e,
317
321
  ...o
318
322
  }) => /* @__PURE__ */ r("div", { className: m("flex flex-col gap-2", e), ...o });
319
- Ht.displayName = "DialogerFooter";
320
- const Wt = L.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
323
+ Wt.displayName = "DialogerFooter";
324
+ const Lt = L.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
321
325
  "p",
322
326
  {
323
327
  ref: t,
@@ -328,8 +332,8 @@ const Wt = L.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
328
332
  ...o
329
333
  }
330
334
  ));
331
- Wt.displayName = "DialogerTitle";
332
- const Lt = L.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
335
+ Lt.displayName = "DialogerTitle";
336
+ const $t = L.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
333
337
  "p",
334
338
  {
335
339
  ref: t,
@@ -337,21 +341,21 @@ const Lt = L.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
337
341
  ...o
338
342
  }
339
343
  ));
340
- Lt.displayName = "DialogerDescription";
344
+ $t.displayName = "DialogerDescription";
341
345
  function Ne({
342
346
  children: e,
343
347
  trigger: o
344
348
  }) {
345
349
  const { open: t } = he();
346
- return kt(o, {
350
+ return Ct(o, {
347
351
  onClick: () => {
348
352
  var s, i;
349
353
  t(e), (i = (s = o.props).onClick) == null || i.call(s);
350
354
  }
351
355
  });
352
356
  }
353
- const ht = 1, gt = 5, le = 0.5, ro = 2.5;
354
- function oo(e, o, t, n) {
357
+ const gt = 1, ut = 5, le = 0.5, oo = 2.5;
358
+ function no(e, o, t, n) {
355
359
  if (!t || !n || o <= 1) return { x: 0, y: 0 };
356
360
  const s = t.getBoundingClientRect(), i = n.offsetWidth, a = n.offsetHeight, l = Math.max(0, (i * o - s.width) / (2 * o)), c = Math.max(
357
361
  0,
@@ -362,26 +366,26 @@ function oo(e, o, t, n) {
362
366
  y: Math.min(c, Math.max(-c, e.y))
363
367
  };
364
368
  }
365
- function $t({
369
+ function Bt({
366
370
  src: e,
367
371
  alt: o
368
372
  }) {
369
- const [t, n] = R(1), [s, i] = R({ x: 0, y: 0 }), [a, l] = R(!1), c = B({ x: 0, y: 0 }), p = B({ x: 0, y: 0 }), v = B(null), b = B(null), u = B(!1), h = (w) => Math.min(gt, Math.max(ht, w)), x = G(() => {
373
+ const [t, n] = P(1), [s, i] = P({ x: 0, y: 0 }), [a, l] = P(!1), c = B({ x: 0, y: 0 }), p = B({ x: 0, y: 0 }), v = B(null), b = B(null), u = B(!1), h = (w) => Math.min(ut, Math.max(gt, w)), x = G(() => {
370
374
  n(1), i({ x: 0, y: 0 });
371
- }, []), z = G(() => {
375
+ }, []), C = G(() => {
372
376
  n((w) => h(w + le));
373
- }, []), I = G(() => {
377
+ }, []), T = G(() => {
374
378
  n((w) => {
375
- const T = h(w - le);
376
- return T <= 1 && i({ x: 0, y: 0 }), T;
379
+ const M = h(w - le);
380
+ return M <= 1 && i({ x: 0, y: 0 }), M;
377
381
  });
378
382
  }, []);
379
383
  G((w) => {
380
384
  w.preventDefault(), w.stopPropagation();
381
- const T = w.deltaY > 0 ? -le : le;
382
- n((P) => {
383
- const E = h(P + T);
384
- return E <= 1 && i({ x: 0, y: 0 }), E;
385
+ const M = w.deltaY > 0 ? -le : le;
386
+ n((j) => {
387
+ const R = h(j + M);
388
+ return R <= 1 && i({ x: 0, y: 0 }), R;
385
389
  });
386
390
  }, []);
387
391
  const y = G(
@@ -389,24 +393,24 @@ function $t({
389
393
  w.preventDefault(), u.current = !1, l(!0), c.current = { x: w.clientX, y: w.clientY }, p.current = { ...s }, w.target.setPointerCapture(w.pointerId);
390
394
  },
391
395
  [s]
392
- ), k = G(
396
+ ), N = G(
393
397
  (w) => {
394
398
  if (!a) return;
395
- const T = w.clientX - c.current.x, P = w.clientY - c.current.y;
396
- if ((Math.abs(T) > 3 || Math.abs(P) > 3) && (u.current = !0), t <= 1) return;
397
- const E = {
398
- x: p.current.x + T / t,
399
- y: p.current.y + P / t
399
+ const M = w.clientX - c.current.x, j = w.clientY - c.current.y;
400
+ if ((Math.abs(M) > 3 || Math.abs(j) > 3) && (u.current = !0), t <= 1) return;
401
+ const R = {
402
+ x: p.current.x + M / t,
403
+ y: p.current.y + j / t
400
404
  };
401
405
  i(
402
- oo(E, t, v.current, b.current)
406
+ no(R, t, v.current, b.current)
403
407
  );
404
408
  },
405
409
  [a, t]
406
- ), D = G(() => {
410
+ ), _ = G(() => {
407
411
  const w = u.current;
408
- l(!1), !w && n((T) => T > 1 ? (i({ x: 0, y: 0 }), 1) : ro);
409
- }, []), j = t > 1;
412
+ l(!1), !w && n((M) => M > 1 ? (i({ x: 0, y: 0 }), 1) : oo);
413
+ }, []), E = t > 1;
410
414
  return /* @__PURE__ */ d(
411
415
  "div",
412
416
  {
@@ -419,14 +423,14 @@ function $t({
419
423
  ref: v,
420
424
  className: m(
421
425
  "overflow-hidden max-h-full max-w-full rounded-2xl flex items-center justify-center",
422
- j && "size-full"
426
+ E && "size-full"
423
427
  ),
424
428
  onPointerDown: y,
425
- onPointerMove: k,
426
- onPointerUp: D,
427
- onPointerCancel: D,
429
+ onPointerMove: N,
430
+ onPointerUp: _,
431
+ onPointerCancel: _,
428
432
  style: {
429
- cursor: a ? "grabbing" : j ? "grab" : "zoom-in",
433
+ cursor: a ? "grabbing" : E ? "grab" : "zoom-in",
430
434
  touchAction: "none"
431
435
  },
432
436
  children: /* @__PURE__ */ r(
@@ -448,15 +452,15 @@ function $t({
448
452
  }
449
453
  ),
450
454
  /* @__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: [
451
- /* @__PURE__ */ r(we, { onClick: I, label: "Zoom out", disabled: t <= ht, children: /* @__PURE__ */ r(cr, { className: "size-3.5" }) }),
455
+ /* @__PURE__ */ r(we, { onClick: T, label: "Zoom out", disabled: t <= gt, children: /* @__PURE__ */ r(dr, { className: "size-3.5" }) }),
452
456
  /* @__PURE__ */ d("span", { className: "text-white text-xs font-medium min-w-[3ch] text-center tabular-nums", children: [
453
457
  Math.round(t * 100),
454
458
  "%"
455
459
  ] }),
456
- /* @__PURE__ */ r(we, { onClick: z, label: "Zoom in", disabled: t >= gt, children: /* @__PURE__ */ r(dr, { className: "size-3.5" }) }),
457
- j && /* @__PURE__ */ d(J, { children: [
460
+ /* @__PURE__ */ r(we, { onClick: C, label: "Zoom in", disabled: t >= ut, children: /* @__PURE__ */ r(pr, { className: "size-3.5" }) }),
461
+ E && /* @__PURE__ */ d(J, { children: [
458
462
  /* @__PURE__ */ r("div", { className: "w-px h-4 bg-white/30 mx-0.5" }),
459
- /* @__PURE__ */ r(we, { onClick: x, label: "Reset zoom", children: /* @__PURE__ */ r(pr, { className: "size-3.5" }) })
463
+ /* @__PURE__ */ r(we, { onClick: x, label: "Reset zoom", children: /* @__PURE__ */ r(mr, { className: "size-3.5" }) })
460
464
  ] })
461
465
  ] })
462
466
  ]
@@ -480,7 +484,7 @@ function we({
480
484
  }
481
485
  );
482
486
  }
483
- function ut({
487
+ function wt({
484
488
  url: e,
485
489
  name: o,
486
490
  size: t,
@@ -532,7 +536,7 @@ function ut({
532
536
  }
533
537
  ) });
534
538
  }
535
- function Bt({ attachment: e }) {
539
+ function Yt({ attachment: e }) {
536
540
  const { name: o, size: t, type: n, url: s } = e, i = n.startsWith("image/"), a = n.startsWith("video/"), l = n.startsWith("audio/"), c = n === "application/pdf";
537
541
  if (l)
538
542
  return /* @__PURE__ */ r(Y, { children: /* @__PURE__ */ r("div", { className: "w-full shrink-0 overflow-hidden", children: /* @__PURE__ */ d("audio", { controls: !0, className: "w-full", children: [
@@ -554,30 +558,30 @@ function Bt({ attachment: e }) {
554
558
  {
555
559
  className: "size-full max-w-full rounded-3xl flex items-center justify-center bg-transparent border-none gap-0",
556
560
  withClose: !0,
557
- children: /* @__PURE__ */ r($t, { src: s, alt: o })
561
+ children: /* @__PURE__ */ r(Bt, { src: s, alt: o })
558
562
  }
559
563
  )
560
564
  }
561
565
  );
562
566
  if (c)
563
567
  return /* @__PURE__ */ r(
564
- ut,
568
+ wt,
565
569
  {
566
570
  url: s,
567
571
  name: o,
568
572
  size: t,
569
- icon: /* @__PURE__ */ r(It, { className: "size-5", strokeWidth: 1.75 }),
573
+ icon: /* @__PURE__ */ r(Tt, { className: "size-5", strokeWidth: 1.75 }),
570
574
  label: "PDF"
571
575
  }
572
576
  );
573
- const p = jt({ type: n, name: o });
577
+ const p = At({ type: n, name: o });
574
578
  return p ? /* @__PURE__ */ r(
575
- ut,
579
+ wt,
576
580
  {
577
581
  url: s,
578
582
  name: o,
579
583
  size: t,
580
- icon: /* @__PURE__ */ r(Tt, { className: "size-5", strokeWidth: 1.75 }),
584
+ icon: /* @__PURE__ */ r(Mt, { className: "size-5", strokeWidth: 1.75 }),
581
585
  label: p.label
582
586
  }
583
587
  ) : /* @__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: [
@@ -601,8 +605,8 @@ function Bt({ attachment: e }) {
601
605
  ] })
602
606
  ] }) }) });
603
607
  }
604
- const Yt = L.memo(
605
- $r,
608
+ const Ut = L.memo(
609
+ Br,
606
610
  (e, o) => e.children === o.children && e.className === o.className
607
611
  );
608
612
  function Se({
@@ -610,14 +614,14 @@ function Se({
610
614
  messageType: o,
611
615
  messageId: t
612
616
  }) {
613
- const { anchorTarget: n } = N();
617
+ const { anchorTarget: n } = z();
614
618
  return /* @__PURE__ */ r(
615
- Yt,
619
+ Ut,
616
620
  {
617
621
  "data-type": o,
618
622
  "data-id": t,
619
- remarkPlugins: [Et],
620
- rehypePlugins: [Rt],
623
+ remarkPlugins: [Rt],
624
+ rehypePlugins: [Pt],
621
625
  components: {
622
626
  a: ({ children: s, ...i }) => /* @__PURE__ */ r("a", { target: i.target || n || "_top", ...i, children: s }),
623
627
  img: ({ src: s, alt: i, ...a }) => s ? /* @__PURE__ */ r(
@@ -637,7 +641,7 @@ function Se({
637
641
  {
638
642
  className: "size-full max-w-full rounded-3xl flex items-center justify-center bg-transparent border-none gap-0",
639
643
  withClose: !0,
640
- children: /* @__PURE__ */ r($t, { src: s, alt: i })
644
+ children: /* @__PURE__ */ r(Bt, { src: s, alt: i })
641
645
  }
642
646
  )
643
647
  }
@@ -650,11 +654,11 @@ function Se({
650
654
  function X() {
651
655
  const {
652
656
  widgetCtx: { org: e }
653
- } = O(), {
657
+ } = A(), {
654
658
  sessionState: { session: o }
655
- } = U(), t = N(), {
659
+ } = U(), t = z(), {
656
660
  messagesState: { messages: n }
657
- } = A(), {
661
+ } = O(), {
658
662
  routerState: { screen: s }
659
663
  } = H();
660
664
  return {
@@ -666,7 +670,7 @@ function X() {
666
670
  currentScreen: s
667
671
  };
668
672
  }
669
- function no({
673
+ function so({
670
674
  currentMessage: e
671
675
  }) {
672
676
  var n;
@@ -696,7 +700,7 @@ function xe(e) {
696
700
  p == null ? void 0 : p.messageContainer
697
701
  ),
698
702
  children: [
699
- 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((u) => /* @__PURE__ */ r(Bt, { attachment: u }, u.id)) }),
703
+ 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((u) => /* @__PURE__ */ r(Yt, { attachment: u }, u.id)) }),
700
704
  v.length > 0 && /* @__PURE__ */ d("div", { className: "flex flex-row gap-2", children: [
701
705
  /* @__PURE__ */ r(
702
706
  "div",
@@ -724,13 +728,13 @@ function xe(e) {
724
728
  children: /* @__PURE__ */ r(Se, { messageType: n, messageId: t, children: v })
725
729
  }
726
730
  ),
727
- /* @__PURE__ */ r(no, { currentMessage: e })
731
+ /* @__PURE__ */ r(so, { currentMessage: e })
728
732
  ] })
729
733
  ]
730
734
  }
731
735
  );
732
736
  }
733
- function so(e) {
737
+ function ao(e) {
734
738
  return /* @__PURE__ */ r("div", { className: "w-full max-w-full overflow-auto shrink-0", children: /* @__PURE__ */ r("pre", { className: "text-xs leading-tight whitespace-pre-wrap break-word", children: JSON.stringify(e, null, 1) }) });
735
739
  }
736
740
  const _e = ee.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
@@ -777,9 +781,9 @@ function ve({
777
781
  (e == null ? void 0 : e.name) && /* @__PURE__ */ r(Te, { children: (n = (t = e == null ? void 0 : e.name) == null ? void 0 : t.slice(0, 1)) == null ? void 0 : n.toUpperCase() })
778
782
  ] });
779
783
  }
780
- function ao({ agent: e }) {
781
- return /* @__PURE__ */ r(M, { children: /* @__PURE__ */ d(
782
- C,
784
+ function io({ agent: e }) {
785
+ return /* @__PURE__ */ r(D, { children: /* @__PURE__ */ d(
786
+ k,
783
787
  {
784
788
  ...f("chat/bot_loading/root"),
785
789
  className: "flex flex-row items-end w-full gap-2 animate-pulse",
@@ -804,7 +808,7 @@ function ao({ agent: e }) {
804
808
  }
805
809
  ) });
806
810
  }
807
- const Ut = '*,: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))}', io = ae.Provider, lo = ae.Root, co = ae.Trigger, Xt = ee.forwardRef(({ className: e, sideOffset: o = 4, ...t }, n) => /* @__PURE__ */ r(
811
+ const Xt = '*,: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))}', lo = ae.Provider, co = ae.Root, po = ae.Trigger, qt = ee.forwardRef(({ className: e, sideOffset: o = 4, ...t }, n) => /* @__PURE__ */ r(
808
812
  ae.Content,
809
813
  {
810
814
  ref: n,
@@ -816,18 +820,18 @@ const Ut = '*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;-
816
820
  ...t
817
821
  }
818
822
  ));
819
- Xt.displayName = ae.Content.displayName;
823
+ qt.displayName = ae.Content.displayName;
820
824
  function oe({
821
825
  children: e,
822
826
  content: o,
823
827
  side: t,
824
828
  align: n
825
829
  }) {
826
- const { disableTooltips: s } = N();
827
- return !o || s ? e : /* @__PURE__ */ d(lo, { children: [
828
- /* @__PURE__ */ r(co, { asChild: !0, children: e }),
830
+ const { disableTooltips: s } = z();
831
+ return !o || s ? e : /* @__PURE__ */ d(co, { children: [
832
+ /* @__PURE__ */ r(po, { asChild: !0, children: e }),
829
833
  /* @__PURE__ */ r(
830
- Xt,
834
+ qt,
831
835
  {
832
836
  side: t,
833
837
  align: n,
@@ -838,12 +842,12 @@ function oe({
838
842
  )
839
843
  ] });
840
844
  }
841
- const wt = 450;
845
+ const ft = 450;
842
846
  function $() {
843
- const [e, o] = L.useState(() => (window.top || window).innerWidth < wt);
847
+ const [e, o] = L.useState(() => (window.top || window).innerWidth < ft);
844
848
  return L.useEffect(() => {
845
849
  const t = window.top || window, n = () => {
846
- o(t.innerWidth < wt);
850
+ o(t.innerWidth < ft);
847
851
  };
848
852
  return n(), t.addEventListener("resize", n), () => {
849
853
  t.removeEventListener("resize", n);
@@ -855,17 +859,17 @@ const ce = {
855
859
  transitionDuration: "1000ms"
856
860
  };
857
861
  function K() {
858
- var b, u, h, x, z, I, y, k, D, j, w, T, P, E, g, _, ie, Re, Pe, je, 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, lt;
859
- const { dir: e } = ke(), { isSmallScreen: o } = $(), { theme: t, inline: n } = N(), s = (q) => n ? "100%" : q, i = (q, ge) => o ? `100dv${q}` : ge, a = (q, ge) => s(i(q, ge)), l = {
862
+ var b, u, h, x, C, T, y, N, _, E, w, M, j, R, g, I, ie, Re, Pe, je, Ae, Oe, Fe, He, We, Le, $e, Be, Ye, Ue, Xe, qe, Ve, Ge, Ze, Ke, Qe, Je, et, tt, rt, ot, nt, st, at, it, lt;
863
+ const { dir: e } = ke(), { isSmallScreen: o } = $(), { theme: t, inline: n } = z(), s = (q) => n ? "100%" : q, i = (q, ge) => o ? `100dv${q}` : ge, a = (q, ge) => s(i(q, ge)), l = {
860
864
  zIndex: ((b = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : b.zIndex) ?? 1e7,
861
865
  offset: {
862
866
  bottom: ((h = (u = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : u.offset) == null ? void 0 : h.bottom) ?? 20,
863
- right: ((z = (x = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : x.offset) == null ? void 0 : z.right) ?? (e === "ltr" ? 20 : "initial"),
864
- left: ((y = (I = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : I.offset) == null ? void 0 : y.left) ?? (e === "rtl" ? 20 : "initial")
867
+ right: ((C = (x = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : x.offset) == null ? void 0 : C.right) ?? (e === "ltr" ? 20 : "initial"),
868
+ left: ((y = (T = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : T.offset) == null ? void 0 : y.left) ?? (e === "rtl" ? 20 : "initial")
865
869
  },
866
870
  size: {
867
- button: ((D = (k = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : k.size) == null ? void 0 : D.button) ?? 48,
868
- icon: ((w = (j = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : j.size) == null ? void 0 : w.icon) ?? 24
871
+ button: ((_ = (N = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : N.size) == null ? void 0 : _.button) ?? 48,
872
+ icon: ((w = (E = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : E.size) == null ? void 0 : w.icon) ?? 24
869
873
  }
870
874
  }, c = (() => {
871
875
  const q = e === "ltr" ? l.offset.right : l.offset.left;
@@ -875,18 +879,18 @@ function K() {
875
879
  primaryColor: (t == null ? void 0 : t.primaryColor) ?? "hsl(0 0% 9%)",
876
880
  widgetTrigger: l,
877
881
  widgetContentContainer: {
878
- borderRadius: o ? "0px" : ((T = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : T.borderRadius) ?? "32px",
879
- zIndex: ((P = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : P.zIndex) ?? l.zIndex + 1,
880
- outline: ((E = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : E.outline) ?? "none",
882
+ borderRadius: o ? "0px" : ((M = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : M.borderRadius) ?? "32px",
883
+ zIndex: ((j = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : j.zIndex) ?? l.zIndex + 1,
884
+ outline: ((R = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : R.outline) ?? "none",
881
885
  // was: '1px solid'
882
886
  outlineColor: ((g = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : g.outlineColor) ?? "hsl(0 0% 50% / .5)",
883
- boxShadow: ((_ = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : _.boxShadow) ?? "0 0px 100px 0px rgb(0 0 0 / 0.25)",
887
+ boxShadow: ((I = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : I.boxShadow) ?? "0 0px 100px 0px rgb(0 0 0 / 0.25)",
884
888
  transitionProperty: ((ie = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : ie.transitionProperty) ?? "all",
885
889
  transitionTimingFunction: ((Re = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Re.transitionTimingFunction) ?? ce.transitionTimingFunction,
886
890
  transitionDuration: ((Pe = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Pe.transitionDuration) ?? ce.transitionDuration,
887
891
  offset: {
888
- side: o ? 0 : l.offset.bottom + l.size.button + Q.y * 2 + (((Oe = (je = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : je.offset) == null ? void 0 : Oe.side) ?? 10),
889
- align: o ? 0 : c + (((Fe = (Ae = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Ae.offset) == null ? void 0 : Fe.align) ?? 0)
892
+ side: o ? 0 : l.offset.bottom + l.size.button + Q.y * 2 + (((Ae = (je = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : je.offset) == null ? void 0 : Ae.side) ?? 10),
893
+ align: o ? 0 : c + (((Fe = (Oe = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Oe.offset) == null ? void 0 : Fe.align) ?? 0)
890
894
  }
891
895
  },
892
896
  screens: {
@@ -960,17 +964,17 @@ function K() {
960
964
  return {
961
965
  theme: p,
962
966
  computed: v,
963
- cssVars: po({
967
+ cssVars: mo({
964
968
  palette: p.palette,
965
969
  primary: p.primaryColor
966
970
  })
967
971
  };
968
972
  }
969
- function po({
973
+ function mo({
970
974
  palette: e,
971
975
  primary: o
972
976
  }) {
973
- const t = qt(e), n = pt(o).toHsl(), s = pt(o).isLight() ? t[950] : t[50];
977
+ const t = Vt(e), n = pt(o).toHsl(), s = pt(o).isLight() ? t[950] : t[50];
974
978
  return {
975
979
  "--opencx-primary": `${n.h} ${n.s * 100}% ${n.l * 100}%`,
976
980
  "--opencx-primary-foreground": s,
@@ -989,7 +993,7 @@ function po({
989
993
  "--opencx-ring": "var(--opencx-foreground)"
990
994
  };
991
995
  }
992
- function qt(e) {
996
+ function Vt(e) {
993
997
  const o = {
994
998
  50: "0 0% 98%",
995
999
  100: "0 0% 96.1%",
@@ -1049,11 +1053,11 @@ function qt(e) {
1049
1053
  case "slate":
1050
1054
  return s;
1051
1055
  default:
1052
- return F(e, qt.name), o;
1056
+ return F(e, Vt.name), o;
1053
1057
  }
1054
1058
  }
1055
- function Vt() {
1056
- const { contentIframeRef: e } = O(), { inline: o } = N();
1059
+ function Gt() {
1060
+ const { contentIframeRef: e } = A(), { inline: o } = z();
1057
1061
  return {
1058
1062
  setWidth: (t) => {
1059
1063
  var n;
@@ -1075,12 +1079,12 @@ function Me({
1075
1079
  width: e,
1076
1080
  height: o
1077
1081
  }) {
1078
- const { isSmallScreen: t } = $(), { setWidth: n, setHeight: s } = Vt();
1082
+ const { isSmallScreen: t } = $(), { setWidth: n, setHeight: s } = Gt();
1079
1083
  se(() => {
1080
1084
  e && n(e), o && s(o);
1081
1085
  }, [t, o, e, n, s]);
1082
1086
  }
1083
- const ft = mr;
1087
+ const xt = hr;
1084
1088
  function ne({
1085
1089
  name: e,
1086
1090
  className: o
@@ -1088,49 +1092,49 @@ function ne({
1088
1092
  const t = (() => {
1089
1093
  switch (e) {
1090
1094
  case "Check":
1091
- return Nr;
1095
+ return Sr;
1092
1096
  case "CheckCheck":
1093
- return zr;
1097
+ return Nr;
1094
1098
  case "CircleCheck":
1095
- return Mt;
1099
+ return Dt;
1096
1100
  case "CircleCheckBig":
1097
- return Cr;
1101
+ return zr;
1098
1102
  case "CircleX":
1099
- return kr;
1103
+ return Cr;
1100
1104
  case "Expand":
1101
- return yr;
1105
+ return kr;
1102
1106
  case "Maximize":
1103
- return br;
1107
+ return yr;
1104
1108
  case "Maximize2":
1105
- return vr;
1109
+ return br;
1106
1110
  case "Minimize":
1107
- return xr;
1111
+ return vr;
1108
1112
  case "Minimize2":
1109
- return fr;
1113
+ return xr;
1110
1114
  case "Shrink":
1111
- return wr;
1115
+ return fr;
1112
1116
  case "SquareCheck":
1113
- return ur;
1117
+ return wr;
1114
1118
  case "SquareCheckBig":
1115
- return gr;
1119
+ return ur;
1116
1120
  case "SquareX":
1117
- return hr;
1121
+ return gr;
1118
1122
  case "X":
1119
1123
  return Ce;
1120
1124
  case void 0:
1121
- return ft;
1125
+ return xt;
1122
1126
  default:
1123
- return F(e, ne.name), ft;
1127
+ return F(e, ne.name), xt;
1124
1128
  }
1125
1129
  })();
1126
1130
  return /* @__PURE__ */ r(t, { className: m("size-4", o) });
1127
1131
  }
1128
- function mo() {
1132
+ function ho() {
1129
1133
  var t;
1130
1134
  const e = X(), o = (t = e.config.customComponents) == null ? void 0 : t.headerBottom;
1131
1135
  return o ? /* @__PURE__ */ r(o, { ...e }) : null;
1132
1136
  }
1133
- function ho({ fallback: e }) {
1137
+ function go({ fallback: e }) {
1134
1138
  var n;
1135
1139
  const o = X(), t = (n = o.config.customComponents) == null ? void 0 : n.headerTitle;
1136
1140
  return t ? /* @__PURE__ */ r(t, { ...o }) : e;
@@ -1138,9 +1142,9 @@ function ho({ fallback: e }) {
1138
1142
  function De() {
1139
1143
  const {
1140
1144
  widgetCtx: { org: e }
1141
- } = O(), {
1145
+ } = A(), {
1142
1146
  routerState: { screen: o }
1143
- } = H(), { textContent: t } = N();
1147
+ } = H(), { textContent: t } = z();
1144
1148
  return (() => {
1145
1149
  var s, i;
1146
1150
  switch (o) {
@@ -1156,7 +1160,7 @@ function De() {
1156
1160
  }
1157
1161
  })() ?? e.name ?? "Chat";
1158
1162
  }
1159
- function go(e) {
1163
+ function uo(e) {
1160
1164
  switch (e) {
1161
1165
  case "chat":
1162
1166
  return f("chat/header");
@@ -1169,8 +1173,8 @@ function go(e) {
1169
1173
  return;
1170
1174
  }
1171
1175
  }
1172
- function uo() {
1173
- const { router: e } = N(), {
1176
+ function wo() {
1177
+ const { router: e } = z(), {
1174
1178
  routerState: { screen: o },
1175
1179
  toSessionsScreen: t
1176
1180
  } = H();
@@ -1181,11 +1185,11 @@ function uo() {
1181
1185
  size: "fit",
1182
1186
  className: "rounded-full",
1183
1187
  onClick: t,
1184
- children: /* @__PURE__ */ r(Sr, { className: "size-4 rtl:-scale-100" })
1188
+ children: /* @__PURE__ */ r(_r, { className: "size-4 rtl:-scale-100" })
1185
1189
  }
1186
1190
  );
1187
1191
  }
1188
- function wo({
1192
+ function fo({
1189
1193
  button: e
1190
1194
  }) {
1191
1195
  const { setIsOpen: o } = Z(), { isSmallScreen: t } = $(), n = X();
@@ -1206,9 +1210,9 @@ function wo({
1206
1210
  function be({
1207
1211
  button: e
1208
1212
  }) {
1209
- const [o, t] = R(!1), {
1213
+ const [o, t] = P(!1), {
1210
1214
  routerState: { screen: n }
1211
- } = H(), { isSmallScreen: s } = $(), { theme: i } = K(), { setWidth: a, setHeight: l } = Vt(), c = X();
1215
+ } = H(), { isSmallScreen: s } = $(), { theme: i } = K(), { setWidth: a, setHeight: l } = Gt(), c = X();
1212
1216
  if (n !== "chat" && n !== "sessions") return null;
1213
1217
  const p = (() => {
1214
1218
  switch (n) {
@@ -1251,16 +1255,17 @@ function be({
1251
1255
  }
1252
1256
  );
1253
1257
  }
1254
- function Gt({
1258
+ function Zt({
1255
1259
  button: e
1256
1260
  }) {
1257
- var I, y;
1258
- const { close: o } = he(), { widgetCtx: t } = O(), { setIsOpen: n } = Z(), { resolveSession: s, sessionState: i } = U(), { isSmallScreen: a } = $(), l = X(), c = !i.session, p = ((I = i.session) == null ? void 0 : I.isOpened) === !1, v = e.onResolved || "stay-in-chat", b = e.behaviorBeforeSessionCreation || "disabled", u = e.behaviorIfSessionIsResolved || "disabled", h = !!(i.isResolvingSession || c && b === "disabled" || p && u === "disabled"), x = async () => {
1259
- const { success: k, error: D } = await s();
1260
- if (o(), !k) return console.error(D);
1261
+ var T, y;
1262
+ const { close: o } = he(), { widgetCtx: t } = A(), { setIsOpen: n } = Z(), { resolveSession: s, sessionState: i } = U(), { isSmallScreen: a } = $(), l = X(), c = !i.session, p = ((T = i.session) == null ? void 0 : T.isOpened) === !1, v = e.onResolved || "stay-in-chat", b = e.behaviorBeforeSessionCreation || "disabled", u = e.behaviorIfSessionIsResolved || "disabled", h = !!(i.isResolvingSession || c && b === "disabled" || p && u === "disabled"), x = async () => {
1263
+ const { success: N, error: _ } = await s();
1264
+ if (o(), !N)
1265
+ return console.error(_), !1;
1261
1266
  switch (v) {
1262
1267
  case "stay-in-chat":
1263
- return;
1268
+ break;
1264
1269
  case "close-widget":
1265
1270
  n(!1);
1266
1271
  break;
@@ -1271,10 +1276,11 @@ function Gt({
1271
1276
  n(!1), t.resetChat();
1272
1277
  break;
1273
1278
  default:
1274
- F(v, Gt.name);
1279
+ F(v, Zt.name);
1275
1280
  break;
1276
1281
  }
1277
- }, z = () => {
1282
+ return !0;
1283
+ }, C = () => {
1278
1284
  if (c)
1279
1285
  switch (b) {
1280
1286
  case "disabled":
@@ -1285,7 +1291,7 @@ function Gt({
1285
1291
  default:
1286
1292
  F(
1287
1293
  b,
1288
- z.name
1294
+ C.name
1289
1295
  );
1290
1296
  }
1291
1297
  if (p)
@@ -1306,7 +1312,7 @@ function Gt({
1306
1312
  default:
1307
1313
  F(
1308
1314
  u,
1309
- z.name
1315
+ C.name
1310
1316
  );
1311
1317
  }
1312
1318
  };
@@ -1321,16 +1327,16 @@ function Gt({
1321
1327
  className: "rounded-full",
1322
1328
  disabled: h,
1323
1329
  onClick: () => {
1324
- var k;
1325
- return (k = e.onClicked) == null ? void 0 : k.call(e, l);
1330
+ var N;
1331
+ return (N = e.onClicked) == null ? void 0 : N.call(e, l);
1326
1332
  },
1327
1333
  children: /* @__PURE__ */ r(ne, { name: e.icon })
1328
1334
  }
1329
1335
  ),
1330
1336
  children: /* @__PURE__ */ d(ze, { children: [
1331
- /* @__PURE__ */ r(At, { children: /* @__PURE__ */ r(Wt, { children: e.confirmation.title || "Close conversation" }) }),
1332
- /* @__PURE__ */ r(Ft, { children: /* @__PURE__ */ r(Lt, { children: e.confirmation.description || "Are you sure you want to close this conversation?" }) }),
1333
- /* @__PURE__ */ d(Ht, { children: [
1337
+ /* @__PURE__ */ r(Ft, { children: /* @__PURE__ */ r(Lt, { children: e.confirmation.title || "Close conversation" }) }),
1338
+ /* @__PURE__ */ r(Ht, { children: /* @__PURE__ */ r($t, { children: e.confirmation.description || "Are you sure you want to close this conversation?" }) }),
1339
+ /* @__PURE__ */ d(Wt, { children: [
1334
1340
  /* @__PURE__ */ r(
1335
1341
  S,
1336
1342
  {
@@ -1344,9 +1350,9 @@ function Gt({
1344
1350
  S,
1345
1351
  {
1346
1352
  variant: "destructive",
1347
- onClick: () => {
1348
- var k, D;
1349
- x(), (D = (k = e.confirmation) == null ? void 0 : k.onConfirmed) == null || D.call(k, l);
1353
+ onClick: async () => {
1354
+ var _, E;
1355
+ await x() && ((E = (_ = e.confirmation) == null ? void 0 : _.onResolved) == null || E.call(_, l));
1350
1356
  },
1351
1357
  disabled: i.isResolvingSession,
1352
1358
  children: e.confirmation.confirmButtonText || "Yes"
@@ -1362,8 +1368,8 @@ function Gt({
1362
1368
  size: "fit",
1363
1369
  className: "rounded-full",
1364
1370
  onClick: () => {
1365
- var k;
1366
- p || c ? z() : x(), (k = e.onClicked) == null || k.call(e, l);
1371
+ var N;
1372
+ p || c ? C() : x(), (N = e.onClicked) == null || N.call(e, l);
1367
1373
  },
1368
1374
  disabled: h,
1369
1375
  children: /* @__PURE__ */ r(ne, { name: e.icon })
@@ -1373,25 +1379,25 @@ function Gt({
1373
1379
  function ye({ button: e }) {
1374
1380
  switch (e.functionality) {
1375
1381
  case "close-widget":
1376
- return /* @__PURE__ */ r(wo, { button: e });
1382
+ return /* @__PURE__ */ r(fo, { button: e });
1377
1383
  case "expand-shrink":
1378
1384
  return /* @__PURE__ */ r(be, { button: e });
1379
1385
  case "resolve-session":
1380
- return /* @__PURE__ */ r(Gt, { button: e });
1386
+ return /* @__PURE__ */ r(Zt, { button: e });
1381
1387
  default:
1382
1388
  return F(e, ye.name), null;
1383
1389
  }
1384
1390
  }
1385
- const fo = {
1391
+ const xo = {
1386
1392
  functionality: "close-widget",
1387
1393
  hideOnLargeScreen: !0,
1388
1394
  icon: "X"
1389
1395
  };
1390
- function xo() {
1396
+ function vo() {
1391
1397
  const {
1392
1398
  routerState: { screen: e }
1393
- } = H(), { headerButtons: o } = N(), t = e === "chat" ? o == null ? void 0 : o.chatScreen : e === "sessions" ? o == null ? void 0 : o.sessionsScreen : [];
1394
- return !t || t.length === 0 ? /* @__PURE__ */ r(ye, { button: fo }) : /* @__PURE__ */ r(J, { children: t.map((n) => /* @__PURE__ */ r(
1399
+ } = H(), { headerButtons: o } = z(), t = e === "chat" ? o == null ? void 0 : o.chatScreen : e === "sessions" ? o == null ? void 0 : o.sessionsScreen : [];
1400
+ return !t || t.length === 0 ? /* @__PURE__ */ r(ye, { button: xo }) : /* @__PURE__ */ r(J, { children: t.map((n) => /* @__PURE__ */ r(
1395
1401
  ye,
1396
1402
  {
1397
1403
  button: n
@@ -1399,13 +1405,13 @@ function xo() {
1399
1405
  `${n.functionality}-${n.icon}`
1400
1406
  )) });
1401
1407
  }
1402
- function Zt() {
1408
+ function Kt() {
1403
1409
  const {
1404
1410
  routerState: { screen: e }
1405
- } = H(), o = go(e), t = De();
1411
+ } = H(), o = uo(e), t = De();
1406
1412
  return /* @__PURE__ */ d("header", { ...o, className: "py-2 px-4 shrink-0", children: [
1407
1413
  /* @__PURE__ */ d("div", { className: "flex items-center gap-2", children: [
1408
- /* @__PURE__ */ r(uo, {}),
1414
+ /* @__PURE__ */ r(wo, {}),
1409
1415
  /* @__PURE__ */ r(
1410
1416
  "div",
1411
1417
  {
@@ -1414,31 +1420,31 @@ function Zt() {
1414
1420
  e === "sessions" && "ps-2"
1415
1421
  ),
1416
1422
  children: /* @__PURE__ */ r(
1417
- ho,
1423
+ go,
1418
1424
  {
1419
1425
  fallback: /* @__PURE__ */ r("h2", { className: "font-semibold", children: t })
1420
1426
  }
1421
1427
  )
1422
1428
  }
1423
1429
  ),
1424
- /* @__PURE__ */ r(xo, {})
1430
+ /* @__PURE__ */ r(vo, {})
1425
1431
  ] }),
1426
- /* @__PURE__ */ r(mo, {})
1432
+ /* @__PURE__ */ r(ho, {})
1427
1433
  ] });
1428
1434
  }
1429
- function Kt({ className: e }) {
1430
- return /* @__PURE__ */ r(_r, { className: m("size-4 animate-spin", e) });
1435
+ function Qt({ className: e }) {
1436
+ return /* @__PURE__ */ r(Ir, { className: m("size-4 animate-spin", e) });
1431
1437
  }
1432
- function vo() {
1438
+ function bo() {
1433
1439
  const {
1434
1440
  messagesState: { isInitialFetchLoading: e }
1435
- } = A(), { isSmallScreen: o } = $(), { activeMode: t, Component: n } = zt();
1441
+ } = O(), { isSmallScreen: o } = $(), { activeMode: t, Component: n } = Nt();
1436
1442
  return {
1437
1443
  isCanvasOpen: !e && !o && !!t && !!n
1438
1444
  };
1439
1445
  }
1440
- function bo() {
1441
- const e = X(), { activeMode: o, Component: t } = zt(), { sendMessage: n } = A(), { createStateCheckpoint: s } = U(), [i, a] = R(!1), l = async (c) => {
1446
+ function yo() {
1447
+ const e = X(), { activeMode: o, Component: t } = Nt(), { sendMessage: n } = O(), { createStateCheckpoint: s } = U(), [i, a] = P(!1), l = async (c) => {
1442
1448
  try {
1443
1449
  a(!0), await n(c);
1444
1450
  } catch (p) {
@@ -1459,11 +1465,11 @@ function bo() {
1459
1465
  );
1460
1466
  }
1461
1467
  function V() {
1462
- const { dir: e } = ke(), o = N();
1463
- return Ct(() => {
1464
- const t = Br(o.language) ? o.language : "en";
1468
+ const { dir: e } = ke(), o = z();
1469
+ return zt(() => {
1470
+ const t = Yr(o.language) ? o.language : "en";
1465
1471
  return {
1466
- t: (n) => Yr(n, t, o.translationOverrides),
1472
+ t: (n) => Ur(n, t, o.translationOverrides),
1467
1473
  language: t,
1468
1474
  dir: t === "ar" ? "rtl" : "ltr",
1469
1475
  hostDocumentDir: e
@@ -1474,7 +1480,7 @@ const W = L.forwardRef(
1474
1480
  (e, o) => {
1475
1481
  var t, n, s;
1476
1482
  return /* @__PURE__ */ r(
1477
- C,
1483
+ k,
1478
1484
  {
1479
1485
  ...e,
1480
1486
  ref: o,
@@ -1489,7 +1495,7 @@ const W = L.forwardRef(
1489
1495
  }
1490
1496
  );
1491
1497
  W.displayName = "MotionDiv__VerticalReveal";
1492
- const yo = [
1498
+ const ko = [
1493
1499
  {
1494
1500
  label: "Terrible",
1495
1501
  value: 1,
@@ -1516,14 +1522,14 @@ const yo = [
1516
1522
  emoji: "😍"
1517
1523
  }
1518
1524
  ];
1519
- function ko() {
1525
+ function Co() {
1520
1526
  const { isSmallScreen: e } = $(), { t: o } = V(), {
1521
1527
  submitCsat: t,
1522
1528
  isCsatRequested: n,
1523
1529
  isCsatSubmitted: s,
1524
1530
  submittedScore: i,
1525
1531
  submittedFeedback: a
1526
- } = Nt(), [l, c] = R(null), [p, v] = R(null), b = (h) => {
1532
+ } = St(), [l, c] = P(null), [p, v] = P(null), b = (h) => {
1527
1533
  c((x) => x === h ? null : h);
1528
1534
  }, u = () => {
1529
1535
  l && t({
@@ -1532,7 +1538,7 @@ function ko() {
1532
1538
  });
1533
1539
  };
1534
1540
  return !n && !s ? null : /* @__PURE__ */ d("div", { className: "w-1/2 min-w-80 max-w-96 mx-auto overflow-hidden", children: [
1535
- /* @__PURE__ */ r(M, { mode: "wait", children: n && !l ? /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r("p", { className: "text-sm text-muted-foreground text-center pt-2", children: o("csat_title") }) }, "csat-requested-title") : s ? /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r("p", { className: "text-sm text-muted-foreground text-center pt-2", children: o("csat_submitted_title") }) }, "csat-submitted-title") : null }),
1541
+ /* @__PURE__ */ r(D, { mode: "wait", children: n && !l ? /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r("p", { className: "text-sm text-muted-foreground text-center pt-2", children: o("csat_title") }) }, "csat-requested-title") : s ? /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r("p", { className: "text-sm text-muted-foreground text-center pt-2", children: o("csat_submitted_title") }) }, "csat-submitted-title") : null }),
1536
1542
  /* @__PURE__ */ r(
1537
1543
  "div",
1538
1544
  {
@@ -1542,7 +1548,7 @@ function ko() {
1542
1548
  "transition-all",
1543
1549
  s && "gap-0 justify-center"
1544
1550
  ),
1545
- children: yo.map((h) => /* @__PURE__ */ r(
1551
+ children: ko.map((h) => /* @__PURE__ */ r(
1546
1552
  S,
1547
1553
  {
1548
1554
  variant: h.value === l ? "secondary" : "ghost",
@@ -1564,7 +1570,7 @@ function ko() {
1564
1570
  ))
1565
1571
  }
1566
1572
  ),
1567
- /* @__PURE__ */ r(M, { mode: "wait", children: (l || i) && /* @__PURE__ */ r(W, { children: /* @__PURE__ */ d("div", { className: "pb-2 px-2 flex items-end", children: [
1573
+ /* @__PURE__ */ r(D, { mode: "wait", children: (l || i) && /* @__PURE__ */ r(W, { children: /* @__PURE__ */ d("div", { className: "pb-2 px-2 flex items-end", children: [
1568
1574
  /* @__PURE__ */ r(
1569
1575
  "textarea",
1570
1576
  {
@@ -1596,7 +1602,7 @@ function ko() {
1596
1602
  "rounded-full size-8 flex items-center justify-center p-0",
1597
1603
  s && "opacity-0 size-0"
1598
1604
  ),
1599
- children: /* @__PURE__ */ r(Dt, { className: "size-4" })
1605
+ children: /* @__PURE__ */ r(Et, { className: "size-4" })
1600
1606
  }
1601
1607
  )
1602
1608
  ] }) }, "feedback-box") }),
@@ -1613,7 +1619,7 @@ function Ee({
1613
1619
  className: o,
1614
1620
  ...t
1615
1621
  }) {
1616
- const { sendMessage: n } = A(), s = () => {
1622
+ const { sendMessage: n } = O(), s = () => {
1617
1623
  const i = e.trim();
1618
1624
  i && n({ content: i });
1619
1625
  };
@@ -1629,7 +1635,7 @@ function Ee({
1629
1635
  }
1630
1636
  );
1631
1637
  }
1632
- function Co() {
1638
+ function zo() {
1633
1639
  const { t: e } = V(), o = [e("i_need_more_help"), e("this_was_helpful")];
1634
1640
  return /* @__PURE__ */ r(
1635
1641
  "div",
@@ -1647,15 +1653,15 @@ function Co() {
1647
1653
  }
1648
1654
  );
1649
1655
  }
1650
- function xt() {
1651
- const { sessionState: e } = U(), { chatFooterItems: o } = N(), t = !!e.session && !e.session.isOpened, n = !t;
1652
- return /* @__PURE__ */ r(M, { mode: "wait", children: o == null ? void 0 : o.map((s, i) => 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(Se, { children: s.message }) }) }, `${s.message}-${i}`)) });
1656
+ function vt() {
1657
+ const { sessionState: e } = U(), { chatFooterItems: o } = z(), t = !!e.session && !e.session.isOpened, n = !t;
1658
+ return /* @__PURE__ */ r(D, { mode: "wait", children: o == null ? void 0 : o.map((s, i) => 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(Se, { children: s.message }) }) }, `${s.message}-${i}`)) });
1653
1659
  }
1654
- function zo({
1660
+ function No({
1655
1661
  file: { status: e, file: o, error: t },
1656
1662
  onCancel: n
1657
1663
  }) {
1658
- const [s, i] = R(
1664
+ const [s, i] = P(
1659
1665
  null
1660
1666
  );
1661
1667
  se(() => {
@@ -1666,9 +1672,9 @@ function zo({
1666
1672
  const a = () => {
1667
1673
  switch (e) {
1668
1674
  case "uploading":
1669
- return /* @__PURE__ */ r(Mr, { className: "size-4 animate-spin" });
1675
+ return /* @__PURE__ */ r(Dr, { className: "size-4 animate-spin" });
1670
1676
  case "error":
1671
- return /* @__PURE__ */ r(Tr, { className: "size-4 text-destructive" });
1677
+ return /* @__PURE__ */ r(Mr, { className: "size-4 text-destructive" });
1672
1678
  default:
1673
1679
  return null;
1674
1680
  }
@@ -1681,7 +1687,7 @@ function zo({
1681
1687
  className: "object-cover bg-secondary size-full",
1682
1688
  alt: o.name
1683
1689
  }
1684
- ) : c === "audio" ? /* @__PURE__ */ r(Dr, { className: "size-4 text-muted-foreground" }) : c === "video" ? /* @__PURE__ */ r(Er, { className: "size-4 text-muted-foreground" }) : o.type === "application/pdf" ? /* @__PURE__ */ r(It, { className: "size-4 text-muted-foreground" }) : jt({ type: o.type, name: o.name }) ? /* @__PURE__ */ r(Tt, { className: "size-4 text-muted-foreground" }) : /* @__PURE__ */ r(Rr, { className: "size-4 text-muted-foreground" });
1690
+ ) : c === "audio" ? /* @__PURE__ */ r(Er, { className: "size-4 text-muted-foreground" }) : c === "video" ? /* @__PURE__ */ r(Rr, { className: "size-4 text-muted-foreground" }) : o.type === "application/pdf" ? /* @__PURE__ */ r(Tt, { className: "size-4 text-muted-foreground" }) : At({ type: o.type, name: o.name }) ? /* @__PURE__ */ r(Mt, { className: "size-4 text-muted-foreground" }) : /* @__PURE__ */ r(Pr, { className: "size-4 text-muted-foreground" });
1685
1691
  };
1686
1692
  return /* @__PURE__ */ r(
1687
1693
  oe,
@@ -1722,69 +1728,72 @@ function zo({
1722
1728
  }
1723
1729
  );
1724
1730
  }
1725
- function No() {
1726
- var E;
1727
- const { isSmallScreen: e } = $(), o = B(null), { sendMessage: t } = A(), { sessionState: n } = U(), { disableSendingWhenAwaitingAIReply: s } = N(), { t: i } = V(), [a, l] = R(""), {
1731
+ const So = 25 * 1024 * 1024;
1732
+ function _o() {
1733
+ var R;
1734
+ const { isSmallScreen: e } = $(), o = B(null), { sendMessage: t } = O(), { sessionState: n } = U(), { disableSendingWhenAwaitingAIReply: s } = z(), { t: i } = V(), [a, l] = P(""), {
1728
1735
  allFiles: c,
1729
1736
  emptyTheFiles: p,
1730
1737
  handleCancelUpload: v,
1731
1738
  appendFiles: b,
1732
1739
  isUploading: u,
1733
1740
  successFiles: h
1734
- } = sr(), x = !!((E = n.session) != null && E.isHandedOff), { isAwaitingBotReply: z } = St(), I = s !== !1 && z, y = (g) => {
1741
+ } = ar(), x = !!((R = n.session) != null && R.isHandedOff), { isAwaitingBotReply: C } = _t(), T = s !== !1 && C, y = (g) => {
1735
1742
  b(g);
1736
- }, k = !a.trim() && h.length === 0, D = async () => {
1737
- if (I || k) return;
1743
+ }, N = !a.trim() && h.length === 0, _ = async () => {
1744
+ if (T || N) return;
1738
1745
  u && console.info("please wait for the file(s) to upload");
1739
1746
  const g = a.trim();
1740
1747
  t({
1741
1748
  content: g,
1742
1749
  attachments: h.flatMap(
1743
- (_) => _.fileUrl ? [
1750
+ (I) => I.fileUrl ? [
1744
1751
  {
1745
- url: _.fileUrl,
1746
- type: _.file.type,
1747
- name: _.file.name,
1748
- id: _.id,
1749
- size: _.file.size
1752
+ url: I.fileUrl,
1753
+ type: I.file.type,
1754
+ name: I.file.name,
1755
+ id: I.id,
1756
+ size: I.file.size
1750
1757
  }
1751
1758
  ] : []
1752
1759
  )
1753
1760
  }), l(""), p();
1754
1761
  }, {
1755
- getRootProps: j,
1762
+ getRootProps: E,
1756
1763
  getInputProps: w,
1757
- open: T
1758
- } = Ur({
1764
+ open: M
1765
+ } = Xr({
1759
1766
  onDrop: y,
1760
1767
  noClick: !0,
1761
1768
  onDropRejected() {
1762
1769
  console.error("unsupported file type, or the file is too large");
1763
1770
  },
1764
- maxSize: 5 * 1024 * 1024,
1771
+ maxSize: So,
1765
1772
  accept: x ? {
1766
1773
  "text/*": [".txt"],
1767
1774
  "image/*": [".png", ".jpg", ".jpeg", ".gif"],
1768
1775
  "application/pdf": [".pdf"],
1769
- ...mt
1776
+ ...mt,
1777
+ ...ht
1770
1778
  } : {
1771
1779
  "image/png": [".png"],
1772
1780
  "image/jpeg": [".jpg", ".jpeg"],
1773
1781
  "image/gif": [".gif"],
1774
1782
  "image/webp": [".webp"],
1775
1783
  "application/pdf": [".pdf"],
1776
- ...mt
1784
+ ...mt,
1785
+ ...ht
1777
1786
  }
1778
- }), P = (g) => {
1779
- const _ = g.clipboardData;
1780
- _ && _.files.length > 0 && y(Array.from(_.files));
1787
+ }), j = (g) => {
1788
+ const I = g.clipboardData;
1789
+ I && I.files.length > 0 && y(Array.from(I.files));
1781
1790
  };
1782
1791
  return /* @__PURE__ */ d(
1783
1792
  "div",
1784
1793
  {
1785
1794
  ...f("chat/input_box/root"),
1786
1795
  className: "p-2 relative space-y-1",
1787
- ...j(),
1796
+ ...E(),
1788
1797
  children: [
1789
1798
  /* @__PURE__ */ r("input", { ...w() }),
1790
1799
  /* @__PURE__ */ d(
@@ -1810,8 +1819,8 @@ function No() {
1810
1819
  {
1811
1820
  ...f("chat/input_box/attachments_container"),
1812
1821
  className: "flex items-center gap-1",
1813
- children: /* @__PURE__ */ r(M, { mode: "popLayout", children: c.map((g) => /* @__PURE__ */ r(C, { snapExit: !0, children: /* @__PURE__ */ r(
1814
- zo,
1822
+ children: /* @__PURE__ */ r(D, { mode: "popLayout", children: c.map((g) => /* @__PURE__ */ r(k, { snapExit: !0, children: /* @__PURE__ */ r(
1823
+ No,
1815
1824
  {
1816
1825
  onCancel: () => v(g.id),
1817
1826
  file: g
@@ -1823,7 +1832,7 @@ function No() {
1823
1832
  "textarea",
1824
1833
  {
1825
1834
  ...f("chat/input_box/textarea"),
1826
- onPaste: P,
1835
+ onPaste: j,
1827
1836
  ref: o,
1828
1837
  id: "chat-input",
1829
1838
  value: a,
@@ -1841,7 +1850,7 @@ function No() {
1841
1850
  ),
1842
1851
  onChange: (g) => l(g.target.value),
1843
1852
  onKeyDown: async (g) => {
1844
- g.key === "Enter" && !g.shiftKey && (g.preventDefault(), D());
1853
+ g.key === "Enter" && !g.shiftKey && (g.preventDefault(), _());
1845
1854
  },
1846
1855
  placeholder: i("write_a_message_placeholder")
1847
1856
  }
@@ -1855,17 +1864,17 @@ function No() {
1855
1864
  {
1856
1865
  side: "top",
1857
1866
  align: "start",
1858
- content: "attach images, PDFs, or spreadsheets (maximum size 5mb)",
1867
+ content: "attach images, videos, PDFs, or spreadsheets (maximum size 25mb)",
1859
1868
  children: /* @__PURE__ */ r(
1860
1869
  S,
1861
1870
  {
1862
- onClick: T,
1871
+ onClick: M,
1863
1872
  size: "fit",
1864
1873
  variant: "ghost",
1865
1874
  className: m(
1866
1875
  "rounded-full size-8 flex items-center justify-center p-0 overflow-hidden"
1867
1876
  ),
1868
- children: /* @__PURE__ */ r(M, { mode: "wait", children: I ? /* @__PURE__ */ r(C, { children: /* @__PURE__ */ r(dt, { className: "size-4 opacity-50" }) }, "paper-clip-disabled") : /* @__PURE__ */ r(C, { children: /* @__PURE__ */ r(dt, { className: "size-4" }) }, "paper-clip") })
1877
+ children: /* @__PURE__ */ r(D, { mode: "wait", children: T ? /* @__PURE__ */ r(k, { children: /* @__PURE__ */ r(dt, { className: "size-4 opacity-50" }) }, "paper-clip-disabled") : /* @__PURE__ */ r(k, { children: /* @__PURE__ */ r(dt, { className: "size-4" }) }, "paper-clip") })
1869
1878
  }
1870
1879
  )
1871
1880
  }
@@ -1874,10 +1883,10 @@ function No() {
1874
1883
  S,
1875
1884
  {
1876
1885
  size: "fit",
1877
- onClick: D,
1878
- disabled: I || u || k,
1886
+ onClick: _,
1887
+ disabled: T || u || N,
1879
1888
  className: "rounded-full size-8 flex items-center justify-center p-0",
1880
- children: /* @__PURE__ */ r(M, { mode: "wait", children: I || u ? /* @__PURE__ */ r(C, { snapExit: !0, children: /* @__PURE__ */ r(Ir, { className: "size-4 animate-spin animate-iteration-infinite" }) }, "loading") : /* @__PURE__ */ r(C, { snapExit: !0, children: /* @__PURE__ */ r(Dt, { className: "size-4" }) }, "send") })
1889
+ children: /* @__PURE__ */ r(D, { mode: "wait", children: T || u ? /* @__PURE__ */ r(k, { snapExit: !0, children: /* @__PURE__ */ r(Tr, { className: "size-4 animate-spin animate-iteration-infinite" }) }, "loading") : /* @__PURE__ */ r(k, { snapExit: !0, children: /* @__PURE__ */ r(Et, { className: "size-4" }) }, "send") })
1881
1890
  }
1882
1891
  ) })
1883
1892
  ] })
@@ -1888,31 +1897,31 @@ function No() {
1888
1897
  }
1889
1898
  );
1890
1899
  }
1891
- function vt() {
1892
- const { widgetCtx: e } = O(), { router: o } = N(), { canCreateNewSession: t } = U(), { toSessionsScreen: n } = H(), { t: s } = V();
1900
+ function bt() {
1901
+ const { widgetCtx: e } = A(), { router: o } = z(), { canCreateNewSession: t } = U(), { toSessionsScreen: n } = H(), { t: s } = V();
1893
1902
  return /* @__PURE__ */ r(J, { 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") }) });
1894
1903
  }
1895
- function So() {
1896
- const { t: e } = V(), { isCsatRequested: o, isCsatSubmitted: t } = Nt();
1897
- return /* @__PURE__ */ r("div", { className: "p-2", children: /* @__PURE__ */ r("div", { className: "p-2 bg-muted rounded-3xl", children: /* @__PURE__ */ r(M, { mode: "wait", children: o || t ? /* @__PURE__ */ d(W, { children: [
1898
- /* @__PURE__ */ r(ko, {}),
1899
- /* @__PURE__ */ r(M, { mode: "wait", children: t && /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r(vt, {}) }, "new-conv-or-back-to-convs-button") })
1904
+ function Io() {
1905
+ const { t: e } = V(), { isCsatRequested: o, isCsatSubmitted: t } = St();
1906
+ return /* @__PURE__ */ r("div", { className: "p-2", children: /* @__PURE__ */ r("div", { className: "p-2 bg-muted rounded-3xl", children: /* @__PURE__ */ r(D, { mode: "wait", children: o || t ? /* @__PURE__ */ d(W, { children: [
1907
+ /* @__PURE__ */ r(Co, {}),
1908
+ /* @__PURE__ */ r(D, { mode: "wait", children: t && /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r(bt, {}) }, "new-conv-or-back-to-convs-button") })
1900
1909
  ] }, "csat") : /* @__PURE__ */ d(W, { children: [
1901
1910
  /* @__PURE__ */ d("div", { className: "ps-2 flex items-center gap-1 pb-2", children: [
1902
- /* @__PURE__ */ r(Mt, { className: "size-4 text-emerald-600" }),
1911
+ /* @__PURE__ */ r(Dt, { className: "size-4 text-emerald-600" }),
1903
1912
  /* @__PURE__ */ r("h2", { className: "text-sm font-medium", children: e("your_issue_has_been_resolved") })
1904
1913
  ] }),
1905
- /* @__PURE__ */ r(vt, {})
1914
+ /* @__PURE__ */ r(bt, {})
1906
1915
  ] }, "session-closed") }) }) });
1907
1916
  }
1908
- function _o() {
1917
+ function To() {
1909
1918
  var a;
1910
- const { initialQuestions: e, initialQuestionsPosition: o, thisWasHelpfulOrNot: t } = N(), { sessionState: n } = U(), { messagesState: s } = A(), i = s.messages.length === 0;
1911
- return /* @__PURE__ */ r("footer", { children: /* @__PURE__ */ r(M, { mode: "wait", children: n.session && !((a = n.session) != null && a.isOpened) ? /* @__PURE__ */ d(W, { children: [
1912
- /* @__PURE__ */ r(So, {}),
1913
- /* @__PURE__ */ r(xt, {})
1919
+ const { initialQuestions: e, initialQuestionsPosition: o, thisWasHelpfulOrNot: t } = z(), { sessionState: n } = U(), { messagesState: s } = O(), i = s.messages.length === 0;
1920
+ return /* @__PURE__ */ r("footer", { children: /* @__PURE__ */ r(D, { mode: "wait", children: n.session && !((a = n.session) != null && a.isOpened) ? /* @__PURE__ */ d(W, { children: [
1921
+ /* @__PURE__ */ r(Io, {}),
1922
+ /* @__PURE__ */ r(vt, {})
1914
1923
  ] }, "session-closed") : /* @__PURE__ */ d(W, { children: [
1915
- s.lastAIResMightSolveUserIssue && (t == null ? void 0 : t.enabled) !== !1 && /* @__PURE__ */ r(Co, {}),
1924
+ s.lastAIResMightSolveUserIssue && (t == null ? void 0 : t.enabled) !== !1 && /* @__PURE__ */ r(zo, {}),
1916
1925
  i && e && o !== "below-initial-messages" && /* @__PURE__ */ r("div", { className: "flex items-center flex-row justify-end gap-2 flex-wrap px-2", children: e == null ? void 0 : e.map((l, c) => /* @__PURE__ */ r(
1917
1926
  Ee,
1918
1927
  {
@@ -1920,17 +1929,17 @@ function _o() {
1920
1929
  },
1921
1930
  `${l}-${c}`
1922
1931
  )) }),
1923
- /* @__PURE__ */ r(No, {}),
1924
- /* @__PURE__ */ r(xt, {})
1932
+ /* @__PURE__ */ r(_o, {}),
1933
+ /* @__PURE__ */ r(vt, {})
1925
1934
  ] }, "chat-input") }) });
1926
1935
  }
1927
- function Io({
1936
+ function Mo({
1928
1937
  isFirstInGroup: e,
1929
1938
  isLastInGroup: o,
1930
1939
  isAloneInGroup: t,
1931
1940
  ...n
1932
1941
  }) {
1933
- const { componentStore: s } = O();
1942
+ const { componentStore: s } = A();
1934
1943
  if (n.type !== "AGENT" && n.type !== "AI") return null;
1935
1944
  if (n.data.action) {
1936
1945
  const a = s.getComponent(n.data.action.name);
@@ -1966,13 +1975,13 @@ function Io({
1966
1975
  }
1967
1976
  );
1968
1977
  }
1969
- function Qt({
1978
+ function Jt({
1970
1979
  messages: e,
1971
1980
  className: o,
1972
1981
  containerClassName: t
1973
1982
  }) {
1974
1983
  var a, l;
1975
- const { timestamps: n } = N();
1984
+ const { timestamps: n } = z();
1976
1985
  if (!((a = n == null ? void 0 : n.perMessageGroup) != null && a.enabled))
1977
1986
  return null;
1978
1987
  const s = (l = e[e.length - 1]) == null ? void 0 : l.timestamp;
@@ -2030,7 +2039,7 @@ function pe({
2030
2039
  className: m("flex-1 flex flex-col gap-1"),
2031
2040
  children: [
2032
2041
  e.map((n, s, i) => /* @__PURE__ */ r(
2033
- Io,
2042
+ Mo,
2034
2043
  {
2035
2044
  isFirstInGroup: s === 0,
2036
2045
  isLastInGroup: s === i.length - 1,
@@ -2039,7 +2048,7 @@ function pe({
2039
2048
  },
2040
2049
  n.id
2041
2050
  )),
2042
- /* @__PURE__ */ r(Qt, { messages: e })
2051
+ /* @__PURE__ */ r(Jt, { messages: e })
2043
2052
  ]
2044
2053
  }
2045
2054
  )
@@ -2065,14 +2074,14 @@ function pe({
2065
2074
  }
2066
2075
  );
2067
2076
  }
2068
- function To() {
2077
+ function Do() {
2069
2078
  var t, n;
2070
2079
  const e = X();
2071
2080
  if ((t = e.session) != null && t.isOpened || !e.session) return null;
2072
2081
  const o = (n = e.config.customComponents) == null ? void 0 : n.onSessionResolved;
2073
2082
  return o ? /* @__PURE__ */ r(o, { ...e }) : null;
2074
2083
  }
2075
- function Mo({
2084
+ function Eo({
2076
2085
  message: e,
2077
2086
  isFirstInGroup: o,
2078
2087
  isLastInGroup: t,
@@ -2085,7 +2094,7 @@ function Mo({
2085
2094
  ...f("chat/user_msg/root"),
2086
2095
  className: "w-5/6 flex flex-col items-end gap-1",
2087
2096
  children: [
2088
- e.attachments && e.attachments.length > 0 && /* @__PURE__ */ r("div", { className: "w-full flex gap-1 flex-wrap justify-end", children: (s = e.attachments) == null ? void 0 : s.map((i) => /* @__PURE__ */ r(Bt, { attachment: i }, i.id)) }),
2097
+ e.attachments && e.attachments.length > 0 && /* @__PURE__ */ r("div", { className: "w-full flex gap-1 flex-wrap justify-end", children: (s = e.attachments) == null ? void 0 : s.map((i) => /* @__PURE__ */ r(Yt, { attachment: i }, i.id)) }),
2089
2098
  e.content.length > 0 && /* @__PURE__ */ r(
2090
2099
  "div",
2091
2100
  {
@@ -2112,7 +2121,7 @@ function Mo({
2112
2121
  }
2113
2122
  );
2114
2123
  }
2115
- function Do({
2124
+ function Ro({
2116
2125
  messages: e
2117
2126
  }) {
2118
2127
  return /* @__PURE__ */ d(
@@ -2122,7 +2131,7 @@ function Do({
2122
2131
  className: m("group", "flex flex-col gap-1 justify-end items-end"),
2123
2132
  children: [
2124
2133
  e.map((o, t, n) => /* @__PURE__ */ r(
2125
- Mo,
2134
+ Eo,
2126
2135
  {
2127
2136
  message: o,
2128
2137
  isFirstInGroup: t === 0,
@@ -2131,12 +2140,12 @@ function Do({
2131
2140
  },
2132
2141
  o.id
2133
2142
  )),
2134
- /* @__PURE__ */ r(Qt, { messages: e, containerClassName: "ms-auto" })
2143
+ /* @__PURE__ */ r(Jt, { messages: e, containerClassName: "ms-auto" })
2135
2144
  ]
2136
2145
  }
2137
2146
  );
2138
2147
  }
2139
- function Eo(e) {
2148
+ function Po(e) {
2140
2149
  const o = [];
2141
2150
  let t = null;
2142
2151
  return e.forEach((n) => {
@@ -2146,27 +2155,27 @@ function Eo(e) {
2146
2155
  ((i = t[0]) == null ? void 0 : i.type) === "AGENT" && n.type === "AGENT" && (((a = n.agent) == null ? void 0 : a.id) !== ((l = t[0].agent) == null ? void 0 : l.id) || ((c = n.agent) == null ? void 0 : c.name) !== ((p = t[0].agent) == null ? void 0 : p.name))) && (t = [], o.push(t)), t.push(n);
2147
2156
  }), o;
2148
2157
  }
2149
- function Ro(e) {
2158
+ function jo(e) {
2150
2159
  var o;
2151
2160
  return ((o = e == null ? void 0 : e[0]) == null ? void 0 : o.type) === "USER";
2152
2161
  }
2153
- function Po(e) {
2162
+ function Ao(e) {
2154
2163
  var o;
2155
2164
  return ((o = e == null ? void 0 : e[0]) == null ? void 0 : o.type) === "AI";
2156
2165
  }
2157
- function jo(e) {
2166
+ function Oo(e) {
2158
2167
  var o;
2159
2168
  return ((o = e == null ? void 0 : e[0]) == null ? void 0 : o.type) === "AGENT";
2160
2169
  }
2161
- function Oo() {
2170
+ function Fo() {
2162
2171
  const {
2163
2172
  messagesState: { messages: e }
2164
- } = A(), {
2173
+ } = O(), {
2165
2174
  advancedInitialMessages: o = [],
2166
2175
  initialQuestionsPosition: t,
2167
2176
  initialQuestions: n,
2168
2177
  bot: s
2169
- } = N();
2178
+ } = z();
2170
2179
  return /* @__PURE__ */ r(J, { children: e.length === 0 && o.length > 0 && /* @__PURE__ */ r(
2171
2180
  pe,
2172
2181
  {
@@ -2184,18 +2193,18 @@ function Oo() {
2184
2193
  }
2185
2194
  ) });
2186
2195
  }
2187
- function Ao() {
2196
+ function Ho() {
2188
2197
  const {
2189
2198
  messagesState: { messages: e }
2190
- } = A(), { chatBannerItems: o } = N();
2199
+ } = O(), { chatBannerItems: o } = z();
2191
2200
  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(
2192
2201
  ({ message: t, persistent: n }, s) => e.length > 0 && !n ? null : /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(Se, { children: t }) }, `${t}-${s}`)
2193
2202
  ) });
2194
2203
  }
2195
- function Fo() {
2204
+ function Wo() {
2196
2205
  const {
2197
2206
  messagesState: { messages: e }
2198
- } = A(), o = N(), {
2207
+ } = O(), o = z(), {
2199
2208
  advancedInitialMessages: t = [],
2200
2209
  initialQuestions: n,
2201
2210
  initialQuestionsPosition: s
@@ -2220,16 +2229,16 @@ function Fo() {
2220
2229
  }
2221
2230
  ) });
2222
2231
  }
2223
- function Ho() {
2232
+ function Lo() {
2224
2233
  var t;
2225
2234
  const e = X(), o = (t = e.config.customComponents) == null ? void 0 : t.chatBottomComponents;
2226
2235
  return o ? /* @__PURE__ */ r("div", { children: o.map(({ key: n, component: s }) => /* @__PURE__ */ r(s, { ...e }, n)) }) : null;
2227
2236
  }
2228
- function Wo() {
2237
+ function $o() {
2229
2238
  const {
2230
2239
  messagesState: { messages: e }
2231
- } = A(), { isAwaitingBotReply: o } = St(), { componentStore: t } = O(), { bot: n, humanAgent: s } = N(), i = Ct(
2232
- () => Eo(e),
2240
+ } = O(), { isAwaitingBotReply: o } = _t(), { componentStore: t } = A(), { bot: n, humanAgent: s } = z(), i = zt(
2241
+ () => Po(e),
2233
2242
  [e]
2234
2243
  ), a = t.getComponent(
2235
2244
  "loading"
@@ -2249,18 +2258,18 @@ function Wo() {
2249
2258
  ref: l,
2250
2259
  className: "max-h-full scroll-smooth relative flex-1 py-2 px-4 flex flex-col gap-2 overflow-auto",
2251
2260
  children: [
2252
- /* @__PURE__ */ r(Ao, {}),
2253
- /* @__PURE__ */ r(Oo, {}),
2261
+ /* @__PURE__ */ r(Ho, {}),
2254
2262
  /* @__PURE__ */ r(Fo, {}),
2263
+ /* @__PURE__ */ r(Wo, {}),
2255
2264
  i.map((p, v) => {
2256
- var h, x, z, I;
2265
+ var h, x, C, T;
2257
2266
  const b = (h = p == null ? void 0 : p[0]) == null ? void 0 : h.type, u = (x = p[0]) == null ? void 0 : x.id;
2258
2267
  if (!b || !u) return null;
2259
- if (Ro(p))
2260
- return /* @__PURE__ */ r(Do, { messages: p }, u);
2261
- if (Po(p)) {
2268
+ if (jo(p))
2269
+ return /* @__PURE__ */ r(Ro, { messages: p }, u);
2270
+ if (Ao(p)) {
2262
2271
  const y = v === i.length - 1;
2263
- return o && y ? null : ((z = p[0]) == null || z.agent, /* @__PURE__ */ r(
2272
+ return o && y ? null : ((C = p[0]) == null || C.agent, /* @__PURE__ */ r(
2264
2273
  pe,
2265
2274
  {
2266
2275
  messages: p,
@@ -2269,8 +2278,8 @@ function Wo() {
2269
2278
  u
2270
2279
  ));
2271
2280
  }
2272
- if (jo(p)) {
2273
- const y = (I = p[0]) == null ? void 0 : I.agent;
2281
+ if (Oo(p)) {
2282
+ const y = (T = p[0]) == null ? void 0 : T.agent;
2274
2283
  return /* @__PURE__ */ r(
2275
2284
  pe,
2276
2285
  {
@@ -2292,18 +2301,18 @@ function Wo() {
2292
2301
  return null;
2293
2302
  }),
2294
2303
  o && a && /* @__PURE__ */ r(a, { agent: n }),
2295
- /* @__PURE__ */ r(Ho, {}),
2296
- /* @__PURE__ */ r(To, {})
2304
+ /* @__PURE__ */ r(Lo, {}),
2305
+ /* @__PURE__ */ r(Do, {})
2297
2306
  ]
2298
2307
  }
2299
2308
  );
2300
2309
  }
2301
- function Lo() {
2310
+ function Bo() {
2302
2311
  const {
2303
2312
  messagesState: { isInitialFetchLoading: e }
2304
- } = A(), {
2313
+ } = O(), {
2305
2314
  sessionState: { session: o }
2306
- } = U(), { isCanvasOpen: t } = vo(), { theme: n } = K();
2315
+ } = U(), { isCanvasOpen: t } = bo(), { theme: n } = K();
2307
2316
  Me({
2308
2317
  width: t ? n.screens.chat.withCanvas.width : n.screens.chat.width,
2309
2318
  height: t ? n.screens.chat.withCanvas.height : n.screens.chat.height
@@ -2325,16 +2334,16 @@ function Lo() {
2325
2334
  // Relative to the iframe
2326
2335
  },
2327
2336
  children: /* @__PURE__ */ d("div", { className: "size-full justify-between flex flex-col", children: [
2328
- /* @__PURE__ */ r(Zt, {}),
2329
- /* @__PURE__ */ r(M, { mode: "wait", children: e ? /* @__PURE__ */ r(
2330
- C,
2337
+ /* @__PURE__ */ r(Kt, {}),
2338
+ /* @__PURE__ */ r(D, { mode: "wait", children: e ? /* @__PURE__ */ r(
2339
+ k,
2331
2340
  {
2332
2341
  className: "flex flex-col items-center justify-center w-full flex-1",
2333
- children: /* @__PURE__ */ r(Kt, {})
2342
+ children: /* @__PURE__ */ r(Qt, {})
2334
2343
  },
2335
2344
  "loading"
2336
2345
  ) : /* @__PURE__ */ d(
2337
- C,
2346
+ k,
2338
2347
  {
2339
2348
  className: "flex items-start h-full flex-1 overflow-auto",
2340
2349
  snapExit: !0,
@@ -2352,8 +2361,8 @@ function Lo() {
2352
2361
  transitionDuration: n.screens.chat.withCanvas.transitionDuration
2353
2362
  },
2354
2363
  children: [
2355
- /* @__PURE__ */ r(Wo, {}),
2356
- /* @__PURE__ */ r(_o, {})
2364
+ /* @__PURE__ */ r($o, {}),
2365
+ /* @__PURE__ */ r(To, {})
2357
2366
  ]
2358
2367
  }
2359
2368
  ),
@@ -2369,7 +2378,7 @@ function Lo() {
2369
2378
  transitionTimingFunction: n.screens.chat.withCanvas.transitionTimingFunction,
2370
2379
  transitionDuration: n.screens.chat.withCanvas.transitionDuration
2371
2380
  },
2372
- children: /* @__PURE__ */ r(bo, {})
2381
+ children: /* @__PURE__ */ r(yo, {})
2373
2382
  }
2374
2383
  )
2375
2384
  ]
@@ -2380,7 +2389,7 @@ function Lo() {
2380
2389
  }
2381
2390
  );
2382
2391
  }
2383
- function $o({
2392
+ function Yo({
2384
2393
  className: e,
2385
2394
  ...o
2386
2395
  }) {
@@ -2392,7 +2401,7 @@ function $o({
2392
2401
  }
2393
2402
  );
2394
2403
  }
2395
- function Bo({ className: e }) {
2404
+ function Uo({ className: e }) {
2396
2405
  return /* @__PURE__ */ r(
2397
2406
  "svg",
2398
2407
  {
@@ -2412,8 +2421,8 @@ function Bo({ className: e }) {
2412
2421
  }
2413
2422
  );
2414
2423
  }
2415
- function Jt({ className: e }) {
2416
- const { token: o } = N();
2424
+ function er({ className: e }) {
2425
+ const { token: o } = z();
2417
2426
  return /* @__PURE__ */ r(
2418
2427
  "div",
2419
2428
  {
@@ -2436,7 +2445,7 @@ function Jt({ className: e }) {
2436
2445
  /* @__PURE__ */ r("span", { children: "Powered by" }),
2437
2446
  /* @__PURE__ */ r("span", { children: " " }),
2438
2447
  /* @__PURE__ */ d("span", { className: "flex items-center gap-[1px]", children: [
2439
- /* @__PURE__ */ r("span", { children: /* @__PURE__ */ r(Bo, { className: "size-3 inline-block" }) }),
2448
+ /* @__PURE__ */ r("span", { children: /* @__PURE__ */ r(Uo, { className: "size-3 inline-block" }) }),
2440
2449
  /* @__PURE__ */ r("span", { className: "font-semibold", children: "open" })
2441
2450
  ] })
2442
2451
  ]
@@ -2445,14 +2454,14 @@ function Jt({ className: e }) {
2445
2454
  }
2446
2455
  );
2447
2456
  }
2448
- function Yo({ children: e }) {
2457
+ function Xo({ children: e }) {
2449
2458
  return /* @__PURE__ */ r("p", { className: "ps-4 text-xs text-muted-foreground/75 uppercase font-semibold tracking-tight", children: e });
2450
2459
  }
2451
- function bt({
2460
+ function yt({
2452
2461
  session: e,
2453
2462
  className: o
2454
2463
  }) {
2455
- const { bot: t, humanAgent: n } = N(), { toChatScreen: s } = H(), i = e.assignee.kind === "human" ? (n == null ? void 0 : n.name) || e.assignee.name || "Support Agent" : (t == null ? void 0 : t.name) || "AI Support Agent", a = 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) || "";
2464
+ const { bot: t, humanAgent: n } = z(), { toChatScreen: s } = H(), i = e.assignee.kind === "human" ? (n == null ? void 0 : n.name) || e.assignee.name || "Support Agent" : (t == null ? void 0 : t.name) || "AI Support Agent", a = 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) || "";
2456
2465
  return /* @__PURE__ */ d(
2457
2466
  S,
2458
2467
  {
@@ -2465,69 +2474,69 @@ function bt({
2465
2474
  onClick: () => s(e.id),
2466
2475
  children: [
2467
2476
  /* @__PURE__ */ d("div", { className: "flex-1 flex gap-2 items-center", children: [
2468
- /* @__PURE__ */ r(M, { mode: "wait", children: /* @__PURE__ */ r(C, { snapExit: !0, children: /* @__PURE__ */ d(_e, { className: "size-10", children: [
2477
+ /* @__PURE__ */ r(D, { mode: "wait", children: /* @__PURE__ */ r(k, { snapExit: !0, children: /* @__PURE__ */ d(_e, { className: "size-10", children: [
2469
2478
  /* @__PURE__ */ r(Ie, { src: a, alt: "Agent Icon" }),
2470
- /* @__PURE__ */ r(Te, { children: /* @__PURE__ */ r(Pr, { className: "size-4" }) })
2479
+ /* @__PURE__ */ r(Te, { children: /* @__PURE__ */ r(jr, { className: "size-4" }) })
2471
2480
  ] }) }) }),
2472
2481
  /* @__PURE__ */ d("div", { className: "flex-1", children: [
2473
- /* @__PURE__ */ r(M, { mode: "wait", children: /* @__PURE__ */ r(C, { snapExit: !0, children: i }, i) }),
2474
- /* @__PURE__ */ r(M, { mode: "wait", children: e.lastMessage ? /* @__PURE__ */ r(C, { snapExit: !0, children: /* @__PURE__ */ r(
2475
- Yt,
2482
+ /* @__PURE__ */ r(D, { mode: "wait", children: /* @__PURE__ */ r(k, { snapExit: !0, children: i }, i) }),
2483
+ /* @__PURE__ */ r(D, { mode: "wait", children: e.lastMessage ? /* @__PURE__ */ r(k, { snapExit: !0, children: /* @__PURE__ */ r(
2484
+ Ut,
2476
2485
  {
2477
- remarkPlugins: [Et],
2478
- rehypePlugins: [Rt],
2486
+ remarkPlugins: [Rt],
2487
+ rehypePlugins: [Pt],
2479
2488
  className: "line-clamp-1 overflow-hidden text-ellipsis text-xs text-muted-foreground",
2480
2489
  children: e.lastMessage
2481
2490
  }
2482
- ) }, e.lastMessage || "content") : /* @__PURE__ */ r(C, { className: "w-1/2", snapExit: !0, children: /* @__PURE__ */ r($o, { className: "h-4 w-full" }) }, "skeleton") })
2491
+ ) }, e.lastMessage || "content") : /* @__PURE__ */ r(k, { className: "w-1/2", snapExit: !0, children: /* @__PURE__ */ r(Yo, { className: "h-4 w-full" }) }, "skeleton") })
2483
2492
  ] })
2484
2493
  ] }),
2485
- /* @__PURE__ */ r(jr, { className: "size-4 text-muted-foreground shrink-0 rtl:-scale-100" })
2494
+ /* @__PURE__ */ r(Ar, { className: "size-4 text-muted-foreground shrink-0 rtl:-scale-100" })
2486
2495
  ]
2487
2496
  }
2488
2497
  );
2489
2498
  }
2490
- function Uo() {
2499
+ function qo() {
2491
2500
  const { t: e } = V(), { toChatScreen: o } = H(), {
2492
2501
  sessionsState: { data: t, isInitialFetchLoading: n },
2493
2502
  openSessions: s,
2494
2503
  closedSessions: i,
2495
2504
  canCreateNewSession: a
2496
2505
  } = U();
2497
- return /* @__PURE__ */ r("div", { className: "flex-1 flex flex-col overflow-scroll py-2 px-2", children: /* @__PURE__ */ r(M, { mode: "wait", children: n ? /* @__PURE__ */ r(
2498
- C,
2506
+ return /* @__PURE__ */ r("div", { className: "flex-1 flex flex-col overflow-scroll py-2 px-2", children: /* @__PURE__ */ r(D, { mode: "wait", children: n ? /* @__PURE__ */ r(
2507
+ k,
2499
2508
  {
2500
2509
  className: "flex-1 flex items-center justify-center",
2501
- children: /* @__PURE__ */ r(Kt, {})
2510
+ children: /* @__PURE__ */ r(Qt, {})
2502
2511
  },
2503
2512
  "loading"
2504
2513
  ) : /* @__PURE__ */ r(
2505
- C,
2514
+ k,
2506
2515
  {
2507
2516
  className: "flex-1 flex flex-col gap-2 relative",
2508
2517
  children: t.length ? /* @__PURE__ */ d(J, { children: [
2509
- /* @__PURE__ */ d(M, { children: [
2518
+ /* @__PURE__ */ d(D, { children: [
2510
2519
  s.length > 0 && /* @__PURE__ */ r(
2511
- C,
2520
+ k,
2512
2521
  {
2513
2522
  fadeIn: "up",
2514
2523
  delay: 0.2,
2515
2524
  className: "space-y-2",
2516
2525
  snapExit: !0,
2517
- children: s.map((l) => /* @__PURE__ */ r(bt, { session: l }, l.id))
2526
+ children: s.map((l) => /* @__PURE__ */ r(yt, { session: l }, l.id))
2518
2527
  },
2519
2528
  "open-sessions"
2520
2529
  ),
2521
2530
  i.length > 0 && /* @__PURE__ */ d(
2522
- C,
2531
+ k,
2523
2532
  {
2524
2533
  className: "space-y-2",
2525
2534
  delay: 0.2,
2526
2535
  snapExit: !0,
2527
2536
  children: [
2528
- /* @__PURE__ */ r(Yo, { children: e("closed_conversations") }),
2537
+ /* @__PURE__ */ r(Xo, { children: e("closed_conversations") }),
2529
2538
  i.map((l) => /* @__PURE__ */ r(
2530
- bt,
2539
+ yt,
2531
2540
  {
2532
2541
  session: l,
2533
2542
  className: "opacity-50 hover:opacity-100"
@@ -2568,7 +2577,7 @@ function Uo() {
2568
2577
  "sessions"
2569
2578
  ) }) });
2570
2579
  }
2571
- function Xo() {
2580
+ function Vo() {
2572
2581
  const { theme: e } = K();
2573
2582
  return Me({
2574
2583
  width: e.screens.sessions.width,
@@ -2589,9 +2598,9 @@ function Xo() {
2589
2598
  // Relative to the iframe
2590
2599
  },
2591
2600
  children: /* @__PURE__ */ d("div", { className: "size-full flex flex-col", children: [
2592
- /* @__PURE__ */ r(Zt, {}),
2593
- /* @__PURE__ */ r(Uo, {}),
2594
- /* @__PURE__ */ r(Jt, {})
2601
+ /* @__PURE__ */ r(Kt, {}),
2602
+ /* @__PURE__ */ r(qo, {}),
2603
+ /* @__PURE__ */ r(er, {})
2595
2604
  ] })
2596
2605
  }
2597
2606
  );
@@ -2618,8 +2627,8 @@ const de = ee.forwardRef(
2618
2627
  }
2619
2628
  );
2620
2629
  de.displayName = "Input";
2621
- function qo() {
2622
- const { contentIframeRef: e } = O(), { inline: o } = N(), t = B(null);
2630
+ function Go() {
2631
+ const { contentIframeRef: e } = A(), { inline: o } = z(), t = B(null);
2623
2632
  return se(() => {
2624
2633
  const n = e == null ? void 0 : e.current;
2625
2634
  if (n && t.current) {
@@ -2640,29 +2649,29 @@ function qo() {
2640
2649
  }
2641
2650
  }, [e, o]), { observedElementRef: t };
2642
2651
  }
2643
- const Vo = ue.object({
2652
+ const Zo = ue.object({
2644
2653
  name: ue.string().min(2),
2645
2654
  email: ue.string().email()
2646
2655
  });
2647
- function Go() {
2648
- var y, k, D, j, w, T, P, E;
2656
+ function Ko() {
2657
+ var y, N, _, E, w, M, j, R;
2649
2658
  const {
2650
2659
  widgetCtx: { org: e }
2651
- } = O(), { setIsOpen: o } = Z(), { createUnverifiedContact: t } = _t(), { isSmallScreen: n } = $(), s = N(), { theme: i } = K(), { t: a } = V(), { observedElementRef: l } = qo();
2660
+ } = A(), { setIsOpen: o } = Z(), { createUnverifiedContact: t } = It(), { isSmallScreen: n } = $(), s = z(), { theme: i } = K(), { t: a } = V(), { observedElementRef: l } = Go();
2652
2661
  Me({
2653
2662
  height: void 0,
2654
2663
  width: i.screens.welcome.width
2655
2664
  });
2656
- const [c, p] = R(((y = s.prefillUserData) == null ? void 0 : y.name) || ""), [v, b] = R(((k = s.prefillUserData) == null ? void 0 : k.email) || ""), u = (s.extraDataCollectionFields || []).filter(
2665
+ const [c, p] = P(((y = s.prefillUserData) == null ? void 0 : y.name) || ""), [v, b] = P(((N = s.prefillUserData) == null ? void 0 : N.email) || ""), u = (s.extraDataCollectionFields || []).filter(
2657
2666
  (g) => g !== "name" && g !== "email" && !!g
2658
- ), [h, x] = R({}), [z, I] = Xr(
2667
+ ), [h, x] = P({}), [C, T] = qr(
2659
2668
  async (g) => {
2660
2669
  g.preventDefault();
2661
- const _ = Vo.safeParse({ name: c, email: v });
2662
- _.success && await t(
2670
+ const I = Zo.safeParse({ name: c, email: v });
2671
+ I.success && await t(
2663
2672
  {
2664
- email: _.data.email,
2665
- non_verified_name: _.data.name
2673
+ email: I.data.email,
2674
+ non_verified_name: I.data.name
2666
2675
  },
2667
2676
  // Only pass extra data if there is any
2668
2677
  Object.values(h).filter(Boolean).length ? h : void 0
@@ -2703,18 +2712,18 @@ function Go() {
2703
2712
  "text-primary-foreground"
2704
2713
  ),
2705
2714
  children: [
2706
- n && /* @__PURE__ */ r(C, { className: "absolute top-6 end-6", children: /* @__PURE__ */ r(S, { size: "selfless", onClick: () => o(!1), children: /* @__PURE__ */ r(Ce, { className: "size-4" }) }) }),
2707
- /* @__PURE__ */ r("div", { className: "flex items-center justify-between w-full mb-2", children: (D = s.assets) != null && D.organizationLogo ? /* @__PURE__ */ r(
2715
+ n && /* @__PURE__ */ r(k, { className: "absolute top-6 end-6", children: /* @__PURE__ */ r(S, { size: "selfless", onClick: () => o(!1), children: /* @__PURE__ */ r(Ce, { className: "size-4" }) }) }),
2716
+ /* @__PURE__ */ r("div", { className: "flex items-center justify-between w-full mb-2", children: (_ = s.assets) != null && _.organizationLogo ? /* @__PURE__ */ r(
2708
2717
  "img",
2709
2718
  {
2710
- src: (j = s.assets) == null ? void 0 : j.organizationLogo,
2719
+ src: (E = s.assets) == null ? void 0 : E.organizationLogo,
2711
2720
  alt: "Company Logo",
2712
2721
  className: "h-8 w-auto object-contain"
2713
2722
  }
2714
2723
  ) : /* @__PURE__ */ r("h2", { className: "font-bold text-sm", children: e.name }) }),
2715
2724
  /* @__PURE__ */ d("div", { className: "space-y-2", children: [
2716
- /* @__PURE__ */ r("h1", { className: "text-[1.75rem] font-semibold tracking-tight leading-none", children: ((T = (w = s.textContent) == null ? void 0 : w.welcomeScreen) == null ? void 0 : T.title) || a("welcome_screen_title") }),
2717
- /* @__PURE__ */ r("p", { className: "text-sm", children: ((E = (P = s.textContent) == null ? void 0 : P.welcomeScreen) == null ? void 0 : E.description) || a("welcome_screen_description") })
2725
+ /* @__PURE__ */ r("h1", { className: "text-[1.75rem] font-semibold tracking-tight leading-none", children: ((M = (w = s.textContent) == null ? void 0 : w.welcomeScreen) == null ? void 0 : M.title) || a("welcome_screen_title") }),
2726
+ /* @__PURE__ */ r("p", { className: "text-sm", children: ((R = (j = s.textContent) == null ? void 0 : j.welcomeScreen) == null ? void 0 : R.description) || a("welcome_screen_description") })
2718
2727
  ] })
2719
2728
  ]
2720
2729
  }
@@ -2729,7 +2738,7 @@ function Go() {
2729
2738
  "rounded-3xl"
2730
2739
  ),
2731
2740
  children: [
2732
- /* @__PURE__ */ d("form", { onSubmit: I, className: "space-y-2", children: [
2741
+ /* @__PURE__ */ d("form", { onSubmit: T, className: "space-y-2", children: [
2733
2742
  /* @__PURE__ */ r(
2734
2743
  de,
2735
2744
  {
@@ -2755,9 +2764,9 @@ function Go() {
2755
2764
  de,
2756
2765
  {
2757
2766
  value: h[g],
2758
- onChange: (_) => x((ie) => ({
2767
+ onChange: (I) => x((ie) => ({
2759
2768
  ...ie,
2760
- [g]: _.target.value
2769
+ [g]: I.target.value
2761
2770
  })),
2762
2771
  placeholder: `${g} (${a("optional")})`
2763
2772
  },
@@ -2766,17 +2775,17 @@ function Go() {
2766
2775
  /* @__PURE__ */ d(
2767
2776
  S,
2768
2777
  {
2769
- disabled: z.loading,
2778
+ disabled: C.loading,
2770
2779
  className: "w-full",
2771
2780
  size: "lg",
2772
2781
  children: [
2773
- z.loading ? a("start_chat_button_loading") : a("start_chat_button"),
2782
+ C.loading ? a("start_chat_button_loading") : a("start_chat_button"),
2774
2783
  /* @__PURE__ */ r(Or, { className: "size-4 rtl:-scale-100" })
2775
2784
  ]
2776
2785
  }
2777
2786
  )
2778
2787
  ] }),
2779
- /* @__PURE__ */ r(Jt, {})
2788
+ /* @__PURE__ */ r(er, {})
2780
2789
  ]
2781
2790
  }
2782
2791
  )
@@ -2786,55 +2795,55 @@ function Go() {
2786
2795
  }
2787
2796
  );
2788
2797
  }
2789
- function er() {
2798
+ function tr() {
2790
2799
  const {
2791
2800
  routerState: { screen: e }
2792
2801
  } = H();
2793
- return /* @__PURE__ */ r("div", { className: "relative bg-background size-full", children: /* @__PURE__ */ r(M, { mode: "wait", children: (() => {
2802
+ return /* @__PURE__ */ r("div", { className: "relative bg-background size-full", children: /* @__PURE__ */ r(D, { mode: "wait", children: (() => {
2794
2803
  switch (e) {
2795
2804
  case "welcome":
2796
2805
  return /* @__PURE__ */ r(
2797
- C,
2806
+ k,
2798
2807
  {
2799
2808
  fadeIn: "right",
2800
2809
  className: "size-full",
2801
2810
  snapExit: !0,
2802
- children: /* @__PURE__ */ r(Go, {})
2811
+ children: /* @__PURE__ */ r(Ko, {})
2803
2812
  },
2804
2813
  e
2805
2814
  );
2806
2815
  case "sessions":
2807
2816
  return /* @__PURE__ */ r(
2808
- C,
2817
+ k,
2809
2818
  {
2810
2819
  fadeIn: "right",
2811
2820
  className: "size-full",
2812
2821
  snapExit: !0,
2813
- children: /* @__PURE__ */ r(Xo, {})
2822
+ children: /* @__PURE__ */ r(Vo, {})
2814
2823
  },
2815
2824
  e
2816
2825
  );
2817
2826
  case "chat":
2818
2827
  return /* @__PURE__ */ r(
2819
- C,
2828
+ k,
2820
2829
  {
2821
2830
  fadeIn: "right",
2822
2831
  className: "size-full",
2823
2832
  snapExit: !0,
2824
- children: /* @__PURE__ */ r(Lo, {})
2833
+ children: /* @__PURE__ */ r(Bo, {})
2825
2834
  },
2826
2835
  e
2827
2836
  );
2828
2837
  default:
2829
- return F(e, er.name), null;
2838
+ return F(e, tr.name), null;
2830
2839
  }
2831
2840
  })() }) });
2832
2841
  }
2833
- const Zo = "4.0.57", Ko = `<!DOCTYPE html>
2842
+ const Qo = "4.0.59", Jo = `<!DOCTYPE html>
2834
2843
  <html>
2835
2844
  <head>
2836
2845
  <style>
2837
- ${Ut}
2846
+ ${Xt}
2838
2847
  html, body {
2839
2848
  height: 100%;
2840
2849
  width: 100%;
@@ -2848,8 +2857,8 @@ html, body {
2848
2857
  <body>
2849
2858
  </body>
2850
2859
  </html>`;
2851
- function tr() {
2852
- const { isOpen: e } = Z(), { contentIframeRef: o } = O(), { cssOverrides: t, inline: n } = N(), { theme: s, cssVars: i, computed: a } = K(), { dir: l } = V();
2860
+ function rr() {
2861
+ const { isOpen: e } = Z(), { contentIframeRef: o } = A(), { cssOverrides: t, inline: n } = z(), { theme: s, cssVars: i, computed: a } = K(), { dir: l } = V();
2853
2862
  return /* @__PURE__ */ r(
2854
2863
  re.div,
2855
2864
  {
@@ -2870,10 +2879,10 @@ function tr() {
2870
2879
  }
2871
2880
  },
2872
2881
  children: /* @__PURE__ */ d(
2873
- Pt,
2882
+ jt,
2874
2883
  {
2875
2884
  ref: o,
2876
- initialContent: Ko,
2885
+ initialContent: Jo,
2877
2886
  allowFullScreen: !0,
2878
2887
  title: "OpenCX Live Chat",
2879
2888
  style: {
@@ -2910,17 +2919,17 @@ function tr() {
2910
2919
  ...i,
2911
2920
  zIndex: s.widgetContentContainer.zIndex
2912
2921
  },
2913
- "data-version": Zo,
2922
+ "data-version": Qo,
2914
2923
  className: m(
2915
2924
  "antialiased font-sans size-full overflow-hidden relative text-secondary-foreground isolate"
2916
2925
  ),
2917
2926
  dir: l,
2918
2927
  children: /* @__PURE__ */ r(
2919
- io,
2928
+ lo,
2920
2929
  {
2921
2930
  delayDuration: 200,
2922
2931
  disableHoverableContent: !0,
2923
- children: /* @__PURE__ */ r(eo, { children: /* @__PURE__ */ r(er, {}) })
2932
+ children: /* @__PURE__ */ r(to, { children: /* @__PURE__ */ r(tr, {}) })
2924
2933
  }
2925
2934
  )
2926
2935
  }
@@ -2931,7 +2940,7 @@ function tr() {
2931
2940
  }
2932
2941
  );
2933
2942
  }
2934
- function Qo() {
2943
+ function en() {
2935
2944
  const { theme: e } = K();
2936
2945
  return /* @__PURE__ */ r(
2937
2946
  me.Content,
@@ -2949,11 +2958,11 @@ function Qo() {
2949
2958
  sideOffset: e.widgetContentContainer.offset.side,
2950
2959
  alignOffset: e.widgetContentContainer.offset.align,
2951
2960
  avoidCollisions: !1,
2952
- children: /* @__PURE__ */ r(tr, {})
2961
+ children: /* @__PURE__ */ r(rr, {})
2953
2962
  }
2954
2963
  );
2955
2964
  }
2956
- function Jo({
2965
+ function tn({
2957
2966
  className: e,
2958
2967
  style: o
2959
2968
  }) {
@@ -2988,11 +2997,11 @@ function Jo({
2988
2997
  }
2989
2998
  );
2990
2999
  }
2991
- const en = `<!DOCTYPE html>
3000
+ const rn = `<!DOCTYPE html>
2992
3001
  <html>
2993
3002
  <head>
2994
3003
  <style>
2995
- ${Ut}
3004
+ ${Xt}
2996
3005
  html, body {
2997
3006
  height: 100%;
2998
3007
  width: 100%;
@@ -3005,17 +3014,17 @@ html, body {
3005
3014
  <body>
3006
3015
  </body>
3007
3016
  </html>`;
3008
- function tn() {
3017
+ function on() {
3009
3018
  var p, v, b;
3010
- const { isOpen: e, setIsOpen: o } = Z(), { cssOverrides: t, assets: n, customComponents: s, accessibility: i } = N(), { theme: a, cssVars: l } = K(), c = ((p = i == null ? void 0 : i.widgetTriggerButton) == null ? void 0 : p.label) ?? "Chat with us";
3019
+ const { isOpen: e, setIsOpen: o } = Z(), { cssOverrides: t, assets: n, customComponents: s, accessibility: i } = z(), { theme: a, cssVars: l } = K(), c = ((p = i == null ? void 0 : i.widgetTriggerButton) == null ? void 0 : p.label) ?? "Chat with us";
3011
3020
  return s != null && s.widgetTrigger ? s.widgetTrigger({
3012
3021
  react: L,
3013
3022
  isOpen: e,
3014
3023
  setIsOpen: (u) => o(u)
3015
3024
  }) : /* @__PURE__ */ d(
3016
- Pt,
3025
+ jt,
3017
3026
  {
3018
- initialContent: en,
3027
+ initialContent: rn,
3019
3028
  title: "OpenCX Live Chat Trigger",
3020
3029
  style: {
3021
3030
  height: `calc(${a.widgetTrigger.size.button}px + ${Q.x * 2}px)`,
@@ -3069,8 +3078,8 @@ function tn() {
3069
3078
  "bg-primary",
3070
3079
  "text-primary-foreground"
3071
3080
  ),
3072
- children: /* @__PURE__ */ r(M, { mode: "wait", children: e ? /* @__PURE__ */ r(
3073
- C,
3081
+ children: /* @__PURE__ */ r(D, { mode: "wait", children: e ? /* @__PURE__ */ r(
3082
+ k,
3074
3083
  {
3075
3084
  snapExit: !0,
3076
3085
  fadeIn: "up",
@@ -3089,7 +3098,7 @@ function tn() {
3089
3098
  }
3090
3099
  }
3091
3100
  ) : /* @__PURE__ */ r(
3092
- Ar,
3101
+ Fr,
3093
3102
  {
3094
3103
  style: {
3095
3104
  width: a.widgetTrigger.size.icon,
@@ -3100,7 +3109,7 @@ function tn() {
3100
3109
  },
3101
3110
  "x-icon"
3102
3111
  ) : /* @__PURE__ */ r(
3103
- C,
3112
+ k,
3104
3113
  {
3105
3114
  snapExit: !0,
3106
3115
  overrides: {
@@ -3118,7 +3127,7 @@ function tn() {
3118
3127
  }
3119
3128
  }
3120
3129
  ) : /* @__PURE__ */ r(
3121
- Jo,
3130
+ tn,
3122
3131
  {
3123
3132
  style: {
3124
3133
  width: a.widgetTrigger.size.icon,
@@ -3140,7 +3149,7 @@ function tn() {
3140
3149
  }
3141
3150
  );
3142
3151
  }
3143
- function rn() {
3152
+ function nn() {
3144
3153
  const { dir: e } = ke();
3145
3154
  return /* @__PURE__ */ r(
3146
3155
  me.Anchor,
@@ -3154,13 +3163,13 @@ function rn() {
3154
3163
  }
3155
3164
  );
3156
3165
  }
3157
- function on({
3166
+ function sn({
3158
3167
  widgetRef: e
3159
3168
  }) {
3160
- const { widgetCtx: o } = O(), { contactState: t } = _t(), { setIsOpen: n, isOpen: s } = Z(), {
3169
+ const { widgetCtx: o } = A(), { contactState: t } = It(), { setIsOpen: n, isOpen: s } = Z(), {
3161
3170
  toChatScreen: i,
3162
3171
  routerState: { screen: a }
3163
- } = H(), { sendMessage: l } = A();
3172
+ } = H(), { sendMessage: l } = O();
3164
3173
  return L.useImperativeHandle(
3165
3174
  e,
3166
3175
  () => ({
@@ -3184,22 +3193,22 @@ function on({
3184
3193
  ]
3185
3194
  ), null;
3186
3195
  }
3187
- function nn() {
3196
+ function an() {
3188
3197
  const { isOpen: e, setIsOpen: o } = Z();
3189
3198
  return /* @__PURE__ */ d(me.Root, { open: e, onOpenChange: o, children: [
3190
- /* @__PURE__ */ r(rn, {}),
3191
- /* @__PURE__ */ r(tn, {}),
3192
- /* @__PURE__ */ r(Qo, {})
3199
+ /* @__PURE__ */ r(nn, {}),
3200
+ /* @__PURE__ */ r(on, {}),
3201
+ /* @__PURE__ */ r(en, {})
3193
3202
  ] });
3194
3203
  }
3195
- const sn = [
3204
+ const ln = [
3196
3205
  {
3197
3206
  key: "loading",
3198
- component: ao
3207
+ component: io
3199
3208
  },
3200
3209
  {
3201
3210
  key: "fallback",
3202
- component: so
3211
+ component: ao
3203
3212
  },
3204
3213
  {
3205
3214
  key: "bot_message",
@@ -3209,7 +3218,7 @@ const sn = [
3209
3218
  key: "agent_message",
3210
3219
  component: xe
3211
3220
  }
3212
- ], an = {
3221
+ ], cn = {
3213
3222
  get: async (e) => localStorage.getItem(e),
3214
3223
  set: async (e, o) => {
3215
3224
  localStorage.setItem(e, o);
@@ -3217,23 +3226,23 @@ const sn = [
3217
3226
  remove: async (e) => {
3218
3227
  localStorage.removeItem(e);
3219
3228
  }
3220
- }, ln = L.forwardRef(function({ options: o, components: t = [], loadingComponent: n }, s) {
3229
+ }, dn = L.forwardRef(function({ options: o, components: t = [], loadingComponent: n }, s) {
3221
3230
  return /* @__PURE__ */ r(
3222
- ar,
3231
+ ir,
3223
3232
  {
3224
- components: [...sn, ...t],
3233
+ components: [...ln, ...t],
3225
3234
  options: o,
3226
- storage: an,
3235
+ storage: cn,
3227
3236
  loadingComponent: n,
3228
- children: /* @__PURE__ */ d(ir, { children: [
3229
- /* @__PURE__ */ r(on, { widgetRef: s }),
3230
- o.inline ? /* @__PURE__ */ r(tr, {}) : /* @__PURE__ */ r(nn, {})
3237
+ children: /* @__PURE__ */ d(lr, { children: [
3238
+ /* @__PURE__ */ r(sn, { widgetRef: s }),
3239
+ o.inline ? /* @__PURE__ */ r(rr, {}) : /* @__PURE__ */ r(an, {})
3231
3240
  ] })
3232
3241
  }
3233
3242
  );
3234
3243
  });
3235
- ln.displayName = "Widget";
3244
+ dn.displayName = "Widget";
3236
3245
  export {
3237
- ln as Widget
3246
+ dn as Widget
3238
3247
  };
3239
3248
  //# sourceMappingURL=index.js.map