@chaibuilder/sdk 0.1.2 → 0.1.4
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-e23baf9a.cjs → AddBlocks-1f683caa.cjs} +1 -1
- package/dist/{AddBlocks-b5f37f2f.js → AddBlocks-b6a12d50.js} +19 -19
- package/dist/{BrandingOptions-3d1bd24a.cjs → BrandingOptions-02e4ebcf.cjs} +1 -1
- package/dist/{BrandingOptions-cfd1b740.js → BrandingOptions-1190723a.js} +27 -27
- package/dist/{CanvasArea-a065a586.js → CanvasArea-15458836.js} +19 -18
- package/dist/CanvasArea-f5d27245.cjs +60 -0
- package/dist/Class-7d6aadbc.cjs +1 -0
- package/dist/{Class-e6b07b79.js → Class-e34b2337.js} +9 -9
- package/dist/{ImagesPanel-eccf9a56.js → ImagesPanel-8ccab6d9.js} +1 -1
- package/dist/{ImagesPanel-cc136c92.cjs → ImagesPanel-addb2bf9.cjs} +1 -1
- package/dist/{Layers-f002ba1a.cjs → Layers-06fa708d.cjs} +1 -1
- package/dist/{Layers-f935e07b.js → Layers-ff4ef9c0.js} +3 -3
- package/dist/{MarkAsGlobalBlock-613bfdab.js → MarkAsGlobalBlock-dea26aa7.js} +2 -2
- package/dist/{MarkAsGlobalBlock-5f435dd5.cjs → MarkAsGlobalBlock-fa0e0543.cjs} +1 -1
- package/dist/PagesPanel-3e9163c4.js +46 -0
- package/dist/PagesPanel-b08e1357.cjs +1 -0
- package/dist/ProjectPanel-17c5f131.js +66 -0
- package/dist/ProjectPanel-f0b94e3f.cjs +1 -0
- package/dist/{Settings-a19fbb69.js → Settings-6f2e86a9.js} +25 -24
- package/dist/Settings-739cff3b.cjs +1 -0
- package/dist/{SidePanels-67ebbcb4.js → SidePanels-96e64da9.js} +3 -3
- package/dist/{SidePanels-af222189.cjs → SidePanels-ce4d41d5.cjs} +1 -1
- package/dist/{Topbar-fcb01371.js → Topbar-08d10607.js} +2 -2
- package/dist/{Topbar-e92351cc.cjs → Topbar-b97472fc.cjs} +1 -1
- package/dist/UnsplashImages-68492dc9.cjs +1 -0
- package/dist/{UnsplashImages-fda2f29a.js → UnsplashImages-afaa7706.js} +19 -28
- package/dist/add-page-modal-3275cfb2.cjs +1 -0
- package/dist/add-page-modal-bcd9249e.js +93 -0
- package/dist/alert-dialog-4ce6ed22.cjs +1 -0
- package/dist/alert-dialog-ee98f47e.js +64 -0
- package/dist/confirm-alert-4f50caa7.cjs +1 -0
- package/dist/confirm-alert-f2a47cc7.js +36 -0
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +20 -12
- package/dist/core.js +53 -52
- package/dist/delete-page-modal-420a17e3.cjs +1 -0
- package/dist/delete-page-modal-fa7b4272.js +64 -0
- package/dist/dropdown-menu-84b2439e.cjs +1 -0
- package/dist/dropdown-menu-ae3ed09b.js +164 -0
- package/dist/form-5d5c5c9e.js +125 -0
- package/dist/form-6eac0287.cjs +1 -0
- package/dist/{html-to-json-7510f587.js → html-to-json-9304dbda.js} +1 -1
- package/dist/{html-to-json-7eba915f.cjs → html-to-json-9c9961da.cjs} +1 -1
- package/dist/index-133d90a5.cjs +2 -0
- package/dist/index-3f65447f.js +4754 -0
- package/dist/input-42acea7e.cjs +1 -0
- package/dist/input-a0ea2bc7.js +19 -0
- package/dist/lib.cjs +1 -1
- package/dist/lib.js +3 -3
- package/dist/link-86c532b5.cjs +1 -0
- package/dist/{link-e406254f.js → link-f80a947d.js} +44 -60
- package/dist/mockServiceWorker.js +292 -0
- package/dist/page-viewer-139bfb2a.cjs +1 -0
- package/dist/page-viewer-f1452439.js +88 -0
- package/dist/project-general-setting-0d7715b8.cjs +1 -0
- package/dist/project-general-setting-e5d14fa6.js +65 -0
- package/dist/project-seo-setting-01536592.js +67 -0
- package/dist/project-seo-setting-e3924578.cjs +1 -0
- package/dist/server.cjs +1 -0
- package/dist/server.d.ts +142 -0
- package/dist/server.js +126 -0
- package/dist/single-page-detail-54d7feca.cjs +1 -0
- package/dist/single-page-detail-74f88ed2.js +207 -0
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +124 -122
- package/dist/useMutation-7d536740.cjs +1 -0
- package/dist/useMutation-97876a40.js +126 -0
- package/dist/usePageActions-ac9ad321.cjs +1 -0
- package/dist/usePageActions-de3b7515.js +37 -0
- package/dist/useProjectActions-3b1dbb5e.js +18 -0
- package/dist/useProjectActions-41af0f70.cjs +1 -0
- package/package.json +20 -2
- package/dist/CanvasArea-c4554d61.cjs +0 -60
- package/dist/Class-0801d193.cjs +0 -1
- package/dist/Settings-05b9b5fe.cjs +0 -1
- package/dist/UnsplashImages-cca34e45.cjs +0 -1
- package/dist/dropdown-menu-a9b096f9.cjs +0 -1
- package/dist/dropdown-menu-d912a52e.js +0 -223
- package/dist/index-73cf645f.cjs +0 -2
- package/dist/index-7e212fbc.js +0 -2657
- package/dist/link-1ee70bca.cjs +0 -1
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import { j as t } from "./jsx-runtime-944c88e2.js";
|
|
2
|
+
import T, { useState as I, useEffect as L } from "react";
|
|
3
|
+
import { isEqual as P, isEmpty as C, isString as z, omit as j, kebabCase as B } from "lodash";
|
|
4
|
+
import { HomeIcon as G } from "@radix-ui/react-icons";
|
|
5
|
+
import { B as Y } from "./useBuilderProp-81a14920.js";
|
|
6
|
+
import { S as q } from "./scroll-area-9f64a082.js";
|
|
7
|
+
import { SingleLineText as g, Model as X, MultilineText as Z, Image as $, Checkbox as F } from "@chaibuilder/blocks";
|
|
8
|
+
import { toast as O } from "sonner";
|
|
9
|
+
import { F as h } from "./form-5d5c5c9e.js";
|
|
10
|
+
import { X as Q, O as V } from "./index-3f65447f.js";
|
|
11
|
+
import { u as y } from "./useProjectActions-3b1dbb5e.js";
|
|
12
|
+
import "@radix-ui/react-slot";
|
|
13
|
+
import "class-variance-authority";
|
|
14
|
+
import "./utils-ac68b2c8.js";
|
|
15
|
+
import "clsx";
|
|
16
|
+
import "tailwind-merge";
|
|
17
|
+
import "@radix-ui/react-tooltip";
|
|
18
|
+
import "@radix-ui/react-toast";
|
|
19
|
+
import "jotai";
|
|
20
|
+
import "@radix-ui/react-scroll-area";
|
|
21
|
+
import "@rjsf/core";
|
|
22
|
+
import "@rjsf/validator-ajv8";
|
|
23
|
+
import "./link-f80a947d.js";
|
|
24
|
+
import "react-icons-picker";
|
|
25
|
+
import "react-dom";
|
|
26
|
+
import "./dialog-3d4e82ed.js";
|
|
27
|
+
import "@radix-ui/react-dialog";
|
|
28
|
+
import "./ImagesPanel-8ccab6d9.js";
|
|
29
|
+
import "./tabs-85caa1e8.js";
|
|
30
|
+
import "@radix-ui/react-tabs";
|
|
31
|
+
import "react-quill";
|
|
32
|
+
import "react-i18next";
|
|
33
|
+
import "i18next";
|
|
34
|
+
import "flagged";
|
|
35
|
+
import "react-dnd";
|
|
36
|
+
import "@minoru/react-dnd-treeview";
|
|
37
|
+
import "react-hotkeys-hook";
|
|
38
|
+
import "flat-to-nested";
|
|
39
|
+
import "./Class-e34b2337.js";
|
|
40
|
+
import "redux-undo";
|
|
41
|
+
import "@react-hookz/web";
|
|
42
|
+
import "./CONTROLS-442caee5.js";
|
|
43
|
+
import "./useMutation-97876a40.js";
|
|
44
|
+
const K = T.lazy(() => import("./delete-page-modal-fa7b4272.js")), U = T.lazy(() => import("./confirm-alert-f2a47cc7.js")), x = (n) => {
|
|
45
|
+
if (!z(n) || !(n.includes("/[") && n.includes("]")))
|
|
46
|
+
return !1;
|
|
47
|
+
const s = /^\[((?:\.{3})?[a-zA-Z0-9_-]+)\]$/, u = /^[a-zA-Z0-9_-]+$/;
|
|
48
|
+
let e = !0;
|
|
49
|
+
return n.split("/").forEach((r) => {
|
|
50
|
+
e && (r.includes("[[") && r.includes("]]") ? e = /^\[\[\.{3}[a-zA-Z0-9_-]+\]\]$/.test(r) : r.includes("[") && r.includes("]") ? e = s.test(r) : e = u.test(r));
|
|
51
|
+
}), e;
|
|
52
|
+
}, f = (n) => n && C(n.seoData) ? {
|
|
53
|
+
...n,
|
|
54
|
+
seoData: { title: "", description: "", image: "" }
|
|
55
|
+
} : n, J = (n, l) => {
|
|
56
|
+
const s = !P(j(n, ["seoData"]), j(l, ["seoData"])), u = !P(f(l).seoData, f(n).seoData);
|
|
57
|
+
return s || u;
|
|
58
|
+
}, qe = ({ open: n, setOpen: l, pageData: s }) => {
|
|
59
|
+
const u = Q(), { data: e } = V(), r = y(), c = y("Homepage updated successfully."), [i, M] = I(f(s)), [d, v] = I({
|
|
60
|
+
isHomePage: (e == null ? void 0 : e.homepage) === s.uuid
|
|
61
|
+
}), S = J(i, s);
|
|
62
|
+
L(() => {
|
|
63
|
+
const m = !P(f(s), i), o = (e == null ? void 0 : e.homepage) !== s.uuid && d.isHomePage;
|
|
64
|
+
l(m || o ? "PENDING" : "OPEN");
|
|
65
|
+
}, [e, s, i, d, l]);
|
|
66
|
+
const N = () => {
|
|
67
|
+
if (S) {
|
|
68
|
+
if (s.type === "DYNAMIC" && !x((i == null ? void 0 : i.slug) || "")) {
|
|
69
|
+
n === "ALERT" && l("PENDING");
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
r.mutate(i, {
|
|
73
|
+
onSuccess: () => {
|
|
74
|
+
u.invalidateQueries({
|
|
75
|
+
refetchType: "active",
|
|
76
|
+
queryKey: ["pages", e == null ? void 0 : e.uuid]
|
|
77
|
+
}), l("CLOSE"), O.success("Page updated successfully.");
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
d.isHomePage && (e == null ? void 0 : e.homepage) !== s.uuid && c.mutate({ ...e, homepage: s == null ? void 0 : s.uuid }, { onSuccess: () => l("CLOSE") });
|
|
82
|
+
}, E = ({ formData: m }, o) => {
|
|
83
|
+
M((p) => {
|
|
84
|
+
var b, A;
|
|
85
|
+
if (!o)
|
|
86
|
+
return p;
|
|
87
|
+
const a = { [o]: m[o] };
|
|
88
|
+
return o === "page_name" ? a.slug = B((b = m[o]) == null ? void 0 : b.replace(/\d/g, "")) : o === "slug" ? a.slug = (A = m[o]) == null ? void 0 : A.replace(/\d/g, "").replace(/\s+/g, "").replace("--", "-").replace("__", "_") : o === "seo_data" && (a.seo_data = {
|
|
89
|
+
title: m[o].title || "",
|
|
90
|
+
description: m[o].description || "",
|
|
91
|
+
image: m[o].image || ""
|
|
92
|
+
}), {
|
|
93
|
+
...p,
|
|
94
|
+
...a
|
|
95
|
+
};
|
|
96
|
+
});
|
|
97
|
+
}, H = ({ formData: m }, o) => {
|
|
98
|
+
v((p) => {
|
|
99
|
+
const a = { [o]: m[o] };
|
|
100
|
+
return {
|
|
101
|
+
...p,
|
|
102
|
+
...a
|
|
103
|
+
};
|
|
104
|
+
});
|
|
105
|
+
}, w = {
|
|
106
|
+
page_name: g({
|
|
107
|
+
title: "Page Name",
|
|
108
|
+
default: i.name
|
|
109
|
+
}),
|
|
110
|
+
slug: g({ title: "Page Slug", default: i.slug })
|
|
111
|
+
}, R = {
|
|
112
|
+
seo_data: X({
|
|
113
|
+
title: "",
|
|
114
|
+
description: "",
|
|
115
|
+
default: {
|
|
116
|
+
title: "",
|
|
117
|
+
description: "",
|
|
118
|
+
image: ""
|
|
119
|
+
},
|
|
120
|
+
properties: {
|
|
121
|
+
title: g({
|
|
122
|
+
title: "Meta Title",
|
|
123
|
+
default: i.name
|
|
124
|
+
}),
|
|
125
|
+
description: Z({
|
|
126
|
+
title: "Meta Description",
|
|
127
|
+
default: i.slug
|
|
128
|
+
}),
|
|
129
|
+
image: $({ title: "Social Media Image", default: "" })
|
|
130
|
+
}
|
|
131
|
+
})
|
|
132
|
+
}, _ = {
|
|
133
|
+
isHomePage: F({
|
|
134
|
+
title: "Set as homepage",
|
|
135
|
+
default: d.isHomePage
|
|
136
|
+
})
|
|
137
|
+
};
|
|
138
|
+
return /* @__PURE__ */ t.jsxs(q, { className: "flex h-full select-none flex-col", children: [
|
|
139
|
+
/* @__PURE__ */ t.jsx(
|
|
140
|
+
U,
|
|
141
|
+
{
|
|
142
|
+
open: n === "ALERT",
|
|
143
|
+
title: "Do yo want to save changes?",
|
|
144
|
+
onCancel: () => l("CLOSE"),
|
|
145
|
+
onConfirm: N,
|
|
146
|
+
disabled: c.isPending || r.isPending
|
|
147
|
+
}
|
|
148
|
+
),
|
|
149
|
+
/* @__PURE__ */ t.jsx("div", { className: "rounded-md bg-background/30 px-2.5 py-1", children: /* @__PURE__ */ t.jsx("h1", { className: "px-1 font-semibold", children: "Page Details" }) }),
|
|
150
|
+
/* @__PURE__ */ t.jsx("div", { className: "px-2.5 pt-2", children: /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col space-y-2", children: [
|
|
151
|
+
/* @__PURE__ */ t.jsx(
|
|
152
|
+
h,
|
|
153
|
+
{
|
|
154
|
+
title: "Basic Details",
|
|
155
|
+
formData: i,
|
|
156
|
+
properties: w,
|
|
157
|
+
onChange: E,
|
|
158
|
+
disabled: r.isPending || c.isPending
|
|
159
|
+
}
|
|
160
|
+
),
|
|
161
|
+
/* @__PURE__ */ t.jsx("div", { className: "h-2 w-full" }),
|
|
162
|
+
/* @__PURE__ */ t.jsx(
|
|
163
|
+
h,
|
|
164
|
+
{
|
|
165
|
+
title: "SEO Details",
|
|
166
|
+
formData: i,
|
|
167
|
+
properties: R,
|
|
168
|
+
onChange: E,
|
|
169
|
+
disabled: r.isPending || c.isPending
|
|
170
|
+
}
|
|
171
|
+
),
|
|
172
|
+
(e == null ? void 0 : e.homepage) !== s.uuid && s.type === "STATIC" ? /* @__PURE__ */ t.jsx(
|
|
173
|
+
h,
|
|
174
|
+
{
|
|
175
|
+
formData: d,
|
|
176
|
+
properties: _,
|
|
177
|
+
onChange: H,
|
|
178
|
+
disabled: r.isPending || c.isPending
|
|
179
|
+
}
|
|
180
|
+
) : s.type === "STATIC" && /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-x-1 px-1 pt-2 text-xs font-medium text-gray-500", children: [
|
|
181
|
+
/* @__PURE__ */ t.jsx(G, {}),
|
|
182
|
+
" This is homepage",
|
|
183
|
+
" "
|
|
184
|
+
] }),
|
|
185
|
+
i.type === "DYNAMIC" && !x((i == null ? void 0 : i.slug) || "") && /* @__PURE__ */ t.jsxs("small", { className: "px-1 text-red-400", children: [
|
|
186
|
+
"Add dynamic ID in page slug Eg: ",
|
|
187
|
+
/* @__PURE__ */ t.jsx("i", { className: "underline", children: "some-url/[some-id]" })
|
|
188
|
+
] }),
|
|
189
|
+
/* @__PURE__ */ t.jsxs("div", { className: "my-2 flex w-full items-center justify-between gap-x-2 px-1", children: [
|
|
190
|
+
/* @__PURE__ */ t.jsx(
|
|
191
|
+
Y,
|
|
192
|
+
{
|
|
193
|
+
className: "w-full",
|
|
194
|
+
type: "submit",
|
|
195
|
+
onClick: N,
|
|
196
|
+
disabled: (e == null ? void 0 : e.homepage) !== s.uuid && d.isHomePage ? !1 : C(i.name) || C(i.slug) || !S || r.isPending || c.isPending || i.type === "DYNAMIC" && !x((i == null ? void 0 : i.slug) || ""),
|
|
197
|
+
children: "Save"
|
|
198
|
+
}
|
|
199
|
+
),
|
|
200
|
+
/* @__PURE__ */ t.jsx(K, { pageData: s, projectData: e })
|
|
201
|
+
] })
|
|
202
|
+
] }) })
|
|
203
|
+
] });
|
|
204
|
+
};
|
|
205
|
+
export {
|
|
206
|
+
qe as default
|
|
207
|
+
};
|
package/dist/ui.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("./toggle-b90fed97.cjs"),n=require("./dropdown-menu-a9b096f9.cjs"),m=require("./useBuilderProp-5e57d0c8.cjs"),h=require("./accordion-0afd8143.cjs"),p=require("./textarea-a338ede6.cjs"),r=require("./jsx-runtime-5c3ac4f7.cjs"),R=require("class-variance-authority"),s=require("./utils-3c452dd0.cjs"),x=require("./dialog-170eaad9.cjs"),b=require("./link-1ee70bca.cjs"),ee=require("./label-167415e5.cjs"),N=require("./scroll-area-088530b9.cjs"),M=require("./tabs-860e37aa.cjs"),y=require("./popover-7cb9079b.cjs"),te=require("react"),C=require("@radix-ui/react-icons"),oe=require("@radix-ui/react-menubar"),g=require("./select-0e32300c.cjs"),re=require("@radix-ui/react-dialog"),ae=require("./separator-a597dba7.cjs"),c=require("cmdk"),l=require("./context-menu-fec580f2.cjs");require("@radix-ui/react-toggle");require("@radix-ui/react-switch");require("@radix-ui/react-alert-dialog");require("@radix-ui/react-hover-card");require("@radix-ui/react-dropdown-menu");require("@radix-ui/react-slot");require("@radix-ui/react-tooltip");require("@radix-ui/react-toast");require("jotai");require("lodash");require("@radix-ui/react-accordion");require("clsx");require("tailwind-merge");require("react-icons-picker");require("react-dom");require("./ImagesPanel-cc136c92.cjs");require("react-quill");require("react-i18next");require("@radix-ui/react-label");require("@radix-ui/react-scroll-area");require("@radix-ui/react-tabs");require("@radix-ui/react-popover");require("@radix-ui/react-select");require("@radix-ui/react-separator");require("@radix-ui/react-context-menu");function j(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const d=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,d.get?d:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const i=j(te),a=j(oe),u=j(re),D=R.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"}}),ne=({className:e,variant:t,...o})=>r.jsxRuntimeExports.jsx("div",{className:s.cn(D({variant:t}),e),...o}),se=a.Menu,ie=a.Group,de=a.Portal,le=a.Sub,ue=a.RadioGroup,T=i.forwardRef(({className:e,...t},o)=>r.jsxRuntimeExports.jsx(a.Root,{ref:o,className:s.cn("flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm",e),...t}));T.displayName=a.Root.displayName;const v=i.forwardRef(({className:e,...t},o)=>r.jsxRuntimeExports.jsx(a.Trigger,{ref:o,className:s.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}));v.displayName=a.Trigger.displayName;const I=i.forwardRef(({className:e,inset:t,children:o,...d},f)=>r.jsxRuntimeExports.jsxs(a.SubTrigger,{ref:f,className:s.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),...d,children:[o,r.jsxRuntimeExports.jsx(C.ChevronRightIcon,{className:"ml-auto h-4 w-4"})]}));I.displayName=a.SubTrigger.displayName;const E=i.forwardRef(({className:e,...t},o)=>r.jsxRuntimeExports.jsx(a.SubContent,{ref:o,className:s.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}));E.displayName=a.SubContent.displayName;const k=i.forwardRef(({className:e,align:t="start",alignOffset:o=-4,sideOffset:d=8,...f},$)=>r.jsxRuntimeExports.jsx(a.Portal,{children:r.jsxRuntimeExports.jsx(a.Content,{ref:$,align:t,alignOffset:o,sideOffset:d,className:s.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),...f})}));k.displayName=a.Content.displayName;const q=i.forwardRef(({className:e,inset:t,...o},d)=>r.jsxRuntimeExports.jsx(a.Item,{ref:d,className:s.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),...o}));q.displayName=a.Item.displayName;const A=i.forwardRef(({className:e,children:t,checked:o,...d},f)=>r.jsxRuntimeExports.jsxs(a.CheckboxItem,{ref:f,className:s.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:o,...d,children:[r.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r.jsxRuntimeExports.jsx(a.ItemIndicator,{children:r.jsxRuntimeExports.jsx(C.CheckIcon,{className:"h-4 w-4"})})}),t]}));A.displayName=a.CheckboxItem.displayName;const P=i.forwardRef(({className:e,children:t,...o},d)=>r.jsxRuntimeExports.jsxs(a.RadioItem,{ref:d,className:s.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),...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(a.ItemIndicator,{children:r.jsxRuntimeExports.jsx(C.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));P.displayName=a.RadioItem.displayName;const _=i.forwardRef(({className:e,inset:t,...o},d)=>r.jsxRuntimeExports.jsx(a.Label,{ref:d,className:s.cn("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));_.displayName=a.Label.displayName;const G=i.forwardRef(({className:e,...t},o)=>r.jsxRuntimeExports.jsx(a.Separator,{ref:o,className:s.cn("-mx-1 my-1 h-px bg-muted",e),...t}));G.displayName=a.Separator.displayName;const L=({className:e,...t})=>r.jsxRuntimeExports.jsx("span",{className:s.cn("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});L.displayname="MenubarShortcut";const ce=u.Root,me=u.Trigger,pe=u.Close,F=({className:e,...t})=>r.jsxRuntimeExports.jsx(u.Portal,{className:s.cn(e),...t});F.displayName=u.Portal.displayName;const H=i.forwardRef(({className:e,...t},o)=>r.jsxRuntimeExports.jsx(u.Overlay,{className:s.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:o}));H.displayName=u.Overlay.displayName;const xe=R.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"}}),V=i.forwardRef(({side:e="right",className:t,children:o,...d},f)=>r.jsxRuntimeExports.jsxs(F,{children:[r.jsxRuntimeExports.jsx(H,{}),r.jsxRuntimeExports.jsxs(u.Content,{ref:f,className:s.cn(xe({side:e}),t),...d,children:[o,r.jsxRuntimeExports.jsxs(u.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(C.Cross2Icon,{className:"h-4 w-4"}),r.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));V.displayName=u.Content.displayName;const z=({className:e,...t})=>r.jsxRuntimeExports.jsx("div",{className:s.cn("flex flex-col space-y-2 text-center sm:text-left",e),...t});z.displayName="SheetHeader";const O=({className:e,...t})=>r.jsxRuntimeExports.jsx("div",{className:s.cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});O.displayName="SheetFooter";const B=i.forwardRef(({className:e,...t},o)=>r.jsxRuntimeExports.jsx(u.Title,{ref:o,className:s.cn("text-lg font-semibold text-foreground",e),...t}));B.displayName=u.Title.displayName;const J=i.forwardRef(({className:e,...t},o)=>r.jsxRuntimeExports.jsx(u.Description,{ref:o,className:s.cn("text-sm text-muted-foreground",e),...t}));J.displayName=u.Description.displayName;const S=i.forwardRef(({className:e,...t},o)=>r.jsxRuntimeExports.jsx(c.Command,{ref:o,className:s.cn("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));S.displayName=c.Command.displayName;const ge=({children:e,...t})=>r.jsxRuntimeExports.jsx(x.Dialog,{...t,children:r.jsxRuntimeExports.jsx(x.DialogContent,{className:"overflow-hidden p-0",children:r.jsxRuntimeExports.jsx(S,{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})})}),K=i.forwardRef(({className:e,...t},o)=>r.jsxRuntimeExports.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[r.jsxRuntimeExports.jsx(C.MagnifyingGlassIcon,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),r.jsxRuntimeExports.jsx(c.Command.Input,{ref:o,className:s.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})]}));K.displayName=c.Command.Input.displayName;const Q=i.forwardRef(({className:e,...t},o)=>r.jsxRuntimeExports.jsx(c.Command.List,{ref:o,className:s.cn("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));Q.displayName=c.Command.List.displayName;const U=i.forwardRef((e,t)=>r.jsxRuntimeExports.jsx(c.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));U.displayName=c.Command.Empty.displayName;const W=i.forwardRef(({className:e,...t},o)=>r.jsxRuntimeExports.jsx(c.Command.Group,{ref:o,className:s.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}));W.displayName=c.Command.Group.displayName;const X=i.forwardRef(({className:e,...t},o)=>r.jsxRuntimeExports.jsx(c.Command.Separator,{ref:o,className:s.cn("-mx-1 h-px bg-border",e),...t}));X.displayName=c.Command.Separator.displayName;const Y=i.forwardRef(({className:e,...t},o)=>r.jsxRuntimeExports.jsx(c.Command.Item,{ref:o,className:s.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}));Y.displayName=c.Command.Item.displayName;const Z=({className:e,...t})=>r.jsxRuntimeExports.jsx("span",{className:s.cn("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Z.displayName="CommandShortcut";exports.Toggle=w.Toggle;exports.toggleVariants=w.toggleVariants;exports.AlertDialog=n.AlertDialog;exports.AlertDialogAction=n.AlertDialogAction;exports.AlertDialogCancel=n.AlertDialogCancel;exports.AlertDialogContent=n.AlertDialogContent;exports.AlertDialogDescription=n.AlertDialogDescription;exports.AlertDialogFooter=n.AlertDialogFooter;exports.AlertDialogHeader=n.AlertDialogHeader;exports.AlertDialogTitle=n.AlertDialogTitle;exports.AlertDialogTrigger=n.AlertDialogTrigger;exports.DropdownMenu=n.DropdownMenu;exports.DropdownMenuCheckboxItem=n.DropdownMenuCheckboxItem;exports.DropdownMenuContent=n.DropdownMenuContent;exports.DropdownMenuGroup=n.DropdownMenuGroup;exports.DropdownMenuItem=n.DropdownMenuItem;exports.DropdownMenuLabel=n.DropdownMenuLabel;exports.DropdownMenuPortal=n.DropdownMenuPortal;exports.DropdownMenuRadioGroup=n.DropdownMenuRadioGroup;exports.DropdownMenuRadioItem=n.DropdownMenuRadioItem;exports.DropdownMenuSeparator=n.DropdownMenuSeparator;exports.DropdownMenuShortcut=n.DropdownMenuShortcut;exports.DropdownMenuSub=n.DropdownMenuSub;exports.DropdownMenuSubContent=n.DropdownMenuSubContent;exports.DropdownMenuSubTrigger=n.DropdownMenuSubTrigger;exports.DropdownMenuTrigger=n.DropdownMenuTrigger;exports.HoverCard=n.HoverCard;exports.HoverCardContent=n.HoverCardContent;exports.HoverCardTrigger=n.HoverCardTrigger;exports.Switch=n.Switch;exports.Button=m.Button;exports.Skeleton=m.Skeleton;exports.Toaster=m.Toaster;exports.Tooltip=m.Tooltip;exports.TooltipContent=m.TooltipContent;exports.TooltipPortal=m.TooltipPortal;exports.TooltipProvider=m.TooltipProvider;exports.TooltipTrigger=m.TooltipTrigger;exports.buttonVariants=m.buttonVariants;exports.reducer=m.reducer;exports.toast=m.toast;exports.useToast=m.useToast;exports.Accordion=h.Accordion;exports.AccordionContent=h.AccordionContent;exports.AccordionItem=h.AccordionItem;exports.AccordionTrigger=h.AccordionTrigger;exports.Alert=p.Alert;exports.AlertDescription=p.AlertDescription;exports.AlertTitle=p.AlertTitle;exports.Card=p.Card;exports.CardContent=p.CardContent;exports.CardDescription=p.CardDescription;exports.CardFooter=p.CardFooter;exports.CardHeader=p.CardHeader;exports.CardTitle=p.CardTitle;exports.Textarea=p.Textarea;exports.Dialog=x.Dialog;exports.DialogContent=x.DialogContent;exports.DialogDescription=x.DialogDescription;exports.DialogFooter=x.DialogFooter;exports.DialogHeader=x.DialogHeader;exports.DialogTitle=x.DialogTitle;exports.DialogTrigger=x.DialogTrigger;exports.IconPickerField=b.IconPickerField;exports.ImagePickerField=b.ImagePickerField;exports.Input=b.Input;exports.LinkField=b.LinkField;exports.RTEField=b.RTEField;exports.Label=ee.Label;exports.ScrollArea=N.ScrollArea;exports.ScrollBar=N.ScrollBar;exports.Tabs=M.Tabs;exports.TabsContent=M.TabsContent;exports.TabsList=M.TabsList;exports.TabsTrigger=M.TabsTrigger;exports.Popover=y.Popover;exports.PopoverContent=y.PopoverContent;exports.PopoverTrigger=y.PopoverTrigger;exports.Select=g.Select;exports.SelectContent=g.SelectContent;exports.SelectGroup=g.SelectGroup;exports.SelectItem=g.SelectItem;exports.SelectLabel=g.SelectLabel;exports.SelectSeparator=g.SelectSeparator;exports.SelectTrigger=g.SelectTrigger;exports.SelectValue=g.SelectValue;exports.Separator=ae.Separator;exports.ContextMenu=l.ContextMenu;exports.ContextMenuCheckboxItem=l.ContextMenuCheckboxItem;exports.ContextMenuContent=l.ContextMenuContent;exports.ContextMenuGroup=l.ContextMenuGroup;exports.ContextMenuItem=l.ContextMenuItem;exports.ContextMenuLabel=l.ContextMenuLabel;exports.ContextMenuPortal=l.ContextMenuPortal;exports.ContextMenuRadioGroup=l.ContextMenuRadioGroup;exports.ContextMenuRadioItem=l.ContextMenuRadioItem;exports.ContextMenuSeparator=l.ContextMenuSeparator;exports.ContextMenuShortcut=l.ContextMenuShortcut;exports.ContextMenuSub=l.ContextMenuSub;exports.ContextMenuSubContent=l.ContextMenuSubContent;exports.ContextMenuSubTrigger=l.ContextMenuSubTrigger;exports.ContextMenuTrigger=l.ContextMenuTrigger;exports.Badge=ne;exports.Command=S;exports.CommandDialog=ge;exports.CommandEmpty=U;exports.CommandGroup=W;exports.CommandInput=K;exports.CommandItem=Y;exports.CommandList=Q;exports.CommandSeparator=X;exports.CommandShortcut=Z;exports.Menubar=T;exports.MenubarCheckboxItem=A;exports.MenubarContent=k;exports.MenubarGroup=ie;exports.MenubarItem=q;exports.MenubarLabel=_;exports.MenubarMenu=se;exports.MenubarPortal=de;exports.MenubarRadioGroup=ue;exports.MenubarRadioItem=P;exports.MenubarSeparator=G;exports.MenubarShortcut=L;exports.MenubarSub=le;exports.MenubarSubContent=E;exports.MenubarSubTrigger=I;exports.MenubarTrigger=v;exports.Sheet=ce;exports.SheetClose=pe;exports.SheetContent=V;exports.SheetDescription=J;exports.SheetFooter=O;exports.SheetHeader=z;exports.SheetTitle=B;exports.SheetTrigger=me;exports.badgeVariants=D;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("./toggle-b90fed97.cjs"),i=require("./dropdown-menu-84b2439e.cjs"),m=require("./useBuilderProp-5e57d0c8.cjs"),h=require("./accordion-0afd8143.cjs"),p=require("./textarea-a338ede6.cjs"),r=require("./jsx-runtime-5c3ac4f7.cjs"),N=require("class-variance-authority"),n=require("./utils-3c452dd0.cjs"),g=require("./alert-dialog-4ce6ed22.cjs"),x=require("./dialog-170eaad9.cjs"),te=require("./input-42acea7e.cjs"),oe=require("./label-167415e5.cjs"),D=require("./scroll-area-088530b9.cjs"),M=require("./tabs-860e37aa.cjs"),j=require("./popover-7cb9079b.cjs"),re=require("react"),C=require("@radix-ui/react-icons"),ae=require("@radix-ui/react-menubar"),f=require("./select-0e32300c.cjs"),ne=require("@radix-ui/react-dialog"),se=require("./separator-a597dba7.cjs"),c=require("cmdk"),l=require("./context-menu-fec580f2.cjs"),y=require("./link-86c532b5.cjs");require("@radix-ui/react-toggle");require("@radix-ui/react-switch");require("@radix-ui/react-hover-card");require("@radix-ui/react-dropdown-menu");require("@radix-ui/react-slot");require("@radix-ui/react-tooltip");require("@radix-ui/react-toast");require("jotai");require("lodash");require("@radix-ui/react-accordion");require("clsx");require("tailwind-merge");require("@radix-ui/react-alert-dialog");require("@radix-ui/react-label");require("@radix-ui/react-scroll-area");require("@radix-ui/react-tabs");require("@radix-ui/react-popover");require("@radix-ui/react-select");require("@radix-ui/react-separator");require("@radix-ui/react-context-menu");require("react-icons-picker");require("react-dom");require("./ImagesPanel-addb2bf9.cjs");require("react-quill");require("react-i18next");function S(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const d=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,d.get?d:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const s=S(re),a=S(ae),u=S(ne),T=N.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"}}),ie=({className:e,variant:t,...o})=>r.jsxRuntimeExports.jsx("div",{className:n.cn(T({variant:t}),e),...o}),de=a.Menu,le=a.Group,ue=a.Portal,ce=a.Sub,me=a.RadioGroup,v=s.forwardRef(({className:e,...t},o)=>r.jsxRuntimeExports.jsx(a.Root,{ref:o,className:n.cn("flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm",e),...t}));v.displayName=a.Root.displayName;const I=s.forwardRef(({className:e,...t},o)=>r.jsxRuntimeExports.jsx(a.Trigger,{ref:o,className:n.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}));I.displayName=a.Trigger.displayName;const E=s.forwardRef(({className:e,inset:t,children:o,...d},b)=>r.jsxRuntimeExports.jsxs(a.SubTrigger,{ref:b,className:n.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),...d,children:[o,r.jsxRuntimeExports.jsx(C.ChevronRightIcon,{className:"ml-auto h-4 w-4"})]}));E.displayName=a.SubTrigger.displayName;const q=s.forwardRef(({className:e,...t},o)=>r.jsxRuntimeExports.jsx(a.SubContent,{ref:o,className:n.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}));q.displayName=a.SubContent.displayName;const k=s.forwardRef(({className:e,align:t="start",alignOffset:o=-4,sideOffset:d=8,...b},ee)=>r.jsxRuntimeExports.jsx(a.Portal,{children:r.jsxRuntimeExports.jsx(a.Content,{ref:ee,align:t,alignOffset:o,sideOffset:d,className:n.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),...b})}));k.displayName=a.Content.displayName;const A=s.forwardRef(({className:e,inset:t,...o},d)=>r.jsxRuntimeExports.jsx(a.Item,{ref:d,className:n.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),...o}));A.displayName=a.Item.displayName;const P=s.forwardRef(({className:e,children:t,checked:o,...d},b)=>r.jsxRuntimeExports.jsxs(a.CheckboxItem,{ref:b,className:n.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:o,...d,children:[r.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r.jsxRuntimeExports.jsx(a.ItemIndicator,{children:r.jsxRuntimeExports.jsx(C.CheckIcon,{className:"h-4 w-4"})})}),t]}));P.displayName=a.CheckboxItem.displayName;const _=s.forwardRef(({className:e,children:t,...o},d)=>r.jsxRuntimeExports.jsxs(a.RadioItem,{ref:d,className:n.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),...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(a.ItemIndicator,{children:r.jsxRuntimeExports.jsx(C.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));_.displayName=a.RadioItem.displayName;const G=s.forwardRef(({className:e,inset:t,...o},d)=>r.jsxRuntimeExports.jsx(a.Label,{ref:d,className:n.cn("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));G.displayName=a.Label.displayName;const L=s.forwardRef(({className:e,...t},o)=>r.jsxRuntimeExports.jsx(a.Separator,{ref:o,className:n.cn("-mx-1 my-1 h-px bg-muted",e),...t}));L.displayName=a.Separator.displayName;const F=({className:e,...t})=>r.jsxRuntimeExports.jsx("span",{className:n.cn("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});F.displayname="MenubarShortcut";const pe=u.Root,xe=u.Trigger,ge=u.Close,H=({className:e,...t})=>r.jsxRuntimeExports.jsx(u.Portal,{className:n.cn(e),...t});H.displayName=u.Portal.displayName;const V=s.forwardRef(({className:e,...t},o)=>r.jsxRuntimeExports.jsx(u.Overlay,{className:n.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:o}));V.displayName=u.Overlay.displayName;const fe=N.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"}}),z=s.forwardRef(({side:e="right",className:t,children:o,...d},b)=>r.jsxRuntimeExports.jsxs(H,{children:[r.jsxRuntimeExports.jsx(V,{}),r.jsxRuntimeExports.jsxs(u.Content,{ref:b,className:n.cn(fe({side:e}),t),...d,children:[o,r.jsxRuntimeExports.jsxs(u.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(C.Cross2Icon,{className:"h-4 w-4"}),r.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));z.displayName=u.Content.displayName;const O=({className:e,...t})=>r.jsxRuntimeExports.jsx("div",{className:n.cn("flex flex-col space-y-2 text-center sm:text-left",e),...t});O.displayName="SheetHeader";const B=({className:e,...t})=>r.jsxRuntimeExports.jsx("div",{className:n.cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});B.displayName="SheetFooter";const J=s.forwardRef(({className:e,...t},o)=>r.jsxRuntimeExports.jsx(u.Title,{ref:o,className:n.cn("text-lg font-semibold text-foreground",e),...t}));J.displayName=u.Title.displayName;const K=s.forwardRef(({className:e,...t},o)=>r.jsxRuntimeExports.jsx(u.Description,{ref:o,className:n.cn("text-sm text-muted-foreground",e),...t}));K.displayName=u.Description.displayName;const w=s.forwardRef(({className:e,...t},o)=>r.jsxRuntimeExports.jsx(c.Command,{ref:o,className:n.cn("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));w.displayName=c.Command.displayName;const be=({children:e,...t})=>r.jsxRuntimeExports.jsx(x.Dialog,{...t,children:r.jsxRuntimeExports.jsx(x.DialogContent,{className:"overflow-hidden p-0",children:r.jsxRuntimeExports.jsx(w,{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})})}),Q=s.forwardRef(({className:e,...t},o)=>r.jsxRuntimeExports.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[r.jsxRuntimeExports.jsx(C.MagnifyingGlassIcon,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),r.jsxRuntimeExports.jsx(c.Command.Input,{ref:o,className:n.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})]}));Q.displayName=c.Command.Input.displayName;const U=s.forwardRef(({className:e,...t},o)=>r.jsxRuntimeExports.jsx(c.Command.List,{ref:o,className:n.cn("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));U.displayName=c.Command.List.displayName;const W=s.forwardRef((e,t)=>r.jsxRuntimeExports.jsx(c.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));W.displayName=c.Command.Empty.displayName;const X=s.forwardRef(({className:e,...t},o)=>r.jsxRuntimeExports.jsx(c.Command.Group,{ref:o,className:n.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}));X.displayName=c.Command.Group.displayName;const Y=s.forwardRef(({className:e,...t},o)=>r.jsxRuntimeExports.jsx(c.Command.Separator,{ref:o,className:n.cn("-mx-1 h-px bg-border",e),...t}));Y.displayName=c.Command.Separator.displayName;const Z=s.forwardRef(({className:e,...t},o)=>r.jsxRuntimeExports.jsx(c.Command.Item,{ref:o,className:n.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}));Z.displayName=c.Command.Item.displayName;const $=({className:e,...t})=>r.jsxRuntimeExports.jsx("span",{className:n.cn("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});$.displayName="CommandShortcut";exports.Toggle=R.Toggle;exports.toggleVariants=R.toggleVariants;exports.DropdownMenu=i.DropdownMenu;exports.DropdownMenuCheckboxItem=i.DropdownMenuCheckboxItem;exports.DropdownMenuContent=i.DropdownMenuContent;exports.DropdownMenuGroup=i.DropdownMenuGroup;exports.DropdownMenuItem=i.DropdownMenuItem;exports.DropdownMenuLabel=i.DropdownMenuLabel;exports.DropdownMenuPortal=i.DropdownMenuPortal;exports.DropdownMenuRadioGroup=i.DropdownMenuRadioGroup;exports.DropdownMenuRadioItem=i.DropdownMenuRadioItem;exports.DropdownMenuSeparator=i.DropdownMenuSeparator;exports.DropdownMenuShortcut=i.DropdownMenuShortcut;exports.DropdownMenuSub=i.DropdownMenuSub;exports.DropdownMenuSubContent=i.DropdownMenuSubContent;exports.DropdownMenuSubTrigger=i.DropdownMenuSubTrigger;exports.DropdownMenuTrigger=i.DropdownMenuTrigger;exports.HoverCard=i.HoverCard;exports.HoverCardContent=i.HoverCardContent;exports.HoverCardTrigger=i.HoverCardTrigger;exports.Switch=i.Switch;exports.Button=m.Button;exports.Skeleton=m.Skeleton;exports.Toaster=m.Toaster;exports.Tooltip=m.Tooltip;exports.TooltipContent=m.TooltipContent;exports.TooltipPortal=m.TooltipPortal;exports.TooltipProvider=m.TooltipProvider;exports.TooltipTrigger=m.TooltipTrigger;exports.buttonVariants=m.buttonVariants;exports.reducer=m.reducer;exports.toast=m.toast;exports.useToast=m.useToast;exports.Accordion=h.Accordion;exports.AccordionContent=h.AccordionContent;exports.AccordionItem=h.AccordionItem;exports.AccordionTrigger=h.AccordionTrigger;exports.Alert=p.Alert;exports.AlertDescription=p.AlertDescription;exports.AlertTitle=p.AlertTitle;exports.Card=p.Card;exports.CardContent=p.CardContent;exports.CardDescription=p.CardDescription;exports.CardFooter=p.CardFooter;exports.CardHeader=p.CardHeader;exports.CardTitle=p.CardTitle;exports.Textarea=p.Textarea;exports.AlertDialog=g.AlertDialog;exports.AlertDialogAction=g.AlertDialogAction;exports.AlertDialogCancel=g.AlertDialogCancel;exports.AlertDialogContent=g.AlertDialogContent;exports.AlertDialogDescription=g.AlertDialogDescription;exports.AlertDialogFooter=g.AlertDialogFooter;exports.AlertDialogHeader=g.AlertDialogHeader;exports.AlertDialogTitle=g.AlertDialogTitle;exports.AlertDialogTrigger=g.AlertDialogTrigger;exports.Dialog=x.Dialog;exports.DialogContent=x.DialogContent;exports.DialogDescription=x.DialogDescription;exports.DialogFooter=x.DialogFooter;exports.DialogHeader=x.DialogHeader;exports.DialogTitle=x.DialogTitle;exports.DialogTrigger=x.DialogTrigger;exports.Input=te.Input;exports.Label=oe.Label;exports.ScrollArea=D.ScrollArea;exports.ScrollBar=D.ScrollBar;exports.Tabs=M.Tabs;exports.TabsContent=M.TabsContent;exports.TabsList=M.TabsList;exports.TabsTrigger=M.TabsTrigger;exports.Popover=j.Popover;exports.PopoverContent=j.PopoverContent;exports.PopoverTrigger=j.PopoverTrigger;exports.Select=f.Select;exports.SelectContent=f.SelectContent;exports.SelectGroup=f.SelectGroup;exports.SelectItem=f.SelectItem;exports.SelectLabel=f.SelectLabel;exports.SelectSeparator=f.SelectSeparator;exports.SelectTrigger=f.SelectTrigger;exports.SelectValue=f.SelectValue;exports.Separator=se.Separator;exports.ContextMenu=l.ContextMenu;exports.ContextMenuCheckboxItem=l.ContextMenuCheckboxItem;exports.ContextMenuContent=l.ContextMenuContent;exports.ContextMenuGroup=l.ContextMenuGroup;exports.ContextMenuItem=l.ContextMenuItem;exports.ContextMenuLabel=l.ContextMenuLabel;exports.ContextMenuPortal=l.ContextMenuPortal;exports.ContextMenuRadioGroup=l.ContextMenuRadioGroup;exports.ContextMenuRadioItem=l.ContextMenuRadioItem;exports.ContextMenuSeparator=l.ContextMenuSeparator;exports.ContextMenuShortcut=l.ContextMenuShortcut;exports.ContextMenuSub=l.ContextMenuSub;exports.ContextMenuSubContent=l.ContextMenuSubContent;exports.ContextMenuSubTrigger=l.ContextMenuSubTrigger;exports.ContextMenuTrigger=l.ContextMenuTrigger;exports.IconPickerField=y.IconPickerField;exports.ImagePickerField=y.ImagePickerField;exports.LinkField=y.LinkField;exports.RTEField=y.RichTextEditorField;exports.Badge=ie;exports.Command=w;exports.CommandDialog=be;exports.CommandEmpty=W;exports.CommandGroup=X;exports.CommandInput=Q;exports.CommandItem=Z;exports.CommandList=U;exports.CommandSeparator=Y;exports.CommandShortcut=$;exports.Menubar=v;exports.MenubarCheckboxItem=P;exports.MenubarContent=k;exports.MenubarGroup=le;exports.MenubarItem=A;exports.MenubarLabel=G;exports.MenubarMenu=de;exports.MenubarPortal=ue;exports.MenubarRadioGroup=me;exports.MenubarRadioItem=_;exports.MenubarSeparator=L;exports.MenubarShortcut=F;exports.MenubarSub=ce;exports.MenubarSubContent=q;exports.MenubarSubTrigger=E;exports.MenubarTrigger=I;exports.Sheet=pe;exports.SheetClose=ge;exports.SheetContent=z;exports.SheetDescription=K;exports.SheetFooter=B;exports.SheetHeader=O;exports.SheetTitle=J;exports.SheetTrigger=xe;exports.badgeVariants=T;
|
package/dist/ui.js
CHANGED
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
import { T as Fe, t as He } from "./toggle-00c9d11e.js";
|
|
2
|
-
import {
|
|
3
|
-
import { B as
|
|
4
|
-
import { A as
|
|
5
|
-
import { A as
|
|
2
|
+
import { D as Ve, f as Ee, d as Be, k as Oe, e as $e, h as qe, l as Je, p as Ke, g as Qe, i as Ue, j as We, m as Xe, n as Ye, o as Ze, c as et, H as tt, b as at, a as ot, S as st } from "./dropdown-menu-ae3ed09b.js";
|
|
3
|
+
import { B as nt, S as dt, a as it, d as lt, f as mt, g as ct, T as pt, e as ut, b as ft, r as xt, t as gt, h as bt } from "./useBuilderProp-81a14920.js";
|
|
4
|
+
import { A as yt, c as Nt, a as wt, b as Ct } from "./accordion-c0176dc5.js";
|
|
5
|
+
import { A as vt, b as jt, a as Mt, C as Tt, g as Dt, f as kt, d as Rt, c as It, e as _t, T as At } from "./textarea-0750bcd2.js";
|
|
6
6
|
import { j as a } from "./jsx-runtime-944c88e2.js";
|
|
7
7
|
import { cva as c } from "class-variance-authority";
|
|
8
8
|
import { c as r } from "./utils-ac68b2c8.js";
|
|
9
|
+
import { A as Lt, g as Gt, h as Ft, b as Ht, f as zt, d as Vt, c as Et, e as Bt, a as Ot } from "./alert-dialog-ee98f47e.js";
|
|
9
10
|
import { D as g, a as b } from "./dialog-3d4e82ed.js";
|
|
10
|
-
import { f as qt, d as
|
|
11
|
-
import {
|
|
12
|
-
import { L as
|
|
13
|
-
import { S as
|
|
14
|
-
import { T as
|
|
15
|
-
import { P as
|
|
11
|
+
import { f as qt, d as Jt, c as Kt, e as Qt, b as Ut } from "./dialog-3d4e82ed.js";
|
|
12
|
+
import { I as Xt } from "./input-a0ea2bc7.js";
|
|
13
|
+
import { L as Zt } from "./label-e770a087.js";
|
|
14
|
+
import { S as ta, a as aa } from "./scroll-area-9f64a082.js";
|
|
15
|
+
import { T as sa, c as ra, a as na, b as da } from "./tabs-85caa1e8.js";
|
|
16
|
+
import { P as la, b as ma, a as ca } from "./popover-f7addcf4.js";
|
|
16
17
|
import * as n from "react";
|
|
17
18
|
import { ChevronRightIcon as h, CheckIcon as y, DotFilledIcon as N, Cross2Icon as w, MagnifyingGlassIcon as C } from "@radix-ui/react-icons";
|
|
18
19
|
import * as s from "@radix-ui/react-menubar";
|
|
19
|
-
import { S as
|
|
20
|
+
import { S as ua, d as fa, a as xa, f as ga, e as ba, g as ha, c as ya, b as Na } from "./select-7fddd7c3.js";
|
|
20
21
|
import * as d from "@radix-ui/react-dialog";
|
|
21
|
-
import { S as
|
|
22
|
+
import { S as Ca } from "./separator-a80d065b.js";
|
|
22
23
|
import { Command as i } from "cmdk";
|
|
23
|
-
import { C as
|
|
24
|
+
import { C as va, d as ja, b as Ma, i as Ta, c as Da, f as ka, j as Ra, n as Ia, e as _a, g as Aa, h as Pa, k as La, l as Ga, m as Fa, a as Ha } from "./context-menu-e1c240ce.js";
|
|
25
|
+
import { I as Va, a as Ea, L as Ba, R as Oa } from "./link-f80a947d.js";
|
|
24
26
|
import "@radix-ui/react-toggle";
|
|
25
27
|
import "@radix-ui/react-switch";
|
|
26
|
-
import "@radix-ui/react-alert-dialog";
|
|
27
28
|
import "@radix-ui/react-hover-card";
|
|
28
29
|
import "@radix-ui/react-dropdown-menu";
|
|
29
30
|
import "@radix-ui/react-slot";
|
|
@@ -34,11 +35,7 @@ import "lodash";
|
|
|
34
35
|
import "@radix-ui/react-accordion";
|
|
35
36
|
import "clsx";
|
|
36
37
|
import "tailwind-merge";
|
|
37
|
-
import "react-
|
|
38
|
-
import "react-dom";
|
|
39
|
-
import "./ImagesPanel-eccf9a56.js";
|
|
40
|
-
import "react-quill";
|
|
41
|
-
import "react-i18next";
|
|
38
|
+
import "@radix-ui/react-alert-dialog";
|
|
42
39
|
import "@radix-ui/react-label";
|
|
43
40
|
import "@radix-ui/react-scroll-area";
|
|
44
41
|
import "@radix-ui/react-tabs";
|
|
@@ -46,6 +43,11 @@ import "@radix-ui/react-popover";
|
|
|
46
43
|
import "@radix-ui/react-select";
|
|
47
44
|
import "@radix-ui/react-separator";
|
|
48
45
|
import "@radix-ui/react-context-menu";
|
|
46
|
+
import "react-icons-picker";
|
|
47
|
+
import "react-dom";
|
|
48
|
+
import "./ImagesPanel-8ccab6d9.js";
|
|
49
|
+
import "react-quill";
|
|
50
|
+
import "react-i18next";
|
|
49
51
|
const S = c(
|
|
50
52
|
"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",
|
|
51
53
|
{
|
|
@@ -273,7 +275,7 @@ const B = n.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a.jsx(
|
|
|
273
275
|
B.displayName = i.List.displayName;
|
|
274
276
|
const O = n.forwardRef((e, t) => /* @__PURE__ */ a.jsx(i.Empty, { ref: t, className: "py-6 text-center text-sm", ...e }));
|
|
275
277
|
O.displayName = i.Empty.displayName;
|
|
276
|
-
const
|
|
278
|
+
const $ = n.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a.jsx(
|
|
277
279
|
i.Group,
|
|
278
280
|
{
|
|
279
281
|
ref: o,
|
|
@@ -284,9 +286,9 @@ const q = n.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a.jsx(
|
|
|
284
286
|
...t
|
|
285
287
|
}
|
|
286
288
|
));
|
|
287
|
-
|
|
288
|
-
const
|
|
289
|
-
|
|
289
|
+
$.displayName = i.Group.displayName;
|
|
290
|
+
const q = n.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a.jsx(i.Separator, { ref: o, className: r("-mx-1 h-px bg-border", e), ...t }));
|
|
291
|
+
q.displayName = i.Separator.displayName;
|
|
290
292
|
const J = n.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a.jsx(
|
|
291
293
|
i.Item,
|
|
292
294
|
{
|
|
@@ -302,84 +304,84 @@ J.displayName = i.Item.displayName;
|
|
|
302
304
|
const K = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: r("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
|
|
303
305
|
K.displayName = "CommandShortcut";
|
|
304
306
|
export {
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
307
|
+
yt as Accordion,
|
|
308
|
+
Nt as AccordionContent,
|
|
309
|
+
wt as AccordionItem,
|
|
310
|
+
Ct as AccordionTrigger,
|
|
311
|
+
vt as Alert,
|
|
312
|
+
jt as AlertDescription,
|
|
313
|
+
Lt as AlertDialog,
|
|
314
|
+
Gt as AlertDialogAction,
|
|
315
|
+
Ft as AlertDialogCancel,
|
|
316
|
+
Ht as AlertDialogContent,
|
|
317
|
+
zt as AlertDialogDescription,
|
|
318
|
+
Vt as AlertDialogFooter,
|
|
319
|
+
Et as AlertDialogHeader,
|
|
320
|
+
Bt as AlertDialogTitle,
|
|
321
|
+
Ot as AlertDialogTrigger,
|
|
322
|
+
Mt as AlertTitle,
|
|
321
323
|
je as Badge,
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
324
|
+
nt as Button,
|
|
325
|
+
Tt as Card,
|
|
326
|
+
Dt as CardContent,
|
|
327
|
+
kt as CardDescription,
|
|
328
|
+
Rt as CardFooter,
|
|
329
|
+
It as CardHeader,
|
|
330
|
+
_t as CardTitle,
|
|
329
331
|
f as Command,
|
|
330
332
|
Pe as CommandDialog,
|
|
331
333
|
O as CommandEmpty,
|
|
332
|
-
|
|
334
|
+
$ as CommandGroup,
|
|
333
335
|
E as CommandInput,
|
|
334
336
|
J as CommandItem,
|
|
335
337
|
B as CommandList,
|
|
336
|
-
|
|
338
|
+
q as CommandSeparator,
|
|
337
339
|
K as CommandShortcut,
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
340
|
+
va as ContextMenu,
|
|
341
|
+
ja as ContextMenuCheckboxItem,
|
|
342
|
+
Ma as ContextMenuContent,
|
|
343
|
+
Ta as ContextMenuGroup,
|
|
344
|
+
Da as ContextMenuItem,
|
|
345
|
+
ka as ContextMenuLabel,
|
|
346
|
+
Ra as ContextMenuPortal,
|
|
347
|
+
Ia as ContextMenuRadioGroup,
|
|
348
|
+
_a as ContextMenuRadioItem,
|
|
349
|
+
Aa as ContextMenuSeparator,
|
|
350
|
+
Pa as ContextMenuShortcut,
|
|
351
|
+
La as ContextMenuSub,
|
|
352
|
+
Ga as ContextMenuSubContent,
|
|
353
|
+
Fa as ContextMenuSubTrigger,
|
|
354
|
+
Ha as ContextMenuTrigger,
|
|
353
355
|
g as Dialog,
|
|
354
356
|
b as DialogContent,
|
|
355
357
|
qt as DialogDescription,
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
358
|
+
Jt as DialogFooter,
|
|
359
|
+
Kt as DialogHeader,
|
|
360
|
+
Qt as DialogTitle,
|
|
361
|
+
Ut as DialogTrigger,
|
|
362
|
+
Ve as DropdownMenu,
|
|
363
|
+
Ee as DropdownMenuCheckboxItem,
|
|
364
|
+
Be as DropdownMenuContent,
|
|
365
|
+
Oe as DropdownMenuGroup,
|
|
366
|
+
$e as DropdownMenuItem,
|
|
367
|
+
qe as DropdownMenuLabel,
|
|
368
|
+
Je as DropdownMenuPortal,
|
|
369
|
+
Ke as DropdownMenuRadioGroup,
|
|
370
|
+
Qe as DropdownMenuRadioItem,
|
|
371
|
+
Ue as DropdownMenuSeparator,
|
|
372
|
+
We as DropdownMenuShortcut,
|
|
373
|
+
Xe as DropdownMenuSub,
|
|
374
|
+
Ye as DropdownMenuSubContent,
|
|
375
|
+
Ze as DropdownMenuSubTrigger,
|
|
376
|
+
et as DropdownMenuTrigger,
|
|
377
|
+
tt as HoverCard,
|
|
378
|
+
at as HoverCardContent,
|
|
379
|
+
ot as HoverCardTrigger,
|
|
380
|
+
Va as IconPickerField,
|
|
381
|
+
Ea as ImagePickerField,
|
|
382
|
+
Xt as Input,
|
|
383
|
+
Zt as Label,
|
|
384
|
+
Ba as LinkField,
|
|
383
385
|
v as Menubar,
|
|
384
386
|
R as MenubarCheckboxItem,
|
|
385
387
|
D as MenubarContent,
|
|
@@ -396,21 +398,21 @@ export {
|
|
|
396
398
|
T as MenubarSubContent,
|
|
397
399
|
M as MenubarSubTrigger,
|
|
398
400
|
j as MenubarTrigger,
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
401
|
+
la as Popover,
|
|
402
|
+
ma as PopoverContent,
|
|
403
|
+
ca as PopoverTrigger,
|
|
404
|
+
Oa as RTEField,
|
|
405
|
+
ta as ScrollArea,
|
|
406
|
+
aa as ScrollBar,
|
|
407
|
+
ua as Select,
|
|
408
|
+
fa as SelectContent,
|
|
409
|
+
xa as SelectGroup,
|
|
410
|
+
ga as SelectItem,
|
|
411
|
+
ba as SelectLabel,
|
|
412
|
+
ha as SelectSeparator,
|
|
413
|
+
ya as SelectTrigger,
|
|
414
|
+
Na as SelectValue,
|
|
415
|
+
Ca as Separator,
|
|
414
416
|
Ie as Sheet,
|
|
415
417
|
Ae as SheetClose,
|
|
416
418
|
G as SheetContent,
|
|
@@ -419,24 +421,24 @@ export {
|
|
|
419
421
|
F as SheetHeader,
|
|
420
422
|
z as SheetTitle,
|
|
421
423
|
_e as SheetTrigger,
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
424
|
+
dt as Skeleton,
|
|
425
|
+
st as Switch,
|
|
426
|
+
sa as Tabs,
|
|
427
|
+
ra as TabsContent,
|
|
428
|
+
na as TabsList,
|
|
429
|
+
da as TabsTrigger,
|
|
430
|
+
At as Textarea,
|
|
431
|
+
it as Toaster,
|
|
430
432
|
Fe as Toggle,
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
433
|
+
lt as Tooltip,
|
|
434
|
+
mt as TooltipContent,
|
|
435
|
+
ct as TooltipPortal,
|
|
436
|
+
pt as TooltipProvider,
|
|
437
|
+
ut as TooltipTrigger,
|
|
436
438
|
S as badgeVariants,
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
439
|
+
ft as buttonVariants,
|
|
440
|
+
xt as reducer,
|
|
441
|
+
gt as toast,
|
|
440
442
|
He as toggleVariants,
|
|
441
|
-
|
|
443
|
+
bt as useToast
|
|
442
444
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var M=(i,t,e)=>{if(!t.has(i))throw TypeError("Cannot "+e)};var s=(i,t,e)=>(M(i,t,"read from private field"),e?e.call(i):t.get(i)),c=(i,t,e)=>{if(t.has(i))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(i):t.set(i,e)},l=(i,t,e,r)=>(M(i,t,"write to private field"),r?r.call(i,e):t.set(i,e),e);var p=(i,t,e)=>(M(i,t,"access private method"),e);const w=require("react"),b=require("./index-133d90a5.cjs");function j(i){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const e in i)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(i,e);Object.defineProperty(t,e,r.get?r:{enumerable:!0,get:()=>i[e]})}}return t.default=i,Object.freeze(t)}const v=j(w);var a,n,o,u,f,y,O,S,x,k=(x=class extends b.Subscribable{constructor(t,e){super();c(this,f);c(this,O);c(this,a,void 0);c(this,n,void 0);c(this,o,void 0);c(this,u,void 0);l(this,n,void 0),l(this,a,t),this.setOptions(e),this.bindMethods(),p(this,f,y).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var r;const e=this.options;this.options=s(this,a).defaultMutationOptions(t),b.shallowEqualObjects(e,this.options)||s(this,a).getMutationCache().notify({type:"observerOptionsUpdated",mutation:s(this,o),observer:this}),(r=s(this,o))==null||r.setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=s(this,o))==null||t.removeObserver(this)}onMutationUpdate(t){p(this,f,y).call(this),p(this,O,S).call(this,t)}getCurrentResult(){return s(this,n)}reset(){l(this,o,void 0),p(this,f,y).call(this),p(this,O,S).call(this)}mutate(t,e){var r;return l(this,u,e),(r=s(this,o))==null||r.removeObserver(this),l(this,o,s(this,a).getMutationCache().build(s(this,a),this.options)),s(this,o).addObserver(this),s(this,o).execute(t)}},a=new WeakMap,n=new WeakMap,o=new WeakMap,u=new WeakMap,f=new WeakSet,y=function(){var e;const t=((e=s(this,o))==null?void 0:e.state)??b.getDefaultState();l(this,n,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},O=new WeakSet,S=function(t){b.notifyManager.batch(()=>{var e,r,h,m,d,g,C,E;s(this,u)&&this.hasListeners()&&((t==null?void 0:t.type)==="success"?((r=(e=s(this,u)).onSuccess)==null||r.call(e,t.data,s(this,n).variables,s(this,n).context),(m=(h=s(this,u)).onSettled)==null||m.call(h,t.data,null,s(this,n).variables,s(this,n).context)):(t==null?void 0:t.type)==="error"&&((g=(d=s(this,u)).onError)==null||g.call(d,t.error,s(this,n).variables,s(this,n).context),(E=(C=s(this,u)).onSettled)==null||E.call(C,void 0,t.error,s(this,n).variables,s(this,n).context))),this.listeners.forEach(R=>{R(s(this,n))})})},x);function q(i,t){const e=b.useQueryClient(t),[r]=v.useState(()=>new k(e,i));v.useEffect(()=>{r.setOptions(i)},[r,i]);const h=v.useSyncExternalStore(v.useCallback(d=>r.subscribe(b.notifyManager.batchCalls(d)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),m=v.useCallback((d,g)=>{r.mutate(d,g).catch(D)},[r]);if(h.error&&b.shouldThrowError(r.options.throwOnError,[h.error]))throw h.error;return{...h,mutate:m,mutateAsync:h.mutate}}function D(){}exports.useMutation=q;
|