@opencx/widget-react 4.0.54 → 4.0.56
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.cjs +8 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +312 -301
- package/dist/index.js.map +1 -1
- package/dist/src/components/Dialoger.d.ts +2 -2
- package/dist/src/components/Dialoger.d.ts.map +1 -1
- package/dist/src/components/Header.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { jsx as r, jsxs as d, Fragment as
|
|
1
|
+
import { jsx as r, jsxs as d, Fragment as J } from "react/jsx-runtime";
|
|
2
2
|
import * as me from "@radix-ui/react-popover";
|
|
3
|
-
import * as
|
|
4
|
-
import L, { memo as rr, forwardRef as yt, useState as
|
|
5
|
-
import { useWidget as O, useConfig as
|
|
6
|
-
import { X as lr, ZoomOut as cr, ZoomIn as dr, RotateCcw as pr, FileText as It, FileSpreadsheet as Tt, CircleDashedIcon as mr, XIcon as Ce, SquareXIcon as hr, SquareCheckBigIcon as
|
|
3
|
+
import * as ee from "react";
|
|
4
|
+
import L, { memo as rr, forwardRef as yt, useState as E, cloneElement as kt, createContext as or, useEffect as se, useContext as nr, useRef as B, useCallback as G, useMemo as Ct, createElement as ct } from "react";
|
|
5
|
+
import { useWidget as O, useConfig as z, useSessions as U, useMessages as A, useWidgetRouter as H, useDocumentDir as ke, useWidgetTrigger as Z, useModes as zt, useCsat as Nt, useUploadFiles as sr, useIsAwaitingBotReply as St, useContact as _t, WidgetProvider as ar, WidgetTriggerProvider as ir } from "@opencx/widget-react-headless";
|
|
6
|
+
import { X as lr, ZoomOut as cr, ZoomIn as dr, RotateCcw as pr, FileText as It, FileSpreadsheet as Tt, CircleDashedIcon as mr, XIcon as Ce, SquareXIcon as hr, SquareCheckBigIcon as gr, SquareCheckIcon as ur, ShrinkIcon as wr, Minimize2Icon as fr, MinimizeIcon as xr, Maximize2Icon as vr, MaximizeIcon as br, ExpandIcon as yr, CircleXIcon as kr, CircleCheckBigIcon as Cr, CircleCheckIcon as Mt, CheckCheckIcon as zr, CheckIcon as Nr, ChevronLeftIcon as Sr, LoaderIcon as _r, ArrowUpIcon as Dt, PaperclipIcon as dt, CircleDashed as Ir, AlertCircle as Tr, Loader2 as Mr, FileAudio2Icon as Dr, FileVideo2Icon as Er, FileIcon as Rr, UserRoundIcon as Pr, ChevronRightIcon as jr, SendHorizontal as Or, ChevronDownIcon as Ar } from "lucide-react";
|
|
7
7
|
import { clsx as Fr } from "clsx";
|
|
8
8
|
import { twMerge as Hr } from "tailwind-merge";
|
|
9
|
-
import { motion as re, AnimatePresence as
|
|
9
|
+
import { motion as re, AnimatePresence as M } from "framer-motion";
|
|
10
10
|
import { Slot as Wr } from "@radix-ui/react-slot";
|
|
11
11
|
import { cva as Lr } from "class-variance-authority";
|
|
12
12
|
import Et from "remark-gfm";
|
|
13
13
|
import $r from "react-markdown";
|
|
14
14
|
import Rt from "rehype-raw";
|
|
15
15
|
import { isExhaustive as F, isSupportedLanguage as Br, getTranslation as Yr } from "@opencx/widget-core";
|
|
16
|
-
import * as
|
|
16
|
+
import * as te from "@radix-ui/react-avatar";
|
|
17
17
|
import Pt from "@uiw/react-iframe";
|
|
18
18
|
import * as ae from "@radix-ui/react-tooltip";
|
|
19
19
|
import pt from "tinycolor2";
|
|
20
20
|
import { useDropzone as Ur } from "react-dropzone";
|
|
21
21
|
import Xr from "react-use/lib/useAsyncFn";
|
|
22
|
-
import { z as
|
|
22
|
+
import { z as ue } from "zod";
|
|
23
23
|
function f(e) {
|
|
24
24
|
return { "data-component": e };
|
|
25
25
|
}
|
|
@@ -55,44 +55,44 @@ function jt({
|
|
|
55
55
|
function m(...e) {
|
|
56
56
|
return Hr(Fr(e));
|
|
57
57
|
}
|
|
58
|
-
const
|
|
58
|
+
const Q = {
|
|
59
59
|
x: 2,
|
|
60
60
|
y: 2
|
|
61
61
|
}, Y = rr(
|
|
62
62
|
yt(
|
|
63
63
|
({ children: e, className: o, scale: t = 1.02, off: n = !1 }, s) => {
|
|
64
|
-
const [i, a] =
|
|
64
|
+
const [i, a] = E(!1), [l, c] = E({ x: 0, y: 0 });
|
|
65
65
|
if (n || /translate/.test(
|
|
66
66
|
e.props.className || ""
|
|
67
67
|
)) return e;
|
|
68
|
-
const
|
|
69
|
-
var
|
|
70
|
-
const { clientX:
|
|
68
|
+
const v = (x) => {
|
|
69
|
+
var D, g;
|
|
70
|
+
const { clientX: C, clientY: I } = x, y = x.currentTarget.getBoundingClientRect(), S = C - (y.left + y.width / 2), R = I - (y.top + y.height / 2), j = Math.max(
|
|
71
71
|
-1,
|
|
72
|
-
Math.min(1,
|
|
72
|
+
Math.min(1, S / (y.width / 2))
|
|
73
73
|
), w = Math.max(
|
|
74
74
|
-1,
|
|
75
|
-
Math.min(1,
|
|
76
|
-
),
|
|
77
|
-
c({ x:
|
|
78
|
-
},
|
|
79
|
-
var
|
|
80
|
-
a(!0), (
|
|
81
|
-
},
|
|
82
|
-
var
|
|
83
|
-
a(!1), c({ x: 0, y: 0 }), (
|
|
84
|
-
},
|
|
75
|
+
Math.min(1, R / (y.height / 2))
|
|
76
|
+
), T = j * Q.x, P = w * Q.y;
|
|
77
|
+
c({ x: T, y: P }), (g = (D = e.props).onMouseMove) == null || g.call(D, x);
|
|
78
|
+
}, b = () => {
|
|
79
|
+
var x, C;
|
|
80
|
+
a(!0), (C = (x = e.props).onMouseEnter) == null || C.call(x);
|
|
81
|
+
}, u = () => {
|
|
82
|
+
var x, C;
|
|
83
|
+
a(!1), c({ x: 0, y: 0 }), (C = (x = e.props).onMouseLeave) == null || C.call(x);
|
|
84
|
+
}, h = {
|
|
85
85
|
"--wobble-x": i ? `${l.x}px` : "0px",
|
|
86
86
|
"--wobble-y": i ? `${l.y}px` : "0px",
|
|
87
87
|
"--scale": 1 - (t - 1)
|
|
88
88
|
};
|
|
89
89
|
return kt(e, {
|
|
90
90
|
ref: s,
|
|
91
|
-
onMouseMove:
|
|
92
|
-
onMouseEnter:
|
|
93
|
-
onMouseLeave:
|
|
91
|
+
onMouseMove: v,
|
|
92
|
+
onMouseEnter: b,
|
|
93
|
+
onMouseLeave: u,
|
|
94
94
|
style: {
|
|
95
|
-
...
|
|
95
|
+
...h,
|
|
96
96
|
...e.props.style
|
|
97
97
|
},
|
|
98
98
|
className: m(
|
|
@@ -183,7 +183,7 @@ const Jr = Lr(
|
|
|
183
183
|
size: "default"
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
|
-
), N =
|
|
186
|
+
), N = ee.forwardRef(
|
|
187
187
|
({ className: e, variant: o = "default", size: t, asChild: n = !1, ...s }, i) => /* @__PURE__ */ r(Y, { ref: i, children: /* @__PURE__ */ r(
|
|
188
188
|
n ? Wr : "button",
|
|
189
189
|
{
|
|
@@ -197,7 +197,7 @@ const Jr = Lr(
|
|
|
197
197
|
N.displayName = "Button";
|
|
198
198
|
const Ot = or(null);
|
|
199
199
|
function eo({ children: e }) {
|
|
200
|
-
const [o, t] =
|
|
200
|
+
const [o, t] = E(!1), [n, s] = E(null), i = (l) => {
|
|
201
201
|
s(l), t(!0);
|
|
202
202
|
}, a = () => {
|
|
203
203
|
t(!1), setTimeout(() => {
|
|
@@ -243,7 +243,7 @@ function to() {
|
|
|
243
243
|
s
|
|
244
244
|
);
|
|
245
245
|
};
|
|
246
|
-
}, []), /* @__PURE__ */ r(
|
|
246
|
+
}, []), /* @__PURE__ */ r(M, { mode: "wait", children: o && t && /* @__PURE__ */ r(
|
|
247
247
|
k,
|
|
248
248
|
{
|
|
249
249
|
overrides: {
|
|
@@ -344,10 +344,13 @@ function Ne({
|
|
|
344
344
|
}) {
|
|
345
345
|
const { open: t } = he();
|
|
346
346
|
return kt(o, {
|
|
347
|
-
onClick: () =>
|
|
347
|
+
onClick: () => {
|
|
348
|
+
var s, i;
|
|
349
|
+
t(e), (i = (s = o.props).onClick) == null || i.call(s);
|
|
350
|
+
}
|
|
348
351
|
});
|
|
349
352
|
}
|
|
350
|
-
const ht = 1,
|
|
353
|
+
const ht = 1, gt = 5, le = 0.5, ro = 2.5;
|
|
351
354
|
function oo(e, o, t, n) {
|
|
352
355
|
if (!t || !n || o <= 1) return { x: 0, y: 0 };
|
|
353
356
|
const s = t.getBoundingClientRect(), i = n.offsetWidth, a = n.offsetHeight, l = Math.max(0, (i * o - s.width) / (2 * o)), c = Math.max(
|
|
@@ -363,46 +366,46 @@ function $t({
|
|
|
363
366
|
src: e,
|
|
364
367
|
alt: o
|
|
365
368
|
}) {
|
|
366
|
-
const [t, n] =
|
|
369
|
+
const [t, n] = E(1), [s, i] = E({ x: 0, y: 0 }), [a, l] = E(!1), c = B({ x: 0, y: 0 }), p = B({ x: 0, y: 0 }), v = B(null), b = B(null), u = B(!1), h = (w) => Math.min(gt, Math.max(ht, w)), x = G(() => {
|
|
367
370
|
n(1), i({ x: 0, y: 0 });
|
|
368
|
-
}, []),
|
|
369
|
-
n((w) =>
|
|
370
|
-
}, []),
|
|
371
|
+
}, []), C = G(() => {
|
|
372
|
+
n((w) => h(w + le));
|
|
373
|
+
}, []), I = G(() => {
|
|
371
374
|
n((w) => {
|
|
372
|
-
const
|
|
373
|
-
return
|
|
375
|
+
const T = h(w - le);
|
|
376
|
+
return T <= 1 && i({ x: 0, y: 0 }), T;
|
|
374
377
|
});
|
|
375
378
|
}, []);
|
|
376
|
-
|
|
379
|
+
G((w) => {
|
|
377
380
|
w.preventDefault(), w.stopPropagation();
|
|
378
|
-
const
|
|
379
|
-
n((
|
|
380
|
-
const
|
|
381
|
-
return
|
|
381
|
+
const T = w.deltaY > 0 ? -le : le;
|
|
382
|
+
n((P) => {
|
|
383
|
+
const D = h(P + T);
|
|
384
|
+
return D <= 1 && i({ x: 0, y: 0 }), D;
|
|
382
385
|
});
|
|
383
386
|
}, []);
|
|
384
|
-
const y =
|
|
387
|
+
const y = G(
|
|
385
388
|
(w) => {
|
|
386
|
-
w.preventDefault(),
|
|
389
|
+
w.preventDefault(), u.current = !1, l(!0), c.current = { x: w.clientX, y: w.clientY }, p.current = { ...s }, w.target.setPointerCapture(w.pointerId);
|
|
387
390
|
},
|
|
388
391
|
[s]
|
|
389
|
-
),
|
|
392
|
+
), S = G(
|
|
390
393
|
(w) => {
|
|
391
394
|
if (!a) return;
|
|
392
|
-
const
|
|
393
|
-
if ((Math.abs(
|
|
394
|
-
const
|
|
395
|
-
x: p.current.x +
|
|
396
|
-
y: p.current.y +
|
|
395
|
+
const T = w.clientX - c.current.x, P = w.clientY - c.current.y;
|
|
396
|
+
if ((Math.abs(T) > 3 || Math.abs(P) > 3) && (u.current = !0), t <= 1) return;
|
|
397
|
+
const D = {
|
|
398
|
+
x: p.current.x + T / t,
|
|
399
|
+
y: p.current.y + P / t
|
|
397
400
|
};
|
|
398
401
|
i(
|
|
399
|
-
oo(
|
|
402
|
+
oo(D, t, v.current, b.current)
|
|
400
403
|
);
|
|
401
404
|
},
|
|
402
405
|
[a, t]
|
|
403
|
-
),
|
|
404
|
-
const w =
|
|
405
|
-
l(!1), !w && n((
|
|
406
|
+
), R = G(() => {
|
|
407
|
+
const w = u.current;
|
|
408
|
+
l(!1), !w && n((T) => T > 1 ? (i({ x: 0, y: 0 }), 1) : ro);
|
|
406
409
|
}, []), j = t > 1;
|
|
407
410
|
return /* @__PURE__ */ d(
|
|
408
411
|
"div",
|
|
@@ -413,15 +416,15 @@ function $t({
|
|
|
413
416
|
/* @__PURE__ */ r(
|
|
414
417
|
"div",
|
|
415
418
|
{
|
|
416
|
-
ref:
|
|
419
|
+
ref: v,
|
|
417
420
|
className: m(
|
|
418
421
|
"overflow-hidden max-h-full max-w-full rounded-2xl flex items-center justify-center",
|
|
419
422
|
j && "size-full"
|
|
420
423
|
),
|
|
421
424
|
onPointerDown: y,
|
|
422
|
-
onPointerMove:
|
|
423
|
-
onPointerUp:
|
|
424
|
-
onPointerCancel:
|
|
425
|
+
onPointerMove: S,
|
|
426
|
+
onPointerUp: R,
|
|
427
|
+
onPointerCancel: R,
|
|
425
428
|
style: {
|
|
426
429
|
cursor: a ? "grabbing" : j ? "grab" : "zoom-in",
|
|
427
430
|
touchAction: "none"
|
|
@@ -429,7 +432,7 @@ function $t({
|
|
|
429
432
|
children: /* @__PURE__ */ r(
|
|
430
433
|
"img",
|
|
431
434
|
{
|
|
432
|
-
ref:
|
|
435
|
+
ref: b,
|
|
433
436
|
src: e,
|
|
434
437
|
alt: o,
|
|
435
438
|
className: "block max-w-full object-contain pointer-events-none",
|
|
@@ -445,15 +448,15 @@ function $t({
|
|
|
445
448
|
}
|
|
446
449
|
),
|
|
447
450
|
/* @__PURE__ */ d("div", { className: "absolute bottom-3 left-1/2 -translate-x-1/2 flex items-center gap-1 bg-black/60 backdrop-blur-sm rounded-full px-1.5 py-1 transition opacity-50 hover:opacity-100", children: [
|
|
448
|
-
/* @__PURE__ */ r(we, { onClick:
|
|
451
|
+
/* @__PURE__ */ r(we, { onClick: I, label: "Zoom out", disabled: t <= ht, children: /* @__PURE__ */ r(cr, { className: "size-3.5" }) }),
|
|
449
452
|
/* @__PURE__ */ d("span", { className: "text-white text-xs font-medium min-w-[3ch] text-center tabular-nums", children: [
|
|
450
453
|
Math.round(t * 100),
|
|
451
454
|
"%"
|
|
452
455
|
] }),
|
|
453
|
-
/* @__PURE__ */ r(we, { onClick:
|
|
454
|
-
j && /* @__PURE__ */ d(
|
|
456
|
+
/* @__PURE__ */ r(we, { onClick: C, label: "Zoom in", disabled: t >= gt, children: /* @__PURE__ */ r(dr, { className: "size-3.5" }) }),
|
|
457
|
+
j && /* @__PURE__ */ d(J, { children: [
|
|
455
458
|
/* @__PURE__ */ r("div", { className: "w-px h-4 bg-white/30 mx-0.5" }),
|
|
456
|
-
/* @__PURE__ */ r(we, { onClick:
|
|
459
|
+
/* @__PURE__ */ r(we, { onClick: x, label: "Reset zoom", children: /* @__PURE__ */ r(pr, { className: "size-3.5" }) })
|
|
457
460
|
] })
|
|
458
461
|
] })
|
|
459
462
|
]
|
|
@@ -477,7 +480,7 @@ function we({
|
|
|
477
480
|
}
|
|
478
481
|
);
|
|
479
482
|
}
|
|
480
|
-
function
|
|
483
|
+
function ut({
|
|
481
484
|
url: e,
|
|
482
485
|
name: o,
|
|
483
486
|
size: t,
|
|
@@ -558,7 +561,7 @@ function Bt({ attachment: e }) {
|
|
|
558
561
|
);
|
|
559
562
|
if (c)
|
|
560
563
|
return /* @__PURE__ */ r(
|
|
561
|
-
|
|
564
|
+
ut,
|
|
562
565
|
{
|
|
563
566
|
url: s,
|
|
564
567
|
name: o,
|
|
@@ -569,7 +572,7 @@ function Bt({ attachment: e }) {
|
|
|
569
572
|
);
|
|
570
573
|
const p = jt({ type: n, name: o });
|
|
571
574
|
return p ? /* @__PURE__ */ r(
|
|
572
|
-
|
|
575
|
+
ut,
|
|
573
576
|
{
|
|
574
577
|
url: s,
|
|
575
578
|
name: o,
|
|
@@ -607,7 +610,7 @@ function Se({
|
|
|
607
610
|
messageType: o,
|
|
608
611
|
messageId: t
|
|
609
612
|
}) {
|
|
610
|
-
const { anchorTarget: n } =
|
|
613
|
+
const { anchorTarget: n } = z();
|
|
611
614
|
return /* @__PURE__ */ r(
|
|
612
615
|
Yt,
|
|
613
616
|
{
|
|
@@ -644,12 +647,12 @@ function Se({
|
|
|
644
647
|
}
|
|
645
648
|
);
|
|
646
649
|
}
|
|
647
|
-
function
|
|
650
|
+
function X() {
|
|
648
651
|
const {
|
|
649
652
|
widgetCtx: { org: e }
|
|
650
653
|
} = O(), {
|
|
651
654
|
sessionState: { session: o }
|
|
652
|
-
} = U(), t =
|
|
655
|
+
} = U(), t = z(), {
|
|
653
656
|
messagesState: { messages: n }
|
|
654
657
|
} = A(), {
|
|
655
658
|
routerState: { screen: s }
|
|
@@ -667,7 +670,7 @@ function no({
|
|
|
667
670
|
currentMessage: e
|
|
668
671
|
}) {
|
|
669
672
|
var n;
|
|
670
|
-
const o =
|
|
673
|
+
const o = X(), t = (n = o.config.customComponents) == null ? void 0 : n["message::after"];
|
|
671
674
|
return t ? /* @__PURE__ */ r(t, { ...o, currentMessage: e }) : null;
|
|
672
675
|
}
|
|
673
676
|
function xe(e) {
|
|
@@ -683,7 +686,7 @@ function xe(e) {
|
|
|
683
686
|
classNames: p
|
|
684
687
|
} = e;
|
|
685
688
|
if (n !== "AI" && n !== "AGENT") return null;
|
|
686
|
-
const { message:
|
|
689
|
+
const { message: v, variant: b = "default" } = o;
|
|
687
690
|
return /* @__PURE__ */ d(
|
|
688
691
|
"div",
|
|
689
692
|
{
|
|
@@ -693,8 +696,8 @@ function xe(e) {
|
|
|
693
696
|
p == null ? void 0 : p.messageContainer
|
|
694
697
|
),
|
|
695
698
|
children: [
|
|
696
|
-
s && s.length > 0 && /* @__PURE__ */ r("div", { className: "w-full gap-1 flex flex-row flex-wrap items-center justify-start", children: s == null ? void 0 : s.map((
|
|
697
|
-
|
|
699
|
+
s && s.length > 0 && /* @__PURE__ */ r("div", { className: "w-full gap-1 flex flex-row flex-wrap items-center justify-start", children: s == null ? void 0 : s.map((u) => /* @__PURE__ */ r(Bt, { attachment: u }, u.id)) }),
|
|
700
|
+
v.length > 0 && /* @__PURE__ */ d("div", { className: "flex flex-row gap-2", children: [
|
|
698
701
|
/* @__PURE__ */ r(
|
|
699
702
|
"div",
|
|
700
703
|
{
|
|
@@ -702,7 +705,7 @@ function xe(e) {
|
|
|
702
705
|
"data-first": i,
|
|
703
706
|
"data-last": a,
|
|
704
707
|
"data-alone": l,
|
|
705
|
-
"data-variant":
|
|
708
|
+
"data-variant": b,
|
|
706
709
|
className: m(
|
|
707
710
|
"transition-all",
|
|
708
711
|
"w-fit py-3 px-4 rounded-3xl bg-secondary text-secondary-foreground",
|
|
@@ -711,14 +714,14 @@ function xe(e) {
|
|
|
711
714
|
// `[word-break:break-word]` is deprecated but works in the browser, while `break-words` which is `[overflow-wrap: break-word]` does not work
|
|
712
715
|
// 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
|
|
713
716
|
// Adding "whitespace-pre-wrap" will result in unnecessarily huge line breaks
|
|
714
|
-
|
|
717
|
+
b === "error" && "bg-destructive/15 text-destructive",
|
|
715
718
|
// We're using the booleans directly here, not the data attributes, to make any external styling more specific than this
|
|
716
719
|
i && !l && "rounded-bl-md",
|
|
717
720
|
a && !l && "rounded-tl-md",
|
|
718
721
|
!i && !a && !l && "rounded-l-md",
|
|
719
722
|
p == null ? void 0 : p.message
|
|
720
723
|
),
|
|
721
|
-
children: /* @__PURE__ */ r(Se, { messageType: n, messageId: t, children:
|
|
724
|
+
children: /* @__PURE__ */ r(Se, { messageType: n, messageId: t, children: v })
|
|
722
725
|
}
|
|
723
726
|
),
|
|
724
727
|
/* @__PURE__ */ r(no, { currentMessage: e })
|
|
@@ -730,8 +733,8 @@ function xe(e) {
|
|
|
730
733
|
function so(e) {
|
|
731
734
|
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) }) });
|
|
732
735
|
}
|
|
733
|
-
const _e =
|
|
734
|
-
|
|
736
|
+
const _e = ee.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
737
|
+
te.Root,
|
|
735
738
|
{
|
|
736
739
|
ref: t,
|
|
737
740
|
className: m(
|
|
@@ -742,18 +745,18 @@ const _e = J.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
|
742
745
|
...o
|
|
743
746
|
}
|
|
744
747
|
));
|
|
745
|
-
_e.displayName =
|
|
746
|
-
const Ie =
|
|
747
|
-
|
|
748
|
+
_e.displayName = te.Root.displayName;
|
|
749
|
+
const Ie = ee.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
750
|
+
te.Image,
|
|
748
751
|
{
|
|
749
752
|
ref: t,
|
|
750
753
|
className: m("aspect-square h-full w-full", e),
|
|
751
754
|
...o
|
|
752
755
|
}
|
|
753
756
|
));
|
|
754
|
-
Ie.displayName =
|
|
755
|
-
const Te =
|
|
756
|
-
|
|
757
|
+
Ie.displayName = te.Image.displayName;
|
|
758
|
+
const Te = ee.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
759
|
+
te.Fallback,
|
|
757
760
|
{
|
|
758
761
|
ref: t,
|
|
759
762
|
className: m(
|
|
@@ -763,7 +766,7 @@ const Te = J.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r(
|
|
|
763
766
|
...o
|
|
764
767
|
}
|
|
765
768
|
));
|
|
766
|
-
Te.displayName =
|
|
769
|
+
Te.displayName = te.Fallback.displayName;
|
|
767
770
|
function ve({
|
|
768
771
|
agent: e,
|
|
769
772
|
...o
|
|
@@ -775,7 +778,7 @@ function ve({
|
|
|
775
778
|
] });
|
|
776
779
|
}
|
|
777
780
|
function ao({ agent: e }) {
|
|
778
|
-
return /* @__PURE__ */ r(
|
|
781
|
+
return /* @__PURE__ */ r(M, { children: /* @__PURE__ */ d(
|
|
779
782
|
k,
|
|
780
783
|
{
|
|
781
784
|
...f("chat/bot_loading/root"),
|
|
@@ -801,7 +804,7 @@ function ao({ agent: e }) {
|
|
|
801
804
|
}
|
|
802
805
|
) });
|
|
803
806
|
}
|
|
804
|
-
const Ut = '*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*{-ms-overflow-style:none;scrollbar-width:none}*::-webkit-scrollbar{display:none}*{border-color:hsl(var(--opencx-border))}.\\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%),0 3px rgb(var(--tw-prose-kbd-shadows) / 10%);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-kbd: #111827;--tw-prose-kbd-shadows: 17 24 39;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.bottom-3{bottom:.75rem}.end-6{inset-inline-end:1.5rem}.left-1\\/2{left:50%}.left-2{left:.5rem}.left-\\[50\\%\\]{left:50%}.right-4{right:1rem}.top-4{top:1rem}.top-6{top:1.5rem}.top-\\[50\\%\\]{top:50%}.isolate{isolation:isolate}.z-10{z-index:10}.z-50{z-index:50}.m-2{margin:.5rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-0\\.5{margin-left:.125rem;margin-right:.125rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ms-auto{margin-inline-start:auto}.mt-0\\.5{margin-top:.125rem}.mt-auto{margin-top:auto}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.size-0{width:0px;height:0px}.size-10{width:2.5rem;height:2.5rem}.size-12{width:3rem;height:3rem}.size-16{width:4rem;height:4rem}.size-3{width:.75rem;height:.75rem}.size-3\\.5{width:.875rem;height:.875rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.size-fit{width:fit-content;height:fit-content}.size-full{width:100%;height:100%}.h-0{height:0px}.h-10{height:2.5rem}.h-2{height:.5rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-full{height:100%}.h-px{height:1px}.max-h-16{max-height:4rem}.max-h-40{max-height:10rem}.max-h-full{max-height:100%}.min-h-12{min-height:3rem}.w-0{width:0px}.w-1\\/2{width:50%}.w-10{width:2.5rem}.w-2{width:.5rem}.w-2\\/5{width:40%}.w-3\\.5{width:.875rem}.w-3\\/5{width:60%}.w-4{width:1rem}.w-5\\/6{width:83.333333%}.w-60{width:15rem}.w-9{width:2.25rem}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0px}.min-w-80{min-width:20rem}.min-w-\\[3ch\\]{min-width:3ch}.min-w-\\[8rem\\]{min-width:8rem}.max-w-96{max-width:24rem}.max-w-\\[61\\.8\\%\\]{max-width:61.8%}.max-w-\\[min\\(100\\%\\,16rem\\)\\]{max-width:min(100%,16rem)}.max-w-full{max-width:100%}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.-translate-x-1\\/2,.translate-x-\\[-50\\%\\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[var\\(--wobble-x\\)\\]{--tw-translate-x: var(--wobble-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[-50\\%\\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[var\\(--wobble-y\\)\\]{--tw-translate-y: var(--wobble-y);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-0\\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-\\[1px\\]{gap:1px}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.scroll-smooth{scroll-behavior:smooth}.text-ellipsis{text-overflow:ellipsis}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-\\[20px\\]{border-radius:20px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-l-md{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.rounded-r-md{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-bl-md{border-bottom-left-radius:.375rem}.rounded-br-md{border-bottom-right-radius:.375rem}.rounded-tl-md{border-top-left-radius:.375rem}.rounded-tr-md{border-top-right-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-none{border-style:none}.border-transparent{border-color:transparent}.bg-\\[white\\]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-background{background-color:hsl(var(--opencx-background))}.bg-background\\/80{background-color:hsl(var(--opencx-background) / .8)}.bg-black\\/50{background-color:#00000080}.bg-black\\/60{background-color:#0009}.bg-destructive{background-color:hsl(var(--opencx-destructive))}.bg-destructive\\/15{background-color:hsl(var(--opencx-destructive) / .15)}.bg-muted{background-color:hsl(var(--opencx-muted))}.bg-primary{background-color:hsl(var(--opencx-primary))}.bg-secondary{background-color:hsl(var(--opencx-secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-white\\/30{background-color:#ffffff4d}.bg-\\[radial-gradient\\(ellipse_at_top_left\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\,radial-gradient\\(ellipse_at_top_right\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\]{background-image:radial-gradient(ellipse at top left,hsl(var(--opencx-primary)),transparent),radial-gradient(ellipse at top right,hsl(var(--opencx-primary)),transparent)}.fill-current{fill:currentColor}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:0}.p-1{padding:.25rem}.p-1\\.5{padding:.375rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-0{padding-bottom:0}.pb-2{padding-bottom:.5rem}.pe-2{padding-inline-end:.5rem}.pe-4{padding-inline-end:1rem}.ps-2{padding-inline-start:.5rem}.ps-4{padding-inline-start:1rem}.ps-8{padding-inline-start:2rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-start{text-align:start}.align-middle{vertical-align:middle}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-\\[1\\.75rem\\]{font-size:1.75rem}.text-\\[10px\\]{font-size:10px}.text-\\[16px\\]{font-size:16px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-none{line-height:1}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-destructive{color:hsl(var(--opencx-destructive))}.text-destructive-foreground{color:hsl(var(--opencx-destructive-foreground))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}.text-foreground{color:hsl(var(--opencx-foreground))}.text-muted-foreground{color:hsl(var(--opencx-muted-foreground))}.text-muted-foreground\\/70{color:hsl(var(--opencx-muted-foreground) / .7)}.text-muted-foreground\\/75{color:hsl(var(--opencx-muted-foreground) / .75)}.text-primary{color:hsl(var(--opencx-primary))}.text-primary-foreground{color:hsl(var(--opencx-primary-foreground))}.text-secondary-foreground{color:hsl(var(--opencx-secondary-foreground))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-white\\/80{color:#fffc}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-35{opacity:.35}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-95{opacity:.95}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-8{outline-width:8px}.outline-background{outline-color:hsl(var(--opencx-background))}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-offset-background{--tw-ring-offset-color: hsl(var(--opencx-background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[height\\]{transition-property:height;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in{--tw-enter-scale: 0}.zoom-in-95{--tw-enter-scale: .95}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.\\[animation-delay\\:-0\\.15s\\]{animation-delay:-.15s}.\\[animation-delay\\:-0\\.3s\\]{animation-delay:-.3s}.\\[field-sizing\\:content\\;\\],.\\[field-sizing\\:content\\]{field-sizing:content}.\\[word-break\\:break-word\\]{word-break:break-word}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.file\\:text-primary-foreground::file-selector-button{color:hsl(var(--opencx-primary-foreground))}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--opencx-muted-foreground))}.placeholder\\:text-muted-foreground\\/75::placeholder{color:hsl(var(--opencx-muted-foreground) / .75)}.focus-within\\:border-primary:focus-within{border-color:hsl(var(--opencx-primary))}.hover\\:scale-\\[var\\(--scale\\)\\]:hover{--tw-scale-x: var(--scale);--tw-scale-y: var(--scale);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:border-primary:hover{border-color:hsl(var(--opencx-primary))}.hover\\:bg-accent\\/60:hover{background-color:hsl(var(--opencx-accent) / .6)}.hover\\:bg-secondary:hover{background-color:hsl(var(--opencx-secondary))}.hover\\:bg-white\\/15:hover{background-color:#ffffff26}.hover\\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.hover\\:text-primary:hover{color:hsl(var(--opencx-primary))}.hover\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.focus\\:bg-accent:focus{background-color:hsl(var(--opencx-accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--opencx-accent-foreground))}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--opencx-ring))}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--opencx-background))}.active\\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\\:hover\\:scale-\\[calc\\(var\\(--scale\\)-0\\.02\\)\\]:hover:active{--tw-scale-x: calc(var(--scale) - .02);--tw-scale-y: calc(var(--scale) - .02);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:active\\:scale-95:active:hover{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:text-white\\/30:disabled{color:#ffffff4d}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:hover\\:bg-transparent:hover:disabled{background-color:transparent}.group:hover .group-hover\\:opacity-100{opacity:1}.group:hover .group-hover\\:active\\:scale-90:active,.group:active .group-active\\:scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[state\\=checked\\]\\:translate-x-4[data-state=checked]{--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:hsl(var(--opencx-primary))}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--opencx-accent))}.data-\\[state\\=unchecked\\]\\:bg-input[data-state=unchecked]{background-color:hsl(var(--opencx-input))}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.prose-a\\:underline :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-line:underline}.prose-a\\:decoration-primary :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-color:hsl(var(--opencx-primary))}.rtl\\:-scale-100:where([dir=rtl],[dir=rtl] *){--tw-scale-x: -1;--tw-scale-y: -1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\\[\\&_span\\]\\:size-1 span{width:.25rem;height:.25rem}.\\[\\&_span\\]\\:bg-secondary-foreground span{background-color:hsl(var(--opencx-secondary-foreground))}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:size-4 svg{width:1rem;height:1rem}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_svg\\]\\:text-muted-foreground\\/70 svg{color:hsl(var(--opencx-muted-foreground) / .7)}.\\[\\&_svg\\]\\:hover\\:text-primary:hover svg{color:hsl(var(--opencx-primary))}', io = ae.Provider, lo = ae.Root, co = ae.Trigger, Xt = J.forwardRef(({ className: e, sideOffset: o = 4, ...t }, n) => /* @__PURE__ */ r(
|
|
807
|
+
const Ut = '*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*{-ms-overflow-style:none;scrollbar-width:none}*::-webkit-scrollbar{display:none}*{border-color:hsl(var(--opencx-border))}.\\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%),0 3px rgb(var(--tw-prose-kbd-shadows) / 10%);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-kbd: #111827;--tw-prose-kbd-shadows: 17 24 39;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.bottom-3{bottom:.75rem}.end-6{inset-inline-end:1.5rem}.left-1\\/2{left:50%}.left-2{left:.5rem}.left-\\[50\\%\\]{left:50%}.right-4{right:1rem}.top-4{top:1rem}.top-6{top:1.5rem}.top-\\[50\\%\\]{top:50%}.isolate{isolation:isolate}.z-10{z-index:10}.z-50{z-index:50}.m-2{margin:.5rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-0\\.5{margin-left:.125rem;margin-right:.125rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ms-auto{margin-inline-start:auto}.mt-0\\.5{margin-top:.125rem}.mt-auto{margin-top:auto}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.size-0{width:0px;height:0px}.size-10{width:2.5rem;height:2.5rem}.size-12{width:3rem;height:3rem}.size-16{width:4rem;height:4rem}.size-3{width:.75rem;height:.75rem}.size-3\\.5{width:.875rem;height:.875rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.size-fit{width:fit-content;height:fit-content}.size-full{width:100%;height:100%}.h-0{height:0px}.h-10{height:2.5rem}.h-2{height:.5rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-dvh{height:100dvh}.h-full{height:100%}.h-px{height:1px}.max-h-16{max-height:4rem}.max-h-40{max-height:10rem}.max-h-full{max-height:100%}.min-h-12{min-height:3rem}.w-0{width:0px}.w-1\\/2{width:50%}.w-10{width:2.5rem}.w-2{width:.5rem}.w-2\\/5{width:40%}.w-3\\.5{width:.875rem}.w-3\\/5{width:60%}.w-4{width:1rem}.w-5\\/6{width:83.333333%}.w-60{width:15rem}.w-9{width:2.25rem}.w-auto{width:auto}.w-dvw{width:100dvw}.w-fit{width:fit-content}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0px}.min-w-80{min-width:20rem}.min-w-\\[3ch\\]{min-width:3ch}.min-w-\\[8rem\\]{min-width:8rem}.max-w-96{max-width:24rem}.max-w-\\[61\\.8\\%\\]{max-width:61.8%}.max-w-\\[min\\(100\\%\\,16rem\\)\\]{max-width:min(100%,16rem)}.max-w-full{max-width:100%}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-\\[2\\]{flex:2}.shrink-0{flex-shrink:0}.-translate-x-1\\/2,.translate-x-\\[-50\\%\\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[var\\(--wobble-x\\)\\]{--tw-translate-x: var(--wobble-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[-50\\%\\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[var\\(--wobble-y\\)\\]{--tw-translate-y: var(--wobble-y);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-0\\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-\\[1px\\]{gap:1px}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.scroll-smooth{scroll-behavior:smooth}.text-ellipsis{text-overflow:ellipsis}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-\\[20px\\]{border-radius:20px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-l-md{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.rounded-r-md{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-bl-md{border-bottom-left-radius:.375rem}.rounded-br-md{border-bottom-right-radius:.375rem}.rounded-tl-md{border-top-left-radius:.375rem}.rounded-tr-md{border-top-right-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-none{border-style:none}.border-transparent{border-color:transparent}.bg-\\[white\\]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-background{background-color:hsl(var(--opencx-background))}.bg-background\\/80{background-color:hsl(var(--opencx-background) / .8)}.bg-black\\/50{background-color:#00000080}.bg-black\\/60{background-color:#0009}.bg-destructive{background-color:hsl(var(--opencx-destructive))}.bg-destructive\\/15{background-color:hsl(var(--opencx-destructive) / .15)}.bg-muted{background-color:hsl(var(--opencx-muted))}.bg-primary{background-color:hsl(var(--opencx-primary))}.bg-secondary{background-color:hsl(var(--opencx-secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-white\\/30{background-color:#ffffff4d}.bg-\\[radial-gradient\\(ellipse_at_top_left\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\,radial-gradient\\(ellipse_at_top_right\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\]{background-image:radial-gradient(ellipse at top left,hsl(var(--opencx-primary)),transparent),radial-gradient(ellipse at top right,hsl(var(--opencx-primary)),transparent)}.fill-current{fill:currentColor}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:0}.p-1{padding:.25rem}.p-1\\.5{padding:.375rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-8{padding:2rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-0{padding-bottom:0}.pb-2{padding-bottom:.5rem}.pe-2{padding-inline-end:.5rem}.pe-4{padding-inline-end:1rem}.ps-2{padding-inline-start:.5rem}.ps-4{padding-inline-start:1rem}.ps-8{padding-inline-start:2rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-start{text-align:start}.align-middle{vertical-align:middle}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-\\[1\\.75rem\\]{font-size:1.75rem}.text-\\[10px\\]{font-size:10px}.text-\\[16px\\]{font-size:16px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-none{line-height:1}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-destructive{color:hsl(var(--opencx-destructive))}.text-destructive-foreground{color:hsl(var(--opencx-destructive-foreground))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}.text-foreground{color:hsl(var(--opencx-foreground))}.text-muted-foreground{color:hsl(var(--opencx-muted-foreground))}.text-muted-foreground\\/70{color:hsl(var(--opencx-muted-foreground) / .7)}.text-muted-foreground\\/75{color:hsl(var(--opencx-muted-foreground) / .75)}.text-primary{color:hsl(var(--opencx-primary))}.text-primary-foreground{color:hsl(var(--opencx-primary-foreground))}.text-secondary-foreground{color:hsl(var(--opencx-secondary-foreground))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-white\\/80{color:#fffc}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-35{opacity:.35}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-95{opacity:.95}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-8{outline-width:8px}.outline-background{outline-color:hsl(var(--opencx-background))}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-offset-background{--tw-ring-offset-color: hsl(var(--opencx-background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[height\\]{transition-property:height;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in{--tw-enter-scale: 0}.zoom-in-95{--tw-enter-scale: .95}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.\\[animation-delay\\:-0\\.15s\\]{animation-delay:-.15s}.\\[animation-delay\\:-0\\.3s\\]{animation-delay:-.3s}.\\[field-sizing\\:content\\;\\],.\\[field-sizing\\:content\\]{field-sizing:content}.\\[word-break\\:break-word\\]{word-break:break-word}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.file\\:text-primary-foreground::file-selector-button{color:hsl(var(--opencx-primary-foreground))}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--opencx-muted-foreground))}.placeholder\\:text-muted-foreground\\/75::placeholder{color:hsl(var(--opencx-muted-foreground) / .75)}.focus-within\\:border-primary:focus-within{border-color:hsl(var(--opencx-primary))}.hover\\:scale-\\[var\\(--scale\\)\\]:hover{--tw-scale-x: var(--scale);--tw-scale-y: var(--scale);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:border-primary:hover{border-color:hsl(var(--opencx-primary))}.hover\\:bg-accent\\/60:hover{background-color:hsl(var(--opencx-accent) / .6)}.hover\\:bg-secondary:hover{background-color:hsl(var(--opencx-secondary))}.hover\\:bg-white\\/15:hover{background-color:#ffffff26}.hover\\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.hover\\:text-primary:hover{color:hsl(var(--opencx-primary))}.hover\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.focus\\:bg-accent:focus{background-color:hsl(var(--opencx-accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--opencx-accent-foreground))}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--opencx-ring))}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--opencx-background))}.active\\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\\:hover\\:scale-\\[calc\\(var\\(--scale\\)-0\\.02\\)\\]:hover:active{--tw-scale-x: calc(var(--scale) - .02);--tw-scale-y: calc(var(--scale) - .02);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:active\\:scale-95:active:hover{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:text-white\\/30:disabled{color:#ffffff4d}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:hover\\:bg-transparent:hover:disabled{background-color:transparent}.group:hover .group-hover\\:opacity-100{opacity:1}.group:hover .group-hover\\:active\\:scale-90:active,.group:active .group-active\\:scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[state\\=checked\\]\\:translate-x-4[data-state=checked]{--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:hsl(var(--opencx-primary))}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--opencx-accent))}.data-\\[state\\=unchecked\\]\\:bg-input[data-state=unchecked]{background-color:hsl(var(--opencx-input))}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.prose-a\\:underline :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-line:underline}.prose-a\\:decoration-primary :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-color:hsl(var(--opencx-primary))}.rtl\\:-scale-100:where([dir=rtl],[dir=rtl] *){--tw-scale-x: -1;--tw-scale-y: -1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\\[\\&_span\\]\\:size-1 span{width:.25rem;height:.25rem}.\\[\\&_span\\]\\:bg-secondary-foreground span{background-color:hsl(var(--opencx-secondary-foreground))}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:size-4 svg{width:1rem;height:1rem}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_svg\\]\\:text-muted-foreground\\/70 svg{color:hsl(var(--opencx-muted-foreground) / .7)}.\\[\\&_svg\\]\\:hover\\:text-primary:hover svg{color:hsl(var(--opencx-primary))}', io = ae.Provider, lo = ae.Root, co = ae.Trigger, Xt = ee.forwardRef(({ className: e, sideOffset: o = 4, ...t }, n) => /* @__PURE__ */ r(
|
|
805
808
|
ae.Content,
|
|
806
809
|
{
|
|
807
810
|
ref: n,
|
|
@@ -820,7 +823,7 @@ function oe({
|
|
|
820
823
|
side: t,
|
|
821
824
|
align: n
|
|
822
825
|
}) {
|
|
823
|
-
const { disableTooltips: s } =
|
|
826
|
+
const { disableTooltips: s } = z();
|
|
824
827
|
return !o || s ? e : /* @__PURE__ */ d(lo, { children: [
|
|
825
828
|
/* @__PURE__ */ r(co, { asChild: !0, children: e }),
|
|
826
829
|
/* @__PURE__ */ r(
|
|
@@ -851,38 +854,38 @@ const ce = {
|
|
|
851
854
|
transitionTimingFunction: "cubic-bezier(0.16, 1, 0.3, 1)",
|
|
852
855
|
transitionDuration: "1000ms"
|
|
853
856
|
};
|
|
854
|
-
function
|
|
855
|
-
var
|
|
856
|
-
const { dir: e } = ke(), { isSmallScreen: o } = $(), { theme: t, inline: n } =
|
|
857
|
-
zIndex: ((
|
|
857
|
+
function K() {
|
|
858
|
+
var b, u, h, x, C, I, y, S, R, j, w, T, P, D, g, _, ie, Re, Pe, je, Oe, Ae, Fe, He, We, Le, $e, Be, Ye, Ue, Xe, qe, Ve, Ge, Ze, Ke, Qe, Je, et, tt, rt, ot, nt, st, at, it, lt;
|
|
859
|
+
const { dir: e } = ke(), { isSmallScreen: o } = $(), { theme: t, inline: n } = z(), s = (q) => n ? "100%" : q, i = (q, ge) => o ? `100dv${q}` : ge, a = (q, ge) => s(i(q, ge)), l = {
|
|
860
|
+
zIndex: ((b = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : b.zIndex) ?? 1e7,
|
|
858
861
|
offset: {
|
|
859
|
-
bottom: ((
|
|
860
|
-
right: ((
|
|
861
|
-
left: ((y = (
|
|
862
|
+
bottom: ((h = (u = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : u.offset) == null ? void 0 : h.bottom) ?? 20,
|
|
863
|
+
right: ((C = (x = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : x.offset) == null ? void 0 : C.right) ?? (e === "ltr" ? 20 : "initial"),
|
|
864
|
+
left: ((y = (I = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : I.offset) == null ? void 0 : y.left) ?? (e === "rtl" ? 20 : "initial")
|
|
862
865
|
},
|
|
863
866
|
size: {
|
|
864
|
-
button: ((
|
|
867
|
+
button: ((R = (S = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : S.size) == null ? void 0 : R.button) ?? 48,
|
|
865
868
|
icon: ((w = (j = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : j.size) == null ? void 0 : w.icon) ?? 24
|
|
866
869
|
}
|
|
867
870
|
}, c = (() => {
|
|
868
|
-
const
|
|
869
|
-
return typeof
|
|
871
|
+
const q = e === "ltr" ? l.offset.right : l.offset.left;
|
|
872
|
+
return typeof q != "number" ? 0 : q;
|
|
870
873
|
})(), p = {
|
|
871
874
|
palette: (t == null ? void 0 : t.palette) ?? "neutral",
|
|
872
875
|
primaryColor: (t == null ? void 0 : t.primaryColor) ?? "hsl(0 0% 9%)",
|
|
873
876
|
widgetTrigger: l,
|
|
874
877
|
widgetContentContainer: {
|
|
875
|
-
borderRadius: o ? "0px" : ((
|
|
876
|
-
zIndex: ((
|
|
877
|
-
outline: ((
|
|
878
|
+
borderRadius: o ? "0px" : ((T = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : T.borderRadius) ?? "32px",
|
|
879
|
+
zIndex: ((P = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : P.zIndex) ?? l.zIndex + 1,
|
|
880
|
+
outline: ((D = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : D.outline) ?? "none",
|
|
878
881
|
// was: '1px solid'
|
|
879
|
-
outlineColor: ((
|
|
880
|
-
boxShadow: ((
|
|
882
|
+
outlineColor: ((g = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : g.outlineColor) ?? "hsl(0 0% 50% / .5)",
|
|
883
|
+
boxShadow: ((_ = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : _.boxShadow) ?? "0 0px 100px 0px rgb(0 0 0 / 0.25)",
|
|
881
884
|
transitionProperty: ((ie = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : ie.transitionProperty) ?? "all",
|
|
882
885
|
transitionTimingFunction: ((Re = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Re.transitionTimingFunction) ?? ce.transitionTimingFunction,
|
|
883
886
|
transitionDuration: ((Pe = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Pe.transitionDuration) ?? ce.transitionDuration,
|
|
884
887
|
offset: {
|
|
885
|
-
side: o ? 0 : l.offset.bottom + l.size.button +
|
|
888
|
+
side: o ? 0 : l.offset.bottom + l.size.button + Q.y * 2 + (((Oe = (je = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : je.offset) == null ? void 0 : Oe.side) ?? 10),
|
|
886
889
|
align: o ? 0 : c + (((Fe = (Ae = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Ae.offset) == null ? void 0 : Fe.align) ?? 0)
|
|
887
890
|
}
|
|
888
891
|
},
|
|
@@ -916,7 +919,7 @@ function Z() {
|
|
|
916
919
|
}
|
|
917
920
|
}
|
|
918
921
|
}
|
|
919
|
-
},
|
|
922
|
+
}, v = {
|
|
920
923
|
// Subtract the offset.bottom twice so that it adds a bit of padding to the top
|
|
921
924
|
// Subtract the distance between the trigger and the widget content container
|
|
922
925
|
// Subtract the invisible padding of the trigger (for the wobble effect)
|
|
@@ -926,7 +929,7 @@ function Z() {
|
|
|
926
929
|
100vh
|
|
927
930
|
- ${p.widgetTrigger.offset.bottom}px
|
|
928
931
|
- ${p.widgetContentContainer.offset.side}px
|
|
929
|
-
- ${
|
|
932
|
+
- ${Q.y * 2}px
|
|
930
933
|
)`
|
|
931
934
|
),
|
|
932
935
|
// Subtract the offset.right twice so that it adds a bit of padding to the left
|
|
@@ -956,7 +959,7 @@ function Z() {
|
|
|
956
959
|
};
|
|
957
960
|
return {
|
|
958
961
|
theme: p,
|
|
959
|
-
computed:
|
|
962
|
+
computed: v,
|
|
960
963
|
cssVars: po({
|
|
961
964
|
palette: p.palette,
|
|
962
965
|
primary: p.primaryColor
|
|
@@ -1050,7 +1053,7 @@ function qt(e) {
|
|
|
1050
1053
|
}
|
|
1051
1054
|
}
|
|
1052
1055
|
function Vt() {
|
|
1053
|
-
const { contentIframeRef: e } = O(), { inline: o } =
|
|
1056
|
+
const { contentIframeRef: e } = O(), { inline: o } = z();
|
|
1054
1057
|
return {
|
|
1055
1058
|
setWidth: (t) => {
|
|
1056
1059
|
var n;
|
|
@@ -1107,9 +1110,9 @@ function ne({
|
|
|
1107
1110
|
case "Shrink":
|
|
1108
1111
|
return wr;
|
|
1109
1112
|
case "SquareCheck":
|
|
1110
|
-
return gr;
|
|
1111
|
-
case "SquareCheckBig":
|
|
1112
1113
|
return ur;
|
|
1114
|
+
case "SquareCheckBig":
|
|
1115
|
+
return gr;
|
|
1113
1116
|
case "SquareX":
|
|
1114
1117
|
return hr;
|
|
1115
1118
|
case "X":
|
|
@@ -1124,12 +1127,12 @@ function ne({
|
|
|
1124
1127
|
}
|
|
1125
1128
|
function mo() {
|
|
1126
1129
|
var t;
|
|
1127
|
-
const e =
|
|
1130
|
+
const e = X(), o = (t = e.config.customComponents) == null ? void 0 : t.headerBottom;
|
|
1128
1131
|
return o ? /* @__PURE__ */ r(o, { ...e }) : null;
|
|
1129
1132
|
}
|
|
1130
1133
|
function ho({ fallback: e }) {
|
|
1131
1134
|
var n;
|
|
1132
|
-
const o =
|
|
1135
|
+
const o = X(), t = (n = o.config.customComponents) == null ? void 0 : n.headerTitle;
|
|
1133
1136
|
return t ? /* @__PURE__ */ r(t, { ...o }) : e;
|
|
1134
1137
|
}
|
|
1135
1138
|
function De() {
|
|
@@ -1137,7 +1140,7 @@ function De() {
|
|
|
1137
1140
|
widgetCtx: { org: e }
|
|
1138
1141
|
} = O(), {
|
|
1139
1142
|
routerState: { screen: o }
|
|
1140
|
-
} = H(), { textContent: t } =
|
|
1143
|
+
} = H(), { textContent: t } = z();
|
|
1141
1144
|
return (() => {
|
|
1142
1145
|
var s, i;
|
|
1143
1146
|
switch (o) {
|
|
@@ -1153,7 +1156,7 @@ function De() {
|
|
|
1153
1156
|
}
|
|
1154
1157
|
})() ?? e.name ?? "Chat";
|
|
1155
1158
|
}
|
|
1156
|
-
function
|
|
1159
|
+
function go(e) {
|
|
1157
1160
|
switch (e) {
|
|
1158
1161
|
case "chat":
|
|
1159
1162
|
return f("chat/header");
|
|
@@ -1166,8 +1169,8 @@ function uo(e) {
|
|
|
1166
1169
|
return;
|
|
1167
1170
|
}
|
|
1168
1171
|
}
|
|
1169
|
-
function
|
|
1170
|
-
const { router: e } =
|
|
1172
|
+
function uo() {
|
|
1173
|
+
const { router: e } = z(), {
|
|
1171
1174
|
routerState: { screen: o },
|
|
1172
1175
|
toSessionsScreen: t
|
|
1173
1176
|
} = H();
|
|
@@ -1185,7 +1188,7 @@ function go() {
|
|
|
1185
1188
|
function wo({
|
|
1186
1189
|
button: e
|
|
1187
1190
|
}) {
|
|
1188
|
-
const { setIsOpen: o } =
|
|
1191
|
+
const { setIsOpen: o } = Z(), { isSmallScreen: t } = $(), n = X();
|
|
1189
1192
|
return t && e.hideOnSmallScreen || !t && e.hideOnLargeScreen ? null : /* @__PURE__ */ r(
|
|
1190
1193
|
N,
|
|
1191
1194
|
{
|
|
@@ -1193,8 +1196,8 @@ function wo({
|
|
|
1193
1196
|
size: "fit",
|
|
1194
1197
|
className: "rounded-full",
|
|
1195
1198
|
onClick: () => {
|
|
1196
|
-
|
|
1197
|
-
o(!1);
|
|
1199
|
+
var i;
|
|
1200
|
+
e.handleClick ? e.handleClick() : o(!1), (i = e.onClicked) == null || i.call(e, n);
|
|
1198
1201
|
},
|
|
1199
1202
|
children: /* @__PURE__ */ r(ne, { name: e.icon })
|
|
1200
1203
|
}
|
|
@@ -1203,11 +1206,11 @@ function wo({
|
|
|
1203
1206
|
function be({
|
|
1204
1207
|
button: e
|
|
1205
1208
|
}) {
|
|
1206
|
-
const [o, t] =
|
|
1209
|
+
const [o, t] = E(!1), {
|
|
1207
1210
|
routerState: { screen: n }
|
|
1208
|
-
} = H(), { isSmallScreen: s } = $(), { theme: i } =
|
|
1211
|
+
} = H(), { isSmallScreen: s } = $(), { theme: i } = K(), { setWidth: a, setHeight: l } = Vt(), c = X();
|
|
1209
1212
|
if (n !== "chat" && n !== "sessions") return null;
|
|
1210
|
-
const
|
|
1213
|
+
const p = (() => {
|
|
1211
1214
|
switch (n) {
|
|
1212
1215
|
case "chat":
|
|
1213
1216
|
return i.screens.chat.height;
|
|
@@ -1216,7 +1219,7 @@ function be({
|
|
|
1216
1219
|
default:
|
|
1217
1220
|
return F(n, be.name), i.screens.chat.height;
|
|
1218
1221
|
}
|
|
1219
|
-
})(),
|
|
1222
|
+
})(), v = (() => {
|
|
1220
1223
|
switch (n) {
|
|
1221
1224
|
case "chat":
|
|
1222
1225
|
return i.screens.chat.width;
|
|
@@ -1225,11 +1228,12 @@ function be({
|
|
|
1225
1228
|
default:
|
|
1226
1229
|
return F(n, be.name), i.screens.chat.width;
|
|
1227
1230
|
}
|
|
1228
|
-
})(),
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1231
|
+
})(), b = () => {
|
|
1232
|
+
var u;
|
|
1233
|
+
t((h) => {
|
|
1234
|
+
const x = !h;
|
|
1235
|
+
return l(x ? "100vh" : p), a(x ? `max(40vw, ${v})` : v), x;
|
|
1236
|
+
}), (u = e.onClicked) == null || u.call(e, c);
|
|
1233
1237
|
};
|
|
1234
1238
|
return s && e.hideOnSmallScreen || !s && e.hideOnLargeScreen ? null : /* @__PURE__ */ r(
|
|
1235
1239
|
N,
|
|
@@ -1237,7 +1241,7 @@ function be({
|
|
|
1237
1241
|
variant: "ghost",
|
|
1238
1242
|
size: "fit",
|
|
1239
1243
|
className: "rounded-full",
|
|
1240
|
-
onClick:
|
|
1244
|
+
onClick: b,
|
|
1241
1245
|
children: /* @__PURE__ */ r(
|
|
1242
1246
|
ne,
|
|
1243
1247
|
{
|
|
@@ -1250,11 +1254,11 @@ function be({
|
|
|
1250
1254
|
function Gt({
|
|
1251
1255
|
button: e
|
|
1252
1256
|
}) {
|
|
1253
|
-
var
|
|
1254
|
-
const { close: o } = he(), { widgetCtx: t } = O(), { setIsOpen: n } =
|
|
1255
|
-
const { success:
|
|
1256
|
-
if (o(), !
|
|
1257
|
-
switch (
|
|
1257
|
+
var I, y;
|
|
1258
|
+
const { close: o } = he(), { widgetCtx: t } = O(), { setIsOpen: n } = Z(), { resolveSession: s, sessionState: i } = U(), { isSmallScreen: a } = $(), l = X(), c = !i.session, p = ((I = i.session) == null ? void 0 : I.isOpened) === !1, v = e.onResolved || "stay-in-chat", b = e.behaviorBeforeSessionCreation || "disabled", u = e.behaviorIfSessionIsResolved || "disabled", h = !!(i.isResolvingSession || c && b === "disabled" || p && u === "disabled"), x = async () => {
|
|
1259
|
+
const { success: S, error: R } = await s();
|
|
1260
|
+
if (o(), !S) return console.error(R);
|
|
1261
|
+
switch (v) {
|
|
1258
1262
|
case "stay-in-chat":
|
|
1259
1263
|
return;
|
|
1260
1264
|
case "close-widget":
|
|
@@ -1267,12 +1271,12 @@ function Gt({
|
|
|
1267
1271
|
n(!1), t.resetChat();
|
|
1268
1272
|
break;
|
|
1269
1273
|
default:
|
|
1270
|
-
F(
|
|
1274
|
+
F(v, Gt.name);
|
|
1271
1275
|
break;
|
|
1272
1276
|
}
|
|
1273
|
-
},
|
|
1274
|
-
if (
|
|
1275
|
-
switch (
|
|
1277
|
+
}, C = () => {
|
|
1278
|
+
if (c)
|
|
1279
|
+
switch (b) {
|
|
1276
1280
|
case "disabled":
|
|
1277
1281
|
return;
|
|
1278
1282
|
case "close-widget":
|
|
@@ -1280,12 +1284,12 @@ function Gt({
|
|
|
1280
1284
|
break;
|
|
1281
1285
|
default:
|
|
1282
1286
|
F(
|
|
1283
|
-
|
|
1284
|
-
|
|
1287
|
+
b,
|
|
1288
|
+
C.name
|
|
1285
1289
|
);
|
|
1286
1290
|
}
|
|
1287
|
-
if (
|
|
1288
|
-
switch (
|
|
1291
|
+
if (p)
|
|
1292
|
+
switch (u) {
|
|
1289
1293
|
case "disabled":
|
|
1290
1294
|
return;
|
|
1291
1295
|
case "close-widget":
|
|
@@ -1301,12 +1305,12 @@ function Gt({
|
|
|
1301
1305
|
break;
|
|
1302
1306
|
default:
|
|
1303
1307
|
F(
|
|
1304
|
-
|
|
1305
|
-
|
|
1308
|
+
u,
|
|
1309
|
+
C.name
|
|
1306
1310
|
);
|
|
1307
1311
|
}
|
|
1308
1312
|
};
|
|
1309
|
-
return a && e.hideOnSmallScreen || !a && e.hideOnLargeScreen ? null : ((
|
|
1313
|
+
return a && e.hideOnSmallScreen || !a && e.hideOnLargeScreen ? null : ((y = e.confirmation) == null ? void 0 : y.type) === "modal" && !p && !c ? /* @__PURE__ */ r(
|
|
1310
1314
|
Ne,
|
|
1311
1315
|
{
|
|
1312
1316
|
trigger: /* @__PURE__ */ r(
|
|
@@ -1315,7 +1319,11 @@ function Gt({
|
|
|
1315
1319
|
variant: "ghost",
|
|
1316
1320
|
size: "fit",
|
|
1317
1321
|
className: "rounded-full",
|
|
1318
|
-
disabled:
|
|
1322
|
+
disabled: h,
|
|
1323
|
+
onClick: () => {
|
|
1324
|
+
var S;
|
|
1325
|
+
return (S = e.onClicked) == null ? void 0 : S.call(e, l);
|
|
1326
|
+
},
|
|
1319
1327
|
children: /* @__PURE__ */ r(ne, { name: e.icon })
|
|
1320
1328
|
}
|
|
1321
1329
|
),
|
|
@@ -1336,7 +1344,7 @@ function Gt({
|
|
|
1336
1344
|
N,
|
|
1337
1345
|
{
|
|
1338
1346
|
variant: "destructive",
|
|
1339
|
-
onClick:
|
|
1347
|
+
onClick: x,
|
|
1340
1348
|
disabled: i.isResolvingSession,
|
|
1341
1349
|
children: e.confirmation.confirmButtonText || "Yes"
|
|
1342
1350
|
}
|
|
@@ -1350,8 +1358,11 @@ function Gt({
|
|
|
1350
1358
|
variant: "ghost",
|
|
1351
1359
|
size: "fit",
|
|
1352
1360
|
className: "rounded-full",
|
|
1353
|
-
onClick:
|
|
1354
|
-
|
|
1361
|
+
onClick: () => {
|
|
1362
|
+
var S;
|
|
1363
|
+
p || c ? C() : x(), (S = e.onClicked) == null || S.call(e, l);
|
|
1364
|
+
},
|
|
1365
|
+
disabled: h,
|
|
1355
1366
|
children: /* @__PURE__ */ r(ne, { name: e.icon })
|
|
1356
1367
|
}
|
|
1357
1368
|
);
|
|
@@ -1376,8 +1387,8 @@ const fo = {
|
|
|
1376
1387
|
function xo() {
|
|
1377
1388
|
const {
|
|
1378
1389
|
routerState: { screen: e }
|
|
1379
|
-
} = H(), { headerButtons: o } =
|
|
1380
|
-
return !t || t.length === 0 ? /* @__PURE__ */ r(ye, { button: fo }) : /* @__PURE__ */ r(
|
|
1390
|
+
} = H(), { headerButtons: o } = z(), t = e === "chat" ? o == null ? void 0 : o.chatScreen : e === "sessions" ? o == null ? void 0 : o.sessionsScreen : [];
|
|
1391
|
+
return !t || t.length === 0 ? /* @__PURE__ */ r(ye, { button: fo }) : /* @__PURE__ */ r(J, { children: t.map((n) => /* @__PURE__ */ r(
|
|
1381
1392
|
ye,
|
|
1382
1393
|
{
|
|
1383
1394
|
button: n
|
|
@@ -1388,10 +1399,10 @@ function xo() {
|
|
|
1388
1399
|
function Zt() {
|
|
1389
1400
|
const {
|
|
1390
1401
|
routerState: { screen: e }
|
|
1391
|
-
} = H(), o =
|
|
1402
|
+
} = H(), o = go(e), t = De();
|
|
1392
1403
|
return /* @__PURE__ */ d("header", { ...o, className: "py-2 px-4 shrink-0", children: [
|
|
1393
1404
|
/* @__PURE__ */ d("div", { className: "flex items-center gap-2", children: [
|
|
1394
|
-
/* @__PURE__ */ r(
|
|
1405
|
+
/* @__PURE__ */ r(uo, {}),
|
|
1395
1406
|
/* @__PURE__ */ r(
|
|
1396
1407
|
"div",
|
|
1397
1408
|
{
|
|
@@ -1424,7 +1435,7 @@ function vo() {
|
|
|
1424
1435
|
};
|
|
1425
1436
|
}
|
|
1426
1437
|
function bo() {
|
|
1427
|
-
const e =
|
|
1438
|
+
const e = X(), { activeMode: o, Component: t } = zt(), { sendMessage: n } = A(), { createStateCheckpoint: s } = U(), [i, a] = E(!1), l = async (c) => {
|
|
1428
1439
|
try {
|
|
1429
1440
|
a(!0), await n(c);
|
|
1430
1441
|
} catch (p) {
|
|
@@ -1444,8 +1455,8 @@ function bo() {
|
|
|
1444
1455
|
}
|
|
1445
1456
|
);
|
|
1446
1457
|
}
|
|
1447
|
-
function
|
|
1448
|
-
const { dir: e } = ke(), o =
|
|
1458
|
+
function V() {
|
|
1459
|
+
const { dir: e } = ke(), o = z();
|
|
1449
1460
|
return Ct(() => {
|
|
1450
1461
|
const t = Br(o.language) ? o.language : "en";
|
|
1451
1462
|
return {
|
|
@@ -1503,22 +1514,22 @@ const yo = [
|
|
|
1503
1514
|
}
|
|
1504
1515
|
];
|
|
1505
1516
|
function ko() {
|
|
1506
|
-
const { isSmallScreen: e } = $(), { t: o } =
|
|
1517
|
+
const { isSmallScreen: e } = $(), { t: o } = V(), {
|
|
1507
1518
|
submitCsat: t,
|
|
1508
1519
|
isCsatRequested: n,
|
|
1509
1520
|
isCsatSubmitted: s,
|
|
1510
1521
|
submittedScore: i,
|
|
1511
1522
|
submittedFeedback: a
|
|
1512
|
-
} = Nt(), [l, c] =
|
|
1513
|
-
c((
|
|
1514
|
-
},
|
|
1523
|
+
} = Nt(), [l, c] = E(null), [p, v] = E(null), b = (h) => {
|
|
1524
|
+
c((x) => x === h ? null : h);
|
|
1525
|
+
}, u = () => {
|
|
1515
1526
|
l && t({
|
|
1516
1527
|
score: l,
|
|
1517
1528
|
feedback: p || void 0
|
|
1518
1529
|
});
|
|
1519
1530
|
};
|
|
1520
1531
|
return !n && !s ? null : /* @__PURE__ */ d("div", { className: "w-1/2 min-w-80 max-w-96 mx-auto overflow-hidden", children: [
|
|
1521
|
-
/* @__PURE__ */ r(
|
|
1532
|
+
/* @__PURE__ */ r(M, { mode: "wait", children: n && !l ? /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r("p", { className: "text-sm text-muted-foreground text-center pt-2", children: o("csat_title") }) }, "csat-requested-title") : s ? /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r("p", { className: "text-sm text-muted-foreground text-center pt-2", children: o("csat_submitted_title") }) }, "csat-submitted-title") : null }),
|
|
1522
1533
|
/* @__PURE__ */ r(
|
|
1523
1534
|
"div",
|
|
1524
1535
|
{
|
|
@@ -1528,10 +1539,10 @@ function ko() {
|
|
|
1528
1539
|
"transition-all",
|
|
1529
1540
|
s && "gap-0 justify-center"
|
|
1530
1541
|
),
|
|
1531
|
-
children: yo.map((
|
|
1542
|
+
children: yo.map((h) => /* @__PURE__ */ r(
|
|
1532
1543
|
N,
|
|
1533
1544
|
{
|
|
1534
|
-
variant:
|
|
1545
|
+
variant: h.value === l ? "secondary" : "ghost",
|
|
1535
1546
|
size: "selfless",
|
|
1536
1547
|
className: m(
|
|
1537
1548
|
"transition-all overflow-hidden",
|
|
@@ -1539,18 +1550,18 @@ function ko() {
|
|
|
1539
1550
|
"opacity-35",
|
|
1540
1551
|
"hover:opacity-100",
|
|
1541
1552
|
!l && "opacity-100",
|
|
1542
|
-
|
|
1543
|
-
s &&
|
|
1544
|
-
s &&
|
|
1553
|
+
h.value === l && "opacity-100",
|
|
1554
|
+
s && h.value !== i && "opacity-0 size-0",
|
|
1555
|
+
s && h.value === i && "opacity-100 size-fit text-4xl"
|
|
1545
1556
|
),
|
|
1546
|
-
onClick: n ? () =>
|
|
1547
|
-
children:
|
|
1557
|
+
onClick: n ? () => b(h.value) : void 0,
|
|
1558
|
+
children: h.emoji
|
|
1548
1559
|
},
|
|
1549
|
-
|
|
1560
|
+
h.value
|
|
1550
1561
|
))
|
|
1551
1562
|
}
|
|
1552
1563
|
),
|
|
1553
|
-
/* @__PURE__ */ r(
|
|
1564
|
+
/* @__PURE__ */ r(M, { mode: "wait", children: (l || i) && /* @__PURE__ */ r(W, { children: /* @__PURE__ */ d("div", { className: "pb-2 px-2 flex items-end", children: [
|
|
1554
1565
|
/* @__PURE__ */ r(
|
|
1555
1566
|
"textarea",
|
|
1556
1567
|
{
|
|
@@ -1566,7 +1577,7 @@ function ko() {
|
|
|
1566
1577
|
s && "text-center"
|
|
1567
1578
|
),
|
|
1568
1579
|
value: s ? a || "" : p || "",
|
|
1569
|
-
onChange: n ? (
|
|
1580
|
+
onChange: n ? (h) => v(h.target.value) : void 0,
|
|
1570
1581
|
readOnly: s,
|
|
1571
1582
|
placeholder: n ? o("csat_feedback_placeholder") : void 0
|
|
1572
1583
|
}
|
|
@@ -1575,7 +1586,7 @@ function ko() {
|
|
|
1575
1586
|
N,
|
|
1576
1587
|
{
|
|
1577
1588
|
size: "fit",
|
|
1578
|
-
onClick:
|
|
1589
|
+
onClick: u,
|
|
1579
1590
|
disabled: !l,
|
|
1580
1591
|
className: m(
|
|
1581
1592
|
"transition-all overflow-hidden",
|
|
@@ -1616,7 +1627,7 @@ function Ee({
|
|
|
1616
1627
|
);
|
|
1617
1628
|
}
|
|
1618
1629
|
function Co() {
|
|
1619
|
-
const { t: e } =
|
|
1630
|
+
const { t: e } = V(), o = [e("i_need_more_help"), e("this_was_helpful")];
|
|
1620
1631
|
return /* @__PURE__ */ r(
|
|
1621
1632
|
"div",
|
|
1622
1633
|
{
|
|
@@ -1634,14 +1645,14 @@ function Co() {
|
|
|
1634
1645
|
);
|
|
1635
1646
|
}
|
|
1636
1647
|
function xt() {
|
|
1637
|
-
const { sessionState: e } = U(), { chatFooterItems: o } =
|
|
1638
|
-
return /* @__PURE__ */ r(
|
|
1648
|
+
const { sessionState: e } = U(), { chatFooterItems: o } = z(), t = !!e.session && !e.session.isOpened, n = !t;
|
|
1649
|
+
return /* @__PURE__ */ r(M, { mode: "wait", children: o == null ? void 0 : o.map((s, i) => s.showWhenSessionIsOpen === !1 && n || s.showWhenSessionIsResolved === !1 && t ? null : /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r("div", { className: "pb-2 text-center text-xs", children: /* @__PURE__ */ r(Se, { children: s.message }) }) }, `${s.message}-${i}`)) });
|
|
1639
1650
|
}
|
|
1640
1651
|
function zo({
|
|
1641
1652
|
file: { status: e, file: o, error: t },
|
|
1642
1653
|
onCancel: n
|
|
1643
1654
|
}) {
|
|
1644
|
-
const [s, i] =
|
|
1655
|
+
const [s, i] = E(
|
|
1645
1656
|
null
|
|
1646
1657
|
);
|
|
1647
1658
|
se(() => {
|
|
@@ -1709,30 +1720,30 @@ function zo({
|
|
|
1709
1720
|
);
|
|
1710
1721
|
}
|
|
1711
1722
|
function No() {
|
|
1712
|
-
var
|
|
1713
|
-
const { isSmallScreen: e } = $(), o = B(null), { sendMessage: t } = A(), { sessionState: n } = U(), { disableSendingWhenAwaitingAIReply: s } =
|
|
1723
|
+
var D;
|
|
1724
|
+
const { isSmallScreen: e } = $(), o = B(null), { sendMessage: t } = A(), { sessionState: n } = U(), { disableSendingWhenAwaitingAIReply: s } = z(), { t: i } = V(), [a, l] = E(""), {
|
|
1714
1725
|
allFiles: c,
|
|
1715
1726
|
emptyTheFiles: p,
|
|
1716
|
-
handleCancelUpload:
|
|
1717
|
-
appendFiles:
|
|
1718
|
-
isUploading:
|
|
1719
|
-
successFiles:
|
|
1720
|
-
} = sr(),
|
|
1721
|
-
|
|
1722
|
-
},
|
|
1723
|
-
if (
|
|
1724
|
-
|
|
1725
|
-
const
|
|
1727
|
+
handleCancelUpload: v,
|
|
1728
|
+
appendFiles: b,
|
|
1729
|
+
isUploading: u,
|
|
1730
|
+
successFiles: h
|
|
1731
|
+
} = sr(), x = !!((D = n.session) != null && D.isHandedOff), { isAwaitingBotReply: C } = St(), I = s !== !1 && C, y = (g) => {
|
|
1732
|
+
b(g);
|
|
1733
|
+
}, S = !a.trim() && h.length === 0, R = async () => {
|
|
1734
|
+
if (I || S) return;
|
|
1735
|
+
u && console.info("please wait for the file(s) to upload");
|
|
1736
|
+
const g = a.trim();
|
|
1726
1737
|
t({
|
|
1727
|
-
content:
|
|
1728
|
-
attachments:
|
|
1729
|
-
(
|
|
1738
|
+
content: g,
|
|
1739
|
+
attachments: h.flatMap(
|
|
1740
|
+
(_) => _.fileUrl ? [
|
|
1730
1741
|
{
|
|
1731
|
-
url:
|
|
1732
|
-
type:
|
|
1733
|
-
name:
|
|
1734
|
-
id:
|
|
1735
|
-
size:
|
|
1742
|
+
url: _.fileUrl,
|
|
1743
|
+
type: _.file.type,
|
|
1744
|
+
name: _.file.name,
|
|
1745
|
+
id: _.id,
|
|
1746
|
+
size: _.file.size
|
|
1736
1747
|
}
|
|
1737
1748
|
] : []
|
|
1738
1749
|
)
|
|
@@ -1740,7 +1751,7 @@ function No() {
|
|
|
1740
1751
|
}, {
|
|
1741
1752
|
getRootProps: j,
|
|
1742
1753
|
getInputProps: w,
|
|
1743
|
-
open:
|
|
1754
|
+
open: T
|
|
1744
1755
|
} = Ur({
|
|
1745
1756
|
onDrop: y,
|
|
1746
1757
|
noClick: !0,
|
|
@@ -1748,7 +1759,7 @@ function No() {
|
|
|
1748
1759
|
console.error("unsupported file type, or the file is too large");
|
|
1749
1760
|
},
|
|
1750
1761
|
maxSize: 5 * 1024 * 1024,
|
|
1751
|
-
accept:
|
|
1762
|
+
accept: x ? {
|
|
1752
1763
|
"text/*": [".txt"],
|
|
1753
1764
|
"image/*": [".png", ".jpg", ".jpeg", ".gif"],
|
|
1754
1765
|
"application/pdf": [".pdf"],
|
|
@@ -1761,9 +1772,9 @@ function No() {
|
|
|
1761
1772
|
"application/pdf": [".pdf"],
|
|
1762
1773
|
...mt
|
|
1763
1774
|
}
|
|
1764
|
-
}),
|
|
1765
|
-
const
|
|
1766
|
-
|
|
1775
|
+
}), P = (g) => {
|
|
1776
|
+
const _ = g.clipboardData;
|
|
1777
|
+
_ && _.files.length > 0 && y(Array.from(_.files));
|
|
1767
1778
|
};
|
|
1768
1779
|
return /* @__PURE__ */ d(
|
|
1769
1780
|
"div",
|
|
@@ -1796,20 +1807,20 @@ function No() {
|
|
|
1796
1807
|
{
|
|
1797
1808
|
...f("chat/input_box/attachments_container"),
|
|
1798
1809
|
className: "flex items-center gap-1",
|
|
1799
|
-
children: /* @__PURE__ */ r(
|
|
1810
|
+
children: /* @__PURE__ */ r(M, { mode: "popLayout", children: c.map((g) => /* @__PURE__ */ r(k, { snapExit: !0, children: /* @__PURE__ */ r(
|
|
1800
1811
|
zo,
|
|
1801
1812
|
{
|
|
1802
|
-
onCancel: () =>
|
|
1803
|
-
file:
|
|
1813
|
+
onCancel: () => v(g.id),
|
|
1814
|
+
file: g
|
|
1804
1815
|
}
|
|
1805
|
-
) },
|
|
1816
|
+
) }, g.id)) })
|
|
1806
1817
|
}
|
|
1807
1818
|
),
|
|
1808
1819
|
/* @__PURE__ */ r(
|
|
1809
1820
|
"textarea",
|
|
1810
1821
|
{
|
|
1811
1822
|
...f("chat/input_box/textarea"),
|
|
1812
|
-
onPaste:
|
|
1823
|
+
onPaste: P,
|
|
1813
1824
|
ref: o,
|
|
1814
1825
|
id: "chat-input",
|
|
1815
1826
|
value: a,
|
|
@@ -1825,9 +1836,9 @@ function No() {
|
|
|
1825
1836
|
// 16px on mobiles prevents auto-zoom on the input when focused
|
|
1826
1837
|
e ? "text-[16px]" : "text-sm"
|
|
1827
1838
|
),
|
|
1828
|
-
onChange: (
|
|
1829
|
-
onKeyDown: async (
|
|
1830
|
-
|
|
1839
|
+
onChange: (g) => l(g.target.value),
|
|
1840
|
+
onKeyDown: async (g) => {
|
|
1841
|
+
g.key === "Enter" && !g.shiftKey && (g.preventDefault(), R());
|
|
1831
1842
|
},
|
|
1832
1843
|
placeholder: i("write_a_message_placeholder")
|
|
1833
1844
|
}
|
|
@@ -1845,13 +1856,13 @@ function No() {
|
|
|
1845
1856
|
children: /* @__PURE__ */ r(
|
|
1846
1857
|
N,
|
|
1847
1858
|
{
|
|
1848
|
-
onClick:
|
|
1859
|
+
onClick: T,
|
|
1849
1860
|
size: "fit",
|
|
1850
1861
|
variant: "ghost",
|
|
1851
1862
|
className: m(
|
|
1852
1863
|
"rounded-full size-8 flex items-center justify-center p-0 overflow-hidden"
|
|
1853
1864
|
),
|
|
1854
|
-
children: /* @__PURE__ */ r(
|
|
1865
|
+
children: /* @__PURE__ */ r(M, { mode: "wait", children: I ? /* @__PURE__ */ r(k, { children: /* @__PURE__ */ r(dt, { className: "size-4 opacity-50" }) }, "paper-clip-disabled") : /* @__PURE__ */ r(k, { children: /* @__PURE__ */ r(dt, { className: "size-4" }) }, "paper-clip") })
|
|
1855
1866
|
}
|
|
1856
1867
|
)
|
|
1857
1868
|
}
|
|
@@ -1860,10 +1871,10 @@ function No() {
|
|
|
1860
1871
|
N,
|
|
1861
1872
|
{
|
|
1862
1873
|
size: "fit",
|
|
1863
|
-
onClick:
|
|
1864
|
-
disabled:
|
|
1874
|
+
onClick: R,
|
|
1875
|
+
disabled: I || u || S,
|
|
1865
1876
|
className: "rounded-full size-8 flex items-center justify-center p-0",
|
|
1866
|
-
children: /* @__PURE__ */ r(
|
|
1877
|
+
children: /* @__PURE__ */ r(M, { mode: "wait", children: I || u ? /* @__PURE__ */ r(k, { snapExit: !0, children: /* @__PURE__ */ r(Ir, { className: "size-4 animate-spin animate-iteration-infinite" }) }, "loading") : /* @__PURE__ */ r(k, { snapExit: !0, children: /* @__PURE__ */ r(Dt, { className: "size-4" }) }, "send") })
|
|
1867
1878
|
}
|
|
1868
1879
|
) })
|
|
1869
1880
|
] })
|
|
@@ -1875,14 +1886,14 @@ function No() {
|
|
|
1875
1886
|
);
|
|
1876
1887
|
}
|
|
1877
1888
|
function vt() {
|
|
1878
|
-
const { widgetCtx: e } = O(), { router: o } =
|
|
1879
|
-
return /* @__PURE__ */ r(
|
|
1889
|
+
const { widgetCtx: e } = O(), { router: o } = z(), { canCreateNewSession: t } = U(), { toSessionsScreen: n } = H(), { t: s } = V();
|
|
1890
|
+
return /* @__PURE__ */ r(J, { children: t || o != null && o.chatScreenOnly ? /* @__PURE__ */ r(N, { onClick: e.resetChat, className: "rounded-2xl w-full", children: s("new_conversation") }) : /* @__PURE__ */ r(N, { onClick: n, className: "rounded-2xl w-full", children: s("back_to_conversations") }) });
|
|
1880
1891
|
}
|
|
1881
1892
|
function So() {
|
|
1882
|
-
const { t: e } =
|
|
1883
|
-
return /* @__PURE__ */ r("div", { className: "p-2", children: /* @__PURE__ */ r("div", { className: "p-2 bg-muted rounded-3xl", children: /* @__PURE__ */ r(
|
|
1893
|
+
const { t: e } = V(), { isCsatRequested: o, isCsatSubmitted: t } = Nt();
|
|
1894
|
+
return /* @__PURE__ */ r("div", { className: "p-2", children: /* @__PURE__ */ r("div", { className: "p-2 bg-muted rounded-3xl", children: /* @__PURE__ */ r(M, { mode: "wait", children: o || t ? /* @__PURE__ */ d(W, { children: [
|
|
1884
1895
|
/* @__PURE__ */ r(ko, {}),
|
|
1885
|
-
/* @__PURE__ */ r(
|
|
1896
|
+
/* @__PURE__ */ r(M, { mode: "wait", children: t && /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r(vt, {}) }, "new-conv-or-back-to-convs-button") })
|
|
1886
1897
|
] }, "csat") : /* @__PURE__ */ d(W, { children: [
|
|
1887
1898
|
/* @__PURE__ */ d("div", { className: "ps-2 flex items-center gap-1 pb-2", children: [
|
|
1888
1899
|
/* @__PURE__ */ r(Mt, { className: "size-4 text-emerald-600" }),
|
|
@@ -1893,8 +1904,8 @@ function So() {
|
|
|
1893
1904
|
}
|
|
1894
1905
|
function _o() {
|
|
1895
1906
|
var a;
|
|
1896
|
-
const { initialQuestions: e, initialQuestionsPosition: o, thisWasHelpfulOrNot: t } =
|
|
1897
|
-
return /* @__PURE__ */ r("footer", { children: /* @__PURE__ */ r(
|
|
1907
|
+
const { initialQuestions: e, initialQuestionsPosition: o, thisWasHelpfulOrNot: t } = z(), { sessionState: n } = U(), { messagesState: s } = A(), i = s.messages.length === 0;
|
|
1908
|
+
return /* @__PURE__ */ r("footer", { children: /* @__PURE__ */ r(M, { mode: "wait", children: n.session && !((a = n.session) != null && a.isOpened) ? /* @__PURE__ */ d(W, { children: [
|
|
1898
1909
|
/* @__PURE__ */ r(So, {}),
|
|
1899
1910
|
/* @__PURE__ */ r(xt, {})
|
|
1900
1911
|
] }, "session-closed") : /* @__PURE__ */ d(W, { children: [
|
|
@@ -1958,7 +1969,7 @@ function Qt({
|
|
|
1958
1969
|
containerClassName: t
|
|
1959
1970
|
}) {
|
|
1960
1971
|
var a, l;
|
|
1961
|
-
const { timestamps: n } =
|
|
1972
|
+
const { timestamps: n } = z();
|
|
1962
1973
|
if (!((a = n == null ? void 0 : n.perMessageGroup) != null && a.enabled))
|
|
1963
1974
|
return null;
|
|
1964
1975
|
const s = (l = e[e.length - 1]) == null ? void 0 : l.timestamp;
|
|
@@ -2053,7 +2064,7 @@ function pe({
|
|
|
2053
2064
|
}
|
|
2054
2065
|
function To() {
|
|
2055
2066
|
var t, n;
|
|
2056
|
-
const e =
|
|
2067
|
+
const e = X();
|
|
2057
2068
|
if ((t = e.session) != null && t.isOpened || !e.session) return null;
|
|
2058
2069
|
const o = (n = e.config.customComponents) == null ? void 0 : n.onSessionResolved;
|
|
2059
2070
|
return o ? /* @__PURE__ */ r(o, { ...e }) : null;
|
|
@@ -2152,8 +2163,8 @@ function Oo() {
|
|
|
2152
2163
|
initialQuestionsPosition: t,
|
|
2153
2164
|
initialQuestions: n,
|
|
2154
2165
|
bot: s
|
|
2155
|
-
} =
|
|
2156
|
-
return /* @__PURE__ */ r(
|
|
2166
|
+
} = z();
|
|
2167
|
+
return /* @__PURE__ */ r(J, { children: e.length === 0 && o.length > 0 && /* @__PURE__ */ r(
|
|
2157
2168
|
pe,
|
|
2158
2169
|
{
|
|
2159
2170
|
messages: o.map(
|
|
@@ -2173,7 +2184,7 @@ function Oo() {
|
|
|
2173
2184
|
function Ao() {
|
|
2174
2185
|
const {
|
|
2175
2186
|
messagesState: { messages: e }
|
|
2176
|
-
} = A(), { chatBannerItems: o } =
|
|
2187
|
+
} = A(), { chatBannerItems: o } = z();
|
|
2177
2188
|
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(
|
|
2178
2189
|
({ message: t, persistent: n }, s) => e.length > 0 && !n ? null : /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(Se, { children: t }) }, `${t}-${s}`)
|
|
2179
2190
|
) });
|
|
@@ -2181,7 +2192,7 @@ function Ao() {
|
|
|
2181
2192
|
function Fo() {
|
|
2182
2193
|
const {
|
|
2183
2194
|
messagesState: { messages: e }
|
|
2184
|
-
} = A(), o =
|
|
2195
|
+
} = A(), o = z(), {
|
|
2185
2196
|
advancedInitialMessages: t = [],
|
|
2186
2197
|
initialQuestions: n,
|
|
2187
2198
|
initialQuestionsPosition: s
|
|
@@ -2189,7 +2200,7 @@ function Fo() {
|
|
|
2189
2200
|
var a;
|
|
2190
2201
|
return t.length ? [] : e.length ? [] : (a = o.initialMessages) != null && a.length ? o.initialMessages : ["Hello, how can I help you?"];
|
|
2191
2202
|
})();
|
|
2192
|
-
return /* @__PURE__ */ r(
|
|
2203
|
+
return /* @__PURE__ */ r(J, { children: e.length === 0 && i.length > 0 && /* @__PURE__ */ r(
|
|
2193
2204
|
pe,
|
|
2194
2205
|
{
|
|
2195
2206
|
messages: i.map(
|
|
@@ -2208,13 +2219,13 @@ function Fo() {
|
|
|
2208
2219
|
}
|
|
2209
2220
|
function Ho() {
|
|
2210
2221
|
var t;
|
|
2211
|
-
const e =
|
|
2222
|
+
const e = X(), o = (t = e.config.customComponents) == null ? void 0 : t.chatBottomComponents;
|
|
2212
2223
|
return o ? /* @__PURE__ */ r("div", { children: o.map(({ key: n, component: s }) => /* @__PURE__ */ r(s, { ...e }, n)) }) : null;
|
|
2213
2224
|
}
|
|
2214
2225
|
function Wo() {
|
|
2215
2226
|
const {
|
|
2216
2227
|
messagesState: { messages: e }
|
|
2217
|
-
} = A(), { isAwaitingBotReply: o } = St(), { componentStore: t } = O(), { bot: n, humanAgent: s } =
|
|
2228
|
+
} = A(), { isAwaitingBotReply: o } = St(), { componentStore: t } = O(), { bot: n, humanAgent: s } = z(), i = Ct(
|
|
2218
2229
|
() => Eo(e),
|
|
2219
2230
|
[e]
|
|
2220
2231
|
), a = t.getComponent(
|
|
@@ -2238,25 +2249,25 @@ function Wo() {
|
|
|
2238
2249
|
/* @__PURE__ */ r(Ao, {}),
|
|
2239
2250
|
/* @__PURE__ */ r(Oo, {}),
|
|
2240
2251
|
/* @__PURE__ */ r(Fo, {}),
|
|
2241
|
-
i.map((p,
|
|
2242
|
-
var
|
|
2243
|
-
const
|
|
2244
|
-
if (!
|
|
2252
|
+
i.map((p, v) => {
|
|
2253
|
+
var h, x, C, I;
|
|
2254
|
+
const b = (h = p == null ? void 0 : p[0]) == null ? void 0 : h.type, u = (x = p[0]) == null ? void 0 : x.id;
|
|
2255
|
+
if (!b || !u) return null;
|
|
2245
2256
|
if (Ro(p))
|
|
2246
|
-
return /* @__PURE__ */ r(Do, { messages: p },
|
|
2257
|
+
return /* @__PURE__ */ r(Do, { messages: p }, u);
|
|
2247
2258
|
if (Po(p)) {
|
|
2248
|
-
const y =
|
|
2249
|
-
return o && y ? null : ((
|
|
2259
|
+
const y = v === i.length - 1;
|
|
2260
|
+
return o && y ? null : ((C = p[0]) == null || C.agent, /* @__PURE__ */ r(
|
|
2250
2261
|
pe,
|
|
2251
2262
|
{
|
|
2252
2263
|
messages: p,
|
|
2253
2264
|
agent: n ? { ...n, isAi: !0, id: null } : void 0
|
|
2254
2265
|
},
|
|
2255
|
-
|
|
2266
|
+
u
|
|
2256
2267
|
));
|
|
2257
2268
|
}
|
|
2258
2269
|
if (jo(p)) {
|
|
2259
|
-
const y = (
|
|
2270
|
+
const y = (I = p[0]) == null ? void 0 : I.agent;
|
|
2260
2271
|
return /* @__PURE__ */ r(
|
|
2261
2272
|
pe,
|
|
2262
2273
|
{
|
|
@@ -2272,7 +2283,7 @@ function Wo() {
|
|
|
2272
2283
|
avatarUrl: s.avatarUrl || null
|
|
2273
2284
|
} : void 0
|
|
2274
2285
|
},
|
|
2275
|
-
|
|
2286
|
+
u
|
|
2276
2287
|
);
|
|
2277
2288
|
}
|
|
2278
2289
|
return null;
|
|
@@ -2289,7 +2300,7 @@ function Lo() {
|
|
|
2289
2300
|
messagesState: { isInitialFetchLoading: e }
|
|
2290
2301
|
} = A(), {
|
|
2291
2302
|
sessionState: { session: o }
|
|
2292
|
-
} = U(), { isCanvasOpen: t } = vo(), { theme: n } =
|
|
2303
|
+
} = U(), { isCanvasOpen: t } = vo(), { theme: n } = K();
|
|
2293
2304
|
Me({
|
|
2294
2305
|
width: t ? n.screens.chat.withCanvas.width : n.screens.chat.width,
|
|
2295
2306
|
height: t ? n.screens.chat.withCanvas.height : n.screens.chat.height
|
|
@@ -2312,7 +2323,7 @@ function Lo() {
|
|
|
2312
2323
|
},
|
|
2313
2324
|
children: /* @__PURE__ */ d("div", { className: "size-full justify-between flex flex-col", children: [
|
|
2314
2325
|
/* @__PURE__ */ r(Zt, {}),
|
|
2315
|
-
/* @__PURE__ */ r(
|
|
2326
|
+
/* @__PURE__ */ r(M, { mode: "wait", children: e ? /* @__PURE__ */ r(
|
|
2316
2327
|
k,
|
|
2317
2328
|
{
|
|
2318
2329
|
className: "flex flex-col items-center justify-center w-full flex-1",
|
|
@@ -2399,7 +2410,7 @@ function Bo({ className: e }) {
|
|
|
2399
2410
|
);
|
|
2400
2411
|
}
|
|
2401
2412
|
function Jt({ className: e }) {
|
|
2402
|
-
const { token: o } =
|
|
2413
|
+
const { token: o } = z();
|
|
2403
2414
|
return /* @__PURE__ */ r(
|
|
2404
2415
|
"div",
|
|
2405
2416
|
{
|
|
@@ -2438,7 +2449,7 @@ function bt({
|
|
|
2438
2449
|
session: e,
|
|
2439
2450
|
className: o
|
|
2440
2451
|
}) {
|
|
2441
|
-
const { bot: t, humanAgent: n } =
|
|
2452
|
+
const { bot: t, humanAgent: n } = z(), { toChatScreen: s } = H(), i = e.assignee.kind === "human" ? (n == null ? void 0 : n.name) || e.assignee.name || "Support Agent" : (t == null ? void 0 : t.name) || "AI Support Agent", a = e.assignee.kind === "human" ? (n == null ? void 0 : n.avatarUrl) || e.assignee.avatarUrl || "" : (t == null ? void 0 : t.avatarUrl) || (t == null ? void 0 : t.avatar) || "";
|
|
2442
2453
|
return /* @__PURE__ */ d(
|
|
2443
2454
|
N,
|
|
2444
2455
|
{
|
|
@@ -2451,13 +2462,13 @@ function bt({
|
|
|
2451
2462
|
onClick: () => s(e.id),
|
|
2452
2463
|
children: [
|
|
2453
2464
|
/* @__PURE__ */ d("div", { className: "flex-1 flex gap-2 items-center", children: [
|
|
2454
|
-
/* @__PURE__ */ r(
|
|
2465
|
+
/* @__PURE__ */ r(M, { mode: "wait", children: /* @__PURE__ */ r(k, { snapExit: !0, children: /* @__PURE__ */ d(_e, { className: "size-10", children: [
|
|
2455
2466
|
/* @__PURE__ */ r(Ie, { src: a, alt: "Agent Icon" }),
|
|
2456
2467
|
/* @__PURE__ */ r(Te, { children: /* @__PURE__ */ r(Pr, { className: "size-4" }) })
|
|
2457
2468
|
] }) }) }),
|
|
2458
2469
|
/* @__PURE__ */ d("div", { className: "flex-1", children: [
|
|
2459
|
-
/* @__PURE__ */ r(
|
|
2460
|
-
/* @__PURE__ */ r(
|
|
2470
|
+
/* @__PURE__ */ r(M, { mode: "wait", children: /* @__PURE__ */ r(k, { snapExit: !0, children: i }, i) }),
|
|
2471
|
+
/* @__PURE__ */ r(M, { mode: "wait", children: e.lastMessage ? /* @__PURE__ */ r(k, { snapExit: !0, children: /* @__PURE__ */ r(
|
|
2461
2472
|
Yt,
|
|
2462
2473
|
{
|
|
2463
2474
|
remarkPlugins: [Et],
|
|
@@ -2474,13 +2485,13 @@ function bt({
|
|
|
2474
2485
|
);
|
|
2475
2486
|
}
|
|
2476
2487
|
function Uo() {
|
|
2477
|
-
const { t: e } =
|
|
2488
|
+
const { t: e } = V(), { toChatScreen: o } = H(), {
|
|
2478
2489
|
sessionsState: { data: t, isInitialFetchLoading: n },
|
|
2479
2490
|
openSessions: s,
|
|
2480
2491
|
closedSessions: i,
|
|
2481
2492
|
canCreateNewSession: a
|
|
2482
2493
|
} = U();
|
|
2483
|
-
return /* @__PURE__ */ r("div", { className: "flex-1 flex flex-col overflow-scroll py-2 px-2", children: /* @__PURE__ */ r(
|
|
2494
|
+
return /* @__PURE__ */ r("div", { className: "flex-1 flex flex-col overflow-scroll py-2 px-2", children: /* @__PURE__ */ r(M, { mode: "wait", children: n ? /* @__PURE__ */ r(
|
|
2484
2495
|
k,
|
|
2485
2496
|
{
|
|
2486
2497
|
className: "flex-1 flex items-center justify-center",
|
|
@@ -2491,8 +2502,8 @@ function Uo() {
|
|
|
2491
2502
|
k,
|
|
2492
2503
|
{
|
|
2493
2504
|
className: "flex-1 flex flex-col gap-2 relative",
|
|
2494
|
-
children: t.length ? /* @__PURE__ */ d(
|
|
2495
|
-
/* @__PURE__ */ d(
|
|
2505
|
+
children: t.length ? /* @__PURE__ */ d(J, { children: [
|
|
2506
|
+
/* @__PURE__ */ d(M, { children: [
|
|
2496
2507
|
s.length > 0 && /* @__PURE__ */ r(
|
|
2497
2508
|
k,
|
|
2498
2509
|
{
|
|
@@ -2555,7 +2566,7 @@ function Uo() {
|
|
|
2555
2566
|
) }) });
|
|
2556
2567
|
}
|
|
2557
2568
|
function Xo() {
|
|
2558
|
-
const { theme: e } =
|
|
2569
|
+
const { theme: e } = K();
|
|
2559
2570
|
return Me({
|
|
2560
2571
|
width: e.screens.sessions.width,
|
|
2561
2572
|
height: e.screens.sessions.height
|
|
@@ -2582,7 +2593,7 @@ function Xo() {
|
|
|
2582
2593
|
}
|
|
2583
2594
|
);
|
|
2584
2595
|
}
|
|
2585
|
-
const de =
|
|
2596
|
+
const de = ee.forwardRef(
|
|
2586
2597
|
({ className: e, type: o, ...t }, n) => {
|
|
2587
2598
|
const { isSmallScreen: s } = $();
|
|
2588
2599
|
return /* @__PURE__ */ r(
|
|
@@ -2605,7 +2616,7 @@ const de = J.forwardRef(
|
|
|
2605
2616
|
);
|
|
2606
2617
|
de.displayName = "Input";
|
|
2607
2618
|
function qo() {
|
|
2608
|
-
const { contentIframeRef: e } = O(), { inline: o } =
|
|
2619
|
+
const { contentIframeRef: e } = O(), { inline: o } = z(), t = B(null);
|
|
2609
2620
|
return se(() => {
|
|
2610
2621
|
const n = e == null ? void 0 : e.current;
|
|
2611
2622
|
if (n && t.current) {
|
|
@@ -2626,35 +2637,35 @@ function qo() {
|
|
|
2626
2637
|
}
|
|
2627
2638
|
}, [e, o]), { observedElementRef: t };
|
|
2628
2639
|
}
|
|
2629
|
-
const Vo =
|
|
2630
|
-
name:
|
|
2631
|
-
email:
|
|
2640
|
+
const Vo = ue.object({
|
|
2641
|
+
name: ue.string().min(2),
|
|
2642
|
+
email: ue.string().email()
|
|
2632
2643
|
});
|
|
2633
2644
|
function Go() {
|
|
2634
|
-
var y,
|
|
2645
|
+
var y, S, R, j, w, T, P, D;
|
|
2635
2646
|
const {
|
|
2636
2647
|
widgetCtx: { org: e }
|
|
2637
|
-
} = O(), { setIsOpen: o } =
|
|
2648
|
+
} = O(), { setIsOpen: o } = Z(), { createUnverifiedContact: t } = _t(), { isSmallScreen: n } = $(), s = z(), { theme: i } = K(), { t: a } = V(), { observedElementRef: l } = qo();
|
|
2638
2649
|
Me({
|
|
2639
2650
|
height: void 0,
|
|
2640
2651
|
width: i.screens.welcome.width
|
|
2641
2652
|
});
|
|
2642
|
-
const [c, p] =
|
|
2643
|
-
(
|
|
2644
|
-
), [
|
|
2645
|
-
async (
|
|
2646
|
-
|
|
2647
|
-
const
|
|
2648
|
-
|
|
2653
|
+
const [c, p] = E(((y = s.prefillUserData) == null ? void 0 : y.name) || ""), [v, b] = E(((S = s.prefillUserData) == null ? void 0 : S.email) || ""), u = (s.extraDataCollectionFields || []).filter(
|
|
2654
|
+
(g) => g !== "name" && g !== "email" && !!g
|
|
2655
|
+
), [h, x] = E({}), [C, I] = Xr(
|
|
2656
|
+
async (g) => {
|
|
2657
|
+
g.preventDefault();
|
|
2658
|
+
const _ = Vo.safeParse({ name: c, email: v });
|
|
2659
|
+
_.success && await t(
|
|
2649
2660
|
{
|
|
2650
|
-
email:
|
|
2651
|
-
non_verified_name:
|
|
2661
|
+
email: _.data.email,
|
|
2662
|
+
non_verified_name: _.data.name
|
|
2652
2663
|
},
|
|
2653
2664
|
// Only pass extra data if there is any
|
|
2654
|
-
Object.values(
|
|
2665
|
+
Object.values(h).filter(Boolean).length ? h : void 0
|
|
2655
2666
|
);
|
|
2656
2667
|
},
|
|
2657
|
-
[c,
|
|
2668
|
+
[c, v, h]
|
|
2658
2669
|
);
|
|
2659
2670
|
return /* @__PURE__ */ r(
|
|
2660
2671
|
"div",
|
|
@@ -2690,7 +2701,7 @@ function Go() {
|
|
|
2690
2701
|
),
|
|
2691
2702
|
children: [
|
|
2692
2703
|
n && /* @__PURE__ */ r(k, { className: "absolute top-6 end-6", children: /* @__PURE__ */ r(N, { size: "selfless", onClick: () => o(!1), children: /* @__PURE__ */ r(Ce, { className: "size-4" }) }) }),
|
|
2693
|
-
/* @__PURE__ */ r("div", { className: "flex items-center justify-between w-full mb-2", children: (
|
|
2704
|
+
/* @__PURE__ */ r("div", { className: "flex items-center justify-between w-full mb-2", children: (R = s.assets) != null && R.organizationLogo ? /* @__PURE__ */ r(
|
|
2694
2705
|
"img",
|
|
2695
2706
|
{
|
|
2696
2707
|
src: (j = s.assets) == null ? void 0 : j.organizationLogo,
|
|
@@ -2699,8 +2710,8 @@ function Go() {
|
|
|
2699
2710
|
}
|
|
2700
2711
|
) : /* @__PURE__ */ r("h2", { className: "font-bold text-sm", children: e.name }) }),
|
|
2701
2712
|
/* @__PURE__ */ d("div", { className: "space-y-2", children: [
|
|
2702
|
-
/* @__PURE__ */ r("h1", { className: "text-[1.75rem] font-semibold tracking-tight leading-none", children: ((
|
|
2703
|
-
/* @__PURE__ */ r("p", { className: "text-sm", children: ((
|
|
2713
|
+
/* @__PURE__ */ r("h1", { className: "text-[1.75rem] font-semibold tracking-tight leading-none", children: ((T = (w = s.textContent) == null ? void 0 : w.welcomeScreen) == null ? void 0 : T.title) || a("welcome_screen_title") }),
|
|
2714
|
+
/* @__PURE__ */ r("p", { className: "text-sm", children: ((D = (P = s.textContent) == null ? void 0 : P.welcomeScreen) == null ? void 0 : D.description) || a("welcome_screen_description") })
|
|
2704
2715
|
] })
|
|
2705
2716
|
]
|
|
2706
2717
|
}
|
|
@@ -2715,12 +2726,12 @@ function Go() {
|
|
|
2715
2726
|
"rounded-3xl"
|
|
2716
2727
|
),
|
|
2717
2728
|
children: [
|
|
2718
|
-
/* @__PURE__ */ d("form", { onSubmit:
|
|
2729
|
+
/* @__PURE__ */ d("form", { onSubmit: I, className: "space-y-2", children: [
|
|
2719
2730
|
/* @__PURE__ */ r(
|
|
2720
2731
|
de,
|
|
2721
2732
|
{
|
|
2722
2733
|
value: c,
|
|
2723
|
-
onChange: (
|
|
2734
|
+
onChange: (g) => p(g.target.value),
|
|
2724
2735
|
required: !0,
|
|
2725
2736
|
placeholder: a("your_name_placeholder"),
|
|
2726
2737
|
name: "name"
|
|
@@ -2730,33 +2741,33 @@ function Go() {
|
|
|
2730
2741
|
de,
|
|
2731
2742
|
{
|
|
2732
2743
|
required: !0,
|
|
2733
|
-
value:
|
|
2734
|
-
onChange: (
|
|
2744
|
+
value: v,
|
|
2745
|
+
onChange: (g) => b(g.target.value),
|
|
2735
2746
|
type: "email",
|
|
2736
2747
|
placeholder: a("your_email_placeholder"),
|
|
2737
2748
|
name: "email"
|
|
2738
2749
|
}
|
|
2739
2750
|
),
|
|
2740
|
-
|
|
2751
|
+
u.map((g) => /* @__PURE__ */ r(
|
|
2741
2752
|
de,
|
|
2742
2753
|
{
|
|
2743
|
-
value:
|
|
2744
|
-
onChange: (
|
|
2754
|
+
value: h[g],
|
|
2755
|
+
onChange: (_) => x((ie) => ({
|
|
2745
2756
|
...ie,
|
|
2746
|
-
[
|
|
2757
|
+
[g]: _.target.value
|
|
2747
2758
|
})),
|
|
2748
|
-
placeholder: `${
|
|
2759
|
+
placeholder: `${g} (${a("optional")})`
|
|
2749
2760
|
},
|
|
2750
|
-
|
|
2761
|
+
g
|
|
2751
2762
|
)),
|
|
2752
2763
|
/* @__PURE__ */ d(
|
|
2753
2764
|
N,
|
|
2754
2765
|
{
|
|
2755
|
-
disabled:
|
|
2766
|
+
disabled: C.loading,
|
|
2756
2767
|
className: "w-full",
|
|
2757
2768
|
size: "lg",
|
|
2758
2769
|
children: [
|
|
2759
|
-
|
|
2770
|
+
C.loading ? a("start_chat_button_loading") : a("start_chat_button"),
|
|
2760
2771
|
/* @__PURE__ */ r(Or, { className: "size-4 rtl:-scale-100" })
|
|
2761
2772
|
]
|
|
2762
2773
|
}
|
|
@@ -2776,7 +2787,7 @@ function er() {
|
|
|
2776
2787
|
const {
|
|
2777
2788
|
routerState: { screen: e }
|
|
2778
2789
|
} = H();
|
|
2779
|
-
return /* @__PURE__ */ r("div", { className: "relative bg-background size-full", children: /* @__PURE__ */ r(
|
|
2790
|
+
return /* @__PURE__ */ r("div", { className: "relative bg-background size-full", children: /* @__PURE__ */ r(M, { mode: "wait", children: (() => {
|
|
2780
2791
|
switch (e) {
|
|
2781
2792
|
case "welcome":
|
|
2782
2793
|
return /* @__PURE__ */ r(
|
|
@@ -2816,7 +2827,7 @@ function er() {
|
|
|
2816
2827
|
}
|
|
2817
2828
|
})() }) });
|
|
2818
2829
|
}
|
|
2819
|
-
const Zo = "4.0.
|
|
2830
|
+
const Zo = "4.0.56", Ko = `<!DOCTYPE html>
|
|
2820
2831
|
<html>
|
|
2821
2832
|
<head>
|
|
2822
2833
|
<style>
|
|
@@ -2835,7 +2846,7 @@ html, body {
|
|
|
2835
2846
|
</body>
|
|
2836
2847
|
</html>`;
|
|
2837
2848
|
function tr() {
|
|
2838
|
-
const { isOpen: e } =
|
|
2849
|
+
const { isOpen: e } = Z(), { contentIframeRef: o } = O(), { cssOverrides: t, inline: n } = z(), { theme: s, cssVars: i, computed: a } = K(), { dir: l } = V();
|
|
2839
2850
|
return /* @__PURE__ */ r(
|
|
2840
2851
|
re.div,
|
|
2841
2852
|
{
|
|
@@ -2918,7 +2929,7 @@ function tr() {
|
|
|
2918
2929
|
);
|
|
2919
2930
|
}
|
|
2920
2931
|
function Qo() {
|
|
2921
|
-
const { theme: e } =
|
|
2932
|
+
const { theme: e } = K();
|
|
2922
2933
|
return /* @__PURE__ */ r(
|
|
2923
2934
|
me.Content,
|
|
2924
2935
|
{
|
|
@@ -2992,20 +3003,20 @@ html, body {
|
|
|
2992
3003
|
</body>
|
|
2993
3004
|
</html>`;
|
|
2994
3005
|
function tn() {
|
|
2995
|
-
var p,
|
|
2996
|
-
const { isOpen: e, setIsOpen: o } =
|
|
3006
|
+
var p, v, b;
|
|
3007
|
+
const { isOpen: e, setIsOpen: o } = Z(), { cssOverrides: t, assets: n, customComponents: s, accessibility: i } = z(), { theme: a, cssVars: l } = K(), c = ((p = i == null ? void 0 : i.widgetTriggerButton) == null ? void 0 : p.label) ?? "Chat with us";
|
|
2997
3008
|
return s != null && s.widgetTrigger ? s.widgetTrigger({
|
|
2998
3009
|
react: L,
|
|
2999
3010
|
isOpen: e,
|
|
3000
|
-
setIsOpen: (
|
|
3011
|
+
setIsOpen: (u) => o(u)
|
|
3001
3012
|
}) : /* @__PURE__ */ d(
|
|
3002
3013
|
Pt,
|
|
3003
3014
|
{
|
|
3004
3015
|
initialContent: en,
|
|
3005
3016
|
title: "OpenCX Live Chat Trigger",
|
|
3006
3017
|
style: {
|
|
3007
|
-
height: `calc(${a.widgetTrigger.size.button}px + ${
|
|
3008
|
-
width: `calc(${a.widgetTrigger.size.button}px + ${
|
|
3018
|
+
height: `calc(${a.widgetTrigger.size.button}px + ${Q.x * 2}px)`,
|
|
3019
|
+
width: `calc(${a.widgetTrigger.size.button}px + ${Q.y * 2}px)`,
|
|
3009
3020
|
fontSize: "16px",
|
|
3010
3021
|
position: "fixed",
|
|
3011
3022
|
zIndex: a.widgetTrigger.zIndex,
|
|
@@ -3055,7 +3066,7 @@ function tn() {
|
|
|
3055
3066
|
"bg-primary",
|
|
3056
3067
|
"text-primary-foreground"
|
|
3057
3068
|
),
|
|
3058
|
-
children: /* @__PURE__ */ r(
|
|
3069
|
+
children: /* @__PURE__ */ r(M, { mode: "wait", children: e ? /* @__PURE__ */ r(
|
|
3059
3070
|
k,
|
|
3060
3071
|
{
|
|
3061
3072
|
snapExit: !0,
|
|
@@ -3064,7 +3075,7 @@ function tn() {
|
|
|
3064
3075
|
initial: { rotate: 45 },
|
|
3065
3076
|
animate: { rotate: 0 }
|
|
3066
3077
|
},
|
|
3067
|
-
children: (
|
|
3078
|
+
children: (v = n == null ? void 0 : n.widgetTrigger) != null && v.closeIcon ? /* @__PURE__ */ r(
|
|
3068
3079
|
"img",
|
|
3069
3080
|
{
|
|
3070
3081
|
src: n.widgetTrigger.closeIcon,
|
|
@@ -3093,7 +3104,7 @@ function tn() {
|
|
|
3093
3104
|
initial: { rotate: 45 },
|
|
3094
3105
|
animate: { rotate: 0 }
|
|
3095
3106
|
},
|
|
3096
|
-
children: (
|
|
3107
|
+
children: (b = n == null ? void 0 : n.widgetTrigger) != null && b.openIcon ? /* @__PURE__ */ r(
|
|
3097
3108
|
"img",
|
|
3098
3109
|
{
|
|
3099
3110
|
src: n.widgetTrigger.openIcon,
|
|
@@ -3143,7 +3154,7 @@ function rn() {
|
|
|
3143
3154
|
function on({
|
|
3144
3155
|
widgetRef: e
|
|
3145
3156
|
}) {
|
|
3146
|
-
const { widgetCtx: o } = O(), { contactState: t } = _t(), { setIsOpen: n, isOpen: s } =
|
|
3157
|
+
const { widgetCtx: o } = O(), { contactState: t } = _t(), { setIsOpen: n, isOpen: s } = Z(), {
|
|
3147
3158
|
toChatScreen: i,
|
|
3148
3159
|
routerState: { screen: a }
|
|
3149
3160
|
} = H(), { sendMessage: l } = A();
|
|
@@ -3171,7 +3182,7 @@ function on({
|
|
|
3171
3182
|
), null;
|
|
3172
3183
|
}
|
|
3173
3184
|
function nn() {
|
|
3174
|
-
const { isOpen: e, setIsOpen: o } =
|
|
3185
|
+
const { isOpen: e, setIsOpen: o } = Z();
|
|
3175
3186
|
return /* @__PURE__ */ d(me.Root, { open: e, onOpenChange: o, children: [
|
|
3176
3187
|
/* @__PURE__ */ r(rn, {}),
|
|
3177
3188
|
/* @__PURE__ */ r(tn, {}),
|