@chaibuilder/sdk 1.0.13 → 1.0.15
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-H7BZYHUC.js → AddBlocks-eoo1CzaK.js} +114 -111
- package/dist/AddBlocks-jU0NwP_s.cjs +3 -0
- package/dist/BrandingOptions-WSCFnWAf.cjs +1 -0
- package/dist/{BrandingOptions-PAgY-kvj.js → BrandingOptions-_Og7VUHA.js} +57 -41
- package/dist/{CanvasArea-zn2ox-5h.js → CanvasArea-cky_d2Lu.js} +517 -519
- package/dist/CanvasArea-hT9uHhkz.cjs +46 -0
- package/dist/Class-RZuPYbUS.cjs +1 -0
- package/dist/{Class-l7qYbuoN.js → Class-nQk08vqd.js} +204 -124
- package/dist/{CurrentPage-6Jp4xAWK.js → CurrentPage--OlBwyNE.js} +58 -40
- package/dist/CurrentPage-x6Ez11gP.cjs +1 -0
- package/dist/Layers-gEA0qWYP.cjs +1 -0
- package/dist/{Layers-WkZ48AUm.js → Layers-uzA3QA-4.js} +158 -141
- package/dist/MarkAsGlobalBlock-lYL8cO9x.cjs +1 -0
- package/dist/MarkAsGlobalBlock-ySc-D4SB.js +84 -0
- package/dist/PagesPanel-5t0bV9T2.cjs +1 -0
- package/dist/PagesPanel-tH6c9Mnv.js +70 -0
- package/dist/ProjectPanel-NdrR6a8t.cjs +1 -0
- package/dist/ProjectPanel-Q2-15-In.js +91 -0
- package/dist/Settings-DBiwm1hY.cjs +1 -0
- package/dist/{Settings-fH8fZKpm.js → Settings-LOqpvQ_1.js} +411 -408
- package/dist/SidePanels-8JWYXGqN.cjs +1 -0
- package/dist/{SidePanels-w8ZHKJaR.js → SidePanels-F7ccs2Xf.js} +106 -88
- package/dist/{Topbar-hm1D_5sb.js → Topbar-lX9OMPwj.js} +47 -45
- package/dist/Topbar-qi5ab8rR.cjs +1 -0
- package/dist/UnsplashImages-a2r7b3kB.cjs +1 -0
- package/dist/{UnsplashImages-gPcBLjgB.js → UnsplashImages-u_QTABzi.js} +56 -44
- package/dist/{UploadImages-_ZyUU66E.js → UploadImages-gV5xDHIu.js} +55 -34
- package/dist/UploadImages-jLQgLujd.cjs +1 -0
- package/dist/add-page-modal-U5ramelz.js +110 -0
- package/dist/add-page-modal-tIt3N8jH.cjs +1 -0
- package/dist/confirm-alert-ZQ-sxX0X.js +58 -0
- package/dist/confirm-alert-z74-fGOT.cjs +1 -0
- package/dist/core.cjs +1 -1
- package/dist/core.js +99 -124
- package/dist/delete-page-modal-5XuSfQT0.cjs +1 -0
- package/dist/delete-page-modal-_E87bVUZ.js +89 -0
- package/dist/form-Osm1AmO5.cjs +1 -0
- package/dist/{form-dVpOAyRl.js → form-zZJyZuNH.js} +12 -12
- package/dist/index-2EHcmZqL.js +2947 -0
- package/dist/index-RVm8Txnj.js +1149 -0
- package/dist/index-_jFEo7h5.cjs +206 -0
- package/dist/index-c8zW_D2V.cjs +1 -0
- package/dist/index-cU5eyVRU.js +40872 -0
- package/dist/index-fwo4wa7u.cjs +1 -0
- package/dist/index-gmZcUXyn.js +25 -0
- package/dist/index-m2muA80V.cjs +9 -0
- package/dist/{jsx-runtime-JYMCiFoE.cjs → jsx-runtime-WKRPbKtm.cjs} +7 -7
- package/dist/{jsx-runtime-Sp0orL4X.js → jsx-runtime-qAwJ85SY.js} +109 -106
- package/dist/lib.cjs +2 -1
- package/dist/lib.js +1333 -71
- package/dist/page-viewer-BSc-5M4B.cjs +1 -0
- package/dist/{page-viewer-Y4YiaZ_m.js → page-viewer-nLqIs_9w.js} +62 -44
- package/dist/project-general-setting-14MA_cX5.cjs +1 -0
- package/dist/{project-general-setting-U4S_KlhU.js → project-general-setting-kXh5myAr.js} +46 -36
- package/dist/project-seo-setting-POGPEJZ8.cjs +1 -0
- package/dist/project-seo-setting-nT1qo1Bb.js +89 -0
- package/dist/render.cjs +1 -1
- package/dist/render.js +23 -19
- package/dist/server.cjs +1 -1
- package/dist/server.js +1 -1
- package/dist/single-page-detail-EgQd9TSA.cjs +1 -0
- package/dist/{single-page-detail-pAxCy_Pe.js → single-page-detail-fV-A6vJR.js} +90 -80
- package/dist/studio.cjs +1 -1
- package/dist/studio.js +45 -25
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +156 -357
- package/package.json +1 -1
- package/dist/AddBlocks-7ACJv8LW.cjs +0 -3
- package/dist/BrandingOptions-5j-XszLM.cjs +0 -1
- package/dist/CanvasArea-Dnm-yeus.cjs +0 -46
- package/dist/ChaiBuilderEditor-BoE-sArB.cjs +0 -163
- package/dist/ChaiBuilderEditor-hEuUONQ3.js +0 -27094
- package/dist/Class-_uCzl5v1.cjs +0 -1
- package/dist/CurrentPage-YMpqOqx7.cjs +0 -1
- package/dist/ImagesPanel-6us7hiLN.cjs +0 -1
- package/dist/ImagesPanel-oaHOD-Ex.js +0 -27
- package/dist/Layers-EzOZdWvd.cjs +0 -1
- package/dist/MODIFIERS-DsEzQ3aH.js +0 -73
- package/dist/MODIFIERS-Fx6WAZcw.cjs +0 -1
- package/dist/MarkAsGlobalBlock-0HubcRkY.js +0 -77
- package/dist/MarkAsGlobalBlock-HmeIyLCP.cjs +0 -1
- package/dist/PagesPanel-6JuwBLFQ.js +0 -50
- package/dist/PagesPanel-zJq8p1ja.cjs +0 -1
- package/dist/ProjectPanel-Zml2F8b9.cjs +0 -1
- package/dist/ProjectPanel-cu2QSDW9.js +0 -73
- package/dist/Settings-lc9PfnmG.cjs +0 -1
- package/dist/SidePanels-VH72zFE2.cjs +0 -1
- package/dist/Topbar-vQPo9xSY.cjs +0 -1
- package/dist/UnsplashImages-BoBBSi1a.cjs +0 -1
- package/dist/UploadImages-T6kW0s3G.cjs +0 -1
- package/dist/accordion-oPUeqPCZ.js +0 -42
- package/dist/accordion-ynvFtV_p.cjs +0 -1
- package/dist/add-page-modal--qZSwJuB.cjs +0 -1
- package/dist/add-page-modal-bj7qbZuK.js +0 -99
- package/dist/alert-dialog-GNfnpqFB.js +0 -64
- package/dist/alert-dialog-Mv0-wAvS.cjs +0 -1
- package/dist/command-ThdTuUxt.cjs +0 -1
- package/dist/command-VHca6CcN.js +0 -97
- package/dist/confirm-alert-8EHe0OOd.cjs +0 -1
- package/dist/confirm-alert-b0e_BLhF.js +0 -36
- package/dist/context-menu-8dC9uGXj.js +0 -122
- package/dist/context-menu-IgLbIuth.cjs +0 -1
- package/dist/controls-Ni5kEzLz.js +0 -103
- package/dist/controls-W97-POR_.cjs +0 -1
- package/dist/controls-enQY7NI8.js +0 -118
- package/dist/controls-xUKa23ic.cjs +0 -1
- package/dist/delete-page-modal-2LuDLEiP.cjs +0 -1
- package/dist/delete-page-modal-cnrR8tWH.js +0 -69
- package/dist/dialog-S_QbL1iq.cjs +0 -1
- package/dist/dialog-jrw9DF1f.js +0 -65
- package/dist/dropdown-menu-S03K_fNs.js +0 -164
- package/dist/dropdown-menu-sMXR59cB.cjs +0 -1
- package/dist/form-nRAvKPQj.cjs +0 -1
- package/dist/functions-nNTuSTsR.js +0 -1106
- package/dist/functions-pcUZhFJM.js +0 -12
- package/dist/functions-sCuB7nvZ.cjs +0 -2
- package/dist/functions-uw7QP2kT.cjs +0 -1
- package/dist/html-to-json-P6GpbcQX.cjs +0 -1
- package/dist/html-to-json-pdHQfRkN.js +0 -178
- package/dist/index-HAue58ea.cjs +0 -1
- package/dist/index-T4_wfKl5.js +0 -2256
- package/dist/index-X9ZgD09V.cjs +0 -1
- package/dist/index-ehKdBRUK.js +0 -18
- package/dist/label-KaP7MRrs.js +0 -10
- package/dist/label-tFm8HZdb.cjs +0 -1
- package/dist/link-6o6n2Tnd.js +0 -204
- package/dist/link-ece8dZGH.cjs +0 -1
- package/dist/page-viewer-IARz6OSp.cjs +0 -1
- package/dist/popover-a84pbVhQ.js +0 -23
- package/dist/popover-fKjgcRUx.cjs +0 -1
- package/dist/project-general-setting-eSl3t-VH.cjs +0 -1
- package/dist/project-seo-setting-Ga9v_ECU.js +0 -67
- package/dist/project-seo-setting-rankm1z3.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-yPgnu2AI.cjs +0 -1
- package/dist/skeleton-CU_FIbg3.js +0 -239
- package/dist/skeleton-JHP9zwL2.cjs +0 -1
- package/dist/tabs-Gb9v5dVb.js +0 -46
- package/dist/tabs-iWeaaVrg.cjs +0 -1
- package/dist/textarea-1kZEh7ki.cjs +0 -1
- package/dist/textarea-b2QvVhrK.js +0 -73
- package/dist/toggle-ASJRAaGP.js +0 -30
- package/dist/toggle-ehNIPmme.cjs +0 -1
- package/dist/useAddBlock-WJc3OgG8.js +0 -86
- package/dist/useAddBlock-dCKRFPRU.cjs +0 -1
- package/dist/useAllBlocks-6hvuNuyw.cjs +0 -1
- package/dist/useAllBlocks-PQKYvs-e.js +0 -20
- package/dist/useChaiExternalData-4K9WxANa.js +0 -6
- package/dist/useChaiExternalData-DkyBJ81C.cjs +0 -1
- package/dist/useDarkMode-ZKCO_gkt.js +0 -23
- package/dist/useDarkMode-dV6FM6l-.cjs +0 -1
- package/dist/useFeatureSupport-OLwNgEZb.js +0 -16
- package/dist/useFeatureSupport-c9IgPW2t.cjs +0 -1
- package/dist/useHiddenBlocks-3MsGOJ1s.js +0 -15
- package/dist/useHiddenBlocks-oJuQDmTy.cjs +0 -1
- package/dist/useLanguage-NKKKaxVM.cjs +0 -1
- package/dist/useLanguage-gVC5rxO5.js +0 -216
- package/dist/useMarkAsGlobalBlock-X73Vny8u.js +0 -25
- package/dist/useMarkAsGlobalBlock-ebBVGHg4.cjs +0 -1
- package/dist/useUiLibraries-4hPOi8DI.js +0 -12
- package/dist/useUiLibraries-9FhQCpKo.cjs +0 -1
- package/dist/utils-dze1SGvB.js +0 -6
- package/dist/utils-qK_SjzzV.cjs +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { g as fr } from "./Class-nQk08vqd.js";
|
|
1
2
|
import Oe from "react";
|
|
2
|
-
var
|
|
3
|
+
var N = { exports: {} }, j = {};
|
|
3
4
|
/**
|
|
4
5
|
* @license React
|
|
5
6
|
* react-jsx-runtime.production.min.js
|
|
@@ -14,18 +15,18 @@ function ir() {
|
|
|
14
15
|
if (ye)
|
|
15
16
|
return j;
|
|
16
17
|
ye = 1;
|
|
17
|
-
var
|
|
18
|
-
function S(
|
|
19
|
-
var d, g = {},
|
|
20
|
-
y !== void 0 && (
|
|
18
|
+
var V = Oe, P = Symbol.for("react.element"), M = Symbol.for("react.fragment"), h = Object.prototype.hasOwnProperty, D = V.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, F = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
19
|
+
function S(b, l, y) {
|
|
20
|
+
var d, g = {}, R = null, A = null;
|
|
21
|
+
y !== void 0 && (R = "" + y), l.key !== void 0 && (R = "" + l.key), l.ref !== void 0 && (A = l.ref);
|
|
21
22
|
for (d in l)
|
|
22
|
-
|
|
23
|
-
if (
|
|
24
|
-
for (d in l =
|
|
23
|
+
h.call(l, d) && !F.hasOwnProperty(d) && (g[d] = l[d]);
|
|
24
|
+
if (b && b.defaultProps)
|
|
25
|
+
for (d in l = b.defaultProps, l)
|
|
25
26
|
g[d] === void 0 && (g[d] = l[d]);
|
|
26
|
-
return { $$typeof: P, type:
|
|
27
|
+
return { $$typeof: P, type: b, key: R, ref: A, props: g, _owner: D.current };
|
|
27
28
|
}
|
|
28
|
-
return j.Fragment =
|
|
29
|
+
return j.Fragment = M, j.jsx = S, j.jsxs = S, j;
|
|
29
30
|
}
|
|
30
31
|
var k = {};
|
|
31
32
|
/**
|
|
@@ -40,14 +41,15 @@ var k = {};
|
|
|
40
41
|
var Te;
|
|
41
42
|
function ur() {
|
|
42
43
|
return Te || (Te = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
-
|
|
44
|
+
"use strict";
|
|
45
|
+
var V = Oe, P = Symbol.for("react.element"), M = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), D = Symbol.for("react.strict_mode"), F = Symbol.for("react.profiler"), S = Symbol.for("react.provider"), b = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), A = Symbol.for("react.offscreen"), X = Symbol.iterator, Ce = "@@iterator";
|
|
44
46
|
function Pe(e) {
|
|
45
47
|
if (e === null || typeof e != "object")
|
|
46
48
|
return null;
|
|
47
49
|
var r = X && e[X] || e[Ce];
|
|
48
50
|
return typeof r == "function" ? r : null;
|
|
49
51
|
}
|
|
50
|
-
var T =
|
|
52
|
+
var T = V.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
53
|
function c(e) {
|
|
52
54
|
{
|
|
53
55
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
@@ -68,7 +70,7 @@ function ur() {
|
|
|
68
70
|
var we = !1, xe = !1, je = !1, ke = !1, De = !1, Z;
|
|
69
71
|
Z = Symbol.for("react.module.reference");
|
|
70
72
|
function Fe(e) {
|
|
71
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
73
|
+
return !!(typeof e == "string" || typeof e == "function" || e === h || e === F || De || e === D || e === y || e === d || ke || e === A || we || xe || je || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === g || e.$$typeof === S || e.$$typeof === b || e.$$typeof === l || // This needs to include all possible module reference object
|
|
72
74
|
// types supported by any Flight configuration anywhere since
|
|
73
75
|
// we don't know which Flight build this will end up being used
|
|
74
76
|
// with.
|
|
@@ -84,7 +86,7 @@ function ur() {
|
|
|
84
86
|
function Q(e) {
|
|
85
87
|
return e.displayName || "Context";
|
|
86
88
|
}
|
|
87
|
-
function
|
|
89
|
+
function m(e) {
|
|
88
90
|
if (e == null)
|
|
89
91
|
return null;
|
|
90
92
|
if (typeof e.tag == "number" && c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
@@ -92,9 +94,9 @@ function ur() {
|
|
|
92
94
|
if (typeof e == "string")
|
|
93
95
|
return e;
|
|
94
96
|
switch (e) {
|
|
95
|
-
case
|
|
97
|
+
case h:
|
|
96
98
|
return "Fragment";
|
|
97
|
-
case
|
|
99
|
+
case M:
|
|
98
100
|
return "Portal";
|
|
99
101
|
case F:
|
|
100
102
|
return "Profiler";
|
|
@@ -107,7 +109,7 @@ function ur() {
|
|
|
107
109
|
}
|
|
108
110
|
if (typeof e == "object")
|
|
109
111
|
switch (e.$$typeof) {
|
|
110
|
-
case
|
|
112
|
+
case b:
|
|
111
113
|
var r = e;
|
|
112
114
|
return Q(r) + ".Consumer";
|
|
113
115
|
case S:
|
|
@@ -117,11 +119,11 @@ function ur() {
|
|
|
117
119
|
return Ae(e, e.render, "ForwardRef");
|
|
118
120
|
case g:
|
|
119
121
|
var n = e.displayName || null;
|
|
120
|
-
return n !== null ? n :
|
|
121
|
-
case
|
|
122
|
+
return n !== null ? n : m(e.type) || "Memo";
|
|
123
|
+
case R: {
|
|
122
124
|
var i = e, u = i._payload, o = i._init;
|
|
123
125
|
try {
|
|
124
|
-
return
|
|
126
|
+
return m(o(u));
|
|
125
127
|
} catch {
|
|
126
128
|
return null;
|
|
127
129
|
}
|
|
@@ -129,7 +131,7 @@ function ur() {
|
|
|
129
131
|
}
|
|
130
132
|
return null;
|
|
131
133
|
}
|
|
132
|
-
var
|
|
134
|
+
var _ = Object.assign, w = 0, ee, re, te, ne, ae, oe, ie;
|
|
133
135
|
function ue() {
|
|
134
136
|
}
|
|
135
137
|
ue.__reactDisabledLog = !0;
|
|
@@ -156,7 +158,7 @@ function ur() {
|
|
|
156
158
|
w++;
|
|
157
159
|
}
|
|
158
160
|
}
|
|
159
|
-
function
|
|
161
|
+
function $e() {
|
|
160
162
|
{
|
|
161
163
|
if (w--, w === 0) {
|
|
162
164
|
var e = {
|
|
@@ -165,25 +167,25 @@ function ur() {
|
|
|
165
167
|
writable: !0
|
|
166
168
|
};
|
|
167
169
|
Object.defineProperties(console, {
|
|
168
|
-
log:
|
|
170
|
+
log: _({}, e, {
|
|
169
171
|
value: ee
|
|
170
172
|
}),
|
|
171
|
-
info:
|
|
173
|
+
info: _({}, e, {
|
|
172
174
|
value: re
|
|
173
175
|
}),
|
|
174
|
-
warn:
|
|
176
|
+
warn: _({}, e, {
|
|
175
177
|
value: te
|
|
176
178
|
}),
|
|
177
|
-
error:
|
|
179
|
+
error: _({}, e, {
|
|
178
180
|
value: ne
|
|
179
181
|
}),
|
|
180
|
-
group:
|
|
182
|
+
group: _({}, e, {
|
|
181
183
|
value: ae
|
|
182
184
|
}),
|
|
183
|
-
groupCollapsed:
|
|
185
|
+
groupCollapsed: _({}, e, {
|
|
184
186
|
value: oe
|
|
185
187
|
}),
|
|
186
|
-
groupEnd:
|
|
188
|
+
groupEnd: _({}, e, {
|
|
187
189
|
value: ie
|
|
188
190
|
})
|
|
189
191
|
});
|
|
@@ -191,39 +193,39 @@ function ur() {
|
|
|
191
193
|
w < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
192
194
|
}
|
|
193
195
|
}
|
|
194
|
-
var
|
|
196
|
+
var U = T.ReactCurrentDispatcher, B;
|
|
195
197
|
function I(e, r, t) {
|
|
196
198
|
{
|
|
197
|
-
if (
|
|
199
|
+
if (B === void 0)
|
|
198
200
|
try {
|
|
199
201
|
throw Error();
|
|
200
202
|
} catch (i) {
|
|
201
203
|
var n = i.stack.trim().match(/\n( *(at )?)/);
|
|
202
|
-
|
|
204
|
+
B = n && n[1] || "";
|
|
203
205
|
}
|
|
204
206
|
return `
|
|
205
|
-
` +
|
|
207
|
+
` + B + e;
|
|
206
208
|
}
|
|
207
209
|
}
|
|
208
|
-
var
|
|
210
|
+
var q = !1, $;
|
|
209
211
|
{
|
|
210
|
-
var
|
|
211
|
-
|
|
212
|
+
var We = typeof WeakMap == "function" ? WeakMap : Map;
|
|
213
|
+
$ = new We();
|
|
212
214
|
}
|
|
213
215
|
function se(e, r) {
|
|
214
|
-
if (!e ||
|
|
216
|
+
if (!e || q)
|
|
215
217
|
return "";
|
|
216
218
|
{
|
|
217
|
-
var t =
|
|
219
|
+
var t = $.get(e);
|
|
218
220
|
if (t !== void 0)
|
|
219
221
|
return t;
|
|
220
222
|
}
|
|
221
223
|
var n;
|
|
222
|
-
|
|
224
|
+
q = !0;
|
|
223
225
|
var i = Error.prepareStackTrace;
|
|
224
226
|
Error.prepareStackTrace = void 0;
|
|
225
227
|
var u;
|
|
226
|
-
u =
|
|
228
|
+
u = U.current, U.current = null, Ie();
|
|
227
229
|
try {
|
|
228
230
|
if (r) {
|
|
229
231
|
var o = function() {
|
|
@@ -236,29 +238,29 @@ function ur() {
|
|
|
236
238
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
237
239
|
try {
|
|
238
240
|
Reflect.construct(o, []);
|
|
239
|
-
} catch (
|
|
240
|
-
n =
|
|
241
|
+
} catch (E) {
|
|
242
|
+
n = E;
|
|
241
243
|
}
|
|
242
244
|
Reflect.construct(e, [], o);
|
|
243
245
|
} else {
|
|
244
246
|
try {
|
|
245
247
|
o.call();
|
|
246
|
-
} catch (
|
|
247
|
-
n =
|
|
248
|
+
} catch (E) {
|
|
249
|
+
n = E;
|
|
248
250
|
}
|
|
249
251
|
e.call(o.prototype);
|
|
250
252
|
}
|
|
251
253
|
} else {
|
|
252
254
|
try {
|
|
253
255
|
throw Error();
|
|
254
|
-
} catch (
|
|
255
|
-
n =
|
|
256
|
+
} catch (E) {
|
|
257
|
+
n = E;
|
|
256
258
|
}
|
|
257
259
|
e();
|
|
258
260
|
}
|
|
259
|
-
} catch (
|
|
260
|
-
if (
|
|
261
|
-
for (var a =
|
|
261
|
+
} catch (E) {
|
|
262
|
+
if (E && n && typeof E.stack == "string") {
|
|
263
|
+
for (var a = E.stack.split(`
|
|
262
264
|
`), v = n.stack.split(`
|
|
263
265
|
`), s = a.length - 1, f = v.length - 1; s >= 1 && f >= 0 && a[s] !== v[f]; )
|
|
264
266
|
f--;
|
|
@@ -269,26 +271,26 @@ function ur() {
|
|
|
269
271
|
if (s--, f--, f < 0 || a[s] !== v[f]) {
|
|
270
272
|
var p = `
|
|
271
273
|
` + a[s].replace(" at new ", " at ");
|
|
272
|
-
return e.displayName && p.includes("<anonymous>") && (p = p.replace("<anonymous>", e.displayName)), typeof e == "function" &&
|
|
274
|
+
return e.displayName && p.includes("<anonymous>") && (p = p.replace("<anonymous>", e.displayName)), typeof e == "function" && $.set(e, p), p;
|
|
273
275
|
}
|
|
274
276
|
while (s >= 1 && f >= 0);
|
|
275
277
|
break;
|
|
276
278
|
}
|
|
277
279
|
}
|
|
278
280
|
} finally {
|
|
279
|
-
|
|
281
|
+
q = !1, U.current = u, $e(), Error.prepareStackTrace = i;
|
|
280
282
|
}
|
|
281
|
-
var C = e ? e.displayName || e.name : "",
|
|
282
|
-
return typeof e == "function" &&
|
|
283
|
+
var C = e ? e.displayName || e.name : "", he = C ? I(C) : "";
|
|
284
|
+
return typeof e == "function" && $.set(e, he), he;
|
|
283
285
|
}
|
|
284
|
-
function
|
|
286
|
+
function Ye(e, r, t) {
|
|
285
287
|
return se(e, !1);
|
|
286
288
|
}
|
|
287
289
|
function Le(e) {
|
|
288
290
|
var r = e.prototype;
|
|
289
291
|
return !!(r && r.isReactComponent);
|
|
290
292
|
}
|
|
291
|
-
function
|
|
293
|
+
function W(e, r, t) {
|
|
292
294
|
if (e == null)
|
|
293
295
|
return "";
|
|
294
296
|
if (typeof e == "function")
|
|
@@ -304,30 +306,30 @@ function ur() {
|
|
|
304
306
|
if (typeof e == "object")
|
|
305
307
|
switch (e.$$typeof) {
|
|
306
308
|
case l:
|
|
307
|
-
return
|
|
309
|
+
return Ye(e.render);
|
|
308
310
|
case g:
|
|
309
|
-
return
|
|
310
|
-
case
|
|
311
|
+
return W(e.type, r, t);
|
|
312
|
+
case R: {
|
|
311
313
|
var n = e, i = n._payload, u = n._init;
|
|
312
314
|
try {
|
|
313
|
-
return
|
|
315
|
+
return W(u(i), r, t);
|
|
314
316
|
} catch {
|
|
315
317
|
}
|
|
316
318
|
}
|
|
317
319
|
}
|
|
318
320
|
return "";
|
|
319
321
|
}
|
|
320
|
-
var
|
|
322
|
+
var Y = Object.prototype.hasOwnProperty, fe = {}, le = T.ReactDebugCurrentFrame;
|
|
321
323
|
function L(e) {
|
|
322
324
|
if (e) {
|
|
323
|
-
var r = e._owner, t =
|
|
325
|
+
var r = e._owner, t = W(e.type, e._source, r ? r.type : null);
|
|
324
326
|
le.setExtraStackFrame(t);
|
|
325
327
|
} else
|
|
326
328
|
le.setExtraStackFrame(null);
|
|
327
329
|
}
|
|
328
330
|
function Ne(e, r, t, n, i) {
|
|
329
331
|
{
|
|
330
|
-
var u = Function.call.bind(
|
|
332
|
+
var u = Function.call.bind(Y);
|
|
331
333
|
for (var o in e)
|
|
332
334
|
if (u(e, o)) {
|
|
333
335
|
var a = void 0;
|
|
@@ -345,7 +347,7 @@ function ur() {
|
|
|
345
347
|
}
|
|
346
348
|
}
|
|
347
349
|
var Ve = Array.isArray;
|
|
348
|
-
function
|
|
350
|
+
function J(e) {
|
|
349
351
|
return Ve(e);
|
|
350
352
|
}
|
|
351
353
|
function Me(e) {
|
|
@@ -373,10 +375,10 @@ function ur() {
|
|
|
373
375
|
ref: !0,
|
|
374
376
|
__self: !0,
|
|
375
377
|
__source: !0
|
|
376
|
-
}, de, pe,
|
|
377
|
-
|
|
378
|
+
}, de, pe, G;
|
|
379
|
+
G = {};
|
|
378
380
|
function qe(e) {
|
|
379
|
-
if (
|
|
381
|
+
if (Y.call(e, "ref")) {
|
|
380
382
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
381
383
|
if (r && r.isReactWarning)
|
|
382
384
|
return !1;
|
|
@@ -384,7 +386,7 @@ function ur() {
|
|
|
384
386
|
return e.ref !== void 0;
|
|
385
387
|
}
|
|
386
388
|
function Je(e) {
|
|
387
|
-
if (
|
|
389
|
+
if (Y.call(e, "key")) {
|
|
388
390
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
389
391
|
if (r && r.isReactWarning)
|
|
390
392
|
return !1;
|
|
@@ -393,8 +395,8 @@ function ur() {
|
|
|
393
395
|
}
|
|
394
396
|
function Ge(e, r) {
|
|
395
397
|
if (typeof e.ref == "string" && x.current && r && x.current.stateNode !== r) {
|
|
396
|
-
var t =
|
|
397
|
-
|
|
398
|
+
var t = m(x.current.type);
|
|
399
|
+
G[t] || (c('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', m(x.current.type), e.ref), G[t] = !0);
|
|
398
400
|
}
|
|
399
401
|
}
|
|
400
402
|
function ze(e, r) {
|
|
@@ -453,7 +455,7 @@ function ur() {
|
|
|
453
455
|
var u, o = {}, a = null, v = null;
|
|
454
456
|
t !== void 0 && (ve(t), a = "" + t), Je(r) && (ve(r.key), a = "" + r.key), qe(r) && (v = r.ref, Ge(r, i));
|
|
455
457
|
for (u in r)
|
|
456
|
-
|
|
458
|
+
Y.call(r, u) && !Be.hasOwnProperty(u) && (o[u] = r[u]);
|
|
457
459
|
if (e && e.defaultProps) {
|
|
458
460
|
var s = e.defaultProps;
|
|
459
461
|
for (u in s)
|
|
@@ -466,23 +468,23 @@ function ur() {
|
|
|
466
468
|
return He(e, a, v, i, n, x.current, o);
|
|
467
469
|
}
|
|
468
470
|
}
|
|
469
|
-
var
|
|
471
|
+
var z = T.ReactCurrentOwner, ge = T.ReactDebugCurrentFrame;
|
|
470
472
|
function O(e) {
|
|
471
473
|
if (e) {
|
|
472
|
-
var r = e._owner, t =
|
|
474
|
+
var r = e._owner, t = W(e.type, e._source, r ? r.type : null);
|
|
473
475
|
ge.setExtraStackFrame(t);
|
|
474
476
|
} else
|
|
475
477
|
ge.setExtraStackFrame(null);
|
|
476
478
|
}
|
|
477
|
-
var
|
|
478
|
-
|
|
479
|
-
function
|
|
479
|
+
var K;
|
|
480
|
+
K = !1;
|
|
481
|
+
function H(e) {
|
|
480
482
|
return typeof e == "object" && e !== null && e.$$typeof === P;
|
|
481
483
|
}
|
|
482
|
-
function
|
|
484
|
+
function me() {
|
|
483
485
|
{
|
|
484
|
-
if (
|
|
485
|
-
var e =
|
|
486
|
+
if (z.current) {
|
|
487
|
+
var e = m(z.current.type);
|
|
486
488
|
if (e)
|
|
487
489
|
return `
|
|
488
490
|
|
|
@@ -502,10 +504,10 @@ Check your code at ` + r + ":" + t + ".";
|
|
|
502
504
|
return "";
|
|
503
505
|
}
|
|
504
506
|
}
|
|
505
|
-
var
|
|
507
|
+
var Ee = {};
|
|
506
508
|
function Qe(e) {
|
|
507
509
|
{
|
|
508
|
-
var r =
|
|
510
|
+
var r = me();
|
|
509
511
|
if (!r) {
|
|
510
512
|
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
511
513
|
t && (r = `
|
|
@@ -515,35 +517,35 @@ Check the top-level render call using <` + t + ">.");
|
|
|
515
517
|
return r;
|
|
516
518
|
}
|
|
517
519
|
}
|
|
518
|
-
function
|
|
520
|
+
function be(e, r) {
|
|
519
521
|
{
|
|
520
522
|
if (!e._store || e._store.validated || e.key != null)
|
|
521
523
|
return;
|
|
522
524
|
e._store.validated = !0;
|
|
523
525
|
var t = Qe(r);
|
|
524
|
-
if (
|
|
526
|
+
if (Ee[t])
|
|
525
527
|
return;
|
|
526
|
-
|
|
528
|
+
Ee[t] = !0;
|
|
527
529
|
var n = "";
|
|
528
|
-
e && e._owner && e._owner !==
|
|
530
|
+
e && e._owner && e._owner !== z.current && (n = " It was passed a child from " + m(e._owner.type) + "."), O(e), c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), O(null);
|
|
529
531
|
}
|
|
530
532
|
}
|
|
531
|
-
function
|
|
533
|
+
function Re(e, r) {
|
|
532
534
|
{
|
|
533
535
|
if (typeof e != "object")
|
|
534
536
|
return;
|
|
535
|
-
if (
|
|
537
|
+
if (J(e))
|
|
536
538
|
for (var t = 0; t < e.length; t++) {
|
|
537
539
|
var n = e[t];
|
|
538
|
-
|
|
540
|
+
H(n) && be(n, r);
|
|
539
541
|
}
|
|
540
|
-
else if (
|
|
542
|
+
else if (H(e))
|
|
541
543
|
e._store && (e._store.validated = !0);
|
|
542
544
|
else if (e) {
|
|
543
545
|
var i = Pe(e);
|
|
544
546
|
if (typeof i == "function" && i !== e.entries)
|
|
545
547
|
for (var u = i.call(e), o; !(o = u.next()).done; )
|
|
546
|
-
|
|
548
|
+
H(o.value) && be(o.value, r);
|
|
547
549
|
}
|
|
548
550
|
}
|
|
549
551
|
}
|
|
@@ -562,11 +564,11 @@ Check the top-level render call using <` + t + ">.");
|
|
|
562
564
|
else
|
|
563
565
|
return;
|
|
564
566
|
if (t) {
|
|
565
|
-
var n =
|
|
567
|
+
var n = m(r);
|
|
566
568
|
Ne(t, e.props, "prop", n, e);
|
|
567
|
-
} else if (r.PropTypes !== void 0 && !
|
|
568
|
-
|
|
569
|
-
var i =
|
|
569
|
+
} else if (r.PropTypes !== void 0 && !K) {
|
|
570
|
+
K = !0;
|
|
571
|
+
var i = m(r);
|
|
570
572
|
c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
|
|
571
573
|
}
|
|
572
574
|
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -584,16 +586,16 @@ Check the top-level render call using <` + t + ">.");
|
|
|
584
586
|
e.ref !== null && (O(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), O(null));
|
|
585
587
|
}
|
|
586
588
|
}
|
|
587
|
-
function
|
|
589
|
+
function _e(e, r, t, n, i, u) {
|
|
588
590
|
{
|
|
589
591
|
var o = Fe(e);
|
|
590
592
|
if (!o) {
|
|
591
593
|
var a = "";
|
|
592
594
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
593
595
|
var v = Ze(i);
|
|
594
|
-
v ? a += v : a +=
|
|
596
|
+
v ? a += v : a += me();
|
|
595
597
|
var s;
|
|
596
|
-
e === null ? s = "null" :
|
|
598
|
+
e === null ? s = "null" : J(e) ? s = "array" : e !== void 0 && e.$$typeof === P ? (s = "<" + (m(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a);
|
|
597
599
|
}
|
|
598
600
|
var f = Xe(e, r, t, i, u);
|
|
599
601
|
if (f == null)
|
|
@@ -602,30 +604,31 @@ Check the top-level render call using <` + t + ">.");
|
|
|
602
604
|
var p = r.children;
|
|
603
605
|
if (p !== void 0)
|
|
604
606
|
if (n)
|
|
605
|
-
if (
|
|
607
|
+
if (J(p)) {
|
|
606
608
|
for (var C = 0; C < p.length; C++)
|
|
607
|
-
|
|
609
|
+
Re(p[C], e);
|
|
608
610
|
Object.freeze && Object.freeze(p);
|
|
609
611
|
} else
|
|
610
612
|
c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
611
613
|
else
|
|
612
|
-
|
|
614
|
+
Re(p, e);
|
|
613
615
|
}
|
|
614
|
-
return e ===
|
|
616
|
+
return e === h ? rr(f) : er(f), f;
|
|
615
617
|
}
|
|
616
618
|
}
|
|
617
619
|
function tr(e, r, t) {
|
|
618
|
-
return
|
|
620
|
+
return _e(e, r, t, !0);
|
|
619
621
|
}
|
|
620
622
|
function nr(e, r, t) {
|
|
621
|
-
return
|
|
623
|
+
return _e(e, r, t, !1);
|
|
622
624
|
}
|
|
623
625
|
var ar = nr, or = tr;
|
|
624
|
-
k.Fragment =
|
|
626
|
+
k.Fragment = h, k.jsx = ar, k.jsxs = or;
|
|
625
627
|
}()), k;
|
|
626
628
|
}
|
|
627
|
-
|
|
628
|
-
|
|
629
|
+
var cr = N.exports;
|
|
630
|
+
process.env.NODE_ENV === "production" ? N.exports = ir() : N.exports = ur();
|
|
631
|
+
var vr = N.exports;
|
|
629
632
|
export {
|
|
630
|
-
|
|
633
|
+
vr as j
|
|
631
634
|
};
|
package/dist/lib.cjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("./utils-qK_SjzzV.cjs"),f=require("./functions-uw7QP2kT.cjs"),T=require("./html-to-json-P6GpbcQX.cjs"),n=require("lodash"),b=require("./Class-_uCzl5v1.cjs"),o=require("./functions-sCuB7nvZ.cjs");require("clsx");require("tailwind-merge");require("himalaya");require("./MODIFIERS-Fx6WAZcw.cjs");require("@mhsdesign/jit-browser-tailwindcss");require("@bobthered/tailwindcss-palette-generator");require("@tailwindcss/forms");require("@tailwindcss/typography");require("@tailwindcss/aspect-ratio");require("@tailwindcss/line-clamp");const g={25:"1/4","33.33":"1/3",50:"1/2","66.67":"2/3",75:"3/4",20:"1/5",40:"2/5",60:"3/5",80:"4/5","16.67":"1/6","83.33":"5/6","8.33":"1/12","41.67":"5/12","58.33":"7/12","91.67":"11/12",100:"full"},y={0:"0",1:"px",2:"0.5",4:"1",6:"1.5",8:"2",10:"2.5",12:"3",14:"3.5",16:"4",20:"5",24:"6",28:"7",32:"8",36:"9",40:"10",44:"11",48:"12",56:"14",64:"16",80:"20",96:"24",112:"28",128:"32",144:"36",160:"40",176:"44",192:"48",208:"52",224:"56",240:"60",256:"64",288:"72",320:"80",384:"96"},k=16,F=4;function w(a){return a.indexOf("rem")!==-1&&(a=`${parseFloat(a.replace("rem",""))*k}px`),a}const q=a=>{const t=a.match(/\[.*\]/);if(t===null)return a;const l=b.constructClassObject(a);if(l===null)return a;const{property:h}=l;let e=n.first(t).replace(/\]/i,"").replace(/\[/i,"");const s=a.replace(/\[.*\]/i,"");e=w(e);let r=a;switch(h){case"top":case"right":case"left":case"bottom":case"inset":case"insetX":case"insetY":case"gap":case"gapX":case"gapY":case"padding":case"paddingX":case"paddingY":case"paddingTop":case"paddingRight":case"paddingBottom":case"paddingLeft":case"margin":case"marginX":case"marginY":case"marginTop":case"marginRight":case"marginBottom":case"marginLeft":case"flexBasis":case"width":case"height":case"maxHeight":case"textIndent":case"spaceX":case"spaceY":if(e.indexOf("px")!==-1){const c=n.map(n.keys(y),i=>`${i}px`);if(n.includes(c,e)){const i=n.parseInt(e.replace("px",""),10);i===1?r=`${s}px`:r=s+i/F}}if(e.indexOf("%")!==-1){const c=n.map(n.keys(g),i=>`${i}%`);if(n.includes(c,e)){const i=parseFloat(e.replace("%",""));r=s+n.get(g,i)}}e.indexOf("vw")!==-1&&parseFloat(e.replace("vw",""))===100&&(r=`${s}screen`),e.indexOf("vh")!==-1&&parseFloat(e.replace("vh",""))===100&&(r=`${s}screen`);break;case"minWidth":e.indexOf("%")!==-1&&parseFloat(e.replace("%",""))===100&&(r=`${s}full`),e==="0px"&&(r="min-w-0");break;case"maxWidth":e==="0px"&&(r="max-w-0");const p={"320px":"xs","384px":"sm","448px":"md","512px":"lg","576px":"xl","672px":"2xl","768px":"3xl","896px":"4xl","1024px":"5xl","1152px":"6xl","1280px":"7xl","100%":"full","65ch":"prose","640px":"screen-sm","1536px":"screen-2xl"};n.includes(n.keys(p),e)&&(r=`max-w-${p[e]}`);break;case"minHeight":e.indexOf("%")!==-1&&parseFloat(e.replace("%",""))===100&&(r=`${s}full`),e==="0px"&&(r="min-h-0"),e==="100vh"&&(r="min-h-screen");break;case"fontSize":const d={"12px":"xs","14px":"sm","16px":"base","18px":"lg","20px":"xl","24px":"2xl","30px":"3xl","36px":"4xl","48px":"5xl","60px":"6xl","72px":"7xl","96px":"8xl","128px":"9xl"};n.includes(n.keys(d),e)&&(r=s+d[e]);break;case"lineHeight":const u={"12px":"3","16px":"4","20px":"5","24px":"6","28px":"7","32px":"8","36px":"9","40px":"10",1:"none","1.25":"tight","1.375":"snug","1.5":"normal","1.625":"relaxed",2:"loose"};n.includes(n.keys(u),e)&&(r=s+u[e]);break;case"zIndex":r=["0","10","20","30","40","50"].indexOf(e)!==-1?`${s}${e}`:a;break;case"opacity":const m=["0","5","10","20","25","30","40","50","60","70","75","80","90","95","100"],x=parseFloat(e)*100;n.includes(m,x.toString())&&(r=`opacity-${x}`);break}return r};function S(){return{colors:{border:"hsl(var(--border))",input:"hsl(var(--input))",ring:"hsl(var(--ring))",background:"hsl(var(--background))",foreground:"hsl(var(--foreground))",primary:{DEFAULT:"hsl(var(--primary))",foreground:"hsl(var(--primary-foreground))"},secondary:{DEFAULT:"hsl(var(--secondary))",foreground:"hsl(var(--secondary-foreground))"},destructive:{DEFAULT:"hsl(var(--destructive))",foreground:"hsl(var(--destructive-foreground))"},muted:{DEFAULT:"hsl(var(--muted))",foreground:"hsl(var(--muted-foreground))"},accent:{DEFAULT:"hsl(var(--accent))",foreground:"hsl(var(--accent-foreground))"},popover:{DEFAULT:"hsl(var(--popover))",foreground:"hsl(var(--popover-foreground))"},card:{DEFAULT:"hsl(var(--card))",foreground:"hsl(var(--card-foreground))"}},borderRadius:{lg:"var(--radius)",md:"calc(var(--radius) - 2px)",sm:"calc(var(--radius) - 4px)"},keyframes:{"accordion-down":{from:{height:"0"},to:{height:"var(--radix-accordion-content-height)"}},"accordion-up":{from:{height:"var(--radix-accordion-content-height)"},to:{height:"0"}}},animation:{"accordion-down":"accordion-down 0.2s ease-out","accordion-up":"accordion-up 0.2s ease-out"}}}const L=a=>({...a}),V=a=>({...a});exports.cn=v.cn;exports.generateUUID=f.generateUUID;exports.getBreakpointValue=f.getBreakpointValue;exports.getBlocksFromHTML=T.getBlocksFromHTML;exports.addPrefixToClasses=o.addPrefixToClasses;exports.getBlocksTailwindCSS=o.getBlocksTailwindCSS;exports.getBrandingClasses=o.getBrandingClasses;exports.getStylesForPageData=o.getStylesForPageData;exports.chaiBuilderTheme=S;exports.convertArbitraryToTailwindClass=q;exports.selectable=L;exports.styling=V;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./Class-RZuPYbUS.cjs"),b=require("himalaya"),t=require("lodash"),D=require("@mhsdesign/jit-browser-tailwindcss"),A=require("@bobthered/tailwindcss-palette-generator"),z=require("@tailwindcss/forms"),$=require("@tailwindcss/typography"),U=require("@tailwindcss/aspect-ratio"),O=require("@tailwindcss/line-clamp");require("clsx");require("tailwind-merge");const I={img:{alt:"alt",width:"width",height:"height",src:"image"},video:{src:"url",autoplay:"controls.autoPlay",muted:"controls.muted",loop:"controls.loop",controls:"controls.widgets"},a:{href:"link.href",target:"link.target",type:""},input:{placeholder:"placeholder",required:"required",type:"inputType",name:"fieldName"},textarea:{placeholder:"placeholder",required:"required",type:"inputType",name:"fieldName"},select:{placeholder:"placeholder",required:"required",multiple:"multiple",name:"fieldName"}},B=(e,r)=>e.children.length===1&&t.includes(["Heading","Paragraph","Span","ListItem","Button","Label","TableCell","Link"],r._type),v=e=>e.map(r=>r.type==="text"?t.get(r,"content",""):t.isEmpty(r.children)?"":v(r.children)).join(""),T=e=>e===null?!0:e,w=e=>{const r={},n=I[e.tagName]||{},o=e.attributes;return t.forEach(o,({key:a,value:s})=>{if(n[a]){if(e.tagName==="img"&&a==="src"&&!s.startsWith("http")){const i=t.find(e.attributes,{key:"width"}),l=t.find(e.attributes,{key:"height"});i&&l?s=`https://via.placeholder.com/${i==null?void 0:i.value}x${l==null?void 0:l.value}`:s="https://via.placeholder.com/150x150"}t.set(r,n[a],T(s))}else t.includes(["style","class","srcset"],a)||t.set(r,`styles_attrs.${a}`,T(s))}),delete r.class,r},H=(e,r="styles")=>{if(!e.attributes)return{[r]:`${c.STYLES_KEY},`};const n=t.find(e.attributes,{key:"class"});if(n){const o=n.value;return{[r]:`${c.STYLES_KEY},${o}`}}return{[r]:`${c.STYLES_KEY},`}},P=e=>{switch(e.tagName){case"img":return{_type:"Image"};case"input":return{_type:"Input",showLabel:!1};case"hr":return{_type:"Divider"};case"br":return{_type:"LineBreak"};case"textarea":return{_type:"TextArea",showLabel:!1};case"audio":return{_type:"Audio"};case"iframe":return{_type:"Iframe"};case"canvas":return{_type:"Canvas"};case"video":return{_type:"CustomHTML"};case"svg":return{_type:"Icon"};case"select":return{_type:"Select",options:[]};case"option":return{_type:"Option"};case"ul":case"ol":case"dl":return{_type:"List",tag:e.tagName,_listType:e.tagName==="ol"?"list-decimal":"list-none"};case"li":case"dt":return{_type:"ListItem",tag:e.tagName};case"span":case"figcaption":case"legend":return{_type:"Span",tag:e.tagName};case"p":return{_type:"Paragraph",content:""};case"a":return{_type:"Link"};case"form":return{_type:"Form"};case"label":return{_type:"Label"};case"button":return{_type:"Button"};case"code":return{_type:"Code"};case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return{_type:"Heading",tag:e.tagName};case"table":return{_type:"Table"};case"tr":return{_type:"TableRow"};case"td":case"th":return{_type:"TableCell",tag:e.tagName};case"thead":return{_type:"TableHead"};case"tbody":return{_type:"TableBody"};case"tfoot":return{_type:"TableFooter"};default:return{_type:"Box",tag:e.tagName,name:e.tagName==="div"?"Box":t.capitalize(e.tagName)}}},k=(e,r=null)=>t.flatMapDeep(e,n=>{var s;if(n.type==="comment")return[];let o={_id:c.generateUUID()};if(r&&(o._parent=r.block._id),n.type==="text")return t.isEmpty(t.get(n,"content",""))?[]:r&&B(r.node,r.block)?(t.set(r,"block.content",t.get(n,"content","")),[]):{...o,_type:"Text",content:t.get(n,"content","")};if(o={...o,...P(n),...w(n),...H(n)},o._type==="Input"){const i=o.inputType||"text";i==="checkbox"?t.set(o,"_type","Checkbox"):i==="radio"&&t.set(o,"_type","Radio")}else{if(n.tagName==="video")return o.content=b.stringify([n]),[o];if(n.tagName==="svg"){const i=t.find(n.attributes,{key:"height"}),l=t.find(n.attributes,{key:"width"}),p=t.get(i,"value")?`[${t.get(i,"value")}px]`:"full",m=t.get(l,"value")?`[${t.get(l,"value")}px]`:"full",x=t.get(t.find(n.attributes,{key:"class"}),"value");return o.styles=`${c.STYLES_KEY}, ${c.cn(`w-${m} h-${p}`,x)}`.trim(),n.attributes=t.filter(n.attributes,g=>!t.includes(["style","width","height","class"],g.key)),o.icon=b.stringify([n]),t.set(o,"styles_attrs",t.omit(t.get(o,"styles_attrs")||{},["height","width","style","class"])),[o]}else if(n.tagName=="option"&&r&&((s=r.block)==null?void 0:s._type)==="Select")return r.block.options.push({label:v(n.children),...w(n)}),[]}const a=k(n.children,{block:o,node:n});return[o,...a]}),R=e=>{const r=e.match(/<body[^>]*>[\s\S]*?<\/body>/);return(r&&r.length>0?r[0].replace(/<body/,"<div").replace(/<\/body>/,"</div>"):e).replace(/\s+/g," ").replaceAll("> <","><").replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"").trim()},M=e=>{const r=b.parse(R(e));return t.isEmpty(e)?[]:t.flatten(k(r))},_={25:"1/4","33.33":"1/3",50:"1/2","66.67":"2/3",75:"3/4",20:"1/5",40:"2/5",60:"3/5",80:"4/5","16.67":"1/6","83.33":"5/6","8.33":"1/12","41.67":"5/12","58.33":"7/12","91.67":"11/12",100:"full"},j={0:"0",1:"px",2:"0.5",4:"1",6:"1.5",8:"2",10:"2.5",12:"3",14:"3.5",16:"4",20:"5",24:"6",28:"7",32:"8",36:"9",40:"10",44:"11",48:"12",56:"14",64:"16",80:"20",96:"24",112:"28",128:"32",144:"36",160:"40",176:"44",192:"48",208:"52",224:"56",240:"60",256:"64",288:"72",320:"80",384:"96"};const W=16,q=4;function N(e){return e.indexOf("rem")!==-1&&(e=`${parseFloat(e.replace("rem",""))*W}px`),e}const Y=e=>{const r=e.match(/\[.*\]/);if(r===null)return e;const n=c.constructClassObject(e);if(n===null)return e;const{property:o}=n;let a=t.first(r).replace(/\]/i,"").replace(/\[/i,"");const s=e.replace(/\[.*\]/i,"");a=N(a);let i=e;switch(o){case"top":case"right":case"left":case"bottom":case"inset":case"insetX":case"insetY":case"gap":case"gapX":case"gapY":case"padding":case"paddingX":case"paddingY":case"paddingTop":case"paddingRight":case"paddingBottom":case"paddingLeft":case"margin":case"marginX":case"marginY":case"marginTop":case"marginRight":case"marginBottom":case"marginLeft":case"flexBasis":case"width":case"height":case"maxHeight":case"textIndent":case"spaceX":case"spaceY":if(a.indexOf("px")!==-1){const d=t.map(t.keys(j),u=>`${u}px`);if(t.includes(d,a)){const u=t.parseInt(a.replace("px",""),10);u===1?i=`${s}px`:i=s+u/q}}if(a.indexOf("%")!==-1){const d=t.map(t.keys(_),u=>`${u}%`);if(t.includes(d,a)){const u=parseFloat(a.replace("%",""));i=s+t.get(_,u)}}a.indexOf("vw")!==-1&&parseFloat(a.replace("vw",""))===100&&(i=`${s}screen`),a.indexOf("vh")!==-1&&parseFloat(a.replace("vh",""))===100&&(i=`${s}screen`);break;case"minWidth":a.indexOf("%")!==-1&&parseFloat(a.replace("%",""))===100&&(i=`${s}full`),a==="0px"&&(i="min-w-0");break;case"maxWidth":a==="0px"&&(i="max-w-0");const l={"320px":"xs","384px":"sm","448px":"md","512px":"lg","576px":"xl","672px":"2xl","768px":"3xl","896px":"4xl","1024px":"5xl","1152px":"6xl","1280px":"7xl","100%":"full","65ch":"prose","640px":"screen-sm","1536px":"screen-2xl"};t.includes(t.keys(l),a)&&(i=`max-w-${l[a]}`);break;case"minHeight":a.indexOf("%")!==-1&&parseFloat(a.replace("%",""))===100&&(i=`${s}full`),a==="0px"&&(i="min-h-0"),a==="100vh"&&(i="min-h-screen");break;case"fontSize":const p={"12px":"xs","14px":"sm","16px":"base","18px":"lg","20px":"xl","24px":"2xl","30px":"3xl","36px":"4xl","48px":"5xl","60px":"6xl","72px":"7xl","96px":"8xl","128px":"9xl"};t.includes(t.keys(p),a)&&(i=s+p[a]);break;case"lineHeight":const m={"12px":"3","16px":"4","20px":"5","24px":"6","28px":"7","32px":"8","36px":"9","40px":"10",1:"none","1.25":"tight","1.375":"snug","1.5":"normal","1.625":"relaxed",2:"loose"};t.includes(t.keys(m),a)&&(i=s+m[a]);break;case"zIndex":i=["0","10","20","30","40","50"].indexOf(a)!==-1?`${s}${a}`:e;break;case"opacity":const g=["0","5","10","20","25","30","40","50","60","70","75","80","90","95","100"],y=parseFloat(a)*100;t.includes(g,y.toString())&&(i=`opacity-${y}`);break;default:break}return i};var S={},C={};(function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"cloneDeep",{enumerable:!0,get:function(){return r}});function r(n){return Array.isArray(n)?n.map(o=>r(o)):typeof n=="object"&&n!==null?Object.fromEntries(Object.entries(n).map(([o,a])=>[o,r(a)])):n}})(C);var V={content:[],presets:[],darkMode:"media",theme:{accentColor:({theme:e})=>({...e("colors"),auto:"auto"}),animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},aria:{busy:'busy="true"',checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',hidden:'hidden="true"',pressed:'pressed="true"',readonly:'readonly="true"',required:'required="true"',selected:'selected="true"'},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9"},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>e("brightness"),backdropContrast:({theme:e})=>e("contrast"),backdropGrayscale:({theme:e})=>e("grayscale"),backdropHueRotate:({theme:e})=>e("hueRotate"),backdropInvert:({theme:e})=>e("invert"),backdropOpacity:({theme:e})=>e("opacity"),backdropSaturate:({theme:e})=>e("saturate"),backdropSepia:({theme:e})=>e("sepia"),backgroundColor:({theme:e})=>e("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:e})=>e("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:e})=>({...e("colors"),DEFAULT:e("colors.gray.200","currentColor")}),borderOpacity:({theme:e})=>e("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:e})=>({...e("spacing")}),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px"},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:e})=>e("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2"},caretColor:({theme:e})=>e("colors"),colors:({colors:e})=>({inherit:e.inherit,current:e.current,transparent:e.transparent,black:e.black,white:e.white,slate:e.slate,gray:e.gray,zinc:e.zinc,neutral:e.neutral,stone:e.stone,red:e.red,orange:e.orange,amber:e.amber,yellow:e.yellow,lime:e.lime,green:e.green,emerald:e.emerald,teal:e.teal,cyan:e.cyan,sky:e.sky,blue:e.blue,indigo:e.indigo,violet:e.violet,purple:e.purple,fuchsia:e.fuchsia,pink:e.pink,rose:e.rose}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2"},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:e})=>e("borderColor"),divideOpacity:({theme:e})=>e("borderOpacity"),divideWidth:({theme:e})=>e("borderWidth"),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:e})=>({none:"none",...e("colors")}),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%"}),flexGrow:{0:"0",DEFAULT:"1"},flexShrink:{0:"0",DEFAULT:"1"},fontFamily:{sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial",'"Noto Sans"',"sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:e})=>e("spacing"),gradientColorStops:({theme:e})=>e("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%"},grayscale:{0:"0",DEFAULT:"100%"},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-full":"1 / -1"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7"},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7"},gridTemplateColumns:{none:"none",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},gridTemplateRows:{none:"none",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))"},height:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},inset:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),invert:{0:"0",DEFAULT:"100%"},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6"},maxHeight:({theme:e})=>({...e("spacing"),none:"none",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),maxWidth:({theme:e,breakpoints:r})=>({none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...r(e("screens"))}),minHeight:{0:"0px",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",20:"0.2",25:"0.25",30:"0.3",40:"0.4",50:"0.5",60:"0.6",70:"0.7",75:"0.75",80:"0.8",90:"0.9",95:"0.95",100:"1"},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},padding:({theme:e})=>e("spacing"),placeholderColor:({theme:e})=>e("colors"),placeholderOpacity:({theme:e})=>e("opacity"),ringColor:({theme:e})=>({DEFAULT:e("colors.blue.500","#3b82f6"),...e("colors")}),ringOffsetColor:({theme:e})=>e("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg"},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2"},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5"},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},scrollMargin:({theme:e})=>({...e("spacing")}),scrollPadding:({theme:e})=>e("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg"},space:({theme:e})=>({...e("spacing")}),spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},stroke:({theme:e})=>({none:"none",...e("colors")}),strokeWidth:{0:"0",1:"1",2:"2"},supports:{},data:{},textColor:({theme:e})=>e("colors"),textDecorationColor:({theme:e})=>e("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textIndent:({theme:e})=>({...e("spacing")}),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:e})=>({...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),width:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",min:"min-content",max:"max-content",fit:"fit-content"}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50"}},plugins:[]};(function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return a}});const r=C,n=o(V);function o(s){return s&&s.__esModule?s:{default:s}}const a=(0,r.cloneDeep)(n.default.theme)})(S);let f=S;var X=(f.__esModule?f:{default:f}).default;const h=c.getDefaultExportFromCjs(X),E=(e,r="c-")=>{const n=t.get(e,"bodyTextLightColor","#64748b"),o=t.get(e,"bodyTextDarkColor","#94a3b8"),a=t.get(e,"bodyBgLightColor","#FFFFFF"),s=t.get(e,"bodyBgDarkColor","#0f172a");return`${r}font-body ${r}antialiased ${r}text-[${n}] ${r}bg-[${a}] dark:${r}text-[${o}] dark:${r}bg-[${s}]`},F=(e,r="c-")=>{const o=e.replace(c.STYLES_KEY,"").split(",").map(a=>a.split(" ").map(l=>{if(l==="")return"";if(t.includes(l,"hs-")||t.includes(l,"[--")||t.includes(l,"paddle"))return l;if(l.includes(":")){const p=l.split(":");return p[p.length-1]=r+t.last(p),p.join(":")}return`${r}${l}`}).join(" "));return`${c.STYLES_KEY}${o.join(" , ")}`},K=(e,r)=>e.map(n=>{const o={};return Object.keys(n).forEach(a=>{t.startsWith(n[a],c.STYLES_KEY)&&(o[a]=F(n[a],r))}),o}),L=(e,r,n="c-")=>{const o=E(r,n);return J(r,[t.replace(JSON.stringify(K(e,n)),/#styles:/g,"")],o.split(" ").concat(`${n}inline-block`,`${n}w-full`,`${n}h-full`))},G=async(e,r="c-")=>{const n=e.page.blocks;return await L(n,e.project.brandingOptions,r)};async function J(e,r,n=[],o="c-"){const a=t.get(e,"primaryColor","#000"),s=t.get(e,"secondaryColor","#ccc"),i=t.get(e,"headingFont","Inter"),l=t.get(e,"bodyFont","Inter"),p=t.get(e,"roundedCorners","0"),m=A.tailwindcssPaletteGenerator({colors:[a,s],names:["primary","secondary"]});return t.set(m,"primary.DEFAULT",a),t.set(m,"secondary.DEFAULT",s),`${await D.createTailwindcss({tailwindConfig:{prefix:o,darkMode:"class",safelist:n,theme:{fontFamily:{heading:[i,...h.fontFamily.sans],body:[l,...h.fontFamily.sans]},extend:{borderRadius:{global:`${p||"0"}px`},colors:m}},plugins:[z,$,U,O],corePlugins:{preflight:!1}}}).generateStylesFromContent(` @tailwind components;
|
|
2
|
+
@tailwind utilities;`,r)} .${o}bg-clip-text{background-clip: text;-webkit-background-clip: text;} h1,h2,h3,h4,h5,h6{font-family: "${i}",${h.fontFamily.sans.join(", ")};}`}function Q(){return{colors:{border:"hsl(var(--border))",input:"hsl(var(--input))",ring:"hsl(var(--ring))",background:"hsl(var(--background))",foreground:"hsl(var(--foreground))",primary:{DEFAULT:"hsl(var(--primary))",foreground:"hsl(var(--primary-foreground))"},secondary:{DEFAULT:"hsl(var(--secondary))",foreground:"hsl(var(--secondary-foreground))"},destructive:{DEFAULT:"hsl(var(--destructive))",foreground:"hsl(var(--destructive-foreground))"},muted:{DEFAULT:"hsl(var(--muted))",foreground:"hsl(var(--muted-foreground))"},accent:{DEFAULT:"hsl(var(--accent))",foreground:"hsl(var(--accent-foreground))"},popover:{DEFAULT:"hsl(var(--popover))",foreground:"hsl(var(--popover-foreground))"},card:{DEFAULT:"hsl(var(--card))",foreground:"hsl(var(--card-foreground))"}},borderRadius:{lg:"var(--radius)",md:"calc(var(--radius) - 2px)",sm:"calc(var(--radius) - 4px)"},keyframes:{"accordion-down":{from:{height:"0"},to:{height:"var(--radix-accordion-content-height)"}},"accordion-up":{from:{height:"var(--radix-accordion-content-height)"},to:{height:"0"}}},animation:{"accordion-down":"accordion-down 0.2s ease-out","accordion-up":"accordion-up 0.2s ease-out"}}}const Z=e=>({...e}),ee=e=>({...e});exports.cn=c.cn;exports.generateUUID=c.generateUUID;exports.getBreakpointValue=c.getBreakpointValue;exports.addPrefixToClasses=F;exports.chaiBuilderTheme=Q;exports.convertArbitraryToTailwindClass=Y;exports.getBlocksFromHTML=M;exports.getBlocksTailwindCSS=L;exports.getBrandingClasses=E;exports.getStylesForPageData=G;exports.selectable=Z;exports.styling=ee;
|