@cntrl-site/components 0.1.10-alpha.3 → 0.1.13

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/index.js CHANGED
@@ -5,17 +5,17 @@ const React = require("react");
5
5
  const reactSplide = require("@splidejs/react-splide");
6
6
  const cn = require("classnames");
7
7
  const reactDom = require("react-dom");
8
- const wrapper$1 = "ControlSlider-module__wrapper___sHEkd";
8
+ const wrapper = "ControlSlider-module__wrapper___sHEkd";
9
9
  const hoverArrow = "ControlSlider-module__hoverArrow___A-dOH";
10
10
  const sliderItem = "ControlSlider-module__sliderItem___QQSkR";
11
11
  const sliderImage = "ControlSlider-module__sliderImage___9hRl-";
12
- const arrow$2 = "ControlSlider-module__arrow___05ghY";
12
+ const arrow$1 = "ControlSlider-module__arrow___05ghY";
13
13
  const arrowVertical$1 = "ControlSlider-module__arrowVertical___tBfVN";
14
- const nextArrow$2 = "ControlSlider-module__nextArrow___-30Yc";
15
- const arrowInner$2 = "ControlSlider-module__arrowInner___aEra3";
16
- const arrowIcon$1 = "ControlSlider-module__arrowIcon___S4ztF";
17
- const arrowImg$2 = "ControlSlider-module__arrowImg___2dwJW";
18
- const mirror$2 = "ControlSlider-module__mirror___brd6U";
14
+ const nextArrow$1 = "ControlSlider-module__nextArrow___-30Yc";
15
+ const arrowInner$1 = "ControlSlider-module__arrowInner___aEra3";
16
+ const arrowIcon = "ControlSlider-module__arrowIcon___S4ztF";
17
+ const arrowImg$1 = "ControlSlider-module__arrowImg___2dwJW";
18
+ const mirror$1 = "ControlSlider-module__mirror___brd6U";
19
19
  const pagination = "ControlSlider-module__pagination___bicLF";
20
20
  const paginationInner = "ControlSlider-module__paginationInner___bT-P-";
21
21
  const paginationVertical = "ControlSlider-module__paginationVertical___zYqKw";
@@ -47,19 +47,19 @@ const bottomCenterAlignment = "ControlSlider-module__bottomCenterAlignment___c54
47
47
  const bottomRightAlignment = "ControlSlider-module__bottomRightAlignment___kEwrz";
48
48
  const clickOverlay = "ControlSlider-module__clickOverlay___DZA28";
49
49
  const contain$1 = "ControlSlider-module__contain___pLyq7";
50
- const cover$2 = "ControlSlider-module__cover___KdDat";
50
+ const cover$1 = "ControlSlider-module__cover___KdDat";
51
51
  const styles$3 = {
52
- wrapper: wrapper$1,
52
+ wrapper,
53
53
  hoverArrow,
54
54
  sliderItem,
55
55
  sliderImage,
56
- arrow: arrow$2,
56
+ arrow: arrow$1,
57
57
  arrowVertical: arrowVertical$1,
58
- nextArrow: nextArrow$2,
59
- arrowInner: arrowInner$2,
60
- arrowIcon: arrowIcon$1,
61
- arrowImg: arrowImg$2,
62
- mirror: mirror$2,
58
+ nextArrow: nextArrow$1,
59
+ arrowInner: arrowInner$1,
60
+ arrowIcon,
61
+ arrowImg: arrowImg$1,
62
+ mirror: mirror$1,
63
63
  pagination,
64
64
  paginationInner,
65
65
  paginationVertical,
@@ -91,7 +91,7 @@ const styles$3 = {
91
91
  bottomRightAlignment,
92
92
  clickOverlay,
93
93
  contain: contain$1,
94
- cover: cover$2
94
+ cover: cover$1
95
95
  };
96
96
  const link$1 = "RichTextRenderer-module__link___BWeZ2";
97
97
  const styles$2 = {
@@ -171,12 +171,12 @@ const alignmentClassName = {
171
171
  };
172
172
  function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
173
173
  const [sliderRef, setSliderRef] = React.useState(null);
174
- const { widthSettings, fontSettings, letterSpacing, textAlign, wordSpacing, fontSizeLineHeight, textAppearance, color } = sliderStyles.caption;
174
+ const { widthSettings, fontSettings, letterSpacing, textAlign, wordSpacing, fontSizeLineHeight, textAppearance, color } = sliderStyles.imageCaption;
175
175
  const [sliderDimensions, setSliderDimensions] = React.useState(void 0);
176
176
  const [wrapperRef, setWrapperRef] = React.useState(null);
177
177
  const [currentSlideIndex, setCurrentSlideIndex] = React.useState(0);
178
178
  const [key, setKey] = React.useState(0);
179
- const { direction, transition, controls, pagination: pagination2, caption: caption2, triggers } = settings;
179
+ const { direction, transition, controls, pagination: pagination2, imageCaption, triggers } = settings;
180
180
  const prevSliderTypeRef = React.useRef(transition.type);
181
181
  const { x: controlsOffsetX, y: controlsOffsetY } = settings.controls.offset;
182
182
  const handleArrowClick = (dir) => {
@@ -212,7 +212,7 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
212
212
  backgroundColor: transition.backgroundColor && transition.type === "fade in" ? transition.backgroundColor : "transparent"
213
213
  },
214
214
  children: [
215
- settings.caption.isActive && /* @__PURE__ */ jsxRuntime.jsx(
215
+ settings.imageCaption.isActive && /* @__PURE__ */ jsxRuntime.jsx(
216
216
  "div",
217
217
  {
218
218
  className: cn(styles$3.captionBlock),
@@ -223,7 +223,7 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
223
223
  children: content.map((item, index) => /* @__PURE__ */ jsxRuntime.jsx(
224
224
  "div",
225
225
  {
226
- className: cn(styles$3.captionText, alignmentClassName[caption2.alignment], {
226
+ className: cn(styles$3.captionText, alignmentClassName[imageCaption.alignment], {
227
227
  [styles$3.withPointerEvents]: index === currentSlideIndex && isEditor,
228
228
  [styles$3.active]: index === currentSlideIndex
229
229
  }),
@@ -246,13 +246,13 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
246
246
  children: /* @__PURE__ */ jsxRuntime.jsx(
247
247
  "div",
248
248
  {
249
- "data-styles": "caption",
249
+ "data-styles": "imageCaption",
250
250
  className: styles$3.captionTextInner,
251
251
  style: {
252
- "--link-hover-color": caption2.hover,
252
+ "--link-hover-color": imageCaption.hover,
253
253
  position: "relative",
254
- top: scalingValue(caption2.offset.y, isEditor),
255
- left: scalingValue(caption2.offset.x, isEditor)
254
+ top: scalingValue(imageCaption.offset.y, isEditor),
255
+ left: scalingValue(imageCaption.offset.x, isEditor)
256
256
  },
257
257
  children: /* @__PURE__ */ jsxRuntime.jsx(RichTextRenderer, { content: item.imageCaption })
258
258
  }
@@ -345,7 +345,7 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
345
345
  className: cn(styles$3.arrowImg, styles$3.mirror)
346
346
  }
347
347
  ),
348
- !controls.arrowsImgUrl && /* @__PURE__ */ jsxRuntime.jsx(ArrowIcon$1, { color: controls.color, className: cn(styles$3.arrowIcon, styles$3.arrowImg, styles$3.mirror) })
348
+ !controls.arrowsImgUrl && /* @__PURE__ */ jsxRuntime.jsx(ArrowIcon, { color: controls.color, className: cn(styles$3.arrowIcon, styles$3.arrowImg, styles$3.mirror) })
349
349
  ]
350
350
  }
351
351
  )
@@ -380,7 +380,7 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
380
380
  className: styles$3.arrowImg
381
381
  }
382
382
  ),
383
- !controls.arrowsImgUrl && /* @__PURE__ */ jsxRuntime.jsx(ArrowIcon$1, { color: controls.color, className: cn(styles$3.arrowIcon, styles$3.arrowImg) })
383
+ !controls.arrowsImgUrl && /* @__PURE__ */ jsxRuntime.jsx(ArrowIcon, { color: controls.color, className: cn(styles$3.arrowIcon, styles$3.arrowImg) })
384
384
  ]
385
385
  }
386
386
  )
@@ -452,7 +452,7 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
452
452
  }
453
453
  ) });
454
454
  }
455
- function ArrowIcon$1({ color, className }) {
455
+ function ArrowIcon({ color, className }) {
456
456
  return /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 10 18", className, children: /* @__PURE__ */ jsxRuntime.jsx("g", { id: "Symbols", stroke: "none", strokeWidth: "1", fillRule: "evenodd", children: /* @__PURE__ */ jsxRuntime.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)" }) }) });
457
457
  }
458
458
  const ControlSliderComponent = {
@@ -705,7 +705,7 @@ const ControlSliderComponent = {
705
705
  }
706
706
  }
707
707
  },
708
- caption: {
708
+ imageCaption: {
709
709
  title: "Caption",
710
710
  icon: "text-icon",
711
711
  tooltip: "Caption",
@@ -799,7 +799,7 @@ const ControlSliderComponent = {
799
799
  hover: "#cccccc"
800
800
  },
801
801
  direction: "horiz",
802
- caption: {
802
+ imageCaption: {
803
803
  offset: {
804
804
  x: 0,
805
805
  y: 0
@@ -922,7 +922,7 @@ const ControlSliderComponent = {
922
922
  layoutBased: true,
923
923
  type: "object",
924
924
  properties: {
925
- caption: {
925
+ imageCaption: {
926
926
  dataName: "caption",
927
927
  type: "object",
928
928
  properties: {
@@ -1020,7 +1020,7 @@ const ControlSliderComponent = {
1020
1020
  }
1021
1021
  },
1022
1022
  default: {
1023
- caption: {
1023
+ imageCaption: {
1024
1024
  widthSettings: {
1025
1025
  width: 0.13,
1026
1026
  sizing: "auto"
@@ -1051,12 +1051,12 @@ const ControlSliderComponent = {
1051
1051
  }
1052
1052
  };
1053
1053
  const imageRevealSlider = "ImageRevealSlider-module__imageRevealSlider___UE5Ob";
1054
- const image$1 = "ImageRevealSlider-module__image___Qjt-e";
1054
+ const image = "ImageRevealSlider-module__image___Qjt-e";
1055
1055
  const link = "ImageRevealSlider-module__link___N-iLG";
1056
1056
  const cursor = "ImageRevealSlider-module__cursor___2U03d";
1057
1057
  const styles = {
1058
1058
  imageRevealSlider,
1059
- image: image$1,
1059
+ image,
1060
1060
  link,
1061
1061
  cursor
1062
1062
  };
@@ -1624,16 +1624,16 @@ const contentStyle = "LightBox-module__contentStyle___Bgnsq";
1624
1624
  const imageStyle = "LightBox-module__imageStyle___tLIlB";
1625
1625
  const imgWrapper = "LightBox-module__imgWrapper___LuFUp";
1626
1626
  const contain = "LightBox-module__contain___8-yaS";
1627
- const cover$1 = "LightBox-module__cover___hNvOG";
1628
- const caption$1 = "LightBox-module__caption___b6L2I";
1627
+ const cover = "LightBox-module__cover___hNvOG";
1628
+ const caption = "LightBox-module__caption___b6L2I";
1629
1629
  const captionTextInner = "LightBox-module__captionTextInner___rCGNH";
1630
1630
  const lightboxSplide = "LightBox-module__lightboxSplide___XFuWC";
1631
- const arrow$1 = "LightBox-module__arrow___iz38X";
1631
+ const arrow = "LightBox-module__arrow___iz38X";
1632
1632
  const arrowVertical = "LightBox-module__arrowVertical___Zfz81";
1633
- const nextArrow$1 = "LightBox-module__nextArrow___zkAQN";
1634
- const arrowInner$1 = "LightBox-module__arrowInner___p48sW";
1635
- const arrowImg$1 = "LightBox-module__arrowImg___pNV88";
1636
- const mirror$1 = "LightBox-module__mirror___pjeXc";
1633
+ const nextArrow = "LightBox-module__nextArrow___zkAQN";
1634
+ const arrowInner = "LightBox-module__arrowInner___p48sW";
1635
+ const arrowImg = "LightBox-module__arrowImg___pNV88";
1636
+ const mirror = "LightBox-module__mirror___pjeXc";
1637
1637
  const thumbsContainerVertical = "LightBox-module__thumbsContainerVertical___wttk5";
1638
1638
  const thumbsContainer = "LightBox-module__thumbsContainer___osSma";
1639
1639
  const thumbsAlignStart = "LightBox-module__thumbsAlignStart___MO6tY";
@@ -1652,7 +1652,7 @@ const slideOutRight = "LightBox-module__slideOutRight___SK7eC";
1652
1652
  const slideOutTop = "LightBox-module__slideOutTop___Vgg0z";
1653
1653
  const slideOutBottom = "LightBox-module__slideOutBottom___nJ0Ef";
1654
1654
  const scaleSlide = "LightBox-module__scaleSlide___vZriG";
1655
- const classes$1 = {
1655
+ const classes = {
1656
1656
  heroImage,
1657
1657
  background,
1658
1658
  editor,
@@ -1660,16 +1660,16 @@ const classes$1 = {
1660
1660
  imageStyle,
1661
1661
  imgWrapper,
1662
1662
  contain,
1663
- cover: cover$1,
1664
- caption: caption$1,
1663
+ cover,
1664
+ caption,
1665
1665
  captionTextInner,
1666
1666
  lightboxSplide,
1667
- arrow: arrow$1,
1667
+ arrow,
1668
1668
  arrowVertical,
1669
- nextArrow: nextArrow$1,
1670
- arrowInner: arrowInner$1,
1671
- arrowImg: arrowImg$1,
1672
- mirror: mirror$1,
1669
+ nextArrow,
1670
+ arrowInner,
1671
+ arrowImg,
1672
+ mirror,
1673
1673
  thumbsContainerVertical,
1674
1674
  thumbsContainer,
1675
1675
  thumbsAlignStart,
@@ -1724,9 +1724,9 @@ const getPositionStyles = (position, offset, isEditor) => {
1724
1724
  return styles2;
1725
1725
  };
1726
1726
  function getDisplayedImageRect(img2) {
1727
- const container2 = img2.getBoundingClientRect();
1728
- const containerW = container2.width;
1729
- const containerH = container2.height;
1727
+ const container = img2.getBoundingClientRect();
1728
+ const containerW = container.width;
1729
+ const containerH = container.height;
1730
1730
  const imgW = img2.naturalWidth;
1731
1731
  const imgH = img2.naturalHeight;
1732
1732
  const containerRatio = containerW / containerH;
@@ -1739,8 +1739,8 @@ function getDisplayedImageRect(img2) {
1739
1739
  renderedH = containerH;
1740
1740
  renderedW = containerH * imgRatio;
1741
1741
  }
1742
- const offsetX = (containerW - renderedW) / 2 + container2.left;
1743
- const offsetY = (containerH - renderedH) / 2 + container2.top;
1742
+ const offsetX = (containerW - renderedW) / 2 + container.left;
1743
+ const offsetY = (containerH - renderedH) / 2 + container.top;
1744
1744
  return {
1745
1745
  x: offsetX,
1746
1746
  y: offsetY,
@@ -1769,76 +1769,76 @@ function getColorAlpha(color) {
1769
1769
  }
1770
1770
  function getAnimationClasses(type, direction) {
1771
1771
  const appearClass = (() => {
1772
- if (type === "fade in") return classes$1.fadeIn;
1772
+ if (type === "fade in") return classes.fadeIn;
1773
1773
  if (type === "slide in" || type === "mix") {
1774
1774
  switch (direction) {
1775
1775
  case "left":
1776
- return classes$1.slideInLeft;
1776
+ return classes.slideInLeft;
1777
1777
  case "right":
1778
- return classes$1.slideInRight;
1778
+ return classes.slideInRight;
1779
1779
  case "top":
1780
- return classes$1.slideInTop;
1780
+ return classes.slideInTop;
1781
1781
  case "bottom":
1782
- return classes$1.slideInBottom;
1782
+ return classes.slideInBottom;
1783
1783
  default:
1784
- return classes$1.slideInRight;
1784
+ return classes.slideInRight;
1785
1785
  }
1786
1786
  }
1787
- return classes$1.fadeIn;
1787
+ return classes.fadeIn;
1788
1788
  })();
1789
1789
  const backdropAppearClass = (() => {
1790
- if (type === "fade in" || type === "mix") return classes$1.fadeIn;
1790
+ if (type === "fade in" || type === "mix") return classes.fadeIn;
1791
1791
  if (type === "slide in") {
1792
1792
  switch (direction) {
1793
1793
  case "left":
1794
- return classes$1.slideInLeft;
1794
+ return classes.slideInLeft;
1795
1795
  case "right":
1796
- return classes$1.slideInRight;
1796
+ return classes.slideInRight;
1797
1797
  case "top":
1798
- return classes$1.slideInTop;
1798
+ return classes.slideInTop;
1799
1799
  case "bottom":
1800
- return classes$1.slideInBottom;
1800
+ return classes.slideInBottom;
1801
1801
  default:
1802
- return classes$1.slideInRight;
1802
+ return classes.slideInRight;
1803
1803
  }
1804
1804
  }
1805
- return classes$1.fadeIn;
1805
+ return classes.fadeIn;
1806
1806
  })();
1807
1807
  const backdropDisappearClass = (() => {
1808
- if (type === "fade in" || type === "mix") return classes$1.fadeOut;
1808
+ if (type === "fade in" || type === "mix") return classes.fadeOut;
1809
1809
  if (type === "slide in") {
1810
1810
  switch (direction) {
1811
1811
  case "left":
1812
- return classes$1.slideOutLeft;
1812
+ return classes.slideOutLeft;
1813
1813
  case "right":
1814
- return classes$1.slideOutRight;
1814
+ return classes.slideOutRight;
1815
1815
  case "top":
1816
- return classes$1.slideOutTop;
1816
+ return classes.slideOutTop;
1817
1817
  case "bottom":
1818
- return classes$1.slideOutBottom;
1818
+ return classes.slideOutBottom;
1819
1819
  default:
1820
- return classes$1.slideOutRight;
1820
+ return classes.slideOutRight;
1821
1821
  }
1822
1822
  }
1823
- return classes$1.fadeOut;
1823
+ return classes.fadeOut;
1824
1824
  })();
1825
1825
  const disappearClass = (() => {
1826
- if (type === "fade in") return classes$1.fadeOut;
1826
+ if (type === "fade in") return classes.fadeOut;
1827
1827
  if (type === "slide in" || type === "mix") {
1828
1828
  switch (direction) {
1829
1829
  case "left":
1830
- return classes$1.slideOutLeft;
1830
+ return classes.slideOutLeft;
1831
1831
  case "right":
1832
- return classes$1.slideOutRight;
1832
+ return classes.slideOutRight;
1833
1833
  case "top":
1834
- return classes$1.slideOutTop;
1834
+ return classes.slideOutTop;
1835
1835
  case "bottom":
1836
- return classes$1.slideOutBottom;
1836
+ return classes.slideOutBottom;
1837
1837
  default:
1838
- return classes$1.slideOutRight;
1838
+ return classes.slideOutRight;
1839
1839
  }
1840
1840
  }
1841
- return classes$1.fadeOut;
1841
+ return classes.fadeOut;
1842
1842
  })();
1843
1843
  return { appearClass, backdropAppearClass, backdropDisappearClass, disappearClass };
1844
1844
  }
@@ -1859,7 +1859,7 @@ const LightboxGallery = ({ settings, content, styles: styles2, portalId, activeE
1859
1859
  {
1860
1860
  src: url,
1861
1861
  alt: "Cover",
1862
- className: classes$1.heroImage,
1862
+ className: classes.heroImage,
1863
1863
  onClick: () => setOpen(true)
1864
1864
  }
1865
1865
  ),
@@ -1890,8 +1890,8 @@ const Lightbox = ({ isOpen, onClose, content, lightboxStyles, settings, portalId
1890
1890
  const animationTargetRef = React.useRef(null);
1891
1891
  const animationEndHandlerRef = React.useRef(null);
1892
1892
  const appearAnimationEndHandlerRef = React.useRef(null);
1893
- const { appear, triggers, slider, thumbnail, controls, area, caption: caption2, layout } = settings.lightboxBlock;
1894
- const { widthSettings, fontSettings, letterSpacing, textAlign, wordSpacing, fontSizeLineHeight, textAppearance, color } = lightboxStyles.caption;
1893
+ const { appear, triggers, slider, thumbnail, controls, area, imageCaption, layout } = settings.lightboxBlock;
1894
+ const { widthSettings, fontSettings, letterSpacing, textAlign, wordSpacing, fontSizeLineHeight, textAppearance, color } = lightboxStyles.imageCaption;
1895
1895
  const { appearClass, backdropAppearClass, backdropDisappearClass, disappearClass } = getAnimationClasses(appear.type, appear.direction);
1896
1896
  React.useEffect(() => {
1897
1897
  const handleLayoutChange = () => {
@@ -2081,7 +2081,7 @@ const Lightbox = ({ isOpen, onClose, content, lightboxStyles, settings, portalId
2081
2081
  return;
2082
2082
  }
2083
2083
  const target = e.target;
2084
- if (target && (target.closest(`.${classes$1.thumbsContainer}`) || target.closest(`.${classes$1.thumbItem}`))) {
2084
+ if (target && (target.closest(`.${classes.thumbsContainer}`) || target.closest(`.${classes.thumbItem}`))) {
2085
2085
  return;
2086
2086
  }
2087
2087
  if (e.touches.length === 0 && e.changedTouches.length > 0) {
@@ -2129,7 +2129,7 @@ const Lightbox = ({ isOpen, onClose, content, lightboxStyles, settings, portalId
2129
2129
  "div",
2130
2130
  {
2131
2131
  ref: !isEditor ? animationTargetRef : null,
2132
- className: cn(classes$1.background, isClosing ? backdropDisappearClass : backdropAppearClass, { [classes$1.editor]: isEditor }),
2132
+ className: cn(classes.background, isClosing ? backdropDisappearClass : backdropAppearClass, { [classes.editor]: isEditor }),
2133
2133
  style: {
2134
2134
  ...backdropStyles,
2135
2135
  ...animationFinished && !isEditor && !isClosing ? { position: "absolute" } : {}
@@ -2140,7 +2140,7 @@ const Lightbox = ({ isOpen, onClose, content, lightboxStyles, settings, portalId
2140
2140
  "div",
2141
2141
  {
2142
2142
  ref: isEditor ? animationTargetRef : null,
2143
- className: cn(classes$1.contentStyle, !isClosing ? appearClass : disappearClass, { [classes$1.editor]: isEditor }),
2143
+ className: cn(classes.contentStyle, !isClosing ? appearClass : disappearClass, { [classes.editor]: isEditor }),
2144
2144
  style: {
2145
2145
  animationDuration: `${parseInt(appear.duration)}ms`,
2146
2146
  animationTimingFunction: "ease",
@@ -2152,7 +2152,7 @@ const Lightbox = ({ isOpen, onClose, content, lightboxStyles, settings, portalId
2152
2152
  {
2153
2153
  onMove: (splide) => setCurrentIndex(splide.index),
2154
2154
  ref: lightboxRef,
2155
- className: classes$1.lightboxSplide,
2155
+ className: classes.lightboxSplide,
2156
2156
  options: {
2157
2157
  arrows: false,
2158
2158
  speed: slider.duration ? parseInt(slider.duration) : 500,
@@ -2180,14 +2180,14 @@ const Lightbox = ({ isOpen, onClose, content, lightboxStyles, settings, portalId
2180
2180
  "--position-transform": transform || "none"
2181
2181
  };
2182
2182
  })() : { ...positionStyles, position: "absolute", padding, boxSizing: "border-box" };
2183
- return /* @__PURE__ */ jsxRuntime.jsx(reactSplide.SplideSlide, { children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: classes$1.imgWrapper, onClick: handleImageWrapperClick, children: /* @__PURE__ */ jsxRuntime.jsx(
2183
+ return /* @__PURE__ */ jsxRuntime.jsx(reactSplide.SplideSlide, { children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: classes.imgWrapper, onClick: handleImageWrapperClick, children: /* @__PURE__ */ jsxRuntime.jsx(
2184
2184
  "img",
2185
2185
  {
2186
2186
  ref: index === currentIndex ? imageRef : null,
2187
- className: cn(classes$1.imageStyle, {
2188
- [classes$1.contain]: item.image.objectFit === "contain",
2189
- [classes$1.cover]: item.image.objectFit === "cover",
2190
- [classes$1.scaleSlide]: slider.type === "scale"
2187
+ className: cn(classes.imageStyle, {
2188
+ [classes.contain]: item.image.objectFit === "contain",
2189
+ [classes.cover]: item.image.objectFit === "cover",
2190
+ [classes.scaleSlide]: slider.type === "scale"
2191
2191
  }),
2192
2192
  onClick: item.image.objectFit !== "contain" ? onImageClick : void 0,
2193
2193
  src: item.image.url,
@@ -2203,12 +2203,12 @@ const Lightbox = ({ isOpen, onClose, content, lightboxStyles, settings, portalId
2203
2203
  /* @__PURE__ */ jsxRuntime.jsx(
2204
2204
  "div",
2205
2205
  {
2206
- className: cn(classes$1.arrow, { [classes$1.arrowVertical]: slider.direction === "vert" }),
2206
+ className: cn(classes.arrow, { [classes.arrowVertical]: slider.direction === "vert" }),
2207
2207
  style: { color: controls.color, ["--arrow-hover-color"]: controls.hover },
2208
2208
  children: /* @__PURE__ */ jsxRuntime.jsx(
2209
2209
  "button",
2210
2210
  {
2211
- className: classes$1.arrowInner,
2211
+ className: classes.arrowInner,
2212
2212
  style: { transform: `translate(${scalingValue(controls.offset.x, isEditor)}, ${scalingValue(controls.offset.y * (slider.direction === "horiz" ? 1 : -1), isEditor)}) scale(${controls.scale}) rotate(${slider.direction === "horiz" ? "0deg" : "90deg"})` },
2213
2213
  onClick: () => {
2214
2214
  var _a;
@@ -2221,7 +2221,7 @@ const Lightbox = ({ isOpen, onClose, content, lightboxStyles, settings, portalId
2221
2221
  url: controls.arrowsImgUrl,
2222
2222
  fill: controls.color,
2223
2223
  hoverFill: controls.hover,
2224
- className: cn(classes$1.arrowImg, classes$1.mirror)
2224
+ className: cn(classes.arrowImg, classes.mirror)
2225
2225
  }
2226
2226
  )
2227
2227
  }
@@ -2231,12 +2231,12 @@ const Lightbox = ({ isOpen, onClose, content, lightboxStyles, settings, portalId
2231
2231
  /* @__PURE__ */ jsxRuntime.jsx(
2232
2232
  "div",
2233
2233
  {
2234
- className: cn(classes$1.arrow, classes$1.nextArrow, { [classes$1.arrowVertical]: slider.direction === "vert" }),
2234
+ className: cn(classes.arrow, classes.nextArrow, { [classes.arrowVertical]: slider.direction === "vert" }),
2235
2235
  style: { color: controls.color, ["--arrow-hover-color"]: controls.hover },
2236
2236
  children: /* @__PURE__ */ jsxRuntime.jsx(
2237
2237
  "button",
2238
2238
  {
2239
- className: classes$1.arrowInner,
2239
+ className: classes.arrowInner,
2240
2240
  style: { transform: `translate(${scalingValue(controls.offset.x * (slider.direction === "horiz" ? -1 : 1), isEditor)}, ${scalingValue(controls.offset.y, isEditor)}) scale(${controls.scale}) rotate(${slider.direction === "horiz" ? "0deg" : "90deg"})` },
2241
2241
  onClick: () => {
2242
2242
  var _a;
@@ -2249,7 +2249,7 @@ const Lightbox = ({ isOpen, onClose, content, lightboxStyles, settings, portalId
2249
2249
  url: controls.arrowsImgUrl,
2250
2250
  fill: controls.color,
2251
2251
  hoverFill: controls.hover,
2252
- className: classes$1.arrowImg
2252
+ className: classes.arrowImg
2253
2253
  }
2254
2254
  )
2255
2255
  }
@@ -2261,14 +2261,14 @@ const Lightbox = ({ isOpen, onClose, content, lightboxStyles, settings, portalId
2261
2261
  const positionStyles = getPositionStyles(area.closeIconAlign, area.closeIconOffset, isEditor);
2262
2262
  const scaleTransform = `scale(${area.closeIconScale})`;
2263
2263
  const combinedTransform = positionStyles.transform ? `${positionStyles.transform} ${scaleTransform}` : scaleTransform;
2264
- return /* @__PURE__ */ jsxRuntime.jsx("button", { className: classes$1.closeButton, style: { ...positionStyles, transform: combinedTransform }, onClick: handleClose, "aria-label": "Close lightbox", children: /* @__PURE__ */ jsxRuntime.jsx(SvgImage, { url: area.closeIconUrl }) });
2264
+ return /* @__PURE__ */ jsxRuntime.jsx("button", { className: classes.closeButton, style: { ...positionStyles, transform: combinedTransform }, onClick: handleClose, "aria-label": "Close lightbox", children: /* @__PURE__ */ jsxRuntime.jsx(SvgImage, { url: area.closeIconUrl }) });
2265
2265
  })(),
2266
- caption2.isActive && /* @__PURE__ */ jsxRuntime.jsx(
2266
+ imageCaption.isActive && /* @__PURE__ */ jsxRuntime.jsx(
2267
2267
  "div",
2268
2268
  {
2269
- className: classes$1.caption,
2269
+ className: classes.caption,
2270
2270
  style: {
2271
- ...getPositionStyles(caption2.alignment, caption2.offset, isEditor),
2271
+ ...getPositionStyles(imageCaption.alignment, imageCaption.offset, isEditor),
2272
2272
  fontFamily: fontSettings.fontFamily,
2273
2273
  fontWeight: fontSettings.fontWeight,
2274
2274
  fontStyle: fontSettings.fontStyle,
@@ -2287,9 +2287,9 @@ const Lightbox = ({ isOpen, onClose, content, lightboxStyles, settings, portalId
2287
2287
  children: /* @__PURE__ */ jsxRuntime.jsx(
2288
2288
  "div",
2289
2289
  {
2290
- "data-styles": "caption",
2291
- className: classes$1.captionTextInner,
2292
- style: { ["--link-hover-color"]: caption2.hover },
2290
+ "data-styles": "imageCaption",
2291
+ className: classes.captionTextInner,
2292
+ style: { ["--link-hover-color"]: imageCaption.hover },
2293
2293
  children: /* @__PURE__ */ jsxRuntime.jsx(RichTextRenderer, { content: content[currentIndex].imageCaption })
2294
2294
  }
2295
2295
  )
@@ -2298,11 +2298,11 @@ const Lightbox = ({ isOpen, onClose, content, lightboxStyles, settings, portalId
2298
2298
  thumbnail.isActive && /* @__PURE__ */ jsxRuntime.jsx(
2299
2299
  "div",
2300
2300
  {
2301
- className: cn(classes$1.thumbsContainer, {
2302
- [classes$1.thumbsContainerVertical]: slider.direction === "vert",
2303
- [classes$1.thumbsAlignStart]: thumbnail.align === "start",
2304
- [classes$1.thumbsAlignCenter]: thumbnail.align === "center",
2305
- [classes$1.thumbsAlignEnd]: thumbnail.align === "end"
2301
+ className: cn(classes.thumbsContainer, {
2302
+ [classes.thumbsContainerVertical]: slider.direction === "vert",
2303
+ [classes.thumbsAlignStart]: thumbnail.align === "start",
2304
+ [classes.thumbsAlignCenter]: thumbnail.align === "center",
2305
+ [classes.thumbsAlignEnd]: thumbnail.align === "end"
2306
2306
  }),
2307
2307
  style: {
2308
2308
  position: isEditor ? "absolute" : "fixed",
@@ -2336,7 +2336,7 @@ const Lightbox = ({ isOpen, onClose, content, lightboxStyles, settings, portalId
2336
2336
  return /* @__PURE__ */ jsxRuntime.jsx(
2337
2337
  "button",
2338
2338
  {
2339
- className: classes$1.thumbItem,
2339
+ className: classes.thumbItem,
2340
2340
  style: {
2341
2341
  ...slider.direction === "horiz" && thumbnail.fit !== "fit" ? { height: scalingValue(activeSizeValue, isEditor) } : {},
2342
2342
  ...slider.direction === "vert" && thumbnail.fit !== "fit" ? { width: scalingValue(activeSizeValue, isEditor) } : {},
@@ -2892,7 +2892,7 @@ const LightboxComponent = {
2892
2892
  }
2893
2893
  }
2894
2894
  },
2895
- caption: {
2895
+ imageCaption: {
2896
2896
  title: "DESC",
2897
2897
  icon: "text-icon",
2898
2898
  tooltip: "Description",
@@ -3012,7 +3012,7 @@ const LightboxComponent = {
3012
3012
  closeIconOffset: { x: 0, y: 0 },
3013
3013
  closeIconScale: 1
3014
3014
  },
3015
- caption: {
3015
+ imageCaption: {
3016
3016
  isActive: true,
3017
3017
  alignment: "middle-center",
3018
3018
  offset: { x: 0, y: 0 },
@@ -3080,7 +3080,7 @@ const LightboxComponent = {
3080
3080
  closeIconOffset: { x: 0, y: 0 },
3081
3081
  closeIconScale: 1
3082
3082
  },
3083
- caption: {
3083
+ imageCaption: {
3084
3084
  isActive: true,
3085
3085
  alignment: "middle-center",
3086
3086
  offset: { x: 0, y: 0 },
@@ -3148,7 +3148,7 @@ const LightboxComponent = {
3148
3148
  closeIconOffset: { x: 0, y: 0 },
3149
3149
  closeIconScale: 1
3150
3150
  },
3151
- caption: {
3151
+ imageCaption: {
3152
3152
  isActive: true,
3153
3153
  alignment: "middle-center",
3154
3154
  offset: { x: 0, y: 0 },
@@ -3300,7 +3300,7 @@ const LightboxComponent = {
3300
3300
  layoutBased: true,
3301
3301
  type: "object",
3302
3302
  properties: {
3303
- caption: {
3303
+ imageCaption: {
3304
3304
  dataName: "caption",
3305
3305
  type: "object",
3306
3306
  properties: {
@@ -3398,1348 +3398,7 @@ const LightboxComponent = {
3398
3398
  }
3399
3399
  },
3400
3400
  default: {
3401
- caption: {
3402
- widthSettings: {
3403
- width: 0.13,
3404
- sizing: "auto"
3405
- },
3406
- fontSettings: {
3407
- fontFamily: "Arial",
3408
- fontWeight: 400,
3409
- fontStyle: "normal"
3410
- },
3411
- fontSizeLineHeight: {
3412
- fontSize: 0.02,
3413
- lineHeight: 0.02
3414
- },
3415
- letterSpacing: 0,
3416
- wordSpacing: 0,
3417
- textAlign: "left",
3418
- textAppearance: {
3419
- textTransform: "none",
3420
- textDecoration: "none",
3421
- fontVariant: "normal"
3422
- },
3423
- color: "#000000"
3424
- }
3425
- }
3426
- }
3427
- },
3428
- required: ["settings", "content", "styles"]
3429
- }
3430
- };
3431
- const container = "Testimonials-module__container___H14Dc";
3432
- const wrapper = "Testimonials-module__wrapper___eCRwv";
3433
- const cover = "Testimonials-module__cover___5I7Fh";
3434
- const caption = "Testimonials-module__caption___-YQRG";
3435
- const creds = "Testimonials-module__creds___KKvX1";
3436
- const image = "Testimonials-module__image___nHD1Y";
3437
- const icon = "Testimonials-module__icon___SstqT";
3438
- const arrow = "Testimonials-module__arrow___NO6BN";
3439
- const nextArrow = "Testimonials-module__nextArrow___L3G-W";
3440
- const arrowInner = "Testimonials-module__arrowInner___GSjnA";
3441
- const arrowIcon = "Testimonials-module__arrowIcon___fw7vy";
3442
- const arrowImg = "Testimonials-module__arrowImg___7R9fl";
3443
- const mirror = "Testimonials-module__mirror___JkFna";
3444
- const classes = {
3445
- container,
3446
- wrapper,
3447
- cover,
3448
- caption,
3449
- creds,
3450
- image,
3451
- icon,
3452
- arrow,
3453
- nextArrow,
3454
- arrowInner,
3455
- arrowIcon,
3456
- arrowImg,
3457
- mirror
3458
- };
3459
- function getAlignPosition(alignment, offset, isEditor) {
3460
- const styles2 = {};
3461
- const [vertical, horizontal] = alignment.split("-");
3462
- if (vertical === "top") {
3463
- styles2.top = "0";
3464
- styles2.bottom = "auto";
3465
- } else if (vertical === "middle") {
3466
- styles2.top = "50%";
3467
- styles2.bottom = "auto";
3468
- } else if (vertical === "bottom") {
3469
- styles2.top = "auto";
3470
- styles2.bottom = "0";
3471
- }
3472
- if (horizontal === "left") {
3473
- styles2.left = "0";
3474
- styles2.right = "auto";
3475
- } else if (horizontal === "center") {
3476
- styles2.left = "50%";
3477
- styles2.right = "auto";
3478
- } else if (horizontal === "right") {
3479
- styles2.left = "auto";
3480
- styles2.right = "0";
3481
- }
3482
- if (vertical === "middle" && horizontal === "center") {
3483
- styles2.transform = `translate(calc(-50% + ${scalingValue(offset.x, isEditor)}), calc(-50% + ${scalingValue(offset.y, isEditor)}))`;
3484
- } else if (vertical === "middle") {
3485
- styles2.transform = `translate(${scalingValue(offset.x, isEditor)}, calc(-50% + ${scalingValue(offset.y, isEditor)}))`;
3486
- } else if (horizontal === "center") {
3487
- styles2.transform = `translate(calc(-50% + ${scalingValue(offset.x, isEditor)}), ${scalingValue(offset.y, isEditor)})`;
3488
- } else {
3489
- styles2.transform = `translate(${scalingValue(offset.x, isEditor)}, ${scalingValue(offset.y, isEditor)})`;
3490
- }
3491
- return styles2;
3492
- }
3493
- const parseSpeedToMs = (speed) => {
3494
- if (!speed) return 0;
3495
- const match = speed.match(/^(\d+)(ms|s)$/);
3496
- if (!match) return 0;
3497
- const value = parseInt(match[1], 10);
3498
- const unit = match[2];
3499
- return unit === "s" ? value * 1e3 : value;
3500
- };
3501
- const Testimonials = ({ settings, content, styles: styles2, isEditor }) => {
3502
- const sliderRef = React.useRef(null);
3503
- const { general, card, controls } = settings;
3504
- const { width, height } = card.dimensions;
3505
- const perMove = settings.general.move === "one" ? 1 : settings.general.inView || 1;
3506
- const perPage = settings.general.inView || 3;
3507
- const isAutoplay = settings.general.autoplay === "on";
3508
- const marqueePerMove = isAutoplay ? 1 : perMove;
3509
- const speedMs = isAutoplay ? settings.general.speed ? parseSpeedToMs(settings.general.speed) : 0 : 500;
3510
- const wrapperWidth = !isAutoplay ? scalingValue(width * perPage + settings.card.gap * (perPage - 1) + card.borders.width * 2 * perPage, isEditor ?? false) : void 0;
3511
- const splideKey = `${general.autoplay}-${general.inView}`;
3512
- React.useEffect(() => {
3513
- var _a;
3514
- if ((_a = sliderRef.current) == null ? void 0 : _a.splide) {
3515
- const splide = sliderRef.current.splide;
3516
- splide.options = {
3517
- ...splide.options,
3518
- autoplay: isAutoplay,
3519
- perPage,
3520
- perMove: marqueePerMove,
3521
- interval: isAutoplay ? speedMs || 500 : 0,
3522
- rewind: !isAutoplay
3523
- };
3524
- splide.refresh();
3525
- }
3526
- }, [general.autoplay, general.inView, isAutoplay, perPage, marqueePerMove, speedMs]);
3527
- return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
3528
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: classes.container, style: { justifyContent: settings.general.alignment }, children: /* @__PURE__ */ jsxRuntime.jsx(
3529
- "div",
3530
- {
3531
- className: `${classes.wrapper}`,
3532
- style: wrapperWidth ? { width: wrapperWidth } : void 0,
3533
- children: /* @__PURE__ */ jsxRuntime.jsx(
3534
- reactSplide.Splide,
3535
- {
3536
- ref: sliderRef,
3537
- options: {
3538
- type: "loop",
3539
- fixedWidth: scalingValue(width + card.borders.width * 2, isEditor ?? false),
3540
- ...settings.general.autoplay === "off" && {
3541
- perPage,
3542
- width: wrapperWidth
3543
- },
3544
- arrows: false,
3545
- perMove: isAutoplay ? marqueePerMove : perMove,
3546
- gap: scalingValue(settings.card.gap, isEditor ?? false),
3547
- padding: 0,
3548
- drag: false,
3549
- autoplay: isAutoplay,
3550
- speed: speedMs,
3551
- // Transition duration (default to 500ms if not set)
3552
- interval: speedMs,
3553
- // Match speed for continuous marquee flow
3554
- rewind: !isAutoplay,
3555
- // Disable rewind for smooth marquee, enable for manual mode
3556
- easing: "linear",
3557
- direction: settings.general.direction === "left" ? "ltr" : "rtl",
3558
- pagination: false,
3559
- pauseOnHover: settings.general.pause === "hover",
3560
- pauseOnFocus: settings.general.pause === "click"
3561
- },
3562
- children: content.map((item, index) => {
3563
- var _a, _b, _c, _d, _e;
3564
- const iconPositionStyles = getAlignPosition(settings.elements.icon.alignment, settings.elements.icon.offset, isEditor);
3565
- return /* @__PURE__ */ jsxRuntime.jsx(reactSplide.SplideSlide, { children: /* @__PURE__ */ jsxRuntime.jsxs(
3566
- "div",
3567
- {
3568
- style: {
3569
- width: scalingValue(width, isEditor ?? false),
3570
- height: scalingValue(height, isEditor ?? false),
3571
- borderRadius: scalingValue(settings.card.corner, isEditor ?? false),
3572
- border: `${scalingValue(settings.card.borders.width, isEditor ?? false)} solid ${settings.card.borders.color}`,
3573
- overflow: "hidden",
3574
- boxSizing: "border-box"
3575
- },
3576
- children: [
3577
- /* @__PURE__ */ jsxRuntime.jsx(
3578
- "img",
3579
- {
3580
- className: classes.image,
3581
- src: (_a = item.image) == null ? void 0 : _a.url,
3582
- alt: (_b = item.image) == null ? void 0 : _b.name,
3583
- style: { objectFit: ((_c = item.image) == null ? void 0 : _c.objectFit) || "cover" }
3584
- }
3585
- ),
3586
- /* @__PURE__ */ jsxRuntime.jsx(
3587
- "div",
3588
- {
3589
- className: classes.cover,
3590
- style: { background: settings.card.bgColor, borderRadius: `${scalingValue(settings.card.corner, isEditor ?? false)}` }
3591
- }
3592
- ),
3593
- /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
3594
- /* @__PURE__ */ jsxRuntime.jsx(
3595
- "img",
3596
- {
3597
- src: (_d = item.icon) == null ? void 0 : _d.url,
3598
- alt: (_e = item.icon) == null ? void 0 : _e.name,
3599
- className: classes.icon,
3600
- style: {
3601
- ...iconPositionStyles,
3602
- transform: `${iconPositionStyles.transform || ""} scale(${settings.elements.icon.scale / 100})`
3603
- }
3604
- }
3605
- ),
3606
- /* @__PURE__ */ jsxRuntime.jsx(
3607
- "div",
3608
- {
3609
- className: classes.caption,
3610
- style: getAlignPosition(settings.elements.text.alignment, settings.elements.text.offset, isEditor),
3611
- children: /* @__PURE__ */ jsxRuntime.jsx(RichTextRenderer, { content: item.imageCaption })
3612
- }
3613
- ),
3614
- /* @__PURE__ */ jsxRuntime.jsx(
3615
- "div",
3616
- {
3617
- className: classes.creds,
3618
- style: getAlignPosition(settings.elements.creds.alignment, settings.elements.creds.offset, isEditor),
3619
- children: /* @__PURE__ */ jsxRuntime.jsx(RichTextRenderer, { content: item.creds })
3620
- }
3621
- )
3622
- ] })
3623
- ]
3624
- }
3625
- ) }, index);
3626
- })
3627
- },
3628
- splideKey
3629
- )
3630
- }
3631
- ) }),
3632
- controls.isActive && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
3633
- /* @__PURE__ */ jsxRuntime.jsx(
3634
- "div",
3635
- {
3636
- className: classes.arrow,
3637
- style: { color: controls.color, ["--arrow-hover-color"]: controls.hover },
3638
- children: /* @__PURE__ */ jsxRuntime.jsxs(
3639
- "button",
3640
- {
3641
- className: classes.arrowInner,
3642
- style: { transform: `translate(${scalingValue(controls.offset.x, isEditor ?? false)}, ${scalingValue(controls.offset.y, isEditor ?? false)}) scale(${controls.scale / 100})` },
3643
- onClick: () => {
3644
- var _a;
3645
- return (_a = sliderRef.current) == null ? void 0 : _a.go(isAutoplay ? "-1" : `-${perMove}`);
3646
- },
3647
- "aria-label": "Previous",
3648
- children: [
3649
- controls.arrowsImgUrl && /* @__PURE__ */ jsxRuntime.jsx(
3650
- SvgImage,
3651
- {
3652
- url: controls.arrowsImgUrl,
3653
- fill: controls.color,
3654
- hoverFill: controls.hover,
3655
- className: cn(classes.arrowImg, classes.mirror)
3656
- }
3657
- ),
3658
- !controls.arrowsImgUrl && /* @__PURE__ */ jsxRuntime.jsx(ArrowIcon, { color: controls.color, className: cn(classes.arrowIcon, classes.arrowImg, classes.mirror) })
3659
- ]
3660
- }
3661
- )
3662
- }
3663
- ),
3664
- /* @__PURE__ */ jsxRuntime.jsx(
3665
- "div",
3666
- {
3667
- className: cn(classes.arrow, classes.nextArrow),
3668
- style: { color: controls.color, ["--arrow-hover-color"]: controls.hover },
3669
- children: /* @__PURE__ */ jsxRuntime.jsxs(
3670
- "button",
3671
- {
3672
- className: classes.arrowInner,
3673
- style: { transform: `translate(${scalingValue(controls.offset.x * -1, isEditor ?? false)}, ${scalingValue(controls.offset.y, isEditor ?? false)}) scale(${controls.scale / 100})` },
3674
- onClick: () => {
3675
- var _a;
3676
- return (_a = sliderRef.current) == null ? void 0 : _a.go(isAutoplay ? "+1" : `+${perMove}`);
3677
- },
3678
- "aria-label": "Next",
3679
- children: [
3680
- controls.arrowsImgUrl && /* @__PURE__ */ jsxRuntime.jsx(
3681
- SvgImage,
3682
- {
3683
- url: controls.arrowsImgUrl,
3684
- fill: controls.color,
3685
- hoverFill: controls.hover,
3686
- className: classes.arrowImg
3687
- }
3688
- ),
3689
- !controls.arrowsImgUrl && /* @__PURE__ */ jsxRuntime.jsx(ArrowIcon, { color: controls.color, className: cn(classes.arrowIcon, classes.arrowImg) })
3690
- ]
3691
- }
3692
- )
3693
- }
3694
- )
3695
- ] })
3696
- ] });
3697
- };
3698
- function ArrowIcon({ color, className }) {
3699
- return /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 10 18", className, children: /* @__PURE__ */ jsxRuntime.jsx("g", { id: "Symbols", stroke: "none", strokeWidth: "1", fillRule: "evenodd", children: /* @__PURE__ */ jsxRuntime.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)" }) }) });
3700
- }
3701
- const TestimonialsComponent = {
3702
- element: Testimonials,
3703
- id: "testimonials",
3704
- name: "Testimonials",
3705
- preview: {
3706
- type: "video",
3707
- url: "https://cdn.cntrl.site/component-assets/testimonials.mp4"
3708
- },
3709
- defaultSize: {
3710
- width: 700,
3711
- height: 400
3712
- },
3713
- schema: {
3714
- type: "object",
3715
- properties: {
3716
- settings: {
3717
- layoutBased: true,
3718
- type: "object",
3719
- display: {
3720
- type: "settings-block"
3721
- },
3722
- properties: {
3723
- general: {
3724
- icon: "thumbnail",
3725
- type: "object",
3726
- properties: {
3727
- autoplay: {
3728
- type: "string",
3729
- title: "Autoplay",
3730
- display: {
3731
- type: "ratio-group",
3732
- direction: "horizontal"
3733
- },
3734
- enum: ["on", "off"]
3735
- },
3736
- inView: {
3737
- type: "number",
3738
- title: "In View",
3739
- min: 1,
3740
- display: {
3741
- type: "numeric-input"
3742
- }
3743
- },
3744
- alignment: {
3745
- type: "string",
3746
- title: "Alignment",
3747
- display: {
3748
- type: "align-group",
3749
- direction: "vertical"
3750
- },
3751
- enum: ["left", "center", "right"]
3752
- },
3753
- move: {
3754
- type: "string",
3755
- title: "Move",
3756
- display: {
3757
- type: "ratio-group",
3758
- direction: "horizontal"
3759
- },
3760
- enum: ["one", "view"]
3761
- },
3762
- speed: {
3763
- type: ["string", "null"],
3764
- title: "Speed",
3765
- display: {
3766
- type: "step-selector"
3767
- },
3768
- enum: ["100ms", "250ms", "500ms", "1000ms", "1500ms", "2000ms"]
3769
- },
3770
- direction: {
3771
- type: "string",
3772
- display: {
3773
- type: "ratio-group"
3774
- },
3775
- enum: ["left", "right"]
3776
- },
3777
- pause: {
3778
- title: "Pause on",
3779
- type: "string",
3780
- display: {
3781
- type: "ratio-group"
3782
- },
3783
- enum: ["hover", "click", "off"]
3784
- }
3785
- }
3786
- },
3787
- card: {
3788
- icon: "card",
3789
- type: "object",
3790
- properties: {
3791
- dimensions: {
3792
- type: "object",
3793
- title: "Size",
3794
- display: {
3795
- type: "group"
3796
- },
3797
- properties: {
3798
- width: {
3799
- type: "number",
3800
- label: "W",
3801
- scalingEnabled: true,
3802
- display: {
3803
- type: "numeric-input",
3804
- visible: true
3805
- }
3806
- },
3807
- height: {
3808
- type: "number",
3809
- label: "H",
3810
- scalingEnabled: true,
3811
- display: {
3812
- type: "numeric-input",
3813
- visible: true
3814
- }
3815
- }
3816
- }
3817
- },
3818
- gap: {
3819
- type: "number",
3820
- title: "Gap",
3821
- scalingEnabled: true,
3822
- min: 0,
3823
- display: {
3824
- type: "numeric-input"
3825
- }
3826
- },
3827
- corner: {
3828
- type: "number",
3829
- title: "Corners",
3830
- scalingEnabled: true,
3831
- min: 0,
3832
- label: "icon:border-radius",
3833
- display: {
3834
- type: "numeric-input"
3835
- }
3836
- },
3837
- borders: {
3838
- type: "object",
3839
- title: "Borders",
3840
- display: {
3841
- type: "group"
3842
- },
3843
- properties: {
3844
- width: {
3845
- type: "number",
3846
- label: "icon:border-width",
3847
- scalingEnabled: true,
3848
- min: 0,
3849
- display: {
3850
- type: "numeric-input"
3851
- }
3852
- },
3853
- color: {
3854
- type: "string",
3855
- display: {
3856
- type: "settings-color-picker",
3857
- format: "single"
3858
- }
3859
- }
3860
- }
3861
- },
3862
- bgColor: {
3863
- title: "BG color",
3864
- type: "string",
3865
- display: {
3866
- type: "settings-color-picker",
3867
- format: "single"
3868
- }
3869
- }
3870
- }
3871
- },
3872
- elements: {
3873
- title: "elements",
3874
- icon: "star",
3875
- type: "object",
3876
- properties: {
3877
- elements: {
3878
- type: "string",
3879
- display: {
3880
- type: "ratio-group"
3881
- },
3882
- enum: ["text", "icon", "caption"]
3883
- },
3884
- text: {
3885
- type: "object",
3886
- display: {
3887
- type: "group"
3888
- },
3889
- properties: {
3890
- alignment: {
3891
- type: "string",
3892
- display: {
3893
- type: "align-grid",
3894
- visible: true
3895
- },
3896
- enum: ["top-left", "top-center", "top-right", "middle-left", "middle-center", "middle-right", "bottom-left", "bottom-center", "bottom-right"]
3897
- },
3898
- offset: {
3899
- type: "object",
3900
- title: "Offset",
3901
- display: {
3902
- type: "group",
3903
- visible: true
3904
- },
3905
- properties: {
3906
- x: {
3907
- type: "number",
3908
- label: "X",
3909
- scalingEnabled: true,
3910
- display: {
3911
- type: "numeric-input",
3912
- visible: true
3913
- }
3914
- },
3915
- y: {
3916
- type: "number",
3917
- label: "Y",
3918
- scalingEnabled: true,
3919
- display: {
3920
- type: "numeric-input",
3921
- visible: true
3922
- }
3923
- }
3924
- }
3925
- }
3926
- }
3927
- },
3928
- icon: {
3929
- type: "object",
3930
- display: {
3931
- type: "group"
3932
- },
3933
- properties: {
3934
- alignment: {
3935
- type: "string",
3936
- display: {
3937
- type: "align-grid"
3938
- },
3939
- enum: ["top-left", "top-center", "top-right", "middle-left", "middle-center", "middle-right", "bottom-left", "bottom-center", "bottom-right"]
3940
- },
3941
- offset: {
3942
- type: "object",
3943
- title: "Offset",
3944
- display: {
3945
- type: "group"
3946
- },
3947
- properties: {
3948
- x: {
3949
- type: "number",
3950
- label: "X",
3951
- scalingEnabled: true,
3952
- display: {
3953
- type: "numeric-input",
3954
- visible: true
3955
- }
3956
- },
3957
- y: {
3958
- type: "number",
3959
- label: "Y",
3960
- scalingEnabled: true,
3961
- display: {
3962
- type: "numeric-input",
3963
- visible: true
3964
- }
3965
- }
3966
- }
3967
- },
3968
- scale: {
3969
- type: "number",
3970
- title: "scale",
3971
- min: 50,
3972
- max: 600,
3973
- display: {
3974
- type: "range-control",
3975
- visible: false
3976
- }
3977
- }
3978
- }
3979
- },
3980
- creds: {
3981
- type: "object",
3982
- display: {
3983
- type: "group"
3984
- },
3985
- properties: {
3986
- alignment: {
3987
- type: "string",
3988
- display: {
3989
- type: "align-grid"
3990
- },
3991
- enum: ["top-left", "top-center", "top-right", "middle-left", "middle-center", "middle-right", "bottom-left", "bottom-center", "bottom-right"]
3992
- },
3993
- offset: {
3994
- type: "object",
3995
- title: "Offset",
3996
- display: {
3997
- type: "group"
3998
- },
3999
- properties: {
4000
- x: {
4001
- type: "number",
4002
- label: "X",
4003
- scalingEnabled: true,
4004
- display: {
4005
- type: "numeric-input",
4006
- visible: true
4007
- }
4008
- },
4009
- y: {
4010
- type: "number",
4011
- label: "Y",
4012
- scalingEnabled: true,
4013
- display: {
4014
- type: "numeric-input",
4015
- visible: true
4016
- }
4017
- }
4018
- }
4019
- }
4020
- }
4021
- }
4022
- }
4023
- },
4024
- controls: {
4025
- title: "controls",
4026
- icon: "controls",
4027
- tooltip: "Controls",
4028
- type: "object",
4029
- properties: {
4030
- isActive: {
4031
- type: "boolean",
4032
- display: {
4033
- type: "setting-toggle"
4034
- }
4035
- },
4036
- arrowsImgUrl: {
4037
- type: ["string", "null"],
4038
- display: {
4039
- type: "settings-image-input"
4040
- }
4041
- },
4042
- offset: {
4043
- type: "object",
4044
- title: "Offset",
4045
- display: {
4046
- type: "group"
4047
- },
4048
- properties: {
4049
- x: {
4050
- type: "number",
4051
- label: "X",
4052
- scalingEnabled: true,
4053
- display: {
4054
- type: "numeric-input",
4055
- visible: true
4056
- }
4057
- },
4058
- y: {
4059
- type: "number",
4060
- label: "Y",
4061
- scalingEnabled: true,
4062
- display: {
4063
- type: "numeric-input",
4064
- visible: true
4065
- }
4066
- }
4067
- }
4068
- },
4069
- scale: {
4070
- type: "number",
4071
- title: "scale",
4072
- min: 50,
4073
- max: 600,
4074
- display: {
4075
- type: "range-control"
4076
- }
4077
- },
4078
- color: {
4079
- title: "color",
4080
- type: "string",
4081
- display: {
4082
- type: "settings-color-picker",
4083
- format: "single"
4084
- }
4085
- },
4086
- hover: {
4087
- title: "hover",
4088
- type: "string",
4089
- display: {
4090
- type: "settings-color-picker",
4091
- format: "single"
4092
- }
4093
- }
4094
- }
4095
- }
4096
- },
4097
- default: {
4098
- general: {
4099
- autoplay: "off",
4100
- inView: 3,
4101
- alignment: "center",
4102
- move: "one",
4103
- speed: "3s",
4104
- direction: "left",
4105
- pause: "off"
4106
- },
4107
- card: {
4108
- dimensions: {
4109
- width: 0.1,
4110
- height: 0.2
4111
- },
4112
- gap: 0.02,
4113
- corner: 0.01,
4114
- borders: {
4115
- width: 1e-3,
4116
- color: "#000000"
4117
- },
4118
- bgColor: "rgba(255, 255, 255, 0.2)"
4119
- },
4120
- controls: {
4121
- isActive: false,
4122
- arrowsImgUrl: null,
4123
- offset: {
4124
- x: 0,
4125
- y: 0
4126
- },
4127
- scale: 100,
4128
- color: "#000000",
4129
- hover: "#cccccc"
4130
- },
4131
- elements: {
4132
- elements: "text",
4133
- text: {
4134
- alignment: "middle-left",
4135
- offset: {
4136
- x: 0,
4137
- y: 0
4138
- }
4139
- },
4140
- icon: {
4141
- alignment: "top-left",
4142
- offset: {
4143
- x: 0,
4144
- y: 0
4145
- },
4146
- scale: 100
4147
- },
4148
- creds: {
4149
- alignment: "bottom-left",
4150
- offset: {
4151
- x: 0,
4152
- y: 0
4153
- }
4154
- }
4155
- }
4156
- },
4157
- displayRules: [
4158
- {
4159
- if: {
4160
- name: "general.autoplay",
4161
- value: "off"
4162
- },
4163
- then: {
4164
- name: "properties.general.properties.inView.display.visible",
4165
- value: true
4166
- }
4167
- },
4168
- {
4169
- if: {
4170
- name: "general.autoplay",
4171
- value: "off"
4172
- },
4173
- then: {
4174
- name: "properties.general.properties.alignment.display.visible",
4175
- value: true
4176
- }
4177
- },
4178
- {
4179
- if: {
4180
- name: "general.autoplay",
4181
- value: "off"
4182
- },
4183
- then: {
4184
- name: "properties.general.properties.move.display.visible",
4185
- value: true
4186
- }
4187
- },
4188
- {
4189
- if: {
4190
- name: "general.autoplay",
4191
- value: "on"
4192
- },
4193
- then: {
4194
- name: "properties.general.properties.inView.display.visible",
4195
- value: false
4196
- }
4197
- },
4198
- {
4199
- if: {
4200
- name: "general.autoplay",
4201
- value: "on"
4202
- },
4203
- then: {
4204
- name: "properties.general.properties.alignment.display.visible",
4205
- value: false
4206
- }
4207
- },
4208
- {
4209
- if: {
4210
- name: "general.autoplay",
4211
- value: "on"
4212
- },
4213
- then: {
4214
- name: "properties.general.properties.move.display.visible",
4215
- value: false
4216
- }
4217
- },
4218
- {
4219
- if: {
4220
- name: "general.autoplay",
4221
- value: "on"
4222
- },
4223
- then: {
4224
- name: "properties.general.properties.speed.display.visible",
4225
- value: true
4226
- }
4227
- },
4228
- {
4229
- if: {
4230
- name: "general.autoplay",
4231
- value: "on"
4232
- },
4233
- then: {
4234
- name: "properties.general.properties.direction.display.visible",
4235
- value: true
4236
- }
4237
- },
4238
- {
4239
- if: {
4240
- name: "general.autoplay",
4241
- value: "on"
4242
- },
4243
- then: {
4244
- name: "properties.general.properties.pause.display.visible",
4245
- value: true
4246
- }
4247
- },
4248
- {
4249
- if: {
4250
- name: "general.autoplay",
4251
- value: "off"
4252
- },
4253
- then: {
4254
- name: "properties.general.properties.speed.display.visible",
4255
- value: false
4256
- }
4257
- },
4258
- {
4259
- if: {
4260
- name: "general.autoplay",
4261
- value: "off"
4262
- },
4263
- then: {
4264
- name: "properties.general.properties.direction.display.visible",
4265
- value: false
4266
- }
4267
- },
4268
- {
4269
- if: {
4270
- name: "general.autoplay",
4271
- value: "off"
4272
- },
4273
- then: {
4274
- name: "properties.general.properties.pause.display.visible",
4275
- value: false
4276
- }
4277
- },
4278
- {
4279
- if: {
4280
- name: "elements.elements",
4281
- value: "text"
4282
- },
4283
- then: {
4284
- name: "properties.elements.properties.text.properties.alignment.display.visible",
4285
- value: true
4286
- }
4287
- },
4288
- {
4289
- if: {
4290
- name: "elements.elements",
4291
- value: "text"
4292
- },
4293
- then: {
4294
- name: "properties.elements.properties.text.properties.offset.display.visible",
4295
- value: true
4296
- }
4297
- },
4298
- {
4299
- if: {
4300
- name: "elements.elements",
4301
- value: "text"
4302
- },
4303
- then: {
4304
- name: "properties.elements.properties.icon.properties.alignment.display.visible",
4305
- value: false
4306
- }
4307
- },
4308
- {
4309
- if: {
4310
- name: "elements.elements",
4311
- value: "text"
4312
- },
4313
- then: {
4314
- name: "properties.elements.properties.icon.properties.offset.display.visible",
4315
- value: false
4316
- }
4317
- },
4318
- {
4319
- if: {
4320
- name: "elements.elements",
4321
- value: "text"
4322
- },
4323
- then: {
4324
- name: "properties.elements.properties.creds.properties.alignment.display.visible",
4325
- value: false
4326
- }
4327
- },
4328
- {
4329
- if: {
4330
- name: "elements.elements",
4331
- value: "text"
4332
- },
4333
- then: {
4334
- name: "properties.elements.properties.creds.properties.offset.display.visible",
4335
- value: false
4336
- }
4337
- },
4338
- {
4339
- if: {
4340
- name: "elements.elements",
4341
- value: "icon"
4342
- },
4343
- then: {
4344
- name: "properties.elements.properties.icon.properties.alignment.display.visible",
4345
- value: true
4346
- }
4347
- },
4348
- {
4349
- if: {
4350
- name: "elements.elements",
4351
- value: "icon"
4352
- },
4353
- then: {
4354
- name: "properties.elements.properties.icon.properties.offset.display.visible",
4355
- value: true
4356
- }
4357
- },
4358
- {
4359
- if: {
4360
- name: "elements.elements",
4361
- value: "icon"
4362
- },
4363
- then: {
4364
- name: "properties.elements.properties.text.properties.alignment.display.visible",
4365
- value: false
4366
- }
4367
- },
4368
- {
4369
- if: {
4370
- name: "elements.elements",
4371
- value: "icon"
4372
- },
4373
- then: {
4374
- name: "properties.elements.properties.text.properties.offset.display.visible",
4375
- value: false
4376
- }
4377
- },
4378
- {
4379
- if: {
4380
- name: "elements.elements",
4381
- value: "icon"
4382
- },
4383
- then: {
4384
- name: "properties.elements.properties.creds.properties.alignment.display.visible",
4385
- value: false
4386
- }
4387
- },
4388
- {
4389
- if: {
4390
- name: "elements.elements",
4391
- value: "icon"
4392
- },
4393
- then: {
4394
- name: "properties.elements.properties.creds.properties.offset.display.visible",
4395
- value: false
4396
- }
4397
- },
4398
- {
4399
- if: {
4400
- name: "elements.elements",
4401
- value: "caption"
4402
- },
4403
- then: {
4404
- name: "properties.elements.properties.creds.properties.alignment.display.visible",
4405
- value: true
4406
- }
4407
- },
4408
- {
4409
- if: {
4410
- name: "elements.elements",
4411
- value: "caption"
4412
- },
4413
- then: {
4414
- name: "properties.elements.properties.creds.properties.offset.display.visible",
4415
- value: true
4416
- }
4417
- },
4418
- {
4419
- if: {
4420
- name: "elements.elements",
4421
- value: "caption"
4422
- },
4423
- then: {
4424
- name: "properties.elements.properties.text.properties.alignment.display.visible",
4425
- value: false
4426
- }
4427
- },
4428
- {
4429
- if: {
4430
- name: "elements.elements",
4431
- value: "caption"
4432
- },
4433
- then: {
4434
- name: "properties.elements.properties.text.properties.offset.display.visible",
4435
- value: false
4436
- }
4437
- },
4438
- {
4439
- if: {
4440
- name: "elements.elements",
4441
- value: "caption"
4442
- },
4443
- then: {
4444
- name: "properties.elements.properties.icon.properties.alignment.display.visible",
4445
- value: false
4446
- }
4447
- },
4448
- {
4449
- if: {
4450
- name: "elements.elements",
4451
- value: "caption"
4452
- },
4453
- then: {
4454
- name: "properties.elements.properties.icon.properties.offset.display.visible",
4455
- value: false
4456
- }
4457
- },
4458
- {
4459
- if: {
4460
- name: "elements.elements",
4461
- value: "icon"
4462
- },
4463
- then: {
4464
- name: "properties.elements.properties.icon.properties.scale.display.visible",
4465
- value: true
4466
- }
4467
- },
4468
- {
4469
- if: {
4470
- name: "elements.elements",
4471
- value: "text"
4472
- },
4473
- then: {
4474
- name: "properties.elements.properties.icon.properties.scale.display.visible",
4475
- value: false
4476
- }
4477
- },
4478
- {
4479
- if: {
4480
- name: "elements.elements",
4481
- value: "caption"
4482
- },
4483
- then: {
4484
- name: "properties.elements.properties.icon.properties.scale.display.visible",
4485
- value: false
4486
- }
4487
- }
4488
- ]
4489
- },
4490
- content: {
4491
- layoutBased: false,
4492
- type: "array",
4493
- settings: {
4494
- addItemFromFileExplorer: true,
4495
- defaultWidth: 500
4496
- },
4497
- items: {
4498
- type: "object",
4499
- properties: {
4500
- image: {
4501
- type: "object",
4502
- label: "Image",
4503
- display: {
4504
- minWidth: 58,
4505
- maxWidth: 108,
4506
- type: "media-input"
4507
- },
4508
- properties: {
4509
- url: {
4510
- type: "string"
4511
- },
4512
- name: {
4513
- type: "string"
4514
- },
4515
- objectFit: {
4516
- type: "string",
4517
- enum: ["cover", "contain"]
4518
- }
4519
- },
4520
- required: ["url", "name"]
4521
- },
4522
- icon: {
4523
- type: "object",
4524
- label: "Icon",
4525
- display: {
4526
- minWidth: 58,
4527
- maxWidth: 108,
4528
- type: "media-input"
4529
- },
4530
- properties: {
4531
- url: {
4532
- type: "string"
4533
- },
4534
- name: {
4535
- type: "string"
4536
- },
4537
- objectFit: {
4538
- type: "string",
4539
- enum: ["cover", "contain"]
4540
- }
4541
- },
4542
- required: ["url", "name"]
4543
- },
4544
- imageCaption: {
4545
- placeholder: "Add Text...",
4546
- label: "Text",
4547
- display: {
4548
- type: "rich-text",
4549
- minWidth: 300,
4550
- maxWidth: 550
4551
- }
4552
- },
4553
- creds: {
4554
- placeholder: "Add Caption...",
4555
- label: "Caption",
4556
- display: {
4557
- type: "rich-text",
4558
- minWidth: 300,
4559
- maxWidth: 550
4560
- }
4561
- }
4562
- },
4563
- required: ["image"]
4564
- },
4565
- default: [
4566
- {
4567
- image: {
4568
- objectFit: "cover",
4569
- url: "https://cdn.cntrl.site/component-assets/2.jpg",
4570
- name: "Testimonial-1.png"
4571
- },
4572
- icon: {
4573
- objectFit: "cover",
4574
- url: "https://cdn.cntrl.site/projects/01GJ2SPNXG3V5P35ZA35YM1JTW/articles-assets/01KEXYWFPR7GB70E4YBF28T8R6.png",
4575
- name: ""
4576
- },
4577
- imageCaption: [
4578
- {
4579
- type: "paragraph",
4580
- children: [{ text: "" }]
4581
- }
4582
- ],
4583
- creds: [
4584
- {
4585
- type: "paragraph",
4586
- children: [{ text: "" }]
4587
- }
4588
- ]
4589
- },
4590
- {
4591
- image: {
4592
- objectFit: "cover",
4593
- url: "https://cdn.cntrl.site/component-assets/3.jpg",
4594
- name: "Testimonial-2.png"
4595
- },
4596
- icon: {
4597
- objectFit: "cover",
4598
- url: "https://cdn.cntrl.site/projects/01GJ2SPNXG3V5P35ZA35YM1JTW/articles-assets/01KEXYWFPR7GB70E4YBF28T8R6.png",
4599
- name: ""
4600
- },
4601
- imageCaption: [
4602
- {
4603
- type: "paragraph",
4604
- children: [{ text: "" }]
4605
- }
4606
- ],
4607
- creds: [
4608
- {
4609
- type: "paragraph",
4610
- children: [{ text: "" }]
4611
- }
4612
- ]
4613
- },
4614
- {
4615
- image: {
4616
- objectFit: "cover",
4617
- url: "https://cdn.cntrl.site/component-assets/4.jpg",
4618
- name: "Testimonial-3.png"
4619
- },
4620
- icon: {
4621
- objectFit: "cover",
4622
- url: "https://cdn.cntrl.site/projects/01GJ2SPNXG3V5P35ZA35YM1JTW/articles-assets/01KEXYWFPR7GB70E4YBF28T8R6.png",
4623
- name: ""
4624
- },
4625
- imageCaption: [
4626
- {
4627
- type: "paragraph",
4628
- children: [{ text: "" }]
4629
- }
4630
- ],
4631
- creds: [
4632
- {
4633
- type: "paragraph",
4634
- children: [{ text: "" }]
4635
- }
4636
- ]
4637
- }
4638
- ]
4639
- },
4640
- styles: {
4641
- layoutBased: true,
4642
- type: "object",
4643
- properties: {
4644
- caption: {
4645
- dataName: "caption",
4646
- type: "object",
4647
- properties: {
4648
- fontSettings: {
4649
- type: "object",
4650
- display: {
4651
- type: "font-settings"
4652
- },
4653
- properties: {
4654
- fontFamily: {
4655
- type: "string"
4656
- },
4657
- fontWeight: {
4658
- type: "number"
4659
- },
4660
- fontStyle: {
4661
- type: "string"
4662
- }
4663
- }
4664
- },
4665
- widthSettings: {
4666
- display: {
4667
- type: "text-width-control"
4668
- },
4669
- type: "object",
4670
- properties: {
4671
- width: {
4672
- type: "number"
4673
- },
4674
- sizing: {
4675
- type: "string",
4676
- enum: ["auto", "manual"]
4677
- }
4678
- }
4679
- },
4680
- fontSizeLineHeight: {
4681
- type: "object",
4682
- display: {
4683
- type: "font-size-line-height"
4684
- },
4685
- properties: {
4686
- fontSize: {
4687
- type: "number"
4688
- },
4689
- lineHeight: {
4690
- type: "number"
4691
- }
4692
- }
4693
- },
4694
- letterSpacing: {
4695
- display: {
4696
- type: "letter-spacing-input"
4697
- },
4698
- type: "number"
4699
- },
4700
- wordSpacing: {
4701
- display: {
4702
- type: "word-spacing-input"
4703
- },
4704
- type: "number"
4705
- },
4706
- textAlign: {
4707
- display: {
4708
- type: "text-align-control"
4709
- },
4710
- type: "string",
4711
- enum: ["left", "center", "right"]
4712
- },
4713
- textAppearance: {
4714
- display: {
4715
- type: "text-appearance"
4716
- },
4717
- properties: {
4718
- textTransform: {
4719
- type: "string",
4720
- enum: ["none", "uppercase", "lowercase"]
4721
- },
4722
- textDecoration: {
4723
- type: "string",
4724
- enum: ["none", "underline"]
4725
- },
4726
- fontVariant: {
4727
- type: "string",
4728
- enum: ["normal", "small-caps"]
4729
- }
4730
- }
4731
- },
4732
- color: {
4733
- display: {
4734
- type: "style-panel-color-picker"
4735
- },
4736
- type: "string"
4737
- }
4738
- }
4739
- }
4740
- },
4741
- default: {
4742
- caption: {
3401
+ imageCaption: {
4743
3402
  widthSettings: {
4744
3403
  width: 0.13,
4745
3404
  sizing: "auto"
@@ -4772,7 +3431,6 @@ const TestimonialsComponent = {
4772
3431
  const components = [
4773
3432
  ControlSliderComponent,
4774
3433
  ControlImageRevealSliderComponent,
4775
- LightboxComponent,
4776
- TestimonialsComponent
3434
+ LightboxComponent
4777
3435
  ];
4778
3436
  exports.components = components;