diy-template-components 0.1.40 → 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.js
CHANGED
|
@@ -20,6 +20,7 @@ var Slider = require('react-slick');
|
|
|
20
20
|
var axios = require('axios');
|
|
21
21
|
var moment = require('moment');
|
|
22
22
|
var Countdown = require('react-countdown');
|
|
23
|
+
var ReactDOMServer = require('react-dom/server');
|
|
23
24
|
var reactJss = require('react-jss');
|
|
24
25
|
|
|
25
26
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -29,6 +30,7 @@ var Slider__default = /*#__PURE__*/_interopDefaultLegacy(Slider);
|
|
|
29
30
|
var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
|
|
30
31
|
var moment__default = /*#__PURE__*/_interopDefaultLegacy(moment);
|
|
31
32
|
var Countdown__default = /*#__PURE__*/_interopDefaultLegacy(Countdown);
|
|
33
|
+
var ReactDOMServer__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOMServer);
|
|
32
34
|
|
|
33
35
|
function _extends() {
|
|
34
36
|
_extends = Object.assign || function (target) {
|
|
@@ -1847,27 +1849,28 @@ function ArimaMadurai() {
|
|
|
1847
1849
|
}
|
|
1848
1850
|
|
|
1849
1851
|
const TYPE_TO_COMPONENT_MAP$1 = {
|
|
1850
|
-
BANNER_CAROUSEL_RIGHT: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$
|
|
1851
|
-
GRID_CARD: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$
|
|
1852
|
-
BANNER_CAROUSEL_CENTER: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$
|
|
1853
|
-
BANNER_CAROUSEL_LEFT: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$
|
|
1854
|
-
FORM_SUBSCRIBE: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$
|
|
1855
|
-
TEXT_TESTIMONIAL: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$
|
|
1856
|
-
VIDEO_TESTIMONIAL: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$
|
|
1857
|
-
VIDEO: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$
|
|
1858
|
-
INFO: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$
|
|
1859
|
-
TEXT: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$
|
|
1860
|
-
IMAGE_GALLERY: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$
|
|
1861
|
-
FAQ_LISTING: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$
|
|
1862
|
-
COURSE_CAROUSEL: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$
|
|
1863
|
-
TEAM_CARD: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$
|
|
1864
|
-
TEXT_GRID: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$
|
|
1865
|
-
CONTACT: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$
|
|
1866
|
-
FORM_ENQUIRY: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$
|
|
1867
|
-
WEBINAR_LANDING_PAGE: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$
|
|
1868
|
-
COURSE_LANDING_PAGE: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$
|
|
1869
|
-
FORM_LANDING_PAGE: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$
|
|
1870
|
-
TILES_SECTION: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index; }))
|
|
1852
|
+
BANNER_CAROUSEL_RIGHT: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$l; })),
|
|
1853
|
+
GRID_CARD: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$k; })),
|
|
1854
|
+
BANNER_CAROUSEL_CENTER: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$j; })),
|
|
1855
|
+
BANNER_CAROUSEL_LEFT: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$i; })),
|
|
1856
|
+
FORM_SUBSCRIBE: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$h; })),
|
|
1857
|
+
TEXT_TESTIMONIAL: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$g; })),
|
|
1858
|
+
VIDEO_TESTIMONIAL: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$f; })),
|
|
1859
|
+
VIDEO: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$e; })),
|
|
1860
|
+
INFO: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$d; })),
|
|
1861
|
+
TEXT: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$c; })),
|
|
1862
|
+
IMAGE_GALLERY: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$b; })),
|
|
1863
|
+
FAQ_LISTING: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$a; })),
|
|
1864
|
+
COURSE_CAROUSEL: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$8; })),
|
|
1865
|
+
TEAM_CARD: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$7; })),
|
|
1866
|
+
TEXT_GRID: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$9; })),
|
|
1867
|
+
CONTACT: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$6; })),
|
|
1868
|
+
FORM_ENQUIRY: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$5; })),
|
|
1869
|
+
WEBINAR_LANDING_PAGE: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$4; })),
|
|
1870
|
+
COURSE_LANDING_PAGE: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$3; })),
|
|
1871
|
+
FORM_LANDING_PAGE: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$2; })),
|
|
1872
|
+
TILES_SECTION: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$1; })),
|
|
1873
|
+
EMAIL_DRIP_MARKET: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index; }))
|
|
1871
1874
|
};
|
|
1872
1875
|
|
|
1873
1876
|
const getCompToRender$1 = type => TYPE_TO_COMPONENT_MAP$1[type] || (() => null);
|
|
@@ -1876,6 +1879,7 @@ const MemoisedSection$1 = /*#__PURE__*/React.memo(({
|
|
|
1876
1879
|
sectionData,
|
|
1877
1880
|
extraProps
|
|
1878
1881
|
}) => {
|
|
1882
|
+
console.log('templatesectiondata', sectionData);
|
|
1879
1883
|
const SectionComp = getCompToRender$1(sectionData.type);
|
|
1880
1884
|
return /*#__PURE__*/React__default["default"].createElement(SectionComp, {
|
|
1881
1885
|
sectionData: sectionData,
|
|
@@ -2324,7 +2328,7 @@ function Carousel({
|
|
|
2324
2328
|
})));
|
|
2325
2329
|
}
|
|
2326
2330
|
|
|
2327
|
-
function Section$
|
|
2331
|
+
function Section$4({
|
|
2328
2332
|
nodeData
|
|
2329
2333
|
}) {
|
|
2330
2334
|
const classes = useSectionStyles$8();
|
|
@@ -2397,7 +2401,7 @@ function BannerCarouselRight({
|
|
|
2397
2401
|
className: classes.bannerCarouselRightSection
|
|
2398
2402
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2399
2403
|
className: classes.sectionContainer
|
|
2400
|
-
}, /*#__PURE__*/React__default["default"].createElement(Wrapper, wrapperProps, bannerCarousel.components.map((node, idx) => /*#__PURE__*/React__default["default"].createElement(Section$
|
|
2404
|
+
}, /*#__PURE__*/React__default["default"].createElement(Wrapper, wrapperProps, bannerCarousel.components.map((node, idx) => /*#__PURE__*/React__default["default"].createElement(Section$4, {
|
|
2401
2405
|
nodeData: node,
|
|
2402
2406
|
key: idx
|
|
2403
2407
|
/* or some other unique property */
|
|
@@ -2405,7 +2409,7 @@ function BannerCarouselRight({
|
|
|
2405
2409
|
})))));
|
|
2406
2410
|
}
|
|
2407
2411
|
|
|
2408
|
-
var index$
|
|
2412
|
+
var index$l = /*#__PURE__*/Object.freeze({
|
|
2409
2413
|
__proto__: null,
|
|
2410
2414
|
'default': BannerCarouselRight
|
|
2411
2415
|
});
|
|
@@ -2657,7 +2661,7 @@ function List({
|
|
|
2657
2661
|
}))));
|
|
2658
2662
|
}
|
|
2659
2663
|
|
|
2660
|
-
var index$
|
|
2664
|
+
var index$k = /*#__PURE__*/Object.freeze({
|
|
2661
2665
|
__proto__: null,
|
|
2662
2666
|
'default': List
|
|
2663
2667
|
});
|
|
@@ -2755,7 +2759,7 @@ const useSectionStyles$6 = createUseStyles(theme => ({
|
|
|
2755
2759
|
}
|
|
2756
2760
|
}));
|
|
2757
2761
|
|
|
2758
|
-
const Section$
|
|
2762
|
+
const Section$3 = ({
|
|
2759
2763
|
nodeData
|
|
2760
2764
|
}) => {
|
|
2761
2765
|
const {
|
|
@@ -2818,7 +2822,7 @@ function BannerCarouselCenter({
|
|
|
2818
2822
|
} : {};
|
|
2819
2823
|
return /*#__PURE__*/React__default["default"].createElement("section", {
|
|
2820
2824
|
className: classes.bannerCarouselCenterSection
|
|
2821
|
-
}, /*#__PURE__*/React__default["default"].createElement(Wrapper, wrapperProps, bannerCarousel.components.map((node, idx) => /*#__PURE__*/React__default["default"].createElement(Section$
|
|
2825
|
+
}, /*#__PURE__*/React__default["default"].createElement(Wrapper, wrapperProps, bannerCarousel.components.map((node, idx) => /*#__PURE__*/React__default["default"].createElement(Section$3, {
|
|
2822
2826
|
nodeData: node,
|
|
2823
2827
|
key: idx
|
|
2824
2828
|
/* or some other unique property */
|
|
@@ -2826,7 +2830,7 @@ function BannerCarouselCenter({
|
|
|
2826
2830
|
}))));
|
|
2827
2831
|
}
|
|
2828
2832
|
|
|
2829
|
-
var index$
|
|
2833
|
+
var index$j = /*#__PURE__*/Object.freeze({
|
|
2830
2834
|
__proto__: null,
|
|
2831
2835
|
'default': BannerCarouselCenter
|
|
2832
2836
|
});
|
|
@@ -2938,7 +2942,7 @@ const useSectionStyles$5 = createUseStyles(theme => {
|
|
|
2938
2942
|
};
|
|
2939
2943
|
});
|
|
2940
2944
|
|
|
2941
|
-
function Section$
|
|
2945
|
+
function Section$2({
|
|
2942
2946
|
nodeData
|
|
2943
2947
|
}) {
|
|
2944
2948
|
const classes = useSectionStyles$5();
|
|
@@ -3009,7 +3013,7 @@ function BannerCarouselLeft({
|
|
|
3009
3013
|
className: classes.section
|
|
3010
3014
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3011
3015
|
className: classes.sectionContainer
|
|
3012
|
-
}, /*#__PURE__*/React__default["default"].createElement(Wrapper, null, bannerCarousel.components.map((node, idx) => /*#__PURE__*/React__default["default"].createElement(Section$
|
|
3016
|
+
}, /*#__PURE__*/React__default["default"].createElement(Wrapper, null, bannerCarousel.components.map((node, idx) => /*#__PURE__*/React__default["default"].createElement(Section$2, {
|
|
3013
3017
|
nodeData: node,
|
|
3014
3018
|
key: idx
|
|
3015
3019
|
/* or some other unique property */
|
|
@@ -3017,7 +3021,7 @@ function BannerCarouselLeft({
|
|
|
3017
3021
|
})))));
|
|
3018
3022
|
}
|
|
3019
3023
|
|
|
3020
|
-
var index$
|
|
3024
|
+
var index$i = /*#__PURE__*/Object.freeze({
|
|
3021
3025
|
__proto__: null,
|
|
3022
3026
|
'default': BannerCarouselLeft
|
|
3023
3027
|
});
|
|
@@ -3410,7 +3414,7 @@ function SubscribeToNewsletter({
|
|
|
3410
3414
|
})))))));
|
|
3411
3415
|
}
|
|
3412
3416
|
|
|
3413
|
-
var index$
|
|
3417
|
+
var index$h = /*#__PURE__*/Object.freeze({
|
|
3414
3418
|
__proto__: null,
|
|
3415
3419
|
'default': SubscribeToNewsletter
|
|
3416
3420
|
});
|
|
@@ -3577,7 +3581,7 @@ function QuotesComponent() {
|
|
|
3577
3581
|
}));
|
|
3578
3582
|
}
|
|
3579
3583
|
|
|
3580
|
-
function Section({
|
|
3584
|
+
function Section$1({
|
|
3581
3585
|
nodeData
|
|
3582
3586
|
}) {
|
|
3583
3587
|
const {
|
|
@@ -3667,12 +3671,12 @@ function Testimonials({
|
|
|
3667
3671
|
const classes = useTestimonialStyles();
|
|
3668
3672
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3669
3673
|
className: classes.testimonialContainer
|
|
3670
|
-
}, /*#__PURE__*/React__default["default"].createElement(Section, {
|
|
3674
|
+
}, /*#__PURE__*/React__default["default"].createElement(Section$1, {
|
|
3671
3675
|
nodeData: sectionData.components[0]
|
|
3672
3676
|
}));
|
|
3673
3677
|
}
|
|
3674
3678
|
|
|
3675
|
-
var index$
|
|
3679
|
+
var index$g = /*#__PURE__*/Object.freeze({
|
|
3676
3680
|
__proto__: null,
|
|
3677
3681
|
'default': Testimonials
|
|
3678
3682
|
});
|
|
@@ -4051,7 +4055,7 @@ function VideoTestimonial({
|
|
|
4051
4055
|
}))))));
|
|
4052
4056
|
}
|
|
4053
4057
|
|
|
4054
|
-
var index$
|
|
4058
|
+
var index$f = /*#__PURE__*/Object.freeze({
|
|
4055
4059
|
__proto__: null,
|
|
4056
4060
|
'default': VideoTestimonial
|
|
4057
4061
|
});
|
|
@@ -4279,7 +4283,7 @@ function Video({
|
|
|
4279
4283
|
}, carouselContent))));
|
|
4280
4284
|
}
|
|
4281
4285
|
|
|
4282
|
-
var index$
|
|
4286
|
+
var index$e = /*#__PURE__*/Object.freeze({
|
|
4283
4287
|
__proto__: null,
|
|
4284
4288
|
'default': Video
|
|
4285
4289
|
});
|
|
@@ -4505,7 +4509,7 @@ function Info({
|
|
|
4505
4509
|
}, carouselContent))));
|
|
4506
4510
|
}
|
|
4507
4511
|
|
|
4508
|
-
var index$
|
|
4512
|
+
var index$d = /*#__PURE__*/Object.freeze({
|
|
4509
4513
|
__proto__: null,
|
|
4510
4514
|
'default': Info
|
|
4511
4515
|
});
|
|
@@ -4624,7 +4628,7 @@ const TextSection = ({
|
|
|
4624
4628
|
})))));
|
|
4625
4629
|
};
|
|
4626
4630
|
|
|
4627
|
-
var index$
|
|
4631
|
+
var index$c = /*#__PURE__*/Object.freeze({
|
|
4628
4632
|
__proto__: null,
|
|
4629
4633
|
'default': TextSection
|
|
4630
4634
|
});
|
|
@@ -4781,7 +4785,7 @@ function PhotoGallery({
|
|
|
4781
4785
|
}, carouselContent))));
|
|
4782
4786
|
}
|
|
4783
4787
|
|
|
4784
|
-
var index$
|
|
4788
|
+
var index$b = /*#__PURE__*/Object.freeze({
|
|
4785
4789
|
__proto__: null,
|
|
4786
4790
|
'default': PhotoGallery
|
|
4787
4791
|
});
|
|
@@ -4959,7 +4963,7 @@ const Accordion = ({
|
|
|
4959
4963
|
})));
|
|
4960
4964
|
};
|
|
4961
4965
|
|
|
4962
|
-
var index$
|
|
4966
|
+
var index$a = /*#__PURE__*/Object.freeze({
|
|
4963
4967
|
__proto__: null,
|
|
4964
4968
|
'default': FAQListing
|
|
4965
4969
|
});
|
|
@@ -5124,7 +5128,7 @@ const TextGrid = ({
|
|
|
5124
5128
|
}, carouselContent))));
|
|
5125
5129
|
};
|
|
5126
5130
|
|
|
5127
|
-
var index$
|
|
5131
|
+
var index$9 = /*#__PURE__*/Object.freeze({
|
|
5128
5132
|
__proto__: null,
|
|
5129
5133
|
'default': TextGrid
|
|
5130
5134
|
});
|
|
@@ -5578,7 +5582,7 @@ function SimpleCardsContainer({
|
|
|
5578
5582
|
}, children);
|
|
5579
5583
|
}
|
|
5580
5584
|
|
|
5581
|
-
var index$
|
|
5585
|
+
var index$8 = /*#__PURE__*/Object.freeze({
|
|
5582
5586
|
__proto__: null,
|
|
5583
5587
|
'default': courses
|
|
5584
5588
|
});
|
|
@@ -5801,7 +5805,7 @@ function TeamCard({
|
|
|
5801
5805
|
}, " ", carouselContent)));
|
|
5802
5806
|
}
|
|
5803
5807
|
|
|
5804
|
-
var index$
|
|
5808
|
+
var index$7 = /*#__PURE__*/Object.freeze({
|
|
5805
5809
|
__proto__: null,
|
|
5806
5810
|
'default': TeamCard
|
|
5807
5811
|
});
|
|
@@ -6175,7 +6179,7 @@ function FormEnquiry({
|
|
|
6175
6179
|
}))))));
|
|
6176
6180
|
}
|
|
6177
6181
|
|
|
6178
|
-
var index$
|
|
6182
|
+
var index$6 = /*#__PURE__*/Object.freeze({
|
|
6179
6183
|
__proto__: null,
|
|
6180
6184
|
'default': FormEnquiry
|
|
6181
6185
|
});
|
|
@@ -6549,7 +6553,7 @@ function Contact({
|
|
|
6549
6553
|
}))))));
|
|
6550
6554
|
}
|
|
6551
6555
|
|
|
6552
|
-
var index$
|
|
6556
|
+
var index$5 = /*#__PURE__*/Object.freeze({
|
|
6553
6557
|
__proto__: null,
|
|
6554
6558
|
'default': Contact
|
|
6555
6559
|
});
|
|
@@ -6986,7 +6990,7 @@ function CoursePromotionPage$1({
|
|
|
6986
6990
|
}))));
|
|
6987
6991
|
}
|
|
6988
6992
|
|
|
6989
|
-
var index$
|
|
6993
|
+
var index$4 = /*#__PURE__*/Object.freeze({
|
|
6990
6994
|
__proto__: null,
|
|
6991
6995
|
'default': CoursePromotionPage$1
|
|
6992
6996
|
});
|
|
@@ -7456,7 +7460,7 @@ function CoursePromotionPage({
|
|
|
7456
7460
|
}))));
|
|
7457
7461
|
}
|
|
7458
7462
|
|
|
7459
|
-
var index$
|
|
7463
|
+
var index$3 = /*#__PURE__*/Object.freeze({
|
|
7460
7464
|
__proto__: null,
|
|
7461
7465
|
'default': CoursePromotionPage
|
|
7462
7466
|
});
|
|
@@ -7800,7 +7804,7 @@ const FormPage = ({
|
|
|
7800
7804
|
})))));
|
|
7801
7805
|
};
|
|
7802
7806
|
|
|
7803
|
-
var index$
|
|
7807
|
+
var index$2 = /*#__PURE__*/Object.freeze({
|
|
7804
7808
|
__proto__: null,
|
|
7805
7809
|
'default': FormPage
|
|
7806
7810
|
});
|
|
@@ -7933,11 +7937,418 @@ function Tiles({
|
|
|
7933
7937
|
}, TileDiv)));
|
|
7934
7938
|
}
|
|
7935
7939
|
|
|
7936
|
-
var index = /*#__PURE__*/Object.freeze({
|
|
7940
|
+
var index$1 = /*#__PURE__*/Object.freeze({
|
|
7937
7941
|
__proto__: null,
|
|
7938
7942
|
'default': Tiles
|
|
7939
7943
|
});
|
|
7940
7944
|
|
|
7945
|
+
const useEmailStyles = createUseStyles(theme => ({
|
|
7946
|
+
wrapper: {
|
|
7947
|
+
fontFamily: theme?.typography?.fontFamily,
|
|
7948
|
+
width: '100%',
|
|
7949
|
+
tableLayout: 'fixed',
|
|
7950
|
+
backgroundColor: '#cccccc'
|
|
7951
|
+
},
|
|
7952
|
+
email_description_para: {
|
|
7953
|
+
'& p': {
|
|
7954
|
+
margin: '0 0 0 !important'
|
|
7955
|
+
}
|
|
7956
|
+
},
|
|
7957
|
+
main: {
|
|
7958
|
+
backgroundColor: '#ffffff',
|
|
7959
|
+
width: '100%',
|
|
7960
|
+
maxWidth: '600px',
|
|
7961
|
+
borderSpacing: '0'
|
|
7962
|
+
},
|
|
7963
|
+
logoimg: {
|
|
7964
|
+
width: '28px',
|
|
7965
|
+
height: '28px'
|
|
7966
|
+
/* margin: 18px 0px; */
|
|
7967
|
+
|
|
7968
|
+
},
|
|
7969
|
+
'p-young-guru-title': {
|
|
7970
|
+
fontFamily: theme?.typography?.fontFamily,
|
|
7971
|
+
fontStyle: 'normal',
|
|
7972
|
+
fontWeight: '500',
|
|
7973
|
+
fontSize: '24px',
|
|
7974
|
+
lineHeight: '31px',
|
|
7975
|
+
color: '#ffffff',
|
|
7976
|
+
marginTop: '18px'
|
|
7977
|
+
},
|
|
7978
|
+
'p-young-guru-sub-title': {
|
|
7979
|
+
fontFamily: theme?.typography?.fontFamily,
|
|
7980
|
+
fontStyle: 'normal',
|
|
7981
|
+
fontWeight: '400',
|
|
7982
|
+
fontSize: '16px',
|
|
7983
|
+
lineHeight: '21px',
|
|
7984
|
+
color: '#dbd9d9',
|
|
7985
|
+
marginBottom: '18px'
|
|
7986
|
+
},
|
|
7987
|
+
p: {
|
|
7988
|
+
padding: '0',
|
|
7989
|
+
margin: '0 !important'
|
|
7990
|
+
},
|
|
7991
|
+
'two-columns': {
|
|
7992
|
+
fontSize: '0',
|
|
7993
|
+
textAlign: 'center'
|
|
7994
|
+
/* padding:35px 0 40px */
|
|
7995
|
+
|
|
7996
|
+
},
|
|
7997
|
+
'two-columns .column': {
|
|
7998
|
+
width: '100%',
|
|
7999
|
+
maxWidth: '275px',
|
|
8000
|
+
display: 'inline-block',
|
|
8001
|
+
verticalAlign: 'top'
|
|
8002
|
+
},
|
|
8003
|
+
'title-lead': {
|
|
8004
|
+
fontFamily: theme?.typography?.fontFamily,
|
|
8005
|
+
fontStyle: 'normal',
|
|
8006
|
+
fontWeight: '500',
|
|
8007
|
+
fontSize: '20px',
|
|
8008
|
+
lineHeight: '26px',
|
|
8009
|
+
color: '#030a21',
|
|
8010
|
+
marginBottom: '5px',
|
|
8011
|
+
textAlign: 'left'
|
|
8012
|
+
} // @media screen and (max-width: 600px) {
|
|
8013
|
+
// }
|
|
8014
|
+
|
|
8015
|
+
}));
|
|
8016
|
+
|
|
8017
|
+
function Section({
|
|
8018
|
+
nodeData,
|
|
8019
|
+
emailRef
|
|
8020
|
+
}) {
|
|
8021
|
+
console.log('nodedataashu', nodeData);
|
|
8022
|
+
const header = nodeData?.components[0];
|
|
8023
|
+
const body = nodeData?.components[1];
|
|
8024
|
+
const landing = nodeData?.components[2];
|
|
8025
|
+
const footer = nodeData?.components[3];
|
|
8026
|
+
const classes = useEmailStyles();
|
|
8027
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("center", {
|
|
8028
|
+
className: classes.wrapper,
|
|
8029
|
+
ref: emailRef
|
|
8030
|
+
}, /*#__PURE__*/React__default["default"].createElement("table", {
|
|
8031
|
+
className: classes.main,
|
|
8032
|
+
style: {
|
|
8033
|
+
width: '100%'
|
|
8034
|
+
}
|
|
8035
|
+
}, /*#__PURE__*/React__default["default"].createElement("tbody", null, header?.isActive ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("tr", null, /*#__PURE__*/React__default["default"].createElement("td", null, /*#__PURE__*/React__default["default"].createElement("table", {
|
|
8036
|
+
style: {
|
|
8037
|
+
textAlign: 'center',
|
|
8038
|
+
background: '#ffffff',
|
|
8039
|
+
paddingTop: '16px',
|
|
8040
|
+
width: '100%'
|
|
8041
|
+
}
|
|
8042
|
+
}, /*#__PURE__*/React__default["default"].createElement("tr", null, /*#__PURE__*/React__default["default"].createElement("td", {
|
|
8043
|
+
style: {
|
|
8044
|
+
display: 'inline-block'
|
|
8045
|
+
}
|
|
8046
|
+
}, header?.components[0]?.metadata?.image?.length ? /*#__PURE__*/React__default["default"].createElement("img", {
|
|
8047
|
+
src: header?.components[0]?.metadata?.image,
|
|
8048
|
+
alt: "",
|
|
8049
|
+
className: classes.logoimg
|
|
8050
|
+
}) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8051
|
+
style: {
|
|
8052
|
+
display: 'flex',
|
|
8053
|
+
alignItems: 'center',
|
|
8054
|
+
justifyContent: 'center',
|
|
8055
|
+
fontStyle: 'italic',
|
|
8056
|
+
minHeight: '30px'
|
|
8057
|
+
}
|
|
8058
|
+
}, "Your logo")))))), /*#__PURE__*/React__default["default"].createElement("tr", null, /*#__PURE__*/React__default["default"].createElement("td", null, header?.components[1]?.metadata?.image?.length ? /*#__PURE__*/React__default["default"].createElement("img", {
|
|
8059
|
+
src: header?.components[1]?.metadata?.image // width={600}
|
|
8060
|
+
,
|
|
8061
|
+
alt: "",
|
|
8062
|
+
style: {
|
|
8063
|
+
maxWidth: '600px',
|
|
8064
|
+
width: '100%',
|
|
8065
|
+
marginBottom: '-4px'
|
|
8066
|
+
}
|
|
8067
|
+
}) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8068
|
+
style: {
|
|
8069
|
+
maxWidth: '600px',
|
|
8070
|
+
width: '100%',
|
|
8071
|
+
marginBottom: '-4px',
|
|
8072
|
+
minHeight: '250px',
|
|
8073
|
+
background: '#F4F9FD',
|
|
8074
|
+
display: 'flex',
|
|
8075
|
+
alignItems: 'center',
|
|
8076
|
+
justifyContent: 'center',
|
|
8077
|
+
fontStyle: 'italic'
|
|
8078
|
+
}
|
|
8079
|
+
}, "Cover Image")))) : null, body && body?.isActive ? /*#__PURE__*/React__default["default"].createElement("tr", null, /*#__PURE__*/React__default["default"].createElement("td", null, /*#__PURE__*/React__default["default"].createElement("table", {
|
|
8080
|
+
style: {
|
|
8081
|
+
textAlign: 'center',
|
|
8082
|
+
width: '100%',
|
|
8083
|
+
backgroundColor: '#ffffff'
|
|
8084
|
+
}
|
|
8085
|
+
}, /*#__PURE__*/React__default["default"].createElement("tr", null, /*#__PURE__*/React__default["default"].createElement("td", null, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8086
|
+
style: {
|
|
8087
|
+
// fontFamily: 'Roboto',
|
|
8088
|
+
fontStyle: 'normal',
|
|
8089
|
+
fontWeight: '700',
|
|
8090
|
+
fontSize: '24.2487px',
|
|
8091
|
+
lineHeight: '29px',
|
|
8092
|
+
textAlign: 'center',
|
|
8093
|
+
color: '#00ade7',
|
|
8094
|
+
marginTop: '24px'
|
|
8095
|
+
}
|
|
8096
|
+
}, body?.components[0]?.metadata?.text), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8097
|
+
style: {
|
|
8098
|
+
// fontFamily: 'Roboto',
|
|
8099
|
+
fontStyle: 'normal',
|
|
8100
|
+
fontWeight: '500',
|
|
8101
|
+
fontSize: '18.1865px',
|
|
8102
|
+
lineHeight: '22px',
|
|
8103
|
+
textAlign: 'center',
|
|
8104
|
+
color: '#0a1629',
|
|
8105
|
+
marginTop: '8px',
|
|
8106
|
+
marginBottom: '15px'
|
|
8107
|
+
}
|
|
8108
|
+
}, body?.components[1]?.metadata?.text), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8109
|
+
style: {
|
|
8110
|
+
maxWidth: '435px',
|
|
8111
|
+
margin: 'auto',
|
|
8112
|
+
// fontFamily: 'Roboto',
|
|
8113
|
+
fontStyle: 'normal',
|
|
8114
|
+
fontWeight: '400',
|
|
8115
|
+
fontSize: '16.1658px',
|
|
8116
|
+
lineHeight: '22px',
|
|
8117
|
+
color: '#3c4852',
|
|
8118
|
+
textAlign: 'left'
|
|
8119
|
+
},
|
|
8120
|
+
dangerouslySetInnerHTML: {
|
|
8121
|
+
__html: body?.components[2]?.metadata?.text
|
|
8122
|
+
},
|
|
8123
|
+
className: classes.email_description_para
|
|
8124
|
+
})))))) : null, landing?.isActive ? /*#__PURE__*/React__default["default"].createElement("tr", null, /*#__PURE__*/React__default["default"].createElement("td", null, /*#__PURE__*/React__default["default"].createElement("table", {
|
|
8125
|
+
style: {
|
|
8126
|
+
width: '100%',
|
|
8127
|
+
padding: '12px'
|
|
8128
|
+
}
|
|
8129
|
+
}, /*#__PURE__*/React__default["default"].createElement("tr", null, /*#__PURE__*/React__default["default"].createElement("td", null, /*#__PURE__*/React__default["default"].createElement("table", {
|
|
8130
|
+
style: {
|
|
8131
|
+
width: '100%',
|
|
8132
|
+
background: '#f4f9fd',
|
|
8133
|
+
borderRadius: '16px',
|
|
8134
|
+
padding: '32px',
|
|
8135
|
+
textAlign: 'center'
|
|
8136
|
+
}
|
|
8137
|
+
}, /*#__PURE__*/React__default["default"].createElement("tr", null, /*#__PURE__*/React__default["default"].createElement("td", null, landing?.components[0]?.metadata?.image?.length ? /*#__PURE__*/React__default["default"].createElement("img", {
|
|
8138
|
+
src: landing?.components[0]?.metadata?.image,
|
|
8139
|
+
alt: "",
|
|
8140
|
+
style: {
|
|
8141
|
+
width: '100%'
|
|
8142
|
+
}
|
|
8143
|
+
}) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8144
|
+
style: {
|
|
8145
|
+
background: '#D9D9D9F0',
|
|
8146
|
+
width: '100%',
|
|
8147
|
+
minHeight: '250px',
|
|
8148
|
+
display: 'flex',
|
|
8149
|
+
alignItems: 'center',
|
|
8150
|
+
justifyContent: 'center',
|
|
8151
|
+
fontStyle: 'italic'
|
|
8152
|
+
}
|
|
8153
|
+
}, "Thumbnail Image"), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8154
|
+
style: {
|
|
8155
|
+
// fontFamily: 'Roboto',
|
|
8156
|
+
fontStyle: 'normal',
|
|
8157
|
+
fontWeight: '500',
|
|
8158
|
+
fontSize: '18.1865px',
|
|
8159
|
+
lineHeight: '22px',
|
|
8160
|
+
color: '#0a1629',
|
|
8161
|
+
marginTop: '16px',
|
|
8162
|
+
marginBottom: '16px',
|
|
8163
|
+
textAlign: 'left'
|
|
8164
|
+
}
|
|
8165
|
+
}, landing?.components[1]?.metadata?.text), /*#__PURE__*/React__default["default"].createElement("a", {
|
|
8166
|
+
href: landing?.components[3]?.metadata?.text,
|
|
8167
|
+
target: "_blank",
|
|
8168
|
+
style: {
|
|
8169
|
+
textDecoration: 'none'
|
|
8170
|
+
}
|
|
8171
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8172
|
+
style: {
|
|
8173
|
+
background: '#009ae0',
|
|
8174
|
+
borderRadius: '7.18333px',
|
|
8175
|
+
color: 'white',
|
|
8176
|
+
textDecoration: 'none',
|
|
8177
|
+
padding: '12px 0px',
|
|
8178
|
+
// fontFamily: 'Roboto',
|
|
8179
|
+
fontStyle: 'normal',
|
|
8180
|
+
fontWeight: '600',
|
|
8181
|
+
fontSize: '20.55px',
|
|
8182
|
+
lineHeight: '32px',
|
|
8183
|
+
textTransform: 'uppercase',
|
|
8184
|
+
color: '#fafafa'
|
|
8185
|
+
}
|
|
8186
|
+
}, landing?.components[2]?.metadata?.text)))))))))) : null, footer?.isActive ? /*#__PURE__*/React__default["default"].createElement("tr", null, /*#__PURE__*/React__default["default"].createElement("td", null, /*#__PURE__*/React__default["default"].createElement("table", {
|
|
8187
|
+
style: {
|
|
8188
|
+
width: '100%',
|
|
8189
|
+
background: '#e3f0ff',
|
|
8190
|
+
textAlign: 'center'
|
|
8191
|
+
}
|
|
8192
|
+
}, /*#__PURE__*/React__default["default"].createElement("tr", null, /*#__PURE__*/React__default["default"].createElement("td", null, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8193
|
+
style: {
|
|
8194
|
+
// fontFamily: 'Roboto',
|
|
8195
|
+
fontStyle: 'normal',
|
|
8196
|
+
fontWeight: '700',
|
|
8197
|
+
fontSize: '18px',
|
|
8198
|
+
lineHeight: '29px',
|
|
8199
|
+
textAlign: 'center',
|
|
8200
|
+
color: '#0a1629',
|
|
8201
|
+
marginTop: '32px'
|
|
8202
|
+
}
|
|
8203
|
+
}, "Connect with us on:"), /*#__PURE__*/React__default["default"].createElement("table", {
|
|
8204
|
+
style: {
|
|
8205
|
+
width: '100%',
|
|
8206
|
+
marginTop: '8px',
|
|
8207
|
+
marginBottom: '16px'
|
|
8208
|
+
}
|
|
8209
|
+
}, /*#__PURE__*/React__default["default"].createElement("tbody", null, /*#__PURE__*/React__default["default"].createElement("tr", null, /*#__PURE__*/React__default["default"].createElement("td", null, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("a", {
|
|
8210
|
+
href: footer?.components[0]?.metadata?.text,
|
|
8211
|
+
target: "_blank",
|
|
8212
|
+
style: {
|
|
8213
|
+
textDecoration: 'none'
|
|
8214
|
+
}
|
|
8215
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
8216
|
+
src: footer?.components[0]?.metadata?.iconUrl,
|
|
8217
|
+
alt: "",
|
|
8218
|
+
style: {
|
|
8219
|
+
width: '36px',
|
|
8220
|
+
height: '36px'
|
|
8221
|
+
}
|
|
8222
|
+
})), /*#__PURE__*/React__default["default"].createElement("a", {
|
|
8223
|
+
href: footer?.components[1]?.metadata?.text,
|
|
8224
|
+
target: "_blank",
|
|
8225
|
+
style: {
|
|
8226
|
+
textDecoration: 'none'
|
|
8227
|
+
}
|
|
8228
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
8229
|
+
src: footer?.components[1]?.metadata?.iconUrl,
|
|
8230
|
+
alt: "",
|
|
8231
|
+
style: {
|
|
8232
|
+
width: '36px',
|
|
8233
|
+
height: '36px',
|
|
8234
|
+
margin: '0px 12px'
|
|
8235
|
+
}
|
|
8236
|
+
})), /*#__PURE__*/React__default["default"].createElement("a", {
|
|
8237
|
+
href: footer?.components[2]?.metadata?.text,
|
|
8238
|
+
target: "_blank",
|
|
8239
|
+
style: {
|
|
8240
|
+
textDecoration: 'none'
|
|
8241
|
+
}
|
|
8242
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
8243
|
+
src: footer?.components[2]?.metadata?.iconUrl,
|
|
8244
|
+
alt: "",
|
|
8245
|
+
style: {
|
|
8246
|
+
width: '36px',
|
|
8247
|
+
height: '36px'
|
|
8248
|
+
}
|
|
8249
|
+
})), /*#__PURE__*/React__default["default"].createElement("a", {
|
|
8250
|
+
href: footer?.components[3]?.metadata?.text,
|
|
8251
|
+
target: "_blank",
|
|
8252
|
+
style: {
|
|
8253
|
+
textDecoration: 'none'
|
|
8254
|
+
}
|
|
8255
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
8256
|
+
src: footer?.components[3]?.metadata?.iconUrl,
|
|
8257
|
+
alt: "",
|
|
8258
|
+
style: {
|
|
8259
|
+
width: '36px',
|
|
8260
|
+
height: '36px',
|
|
8261
|
+
margin: '0px 12px'
|
|
8262
|
+
}
|
|
8263
|
+
})), /*#__PURE__*/React__default["default"].createElement("a", {
|
|
8264
|
+
href: footer?.components[4]?.metadata?.text,
|
|
8265
|
+
target: "_blank",
|
|
8266
|
+
style: {
|
|
8267
|
+
textDecoration: 'none'
|
|
8268
|
+
}
|
|
8269
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
8270
|
+
src: footer?.components[4]?.metadata?.iconUrl,
|
|
8271
|
+
alt: "",
|
|
8272
|
+
style: {
|
|
8273
|
+
width: '36px',
|
|
8274
|
+
height: '36px'
|
|
8275
|
+
}
|
|
8276
|
+
})), /*#__PURE__*/React__default["default"].createElement("table", {
|
|
8277
|
+
style: {
|
|
8278
|
+
width: '100%',
|
|
8279
|
+
marginTop: '13px'
|
|
8280
|
+
}
|
|
8281
|
+
}, /*#__PURE__*/React__default["default"].createElement("tr", null, /*#__PURE__*/React__default["default"].createElement("td", null, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8282
|
+
style: {
|
|
8283
|
+
// fontFamily: 'Roboto',
|
|
8284
|
+
fontStyle: 'normal',
|
|
8285
|
+
fontWeight: '400',
|
|
8286
|
+
fontSize: '14.1451px',
|
|
8287
|
+
lineHeight: '21px',
|
|
8288
|
+
textAlign: 'center',
|
|
8289
|
+
color: '#7d8592'
|
|
8290
|
+
}
|
|
8291
|
+
}, "For any concerns, mail us at", footer?.components[5]?.metaData?.emailId), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8292
|
+
style: {
|
|
8293
|
+
// fontFamily: 'Roboto',
|
|
8294
|
+
fontStyle: 'normal',
|
|
8295
|
+
fontWeight: '400',
|
|
8296
|
+
fontSize: '14.1451px',
|
|
8297
|
+
lineHeight: '24px',
|
|
8298
|
+
textAlign: 'center',
|
|
8299
|
+
color: '#7d8592'
|
|
8300
|
+
}
|
|
8301
|
+
}, "Copyright \xA9 2022 | vaibhavphotography.com"), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8302
|
+
style: {
|
|
8303
|
+
// fontFamily: 'Roboto',
|
|
8304
|
+
fontStyle: 'normal',
|
|
8305
|
+
fontWeight: '400',
|
|
8306
|
+
fontSize: '14.1451px',
|
|
8307
|
+
lineHeight: '24px',
|
|
8308
|
+
textAlign: 'center',
|
|
8309
|
+
color: '#7d8592',
|
|
8310
|
+
marginBottom: '22px'
|
|
8311
|
+
}
|
|
8312
|
+
}, "All rights reserved.")))))))))))))) : null))));
|
|
8313
|
+
}
|
|
8314
|
+
|
|
8315
|
+
function EmailDripMarket({
|
|
8316
|
+
sectionData,
|
|
8317
|
+
extraProps = {}
|
|
8318
|
+
}) {
|
|
8319
|
+
// const classes = useSectionStyles({ containerWidth });
|
|
8320
|
+
const isInitialMount = React.useRef(true); // useEffect(() => {
|
|
8321
|
+
// convertToHtml(sectionData)
|
|
8322
|
+
// }, [sectionData])
|
|
8323
|
+
|
|
8324
|
+
const convertToHtml = sectionData => {
|
|
8325
|
+
const html = ReactDOMServer__default["default"].renderToStaticMarkup( /*#__PURE__*/React__default["default"].createElement(Section, {
|
|
8326
|
+
nodeData: sectionData
|
|
8327
|
+
}));
|
|
8328
|
+
return html;
|
|
8329
|
+
};
|
|
8330
|
+
|
|
8331
|
+
React.useEffect(() => {
|
|
8332
|
+
if (isInitialMount.current) {
|
|
8333
|
+
isInitialMount.current = false;
|
|
8334
|
+
} else {
|
|
8335
|
+
extraProps?.callbackHtml(convertToHtml(sectionData));
|
|
8336
|
+
}
|
|
8337
|
+
}, [extraProps?.convertedHtml]); // const mockData = sectionData?.sections[0];
|
|
8338
|
+
|
|
8339
|
+
const emailRef = React.useRef(null);
|
|
8340
|
+
console.log('skdjnkdln', extraProps);
|
|
8341
|
+
return /*#__PURE__*/React__default["default"].createElement("section", null, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(Section, {
|
|
8342
|
+
sectionRef: emailRef,
|
|
8343
|
+
nodeData: sectionData
|
|
8344
|
+
})));
|
|
8345
|
+
}
|
|
8346
|
+
|
|
8347
|
+
var index = /*#__PURE__*/Object.freeze({
|
|
8348
|
+
__proto__: null,
|
|
8349
|
+
'default': EmailDripMarket
|
|
8350
|
+
});
|
|
8351
|
+
|
|
7941
8352
|
const TYPE_TO_COMPONENT_MAP = {
|
|
7942
8353
|
BANNER_CAROUSEL_RIGHT: BannerCarouselRight,
|
|
7943
8354
|
GRID_CARD: List,
|
|
@@ -7959,7 +8370,8 @@ const TYPE_TO_COMPONENT_MAP = {
|
|
|
7959
8370
|
WEBINAR_LANDING_PAGE: CoursePromotionPage$1,
|
|
7960
8371
|
COURSE_LANDING_PAGE: CoursePromotionPage,
|
|
7961
8372
|
FORM_LANDING_PAGE: FormPage,
|
|
7962
|
-
TILES_SECTION: Tiles
|
|
8373
|
+
TILES_SECTION: Tiles,
|
|
8374
|
+
EMAIL_DRIP_MARKET: EmailDripMarket
|
|
7963
8375
|
};
|
|
7964
8376
|
|
|
7965
8377
|
const getCompToRender = type => TYPE_TO_COMPONENT_MAP[type] || (() => null);
|
|
@@ -7968,6 +8380,7 @@ const MemoisedSection = /*#__PURE__*/React.memo(({
|
|
|
7968
8380
|
sectionData,
|
|
7969
8381
|
extraProps
|
|
7970
8382
|
}) => {
|
|
8383
|
+
console.log('templatesectiondata', sectionData);
|
|
7971
8384
|
const SectionComp = getCompToRender(sectionData.type);
|
|
7972
8385
|
return /*#__PURE__*/React__default["default"].createElement(SectionComp, {
|
|
7973
8386
|
sectionData: sectionData,
|