diy-template-components 0.2.31 → 0.2.33
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/650233e8e2d7dfee.png +0 -0
- package/build/d15660fcfffcc0c8.png +0 -0
- package/build/index.es.js +209 -81
- package/build/index.es.js.map +1 -1
- package/build/index.js +209 -81
- package/build/index.js.map +1 -1
- package/package.json +2 -2
|
Binary file
|
|
Binary file
|
package/build/index.es.js
CHANGED
|
@@ -1360,9 +1360,6 @@ const useSectionStyles$9 = createUseStyles(theme => ({
|
|
|
1360
1360
|
boxSizing: 'border-box'
|
|
1361
1361
|
}
|
|
1362
1362
|
},
|
|
1363
|
-
sectionNoBranding: {
|
|
1364
|
-
paddingBottom: '0px'
|
|
1365
|
-
},
|
|
1366
1363
|
upperContainer: {
|
|
1367
1364
|
display: 'flex',
|
|
1368
1365
|
justifyContent: 'space-between',
|
|
@@ -1371,9 +1368,6 @@ const useSectionStyles$9 = createUseStyles(theme => ({
|
|
|
1371
1368
|
borderBottom: '1px solid #E1EAF6',
|
|
1372
1369
|
alignItems: 'flex-start'
|
|
1373
1370
|
},
|
|
1374
|
-
upperContainerNoBranding: {
|
|
1375
|
-
borderBottom: '0px'
|
|
1376
|
-
},
|
|
1377
1371
|
upperContainerItem1: {
|
|
1378
1372
|
width: '33%',
|
|
1379
1373
|
display: 'flex',
|
|
@@ -1521,9 +1515,9 @@ function Footer({
|
|
|
1521
1515
|
const classes = useSectionStyles$9();
|
|
1522
1516
|
console.log(data, 'this is data');
|
|
1523
1517
|
return /*#__PURE__*/React.createElement("footer", {
|
|
1524
|
-
className:
|
|
1518
|
+
className: classes.section
|
|
1525
1519
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1526
|
-
className:
|
|
1520
|
+
className: classes.upperContainer
|
|
1527
1521
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1528
1522
|
className: classes.upperContainerItem1
|
|
1529
1523
|
}, /*#__PURE__*/React.createElement("img", {
|
|
@@ -1885,7 +1879,8 @@ function PageRenderer$1({
|
|
|
1885
1879
|
templateId,
|
|
1886
1880
|
isTutorWebsite = false,
|
|
1887
1881
|
extraProps,
|
|
1888
|
-
hideLogin
|
|
1882
|
+
hideLogin,
|
|
1883
|
+
isCustomWebsite
|
|
1889
1884
|
}) {
|
|
1890
1885
|
const theme = useMemo(() => getTheme(color, font), [color, font]);
|
|
1891
1886
|
const navList = header?.navs;
|
|
@@ -1905,9 +1900,11 @@ function PageRenderer$1({
|
|
|
1905
1900
|
isTutorWebsite,
|
|
1906
1901
|
extraProps,
|
|
1907
1902
|
hideLogin,
|
|
1903
|
+
isCustomWebsite,
|
|
1908
1904
|
_id
|
|
1909
1905
|
}), [isMobile, isLandingPages, layout, baseURLs, hashToken, isPreview, isEdit, templateId, navList, isMasterTemplate, basePath, validations, isTutorWebsite, extraProps, hideLogin, _id]);
|
|
1910
1906
|
const Wrapper = SectionWrapper || Fragment;
|
|
1907
|
+
// console.log("CONTEXT______", context)
|
|
1911
1908
|
return /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
1912
1909
|
theme: theme
|
|
1913
1910
|
}, /*#__PURE__*/React.createElement(PageContext.Provider, {
|
|
@@ -1984,6 +1981,11 @@ const useSectionStyles$8 = createUseStyles(theme => ({
|
|
|
1984
1981
|
margin: '0 auto',
|
|
1985
1982
|
maxWidth: '100%'
|
|
1986
1983
|
},
|
|
1984
|
+
imageContainer: {
|
|
1985
|
+
width: '100%',
|
|
1986
|
+
position: 'relative',
|
|
1987
|
+
height: '90%'
|
|
1988
|
+
},
|
|
1987
1989
|
subTitleHeading: {
|
|
1988
1990
|
marginBottom: '8px',
|
|
1989
1991
|
fontSize: '16px',
|
|
@@ -2040,6 +2042,10 @@ const useSectionStyles$8 = createUseStyles(theme => ({
|
|
|
2040
2042
|
},
|
|
2041
2043
|
linkButton: {
|
|
2042
2044
|
padding: '12px 16px'
|
|
2045
|
+
},
|
|
2046
|
+
imageContainer: {
|
|
2047
|
+
height: 'undefined',
|
|
2048
|
+
paddingBottom: '80%'
|
|
2043
2049
|
}
|
|
2044
2050
|
}
|
|
2045
2051
|
}));
|
|
@@ -2261,6 +2267,46 @@ function Carousel({
|
|
|
2261
2267
|
})));
|
|
2262
2268
|
}
|
|
2263
2269
|
|
|
2270
|
+
const NextImageRenderer = ({
|
|
2271
|
+
src,
|
|
2272
|
+
...props
|
|
2273
|
+
}) => {
|
|
2274
|
+
try {
|
|
2275
|
+
const {
|
|
2276
|
+
isCustomWebsite
|
|
2277
|
+
} = useContext(PageContext);
|
|
2278
|
+
let {
|
|
2279
|
+
refSetter,
|
|
2280
|
+
className
|
|
2281
|
+
} = props;
|
|
2282
|
+
if (isCustomWebsite) {
|
|
2283
|
+
return /*#__PURE__*/React.createElement(require.resolve('next/image').default, {
|
|
2284
|
+
src: src,
|
|
2285
|
+
// height: "640",
|
|
2286
|
+
// width: "959",
|
|
2287
|
+
layout: 'fill',
|
|
2288
|
+
ref: {
|
|
2289
|
+
refSetter
|
|
2290
|
+
},
|
|
2291
|
+
className: {
|
|
2292
|
+
className
|
|
2293
|
+
},
|
|
2294
|
+
...props
|
|
2295
|
+
});
|
|
2296
|
+
} else {
|
|
2297
|
+
return /*#__PURE__*/React.createElement("img", {
|
|
2298
|
+
ref: refSetter,
|
|
2299
|
+
className: className,
|
|
2300
|
+
src: src
|
|
2301
|
+
});
|
|
2302
|
+
}
|
|
2303
|
+
} catch (err) {
|
|
2304
|
+
return {
|
|
2305
|
+
notFound: true
|
|
2306
|
+
};
|
|
2307
|
+
}
|
|
2308
|
+
};
|
|
2309
|
+
|
|
2264
2310
|
function Section$4({
|
|
2265
2311
|
nodeData
|
|
2266
2312
|
}) {
|
|
@@ -2299,16 +2345,18 @@ function Section$4({
|
|
|
2299
2345
|
dangerouslySetInnerHTML: {
|
|
2300
2346
|
__html: nodeData.description.metadata.value
|
|
2301
2347
|
}
|
|
2302
|
-
}),
|
|
2348
|
+
}), /*#__PURE__*/React.createElement(Button, {
|
|
2303
2349
|
ref: nodeData?.cta?.refSetter,
|
|
2304
2350
|
data: nodeData.cta.metadata,
|
|
2305
2351
|
type: nodeData?.cta?.metadata?.type,
|
|
2306
2352
|
size: isMobile ? 'small' : 'medium'
|
|
2307
|
-
})), /*#__PURE__*/React.createElement("
|
|
2353
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
2354
|
+
className: classes?.imageContainer
|
|
2355
|
+
}, /*#__PURE__*/React.createElement(NextImageRenderer, {
|
|
2308
2356
|
ref: nodeData?.image?.refSetter,
|
|
2309
2357
|
className: classes.sideBannerImage,
|
|
2310
2358
|
src: nodeData.image.metadata.value
|
|
2311
|
-
})));
|
|
2359
|
+
}))));
|
|
2312
2360
|
}
|
|
2313
2361
|
function BannerCarouselRight({
|
|
2314
2362
|
sectionData
|
|
@@ -2614,9 +2662,9 @@ const useSectionStyles$6 = createUseStyles(theme => ({
|
|
|
2614
2662
|
sectionContainer: {
|
|
2615
2663
|
margin: '0 auto',
|
|
2616
2664
|
width: '100%',
|
|
2617
|
-
maxWidth: ({
|
|
2618
|
-
|
|
2619
|
-
|
|
2665
|
+
// maxWidth: ({ containerWidth } = {}) => containerWidth,
|
|
2666
|
+
position: 'absolute',
|
|
2667
|
+
zIndex: '99'
|
|
2620
2668
|
},
|
|
2621
2669
|
absoluteButtons: {
|
|
2622
2670
|
display: 'flex',
|
|
@@ -2630,19 +2678,34 @@ const useSectionStyles$6 = createUseStyles(theme => ({
|
|
|
2630
2678
|
padding: '100px 0',
|
|
2631
2679
|
height: '100%',
|
|
2632
2680
|
display: 'flex',
|
|
2633
|
-
alignItems: 'center'
|
|
2634
|
-
backgroundImage: ({
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2681
|
+
alignItems: 'center'
|
|
2682
|
+
// backgroundImage: ({ imageUrl } = {}) =>
|
|
2683
|
+
// `linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%), url("${imageUrl}")`,
|
|
2684
|
+
// backgroundPosition: 'center',
|
|
2685
|
+
// backgroundSize: 'cover'
|
|
2686
|
+
},
|
|
2687
|
+
|
|
2688
|
+
centerBgImageContainer: {
|
|
2689
|
+
width: '100%',
|
|
2690
|
+
position: 'relative',
|
|
2691
|
+
paddingBottom: '35rem',
|
|
2692
|
+
backgroundImage: 'linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%)',
|
|
2693
|
+
backgroundSize: 'cover',
|
|
2694
|
+
backgroundPosition: 'center center'
|
|
2695
|
+
},
|
|
2696
|
+
centerBgImage: {
|
|
2697
|
+
objectFit: 'cover',
|
|
2698
|
+
backgroundImage: 'linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%)',
|
|
2699
|
+
backgroundSize: 'cover',
|
|
2700
|
+
backgroundPosition: 'center center'
|
|
2639
2701
|
},
|
|
2640
2702
|
partialBackground: {
|
|
2641
2703
|
height: '100%'
|
|
2642
2704
|
},
|
|
2643
2705
|
textContainer: {
|
|
2644
2706
|
padding: '0 18%',
|
|
2645
|
-
margin: '0 auto'
|
|
2707
|
+
margin: '0 auto',
|
|
2708
|
+
width: '80%'
|
|
2646
2709
|
},
|
|
2647
2710
|
subTitleHeading: {
|
|
2648
2711
|
color: theme?.palette?.font?.invertedDefault,
|
|
@@ -2652,7 +2715,7 @@ const useSectionStyles$6 = createUseStyles(theme => ({
|
|
|
2652
2715
|
},
|
|
2653
2716
|
heading: {
|
|
2654
2717
|
margin: '0',
|
|
2655
|
-
fontSize: '
|
|
2718
|
+
fontSize: '62px',
|
|
2656
2719
|
color: theme?.palette?.font?.invertedDefault,
|
|
2657
2720
|
wordBreak: 'break-word'
|
|
2658
2721
|
},
|
|
@@ -2674,7 +2737,9 @@ const useSectionStyles$6 = createUseStyles(theme => ({
|
|
|
2674
2737
|
},
|
|
2675
2738
|
contentContainer: {
|
|
2676
2739
|
display: 'flex',
|
|
2677
|
-
flexFlow: 'column-reverse'
|
|
2740
|
+
flexFlow: 'column-reverse',
|
|
2741
|
+
justifyContent: 'center',
|
|
2742
|
+
padding: '0px'
|
|
2678
2743
|
},
|
|
2679
2744
|
textContainer: {
|
|
2680
2745
|
padding: '20px'
|
|
@@ -2684,12 +2749,19 @@ const useSectionStyles$6 = createUseStyles(theme => ({
|
|
|
2684
2749
|
},
|
|
2685
2750
|
description: {
|
|
2686
2751
|
margin: '16px 0'
|
|
2752
|
+
},
|
|
2753
|
+
centerBgImageContainer: {
|
|
2754
|
+
width: '100%',
|
|
2755
|
+
position: 'relative',
|
|
2756
|
+
height: '34rem',
|
|
2757
|
+
paddingBottom: '100%'
|
|
2687
2758
|
}
|
|
2688
2759
|
}
|
|
2689
2760
|
}));
|
|
2690
2761
|
|
|
2691
2762
|
const Section$3 = ({
|
|
2692
|
-
nodeData
|
|
2763
|
+
nodeData,
|
|
2764
|
+
isCustomWebsite
|
|
2693
2765
|
}) => {
|
|
2694
2766
|
const {
|
|
2695
2767
|
layout: {
|
|
@@ -2701,6 +2773,7 @@ const Section$3 = ({
|
|
|
2701
2773
|
imageUrl: nodeData.image.metadata.value,
|
|
2702
2774
|
containerWidth
|
|
2703
2775
|
});
|
|
2776
|
+
console.log('isCustomWebsite______', isCustomWebsite);
|
|
2704
2777
|
return /*#__PURE__*/React.createElement("section", {
|
|
2705
2778
|
className: classes.bannerCarouselCenterSection
|
|
2706
2779
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -2729,16 +2802,23 @@ const Section$3 = ({
|
|
|
2729
2802
|
dangerouslySetInnerHTML: {
|
|
2730
2803
|
__html: nodeData.description.metadata.value
|
|
2731
2804
|
}
|
|
2732
|
-
}),
|
|
2805
|
+
}), /*#__PURE__*/React.createElement(Button, {
|
|
2733
2806
|
ref: nodeData?.cta?.refSetter,
|
|
2734
2807
|
data: nodeData.cta.metadata,
|
|
2735
2808
|
type: nodeData?.cta?.metadata?.type,
|
|
2736
2809
|
size: isMobile ? 'small' : 'medium'
|
|
2737
|
-
})))
|
|
2810
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
2811
|
+
className: classes?.centerBgImageContainer
|
|
2812
|
+
}, /*#__PURE__*/React.createElement(NextImageRenderer, {
|
|
2813
|
+
src: nodeData.image.metadata.value,
|
|
2814
|
+
className: classes?.centerBgImage
|
|
2815
|
+
}))));
|
|
2738
2816
|
};
|
|
2739
2817
|
function BannerCarouselCenter({
|
|
2740
|
-
sectionData
|
|
2818
|
+
sectionData,
|
|
2819
|
+
isCustomWebsite
|
|
2741
2820
|
}) {
|
|
2821
|
+
console.log('isCustomWebsite______', isCustomWebsite);
|
|
2742
2822
|
const classes = useSectionStyles$6();
|
|
2743
2823
|
const [{
|
|
2744
2824
|
bannerCarousel
|
|
@@ -2752,6 +2832,7 @@ function BannerCarouselCenter({
|
|
|
2752
2832
|
className: classes.bannerCarouselCenterSection
|
|
2753
2833
|
}, /*#__PURE__*/React.createElement(Wrapper, wrapperProps, bannerCarousel.components.map((node, idx) => /*#__PURE__*/React.createElement(Section$3, {
|
|
2754
2834
|
nodeData: node,
|
|
2835
|
+
isCustomWebsite: isCustomWebsite,
|
|
2755
2836
|
key: idx /* or some other unique property */
|
|
2756
2837
|
}))));
|
|
2757
2838
|
}
|
|
@@ -2793,7 +2874,10 @@ const useSectionStyles$5 = createUseStyles(theme => {
|
|
|
2793
2874
|
position: 'relative'
|
|
2794
2875
|
},
|
|
2795
2876
|
imageContainer: {
|
|
2796
|
-
position: 'relative'
|
|
2877
|
+
position: 'relative',
|
|
2878
|
+
width: '100%',
|
|
2879
|
+
// height: "650px"
|
|
2880
|
+
paddingBottom: '82%'
|
|
2797
2881
|
},
|
|
2798
2882
|
imageBorder: {
|
|
2799
2883
|
border: `2px solid ${theme?.palette?.primary?.light}`,
|
|
@@ -2884,10 +2968,10 @@ function Section$2({
|
|
|
2884
2968
|
className: classes.imageContainerDiv
|
|
2885
2969
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2886
2970
|
className: classes.imageContainer
|
|
2887
|
-
}, /*#__PURE__*/React.createElement(
|
|
2971
|
+
}, /*#__PURE__*/React.createElement(NextImageRenderer, {
|
|
2972
|
+
src: nodeData.image.metadata.value,
|
|
2888
2973
|
ref: nodeData?.image?.refSetter,
|
|
2889
|
-
className: classes.sideBannerImage
|
|
2890
|
-
src: nodeData.image.metadata.value
|
|
2974
|
+
className: classes.sideBannerImage
|
|
2891
2975
|
}), /*#__PURE__*/React.createElement("div", {
|
|
2892
2976
|
className: classes.imageBorder
|
|
2893
2977
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
@@ -2912,7 +2996,7 @@ function Section$2({
|
|
|
2912
2996
|
dangerouslySetInnerHTML: {
|
|
2913
2997
|
__html: nodeData.description.metadata.value
|
|
2914
2998
|
}
|
|
2915
|
-
}),
|
|
2999
|
+
}), /*#__PURE__*/React.createElement(Button, {
|
|
2916
3000
|
ref: nodeData?.cta?.refSetter,
|
|
2917
3001
|
data: nodeData.cta.metadata,
|
|
2918
3002
|
type: nodeData?.cta?.metadata?.type,
|
|
@@ -2920,8 +3004,10 @@ function Section$2({
|
|
|
2920
3004
|
})));
|
|
2921
3005
|
}
|
|
2922
3006
|
function BannerCarouselLeft({
|
|
2923
|
-
sectionData
|
|
3007
|
+
sectionData,
|
|
3008
|
+
isCustomWebsite
|
|
2924
3009
|
}) {
|
|
3010
|
+
console.log('isCustomWebsite______', isCustomWebsite);
|
|
2925
3011
|
const {
|
|
2926
3012
|
layout: {
|
|
2927
3013
|
containerWidth
|
|
@@ -3309,7 +3395,7 @@ function SubscribeToNewsletter({
|
|
|
3309
3395
|
onFocus: () => {
|
|
3310
3396
|
setIsValid(true);
|
|
3311
3397
|
}
|
|
3312
|
-
})),
|
|
3398
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
3313
3399
|
className: classes.btnContainer
|
|
3314
3400
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
3315
3401
|
ref: nodeData?.cta?.refSetter,
|
|
@@ -3375,8 +3461,7 @@ const useTestimonialStyles = createUseStyles(theme => {
|
|
|
3375
3461
|
color: theme?.palette?.font?.default,
|
|
3376
3462
|
margin: '10px 0 40px 10px',
|
|
3377
3463
|
overflow: 'hidden',
|
|
3378
|
-
|
|
3379
|
-
// whiteSpace: 'nowrap',
|
|
3464
|
+
whiteSpace: 'nowrap',
|
|
3380
3465
|
textOverflow: 'ellipsis'
|
|
3381
3466
|
},
|
|
3382
3467
|
sliderContainer: {
|
|
@@ -3416,8 +3501,16 @@ const useTestimonialStyles = createUseStyles(theme => {
|
|
|
3416
3501
|
},
|
|
3417
3502
|
userContainer: {
|
|
3418
3503
|
display: 'flex',
|
|
3504
|
+
gap: '15px',
|
|
3419
3505
|
padding: '0 0 29px 48px'
|
|
3420
3506
|
},
|
|
3507
|
+
userImageContainer: {
|
|
3508
|
+
width: '64px',
|
|
3509
|
+
height: '64px',
|
|
3510
|
+
position: 'relative',
|
|
3511
|
+
// paddingBottom: '55px',
|
|
3512
|
+
objectFit: 'cover'
|
|
3513
|
+
},
|
|
3421
3514
|
userImageDummy: {
|
|
3422
3515
|
width: '64px',
|
|
3423
3516
|
height: '64px',
|
|
@@ -3459,8 +3552,7 @@ const useTestimonialStyles = createUseStyles(theme => {
|
|
|
3459
3552
|
color: theme?.palette?.font?.default,
|
|
3460
3553
|
margin: '4px 0 12px 0',
|
|
3461
3554
|
overflow: 'hidden',
|
|
3462
|
-
|
|
3463
|
-
wordBreak: 'break-word',
|
|
3555
|
+
whiteSpace: 'nowrap',
|
|
3464
3556
|
textOverflow: 'ellipsis'
|
|
3465
3557
|
},
|
|
3466
3558
|
userImageDummy: {
|
|
@@ -3487,6 +3579,10 @@ const useTestimonialStyles = createUseStyles(theme => {
|
|
|
3487
3579
|
overflow: 'hidden',
|
|
3488
3580
|
whiteSpace: 'nowrap',
|
|
3489
3581
|
textOverflow: 'ellipsis'
|
|
3582
|
+
},
|
|
3583
|
+
userImageContainer: {
|
|
3584
|
+
width: '48px',
|
|
3585
|
+
height: '48px'
|
|
3490
3586
|
}
|
|
3491
3587
|
}
|
|
3492
3588
|
};
|
|
@@ -3545,12 +3641,22 @@ function Section$1({
|
|
|
3545
3641
|
}
|
|
3546
3642
|
}), /*#__PURE__*/React.createElement("div", {
|
|
3547
3643
|
className: classes.userContainer
|
|
3548
|
-
}, el?.cardUserImage?.metadata?.value ?
|
|
3644
|
+
}, el?.cardUserImage?.metadata?.value ?
|
|
3645
|
+
/*#__PURE__*/
|
|
3646
|
+
// <img
|
|
3647
|
+
// ref={el?.cardUserImage?.refSetter}
|
|
3648
|
+
// className={classes.userImage}
|
|
3649
|
+
// src={el?.cardUserImage?.metadata?.value}
|
|
3650
|
+
// alt="userImg"
|
|
3651
|
+
// />
|
|
3652
|
+
React.createElement("div", {
|
|
3653
|
+
className: classes.userImageContainer
|
|
3654
|
+
}, /*#__PURE__*/React.createElement(NextImageRenderer, {
|
|
3549
3655
|
ref: el?.cardUserImage?.refSetter,
|
|
3550
3656
|
className: classes.userImage,
|
|
3551
3657
|
src: el?.cardUserImage?.metadata?.value,
|
|
3552
3658
|
alt: "userImg"
|
|
3553
|
-
}) : /*#__PURE__*/React.createElement("div", {
|
|
3659
|
+
})) : /*#__PURE__*/React.createElement("div", {
|
|
3554
3660
|
ref: el?.cardUserImage?.refSetter,
|
|
3555
3661
|
className: classes.userImageDummy
|
|
3556
3662
|
}), /*#__PURE__*/React.createElement("h3", {
|
|
@@ -3693,14 +3799,16 @@ const useVideoStyles$1 = createUseStyles(theme => {
|
|
|
3693
3799
|
isLoaded
|
|
3694
3800
|
} = {}) => isLoaded ? 'block' : 'none'
|
|
3695
3801
|
},
|
|
3802
|
+
icon: {
|
|
3803
|
+
zIndex: '999'
|
|
3804
|
+
},
|
|
3696
3805
|
imgContainer: {
|
|
3697
3806
|
position: 'absolute',
|
|
3698
3807
|
width: '100%',
|
|
3699
3808
|
height: '100%',
|
|
3700
3809
|
borderRadius: theme.shape.borderRadius.small,
|
|
3701
|
-
backgroundImage: ({
|
|
3702
|
-
|
|
3703
|
-
} = {}) => `linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%), url("${imageUrl}")`,
|
|
3810
|
+
// backgroundImage: ({ imageUrl } = {}) =>
|
|
3811
|
+
// `linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%), url("${imageUrl}")`,
|
|
3704
3812
|
backgroundSize: 'cover',
|
|
3705
3813
|
display: 'flex',
|
|
3706
3814
|
justifyContent: 'center',
|
|
@@ -3743,9 +3851,12 @@ function VideoPlayer(props) {
|
|
|
3743
3851
|
}
|
|
3744
3852
|
return /*#__PURE__*/React.createElement(React.Fragment, null, !isLoaded && /*#__PURE__*/React.createElement("div", {
|
|
3745
3853
|
className: classes.imgContainer
|
|
3746
|
-
},
|
|
3854
|
+
}, /*#__PURE__*/React.createElement(NextImageRenderer, {
|
|
3855
|
+
src: imageUrl
|
|
3856
|
+
}), isEnabled ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(React.Fragment, null, props.onlyThumbnail ? null : /*#__PURE__*/React.createElement(Icon, {
|
|
3747
3857
|
name: "Video Play",
|
|
3748
3858
|
color: theme.palette.font.invertedDefault,
|
|
3859
|
+
className: classes?.icon,
|
|
3749
3860
|
onClick: () => {
|
|
3750
3861
|
setIsEnableed(true);
|
|
3751
3862
|
}
|
|
@@ -4666,11 +4777,10 @@ function PhotoGallery({
|
|
|
4666
4777
|
key: idx
|
|
4667
4778
|
}, /*#__PURE__*/React.createElement("div", {
|
|
4668
4779
|
className: classes.singleCard
|
|
4669
|
-
}, /*#__PURE__*/React.createElement(
|
|
4670
|
-
ref: el?.cardImage?.refSetter,
|
|
4671
|
-
className: classes?.carouselImage,
|
|
4780
|
+
}, /*#__PURE__*/React.createElement(NextImageRenderer, {
|
|
4672
4781
|
src: el?.cardImage?.metadata?.value,
|
|
4673
|
-
|
|
4782
|
+
ref: el?.cardImage?.refSetter,
|
|
4783
|
+
className: classes?.carouselImage
|
|
4674
4784
|
})));
|
|
4675
4785
|
});
|
|
4676
4786
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
@@ -5116,9 +5226,11 @@ const useCourseStyles = createUseStyles(theme => {
|
|
|
5116
5226
|
courseCardImg: {
|
|
5117
5227
|
width: '100%',
|
|
5118
5228
|
height: '200px',
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5229
|
+
position: 'relative',
|
|
5230
|
+
borderTopLeftRadius: theme?.shape?.borderRadius?.regular,
|
|
5231
|
+
borderTopRightRadius: theme?.shape?.borderRadius?.regular
|
|
5232
|
+
},
|
|
5233
|
+
courseCardImgThumbnail: {
|
|
5122
5234
|
borderTopLeftRadius: theme?.shape?.borderRadius?.regular,
|
|
5123
5235
|
borderTopRightRadius: theme?.shape?.borderRadius?.regular
|
|
5124
5236
|
},
|
|
@@ -5313,13 +5425,11 @@ function CourseCard({
|
|
|
5313
5425
|
return /*#__PURE__*/React.createElement("div", {
|
|
5314
5426
|
className: classes.singleCard
|
|
5315
5427
|
}, /*#__PURE__*/React.createElement("div", {
|
|
5316
|
-
style: card?.imageUrl ? {
|
|
5317
|
-
backgroundImage: `url("${card?.imageUrl}")`
|
|
5318
|
-
} : {
|
|
5319
|
-
backgroundImage: `url("${defaultCardImg}")`
|
|
5320
|
-
},
|
|
5321
5428
|
className: classes.courseCardImg
|
|
5322
|
-
}
|
|
5429
|
+
}, /*#__PURE__*/React.createElement(NextImageRenderer, {
|
|
5430
|
+
src: card?.imageUrl ? card?.imageUrl : defaultCardImg,
|
|
5431
|
+
className: classes.courseCardImgThumbnail
|
|
5432
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
5323
5433
|
className: classes.courseCardData
|
|
5324
5434
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
5325
5435
|
className: classes.courseCardTags
|
|
@@ -5346,9 +5456,9 @@ function CourseCard({
|
|
|
5346
5456
|
className: classes.courseCardPriceContainer
|
|
5347
5457
|
}, /*#__PURE__*/React.createElement("div", {
|
|
5348
5458
|
className: classes.courseCardPrice
|
|
5349
|
-
}, '₹', card?.finalPrice),
|
|
5459
|
+
}, '₹', card?.finalPrice), /*#__PURE__*/React.createElement("div", {
|
|
5350
5460
|
className: classes.courseCardStrikePrice
|
|
5351
|
-
}, /*#__PURE__*/React.createElement("span", null, '₹', card?.price), ' ', discount > 0 && discount + '% OFF')
|
|
5461
|
+
}, /*#__PURE__*/React.createElement("span", null, '₹', card?.price), ' ', discount > 0 && discount + '% OFF')), /*#__PURE__*/React.createElement("a", {
|
|
5352
5462
|
className: classes.coursesAnchorTag,
|
|
5353
5463
|
href: isEdit ? null : card?.shareableLink
|
|
5354
5464
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -5636,7 +5746,7 @@ const SingleSlide = ({
|
|
|
5636
5746
|
className: classes.singleSlideContainer
|
|
5637
5747
|
}, /*#__PURE__*/React.createElement("div", {
|
|
5638
5748
|
className: classes.imageContainer
|
|
5639
|
-
}, /*#__PURE__*/React.createElement(
|
|
5749
|
+
}, /*#__PURE__*/React.createElement(NextImageRenderer, {
|
|
5640
5750
|
ref: data?.image?.refSetter,
|
|
5641
5751
|
className: classes.image,
|
|
5642
5752
|
alt: "Hero Image",
|
|
@@ -5778,7 +5888,7 @@ const useSectionStyles$1 = createUseStyles(theme => ({
|
|
|
5778
5888
|
marginTop: '32px'
|
|
5779
5889
|
},
|
|
5780
5890
|
leftContainer: {
|
|
5781
|
-
width: '
|
|
5891
|
+
width: '50%'
|
|
5782
5892
|
},
|
|
5783
5893
|
subtitle: {
|
|
5784
5894
|
margin: '0 0 40px 0',
|
|
@@ -6083,7 +6193,7 @@ function FormEnquiry({
|
|
|
6083
6193
|
messageValid: 1
|
|
6084
6194
|
});
|
|
6085
6195
|
}
|
|
6086
|
-
})),
|
|
6196
|
+
})), /*#__PURE__*/React.createElement(Button, {
|
|
6087
6197
|
ref: nodeData?.cta?.refSetter,
|
|
6088
6198
|
data: btnDisabled && validData?.messageValid && validData?.emailValid && validData?.nameValid && validData?.phoneValid ? {
|
|
6089
6199
|
value: 'Submitted'
|
|
@@ -6123,6 +6233,7 @@ const useSectionStyles = createUseStyles(theme => ({
|
|
|
6123
6233
|
}
|
|
6124
6234
|
},
|
|
6125
6235
|
contactContainer: {
|
|
6236
|
+
width: '80%',
|
|
6126
6237
|
margin: '0 auto',
|
|
6127
6238
|
maxWidth: ({
|
|
6128
6239
|
containerWidth
|
|
@@ -6173,10 +6284,16 @@ const useSectionStyles = createUseStyles(theme => ({
|
|
|
6173
6284
|
display: 'flex',
|
|
6174
6285
|
alignItems: 'flex-start',
|
|
6175
6286
|
flexDirection: 'column',
|
|
6176
|
-
width: '
|
|
6177
|
-
|
|
6178
|
-
|
|
6179
|
-
|
|
6287
|
+
width: '85%',
|
|
6288
|
+
position: 'relative',
|
|
6289
|
+
paddingBottom: '55%'
|
|
6290
|
+
// '& img': {
|
|
6291
|
+
// width: '80%'
|
|
6292
|
+
// }
|
|
6293
|
+
},
|
|
6294
|
+
|
|
6295
|
+
telephoneImage: {
|
|
6296
|
+
width: '80%'
|
|
6180
6297
|
},
|
|
6181
6298
|
rightContainer: {
|
|
6182
6299
|
width: '50%',
|
|
@@ -6275,6 +6392,9 @@ const useSectionStyles = createUseStyles(theme => ({
|
|
|
6275
6392
|
},
|
|
6276
6393
|
error: {
|
|
6277
6394
|
bottom: '-2px'
|
|
6395
|
+
},
|
|
6396
|
+
contactContainer: {
|
|
6397
|
+
width: '97%'
|
|
6278
6398
|
}
|
|
6279
6399
|
}
|
|
6280
6400
|
}));
|
|
@@ -6370,10 +6490,10 @@ function Contact({
|
|
|
6370
6490
|
}
|
|
6371
6491
|
}), /*#__PURE__*/React.createElement("div", {
|
|
6372
6492
|
className: classes.addressContainer
|
|
6373
|
-
}, /*#__PURE__*/React.createElement(
|
|
6493
|
+
}, /*#__PURE__*/React.createElement(NextImageRenderer, {
|
|
6494
|
+
className: classes?.telephoneImage,
|
|
6374
6495
|
ref: nodeData?.image?.refSetter,
|
|
6375
|
-
src: nodeData?.image?.metadata?.value
|
|
6376
|
-
alt: ""
|
|
6496
|
+
src: nodeData?.image?.metadata?.value
|
|
6377
6497
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
6378
6498
|
className: classes.rightContainer
|
|
6379
6499
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -6464,7 +6584,7 @@ function Contact({
|
|
|
6464
6584
|
messageValid: 1
|
|
6465
6585
|
});
|
|
6466
6586
|
}
|
|
6467
|
-
})),
|
|
6587
|
+
})), /*#__PURE__*/React.createElement(Button, {
|
|
6468
6588
|
ref: nodeData?.cta?.refSetter,
|
|
6469
6589
|
data: btnDisabled && validData?.messageValid && validData?.emailValid && validData?.nameValid && validData?.phoneValid ? {
|
|
6470
6590
|
value: 'Submitted'
|
|
@@ -6604,11 +6724,10 @@ const useWebinarPromotionPage = createUseStyles(theme => {
|
|
|
6604
6724
|
},
|
|
6605
6725
|
courseViewContainer: {
|
|
6606
6726
|
width: '645px',
|
|
6607
|
-
height: 'fit-content',
|
|
6608
6727
|
backgroundColor: '#f4f9ff',
|
|
6609
6728
|
display: 'flex',
|
|
6610
6729
|
flexDirection: 'column',
|
|
6611
|
-
justifyContent: '
|
|
6730
|
+
justifyContent: 'center',
|
|
6612
6731
|
paddingTop: '20px',
|
|
6613
6732
|
borderRadius: '10px'
|
|
6614
6733
|
},
|
|
@@ -6656,10 +6775,10 @@ const useWebinarPromotionPage = createUseStyles(theme => {
|
|
|
6656
6775
|
courseDetailContent: {
|
|
6657
6776
|
marginTop: '16px',
|
|
6658
6777
|
fontSize: '16px',
|
|
6778
|
+
lineHeight: '24px',
|
|
6659
6779
|
wordBreak: 'break-word',
|
|
6660
6780
|
color: theme.palette.font.primary,
|
|
6661
|
-
margin: '10px 0 20px'
|
|
6662
|
-
whiteSpace: 'pre-wrap'
|
|
6781
|
+
margin: '10px 0 20px'
|
|
6663
6782
|
},
|
|
6664
6783
|
courseDetailViewFullDetails: {
|
|
6665
6784
|
cursor: 'pointer',
|
|
@@ -8418,22 +8537,28 @@ const TYPE_TO_COMPONENT_MAP = {
|
|
|
8418
8537
|
const getCompToRender = type => TYPE_TO_COMPONENT_MAP[type] || (() => null);
|
|
8419
8538
|
const MemoisedSection = /*#__PURE__*/memo(({
|
|
8420
8539
|
sectionData,
|
|
8421
|
-
extraProps
|
|
8540
|
+
extraProps,
|
|
8541
|
+
isCustomWebsite
|
|
8422
8542
|
}) => {
|
|
8543
|
+
// console.log("isCustomWebsite______", isCustomWebsite)
|
|
8423
8544
|
console.log('templatesectiondata', sectionData);
|
|
8424
8545
|
const SectionComp = getCompToRender(sectionData.type);
|
|
8425
8546
|
return /*#__PURE__*/React.createElement(SectionComp, {
|
|
8426
8547
|
sectionData: sectionData,
|
|
8427
|
-
extraProps: extraProps
|
|
8548
|
+
extraProps: extraProps,
|
|
8549
|
+
isCustomWebsite: isCustomWebsite
|
|
8428
8550
|
});
|
|
8429
8551
|
});
|
|
8430
8552
|
function SectionRenderer({
|
|
8431
8553
|
sectionData,
|
|
8432
|
-
extraProps
|
|
8554
|
+
extraProps,
|
|
8555
|
+
isCustomWebsite
|
|
8433
8556
|
}) {
|
|
8557
|
+
// console.log("isCustomWebsite______", isCustomWebsite)
|
|
8434
8558
|
return /*#__PURE__*/React.createElement(MemoisedSection, {
|
|
8435
8559
|
sectionData: sectionData,
|
|
8436
|
-
extraProps: extraProps
|
|
8560
|
+
extraProps: extraProps,
|
|
8561
|
+
isCustomWebsite: isCustomWebsite
|
|
8437
8562
|
});
|
|
8438
8563
|
}
|
|
8439
8564
|
|
|
@@ -8451,7 +8576,8 @@ function PageRenderer({
|
|
|
8451
8576
|
footer,
|
|
8452
8577
|
validations = {},
|
|
8453
8578
|
_id,
|
|
8454
|
-
isLandingPage = false
|
|
8579
|
+
isLandingPage = false,
|
|
8580
|
+
isCustomWebsite = false
|
|
8455
8581
|
},
|
|
8456
8582
|
isMobile = false,
|
|
8457
8583
|
isLandingPages = false,
|
|
@@ -8486,6 +8612,7 @@ function PageRenderer({
|
|
|
8486
8612
|
isTutorWebsite,
|
|
8487
8613
|
extraProps,
|
|
8488
8614
|
hideLogin,
|
|
8615
|
+
isCustomWebsite,
|
|
8489
8616
|
_id
|
|
8490
8617
|
}), [isMobile, isLandingPages, layout, baseURLs, hashToken, isPreview, isEdit, templateId, navList, isMasterTemplate, basePath, validations, isTutorWebsite, extraProps, hideLogin, _id]);
|
|
8491
8618
|
const Wrapper = SectionWrapper || Fragment;
|
|
@@ -8508,7 +8635,8 @@ function PageRenderer({
|
|
|
8508
8635
|
key: sectionData.type + (sectionData._id || sectionIndex)
|
|
8509
8636
|
}), /*#__PURE__*/React.createElement(SectionRenderer, {
|
|
8510
8637
|
sectionData: sectionData,
|
|
8511
|
-
extraProps: extraProps
|
|
8638
|
+
extraProps: extraProps,
|
|
8639
|
+
isCustomWebsite: isCustomWebsite
|
|
8512
8640
|
}))) : sectionPlaceholder, !!footer && /*#__PURE__*/React.createElement(Wrapper, !!SectionWrapper && {
|
|
8513
8641
|
sectionData: footer,
|
|
8514
8642
|
isFooter: true
|