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.es.js
CHANGED
|
@@ -142,14 +142,19 @@ const useSectionStyles$a = createUseStyles(theme => ({
|
|
|
142
142
|
position: 'relative',
|
|
143
143
|
maxHeight: '55px',
|
|
144
144
|
alignItems: 'center',
|
|
145
|
-
width: '
|
|
145
|
+
width: '30%'
|
|
146
146
|
},
|
|
147
147
|
imageDivImageMobile: {},
|
|
148
|
+
imageDivImageNext: {
|
|
149
|
+
objectFit: ({
|
|
150
|
+
isCustomWebsite
|
|
151
|
+
} = {}) => isCustomWebsite ? 'contain' : ''
|
|
152
|
+
},
|
|
148
153
|
imageAnchorMobile: {
|
|
149
154
|
pointerEvents: 'auto',
|
|
150
155
|
cursor: 'default',
|
|
151
156
|
width: '100%',
|
|
152
|
-
maxWidth: '
|
|
157
|
+
maxWidth: '85px',
|
|
153
158
|
cursor: 'default',
|
|
154
159
|
height: '46px',
|
|
155
160
|
position: 'relative'
|
|
@@ -165,7 +170,7 @@ const useSectionStyles$a = createUseStyles(theme => ({
|
|
|
165
170
|
mobileContent: {
|
|
166
171
|
display: 'flex',
|
|
167
172
|
alignItems: 'center',
|
|
168
|
-
width:
|
|
173
|
+
width: '100%',
|
|
169
174
|
'& img': {
|
|
170
175
|
marginRight: '8px',
|
|
171
176
|
maxWidth: '80px',
|
|
@@ -209,7 +214,7 @@ const useSectionStyles$a = createUseStyles(theme => ({
|
|
|
209
214
|
display: 'flex',
|
|
210
215
|
alignItems: 'center',
|
|
211
216
|
justifyContent: 'center',
|
|
212
|
-
width:
|
|
217
|
+
width: '10%'
|
|
213
218
|
},
|
|
214
219
|
'@media screen and (max-width: 767px)': {
|
|
215
220
|
optionsContainer: {
|
|
@@ -221,6 +226,9 @@ const useSectionStyles$a = createUseStyles(theme => ({
|
|
|
221
226
|
mobileHeader: {
|
|
222
227
|
height: '80px'
|
|
223
228
|
},
|
|
229
|
+
sideDrawerImg: {
|
|
230
|
+
width: '15%'
|
|
231
|
+
},
|
|
224
232
|
menuItem: {
|
|
225
233
|
padding: '0'
|
|
226
234
|
},
|
|
@@ -1100,34 +1108,73 @@ function OptionList({
|
|
|
1100
1108
|
}) : null));
|
|
1101
1109
|
}
|
|
1102
1110
|
|
|
1111
|
+
const nextImageRendererStyles = createUseStyles(() => ({
|
|
1112
|
+
'@media (max-width: 640px)': {
|
|
1113
|
+
imageContainer: {
|
|
1114
|
+
maxWidth: '100%'
|
|
1115
|
+
}
|
|
1116
|
+
},
|
|
1117
|
+
'@media (min-width: 641px) and (max-width: 1280px)': {
|
|
1118
|
+
imageContainer: {
|
|
1119
|
+
maxWidth: '75%'
|
|
1120
|
+
}
|
|
1121
|
+
},
|
|
1122
|
+
'@media (min-width: 1281px)': {
|
|
1123
|
+
imageContainer: {
|
|
1124
|
+
maxWidth: '50%'
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
}));
|
|
1128
|
+
|
|
1103
1129
|
const NextImageRenderer = ({
|
|
1104
1130
|
src,
|
|
1131
|
+
sectionIndex,
|
|
1105
1132
|
...props
|
|
1106
1133
|
}) => {
|
|
1107
1134
|
const {
|
|
1108
|
-
isCustomWebsite
|
|
1135
|
+
isCustomWebsite,
|
|
1136
|
+
pageData,
|
|
1137
|
+
isMobile
|
|
1109
1138
|
} = useContext(PageContext);
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1139
|
+
try {
|
|
1140
|
+
let {
|
|
1141
|
+
refSetter,
|
|
1142
|
+
className
|
|
1143
|
+
} = props;
|
|
1144
|
+
if (isCustomWebsite && typeof Image !== 'undefined') {
|
|
1145
|
+
const classes = nextImageRendererStyles();
|
|
1146
|
+
const imageLoader = ({
|
|
1147
|
+
src,
|
|
1148
|
+
quality,
|
|
1149
|
+
width
|
|
1150
|
+
}) => {
|
|
1151
|
+
const breakpoints = {
|
|
1152
|
+
mobile: 640,
|
|
1153
|
+
desktop: 1200
|
|
1154
|
+
};
|
|
1155
|
+
const dynamicWidth = isMobile ? breakpoints.mobile : breakpoints?.desktop;
|
|
1156
|
+
return `${process.env.NEXT_PUBLIC_ENV_ASSET_PREFIX}/_next/image?url=${src}&q=${quality || 75}&w=${dynamicWidth}`;
|
|
1157
|
+
};
|
|
1158
|
+
const NextImage = require('next/image').default;
|
|
1159
|
+
return /*#__PURE__*/React.createElement(NextImage, _extends({
|
|
1160
|
+
priority: sectionIndex == '0' ? true : false,
|
|
1161
|
+
loader: imageLoader,
|
|
1162
|
+
src: src,
|
|
1163
|
+
layout: 'fill',
|
|
1164
|
+
ref: refSetter,
|
|
1165
|
+
className: `${classes?.imageContainer} ${className}`
|
|
1166
|
+
}, props, {
|
|
1167
|
+
alt: "image"
|
|
1168
|
+
}));
|
|
1169
|
+
} else {
|
|
1170
|
+
return /*#__PURE__*/React.createElement("img", {
|
|
1171
|
+
ref: refSetter,
|
|
1172
|
+
className: className,
|
|
1173
|
+
src: src
|
|
1174
|
+
});
|
|
1175
|
+
}
|
|
1176
|
+
} catch (err) {
|
|
1177
|
+
console.log('next image failed', err);
|
|
1131
1178
|
return /*#__PURE__*/React.createElement("img", {
|
|
1132
1179
|
ref: refSetter,
|
|
1133
1180
|
className: className,
|
|
@@ -1145,12 +1192,16 @@ function DesktopHeader({
|
|
|
1145
1192
|
const {
|
|
1146
1193
|
isFixed = true
|
|
1147
1194
|
} = header;
|
|
1195
|
+
const {
|
|
1196
|
+
isCustomWebsite
|
|
1197
|
+
} = useContext(PageContext);
|
|
1148
1198
|
const logoUrl = useLinkBuilder({
|
|
1149
1199
|
isLink: true,
|
|
1150
1200
|
link: '/'
|
|
1151
1201
|
});
|
|
1152
1202
|
const classes = useSectionStyles$a({
|
|
1153
|
-
isFixed
|
|
1203
|
+
isFixed,
|
|
1204
|
+
isCustomWebsite
|
|
1154
1205
|
});
|
|
1155
1206
|
const optionDataFn = () => {
|
|
1156
1207
|
let optionsArr = navData;
|
|
@@ -1189,7 +1240,8 @@ function DesktopHeader({
|
|
|
1189
1240
|
className: classes?.imageDivImage
|
|
1190
1241
|
}, /*#__PURE__*/React.createElement(NextImageRenderer, {
|
|
1191
1242
|
src: header?.websiteLogo,
|
|
1192
|
-
className: classes.imageDivImageNext
|
|
1243
|
+
className: classes.imageDivImageNext,
|
|
1244
|
+
order: 1
|
|
1193
1245
|
}))) : null, isTutorWebsite && header?.appName ? /*#__PURE__*/React.createElement("a", {
|
|
1194
1246
|
href: logoUrl
|
|
1195
1247
|
}, /*#__PURE__*/React.createElement("p", {
|
|
@@ -1215,6 +1267,9 @@ function MobileHeader({
|
|
|
1215
1267
|
isTutorWebsite,
|
|
1216
1268
|
isLandingPage = false
|
|
1217
1269
|
}) {
|
|
1270
|
+
const {
|
|
1271
|
+
isCustomWebsite
|
|
1272
|
+
} = useContext(PageContext);
|
|
1218
1273
|
const {
|
|
1219
1274
|
isFixed = true
|
|
1220
1275
|
} = header;
|
|
@@ -1224,7 +1279,8 @@ function MobileHeader({
|
|
|
1224
1279
|
});
|
|
1225
1280
|
const theme = useTheme();
|
|
1226
1281
|
const classes = useSectionStyles$a({
|
|
1227
|
-
isFixed
|
|
1282
|
+
isFixed,
|
|
1283
|
+
isCustomWebsite
|
|
1228
1284
|
});
|
|
1229
1285
|
const [sideMenu, openSideMenu] = useState(false);
|
|
1230
1286
|
const navEl = useRef(null);
|
|
@@ -1359,7 +1415,8 @@ function MobileHeader({
|
|
|
1359
1415
|
className: classes?.imageDivImageMobile
|
|
1360
1416
|
}, /*#__PURE__*/React.createElement(NextImageRenderer, {
|
|
1361
1417
|
src: header?.websiteLogo,
|
|
1362
|
-
className: classes.imageDivImageNext
|
|
1418
|
+
className: classes.imageDivImageNext,
|
|
1419
|
+
order: 1
|
|
1363
1420
|
}))) : null, isTutorWebsite && header?.appName ? /*#__PURE__*/React.createElement("p", {
|
|
1364
1421
|
className: classes.mobileAppNameClass
|
|
1365
1422
|
}, " ", header?.appName) : null), downloadLink), sideMenu ? /*#__PURE__*/React.createElement("div", {
|
|
@@ -1419,6 +1476,9 @@ const useSectionStyles$9 = createUseStyles(theme => ({
|
|
|
1419
1476
|
boxSizing: 'border-box'
|
|
1420
1477
|
}
|
|
1421
1478
|
},
|
|
1479
|
+
sectionNoBranding: {
|
|
1480
|
+
paddingBottom: '0px'
|
|
1481
|
+
},
|
|
1422
1482
|
upperContainer: {
|
|
1423
1483
|
display: 'flex',
|
|
1424
1484
|
justifyContent: 'space-between',
|
|
@@ -1427,6 +1487,9 @@ const useSectionStyles$9 = createUseStyles(theme => ({
|
|
|
1427
1487
|
borderBottom: '1px solid #E1EAF6',
|
|
1428
1488
|
alignItems: 'flex-start'
|
|
1429
1489
|
},
|
|
1490
|
+
upperContainerNoBranding: {
|
|
1491
|
+
borderBottom: '0px'
|
|
1492
|
+
},
|
|
1430
1493
|
upperContainerItem1: {
|
|
1431
1494
|
width: '33%',
|
|
1432
1495
|
display: 'flex',
|
|
@@ -1502,9 +1565,10 @@ const useSectionStyles$9 = createUseStyles(theme => ({
|
|
|
1502
1565
|
color: theme.palette.font.primary
|
|
1503
1566
|
},
|
|
1504
1567
|
poweredDiv: {
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1568
|
+
width: '15%',
|
|
1569
|
+
height: 'auto',
|
|
1570
|
+
position: 'relative',
|
|
1571
|
+
paddingBottom: ' 6%',
|
|
1508
1572
|
'& p': {
|
|
1509
1573
|
margin: '0',
|
|
1510
1574
|
paddingRight: '8px',
|
|
@@ -1517,6 +1581,21 @@ const useSectionStyles$9 = createUseStyles(theme => ({
|
|
|
1517
1581
|
width: '100px'
|
|
1518
1582
|
}
|
|
1519
1583
|
},
|
|
1584
|
+
poweredByContainer: {
|
|
1585
|
+
display: 'flex',
|
|
1586
|
+
width: '60%',
|
|
1587
|
+
justifyContent: 'flex-end',
|
|
1588
|
+
alignItems: 'center',
|
|
1589
|
+
gap: '5%'
|
|
1590
|
+
},
|
|
1591
|
+
poweredDivImg: {
|
|
1592
|
+
width: '100px !important'
|
|
1593
|
+
},
|
|
1594
|
+
footerLogoImage: {
|
|
1595
|
+
objectFit: ({
|
|
1596
|
+
isCustomWebsite
|
|
1597
|
+
}) => isCustomWebsite ? 'contain' : ''
|
|
1598
|
+
},
|
|
1520
1599
|
'@media screen and (max-width: 767px)': {
|
|
1521
1600
|
section: {
|
|
1522
1601
|
padding: '45px 30px',
|
|
@@ -1562,13 +1641,22 @@ const useSectionStyles$9 = createUseStyles(theme => ({
|
|
|
1562
1641
|
padding: '0'
|
|
1563
1642
|
},
|
|
1564
1643
|
poweredDiv: {
|
|
1565
|
-
marginTop: '15px'
|
|
1644
|
+
// marginTop: '15px'
|
|
1645
|
+
width: '28%',
|
|
1646
|
+
paddingBottom: '9%'
|
|
1566
1647
|
},
|
|
1567
1648
|
socialMediaCta: {
|
|
1568
1649
|
margin: '0 8px 16px 8px'
|
|
1569
1650
|
},
|
|
1570
1651
|
bottomLeftText: {
|
|
1571
1652
|
padding: '48px 0 10px 0'
|
|
1653
|
+
},
|
|
1654
|
+
poweredByContainer: {
|
|
1655
|
+
gap: '2%',
|
|
1656
|
+
width: '100%',
|
|
1657
|
+
display: 'flex',
|
|
1658
|
+
alignItems: 'center',
|
|
1659
|
+
justifyContent: 'center'
|
|
1572
1660
|
}
|
|
1573
1661
|
}
|
|
1574
1662
|
}));
|
|
@@ -1577,19 +1665,24 @@ function Footer({
|
|
|
1577
1665
|
data
|
|
1578
1666
|
}) {
|
|
1579
1667
|
const theme = useTheme();
|
|
1580
|
-
const
|
|
1581
|
-
|
|
1668
|
+
const {
|
|
1669
|
+
isCustomWebsite
|
|
1670
|
+
} = useContext(PageContext);
|
|
1671
|
+
const classes = useSectionStyles$9({
|
|
1672
|
+
isCustomWebsite
|
|
1673
|
+
});
|
|
1582
1674
|
return /*#__PURE__*/React.createElement("footer", {
|
|
1583
|
-
className: classes.section
|
|
1675
|
+
className: data.metadata.isCpBranding ? `${classes.section}` : `${classes.section} ${classes.sectionNoBranding}`
|
|
1584
1676
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1585
|
-
className: classes.upperContainer
|
|
1677
|
+
className: data.metadata.isCpBranding ? `${classes.upperContainer}` : `${classes.upperContainer} ${classes.upperContainerNoBranding}`
|
|
1586
1678
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1587
1679
|
className: classes.upperContainerItem1
|
|
1588
1680
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1589
1681
|
className: classes.upperContainerItem1Img
|
|
1590
1682
|
}, /*#__PURE__*/React.createElement(NextImageRenderer, {
|
|
1591
1683
|
src: data?.logo?.metadata?.url,
|
|
1592
|
-
ref: data?.logo?.refSetter
|
|
1684
|
+
ref: data?.logo?.refSetter,
|
|
1685
|
+
className: classes.footerLogoImage
|
|
1593
1686
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
1594
1687
|
className: classes.upperContainerItem2
|
|
1595
1688
|
}, data?.address?.metadata.value && data?.address?.metadata.value !== '<br>' ? /*#__PURE__*/React.createElement("p", {
|
|
@@ -1641,7 +1734,8 @@ function Footer({
|
|
|
1641
1734
|
className: classes.socialMediaCta,
|
|
1642
1735
|
onClick: () => {
|
|
1643
1736
|
window.open(data?.facebookLink?.metadata?.value, '_blank');
|
|
1644
|
-
}
|
|
1737
|
+
},
|
|
1738
|
+
"aria-label": "Name"
|
|
1645
1739
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
1646
1740
|
name: 'Facebook Solid',
|
|
1647
1741
|
color: theme.palette.background.default,
|
|
@@ -1652,7 +1746,8 @@ function Footer({
|
|
|
1652
1746
|
className: classes.socialMediaCta,
|
|
1653
1747
|
onClick: () => {
|
|
1654
1748
|
window.open(data?.twitterLink?.metadata?.value, '_blank');
|
|
1655
|
-
}
|
|
1749
|
+
},
|
|
1750
|
+
"aria-label": "Name"
|
|
1656
1751
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
1657
1752
|
name: 'Twitter Solid',
|
|
1658
1753
|
color: theme.palette.background.default,
|
|
@@ -1663,7 +1758,8 @@ function Footer({
|
|
|
1663
1758
|
className: classes.socialMediaCta,
|
|
1664
1759
|
onClick: () => {
|
|
1665
1760
|
window.open(data?.instagramLink?.metadata?.value, '_blank');
|
|
1666
|
-
}
|
|
1761
|
+
},
|
|
1762
|
+
"aria-label": "Name"
|
|
1667
1763
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
1668
1764
|
name: 'Instagram',
|
|
1669
1765
|
color: theme.palette.background.default,
|
|
@@ -1674,7 +1770,8 @@ function Footer({
|
|
|
1674
1770
|
className: classes.socialMediaCta,
|
|
1675
1771
|
onClick: () => {
|
|
1676
1772
|
window.open(data?.telegramLink?.metadata?.value, '_blank');
|
|
1677
|
-
}
|
|
1773
|
+
},
|
|
1774
|
+
"aria-label": "Name"
|
|
1678
1775
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
1679
1776
|
name: 'Telegram',
|
|
1680
1777
|
color: theme.palette.background.default,
|
|
@@ -1685,7 +1782,8 @@ function Footer({
|
|
|
1685
1782
|
className: classes.socialMediaCta,
|
|
1686
1783
|
onClick: () => {
|
|
1687
1784
|
window.open(data?.youtubeLink?.metadata?.value, '_blank');
|
|
1688
|
-
}
|
|
1785
|
+
},
|
|
1786
|
+
"aria-label": "Name"
|
|
1689
1787
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
1690
1788
|
name: 'YouTube',
|
|
1691
1789
|
color: theme.palette.background.default,
|
|
@@ -1695,15 +1793,18 @@ function Footer({
|
|
|
1695
1793
|
className: classes.lowerContainer
|
|
1696
1794
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1697
1795
|
className: classes.bottomLeftText
|
|
1698
|
-
}, "2022 All Rights Reserved"), /*#__PURE__*/React.createElement("
|
|
1796
|
+
}, "2022 All Rights Reserved"), /*#__PURE__*/React.createElement("div", {
|
|
1797
|
+
className: classes.poweredByContainer
|
|
1798
|
+
}, /*#__PURE__*/React.createElement("p", null, "Powered by"), /*#__PURE__*/React.createElement("a", {
|
|
1699
1799
|
title: "Powered by Classplus",
|
|
1700
1800
|
target: "_blank",
|
|
1701
1801
|
href: "https://classplusapp.com/",
|
|
1702
1802
|
className: classes.poweredDiv
|
|
1703
|
-
}, /*#__PURE__*/React.createElement(
|
|
1803
|
+
}, /*#__PURE__*/React.createElement(NextImageRenderer, {
|
|
1804
|
+
src: 'https://storage.googleapis.com/coursewebview/logo.png',
|
|
1704
1805
|
alt: "classplus",
|
|
1705
|
-
|
|
1706
|
-
}))) : null);
|
|
1806
|
+
className: classes.poweredDivImg
|
|
1807
|
+
})))) : null);
|
|
1707
1808
|
}
|
|
1708
1809
|
|
|
1709
1810
|
const borderRadius = {
|
|
@@ -1884,24 +1985,27 @@ const TYPE_TO_COMPONENT_MAP$1 = {
|
|
|
1884
1985
|
const getCompToRender$1 = type => TYPE_TO_COMPONENT_MAP$1[type] || (() => null);
|
|
1885
1986
|
const MemoisedSection$1 = /*#__PURE__*/memo(({
|
|
1886
1987
|
sectionData,
|
|
1887
|
-
extraProps
|
|
1988
|
+
extraProps,
|
|
1989
|
+
sectionIndex
|
|
1888
1990
|
}) => {
|
|
1889
|
-
console.log('templatesectiondata', sectionData);
|
|
1890
1991
|
const SectionComp = getCompToRender$1(sectionData.type);
|
|
1891
1992
|
return /*#__PURE__*/React.createElement(SectionComp, {
|
|
1892
1993
|
sectionData: sectionData,
|
|
1893
|
-
extraProps: extraProps
|
|
1994
|
+
extraProps: extraProps,
|
|
1995
|
+
sectionIndex: sectionIndex
|
|
1894
1996
|
});
|
|
1895
1997
|
});
|
|
1896
1998
|
function SectionRenderer$1({
|
|
1897
1999
|
sectionData,
|
|
2000
|
+
sectionIndex,
|
|
1898
2001
|
extraProps
|
|
1899
2002
|
}) {
|
|
1900
2003
|
return /*#__PURE__*/React.createElement(Suspense, {
|
|
1901
2004
|
fallback: null /*GIF maybe*/
|
|
1902
2005
|
}, /*#__PURE__*/React.createElement(MemoisedSection$1, {
|
|
1903
2006
|
sectionData: sectionData,
|
|
1904
|
-
extraProps: extraProps
|
|
2007
|
+
extraProps: extraProps,
|
|
2008
|
+
sectionIndex: sectionIndex
|
|
1905
2009
|
}));
|
|
1906
2010
|
}
|
|
1907
2011
|
|
|
@@ -1971,7 +2075,6 @@ function PageRenderer$1({
|
|
|
1971
2075
|
_id
|
|
1972
2076
|
}), [isMobile, isLandingPages, layout, baseURLs, hashToken, isPreview, isEdit, templateId, navList, isMasterTemplate, basePath, validations, isTutorWebsite, extraProps, hideLogin, _id]);
|
|
1973
2077
|
const Wrapper = SectionWrapper || Fragment;
|
|
1974
|
-
// console.log("CONTEXT______", context)
|
|
1975
2078
|
return /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
1976
2079
|
theme: theme
|
|
1977
2080
|
}, /*#__PURE__*/React.createElement(PageContext.Provider, {
|
|
@@ -1992,7 +2095,8 @@ function PageRenderer$1({
|
|
|
1992
2095
|
key: sectionData.type + (sectionData._id || sectionIndex)
|
|
1993
2096
|
}), /*#__PURE__*/React.createElement(SectionRenderer$1, {
|
|
1994
2097
|
sectionData: sectionData,
|
|
1995
|
-
extraProps: extraProps
|
|
2098
|
+
extraProps: extraProps,
|
|
2099
|
+
sectionIndex: sectionIndex
|
|
1996
2100
|
}))) : sectionPlaceholder, !!footer && /*#__PURE__*/React.createElement(Wrapper, !!SectionWrapper && {
|
|
1997
2101
|
sectionData: footer,
|
|
1998
2102
|
isFooter: true
|
|
@@ -2037,6 +2141,7 @@ const useSectionStyles$8 = createUseStyles(theme => ({
|
|
|
2037
2141
|
},
|
|
2038
2142
|
contentContainer: {
|
|
2039
2143
|
position: 'relative',
|
|
2144
|
+
width: '100%',
|
|
2040
2145
|
zIndex: '1',
|
|
2041
2146
|
display: 'grid',
|
|
2042
2147
|
gridTemplateColumns: 'repeat(2,minmax(0, 1fr))',
|
|
@@ -2335,7 +2440,8 @@ function Carousel({
|
|
|
2335
2440
|
}
|
|
2336
2441
|
|
|
2337
2442
|
function Section$4({
|
|
2338
|
-
nodeData
|
|
2443
|
+
nodeData,
|
|
2444
|
+
sectionIndex
|
|
2339
2445
|
}) {
|
|
2340
2446
|
const classes = useSectionStyles$8();
|
|
2341
2447
|
const {
|
|
@@ -2372,7 +2478,7 @@ function Section$4({
|
|
|
2372
2478
|
dangerouslySetInnerHTML: {
|
|
2373
2479
|
__html: nodeData.description.metadata.value
|
|
2374
2480
|
}
|
|
2375
|
-
}), /*#__PURE__*/React.createElement(Button, {
|
|
2481
|
+
}), nodeData?.cta?.validations?.isEmptyAllowed && nodeData?.cta?.metadata?.value === '' ? null : /*#__PURE__*/React.createElement(Button, {
|
|
2376
2482
|
ref: nodeData?.cta?.refSetter,
|
|
2377
2483
|
data: nodeData.cta.metadata,
|
|
2378
2484
|
type: nodeData?.cta?.metadata?.type,
|
|
@@ -2382,11 +2488,13 @@ function Section$4({
|
|
|
2382
2488
|
}, /*#__PURE__*/React.createElement(NextImageRenderer, {
|
|
2383
2489
|
ref: nodeData?.image?.refSetter,
|
|
2384
2490
|
className: classes.sideBannerImage,
|
|
2385
|
-
src: nodeData.image.metadata.value
|
|
2491
|
+
src: nodeData.image.metadata.value,
|
|
2492
|
+
sectionIndex: sectionIndex
|
|
2386
2493
|
}))));
|
|
2387
2494
|
}
|
|
2388
2495
|
function BannerCarouselRight({
|
|
2389
|
-
sectionData
|
|
2496
|
+
sectionData,
|
|
2497
|
+
sectionIndex
|
|
2390
2498
|
}) {
|
|
2391
2499
|
const {
|
|
2392
2500
|
layout: {
|
|
@@ -2410,7 +2518,8 @@ function BannerCarouselRight({
|
|
|
2410
2518
|
className: classes.sectionContainer
|
|
2411
2519
|
}, /*#__PURE__*/React.createElement(Wrapper, wrapperProps, bannerCarousel.components.map((node, idx) => /*#__PURE__*/React.createElement(Section$4, {
|
|
2412
2520
|
nodeData: node,
|
|
2413
|
-
key: idx /* or some other unique property
|
|
2521
|
+
key: idx /* or some other unique property */,
|
|
2522
|
+
sectionIndex: sectionIndex
|
|
2414
2523
|
})))));
|
|
2415
2524
|
}
|
|
2416
2525
|
|
|
@@ -2702,9 +2811,13 @@ const useSectionStyles$6 = createUseStyles(theme => ({
|
|
|
2702
2811
|
width: '100%'
|
|
2703
2812
|
},
|
|
2704
2813
|
contentContainer: {
|
|
2705
|
-
padding: '100px 0',
|
|
2814
|
+
// padding: '100px 0',
|
|
2815
|
+
// height: '100%',
|
|
2816
|
+
// display: 'flex',
|
|
2817
|
+
// alignItems: 'center'
|
|
2706
2818
|
height: '100%',
|
|
2707
2819
|
display: 'flex',
|
|
2820
|
+
/* padding: 100px 0; */
|
|
2708
2821
|
alignItems: 'center'
|
|
2709
2822
|
// backgroundImage: ({ imageUrl } = {}) =>
|
|
2710
2823
|
// `linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%), url("${imageUrl}")`,
|
|
@@ -2730,7 +2843,7 @@ const useSectionStyles$6 = createUseStyles(theme => ({
|
|
|
2730
2843
|
height: '100%'
|
|
2731
2844
|
},
|
|
2732
2845
|
textContainer: {
|
|
2733
|
-
padding: '0
|
|
2846
|
+
padding: '100px 0',
|
|
2734
2847
|
margin: '0 auto',
|
|
2735
2848
|
width: '80%'
|
|
2736
2849
|
},
|
|
@@ -2788,7 +2901,8 @@ const useSectionStyles$6 = createUseStyles(theme => ({
|
|
|
2788
2901
|
|
|
2789
2902
|
const Section$3 = ({
|
|
2790
2903
|
nodeData,
|
|
2791
|
-
isCustomWebsite
|
|
2904
|
+
isCustomWebsite,
|
|
2905
|
+
sectionIndex
|
|
2792
2906
|
}) => {
|
|
2793
2907
|
const {
|
|
2794
2908
|
layout: {
|
|
@@ -2800,7 +2914,6 @@ const Section$3 = ({
|
|
|
2800
2914
|
imageUrl: nodeData.image.metadata.value,
|
|
2801
2915
|
containerWidth
|
|
2802
2916
|
});
|
|
2803
|
-
console.log('isCustomWebsite______', isCustomWebsite);
|
|
2804
2917
|
return /*#__PURE__*/React.createElement("section", {
|
|
2805
2918
|
className: classes.bannerCarouselCenterSection
|
|
2806
2919
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -2829,7 +2942,7 @@ const Section$3 = ({
|
|
|
2829
2942
|
dangerouslySetInnerHTML: {
|
|
2830
2943
|
__html: nodeData.description.metadata.value
|
|
2831
2944
|
}
|
|
2832
|
-
}), /*#__PURE__*/React.createElement(Button, {
|
|
2945
|
+
}), nodeData?.cta?.validations?.isEmptyAllowed && nodeData?.cta?.metadata?.value === '' ? null : /*#__PURE__*/React.createElement(Button, {
|
|
2833
2946
|
ref: nodeData?.cta?.refSetter,
|
|
2834
2947
|
data: nodeData.cta.metadata,
|
|
2835
2948
|
type: nodeData?.cta?.metadata?.type,
|
|
@@ -2838,14 +2951,15 @@ const Section$3 = ({
|
|
|
2838
2951
|
className: classes?.centerBgImageContainer
|
|
2839
2952
|
}, /*#__PURE__*/React.createElement(NextImageRenderer, {
|
|
2840
2953
|
src: nodeData.image.metadata.value,
|
|
2841
|
-
className: classes?.centerBgImage
|
|
2954
|
+
className: classes?.centerBgImage,
|
|
2955
|
+
sectionIndex: sectionIndex
|
|
2842
2956
|
}))));
|
|
2843
2957
|
};
|
|
2844
2958
|
function BannerCarouselCenter({
|
|
2845
2959
|
sectionData,
|
|
2846
|
-
isCustomWebsite
|
|
2960
|
+
isCustomWebsite,
|
|
2961
|
+
sectionIndex
|
|
2847
2962
|
}) {
|
|
2848
|
-
console.log('isCustomWebsite______', isCustomWebsite);
|
|
2849
2963
|
const classes = useSectionStyles$6();
|
|
2850
2964
|
const [{
|
|
2851
2965
|
bannerCarousel
|
|
@@ -2860,7 +2974,8 @@ function BannerCarouselCenter({
|
|
|
2860
2974
|
}, /*#__PURE__*/React.createElement(Wrapper, wrapperProps, bannerCarousel.components.map((node, idx) => /*#__PURE__*/React.createElement(Section$3, {
|
|
2861
2975
|
nodeData: node,
|
|
2862
2976
|
isCustomWebsite: isCustomWebsite,
|
|
2863
|
-
key: idx /* or some other unique property
|
|
2977
|
+
key: idx /* or some other unique property */,
|
|
2978
|
+
sectionIndex: sectionIndex
|
|
2864
2979
|
}))));
|
|
2865
2980
|
}
|
|
2866
2981
|
|
|
@@ -2904,7 +3019,13 @@ const useSectionStyles$5 = createUseStyles(theme => {
|
|
|
2904
3019
|
position: 'relative',
|
|
2905
3020
|
width: '100%',
|
|
2906
3021
|
// height: "650px"
|
|
2907
|
-
paddingBottom:
|
|
3022
|
+
paddingBottom: ({
|
|
3023
|
+
isCustomWebsite
|
|
3024
|
+
}) => isCustomWebsite ? '85%' : '',
|
|
3025
|
+
'& img': {
|
|
3026
|
+
height: '520px',
|
|
3027
|
+
objectFit: 'cover'
|
|
3028
|
+
}
|
|
2908
3029
|
},
|
|
2909
3030
|
imageBorder: {
|
|
2910
3031
|
border: `2px solid ${theme?.palette?.primary?.light}`,
|
|
@@ -2955,6 +3076,14 @@ const useSectionStyles$5 = createUseStyles(theme => {
|
|
|
2955
3076
|
width: '100%',
|
|
2956
3077
|
padding: '0'
|
|
2957
3078
|
},
|
|
3079
|
+
// imageContainer: {
|
|
3080
|
+
|
|
3081
|
+
// '& img': {
|
|
3082
|
+
// height: "520px",
|
|
3083
|
+
// objectFit: "cover"
|
|
3084
|
+
// }
|
|
3085
|
+
|
|
3086
|
+
// },
|
|
2958
3087
|
imageContainerDiv: {
|
|
2959
3088
|
width: '100%'
|
|
2960
3089
|
},
|
|
@@ -2980,15 +3109,19 @@ const useSectionStyles$5 = createUseStyles(theme => {
|
|
|
2980
3109
|
});
|
|
2981
3110
|
|
|
2982
3111
|
function Section$2({
|
|
2983
|
-
nodeData
|
|
3112
|
+
nodeData,
|
|
3113
|
+
sectionIndex
|
|
2984
3114
|
}) {
|
|
2985
|
-
const classes = useSectionStyles$5();
|
|
2986
3115
|
const {
|
|
2987
3116
|
layout: {
|
|
2988
3117
|
containerWidth
|
|
2989
3118
|
},
|
|
2990
|
-
isMobile
|
|
3119
|
+
isMobile,
|
|
3120
|
+
isCustomWebsite
|
|
2991
3121
|
} = useContext(PageContext);
|
|
3122
|
+
const classes = useSectionStyles$5({
|
|
3123
|
+
isCustomWebsite
|
|
3124
|
+
});
|
|
2992
3125
|
return /*#__PURE__*/React.createElement("div", {
|
|
2993
3126
|
className: classes.centerData
|
|
2994
3127
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -2998,7 +3131,8 @@ function Section$2({
|
|
|
2998
3131
|
}, /*#__PURE__*/React.createElement(NextImageRenderer, {
|
|
2999
3132
|
src: nodeData.image.metadata.value,
|
|
3000
3133
|
ref: nodeData?.image?.refSetter,
|
|
3001
|
-
className: classes.sideBannerImage
|
|
3134
|
+
className: classes.sideBannerImage,
|
|
3135
|
+
sectionIndex: sectionIndex
|
|
3002
3136
|
}), /*#__PURE__*/React.createElement("div", {
|
|
3003
3137
|
className: classes.imageBorder
|
|
3004
3138
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
@@ -3023,18 +3157,20 @@ function Section$2({
|
|
|
3023
3157
|
dangerouslySetInnerHTML: {
|
|
3024
3158
|
__html: nodeData.description.metadata.value
|
|
3025
3159
|
}
|
|
3026
|
-
}), /*#__PURE__*/React.createElement(Button, {
|
|
3160
|
+
}), nodeData?.cta?.validations?.isEmptyAllowed && nodeData?.cta?.metadata?.value === '' ? null : /*#__PURE__*/React.createElement(Button, {
|
|
3027
3161
|
ref: nodeData?.cta?.refSetter,
|
|
3028
3162
|
data: nodeData.cta.metadata,
|
|
3029
3163
|
type: nodeData?.cta?.metadata?.type,
|
|
3030
|
-
size: isMobile ? 'small' : 'medium'
|
|
3164
|
+
size: isMobile ? 'small' : 'medium',
|
|
3165
|
+
name: "button"
|
|
3031
3166
|
})));
|
|
3032
3167
|
}
|
|
3033
3168
|
function BannerCarouselLeft({
|
|
3034
3169
|
sectionData,
|
|
3035
|
-
isCustomWebsite
|
|
3170
|
+
isCustomWebsite,
|
|
3171
|
+
sectionIndex,
|
|
3172
|
+
isMobile
|
|
3036
3173
|
}) {
|
|
3037
|
-
console.log('isCustomWebsite______', isCustomWebsite);
|
|
3038
3174
|
const {
|
|
3039
3175
|
layout: {
|
|
3040
3176
|
containerWidth
|
|
@@ -3053,7 +3189,8 @@ function BannerCarouselLeft({
|
|
|
3053
3189
|
className: classes.sectionContainer
|
|
3054
3190
|
}, /*#__PURE__*/React.createElement(Wrapper, null, bannerCarousel.components.map((node, idx) => /*#__PURE__*/React.createElement(Section$2, {
|
|
3055
3191
|
nodeData: node,
|
|
3056
|
-
key: idx /* or some other unique property
|
|
3192
|
+
key: idx /* or some other unique property */,
|
|
3193
|
+
sectionIndex: sectionIndex
|
|
3057
3194
|
})))));
|
|
3058
3195
|
}
|
|
3059
3196
|
|
|
@@ -3212,7 +3349,6 @@ async function postApiCall(baseURLs, data) {
|
|
|
3212
3349
|
return res.data;
|
|
3213
3350
|
}
|
|
3214
3351
|
} catch (err) {
|
|
3215
|
-
console.log(err);
|
|
3216
3352
|
return;
|
|
3217
3353
|
}
|
|
3218
3354
|
}
|
|
@@ -3235,7 +3371,6 @@ async function postApiCallForm(baseURLs, data, extraProps) {
|
|
|
3235
3371
|
return res.data;
|
|
3236
3372
|
});
|
|
3237
3373
|
} catch (err) {
|
|
3238
|
-
console.log(err);
|
|
3239
3374
|
return;
|
|
3240
3375
|
}
|
|
3241
3376
|
}
|
|
@@ -3422,7 +3557,7 @@ function SubscribeToNewsletter({
|
|
|
3422
3557
|
onFocus: () => {
|
|
3423
3558
|
setIsValid(true);
|
|
3424
3559
|
}
|
|
3425
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
3560
|
+
})), nodeData.cta.metadata.value !== '' && /*#__PURE__*/React.createElement("div", {
|
|
3426
3561
|
className: classes.btnContainer
|
|
3427
3562
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
3428
3563
|
ref: nodeData?.cta?.refSetter,
|
|
@@ -3488,7 +3623,8 @@ const useTestimonialStyles = createUseStyles(theme => {
|
|
|
3488
3623
|
color: theme?.palette?.font?.default,
|
|
3489
3624
|
margin: '10px 0 40px 10px',
|
|
3490
3625
|
overflow: 'hidden',
|
|
3491
|
-
|
|
3626
|
+
wordBreak: 'break-word',
|
|
3627
|
+
// whiteSpace: 'nowrap',
|
|
3492
3628
|
textOverflow: 'ellipsis'
|
|
3493
3629
|
},
|
|
3494
3630
|
sliderContainer: {
|
|
@@ -3579,7 +3715,8 @@ const useTestimonialStyles = createUseStyles(theme => {
|
|
|
3579
3715
|
color: theme?.palette?.font?.default,
|
|
3580
3716
|
margin: '4px 0 12px 0',
|
|
3581
3717
|
overflow: 'hidden',
|
|
3582
|
-
whiteSpace: 'nowrap',
|
|
3718
|
+
// whiteSpace: 'nowrap',
|
|
3719
|
+
wordBreak: 'break-word',
|
|
3583
3720
|
textOverflow: 'ellipsis'
|
|
3584
3721
|
},
|
|
3585
3722
|
userImageDummy: {
|
|
@@ -3626,7 +3763,8 @@ function QuotesComponent() {
|
|
|
3626
3763
|
}
|
|
3627
3764
|
|
|
3628
3765
|
function Section$1({
|
|
3629
|
-
nodeData
|
|
3766
|
+
nodeData,
|
|
3767
|
+
sectionIndex
|
|
3630
3768
|
}) {
|
|
3631
3769
|
const {
|
|
3632
3770
|
isMobile,
|
|
@@ -3682,7 +3820,8 @@ function Section$1({
|
|
|
3682
3820
|
ref: el?.cardUserImage?.refSetter,
|
|
3683
3821
|
className: classes.userImage,
|
|
3684
3822
|
src: el?.cardUserImage?.metadata?.value,
|
|
3685
|
-
alt: "userImg"
|
|
3823
|
+
alt: "userImg",
|
|
3824
|
+
sectionIndex: sectionIndex
|
|
3686
3825
|
})) : /*#__PURE__*/React.createElement("div", {
|
|
3687
3826
|
ref: el?.cardUserImage?.refSetter,
|
|
3688
3827
|
className: classes.userImageDummy
|
|
@@ -3719,13 +3858,15 @@ function Section$1({
|
|
|
3719
3858
|
}, carouselContent))));
|
|
3720
3859
|
}
|
|
3721
3860
|
function Testimonials({
|
|
3722
|
-
sectionData
|
|
3861
|
+
sectionData,
|
|
3862
|
+
sectionIndex
|
|
3723
3863
|
}) {
|
|
3724
3864
|
const classes = useTestimonialStyles();
|
|
3725
3865
|
return /*#__PURE__*/React.createElement("div", {
|
|
3726
3866
|
className: classes.testimonialContainer
|
|
3727
3867
|
}, /*#__PURE__*/React.createElement(Section$1, {
|
|
3728
|
-
nodeData: sectionData.components[0]
|
|
3868
|
+
nodeData: sectionData.components[0],
|
|
3869
|
+
sectionIndex: sectionIndex
|
|
3729
3870
|
}));
|
|
3730
3871
|
}
|
|
3731
3872
|
|
|
@@ -3879,7 +4020,8 @@ function VideoPlayer(props) {
|
|
|
3879
4020
|
return /*#__PURE__*/React.createElement(React.Fragment, null, !isLoaded && /*#__PURE__*/React.createElement("div", {
|
|
3880
4021
|
className: classes.imgContainer
|
|
3881
4022
|
}, /*#__PURE__*/React.createElement(NextImageRenderer, {
|
|
3882
|
-
src: imageUrl
|
|
4023
|
+
src: imageUrl,
|
|
4024
|
+
sectionIndex: props?.sectionIndex
|
|
3883
4025
|
}), isEnabled ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(React.Fragment, null, props.onlyThumbnail ? null : /*#__PURE__*/React.createElement(Icon, {
|
|
3884
4026
|
name: "Video Play",
|
|
3885
4027
|
color: theme.palette.font.invertedDefault,
|
|
@@ -4044,7 +4186,8 @@ const SingleVideoSlide$2 = props => {
|
|
|
4044
4186
|
className: classes.iframeContainer
|
|
4045
4187
|
}, /*#__PURE__*/React.createElement(VideoPlayer, {
|
|
4046
4188
|
imageUrl: data.videoFrame.metadata?.thumbnail,
|
|
4047
|
-
videoUrl: data.videoFrame.metadata?.value
|
|
4189
|
+
videoUrl: data.videoFrame.metadata?.value,
|
|
4190
|
+
sectionIndex: props?.sectionIndex
|
|
4048
4191
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
4049
4192
|
className: classes.videoDetails
|
|
4050
4193
|
}, /*#__PURE__*/React.createElement("h3", {
|
|
@@ -4069,7 +4212,8 @@ const SingleVideoSlide$2 = props => {
|
|
|
4069
4212
|
};
|
|
4070
4213
|
|
|
4071
4214
|
function VideoTestimonial({
|
|
4072
|
-
sectionData
|
|
4215
|
+
sectionData,
|
|
4216
|
+
sectionIndex
|
|
4073
4217
|
}) {
|
|
4074
4218
|
const {
|
|
4075
4219
|
layout: {
|
|
@@ -4103,7 +4247,8 @@ function VideoTestimonial({
|
|
|
4103
4247
|
}
|
|
4104
4248
|
})), /*#__PURE__*/React.createElement(Wrapper, null, videoData.videoCarousel.components.map((data, index) => /*#__PURE__*/React.createElement(SingleVideoSlide$2, {
|
|
4105
4249
|
data: data,
|
|
4106
|
-
key: index
|
|
4250
|
+
key: index,
|
|
4251
|
+
sectionIndex: sectionIndex
|
|
4107
4252
|
}))))));
|
|
4108
4253
|
}
|
|
4109
4254
|
|
|
@@ -4772,7 +4917,8 @@ const usePhotoGalleryStyles = createUseStyles(theme => {
|
|
|
4772
4917
|
});
|
|
4773
4918
|
|
|
4774
4919
|
function PhotoGallery({
|
|
4775
|
-
sectionData
|
|
4920
|
+
sectionData,
|
|
4921
|
+
sectionIndex
|
|
4776
4922
|
}) {
|
|
4777
4923
|
const {
|
|
4778
4924
|
isMobile,
|
|
@@ -4807,7 +4953,8 @@ function PhotoGallery({
|
|
|
4807
4953
|
}, /*#__PURE__*/React.createElement(NextImageRenderer, {
|
|
4808
4954
|
src: el?.cardImage?.metadata?.value,
|
|
4809
4955
|
ref: el?.cardImage?.refSetter,
|
|
4810
|
-
className: classes?.carouselImage
|
|
4956
|
+
className: classes?.carouselImage,
|
|
4957
|
+
sectionIndex: sectionIndex
|
|
4811
4958
|
})));
|
|
4812
4959
|
});
|
|
4813
4960
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
@@ -5483,9 +5630,9 @@ function CourseCard({
|
|
|
5483
5630
|
className: classes.courseCardPriceContainer
|
|
5484
5631
|
}, /*#__PURE__*/React.createElement("div", {
|
|
5485
5632
|
className: classes.courseCardPrice
|
|
5486
|
-
}, '₹', card?.finalPrice), /*#__PURE__*/React.createElement("div", {
|
|
5633
|
+
}, '₹', card?.finalPrice), card?.price !== card?.finalPrice ? /*#__PURE__*/React.createElement("div", {
|
|
5487
5634
|
className: classes.courseCardStrikePrice
|
|
5488
|
-
}, /*#__PURE__*/React.createElement("span", null, '₹', card?.price), ' ', discount > 0 && discount + '% OFF')), /*#__PURE__*/React.createElement("a", {
|
|
5635
|
+
}, /*#__PURE__*/React.createElement("span", null, '₹', card?.price), ' ', discount > 0 && discount + '% OFF') : null), /*#__PURE__*/React.createElement("a", {
|
|
5489
5636
|
className: classes.coursesAnchorTag,
|
|
5490
5637
|
href: isEdit ? null : card?.shareableLink
|
|
5491
5638
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -5766,7 +5913,8 @@ const useTeamStyles = createUseStyles(theme => {
|
|
|
5766
5913
|
});
|
|
5767
5914
|
|
|
5768
5915
|
const SingleSlide = ({
|
|
5769
|
-
data
|
|
5916
|
+
data,
|
|
5917
|
+
sectionIndex
|
|
5770
5918
|
}) => {
|
|
5771
5919
|
const classes = useTeamStyles();
|
|
5772
5920
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -5777,7 +5925,8 @@ const SingleSlide = ({
|
|
|
5777
5925
|
ref: data?.image?.refSetter,
|
|
5778
5926
|
className: classes.image,
|
|
5779
5927
|
alt: "Hero Image",
|
|
5780
|
-
src: data.image.metadata.value
|
|
5928
|
+
src: data.image.metadata.value,
|
|
5929
|
+
sectionIndex: sectionIndex
|
|
5781
5930
|
})), /*#__PURE__*/React.createElement("div", {
|
|
5782
5931
|
className: classes.teamDetailsContainer
|
|
5783
5932
|
}, /*#__PURE__*/React.createElement("h3", {
|
|
@@ -5796,7 +5945,8 @@ const SingleSlide = ({
|
|
|
5796
5945
|
};
|
|
5797
5946
|
|
|
5798
5947
|
function TeamCard({
|
|
5799
|
-
sectionData
|
|
5948
|
+
sectionData,
|
|
5949
|
+
sectionIndex
|
|
5800
5950
|
}) {
|
|
5801
5951
|
const {
|
|
5802
5952
|
isMobile,
|
|
@@ -5823,7 +5973,8 @@ function TeamCard({
|
|
|
5823
5973
|
const carouselContent = teamData.teamCarousel.components.map((data, idx) => {
|
|
5824
5974
|
return /*#__PURE__*/React.createElement(SingleSlide, {
|
|
5825
5975
|
key: idx,
|
|
5826
|
-
data: data
|
|
5976
|
+
data: data,
|
|
5977
|
+
sectionIndex: sectionIndex
|
|
5827
5978
|
});
|
|
5828
5979
|
});
|
|
5829
5980
|
return /*#__PURE__*/React.createElement("section", {
|
|
@@ -5915,7 +6066,7 @@ const useSectionStyles$1 = createUseStyles(theme => ({
|
|
|
5915
6066
|
marginTop: '32px'
|
|
5916
6067
|
},
|
|
5917
6068
|
leftContainer: {
|
|
5918
|
-
width: '
|
|
6069
|
+
width: '65%'
|
|
5919
6070
|
},
|
|
5920
6071
|
subtitle: {
|
|
5921
6072
|
margin: '0 0 40px 0',
|
|
@@ -6220,7 +6371,7 @@ function FormEnquiry({
|
|
|
6220
6371
|
messageValid: 1
|
|
6221
6372
|
});
|
|
6222
6373
|
}
|
|
6223
|
-
})), /*#__PURE__*/React.createElement(Button, {
|
|
6374
|
+
})), nodeData.cta.metadata.value !== '' && /*#__PURE__*/React.createElement(Button, {
|
|
6224
6375
|
ref: nodeData?.cta?.refSetter,
|
|
6225
6376
|
data: btnDisabled && validData?.messageValid && validData?.emailValid && validData?.nameValid && validData?.phoneValid ? {
|
|
6226
6377
|
value: 'Submitted'
|
|
@@ -6427,7 +6578,8 @@ const useSectionStyles = createUseStyles(theme => ({
|
|
|
6427
6578
|
}));
|
|
6428
6579
|
|
|
6429
6580
|
function Contact({
|
|
6430
|
-
sectionData
|
|
6581
|
+
sectionData,
|
|
6582
|
+
sectionIndex
|
|
6431
6583
|
}) {
|
|
6432
6584
|
const {
|
|
6433
6585
|
layout: {
|
|
@@ -6520,7 +6672,8 @@ function Contact({
|
|
|
6520
6672
|
}, /*#__PURE__*/React.createElement(NextImageRenderer, {
|
|
6521
6673
|
className: classes?.telephoneImage,
|
|
6522
6674
|
ref: nodeData?.image?.refSetter,
|
|
6523
|
-
src: nodeData?.image?.metadata?.value
|
|
6675
|
+
src: nodeData?.image?.metadata?.value,
|
|
6676
|
+
sectionIndex: sectionIndex
|
|
6524
6677
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
6525
6678
|
className: classes.rightContainer
|
|
6526
6679
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -6611,7 +6764,7 @@ function Contact({
|
|
|
6611
6764
|
messageValid: 1
|
|
6612
6765
|
});
|
|
6613
6766
|
}
|
|
6614
|
-
})), /*#__PURE__*/React.createElement(Button, {
|
|
6767
|
+
})), nodeData.cta.metadata.value !== '' && /*#__PURE__*/React.createElement(Button, {
|
|
6615
6768
|
ref: nodeData?.cta?.refSetter,
|
|
6616
6769
|
data: btnDisabled && validData?.messageValid && validData?.emailValid && validData?.nameValid && validData?.phoneValid ? {
|
|
6617
6770
|
value: 'Submitted'
|
|
@@ -6621,7 +6774,8 @@ function Contact({
|
|
|
6621
6774
|
onClick: () => handleSubmit(),
|
|
6622
6775
|
type: nodeData?.cta?.metadata?.type,
|
|
6623
6776
|
size: isMobile ? 'small' : 'medium',
|
|
6624
|
-
disabled: btnDisabled
|
|
6777
|
+
disabled: btnDisabled,
|
|
6778
|
+
name: "button"
|
|
6625
6779
|
}))))));
|
|
6626
6780
|
}
|
|
6627
6781
|
|
|
@@ -6751,10 +6905,11 @@ const useWebinarPromotionPage = createUseStyles(theme => {
|
|
|
6751
6905
|
},
|
|
6752
6906
|
courseViewContainer: {
|
|
6753
6907
|
width: '645px',
|
|
6908
|
+
height: 'fit-content',
|
|
6754
6909
|
backgroundColor: '#f4f9ff',
|
|
6755
6910
|
display: 'flex',
|
|
6756
6911
|
flexDirection: 'column',
|
|
6757
|
-
justifyContent: '
|
|
6912
|
+
justifyContent: 'start',
|
|
6758
6913
|
paddingTop: '20px',
|
|
6759
6914
|
borderRadius: '10px'
|
|
6760
6915
|
},
|
|
@@ -6802,10 +6957,10 @@ const useWebinarPromotionPage = createUseStyles(theme => {
|
|
|
6802
6957
|
courseDetailContent: {
|
|
6803
6958
|
marginTop: '16px',
|
|
6804
6959
|
fontSize: '16px',
|
|
6805
|
-
lineHeight: '24px',
|
|
6806
6960
|
wordBreak: 'break-word',
|
|
6807
6961
|
color: theme.palette.font.primary,
|
|
6808
|
-
margin: '10px 0 20px'
|
|
6962
|
+
margin: '10px 0 20px',
|
|
6963
|
+
whiteSpace: 'pre-wrap'
|
|
6809
6964
|
},
|
|
6810
6965
|
courseDetailViewFullDetails: {
|
|
6811
6966
|
cursor: 'pointer',
|
|
@@ -6922,7 +7077,6 @@ const SingleVideoSlide$1 = props => {
|
|
|
6922
7077
|
price,
|
|
6923
7078
|
discount
|
|
6924
7079
|
}) => {
|
|
6925
|
-
console.log('discountxx', props.data.price, props.data.discount);
|
|
6926
7080
|
return (discount / price * 100).toFixed(2);
|
|
6927
7081
|
};
|
|
6928
7082
|
const classes = useWebinarPromotionPage();
|
|
@@ -6991,7 +7145,8 @@ const SingleVideoSlide$1 = props => {
|
|
|
6991
7145
|
}, /*#__PURE__*/React.createElement(VideoPlayer, {
|
|
6992
7146
|
onlyThumbnail: true,
|
|
6993
7147
|
imageUrl: data.thumbnail,
|
|
6994
|
-
videoUrl: data.thumbnail
|
|
7148
|
+
videoUrl: data.thumbnail,
|
|
7149
|
+
sectionIndex: props?.sectionIndex
|
|
6995
7150
|
})), /*#__PURE__*/React.createElement("div", {
|
|
6996
7151
|
style: {
|
|
6997
7152
|
display: data.isPaid ? 'flex' : 'block'
|
|
@@ -7034,7 +7189,8 @@ const SingleVideoSlide$1 = props => {
|
|
|
7034
7189
|
|
|
7035
7190
|
function CoursePromotionPage$1({
|
|
7036
7191
|
sectionData,
|
|
7037
|
-
extraProps = {}
|
|
7192
|
+
extraProps = {},
|
|
7193
|
+
sectionIndex
|
|
7038
7194
|
}) {
|
|
7039
7195
|
const {
|
|
7040
7196
|
layout: {
|
|
@@ -7053,7 +7209,8 @@ function CoursePromotionPage$1({
|
|
|
7053
7209
|
}, /*#__PURE__*/React.createElement(SingleVideoSlide$1, {
|
|
7054
7210
|
data: sectionData.components[0].metadata,
|
|
7055
7211
|
webinarCtaClick: extraProps.webinarCtaClick,
|
|
7056
|
-
conversions: extraProps.conversions
|
|
7212
|
+
conversions: extraProps.conversions,
|
|
7213
|
+
sectionIndex: sectionIndex
|
|
7057
7214
|
}))));
|
|
7058
7215
|
}
|
|
7059
7216
|
|
|
@@ -7356,15 +7513,6 @@ const SingleVideoSlide = props => {
|
|
|
7356
7513
|
isMobile,
|
|
7357
7514
|
isEdit
|
|
7358
7515
|
} = useContext(PageContext);
|
|
7359
|
-
console.log(isEdit, 'isEdit');
|
|
7360
|
-
useEffect(() => {
|
|
7361
|
-
// remaining days epoch
|
|
7362
|
-
// current date epoch
|
|
7363
|
-
// subtract remaining days from current day epoch
|
|
7364
|
-
// moment the result - and see if there are days
|
|
7365
|
-
// days is present show days
|
|
7366
|
-
// else start reverse timer
|
|
7367
|
-
}, []);
|
|
7368
7516
|
const renderer = ({
|
|
7369
7517
|
days,
|
|
7370
7518
|
hours,
|
|
@@ -7507,7 +7655,8 @@ const SingleVideoSlide = props => {
|
|
|
7507
7655
|
}, /*#__PURE__*/React.createElement(VideoPlayer, {
|
|
7508
7656
|
onlyThumbnail: true,
|
|
7509
7657
|
imageUrl: data.thumbnail,
|
|
7510
|
-
videoUrl: data.thumbnail
|
|
7658
|
+
videoUrl: data.thumbnail,
|
|
7659
|
+
sectionIndex: props?.sectionIndex
|
|
7511
7660
|
})), /*#__PURE__*/React.createElement("div", {
|
|
7512
7661
|
className: classes.bottomContainer
|
|
7513
7662
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -7538,6 +7687,7 @@ const SingleVideoSlide = props => {
|
|
|
7538
7687
|
type: 'primary',
|
|
7539
7688
|
size: 'medium',
|
|
7540
7689
|
target: null,
|
|
7690
|
+
name: "button",
|
|
7541
7691
|
rel: null
|
|
7542
7692
|
// styling={isMobile ? { margin: '0 40px' } : {}}
|
|
7543
7693
|
})))), showCourseInstallmentData && InstalmentData && /*#__PURE__*/React.createElement("div", {
|
|
@@ -7561,7 +7711,8 @@ const SingleVideoSlide = props => {
|
|
|
7561
7711
|
|
|
7562
7712
|
function CoursePromotionPage({
|
|
7563
7713
|
sectionData,
|
|
7564
|
-
extraProps = {}
|
|
7714
|
+
extraProps = {},
|
|
7715
|
+
sectionIndex
|
|
7565
7716
|
}) {
|
|
7566
7717
|
const {
|
|
7567
7718
|
layout: {
|
|
@@ -7571,7 +7722,6 @@ function CoursePromotionPage({
|
|
|
7571
7722
|
const classes = useCoursePromotionPage({
|
|
7572
7723
|
containerWidth
|
|
7573
7724
|
});
|
|
7574
|
-
console.log(sectionData, 'sectionData');
|
|
7575
7725
|
return /*#__PURE__*/React.createElement("div", {
|
|
7576
7726
|
className: classes.courseSuperContainer
|
|
7577
7727
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -7582,7 +7732,8 @@ function CoursePromotionPage({
|
|
|
7582
7732
|
data: sectionData.components[0].metadata,
|
|
7583
7733
|
courseBuyNow: extraProps.courseBuyNow,
|
|
7584
7734
|
showCourseInstallment: extraProps.showCourseInstallment,
|
|
7585
|
-
conversions: extraProps.conversions
|
|
7735
|
+
conversions: extraProps.conversions,
|
|
7736
|
+
sectionIndex: sectionIndex
|
|
7586
7737
|
}))));
|
|
7587
7738
|
}
|
|
7588
7739
|
|
|
@@ -8007,7 +8158,8 @@ const useTilesStyles = createUseStyles(theme => {
|
|
|
8007
8158
|
});
|
|
8008
8159
|
|
|
8009
8160
|
function Tiles({
|
|
8010
|
-
sectionData
|
|
8161
|
+
sectionData,
|
|
8162
|
+
sectionIndex
|
|
8011
8163
|
}) {
|
|
8012
8164
|
const classes = useTilesStyles({});
|
|
8013
8165
|
const {
|
|
@@ -8019,7 +8171,6 @@ function Tiles({
|
|
|
8019
8171
|
isEdit
|
|
8020
8172
|
} = useContext(PageContext);
|
|
8021
8173
|
const nodeData = sectionData.components;
|
|
8022
|
-
console.log(nodeData);
|
|
8023
8174
|
const tilesList = nodeData[0]?.tilesList.components;
|
|
8024
8175
|
const handleClick = value => {
|
|
8025
8176
|
if (!isEdit && value) {
|
|
@@ -8036,9 +8187,10 @@ function Tiles({
|
|
|
8036
8187
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8037
8188
|
className: classes.tileDiv,
|
|
8038
8189
|
onClick: () => handleClick(tile.cta?.metadata?.value)
|
|
8039
|
-
}, /*#__PURE__*/React.createElement(
|
|
8190
|
+
}, /*#__PURE__*/React.createElement(NextImageRenderer, {
|
|
8040
8191
|
className: classes.tileImg,
|
|
8041
|
-
src: tile?.tileImage?.metadata?.value
|
|
8192
|
+
src: tile?.tileImage?.metadata?.value,
|
|
8193
|
+
sectionIndex: sectionIndex
|
|
8042
8194
|
}), /*#__PURE__*/React.createElement("div", {
|
|
8043
8195
|
className: classes.title,
|
|
8044
8196
|
ref: tile.tileName?.refSetter,
|
|
@@ -8494,7 +8646,6 @@ function EmailDripMarket({
|
|
|
8494
8646
|
sectionData,
|
|
8495
8647
|
extraProps = {}
|
|
8496
8648
|
}) {
|
|
8497
|
-
console.log('extrapropstemplate', extraProps);
|
|
8498
8649
|
const isInitialMount = useRef(true);
|
|
8499
8650
|
const convertToHtml = sectionData => {
|
|
8500
8651
|
const html = ReactDOMServer.renderToStaticMarkup( /*#__PURE__*/React.createElement(Section, {
|
|
@@ -8565,27 +8716,28 @@ const getCompToRender = type => TYPE_TO_COMPONENT_MAP[type] || (() => null);
|
|
|
8565
8716
|
const MemoisedSection = /*#__PURE__*/memo(({
|
|
8566
8717
|
sectionData,
|
|
8567
8718
|
extraProps,
|
|
8568
|
-
isCustomWebsite
|
|
8719
|
+
isCustomWebsite,
|
|
8720
|
+
sectionIndex
|
|
8569
8721
|
}) => {
|
|
8570
|
-
// console.log("isCustomWebsite______", isCustomWebsite)
|
|
8571
|
-
console.log('templatesectiondata', sectionData);
|
|
8572
8722
|
const SectionComp = getCompToRender(sectionData.type);
|
|
8573
8723
|
return /*#__PURE__*/React.createElement(SectionComp, {
|
|
8574
8724
|
sectionData: sectionData,
|
|
8575
8725
|
extraProps: extraProps,
|
|
8576
|
-
isCustomWebsite: isCustomWebsite
|
|
8726
|
+
isCustomWebsite: isCustomWebsite,
|
|
8727
|
+
sectionIndex: sectionIndex
|
|
8577
8728
|
});
|
|
8578
8729
|
});
|
|
8579
8730
|
function SectionRenderer({
|
|
8580
8731
|
sectionData,
|
|
8581
8732
|
extraProps,
|
|
8582
|
-
isCustomWebsite
|
|
8733
|
+
isCustomWebsite,
|
|
8734
|
+
sectionIndex
|
|
8583
8735
|
}) {
|
|
8584
|
-
// console.log("isCustomWebsite______", isCustomWebsite)
|
|
8585
8736
|
return /*#__PURE__*/React.createElement(MemoisedSection, {
|
|
8586
8737
|
sectionData: sectionData,
|
|
8587
8738
|
extraProps: extraProps,
|
|
8588
|
-
isCustomWebsite: isCustomWebsite
|
|
8739
|
+
isCustomWebsite: isCustomWebsite,
|
|
8740
|
+
sectionIndex: sectionIndex
|
|
8589
8741
|
});
|
|
8590
8742
|
}
|
|
8591
8743
|
|
|
@@ -8663,7 +8815,8 @@ function PageRenderer({
|
|
|
8663
8815
|
}), /*#__PURE__*/React.createElement(SectionRenderer, {
|
|
8664
8816
|
sectionData: sectionData,
|
|
8665
8817
|
extraProps: extraProps,
|
|
8666
|
-
isCustomWebsite: isCustomWebsite
|
|
8818
|
+
isCustomWebsite: isCustomWebsite,
|
|
8819
|
+
sectionIndex: sectionIndex
|
|
8667
8820
|
}))) : sectionPlaceholder, !!footer && /*#__PURE__*/React.createElement(Wrapper, !!SectionWrapper && {
|
|
8668
8821
|
sectionData: footer,
|
|
8669
8822
|
isFooter: true
|