diy-template-components 0.2.2 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.es.js CHANGED
@@ -14,7 +14,6 @@ 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';
18
17
  import { createTheming, createUseStyles as createUseStyles$1, useTheme as useTheme$1 } from 'react-jss';
19
18
 
20
19
  function _extends() {
@@ -1838,28 +1837,27 @@ function ArimaMadurai() {
1838
1837
  }
1839
1838
 
1840
1839
  const TYPE_TO_COMPONENT_MAP$1 = {
1841
- BANNER_CAROUSEL_RIGHT: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$l; })),
1842
- GRID_CARD: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$k; })),
1843
- BANNER_CAROUSEL_CENTER: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$j; })),
1844
- BANNER_CAROUSEL_LEFT: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$i; })),
1845
- FORM_SUBSCRIBE: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$h; })),
1846
- TEXT_TESTIMONIAL: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$g; })),
1847
- VIDEO_TESTIMONIAL: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$f; })),
1848
- VIDEO: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$e; })),
1849
- INFO: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$d; })),
1850
- TEXT: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$c; })),
1851
- IMAGE_GALLERY: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$b; })),
1852
- FAQ_LISTING: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$a; })),
1853
- COURSE_CAROUSEL: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$8; })),
1854
- TEAM_CARD: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$7; })),
1855
- TEXT_GRID: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$9; })),
1856
- CONTACT: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$6; })),
1857
- FORM_ENQUIRY: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$5; })),
1858
- WEBINAR_LANDING_PAGE: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$4; })),
1859
- COURSE_LANDING_PAGE: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$3; })),
1860
- FORM_LANDING_PAGE: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$2; })),
1861
- TILES_SECTION: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$1; })),
1862
- EMAIL_DRIP_MARKET: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index; }))
1840
+ BANNER_CAROUSEL_RIGHT: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$k; })),
1841
+ GRID_CARD: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$j; })),
1842
+ BANNER_CAROUSEL_CENTER: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$i; })),
1843
+ BANNER_CAROUSEL_LEFT: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$h; })),
1844
+ FORM_SUBSCRIBE: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$g; })),
1845
+ TEXT_TESTIMONIAL: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$f; })),
1846
+ VIDEO_TESTIMONIAL: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$e; })),
1847
+ VIDEO: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$d; })),
1848
+ INFO: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$c; })),
1849
+ TEXT: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$b; })),
1850
+ IMAGE_GALLERY: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$a; })),
1851
+ FAQ_LISTING: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$9; })),
1852
+ COURSE_CAROUSEL: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$7; })),
1853
+ TEAM_CARD: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$6; })),
1854
+ TEXT_GRID: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$8; })),
1855
+ CONTACT: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$5; })),
1856
+ FORM_ENQUIRY: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$4; })),
1857
+ WEBINAR_LANDING_PAGE: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$3; })),
1858
+ COURSE_LANDING_PAGE: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$2; })),
1859
+ FORM_LANDING_PAGE: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$1; })),
1860
+ TILES_SECTION: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index; }))
1863
1861
  };
1864
1862
 
1865
1863
  const getCompToRender$1 = type => TYPE_TO_COMPONENT_MAP$1[type] || (() => null);
@@ -1868,7 +1866,6 @@ const MemoisedSection$1 = /*#__PURE__*/memo(({
1868
1866
  sectionData,
1869
1867
  extraProps
1870
1868
  }) => {
1871
- console.log('templatesectiondata', sectionData);
1872
1869
  const SectionComp = getCompToRender$1(sectionData.type);
1873
1870
  return /*#__PURE__*/React.createElement(SectionComp, {
1874
1871
  sectionData: sectionData,
@@ -2317,7 +2314,7 @@ function Carousel({
2317
2314
  })));
2318
2315
  }
2319
2316
 
2320
- function Section$4({
2317
+ function Section$3({
2321
2318
  nodeData
2322
2319
  }) {
2323
2320
  const classes = useSectionStyles$8();
@@ -2390,7 +2387,7 @@ function BannerCarouselRight({
2390
2387
  className: classes.bannerCarouselRightSection
2391
2388
  }, /*#__PURE__*/React.createElement("div", {
2392
2389
  className: classes.sectionContainer
2393
- }, /*#__PURE__*/React.createElement(Wrapper, wrapperProps, bannerCarousel.components.map((node, idx) => /*#__PURE__*/React.createElement(Section$4, {
2390
+ }, /*#__PURE__*/React.createElement(Wrapper, wrapperProps, bannerCarousel.components.map((node, idx) => /*#__PURE__*/React.createElement(Section$3, {
2394
2391
  nodeData: node,
2395
2392
  key: idx
2396
2393
  /* or some other unique property */
@@ -2398,7 +2395,7 @@ function BannerCarouselRight({
2398
2395
  })))));
2399
2396
  }
2400
2397
 
2401
- var index$l = /*#__PURE__*/Object.freeze({
2398
+ var index$k = /*#__PURE__*/Object.freeze({
2402
2399
  __proto__: null,
2403
2400
  'default': BannerCarouselRight
2404
2401
  });
@@ -2650,7 +2647,7 @@ function List({
2650
2647
  }))));
2651
2648
  }
2652
2649
 
2653
- var index$k = /*#__PURE__*/Object.freeze({
2650
+ var index$j = /*#__PURE__*/Object.freeze({
2654
2651
  __proto__: null,
2655
2652
  'default': List
2656
2653
  });
@@ -2749,7 +2746,7 @@ const useSectionStyles$6 = createUseStyles(theme => ({
2749
2746
  }
2750
2747
  }));
2751
2748
 
2752
- const Section$3 = ({
2749
+ const Section$2 = ({
2753
2750
  nodeData
2754
2751
  }) => {
2755
2752
  const {
@@ -2812,7 +2809,7 @@ function BannerCarouselCenter({
2812
2809
  } : {};
2813
2810
  return /*#__PURE__*/React.createElement("section", {
2814
2811
  className: classes.bannerCarouselCenterSection
2815
- }, /*#__PURE__*/React.createElement(Wrapper, wrapperProps, bannerCarousel.components.map((node, idx) => /*#__PURE__*/React.createElement(Section$3, {
2812
+ }, /*#__PURE__*/React.createElement(Wrapper, wrapperProps, bannerCarousel.components.map((node, idx) => /*#__PURE__*/React.createElement(Section$2, {
2816
2813
  nodeData: node,
2817
2814
  key: idx
2818
2815
  /* or some other unique property */
@@ -2820,7 +2817,7 @@ function BannerCarouselCenter({
2820
2817
  }))));
2821
2818
  }
2822
2819
 
2823
- var index$j = /*#__PURE__*/Object.freeze({
2820
+ var index$i = /*#__PURE__*/Object.freeze({
2824
2821
  __proto__: null,
2825
2822
  'default': BannerCarouselCenter
2826
2823
  });
@@ -2932,7 +2929,7 @@ const useSectionStyles$5 = createUseStyles(theme => {
2932
2929
  };
2933
2930
  });
2934
2931
 
2935
- function Section$2({
2932
+ function Section$1({
2936
2933
  nodeData
2937
2934
  }) {
2938
2935
  const classes = useSectionStyles$5();
@@ -3003,7 +3000,7 @@ function BannerCarouselLeft({
3003
3000
  className: classes.section
3004
3001
  }, /*#__PURE__*/React.createElement("div", {
3005
3002
  className: classes.sectionContainer
3006
- }, /*#__PURE__*/React.createElement(Wrapper, null, bannerCarousel.components.map((node, idx) => /*#__PURE__*/React.createElement(Section$2, {
3003
+ }, /*#__PURE__*/React.createElement(Wrapper, null, bannerCarousel.components.map((node, idx) => /*#__PURE__*/React.createElement(Section$1, {
3007
3004
  nodeData: node,
3008
3005
  key: idx
3009
3006
  /* or some other unique property */
@@ -3011,7 +3008,7 @@ function BannerCarouselLeft({
3011
3008
  })))));
3012
3009
  }
3013
3010
 
3014
- var index$i = /*#__PURE__*/Object.freeze({
3011
+ var index$h = /*#__PURE__*/Object.freeze({
3015
3012
  __proto__: null,
3016
3013
  'default': BannerCarouselLeft
3017
3014
  });
@@ -3296,7 +3293,8 @@ function SubscribeToNewsletter({
3296
3293
  const classes = useSectionStyles$4({
3297
3294
  containerWidth
3298
3295
  });
3299
- const [inputVal, setInputVal] = useState(nodeData?.inputField?.metadata?.value);
3296
+ let formInitialValue = nodeData?.inputField?.metadata?.value;
3297
+ const [inputVal, setInputVal] = useState(formInitialValue);
3300
3298
  let [isValid, setIsValid] = useState(true);
3301
3299
  let [btnDisabled, setBtnDisabled] = useState(false);
3302
3300
 
@@ -3313,6 +3311,7 @@ function SubscribeToNewsletter({
3313
3311
  };
3314
3312
  if (!(isPreview || isEdit)) postApiCall(baseURLs, data);
3315
3313
  setBtnDisabled(true);
3314
+ setInputVal(formInitialValue);
3316
3315
  };
3317
3316
 
3318
3317
  const checkValidity = () => {
@@ -3404,7 +3403,7 @@ function SubscribeToNewsletter({
3404
3403
  })))))));
3405
3404
  }
3406
3405
 
3407
- var index$h = /*#__PURE__*/Object.freeze({
3406
+ var index$g = /*#__PURE__*/Object.freeze({
3408
3407
  __proto__: null,
3409
3408
  'default': SubscribeToNewsletter
3410
3409
  });
@@ -3571,7 +3570,7 @@ function QuotesComponent() {
3571
3570
  }));
3572
3571
  }
3573
3572
 
3574
- function Section$1({
3573
+ function Section({
3575
3574
  nodeData
3576
3575
  }) {
3577
3576
  const {
@@ -3661,12 +3660,12 @@ function Testimonials({
3661
3660
  const classes = useTestimonialStyles();
3662
3661
  return /*#__PURE__*/React.createElement("div", {
3663
3662
  className: classes.testimonialContainer
3664
- }, /*#__PURE__*/React.createElement(Section$1, {
3663
+ }, /*#__PURE__*/React.createElement(Section, {
3665
3664
  nodeData: sectionData.components[0]
3666
3665
  }));
3667
3666
  }
3668
3667
 
3669
- var index$g = /*#__PURE__*/Object.freeze({
3668
+ var index$f = /*#__PURE__*/Object.freeze({
3670
3669
  __proto__: null,
3671
3670
  'default': Testimonials
3672
3671
  });
@@ -4045,7 +4044,7 @@ function VideoTestimonial({
4045
4044
  }))))));
4046
4045
  }
4047
4046
 
4048
- var index$f = /*#__PURE__*/Object.freeze({
4047
+ var index$e = /*#__PURE__*/Object.freeze({
4049
4048
  __proto__: null,
4050
4049
  'default': VideoTestimonial
4051
4050
  });
@@ -4273,7 +4272,7 @@ function Video({
4273
4272
  }, carouselContent))));
4274
4273
  }
4275
4274
 
4276
- var index$e = /*#__PURE__*/Object.freeze({
4275
+ var index$d = /*#__PURE__*/Object.freeze({
4277
4276
  __proto__: null,
4278
4277
  'default': Video
4279
4278
  });
@@ -4499,7 +4498,7 @@ function Info({
4499
4498
  }, carouselContent))));
4500
4499
  }
4501
4500
 
4502
- var index$d = /*#__PURE__*/Object.freeze({
4501
+ var index$c = /*#__PURE__*/Object.freeze({
4503
4502
  __proto__: null,
4504
4503
  'default': Info
4505
4504
  });
@@ -4618,7 +4617,7 @@ const TextSection = ({
4618
4617
  })))));
4619
4618
  };
4620
4619
 
4621
- var index$c = /*#__PURE__*/Object.freeze({
4620
+ var index$b = /*#__PURE__*/Object.freeze({
4622
4621
  __proto__: null,
4623
4622
  'default': TextSection
4624
4623
  });
@@ -4775,7 +4774,7 @@ function PhotoGallery({
4775
4774
  }, carouselContent))));
4776
4775
  }
4777
4776
 
4778
- var index$b = /*#__PURE__*/Object.freeze({
4777
+ var index$a = /*#__PURE__*/Object.freeze({
4779
4778
  __proto__: null,
4780
4779
  'default': PhotoGallery
4781
4780
  });
@@ -4953,7 +4952,7 @@ const Accordion = ({
4953
4952
  })));
4954
4953
  };
4955
4954
 
4956
- var index$a = /*#__PURE__*/Object.freeze({
4955
+ var index$9 = /*#__PURE__*/Object.freeze({
4957
4956
  __proto__: null,
4958
4957
  'default': FAQListing
4959
4958
  });
@@ -5118,7 +5117,7 @@ const TextGrid = ({
5118
5117
  }, carouselContent))));
5119
5118
  };
5120
5119
 
5121
- var index$9 = /*#__PURE__*/Object.freeze({
5120
+ var index$8 = /*#__PURE__*/Object.freeze({
5122
5121
  __proto__: null,
5123
5122
  'default': TextGrid
5124
5123
  });
@@ -5572,7 +5571,7 @@ function SimpleCardsContainer({
5572
5571
  }, children);
5573
5572
  }
5574
5573
 
5575
- var index$8 = /*#__PURE__*/Object.freeze({
5574
+ var index$7 = /*#__PURE__*/Object.freeze({
5576
5575
  __proto__: null,
5577
5576
  'default': courses
5578
5577
  });
@@ -5795,7 +5794,7 @@ function TeamCard({
5795
5794
  }, " ", carouselContent)));
5796
5795
  }
5797
5796
 
5798
- var index$7 = /*#__PURE__*/Object.freeze({
5797
+ var index$6 = /*#__PURE__*/Object.freeze({
5799
5798
  __proto__: null,
5800
5799
  'default': TeamCard
5801
5800
  });
@@ -5958,12 +5957,13 @@ function FormEnquiry({
5958
5957
  const [nodeData] = sectionData.components;
5959
5958
  const theme = useTheme();
5960
5959
  let [btnDisabled, setBtnDisabled] = useState(false);
5961
- const [inputVal, setInputVal] = useState({
5960
+ let formInitialValue = {
5962
5961
  name: nodeData?.nameField?.metadata?.value,
5963
5962
  phone: nodeData?.phoneField?.metadata?.value,
5964
5963
  email: nodeData?.emailField?.metadata?.value,
5965
5964
  message: nodeData?.messageField?.metadata?.value
5966
- });
5965
+ };
5966
+ const [inputVal, setInputVal] = useState(formInitialValue);
5967
5967
  const [validData, setValidData] = useState({
5968
5968
  nameValid: 1,
5969
5969
  emailValid: 1,
@@ -5986,6 +5986,7 @@ function FormEnquiry({
5986
5986
  };
5987
5987
  if (!(isPreview || isEdit)) postApiCall(baseURLs, data);
5988
5988
  setBtnDisabled(true);
5989
+ setInputVal(formInitialValue);
5989
5990
  };
5990
5991
 
5991
5992
  const checkValidity = (regexField, fieldname, fieldValidity) => {
@@ -6169,7 +6170,7 @@ function FormEnquiry({
6169
6170
  }))))));
6170
6171
  }
6171
6172
 
6172
- var index$6 = /*#__PURE__*/Object.freeze({
6173
+ var index$5 = /*#__PURE__*/Object.freeze({
6173
6174
  __proto__: null,
6174
6175
  'default': FormEnquiry
6175
6176
  });
@@ -6369,12 +6370,13 @@ function Contact({
6369
6370
  const classes = useSectionStyles({
6370
6371
  containerWidth
6371
6372
  });
6372
- const [inputVal, setInputVal] = useState({
6373
+ let formInitialValue = {
6373
6374
  name: nodeData?.nameField?.metadata?.value,
6374
6375
  phone: nodeData?.phoneField?.metadata?.value,
6375
6376
  email: nodeData?.emailField?.metadata?.value,
6376
6377
  message: nodeData?.messageField?.metadata?.value
6377
- });
6378
+ };
6379
+ const [inputVal, setInputVal] = useState(formInitialValue);
6378
6380
  const [validData, setValidData] = useState({
6379
6381
  nameValid: 1,
6380
6382
  emailValid: 1,
@@ -6390,6 +6392,7 @@ function Contact({
6390
6392
  };
6391
6393
  if (!(isPreview || isEdit)) postApiCall(baseURLs, data);
6392
6394
  setBtnDisabled(true);
6395
+ setInputVal(formInitialValue);
6393
6396
  };
6394
6397
 
6395
6398
  useEffect(() => {
@@ -6543,7 +6546,7 @@ function Contact({
6543
6546
  }))))));
6544
6547
  }
6545
6548
 
6546
- var index$5 = /*#__PURE__*/Object.freeze({
6549
+ var index$4 = /*#__PURE__*/Object.freeze({
6547
6550
  __proto__: null,
6548
6551
  'default': Contact
6549
6552
  });
@@ -6980,7 +6983,7 @@ function CoursePromotionPage$1({
6980
6983
  }))));
6981
6984
  }
6982
6985
 
6983
- var index$4 = /*#__PURE__*/Object.freeze({
6986
+ var index$3 = /*#__PURE__*/Object.freeze({
6984
6987
  __proto__: null,
6985
6988
  'default': CoursePromotionPage$1
6986
6989
  });
@@ -7272,6 +7275,14 @@ var arrowRight = "data:image/svg+xml,%3Csvg%20width%3D%228%22%20height%3D%2214%2
7272
7275
  const SingleVideoSlide = props => {
7273
7276
  const [isReadMore, setIsReadMore] = useState(false);
7274
7277
  const theme = useTheme();
7278
+ const {
7279
+ layout: {
7280
+ containerWidth
7281
+ },
7282
+ isMobile,
7283
+ isEdit
7284
+ } = useContext(PageContext);
7285
+ console.log(isEdit, 'isEdit');
7275
7286
  useEffect(() => {// remaining days epoch
7276
7287
  // current date epoch
7277
7288
  // subtract remaining days from current day epoch
@@ -7303,7 +7314,7 @@ const SingleVideoSlide = props => {
7303
7314
  showCourseInstallment
7304
7315
  } = props;
7305
7316
  const showCourseInstallmentData = data?.courseOverviewData;
7306
- const InstalmentData = data?.courseOverviewData?.installments?.formData?.installmentInfo?.installments[0].installmentPrice;
7317
+ const InstalmentData = isEdit ? data?.courseOverviewData?.installments?.formData?.installments[0].installmentAmount : data?.courseOverviewData?.installments?.formData?.installmentInfo?.installments[0].installmentPrice;
7307
7318
 
7308
7319
  const checkIfOfferIsValid = () => moment().diff(moment(props?.data?.endDate || 0)) < 0;
7309
7320
 
@@ -7472,7 +7483,7 @@ const SingleVideoSlide = props => {
7472
7483
  className: classes.payInstallmentHeader
7473
7484
  }, /*#__PURE__*/React.createElement("h4", null, /*#__PURE__*/React.createElement("span", {
7474
7485
  dangerouslySetInnerHTML: {
7475
- __html: ` Start learning at Rs ${InstalmentData / 100}`
7486
+ __html: ` Start learning at Rs ${isEdit ? InstalmentData : InstalmentData / 100}`
7476
7487
  }
7477
7488
  })), /*#__PURE__*/React.createElement("p", null, "Pay in Instalments")), /*#__PURE__*/React.createElement("img", {
7478
7489
  className: classes.arrowRightIcon,
@@ -7508,7 +7519,7 @@ function CoursePromotionPage({
7508
7519
  }))));
7509
7520
  }
7510
7521
 
7511
- var index$3 = /*#__PURE__*/Object.freeze({
7522
+ var index$2 = /*#__PURE__*/Object.freeze({
7512
7523
  __proto__: null,
7513
7524
  'default': CoursePromotionPage
7514
7525
  });
@@ -7852,7 +7863,7 @@ const FormPage = ({
7852
7863
  })))));
7853
7864
  };
7854
7865
 
7855
- var index$2 = /*#__PURE__*/Object.freeze({
7866
+ var index$1 = /*#__PURE__*/Object.freeze({
7856
7867
  __proto__: null,
7857
7868
  'default': FormPage
7858
7869
  });
@@ -7985,416 +7996,9 @@ function Tiles({
7985
7996
  }, TileDiv)));
7986
7997
  }
7987
7998
 
7988
- var index$1 = /*#__PURE__*/Object.freeze({
7989
- __proto__: null,
7990
- 'default': Tiles
7991
- });
7992
-
7993
- const useEmailStyles = createUseStyles(theme => ({
7994
- wrapper: {
7995
- fontFamily: theme?.typography?.fontFamily,
7996
- width: '100%',
7997
- tableLayout: 'fixed',
7998
- backgroundColor: '#cccccc'
7999
- },
8000
- email_description_para: {
8001
- '& p': {
8002
- margin: '0 0 0 !important'
8003
- }
8004
- },
8005
- main: {
8006
- backgroundColor: '#ffffff',
8007
- width: '100%',
8008
- maxWidth: '600px',
8009
- borderSpacing: '0'
8010
- },
8011
- logoimg: {
8012
- width: '28px',
8013
- height: '28px'
8014
- /* margin: 18px 0px; */
8015
-
8016
- },
8017
- 'p-young-guru-title': {
8018
- fontFamily: theme?.typography?.fontFamily,
8019
- fontStyle: 'normal',
8020
- fontWeight: '500',
8021
- fontSize: '24px',
8022
- lineHeight: '31px',
8023
- color: '#ffffff',
8024
- marginTop: '18px'
8025
- },
8026
- 'p-young-guru-sub-title': {
8027
- fontFamily: theme?.typography?.fontFamily,
8028
- fontStyle: 'normal',
8029
- fontWeight: '400',
8030
- fontSize: '16px',
8031
- lineHeight: '21px',
8032
- color: '#dbd9d9',
8033
- marginBottom: '18px'
8034
- },
8035
- p: {
8036
- padding: '0',
8037
- margin: '0 !important'
8038
- },
8039
- 'two-columns': {
8040
- fontSize: '0',
8041
- textAlign: 'center'
8042
- /* padding:35px 0 40px */
8043
-
8044
- },
8045
- 'two-columns .column': {
8046
- width: '100%',
8047
- maxWidth: '275px',
8048
- display: 'inline-block',
8049
- verticalAlign: 'top'
8050
- },
8051
- 'title-lead': {
8052
- fontFamily: theme?.typography?.fontFamily,
8053
- fontStyle: 'normal',
8054
- fontWeight: '500',
8055
- fontSize: '20px',
8056
- lineHeight: '26px',
8057
- color: '#030a21',
8058
- marginBottom: '5px',
8059
- textAlign: 'left'
8060
- } // @media screen and (max-width: 600px) {
8061
- // }
8062
-
8063
- }));
8064
-
8065
- function Section({
8066
- nodeData,
8067
- emailRef
8068
- }) {
8069
- console.log('nodedataashu', nodeData);
8070
- const header = nodeData?.components[0];
8071
- const body = nodeData?.components[1];
8072
- const landing = nodeData?.components[2];
8073
- const footer = nodeData?.components[3];
8074
- const classes = useEmailStyles();
8075
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("center", {
8076
- className: classes.wrapper,
8077
- ref: emailRef
8078
- }, /*#__PURE__*/React.createElement("table", {
8079
- className: classes.main,
8080
- style: {
8081
- width: '100%'
8082
- }
8083
- }, /*#__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", {
8084
- style: {
8085
- textAlign: 'center',
8086
- background: '#ffffff',
8087
- paddingTop: '16px',
8088
- width: '100%'
8089
- }
8090
- }, /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", {
8091
- style: {
8092
- display: 'inline-block'
8093
- }
8094
- }, header?.components[0]?.metadata?.image?.length ? /*#__PURE__*/React.createElement("img", {
8095
- src: header?.components[0]?.metadata?.image,
8096
- alt: "",
8097
- className: classes.logoimg
8098
- }) : /*#__PURE__*/React.createElement("div", {
8099
- style: {
8100
- display: 'flex',
8101
- alignItems: 'center',
8102
- justifyContent: 'center',
8103
- fontStyle: 'italic',
8104
- minHeight: '30px'
8105
- }
8106
- }, "Your logo")))))), /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", null, header?.components[1]?.metadata?.image?.length ? /*#__PURE__*/React.createElement("img", {
8107
- src: header?.components[1]?.metadata?.image // width={600}
8108
- ,
8109
- alt: "",
8110
- style: {
8111
- maxWidth: '600px',
8112
- width: '100%',
8113
- marginBottom: '-4px'
8114
- }
8115
- }) : /*#__PURE__*/React.createElement("div", {
8116
- style: {
8117
- maxWidth: '600px',
8118
- width: '100%',
8119
- marginBottom: '-4px',
8120
- minHeight: '250px',
8121
- background: '#F4F9FD',
8122
- display: 'flex',
8123
- alignItems: 'center',
8124
- justifyContent: 'center',
8125
- fontStyle: 'italic'
8126
- }
8127
- }, "Cover Image")))) : null, body && body?.isActive ? /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", null, /*#__PURE__*/React.createElement("table", {
8128
- style: {
8129
- textAlign: 'center',
8130
- width: '100%',
8131
- backgroundColor: '#ffffff'
8132
- }
8133
- }, /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", null, /*#__PURE__*/React.createElement("p", {
8134
- style: {
8135
- // fontFamily: 'Roboto',
8136
- fontStyle: 'normal',
8137
- fontWeight: '700',
8138
- fontSize: '24.2487px',
8139
- lineHeight: '29px',
8140
- textAlign: 'center',
8141
- color: '#00ade7',
8142
- marginTop: '24px'
8143
- }
8144
- }, body?.components[0]?.metadata?.text), /*#__PURE__*/React.createElement("p", {
8145
- style: {
8146
- // fontFamily: 'Roboto',
8147
- fontStyle: 'normal',
8148
- fontWeight: '500',
8149
- fontSize: '18.1865px',
8150
- lineHeight: '22px',
8151
- textAlign: 'center',
8152
- color: '#0a1629',
8153
- marginTop: '8px',
8154
- marginBottom: '15px'
8155
- }
8156
- }, body?.components[1]?.metadata?.text), /*#__PURE__*/React.createElement("p", {
8157
- style: {
8158
- maxWidth: '435px',
8159
- margin: 'auto',
8160
- // fontFamily: 'Roboto',
8161
- fontStyle: 'normal',
8162
- fontWeight: '400',
8163
- fontSize: '16.1658px',
8164
- lineHeight: '22px',
8165
- color: '#3c4852',
8166
- textAlign: 'left'
8167
- },
8168
- dangerouslySetInnerHTML: {
8169
- __html: body?.components[2]?.metadata?.text
8170
- },
8171
- className: classes.email_description_para
8172
- })))))) : null, landing?.isActive ? /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", null, /*#__PURE__*/React.createElement("table", {
8173
- style: {
8174
- width: '100%',
8175
- padding: '12px'
8176
- }
8177
- }, /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", null, /*#__PURE__*/React.createElement("table", {
8178
- style: {
8179
- width: '100%',
8180
- background: '#f4f9fd',
8181
- borderRadius: '16px',
8182
- padding: '32px',
8183
- textAlign: 'center'
8184
- }
8185
- }, /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", null, landing?.components[0]?.metadata?.image?.length ? /*#__PURE__*/React.createElement("img", {
8186
- src: landing?.components[0]?.metadata?.image,
8187
- alt: "",
8188
- style: {
8189
- width: '100%'
8190
- }
8191
- }) : /*#__PURE__*/React.createElement("div", {
8192
- style: {
8193
- background: '#D9D9D9F0',
8194
- width: '100%',
8195
- minHeight: '250px',
8196
- display: 'flex',
8197
- alignItems: 'center',
8198
- justifyContent: 'center',
8199
- fontStyle: 'italic'
8200
- }
8201
- }, "Thumbnail Image"), /*#__PURE__*/React.createElement("p", {
8202
- style: {
8203
- // fontFamily: 'Roboto',
8204
- fontStyle: 'normal',
8205
- fontWeight: '500',
8206
- fontSize: '18.1865px',
8207
- lineHeight: '22px',
8208
- color: '#0a1629',
8209
- marginTop: '16px',
8210
- marginBottom: '16px',
8211
- textAlign: 'left'
8212
- }
8213
- }, landing?.components[1]?.metadata?.text), /*#__PURE__*/React.createElement("a", {
8214
- href: landing?.components[3]?.metadata?.text,
8215
- target: "_blank",
8216
- style: {
8217
- textDecoration: 'none'
8218
- }
8219
- }, /*#__PURE__*/React.createElement("p", {
8220
- style: {
8221
- background: '#009ae0',
8222
- borderRadius: '7.18333px',
8223
- color: 'white',
8224
- textDecoration: 'none',
8225
- padding: '12px 0px',
8226
- // fontFamily: 'Roboto',
8227
- fontStyle: 'normal',
8228
- fontWeight: '600',
8229
- fontSize: '20.55px',
8230
- lineHeight: '32px',
8231
- textTransform: 'uppercase',
8232
- color: '#fafafa'
8233
- }
8234
- }, landing?.components[2]?.metadata?.text)))))))))) : null, footer?.isActive ? /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", null, /*#__PURE__*/React.createElement("table", {
8235
- style: {
8236
- width: '100%',
8237
- background: '#e3f0ff',
8238
- textAlign: 'center'
8239
- }
8240
- }, /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", null, /*#__PURE__*/React.createElement("p", {
8241
- style: {
8242
- // fontFamily: 'Roboto',
8243
- fontStyle: 'normal',
8244
- fontWeight: '700',
8245
- fontSize: '18px',
8246
- lineHeight: '29px',
8247
- textAlign: 'center',
8248
- color: '#0a1629',
8249
- marginTop: '32px'
8250
- }
8251
- }, "Connect with us on:"), /*#__PURE__*/React.createElement("table", {
8252
- style: {
8253
- width: '100%',
8254
- marginTop: '8px',
8255
- marginBottom: '16px'
8256
- }
8257
- }, /*#__PURE__*/React.createElement("tbody", null, /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("a", {
8258
- href: footer?.components[0]?.metadata?.text,
8259
- target: "_blank",
8260
- style: {
8261
- textDecoration: 'none'
8262
- }
8263
- }, /*#__PURE__*/React.createElement("img", {
8264
- src: footer?.components[0]?.metadata?.iconUrl,
8265
- alt: "",
8266
- style: {
8267
- width: '36px',
8268
- height: '36px'
8269
- }
8270
- })), /*#__PURE__*/React.createElement("a", {
8271
- href: footer?.components[1]?.metadata?.text,
8272
- target: "_blank",
8273
- style: {
8274
- textDecoration: 'none'
8275
- }
8276
- }, /*#__PURE__*/React.createElement("img", {
8277
- src: footer?.components[1]?.metadata?.iconUrl,
8278
- alt: "",
8279
- style: {
8280
- width: '36px',
8281
- height: '36px',
8282
- margin: '0px 12px'
8283
- }
8284
- })), /*#__PURE__*/React.createElement("a", {
8285
- href: footer?.components[2]?.metadata?.text,
8286
- target: "_blank",
8287
- style: {
8288
- textDecoration: 'none'
8289
- }
8290
- }, /*#__PURE__*/React.createElement("img", {
8291
- src: footer?.components[2]?.metadata?.iconUrl,
8292
- alt: "",
8293
- style: {
8294
- width: '36px',
8295
- height: '36px'
8296
- }
8297
- })), /*#__PURE__*/React.createElement("a", {
8298
- href: footer?.components[3]?.metadata?.text,
8299
- target: "_blank",
8300
- style: {
8301
- textDecoration: 'none'
8302
- }
8303
- }, /*#__PURE__*/React.createElement("img", {
8304
- src: footer?.components[3]?.metadata?.iconUrl,
8305
- alt: "",
8306
- style: {
8307
- width: '36px',
8308
- height: '36px',
8309
- margin: '0px 12px'
8310
- }
8311
- })), /*#__PURE__*/React.createElement("a", {
8312
- href: footer?.components[4]?.metadata?.text,
8313
- target: "_blank",
8314
- style: {
8315
- textDecoration: 'none'
8316
- }
8317
- }, /*#__PURE__*/React.createElement("img", {
8318
- src: footer?.components[4]?.metadata?.iconUrl,
8319
- alt: "",
8320
- style: {
8321
- width: '36px',
8322
- height: '36px'
8323
- }
8324
- })), /*#__PURE__*/React.createElement("table", {
8325
- style: {
8326
- width: '100%',
8327
- marginTop: '13px'
8328
- }
8329
- }, /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", null, /*#__PURE__*/React.createElement("p", {
8330
- style: {
8331
- // fontFamily: 'Roboto',
8332
- fontStyle: 'normal',
8333
- fontWeight: '400',
8334
- fontSize: '14.1451px',
8335
- lineHeight: '21px',
8336
- textAlign: 'center',
8337
- color: '#7d8592'
8338
- }
8339
- }, "For any concerns, mail us at", footer?.components[5]?.metaData?.emailId), /*#__PURE__*/React.createElement("p", {
8340
- style: {
8341
- // fontFamily: 'Roboto',
8342
- fontStyle: 'normal',
8343
- fontWeight: '400',
8344
- fontSize: '14.1451px',
8345
- lineHeight: '24px',
8346
- textAlign: 'center',
8347
- color: '#7d8592'
8348
- }
8349
- }, "Copyright \xA9 2022 | vaibhavphotography.com"), /*#__PURE__*/React.createElement("p", {
8350
- style: {
8351
- // fontFamily: 'Roboto',
8352
- fontStyle: 'normal',
8353
- fontWeight: '400',
8354
- fontSize: '14.1451px',
8355
- lineHeight: '24px',
8356
- textAlign: 'center',
8357
- color: '#7d8592',
8358
- marginBottom: '22px'
8359
- }
8360
- }, "All rights reserved.")))))))))))))) : null))));
8361
- }
8362
-
8363
- function EmailDripMarket({
8364
- sectionData,
8365
- extraProps = {}
8366
- }) {
8367
- // const classes = useSectionStyles({ containerWidth });
8368
- const isInitialMount = useRef(true); // useEffect(() => {
8369
- // convertToHtml(sectionData)
8370
- // }, [sectionData])
8371
-
8372
- const convertToHtml = sectionData => {
8373
- const html = ReactDOMServer.renderToStaticMarkup( /*#__PURE__*/React.createElement(Section, {
8374
- nodeData: sectionData
8375
- }));
8376
- return html;
8377
- };
8378
-
8379
- useEffect(() => {
8380
- if (isInitialMount.current) {
8381
- isInitialMount.current = false;
8382
- } else {
8383
- extraProps?.callbackHtml(convertToHtml(sectionData));
8384
- }
8385
- }, [extraProps?.convertedHtml]); // const mockData = sectionData?.sections[0];
8386
-
8387
- const emailRef = useRef(null);
8388
- console.log('skdjnkdln', extraProps);
8389
- return /*#__PURE__*/React.createElement("section", null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Section, {
8390
- sectionRef: emailRef,
8391
- nodeData: sectionData
8392
- })));
8393
- }
8394
-
8395
7999
  var index = /*#__PURE__*/Object.freeze({
8396
8000
  __proto__: null,
8397
- 'default': EmailDripMarket
8001
+ 'default': Tiles
8398
8002
  });
8399
8003
 
8400
8004
  const TYPE_TO_COMPONENT_MAP = {
@@ -8418,8 +8022,7 @@ const TYPE_TO_COMPONENT_MAP = {
8418
8022
  WEBINAR_LANDING_PAGE: CoursePromotionPage$1,
8419
8023
  COURSE_LANDING_PAGE: CoursePromotionPage,
8420
8024
  FORM_LANDING_PAGE: FormPage,
8421
- TILES_SECTION: Tiles,
8422
- EMAIL_DRIP_MARKET: EmailDripMarket
8025
+ TILES_SECTION: Tiles
8423
8026
  };
8424
8027
 
8425
8028
  const getCompToRender = type => TYPE_TO_COMPONENT_MAP[type] || (() => null);
@@ -8428,7 +8031,6 @@ const MemoisedSection = /*#__PURE__*/memo(({
8428
8031
  sectionData,
8429
8032
  extraProps
8430
8033
  }) => {
8431
- console.log('templatesectiondata', sectionData);
8432
8034
  const SectionComp = getCompToRender(sectionData.type);
8433
8035
  return /*#__PURE__*/React.createElement(SectionComp, {
8434
8036
  sectionData: sectionData,