@opencx/widget-react 4.0.47 → 4.0.49

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