@blockbite/ui 2.0.12 → 2.0.14
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/SelectControlWrapper.d.ts +2 -1
- package/dist/index.js +159 -158
- package/dist/index.js.map +1 -1
- package/dist/ui.css +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -23,7 +23,7 @@ var kt;
|
|
|
23
23
|
function Kn() {
|
|
24
24
|
if (kt) return I;
|
|
25
25
|
kt = 1;
|
|
26
|
-
var o = Symbol.for("react.element"), a = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), u = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), f = Symbol.for("react.provider"),
|
|
26
|
+
var o = Symbol.for("react.element"), a = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), u = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), m = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), p = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), _ = Symbol.iterator;
|
|
27
27
|
function M(s) {
|
|
28
28
|
return s === null || typeof s != "object" ? null : (s = _ && s[_] || s["@@iterator"], typeof s == "function" ? s : null);
|
|
29
29
|
}
|
|
@@ -160,7 +160,7 @@ function Kn() {
|
|
|
160
160
|
}
|
|
161
161
|
return { $$typeof: o, type: s.type, key: $, ref: K, props: W, _owner: J };
|
|
162
162
|
}, I.createContext = function(s) {
|
|
163
|
-
return s = { $$typeof:
|
|
163
|
+
return s = { $$typeof: m, _currentValue: s, _currentValue2: s, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, s.Provider = { $$typeof: f, _context: s }, s.Consumer = s;
|
|
164
164
|
}, I.createElement = _e, I.createFactory = function(s) {
|
|
165
165
|
var g = _e.bind(null, s);
|
|
166
166
|
return g.type = s, g;
|
|
@@ -229,7 +229,7 @@ function Jn() {
|
|
|
229
229
|
return Tt || (Tt = 1, function(o, a) {
|
|
230
230
|
process.env.NODE_ENV !== "production" && function() {
|
|
231
231
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
232
|
-
var l = "18.2.0", u = Symbol.for("react.element"), d = Symbol.for("react.portal"), f = Symbol.for("react.fragment"),
|
|
232
|
+
var l = "18.2.0", u = Symbol.for("react.element"), d = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), h = Symbol.for("react.profiler"), b = Symbol.for("react.provider"), p = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), M = Symbol.for("react.suspense_list"), P = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), ee = Symbol.for("react.offscreen"), U = Symbol.iterator, A = "@@iterator";
|
|
233
233
|
function q(e) {
|
|
234
234
|
if (e === null || typeof e != "object")
|
|
235
235
|
return null;
|
|
@@ -454,7 +454,7 @@ function Jn() {
|
|
|
454
454
|
return "Portal";
|
|
455
455
|
case h:
|
|
456
456
|
return "Profiler";
|
|
457
|
-
case
|
|
457
|
+
case m:
|
|
458
458
|
return "StrictMode";
|
|
459
459
|
case _:
|
|
460
460
|
return "Suspense";
|
|
@@ -891,14 +891,14 @@ Your code should look like:
|
|
|
891
891
|
}
|
|
892
892
|
return r;
|
|
893
893
|
}
|
|
894
|
-
var
|
|
895
|
-
|
|
894
|
+
var v;
|
|
895
|
+
v = Symbol.for("react.module.reference");
|
|
896
896
|
function x(e) {
|
|
897
|
-
return !!(typeof e == "string" || typeof e == "function" || e === f || e === h || fe || e ===
|
|
897
|
+
return !!(typeof e == "string" || typeof e == "function" || e === f || e === h || fe || e === m || e === _ || e === M || pe || e === ee || Te || Ke || Se || typeof e == "object" && e !== null && (e.$$typeof === j || e.$$typeof === P || e.$$typeof === b || e.$$typeof === p || e.$$typeof === C || // This needs to include all possible module reference object
|
|
898
898
|
// types supported by any Flight configuration anywhere since
|
|
899
899
|
// we don't know which Flight build this will end up being used
|
|
900
900
|
// with.
|
|
901
|
-
e.$$typeof ===
|
|
901
|
+
e.$$typeof === v || e.getModuleId !== void 0));
|
|
902
902
|
}
|
|
903
903
|
function k(e, r) {
|
|
904
904
|
x(e) || E("memo: The first argument must be a component. Instead received: %s", e === null ? "null" : typeof e);
|
|
@@ -1479,7 +1479,7 @@ Check the top-level render call using <` + i + ">.");
|
|
|
1479
1479
|
toArray: pr,
|
|
1480
1480
|
only: vr
|
|
1481
1481
|
};
|
|
1482
|
-
a.Children = cn, a.Component = $, a.Fragment = f, a.Profiler = h, a.PureComponent = se, a.StrictMode =
|
|
1482
|
+
a.Children = cn, a.Component = $, a.Fragment = f, a.Profiler = h, a.PureComponent = se, a.StrictMode = m, a.Suspense = _, a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ie, a.cloneElement = ln, a.createContext = Fr, a.createElement = sn, a.createFactory = un, a.createRef = Sr, a.forwardRef = t, a.isValidElement = je, a.lazy = Wr, a.memo = k, a.startTransition = nn, a.unstable_act = on, a.useCallback = Re, a.useContext = B, a.useDebugValue = Wt, a.useDeferredValue = Vt, a.useEffect = re, a.useId = Bt, a.useImperativeHandle = ye, a.useInsertionEffect = ne, a.useLayoutEffect = de, a.useMemo = hr, a.useReducer = N, a.useRef = le, a.useState = D, a.useSyncExternalStore = Yt, a.useTransition = Ut, a.version = l, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
1483
1483
|
}();
|
|
1484
1484
|
}(ar, ar.exports)), ar.exports;
|
|
1485
1485
|
}
|
|
@@ -1501,14 +1501,14 @@ function Xn() {
|
|
|
1501
1501
|
if (Ot) return tr;
|
|
1502
1502
|
Ot = 1;
|
|
1503
1503
|
var o = et(), a = Symbol.for("react.element"), l = Symbol.for("react.fragment"), u = Object.prototype.hasOwnProperty, d = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, f = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
1504
|
-
function
|
|
1504
|
+
function m(h, b, p) {
|
|
1505
1505
|
var C, _ = {}, M = null, P = null;
|
|
1506
1506
|
p !== void 0 && (M = "" + p), b.key !== void 0 && (M = "" + b.key), b.ref !== void 0 && (P = b.ref);
|
|
1507
1507
|
for (C in b) u.call(b, C) && !f.hasOwnProperty(C) && (_[C] = b[C]);
|
|
1508
1508
|
if (h && h.defaultProps) for (C in b = h.defaultProps, b) _[C] === void 0 && (_[C] = b[C]);
|
|
1509
1509
|
return { $$typeof: a, type: h, key: M, ref: P, props: _, _owner: d.current };
|
|
1510
1510
|
}
|
|
1511
|
-
return tr.Fragment = l, tr.jsx =
|
|
1511
|
+
return tr.Fragment = l, tr.jsx = m, tr.jsxs = m, tr;
|
|
1512
1512
|
}
|
|
1513
1513
|
var nr = {};
|
|
1514
1514
|
/**
|
|
@@ -1523,45 +1523,45 @@ var nr = {};
|
|
|
1523
1523
|
var Pt;
|
|
1524
1524
|
function Zn() {
|
|
1525
1525
|
return Pt || (Pt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1526
|
-
var o = et(), a = Symbol.for("react.element"), l = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), d = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"),
|
|
1526
|
+
var o = et(), a = Symbol.for("react.element"), l = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), d = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), h = Symbol.for("react.context"), b = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), C = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), M = Symbol.for("react.lazy"), P = Symbol.for("react.offscreen"), j = Symbol.iterator, ee = "@@iterator";
|
|
1527
1527
|
function U(t) {
|
|
1528
1528
|
if (t === null || typeof t != "object")
|
|
1529
1529
|
return null;
|
|
1530
|
-
var
|
|
1531
|
-
return typeof
|
|
1530
|
+
var v = j && t[j] || t[ee];
|
|
1531
|
+
return typeof v == "function" ? v : null;
|
|
1532
1532
|
}
|
|
1533
1533
|
var A = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
1534
1534
|
function q(t) {
|
|
1535
1535
|
{
|
|
1536
|
-
for (var
|
|
1536
|
+
for (var v = arguments.length, x = new Array(v > 1 ? v - 1 : 0), k = 1; k < v; k++)
|
|
1537
1537
|
x[k - 1] = arguments[k];
|
|
1538
1538
|
Ce("error", t, x);
|
|
1539
1539
|
}
|
|
1540
1540
|
}
|
|
1541
|
-
function Ce(t,
|
|
1541
|
+
function Ce(t, v, x) {
|
|
1542
1542
|
{
|
|
1543
1543
|
var k = A.ReactDebugCurrentFrame, T = k.getStackAddendum();
|
|
1544
|
-
T !== "" && (
|
|
1544
|
+
T !== "" && (v += "%s", x = x.concat([T]));
|
|
1545
1545
|
var B = x.map(function(D) {
|
|
1546
1546
|
return String(D);
|
|
1547
1547
|
});
|
|
1548
|
-
B.unshift("Warning: " +
|
|
1548
|
+
B.unshift("Warning: " + v), Function.prototype.apply.call(console[t], console, B);
|
|
1549
1549
|
}
|
|
1550
1550
|
}
|
|
1551
1551
|
var me = !1, ae = !1, ce = !1, be = !1, _e = !1, ke;
|
|
1552
1552
|
ke = Symbol.for("react.module.reference");
|
|
1553
1553
|
function Te(t) {
|
|
1554
|
-
return !!(typeof t == "string" || typeof t == "function" || t === u || t === f || _e || t === d || t === p || t === C || be || t === P || me || ae || ce || typeof t == "object" && t !== null && (t.$$typeof === M || t.$$typeof === _ || t.$$typeof ===
|
|
1554
|
+
return !!(typeof t == "string" || typeof t == "function" || t === u || t === f || _e || t === d || t === p || t === C || be || t === P || me || ae || ce || typeof t == "object" && t !== null && (t.$$typeof === M || t.$$typeof === _ || t.$$typeof === m || t.$$typeof === h || t.$$typeof === b || // This needs to include all possible module reference object
|
|
1555
1555
|
// types supported by any Flight configuration anywhere since
|
|
1556
1556
|
// we don't know which Flight build this will end up being used
|
|
1557
1557
|
// with.
|
|
1558
1558
|
t.$$typeof === ke || t.getModuleId !== void 0));
|
|
1559
1559
|
}
|
|
1560
|
-
function Ke(t,
|
|
1560
|
+
function Ke(t, v, x) {
|
|
1561
1561
|
var k = t.displayName;
|
|
1562
1562
|
if (k)
|
|
1563
1563
|
return k;
|
|
1564
|
-
var T =
|
|
1564
|
+
var T = v.displayName || v.name || "";
|
|
1565
1565
|
return T !== "" ? x + "(" + T + ")" : x;
|
|
1566
1566
|
}
|
|
1567
1567
|
function Se(t) {
|
|
@@ -1591,9 +1591,9 @@ function Zn() {
|
|
|
1591
1591
|
if (typeof t == "object")
|
|
1592
1592
|
switch (t.$$typeof) {
|
|
1593
1593
|
case h:
|
|
1594
|
-
var
|
|
1595
|
-
return Se(
|
|
1596
|
-
case
|
|
1594
|
+
var v = t;
|
|
1595
|
+
return Se(v) + ".Consumer";
|
|
1596
|
+
case m:
|
|
1597
1597
|
var x = t;
|
|
1598
1598
|
return Se(x._context) + ".Provider";
|
|
1599
1599
|
case b:
|
|
@@ -1675,7 +1675,7 @@ function Zn() {
|
|
|
1675
1675
|
}
|
|
1676
1676
|
}
|
|
1677
1677
|
var J = A.ReactCurrentDispatcher, Y;
|
|
1678
|
-
function V(t,
|
|
1678
|
+
function V(t, v, x) {
|
|
1679
1679
|
{
|
|
1680
1680
|
if (Y === void 0)
|
|
1681
1681
|
try {
|
|
@@ -1693,7 +1693,7 @@ function Zn() {
|
|
|
1693
1693
|
var Sr = typeof WeakMap == "function" ? WeakMap : Map;
|
|
1694
1694
|
we = new Sr();
|
|
1695
1695
|
}
|
|
1696
|
-
function or(t,
|
|
1696
|
+
function or(t, v) {
|
|
1697
1697
|
if (!t || se)
|
|
1698
1698
|
return "";
|
|
1699
1699
|
{
|
|
@@ -1708,7 +1708,7 @@ function Zn() {
|
|
|
1708
1708
|
var B;
|
|
1709
1709
|
B = J.current, J.current = null, $();
|
|
1710
1710
|
try {
|
|
1711
|
-
if (
|
|
1711
|
+
if (v) {
|
|
1712
1712
|
var D = function() {
|
|
1713
1713
|
throw Error();
|
|
1714
1714
|
};
|
|
@@ -1764,14 +1764,14 @@ function Zn() {
|
|
|
1764
1764
|
var Re = t ? t.displayName || t.name : "", hr = Re ? V(Re) : "";
|
|
1765
1765
|
return typeof t == "function" && we.set(t, hr), hr;
|
|
1766
1766
|
}
|
|
1767
|
-
function Me(t,
|
|
1767
|
+
function Me(t, v, x) {
|
|
1768
1768
|
return or(t, !1);
|
|
1769
1769
|
}
|
|
1770
1770
|
function Or(t) {
|
|
1771
|
-
var
|
|
1772
|
-
return !!(
|
|
1771
|
+
var v = t.prototype;
|
|
1772
|
+
return !!(v && v.isReactComponent);
|
|
1773
1773
|
}
|
|
1774
|
-
function We(t,
|
|
1774
|
+
function We(t, v, x) {
|
|
1775
1775
|
if (t == null)
|
|
1776
1776
|
return "";
|
|
1777
1777
|
if (typeof t == "function")
|
|
@@ -1789,11 +1789,11 @@ function Zn() {
|
|
|
1789
1789
|
case b:
|
|
1790
1790
|
return Me(t.render);
|
|
1791
1791
|
case _:
|
|
1792
|
-
return We(t.type,
|
|
1792
|
+
return We(t.type, v, x);
|
|
1793
1793
|
case M: {
|
|
1794
1794
|
var k = t, T = k._payload, B = k._init;
|
|
1795
1795
|
try {
|
|
1796
|
-
return We(B(T),
|
|
1796
|
+
return We(B(T), v, x);
|
|
1797
1797
|
} catch {
|
|
1798
1798
|
}
|
|
1799
1799
|
}
|
|
@@ -1803,12 +1803,12 @@ function Zn() {
|
|
|
1803
1803
|
var Pe = Object.prototype.hasOwnProperty, Ne = {}, sr = A.ReactDebugCurrentFrame;
|
|
1804
1804
|
function Ae(t) {
|
|
1805
1805
|
if (t) {
|
|
1806
|
-
var
|
|
1806
|
+
var v = t._owner, x = We(t.type, t._source, v ? v.type : null);
|
|
1807
1807
|
sr.setExtraStackFrame(x);
|
|
1808
1808
|
} else
|
|
1809
1809
|
sr.setExtraStackFrame(null);
|
|
1810
1810
|
}
|
|
1811
|
-
function xe(t,
|
|
1811
|
+
function xe(t, v, x, k, T) {
|
|
1812
1812
|
{
|
|
1813
1813
|
var B = Function.call.bind(Pe);
|
|
1814
1814
|
for (var D in t)
|
|
@@ -1819,7 +1819,7 @@ function Zn() {
|
|
|
1819
1819
|
var le = Error((k || "React class") + ": " + x + " type `" + D + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[D] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
1820
1820
|
throw le.name = "Invariant Violation", le;
|
|
1821
1821
|
}
|
|
1822
|
-
N = t[D](
|
|
1822
|
+
N = t[D](v, D, k, x, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
1823
1823
|
} catch (re) {
|
|
1824
1824
|
N = re;
|
|
1825
1825
|
}
|
|
@@ -1833,7 +1833,7 @@ function Zn() {
|
|
|
1833
1833
|
}
|
|
1834
1834
|
function ir(t) {
|
|
1835
1835
|
{
|
|
1836
|
-
var
|
|
1836
|
+
var v = typeof Symbol == "function" && Symbol.toStringTag, x = v && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
1837
1837
|
return x;
|
|
1838
1838
|
}
|
|
1839
1839
|
}
|
|
@@ -1859,27 +1859,27 @@ function Zn() {
|
|
|
1859
1859
|
}, ur, cr;
|
|
1860
1860
|
function Ze(t) {
|
|
1861
1861
|
if (Pe.call(t, "ref")) {
|
|
1862
|
-
var
|
|
1863
|
-
if (
|
|
1862
|
+
var v = Object.getOwnPropertyDescriptor(t, "ref").get;
|
|
1863
|
+
if (v && v.isReactWarning)
|
|
1864
1864
|
return !1;
|
|
1865
1865
|
}
|
|
1866
1866
|
return t.ref !== void 0;
|
|
1867
1867
|
}
|
|
1868
1868
|
function Nr(t) {
|
|
1869
1869
|
if (Pe.call(t, "key")) {
|
|
1870
|
-
var
|
|
1871
|
-
if (
|
|
1870
|
+
var v = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
1871
|
+
if (v && v.isReactWarning)
|
|
1872
1872
|
return !1;
|
|
1873
1873
|
}
|
|
1874
1874
|
return t.key !== void 0;
|
|
1875
1875
|
}
|
|
1876
|
-
function Ar(t,
|
|
1876
|
+
function Ar(t, v) {
|
|
1877
1877
|
typeof t.ref == "string" && Xe.current;
|
|
1878
1878
|
}
|
|
1879
|
-
function Ir(t,
|
|
1879
|
+
function Ir(t, v) {
|
|
1880
1880
|
{
|
|
1881
1881
|
var x = function() {
|
|
1882
|
-
ur || (ur = !0, q("%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)",
|
|
1882
|
+
ur || (ur = !0, q("%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)", v));
|
|
1883
1883
|
};
|
|
1884
1884
|
x.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
1885
1885
|
get: x,
|
|
@@ -1887,10 +1887,10 @@ function Zn() {
|
|
|
1887
1887
|
});
|
|
1888
1888
|
}
|
|
1889
1889
|
}
|
|
1890
|
-
function je(t,
|
|
1890
|
+
function je(t, v) {
|
|
1891
1891
|
{
|
|
1892
1892
|
var x = function() {
|
|
1893
|
-
cr || (cr = !0, q("%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)",
|
|
1893
|
+
cr || (cr = !0, q("%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)", v));
|
|
1894
1894
|
};
|
|
1895
1895
|
x.isReactWarning = !0, Object.defineProperty(t, "ref", {
|
|
1896
1896
|
get: x,
|
|
@@ -1898,13 +1898,13 @@ function Zn() {
|
|
|
1898
1898
|
});
|
|
1899
1899
|
}
|
|
1900
1900
|
}
|
|
1901
|
-
var fr = function(t,
|
|
1901
|
+
var fr = function(t, v, x, k, T, B, D) {
|
|
1902
1902
|
var N = {
|
|
1903
1903
|
// This tag allows us to uniquely identify this as a React Element
|
|
1904
1904
|
$$typeof: a,
|
|
1905
1905
|
// Built-in properties that belong on the element
|
|
1906
1906
|
type: t,
|
|
1907
|
-
key:
|
|
1907
|
+
key: v,
|
|
1908
1908
|
ref: x,
|
|
1909
1909
|
props: D,
|
|
1910
1910
|
// Record the component responsible for creating this element.
|
|
@@ -1927,12 +1927,12 @@ function Zn() {
|
|
|
1927
1927
|
value: T
|
|
1928
1928
|
}), Object.freeze && (Object.freeze(N.props), Object.freeze(N)), N;
|
|
1929
1929
|
};
|
|
1930
|
-
function $r(t,
|
|
1930
|
+
function $r(t, v, x, k, T) {
|
|
1931
1931
|
{
|
|
1932
1932
|
var B, D = {}, N = null, le = null;
|
|
1933
|
-
x !== void 0 && (Je(x), N = "" + x), Nr(
|
|
1934
|
-
for (B in
|
|
1935
|
-
Pe.call(
|
|
1933
|
+
x !== void 0 && (Je(x), N = "" + x), Nr(v) && (Je(v.key), N = "" + v.key), Ze(v) && (le = v.ref, Ar(v, T));
|
|
1934
|
+
for (B in v)
|
|
1935
|
+
Pe.call(v, B) && !Pr.hasOwnProperty(B) && (D[B] = v[B]);
|
|
1936
1936
|
if (t && t.defaultProps) {
|
|
1937
1937
|
var re = t.defaultProps;
|
|
1938
1938
|
for (B in re)
|
|
@@ -1948,7 +1948,7 @@ function Zn() {
|
|
|
1948
1948
|
var Qe = A.ReactCurrentOwner, er = A.ReactDebugCurrentFrame;
|
|
1949
1949
|
function Ee(t) {
|
|
1950
1950
|
if (t) {
|
|
1951
|
-
var
|
|
1951
|
+
var v = t._owner, x = We(t.type, t._source, v ? v.type : null);
|
|
1952
1952
|
er.setExtraStackFrame(x);
|
|
1953
1953
|
} else
|
|
1954
1954
|
er.setExtraStackFrame(null);
|
|
@@ -1976,22 +1976,22 @@ Check the render method of \`` + t + "`.";
|
|
|
1976
1976
|
var dr = {};
|
|
1977
1977
|
function Dr(t) {
|
|
1978
1978
|
{
|
|
1979
|
-
var
|
|
1980
|
-
if (!
|
|
1979
|
+
var v = De();
|
|
1980
|
+
if (!v) {
|
|
1981
1981
|
var x = typeof t == "string" ? t : t.displayName || t.name;
|
|
1982
|
-
x && (
|
|
1982
|
+
x && (v = `
|
|
1983
1983
|
|
|
1984
1984
|
Check the top-level render call using <` + x + ">.");
|
|
1985
1985
|
}
|
|
1986
|
-
return
|
|
1986
|
+
return v;
|
|
1987
1987
|
}
|
|
1988
1988
|
}
|
|
1989
|
-
function pr(t,
|
|
1989
|
+
function pr(t, v) {
|
|
1990
1990
|
{
|
|
1991
1991
|
if (!t._store || t._store.validated || t.key != null)
|
|
1992
1992
|
return;
|
|
1993
1993
|
t._store.validated = !0;
|
|
1994
|
-
var x = Dr(
|
|
1994
|
+
var x = Dr(v);
|
|
1995
1995
|
if (dr[x])
|
|
1996
1996
|
return;
|
|
1997
1997
|
dr[x] = !0;
|
|
@@ -1999,14 +1999,14 @@ Check the top-level render call using <` + x + ">.");
|
|
|
1999
1999
|
t && t._owner && t._owner !== Qe.current && (k = " It was passed a child from " + pe(t._owner.type) + "."), Ee(t), q('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', x, k), Ee(null);
|
|
2000
2000
|
}
|
|
2001
2001
|
}
|
|
2002
|
-
function vr(t,
|
|
2002
|
+
function vr(t, v) {
|
|
2003
2003
|
{
|
|
2004
2004
|
if (typeof t != "object")
|
|
2005
2005
|
return;
|
|
2006
2006
|
if (Ue(t))
|
|
2007
2007
|
for (var x = 0; x < t.length; x++) {
|
|
2008
2008
|
var k = t[x];
|
|
2009
|
-
$e(k) && pr(k,
|
|
2009
|
+
$e(k) && pr(k, v);
|
|
2010
2010
|
}
|
|
2011
2011
|
else if ($e(t))
|
|
2012
2012
|
t._store && (t._store.validated = !0);
|
|
@@ -2014,39 +2014,39 @@ Check the top-level render call using <` + x + ">.");
|
|
|
2014
2014
|
var T = U(t);
|
|
2015
2015
|
if (typeof T == "function" && T !== t.entries)
|
|
2016
2016
|
for (var B = T.call(t), D; !(D = B.next()).done; )
|
|
2017
|
-
$e(D.value) && pr(D.value,
|
|
2017
|
+
$e(D.value) && pr(D.value, v);
|
|
2018
2018
|
}
|
|
2019
2019
|
}
|
|
2020
2020
|
}
|
|
2021
2021
|
function Fr(t) {
|
|
2022
2022
|
{
|
|
2023
|
-
var
|
|
2024
|
-
if (
|
|
2023
|
+
var v = t.type;
|
|
2024
|
+
if (v == null || typeof v == "string")
|
|
2025
2025
|
return;
|
|
2026
2026
|
var x;
|
|
2027
|
-
if (typeof
|
|
2028
|
-
x =
|
|
2029
|
-
else if (typeof
|
|
2027
|
+
if (typeof v == "function")
|
|
2028
|
+
x = v.propTypes;
|
|
2029
|
+
else if (typeof v == "object" && (v.$$typeof === b || // Note: Memo only checks outer props here.
|
|
2030
2030
|
// Inner props are checked in the reconciler.
|
|
2031
|
-
|
|
2032
|
-
x =
|
|
2031
|
+
v.$$typeof === _))
|
|
2032
|
+
x = v.propTypes;
|
|
2033
2033
|
else
|
|
2034
2034
|
return;
|
|
2035
2035
|
if (x) {
|
|
2036
|
-
var k = pe(
|
|
2036
|
+
var k = pe(v);
|
|
2037
2037
|
xe(x, t.props, "prop", k, t);
|
|
2038
|
-
} else if (
|
|
2038
|
+
} else if (v.PropTypes !== void 0 && !Be) {
|
|
2039
2039
|
Be = !0;
|
|
2040
|
-
var T = pe(
|
|
2040
|
+
var T = pe(v);
|
|
2041
2041
|
q("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", T || "Unknown");
|
|
2042
2042
|
}
|
|
2043
|
-
typeof
|
|
2043
|
+
typeof v.getDefaultProps == "function" && !v.getDefaultProps.isReactClassApproved && q("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
2044
2044
|
}
|
|
2045
2045
|
}
|
|
2046
2046
|
function Fe(t) {
|
|
2047
2047
|
{
|
|
2048
|
-
for (var
|
|
2049
|
-
var k =
|
|
2048
|
+
for (var v = Object.keys(t.props), x = 0; x < v.length; x++) {
|
|
2049
|
+
var k = v[x];
|
|
2050
2050
|
if (k !== "children" && k !== "key") {
|
|
2051
2051
|
Ee(t), q("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", k), Ee(null);
|
|
2052
2052
|
break;
|
|
@@ -2055,7 +2055,7 @@ Check the top-level render call using <` + x + ">.");
|
|
|
2055
2055
|
t.ref !== null && (Ee(t), q("Invalid attribute `ref` supplied to `React.Fragment`."), Ee(null));
|
|
2056
2056
|
}
|
|
2057
2057
|
}
|
|
2058
|
-
function ze(t,
|
|
2058
|
+
function ze(t, v, x, k, T, B) {
|
|
2059
2059
|
{
|
|
2060
2060
|
var D = Te(t);
|
|
2061
2061
|
if (!D) {
|
|
@@ -2066,11 +2066,11 @@ Check the top-level render call using <` + x + ">.");
|
|
|
2066
2066
|
var re;
|
|
2067
2067
|
t === null ? re = "null" : Ue(t) ? re = "array" : t !== void 0 && t.$$typeof === a ? (re = "<" + (pe(t.type) || "Unknown") + " />", N = " Did you accidentally export a JSX literal instead of a component?") : re = typeof t, q("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", re, N);
|
|
2068
2068
|
}
|
|
2069
|
-
var ne = $r(t,
|
|
2069
|
+
var ne = $r(t, v, x, T, B);
|
|
2070
2070
|
if (ne == null)
|
|
2071
2071
|
return ne;
|
|
2072
2072
|
if (D) {
|
|
2073
|
-
var de =
|
|
2073
|
+
var de = v.children;
|
|
2074
2074
|
if (de !== void 0)
|
|
2075
2075
|
if (k)
|
|
2076
2076
|
if (Ue(de)) {
|
|
@@ -2085,11 +2085,11 @@ Check the top-level render call using <` + x + ">.");
|
|
|
2085
2085
|
return t === u ? Fe(ne) : Fr(ne), ne;
|
|
2086
2086
|
}
|
|
2087
2087
|
}
|
|
2088
|
-
function mr(t,
|
|
2089
|
-
return ze(t,
|
|
2088
|
+
function mr(t, v, x) {
|
|
2089
|
+
return ze(t, v, x, !0);
|
|
2090
2090
|
}
|
|
2091
|
-
function Lr(t,
|
|
2092
|
-
return ze(t,
|
|
2091
|
+
function Lr(t, v, x) {
|
|
2092
|
+
return ze(t, v, x, !1);
|
|
2093
2093
|
}
|
|
2094
2094
|
var Mr = Lr, Wr = mr;
|
|
2095
2095
|
nr.Fragment = u, nr.jsx = Mr, nr.jsxs = Wr;
|
|
@@ -2113,8 +2113,8 @@ function ea() {
|
|
|
2113
2113
|
(function() {
|
|
2114
2114
|
var a = {}.hasOwnProperty;
|
|
2115
2115
|
function l() {
|
|
2116
|
-
for (var f = "",
|
|
2117
|
-
var h = arguments[
|
|
2116
|
+
for (var f = "", m = 0; m < arguments.length; m++) {
|
|
2117
|
+
var h = arguments[m];
|
|
2118
2118
|
h && (f = d(f, u(h)));
|
|
2119
2119
|
}
|
|
2120
2120
|
return f;
|
|
@@ -2128,13 +2128,13 @@ function ea() {
|
|
|
2128
2128
|
return l.apply(null, f);
|
|
2129
2129
|
if (f.toString !== Object.prototype.toString && !f.toString.toString().includes("[native code]"))
|
|
2130
2130
|
return f.toString();
|
|
2131
|
-
var
|
|
2131
|
+
var m = "";
|
|
2132
2132
|
for (var h in f)
|
|
2133
|
-
a.call(f, h) && f[h] && (
|
|
2134
|
-
return
|
|
2133
|
+
a.call(f, h) && f[h] && (m = d(m, h));
|
|
2134
|
+
return m;
|
|
2135
2135
|
}
|
|
2136
|
-
function d(f,
|
|
2137
|
-
return
|
|
2136
|
+
function d(f, m) {
|
|
2137
|
+
return m ? f ? f + " " + m : f + m : f;
|
|
2138
2138
|
}
|
|
2139
2139
|
o.exports ? (l.default = l, o.exports = l) : window.classNames = l;
|
|
2140
2140
|
})();
|
|
@@ -2157,7 +2157,7 @@ const z = /* @__PURE__ */ Hn(ra), Q = ({
|
|
|
2157
2157
|
variant: u = "secondary",
|
|
2158
2158
|
defaultPressed: d,
|
|
2159
2159
|
onPressedChange: f,
|
|
2160
|
-
icon:
|
|
2160
|
+
icon: m,
|
|
2161
2161
|
size: h = "compact",
|
|
2162
2162
|
display: b = "auto",
|
|
2163
2163
|
label: p
|
|
@@ -2182,7 +2182,7 @@ const z = /* @__PURE__ */ Hn(ra), Q = ({
|
|
|
2182
2182
|
isPressed: C,
|
|
2183
2183
|
onClick: M,
|
|
2184
2184
|
children: [
|
|
2185
|
-
|
|
2185
|
+
m && /* @__PURE__ */ n.jsx(He, { icon: m }),
|
|
2186
2186
|
b !== "icon" ? o : null,
|
|
2187
2187
|
p && !o && b !== "icon" ? /* @__PURE__ */ n.jsx("span", { children: p }) : null
|
|
2188
2188
|
]
|
|
@@ -2197,7 +2197,7 @@ const z = /* @__PURE__ */ Hn(ra), Q = ({
|
|
|
2197
2197
|
display: u = "auto",
|
|
2198
2198
|
options: d,
|
|
2199
2199
|
size: f = "compact",
|
|
2200
|
-
tabs:
|
|
2200
|
+
tabs: m = !1,
|
|
2201
2201
|
variant: h = "secondary",
|
|
2202
2202
|
stretch: b = !1,
|
|
2203
2203
|
onPressedChange: p
|
|
@@ -2222,7 +2222,7 @@ const z = /* @__PURE__ */ Hn(ra), Q = ({
|
|
|
2222
2222
|
className: z(
|
|
2223
2223
|
"blockbite-ui__button-group flex flex-wrap gap-1",
|
|
2224
2224
|
o,
|
|
2225
|
-
|
|
2225
|
+
m ? "blockbite-ui__button-group--tabs" : ""
|
|
2226
2226
|
),
|
|
2227
2227
|
children: d.map((j, ee) => /* @__PURE__ */ n.jsxs(
|
|
2228
2228
|
ve,
|
|
@@ -2256,7 +2256,7 @@ function ka({
|
|
|
2256
2256
|
swatch: l,
|
|
2257
2257
|
onPressedChange: u
|
|
2258
2258
|
}) {
|
|
2259
|
-
const [d, f] = L(""), [
|
|
2259
|
+
const [d, f] = L(""), [m, h] = L([]);
|
|
2260
2260
|
return H(() => {
|
|
2261
2261
|
h(
|
|
2262
2262
|
a.filter(
|
|
@@ -2303,8 +2303,8 @@ function ka({
|
|
|
2303
2303
|
}
|
|
2304
2304
|
),
|
|
2305
2305
|
/* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-2 gap-1 !bg-transparent !p-0 !pt-2", children: [
|
|
2306
|
-
|
|
2307
|
-
|
|
2306
|
+
m.length === 0 && /* @__PURE__ */ n.jsx("div", { className: "!text-gray-medium col-span-2 pb-2 text-center !text-[11px]", children: "No options found." }),
|
|
2307
|
+
m.map((b, p) => /* @__PURE__ */ n.jsxs(
|
|
2308
2308
|
ta,
|
|
2309
2309
|
{
|
|
2310
2310
|
className: z({
|
|
@@ -2348,9 +2348,9 @@ const aa = ({ children: o, className: a, onClick: l }) => /* @__PURE__ */ n.jsx(
|
|
|
2348
2348
|
), Ta = ({ htmlContent: o, cssContent: a, frontendAssets: l }) => {
|
|
2349
2349
|
const u = Tr(null), [d, f] = L(null);
|
|
2350
2350
|
return H(() => {
|
|
2351
|
-
const
|
|
2352
|
-
return
|
|
2353
|
-
const h =
|
|
2351
|
+
const m = u.current;
|
|
2352
|
+
return m && (m.onload = () => {
|
|
2353
|
+
const h = m.contentDocument || m.contentWindow.document;
|
|
2354
2354
|
if (h) {
|
|
2355
2355
|
f(h.body);
|
|
2356
2356
|
const b = h.createElement("style");
|
|
@@ -2370,7 +2370,7 @@ const aa = ({ children: o, className: a, onClick: l }) => /* @__PURE__ */ n.jsx(
|
|
|
2370
2370
|
});
|
|
2371
2371
|
}
|
|
2372
2372
|
}), () => {
|
|
2373
|
-
|
|
2373
|
+
m && (m.onload = null);
|
|
2374
2374
|
};
|
|
2375
2375
|
}, [o, a, l]), /* @__PURE__ */ n.jsxs(
|
|
2376
2376
|
"div",
|
|
@@ -2408,11 +2408,11 @@ const aa = ({ children: o, className: a, onClick: l }) => /* @__PURE__ */ n.jsx(
|
|
|
2408
2408
|
className: u,
|
|
2409
2409
|
onClick: d,
|
|
2410
2410
|
variant: f = "primary",
|
|
2411
|
-
display:
|
|
2411
|
+
display: m = "auto",
|
|
2412
2412
|
icon: h,
|
|
2413
2413
|
disabled: b = !1
|
|
2414
2414
|
}) => {
|
|
2415
|
-
const p =
|
|
2415
|
+
const p = m === "icon" || m === "icon-lg";
|
|
2416
2416
|
return /* @__PURE__ */ n.jsxs(
|
|
2417
2417
|
ve,
|
|
2418
2418
|
{
|
|
@@ -2429,7 +2429,7 @@ const aa = ({ children: o, className: a, onClick: l }) => /* @__PURE__ */ n.jsx(
|
|
|
2429
2429
|
{ "is-secondary": f === "secondary" },
|
|
2430
2430
|
{ "is-link": f === "link" },
|
|
2431
2431
|
{ "is-tertiary": f === "tertiary" },
|
|
2432
|
-
{ "is-icon":
|
|
2432
|
+
{ "is-icon": m === "icon" }
|
|
2433
2433
|
),
|
|
2434
2434
|
onClick: d,
|
|
2435
2435
|
children: [
|
|
@@ -2437,7 +2437,7 @@ const aa = ({ children: o, className: a, onClick: l }) => /* @__PURE__ */ n.jsx(
|
|
|
2437
2437
|
He,
|
|
2438
2438
|
{
|
|
2439
2439
|
icon: h,
|
|
2440
|
-
className: z({ "h-4 w-4":
|
|
2440
|
+
className: z({ "h-4 w-4": m === "icon-lg" })
|
|
2441
2441
|
}
|
|
2442
2442
|
),
|
|
2443
2443
|
p ? null : o,
|
|
@@ -2492,11 +2492,11 @@ const aa = ({ children: o, className: a, onClick: l }) => /* @__PURE__ */ n.jsx(
|
|
|
2492
2492
|
return H(() => {
|
|
2493
2493
|
f.current = !0;
|
|
2494
2494
|
}, []), H(() => {
|
|
2495
|
-
let
|
|
2496
|
-
return l && !f.current ? (d(!0),
|
|
2495
|
+
let m = null;
|
|
2496
|
+
return l && !f.current ? (d(!0), m = setTimeout(() => {
|
|
2497
2497
|
d(!1);
|
|
2498
2498
|
}, o)) : f.current = !1, () => {
|
|
2499
|
-
clearTimeout(
|
|
2499
|
+
clearTimeout(m);
|
|
2500
2500
|
};
|
|
2501
2501
|
}, [l, o]), u && /* @__PURE__ */ n.jsx(n.Fragment, { children: a });
|
|
2502
2502
|
}, oa = ({
|
|
@@ -2507,7 +2507,7 @@ const aa = ({ children: o, className: a, onClick: l }) => /* @__PURE__ */ n.jsx(
|
|
|
2507
2507
|
onPressedChange: d,
|
|
2508
2508
|
options: f
|
|
2509
2509
|
}) => {
|
|
2510
|
-
const [
|
|
2510
|
+
const [m, h] = L(null);
|
|
2511
2511
|
H(() => {
|
|
2512
2512
|
h(l);
|
|
2513
2513
|
}, [l]);
|
|
@@ -2538,7 +2538,7 @@ const aa = ({ children: o, className: a, onClick: l }) => /* @__PURE__ */ n.jsx(
|
|
|
2538
2538
|
"blockbite-ui__dropdown-picker border-primary border",
|
|
2539
2539
|
a
|
|
2540
2540
|
),
|
|
2541
|
-
icon: f.find((p) => p.value ===
|
|
2541
|
+
icon: f.find((p) => p.value === m)?.icon || /* @__PURE__ */ n.jsx(He, { icon: u }),
|
|
2542
2542
|
label: o || "Select"
|
|
2543
2543
|
}
|
|
2544
2544
|
);
|
|
@@ -2560,18 +2560,18 @@ function Ia({
|
|
|
2560
2560
|
function $a({
|
|
2561
2561
|
children: o
|
|
2562
2562
|
}) {
|
|
2563
|
-
const a = Tr(null), [l, u] = L({ x: 100, y: 100 }), [d, f] = L(!1), [
|
|
2563
|
+
const a = Tr(null), [l, u] = L({ x: 100, y: 100 }), [d, f] = L(!1), [m, h] = L({ x: 0, y: 0 });
|
|
2564
2564
|
H(() => {
|
|
2565
2565
|
const p = (_) => {
|
|
2566
2566
|
d && u({
|
|
2567
|
-
x: _.clientX -
|
|
2568
|
-
y: _.clientY -
|
|
2567
|
+
x: _.clientX - m.x,
|
|
2568
|
+
y: _.clientY - m.y
|
|
2569
2569
|
});
|
|
2570
2570
|
}, C = () => f(!1);
|
|
2571
2571
|
return window.addEventListener("mousemove", p), window.addEventListener("mouseup", C), () => {
|
|
2572
2572
|
window.removeEventListener("mousemove", p), window.removeEventListener("mouseup", C);
|
|
2573
2573
|
};
|
|
2574
|
-
}, [d,
|
|
2574
|
+
}, [d, m]);
|
|
2575
2575
|
const b = (p) => {
|
|
2576
2576
|
const C = a.current.getBoundingClientRect();
|
|
2577
2577
|
h({ x: p.clientX - C.left, y: p.clientY - C.top }), f(!0);
|
|
@@ -2612,10 +2612,10 @@ const Da = ({
|
|
|
2612
2612
|
);
|
|
2613
2613
|
}, [u]), H(() => {
|
|
2614
2614
|
if (o.includes("%")) {
|
|
2615
|
-
const [f,
|
|
2615
|
+
const [f, m] = o.replace("[", "").replace("%]", "").split("_").map((h) => parseFloat(h) / 100);
|
|
2616
2616
|
d({
|
|
2617
2617
|
x: f,
|
|
2618
|
-
y:
|
|
2618
|
+
y: m
|
|
2619
2619
|
});
|
|
2620
2620
|
}
|
|
2621
2621
|
}, [o]), /* @__PURE__ */ n.jsx(Q, { className: "relative flex flex-col", children: /* @__PURE__ */ n.jsx(
|
|
@@ -2629,7 +2629,7 @@ const Da = ({
|
|
|
2629
2629
|
) });
|
|
2630
2630
|
};
|
|
2631
2631
|
function Fa(o) {
|
|
2632
|
-
const [a, l] = L(""), [u, d] = L([]), [f,
|
|
2632
|
+
const [a, l] = L(""), [u, d] = L([]), [f, m] = L({
|
|
2633
2633
|
url: "",
|
|
2634
2634
|
title: ""
|
|
2635
2635
|
});
|
|
@@ -2659,7 +2659,7 @@ function Fa(o) {
|
|
|
2659
2659
|
{
|
|
2660
2660
|
links: u,
|
|
2661
2661
|
onActiveLink: (h) => [
|
|
2662
|
-
|
|
2662
|
+
m({ ...h }),
|
|
2663
2663
|
l("")
|
|
2664
2664
|
]
|
|
2665
2665
|
}
|
|
@@ -2710,7 +2710,7 @@ function La({ mediaProps: o, mediaCallback: a }) {
|
|
|
2710
2710
|
mediaId: 0,
|
|
2711
2711
|
mediaUrl: ""
|
|
2712
2712
|
} });
|
|
2713
|
-
},
|
|
2713
|
+
}, m = (h) => {
|
|
2714
2714
|
const b = {
|
|
2715
2715
|
thumbnail: null,
|
|
2716
2716
|
medium: null,
|
|
@@ -2735,7 +2735,7 @@ function La({ mediaProps: o, mediaCallback: a }) {
|
|
|
2735
2735
|
u.id !== null && /* @__PURE__ */ n.jsx(Kr, { children: /* @__PURE__ */ n.jsx(
|
|
2736
2736
|
Rt,
|
|
2737
2737
|
{
|
|
2738
|
-
onSelect:
|
|
2738
|
+
onSelect: m,
|
|
2739
2739
|
value: u.id,
|
|
2740
2740
|
allowedTypes: l,
|
|
2741
2741
|
render: ({ open: h }) => /* @__PURE__ */ n.jsxs(
|
|
@@ -2762,7 +2762,7 @@ function La({ mediaProps: o, mediaCallback: a }) {
|
|
|
2762
2762
|
{
|
|
2763
2763
|
title: Le("Replace media", "blockbite"),
|
|
2764
2764
|
value: u.id,
|
|
2765
|
-
onSelect:
|
|
2765
|
+
onSelect: m,
|
|
2766
2766
|
allowedTypes: l,
|
|
2767
2767
|
render: ({ open: h }) => /* @__PURE__ */ n.jsx(ve, { onClick: h, children: Le("Replace media", "blockbite") })
|
|
2768
2768
|
}
|
|
@@ -2778,15 +2778,15 @@ const ia = ({
|
|
|
2778
2778
|
onClick: d,
|
|
2779
2779
|
onVisibleChange: f
|
|
2780
2780
|
}) => {
|
|
2781
|
-
const [
|
|
2781
|
+
const [m, h] = L(!!u);
|
|
2782
2782
|
H(() => {
|
|
2783
2783
|
u !== void 0 && h(u);
|
|
2784
2784
|
}, [u]);
|
|
2785
2785
|
const b = () => {
|
|
2786
|
-
const p = !
|
|
2786
|
+
const p = !m;
|
|
2787
2787
|
h(p), f && f(p);
|
|
2788
2788
|
};
|
|
2789
|
-
return /* @__PURE__ */ n.jsx(n.Fragment, { children:
|
|
2789
|
+
return /* @__PURE__ */ n.jsx(n.Fragment, { children: m && /* @__PURE__ */ n.jsx(
|
|
2790
2790
|
Sn,
|
|
2791
2791
|
{
|
|
2792
2792
|
position: l,
|
|
@@ -2816,16 +2816,16 @@ const ia = ({
|
|
|
2816
2816
|
max: u = 2e3,
|
|
2817
2817
|
withInputField: d = !1,
|
|
2818
2818
|
onValueChange: f,
|
|
2819
|
-
gridMode:
|
|
2819
|
+
gridMode: m = !1,
|
|
2820
2820
|
showTooltip: h = !1,
|
|
2821
2821
|
...b
|
|
2822
2822
|
}) => {
|
|
2823
2823
|
const [p] = L(0), [C, _] = L(0);
|
|
2824
2824
|
H(() => {
|
|
2825
|
-
_(Math.round(parseInt(o) / (
|
|
2825
|
+
_(Math.round(parseInt(o) / (m ? 16 : 1)));
|
|
2826
2826
|
}, [o]);
|
|
2827
2827
|
function M(P) {
|
|
2828
|
-
const j = P * (
|
|
2828
|
+
const j = P * (m ? 16 : 1);
|
|
2829
2829
|
f(j.toString());
|
|
2830
2830
|
}
|
|
2831
2831
|
return /* @__PURE__ */ n.jsxs(Q, { className: "flex min-w-[240px] flex-col", children: [
|
|
@@ -2846,7 +2846,7 @@ const ia = ({
|
|
|
2846
2846
|
}
|
|
2847
2847
|
),
|
|
2848
2848
|
/* @__PURE__ */ n.jsxs("span", { children: [
|
|
2849
|
-
|
|
2849
|
+
m ? `${C * 16}px` : null,
|
|
2850
2850
|
" "
|
|
2851
2851
|
] })
|
|
2852
2852
|
] });
|
|
@@ -2858,7 +2858,7 @@ const ia = ({
|
|
|
2858
2858
|
defaultValue: u,
|
|
2859
2859
|
children: d,
|
|
2860
2860
|
inputClassName: f,
|
|
2861
|
-
readOnly:
|
|
2861
|
+
readOnly: m,
|
|
2862
2862
|
placeholder: h,
|
|
2863
2863
|
onBlur: b,
|
|
2864
2864
|
type: p = "text",
|
|
@@ -2884,7 +2884,7 @@ const ia = ({
|
|
|
2884
2884
|
o && o(), b && b(j.target.value);
|
|
2885
2885
|
},
|
|
2886
2886
|
onChange: (j) => a && a(j.target.value),
|
|
2887
|
-
readOnly:
|
|
2887
|
+
readOnly: m,
|
|
2888
2888
|
ref: M
|
|
2889
2889
|
}
|
|
2890
2890
|
),
|
|
@@ -2901,7 +2901,7 @@ const Ma = ({
|
|
|
2901
2901
|
onUnitChange: u,
|
|
2902
2902
|
inputClassName: d = "w-[75px]"
|
|
2903
2903
|
}) => {
|
|
2904
|
-
const [f,
|
|
2904
|
+
const [f, m] = L(!1), [h, b] = L([]), [p, C] = L(o), [_, M] = L(""), [P, j] = L(a);
|
|
2905
2905
|
H(() => {
|
|
2906
2906
|
o && C(o), a && M(a.toString());
|
|
2907
2907
|
}, [o, a]), H(() => {
|
|
@@ -2915,7 +2915,7 @@ const Ma = ({
|
|
|
2915
2915
|
);
|
|
2916
2916
|
} else
|
|
2917
2917
|
b([]);
|
|
2918
|
-
|
|
2918
|
+
m(!0);
|
|
2919
2919
|
}, U = [
|
|
2920
2920
|
{
|
|
2921
2921
|
icon: /* @__PURE__ */ n.jsx(hn, {}),
|
|
@@ -2948,7 +2948,7 @@ const Ma = ({
|
|
|
2948
2948
|
visible: f,
|
|
2949
2949
|
position: "bottom left",
|
|
2950
2950
|
className: "w-[300px] bg-white shadow-sm",
|
|
2951
|
-
onVisibleChange:
|
|
2951
|
+
onVisibleChange: m,
|
|
2952
2952
|
children: p === "arbitrary" ? /* @__PURE__ */ n.jsx(
|
|
2953
2953
|
la,
|
|
2954
2954
|
{
|
|
@@ -2991,7 +2991,7 @@ const Ma = ({
|
|
|
2991
2991
|
defaultValue: p,
|
|
2992
2992
|
options: U,
|
|
2993
2993
|
onPressedChange: (A) => {
|
|
2994
|
-
A === "reset" ? (M(""), l(""),
|
|
2994
|
+
A === "reset" ? (M(""), l(""), m(!1)) : (C(A), u(A), ee(A));
|
|
2995
2995
|
}
|
|
2996
2996
|
}
|
|
2997
2997
|
)
|
|
@@ -3010,11 +3010,11 @@ const Ma = ({
|
|
|
3010
3010
|
title: u,
|
|
3011
3011
|
className: d
|
|
3012
3012
|
}) => {
|
|
3013
|
-
const [f,
|
|
3013
|
+
const [f, m] = L(!1);
|
|
3014
3014
|
H(() => {
|
|
3015
|
-
|
|
3015
|
+
m(a);
|
|
3016
3016
|
}, [a]);
|
|
3017
|
-
const h = () =>
|
|
3017
|
+
const h = () => m(!0), b = () => m(!1);
|
|
3018
3018
|
return H(() => {
|
|
3019
3019
|
l(f);
|
|
3020
3020
|
}, [f, l]), /* @__PURE__ */ n.jsxs(Lt.Provider, { value: { closeModal: b, openModal: h }, children: [
|
|
@@ -3142,7 +3142,7 @@ const Va = ({
|
|
|
3142
3142
|
}
|
|
3143
3143
|
) }),
|
|
3144
3144
|
label: "Show password",
|
|
3145
|
-
onClick: () => f((
|
|
3145
|
+
onClick: () => f((m) => !m),
|
|
3146
3146
|
size: "small"
|
|
3147
3147
|
}
|
|
3148
3148
|
) }),
|
|
@@ -3171,7 +3171,7 @@ function qa(o) {
|
|
|
3171
3171
|
const { media: a, mediaClass: l } = o, { url: u, alt: d, sizes: f } = a;
|
|
3172
3172
|
if (f === void 0)
|
|
3173
3173
|
return /* @__PURE__ */ n.jsx("img", { src: u, alt: d, className: `bf_media ${l}` });
|
|
3174
|
-
const { thumbnail:
|
|
3174
|
+
const { thumbnail: m, medium: h, large: b } = f, p = m || u, C = h || u, _ = b || u;
|
|
3175
3175
|
return /* @__PURE__ */ n.jsxs("picture", { className: "bf_responsive-media", children: [
|
|
3176
3176
|
p ? /* @__PURE__ */ n.jsx(
|
|
3177
3177
|
"source",
|
|
@@ -3237,7 +3237,7 @@ const Ha = ({
|
|
|
3237
3237
|
setActiveSection: u,
|
|
3238
3238
|
Update: d,
|
|
3239
3239
|
newSection: f,
|
|
3240
|
-
setCode:
|
|
3240
|
+
setCode: m,
|
|
3241
3241
|
addons: h
|
|
3242
3242
|
}) => {
|
|
3243
3243
|
const [b, p] = L({
|
|
@@ -3259,7 +3259,7 @@ const Ha = ({
|
|
|
3259
3259
|
const U = { ...f() };
|
|
3260
3260
|
j.push(U), ee = U.id;
|
|
3261
3261
|
}
|
|
3262
|
-
a(j), u(ee),
|
|
3262
|
+
a(j), u(ee), m(j.find((U) => U.id === ee)?.code || "");
|
|
3263
3263
|
}, P = (j) => {
|
|
3264
3264
|
a(
|
|
3265
3265
|
(ee) => ee.map(
|
|
@@ -3345,37 +3345,38 @@ const Ha = ({
|
|
|
3345
3345
|
className: a,
|
|
3346
3346
|
defaultValue: l,
|
|
3347
3347
|
options: u,
|
|
3348
|
-
label: d = ""
|
|
3348
|
+
label: d = "",
|
|
3349
|
+
emptyLabel: f = "No options available"
|
|
3349
3350
|
}) => {
|
|
3350
|
-
const [
|
|
3351
|
+
const [m, h] = L("");
|
|
3351
3352
|
H(() => {
|
|
3352
|
-
|
|
3353
|
+
h(l);
|
|
3353
3354
|
}, []);
|
|
3354
|
-
const
|
|
3355
|
-
|
|
3355
|
+
const b = (p) => {
|
|
3356
|
+
h(p), o && o(p);
|
|
3356
3357
|
};
|
|
3357
3358
|
return /* @__PURE__ */ n.jsxs("div", { className: a, children: [
|
|
3358
3359
|
u && u.length > 0 && /* @__PURE__ */ n.jsx(
|
|
3359
3360
|
$n,
|
|
3360
3361
|
{
|
|
3361
3362
|
label: d || "",
|
|
3362
|
-
value:
|
|
3363
|
-
onChange:
|
|
3363
|
+
value: m || "",
|
|
3364
|
+
onChange: b,
|
|
3364
3365
|
options: [{ value: "", label: "Select an option" }, ...u]
|
|
3365
3366
|
}
|
|
3366
3367
|
),
|
|
3367
|
-
!u && /* @__PURE__ */ n.jsx("p", {
|
|
3368
|
+
(!u || u?.length === 0) && /* @__PURE__ */ n.jsx("p", { className: "mb-2", children: f })
|
|
3368
3369
|
] });
|
|
3369
3370
|
}, { select: va, dispatch: ma } = wp.data, Xa = ({
|
|
3370
3371
|
buttonText: o = "Add block"
|
|
3371
3372
|
}) => {
|
|
3372
3373
|
const a = () => {
|
|
3373
|
-
const l = va("core/block-editor").getSelectedBlock(), { clientId: u, innerBlocks: d } = l, f = d[d.length - 1],
|
|
3374
|
+
const l = va("core/block-editor").getSelectedBlock(), { clientId: u, innerBlocks: d } = l, f = d[d.length - 1], m = Gn(
|
|
3374
3375
|
f.name,
|
|
3375
3376
|
f.attributes,
|
|
3376
3377
|
f.innerBlocks
|
|
3377
3378
|
);
|
|
3378
|
-
ma("core/block-editor").insertBlocks(
|
|
3379
|
+
ma("core/block-editor").insertBlocks(m, 0, u);
|
|
3379
3380
|
};
|
|
3380
3381
|
return /* @__PURE__ */ n.jsx(ve, { variant: "primary", onClick: () => a(), children: o });
|
|
3381
3382
|
}, Za = ({ children: o, watch: a, className: l }) => {
|
|
@@ -3412,8 +3413,8 @@ const Ha = ({
|
|
|
3412
3413
|
onValueChange: u,
|
|
3413
3414
|
...d
|
|
3414
3415
|
}) => {
|
|
3415
|
-
const f = l !== void 0, [
|
|
3416
|
-
activeTab: f ? l :
|
|
3416
|
+
const f = l !== void 0, [m, h] = L(a || ""), C = {
|
|
3417
|
+
activeTab: f ? l : m,
|
|
3417
3418
|
setActiveTab: (_) => {
|
|
3418
3419
|
f || h(_), u && u(_);
|
|
3419
3420
|
}
|
|
@@ -3431,8 +3432,8 @@ const Ha = ({
|
|
|
3431
3432
|
{
|
|
3432
3433
|
className: z("tabs-list", l),
|
|
3433
3434
|
tabs: o,
|
|
3434
|
-
onSelect: (
|
|
3435
|
-
f(
|
|
3435
|
+
onSelect: (m) => {
|
|
3436
|
+
f(m);
|
|
3436
3437
|
},
|
|
3437
3438
|
children: () => a
|
|
3438
3439
|
}
|
|
@@ -3470,7 +3471,7 @@ const Ha = ({
|
|
|
3470
3471
|
label: d = !1,
|
|
3471
3472
|
onPressedChange: f
|
|
3472
3473
|
}) => {
|
|
3473
|
-
const [
|
|
3474
|
+
const [m, h] = L(""), b = (p) => {
|
|
3474
3475
|
f(p);
|
|
3475
3476
|
};
|
|
3476
3477
|
return H(() => {
|
|
@@ -3479,7 +3480,7 @@ const Ha = ({
|
|
|
3479
3480
|
Ln,
|
|
3480
3481
|
{
|
|
3481
3482
|
isBlock: !0,
|
|
3482
|
-
value:
|
|
3483
|
+
value: m,
|
|
3483
3484
|
label: typeof d == "string" ? d : "",
|
|
3484
3485
|
children: a.map(
|
|
3485
3486
|
(p) => u === "icon" ? /* @__PURE__ */ n.jsx(
|
|
@@ -3519,8 +3520,8 @@ const Ha = ({
|
|
|
3519
3520
|
{
|
|
3520
3521
|
checked: d,
|
|
3521
3522
|
label: o,
|
|
3522
|
-
onChange: (
|
|
3523
|
-
f(
|
|
3523
|
+
onChange: (m) => {
|
|
3524
|
+
f(m), l && l(m);
|
|
3524
3525
|
}
|
|
3525
3526
|
}
|
|
3526
3527
|
) });
|