@opencx/widget-react 4.0.59 → 4.0.61

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