@chaibuilder/sdk 1.2.25 → 1.2.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AddBlocks-l1JENNvq.js +206 -0
- package/dist/AddBlocks-zPPKkeKs.cjs +1 -0
- package/dist/BrandingOptions-DkpqGARR.cjs +1 -0
- package/dist/{BrandingOptions-iTyWpwTs.js → BrandingOptions-udtH5yJs.js} +54 -40
- package/dist/{CanvasArea-dZjng782.js → CanvasArea-h0W-Tyha.js} +324 -340
- package/dist/CanvasArea-zme1r3Zi.cjs +55 -0
- package/dist/Class-PoYusiA5.cjs +1 -0
- package/dist/{Class-ahc3NIbq.js → Class-lGzsNBOK.js} +29 -26
- package/dist/CurrentPage-Hl52iub_.cjs +1 -0
- package/dist/{CurrentPage-Kmfp-kFk.js → CurrentPage-tJUjXWdb.js} +54 -40
- package/dist/Functions-7jnEwJyw.js +15 -0
- package/dist/Functions-N3yhPYKY.cjs +1 -0
- package/dist/ListTree-WvTjY5rr.cjs +1 -0
- package/dist/{ListTree-N3jeD790.js → ListTree-cZ-Ihlt3.js} +96 -86
- package/dist/MODIFIERS-0g14w5RS.cjs +1 -0
- package/dist/{MODIFIERS-CNqNUapY.js → MODIFIERS-dytZ-osO.js} +4 -10
- package/dist/PagesPanel-6rrLXEO-.js +64 -0
- package/dist/PagesPanel-WzCocl6u.cjs +1 -0
- package/dist/ProjectPanel-o7gdcwPn.cjs +1 -0
- package/dist/ProjectPanel-tz3bjdXy.js +85 -0
- package/dist/{STRINGS-b432aBJJ.js → STRINGS--j49GZJP.js} +2 -2
- package/dist/{Settings-jCcd-VE6.js → Settings-4s2LUVmC.js} +401 -407
- package/dist/Settings-AqoKwR92.cjs +1 -0
- package/dist/SidePanels-3o6Okmvu.cjs +1 -0
- package/dist/{SidePanels-pHMYprpW.js → SidePanels-bugFfInz.js} +118 -108
- package/dist/Topbar-CqW7G360.cjs +1 -0
- package/dist/Topbar-pWzBEOed.js +132 -0
- package/dist/UnsplashImages-NGskB93R.cjs +1 -0
- package/dist/{UnsplashImages-L7x_3RQf.js → UnsplashImages-qvwFbV-E.js} +63 -50
- package/dist/{UploadImages-zdEJRLD8.js → UploadImages-9NapgXBq.js} +60 -37
- package/dist/UploadImages-Oh7Glr9A.cjs +1 -0
- package/dist/_commonjsHelpers-UyOWmZb0.js +8 -0
- package/dist/_commonjsHelpers-wDK0ZLPo.cjs +1 -0
- package/dist/add-page-modal--6TTBRYa.cjs +1 -0
- package/dist/add-page-modal-k2Kb92HS.js +104 -0
- package/dist/confirm-alert-C4M9eF-o.cjs +1 -0
- package/dist/confirm-alert-GUhZ_G8w.js +60 -0
- package/dist/controls-KK2oLIa8.cjs +1 -0
- package/dist/{controls-IS5qnRce.js → controls-OfJWSEqC.js} +85 -20
- package/dist/core.cjs +1 -1
- package/dist/core.js +75 -150
- package/dist/defaultTheme-7VqqhOcp.cjs +1 -0
- package/dist/{defaultTheme-4kA60XdB.js → defaultTheme-D8B4-wHO.js} +8 -6
- package/dist/delete-page-modal-cFoL-wdo.cjs +1 -0
- package/dist/delete-page-modal-zONvdebd.js +83 -0
- package/dist/email-blocks.cjs +1 -1
- package/dist/email-blocks.js +292 -3
- package/dist/email.cjs +1 -1
- package/dist/email.js +37 -18
- package/dist/empty-slot-ZBlsQi6m.js +15 -0
- package/dist/empty-slot-nzYOgZuS.cjs +1 -0
- package/dist/{form-0_RLz2TB.js → form-STUz-6nE.js} +12 -12
- package/dist/form-lBQ_76Uw.cjs +1 -0
- package/dist/{html-to-json-uSnxl72F.cjs → html-to-json-efmv1pCj.cjs} +1 -1
- package/dist/{html-to-json-2xtb7520.js → html-to-json-ngX9ef2u.js} +41 -41
- package/dist/index-Gk6sASBd.js +3080 -0
- package/dist/index-OB199Izc.cjs +206 -0
- package/dist/index-SkyM3d6Q.js +39503 -0
- package/dist/index-YpnaudSM.js +63 -0
- package/dist/index-e0c8PmRQ.js +205 -0
- package/dist/index-ecnGWzh9.cjs +1 -0
- package/dist/index-gi1LIOCw.cjs +1 -0
- package/dist/index-h-hd6EvN.cjs +1 -0
- package/dist/index-llTXLDGE.js +2201 -0
- package/dist/index-mbyqq81O.cjs +1 -0
- package/dist/{jsx-runtime-Sp0orL4X.js → jsx-runtime-WbnYoNE9.js} +109 -106
- package/dist/jsx-runtime-Z_BpKhVy.cjs +27 -0
- package/dist/lib.cjs +2 -2
- package/dist/lib.js +66 -62
- package/dist/page-viewer-2kwnKM6v.cjs +1 -0
- package/dist/{page-viewer-NnOwmAmu.js → page-viewer-Pdg9F5Hv.js} +57 -43
- package/dist/project-general-setting-CnNL98NM.cjs +1 -0
- package/dist/{project-general-setting-9ju3TDju.js → project-general-setting-f8Ebsn6K.js} +43 -35
- package/dist/project-seo-setting-mlxL_e2_.cjs +1 -0
- package/dist/{project-seo-setting-36CdUszM.js → project-seo-setting-pX34Qsym.js} +40 -23
- package/dist/render.cjs +1 -1
- package/dist/render.js +14 -13
- package/dist/single-page-detail-XfzrGlzA.cjs +1 -0
- package/dist/{single-page-detail-hD1jKZ8k.js → single-page-detail-dpe5LT0M.js} +74 -66
- package/dist/studio.cjs +1 -1
- package/dist/studio.js +40 -24
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +160 -365
- package/dist/web-blocks.cjs +6 -1
- package/dist/web-blocks.js +1153 -3
- package/package.json +1 -1
- package/dist/AddBlocks-Ol3iIVKa.js +0 -207
- package/dist/AddBlocks-a1c-7Ewz.cjs +0 -1
- package/dist/BrandingOptions-6rnt0UaA.cjs +0 -1
- package/dist/CanvasArea-R4ogF9AT.cjs +0 -55
- package/dist/ChaiBuilderEditor-m30yoOgJ.cjs +0 -163
- package/dist/ChaiBuilderEditor-vP4at00I.js +0 -27974
- package/dist/Class-eieto7e-.cjs +0 -1
- package/dist/Controls-3Cc1XYXg.js +0 -105
- package/dist/Controls-ky25Ebo3.cjs +0 -1
- package/dist/CurrentPage-3gQTH0Zt.cjs +0 -1
- package/dist/Functions-Hvon6AMZ.cjs +0 -1
- package/dist/Functions-NzT2Six_.js +0 -15
- package/dist/ImagesPanel-J1RlG7xG.cjs +0 -1
- package/dist/ImagesPanel-Wb0GF_NA.js +0 -29
- package/dist/ListTree-CZ-mtjZ9.cjs +0 -1
- package/dist/MODIFIERS-o1p3VnpS.cjs +0 -1
- package/dist/PagesPanel-Gi0z6gaf.cjs +0 -1
- package/dist/PagesPanel-u1IB-nRr.js +0 -48
- package/dist/ProjectPanel-EydGZmMW.js +0 -71
- package/dist/ProjectPanel-kiiljG4H.cjs +0 -1
- package/dist/Settings-8ilCSH8b.cjs +0 -1
- package/dist/SidePanels-T36C6Lhc.cjs +0 -1
- package/dist/Topbar-CvWQuspR.cjs +0 -1
- package/dist/Topbar-pbIDUE_B.js +0 -122
- package/dist/UnsplashImages-KBZPd9dv.cjs +0 -1
- package/dist/UploadImages-GkkJVAgG.cjs +0 -1
- package/dist/accordion-oPUeqPCZ.js +0 -42
- package/dist/accordion-ynvFtV_p.cjs +0 -1
- package/dist/add-page-modal-9SGv2hgc.cjs +0 -1
- package/dist/add-page-modal-JCDXZIPW.js +0 -95
- package/dist/alert-dialog-P9xMMB6C.cjs +0 -1
- package/dist/alert-dialog-rypfO5ly.js +0 -64
- package/dist/badge-E-S7CqUt.cjs +0 -1
- package/dist/badge-tEwO7C51.js +0 -23
- package/dist/block-helpers-OKHmRRol.cjs +0 -1
- package/dist/block-helpers-oSFpSsGz.js +0 -23
- package/dist/command-BxR6jaCI.cjs +0 -1
- package/dist/command-Pn3HKDuV.js +0 -97
- package/dist/confirm-alert-uNm0lZ0y.cjs +0 -1
- package/dist/confirm-alert-wR5_VJ1l.js +0 -36
- package/dist/context-menu-8dC9uGXj.js +0 -122
- package/dist/context-menu-IgLbIuth.cjs +0 -1
- package/dist/controls-L7DPvB0m.cjs +0 -1
- package/dist/defaultTheme-mrkeGFGI.cjs +0 -1
- package/dist/delete-page-modal-7KmP1elv.js +0 -67
- package/dist/delete-page-modal-SgfwvfNu.cjs +0 -1
- package/dist/dropdown-menu-El86_9Uo.js +0 -124
- package/dist/dropdown-menu-SiHzqWwZ.cjs +0 -1
- package/dist/form-W58AVUdf.cjs +0 -1
- package/dist/hover-card-KUwpDkW8.cjs +0 -1
- package/dist/hover-card-q138xxXR.js +0 -45
- package/dist/iconBase-gbUAAO2L.cjs +0 -1
- package/dist/iconBase-h4DuR_XT.js +0 -63
- package/dist/index-9MmykVSc.cjs +0 -1
- package/dist/index-hElOGcFr.js +0 -2200
- package/dist/index-lDTsQp7h.js +0 -188
- package/dist/index-rq5Y9ZDy.cjs +0 -1
- package/dist/jsx-runtime-JYMCiFoE.cjs +0 -27
- package/dist/label-KaP7MRrs.js +0 -10
- package/dist/label-tFm8HZdb.cjs +0 -1
- package/dist/link-WbcKdQ9k.cjs +0 -1
- package/dist/link-xuhP-4dN.js +0 -196
- package/dist/page-viewer-Hx5hxHKm.cjs +0 -1
- package/dist/popover-a84pbVhQ.js +0 -23
- package/dist/popover-fKjgcRUx.cjs +0 -1
- package/dist/project-general-setting-FxkwjvJz.cjs +0 -1
- package/dist/project-seo-setting-RU7qiXxb.cjs +0 -1
- package/dist/scroll-area-FiHvy-TZ.cjs +0 -1
- package/dist/scroll-area-ewXbxc3n.js +0 -30
- package/dist/select-7bjg-rr9.cjs +0 -1
- package/dist/select-POGdEDHT.js +0 -75
- package/dist/separator-3Civ-6hb.cjs +0 -1
- package/dist/separator-SctTn0Qi.js +0 -18
- package/dist/single-page-detail-beY0MT1b.cjs +0 -1
- package/dist/skeleton-STeL9VrJ.cjs +0 -1
- package/dist/skeleton-lu8e7q2y.js +0 -239
- package/dist/tabs-_4WbA1cc.cjs +0 -1
- package/dist/tabs-yQ3oGziM.js +0 -106
- package/dist/textarea-1kZEh7ki.cjs +0 -1
- package/dist/textarea-b2QvVhrK.js +0 -73
- package/dist/useAddBlock-8pxOEYIl.cjs +0 -1
- package/dist/useAddBlock-FEKFJNwQ.js +0 -69
- package/dist/useChaiExternalData-fkFgoS80.js +0 -6
- package/dist/useChaiExternalData-rwoAZ6uU.cjs +0 -1
- package/dist/useDarkMode-7i57segK.cjs +0 -1
- package/dist/useDarkMode-8VHJlYyE.js +0 -23
- package/dist/useSelectedBreakpoints-6NK5qd7T.js +0 -10
- package/dist/useSelectedBreakpoints-7ONXb-vN.cjs +0 -1
- package/dist/useStylingState-Iuj84yvc.js +0 -186
- package/dist/useStylingState-OIvJMV6p.cjs +0 -1
- package/dist/useUiLibraries-nCdauJ4N.cjs +0 -1
- package/dist/useUiLibraries-psyWFbNc.js +0 -12
- package/dist/useUpdateBlocksProps-Unn8lUyj.cjs +0 -1
- package/dist/useUpdateBlocksProps-vWcDp-P9.js +0 -23
- package/dist/utils-dze1SGvB.js +0 -6
- package/dist/utils-qK_SjzzV.cjs +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { g as fr } from "./_commonjsHelpers-UyOWmZb0.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
|
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";const fr=require("./_commonjsHelpers-wDK0ZLPo.cjs"),Oe=require("react");var N={exports:{}},j={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var ye;function or(){if(ye)return j;ye=1;var V=Oe,P=Symbol.for("react.element"),M=Symbol.for("react.fragment"),_=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};function S(R,l,y){var d,g={},b=null,A=null;y!==void 0&&(b=""+y),l.key!==void 0&&(b=""+l.key),l.ref!==void 0&&(A=l.ref);for(d in l)_.call(l,d)&&!F.hasOwnProperty(d)&&(g[d]=l[d]);if(R&&R.defaultProps)for(d in l=R.defaultProps,l)g[d]===void 0&&(g[d]=l[d]);return{$$typeof:P,type:R,key:b,ref:A,props:g,_owner:D.current}}return j.Fragment=M,j.jsx=S,j.jsxs=S,j}var k={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Te;function ur(){return Te||(Te=1,process.env.NODE_ENV!=="production"&&function(){"use strict";var V=Oe,P=Symbol.for("react.element"),M=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),F=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),R=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"),b=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),X=Symbol.iterator,Ce="@@iterator";function Pe(e){if(e===null||typeof e!="object")return null;var r=X&&e[X]||e[Ce];return typeof r=="function"?r:null}var T=V.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function c(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Se("error",e,t)}}function Se(e,r,t){{var n=T.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var u=t.map(function(i){return String(i)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var we=!1,xe=!1,je=!1,ke=!1,De=!1,Z;Z=Symbol.for("react.module.reference");function Fe(e){return!!(typeof e=="string"||typeof e=="function"||e===_||e===F||De||e===D||e===y||e===d||ke||e===A||we||xe||je||typeof e=="object"&&e!==null&&(e.$$typeof===b||e.$$typeof===g||e.$$typeof===S||e.$$typeof===R||e.$$typeof===l||e.$$typeof===Z||e.getModuleId!==void 0))}function Ae(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function Q(e){return e.displayName||"Context"}function E(e){if(e==null)return null;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")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _:return"Fragment";case M:return"Portal";case F:return"Profiler";case D:return"StrictMode";case y:return"Suspense";case d:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case R:var r=e;return Q(r)+".Consumer";case S:var t=e;return Q(t._context)+".Provider";case l:return Ae(e,e.render,"ForwardRef");case g:var n=e.displayName||null;return n!==null?n:E(e.type)||"Memo";case b:{var o=e,u=o._payload,i=o._init;try{return E(i(u))}catch{return null}}}return null}var h=Object.assign,w=0,ee,re,te,ne,ae,ie,oe;function ue(){}ue.__reactDisabledLog=!0;function Ie(){{if(w===0){ee=console.log,re=console.info,te=console.warn,ne=console.error,ae=console.group,ie=console.groupCollapsed,oe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ue,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}w++}}function $e(){{if(w--,w===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:h({},e,{value:ee}),info:h({},e,{value:re}),warn:h({},e,{value:te}),error:h({},e,{value:ne}),group:h({},e,{value:ae}),groupCollapsed:h({},e,{value:ie}),groupEnd:h({},e,{value:oe})})}w<0&&c("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var U=T.ReactCurrentDispatcher,q;function I(e,r,t){{if(q===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);q=n&&n[1]||""}return`
|
|
18
|
+
`+q+e}}var B=!1,$;{var We=typeof WeakMap=="function"?WeakMap:Map;$=new We}function se(e,r){if(!e||B)return"";{var t=$.get(e);if(t!==void 0)return t}var n;B=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=U.current,U.current=null,Ie();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(m){n=m}Reflect.construct(e,[],i)}else{try{i.call()}catch(m){n=m}e.call(i.prototype)}}else{try{throw Error()}catch(m){n=m}e()}}catch(m){if(m&&n&&typeof m.stack=="string"){for(var a=m.stack.split(`
|
|
19
|
+
`),v=n.stack.split(`
|
|
20
|
+
`),s=a.length-1,f=v.length-1;s>=1&&f>=0&&a[s]!==v[f];)f--;for(;s>=1&&f>=0;s--,f--)if(a[s]!==v[f]){if(s!==1||f!==1)do if(s--,f--,f<0||a[s]!==v[f]){var p=`
|
|
21
|
+
`+a[s].replace(" at new "," at ");return e.displayName&&p.includes("<anonymous>")&&(p=p.replace("<anonymous>",e.displayName)),typeof e=="function"&&$.set(e,p),p}while(s>=1&&f>=0);break}}}finally{B=!1,U.current=u,$e(),Error.prepareStackTrace=o}var C=e?e.displayName||e.name:"",_e=C?I(C):"";return typeof e=="function"&&$.set(e,_e),_e}function Ye(e,r,t){return se(e,!1)}function Le(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function W(e,r,t){if(e==null)return"";if(typeof e=="function")return se(e,Le(e));if(typeof e=="string")return I(e);switch(e){case y:return I("Suspense");case d:return I("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case l:return Ye(e.render);case g:return W(e.type,r,t);case b:{var n=e,o=n._payload,u=n._init;try{return W(u(o),r,t)}catch{}}}return""}var Y=Object.prototype.hasOwnProperty,fe={},le=T.ReactDebugCurrentFrame;function L(e){if(e){var r=e._owner,t=W(e.type,e._source,r?r.type:null);le.setExtraStackFrame(t)}else le.setExtraStackFrame(null)}function Ne(e,r,t,n,o){{var u=Function.call.bind(Y);for(var i in e)if(u(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var v=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){a=s}a&&!(a instanceof Error)&&(L(o),c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof a),L(null)),a instanceof Error&&!(a.message in fe)&&(fe[a.message]=!0,L(o),c("Failed %s type: %s",t,a.message),L(null))}}}var Ve=Array.isArray;function J(e){return Ve(e)}function Me(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Ue(e){try{return ce(e),!1}catch{return!0}}function ce(e){return""+e}function ve(e){if(Ue(e))return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Me(e)),ce(e)}var x=T.ReactCurrentOwner,qe={key:!0,ref:!0,__self:!0,__source:!0},de,pe,G;G={};function Be(e){if(Y.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Je(e){if(Y.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Ge(e,r){if(typeof e.ref=="string"&&x.current&&r&&x.current.stateNode!==r){var t=E(x.current.type);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',E(x.current.type),e.ref),G[t]=!0)}}function ze(e,r){{var t=function(){de||(de=!0,c("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function He(e,r){{var t=function(){pe||(pe=!0,c("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var Ke=function(e,r,t,n,o,u,i){var a={$$typeof:P,type:e,key:r,ref:t,props:i,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function Xe(e,r,t,n,o){{var u,i={},a=null,v=null;t!==void 0&&(ve(t),a=""+t),Je(r)&&(ve(r.key),a=""+r.key),Be(r)&&(v=r.ref,Ge(r,o));for(u in r)Y.call(r,u)&&!qe.hasOwnProperty(u)&&(i[u]=r[u]);if(e&&e.defaultProps){var s=e.defaultProps;for(u in s)i[u]===void 0&&(i[u]=s[u])}if(a||v){var f=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&ze(i,f),v&&He(i,f)}return Ke(e,a,v,o,n,x.current,i)}}var z=T.ReactCurrentOwner,ge=T.ReactDebugCurrentFrame;function O(e){if(e){var r=e._owner,t=W(e.type,e._source,r?r.type:null);ge.setExtraStackFrame(t)}else ge.setExtraStackFrame(null)}var H;H=!1;function K(e){return typeof e=="object"&&e!==null&&e.$$typeof===P}function Ee(){{if(z.current){var e=E(z.current.type);if(e)return`
|
|
22
|
+
|
|
23
|
+
Check the render method of \``+e+"`."}return""}}function Ze(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
|
|
24
|
+
|
|
25
|
+
Check your code at `+r+":"+t+"."}return""}}var me={};function Qe(e){{var r=Ee();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
|
|
26
|
+
|
|
27
|
+
Check the top-level render call using <`+t+">.")}return r}}function Re(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=Qe(r);if(me[t])return;me[t]=!0;var n="";e&&e._owner&&e._owner!==z.current&&(n=" It was passed a child from "+E(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)}}function be(e,r){{if(typeof e!="object")return;if(J(e))for(var t=0;t<e.length;t++){var n=e[t];K(n)&&Re(n,r)}else if(K(e))e._store&&(e._store.validated=!0);else if(e){var o=Pe(e);if(typeof o=="function"&&o!==e.entries)for(var u=o.call(e),i;!(i=u.next()).done;)K(i.value)&&Re(i.value,r)}}}function er(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===l||r.$$typeof===g))t=r.propTypes;else return;if(t){var n=E(r);Ne(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!H){H=!0;var o=E(r);c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function rr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){O(e),c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),O(null);break}}e.ref!==null&&(O(e),c("Invalid attribute `ref` supplied to `React.Fragment`."),O(null))}}function he(e,r,t,n,o,u){{var i=Fe(e);if(!i){var a="";(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.");var v=Ze(o);v?a+=v:a+=Ee();var s;e===null?s="null":J(e)?s="array":e!==void 0&&e.$$typeof===P?(s="<"+(E(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)}var f=Xe(e,r,t,o,u);if(f==null)return f;if(i){var p=r.children;if(p!==void 0)if(n)if(J(p)){for(var C=0;C<p.length;C++)be(p[C],e);Object.freeze&&Object.freeze(p)}else 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.");else be(p,e)}return e===_?rr(f):er(f),f}}function tr(e,r,t){return he(e,r,t,!0)}function nr(e,r,t){return he(e,r,t,!1)}var ar=nr,ir=tr;k.Fragment=_,k.jsx=ar,k.jsxs=ir}()),k}var lr=N.exports;process.env.NODE_ENV==="production"?N.exports=or():N.exports=ur();var sr=N.exports;exports.jsxRuntimeExports=sr;
|
package/dist/lib.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./Class-PoYusiA5.cjs"),w=require("./Functions-N3yhPYKY.cjs"),b=require("./html-to-json-efmv1pCj.cjs"),t=require("lodash-es"),p=require("./defaultTheme-7VqqhOcp.cjs"),k=require("@bobthered/tailwindcss-palette-generator"),_=require("@mhsdesign/jit-browser-tailwindcss"),C=require("@tailwindcss/forms"),F=require("@tailwindcss/typography"),$=require("@tailwindcss/aspect-ratio"),O=require("./STRINGS-gPz7CUOk.cjs");require("clsx");require("tailwind-merge");require("./MODIFIERS-0g14w5RS.cjs");require("himalaya");require("./_commonjsHelpers-wDK0ZLPo.cjs");const h={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"},P={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 I=16,B=4;function q(s){return s.indexOf("rem")!==-1&&(s=`${parseFloat(s.replace("rem",""))*I}px`),s}const E=s=>{const c=s.match(/\[.*\]/);if(c===null)return s;const n=y.constructClassObject(s);if(n===null)return s;const{property:r}=n;let e=t.first(c).replace(/\]/i,"").replace(/\[/i,"");const i=s.replace(/\[.*\]/i,"");e=q(e);let a=s;switch(r){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 o=t.map(t.keys(P),l=>`${l}px`);if(t.includes(o,e)){const l=t.parseInt(e.replace("px",""),10);l===1?a=`${i}px`:a=i+l/B}}if(e.indexOf("%")!==-1){const o=t.map(t.keys(h),l=>`${l}%`);if(t.includes(o,e)){const l=parseFloat(e.replace("%",""));a=i+t.get(h,l)}}e.indexOf("vw")!==-1&&parseFloat(e.replace("vw",""))===100&&(a=`${i}screen`),e.indexOf("vh")!==-1&&parseFloat(e.replace("vh",""))===100&&(a=`${i}screen`);break;case"minWidth":e.indexOf("%")!==-1&&parseFloat(e.replace("%",""))===100&&(a=`${i}full`),e==="0px"&&(a="min-w-0");break;case"maxWidth":e==="0px"&&(a="max-w-0");const x={"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(x),e)&&(a=`max-w-${x[e]}`);break;case"minHeight":e.indexOf("%")!==-1&&parseFloat(e.replace("%",""))===100&&(a=`${i}full`),e==="0px"&&(a="min-h-0"),e==="100vh"&&(a="min-h-screen");break;case"fontSize":const u={"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(u),e)&&(a=i+u[e]);break;case"lineHeight":const d={"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(d),e)&&(a=i+d[e]);break;case"zIndex":a=["0","10","20","30","40","50"].indexOf(e)!==-1?`${i}${e}`:s;break;case"opacity":const T=["0","5","10","20","25","30","40","50","60","70","75","80","90","95","100"],g=parseFloat(e)*100;t.includes(T,g.toString())&&(a=`opacity-${g}`);break;default:break}return a};async function S(s,c,n=[],r="c-",e=!1){const i=t.get(s,"primaryColor","#000"),a=t.get(s,"secondaryColor","#ccc"),x=t.get(s,"headingFont","Inter"),u=t.get(s,"bodyFont","Inter"),d=t.get(s,"roundedCorners","0"),m=k.tailwindcssPaletteGenerator({colors:[i,a],names:["primary","secondary"]});return t.set(m,"primary.DEFAULT",i),t.set(m,"secondary.DEFAULT",a),`${await _.createTailwindcss({tailwindConfig:{darkMode:"class",safelist:n,theme:{fontFamily:{heading:[x,...p.defaultTheme.fontFamily.sans],body:[u,...p.defaultTheme.fontFamily.sans]},extend:{borderRadius:{global:`${d||"0"}px`},colors:m}},plugins:[C,F,$],corePlugins:{preflight:e},...r?{prefix:`${r}`}:{}}}).generateStylesFromContent(` ${e?"@tailwind base;":""}
|
|
2
2
|
@tailwind components;
|
|
3
3
|
@tailwind utilities;`,c)}
|
|
4
|
-
.${
|
|
4
|
+
.${r}bg-clip-text{background-clip: text;-webkit-background-clip: text;} h1,h2,h3,h4,h5,h6{font-family: "${x}",${p.defaultTheme.fontFamily.sans.join(", ")};}`}const V=(s,c)=>s.map(n=>{const r={};return Object.keys(n).forEach(e=>{t.startsWith(n[e],O.STYLES_KEY)&&(r[e]=p.addPrefixToClasses(n[e],c))}),r}),f=(s,c,n="c-",r=!1)=>{const e=p.getBrandingClasses(c,n);return S(c,[t.replace(JSON.stringify(V(s,n)),/#styles:/g,"")],e.split(" ").concat(`${n}inline-block`,`${n}w-full`,`${n}h-full`),n,r)},A=async(s,c="c-",n=!1)=>{const r=s.page.blocks;return await f(r,s.project.brandingOptions,c,n)},L=async(s,c,n="c-",r=!1)=>await f(s,c,n,r);exports.cn=y.cn;exports.generateUUID=w.generateUUID;exports.getBreakpointValue=w.getBreakpointValue;exports.getBlocksFromHTML=b.getBlocksFromHTML;exports.addPrefixToClasses=p.addPrefixToClasses;exports.getBrandingClasses=p.getBrandingClasses;exports.convertArbitraryToTailwindClass=E;exports.getBlocksTailwindCSS=f;exports.getStylesForBlocks=L;exports.getStylesForPageData=A;exports.getTailwindCSS=S;
|