diy-template-components 0.2.42 → 0.2.43

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.es.js CHANGED
@@ -165,7 +165,7 @@ const useSectionStyles$a = createUseStyles(theme => ({
165
165
  mobileContent: {
166
166
  display: 'flex',
167
167
  alignItems: 'center',
168
- width: "100%",
168
+ width: '100%',
169
169
  '& img': {
170
170
  marginRight: '8px',
171
171
  maxWidth: '80px',
@@ -209,7 +209,7 @@ const useSectionStyles$a = createUseStyles(theme => ({
209
209
  display: 'flex',
210
210
  alignItems: 'center',
211
211
  justifyContent: 'center',
212
- width: "10%"
212
+ width: '10%'
213
213
  },
214
214
  '@media screen and (max-width: 767px)': {
215
215
  optionsContainer: {
@@ -1102,17 +1102,20 @@ function OptionList({
1102
1102
 
1103
1103
  const NextImageRenderer = ({
1104
1104
  src,
1105
+ sectionIndex,
1105
1106
  ...props
1106
1107
  }) => {
1107
1108
  const {
1108
- isCustomWebsite
1109
+ isCustomWebsite,
1110
+ pageData
1109
1111
  } = useContext(PageContext);
1112
+ console.log('contexttest___', sectionIndex);
1110
1113
  const imageLoader = ({
1111
1114
  src,
1112
1115
  quality,
1113
1116
  width
1114
1117
  }) => {
1115
- return `${process.env.NEXT_PUBLIC_ENV_ASSET_PREFIX}/_next/image?url=${src}&q=${quality || 75}&w=${width}`;
1118
+ return `${process.env.NEXT_PUBLIC_ENV_ASSET_PREFIX}/_next/image?url=${src}&q=${quality || 75}&w=${640}`;
1116
1119
  };
1117
1120
  let {
1118
1121
  refSetter,
@@ -1121,6 +1124,7 @@ const NextImageRenderer = ({
1121
1124
  if (isCustomWebsite) {
1122
1125
  const NextImage = require('next/image').default;
1123
1126
  return /*#__PURE__*/React.createElement(NextImage, _extends({
1127
+ priority: sectionIndex == '0' ? true : false,
1124
1128
  loader: imageLoader,
1125
1129
  src: src,
1126
1130
  layout: 'fill',
@@ -1189,7 +1193,8 @@ function DesktopHeader({
1189
1193
  className: classes?.imageDivImage
1190
1194
  }, /*#__PURE__*/React.createElement(NextImageRenderer, {
1191
1195
  src: header?.websiteLogo,
1192
- className: classes.imageDivImageNext
1196
+ className: classes.imageDivImageNext,
1197
+ order: 1
1193
1198
  }))) : null, isTutorWebsite && header?.appName ? /*#__PURE__*/React.createElement("a", {
1194
1199
  href: logoUrl
1195
1200
  }, /*#__PURE__*/React.createElement("p", {
@@ -1359,7 +1364,8 @@ function MobileHeader({
1359
1364
  className: classes?.imageDivImageMobile
1360
1365
  }, /*#__PURE__*/React.createElement(NextImageRenderer, {
1361
1366
  src: header?.websiteLogo,
1362
- className: classes.imageDivImageNext
1367
+ className: classes.imageDivImageNext,
1368
+ order: 1
1363
1369
  }))) : null, isTutorWebsite && header?.appName ? /*#__PURE__*/React.createElement("p", {
1364
1370
  className: classes.mobileAppNameClass
1365
1371
  }, " ", header?.appName) : null), downloadLink), sideMenu ? /*#__PURE__*/React.createElement("div", {
@@ -1419,6 +1425,9 @@ const useSectionStyles$9 = createUseStyles(theme => ({
1419
1425
  boxSizing: 'border-box'
1420
1426
  }
1421
1427
  },
1428
+ sectionNoBranding: {
1429
+ paddingBottom: '0px'
1430
+ },
1422
1431
  upperContainer: {
1423
1432
  display: 'flex',
1424
1433
  justifyContent: 'space-between',
@@ -1427,6 +1436,9 @@ const useSectionStyles$9 = createUseStyles(theme => ({
1427
1436
  borderBottom: '1px solid #E1EAF6',
1428
1437
  alignItems: 'flex-start'
1429
1438
  },
1439
+ upperContainerNoBranding: {
1440
+ borderBottom: '0px'
1441
+ },
1430
1442
  upperContainerItem1: {
1431
1443
  width: '33%',
1432
1444
  display: 'flex',
@@ -1502,9 +1514,10 @@ const useSectionStyles$9 = createUseStyles(theme => ({
1502
1514
  color: theme.palette.font.primary
1503
1515
  },
1504
1516
  poweredDiv: {
1505
- display: 'flex',
1506
- textDecoration: 'none',
1507
- alignItems: 'center',
1517
+ width: '15%',
1518
+ height: 'auto',
1519
+ position: 'relative',
1520
+ paddingBottom: ' 6%',
1508
1521
  '& p': {
1509
1522
  margin: '0',
1510
1523
  paddingRight: '8px',
@@ -1517,6 +1530,16 @@ const useSectionStyles$9 = createUseStyles(theme => ({
1517
1530
  width: '100px'
1518
1531
  }
1519
1532
  },
1533
+ poweredByContainer: {
1534
+ display: 'flex',
1535
+ width: '60%',
1536
+ justifyContent: 'flex-end',
1537
+ alignItems: 'center',
1538
+ gap: '5%'
1539
+ },
1540
+ poweredDivImg: {
1541
+ width: '100px !important'
1542
+ },
1520
1543
  '@media screen and (max-width: 767px)': {
1521
1544
  section: {
1522
1545
  padding: '45px 30px',
@@ -1562,13 +1585,22 @@ const useSectionStyles$9 = createUseStyles(theme => ({
1562
1585
  padding: '0'
1563
1586
  },
1564
1587
  poweredDiv: {
1565
- marginTop: '15px'
1588
+ // marginTop: '15px'
1589
+ width: '28%',
1590
+ paddingBottom: '9%'
1566
1591
  },
1567
1592
  socialMediaCta: {
1568
1593
  margin: '0 8px 16px 8px'
1569
1594
  },
1570
1595
  bottomLeftText: {
1571
1596
  padding: '48px 0 10px 0'
1597
+ },
1598
+ poweredByContainer: {
1599
+ gap: '2%',
1600
+ width: '100%',
1601
+ display: 'flex',
1602
+ alignItems: 'center',
1603
+ justifyContent: 'center'
1572
1604
  }
1573
1605
  }
1574
1606
  }));
@@ -1580,9 +1612,9 @@ function Footer({
1580
1612
  const classes = useSectionStyles$9();
1581
1613
  console.log(data, 'this is data');
1582
1614
  return /*#__PURE__*/React.createElement("footer", {
1583
- className: classes.section
1615
+ className: data.metadata.isCpBranding ? `${classes.section}` : `${classes.section} ${classes.sectionNoBranding}`
1584
1616
  }, /*#__PURE__*/React.createElement("div", {
1585
- className: classes.upperContainer
1617
+ className: data.metadata.isCpBranding ? `${classes.upperContainer}` : `${classes.upperContainer} ${classes.upperContainerNoBranding}`
1586
1618
  }, /*#__PURE__*/React.createElement("div", {
1587
1619
  className: classes.upperContainerItem1
1588
1620
  }, /*#__PURE__*/React.createElement("div", {
@@ -1695,15 +1727,18 @@ function Footer({
1695
1727
  className: classes.lowerContainer
1696
1728
  }, /*#__PURE__*/React.createElement("div", {
1697
1729
  className: classes.bottomLeftText
1698
- }, "2022 All Rights Reserved"), /*#__PURE__*/React.createElement("a", {
1730
+ }, "2022 All Rights Reserved"), /*#__PURE__*/React.createElement("div", {
1731
+ className: classes.poweredByContainer
1732
+ }, /*#__PURE__*/React.createElement("p", null, "Powered by"), /*#__PURE__*/React.createElement("a", {
1699
1733
  title: "Powered by Classplus",
1700
1734
  target: "_blank",
1701
1735
  href: "https://classplusapp.com/",
1702
1736
  className: classes.poweredDiv
1703
- }, /*#__PURE__*/React.createElement("p", null, "Powered by"), /*#__PURE__*/React.createElement("img", {
1737
+ }, /*#__PURE__*/React.createElement(NextImageRenderer, {
1738
+ src: 'https://storage.googleapis.com/coursewebview/logo.png',
1704
1739
  alt: "classplus",
1705
- src: 'https://storage.googleapis.com/coursewebview/logo.png'
1706
- }))) : null);
1740
+ className: classes.poweredDivImg
1741
+ })))) : null);
1707
1742
  }
1708
1743
 
1709
1744
  const borderRadius = {
@@ -1884,24 +1919,28 @@ const TYPE_TO_COMPONENT_MAP$1 = {
1884
1919
  const getCompToRender$1 = type => TYPE_TO_COMPONENT_MAP$1[type] || (() => null);
1885
1920
  const MemoisedSection$1 = /*#__PURE__*/memo(({
1886
1921
  sectionData,
1887
- extraProps
1922
+ extraProps,
1923
+ sectionIndex
1888
1924
  }) => {
1889
- console.log('templatesectiondata', sectionData);
1925
+ console.log('sectionIndex MEMO', sectionIndex);
1890
1926
  const SectionComp = getCompToRender$1(sectionData.type);
1891
1927
  return /*#__PURE__*/React.createElement(SectionComp, {
1892
1928
  sectionData: sectionData,
1893
- extraProps: extraProps
1929
+ extraProps: extraProps,
1930
+ sectionIndex: sectionIndex
1894
1931
  });
1895
1932
  });
1896
1933
  function SectionRenderer$1({
1897
1934
  sectionData,
1935
+ sectionIndex,
1898
1936
  extraProps
1899
1937
  }) {
1900
1938
  return /*#__PURE__*/React.createElement(Suspense, {
1901
1939
  fallback: null /*GIF maybe*/
1902
1940
  }, /*#__PURE__*/React.createElement(MemoisedSection$1, {
1903
1941
  sectionData: sectionData,
1904
- extraProps: extraProps
1942
+ extraProps: extraProps,
1943
+ sectionIndex: sectionIndex
1905
1944
  }));
1906
1945
  }
1907
1946
 
@@ -1992,7 +2031,8 @@ function PageRenderer$1({
1992
2031
  key: sectionData.type + (sectionData._id || sectionIndex)
1993
2032
  }), /*#__PURE__*/React.createElement(SectionRenderer$1, {
1994
2033
  sectionData: sectionData,
1995
- extraProps: extraProps
2034
+ extraProps: extraProps,
2035
+ sectionIndex: sectionIndex
1996
2036
  }))) : sectionPlaceholder, !!footer && /*#__PURE__*/React.createElement(Wrapper, !!SectionWrapper && {
1997
2037
  sectionData: footer,
1998
2038
  isFooter: true
@@ -2335,7 +2375,8 @@ function Carousel({
2335
2375
  }
2336
2376
 
2337
2377
  function Section$4({
2338
- nodeData
2378
+ nodeData,
2379
+ sectionIndex
2339
2380
  }) {
2340
2381
  const classes = useSectionStyles$8();
2341
2382
  const {
@@ -2344,6 +2385,7 @@ function Section$4({
2344
2385
  },
2345
2386
  isMobile
2346
2387
  } = useContext(PageContext);
2388
+ console.log('nodedata_____', nodeData?.metadata?.order);
2347
2389
  return /*#__PURE__*/React.createElement("div", {
2348
2390
  className: classes.centerData
2349
2391
  }, /*#__PURE__*/React.createElement("div", {
@@ -2372,7 +2414,7 @@ function Section$4({
2372
2414
  dangerouslySetInnerHTML: {
2373
2415
  __html: nodeData.description.metadata.value
2374
2416
  }
2375
- }), /*#__PURE__*/React.createElement(Button, {
2417
+ }), nodeData?.cta?.validations?.isEmptyAllowed && nodeData?.cta?.metadata?.value === '' ? null : /*#__PURE__*/React.createElement(Button, {
2376
2418
  ref: nodeData?.cta?.refSetter,
2377
2419
  data: nodeData.cta.metadata,
2378
2420
  type: nodeData?.cta?.metadata?.type,
@@ -2382,11 +2424,13 @@ function Section$4({
2382
2424
  }, /*#__PURE__*/React.createElement(NextImageRenderer, {
2383
2425
  ref: nodeData?.image?.refSetter,
2384
2426
  className: classes.sideBannerImage,
2385
- src: nodeData.image.metadata.value
2427
+ src: nodeData.image.metadata.value,
2428
+ sectionIndex: sectionIndex
2386
2429
  }))));
2387
2430
  }
2388
2431
  function BannerCarouselRight({
2389
- sectionData
2432
+ sectionData,
2433
+ sectionIndex
2390
2434
  }) {
2391
2435
  const {
2392
2436
  layout: {
@@ -2410,7 +2454,8 @@ function BannerCarouselRight({
2410
2454
  className: classes.sectionContainer
2411
2455
  }, /*#__PURE__*/React.createElement(Wrapper, wrapperProps, bannerCarousel.components.map((node, idx) => /*#__PURE__*/React.createElement(Section$4, {
2412
2456
  nodeData: node,
2413
- key: idx /* or some other unique property */
2457
+ key: idx /* or some other unique property */,
2458
+ sectionIndex: sectionIndex
2414
2459
  })))));
2415
2460
  }
2416
2461
 
@@ -2788,7 +2833,8 @@ const useSectionStyles$6 = createUseStyles(theme => ({
2788
2833
 
2789
2834
  const Section$3 = ({
2790
2835
  nodeData,
2791
- isCustomWebsite
2836
+ isCustomWebsite,
2837
+ sectionIndex
2792
2838
  }) => {
2793
2839
  const {
2794
2840
  layout: {
@@ -2829,7 +2875,7 @@ const Section$3 = ({
2829
2875
  dangerouslySetInnerHTML: {
2830
2876
  __html: nodeData.description.metadata.value
2831
2877
  }
2832
- }), /*#__PURE__*/React.createElement(Button, {
2878
+ }), nodeData?.cta?.validations?.isEmptyAllowed && nodeData?.cta?.metadata?.value === '' ? null : /*#__PURE__*/React.createElement(Button, {
2833
2879
  ref: nodeData?.cta?.refSetter,
2834
2880
  data: nodeData.cta.metadata,
2835
2881
  type: nodeData?.cta?.metadata?.type,
@@ -2838,12 +2884,14 @@ const Section$3 = ({
2838
2884
  className: classes?.centerBgImageContainer
2839
2885
  }, /*#__PURE__*/React.createElement(NextImageRenderer, {
2840
2886
  src: nodeData.image.metadata.value,
2841
- className: classes?.centerBgImage
2887
+ className: classes?.centerBgImage,
2888
+ sectionIndex: sectionIndex
2842
2889
  }))));
2843
2890
  };
2844
2891
  function BannerCarouselCenter({
2845
2892
  sectionData,
2846
- isCustomWebsite
2893
+ isCustomWebsite,
2894
+ sectionIndex
2847
2895
  }) {
2848
2896
  console.log('isCustomWebsite______', isCustomWebsite);
2849
2897
  const classes = useSectionStyles$6();
@@ -2860,7 +2908,8 @@ function BannerCarouselCenter({
2860
2908
  }, /*#__PURE__*/React.createElement(Wrapper, wrapperProps, bannerCarousel.components.map((node, idx) => /*#__PURE__*/React.createElement(Section$3, {
2861
2909
  nodeData: node,
2862
2910
  isCustomWebsite: isCustomWebsite,
2863
- key: idx /* or some other unique property */
2911
+ key: idx /* or some other unique property */,
2912
+ sectionIndex: sectionIndex
2864
2913
  }))));
2865
2914
  }
2866
2915
 
@@ -2980,7 +3029,8 @@ const useSectionStyles$5 = createUseStyles(theme => {
2980
3029
  });
2981
3030
 
2982
3031
  function Section$2({
2983
- nodeData
3032
+ nodeData,
3033
+ sectionIndex
2984
3034
  }) {
2985
3035
  const classes = useSectionStyles$5();
2986
3036
  const {
@@ -2989,6 +3039,7 @@ function Section$2({
2989
3039
  },
2990
3040
  isMobile
2991
3041
  } = useContext(PageContext);
3042
+ console.log('nodedata_____SDF', sectionIndex);
2992
3043
  return /*#__PURE__*/React.createElement("div", {
2993
3044
  className: classes.centerData
2994
3045
  }, /*#__PURE__*/React.createElement("div", {
@@ -2998,7 +3049,8 @@ function Section$2({
2998
3049
  }, /*#__PURE__*/React.createElement(NextImageRenderer, {
2999
3050
  src: nodeData.image.metadata.value,
3000
3051
  ref: nodeData?.image?.refSetter,
3001
- className: classes.sideBannerImage
3052
+ className: classes.sideBannerImage,
3053
+ sectionIndex: sectionIndex
3002
3054
  }), /*#__PURE__*/React.createElement("div", {
3003
3055
  className: classes.imageBorder
3004
3056
  }))), /*#__PURE__*/React.createElement("div", {
@@ -3023,7 +3075,7 @@ function Section$2({
3023
3075
  dangerouslySetInnerHTML: {
3024
3076
  __html: nodeData.description.metadata.value
3025
3077
  }
3026
- }), /*#__PURE__*/React.createElement(Button, {
3078
+ }), nodeData?.cta?.validations?.isEmptyAllowed && nodeData?.cta?.metadata?.value === '' ? null : /*#__PURE__*/React.createElement(Button, {
3027
3079
  ref: nodeData?.cta?.refSetter,
3028
3080
  data: nodeData.cta.metadata,
3029
3081
  type: nodeData?.cta?.metadata?.type,
@@ -3032,9 +3084,9 @@ function Section$2({
3032
3084
  }
3033
3085
  function BannerCarouselLeft({
3034
3086
  sectionData,
3035
- isCustomWebsite
3087
+ isCustomWebsite,
3088
+ sectionIndex
3036
3089
  }) {
3037
- console.log('isCustomWebsite______', isCustomWebsite);
3038
3090
  const {
3039
3091
  layout: {
3040
3092
  containerWidth
@@ -3053,7 +3105,8 @@ function BannerCarouselLeft({
3053
3105
  className: classes.sectionContainer
3054
3106
  }, /*#__PURE__*/React.createElement(Wrapper, null, bannerCarousel.components.map((node, idx) => /*#__PURE__*/React.createElement(Section$2, {
3055
3107
  nodeData: node,
3056
- key: idx /* or some other unique property */
3108
+ key: idx /* or some other unique property */,
3109
+ sectionIndex: sectionIndex
3057
3110
  })))));
3058
3111
  }
3059
3112
 
@@ -3422,7 +3475,7 @@ function SubscribeToNewsletter({
3422
3475
  onFocus: () => {
3423
3476
  setIsValid(true);
3424
3477
  }
3425
- })), /*#__PURE__*/React.createElement("div", {
3478
+ })), nodeData.cta.metadata.value !== '' && /*#__PURE__*/React.createElement("div", {
3426
3479
  className: classes.btnContainer
3427
3480
  }, /*#__PURE__*/React.createElement(Button, {
3428
3481
  ref: nodeData?.cta?.refSetter,
@@ -3488,7 +3541,8 @@ const useTestimonialStyles = createUseStyles(theme => {
3488
3541
  color: theme?.palette?.font?.default,
3489
3542
  margin: '10px 0 40px 10px',
3490
3543
  overflow: 'hidden',
3491
- whiteSpace: 'nowrap',
3544
+ wordBreak: 'break-word',
3545
+ // whiteSpace: 'nowrap',
3492
3546
  textOverflow: 'ellipsis'
3493
3547
  },
3494
3548
  sliderContainer: {
@@ -3579,7 +3633,8 @@ const useTestimonialStyles = createUseStyles(theme => {
3579
3633
  color: theme?.palette?.font?.default,
3580
3634
  margin: '4px 0 12px 0',
3581
3635
  overflow: 'hidden',
3582
- whiteSpace: 'nowrap',
3636
+ // whiteSpace: 'nowrap',
3637
+ wordBreak: 'break-word',
3583
3638
  textOverflow: 'ellipsis'
3584
3639
  },
3585
3640
  userImageDummy: {
@@ -3626,7 +3681,8 @@ function QuotesComponent() {
3626
3681
  }
3627
3682
 
3628
3683
  function Section$1({
3629
- nodeData
3684
+ nodeData,
3685
+ sectionIndex
3630
3686
  }) {
3631
3687
  const {
3632
3688
  isMobile,
@@ -3648,6 +3704,7 @@ function Section$1({
3648
3704
  centerMode: true,
3649
3705
  centerPadding: isMobile ? '10px 0 0' : '80px 0 0'
3650
3706
  };
3707
+ console.log('nodedata_____', nodeData?.metadata?.order);
3651
3708
  const carouselContent = carouselList.map((el, idx) =>
3652
3709
  /*#__PURE__*/
3653
3710
  // kept an extra element as slick mutates this element and gives it 100% width
@@ -3682,7 +3739,8 @@ function Section$1({
3682
3739
  ref: el?.cardUserImage?.refSetter,
3683
3740
  className: classes.userImage,
3684
3741
  src: el?.cardUserImage?.metadata?.value,
3685
- alt: "userImg"
3742
+ alt: "userImg",
3743
+ sectionIndex: sectionIndex
3686
3744
  })) : /*#__PURE__*/React.createElement("div", {
3687
3745
  ref: el?.cardUserImage?.refSetter,
3688
3746
  className: classes.userImageDummy
@@ -3719,13 +3777,15 @@ function Section$1({
3719
3777
  }, carouselContent))));
3720
3778
  }
3721
3779
  function Testimonials({
3722
- sectionData
3780
+ sectionData,
3781
+ sectionIndex
3723
3782
  }) {
3724
3783
  const classes = useTestimonialStyles();
3725
3784
  return /*#__PURE__*/React.createElement("div", {
3726
3785
  className: classes.testimonialContainer
3727
3786
  }, /*#__PURE__*/React.createElement(Section$1, {
3728
- nodeData: sectionData.components[0]
3787
+ nodeData: sectionData.components[0],
3788
+ sectionIndex: sectionIndex
3729
3789
  }));
3730
3790
  }
3731
3791
 
@@ -3879,7 +3939,8 @@ function VideoPlayer(props) {
3879
3939
  return /*#__PURE__*/React.createElement(React.Fragment, null, !isLoaded && /*#__PURE__*/React.createElement("div", {
3880
3940
  className: classes.imgContainer
3881
3941
  }, /*#__PURE__*/React.createElement(NextImageRenderer, {
3882
- src: imageUrl
3942
+ src: imageUrl,
3943
+ sectionIndex: props?.sectionIndex
3883
3944
  }), isEnabled ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(React.Fragment, null, props.onlyThumbnail ? null : /*#__PURE__*/React.createElement(Icon, {
3884
3945
  name: "Video Play",
3885
3946
  color: theme.palette.font.invertedDefault,
@@ -4044,7 +4105,8 @@ const SingleVideoSlide$2 = props => {
4044
4105
  className: classes.iframeContainer
4045
4106
  }, /*#__PURE__*/React.createElement(VideoPlayer, {
4046
4107
  imageUrl: data.videoFrame.metadata?.thumbnail,
4047
- videoUrl: data.videoFrame.metadata?.value
4108
+ videoUrl: data.videoFrame.metadata?.value,
4109
+ sectionIndex: props?.sectionIndex
4048
4110
  }))), /*#__PURE__*/React.createElement("div", {
4049
4111
  className: classes.videoDetails
4050
4112
  }, /*#__PURE__*/React.createElement("h3", {
@@ -4069,7 +4131,8 @@ const SingleVideoSlide$2 = props => {
4069
4131
  };
4070
4132
 
4071
4133
  function VideoTestimonial({
4072
- sectionData
4134
+ sectionData,
4135
+ sectionIndex
4073
4136
  }) {
4074
4137
  const {
4075
4138
  layout: {
@@ -4103,7 +4166,8 @@ function VideoTestimonial({
4103
4166
  }
4104
4167
  })), /*#__PURE__*/React.createElement(Wrapper, null, videoData.videoCarousel.components.map((data, index) => /*#__PURE__*/React.createElement(SingleVideoSlide$2, {
4105
4168
  data: data,
4106
- key: index
4169
+ key: index,
4170
+ sectionIndex: sectionIndex
4107
4171
  }))))));
4108
4172
  }
4109
4173
 
@@ -4772,7 +4836,8 @@ const usePhotoGalleryStyles = createUseStyles(theme => {
4772
4836
  });
4773
4837
 
4774
4838
  function PhotoGallery({
4775
- sectionData
4839
+ sectionData,
4840
+ sectionIndex
4776
4841
  }) {
4777
4842
  const {
4778
4843
  isMobile,
@@ -4807,7 +4872,8 @@ function PhotoGallery({
4807
4872
  }, /*#__PURE__*/React.createElement(NextImageRenderer, {
4808
4873
  src: el?.cardImage?.metadata?.value,
4809
4874
  ref: el?.cardImage?.refSetter,
4810
- className: classes?.carouselImage
4875
+ className: classes?.carouselImage,
4876
+ sectionIndex: sectionIndex
4811
4877
  })));
4812
4878
  });
4813
4879
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
@@ -5483,9 +5549,9 @@ function CourseCard({
5483
5549
  className: classes.courseCardPriceContainer
5484
5550
  }, /*#__PURE__*/React.createElement("div", {
5485
5551
  className: classes.courseCardPrice
5486
- }, '₹', card?.finalPrice), /*#__PURE__*/React.createElement("div", {
5552
+ }, '₹', card?.finalPrice), card?.price !== card?.finalPrice ? /*#__PURE__*/React.createElement("div", {
5487
5553
  className: classes.courseCardStrikePrice
5488
- }, /*#__PURE__*/React.createElement("span", null, '₹', card?.price), ' ', discount > 0 && discount + '% OFF')), /*#__PURE__*/React.createElement("a", {
5554
+ }, /*#__PURE__*/React.createElement("span", null, '₹', card?.price), ' ', discount > 0 && discount + '% OFF') : null), /*#__PURE__*/React.createElement("a", {
5489
5555
  className: classes.coursesAnchorTag,
5490
5556
  href: isEdit ? null : card?.shareableLink
5491
5557
  }, /*#__PURE__*/React.createElement("div", {
@@ -5766,7 +5832,8 @@ const useTeamStyles = createUseStyles(theme => {
5766
5832
  });
5767
5833
 
5768
5834
  const SingleSlide = ({
5769
- data
5835
+ data,
5836
+ sectionIndex
5770
5837
  }) => {
5771
5838
  const classes = useTeamStyles();
5772
5839
  return /*#__PURE__*/React.createElement("div", {
@@ -5777,7 +5844,8 @@ const SingleSlide = ({
5777
5844
  ref: data?.image?.refSetter,
5778
5845
  className: classes.image,
5779
5846
  alt: "Hero Image",
5780
- src: data.image.metadata.value
5847
+ src: data.image.metadata.value,
5848
+ sectionIndex: sectionIndex
5781
5849
  })), /*#__PURE__*/React.createElement("div", {
5782
5850
  className: classes.teamDetailsContainer
5783
5851
  }, /*#__PURE__*/React.createElement("h3", {
@@ -5796,7 +5864,8 @@ const SingleSlide = ({
5796
5864
  };
5797
5865
 
5798
5866
  function TeamCard({
5799
- sectionData
5867
+ sectionData,
5868
+ sectionIndex
5800
5869
  }) {
5801
5870
  const {
5802
5871
  isMobile,
@@ -5823,7 +5892,8 @@ function TeamCard({
5823
5892
  const carouselContent = teamData.teamCarousel.components.map((data, idx) => {
5824
5893
  return /*#__PURE__*/React.createElement(SingleSlide, {
5825
5894
  key: idx,
5826
- data: data
5895
+ data: data,
5896
+ sectionIndex: sectionIndex
5827
5897
  });
5828
5898
  });
5829
5899
  return /*#__PURE__*/React.createElement("section", {
@@ -5915,7 +5985,7 @@ const useSectionStyles$1 = createUseStyles(theme => ({
5915
5985
  marginTop: '32px'
5916
5986
  },
5917
5987
  leftContainer: {
5918
- width: '50%'
5988
+ width: '65%'
5919
5989
  },
5920
5990
  subtitle: {
5921
5991
  margin: '0 0 40px 0',
@@ -6220,7 +6290,7 @@ function FormEnquiry({
6220
6290
  messageValid: 1
6221
6291
  });
6222
6292
  }
6223
- })), /*#__PURE__*/React.createElement(Button, {
6293
+ })), nodeData.cta.metadata.value !== '' && /*#__PURE__*/React.createElement(Button, {
6224
6294
  ref: nodeData?.cta?.refSetter,
6225
6295
  data: btnDisabled && validData?.messageValid && validData?.emailValid && validData?.nameValid && validData?.phoneValid ? {
6226
6296
  value: 'Submitted'
@@ -6427,7 +6497,8 @@ const useSectionStyles = createUseStyles(theme => ({
6427
6497
  }));
6428
6498
 
6429
6499
  function Contact({
6430
- sectionData
6500
+ sectionData,
6501
+ sectionIndex
6431
6502
  }) {
6432
6503
  const {
6433
6504
  layout: {
@@ -6441,6 +6512,7 @@ function Contact({
6441
6512
  } = useContext(PageContext);
6442
6513
  let [btnDisabled, setBtnDisabled] = useState(false);
6443
6514
  const [nodeData] = sectionData.components;
6515
+ console.log('nodedata_____', nodeData?.metadata?.order);
6444
6516
  const classes = useSectionStyles({
6445
6517
  containerWidth
6446
6518
  });
@@ -6520,7 +6592,8 @@ function Contact({
6520
6592
  }, /*#__PURE__*/React.createElement(NextImageRenderer, {
6521
6593
  className: classes?.telephoneImage,
6522
6594
  ref: nodeData?.image?.refSetter,
6523
- src: nodeData?.image?.metadata?.value
6595
+ src: nodeData?.image?.metadata?.value,
6596
+ sectionIndex: sectionIndex
6524
6597
  }))), /*#__PURE__*/React.createElement("div", {
6525
6598
  className: classes.rightContainer
6526
6599
  }, /*#__PURE__*/React.createElement("div", {
@@ -6611,7 +6684,7 @@ function Contact({
6611
6684
  messageValid: 1
6612
6685
  });
6613
6686
  }
6614
- })), /*#__PURE__*/React.createElement(Button, {
6687
+ })), nodeData.cta.metadata.value !== '' && /*#__PURE__*/React.createElement(Button, {
6615
6688
  ref: nodeData?.cta?.refSetter,
6616
6689
  data: btnDisabled && validData?.messageValid && validData?.emailValid && validData?.nameValid && validData?.phoneValid ? {
6617
6690
  value: 'Submitted'
@@ -6751,10 +6824,11 @@ const useWebinarPromotionPage = createUseStyles(theme => {
6751
6824
  },
6752
6825
  courseViewContainer: {
6753
6826
  width: '645px',
6827
+ height: 'fit-content',
6754
6828
  backgroundColor: '#f4f9ff',
6755
6829
  display: 'flex',
6756
6830
  flexDirection: 'column',
6757
- justifyContent: 'center',
6831
+ justifyContent: 'start',
6758
6832
  paddingTop: '20px',
6759
6833
  borderRadius: '10px'
6760
6834
  },
@@ -6802,10 +6876,10 @@ const useWebinarPromotionPage = createUseStyles(theme => {
6802
6876
  courseDetailContent: {
6803
6877
  marginTop: '16px',
6804
6878
  fontSize: '16px',
6805
- lineHeight: '24px',
6806
6879
  wordBreak: 'break-word',
6807
6880
  color: theme.palette.font.primary,
6808
- margin: '10px 0 20px'
6881
+ margin: '10px 0 20px',
6882
+ whiteSpace: 'pre-wrap'
6809
6883
  },
6810
6884
  courseDetailViewFullDetails: {
6811
6885
  cursor: 'pointer',
@@ -6991,7 +7065,8 @@ const SingleVideoSlide$1 = props => {
6991
7065
  }, /*#__PURE__*/React.createElement(VideoPlayer, {
6992
7066
  onlyThumbnail: true,
6993
7067
  imageUrl: data.thumbnail,
6994
- videoUrl: data.thumbnail
7068
+ videoUrl: data.thumbnail,
7069
+ sectionIndex: props?.sectionIndex
6995
7070
  })), /*#__PURE__*/React.createElement("div", {
6996
7071
  style: {
6997
7072
  display: data.isPaid ? 'flex' : 'block'
@@ -7034,7 +7109,8 @@ const SingleVideoSlide$1 = props => {
7034
7109
 
7035
7110
  function CoursePromotionPage$1({
7036
7111
  sectionData,
7037
- extraProps = {}
7112
+ extraProps = {},
7113
+ sectionIndex
7038
7114
  }) {
7039
7115
  const {
7040
7116
  layout: {
@@ -7053,7 +7129,8 @@ function CoursePromotionPage$1({
7053
7129
  }, /*#__PURE__*/React.createElement(SingleVideoSlide$1, {
7054
7130
  data: sectionData.components[0].metadata,
7055
7131
  webinarCtaClick: extraProps.webinarCtaClick,
7056
- conversions: extraProps.conversions
7132
+ conversions: extraProps.conversions,
7133
+ sectionIndex: sectionIndex
7057
7134
  }))));
7058
7135
  }
7059
7136
 
@@ -7507,7 +7584,8 @@ const SingleVideoSlide = props => {
7507
7584
  }, /*#__PURE__*/React.createElement(VideoPlayer, {
7508
7585
  onlyThumbnail: true,
7509
7586
  imageUrl: data.thumbnail,
7510
- videoUrl: data.thumbnail
7587
+ videoUrl: data.thumbnail,
7588
+ sectionIndex: props?.sectionIndex
7511
7589
  })), /*#__PURE__*/React.createElement("div", {
7512
7590
  className: classes.bottomContainer
7513
7591
  }, /*#__PURE__*/React.createElement("div", {
@@ -7561,7 +7639,8 @@ const SingleVideoSlide = props => {
7561
7639
 
7562
7640
  function CoursePromotionPage({
7563
7641
  sectionData,
7564
- extraProps = {}
7642
+ extraProps = {},
7643
+ sectionIndex
7565
7644
  }) {
7566
7645
  const {
7567
7646
  layout: {
@@ -7582,7 +7661,8 @@ function CoursePromotionPage({
7582
7661
  data: sectionData.components[0].metadata,
7583
7662
  courseBuyNow: extraProps.courseBuyNow,
7584
7663
  showCourseInstallment: extraProps.showCourseInstallment,
7585
- conversions: extraProps.conversions
7664
+ conversions: extraProps.conversions,
7665
+ sectionIndex: sectionIndex
7586
7666
  }))));
7587
7667
  }
7588
7668
 
@@ -8007,7 +8087,8 @@ const useTilesStyles = createUseStyles(theme => {
8007
8087
  });
8008
8088
 
8009
8089
  function Tiles({
8010
- sectionData
8090
+ sectionData,
8091
+ sectionIndex
8011
8092
  }) {
8012
8093
  const classes = useTilesStyles({});
8013
8094
  const {
@@ -8021,6 +8102,7 @@ function Tiles({
8021
8102
  const nodeData = sectionData.components;
8022
8103
  console.log(nodeData);
8023
8104
  const tilesList = nodeData[0]?.tilesList.components;
8105
+ console.log('nodedata_____', nodeData?.metadata?.order);
8024
8106
  const handleClick = value => {
8025
8107
  if (!isEdit && value) {
8026
8108
  if (value.indexOf('http://') == 0 || value.indexOf('https://') == 0) {
@@ -8036,9 +8118,10 @@ function Tiles({
8036
8118
  }, /*#__PURE__*/React.createElement("div", {
8037
8119
  className: classes.tileDiv,
8038
8120
  onClick: () => handleClick(tile.cta?.metadata?.value)
8039
- }, /*#__PURE__*/React.createElement("img", {
8121
+ }, /*#__PURE__*/React.createElement(NextImageRenderer, {
8040
8122
  className: classes.tileImg,
8041
- src: tile?.tileImage?.metadata?.value
8123
+ src: tile?.tileImage?.metadata?.value,
8124
+ sectionIndex: sectionIndex
8042
8125
  }), /*#__PURE__*/React.createElement("div", {
8043
8126
  className: classes.title,
8044
8127
  ref: tile.tileName?.refSetter,
@@ -8565,7 +8648,8 @@ const getCompToRender = type => TYPE_TO_COMPONENT_MAP[type] || (() => null);
8565
8648
  const MemoisedSection = /*#__PURE__*/memo(({
8566
8649
  sectionData,
8567
8650
  extraProps,
8568
- isCustomWebsite
8651
+ isCustomWebsite,
8652
+ sectionIndex
8569
8653
  }) => {
8570
8654
  // console.log("isCustomWebsite______", isCustomWebsite)
8571
8655
  console.log('templatesectiondata', sectionData);
@@ -8573,19 +8657,22 @@ const MemoisedSection = /*#__PURE__*/memo(({
8573
8657
  return /*#__PURE__*/React.createElement(SectionComp, {
8574
8658
  sectionData: sectionData,
8575
8659
  extraProps: extraProps,
8576
- isCustomWebsite: isCustomWebsite
8660
+ isCustomWebsite: isCustomWebsite,
8661
+ sectionIndex: sectionIndex
8577
8662
  });
8578
8663
  });
8579
8664
  function SectionRenderer({
8580
8665
  sectionData,
8581
8666
  extraProps,
8582
- isCustomWebsite
8667
+ isCustomWebsite,
8668
+ sectionIndex
8583
8669
  }) {
8584
8670
  // console.log("isCustomWebsite______", isCustomWebsite)
8585
8671
  return /*#__PURE__*/React.createElement(MemoisedSection, {
8586
8672
  sectionData: sectionData,
8587
8673
  extraProps: extraProps,
8588
- isCustomWebsite: isCustomWebsite
8674
+ isCustomWebsite: isCustomWebsite,
8675
+ sectionIndex: sectionIndex
8589
8676
  });
8590
8677
  }
8591
8678
 
@@ -8663,7 +8750,8 @@ function PageRenderer({
8663
8750
  }), /*#__PURE__*/React.createElement(SectionRenderer, {
8664
8751
  sectionData: sectionData,
8665
8752
  extraProps: extraProps,
8666
- isCustomWebsite: isCustomWebsite
8753
+ isCustomWebsite: isCustomWebsite,
8754
+ sectionIndex: sectionIndex
8667
8755
  }))) : sectionPlaceholder, !!footer && /*#__PURE__*/React.createElement(Wrapper, !!SectionWrapper && {
8668
8756
  sectionData: footer,
8669
8757
  isFooter: true