@opencx/widget-react 4.0.52 → 4.0.54

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,72 +1,101 @@
1
1
  import { jsx as r, jsxs as d, Fragment as Q } from "react/jsx-runtime";
2
- import * as he from "@radix-ui/react-popover";
2
+ import * as me from "@radix-ui/react-popover";
3
3
  import * as J from "react";
4
- import L, { memo as Kt, forwardRef as xt, useState as D, cloneElement as vt, createContext as Qt, useEffect as se, useContext as Jt, useRef as B, useCallback as q, useMemo as bt, createElement as lt } from "react";
5
- import { useWidget as O, useConfig as C, useSessions as U, useMessages as A, useWidgetRouter as H, useDocumentDir as ye, useWidgetTrigger as V, useModes as yt, useCsat as kt, useUploadFiles as er, useIsAwaitingBotReply as Ct, useContact as zt, WidgetProvider as tr, WidgetTriggerProvider as rr } from "@opencx/widget-react-headless";
6
- import { X as or, ZoomOut as nr, ZoomIn as sr, RotateCcw as ar, FileText as Nt, CircleDashedIcon as ir, XIcon as ke, SquareXIcon as lr, SquareCheckBigIcon as cr, SquareCheckIcon as dr, ShrinkIcon as pr, Minimize2Icon as hr, MinimizeIcon as mr, Maximize2Icon as gr, MaximizeIcon as ur, ExpandIcon as wr, CircleXIcon as fr, CircleCheckBigIcon as xr, CircleCheckIcon as St, CheckCheckIcon as vr, CheckIcon as br, ChevronLeftIcon as yr, LoaderIcon as kr, ArrowUpIcon as _t, PaperclipIcon as ct, CircleDashed as Cr, AlertCircle as zr, Loader2 as Nr, FileAudio2Icon as Sr, FileVideo2Icon as _r, FileIcon as Ir, UserRoundIcon as Tr, ChevronRightIcon as Mr, SendHorizontal as Dr, ChevronDownIcon as Rr } from "lucide-react";
7
- import { clsx as jr } from "clsx";
8
- import { twMerge as Pr } from "tailwind-merge";
4
+ import L, { memo as rr, forwardRef as yt, useState as D, cloneElement as kt, createContext as or, useEffect as se, useContext as nr, useRef as B, useCallback as V, useMemo as Ct, createElement as ct } from "react";
5
+ import { useWidget as O, useConfig as C, useSessions as U, useMessages as A, useWidgetRouter as H, useDocumentDir as ke, useWidgetTrigger as G, useModes as zt, useCsat as Nt, useUploadFiles as sr, useIsAwaitingBotReply as St, useContact as _t, WidgetProvider as ar, WidgetTriggerProvider as ir } from "@opencx/widget-react-headless";
6
+ import { X as lr, ZoomOut as cr, ZoomIn as dr, RotateCcw as pr, FileText as It, FileSpreadsheet as Tt, CircleDashedIcon as mr, XIcon as Ce, SquareXIcon as hr, SquareCheckBigIcon as ur, SquareCheckIcon as gr, ShrinkIcon as wr, Minimize2Icon as fr, MinimizeIcon as xr, Maximize2Icon as vr, MaximizeIcon as br, ExpandIcon as yr, CircleXIcon as kr, CircleCheckBigIcon as Cr, CircleCheckIcon as Mt, CheckCheckIcon as zr, CheckIcon as Nr, ChevronLeftIcon as Sr, LoaderIcon as _r, ArrowUpIcon as Dt, PaperclipIcon as dt, CircleDashed as Ir, AlertCircle as Tr, Loader2 as Mr, FileAudio2Icon as Dr, FileVideo2Icon as Er, FileIcon as Rr, UserRoundIcon as Pr, ChevronRightIcon as jr, SendHorizontal as Or, ChevronDownIcon as Ar } from "lucide-react";
7
+ import { clsx as Fr } from "clsx";
8
+ import { twMerge as Hr } from "tailwind-merge";
9
9
  import { motion as re, AnimatePresence as T } from "framer-motion";
10
- import { Slot as Er } from "@radix-ui/react-slot";
11
- import { cva as Or } from "class-variance-authority";
12
- import It from "remark-gfm";
13
- import Ar from "react-markdown";
14
- import Tt from "rehype-raw";
15
- import { isExhaustive as F, isSupportedLanguage as Fr, getTranslation as Hr } from "@opencx/widget-core";
10
+ import { Slot as Wr } from "@radix-ui/react-slot";
11
+ import { cva as Lr } from "class-variance-authority";
12
+ import Et from "remark-gfm";
13
+ import $r from "react-markdown";
14
+ import Rt from "rehype-raw";
15
+ import { isExhaustive as F, isSupportedLanguage as Br, getTranslation as Yr } from "@opencx/widget-core";
16
16
  import * as ee from "@radix-ui/react-avatar";
17
- import Mt from "@uiw/react-iframe";
17
+ import Pt from "@uiw/react-iframe";
18
18
  import * as ae from "@radix-ui/react-tooltip";
19
- import dt from "tinycolor2";
20
- import { useDropzone as Wr } from "react-dropzone";
21
- import Lr from "react-use/lib/useAsyncFn";
22
- import { z as ue } from "zod";
23
- function w(e) {
19
+ import pt from "tinycolor2";
20
+ import { useDropzone as Ur } from "react-dropzone";
21
+ import Xr from "react-use/lib/useAsyncFn";
22
+ import { z as ge } from "zod";
23
+ function f(e) {
24
24
  return { "data-component": e };
25
25
  }
26
- function h(...e) {
27
- return Pr(jr(e));
26
+ const fe = [
27
+ {
28
+ kind: "csv",
29
+ label: "CSV",
30
+ mimes: ["text/csv", "application/csv"],
31
+ extensions: ["csv"]
32
+ },
33
+ {
34
+ kind: "excel",
35
+ label: "Excel",
36
+ mimes: [
37
+ "application/vnd.ms-excel",
38
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
39
+ ],
40
+ extensions: ["xls", "xlsx"]
41
+ }
42
+ ], mt = Object.fromEntries(
43
+ fe.flatMap(
44
+ (e) => e.mimes.map((o) => [o, e.extensions.map((t) => `.${t}`)])
45
+ )
46
+ );
47
+ function jt({
48
+ type: e,
49
+ name: o
50
+ }) {
51
+ var s, i;
52
+ const t = ((s = o.split(".").pop()) == null ? void 0 : s.toLowerCase()) ?? "", n = ((i = e.toLowerCase().split(";")[0]) == null ? void 0 : i.trim()) ?? "";
53
+ return fe.find((a) => t && a.extensions.includes(t)) ?? fe.find((a) => n && a.mimes.includes(n)) ?? null;
54
+ }
55
+ function m(...e) {
56
+ return Hr(Fr(e));
28
57
  }
29
58
  const K = {
30
59
  x: 2,
31
60
  y: 2
32
- }, Y = Kt(
33
- xt(
61
+ }, Y = rr(
62
+ yt(
34
63
  ({ children: e, className: o, scale: t = 1.02, off: n = !1 }, s) => {
35
64
  const [i, a] = D(!1), [l, c] = D({ x: 0, y: 0 });
36
65
  if (n || /translate/.test(
37
66
  e.props.className || ""
38
67
  )) return e;
39
- const f = (b) => {
40
- var M, g;
41
- const { clientX: z, clientY: _ } = b, v = b.currentTarget.getBoundingClientRect(), R = z - (v.left + v.width / 2), P = _ - (v.top + v.height / 2), E = Math.max(
68
+ const x = (b) => {
69
+ var M, h;
70
+ const { clientX: z, clientY: _ } = b, y = b.currentTarget.getBoundingClientRect(), E = z - (y.left + y.width / 2), P = _ - (y.top + y.height / 2), j = Math.max(
42
71
  -1,
43
- Math.min(1, R / (v.width / 2))
44
- ), u = Math.max(
72
+ Math.min(1, E / (y.width / 2))
73
+ ), w = Math.max(
45
74
  -1,
46
- Math.min(1, P / (v.height / 2))
47
- ), I = E * K.x, j = u * K.y;
48
- c({ x: I, y: j }), (g = (M = e.props).onMouseMove) == null || g.call(M, b);
49
- }, x = () => {
75
+ Math.min(1, P / (y.height / 2))
76
+ ), I = j * K.x, R = w * K.y;
77
+ c({ x: I, y: R }), (h = (M = e.props).onMouseMove) == null || h.call(M, b);
78
+ }, v = () => {
50
79
  var b, z;
51
80
  a(!0), (z = (b = e.props).onMouseEnter) == null || z.call(b);
52
- }, m = () => {
81
+ }, g = () => {
53
82
  var b, z;
54
83
  a(!1), c({ x: 0, y: 0 }), (z = (b = e.props).onMouseLeave) == null || z.call(b);
55
- }, k = {
84
+ }, u = {
56
85
  "--wobble-x": i ? `${l.x}px` : "0px",
57
86
  "--wobble-y": i ? `${l.y}px` : "0px",
58
87
  "--scale": 1 - (t - 1)
59
88
  };
60
- return vt(e, {
89
+ return kt(e, {
61
90
  ref: s,
62
- onMouseMove: f,
63
- onMouseEnter: x,
64
- onMouseLeave: m,
91
+ onMouseMove: x,
92
+ onMouseEnter: v,
93
+ onMouseLeave: g,
65
94
  style: {
66
- ...k,
95
+ ...u,
67
96
  ...e.props.style
68
97
  },
69
- className: h(
98
+ className: m(
70
99
  "translate-x-[var(--wobble-x)]",
71
100
  "translate-y-[var(--wobble-y)]",
72
101
  "hover:scale-[var(--scale)] active:hover:scale-[calc(var(--scale)-0.02)]",
@@ -79,44 +108,44 @@ const K = {
79
108
  )
80
109
  );
81
110
  Y.displayName = "Wobble";
82
- const $r = 10, Br = (e, o, t) => ({
111
+ const qr = 10, Vr = (e, o, t) => ({
83
112
  initial: { opacity: 0, x: -e, ...o.initial },
84
113
  animate: { opacity: 1, x: 0, ...o.animate, transition: { delay: t } },
85
114
  exit: { opacity: 0, x: e, ...o.exit }
86
- }), Yr = (e, o, t) => ({
115
+ }), Gr = (e, o, t) => ({
87
116
  initial: { opacity: 0, x: e, ...o.initial },
88
117
  animate: { opacity: 1, x: 0, ...o.animate, transition: { delay: t } },
89
118
  exit: { opacity: 0, x: -e, ...o.exit }
90
- }), Ur = (e, o, t) => ({
119
+ }), Zr = (e, o, t) => ({
91
120
  initial: { opacity: 0, y: e, ...o.initial },
92
121
  animate: { opacity: 1, y: 0, ...o.animate, transition: { delay: t } },
93
122
  exit: { opacity: 0, y: -e, ...o.exit }
94
- }), Xr = (e, o, t) => ({
123
+ }), Kr = (e, o, t) => ({
95
124
  initial: { opacity: 0, y: -e, ...o.initial },
96
125
  animate: { opacity: 1, y: 0, ...o.animate, transition: { delay: t } },
97
126
  exit: { opacity: 0, y: e, ...o.exit }
98
- }), qr = {
99
- right: Br,
100
- left: Yr,
101
- up: Ur,
102
- down: Xr
103
- }, y = xt(
127
+ }), Qr = {
128
+ right: Vr,
129
+ left: Gr,
130
+ up: Zr,
131
+ down: Kr
132
+ }, k = yt(
104
133
  ({
105
134
  fadeIn: e = "down",
106
- distance: o = $r,
135
+ distance: o = qr,
107
136
  children: t,
108
137
  snapExit: n = !1,
109
138
  overrides: s = {},
110
139
  delay: i = 0,
111
140
  ...a
112
141
  }, l) => {
113
- const c = e ? qr[e](o, s, i) : {};
142
+ const c = e ? Qr[e](o, s, i) : {};
114
143
  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 });
115
144
  }
116
145
  );
117
- y.displayName = "MotionDiv";
118
- const Vr = Or(
119
- h(
146
+ k.displayName = "MotionDiv";
147
+ const Jr = Lr(
148
+ m(
120
149
  "inline-flex shrink-0 items-center justify-center gap-2",
121
150
  "text-sm font-medium whitespace-nowrap",
122
151
  "ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
@@ -156,18 +185,18 @@ const Vr = Or(
156
185
  }
157
186
  ), N = J.forwardRef(
158
187
  ({ className: e, variant: o = "default", size: t, asChild: n = !1, ...s }, i) => /* @__PURE__ */ r(Y, { ref: i, children: /* @__PURE__ */ r(
159
- n ? Er : "button",
188
+ n ? Wr : "button",
160
189
  {
161
- ...w("ui_lib/btn"),
190
+ ...f("ui_lib/btn"),
162
191
  "data-variant": o,
163
- className: h(Vr({ variant: o, size: t, className: e })),
192
+ className: m(Jr({ variant: o, size: t, className: e })),
164
193
  ...s
165
194
  }
166
195
  ) })
167
196
  );
168
197
  N.displayName = "Button";
169
- const Dt = Qt(null);
170
- function Gr({ children: e }) {
198
+ const Ot = or(null);
199
+ function eo({ children: e }) {
171
200
  const [o, t] = D(!1), [n, s] = D(null), i = (l) => {
172
201
  s(l), t(!0);
173
202
  }, a = () => {
@@ -176,18 +205,18 @@ function Gr({ children: e }) {
176
205
  }, 200);
177
206
  };
178
207
  return /* @__PURE__ */ d(
179
- Dt.Provider,
208
+ Ot.Provider,
180
209
  {
181
210
  value: { open: i, close: a, isOpen: o, content: n },
182
211
  children: [
183
- /* @__PURE__ */ r(Zr, {}),
212
+ /* @__PURE__ */ r(to, {}),
184
213
  e
185
214
  ]
186
215
  }
187
216
  );
188
217
  }
189
- function me() {
190
- const e = Jt(Dt);
218
+ function he() {
219
+ const e = nr(Ot);
191
220
  return e || (console.error("useDialoger must be used within a DialogerProvider"), {
192
221
  open: () => {
193
222
  },
@@ -197,8 +226,8 @@ function me() {
197
226
  content: null
198
227
  });
199
228
  }
200
- function Zr() {
201
- const { contentIframeRef: e } = O(), { isOpen: o, content: t, close: n } = me();
229
+ function to() {
230
+ const { contentIframeRef: e } = O(), { isOpen: o, content: t, close: n } = he();
202
231
  return se(() => {
203
232
  var i, a;
204
233
  const s = (l) => {
@@ -215,7 +244,7 @@ function Zr() {
215
244
  );
216
245
  };
217
246
  }, []), /* @__PURE__ */ r(T, { mode: "wait", children: o && t && /* @__PURE__ */ r(
218
- y,
247
+ k,
219
248
  {
220
249
  overrides: {
221
250
  initial: { y: 0 },
@@ -229,16 +258,16 @@ function Zr() {
229
258
  "dialog-content"
230
259
  ) });
231
260
  }
232
- function Ce({
261
+ function ze({
233
262
  children: e,
234
263
  className: o,
235
264
  withClose: t = !1
236
265
  }) {
237
- const { close: n } = me();
266
+ const { close: n } = he();
238
267
  return /* @__PURE__ */ d(
239
268
  "div",
240
269
  {
241
- className: h(
270
+ className: m(
242
271
  "fixed left-[50%] top-[50%] z-50 flex flex-col gap-4 w-full max-w-[61.8%] translate-x-[-50%] translate-y-[-50%] border bg-background p-4 rounded-3xl",
243
272
  o
244
273
  ),
@@ -252,7 +281,7 @@ function Ce({
252
281
  className: "rounded-full absolute top-4 right-4 opacity-50 hover:opacity-100",
253
282
  onClick: n,
254
283
  children: [
255
- /* @__PURE__ */ r(or, { className: "h-4 w-4" }),
284
+ /* @__PURE__ */ r(lr, { className: "h-4 w-4" }),
256
285
  /* @__PURE__ */ r("span", { className: "sr-only", children: "Close" })
257
286
  ]
258
287
  }
@@ -261,65 +290,65 @@ function Ce({
261
290
  }
262
291
  );
263
292
  }
264
- const Rt = ({
293
+ const At = ({
265
294
  className: e,
266
295
  ...o
267
296
  }) => /* @__PURE__ */ r(
268
297
  "div",
269
298
  {
270
- className: h("flex flex-col gap-2 text-center pt-2", e),
299
+ className: m("flex flex-col gap-2 text-center pt-2", e),
271
300
  ...o
272
301
  }
273
302
  );
274
- Rt.displayName = "DialogerHeader";
275
- const jt = ({
303
+ At.displayName = "DialogerHeader";
304
+ const Ft = ({
276
305
  className: e,
277
306
  ...o
278
307
  }) => /* @__PURE__ */ r(
279
308
  "div",
280
309
  {
281
- className: h("flex flex-col gap-2 text-center", e),
310
+ className: m("flex flex-col gap-2 text-center", e),
282
311
  ...o
283
312
  }
284
313
  );
285
- jt.displayName = "DialogerBody";
286
- const Pt = ({
314
+ Ft.displayName = "DialogerBody";
315
+ const Ht = ({
287
316
  className: e,
288
317
  ...o
289
- }) => /* @__PURE__ */ r("div", { className: h("flex flex-col gap-2", e), ...o });
290
- Pt.displayName = "DialogerFooter";
291
- const Et = L.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
318
+ }) => /* @__PURE__ */ r("div", { className: m("flex flex-col gap-2", e), ...o });
319
+ Ht.displayName = "DialogerFooter";
320
+ const Wt = L.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
292
321
  "p",
293
322
  {
294
323
  ref: t,
295
- className: h(
324
+ className: m(
296
325
  "text-lg font-semibold leading-none tracking-tight",
297
326
  e
298
327
  ),
299
328
  ...o
300
329
  }
301
330
  ));
302
- Et.displayName = "DialogerTitle";
303
- const Ot = L.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
331
+ Wt.displayName = "DialogerTitle";
332
+ const Lt = L.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
304
333
  "p",
305
334
  {
306
335
  ref: t,
307
- className: h("text-sm text-muted-foreground", e),
336
+ className: m("text-sm text-muted-foreground", e),
308
337
  ...o
309
338
  }
310
339
  ));
311
- Ot.displayName = "DialogerDescription";
312
- function ze({
340
+ Lt.displayName = "DialogerDescription";
341
+ function Ne({
313
342
  children: e,
314
343
  trigger: o
315
344
  }) {
316
- const { open: t } = me();
317
- return vt(o, {
345
+ const { open: t } = he();
346
+ return kt(o, {
318
347
  onClick: () => t(e)
319
348
  });
320
349
  }
321
- const pt = 1, ht = 5, le = 0.5, Kr = 2.5;
322
- function Qr(e, o, t, n) {
350
+ const ht = 1, ut = 5, le = 0.5, ro = 2.5;
351
+ function oo(e, o, t, n) {
323
352
  if (!t || !n || o <= 1) return { x: 0, y: 0 };
324
353
  const s = t.getBoundingClientRect(), i = n.offsetWidth, a = n.offsetHeight, l = Math.max(0, (i * o - s.width) / (2 * o)), c = Math.max(
325
354
  0,
@@ -330,77 +359,77 @@ function Qr(e, o, t, n) {
330
359
  y: Math.min(c, Math.max(-c, e.y))
331
360
  };
332
361
  }
333
- function At({
362
+ function $t({
334
363
  src: e,
335
364
  alt: o
336
365
  }) {
337
- const [t, n] = D(1), [s, i] = D({ x: 0, y: 0 }), [a, l] = D(!1), c = B({ x: 0, y: 0 }), p = B({ x: 0, y: 0 }), f = B(null), x = B(null), m = B(!1), k = (u) => Math.min(ht, Math.max(pt, u)), b = q(() => {
366
+ const [t, n] = D(1), [s, i] = D({ x: 0, y: 0 }), [a, l] = D(!1), c = B({ x: 0, y: 0 }), p = B({ x: 0, y: 0 }), x = B(null), v = B(null), g = B(!1), u = (w) => Math.min(ut, Math.max(ht, w)), b = V(() => {
338
367
  n(1), i({ x: 0, y: 0 });
339
- }, []), z = q(() => {
340
- n((u) => k(u + le));
341
- }, []), _ = q(() => {
342
- n((u) => {
343
- const I = k(u - le);
368
+ }, []), z = V(() => {
369
+ n((w) => u(w + le));
370
+ }, []), _ = V(() => {
371
+ n((w) => {
372
+ const I = u(w - le);
344
373
  return I <= 1 && i({ x: 0, y: 0 }), I;
345
374
  });
346
375
  }, []);
347
- q((u) => {
348
- u.preventDefault(), u.stopPropagation();
349
- const I = u.deltaY > 0 ? -le : le;
350
- n((j) => {
351
- const M = k(j + I);
376
+ V((w) => {
377
+ w.preventDefault(), w.stopPropagation();
378
+ const I = w.deltaY > 0 ? -le : le;
379
+ n((R) => {
380
+ const M = u(R + I);
352
381
  return M <= 1 && i({ x: 0, y: 0 }), M;
353
382
  });
354
383
  }, []);
355
- const v = q(
356
- (u) => {
357
- u.preventDefault(), m.current = !1, l(!0), c.current = { x: u.clientX, y: u.clientY }, p.current = { ...s }, u.target.setPointerCapture(u.pointerId);
384
+ const y = V(
385
+ (w) => {
386
+ w.preventDefault(), g.current = !1, l(!0), c.current = { x: w.clientX, y: w.clientY }, p.current = { ...s }, w.target.setPointerCapture(w.pointerId);
358
387
  },
359
388
  [s]
360
- ), R = q(
361
- (u) => {
389
+ ), E = V(
390
+ (w) => {
362
391
  if (!a) return;
363
- const I = u.clientX - c.current.x, j = u.clientY - c.current.y;
364
- if ((Math.abs(I) > 3 || Math.abs(j) > 3) && (m.current = !0), t <= 1) return;
392
+ const I = w.clientX - c.current.x, R = w.clientY - c.current.y;
393
+ if ((Math.abs(I) > 3 || Math.abs(R) > 3) && (g.current = !0), t <= 1) return;
365
394
  const M = {
366
395
  x: p.current.x + I / t,
367
- y: p.current.y + j / t
396
+ y: p.current.y + R / t
368
397
  };
369
398
  i(
370
- Qr(M, t, f.current, x.current)
399
+ oo(M, t, x.current, v.current)
371
400
  );
372
401
  },
373
402
  [a, t]
374
- ), P = q(() => {
375
- const u = m.current;
376
- l(!1), !u && n((I) => I > 1 ? (i({ x: 0, y: 0 }), 1) : Kr);
377
- }, []), E = t > 1;
403
+ ), P = V(() => {
404
+ const w = g.current;
405
+ l(!1), !w && n((I) => I > 1 ? (i({ x: 0, y: 0 }), 1) : ro);
406
+ }, []), j = t > 1;
378
407
  return /* @__PURE__ */ d(
379
408
  "div",
380
409
  {
381
410
  className: "relative size-full flex items-center justify-center select-none",
382
- onClick: (u) => u.stopPropagation(),
411
+ onClick: (w) => w.stopPropagation(),
383
412
  children: [
384
413
  /* @__PURE__ */ r(
385
414
  "div",
386
415
  {
387
- ref: f,
388
- className: h(
416
+ ref: x,
417
+ className: m(
389
418
  "overflow-hidden max-h-full max-w-full rounded-2xl flex items-center justify-center",
390
- E && "size-full"
419
+ j && "size-full"
391
420
  ),
392
- onPointerDown: v,
393
- onPointerMove: R,
421
+ onPointerDown: y,
422
+ onPointerMove: E,
394
423
  onPointerUp: P,
395
424
  onPointerCancel: P,
396
425
  style: {
397
- cursor: a ? "grabbing" : E ? "grab" : "zoom-in",
426
+ cursor: a ? "grabbing" : j ? "grab" : "zoom-in",
398
427
  touchAction: "none"
399
428
  },
400
429
  children: /* @__PURE__ */ r(
401
430
  "img",
402
431
  {
403
- ref: x,
432
+ ref: v,
404
433
  src: e,
405
434
  alt: o,
406
435
  className: "block max-w-full object-contain pointer-events-none",
@@ -416,15 +445,15 @@ function At({
416
445
  }
417
446
  ),
418
447
  /* @__PURE__ */ d("div", { className: "absolute bottom-3 left-1/2 -translate-x-1/2 flex items-center gap-1 bg-black/60 backdrop-blur-sm rounded-full px-1.5 py-1 transition opacity-50 hover:opacity-100", children: [
419
- /* @__PURE__ */ r(we, { onClick: _, label: "Zoom out", disabled: t <= pt, children: /* @__PURE__ */ r(nr, { className: "size-3.5" }) }),
448
+ /* @__PURE__ */ r(we, { onClick: _, label: "Zoom out", disabled: t <= ht, children: /* @__PURE__ */ r(cr, { className: "size-3.5" }) }),
420
449
  /* @__PURE__ */ d("span", { className: "text-white text-xs font-medium min-w-[3ch] text-center tabular-nums", children: [
421
450
  Math.round(t * 100),
422
451
  "%"
423
452
  ] }),
424
- /* @__PURE__ */ r(we, { onClick: z, label: "Zoom in", disabled: t >= ht, children: /* @__PURE__ */ r(sr, { className: "size-3.5" }) }),
425
- E && /* @__PURE__ */ d(Q, { children: [
453
+ /* @__PURE__ */ r(we, { onClick: z, label: "Zoom in", disabled: t >= ut, children: /* @__PURE__ */ r(dr, { className: "size-3.5" }) }),
454
+ j && /* @__PURE__ */ d(Q, { children: [
426
455
  /* @__PURE__ */ r("div", { className: "w-px h-4 bg-white/30 mx-0.5" }),
427
- /* @__PURE__ */ r(we, { onClick: b, label: "Reset zoom", children: /* @__PURE__ */ r(ar, { className: "size-3.5" }) })
456
+ /* @__PURE__ */ r(we, { onClick: b, label: "Reset zoom", children: /* @__PURE__ */ r(pr, { className: "size-3.5" }) })
428
457
  ] })
429
458
  ] })
430
459
  ]
@@ -448,34 +477,20 @@ function we({
448
477
  }
449
478
  );
450
479
  }
451
- function Ft({ attachment: e }) {
452
- 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";
453
- return l ? /* @__PURE__ */ r(Y, { children: /* @__PURE__ */ r("div", { className: "w-full shrink-0 overflow-hidden", children: /* @__PURE__ */ d("audio", { controls: !0, className: "w-full", children: [
454
- /* @__PURE__ */ r("source", { src: s, type: n }),
455
- "Your browser does not support the audio tag."
456
- ] }) }) }) : a ? /* @__PURE__ */ r(Y, { children: /* @__PURE__ */ r("div", { className: "w-full border shrink-0 rounded-2xl overflow-hidden", children: /* @__PURE__ */ d("video", { controls: !0, children: [
457
- /* @__PURE__ */ r("source", { src: s, type: n }),
458
- "Your browser does not support the video tag."
459
- ] }) }) }) : i ? /* @__PURE__ */ r(
460
- ze,
461
- {
462
- trigger: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(Y, { children: /* @__PURE__ */ r("div", { className: "size-fit border shrink-0 rounded-2xl overflow-hidden", children: /* @__PURE__ */ r("img", { src: s, className: "object-cover size-16", alt: o }) }) }) }),
463
- children: /* @__PURE__ */ r(
464
- Ce,
465
- {
466
- className: "size-full max-w-full rounded-3xl flex items-center justify-center bg-transparent border-none gap-0",
467
- withClose: !0,
468
- children: /* @__PURE__ */ r(At, { src: s, alt: o })
469
- }
470
- )
471
- }
472
- ) : c ? /* @__PURE__ */ r(Y, { children: /* @__PURE__ */ r(
480
+ function gt({
481
+ url: e,
482
+ name: o,
483
+ size: t,
484
+ icon: n,
485
+ label: s
486
+ }) {
487
+ return /* @__PURE__ */ r(Y, { children: /* @__PURE__ */ r(
473
488
  "a",
474
489
  {
475
- href: s,
490
+ href: e,
476
491
  target: "_blank",
477
492
  rel: "noopener noreferrer",
478
- className: h(
493
+ className: m(
479
494
  "block size-fit max-w-[min(100%,16rem)] shrink-0 rounded-2xl border",
480
495
  "bg-background/80 transition-colors hover:bg-accent/60",
481
496
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
@@ -484,19 +499,19 @@ function Ft({ attachment: e }) {
484
499
  /* @__PURE__ */ r(
485
500
  "div",
486
501
  {
487
- className: h(
502
+ className: m(
488
503
  "flex size-10 shrink-0 items-center justify-center rounded-xl",
489
504
  "bg-secondary text-muted-foreground"
490
505
  ),
491
506
  "aria-hidden": !0,
492
- children: /* @__PURE__ */ r(Nt, { className: "size-5", strokeWidth: 1.75 })
507
+ children: n
493
508
  }
494
509
  ),
495
510
  /* @__PURE__ */ d("div", { className: "min-w-0 flex-1 flex flex-col gap-0.5 text-left", children: [
496
511
  /* @__PURE__ */ r(
497
512
  "span",
498
513
  {
499
- className: h(
514
+ className: m(
500
515
  "text-xs font-medium text-foreground line-clamp-1",
501
516
  "break-words [word-break:break-word]"
502
517
  // `[word-break:break-word]` is deprecated but works in the browser, while `break-words` which is `[overflow-wrap: break-word]` does not work
@@ -506,19 +521,70 @@ function Ft({ attachment: e }) {
506
521
  ),
507
522
  /* @__PURE__ */ d("span", { className: "text-xs text-muted-foreground tabular-nums", children: [
508
523
  (t / 1024).toFixed(2),
509
- " KB · PDF"
524
+ " KB · ",
525
+ s
510
526
  ] })
511
527
  ] })
512
528
  ] })
513
529
  }
514
- ) }) : /* @__PURE__ */ r(Y, { children: /* @__PURE__ */ r("div", { className: "size-fit border shrink-0 rounded-2xl overflow-hidden", children: /* @__PURE__ */ d("div", { className: "flex items-end gap-2 p-2", children: [
530
+ ) });
531
+ }
532
+ function Bt({ attachment: e }) {
533
+ 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";
534
+ if (l)
535
+ 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: [
536
+ /* @__PURE__ */ r("source", { src: s, type: n }),
537
+ "Your browser does not support the audio tag."
538
+ ] }) }) });
539
+ if (a)
540
+ return /* @__PURE__ */ r(Y, { children: /* @__PURE__ */ r("div", { className: "w-full border shrink-0 rounded-2xl overflow-hidden", children: /* @__PURE__ */ d("video", { controls: !0, children: [
541
+ /* @__PURE__ */ r("source", { src: s, type: n }),
542
+ "Your browser does not support the video tag."
543
+ ] }) }) });
544
+ if (i)
545
+ return /* @__PURE__ */ r(
546
+ Ne,
547
+ {
548
+ 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 }) }) }) }),
549
+ children: /* @__PURE__ */ r(
550
+ ze,
551
+ {
552
+ className: "size-full max-w-full rounded-3xl flex items-center justify-center bg-transparent border-none gap-0",
553
+ withClose: !0,
554
+ children: /* @__PURE__ */ r($t, { src: s, alt: o })
555
+ }
556
+ )
557
+ }
558
+ );
559
+ if (c)
560
+ return /* @__PURE__ */ r(
561
+ gt,
562
+ {
563
+ url: s,
564
+ name: o,
565
+ size: t,
566
+ icon: /* @__PURE__ */ r(It, { className: "size-5", strokeWidth: 1.75 }),
567
+ label: "PDF"
568
+ }
569
+ );
570
+ const p = jt({ type: n, name: o });
571
+ return p ? /* @__PURE__ */ r(
572
+ gt,
573
+ {
574
+ url: s,
575
+ name: o,
576
+ size: t,
577
+ icon: /* @__PURE__ */ r(Tt, { className: "size-5", strokeWidth: 1.75 }),
578
+ label: p.label
579
+ }
580
+ ) : /* @__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: [
515
581
  /* @__PURE__ */ r(
516
582
  "a",
517
583
  {
518
584
  href: s,
519
585
  target: "_blank",
520
586
  rel: "noopener noreferrer",
521
- className: h(
587
+ className: m(
522
588
  "text-xs text-blue-500 line-clamp-2 underline hover:text-blue-600",
523
589
  "break-words [word-break:break-word]"
524
590
  // `[word-break:break-word]` is deprecated but works in the browser, while `break-words` which is `[overflow-wrap: break-word]` does not work
@@ -532,27 +598,27 @@ function Ft({ attachment: e }) {
532
598
  ] })
533
599
  ] }) }) });
534
600
  }
535
- const Ht = L.memo(
536
- Ar,
601
+ const Yt = L.memo(
602
+ $r,
537
603
  (e, o) => e.children === o.children && e.className === o.className
538
604
  );
539
- function Ne({
605
+ function Se({
540
606
  children: e,
541
607
  messageType: o,
542
608
  messageId: t
543
609
  }) {
544
610
  const { anchorTarget: n } = C();
545
611
  return /* @__PURE__ */ r(
546
- Ht,
612
+ Yt,
547
613
  {
548
614
  "data-type": o,
549
615
  "data-id": t,
550
- remarkPlugins: [It],
551
- rehypePlugins: [Tt],
616
+ remarkPlugins: [Et],
617
+ rehypePlugins: [Rt],
552
618
  components: {
553
619
  a: ({ children: s, ...i }) => /* @__PURE__ */ r("a", { target: i.target || n || "_top", ...i, children: s }),
554
620
  img: ({ src: s, alt: i, ...a }) => s ? /* @__PURE__ */ r(
555
- ze,
621
+ Ne,
556
622
  {
557
623
  trigger: /* @__PURE__ */ r(
558
624
  "img",
@@ -564,11 +630,11 @@ function Ne({
564
630
  }
565
631
  ),
566
632
  children: /* @__PURE__ */ r(
567
- Ce,
633
+ ze,
568
634
  {
569
635
  className: "size-full max-w-full rounded-3xl flex items-center justify-center bg-transparent border-none gap-0",
570
636
  withClose: !0,
571
- children: /* @__PURE__ */ r(At, { src: s, alt: i })
637
+ children: /* @__PURE__ */ r($t, { src: s, alt: i })
572
638
  }
573
639
  )
574
640
  }
@@ -597,14 +663,14 @@ function te() {
597
663
  currentScreen: s
598
664
  };
599
665
  }
600
- function Jr({
666
+ function no({
601
667
  currentMessage: e
602
668
  }) {
603
669
  var n;
604
670
  const o = te(), t = (n = o.config.customComponents) == null ? void 0 : n["message::after"];
605
671
  return t ? /* @__PURE__ */ r(t, { ...o, currentMessage: e }) : null;
606
672
  }
607
- function fe(e) {
673
+ function xe(e) {
608
674
  const {
609
675
  data: o,
610
676
  id: t,
@@ -617,27 +683,27 @@ function fe(e) {
617
683
  classNames: p
618
684
  } = e;
619
685
  if (n !== "AI" && n !== "AGENT") return null;
620
- const { message: f, variant: x = "default" } = o;
686
+ const { message: x, variant: v = "default" } = o;
621
687
  return /* @__PURE__ */ d(
622
688
  "div",
623
689
  {
624
- ...w((c == null ? void 0 : c.messageContainer) ?? "chat/agent_msg/root"),
625
- className: h(
690
+ ...f((c == null ? void 0 : c.messageContainer) ?? "chat/agent_msg/root"),
691
+ className: m(
626
692
  "w-5/6 flex flex-col items-start gap-1",
627
693
  p == null ? void 0 : p.messageContainer
628
694
  ),
629
695
  children: [
630
- s && s.length > 0 && /* @__PURE__ */ r("div", { className: "w-full gap-1 flex flex-row flex-wrap items-center justify-start", children: s == null ? void 0 : s.map((m) => /* @__PURE__ */ r(Ft, { attachment: m }, m.id)) }),
631
- f.length > 0 && /* @__PURE__ */ d("div", { className: "flex flex-row gap-2", children: [
696
+ 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((g) => /* @__PURE__ */ r(Bt, { attachment: g }, g.id)) }),
697
+ x.length > 0 && /* @__PURE__ */ d("div", { className: "flex flex-row gap-2", children: [
632
698
  /* @__PURE__ */ r(
633
699
  "div",
634
700
  {
635
- ...w((c == null ? void 0 : c.message) ?? "chat/agent_msg/msg"),
701
+ ...f((c == null ? void 0 : c.message) ?? "chat/agent_msg/msg"),
636
702
  "data-first": i,
637
703
  "data-last": a,
638
704
  "data-alone": l,
639
- "data-variant": x,
640
- className: h(
705
+ "data-variant": v,
706
+ className: m(
641
707
  "transition-all",
642
708
  "w-fit py-3 px-4 rounded-3xl bg-secondary text-secondary-foreground",
643
709
  "leading-snug text-sm prose prose-sm prose-a:decoration-primary prose-a:underline",
@@ -645,30 +711,30 @@ function fe(e) {
645
711
  // `[word-break:break-word]` is deprecated but works in the browser, while `break-words` which is `[overflow-wrap: break-word]` does not work
646
712
  // 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
647
713
  // Adding "whitespace-pre-wrap" will result in unnecessarily huge line breaks
648
- x === "error" && "bg-destructive/15 text-destructive",
714
+ v === "error" && "bg-destructive/15 text-destructive",
649
715
  // We're using the booleans directly here, not the data attributes, to make any external styling more specific than this
650
716
  i && !l && "rounded-bl-md",
651
717
  a && !l && "rounded-tl-md",
652
718
  !i && !a && !l && "rounded-l-md",
653
719
  p == null ? void 0 : p.message
654
720
  ),
655
- children: /* @__PURE__ */ r(Ne, { messageType: n, messageId: t, children: f })
721
+ children: /* @__PURE__ */ r(Se, { messageType: n, messageId: t, children: x })
656
722
  }
657
723
  ),
658
- /* @__PURE__ */ r(Jr, { currentMessage: e })
724
+ /* @__PURE__ */ r(no, { currentMessage: e })
659
725
  ] })
660
726
  ]
661
727
  }
662
728
  );
663
729
  }
664
- function eo(e) {
730
+ function so(e) {
665
731
  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) }) });
666
732
  }
667
- const Se = J.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
733
+ const _e = J.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
668
734
  ee.Root,
669
735
  {
670
736
  ref: t,
671
- className: h(
737
+ className: m(
672
738
  "relative flex size-6 aspect-square shrink-0 overflow-hidden rounded-full bg-secondary",
673
739
  // 'border',
674
740
  e
@@ -676,51 +742,51 @@ const Se = J.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
676
742
  ...o
677
743
  }
678
744
  ));
679
- Se.displayName = ee.Root.displayName;
680
- const _e = J.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
745
+ _e.displayName = ee.Root.displayName;
746
+ const Ie = J.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
681
747
  ee.Image,
682
748
  {
683
749
  ref: t,
684
- className: h("aspect-square h-full w-full", e),
750
+ className: m("aspect-square h-full w-full", e),
685
751
  ...o
686
752
  }
687
753
  ));
688
- _e.displayName = ee.Image.displayName;
689
- const Ie = J.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
754
+ Ie.displayName = ee.Image.displayName;
755
+ const Te = J.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
690
756
  ee.Fallback,
691
757
  {
692
758
  ref: t,
693
- className: h(
759
+ className: m(
694
760
  "flex size-full text-xs items-center justify-center rounded-lg",
695
761
  e
696
762
  ),
697
763
  ...o
698
764
  }
699
765
  ));
700
- Ie.displayName = ee.Fallback.displayName;
701
- function xe({
766
+ Te.displayName = ee.Fallback.displayName;
767
+ function ve({
702
768
  agent: e,
703
769
  ...o
704
770
  }) {
705
771
  var t, n;
706
- return /* @__PURE__ */ d(Se, { ...o, children: [
707
- /* @__PURE__ */ r(_e, { src: (e == null ? void 0 : e.avatarUrl) || (e == null ? void 0 : e.avatar) || "", alt: "Agent Icon" }),
708
- (e == null ? void 0 : e.name) && /* @__PURE__ */ r(Ie, { children: (n = (t = e == null ? void 0 : e.name) == null ? void 0 : t.slice(0, 1)) == null ? void 0 : n.toUpperCase() })
772
+ return /* @__PURE__ */ d(_e, { ...o, children: [
773
+ /* @__PURE__ */ r(Ie, { src: (e == null ? void 0 : e.avatarUrl) || (e == null ? void 0 : e.avatar) || "", alt: "Agent Icon" }),
774
+ (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() })
709
775
  ] });
710
776
  }
711
- function to({ agent: e }) {
777
+ function ao({ agent: e }) {
712
778
  return /* @__PURE__ */ r(T, { children: /* @__PURE__ */ d(
713
- y,
779
+ k,
714
780
  {
715
- ...w("chat/bot_loading/root"),
781
+ ...f("chat/bot_loading/root"),
716
782
  className: "flex flex-row items-end w-full gap-2 animate-pulse",
717
783
  children: [
718
- /* @__PURE__ */ r(xe, { agent: e }),
784
+ /* @__PURE__ */ r(ve, { agent: e }),
719
785
  /* @__PURE__ */ d(
720
786
  "div",
721
787
  {
722
- ...w("chat/bot_loading/bouncing_dots_container"),
723
- className: h(
788
+ ...f("chat/bot_loading/bouncing_dots_container"),
789
+ className: m(
724
790
  "flex items-center [&_span]:bg-secondary-foreground [&_span]:size-1 gap-1 p-2 rounded-xl bg-secondary"
725
791
  // 'border',
726
792
  ),
@@ -735,19 +801,19 @@ function to({ agent: e }) {
735
801
  }
736
802
  ) });
737
803
  }
738
- const Wt = '*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*{-ms-overflow-style:none;scrollbar-width:none}*::-webkit-scrollbar{display:none}*{border-color:hsl(var(--opencx-border))}.\\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%),0 3px rgb(var(--tw-prose-kbd-shadows) / 10%);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-kbd: #111827;--tw-prose-kbd-shadows: 17 24 39;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.bottom-3{bottom:.75rem}.end-6{inset-inline-end:1.5rem}.left-1\\/2{left:50%}.left-2{left:.5rem}.left-\\[50\\%\\]{left:50%}.right-4{right:1rem}.top-4{top:1rem}.top-6{top:1.5rem}.top-\\[50\\%\\]{top:50%}.isolate{isolation:isolate}.z-10{z-index:10}.z-50{z-index:50}.m-2{margin:.5rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-0\\.5{margin-left:.125rem;margin-right:.125rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ms-auto{margin-inline-start:auto}.mt-0\\.5{margin-top:.125rem}.mt-auto{margin-top:auto}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.size-0{width:0px;height:0px}.size-10{width:2.5rem;height:2.5rem}.size-12{width:3rem;height:3rem}.size-16{width:4rem;height:4rem}.size-3{width:.75rem;height:.75rem}.size-3\\.5{width:.875rem;height:.875rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.size-fit{width:fit-content;height:fit-content}.size-full{width:100%;height:100%}.h-0{height:0px}.h-10{height:2.5rem}.h-2{height:.5rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-dvh{height:100dvh}.h-full{height:100%}.h-px{height:1px}.max-h-16{max-height:4rem}.max-h-40{max-height:10rem}.max-h-full{max-height:100%}.min-h-12{min-height:3rem}.w-0{width:0px}.w-1\\/2{width:50%}.w-10{width:2.5rem}.w-2{width:.5rem}.w-2\\/5{width:40%}.w-3\\.5{width:.875rem}.w-3\\/5{width:60%}.w-4{width:1rem}.w-5\\/6{width:83.333333%}.w-60{width:15rem}.w-9{width:2.25rem}.w-auto{width:auto}.w-dvw{width:100dvw}.w-fit{width:fit-content}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0px}.min-w-80{min-width:20rem}.min-w-\\[3ch\\]{min-width:3ch}.min-w-\\[8rem\\]{min-width:8rem}.max-w-96{max-width:24rem}.max-w-\\[61\\.8\\%\\]{max-width:61.8%}.max-w-\\[min\\(100\\%\\,16rem\\)\\]{max-width:min(100%,16rem)}.max-w-full{max-width:100%}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-\\[2\\]{flex:2}.shrink-0{flex-shrink:0}.-translate-x-1\\/2,.translate-x-\\[-50\\%\\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[var\\(--wobble-x\\)\\]{--tw-translate-x: var(--wobble-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[-50\\%\\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[var\\(--wobble-y\\)\\]{--tw-translate-y: var(--wobble-y);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-0\\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-\\[1px\\]{gap:1px}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.scroll-smooth{scroll-behavior:smooth}.text-ellipsis{text-overflow:ellipsis}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-\\[20px\\]{border-radius:20px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-l-md{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.rounded-r-md{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-bl-md{border-bottom-left-radius:.375rem}.rounded-br-md{border-bottom-right-radius:.375rem}.rounded-tl-md{border-top-left-radius:.375rem}.rounded-tr-md{border-top-right-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-none{border-style:none}.border-transparent{border-color:transparent}.bg-\\[white\\]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-background{background-color:hsl(var(--opencx-background))}.bg-background\\/80{background-color:hsl(var(--opencx-background) / .8)}.bg-black\\/50{background-color:#00000080}.bg-black\\/60{background-color:#0009}.bg-destructive{background-color:hsl(var(--opencx-destructive))}.bg-destructive\\/15{background-color:hsl(var(--opencx-destructive) / .15)}.bg-muted{background-color:hsl(var(--opencx-muted))}.bg-primary{background-color:hsl(var(--opencx-primary))}.bg-secondary{background-color:hsl(var(--opencx-secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-white\\/30{background-color:#ffffff4d}.bg-\\[radial-gradient\\(ellipse_at_top_left\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\,radial-gradient\\(ellipse_at_top_right\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\]{background-image:radial-gradient(ellipse at top left,hsl(var(--opencx-primary)),transparent),radial-gradient(ellipse at top right,hsl(var(--opencx-primary)),transparent)}.fill-current{fill:currentColor}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:0}.p-1{padding:.25rem}.p-1\\.5{padding:.375rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-8{padding:2rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-0{padding-bottom:0}.pb-2{padding-bottom:.5rem}.pe-2{padding-inline-end:.5rem}.pe-4{padding-inline-end:1rem}.ps-2{padding-inline-start:.5rem}.ps-4{padding-inline-start:1rem}.ps-8{padding-inline-start:2rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-start{text-align:start}.align-middle{vertical-align:middle}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-\\[1\\.75rem\\]{font-size:1.75rem}.text-\\[10px\\]{font-size:10px}.text-\\[16px\\]{font-size:16px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-none{line-height:1}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-destructive{color:hsl(var(--opencx-destructive))}.text-destructive-foreground{color:hsl(var(--opencx-destructive-foreground))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}.text-foreground{color:hsl(var(--opencx-foreground))}.text-muted-foreground{color:hsl(var(--opencx-muted-foreground))}.text-muted-foreground\\/70{color:hsl(var(--opencx-muted-foreground) / .7)}.text-muted-foreground\\/75{color:hsl(var(--opencx-muted-foreground) / .75)}.text-primary{color:hsl(var(--opencx-primary))}.text-primary-foreground{color:hsl(var(--opencx-primary-foreground))}.text-secondary-foreground{color:hsl(var(--opencx-secondary-foreground))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-white\\/80{color:#fffc}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-35{opacity:.35}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-95{opacity:.95}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-8{outline-width:8px}.outline-background{outline-color:hsl(var(--opencx-background))}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-offset-background{--tw-ring-offset-color: hsl(var(--opencx-background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[height\\]{transition-property:height;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in{--tw-enter-scale: 0}.zoom-in-95{--tw-enter-scale: .95}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.\\[animation-delay\\:-0\\.15s\\]{animation-delay:-.15s}.\\[animation-delay\\:-0\\.3s\\]{animation-delay:-.3s}.\\[field-sizing\\:content\\;\\],.\\[field-sizing\\:content\\]{field-sizing:content}.\\[word-break\\:break-word\\]{word-break:break-word}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.file\\:text-primary-foreground::file-selector-button{color:hsl(var(--opencx-primary-foreground))}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--opencx-muted-foreground))}.placeholder\\:text-muted-foreground\\/75::placeholder{color:hsl(var(--opencx-muted-foreground) / .75)}.focus-within\\:border-primary:focus-within{border-color:hsl(var(--opencx-primary))}.hover\\:scale-\\[var\\(--scale\\)\\]:hover{--tw-scale-x: var(--scale);--tw-scale-y: var(--scale);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:border-primary:hover{border-color:hsl(var(--opencx-primary))}.hover\\:bg-accent\\/60:hover{background-color:hsl(var(--opencx-accent) / .6)}.hover\\:bg-secondary:hover{background-color:hsl(var(--opencx-secondary))}.hover\\:bg-white\\/15:hover{background-color:#ffffff26}.hover\\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.hover\\:text-primary:hover{color:hsl(var(--opencx-primary))}.hover\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.focus\\:bg-accent:focus{background-color:hsl(var(--opencx-accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--opencx-accent-foreground))}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--opencx-ring))}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--opencx-background))}.active\\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\\:hover\\:scale-\\[calc\\(var\\(--scale\\)-0\\.02\\)\\]:hover:active{--tw-scale-x: calc(var(--scale) - .02);--tw-scale-y: calc(var(--scale) - .02);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:active\\:scale-95:active:hover{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:text-white\\/30:disabled{color:#ffffff4d}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:hover\\:bg-transparent:hover:disabled{background-color:transparent}.group:hover .group-hover\\:opacity-100{opacity:1}.group:hover .group-hover\\:active\\:scale-90:active,.group:active .group-active\\:scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[state\\=checked\\]\\:translate-x-4[data-state=checked]{--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:hsl(var(--opencx-primary))}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--opencx-accent))}.data-\\[state\\=unchecked\\]\\:bg-input[data-state=unchecked]{background-color:hsl(var(--opencx-input))}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.prose-a\\:underline :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-line:underline}.prose-a\\:decoration-primary :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-color:hsl(var(--opencx-primary))}.rtl\\:-scale-100:where([dir=rtl],[dir=rtl] *){--tw-scale-x: -1;--tw-scale-y: -1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\\[\\&_span\\]\\:size-1 span{width:.25rem;height:.25rem}.\\[\\&_span\\]\\:bg-secondary-foreground span{background-color:hsl(var(--opencx-secondary-foreground))}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:size-4 svg{width:1rem;height:1rem}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_svg\\]\\:text-muted-foreground\\/70 svg{color:hsl(var(--opencx-muted-foreground) / .7)}.\\[\\&_svg\\]\\:hover\\:text-primary:hover svg{color:hsl(var(--opencx-primary))}', ro = ae.Provider, oo = ae.Root, no = ae.Trigger, Lt = J.forwardRef(({ className: e, sideOffset: o = 4, ...t }, n) => /* @__PURE__ */ r(
804
+ const Ut = '*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*{-ms-overflow-style:none;scrollbar-width:none}*::-webkit-scrollbar{display:none}*{border-color:hsl(var(--opencx-border))}.\\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%),0 3px rgb(var(--tw-prose-kbd-shadows) / 10%);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-kbd: #111827;--tw-prose-kbd-shadows: 17 24 39;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.bottom-3{bottom:.75rem}.end-6{inset-inline-end:1.5rem}.left-1\\/2{left:50%}.left-2{left:.5rem}.left-\\[50\\%\\]{left:50%}.right-4{right:1rem}.top-4{top:1rem}.top-6{top:1.5rem}.top-\\[50\\%\\]{top:50%}.isolate{isolation:isolate}.z-10{z-index:10}.z-50{z-index:50}.m-2{margin:.5rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-0\\.5{margin-left:.125rem;margin-right:.125rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ms-auto{margin-inline-start:auto}.mt-0\\.5{margin-top:.125rem}.mt-auto{margin-top:auto}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.size-0{width:0px;height:0px}.size-10{width:2.5rem;height:2.5rem}.size-12{width:3rem;height:3rem}.size-16{width:4rem;height:4rem}.size-3{width:.75rem;height:.75rem}.size-3\\.5{width:.875rem;height:.875rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.size-fit{width:fit-content;height:fit-content}.size-full{width:100%;height:100%}.h-0{height:0px}.h-10{height:2.5rem}.h-2{height:.5rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-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))}', io = ae.Provider, lo = ae.Root, co = ae.Trigger, Xt = J.forwardRef(({ className: e, sideOffset: o = 4, ...t }, n) => /* @__PURE__ */ r(
739
805
  ae.Content,
740
806
  {
741
807
  ref: n,
742
808
  sideOffset: o,
743
- className: h(
809
+ className: m(
744
810
  "z-50 overflow-hidden max-w-xs rounded-xl bg-primary border text-primary-foreground p-2 text-center align-middle text-xs animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
745
811
  e
746
812
  ),
747
813
  ...t
748
814
  }
749
815
  ));
750
- Lt.displayName = ae.Content.displayName;
816
+ Xt.displayName = ae.Content.displayName;
751
817
  function oe({
752
818
  children: e,
753
819
  content: o,
@@ -755,10 +821,10 @@ function oe({
755
821
  align: n
756
822
  }) {
757
823
  const { disableTooltips: s } = C();
758
- return !o || s ? e : /* @__PURE__ */ d(oo, { children: [
759
- /* @__PURE__ */ r(no, { asChild: !0, children: e }),
824
+ return !o || s ? e : /* @__PURE__ */ d(lo, { children: [
825
+ /* @__PURE__ */ r(co, { asChild: !0, children: e }),
760
826
  /* @__PURE__ */ r(
761
- Lt,
827
+ Xt,
762
828
  {
763
829
  side: t,
764
830
  align: n,
@@ -769,12 +835,12 @@ function oe({
769
835
  )
770
836
  ] });
771
837
  }
772
- const mt = 450;
838
+ const wt = 450;
773
839
  function $() {
774
- const [e, o] = L.useState(() => (window.top || window).innerWidth < mt);
840
+ const [e, o] = L.useState(() => (window.top || window).innerWidth < wt);
775
841
  return L.useEffect(() => {
776
842
  const t = window.top || window, n = () => {
777
- o(t.innerWidth < mt);
843
+ o(t.innerWidth < wt);
778
844
  };
779
845
  return n(), t.addEventListener("resize", n), () => {
780
846
  t.removeEventListener("resize", n);
@@ -785,18 +851,18 @@ const ce = {
785
851
  transitionTimingFunction: "cubic-bezier(0.16, 1, 0.3, 1)",
786
852
  transitionDuration: "1000ms"
787
853
  };
788
- function G() {
789
- var x, m, k, b, z, _, v, R, P, E, u, I, j, M, g, S, ie, Re, je, Pe, Ee, Oe, Ae, Fe, He, We, Le, $e, Be, Ye, Ue, Xe, qe, Ve, Ge, Ze, Ke, Qe, Je, et, tt, rt, ot, nt, st, at, it;
790
- const { dir: e } = ye(), { isSmallScreen: o } = $(), { theme: t, inline: n } = C(), s = (X) => n ? "100%" : X, i = (X, ge) => o ? `100dv${X}` : ge, a = (X, ge) => s(i(X, ge)), l = {
791
- zIndex: ((x = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : x.zIndex) ?? 1e7,
854
+ function Z() {
855
+ var v, g, u, b, z, _, y, E, P, j, w, I, R, M, h, S, ie, Re, Pe, je, Oe, Ae, Fe, He, We, Le, $e, Be, Ye, Ue, Xe, qe, Ve, Ge, Ze, Ke, Qe, Je, et, tt, rt, ot, nt, st, at, it, lt;
856
+ const { dir: e } = ke(), { isSmallScreen: o } = $(), { theme: t, inline: n } = C(), s = (X) => n ? "100%" : X, i = (X, ue) => o ? `100dv${X}` : ue, a = (X, ue) => s(i(X, ue)), l = {
857
+ zIndex: ((v = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : v.zIndex) ?? 1e7,
792
858
  offset: {
793
- bottom: ((k = (m = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : m.offset) == null ? void 0 : k.bottom) ?? 20,
859
+ bottom: ((u = (g = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : g.offset) == null ? void 0 : u.bottom) ?? 20,
794
860
  right: ((z = (b = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : b.offset) == null ? void 0 : z.right) ?? (e === "ltr" ? 20 : "initial"),
795
- left: ((v = (_ = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : _.offset) == null ? void 0 : v.left) ?? (e === "rtl" ? 20 : "initial")
861
+ left: ((y = (_ = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : _.offset) == null ? void 0 : y.left) ?? (e === "rtl" ? 20 : "initial")
796
862
  },
797
863
  size: {
798
- button: ((P = (R = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : R.size) == null ? void 0 : P.button) ?? 48,
799
- icon: ((u = (E = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : E.size) == null ? void 0 : u.icon) ?? 24
864
+ button: ((P = (E = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : E.size) == null ? void 0 : P.button) ?? 48,
865
+ icon: ((w = (j = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : j.size) == null ? void 0 : w.icon) ?? 24
800
866
  }
801
867
  }, c = (() => {
802
868
  const X = e === "ltr" ? l.offset.right : l.offset.left;
@@ -807,50 +873,50 @@ function G() {
807
873
  widgetTrigger: l,
808
874
  widgetContentContainer: {
809
875
  borderRadius: o ? "0px" : ((I = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : I.borderRadius) ?? "32px",
810
- zIndex: ((j = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : j.zIndex) ?? l.zIndex + 1,
876
+ zIndex: ((R = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : R.zIndex) ?? l.zIndex + 1,
811
877
  outline: ((M = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : M.outline) ?? "none",
812
878
  // was: '1px solid'
813
- outlineColor: ((g = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : g.outlineColor) ?? "hsl(0 0% 50% / .5)",
879
+ outlineColor: ((h = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : h.outlineColor) ?? "hsl(0 0% 50% / .5)",
814
880
  boxShadow: ((S = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : S.boxShadow) ?? "0 0px 100px 0px rgb(0 0 0 / 0.25)",
815
881
  transitionProperty: ((ie = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : ie.transitionProperty) ?? "all",
816
882
  transitionTimingFunction: ((Re = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Re.transitionTimingFunction) ?? ce.transitionTimingFunction,
817
- transitionDuration: ((je = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : je.transitionDuration) ?? ce.transitionDuration,
883
+ transitionDuration: ((Pe = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Pe.transitionDuration) ?? ce.transitionDuration,
818
884
  offset: {
819
- side: o ? 0 : l.offset.bottom + l.size.button + K.y * 2 + (((Ee = (Pe = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Pe.offset) == null ? void 0 : Ee.side) ?? 10),
820
- align: o ? 0 : c + (((Ae = (Oe = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Oe.offset) == null ? void 0 : Ae.align) ?? 0)
885
+ side: o ? 0 : l.offset.bottom + l.size.button + K.y * 2 + (((Oe = (je = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : je.offset) == null ? void 0 : Oe.side) ?? 10),
886
+ align: o ? 0 : c + (((Fe = (Ae = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Ae.offset) == null ? void 0 : Fe.align) ?? 0)
821
887
  }
822
888
  },
823
889
  screens: {
824
890
  welcome: {
825
- width: a("w", ((He = (Fe = t == null ? void 0 : t.screens) == null ? void 0 : Fe.welcome) == null ? void 0 : He.width) ?? "400px"),
891
+ width: a("w", ((We = (He = t == null ? void 0 : t.screens) == null ? void 0 : He.welcome) == null ? void 0 : We.width) ?? "400px"),
826
892
  // By setting minHeight to 1px, a nice animation will play from 1px to the dynamic height of the content of the screen
827
893
  minHeight: a(
828
894
  "h",
829
- ((Le = (We = t == null ? void 0 : t.screens) == null ? void 0 : We.welcome) == null ? void 0 : Le.minHeight) ?? "1px"
895
+ (($e = (Le = t == null ? void 0 : t.screens) == null ? void 0 : Le.welcome) == null ? void 0 : $e.minHeight) ?? "1px"
830
896
  )
831
897
  },
832
898
  sessions: {
833
- width: a("w", ((Be = ($e = t == null ? void 0 : t.screens) == null ? void 0 : $e.sessions) == null ? void 0 : Be.width) ?? "450px"),
834
- height: a("h", ((Ue = (Ye = t == null ? void 0 : t.screens) == null ? void 0 : Ye.sessions) == null ? void 0 : Ue.height) ?? "600px")
899
+ width: a("w", ((Ye = (Be = t == null ? void 0 : t.screens) == null ? void 0 : Be.sessions) == null ? void 0 : Ye.width) ?? "450px"),
900
+ height: a("h", ((Xe = (Ue = t == null ? void 0 : t.screens) == null ? void 0 : Ue.sessions) == null ? void 0 : Xe.height) ?? "600px")
835
901
  },
836
902
  chat: {
837
- width: a("w", ((qe = (Xe = t == null ? void 0 : t.screens) == null ? void 0 : Xe.chat) == null ? void 0 : qe.width) ?? "525px"),
838
- height: a("h", ((Ge = (Ve = t == null ? void 0 : t.screens) == null ? void 0 : Ve.chat) == null ? void 0 : Ge.height) ?? "700px"),
903
+ width: a("w", ((Ve = (qe = t == null ? void 0 : t.screens) == null ? void 0 : qe.chat) == null ? void 0 : Ve.width) ?? "525px"),
904
+ height: a("h", ((Ze = (Ge = t == null ? void 0 : t.screens) == null ? void 0 : Ge.chat) == null ? void 0 : Ze.height) ?? "700px"),
839
905
  withCanvas: {
840
906
  width: a(
841
907
  "w",
842
- ((Qe = (Ke = (Ze = t == null ? void 0 : t.screens) == null ? void 0 : Ze.chat) == null ? void 0 : Ke.withCanvas) == null ? void 0 : Qe.width) ?? "min(1050px, 100vw)"
908
+ ((Je = (Qe = (Ke = t == null ? void 0 : t.screens) == null ? void 0 : Ke.chat) == null ? void 0 : Qe.withCanvas) == null ? void 0 : Je.width) ?? "min(1050px, 100vw)"
843
909
  ),
844
910
  height: a(
845
911
  "h",
846
- ((tt = (et = (Je = t == null ? void 0 : t.screens) == null ? void 0 : Je.chat) == null ? void 0 : et.withCanvas) == null ? void 0 : tt.height) ?? "min(800px, 100vh)"
912
+ ((rt = (tt = (et = t == null ? void 0 : t.screens) == null ? void 0 : et.chat) == null ? void 0 : tt.withCanvas) == null ? void 0 : rt.height) ?? "min(800px, 100vh)"
847
913
  ),
848
- transitionTimingFunction: ((nt = (ot = (rt = t == null ? void 0 : t.screens) == null ? void 0 : rt.chat) == null ? void 0 : ot.withCanvas) == null ? void 0 : nt.transitionTimingFunction) ?? ce.transitionTimingFunction,
849
- transitionDuration: ((it = (at = (st = t == null ? void 0 : t.screens) == null ? void 0 : st.chat) == null ? void 0 : at.withCanvas) == null ? void 0 : it.transitionDuration) ?? ce.transitionDuration
914
+ transitionTimingFunction: ((st = (nt = (ot = t == null ? void 0 : t.screens) == null ? void 0 : ot.chat) == null ? void 0 : nt.withCanvas) == null ? void 0 : st.transitionTimingFunction) ?? ce.transitionTimingFunction,
915
+ transitionDuration: ((lt = (it = (at = t == null ? void 0 : t.screens) == null ? void 0 : at.chat) == null ? void 0 : it.withCanvas) == null ? void 0 : lt.transitionDuration) ?? ce.transitionDuration
850
916
  }
851
917
  }
852
918
  }
853
- }, f = {
919
+ }, x = {
854
920
  // Subtract the offset.bottom twice so that it adds a bit of padding to the top
855
921
  // Subtract the distance between the trigger and the widget content container
856
922
  // Subtract the invisible padding of the trigger (for the wobble effect)
@@ -890,18 +956,18 @@ function G() {
890
956
  };
891
957
  return {
892
958
  theme: p,
893
- computed: f,
894
- cssVars: so({
959
+ computed: x,
960
+ cssVars: po({
895
961
  palette: p.palette,
896
962
  primary: p.primaryColor
897
963
  })
898
964
  };
899
965
  }
900
- function so({
966
+ function po({
901
967
  palette: e,
902
968
  primary: o
903
969
  }) {
904
- const t = $t(e), n = dt(o).toHsl(), s = dt(o).isLight() ? t[950] : t[50];
970
+ const t = qt(e), n = pt(o).toHsl(), s = pt(o).isLight() ? t[950] : t[50];
905
971
  return {
906
972
  "--opencx-primary": `${n.h} ${n.s * 100}% ${n.l * 100}%`,
907
973
  "--opencx-primary-foreground": s,
@@ -920,7 +986,7 @@ function so({
920
986
  "--opencx-ring": "var(--opencx-foreground)"
921
987
  };
922
988
  }
923
- function $t(e) {
989
+ function qt(e) {
924
990
  const o = {
925
991
  50: "0 0% 98%",
926
992
  100: "0 0% 96.1%",
@@ -980,10 +1046,10 @@ function $t(e) {
980
1046
  case "slate":
981
1047
  return s;
982
1048
  default:
983
- return F(e, $t.name), o;
1049
+ return F(e, qt.name), o;
984
1050
  }
985
1051
  }
986
- function Bt() {
1052
+ function Vt() {
987
1053
  const { contentIframeRef: e } = O(), { inline: o } = C();
988
1054
  return {
989
1055
  setWidth: (t) => {
@@ -1002,16 +1068,16 @@ function Bt() {
1002
1068
  }
1003
1069
  };
1004
1070
  }
1005
- function Te({
1071
+ function Me({
1006
1072
  width: e,
1007
1073
  height: o
1008
1074
  }) {
1009
- const { isSmallScreen: t } = $(), { setWidth: n, setHeight: s } = Bt();
1075
+ const { isSmallScreen: t } = $(), { setWidth: n, setHeight: s } = Vt();
1010
1076
  se(() => {
1011
1077
  e && n(e), o && s(o);
1012
1078
  }, [t, o, e, n, s]);
1013
1079
  }
1014
- const gt = ir;
1080
+ const ft = mr;
1015
1081
  function ne({
1016
1082
  name: e,
1017
1083
  className: o
@@ -1019,54 +1085,54 @@ function ne({
1019
1085
  const t = (() => {
1020
1086
  switch (e) {
1021
1087
  case "Check":
1022
- return br;
1088
+ return Nr;
1023
1089
  case "CheckCheck":
1024
- return vr;
1090
+ return zr;
1025
1091
  case "CircleCheck":
1026
- return St;
1092
+ return Mt;
1027
1093
  case "CircleCheckBig":
1028
- return xr;
1094
+ return Cr;
1029
1095
  case "CircleX":
1030
- return fr;
1096
+ return kr;
1031
1097
  case "Expand":
1032
- return wr;
1098
+ return yr;
1033
1099
  case "Maximize":
1034
- return ur;
1100
+ return br;
1035
1101
  case "Maximize2":
1036
- return gr;
1102
+ return vr;
1037
1103
  case "Minimize":
1038
- return mr;
1104
+ return xr;
1039
1105
  case "Minimize2":
1040
- return hr;
1106
+ return fr;
1041
1107
  case "Shrink":
1042
- return pr;
1108
+ return wr;
1043
1109
  case "SquareCheck":
1044
- return dr;
1110
+ return gr;
1045
1111
  case "SquareCheckBig":
1046
- return cr;
1112
+ return ur;
1047
1113
  case "SquareX":
1048
- return lr;
1114
+ return hr;
1049
1115
  case "X":
1050
- return ke;
1116
+ return Ce;
1051
1117
  case void 0:
1052
- return gt;
1118
+ return ft;
1053
1119
  default:
1054
- return F(e, ne.name), gt;
1120
+ return F(e, ne.name), ft;
1055
1121
  }
1056
1122
  })();
1057
- return /* @__PURE__ */ r(t, { className: h("size-4", o) });
1123
+ return /* @__PURE__ */ r(t, { className: m("size-4", o) });
1058
1124
  }
1059
- function ao() {
1125
+ function mo() {
1060
1126
  var t;
1061
1127
  const e = te(), o = (t = e.config.customComponents) == null ? void 0 : t.headerBottom;
1062
1128
  return o ? /* @__PURE__ */ r(o, { ...e }) : null;
1063
1129
  }
1064
- function io({ fallback: e }) {
1130
+ function ho({ fallback: e }) {
1065
1131
  var n;
1066
1132
  const o = te(), t = (n = o.config.customComponents) == null ? void 0 : n.headerTitle;
1067
1133
  return t ? /* @__PURE__ */ r(t, { ...o }) : e;
1068
1134
  }
1069
- function Me() {
1135
+ function De() {
1070
1136
  const {
1071
1137
  widgetCtx: { org: e }
1072
1138
  } = O(), {
@@ -1082,25 +1148,25 @@ function Me() {
1082
1148
  case "welcome":
1083
1149
  return;
1084
1150
  default:
1085
- F(o, Me.name);
1151
+ F(o, De.name);
1086
1152
  return;
1087
1153
  }
1088
1154
  })() ?? e.name ?? "Chat";
1089
1155
  }
1090
- function lo(e) {
1156
+ function uo(e) {
1091
1157
  switch (e) {
1092
1158
  case "chat":
1093
- return w("chat/header");
1159
+ return f("chat/header");
1094
1160
  case "sessions":
1095
- return w("sessions/header");
1161
+ return f("sessions/header");
1096
1162
  case "welcome":
1097
1163
  return;
1098
1164
  default:
1099
- F(e, Me.name);
1165
+ F(e, De.name);
1100
1166
  return;
1101
1167
  }
1102
1168
  }
1103
- function co() {
1169
+ function go() {
1104
1170
  const { router: e } = C(), {
1105
1171
  routerState: { screen: o },
1106
1172
  toSessionsScreen: t
@@ -1112,14 +1178,14 @@ function co() {
1112
1178
  size: "fit",
1113
1179
  className: "rounded-full",
1114
1180
  onClick: t,
1115
- children: /* @__PURE__ */ r(yr, { className: "size-4 rtl:-scale-100" })
1181
+ children: /* @__PURE__ */ r(Sr, { className: "size-4 rtl:-scale-100" })
1116
1182
  }
1117
1183
  );
1118
1184
  }
1119
- function po({
1185
+ function wo({
1120
1186
  button: e
1121
1187
  }) {
1122
- const { setIsOpen: o } = V(), { isSmallScreen: t } = $();
1188
+ const { setIsOpen: o } = G(), { isSmallScreen: t } = $();
1123
1189
  return t && e.hideOnSmallScreen || !t && e.hideOnLargeScreen ? null : /* @__PURE__ */ r(
1124
1190
  N,
1125
1191
  {
@@ -1134,12 +1200,12 @@ function po({
1134
1200
  }
1135
1201
  );
1136
1202
  }
1137
- function ve({
1203
+ function be({
1138
1204
  button: e
1139
1205
  }) {
1140
1206
  const [o, t] = D(!1), {
1141
1207
  routerState: { screen: n }
1142
- } = H(), { isSmallScreen: s } = $(), { theme: i } = G(), { setWidth: a, setHeight: l } = Bt();
1208
+ } = H(), { isSmallScreen: s } = $(), { theme: i } = Z(), { setWidth: a, setHeight: l } = Vt();
1143
1209
  if (n !== "chat" && n !== "sessions") return null;
1144
1210
  const c = (() => {
1145
1211
  switch (n) {
@@ -1148,7 +1214,7 @@ function ve({
1148
1214
  case "sessions":
1149
1215
  return i.screens.sessions.height;
1150
1216
  default:
1151
- return F(n, ve.name), i.screens.chat.height;
1217
+ return F(n, be.name), i.screens.chat.height;
1152
1218
  }
1153
1219
  })(), p = (() => {
1154
1220
  switch (n) {
@@ -1157,12 +1223,12 @@ function ve({
1157
1223
  case "sessions":
1158
1224
  return i.screens.sessions.width;
1159
1225
  default:
1160
- return F(n, ve.name), i.screens.chat.width;
1226
+ return F(n, be.name), i.screens.chat.width;
1161
1227
  }
1162
- })(), f = () => {
1163
- t((x) => {
1164
- const m = !x;
1165
- return l(m ? "100vh" : c), a(m ? `max(40vw, ${p})` : p), m;
1228
+ })(), x = () => {
1229
+ t((v) => {
1230
+ const g = !v;
1231
+ return l(g ? "100vh" : c), a(g ? `max(40vw, ${p})` : p), g;
1166
1232
  });
1167
1233
  };
1168
1234
  return s && e.hideOnSmallScreen || !s && e.hideOnLargeScreen ? null : /* @__PURE__ */ r(
@@ -1171,7 +1237,7 @@ function ve({
1171
1237
  variant: "ghost",
1172
1238
  size: "fit",
1173
1239
  className: "rounded-full",
1174
- onClick: f,
1240
+ onClick: x,
1175
1241
  children: /* @__PURE__ */ r(
1176
1242
  ne,
1177
1243
  {
@@ -1181,13 +1247,13 @@ function ve({
1181
1247
  }
1182
1248
  );
1183
1249
  }
1184
- function Yt({
1250
+ function Gt({
1185
1251
  button: e
1186
1252
  }) {
1187
1253
  var z, _;
1188
- const { close: o } = me(), { widgetCtx: t } = O(), { setIsOpen: n } = V(), { resolveSession: s, sessionState: i } = U(), { isSmallScreen: a } = $(), l = !i.session, c = ((z = i.session) == null ? void 0 : z.isOpened) === !1, p = e.onResolved || "stay-in-chat", f = e.behaviorBeforeSessionCreation || "disabled", x = e.behaviorIfSessionIsResolved || "disabled", m = !!(i.isResolvingSession || l && f === "disabled" || c && x === "disabled"), k = async () => {
1189
- const { success: v, error: R } = await s();
1190
- if (o(), !v) return console.error(R);
1254
+ const { close: o } = he(), { widgetCtx: t } = O(), { setIsOpen: n } = G(), { resolveSession: s, sessionState: i } = U(), { isSmallScreen: a } = $(), l = !i.session, c = ((z = i.session) == null ? void 0 : z.isOpened) === !1, p = e.onResolved || "stay-in-chat", x = e.behaviorBeforeSessionCreation || "disabled", v = e.behaviorIfSessionIsResolved || "disabled", g = !!(i.isResolvingSession || l && x === "disabled" || c && v === "disabled"), u = async () => {
1255
+ const { success: y, error: E } = await s();
1256
+ if (o(), !y) return console.error(E);
1191
1257
  switch (p) {
1192
1258
  case "stay-in-chat":
1193
1259
  return;
@@ -1201,12 +1267,12 @@ function Yt({
1201
1267
  n(!1), t.resetChat();
1202
1268
  break;
1203
1269
  default:
1204
- F(p, Yt.name);
1270
+ F(p, Gt.name);
1205
1271
  break;
1206
1272
  }
1207
1273
  }, b = () => {
1208
1274
  if (l)
1209
- switch (f) {
1275
+ switch (x) {
1210
1276
  case "disabled":
1211
1277
  return;
1212
1278
  case "close-widget":
@@ -1214,12 +1280,12 @@ function Yt({
1214
1280
  break;
1215
1281
  default:
1216
1282
  F(
1217
- f,
1283
+ x,
1218
1284
  b.name
1219
1285
  );
1220
1286
  }
1221
1287
  if (c)
1222
- switch (x) {
1288
+ switch (v) {
1223
1289
  case "disabled":
1224
1290
  return;
1225
1291
  case "close-widget":
@@ -1235,13 +1301,13 @@ function Yt({
1235
1301
  break;
1236
1302
  default:
1237
1303
  F(
1238
- x,
1304
+ v,
1239
1305
  b.name
1240
1306
  );
1241
1307
  }
1242
1308
  };
1243
1309
  return a && e.hideOnSmallScreen || !a && e.hideOnLargeScreen ? null : ((_ = e.confirmation) == null ? void 0 : _.type) === "modal" && !c && !l ? /* @__PURE__ */ r(
1244
- ze,
1310
+ Ne,
1245
1311
  {
1246
1312
  trigger: /* @__PURE__ */ r(
1247
1313
  N,
@@ -1249,14 +1315,14 @@ function Yt({
1249
1315
  variant: "ghost",
1250
1316
  size: "fit",
1251
1317
  className: "rounded-full",
1252
- disabled: m,
1318
+ disabled: g,
1253
1319
  children: /* @__PURE__ */ r(ne, { name: e.icon })
1254
1320
  }
1255
1321
  ),
1256
- children: /* @__PURE__ */ d(Ce, { children: [
1257
- /* @__PURE__ */ r(Rt, { children: /* @__PURE__ */ r(Et, { children: e.confirmation.title || "Close conversation" }) }),
1258
- /* @__PURE__ */ r(jt, { children: /* @__PURE__ */ r(Ot, { children: e.confirmation.description || "Are you sure you want to close this conversation?" }) }),
1259
- /* @__PURE__ */ d(Pt, { children: [
1322
+ children: /* @__PURE__ */ d(ze, { children: [
1323
+ /* @__PURE__ */ r(At, { children: /* @__PURE__ */ r(Wt, { children: e.confirmation.title || "Close conversation" }) }),
1324
+ /* @__PURE__ */ r(Ft, { children: /* @__PURE__ */ r(Lt, { children: e.confirmation.description || "Are you sure you want to close this conversation?" }) }),
1325
+ /* @__PURE__ */ d(Ht, { children: [
1260
1326
  /* @__PURE__ */ r(
1261
1327
  N,
1262
1328
  {
@@ -1270,7 +1336,7 @@ function Yt({
1270
1336
  N,
1271
1337
  {
1272
1338
  variant: "destructive",
1273
- onClick: k,
1339
+ onClick: u,
1274
1340
  disabled: i.isResolvingSession,
1275
1341
  children: e.confirmation.confirmButtonText || "Yes"
1276
1342
  }
@@ -1284,81 +1350,81 @@ function Yt({
1284
1350
  variant: "ghost",
1285
1351
  size: "fit",
1286
1352
  className: "rounded-full",
1287
- onClick: c || l ? b : k,
1288
- disabled: m,
1353
+ onClick: c || l ? b : u,
1354
+ disabled: g,
1289
1355
  children: /* @__PURE__ */ r(ne, { name: e.icon })
1290
1356
  }
1291
1357
  );
1292
1358
  }
1293
- function be({ button: e }) {
1359
+ function ye({ button: e }) {
1294
1360
  switch (e.functionality) {
1295
1361
  case "close-widget":
1296
- return /* @__PURE__ */ r(po, { button: e });
1362
+ return /* @__PURE__ */ r(wo, { button: e });
1297
1363
  case "expand-shrink":
1298
- return /* @__PURE__ */ r(ve, { button: e });
1364
+ return /* @__PURE__ */ r(be, { button: e });
1299
1365
  case "resolve-session":
1300
- return /* @__PURE__ */ r(Yt, { button: e });
1366
+ return /* @__PURE__ */ r(Gt, { button: e });
1301
1367
  default:
1302
- return F(e, be.name), null;
1368
+ return F(e, ye.name), null;
1303
1369
  }
1304
1370
  }
1305
- const ho = {
1371
+ const fo = {
1306
1372
  functionality: "close-widget",
1307
1373
  hideOnLargeScreen: !0,
1308
1374
  icon: "X"
1309
1375
  };
1310
- function mo() {
1376
+ function xo() {
1311
1377
  const {
1312
1378
  routerState: { screen: e }
1313
1379
  } = H(), { headerButtons: o } = C(), t = e === "chat" ? o == null ? void 0 : o.chatScreen : e === "sessions" ? o == null ? void 0 : o.sessionsScreen : [];
1314
- return !t || t.length === 0 ? /* @__PURE__ */ r(be, { button: ho }) : /* @__PURE__ */ r(Q, { children: t.map((n) => /* @__PURE__ */ r(
1315
- be,
1380
+ return !t || t.length === 0 ? /* @__PURE__ */ r(ye, { button: fo }) : /* @__PURE__ */ r(Q, { children: t.map((n) => /* @__PURE__ */ r(
1381
+ ye,
1316
1382
  {
1317
1383
  button: n
1318
1384
  },
1319
1385
  `${n.functionality}-${n.icon}`
1320
1386
  )) });
1321
1387
  }
1322
- function Ut() {
1388
+ function Zt() {
1323
1389
  const {
1324
1390
  routerState: { screen: e }
1325
- } = H(), o = lo(e), t = Me();
1391
+ } = H(), o = uo(e), t = De();
1326
1392
  return /* @__PURE__ */ d("header", { ...o, className: "py-2 px-4 shrink-0", children: [
1327
1393
  /* @__PURE__ */ d("div", { className: "flex items-center gap-2", children: [
1328
- /* @__PURE__ */ r(co, {}),
1394
+ /* @__PURE__ */ r(go, {}),
1329
1395
  /* @__PURE__ */ r(
1330
1396
  "div",
1331
1397
  {
1332
- className: h(
1398
+ className: m(
1333
1399
  "flex-1 h-8 flex items-center",
1334
1400
  e === "sessions" && "ps-2"
1335
1401
  ),
1336
1402
  children: /* @__PURE__ */ r(
1337
- io,
1403
+ ho,
1338
1404
  {
1339
1405
  fallback: /* @__PURE__ */ r("h2", { className: "font-semibold", children: t })
1340
1406
  }
1341
1407
  )
1342
1408
  }
1343
1409
  ),
1344
- /* @__PURE__ */ r(mo, {})
1410
+ /* @__PURE__ */ r(xo, {})
1345
1411
  ] }),
1346
- /* @__PURE__ */ r(ao, {})
1412
+ /* @__PURE__ */ r(mo, {})
1347
1413
  ] });
1348
1414
  }
1349
- function Xt({ className: e }) {
1350
- return /* @__PURE__ */ r(kr, { className: h("size-4 animate-spin", e) });
1415
+ function Kt({ className: e }) {
1416
+ return /* @__PURE__ */ r(_r, { className: m("size-4 animate-spin", e) });
1351
1417
  }
1352
- function go() {
1418
+ function vo() {
1353
1419
  const {
1354
1420
  messagesState: { isInitialFetchLoading: e }
1355
- } = A(), { isSmallScreen: o } = $(), { activeMode: t, Component: n } = yt();
1421
+ } = A(), { isSmallScreen: o } = $(), { activeMode: t, Component: n } = zt();
1356
1422
  return {
1357
1423
  isCanvasOpen: !e && !o && !!t && !!n
1358
1424
  };
1359
1425
  }
1360
- function uo() {
1361
- const e = te(), { activeMode: o, Component: t } = yt(), { sendMessage: n } = A(), { createStateCheckpoint: s } = U(), [i, a] = D(!1), l = async (c) => {
1426
+ function bo() {
1427
+ const e = te(), { activeMode: o, Component: t } = zt(), { sendMessage: n } = A(), { createStateCheckpoint: s } = U(), [i, a] = D(!1), l = async (c) => {
1362
1428
  try {
1363
1429
  a(!0), await n(c);
1364
1430
  } catch (p) {
@@ -1378,15 +1444,27 @@ function uo() {
1378
1444
  }
1379
1445
  );
1380
1446
  }
1447
+ function q() {
1448
+ const { dir: e } = ke(), o = C();
1449
+ return Ct(() => {
1450
+ const t = Br(o.language) ? o.language : "en";
1451
+ return {
1452
+ t: (n) => Yr(n, t, o.translationOverrides),
1453
+ language: t,
1454
+ dir: t === "ar" ? "rtl" : "ltr",
1455
+ hostDocumentDir: e
1456
+ };
1457
+ }, [o.language, e]);
1458
+ }
1381
1459
  const W = L.forwardRef(
1382
1460
  (e, o) => {
1383
1461
  var t, n, s;
1384
1462
  return /* @__PURE__ */ r(
1385
- y,
1463
+ k,
1386
1464
  {
1387
1465
  ...e,
1388
1466
  ref: o,
1389
- className: h("overflow-hidden", e.className),
1467
+ className: m("overflow-hidden", e.className),
1390
1468
  overrides: {
1391
1469
  initial: { height: 0, opacity: 0, ...(t = e.overrides) == null ? void 0 : t.initial },
1392
1470
  animate: { height: "auto", opacity: 1, ...(n = e.overrides) == null ? void 0 : n.animate },
@@ -1397,7 +1475,7 @@ const W = L.forwardRef(
1397
1475
  }
1398
1476
  );
1399
1477
  W.displayName = "MotionDiv__VerticalReveal";
1400
- const wo = [
1478
+ const yo = [
1401
1479
  {
1402
1480
  label: "Terrible",
1403
1481
  value: 1,
@@ -1424,59 +1502,60 @@ const wo = [
1424
1502
  emoji: "😍"
1425
1503
  }
1426
1504
  ];
1427
- function fo() {
1428
- const { isSmallScreen: e } = $(), {
1429
- submitCsat: o,
1430
- isCsatRequested: t,
1431
- isCsatSubmitted: n,
1432
- submittedScore: s,
1433
- submittedFeedback: i
1434
- } = kt(), [a, l] = D(null), [c, p] = D(null), f = (m) => {
1435
- l((k) => k === m ? null : m);
1436
- }, x = () => {
1437
- a && o({
1438
- score: a,
1439
- feedback: c || void 0
1505
+ function ko() {
1506
+ const { isSmallScreen: e } = $(), { t: o } = q(), {
1507
+ submitCsat: t,
1508
+ isCsatRequested: n,
1509
+ isCsatSubmitted: s,
1510
+ submittedScore: i,
1511
+ submittedFeedback: a
1512
+ } = Nt(), [l, c] = D(null), [p, x] = D(null), v = (u) => {
1513
+ c((b) => b === u ? null : u);
1514
+ }, g = () => {
1515
+ l && t({
1516
+ score: l,
1517
+ feedback: p || void 0
1440
1518
  });
1441
1519
  };
1442
- return !t && !n ? null : /* @__PURE__ */ d("div", { className: "w-1/2 min-w-80 max-w-96 mx-auto overflow-hidden", children: [
1443
- /* @__PURE__ */ r(T, { mode: "wait", children: t && !a ? /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r("p", { className: "text-sm text-muted-foreground text-center pt-2", children: "How was your conversation?" }) }, "csat-requested-title") : n ? /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r("p", { className: "text-sm text-muted-foreground text-center pt-2", children: "You rated the conversation as" }) }, "csat-submitted-title") : null }),
1520
+ return !n && !s ? null : /* @__PURE__ */ d("div", { className: "w-1/2 min-w-80 max-w-96 mx-auto overflow-hidden", children: [
1521
+ /* @__PURE__ */ r(T, { 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 }),
1444
1522
  /* @__PURE__ */ r(
1445
1523
  "div",
1446
1524
  {
1447
- className: h(
1525
+ dir: "ltr",
1526
+ className: m(
1448
1527
  "flex gap-4 justify-between pt-2 px-2 pb-2",
1449
1528
  "transition-all",
1450
- n && "gap-0 justify-center"
1529
+ s && "gap-0 justify-center"
1451
1530
  ),
1452
- children: wo.map((m) => /* @__PURE__ */ r(
1531
+ children: yo.map((u) => /* @__PURE__ */ r(
1453
1532
  N,
1454
1533
  {
1455
- variant: m.value === a ? "secondary" : "ghost",
1534
+ variant: u.value === l ? "secondary" : "ghost",
1456
1535
  size: "selfless",
1457
- className: h(
1536
+ className: m(
1458
1537
  "transition-all overflow-hidden",
1459
1538
  "text-2xl size-8 rounded-full",
1460
1539
  "opacity-35",
1461
1540
  "hover:opacity-100",
1462
- !a && "opacity-100",
1463
- m.value === a && "opacity-100",
1464
- n && m.value !== s && "opacity-0 size-0",
1465
- n && m.value === s && "opacity-100 size-fit text-4xl"
1541
+ !l && "opacity-100",
1542
+ u.value === l && "opacity-100",
1543
+ s && u.value !== i && "opacity-0 size-0",
1544
+ s && u.value === i && "opacity-100 size-fit text-4xl"
1466
1545
  ),
1467
- onClick: t ? () => f(m.value) : void 0,
1468
- children: m.emoji
1546
+ onClick: n ? () => v(u.value) : void 0,
1547
+ children: u.emoji
1469
1548
  },
1470
- m.value
1549
+ u.value
1471
1550
  ))
1472
1551
  }
1473
1552
  ),
1474
- /* @__PURE__ */ r(T, { mode: "wait", children: (a || s) && /* @__PURE__ */ r(W, { children: /* @__PURE__ */ d("div", { className: "pb-2 px-2 flex items-end", children: [
1553
+ /* @__PURE__ */ r(T, { mode: "wait", children: (l || i) && /* @__PURE__ */ r(W, { children: /* @__PURE__ */ d("div", { className: "pb-2 px-2 flex items-end", children: [
1475
1554
  /* @__PURE__ */ r(
1476
1555
  "textarea",
1477
1556
  {
1478
1557
  rows: 3,
1479
- className: h(
1558
+ className: m(
1480
1559
  "transition-all",
1481
1560
  "max-h-40 [field-sizing:content]",
1482
1561
  "w-full resize-none",
@@ -1484,45 +1563,38 @@ function fo() {
1484
1563
  "placeholder:text-muted-foreground",
1485
1564
  // 16px on mobiles prevents auto-zoom on the input when focused
1486
1565
  e ? "text-[16px]" : "text-sm",
1487
- n && "text-center"
1566
+ s && "text-center"
1488
1567
  ),
1489
- value: n ? i || "" : c || "",
1490
- onChange: t ? (m) => p(m.target.value) : void 0,
1491
- readOnly: n,
1492
- placeholder: t ? "Tell us more... (optional)" : void 0
1568
+ value: s ? a || "" : p || "",
1569
+ onChange: n ? (u) => x(u.target.value) : void 0,
1570
+ readOnly: s,
1571
+ placeholder: n ? o("csat_feedback_placeholder") : void 0
1493
1572
  }
1494
1573
  ),
1495
1574
  /* @__PURE__ */ r(
1496
1575
  N,
1497
1576
  {
1498
1577
  size: "fit",
1499
- onClick: x,
1500
- disabled: !a,
1501
- className: h(
1578
+ onClick: g,
1579
+ disabled: !l,
1580
+ className: m(
1502
1581
  "transition-all overflow-hidden",
1503
1582
  "rounded-full size-8 flex items-center justify-center p-0",
1504
- n && "opacity-0 size-0"
1583
+ s && "opacity-0 size-0"
1505
1584
  ),
1506
- children: /* @__PURE__ */ r(_t, { className: "size-4" })
1585
+ children: /* @__PURE__ */ r(Dt, { className: "size-4" })
1507
1586
  }
1508
1587
  )
1509
1588
  ] }) }, "feedback-box") }),
1510
- /* @__PURE__ */ r("div", { className: h("h-0 transition-[height]", n && "h-4") })
1589
+ /* @__PURE__ */ r(
1590
+ "div",
1591
+ {
1592
+ className: m("h-0 transition-[height]", s && "h-4")
1593
+ }
1594
+ )
1511
1595
  ] });
1512
1596
  }
1513
- function Z() {
1514
- const { dir: e } = ye(), o = C();
1515
- return bt(() => {
1516
- const t = Fr(o.language) ? o.language : "en";
1517
- return {
1518
- t: (n) => Hr(n, t, o.translationOverrides),
1519
- language: t,
1520
- dir: t === "ar" ? "rtl" : "ltr",
1521
- hostDocumentDir: e
1522
- };
1523
- }, [o.language, e]);
1524
- }
1525
- function De({
1597
+ function Ee({
1526
1598
  suggestion: e,
1527
1599
  className: o,
1528
1600
  ...t
@@ -1534,24 +1606,24 @@ function De({
1534
1606
  return /* @__PURE__ */ r(
1535
1607
  N,
1536
1608
  {
1537
- ...w("chat/suggested_reply_btn"),
1609
+ ...f("chat/suggested_reply_btn"),
1538
1610
  size: "sm",
1539
- className: h("rounded-xl w-fit", o),
1611
+ className: m("rounded-xl w-fit", o),
1540
1612
  ...t,
1541
1613
  onClick: s,
1542
1614
  children: e
1543
1615
  }
1544
1616
  );
1545
1617
  }
1546
- function xo() {
1547
- const { t: e } = Z(), o = [e("i_need_more_help"), e("this_was_helpful")];
1618
+ function Co() {
1619
+ const { t: e } = q(), o = [e("i_need_more_help"), e("this_was_helpful")];
1548
1620
  return /* @__PURE__ */ r(
1549
1621
  "div",
1550
1622
  {
1551
- ...w("chat/might_solve_user_issue_suggested_replies_container"),
1623
+ ...f("chat/might_solve_user_issue_suggested_replies_container"),
1552
1624
  className: "flex items-center gap-2 p-2 pb-0 flex-wrap",
1553
1625
  children: o.map((t) => /* @__PURE__ */ r(
1554
- De,
1626
+ Ee,
1555
1627
  {
1556
1628
  suggestion: t,
1557
1629
  className: "flex-1"
@@ -1561,11 +1633,11 @@ function xo() {
1561
1633
  }
1562
1634
  );
1563
1635
  }
1564
- function ut() {
1636
+ function xt() {
1565
1637
  const { sessionState: e } = U(), { chatFooterItems: o } = C(), t = !!e.session && !e.session.isOpened, n = !t;
1566
- return /* @__PURE__ */ r(T, { mode: "wait", children: o == null ? void 0 : o.map((s, 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(Ne, { children: s.message }) }) }, `${s.message}-${i}`)) });
1638
+ return /* @__PURE__ */ r(T, { 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}`)) });
1567
1639
  }
1568
- function vo({
1640
+ function zo({
1569
1641
  file: { status: e, file: o, error: t },
1570
1642
  onCancel: n
1571
1643
  }) {
@@ -1580,9 +1652,9 @@ function vo({
1580
1652
  const a = () => {
1581
1653
  switch (e) {
1582
1654
  case "uploading":
1583
- return /* @__PURE__ */ r(Nr, { className: "size-4 animate-spin" });
1655
+ return /* @__PURE__ */ r(Mr, { className: "size-4 animate-spin" });
1584
1656
  case "error":
1585
- return /* @__PURE__ */ r(zr, { className: "size-4 text-destructive" });
1657
+ return /* @__PURE__ */ r(Tr, { className: "size-4 text-destructive" });
1586
1658
  default:
1587
1659
  return null;
1588
1660
  }
@@ -1595,7 +1667,7 @@ function vo({
1595
1667
  className: "object-cover bg-secondary size-full",
1596
1668
  alt: o.name
1597
1669
  }
1598
- ) : c === "audio" ? /* @__PURE__ */ r(Sr, { className: "size-4 text-muted-foreground" }) : c === "video" ? /* @__PURE__ */ r(_r, { className: "size-4 text-muted-foreground" }) : o.type === "application/pdf" ? /* @__PURE__ */ r(Nt, { className: "size-4 text-muted-foreground" }) : /* @__PURE__ */ r(Ir, { className: "size-4 text-muted-foreground" });
1670
+ ) : c === "audio" ? /* @__PURE__ */ r(Dr, { className: "size-4 text-muted-foreground" }) : c === "video" ? /* @__PURE__ */ r(Er, { className: "size-4 text-muted-foreground" }) : o.type === "application/pdf" ? /* @__PURE__ */ r(It, { className: "size-4 text-muted-foreground" }) : jt({ type: o.type, name: o.name }) ? /* @__PURE__ */ r(Tt, { className: "size-4 text-muted-foreground" }) : /* @__PURE__ */ r(Rr, { className: "size-4 text-muted-foreground" });
1599
1671
  };
1600
1672
  return /* @__PURE__ */ r(
1601
1673
  oe,
@@ -1608,7 +1680,7 @@ function vo({
1608
1680
  children: /* @__PURE__ */ d(
1609
1681
  "div",
1610
1682
  {
1611
- className: h(
1683
+ className: m(
1612
1684
  e === "uploading" && "opacity-50",
1613
1685
  "group",
1614
1686
  "size-12 border rounded-2xl overflow-hidden relative",
@@ -1620,13 +1692,13 @@ function vo({
1620
1692
  "button",
1621
1693
  {
1622
1694
  type: "button",
1623
- className: h(
1695
+ className: m(
1624
1696
  "absolute bg-black/50 inset-0 size-full z-10 opacity-0",
1625
1697
  "flex items-center justify-center",
1626
1698
  "opacity-0 group-hover:opacity-100 transition"
1627
1699
  ),
1628
1700
  onClick: n,
1629
- children: /* @__PURE__ */ r(ke, { className: "size-4 text-primary-foreground" })
1701
+ children: /* @__PURE__ */ r(Ce, { className: "size-4 text-primary-foreground" })
1630
1702
  }
1631
1703
  ),
1632
1704
  /* @__PURE__ */ r(l, {})
@@ -1636,24 +1708,24 @@ function vo({
1636
1708
  }
1637
1709
  );
1638
1710
  }
1639
- function bo() {
1711
+ function No() {
1640
1712
  var M;
1641
- const { isSmallScreen: e } = $(), o = B(null), { sendMessage: t } = A(), { sessionState: n } = U(), { disableSendingWhenAwaitingAIReply: s } = C(), { t: i } = Z(), [a, l] = D(""), {
1713
+ const { isSmallScreen: e } = $(), o = B(null), { sendMessage: t } = A(), { sessionState: n } = U(), { disableSendingWhenAwaitingAIReply: s } = C(), { t: i } = q(), [a, l] = D(""), {
1642
1714
  allFiles: c,
1643
1715
  emptyTheFiles: p,
1644
- handleCancelUpload: f,
1645
- appendFiles: x,
1646
- isUploading: m,
1647
- successFiles: k
1648
- } = er(), b = !!((M = n.session) != null && M.isHandedOff), { isAwaitingBotReply: z } = Ct(), _ = s !== !1 && z, v = (g) => {
1649
- x(g);
1650
- }, R = !a.trim() && k.length === 0, P = async () => {
1651
- if (_ || R) return;
1652
- m && console.info("please wait for the file(s) to upload");
1653
- const g = a.trim();
1716
+ handleCancelUpload: x,
1717
+ appendFiles: v,
1718
+ isUploading: g,
1719
+ successFiles: u
1720
+ } = sr(), b = !!((M = n.session) != null && M.isHandedOff), { isAwaitingBotReply: z } = St(), _ = s !== !1 && z, y = (h) => {
1721
+ v(h);
1722
+ }, E = !a.trim() && u.length === 0, P = async () => {
1723
+ if (_ || E) return;
1724
+ g && console.info("please wait for the file(s) to upload");
1725
+ const h = a.trim();
1654
1726
  t({
1655
- content: g,
1656
- attachments: k.flatMap(
1727
+ content: h,
1728
+ attachments: u.flatMap(
1657
1729
  (S) => S.fileUrl ? [
1658
1730
  {
1659
1731
  url: S.fileUrl,
@@ -1666,11 +1738,11 @@ function bo() {
1666
1738
  )
1667
1739
  }), l(""), p();
1668
1740
  }, {
1669
- getRootProps: E,
1670
- getInputProps: u,
1741
+ getRootProps: j,
1742
+ getInputProps: w,
1671
1743
  open: I
1672
- } = Wr({
1673
- onDrop: v,
1744
+ } = Ur({
1745
+ onDrop: y,
1674
1746
  noClick: !0,
1675
1747
  onDropRejected() {
1676
1748
  console.error("unsupported file type, or the file is too large");
@@ -1679,31 +1751,33 @@ function bo() {
1679
1751
  accept: b ? {
1680
1752
  "text/*": [".txt"],
1681
1753
  "image/*": [".png", ".jpg", ".jpeg", ".gif"],
1682
- "application/pdf": [".pdf"]
1754
+ "application/pdf": [".pdf"],
1755
+ ...mt
1683
1756
  } : {
1684
1757
  "image/png": [".png"],
1685
1758
  "image/jpeg": [".jpg", ".jpeg"],
1686
1759
  "image/gif": [".gif"],
1687
1760
  "image/webp": [".webp"],
1688
- "application/pdf": [".pdf"]
1761
+ "application/pdf": [".pdf"],
1762
+ ...mt
1689
1763
  }
1690
- }), j = (g) => {
1691
- const S = g.clipboardData;
1692
- S && S.files.length > 0 && v(Array.from(S.files));
1764
+ }), R = (h) => {
1765
+ const S = h.clipboardData;
1766
+ S && S.files.length > 0 && y(Array.from(S.files));
1693
1767
  };
1694
1768
  return /* @__PURE__ */ d(
1695
1769
  "div",
1696
1770
  {
1697
- ...w("chat/input_box/root"),
1771
+ ...f("chat/input_box/root"),
1698
1772
  className: "p-2 relative space-y-1",
1699
- ...E(),
1773
+ ...j(),
1700
1774
  children: [
1701
- /* @__PURE__ */ r("input", { ...u() }),
1775
+ /* @__PURE__ */ r("input", { ...w() }),
1702
1776
  /* @__PURE__ */ d(
1703
1777
  "div",
1704
1778
  {
1705
- ...w("chat/input_box/inner_root"),
1706
- className: h(
1779
+ ...f("chat/input_box/inner_root"),
1780
+ className: m(
1707
1781
  "transition-all",
1708
1782
  "bg-white",
1709
1783
  // 'border',
@@ -1714,33 +1788,33 @@ function bo() {
1714
1788
  /* @__PURE__ */ d(
1715
1789
  "div",
1716
1790
  {
1717
- ...w("chat/input_box/textarea_and_attachments_container"),
1791
+ ...f("chat/input_box/textarea_and_attachments_container"),
1718
1792
  className: "flex flex-col gap-2",
1719
1793
  children: [
1720
1794
  c.length > 0 && /* @__PURE__ */ r(
1721
1795
  "div",
1722
1796
  {
1723
- ...w("chat/input_box/attachments_container"),
1797
+ ...f("chat/input_box/attachments_container"),
1724
1798
  className: "flex items-center gap-1",
1725
- children: /* @__PURE__ */ r(T, { mode: "popLayout", children: c.map((g) => /* @__PURE__ */ r(y, { snapExit: !0, children: /* @__PURE__ */ r(
1726
- vo,
1799
+ children: /* @__PURE__ */ r(T, { mode: "popLayout", children: c.map((h) => /* @__PURE__ */ r(k, { snapExit: !0, children: /* @__PURE__ */ r(
1800
+ zo,
1727
1801
  {
1728
- onCancel: () => f(g.id),
1729
- file: g
1802
+ onCancel: () => x(h.id),
1803
+ file: h
1730
1804
  }
1731
- ) }, g.id)) })
1805
+ ) }, h.id)) })
1732
1806
  }
1733
1807
  ),
1734
1808
  /* @__PURE__ */ r(
1735
1809
  "textarea",
1736
1810
  {
1737
- ...w("chat/input_box/textarea"),
1738
- onPaste: j,
1811
+ ...f("chat/input_box/textarea"),
1812
+ onPaste: R,
1739
1813
  ref: o,
1740
1814
  id: "chat-input",
1741
1815
  value: a,
1742
1816
  rows: 3,
1743
- className: h(
1817
+ className: m(
1744
1818
  /** Match the border radius of the container */
1745
1819
  // INPUT_CONTAINER_B_RADIUS,
1746
1820
  "max-h-16 [field-sizing:content]",
@@ -1751,9 +1825,9 @@ function bo() {
1751
1825
  // 16px on mobiles prevents auto-zoom on the input when focused
1752
1826
  e ? "text-[16px]" : "text-sm"
1753
1827
  ),
1754
- onChange: (g) => l(g.target.value),
1755
- onKeyDown: async (g) => {
1756
- g.key === "Enter" && !g.shiftKey && (g.preventDefault(), P());
1828
+ onChange: (h) => l(h.target.value),
1829
+ onKeyDown: async (h) => {
1830
+ h.key === "Enter" && !h.shiftKey && (h.preventDefault(), P());
1757
1831
  },
1758
1832
  placeholder: i("write_a_message_placeholder")
1759
1833
  }
@@ -1767,17 +1841,17 @@ function bo() {
1767
1841
  {
1768
1842
  side: "top",
1769
1843
  align: "start",
1770
- content: "attach images or PDF (maximum size 5mb)",
1844
+ content: "attach images, PDFs, or spreadsheets (maximum size 5mb)",
1771
1845
  children: /* @__PURE__ */ r(
1772
1846
  N,
1773
1847
  {
1774
1848
  onClick: I,
1775
1849
  size: "fit",
1776
1850
  variant: "ghost",
1777
- className: h(
1851
+ className: m(
1778
1852
  "rounded-full size-8 flex items-center justify-center p-0 overflow-hidden"
1779
1853
  ),
1780
- children: /* @__PURE__ */ r(T, { mode: "wait", children: _ ? /* @__PURE__ */ r(y, { children: /* @__PURE__ */ r(ct, { className: "size-4 opacity-50" }) }, "paper-clip-disabled") : /* @__PURE__ */ r(y, { children: /* @__PURE__ */ r(ct, { className: "size-4" }) }, "paper-clip") })
1854
+ children: /* @__PURE__ */ r(T, { mode: "wait", children: _ ? /* @__PURE__ */ r(k, { children: /* @__PURE__ */ r(dt, { className: "size-4 opacity-50" }) }, "paper-clip-disabled") : /* @__PURE__ */ r(k, { children: /* @__PURE__ */ r(dt, { className: "size-4" }) }, "paper-clip") })
1781
1855
  }
1782
1856
  )
1783
1857
  }
@@ -1787,9 +1861,9 @@ function bo() {
1787
1861
  {
1788
1862
  size: "fit",
1789
1863
  onClick: P,
1790
- disabled: _ || m || R,
1864
+ disabled: _ || g || E,
1791
1865
  className: "rounded-full size-8 flex items-center justify-center p-0",
1792
- children: /* @__PURE__ */ r(T, { mode: "wait", children: _ || m ? /* @__PURE__ */ r(y, { snapExit: !0, children: /* @__PURE__ */ r(Cr, { className: "size-4 animate-spin animate-iteration-infinite" }) }, "loading") : /* @__PURE__ */ r(y, { snapExit: !0, children: /* @__PURE__ */ r(_t, { className: "size-4" }) }, "send") })
1866
+ children: /* @__PURE__ */ r(T, { mode: "wait", children: _ || g ? /* @__PURE__ */ r(k, { snapExit: !0, children: /* @__PURE__ */ r(Ir, { className: "size-4 animate-spin animate-iteration-infinite" }) }, "loading") : /* @__PURE__ */ r(k, { snapExit: !0, children: /* @__PURE__ */ r(Dt, { className: "size-4" }) }, "send") })
1793
1867
  }
1794
1868
  ) })
1795
1869
  ] })
@@ -1800,43 +1874,43 @@ function bo() {
1800
1874
  }
1801
1875
  );
1802
1876
  }
1803
- function wt() {
1804
- const { widgetCtx: e } = O(), { router: o } = C(), { canCreateNewSession: t } = U(), { toSessionsScreen: n } = H(), { t: s } = Z();
1877
+ function vt() {
1878
+ const { widgetCtx: e } = O(), { router: o } = C(), { canCreateNewSession: t } = U(), { toSessionsScreen: n } = H(), { t: s } = q();
1805
1879
  return /* @__PURE__ */ r(Q, { children: t || o != null && o.chatScreenOnly ? /* @__PURE__ */ r(N, { onClick: e.resetChat, className: "rounded-2xl w-full", children: s("new_conversation") }) : /* @__PURE__ */ r(N, { onClick: n, className: "rounded-2xl w-full", children: s("back_to_conversations") }) });
1806
1880
  }
1807
- function yo() {
1808
- const { t: e } = Z(), { isCsatRequested: o, isCsatSubmitted: t } = kt();
1881
+ function So() {
1882
+ const { t: e } = q(), { isCsatRequested: o, isCsatSubmitted: t } = Nt();
1809
1883
  return /* @__PURE__ */ r("div", { className: "p-2", children: /* @__PURE__ */ r("div", { className: "p-2 bg-muted rounded-3xl", children: /* @__PURE__ */ r(T, { mode: "wait", children: o || t ? /* @__PURE__ */ d(W, { children: [
1810
- /* @__PURE__ */ r(fo, {}),
1811
- /* @__PURE__ */ r(T, { mode: "wait", children: t && /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r(wt, {}) }, "new-conv-or-back-to-convs-button") })
1884
+ /* @__PURE__ */ r(ko, {}),
1885
+ /* @__PURE__ */ r(T, { mode: "wait", children: t && /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r(vt, {}) }, "new-conv-or-back-to-convs-button") })
1812
1886
  ] }, "csat") : /* @__PURE__ */ d(W, { children: [
1813
1887
  /* @__PURE__ */ d("div", { className: "ps-2 flex items-center gap-1 pb-2", children: [
1814
- /* @__PURE__ */ r(St, { className: "size-4 text-emerald-600" }),
1888
+ /* @__PURE__ */ r(Mt, { className: "size-4 text-emerald-600" }),
1815
1889
  /* @__PURE__ */ r("h2", { className: "text-sm font-medium", children: e("your_issue_has_been_resolved") })
1816
1890
  ] }),
1817
- /* @__PURE__ */ r(wt, {})
1891
+ /* @__PURE__ */ r(vt, {})
1818
1892
  ] }, "session-closed") }) }) });
1819
1893
  }
1820
- function ko() {
1894
+ function _o() {
1821
1895
  var a;
1822
1896
  const { initialQuestions: e, initialQuestionsPosition: o, thisWasHelpfulOrNot: t } = C(), { sessionState: n } = U(), { messagesState: s } = A(), i = s.messages.length === 0;
1823
1897
  return /* @__PURE__ */ r("footer", { children: /* @__PURE__ */ r(T, { mode: "wait", children: n.session && !((a = n.session) != null && a.isOpened) ? /* @__PURE__ */ d(W, { children: [
1824
- /* @__PURE__ */ r(yo, {}),
1825
- /* @__PURE__ */ r(ut, {})
1898
+ /* @__PURE__ */ r(So, {}),
1899
+ /* @__PURE__ */ r(xt, {})
1826
1900
  ] }, "session-closed") : /* @__PURE__ */ d(W, { children: [
1827
- s.lastAIResMightSolveUserIssue && (t == null ? void 0 : t.enabled) !== !1 && /* @__PURE__ */ r(xo, {}),
1901
+ s.lastAIResMightSolveUserIssue && (t == null ? void 0 : t.enabled) !== !1 && /* @__PURE__ */ r(Co, {}),
1828
1902
  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(
1829
- De,
1903
+ Ee,
1830
1904
  {
1831
1905
  suggestion: l
1832
1906
  },
1833
1907
  `${l}-${c}`
1834
1908
  )) }),
1835
- /* @__PURE__ */ r(bo, {}),
1836
- /* @__PURE__ */ r(ut, {})
1909
+ /* @__PURE__ */ r(No, {}),
1910
+ /* @__PURE__ */ r(xt, {})
1837
1911
  ] }, "chat-input") }) });
1838
1912
  }
1839
- function Co({
1913
+ function Io({
1840
1914
  isFirstInGroup: e,
1841
1915
  isLastInGroup: o,
1842
1916
  isAloneInGroup: t,
@@ -1869,7 +1943,7 @@ function Co({
1869
1943
  isAloneInGroup: t
1870
1944
  }
1871
1945
  ) : /* @__PURE__ */ r(
1872
- fe,
1946
+ xe,
1873
1947
  {
1874
1948
  ...n,
1875
1949
  isFirstInGroup: e,
@@ -1878,7 +1952,7 @@ function Co({
1878
1952
  }
1879
1953
  );
1880
1954
  }
1881
- function qt({
1955
+ function Qt({
1882
1956
  messages: e,
1883
1957
  className: o,
1884
1958
  containerClassName: t
@@ -1900,7 +1974,7 @@ function qt({
1900
1974
  return console.error(c), null;
1901
1975
  }
1902
1976
  })();
1903
- return i ? /* @__PURE__ */ r("div", { className: t, children: /* @__PURE__ */ r("span", { className: h("text-xs text-muted-foreground", o), children: i }) }) : null;
1977
+ return i ? /* @__PURE__ */ r("div", { className: t, children: /* @__PURE__ */ r("span", { className: m("text-xs text-muted-foreground", o), children: i }) }) : null;
1904
1978
  }
1905
1979
  function pe({
1906
1980
  messages: e,
@@ -1910,39 +1984,39 @@ function pe({
1910
1984
  return /* @__PURE__ */ d(
1911
1985
  "div",
1912
1986
  {
1913
- ...w("chat/agent_msg_group/root"),
1914
- className: h("flex items-end gap-2"),
1987
+ ...f("chat/agent_msg_group/root"),
1988
+ className: m("flex items-end gap-2"),
1915
1989
  children: [
1916
1990
  /* @__PURE__ */ r(oe, { content: o == null ? void 0 : o.name, side: "right", align: "end", children: /* @__PURE__ */ r(
1917
- xe,
1991
+ ve,
1918
1992
  {
1919
- ...w("chat/agent_msg_group/root/avatar"),
1993
+ ...f("chat/agent_msg_group/root/avatar"),
1920
1994
  agent: o,
1921
1995
  className: "hidden"
1922
1996
  }
1923
1997
  ) }),
1924
- /* @__PURE__ */ d("div", { className: h("flex-1 flex flex-col gap-1"), children: [
1998
+ /* @__PURE__ */ d("div", { className: m("flex-1 flex flex-col gap-1"), children: [
1925
1999
  /* @__PURE__ */ d(
1926
2000
  "div",
1927
2001
  {
1928
- ...w("chat/agent_msg_group/avatar_and_msgs/root"),
1929
- className: h("flex items-end gap-2"),
2002
+ ...f("chat/agent_msg_group/avatar_and_msgs/root"),
2003
+ className: m("flex items-end gap-2"),
1930
2004
  children: [
1931
2005
  /* @__PURE__ */ r(oe, { content: o == null ? void 0 : o.name, side: "right", align: "end", children: /* @__PURE__ */ r(
1932
- xe,
2006
+ ve,
1933
2007
  {
1934
- ...w("chat/agent_msg_group/avatar_and_msgs/avatar"),
2008
+ ...f("chat/agent_msg_group/avatar_and_msgs/avatar"),
1935
2009
  agent: o
1936
2010
  }
1937
2011
  ) }),
1938
2012
  /* @__PURE__ */ d(
1939
2013
  "div",
1940
2014
  {
1941
- ...w("chat/agent_msg_group/avatar_and_msgs/msgs"),
1942
- className: h("flex-1 flex flex-col gap-1"),
2015
+ ...f("chat/agent_msg_group/avatar_and_msgs/msgs"),
2016
+ className: m("flex-1 flex flex-col gap-1"),
1943
2017
  children: [
1944
2018
  e.map((n, s, i) => /* @__PURE__ */ r(
1945
- Co,
2019
+ Io,
1946
2020
  {
1947
2021
  isFirstInGroup: s === 0,
1948
2022
  isLastInGroup: s === i.length - 1,
@@ -1951,7 +2025,7 @@ function pe({
1951
2025
  },
1952
2026
  n.id
1953
2027
  )),
1954
- /* @__PURE__ */ r(qt, { messages: e })
2028
+ /* @__PURE__ */ r(Qt, { messages: e })
1955
2029
  ]
1956
2030
  }
1957
2031
  )
@@ -1961,10 +2035,10 @@ function pe({
1961
2035
  t && t.length > 0 && /* @__PURE__ */ r(
1962
2036
  "div",
1963
2037
  {
1964
- ...w("chat/agent_msg_group/suggestions"),
1965
- className: h("flex flex-col gap-1 ps-8"),
2038
+ ...f("chat/agent_msg_group/suggestions"),
2039
+ className: m("flex flex-col gap-1 ps-8"),
1966
2040
  children: t == null ? void 0 : t.map((n, s) => /* @__PURE__ */ r(
1967
- De,
2041
+ Ee,
1968
2042
  {
1969
2043
  suggestion: n
1970
2044
  },
@@ -1977,14 +2051,14 @@ function pe({
1977
2051
  }
1978
2052
  );
1979
2053
  }
1980
- function zo() {
2054
+ function To() {
1981
2055
  var t, n;
1982
2056
  const e = te();
1983
2057
  if ((t = e.session) != null && t.isOpened || !e.session) return null;
1984
2058
  const o = (n = e.config.customComponents) == null ? void 0 : n.onSessionResolved;
1985
2059
  return o ? /* @__PURE__ */ r(o, { ...e }) : null;
1986
2060
  }
1987
- function No({
2061
+ function Mo({
1988
2062
  message: e,
1989
2063
  isFirstInGroup: o,
1990
2064
  isLastInGroup: t,
@@ -1994,18 +2068,18 @@ function No({
1994
2068
  return /* @__PURE__ */ d(
1995
2069
  "div",
1996
2070
  {
1997
- ...w("chat/user_msg/root"),
2071
+ ...f("chat/user_msg/root"),
1998
2072
  className: "w-5/6 flex flex-col items-end gap-1",
1999
2073
  children: [
2000
- e.attachments && e.attachments.length > 0 && /* @__PURE__ */ r("div", { className: "w-full flex gap-1 flex-wrap justify-end", children: (s = e.attachments) == null ? void 0 : s.map((i) => /* @__PURE__ */ r(Ft, { attachment: i }, i.id)) }),
2074
+ e.attachments && e.attachments.length > 0 && /* @__PURE__ */ r("div", { className: "w-full flex gap-1 flex-wrap justify-end", children: (s = e.attachments) == null ? void 0 : s.map((i) => /* @__PURE__ */ r(Bt, { attachment: i }, i.id)) }),
2001
2075
  e.content.length > 0 && /* @__PURE__ */ r(
2002
2076
  "div",
2003
2077
  {
2004
- ...w("chat/user_msg/msg"),
2078
+ ...f("chat/user_msg/msg"),
2005
2079
  "data-first": o,
2006
2080
  "data-last": t,
2007
2081
  "data-alone": n,
2008
- className: h(
2082
+ className: m(
2009
2083
  "transition-all",
2010
2084
  "w-fit py-3 px-4 rounded-3xl text-sm",
2011
2085
  "bg-primary text-primary-foreground",
@@ -2024,17 +2098,17 @@ function No({
2024
2098
  }
2025
2099
  );
2026
2100
  }
2027
- function So({
2101
+ function Do({
2028
2102
  messages: e
2029
2103
  }) {
2030
2104
  return /* @__PURE__ */ d(
2031
2105
  "div",
2032
2106
  {
2033
- ...w("chat/user_msg_group/root"),
2034
- className: h("group", "flex flex-col gap-1 justify-end items-end"),
2107
+ ...f("chat/user_msg_group/root"),
2108
+ className: m("group", "flex flex-col gap-1 justify-end items-end"),
2035
2109
  children: [
2036
2110
  e.map((o, t, n) => /* @__PURE__ */ r(
2037
- No,
2111
+ Mo,
2038
2112
  {
2039
2113
  message: o,
2040
2114
  isFirstInGroup: t === 0,
@@ -2043,12 +2117,12 @@ function So({
2043
2117
  },
2044
2118
  o.id
2045
2119
  )),
2046
- /* @__PURE__ */ r(qt, { messages: e, containerClassName: "ms-auto" })
2120
+ /* @__PURE__ */ r(Qt, { messages: e, containerClassName: "ms-auto" })
2047
2121
  ]
2048
2122
  }
2049
2123
  );
2050
2124
  }
2051
- function _o(e) {
2125
+ function Eo(e) {
2052
2126
  const o = [];
2053
2127
  let t = null;
2054
2128
  return e.forEach((n) => {
@@ -2058,19 +2132,19 @@ function _o(e) {
2058
2132
  ((i = t[0]) == null ? void 0 : i.type) === "AGENT" && n.type === "AGENT" && (((a = n.agent) == null ? void 0 : a.id) !== ((l = t[0].agent) == null ? void 0 : l.id) || ((c = n.agent) == null ? void 0 : c.name) !== ((p = t[0].agent) == null ? void 0 : p.name))) && (t = [], o.push(t)), t.push(n);
2059
2133
  }), o;
2060
2134
  }
2061
- function Io(e) {
2135
+ function Ro(e) {
2062
2136
  var o;
2063
2137
  return ((o = e == null ? void 0 : e[0]) == null ? void 0 : o.type) === "USER";
2064
2138
  }
2065
- function To(e) {
2139
+ function Po(e) {
2066
2140
  var o;
2067
2141
  return ((o = e == null ? void 0 : e[0]) == null ? void 0 : o.type) === "AI";
2068
2142
  }
2069
- function Mo(e) {
2143
+ function jo(e) {
2070
2144
  var o;
2071
2145
  return ((o = e == null ? void 0 : e[0]) == null ? void 0 : o.type) === "AGENT";
2072
2146
  }
2073
- function Do() {
2147
+ function Oo() {
2074
2148
  const {
2075
2149
  messagesState: { messages: e }
2076
2150
  } = A(), {
@@ -2096,15 +2170,15 @@ function Do() {
2096
2170
  }
2097
2171
  ) });
2098
2172
  }
2099
- function Ro() {
2173
+ function Ao() {
2100
2174
  const {
2101
2175
  messagesState: { messages: e }
2102
2176
  } = A(), { chatBannerItems: o } = C();
2103
2177
  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(
2104
- ({ message: t, persistent: n }, s) => e.length > 0 && !n ? null : /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(Ne, { children: t }) }, `${t}-${s}`)
2178
+ ({ message: t, persistent: n }, s) => e.length > 0 && !n ? null : /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(Se, { children: t }) }, `${t}-${s}`)
2105
2179
  ) });
2106
2180
  }
2107
- function jo() {
2181
+ function Fo() {
2108
2182
  const {
2109
2183
  messagesState: { messages: e }
2110
2184
  } = A(), o = C(), {
@@ -2132,16 +2206,16 @@ function jo() {
2132
2206
  }
2133
2207
  ) });
2134
2208
  }
2135
- function Po() {
2209
+ function Ho() {
2136
2210
  var t;
2137
2211
  const e = te(), o = (t = e.config.customComponents) == null ? void 0 : t.chatBottomComponents;
2138
2212
  return o ? /* @__PURE__ */ r("div", { children: o.map(({ key: n, component: s }) => /* @__PURE__ */ r(s, { ...e }, n)) }) : null;
2139
2213
  }
2140
- function Eo() {
2214
+ function Wo() {
2141
2215
  const {
2142
2216
  messagesState: { messages: e }
2143
- } = A(), { isAwaitingBotReply: o } = Ct(), { componentStore: t } = O(), { bot: n, humanAgent: s } = C(), i = bt(
2144
- () => _o(e),
2217
+ } = A(), { isAwaitingBotReply: o } = St(), { componentStore: t } = O(), { bot: n, humanAgent: s } = C(), i = Ct(
2218
+ () => Eo(e),
2145
2219
  [e]
2146
2220
  ), a = t.getComponent(
2147
2221
  "loading"
@@ -2157,40 +2231,40 @@ function Eo() {
2157
2231
  }, [e]), /* @__PURE__ */ d(
2158
2232
  "div",
2159
2233
  {
2160
- ...w("chat/msgs/root"),
2234
+ ...f("chat/msgs/root"),
2161
2235
  ref: l,
2162
2236
  className: "max-h-full scroll-smooth relative flex-1 py-2 px-4 flex flex-col gap-2 overflow-auto",
2163
2237
  children: [
2164
- /* @__PURE__ */ r(Ro, {}),
2165
- /* @__PURE__ */ r(Do, {}),
2166
- /* @__PURE__ */ r(jo, {}),
2167
- i.map((p, f) => {
2168
- var k, b, z, _;
2169
- const x = (k = p == null ? void 0 : p[0]) == null ? void 0 : k.type, m = (b = p[0]) == null ? void 0 : b.id;
2170
- if (!x || !m) return null;
2171
- if (Io(p))
2172
- return /* @__PURE__ */ r(So, { messages: p }, m);
2173
- if (To(p)) {
2174
- const v = f === i.length - 1;
2175
- return o && v ? null : ((z = p[0]) == null || z.agent, /* @__PURE__ */ r(
2238
+ /* @__PURE__ */ r(Ao, {}),
2239
+ /* @__PURE__ */ r(Oo, {}),
2240
+ /* @__PURE__ */ r(Fo, {}),
2241
+ i.map((p, x) => {
2242
+ var u, b, z, _;
2243
+ const v = (u = p == null ? void 0 : p[0]) == null ? void 0 : u.type, g = (b = p[0]) == null ? void 0 : b.id;
2244
+ if (!v || !g) return null;
2245
+ if (Ro(p))
2246
+ return /* @__PURE__ */ r(Do, { messages: p }, g);
2247
+ if (Po(p)) {
2248
+ const y = x === i.length - 1;
2249
+ return o && y ? null : ((z = p[0]) == null || z.agent, /* @__PURE__ */ r(
2176
2250
  pe,
2177
2251
  {
2178
2252
  messages: p,
2179
2253
  agent: n ? { ...n, isAi: !0, id: null } : void 0
2180
2254
  },
2181
- m
2255
+ g
2182
2256
  ));
2183
2257
  }
2184
- if (Mo(p)) {
2185
- const v = (_ = p[0]) == null ? void 0 : _.agent;
2258
+ if (jo(p)) {
2259
+ const y = (_ = p[0]) == null ? void 0 : _.agent;
2186
2260
  return /* @__PURE__ */ r(
2187
2261
  pe,
2188
2262
  {
2189
2263
  messages: p,
2190
- agent: v ? {
2191
- ...v,
2192
- name: (s == null ? void 0 : s.name) || v.name || "",
2193
- avatarUrl: (s == null ? void 0 : s.avatarUrl) || v.avatarUrl || null
2264
+ agent: y ? {
2265
+ ...y,
2266
+ name: (s == null ? void 0 : s.name) || y.name || "",
2267
+ avatarUrl: (s == null ? void 0 : s.avatarUrl) || y.avatarUrl || null
2194
2268
  } : s ? {
2195
2269
  isAi: !1,
2196
2270
  id: null,
@@ -2198,25 +2272,25 @@ function Eo() {
2198
2272
  avatarUrl: s.avatarUrl || null
2199
2273
  } : void 0
2200
2274
  },
2201
- m
2275
+ g
2202
2276
  );
2203
2277
  }
2204
2278
  return null;
2205
2279
  }),
2206
2280
  o && a && /* @__PURE__ */ r(a, { agent: n }),
2207
- /* @__PURE__ */ r(Po, {}),
2208
- /* @__PURE__ */ r(zo, {})
2281
+ /* @__PURE__ */ r(Ho, {}),
2282
+ /* @__PURE__ */ r(To, {})
2209
2283
  ]
2210
2284
  }
2211
2285
  );
2212
2286
  }
2213
- function Oo() {
2287
+ function Lo() {
2214
2288
  const {
2215
2289
  messagesState: { isInitialFetchLoading: e }
2216
2290
  } = A(), {
2217
2291
  sessionState: { session: o }
2218
- } = U(), { isCanvasOpen: t } = go(), { theme: n } = G();
2219
- Te({
2292
+ } = U(), { isCanvasOpen: t } = vo(), { theme: n } = Z();
2293
+ Me({
2220
2294
  width: t ? n.screens.chat.withCanvas.width : n.screens.chat.width,
2221
2295
  height: t ? n.screens.chat.withCanvas.height : n.screens.chat.height
2222
2296
  });
@@ -2224,8 +2298,8 @@ function Oo() {
2224
2298
  return /* @__PURE__ */ r(
2225
2299
  "div",
2226
2300
  {
2227
- ...w("chat/root"),
2228
- className: h("flex flex-col overflow-hidden"),
2301
+ ...f("chat/root"),
2302
+ className: m("flex flex-col overflow-hidden"),
2229
2303
  style: {
2230
2304
  width: "100vw",
2231
2305
  // Relative to the iframe
@@ -2237,16 +2311,16 @@ function Oo() {
2237
2311
  // Relative to the iframe
2238
2312
  },
2239
2313
  children: /* @__PURE__ */ d("div", { className: "size-full justify-between flex flex-col", children: [
2240
- /* @__PURE__ */ r(Ut, {}),
2314
+ /* @__PURE__ */ r(Zt, {}),
2241
2315
  /* @__PURE__ */ r(T, { mode: "wait", children: e ? /* @__PURE__ */ r(
2242
- y,
2316
+ k,
2243
2317
  {
2244
2318
  className: "flex flex-col items-center justify-center w-full flex-1",
2245
- children: /* @__PURE__ */ r(Xt, {})
2319
+ children: /* @__PURE__ */ r(Kt, {})
2246
2320
  },
2247
2321
  "loading"
2248
2322
  ) : /* @__PURE__ */ d(
2249
- y,
2323
+ k,
2250
2324
  {
2251
2325
  className: "flex items-start h-full flex-1 overflow-auto",
2252
2326
  snapExit: !0,
@@ -2254,8 +2328,8 @@ function Oo() {
2254
2328
  /* @__PURE__ */ d(
2255
2329
  "div",
2256
2330
  {
2257
- ...w("chat/main/root"),
2258
- className: h(
2331
+ ...f("chat/main/root"),
2332
+ className: m(
2259
2333
  "flex flex-col h-full overflow-auto transition-all",
2260
2334
  t ? "w-2/5" : "w-full"
2261
2335
  ),
@@ -2264,16 +2338,16 @@ function Oo() {
2264
2338
  transitionDuration: n.screens.chat.withCanvas.transitionDuration
2265
2339
  },
2266
2340
  children: [
2267
- /* @__PURE__ */ r(Eo, {}),
2268
- /* @__PURE__ */ r(ko, {})
2341
+ /* @__PURE__ */ r(Wo, {}),
2342
+ /* @__PURE__ */ r(_o, {})
2269
2343
  ]
2270
2344
  }
2271
2345
  ),
2272
2346
  /* @__PURE__ */ r(
2273
2347
  "div",
2274
2348
  {
2275
- ...w("chat/canvas/root"),
2276
- className: h(
2349
+ ...f("chat/canvas/root"),
2350
+ className: m(
2277
2351
  "h-full overflow-auto transition-all",
2278
2352
  t ? "w-3/5" : "w-0"
2279
2353
  ),
@@ -2281,7 +2355,7 @@ function Oo() {
2281
2355
  transitionTimingFunction: n.screens.chat.withCanvas.transitionTimingFunction,
2282
2356
  transitionDuration: n.screens.chat.withCanvas.transitionDuration
2283
2357
  },
2284
- children: /* @__PURE__ */ r(uo, {})
2358
+ children: /* @__PURE__ */ r(bo, {})
2285
2359
  }
2286
2360
  )
2287
2361
  ]
@@ -2292,19 +2366,19 @@ function Oo() {
2292
2366
  }
2293
2367
  );
2294
2368
  }
2295
- function Ao({
2369
+ function $o({
2296
2370
  className: e,
2297
2371
  ...o
2298
2372
  }) {
2299
2373
  return /* @__PURE__ */ r(
2300
2374
  "div",
2301
2375
  {
2302
- className: h("animate-pulse rounded-md bg-secondary", e),
2376
+ className: m("animate-pulse rounded-md bg-secondary", e),
2303
2377
  ...o
2304
2378
  }
2305
2379
  );
2306
2380
  }
2307
- function Fo({ className: e }) {
2381
+ function Bo({ className: e }) {
2308
2382
  return /* @__PURE__ */ r(
2309
2383
  "svg",
2310
2384
  {
@@ -2313,7 +2387,7 @@ function Fo({ className: e }) {
2313
2387
  viewBox: "0 0 26 32",
2314
2388
  fill: "none",
2315
2389
  xmlns: "http://www.w3.org/2000/svg",
2316
- className: h("text-primary-foreground", e),
2390
+ className: m("text-primary-foreground", e),
2317
2391
  children: /* @__PURE__ */ r(
2318
2392
  "path",
2319
2393
  {
@@ -2324,12 +2398,12 @@ function Fo({ className: e }) {
2324
2398
  }
2325
2399
  );
2326
2400
  }
2327
- function Vt({ className: e }) {
2401
+ function Jt({ className: e }) {
2328
2402
  const { token: o } = C();
2329
2403
  return /* @__PURE__ */ r(
2330
2404
  "div",
2331
2405
  {
2332
- className: h(
2406
+ className: m(
2333
2407
  "flex items-center justify-center gap-2 p-2 pt-0",
2334
2408
  e
2335
2409
  ),
@@ -2339,7 +2413,7 @@ function Vt({ className: e }) {
2339
2413
  href: `https://open.cx/?ref=${o}`,
2340
2414
  target: "_blank",
2341
2415
  rel: "noreferrer",
2342
- className: h(
2416
+ className: m(
2343
2417
  "text-[10px] flex items-center",
2344
2418
  "text-muted-foreground/70 [&_svg]:text-muted-foreground/70",
2345
2419
  "hover:text-primary [&_svg]:hover:text-primary"
@@ -2348,7 +2422,7 @@ function Vt({ className: e }) {
2348
2422
  /* @__PURE__ */ r("span", { children: "Powered by" }),
2349
2423
  /* @__PURE__ */ r("span", { children: " " }),
2350
2424
  /* @__PURE__ */ d("span", { className: "flex items-center gap-[1px]", children: [
2351
- /* @__PURE__ */ r("span", { children: /* @__PURE__ */ r(Fo, { className: "size-3 inline-block" }) }),
2425
+ /* @__PURE__ */ r("span", { children: /* @__PURE__ */ r(Bo, { className: "size-3 inline-block" }) }),
2352
2426
  /* @__PURE__ */ r("span", { className: "font-semibold", children: "open" })
2353
2427
  ] })
2354
2428
  ]
@@ -2357,10 +2431,10 @@ function Vt({ className: e }) {
2357
2431
  }
2358
2432
  );
2359
2433
  }
2360
- function Ho({ children: e }) {
2434
+ function Yo({ children: e }) {
2361
2435
  return /* @__PURE__ */ r("p", { className: "ps-4 text-xs text-muted-foreground/75 uppercase font-semibold tracking-tight", children: e });
2362
2436
  }
2363
- function ft({
2437
+ function bt({
2364
2438
  session: e,
2365
2439
  className: o
2366
2440
  }) {
@@ -2370,76 +2444,76 @@ function ft({
2370
2444
  {
2371
2445
  variant: "ghost",
2372
2446
  size: "lg",
2373
- className: h(
2447
+ className: m(
2374
2448
  "rounded-full p-2 pe-4 flex text-start justify-between w-full whitespace-normal",
2375
2449
  o
2376
2450
  ),
2377
2451
  onClick: () => s(e.id),
2378
2452
  children: [
2379
2453
  /* @__PURE__ */ d("div", { className: "flex-1 flex gap-2 items-center", children: [
2380
- /* @__PURE__ */ r(T, { mode: "wait", children: /* @__PURE__ */ r(y, { snapExit: !0, children: /* @__PURE__ */ d(Se, { className: "size-10", children: [
2381
- /* @__PURE__ */ r(_e, { src: a, alt: "Agent Icon" }),
2382
- /* @__PURE__ */ r(Ie, { children: /* @__PURE__ */ r(Tr, { className: "size-4" }) })
2454
+ /* @__PURE__ */ r(T, { mode: "wait", children: /* @__PURE__ */ r(k, { snapExit: !0, children: /* @__PURE__ */ d(_e, { className: "size-10", children: [
2455
+ /* @__PURE__ */ r(Ie, { src: a, alt: "Agent Icon" }),
2456
+ /* @__PURE__ */ r(Te, { children: /* @__PURE__ */ r(Pr, { className: "size-4" }) })
2383
2457
  ] }) }) }),
2384
2458
  /* @__PURE__ */ d("div", { className: "flex-1", children: [
2385
- /* @__PURE__ */ r(T, { mode: "wait", children: /* @__PURE__ */ r(y, { snapExit: !0, children: i }, i) }),
2386
- /* @__PURE__ */ r(T, { mode: "wait", children: e.lastMessage ? /* @__PURE__ */ r(y, { snapExit: !0, children: /* @__PURE__ */ r(
2387
- Ht,
2459
+ /* @__PURE__ */ r(T, { mode: "wait", children: /* @__PURE__ */ r(k, { snapExit: !0, children: i }, i) }),
2460
+ /* @__PURE__ */ r(T, { mode: "wait", children: e.lastMessage ? /* @__PURE__ */ r(k, { snapExit: !0, children: /* @__PURE__ */ r(
2461
+ Yt,
2388
2462
  {
2389
- remarkPlugins: [It],
2390
- rehypePlugins: [Tt],
2463
+ remarkPlugins: [Et],
2464
+ rehypePlugins: [Rt],
2391
2465
  className: "line-clamp-1 overflow-hidden text-ellipsis text-xs text-muted-foreground",
2392
2466
  children: e.lastMessage
2393
2467
  }
2394
- ) }, e.lastMessage || "content") : /* @__PURE__ */ r(y, { className: "w-1/2", snapExit: !0, children: /* @__PURE__ */ r(Ao, { className: "h-4 w-full" }) }, "skeleton") })
2468
+ ) }, e.lastMessage || "content") : /* @__PURE__ */ r(k, { className: "w-1/2", snapExit: !0, children: /* @__PURE__ */ r($o, { className: "h-4 w-full" }) }, "skeleton") })
2395
2469
  ] })
2396
2470
  ] }),
2397
- /* @__PURE__ */ r(Mr, { className: "size-4 text-muted-foreground shrink-0 rtl:-scale-100" })
2471
+ /* @__PURE__ */ r(jr, { className: "size-4 text-muted-foreground shrink-0 rtl:-scale-100" })
2398
2472
  ]
2399
2473
  }
2400
2474
  );
2401
2475
  }
2402
- function Wo() {
2403
- const { t: e } = Z(), { toChatScreen: o } = H(), {
2476
+ function Uo() {
2477
+ const { t: e } = q(), { toChatScreen: o } = H(), {
2404
2478
  sessionsState: { data: t, isInitialFetchLoading: n },
2405
2479
  openSessions: s,
2406
2480
  closedSessions: i,
2407
2481
  canCreateNewSession: a
2408
2482
  } = U();
2409
2483
  return /* @__PURE__ */ r("div", { className: "flex-1 flex flex-col overflow-scroll py-2 px-2", children: /* @__PURE__ */ r(T, { mode: "wait", children: n ? /* @__PURE__ */ r(
2410
- y,
2484
+ k,
2411
2485
  {
2412
2486
  className: "flex-1 flex items-center justify-center",
2413
- children: /* @__PURE__ */ r(Xt, {})
2487
+ children: /* @__PURE__ */ r(Kt, {})
2414
2488
  },
2415
2489
  "loading"
2416
2490
  ) : /* @__PURE__ */ r(
2417
- y,
2491
+ k,
2418
2492
  {
2419
2493
  className: "flex-1 flex flex-col gap-2 relative",
2420
2494
  children: t.length ? /* @__PURE__ */ d(Q, { children: [
2421
2495
  /* @__PURE__ */ d(T, { children: [
2422
2496
  s.length > 0 && /* @__PURE__ */ r(
2423
- y,
2497
+ k,
2424
2498
  {
2425
2499
  fadeIn: "up",
2426
2500
  delay: 0.2,
2427
2501
  className: "space-y-2",
2428
2502
  snapExit: !0,
2429
- children: s.map((l) => /* @__PURE__ */ r(ft, { session: l }, l.id))
2503
+ children: s.map((l) => /* @__PURE__ */ r(bt, { session: l }, l.id))
2430
2504
  },
2431
2505
  "open-sessions"
2432
2506
  ),
2433
2507
  i.length > 0 && /* @__PURE__ */ d(
2434
- y,
2508
+ k,
2435
2509
  {
2436
2510
  className: "space-y-2",
2437
2511
  delay: 0.2,
2438
2512
  snapExit: !0,
2439
2513
  children: [
2440
- /* @__PURE__ */ r(Ho, { children: e("closed_conversations") }),
2514
+ /* @__PURE__ */ r(Yo, { children: e("closed_conversations") }),
2441
2515
  i.map((l) => /* @__PURE__ */ r(
2442
- ft,
2516
+ bt,
2443
2517
  {
2444
2518
  session: l,
2445
2519
  className: "opacity-50 hover:opacity-100"
@@ -2451,10 +2525,10 @@ function Wo() {
2451
2525
  "closed-sessions"
2452
2526
  )
2453
2527
  ] }),
2454
- a && /* @__PURE__ */ r("div", { className: "mt-auto w-full rounded-3xl sticky bottom-0 outline outline-8 outline-background bg-background", children: /* @__PURE__ */ lt(
2528
+ a && /* @__PURE__ */ r("div", { className: "mt-auto w-full rounded-3xl sticky bottom-0 outline outline-8 outline-background bg-background", children: /* @__PURE__ */ ct(
2455
2529
  N,
2456
2530
  {
2457
- ...w("sessions/new_conversation_btn"),
2531
+ ...f("sessions/new_conversation_btn"),
2458
2532
  size: "lg",
2459
2533
  key: "new-session",
2460
2534
  className: "w-full",
@@ -2464,10 +2538,10 @@ function Wo() {
2464
2538
  ) })
2465
2539
  ] }) : /* @__PURE__ */ d("div", { className: "flex-1 flex flex-col gap-2 items-center", children: [
2466
2540
  /* @__PURE__ */ r("div", { className: "flex-1 flex items-center justify-center", children: /* @__PURE__ */ r("p", { className: "text-muted-foreground", children: e("no_conversations_yet") }) }),
2467
- /* @__PURE__ */ lt(
2541
+ /* @__PURE__ */ ct(
2468
2542
  N,
2469
2543
  {
2470
- ...w("sessions/new_conversation_btn"),
2544
+ ...f("sessions/new_conversation_btn"),
2471
2545
  size: "lg",
2472
2546
  key: "new-session",
2473
2547
  className: "w-full",
@@ -2480,16 +2554,16 @@ function Wo() {
2480
2554
  "sessions"
2481
2555
  ) }) });
2482
2556
  }
2483
- function Lo() {
2484
- const { theme: e } = G();
2485
- return Te({
2557
+ function Xo() {
2558
+ const { theme: e } = Z();
2559
+ return Me({
2486
2560
  width: e.screens.sessions.width,
2487
2561
  height: e.screens.sessions.height
2488
2562
  }), /* @__PURE__ */ r(
2489
2563
  "div",
2490
2564
  {
2491
- ...w("sessions/root"),
2492
- className: h("flex flex-col overflow-hidden bg-background"),
2565
+ ...f("sessions/root"),
2566
+ className: m("flex flex-col overflow-hidden bg-background"),
2493
2567
  style: {
2494
2568
  width: "100vw",
2495
2569
  // Relative to the iframe
@@ -2501,9 +2575,9 @@ function Lo() {
2501
2575
  // Relative to the iframe
2502
2576
  },
2503
2577
  children: /* @__PURE__ */ d("div", { className: "size-full flex flex-col", children: [
2504
- /* @__PURE__ */ r(Ut, {}),
2505
- /* @__PURE__ */ r(Wo, {}),
2506
- /* @__PURE__ */ r(Vt, {})
2578
+ /* @__PURE__ */ r(Zt, {}),
2579
+ /* @__PURE__ */ r(Uo, {}),
2580
+ /* @__PURE__ */ r(Jt, {})
2507
2581
  ] })
2508
2582
  }
2509
2583
  );
@@ -2516,7 +2590,7 @@ const de = J.forwardRef(
2516
2590
  {
2517
2591
  ref: n,
2518
2592
  type: o,
2519
- className: h(
2593
+ className: m(
2520
2594
  // 16px on mobiles prevents auto-zoom on the input when focused
2521
2595
  s ? "text-[16px]" : "text-sm",
2522
2596
  "flex w-full rounded-xl p-2 ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-primary-foreground placeholder:text-muted-foreground/75 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 transition",
@@ -2530,7 +2604,7 @@ const de = J.forwardRef(
2530
2604
  }
2531
2605
  );
2532
2606
  de.displayName = "Input";
2533
- function $o() {
2607
+ function qo() {
2534
2608
  const { contentIframeRef: e } = O(), { inline: o } = C(), t = B(null);
2535
2609
  return se(() => {
2536
2610
  const n = e == null ? void 0 : e.current;
@@ -2552,35 +2626,35 @@ function $o() {
2552
2626
  }
2553
2627
  }, [e, o]), { observedElementRef: t };
2554
2628
  }
2555
- const Bo = ue.object({
2556
- name: ue.string().min(2),
2557
- email: ue.string().email()
2629
+ const Vo = ge.object({
2630
+ name: ge.string().min(2),
2631
+ email: ge.string().email()
2558
2632
  });
2559
- function Yo() {
2560
- var v, R, P, E, u, I, j, M;
2633
+ function Go() {
2634
+ var y, E, P, j, w, I, R, M;
2561
2635
  const {
2562
2636
  widgetCtx: { org: e }
2563
- } = O(), { setIsOpen: o } = V(), { createUnverifiedContact: t } = zt(), { isSmallScreen: n } = $(), s = C(), { theme: i } = G(), { t: a } = Z(), { observedElementRef: l } = $o();
2564
- Te({
2637
+ } = O(), { setIsOpen: o } = G(), { createUnverifiedContact: t } = _t(), { isSmallScreen: n } = $(), s = C(), { theme: i } = Z(), { t: a } = q(), { observedElementRef: l } = qo();
2638
+ Me({
2565
2639
  height: void 0,
2566
2640
  width: i.screens.welcome.width
2567
2641
  });
2568
- const [c, p] = D(((v = s.prefillUserData) == null ? void 0 : v.name) || ""), [f, x] = D(((R = s.prefillUserData) == null ? void 0 : R.email) || ""), m = (s.extraDataCollectionFields || []).filter(
2569
- (g) => g !== "name" && g !== "email" && !!g
2570
- ), [k, b] = D({}), [z, _] = Lr(
2571
- async (g) => {
2572
- g.preventDefault();
2573
- const S = Bo.safeParse({ name: c, email: f });
2642
+ const [c, p] = D(((y = s.prefillUserData) == null ? void 0 : y.name) || ""), [x, v] = D(((E = s.prefillUserData) == null ? void 0 : E.email) || ""), g = (s.extraDataCollectionFields || []).filter(
2643
+ (h) => h !== "name" && h !== "email" && !!h
2644
+ ), [u, b] = D({}), [z, _] = Xr(
2645
+ async (h) => {
2646
+ h.preventDefault();
2647
+ const S = Vo.safeParse({ name: c, email: x });
2574
2648
  S.success && await t(
2575
2649
  {
2576
2650
  email: S.data.email,
2577
2651
  non_verified_name: S.data.name
2578
2652
  },
2579
2653
  // Only pass extra data if there is any
2580
- Object.values(k).filter(Boolean).length ? k : void 0
2654
+ Object.values(u).filter(Boolean).length ? u : void 0
2581
2655
  );
2582
2656
  },
2583
- [c, f, k]
2657
+ [c, x, u]
2584
2658
  );
2585
2659
  return /* @__PURE__ */ r(
2586
2660
  "div",
@@ -2601,7 +2675,7 @@ function Yo() {
2601
2675
  "div",
2602
2676
  {
2603
2677
  ref: l,
2604
- className: h(
2678
+ className: m(
2605
2679
  "flex flex-col",
2606
2680
  n && "h-full",
2607
2681
  "bg-[radial-gradient(ellipse_at_top_left,hsl(var(--opencx-primary)),transparent),radial-gradient(ellipse_at_top_right,hsl(var(--opencx-primary)),transparent)]"
@@ -2610,23 +2684,23 @@ function Yo() {
2610
2684
  /* @__PURE__ */ d(
2611
2685
  "div",
2612
2686
  {
2613
- className: h(
2687
+ className: m(
2614
2688
  "flex-1 flex flex-col px-4 py-12 text-start space-y-4 relative z-10",
2615
2689
  "text-primary-foreground"
2616
2690
  ),
2617
2691
  children: [
2618
- n && /* @__PURE__ */ r(y, { className: "absolute top-6 end-6", children: /* @__PURE__ */ r(N, { size: "selfless", onClick: () => o(!1), children: /* @__PURE__ */ r(ke, { className: "size-4" }) }) }),
2692
+ n && /* @__PURE__ */ r(k, { className: "absolute top-6 end-6", children: /* @__PURE__ */ r(N, { size: "selfless", onClick: () => o(!1), children: /* @__PURE__ */ r(Ce, { className: "size-4" }) }) }),
2619
2693
  /* @__PURE__ */ r("div", { className: "flex items-center justify-between w-full mb-2", children: (P = s.assets) != null && P.organizationLogo ? /* @__PURE__ */ r(
2620
2694
  "img",
2621
2695
  {
2622
- src: (E = s.assets) == null ? void 0 : E.organizationLogo,
2696
+ src: (j = s.assets) == null ? void 0 : j.organizationLogo,
2623
2697
  alt: "Company Logo",
2624
2698
  className: "h-8 w-auto object-contain"
2625
2699
  }
2626
2700
  ) : /* @__PURE__ */ r("h2", { className: "font-bold text-sm", children: e.name }) }),
2627
2701
  /* @__PURE__ */ d("div", { className: "space-y-2", children: [
2628
- /* @__PURE__ */ r("h1", { className: "text-[1.75rem] font-semibold tracking-tight leading-none", children: ((I = (u = s.textContent) == null ? void 0 : u.welcomeScreen) == null ? void 0 : I.title) || a("welcome_screen_title") }),
2629
- /* @__PURE__ */ r("p", { className: "text-sm", children: ((M = (j = s.textContent) == null ? void 0 : j.welcomeScreen) == null ? void 0 : M.description) || a("welcome_screen_description") })
2702
+ /* @__PURE__ */ r("h1", { className: "text-[1.75rem] font-semibold tracking-tight leading-none", children: ((I = (w = s.textContent) == null ? void 0 : w.welcomeScreen) == null ? void 0 : I.title) || a("welcome_screen_title") }),
2703
+ /* @__PURE__ */ r("p", { className: "text-sm", children: ((M = (R = s.textContent) == null ? void 0 : R.welcomeScreen) == null ? void 0 : M.description) || a("welcome_screen_description") })
2630
2704
  ] })
2631
2705
  ]
2632
2706
  }
@@ -2634,7 +2708,7 @@ function Yo() {
2634
2708
  /* @__PURE__ */ d(
2635
2709
  "div",
2636
2710
  {
2637
- className: h(
2711
+ className: m(
2638
2712
  "z-10 m-2 px-2 pt-2 bp-0 space-y-2",
2639
2713
  "bg-[white]",
2640
2714
  "border shadow",
@@ -2646,7 +2720,7 @@ function Yo() {
2646
2720
  de,
2647
2721
  {
2648
2722
  value: c,
2649
- onChange: (g) => p(g.target.value),
2723
+ onChange: (h) => p(h.target.value),
2650
2724
  required: !0,
2651
2725
  placeholder: a("your_name_placeholder"),
2652
2726
  name: "name"
@@ -2656,24 +2730,24 @@ function Yo() {
2656
2730
  de,
2657
2731
  {
2658
2732
  required: !0,
2659
- value: f,
2660
- onChange: (g) => x(g.target.value),
2733
+ value: x,
2734
+ onChange: (h) => v(h.target.value),
2661
2735
  type: "email",
2662
2736
  placeholder: a("your_email_placeholder"),
2663
2737
  name: "email"
2664
2738
  }
2665
2739
  ),
2666
- m.map((g) => /* @__PURE__ */ r(
2740
+ g.map((h) => /* @__PURE__ */ r(
2667
2741
  de,
2668
2742
  {
2669
- value: k[g],
2743
+ value: u[h],
2670
2744
  onChange: (S) => b((ie) => ({
2671
2745
  ...ie,
2672
- [g]: S.target.value
2746
+ [h]: S.target.value
2673
2747
  })),
2674
- placeholder: `${g} (${a("optional")})`
2748
+ placeholder: `${h} (${a("optional")})`
2675
2749
  },
2676
- g
2750
+ h
2677
2751
  )),
2678
2752
  /* @__PURE__ */ d(
2679
2753
  N,
@@ -2683,12 +2757,12 @@ function Yo() {
2683
2757
  size: "lg",
2684
2758
  children: [
2685
2759
  z.loading ? a("start_chat_button_loading") : a("start_chat_button"),
2686
- /* @__PURE__ */ r(Dr, { className: "size-4 rtl:-scale-100" })
2760
+ /* @__PURE__ */ r(Or, { className: "size-4 rtl:-scale-100" })
2687
2761
  ]
2688
2762
  }
2689
2763
  )
2690
2764
  ] }),
2691
- /* @__PURE__ */ r(Vt, {})
2765
+ /* @__PURE__ */ r(Jt, {})
2692
2766
  ]
2693
2767
  }
2694
2768
  )
@@ -2698,7 +2772,7 @@ function Yo() {
2698
2772
  }
2699
2773
  );
2700
2774
  }
2701
- function Gt() {
2775
+ function er() {
2702
2776
  const {
2703
2777
  routerState: { screen: e }
2704
2778
  } = H();
@@ -2706,47 +2780,47 @@ function Gt() {
2706
2780
  switch (e) {
2707
2781
  case "welcome":
2708
2782
  return /* @__PURE__ */ r(
2709
- y,
2783
+ k,
2710
2784
  {
2711
2785
  fadeIn: "right",
2712
2786
  className: "size-full",
2713
2787
  snapExit: !0,
2714
- children: /* @__PURE__ */ r(Yo, {})
2788
+ children: /* @__PURE__ */ r(Go, {})
2715
2789
  },
2716
2790
  e
2717
2791
  );
2718
2792
  case "sessions":
2719
2793
  return /* @__PURE__ */ r(
2720
- y,
2794
+ k,
2721
2795
  {
2722
2796
  fadeIn: "right",
2723
2797
  className: "size-full",
2724
2798
  snapExit: !0,
2725
- children: /* @__PURE__ */ r(Lo, {})
2799
+ children: /* @__PURE__ */ r(Xo, {})
2726
2800
  },
2727
2801
  e
2728
2802
  );
2729
2803
  case "chat":
2730
2804
  return /* @__PURE__ */ r(
2731
- y,
2805
+ k,
2732
2806
  {
2733
2807
  fadeIn: "right",
2734
2808
  className: "size-full",
2735
2809
  snapExit: !0,
2736
- children: /* @__PURE__ */ r(Oo, {})
2810
+ children: /* @__PURE__ */ r(Lo, {})
2737
2811
  },
2738
2812
  e
2739
2813
  );
2740
2814
  default:
2741
- return F(e, Gt.name), null;
2815
+ return F(e, er.name), null;
2742
2816
  }
2743
2817
  })() }) });
2744
2818
  }
2745
- const Uo = "4.0.52", Xo = `<!DOCTYPE html>
2819
+ const Zo = "4.0.54", Ko = `<!DOCTYPE html>
2746
2820
  <html>
2747
2821
  <head>
2748
2822
  <style>
2749
- ${Wt}
2823
+ ${Ut}
2750
2824
  html, body {
2751
2825
  height: 100%;
2752
2826
  width: 100%;
@@ -2760,8 +2834,8 @@ html, body {
2760
2834
  <body>
2761
2835
  </body>
2762
2836
  </html>`;
2763
- function Zt() {
2764
- const { isOpen: e } = V(), { contentIframeRef: o } = O(), { cssOverrides: t, inline: n } = C(), { theme: s, cssVars: i, computed: a } = G(), { dir: l } = Z();
2837
+ function tr() {
2838
+ const { isOpen: e } = G(), { contentIframeRef: o } = O(), { cssOverrides: t, inline: n } = C(), { theme: s, cssVars: i, computed: a } = Z(), { dir: l } = q();
2765
2839
  return /* @__PURE__ */ r(
2766
2840
  re.div,
2767
2841
  {
@@ -2782,10 +2856,10 @@ function Zt() {
2782
2856
  }
2783
2857
  },
2784
2858
  children: /* @__PURE__ */ d(
2785
- Mt,
2859
+ Pt,
2786
2860
  {
2787
2861
  ref: o,
2788
- initialContent: Xo,
2862
+ initialContent: Ko,
2789
2863
  allowFullScreen: !0,
2790
2864
  title: "OpenCX Live Chat",
2791
2865
  style: {
@@ -2822,17 +2896,17 @@ function Zt() {
2822
2896
  ...i,
2823
2897
  zIndex: s.widgetContentContainer.zIndex
2824
2898
  },
2825
- "data-version": Uo,
2826
- className: h(
2899
+ "data-version": Zo,
2900
+ className: m(
2827
2901
  "antialiased font-sans size-full overflow-hidden relative text-secondary-foreground isolate"
2828
2902
  ),
2829
2903
  dir: l,
2830
2904
  children: /* @__PURE__ */ r(
2831
- ro,
2905
+ io,
2832
2906
  {
2833
2907
  delayDuration: 200,
2834
2908
  disableHoverableContent: !0,
2835
- children: /* @__PURE__ */ r(Gr, { children: /* @__PURE__ */ r(Gt, {}) })
2909
+ children: /* @__PURE__ */ r(eo, { children: /* @__PURE__ */ r(er, {}) })
2836
2910
  }
2837
2911
  )
2838
2912
  }
@@ -2843,10 +2917,10 @@ function Zt() {
2843
2917
  }
2844
2918
  );
2845
2919
  }
2846
- function qo() {
2847
- const { theme: e } = G();
2920
+ function Qo() {
2921
+ const { theme: e } = Z();
2848
2922
  return /* @__PURE__ */ r(
2849
- he.Content,
2923
+ me.Content,
2850
2924
  {
2851
2925
  onInteractOutside: (o) => o.preventDefault(),
2852
2926
  forceMount: !0,
@@ -2861,11 +2935,11 @@ function qo() {
2861
2935
  sideOffset: e.widgetContentContainer.offset.side,
2862
2936
  alignOffset: e.widgetContentContainer.offset.align,
2863
2937
  avoidCollisions: !1,
2864
- children: /* @__PURE__ */ r(Zt, {})
2938
+ children: /* @__PURE__ */ r(tr, {})
2865
2939
  }
2866
2940
  );
2867
2941
  }
2868
- function Vo({
2942
+ function Jo({
2869
2943
  className: e,
2870
2944
  style: o
2871
2945
  }) {
@@ -2877,7 +2951,7 @@ function Vo({
2877
2951
  viewBox: "0 0 32 30",
2878
2952
  fill: "none",
2879
2953
  xmlns: "http://www.w3.org/2000/svg",
2880
- className: h("text-primary-foreground", e),
2954
+ className: m("text-primary-foreground", e),
2881
2955
  style: o,
2882
2956
  children: [
2883
2957
  /* @__PURE__ */ r(
@@ -2900,11 +2974,11 @@ function Vo({
2900
2974
  }
2901
2975
  );
2902
2976
  }
2903
- const Go = `<!DOCTYPE html>
2977
+ const en = `<!DOCTYPE html>
2904
2978
  <html>
2905
2979
  <head>
2906
2980
  <style>
2907
- ${Wt}
2981
+ ${Ut}
2908
2982
  html, body {
2909
2983
  height: 100%;
2910
2984
  width: 100%;
@@ -2917,17 +2991,17 @@ html, body {
2917
2991
  <body>
2918
2992
  </body>
2919
2993
  </html>`;
2920
- function Zo() {
2921
- var p, f, x;
2922
- const { isOpen: e, setIsOpen: o } = V(), { cssOverrides: t, assets: n, customComponents: s, accessibility: i } = C(), { theme: a, cssVars: l } = G(), c = ((p = i == null ? void 0 : i.widgetTriggerButton) == null ? void 0 : p.label) ?? "Chat with us";
2994
+ function tn() {
2995
+ var p, x, v;
2996
+ const { isOpen: e, setIsOpen: o } = G(), { cssOverrides: t, assets: n, customComponents: s, accessibility: i } = C(), { theme: a, cssVars: l } = Z(), c = ((p = i == null ? void 0 : i.widgetTriggerButton) == null ? void 0 : p.label) ?? "Chat with us";
2923
2997
  return s != null && s.widgetTrigger ? s.widgetTrigger({
2924
2998
  react: L,
2925
2999
  isOpen: e,
2926
- setIsOpen: (m) => o(m)
3000
+ setIsOpen: (g) => o(g)
2927
3001
  }) : /* @__PURE__ */ d(
2928
- Mt,
3002
+ Pt,
2929
3003
  {
2930
- initialContent: Go,
3004
+ initialContent: en,
2931
3005
  title: "OpenCX Live Chat Trigger",
2932
3006
  style: {
2933
3007
  height: `calc(${a.widgetTrigger.size.button}px + ${K.x * 2}px)`,
@@ -2958,11 +3032,11 @@ function Zo() {
2958
3032
  justifyContent: "center"
2959
3033
  },
2960
3034
  children: /* @__PURE__ */ r(
2961
- he.PopoverTrigger,
3035
+ me.PopoverTrigger,
2962
3036
  {
2963
3037
  "aria-label": c,
2964
3038
  title: c,
2965
- className: h(
3039
+ className: m(
2966
3040
  "font-sans flex items-center justify-center rounded-full"
2967
3041
  ),
2968
3042
  style: {
@@ -2972,8 +3046,8 @@ function Zo() {
2972
3046
  children: /* @__PURE__ */ r(Y, { children: /* @__PURE__ */ r(
2973
3047
  "div",
2974
3048
  {
2975
- ...w("trigger/btn"),
2976
- className: h(
3049
+ ...f("trigger/btn"),
3050
+ className: m(
2977
3051
  "relative size-full rounded-full",
2978
3052
  "flex items-center justify-center",
2979
3053
  "overflow-hidden",
@@ -2982,7 +3056,7 @@ function Zo() {
2982
3056
  "text-primary-foreground"
2983
3057
  ),
2984
3058
  children: /* @__PURE__ */ r(T, { mode: "wait", children: e ? /* @__PURE__ */ r(
2985
- y,
3059
+ k,
2986
3060
  {
2987
3061
  snapExit: !0,
2988
3062
  fadeIn: "up",
@@ -2990,7 +3064,7 @@ function Zo() {
2990
3064
  initial: { rotate: 45 },
2991
3065
  animate: { rotate: 0 }
2992
3066
  },
2993
- children: (f = n == null ? void 0 : n.widgetTrigger) != null && f.closeIcon ? /* @__PURE__ */ r(
3067
+ children: (x = n == null ? void 0 : n.widgetTrigger) != null && x.closeIcon ? /* @__PURE__ */ r(
2994
3068
  "img",
2995
3069
  {
2996
3070
  src: n.widgetTrigger.closeIcon,
@@ -3001,7 +3075,7 @@ function Zo() {
3001
3075
  }
3002
3076
  }
3003
3077
  ) : /* @__PURE__ */ r(
3004
- Rr,
3078
+ Ar,
3005
3079
  {
3006
3080
  style: {
3007
3081
  width: a.widgetTrigger.size.icon,
@@ -3012,14 +3086,14 @@ function Zo() {
3012
3086
  },
3013
3087
  "x-icon"
3014
3088
  ) : /* @__PURE__ */ r(
3015
- y,
3089
+ k,
3016
3090
  {
3017
3091
  snapExit: !0,
3018
3092
  overrides: {
3019
3093
  initial: { rotate: 45 },
3020
3094
  animate: { rotate: 0 }
3021
3095
  },
3022
- children: (x = n == null ? void 0 : n.widgetTrigger) != null && x.openIcon ? /* @__PURE__ */ r(
3096
+ children: (v = n == null ? void 0 : n.widgetTrigger) != null && v.openIcon ? /* @__PURE__ */ r(
3023
3097
  "img",
3024
3098
  {
3025
3099
  src: n.widgetTrigger.openIcon,
@@ -3030,7 +3104,7 @@ function Zo() {
3030
3104
  }
3031
3105
  }
3032
3106
  ) : /* @__PURE__ */ r(
3033
- Vo,
3107
+ Jo,
3034
3108
  {
3035
3109
  style: {
3036
3110
  width: a.widgetTrigger.size.icon,
@@ -3052,10 +3126,10 @@ function Zo() {
3052
3126
  }
3053
3127
  );
3054
3128
  }
3055
- function Ko() {
3056
- const { dir: e } = ye();
3129
+ function rn() {
3130
+ const { dir: e } = ke();
3057
3131
  return /* @__PURE__ */ r(
3058
- he.Anchor,
3132
+ me.Anchor,
3059
3133
  {
3060
3134
  style: {
3061
3135
  position: "fixed",
@@ -3066,10 +3140,10 @@ function Ko() {
3066
3140
  }
3067
3141
  );
3068
3142
  }
3069
- function Qo({
3143
+ function on({
3070
3144
  widgetRef: e
3071
3145
  }) {
3072
- const { widgetCtx: o } = O(), { contactState: t } = zt(), { setIsOpen: n, isOpen: s } = V(), {
3146
+ const { widgetCtx: o } = O(), { contactState: t } = _t(), { setIsOpen: n, isOpen: s } = G(), {
3073
3147
  toChatScreen: i,
3074
3148
  routerState: { screen: a }
3075
3149
  } = H(), { sendMessage: l } = A();
@@ -3096,32 +3170,32 @@ function Qo({
3096
3170
  ]
3097
3171
  ), null;
3098
3172
  }
3099
- function Jo() {
3100
- const { isOpen: e, setIsOpen: o } = V();
3101
- return /* @__PURE__ */ d(he.Root, { open: e, onOpenChange: o, children: [
3102
- /* @__PURE__ */ r(Ko, {}),
3103
- /* @__PURE__ */ r(Zo, {}),
3104
- /* @__PURE__ */ r(qo, {})
3173
+ function nn() {
3174
+ const { isOpen: e, setIsOpen: o } = G();
3175
+ return /* @__PURE__ */ d(me.Root, { open: e, onOpenChange: o, children: [
3176
+ /* @__PURE__ */ r(rn, {}),
3177
+ /* @__PURE__ */ r(tn, {}),
3178
+ /* @__PURE__ */ r(Qo, {})
3105
3179
  ] });
3106
3180
  }
3107
- const en = [
3181
+ const sn = [
3108
3182
  {
3109
3183
  key: "loading",
3110
- component: to
3184
+ component: ao
3111
3185
  },
3112
3186
  {
3113
3187
  key: "fallback",
3114
- component: eo
3188
+ component: so
3115
3189
  },
3116
3190
  {
3117
3191
  key: "bot_message",
3118
- component: fe
3192
+ component: xe
3119
3193
  },
3120
3194
  {
3121
3195
  key: "agent_message",
3122
- component: fe
3196
+ component: xe
3123
3197
  }
3124
- ], tn = {
3198
+ ], an = {
3125
3199
  get: async (e) => localStorage.getItem(e),
3126
3200
  set: async (e, o) => {
3127
3201
  localStorage.setItem(e, o);
@@ -3129,23 +3203,23 @@ const en = [
3129
3203
  remove: async (e) => {
3130
3204
  localStorage.removeItem(e);
3131
3205
  }
3132
- }, rn = L.forwardRef(function({ options: o, components: t = [], loadingComponent: n }, s) {
3206
+ }, ln = L.forwardRef(function({ options: o, components: t = [], loadingComponent: n }, s) {
3133
3207
  return /* @__PURE__ */ r(
3134
- tr,
3208
+ ar,
3135
3209
  {
3136
- components: [...en, ...t],
3210
+ components: [...sn, ...t],
3137
3211
  options: o,
3138
- storage: tn,
3212
+ storage: an,
3139
3213
  loadingComponent: n,
3140
- children: /* @__PURE__ */ d(rr, { children: [
3141
- /* @__PURE__ */ r(Qo, { widgetRef: s }),
3142
- o.inline ? /* @__PURE__ */ r(Zt, {}) : /* @__PURE__ */ r(Jo, {})
3214
+ children: /* @__PURE__ */ d(ir, { children: [
3215
+ /* @__PURE__ */ r(on, { widgetRef: s }),
3216
+ o.inline ? /* @__PURE__ */ r(tr, {}) : /* @__PURE__ */ r(nn, {})
3143
3217
  ] })
3144
3218
  }
3145
3219
  );
3146
3220
  });
3147
- rn.displayName = "Widget";
3221
+ ln.displayName = "Widget";
3148
3222
  export {
3149
- rn as Widget
3223
+ ln as Widget
3150
3224
  };
3151
3225
  //# sourceMappingURL=index.js.map