@opencx/widget-react 4.0.60 → 4.0.61

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,29 +1,29 @@
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 sr, forwardRef as zt, useState as P, cloneElement as Nt, createContext as ar, useEffect as se, useContext as ir, useRef as B, useCallback as Z, useMemo as St, createElement as pt } from "react";
5
- import { useWidget as A, useConfig as z, useSessions as U, useMessages as O, useWidgetRouter as H, useDocumentDir as ke, useWidgetTrigger as K, useModes as _t, useCsat as It, useUploadFiles as lr, useIsAwaitingBotReply as Tt, useContact as Mt, WidgetProvider as cr, WidgetTriggerProvider as dr } from "@opencx/widget-react-headless";
6
- import { X as pr, ZoomOut as mr, ZoomIn as hr, RotateCcw as gr, FileText as Dt, FileSpreadsheet as Et, CircleDashedIcon as ur, XIcon as Ce, SquareXIcon as wr, SquareCheckBigIcon as fr, SquareCheckIcon as xr, ShrinkIcon as vr, Minimize2Icon as br, MinimizeIcon as yr, Maximize2Icon as kr, MaximizeIcon as Cr, ExpandIcon as zr, CircleXIcon as Nr, CircleCheckBigIcon as Sr, CircleCheckIcon as Rt, CheckCheckIcon as _r, CheckIcon as Ir, ChevronLeftIcon as Tr, LoaderIcon as Mr, ArrowUpIcon as Pt, PaperclipIcon as mt, CircleDashed as Dr, AlertCircle as Er, Loader2 as Rr, FileAudio2Icon as Pr, FileVideo2Icon as jr, FileIcon as Ar, UserRoundIcon as Or, ChevronRightIcon as Fr, SendHorizontal as Hr, ChevronDownIcon as Wr } from "lucide-react";
7
- import { clsx as Lr } from "clsx";
8
- import { twMerge as $r } from "tailwind-merge";
9
- import { motion as re, AnimatePresence as D } from "framer-motion";
10
- import { Slot as Br } from "@radix-ui/react-slot";
11
- import { cva as Yr } from "class-variance-authority";
12
- import jt from "remark-gfm";
13
- import Ur from "react-markdown";
14
- import At from "rehype-raw";
15
- import { isExhaustive as F, isSupportedLanguage as Xr, getTranslation as qr } from "@opencx/widget-core";
4
+ import L, { memo as cr, forwardRef as Tt, useState as P, cloneElement as Mt, createContext as dr, useEffect as se, useContext as pr, useRef as U, useCallback as Z, useMemo as Dt, createElement as gt } from "react";
5
+ import { useWidget as O, useConfig as z, useSessions as $, useMessages as A, useWidgetRouter as H, useDocumentDir as ze, useWidgetTrigger as K, useModes as Et, useCsat as Rt, useUploadFiles as mr, useIsAwaitingBotReply as Pt, useContact as jt, WidgetProvider as hr, WidgetTriggerProvider as ur } from "@opencx/widget-react-headless";
6
+ import { X as gr, ZoomOut as wr, ZoomIn as fr, RotateCcw as xr, FileText as Ot, FileSpreadsheet as At, CircleDashedIcon as vr, XIcon as Ne, SquareXIcon as br, SquareCheckBigIcon as yr, SquareCheckIcon as kr, ShrinkIcon as Cr, Minimize2Icon as zr, MinimizeIcon as Nr, Maximize2Icon as Sr, MaximizeIcon as _r, ExpandIcon as Ir, CircleXIcon as Tr, CircleCheckBigIcon as Mr, CircleCheckIcon as Ft, CheckCheckIcon as Dr, CheckIcon as Er, ChevronLeftIcon as Rr, LoaderIcon as Pr, ArrowUpIcon as Ht, PaperclipIcon as wt, CircleDashed as jr, AlertCircle as Or, Loader2 as Ar, FileAudio2Icon as Fr, FileVideo2Icon as Hr, FileIcon as Wr, UserRoundIcon as Lr, ChevronRightIcon as $r, SendHorizontal as Br, ChevronDownIcon as Ur } from "lucide-react";
7
+ import { clsx as Yr } from "clsx";
8
+ import { twMerge as Xr } from "tailwind-merge";
9
+ import { motion as re, AnimatePresence as _ } from "framer-motion";
10
+ import { Slot as qr } from "@radix-ui/react-slot";
11
+ import { cva as Wt } from "class-variance-authority";
12
+ import Lt from "remark-gfm";
13
+ import Vr from "react-markdown";
14
+ import $t from "rehype-raw";
15
+ import { isExhaustive as F, isSupportedLanguage as Gr, getTranslation as Zr } from "@opencx/widget-core";
16
16
  import * as te from "@radix-ui/react-avatar";
17
- import Ot from "@uiw/react-iframe";
17
+ import Bt from "@uiw/react-iframe";
18
18
  import * as ae from "@radix-ui/react-tooltip";
19
- import ht from "tinycolor2";
20
- import { useDropzone as Vr } from "react-dropzone";
21
- import Gr from "react-use/lib/useAsyncFn";
22
- import { z as ue } from "zod";
19
+ import ft from "tinycolor2";
20
+ import { useDropzone as Kr } from "react-dropzone";
21
+ import Qr from "react-use/lib/useAsyncFn";
22
+ import { z as fe } from "zod";
23
23
  function x(e) {
24
24
  return { "data-component": e };
25
25
  }
26
- const fe = [
26
+ const ve = [
27
27
  {
28
28
  kind: "csv",
29
29
  label: "CSV",
@@ -39,64 +39,64 @@ const fe = [
39
39
  ],
40
40
  extensions: ["xls", "xlsx"]
41
41
  }
42
- ], gt = Object.fromEntries(
43
- fe.flatMap(
42
+ ], xt = Object.fromEntries(
43
+ ve.flatMap(
44
44
  (e) => e.mimes.map((o) => [o, e.extensions.map((t) => `.${t}`)])
45
45
  )
46
- ), ut = {
46
+ ), vt = {
47
47
  "video/mp4": [".mp4"],
48
48
  "video/webm": [".webm"],
49
49
  "video/quicktime": [".mov"]
50
50
  };
51
- function Ft({
51
+ function Ut({
52
52
  type: e,
53
53
  name: o
54
54
  }) {
55
55
  var s, i;
56
56
  const t = ((s = o.split(".").pop()) == null ? void 0 : s.toLowerCase()) ?? "", n = ((i = e.toLowerCase().split(";")[0]) == null ? void 0 : i.trim()) ?? "";
57
- return fe.find((a) => t && a.extensions.includes(t)) ?? fe.find((a) => n && a.mimes.includes(n)) ?? null;
57
+ return ve.find((a) => t && a.extensions.includes(t)) ?? ve.find((a) => n && a.mimes.includes(n)) ?? null;
58
58
  }
59
59
  function p(...e) {
60
- return $r(Lr(e));
60
+ return Xr(Yr(e));
61
61
  }
62
62
  const Q = {
63
63
  x: 2,
64
64
  y: 2
65
- }, Y = sr(
66
- zt(
65
+ }, Y = cr(
66
+ Tt(
67
67
  ({ children: e, className: o, scale: t = 1.02, off: n = !1 }, s) => {
68
68
  const [i, a] = P(!1), [l, c] = P({ x: 0, y: 0 });
69
69
  if (n || /translate/.test(
70
70
  e.props.className || ""
71
71
  )) return e;
72
72
  const h = (v) => {
73
- var R, u;
74
- const { clientX: C, clientY: T } = v, b = v.currentTarget.getBoundingClientRect(), N = C - (b.left + b.width / 2), _ = T - (b.top + b.height / 2), E = Math.max(
73
+ var R, g;
74
+ const { clientX: C, clientY: M } = v, b = v.currentTarget.getBoundingClientRect(), S = C - (b.left + b.width / 2), I = M - (b.top + b.height / 2), E = Math.max(
75
75
  -1,
76
- Math.min(1, N / (b.width / 2))
76
+ Math.min(1, S / (b.width / 2))
77
77
  ), f = Math.max(
78
78
  -1,
79
- Math.min(1, _ / (b.height / 2))
80
- ), M = E * Q.x, j = f * Q.y;
81
- c({ x: M, y: j }), (u = (R = e.props).onMouseMove) == null || u.call(R, v);
82
- }, y = () => {
79
+ Math.min(1, I / (b.height / 2))
80
+ ), D = E * Q.x, j = f * Q.y;
81
+ c({ x: D, y: j }), (g = (R = e.props).onMouseMove) == null || g.call(R, v);
82
+ }, k = () => {
83
83
  var v, C;
84
84
  a(!0), (C = (v = e.props).onMouseEnter) == null || C.call(v);
85
85
  }, w = () => {
86
86
  var v, C;
87
87
  a(!1), c({ x: 0, y: 0 }), (C = (v = e.props).onMouseLeave) == null || C.call(v);
88
- }, g = {
88
+ }, u = {
89
89
  "--wobble-x": i ? `${l.x}px` : "0px",
90
90
  "--wobble-y": i ? `${l.y}px` : "0px",
91
91
  "--scale": 1 - (t - 1)
92
92
  };
93
- return Nt(e, {
93
+ return Mt(e, {
94
94
  ref: s,
95
95
  onMouseMove: h,
96
- onMouseEnter: y,
96
+ onMouseEnter: k,
97
97
  onMouseLeave: w,
98
98
  style: {
99
- ...g,
99
+ ...u,
100
100
  ...e.props.style
101
101
  },
102
102
  className: p(
@@ -112,43 +112,43 @@ const Q = {
112
112
  )
113
113
  );
114
114
  Y.displayName = "Wobble";
115
- const Zr = 10, Kr = (e, o, t) => ({
115
+ const Jr = 10, eo = (e, o, t) => ({
116
116
  initial: { opacity: 0, x: -e, ...o.initial },
117
117
  animate: { opacity: 1, x: 0, ...o.animate, transition: { delay: t } },
118
118
  exit: { opacity: 0, x: e, ...o.exit }
119
- }), Qr = (e, o, t) => ({
119
+ }), to = (e, o, t) => ({
120
120
  initial: { opacity: 0, x: e, ...o.initial },
121
121
  animate: { opacity: 1, x: 0, ...o.animate, transition: { delay: t } },
122
122
  exit: { opacity: 0, x: -e, ...o.exit }
123
- }), Jr = (e, o, t) => ({
123
+ }), ro = (e, o, t) => ({
124
124
  initial: { opacity: 0, y: e, ...o.initial },
125
125
  animate: { opacity: 1, y: 0, ...o.animate, transition: { delay: t } },
126
126
  exit: { opacity: 0, y: -e, ...o.exit }
127
- }), eo = (e, o, t) => ({
127
+ }), oo = (e, o, t) => ({
128
128
  initial: { opacity: 0, y: -e, ...o.initial },
129
129
  animate: { opacity: 1, y: 0, ...o.animate, transition: { delay: t } },
130
130
  exit: { opacity: 0, y: e, ...o.exit }
131
- }), to = {
132
- right: Kr,
133
- left: Qr,
134
- up: Jr,
135
- down: eo
136
- }, k = zt(
131
+ }), no = {
132
+ right: eo,
133
+ left: to,
134
+ up: ro,
135
+ down: oo
136
+ }, y = Tt(
137
137
  ({
138
138
  fadeIn: e = "down",
139
- distance: o = Zr,
139
+ distance: o = Jr,
140
140
  children: t,
141
141
  snapExit: n = !1,
142
142
  overrides: s = {},
143
143
  delay: i = 0,
144
144
  ...a
145
145
  }, l) => {
146
- const c = e ? to[e](o, s, i) : {};
146
+ const c = e ? no[e](o, s, i) : {};
147
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 });
148
148
  }
149
149
  );
150
- k.displayName = "MotionDiv";
151
- const ro = Yr(
150
+ y.displayName = "MotionDiv";
151
+ const so = Wt(
152
152
  p(
153
153
  "inline-flex shrink-0 items-center justify-center gap-2",
154
154
  "text-sm font-medium whitespace-nowrap",
@@ -187,20 +187,20 @@ const ro = Yr(
187
187
  size: "default"
188
188
  }
189
189
  }
190
- ), S = ee.forwardRef(
190
+ ), N = ee.forwardRef(
191
191
  ({ className: e, variant: o = "default", size: t, asChild: n = !1, ...s }, i) => /* @__PURE__ */ r(Y, { ref: i, children: /* @__PURE__ */ r(
192
- n ? Br : "button",
192
+ n ? qr : "button",
193
193
  {
194
194
  ...x("ui_lib/btn"),
195
195
  "data-variant": o,
196
- className: p(ro({ variant: o, size: t, className: e })),
196
+ className: p(so({ variant: o, size: t, className: e })),
197
197
  ...s
198
198
  }
199
199
  ) })
200
200
  );
201
- S.displayName = "Button";
202
- const Ht = ar(null);
203
- function oo({ children: e }) {
201
+ N.displayName = "Button";
202
+ const Yt = dr(null);
203
+ function ao({ children: e }) {
204
204
  const [o, t] = P(!1), [n, s] = P(null), i = (l) => {
205
205
  s(l), t(!0);
206
206
  }, a = () => {
@@ -209,18 +209,18 @@ function oo({ children: e }) {
209
209
  }, 200);
210
210
  };
211
211
  return /* @__PURE__ */ d(
212
- Ht.Provider,
212
+ Yt.Provider,
213
213
  {
214
214
  value: { open: i, close: a, isOpen: o, content: n },
215
215
  children: [
216
- /* @__PURE__ */ r(no, {}),
216
+ /* @__PURE__ */ r(io, {}),
217
217
  e
218
218
  ]
219
219
  }
220
220
  );
221
221
  }
222
222
  function he() {
223
- const e = ir(Ht);
223
+ const e = pr(Yt);
224
224
  return e || (console.error("useDialoger must be used within a DialogerProvider"), {
225
225
  open: () => {
226
226
  },
@@ -230,8 +230,8 @@ function he() {
230
230
  content: null
231
231
  });
232
232
  }
233
- function no() {
234
- const { contentIframeRef: e } = A(), { isOpen: o, content: t, close: n } = he();
233
+ function io() {
234
+ const { contentIframeRef: e } = O(), { isOpen: o, content: t, close: n } = he();
235
235
  return se(() => {
236
236
  var i, a;
237
237
  const s = (l) => {
@@ -247,8 +247,8 @@ function no() {
247
247
  s
248
248
  );
249
249
  };
250
- }, []), /* @__PURE__ */ r(D, { mode: "wait", children: o && t && /* @__PURE__ */ r(
251
- k,
250
+ }, []), /* @__PURE__ */ r(_, { mode: "wait", children: o && t && /* @__PURE__ */ r(
251
+ y,
252
252
  {
253
253
  overrides: {
254
254
  initial: { y: 0 },
@@ -262,7 +262,7 @@ function no() {
262
262
  "dialog-content"
263
263
  ) });
264
264
  }
265
- function ze({
265
+ function ue({
266
266
  children: e,
267
267
  className: o,
268
268
  withClose: t = !1
@@ -279,13 +279,13 @@ function ze({
279
279
  children: [
280
280
  e,
281
281
  t && /* @__PURE__ */ d(
282
- S,
282
+ N,
283
283
  {
284
284
  size: "fit",
285
285
  className: "rounded-full absolute top-4 right-4 opacity-50 hover:opacity-100",
286
286
  onClick: n,
287
287
  children: [
288
- /* @__PURE__ */ r(pr, { className: "h-4 w-4" }),
288
+ /* @__PURE__ */ r(gr, { className: "h-4 w-4" }),
289
289
  /* @__PURE__ */ r("span", { className: "sr-only", children: "Close" })
290
290
  ]
291
291
  }
@@ -294,7 +294,7 @@ function ze({
294
294
  }
295
295
  );
296
296
  }
297
- const Wt = ({
297
+ const Se = ({
298
298
  className: e,
299
299
  ...o
300
300
  }) => /* @__PURE__ */ r(
@@ -304,8 +304,8 @@ const Wt = ({
304
304
  ...o
305
305
  }
306
306
  );
307
- Wt.displayName = "DialogerHeader";
308
- const Lt = ({
307
+ Se.displayName = "DialogerHeader";
308
+ const _e = ({
309
309
  className: e,
310
310
  ...o
311
311
  }) => /* @__PURE__ */ r(
@@ -315,13 +315,13 @@ const Lt = ({
315
315
  ...o
316
316
  }
317
317
  );
318
- Lt.displayName = "DialogerBody";
319
- const $t = ({
318
+ _e.displayName = "DialogerBody";
319
+ const Xt = ({
320
320
  className: e,
321
321
  ...o
322
322
  }) => /* @__PURE__ */ r("div", { className: p("flex flex-col gap-2", e), ...o });
323
- $t.displayName = "DialogerFooter";
324
- const Bt = L.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
323
+ Xt.displayName = "DialogerFooter";
324
+ const Ie = L.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
325
325
  "p",
326
326
  {
327
327
  ref: t,
@@ -332,8 +332,8 @@ const Bt = L.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
332
332
  ...o
333
333
  }
334
334
  ));
335
- Bt.displayName = "DialogerTitle";
336
- const Yt = L.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
335
+ Ie.displayName = "DialogerTitle";
336
+ const Te = L.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
337
337
  "p",
338
338
  {
339
339
  ref: t,
@@ -341,21 +341,21 @@ const Yt = L.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
341
341
  ...o
342
342
  }
343
343
  ));
344
- Yt.displayName = "DialogerDescription";
345
- function Ne({
344
+ Te.displayName = "DialogerDescription";
345
+ function ge({
346
346
  children: e,
347
347
  trigger: o
348
348
  }) {
349
349
  const { open: t } = he();
350
- return Nt(o, {
350
+ return Mt(o, {
351
351
  onClick: () => {
352
352
  var s, i;
353
353
  t(e), (i = (s = o.props).onClick) == null || i.call(s);
354
354
  }
355
355
  });
356
356
  }
357
- const wt = 1, ft = 5, le = 0.5, so = 2.5;
358
- function ao(e, o, t, n) {
357
+ const bt = 1, yt = 5, le = 0.5, lo = 2.5;
358
+ function co(e, o, t, n) {
359
359
  if (!t || !n || o <= 1) return { x: 0, y: 0 };
360
360
  const s = t.getBoundingClientRect(), i = n.offsetWidth, a = n.offsetHeight, l = Math.max(0, (i * o - s.width) / (2 * o)), c = Math.max(
361
361
  0,
@@ -366,25 +366,25 @@ function ao(e, o, t, n) {
366
366
  y: Math.min(c, Math.max(-c, e.y))
367
367
  };
368
368
  }
369
- function Ut({
369
+ function qt({
370
370
  src: e,
371
371
  alt: o
372
372
  }) {
373
- const [t, n] = P(1), [s, i] = P({ x: 0, y: 0 }), [a, l] = P(!1), c = B({ x: 0, y: 0 }), m = B({ x: 0, y: 0 }), h = B(null), y = B(null), w = B(!1), g = (f) => Math.min(ft, Math.max(wt, f)), v = Z(() => {
373
+ const [t, n] = P(1), [s, i] = P({ x: 0, y: 0 }), [a, l] = P(!1), c = U({ x: 0, y: 0 }), m = U({ x: 0, y: 0 }), h = U(null), k = U(null), w = U(!1), u = (f) => Math.min(yt, Math.max(bt, f)), v = Z(() => {
374
374
  n(1), i({ x: 0, y: 0 });
375
375
  }, []), C = Z(() => {
376
- n((f) => g(f + le));
377
- }, []), T = Z(() => {
376
+ n((f) => u(f + le));
377
+ }, []), M = Z(() => {
378
378
  n((f) => {
379
- const M = g(f - le);
380
- return M <= 1 && i({ x: 0, y: 0 }), M;
379
+ const D = u(f - le);
380
+ return D <= 1 && i({ x: 0, y: 0 }), D;
381
381
  });
382
382
  }, []);
383
383
  Z((f) => {
384
384
  f.preventDefault(), f.stopPropagation();
385
- const M = f.deltaY > 0 ? -le : le;
385
+ const D = f.deltaY > 0 ? -le : le;
386
386
  n((j) => {
387
- const R = g(j + M);
387
+ const R = u(j + D);
388
388
  return R <= 1 && i({ x: 0, y: 0 }), R;
389
389
  });
390
390
  }, []);
@@ -393,23 +393,23 @@ function Ut({
393
393
  f.preventDefault(), w.current = !1, l(!0), c.current = { x: f.clientX, y: f.clientY }, m.current = { ...s }, f.target.setPointerCapture(f.pointerId);
394
394
  },
395
395
  [s]
396
- ), N = Z(
396
+ ), S = Z(
397
397
  (f) => {
398
398
  if (!a) return;
399
- const M = f.clientX - c.current.x, j = f.clientY - c.current.y;
400
- if ((Math.abs(M) > 3 || Math.abs(j) > 3) && (w.current = !0), t <= 1) return;
399
+ const D = f.clientX - c.current.x, j = f.clientY - c.current.y;
400
+ if ((Math.abs(D) > 3 || Math.abs(j) > 3) && (w.current = !0), t <= 1) return;
401
401
  const R = {
402
- x: m.current.x + M / t,
402
+ x: m.current.x + D / t,
403
403
  y: m.current.y + j / t
404
404
  };
405
405
  i(
406
- ao(R, t, h.current, y.current)
406
+ co(R, t, h.current, k.current)
407
407
  );
408
408
  },
409
409
  [a, t]
410
- ), _ = Z(() => {
410
+ ), I = Z(() => {
411
411
  const f = w.current;
412
- l(!1), !f && n((M) => M > 1 ? (i({ x: 0, y: 0 }), 1) : so);
412
+ l(!1), !f && n((D) => D > 1 ? (i({ x: 0, y: 0 }), 1) : lo);
413
413
  }, []), E = t > 1;
414
414
  return /* @__PURE__ */ d(
415
415
  "div",
@@ -426,9 +426,9 @@ function Ut({
426
426
  E && "size-full"
427
427
  ),
428
428
  onPointerDown: b,
429
- onPointerMove: N,
430
- onPointerUp: _,
431
- onPointerCancel: _,
429
+ onPointerMove: S,
430
+ onPointerUp: I,
431
+ onPointerCancel: I,
432
432
  style: {
433
433
  cursor: a ? "grabbing" : E ? "grab" : "zoom-in",
434
434
  touchAction: "none"
@@ -436,7 +436,7 @@ function Ut({
436
436
  children: /* @__PURE__ */ r(
437
437
  "img",
438
438
  {
439
- ref: y,
439
+ ref: k,
440
440
  src: e,
441
441
  alt: o,
442
442
  className: "block max-w-full object-contain pointer-events-none",
@@ -452,22 +452,22 @@ function Ut({
452
452
  }
453
453
  ),
454
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: [
455
- /* @__PURE__ */ r(we, { onClick: T, label: "Zoom out", disabled: t <= wt, children: /* @__PURE__ */ r(mr, { className: "size-3.5" }) }),
455
+ /* @__PURE__ */ r(xe, { onClick: M, label: "Zoom out", disabled: t <= bt, children: /* @__PURE__ */ r(wr, { className: "size-3.5" }) }),
456
456
  /* @__PURE__ */ d("span", { className: "text-white text-xs font-medium min-w-[3ch] text-center tabular-nums", children: [
457
457
  Math.round(t * 100),
458
458
  "%"
459
459
  ] }),
460
- /* @__PURE__ */ r(we, { onClick: C, label: "Zoom in", disabled: t >= ft, children: /* @__PURE__ */ r(hr, { className: "size-3.5" }) }),
460
+ /* @__PURE__ */ r(xe, { onClick: C, label: "Zoom in", disabled: t >= yt, children: /* @__PURE__ */ r(fr, { className: "size-3.5" }) }),
461
461
  E && /* @__PURE__ */ d(J, { children: [
462
462
  /* @__PURE__ */ r("div", { className: "w-px h-4 bg-white/30 mx-0.5" }),
463
- /* @__PURE__ */ r(we, { onClick: v, label: "Reset zoom", children: /* @__PURE__ */ r(gr, { className: "size-3.5" }) })
463
+ /* @__PURE__ */ r(xe, { onClick: v, label: "Reset zoom", children: /* @__PURE__ */ r(xr, { className: "size-3.5" }) })
464
464
  ] })
465
465
  ] })
466
466
  ]
467
467
  }
468
468
  );
469
469
  }
470
- function we({
470
+ function xe({
471
471
  onClick: e,
472
472
  label: o,
473
473
  children: t,
@@ -484,7 +484,7 @@ function we({
484
484
  }
485
485
  );
486
486
  }
487
- function xt({
487
+ function kt({
488
488
  url: e,
489
489
  name: o,
490
490
  size: t,
@@ -536,7 +536,7 @@ function xt({
536
536
  }
537
537
  ) });
538
538
  }
539
- function Xt({ attachment: e }) {
539
+ function Vt({ attachment: e }) {
540
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";
541
541
  if (l)
542
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: [
@@ -550,38 +550,38 @@ function Xt({ attachment: e }) {
550
550
  ] }) }) });
551
551
  if (i)
552
552
  return /* @__PURE__ */ r(
553
- Ne,
553
+ ge,
554
554
  {
555
555
  trigger: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(Y, { children: /* @__PURE__ */ r("div", { className: "size-fit border shrink-0 rounded-2xl overflow-hidden", children: /* @__PURE__ */ r("img", { src: s, className: "object-cover size-16", alt: o }) }) }) }),
556
556
  children: /* @__PURE__ */ r(
557
- ze,
557
+ ue,
558
558
  {
559
559
  className: "size-full max-w-full rounded-3xl flex items-center justify-center bg-transparent border-none gap-0",
560
560
  withClose: !0,
561
- children: /* @__PURE__ */ r(Ut, { src: s, alt: o })
561
+ children: /* @__PURE__ */ r(qt, { src: s, alt: o })
562
562
  }
563
563
  )
564
564
  }
565
565
  );
566
566
  if (c)
567
567
  return /* @__PURE__ */ r(
568
- xt,
568
+ kt,
569
569
  {
570
570
  url: s,
571
571
  name: o,
572
572
  size: t,
573
- icon: /* @__PURE__ */ r(Dt, { className: "size-5", strokeWidth: 1.75 }),
573
+ icon: /* @__PURE__ */ r(Ot, { className: "size-5", strokeWidth: 1.75 }),
574
574
  label: "PDF"
575
575
  }
576
576
  );
577
- const m = Ft({ type: n, name: o });
577
+ const m = Ut({ type: n, name: o });
578
578
  return m ? /* @__PURE__ */ r(
579
- xt,
579
+ kt,
580
580
  {
581
581
  url: s,
582
582
  name: o,
583
583
  size: t,
584
- icon: /* @__PURE__ */ r(Et, { className: "size-5", strokeWidth: 1.75 }),
584
+ icon: /* @__PURE__ */ r(At, { className: "size-5", strokeWidth: 1.75 }),
585
585
  label: m.label
586
586
  }
587
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: [
@@ -605,27 +605,27 @@ function Xt({ attachment: e }) {
605
605
  ] })
606
606
  ] }) }) });
607
607
  }
608
- const qt = L.memo(
609
- Ur,
608
+ const Gt = L.memo(
609
+ Vr,
610
610
  (e, o) => e.children === o.children && e.className === o.className
611
611
  );
612
- function Se({
612
+ function Me({
613
613
  children: e,
614
614
  messageType: o,
615
615
  messageId: t
616
616
  }) {
617
617
  const { anchorTarget: n } = z();
618
618
  return /* @__PURE__ */ r(
619
- qt,
619
+ Gt,
620
620
  {
621
621
  "data-type": o,
622
622
  "data-id": t,
623
- remarkPlugins: [jt],
624
- rehypePlugins: [At],
623
+ remarkPlugins: [Lt],
624
+ rehypePlugins: [$t],
625
625
  components: {
626
626
  a: ({ children: s, ...i }) => /* @__PURE__ */ r("a", { target: i.target || n || "_top", ...i, children: s }),
627
627
  img: ({ src: s, alt: i, ...a }) => s ? /* @__PURE__ */ r(
628
- Ne,
628
+ ge,
629
629
  {
630
630
  trigger: /* @__PURE__ */ r(
631
631
  "img",
@@ -637,11 +637,11 @@ function Se({
637
637
  }
638
638
  ),
639
639
  children: /* @__PURE__ */ r(
640
- ze,
640
+ ue,
641
641
  {
642
642
  className: "size-full max-w-full rounded-3xl flex items-center justify-center bg-transparent border-none gap-0",
643
643
  withClose: !0,
644
- children: /* @__PURE__ */ r(Ut, { src: s, alt: i })
644
+ children: /* @__PURE__ */ r(qt, { src: s, alt: i })
645
645
  }
646
646
  )
647
647
  }
@@ -654,11 +654,11 @@ function Se({
654
654
  function X() {
655
655
  const {
656
656
  widgetCtx: { org: e }
657
- } = A(), {
657
+ } = O(), {
658
658
  sessionState: { session: o }
659
- } = U(), t = z(), {
659
+ } = $(), t = z(), {
660
660
  messagesState: { messages: n }
661
- } = O(), {
661
+ } = A(), {
662
662
  routerState: { screen: s }
663
663
  } = H();
664
664
  return {
@@ -670,14 +670,14 @@ function X() {
670
670
  currentScreen: s
671
671
  };
672
672
  }
673
- function io({
673
+ function po({
674
674
  currentMessage: e
675
675
  }) {
676
676
  var n;
677
677
  const o = X(), t = (n = o.config.customComponents) == null ? void 0 : n["message::after"];
678
678
  return t ? /* @__PURE__ */ r(t, { ...o, currentMessage: e }) : null;
679
679
  }
680
- function xe(e) {
680
+ function be(e) {
681
681
  const {
682
682
  data: o,
683
683
  id: t,
@@ -690,7 +690,7 @@ function xe(e) {
690
690
  classNames: m
691
691
  } = e;
692
692
  if (n !== "AI" && n !== "AGENT") return null;
693
- const { message: h, variant: y = "default" } = o;
693
+ const { message: h, variant: k = "default" } = o;
694
694
  return /* @__PURE__ */ d(
695
695
  "div",
696
696
  {
@@ -700,7 +700,7 @@ function xe(e) {
700
700
  m == null ? void 0 : m.messageContainer
701
701
  ),
702
702
  children: [
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((w) => /* @__PURE__ */ r(Xt, { attachment: w }, w.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((w) => /* @__PURE__ */ r(Vt, { attachment: w }, w.id)) }),
704
704
  h.length > 0 && /* @__PURE__ */ d("div", { className: "flex flex-row gap-2", children: [
705
705
  /* @__PURE__ */ r(
706
706
  "div",
@@ -709,7 +709,7 @@ function xe(e) {
709
709
  "data-first": i,
710
710
  "data-last": a,
711
711
  "data-alone": l,
712
- "data-variant": y,
712
+ "data-variant": k,
713
713
  className: p(
714
714
  "transition-all",
715
715
  "w-fit py-3 px-4 rounded-3xl bg-secondary text-secondary-foreground",
@@ -718,26 +718,26 @@ function xe(e) {
718
718
  // `[word-break:break-word]` is deprecated but works in the browser, while `break-words` which is `[overflow-wrap: break-word]` does not work
719
719
  // No need to add "whitespace-pre-wrap" in the agent or bot message because it is markup and content appear on separate lines as expected
720
720
  // Adding "whitespace-pre-wrap" will result in unnecessarily huge line breaks
721
- y === "error" && "bg-destructive/15 text-destructive",
721
+ k === "error" && "bg-destructive/15 text-destructive",
722
722
  // We're using the booleans directly here, not the data attributes, to make any external styling more specific than this
723
723
  i && !l && "rounded-bl-md",
724
724
  a && !l && "rounded-tl-md",
725
725
  !i && !a && !l && "rounded-l-md",
726
726
  m == null ? void 0 : m.message
727
727
  ),
728
- children: /* @__PURE__ */ r(Se, { messageType: n, messageId: t, children: h })
728
+ children: /* @__PURE__ */ r(Me, { messageType: n, messageId: t, children: h })
729
729
  }
730
730
  ),
731
- /* @__PURE__ */ r(io, { currentMessage: e })
731
+ /* @__PURE__ */ r(po, { currentMessage: e })
732
732
  ] })
733
733
  ]
734
734
  }
735
735
  );
736
736
  }
737
- function lo(e) {
737
+ function mo(e) {
738
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) }) });
739
739
  }
740
- const _e = ee.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
740
+ const De = ee.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
741
741
  te.Root,
742
742
  {
743
743
  ref: t,
@@ -749,8 +749,8 @@ const _e = ee.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
749
749
  ...o
750
750
  }
751
751
  ));
752
- _e.displayName = te.Root.displayName;
753
- const Ie = ee.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
752
+ De.displayName = te.Root.displayName;
753
+ const Ee = ee.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
754
754
  te.Image,
755
755
  {
756
756
  ref: t,
@@ -758,8 +758,8 @@ const Ie = ee.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
758
758
  ...o
759
759
  }
760
760
  ));
761
- Ie.displayName = te.Image.displayName;
762
- const Te = ee.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
761
+ Ee.displayName = te.Image.displayName;
762
+ const Re = ee.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
763
763
  te.Fallback,
764
764
  {
765
765
  ref: t,
@@ -770,25 +770,25 @@ const Te = ee.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
770
770
  ...o
771
771
  }
772
772
  ));
773
- Te.displayName = te.Fallback.displayName;
774
- function ve({
773
+ Re.displayName = te.Fallback.displayName;
774
+ function ye({
775
775
  agent: e,
776
776
  ...o
777
777
  }) {
778
778
  var t, n;
779
- return /* @__PURE__ */ d(_e, { ...o, children: [
780
- /* @__PURE__ */ r(Ie, { src: (e == null ? void 0 : e.avatarUrl) || (e == null ? void 0 : e.avatar) || "", alt: "Agent Icon" }),
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() })
779
+ return /* @__PURE__ */ d(De, { ...o, children: [
780
+ /* @__PURE__ */ r(Ee, { src: (e == null ? void 0 : e.avatarUrl) || (e == null ? void 0 : e.avatar) || "", alt: "Agent Icon" }),
781
+ (e == null ? void 0 : e.name) && /* @__PURE__ */ r(Re, { children: (n = (t = e == null ? void 0 : e.name) == null ? void 0 : t.slice(0, 1)) == null ? void 0 : n.toUpperCase() })
782
782
  ] });
783
783
  }
784
- function co({ agent: e }) {
785
- return /* @__PURE__ */ r(D, { children: /* @__PURE__ */ d(
786
- k,
784
+ function ho({ agent: e }) {
785
+ return /* @__PURE__ */ r(_, { children: /* @__PURE__ */ d(
786
+ y,
787
787
  {
788
788
  ...x("chat/bot_loading/root"),
789
789
  className: "flex flex-row items-end w-full gap-2 animate-pulse",
790
790
  children: [
791
- /* @__PURE__ */ r(ve, { agent: e }),
791
+ /* @__PURE__ */ r(ye, { agent: e }),
792
792
  /* @__PURE__ */ d(
793
793
  "div",
794
794
  {
@@ -808,7 +808,7 @@ function co({ agent: e }) {
808
808
  }
809
809
  ) });
810
810
  }
811
- const Vt = '*,: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-full{height:100%}.h-px{height:1px}.max-h-16{max-height:4rem}.max-h-40{max-height:10rem}.max-h-full{max-height:100%}.min-h-12{min-height:3rem}.w-0{width:0px}.w-1\\/2{width:50%}.w-10{width:2.5rem}.w-2{width:.5rem}.w-2\\/5{width:40%}.w-3\\.5{width:.875rem}.w-3\\/5{width:60%}.w-4{width:1rem}.w-5\\/6{width:83.333333%}.w-60{width:15rem}.w-9{width:2.25rem}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.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%}.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}.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))}', po = ae.Provider, mo = ae.Root, ho = ae.Trigger, Gt = ee.forwardRef(({ className: e, sideOffset: o = 4, ...t }, n) => /* @__PURE__ */ r(
811
+ const Zt = '*,: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-2{top:.5rem}.top-4{top:1rem}.top-6{top:1.5rem}.top-\\[50\\%\\]{top:50%}.isolate{isolation:isolate}.-z-10{z-index:-10}.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-1{margin-top:.25rem}.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-2{width:.5rem;height:.5rem}.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-1\\.5{gap:.375rem}.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))}.self-center{align-self:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.scroll-smooth{scroll-behavior:smooth}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.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-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.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-20{opacity:.2}.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))}', uo = ae.Provider, go = ae.Root, wo = ae.Trigger, Kt = ee.forwardRef(({ className: e, sideOffset: o = 4, ...t }, n) => /* @__PURE__ */ r(
812
812
  ae.Content,
813
813
  {
814
814
  ref: n,
@@ -820,7 +820,7 @@ const Vt = '*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;-
820
820
  ...t
821
821
  }
822
822
  ));
823
- Gt.displayName = ae.Content.displayName;
823
+ Kt.displayName = ae.Content.displayName;
824
824
  function oe({
825
825
  children: e,
826
826
  content: o,
@@ -828,10 +828,10 @@ function oe({
828
828
  align: n
829
829
  }) {
830
830
  const { disableTooltips: s } = z();
831
- return !o || s ? e : /* @__PURE__ */ d(mo, { children: [
832
- /* @__PURE__ */ r(ho, { asChild: !0, children: e }),
831
+ return !o || s ? e : /* @__PURE__ */ d(go, { children: [
832
+ /* @__PURE__ */ r(wo, { asChild: !0, children: e }),
833
833
  /* @__PURE__ */ r(
834
- Gt,
834
+ Kt,
835
835
  {
836
836
  side: t,
837
837
  align: n,
@@ -842,16 +842,16 @@ function oe({
842
842
  )
843
843
  ] });
844
844
  }
845
- function go(e, o) {
845
+ function fo(e, o) {
846
846
  const t = typeof (e == null ? void 0 : e.right) == "number", n = typeof (e == null ? void 0 : e.left) == "number";
847
847
  return t && !n ? "right" : n && !t || o === "rtl" ? "left" : "right";
848
848
  }
849
- const vt = 450;
850
- function $() {
851
- const [e, o] = L.useState(() => (window.top || window).innerWidth < vt);
849
+ const Ct = 450;
850
+ function B() {
851
+ const [e, o] = L.useState(() => (window.top || window).innerWidth < Ct);
852
852
  return L.useEffect(() => {
853
853
  const t = window.top || window, n = () => {
854
- o(t.innerWidth < vt);
854
+ o(t.innerWidth < Ct);
855
855
  };
856
856
  return n(), t.addEventListener("resize", n), () => {
857
857
  t.removeEventListener("resize", n);
@@ -863,17 +863,17 @@ const ce = {
863
863
  transitionDuration: "1000ms"
864
864
  };
865
865
  function V() {
866
- var w, g, v, C, T, b, N, _, E, f, M, j, R, u, 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, ct, dt;
867
- 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 = go((w = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : w.offset, e), c = {
868
- zIndex: ((g = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : g.zIndex) ?? 1e7,
866
+ var w, u, v, C, M, b, S, I, E, f, D, j, R, g, T, ie, Ae, Fe, He, We, Le, $e, Be, Ue, Ye, Xe, qe, Ve, Ge, Ze, Ke, Qe, Je, et, tt, rt, ot, nt, st, at, it, lt, ct, dt, pt, mt, ht, ut;
867
+ const { dir: e } = ze(), { isSmallScreen: o } = B(), { theme: t, inline: n } = z(), s = (q) => n ? "100%" : q, i = (q, we) => o ? `100dv${q}` : we, a = (q, we) => s(i(q, we)), l = fo((w = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : w.offset, e), c = {
868
+ zIndex: ((u = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : u.zIndex) ?? 1e7,
869
869
  offset: {
870
870
  bottom: ((C = (v = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : v.offset) == null ? void 0 : C.bottom) ?? 20,
871
- right: ((b = (T = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : T.offset) == null ? void 0 : b.right) ?? (l === "right" ? 20 : "initial"),
872
- left: ((_ = (N = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : N.offset) == null ? void 0 : _.left) ?? (l === "left" ? 20 : "initial")
871
+ right: ((b = (M = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : M.offset) == null ? void 0 : b.right) ?? (l === "right" ? 20 : "initial"),
872
+ left: ((I = (S = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : S.offset) == null ? void 0 : I.left) ?? (l === "left" ? 20 : "initial")
873
873
  },
874
874
  size: {
875
875
  button: ((f = (E = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : E.size) == null ? void 0 : f.button) ?? 48,
876
- icon: ((j = (M = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : M.size) == null ? void 0 : j.icon) ?? 24
876
+ icon: ((j = (D = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : D.size) == null ? void 0 : j.icon) ?? 24
877
877
  }
878
878
  }, m = (() => {
879
879
  const q = l === "right" ? c.offset.right : c.offset.left;
@@ -884,50 +884,50 @@ function V() {
884
884
  widgetTrigger: c,
885
885
  widgetContentContainer: {
886
886
  borderRadius: o ? "0px" : ((R = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : R.borderRadius) ?? "32px",
887
- zIndex: ((u = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : u.zIndex) ?? c.zIndex + 1,
888
- outline: ((I = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : I.outline) ?? "none",
887
+ zIndex: ((g = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : g.zIndex) ?? c.zIndex + 1,
888
+ outline: ((T = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : T.outline) ?? "none",
889
889
  // was: '1px solid'
890
890
  outlineColor: ((ie = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : ie.outlineColor) ?? "hsl(0 0% 50% / .5)",
891
- boxShadow: ((Re = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Re.boxShadow) ?? "0 0px 100px 0px rgb(0 0 0 / 0.25)",
892
- transitionProperty: ((Pe = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Pe.transitionProperty) ?? "all",
893
- transitionTimingFunction: ((je = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : je.transitionTimingFunction) ?? ce.transitionTimingFunction,
894
- transitionDuration: ((Ae = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Ae.transitionDuration) ?? ce.transitionDuration,
891
+ boxShadow: ((Ae = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Ae.boxShadow) ?? "0 0px 100px 0px rgb(0 0 0 / 0.25)",
892
+ transitionProperty: ((Fe = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Fe.transitionProperty) ?? "all",
893
+ transitionTimingFunction: ((He = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : He.transitionTimingFunction) ?? ce.transitionTimingFunction,
894
+ transitionDuration: ((We = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : We.transitionDuration) ?? ce.transitionDuration,
895
895
  offset: {
896
- side: o ? 0 : c.offset.bottom + c.size.button + Q.y * 2 + (((Fe = (Oe = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Oe.offset) == null ? void 0 : Fe.side) ?? 10),
897
- align: o ? 0 : m + (((We = (He = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : He.offset) == null ? void 0 : We.align) ?? 0)
896
+ side: o ? 0 : c.offset.bottom + c.size.button + Q.y * 2 + ((($e = (Le = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Le.offset) == null ? void 0 : $e.side) ?? 10),
897
+ align: o ? 0 : m + (((Ue = (Be = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Be.offset) == null ? void 0 : Ue.align) ?? 0)
898
898
  }
899
899
  },
900
900
  screens: {
901
901
  welcome: {
902
- width: a("w", (($e = (Le = t == null ? void 0 : t.screens) == null ? void 0 : Le.welcome) == null ? void 0 : $e.width) ?? "400px"),
902
+ width: a("w", ((Xe = (Ye = t == null ? void 0 : t.screens) == null ? void 0 : Ye.welcome) == null ? void 0 : Xe.width) ?? "400px"),
903
903
  // By setting minHeight to 1px, a nice animation will play from 1px to the dynamic height of the content of the screen
904
904
  minHeight: a(
905
905
  "h",
906
- ((Ye = (Be = t == null ? void 0 : t.screens) == null ? void 0 : Be.welcome) == null ? void 0 : Ye.minHeight) ?? "1px"
906
+ ((Ve = (qe = t == null ? void 0 : t.screens) == null ? void 0 : qe.welcome) == null ? void 0 : Ve.minHeight) ?? "1px"
907
907
  )
908
908
  },
909
909
  sessions: {
910
- width: a("w", ((Xe = (Ue = t == null ? void 0 : t.screens) == null ? void 0 : Ue.sessions) == null ? void 0 : Xe.width) ?? "450px"),
911
- height: a("h", ((Ve = (qe = t == null ? void 0 : t.screens) == null ? void 0 : qe.sessions) == null ? void 0 : Ve.height) ?? "600px")
910
+ width: a("w", ((Ze = (Ge = t == null ? void 0 : t.screens) == null ? void 0 : Ge.sessions) == null ? void 0 : Ze.width) ?? "450px"),
911
+ height: a("h", ((Qe = (Ke = t == null ? void 0 : t.screens) == null ? void 0 : Ke.sessions) == null ? void 0 : Qe.height) ?? "600px")
912
912
  },
913
913
  chat: {
914
- width: a("w", ((Ze = (Ge = t == null ? void 0 : t.screens) == null ? void 0 : Ge.chat) == null ? void 0 : Ze.width) ?? "525px"),
915
- height: a("h", ((Qe = (Ke = t == null ? void 0 : t.screens) == null ? void 0 : Ke.chat) == null ? void 0 : Qe.height) ?? "700px"),
914
+ width: a("w", ((et = (Je = t == null ? void 0 : t.screens) == null ? void 0 : Je.chat) == null ? void 0 : et.width) ?? "525px"),
915
+ height: a("h", ((rt = (tt = t == null ? void 0 : t.screens) == null ? void 0 : tt.chat) == null ? void 0 : rt.height) ?? "700px"),
916
916
  withCanvas: {
917
917
  width: a(
918
918
  "w",
919
- ((tt = (et = (Je = t == null ? void 0 : t.screens) == null ? void 0 : Je.chat) == null ? void 0 : et.withCanvas) == null ? void 0 : tt.width) ?? "min(1050px, 100vw)"
919
+ ((st = (nt = (ot = t == null ? void 0 : t.screens) == null ? void 0 : ot.chat) == null ? void 0 : nt.withCanvas) == null ? void 0 : st.width) ?? "min(1050px, 100vw)"
920
920
  ),
921
921
  height: a(
922
922
  "h",
923
- ((nt = (ot = (rt = t == null ? void 0 : t.screens) == null ? void 0 : rt.chat) == null ? void 0 : ot.withCanvas) == null ? void 0 : nt.height) ?? "min(800px, 100vh)"
923
+ ((lt = (it = (at = t == null ? void 0 : t.screens) == null ? void 0 : at.chat) == null ? void 0 : it.withCanvas) == null ? void 0 : lt.height) ?? "min(800px, 100vh)"
924
924
  ),
925
- transitionTimingFunction: ((it = (at = (st = t == null ? void 0 : t.screens) == null ? void 0 : st.chat) == null ? void 0 : at.withCanvas) == null ? void 0 : it.transitionTimingFunction) ?? ce.transitionTimingFunction,
926
- transitionDuration: ((dt = (ct = (lt = t == null ? void 0 : t.screens) == null ? void 0 : lt.chat) == null ? void 0 : ct.withCanvas) == null ? void 0 : dt.transitionDuration) ?? ce.transitionDuration
925
+ transitionTimingFunction: ((pt = (dt = (ct = t == null ? void 0 : t.screens) == null ? void 0 : ct.chat) == null ? void 0 : dt.withCanvas) == null ? void 0 : pt.transitionTimingFunction) ?? ce.transitionTimingFunction,
926
+ transitionDuration: ((ut = (ht = (mt = t == null ? void 0 : t.screens) == null ? void 0 : mt.chat) == null ? void 0 : ht.withCanvas) == null ? void 0 : ut.transitionDuration) ?? ce.transitionDuration
927
927
  }
928
928
  }
929
929
  }
930
- }, y = {
930
+ }, k = {
931
931
  // Subtract the offset.bottom twice so that it adds a bit of padding to the top
932
932
  // Subtract the distance between the trigger and the widget content container
933
933
  // Subtract the invisible padding of the trigger (for the wobble effect)
@@ -968,18 +968,18 @@ function V() {
968
968
  return {
969
969
  theme: h,
970
970
  triggerSide: l,
971
- computed: y,
972
- cssVars: uo({
971
+ computed: k,
972
+ cssVars: xo({
973
973
  palette: h.palette,
974
974
  primary: h.primaryColor
975
975
  })
976
976
  };
977
977
  }
978
- function uo({
978
+ function xo({
979
979
  palette: e,
980
980
  primary: o
981
981
  }) {
982
- const t = Zt(e), n = ht(o).toHsl(), s = ht(o).isLight() ? t[950] : t[50];
982
+ const t = Qt(e), n = ft(o).toHsl(), s = ft(o).isLight() ? t[950] : t[50];
983
983
  return {
984
984
  "--opencx-primary": `${n.h} ${n.s * 100}% ${n.l * 100}%`,
985
985
  "--opencx-primary-foreground": s,
@@ -998,7 +998,7 @@ function uo({
998
998
  "--opencx-ring": "var(--opencx-foreground)"
999
999
  };
1000
1000
  }
1001
- function Zt(e) {
1001
+ function Qt(e) {
1002
1002
  const o = {
1003
1003
  50: "0 0% 98%",
1004
1004
  100: "0 0% 96.1%",
@@ -1058,11 +1058,11 @@ function Zt(e) {
1058
1058
  case "slate":
1059
1059
  return s;
1060
1060
  default:
1061
- return F(e, Zt.name), o;
1061
+ return F(e, Qt.name), o;
1062
1062
  }
1063
1063
  }
1064
- function Kt() {
1065
- const { contentIframeRef: e } = A(), { inline: o } = z();
1064
+ function Jt() {
1065
+ const { contentIframeRef: e } = O(), { inline: o } = z();
1066
1066
  return {
1067
1067
  setWidth: (t) => {
1068
1068
  var n;
@@ -1080,16 +1080,16 @@ function Kt() {
1080
1080
  }
1081
1081
  };
1082
1082
  }
1083
- function Me({
1083
+ function Pe({
1084
1084
  width: e,
1085
1085
  height: o
1086
1086
  }) {
1087
- const { isSmallScreen: t } = $(), { setWidth: n, setHeight: s } = Kt();
1087
+ const { isSmallScreen: t } = B(), { setWidth: n, setHeight: s } = Jt();
1088
1088
  se(() => {
1089
1089
  e && n(e), o && s(o);
1090
1090
  }, [t, o, e, n, s]);
1091
1091
  }
1092
- const bt = ur;
1092
+ const zt = vr;
1093
1093
  function ne({
1094
1094
  name: e,
1095
1095
  className: o
@@ -1097,57 +1097,57 @@ function ne({
1097
1097
  const t = (() => {
1098
1098
  switch (e) {
1099
1099
  case "Check":
1100
- return Ir;
1100
+ return Er;
1101
1101
  case "CheckCheck":
1102
- return _r;
1102
+ return Dr;
1103
1103
  case "CircleCheck":
1104
- return Rt;
1104
+ return Ft;
1105
1105
  case "CircleCheckBig":
1106
- return Sr;
1106
+ return Mr;
1107
1107
  case "CircleX":
1108
- return Nr;
1108
+ return Tr;
1109
1109
  case "Expand":
1110
- return zr;
1110
+ return Ir;
1111
1111
  case "Maximize":
1112
- return Cr;
1112
+ return _r;
1113
1113
  case "Maximize2":
1114
- return kr;
1114
+ return Sr;
1115
1115
  case "Minimize":
1116
- return yr;
1116
+ return Nr;
1117
1117
  case "Minimize2":
1118
- return br;
1118
+ return zr;
1119
1119
  case "Shrink":
1120
- return vr;
1120
+ return Cr;
1121
1121
  case "SquareCheck":
1122
- return xr;
1122
+ return kr;
1123
1123
  case "SquareCheckBig":
1124
- return fr;
1124
+ return yr;
1125
1125
  case "SquareX":
1126
- return wr;
1126
+ return br;
1127
1127
  case "X":
1128
- return Ce;
1128
+ return Ne;
1129
1129
  case void 0:
1130
- return bt;
1130
+ return zt;
1131
1131
  default:
1132
- return F(e, ne.name), bt;
1132
+ return F(e, ne.name), zt;
1133
1133
  }
1134
1134
  })();
1135
1135
  return /* @__PURE__ */ r(t, { className: p("size-4", o) });
1136
1136
  }
1137
- function wo() {
1137
+ function vo() {
1138
1138
  var t;
1139
1139
  const e = X(), o = (t = e.config.customComponents) == null ? void 0 : t.headerBottom;
1140
1140
  return o ? /* @__PURE__ */ r(o, { ...e }) : null;
1141
1141
  }
1142
- function fo({ fallback: e }) {
1142
+ function bo({ fallback: e }) {
1143
1143
  var n;
1144
1144
  const o = X(), t = (n = o.config.customComponents) == null ? void 0 : n.headerTitle;
1145
1145
  return t ? /* @__PURE__ */ r(t, { ...o }) : e;
1146
1146
  }
1147
- function De() {
1147
+ function je() {
1148
1148
  const {
1149
1149
  widgetCtx: { org: e }
1150
- } = A(), {
1150
+ } = O(), {
1151
1151
  routerState: { screen: o }
1152
1152
  } = H(), { textContent: t } = z();
1153
1153
  return (() => {
@@ -1160,12 +1160,12 @@ function De() {
1160
1160
  case "welcome":
1161
1161
  return;
1162
1162
  default:
1163
- F(o, De.name);
1163
+ F(o, je.name);
1164
1164
  return;
1165
1165
  }
1166
1166
  })() ?? e.name ?? "Chat";
1167
1167
  }
1168
- function xo(e) {
1168
+ function yo(e) {
1169
1169
  switch (e) {
1170
1170
  case "chat":
1171
1171
  return x("chat/header");
@@ -1174,32 +1174,32 @@ function xo(e) {
1174
1174
  case "welcome":
1175
1175
  return;
1176
1176
  default:
1177
- F(e, De.name);
1177
+ F(e, je.name);
1178
1178
  return;
1179
1179
  }
1180
1180
  }
1181
- function vo() {
1181
+ function ko() {
1182
1182
  const { router: e } = z(), {
1183
1183
  routerState: { screen: o },
1184
1184
  toSessionsScreen: t
1185
1185
  } = H();
1186
1186
  return o !== "chat" || e != null && e.chatScreenOnly ? null : /* @__PURE__ */ r(
1187
- S,
1187
+ N,
1188
1188
  {
1189
1189
  variant: "ghost",
1190
1190
  size: "fit",
1191
1191
  className: "rounded-full",
1192
1192
  onClick: t,
1193
- children: /* @__PURE__ */ r(Tr, { className: "size-4 rtl:-scale-100" })
1193
+ children: /* @__PURE__ */ r(Rr, { className: "size-4 rtl:-scale-100" })
1194
1194
  }
1195
1195
  );
1196
1196
  }
1197
- function bo({
1197
+ function Co({
1198
1198
  button: e
1199
1199
  }) {
1200
- const { setIsOpen: o } = K(), { isSmallScreen: t } = $(), n = X();
1200
+ const { setIsOpen: o } = K(), { isSmallScreen: t } = B(), n = X();
1201
1201
  return t && e.hideOnSmallScreen || !t && e.hideOnLargeScreen ? null : /* @__PURE__ */ r(
1202
- S,
1202
+ N,
1203
1203
  {
1204
1204
  variant: "ghost",
1205
1205
  size: "fit",
@@ -1212,12 +1212,12 @@ function bo({
1212
1212
  }
1213
1213
  );
1214
1214
  }
1215
- function be({
1215
+ function ke({
1216
1216
  button: e
1217
1217
  }) {
1218
1218
  const [o, t] = P(!1), {
1219
1219
  routerState: { screen: n }
1220
- } = H(), { isSmallScreen: s } = $(), { theme: i } = V(), { setWidth: a, setHeight: l } = Kt(), c = X();
1220
+ } = H(), { isSmallScreen: s } = B(), { theme: i } = V(), { setWidth: a, setHeight: l } = Jt(), c = X();
1221
1221
  if (n !== "chat" && n !== "sessions") return null;
1222
1222
  const m = (() => {
1223
1223
  switch (n) {
@@ -1226,7 +1226,7 @@ function be({
1226
1226
  case "sessions":
1227
1227
  return i.screens.sessions.height;
1228
1228
  default:
1229
- return F(n, be.name), i.screens.chat.height;
1229
+ return F(n, ke.name), i.screens.chat.height;
1230
1230
  }
1231
1231
  })(), h = (() => {
1232
1232
  switch (n) {
@@ -1235,22 +1235,22 @@ function be({
1235
1235
  case "sessions":
1236
1236
  return i.screens.sessions.width;
1237
1237
  default:
1238
- return F(n, be.name), i.screens.chat.width;
1238
+ return F(n, ke.name), i.screens.chat.width;
1239
1239
  }
1240
- })(), y = () => {
1240
+ })(), k = () => {
1241
1241
  var w;
1242
- t((g) => {
1243
- const v = !g;
1242
+ t((u) => {
1243
+ const v = !u;
1244
1244
  return l(v ? "100vh" : m), a(v ? `max(40vw, ${h})` : h), v;
1245
1245
  }), (w = e.onClicked) == null || w.call(e, c);
1246
1246
  };
1247
1247
  return s && e.hideOnSmallScreen || !s && e.hideOnLargeScreen ? null : /* @__PURE__ */ r(
1248
- S,
1248
+ N,
1249
1249
  {
1250
1250
  variant: "ghost",
1251
1251
  size: "fit",
1252
1252
  className: "rounded-full",
1253
- onClick: y,
1253
+ onClick: k,
1254
1254
  children: /* @__PURE__ */ r(
1255
1255
  ne,
1256
1256
  {
@@ -1260,14 +1260,14 @@ function be({
1260
1260
  }
1261
1261
  );
1262
1262
  }
1263
- function Qt({
1263
+ function er({
1264
1264
  button: e
1265
1265
  }) {
1266
- var T, b;
1267
- const { close: o } = he(), { widgetCtx: t } = A(), { setIsOpen: n } = K(), { resolveSession: s, sessionState: i } = U(), { isSmallScreen: a } = $(), l = X(), c = !i.session, m = ((T = i.session) == null ? void 0 : T.isOpened) === !1, h = e.onResolved || "stay-in-chat", y = e.behaviorBeforeSessionCreation || "disabled", w = e.behaviorIfSessionIsResolved || "disabled", g = !!(i.isResolvingSession || c && y === "disabled" || m && w === "disabled"), v = async () => {
1268
- const { success: N, error: _ } = await s();
1269
- if (o(), !N)
1270
- return console.error(_), !1;
1266
+ var M, b;
1267
+ const { close: o } = he(), { widgetCtx: t } = O(), { setIsOpen: n } = K(), { resolveSession: s, sessionState: i } = $(), { isSmallScreen: a } = B(), l = X(), c = !i.session, m = ((M = i.session) == null ? void 0 : M.isOpened) === !1, h = e.onResolved || "stay-in-chat", k = e.behaviorBeforeSessionCreation || "disabled", w = e.behaviorIfSessionIsResolved || "disabled", u = !!(i.isResolvingSession || c && k === "disabled" || m && w === "disabled"), v = async () => {
1268
+ const { success: S, error: I } = await s();
1269
+ if (o(), !S)
1270
+ return console.error(I), !1;
1271
1271
  switch (h) {
1272
1272
  case "stay-in-chat":
1273
1273
  break;
@@ -1281,13 +1281,13 @@ function Qt({
1281
1281
  n(!1), t.resetChat();
1282
1282
  break;
1283
1283
  default:
1284
- F(h, Qt.name);
1284
+ F(h, er.name);
1285
1285
  break;
1286
1286
  }
1287
1287
  return !0;
1288
1288
  }, C = () => {
1289
1289
  if (c)
1290
- switch (y) {
1290
+ switch (k) {
1291
1291
  case "disabled":
1292
1292
  return;
1293
1293
  case "close-widget":
@@ -1295,7 +1295,7 @@ function Qt({
1295
1295
  break;
1296
1296
  default:
1297
1297
  F(
1298
- y,
1298
+ k,
1299
1299
  C.name
1300
1300
  );
1301
1301
  }
@@ -1322,28 +1322,28 @@ function Qt({
1322
1322
  }
1323
1323
  };
1324
1324
  return a && e.hideOnSmallScreen || !a && e.hideOnLargeScreen ? null : ((b = e.confirmation) == null ? void 0 : b.type) === "modal" && !m && !c ? /* @__PURE__ */ r(
1325
- Ne,
1325
+ ge,
1326
1326
  {
1327
1327
  trigger: /* @__PURE__ */ r(
1328
- S,
1328
+ N,
1329
1329
  {
1330
1330
  variant: "ghost",
1331
1331
  size: "fit",
1332
1332
  className: "rounded-full",
1333
- disabled: g,
1333
+ disabled: u,
1334
1334
  onClick: () => {
1335
- var N;
1336
- return (N = e.onClicked) == null ? void 0 : N.call(e, l);
1335
+ var S;
1336
+ return (S = e.onClicked) == null ? void 0 : S.call(e, l);
1337
1337
  },
1338
1338
  children: /* @__PURE__ */ r(ne, { name: e.icon })
1339
1339
  }
1340
1340
  ),
1341
- children: /* @__PURE__ */ d(ze, { children: [
1342
- /* @__PURE__ */ r(Wt, { children: /* @__PURE__ */ r(Bt, { children: e.confirmation.title || "Close conversation" }) }),
1343
- /* @__PURE__ */ r(Lt, { children: /* @__PURE__ */ r(Yt, { children: e.confirmation.description || "Are you sure you want to close this conversation?" }) }),
1344
- /* @__PURE__ */ d($t, { children: [
1341
+ children: /* @__PURE__ */ d(ue, { children: [
1342
+ /* @__PURE__ */ r(Se, { children: /* @__PURE__ */ r(Ie, { children: e.confirmation.title || "Close conversation" }) }),
1343
+ /* @__PURE__ */ r(_e, { children: /* @__PURE__ */ r(Te, { children: e.confirmation.description || "Are you sure you want to close this conversation?" }) }),
1344
+ /* @__PURE__ */ d(Xt, { children: [
1345
1345
  /* @__PURE__ */ r(
1346
- S,
1346
+ N,
1347
1347
  {
1348
1348
  variant: "secondary",
1349
1349
  onClick: o,
@@ -1352,12 +1352,12 @@ function Qt({
1352
1352
  }
1353
1353
  ),
1354
1354
  /* @__PURE__ */ r(
1355
- S,
1355
+ N,
1356
1356
  {
1357
1357
  variant: "destructive",
1358
1358
  onClick: async () => {
1359
- var _, E;
1360
- await v() && ((E = (_ = e.confirmation) == null ? void 0 : _.onResolved) == null || E.call(_, l));
1359
+ var I, E;
1360
+ await v() && ((E = (I = e.confirmation) == null ? void 0 : I.onResolved) == null || E.call(I, l));
1361
1361
  },
1362
1362
  disabled: i.isResolvingSession,
1363
1363
  children: e.confirmation.confirmButtonText || "Yes"
@@ -1367,56 +1367,56 @@ function Qt({
1367
1367
  ] })
1368
1368
  }
1369
1369
  ) : /* @__PURE__ */ r(
1370
- S,
1370
+ N,
1371
1371
  {
1372
1372
  variant: "ghost",
1373
1373
  size: "fit",
1374
1374
  className: "rounded-full",
1375
1375
  onClick: () => {
1376
- var N;
1377
- m || c ? C() : v(), (N = e.onClicked) == null || N.call(e, l);
1376
+ var S;
1377
+ m || c ? C() : v(), (S = e.onClicked) == null || S.call(e, l);
1378
1378
  },
1379
- disabled: g,
1379
+ disabled: u,
1380
1380
  children: /* @__PURE__ */ r(ne, { name: e.icon })
1381
1381
  }
1382
1382
  );
1383
1383
  }
1384
- function ye({ button: e }) {
1384
+ function Ce({ button: e }) {
1385
1385
  switch (e.functionality) {
1386
1386
  case "close-widget":
1387
- return /* @__PURE__ */ r(bo, { button: e });
1387
+ return /* @__PURE__ */ r(Co, { button: e });
1388
1388
  case "expand-shrink":
1389
- return /* @__PURE__ */ r(be, { button: e });
1389
+ return /* @__PURE__ */ r(ke, { button: e });
1390
1390
  case "resolve-session":
1391
- return /* @__PURE__ */ r(Qt, { button: e });
1391
+ return /* @__PURE__ */ r(er, { button: e });
1392
1392
  default:
1393
- return F(e, ye.name), null;
1393
+ return F(e, Ce.name), null;
1394
1394
  }
1395
1395
  }
1396
- const yo = {
1396
+ const zo = {
1397
1397
  functionality: "close-widget",
1398
1398
  hideOnLargeScreen: !0,
1399
1399
  icon: "X"
1400
1400
  };
1401
- function ko() {
1401
+ function No() {
1402
1402
  const {
1403
1403
  routerState: { screen: e }
1404
1404
  } = H(), { headerButtons: o } = z(), t = e === "chat" ? o == null ? void 0 : o.chatScreen : e === "sessions" ? o == null ? void 0 : o.sessionsScreen : [];
1405
- return !t || t.length === 0 ? /* @__PURE__ */ r(ye, { button: yo }) : /* @__PURE__ */ r(J, { children: t.map((n) => /* @__PURE__ */ r(
1406
- ye,
1405
+ return !t || t.length === 0 ? /* @__PURE__ */ r(Ce, { button: zo }) : /* @__PURE__ */ r(J, { children: t.map((n) => /* @__PURE__ */ r(
1406
+ Ce,
1407
1407
  {
1408
1408
  button: n
1409
1409
  },
1410
1410
  `${n.functionality}-${n.icon}`
1411
1411
  )) });
1412
1412
  }
1413
- function Jt() {
1413
+ function tr() {
1414
1414
  const {
1415
1415
  routerState: { screen: e }
1416
- } = H(), o = xo(e), t = De();
1416
+ } = H(), o = yo(e), t = je();
1417
1417
  return /* @__PURE__ */ d("header", { ...o, className: "py-2 px-4 shrink-0", children: [
1418
1418
  /* @__PURE__ */ d("div", { className: "flex items-center gap-2", children: [
1419
- /* @__PURE__ */ r(vo, {}),
1419
+ /* @__PURE__ */ r(ko, {}),
1420
1420
  /* @__PURE__ */ r(
1421
1421
  "div",
1422
1422
  {
@@ -1425,31 +1425,31 @@ function Jt() {
1425
1425
  e === "sessions" && "ps-2"
1426
1426
  ),
1427
1427
  children: /* @__PURE__ */ r(
1428
- fo,
1428
+ bo,
1429
1429
  {
1430
1430
  fallback: /* @__PURE__ */ r("h2", { className: "font-semibold", children: t })
1431
1431
  }
1432
1432
  )
1433
1433
  }
1434
1434
  ),
1435
- /* @__PURE__ */ r(ko, {})
1435
+ /* @__PURE__ */ r(No, {})
1436
1436
  ] }),
1437
- /* @__PURE__ */ r(wo, {})
1437
+ /* @__PURE__ */ r(vo, {})
1438
1438
  ] });
1439
1439
  }
1440
- function er({ className: e }) {
1441
- return /* @__PURE__ */ r(Mr, { className: p("size-4 animate-spin", e) });
1440
+ function rr({ className: e }) {
1441
+ return /* @__PURE__ */ r(Pr, { className: p("size-4 animate-spin", e) });
1442
1442
  }
1443
- function Co() {
1443
+ function So() {
1444
1444
  const {
1445
1445
  messagesState: { isInitialFetchLoading: e }
1446
- } = O(), { isSmallScreen: o } = $(), { activeMode: t, Component: n } = _t();
1446
+ } = A(), { isSmallScreen: o } = B(), { activeMode: t, Component: n } = Et();
1447
1447
  return {
1448
1448
  isCanvasOpen: !e && !o && !!t && !!n
1449
1449
  };
1450
1450
  }
1451
- function zo() {
1452
- const e = X(), { activeMode: o, Component: t } = _t(), { sendMessage: n } = O(), { createStateCheckpoint: s } = U(), [i, a] = P(!1), l = async (c) => {
1451
+ function _o() {
1452
+ const e = X(), { activeMode: o, Component: t } = Et(), { sendMessage: n } = A(), { createStateCheckpoint: s } = $(), [i, a] = P(!1), l = async (c) => {
1453
1453
  try {
1454
1454
  a(!0), await n(c);
1455
1455
  } catch (m) {
@@ -1470,11 +1470,11 @@ function zo() {
1470
1470
  );
1471
1471
  }
1472
1472
  function G() {
1473
- const { dir: e } = ke(), o = z();
1474
- return St(() => {
1475
- const t = Xr(o.language) ? o.language : "en";
1473
+ const { dir: e } = ze(), o = z();
1474
+ return Dt(() => {
1475
+ const t = Gr(o.language) ? o.language : "en";
1476
1476
  return {
1477
- t: (n) => qr(n, t, o.translationOverrides),
1477
+ t: (n) => Zr(n, t, o.translationOverrides),
1478
1478
  language: t,
1479
1479
  dir: t === "ar" ? "rtl" : "ltr",
1480
1480
  hostDocumentDir: e
@@ -1485,7 +1485,7 @@ const W = L.forwardRef(
1485
1485
  (e, o) => {
1486
1486
  var t, n, s;
1487
1487
  return /* @__PURE__ */ r(
1488
- k,
1488
+ y,
1489
1489
  {
1490
1490
  ...e,
1491
1491
  ref: o,
@@ -1500,7 +1500,7 @@ const W = L.forwardRef(
1500
1500
  }
1501
1501
  );
1502
1502
  W.displayName = "MotionDiv__VerticalReveal";
1503
- const No = [
1503
+ const Io = [
1504
1504
  {
1505
1505
  label: "Terrible",
1506
1506
  value: 1,
@@ -1527,15 +1527,15 @@ const No = [
1527
1527
  emoji: "😍"
1528
1528
  }
1529
1529
  ];
1530
- function So() {
1531
- const { isSmallScreen: e } = $(), { t: o } = G(), {
1530
+ function To() {
1531
+ const { isSmallScreen: e } = B(), { t: o } = G(), {
1532
1532
  submitCsat: t,
1533
1533
  isCsatRequested: n,
1534
1534
  isCsatSubmitted: s,
1535
1535
  submittedScore: i,
1536
1536
  submittedFeedback: a
1537
- } = It(), [l, c] = P(null), [m, h] = P(null), y = (g) => {
1538
- c((v) => v === g ? null : g);
1537
+ } = Rt(), [l, c] = P(null), [m, h] = P(null), k = (u) => {
1538
+ c((v) => v === u ? null : u);
1539
1539
  }, w = () => {
1540
1540
  l && t({
1541
1541
  score: l,
@@ -1543,7 +1543,7 @@ function So() {
1543
1543
  });
1544
1544
  };
1545
1545
  return !n && !s ? null : /* @__PURE__ */ d("div", { className: "w-1/2 min-w-80 max-w-96 mx-auto overflow-hidden", children: [
1546
- /* @__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 }),
1546
+ /* @__PURE__ */ r(_, { 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 }),
1547
1547
  /* @__PURE__ */ r(
1548
1548
  "div",
1549
1549
  {
@@ -1553,10 +1553,10 @@ function So() {
1553
1553
  "transition-all",
1554
1554
  s && "gap-0 justify-center"
1555
1555
  ),
1556
- children: No.map((g) => /* @__PURE__ */ r(
1557
- S,
1556
+ children: Io.map((u) => /* @__PURE__ */ r(
1557
+ N,
1558
1558
  {
1559
- variant: g.value === l ? "secondary" : "ghost",
1559
+ variant: u.value === l ? "secondary" : "ghost",
1560
1560
  size: "selfless",
1561
1561
  className: p(
1562
1562
  "transition-all overflow-hidden",
@@ -1564,18 +1564,18 @@ function So() {
1564
1564
  "opacity-35",
1565
1565
  "hover:opacity-100",
1566
1566
  !l && "opacity-100",
1567
- g.value === l && "opacity-100",
1568
- s && g.value !== i && "opacity-0 size-0",
1569
- s && g.value === i && "opacity-100 size-fit text-4xl"
1567
+ u.value === l && "opacity-100",
1568
+ s && u.value !== i && "opacity-0 size-0",
1569
+ s && u.value === i && "opacity-100 size-fit text-4xl"
1570
1570
  ),
1571
- onClick: n ? () => y(g.value) : void 0,
1572
- children: g.emoji
1571
+ onClick: n ? () => k(u.value) : void 0,
1572
+ children: u.emoji
1573
1573
  },
1574
- g.value
1574
+ u.value
1575
1575
  ))
1576
1576
  }
1577
1577
  ),
1578
- /* @__PURE__ */ r(D, { mode: "wait", children: (l || i) && /* @__PURE__ */ r(W, { children: /* @__PURE__ */ d("div", { className: "pb-2 px-2 flex items-end", children: [
1578
+ /* @__PURE__ */ r(_, { mode: "wait", children: (l || i) && /* @__PURE__ */ r(W, { children: /* @__PURE__ */ d("div", { className: "pb-2 px-2 flex items-end", children: [
1579
1579
  /* @__PURE__ */ r(
1580
1580
  "textarea",
1581
1581
  {
@@ -1591,13 +1591,13 @@ function So() {
1591
1591
  s && "text-center"
1592
1592
  ),
1593
1593
  value: s ? a || "" : m || "",
1594
- onChange: n ? (g) => h(g.target.value) : void 0,
1594
+ onChange: n ? (u) => h(u.target.value) : void 0,
1595
1595
  readOnly: s,
1596
1596
  placeholder: n ? o("csat_feedback_placeholder") : void 0
1597
1597
  }
1598
1598
  ),
1599
1599
  /* @__PURE__ */ r(
1600
- S,
1600
+ N,
1601
1601
  {
1602
1602
  size: "fit",
1603
1603
  onClick: w,
@@ -1607,7 +1607,7 @@ function So() {
1607
1607
  "rounded-full size-8 flex items-center justify-center p-0",
1608
1608
  s && "opacity-0 size-0"
1609
1609
  ),
1610
- children: /* @__PURE__ */ r(Pt, { className: "size-4" })
1610
+ children: /* @__PURE__ */ r(Ht, { className: "size-4" })
1611
1611
  }
1612
1612
  )
1613
1613
  ] }) }, "feedback-box") }),
@@ -1619,17 +1619,17 @@ function So() {
1619
1619
  )
1620
1620
  ] });
1621
1621
  }
1622
- function Ee({
1622
+ function Oe({
1623
1623
  suggestion: e,
1624
1624
  className: o,
1625
1625
  ...t
1626
1626
  }) {
1627
- const { sendMessage: n } = O(), s = () => {
1627
+ const { sendMessage: n } = A(), s = () => {
1628
1628
  const i = e.trim();
1629
1629
  i && n({ content: i });
1630
1630
  };
1631
1631
  return /* @__PURE__ */ r(
1632
- S,
1632
+ N,
1633
1633
  {
1634
1634
  ...x("chat/suggested_reply_btn"),
1635
1635
  size: "sm",
@@ -1640,7 +1640,7 @@ function Ee({
1640
1640
  }
1641
1641
  );
1642
1642
  }
1643
- function _o() {
1643
+ function Mo() {
1644
1644
  const { t: e } = G(), o = [e("i_need_more_help"), e("this_was_helpful")];
1645
1645
  return /* @__PURE__ */ r(
1646
1646
  "div",
@@ -1648,7 +1648,7 @@ function _o() {
1648
1648
  ...x("chat/might_solve_user_issue_suggested_replies_container"),
1649
1649
  className: "flex items-center gap-2 p-2 pb-0 flex-wrap",
1650
1650
  children: o.map((t) => /* @__PURE__ */ r(
1651
- Ee,
1651
+ Oe,
1652
1652
  {
1653
1653
  suggestion: t,
1654
1654
  className: "flex-1"
@@ -1658,11 +1658,11 @@ function _o() {
1658
1658
  }
1659
1659
  );
1660
1660
  }
1661
- function yt() {
1662
- const { sessionState: e } = U(), { chatFooterItems: o } = z(), t = !!e.session && !e.session.isOpened, n = !t;
1663
- 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}`)) });
1661
+ function Nt() {
1662
+ const { sessionState: e } = $(), { chatFooterItems: o } = z(), t = !!e.session && !e.session.isOpened, n = !t;
1663
+ return /* @__PURE__ */ r(_, { mode: "wait", children: o == null ? void 0 : o.map((s, i) => s.showWhenSessionIsOpen === !1 && n || s.showWhenSessionIsResolved === !1 && t ? null : /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r("div", { className: "pb-2 text-center text-xs", children: /* @__PURE__ */ r(Me, { children: s.message }) }) }, `${s.message}-${i}`)) });
1664
1664
  }
1665
- function Io({
1665
+ function Do({
1666
1666
  file: { status: e, file: o, error: t },
1667
1667
  onCancel: n
1668
1668
  }) {
@@ -1677,9 +1677,9 @@ function Io({
1677
1677
  const a = () => {
1678
1678
  switch (e) {
1679
1679
  case "uploading":
1680
- return /* @__PURE__ */ r(Rr, { className: "size-4 animate-spin" });
1680
+ return /* @__PURE__ */ r(Ar, { className: "size-4 animate-spin" });
1681
1681
  case "error":
1682
- return /* @__PURE__ */ r(Er, { className: "size-4 text-destructive" });
1682
+ return /* @__PURE__ */ r(Or, { className: "size-4 text-destructive" });
1683
1683
  default:
1684
1684
  return null;
1685
1685
  }
@@ -1692,7 +1692,7 @@ function Io({
1692
1692
  className: "object-cover bg-secondary size-full",
1693
1693
  alt: o.name
1694
1694
  }
1695
- ) : c === "audio" ? /* @__PURE__ */ r(Pr, { className: "size-4 text-muted-foreground" }) : c === "video" ? /* @__PURE__ */ r(jr, { className: "size-4 text-muted-foreground" }) : o.type === "application/pdf" ? /* @__PURE__ */ r(Dt, { className: "size-4 text-muted-foreground" }) : Ft({ type: o.type, name: o.name }) ? /* @__PURE__ */ r(Et, { className: "size-4 text-muted-foreground" }) : /* @__PURE__ */ r(Ar, { className: "size-4 text-muted-foreground" });
1695
+ ) : c === "audio" ? /* @__PURE__ */ r(Fr, { className: "size-4 text-muted-foreground" }) : c === "video" ? /* @__PURE__ */ r(Hr, { className: "size-4 text-muted-foreground" }) : o.type === "application/pdf" ? /* @__PURE__ */ r(Ot, { className: "size-4 text-muted-foreground" }) : Ut({ type: o.type, name: o.name }) ? /* @__PURE__ */ r(At, { className: "size-4 text-muted-foreground" }) : /* @__PURE__ */ r(Wr, { className: "size-4 text-muted-foreground" });
1696
1696
  };
1697
1697
  return /* @__PURE__ */ r(
1698
1698
  oe,
@@ -1723,7 +1723,7 @@ function Io({
1723
1723
  "opacity-0 group-hover:opacity-100 transition"
1724
1724
  ),
1725
1725
  onClick: n,
1726
- children: /* @__PURE__ */ r(Ce, { className: "size-4 text-primary-foreground" })
1726
+ children: /* @__PURE__ */ r(Ne, { className: "size-4 text-primary-foreground" })
1727
1727
  }
1728
1728
  ),
1729
1729
  /* @__PURE__ */ r(l, {})
@@ -1733,32 +1733,32 @@ function Io({
1733
1733
  }
1734
1734
  );
1735
1735
  }
1736
- const To = 25 * 1024 * 1024;
1737
- function Mo() {
1736
+ const Eo = 25 * 1024 * 1024;
1737
+ function Ro() {
1738
1738
  var R;
1739
- const { isSmallScreen: e } = $(), o = B(null), { sendMessage: t } = O(), { sessionState: n } = U(), { disableSendingWhenAwaitingAIReply: s } = z(), { t: i } = G(), [a, l] = P(""), {
1739
+ const { isSmallScreen: e } = B(), o = U(null), { sendMessage: t } = A(), { sessionState: n } = $(), { disableSendingWhenAwaitingAIReply: s } = z(), { t: i } = G(), [a, l] = P(""), {
1740
1740
  allFiles: c,
1741
1741
  emptyTheFiles: m,
1742
1742
  handleCancelUpload: h,
1743
- appendFiles: y,
1743
+ appendFiles: k,
1744
1744
  isUploading: w,
1745
- successFiles: g
1746
- } = lr(), v = !!((R = n.session) != null && R.isHandedOff), { isAwaitingBotReply: C } = Tt(), T = s !== !1 && C, b = (u) => {
1747
- y(u);
1748
- }, N = !a.trim() && g.length === 0, _ = async () => {
1749
- if (T || N) return;
1745
+ successFiles: u
1746
+ } = mr(), v = !!((R = n.session) != null && R.isHandedOff), { isAwaitingBotReply: C } = Pt(), M = s !== !1 && C, b = (g) => {
1747
+ k(g);
1748
+ }, S = !a.trim() && u.length === 0, I = async () => {
1749
+ if (M || S) return;
1750
1750
  w && console.info("please wait for the file(s) to upload");
1751
- const u = a.trim();
1751
+ const g = a.trim();
1752
1752
  t({
1753
- content: u,
1754
- attachments: g.flatMap(
1755
- (I) => I.fileUrl ? [
1753
+ content: g,
1754
+ attachments: u.flatMap(
1755
+ (T) => T.fileUrl ? [
1756
1756
  {
1757
- url: I.fileUrl,
1758
- type: I.file.type,
1759
- name: I.file.name,
1760
- id: I.id,
1761
- size: I.file.size
1757
+ url: T.fileUrl,
1758
+ type: T.file.type,
1759
+ name: T.file.name,
1760
+ id: T.id,
1761
+ size: T.file.size
1762
1762
  }
1763
1763
  ] : []
1764
1764
  )
@@ -1766,32 +1766,32 @@ function Mo() {
1766
1766
  }, {
1767
1767
  getRootProps: E,
1768
1768
  getInputProps: f,
1769
- open: M
1770
- } = Vr({
1769
+ open: D
1770
+ } = Kr({
1771
1771
  onDrop: b,
1772
1772
  noClick: !0,
1773
1773
  onDropRejected() {
1774
1774
  console.error("unsupported file type, or the file is too large");
1775
1775
  },
1776
- maxSize: To,
1776
+ maxSize: Eo,
1777
1777
  accept: v ? {
1778
1778
  "text/*": [".txt"],
1779
1779
  "image/*": [".png", ".jpg", ".jpeg", ".gif"],
1780
1780
  "application/pdf": [".pdf"],
1781
- ...gt,
1782
- ...ut
1781
+ ...xt,
1782
+ ...vt
1783
1783
  } : {
1784
1784
  "image/png": [".png"],
1785
1785
  "image/jpeg": [".jpg", ".jpeg"],
1786
1786
  "image/gif": [".gif"],
1787
1787
  "image/webp": [".webp"],
1788
1788
  "application/pdf": [".pdf"],
1789
- ...gt,
1790
- ...ut
1789
+ ...xt,
1790
+ ...vt
1791
1791
  }
1792
- }), j = (u) => {
1793
- const I = u.clipboardData;
1794
- I && I.files.length > 0 && b(Array.from(I.files));
1792
+ }), j = (g) => {
1793
+ const T = g.clipboardData;
1794
+ T && T.files.length > 0 && b(Array.from(T.files));
1795
1795
  };
1796
1796
  return /* @__PURE__ */ d(
1797
1797
  "div",
@@ -1824,13 +1824,13 @@ function Mo() {
1824
1824
  {
1825
1825
  ...x("chat/input_box/attachments_container"),
1826
1826
  className: "flex items-center gap-1",
1827
- children: /* @__PURE__ */ r(D, { mode: "popLayout", children: c.map((u) => /* @__PURE__ */ r(k, { snapExit: !0, children: /* @__PURE__ */ r(
1828
- Io,
1827
+ children: /* @__PURE__ */ r(_, { mode: "popLayout", children: c.map((g) => /* @__PURE__ */ r(y, { snapExit: !0, children: /* @__PURE__ */ r(
1828
+ Do,
1829
1829
  {
1830
- onCancel: () => h(u.id),
1831
- file: u
1830
+ onCancel: () => h(g.id),
1831
+ file: g
1832
1832
  }
1833
- ) }, u.id)) })
1833
+ ) }, g.id)) })
1834
1834
  }
1835
1835
  ),
1836
1836
  /* @__PURE__ */ r(
@@ -1853,9 +1853,9 @@ function Mo() {
1853
1853
  // 16px on mobiles prevents auto-zoom on the input when focused
1854
1854
  e ? "text-[16px]" : "text-sm"
1855
1855
  ),
1856
- onChange: (u) => l(u.target.value),
1857
- onKeyDown: async (u) => {
1858
- u.key === "Enter" && !u.shiftKey && (u.preventDefault(), _());
1856
+ onChange: (g) => l(g.target.value),
1857
+ onKeyDown: async (g) => {
1858
+ g.key === "Enter" && !g.shiftKey && (g.preventDefault(), I());
1859
1859
  },
1860
1860
  placeholder: i("write_a_message_placeholder")
1861
1861
  }
@@ -1871,27 +1871,27 @@ function Mo() {
1871
1871
  align: "start",
1872
1872
  content: "attach images, videos, PDFs, or spreadsheets (maximum size 25mb)",
1873
1873
  children: /* @__PURE__ */ r(
1874
- S,
1874
+ N,
1875
1875
  {
1876
- onClick: M,
1876
+ onClick: D,
1877
1877
  size: "fit",
1878
1878
  variant: "ghost",
1879
1879
  className: p(
1880
1880
  "rounded-full size-8 flex items-center justify-center p-0 overflow-hidden"
1881
1881
  ),
1882
- children: /* @__PURE__ */ r(D, { mode: "wait", children: T ? /* @__PURE__ */ r(k, { children: /* @__PURE__ */ r(mt, { className: "size-4 opacity-50" }) }, "paper-clip-disabled") : /* @__PURE__ */ r(k, { children: /* @__PURE__ */ r(mt, { className: "size-4" }) }, "paper-clip") })
1882
+ children: /* @__PURE__ */ r(_, { mode: "wait", children: M ? /* @__PURE__ */ r(y, { children: /* @__PURE__ */ r(wt, { className: "size-4 opacity-50" }) }, "paper-clip-disabled") : /* @__PURE__ */ r(y, { children: /* @__PURE__ */ r(wt, { className: "size-4" }) }, "paper-clip") })
1883
1883
  }
1884
1884
  )
1885
1885
  }
1886
1886
  ),
1887
1887
  /* @__PURE__ */ r(oe, { content: "send message", side: "top", align: "end", children: /* @__PURE__ */ r(
1888
- S,
1888
+ N,
1889
1889
  {
1890
1890
  size: "fit",
1891
- onClick: _,
1892
- disabled: T || w || N,
1891
+ onClick: I,
1892
+ disabled: M || w || S,
1893
1893
  className: "rounded-full size-8 flex items-center justify-center p-0",
1894
- children: /* @__PURE__ */ r(D, { mode: "wait", children: T || w ? /* @__PURE__ */ r(k, { snapExit: !0, children: /* @__PURE__ */ r(Dr, { className: "size-4 animate-spin animate-iteration-infinite" }) }, "loading") : /* @__PURE__ */ r(k, { snapExit: !0, children: /* @__PURE__ */ r(Pt, { className: "size-4" }) }, "send") })
1894
+ children: /* @__PURE__ */ r(_, { mode: "wait", children: M || w ? /* @__PURE__ */ r(y, { snapExit: !0, children: /* @__PURE__ */ r(jr, { className: "size-4 animate-spin animate-iteration-infinite" }) }, "loading") : /* @__PURE__ */ r(y, { snapExit: !0, children: /* @__PURE__ */ r(Ht, { className: "size-4" }) }, "send") })
1895
1895
  }
1896
1896
  ) })
1897
1897
  ] })
@@ -1902,49 +1902,49 @@ function Mo() {
1902
1902
  }
1903
1903
  );
1904
1904
  }
1905
- function kt() {
1906
- const { widgetCtx: e } = A(), { router: o } = z(), { canCreateNewSession: t } = U(), { toSessionsScreen: n } = H(), { t: s } = G();
1907
- 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") }) });
1905
+ function St() {
1906
+ const { widgetCtx: e } = O(), { router: o } = z(), { canCreateNewSession: t } = $(), { toSessionsScreen: n } = H(), { t: s } = G();
1907
+ return /* @__PURE__ */ r(J, { children: t || o != null && o.chatScreenOnly ? /* @__PURE__ */ r(N, { onClick: e.resetChat, className: "rounded-2xl w-full", children: s("new_conversation") }) : /* @__PURE__ */ r(N, { onClick: n, className: "rounded-2xl w-full", children: s("back_to_conversations") }) });
1908
1908
  }
1909
- function Do() {
1910
- const { t: e } = G(), { isCsatRequested: o, isCsatSubmitted: t } = It();
1911
- 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: [
1912
- /* @__PURE__ */ r(So, {}),
1913
- /* @__PURE__ */ r(D, { mode: "wait", children: t && /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r(kt, {}) }, "new-conv-or-back-to-convs-button") })
1909
+ function Po() {
1910
+ const { t: e } = G(), { isCsatRequested: o, isCsatSubmitted: t } = Rt();
1911
+ return /* @__PURE__ */ r("div", { className: "p-2", children: /* @__PURE__ */ r("div", { className: "p-2 bg-muted rounded-3xl", children: /* @__PURE__ */ r(_, { mode: "wait", children: o || t ? /* @__PURE__ */ d(W, { children: [
1912
+ /* @__PURE__ */ r(To, {}),
1913
+ /* @__PURE__ */ r(_, { mode: "wait", children: t && /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r(St, {}) }, "new-conv-or-back-to-convs-button") })
1914
1914
  ] }, "csat") : /* @__PURE__ */ d(W, { children: [
1915
1915
  /* @__PURE__ */ d("div", { className: "ps-2 flex items-center gap-1 pb-2", children: [
1916
- /* @__PURE__ */ r(Rt, { className: "size-4 text-emerald-600" }),
1916
+ /* @__PURE__ */ r(Ft, { className: "size-4 text-emerald-600" }),
1917
1917
  /* @__PURE__ */ r("h2", { className: "text-sm font-medium", children: e("your_issue_has_been_resolved") })
1918
1918
  ] }),
1919
- /* @__PURE__ */ r(kt, {})
1919
+ /* @__PURE__ */ r(St, {})
1920
1920
  ] }, "session-closed") }) }) });
1921
1921
  }
1922
- function Eo() {
1922
+ function jo() {
1923
1923
  var a;
1924
- const { initialQuestions: e, initialQuestionsPosition: o, thisWasHelpfulOrNot: t } = z(), { sessionState: n } = U(), { messagesState: s } = O(), i = s.messages.length === 0;
1925
- return /* @__PURE__ */ r("footer", { children: /* @__PURE__ */ r(D, { mode: "wait", children: n.session && !((a = n.session) != null && a.isOpened) ? /* @__PURE__ */ d(W, { children: [
1926
- /* @__PURE__ */ r(Do, {}),
1927
- /* @__PURE__ */ r(yt, {})
1924
+ const { initialQuestions: e, initialQuestionsPosition: o, thisWasHelpfulOrNot: t } = z(), { sessionState: n } = $(), { messagesState: s } = A(), i = s.messages.length === 0;
1925
+ return /* @__PURE__ */ r("footer", { children: /* @__PURE__ */ r(_, { mode: "wait", children: n.session && !((a = n.session) != null && a.isOpened) ? /* @__PURE__ */ d(W, { children: [
1926
+ /* @__PURE__ */ r(Po, {}),
1927
+ /* @__PURE__ */ r(Nt, {})
1928
1928
  ] }, "session-closed") : /* @__PURE__ */ d(W, { children: [
1929
- s.lastAIResMightSolveUserIssue && (t == null ? void 0 : t.enabled) !== !1 && /* @__PURE__ */ r(_o, {}),
1929
+ s.lastAIResMightSolveUserIssue && (t == null ? void 0 : t.enabled) !== !1 && /* @__PURE__ */ r(Mo, {}),
1930
1930
  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(
1931
- Ee,
1931
+ Oe,
1932
1932
  {
1933
1933
  suggestion: l
1934
1934
  },
1935
1935
  `${l}-${c}`
1936
1936
  )) }),
1937
- /* @__PURE__ */ r(Mo, {}),
1938
- /* @__PURE__ */ r(yt, {})
1937
+ /* @__PURE__ */ r(Ro, {}),
1938
+ /* @__PURE__ */ r(Nt, {})
1939
1939
  ] }, "chat-input") }) });
1940
1940
  }
1941
- function Ro({
1941
+ function Oo({
1942
1942
  isFirstInGroup: e,
1943
1943
  isLastInGroup: o,
1944
1944
  isAloneInGroup: t,
1945
1945
  ...n
1946
1946
  }) {
1947
- const { componentStore: s } = A();
1947
+ const { componentStore: s } = O();
1948
1948
  if (n.type !== "AGENT" && n.type !== "AI") return null;
1949
1949
  if (n.data.action) {
1950
1950
  const a = s.getComponent(n.data.action.name);
@@ -1971,7 +1971,7 @@ function Ro({
1971
1971
  isAloneInGroup: t
1972
1972
  }
1973
1973
  ) : /* @__PURE__ */ r(
1974
- xe,
1974
+ be,
1975
1975
  {
1976
1976
  ...n,
1977
1977
  isFirstInGroup: e,
@@ -1980,7 +1980,7 @@ function Ro({
1980
1980
  }
1981
1981
  );
1982
1982
  }
1983
- function tr({
1983
+ function or({
1984
1984
  messages: e,
1985
1985
  className: o,
1986
1986
  containerClassName: t
@@ -2016,7 +2016,7 @@ function pe({
2016
2016
  className: p("flex items-end gap-2"),
2017
2017
  children: [
2018
2018
  /* @__PURE__ */ r(oe, { content: o == null ? void 0 : o.name, side: "right", align: "end", children: /* @__PURE__ */ r(
2019
- ve,
2019
+ ye,
2020
2020
  {
2021
2021
  ...x("chat/agent_msg_group/root/avatar"),
2022
2022
  agent: o,
@@ -2031,7 +2031,7 @@ function pe({
2031
2031
  className: p("flex items-end gap-2"),
2032
2032
  children: [
2033
2033
  /* @__PURE__ */ r(oe, { content: o == null ? void 0 : o.name, side: "right", align: "end", children: /* @__PURE__ */ r(
2034
- ve,
2034
+ ye,
2035
2035
  {
2036
2036
  ...x("chat/agent_msg_group/avatar_and_msgs/avatar"),
2037
2037
  agent: o
@@ -2044,7 +2044,7 @@ function pe({
2044
2044
  className: p("flex-1 flex flex-col gap-1"),
2045
2045
  children: [
2046
2046
  e.map((n, s, i) => /* @__PURE__ */ r(
2047
- Ro,
2047
+ Oo,
2048
2048
  {
2049
2049
  isFirstInGroup: s === 0,
2050
2050
  isLastInGroup: s === i.length - 1,
@@ -2053,7 +2053,7 @@ function pe({
2053
2053
  },
2054
2054
  n.id
2055
2055
  )),
2056
- /* @__PURE__ */ r(tr, { messages: e })
2056
+ /* @__PURE__ */ r(or, { messages: e })
2057
2057
  ]
2058
2058
  }
2059
2059
  )
@@ -2066,7 +2066,7 @@ function pe({
2066
2066
  ...x("chat/agent_msg_group/suggestions"),
2067
2067
  className: p("flex flex-col gap-1 ps-8"),
2068
2068
  children: t == null ? void 0 : t.map((n, s) => /* @__PURE__ */ r(
2069
- Ee,
2069
+ Oe,
2070
2070
  {
2071
2071
  suggestion: n
2072
2072
  },
@@ -2079,14 +2079,14 @@ function pe({
2079
2079
  }
2080
2080
  );
2081
2081
  }
2082
- function Po() {
2082
+ function Ao() {
2083
2083
  var t, n;
2084
2084
  const e = X();
2085
2085
  if ((t = e.session) != null && t.isOpened || !e.session) return null;
2086
2086
  const o = (n = e.config.customComponents) == null ? void 0 : n.onSessionResolved;
2087
2087
  return o ? /* @__PURE__ */ r(o, { ...e }) : null;
2088
2088
  }
2089
- function jo({
2089
+ function Fo({
2090
2090
  message: e,
2091
2091
  isFirstInGroup: o,
2092
2092
  isLastInGroup: t,
@@ -2099,7 +2099,7 @@ function jo({
2099
2099
  ...x("chat/user_msg/root"),
2100
2100
  className: "w-5/6 flex flex-col items-end gap-1",
2101
2101
  children: [
2102
- 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(Xt, { attachment: i }, i.id)) }),
2102
+ 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(Vt, { attachment: i }, i.id)) }),
2103
2103
  e.content.length > 0 && /* @__PURE__ */ r(
2104
2104
  "div",
2105
2105
  {
@@ -2126,7 +2126,7 @@ function jo({
2126
2126
  }
2127
2127
  );
2128
2128
  }
2129
- function Ao({
2129
+ function Ho({
2130
2130
  messages: e
2131
2131
  }) {
2132
2132
  return /* @__PURE__ */ d(
@@ -2136,7 +2136,7 @@ function Ao({
2136
2136
  className: p("group", "flex flex-col gap-1 justify-end items-end"),
2137
2137
  children: [
2138
2138
  e.map((o, t, n) => /* @__PURE__ */ r(
2139
- jo,
2139
+ Fo,
2140
2140
  {
2141
2141
  message: o,
2142
2142
  isFirstInGroup: t === 0,
@@ -2145,12 +2145,12 @@ function Ao({
2145
2145
  },
2146
2146
  o.id
2147
2147
  )),
2148
- /* @__PURE__ */ r(tr, { messages: e, containerClassName: "ms-auto" })
2148
+ /* @__PURE__ */ r(or, { messages: e, containerClassName: "ms-auto" })
2149
2149
  ]
2150
2150
  }
2151
2151
  );
2152
2152
  }
2153
- function Oo(e) {
2153
+ function Wo(e) {
2154
2154
  const o = [];
2155
2155
  let t = null;
2156
2156
  return e.forEach((n) => {
@@ -2160,22 +2160,22 @@ function Oo(e) {
2160
2160
  ((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) !== ((m = t[0].agent) == null ? void 0 : m.name))) && (t = [], o.push(t)), t.push(n);
2161
2161
  }), o;
2162
2162
  }
2163
- function Fo(e) {
2163
+ function Lo(e) {
2164
2164
  var o;
2165
2165
  return ((o = e == null ? void 0 : e[0]) == null ? void 0 : o.type) === "USER";
2166
2166
  }
2167
- function Ho(e) {
2167
+ function $o(e) {
2168
2168
  var o;
2169
2169
  return ((o = e == null ? void 0 : e[0]) == null ? void 0 : o.type) === "AI";
2170
2170
  }
2171
- function Wo(e) {
2171
+ function Bo(e) {
2172
2172
  var o;
2173
2173
  return ((o = e == null ? void 0 : e[0]) == null ? void 0 : o.type) === "AGENT";
2174
2174
  }
2175
- function Lo() {
2175
+ function Uo() {
2176
2176
  const {
2177
2177
  messagesState: { messages: e }
2178
- } = O(), {
2178
+ } = A(), {
2179
2179
  advancedInitialMessages: o = [],
2180
2180
  initialQuestionsPosition: t,
2181
2181
  initialQuestions: n,
@@ -2198,18 +2198,149 @@ function Lo() {
2198
2198
  }
2199
2199
  ) });
2200
2200
  }
2201
- function $o() {
2201
+ function Yo() {
2202
2202
  const {
2203
2203
  messagesState: { messages: e }
2204
- } = O(), { chatBannerItems: o } = z();
2204
+ } = A(), { chatBannerItems: o } = z();
2205
2205
  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(
2206
- ({ message: t, persistent: n }, s) => e.length > 0 && !n ? null : /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(Se, { children: t }) }, `${t}-${s}`)
2206
+ ({ message: t, persistent: n }, s) => e.length > 0 && !n ? null : /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(Me, { children: t }) }, `${t}-${s}`)
2207
+ ) });
2208
+ }
2209
+ const Xo = 10 * 1024, _t = /* @__PURE__ */ new Map();
2210
+ function qo(e) {
2211
+ const o = _t.get(e);
2212
+ if (o !== void 0) return o;
2213
+ const t = Vo(e);
2214
+ return _t.set(e, t), t;
2215
+ }
2216
+ function Vo(e) {
2217
+ const o = e.trim();
2218
+ if (!o || o.length > Xo || typeof DOMParser > "u") return null;
2219
+ const t = new DOMParser().parseFromString(o, "image/svg+xml"), n = t.documentElement;
2220
+ return n.localName !== "svg" || n.namespaceURI !== "http://www.w3.org/2000/svg" || t.getElementsByTagName("parsererror").length > 0 ? null : `data:image/svg+xml,${encodeURIComponent(o)}`;
2221
+ }
2222
+ const Go = Wt(
2223
+ "inline-flex items-center gap-1.5 rounded-full px-2 py-0.5 text-xs font-medium transition-colors",
2224
+ {
2225
+ variants: {
2226
+ variant: {
2227
+ default: "bg-primary text-primary-foreground",
2228
+ secondary: "bg-secondary text-secondary-foreground",
2229
+ outline: "border text-foreground"
2230
+ }
2231
+ },
2232
+ defaultVariants: {
2233
+ variant: "default"
2234
+ }
2235
+ }
2236
+ );
2237
+ function Zo({ className: e, variant: o, ...t }) {
2238
+ return /* @__PURE__ */ r("div", { className: p(Go({ variant: o }), e), ...t });
2239
+ }
2240
+ function nr({
2241
+ customStatus: e,
2242
+ className: o,
2243
+ dotClassName: t
2244
+ }) {
2245
+ const n = e.icon ? qo(e.icon) : null, s = e.color || "currentColor";
2246
+ return n ? /* @__PURE__ */ r(
2247
+ "span",
2248
+ {
2249
+ "aria-hidden": !0,
2250
+ className: p("size-3.5 shrink-0", o),
2251
+ style: {
2252
+ backgroundColor: s,
2253
+ // Sized by this element's box, not by the svg's own dimensions
2254
+ maskImage: `url("${n}")`,
2255
+ maskSize: "contain",
2256
+ maskRepeat: "no-repeat",
2257
+ maskPosition: "center",
2258
+ WebkitMaskImage: `url("${n}")`,
2259
+ WebkitMaskSize: "contain",
2260
+ WebkitMaskRepeat: "no-repeat",
2261
+ WebkitMaskPosition: "center"
2262
+ }
2263
+ }
2264
+ ) : /* @__PURE__ */ r(
2265
+ "span",
2266
+ {
2267
+ "aria-hidden": !0,
2268
+ className: p("size-2 shrink-0 rounded-full", t),
2269
+ style: { backgroundColor: s }
2270
+ }
2271
+ );
2272
+ }
2273
+ function sr({
2274
+ customStatus: e,
2275
+ className: o
2276
+ }) {
2277
+ return /* @__PURE__ */ d(
2278
+ Zo,
2279
+ {
2280
+ variant: "secondary",
2281
+ className: p(
2282
+ "relative isolate overflow-hidden max-w-full text-primary",
2283
+ o
2284
+ ),
2285
+ title: e.description || void 0,
2286
+ style: e.color ? {
2287
+ // A stronger shade of the status color: darker on light themes,
2288
+ // lighter on dark themes. Unsupported browsers fall back to text-primary.
2289
+ color: `color-mix(in srgb, ${e.color} 55%, hsl(var(--opencx-foreground)))`
2290
+ } : void 0,
2291
+ children: [
2292
+ e.color && // A soft uniform wash of the status color over the badge background
2293
+ /* @__PURE__ */ r(
2294
+ "span",
2295
+ {
2296
+ "aria-hidden": !0,
2297
+ className: "absolute inset-0 -z-10 opacity-20",
2298
+ style: { backgroundColor: e.color }
2299
+ }
2300
+ ),
2301
+ /* @__PURE__ */ r(nr, { customStatus: e }),
2302
+ /* @__PURE__ */ r("span", { className: "truncate", children: e.name })
2303
+ ]
2304
+ }
2305
+ );
2306
+ }
2307
+ function Ko() {
2308
+ const {
2309
+ sessionState: { session: e }
2310
+ } = $(), o = e == null ? void 0 : e.customStatus;
2311
+ return /* @__PURE__ */ r(_, { mode: "wait", children: o && /* @__PURE__ */ r(
2312
+ y,
2313
+ {
2314
+ className: "sticky top-2 z-10 self-center max-w-full",
2315
+ snapExit: !0,
2316
+ children: /* @__PURE__ */ r(
2317
+ ge,
2318
+ {
2319
+ trigger: /* @__PURE__ */ r(N, { variant: "ghost", size: "selfless", className: "rounded-full", children: /* @__PURE__ */ r(sr, { customStatus: o }) }),
2320
+ children: /* @__PURE__ */ d(ue, { withClose: !0, children: [
2321
+ /* @__PURE__ */ d(Se, { children: [
2322
+ /* @__PURE__ */ r(
2323
+ nr,
2324
+ {
2325
+ customStatus: o,
2326
+ className: "size-8 mx-auto",
2327
+ dotClassName: "size-3 mx-auto"
2328
+ }
2329
+ ),
2330
+ /* @__PURE__ */ r(Ie, { children: o.name })
2331
+ ] }),
2332
+ o.description && /* @__PURE__ */ r(_e, { children: /* @__PURE__ */ r(Te, { children: o.description }) })
2333
+ ] })
2334
+ }
2335
+ )
2336
+ },
2337
+ o.id
2207
2338
  ) });
2208
2339
  }
2209
- function Bo() {
2340
+ function Qo() {
2210
2341
  const {
2211
2342
  messagesState: { messages: e }
2212
- } = O(), o = z(), {
2343
+ } = A(), o = z(), {
2213
2344
  advancedInitialMessages: t = [],
2214
2345
  initialQuestions: n,
2215
2346
  initialQuestionsPosition: s
@@ -2234,20 +2365,20 @@ function Bo() {
2234
2365
  }
2235
2366
  ) });
2236
2367
  }
2237
- function Yo() {
2368
+ function Jo() {
2238
2369
  var t;
2239
2370
  const e = X(), o = (t = e.config.customComponents) == null ? void 0 : t.chatBottomComponents;
2240
2371
  return o ? /* @__PURE__ */ r("div", { children: o.map(({ key: n, component: s }) => /* @__PURE__ */ r(s, { ...e }, n)) }) : null;
2241
2372
  }
2242
- function Uo() {
2373
+ function en() {
2243
2374
  const {
2244
2375
  messagesState: { messages: e }
2245
- } = O(), { isAwaitingBotReply: o } = Tt(), { componentStore: t } = A(), { bot: n, humanAgent: s } = z(), i = St(
2246
- () => Oo(e),
2376
+ } = A(), { isAwaitingBotReply: o } = Pt(), { componentStore: t } = O(), { bot: n, humanAgent: s } = z(), i = Dt(
2377
+ () => Wo(e),
2247
2378
  [e]
2248
2379
  ), a = t.getComponent(
2249
2380
  "loading"
2250
- ), l = B(null);
2381
+ ), l = U(null);
2251
2382
  function c() {
2252
2383
  setTimeout(() => {
2253
2384
  const m = l.current;
@@ -2263,16 +2394,17 @@ function Uo() {
2263
2394
  ref: l,
2264
2395
  className: "max-h-full scroll-smooth relative flex-1 py-2 px-4 flex flex-col gap-2 overflow-auto",
2265
2396
  children: [
2266
- /* @__PURE__ */ r($o, {}),
2267
- /* @__PURE__ */ r(Lo, {}),
2268
- /* @__PURE__ */ r(Bo, {}),
2397
+ /* @__PURE__ */ r(Ko, {}),
2398
+ /* @__PURE__ */ r(Yo, {}),
2399
+ /* @__PURE__ */ r(Uo, {}),
2400
+ /* @__PURE__ */ r(Qo, {}),
2269
2401
  i.map((m, h) => {
2270
- var g, v, C, T;
2271
- const y = (g = m == null ? void 0 : m[0]) == null ? void 0 : g.type, w = (v = m[0]) == null ? void 0 : v.id;
2272
- if (!y || !w) return null;
2273
- if (Fo(m))
2274
- return /* @__PURE__ */ r(Ao, { messages: m }, w);
2275
- if (Ho(m)) {
2402
+ var u, v, C, M;
2403
+ const k = (u = m == null ? void 0 : m[0]) == null ? void 0 : u.type, w = (v = m[0]) == null ? void 0 : v.id;
2404
+ if (!k || !w) return null;
2405
+ if (Lo(m))
2406
+ return /* @__PURE__ */ r(Ho, { messages: m }, w);
2407
+ if ($o(m)) {
2276
2408
  const b = h === i.length - 1;
2277
2409
  return o && b ? null : ((C = m[0]) == null || C.agent, /* @__PURE__ */ r(
2278
2410
  pe,
@@ -2283,8 +2415,8 @@ function Uo() {
2283
2415
  w
2284
2416
  ));
2285
2417
  }
2286
- if (Wo(m)) {
2287
- const b = (T = m[0]) == null ? void 0 : T.agent;
2418
+ if (Bo(m)) {
2419
+ const b = (M = m[0]) == null ? void 0 : M.agent;
2288
2420
  return /* @__PURE__ */ r(
2289
2421
  pe,
2290
2422
  {
@@ -2306,23 +2438,23 @@ function Uo() {
2306
2438
  return null;
2307
2439
  }),
2308
2440
  o && a && /* @__PURE__ */ r(a, { agent: n }),
2309
- /* @__PURE__ */ r(Yo, {}),
2310
- /* @__PURE__ */ r(Po, {})
2441
+ /* @__PURE__ */ r(Jo, {}),
2442
+ /* @__PURE__ */ r(Ao, {})
2311
2443
  ]
2312
2444
  }
2313
2445
  );
2314
2446
  }
2315
- function Xo() {
2447
+ function tn() {
2316
2448
  const {
2317
2449
  messagesState: { isInitialFetchLoading: e }
2318
- } = O(), {
2450
+ } = A(), {
2319
2451
  sessionState: { session: o }
2320
- } = U(), { isCanvasOpen: t } = Co(), { theme: n } = V();
2321
- Me({
2452
+ } = $(), { isCanvasOpen: t } = So(), { theme: n } = V();
2453
+ Pe({
2322
2454
  width: t ? n.screens.chat.withCanvas.width : n.screens.chat.width,
2323
2455
  height: t ? n.screens.chat.withCanvas.height : n.screens.chat.height
2324
2456
  });
2325
- const s = B((o == null ? void 0 : o.id) || "chat").current;
2457
+ const s = U((o == null ? void 0 : o.id) || "chat").current;
2326
2458
  return /* @__PURE__ */ r(
2327
2459
  "div",
2328
2460
  {
@@ -2339,16 +2471,16 @@ function Xo() {
2339
2471
  // Relative to the iframe
2340
2472
  },
2341
2473
  children: /* @__PURE__ */ d("div", { className: "size-full justify-between flex flex-col", children: [
2342
- /* @__PURE__ */ r(Jt, {}),
2343
- /* @__PURE__ */ r(D, { mode: "wait", children: e ? /* @__PURE__ */ r(
2344
- k,
2474
+ /* @__PURE__ */ r(tr, {}),
2475
+ /* @__PURE__ */ r(_, { mode: "wait", children: e ? /* @__PURE__ */ r(
2476
+ y,
2345
2477
  {
2346
2478
  className: "flex flex-col items-center justify-center w-full flex-1",
2347
- children: /* @__PURE__ */ r(er, {})
2479
+ children: /* @__PURE__ */ r(rr, {})
2348
2480
  },
2349
2481
  "loading"
2350
2482
  ) : /* @__PURE__ */ d(
2351
- k,
2483
+ y,
2352
2484
  {
2353
2485
  className: "flex items-start h-full flex-1 overflow-auto",
2354
2486
  snapExit: !0,
@@ -2366,8 +2498,8 @@ function Xo() {
2366
2498
  transitionDuration: n.screens.chat.withCanvas.transitionDuration
2367
2499
  },
2368
2500
  children: [
2369
- /* @__PURE__ */ r(Uo, {}),
2370
- /* @__PURE__ */ r(Eo, {})
2501
+ /* @__PURE__ */ r(en, {}),
2502
+ /* @__PURE__ */ r(jo, {})
2371
2503
  ]
2372
2504
  }
2373
2505
  ),
@@ -2383,7 +2515,7 @@ function Xo() {
2383
2515
  transitionTimingFunction: n.screens.chat.withCanvas.transitionTimingFunction,
2384
2516
  transitionDuration: n.screens.chat.withCanvas.transitionDuration
2385
2517
  },
2386
- children: /* @__PURE__ */ r(zo, {})
2518
+ children: /* @__PURE__ */ r(_o, {})
2387
2519
  }
2388
2520
  )
2389
2521
  ]
@@ -2394,7 +2526,7 @@ function Xo() {
2394
2526
  }
2395
2527
  );
2396
2528
  }
2397
- function qo({
2529
+ function rn({
2398
2530
  className: e,
2399
2531
  ...o
2400
2532
  }) {
@@ -2406,7 +2538,7 @@ function qo({
2406
2538
  }
2407
2539
  );
2408
2540
  }
2409
- function Vo({ className: e }) {
2541
+ function on({ className: e }) {
2410
2542
  return /* @__PURE__ */ r(
2411
2543
  "svg",
2412
2544
  {
@@ -2426,7 +2558,7 @@ function Vo({ className: e }) {
2426
2558
  }
2427
2559
  );
2428
2560
  }
2429
- function rr({ className: e }) {
2561
+ function ar({ className: e }) {
2430
2562
  const { token: o } = z();
2431
2563
  return /* @__PURE__ */ r(
2432
2564
  "div",
@@ -2450,7 +2582,7 @@ function rr({ className: e }) {
2450
2582
  /* @__PURE__ */ r("span", { children: "Powered by" }),
2451
2583
  /* @__PURE__ */ r("span", { children: " " }),
2452
2584
  /* @__PURE__ */ d("span", { className: "flex items-center gap-[1px]", children: [
2453
- /* @__PURE__ */ r("span", { children: /* @__PURE__ */ r(Vo, { className: "size-3 inline-block" }) }),
2585
+ /* @__PURE__ */ r("span", { children: /* @__PURE__ */ r(on, { className: "size-3 inline-block" }) }),
2454
2586
  /* @__PURE__ */ r("span", { className: "font-semibold", children: "open" })
2455
2587
  ] })
2456
2588
  ]
@@ -2459,16 +2591,16 @@ function rr({ className: e }) {
2459
2591
  }
2460
2592
  );
2461
2593
  }
2462
- function Go({ children: e }) {
2594
+ function nn({ children: e }) {
2463
2595
  return /* @__PURE__ */ r("p", { className: "ps-4 text-xs text-muted-foreground/75 uppercase font-semibold tracking-tight", children: e });
2464
2596
  }
2465
- function Ct({
2597
+ function It({
2466
2598
  session: e,
2467
2599
  className: o
2468
2600
  }) {
2469
2601
  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) || "";
2470
2602
  return /* @__PURE__ */ d(
2471
- S,
2603
+ N,
2472
2604
  {
2473
2605
  variant: "ghost",
2474
2606
  size: "lg",
@@ -2479,69 +2611,78 @@ function Ct({
2479
2611
  onClick: () => s(e.id),
2480
2612
  children: [
2481
2613
  /* @__PURE__ */ d("div", { className: "flex-1 flex gap-2 items-center", children: [
2482
- /* @__PURE__ */ r(D, { mode: "wait", children: /* @__PURE__ */ r(k, { snapExit: !0, children: /* @__PURE__ */ d(_e, { className: "size-10", children: [
2483
- /* @__PURE__ */ r(Ie, { src: a, alt: "Agent Icon" }),
2484
- /* @__PURE__ */ r(Te, { children: /* @__PURE__ */ r(Or, { className: "size-4" }) })
2614
+ /* @__PURE__ */ r(_, { mode: "wait", children: /* @__PURE__ */ r(y, { snapExit: !0, children: /* @__PURE__ */ d(De, { className: "size-10", children: [
2615
+ /* @__PURE__ */ r(Ee, { src: a, alt: "Agent Icon" }),
2616
+ /* @__PURE__ */ r(Re, { children: /* @__PURE__ */ r(Lr, { className: "size-4" }) })
2485
2617
  ] }) }) }),
2486
2618
  /* @__PURE__ */ d("div", { className: "flex-1", children: [
2487
- /* @__PURE__ */ r(D, { mode: "wait", children: /* @__PURE__ */ r(k, { snapExit: !0, children: i }, i) }),
2488
- /* @__PURE__ */ r(D, { mode: "wait", children: e.lastMessage ? /* @__PURE__ */ r(k, { snapExit: !0, children: /* @__PURE__ */ r(
2489
- qt,
2619
+ /* @__PURE__ */ r(_, { mode: "wait", children: /* @__PURE__ */ r(y, { snapExit: !0, children: i }, i) }),
2620
+ /* @__PURE__ */ r(_, { mode: "wait", children: e.lastMessage ? /* @__PURE__ */ r(y, { snapExit: !0, children: /* @__PURE__ */ r(
2621
+ Gt,
2490
2622
  {
2491
- remarkPlugins: [jt],
2492
- rehypePlugins: [At],
2623
+ remarkPlugins: [Lt],
2624
+ rehypePlugins: [$t],
2493
2625
  className: "line-clamp-1 overflow-hidden text-ellipsis text-xs text-muted-foreground",
2494
2626
  children: e.lastMessage
2495
2627
  }
2496
- ) }, e.lastMessage || "content") : /* @__PURE__ */ r(k, { className: "w-1/2", snapExit: !0, children: /* @__PURE__ */ r(qo, { className: "h-4 w-full" }) }, "skeleton") })
2628
+ ) }, e.lastMessage || "content") : /* @__PURE__ */ r(y, { className: "w-1/2", snapExit: !0, children: /* @__PURE__ */ r(rn, { className: "h-4 w-full" }) }, "skeleton") }),
2629
+ /* @__PURE__ */ r(_, { mode: "wait", children: e.customStatus && /* @__PURE__ */ r(
2630
+ y,
2631
+ {
2632
+ className: "mt-1",
2633
+ snapExit: !0,
2634
+ children: /* @__PURE__ */ r(sr, { customStatus: e.customStatus })
2635
+ },
2636
+ e.customStatus.id
2637
+ ) })
2497
2638
  ] })
2498
2639
  ] }),
2499
- /* @__PURE__ */ r(Fr, { className: "size-4 text-muted-foreground shrink-0 rtl:-scale-100" })
2640
+ /* @__PURE__ */ r($r, { className: "size-4 text-muted-foreground shrink-0 rtl:-scale-100" })
2500
2641
  ]
2501
2642
  }
2502
2643
  );
2503
2644
  }
2504
- function Zo() {
2645
+ function sn() {
2505
2646
  const { t: e } = G(), { toChatScreen: o } = H(), {
2506
2647
  sessionsState: { data: t, isInitialFetchLoading: n },
2507
2648
  openSessions: s,
2508
2649
  closedSessions: i,
2509
2650
  canCreateNewSession: a
2510
- } = U();
2511
- 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(
2512
- k,
2651
+ } = $();
2652
+ return /* @__PURE__ */ r("div", { className: "flex-1 flex flex-col overflow-scroll py-2 px-2", children: /* @__PURE__ */ r(_, { mode: "wait", children: n ? /* @__PURE__ */ r(
2653
+ y,
2513
2654
  {
2514
2655
  className: "flex-1 flex items-center justify-center",
2515
- children: /* @__PURE__ */ r(er, {})
2656
+ children: /* @__PURE__ */ r(rr, {})
2516
2657
  },
2517
2658
  "loading"
2518
2659
  ) : /* @__PURE__ */ r(
2519
- k,
2660
+ y,
2520
2661
  {
2521
2662
  className: "flex-1 flex flex-col gap-2 relative",
2522
2663
  children: t.length ? /* @__PURE__ */ d(J, { children: [
2523
- /* @__PURE__ */ d(D, { children: [
2664
+ /* @__PURE__ */ d(_, { children: [
2524
2665
  s.length > 0 && /* @__PURE__ */ r(
2525
- k,
2666
+ y,
2526
2667
  {
2527
2668
  fadeIn: "up",
2528
2669
  delay: 0.2,
2529
2670
  className: "space-y-2",
2530
2671
  snapExit: !0,
2531
- children: s.map((l) => /* @__PURE__ */ r(Ct, { session: l }, l.id))
2672
+ children: s.map((l) => /* @__PURE__ */ r(It, { session: l }, l.id))
2532
2673
  },
2533
2674
  "open-sessions"
2534
2675
  ),
2535
2676
  i.length > 0 && /* @__PURE__ */ d(
2536
- k,
2677
+ y,
2537
2678
  {
2538
2679
  className: "space-y-2",
2539
2680
  delay: 0.2,
2540
2681
  snapExit: !0,
2541
2682
  children: [
2542
- /* @__PURE__ */ r(Go, { children: e("closed_conversations") }),
2683
+ /* @__PURE__ */ r(nn, { children: e("closed_conversations") }),
2543
2684
  i.map((l) => /* @__PURE__ */ r(
2544
- Ct,
2685
+ It,
2545
2686
  {
2546
2687
  session: l,
2547
2688
  className: "opacity-50 hover:opacity-100"
@@ -2553,8 +2694,8 @@ function Zo() {
2553
2694
  "closed-sessions"
2554
2695
  )
2555
2696
  ] }),
2556
- a && /* @__PURE__ */ r("div", { className: "mt-auto w-full rounded-3xl sticky bottom-0 outline outline-8 outline-background bg-background", children: /* @__PURE__ */ pt(
2557
- S,
2697
+ a && /* @__PURE__ */ r("div", { className: "mt-auto w-full rounded-3xl sticky bottom-0 outline outline-8 outline-background bg-background", children: /* @__PURE__ */ gt(
2698
+ N,
2558
2699
  {
2559
2700
  ...x("sessions/new_conversation_btn"),
2560
2701
  size: "lg",
@@ -2566,8 +2707,8 @@ function Zo() {
2566
2707
  ) })
2567
2708
  ] }) : /* @__PURE__ */ d("div", { className: "flex-1 flex flex-col gap-2 items-center", children: [
2568
2709
  /* @__PURE__ */ r("div", { className: "flex-1 flex items-center justify-center", children: /* @__PURE__ */ r("p", { className: "text-muted-foreground", children: e("no_conversations_yet") }) }),
2569
- /* @__PURE__ */ pt(
2570
- S,
2710
+ /* @__PURE__ */ gt(
2711
+ N,
2571
2712
  {
2572
2713
  ...x("sessions/new_conversation_btn"),
2573
2714
  size: "lg",
@@ -2582,9 +2723,9 @@ function Zo() {
2582
2723
  "sessions"
2583
2724
  ) }) });
2584
2725
  }
2585
- function Ko() {
2726
+ function an() {
2586
2727
  const { theme: e } = V();
2587
- return Me({
2728
+ return Pe({
2588
2729
  width: e.screens.sessions.width,
2589
2730
  height: e.screens.sessions.height
2590
2731
  }), /* @__PURE__ */ r(
@@ -2603,16 +2744,16 @@ function Ko() {
2603
2744
  // Relative to the iframe
2604
2745
  },
2605
2746
  children: /* @__PURE__ */ d("div", { className: "size-full flex flex-col", children: [
2606
- /* @__PURE__ */ r(Jt, {}),
2607
- /* @__PURE__ */ r(Zo, {}),
2608
- /* @__PURE__ */ r(rr, {})
2747
+ /* @__PURE__ */ r(tr, {}),
2748
+ /* @__PURE__ */ r(sn, {}),
2749
+ /* @__PURE__ */ r(ar, {})
2609
2750
  ] })
2610
2751
  }
2611
2752
  );
2612
2753
  }
2613
2754
  const de = ee.forwardRef(
2614
2755
  ({ className: e, type: o, ...t }, n) => {
2615
- const { isSmallScreen: s } = $();
2756
+ const { isSmallScreen: s } = B();
2616
2757
  return /* @__PURE__ */ r(
2617
2758
  "input",
2618
2759
  {
@@ -2632,8 +2773,8 @@ const de = ee.forwardRef(
2632
2773
  }
2633
2774
  );
2634
2775
  de.displayName = "Input";
2635
- function Qo() {
2636
- const { contentIframeRef: e } = A(), { inline: o } = z(), t = B(null);
2776
+ function ln() {
2777
+ const { contentIframeRef: e } = O(), { inline: o } = z(), t = U(null);
2637
2778
  return se(() => {
2638
2779
  const n = e == null ? void 0 : e.current;
2639
2780
  if (n && t.current) {
@@ -2654,35 +2795,35 @@ function Qo() {
2654
2795
  }
2655
2796
  }, [e, o]), { observedElementRef: t };
2656
2797
  }
2657
- const Jo = ue.object({
2658
- name: ue.string().min(2),
2659
- email: ue.string().email()
2798
+ const cn = fe.object({
2799
+ name: fe.string().min(2),
2800
+ email: fe.string().email()
2660
2801
  });
2661
- function en() {
2662
- var b, N, _, E, f, M, j, R;
2802
+ function dn() {
2803
+ var b, S, I, E, f, D, j, R;
2663
2804
  const {
2664
2805
  widgetCtx: { org: e }
2665
- } = A(), { setIsOpen: o } = K(), { createUnverifiedContact: t } = Mt(), { isSmallScreen: n } = $(), s = z(), { theme: i } = V(), { t: a } = G(), { observedElementRef: l } = Qo();
2666
- Me({
2806
+ } = O(), { setIsOpen: o } = K(), { createUnverifiedContact: t } = jt(), { isSmallScreen: n } = B(), s = z(), { theme: i } = V(), { t: a } = G(), { observedElementRef: l } = ln();
2807
+ Pe({
2667
2808
  height: void 0,
2668
2809
  width: i.screens.welcome.width
2669
2810
  });
2670
- const [c, m] = P(((b = s.prefillUserData) == null ? void 0 : b.name) || ""), [h, y] = P(((N = s.prefillUserData) == null ? void 0 : N.email) || ""), w = (s.extraDataCollectionFields || []).filter(
2671
- (u) => u !== "name" && u !== "email" && !!u
2672
- ), [g, v] = P({}), [C, T] = Gr(
2673
- async (u) => {
2674
- u.preventDefault();
2675
- const I = Jo.safeParse({ name: c, email: h });
2676
- I.success && await t(
2811
+ const [c, m] = P(((b = s.prefillUserData) == null ? void 0 : b.name) || ""), [h, k] = P(((S = s.prefillUserData) == null ? void 0 : S.email) || ""), w = (s.extraDataCollectionFields || []).filter(
2812
+ (g) => g !== "name" && g !== "email" && !!g
2813
+ ), [u, v] = P({}), [C, M] = Qr(
2814
+ async (g) => {
2815
+ g.preventDefault();
2816
+ const T = cn.safeParse({ name: c, email: h });
2817
+ T.success && await t(
2677
2818
  {
2678
- email: I.data.email,
2679
- non_verified_name: I.data.name
2819
+ email: T.data.email,
2820
+ non_verified_name: T.data.name
2680
2821
  },
2681
2822
  // Only pass extra data if there is any
2682
- Object.values(g).filter(Boolean).length ? g : void 0
2823
+ Object.values(u).filter(Boolean).length ? u : void 0
2683
2824
  );
2684
2825
  },
2685
- [c, h, g]
2826
+ [c, h, u]
2686
2827
  );
2687
2828
  return /* @__PURE__ */ r(
2688
2829
  "div",
@@ -2717,8 +2858,8 @@ function en() {
2717
2858
  "text-primary-foreground"
2718
2859
  ),
2719
2860
  children: [
2720
- 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" }) }) }),
2721
- /* @__PURE__ */ r("div", { className: "flex items-center justify-between w-full mb-2", children: (_ = s.assets) != null && _.organizationLogo ? /* @__PURE__ */ r(
2861
+ n && /* @__PURE__ */ r(y, { className: "absolute top-6 end-6", children: /* @__PURE__ */ r(N, { size: "selfless", onClick: () => o(!1), children: /* @__PURE__ */ r(Ne, { className: "size-4" }) }) }),
2862
+ /* @__PURE__ */ r("div", { className: "flex items-center justify-between w-full mb-2", children: (I = s.assets) != null && I.organizationLogo ? /* @__PURE__ */ r(
2722
2863
  "img",
2723
2864
  {
2724
2865
  src: (E = s.assets) == null ? void 0 : E.organizationLogo,
@@ -2727,7 +2868,7 @@ function en() {
2727
2868
  }
2728
2869
  ) : /* @__PURE__ */ r("h2", { className: "font-bold text-sm", children: e.name }) }),
2729
2870
  /* @__PURE__ */ d("div", { className: "space-y-2", children: [
2730
- /* @__PURE__ */ r("h1", { className: "text-[1.75rem] font-semibold tracking-tight leading-none", children: ((M = (f = s.textContent) == null ? void 0 : f.welcomeScreen) == null ? void 0 : M.title) || a("welcome_screen_title") }),
2871
+ /* @__PURE__ */ r("h1", { className: "text-[1.75rem] font-semibold tracking-tight leading-none", children: ((D = (f = s.textContent) == null ? void 0 : f.welcomeScreen) == null ? void 0 : D.title) || a("welcome_screen_title") }),
2731
2872
  /* @__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") })
2732
2873
  ] })
2733
2874
  ]
@@ -2743,12 +2884,12 @@ function en() {
2743
2884
  "rounded-3xl"
2744
2885
  ),
2745
2886
  children: [
2746
- /* @__PURE__ */ d("form", { onSubmit: T, className: "space-y-2", children: [
2887
+ /* @__PURE__ */ d("form", { onSubmit: M, className: "space-y-2", children: [
2747
2888
  /* @__PURE__ */ r(
2748
2889
  de,
2749
2890
  {
2750
2891
  value: c,
2751
- onChange: (u) => m(u.target.value),
2892
+ onChange: (g) => m(g.target.value),
2752
2893
  required: !0,
2753
2894
  placeholder: a("your_name_placeholder"),
2754
2895
  name: "name"
@@ -2759,38 +2900,38 @@ function en() {
2759
2900
  {
2760
2901
  required: !0,
2761
2902
  value: h,
2762
- onChange: (u) => y(u.target.value),
2903
+ onChange: (g) => k(g.target.value),
2763
2904
  type: "email",
2764
2905
  placeholder: a("your_email_placeholder"),
2765
2906
  name: "email"
2766
2907
  }
2767
2908
  ),
2768
- w.map((u) => /* @__PURE__ */ r(
2909
+ w.map((g) => /* @__PURE__ */ r(
2769
2910
  de,
2770
2911
  {
2771
- value: g[u],
2772
- onChange: (I) => v((ie) => ({
2912
+ value: u[g],
2913
+ onChange: (T) => v((ie) => ({
2773
2914
  ...ie,
2774
- [u]: I.target.value
2915
+ [g]: T.target.value
2775
2916
  })),
2776
- placeholder: `${u} (${a("optional")})`
2917
+ placeholder: `${g} (${a("optional")})`
2777
2918
  },
2778
- u
2919
+ g
2779
2920
  )),
2780
2921
  /* @__PURE__ */ d(
2781
- S,
2922
+ N,
2782
2923
  {
2783
2924
  disabled: C.loading,
2784
2925
  className: "w-full",
2785
2926
  size: "lg",
2786
2927
  children: [
2787
2928
  C.loading ? a("start_chat_button_loading") : a("start_chat_button"),
2788
- /* @__PURE__ */ r(Hr, { className: "size-4 rtl:-scale-100" })
2929
+ /* @__PURE__ */ r(Br, { className: "size-4 rtl:-scale-100" })
2789
2930
  ]
2790
2931
  }
2791
2932
  )
2792
2933
  ] }),
2793
- /* @__PURE__ */ r(rr, {})
2934
+ /* @__PURE__ */ r(ar, {})
2794
2935
  ]
2795
2936
  }
2796
2937
  )
@@ -2800,55 +2941,55 @@ function en() {
2800
2941
  }
2801
2942
  );
2802
2943
  }
2803
- function or() {
2944
+ function ir() {
2804
2945
  const {
2805
2946
  routerState: { screen: e }
2806
2947
  } = H();
2807
- return /* @__PURE__ */ r("div", { className: "relative bg-background size-full", children: /* @__PURE__ */ r(D, { mode: "wait", children: (() => {
2948
+ return /* @__PURE__ */ r("div", { className: "relative bg-background size-full", children: /* @__PURE__ */ r(_, { mode: "wait", children: (() => {
2808
2949
  switch (e) {
2809
2950
  case "welcome":
2810
2951
  return /* @__PURE__ */ r(
2811
- k,
2952
+ y,
2812
2953
  {
2813
2954
  fadeIn: "right",
2814
2955
  className: "size-full",
2815
2956
  snapExit: !0,
2816
- children: /* @__PURE__ */ r(en, {})
2957
+ children: /* @__PURE__ */ r(dn, {})
2817
2958
  },
2818
2959
  e
2819
2960
  );
2820
2961
  case "sessions":
2821
2962
  return /* @__PURE__ */ r(
2822
- k,
2963
+ y,
2823
2964
  {
2824
2965
  fadeIn: "right",
2825
2966
  className: "size-full",
2826
2967
  snapExit: !0,
2827
- children: /* @__PURE__ */ r(Ko, {})
2968
+ children: /* @__PURE__ */ r(an, {})
2828
2969
  },
2829
2970
  e
2830
2971
  );
2831
2972
  case "chat":
2832
2973
  return /* @__PURE__ */ r(
2833
- k,
2974
+ y,
2834
2975
  {
2835
2976
  fadeIn: "right",
2836
2977
  className: "size-full",
2837
2978
  snapExit: !0,
2838
- children: /* @__PURE__ */ r(Xo, {})
2979
+ children: /* @__PURE__ */ r(tn, {})
2839
2980
  },
2840
2981
  e
2841
2982
  );
2842
2983
  default:
2843
- return F(e, or.name), null;
2984
+ return F(e, ir.name), null;
2844
2985
  }
2845
2986
  })() }) });
2846
2987
  }
2847
- const tn = "4.0.60", rn = `<!DOCTYPE html>
2988
+ const pn = "4.0.61", mn = `<!DOCTYPE html>
2848
2989
  <html>
2849
2990
  <head>
2850
2991
  <style>
2851
- ${Vt}
2992
+ ${Zt}
2852
2993
  html, body {
2853
2994
  height: 100%;
2854
2995
  width: 100%;
@@ -2862,8 +3003,8 @@ html, body {
2862
3003
  <body>
2863
3004
  </body>
2864
3005
  </html>`;
2865
- function nr() {
2866
- const { isOpen: e } = K(), { contentIframeRef: o } = A(), { cssOverrides: t, inline: n } = z(), { theme: s, cssVars: i, computed: a } = V(), { dir: l } = G();
3006
+ function lr() {
3007
+ const { isOpen: e } = K(), { contentIframeRef: o } = O(), { cssOverrides: t, inline: n } = z(), { theme: s, cssVars: i, computed: a } = V(), { dir: l } = G();
2867
3008
  return /* @__PURE__ */ r(
2868
3009
  re.div,
2869
3010
  {
@@ -2884,10 +3025,10 @@ function nr() {
2884
3025
  }
2885
3026
  },
2886
3027
  children: /* @__PURE__ */ d(
2887
- Ot,
3028
+ Bt,
2888
3029
  {
2889
3030
  ref: o,
2890
- initialContent: rn,
3031
+ initialContent: mn,
2891
3032
  allowFullScreen: !0,
2892
3033
  title: "OpenCX Live Chat",
2893
3034
  style: {
@@ -2924,17 +3065,17 @@ function nr() {
2924
3065
  ...i,
2925
3066
  zIndex: s.widgetContentContainer.zIndex
2926
3067
  },
2927
- "data-version": tn,
3068
+ "data-version": pn,
2928
3069
  className: p(
2929
3070
  "antialiased font-sans size-full overflow-hidden relative text-secondary-foreground isolate"
2930
3071
  ),
2931
3072
  dir: l,
2932
3073
  children: /* @__PURE__ */ r(
2933
- po,
3074
+ uo,
2934
3075
  {
2935
3076
  delayDuration: 200,
2936
3077
  disableHoverableContent: !0,
2937
- children: /* @__PURE__ */ r(oo, { children: /* @__PURE__ */ r(or, {}) })
3078
+ children: /* @__PURE__ */ r(ao, { children: /* @__PURE__ */ r(ir, {}) })
2938
3079
  }
2939
3080
  )
2940
3081
  }
@@ -2945,8 +3086,8 @@ function nr() {
2945
3086
  }
2946
3087
  );
2947
3088
  }
2948
- function on() {
2949
- const { theme: e, triggerSide: o } = V(), { dir: t } = ke(), n = (t === "rtl" ? o === "left" : o === "right") ? "end" : "start";
3089
+ function hn() {
3090
+ const { theme: e, triggerSide: o } = V(), { dir: t } = ze(), n = (t === "rtl" ? o === "left" : o === "right") ? "end" : "start";
2950
3091
  return /* @__PURE__ */ r(
2951
3092
  me.Content,
2952
3093
  {
@@ -2963,11 +3104,11 @@ function on() {
2963
3104
  sideOffset: e.widgetContentContainer.offset.side,
2964
3105
  alignOffset: e.widgetContentContainer.offset.align,
2965
3106
  avoidCollisions: !1,
2966
- children: /* @__PURE__ */ r(nr, {})
3107
+ children: /* @__PURE__ */ r(lr, {})
2967
3108
  }
2968
3109
  );
2969
3110
  }
2970
- function nn({
3111
+ function un({
2971
3112
  className: e,
2972
3113
  style: o
2973
3114
  }) {
@@ -3002,11 +3143,11 @@ function nn({
3002
3143
  }
3003
3144
  );
3004
3145
  }
3005
- const sn = `<!DOCTYPE html>
3146
+ const gn = `<!DOCTYPE html>
3006
3147
  <html>
3007
3148
  <head>
3008
3149
  <style>
3009
- ${Vt}
3150
+ ${Zt}
3010
3151
  html, body {
3011
3152
  height: 100%;
3012
3153
  width: 100%;
@@ -3019,17 +3160,17 @@ html, body {
3019
3160
  <body>
3020
3161
  </body>
3021
3162
  </html>`;
3022
- function an() {
3023
- var m, h, y;
3163
+ function wn() {
3164
+ var m, h, k;
3024
3165
  const { isOpen: e, setIsOpen: o } = K(), { cssOverrides: t, assets: n, customComponents: s, accessibility: i } = z(), { theme: a, cssVars: l } = V(), c = ((m = i == null ? void 0 : i.widgetTriggerButton) == null ? void 0 : m.label) ?? "Chat with us";
3025
3166
  return s != null && s.widgetTrigger ? s.widgetTrigger({
3026
3167
  react: L,
3027
3168
  isOpen: e,
3028
3169
  setIsOpen: (w) => o(w)
3029
3170
  }) : /* @__PURE__ */ d(
3030
- Ot,
3171
+ Bt,
3031
3172
  {
3032
- initialContent: sn,
3173
+ initialContent: gn,
3033
3174
  title: "OpenCX Live Chat Trigger",
3034
3175
  style: {
3035
3176
  height: `calc(${a.widgetTrigger.size.button}px + ${Q.x * 2}px)`,
@@ -3083,8 +3224,8 @@ function an() {
3083
3224
  "bg-primary",
3084
3225
  "text-primary-foreground"
3085
3226
  ),
3086
- children: /* @__PURE__ */ r(D, { mode: "wait", children: e ? /* @__PURE__ */ r(
3087
- k,
3227
+ children: /* @__PURE__ */ r(_, { mode: "wait", children: e ? /* @__PURE__ */ r(
3228
+ y,
3088
3229
  {
3089
3230
  snapExit: !0,
3090
3231
  fadeIn: "up",
@@ -3103,7 +3244,7 @@ function an() {
3103
3244
  }
3104
3245
  }
3105
3246
  ) : /* @__PURE__ */ r(
3106
- Wr,
3247
+ Ur,
3107
3248
  {
3108
3249
  style: {
3109
3250
  width: a.widgetTrigger.size.icon,
@@ -3114,14 +3255,14 @@ function an() {
3114
3255
  },
3115
3256
  "x-icon"
3116
3257
  ) : /* @__PURE__ */ r(
3117
- k,
3258
+ y,
3118
3259
  {
3119
3260
  snapExit: !0,
3120
3261
  overrides: {
3121
3262
  initial: { rotate: 45 },
3122
3263
  animate: { rotate: 0 }
3123
3264
  },
3124
- children: (y = n == null ? void 0 : n.widgetTrigger) != null && y.openIcon ? /* @__PURE__ */ r(
3265
+ children: (k = n == null ? void 0 : n.widgetTrigger) != null && k.openIcon ? /* @__PURE__ */ r(
3125
3266
  "img",
3126
3267
  {
3127
3268
  src: n.widgetTrigger.openIcon,
@@ -3132,7 +3273,7 @@ function an() {
3132
3273
  }
3133
3274
  }
3134
3275
  ) : /* @__PURE__ */ r(
3135
- nn,
3276
+ un,
3136
3277
  {
3137
3278
  style: {
3138
3279
  width: a.widgetTrigger.size.icon,
@@ -3154,7 +3295,7 @@ function an() {
3154
3295
  }
3155
3296
  );
3156
3297
  }
3157
- function ln() {
3298
+ function fn() {
3158
3299
  const { triggerSide: e } = V();
3159
3300
  return /* @__PURE__ */ r(
3160
3301
  me.Anchor,
@@ -3168,13 +3309,13 @@ function ln() {
3168
3309
  }
3169
3310
  );
3170
3311
  }
3171
- function cn({
3312
+ function xn({
3172
3313
  widgetRef: e
3173
3314
  }) {
3174
- const { widgetCtx: o } = A(), { contactState: t } = Mt(), { setIsOpen: n, isOpen: s } = K(), {
3315
+ const { widgetCtx: o } = O(), { contactState: t } = jt(), { setIsOpen: n, isOpen: s } = K(), {
3175
3316
  toChatScreen: i,
3176
3317
  routerState: { screen: a }
3177
- } = H(), { sendMessage: l } = O();
3318
+ } = H(), { sendMessage: l } = A();
3178
3319
  return L.useImperativeHandle(
3179
3320
  e,
3180
3321
  () => ({
@@ -3198,32 +3339,32 @@ function cn({
3198
3339
  ]
3199
3340
  ), null;
3200
3341
  }
3201
- function dn() {
3342
+ function vn() {
3202
3343
  const { isOpen: e, setIsOpen: o } = K();
3203
3344
  return /* @__PURE__ */ d(me.Root, { open: e, onOpenChange: o, children: [
3204
- /* @__PURE__ */ r(ln, {}),
3205
- /* @__PURE__ */ r(an, {}),
3206
- /* @__PURE__ */ r(on, {})
3345
+ /* @__PURE__ */ r(fn, {}),
3346
+ /* @__PURE__ */ r(wn, {}),
3347
+ /* @__PURE__ */ r(hn, {})
3207
3348
  ] });
3208
3349
  }
3209
- const pn = [
3350
+ const bn = [
3210
3351
  {
3211
3352
  key: "loading",
3212
- component: co
3353
+ component: ho
3213
3354
  },
3214
3355
  {
3215
3356
  key: "fallback",
3216
- component: lo
3357
+ component: mo
3217
3358
  },
3218
3359
  {
3219
3360
  key: "bot_message",
3220
- component: xe
3361
+ component: be
3221
3362
  },
3222
3363
  {
3223
3364
  key: "agent_message",
3224
- component: xe
3365
+ component: be
3225
3366
  }
3226
- ], mn = {
3367
+ ], yn = {
3227
3368
  get: async (e) => localStorage.getItem(e),
3228
3369
  set: async (e, o) => {
3229
3370
  localStorage.setItem(e, o);
@@ -3231,23 +3372,23 @@ const pn = [
3231
3372
  remove: async (e) => {
3232
3373
  localStorage.removeItem(e);
3233
3374
  }
3234
- }, hn = L.forwardRef(function({ options: o, components: t = [], loadingComponent: n }, s) {
3375
+ }, kn = L.forwardRef(function({ options: o, components: t = [], loadingComponent: n }, s) {
3235
3376
  return /* @__PURE__ */ r(
3236
- cr,
3377
+ hr,
3237
3378
  {
3238
- components: [...pn, ...t],
3379
+ components: [...bn, ...t],
3239
3380
  options: o,
3240
- storage: mn,
3381
+ storage: yn,
3241
3382
  loadingComponent: n,
3242
- children: /* @__PURE__ */ d(dr, { children: [
3243
- /* @__PURE__ */ r(cn, { widgetRef: s }),
3244
- o.inline ? /* @__PURE__ */ r(nr, {}) : /* @__PURE__ */ r(dn, {})
3383
+ children: /* @__PURE__ */ d(ur, { children: [
3384
+ /* @__PURE__ */ r(xn, { widgetRef: s }),
3385
+ o.inline ? /* @__PURE__ */ r(lr, {}) : /* @__PURE__ */ r(vn, {})
3245
3386
  ] })
3246
3387
  }
3247
3388
  );
3248
3389
  });
3249
- hn.displayName = "Widget";
3390
+ kn.displayName = "Widget";
3250
3391
  export {
3251
- hn as Widget
3392
+ kn as Widget
3252
3393
  };
3253
3394
  //# sourceMappingURL=index.js.map