diy-template-components 0.1.39 → 0.2.0
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 +463 -51
- package/build/index.es.js.map +1 -1
- package/build/index.js +464 -51
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -14,6 +14,7 @@ import Slider from 'react-slick';
|
|
|
14
14
|
import axios from 'axios';
|
|
15
15
|
import moment from 'moment';
|
|
16
16
|
import Countdown from 'react-countdown';
|
|
17
|
+
import ReactDOMServer from 'react-dom/server';
|
|
17
18
|
import { createTheming, createUseStyles as createUseStyles$1, useTheme as useTheme$1 } from 'react-jss';
|
|
18
19
|
|
|
19
20
|
function _extends() {
|
|
@@ -1833,27 +1834,28 @@ function ArimaMadurai() {
|
|
|
1833
1834
|
}
|
|
1834
1835
|
|
|
1835
1836
|
const TYPE_TO_COMPONENT_MAP$1 = {
|
|
1836
|
-
BANNER_CAROUSEL_RIGHT: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$
|
|
1837
|
-
GRID_CARD: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$
|
|
1838
|
-
BANNER_CAROUSEL_CENTER: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$
|
|
1839
|
-
BANNER_CAROUSEL_LEFT: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$
|
|
1840
|
-
FORM_SUBSCRIBE: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$
|
|
1841
|
-
TEXT_TESTIMONIAL: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$
|
|
1842
|
-
VIDEO_TESTIMONIAL: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$
|
|
1843
|
-
VIDEO: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$
|
|
1844
|
-
INFO: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$
|
|
1845
|
-
TEXT: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$
|
|
1846
|
-
IMAGE_GALLERY: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$
|
|
1847
|
-
FAQ_LISTING: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$
|
|
1848
|
-
COURSE_CAROUSEL: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$
|
|
1849
|
-
TEAM_CARD: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$
|
|
1850
|
-
TEXT_GRID: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$
|
|
1851
|
-
CONTACT: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$
|
|
1852
|
-
FORM_ENQUIRY: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$
|
|
1853
|
-
WEBINAR_LANDING_PAGE: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$
|
|
1854
|
-
COURSE_LANDING_PAGE: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$
|
|
1855
|
-
FORM_LANDING_PAGE: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$
|
|
1856
|
-
TILES_SECTION: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index; }))
|
|
1837
|
+
BANNER_CAROUSEL_RIGHT: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$l; })),
|
|
1838
|
+
GRID_CARD: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$k; })),
|
|
1839
|
+
BANNER_CAROUSEL_CENTER: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$j; })),
|
|
1840
|
+
BANNER_CAROUSEL_LEFT: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$i; })),
|
|
1841
|
+
FORM_SUBSCRIBE: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$h; })),
|
|
1842
|
+
TEXT_TESTIMONIAL: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$g; })),
|
|
1843
|
+
VIDEO_TESTIMONIAL: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$f; })),
|
|
1844
|
+
VIDEO: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$e; })),
|
|
1845
|
+
INFO: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$d; })),
|
|
1846
|
+
TEXT: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$c; })),
|
|
1847
|
+
IMAGE_GALLERY: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$b; })),
|
|
1848
|
+
FAQ_LISTING: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$a; })),
|
|
1849
|
+
COURSE_CAROUSEL: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$8; })),
|
|
1850
|
+
TEAM_CARD: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$7; })),
|
|
1851
|
+
TEXT_GRID: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$9; })),
|
|
1852
|
+
CONTACT: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$6; })),
|
|
1853
|
+
FORM_ENQUIRY: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$5; })),
|
|
1854
|
+
WEBINAR_LANDING_PAGE: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$4; })),
|
|
1855
|
+
COURSE_LANDING_PAGE: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$3; })),
|
|
1856
|
+
FORM_LANDING_PAGE: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$2; })),
|
|
1857
|
+
TILES_SECTION: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$1; })),
|
|
1858
|
+
EMAIL_DRIP_MARKET: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index; }))
|
|
1857
1859
|
};
|
|
1858
1860
|
|
|
1859
1861
|
const getCompToRender$1 = type => TYPE_TO_COMPONENT_MAP$1[type] || (() => null);
|
|
@@ -1862,6 +1864,7 @@ const MemoisedSection$1 = /*#__PURE__*/memo(({
|
|
|
1862
1864
|
sectionData,
|
|
1863
1865
|
extraProps
|
|
1864
1866
|
}) => {
|
|
1867
|
+
console.log('templatesectiondata', sectionData);
|
|
1865
1868
|
const SectionComp = getCompToRender$1(sectionData.type);
|
|
1866
1869
|
return /*#__PURE__*/React.createElement(SectionComp, {
|
|
1867
1870
|
sectionData: sectionData,
|
|
@@ -2310,7 +2313,7 @@ function Carousel({
|
|
|
2310
2313
|
})));
|
|
2311
2314
|
}
|
|
2312
2315
|
|
|
2313
|
-
function Section$
|
|
2316
|
+
function Section$4({
|
|
2314
2317
|
nodeData
|
|
2315
2318
|
}) {
|
|
2316
2319
|
const classes = useSectionStyles$8();
|
|
@@ -2383,7 +2386,7 @@ function BannerCarouselRight({
|
|
|
2383
2386
|
className: classes.bannerCarouselRightSection
|
|
2384
2387
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2385
2388
|
className: classes.sectionContainer
|
|
2386
|
-
}, /*#__PURE__*/React.createElement(Wrapper, wrapperProps, bannerCarousel.components.map((node, idx) => /*#__PURE__*/React.createElement(Section$
|
|
2389
|
+
}, /*#__PURE__*/React.createElement(Wrapper, wrapperProps, bannerCarousel.components.map((node, idx) => /*#__PURE__*/React.createElement(Section$4, {
|
|
2387
2390
|
nodeData: node,
|
|
2388
2391
|
key: idx
|
|
2389
2392
|
/* or some other unique property */
|
|
@@ -2391,7 +2394,7 @@ function BannerCarouselRight({
|
|
|
2391
2394
|
})))));
|
|
2392
2395
|
}
|
|
2393
2396
|
|
|
2394
|
-
var index$
|
|
2397
|
+
var index$l = /*#__PURE__*/Object.freeze({
|
|
2395
2398
|
__proto__: null,
|
|
2396
2399
|
'default': BannerCarouselRight
|
|
2397
2400
|
});
|
|
@@ -2643,7 +2646,7 @@ function List({
|
|
|
2643
2646
|
}))));
|
|
2644
2647
|
}
|
|
2645
2648
|
|
|
2646
|
-
var index$
|
|
2649
|
+
var index$k = /*#__PURE__*/Object.freeze({
|
|
2647
2650
|
__proto__: null,
|
|
2648
2651
|
'default': List
|
|
2649
2652
|
});
|
|
@@ -2741,7 +2744,7 @@ const useSectionStyles$6 = createUseStyles(theme => ({
|
|
|
2741
2744
|
}
|
|
2742
2745
|
}));
|
|
2743
2746
|
|
|
2744
|
-
const Section$
|
|
2747
|
+
const Section$3 = ({
|
|
2745
2748
|
nodeData
|
|
2746
2749
|
}) => {
|
|
2747
2750
|
const {
|
|
@@ -2804,7 +2807,7 @@ function BannerCarouselCenter({
|
|
|
2804
2807
|
} : {};
|
|
2805
2808
|
return /*#__PURE__*/React.createElement("section", {
|
|
2806
2809
|
className: classes.bannerCarouselCenterSection
|
|
2807
|
-
}, /*#__PURE__*/React.createElement(Wrapper, wrapperProps, bannerCarousel.components.map((node, idx) => /*#__PURE__*/React.createElement(Section$
|
|
2810
|
+
}, /*#__PURE__*/React.createElement(Wrapper, wrapperProps, bannerCarousel.components.map((node, idx) => /*#__PURE__*/React.createElement(Section$3, {
|
|
2808
2811
|
nodeData: node,
|
|
2809
2812
|
key: idx
|
|
2810
2813
|
/* or some other unique property */
|
|
@@ -2812,7 +2815,7 @@ function BannerCarouselCenter({
|
|
|
2812
2815
|
}))));
|
|
2813
2816
|
}
|
|
2814
2817
|
|
|
2815
|
-
var index$
|
|
2818
|
+
var index$j = /*#__PURE__*/Object.freeze({
|
|
2816
2819
|
__proto__: null,
|
|
2817
2820
|
'default': BannerCarouselCenter
|
|
2818
2821
|
});
|
|
@@ -2924,7 +2927,7 @@ const useSectionStyles$5 = createUseStyles(theme => {
|
|
|
2924
2927
|
};
|
|
2925
2928
|
});
|
|
2926
2929
|
|
|
2927
|
-
function Section$
|
|
2930
|
+
function Section$2({
|
|
2928
2931
|
nodeData
|
|
2929
2932
|
}) {
|
|
2930
2933
|
const classes = useSectionStyles$5();
|
|
@@ -2995,7 +2998,7 @@ function BannerCarouselLeft({
|
|
|
2995
2998
|
className: classes.section
|
|
2996
2999
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2997
3000
|
className: classes.sectionContainer
|
|
2998
|
-
}, /*#__PURE__*/React.createElement(Wrapper, null, bannerCarousel.components.map((node, idx) => /*#__PURE__*/React.createElement(Section$
|
|
3001
|
+
}, /*#__PURE__*/React.createElement(Wrapper, null, bannerCarousel.components.map((node, idx) => /*#__PURE__*/React.createElement(Section$2, {
|
|
2999
3002
|
nodeData: node,
|
|
3000
3003
|
key: idx
|
|
3001
3004
|
/* or some other unique property */
|
|
@@ -3003,7 +3006,7 @@ function BannerCarouselLeft({
|
|
|
3003
3006
|
})))));
|
|
3004
3007
|
}
|
|
3005
3008
|
|
|
3006
|
-
var index$
|
|
3009
|
+
var index$i = /*#__PURE__*/Object.freeze({
|
|
3007
3010
|
__proto__: null,
|
|
3008
3011
|
'default': BannerCarouselLeft
|
|
3009
3012
|
});
|
|
@@ -3396,7 +3399,7 @@ function SubscribeToNewsletter({
|
|
|
3396
3399
|
})))))));
|
|
3397
3400
|
}
|
|
3398
3401
|
|
|
3399
|
-
var index$
|
|
3402
|
+
var index$h = /*#__PURE__*/Object.freeze({
|
|
3400
3403
|
__proto__: null,
|
|
3401
3404
|
'default': SubscribeToNewsletter
|
|
3402
3405
|
});
|
|
@@ -3563,7 +3566,7 @@ function QuotesComponent() {
|
|
|
3563
3566
|
}));
|
|
3564
3567
|
}
|
|
3565
3568
|
|
|
3566
|
-
function Section({
|
|
3569
|
+
function Section$1({
|
|
3567
3570
|
nodeData
|
|
3568
3571
|
}) {
|
|
3569
3572
|
const {
|
|
@@ -3653,12 +3656,12 @@ function Testimonials({
|
|
|
3653
3656
|
const classes = useTestimonialStyles();
|
|
3654
3657
|
return /*#__PURE__*/React.createElement("div", {
|
|
3655
3658
|
className: classes.testimonialContainer
|
|
3656
|
-
}, /*#__PURE__*/React.createElement(Section, {
|
|
3659
|
+
}, /*#__PURE__*/React.createElement(Section$1, {
|
|
3657
3660
|
nodeData: sectionData.components[0]
|
|
3658
3661
|
}));
|
|
3659
3662
|
}
|
|
3660
3663
|
|
|
3661
|
-
var index$
|
|
3664
|
+
var index$g = /*#__PURE__*/Object.freeze({
|
|
3662
3665
|
__proto__: null,
|
|
3663
3666
|
'default': Testimonials
|
|
3664
3667
|
});
|
|
@@ -4037,7 +4040,7 @@ function VideoTestimonial({
|
|
|
4037
4040
|
}))))));
|
|
4038
4041
|
}
|
|
4039
4042
|
|
|
4040
|
-
var index$
|
|
4043
|
+
var index$f = /*#__PURE__*/Object.freeze({
|
|
4041
4044
|
__proto__: null,
|
|
4042
4045
|
'default': VideoTestimonial
|
|
4043
4046
|
});
|
|
@@ -4265,7 +4268,7 @@ function Video({
|
|
|
4265
4268
|
}, carouselContent))));
|
|
4266
4269
|
}
|
|
4267
4270
|
|
|
4268
|
-
var index$
|
|
4271
|
+
var index$e = /*#__PURE__*/Object.freeze({
|
|
4269
4272
|
__proto__: null,
|
|
4270
4273
|
'default': Video
|
|
4271
4274
|
});
|
|
@@ -4491,7 +4494,7 @@ function Info({
|
|
|
4491
4494
|
}, carouselContent))));
|
|
4492
4495
|
}
|
|
4493
4496
|
|
|
4494
|
-
var index$
|
|
4497
|
+
var index$d = /*#__PURE__*/Object.freeze({
|
|
4495
4498
|
__proto__: null,
|
|
4496
4499
|
'default': Info
|
|
4497
4500
|
});
|
|
@@ -4610,7 +4613,7 @@ const TextSection = ({
|
|
|
4610
4613
|
})))));
|
|
4611
4614
|
};
|
|
4612
4615
|
|
|
4613
|
-
var index$
|
|
4616
|
+
var index$c = /*#__PURE__*/Object.freeze({
|
|
4614
4617
|
__proto__: null,
|
|
4615
4618
|
'default': TextSection
|
|
4616
4619
|
});
|
|
@@ -4767,7 +4770,7 @@ function PhotoGallery({
|
|
|
4767
4770
|
}, carouselContent))));
|
|
4768
4771
|
}
|
|
4769
4772
|
|
|
4770
|
-
var index$
|
|
4773
|
+
var index$b = /*#__PURE__*/Object.freeze({
|
|
4771
4774
|
__proto__: null,
|
|
4772
4775
|
'default': PhotoGallery
|
|
4773
4776
|
});
|
|
@@ -4945,7 +4948,7 @@ const Accordion = ({
|
|
|
4945
4948
|
})));
|
|
4946
4949
|
};
|
|
4947
4950
|
|
|
4948
|
-
var index$
|
|
4951
|
+
var index$a = /*#__PURE__*/Object.freeze({
|
|
4949
4952
|
__proto__: null,
|
|
4950
4953
|
'default': FAQListing
|
|
4951
4954
|
});
|
|
@@ -5110,7 +5113,7 @@ const TextGrid = ({
|
|
|
5110
5113
|
}, carouselContent))));
|
|
5111
5114
|
};
|
|
5112
5115
|
|
|
5113
|
-
var index$
|
|
5116
|
+
var index$9 = /*#__PURE__*/Object.freeze({
|
|
5114
5117
|
__proto__: null,
|
|
5115
5118
|
'default': TextGrid
|
|
5116
5119
|
});
|
|
@@ -5564,7 +5567,7 @@ function SimpleCardsContainer({
|
|
|
5564
5567
|
}, children);
|
|
5565
5568
|
}
|
|
5566
5569
|
|
|
5567
|
-
var index$
|
|
5570
|
+
var index$8 = /*#__PURE__*/Object.freeze({
|
|
5568
5571
|
__proto__: null,
|
|
5569
5572
|
'default': courses
|
|
5570
5573
|
});
|
|
@@ -5787,7 +5790,7 @@ function TeamCard({
|
|
|
5787
5790
|
}, " ", carouselContent)));
|
|
5788
5791
|
}
|
|
5789
5792
|
|
|
5790
|
-
var index$
|
|
5793
|
+
var index$7 = /*#__PURE__*/Object.freeze({
|
|
5791
5794
|
__proto__: null,
|
|
5792
5795
|
'default': TeamCard
|
|
5793
5796
|
});
|
|
@@ -6161,7 +6164,7 @@ function FormEnquiry({
|
|
|
6161
6164
|
}))))));
|
|
6162
6165
|
}
|
|
6163
6166
|
|
|
6164
|
-
var index$
|
|
6167
|
+
var index$6 = /*#__PURE__*/Object.freeze({
|
|
6165
6168
|
__proto__: null,
|
|
6166
6169
|
'default': FormEnquiry
|
|
6167
6170
|
});
|
|
@@ -6535,7 +6538,7 @@ function Contact({
|
|
|
6535
6538
|
}))))));
|
|
6536
6539
|
}
|
|
6537
6540
|
|
|
6538
|
-
var index$
|
|
6541
|
+
var index$5 = /*#__PURE__*/Object.freeze({
|
|
6539
6542
|
__proto__: null,
|
|
6540
6543
|
'default': Contact
|
|
6541
6544
|
});
|
|
@@ -6972,7 +6975,7 @@ function CoursePromotionPage$1({
|
|
|
6972
6975
|
}))));
|
|
6973
6976
|
}
|
|
6974
6977
|
|
|
6975
|
-
var index$
|
|
6978
|
+
var index$4 = /*#__PURE__*/Object.freeze({
|
|
6976
6979
|
__proto__: null,
|
|
6977
6980
|
'default': CoursePromotionPage$1
|
|
6978
6981
|
});
|
|
@@ -7442,7 +7445,7 @@ function CoursePromotionPage({
|
|
|
7442
7445
|
}))));
|
|
7443
7446
|
}
|
|
7444
7447
|
|
|
7445
|
-
var index$
|
|
7448
|
+
var index$3 = /*#__PURE__*/Object.freeze({
|
|
7446
7449
|
__proto__: null,
|
|
7447
7450
|
'default': CoursePromotionPage
|
|
7448
7451
|
});
|
|
@@ -7786,7 +7789,7 @@ const FormPage = ({
|
|
|
7786
7789
|
})))));
|
|
7787
7790
|
};
|
|
7788
7791
|
|
|
7789
|
-
var index$
|
|
7792
|
+
var index$2 = /*#__PURE__*/Object.freeze({
|
|
7790
7793
|
__proto__: null,
|
|
7791
7794
|
'default': FormPage
|
|
7792
7795
|
});
|
|
@@ -7919,11 +7922,418 @@ function Tiles({
|
|
|
7919
7922
|
}, TileDiv)));
|
|
7920
7923
|
}
|
|
7921
7924
|
|
|
7922
|
-
var index = /*#__PURE__*/Object.freeze({
|
|
7925
|
+
var index$1 = /*#__PURE__*/Object.freeze({
|
|
7923
7926
|
__proto__: null,
|
|
7924
7927
|
'default': Tiles
|
|
7925
7928
|
});
|
|
7926
7929
|
|
|
7930
|
+
const useEmailStyles = createUseStyles(theme => ({
|
|
7931
|
+
wrapper: {
|
|
7932
|
+
fontFamily: theme?.typography?.fontFamily,
|
|
7933
|
+
width: '100%',
|
|
7934
|
+
tableLayout: 'fixed',
|
|
7935
|
+
backgroundColor: '#cccccc'
|
|
7936
|
+
},
|
|
7937
|
+
email_description_para: {
|
|
7938
|
+
'& p': {
|
|
7939
|
+
margin: '0 0 0 !important'
|
|
7940
|
+
}
|
|
7941
|
+
},
|
|
7942
|
+
main: {
|
|
7943
|
+
backgroundColor: '#ffffff',
|
|
7944
|
+
width: '100%',
|
|
7945
|
+
maxWidth: '600px',
|
|
7946
|
+
borderSpacing: '0'
|
|
7947
|
+
},
|
|
7948
|
+
logoimg: {
|
|
7949
|
+
width: '28px',
|
|
7950
|
+
height: '28px'
|
|
7951
|
+
/* margin: 18px 0px; */
|
|
7952
|
+
|
|
7953
|
+
},
|
|
7954
|
+
'p-young-guru-title': {
|
|
7955
|
+
fontFamily: theme?.typography?.fontFamily,
|
|
7956
|
+
fontStyle: 'normal',
|
|
7957
|
+
fontWeight: '500',
|
|
7958
|
+
fontSize: '24px',
|
|
7959
|
+
lineHeight: '31px',
|
|
7960
|
+
color: '#ffffff',
|
|
7961
|
+
marginTop: '18px'
|
|
7962
|
+
},
|
|
7963
|
+
'p-young-guru-sub-title': {
|
|
7964
|
+
fontFamily: theme?.typography?.fontFamily,
|
|
7965
|
+
fontStyle: 'normal',
|
|
7966
|
+
fontWeight: '400',
|
|
7967
|
+
fontSize: '16px',
|
|
7968
|
+
lineHeight: '21px',
|
|
7969
|
+
color: '#dbd9d9',
|
|
7970
|
+
marginBottom: '18px'
|
|
7971
|
+
},
|
|
7972
|
+
p: {
|
|
7973
|
+
padding: '0',
|
|
7974
|
+
margin: '0 !important'
|
|
7975
|
+
},
|
|
7976
|
+
'two-columns': {
|
|
7977
|
+
fontSize: '0',
|
|
7978
|
+
textAlign: 'center'
|
|
7979
|
+
/* padding:35px 0 40px */
|
|
7980
|
+
|
|
7981
|
+
},
|
|
7982
|
+
'two-columns .column': {
|
|
7983
|
+
width: '100%',
|
|
7984
|
+
maxWidth: '275px',
|
|
7985
|
+
display: 'inline-block',
|
|
7986
|
+
verticalAlign: 'top'
|
|
7987
|
+
},
|
|
7988
|
+
'title-lead': {
|
|
7989
|
+
fontFamily: theme?.typography?.fontFamily,
|
|
7990
|
+
fontStyle: 'normal',
|
|
7991
|
+
fontWeight: '500',
|
|
7992
|
+
fontSize: '20px',
|
|
7993
|
+
lineHeight: '26px',
|
|
7994
|
+
color: '#030a21',
|
|
7995
|
+
marginBottom: '5px',
|
|
7996
|
+
textAlign: 'left'
|
|
7997
|
+
} // @media screen and (max-width: 600px) {
|
|
7998
|
+
// }
|
|
7999
|
+
|
|
8000
|
+
}));
|
|
8001
|
+
|
|
8002
|
+
function Section({
|
|
8003
|
+
nodeData,
|
|
8004
|
+
emailRef
|
|
8005
|
+
}) {
|
|
8006
|
+
console.log('nodedataashu', nodeData);
|
|
8007
|
+
const header = nodeData?.components[0];
|
|
8008
|
+
const body = nodeData?.components[1];
|
|
8009
|
+
const landing = nodeData?.components[2];
|
|
8010
|
+
const footer = nodeData?.components[3];
|
|
8011
|
+
const classes = useEmailStyles();
|
|
8012
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("center", {
|
|
8013
|
+
className: classes.wrapper,
|
|
8014
|
+
ref: emailRef
|
|
8015
|
+
}, /*#__PURE__*/React.createElement("table", {
|
|
8016
|
+
className: classes.main,
|
|
8017
|
+
style: {
|
|
8018
|
+
width: '100%'
|
|
8019
|
+
}
|
|
8020
|
+
}, /*#__PURE__*/React.createElement("tbody", null, header?.isActive ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", null, /*#__PURE__*/React.createElement("table", {
|
|
8021
|
+
style: {
|
|
8022
|
+
textAlign: 'center',
|
|
8023
|
+
background: '#ffffff',
|
|
8024
|
+
paddingTop: '16px',
|
|
8025
|
+
width: '100%'
|
|
8026
|
+
}
|
|
8027
|
+
}, /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", {
|
|
8028
|
+
style: {
|
|
8029
|
+
display: 'inline-block'
|
|
8030
|
+
}
|
|
8031
|
+
}, header?.components[0]?.metadata?.image?.length ? /*#__PURE__*/React.createElement("img", {
|
|
8032
|
+
src: header?.components[0]?.metadata?.image,
|
|
8033
|
+
alt: "",
|
|
8034
|
+
className: classes.logoimg
|
|
8035
|
+
}) : /*#__PURE__*/React.createElement("div", {
|
|
8036
|
+
style: {
|
|
8037
|
+
display: 'flex',
|
|
8038
|
+
alignItems: 'center',
|
|
8039
|
+
justifyContent: 'center',
|
|
8040
|
+
fontStyle: 'italic',
|
|
8041
|
+
minHeight: '30px'
|
|
8042
|
+
}
|
|
8043
|
+
}, "Your logo")))))), /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", null, header?.components[1]?.metadata?.image?.length ? /*#__PURE__*/React.createElement("img", {
|
|
8044
|
+
src: header?.components[1]?.metadata?.image // width={600}
|
|
8045
|
+
,
|
|
8046
|
+
alt: "",
|
|
8047
|
+
style: {
|
|
8048
|
+
maxWidth: '600px',
|
|
8049
|
+
width: '100%',
|
|
8050
|
+
marginBottom: '-4px'
|
|
8051
|
+
}
|
|
8052
|
+
}) : /*#__PURE__*/React.createElement("div", {
|
|
8053
|
+
style: {
|
|
8054
|
+
maxWidth: '600px',
|
|
8055
|
+
width: '100%',
|
|
8056
|
+
marginBottom: '-4px',
|
|
8057
|
+
minHeight: '250px',
|
|
8058
|
+
background: '#F4F9FD',
|
|
8059
|
+
display: 'flex',
|
|
8060
|
+
alignItems: 'center',
|
|
8061
|
+
justifyContent: 'center',
|
|
8062
|
+
fontStyle: 'italic'
|
|
8063
|
+
}
|
|
8064
|
+
}, "Cover Image")))) : null, body && body?.isActive ? /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", null, /*#__PURE__*/React.createElement("table", {
|
|
8065
|
+
style: {
|
|
8066
|
+
textAlign: 'center',
|
|
8067
|
+
width: '100%',
|
|
8068
|
+
backgroundColor: '#ffffff'
|
|
8069
|
+
}
|
|
8070
|
+
}, /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", null, /*#__PURE__*/React.createElement("p", {
|
|
8071
|
+
style: {
|
|
8072
|
+
// fontFamily: 'Roboto',
|
|
8073
|
+
fontStyle: 'normal',
|
|
8074
|
+
fontWeight: '700',
|
|
8075
|
+
fontSize: '24.2487px',
|
|
8076
|
+
lineHeight: '29px',
|
|
8077
|
+
textAlign: 'center',
|
|
8078
|
+
color: '#00ade7',
|
|
8079
|
+
marginTop: '24px'
|
|
8080
|
+
}
|
|
8081
|
+
}, body?.components[0]?.metadata?.text), /*#__PURE__*/React.createElement("p", {
|
|
8082
|
+
style: {
|
|
8083
|
+
// fontFamily: 'Roboto',
|
|
8084
|
+
fontStyle: 'normal',
|
|
8085
|
+
fontWeight: '500',
|
|
8086
|
+
fontSize: '18.1865px',
|
|
8087
|
+
lineHeight: '22px',
|
|
8088
|
+
textAlign: 'center',
|
|
8089
|
+
color: '#0a1629',
|
|
8090
|
+
marginTop: '8px',
|
|
8091
|
+
marginBottom: '15px'
|
|
8092
|
+
}
|
|
8093
|
+
}, body?.components[1]?.metadata?.text), /*#__PURE__*/React.createElement("p", {
|
|
8094
|
+
style: {
|
|
8095
|
+
maxWidth: '435px',
|
|
8096
|
+
margin: 'auto',
|
|
8097
|
+
// fontFamily: 'Roboto',
|
|
8098
|
+
fontStyle: 'normal',
|
|
8099
|
+
fontWeight: '400',
|
|
8100
|
+
fontSize: '16.1658px',
|
|
8101
|
+
lineHeight: '22px',
|
|
8102
|
+
color: '#3c4852',
|
|
8103
|
+
textAlign: 'left'
|
|
8104
|
+
},
|
|
8105
|
+
dangerouslySetInnerHTML: {
|
|
8106
|
+
__html: body?.components[2]?.metadata?.text
|
|
8107
|
+
},
|
|
8108
|
+
className: classes.email_description_para
|
|
8109
|
+
})))))) : null, landing?.isActive ? /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", null, /*#__PURE__*/React.createElement("table", {
|
|
8110
|
+
style: {
|
|
8111
|
+
width: '100%',
|
|
8112
|
+
padding: '12px'
|
|
8113
|
+
}
|
|
8114
|
+
}, /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", null, /*#__PURE__*/React.createElement("table", {
|
|
8115
|
+
style: {
|
|
8116
|
+
width: '100%',
|
|
8117
|
+
background: '#f4f9fd',
|
|
8118
|
+
borderRadius: '16px',
|
|
8119
|
+
padding: '32px',
|
|
8120
|
+
textAlign: 'center'
|
|
8121
|
+
}
|
|
8122
|
+
}, /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", null, landing?.components[0]?.metadata?.image?.length ? /*#__PURE__*/React.createElement("img", {
|
|
8123
|
+
src: landing?.components[0]?.metadata?.image,
|
|
8124
|
+
alt: "",
|
|
8125
|
+
style: {
|
|
8126
|
+
width: '100%'
|
|
8127
|
+
}
|
|
8128
|
+
}) : /*#__PURE__*/React.createElement("div", {
|
|
8129
|
+
style: {
|
|
8130
|
+
background: '#D9D9D9F0',
|
|
8131
|
+
width: '100%',
|
|
8132
|
+
minHeight: '250px',
|
|
8133
|
+
display: 'flex',
|
|
8134
|
+
alignItems: 'center',
|
|
8135
|
+
justifyContent: 'center',
|
|
8136
|
+
fontStyle: 'italic'
|
|
8137
|
+
}
|
|
8138
|
+
}, "Thumbnail Image"), /*#__PURE__*/React.createElement("p", {
|
|
8139
|
+
style: {
|
|
8140
|
+
// fontFamily: 'Roboto',
|
|
8141
|
+
fontStyle: 'normal',
|
|
8142
|
+
fontWeight: '500',
|
|
8143
|
+
fontSize: '18.1865px',
|
|
8144
|
+
lineHeight: '22px',
|
|
8145
|
+
color: '#0a1629',
|
|
8146
|
+
marginTop: '16px',
|
|
8147
|
+
marginBottom: '16px',
|
|
8148
|
+
textAlign: 'left'
|
|
8149
|
+
}
|
|
8150
|
+
}, landing?.components[1]?.metadata?.text), /*#__PURE__*/React.createElement("a", {
|
|
8151
|
+
href: landing?.components[3]?.metadata?.text,
|
|
8152
|
+
target: "_blank",
|
|
8153
|
+
style: {
|
|
8154
|
+
textDecoration: 'none'
|
|
8155
|
+
}
|
|
8156
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
8157
|
+
style: {
|
|
8158
|
+
background: '#009ae0',
|
|
8159
|
+
borderRadius: '7.18333px',
|
|
8160
|
+
color: 'white',
|
|
8161
|
+
textDecoration: 'none',
|
|
8162
|
+
padding: '12px 0px',
|
|
8163
|
+
// fontFamily: 'Roboto',
|
|
8164
|
+
fontStyle: 'normal',
|
|
8165
|
+
fontWeight: '600',
|
|
8166
|
+
fontSize: '20.55px',
|
|
8167
|
+
lineHeight: '32px',
|
|
8168
|
+
textTransform: 'uppercase',
|
|
8169
|
+
color: '#fafafa'
|
|
8170
|
+
}
|
|
8171
|
+
}, landing?.components[2]?.metadata?.text)))))))))) : null, footer?.isActive ? /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", null, /*#__PURE__*/React.createElement("table", {
|
|
8172
|
+
style: {
|
|
8173
|
+
width: '100%',
|
|
8174
|
+
background: '#e3f0ff',
|
|
8175
|
+
textAlign: 'center'
|
|
8176
|
+
}
|
|
8177
|
+
}, /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", null, /*#__PURE__*/React.createElement("p", {
|
|
8178
|
+
style: {
|
|
8179
|
+
// fontFamily: 'Roboto',
|
|
8180
|
+
fontStyle: 'normal',
|
|
8181
|
+
fontWeight: '700',
|
|
8182
|
+
fontSize: '18px',
|
|
8183
|
+
lineHeight: '29px',
|
|
8184
|
+
textAlign: 'center',
|
|
8185
|
+
color: '#0a1629',
|
|
8186
|
+
marginTop: '32px'
|
|
8187
|
+
}
|
|
8188
|
+
}, "Connect with us on:"), /*#__PURE__*/React.createElement("table", {
|
|
8189
|
+
style: {
|
|
8190
|
+
width: '100%',
|
|
8191
|
+
marginTop: '8px',
|
|
8192
|
+
marginBottom: '16px'
|
|
8193
|
+
}
|
|
8194
|
+
}, /*#__PURE__*/React.createElement("tbody", null, /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("a", {
|
|
8195
|
+
href: footer?.components[0]?.metadata?.text,
|
|
8196
|
+
target: "_blank",
|
|
8197
|
+
style: {
|
|
8198
|
+
textDecoration: 'none'
|
|
8199
|
+
}
|
|
8200
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
8201
|
+
src: footer?.components[0]?.metadata?.iconUrl,
|
|
8202
|
+
alt: "",
|
|
8203
|
+
style: {
|
|
8204
|
+
width: '36px',
|
|
8205
|
+
height: '36px'
|
|
8206
|
+
}
|
|
8207
|
+
})), /*#__PURE__*/React.createElement("a", {
|
|
8208
|
+
href: footer?.components[1]?.metadata?.text,
|
|
8209
|
+
target: "_blank",
|
|
8210
|
+
style: {
|
|
8211
|
+
textDecoration: 'none'
|
|
8212
|
+
}
|
|
8213
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
8214
|
+
src: footer?.components[1]?.metadata?.iconUrl,
|
|
8215
|
+
alt: "",
|
|
8216
|
+
style: {
|
|
8217
|
+
width: '36px',
|
|
8218
|
+
height: '36px',
|
|
8219
|
+
margin: '0px 12px'
|
|
8220
|
+
}
|
|
8221
|
+
})), /*#__PURE__*/React.createElement("a", {
|
|
8222
|
+
href: footer?.components[2]?.metadata?.text,
|
|
8223
|
+
target: "_blank",
|
|
8224
|
+
style: {
|
|
8225
|
+
textDecoration: 'none'
|
|
8226
|
+
}
|
|
8227
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
8228
|
+
src: footer?.components[2]?.metadata?.iconUrl,
|
|
8229
|
+
alt: "",
|
|
8230
|
+
style: {
|
|
8231
|
+
width: '36px',
|
|
8232
|
+
height: '36px'
|
|
8233
|
+
}
|
|
8234
|
+
})), /*#__PURE__*/React.createElement("a", {
|
|
8235
|
+
href: footer?.components[3]?.metadata?.text,
|
|
8236
|
+
target: "_blank",
|
|
8237
|
+
style: {
|
|
8238
|
+
textDecoration: 'none'
|
|
8239
|
+
}
|
|
8240
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
8241
|
+
src: footer?.components[3]?.metadata?.iconUrl,
|
|
8242
|
+
alt: "",
|
|
8243
|
+
style: {
|
|
8244
|
+
width: '36px',
|
|
8245
|
+
height: '36px',
|
|
8246
|
+
margin: '0px 12px'
|
|
8247
|
+
}
|
|
8248
|
+
})), /*#__PURE__*/React.createElement("a", {
|
|
8249
|
+
href: footer?.components[4]?.metadata?.text,
|
|
8250
|
+
target: "_blank",
|
|
8251
|
+
style: {
|
|
8252
|
+
textDecoration: 'none'
|
|
8253
|
+
}
|
|
8254
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
8255
|
+
src: footer?.components[4]?.metadata?.iconUrl,
|
|
8256
|
+
alt: "",
|
|
8257
|
+
style: {
|
|
8258
|
+
width: '36px',
|
|
8259
|
+
height: '36px'
|
|
8260
|
+
}
|
|
8261
|
+
})), /*#__PURE__*/React.createElement("table", {
|
|
8262
|
+
style: {
|
|
8263
|
+
width: '100%',
|
|
8264
|
+
marginTop: '13px'
|
|
8265
|
+
}
|
|
8266
|
+
}, /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", null, /*#__PURE__*/React.createElement("p", {
|
|
8267
|
+
style: {
|
|
8268
|
+
// fontFamily: 'Roboto',
|
|
8269
|
+
fontStyle: 'normal',
|
|
8270
|
+
fontWeight: '400',
|
|
8271
|
+
fontSize: '14.1451px',
|
|
8272
|
+
lineHeight: '21px',
|
|
8273
|
+
textAlign: 'center',
|
|
8274
|
+
color: '#7d8592'
|
|
8275
|
+
}
|
|
8276
|
+
}, "For any concerns, mail us at", footer?.components[5]?.metaData?.emailId), /*#__PURE__*/React.createElement("p", {
|
|
8277
|
+
style: {
|
|
8278
|
+
// fontFamily: 'Roboto',
|
|
8279
|
+
fontStyle: 'normal',
|
|
8280
|
+
fontWeight: '400',
|
|
8281
|
+
fontSize: '14.1451px',
|
|
8282
|
+
lineHeight: '24px',
|
|
8283
|
+
textAlign: 'center',
|
|
8284
|
+
color: '#7d8592'
|
|
8285
|
+
}
|
|
8286
|
+
}, "Copyright \xA9 2022 | vaibhavphotography.com"), /*#__PURE__*/React.createElement("p", {
|
|
8287
|
+
style: {
|
|
8288
|
+
// fontFamily: 'Roboto',
|
|
8289
|
+
fontStyle: 'normal',
|
|
8290
|
+
fontWeight: '400',
|
|
8291
|
+
fontSize: '14.1451px',
|
|
8292
|
+
lineHeight: '24px',
|
|
8293
|
+
textAlign: 'center',
|
|
8294
|
+
color: '#7d8592',
|
|
8295
|
+
marginBottom: '22px'
|
|
8296
|
+
}
|
|
8297
|
+
}, "All rights reserved.")))))))))))))) : null))));
|
|
8298
|
+
}
|
|
8299
|
+
|
|
8300
|
+
function EmailDripMarket({
|
|
8301
|
+
sectionData,
|
|
8302
|
+
extraProps = {}
|
|
8303
|
+
}) {
|
|
8304
|
+
// const classes = useSectionStyles({ containerWidth });
|
|
8305
|
+
const isInitialMount = useRef(true); // useEffect(() => {
|
|
8306
|
+
// convertToHtml(sectionData)
|
|
8307
|
+
// }, [sectionData])
|
|
8308
|
+
|
|
8309
|
+
const convertToHtml = sectionData => {
|
|
8310
|
+
const html = ReactDOMServer.renderToStaticMarkup( /*#__PURE__*/React.createElement(Section, {
|
|
8311
|
+
nodeData: sectionData
|
|
8312
|
+
}));
|
|
8313
|
+
return html;
|
|
8314
|
+
};
|
|
8315
|
+
|
|
8316
|
+
useEffect(() => {
|
|
8317
|
+
if (isInitialMount.current) {
|
|
8318
|
+
isInitialMount.current = false;
|
|
8319
|
+
} else {
|
|
8320
|
+
extraProps?.callbackHtml(convertToHtml(sectionData));
|
|
8321
|
+
}
|
|
8322
|
+
}, [extraProps?.convertedHtml]); // const mockData = sectionData?.sections[0];
|
|
8323
|
+
|
|
8324
|
+
const emailRef = useRef(null);
|
|
8325
|
+
console.log('skdjnkdln', extraProps);
|
|
8326
|
+
return /*#__PURE__*/React.createElement("section", null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Section, {
|
|
8327
|
+
sectionRef: emailRef,
|
|
8328
|
+
nodeData: sectionData
|
|
8329
|
+
})));
|
|
8330
|
+
}
|
|
8331
|
+
|
|
8332
|
+
var index = /*#__PURE__*/Object.freeze({
|
|
8333
|
+
__proto__: null,
|
|
8334
|
+
'default': EmailDripMarket
|
|
8335
|
+
});
|
|
8336
|
+
|
|
7927
8337
|
const TYPE_TO_COMPONENT_MAP = {
|
|
7928
8338
|
BANNER_CAROUSEL_RIGHT: BannerCarouselRight,
|
|
7929
8339
|
GRID_CARD: List,
|
|
@@ -7945,7 +8355,8 @@ const TYPE_TO_COMPONENT_MAP = {
|
|
|
7945
8355
|
WEBINAR_LANDING_PAGE: CoursePromotionPage$1,
|
|
7946
8356
|
COURSE_LANDING_PAGE: CoursePromotionPage,
|
|
7947
8357
|
FORM_LANDING_PAGE: FormPage,
|
|
7948
|
-
TILES_SECTION: Tiles
|
|
8358
|
+
TILES_SECTION: Tiles,
|
|
8359
|
+
EMAIL_DRIP_MARKET: EmailDripMarket
|
|
7949
8360
|
};
|
|
7950
8361
|
|
|
7951
8362
|
const getCompToRender = type => TYPE_TO_COMPONENT_MAP[type] || (() => null);
|
|
@@ -7954,6 +8365,7 @@ const MemoisedSection = /*#__PURE__*/memo(({
|
|
|
7954
8365
|
sectionData,
|
|
7955
8366
|
extraProps
|
|
7956
8367
|
}) => {
|
|
8368
|
+
console.log('templatesectiondata', sectionData);
|
|
7957
8369
|
const SectionComp = getCompToRender(sectionData.type);
|
|
7958
8370
|
return /*#__PURE__*/React.createElement(SectionComp, {
|
|
7959
8371
|
sectionData: sectionData,
|