@billgangcom/theme-lib 1.62.2 → 1.62.3
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/builder.cjs.js +2 -2
- package/dist/builder.es.js +210 -204
- package/package.json +1 -1
package/dist/builder.es.js
CHANGED
|
@@ -1594,7 +1594,7 @@ const va = "_product_yggw5_1", Sa = "_name_yggw5_15", Qt = {
|
|
|
1594
1594
|
children: t
|
|
1595
1595
|
}
|
|
1596
1596
|
) : null;
|
|
1597
|
-
}, Ta = "_applyButton_1a9kh_2", Na = "_content_1a9kh_7", La = "_title_1a9kh_14", Ba = "_label_1a9kh_21", Aa = "_colorValue_1a9kh_40", Pa = "_colorMap_1a9kh_48", $a = "_indicator_1a9kh_57", Ia = "_hueSlider_1a9kh_66", Ma = "_slider_1a9kh_97", Fa = "_buttons_1a9kh_102", Ha = "_name_1a9kh_109", Ea = "_secondary_1a9kh_114", Da = "_input_1a9kh_122", Ra = "_modal_1a9kh_160", Oa = "_alphaSlider_1a9kh_249", Ua = "_alphaBackground_1a9kh_257", Va = "_alphaGradient_1a9kh_268", za = "_chargeTypes_1a9kh_297", Ga = "_charge_1a9kh_297", qa = "_chargeActive_1a9kh_326", Wa = "_gradient_1a9kh_334", Za = "_color_1a9kh_40", Xa = "_colorActive_1a9kh_355", Ya = "_gradientWrapper_1a9kh_362", Ka = "_subtitle_1a9kh_368", Ja = "_colorTypes_1a9kh_375", Qa = "_colorType_1a9kh_375", er = "_colorTypeActive_1a9kh_399", tr = "_colorsWrapper_1a9kh_404", or = "_colors_1a9kh_404",
|
|
1597
|
+
}, Ta = "_applyButton_1a9kh_2", Na = "_content_1a9kh_7", La = "_title_1a9kh_14", Ba = "_label_1a9kh_21", Aa = "_colorValue_1a9kh_40", Pa = "_colorMap_1a9kh_48", $a = "_indicator_1a9kh_57", Ia = "_hueSlider_1a9kh_66", Ma = "_slider_1a9kh_97", Fa = "_buttons_1a9kh_102", Ha = "_name_1a9kh_109", Ea = "_secondary_1a9kh_114", Da = "_input_1a9kh_122", Ra = "_modal_1a9kh_160", Oa = "_alphaSlider_1a9kh_249", Ua = "_alphaBackground_1a9kh_257", Va = "_alphaGradient_1a9kh_268", za = "_chargeTypes_1a9kh_297", Ga = "_charge_1a9kh_297", qa = "_chargeActive_1a9kh_326", Wa = "_gradient_1a9kh_334", Za = "_color_1a9kh_40", Xa = "_colorActive_1a9kh_355", Ya = "_gradientWrapper_1a9kh_362", Ka = "_subtitle_1a9kh_368", Ja = "_colorTypes_1a9kh_375", Qa = "_colorType_1a9kh_375", er = "_colorTypeActive_1a9kh_399", tr = "_colorsWrapper_1a9kh_404", or = "_colors_1a9kh_404", P = {
|
|
1598
1598
|
applyButton: Ta,
|
|
1599
1599
|
content: Na,
|
|
1600
1600
|
title: La,
|
|
@@ -1652,95 +1652,95 @@ const va = "_product_yggw5_1", Sa = "_name_yggw5_15", Qt = {
|
|
|
1652
1652
|
saturation2: j,
|
|
1653
1653
|
brightness2: k,
|
|
1654
1654
|
alpha2: L,
|
|
1655
|
-
setHue2:
|
|
1656
|
-
setSaturation2:
|
|
1657
|
-
setBrightness2:
|
|
1655
|
+
setHue2: O,
|
|
1656
|
+
setSaturation2: F,
|
|
1657
|
+
setBrightness2: D,
|
|
1658
1658
|
setAlpha2: Z,
|
|
1659
|
-
activeColorIndex:
|
|
1659
|
+
activeColorIndex: A,
|
|
1660
1660
|
setActiveColorIndex: re,
|
|
1661
1661
|
isGradientActive: me
|
|
1662
|
-
} = gt(),
|
|
1662
|
+
} = gt(), R = (I, B, V) => {
|
|
1663
1663
|
B /= 100, V /= 100;
|
|
1664
|
-
const
|
|
1665
|
-
return { r:
|
|
1666
|
-
}, ce = (
|
|
1667
|
-
const { r:
|
|
1668
|
-
return `#${ce(
|
|
1669
|
-
},
|
|
1664
|
+
const $ = (Y) => (Y + I / 60) % 6, H = (Y) => V * (1 - B * Math.max(0, Math.min($(Y), 4 - $(Y), 1))), M = Math.round(255 * H(5)), U = Math.round(255 * H(3)), z = Math.round(255 * H(1));
|
|
1665
|
+
return { r: M, g: U, b: z };
|
|
1666
|
+
}, ce = (I) => I.toString(16).padStart(2, "0"), ee = (I, B, V, $) => {
|
|
1667
|
+
const { r: H, g: M, b: U } = R(I, B, V), z = Math.round($ / 100 * 255);
|
|
1668
|
+
return `#${ce(H)}${ce(M)}${ce(U)}${ce(z)}`;
|
|
1669
|
+
}, E = (I, B, V, $) => {
|
|
1670
1670
|
if (S)
|
|
1671
|
-
if (
|
|
1672
|
-
h(
|
|
1673
|
-
const
|
|
1671
|
+
if (A === 1) {
|
|
1672
|
+
h(I), m(B), c(V), u($);
|
|
1673
|
+
const H = ee(I, B, V, $), M = ee(C, j, k, L), z = `linear-gradient(${d === "vertical" ? "0deg" : "90deg"}, ${H} 0%, ${M} 100%)`;
|
|
1674
1674
|
_(z), g(z);
|
|
1675
1675
|
} else {
|
|
1676
|
-
|
|
1677
|
-
const
|
|
1676
|
+
O(I), F(B), D(V), Z($);
|
|
1677
|
+
const H = ee(I, B, V, $), M = ee(i, a, r, l), z = `linear-gradient(${d === "vertical" ? "0deg" : "90deg"}, ${M} 0%, ${H} 100%)`;
|
|
1678
1678
|
_(z), g(z);
|
|
1679
1679
|
}
|
|
1680
1680
|
else {
|
|
1681
|
-
const
|
|
1682
|
-
_(
|
|
1681
|
+
const H = ee(I, B, V, $);
|
|
1682
|
+
_(H), g(H);
|
|
1683
1683
|
}
|
|
1684
|
-
}, K = (
|
|
1685
|
-
const { width:
|
|
1686
|
-
S ?
|
|
1687
|
-
}, Se = (
|
|
1688
|
-
const { offsetX: B, offsetY: V } =
|
|
1689
|
-
f(!0), K(B, V,
|
|
1690
|
-
}, mt = (
|
|
1684
|
+
}, K = (I, B, V) => {
|
|
1685
|
+
const { width: $, height: H } = V.getBoundingClientRect(), M = Math.max(0, Math.min(I / $ * 100, 100)), U = Math.max(0, Math.min(100 - B / H * 100, 100));
|
|
1686
|
+
S ? A === 1 ? (m(M), c(U), E(i, M, U, l)) : (F(M), D(U), E(C, M, U, L)) : (m(M), c(U), E(i, M, U, l));
|
|
1687
|
+
}, Se = (I) => {
|
|
1688
|
+
const { offsetX: B, offsetY: V } = I.nativeEvent;
|
|
1689
|
+
f(!0), K(B, V, I.currentTarget);
|
|
1690
|
+
}, mt = (I) => {
|
|
1691
1691
|
if (p) {
|
|
1692
|
-
const B = document.querySelector(`.${
|
|
1693
|
-
K(
|
|
1692
|
+
const B = document.querySelector(`.${P.colorMap}`), { left: V, top: $ } = B.getBoundingClientRect(), H = I.clientX - V, M = I.clientY - $;
|
|
1693
|
+
K(H, M, B);
|
|
1694
1694
|
}
|
|
1695
1695
|
}, Ze = () => {
|
|
1696
1696
|
f(!1);
|
|
1697
1697
|
};
|
|
1698
1698
|
x.useEffect(() => {
|
|
1699
|
-
function $
|
|
1700
|
-
const
|
|
1701
|
-
if (
|
|
1702
|
-
const U =
|
|
1699
|
+
function I($) {
|
|
1700
|
+
const H = /linear-gradient\((\d+deg),\s*(#[0-9a-fA-F]{8})\s*0%,\s*(#[0-9a-fA-F]{8})\s*100%\)/, M = $.match(H);
|
|
1701
|
+
if (M) {
|
|
1702
|
+
const U = M[1], z = M[2], Y = M[3];
|
|
1703
1703
|
return { angle: U, col1: z, col2: Y };
|
|
1704
1704
|
}
|
|
1705
1705
|
return null;
|
|
1706
1706
|
}
|
|
1707
|
-
function B(
|
|
1708
|
-
const
|
|
1707
|
+
function B($) {
|
|
1708
|
+
const H = parseInt($.slice(1, 3), 16), M = parseInt($.slice(3, 5), 16), U = parseInt($.slice(5, 7), 16), z = parseInt($.slice(7, 9), 16) / 255 * 100, { h: Y, s: Pe, b: xt } = V(H, M, U);
|
|
1709
1709
|
return { h: Y, s: Pe, b: xt, a: z };
|
|
1710
1710
|
}
|
|
1711
|
-
function V(
|
|
1712
|
-
|
|
1713
|
-
const U = Math.max(
|
|
1711
|
+
function V($, H, M) {
|
|
1712
|
+
$ /= 255, H /= 255, M /= 255;
|
|
1713
|
+
const U = Math.max($, H, M), z = Math.min($, H, M);
|
|
1714
1714
|
let Y = 0;
|
|
1715
1715
|
const Pe = U - z, xt = (U === 0 ? 0 : Pe / U) * 100, go = U * 100;
|
|
1716
1716
|
if (U === z)
|
|
1717
1717
|
Y = 0;
|
|
1718
1718
|
else
|
|
1719
1719
|
switch (U) {
|
|
1720
|
-
case
|
|
1721
|
-
Y = ((
|
|
1720
|
+
case $:
|
|
1721
|
+
Y = ((H - M) / Pe + (H < M ? 6 : 0)) * 60;
|
|
1722
1722
|
break;
|
|
1723
|
-
case
|
|
1724
|
-
Y = ((
|
|
1723
|
+
case H:
|
|
1724
|
+
Y = ((M - $) / Pe + 2) * 60;
|
|
1725
1725
|
break;
|
|
1726
|
-
case
|
|
1727
|
-
Y = ((
|
|
1726
|
+
case M:
|
|
1727
|
+
Y = (($ - H) / Pe + 4) * 60;
|
|
1728
1728
|
break;
|
|
1729
1729
|
}
|
|
1730
1730
|
return { h: Y, s: xt, b: go };
|
|
1731
1731
|
}
|
|
1732
1732
|
if (o && o.startsWith("linear-gradient")) {
|
|
1733
|
-
const
|
|
1734
|
-
if (
|
|
1735
|
-
const { angle:
|
|
1736
|
-
v(!0), b(
|
|
1733
|
+
const $ = I(o);
|
|
1734
|
+
if ($) {
|
|
1735
|
+
const { angle: H, col1: M, col2: U } = $, z = B(M), Y = B(U);
|
|
1736
|
+
v(!0), b(H === "0deg" ? "vertical" : "horizontal"), h(z.h), m(z.s), c(z.b), u(z.a), O(Y.h), F(Y.s), D(Y.b), Z(Y.a), re(1);
|
|
1737
1737
|
}
|
|
1738
1738
|
} else if (o) {
|
|
1739
|
-
const
|
|
1739
|
+
const H = function(U) {
|
|
1740
1740
|
let z = U;
|
|
1741
1741
|
return z.length === 7 && (z = z + "ff"), z;
|
|
1742
|
-
}(o),
|
|
1743
|
-
v(!1), h(
|
|
1742
|
+
}(o), M = B(H);
|
|
1743
|
+
v(!1), h(M.h), m(M.s), c(M.b), u(M.a);
|
|
1744
1744
|
}
|
|
1745
1745
|
}, [
|
|
1746
1746
|
o,
|
|
@@ -1750,18 +1750,18 @@ const va = "_product_yggw5_1", Sa = "_name_yggw5_15", Qt = {
|
|
|
1750
1750
|
m,
|
|
1751
1751
|
c,
|
|
1752
1752
|
u,
|
|
1753
|
-
R,
|
|
1754
|
-
M,
|
|
1755
1753
|
O,
|
|
1754
|
+
F,
|
|
1755
|
+
D,
|
|
1756
1756
|
Z,
|
|
1757
1757
|
re
|
|
1758
1758
|
]), x.useEffect(() => {
|
|
1759
|
-
let
|
|
1760
|
-
S ?
|
|
1759
|
+
let I, B, V, $;
|
|
1760
|
+
S ? A === 1 ? (I = i, B = a, V = r, $ = l) : (I = C, B = j, V = k, $ = L) : (I = i, B = a, V = r, $ = l), E(I, B, V, $);
|
|
1761
1761
|
}, [
|
|
1762
1762
|
S,
|
|
1763
1763
|
d,
|
|
1764
|
-
|
|
1764
|
+
A,
|
|
1765
1765
|
i,
|
|
1766
1766
|
a,
|
|
1767
1767
|
r,
|
|
@@ -1771,40 +1771,40 @@ const va = "_product_yggw5_1", Sa = "_name_yggw5_15", Qt = {
|
|
|
1771
1771
|
k,
|
|
1772
1772
|
L
|
|
1773
1773
|
]), x.useEffect(() => {
|
|
1774
|
-
const
|
|
1775
|
-
return p ? (document.addEventListener("mousemove",
|
|
1776
|
-
document.removeEventListener("mousemove",
|
|
1774
|
+
const I = (V) => mt(V), B = () => Ze();
|
|
1775
|
+
return p ? (document.addEventListener("mousemove", I), document.addEventListener("mouseup", B)) : (document.removeEventListener("mousemove", I), document.removeEventListener("mouseup", B)), () => {
|
|
1776
|
+
document.removeEventListener("mousemove", I), document.removeEventListener("mouseup", B);
|
|
1777
1777
|
};
|
|
1778
1778
|
}, [p, S, d]);
|
|
1779
1779
|
function ft() {
|
|
1780
1780
|
if (!S)
|
|
1781
1781
|
w(n);
|
|
1782
1782
|
else {
|
|
1783
|
-
const
|
|
1784
|
-
w(
|
|
1783
|
+
const I = ee(i, a, r, l), B = ee(C, j, k, L), $ = `linear-gradient(${d === "vertical" ? "0deg" : "90deg"}, ${I} 0%, ${B} 100%)`;
|
|
1784
|
+
w($);
|
|
1785
1785
|
}
|
|
1786
1786
|
s(!1);
|
|
1787
1787
|
}
|
|
1788
1788
|
function X() {
|
|
1789
1789
|
s(!1), _(o);
|
|
1790
1790
|
}
|
|
1791
|
-
const Ae = S ?
|
|
1791
|
+
const Ae = S ? A === 1 ? i : C : i, Ut = S ? A === 1 ? a : j : a, Vt = S ? A === 1 ? r : k : r, ho = S ? A === 1 ? l : L : l, { r: zt, g: Gt, b: qt } = R(Ae, Ut, Vt), po = `linear-gradient(to right, rgba(${zt}, ${Gt}, ${qt}, 0), rgba(${zt}, ${Gt}, ${qt}, 1))`, Wt = ee(i, a, r, l), Zt = ee(C, j, k, L);
|
|
1792
1792
|
return /* @__PURE__ */ e.jsxs(
|
|
1793
1793
|
"div",
|
|
1794
1794
|
{
|
|
1795
|
-
className:
|
|
1796
|
-
onClick: (
|
|
1795
|
+
className: P.modal,
|
|
1796
|
+
onClick: (I) => I.stopPropagation(),
|
|
1797
1797
|
style: {
|
|
1798
1798
|
top: `${t.top}px`,
|
|
1799
1799
|
left: `${t.left}px`
|
|
1800
1800
|
},
|
|
1801
1801
|
children: [
|
|
1802
|
-
/* @__PURE__ */ e.jsx("h2", { className:
|
|
1803
|
-
me && /* @__PURE__ */ e.jsxs("div", { className:
|
|
1802
|
+
/* @__PURE__ */ e.jsx("h2", { className: P.title, children: "Color" }),
|
|
1803
|
+
me && /* @__PURE__ */ e.jsxs("div", { className: P.colorTypes, children: [
|
|
1804
1804
|
/* @__PURE__ */ e.jsxs(
|
|
1805
1805
|
"div",
|
|
1806
1806
|
{
|
|
1807
|
-
className: y(
|
|
1807
|
+
className: y(P.colorType, { [P.colorTypeActive]: !S }),
|
|
1808
1808
|
onClick: () => v(!1),
|
|
1809
1809
|
children: [
|
|
1810
1810
|
/* @__PURE__ */ e.jsx(
|
|
@@ -1825,7 +1825,7 @@ const va = "_product_yggw5_1", Sa = "_name_yggw5_15", Qt = {
|
|
|
1825
1825
|
/* @__PURE__ */ e.jsxs(
|
|
1826
1826
|
"div",
|
|
1827
1827
|
{
|
|
1828
|
-
className: y(
|
|
1828
|
+
className: y(P.colorType, { [P.colorTypeActive]: S }),
|
|
1829
1829
|
onClick: () => v(!0),
|
|
1830
1830
|
children: [
|
|
1831
1831
|
/* @__PURE__ */ e.jsx(
|
|
@@ -1844,11 +1844,11 @@ const va = "_product_yggw5_1", Sa = "_name_yggw5_15", Qt = {
|
|
|
1844
1844
|
}
|
|
1845
1845
|
)
|
|
1846
1846
|
] }),
|
|
1847
|
-
S && me && /* @__PURE__ */ e.jsxs("div", { className:
|
|
1847
|
+
S && me && /* @__PURE__ */ e.jsxs("div", { className: P.colorsWrapper, children: [
|
|
1848
1848
|
/* @__PURE__ */ e.jsx(
|
|
1849
1849
|
"div",
|
|
1850
1850
|
{
|
|
1851
|
-
className:
|
|
1851
|
+
className: P.colors,
|
|
1852
1852
|
style: {
|
|
1853
1853
|
background: `linear-gradient(90deg, ${Wt} 0%, ${Zt} 100%)`
|
|
1854
1854
|
}
|
|
@@ -1857,7 +1857,7 @@ const va = "_product_yggw5_1", Sa = "_name_yggw5_15", Qt = {
|
|
|
1857
1857
|
/* @__PURE__ */ e.jsx(
|
|
1858
1858
|
"div",
|
|
1859
1859
|
{
|
|
1860
|
-
className: y(
|
|
1860
|
+
className: y(P.color, { [P.colorActive]: A === 1 }),
|
|
1861
1861
|
onClick: () => re(1),
|
|
1862
1862
|
style: { background: Wt }
|
|
1863
1863
|
}
|
|
@@ -1865,7 +1865,7 @@ const va = "_product_yggw5_1", Sa = "_name_yggw5_15", Qt = {
|
|
|
1865
1865
|
/* @__PURE__ */ e.jsx(
|
|
1866
1866
|
"div",
|
|
1867
1867
|
{
|
|
1868
|
-
className: y(
|
|
1868
|
+
className: y(P.color, { [P.colorActive]: A === 2 }),
|
|
1869
1869
|
onClick: () => re(2),
|
|
1870
1870
|
style: { background: Zt }
|
|
1871
1871
|
}
|
|
@@ -1874,7 +1874,7 @@ const va = "_product_yggw5_1", Sa = "_name_yggw5_15", Qt = {
|
|
|
1874
1874
|
/* @__PURE__ */ e.jsx(
|
|
1875
1875
|
"div",
|
|
1876
1876
|
{
|
|
1877
|
-
className:
|
|
1877
|
+
className: P.colorMap,
|
|
1878
1878
|
onMouseDown: Se,
|
|
1879
1879
|
style: {
|
|
1880
1880
|
background: `
|
|
@@ -1885,7 +1885,7 @@ const va = "_product_yggw5_1", Sa = "_name_yggw5_15", Qt = {
|
|
|
1885
1885
|
children: /* @__PURE__ */ e.jsx(
|
|
1886
1886
|
"div",
|
|
1887
1887
|
{
|
|
1888
|
-
className:
|
|
1888
|
+
className: P.indicator,
|
|
1889
1889
|
style: {
|
|
1890
1890
|
position: "absolute",
|
|
1891
1891
|
left: `${Ut}%`,
|
|
@@ -1899,7 +1899,7 @@ const va = "_product_yggw5_1", Sa = "_name_yggw5_15", Qt = {
|
|
|
1899
1899
|
/* @__PURE__ */ e.jsx(
|
|
1900
1900
|
"div",
|
|
1901
1901
|
{
|
|
1902
|
-
className:
|
|
1902
|
+
className: P.hueSlider,
|
|
1903
1903
|
style: {
|
|
1904
1904
|
bottom: S ? "175px" : "100px"
|
|
1905
1905
|
},
|
|
@@ -1910,11 +1910,11 @@ const va = "_product_yggw5_1", Sa = "_name_yggw5_15", Qt = {
|
|
|
1910
1910
|
min: "0",
|
|
1911
1911
|
max: "360",
|
|
1912
1912
|
value: Ae,
|
|
1913
|
-
onChange: (
|
|
1914
|
-
const B = Number(
|
|
1915
|
-
S ?
|
|
1913
|
+
onChange: (I) => {
|
|
1914
|
+
const B = Number(I.target.value);
|
|
1915
|
+
S ? A === 1 ? E(B, a, r, l) : E(B, j, k, L) : (h(B), E(B, a, r, l));
|
|
1916
1916
|
},
|
|
1917
|
-
className:
|
|
1917
|
+
className: P.slider
|
|
1918
1918
|
}
|
|
1919
1919
|
)
|
|
1920
1920
|
}
|
|
@@ -1922,16 +1922,16 @@ const va = "_product_yggw5_1", Sa = "_name_yggw5_15", Qt = {
|
|
|
1922
1922
|
/* @__PURE__ */ e.jsxs(
|
|
1923
1923
|
"div",
|
|
1924
1924
|
{
|
|
1925
|
-
className:
|
|
1925
|
+
className: P.alphaSlider,
|
|
1926
1926
|
style: {
|
|
1927
1927
|
bottom: S ? "150px" : "75px"
|
|
1928
1928
|
},
|
|
1929
1929
|
children: [
|
|
1930
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
1930
|
+
/* @__PURE__ */ e.jsx("div", { className: P.alphaBackground }),
|
|
1931
1931
|
/* @__PURE__ */ e.jsx(
|
|
1932
1932
|
"div",
|
|
1933
1933
|
{
|
|
1934
|
-
className:
|
|
1934
|
+
className: P.alphaGradient,
|
|
1935
1935
|
style: { background: po }
|
|
1936
1936
|
}
|
|
1937
1937
|
),
|
|
@@ -1942,24 +1942,24 @@ const va = "_product_yggw5_1", Sa = "_name_yggw5_15", Qt = {
|
|
|
1942
1942
|
min: "0",
|
|
1943
1943
|
max: "100",
|
|
1944
1944
|
value: ho,
|
|
1945
|
-
onChange: (
|
|
1946
|
-
const B = Number(
|
|
1947
|
-
S ?
|
|
1945
|
+
onChange: (I) => {
|
|
1946
|
+
const B = Number(I.target.value);
|
|
1947
|
+
S ? A === 1 ? E(i, a, r, B) : E(C, j, k, B) : (u(B), E(i, a, r, B));
|
|
1948
1948
|
},
|
|
1949
|
-
className:
|
|
1949
|
+
className: P.slider
|
|
1950
1950
|
}
|
|
1951
1951
|
)
|
|
1952
1952
|
]
|
|
1953
1953
|
}
|
|
1954
1954
|
),
|
|
1955
|
-
S && me && /* @__PURE__ */ e.jsxs("div", { className:
|
|
1956
|
-
/* @__PURE__ */ e.jsx("h3", { className:
|
|
1957
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
1955
|
+
S && me && /* @__PURE__ */ e.jsxs("div", { className: P.gradientWrapper, children: [
|
|
1956
|
+
/* @__PURE__ */ e.jsx("h3", { className: P.subtitle, children: "Rotation" }),
|
|
1957
|
+
/* @__PURE__ */ e.jsx("div", { className: P.gradient, children: /* @__PURE__ */ e.jsxs("div", { className: P.chargeTypes, children: [
|
|
1958
1958
|
/* @__PURE__ */ e.jsxs(
|
|
1959
1959
|
"div",
|
|
1960
1960
|
{
|
|
1961
|
-
className: y(
|
|
1962
|
-
[
|
|
1961
|
+
className: y(P.charge, {
|
|
1962
|
+
[P.chargeActive]: d === "horizontal"
|
|
1963
1963
|
}),
|
|
1964
1964
|
onClick: () => b("horizontal"),
|
|
1965
1965
|
children: [
|
|
@@ -1978,8 +1978,8 @@ const va = "_product_yggw5_1", Sa = "_name_yggw5_15", Qt = {
|
|
|
1978
1978
|
/* @__PURE__ */ e.jsxs(
|
|
1979
1979
|
"div",
|
|
1980
1980
|
{
|
|
1981
|
-
className: y(
|
|
1982
|
-
[
|
|
1981
|
+
className: y(P.charge, {
|
|
1982
|
+
[P.chargeActive]: d === "vertical"
|
|
1983
1983
|
}),
|
|
1984
1984
|
onClick: () => b("vertical"),
|
|
1985
1985
|
children: [
|
|
@@ -1997,12 +1997,12 @@ const va = "_product_yggw5_1", Sa = "_name_yggw5_15", Qt = {
|
|
|
1997
1997
|
)
|
|
1998
1998
|
] }) })
|
|
1999
1999
|
] }),
|
|
2000
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2000
|
+
/* @__PURE__ */ e.jsxs("div", { className: P.buttons, children: [
|
|
2001
2001
|
/* @__PURE__ */ e.jsx(
|
|
2002
2002
|
Q,
|
|
2003
2003
|
{
|
|
2004
2004
|
onClick: X,
|
|
2005
|
-
className: y(
|
|
2005
|
+
className: y(P.applyButton, P.cancelButton),
|
|
2006
2006
|
type: "Secondary",
|
|
2007
2007
|
children: "Cancel"
|
|
2008
2008
|
}
|
|
@@ -2011,7 +2011,7 @@ const va = "_product_yggw5_1", Sa = "_name_yggw5_15", Qt = {
|
|
|
2011
2011
|
Q,
|
|
2012
2012
|
{
|
|
2013
2013
|
onClick: ft,
|
|
2014
|
-
className:
|
|
2014
|
+
className: P.applyButton,
|
|
2015
2015
|
children: "Apply"
|
|
2016
2016
|
}
|
|
2017
2017
|
)
|
|
@@ -2213,12 +2213,12 @@ const va = "_product_yggw5_1", Sa = "_name_yggw5_15", Qt = {
|
|
|
2213
2213
|
startHideTimeout: c,
|
|
2214
2214
|
hoverBlockId: u,
|
|
2215
2215
|
isModalVisible: _
|
|
2216
|
-
} = Re(), { setPositionBlock: g } = q(), [w, S] = x.useState(!1), [v, d] = x.useState(!1), [b, C] = x.useState(!1), [j, k] = x.useState(!1), [L,
|
|
2216
|
+
} = Re(), { setPositionBlock: g } = q(), [w, S] = x.useState(!1), [v, d] = x.useState(!1), [b, C] = x.useState(!1), [j, k] = x.useState(!1), [L, O] = x.useState(null), { attributes: F, listeners: D, setNodeRef: Z, transform: A, transition: re } = To({
|
|
2217
2217
|
id: t
|
|
2218
2218
|
}), me = {
|
|
2219
|
-
transform: No.Transform.toString(
|
|
2219
|
+
transform: No.Transform.toString(A),
|
|
2220
2220
|
transition: re
|
|
2221
|
-
}, { setTitle:
|
|
2221
|
+
}, { setTitle: R, setDescription: ce, setOnConfirm: ee } = Be(), { pages: E, currentPage: K } = G(), { removeBlock: Se } = q(), mt = (X) => {
|
|
2222
2222
|
X.stopPropagation(), r({
|
|
2223
2223
|
id: t,
|
|
2224
2224
|
neededScroll: !0
|
|
@@ -2248,8 +2248,8 @@ const va = "_product_yggw5_1", Sa = "_name_yggw5_15", Qt = {
|
|
|
2248
2248
|
},
|
|
2249
2249
|
onMouseEnter: mt,
|
|
2250
2250
|
onMouseLeave: ft,
|
|
2251
|
-
...
|
|
2252
|
-
...
|
|
2251
|
+
...F,
|
|
2252
|
+
...D,
|
|
2253
2253
|
children: [
|
|
2254
2254
|
/* @__PURE__ */ e.jsxs(
|
|
2255
2255
|
"div",
|
|
@@ -2296,7 +2296,7 @@ const va = "_product_yggw5_1", Sa = "_name_yggw5_15", Qt = {
|
|
|
2296
2296
|
const X = setTimeout(() => {
|
|
2297
2297
|
s || k(!0);
|
|
2298
2298
|
}, 200);
|
|
2299
|
-
|
|
2299
|
+
O(X);
|
|
2300
2300
|
},
|
|
2301
2301
|
onMouseLeave: () => {
|
|
2302
2302
|
L && clearTimeout(L), k(!1);
|
|
@@ -2336,7 +2336,7 @@ const va = "_product_yggw5_1", Sa = "_name_yggw5_15", Qt = {
|
|
|
2336
2336
|
const X = setTimeout(() => {
|
|
2337
2337
|
s || C(!0);
|
|
2338
2338
|
}, 200);
|
|
2339
|
-
|
|
2339
|
+
O(X);
|
|
2340
2340
|
},
|
|
2341
2341
|
onMouseLeave: () => {
|
|
2342
2342
|
L && clearTimeout(L), C(!1);
|
|
@@ -2373,10 +2373,10 @@ const va = "_product_yggw5_1", Sa = "_name_yggw5_15", Qt = {
|
|
|
2373
2373
|
{
|
|
2374
2374
|
className: J.deleteButton,
|
|
2375
2375
|
onClick: (X) => {
|
|
2376
|
-
X.stopPropagation(),
|
|
2376
|
+
X.stopPropagation(), R("Remove Block"), ce(
|
|
2377
2377
|
`Are you sure you want to delete ${n || "this"} block? Once you delete this block, any content visible will also be deleted. This is irreversible.`
|
|
2378
2378
|
), ee(() => {
|
|
2379
|
-
|
|
2379
|
+
E && Se(E[K].path, t);
|
|
2380
2380
|
});
|
|
2381
2381
|
},
|
|
2382
2382
|
children: /* @__PURE__ */ e.jsx(
|
|
@@ -2721,16 +2721,16 @@ const va = "_product_yggw5_1", Sa = "_name_yggw5_15", Qt = {
|
|
|
2721
2721
|
announcement: d,
|
|
2722
2722
|
isLoadingLayers: b
|
|
2723
2723
|
} = q(), { currentPage: C, pages: j } = G();
|
|
2724
|
-
function k(
|
|
2725
|
-
if (j && r && !
|
|
2726
|
-
const
|
|
2724
|
+
function k(F = !1) {
|
|
2725
|
+
if (j && r && !F) {
|
|
2726
|
+
const D = {
|
|
2727
2727
|
blockSettings: {}
|
|
2728
2728
|
};
|
|
2729
2729
|
Object.keys(r.blockSettings).filter((Z) => !["displayName", "isAddable"].includes(Z)).map((Z) => {
|
|
2730
|
-
|
|
2730
|
+
D.blockSettings[Z] = r.blockSettings[Z];
|
|
2731
2731
|
}), m(j[C].path, c, {
|
|
2732
2732
|
name: f[j[C].path].data[c].name,
|
|
2733
|
-
value:
|
|
2733
|
+
value: D
|
|
2734
2734
|
});
|
|
2735
2735
|
}
|
|
2736
2736
|
a(null), u(null), p({
|
|
@@ -2744,29 +2744,29 @@ const va = "_product_yggw5_1", Sa = "_name_yggw5_15", Qt = {
|
|
|
2744
2744
|
var Z;
|
|
2745
2745
|
if (!j || !j[C] || !c)
|
|
2746
2746
|
return null;
|
|
2747
|
-
const
|
|
2748
|
-
return !
|
|
2747
|
+
const F = f[j[C].path].data[c];
|
|
2748
|
+
return !F || !s[F.name] ? null : new s[F.name]((Z = F.value) == null ? void 0 : Z.blockSettings);
|
|
2749
2749
|
}
|
|
2750
2750
|
x.useEffect(() => {
|
|
2751
2751
|
if (i || c && !["header", "footer", "announcement"].includes(c)) {
|
|
2752
|
-
const
|
|
2753
|
-
l(
|
|
2752
|
+
const F = L();
|
|
2753
|
+
l(F);
|
|
2754
2754
|
} else
|
|
2755
2755
|
l(null);
|
|
2756
2756
|
}, [i, c]), x.useEffect(() => {
|
|
2757
2757
|
if (i && j && !c) {
|
|
2758
|
-
const
|
|
2758
|
+
const F = {
|
|
2759
2759
|
blockSettings: {},
|
|
2760
2760
|
blockColors: {}
|
|
2761
|
-
},
|
|
2762
|
-
l(
|
|
2763
|
-
|
|
2764
|
-
}), Object.keys(
|
|
2765
|
-
|
|
2761
|
+
}, D = new s[i]();
|
|
2762
|
+
l(D), Object.keys(D.blockSettings).filter((A) => !["displayName", "isAddable"].includes(A)).map((A) => {
|
|
2763
|
+
F.blockSettings[A] = D.blockSettings[A];
|
|
2764
|
+
}), Object.keys(D.blockColors).filter((A) => !["displayName", "isAddable"].includes(A)).map((A) => {
|
|
2765
|
+
F.blockColors[A] = D.blockColors[A];
|
|
2766
2766
|
});
|
|
2767
2767
|
const Z = h(j[C].path, {
|
|
2768
2768
|
name: i,
|
|
2769
|
-
value:
|
|
2769
|
+
value: F
|
|
2770
2770
|
});
|
|
2771
2771
|
p({
|
|
2772
2772
|
id: Z,
|
|
@@ -2780,13 +2780,13 @@ const va = "_product_yggw5_1", Sa = "_name_yggw5_15", Qt = {
|
|
|
2780
2780
|
}, [c, v]), x.useEffect(() => {
|
|
2781
2781
|
c === "announcement" && w(d);
|
|
2782
2782
|
}, [c, d]);
|
|
2783
|
-
function
|
|
2783
|
+
function O(F) {
|
|
2784
2784
|
if (!s)
|
|
2785
2785
|
return "unknown name";
|
|
2786
|
-
if (!s[
|
|
2786
|
+
if (!s[F])
|
|
2787
2787
|
return c === "header" ? S == null ? void 0 : S.blockSettings.displayName : c === "footer" ? v == null ? void 0 : v.blockSettings.displayName : c === "announcement" ? d == null ? void 0 : d.blockSettings.displayName : "unknown name";
|
|
2788
|
-
const
|
|
2789
|
-
return !
|
|
2788
|
+
const D = new s[F]();
|
|
2789
|
+
return !D.blockSettings || !D.blockSettings.displayName ? "unknown name" : D.blockSettings.displayName;
|
|
2790
2790
|
}
|
|
2791
2791
|
return /* @__PURE__ */ e.jsxs(
|
|
2792
2792
|
"div",
|
|
@@ -2796,7 +2796,7 @@ const va = "_product_yggw5_1", Sa = "_name_yggw5_15", Qt = {
|
|
|
2796
2796
|
[Ie.close]: !c,
|
|
2797
2797
|
[Ie.clicked]: n
|
|
2798
2798
|
}),
|
|
2799
|
-
onClick: (
|
|
2799
|
+
onClick: (F) => F.stopPropagation(),
|
|
2800
2800
|
style: {
|
|
2801
2801
|
opacity: b ? 0 : 1
|
|
2802
2802
|
},
|
|
@@ -2806,7 +2806,7 @@ const va = "_product_yggw5_1", Sa = "_name_yggw5_15", Qt = {
|
|
|
2806
2806
|
{
|
|
2807
2807
|
onClick: k,
|
|
2808
2808
|
setIsClicked: o,
|
|
2809
|
-
getDisplayName:
|
|
2809
|
+
getDisplayName: O
|
|
2810
2810
|
}
|
|
2811
2811
|
),
|
|
2812
2812
|
/* @__PURE__ */ e.jsxs("div", { className: Ie.settings, children: [
|
|
@@ -2968,12 +2968,12 @@ const va = "_product_yggw5_1", Sa = "_name_yggw5_15", Qt = {
|
|
|
2968
2968
|
left: b
|
|
2969
2969
|
});
|
|
2970
2970
|
};
|
|
2971
|
-
return /* @__PURE__ */ e.jsxs("div", { className:
|
|
2971
|
+
return /* @__PURE__ */ e.jsxs("div", { className: P.content, children: [
|
|
2972
2972
|
/* @__PURE__ */ e.jsx(
|
|
2973
2973
|
"span",
|
|
2974
2974
|
{
|
|
2975
|
-
className: y(
|
|
2976
|
-
[
|
|
2975
|
+
className: y(P.name, {
|
|
2976
|
+
[P.secondary]: i === "secondary"
|
|
2977
2977
|
}),
|
|
2978
2978
|
children: s
|
|
2979
2979
|
}
|
|
@@ -2981,13 +2981,13 @@ const va = "_product_yggw5_1", Sa = "_name_yggw5_15", Qt = {
|
|
|
2981
2981
|
/* @__PURE__ */ e.jsxs(
|
|
2982
2982
|
"label",
|
|
2983
2983
|
{
|
|
2984
|
-
className:
|
|
2984
|
+
className: P.label,
|
|
2985
2985
|
onClick: (v) => v.stopPropagation(),
|
|
2986
2986
|
children: [
|
|
2987
2987
|
/* @__PURE__ */ e.jsx(
|
|
2988
2988
|
"div",
|
|
2989
2989
|
{
|
|
2990
|
-
className:
|
|
2990
|
+
className: P.colorValue,
|
|
2991
2991
|
style: {
|
|
2992
2992
|
background: r
|
|
2993
2993
|
},
|
|
@@ -3003,7 +3003,7 @@ const va = "_product_yggw5_1", Sa = "_name_yggw5_15", Qt = {
|
|
|
3003
3003
|
const d = v.target.value;
|
|
3004
3004
|
o(d), u(d), l(d), w(d);
|
|
3005
3005
|
},
|
|
3006
|
-
className:
|
|
3006
|
+
className: P.input
|
|
3007
3007
|
}
|
|
3008
3008
|
)
|
|
3009
3009
|
]
|
|
@@ -3842,7 +3842,7 @@ const va = "_product_yggw5_1", Sa = "_name_yggw5_15", Qt = {
|
|
|
3842
3842
|
)) })
|
|
3843
3843
|
] });
|
|
3844
3844
|
}, Fc = () => {
|
|
3845
|
-
var
|
|
3845
|
+
var O, F, D, Z, A, re, me;
|
|
3846
3846
|
const {
|
|
3847
3847
|
setIsOpenModal: t,
|
|
3848
3848
|
pages: n,
|
|
@@ -3853,8 +3853,8 @@ const va = "_product_yggw5_1", Sa = "_name_yggw5_15", Qt = {
|
|
|
3853
3853
|
editedPage: r,
|
|
3854
3854
|
setEditedPage: l,
|
|
3855
3855
|
pageContext: p
|
|
3856
|
-
} = G(), { setIsOpen: f } = Rt(), { createPage: h, updatePage: m } = q(), [c, u] = x.useState(r ? n && ((
|
|
3857
|
-
r ? n && ((
|
|
3856
|
+
} = G(), { setIsOpen: f } = Rt(), { createPage: h, updatePage: m } = q(), [c, u] = x.useState(r ? n && ((O = n[r]) == null ? void 0 : O.path) : ""), [_, g] = x.useState(r ? n && ((F = n[r]) == null ? void 0 : F.name) : ""), [w, S] = x.useState(
|
|
3857
|
+
r ? n && ((D = n[r]) == null ? void 0 : D.seo) && ((A = (Z = n[r]) == null ? void 0 : Z.seo) == null ? void 0 : A.pageDescription) || "" : `${p.general.info.name} is powered by the Billgang.com platform which allows them to sell their digital products online for free.`
|
|
3858
3858
|
), [v, d] = x.useState(
|
|
3859
3859
|
r && n && (re = n[r]) != null && re.isPrivate ? "private" : "public"
|
|
3860
3860
|
);
|
|
@@ -3866,8 +3866,8 @@ const va = "_product_yggw5_1", Sa = "_name_yggw5_15", Qt = {
|
|
|
3866
3866
|
b(), t(!1), f(!0);
|
|
3867
3867
|
}, 300);
|
|
3868
3868
|
}
|
|
3869
|
-
function j(
|
|
3870
|
-
return
|
|
3869
|
+
function j(R) {
|
|
3870
|
+
return R[0] === "/" ? R : "/" + R;
|
|
3871
3871
|
}
|
|
3872
3872
|
function k() {
|
|
3873
3873
|
o({
|
|
@@ -3897,7 +3897,7 @@ const va = "_product_yggw5_1", Sa = "_name_yggw5_15", Qt = {
|
|
|
3897
3897
|
"div",
|
|
3898
3898
|
{
|
|
3899
3899
|
className: ue.wrapper,
|
|
3900
|
-
onClick: (
|
|
3900
|
+
onClick: (R) => R.stopPropagation(),
|
|
3901
3901
|
children: [
|
|
3902
3902
|
/* @__PURE__ */ e.jsxs("div", { className: ue.header, children: [
|
|
3903
3903
|
/* @__PURE__ */ e.jsx("h2", { children: i ? "Edit Page" : "Create New Page" }),
|
|
@@ -3916,7 +3916,7 @@ const va = "_product_yggw5_1", Sa = "_name_yggw5_15", Qt = {
|
|
|
3916
3916
|
ne,
|
|
3917
3917
|
{
|
|
3918
3918
|
label: "Page Slug",
|
|
3919
|
-
onChange: (
|
|
3919
|
+
onChange: (R) => u(R),
|
|
3920
3920
|
value: c,
|
|
3921
3921
|
placeholder: "path-to-page",
|
|
3922
3922
|
disabled: !!(r && n && ((me = n[r]) != null && me.name) && nt.includes(n[r].path)),
|
|
@@ -3928,8 +3928,8 @@ const va = "_product_yggw5_1", Sa = "_name_yggw5_15", Qt = {
|
|
|
3928
3928
|
ne,
|
|
3929
3929
|
{
|
|
3930
3930
|
label: "Page Title",
|
|
3931
|
-
onChange: (
|
|
3932
|
-
g(
|
|
3931
|
+
onChange: (R) => {
|
|
3932
|
+
g(R);
|
|
3933
3933
|
},
|
|
3934
3934
|
value: _.charAt(0).toUpperCase() + _.slice(1),
|
|
3935
3935
|
placeholder: "Contact us"
|
|
@@ -3939,7 +3939,7 @@ const va = "_product_yggw5_1", Sa = "_name_yggw5_15", Qt = {
|
|
|
3939
3939
|
Lo,
|
|
3940
3940
|
{
|
|
3941
3941
|
label: "Description",
|
|
3942
|
-
onChange: (
|
|
3942
|
+
onChange: (R) => S(R),
|
|
3943
3943
|
value: w,
|
|
3944
3944
|
placeholder: `${p.general.info.name} is powered by the Billgang.com platform which allows them to sell their digital products online for free.`,
|
|
3945
3945
|
maxLength: 150
|
|
@@ -3960,7 +3960,7 @@ const va = "_product_yggw5_1", Sa = "_name_yggw5_15", Qt = {
|
|
|
3960
3960
|
label: "Private"
|
|
3961
3961
|
}
|
|
3962
3962
|
],
|
|
3963
|
-
onChange: (
|
|
3963
|
+
onChange: (R) => d(R)
|
|
3964
3964
|
}
|
|
3965
3965
|
),
|
|
3966
3966
|
/* @__PURE__ */ e.jsxs("div", { className: ue.preview, children: [
|
|
@@ -4085,12 +4085,11 @@ const va = "_product_yggw5_1", Sa = "_name_yggw5_15", Qt = {
|
|
|
4085
4085
|
} = q(), { setPages: k, setCurrentPage: L } = G();
|
|
4086
4086
|
return x.useEffect(() => {
|
|
4087
4087
|
u(!0), j(!0), _(!0);
|
|
4088
|
-
const
|
|
4089
|
-
Object.keys(n).forEach((
|
|
4090
|
-
|
|
4091
|
-
}), l(
|
|
4092
|
-
|
|
4093
|
-
let Z = {
|
|
4088
|
+
const O = {};
|
|
4089
|
+
Object.keys(n).forEach((D) => {
|
|
4090
|
+
O[D] = n[D];
|
|
4091
|
+
}), l(O), r(O), w(s), S(i), v(a), (async () => {
|
|
4092
|
+
let D = {
|
|
4094
4093
|
listings: null,
|
|
4095
4094
|
products: null,
|
|
4096
4095
|
reviews: null,
|
|
@@ -4100,48 +4099,50 @@ const va = "_product_yggw5_1", Sa = "_name_yggw5_15", Qt = {
|
|
|
4100
4099
|
fullPosts: null,
|
|
4101
4100
|
posts: null
|
|
4102
4101
|
};
|
|
4103
|
-
const
|
|
4104
|
-
Object.keys(
|
|
4105
|
-
const K =
|
|
4106
|
-
|
|
4107
|
-
}), m(
|
|
4108
|
-
const {
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4102
|
+
const Z = await ps();
|
|
4103
|
+
Object.keys(Z).map((E) => {
|
|
4104
|
+
const K = E;
|
|
4105
|
+
D[K] = Z[K].value.data;
|
|
4106
|
+
}), m(D);
|
|
4107
|
+
const { data: A } = await fs();
|
|
4108
|
+
console.log("✅ Проверка структуры dataAll:", JSON.stringify(A, null, 2)), (!(A != null && A.themeSettings) || !(A != null && A.layers) || !(A != null && A.settings)) && console.warn("⚠️ Некорректная структура API-ответа!", A);
|
|
4109
|
+
const { themeSettings: re, layers: me, settings: R } = A || {};
|
|
4110
|
+
if (R) {
|
|
4111
|
+
const E = o;
|
|
4112
|
+
if (R.settings && (Object.keys(R.settings).map((K) => {
|
|
4113
|
+
E[K] = R.settings[K];
|
|
4114
|
+
}), h(E)), R.header) {
|
|
4114
4115
|
const K = s;
|
|
4115
|
-
Object.keys(
|
|
4116
|
-
K[Se] =
|
|
4116
|
+
Object.keys(R.header).map((Se) => {
|
|
4117
|
+
K[Se] = R.header[Se];
|
|
4117
4118
|
}), w(K);
|
|
4118
4119
|
}
|
|
4119
|
-
if (
|
|
4120
|
+
if (R.footer) {
|
|
4120
4121
|
const K = i;
|
|
4121
|
-
Object.keys(
|
|
4122
|
-
K[Se] =
|
|
4122
|
+
Object.keys(R.footer).map((Se) => {
|
|
4123
|
+
K[Se] = R.footer[Se];
|
|
4123
4124
|
}), S(K);
|
|
4124
4125
|
}
|
|
4125
4126
|
} else
|
|
4126
4127
|
h(o);
|
|
4127
|
-
re && c(re)
|
|
4128
|
+
re && c(re);
|
|
4128
4129
|
const ce = await ms();
|
|
4129
4130
|
console.log("Pages", ce);
|
|
4130
4131
|
const ee = {};
|
|
4131
4132
|
if (ce.status >= 400 && g({
|
|
4132
4133
|
message: "Error fetching pages",
|
|
4133
4134
|
status: "error"
|
|
4134
|
-
}), ce.data.length > 0 ? (ce.data.forEach((
|
|
4135
|
-
b[
|
|
4136
|
-
...
|
|
4137
|
-
icon: Oe[
|
|
4138
|
-
name:
|
|
4135
|
+
}), ce.data.length > 0 ? (ce.data.forEach((E) => {
|
|
4136
|
+
b[E.path] || C(E.path), ee[E.id || E.path] = {
|
|
4137
|
+
...E,
|
|
4138
|
+
icon: Oe[E.path] ? Oe[E.path].icon : "File",
|
|
4139
|
+
name: E.name ? E.name : Oe[E.path].name
|
|
4139
4140
|
};
|
|
4140
4141
|
}), k(ee), L(Object.keys(ee)[0])) : (k(Oe), L(Object.keys(Oe)[0])), p.length === 0) {
|
|
4141
|
-
const
|
|
4142
|
-
f([...
|
|
4142
|
+
const E = await gs();
|
|
4143
|
+
f([...E.map((K) => K.family)]);
|
|
4143
4144
|
}
|
|
4144
|
-
u(!1), j(!1), _(!1);
|
|
4145
|
+
d(me), u(!1), j(!1), _(!1);
|
|
4145
4146
|
})();
|
|
4146
4147
|
}, []), /* @__PURE__ */ e.jsx(zc, {});
|
|
4147
4148
|
};
|
|
@@ -4369,51 +4370,56 @@ const Zc = (t) => {
|
|
|
4369
4370
|
t && /* @__PURE__ */ e.jsx(le, {})
|
|
4370
4371
|
] });
|
|
4371
4372
|
}, dd = ({ children: t }) => {
|
|
4372
|
-
|
|
4373
|
+
if (Ft().pathname.startsWith("/admin/builder"))
|
|
4374
|
+
return /* @__PURE__ */ e.jsx(e.Fragment, { children: t });
|
|
4375
|
+
const [o, s] = x.useState(!0), { setThemeSettings: i, themeSettings: a } = W(), { settings: r, setSettings: l } = te(), { setHeader: p, setFooter: f, setAnnouncement: h, header: m, footer: c, announcement: u } = q(), { general: _, setGeneral: g } = Mt(), { pageContext: w, setPageContext: S } = G(), v = ae();
|
|
4373
4376
|
return x.useEffect(() => {
|
|
4374
|
-
|
|
4377
|
+
s(!0);
|
|
4375
4378
|
const d = async () => {
|
|
4376
|
-
if (!
|
|
4379
|
+
if (!_) {
|
|
4377
4380
|
const C = await it();
|
|
4378
|
-
C.isPasswordValid || v("/validation"),
|
|
4381
|
+
C.isPasswordValid || v("/validation"), g(C);
|
|
4379
4382
|
}
|
|
4380
4383
|
}, b = async () => {
|
|
4381
|
-
const { settings: C, theme: j } = (await ao()).data, k =
|
|
4384
|
+
const { settings: C, theme: j } = (await ao()).data, k = await io(encodeURIComponent("/products"));
|
|
4382
4385
|
if (k) {
|
|
4383
4386
|
const { data: L } = k;
|
|
4384
|
-
|
|
4385
|
-
...
|
|
4387
|
+
S({
|
|
4388
|
+
...w,
|
|
4386
4389
|
listings: L.listings
|
|
4387
4390
|
});
|
|
4388
|
-
}
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4391
|
+
} else
|
|
4392
|
+
S({
|
|
4393
|
+
...w
|
|
4394
|
+
});
|
|
4395
|
+
if (C && r) {
|
|
4396
|
+
const L = r;
|
|
4397
|
+
if (C.settings ? (Object.keys(C.settings).map((O) => {
|
|
4398
|
+
L[O] = C.settings[O];
|
|
4399
|
+
}), l(L)) : l(r), C.header && m) {
|
|
4400
|
+
const O = m;
|
|
4401
|
+
Object.keys(C.header).map((F) => {
|
|
4402
|
+
O[F] = C.header[F];
|
|
4403
|
+
}), p(O);
|
|
4398
4404
|
}
|
|
4399
|
-
if (C.footer &&
|
|
4400
|
-
const
|
|
4401
|
-
Object.keys(C.footer).map((
|
|
4402
|
-
|
|
4403
|
-
}),
|
|
4405
|
+
if (C.footer && c) {
|
|
4406
|
+
const O = c;
|
|
4407
|
+
Object.keys(C.footer).map((F) => {
|
|
4408
|
+
O[F] = C.footer[F];
|
|
4409
|
+
}), f(O);
|
|
4404
4410
|
}
|
|
4405
|
-
if (C.announcement &&
|
|
4406
|
-
const
|
|
4407
|
-
Object.keys(C.announcement).map((
|
|
4408
|
-
|
|
4409
|
-
}),
|
|
4411
|
+
if (C.announcement && u) {
|
|
4412
|
+
const O = u;
|
|
4413
|
+
Object.keys(C.announcement).map((F) => {
|
|
4414
|
+
O[F] = C.announcement[F];
|
|
4415
|
+
}), h(O);
|
|
4410
4416
|
}
|
|
4411
4417
|
} else
|
|
4412
|
-
r
|
|
4413
|
-
|
|
4418
|
+
l(r);
|
|
4419
|
+
i(a), i(j || a), s(!1);
|
|
4414
4420
|
};
|
|
4415
4421
|
d(), b();
|
|
4416
|
-
}, []), /* @__PURE__ */ e.jsx(e.Fragment, { children:
|
|
4422
|
+
}, []), /* @__PURE__ */ e.jsx(e.Fragment, { children: o ? /* @__PURE__ */ e.jsx(
|
|
4417
4423
|
"div",
|
|
4418
4424
|
{
|
|
4419
4425
|
style: {
|