@opencx/widget-react 4.0.16 → 4.0.18

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,66 +1,66 @@
1
- import { jsx as o, jsxs as d, Fragment as te } from "react/jsx-runtime";
2
- import * as ie from "@radix-ui/react-popover";
1
+ import { jsx as r, jsxs as d, Fragment as te } from "react/jsx-runtime";
2
+ import * as ae from "@radix-ui/react-popover";
3
3
  import * as G from "react";
4
- import $, { memo as Bt, forwardRef as it, useState as I, cloneElement as lt, createContext as Lt, useEffect as oe, useContext as Yt, useMemo as ct, useRef as le, createElement as tt } from "react";
5
- import { useWidget as j, useConfig as x, useDocumentDir as we, useWidgetRouter as B, useWidgetTrigger as K, useSessions as q, useMessages as R, useModes as dt, useCsat as pt, useUploadFiles as $t, useIsAwaitingBotReply as ht, useContact as qt, WidgetProvider as Ut, WidgetTriggerProvider as Vt } from "@opencx/widget-react-headless";
6
- import { clsx as Xt } from "clsx";
7
- import { twMerge as Gt } from "tailwind-merge";
8
- import { motion as Q, AnimatePresence as S } from "framer-motion";
9
- import { Slot as Kt } from "@radix-ui/react-slot";
10
- import { cva as Zt } from "class-variance-authority";
11
- import { X as Qt, CircleDashedIcon as Jt, XIcon as fe, SquareXIcon as eo, SquareCheckBigIcon as to, SquareCheckIcon as oo, ShrinkIcon as ro, Minimize2Icon as no, MinimizeIcon as so, Maximize2Icon as ao, MaximizeIcon as io, ExpandIcon as lo, CircleXIcon as co, CircleCheckBigIcon as po, CircleCheckIcon as mt, CheckCheckIcon as ho, CheckIcon as mo, ChevronLeftIcon as uo, LoaderIcon as go, ArrowUpIcon as ut, PaperclipIcon as wo, ImageIcon as fo, CircleDashed as vo, AlertCircle as bo, Loader2 as xo, FileAudio2Icon as yo, FileVideo2Icon as ko, FileIcon as Co, UserRoundIcon as zo, ChevronRightIcon as No, SendHorizontal as So, ChevronDownIcon as _o } from "lucide-react";
12
- import gt from "remark-gfm";
13
- import Io from "react-markdown";
14
- import wt from "rehype-raw";
15
- import { isExhaustive as D } from "@opencx/widget-core";
16
- import * as Z from "@radix-ui/react-avatar";
4
+ import Y, { memo as Wt, forwardRef as at, useState as I, cloneElement as lt, createContext as $t, useEffect as re, useContext as Bt, useMemo as ct, useRef as le, createElement as tt } from "react";
5
+ import { useWidget as j, useConfig as b, useDocumentDir as ue, useWidgetRouter as $, useWidgetTrigger as K, useSessions as q, useMessages as E, useModes as dt, useCsat as pt, useUploadFiles as Lt, useIsAwaitingBotReply as ht, useContact as Yt, WidgetProvider as qt, WidgetTriggerProvider as Xt } from "@opencx/widget-react-headless";
6
+ import { clsx as Ut } from "clsx";
7
+ import { twMerge as Vt } from "tailwind-merge";
8
+ import { motion as Z, AnimatePresence as S } from "framer-motion";
9
+ import { Slot as Gt } from "@radix-ui/react-slot";
10
+ import { cva as Kt } from "class-variance-authority";
11
+ import { X as Qt, CircleDashedIcon as Zt, XIcon as fe, SquareXIcon as Jt, SquareCheckBigIcon as er, SquareCheckIcon as tr, ShrinkIcon as rr, Minimize2Icon as or, MinimizeIcon as nr, Maximize2Icon as sr, MaximizeIcon as ir, ExpandIcon as ar, CircleXIcon as lr, CircleCheckBigIcon as cr, CircleCheckIcon as mt, CheckCheckIcon as dr, CheckIcon as pr, ChevronLeftIcon as hr, LoaderIcon as mr, ArrowUpIcon as gt, PaperclipIcon as gr, ImageIcon as wr, CircleDashed as ur, AlertCircle as fr, Loader2 as vr, FileAudio2Icon as xr, FileVideo2Icon as br, FileIcon as yr, UserRoundIcon as kr, ChevronRightIcon as Cr, SendHorizontal as zr, ChevronDownIcon as Nr } from "lucide-react";
12
+ import wt from "remark-gfm";
13
+ import Sr from "react-markdown";
14
+ import ut from "rehype-raw";
15
+ import { isExhaustive as D, isSupportedLanguage as _r, getTranslation as Ir } from "@opencx/widget-core";
16
+ import * as Q from "@radix-ui/react-avatar";
17
17
  import ft from "@uiw/react-iframe";
18
- import * as re from "@radix-ui/react-tooltip";
19
- import ot from "tinycolor2";
20
- import { useDropzone as To } from "react-dropzone";
21
- import Mo from "react-use/lib/useAsyncFn";
18
+ import * as oe from "@radix-ui/react-tooltip";
19
+ import rt from "tinycolor2";
20
+ import { useDropzone as Tr } from "react-dropzone";
21
+ import Mr from "react-use/lib/useAsyncFn";
22
22
  import { z as pe } from "zod";
23
- function u(e) {
23
+ function g(e) {
24
24
  return { "data-component": e };
25
25
  }
26
26
  function p(...e) {
27
- return Gt(Xt(e));
27
+ return Vt(Ut(e));
28
28
  }
29
- const X = {
29
+ const V = {
30
30
  x: 2,
31
31
  y: 2
32
- }, H = Bt(
33
- it(
34
- ({ children: e, className: r, scale: t = 1.02, off: n = !1 }, s) => {
35
- const [i, a] = I(!1), [c, l] = I({ x: 0, y: 0 });
32
+ }, H = Wt(
33
+ at(
34
+ ({ children: e, className: o, scale: t = 1.02, off: n = !1 }, s) => {
35
+ const [a, i] = I(!1), [c, l] = I({ x: 0, y: 0 });
36
36
  if (n || /translate/.test(
37
37
  e.props.className || ""
38
38
  )) return e;
39
- const b = (f) => {
39
+ const x = (f) => {
40
40
  var C, z;
41
- const { clientX: N, clientY: T } = f, _ = f.currentTarget.getBoundingClientRect(), M = N - (_.left + _.width / 2), A = T - (_.top + _.height / 2), P = Math.max(
41
+ const { clientX: N, clientY: T } = f, _ = f.currentTarget.getBoundingClientRect(), M = N - (_.left + _.width / 2), O = T - (_.top + _.height / 2), A = Math.max(
42
42
  -1,
43
43
  Math.min(1, M / (_.width / 2))
44
- ), W = Math.max(
44
+ ), F = Math.max(
45
45
  -1,
46
- Math.min(1, A / (_.height / 2))
47
- ), E = P * X.x, v = W * X.y;
48
- l({ x: E, y: v }), (z = (C = e.props).onMouseMove) == null || z.call(C, f);
49
- }, w = () => {
46
+ Math.min(1, O / (_.height / 2))
47
+ ), R = A * V.x, v = F * V.y;
48
+ l({ x: R, y: v }), (z = (C = e.props).onMouseMove) == null || z.call(C, f);
49
+ }, u = () => {
50
50
  var f, N;
51
- a(!0), (N = (f = e.props).onMouseEnter) == null || N.call(f);
51
+ i(!0), (N = (f = e.props).onMouseEnter) == null || N.call(f);
52
52
  }, m = () => {
53
53
  var f, N;
54
- a(!1), l({ x: 0, y: 0 }), (N = (f = e.props).onMouseLeave) == null || N.call(f);
54
+ i(!1), l({ x: 0, y: 0 }), (N = (f = e.props).onMouseLeave) == null || N.call(f);
55
55
  }, k = {
56
- "--wobble-x": i ? `${c.x}px` : "0px",
57
- "--wobble-y": i ? `${c.y}px` : "0px",
56
+ "--wobble-x": a ? `${c.x}px` : "0px",
57
+ "--wobble-y": a ? `${c.y}px` : "0px",
58
58
  "--scale": 1 - (t - 1)
59
59
  };
60
60
  return lt(e, {
61
61
  ref: s,
62
- onMouseMove: b,
63
- onMouseEnter: w,
62
+ onMouseMove: x,
63
+ onMouseEnter: u,
64
64
  onMouseLeave: m,
65
65
  style: {
66
66
  ...k,
@@ -70,7 +70,7 @@ const X = {
70
70
  "translate-x-[var(--wobble-x)]",
71
71
  "translate-y-[var(--wobble-y)]",
72
72
  "hover:scale-[var(--scale)] active:hover:scale-[calc(var(--scale)-0.02)]",
73
- r,
73
+ o,
74
74
  e.props.className,
75
75
  "transition-all ease-out"
76
76
  )
@@ -79,43 +79,43 @@ const X = {
79
79
  )
80
80
  );
81
81
  H.displayName = "Wobble";
82
- const Do = 10, jo = (e, r, t) => ({
83
- initial: { opacity: 0, x: -e, ...r.initial },
84
- animate: { opacity: 1, x: 0, ...r.animate, transition: { delay: t } },
85
- exit: { opacity: 0, x: e, ...r.exit }
86
- }), Eo = (e, r, t) => ({
87
- initial: { opacity: 0, x: e, ...r.initial },
88
- animate: { opacity: 1, x: 0, ...r.animate, transition: { delay: t } },
89
- exit: { opacity: 0, x: -e, ...r.exit }
90
- }), Ro = (e, r, t) => ({
91
- initial: { opacity: 0, y: e, ...r.initial },
92
- animate: { opacity: 1, y: 0, ...r.animate, transition: { delay: t } },
93
- exit: { opacity: 0, y: -e, ...r.exit }
94
- }), Oo = (e, r, t) => ({
95
- initial: { opacity: 0, y: -e, ...r.initial },
96
- animate: { opacity: 1, y: 0, ...r.animate, transition: { delay: t } },
97
- exit: { opacity: 0, y: e, ...r.exit }
98
- }), Ao = {
99
- right: jo,
100
- left: Eo,
101
- up: Ro,
102
- down: Oo
103
- }, g = it(
82
+ const Dr = 10, jr = (e, o, t) => ({
83
+ initial: { opacity: 0, x: -e, ...o.initial },
84
+ animate: { opacity: 1, x: 0, ...o.animate, transition: { delay: t } },
85
+ exit: { opacity: 0, x: e, ...o.exit }
86
+ }), Rr = (e, o, t) => ({
87
+ initial: { opacity: 0, x: e, ...o.initial },
88
+ animate: { opacity: 1, x: 0, ...o.animate, transition: { delay: t } },
89
+ exit: { opacity: 0, x: -e, ...o.exit }
90
+ }), Er = (e, o, t) => ({
91
+ initial: { opacity: 0, y: e, ...o.initial },
92
+ animate: { opacity: 1, y: 0, ...o.animate, transition: { delay: t } },
93
+ exit: { opacity: 0, y: -e, ...o.exit }
94
+ }), Pr = (e, o, t) => ({
95
+ initial: { opacity: 0, y: -e, ...o.initial },
96
+ animate: { opacity: 1, y: 0, ...o.animate, transition: { delay: t } },
97
+ exit: { opacity: 0, y: e, ...o.exit }
98
+ }), Or = {
99
+ right: jr,
100
+ left: Rr,
101
+ up: Er,
102
+ down: Pr
103
+ }, w = at(
104
104
  ({
105
105
  fadeIn: e = "down",
106
- distance: r = Do,
106
+ distance: o = Dr,
107
107
  children: t,
108
108
  snapExit: n = !1,
109
109
  overrides: s = {},
110
- delay: i = 0,
111
- ...a
110
+ delay: a = 0,
111
+ ...i
112
112
  }, c) => {
113
- const l = e ? Ao[e](r, s, i) : {};
114
- return n && l.exit && typeof l.exit == "object" && !Array.isArray(l.exit) && (l.exit.transition = { duration: 0 }), /* @__PURE__ */ o(Q.div, { ref: c, ...a, ...l, children: t });
113
+ const l = e ? Or[e](o, s, a) : {};
114
+ return n && l.exit && typeof l.exit == "object" && !Array.isArray(l.exit) && (l.exit.transition = { duration: 0 }), /* @__PURE__ */ r(Z.div, { ref: c, ...i, ...l, children: t });
115
115
  }
116
116
  );
117
- g.displayName = "MotionDiv";
118
- const Po = Zt(
117
+ w.displayName = "MotionDiv";
118
+ const Ar = Kt(
119
119
  p(
120
120
  "inline-flex shrink-0 items-center justify-center gap-2",
121
121
  "text-sm font-medium whitespace-nowrap",
@@ -155,22 +155,22 @@ const Po = Zt(
155
155
  }
156
156
  }
157
157
  ), y = G.forwardRef(
158
- ({ className: e, variant: r = "default", size: t, asChild: n = !1, ...s }, i) => /* @__PURE__ */ o(H, { ref: i, children: /* @__PURE__ */ o(
159
- n ? Kt : "button",
158
+ ({ className: e, variant: o = "default", size: t, asChild: n = !1, ...s }, a) => /* @__PURE__ */ r(H, { ref: a, children: /* @__PURE__ */ r(
159
+ n ? Gt : "button",
160
160
  {
161
- ...u("ui_lib/btn"),
162
- "data-variant": r,
163
- className: p(Po({ variant: r, size: t, className: e })),
161
+ ...g("ui_lib/btn"),
162
+ "data-variant": o,
163
+ className: p(Ar({ variant: o, size: t, className: e })),
164
164
  ...s
165
165
  }
166
166
  ) })
167
167
  );
168
168
  y.displayName = "Button";
169
- const vt = Lt(null);
170
- function Wo({ children: e }) {
171
- const [r, t] = I(!1), [n, s] = I(null), i = (c) => {
169
+ const vt = $t(null);
170
+ function Fr({ children: e }) {
171
+ const [o, t] = I(!1), [n, s] = I(null), a = (c) => {
172
172
  s(c), t(!0);
173
- }, a = () => {
173
+ }, i = () => {
174
174
  t(!1), setTimeout(() => {
175
175
  s(null);
176
176
  }, 200);
@@ -178,16 +178,16 @@ function Wo({ children: e }) {
178
178
  return /* @__PURE__ */ d(
179
179
  vt.Provider,
180
180
  {
181
- value: { open: i, close: a, isOpen: r, content: n },
181
+ value: { open: a, close: i, isOpen: o, content: n },
182
182
  children: [
183
- /* @__PURE__ */ o(Ho, {}),
183
+ /* @__PURE__ */ r(Hr, {}),
184
184
  e
185
185
  ]
186
186
  }
187
187
  );
188
188
  }
189
189
  function ce() {
190
- const e = Yt(vt);
190
+ const e = Bt(vt);
191
191
  return e || (console.error("useDialoger must be used within a DialogerProvider"), {
192
192
  open: () => {
193
193
  },
@@ -197,14 +197,14 @@ function ce() {
197
197
  content: null
198
198
  });
199
199
  }
200
- function Ho() {
201
- const { contentIframeRef: e } = j(), { isOpen: r, content: t, close: n } = ce();
202
- return oe(() => {
203
- var i, a;
200
+ function Hr() {
201
+ const { contentIframeRef: e } = j(), { isOpen: o, content: t, close: n } = ce();
202
+ return re(() => {
203
+ var a, i;
204
204
  const s = (c) => {
205
205
  c.key === "Escape" && n();
206
206
  };
207
- return (a = (i = e == null ? void 0 : e.current) == null ? void 0 : i.contentWindow) == null || a.document.addEventListener(
207
+ return (i = (a = e == null ? void 0 : e.current) == null ? void 0 : a.contentWindow) == null || i.document.addEventListener(
208
208
  "keydown",
209
209
  s
210
210
  ), () => {
@@ -214,8 +214,8 @@ function Ho() {
214
214
  s
215
215
  );
216
216
  };
217
- }, []), /* @__PURE__ */ o(S, { mode: "wait", children: r && t && /* @__PURE__ */ o(
218
- g,
217
+ }, []), /* @__PURE__ */ r(S, { mode: "wait", children: o && t && /* @__PURE__ */ r(
218
+ w,
219
219
  {
220
220
  overrides: {
221
221
  initial: { y: 0 },
@@ -229,9 +229,9 @@ function Ho() {
229
229
  "dialog-content"
230
230
  ) });
231
231
  }
232
- function bt({
232
+ function xt({
233
233
  children: e,
234
- className: r,
234
+ className: o,
235
235
  withClose: t = !1
236
236
  }) {
237
237
  const { close: n } = ce();
@@ -240,7 +240,7 @@ function bt({
240
240
  {
241
241
  className: p(
242
242
  "fixed left-[50%] top-[50%] z-50 flex flex-col gap-4 w-full max-w-[61.8%] translate-x-[-50%] translate-y-[-50%] border bg-background p-4 rounded-3xl",
243
- r
243
+ o
244
244
  ),
245
245
  onClick: (s) => s.stopPropagation(),
246
246
  children: [
@@ -253,8 +253,8 @@ function bt({
253
253
  variant: "secondary",
254
254
  onClick: n,
255
255
  children: [
256
- /* @__PURE__ */ o(Qt, { className: "h-4 w-4" }),
257
- /* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
256
+ /* @__PURE__ */ r(Qt, { className: "h-4 w-4" }),
257
+ /* @__PURE__ */ r("span", { className: "sr-only", children: "Close" })
258
258
  ]
259
259
  }
260
260
  )
@@ -262,34 +262,34 @@ function bt({
262
262
  }
263
263
  );
264
264
  }
265
- const xt = ({
265
+ const bt = ({
266
266
  className: e,
267
- ...r
268
- }) => /* @__PURE__ */ o(
267
+ ...o
268
+ }) => /* @__PURE__ */ r(
269
269
  "div",
270
270
  {
271
271
  className: p("flex flex-col gap-2 text-center pt-2", e),
272
- ...r
272
+ ...o
273
273
  }
274
274
  );
275
- xt.displayName = "DialogerHeader";
275
+ bt.displayName = "DialogerHeader";
276
276
  const yt = ({
277
277
  className: e,
278
- ...r
279
- }) => /* @__PURE__ */ o(
278
+ ...o
279
+ }) => /* @__PURE__ */ r(
280
280
  "div",
281
281
  {
282
282
  className: p("flex flex-col gap-2 text-center", e),
283
- ...r
283
+ ...o
284
284
  }
285
285
  );
286
286
  yt.displayName = "DialogerBody";
287
287
  const kt = ({
288
288
  className: e,
289
- ...r
290
- }) => /* @__PURE__ */ o("div", { className: p("flex flex-col gap-2", e), ...r });
289
+ ...o
290
+ }) => /* @__PURE__ */ r("div", { className: p("flex flex-col gap-2", e), ...o });
291
291
  kt.displayName = "DialogerFooter";
292
- const Ct = $.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ o(
292
+ const Ct = Y.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
293
293
  "p",
294
294
  {
295
295
  ref: t,
@@ -297,38 +297,38 @@ const Ct = $.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ o(
297
297
  "text-lg font-semibold leading-none tracking-tight",
298
298
  e
299
299
  ),
300
- ...r
300
+ ...o
301
301
  }
302
302
  ));
303
303
  Ct.displayName = "DialogerTitle";
304
- const zt = $.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ o(
304
+ const zt = Y.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
305
305
  "p",
306
306
  {
307
307
  ref: t,
308
308
  className: p("text-sm text-muted-foreground", e),
309
- ...r
309
+ ...o
310
310
  }
311
311
  ));
312
312
  zt.displayName = "DialogerDescription";
313
313
  function Nt({
314
314
  children: e,
315
- trigger: r
315
+ trigger: o
316
316
  }) {
317
317
  const { open: t } = ce();
318
- return lt(r, {
318
+ return lt(o, {
319
319
  onClick: () => t(e)
320
320
  });
321
321
  }
322
322
  function St({ attachment: e }) {
323
- const { name: r, size: t, type: n, url: s } = e, i = n.startsWith("image/"), a = n.startsWith("video/"), c = n.startsWith("audio/");
324
- return c ? /* @__PURE__ */ o(H, { children: /* @__PURE__ */ o("div", { className: "w-full shrink-0 overflow-hidden", children: /* @__PURE__ */ d("audio", { controls: !0, className: "w-full", children: [
325
- /* @__PURE__ */ o("source", { src: s, type: n }),
323
+ const { name: o, size: t, type: n, url: s } = e, a = n.startsWith("image/"), i = n.startsWith("video/"), c = n.startsWith("audio/");
324
+ return c ? /* @__PURE__ */ r(H, { children: /* @__PURE__ */ r("div", { className: "w-full shrink-0 overflow-hidden", children: /* @__PURE__ */ d("audio", { controls: !0, className: "w-full", children: [
325
+ /* @__PURE__ */ r("source", { src: s, type: n }),
326
326
  "Your browser does not support the audio tag."
327
- ] }) }) }) : a ? /* @__PURE__ */ o(H, { children: /* @__PURE__ */ o("div", { className: "w-full border shrink-0 rounded-2xl overflow-hidden", children: /* @__PURE__ */ d("video", { controls: !0, children: [
328
- /* @__PURE__ */ o("source", { src: s, type: n }),
327
+ ] }) }) }) : i ? /* @__PURE__ */ r(H, { children: /* @__PURE__ */ r("div", { className: "w-full border shrink-0 rounded-2xl overflow-hidden", children: /* @__PURE__ */ d("video", { controls: !0, children: [
328
+ /* @__PURE__ */ r("source", { src: s, type: n }),
329
329
  "Your browser does not support the video tag."
330
- ] }) }) }) : !i && !a && !c ? /* @__PURE__ */ o(H, { children: /* @__PURE__ */ o("div", { className: "size-fit border shrink-0 rounded-2xl overflow-hidden", children: /* @__PURE__ */ d("div", { className: "flex items-end gap-2 p-2", children: [
331
- /* @__PURE__ */ o(
330
+ ] }) }) }) : !a && !i && !c ? /* @__PURE__ */ r(H, { children: /* @__PURE__ */ r("div", { className: "size-fit border shrink-0 rounded-2xl overflow-hidden", children: /* @__PURE__ */ d("div", { className: "flex items-end gap-2 p-2", children: [
331
+ /* @__PURE__ */ r(
332
332
  "a",
333
333
  {
334
334
  href: s,
@@ -339,47 +339,47 @@ function St({ attachment: e }) {
339
339
  "break-words [word-break:break-word]"
340
340
  // `[word-break:break-word]` is deprecated but works in the browser, while `break-words` which is `[overflow-wrap: break-word]` does not work
341
341
  ),
342
- children: r
342
+ children: o
343
343
  }
344
344
  ),
345
345
  /* @__PURE__ */ d("span", { className: "text-xs text-muted-foreground whitespace-nowrap", children: [
346
346
  (t / 1024).toFixed(2),
347
347
  " KB"
348
348
  ] })
349
- ] }) }) }) : /* @__PURE__ */ o(
349
+ ] }) }) }) : /* @__PURE__ */ r(
350
350
  Nt,
351
351
  {
352
- trigger: /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(H, { children: /* @__PURE__ */ o("div", { className: "size-fit border shrink-0 rounded-2xl overflow-hidden", children: i && /* @__PURE__ */ o("img", { src: s, className: "object-cover size-16", alt: r }) }) }) }),
353
- children: /* @__PURE__ */ o(
354
- bt,
352
+ trigger: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(H, { children: /* @__PURE__ */ r("div", { className: "size-fit border shrink-0 rounded-2xl overflow-hidden", children: a && /* @__PURE__ */ r("img", { src: s, className: "object-cover size-16", alt: o }) }) }) }),
353
+ children: /* @__PURE__ */ r(
354
+ xt,
355
355
  {
356
356
  className: "size-full max-w-full rounded-3xl flex items-center justify-center bg-transparent border-none gap-0",
357
357
  withClose: !0,
358
- children: i && /* @__PURE__ */ o("div", { className: "size-fit shrink-0 rounded-2xl overflow-hidden max-h-full", children: /* @__PURE__ */ o("img", { src: s, className: "object-cover size-auto", alt: r }) })
358
+ children: a && /* @__PURE__ */ r("div", { className: "size-fit shrink-0 rounded-2xl overflow-hidden max-h-full", children: /* @__PURE__ */ r("img", { src: s, className: "object-cover size-auto", alt: o }) })
359
359
  }
360
360
  )
361
361
  }
362
362
  );
363
363
  }
364
- const _t = $.memo(
365
- Io,
366
- (e, r) => e.children === r.children && e.className === r.className
364
+ const _t = Y.memo(
365
+ Sr,
366
+ (e, o) => e.children === o.children && e.className === o.className
367
367
  );
368
368
  function It({
369
369
  children: e,
370
- messageType: r,
370
+ messageType: o,
371
371
  messageId: t
372
372
  }) {
373
- const { anchorTarget: n } = x();
374
- return /* @__PURE__ */ o(
373
+ const { anchorTarget: n } = b();
374
+ return /* @__PURE__ */ r(
375
375
  _t,
376
376
  {
377
- "data-type": r,
377
+ "data-type": o,
378
378
  "data-id": t,
379
- remarkPlugins: [gt],
380
- rehypePlugins: [wt],
379
+ remarkPlugins: [wt],
380
+ rehypePlugins: [ut],
381
381
  components: {
382
- a: ({ children: s, ...i }) => /* @__PURE__ */ o("a", { target: n ?? "_top", ...i, children: s })
382
+ a: ({ children: s, ...a }) => /* @__PURE__ */ r("a", { target: n ?? "_top", ...a, children: s })
383
383
  },
384
384
  children: e
385
385
  }
@@ -387,34 +387,34 @@ function It({
387
387
  }
388
388
  function he({
389
389
  data: e,
390
- id: r,
390
+ id: o,
391
391
  type: t,
392
392
  attachments: n,
393
393
  isFirstInGroup: s,
394
- isLastInGroup: i,
395
- isAloneInGroup: a,
394
+ isLastInGroup: a,
395
+ isAloneInGroup: i,
396
396
  dataComponentNames: c,
397
397
  classNames: l
398
398
  }) {
399
399
  if (t !== "AI" && t !== "AGENT") return null;
400
- const { message: h, variant: b = "default" } = e;
401
- return b === "error" ? /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o("div", { className: "flex flex-row flex-wrap items-center justify-start", children: /* @__PURE__ */ o("div", { className: "leading-snug text-sm text-destructive", children: h }) }) }) : /* @__PURE__ */ d(
400
+ const { message: h, variant: x = "default" } = e;
401
+ return x === "error" ? /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r("div", { className: "flex flex-row flex-wrap items-center justify-start", children: /* @__PURE__ */ r("div", { className: "leading-snug text-sm text-destructive", children: h }) }) }) : /* @__PURE__ */ d(
402
402
  "div",
403
403
  {
404
- ...u((c == null ? void 0 : c.messageContainer) ?? "chat/agent_msg/root"),
404
+ ...g((c == null ? void 0 : c.messageContainer) ?? "chat/agent_msg/root"),
405
405
  className: p(
406
406
  "w-5/6 flex flex-col items-start gap-1",
407
407
  l == null ? void 0 : l.messageContainer
408
408
  ),
409
409
  children: [
410
- n && n.length > 0 && /* @__PURE__ */ o("div", { className: "w-full gap-1 flex flex-row flex-wrap items-center justify-start", children: n == null ? void 0 : n.map((w) => /* @__PURE__ */ o(St, { attachment: w }, w.id)) }),
411
- h.length > 0 && /* @__PURE__ */ o(
410
+ n && n.length > 0 && /* @__PURE__ */ r("div", { className: "w-full gap-1 flex flex-row flex-wrap items-center justify-start", children: n == null ? void 0 : n.map((u) => /* @__PURE__ */ r(St, { attachment: u }, u.id)) }),
411
+ h.length > 0 && /* @__PURE__ */ r(
412
412
  "div",
413
413
  {
414
- ...u((c == null ? void 0 : c.message) ?? "chat/agent_msg/msg"),
414
+ ...g((c == null ? void 0 : c.message) ?? "chat/agent_msg/msg"),
415
415
  "data-first": s,
416
- "data-last": i,
417
- "data-alone": a,
416
+ "data-last": a,
417
+ "data-alone": i,
418
418
  className: p(
419
419
  "transition-all",
420
420
  "w-fit py-3 px-4 rounded-3xl bg-secondary text-secondary-foreground",
@@ -424,23 +424,23 @@ function he({
424
424
  // 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
425
425
  // Adding "whitespace-pre-wrap" will result in unnecessarily huge line breaks
426
426
  // We're using the booleans directly here, not the data attributes, to make any external styling more specific than this
427
- s && !a && "rounded-bl-md",
428
- i && !a && "rounded-tl-md",
429
- !s && !i && !a && "rounded-l-md",
427
+ s && !i && "rounded-bl-md",
428
+ a && !i && "rounded-tl-md",
429
+ !s && !a && !i && "rounded-l-md",
430
430
  l == null ? void 0 : l.message
431
431
  ),
432
- children: /* @__PURE__ */ o(It, { messageType: t, messageId: r, children: h })
432
+ children: /* @__PURE__ */ r(It, { messageType: t, messageId: o, children: h })
433
433
  }
434
434
  )
435
435
  ]
436
436
  }
437
437
  );
438
438
  }
439
- function Fo(e) {
440
- return /* @__PURE__ */ o("div", { className: "w-full max-w-full overflow-auto shrink-0", children: /* @__PURE__ */ o("pre", { className: "text-xs leading-tight whitespace-pre-wrap break-word", children: JSON.stringify(e, null, 1) }) });
439
+ function Wr(e) {
440
+ 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) }) });
441
441
  }
442
- const ve = G.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ o(
443
- Z.Root,
442
+ const ve = G.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
443
+ Q.Root,
444
444
  {
445
445
  ref: t,
446
446
  className: p(
@@ -448,61 +448,61 @@ const ve = G.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ o(
448
448
  // 'border',
449
449
  e
450
450
  ),
451
- ...r
451
+ ...o
452
452
  }
453
453
  ));
454
- ve.displayName = Z.Root.displayName;
455
- const be = G.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ o(
456
- Z.Image,
454
+ ve.displayName = Q.Root.displayName;
455
+ const xe = G.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
456
+ Q.Image,
457
457
  {
458
458
  ref: t,
459
459
  className: p("aspect-square h-full w-full", e),
460
- ...r
460
+ ...o
461
461
  }
462
462
  ));
463
- be.displayName = Z.Image.displayName;
464
- const xe = G.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ o(
465
- Z.Fallback,
463
+ xe.displayName = Q.Image.displayName;
464
+ const be = G.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
465
+ Q.Fallback,
466
466
  {
467
467
  ref: t,
468
468
  className: p(
469
469
  "flex size-full text-xs items-center justify-center rounded-lg",
470
470
  e
471
471
  ),
472
- ...r
472
+ ...o
473
473
  }
474
474
  ));
475
- xe.displayName = Z.Fallback.displayName;
475
+ be.displayName = Q.Fallback.displayName;
476
476
  function me({
477
477
  agent: e,
478
- ...r
478
+ ...o
479
479
  }) {
480
480
  var t, n;
481
- return /* @__PURE__ */ d(ve, { ...r, children: [
482
- /* @__PURE__ */ o(be, { src: (e == null ? void 0 : e.avatar) ?? "", alt: "Agent Icon" }),
483
- (e == null ? void 0 : e.name) && /* @__PURE__ */ o(xe, { children: (n = (t = e == null ? void 0 : e.name) == null ? void 0 : t.slice(0, 1)) == null ? void 0 : n.toUpperCase() })
481
+ return /* @__PURE__ */ d(ve, { ...o, children: [
482
+ /* @__PURE__ */ r(xe, { src: (e == null ? void 0 : e.avatar) ?? "", alt: "Agent Icon" }),
483
+ (e == null ? void 0 : e.name) && /* @__PURE__ */ r(be, { children: (n = (t = e == null ? void 0 : e.name) == null ? void 0 : t.slice(0, 1)) == null ? void 0 : n.toUpperCase() })
484
484
  ] });
485
485
  }
486
- function Bo({ agent: e }) {
487
- return /* @__PURE__ */ o(S, { children: /* @__PURE__ */ d(
488
- g,
486
+ function $r({ agent: e }) {
487
+ return /* @__PURE__ */ r(S, { children: /* @__PURE__ */ d(
488
+ w,
489
489
  {
490
- ...u("chat/bot_loading/root"),
490
+ ...g("chat/bot_loading/root"),
491
491
  className: "flex flex-row items-end w-full gap-2 animate-pulse",
492
492
  children: [
493
- /* @__PURE__ */ o(me, { agent: e }),
493
+ /* @__PURE__ */ r(me, { agent: e }),
494
494
  /* @__PURE__ */ d(
495
495
  "div",
496
496
  {
497
- ...u("chat/bot_loading/bouncing_dots_container"),
497
+ ...g("chat/bot_loading/bouncing_dots_container"),
498
498
  className: p(
499
499
  "flex items-center [&_span]:bg-secondary-foreground [&_span]:size-1 gap-1 p-2 rounded-xl bg-secondary"
500
500
  // 'border',
501
501
  ),
502
502
  children: [
503
- /* @__PURE__ */ o(Q.span, { className: "rounded-full animate-bounce [animation-delay:-0.3s]" }),
504
- /* @__PURE__ */ o(Q.span, { className: "rounded-full animate-bounce [animation-delay:-0.15s]" }),
505
- /* @__PURE__ */ o(Q.span, { className: "rounded-full animate-bounce" })
503
+ /* @__PURE__ */ r(Z.span, { className: "rounded-full animate-bounce [animation-delay:-0.3s]" }),
504
+ /* @__PURE__ */ r(Z.span, { className: "rounded-full animate-bounce [animation-delay:-0.15s]" }),
505
+ /* @__PURE__ */ r(Z.span, { className: "rounded-full animate-bounce" })
506
506
  ]
507
507
  }
508
508
  )
@@ -510,11 +510,11 @@ function Bo({ agent: e }) {
510
510
  }
511
511
  ) });
512
512
  }
513
- const Tt = '@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..700;1,14..32,100..700&display=swap";@import"https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*{-ms-overflow-style:none;scrollbar-width:none}*::-webkit-scrollbar{display:none}*{border-color:hsl(var(--opencx-border))}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%),0 3px rgb(var(--tw-prose-kbd-shadows) / 10%);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-kbd: #111827;--tw-prose-kbd-shadows: 17 24 39;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.end-6{inset-inline-end:1.5rem}.left-2{left:.5rem}.left-\\[50\\%\\]{left:50%}.right-4{right:1rem}.top-4{top:1rem}.top-6{top:1.5rem}.top-\\[50\\%\\]{top:50%}.isolate{isolation:isolate}.z-10{z-index:10}.z-50{z-index:50}.m-2{margin:.5rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ms-auto{margin-inline-start:auto}.mt-0\\.5{margin-top:.125rem}.mt-auto{margin-top:auto}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.size-0{width:0px;height:0px}.size-10{width:2.5rem;height:2.5rem}.size-12{width:3rem;height:3rem}.size-16{width:4rem;height:4rem}.size-3{width:.75rem;height:.75rem}.size-4{width:1rem;height:1rem}.size-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.size-auto{width:auto;height:auto}.size-fit{width:fit-content;height:fit-content}.size-full{width:100%;height:100%}.h-0{height:0px}.h-10{height:2.5rem}.h-2{height:.5rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-full{height:100%}.h-px{height:1px}.max-h-16{max-height:4rem}.max-h-40{max-height:10rem}.max-h-full{max-height:100%}.min-h-12{min-height:3rem}.w-0{width:0px}.w-1\\/2{width:50%}.w-10{width:2.5rem}.w-2{width:.5rem}.w-2\\/5{width:40%}.w-3\\.5{width:.875rem}.w-3\\/5{width:60%}.w-4{width:1rem}.w-5\\/6{width:83.333333%}.w-60{width:15rem}.w-9{width:2.25rem}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.min-w-80{min-width:20rem}.min-w-\\[8rem\\]{min-width:8rem}.max-w-96{max-width:24rem}.max-w-\\[61\\.8\\%\\]{max-width:61.8%}.max-w-full{max-width:100%}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.translate-x-\\[-50\\%\\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[var\\(--wobble-x\\)\\]{--tw-translate-x: var(--wobble-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[-50\\%\\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[var\\(--wobble-y\\)\\]{--tw-translate-y: var(--wobble-y);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-\\[1px\\]{gap:1px}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.scroll-smooth{scroll-behavior:smooth}.text-ellipsis{text-overflow:ellipsis}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-\\[20px\\]{border-radius:20px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-l-md{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.rounded-r-md{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-bl-md{border-bottom-left-radius:.375rem}.rounded-br-md{border-bottom-right-radius:.375rem}.rounded-tl-md{border-top-left-radius:.375rem}.rounded-tr-md{border-top-right-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-none{border-style:none}.border-transparent{border-color:transparent}.bg-\\[white\\]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-background{background-color:hsl(var(--opencx-background))}.bg-black\\/50{background-color:#00000080}.bg-black\\/60{background-color:#0009}.bg-destructive{background-color:hsl(var(--opencx-destructive))}.bg-muted{background-color:hsl(var(--opencx-muted))}.bg-primary{background-color:hsl(var(--opencx-primary))}.bg-secondary{background-color:hsl(var(--opencx-secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-\\[radial-gradient\\(ellipse_at_top_left\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\,radial-gradient\\(ellipse_at_top_right\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\]{background-image:radial-gradient(ellipse at top left,hsl(var(--opencx-primary)),transparent),radial-gradient(ellipse at top right,hsl(var(--opencx-primary)),transparent)}.fill-current{fill:currentColor}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-0{padding-bottom:0}.pb-2{padding-bottom:.5rem}.pe-2{padding-inline-end:.5rem}.pe-4{padding-inline-end:1rem}.ps-2{padding-inline-start:.5rem}.ps-4{padding-inline-start:1rem}.ps-8{padding-inline-start:2rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.text-center{text-align:center}.text-start{text-align:start}.align-middle{vertical-align:middle}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-\\[1\\.75rem\\]{font-size:1.75rem}.text-\\[10px\\]{font-size:10px}.text-\\[16px\\]{font-size:16px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-none{line-height:1}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-destructive{color:hsl(var(--opencx-destructive))}.text-destructive-foreground{color:hsl(var(--opencx-destructive-foreground))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}.text-foreground{color:hsl(var(--opencx-foreground))}.text-muted-foreground{color:hsl(var(--opencx-muted-foreground))}.text-muted-foreground\\/70{color:hsl(var(--opencx-muted-foreground) / .7)}.text-muted-foreground\\/75{color:hsl(var(--opencx-muted-foreground) / .75)}.text-primary{color:hsl(var(--opencx-primary))}.text-primary-foreground{color:hsl(var(--opencx-primary-foreground))}.text-secondary-foreground{color:hsl(var(--opencx-secondary-foreground))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-35{opacity:.35}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-95{opacity:.95}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-8{outline-width:8px}.outline-background{outline-color:hsl(var(--opencx-background))}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-offset-background{--tw-ring-offset-color: hsl(var(--opencx-background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[height\\]{transition-property:height;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.\\[animation-delay\\:-0\\.15s\\]{animation-delay:-.15s}.\\[animation-delay\\:-0\\.3s\\]{animation-delay:-.3s}.\\[field-sizing\\:content\\;\\],.\\[field-sizing\\:content\\]{field-sizing:content}.\\[word-break\\:break-word\\]{word-break:break-word}.required:after{content:" *";color:red}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.file\\:text-primary-foreground::file-selector-button{color:hsl(var(--opencx-primary-foreground))}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--opencx-muted-foreground))}.placeholder\\:text-muted-foreground\\/75::placeholder{color:hsl(var(--opencx-muted-foreground) / .75)}.focus-within\\:border-primary:focus-within{border-color:hsl(var(--opencx-primary))}.hover\\:scale-\\[var\\(--scale\\)\\]:hover{--tw-scale-x: var(--scale);--tw-scale-y: var(--scale);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:border-primary:hover{border-color:hsl(var(--opencx-primary))}.hover\\:bg-secondary:hover{background-color:hsl(var(--opencx-secondary))}.hover\\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.hover\\:text-primary:hover{color:hsl(var(--opencx-primary))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.focus\\:bg-accent:focus{background-color:hsl(var(--opencx-accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--opencx-accent-foreground))}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--opencx-ring))}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--opencx-background))}.active\\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\\:hover\\:scale-\\[calc\\(var\\(--scale\\)-0\\.02\\)\\]:hover:active{--tw-scale-x: calc(var(--scale) - .02);--tw-scale-y: calc(var(--scale) - .02);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:active\\:scale-95:active:hover{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\\:opacity-100{opacity:1}.group:hover .group-hover\\:active\\:scale-90:active,.group:active .group-active\\:scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[state\\=checked\\]\\:translate-x-4[data-state=checked]{--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:hsl(var(--opencx-primary))}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--opencx-accent))}.data-\\[state\\=unchecked\\]\\:bg-input[data-state=unchecked]{background-color:hsl(var(--opencx-input))}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.prose-a\\:underline :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-line:underline}.prose-a\\:decoration-primary :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-color:hsl(var(--opencx-primary))}.rtl\\:-scale-100:where([dir=rtl],[dir=rtl] *){--tw-scale-x: -1;--tw-scale-y: -1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\\[\\&_span\\]\\:size-1 span{width:.25rem;height:.25rem}.\\[\\&_span\\]\\:bg-secondary-foreground span{background-color:hsl(var(--opencx-secondary-foreground))}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:size-4 svg{width:1rem;height:1rem}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_svg\\]\\:text-muted-foreground\\/70 svg{color:hsl(var(--opencx-muted-foreground) / .7)}.\\[\\&_svg\\]\\:hover\\:text-primary:hover svg{color:hsl(var(--opencx-primary))}', Lo = re.Provider, Yo = re.Root, $o = re.Trigger, Mt = G.forwardRef(({ className: e, sideOffset: r = 4, ...t }, n) => /* @__PURE__ */ o(
514
- re.Content,
513
+ const Tt = '@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..700;1,14..32,100..700&display=swap";@import"https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*{-ms-overflow-style:none;scrollbar-width:none}*::-webkit-scrollbar{display:none}*{border-color:hsl(var(--opencx-border))}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%),0 3px rgb(var(--tw-prose-kbd-shadows) / 10%);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-kbd: #111827;--tw-prose-kbd-shadows: 17 24 39;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.end-6{inset-inline-end:1.5rem}.left-2{left:.5rem}.left-\\[50\\%\\]{left:50%}.right-4{right:1rem}.top-4{top:1rem}.top-6{top:1.5rem}.top-\\[50\\%\\]{top:50%}.isolate{isolation:isolate}.z-10{z-index:10}.z-50{z-index:50}.m-2{margin:.5rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ms-auto{margin-inline-start:auto}.mt-0\\.5{margin-top:.125rem}.mt-auto{margin-top:auto}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.size-0{width:0px;height:0px}.size-10{width:2.5rem;height:2.5rem}.size-12{width:3rem;height:3rem}.size-16{width:4rem;height:4rem}.size-3{width:.75rem;height:.75rem}.size-4{width:1rem;height:1rem}.size-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.size-auto{width:auto;height:auto}.size-fit{width:fit-content;height:fit-content}.size-full{width:100%;height:100%}.h-0{height:0px}.h-10{height:2.5rem}.h-2{height:.5rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-full{height:100%}.h-px{height:1px}.max-h-16{max-height:4rem}.max-h-40{max-height:10rem}.max-h-full{max-height:100%}.min-h-12{min-height:3rem}.w-0{width:0px}.w-1\\/2{width:50%}.w-10{width:2.5rem}.w-2{width:.5rem}.w-2\\/5{width:40%}.w-3\\.5{width:.875rem}.w-3\\/5{width:60%}.w-4{width:1rem}.w-5\\/6{width:83.333333%}.w-60{width:15rem}.w-9{width:2.25rem}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.min-w-80{min-width:20rem}.min-w-\\[8rem\\]{min-width:8rem}.max-w-96{max-width:24rem}.max-w-\\[61\\.8\\%\\]{max-width:61.8%}.max-w-full{max-width:100%}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.translate-x-\\[-50\\%\\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[var\\(--wobble-x\\)\\]{--tw-translate-x: var(--wobble-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[-50\\%\\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[var\\(--wobble-y\\)\\]{--tw-translate-y: var(--wobble-y);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-\\[1px\\]{gap:1px}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.scroll-smooth{scroll-behavior:smooth}.text-ellipsis{text-overflow:ellipsis}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-\\[20px\\]{border-radius:20px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-l-md{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.rounded-r-md{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-bl-md{border-bottom-left-radius:.375rem}.rounded-br-md{border-bottom-right-radius:.375rem}.rounded-tl-md{border-top-left-radius:.375rem}.rounded-tr-md{border-top-right-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-none{border-style:none}.border-transparent{border-color:transparent}.bg-\\[white\\]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-background{background-color:hsl(var(--opencx-background))}.bg-black\\/50{background-color:#00000080}.bg-black\\/60{background-color:#0009}.bg-destructive{background-color:hsl(var(--opencx-destructive))}.bg-muted{background-color:hsl(var(--opencx-muted))}.bg-primary{background-color:hsl(var(--opencx-primary))}.bg-secondary{background-color:hsl(var(--opencx-secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-\\[radial-gradient\\(ellipse_at_top_left\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\,radial-gradient\\(ellipse_at_top_right\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\]{background-image:radial-gradient(ellipse at top left,hsl(var(--opencx-primary)),transparent),radial-gradient(ellipse at top right,hsl(var(--opencx-primary)),transparent)}.fill-current{fill:currentColor}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-0{padding-bottom:0}.pb-2{padding-bottom:.5rem}.pe-2{padding-inline-end:.5rem}.pe-4{padding-inline-end:1rem}.ps-2{padding-inline-start:.5rem}.ps-4{padding-inline-start:1rem}.ps-8{padding-inline-start:2rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.text-center{text-align:center}.text-start{text-align:start}.align-middle{vertical-align:middle}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-\\[1\\.75rem\\]{font-size:1.75rem}.text-\\[10px\\]{font-size:10px}.text-\\[16px\\]{font-size:16px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-none{line-height:1}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-destructive{color:hsl(var(--opencx-destructive))}.text-destructive-foreground{color:hsl(var(--opencx-destructive-foreground))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}.text-foreground{color:hsl(var(--opencx-foreground))}.text-muted-foreground{color:hsl(var(--opencx-muted-foreground))}.text-muted-foreground\\/70{color:hsl(var(--opencx-muted-foreground) / .7)}.text-muted-foreground\\/75{color:hsl(var(--opencx-muted-foreground) / .75)}.text-primary{color:hsl(var(--opencx-primary))}.text-primary-foreground{color:hsl(var(--opencx-primary-foreground))}.text-secondary-foreground{color:hsl(var(--opencx-secondary-foreground))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-35{opacity:.35}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-95{opacity:.95}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-8{outline-width:8px}.outline-background{outline-color:hsl(var(--opencx-background))}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-offset-background{--tw-ring-offset-color: hsl(var(--opencx-background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[height\\]{transition-property:height;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.\\[animation-delay\\:-0\\.15s\\]{animation-delay:-.15s}.\\[animation-delay\\:-0\\.3s\\]{animation-delay:-.3s}.\\[field-sizing\\:content\\;\\],.\\[field-sizing\\:content\\]{field-sizing:content}.\\[word-break\\:break-word\\]{word-break:break-word}.required:after{content:" *";color:red}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.file\\:text-primary-foreground::file-selector-button{color:hsl(var(--opencx-primary-foreground))}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--opencx-muted-foreground))}.placeholder\\:text-muted-foreground\\/75::placeholder{color:hsl(var(--opencx-muted-foreground) / .75)}.focus-within\\:border-primary:focus-within{border-color:hsl(var(--opencx-primary))}.hover\\:scale-\\[var\\(--scale\\)\\]:hover{--tw-scale-x: var(--scale);--tw-scale-y: var(--scale);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:border-primary:hover{border-color:hsl(var(--opencx-primary))}.hover\\:bg-secondary:hover{background-color:hsl(var(--opencx-secondary))}.hover\\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.hover\\:text-primary:hover{color:hsl(var(--opencx-primary))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.focus\\:bg-accent:focus{background-color:hsl(var(--opencx-accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--opencx-accent-foreground))}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--opencx-ring))}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--opencx-background))}.active\\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\\:hover\\:scale-\\[calc\\(var\\(--scale\\)-0\\.02\\)\\]:hover:active{--tw-scale-x: calc(var(--scale) - .02);--tw-scale-y: calc(var(--scale) - .02);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:active\\:scale-95:active:hover{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\\:opacity-100{opacity:1}.group:hover .group-hover\\:active\\:scale-90:active,.group:active .group-active\\:scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[state\\=checked\\]\\:translate-x-4[data-state=checked]{--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:hsl(var(--opencx-primary))}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--opencx-accent))}.data-\\[state\\=unchecked\\]\\:bg-input[data-state=unchecked]{background-color:hsl(var(--opencx-input))}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.prose-a\\:underline :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-line:underline}.prose-a\\:decoration-primary :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-color:hsl(var(--opencx-primary))}.rtl\\:-scale-100:where([dir=rtl],[dir=rtl] *){--tw-scale-x: -1;--tw-scale-y: -1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\\[\\&_span\\]\\:size-1 span{width:.25rem;height:.25rem}.\\[\\&_span\\]\\:bg-secondary-foreground span{background-color:hsl(var(--opencx-secondary-foreground))}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:size-4 svg{width:1rem;height:1rem}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_svg\\]\\:text-muted-foreground\\/70 svg{color:hsl(var(--opencx-muted-foreground) / .7)}.\\[\\&_svg\\]\\:hover\\:text-primary:hover svg{color:hsl(var(--opencx-primary))}', Br = oe.Provider, Lr = oe.Root, Yr = oe.Trigger, Mt = G.forwardRef(({ className: e, sideOffset: o = 4, ...t }, n) => /* @__PURE__ */ r(
514
+ oe.Content,
515
515
  {
516
516
  ref: n,
517
- sideOffset: r,
517
+ sideOffset: o,
518
518
  className: p(
519
519
  "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",
520
520
  e
@@ -522,34 +522,34 @@ const Tt = '@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wgh
522
522
  ...t
523
523
  }
524
524
  ));
525
- Mt.displayName = re.Content.displayName;
525
+ Mt.displayName = oe.Content.displayName;
526
526
  function J({
527
527
  children: e,
528
- content: r,
528
+ content: o,
529
529
  side: t,
530
530
  align: n
531
531
  }) {
532
- const { disableTooltips: s } = x();
533
- return !r || s ? e : /* @__PURE__ */ d(Yo, { children: [
534
- /* @__PURE__ */ o($o, { asChild: !0, children: e }),
535
- /* @__PURE__ */ o(
532
+ const { disableTooltips: s } = b();
533
+ return !o || s ? e : /* @__PURE__ */ d(Lr, { children: [
534
+ /* @__PURE__ */ r(Yr, { asChild: !0, children: e }),
535
+ /* @__PURE__ */ r(
536
536
  Mt,
537
537
  {
538
538
  side: t,
539
539
  align: n,
540
540
  collisionPadding: 8,
541
541
  avoidCollisions: !0,
542
- children: r
542
+ children: o
543
543
  }
544
544
  )
545
545
  ] });
546
546
  }
547
- const rt = 450;
548
- function O() {
549
- const [e, r] = $.useState(() => (window.top || window).innerWidth < rt);
550
- return $.useEffect(() => {
547
+ const ot = 450;
548
+ function P() {
549
+ const [e, o] = Y.useState(() => (window.top || window).innerWidth < ot);
550
+ return Y.useEffect(() => {
551
551
  const t = window.top || window, n = () => {
552
- r(t.innerWidth < rt);
552
+ o(t.innerWidth < ot);
553
553
  };
554
554
  return n(), t.addEventListener("resize", n), () => {
555
555
  t.removeEventListener("resize", n);
@@ -560,93 +560,93 @@ const se = {
560
560
  transitionTimingFunction: "cubic-bezier(0.16, 1, 0.3, 1)",
561
561
  transitionDuration: "1000ms"
562
562
  };
563
- function U() {
564
- var w, m, k, f, N, T, _, M, A, P, W, E, v, C, z, L, ne, Ne, Se, _e, Ie, Te, Me, De, je, Ee, Re, Oe, Ae, Pe, We, He, Fe, Be, Le, Ye, $e, qe, Ue, Ve, Xe, Ge, Ke, Ze, Qe, Je, et;
565
- const { dir: e } = we(), { isSmallScreen: r } = O(), { theme: t, inline: n } = x(), s = (Y) => n ? "100%" : Y, i = (Y, de) => r ? `100dv${Y}` : de, a = (Y, de) => s(i(Y, de)), c = {
566
- zIndex: ((w = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : w.zIndex) ?? 1e7,
563
+ function X() {
564
+ var u, m, k, f, N, T, _, M, O, A, F, R, v, C, z, B, ne, Ne, Se, _e, Ie, Te, Me, De, je, Re, Ee, Pe, Oe, Ae, Fe, He, We, $e, Be, Le, Ye, qe, Xe, Ue, Ve, Ge, Ke, Qe, Ze, Je, et;
565
+ const { dir: e } = ue(), { isSmallScreen: o } = P(), { theme: t, inline: n } = b(), s = (L) => n ? "100%" : L, a = (L, de) => o ? `100dv${L}` : de, i = (L, de) => s(a(L, de)), c = {
566
+ zIndex: ((u = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : u.zIndex) ?? 1e7,
567
567
  offset: {
568
568
  bottom: ((k = (m = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : m.offset) == null ? void 0 : k.bottom) ?? 20,
569
569
  right: ((N = (f = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : f.offset) == null ? void 0 : N.right) ?? (e === "ltr" ? 20 : "initial"),
570
570
  left: ((_ = (T = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : T.offset) == null ? void 0 : _.left) ?? (e === "rtl" ? 20 : "initial")
571
571
  },
572
572
  size: {
573
- button: ((A = (M = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : M.size) == null ? void 0 : A.button) ?? 48,
574
- icon: ((W = (P = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : P.size) == null ? void 0 : W.icon) ?? 24
573
+ button: ((O = (M = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : M.size) == null ? void 0 : O.button) ?? 48,
574
+ icon: ((F = (A = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : A.size) == null ? void 0 : F.icon) ?? 24
575
575
  }
576
576
  }, l = (() => {
577
- const Y = e === "ltr" ? c.offset.right : c.offset.left;
578
- return typeof Y != "number" ? 0 : Y;
577
+ const L = e === "ltr" ? c.offset.right : c.offset.left;
578
+ return typeof L != "number" ? 0 : L;
579
579
  })(), h = {
580
580
  palette: (t == null ? void 0 : t.palette) ?? "neutral",
581
581
  primaryColor: (t == null ? void 0 : t.primaryColor) ?? "hsl(0 0% 9%)",
582
582
  widgetTrigger: c,
583
583
  widgetContentContainer: {
584
- borderRadius: r ? "0px" : ((E = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : E.borderRadius) ?? "32px",
584
+ borderRadius: o ? "0px" : ((R = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : R.borderRadius) ?? "32px",
585
585
  zIndex: ((v = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : v.zIndex) ?? c.zIndex + 1,
586
586
  outline: ((C = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : C.outline) ?? "none",
587
587
  // was: '1px solid'
588
588
  outlineColor: ((z = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : z.outlineColor) ?? "hsl(0 0% 50% / .5)",
589
- boxShadow: ((L = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : L.boxShadow) ?? "0 0px 100px 0px rgb(0 0 0 / 0.25)",
589
+ boxShadow: ((B = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : B.boxShadow) ?? "0 0px 100px 0px rgb(0 0 0 / 0.25)",
590
590
  transitionProperty: ((ne = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : ne.transitionProperty) ?? "all",
591
591
  transitionTimingFunction: ((Ne = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Ne.transitionTimingFunction) ?? se.transitionTimingFunction,
592
592
  transitionDuration: ((Se = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Se.transitionDuration) ?? se.transitionDuration,
593
593
  offset: {
594
- side: r ? 0 : c.offset.bottom + c.size.button + X.y * 2 + (((Ie = (_e = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : _e.offset) == null ? void 0 : Ie.side) ?? 10),
595
- align: r ? 0 : l + (((Me = (Te = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Te.offset) == null ? void 0 : Me.align) ?? 0)
594
+ side: o ? 0 : c.offset.bottom + c.size.button + V.y * 2 + (((Ie = (_e = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : _e.offset) == null ? void 0 : Ie.side) ?? 10),
595
+ align: o ? 0 : l + (((Me = (Te = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Te.offset) == null ? void 0 : Me.align) ?? 0)
596
596
  }
597
597
  },
598
598
  screens: {
599
599
  welcome: {
600
- width: a("w", ((je = (De = t == null ? void 0 : t.screens) == null ? void 0 : De.welcome) == null ? void 0 : je.width) ?? "400px"),
600
+ width: i("w", ((je = (De = t == null ? void 0 : t.screens) == null ? void 0 : De.welcome) == null ? void 0 : je.width) ?? "400px"),
601
601
  // By setting minHeight to 1px, a nice animation will play from 1px to the dynamic height of the content of the screen
602
- minHeight: a(
602
+ minHeight: i(
603
603
  "h",
604
- ((Re = (Ee = t == null ? void 0 : t.screens) == null ? void 0 : Ee.welcome) == null ? void 0 : Re.minHeight) ?? "1px"
604
+ ((Ee = (Re = t == null ? void 0 : t.screens) == null ? void 0 : Re.welcome) == null ? void 0 : Ee.minHeight) ?? "1px"
605
605
  )
606
606
  },
607
607
  sessions: {
608
- width: a("w", ((Ae = (Oe = t == null ? void 0 : t.screens) == null ? void 0 : Oe.sessions) == null ? void 0 : Ae.width) ?? "450px"),
609
- height: a("h", ((We = (Pe = t == null ? void 0 : t.screens) == null ? void 0 : Pe.sessions) == null ? void 0 : We.height) ?? "600px")
608
+ width: i("w", ((Oe = (Pe = t == null ? void 0 : t.screens) == null ? void 0 : Pe.sessions) == null ? void 0 : Oe.width) ?? "450px"),
609
+ height: i("h", ((Fe = (Ae = t == null ? void 0 : t.screens) == null ? void 0 : Ae.sessions) == null ? void 0 : Fe.height) ?? "600px")
610
610
  },
611
611
  chat: {
612
- width: a("w", ((Fe = (He = t == null ? void 0 : t.screens) == null ? void 0 : He.chat) == null ? void 0 : Fe.width) ?? "525px"),
613
- height: a("h", ((Le = (Be = t == null ? void 0 : t.screens) == null ? void 0 : Be.chat) == null ? void 0 : Le.height) ?? "700px"),
612
+ width: i("w", ((We = (He = t == null ? void 0 : t.screens) == null ? void 0 : He.chat) == null ? void 0 : We.width) ?? "525px"),
613
+ height: i("h", ((Be = ($e = t == null ? void 0 : t.screens) == null ? void 0 : $e.chat) == null ? void 0 : Be.height) ?? "700px"),
614
614
  withCanvas: {
615
- width: a(
615
+ width: i(
616
616
  "w",
617
- ((qe = ($e = (Ye = t == null ? void 0 : t.screens) == null ? void 0 : Ye.chat) == null ? void 0 : $e.withCanvas) == null ? void 0 : qe.width) ?? "min(1050px, 100vw)"
617
+ ((qe = (Ye = (Le = t == null ? void 0 : t.screens) == null ? void 0 : Le.chat) == null ? void 0 : Ye.withCanvas) == null ? void 0 : qe.width) ?? "min(1050px, 100vw)"
618
618
  ),
619
- height: a(
619
+ height: i(
620
620
  "h",
621
- ((Xe = (Ve = (Ue = t == null ? void 0 : t.screens) == null ? void 0 : Ue.chat) == null ? void 0 : Ve.withCanvas) == null ? void 0 : Xe.height) ?? "min(800px, 100vh)"
621
+ ((Ve = (Ue = (Xe = t == null ? void 0 : t.screens) == null ? void 0 : Xe.chat) == null ? void 0 : Ue.withCanvas) == null ? void 0 : Ve.height) ?? "min(800px, 100vh)"
622
622
  ),
623
- transitionTimingFunction: ((Ze = (Ke = (Ge = t == null ? void 0 : t.screens) == null ? void 0 : Ge.chat) == null ? void 0 : Ke.withCanvas) == null ? void 0 : Ze.transitionTimingFunction) ?? se.transitionTimingFunction,
624
- transitionDuration: ((et = (Je = (Qe = t == null ? void 0 : t.screens) == null ? void 0 : Qe.chat) == null ? void 0 : Je.withCanvas) == null ? void 0 : et.transitionDuration) ?? se.transitionDuration
623
+ transitionTimingFunction: ((Qe = (Ke = (Ge = t == null ? void 0 : t.screens) == null ? void 0 : Ge.chat) == null ? void 0 : Ke.withCanvas) == null ? void 0 : Qe.transitionTimingFunction) ?? se.transitionTimingFunction,
624
+ transitionDuration: ((et = (Je = (Ze = t == null ? void 0 : t.screens) == null ? void 0 : Ze.chat) == null ? void 0 : Je.withCanvas) == null ? void 0 : et.transitionDuration) ?? se.transitionDuration
625
625
  }
626
626
  }
627
627
  }
628
- }, b = {
628
+ }, x = {
629
629
  // Subtract the offset.bottom twice so that it adds a bit of padding to the top
630
630
  // Subtract the distance between the trigger and the widget content container
631
631
  // Subtract the invisible padding of the trigger (for the wobble effect)
632
- maxHeight: a(
632
+ maxHeight: i(
633
633
  "h",
634
634
  `calc(
635
635
  100vh
636
636
  - ${h.widgetTrigger.offset.bottom}px
637
637
  - ${h.widgetContentContainer.offset.side}px
638
- - ${X.y * 2}px
638
+ - ${V.y * 2}px
639
639
  )`
640
640
  ),
641
641
  // Subtract the offset.right twice so that it adds a bit of padding to the left
642
- maxWidth: a(
642
+ maxWidth: i(
643
643
  "w",
644
644
  `calc(
645
645
  100vw
646
646
  - ${l * 2}px
647
647
  )`
648
648
  ),
649
- minHeight: a(
649
+ minHeight: i(
650
650
  "h",
651
651
  `min(
652
652
  ${h.screens.welcome.minHeight},
@@ -654,7 +654,7 @@ function U() {
654
654
  ${h.screens.chat.height}
655
655
  )`
656
656
  ),
657
- minWidth: a(
657
+ minWidth: i(
658
658
  "w",
659
659
  `min(
660
660
  ${h.screens.welcome.width},
@@ -665,18 +665,18 @@ function U() {
665
665
  };
666
666
  return {
667
667
  theme: h,
668
- computed: b,
669
- cssVars: qo({
668
+ computed: x,
669
+ cssVars: qr({
670
670
  palette: h.palette,
671
671
  primary: h.primaryColor
672
672
  })
673
673
  };
674
674
  }
675
- function qo({
675
+ function qr({
676
676
  palette: e,
677
- primary: r
677
+ primary: o
678
678
  }) {
679
- const t = Dt(e), n = ot(r).toHsl(), s = ot(r).isLight() ? t[950] : t[50];
679
+ const t = Dt(e), n = rt(o).toHsl(), s = rt(o).isLight() ? t[950] : t[50];
680
680
  return {
681
681
  "--opencx-primary": `${n.h} ${n.s * 100}% ${n.l * 100}%`,
682
682
  "--opencx-primary-foreground": s,
@@ -696,7 +696,7 @@ function qo({
696
696
  };
697
697
  }
698
698
  function Dt(e) {
699
- const r = {
699
+ const o = {
700
700
  50: "0 0% 98%",
701
701
  100: "0 0% 96.1%",
702
702
  200: "0 0% 89.8%",
@@ -747,7 +747,7 @@ function Dt(e) {
747
747
  };
748
748
  switch (e) {
749
749
  case "neutral":
750
- return r;
750
+ return o;
751
751
  case "stone":
752
752
  return t;
753
753
  case "zinc":
@@ -755,72 +755,72 @@ function Dt(e) {
755
755
  case "slate":
756
756
  return s;
757
757
  default:
758
- return D(e, Dt.name), r;
758
+ return D(e, Dt.name), o;
759
759
  }
760
760
  }
761
761
  function jt() {
762
- const { contentIframeRef: e } = j(), { inline: r } = x();
762
+ const { contentIframeRef: e } = j(), { inline: o } = b();
763
763
  return {
764
764
  setWidth: (t) => {
765
765
  var n;
766
766
  (n = e == null ? void 0 : e.current) == null || n.style.setProperty(
767
767
  "--opencx-widget-width",
768
- r ? "100%" : t
768
+ o ? "100%" : t
769
769
  );
770
770
  },
771
771
  setHeight: (t) => {
772
772
  var n;
773
773
  (n = e == null ? void 0 : e.current) == null || n.style.setProperty(
774
774
  "--opencx-widget-height",
775
- r ? "100%" : t
775
+ o ? "100%" : t
776
776
  );
777
777
  }
778
778
  };
779
779
  }
780
780
  function ye({
781
781
  width: e,
782
- height: r
782
+ height: o
783
783
  }) {
784
- const { isSmallScreen: t } = O(), { setWidth: n, setHeight: s } = jt();
785
- oe(() => {
786
- e && n(e), r && s(r);
787
- }, [t, r, e, n, s]);
784
+ const { isSmallScreen: t } = P(), { setWidth: n, setHeight: s } = jt();
785
+ re(() => {
786
+ e && n(e), o && s(o);
787
+ }, [t, o, e, n, s]);
788
788
  }
789
- const nt = Jt;
789
+ const nt = Zt;
790
790
  function ee({
791
791
  name: e,
792
- className: r
792
+ className: o
793
793
  }) {
794
794
  const t = (() => {
795
795
  switch (e) {
796
796
  case "Check":
797
- return mo;
797
+ return pr;
798
798
  case "CheckCheck":
799
- return ho;
799
+ return dr;
800
800
  case "CircleCheck":
801
801
  return mt;
802
802
  case "CircleCheckBig":
803
- return po;
803
+ return cr;
804
804
  case "CircleX":
805
- return co;
805
+ return lr;
806
806
  case "Expand":
807
- return lo;
807
+ return ar;
808
808
  case "Maximize":
809
- return io;
809
+ return ir;
810
810
  case "Maximize2":
811
- return ao;
811
+ return sr;
812
812
  case "Minimize":
813
- return so;
813
+ return nr;
814
814
  case "Minimize2":
815
- return no;
815
+ return or;
816
816
  case "Shrink":
817
- return ro;
817
+ return rr;
818
818
  case "SquareCheck":
819
- return oo;
819
+ return tr;
820
820
  case "SquareCheckBig":
821
- return to;
821
+ return er;
822
822
  case "SquareX":
823
- return eo;
823
+ return Jt;
824
824
  case "X":
825
825
  return fe;
826
826
  case void 0:
@@ -829,33 +829,33 @@ function ee({
829
829
  return D(e, ee.name), nt;
830
830
  }
831
831
  })();
832
- return /* @__PURE__ */ o(t, { className: p("size-4", r) });
832
+ return /* @__PURE__ */ r(t, { className: p("size-4", o) });
833
833
  }
834
834
  function ke() {
835
835
  const { widgetCtx: { org: e } } = j(), {
836
- routerState: { screen: r }
837
- } = B(), { textContent: t } = x();
836
+ routerState: { screen: o }
837
+ } = $(), { textContent: t } = b();
838
838
  return (() => {
839
- var s, i;
840
- switch (r) {
839
+ var s, a;
840
+ switch (o) {
841
841
  case "chat":
842
842
  return (s = t == null ? void 0 : t.chatScreen) == null ? void 0 : s.headerTitle;
843
843
  case "sessions":
844
- return (i = t == null ? void 0 : t.sessionsScreen) == null ? void 0 : i.headerTitle;
844
+ return (a = t == null ? void 0 : t.sessionsScreen) == null ? void 0 : a.headerTitle;
845
845
  case "welcome":
846
846
  return;
847
847
  default:
848
- D(r, ke.name);
848
+ D(o, ke.name);
849
849
  return;
850
850
  }
851
851
  })() ?? e.name ?? "Chat";
852
852
  }
853
- function Uo(e) {
853
+ function Xr(e) {
854
854
  switch (e) {
855
855
  case "chat":
856
- return u("chat/header");
856
+ return g("chat/header");
857
857
  case "sessions":
858
- return u("sessions/header");
858
+ return g("sessions/header");
859
859
  case "welcome":
860
860
  return;
861
861
  default:
@@ -863,27 +863,27 @@ function Uo(e) {
863
863
  return;
864
864
  }
865
865
  }
866
- function Vo() {
867
- const { router: e } = x(), {
868
- routerState: { screen: r },
866
+ function Ur() {
867
+ const { router: e } = b(), {
868
+ routerState: { screen: o },
869
869
  toSessionsScreen: t
870
- } = B();
871
- return r !== "chat" || e != null && e.chatScreenOnly ? null : /* @__PURE__ */ o(
870
+ } = $();
871
+ return o !== "chat" || e != null && e.chatScreenOnly ? null : /* @__PURE__ */ r(
872
872
  y,
873
873
  {
874
874
  variant: "ghost",
875
875
  size: "fit",
876
876
  className: "rounded-full",
877
877
  onClick: t,
878
- children: /* @__PURE__ */ o(uo, { className: "size-4 rtl:-scale-100" })
878
+ children: /* @__PURE__ */ r(hr, { className: "size-4 rtl:-scale-100" })
879
879
  }
880
880
  );
881
881
  }
882
- function Xo({
882
+ function Vr({
883
883
  button: e
884
884
  }) {
885
- const { setIsOpen: r } = K(), { isSmallScreen: t } = O();
886
- return t && e.hideOnSmallScreen || !t && e.hideOnLargeScreen ? null : /* @__PURE__ */ o(
885
+ const { setIsOpen: o } = K(), { isSmallScreen: t } = P();
886
+ return t && e.hideOnSmallScreen || !t && e.hideOnLargeScreen ? null : /* @__PURE__ */ r(
887
887
  y,
888
888
  {
889
889
  variant: "ghost",
@@ -891,66 +891,66 @@ function Xo({
891
891
  className: "rounded-full",
892
892
  onClick: () => {
893
893
  if (e.handleClick) return e.handleClick();
894
- r(!1);
894
+ o(!1);
895
895
  },
896
- children: /* @__PURE__ */ o(ee, { name: e.icon })
896
+ children: /* @__PURE__ */ r(ee, { name: e.icon })
897
897
  }
898
898
  );
899
899
  }
900
- function ue({
900
+ function ge({
901
901
  button: e
902
902
  }) {
903
- const [r, t] = I(!1), {
903
+ const [o, t] = I(!1), {
904
904
  routerState: { screen: n }
905
- } = B(), { isSmallScreen: s } = O(), { theme: i } = U(), { setWidth: a, setHeight: c } = jt();
905
+ } = $(), { isSmallScreen: s } = P(), { theme: a } = X(), { setWidth: i, setHeight: c } = jt();
906
906
  if (n !== "chat" && n !== "sessions") return null;
907
907
  const l = (() => {
908
908
  switch (n) {
909
909
  case "chat":
910
- return i.screens.chat.height;
910
+ return a.screens.chat.height;
911
911
  case "sessions":
912
- return i.screens.sessions.height;
912
+ return a.screens.sessions.height;
913
913
  default:
914
- return D(n, ue.name), i.screens.chat.height;
914
+ return D(n, ge.name), a.screens.chat.height;
915
915
  }
916
916
  })(), h = (() => {
917
917
  switch (n) {
918
918
  case "chat":
919
- return i.screens.chat.width;
919
+ return a.screens.chat.width;
920
920
  case "sessions":
921
- return i.screens.sessions.width;
921
+ return a.screens.sessions.width;
922
922
  default:
923
- return D(n, ue.name), i.screens.chat.width;
923
+ return D(n, ge.name), a.screens.chat.width;
924
924
  }
925
- })(), b = () => {
926
- t((w) => {
927
- const m = !w;
928
- return c(m ? "100vh" : l), a(m ? `max(40vw, ${h})` : h), m;
925
+ })(), x = () => {
926
+ t((u) => {
927
+ const m = !u;
928
+ return c(m ? "100vh" : l), i(m ? `max(40vw, ${h})` : h), m;
929
929
  });
930
930
  };
931
- return s && e.hideOnSmallScreen || !s && e.hideOnLargeScreen ? null : /* @__PURE__ */ o(
931
+ return s && e.hideOnSmallScreen || !s && e.hideOnLargeScreen ? null : /* @__PURE__ */ r(
932
932
  y,
933
933
  {
934
934
  variant: "ghost",
935
935
  size: "fit",
936
936
  className: "rounded-full",
937
- onClick: b,
938
- children: /* @__PURE__ */ o(
937
+ onClick: x,
938
+ children: /* @__PURE__ */ r(
939
939
  ee,
940
940
  {
941
- name: e.icon || (r ? e.shrinkIcon : e.expandIcon)
941
+ name: e.icon || (o ? e.shrinkIcon : e.expandIcon)
942
942
  }
943
943
  )
944
944
  }
945
945
  );
946
946
  }
947
- function Et({
947
+ function Rt({
948
948
  button: e
949
949
  }) {
950
950
  var N, T;
951
- const { close: r } = ce(), { widgetCtx: t } = j(), { setIsOpen: n } = K(), { resolveSession: s, sessionState: i } = q(), { isSmallScreen: a } = O(), c = !i.session, l = ((N = i.session) == null ? void 0 : N.isOpened) === !1, h = e.onResolved || "stay-in-chat", b = e.behaviorBeforeSessionCreation || "disabled", w = e.behaviorIfSessionIsResolved || "disabled", m = !!(i.isResolvingSession || c && b === "disabled" || l && w === "disabled"), k = async () => {
951
+ const { close: o } = ce(), { widgetCtx: t } = j(), { setIsOpen: n } = K(), { resolveSession: s, sessionState: a } = q(), { isSmallScreen: i } = P(), c = !a.session, l = ((N = a.session) == null ? void 0 : N.isOpened) === !1, h = e.onResolved || "stay-in-chat", x = e.behaviorBeforeSessionCreation || "disabled", u = e.behaviorIfSessionIsResolved || "disabled", m = !!(a.isResolvingSession || c && x === "disabled" || l && u === "disabled"), k = async () => {
952
952
  const { success: _, error: M } = await s();
953
- if (r(), !_) return console.error(M);
953
+ if (o(), !_) return console.error(M);
954
954
  switch (h) {
955
955
  case "stay-in-chat":
956
956
  return;
@@ -964,12 +964,12 @@ function Et({
964
964
  n(!1), t.resetChat();
965
965
  break;
966
966
  default:
967
- D(h, Et.name);
967
+ D(h, Rt.name);
968
968
  break;
969
969
  }
970
970
  }, f = () => {
971
971
  if (c)
972
- switch (b) {
972
+ switch (x) {
973
973
  case "disabled":
974
974
  return;
975
975
  case "close-widget":
@@ -977,12 +977,12 @@ function Et({
977
977
  break;
978
978
  default:
979
979
  D(
980
- b,
980
+ x,
981
981
  f.name
982
982
  );
983
983
  }
984
984
  if (l)
985
- switch (w) {
985
+ switch (u) {
986
986
  case "disabled":
987
987
  return;
988
988
  case "close-widget":
@@ -998,50 +998,50 @@ function Et({
998
998
  break;
999
999
  default:
1000
1000
  D(
1001
- w,
1001
+ u,
1002
1002
  f.name
1003
1003
  );
1004
1004
  }
1005
1005
  };
1006
- return a && e.hideOnSmallScreen || !a && e.hideOnLargeScreen ? null : ((T = e.confirmation) == null ? void 0 : T.type) === "modal" && !l && !c ? /* @__PURE__ */ o(
1006
+ return i && e.hideOnSmallScreen || !i && e.hideOnLargeScreen ? null : ((T = e.confirmation) == null ? void 0 : T.type) === "modal" && !l && !c ? /* @__PURE__ */ r(
1007
1007
  Nt,
1008
1008
  {
1009
- trigger: /* @__PURE__ */ o(
1009
+ trigger: /* @__PURE__ */ r(
1010
1010
  y,
1011
1011
  {
1012
1012
  variant: "ghost",
1013
1013
  size: "fit",
1014
1014
  className: "rounded-full",
1015
1015
  disabled: m,
1016
- children: /* @__PURE__ */ o(ee, { name: e.icon })
1016
+ children: /* @__PURE__ */ r(ee, { name: e.icon })
1017
1017
  }
1018
1018
  ),
1019
- children: /* @__PURE__ */ d(bt, { children: [
1020
- /* @__PURE__ */ o(xt, { children: /* @__PURE__ */ o(Ct, { children: e.confirmation.title || "Close conversation" }) }),
1021
- /* @__PURE__ */ o(yt, { children: /* @__PURE__ */ o(zt, { children: e.confirmation.description || "Are you sure you want to close this conversation?" }) }),
1019
+ children: /* @__PURE__ */ d(xt, { children: [
1020
+ /* @__PURE__ */ r(bt, { children: /* @__PURE__ */ r(Ct, { children: e.confirmation.title || "Close conversation" }) }),
1021
+ /* @__PURE__ */ r(yt, { children: /* @__PURE__ */ r(zt, { children: e.confirmation.description || "Are you sure you want to close this conversation?" }) }),
1022
1022
  /* @__PURE__ */ d(kt, { children: [
1023
- /* @__PURE__ */ o(
1023
+ /* @__PURE__ */ r(
1024
1024
  y,
1025
1025
  {
1026
1026
  variant: "secondary",
1027
- onClick: r,
1028
- disabled: i.isResolvingSession,
1027
+ onClick: o,
1028
+ disabled: a.isResolvingSession,
1029
1029
  children: e.confirmation.cancelButtonText || "No"
1030
1030
  }
1031
1031
  ),
1032
- /* @__PURE__ */ o(
1032
+ /* @__PURE__ */ r(
1033
1033
  y,
1034
1034
  {
1035
1035
  variant: "destructive",
1036
1036
  onClick: k,
1037
- disabled: i.isResolvingSession,
1037
+ disabled: a.isResolvingSession,
1038
1038
  children: e.confirmation.confirmButtonText || "Yes"
1039
1039
  }
1040
1040
  )
1041
1041
  ] })
1042
1042
  ] })
1043
1043
  }
1044
- ) : /* @__PURE__ */ o(
1044
+ ) : /* @__PURE__ */ r(
1045
1045
  y,
1046
1046
  {
1047
1047
  variant: "ghost",
@@ -1049,98 +1049,98 @@ function Et({
1049
1049
  className: "rounded-full",
1050
1050
  onClick: l || c ? f : k,
1051
1051
  disabled: m,
1052
- children: /* @__PURE__ */ o(ee, { name: e.icon })
1052
+ children: /* @__PURE__ */ r(ee, { name: e.icon })
1053
1053
  }
1054
1054
  );
1055
1055
  }
1056
- function ge({ button: e }) {
1056
+ function we({ button: e }) {
1057
1057
  switch (e.functionality) {
1058
1058
  case "close-widget":
1059
- return /* @__PURE__ */ o(Xo, { button: e });
1059
+ return /* @__PURE__ */ r(Vr, { button: e });
1060
1060
  case "expand-shrink":
1061
- return /* @__PURE__ */ o(ue, { button: e });
1061
+ return /* @__PURE__ */ r(ge, { button: e });
1062
1062
  case "resolve-session":
1063
- return /* @__PURE__ */ o(Et, { button: e });
1063
+ return /* @__PURE__ */ r(Rt, { button: e });
1064
1064
  default:
1065
- return D(e, ge.name), null;
1065
+ return D(e, we.name), null;
1066
1066
  }
1067
1067
  }
1068
- const Go = {
1068
+ const Gr = {
1069
1069
  functionality: "close-widget",
1070
1070
  hideOnLargeScreen: !0,
1071
1071
  icon: "X"
1072
1072
  };
1073
- function Ko() {
1073
+ function Kr() {
1074
1074
  const {
1075
1075
  routerState: { screen: e }
1076
- } = B(), { headerButtons: r } = x(), t = e === "chat" ? r == null ? void 0 : r.chatScreen : e === "sessions" ? r == null ? void 0 : r.sessionsScreen : [];
1077
- return !t || t.length === 0 ? /* @__PURE__ */ o(ge, { button: Go }) : /* @__PURE__ */ o(te, { children: t.map((n) => /* @__PURE__ */ o(
1078
- ge,
1076
+ } = $(), { headerButtons: o } = b(), t = e === "chat" ? o == null ? void 0 : o.chatScreen : e === "sessions" ? o == null ? void 0 : o.sessionsScreen : [];
1077
+ return !t || t.length === 0 ? /* @__PURE__ */ r(we, { button: Gr }) : /* @__PURE__ */ r(te, { children: t.map((n) => /* @__PURE__ */ r(
1078
+ we,
1079
1079
  {
1080
1080
  button: n
1081
1081
  },
1082
1082
  `${n.functionality}-${n.icon}`
1083
1083
  )) });
1084
1084
  }
1085
- function Rt() {
1085
+ function Et() {
1086
1086
  const {
1087
1087
  routerState: { screen: e }
1088
- } = B(), r = Uo(e), t = ke();
1089
- return /* @__PURE__ */ o("header", { ...r, className: "py-2 px-4 shrink-0", children: /* @__PURE__ */ d("div", { className: "flex items-center gap-2", children: [
1090
- /* @__PURE__ */ o(Vo, {}),
1091
- /* @__PURE__ */ o(
1088
+ } = $(), o = Xr(e), t = ke();
1089
+ return /* @__PURE__ */ r("header", { ...o, className: "py-2 px-4 shrink-0", children: /* @__PURE__ */ d("div", { className: "flex items-center gap-2", children: [
1090
+ /* @__PURE__ */ r(Ur, {}),
1091
+ /* @__PURE__ */ r(
1092
1092
  "div",
1093
1093
  {
1094
1094
  className: p(
1095
1095
  "flex-1 h-8 flex items-center",
1096
1096
  e === "sessions" && "ps-2"
1097
1097
  ),
1098
- children: /* @__PURE__ */ o("h2", { className: "font-semibold", children: t })
1098
+ children: /* @__PURE__ */ r("h2", { className: "font-semibold", children: t })
1099
1099
  }
1100
1100
  ),
1101
- /* @__PURE__ */ o(Ko, {})
1101
+ /* @__PURE__ */ r(Kr, {})
1102
1102
  ] }) });
1103
1103
  }
1104
- function Ot({ className: e }) {
1105
- return /* @__PURE__ */ o(go, { className: p("size-4 animate-spin", e) });
1104
+ function Pt({ className: e }) {
1105
+ return /* @__PURE__ */ r(mr, { className: p("size-4 animate-spin", e) });
1106
1106
  }
1107
- function Zo() {
1107
+ function Qr() {
1108
1108
  const {
1109
1109
  messagesState: { isInitialFetchLoading: e }
1110
- } = R(), { isSmallScreen: r } = O(), { activeMode: t, Component: n } = dt();
1110
+ } = E(), { isSmallScreen: o } = P(), { activeMode: t, Component: n } = dt();
1111
1111
  return {
1112
- isCanvasOpen: !e && !r && !!t && !!n
1112
+ isCanvasOpen: !e && !o && !!t && !!n
1113
1113
  };
1114
1114
  }
1115
- function Qo() {
1116
- const { activeMode: e, Component: r } = dt(), { sendMessage: t } = R(), { createStateCheckpoint: n } = q(), [s, i] = I(!1), a = async (c) => {
1115
+ function Zr() {
1116
+ const { activeMode: e, Component: o } = dt(), { sendMessage: t } = E(), { createStateCheckpoint: n } = q(), [s, a] = I(!1), i = async (c) => {
1117
1117
  try {
1118
- i(!0), await t(c);
1118
+ a(!0), await t(c);
1119
1119
  } catch (l) {
1120
1120
  console.error(l);
1121
1121
  } finally {
1122
- i(!1);
1122
+ a(!1);
1123
1123
  }
1124
1124
  };
1125
- return !e || !r ? null : /* @__PURE__ */ o(
1126
- r,
1125
+ return !e || !o ? null : /* @__PURE__ */ r(
1126
+ o,
1127
1127
  {
1128
- react: $,
1128
+ react: Y,
1129
1129
  mode: e,
1130
1130
  createStateCheckpoint: n,
1131
- sendMessage: a,
1131
+ sendMessage: i,
1132
1132
  isSendingMessage: s
1133
1133
  }
1134
1134
  );
1135
1135
  }
1136
- const F = $.forwardRef(
1137
- (e, r) => {
1136
+ const W = Y.forwardRef(
1137
+ (e, o) => {
1138
1138
  var t, n, s;
1139
- return /* @__PURE__ */ o(
1140
- g,
1139
+ return /* @__PURE__ */ r(
1140
+ w,
1141
1141
  {
1142
1142
  ...e,
1143
- ref: r,
1143
+ ref: o,
1144
1144
  className: p("overflow-hidden", e.className),
1145
1145
  overrides: {
1146
1146
  initial: { height: 0, opacity: 0, ...(t = e.overrides) == null ? void 0 : t.initial },
@@ -1151,8 +1151,8 @@ const F = $.forwardRef(
1151
1151
  );
1152
1152
  }
1153
1153
  );
1154
- F.displayName = "MotionDiv__VerticalReveal";
1155
- const Jo = [
1154
+ W.displayName = "MotionDiv__VerticalReveal";
1155
+ const Jr = [
1156
1156
  {
1157
1157
  label: "Terrible",
1158
1158
  value: 1,
@@ -1179,24 +1179,24 @@ const Jo = [
1179
1179
  emoji: "😍"
1180
1180
  }
1181
1181
  ];
1182
- function er() {
1183
- const { isSmallScreen: e } = O(), {
1184
- submitCsat: r,
1182
+ function eo() {
1183
+ const { isSmallScreen: e } = P(), {
1184
+ submitCsat: o,
1185
1185
  isCsatRequested: t,
1186
1186
  isCsatSubmitted: n,
1187
1187
  submittedScore: s,
1188
- submittedFeedback: i
1189
- } = pt(), [a, c] = I(null), [l, h] = I(null), b = (m) => {
1188
+ submittedFeedback: a
1189
+ } = pt(), [i, c] = I(null), [l, h] = I(null), x = (m) => {
1190
1190
  c((k) => k === m ? null : m);
1191
- }, w = () => {
1192
- a && r({
1193
- score: a,
1191
+ }, u = () => {
1192
+ i && o({
1193
+ score: i,
1194
1194
  feedback: l || void 0
1195
1195
  });
1196
1196
  };
1197
1197
  return !t && !n ? null : /* @__PURE__ */ d("div", { className: "w-1/2 min-w-80 max-w-96 mx-auto overflow-hidden", children: [
1198
- /* @__PURE__ */ o(S, { mode: "wait", children: t && !a ? /* @__PURE__ */ o(F, { children: /* @__PURE__ */ o("p", { className: "text-sm text-muted-foreground text-center pt-2", children: "How was your conversation?" }) }, "csat-requested-title") : n ? /* @__PURE__ */ o(F, { children: /* @__PURE__ */ o("p", { className: "text-sm text-muted-foreground text-center pt-2", children: "You rated the conversation as" }) }, "csat-submitted-title") : null }),
1199
- /* @__PURE__ */ o(
1198
+ /* @__PURE__ */ r(S, { mode: "wait", children: t && !i ? /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r("p", { className: "text-sm text-muted-foreground text-center pt-2", children: "How was your conversation?" }) }, "csat-requested-title") : n ? /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r("p", { className: "text-sm text-muted-foreground text-center pt-2", children: "You rated the conversation as" }) }, "csat-submitted-title") : null }),
1199
+ /* @__PURE__ */ r(
1200
1200
  "div",
1201
1201
  {
1202
1202
  className: p(
@@ -1204,30 +1204,30 @@ function er() {
1204
1204
  "transition-all",
1205
1205
  n && "gap-0 justify-center"
1206
1206
  ),
1207
- children: Jo.map((m) => /* @__PURE__ */ o(
1207
+ children: Jr.map((m) => /* @__PURE__ */ r(
1208
1208
  y,
1209
1209
  {
1210
- variant: m.value === a ? "secondary" : "ghost",
1210
+ variant: m.value === i ? "secondary" : "ghost",
1211
1211
  size: "selfless",
1212
1212
  className: p(
1213
1213
  "transition-all overflow-hidden",
1214
1214
  "text-2xl size-8 rounded-full",
1215
1215
  "opacity-35",
1216
1216
  "hover:opacity-100",
1217
- !a && "opacity-100",
1218
- m.value === a && "opacity-100",
1217
+ !i && "opacity-100",
1218
+ m.value === i && "opacity-100",
1219
1219
  n && m.value !== s && "opacity-0 size-0",
1220
1220
  n && m.value === s && "opacity-100 size-fit text-4xl"
1221
1221
  ),
1222
- onClick: t ? () => b(m.value) : void 0,
1222
+ onClick: t ? () => x(m.value) : void 0,
1223
1223
  children: m.emoji
1224
1224
  },
1225
1225
  m.value
1226
1226
  ))
1227
1227
  }
1228
1228
  ),
1229
- /* @__PURE__ */ o(S, { mode: "wait", children: (a || s) && /* @__PURE__ */ o(F, { children: /* @__PURE__ */ d("div", { className: "pb-2 px-2 flex items-end", children: [
1230
- /* @__PURE__ */ o(
1229
+ /* @__PURE__ */ r(S, { mode: "wait", children: (i || s) && /* @__PURE__ */ r(W, { children: /* @__PURE__ */ d("div", { className: "pb-2 px-2 flex items-end", children: [
1230
+ /* @__PURE__ */ r(
1231
1231
  "textarea",
1232
1232
  {
1233
1233
  rows: 3,
@@ -1241,219 +1241,71 @@ function er() {
1241
1241
  e ? "text-[16px]" : "text-sm",
1242
1242
  n && "text-center"
1243
1243
  ),
1244
- value: n ? i || "" : l || "",
1244
+ value: n ? a || "" : l || "",
1245
1245
  onChange: t ? (m) => h(m.target.value) : void 0,
1246
1246
  readOnly: n,
1247
1247
  placeholder: t ? "Tell us more... (optional)" : void 0
1248
1248
  }
1249
1249
  ),
1250
- /* @__PURE__ */ o(
1250
+ /* @__PURE__ */ r(
1251
1251
  y,
1252
1252
  {
1253
1253
  size: "fit",
1254
- onClick: w,
1255
- disabled: !a,
1254
+ onClick: u,
1255
+ disabled: !i,
1256
1256
  className: p(
1257
1257
  "transition-all overflow-hidden",
1258
1258
  "rounded-full size-8 flex items-center justify-center p-0",
1259
1259
  n && "opacity-0 size-0"
1260
1260
  ),
1261
- children: /* @__PURE__ */ o(ut, { className: "size-4" })
1261
+ children: /* @__PURE__ */ r(gt, { className: "size-4" })
1262
1262
  }
1263
1263
  )
1264
1264
  ] }) }, "feedback-box") }),
1265
- /* @__PURE__ */ o("div", { className: p("h-0 transition-[height]", n && "h-4") })
1265
+ /* @__PURE__ */ r("div", { className: p("h-0 transition-[height]", n && "h-4") })
1266
1266
  ] });
1267
1267
  }
1268
- const tr = {
1269
- "write-a-message": "اكتب رسالة...",
1270
- "session-closed-lead": "تم حل مشكلتك!",
1271
- "new-conversation": "محادثة جديدة",
1272
- "welcome-title": "مرحبًا بك في دردشة الدعم الخاصة بنا",
1273
- "welcome-description": "نحن هنا للمساعدة! ابدأ محادثة وسنرد عليك في أقرب وقت ممكن.",
1274
- "your-name": "اسمك",
1275
- "your-email": "عنوان بريدك الإلكتروني",
1276
- "start-chat": "تحدث إلى الدعم",
1277
- "starting-chat": "جاري الاتصال...",
1278
- "i-need-more-help": "أحتاج المزيد من المساعدة",
1279
- "this-was-helpful": "كان هذا مفيدًا",
1280
- optional: "اختياري",
1281
- "no-conversations-yet": "لا يوجد محادثات",
1282
- "back-to-conversations": "العودة إلى المحادثات",
1283
- "closed-conversations": "المحادثات المغلقة"
1284
- }, or = {
1285
- "write-a-message": "Nachricht schreiben...",
1286
- "session-closed-lead": "Ihr Problem wurde gelöst!",
1287
- "new-conversation": "Neue Konversation",
1288
- "welcome-title": "Willkommen in unserem Support-Chat",
1289
- "welcome-description": "Wir sind hier, um zu helfen! Beginnen Sie ein Gesprách und wir werden so schnell wie mogelijk antworten.",
1290
- "your-name": "Ihr Name",
1291
- "your-email": "Ihre E-Mail-Adresse",
1292
- "start-chat": "Mit dem Support sprechen",
1293
- "starting-chat": "Verbindung wird hergestellt...",
1294
- "i-need-more-help": "Ich brauche weitere Hilfe",
1295
- "this-was-helpful": "Dies war hilfreich",
1296
- optional: "Optional",
1297
- "no-conversations-yet": "noch keine Gespräche",
1298
- "back-to-conversations": "Zurück zur Konversationen",
1299
- "closed-conversations": "Geschlossene Konversationen"
1300
- }, rr = {
1301
- "write-a-message": "Write a message...",
1302
- "session-closed-lead": "Your issue has been resolved!",
1303
- "new-conversation": "New conversation",
1304
- "welcome-title": "Welcome to our support chat",
1305
- "welcome-description": "We're here to help! Start a conversation and we'll get back to you as soon as possible.",
1306
- "your-name": "Your name",
1307
- "your-email": "Your email address",
1308
- "start-chat": "Talk to support",
1309
- "starting-chat": "Connecting...",
1310
- "i-need-more-help": "I need more help",
1311
- "this-was-helpful": "This was helpful",
1312
- optional: "Optional",
1313
- "no-conversations-yet": "No conversations yet",
1314
- "back-to-conversations": "Back to conversations",
1315
- "closed-conversations": "Closed conversations"
1316
- }, nr = {
1317
- "write-a-message": "Écrivez un message...",
1318
- "session-closed-lead": "Votre problème a été résolu !",
1319
- "new-conversation": "Nouvelle conversation",
1320
- "welcome-title": "Bienvenue dans notre chat de support",
1321
- "welcome-description": "Nous sommes là pour vous aider ! Commencez une conversation et nous vous répondrons dès que possible.",
1322
- "your-name": "Votre nom",
1323
- "your-email": "Votre adresse e-mail",
1324
- "start-chat": "Parler au support",
1325
- "starting-chat": "Connexion...",
1326
- "i-need-more-help": "Je besoin d'aide plus",
1327
- "this-was-helpful": "C'était utile",
1328
- optional: "Optionnel",
1329
- "no-conversations-yet": "Aucune conversation pour le moment",
1330
- "back-to-conversations": "Retour aux conversations",
1331
- "closed-conversations": "Conversations fermées"
1332
- }, sr = {
1333
- "write-a-message": "Schrijf een bericht...",
1334
- "session-closed-lead": "Uw probleem is opgelost!",
1335
- "new-conversation": "Nieuw gesprek",
1336
- "welcome-title": "Welkom bij onze supportchat",
1337
- "welcome-description": "We zijn hier om te helpen! Begin een gesprek en we nemen zo snel mogelijk contact met u op.",
1338
- "your-name": "Uw naam",
1339
- "your-email": "Uw e-mailadres",
1340
- "start-chat": "Praat met ondersteuning",
1341
- "starting-chat": "Verbinding maken...",
1342
- "i-need-more-help": "Ik heb nog meer hulp nodig",
1343
- "this-was-helpful": "Mijn vraag is opgelost",
1344
- optional: "Optioneel",
1345
- "no-conversations-yet": "Nog geen gesprekken",
1346
- "back-to-conversations": "Terug naar gesprekken",
1347
- "closed-conversations": "Afgesloten gesprekken"
1348
- }, ar = {
1349
- "write-a-message": "Escreva uma mensagem...",
1350
- "session-closed-lead": "Seu problema foi resolvido!",
1351
- "new-conversation": "Nova conversa",
1352
- "welcome-title": "Bem-vindo ao nosso chat de suporte",
1353
- "welcome-description": "Estamos aqui para ajudar! Inicie uma conversa e responderemos o mais rápido possível.",
1354
- "your-name": "Seu nome",
1355
- "your-email": "Seu endereço de email",
1356
- "start-chat": "Falar com o suporte",
1357
- "starting-chat": "Conectando...",
1358
- "i-need-more-help": "preciso de mais ajuda",
1359
- "this-was-helpful": "Isso foi útil",
1360
- optional: "Opcional",
1361
- "no-conversations-yet": "Nenhuma conversa ainda",
1362
- "back-to-conversations": "Voltar para conversas",
1363
- "closed-conversations": "Conversas fechadas"
1364
- }, ir = {
1365
- "write-a-message": "Escribe un mensaje...",
1366
- "session-closed-lead": "¡Tu problema fue resuelto!",
1367
- "new-conversation": "Nueva conversación",
1368
- "welcome-title": "Bienvenido a nuestro chat de soporte",
1369
- "welcome-description": "¡Estamos aquí para ayudarte! Inicia una conversación y responderemos lo antes posible.",
1370
- "your-name": "Tu nombre",
1371
- "your-email": "Tu correo electrónico",
1372
- "start-chat": "Hablar con soporte",
1373
- "starting-chat": "Conectando...",
1374
- "i-need-more-help": "Necesito más ayuda",
1375
- "this-was-helpful": "Esto fue útil",
1376
- optional: "Opcional",
1377
- "no-conversations-yet": "Sin conversaciones aún",
1378
- "back-to-conversations": "Volver a conversaciones",
1379
- "closed-conversations": "Conversaciones cerradas"
1380
- }, lr = {
1381
- "write-a-message": "Bir mesaj yazın...",
1382
- "session-closed-lead": "Sorununuz çözüldü!",
1383
- "new-conversation": "Yeni konuşma",
1384
- "welcome-title": "Destek sohbetimize hoş geldiniz",
1385
- "welcome-description": "Yardım etmek için buradayız! Bir konuşma başlatın, en kısa sürede size geri döneceğiz.",
1386
- "your-name": "Adınız",
1387
- "your-email": "E-posta adresiniz",
1388
- "start-chat": "Destekle konuş",
1389
- "starting-chat": "Bağlanıyor...",
1390
- "i-need-more-help": "Daha fazla yardıma ihtiyacım var",
1391
- "this-was-helpful": "Bu yardımcı oldu",
1392
- optional: "İsteğe bağlı",
1393
- "no-conversations-yet": "Henüz konuşma yok",
1394
- "back-to-conversations": "Konuşmalara geri dön",
1395
- "closed-conversations": "Kapatılan konuşmalar"
1396
- }, At = {
1397
- en: rr,
1398
- ar: tr,
1399
- nl: sr,
1400
- fr: nr,
1401
- de: or,
1402
- pt: ar,
1403
- es: ir,
1404
- tr: lr
1405
- }, cr = Object.keys(At);
1406
- function dr(e) {
1407
- return cr.includes(e);
1408
- }
1409
- function pr(e, r) {
1410
- const t = At[r];
1411
- return t && t[e] || "";
1412
- }
1413
- function V() {
1414
- const { dir: e } = we(), r = x();
1268
+ function U() {
1269
+ const { dir: e } = ue(), o = b();
1415
1270
  return ct(() => {
1416
- const t = dr(r.language) ? r.language : "en";
1271
+ const t = _r(o.language) ? o.language : "en";
1417
1272
  return {
1418
- t: (n) => pr(n, t),
1273
+ t: (n) => Ir(n, t, o.translationOverrides),
1419
1274
  language: t,
1420
1275
  dir: t === "ar" ? "rtl" : "ltr",
1421
1276
  hostDocumentDir: e
1422
1277
  };
1423
- }, [r.language, e]);
1278
+ }, [o.language, e]);
1424
1279
  }
1425
1280
  function Ce({
1426
1281
  suggestion: e,
1427
- className: r,
1282
+ className: o,
1428
1283
  ...t
1429
1284
  }) {
1430
- const { sendMessage: n } = R(), s = () => {
1431
- const i = e.trim();
1432
- i && n({ content: i });
1285
+ const { sendMessage: n } = E(), s = () => {
1286
+ const a = e.trim();
1287
+ a && n({ content: a });
1433
1288
  };
1434
- return /* @__PURE__ */ o(
1289
+ return /* @__PURE__ */ r(
1435
1290
  y,
1436
1291
  {
1437
- ...u("chat/suggested_reply_btn"),
1292
+ ...g("chat/suggested_reply_btn"),
1438
1293
  size: "sm",
1439
- className: p("rounded-xl w-fit", r),
1294
+ className: p("rounded-xl w-fit", o),
1440
1295
  ...t,
1441
1296
  onClick: s,
1442
1297
  children: e
1443
1298
  }
1444
1299
  );
1445
1300
  }
1446
- function hr() {
1447
- const { t: e } = V(), r = [
1448
- e("i-need-more-help"),
1449
- e("this-was-helpful")
1450
- ];
1451
- return /* @__PURE__ */ o(
1301
+ function to() {
1302
+ const { t: e } = U(), o = [e("i_need_more_help"), e("this_was_helpful")];
1303
+ return /* @__PURE__ */ r(
1452
1304
  "div",
1453
1305
  {
1454
- ...u("chat/might_solve_user_issue_suggested_replies_container"),
1306
+ ...g("chat/might_solve_user_issue_suggested_replies_container"),
1455
1307
  className: "flex items-center gap-2 p-2 pb-0 flex-wrap",
1456
- children: r.map((t) => /* @__PURE__ */ o(
1308
+ children: o.map((t) => /* @__PURE__ */ r(
1457
1309
  Ce,
1458
1310
  {
1459
1311
  suggestion: t,
@@ -1464,46 +1316,46 @@ function hr() {
1464
1316
  }
1465
1317
  );
1466
1318
  }
1467
- function mr({
1468
- file: { status: e, file: r, error: t },
1319
+ function ro({
1320
+ file: { status: e, file: o, error: t },
1469
1321
  onCancel: n
1470
1322
  }) {
1471
- const [s, i] = I(
1323
+ const [s, a] = I(
1472
1324
  null
1473
1325
  );
1474
- oe(() => {
1475
- if (!r.type.startsWith("image/")) return;
1326
+ re(() => {
1327
+ if (!o.type.startsWith("image/")) return;
1476
1328
  const l = new FileReader();
1477
- return l.onload = () => i(l.result), l.onerror = () => console.error("Error reading file"), l.readAsDataURL(r), () => l.abort();
1478
- }, [r]);
1479
- const a = () => {
1329
+ return l.onload = () => a(l.result), l.onerror = () => console.error("Error reading file"), l.readAsDataURL(o), () => l.abort();
1330
+ }, [o]);
1331
+ const i = () => {
1480
1332
  switch (e) {
1481
1333
  case "uploading":
1482
- return /* @__PURE__ */ o(xo, { className: "size-4 animate-spin" });
1334
+ return /* @__PURE__ */ r(vr, { className: "size-4 animate-spin" });
1483
1335
  case "error":
1484
- return /* @__PURE__ */ o(bo, { className: "size-4 text-destructive" });
1336
+ return /* @__PURE__ */ r(fr, { className: "size-4 text-destructive" });
1485
1337
  default:
1486
1338
  return null;
1487
1339
  }
1488
1340
  }, c = () => {
1489
- const l = r.type.split("/")[0];
1490
- return l === "image" && s ? /* @__PURE__ */ o(
1341
+ const l = o.type.split("/")[0];
1342
+ return l === "image" && s ? /* @__PURE__ */ r(
1491
1343
  "img",
1492
1344
  {
1493
1345
  src: typeof s == "string" ? s : "",
1494
1346
  className: "object-cover bg-secondary size-full",
1495
- alt: r.name
1347
+ alt: o.name
1496
1348
  }
1497
- ) : l === "audio" ? /* @__PURE__ */ o(yo, {}) : l === "video" ? /* @__PURE__ */ o(ko, {}) : /* @__PURE__ */ o(Co, {});
1349
+ ) : l === "audio" ? /* @__PURE__ */ r(xr, {}) : l === "video" ? /* @__PURE__ */ r(br, {}) : /* @__PURE__ */ r(yr, {});
1498
1350
  };
1499
- return /* @__PURE__ */ o(
1351
+ return /* @__PURE__ */ r(
1500
1352
  J,
1501
1353
  {
1502
1354
  side: "bottom",
1503
1355
  content: e === "error" ? /* @__PURE__ */ d("span", { className: "text-destructive", children: [
1504
1356
  "Failed to upload: ",
1505
1357
  t
1506
- ] }) : r.name,
1358
+ ] }) : o.name,
1507
1359
  children: /* @__PURE__ */ d(
1508
1360
  "div",
1509
1361
  {
@@ -1514,8 +1366,8 @@ function mr({
1514
1366
  "flex items-center justify-center shrink-0"
1515
1367
  ),
1516
1368
  children: [
1517
- /* @__PURE__ */ o("div", { className: "absolute inset-0 flex items-center justify-center", children: a() }),
1518
- /* @__PURE__ */ o(
1369
+ /* @__PURE__ */ r("div", { className: "absolute inset-0 flex items-center justify-center", children: i() }),
1370
+ /* @__PURE__ */ r(
1519
1371
  "button",
1520
1372
  {
1521
1373
  type: "button",
@@ -1525,31 +1377,31 @@ function mr({
1525
1377
  "opacity-0 group-hover:opacity-100 transition"
1526
1378
  ),
1527
1379
  onClick: n,
1528
- children: /* @__PURE__ */ o(fe, { className: "size-4 text-primary-foreground" })
1380
+ children: /* @__PURE__ */ r(fe, { className: "size-4 text-primary-foreground" })
1529
1381
  }
1530
1382
  ),
1531
- /* @__PURE__ */ o(c, {})
1383
+ /* @__PURE__ */ r(c, {})
1532
1384
  ]
1533
1385
  }
1534
1386
  )
1535
1387
  }
1536
1388
  );
1537
1389
  }
1538
- function ur() {
1539
- var E;
1540
- const { isSmallScreen: e } = O(), r = le(null), { sendMessage: t } = R(), { sessionState: n } = q(), { t: s } = V(), [i, a] = I(""), {
1390
+ function oo() {
1391
+ var R;
1392
+ const { isSmallScreen: e } = P(), o = le(null), { sendMessage: t } = E(), { sessionState: n } = q(), { t: s } = U(), [a, i] = I(""), {
1541
1393
  allFiles: c,
1542
1394
  emptyTheFiles: l,
1543
1395
  handleCancelUpload: h,
1544
- appendFiles: b,
1545
- isUploading: w,
1396
+ appendFiles: x,
1397
+ isUploading: u,
1546
1398
  successFiles: m
1547
- } = $t(), k = !!((E = n.session) != null && E.isHandedOff), { isAwaitingBotReply: f } = ht(), N = (v) => {
1548
- b(v);
1549
- }, T = !i.trim() && m.length === 0, _ = async () => {
1399
+ } = Lt(), k = !!((R = n.session) != null && R.isHandedOff), { isAwaitingBotReply: f } = ht(), N = (v) => {
1400
+ x(v);
1401
+ }, T = !a.trim() && m.length === 0, _ = async () => {
1550
1402
  if (f || T) return;
1551
- w && console.info("please wait for the file(s) to upload");
1552
- const v = i.trim();
1403
+ u && console.info("please wait for the file(s) to upload");
1404
+ const v = a.trim();
1553
1405
  t({
1554
1406
  content: v,
1555
1407
  attachments: m.flatMap(
@@ -1563,12 +1415,12 @@ function ur() {
1563
1415
  }
1564
1416
  ] : []
1565
1417
  )
1566
- }), a(""), l();
1418
+ }), i(""), l();
1567
1419
  }, {
1568
1420
  getRootProps: M,
1569
- getInputProps: A,
1570
- open: P
1571
- } = To({
1421
+ getInputProps: O,
1422
+ open: A
1423
+ } = Tr({
1572
1424
  onDrop: N,
1573
1425
  noClick: !0,
1574
1426
  onDropRejected() {
@@ -1585,22 +1437,22 @@ function ur() {
1585
1437
  "image/gif": [".gif"],
1586
1438
  "image/webp": [".webp"]
1587
1439
  }
1588
- }), W = (v) => {
1440
+ }), F = (v) => {
1589
1441
  const C = v.clipboardData;
1590
1442
  C && C.files.length > 0 && N(Array.from(C.files));
1591
1443
  };
1592
1444
  return /* @__PURE__ */ d(
1593
1445
  "div",
1594
1446
  {
1595
- ...u("chat/input_box/root"),
1447
+ ...g("chat/input_box/root"),
1596
1448
  className: "p-2 relative space-y-1",
1597
1449
  ...M(),
1598
1450
  children: [
1599
- /* @__PURE__ */ o("input", { ...A() }),
1451
+ /* @__PURE__ */ r("input", { ...O() }),
1600
1452
  /* @__PURE__ */ d(
1601
1453
  "div",
1602
1454
  {
1603
- ...u("chat/input_box/inner_root"),
1455
+ ...g("chat/input_box/inner_root"),
1604
1456
  className: p(
1605
1457
  "transition-all",
1606
1458
  "bg-white",
@@ -1612,16 +1464,16 @@ function ur() {
1612
1464
  /* @__PURE__ */ d(
1613
1465
  "div",
1614
1466
  {
1615
- ...u("chat/input_box/textarea_and_attachments_container"),
1467
+ ...g("chat/input_box/textarea_and_attachments_container"),
1616
1468
  className: "flex flex-col gap-2",
1617
1469
  children: [
1618
- c.length > 0 && /* @__PURE__ */ o(
1470
+ c.length > 0 && /* @__PURE__ */ r(
1619
1471
  "div",
1620
1472
  {
1621
- ...u("chat/input_box/attachments_container"),
1473
+ ...g("chat/input_box/attachments_container"),
1622
1474
  className: "flex items-center gap-1",
1623
- children: /* @__PURE__ */ o(S, { mode: "popLayout", children: c.map((v) => /* @__PURE__ */ o(g, { snapExit: !0, children: /* @__PURE__ */ o(
1624
- mr,
1475
+ children: /* @__PURE__ */ r(S, { mode: "popLayout", children: c.map((v) => /* @__PURE__ */ r(w, { snapExit: !0, children: /* @__PURE__ */ r(
1476
+ ro,
1625
1477
  {
1626
1478
  onCancel: () => h(v.id),
1627
1479
  file: v
@@ -1629,14 +1481,14 @@ function ur() {
1629
1481
  ) }, v.id)) })
1630
1482
  }
1631
1483
  ),
1632
- /* @__PURE__ */ o(
1484
+ /* @__PURE__ */ r(
1633
1485
  "textarea",
1634
1486
  {
1635
- ...u("chat/input_box/textarea"),
1636
- onPaste: W,
1637
- ref: r,
1487
+ ...g("chat/input_box/textarea"),
1488
+ onPaste: F,
1489
+ ref: o,
1638
1490
  id: "chat-input",
1639
- value: i,
1491
+ value: a,
1640
1492
  rows: 3,
1641
1493
  className: p(
1642
1494
  /** Match the border radius of the container */
@@ -1649,45 +1501,45 @@ function ur() {
1649
1501
  // 16px on mobiles prevents auto-zoom on the input when focused
1650
1502
  e ? "text-[16px]" : "text-sm"
1651
1503
  ),
1652
- onChange: (v) => a(v.target.value),
1504
+ onChange: (v) => i(v.target.value),
1653
1505
  onKeyDown: async (v) => {
1654
1506
  v.key === "Enter" && !v.shiftKey && (v.preventDefault(), _());
1655
1507
  },
1656
- placeholder: s("write-a-message")
1508
+ placeholder: s("write_a_message_placeholder")
1657
1509
  }
1658
1510
  )
1659
1511
  ]
1660
1512
  }
1661
1513
  ),
1662
1514
  /* @__PURE__ */ d("div", { className: "gap-2 flex justify-between", children: [
1663
- /* @__PURE__ */ o(
1515
+ /* @__PURE__ */ r(
1664
1516
  J,
1665
1517
  {
1666
1518
  side: "top",
1667
1519
  align: "start",
1668
1520
  content: "attach files, (maximum size 5mb)",
1669
- children: /* @__PURE__ */ o(
1521
+ children: /* @__PURE__ */ r(
1670
1522
  y,
1671
1523
  {
1672
- onClick: P,
1524
+ onClick: A,
1673
1525
  size: "fit",
1674
1526
  variant: "ghost",
1675
1527
  className: p(
1676
1528
  "rounded-full size-8 flex items-center justify-center p-0 overflow-hidden"
1677
1529
  ),
1678
- children: /* @__PURE__ */ o(S, { mode: "wait", children: k ? /* @__PURE__ */ o(g, { children: /* @__PURE__ */ o(wo, { className: "size-4" }) }, "paper-clip") : /* @__PURE__ */ o(g, { children: /* @__PURE__ */ o(fo, { className: "size-4" }) }, "image-icon") })
1530
+ children: /* @__PURE__ */ r(S, { mode: "wait", children: k ? /* @__PURE__ */ r(w, { children: /* @__PURE__ */ r(gr, { className: "size-4" }) }, "paper-clip") : /* @__PURE__ */ r(w, { children: /* @__PURE__ */ r(wr, { className: "size-4" }) }, "image-icon") })
1679
1531
  }
1680
1532
  )
1681
1533
  }
1682
1534
  ),
1683
- /* @__PURE__ */ o(J, { content: "send message", side: "top", align: "end", children: /* @__PURE__ */ o(
1535
+ /* @__PURE__ */ r(J, { content: "send message", side: "top", align: "end", children: /* @__PURE__ */ r(
1684
1536
  y,
1685
1537
  {
1686
1538
  size: "fit",
1687
1539
  onClick: _,
1688
- disabled: f || w || T,
1540
+ disabled: f || u || T,
1689
1541
  className: "rounded-full size-8 flex items-center justify-center p-0",
1690
- children: /* @__PURE__ */ o(S, { mode: "wait", children: f || w ? /* @__PURE__ */ o(g, { snapExit: !0, children: /* @__PURE__ */ o(vo, { className: "size-4 animate-spin animate-iteration-infinite" }) }, "loading") : /* @__PURE__ */ o(g, { snapExit: !0, children: /* @__PURE__ */ o(ut, { className: "size-4" }) }, "send") })
1542
+ children: /* @__PURE__ */ r(S, { mode: "wait", children: f || u ? /* @__PURE__ */ r(w, { snapExit: !0, children: /* @__PURE__ */ r(ur, { className: "size-4 animate-spin animate-iteration-infinite" }) }, "loading") : /* @__PURE__ */ r(w, { snapExit: !0, children: /* @__PURE__ */ r(gt, { className: "size-4" }) }, "send") })
1691
1543
  }
1692
1544
  ) })
1693
1545
  ] })
@@ -1699,91 +1551,91 @@ function ur() {
1699
1551
  );
1700
1552
  }
1701
1553
  function st() {
1702
- const { widgetCtx: e } = j(), { router: r } = x(), { canCreateNewSession: t } = q(), { toSessionsScreen: n } = B(), { t: s } = V();
1703
- return /* @__PURE__ */ o(te, { children: t || r != null && r.chatScreenOnly ? /* @__PURE__ */ o(y, { onClick: e.resetChat, className: "rounded-2xl w-full", children: s("new-conversation") }) : /* @__PURE__ */ o(y, { onClick: n, className: "rounded-2xl w-full", children: s("back-to-conversations") }) });
1704
- }
1705
- function gr() {
1706
- const { t: e } = V(), { isCsatRequested: r, isCsatSubmitted: t } = pt();
1707
- return /* @__PURE__ */ o("div", { className: "p-2", children: /* @__PURE__ */ o("div", { className: "p-2 bg-muted rounded-3xl", children: /* @__PURE__ */ o(S, { mode: "wait", children: r || t ? /* @__PURE__ */ d(F, { children: [
1708
- /* @__PURE__ */ o(er, {}),
1709
- /* @__PURE__ */ o(S, { mode: "wait", children: t && /* @__PURE__ */ o(F, { children: /* @__PURE__ */ o(st, {}) }, "new-conv-or-back-to-convs-button") })
1710
- ] }, "csat") : /* @__PURE__ */ d(F, { children: [
1554
+ const { widgetCtx: e } = j(), { router: o } = b(), { canCreateNewSession: t } = q(), { toSessionsScreen: n } = $(), { t: s } = U();
1555
+ return /* @__PURE__ */ r(te, { children: t || o != null && o.chatScreenOnly ? /* @__PURE__ */ r(y, { onClick: e.resetChat, className: "rounded-2xl w-full", children: s("new_conversation") }) : /* @__PURE__ */ r(y, { onClick: n, className: "rounded-2xl w-full", children: s("back_to_conversations") }) });
1556
+ }
1557
+ function no() {
1558
+ const { t: e } = U(), { isCsatRequested: o, isCsatSubmitted: t } = pt();
1559
+ return /* @__PURE__ */ r("div", { className: "p-2", children: /* @__PURE__ */ r("div", { className: "p-2 bg-muted rounded-3xl", children: /* @__PURE__ */ r(S, { mode: "wait", children: o || t ? /* @__PURE__ */ d(W, { children: [
1560
+ /* @__PURE__ */ r(eo, {}),
1561
+ /* @__PURE__ */ r(S, { mode: "wait", children: t && /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r(st, {}) }, "new-conv-or-back-to-convs-button") })
1562
+ ] }, "csat") : /* @__PURE__ */ d(W, { children: [
1711
1563
  /* @__PURE__ */ d("div", { className: "ps-2 flex items-center gap-1 pb-2", children: [
1712
- /* @__PURE__ */ o(mt, { className: "size-4 text-emerald-600" }),
1713
- /* @__PURE__ */ o("h2", { className: "text-sm font-medium", children: e("session-closed-lead") })
1564
+ /* @__PURE__ */ r(mt, { className: "size-4 text-emerald-600" }),
1565
+ /* @__PURE__ */ r("h2", { className: "text-sm font-medium", children: e("your_issue_has_been_resolved") })
1714
1566
  ] }),
1715
- /* @__PURE__ */ o(st, {})
1567
+ /* @__PURE__ */ r(st, {})
1716
1568
  ] }, "session-closed") }) }) });
1717
1569
  }
1718
- function wr() {
1719
- var a;
1720
- const { initialQuestions: e, initialQuestionsPosition: r, thisWasHelpfulOrNot: t } = x(), { sessionState: n } = q(), { messagesState: s } = R(), i = s.messages.length === 0;
1721
- return /* @__PURE__ */ o("footer", { children: /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(S, { mode: "wait", children: n.session && !((a = n.session) != null && a.isOpened) ? /* @__PURE__ */ o(F, { children: /* @__PURE__ */ o(gr, {}) }, "session-closed") : /* @__PURE__ */ d(F, { children: [
1722
- s.lastAIResMightSolveUserIssue && (t == null ? void 0 : t.enabled) !== !1 && /* @__PURE__ */ o(hr, {}),
1723
- i && e && r !== "below-initial-messages" && /* @__PURE__ */ o("div", { className: "flex items-center flex-row justify-end gap-2 flex-wrap px-2", children: e == null ? void 0 : e.map((c, l) => /* @__PURE__ */ o(
1570
+ function so() {
1571
+ var i;
1572
+ const { initialQuestions: e, initialQuestionsPosition: o, thisWasHelpfulOrNot: t } = b(), { sessionState: n } = q(), { messagesState: s } = E(), a = s.messages.length === 0;
1573
+ return /* @__PURE__ */ r("footer", { children: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(S, { mode: "wait", children: n.session && !((i = n.session) != null && i.isOpened) ? /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r(no, {}) }, "session-closed") : /* @__PURE__ */ d(W, { children: [
1574
+ s.lastAIResMightSolveUserIssue && (t == null ? void 0 : t.enabled) !== !1 && /* @__PURE__ */ r(to, {}),
1575
+ a && e && o !== "below-initial-messages" && /* @__PURE__ */ r("div", { className: "flex items-center flex-row justify-end gap-2 flex-wrap px-2", children: e == null ? void 0 : e.map((c, l) => /* @__PURE__ */ r(
1724
1576
  Ce,
1725
1577
  {
1726
1578
  suggestion: c
1727
1579
  },
1728
1580
  `${c}-${l}`
1729
1581
  )) }),
1730
- /* @__PURE__ */ o(ur, {})
1582
+ /* @__PURE__ */ r(oo, {})
1731
1583
  ] }, "chat-input") }) }) });
1732
1584
  }
1733
- function fr({
1585
+ function io({
1734
1586
  isFirstInGroup: e,
1735
- isLastInGroup: r,
1587
+ isLastInGroup: o,
1736
1588
  isAloneInGroup: t,
1737
1589
  ...n
1738
1590
  }) {
1739
1591
  const { componentStore: s } = j();
1740
1592
  if (n.type !== "AGENT" && n.type !== "AI") return null;
1741
1593
  if (n.data.action) {
1742
- const a = s.getComponent(n.data.action.name);
1743
- if (a)
1744
- return /* @__PURE__ */ o(
1745
- a,
1594
+ const i = s.getComponent(n.data.action.name);
1595
+ if (i)
1596
+ return /* @__PURE__ */ r(
1597
+ i,
1746
1598
  {
1747
1599
  ...n,
1748
1600
  id: n.id,
1749
1601
  isFirstInGroup: e,
1750
- isLastInGroup: r,
1602
+ isLastInGroup: o,
1751
1603
  isAloneInGroup: t
1752
1604
  }
1753
1605
  );
1754
1606
  }
1755
- const i = s.getComponent(n.component);
1756
- return i ? /* @__PURE__ */ o(
1757
- i,
1607
+ const a = s.getComponent(n.component);
1608
+ return a ? /* @__PURE__ */ r(
1609
+ a,
1758
1610
  {
1759
1611
  ...n,
1760
1612
  id: n.id,
1761
1613
  isFirstInGroup: e,
1762
- isLastInGroup: r,
1614
+ isLastInGroup: o,
1763
1615
  isAloneInGroup: t
1764
1616
  }
1765
- ) : /* @__PURE__ */ o(
1617
+ ) : /* @__PURE__ */ r(
1766
1618
  he,
1767
1619
  {
1768
1620
  ...n,
1769
1621
  isFirstInGroup: e,
1770
- isLastInGroup: r,
1622
+ isLastInGroup: o,
1771
1623
  isAloneInGroup: t
1772
1624
  }
1773
1625
  );
1774
1626
  }
1775
- function Pt({
1627
+ function Ot({
1776
1628
  messages: e,
1777
- className: r,
1629
+ className: o,
1778
1630
  containerClassName: t
1779
1631
  }) {
1780
- var a, c;
1781
- const { timestamps: n } = x();
1782
- if (!((a = n == null ? void 0 : n.perMessageGroup) != null && a.enabled))
1632
+ var i, c;
1633
+ const { timestamps: n } = b();
1634
+ if (!((i = n == null ? void 0 : n.perMessageGroup) != null && i.enabled))
1783
1635
  return null;
1784
1636
  const s = (c = e[e.length - 1]) == null ? void 0 : c.timestamp;
1785
1637
  if (!s) return null;
1786
- const i = (() => {
1638
+ const a = (() => {
1787
1639
  try {
1788
1640
  return new Date(s).toLocaleTimeString([], {
1789
1641
  hour: "2-digit",
@@ -1794,24 +1646,24 @@ function Pt({
1794
1646
  return console.error(l), null;
1795
1647
  }
1796
1648
  })();
1797
- return i ? /* @__PURE__ */ o("div", { className: t, children: /* @__PURE__ */ o("span", { className: p("text-xs text-muted-foreground", r), children: i }) }) : null;
1649
+ return a ? /* @__PURE__ */ r("div", { className: t, children: /* @__PURE__ */ r("span", { className: p("text-xs text-muted-foreground", o), children: a }) }) : null;
1798
1650
  }
1799
1651
  function ze({
1800
1652
  messages: e,
1801
- agent: r,
1653
+ agent: o,
1802
1654
  suggestedReplies: t
1803
1655
  }) {
1804
1656
  return /* @__PURE__ */ d(
1805
1657
  "div",
1806
1658
  {
1807
- ...u("chat/agent_msg_group/root"),
1659
+ ...g("chat/agent_msg_group/root"),
1808
1660
  className: p("flex items-end gap-2"),
1809
1661
  children: [
1810
- /* @__PURE__ */ o(J, { content: r == null ? void 0 : r.name, side: "right", align: "end", children: /* @__PURE__ */ o(
1662
+ /* @__PURE__ */ r(J, { content: o == null ? void 0 : o.name, side: "right", align: "end", children: /* @__PURE__ */ r(
1811
1663
  me,
1812
1664
  {
1813
- ...u("chat/agent_msg_group/root/avatar"),
1814
- agent: r,
1665
+ ...g("chat/agent_msg_group/root/avatar"),
1666
+ agent: o,
1815
1667
  className: "hidden"
1816
1668
  }
1817
1669
  ) }),
@@ -1819,45 +1671,45 @@ function ze({
1819
1671
  /* @__PURE__ */ d(
1820
1672
  "div",
1821
1673
  {
1822
- ...u("chat/agent_msg_group/avatar_and_msgs/root"),
1674
+ ...g("chat/agent_msg_group/avatar_and_msgs/root"),
1823
1675
  className: p("flex items-end gap-2"),
1824
1676
  children: [
1825
- /* @__PURE__ */ o(J, { content: r == null ? void 0 : r.name, side: "right", align: "end", children: /* @__PURE__ */ o(
1677
+ /* @__PURE__ */ r(J, { content: o == null ? void 0 : o.name, side: "right", align: "end", children: /* @__PURE__ */ r(
1826
1678
  me,
1827
1679
  {
1828
- ...u("chat/agent_msg_group/avatar_and_msgs/avatar"),
1829
- agent: r
1680
+ ...g("chat/agent_msg_group/avatar_and_msgs/avatar"),
1681
+ agent: o
1830
1682
  }
1831
1683
  ) }),
1832
1684
  /* @__PURE__ */ d(
1833
1685
  "div",
1834
1686
  {
1835
- ...u("chat/agent_msg_group/avatar_and_msgs/msgs"),
1687
+ ...g("chat/agent_msg_group/avatar_and_msgs/msgs"),
1836
1688
  className: p("flex-1 flex flex-col gap-1"),
1837
1689
  children: [
1838
- e.map((n, s, i) => /* @__PURE__ */ o(
1839
- fr,
1690
+ e.map((n, s, a) => /* @__PURE__ */ r(
1691
+ io,
1840
1692
  {
1841
1693
  isFirstInGroup: s === 0,
1842
- isLastInGroup: s === i.length - 1,
1843
- isAloneInGroup: i.length === 1,
1694
+ isLastInGroup: s === a.length - 1,
1695
+ isAloneInGroup: a.length === 1,
1844
1696
  ...n
1845
1697
  },
1846
1698
  n.id
1847
1699
  )),
1848
- /* @__PURE__ */ o(Pt, { messages: e })
1700
+ /* @__PURE__ */ r(Ot, { messages: e })
1849
1701
  ]
1850
1702
  }
1851
1703
  )
1852
1704
  ]
1853
1705
  }
1854
1706
  ),
1855
- t && t.length > 0 && /* @__PURE__ */ o(
1707
+ t && t.length > 0 && /* @__PURE__ */ r(
1856
1708
  "div",
1857
1709
  {
1858
- ...u("chat/agent_msg_group/suggestions"),
1710
+ ...g("chat/agent_msg_group/suggestions"),
1859
1711
  className: p("flex flex-col gap-1 ps-8"),
1860
- children: t == null ? void 0 : t.map((n, s) => /* @__PURE__ */ o(
1712
+ children: t == null ? void 0 : t.map((n, s) => /* @__PURE__ */ r(
1861
1713
  Ce,
1862
1714
  {
1863
1715
  suggestion: n
@@ -1871,20 +1723,20 @@ function ze({
1871
1723
  }
1872
1724
  );
1873
1725
  }
1874
- function vr() {
1726
+ function ao() {
1875
1727
  var s;
1876
1728
  const {
1877
1729
  widgetCtx: { org: e }
1878
1730
  } = j(), {
1879
- sessionState: { session: r }
1880
- } = q(), t = x();
1881
- if (r != null && r.isOpened || !r) return null;
1731
+ sessionState: { session: o }
1732
+ } = q(), t = b();
1733
+ if (o != null && o.isOpened || !o) return null;
1882
1734
  const n = (s = t.specialComponents) == null ? void 0 : s.onSessionResolved;
1883
- return n ? /* @__PURE__ */ o(n, { react: $, session: r, config: t, org: e }) : null;
1735
+ return n ? /* @__PURE__ */ r(n, { react: Y, session: o, config: t, org: e }) : null;
1884
1736
  }
1885
- function br({
1737
+ function lo({
1886
1738
  message: e,
1887
- isFirstInGroup: r,
1739
+ isFirstInGroup: o,
1888
1740
  isLastInGroup: t,
1889
1741
  isAloneInGroup: n
1890
1742
  }) {
@@ -1892,15 +1744,15 @@ function br({
1892
1744
  return /* @__PURE__ */ d(
1893
1745
  "div",
1894
1746
  {
1895
- ...u("chat/user_msg/root"),
1747
+ ...g("chat/user_msg/root"),
1896
1748
  className: "w-5/6 flex flex-col items-end gap-1",
1897
1749
  children: [
1898
- e.attachments && e.attachments.length > 0 && /* @__PURE__ */ o("div", { className: "w-full flex gap-1 flex-wrap justify-end", children: (s = e.attachments) == null ? void 0 : s.map((i) => /* @__PURE__ */ o(St, { attachment: i }, i.id)) }),
1899
- e.content.length > 0 && /* @__PURE__ */ o(
1750
+ e.attachments && e.attachments.length > 0 && /* @__PURE__ */ r("div", { className: "w-full flex gap-1 flex-wrap justify-end", children: (s = e.attachments) == null ? void 0 : s.map((a) => /* @__PURE__ */ r(St, { attachment: a }, a.id)) }),
1751
+ e.content.length > 0 && /* @__PURE__ */ r(
1900
1752
  "div",
1901
1753
  {
1902
- ...u("chat/user_msg/msg"),
1903
- "data-first": r,
1754
+ ...g("chat/user_msg/msg"),
1755
+ "data-first": o,
1904
1756
  "data-last": t,
1905
1757
  "data-alone": n,
1906
1758
  className: p(
@@ -1911,9 +1763,9 @@ function br({
1911
1763
  // `[word-break:break-word]` is deprecated but works in the browser, while `break-words` which is `[overflow-wrap: break-word]` does not work
1912
1764
  "whitespace-pre-wrap",
1913
1765
  // We're using the booleans directly here, not the data attributes, to make any external styling more specific than this
1914
- r && !n && "rounded-br-md",
1766
+ o && !n && "rounded-br-md",
1915
1767
  t && !n && "rounded-tr-md",
1916
- !r && !t && !n && "rounded-r-md"
1768
+ !o && !t && !n && "rounded-r-md"
1917
1769
  ),
1918
1770
  children: e.content
1919
1771
  }
@@ -1922,67 +1774,67 @@ function br({
1922
1774
  }
1923
1775
  );
1924
1776
  }
1925
- function xr({
1777
+ function co({
1926
1778
  messages: e
1927
1779
  }) {
1928
1780
  return /* @__PURE__ */ d(
1929
1781
  "div",
1930
1782
  {
1931
- ...u("chat/user_msg_group/root"),
1783
+ ...g("chat/user_msg_group/root"),
1932
1784
  className: p("group", "flex flex-col gap-1 justify-end items-end"),
1933
1785
  children: [
1934
- e.map((r, t, n) => /* @__PURE__ */ o(
1935
- br,
1786
+ e.map((o, t, n) => /* @__PURE__ */ r(
1787
+ lo,
1936
1788
  {
1937
- message: r,
1789
+ message: o,
1938
1790
  isFirstInGroup: t === 0,
1939
1791
  isLastInGroup: t === n.length - 1,
1940
1792
  isAloneInGroup: n.length === 1
1941
1793
  },
1942
- r.id
1794
+ o.id
1943
1795
  )),
1944
- /* @__PURE__ */ o(Pt, { messages: e, containerClassName: "ms-auto" })
1796
+ /* @__PURE__ */ r(Ot, { messages: e, containerClassName: "ms-auto" })
1945
1797
  ]
1946
1798
  }
1947
1799
  );
1948
1800
  }
1949
- function yr(e) {
1950
- const r = [];
1801
+ function po(e) {
1802
+ const o = [];
1951
1803
  let t = null;
1952
1804
  return e.forEach((n) => {
1953
- var s, i, a, c, l, h;
1954
- (!t || ((s = t[0]) == null ? void 0 : s.type) !== n.type) && (t = [], r.push(t)), ((i = t[0]) == null ? void 0 : i.type) === "AGENT" && n.type === "AGENT" && (((a = n.agent) == null ? void 0 : a.id) !== ((c = t[0].agent) == null ? void 0 : c.id) || ((l = n.agent) == null ? void 0 : l.name) !== ((h = t[0].agent) == null ? void 0 : h.name)) && (t = [], r.push(t)), t.push(n);
1955
- }), r;
1805
+ var s, a, i, c, l, h;
1806
+ (!t || ((s = t[0]) == null ? void 0 : s.type) !== n.type) && (t = [], o.push(t)), ((a = t[0]) == null ? void 0 : a.type) === "AGENT" && n.type === "AGENT" && (((i = n.agent) == null ? void 0 : i.id) !== ((c = t[0].agent) == null ? void 0 : c.id) || ((l = n.agent) == null ? void 0 : l.name) !== ((h = t[0].agent) == null ? void 0 : h.name)) && (t = [], o.push(t)), t.push(n);
1807
+ }), o;
1956
1808
  }
1957
- function kr(e) {
1958
- var r;
1959
- return ((r = e == null ? void 0 : e[0]) == null ? void 0 : r.type) === "USER";
1809
+ function ho(e) {
1810
+ var o;
1811
+ return ((o = e == null ? void 0 : e[0]) == null ? void 0 : o.type) === "USER";
1960
1812
  }
1961
- function Cr(e) {
1962
- var r;
1963
- return ((r = e == null ? void 0 : e[0]) == null ? void 0 : r.type) === "AI";
1813
+ function mo(e) {
1814
+ var o;
1815
+ return ((o = e == null ? void 0 : e[0]) == null ? void 0 : o.type) === "AI";
1964
1816
  }
1965
- function zr(e) {
1966
- var r;
1967
- return ((r = e == null ? void 0 : e[0]) == null ? void 0 : r.type) === "AGENT";
1817
+ function go(e) {
1818
+ var o;
1819
+ return ((o = e == null ? void 0 : e[0]) == null ? void 0 : o.type) === "AGENT";
1968
1820
  }
1969
- function Nr() {
1821
+ function wo() {
1970
1822
  const {
1971
1823
  messagesState: { messages: e }
1972
- } = R(), {
1973
- advancedInitialMessages: r = [],
1824
+ } = E(), {
1825
+ advancedInitialMessages: o = [],
1974
1826
  initialQuestionsPosition: t,
1975
1827
  initialQuestions: n,
1976
1828
  bot: s
1977
- } = x();
1978
- return /* @__PURE__ */ o(te, { children: e.length === 0 && r.length > 0 && /* @__PURE__ */ o(
1829
+ } = b();
1830
+ return /* @__PURE__ */ r(te, { children: e.length === 0 && o.length > 0 && /* @__PURE__ */ r(
1979
1831
  ze,
1980
1832
  {
1981
- messages: r.map(
1982
- ({ message: i }, a) => ({
1833
+ messages: o.map(
1834
+ ({ message: a }, i) => ({
1983
1835
  component: "bot_message",
1984
- data: { message: i },
1985
- id: `${a}-${i}`,
1836
+ data: { message: a },
1837
+ id: `${i}-${a}`,
1986
1838
  type: "AI",
1987
1839
  timestamp: null
1988
1840
  })
@@ -1992,109 +1844,109 @@ function Nr() {
1992
1844
  }
1993
1845
  ) });
1994
1846
  }
1995
- function Sr() {
1847
+ function uo() {
1996
1848
  const {
1997
1849
  messagesState: { messages: e }
1998
- } = R(), { chatBannerItems: r } = x();
1999
- return !(r != null && r.length) || e.length > 0 && r.every((t) => !t.persistent) ? null : /* @__PURE__ */ o("div", { className: "w-full text-center text-xs", children: r.map(
2000
- ({ message: t, persistent: n }, s) => e.length > 0 && !n ? null : /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(It, { children: t }) }, `${t}-${s}`)
1850
+ } = E(), { chatBannerItems: o } = b();
1851
+ 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(
1852
+ ({ message: t, persistent: n }, s) => e.length > 0 && !n ? null : /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(It, { children: t }) }, `${t}-${s}`)
2001
1853
  ) });
2002
1854
  }
2003
- function _r() {
1855
+ function fo() {
2004
1856
  const {
2005
1857
  messagesState: { messages: e }
2006
- } = R(), r = x(), {
1858
+ } = E(), o = b(), {
2007
1859
  advancedInitialMessages: t = [],
2008
1860
  initialQuestions: n,
2009
1861
  initialQuestionsPosition: s
2010
- } = r, i = (() => {
2011
- var a;
2012
- return t.length ? [] : e.length ? [] : (a = r.initialMessages) != null && a.length ? r.initialMessages : ["Hello, how can I help you?"];
1862
+ } = o, a = (() => {
1863
+ var i;
1864
+ return t.length ? [] : e.length ? [] : (i = o.initialMessages) != null && i.length ? o.initialMessages : ["Hello, how can I help you?"];
2013
1865
  })();
2014
- return /* @__PURE__ */ o(te, { children: e.length === 0 && i.length > 0 && /* @__PURE__ */ o(
1866
+ return /* @__PURE__ */ r(te, { children: e.length === 0 && a.length > 0 && /* @__PURE__ */ r(
2015
1867
  ze,
2016
1868
  {
2017
- messages: i.map(
2018
- (a, c) => ({
1869
+ messages: a.map(
1870
+ (i, c) => ({
2019
1871
  component: "bot_message",
2020
- data: { message: a },
2021
- id: `${c}-${a}`,
1872
+ data: { message: i },
1873
+ id: `${c}-${i}`,
2022
1874
  type: "AI",
2023
1875
  timestamp: null
2024
1876
  })
2025
1877
  ),
2026
1878
  suggestedReplies: s === "below-initial-messages" ? n : void 0,
2027
- agent: r.bot ? { ...r.bot, isAi: !0, id: null } : void 0
1879
+ agent: o.bot ? { ...o.bot, isAi: !0, id: null } : void 0
2028
1880
  }
2029
1881
  ) });
2030
1882
  }
2031
- function Ir() {
1883
+ function vo() {
2032
1884
  const {
2033
1885
  messagesState: { messages: e }
2034
- } = R(), { isAwaitingBotReply: r } = ht(), { componentStore: t } = j(), n = x(), s = ct(
2035
- () => yr(e),
1886
+ } = E(), { isAwaitingBotReply: o } = ht(), { componentStore: t } = j(), n = b(), s = ct(
1887
+ () => po(e),
2036
1888
  [e]
2037
- ), i = t.getComponent(
1889
+ ), a = t.getComponent(
2038
1890
  "loading"
2039
- ), a = le(null);
1891
+ ), i = le(null);
2040
1892
  function c() {
2041
1893
  setTimeout(() => {
2042
- const l = a.current;
1894
+ const l = i.current;
2043
1895
  l && (l.scrollTop = l.scrollHeight);
2044
1896
  }, 0);
2045
1897
  }
2046
- return oe(() => {
1898
+ return re(() => {
2047
1899
  c();
2048
1900
  }, [e]), /* @__PURE__ */ d(
2049
1901
  "div",
2050
1902
  {
2051
- ...u("chat/msgs/root"),
2052
- ref: a,
1903
+ ...g("chat/msgs/root"),
1904
+ ref: i,
2053
1905
  className: "max-h-full scroll-smooth relative flex-1 py-2 px-4 flex flex-col gap-2 overflow-auto",
2054
1906
  children: [
2055
- /* @__PURE__ */ o(Sr, {}),
2056
- /* @__PURE__ */ o(Nr, {}),
2057
- /* @__PURE__ */ o(_r, {}),
1907
+ /* @__PURE__ */ r(uo, {}),
1908
+ /* @__PURE__ */ r(wo, {}),
1909
+ /* @__PURE__ */ r(fo, {}),
2058
1910
  s.map((l) => {
2059
- var w, m, k;
2060
- const h = (w = l == null ? void 0 : l[0]) == null ? void 0 : w.type, b = (m = l[0]) == null ? void 0 : m.id;
2061
- if (!h || !b) return null;
2062
- if (kr(l))
2063
- return /* @__PURE__ */ o(xr, { messages: l }, b);
2064
- if (Cr(l) || zr(l)) {
1911
+ var u, m, k;
1912
+ const h = (u = l == null ? void 0 : l[0]) == null ? void 0 : u.type, x = (m = l[0]) == null ? void 0 : m.id;
1913
+ if (!h || !x) return null;
1914
+ if (ho(l))
1915
+ return /* @__PURE__ */ r(co, { messages: l }, x);
1916
+ if (mo(l) || go(l)) {
2065
1917
  const f = (k = l[0]) == null ? void 0 : k.agent;
2066
- return /* @__PURE__ */ o(
1918
+ return /* @__PURE__ */ r(
2067
1919
  ze,
2068
1920
  {
2069
1921
  messages: l,
2070
1922
  agent: f
2071
1923
  },
2072
- b
1924
+ x
2073
1925
  );
2074
1926
  }
2075
1927
  return null;
2076
1928
  }),
2077
- r && i && /* @__PURE__ */ o(i, { agent: n.bot }),
2078
- /* @__PURE__ */ o(vr, {})
1929
+ o && a && /* @__PURE__ */ r(a, { agent: n.bot }),
1930
+ /* @__PURE__ */ r(ao, {})
2079
1931
  ]
2080
1932
  }
2081
1933
  );
2082
1934
  }
2083
- function Tr() {
1935
+ function xo() {
2084
1936
  const {
2085
1937
  messagesState: { isInitialFetchLoading: e }
2086
- } = R(), {
2087
- sessionState: { session: r }
2088
- } = q(), { isCanvasOpen: t } = Zo(), { theme: n } = U();
1938
+ } = E(), {
1939
+ sessionState: { session: o }
1940
+ } = q(), { isCanvasOpen: t } = Qr(), { theme: n } = X();
2089
1941
  ye({
2090
1942
  width: t ? n.screens.chat.withCanvas.width : n.screens.chat.width,
2091
1943
  height: t ? n.screens.chat.withCanvas.height : n.screens.chat.height
2092
1944
  });
2093
- const s = le((r == null ? void 0 : r.id) || "chat").current;
2094
- return /* @__PURE__ */ o(
1945
+ const s = le((o == null ? void 0 : o.id) || "chat").current;
1946
+ return /* @__PURE__ */ r(
2095
1947
  "div",
2096
1948
  {
2097
- ...u("chat/root"),
1949
+ ...g("chat/root"),
2098
1950
  className: p("flex flex-col overflow-hidden"),
2099
1951
  style: {
2100
1952
  width: "100vw",
@@ -2107,16 +1959,16 @@ function Tr() {
2107
1959
  // Relative to the iframe
2108
1960
  },
2109
1961
  children: /* @__PURE__ */ d("div", { className: "size-full justify-between flex flex-col", children: [
2110
- /* @__PURE__ */ o(Rt, {}),
2111
- /* @__PURE__ */ o(S, { mode: "wait", children: e ? /* @__PURE__ */ o(
2112
- g,
1962
+ /* @__PURE__ */ r(Et, {}),
1963
+ /* @__PURE__ */ r(S, { mode: "wait", children: e ? /* @__PURE__ */ r(
1964
+ w,
2113
1965
  {
2114
1966
  className: "flex flex-col items-center justify-center w-full flex-1",
2115
- children: /* @__PURE__ */ o(Ot, {})
1967
+ children: /* @__PURE__ */ r(Pt, {})
2116
1968
  },
2117
1969
  "loading"
2118
1970
  ) : /* @__PURE__ */ d(
2119
- g,
1971
+ w,
2120
1972
  {
2121
1973
  className: "flex items-start h-full flex-1 overflow-auto",
2122
1974
  snapExit: !0,
@@ -2124,7 +1976,7 @@ function Tr() {
2124
1976
  /* @__PURE__ */ d(
2125
1977
  "div",
2126
1978
  {
2127
- ...u("chat/main/root"),
1979
+ ...g("chat/main/root"),
2128
1980
  className: p(
2129
1981
  "flex flex-col h-full overflow-auto transition-all",
2130
1982
  t ? "w-2/5" : "w-full"
@@ -2134,15 +1986,15 @@ function Tr() {
2134
1986
  transitionDuration: n.screens.chat.withCanvas.transitionDuration
2135
1987
  },
2136
1988
  children: [
2137
- /* @__PURE__ */ o(Ir, {}),
2138
- /* @__PURE__ */ o(wr, {})
1989
+ /* @__PURE__ */ r(vo, {}),
1990
+ /* @__PURE__ */ r(so, {})
2139
1991
  ]
2140
1992
  }
2141
1993
  ),
2142
- /* @__PURE__ */ o(
1994
+ /* @__PURE__ */ r(
2143
1995
  "div",
2144
1996
  {
2145
- ...u("chat/canvas/root"),
1997
+ ...g("chat/canvas/root"),
2146
1998
  className: p(
2147
1999
  "h-full overflow-auto transition-all",
2148
2000
  t ? "w-3/5" : "w-0"
@@ -2151,7 +2003,7 @@ function Tr() {
2151
2003
  transitionTimingFunction: n.screens.chat.withCanvas.transitionTimingFunction,
2152
2004
  transitionDuration: n.screens.chat.withCanvas.transitionDuration
2153
2005
  },
2154
- children: /* @__PURE__ */ o(Qo, {})
2006
+ children: /* @__PURE__ */ r(Zr, {})
2155
2007
  }
2156
2008
  )
2157
2009
  ]
@@ -2162,20 +2014,20 @@ function Tr() {
2162
2014
  }
2163
2015
  );
2164
2016
  }
2165
- function Mr({
2017
+ function bo({
2166
2018
  className: e,
2167
- ...r
2019
+ ...o
2168
2020
  }) {
2169
- return /* @__PURE__ */ o(
2021
+ return /* @__PURE__ */ r(
2170
2022
  "div",
2171
2023
  {
2172
2024
  className: p("animate-pulse rounded-md bg-secondary", e),
2173
- ...r
2025
+ ...o
2174
2026
  }
2175
2027
  );
2176
2028
  }
2177
- function Dr({ className: e }) {
2178
- return /* @__PURE__ */ o(
2029
+ function yo({ className: e }) {
2030
+ return /* @__PURE__ */ r(
2179
2031
  "svg",
2180
2032
  {
2181
2033
  width: "26",
@@ -2184,7 +2036,7 @@ function Dr({ className: e }) {
2184
2036
  fill: "none",
2185
2037
  xmlns: "http://www.w3.org/2000/svg",
2186
2038
  className: p("text-primary-foreground", e),
2187
- children: /* @__PURE__ */ o(
2039
+ children: /* @__PURE__ */ r(
2188
2040
  "path",
2189
2041
  {
2190
2042
  d: "M1.34103 25.6132H5.44245C5.74203 25.6228 6.02673 25.7462 6.23867 25.9582C6.45062 26.1703 6.5739 26.4551 6.58348 26.7548V30.8584C6.59305 31.1581 6.71634 31.443 6.92828 31.655C7.14023 31.8671 7.42492 31.9904 7.7245 32H18.2894C18.589 31.9904 18.8737 31.8671 19.0856 31.655C19.2976 31.443 19.4209 31.1581 19.4304 30.8584V26.7548C19.4401 26.4545 19.5638 26.1692 19.7765 25.957C19.9892 25.7449 20.2748 25.6219 20.5749 25.6132H24.659C24.9586 25.6036 25.2433 25.4803 25.4552 25.2682C25.6671 25.0562 25.7904 24.7713 25.8 24.4716V7.52839C25.7904 7.22865 25.6671 6.94381 25.4552 6.73176C25.2433 6.5197 24.9586 6.39635 24.659 6.38677H20.561C20.2603 6.37802 19.9742 6.25457 19.7614 6.04169C19.5487 5.82881 19.4253 5.54261 19.4165 5.24168V1.14161C19.4072 0.84419 19.2858 0.561291 19.0768 0.349589C18.8678 0.137887 18.5865 0.0130193 18.2894 0L7.7245 0C7.42492 0.00957792 7.14023 0.132929 6.92828 0.344983C6.71634 0.557036 6.59305 0.841878 6.58348 1.14161V5.24168C6.57477 5.54203 6.45187 5.82773 6.23983 6.04052C6.0278 6.25331 5.74262 6.37715 5.44245 6.38677H1.34103C1.04144 6.39635 0.756749 6.5197 0.544805 6.73176C0.332861 6.94381 0.209574 7.22865 0.200001 7.52839V24.4716C0.209574 24.7713 0.332861 25.0562 0.544805 25.2682C0.756749 25.4803 1.04144 25.6036 1.34103 25.6132ZM6.58348 24.4716V7.52839C6.59305 7.22865 6.71634 6.94381 6.92828 6.73176C7.14023 6.5197 7.42492 6.39635 7.7245 6.38677H18.2894C18.589 6.39635 18.8737 6.5197 19.0856 6.73176C19.2976 6.94381 19.4209 7.22865 19.4304 7.52839V24.4716C19.4209 24.7713 19.2976 25.0562 19.0856 25.2682C18.8737 25.4803 18.589 25.6036 18.2894 25.6132H7.7245C7.42492 25.6036 7.14023 25.4803 6.92828 25.2682C6.71634 25.0562 6.59305 24.7713 6.58348 24.4716Z",
@@ -2194,19 +2046,19 @@ function Dr({ className: e }) {
2194
2046
  }
2195
2047
  );
2196
2048
  }
2197
- function Wt({ className: e }) {
2198
- const { token: r } = x();
2199
- return /* @__PURE__ */ o(
2049
+ function At({ className: e }) {
2050
+ const { token: o } = b();
2051
+ return /* @__PURE__ */ r(
2200
2052
  "div",
2201
2053
  {
2202
2054
  className: p(
2203
2055
  "flex items-center justify-center gap-2 p-2 pt-0",
2204
2056
  e
2205
2057
  ),
2206
- children: /* @__PURE__ */ o(H, { children: /* @__PURE__ */ d(
2058
+ children: /* @__PURE__ */ r(H, { children: /* @__PURE__ */ d(
2207
2059
  "a",
2208
2060
  {
2209
- href: `https://open.cx/?ref=${r}`,
2061
+ href: `https://open.cx/?ref=${o}`,
2210
2062
  target: "_blank",
2211
2063
  rel: "noreferrer",
2212
2064
  className: p(
@@ -2215,11 +2067,11 @@ function Wt({ className: e }) {
2215
2067
  "hover:text-primary [&_svg]:hover:text-primary"
2216
2068
  ),
2217
2069
  children: [
2218
- /* @__PURE__ */ o("span", { children: "Powered by" }),
2219
- /* @__PURE__ */ o("span", { children: " " }),
2070
+ /* @__PURE__ */ r("span", { children: "Powered by" }),
2071
+ /* @__PURE__ */ r("span", { children: " " }),
2220
2072
  /* @__PURE__ */ d("span", { className: "flex items-center gap-[1px]", children: [
2221
- /* @__PURE__ */ o("span", { children: /* @__PURE__ */ o(Dr, { className: "size-3 inline-block" }) }),
2222
- /* @__PURE__ */ o("span", { className: "font-semibold", children: "open" })
2073
+ /* @__PURE__ */ r("span", { children: /* @__PURE__ */ r(yo, { className: "size-3 inline-block" }) }),
2074
+ /* @__PURE__ */ r("span", { className: "font-semibold", children: "open" })
2223
2075
  ] })
2224
2076
  ]
2225
2077
  }
@@ -2227,14 +2079,14 @@ function Wt({ className: e }) {
2227
2079
  }
2228
2080
  );
2229
2081
  }
2230
- function jr({ children: e }) {
2231
- return /* @__PURE__ */ o("p", { className: "ps-4 text-xs text-muted-foreground/75 uppercase font-semibold tracking-tight", children: e });
2082
+ function ko({ children: e }) {
2083
+ return /* @__PURE__ */ r("p", { className: "ps-4 text-xs text-muted-foreground/75 uppercase font-semibold tracking-tight", children: e });
2232
2084
  }
2233
- function at({
2085
+ function it({
2234
2086
  session: e,
2235
- className: r
2087
+ className: o
2236
2088
  }) {
2237
- const { bot: t } = x(), { toChatScreen: n } = B(), s = e.assignee.kind === "human" ? e.assignee.name || "Support Agent" : (t == null ? void 0 : t.name) || "AI Support Agent", i = e.assignee.kind === "human" ? e.assignee.avatarUrl || "" : (t == null ? void 0 : t.avatar) || "";
2089
+ const { bot: t } = b(), { toChatScreen: n } = $(), s = e.assignee.kind === "human" ? e.assignee.name || "Support Agent" : (t == null ? void 0 : t.name) || "AI Support Agent", a = e.assignee.kind === "human" ? e.assignee.avatarUrl || "" : (t == null ? void 0 : t.avatar) || "";
2238
2090
  return /* @__PURE__ */ d(
2239
2091
  y,
2240
2092
  {
@@ -2242,74 +2094,74 @@ function at({
2242
2094
  size: "lg",
2243
2095
  className: p(
2244
2096
  "rounded-full p-2 pe-4 flex text-start justify-between w-full whitespace-normal",
2245
- r
2097
+ o
2246
2098
  ),
2247
2099
  onClick: () => n(e.id),
2248
2100
  children: [
2249
2101
  /* @__PURE__ */ d("div", { className: "flex-1 flex gap-2 items-center", children: [
2250
- /* @__PURE__ */ o(S, { mode: "wait", children: /* @__PURE__ */ o(g, { snapExit: !0, children: /* @__PURE__ */ d(ve, { className: "size-10", children: [
2251
- /* @__PURE__ */ o(be, { src: i, alt: "Agent Icon" }),
2252
- /* @__PURE__ */ o(xe, { children: /* @__PURE__ */ o(zo, { className: "size-4" }) })
2102
+ /* @__PURE__ */ r(S, { mode: "wait", children: /* @__PURE__ */ r(w, { snapExit: !0, children: /* @__PURE__ */ d(ve, { className: "size-10", children: [
2103
+ /* @__PURE__ */ r(xe, { src: a, alt: "Agent Icon" }),
2104
+ /* @__PURE__ */ r(be, { children: /* @__PURE__ */ r(kr, { className: "size-4" }) })
2253
2105
  ] }) }) }),
2254
2106
  /* @__PURE__ */ d("div", { className: "flex-1", children: [
2255
- /* @__PURE__ */ o(S, { mode: "wait", children: /* @__PURE__ */ o(g, { snapExit: !0, children: s }, s) }),
2256
- /* @__PURE__ */ o(S, { mode: "wait", children: e.lastMessage ? /* @__PURE__ */ o(g, { snapExit: !0, children: /* @__PURE__ */ o(
2107
+ /* @__PURE__ */ r(S, { mode: "wait", children: /* @__PURE__ */ r(w, { snapExit: !0, children: s }, s) }),
2108
+ /* @__PURE__ */ r(S, { mode: "wait", children: e.lastMessage ? /* @__PURE__ */ r(w, { snapExit: !0, children: /* @__PURE__ */ r(
2257
2109
  _t,
2258
2110
  {
2259
- remarkPlugins: [gt],
2260
- rehypePlugins: [wt],
2111
+ remarkPlugins: [wt],
2112
+ rehypePlugins: [ut],
2261
2113
  className: "line-clamp-1 overflow-hidden text-ellipsis text-xs text-muted-foreground",
2262
2114
  children: e.lastMessage
2263
2115
  }
2264
- ) }, e.lastMessage || "content") : /* @__PURE__ */ o(g, { className: "w-1/2", snapExit: !0, children: /* @__PURE__ */ o(Mr, { className: "h-4 w-full" }) }, "skeleton") })
2116
+ ) }, e.lastMessage || "content") : /* @__PURE__ */ r(w, { className: "w-1/2", snapExit: !0, children: /* @__PURE__ */ r(bo, { className: "h-4 w-full" }) }, "skeleton") })
2265
2117
  ] })
2266
2118
  ] }),
2267
- /* @__PURE__ */ o(No, { className: "size-4 text-muted-foreground shrink-0 rtl:-scale-100" })
2119
+ /* @__PURE__ */ r(Cr, { className: "size-4 text-muted-foreground shrink-0 rtl:-scale-100" })
2268
2120
  ]
2269
2121
  }
2270
2122
  );
2271
2123
  }
2272
- function Er() {
2273
- const { t: e } = V(), { toChatScreen: r } = B(), {
2124
+ function Co() {
2125
+ const { t: e } = U(), { toChatScreen: o } = $(), {
2274
2126
  sessionsState: { data: t, isInitialFetchLoading: n },
2275
2127
  openSessions: s,
2276
- closedSessions: i,
2277
- canCreateNewSession: a
2128
+ closedSessions: a,
2129
+ canCreateNewSession: i
2278
2130
  } = q();
2279
- return /* @__PURE__ */ o("div", { className: "flex-1 flex flex-col overflow-scroll py-2 px-2", children: /* @__PURE__ */ o(S, { mode: "wait", children: n ? /* @__PURE__ */ o(
2280
- g,
2131
+ return /* @__PURE__ */ r("div", { className: "flex-1 flex flex-col overflow-scroll py-2 px-2", children: /* @__PURE__ */ r(S, { mode: "wait", children: n ? /* @__PURE__ */ r(
2132
+ w,
2281
2133
  {
2282
2134
  className: "flex-1 flex items-center justify-center",
2283
- children: /* @__PURE__ */ o(Ot, {})
2135
+ children: /* @__PURE__ */ r(Pt, {})
2284
2136
  },
2285
2137
  "loading"
2286
- ) : /* @__PURE__ */ o(
2287
- g,
2138
+ ) : /* @__PURE__ */ r(
2139
+ w,
2288
2140
  {
2289
2141
  className: "flex-1 flex flex-col gap-2 relative",
2290
2142
  children: t.length ? /* @__PURE__ */ d(te, { children: [
2291
2143
  /* @__PURE__ */ d(S, { children: [
2292
- s.length > 0 && /* @__PURE__ */ o(
2293
- g,
2144
+ s.length > 0 && /* @__PURE__ */ r(
2145
+ w,
2294
2146
  {
2295
2147
  fadeIn: "up",
2296
2148
  delay: 0.2,
2297
2149
  className: "space-y-2",
2298
2150
  snapExit: !0,
2299
- children: s.map((c) => /* @__PURE__ */ o(at, { session: c }, c.id))
2151
+ children: s.map((c) => /* @__PURE__ */ r(it, { session: c }, c.id))
2300
2152
  },
2301
2153
  "open-sessions"
2302
2154
  ),
2303
- i.length > 0 && /* @__PURE__ */ d(
2304
- g,
2155
+ a.length > 0 && /* @__PURE__ */ d(
2156
+ w,
2305
2157
  {
2306
2158
  className: "space-y-2",
2307
2159
  delay: 0.2,
2308
2160
  snapExit: !0,
2309
2161
  children: [
2310
- /* @__PURE__ */ o(jr, { children: e("closed-conversations") }),
2311
- i.map((c) => /* @__PURE__ */ o(
2312
- at,
2162
+ /* @__PURE__ */ r(ko, { children: e("closed_conversations") }),
2163
+ a.map((c) => /* @__PURE__ */ r(
2164
+ it,
2313
2165
  {
2314
2166
  session: c,
2315
2167
  className: "opacity-50 hover:opacity-100"
@@ -2321,44 +2173,44 @@ function Er() {
2321
2173
  "closed-sessions"
2322
2174
  )
2323
2175
  ] }),
2324
- a && /* @__PURE__ */ o("div", { className: "mt-auto w-full rounded-3xl sticky bottom-0 outline outline-8 outline-background bg-background", children: /* @__PURE__ */ tt(
2176
+ i && /* @__PURE__ */ r("div", { className: "mt-auto w-full rounded-3xl sticky bottom-0 outline outline-8 outline-background bg-background", children: /* @__PURE__ */ tt(
2325
2177
  y,
2326
2178
  {
2327
- ...u("sessions/new_conversation_btn"),
2179
+ ...g("sessions/new_conversation_btn"),
2328
2180
  size: "lg",
2329
2181
  key: "new-session",
2330
2182
  className: "w-full",
2331
- onClick: () => r()
2183
+ onClick: () => o()
2332
2184
  },
2333
- e("new-conversation")
2185
+ e("new_conversation")
2334
2186
  ) })
2335
2187
  ] }) : /* @__PURE__ */ d("div", { className: "flex-1 flex flex-col gap-2 items-center", children: [
2336
- /* @__PURE__ */ o("div", { className: "flex-1 flex items-center justify-center", children: /* @__PURE__ */ o("p", { className: "text-muted-foreground", children: e("no-conversations-yet") }) }),
2188
+ /* @__PURE__ */ r("div", { className: "flex-1 flex items-center justify-center", children: /* @__PURE__ */ r("p", { className: "text-muted-foreground", children: e("no_conversations_yet") }) }),
2337
2189
  /* @__PURE__ */ tt(
2338
2190
  y,
2339
2191
  {
2340
- ...u("sessions/new_conversation_btn"),
2192
+ ...g("sessions/new_conversation_btn"),
2341
2193
  size: "lg",
2342
2194
  key: "new-session",
2343
2195
  className: "w-full",
2344
- onClick: () => r()
2196
+ onClick: () => o()
2345
2197
  },
2346
- e("new-conversation")
2198
+ e("new_conversation")
2347
2199
  )
2348
2200
  ] })
2349
2201
  },
2350
2202
  "sessions"
2351
2203
  ) }) });
2352
2204
  }
2353
- function Rr() {
2354
- const { theme: e } = U();
2205
+ function zo() {
2206
+ const { theme: e } = X();
2355
2207
  return ye({
2356
2208
  width: e.screens.sessions.width,
2357
2209
  height: e.screens.sessions.height
2358
- }), /* @__PURE__ */ o(
2210
+ }), /* @__PURE__ */ r(
2359
2211
  "div",
2360
2212
  {
2361
- ...u("sessions/root"),
2213
+ ...g("sessions/root"),
2362
2214
  className: p("flex flex-col overflow-hidden bg-background"),
2363
2215
  style: {
2364
2216
  width: "100vw",
@@ -2371,20 +2223,20 @@ function Rr() {
2371
2223
  // Relative to the iframe
2372
2224
  },
2373
2225
  children: /* @__PURE__ */ d("div", { className: "size-full flex flex-col", children: [
2374
- /* @__PURE__ */ o(Rt, {}),
2375
- /* @__PURE__ */ o(Er, {}),
2376
- /* @__PURE__ */ o(Wt, {})
2226
+ /* @__PURE__ */ r(Et, {}),
2227
+ /* @__PURE__ */ r(Co, {}),
2228
+ /* @__PURE__ */ r(At, {})
2377
2229
  ] })
2378
2230
  }
2379
2231
  );
2380
2232
  }
2381
- const ae = G.forwardRef(
2382
- ({ className: e, type: r, ...t }, n) => {
2383
- const { isSmallScreen: s } = O();
2384
- return /* @__PURE__ */ o(H, { ref: n, children: /* @__PURE__ */ o(
2233
+ const ie = G.forwardRef(
2234
+ ({ className: e, type: o, ...t }, n) => {
2235
+ const { isSmallScreen: s } = P();
2236
+ return /* @__PURE__ */ r(H, { ref: n, children: /* @__PURE__ */ r(
2385
2237
  "input",
2386
2238
  {
2387
- type: r,
2239
+ type: o,
2388
2240
  className: p(
2389
2241
  // 16px on mobiles prevents auto-zoom on the input when focused
2390
2242
  s ? "text-[16px]" : "text-sm",
@@ -2398,58 +2250,60 @@ const ae = G.forwardRef(
2398
2250
  ) });
2399
2251
  }
2400
2252
  );
2401
- ae.displayName = "Input";
2402
- function Or() {
2403
- const { contentIframeRef: e } = j(), { inline: r } = x(), t = le(null);
2404
- return oe(() => {
2253
+ ie.displayName = "Input";
2254
+ function No() {
2255
+ const { contentIframeRef: e } = j(), { inline: o } = b(), t = le(null);
2256
+ return re(() => {
2405
2257
  const n = e == null ? void 0 : e.current;
2406
2258
  if (n && t.current) {
2407
2259
  const s = t.current;
2408
- let i;
2409
- const a = new ResizeObserver(() => {
2410
- i = requestAnimationFrame(() => {
2260
+ let a;
2261
+ const i = new ResizeObserver(() => {
2262
+ a = requestAnimationFrame(() => {
2411
2263
  const c = s.offsetHeight;
2412
2264
  n.style.setProperty(
2413
2265
  "--opencx-widget-height",
2414
- r ? "100%" : `${c.toFixed(1)}px`
2266
+ o ? "100%" : `${c.toFixed(1)}px`
2415
2267
  );
2416
2268
  });
2417
2269
  });
2418
- return a.observe(s), () => {
2419
- cancelAnimationFrame(i), a.unobserve(s);
2270
+ return i.observe(s), () => {
2271
+ cancelAnimationFrame(a), i.unobserve(s);
2420
2272
  };
2421
2273
  }
2422
- }, [e, r]), { observedElementRef: t };
2274
+ }, [e, o]), { observedElementRef: t };
2423
2275
  }
2424
- const Ar = pe.object({
2276
+ const So = pe.object({
2425
2277
  name: pe.string().min(2),
2426
2278
  email: pe.string().email()
2427
2279
  });
2428
- function Pr() {
2429
- var _, M, A, P, W, E, v, C;
2430
- const { widgetCtx: { org: e } } = j(), { setIsOpen: r } = K(), { createUnverifiedContact: t } = qt(), { isSmallScreen: n } = O(), s = x(), { theme: i } = U(), { t: a } = V(), { observedElementRef: c } = Or();
2280
+ function _o() {
2281
+ var _, M, O, A, F, R, v, C;
2282
+ const {
2283
+ widgetCtx: { org: e }
2284
+ } = j(), { setIsOpen: o } = K(), { createUnverifiedContact: t } = Yt(), { isSmallScreen: n } = P(), s = b(), { theme: a } = X(), { t: i } = U(), { observedElementRef: c } = No();
2431
2285
  ye({
2432
2286
  height: void 0,
2433
- width: i.screens.welcome.width
2287
+ width: a.screens.welcome.width
2434
2288
  });
2435
- const [l, h] = I(((_ = s.prefillUserData) == null ? void 0 : _.name) || ""), [b, w] = I(((M = s.prefillUserData) == null ? void 0 : M.email) || ""), m = (s.extraDataCollectionFields || []).filter(
2289
+ const [l, h] = I(((_ = s.prefillUserData) == null ? void 0 : _.name) || ""), [x, u] = I(((M = s.prefillUserData) == null ? void 0 : M.email) || ""), m = (s.extraDataCollectionFields || []).filter(
2436
2290
  (z) => z !== "name" && z !== "email" && !!z
2437
- ), [k, f] = I({}), [N, T] = Mo(
2291
+ ), [k, f] = I({}), [N, T] = Mr(
2438
2292
  async (z) => {
2439
2293
  z.preventDefault();
2440
- const L = Ar.safeParse({ name: l, email: b });
2441
- L.success && await t(
2294
+ const B = So.safeParse({ name: l, email: x });
2295
+ B.success && await t(
2442
2296
  {
2443
- email: L.data.email,
2444
- non_verified_name: L.data.name
2297
+ email: B.data.email,
2298
+ non_verified_name: B.data.name
2445
2299
  },
2446
2300
  // Only pass extra data if there is any
2447
2301
  Object.values(k).filter(Boolean).length ? k : void 0
2448
2302
  );
2449
2303
  },
2450
- [l, b, k]
2304
+ [l, x, k]
2451
2305
  );
2452
- return /* @__PURE__ */ o(
2306
+ return /* @__PURE__ */ r(
2453
2307
  "div",
2454
2308
  {
2455
2309
  style: {
@@ -2457,7 +2311,7 @@ function Pr() {
2457
2311
  // Relative to the iframe
2458
2312
  maxWidth: "100vw",
2459
2313
  // Relative to the iframe
2460
- minHeight: i.screens.welcome.minHeight,
2314
+ minHeight: a.screens.welcome.minHeight,
2461
2315
  height: "100vh",
2462
2316
  // Relative to the iframe
2463
2317
  maxHeight: "100vh",
@@ -2482,18 +2336,18 @@ function Pr() {
2482
2336
  "text-primary-foreground"
2483
2337
  ),
2484
2338
  children: [
2485
- n && /* @__PURE__ */ o(g, { className: "absolute top-6 end-6", children: /* @__PURE__ */ o(y, { size: "selfless", onClick: () => r(!1), children: /* @__PURE__ */ o(fe, { className: "size-4" }) }) }),
2486
- /* @__PURE__ */ o("div", { className: "flex items-center justify-between w-full mb-2", children: (A = s.assets) != null && A.organizationLogo ? /* @__PURE__ */ o(
2339
+ n && /* @__PURE__ */ r(w, { className: "absolute top-6 end-6", children: /* @__PURE__ */ r(y, { size: "selfless", onClick: () => o(!1), children: /* @__PURE__ */ r(fe, { className: "size-4" }) }) }),
2340
+ /* @__PURE__ */ r("div", { className: "flex items-center justify-between w-full mb-2", children: (O = s.assets) != null && O.organizationLogo ? /* @__PURE__ */ r(
2487
2341
  "img",
2488
2342
  {
2489
- src: (P = s.assets) == null ? void 0 : P.organizationLogo,
2343
+ src: (A = s.assets) == null ? void 0 : A.organizationLogo,
2490
2344
  alt: "Company Logo",
2491
2345
  className: "h-8 w-auto object-contain"
2492
2346
  }
2493
- ) : /* @__PURE__ */ o("h2", { className: "font-bold text-sm", children: e.name }) }),
2347
+ ) : /* @__PURE__ */ r("h2", { className: "font-bold text-sm", children: e.name }) }),
2494
2348
  /* @__PURE__ */ d("div", { className: "space-y-2", children: [
2495
- /* @__PURE__ */ o("h1", { className: "text-[1.75rem] font-semibold tracking-tight leading-none", children: ((E = (W = s.textContent) == null ? void 0 : W.welcomeScreen) == null ? void 0 : E.title) || a("welcome-title") }),
2496
- /* @__PURE__ */ o("p", { className: "text-sm", children: ((C = (v = s.textContent) == null ? void 0 : v.welcomeScreen) == null ? void 0 : C.description) || a("welcome-description") })
2349
+ /* @__PURE__ */ r("h1", { className: "text-[1.75rem] font-semibold tracking-tight leading-none", children: ((R = (F = s.textContent) == null ? void 0 : F.welcomeScreen) == null ? void 0 : R.title) || i("welcome_screen_title") }),
2350
+ /* @__PURE__ */ r("p", { className: "text-sm", children: ((C = (v = s.textContent) == null ? void 0 : v.welcomeScreen) == null ? void 0 : C.description) || i("welcome_screen_description") })
2497
2351
  ] })
2498
2352
  ]
2499
2353
  }
@@ -2509,36 +2363,36 @@ function Pr() {
2509
2363
  ),
2510
2364
  children: [
2511
2365
  /* @__PURE__ */ d("form", { onSubmit: T, className: "space-y-2", children: [
2512
- /* @__PURE__ */ o(
2513
- ae,
2366
+ /* @__PURE__ */ r(
2367
+ ie,
2514
2368
  {
2515
2369
  value: l,
2516
2370
  onChange: (z) => h(z.target.value),
2517
2371
  required: !0,
2518
- placeholder: a("your-name"),
2372
+ placeholder: i("your_name_placeholder"),
2519
2373
  name: "name"
2520
2374
  }
2521
2375
  ),
2522
- /* @__PURE__ */ o(
2523
- ae,
2376
+ /* @__PURE__ */ r(
2377
+ ie,
2524
2378
  {
2525
2379
  required: !0,
2526
- value: b,
2527
- onChange: (z) => w(z.target.value),
2380
+ value: x,
2381
+ onChange: (z) => u(z.target.value),
2528
2382
  type: "email",
2529
- placeholder: a("your-email"),
2383
+ placeholder: i("your_email_placeholder"),
2530
2384
  name: "email"
2531
2385
  }
2532
2386
  ),
2533
- m.map((z) => /* @__PURE__ */ o(
2534
- ae,
2387
+ m.map((z) => /* @__PURE__ */ r(
2388
+ ie,
2535
2389
  {
2536
2390
  value: k[z],
2537
- onChange: (L) => f((ne) => ({
2391
+ onChange: (B) => f((ne) => ({
2538
2392
  ...ne,
2539
- [z]: L.target.value
2393
+ [z]: B.target.value
2540
2394
  })),
2541
- placeholder: `${z} (${a("optional")})`
2395
+ placeholder: `${z} (${i("optional")})`
2542
2396
  },
2543
2397
  z
2544
2398
  )),
@@ -2549,13 +2403,13 @@ function Pr() {
2549
2403
  className: "w-full",
2550
2404
  size: "lg",
2551
2405
  children: [
2552
- N.loading ? a("starting-chat") : a("start-chat"),
2553
- /* @__PURE__ */ o(So, { className: "size-4 rtl:-scale-100" })
2406
+ N.loading ? i("start_chat_button_loading") : i("start_chat_button"),
2407
+ /* @__PURE__ */ r(zr, { className: "size-4 rtl:-scale-100" })
2554
2408
  ]
2555
2409
  }
2556
2410
  )
2557
2411
  ] }),
2558
- /* @__PURE__ */ o(Wt, {})
2412
+ /* @__PURE__ */ r(At, {})
2559
2413
  ]
2560
2414
  }
2561
2415
  )
@@ -2565,51 +2419,51 @@ function Pr() {
2565
2419
  }
2566
2420
  );
2567
2421
  }
2568
- function Ht() {
2422
+ function Ft() {
2569
2423
  const {
2570
2424
  routerState: { screen: e }
2571
- } = B();
2572
- return /* @__PURE__ */ o("div", { className: "relative bg-background size-full", children: /* @__PURE__ */ o(S, { mode: "wait", children: (() => {
2425
+ } = $();
2426
+ return /* @__PURE__ */ r("div", { className: "relative bg-background size-full", children: /* @__PURE__ */ r(S, { mode: "wait", children: (() => {
2573
2427
  switch (e) {
2574
2428
  case "welcome":
2575
- return /* @__PURE__ */ o(
2576
- g,
2429
+ return /* @__PURE__ */ r(
2430
+ w,
2577
2431
  {
2578
2432
  fadeIn: "right",
2579
2433
  className: "size-full",
2580
2434
  snapExit: !0,
2581
- children: /* @__PURE__ */ o(Pr, {})
2435
+ children: /* @__PURE__ */ r(_o, {})
2582
2436
  },
2583
2437
  e
2584
2438
  );
2585
2439
  case "sessions":
2586
- return /* @__PURE__ */ o(
2587
- g,
2440
+ return /* @__PURE__ */ r(
2441
+ w,
2588
2442
  {
2589
2443
  fadeIn: "right",
2590
2444
  className: "size-full",
2591
2445
  snapExit: !0,
2592
- children: /* @__PURE__ */ o(Rr, {})
2446
+ children: /* @__PURE__ */ r(zo, {})
2593
2447
  },
2594
2448
  e
2595
2449
  );
2596
2450
  case "chat":
2597
- return /* @__PURE__ */ o(
2598
- g,
2451
+ return /* @__PURE__ */ r(
2452
+ w,
2599
2453
  {
2600
2454
  fadeIn: "right",
2601
2455
  className: "size-full",
2602
2456
  snapExit: !0,
2603
- children: /* @__PURE__ */ o(Tr, {})
2457
+ children: /* @__PURE__ */ r(xo, {})
2604
2458
  },
2605
2459
  e
2606
2460
  );
2607
2461
  default:
2608
- return D(e, Ht.name), null;
2462
+ return D(e, Ft.name), null;
2609
2463
  }
2610
2464
  })() }) });
2611
2465
  }
2612
- const Wr = "4.0.16", Hr = `<!DOCTYPE html>
2466
+ const Io = "4.0.18", To = `<!DOCTYPE html>
2613
2467
  <html>
2614
2468
  <head>
2615
2469
  <style>
@@ -2627,10 +2481,10 @@ html, body {
2627
2481
  <body>
2628
2482
  </body>
2629
2483
  </html>`;
2630
- function Ft() {
2631
- const { isOpen: e } = K(), { contentIframeRef: r } = j(), { cssOverrides: t, inline: n } = x(), { theme: s, cssVars: i, computed: a } = U(), { dir: c } = V();
2632
- return /* @__PURE__ */ o(
2633
- Q.div,
2484
+ function Ht() {
2485
+ const { isOpen: e } = K(), { contentIframeRef: o } = j(), { cssOverrides: t, inline: n } = b(), { theme: s, cssVars: a, computed: i } = X(), { dir: c } = U();
2486
+ return /* @__PURE__ */ r(
2487
+ Z.div,
2634
2488
  {
2635
2489
  animate: e ? "visible" : "hidden",
2636
2490
  initial: "hidden",
@@ -2651,21 +2505,21 @@ function Ft() {
2651
2505
  children: /* @__PURE__ */ d(
2652
2506
  ft,
2653
2507
  {
2654
- ref: r,
2655
- initialContent: Hr,
2508
+ ref: o,
2509
+ initialContent: To,
2656
2510
  allowFullScreen: !0,
2657
2511
  title: "OpenCX Live Chat",
2658
2512
  style: {
2659
2513
  // @ts-expect-error this is a valid css variable
2660
- "--opencx-widget-width": a.minWidth,
2661
- "--opencx-widget-height": a.minHeight,
2662
- minWidth: a.minWidth,
2514
+ "--opencx-widget-width": i.minWidth,
2515
+ "--opencx-widget-height": i.minHeight,
2516
+ minWidth: i.minWidth,
2663
2517
  width: "var(--opencx-widget-width)",
2664
- maxWidth: a.maxWidth,
2518
+ maxWidth: i.maxWidth,
2665
2519
  // Relative to the viewport
2666
- minHeight: a.minHeight,
2520
+ minHeight: i.minHeight,
2667
2521
  height: "var(--opencx-widget-height)",
2668
- maxHeight: a.maxHeight,
2522
+ maxHeight: i.maxHeight,
2669
2523
  // Relative to the viewport
2670
2524
  overflow: "hidden",
2671
2525
  /** outline is better than border because of box sizing; the outline wouldn't affect the content inside... the border will mess up how the children's border radius sits with the parent */
@@ -2681,25 +2535,25 @@ function Ft() {
2681
2535
  borderWidth: "0px"
2682
2536
  },
2683
2537
  children: [
2684
- t && /* @__PURE__ */ o("style", { children: t }),
2685
- /* @__PURE__ */ o(
2538
+ t && /* @__PURE__ */ r("style", { children: t }),
2539
+ /* @__PURE__ */ r(
2686
2540
  "div",
2687
2541
  {
2688
2542
  style: {
2689
- ...i,
2543
+ ...a,
2690
2544
  zIndex: s.widgetContentContainer.zIndex
2691
2545
  },
2692
- "data-version": Wr,
2546
+ "data-version": Io,
2693
2547
  className: p(
2694
2548
  "antialiased font-sans size-full overflow-hidden relative text-secondary-foreground isolate"
2695
2549
  ),
2696
2550
  dir: c,
2697
- children: /* @__PURE__ */ o(
2698
- Lo,
2551
+ children: /* @__PURE__ */ r(
2552
+ Br,
2699
2553
  {
2700
2554
  delayDuration: 200,
2701
2555
  disableHoverableContent: !0,
2702
- children: /* @__PURE__ */ o(Wo, { children: /* @__PURE__ */ o(Ht, {}) })
2556
+ children: /* @__PURE__ */ r(Fr, { children: /* @__PURE__ */ r(Ft, {}) })
2703
2557
  }
2704
2558
  )
2705
2559
  }
@@ -2710,12 +2564,12 @@ function Ft() {
2710
2564
  }
2711
2565
  );
2712
2566
  }
2713
- function Fr() {
2714
- const { theme: e } = U();
2715
- return /* @__PURE__ */ o(
2716
- ie.Content,
2567
+ function Mo() {
2568
+ const { theme: e } = X();
2569
+ return /* @__PURE__ */ r(
2570
+ ae.Content,
2717
2571
  {
2718
- onInteractOutside: (r) => r.preventDefault(),
2572
+ onInteractOutside: (o) => o.preventDefault(),
2719
2573
  forceMount: !0,
2720
2574
  style: {
2721
2575
  zIndex: e.widgetContentContainer.zIndex,
@@ -2726,13 +2580,13 @@ function Fr() {
2726
2580
  sideOffset: e.widgetContentContainer.offset.side,
2727
2581
  alignOffset: e.widgetContentContainer.offset.align,
2728
2582
  avoidCollisions: !1,
2729
- children: /* @__PURE__ */ o(Ft, {})
2583
+ children: /* @__PURE__ */ r(Ht, {})
2730
2584
  }
2731
2585
  );
2732
2586
  }
2733
- function Br({
2587
+ function Do({
2734
2588
  className: e,
2735
- style: r
2589
+ style: o
2736
2590
  }) {
2737
2591
  return /* @__PURE__ */ d(
2738
2592
  "svg",
@@ -2743,16 +2597,16 @@ function Br({
2743
2597
  fill: "none",
2744
2598
  xmlns: "http://www.w3.org/2000/svg",
2745
2599
  className: p("text-primary-foreground", e),
2746
- style: r,
2600
+ style: o,
2747
2601
  children: [
2748
- /* @__PURE__ */ o(
2602
+ /* @__PURE__ */ r(
2749
2603
  "path",
2750
2604
  {
2751
2605
  d: "M0 6.94263C0 3.62892 2.68629 0.942627 6 0.942627H26C29.3137 0.942627 32 3.62892 32 6.94263V17.9426C32 21.2563 29.3137 23.9426 26 23.9426H6C2.68629 23.9426 0 21.2563 0 17.9426V6.94263Z",
2752
2606
  fill: "currentColor"
2753
2607
  }
2754
2608
  ),
2755
- /* @__PURE__ */ o(
2609
+ /* @__PURE__ */ r(
2756
2610
  "path",
2757
2611
  {
2758
2612
  fillRule: "evenodd",
@@ -2765,7 +2619,7 @@ function Br({
2765
2619
  }
2766
2620
  );
2767
2621
  }
2768
- const Lr = `<!DOCTYPE html>
2622
+ const jo = `<!DOCTYPE html>
2769
2623
  <html>
2770
2624
  <head>
2771
2625
  <style>
@@ -2782,16 +2636,16 @@ html, body {
2782
2636
  <body>
2783
2637
  </body>
2784
2638
  </html>`;
2785
- function Yr() {
2786
- var i, a;
2787
- const { isOpen: e } = K(), { cssOverrides: r, assets: t } = x(), { theme: n, cssVars: s } = U();
2639
+ function Ro() {
2640
+ var a, i;
2641
+ const { isOpen: e } = K(), { cssOverrides: o, assets: t } = b(), { theme: n, cssVars: s } = X();
2788
2642
  return /* @__PURE__ */ d(
2789
2643
  ft,
2790
2644
  {
2791
- initialContent: Lr,
2645
+ initialContent: jo,
2792
2646
  style: {
2793
- height: `calc(${n.widgetTrigger.size.button}px + ${X.x * 2}px)`,
2794
- width: `calc(${n.widgetTrigger.size.button}px + ${X.y * 2}px)`,
2647
+ height: `calc(${n.widgetTrigger.size.button}px + ${V.x * 2}px)`,
2648
+ width: `calc(${n.widgetTrigger.size.button}px + ${V.y * 2}px)`,
2795
2649
  fontSize: "16px",
2796
2650
  position: "fixed",
2797
2651
  zIndex: n.widgetTrigger.zIndex,
@@ -2805,8 +2659,8 @@ function Yr() {
2805
2659
  borderRadius: "100%"
2806
2660
  },
2807
2661
  children: [
2808
- r && /* @__PURE__ */ o("style", { children: r }),
2809
- /* @__PURE__ */ o(
2662
+ o && /* @__PURE__ */ r("style", { children: o }),
2663
+ /* @__PURE__ */ r(
2810
2664
  "div",
2811
2665
  {
2812
2666
  style: {
@@ -2817,8 +2671,8 @@ function Yr() {
2817
2671
  alignItems: "center",
2818
2672
  justifyContent: "center"
2819
2673
  },
2820
- children: /* @__PURE__ */ o(
2821
- ie.PopoverTrigger,
2674
+ children: /* @__PURE__ */ r(
2675
+ ae.PopoverTrigger,
2822
2676
  {
2823
2677
  className: p(
2824
2678
  "font-sans flex items-center justify-center rounded-full"
@@ -2827,10 +2681,10 @@ function Yr() {
2827
2681
  height: n.widgetTrigger.size.button,
2828
2682
  width: n.widgetTrigger.size.button
2829
2683
  },
2830
- children: /* @__PURE__ */ o(H, { children: /* @__PURE__ */ o(
2684
+ children: /* @__PURE__ */ r(H, { children: /* @__PURE__ */ r(
2831
2685
  "div",
2832
2686
  {
2833
- ...u("trigger/btn"),
2687
+ ...g("trigger/btn"),
2834
2688
  className: p(
2835
2689
  "relative size-full rounded-full",
2836
2690
  "flex items-center justify-center",
@@ -2839,8 +2693,8 @@ function Yr() {
2839
2693
  "bg-primary",
2840
2694
  "text-primary-foreground"
2841
2695
  ),
2842
- children: /* @__PURE__ */ o(S, { mode: "wait", children: e ? /* @__PURE__ */ o(
2843
- g,
2696
+ children: /* @__PURE__ */ r(S, { mode: "wait", children: e ? /* @__PURE__ */ r(
2697
+ w,
2844
2698
  {
2845
2699
  snapExit: !0,
2846
2700
  fadeIn: "up",
@@ -2848,7 +2702,7 @@ function Yr() {
2848
2702
  initial: { rotate: 45 },
2849
2703
  animate: { rotate: 0 }
2850
2704
  },
2851
- children: (i = t == null ? void 0 : t.widgetTrigger) != null && i.closeIcon ? /* @__PURE__ */ o(
2705
+ children: (a = t == null ? void 0 : t.widgetTrigger) != null && a.closeIcon ? /* @__PURE__ */ r(
2852
2706
  "img",
2853
2707
  {
2854
2708
  src: t.widgetTrigger.closeIcon,
@@ -2858,8 +2712,8 @@ function Yr() {
2858
2712
  height: n.widgetTrigger.size.icon
2859
2713
  }
2860
2714
  }
2861
- ) : /* @__PURE__ */ o(
2862
- _o,
2715
+ ) : /* @__PURE__ */ r(
2716
+ Nr,
2863
2717
  {
2864
2718
  style: {
2865
2719
  width: n.widgetTrigger.size.icon,
@@ -2869,15 +2723,15 @@ function Yr() {
2869
2723
  )
2870
2724
  },
2871
2725
  "x-icon"
2872
- ) : /* @__PURE__ */ o(
2873
- g,
2726
+ ) : /* @__PURE__ */ r(
2727
+ w,
2874
2728
  {
2875
2729
  snapExit: !0,
2876
2730
  overrides: {
2877
2731
  initial: { rotate: 45 },
2878
2732
  animate: { rotate: 0 }
2879
2733
  },
2880
- children: (a = t == null ? void 0 : t.widgetTrigger) != null && a.openIcon ? /* @__PURE__ */ o(
2734
+ children: (i = t == null ? void 0 : t.widgetTrigger) != null && i.openIcon ? /* @__PURE__ */ r(
2881
2735
  "img",
2882
2736
  {
2883
2737
  src: t.widgetTrigger.openIcon,
@@ -2887,8 +2741,8 @@ function Yr() {
2887
2741
  height: n.widgetTrigger.size.icon
2888
2742
  }
2889
2743
  }
2890
- ) : /* @__PURE__ */ o(
2891
- Br,
2744
+ ) : /* @__PURE__ */ r(
2745
+ Do,
2892
2746
  {
2893
2747
  style: {
2894
2748
  width: n.widgetTrigger.size.icon,
@@ -2910,10 +2764,10 @@ function Yr() {
2910
2764
  }
2911
2765
  );
2912
2766
  }
2913
- function $r() {
2914
- const { dir: e } = we();
2915
- return /* @__PURE__ */ o(
2916
- ie.Anchor,
2767
+ function Eo() {
2768
+ const { dir: e } = ue();
2769
+ return /* @__PURE__ */ r(
2770
+ ae.Anchor,
2917
2771
  {
2918
2772
  style: {
2919
2773
  position: "fixed",
@@ -2924,22 +2778,22 @@ function $r() {
2924
2778
  }
2925
2779
  );
2926
2780
  }
2927
- function qr() {
2928
- const { isOpen: e, setIsOpen: r } = K();
2929
- return /* @__PURE__ */ d(ie.Root, { open: e, onOpenChange: r, children: [
2930
- /* @__PURE__ */ o($r, {}),
2931
- /* @__PURE__ */ o(Yr, {}),
2932
- /* @__PURE__ */ o(Fr, {})
2781
+ function Po() {
2782
+ const { isOpen: e, setIsOpen: o } = K();
2783
+ return /* @__PURE__ */ d(ae.Root, { open: e, onOpenChange: o, children: [
2784
+ /* @__PURE__ */ r(Eo, {}),
2785
+ /* @__PURE__ */ r(Ro, {}),
2786
+ /* @__PURE__ */ r(Mo, {})
2933
2787
  ] });
2934
2788
  }
2935
- const Ur = [
2789
+ const Oo = [
2936
2790
  {
2937
2791
  key: "loading",
2938
- component: Bo
2792
+ component: $r
2939
2793
  },
2940
2794
  {
2941
2795
  key: "fallback",
2942
- component: Fo
2796
+ component: Wr
2943
2797
  },
2944
2798
  {
2945
2799
  key: "bot_message",
@@ -2949,32 +2803,32 @@ const Ur = [
2949
2803
  key: "agent_message",
2950
2804
  component: he
2951
2805
  }
2952
- ], Vr = {
2806
+ ], Ao = {
2953
2807
  get: async (e) => localStorage.getItem(e),
2954
- set: async (e, r) => {
2955
- localStorage.setItem(e, r);
2808
+ set: async (e, o) => {
2809
+ localStorage.setItem(e, o);
2956
2810
  },
2957
2811
  remove: async (e) => {
2958
2812
  localStorage.removeItem(e);
2959
2813
  }
2960
2814
  };
2961
- function mn({
2815
+ function rn({
2962
2816
  options: e,
2963
- components: r = [],
2817
+ components: o = [],
2964
2818
  loadingComponent: t
2965
2819
  }) {
2966
- return /* @__PURE__ */ o(
2967
- Ut,
2820
+ return /* @__PURE__ */ r(
2821
+ qt,
2968
2822
  {
2969
- components: [...Ur, ...r],
2823
+ components: [...Oo, ...o],
2970
2824
  options: e,
2971
- storage: Vr,
2825
+ storage: Ao,
2972
2826
  loadingComponent: t,
2973
- children: /* @__PURE__ */ o(Vt, { children: e.inline ? /* @__PURE__ */ o(Ft, {}) : /* @__PURE__ */ o(qr, {}) })
2827
+ children: /* @__PURE__ */ r(Xt, { children: e.inline ? /* @__PURE__ */ r(Ht, {}) : /* @__PURE__ */ r(Po, {}) })
2974
2828
  }
2975
2829
  );
2976
2830
  }
2977
2831
  export {
2978
- mn as Widget
2832
+ rn as Widget
2979
2833
  };
2980
2834
  //# sourceMappingURL=index.js.map