@cntrl-site/sdk 1.24.1 → 1.24.2
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/LICENSE +21 -21
- package/README.md +2 -2
- package/dist/index.js +65 -320
- package/dist/index.mjs +65 -320
- package/dist/types/component/Component.d.ts +1 -1
- package/package.json +83 -83
- package/resources/template.scss.ejs +50 -50
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { URL } from "url";
|
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import UAParser from "ua-parser-js";
|
|
5
5
|
import * as MP4Box from "mp4box";
|
|
6
|
-
import {
|
|
6
|
+
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { useState, useEffect, useRef, useMemo } from "react";
|
|
8
8
|
import { Splide, SplideSlide } from "@splidejs/react-splide";
|
|
9
9
|
import cn from "classnames";
|
|
@@ -1355,31 +1355,15 @@ const RichTextRenderer = ({ content }) => {
|
|
|
1355
1355
|
const getChildren = (children) => {
|
|
1356
1356
|
return children.map((child, i) => {
|
|
1357
1357
|
if (child.type === "link") {
|
|
1358
|
-
return /* @__PURE__ */
|
|
1359
|
-
fileName: "H:/mom/sdk/src/Components/helpers/RichTextRenderer/RichTextRenderer.tsx",
|
|
1360
|
-
lineNumber: 13,
|
|
1361
|
-
columnNumber: 16
|
|
1362
|
-
}, void 0);
|
|
1358
|
+
return /* @__PURE__ */ jsx("a", { className: styles$2.link, href: child.value, target: child.target, children: getChildren(child.children) }, i);
|
|
1363
1359
|
}
|
|
1364
|
-
return /* @__PURE__ */
|
|
1365
|
-
fileName: "H:/mom/sdk/src/Components/helpers/RichTextRenderer/RichTextRenderer.tsx",
|
|
1366
|
-
lineNumber: 15,
|
|
1367
|
-
columnNumber: 14
|
|
1368
|
-
}, void 0);
|
|
1360
|
+
return /* @__PURE__ */ jsx("span", { style: getLeafCss(child), children: child.text }, i);
|
|
1369
1361
|
});
|
|
1370
1362
|
};
|
|
1371
|
-
return /* @__PURE__ */
|
|
1363
|
+
return /* @__PURE__ */ jsx(Fragment, { children: content.map((block, i) => {
|
|
1372
1364
|
const children = block.children;
|
|
1373
|
-
return /* @__PURE__ */
|
|
1374
|
-
|
|
1375
|
-
lineNumber: 23,
|
|
1376
|
-
columnNumber: 11
|
|
1377
|
-
}, void 0);
|
|
1378
|
-
}) }, void 0, false, {
|
|
1379
|
-
fileName: "H:/mom/sdk/src/Components/helpers/RichTextRenderer/RichTextRenderer.tsx",
|
|
1380
|
-
lineNumber: 19,
|
|
1381
|
-
columnNumber: 5
|
|
1382
|
-
}, void 0);
|
|
1365
|
+
return /* @__PURE__ */ jsx("div", { children: getChildren(children) }, i);
|
|
1366
|
+
}) });
|
|
1383
1367
|
};
|
|
1384
1368
|
function getLeafCss(leaf) {
|
|
1385
1369
|
return {
|
|
@@ -1412,13 +1396,9 @@ const SvgImage = ({ url, fill = "#000000", hoverFill = "#CCCCCC", className = ""
|
|
|
1412
1396
|
}
|
|
1413
1397
|
}, []);
|
|
1414
1398
|
if (!url.endsWith(".svg") || !supportsMask) {
|
|
1415
|
-
return /* @__PURE__ */
|
|
1416
|
-
fileName: "H:/mom/sdk/src/Components/helpers/SvgImage/SvgImage.tsx",
|
|
1417
|
-
lineNumber: 23,
|
|
1418
|
-
columnNumber: 12
|
|
1419
|
-
}, void 0);
|
|
1399
|
+
return /* @__PURE__ */ jsx("img", { src: url, alt: "", className: cn(styles$1.img, className) });
|
|
1420
1400
|
}
|
|
1421
|
-
return /* @__PURE__ */
|
|
1401
|
+
return /* @__PURE__ */ jsx(
|
|
1422
1402
|
"span",
|
|
1423
1403
|
{
|
|
1424
1404
|
"data-supports-mask": supportsMask,
|
|
@@ -1428,15 +1408,7 @@ const SvgImage = ({ url, fill = "#000000", hoverFill = "#CCCCCC", className = ""
|
|
|
1428
1408
|
"--fill": fill,
|
|
1429
1409
|
"--hover-fill": hoverFill
|
|
1430
1410
|
}
|
|
1431
|
-
}
|
|
1432
|
-
void 0,
|
|
1433
|
-
false,
|
|
1434
|
-
{
|
|
1435
|
-
fileName: "H:/mom/sdk/src/Components/helpers/SvgImage/SvgImage.tsx",
|
|
1436
|
-
lineNumber: 27,
|
|
1437
|
-
columnNumber: 5
|
|
1438
|
-
},
|
|
1439
|
-
void 0
|
|
1411
|
+
}
|
|
1440
1412
|
);
|
|
1441
1413
|
};
|
|
1442
1414
|
const alignmentClassName = {
|
|
@@ -1483,7 +1455,7 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
|
|
|
1483
1455
|
setKey((prev) => prev + 1);
|
|
1484
1456
|
prevSliderTypeRef.current = transition.type;
|
|
1485
1457
|
}, [transition.type]);
|
|
1486
|
-
return /* @__PURE__ */
|
|
1458
|
+
return /* @__PURE__ */ jsx("div", { className: cn(styles$3.wrapper, { [styles$3.editor]: isEditor }), ref: setWrapperRef, children: /* @__PURE__ */ jsxs(
|
|
1487
1459
|
"div",
|
|
1488
1460
|
{
|
|
1489
1461
|
className: styles$3.sliderInner,
|
|
@@ -1493,15 +1465,15 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
|
|
|
1493
1465
|
backgroundColor: transition.backgroundColor && transition.type === "fade in" ? transition.backgroundColor : "transparent"
|
|
1494
1466
|
},
|
|
1495
1467
|
children: [
|
|
1496
|
-
settings.caption.isActive && /* @__PURE__ */
|
|
1468
|
+
settings.caption.isActive && /* @__PURE__ */ jsx(
|
|
1497
1469
|
"div",
|
|
1498
1470
|
{
|
|
1499
1471
|
className: cn(styles$3.captionBlock),
|
|
1500
|
-
children: /* @__PURE__ */
|
|
1472
|
+
children: /* @__PURE__ */ jsx(
|
|
1501
1473
|
"div",
|
|
1502
1474
|
{
|
|
1503
1475
|
className: styles$3.captionTextWrapper,
|
|
1504
|
-
children: content.map((item, index) => /* @__PURE__ */
|
|
1476
|
+
children: content.map((item, index) => /* @__PURE__ */ jsx(
|
|
1505
1477
|
"div",
|
|
1506
1478
|
{
|
|
1507
1479
|
className: cn(styles$3.captionText, alignmentClassName[caption.alignment], {
|
|
@@ -1524,7 +1496,7 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
|
|
|
1524
1496
|
color,
|
|
1525
1497
|
transitionDuration: transition.duration ? `${Math.round(parseInt(transition.duration) / 2)}ms` : "500ms"
|
|
1526
1498
|
},
|
|
1527
|
-
children: /* @__PURE__ */
|
|
1499
|
+
children: /* @__PURE__ */ jsx(
|
|
1528
1500
|
"div",
|
|
1529
1501
|
{
|
|
1530
1502
|
"data-styles": "caption",
|
|
@@ -1535,52 +1507,17 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
|
|
|
1535
1507
|
top: scalingValue(caption.offset.y, isEditor),
|
|
1536
1508
|
left: scalingValue(caption.offset.x, isEditor)
|
|
1537
1509
|
},
|
|
1538
|
-
children: /* @__PURE__ */
|
|
1539
|
-
|
|
1540
|
-
lineNumber: 115,
|
|
1541
|
-
columnNumber: 19
|
|
1542
|
-
}, this)
|
|
1543
|
-
},
|
|
1544
|
-
void 0,
|
|
1545
|
-
false,
|
|
1546
|
-
{
|
|
1547
|
-
fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
|
|
1548
|
-
lineNumber: 105,
|
|
1549
|
-
columnNumber: 17
|
|
1550
|
-
},
|
|
1551
|
-
this
|
|
1510
|
+
children: /* @__PURE__ */ jsx(RichTextRenderer, { content: item.imageCaption })
|
|
1511
|
+
}
|
|
1552
1512
|
)
|
|
1553
1513
|
},
|
|
1554
|
-
index
|
|
1555
|
-
false,
|
|
1556
|
-
{
|
|
1557
|
-
fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
|
|
1558
|
-
lineNumber: 82,
|
|
1559
|
-
columnNumber: 15
|
|
1560
|
-
},
|
|
1561
|
-
this
|
|
1514
|
+
index
|
|
1562
1515
|
))
|
|
1563
|
-
}
|
|
1564
|
-
void 0,
|
|
1565
|
-
false,
|
|
1566
|
-
{
|
|
1567
|
-
fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
|
|
1568
|
-
lineNumber: 78,
|
|
1569
|
-
columnNumber: 11
|
|
1570
|
-
},
|
|
1571
|
-
this
|
|
1516
|
+
}
|
|
1572
1517
|
)
|
|
1573
|
-
}
|
|
1574
|
-
void 0,
|
|
1575
|
-
false,
|
|
1576
|
-
{
|
|
1577
|
-
fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
|
|
1578
|
-
lineNumber: 75,
|
|
1579
|
-
columnNumber: 9
|
|
1580
|
-
},
|
|
1581
|
-
this
|
|
1518
|
+
}
|
|
1582
1519
|
),
|
|
1583
|
-
/* @__PURE__ */
|
|
1520
|
+
/* @__PURE__ */ jsx(
|
|
1584
1521
|
Splide,
|
|
1585
1522
|
{
|
|
1586
1523
|
onMove: (e) => {
|
|
@@ -1603,15 +1540,15 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
|
|
|
1603
1540
|
type: transition.type === "fade in" ? "fade" : "loop",
|
|
1604
1541
|
rewind: true
|
|
1605
1542
|
},
|
|
1606
|
-
children: content.map((item, index) => /* @__PURE__ */
|
|
1543
|
+
children: content.map((item, index) => /* @__PURE__ */ jsx(SplideSlide, { children: /* @__PURE__ */ jsx(
|
|
1607
1544
|
"div",
|
|
1608
1545
|
{
|
|
1609
1546
|
className: styles$3.sliderItem,
|
|
1610
|
-
children: /* @__PURE__ */
|
|
1547
|
+
children: /* @__PURE__ */ jsx(
|
|
1611
1548
|
"div",
|
|
1612
1549
|
{
|
|
1613
1550
|
className: styles$3.imgWrapper,
|
|
1614
|
-
children: /* @__PURE__ */
|
|
1551
|
+
children: /* @__PURE__ */ jsx(
|
|
1615
1552
|
"img",
|
|
1616
1553
|
{
|
|
1617
1554
|
className: cn(styles$3.sliderImage, {
|
|
@@ -1620,52 +1557,17 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
|
|
|
1620
1557
|
}),
|
|
1621
1558
|
src: item.image.url,
|
|
1622
1559
|
alt: item.image.name ?? ""
|
|
1623
|
-
}
|
|
1624
|
-
void 0,
|
|
1625
|
-
false,
|
|
1626
|
-
{
|
|
1627
|
-
fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
|
|
1628
|
-
lineNumber: 153,
|
|
1629
|
-
columnNumber: 17
|
|
1630
|
-
},
|
|
1631
|
-
this
|
|
1560
|
+
}
|
|
1632
1561
|
)
|
|
1633
|
-
}
|
|
1634
|
-
void 0,
|
|
1635
|
-
false,
|
|
1636
|
-
{
|
|
1637
|
-
fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
|
|
1638
|
-
lineNumber: 150,
|
|
1639
|
-
columnNumber: 15
|
|
1640
|
-
},
|
|
1641
|
-
this
|
|
1562
|
+
}
|
|
1642
1563
|
)
|
|
1643
|
-
}
|
|
1644
|
-
|
|
1645
|
-
false,
|
|
1646
|
-
{
|
|
1647
|
-
fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
|
|
1648
|
-
lineNumber: 147,
|
|
1649
|
-
columnNumber: 13
|
|
1650
|
-
},
|
|
1651
|
-
this
|
|
1652
|
-
) }, index, false, {
|
|
1653
|
-
fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
|
|
1654
|
-
lineNumber: 146,
|
|
1655
|
-
columnNumber: 11
|
|
1656
|
-
}, this))
|
|
1657
|
-
},
|
|
1658
|
-
key,
|
|
1659
|
-
false,
|
|
1660
|
-
{
|
|
1661
|
-
fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
|
|
1662
|
-
lineNumber: 122,
|
|
1663
|
-
columnNumber: 7
|
|
1564
|
+
}
|
|
1565
|
+
) }, index))
|
|
1664
1566
|
},
|
|
1665
|
-
|
|
1567
|
+
key
|
|
1666
1568
|
),
|
|
1667
|
-
controls.isActive && /* @__PURE__ */
|
|
1668
|
-
/* @__PURE__ */
|
|
1569
|
+
controls.isActive && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1570
|
+
/* @__PURE__ */ jsx(
|
|
1669
1571
|
"div",
|
|
1670
1572
|
{
|
|
1671
1573
|
className: cn(styles$3.arrow, {
|
|
@@ -1675,7 +1577,7 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
|
|
|
1675
1577
|
color: controls.color,
|
|
1676
1578
|
["--arrow-hover-color"]: controls.hover
|
|
1677
1579
|
},
|
|
1678
|
-
children: /* @__PURE__ */
|
|
1580
|
+
children: /* @__PURE__ */ jsxs(
|
|
1679
1581
|
"button",
|
|
1680
1582
|
{
|
|
1681
1583
|
onClick: () => {
|
|
@@ -1686,50 +1588,22 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
|
|
|
1686
1588
|
transform: `translate(${scalingValue(controlsOffsetX, isEditor)}, ${scalingValue(controlsOffsetY * (direction === "horiz" ? 1 : -1), isEditor)}) scale(${settings.controls.scale / 100}) rotate(${direction === "horiz" ? "0deg" : "90deg"})`
|
|
1687
1589
|
},
|
|
1688
1590
|
children: [
|
|
1689
|
-
controls.arrowsImgUrl && /* @__PURE__ */
|
|
1591
|
+
controls.arrowsImgUrl && /* @__PURE__ */ jsx(
|
|
1690
1592
|
SvgImage,
|
|
1691
1593
|
{
|
|
1692
1594
|
url: controls.arrowsImgUrl,
|
|
1693
1595
|
fill: controls.color,
|
|
1694
1596
|
hoverFill: controls.hover,
|
|
1695
1597
|
className: cn(styles$3.arrowImg, styles$3.mirror)
|
|
1696
|
-
}
|
|
1697
|
-
void 0,
|
|
1698
|
-
false,
|
|
1699
|
-
{
|
|
1700
|
-
fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
|
|
1701
|
-
lineNumber: 186,
|
|
1702
|
-
columnNumber: 17
|
|
1703
|
-
},
|
|
1704
|
-
this
|
|
1598
|
+
}
|
|
1705
1599
|
),
|
|
1706
|
-
!controls.arrowsImgUrl && /* @__PURE__ */
|
|
1707
|
-
fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
|
|
1708
|
-
lineNumber: 194,
|
|
1709
|
-
columnNumber: 17
|
|
1710
|
-
}, this)
|
|
1600
|
+
!controls.arrowsImgUrl && /* @__PURE__ */ jsx(ArrowIcon, { color: controls.color, className: cn(styles$3.arrowIcon, styles$3.arrowImg, styles$3.mirror) })
|
|
1711
1601
|
]
|
|
1712
|
-
}
|
|
1713
|
-
void 0,
|
|
1714
|
-
true,
|
|
1715
|
-
{
|
|
1716
|
-
fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
|
|
1717
|
-
lineNumber: 176,
|
|
1718
|
-
columnNumber: 13
|
|
1719
|
-
},
|
|
1720
|
-
this
|
|
1602
|
+
}
|
|
1721
1603
|
)
|
|
1722
|
-
}
|
|
1723
|
-
void 0,
|
|
1724
|
-
false,
|
|
1725
|
-
{
|
|
1726
|
-
fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
|
|
1727
|
-
lineNumber: 167,
|
|
1728
|
-
columnNumber: 11
|
|
1729
|
-
},
|
|
1730
|
-
this
|
|
1604
|
+
}
|
|
1731
1605
|
),
|
|
1732
|
-
/* @__PURE__ */
|
|
1606
|
+
/* @__PURE__ */ jsx(
|
|
1733
1607
|
"div",
|
|
1734
1608
|
{
|
|
1735
1609
|
className: cn(styles$3.arrow, styles$3.nextArrow, {
|
|
@@ -1739,7 +1613,7 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
|
|
|
1739
1613
|
color: controls.color,
|
|
1740
1614
|
["--arrow-hover-color"]: controls.hover
|
|
1741
1615
|
},
|
|
1742
|
-
children: /* @__PURE__ */
|
|
1616
|
+
children: /* @__PURE__ */ jsxs(
|
|
1743
1617
|
"button",
|
|
1744
1618
|
{
|
|
1745
1619
|
className: styles$3.arrowInner,
|
|
@@ -1748,55 +1622,23 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
|
|
|
1748
1622
|
transform: `translate(${scalingValue(controlsOffsetX * (direction === "horiz" ? -1 : 1), isEditor)}, ${scalingValue(controlsOffsetY, isEditor)}) scale(${settings.controls.scale / 100}) rotate(${direction === "horiz" ? "0deg" : "90deg"})`
|
|
1749
1623
|
},
|
|
1750
1624
|
children: [
|
|
1751
|
-
controls.arrowsImgUrl && /* @__PURE__ */
|
|
1625
|
+
controls.arrowsImgUrl && /* @__PURE__ */ jsx(
|
|
1752
1626
|
SvgImage,
|
|
1753
1627
|
{
|
|
1754
1628
|
url: controls.arrowsImgUrl,
|
|
1755
1629
|
fill: controls.color,
|
|
1756
1630
|
hoverFill: controls.hover,
|
|
1757
1631
|
className: styles$3.arrowImg
|
|
1758
|
-
}
|
|
1759
|
-
void 0,
|
|
1760
|
-
false,
|
|
1761
|
-
{
|
|
1762
|
-
fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
|
|
1763
|
-
lineNumber: 215,
|
|
1764
|
-
columnNumber: 17
|
|
1765
|
-
},
|
|
1766
|
-
this
|
|
1632
|
+
}
|
|
1767
1633
|
),
|
|
1768
|
-
!controls.arrowsImgUrl && /* @__PURE__ */
|
|
1769
|
-
fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
|
|
1770
|
-
lineNumber: 223,
|
|
1771
|
-
columnNumber: 17
|
|
1772
|
-
}, this)
|
|
1634
|
+
!controls.arrowsImgUrl && /* @__PURE__ */ jsx(ArrowIcon, { color: controls.color, className: cn(styles$3.arrowIcon, styles$3.arrowImg) })
|
|
1773
1635
|
]
|
|
1774
|
-
}
|
|
1775
|
-
void 0,
|
|
1776
|
-
true,
|
|
1777
|
-
{
|
|
1778
|
-
fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
|
|
1779
|
-
lineNumber: 207,
|
|
1780
|
-
columnNumber: 13
|
|
1781
|
-
},
|
|
1782
|
-
this
|
|
1636
|
+
}
|
|
1783
1637
|
)
|
|
1784
|
-
}
|
|
1785
|
-
void 0,
|
|
1786
|
-
false,
|
|
1787
|
-
{
|
|
1788
|
-
fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
|
|
1789
|
-
lineNumber: 198,
|
|
1790
|
-
columnNumber: 11
|
|
1791
|
-
},
|
|
1792
|
-
this
|
|
1638
|
+
}
|
|
1793
1639
|
)
|
|
1794
|
-
] },
|
|
1795
|
-
|
|
1796
|
-
lineNumber: 166,
|
|
1797
|
-
columnNumber: 9
|
|
1798
|
-
}, this),
|
|
1799
|
-
triggers.triggersList.click && /* @__PURE__ */ jsxDEV(
|
|
1640
|
+
] }),
|
|
1641
|
+
triggers.triggersList.click && /* @__PURE__ */ jsx(
|
|
1800
1642
|
"div",
|
|
1801
1643
|
{
|
|
1802
1644
|
className: styles$3.clickOverlay,
|
|
@@ -1805,17 +1647,9 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
|
|
|
1805
1647
|
sliderRef.go("+1");
|
|
1806
1648
|
}
|
|
1807
1649
|
}
|
|
1808
|
-
}
|
|
1809
|
-
void 0,
|
|
1810
|
-
false,
|
|
1811
|
-
{
|
|
1812
|
-
fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
|
|
1813
|
-
lineNumber: 230,
|
|
1814
|
-
columnNumber: 9
|
|
1815
|
-
},
|
|
1816
|
-
this
|
|
1650
|
+
}
|
|
1817
1651
|
),
|
|
1818
|
-
pagination2.isActive && /* @__PURE__ */
|
|
1652
|
+
pagination2.isActive && /* @__PURE__ */ jsx(
|
|
1819
1653
|
"div",
|
|
1820
1654
|
{
|
|
1821
1655
|
className: cn(styles$3.pagination, {
|
|
@@ -1829,7 +1663,7 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
|
|
|
1829
1663
|
[styles$3.paginationOutsideRight]: pagination2.position === "outside-2" && direction === "vert",
|
|
1830
1664
|
[styles$3.paginationVertical]: direction === "vert"
|
|
1831
1665
|
}),
|
|
1832
|
-
children: /* @__PURE__ */
|
|
1666
|
+
children: /* @__PURE__ */ jsx(
|
|
1833
1667
|
"div",
|
|
1834
1668
|
{
|
|
1835
1669
|
className: styles$3.paginationInner,
|
|
@@ -1837,7 +1671,7 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
|
|
|
1837
1671
|
backgroundColor: pagination2.colors[2],
|
|
1838
1672
|
transform: `scale(${pagination2.scale / 100}) translate(${scalingValue(pagination2.offset.x, isEditor)}, ${scalingValue(pagination2.offset.y, isEditor)}) rotate(${direction === "horiz" ? "0deg" : "90deg"})`
|
|
1839
1673
|
},
|
|
1840
|
-
children: content.map((_, index) => /* @__PURE__ */
|
|
1674
|
+
children: content.map((_, index) => /* @__PURE__ */ jsx(
|
|
1841
1675
|
"button",
|
|
1842
1676
|
{
|
|
1843
1677
|
onClick: () => {
|
|
@@ -1846,7 +1680,7 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
|
|
|
1846
1680
|
}
|
|
1847
1681
|
},
|
|
1848
1682
|
className: cn(styles$3.paginationItem),
|
|
1849
|
-
children: /* @__PURE__ */
|
|
1683
|
+
children: /* @__PURE__ */ jsx(
|
|
1850
1684
|
"div",
|
|
1851
1685
|
{
|
|
1852
1686
|
className: cn(styles$3.dot, {
|
|
@@ -1856,76 +1690,21 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
|
|
|
1856
1690
|
backgroundColor: index === currentSlideIndex ? pagination2.colors[0] : pagination2.colors[1],
|
|
1857
1691
|
["--pagination-hover-color"]: pagination2.hover
|
|
1858
1692
|
}
|
|
1859
|
-
}
|
|
1860
|
-
void 0,
|
|
1861
|
-
false,
|
|
1862
|
-
{
|
|
1863
|
-
fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
|
|
1864
|
-
lineNumber: 270,
|
|
1865
|
-
columnNumber: 17
|
|
1866
|
-
},
|
|
1867
|
-
this
|
|
1693
|
+
}
|
|
1868
1694
|
)
|
|
1869
1695
|
},
|
|
1870
|
-
index
|
|
1871
|
-
false,
|
|
1872
|
-
{
|
|
1873
|
-
fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
|
|
1874
|
-
lineNumber: 261,
|
|
1875
|
-
columnNumber: 15
|
|
1876
|
-
},
|
|
1877
|
-
this
|
|
1696
|
+
index
|
|
1878
1697
|
))
|
|
1879
|
-
}
|
|
1880
|
-
void 0,
|
|
1881
|
-
false,
|
|
1882
|
-
{
|
|
1883
|
-
fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
|
|
1884
|
-
lineNumber: 253,
|
|
1885
|
-
columnNumber: 11
|
|
1886
|
-
},
|
|
1887
|
-
this
|
|
1698
|
+
}
|
|
1888
1699
|
)
|
|
1889
|
-
}
|
|
1890
|
-
void 0,
|
|
1891
|
-
false,
|
|
1892
|
-
{
|
|
1893
|
-
fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
|
|
1894
|
-
lineNumber: 240,
|
|
1895
|
-
columnNumber: 9
|
|
1896
|
-
},
|
|
1897
|
-
this
|
|
1700
|
+
}
|
|
1898
1701
|
)
|
|
1899
1702
|
]
|
|
1900
|
-
}
|
|
1901
|
-
|
|
1902
|
-
true,
|
|
1903
|
-
{
|
|
1904
|
-
fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
|
|
1905
|
-
lineNumber: 66,
|
|
1906
|
-
columnNumber: 7
|
|
1907
|
-
},
|
|
1908
|
-
this
|
|
1909
|
-
) }, void 0, false, {
|
|
1910
|
-
fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
|
|
1911
|
-
lineNumber: 65,
|
|
1912
|
-
columnNumber: 5
|
|
1913
|
-
}, this);
|
|
1703
|
+
}
|
|
1704
|
+
) });
|
|
1914
1705
|
}
|
|
1915
1706
|
function ArrowIcon({ color, className }) {
|
|
1916
|
-
return /* @__PURE__ */
|
|
1917
|
-
fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
|
|
1918
|
-
lineNumber: 293,
|
|
1919
|
-
columnNumber: 11
|
|
1920
|
-
}, this) }, void 0, false, {
|
|
1921
|
-
fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
|
|
1922
|
-
lineNumber: 292,
|
|
1923
|
-
columnNumber: 7
|
|
1924
|
-
}, this) }, void 0, false, {
|
|
1925
|
-
fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
|
|
1926
|
-
lineNumber: 291,
|
|
1927
|
-
columnNumber: 5
|
|
1928
|
-
}, this);
|
|
1707
|
+
return /* @__PURE__ */ jsx("svg", { viewBox: "0 0 10 18", className, children: /* @__PURE__ */ jsx("g", { id: "Symbols", stroke: "none", strokeWidth: "1", fillRule: "evenodd", children: /* @__PURE__ */ jsx("path", { d: "M-3.70710678,4.29289322 C-3.34662282,3.93240926 -2.77939176,3.90467972 -2.38710056,4.20970461 L-2.29289322,4.29289322 L5,11.585 L12.2928932,4.29289322 C12.6533772,3.93240926 13.2206082,3.90467972 13.6128994,4.20970461 L13.7071068,4.29289322 C14.0675907,4.65337718 14.0953203,5.22060824 13.7902954,5.61289944 L13.7071068,5.70710678 L5.70710678,13.7071068 C5.34662282,14.0675907 4.77939176,14.0953203 4.38710056,13.7902954 L4.29289322,13.7071068 L-3.70710678,5.70710678 C-4.09763107,5.31658249 -4.09763107,4.68341751 -3.70710678,4.29289322 Z", id: "Shape-Copy", fill: color, transform: "translate(5, 9) rotate(-90) translate(-5, -9)" }) }) });
|
|
1929
1708
|
}
|
|
1930
1709
|
const ControlSliderComponent = {
|
|
1931
1710
|
element: ControlSlider,
|
|
@@ -2615,7 +2394,7 @@ function ImageRevealSlider({ settings, content, isEditor }) {
|
|
|
2615
2394
|
const isHover = target === "area" || isMouseOverImage(mouseX, mouseY, placedImages);
|
|
2616
2395
|
divRef.current.style.cursor = isHover ? `url(${hoverCursor}), auto` : `url(${defaultCursor}), auto`;
|
|
2617
2396
|
};
|
|
2618
|
-
return /* @__PURE__ */
|
|
2397
|
+
return /* @__PURE__ */ jsx(
|
|
2619
2398
|
"div",
|
|
2620
2399
|
{
|
|
2621
2400
|
ref: divRef,
|
|
@@ -2623,7 +2402,7 @@ function ImageRevealSlider({ settings, content, isEditor }) {
|
|
|
2623
2402
|
onMouseEnter: handleMouseMove,
|
|
2624
2403
|
onMouseMove: handleMouseMove,
|
|
2625
2404
|
className: styles.imageRevealSlider,
|
|
2626
|
-
children: placedImages.map((img2) => /* @__PURE__ */
|
|
2405
|
+
children: placedImages.map((img2) => /* @__PURE__ */ jsx(
|
|
2627
2406
|
"div",
|
|
2628
2407
|
{
|
|
2629
2408
|
className: styles.wrapper,
|
|
@@ -2635,60 +2414,26 @@ function ImageRevealSlider({ settings, content, isEditor }) {
|
|
|
2635
2414
|
width: img2.width ?? "auto",
|
|
2636
2415
|
height: "auto"
|
|
2637
2416
|
},
|
|
2638
|
-
children: target === "area" && img2.link ? /* @__PURE__ */
|
|
2417
|
+
children: target === "area" && img2.link ? /* @__PURE__ */ jsx("a", { href: img2.link, target: "_blank", className: styles.link, children: /* @__PURE__ */ jsx(
|
|
2639
2418
|
"img",
|
|
2640
2419
|
{
|
|
2641
2420
|
src: img2.url,
|
|
2642
2421
|
alt: img2.name,
|
|
2643
2422
|
className: styles.image
|
|
2644
2423
|
},
|
|
2645
|
-
img2.id
|
|
2646
|
-
|
|
2647
|
-
{
|
|
2648
|
-
fileName: "H:/mom/sdk/src/Components/ImageRevealSlider/ImageRevealSlider.tsx",
|
|
2649
|
-
lineNumber: 257,
|
|
2650
|
-
columnNumber: 15
|
|
2651
|
-
},
|
|
2652
|
-
this
|
|
2653
|
-
) }, void 0, false, {
|
|
2654
|
-
fileName: "H:/mom/sdk/src/Components/ImageRevealSlider/ImageRevealSlider.tsx",
|
|
2655
|
-
lineNumber: 256,
|
|
2656
|
-
columnNumber: 13
|
|
2657
|
-
}, this) : /* @__PURE__ */ jsxDEV(
|
|
2424
|
+
img2.id
|
|
2425
|
+
) }) : /* @__PURE__ */ jsx(
|
|
2658
2426
|
"img",
|
|
2659
2427
|
{
|
|
2660
2428
|
src: img2.url,
|
|
2661
2429
|
alt: img2.name,
|
|
2662
2430
|
className: styles.image
|
|
2663
2431
|
},
|
|
2664
|
-
img2.id
|
|
2665
|
-
false,
|
|
2666
|
-
{
|
|
2667
|
-
fileName: "H:/mom/sdk/src/Components/ImageRevealSlider/ImageRevealSlider.tsx",
|
|
2668
|
-
lineNumber: 265,
|
|
2669
|
-
columnNumber: 13
|
|
2670
|
-
},
|
|
2671
|
-
this
|
|
2432
|
+
img2.id
|
|
2672
2433
|
)
|
|
2673
|
-
}
|
|
2674
|
-
void 0,
|
|
2675
|
-
false,
|
|
2676
|
-
{
|
|
2677
|
-
fileName: "H:/mom/sdk/src/Components/ImageRevealSlider/ImageRevealSlider.tsx",
|
|
2678
|
-
lineNumber: 245,
|
|
2679
|
-
columnNumber: 9
|
|
2680
|
-
},
|
|
2681
|
-
this
|
|
2434
|
+
}
|
|
2682
2435
|
))
|
|
2683
|
-
}
|
|
2684
|
-
void 0,
|
|
2685
|
-
false,
|
|
2686
|
-
{
|
|
2687
|
-
fileName: "H:/mom/sdk/src/Components/ImageRevealSlider/ImageRevealSlider.tsx",
|
|
2688
|
-
lineNumber: 237,
|
|
2689
|
-
columnNumber: 5
|
|
2690
|
-
},
|
|
2691
|
-
this
|
|
2436
|
+
}
|
|
2692
2437
|
);
|
|
2693
2438
|
}
|
|
2694
2439
|
const ControlImageRevealSliderComponent = {
|