diy-template-components 0.2.42 → 0.2.44
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 +291 -138
- package/build/index.es.js.map +1 -1
- package/build/index.js +291 -138
- package/build/index.js.map +1 -1
- package/package.json +2 -2
package/build/index.js
CHANGED
|
@@ -157,14 +157,19 @@ const useSectionStyles$a = createUseStyles(theme => ({
|
|
|
157
157
|
position: 'relative',
|
|
158
158
|
maxHeight: '55px',
|
|
159
159
|
alignItems: 'center',
|
|
160
|
-
width: '
|
|
160
|
+
width: '30%'
|
|
161
161
|
},
|
|
162
162
|
imageDivImageMobile: {},
|
|
163
|
+
imageDivImageNext: {
|
|
164
|
+
objectFit: ({
|
|
165
|
+
isCustomWebsite
|
|
166
|
+
} = {}) => isCustomWebsite ? 'contain' : ''
|
|
167
|
+
},
|
|
163
168
|
imageAnchorMobile: {
|
|
164
169
|
pointerEvents: 'auto',
|
|
165
170
|
cursor: 'default',
|
|
166
171
|
width: '100%',
|
|
167
|
-
maxWidth: '
|
|
172
|
+
maxWidth: '85px',
|
|
168
173
|
cursor: 'default',
|
|
169
174
|
height: '46px',
|
|
170
175
|
position: 'relative'
|
|
@@ -180,7 +185,7 @@ const useSectionStyles$a = createUseStyles(theme => ({
|
|
|
180
185
|
mobileContent: {
|
|
181
186
|
display: 'flex',
|
|
182
187
|
alignItems: 'center',
|
|
183
|
-
width:
|
|
188
|
+
width: '100%',
|
|
184
189
|
'& img': {
|
|
185
190
|
marginRight: '8px',
|
|
186
191
|
maxWidth: '80px',
|
|
@@ -224,7 +229,7 @@ const useSectionStyles$a = createUseStyles(theme => ({
|
|
|
224
229
|
display: 'flex',
|
|
225
230
|
alignItems: 'center',
|
|
226
231
|
justifyContent: 'center',
|
|
227
|
-
width:
|
|
232
|
+
width: '10%'
|
|
228
233
|
},
|
|
229
234
|
'@media screen and (max-width: 767px)': {
|
|
230
235
|
optionsContainer: {
|
|
@@ -236,6 +241,9 @@ const useSectionStyles$a = createUseStyles(theme => ({
|
|
|
236
241
|
mobileHeader: {
|
|
237
242
|
height: '80px'
|
|
238
243
|
},
|
|
244
|
+
sideDrawerImg: {
|
|
245
|
+
width: '15%'
|
|
246
|
+
},
|
|
239
247
|
menuItem: {
|
|
240
248
|
padding: '0'
|
|
241
249
|
},
|
|
@@ -1115,34 +1123,73 @@ function OptionList({
|
|
|
1115
1123
|
}) : null));
|
|
1116
1124
|
}
|
|
1117
1125
|
|
|
1126
|
+
const nextImageRendererStyles = createUseStyles(() => ({
|
|
1127
|
+
'@media (max-width: 640px)': {
|
|
1128
|
+
imageContainer: {
|
|
1129
|
+
maxWidth: '100%'
|
|
1130
|
+
}
|
|
1131
|
+
},
|
|
1132
|
+
'@media (min-width: 641px) and (max-width: 1280px)': {
|
|
1133
|
+
imageContainer: {
|
|
1134
|
+
maxWidth: '75%'
|
|
1135
|
+
}
|
|
1136
|
+
},
|
|
1137
|
+
'@media (min-width: 1281px)': {
|
|
1138
|
+
imageContainer: {
|
|
1139
|
+
maxWidth: '50%'
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1142
|
+
}));
|
|
1143
|
+
|
|
1118
1144
|
const NextImageRenderer = ({
|
|
1119
1145
|
src,
|
|
1146
|
+
sectionIndex,
|
|
1120
1147
|
...props
|
|
1121
1148
|
}) => {
|
|
1122
1149
|
const {
|
|
1123
|
-
isCustomWebsite
|
|
1150
|
+
isCustomWebsite,
|
|
1151
|
+
pageData,
|
|
1152
|
+
isMobile
|
|
1124
1153
|
} = React.useContext(PageContext);
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1154
|
+
try {
|
|
1155
|
+
let {
|
|
1156
|
+
refSetter,
|
|
1157
|
+
className
|
|
1158
|
+
} = props;
|
|
1159
|
+
if (isCustomWebsite && typeof Image !== 'undefined') {
|
|
1160
|
+
const classes = nextImageRendererStyles();
|
|
1161
|
+
const imageLoader = ({
|
|
1162
|
+
src,
|
|
1163
|
+
quality,
|
|
1164
|
+
width
|
|
1165
|
+
}) => {
|
|
1166
|
+
const breakpoints = {
|
|
1167
|
+
mobile: 640,
|
|
1168
|
+
desktop: 1200
|
|
1169
|
+
};
|
|
1170
|
+
const dynamicWidth = isMobile ? breakpoints.mobile : breakpoints?.desktop;
|
|
1171
|
+
return `${process.env.NEXT_PUBLIC_ENV_ASSET_PREFIX}/_next/image?url=${src}&q=${quality || 75}&w=${dynamicWidth}`;
|
|
1172
|
+
};
|
|
1173
|
+
const NextImage = require('next/image').default;
|
|
1174
|
+
return /*#__PURE__*/React__default["default"].createElement(NextImage, _extends({
|
|
1175
|
+
priority: sectionIndex == '0' ? true : false,
|
|
1176
|
+
loader: imageLoader,
|
|
1177
|
+
src: src,
|
|
1178
|
+
layout: 'fill',
|
|
1179
|
+
ref: refSetter,
|
|
1180
|
+
className: `${classes?.imageContainer} ${className}`
|
|
1181
|
+
}, props, {
|
|
1182
|
+
alt: "image"
|
|
1183
|
+
}));
|
|
1184
|
+
} else {
|
|
1185
|
+
return /*#__PURE__*/React__default["default"].createElement("img", {
|
|
1186
|
+
ref: refSetter,
|
|
1187
|
+
className: className,
|
|
1188
|
+
src: src
|
|
1189
|
+
});
|
|
1190
|
+
}
|
|
1191
|
+
} catch (err) {
|
|
1192
|
+
console.log('next image failed', err);
|
|
1146
1193
|
return /*#__PURE__*/React__default["default"].createElement("img", {
|
|
1147
1194
|
ref: refSetter,
|
|
1148
1195
|
className: className,
|
|
@@ -1160,12 +1207,16 @@ function DesktopHeader({
|
|
|
1160
1207
|
const {
|
|
1161
1208
|
isFixed = true
|
|
1162
1209
|
} = header;
|
|
1210
|
+
const {
|
|
1211
|
+
isCustomWebsite
|
|
1212
|
+
} = React.useContext(PageContext);
|
|
1163
1213
|
const logoUrl = useLinkBuilder({
|
|
1164
1214
|
isLink: true,
|
|
1165
1215
|
link: '/'
|
|
1166
1216
|
});
|
|
1167
1217
|
const classes = useSectionStyles$a({
|
|
1168
|
-
isFixed
|
|
1218
|
+
isFixed,
|
|
1219
|
+
isCustomWebsite
|
|
1169
1220
|
});
|
|
1170
1221
|
const optionDataFn = () => {
|
|
1171
1222
|
let optionsArr = navData;
|
|
@@ -1204,7 +1255,8 @@ function DesktopHeader({
|
|
|
1204
1255
|
className: classes?.imageDivImage
|
|
1205
1256
|
}, /*#__PURE__*/React__default["default"].createElement(NextImageRenderer, {
|
|
1206
1257
|
src: header?.websiteLogo,
|
|
1207
|
-
className: classes.imageDivImageNext
|
|
1258
|
+
className: classes.imageDivImageNext,
|
|
1259
|
+
order: 1
|
|
1208
1260
|
}))) : null, isTutorWebsite && header?.appName ? /*#__PURE__*/React__default["default"].createElement("a", {
|
|
1209
1261
|
href: logoUrl
|
|
1210
1262
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
@@ -1230,6 +1282,9 @@ function MobileHeader({
|
|
|
1230
1282
|
isTutorWebsite,
|
|
1231
1283
|
isLandingPage = false
|
|
1232
1284
|
}) {
|
|
1285
|
+
const {
|
|
1286
|
+
isCustomWebsite
|
|
1287
|
+
} = React.useContext(PageContext);
|
|
1233
1288
|
const {
|
|
1234
1289
|
isFixed = true
|
|
1235
1290
|
} = header;
|
|
@@ -1239,7 +1294,8 @@ function MobileHeader({
|
|
|
1239
1294
|
});
|
|
1240
1295
|
const theme = useTheme();
|
|
1241
1296
|
const classes = useSectionStyles$a({
|
|
1242
|
-
isFixed
|
|
1297
|
+
isFixed,
|
|
1298
|
+
isCustomWebsite
|
|
1243
1299
|
});
|
|
1244
1300
|
const [sideMenu, openSideMenu] = React.useState(false);
|
|
1245
1301
|
const navEl = React.useRef(null);
|
|
@@ -1374,7 +1430,8 @@ function MobileHeader({
|
|
|
1374
1430
|
className: classes?.imageDivImageMobile
|
|
1375
1431
|
}, /*#__PURE__*/React__default["default"].createElement(NextImageRenderer, {
|
|
1376
1432
|
src: header?.websiteLogo,
|
|
1377
|
-
className: classes.imageDivImageNext
|
|
1433
|
+
className: classes.imageDivImageNext,
|
|
1434
|
+
order: 1
|
|
1378
1435
|
}))) : null, isTutorWebsite && header?.appName ? /*#__PURE__*/React__default["default"].createElement("p", {
|
|
1379
1436
|
className: classes.mobileAppNameClass
|
|
1380
1437
|
}, " ", header?.appName) : null), downloadLink), sideMenu ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -1434,6 +1491,9 @@ const useSectionStyles$9 = createUseStyles(theme => ({
|
|
|
1434
1491
|
boxSizing: 'border-box'
|
|
1435
1492
|
}
|
|
1436
1493
|
},
|
|
1494
|
+
sectionNoBranding: {
|
|
1495
|
+
paddingBottom: '0px'
|
|
1496
|
+
},
|
|
1437
1497
|
upperContainer: {
|
|
1438
1498
|
display: 'flex',
|
|
1439
1499
|
justifyContent: 'space-between',
|
|
@@ -1442,6 +1502,9 @@ const useSectionStyles$9 = createUseStyles(theme => ({
|
|
|
1442
1502
|
borderBottom: '1px solid #E1EAF6',
|
|
1443
1503
|
alignItems: 'flex-start'
|
|
1444
1504
|
},
|
|
1505
|
+
upperContainerNoBranding: {
|
|
1506
|
+
borderBottom: '0px'
|
|
1507
|
+
},
|
|
1445
1508
|
upperContainerItem1: {
|
|
1446
1509
|
width: '33%',
|
|
1447
1510
|
display: 'flex',
|
|
@@ -1517,9 +1580,10 @@ const useSectionStyles$9 = createUseStyles(theme => ({
|
|
|
1517
1580
|
color: theme.palette.font.primary
|
|
1518
1581
|
},
|
|
1519
1582
|
poweredDiv: {
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1583
|
+
width: '15%',
|
|
1584
|
+
height: 'auto',
|
|
1585
|
+
position: 'relative',
|
|
1586
|
+
paddingBottom: ' 6%',
|
|
1523
1587
|
'& p': {
|
|
1524
1588
|
margin: '0',
|
|
1525
1589
|
paddingRight: '8px',
|
|
@@ -1532,6 +1596,21 @@ const useSectionStyles$9 = createUseStyles(theme => ({
|
|
|
1532
1596
|
width: '100px'
|
|
1533
1597
|
}
|
|
1534
1598
|
},
|
|
1599
|
+
poweredByContainer: {
|
|
1600
|
+
display: 'flex',
|
|
1601
|
+
width: '60%',
|
|
1602
|
+
justifyContent: 'flex-end',
|
|
1603
|
+
alignItems: 'center',
|
|
1604
|
+
gap: '5%'
|
|
1605
|
+
},
|
|
1606
|
+
poweredDivImg: {
|
|
1607
|
+
width: '100px !important'
|
|
1608
|
+
},
|
|
1609
|
+
footerLogoImage: {
|
|
1610
|
+
objectFit: ({
|
|
1611
|
+
isCustomWebsite
|
|
1612
|
+
}) => isCustomWebsite ? 'contain' : ''
|
|
1613
|
+
},
|
|
1535
1614
|
'@media screen and (max-width: 767px)': {
|
|
1536
1615
|
section: {
|
|
1537
1616
|
padding: '45px 30px',
|
|
@@ -1577,13 +1656,22 @@ const useSectionStyles$9 = createUseStyles(theme => ({
|
|
|
1577
1656
|
padding: '0'
|
|
1578
1657
|
},
|
|
1579
1658
|
poweredDiv: {
|
|
1580
|
-
marginTop: '15px'
|
|
1659
|
+
// marginTop: '15px'
|
|
1660
|
+
width: '28%',
|
|
1661
|
+
paddingBottom: '9%'
|
|
1581
1662
|
},
|
|
1582
1663
|
socialMediaCta: {
|
|
1583
1664
|
margin: '0 8px 16px 8px'
|
|
1584
1665
|
},
|
|
1585
1666
|
bottomLeftText: {
|
|
1586
1667
|
padding: '48px 0 10px 0'
|
|
1668
|
+
},
|
|
1669
|
+
poweredByContainer: {
|
|
1670
|
+
gap: '2%',
|
|
1671
|
+
width: '100%',
|
|
1672
|
+
display: 'flex',
|
|
1673
|
+
alignItems: 'center',
|
|
1674
|
+
justifyContent: 'center'
|
|
1587
1675
|
}
|
|
1588
1676
|
}
|
|
1589
1677
|
}));
|
|
@@ -1592,19 +1680,24 @@ function Footer({
|
|
|
1592
1680
|
data
|
|
1593
1681
|
}) {
|
|
1594
1682
|
const theme = useTheme();
|
|
1595
|
-
const
|
|
1596
|
-
|
|
1683
|
+
const {
|
|
1684
|
+
isCustomWebsite
|
|
1685
|
+
} = React.useContext(PageContext);
|
|
1686
|
+
const classes = useSectionStyles$9({
|
|
1687
|
+
isCustomWebsite
|
|
1688
|
+
});
|
|
1597
1689
|
return /*#__PURE__*/React__default["default"].createElement("footer", {
|
|
1598
|
-
className: classes.section
|
|
1690
|
+
className: data.metadata.isCpBranding ? `${classes.section}` : `${classes.section} ${classes.sectionNoBranding}`
|
|
1599
1691
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1600
|
-
className: classes.upperContainer
|
|
1692
|
+
className: data.metadata.isCpBranding ? `${classes.upperContainer}` : `${classes.upperContainer} ${classes.upperContainerNoBranding}`
|
|
1601
1693
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1602
1694
|
className: classes.upperContainerItem1
|
|
1603
1695
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1604
1696
|
className: classes.upperContainerItem1Img
|
|
1605
1697
|
}, /*#__PURE__*/React__default["default"].createElement(NextImageRenderer, {
|
|
1606
1698
|
src: data?.logo?.metadata?.url,
|
|
1607
|
-
ref: data?.logo?.refSetter
|
|
1699
|
+
ref: data?.logo?.refSetter,
|
|
1700
|
+
className: classes.footerLogoImage
|
|
1608
1701
|
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1609
1702
|
className: classes.upperContainerItem2
|
|
1610
1703
|
}, data?.address?.metadata.value && data?.address?.metadata.value !== '<br>' ? /*#__PURE__*/React__default["default"].createElement("p", {
|
|
@@ -1656,7 +1749,8 @@ function Footer({
|
|
|
1656
1749
|
className: classes.socialMediaCta,
|
|
1657
1750
|
onClick: () => {
|
|
1658
1751
|
window.open(data?.facebookLink?.metadata?.value, '_blank');
|
|
1659
|
-
}
|
|
1752
|
+
},
|
|
1753
|
+
"aria-label": "Name"
|
|
1660
1754
|
}, /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
1661
1755
|
name: 'Facebook Solid',
|
|
1662
1756
|
color: theme.palette.background.default,
|
|
@@ -1667,7 +1761,8 @@ function Footer({
|
|
|
1667
1761
|
className: classes.socialMediaCta,
|
|
1668
1762
|
onClick: () => {
|
|
1669
1763
|
window.open(data?.twitterLink?.metadata?.value, '_blank');
|
|
1670
|
-
}
|
|
1764
|
+
},
|
|
1765
|
+
"aria-label": "Name"
|
|
1671
1766
|
}, /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
1672
1767
|
name: 'Twitter Solid',
|
|
1673
1768
|
color: theme.palette.background.default,
|
|
@@ -1678,7 +1773,8 @@ function Footer({
|
|
|
1678
1773
|
className: classes.socialMediaCta,
|
|
1679
1774
|
onClick: () => {
|
|
1680
1775
|
window.open(data?.instagramLink?.metadata?.value, '_blank');
|
|
1681
|
-
}
|
|
1776
|
+
},
|
|
1777
|
+
"aria-label": "Name"
|
|
1682
1778
|
}, /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
1683
1779
|
name: 'Instagram',
|
|
1684
1780
|
color: theme.palette.background.default,
|
|
@@ -1689,7 +1785,8 @@ function Footer({
|
|
|
1689
1785
|
className: classes.socialMediaCta,
|
|
1690
1786
|
onClick: () => {
|
|
1691
1787
|
window.open(data?.telegramLink?.metadata?.value, '_blank');
|
|
1692
|
-
}
|
|
1788
|
+
},
|
|
1789
|
+
"aria-label": "Name"
|
|
1693
1790
|
}, /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
1694
1791
|
name: 'Telegram',
|
|
1695
1792
|
color: theme.palette.background.default,
|
|
@@ -1700,7 +1797,8 @@ function Footer({
|
|
|
1700
1797
|
className: classes.socialMediaCta,
|
|
1701
1798
|
onClick: () => {
|
|
1702
1799
|
window.open(data?.youtubeLink?.metadata?.value, '_blank');
|
|
1703
|
-
}
|
|
1800
|
+
},
|
|
1801
|
+
"aria-label": "Name"
|
|
1704
1802
|
}, /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
1705
1803
|
name: 'YouTube',
|
|
1706
1804
|
color: theme.palette.background.default,
|
|
@@ -1710,15 +1808,18 @@ function Footer({
|
|
|
1710
1808
|
className: classes.lowerContainer
|
|
1711
1809
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1712
1810
|
className: classes.bottomLeftText
|
|
1713
|
-
}, "2022 All Rights Reserved"), /*#__PURE__*/React__default["default"].createElement("
|
|
1811
|
+
}, "2022 All Rights Reserved"), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1812
|
+
className: classes.poweredByContainer
|
|
1813
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", null, "Powered by"), /*#__PURE__*/React__default["default"].createElement("a", {
|
|
1714
1814
|
title: "Powered by Classplus",
|
|
1715
1815
|
target: "_blank",
|
|
1716
1816
|
href: "https://classplusapp.com/",
|
|
1717
1817
|
className: classes.poweredDiv
|
|
1718
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
1818
|
+
}, /*#__PURE__*/React__default["default"].createElement(NextImageRenderer, {
|
|
1819
|
+
src: 'https://storage.googleapis.com/coursewebview/logo.png',
|
|
1719
1820
|
alt: "classplus",
|
|
1720
|
-
|
|
1721
|
-
}))) : null);
|
|
1821
|
+
className: classes.poweredDivImg
|
|
1822
|
+
})))) : null);
|
|
1722
1823
|
}
|
|
1723
1824
|
|
|
1724
1825
|
const borderRadius = {
|
|
@@ -1899,24 +2000,27 @@ const TYPE_TO_COMPONENT_MAP$1 = {
|
|
|
1899
2000
|
const getCompToRender$1 = type => TYPE_TO_COMPONENT_MAP$1[type] || (() => null);
|
|
1900
2001
|
const MemoisedSection$1 = /*#__PURE__*/React.memo(({
|
|
1901
2002
|
sectionData,
|
|
1902
|
-
extraProps
|
|
2003
|
+
extraProps,
|
|
2004
|
+
sectionIndex
|
|
1903
2005
|
}) => {
|
|
1904
|
-
console.log('templatesectiondata', sectionData);
|
|
1905
2006
|
const SectionComp = getCompToRender$1(sectionData.type);
|
|
1906
2007
|
return /*#__PURE__*/React__default["default"].createElement(SectionComp, {
|
|
1907
2008
|
sectionData: sectionData,
|
|
1908
|
-
extraProps: extraProps
|
|
2009
|
+
extraProps: extraProps,
|
|
2010
|
+
sectionIndex: sectionIndex
|
|
1909
2011
|
});
|
|
1910
2012
|
});
|
|
1911
2013
|
function SectionRenderer$1({
|
|
1912
2014
|
sectionData,
|
|
2015
|
+
sectionIndex,
|
|
1913
2016
|
extraProps
|
|
1914
2017
|
}) {
|
|
1915
2018
|
return /*#__PURE__*/React__default["default"].createElement(React.Suspense, {
|
|
1916
2019
|
fallback: null /*GIF maybe*/
|
|
1917
2020
|
}, /*#__PURE__*/React__default["default"].createElement(MemoisedSection$1, {
|
|
1918
2021
|
sectionData: sectionData,
|
|
1919
|
-
extraProps: extraProps
|
|
2022
|
+
extraProps: extraProps,
|
|
2023
|
+
sectionIndex: sectionIndex
|
|
1920
2024
|
}));
|
|
1921
2025
|
}
|
|
1922
2026
|
|
|
@@ -1986,7 +2090,6 @@ function PageRenderer$1({
|
|
|
1986
2090
|
_id
|
|
1987
2091
|
}), [isMobile, isLandingPages, layout, baseURLs, hashToken, isPreview, isEdit, templateId, navList, isMasterTemplate, basePath, validations, isTutorWebsite, extraProps, hideLogin, _id]);
|
|
1988
2092
|
const Wrapper = SectionWrapper || React.Fragment;
|
|
1989
|
-
// console.log("CONTEXT______", context)
|
|
1990
2093
|
return /*#__PURE__*/React__default["default"].createElement(ThemeProvider, {
|
|
1991
2094
|
theme: theme
|
|
1992
2095
|
}, /*#__PURE__*/React__default["default"].createElement(PageContext.Provider, {
|
|
@@ -2007,7 +2110,8 @@ function PageRenderer$1({
|
|
|
2007
2110
|
key: sectionData.type + (sectionData._id || sectionIndex)
|
|
2008
2111
|
}), /*#__PURE__*/React__default["default"].createElement(SectionRenderer$1, {
|
|
2009
2112
|
sectionData: sectionData,
|
|
2010
|
-
extraProps: extraProps
|
|
2113
|
+
extraProps: extraProps,
|
|
2114
|
+
sectionIndex: sectionIndex
|
|
2011
2115
|
}))) : sectionPlaceholder, !!footer && /*#__PURE__*/React__default["default"].createElement(Wrapper, !!SectionWrapper && {
|
|
2012
2116
|
sectionData: footer,
|
|
2013
2117
|
isFooter: true
|
|
@@ -2052,6 +2156,7 @@ const useSectionStyles$8 = createUseStyles(theme => ({
|
|
|
2052
2156
|
},
|
|
2053
2157
|
contentContainer: {
|
|
2054
2158
|
position: 'relative',
|
|
2159
|
+
width: '100%',
|
|
2055
2160
|
zIndex: '1',
|
|
2056
2161
|
display: 'grid',
|
|
2057
2162
|
gridTemplateColumns: 'repeat(2,minmax(0, 1fr))',
|
|
@@ -2350,7 +2455,8 @@ function Carousel({
|
|
|
2350
2455
|
}
|
|
2351
2456
|
|
|
2352
2457
|
function Section$4({
|
|
2353
|
-
nodeData
|
|
2458
|
+
nodeData,
|
|
2459
|
+
sectionIndex
|
|
2354
2460
|
}) {
|
|
2355
2461
|
const classes = useSectionStyles$8();
|
|
2356
2462
|
const {
|
|
@@ -2387,7 +2493,7 @@ function Section$4({
|
|
|
2387
2493
|
dangerouslySetInnerHTML: {
|
|
2388
2494
|
__html: nodeData.description.metadata.value
|
|
2389
2495
|
}
|
|
2390
|
-
}), /*#__PURE__*/React__default["default"].createElement(Button, {
|
|
2496
|
+
}), nodeData?.cta?.validations?.isEmptyAllowed && nodeData?.cta?.metadata?.value === '' ? null : /*#__PURE__*/React__default["default"].createElement(Button, {
|
|
2391
2497
|
ref: nodeData?.cta?.refSetter,
|
|
2392
2498
|
data: nodeData.cta.metadata,
|
|
2393
2499
|
type: nodeData?.cta?.metadata?.type,
|
|
@@ -2397,11 +2503,13 @@ function Section$4({
|
|
|
2397
2503
|
}, /*#__PURE__*/React__default["default"].createElement(NextImageRenderer, {
|
|
2398
2504
|
ref: nodeData?.image?.refSetter,
|
|
2399
2505
|
className: classes.sideBannerImage,
|
|
2400
|
-
src: nodeData.image.metadata.value
|
|
2506
|
+
src: nodeData.image.metadata.value,
|
|
2507
|
+
sectionIndex: sectionIndex
|
|
2401
2508
|
}))));
|
|
2402
2509
|
}
|
|
2403
2510
|
function BannerCarouselRight({
|
|
2404
|
-
sectionData
|
|
2511
|
+
sectionData,
|
|
2512
|
+
sectionIndex
|
|
2405
2513
|
}) {
|
|
2406
2514
|
const {
|
|
2407
2515
|
layout: {
|
|
@@ -2425,7 +2533,8 @@ function BannerCarouselRight({
|
|
|
2425
2533
|
className: classes.sectionContainer
|
|
2426
2534
|
}, /*#__PURE__*/React__default["default"].createElement(Wrapper, wrapperProps, bannerCarousel.components.map((node, idx) => /*#__PURE__*/React__default["default"].createElement(Section$4, {
|
|
2427
2535
|
nodeData: node,
|
|
2428
|
-
key: idx /* or some other unique property
|
|
2536
|
+
key: idx /* or some other unique property */,
|
|
2537
|
+
sectionIndex: sectionIndex
|
|
2429
2538
|
})))));
|
|
2430
2539
|
}
|
|
2431
2540
|
|
|
@@ -2717,9 +2826,13 @@ const useSectionStyles$6 = createUseStyles(theme => ({
|
|
|
2717
2826
|
width: '100%'
|
|
2718
2827
|
},
|
|
2719
2828
|
contentContainer: {
|
|
2720
|
-
padding: '100px 0',
|
|
2829
|
+
// padding: '100px 0',
|
|
2830
|
+
// height: '100%',
|
|
2831
|
+
// display: 'flex',
|
|
2832
|
+
// alignItems: 'center'
|
|
2721
2833
|
height: '100%',
|
|
2722
2834
|
display: 'flex',
|
|
2835
|
+
/* padding: 100px 0; */
|
|
2723
2836
|
alignItems: 'center'
|
|
2724
2837
|
// backgroundImage: ({ imageUrl } = {}) =>
|
|
2725
2838
|
// `linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%), url("${imageUrl}")`,
|
|
@@ -2745,7 +2858,7 @@ const useSectionStyles$6 = createUseStyles(theme => ({
|
|
|
2745
2858
|
height: '100%'
|
|
2746
2859
|
},
|
|
2747
2860
|
textContainer: {
|
|
2748
|
-
padding: '0
|
|
2861
|
+
padding: '100px 0',
|
|
2749
2862
|
margin: '0 auto',
|
|
2750
2863
|
width: '80%'
|
|
2751
2864
|
},
|
|
@@ -2803,7 +2916,8 @@ const useSectionStyles$6 = createUseStyles(theme => ({
|
|
|
2803
2916
|
|
|
2804
2917
|
const Section$3 = ({
|
|
2805
2918
|
nodeData,
|
|
2806
|
-
isCustomWebsite
|
|
2919
|
+
isCustomWebsite,
|
|
2920
|
+
sectionIndex
|
|
2807
2921
|
}) => {
|
|
2808
2922
|
const {
|
|
2809
2923
|
layout: {
|
|
@@ -2815,7 +2929,6 @@ const Section$3 = ({
|
|
|
2815
2929
|
imageUrl: nodeData.image.metadata.value,
|
|
2816
2930
|
containerWidth
|
|
2817
2931
|
});
|
|
2818
|
-
console.log('isCustomWebsite______', isCustomWebsite);
|
|
2819
2932
|
return /*#__PURE__*/React__default["default"].createElement("section", {
|
|
2820
2933
|
className: classes.bannerCarouselCenterSection
|
|
2821
2934
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -2844,7 +2957,7 @@ const Section$3 = ({
|
|
|
2844
2957
|
dangerouslySetInnerHTML: {
|
|
2845
2958
|
__html: nodeData.description.metadata.value
|
|
2846
2959
|
}
|
|
2847
|
-
}), /*#__PURE__*/React__default["default"].createElement(Button, {
|
|
2960
|
+
}), nodeData?.cta?.validations?.isEmptyAllowed && nodeData?.cta?.metadata?.value === '' ? null : /*#__PURE__*/React__default["default"].createElement(Button, {
|
|
2848
2961
|
ref: nodeData?.cta?.refSetter,
|
|
2849
2962
|
data: nodeData.cta.metadata,
|
|
2850
2963
|
type: nodeData?.cta?.metadata?.type,
|
|
@@ -2853,14 +2966,15 @@ const Section$3 = ({
|
|
|
2853
2966
|
className: classes?.centerBgImageContainer
|
|
2854
2967
|
}, /*#__PURE__*/React__default["default"].createElement(NextImageRenderer, {
|
|
2855
2968
|
src: nodeData.image.metadata.value,
|
|
2856
|
-
className: classes?.centerBgImage
|
|
2969
|
+
className: classes?.centerBgImage,
|
|
2970
|
+
sectionIndex: sectionIndex
|
|
2857
2971
|
}))));
|
|
2858
2972
|
};
|
|
2859
2973
|
function BannerCarouselCenter({
|
|
2860
2974
|
sectionData,
|
|
2861
|
-
isCustomWebsite
|
|
2975
|
+
isCustomWebsite,
|
|
2976
|
+
sectionIndex
|
|
2862
2977
|
}) {
|
|
2863
|
-
console.log('isCustomWebsite______', isCustomWebsite);
|
|
2864
2978
|
const classes = useSectionStyles$6();
|
|
2865
2979
|
const [{
|
|
2866
2980
|
bannerCarousel
|
|
@@ -2875,7 +2989,8 @@ function BannerCarouselCenter({
|
|
|
2875
2989
|
}, /*#__PURE__*/React__default["default"].createElement(Wrapper, wrapperProps, bannerCarousel.components.map((node, idx) => /*#__PURE__*/React__default["default"].createElement(Section$3, {
|
|
2876
2990
|
nodeData: node,
|
|
2877
2991
|
isCustomWebsite: isCustomWebsite,
|
|
2878
|
-
key: idx /* or some other unique property
|
|
2992
|
+
key: idx /* or some other unique property */,
|
|
2993
|
+
sectionIndex: sectionIndex
|
|
2879
2994
|
}))));
|
|
2880
2995
|
}
|
|
2881
2996
|
|
|
@@ -2919,7 +3034,13 @@ const useSectionStyles$5 = createUseStyles(theme => {
|
|
|
2919
3034
|
position: 'relative',
|
|
2920
3035
|
width: '100%',
|
|
2921
3036
|
// height: "650px"
|
|
2922
|
-
paddingBottom:
|
|
3037
|
+
paddingBottom: ({
|
|
3038
|
+
isCustomWebsite
|
|
3039
|
+
}) => isCustomWebsite ? '85%' : '',
|
|
3040
|
+
'& img': {
|
|
3041
|
+
height: '520px',
|
|
3042
|
+
objectFit: 'cover'
|
|
3043
|
+
}
|
|
2923
3044
|
},
|
|
2924
3045
|
imageBorder: {
|
|
2925
3046
|
border: `2px solid ${theme?.palette?.primary?.light}`,
|
|
@@ -2970,6 +3091,14 @@ const useSectionStyles$5 = createUseStyles(theme => {
|
|
|
2970
3091
|
width: '100%',
|
|
2971
3092
|
padding: '0'
|
|
2972
3093
|
},
|
|
3094
|
+
// imageContainer: {
|
|
3095
|
+
|
|
3096
|
+
// '& img': {
|
|
3097
|
+
// height: "520px",
|
|
3098
|
+
// objectFit: "cover"
|
|
3099
|
+
// }
|
|
3100
|
+
|
|
3101
|
+
// },
|
|
2973
3102
|
imageContainerDiv: {
|
|
2974
3103
|
width: '100%'
|
|
2975
3104
|
},
|
|
@@ -2995,15 +3124,19 @@ const useSectionStyles$5 = createUseStyles(theme => {
|
|
|
2995
3124
|
});
|
|
2996
3125
|
|
|
2997
3126
|
function Section$2({
|
|
2998
|
-
nodeData
|
|
3127
|
+
nodeData,
|
|
3128
|
+
sectionIndex
|
|
2999
3129
|
}) {
|
|
3000
|
-
const classes = useSectionStyles$5();
|
|
3001
3130
|
const {
|
|
3002
3131
|
layout: {
|
|
3003
3132
|
containerWidth
|
|
3004
3133
|
},
|
|
3005
|
-
isMobile
|
|
3134
|
+
isMobile,
|
|
3135
|
+
isCustomWebsite
|
|
3006
3136
|
} = React.useContext(PageContext);
|
|
3137
|
+
const classes = useSectionStyles$5({
|
|
3138
|
+
isCustomWebsite
|
|
3139
|
+
});
|
|
3007
3140
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3008
3141
|
className: classes.centerData
|
|
3009
3142
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -3013,7 +3146,8 @@ function Section$2({
|
|
|
3013
3146
|
}, /*#__PURE__*/React__default["default"].createElement(NextImageRenderer, {
|
|
3014
3147
|
src: nodeData.image.metadata.value,
|
|
3015
3148
|
ref: nodeData?.image?.refSetter,
|
|
3016
|
-
className: classes.sideBannerImage
|
|
3149
|
+
className: classes.sideBannerImage,
|
|
3150
|
+
sectionIndex: sectionIndex
|
|
3017
3151
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3018
3152
|
className: classes.imageBorder
|
|
3019
3153
|
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -3038,18 +3172,20 @@ function Section$2({
|
|
|
3038
3172
|
dangerouslySetInnerHTML: {
|
|
3039
3173
|
__html: nodeData.description.metadata.value
|
|
3040
3174
|
}
|
|
3041
|
-
}), /*#__PURE__*/React__default["default"].createElement(Button, {
|
|
3175
|
+
}), nodeData?.cta?.validations?.isEmptyAllowed && nodeData?.cta?.metadata?.value === '' ? null : /*#__PURE__*/React__default["default"].createElement(Button, {
|
|
3042
3176
|
ref: nodeData?.cta?.refSetter,
|
|
3043
3177
|
data: nodeData.cta.metadata,
|
|
3044
3178
|
type: nodeData?.cta?.metadata?.type,
|
|
3045
|
-
size: isMobile ? 'small' : 'medium'
|
|
3179
|
+
size: isMobile ? 'small' : 'medium',
|
|
3180
|
+
name: "button"
|
|
3046
3181
|
})));
|
|
3047
3182
|
}
|
|
3048
3183
|
function BannerCarouselLeft({
|
|
3049
3184
|
sectionData,
|
|
3050
|
-
isCustomWebsite
|
|
3185
|
+
isCustomWebsite,
|
|
3186
|
+
sectionIndex,
|
|
3187
|
+
isMobile
|
|
3051
3188
|
}) {
|
|
3052
|
-
console.log('isCustomWebsite______', isCustomWebsite);
|
|
3053
3189
|
const {
|
|
3054
3190
|
layout: {
|
|
3055
3191
|
containerWidth
|
|
@@ -3068,7 +3204,8 @@ function BannerCarouselLeft({
|
|
|
3068
3204
|
className: classes.sectionContainer
|
|
3069
3205
|
}, /*#__PURE__*/React__default["default"].createElement(Wrapper, null, bannerCarousel.components.map((node, idx) => /*#__PURE__*/React__default["default"].createElement(Section$2, {
|
|
3070
3206
|
nodeData: node,
|
|
3071
|
-
key: idx /* or some other unique property
|
|
3207
|
+
key: idx /* or some other unique property */,
|
|
3208
|
+
sectionIndex: sectionIndex
|
|
3072
3209
|
})))));
|
|
3073
3210
|
}
|
|
3074
3211
|
|
|
@@ -3227,7 +3364,6 @@ async function postApiCall(baseURLs, data) {
|
|
|
3227
3364
|
return res.data;
|
|
3228
3365
|
}
|
|
3229
3366
|
} catch (err) {
|
|
3230
|
-
console.log(err);
|
|
3231
3367
|
return;
|
|
3232
3368
|
}
|
|
3233
3369
|
}
|
|
@@ -3250,7 +3386,6 @@ async function postApiCallForm(baseURLs, data, extraProps) {
|
|
|
3250
3386
|
return res.data;
|
|
3251
3387
|
});
|
|
3252
3388
|
} catch (err) {
|
|
3253
|
-
console.log(err);
|
|
3254
3389
|
return;
|
|
3255
3390
|
}
|
|
3256
3391
|
}
|
|
@@ -3437,7 +3572,7 @@ function SubscribeToNewsletter({
|
|
|
3437
3572
|
onFocus: () => {
|
|
3438
3573
|
setIsValid(true);
|
|
3439
3574
|
}
|
|
3440
|
-
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3575
|
+
})), nodeData.cta.metadata.value !== '' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3441
3576
|
className: classes.btnContainer
|
|
3442
3577
|
}, /*#__PURE__*/React__default["default"].createElement(Button, {
|
|
3443
3578
|
ref: nodeData?.cta?.refSetter,
|
|
@@ -3503,7 +3638,8 @@ const useTestimonialStyles = createUseStyles(theme => {
|
|
|
3503
3638
|
color: theme?.palette?.font?.default,
|
|
3504
3639
|
margin: '10px 0 40px 10px',
|
|
3505
3640
|
overflow: 'hidden',
|
|
3506
|
-
|
|
3641
|
+
wordBreak: 'break-word',
|
|
3642
|
+
// whiteSpace: 'nowrap',
|
|
3507
3643
|
textOverflow: 'ellipsis'
|
|
3508
3644
|
},
|
|
3509
3645
|
sliderContainer: {
|
|
@@ -3594,7 +3730,8 @@ const useTestimonialStyles = createUseStyles(theme => {
|
|
|
3594
3730
|
color: theme?.palette?.font?.default,
|
|
3595
3731
|
margin: '4px 0 12px 0',
|
|
3596
3732
|
overflow: 'hidden',
|
|
3597
|
-
whiteSpace: 'nowrap',
|
|
3733
|
+
// whiteSpace: 'nowrap',
|
|
3734
|
+
wordBreak: 'break-word',
|
|
3598
3735
|
textOverflow: 'ellipsis'
|
|
3599
3736
|
},
|
|
3600
3737
|
userImageDummy: {
|
|
@@ -3641,7 +3778,8 @@ function QuotesComponent() {
|
|
|
3641
3778
|
}
|
|
3642
3779
|
|
|
3643
3780
|
function Section$1({
|
|
3644
|
-
nodeData
|
|
3781
|
+
nodeData,
|
|
3782
|
+
sectionIndex
|
|
3645
3783
|
}) {
|
|
3646
3784
|
const {
|
|
3647
3785
|
isMobile,
|
|
@@ -3697,7 +3835,8 @@ function Section$1({
|
|
|
3697
3835
|
ref: el?.cardUserImage?.refSetter,
|
|
3698
3836
|
className: classes.userImage,
|
|
3699
3837
|
src: el?.cardUserImage?.metadata?.value,
|
|
3700
|
-
alt: "userImg"
|
|
3838
|
+
alt: "userImg",
|
|
3839
|
+
sectionIndex: sectionIndex
|
|
3701
3840
|
})) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3702
3841
|
ref: el?.cardUserImage?.refSetter,
|
|
3703
3842
|
className: classes.userImageDummy
|
|
@@ -3734,13 +3873,15 @@ function Section$1({
|
|
|
3734
3873
|
}, carouselContent))));
|
|
3735
3874
|
}
|
|
3736
3875
|
function Testimonials({
|
|
3737
|
-
sectionData
|
|
3876
|
+
sectionData,
|
|
3877
|
+
sectionIndex
|
|
3738
3878
|
}) {
|
|
3739
3879
|
const classes = useTestimonialStyles();
|
|
3740
3880
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3741
3881
|
className: classes.testimonialContainer
|
|
3742
3882
|
}, /*#__PURE__*/React__default["default"].createElement(Section$1, {
|
|
3743
|
-
nodeData: sectionData.components[0]
|
|
3883
|
+
nodeData: sectionData.components[0],
|
|
3884
|
+
sectionIndex: sectionIndex
|
|
3744
3885
|
}));
|
|
3745
3886
|
}
|
|
3746
3887
|
|
|
@@ -3894,7 +4035,8 @@ function VideoPlayer(props) {
|
|
|
3894
4035
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, !isLoaded && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3895
4036
|
className: classes.imgContainer
|
|
3896
4037
|
}, /*#__PURE__*/React__default["default"].createElement(NextImageRenderer, {
|
|
3897
|
-
src: imageUrl
|
|
4038
|
+
src: imageUrl,
|
|
4039
|
+
sectionIndex: props?.sectionIndex
|
|
3898
4040
|
}), 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, {
|
|
3899
4041
|
name: "Video Play",
|
|
3900
4042
|
color: theme.palette.font.invertedDefault,
|
|
@@ -4059,7 +4201,8 @@ const SingleVideoSlide$2 = props => {
|
|
|
4059
4201
|
className: classes.iframeContainer
|
|
4060
4202
|
}, /*#__PURE__*/React__default["default"].createElement(VideoPlayer, {
|
|
4061
4203
|
imageUrl: data.videoFrame.metadata?.thumbnail,
|
|
4062
|
-
videoUrl: data.videoFrame.metadata?.value
|
|
4204
|
+
videoUrl: data.videoFrame.metadata?.value,
|
|
4205
|
+
sectionIndex: props?.sectionIndex
|
|
4063
4206
|
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4064
4207
|
className: classes.videoDetails
|
|
4065
4208
|
}, /*#__PURE__*/React__default["default"].createElement("h3", {
|
|
@@ -4084,7 +4227,8 @@ const SingleVideoSlide$2 = props => {
|
|
|
4084
4227
|
};
|
|
4085
4228
|
|
|
4086
4229
|
function VideoTestimonial({
|
|
4087
|
-
sectionData
|
|
4230
|
+
sectionData,
|
|
4231
|
+
sectionIndex
|
|
4088
4232
|
}) {
|
|
4089
4233
|
const {
|
|
4090
4234
|
layout: {
|
|
@@ -4118,7 +4262,8 @@ function VideoTestimonial({
|
|
|
4118
4262
|
}
|
|
4119
4263
|
})), /*#__PURE__*/React__default["default"].createElement(Wrapper, null, videoData.videoCarousel.components.map((data, index) => /*#__PURE__*/React__default["default"].createElement(SingleVideoSlide$2, {
|
|
4120
4264
|
data: data,
|
|
4121
|
-
key: index
|
|
4265
|
+
key: index,
|
|
4266
|
+
sectionIndex: sectionIndex
|
|
4122
4267
|
}))))));
|
|
4123
4268
|
}
|
|
4124
4269
|
|
|
@@ -4787,7 +4932,8 @@ const usePhotoGalleryStyles = createUseStyles(theme => {
|
|
|
4787
4932
|
});
|
|
4788
4933
|
|
|
4789
4934
|
function PhotoGallery({
|
|
4790
|
-
sectionData
|
|
4935
|
+
sectionData,
|
|
4936
|
+
sectionIndex
|
|
4791
4937
|
}) {
|
|
4792
4938
|
const {
|
|
4793
4939
|
isMobile,
|
|
@@ -4822,7 +4968,8 @@ function PhotoGallery({
|
|
|
4822
4968
|
}, /*#__PURE__*/React__default["default"].createElement(NextImageRenderer, {
|
|
4823
4969
|
src: el?.cardImage?.metadata?.value,
|
|
4824
4970
|
ref: el?.cardImage?.refSetter,
|
|
4825
|
-
className: classes?.carouselImage
|
|
4971
|
+
className: classes?.carouselImage,
|
|
4972
|
+
sectionIndex: sectionIndex
|
|
4826
4973
|
})));
|
|
4827
4974
|
});
|
|
4828
4975
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -5498,9 +5645,9 @@ function CourseCard({
|
|
|
5498
5645
|
className: classes.courseCardPriceContainer
|
|
5499
5646
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5500
5647
|
className: classes.courseCardPrice
|
|
5501
|
-
}, '₹', card?.finalPrice), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5648
|
+
}, '₹', card?.finalPrice), card?.price !== card?.finalPrice ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5502
5649
|
className: classes.courseCardStrikePrice
|
|
5503
|
-
}, /*#__PURE__*/React__default["default"].createElement("span", null, '₹', card?.price), ' ', discount > 0 && discount + '% OFF')), /*#__PURE__*/React__default["default"].createElement("a", {
|
|
5650
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", null, '₹', card?.price), ' ', discount > 0 && discount + '% OFF') : null), /*#__PURE__*/React__default["default"].createElement("a", {
|
|
5504
5651
|
className: classes.coursesAnchorTag,
|
|
5505
5652
|
href: isEdit ? null : card?.shareableLink
|
|
5506
5653
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -5781,7 +5928,8 @@ const useTeamStyles = createUseStyles(theme => {
|
|
|
5781
5928
|
});
|
|
5782
5929
|
|
|
5783
5930
|
const SingleSlide = ({
|
|
5784
|
-
data
|
|
5931
|
+
data,
|
|
5932
|
+
sectionIndex
|
|
5785
5933
|
}) => {
|
|
5786
5934
|
const classes = useTeamStyles();
|
|
5787
5935
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -5792,7 +5940,8 @@ const SingleSlide = ({
|
|
|
5792
5940
|
ref: data?.image?.refSetter,
|
|
5793
5941
|
className: classes.image,
|
|
5794
5942
|
alt: "Hero Image",
|
|
5795
|
-
src: data.image.metadata.value
|
|
5943
|
+
src: data.image.metadata.value,
|
|
5944
|
+
sectionIndex: sectionIndex
|
|
5796
5945
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5797
5946
|
className: classes.teamDetailsContainer
|
|
5798
5947
|
}, /*#__PURE__*/React__default["default"].createElement("h3", {
|
|
@@ -5811,7 +5960,8 @@ const SingleSlide = ({
|
|
|
5811
5960
|
};
|
|
5812
5961
|
|
|
5813
5962
|
function TeamCard({
|
|
5814
|
-
sectionData
|
|
5963
|
+
sectionData,
|
|
5964
|
+
sectionIndex
|
|
5815
5965
|
}) {
|
|
5816
5966
|
const {
|
|
5817
5967
|
isMobile,
|
|
@@ -5838,7 +5988,8 @@ function TeamCard({
|
|
|
5838
5988
|
const carouselContent = teamData.teamCarousel.components.map((data, idx) => {
|
|
5839
5989
|
return /*#__PURE__*/React__default["default"].createElement(SingleSlide, {
|
|
5840
5990
|
key: idx,
|
|
5841
|
-
data: data
|
|
5991
|
+
data: data,
|
|
5992
|
+
sectionIndex: sectionIndex
|
|
5842
5993
|
});
|
|
5843
5994
|
});
|
|
5844
5995
|
return /*#__PURE__*/React__default["default"].createElement("section", {
|
|
@@ -5930,7 +6081,7 @@ const useSectionStyles$1 = createUseStyles(theme => ({
|
|
|
5930
6081
|
marginTop: '32px'
|
|
5931
6082
|
},
|
|
5932
6083
|
leftContainer: {
|
|
5933
|
-
width: '
|
|
6084
|
+
width: '65%'
|
|
5934
6085
|
},
|
|
5935
6086
|
subtitle: {
|
|
5936
6087
|
margin: '0 0 40px 0',
|
|
@@ -6235,7 +6386,7 @@ function FormEnquiry({
|
|
|
6235
6386
|
messageValid: 1
|
|
6236
6387
|
});
|
|
6237
6388
|
}
|
|
6238
|
-
})), /*#__PURE__*/React__default["default"].createElement(Button, {
|
|
6389
|
+
})), nodeData.cta.metadata.value !== '' && /*#__PURE__*/React__default["default"].createElement(Button, {
|
|
6239
6390
|
ref: nodeData?.cta?.refSetter,
|
|
6240
6391
|
data: btnDisabled && validData?.messageValid && validData?.emailValid && validData?.nameValid && validData?.phoneValid ? {
|
|
6241
6392
|
value: 'Submitted'
|
|
@@ -6442,7 +6593,8 @@ const useSectionStyles = createUseStyles(theme => ({
|
|
|
6442
6593
|
}));
|
|
6443
6594
|
|
|
6444
6595
|
function Contact({
|
|
6445
|
-
sectionData
|
|
6596
|
+
sectionData,
|
|
6597
|
+
sectionIndex
|
|
6446
6598
|
}) {
|
|
6447
6599
|
const {
|
|
6448
6600
|
layout: {
|
|
@@ -6535,7 +6687,8 @@ function Contact({
|
|
|
6535
6687
|
}, /*#__PURE__*/React__default["default"].createElement(NextImageRenderer, {
|
|
6536
6688
|
className: classes?.telephoneImage,
|
|
6537
6689
|
ref: nodeData?.image?.refSetter,
|
|
6538
|
-
src: nodeData?.image?.metadata?.value
|
|
6690
|
+
src: nodeData?.image?.metadata?.value,
|
|
6691
|
+
sectionIndex: sectionIndex
|
|
6539
6692
|
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6540
6693
|
className: classes.rightContainer
|
|
6541
6694
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -6626,7 +6779,7 @@ function Contact({
|
|
|
6626
6779
|
messageValid: 1
|
|
6627
6780
|
});
|
|
6628
6781
|
}
|
|
6629
|
-
})), /*#__PURE__*/React__default["default"].createElement(Button, {
|
|
6782
|
+
})), nodeData.cta.metadata.value !== '' && /*#__PURE__*/React__default["default"].createElement(Button, {
|
|
6630
6783
|
ref: nodeData?.cta?.refSetter,
|
|
6631
6784
|
data: btnDisabled && validData?.messageValid && validData?.emailValid && validData?.nameValid && validData?.phoneValid ? {
|
|
6632
6785
|
value: 'Submitted'
|
|
@@ -6636,7 +6789,8 @@ function Contact({
|
|
|
6636
6789
|
onClick: () => handleSubmit(),
|
|
6637
6790
|
type: nodeData?.cta?.metadata?.type,
|
|
6638
6791
|
size: isMobile ? 'small' : 'medium',
|
|
6639
|
-
disabled: btnDisabled
|
|
6792
|
+
disabled: btnDisabled,
|
|
6793
|
+
name: "button"
|
|
6640
6794
|
}))))));
|
|
6641
6795
|
}
|
|
6642
6796
|
|
|
@@ -6766,10 +6920,11 @@ const useWebinarPromotionPage = createUseStyles(theme => {
|
|
|
6766
6920
|
},
|
|
6767
6921
|
courseViewContainer: {
|
|
6768
6922
|
width: '645px',
|
|
6923
|
+
height: 'fit-content',
|
|
6769
6924
|
backgroundColor: '#f4f9ff',
|
|
6770
6925
|
display: 'flex',
|
|
6771
6926
|
flexDirection: 'column',
|
|
6772
|
-
justifyContent: '
|
|
6927
|
+
justifyContent: 'start',
|
|
6773
6928
|
paddingTop: '20px',
|
|
6774
6929
|
borderRadius: '10px'
|
|
6775
6930
|
},
|
|
@@ -6817,10 +6972,10 @@ const useWebinarPromotionPage = createUseStyles(theme => {
|
|
|
6817
6972
|
courseDetailContent: {
|
|
6818
6973
|
marginTop: '16px',
|
|
6819
6974
|
fontSize: '16px',
|
|
6820
|
-
lineHeight: '24px',
|
|
6821
6975
|
wordBreak: 'break-word',
|
|
6822
6976
|
color: theme.palette.font.primary,
|
|
6823
|
-
margin: '10px 0 20px'
|
|
6977
|
+
margin: '10px 0 20px',
|
|
6978
|
+
whiteSpace: 'pre-wrap'
|
|
6824
6979
|
},
|
|
6825
6980
|
courseDetailViewFullDetails: {
|
|
6826
6981
|
cursor: 'pointer',
|
|
@@ -6937,7 +7092,6 @@ const SingleVideoSlide$1 = props => {
|
|
|
6937
7092
|
price,
|
|
6938
7093
|
discount
|
|
6939
7094
|
}) => {
|
|
6940
|
-
console.log('discountxx', props.data.price, props.data.discount);
|
|
6941
7095
|
return (discount / price * 100).toFixed(2);
|
|
6942
7096
|
};
|
|
6943
7097
|
const classes = useWebinarPromotionPage();
|
|
@@ -7006,7 +7160,8 @@ const SingleVideoSlide$1 = props => {
|
|
|
7006
7160
|
}, /*#__PURE__*/React__default["default"].createElement(VideoPlayer, {
|
|
7007
7161
|
onlyThumbnail: true,
|
|
7008
7162
|
imageUrl: data.thumbnail,
|
|
7009
|
-
videoUrl: data.thumbnail
|
|
7163
|
+
videoUrl: data.thumbnail,
|
|
7164
|
+
sectionIndex: props?.sectionIndex
|
|
7010
7165
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7011
7166
|
style: {
|
|
7012
7167
|
display: data.isPaid ? 'flex' : 'block'
|
|
@@ -7049,7 +7204,8 @@ const SingleVideoSlide$1 = props => {
|
|
|
7049
7204
|
|
|
7050
7205
|
function CoursePromotionPage$1({
|
|
7051
7206
|
sectionData,
|
|
7052
|
-
extraProps = {}
|
|
7207
|
+
extraProps = {},
|
|
7208
|
+
sectionIndex
|
|
7053
7209
|
}) {
|
|
7054
7210
|
const {
|
|
7055
7211
|
layout: {
|
|
@@ -7068,7 +7224,8 @@ function CoursePromotionPage$1({
|
|
|
7068
7224
|
}, /*#__PURE__*/React__default["default"].createElement(SingleVideoSlide$1, {
|
|
7069
7225
|
data: sectionData.components[0].metadata,
|
|
7070
7226
|
webinarCtaClick: extraProps.webinarCtaClick,
|
|
7071
|
-
conversions: extraProps.conversions
|
|
7227
|
+
conversions: extraProps.conversions,
|
|
7228
|
+
sectionIndex: sectionIndex
|
|
7072
7229
|
}))));
|
|
7073
7230
|
}
|
|
7074
7231
|
|
|
@@ -7371,15 +7528,6 @@ const SingleVideoSlide = props => {
|
|
|
7371
7528
|
isMobile,
|
|
7372
7529
|
isEdit
|
|
7373
7530
|
} = React.useContext(PageContext);
|
|
7374
|
-
console.log(isEdit, 'isEdit');
|
|
7375
|
-
React.useEffect(() => {
|
|
7376
|
-
// remaining days epoch
|
|
7377
|
-
// current date epoch
|
|
7378
|
-
// subtract remaining days from current day epoch
|
|
7379
|
-
// moment the result - and see if there are days
|
|
7380
|
-
// days is present show days
|
|
7381
|
-
// else start reverse timer
|
|
7382
|
-
}, []);
|
|
7383
7531
|
const renderer = ({
|
|
7384
7532
|
days,
|
|
7385
7533
|
hours,
|
|
@@ -7522,7 +7670,8 @@ const SingleVideoSlide = props => {
|
|
|
7522
7670
|
}, /*#__PURE__*/React__default["default"].createElement(VideoPlayer, {
|
|
7523
7671
|
onlyThumbnail: true,
|
|
7524
7672
|
imageUrl: data.thumbnail,
|
|
7525
|
-
videoUrl: data.thumbnail
|
|
7673
|
+
videoUrl: data.thumbnail,
|
|
7674
|
+
sectionIndex: props?.sectionIndex
|
|
7526
7675
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7527
7676
|
className: classes.bottomContainer
|
|
7528
7677
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -7553,6 +7702,7 @@ const SingleVideoSlide = props => {
|
|
|
7553
7702
|
type: 'primary',
|
|
7554
7703
|
size: 'medium',
|
|
7555
7704
|
target: null,
|
|
7705
|
+
name: "button",
|
|
7556
7706
|
rel: null
|
|
7557
7707
|
// styling={isMobile ? { margin: '0 40px' } : {}}
|
|
7558
7708
|
})))), showCourseInstallmentData && InstalmentData && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -7576,7 +7726,8 @@ const SingleVideoSlide = props => {
|
|
|
7576
7726
|
|
|
7577
7727
|
function CoursePromotionPage({
|
|
7578
7728
|
sectionData,
|
|
7579
|
-
extraProps = {}
|
|
7729
|
+
extraProps = {},
|
|
7730
|
+
sectionIndex
|
|
7580
7731
|
}) {
|
|
7581
7732
|
const {
|
|
7582
7733
|
layout: {
|
|
@@ -7586,7 +7737,6 @@ function CoursePromotionPage({
|
|
|
7586
7737
|
const classes = useCoursePromotionPage({
|
|
7587
7738
|
containerWidth
|
|
7588
7739
|
});
|
|
7589
|
-
console.log(sectionData, 'sectionData');
|
|
7590
7740
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7591
7741
|
className: classes.courseSuperContainer
|
|
7592
7742
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -7597,7 +7747,8 @@ function CoursePromotionPage({
|
|
|
7597
7747
|
data: sectionData.components[0].metadata,
|
|
7598
7748
|
courseBuyNow: extraProps.courseBuyNow,
|
|
7599
7749
|
showCourseInstallment: extraProps.showCourseInstallment,
|
|
7600
|
-
conversions: extraProps.conversions
|
|
7750
|
+
conversions: extraProps.conversions,
|
|
7751
|
+
sectionIndex: sectionIndex
|
|
7601
7752
|
}))));
|
|
7602
7753
|
}
|
|
7603
7754
|
|
|
@@ -8022,7 +8173,8 @@ const useTilesStyles = createUseStyles(theme => {
|
|
|
8022
8173
|
});
|
|
8023
8174
|
|
|
8024
8175
|
function Tiles({
|
|
8025
|
-
sectionData
|
|
8176
|
+
sectionData,
|
|
8177
|
+
sectionIndex
|
|
8026
8178
|
}) {
|
|
8027
8179
|
const classes = useTilesStyles({});
|
|
8028
8180
|
const {
|
|
@@ -8034,7 +8186,6 @@ function Tiles({
|
|
|
8034
8186
|
isEdit
|
|
8035
8187
|
} = React.useContext(PageContext);
|
|
8036
8188
|
const nodeData = sectionData.components;
|
|
8037
|
-
console.log(nodeData);
|
|
8038
8189
|
const tilesList = nodeData[0]?.tilesList.components;
|
|
8039
8190
|
const handleClick = value => {
|
|
8040
8191
|
if (!isEdit && value) {
|
|
@@ -8051,9 +8202,10 @@ function Tiles({
|
|
|
8051
8202
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8052
8203
|
className: classes.tileDiv,
|
|
8053
8204
|
onClick: () => handleClick(tile.cta?.metadata?.value)
|
|
8054
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
8205
|
+
}, /*#__PURE__*/React__default["default"].createElement(NextImageRenderer, {
|
|
8055
8206
|
className: classes.tileImg,
|
|
8056
|
-
src: tile?.tileImage?.metadata?.value
|
|
8207
|
+
src: tile?.tileImage?.metadata?.value,
|
|
8208
|
+
sectionIndex: sectionIndex
|
|
8057
8209
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8058
8210
|
className: classes.title,
|
|
8059
8211
|
ref: tile.tileName?.refSetter,
|
|
@@ -8509,7 +8661,6 @@ function EmailDripMarket({
|
|
|
8509
8661
|
sectionData,
|
|
8510
8662
|
extraProps = {}
|
|
8511
8663
|
}) {
|
|
8512
|
-
console.log('extrapropstemplate', extraProps);
|
|
8513
8664
|
const isInitialMount = React.useRef(true);
|
|
8514
8665
|
const convertToHtml = sectionData => {
|
|
8515
8666
|
const html = ReactDOMServer__default["default"].renderToStaticMarkup( /*#__PURE__*/React__default["default"].createElement(Section, {
|
|
@@ -8580,27 +8731,28 @@ const getCompToRender = type => TYPE_TO_COMPONENT_MAP[type] || (() => null);
|
|
|
8580
8731
|
const MemoisedSection = /*#__PURE__*/React.memo(({
|
|
8581
8732
|
sectionData,
|
|
8582
8733
|
extraProps,
|
|
8583
|
-
isCustomWebsite
|
|
8734
|
+
isCustomWebsite,
|
|
8735
|
+
sectionIndex
|
|
8584
8736
|
}) => {
|
|
8585
|
-
// console.log("isCustomWebsite______", isCustomWebsite)
|
|
8586
|
-
console.log('templatesectiondata', sectionData);
|
|
8587
8737
|
const SectionComp = getCompToRender(sectionData.type);
|
|
8588
8738
|
return /*#__PURE__*/React__default["default"].createElement(SectionComp, {
|
|
8589
8739
|
sectionData: sectionData,
|
|
8590
8740
|
extraProps: extraProps,
|
|
8591
|
-
isCustomWebsite: isCustomWebsite
|
|
8741
|
+
isCustomWebsite: isCustomWebsite,
|
|
8742
|
+
sectionIndex: sectionIndex
|
|
8592
8743
|
});
|
|
8593
8744
|
});
|
|
8594
8745
|
function SectionRenderer({
|
|
8595
8746
|
sectionData,
|
|
8596
8747
|
extraProps,
|
|
8597
|
-
isCustomWebsite
|
|
8748
|
+
isCustomWebsite,
|
|
8749
|
+
sectionIndex
|
|
8598
8750
|
}) {
|
|
8599
|
-
// console.log("isCustomWebsite______", isCustomWebsite)
|
|
8600
8751
|
return /*#__PURE__*/React__default["default"].createElement(MemoisedSection, {
|
|
8601
8752
|
sectionData: sectionData,
|
|
8602
8753
|
extraProps: extraProps,
|
|
8603
|
-
isCustomWebsite: isCustomWebsite
|
|
8754
|
+
isCustomWebsite: isCustomWebsite,
|
|
8755
|
+
sectionIndex: sectionIndex
|
|
8604
8756
|
});
|
|
8605
8757
|
}
|
|
8606
8758
|
|
|
@@ -8678,7 +8830,8 @@ function PageRenderer({
|
|
|
8678
8830
|
}), /*#__PURE__*/React__default["default"].createElement(SectionRenderer, {
|
|
8679
8831
|
sectionData: sectionData,
|
|
8680
8832
|
extraProps: extraProps,
|
|
8681
|
-
isCustomWebsite: isCustomWebsite
|
|
8833
|
+
isCustomWebsite: isCustomWebsite,
|
|
8834
|
+
sectionIndex: sectionIndex
|
|
8682
8835
|
}))) : sectionPlaceholder, !!footer && /*#__PURE__*/React__default["default"].createElement(Wrapper, !!SectionWrapper && {
|
|
8683
8836
|
sectionData: footer,
|
|
8684
8837
|
isFooter: true
|