@chaibuilder/sdk 1.2.25 → 1.2.26
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/AddBlocks-l1JENNvq.js +206 -0
- package/dist/AddBlocks-zPPKkeKs.cjs +1 -0
- package/dist/BrandingOptions-DkpqGARR.cjs +1 -0
- package/dist/{BrandingOptions-iTyWpwTs.js → BrandingOptions-udtH5yJs.js} +54 -40
- package/dist/{CanvasArea-dZjng782.js → CanvasArea-h0W-Tyha.js} +324 -340
- package/dist/CanvasArea-zme1r3Zi.cjs +55 -0
- package/dist/Class-PoYusiA5.cjs +1 -0
- package/dist/{Class-ahc3NIbq.js → Class-lGzsNBOK.js} +29 -26
- package/dist/CurrentPage-Hl52iub_.cjs +1 -0
- package/dist/{CurrentPage-Kmfp-kFk.js → CurrentPage-tJUjXWdb.js} +54 -40
- package/dist/Functions-7jnEwJyw.js +15 -0
- package/dist/Functions-N3yhPYKY.cjs +1 -0
- package/dist/ListTree-WvTjY5rr.cjs +1 -0
- package/dist/{ListTree-N3jeD790.js → ListTree-cZ-Ihlt3.js} +96 -86
- package/dist/MODIFIERS-0g14w5RS.cjs +1 -0
- package/dist/{MODIFIERS-CNqNUapY.js → MODIFIERS-dytZ-osO.js} +4 -10
- package/dist/PagesPanel-6rrLXEO-.js +64 -0
- package/dist/PagesPanel-WzCocl6u.cjs +1 -0
- package/dist/ProjectPanel-o7gdcwPn.cjs +1 -0
- package/dist/ProjectPanel-tz3bjdXy.js +85 -0
- package/dist/{STRINGS-b432aBJJ.js → STRINGS--j49GZJP.js} +2 -2
- package/dist/{Settings-jCcd-VE6.js → Settings-4s2LUVmC.js} +401 -407
- package/dist/Settings-AqoKwR92.cjs +1 -0
- package/dist/SidePanels-3o6Okmvu.cjs +1 -0
- package/dist/{SidePanels-pHMYprpW.js → SidePanels-bugFfInz.js} +118 -108
- package/dist/Topbar-CqW7G360.cjs +1 -0
- package/dist/Topbar-pWzBEOed.js +132 -0
- package/dist/UnsplashImages-NGskB93R.cjs +1 -0
- package/dist/{UnsplashImages-L7x_3RQf.js → UnsplashImages-qvwFbV-E.js} +63 -50
- package/dist/{UploadImages-zdEJRLD8.js → UploadImages-9NapgXBq.js} +60 -37
- package/dist/UploadImages-Oh7Glr9A.cjs +1 -0
- package/dist/_commonjsHelpers-UyOWmZb0.js +8 -0
- package/dist/_commonjsHelpers-wDK0ZLPo.cjs +1 -0
- package/dist/add-page-modal--6TTBRYa.cjs +1 -0
- package/dist/add-page-modal-k2Kb92HS.js +104 -0
- package/dist/confirm-alert-C4M9eF-o.cjs +1 -0
- package/dist/confirm-alert-GUhZ_G8w.js +60 -0
- package/dist/controls-KK2oLIa8.cjs +1 -0
- package/dist/{controls-IS5qnRce.js → controls-OfJWSEqC.js} +85 -20
- package/dist/core.cjs +1 -1
- package/dist/core.js +75 -150
- package/dist/defaultTheme-7VqqhOcp.cjs +1 -0
- package/dist/{defaultTheme-4kA60XdB.js → defaultTheme-D8B4-wHO.js} +8 -6
- package/dist/delete-page-modal-cFoL-wdo.cjs +1 -0
- package/dist/delete-page-modal-zONvdebd.js +83 -0
- package/dist/email-blocks.cjs +1 -1
- package/dist/email-blocks.js +292 -3
- package/dist/email.cjs +1 -1
- package/dist/email.js +37 -18
- package/dist/empty-slot-ZBlsQi6m.js +15 -0
- package/dist/empty-slot-nzYOgZuS.cjs +1 -0
- package/dist/{form-0_RLz2TB.js → form-STUz-6nE.js} +12 -12
- package/dist/form-lBQ_76Uw.cjs +1 -0
- package/dist/{html-to-json-uSnxl72F.cjs → html-to-json-efmv1pCj.cjs} +1 -1
- package/dist/{html-to-json-2xtb7520.js → html-to-json-ngX9ef2u.js} +41 -41
- package/dist/index-Gk6sASBd.js +3080 -0
- package/dist/index-OB199Izc.cjs +206 -0
- package/dist/index-SkyM3d6Q.js +39503 -0
- package/dist/index-YpnaudSM.js +63 -0
- package/dist/index-e0c8PmRQ.js +205 -0
- package/dist/index-ecnGWzh9.cjs +1 -0
- package/dist/index-gi1LIOCw.cjs +1 -0
- package/dist/index-h-hd6EvN.cjs +1 -0
- package/dist/index-llTXLDGE.js +2201 -0
- package/dist/index-mbyqq81O.cjs +1 -0
- package/dist/{jsx-runtime-Sp0orL4X.js → jsx-runtime-WbnYoNE9.js} +109 -106
- package/dist/jsx-runtime-Z_BpKhVy.cjs +27 -0
- package/dist/lib.cjs +2 -2
- package/dist/lib.js +66 -62
- package/dist/page-viewer-2kwnKM6v.cjs +1 -0
- package/dist/{page-viewer-NnOwmAmu.js → page-viewer-Pdg9F5Hv.js} +57 -43
- package/dist/project-general-setting-CnNL98NM.cjs +1 -0
- package/dist/{project-general-setting-9ju3TDju.js → project-general-setting-f8Ebsn6K.js} +43 -35
- package/dist/project-seo-setting-mlxL_e2_.cjs +1 -0
- package/dist/{project-seo-setting-36CdUszM.js → project-seo-setting-pX34Qsym.js} +40 -23
- package/dist/render.cjs +1 -1
- package/dist/render.js +14 -13
- package/dist/single-page-detail-XfzrGlzA.cjs +1 -0
- package/dist/{single-page-detail-hD1jKZ8k.js → single-page-detail-dpe5LT0M.js} +74 -66
- package/dist/studio.cjs +1 -1
- package/dist/studio.js +40 -24
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +160 -365
- package/dist/web-blocks.cjs +6 -1
- package/dist/web-blocks.js +1153 -3
- package/package.json +1 -1
- package/dist/AddBlocks-Ol3iIVKa.js +0 -207
- package/dist/AddBlocks-a1c-7Ewz.cjs +0 -1
- package/dist/BrandingOptions-6rnt0UaA.cjs +0 -1
- package/dist/CanvasArea-R4ogF9AT.cjs +0 -55
- package/dist/ChaiBuilderEditor-m30yoOgJ.cjs +0 -163
- package/dist/ChaiBuilderEditor-vP4at00I.js +0 -27974
- package/dist/Class-eieto7e-.cjs +0 -1
- package/dist/Controls-3Cc1XYXg.js +0 -105
- package/dist/Controls-ky25Ebo3.cjs +0 -1
- package/dist/CurrentPage-3gQTH0Zt.cjs +0 -1
- package/dist/Functions-Hvon6AMZ.cjs +0 -1
- package/dist/Functions-NzT2Six_.js +0 -15
- package/dist/ImagesPanel-J1RlG7xG.cjs +0 -1
- package/dist/ImagesPanel-Wb0GF_NA.js +0 -29
- package/dist/ListTree-CZ-mtjZ9.cjs +0 -1
- package/dist/MODIFIERS-o1p3VnpS.cjs +0 -1
- package/dist/PagesPanel-Gi0z6gaf.cjs +0 -1
- package/dist/PagesPanel-u1IB-nRr.js +0 -48
- package/dist/ProjectPanel-EydGZmMW.js +0 -71
- package/dist/ProjectPanel-kiiljG4H.cjs +0 -1
- package/dist/Settings-8ilCSH8b.cjs +0 -1
- package/dist/SidePanels-T36C6Lhc.cjs +0 -1
- package/dist/Topbar-CvWQuspR.cjs +0 -1
- package/dist/Topbar-pbIDUE_B.js +0 -122
- package/dist/UnsplashImages-KBZPd9dv.cjs +0 -1
- package/dist/UploadImages-GkkJVAgG.cjs +0 -1
- package/dist/accordion-oPUeqPCZ.js +0 -42
- package/dist/accordion-ynvFtV_p.cjs +0 -1
- package/dist/add-page-modal-9SGv2hgc.cjs +0 -1
- package/dist/add-page-modal-JCDXZIPW.js +0 -95
- package/dist/alert-dialog-P9xMMB6C.cjs +0 -1
- package/dist/alert-dialog-rypfO5ly.js +0 -64
- package/dist/badge-E-S7CqUt.cjs +0 -1
- package/dist/badge-tEwO7C51.js +0 -23
- package/dist/block-helpers-OKHmRRol.cjs +0 -1
- package/dist/block-helpers-oSFpSsGz.js +0 -23
- package/dist/command-BxR6jaCI.cjs +0 -1
- package/dist/command-Pn3HKDuV.js +0 -97
- package/dist/confirm-alert-uNm0lZ0y.cjs +0 -1
- package/dist/confirm-alert-wR5_VJ1l.js +0 -36
- package/dist/context-menu-8dC9uGXj.js +0 -122
- package/dist/context-menu-IgLbIuth.cjs +0 -1
- package/dist/controls-L7DPvB0m.cjs +0 -1
- package/dist/defaultTheme-mrkeGFGI.cjs +0 -1
- package/dist/delete-page-modal-7KmP1elv.js +0 -67
- package/dist/delete-page-modal-SgfwvfNu.cjs +0 -1
- package/dist/dropdown-menu-El86_9Uo.js +0 -124
- package/dist/dropdown-menu-SiHzqWwZ.cjs +0 -1
- package/dist/form-W58AVUdf.cjs +0 -1
- package/dist/hover-card-KUwpDkW8.cjs +0 -1
- package/dist/hover-card-q138xxXR.js +0 -45
- package/dist/iconBase-gbUAAO2L.cjs +0 -1
- package/dist/iconBase-h4DuR_XT.js +0 -63
- package/dist/index-9MmykVSc.cjs +0 -1
- package/dist/index-hElOGcFr.js +0 -2200
- package/dist/index-lDTsQp7h.js +0 -188
- package/dist/index-rq5Y9ZDy.cjs +0 -1
- package/dist/jsx-runtime-JYMCiFoE.cjs +0 -27
- package/dist/label-KaP7MRrs.js +0 -10
- package/dist/label-tFm8HZdb.cjs +0 -1
- package/dist/link-WbcKdQ9k.cjs +0 -1
- package/dist/link-xuhP-4dN.js +0 -196
- package/dist/page-viewer-Hx5hxHKm.cjs +0 -1
- package/dist/popover-a84pbVhQ.js +0 -23
- package/dist/popover-fKjgcRUx.cjs +0 -1
- package/dist/project-general-setting-FxkwjvJz.cjs +0 -1
- package/dist/project-seo-setting-RU7qiXxb.cjs +0 -1
- package/dist/scroll-area-FiHvy-TZ.cjs +0 -1
- package/dist/scroll-area-ewXbxc3n.js +0 -30
- package/dist/select-7bjg-rr9.cjs +0 -1
- package/dist/select-POGdEDHT.js +0 -75
- package/dist/separator-3Civ-6hb.cjs +0 -1
- package/dist/separator-SctTn0Qi.js +0 -18
- package/dist/single-page-detail-beY0MT1b.cjs +0 -1
- package/dist/skeleton-STeL9VrJ.cjs +0 -1
- package/dist/skeleton-lu8e7q2y.js +0 -239
- package/dist/tabs-_4WbA1cc.cjs +0 -1
- package/dist/tabs-yQ3oGziM.js +0 -106
- package/dist/textarea-1kZEh7ki.cjs +0 -1
- package/dist/textarea-b2QvVhrK.js +0 -73
- package/dist/useAddBlock-8pxOEYIl.cjs +0 -1
- package/dist/useAddBlock-FEKFJNwQ.js +0 -69
- package/dist/useChaiExternalData-fkFgoS80.js +0 -6
- package/dist/useChaiExternalData-rwoAZ6uU.cjs +0 -1
- package/dist/useDarkMode-7i57segK.cjs +0 -1
- package/dist/useDarkMode-8VHJlYyE.js +0 -23
- package/dist/useSelectedBreakpoints-6NK5qd7T.js +0 -10
- package/dist/useSelectedBreakpoints-7ONXb-vN.cjs +0 -1
- package/dist/useStylingState-Iuj84yvc.js +0 -186
- package/dist/useStylingState-OIvJMV6p.cjs +0 -1
- package/dist/useUiLibraries-nCdauJ4N.cjs +0 -1
- package/dist/useUiLibraries-psyWFbNc.js +0 -12
- package/dist/useUpdateBlocksProps-Unn8lUyj.cjs +0 -1
- package/dist/useUpdateBlocksProps-vWcDp-P9.js +0 -23
- package/dist/utils-dze1SGvB.js +0 -6
- package/dist/utils-qK_SjzzV.cjs +0 -1
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import o from "react";
|
|
2
|
+
var h = {
|
|
3
|
+
color: void 0,
|
|
4
|
+
size: void 0,
|
|
5
|
+
className: void 0,
|
|
6
|
+
style: void 0,
|
|
7
|
+
attr: void 0
|
|
8
|
+
}, m = o.createContext && o.createContext(h), c = function() {
|
|
9
|
+
return c = Object.assign || function(e) {
|
|
10
|
+
for (var i, t = 1, s = arguments.length; t < s; t++) {
|
|
11
|
+
i = arguments[t];
|
|
12
|
+
for (var n in i)
|
|
13
|
+
Object.prototype.hasOwnProperty.call(i, n) && (e[n] = i[n]);
|
|
14
|
+
}
|
|
15
|
+
return e;
|
|
16
|
+
}, c.apply(this, arguments);
|
|
17
|
+
}, g = function(e, i) {
|
|
18
|
+
var t = {};
|
|
19
|
+
for (var s in e)
|
|
20
|
+
Object.prototype.hasOwnProperty.call(e, s) && i.indexOf(s) < 0 && (t[s] = e[s]);
|
|
21
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
22
|
+
for (var n = 0, s = Object.getOwnPropertySymbols(e); n < s.length; n++)
|
|
23
|
+
i.indexOf(s[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, s[n]) && (t[s[n]] = e[s[n]]);
|
|
24
|
+
return t;
|
|
25
|
+
};
|
|
26
|
+
function p(e) {
|
|
27
|
+
return e && e.map(function(i, t) {
|
|
28
|
+
return o.createElement(i.tag, c({
|
|
29
|
+
key: t
|
|
30
|
+
}, i.attr), p(i.child));
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
function I(e) {
|
|
34
|
+
return function(i) {
|
|
35
|
+
return o.createElement(b, c({
|
|
36
|
+
attr: c({}, e.attr)
|
|
37
|
+
}, i), p(e.child));
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function b(e) {
|
|
41
|
+
var i = function(t) {
|
|
42
|
+
var s = e.attr, n = e.size, l = e.title, u = g(e, ["attr", "size", "title"]), a = n || t.size || "1em", r;
|
|
43
|
+
return t.className && (r = t.className), e.className && (r = (r ? r + " " : "") + e.className), o.createElement("svg", c({
|
|
44
|
+
stroke: "currentColor",
|
|
45
|
+
fill: "currentColor",
|
|
46
|
+
strokeWidth: "0"
|
|
47
|
+
}, t.attr, s, u, {
|
|
48
|
+
className: r,
|
|
49
|
+
style: c(c({
|
|
50
|
+
color: e.color || t.color
|
|
51
|
+
}, t.style), e.style),
|
|
52
|
+
height: a,
|
|
53
|
+
width: a,
|
|
54
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
55
|
+
}), l && o.createElement("title", null, l), e.children);
|
|
56
|
+
};
|
|
57
|
+
return m !== void 0 ? o.createElement(m.Consumer, null, function(t) {
|
|
58
|
+
return i(t);
|
|
59
|
+
}) : i(h);
|
|
60
|
+
}
|
|
61
|
+
export {
|
|
62
|
+
I as G
|
|
63
|
+
};
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { useState as M, useRef as x, useEffect as C, createElement as o } from "react";
|
|
2
|
+
const O = (e) => typeof e == "boolean" || e instanceof Boolean, T = (e) => typeof e == "number" || e instanceof Number, L = (e) => typeof e == "bigint" || e instanceof BigInt, y = (e) => !!e && e instanceof Date, j = (e) => typeof e == "string" || e instanceof String, B = (e) => Array.isArray(e), D = (e) => e instanceof Object && e !== null;
|
|
3
|
+
function G(e) {
|
|
4
|
+
const [a, l] = M(e());
|
|
5
|
+
return [a, () => l((u) => !u), l];
|
|
6
|
+
}
|
|
7
|
+
let J = 1;
|
|
8
|
+
const R = () => J++;
|
|
9
|
+
function A() {
|
|
10
|
+
const e = x();
|
|
11
|
+
return e.current === void 0 && (e.current = `:jsnvw:${R()}:`), e.current;
|
|
12
|
+
}
|
|
13
|
+
function N(e) {
|
|
14
|
+
let {
|
|
15
|
+
field: a,
|
|
16
|
+
value: l,
|
|
17
|
+
data: t,
|
|
18
|
+
lastElement: u,
|
|
19
|
+
openBracket: s,
|
|
20
|
+
closeBracket: c,
|
|
21
|
+
level: r,
|
|
22
|
+
style: i,
|
|
23
|
+
shouldExpandNode: b,
|
|
24
|
+
clickToExpandNode: _
|
|
25
|
+
} = e;
|
|
26
|
+
const k = x(!1), [d, f, E] = G(() => b(r, l, a));
|
|
27
|
+
C(() => {
|
|
28
|
+
k.current ? E(b(r, l, a)) : k.current = !0;
|
|
29
|
+
}, [b]);
|
|
30
|
+
const I = d ? i.collapseIcon : i.expandIcon, v = d ? "collapse JSON" : "expand JSON", m = A(), S = r + 1, F = t.length - 1, g = (p) => {
|
|
31
|
+
p.key === " " && (p.preventDefault(), f());
|
|
32
|
+
};
|
|
33
|
+
return /* @__PURE__ */ o("div", {
|
|
34
|
+
className: i.basicChildStyle,
|
|
35
|
+
role: "list"
|
|
36
|
+
}, /* @__PURE__ */ o("span", {
|
|
37
|
+
className: I,
|
|
38
|
+
onClick: f,
|
|
39
|
+
onKeyDown: g,
|
|
40
|
+
role: "button",
|
|
41
|
+
tabIndex: 0,
|
|
42
|
+
"aria-label": v,
|
|
43
|
+
"aria-expanded": d,
|
|
44
|
+
"aria-controls": d ? m : void 0
|
|
45
|
+
}), a && (_ ? /* @__PURE__ */ o("span", {
|
|
46
|
+
className: i.clickableLabel,
|
|
47
|
+
onClick: f,
|
|
48
|
+
onKeyDown: g,
|
|
49
|
+
role: "button",
|
|
50
|
+
tabIndex: -1
|
|
51
|
+
}, a, ":") : /* @__PURE__ */ o("span", {
|
|
52
|
+
className: i.label
|
|
53
|
+
}, a, ":")), /* @__PURE__ */ o("span", {
|
|
54
|
+
className: i.punctuation
|
|
55
|
+
}, s), d ? /* @__PURE__ */ o("div", {
|
|
56
|
+
id: m
|
|
57
|
+
}, t.map((p, h) => /* @__PURE__ */ o(V, {
|
|
58
|
+
key: p[0] || h,
|
|
59
|
+
field: p[0],
|
|
60
|
+
value: p[1],
|
|
61
|
+
style: i,
|
|
62
|
+
lastElement: h === F,
|
|
63
|
+
level: S,
|
|
64
|
+
shouldExpandNode: b,
|
|
65
|
+
clickToExpandNode: _
|
|
66
|
+
}))) : /* @__PURE__ */ o("span", {
|
|
67
|
+
className: i.collapsedContent,
|
|
68
|
+
onClick: f,
|
|
69
|
+
onKeyDown: g,
|
|
70
|
+
role: "button",
|
|
71
|
+
tabIndex: -1,
|
|
72
|
+
"aria-hidden": !0,
|
|
73
|
+
"aria-label": v,
|
|
74
|
+
"aria-expanded": d
|
|
75
|
+
}), /* @__PURE__ */ o("span", {
|
|
76
|
+
className: i.punctuation
|
|
77
|
+
}, c), !u && /* @__PURE__ */ o("span", {
|
|
78
|
+
className: i.punctuation
|
|
79
|
+
}, ","));
|
|
80
|
+
}
|
|
81
|
+
function K(e) {
|
|
82
|
+
let {
|
|
83
|
+
field: a,
|
|
84
|
+
value: l,
|
|
85
|
+
style: t,
|
|
86
|
+
lastElement: u,
|
|
87
|
+
shouldExpandNode: s,
|
|
88
|
+
clickToExpandNode: c,
|
|
89
|
+
level: r
|
|
90
|
+
} = e;
|
|
91
|
+
return N({
|
|
92
|
+
field: a,
|
|
93
|
+
value: l,
|
|
94
|
+
lastElement: u || !1,
|
|
95
|
+
level: r,
|
|
96
|
+
openBracket: "{",
|
|
97
|
+
closeBracket: "}",
|
|
98
|
+
style: t,
|
|
99
|
+
shouldExpandNode: s,
|
|
100
|
+
clickToExpandNode: c,
|
|
101
|
+
data: Object.keys(l).map((i) => [i, l[i]])
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
function Q(e) {
|
|
105
|
+
let {
|
|
106
|
+
field: a,
|
|
107
|
+
value: l,
|
|
108
|
+
style: t,
|
|
109
|
+
lastElement: u,
|
|
110
|
+
level: s,
|
|
111
|
+
shouldExpandNode: c,
|
|
112
|
+
clickToExpandNode: r
|
|
113
|
+
} = e;
|
|
114
|
+
return N({
|
|
115
|
+
field: a,
|
|
116
|
+
value: l,
|
|
117
|
+
lastElement: u || !1,
|
|
118
|
+
level: s,
|
|
119
|
+
openBracket: "[",
|
|
120
|
+
closeBracket: "]",
|
|
121
|
+
style: t,
|
|
122
|
+
shouldExpandNode: c,
|
|
123
|
+
clickToExpandNode: r,
|
|
124
|
+
data: l.map((i) => [void 0, i])
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
function w(e) {
|
|
128
|
+
let {
|
|
129
|
+
field: a,
|
|
130
|
+
value: l,
|
|
131
|
+
style: t,
|
|
132
|
+
lastElement: u
|
|
133
|
+
} = e, s = l, c = t.otherValue;
|
|
134
|
+
return l === null ? (s = "null", c = t.nullValue) : l === void 0 ? (s = "undefined", c = t.undefinedValue) : j(l) ? (s = t.noQuotesForStringValues ? l : `"${l}"`, c = t.stringValue) : O(l) ? (s = l ? "true" : "false", c = t.booleanValue) : T(l) ? (s = l.toString(), c = t.numberValue) : L(l) ? (s = `${l.toString()}n`, c = t.numberValue) : y(l) ? s = l.toISOString() : s = l.toString(), a === "" && (a = '""'), /* @__PURE__ */ o("div", {
|
|
135
|
+
className: t.basicChildStyle,
|
|
136
|
+
role: "listitem"
|
|
137
|
+
}, a && /* @__PURE__ */ o("span", {
|
|
138
|
+
className: t.label
|
|
139
|
+
}, a, ":"), /* @__PURE__ */ o("span", {
|
|
140
|
+
className: c
|
|
141
|
+
}, s), !u && /* @__PURE__ */ o("span", {
|
|
142
|
+
className: t.punctuation
|
|
143
|
+
}, ","));
|
|
144
|
+
}
|
|
145
|
+
function V(e) {
|
|
146
|
+
const a = e.value;
|
|
147
|
+
return B(a) ? /* @__PURE__ */ o(Q, Object.assign({}, e)) : D(a) && !y(a) ? /* @__PURE__ */ o(K, Object.assign({}, e)) : /* @__PURE__ */ o(w, Object.assign({}, e));
|
|
148
|
+
}
|
|
149
|
+
var n = { "container-base": "_GzYRV", "punctuation-base": "_3eOF8", pointer: "_1MFti", "expander-base": "_f10Tu _1MFti", "expand-icon": "_1UmXx", "collapse-icon": "_1LId0", "collapsed-content-base": "_1pNG9 _1MFti", "container-light": "_2IvMF _GzYRV", "basic-element-style": "_2bkNM", "label-light": "_1MGIk", "clickable-label-light": "_2YKJg _1MGIk _1MFti", "punctuation-light": "_3uHL6 _3eOF8", "value-null-light": "_2T6PJ", "value-undefined-light": "_1Gho6", "value-string-light": "_vGjyY", "value-number-light": "_1bQdo", "value-boolean-light": "_3zQKs", "value-other-light": "_1xvuR", "collapse-icon-light": "_oLqym _f10Tu _1MFti _1LId0", "expand-icon-light": "_2AXVT _f10Tu _1MFti _1UmXx", "collapsed-content-light": "_2KJWg _1pNG9 _1MFti", "container-dark": "_11RoI _GzYRV", "expand-icon-dark": "_17H2C _f10Tu _1MFti _1UmXx", "collapse-icon-dark": "_3QHg2 _f10Tu _1MFti _1LId0", "collapsed-content-dark": "_3fDAz _1pNG9 _1MFti", "label-dark": "_2bSDX", "clickable-label-dark": "_1RQEj _2bSDX _1MFti", "punctuation-dark": "_gsbQL _3eOF8", "value-null-dark": "_LaAZe", "value-undefined-dark": "_GTKgm", "value-string-dark": "_Chy1W", "value-number-dark": "_2bveF", "value-boolean-dark": "_2vRm-", "value-other-dark": "_1prJR" };
|
|
150
|
+
const X = {
|
|
151
|
+
container: n["container-light"],
|
|
152
|
+
basicChildStyle: n["basic-element-style"],
|
|
153
|
+
label: n["label-light"],
|
|
154
|
+
clickableLabel: n["clickable-label-light"],
|
|
155
|
+
nullValue: n["value-null-light"],
|
|
156
|
+
undefinedValue: n["value-undefined-light"],
|
|
157
|
+
stringValue: n["value-string-light"],
|
|
158
|
+
booleanValue: n["value-boolean-light"],
|
|
159
|
+
numberValue: n["value-number-light"],
|
|
160
|
+
otherValue: n["value-other-light"],
|
|
161
|
+
punctuation: n["punctuation-light"],
|
|
162
|
+
collapseIcon: n["collapse-icon-light"],
|
|
163
|
+
expandIcon: n["expand-icon-light"],
|
|
164
|
+
collapsedContent: n["collapsed-content-light"],
|
|
165
|
+
noQuotesForStringValues: !1
|
|
166
|
+
}, H = {
|
|
167
|
+
container: n["container-dark"],
|
|
168
|
+
basicChildStyle: n["basic-element-style"],
|
|
169
|
+
label: n["label-dark"],
|
|
170
|
+
clickableLabel: n["clickable-label-dark"],
|
|
171
|
+
nullValue: n["value-null-dark"],
|
|
172
|
+
undefinedValue: n["value-undefined-dark"],
|
|
173
|
+
stringValue: n["value-string-dark"],
|
|
174
|
+
booleanValue: n["value-boolean-dark"],
|
|
175
|
+
numberValue: n["value-number-dark"],
|
|
176
|
+
otherValue: n["value-other-dark"],
|
|
177
|
+
punctuation: n["punctuation-dark"],
|
|
178
|
+
collapseIcon: n["collapse-icon-dark"],
|
|
179
|
+
expandIcon: n["expand-icon-dark"],
|
|
180
|
+
collapsedContent: n["collapsed-content-dark"],
|
|
181
|
+
noQuotesForStringValues: !1
|
|
182
|
+
}, z = () => !0;
|
|
183
|
+
const U = (e) => {
|
|
184
|
+
let {
|
|
185
|
+
data: a,
|
|
186
|
+
style: l = X,
|
|
187
|
+
shouldExpandNode: t = z,
|
|
188
|
+
clickToExpandNode: u = !1
|
|
189
|
+
} = e;
|
|
190
|
+
return /* @__PURE__ */ o("div", {
|
|
191
|
+
className: l.container
|
|
192
|
+
}, /* @__PURE__ */ o(V, {
|
|
193
|
+
value: a,
|
|
194
|
+
style: l,
|
|
195
|
+
lastElement: !0,
|
|
196
|
+
level: 0,
|
|
197
|
+
shouldExpandNode: t,
|
|
198
|
+
clickToExpandNode: u
|
|
199
|
+
}));
|
|
200
|
+
};
|
|
201
|
+
export {
|
|
202
|
+
U as J,
|
|
203
|
+
z as a,
|
|
204
|
+
X as d
|
|
205
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const o=require("react");var h={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},m=o.createContext&&o.createContext(h),c=function(){return c=Object.assign||function(e){for(var i,t=1,s=arguments.length;t<s;t++){i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},c.apply(this,arguments)},g=function(e,i){var t={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&i.indexOf(s)<0&&(t[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,s=Object.getOwnPropertySymbols(e);n<s.length;n++)i.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(e,s[n])&&(t[s[n]]=e[s[n]]);return t};function p(e){return e&&e.map(function(i,t){return o.createElement(i.tag,c({key:t},i.attr),p(i.child))})}function b(e){return function(i){return o.createElement(d,c({attr:c({},e.attr)},i),p(e.child))}}function d(e){var i=function(t){var s=e.attr,n=e.size,l=e.title,u=g(e,["attr","size","title"]),a=n||t.size||"1em",r;return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),o.createElement("svg",c({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,s,u,{className:r,style:c(c({color:e.color||t.color},t.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),l&&o.createElement("title",null,l),e.children)};return m!==void 0?o.createElement(m.Consumer,null,function(t){return i(t)}):i(h)}exports.GenIcon=b;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("react"),C=e=>typeof e=="boolean"||e instanceof Boolean,O=e=>typeof e=="number"||e instanceof Number,T=e=>typeof e=="bigint"||e instanceof BigInt,E=e=>!!e&&e instanceof Date,R=e=>typeof e=="string"||e instanceof String,L=e=>Array.isArray(e),j=e=>e instanceof Object&&e!==null;function B(e){const[a,l]=t.useState(e());return[a,()=>l(u=>!u),l]}let D=1;const G=()=>D++;function J(){const e=t.useRef();return e.current===void 0&&(e.current=`:jsnvw:${G()}:`),e.current}function x(e){let{field:a,value:l,data:o,lastElement:u,openBracket:c,closeBracket:i,level:r,style:s,shouldExpandNode:b,clickToExpandNode:g}=e;const _=t.useRef(!1),[d,f,I]=B(()=>b(r,l,a));t.useEffect(()=>{_.current?I(b(r,l,a)):_.current=!0},[b]);const S=d?s.collapseIcon:s.expandIcon,k=d?"collapse JSON":"expand JSON",v=J(),F=r+1,M=o.length-1,m=p=>{p.key===" "&&(p.preventDefault(),f())};return t.createElement("div",{className:s.basicChildStyle,role:"list"},t.createElement("span",{className:S,onClick:f,onKeyDown:m,role:"button",tabIndex:0,"aria-label":k,"aria-expanded":d,"aria-controls":d?v:void 0}),a&&(g?t.createElement("span",{className:s.clickableLabel,onClick:f,onKeyDown:m,role:"button",tabIndex:-1},a,":"):t.createElement("span",{className:s.label},a,":")),t.createElement("span",{className:s.punctuation},c),d?t.createElement("div",{id:v},o.map((p,h)=>t.createElement(y,{key:p[0]||h,field:p[0],value:p[1],style:s,lastElement:h===M,level:F,shouldExpandNode:b,clickToExpandNode:g}))):t.createElement("span",{className:s.collapsedContent,onClick:f,onKeyDown:m,role:"button",tabIndex:-1,"aria-hidden":!0,"aria-label":k,"aria-expanded":d}),t.createElement("span",{className:s.punctuation},i),!u&&t.createElement("span",{className:s.punctuation},","))}function A(e){let{field:a,value:l,style:o,lastElement:u,shouldExpandNode:c,clickToExpandNode:i,level:r}=e;return x({field:a,value:l,lastElement:u||!1,level:r,openBracket:"{",closeBracket:"}",style:o,shouldExpandNode:c,clickToExpandNode:i,data:Object.keys(l).map(s=>[s,l[s]])})}function K(e){let{field:a,value:l,style:o,lastElement:u,level:c,shouldExpandNode:i,clickToExpandNode:r}=e;return x({field:a,value:l,lastElement:u||!1,level:c,openBracket:"[",closeBracket:"]",style:o,shouldExpandNode:i,clickToExpandNode:r,data:l.map(s=>[void 0,s])})}function Q(e){let{field:a,value:l,style:o,lastElement:u}=e,c=l,i=o.otherValue;return l===null?(c="null",i=o.nullValue):l===void 0?(c="undefined",i=o.undefinedValue):R(l)?(c=o.noQuotesForStringValues?l:`"${l}"`,i=o.stringValue):C(l)?(c=l?"true":"false",i=o.booleanValue):O(l)?(c=l.toString(),i=o.numberValue):T(l)?(c=`${l.toString()}n`,i=o.numberValue):E(l)?c=l.toISOString():c=l.toString(),a===""&&(a='""'),t.createElement("div",{className:o.basicChildStyle,role:"listitem"},a&&t.createElement("span",{className:o.label},a,":"),t.createElement("span",{className:i},c),!u&&t.createElement("span",{className:o.punctuation},","))}function y(e){const a=e.value;return L(a)?t.createElement(K,Object.assign({},e)):j(a)&&!E(a)?t.createElement(A,Object.assign({},e)):t.createElement(Q,Object.assign({},e))}var n={"container-base":"_GzYRV","punctuation-base":"_3eOF8",pointer:"_1MFti","expander-base":"_f10Tu _1MFti","expand-icon":"_1UmXx","collapse-icon":"_1LId0","collapsed-content-base":"_1pNG9 _1MFti","container-light":"_2IvMF _GzYRV","basic-element-style":"_2bkNM","label-light":"_1MGIk","clickable-label-light":"_2YKJg _1MGIk _1MFti","punctuation-light":"_3uHL6 _3eOF8","value-null-light":"_2T6PJ","value-undefined-light":"_1Gho6","value-string-light":"_vGjyY","value-number-light":"_1bQdo","value-boolean-light":"_3zQKs","value-other-light":"_1xvuR","collapse-icon-light":"_oLqym _f10Tu _1MFti _1LId0","expand-icon-light":"_2AXVT _f10Tu _1MFti _1UmXx","collapsed-content-light":"_2KJWg _1pNG9 _1MFti","container-dark":"_11RoI _GzYRV","expand-icon-dark":"_17H2C _f10Tu _1MFti _1UmXx","collapse-icon-dark":"_3QHg2 _f10Tu _1MFti _1LId0","collapsed-content-dark":"_3fDAz _1pNG9 _1MFti","label-dark":"_2bSDX","clickable-label-dark":"_1RQEj _2bSDX _1MFti","punctuation-dark":"_gsbQL _3eOF8","value-null-dark":"_LaAZe","value-undefined-dark":"_GTKgm","value-string-dark":"_Chy1W","value-number-dark":"_2bveF","value-boolean-dark":"_2vRm-","value-other-dark":"_1prJR"};const N={container:n["container-light"],basicChildStyle:n["basic-element-style"],label:n["label-light"],clickableLabel:n["clickable-label-light"],nullValue:n["value-null-light"],undefinedValue:n["value-undefined-light"],stringValue:n["value-string-light"],booleanValue:n["value-boolean-light"],numberValue:n["value-number-light"],otherValue:n["value-other-light"],punctuation:n["punctuation-light"],collapseIcon:n["collapse-icon-light"],expandIcon:n["expand-icon-light"],collapsedContent:n["collapsed-content-light"],noQuotesForStringValues:!1},X={container:n["container-dark"],basicChildStyle:n["basic-element-style"],label:n["label-dark"],clickableLabel:n["clickable-label-dark"],nullValue:n["value-null-dark"],undefinedValue:n["value-undefined-dark"],stringValue:n["value-string-dark"],booleanValue:n["value-boolean-dark"],numberValue:n["value-number-dark"],otherValue:n["value-other-dark"],punctuation:n["punctuation-dark"],collapseIcon:n["collapse-icon-dark"],expandIcon:n["expand-icon-dark"],collapsedContent:n["collapsed-content-dark"],noQuotesForStringValues:!1},V=()=>!0;const w=e=>{let{data:a,style:l=N,shouldExpandNode:o=V,clickToExpandNode:u=!1}=e;return t.createElement("div",{className:l.container},t.createElement(y,{value:a,style:l,lastElement:!0,level:0,shouldExpandNode:o,clickToExpandNode:u}))};exports.JsonView=w;exports.allExpanded=V;exports.defaultStyles=N;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const k=require("react"),i=require("lodash-es"),ne=require("./Functions-N3yhPYKY.cjs"),Se=require("@chaibuilder/runtime"),p=require("jotai"),X=require("./STRINGS-gPz7CUOk.cjs"),rn=require("./_commonjsHelpers-wDK0ZLPo.cjs"),an=require("@react-hookz/web"),De=require("./MODIFIERS-0g14w5RS.cjs"),u=require("./Class-PoYusiA5.cjs");require("react-i18next");const r=require("./jsx-runtime-Z_BpKhVy.cjs"),ln=require("@radix-ui/react-toggle"),ce=require("class-variance-authority"),cn=require("@radix-ui/react-switch"),dn=require("@radix-ui/react-slot"),un=require("@radix-ui/react-accordion"),G=require("@radix-ui/react-icons"),mn=require("@radix-ui/react-alert-dialog"),pn=require("@radix-ui/react-dialog"),fn=require("@radix-ui/react-label"),xn=require("@radix-ui/react-scroll-area"),gn=require("@radix-ui/react-tabs"),hn=require("@radix-ui/react-tooltip"),bn=require("@radix-ui/react-popover"),vn=require("@radix-ui/react-menubar"),yn=require("@radix-ui/react-hover-card"),jn=require("@radix-ui/react-select"),wn=require("@radix-ui/react-dropdown-menu"),Rn=require("@radix-ui/react-separator"),kn=require("@radix-ui/react-toast"),K=require("cmdk"),Nn=require("@radix-ui/react-context-menu"),wt=require("react-icons-picker"),Sn=require("react-dom"),Cn=require("react-quill");function U(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const o=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,o.get?o:{enumerable:!0,get:()=>e[s]})}}return t.default=e,Object.freeze(t)}const f=U(k),Rt=U(ln),Oe=U(cn),le=U(un),W=U(mn),P=U(pn),kt=U(fn),ae=U(xn),de=U(gn),pe=U(hn),he=U(bn),B=U(vn),Ce=U(yn),F=U(jn),M=U(wn),Nt=U(Rn),Q=U(kn),D=U(Nn);var q={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};let En=0;function ee(e,t){const s=`atom${++En}`,o={toString:()=>s};return typeof e=="function"?o.read=e:(o.init=e,o.read=n=>n(o),o.write=(n,l,a)=>l(o,typeof a=="function"?a(n(o)):a)),t&&(o.write=t),o}const Be=e=>"init"in e,Te=e=>!!e.write,Re=new WeakMap,An=(e,t)=>{Re.set(e,t),e.catch(()=>{}).finally(()=>Re.delete(e))},ct=(e,t)=>{const s=Re.get(e);s&&(Re.delete(e),s(t))},dt=(e,t)=>{e.status="fulfilled",e.value=t},ut=(e,t)=>{e.status="rejected",e.reason=t},_n=e=>typeof(e==null?void 0:e.then)=="function",xe=(e,t)=>"v"in e&&"v"in t&&Object.is(e.v,t.v),mt=(e,t)=>"e"in e&&"e"in t&&Object.is(e.e,t.e),me=e=>"v"in e&&e.v instanceof Promise,Bn=(e,t)=>"v"in e&&"v"in t&&e.v.orig&&e.v.orig===t.v.orig,ye=e=>{if("e"in e)throw e.e;return e.v},St=()=>{const e=new WeakMap,t=new WeakMap,s=new Map;let o,n,l;(q?"production":void 0)!=="production"&&(o=new Set,n=new Set,l=new Set);const a=m=>e.get(m),d=(m,h)=>{(q?"production":void 0)!=="production"&&Object.freeze(h);const y=e.get(m);if(e.set(m,h),s.has(m)||s.set(m,y),y&&me(y)){const b="v"in h?h.v instanceof Promise?h.v:Promise.resolve(h.v):Promise.reject(h.e);ct(y.v,b)}},g=(m,h,y)=>{const b=new Map;let w=!1;y.forEach((v,N)=>{!v&&N===m&&(v=h),v?(b.set(N,v),h.d.get(N)!==v&&(w=!0)):(q?"production":void 0)!=="production"&&console.warn("[Bug] atom state not found")}),(w||h.d.size!==b.size)&&(h.d=b)},c=(m,h,y)=>{const b=a(m),w={d:(b==null?void 0:b.d)||new Map,v:h};if(y&&g(m,w,y),b&&xe(b,w)&&b.d===w.d)return b;if(b&&me(b)&&me(w)&&Bn(b,w)){if(b.d===w.d)return b;w.v=b.v}return d(m,w),w},x=(m,h,y,b)=>{if(_n(h)){let w;const v=new Promise((N,L)=>{let E=!1;h.then(T=>{if(!E){E=!0;const A=a(m),Z=c(m,v,y);dt(v,T),N(T),(A==null?void 0:A.d)!==Z.d&&H(m,Z,A==null?void 0:A.d)}},T=>{if(!E){E=!0;const A=a(m),Z=c(m,v,y);ut(v,T),L(T),(A==null?void 0:A.d)!==Z.d&&H(m,Z,A==null?void 0:A.d)}}),w=T=>{E||(E=!0,T.then(A=>dt(v,A),A=>ut(v,A)),N(T))}});return v.orig=h,v.status="pending",An(v,N=>{N&&w(N),b==null||b()}),c(m,v,y)}return c(m,h,y)},R=(m,h,y)=>{const b=a(m),w={d:(b==null?void 0:b.d)||new Map,e:h};return y&&g(m,w,y),b&&mt(b,w)&&b.d===w.d?b:(d(m,w),w)},S=m=>{const h=a(m);if(h&&(h.d.forEach((E,T)=>{T!==m&&!t.has(T)&&S(T)}),Array.from(h.d).every(([E,T])=>{const A=a(E);return E===m||A===T||A&&!me(A)&&xe(A,T)})))return h;const y=new Map;let b=!0;const w=E=>{if(E===m){const A=a(E);if(A)return y.set(E,A),ye(A);if(Be(E))return y.set(E,void 0),E.init;throw new Error("no atom init")}const T=S(E);return y.set(E,T),ye(T)};let v,N;const L={get signal(){return v||(v=new AbortController),v.signal},get setSelf(){return(q?"production":void 0)!=="production"&&!Te(m)&&console.warn("setSelf function cannot be used with read-only atom"),!N&&Te(m)&&(N=(...E)=>{if((q?"production":void 0)!=="production"&&b&&console.warn("setSelf function cannot be called in sync"),!b)return $(m,...E)}),N}};try{const E=m.read(w,L);return x(m,E,y,()=>v==null?void 0:v.abort())}catch(E){return R(m,E,y)}finally{b=!1}},j=m=>ye(S(m)),C=m=>{let h=t.get(m);return h||(h=z(m)),h},O=(m,h)=>!h.l.size&&(!h.t.size||h.t.size===1&&h.t.has(m)),V=m=>{const h=t.get(m);h&&O(m,h)&&J(m)},_=m=>{const h=new Map,y=new WeakMap,b=v=>{const N=t.get(v);N==null||N.t.forEach(L=>{L!==v&&(h.set(L,(h.get(L)||new Set).add(v)),y.set(L,(y.get(L)||0)+1),b(L))})};b(m);const w=v=>{const N=t.get(v);N==null||N.t.forEach(L=>{var E;if(L!==v){let T=y.get(L);if(T&&y.set(L,--T),!T){let A=!!((E=h.get(L))!=null&&E.size);if(A){const Z=a(L),nn=S(L);A=!Z||!xe(Z,nn)}A||h.forEach(Z=>Z.delete(L))}w(L)}})};w(m)},I=(m,...h)=>{let y=!0;const b=N=>ye(S(N)),w=(N,...L)=>{let E;if(N===m){if(!Be(N))throw new Error("atom not writable");const T=a(N),A=x(N,L[0]);(!T||!xe(T,A))&&_(N)}else E=I(N,...L);if(!y){const T=Y();(q?"production":void 0)!=="production"&&n.forEach(A=>A({type:"async-write",flushed:T}))}return E},v=m.write(b,w,...h);return y=!1,v},$=(m,...h)=>{const y=I(m,...h),b=Y();return(q?"production":void 0)!=="production"&&n.forEach(w=>w({type:"write",flushed:b})),y},z=(m,h)=>{const y={t:new Set(h&&[h]),l:new Set};if(t.set(m,y),(q?"production":void 0)!=="production"&&l.add(m),S(m).d.forEach((b,w)=>{const v=t.get(w);v?v.t.add(m):w!==m&&z(w,m)}),S(m),Te(m)&&m.onMount){const b=m.onMount((...w)=>$(m,...w));b&&(y.u=b)}return y},J=m=>{var h;const y=(h=t.get(m))==null?void 0:h.u;y&&y(),t.delete(m),(q?"production":void 0)!=="production"&&l.delete(m);const b=a(m);b?(me(b)&&ct(b.v),b.d.forEach((w,v)=>{if(v!==m){const N=t.get(v);N&&(N.t.delete(m),O(v,N)&&J(v))}})):(q?"production":void 0)!=="production"&&console.warn("[Bug] could not find atom state to unmount",m)},H=(m,h,y)=>{const b=new Set(h.d.keys());y==null||y.forEach((w,v)=>{if(b.has(v)){b.delete(v);return}const N=t.get(v);N&&(N.t.delete(m),O(v,N)&&J(v))}),b.forEach(w=>{const v=t.get(w);v?v.t.add(m):t.has(m)&&z(w,m)})},Y=()=>{let m;for((q?"production":void 0)!=="production"&&(m=new Set);s.size;){const h=Array.from(s);s.clear(),h.forEach(([y,b])=>{const w=a(y);if(w){w.d!==(b==null?void 0:b.d)&&H(y,w,b==null?void 0:b.d);const v=t.get(y);v&&!(b&&!me(b)&&(xe(b,w)||mt(b,w)))&&(v.l.forEach(N=>N()),(q?"production":void 0)!=="production"&&m.add(y))}else(q?"production":void 0)!=="production"&&console.warn("[Bug] no atom state to flush")})}if((q?"production":void 0)!=="production")return o.forEach(h=>h("state")),m},oe=(m,h)=>{const y=C(m),b=Y(),w=y.l;return w.add(h),(q?"production":void 0)!=="production"&&(o.forEach(v=>v("sub")),n.forEach(v=>v({type:"sub",flushed:b}))),()=>{w.delete(h),V(m),(q?"production":void 0)!=="production"&&(o.forEach(v=>v("unsub")),n.forEach(v=>v({type:"unsub"})))}};return(q?"production":void 0)!=="production"?{get:j,set:$,sub:oe,dev_subscribe_store:(m,h)=>h!==2?(console.warn("The current StoreListener revision is 2. The older ones are deprecated."),o.add(m),()=>{o.delete(m)}):(n.add(m),()=>{n.delete(m)}),dev_get_mounted_atoms:()=>l.values(),dev_get_atom_state:m=>e.get(m),dev_get_mounted:m=>t.get(m),dev_restore_atoms:m=>{for(const[y,b]of m)Be(y)&&(x(y,b),_(y));const h=Y();n.forEach(y=>y({type:"restore",flushed:h}))}}:{get:j,set:$,sub:oe}};let Pe;const Tn=()=>(Pe||(Pe=St()),Pe);var Pn={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const In=k.createContext(void 0),Ue=e=>{const t=k.useContext(In);return(e==null?void 0:e.store)||t||Tn()};const Mn=e=>typeof(e==null?void 0:e.then)=="function",Dn=k.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)});function Ct(e,t){const s=Ue(t),[[o,n,l],a]=k.useReducer(c=>{const x=s.get(e);return Object.is(c[0],x)&&c[1]===s&&c[2]===e?c:[x,s,e]},void 0,()=>[s.get(e),s,e]);let d=o;(n!==s||l!==e)&&(a(),d=s.get(e));const g=t==null?void 0:t.delay;return k.useEffect(()=>{const c=s.sub(e,()=>{if(typeof g=="number"){setTimeout(a,g);return}a()});return a(),c},[s,e,g]),k.useDebugValue(d),Mn(d)?Dn(d):d}function Et(e,t){const s=Ue(t);return k.useCallback((...n)=>{if((Pn?"production":void 0)!=="production"&&!("write"in e))throw new Error("not writable atom");return s.set(e,...n)},[s,e])}function On(e,t){return[Ct(e,t),Et(e,t)]}var qe={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const At=Symbol();const pt=(e,t,s)=>(t.has(s)?t:t.set(s,e())).get(s),Ln=new WeakMap,zn=(e,t,s)=>{const o=pt(()=>new WeakMap,Ln,t);return pt(e,o,s)},Vn={},ft=e=>!!e.write,Fn=e=>typeof e=="function";function Un(e,t){return zn(()=>{const s=new WeakMap,o=(a,d)=>{let g=s.get(a);if(g)return g;const c=d&&s.get(d),x=[],R=[];return a.forEach((S,j)=>{const C=t?t(S):j;R[j]=C;const O=c&&c.atomList[c.keyList.indexOf(C)];if(O){x[j]=O;return}const V=I=>{const $=I(n),z=I(e),H=o(z,$==null?void 0:$.arr).keyList.indexOf(C);if(H<0||H>=z.length){const Y=a[o(a).keyList.indexOf(C)];if(Y)return Y;throw new Error("splitAtom: index out of bounds for read")}return z[H]},_=(I,$,z)=>{const J=I(n),H=I(e),oe=o(H,J==null?void 0:J.arr).keyList.indexOf(C);if(oe<0||oe>=H.length)throw new Error("splitAtom: index out of bounds for write");const m=Fn(z)?z(H[oe]):z;$(e,[...H.slice(0,oe),m,...H.slice(oe+1)])};x[j]=ft(e)?ee(V,_):ee(V)}),c&&c.keyList.length===R.length&&c.keyList.every((S,j)=>S===R[j])?g=c:g={arr:a,atomList:x,keyList:R},s.set(a,g),g},n=ee(a=>{const d=a(n),g=a(e);return o(g,d==null?void 0:d.arr)});(qe?"production":void 0)!=="production"&&(n.debugPrivate=!0),n.init=void 0;const l=ft(e)?ee(a=>a(n).atomList,(a,d,g)=>{switch(g.type){case"remove":{const c=a(l).indexOf(g.atom);if(c>=0){const x=a(e);d(e,[...x.slice(0,c),...x.slice(c+1)])}break}case"insert":{const c=g.before?a(l).indexOf(g.before):a(l).length;if(c>=0){const x=a(e);d(e,[...x.slice(0,c),g.value,...x.slice(c)])}break}case"move":{const c=a(l).indexOf(g.atom),x=g.before?a(l).indexOf(g.before):a(l).length;if(c>=0&&x>=0){const R=a(e);c<x?d(e,[...R.slice(0,c),...R.slice(c+1,x),R[c],...R.slice(x)]):d(e,[...R.slice(0,x),R[c],...R.slice(x,c),...R.slice(c+1)])}break}}}):ee(a=>a(n).atomList);return l},e,t||Vn)}function qn(e){const t=Symbol(),s=ee(t);(qe?"production":void 0)!=="production"&&(s.debugPrivate=!0);const o=ee((n,l)=>{const a=n(s);return a!==t?a:e(n,l)},(n,l,a)=>{if(a===At)l(s,t);else if(typeof a=="function"){const d=n(o);l(s,a(d))}else l(s,a)});return o}const $n=e=>typeof(e==null?void 0:e.then)=="function";function Gn(e){let t,s;const o={getItem:(n,l)=>{var a,d;const g=x=>{if(x=x||"",t!==x){try{s=JSON.parse(x)}catch{return l}t=x}return s},c=(d=(a=e())==null?void 0:a.getItem(n))!=null?d:null;return $n(c)?c.then(g):g(c)},setItem:(n,l)=>{var a;return(a=e())==null?void 0:a.setItem(n,JSON.stringify(l))},removeItem:n=>{var l;return(l=e())==null?void 0:l.removeItem(n)}};return typeof window<"u"&&typeof window.addEventListener=="function"&&(o.subscribe=(n,l,a)=>{if(!(e()instanceof window.Storage))return()=>{};const d=g=>{if(g.storageArea===e()&&g.key===n){let c;try{c=JSON.parse(g.newValue||"")}catch{c=a}l(c)}};return window.addEventListener("storage",d),()=>{window.removeEventListener("storage",d)}}),o}const Wn=Gn(()=>typeof window<"u"?window.localStorage:void 0);function fe(e,t,s=Wn,o){const n=o==null?void 0:o.unstable_getOnInit,l=ee(n?s.getItem(e,t):t);return(qe?"production":void 0)!=="production"&&(l.debugPrivate=!0),l.onMount=d=>{n||d(s.getItem(e,t));let g;return s.subscribe&&(g=s.subscribe(e,d,t)),g},ee(d=>d(l),(d,g,c)=>{const x=typeof c=="function"?c(d(l)):c;return x===At?(g(l,t),s.removeItem(e)):x instanceof Promise?x.then(R=>(g(l,R),s.setItem(e,R))):(g(l,x),s.setItem(e,x))})}const $e=p.atom(null);$e.debugLabel="chaiBuilderPropsAtom";const _t=p.atom({});_t.debugLabel="chaiExternalDataAtom";const Hn=()=>!1,Yn=e=>{const t=e.replace(X.STYLES_KEY,"").split(",");return{baseClasses:t[0],classes:t[1]}},Le=i.memoize((e,t)=>{if(!e)return!0;const s=Se.getBlockComponent(e);return s&&i.has(s,"canAcceptBlock")?s.canAcceptBlock(t):!1}),Kn=i.memoize((e,t)=>{const s=Se.getBlockComponent(t);return s&&i.has(s,"canBeNested")?s.canBeNested(e):!0}),Jn=i.memoize(e=>{const t=Se.getBlockComponent(e);return t&&i.has(t,"canDuplicate")?t.canDuplicate():!0}),Qn=i.memoize(e=>{const t=Se.getBlockComponent(e);return t&&i.has(t,"canDelete")?t.canDelete():!0});function Bt(e,t,s){const o=i.filter(e,l=>l._parent===t),n=[];for(let l=0;l<o.length;l++){const a=Pt(o[l]);if(Object.keys(a).length>0&&Object.keys(a).forEach(d=>{o[l][d]=`slot:${ne.generateUUID()}`}),i.filter(e,{_parent:o[l]._id}).length>0){const d=ne.generateUUID();n.push({...o[l],oldId:o[l]._id,_id:d,_parent:s}),n.push(i.flatten(Bt(e,o[l]._id,d)))}else n.push({...o[l],oldId:o[l]._id,_id:ne.generateUUID(),_parent:s})}return i.flatten(n)}function Tt(e){const t={};e.forEach(o=>{t[o._id]={...o,children:[]}});const s=[];return e.forEach(o=>{if(o._parent){const n=t[o._parent];n&&n.children.push(t[o._id])}else s.push(t[o._id])}),s}const Pt=e=>{const t={};return Object.keys(e).forEach(s=>{i.isString(e[s])&&e[s].startsWith("slot")&&(t[s]=e[s].replace("slot:",""))}),t},Xn=(e,t,s=null)=>{let o=i.find(e,{_id:t});o={...o,oldId:o._id,_id:ne.generateUUID()},s&&(o={...o,_parent:s});const n=[o];i.filter(e,{_parent:t}).length>0&&n.push(i.flatten(Bt(e,t,o._id)));const l=i.flatten(n);return i.map(l,a=>{const d=a,g=Pt(d);return Object.keys(g).length>0&&Object.keys(g).forEach(c=>{const x=i.find(l,{oldId:g[c].replace("slot:","")});d[c]=`slot:${x._id}`}),i.omit(d,["global","oldId"])})};const te=p.atom([]);te.debugLabel="presentBlocksAtom";const It=p.atom(e=>{const t=e(te);return Tt([...t])});It.debugLabel="treeDSBlocks";te.debugLabel="presentBlocksAtom";const Ge=Un(te);Ge.debugLabel="pageBlocksAtomsAtom";const Zn=p.atom("");Zn.debugLabel="builderActivePageAtom";const er=p.atom(-1);er.debugLabel="destinationDropIndexAtom";const Mt=p.atom([]);Mt.debugLabel="buildingBlocksAtom";const tr=p.atom(e=>{const t=e(Mt);return i.filter(t,s=>i.has(s,"blockId"))});tr.debugLabel="globalBlocksAtom";const We=p.atom([]);We.debugLabel="selectedBlockIdsAtom";const He=p.atom(e=>{const t=e(te),s=e(We);return i.map(i.filter(t,({_id:o})=>i.includes(s,o)),o=>({...o}))});He.debugLabel="selectedBlocksAtom";const Ye=p.atom(e=>{const t=e(He);return t.length===0?null:t.length===1?t[0]:{type:"Multiple",id:i.map(t,"id")}});Ye.debugLabel="selectedBlockAtom";const sr=e=>i.get(e,"parent",null),or=p.atom(e=>{const t=e(He),s=i.map(t,sr);return i.filter(e(te),o=>i.includes(s,o._id))});or.debugLabel="selectedBlocksParentsAtom";const Dt=p.atom(()=>!1);Dt.debugLabel="selectedBlockFlexChildAtom";const Ot=p.atom(()=>!1);Ot.debugLabel="selectedBlockGridChildAtom";const Ke=p.atom("");Ke.debugLabel="styleStateAtom";const Lt=fe("styleBreakpoint","xs");Lt.debugLabel="styleBreakpointAtom";const nr=()=>({flexChild:p.useAtomValue(Dt),gridChild:p.useAtomValue(Ot)}),rr=()=>p.useAtomValue(Ye);const be=()=>{const[e,t]=p.useAtom(We),s=k.useCallback(o=>{t(n=>i.includes(n,o)?i.without(n,o):[...n,o])},[t]);return[e,t,s]},ze=e=>{switch(e.type){case"singular":return e.uiSchema;case"model":const{properties:t}=e,s={};return Object.keys(t).forEach(l=>{const a=t[l];if(i.includes(["slot","styles"],a.type))return;const d=l;s[d]=ze(a)}),s;case"list":const{itemProperties:o}=e,n={items:{}};return Object.keys(o).forEach(l=>{const a=o[l];if(i.includes(["slot","styles"],a.type))return;const d=l;n.items[d]=ze(a)}),n;default:return{}}},Ve=e=>{switch(e.type){case"singular":return e.schema;case"model":const{properties:t,title:s}=e,o={title:s,type:"object",properties:{}};return Object.keys(t).forEach(d=>{const g=t[d];if(i.includes(["slot","styles"],g.type))return;const c=d;o.properties[c]=Ve(g)}),o;case"list":const{itemProperties:n,title:l}=e,a={title:l,type:"array",items:{type:"object",properties:{}}};return Object.keys(n).forEach(d=>{const g=n[d];if(i.includes(["slot","styles"],g.type))return;const c=d;a.items.properties[c]=Ve(g),i.set(a.items,"title",i.get(g,"itemTitle",`${l} item`))}),a;default:return{}}},zt=e=>{if(!e)return{};const t={};return Object.keys(e).forEach(s=>{t[s]=ir(e[s])}),t},ar=e=>{if(i.isEmpty(e.default))return[];const{itemProperties:t}=e;return i.map(e.default,s=>{const o={...s};return i.forIn(s,(n,l)=>{i.has(t,l)&&i.get(t[l],"i18n",!1)&&(o[l]=X.I18N_KEY)}),o})},ir=e=>{switch(e.type){case"styles":return e.default;case"slot":return`${X.SLOT_KEY}${ne.generateUUID()}`;case"singular":const{i18n:t,schema:s}=e;return t?X.I18N_KEY:i.get(s,"default","");case"model":return zt(e.properties);case"list":return ar(e);default:return""}};var Je={exports:{}},pi=Je.exports;(function(e){(function(){"use strict";function t(o,n,l){return o.splice(n,!l||1+l-n+(!(l<0^n>=0)&&(l<0||-1)*o.length)),o.length}let s=function(){let o=[],n=-1,l=0,a=!1,d;function g(c,x){return!c||typeof c[x]!="function"?this:(a=!0,c[x](),a=!1,this)}return{add:function(c){return a?this:(o.splice(n+1,o.length-n),o.push(c),l&&o.length>l&&t(o,0,-(l+1)),n=o.length-1,d&&d(),this)},setCallback:function(c){d=c},undo:function(){let c=o[n];if(!c)return this;const x=c.groupId;for(;c.groupId===x&&(g(c,"undo"),n-=1,c=o[n],!(!c||!c.groupId)););return d&&d(),this},redo:function(){let c=o[n+1];if(!c)return this;const x=c.groupId;for(;c.groupId===x&&(g(c,"redo"),n+=1,c=o[n+1],!(!c||!c.groupId)););return d&&d(),this},clear:function(){let c=o.length;o=[],n=-1,d&&c>0&&d()},hasUndo:function(){return n!==-1},hasRedo:function(){return n<o.length-1},getCommands:function(c){return c?o.filter(x=>x.groupId===c):o},getIndex:function(){return n},setLimit:function(c){l=c}}};e.exports?e.exports=s:window.UndoManager=s})()})(Je);var lr=Je.exports;const cr=rn.getDefaultExportFromCjs(lr),dr=p.atom(De.BRANDING_OPTIONS_DEFAULTS),ur=p.atom(null),Qe=()=>{const[e,t]=p.useAtom(dr);return[i.isObject(e)?{...De.BRANDING_OPTIONS_DEFAULTS,...e}:De.BRANDING_OPTIONS_DEFAULTS,t]},mr=()=>p.useAtom(ur),pr=p.atom(null),Vt=()=>({currentPage:p.useAtomValue(pr)});function fr(e){return Tt(e)}const Xe=(e,t)=>i.flatten(e.map(s=>{if(s=t?{...s,parent:t}:{...s},s.children){const o=[...s.children];return delete s.children,i.flatten([s,...Xe(o,s._id)])}return s}));function Ze(e,t=!1){for(let s=0;s<e.length;s++){const o=e[s];o.global&&!t?e[s]={type:"GlobalBlock",blockId:o.blockId,_parent:i.get(o,"parent",null),_id:o._id}:o.children&&o.children.length&&Ze(o.children)}}function Ft(e){let t=[],s=i.filter(e,{type:"GlobalBlock"});return s.length>0&&(s=i.map(s,Ut),i.each(s,o=>{t=[...t,...xr(o)]})),t}function xr(e){let t=[];const s=i.get(i.first(e),"parent",null);i.set(i.first(e),"parent",null);const o=[flatToNestedInstance.convert(qt(e))];Ze(o,!0);let n=Xe(o,e[0]._id);return n=i.set(n,"0.parent",s),t=[...t,n,...Ft(n)],t}function Ut(e){const t=i.find(Fe,{_id:e._id});if(!t)return[];const s=[t],o=i.filter(Fe,{_parent:e._id});return o.length?i.flatten([...s,...i.flatten(i.map(o,Ut))]):i.flatten(s)}const qt=e=>JSON.parse(JSON.stringify(e));let Fe=[];function gr(e){Fe=e;const t=fr(qt(e));Ze(t);const s=Xe(t,null),o=Ft(s),n={};return i.each(o,l=>i.set(n,i.first(l).blockId,l)),[s,n]}const $t=()=>{const[e]=Qe(),{currentPage:t}=Vt(),[s]=ue();return k.useCallback(()=>{const o=i.map(s,l=>i.omit(l,["expanded","order","title","siblings","tempClasses"])),[n=[]]=gr(o);return{currentPage:t,blocks:n}},[e,t,s])},ie=(e,t=void 0)=>{const s=p.useAtomValue($e);return i.get(s,e,t)},et=p.atom([]);et.debugLabel="dataProvidersAtom";const Gt=()=>p.useAtom(et),Ee=p.atom("SAVED");Ee.debugLabel="builderSaveStateAtom";const hr=()=>{const[e,t]=p.useAtom(Ee),s=ie("onSavePage",async c=>{}),o=ie("onSave",async c=>{}),n=ie("onSaveStateChange",i.noop),l=$t(),[a]=Gt(),[d]=Qe();return{savePage:an.useThrottledCallback(async()=>{t("SAVING"),n("SAVING");const c=l();return await s({blocks:c.blocks,providers:a}),await o({blocks:c.blocks,providers:a,brandingOptions:d}),setTimeout(()=>{t("SAVED"),n("SAVED")},100),!0},[l,t,d,o,n],3e3),saveState:e,setSaveState:t}},se=new cr;se.setLimit(50);const tt=()=>{const[,e]=p.useAtom(Ee),t=ie("onSaveStateChange",i.noop);return k.useEffect(()=>(se.setCallback(()=>{e("UNSAVED"),t("UNSAVED")}),()=>{se.setCallback(i.noop)}),[]),{add:se.add,undo:se.undo,redo:se.redo,hasRedo:se.hasRedo,hasUndo:se.hasUndo,clear:se.clear}},st=(e,t)=>{const s=[],o=i.filter(e,n=>i.includes(t,n._id)||i.includes(t,n._parent)?(s.push(n._id),!1):!0);return i.isEmpty(s)?o:st(o,s)},br=()=>{const[e]=ue(),[t,s]=be(),{setNewBlocks:o}=re();return k.useCallback(n=>{var a;const l=((a=i.find(e,{_id:n[0]}))==null?void 0:a._parent)||null;o(st(e,n)),setTimeout(()=>s(l?[l]:[]),200)},[e,s,t])};function vr(e,t,s,o){let n=e.filter(d=>!d._parent);s&&(n=e.filter(d=>d._parent===s));const l=o!==void 0?o:n.length;let a=e.length;for(let d=0,g=0;d<e.length;d++)if(e[d]._parent===s){if(g===l){a=d;break}g++}return!s&&o!==void 0&&o>=n.length&&(a=e.length),[...e.slice(0,a),...t,...e.slice(a)]}function xt(e){const t=[],s=new Map;e.forEach(n=>{s.set(n._id,n)});function o(n){const l=s.get(n);t.includes(l)||(t.push(l),e.forEach(a=>{a._parent===n&&o(a._id)}))}return e.forEach(n=>{n._parent||o(n._id)}),t}const yr=(e,t,s,o)=>{if(i.isEmpty(t))return xt(e);function n(d,g){const c=d.filter(R=>R._parent===g);let x=[...c];return c.forEach(R=>{x=x.concat(n(d,R._id))}),x}const l=t.reduce((d,g)=>{const c=e.find(x=>x._id===g);if(c){const x=n(e,g);d.push(c,...x)}return d},[]);e=e.filter(d=>!l.includes(d)),l.forEach(d=>{t.includes(d._id)&&(d._parent=s)});let a;if(!s)a=o;else{const d=e.findIndex(g=>g._id===s);if(d===-1)a=o;else{a=d+1;let g=0;for(;g<o&&a<e.length;)e[a]._parent===s&&g++,a++}}return e.splice(a,0,...l),xt(e)},jr=()=>{const[,e]=ue();return{setNewBlocks:t=>{e(t)},addBlocks:(t,s,o)=>{e(n=>vr(n,t,s,o))},removeBlocks:t=>{e(s=>st(s,t))},moveBlocks:(t,s,o)=>{e(n=>yr(n,t,s,o))},updateBlocksProps:t=>{e(s=>{const o=t.map(n=>n._id);return s.map(n=>{if(o.includes(n._id)){const l=i.find(t,{_id:n._id});return{...n,...i.omit(l,"_id")}}return n})})}}},ue=()=>p.useAtom(te),re=()=>{const{add:e}=tt(),[t]=ue(),{setNewBlocks:s,addBlocks:o,removeBlocks:n,moveBlocks:l,updateBlocksProps:a}=jr();return{moveBlocks:(j,C,O)=>{const V=i.map(j,I=>{const z=t.find(Y=>Y._id===I)._parent||null,H=t.filter(Y=>z?Y._parent===z:!Y._parent).map(Y=>Y._id).indexOf(I);return{_id:I,oldParent:z,oldPosition:H}}),_=V.find(({_id:I})=>I===j[0]);_&&_.oldParent===C&&_.oldPosition===O||(l(j,C,O),e({undo:()=>i.each(V,({_id:I,oldParent:$,oldPosition:z})=>{l([I],$,z)}),redo:()=>l(j,C,O)}))},addBlocks:(j,C,O)=>{o(j,C,O),e({undo:()=>n(i.map(j,"_id")),redo:()=>o(j,C,O)})},removeBlocks:j=>{var _;const C=(_=i.first(j))==null?void 0:_._parent,V=t.filter(I=>C?I._parent===C:!I._parent).indexOf(i.first(j));n(i.map(j,"_id")),e({undo:()=>o(j,C,V),redo:()=>n(i.map(j,"_id"))})},updateBlocks:(j,C,O)=>{let V=[];if(O)V=i.map(j,_=>({_id:_,...O}));else{const _=i.keys(C);V=i.map(j,I=>{const $=t.find(J=>J._id===I),z={_id:I};return i.each(_,J=>z[J]=$[J]),z})}a(i.map(j,_=>({_id:_,...C}))),e({undo:()=>a(V),redo:()=>a(i.map(j,_=>({_id:_,...C})))})},updateBlocksRuntime:(j,C)=>{a(i.map(j,O=>({_id:O,...C})))},setNewBlocks:j=>{s(j),e({undo:()=>s(t),redo:()=>s(j)})}}},Wt=ce.cva("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-3",sm:"h-9 px-2.5",lg:"h-11 px-5"}},defaultVariants:{variant:"default",size:"default"}}),Ht=f.forwardRef(({className:e,variant:t,size:s,...o},n)=>r.jsxRuntimeExports.jsx(Rt.Root,{ref:n,className:u.cn(Wt({variant:t,size:s,className:e})),...o}));Ht.displayName=Rt.Root.displayName;const Yt=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx(Oe.Root,{className:u.cn("peer inline-flex h-[24px] w-[44px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-slate-900 data-[state=unchecked]:bg-slate-200 dark:focus-visible:ring-slate-800 dark:focus-visible:ring-offset-slate-950 dark:data-[state=checked]:bg-slate-50 dark:data-[state=unchecked]:bg-slate-800",e),...t,ref:s,children:r.jsxRuntimeExports.jsx(Oe.Thumb,{className:u.cn("pointer-events-none block h-5 w-5 rounded-full bg-white shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0 dark:bg-slate-950")})}));Yt.displayName=Oe.Root.displayName;const Ae=ce.cva("inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Kt=f.forwardRef(({className:e,variant:t,size:s,asChild:o=!1,...n},l)=>{const a=o?dn.Slot:"button";return r.jsxRuntimeExports.jsx(a,{className:u.cn(Ae({variant:t,size:s,className:e})),ref:l,...n})});Kt.displayName="Button";const wr=le.Root,Jt=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx(le.Item,{ref:s,className:u.cn("border-b",e),...t}));Jt.displayName="AccordionItem";const Qt=f.forwardRef(({className:e,children:t,...s},o)=>r.jsxRuntimeExports.jsx(le.Header,{className:"flex",children:r.jsxRuntimeExports.jsxs(le.Trigger,{ref:o,className:u.cn("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...s,children:[t,r.jsxRuntimeExports.jsx(G.ChevronDownIcon,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})}));Qt.displayName=le.Trigger.displayName;const Xt=f.forwardRef(({className:e,children:t,...s},o)=>r.jsxRuntimeExports.jsx(le.Content,{ref:o,className:u.cn("text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",e),...s,children:r.jsxRuntimeExports.jsx("div",{className:"pb-4 pt-0",children:t})}));Xt.displayName=le.Content.displayName;const Rr=ce.cva("relative w-full rounded-lg border px-4 py-3 text-sm [&:has(svg)]:pl-11 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Zt=f.forwardRef(({className:e,variant:t,...s},o)=>r.jsxRuntimeExports.jsx("div",{ref:o,role:"alert",className:u.cn(Rr({variant:t}),e),...s}));Zt.displayName="Alert";const es=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx("h5",{ref:s,className:u.cn("mb-1 font-medium leading-none tracking-tight",e),...t}));es.displayName="AlertTitle";const ts=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx("div",{ref:s,className:u.cn("text-sm [&_p]:leading-relaxed",e),...t}));ts.displayName="AlertDescription";const ss=ce.cva("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}}),kr=({className:e,variant:t,...s})=>r.jsxRuntimeExports.jsx("div",{className:u.cn(ss({variant:t}),e),...s}),Nr=W.Root,Sr=W.Trigger,os=({className:e,...t})=>r.jsxRuntimeExports.jsx(W.Portal,{className:u.cn(e),...t});os.displayName=W.Portal.displayName;const ns=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx(W.Overlay,{className:u.cn("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:s}));ns.displayName=W.Overlay.displayName;const rs=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsxs(os,{children:[r.jsxRuntimeExports.jsx(ns,{}),r.jsxRuntimeExports.jsx(W.Content,{ref:s,className:u.cn("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full",e),...t})]}));rs.displayName=W.Content.displayName;const as=({className:e,...t})=>r.jsxRuntimeExports.jsx("div",{className:u.cn("flex flex-col space-y-2 text-center sm:text-left",e),...t});as.displayName="AlertDialogHeader";const is=({className:e,...t})=>r.jsxRuntimeExports.jsx("div",{className:u.cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});is.displayName="AlertDialogFooter";const ls=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx(W.Title,{ref:s,className:u.cn("text-lg font-semibold",e),...t}));ls.displayName=W.Title.displayName;const cs=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx(W.Description,{ref:s,className:u.cn("text-sm text-muted-foreground",e),...t}));cs.displayName=W.Description.displayName;const ds=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx(W.Action,{ref:s,className:u.cn(Ae(),e),...t}));ds.displayName=W.Action.displayName;const us=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx(W.Cancel,{ref:s,className:u.cn(Ae({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));us.displayName=W.Cancel.displayName;const ot=P.Root,ms=P.Trigger,ps=({className:e,...t})=>r.jsxRuntimeExports.jsx(P.Portal,{className:u.cn(e),...t});ps.displayName=P.Portal.displayName;const fs=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx(P.Overlay,{ref:s,className:u.cn("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));fs.displayName=P.Overlay.displayName;const _e=f.forwardRef(({className:e,children:t,...s},o)=>r.jsxRuntimeExports.jsxs(ps,{children:[r.jsxRuntimeExports.jsx(fs,{}),r.jsxRuntimeExports.jsxs(P.Content,{ref:o,className:u.cn("fixed left-[50%] top-[50%] z-[999] grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full",e),...s,children:[t,r.jsxRuntimeExports.jsxs(P.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[r.jsxRuntimeExports.jsx(G.Cross2Icon,{className:"h-4 w-4"}),r.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));_e.displayName=P.Content.displayName;const xs=({className:e,...t})=>r.jsxRuntimeExports.jsx("div",{className:u.cn("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});xs.displayName="DialogHeader";const gs=({className:e,...t})=>r.jsxRuntimeExports.jsx("div",{className:u.cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});gs.displayName="DialogFooter";const hs=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx(P.Title,{ref:s,className:u.cn("text-lg font-semibold leading-none tracking-tight",e),...t}));hs.displayName=P.Title.displayName;const bs=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx(P.Description,{ref:s,className:u.cn("text-sm text-muted-foreground",e),...t}));bs.displayName=P.Description.displayName;const vs=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx("div",{ref:s,className:u.cn("rounded-xl border bg-card text-card-foreground shadow",e),...t}));vs.displayName="Card";const ys=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx("div",{ref:s,className:u.cn("flex flex-col space-y-1.5 p-6",e),...t}));ys.displayName="CardHeader";const js=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx("h3",{ref:s,className:u.cn("font-semibold leading-none tracking-tight",e),...t}));js.displayName="CardTitle";const ws=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx("p",{ref:s,className:u.cn("text-sm text-muted-foreground",e),...t}));ws.displayName="CardDescription";const Rs=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx("div",{ref:s,className:u.cn("p-6 pt-0",e),...t}));Rs.displayName="CardContent";const ks=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx("div",{ref:s,className:u.cn(" flex items-center p-6 pt-0",e),...t}));ks.displayName="CardFooter";const Ns=f.forwardRef(({className:e,type:t,...s},o)=>r.jsxRuntimeExports.jsx("input",{type:t,className:u.cn("flex h-9 w-full rounded-md border border-border bg-background px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...s}));Ns.displayName="Input";const Cr=ce.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ss=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx(kt.Root,{ref:s,className:u.cn(Cr(),e),...t}));Ss.displayName=kt.Root.displayName;const Cs=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx("textarea",{className:u.cn("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:s,...t}));Cs.displayName="Textarea";const Es=f.forwardRef(({className:e,children:t,...s},o)=>r.jsxRuntimeExports.jsxs(ae.Root,{ref:o,className:u.cn("relative overflow-hidden",e),...s,children:[r.jsxRuntimeExports.jsx(ae.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),r.jsxRuntimeExports.jsx(nt,{}),r.jsxRuntimeExports.jsx(ae.Corner,{})]}));Es.displayName=ae.Root.displayName;const nt=f.forwardRef(({className:e,orientation:t="vertical",...s},o)=>r.jsxRuntimeExports.jsx(ae.ScrollAreaScrollbar,{ref:o,orientation:t,className:u.cn("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 border-t border-t-transparent p-[1px]",e),...s,children:r.jsxRuntimeExports.jsx(ae.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));nt.displayName=ae.ScrollAreaScrollbar.displayName;const As=de.Root,rt=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx(de.List,{ref:s,className:u.cn("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));rt.displayName=de.List.displayName;const ke=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx(de.Trigger,{ref:s,className:u.cn("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",e),...t}));ke.displayName=de.Trigger.displayName;const Ne=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx(de.Content,{ref:s,className:u.cn("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));Ne.displayName=de.Content.displayName;const Er=pe.Portal,Ar=pe.Provider,_r=pe.Root,Br=pe.Trigger,_s=f.forwardRef(({className:e,sideOffset:t=4,...s},o)=>r.jsxRuntimeExports.jsx(pe.Content,{ref:o,sideOffset:t,className:u.cn("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...s}));_s.displayName=pe.Content.displayName;const Tr=he.Root,Pr=he.Trigger,Bs=f.forwardRef(({className:e,align:t="center",sideOffset:s=4,...o},n)=>r.jsxRuntimeExports.jsx(he.Portal,{children:r.jsxRuntimeExports.jsx(he.Content,{ref:n,align:t,sideOffset:s,className:u.cn("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));Bs.displayName=he.Content.displayName;const Ir=B.Menu,Mr=B.Group,Dr=B.Portal,Or=B.Sub,Lr=B.RadioGroup,Ts=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx(B.Root,{ref:s,className:u.cn("flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm",e),...t}));Ts.displayName=B.Root.displayName;const Ps=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx(B.Trigger,{ref:s,className:u.cn("flex cursor-default select-none items-center rounded-sm px-3 py-1 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",e),...t}));Ps.displayName=B.Trigger.displayName;const Is=f.forwardRef(({className:e,inset:t,children:s,...o},n)=>r.jsxRuntimeExports.jsxs(B.SubTrigger,{ref:n,className:u.cn("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",e),...o,children:[s,r.jsxRuntimeExports.jsx(G.ChevronRightIcon,{className:"ml-auto h-4 w-4"})]}));Is.displayName=B.SubTrigger.displayName;const Ms=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx(B.SubContent,{ref:s,className:u.cn("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Ms.displayName=B.SubContent.displayName;const Ds=f.forwardRef(({className:e,align:t="start",alignOffset:s=-4,sideOffset:o=8,...n},l)=>r.jsxRuntimeExports.jsx(B.Portal,{children:r.jsxRuntimeExports.jsx(B.Content,{ref:l,align:t,alignOffset:s,sideOffset:o,className:u.cn("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));Ds.displayName=B.Content.displayName;const Os=f.forwardRef(({className:e,inset:t,...s},o)=>r.jsxRuntimeExports.jsx(B.Item,{ref:o,className:u.cn("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...s}));Os.displayName=B.Item.displayName;const Ls=f.forwardRef(({className:e,children:t,checked:s,...o},n)=>r.jsxRuntimeExports.jsxs(B.CheckboxItem,{ref:n,className:u.cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:s,...o,children:[r.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r.jsxRuntimeExports.jsx(B.ItemIndicator,{children:r.jsxRuntimeExports.jsx(G.CheckIcon,{className:"h-4 w-4"})})}),t]}));Ls.displayName=B.CheckboxItem.displayName;const zs=f.forwardRef(({className:e,children:t,...s},o)=>r.jsxRuntimeExports.jsxs(B.RadioItem,{ref:o,className:u.cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...s,children:[r.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r.jsxRuntimeExports.jsx(B.ItemIndicator,{children:r.jsxRuntimeExports.jsx(G.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));zs.displayName=B.RadioItem.displayName;const Vs=f.forwardRef(({className:e,inset:t,...s},o)=>r.jsxRuntimeExports.jsx(B.Label,{ref:o,className:u.cn("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...s}));Vs.displayName=B.Label.displayName;const Fs=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx(B.Separator,{ref:s,className:u.cn("-mx-1 my-1 h-px bg-muted",e),...t}));Fs.displayName=B.Separator.displayName;const Us=({className:e,...t})=>r.jsxRuntimeExports.jsx("span",{className:u.cn("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Us.displayname="MenubarShortcut";const zr=Ce.Root,Vr=Ce.Trigger,qs=f.forwardRef(({className:e,align:t="center",sideOffset:s=4,...o},n)=>r.jsxRuntimeExports.jsx(Ce.Content,{ref:n,align:t,sideOffset:s,className:u.cn("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o}));qs.displayName=Ce.Content.displayName;const Fr=F.Root,Ur=F.Group,qr=F.Value,$s=f.forwardRef(({className:e,children:t,...s},o)=>r.jsxRuntimeExports.jsxs(F.Trigger,{ref:o,className:u.cn("flex h-9 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),...s,children:[t,r.jsxRuntimeExports.jsx(F.Icon,{asChild:!0,children:r.jsxRuntimeExports.jsx(G.CaretSortIcon,{className:"h-4 w-4 opacity-50"})})]}));$s.displayName=F.Trigger.displayName;const Gs=f.forwardRef(({className:e,children:t,position:s="popper",...o},n)=>r.jsxRuntimeExports.jsx(F.Portal,{children:r.jsxRuntimeExports.jsx(F.Content,{ref:n,className:u.cn("relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:s,...o,children:r.jsxRuntimeExports.jsx(F.Viewport,{className:u.cn("p-1",s==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t})})}));Gs.displayName=F.Content.displayName;const Ws=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx(F.Label,{ref:s,className:u.cn("px-2 py-1.5 text-sm font-semibold",e),...t}));Ws.displayName=F.Label.displayName;const Hs=f.forwardRef(({className:e,children:t,...s},o)=>r.jsxRuntimeExports.jsxs(F.Item,{ref:o,className:u.cn("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...s,children:[r.jsxRuntimeExports.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:r.jsxRuntimeExports.jsx(F.ItemIndicator,{children:r.jsxRuntimeExports.jsx(G.CheckIcon,{className:"h-4 w-4"})})}),r.jsxRuntimeExports.jsx(F.ItemText,{children:t})]}));Hs.displayName=F.Item.displayName;const Ys=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx(F.Separator,{ref:s,className:u.cn("-mx-1 my-1 h-px bg-muted",e),...t}));Ys.displayName=F.Separator.displayName;const $r=P.Root,Gr=P.Trigger,Wr=P.Close,Ks=({className:e,...t})=>r.jsxRuntimeExports.jsx(P.Portal,{className:u.cn(e),...t});Ks.displayName=P.Portal.displayName;const Js=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx(P.Overlay,{className:u.cn("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:s}));Js.displayName=P.Overlay.displayName;const Hr=ce.cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Qs=f.forwardRef(({side:e="right",className:t,children:s,...o},n)=>r.jsxRuntimeExports.jsxs(Ks,{children:[r.jsxRuntimeExports.jsx(Js,{}),r.jsxRuntimeExports.jsxs(P.Content,{ref:n,className:u.cn(Hr({side:e}),t),...o,children:[s,r.jsxRuntimeExports.jsxs(P.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[r.jsxRuntimeExports.jsx(G.Cross2Icon,{className:"h-4 w-4"}),r.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Qs.displayName=P.Content.displayName;const Xs=({className:e,...t})=>r.jsxRuntimeExports.jsx("div",{className:u.cn("flex flex-col space-y-2 text-center sm:text-left",e),...t});Xs.displayName="SheetHeader";const Zs=({className:e,...t})=>r.jsxRuntimeExports.jsx("div",{className:u.cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Zs.displayName="SheetFooter";const eo=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx(P.Title,{ref:s,className:u.cn("text-lg font-semibold text-foreground",e),...t}));eo.displayName=P.Title.displayName;const to=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx(P.Description,{ref:s,className:u.cn("text-sm text-muted-foreground",e),...t}));to.displayName=P.Description.displayName;const Yr=M.Root,Kr=M.Trigger,Jr=M.Group,Qr=M.Portal,Xr=M.Sub,Zr=M.RadioGroup,so=f.forwardRef(({className:e,inset:t,children:s,...o},n)=>r.jsxRuntimeExports.jsxs(M.SubTrigger,{ref:n,className:u.cn("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...o,children:[s,r.jsxRuntimeExports.jsx(G.ChevronRightIcon,{className:"ml-auto h-4 w-4"})]}));so.displayName=M.SubTrigger.displayName;const oo=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx(M.SubContent,{ref:s,className:u.cn("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));oo.displayName=M.SubContent.displayName;const no=f.forwardRef(({className:e,sideOffset:t=4,...s},o)=>r.jsxRuntimeExports.jsx(M.Portal,{children:r.jsxRuntimeExports.jsx(M.Content,{ref:o,sideOffset:t,className:u.cn("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...s})}));no.displayName=M.Content.displayName;const ro=f.forwardRef(({className:e,inset:t,...s},o)=>r.jsxRuntimeExports.jsx(M.Item,{ref:o,className:u.cn("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...s}));ro.displayName=M.Item.displayName;const ao=f.forwardRef(({className:e,children:t,checked:s,...o},n)=>r.jsxRuntimeExports.jsxs(M.CheckboxItem,{ref:n,className:u.cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:s,...o,children:[r.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r.jsxRuntimeExports.jsx(M.ItemIndicator,{children:r.jsxRuntimeExports.jsx(G.CheckIcon,{className:"h-4 w-4"})})}),t]}));ao.displayName=M.CheckboxItem.displayName;const io=f.forwardRef(({className:e,children:t,...s},o)=>r.jsxRuntimeExports.jsxs(M.RadioItem,{ref:o,className:u.cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...s,children:[r.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r.jsxRuntimeExports.jsx(M.ItemIndicator,{children:r.jsxRuntimeExports.jsx(G.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));io.displayName=M.RadioItem.displayName;const lo=f.forwardRef(({className:e,inset:t,...s},o)=>r.jsxRuntimeExports.jsx(M.Label,{ref:o,className:u.cn("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...s}));lo.displayName=M.Label.displayName;const co=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx(M.Separator,{ref:s,className:u.cn("-mx-1 my-1 h-px bg-muted",e),...t}));co.displayName=M.Separator.displayName;const uo=({className:e,...t})=>r.jsxRuntimeExports.jsx("span",{className:u.cn("ml-auto text-xs tracking-widest opacity-60",e),...t});uo.displayName="DropdownMenuShortcut";const mo=f.forwardRef(({className:e,orientation:t="horizontal",decorative:s=!0,...o},n)=>r.jsxRuntimeExports.jsx(Nt.Root,{ref:n,decorative:s,orientation:t,className:u.cn("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...o}));mo.displayName=Nt.Root.displayName;const ea=1,ta=1e6;let Ie=0;function sa(){return Ie=(Ie+1)%Number.MAX_VALUE,Ie.toString()}const Me=new Map,gt=e=>{if(Me.has(e))return;const t=setTimeout(()=>{Me.delete(e),ge({type:"REMOVE_TOAST",toastId:e})},ta);Me.set(e,t)},po=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,ea)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(s=>s.id===t.toast.id?{...s,...t.toast}:s)};case"DISMISS_TOAST":{const{toastId:s}=t;return s?gt(s):e.toasts.forEach(o=>{gt(o.id)}),{...e,toasts:e.toasts.map(o=>o.id===s||s===void 0?{...o,open:!1}:o)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(s=>s.id!==t.toastId)}}},je=[];let we={toasts:[]};function ge(e){we=po(we,e),je.forEach(t=>{t(we)})}function fo({...e}){const t=sa(),s=n=>ge({type:"UPDATE_TOAST",toast:{...n,id:t}}),o=()=>ge({type:"DISMISS_TOAST",toastId:t});return ge({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:n=>{n||o()}}}),{id:t,dismiss:o,update:s}}function at(){const[e,t]=f.useState(we);return f.useEffect(()=>(je.push(t),()=>{const s=je.indexOf(t);s>-1&&je.splice(s,1)}),[e]),{...e,toast:fo,dismiss:s=>ge({type:"DISMISS_TOAST",toastId:s})}}const oa=Q.Provider,xo=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx(Q.Viewport,{ref:s,className:u.cn("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));xo.displayName=Q.Viewport.displayName;const na=ce.cva("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),go=f.forwardRef(({className:e,variant:t,...s},o)=>r.jsxRuntimeExports.jsx(Q.Root,{ref:o,className:u.cn(na({variant:t}),e),...s}));go.displayName=Q.Root.displayName;const ra=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx(Q.Action,{ref:s,className:u.cn("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));ra.displayName=Q.Action.displayName;const ho=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx(Q.Close,{ref:s,className:u.cn("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:r.jsxRuntimeExports.jsx(G.Cross2Icon,{className:"h-4 w-4"})}));ho.displayName=Q.Close.displayName;const bo=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx(Q.Title,{ref:s,className:u.cn("text-sm font-semibold [&+div]:text-xs",e),...t}));bo.displayName=Q.Title.displayName;const vo=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx(Q.Description,{ref:s,className:u.cn("text-sm opacity-90",e),...t}));vo.displayName=Q.Description.displayName;function aa(){const{toasts:e}=at();return r.jsxRuntimeExports.jsxs(oa,{children:[e.map(({id:t,title:s,description:o,action:n,...l})=>r.jsxRuntimeExports.jsxs(go,{...l,children:[r.jsxRuntimeExports.jsxs("div",{className:"grid gap-1",children:[s&&r.jsxRuntimeExports.jsx(bo,{children:s}),o&&r.jsxRuntimeExports.jsx(vo,{children:o})]}),n,r.jsxRuntimeExports.jsx(ho,{})]},t)),r.jsxRuntimeExports.jsx(xo,{})]})}const ia=({className:e,...t})=>r.jsxRuntimeExports.jsx("div",{className:u.cn("animate-pulse rounded-md bg-primary/10",e),...t}),it=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx(K.Command,{ref:s,className:u.cn("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));it.displayName=K.Command.displayName;const la=({children:e,...t})=>r.jsxRuntimeExports.jsx(ot,{...t,children:r.jsxRuntimeExports.jsx(_e,{className:"overflow-hidden p-0",children:r.jsxRuntimeExports.jsx(it,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),yo=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[r.jsxRuntimeExports.jsx(G.MagnifyingGlassIcon,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),r.jsxRuntimeExports.jsx(K.Command.Input,{ref:s,className:u.cn("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));yo.displayName=K.Command.Input.displayName;const jo=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx(K.Command.List,{ref:s,className:u.cn("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));jo.displayName=K.Command.List.displayName;const wo=f.forwardRef((e,t)=>r.jsxRuntimeExports.jsx(K.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));wo.displayName=K.Command.Empty.displayName;const Ro=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx(K.Command.Group,{ref:s,className:u.cn("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));Ro.displayName=K.Command.Group.displayName;const ko=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx(K.Command.Separator,{ref:s,className:u.cn("-mx-1 h-px bg-border",e),...t}));ko.displayName=K.Command.Separator.displayName;const No=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx(K.Command.Item,{ref:s,className:u.cn("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t}));No.displayName=K.Command.Item.displayName;const So=({className:e,...t})=>r.jsxRuntimeExports.jsx("span",{className:u.cn("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});So.displayName="CommandShortcut";const ca=D.Root,da=D.Trigger,ua=D.Group,ma=D.Portal,pa=D.Sub,fa=D.RadioGroup,Co=f.forwardRef(({className:e,inset:t,children:s,...o},n)=>r.jsxRuntimeExports.jsxs(D.SubTrigger,{ref:n,className:u.cn("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",e),...o,children:[s,r.jsxRuntimeExports.jsx(G.ChevronRightIcon,{className:"ml-auto h-4 w-4"})]}));Co.displayName=D.SubTrigger.displayName;const Eo=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx(D.SubContent,{ref:s,className:u.cn("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Eo.displayName=D.SubContent.displayName;const Ao=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx(D.Portal,{children:r.jsxRuntimeExports.jsx(D.Content,{ref:s,className:u.cn("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t})}));Ao.displayName=D.Content.displayName;const _o=f.forwardRef(({className:e,inset:t,...s},o)=>r.jsxRuntimeExports.jsx(D.Item,{ref:o,className:u.cn("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...s}));_o.displayName=D.Item.displayName;const Bo=f.forwardRef(({className:e,children:t,checked:s,...o},n)=>r.jsxRuntimeExports.jsxs(D.CheckboxItem,{ref:n,className:u.cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:s,...o,children:[r.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r.jsxRuntimeExports.jsx(D.ItemIndicator,{children:r.jsxRuntimeExports.jsx(G.CheckIcon,{className:"h-4 w-4"})})}),t]}));Bo.displayName=D.CheckboxItem.displayName;const To=f.forwardRef(({className:e,children:t,...s},o)=>r.jsxRuntimeExports.jsxs(D.RadioItem,{ref:o,className:u.cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...s,children:[r.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r.jsxRuntimeExports.jsx(D.ItemIndicator,{children:r.jsxRuntimeExports.jsx(G.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));To.displayName=D.RadioItem.displayName;const Po=f.forwardRef(({className:e,inset:t,...s},o)=>r.jsxRuntimeExports.jsx(D.Label,{ref:o,className:u.cn("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...s}));Po.displayName=D.Label.displayName;const Io=f.forwardRef(({className:e,...t},s)=>r.jsxRuntimeExports.jsx(D.Separator,{ref:s,className:u.cn("-mx-1 my-1 h-px bg-border",e),...t}));Io.displayName=D.Separator.displayName;const Mo=({className:e,...t})=>r.jsxRuntimeExports.jsx("span",{className:u.cn("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Mo.displayName="ContextMenuShortcut";const xa=e=>{try{const t=document.getElementById("icon-picker-field"),s=document.createElement("div");Sn.render(r.jsxRuntimeExports.jsx(wt.IconPickerItem,{value:e}),s),t.appendChild(s),s.hidden=!0;let o=s.innerHTML;setTimeout(()=>t.removeChild(s),100);const l=new DOMParser().parseFromString(o,"image/svg+xml"),a=l.querySelector("svg");return a&&(a.removeAttribute("width"),a.removeAttribute("height")),new XMLSerializer().serializeToString(l)}catch(t){return console.error(t),""}},ga=({value:e,onChange:t})=>{const s=o=>{t("<svg />");const n=xa(o);t(n)};return r.jsxRuntimeExports.jsxs("div",{className:"mt-1 flex h-20 items-center gap-x-2",id:"icon-picker-field",children:[r.jsxRuntimeExports.jsxs("div",{className:"group relative h-12 w-12",children:[r.jsxRuntimeExports.jsx("div",{dangerouslySetInnerHTML:{__html:e?e.replace("<svg",'<svg class="h-5 w-5"'):"<svg class='h-5 w-5' />"},className:"absolute left-1/2 top-1/2 z-0 -translate-x-1/2 -translate-y-1/2 transform cursor-pointer bg-white"}),r.jsxRuntimeExports.jsx(wt,{value:e?"BiSolidGrid":null,onChange:s,pickButtonStyle:{position:"relative",height:"48px",width:"48px",border:"1px solid #BBBBBB",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"6px",backgroundColor:"transparent",zIndex:1},searchInputStyle:{backgroundColor:"transparent",width:"100%",border:"1px solid #BBBBBB",margin:"0px 10px",padding:"10px"}})]}),r.jsxRuntimeExports.jsx("textarea",{value:e,onChange:o=>t(o.target.value),className:"h-full w-full rounded-sm border border-foreground/20 px-2 py-1 text-xs shadow-sm focus:border-gray-500/80 focus:outline-none focus:ring-0",placeholder:"Choose icon or enter svg"})]})},ha=k.lazy(()=>Promise.resolve().then(()=>require("./UnsplashImages-NGskB93R.cjs"))),ba=k.lazy(()=>Promise.resolve().then(()=>require("./UploadImages-Oh7Glr9A.cjs"))),Do=({isModalView:e=!1,onSelect:t=()=>{}})=>{const[s,o]=k.useState("upload");return r.jsxRuntimeExports.jsxs("div",{className:"flex h-full flex-col",children:[r.jsxRuntimeExports.jsx("div",{className:"flex items-center justify-between rounded-md bg-background/30 p-1",children:r.jsxRuntimeExports.jsx("h1",{className:"px-1 font-semibold",children:e?"Select or upload images":"Images"})}),r.jsxRuntimeExports.jsxs(As,{value:s,onValueChange:n=>o(n),className:"flex h-full w-full flex-col py-2",children:[r.jsxRuntimeExports.jsxs(rt,{className:"w-full",children:[r.jsxRuntimeExports.jsx(ke,{value:"upload",className:"w-1/2",children:"Upload"}),r.jsxRuntimeExports.jsx(ke,{value:"unsplash",className:"w-1/2",children:"Unsplash"})]}),s==="unsplash"?r.jsxRuntimeExports.jsx(Ne,{value:"unsplash",className:"flex h-full flex-col overflow-hidden",children:r.jsxRuntimeExports.jsx(k.Suspense,{fallback:r.jsxRuntimeExports.jsx("div",{className:"h-64 w-full animate-pulse bg-gray-100"}),children:r.jsxRuntimeExports.jsx(ha,{isModalView:e,onSelect:t})})}):r.jsxRuntimeExports.jsx(Ne,{value:"upload",className:"flex h-full flex-col overflow-hidden",children:r.jsxRuntimeExports.jsx(k.Suspense,{fallback:r.jsxRuntimeExports.jsx("div",{className:"h-64 w-full animate-pulse bg-gray-100"}),children:r.jsxRuntimeExports.jsx(ba,{isModalView:e,onSelect:t})})})]})]})},va=Object.freeze(Object.defineProperty({__proto__:null,default:Do},Symbol.toStringTag,{value:"Module"})),ht=({children:e,onSelect:t})=>{const[s,o]=k.useState(!1),n=(...l)=>{t.call(void 0,...l),o(!1)};return r.jsxRuntimeExports.jsxs(ot,{open:s,onOpenChange:l=>o(l),children:[r.jsxRuntimeExports.jsx(ms,{asChild:!0,children:e}),r.jsxRuntimeExports.jsx(_e,{className:"flex h-3/4 max-w-5xl",children:r.jsxRuntimeExports.jsx("div",{className:"h-full w-full",children:r.jsxRuntimeExports.jsx(Do,{isModalView:!0,onSelect:n})})})]})},ya=({value:e,onChange:t,id:s,onBlur:o})=>r.jsxRuntimeExports.jsxs("div",{className:"mt-1.5 flex items-center gap-x-3",children:[e?r.jsxRuntimeExports.jsx("img",{src:e,className:"h-20 w-20 overflow-hidden rounded-md border object-cover",alt:""}):r.jsxRuntimeExports.jsx(ht,{onSelect:t,children:r.jsxRuntimeExports.jsx("div",{className:"h-20 w-20 cursor-pointer rounded-md border bg-[radial-gradient(#AAA,transparent_1px)] duration-300 [background-size:10px_10px] hover:border-gray-400"})}),r.jsxRuntimeExports.jsxs("div",{className:"flex w-3/5 flex-col",children:[r.jsxRuntimeExports.jsx(ht,{onSelect:t,children:r.jsxRuntimeExports.jsx("small",{className:"cursor-pointer rounded-full bg-gray-600 px-2 py-1 text-center text-xs text-white hover:bg-gray-500 dark:bg-gray-700",children:e||!i.isEmpty(e)?"Replace Image":"Choose Image"})}),r.jsxRuntimeExports.jsx("small",{className:"-pl-4 pt-2 text-center text-xs text-gray-600",children:"OR"}),r.jsxRuntimeExports.jsx("input",{type:"url",className:"text-xs",placeholder:"Enter image URL",value:e,onBlur:({target:{value:n}})=>o(s,n),onChange:n=>t(n.target.value)})]})]}),ja=({id:e,placeholder:t,value:s,onChange:o,onBlur:n})=>{const l={toolbar:[["bold","italic","underline","strike","blockquote"],[{list:"ordered"},{list:"bullet"}],[{color:[]},{background:[]},{align:[]}],["link","clean"]]},a=["header","font","list","bold","italic","underline","strike","blockquote","color","background","align","link","image"];return typeof window>"u"?null:r.jsxRuntimeExports.jsx(Cn,{id:e,value:s,onBlur:d=>n(e,d),onChange:d=>o(d),modules:l,formats:a,placeholder:t,className:"mt-1 rounded-md"})},wa=({schema:e,formData:t,onChange:s})=>{const[o,n]=k.useState([]),l=ie("getPages",()=>[]),{type:a="page",href:d="",target:g="self"}=t;return k.useEffect(()=>{(async()=>{const c=await l();n(c||[])})()},[]),r.jsxRuntimeExports.jsxs("div",{children:[r.jsxRuntimeExports.jsx("span",{className:"text-xs font-medium",children:(e==null?void 0:e.title)??"Link"}),r.jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-y-1.5",children:[r.jsxRuntimeExports.jsx("select",{name:"type",value:a,onChange:c=>s({...t,type:c.target.value}),children:[{const:"page",title:"Open Page"},{const:"url",title:"Open URL"},{const:"email",title:"Compose Email"},{const:"telephone",title:"Call Phone"},{const:"scroll",title:"Scroll to element"}].map(c=>r.jsxRuntimeExports.jsx("option",{value:c.const,children:c.title},c.const))}),a==="page"?r.jsxRuntimeExports.jsxs("select",{name:"href",placeholder:"Choose Page",value:d,onChange:c=>s({...t,href:c.target.value}),children:[r.jsxRuntimeExports.jsx("option",{value:"",children:"Choose page"}),i.map(o,c=>r.jsxRuntimeExports.jsx("option",{value:c.slug,children:c.name},c.uuid))]}):r.jsxRuntimeExports.jsx("input",{name:"href",type:"text",value:d,onChange:c=>s({...t,href:c.target.value}),placeholder:a==="page"||a==="url"?"Enter URL":a==="scroll"?"#ElementID":"Enter detail"}),(a==="page"||a==="url")&&r.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-x-2",children:[r.jsxRuntimeExports.jsx("input",{type:"checkbox",defaultChecked:g==="_blank",className:"cursor-pointer rounded-md border border-border",onChange:()=>s({...t,target:g==="_blank"?"_self":"_blank"})}),r.jsxRuntimeExports.jsx("span",{className:"pt-1 text-xs",children:"Open in new tab"})]})]})]})},Ra=()=>{const[e]=ue(),[,t]=be(),{addBlocks:s}=re(),{toast:o}=at(),n=k.useCallback((a,d,g)=>{var j;for(let C=0;C<a.length;C++){const{_id:O}=a[C];a[C]._id=ne.generateUUID();const V=i.filter(a,{_parent:O});for(let _=0;_<V.length;_++)V[_]._parent=a[C]._id}const c=i.first(a);let x,R;return d&&(x=i.find(e,{_id:d}),a[0]._parent=d,R=d),!(x?Le(x._type,c._type):!0)&&x&&(a[0]._parent=x._parent,R=x._parent),s(a,R,g),t([(j=i.first(a))==null?void 0:j._id]),i.first(a)},[e,t]);return{addCoreBlock:k.useCallback((a,d,g)=>{if(i.has(a,"blocks")){const _=a.blocks;return n(_,d,g)}const c=ne.generateUUID(),x=zt(a.props),R=[];i.forIn(x,(_,I)=>{if(i.startsWith(_,X.SLOT_KEY)){const $=_.replace(X.SLOT_KEY,"");R.push({_id:$,_type:"Slot",_parent:c,_name:a.props[I].name,_styles:a.props[I].styles,_emptyStyles:a.props[I].emptyStyles})}});const S={_type:a.type,_id:c,...x};let j,C;if(d&&(j=i.find(e,{_id:d}),S._parent=d,C=d),!Kn(j==null?void 0:j._type,a.type)){o({variant:"destructive",title:"Error",description:`"${a.type}" cannot be added under "${j?j==null?void 0:j._type:"root"}"`}),t([]);return}!(j?Le(j._type,a.type):!0)&&j&&(S._parent=j._parent,C=j._parent);const V=[S,...R];return s(V,C,g),t([S._id]),S},[n,e,t]),addPredefinedBlock:n}},bt={xs:420,sm:620,md:768,lg:1024,xl:1280,"2xl":1536},vt=["xs","sm","md","lg","xl","2xl"];function ka(e,t){if(t===null)return"baseClasses";const s=t.mq;if(s==="xs"||t.dark||t.mod!=="")return"classes";let o="baseClasses",n=vt.indexOf(s);for(;n>0;){const l=vt[n-1];if(i.find(e,{mq:l,property:t.property})){o="classes";break}n--}return o}const yt=[];function Na(e="",t="",s=[]){e=e.trim().replace(/ +/g,"");let o=i.filter(i.map(e.split(" "),u.constructClassObject),c=>!i.isNull(c)),n=i.filter(i.map(t.split(" "),u.constructClassObject),c=>!i.isNull(c));n=i.filter(n,c=>!i.includes(yt,c.property));const l=[],a=[];i.each(s,c=>{const x=u.constructClassObject(c),R=i.find(o,i.pick(x,["dark","mq","mod","property"]));if(R&&(o=i.filter(o,S=>S.fullCls!==(R==null?void 0:R.fullCls))),l.push(x),x.mq==="xs"&&!x.dark&&x.mod===""&&(n=i.filter(n,S=>S.property!==x.property)),ka(o,x)==="baseClasses"&&!i.includes(yt,x.property)){const S=i.find(n,i.pick(x,["property"]));R&&(n=i.filter(n,j=>j.fullCls!==(S==null?void 0:S.fullCls))),a.push({...x,fullCls:x.cls,mq:"xs"})}});const d=i.map(i.sortBy([...o,...l],c=>bt[c.mq]),"fullCls").join(" ");return`${i.map(i.sortBy([...n,...a],c=>bt[c.mq]),"fullCls").join(" ").trim()},${d.trim()}`.trim().replace(/ +/g,"")}const ve=p.atom([]);ve.debugLabel="selectedStylingBlocksAtom";const Oo=()=>p.useAtom(ve),Sa=e=>{const t=e.replace(X.STYLES_KEY,"").split(",");return{baseClasses:t[0],classes:t[1]}},Ca=p.atom(null,(e,t,{blockIds:s,newClasses:o})=>{const n=i.filter(e(Ge),a=>s.includes(e(a)._id)),l=i.first(e(ve));return i.map(n,a=>{const d=e(a),g=i.get(d,l.prop,`${X.STYLES_KEY},`),{baseClasses:c,classes:x}=Sa(g);return{ids:[d._id],props:{[l.prop]:`${X.STYLES_KEY}${Na(x,c,o)}`}}})}),Ea=()=>{const e=p.useSetAtom(Ca),{updateBlocks:t,updateBlocksRuntime:s}=re();return k.useCallback((o,n,l=!1)=>{const a=e({blockIds:o,newClasses:n});if(!l){s(o,a[0].props);return}t(o,a[0].props)},[e])},Lo=()=>p.useAtom(Lt),zo=fe("canvasWidth",800),Vo=p.atom(e=>{const t=e(zo);return ne.getBreakpointValue(t).toLowerCase()}),Aa=()=>{const[e,t]=p.useAtom(zo),s=p.useAtomValue(Vo),[o,n]=Lo();return k.useEffect(()=>{o!=="xs"&&n(s)},[s,o,n]),[e,s,t]},_a=fe("canvasZoom",100),Ba=()=>p.useAtom(_a),Fo=p.atom([]),Uo=()=>{const[e,t]=p.useAtom(Fo),s=p.useSetAtom(lt),o=k.useCallback(n=>{t(n),s([])},[t,s]);return[e,o]},lt=p.atom([]),Ta=()=>{const[e,t]=p.useAtom(lt),s=p.useSetAtom(Fo),o=k.useCallback(n=>{t(n),s([])},[t,s]);return[e,o]},qo=fe("darkMode",!1),Pa=()=>{const[e,t]=p.useAtom(qo);return[e,t]},$o=()=>{const[e]=ue(),[,t]=be(),{addBlocks:s}=re();return k.useCallback((o,n=null)=>{const l=[];i.each(o,a=>{const d=e.find(S=>S._id===a);n||(n=d._parent);const x=i.filter(e,S=>i.isString(n)?S._parent===n:!d._parent).indexOf(d)+1,R=Xn(e,a,n);s(R,n,x),l.push(i.get(R,"0._id",""))}),t(l)},[e,t])},Ia=p.atom([]),Ma=()=>{const[e,t]=p.useAtom(Ia),s=k.useCallback(o=>{t(n=>i.includes(n,o)?i.without(n,o):[...n,o])},[t]);return[e,t,s]},Da=p.atom(""),Go=()=>p.useAtom(Da),Oa=()=>{const e=p.useAtomValue(te);return k.useCallback((t,s)=>{const o=i.map(e,n=>(i.includes(t,i.get(n,"_id"))&&i.set(n,"_parent",s),n));console.log("newBlocks",o)},[e])},La=()=>{console.warn("usePasteBlocks is not implemented");const e=p.useAtomValue(lt),[t,s]=Uo(),o=$o(),n=Oa();return{canPaste:k.useMemo(()=>t.length>0||e.length>0,[e,t]),pasteBlocks:k.useCallback(a=>{i.isEmpty(e)?n(t,a):o(e,a),s(()=>[])},[t,e,o,n,s])}},za=p.atom(!1),Va=()=>{const[e,t]=p.useAtom(za);return[e,t]},Fa=p.atom(null,(e,t,{blockIds:s,fullClasses:o})=>{const n=i.first(e(ve)),l=i.filter(e(Ge),a=>s.includes(e(a)._id));return i.map(l,a=>{const d=e(a),g=o;let{classes:c,baseClasses:x}=Yn(i.get(d,n.prop,"styles:,"));return i.each(g,R=>{const S=new RegExp(`(^| )${R.replace("[","\\[").replace("]","\\]")}($| )`,"g");c=c.replace(S," ").replace(/ +/g," ").trim();const j=i.first(R.split(":"));i.includes(["2xl","xl","lg","md","sm"],j)&&g.push(R.split(":").pop().trim())}),i.each(g,R=>{const S=new RegExp(`(^| )${R.replace("[","\\[").replace("]","\\]")}($| )`,"g");x=x.replace(S," ").replace(/ +/g," ").trim()}),{ids:[d._id],props:{[n.prop]:`${X.STYLES_KEY}${x},${c}`}}})}),Ua=()=>{const{updateBlocks:e}=re(),t=p.useSetAtom(Fa);return k.useCallback((s,o)=>{const n=t({blockIds:s,fullClasses:o});e(s,n[0].props)},[t])},Wo=p.atom(e=>{const t=i.first(e(ve)),s=e(Ye);if(!t||t.blockId!==i.get(s,"_id",null))return[];const n=i.get(s,t.prop,`${X.STYLES_KEY},`).replace(X.STYLES_KEY,"").split(",").join(" ");return i.filter(i.map(n.trim().split(" "),u.constructClassObject),l=>!i.isNull(l))}),qa=()=>p.useAtomValue(Wo),jt={xs:0,sm:1,md:2,lg:3,xl:4,"2xl":5},$a=p.atom(e=>{const t=e(Vo),s=e(Ke),o=e(qo),n=Ga(t);let l=i.filter(e(Wo),{mod:s});return i.startsWith(s,"_")||(l=i.filter(l,a=>n.includes(a.mq))),l=l.sort((a,d)=>jt[a.mq]-jt[d.mq]),o||(l=i.filter(l,{dark:!1})),l}),Ga=e=>{let t=[];switch(e){case"xs":t=["xs"];break;case"sm":t=["xs","sm"];break;case"md":t=["xs","sm","md"];break;case"lg":t=["xs","sm","md","lg"];break;case"xl":t=["xs","sm","md","lg","xl"];break;case"2xl":t=["xs","sm","md","lg","xl","2xl"];break;default:t=["xs"];break}return t},Wa=()=>p.useAtomValue($a),Ha=()=>p.useAtom(Ke),Ya=()=>{const{updateBlocks:e}=re();return k.useCallback((t,s,o)=>{e(t,s,o)},[e])},Ka=()=>{const{updateBlocksRuntime:e}=re();return k.useCallback((t,s)=>{e(t,s)},[e])},Ho={name:"",props:{},modalProps:{},backdropClose:!0},Ja=p.atom(Ho),Qa=()=>{const[e,t]=p.useAtom(Ja),s=k.useCallback((n,l={},a={})=>{t({name:n,props:l,modalProps:a})},[t]),o=k.useCallback((...n)=>{i.get(e,"props.onClose",()=>{})(...n),t(Ho)},[t,e]);return{activeModal:e,openModal:s,closeModal:o}},Xa=()=>(console.warn("useAllBlocks is deprecated, use useBlocksStore() instead"),p.useAtomValue(te)),Yo=p.atom(!1);Yo.debugLabel="readOnlyModeAtom";const Ko=p.atom("online");Ko.debugLabel="networkModeAtom";const Za=p.atom(!1);Za.debugLabel="codeEditorOpenAtom";const Jo=p.atom(!1);Jo.debugLabel="editLayerNameAtom";const ei=p.atom("");ei.debugLabel="activeLanguageAtom";const ti=p.atom("");ti.debugLabel="primaryLanguageAtom";const Qo=p.atom(null);Qo.debugLabel="canvasIframeAtom";const Xo=p.atom("outline");Xo.debugLabel="activePanelAtom";const Zo=p.atom("");Zo.debugLabel="showPredefinedBlockCategoryAtom";const en=p.atom({undoCount:0,redoCount:0});en.debugLabel="historyStatesAtom";const tn=p.atom("");tn.debugLabel="inlineEditingActiveAtom";const sn=p.atom(!1);sn.debugLabel="draggingFlagAtom";const on=p.atom("");on.debugLabel="draggedBlockIdAtom";const si=()=>p.useAtomValue(Yo),oi=p.atom(""),ni=p.atom(null),ri=()=>p.useAtom(oi),ai=()=>p.useAtom(ni),ii=fe("selectedBreakpoints",["XS","MD","XL"]),li=()=>{const[e,t]=p.useAtom(ii);return[e,t]},ci=()=>{const e=p.useSetAtom(en),{clear:t}=tt(),[,s]=be(),[,o]=Go(),[,n]=Oo();return()=>{s([]),n([]),o(""),t(),e({undoCount:0,redoCount:0})}},di=p.atom([]),ui=()=>{const[e,t]=k.useState(!1),[s,o]=p.useAtom(di),n=ie("getUILibraryBlocks",()=>[]);return k.useEffect(()=>{(async()=>s.length>0||(t(!0),o(await n()),t(!1)))()},[]),{data:s,isLoading:e}},mi=()=>{const[e,t]=k.useState(null),s=k.useCallback(async o=>{if(!(navigator!=null&&navigator.clipboard))return console.warn("Clipboard not supported"),!1;try{return await navigator.clipboard.writeText(o),t(o),!0}catch(n){return console.warn("Copy failed",n),t(null),!1}},[]);return[e,s]};exports.Accordion=wr;exports.AccordionContent=Xt;exports.AccordionItem=Jt;exports.AccordionTrigger=Qt;exports.Alert=Zt;exports.AlertDescription=ts;exports.AlertDialog=Nr;exports.AlertDialogAction=ds;exports.AlertDialogCancel=us;exports.AlertDialogContent=rs;exports.AlertDialogDescription=cs;exports.AlertDialogFooter=is;exports.AlertDialogHeader=as;exports.AlertDialogTitle=ls;exports.AlertDialogTrigger=Sr;exports.AlertTitle=es;exports.Badge=kr;exports.Button=Kt;exports.Card=vs;exports.CardContent=Rs;exports.CardDescription=ws;exports.CardFooter=ks;exports.CardHeader=ys;exports.CardTitle=js;exports.Command=it;exports.CommandDialog=la;exports.CommandEmpty=wo;exports.CommandGroup=Ro;exports.CommandInput=yo;exports.CommandItem=No;exports.CommandList=jo;exports.CommandSeparator=ko;exports.CommandShortcut=So;exports.ContextMenu=ca;exports.ContextMenuCheckboxItem=Bo;exports.ContextMenuContent=Ao;exports.ContextMenuGroup=ua;exports.ContextMenuItem=_o;exports.ContextMenuLabel=Po;exports.ContextMenuPortal=ma;exports.ContextMenuRadioGroup=fa;exports.ContextMenuRadioItem=To;exports.ContextMenuSeparator=Io;exports.ContextMenuShortcut=Mo;exports.ContextMenuSub=pa;exports.ContextMenuSubContent=Eo;exports.ContextMenuSubTrigger=Co;exports.ContextMenuTrigger=da;exports.Dialog=ot;exports.DialogContent=_e;exports.DialogDescription=bs;exports.DialogFooter=gs;exports.DialogHeader=xs;exports.DialogTitle=hs;exports.DialogTrigger=ms;exports.DropdownMenu=Yr;exports.DropdownMenuCheckboxItem=ao;exports.DropdownMenuContent=no;exports.DropdownMenuGroup=Jr;exports.DropdownMenuItem=ro;exports.DropdownMenuLabel=lo;exports.DropdownMenuPortal=Qr;exports.DropdownMenuRadioGroup=Zr;exports.DropdownMenuRadioItem=io;exports.DropdownMenuSeparator=co;exports.DropdownMenuShortcut=uo;exports.DropdownMenuSub=Xr;exports.DropdownMenuSubContent=oo;exports.DropdownMenuSubTrigger=so;exports.DropdownMenuTrigger=Kr;exports.HoverCard=zr;exports.HoverCardContent=qs;exports.HoverCardTrigger=Vr;exports.IconPickerField=ga;exports.ImagePickerField=ya;exports.ImagesPanel=va;exports.Input=Ns;exports.Label=Ss;exports.LinkField=wa;exports.Menubar=Ts;exports.MenubarCheckboxItem=Ls;exports.MenubarContent=Ds;exports.MenubarGroup=Mr;exports.MenubarItem=Os;exports.MenubarLabel=Vs;exports.MenubarMenu=Ir;exports.MenubarPortal=Dr;exports.MenubarRadioGroup=Lr;exports.MenubarRadioItem=zs;exports.MenubarSeparator=Fs;exports.MenubarShortcut=Us;exports.MenubarSub=Or;exports.MenubarSubContent=Ms;exports.MenubarSubTrigger=Is;exports.MenubarTrigger=Ps;exports.Popover=Tr;exports.PopoverContent=Bs;exports.PopoverTrigger=Pr;exports.RichTextEditorField=ja;exports.ScrollArea=Es;exports.ScrollBar=nt;exports.Select=Fr;exports.SelectContent=Gs;exports.SelectGroup=Ur;exports.SelectItem=Hs;exports.SelectLabel=Ws;exports.SelectSeparator=Ys;exports.SelectTrigger=$s;exports.SelectValue=qr;exports.Separator=mo;exports.Sheet=$r;exports.SheetClose=Wr;exports.SheetContent=Qs;exports.SheetDescription=to;exports.SheetFooter=Zs;exports.SheetHeader=Xs;exports.SheetTitle=eo;exports.SheetTrigger=Gr;exports.Skeleton=ia;exports.Switch=Yt;exports.Tabs=As;exports.TabsContent=Ne;exports.TabsList=rt;exports.TabsTrigger=ke;exports.Textarea=Cs;exports.Toaster=aa;exports.Toggle=Ht;exports.Tooltip=_r;exports.TooltipContent=_s;exports.TooltipPortal=Er;exports.TooltipProvider=Ar;exports.TooltipTrigger=Br;exports.activePanelAtom=Xo;exports.atom=ee;exports.atomWithDefault=qn;exports.atomWithStorage=fe;exports.badgeVariants=ss;exports.builderSaveStateAtom=Ee;exports.buttonVariants=Ae;exports.canAcceptChildBlock=Le;exports.canDeleteBlock=Qn;exports.canDuplicateBlock=Jn;exports.canvasIframeAtom=Qo;exports.chaiBuilderPropsAtom=$e;exports.chaiExternalDataAtom=_t;exports.createStore=St;exports.dataProvidersAtom=et;exports.draggedBlockIdAtom=on;exports.draggingFlagAtom=sn;exports.editLayerNameAtom=Jo;exports.getBlockJSONFromSchemas=Ve;exports.getBlockJSONFromUISchemas=ze;exports.inlineEditingActiveAtom=tn;exports.isDevelopment=Hn;exports.networkModeAtom=Ko;exports.presentBlocksAtom=te;exports.reducer=po;exports.showPredefinedBlockCategoryAtom=Zo;exports.toast=fo;exports.toggleVariants=Wt;exports.treeDSBlocks=It;exports.useActiveModal=Qa;exports.useActivePanel=ri;exports.useAddBlock=Ra;exports.useAddBlockParent=ai;exports.useAddClassesToBlocks=Ea;exports.useAllBlocks=Xa;exports.useAtom=On;exports.useAtomValue=Ct;exports.useBlocksContainer=mr;exports.useBlocksStore=ue;exports.useBlocksStoreUndoableActions=re;exports.useBrandingOptions=Qe;exports.useBuilderProp=ie;exports.useBuilderReset=ci;exports.useCanvasWidth=Aa;exports.useCanvasZoom=Ba;exports.useCopyBlockIds=Ta;exports.useCopyToClipboard=mi;exports.useCurrentPage=Vt;exports.useCutBlockIds=Uo;exports.useDarkMode=Pa;exports.useDuplicateBlocks=$o;exports.useGetPageData=$t;exports.useHiddenBlockIds=Ma;exports.useHighlightBlockId=Go;exports.usePageDataProviders=Gt;exports.usePasteBlocks=La;exports.usePreviewMode=Va;exports.useReadOnlyMode=si;exports.useRemoveBlocks=br;exports.useRemoveClassesFromBlocks=Ua;exports.useSavePage=hr;exports.useSelectedBlock=rr;exports.useSelectedBlockAllClasses=qa;exports.useSelectedBlockCurrentClasses=Wa;exports.useSelectedBlockIds=be;exports.useSelectedBlocksDisplayChild=nr;exports.useSelectedBreakpoints=li;exports.useSelectedStylingBlocks=Oo;exports.useSetAtom=Et;exports.useStore=Ue;exports.useStylingBreakpoint=Lo;exports.useStylingState=Ha;exports.useToast=at;exports.useUILibraryBlocks=ui;exports.useUndoManager=tt;exports.useUpdateBlocksProps=Ya;exports.useUpdateBlocksPropsRealtime=Ka;
|