diy-template-components 0.2.4 → 0.2.6

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/build/index.js CHANGED
@@ -2,15 +2,15 @@
2
2
 
3
3
 
4
4
 
5
- function ___$insertStyle(css) {
6
- if (!css || !window) {
7
- return;
8
- }
9
- const style = document.createElement('style');
10
- style.setAttribute('type', 'text/css');
11
- style.innerHTML = css;
12
- document.head.appendChild(style);
13
- return css;
5
+ function ___$insertStyle(css) {
6
+ if (!css || typeof window === 'undefined') {
7
+ return;
8
+ }
9
+ const style = document.createElement('style');
10
+ style.setAttribute('type', 'text/css');
11
+ style.innerHTML = css;
12
+ document.head.appendChild(style);
13
+ return css;
14
14
  }
15
15
 
16
16
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -20,6 +20,7 @@ var Slider = require('react-slick');
20
20
  var axios = require('axios');
21
21
  var moment = require('moment');
22
22
  var Countdown = require('react-countdown');
23
+ var ReactDOMServer = require('react-dom/server');
23
24
  var reactJss = require('react-jss');
24
25
 
25
26
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
@@ -29,22 +30,20 @@ var Slider__default = /*#__PURE__*/_interopDefaultLegacy(Slider);
29
30
  var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
30
31
  var moment__default = /*#__PURE__*/_interopDefaultLegacy(moment);
31
32
  var Countdown__default = /*#__PURE__*/_interopDefaultLegacy(Countdown);
33
+ var ReactDOMServer__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOMServer);
32
34
 
33
35
  function _extends() {
34
- _extends = Object.assign || function (target) {
36
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
35
37
  for (var i = 1; i < arguments.length; i++) {
36
38
  var source = arguments[i];
37
-
38
39
  for (var key in source) {
39
40
  if (Object.prototype.hasOwnProperty.call(source, key)) {
40
41
  target[key] = source[key];
41
42
  }
42
43
  }
43
44
  }
44
-
45
45
  return target;
46
46
  };
47
-
48
47
  return _extends.apply(this, arguments);
49
48
  }
50
49
 
@@ -300,21 +299,17 @@ const alpha = {
300
299
  seventyPercent: 0.7,
301
300
  eightyPercent: 0.8
302
301
  };
303
-
304
302
  const getRGBFromHex = hex => {
305
303
  const r = parseInt(hex.slice(1, 3), 16);
306
304
  const g = parseInt(hex.slice(3, 5), 16);
307
305
  const b = parseInt(hex.slice(5, 7), 16);
308
306
  return [r, g, b];
309
307
  };
310
-
311
308
  const hexToRgbA = (hex, alpha = null) => {
312
309
  const values = getRGBFromHex(hex);
313
-
314
310
  if (alpha !== null) {
315
311
  values.push(alpha);
316
312
  }
317
-
318
313
  return `rgba(${values.join(',')})`;
319
314
  };
320
315
  const colorMixer = (hex1, weightage = 1, hex2 = colors.white) => {
@@ -454,29 +449,24 @@ function useLinkBuilder(data) {
454
449
  basePath,
455
450
  isMasterTemplate
456
451
  } = React.useContext(PageContext);
457
-
458
452
  if (isEdit || !data.isLink) {
459
453
  return null;
460
454
  }
461
-
462
455
  if (data?.isExistingLink === false) {
463
456
  return data.link;
464
457
  }
465
-
466
458
  if (data?.isExternal) {
467
459
  return data.link;
468
460
  }
469
-
470
461
  if (!isPreview) {
471
462
  const link = data.link === '/' ? '' : '/' + data.link;
472
463
  return basePath ? `//${basePath}${link}` : null;
473
- } // courses in preview: special case
474
-
464
+ }
475
465
 
466
+ // courses in preview: special case
476
467
  if (data.link === 'courses') {
477
468
  return `//${basePath}/courses`;
478
469
  }
479
-
480
470
  const {
481
471
  pageId
482
472
  } = navList.find(el => el.slug === data?.link) || {};
@@ -652,14 +642,12 @@ var calendar$1 = "data:image/svg+xml,%3Csvg%20width%3D%2218%22%20height%3D%2218%
652
642
  var video = "data:image/svg+xml,%3Csvg%20width%3D%2218%22%20height%3D%2219%22%20viewBox%3D%220%200%2018%2019%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M15.8625%205.1275C15.555%204.9625%2014.91%204.79%2014.0325%205.405L12.93%206.185C12.8475%203.8525%2011.835%202.9375%209.375%202.9375H4.875C2.31%202.9375%201.3125%203.935%201.3125%206.5V12.5C1.3125%2014.225%202.25%2016.0625%204.875%2016.0625H9.375C11.835%2016.0625%2012.8475%2015.1475%2012.93%2012.815L14.0325%2013.595C14.4975%2013.925%2014.9025%2014.03%2015.225%2014.03C15.5025%2014.03%2015.72%2013.9475%2015.8625%2013.8725C16.17%2013.715%2016.6875%2013.2875%2016.6875%2012.215V6.785C16.6875%205.7125%2016.17%205.285%2015.8625%205.1275ZM8.25%209.035C7.4775%209.035%206.84%208.405%206.84%207.625C6.84%206.845%207.4775%206.215%208.25%206.215C9.0225%206.215%209.66%206.845%209.66%207.625C9.66%208.405%209.0225%209.035%208.25%209.035Z%22%20fill%3D%22%23589DF5%22%2F%3E%3C%2Fsvg%3E";
653
643
 
654
644
  /** @returns {import('./types').IconData} */
655
-
656
645
  const getConfiguredIcon1 = url => ({
657
646
  url,
658
647
  svgChildrenConfigs: []
659
648
  });
660
- /** @returns {import('./types').IconData} */
661
-
662
649
 
650
+ /** @returns {import('./types').IconData} */
663
651
  const getConfiguredIcon2 = (url, stroke, fill) => ({
664
652
  url,
665
653
  svgChildrenConfigs: [{
@@ -668,7 +656,6 @@ const getConfiguredIcon2 = (url, stroke, fill) => ({
668
656
  fill
669
657
  }]
670
658
  });
671
-
672
659
  const icons = {
673
660
  'Live class': getConfiguredIcon2(liveTv, false, true),
674
661
  'Recorded videos': getConfiguredIcon2(liveTv2, false, true),
@@ -701,41 +688,51 @@ const icons = {
701
688
  'Video Play': getConfiguredIcon2(videoPlay, false, true),
702
689
  Quote: getConfiguredIcon2(quote, false, true),
703
690
  // Stock
691
+
704
692
  'Stock Growth': getConfiguredIcon2(stockGrowth, false, true),
705
693
  Money: getConfiguredIcon2(money, false, true),
706
694
  Split: getConfiguredIcon2(split, false, true),
707
695
  Chart: getConfiguredIcon2(chart, false, true),
708
696
  // Personality Development
697
+
709
698
  Leaders: getConfiguredIcon2(leaders, false, true),
710
699
  Women: getConfiguredIcon2(women, false, true),
711
700
  Program: getConfiguredIcon2(program, false, true),
712
701
  // Photography
702
+
713
703
  'Video Editing': getConfiguredIcon2(videoEditing, false, true),
714
704
  Editing: getConfiguredIcon2(editing, false, true),
715
705
  Camera: getConfiguredIcon2(camera, false, true),
716
706
  Sessions: getConfiguredIcon2(sessions, false, true),
717
707
  // Computer
708
+
718
709
  'Regular Batches': getConfiguredIcon2(regularBatches, false, true),
719
710
  'Alternate Batches': getConfiguredIcon2(alternateBatches, false, true),
720
711
  'Weekend Batches': getConfiguredIcon2(weekendBatches, false, true),
721
712
  // Life Coach
713
+
722
714
  Girl: getConfiguredIcon2(girl, false, true),
723
715
  Smile: getConfiguredIcon2(smile, false, true),
724
716
  Relationships: getConfiguredIcon2(relationships, false, true),
725
717
  // Music
718
+
726
719
  Vocal: getConfiguredIcon2(vocal, false, true),
727
720
  Instrument: getConfiguredIcon2(instrument, false, true),
728
721
  Music: getConfiguredIcon2(music, false, true),
729
722
  // Fitness
723
+
730
724
  Workout: getConfiguredIcon2(workout, false, true),
731
725
  Barbell: getConfiguredIcon2(barbell, false, true),
732
726
  Trainer: getConfiguredIcon2(trainer, false, true),
733
727
  Report: getConfiguredIcon2(report, false, true),
734
728
  // Govt Exam
729
+
735
730
  'Govt Exam': getConfiguredIcon2(govtExam, false, true),
736
731
  // IIT JEE
732
+
737
733
  College: getConfiguredIcon2(college, false, true),
738
734
  // Others
735
+
739
736
  Teachers: getConfiguredIcon2(teachers, false, true),
740
737
  Learning: getConfiguredIcon2(learning, false, true),
741
738
  Success: getConfiguredIcon2(success, false, true),
@@ -747,12 +744,9 @@ const icons = {
747
744
  Video: getConfiguredIcon2(video, false, true)
748
745
  };
749
746
 
750
- const someMethod1 = (
751
- /** @type {import('./types').IconData["svgChildrenConfigs"]} */
752
- svgChildrenConfigs, color, hoverColor) => {
747
+ const someMethod1 = ( /** @type {import('./types').IconData["svgChildrenConfigs"]} */svgChildrenConfigs, color, hoverColor) => {
753
748
  /** @type {{ [k:string]:React.CSSProperties; }} */
754
749
  const obj = {};
755
-
756
750
  for (const svgChildConfig of svgChildrenConfigs) {
757
751
  if (color) obj['& ' + svgChildConfig.selector] = {
758
752
  fill: svgChildConfig.fill ? color : undefined,
@@ -763,10 +757,8 @@ svgChildrenConfigs, color, hoverColor) => {
763
757
  stroke: svgChildConfig.stroke ? hoverColor : undefined
764
758
  };
765
759
  }
766
-
767
760
  return obj;
768
761
  };
769
-
770
762
  const useStyles$1 = reactJss.createUseStyles({
771
763
  '@keyframes slideRight': {
772
764
  to: {
@@ -810,8 +802,8 @@ const defaultSvgState = {
810
802
  childrenConfigs: [],
811
803
  attributes: defaultAttributes
812
804
  };
813
- /** @type {import('./props.type').IconProps} */
814
805
 
806
+ /** @type {import('./props.type').IconProps} */
815
807
  const iconDefaultProps = {
816
808
  name: undefined,
817
809
  width: 'auto',
@@ -821,8 +813,8 @@ const iconDefaultProps = {
821
813
  opacity: undefined,
822
814
  className: undefined
823
815
  };
824
- /** @type {import("react").FC<import('./props.type').IconProps>} */
825
816
 
817
+ /** @type {import("react").FC<import('./props.type').IconProps>} */
826
818
  const Icon = ({
827
819
  name,
828
820
  width,
@@ -841,10 +833,8 @@ const Icon = ({
841
833
  }, []);
842
834
  /** */
843
835
 
844
- const rootRef = React.useRef(
845
- /** @type {HTMLElement} */
846
- null); // this ref is used to cancel the fetch promise success callback in case name prop changed
847
-
836
+ const rootRef = React.useRef( /** @type {HTMLElement} */null);
837
+ // this ref is used to cancel the fetch promise success callback in case name prop changed
848
838
  const currentName = React.useRef(name);
849
839
  const [svgState, setSvgState] = React.useState(defaultSvgState);
850
840
  const styles = useStyles$1({
@@ -855,46 +845,41 @@ const Icon = ({
855
845
  opacity,
856
846
  hoverColor
857
847
  });
858
-
859
848
  const _className = React.useMemo(() => `${styles.root} ${className || ''}`, [className]);
860
-
861
849
  React.useEffect(() => {
862
850
  // reset
863
851
  currentName.current = name;
864
852
  setSvgState(defaultSvgState);
865
853
  const icon = icons[name];
866
-
867
854
  if (icon) {
868
855
  /**
869
856
  * retrieve from cache
870
857
  * @type {Promise<string>}
871
858
  */
872
859
  let svgProm = Icon.getCachedSvgPromise(name);
873
-
874
860
  if (!svgProm) {
875
861
  svgProm = fetch(icon.url).then(r => r.text()).catch(() => {
876
862
  // unset in cache
877
863
  Icon.setCachedSvgPromise(name, undefined);
878
864
  return null;
879
- }); //save in cache
880
-
865
+ });
866
+ //save in cache
881
867
  Icon.setCachedSvgPromise(name, svgProm);
882
868
  }
883
-
884
869
  svgProm.then(svg => {
885
870
  if (svg && isMounted.current && name === currentName.current) {
886
871
  const div = document.createElement('div');
887
- div.innerHTML = svg; // set the new attributes
872
+ div.innerHTML = svg;
888
873
 
874
+ // set the new attributes
889
875
  const newAttributes = {};
890
-
891
876
  for (const ob of div.firstElementChild.attributes) {
892
877
  const camelCased = ob.name.replace(/(-|:)([a-z])/g, g => g[1].toUpperCase());
893
878
  newAttributes[camelCased] = ob.value;
894
- } // setting the state in last.
895
- // Set state calls are called immediately inside asynchronous operations, timeouts, and intervals.
896
-
879
+ }
897
880
 
881
+ // setting the state in last.
882
+ // Set state calls are called immediately inside asynchronous operations, timeouts, and intervals.
898
883
  setSvgState({
899
884
  innerHtml: div.firstElementChild.innerHTML,
900
885
  childrenConfigs: icon.svgChildrenConfigs,
@@ -914,14 +899,11 @@ const Icon = ({
914
899
  onClick: onClick
915
900
  }));
916
901
  };
917
-
918
902
  Icon.defaultProps = iconDefaultProps;
919
- /** static properties for caching */
920
903
 
904
+ /** static properties for caching */
921
905
  Icon.cacheStore = {};
922
-
923
906
  Icon.getCachedSvgPromise = name => Icon.cacheStore[name];
924
-
925
907
  Icon.setCachedSvgPromise = (name, prom) => Icon.cacheStore[name] = prom;
926
908
 
927
909
  const useDropdownStyles = createUseStyles(theme => ({
@@ -1033,7 +1015,6 @@ function OptionList({
1033
1015
  isLandingPages
1034
1016
  }) {
1035
1017
  React.useContext(PageContext);
1036
-
1037
1018
  const tabsDataModifier = () => {
1038
1019
  return optionsData?.map(dt => {
1039
1020
  return {
@@ -1045,7 +1026,6 @@ function OptionList({
1045
1026
  };
1046
1027
  });
1047
1028
  };
1048
-
1049
1029
  const tabData = tabsDataModifier();
1050
1030
  const classes = useSectionStyles$a();
1051
1031
  return /*#__PURE__*/React__default["default"].createElement("div", {
@@ -1134,31 +1114,24 @@ function DesktopHeader({
1134
1114
  const classes = useSectionStyles$a({
1135
1115
  isFixed
1136
1116
  });
1137
-
1138
1117
  const optionDataFn = () => {
1139
1118
  let optionsArr = navData;
1140
1119
  let optionsData = [];
1141
-
1142
1120
  if (optionsArr?.length > 5) {
1143
1121
  optionsData = optionsArr?.slice(0, 4);
1144
1122
  } else {
1145
1123
  optionsData = optionsArr;
1146
1124
  }
1147
-
1148
1125
  return optionsData;
1149
1126
  };
1150
-
1151
1127
  const moreContentFn = () => {
1152
1128
  let optionsArr = navData;
1153
1129
  let moreContent = [];
1154
-
1155
1130
  if (optionsArr?.length > 5) {
1156
1131
  moreContent = optionsArr?.slice(4);
1157
1132
  }
1158
-
1159
1133
  return moreContent;
1160
1134
  };
1161
-
1162
1135
  return /*#__PURE__*/React__default["default"].createElement("nav", {
1163
1136
  className: classes.section
1164
1137
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -1216,7 +1189,6 @@ function MobileHeader({
1216
1189
  const navEl = React.useRef(null);
1217
1190
  React.useLayoutEffect(() => {
1218
1191
  const body = navEl?.current?.ownerDocument?.body;
1219
-
1220
1192
  if (sideMenu) {
1221
1193
  body?.setAttribute('style', 'overflow: hidden;');
1222
1194
  } else {
@@ -1226,7 +1198,6 @@ function MobileHeader({
1226
1198
  let iosUrl = null;
1227
1199
  let androidUrl = null;
1228
1200
  let downloadLink = null;
1229
-
1230
1201
  if (isTutorWebsite) {
1231
1202
  if (header?.iosUrl) {
1232
1203
  iosUrl = /*#__PURE__*/React__default["default"].createElement(Button, {
@@ -1249,7 +1220,6 @@ function MobileHeader({
1249
1220
  }
1250
1221
  });
1251
1222
  }
1252
-
1253
1223
  if (header?.androidURL) {
1254
1224
  androidUrl = /*#__PURE__*/React__default["default"].createElement(Button, {
1255
1225
  data: {
@@ -1270,7 +1240,6 @@ function MobileHeader({
1270
1240
  }
1271
1241
  });
1272
1242
  }
1273
-
1274
1243
  if (iosUrl && androidUrl) {
1275
1244
  downloadLink = /*#__PURE__*/React__default["default"].createElement("div", null, iosUrl, androidUrl);
1276
1245
  } else if (header?.iosUrl) {
@@ -1320,7 +1289,6 @@ function MobileHeader({
1320
1289
  downloadLink = null;
1321
1290
  }
1322
1291
  }
1323
-
1324
1292
  return /*#__PURE__*/React__default["default"].createElement("nav", {
1325
1293
  ref: navEl,
1326
1294
  className: classes.section
@@ -1377,11 +1345,9 @@ function Header({
1377
1345
  isMobile,
1378
1346
  isTutorWebsite
1379
1347
  } = React.useContext(PageContext);
1380
-
1381
1348
  const filterHiddenNavs = () => {
1382
1349
  return data?.navs?.filter(dt => !dt.isHiddenNav);
1383
1350
  };
1384
-
1385
1351
  return isMobile ? /*#__PURE__*/React__default["default"].createElement(MobileHeader, {
1386
1352
  navData: filterHiddenNavs(),
1387
1353
  header: data,
@@ -1737,7 +1703,6 @@ const rustTheme = {
1737
1703
  light: colors.lightRust,
1738
1704
  lightest: colors.lightestRust
1739
1705
  };
1740
-
1741
1706
  const generateThemePalette = themeColors => ({
1742
1707
  primary: themeColors,
1743
1708
  background: {
@@ -1760,7 +1725,6 @@ const generateThemePalette = themeColors => ({
1760
1725
  tertiary: colors.blueGrey
1761
1726
  }
1762
1727
  });
1763
-
1764
1728
  const bluePalette = generateThemePalette(blueTheme);
1765
1729
  const redPalette = generateThemePalette(redTheme);
1766
1730
  const orangePalette = generateThemePalette(orangeTheme);
@@ -1801,9 +1765,7 @@ const fontComponents = {
1801
1765
  'Merriweather Sans': MerriweatherSans,
1802
1766
  'Arima Madurai': ArimaMadurai
1803
1767
  };
1804
-
1805
1768
  const getFontComponent = font => fontComponents[font] || (() => null);
1806
-
1807
1769
  function FontSeeder({
1808
1770
  fontFamily
1809
1771
  }) {
@@ -1813,37 +1775,30 @@ function FontSeeder({
1813
1775
  const useRubikFont = reactJss.createUseStyles({
1814
1776
  '@import': `url('https://fonts.googleapis.com/css2?family=Lato&family=Rubik:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap')`
1815
1777
  });
1816
-
1817
1778
  function Rubik() {
1818
1779
  // to import "Rubik" font css
1819
1780
  useRubikFont();
1820
1781
  return null;
1821
1782
  }
1822
-
1823
1783
  const useIbmPlexSansFont = reactJss.createUseStyles({
1824
1784
  '@import': 'url(https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap)'
1825
1785
  });
1826
-
1827
1786
  function IbmPlexSans() {
1828
1787
  // to import "Ibm Plex Sans" font css
1829
1788
  useIbmPlexSansFont();
1830
1789
  return null;
1831
1790
  }
1832
-
1833
1791
  const useMerriweatherSansFont = reactJss.createUseStyles({
1834
1792
  '@import': 'url(https://fonts.googleapis.com/css2?family=Merriweather+Sans:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap)'
1835
1793
  });
1836
-
1837
1794
  function MerriweatherSans() {
1838
1795
  // to import "Merriweather Sans" font css
1839
1796
  useMerriweatherSansFont();
1840
1797
  return null;
1841
1798
  }
1842
-
1843
1799
  const useArimaMaduraiFont = reactJss.createUseStyles({
1844
1800
  '@import': 'url(https://fonts.googleapis.com/css2?family=Arima+Madurai:wght@400;500;700&display=swap)'
1845
1801
  });
1846
-
1847
1802
  function ArimaMadurai() {
1848
1803
  // to import "Arima Madurai" font css
1849
1804
  useArimaMaduraiFont();
@@ -1851,35 +1806,35 @@ function ArimaMadurai() {
1851
1806
  }
1852
1807
 
1853
1808
  const TYPE_TO_COMPONENT_MAP$1 = {
1854
- BANNER_CAROUSEL_RIGHT: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$k; })),
1855
- GRID_CARD: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$j; })),
1856
- BANNER_CAROUSEL_CENTER: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$i; })),
1857
- BANNER_CAROUSEL_LEFT: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$h; })),
1858
- FORM_SUBSCRIBE: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$g; })),
1859
- TEXT_TESTIMONIAL: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$f; })),
1860
- VIDEO_TESTIMONIAL: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$e; })),
1861
- VIDEO: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$d; })),
1862
- INFO: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$c; })),
1863
- TEXT: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$b; })),
1864
- IMAGE_GALLERY: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$a; })),
1865
- FAQ_LISTING: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$9; })),
1866
- COURSE_CAROUSEL: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$7; })),
1867
- TEAM_CARD: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$6; })),
1868
- TEXT_GRID: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$8; })),
1869
- CONTACT: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$5; })),
1870
- FORM_ENQUIRY: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$4; })),
1871
- WEBINAR_LANDING_PAGE: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$3; })),
1872
- COURSE_LANDING_PAGE: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$2; })),
1873
- FORM_LANDING_PAGE: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$1; })),
1874
- TILES_SECTION: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index; }))
1809
+ BANNER_CAROUSEL_RIGHT: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$l; })),
1810
+ GRID_CARD: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$k; })),
1811
+ BANNER_CAROUSEL_CENTER: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$j; })),
1812
+ BANNER_CAROUSEL_LEFT: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$i; })),
1813
+ FORM_SUBSCRIBE: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$h; })),
1814
+ TEXT_TESTIMONIAL: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$g; })),
1815
+ VIDEO_TESTIMONIAL: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$f; })),
1816
+ VIDEO: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$e; })),
1817
+ INFO: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$d; })),
1818
+ TEXT: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$c; })),
1819
+ IMAGE_GALLERY: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$b; })),
1820
+ FAQ_LISTING: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$a; })),
1821
+ COURSE_CAROUSEL: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$8; })),
1822
+ TEAM_CARD: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$7; })),
1823
+ TEXT_GRID: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$9; })),
1824
+ CONTACT: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$6; })),
1825
+ FORM_ENQUIRY: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$5; })),
1826
+ WEBINAR_LANDING_PAGE: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$4; })),
1827
+ COURSE_LANDING_PAGE: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$3; })),
1828
+ FORM_LANDING_PAGE: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$2; })),
1829
+ TILES_SECTION: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$1; })),
1830
+ EMAIL_DRIP_MARKET: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index; }))
1875
1831
  };
1876
-
1877
1832
  const getCompToRender$1 = type => TYPE_TO_COMPONENT_MAP$1[type] || (() => null);
1878
-
1879
1833
  const MemoisedSection$1 = /*#__PURE__*/React.memo(({
1880
1834
  sectionData,
1881
1835
  extraProps
1882
1836
  }) => {
1837
+ console.log('templatesectiondata', sectionData);
1883
1838
  const SectionComp = getCompToRender$1(sectionData.type);
1884
1839
  return /*#__PURE__*/React__default["default"].createElement(SectionComp, {
1885
1840
  sectionData: sectionData,
@@ -1891,9 +1846,7 @@ function SectionRenderer$1({
1891
1846
  extraProps
1892
1847
  }) {
1893
1848
  return /*#__PURE__*/React__default["default"].createElement(React.Suspense, {
1894
- fallback: null
1895
- /*GIF maybe*/
1896
-
1849
+ fallback: null /*GIF maybe*/
1897
1850
  }, /*#__PURE__*/React__default["default"].createElement(MemoisedSection$1, {
1898
1851
  sectionData: sectionData,
1899
1852
  extraProps: extraProps
@@ -2177,23 +2130,18 @@ const getArrowRotationAngle = props => {
2177
2130
  switch (true) {
2178
2131
  case props.left:
2179
2132
  return 180;
2180
-
2181
2133
  case props.up:
2182
2134
  return 270;
2183
-
2184
2135
  case props.down:
2185
2136
  return 90;
2186
-
2187
2137
  case props.right:
2188
2138
  default:
2189
2139
  return 0;
2190
2140
  }
2191
2141
  };
2192
-
2193
2142
  const sizeHandler = ({
2194
2143
  size
2195
2144
  }) => size === 'small' ? '32px' : '48px';
2196
-
2197
2145
  const useArrowButtonStyles = createUseStyles(theme => ({
2198
2146
  arrowButtonContainer: {
2199
2147
  cursor: 'pointer',
@@ -2233,7 +2181,6 @@ function dotsToShow(i, n) {
2233
2181
  const leftToShow = i < elementsToShow / 2;
2234
2182
  const rightToShow = n - i - 1 < elementsToShow / 2;
2235
2183
  let leftCount, rightCount;
2236
-
2237
2184
  if (leftToShow) {
2238
2185
  leftCount = i;
2239
2186
  rightCount = elementsToShow - i - 1;
@@ -2244,13 +2191,11 @@ function dotsToShow(i, n) {
2244
2191
  leftCount = 2;
2245
2192
  rightCount = 2;
2246
2193
  }
2247
-
2248
2194
  return {
2249
2195
  leftCount,
2250
2196
  rightCount
2251
2197
  };
2252
2198
  }
2253
-
2254
2199
  function Carousel({
2255
2200
  settings,
2256
2201
  children,
@@ -2304,15 +2249,12 @@ function Carousel({
2304
2249
  ...settings,
2305
2250
  className: settings?.className ? settings?.className + ' ' + classes.sliderClass : classes.sliderClass
2306
2251
  };
2307
-
2308
2252
  const nextClick = () => {
2309
2253
  sliderRef.current.slickNext();
2310
2254
  };
2311
-
2312
2255
  const previousClick = () => {
2313
2256
  sliderRef.current.slickPrev();
2314
2257
  };
2315
-
2316
2258
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(Slider__default["default"], _extends({
2317
2259
  ref: sliderRef
2318
2260
  }, sliderSettings), children), hideArrow || isMobile ? null : /*#__PURE__*/React__default["default"].createElement("div", {
@@ -2328,7 +2270,7 @@ function Carousel({
2328
2270
  })));
2329
2271
  }
2330
2272
 
2331
- function Section$3({
2273
+ function Section$4({
2332
2274
  nodeData
2333
2275
  }) {
2334
2276
  const classes = useSectionStyles$8();
@@ -2377,7 +2319,6 @@ function Section$3({
2377
2319
  src: nodeData.image.metadata.value
2378
2320
  })));
2379
2321
  }
2380
-
2381
2322
  function BannerCarouselRight({
2382
2323
  sectionData
2383
2324
  }) {
@@ -2401,15 +2342,13 @@ function BannerCarouselRight({
2401
2342
  className: classes.bannerCarouselRightSection
2402
2343
  }, /*#__PURE__*/React__default["default"].createElement("div", {
2403
2344
  className: classes.sectionContainer
2404
- }, /*#__PURE__*/React__default["default"].createElement(Wrapper, wrapperProps, bannerCarousel.components.map((node, idx) => /*#__PURE__*/React__default["default"].createElement(Section$3, {
2345
+ }, /*#__PURE__*/React__default["default"].createElement(Wrapper, wrapperProps, bannerCarousel.components.map((node, idx) => /*#__PURE__*/React__default["default"].createElement(Section$4, {
2405
2346
  nodeData: node,
2406
- key: idx
2407
- /* or some other unique property */
2408
-
2347
+ key: idx /* or some other unique property */
2409
2348
  })))));
2410
2349
  }
2411
2350
 
2412
- var index$k = /*#__PURE__*/Object.freeze({
2351
+ var index$l = /*#__PURE__*/Object.freeze({
2413
2352
  __proto__: null,
2414
2353
  'default': BannerCarouselRight
2415
2354
  });
@@ -2612,11 +2551,9 @@ function List({
2612
2551
  containerWidth
2613
2552
  });
2614
2553
  const [nodeData] = sectionData.components;
2615
-
2616
2554
  const getNumber = val => {
2617
2555
  return val.toString().length == 1 ? '0' + val : val;
2618
2556
  };
2619
-
2620
2557
  return /*#__PURE__*/React__default["default"].createElement("section", {
2621
2558
  className: classes.section
2622
2559
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -2661,7 +2598,7 @@ function List({
2661
2598
  }))));
2662
2599
  }
2663
2600
 
2664
- var index$j = /*#__PURE__*/Object.freeze({
2601
+ var index$k = /*#__PURE__*/Object.freeze({
2665
2602
  __proto__: null,
2666
2603
  'default': List
2667
2604
  });
@@ -2760,7 +2697,7 @@ const useSectionStyles$6 = createUseStyles(theme => ({
2760
2697
  }
2761
2698
  }));
2762
2699
 
2763
- const Section$2 = ({
2700
+ const Section$3 = ({
2764
2701
  nodeData
2765
2702
  }) => {
2766
2703
  const {
@@ -2808,7 +2745,6 @@ const Section$2 = ({
2808
2745
  size: isMobile ? 'small' : 'medium'
2809
2746
  })))));
2810
2747
  };
2811
-
2812
2748
  function BannerCarouselCenter({
2813
2749
  sectionData
2814
2750
  }) {
@@ -2823,15 +2759,13 @@ function BannerCarouselCenter({
2823
2759
  } : {};
2824
2760
  return /*#__PURE__*/React__default["default"].createElement("section", {
2825
2761
  className: classes.bannerCarouselCenterSection
2826
- }, /*#__PURE__*/React__default["default"].createElement(Wrapper, wrapperProps, bannerCarousel.components.map((node, idx) => /*#__PURE__*/React__default["default"].createElement(Section$2, {
2762
+ }, /*#__PURE__*/React__default["default"].createElement(Wrapper, wrapperProps, bannerCarousel.components.map((node, idx) => /*#__PURE__*/React__default["default"].createElement(Section$3, {
2827
2763
  nodeData: node,
2828
- key: idx
2829
- /* or some other unique property */
2830
-
2764
+ key: idx /* or some other unique property */
2831
2765
  }))));
2832
2766
  }
2833
2767
 
2834
- var index$i = /*#__PURE__*/Object.freeze({
2768
+ var index$j = /*#__PURE__*/Object.freeze({
2835
2769
  __proto__: null,
2836
2770
  'default': BannerCarouselCenter
2837
2771
  });
@@ -2943,7 +2877,7 @@ const useSectionStyles$5 = createUseStyles(theme => {
2943
2877
  };
2944
2878
  });
2945
2879
 
2946
- function Section$1({
2880
+ function Section$2({
2947
2881
  nodeData
2948
2882
  }) {
2949
2883
  const classes = useSectionStyles$5();
@@ -2994,7 +2928,6 @@ function Section$1({
2994
2928
  size: isMobile ? 'small' : 'medium'
2995
2929
  })));
2996
2930
  }
2997
-
2998
2931
  function BannerCarouselLeft({
2999
2932
  sectionData
3000
2933
  }) {
@@ -3014,15 +2947,13 @@ function BannerCarouselLeft({
3014
2947
  className: classes.section
3015
2948
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3016
2949
  className: classes.sectionContainer
3017
- }, /*#__PURE__*/React__default["default"].createElement(Wrapper, null, bannerCarousel.components.map((node, idx) => /*#__PURE__*/React__default["default"].createElement(Section$1, {
2950
+ }, /*#__PURE__*/React__default["default"].createElement(Wrapper, null, bannerCarousel.components.map((node, idx) => /*#__PURE__*/React__default["default"].createElement(Section$2, {
3018
2951
  nodeData: node,
3019
- key: idx
3020
- /* or some other unique property */
3021
-
2952
+ key: idx /* or some other unique property */
3022
2953
  })))));
3023
2954
  }
3024
2955
 
3025
- var index$h = /*#__PURE__*/Object.freeze({
2956
+ var index$i = /*#__PURE__*/Object.freeze({
3026
2957
  __proto__: null,
3027
2958
  'default': BannerCarouselLeft
3028
2959
  });
@@ -3173,7 +3104,6 @@ async function postApiCall(baseURLs, data) {
3173
3104
  },
3174
3105
  data
3175
3106
  });
3176
-
3177
3107
  if (res) {
3178
3108
  return res.data;
3179
3109
  }
@@ -3198,7 +3128,6 @@ async function postApiCallForm(baseURLs, data, extraProps) {
3198
3128
  if (extraProps && extraProps.formSubmitSuccess) {
3199
3129
  extraProps.formSubmitSuccess();
3200
3130
  }
3201
-
3202
3131
  return res.data;
3203
3132
  });
3204
3133
  } catch (err) {
@@ -3311,7 +3240,6 @@ function SubscribeToNewsletter({
3311
3240
  const [inputVal, setInputVal] = React.useState(formInitialValue);
3312
3241
  let [isValid, setIsValid] = React.useState(true);
3313
3242
  let [btnDisabled, setBtnDisabled] = React.useState(false);
3314
-
3315
3243
  const handleSubmit = () => {
3316
3244
  let data = {
3317
3245
  sectionId: sectionData.sectionId,
@@ -3327,11 +3255,9 @@ function SubscribeToNewsletter({
3327
3255
  setBtnDisabled(true);
3328
3256
  setInputVal(formInitialValue);
3329
3257
  };
3330
-
3331
3258
  const checkValidity = () => {
3332
3259
  if (validations?.[nodeData?.inputField?.metadata?.validationType]?.length) {
3333
3260
  let regex = new RegExp(validations[nodeData?.inputField?.metadata?.validationType]);
3334
-
3335
3261
  if (regex?.test(inputVal)) {
3336
3262
  setIsValid(true);
3337
3263
  } else {
@@ -3339,7 +3265,6 @@ function SubscribeToNewsletter({
3339
3265
  }
3340
3266
  }
3341
3267
  };
3342
-
3343
3268
  React.useEffect(() => {
3344
3269
  if (!isValid) {
3345
3270
  setBtnDisabled(true);
@@ -3417,7 +3342,7 @@ function SubscribeToNewsletter({
3417
3342
  })))))));
3418
3343
  }
3419
3344
 
3420
- var index$g = /*#__PURE__*/Object.freeze({
3345
+ var index$h = /*#__PURE__*/Object.freeze({
3421
3346
  __proto__: null,
3422
3347
  'default': SubscribeToNewsletter
3423
3348
  });
@@ -3584,7 +3509,7 @@ function QuotesComponent() {
3584
3509
  }));
3585
3510
  }
3586
3511
 
3587
- function Section({
3512
+ function Section$1({
3588
3513
  nodeData
3589
3514
  }) {
3590
3515
  const {
@@ -3667,19 +3592,18 @@ function Section({
3667
3592
  className: classes.contentRow
3668
3593
  }, carouselContent))));
3669
3594
  }
3670
-
3671
3595
  function Testimonials({
3672
3596
  sectionData
3673
3597
  }) {
3674
3598
  const classes = useTestimonialStyles();
3675
3599
  return /*#__PURE__*/React__default["default"].createElement("div", {
3676
3600
  className: classes.testimonialContainer
3677
- }, /*#__PURE__*/React__default["default"].createElement(Section, {
3601
+ }, /*#__PURE__*/React__default["default"].createElement(Section$1, {
3678
3602
  nodeData: sectionData.components[0]
3679
3603
  }));
3680
3604
  }
3681
3605
 
3682
- var index$f = /*#__PURE__*/Object.freeze({
3606
+ var index$g = /*#__PURE__*/Object.freeze({
3683
3607
  __proto__: null,
3684
3608
  'default': Testimonials
3685
3609
  });
@@ -3732,7 +3656,6 @@ const loaderStyle = theme => ({
3732
3656
  });
3733
3657
 
3734
3658
  const useStyles = reactJss.createUseStyles(loaderStyle);
3735
-
3736
3659
  function Loader({
3737
3660
  texts
3738
3661
  }) {
@@ -3744,13 +3667,11 @@ function Loader({
3744
3667
  React.useEffect(() => {
3745
3668
  if (texts && texts.length) {
3746
3669
  let textID = '';
3747
-
3748
3670
  for (let i = 0; i < texts.length; i++) {
3749
3671
  textID = setTimeout(() => {
3750
3672
  setLoaderText(texts[i]);
3751
3673
  }, 2000 * i);
3752
3674
  }
3753
-
3754
3675
  return () => {
3755
3676
  clearTimeout(textID);
3756
3677
  };
@@ -3818,18 +3739,15 @@ function VideoPlayer(props) {
3818
3739
  imageUrl: imageUrl
3819
3740
  });
3820
3741
  const theme = useTheme();
3821
-
3822
3742
  function getId(url) {
3823
3743
  var regExp = /^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/;
3824
3744
  var match = url?.match(regExp);
3825
-
3826
3745
  if (match?.[2].length == 11) {
3827
3746
  return 'https://www.youtube.com/embed/' + match[2];
3828
3747
  } else {
3829
3748
  return url;
3830
3749
  }
3831
3750
  }
3832
-
3833
3751
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, !isLoaded && /*#__PURE__*/React__default["default"].createElement("div", {
3834
3752
  className: classes.imgContainer
3835
3753
  }, isEnabled ? /*#__PURE__*/React__default["default"].createElement(Loader, null) : /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, props.onlyThumbnail ? null : /*#__PURE__*/React__default["default"].createElement(Icon, {
@@ -4058,7 +3976,7 @@ function VideoTestimonial({
4058
3976
  }))))));
4059
3977
  }
4060
3978
 
4061
- var index$e = /*#__PURE__*/Object.freeze({
3979
+ var index$f = /*#__PURE__*/Object.freeze({
4062
3980
  __proto__: null,
4063
3981
  'default': VideoTestimonial
4064
3982
  });
@@ -4286,7 +4204,7 @@ function Video({
4286
4204
  }, carouselContent))));
4287
4205
  }
4288
4206
 
4289
- var index$d = /*#__PURE__*/Object.freeze({
4207
+ var index$e = /*#__PURE__*/Object.freeze({
4290
4208
  __proto__: null,
4291
4209
  'default': Video
4292
4210
  });
@@ -4512,7 +4430,7 @@ function Info({
4512
4430
  }, carouselContent))));
4513
4431
  }
4514
4432
 
4515
- var index$c = /*#__PURE__*/Object.freeze({
4433
+ var index$d = /*#__PURE__*/Object.freeze({
4516
4434
  __proto__: null,
4517
4435
  'default': Info
4518
4436
  });
@@ -4631,7 +4549,7 @@ const TextSection = ({
4631
4549
  })))));
4632
4550
  };
4633
4551
 
4634
- var index$b = /*#__PURE__*/Object.freeze({
4552
+ var index$c = /*#__PURE__*/Object.freeze({
4635
4553
  __proto__: null,
4636
4554
  'default': TextSection
4637
4555
  });
@@ -4672,8 +4590,8 @@ const usePhotoGalleryStyles = createUseStyles(theme => {
4672
4590
  width: 'calc(100% - 2px)',
4673
4591
  position: 'relative',
4674
4592
  paddingBottom: '59.83%' // keeping aspect ratio 585x350
4675
-
4676
4593
  },
4594
+
4677
4595
  contentRow: {
4678
4596
  display: 'grid',
4679
4597
  gridTemplateColumns: ({
@@ -4788,7 +4706,7 @@ function PhotoGallery({
4788
4706
  }, carouselContent))));
4789
4707
  }
4790
4708
 
4791
- var index$a = /*#__PURE__*/Object.freeze({
4709
+ var index$b = /*#__PURE__*/Object.freeze({
4792
4710
  __proto__: null,
4793
4711
  'default': PhotoGallery
4794
4712
  });
@@ -4932,7 +4850,6 @@ const FAQListing = ({
4932
4850
  isSelected: selectedIndex === index
4933
4851
  })))));
4934
4852
  };
4935
-
4936
4853
  const Accordion = ({
4937
4854
  item,
4938
4855
  isSelected,
@@ -4966,7 +4883,7 @@ const Accordion = ({
4966
4883
  })));
4967
4884
  };
4968
4885
 
4969
- var index$9 = /*#__PURE__*/Object.freeze({
4886
+ var index$a = /*#__PURE__*/Object.freeze({
4970
4887
  __proto__: null,
4971
4888
  'default': FAQListing
4972
4889
  });
@@ -5131,7 +5048,7 @@ const TextGrid = ({
5131
5048
  }, carouselContent))));
5132
5049
  };
5133
5050
 
5134
- var index$8 = /*#__PURE__*/Object.freeze({
5051
+ var index$9 = /*#__PURE__*/Object.freeze({
5135
5052
  __proto__: null,
5136
5053
  'default': TextGrid
5137
5054
  });
@@ -5217,9 +5134,10 @@ const useCourseStyles = createUseStyles(theme => {
5217
5134
  flexGrow: 1,
5218
5135
  display: 'flex',
5219
5136
  flexDirection: 'column',
5220
- justifyContent: 'space-between' //alignItems: 'center',
5221
-
5137
+ justifyContent: 'space-between'
5138
+ //alignItems: 'center',
5222
5139
  },
5140
+
5223
5141
  courseCardTags: {
5224
5142
  display: 'flex',
5225
5143
  justifyContent: 'flex-start',
@@ -5245,11 +5163,12 @@ const useCourseStyles = createUseStyles(theme => {
5245
5163
  wordBreak: 'break-word',
5246
5164
  padding: '12px 0px',
5247
5165
  textAlign: 'left',
5248
- display: 'inline-block' // overflow: 'hidden',
5166
+ display: 'inline-block'
5167
+ // overflow: 'hidden',
5249
5168
  // whiteSpace: 'nowrap',
5250
5169
  // textOverflow: 'ellipsis'
5251
-
5252
5170
  },
5171
+
5253
5172
  courseCardDiscount: {
5254
5173
  display: 'flex',
5255
5174
  justifyContent: 'flex-start',
@@ -5331,7 +5250,8 @@ const useCourseStyles = createUseStyles(theme => {
5331
5250
  }
5332
5251
  },
5333
5252
  '@media (max-width: 768px)': {
5334
- coursesContainer: {//background: theme?.palette?.background?.primary
5253
+ coursesContainer: {
5254
+ //background: theme?.palette?.background?.primary
5335
5255
  },
5336
5256
  coursesCardAndText: {
5337
5257
  padding: '70px 30px'
@@ -5363,7 +5283,6 @@ async function getCourseList(baseURLs, hashToken) {
5363
5283
  if (!hashToken) {
5364
5284
  throw 'Missing hash token';
5365
5285
  }
5366
-
5367
5286
  const res = await axios__default["default"]({
5368
5287
  method: 'get',
5369
5288
  baseURL: baseURLs?.API_COURSE_URL,
@@ -5375,7 +5294,6 @@ async function getCourseList(baseURLs, hashToken) {
5375
5294
  requiredFilters: '[10]'
5376
5295
  }
5377
5296
  });
5378
-
5379
5297
  if (res) {
5380
5298
  return res.data;
5381
5299
  }
@@ -5387,7 +5305,6 @@ function getShortenedSubstring(name, length, allowDots = true) {
5387
5305
  if (name) {
5388
5306
  return name.length < length ? name : `${name.substr(0, length)}${allowDots && '...'}`;
5389
5307
  }
5390
-
5391
5308
  return '';
5392
5309
  }
5393
5310
 
@@ -5467,13 +5384,11 @@ function courses({
5467
5384
  containerWidth
5468
5385
  });
5469
5386
  const [nodeData] = sectionData?.components;
5470
-
5471
5387
  const handleApiCall = () => {
5472
5388
  if (baseURLs) {
5473
5389
  getCourseList(baseURLs, hashToken).then(response => {
5474
5390
  const placeholders = nodeData?.cardCarousel?.metadata?.placeholders;
5475
5391
  const coursesData = response?.data?.coursesData;
5476
-
5477
5392
  if (coursesData && coursesData.length) {
5478
5393
  setCardList(response?.data?.coursesData);
5479
5394
  setShowShimmer(false);
@@ -5484,12 +5399,12 @@ function courses({
5484
5399
  setShowShimmer(false);
5485
5400
  setFallbackImages(placeholders);
5486
5401
  }
5487
- } // For User Website & Draft Preview: If no data found, hide section.
5402
+ }
5403
+ // For User Website & Draft Preview: If no data found, hide section.
5488
5404
  else setErrored(true);
5489
5405
  }
5490
5406
  }).catch(err => {
5491
5407
  const errMsg = err?.response?.data?.data?.message;
5492
-
5493
5408
  if (errMsg === 'NOT_FOUND') {
5494
5409
  if (nodeData?.cardCarousel?.metadata?.placeholders?.length && isEdit) {
5495
5410
  setShowShimmer(false);
@@ -5501,16 +5416,16 @@ function courses({
5501
5416
  });
5502
5417
  }
5503
5418
  };
5504
-
5505
5419
  React.useEffect(() => {
5506
- const placeholders = nodeData?.cardCarousel?.metadata?.placeholders; // For Master template Preview: Show placeholder images. If placeholder doesn't come from backend, show shimmer.
5507
-
5420
+ const placeholders = nodeData?.cardCarousel?.metadata?.placeholders;
5421
+ // For Master template Preview: Show placeholder images. If placeholder doesn't come from backend, show shimmer.
5508
5422
  if (isMasterTemplate) {
5509
5423
  if (placeholders && placeholders.length) {
5510
5424
  setShowShimmer(false);
5511
5425
  setFallbackImages(placeholders);
5512
5426
  }
5513
- } // other
5427
+ }
5428
+ // other
5514
5429
  else {
5515
5430
  handleApiCall();
5516
5431
  }
@@ -5575,7 +5490,6 @@ function courses({
5575
5490
  });
5576
5491
  })))));
5577
5492
  }
5578
-
5579
5493
  function SimpleCardsContainer({
5580
5494
  children,
5581
5495
  classes
@@ -5585,7 +5499,7 @@ function SimpleCardsContainer({
5585
5499
  }, children);
5586
5500
  }
5587
5501
 
5588
- var index$7 = /*#__PURE__*/Object.freeze({
5502
+ var index$8 = /*#__PURE__*/Object.freeze({
5589
5503
  __proto__: null,
5590
5504
  'default': courses
5591
5505
  });
@@ -5808,7 +5722,7 @@ function TeamCard({
5808
5722
  }, " ", carouselContent)));
5809
5723
  }
5810
5724
 
5811
- var index$6 = /*#__PURE__*/Object.freeze({
5725
+ var index$7 = /*#__PURE__*/Object.freeze({
5812
5726
  __proto__: null,
5813
5727
  'default': TeamCard
5814
5728
  });
@@ -5991,7 +5905,6 @@ function FormEnquiry({
5991
5905
  setBtnDisabled(true);
5992
5906
  }
5993
5907
  }, [validData]);
5994
-
5995
5908
  const handleSubmit = () => {
5996
5909
  let data = {
5997
5910
  sectionId: sectionData?._id || null,
@@ -6002,23 +5915,22 @@ function FormEnquiry({
6002
5915
  setBtnDisabled(true);
6003
5916
  setInputVal(formInitialValue);
6004
5917
  };
6005
-
6006
5918
  const checkValidity = (regexField, fieldname, fieldValidity) => {
6007
5919
  if (validations?.[regexField]?.length) {
6008
5920
  let regex = new RegExp(validations[regexField]);
6009
-
6010
5921
  if (regex?.test(inputVal[fieldname])) {
6011
- setValidData({ ...validData,
5922
+ setValidData({
5923
+ ...validData,
6012
5924
  [fieldValidity]: 1
6013
5925
  });
6014
5926
  } else {
6015
- setValidData({ ...validData,
5927
+ setValidData({
5928
+ ...validData,
6016
5929
  [fieldValidity]: 0
6017
5930
  });
6018
5931
  }
6019
5932
  }
6020
5933
  };
6021
-
6022
5934
  return /*#__PURE__*/React__default["default"].createElement("section", {
6023
5935
  className: classes.section
6024
5936
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -6098,7 +6010,8 @@ function FormEnquiry({
6098
6010
  isValid: validData.nameValid,
6099
6011
  inputType: 'input',
6100
6012
  onChange: e => {
6101
- setInputVal({ ...inputVal,
6013
+ setInputVal({
6014
+ ...inputVal,
6102
6015
  name: e.target.value
6103
6016
  });
6104
6017
  },
@@ -6106,7 +6019,8 @@ function FormEnquiry({
6106
6019
  checkValidity(nodeData?.nameField?.metadata?.validationType, 'name', 'nameValid');
6107
6020
  },
6108
6021
  onFocus: () => {
6109
- setValidData({ ...validData,
6022
+ setValidData({
6023
+ ...validData,
6110
6024
  nameValid: 1
6111
6025
  });
6112
6026
  }
@@ -6118,7 +6032,8 @@ function FormEnquiry({
6118
6032
  isValid: validData.phoneValid,
6119
6033
  inputType: 'input',
6120
6034
  onChange: e => {
6121
- setInputVal({ ...inputVal,
6035
+ setInputVal({
6036
+ ...inputVal,
6122
6037
  phone: e.target.value
6123
6038
  });
6124
6039
  },
@@ -6126,7 +6041,8 @@ function FormEnquiry({
6126
6041
  checkValidity(nodeData?.phoneField?.metadata?.validationType, 'phone', 'phoneValid');
6127
6042
  },
6128
6043
  onFocus: () => {
6129
- setValidData({ ...validData,
6044
+ setValidData({
6045
+ ...validData,
6130
6046
  phoneValid: 1
6131
6047
  });
6132
6048
  }
@@ -6138,7 +6054,8 @@ function FormEnquiry({
6138
6054
  isValid: validData.emailValid,
6139
6055
  inputType: 'input',
6140
6056
  onChange: e => {
6141
- setInputVal({ ...inputVal,
6057
+ setInputVal({
6058
+ ...inputVal,
6142
6059
  email: e.target.value
6143
6060
  });
6144
6061
  },
@@ -6146,7 +6063,8 @@ function FormEnquiry({
6146
6063
  checkValidity(nodeData?.emailField?.metadata?.validationType, 'email', 'emailValid');
6147
6064
  },
6148
6065
  onFocus: () => {
6149
- setValidData({ ...validData,
6066
+ setValidData({
6067
+ ...validData,
6150
6068
  emailValid: 1
6151
6069
  });
6152
6070
  }
@@ -6158,7 +6076,8 @@ function FormEnquiry({
6158
6076
  isValid: validData.messageValid,
6159
6077
  inputType: 'textarea',
6160
6078
  onChange: e => {
6161
- setInputVal({ ...inputVal,
6079
+ setInputVal({
6080
+ ...inputVal,
6162
6081
  message: e.target.value
6163
6082
  });
6164
6083
  },
@@ -6166,7 +6085,8 @@ function FormEnquiry({
6166
6085
  checkValidity(nodeData?.messageField?.metadata?.validationType, 'message', 'messageValid');
6167
6086
  },
6168
6087
  onFocus: () => {
6169
- setValidData({ ...validData,
6088
+ setValidData({
6089
+ ...validData,
6170
6090
  messageValid: 1
6171
6091
  });
6172
6092
  }
@@ -6184,7 +6104,7 @@ function FormEnquiry({
6184
6104
  }))))));
6185
6105
  }
6186
6106
 
6187
- var index$5 = /*#__PURE__*/Object.freeze({
6107
+ var index$6 = /*#__PURE__*/Object.freeze({
6188
6108
  __proto__: null,
6189
6109
  'default': FormEnquiry
6190
6110
  });
@@ -6397,7 +6317,6 @@ function Contact({
6397
6317
  phoneValid: 1,
6398
6318
  messageValid: 1
6399
6319
  });
6400
-
6401
6320
  const handleSubmit = () => {
6402
6321
  const data = {
6403
6322
  sectionId: sectionData?._id || null,
@@ -6408,7 +6327,6 @@ function Contact({
6408
6327
  setBtnDisabled(true);
6409
6328
  setInputVal(formInitialValue);
6410
6329
  };
6411
-
6412
6330
  React.useEffect(() => {
6413
6331
  if (validData?.nameValid && validData?.emailValid && validData?.phoneValid && validData?.messageValid) {
6414
6332
  setBtnDisabled(false);
@@ -6416,23 +6334,22 @@ function Contact({
6416
6334
  setBtnDisabled(true);
6417
6335
  }
6418
6336
  }, [validData]);
6419
-
6420
6337
  const checkValidity = (regexField, fieldname, fieldValidity) => {
6421
6338
  if (validations?.[regexField]?.length) {
6422
6339
  let regex = new RegExp(validations[regexField]);
6423
-
6424
6340
  if (regex?.test(inputVal[fieldname])) {
6425
- setValidData({ ...validData,
6341
+ setValidData({
6342
+ ...validData,
6426
6343
  [fieldValidity]: 1
6427
6344
  });
6428
6345
  } else {
6429
- setValidData({ ...validData,
6346
+ setValidData({
6347
+ ...validData,
6430
6348
  [fieldValidity]: 0
6431
6349
  });
6432
6350
  }
6433
6351
  }
6434
6352
  };
6435
-
6436
6353
  return /*#__PURE__*/React__default["default"].createElement("section", {
6437
6354
  className: classes.section
6438
6355
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -6474,7 +6391,8 @@ function Contact({
6474
6391
  isValid: validData.nameValid,
6475
6392
  inputType: 'input',
6476
6393
  onChange: e => {
6477
- setInputVal({ ...inputVal,
6394
+ setInputVal({
6395
+ ...inputVal,
6478
6396
  name: e.target.value
6479
6397
  });
6480
6398
  },
@@ -6482,7 +6400,8 @@ function Contact({
6482
6400
  checkValidity(nodeData?.nameField?.metadata?.validationType, 'name', 'nameValid');
6483
6401
  },
6484
6402
  onFocus: () => {
6485
- setValidData({ ...validData,
6403
+ setValidData({
6404
+ ...validData,
6486
6405
  nameValid: 1
6487
6406
  });
6488
6407
  }
@@ -6494,7 +6413,8 @@ function Contact({
6494
6413
  isValid: validData.phoneValid,
6495
6414
  inputType: 'input',
6496
6415
  onChange: e => {
6497
- setInputVal({ ...inputVal,
6416
+ setInputVal({
6417
+ ...inputVal,
6498
6418
  phone: e.target.value
6499
6419
  });
6500
6420
  },
@@ -6502,7 +6422,8 @@ function Contact({
6502
6422
  checkValidity(nodeData?.phoneField?.metadata?.validationType, 'phone', 'phoneValid');
6503
6423
  },
6504
6424
  onFocus: () => {
6505
- setValidData({ ...validData,
6425
+ setValidData({
6426
+ ...validData,
6506
6427
  phoneValid: 1
6507
6428
  });
6508
6429
  }
@@ -6514,7 +6435,8 @@ function Contact({
6514
6435
  isValid: validData.emailValid,
6515
6436
  inputType: 'input',
6516
6437
  onChange: e => {
6517
- setInputVal({ ...inputVal,
6438
+ setInputVal({
6439
+ ...inputVal,
6518
6440
  email: e.target.value
6519
6441
  });
6520
6442
  },
@@ -6522,7 +6444,8 @@ function Contact({
6522
6444
  checkValidity(nodeData?.emailField?.metadata?.validationType, 'email', 'emailValid');
6523
6445
  },
6524
6446
  onFocus: () => {
6525
- setValidData({ ...validData,
6447
+ setValidData({
6448
+ ...validData,
6526
6449
  emailValid: 1
6527
6450
  });
6528
6451
  }
@@ -6534,7 +6457,8 @@ function Contact({
6534
6457
  isValid: validData.messageValid,
6535
6458
  inputType: 'textarea',
6536
6459
  onChange: e => {
6537
- setInputVal({ ...inputVal,
6460
+ setInputVal({
6461
+ ...inputVal,
6538
6462
  message: e.target.value
6539
6463
  });
6540
6464
  },
@@ -6542,7 +6466,8 @@ function Contact({
6542
6466
  checkValidity(nodeData?.messageField?.metadata?.validationType, 'message', 'messageValid');
6543
6467
  },
6544
6468
  onFocus: () => {
6545
- setValidData({ ...validData,
6469
+ setValidData({
6470
+ ...validData,
6546
6471
  messageValid: 1
6547
6472
  });
6548
6473
  }
@@ -6560,7 +6485,7 @@ function Contact({
6560
6485
  }))))));
6561
6486
  }
6562
6487
 
6563
- var index$4 = /*#__PURE__*/Object.freeze({
6488
+ var index$5 = /*#__PURE__*/Object.freeze({
6564
6489
  __proto__: null,
6565
6490
  'default': Contact
6566
6491
  });
@@ -6803,7 +6728,8 @@ const useWebinarPromotionPage = createUseStyles(theme => {
6803
6728
  const SingleVideoSlide$1 = props => {
6804
6729
  const [isReadMore, setIsReadMore] = React.useState(false);
6805
6730
  const theme = useTheme();
6806
- React.useEffect(() => {// remaining days epoch
6731
+ React.useEffect(() => {
6732
+ // remaining days epoch
6807
6733
  // current date epoch
6808
6734
  // subtract remaining days from current day epoch
6809
6735
  // moment the result - and see if there are days
@@ -6815,7 +6741,6 @@ const SingleVideoSlide$1 = props => {
6815
6741
  webinarCtaClick,
6816
6742
  conversions = 0
6817
6743
  } = props;
6818
-
6819
6744
  const renderer = ({
6820
6745
  days,
6821
6746
  hours,
@@ -6831,9 +6756,7 @@ const SingleVideoSlide$1 = props => {
6831
6756
  return /*#__PURE__*/React__default["default"].createElement("span", null, Math.floor(moment__default["default"].duration(given.diff(current)).asDays()), " day(s)");
6832
6757
  }
6833
6758
  };
6834
-
6835
6759
  const checkIfOfferIsValid = () => moment__default["default"]().diff(moment__default["default"](props.data.offerPriceEndDate)) < 0;
6836
-
6837
6760
  const checkForShowDiscount = () => {
6838
6761
  if (props.data.endDate === null || checkIfOfferIsValid()) {
6839
6762
  if (data.discount > 0 && data.offerPriceValidFor === 0) {
@@ -6845,19 +6768,16 @@ const SingleVideoSlide$1 = props => {
6845
6768
  if (data.offerPriceValidFor <= conversions) {
6846
6769
  return false;
6847
6770
  }
6848
-
6849
6771
  if (data.offerPriceValidFor - conversions < 0) {
6850
6772
  return false;
6851
6773
  } else {
6852
6774
  return true;
6853
6775
  }
6854
6776
  }
6855
-
6856
6777
  if (data.discount > 0) {
6857
6778
  return true;
6858
6779
  }
6859
6780
  };
6860
-
6861
6781
  const discount = ({
6862
6782
  price,
6863
6783
  discount
@@ -6865,7 +6785,6 @@ const SingleVideoSlide$1 = props => {
6865
6785
  console.log('discountxx', props.data.price, props.data.discount);
6866
6786
  return (discount / price * 100).toFixed(2);
6867
6787
  };
6868
-
6869
6788
  const classes = useWebinarPromotionPage();
6870
6789
  return /*#__PURE__*/React__default["default"].createElement("div", {
6871
6790
  className: classes.videoCarouselContainer
@@ -6961,9 +6880,10 @@ const SingleVideoSlide$1 = props => {
6961
6880
  data: {
6962
6881
  // link: 'headerData?.loginCtaLink',
6963
6882
  // isLink: 1,
6964
- value: data.isPaid ? 'BUY NOW' : 'REGISTER NOW' // isExternal: 1
6965
-
6883
+ value: data.isPaid ? 'BUY NOW' : 'REGISTER NOW'
6884
+ // isExternal: 1
6966
6885
  },
6886
+
6967
6887
  onClick: webinarCtaClick,
6968
6888
  type: 'primary',
6969
6889
  size: 'medium',
@@ -6997,7 +6917,7 @@ function CoursePromotionPage$1({
6997
6917
  }))));
6998
6918
  }
6999
6919
 
7000
- var index$3 = /*#__PURE__*/Object.freeze({
6920
+ var index$4 = /*#__PURE__*/Object.freeze({
7001
6921
  __proto__: null,
7002
6922
  'default': CoursePromotionPage$1
7003
6923
  });
@@ -7297,14 +7217,14 @@ const SingleVideoSlide = props => {
7297
7217
  isEdit
7298
7218
  } = React.useContext(PageContext);
7299
7219
  console.log(isEdit, 'isEdit');
7300
- React.useEffect(() => {// remaining days epoch
7220
+ React.useEffect(() => {
7221
+ // remaining days epoch
7301
7222
  // current date epoch
7302
7223
  // subtract remaining days from current day epoch
7303
7224
  // moment the result - and see if there are days
7304
7225
  // days is present show days
7305
7226
  // else start reverse timer
7306
7227
  }, []);
7307
-
7308
7228
  const renderer = ({
7309
7229
  days,
7310
7230
  hours,
@@ -7320,7 +7240,6 @@ const SingleVideoSlide = props => {
7320
7240
  return /*#__PURE__*/React__default["default"].createElement("span", null, Math.floor(moment__default["default"].duration(given.diff(current)).asDays()), " day(s)");
7321
7241
  }
7322
7242
  };
7323
-
7324
7243
  const {
7325
7244
  data,
7326
7245
  courseBuyNow,
@@ -7329,9 +7248,7 @@ const SingleVideoSlide = props => {
7329
7248
  } = props;
7330
7249
  const showCourseInstallmentData = data?.courseOverviewData;
7331
7250
  const InstalmentData = isEdit ? data?.courseOverviewData?.installments?.formData?.installments[0].installmentAmount : data?.courseOverviewData?.installments?.formData?.installmentInfo?.installments[0].installmentPrice;
7332
-
7333
7251
  const checkIfOfferIsValid = () => moment__default["default"]().diff(moment__default["default"](props?.data?.endDate || 0)) < 0;
7334
-
7335
7252
  const checkForShowDiscount = () => {
7336
7253
  if (props.data.endDate === null || checkIfOfferIsValid()) {
7337
7254
  if (data.discount > 0 && data.offerPriceValidFor === 0) {
@@ -7343,28 +7260,23 @@ const SingleVideoSlide = props => {
7343
7260
  if (data.offerPriceValidFor <= conversions) {
7344
7261
  return false;
7345
7262
  }
7346
-
7347
7263
  if (data.offerPriceValidFor - conversions < 0) {
7348
7264
  return false;
7349
7265
  } else {
7350
7266
  return true;
7351
7267
  }
7352
7268
  }
7353
-
7354
7269
  if (data.discount > 0) {
7355
7270
  return true;
7356
7271
  }
7357
7272
  };
7358
-
7359
7273
  const classes = useCoursePromotionPage();
7360
-
7361
7274
  const discount = ({
7362
7275
  price,
7363
7276
  discount
7364
7277
  }) => {
7365
7278
  return (discount / price * 100).toFixed(2);
7366
7279
  };
7367
-
7368
7280
  return /*#__PURE__*/React__default["default"].createElement("div", {
7369
7281
  className: classes.videoCarouselContainer
7370
7282
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -7478,15 +7390,16 @@ const SingleVideoSlide = props => {
7478
7390
  data: {
7479
7391
  // link: 'headerData?.loginCtaLink',
7480
7392
  // isLink: 1,
7481
- value: 'BUY NOW' // isExternal: 1
7482
-
7393
+ value: 'BUY NOW'
7394
+ // isExternal: 1
7483
7395
  },
7396
+
7484
7397
  onClick: courseBuyNow,
7485
7398
  type: 'primary',
7486
7399
  size: 'medium',
7487
7400
  target: null,
7488
- rel: null // styling={isMobile ? { margin: '0 40px' } : {}}
7489
-
7401
+ rel: null
7402
+ // styling={isMobile ? { margin: '0 40px' } : {}}
7490
7403
  })))), showCourseInstallmentData && InstalmentData && /*#__PURE__*/React__default["default"].createElement("div", {
7491
7404
  className: classes.payInstallmentContainer,
7492
7405
  onClick: showCourseInstallment
@@ -7533,7 +7446,7 @@ function CoursePromotionPage({
7533
7446
  }))));
7534
7447
  }
7535
7448
 
7536
- var index$2 = /*#__PURE__*/Object.freeze({
7449
+ var index$3 = /*#__PURE__*/Object.freeze({
7537
7450
  __proto__: null,
7538
7451
  'default': CoursePromotionPage
7539
7452
  });
@@ -7691,18 +7604,15 @@ const FormPage = ({
7691
7604
  _id,
7692
7605
  baseURLs
7693
7606
  } = React.useContext(PageContext);
7694
-
7695
7607
  const handleSubmit = async e => {
7696
7608
  e.preventDefault();
7697
7609
  let formResponse = [];
7698
-
7699
7610
  for (const [key, value] of Object.entries(formData)) {
7700
7611
  if (value.questionType === 'MC') {
7701
7612
  if (value.solutionArray.length > 1) {
7702
7613
  value.solutionArray.shift();
7703
7614
  }
7704
7615
  }
7705
-
7706
7616
  formResponse.push({
7707
7617
  questionId: key,
7708
7618
  questionName: value.questionName,
@@ -7710,7 +7620,6 @@ const FormPage = ({
7710
7620
  solutionArray: value.solutionArray
7711
7621
  });
7712
7622
  }
7713
-
7714
7623
  const data = {
7715
7624
  sectionId: sectionData?.components?.[0]?._id || null,
7716
7625
  landingPageId: _id || null,
@@ -7720,7 +7629,6 @@ const FormPage = ({
7720
7629
  setFormData({});
7721
7630
  setformSubmitted(!formSubmitted);
7722
7631
  };
7723
-
7724
7632
  React.useEffect(() => {
7725
7633
  //add all questions to formData
7726
7634
  let formData = {};
@@ -7733,23 +7641,26 @@ const FormPage = ({
7733
7641
  });
7734
7642
  setFormData(formData);
7735
7643
  }, [metadata, formSubmitted]);
7736
-
7737
7644
  const handleOnClick = (e, item, option) => {
7738
7645
  // if the checkbox is checked
7739
7646
  if (!e.target.checked) {
7740
7647
  // if the checkbox is checked and the solution array is empty
7741
7648
  if (!formData[item._id]?.solutionArray?.length) {
7742
- setFormData({ ...formData,
7649
+ setFormData({
7650
+ ...formData,
7743
7651
  [item._id]: {
7744
7652
  questionName: item.text,
7745
7653
  solutionArray: [option.value],
7746
7654
  questionType: 'MC'
7747
7655
  }
7748
7656
  });
7749
- } // if the checkbox is checked and the solution array is not empty and the value is already in the array remove it
7657
+ }
7658
+ // if the checkbox is checked and the solution array is not empty and the value is already in the array remove it
7750
7659
  else if (formData[item._id]?.solutionArray?.includes(option.value)) {
7751
7660
  // if only one value is in the array remove it
7752
- setFormData({ ...formData,
7661
+
7662
+ setFormData({
7663
+ ...formData,
7753
7664
  [item._id]: {
7754
7665
  questionName: item.text,
7755
7666
  solutionArray: formData[item._id]?.solutionArray?.filter(item => item !== option.value),
@@ -7757,20 +7668,24 @@ const FormPage = ({
7757
7668
  }
7758
7669
  });
7759
7670
  }
7760
- } // if the checkbox is unchecked
7671
+ }
7672
+ // if the checkbox is unchecked
7761
7673
  else {
7762
7674
  // if the checkbox is unchecked and the solution array is empty
7763
7675
  if (typeof formData[item._id]?.solutionArray?.length === 'undefined') {
7764
- setFormData({ ...formData,
7676
+ setFormData({
7677
+ ...formData,
7765
7678
  [item._id]: {
7766
7679
  questionName: item.text,
7767
7680
  solutionArray: [option.value],
7768
7681
  questionType: 'MC'
7769
7682
  }
7770
7683
  });
7771
- } // if the checkbox is unchecked and the solution array is not empty and the value is not in the array add it
7684
+ }
7685
+ // if the checkbox is unchecked and the solution array is not empty and the value is not in the array add it
7772
7686
  else if (!formData[item._id]?.solutionArray?.includes(option.value)) {
7773
- setFormData({ ...formData,
7687
+ setFormData({
7688
+ ...formData,
7774
7689
  [item._id]: {
7775
7690
  questionName: item.text,
7776
7691
  solutionArray: [...formData[item._id]?.solutionArray, option.value],
@@ -7780,7 +7695,6 @@ const FormPage = ({
7780
7695
  }
7781
7696
  }
7782
7697
  };
7783
-
7784
7698
  return /*#__PURE__*/React__default["default"].createElement("section", {
7785
7699
  className: classes.formPageSection
7786
7700
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -7807,7 +7721,8 @@ const FormPage = ({
7807
7721
  placeholder: "Short answer",
7808
7722
  name: item._id,
7809
7723
  onChange: e => {
7810
- setFormData({ ...formData,
7724
+ setFormData({
7725
+ ...formData,
7811
7726
  [item._id]: {
7812
7727
  index,
7813
7728
  questionName: item.text,
@@ -7847,11 +7762,13 @@ const FormPage = ({
7847
7762
  name: "text",
7848
7763
  required: item.isRequired,
7849
7764
  value: option.value,
7850
- checked: formData[item._id]?.solutionArray?.[0] === option.value // name={option.value}
7765
+ checked: formData[item._id]?.solutionArray?.[0] === option.value
7766
+ // name={option.value}
7851
7767
  // id={option.value}
7852
7768
  ,
7853
7769
  onClick: e => {
7854
- setFormData({ ...formData,
7770
+ setFormData({
7771
+ ...formData,
7855
7772
  [item._id]: {
7856
7773
  questionName: item.text,
7857
7774
  solutionArray: [option.value],
@@ -7867,9 +7784,10 @@ const FormPage = ({
7867
7784
  data: {
7868
7785
  // link: 'headerData?.loginCtaLink',
7869
7786
  // isLink: 1,
7870
- value: 'SUBMIT' // isExternal: 1
7871
-
7787
+ value: 'SUBMIT'
7788
+ // isExternal: 1
7872
7789
  },
7790
+
7873
7791
  type: 'primary',
7874
7792
  size: 'medium',
7875
7793
  target: null,
@@ -7877,7 +7795,7 @@ const FormPage = ({
7877
7795
  })))));
7878
7796
  };
7879
7797
 
7880
- var index$1 = /*#__PURE__*/Object.freeze({
7798
+ var index$2 = /*#__PURE__*/Object.freeze({
7881
7799
  __proto__: null,
7882
7800
  'default': FormPage
7883
7801
  });
@@ -7963,7 +7881,6 @@ function Tiles({
7963
7881
  const nodeData = sectionData.components;
7964
7882
  console.log(nodeData);
7965
7883
  const tilesList = nodeData[0]?.tilesList.components;
7966
-
7967
7884
  const handleClick = value => {
7968
7885
  if (!isEdit && value) {
7969
7886
  if (value.indexOf('http://') == 0 || value.indexOf('https://') == 0) {
@@ -7973,7 +7890,6 @@ function Tiles({
7973
7890
  }
7974
7891
  }
7975
7892
  };
7976
-
7977
7893
  const TileDiv = tilesList?.map((tile, i) => {
7978
7894
  return /*#__PURE__*/React__default["default"].createElement(React.Fragment, {
7979
7895
  key: i
@@ -8010,11 +7926,437 @@ function Tiles({
8010
7926
  }, TileDiv)));
8011
7927
  }
8012
7928
 
8013
- var index = /*#__PURE__*/Object.freeze({
7929
+ var index$1 = /*#__PURE__*/Object.freeze({
8014
7930
  __proto__: null,
8015
7931
  'default': Tiles
8016
7932
  });
8017
7933
 
7934
+ const useEmailStyles = createUseStyles(theme => ({
7935
+ wrapper: {
7936
+ fontFamily: theme?.typography?.fontFamily,
7937
+ width: '100%',
7938
+ tableLayout: 'fixed',
7939
+ backgroundColor: '#cccccc'
7940
+ },
7941
+ email_description_para: {
7942
+ '& p': {
7943
+ margin: '0 0 0 !important'
7944
+ }
7945
+ },
7946
+ main: {
7947
+ backgroundColor: '#ffffff',
7948
+ width: '100%',
7949
+ maxWidth: '600px',
7950
+ borderSpacing: '0'
7951
+ },
7952
+ logoimg: {
7953
+ width: '28px',
7954
+ height: '28px'
7955
+ /* margin: 18px 0px; */
7956
+ },
7957
+
7958
+ 'p-young-guru-title': {
7959
+ fontFamily: theme?.typography?.fontFamily,
7960
+ fontStyle: 'normal',
7961
+ fontWeight: '500',
7962
+ fontSize: '24px',
7963
+ lineHeight: '31px',
7964
+ color: '#ffffff',
7965
+ marginTop: '18px'
7966
+ },
7967
+ 'p-young-guru-sub-title': {
7968
+ fontFamily: theme?.typography?.fontFamily,
7969
+ fontStyle: 'normal',
7970
+ fontWeight: '400',
7971
+ fontSize: '16px',
7972
+ lineHeight: '21px',
7973
+ color: '#dbd9d9',
7974
+ marginBottom: '18px'
7975
+ },
7976
+ p: {
7977
+ padding: '0',
7978
+ margin: '0 !important'
7979
+ },
7980
+ 'two-columns': {
7981
+ fontSize: '0',
7982
+ textAlign: 'center'
7983
+ /* padding:35px 0 40px */
7984
+ },
7985
+
7986
+ 'two-columns .column': {
7987
+ width: '100%',
7988
+ maxWidth: '275px',
7989
+ display: 'inline-block',
7990
+ verticalAlign: 'top'
7991
+ },
7992
+ 'title-lead': {
7993
+ fontFamily: theme?.typography?.fontFamily,
7994
+ fontStyle: 'normal',
7995
+ fontWeight: '500',
7996
+ fontSize: '20px',
7997
+ lineHeight: '26px',
7998
+ color: '#030a21',
7999
+ marginBottom: '5px',
8000
+ textAlign: 'left'
8001
+ }
8002
+
8003
+ // @media screen and (max-width: 600px) {
8004
+ // }
8005
+ }));
8006
+
8007
+ function Section({
8008
+ nodeData,
8009
+ emailRef,
8010
+ customHtmlData
8011
+ }) {
8012
+ console.log('customHtmlData', customHtmlData);
8013
+ const header = nodeData?.components[0];
8014
+ const body = nodeData?.components[1];
8015
+ const landing = nodeData?.components[2];
8016
+ const footer = nodeData?.components[3];
8017
+ const classes = useEmailStyles();
8018
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("center", {
8019
+ className: classes.wrapper,
8020
+ ref: emailRef
8021
+ }, /*#__PURE__*/React__default["default"].createElement("table", {
8022
+ className: classes.main,
8023
+ style: {
8024
+ width: '100%'
8025
+ }
8026
+ }, /*#__PURE__*/React__default["default"].createElement("tbody", null, customHtmlData?.isCustomHtml ? /*#__PURE__*/React__default["default"].createElement("div", {
8027
+ className: classes.email_description_para,
8028
+ dangerouslySetInnerHTML: {
8029
+ __html: `${customHtmlData?.html ? customHtmlData?.html : ''}`
8030
+ // __html: '<div>sdnfksdnflksdnfklsndk</div>'
8031
+ }
8032
+ }) : /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, header?.isActive ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("tr", null, /*#__PURE__*/React__default["default"].createElement("td", null, /*#__PURE__*/React__default["default"].createElement("table", {
8033
+ style: {
8034
+ textAlign: 'center',
8035
+ background: '#ffffff',
8036
+ paddingTop: '16px',
8037
+ width: '100%'
8038
+ }
8039
+ }, /*#__PURE__*/React__default["default"].createElement("tr", null, /*#__PURE__*/React__default["default"].createElement("td", {
8040
+ style: {
8041
+ display: 'inline-block'
8042
+ }
8043
+ }, header?.components[0]?.metadata?.image?.length ? /*#__PURE__*/React__default["default"].createElement("img", {
8044
+ src: header?.components[0]?.metadata?.image,
8045
+ alt: "",
8046
+ className: classes.logoimg
8047
+ }) : /*#__PURE__*/React__default["default"].createElement("div", {
8048
+ style: {
8049
+ display: 'flex',
8050
+ alignItems: 'center',
8051
+ justifyContent: 'center',
8052
+ fontStyle: 'italic',
8053
+ minHeight: '30px'
8054
+ }
8055
+ }, "Your logo")))))), /*#__PURE__*/React__default["default"].createElement("tr", null, /*#__PURE__*/React__default["default"].createElement("td", null, header?.components[1]?.metadata?.image?.length ? /*#__PURE__*/React__default["default"].createElement("img", {
8056
+ src: header?.components[1]?.metadata?.image
8057
+ // width={600}
8058
+ ,
8059
+ alt: "",
8060
+ style: {
8061
+ maxWidth: '600px',
8062
+ width: '100%',
8063
+ marginBottom: '-4px'
8064
+ }
8065
+ }) : /*#__PURE__*/React__default["default"].createElement("div", {
8066
+ style: {
8067
+ maxWidth: '600px',
8068
+ width: '100%',
8069
+ marginBottom: '-4px',
8070
+ minHeight: '250px',
8071
+ background: '#F4F9FD',
8072
+ display: 'flex',
8073
+ alignItems: 'center',
8074
+ justifyContent: 'center',
8075
+ fontStyle: 'italic'
8076
+ }
8077
+ }, "Cover Image")))) : null, body && body?.isActive ? /*#__PURE__*/React__default["default"].createElement("tr", null, /*#__PURE__*/React__default["default"].createElement("td", null, /*#__PURE__*/React__default["default"].createElement("table", {
8078
+ style: {
8079
+ textAlign: 'center',
8080
+ width: '100%',
8081
+ backgroundColor: '#ffffff'
8082
+ }
8083
+ }, /*#__PURE__*/React__default["default"].createElement("tr", null, /*#__PURE__*/React__default["default"].createElement("td", null, /*#__PURE__*/React__default["default"].createElement("p", {
8084
+ style: {
8085
+ // fontFamily: 'Roboto',
8086
+ fontStyle: 'normal',
8087
+ fontWeight: '700',
8088
+ fontSize: '24.2487px',
8089
+ lineHeight: '29px',
8090
+ textAlign: 'center',
8091
+ color: '#00ade7',
8092
+ marginTop: '24px'
8093
+ },
8094
+ ref: body?.components[0]?.refSetter
8095
+ }, body?.components[0]?.metadata?.text), /*#__PURE__*/React__default["default"].createElement("p", {
8096
+ style: {
8097
+ // fontFamily: 'Roboto',
8098
+ fontStyle: 'normal',
8099
+ fontWeight: '500',
8100
+ fontSize: '18.1865px',
8101
+ lineHeight: '22px',
8102
+ textAlign: 'center',
8103
+ color: '#0a1629',
8104
+ marginTop: '8px',
8105
+ marginBottom: '15px'
8106
+ },
8107
+ ref: body?.components[1]?.refSetter
8108
+ }, body?.components[1]?.metadata?.text), /*#__PURE__*/React__default["default"].createElement("p", {
8109
+ style: {
8110
+ maxWidth: '435px',
8111
+ margin: 'auto',
8112
+ // fontFamily: 'Roboto',
8113
+ fontStyle: 'normal',
8114
+ fontWeight: '400',
8115
+ fontSize: '16.1658px',
8116
+ lineHeight: '22px',
8117
+ color: '#3c4852',
8118
+ textAlign: 'left'
8119
+ },
8120
+ dangerouslySetInnerHTML: {
8121
+ __html: body?.components[2]?.metadata?.text
8122
+ },
8123
+ className: classes.email_description_para,
8124
+ ref: body?.components[2]?.refSetter
8125
+ })))))) : null, landing?.isActive ? /*#__PURE__*/React__default["default"].createElement("tr", null, /*#__PURE__*/React__default["default"].createElement("td", null, /*#__PURE__*/React__default["default"].createElement("table", {
8126
+ style: {
8127
+ width: '100%',
8128
+ padding: '12px'
8129
+ }
8130
+ }, /*#__PURE__*/React__default["default"].createElement("tr", null, /*#__PURE__*/React__default["default"].createElement("td", null, /*#__PURE__*/React__default["default"].createElement("table", {
8131
+ style: {
8132
+ width: '100%',
8133
+ background: '#f4f9fd',
8134
+ borderRadius: '16px',
8135
+ padding: '32px',
8136
+ textAlign: 'center'
8137
+ }
8138
+ }, /*#__PURE__*/React__default["default"].createElement("tr", null, /*#__PURE__*/React__default["default"].createElement("td", null, landing?.components[0]?.metadata?.image?.length ? /*#__PURE__*/React__default["default"].createElement("img", {
8139
+ src: landing?.components[0]?.metadata?.image,
8140
+ alt: "",
8141
+ style: {
8142
+ width: '100%'
8143
+ }
8144
+ }) : /*#__PURE__*/React__default["default"].createElement("div", {
8145
+ style: {
8146
+ background: '#D9D9D9F0',
8147
+ width: '100%',
8148
+ minHeight: '250px',
8149
+ display: 'flex',
8150
+ alignItems: 'center',
8151
+ justifyContent: 'center',
8152
+ fontStyle: 'italic'
8153
+ }
8154
+ }, "Thumbnail Image"), /*#__PURE__*/React__default["default"].createElement("p", {
8155
+ style: {
8156
+ // fontFamily: 'Roboto',
8157
+ fontStyle: 'normal',
8158
+ fontWeight: '500',
8159
+ fontSize: '18.1865px',
8160
+ lineHeight: '22px',
8161
+ color: '#0a1629',
8162
+ marginTop: '16px',
8163
+ marginBottom: '16px',
8164
+ textAlign: 'left'
8165
+ },
8166
+ ref: landing?.components[1]?.refSetter
8167
+ }, landing?.components[1]?.metadata?.text), /*#__PURE__*/React__default["default"].createElement("a", {
8168
+ href: landing?.components[3]?.metadata?.text,
8169
+ target: "_blank",
8170
+ style: {
8171
+ textDecoration: 'none'
8172
+ }
8173
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
8174
+ style: {
8175
+ background: '#009ae0',
8176
+ borderRadius: '7.18333px',
8177
+ color: 'white',
8178
+ textDecoration: 'none',
8179
+ padding: '12px 0px',
8180
+ // fontFamily: 'Roboto',
8181
+ fontStyle: 'normal',
8182
+ fontWeight: '600',
8183
+ fontSize: '20.55px',
8184
+ lineHeight: '32px',
8185
+ textTransform: 'uppercase',
8186
+ color: '#fafafa'
8187
+ },
8188
+ ref: landing?.components[2]?.refSetter
8189
+ }, landing?.components[2]?.metadata?.text)))))))))) : null, footer?.isActive ? /*#__PURE__*/React__default["default"].createElement("tr", null, /*#__PURE__*/React__default["default"].createElement("td", null, /*#__PURE__*/React__default["default"].createElement("table", {
8190
+ style: {
8191
+ width: '100%',
8192
+ background: '#e3f0ff',
8193
+ textAlign: 'center'
8194
+ }
8195
+ }, /*#__PURE__*/React__default["default"].createElement("tr", null, /*#__PURE__*/React__default["default"].createElement("td", null, /*#__PURE__*/React__default["default"].createElement("p", {
8196
+ style: {
8197
+ // fontFamily: 'Roboto',
8198
+ fontStyle: 'normal',
8199
+ fontWeight: '700',
8200
+ fontSize: '18px',
8201
+ lineHeight: '29px',
8202
+ textAlign: 'center',
8203
+ color: '#0a1629',
8204
+ marginTop: '32px'
8205
+ }
8206
+ }, "Connect with us on:"), /*#__PURE__*/React__default["default"].createElement("table", {
8207
+ style: {
8208
+ width: '100%',
8209
+ marginTop: '8px',
8210
+ marginBottom: '16px'
8211
+ }
8212
+ }, /*#__PURE__*/React__default["default"].createElement("tbody", null, /*#__PURE__*/React__default["default"].createElement("tr", null, /*#__PURE__*/React__default["default"].createElement("td", null, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("a", {
8213
+ href: footer?.components[0]?.metadata?.text,
8214
+ target: "_blank",
8215
+ style: {
8216
+ textDecoration: 'none'
8217
+ }
8218
+ }, /*#__PURE__*/React__default["default"].createElement("img", {
8219
+ src: footer?.components[0]?.metadata?.text ? footer?.components[0]?.metadata?.iconUrlColor : footer?.components[0]?.metadata?.iconUrl,
8220
+ alt: "",
8221
+ style: {
8222
+ width: '36px',
8223
+ height: '36px'
8224
+ },
8225
+ ref: footer?.components[0]?.refSetter
8226
+ })), /*#__PURE__*/React__default["default"].createElement("a", {
8227
+ href: footer?.components[1]?.metadata?.text,
8228
+ target: "_blank",
8229
+ style: {
8230
+ textDecoration: 'none'
8231
+ }
8232
+ }, /*#__PURE__*/React__default["default"].createElement("img", {
8233
+ src: footer?.components[1]?.metadata?.text ? footer?.components[1]?.metadata?.iconUrlColor : footer?.components[1]?.metadata?.iconUrl,
8234
+ alt: "",
8235
+ style: {
8236
+ width: '36px',
8237
+ height: '36px',
8238
+ margin: '0px 12px'
8239
+ },
8240
+ ref: footer?.components[1]?.refSetter
8241
+ })), /*#__PURE__*/React__default["default"].createElement("a", {
8242
+ href: footer?.components[2]?.metadata?.text,
8243
+ target: "_blank",
8244
+ style: {
8245
+ textDecoration: 'none'
8246
+ }
8247
+ }, /*#__PURE__*/React__default["default"].createElement("img", {
8248
+ src: footer?.components[2]?.metadata?.text ? footer?.components[2]?.metadata?.iconUrlColor : footer?.components[2]?.metadata?.iconUrl,
8249
+ alt: "",
8250
+ style: {
8251
+ width: '36px',
8252
+ height: '36px'
8253
+ },
8254
+ ref: footer?.components[2]?.refSetter
8255
+ })), /*#__PURE__*/React__default["default"].createElement("a", {
8256
+ href: footer?.components[3]?.metadata?.text,
8257
+ target: "_blank",
8258
+ style: {
8259
+ textDecoration: 'none'
8260
+ }
8261
+ }, /*#__PURE__*/React__default["default"].createElement("img", {
8262
+ src: footer?.components[3]?.metadata?.text ? footer?.components[3]?.metadata?.iconUrlColor : footer?.components[3]?.metadata?.iconUrl,
8263
+ alt: "",
8264
+ style: {
8265
+ width: '36px',
8266
+ height: '36px',
8267
+ margin: '0px 12px'
8268
+ },
8269
+ ref: footer?.components[3]?.refSetter
8270
+ })), /*#__PURE__*/React__default["default"].createElement("a", {
8271
+ href: footer?.components[4]?.metadata?.text,
8272
+ target: "_blank",
8273
+ style: {
8274
+ textDecoration: 'none'
8275
+ }
8276
+ }, /*#__PURE__*/React__default["default"].createElement("img", {
8277
+ src: footer?.components[4]?.metadata?.text ? footer?.components[4]?.metadata?.iconUrlColor : footer?.components[4]?.metadata?.iconUrl,
8278
+ alt: "",
8279
+ style: {
8280
+ width: '36px',
8281
+ height: '36px'
8282
+ },
8283
+ ref: footer?.components[4]?.refSetter
8284
+ })), /*#__PURE__*/React__default["default"].createElement("table", {
8285
+ style: {
8286
+ width: '100%',
8287
+ marginTop: '13px'
8288
+ }
8289
+ }, /*#__PURE__*/React__default["default"].createElement("tr", null, /*#__PURE__*/React__default["default"].createElement("td", null, /*#__PURE__*/React__default["default"].createElement("p", {
8290
+ style: {
8291
+ // fontFamily: 'Roboto',
8292
+ fontStyle: 'normal',
8293
+ fontWeight: '400',
8294
+ fontSize: '14.1451px',
8295
+ lineHeight: '21px',
8296
+ textAlign: 'center',
8297
+ color: '#7d8592'
8298
+ }
8299
+ }, "For any concerns, mail us at", ' ' + footer?.components[5]?.metadata?.text), /*#__PURE__*/React__default["default"].createElement("p", {
8300
+ style: {
8301
+ // fontFamily: 'Roboto',
8302
+ fontStyle: 'normal',
8303
+ fontWeight: '400',
8304
+ fontSize: '14.1451px',
8305
+ lineHeight: '24px',
8306
+ textAlign: 'center',
8307
+ color: '#7d8592'
8308
+ }
8309
+ }, "Copyright \xA9 2022 |", ' ' + footer?.components[5]?.metadata?.text), /*#__PURE__*/React__default["default"].createElement("p", {
8310
+ style: {
8311
+ // fontFamily: 'Roboto',
8312
+ fontStyle: 'normal',
8313
+ fontWeight: '400',
8314
+ fontSize: '14.1451px',
8315
+ lineHeight: '24px',
8316
+ textAlign: 'center',
8317
+ color: '#7d8592',
8318
+ marginBottom: '22px'
8319
+ }
8320
+ }, "All rights reserved.")))))))))))))) : null)))));
8321
+ }
8322
+ function EmailDripMarket({
8323
+ sectionData,
8324
+ extraProps = {}
8325
+ }) {
8326
+ console.log('extrapropstemplate', extraProps);
8327
+ const isInitialMount = React.useRef(true);
8328
+ const convertToHtml = sectionData => {
8329
+ const html = ReactDOMServer__default["default"].renderToStaticMarkup( /*#__PURE__*/React__default["default"].createElement(Section, {
8330
+ nodeData: sectionData
8331
+ }));
8332
+ return html;
8333
+ };
8334
+ React.useEffect(() => {
8335
+ if (isInitialMount.current) {
8336
+ isInitialMount.current = false;
8337
+ } else {
8338
+ extraProps?.callbackHtml(convertToHtml(sectionData));
8339
+ }
8340
+ }, [extraProps?.convertedHtml]);
8341
+
8342
+ // const mockData = sectionData?.sections[0];
8343
+ const emailRef = React.useRef(null);
8344
+ return /*#__PURE__*/React__default["default"].createElement("section", {
8345
+ style: {
8346
+ width: '95%'
8347
+ }
8348
+ }, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(Section, {
8349
+ sectionRef: emailRef,
8350
+ customHtmlData: extraProps?.customHtmlData,
8351
+ nodeData: sectionData
8352
+ })));
8353
+ }
8354
+
8355
+ var index = /*#__PURE__*/Object.freeze({
8356
+ __proto__: null,
8357
+ 'default': EmailDripMarket
8358
+ });
8359
+
8018
8360
  const TYPE_TO_COMPONENT_MAP = {
8019
8361
  BANNER_CAROUSEL_RIGHT: BannerCarouselRight,
8020
8362
  GRID_CARD: List,
@@ -8036,15 +8378,15 @@ const TYPE_TO_COMPONENT_MAP = {
8036
8378
  WEBINAR_LANDING_PAGE: CoursePromotionPage$1,
8037
8379
  COURSE_LANDING_PAGE: CoursePromotionPage,
8038
8380
  FORM_LANDING_PAGE: FormPage,
8039
- TILES_SECTION: Tiles
8381
+ TILES_SECTION: Tiles,
8382
+ EMAIL_DRIP_MARKET: EmailDripMarket
8040
8383
  };
8041
-
8042
8384
  const getCompToRender = type => TYPE_TO_COMPONENT_MAP[type] || (() => null);
8043
-
8044
8385
  const MemoisedSection = /*#__PURE__*/React.memo(({
8045
8386
  sectionData,
8046
8387
  extraProps
8047
8388
  }) => {
8389
+ console.log('templatesectiondata', sectionData);
8048
8390
  const SectionComp = getCompToRender(sectionData.type);
8049
8391
  return /*#__PURE__*/React__default["default"].createElement(SectionComp, {
8050
8392
  sectionData: sectionData,
@@ -8152,11 +8494,9 @@ const componentParser = compObj => {
8152
8494
  });
8153
8495
  return component;
8154
8496
  }
8155
-
8156
8497
  if (Array.isArray(compObj.components)) {
8157
8498
  compObj.components = compObj.components.map(componentParser);
8158
8499
  }
8159
-
8160
8500
  return compObj;
8161
8501
  };
8162
8502
  const inverseComponentParser = compObj => {
@@ -8181,7 +8521,6 @@ const inverseComponentParser = compObj => {
8181
8521
  if (compObj.components) {
8182
8522
  compObj.components = compObj.components.map(inverseComponentParser);
8183
8523
  }
8184
-
8185
8524
  return compObj;
8186
8525
  }
8187
8526
  };