diy-template-components 2.0.53 → 2.0.55

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
@@ -2168,29 +2168,30 @@ function NanumSquare() {
2168
2168
  }
2169
2169
 
2170
2170
  const TYPE_TO_COMPONENT_MAP$1 = {
2171
- BANNER_CAROUSEL_RIGHT: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$m; })),
2172
- GRID_CARD: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$l; })),
2173
- BANNER_CAROUSEL_CENTER: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$k; })),
2174
- BANNER_CAROUSEL_LEFT: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$j; })),
2175
- FORM_SUBSCRIBE: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$i; })),
2176
- TEXT_TESTIMONIAL: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$h; })),
2177
- VIDEO_TESTIMONIAL: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$g; })),
2178
- VIDEO: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$f; })),
2179
- INFO: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$e; })),
2180
- TEXT: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$d; })),
2181
- IMAGE_GALLERY: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$c; })),
2182
- FAQ_LISTING: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$b; })),
2183
- COURSE_CAROUSEL: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$9; })),
2184
- TEAM_CARD: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$8; })),
2185
- TEXT_GRID: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$a; })),
2186
- CONTACT: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$7; })),
2187
- FORM_ENQUIRY: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$6; })),
2188
- WEBINAR_LANDING_PAGE: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$5; })),
2189
- COURSE_LANDING_PAGE: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$4; })),
2190
- FORM_LANDING_PAGE: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$3; })),
2191
- TILES_SECTION: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$2; })),
2192
- EMAIL_DRIP_MARKET: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$1; })),
2193
- ABOUT_INSTITUTE: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index; }))
2171
+ BANNER_CAROUSEL_RIGHT: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$n; })),
2172
+ GRID_CARD: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$m; })),
2173
+ BANNER_CAROUSEL_CENTER: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$l; })),
2174
+ BANNER_CAROUSEL_LEFT: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$k; })),
2175
+ FORM_SUBSCRIBE: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$j; })),
2176
+ TEXT_TESTIMONIAL: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$i; })),
2177
+ VIDEO_TESTIMONIAL: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$h; })),
2178
+ VIDEO: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$g; })),
2179
+ INFO: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$f; })),
2180
+ TEXT: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$e; })),
2181
+ IMAGE_GALLERY: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$d; })),
2182
+ FAQ_LISTING: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$c; })),
2183
+ COURSE_CAROUSEL: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$a; })),
2184
+ TEAM_CARD: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$9; })),
2185
+ TEXT_GRID: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$b; })),
2186
+ CONTACT: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$8; })),
2187
+ FORM_ENQUIRY: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$7; })),
2188
+ WEBINAR_LANDING_PAGE: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$6; })),
2189
+ COURSE_LANDING_PAGE: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$5; })),
2190
+ FORM_LANDING_PAGE: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$4; })),
2191
+ TILES_SECTION: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$3; })),
2192
+ EMAIL_DRIP_MARKET: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$2; })),
2193
+ ABOUT_INSTITUTE: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index$1; })),
2194
+ TIMER_AND_CALL: /*#__PURE__*/lazy(() => Promise.resolve().then(function () { return index; }))
2194
2195
  };
2195
2196
  const getCompToRender$1 = type => TYPE_TO_COMPONENT_MAP$1[type] || (() => null);
2196
2197
  const MemoisedSection$1 = /*#__PURE__*/memo(({
@@ -2941,7 +2942,7 @@ function BannerCarouselRight({
2941
2942
  })))));
2942
2943
  }
2943
2944
 
2944
- var index$m = /*#__PURE__*/Object.freeze({
2945
+ var index$n = /*#__PURE__*/Object.freeze({
2945
2946
  __proto__: null,
2946
2947
  'default': BannerCarouselRight
2947
2948
  });
@@ -3167,7 +3168,7 @@ function List({
3167
3168
  }))));
3168
3169
  }
3169
3170
 
3170
- var index$l = /*#__PURE__*/Object.freeze({
3171
+ var index$m = /*#__PURE__*/Object.freeze({
3171
3172
  __proto__: null,
3172
3173
  'default': List
3173
3174
  });
@@ -3462,7 +3463,7 @@ function BannerCarouselCenter({
3462
3463
  }))));
3463
3464
  }
3464
3465
 
3465
- var index$k = /*#__PURE__*/Object.freeze({
3466
+ var index$l = /*#__PURE__*/Object.freeze({
3466
3467
  __proto__: null,
3467
3468
  'default': BannerCarouselCenter
3468
3469
  });
@@ -3694,7 +3695,7 @@ function BannerCarouselLeft({
3694
3695
  })))));
3695
3696
  }
3696
3697
 
3697
- var index$j = /*#__PURE__*/Object.freeze({
3698
+ var index$k = /*#__PURE__*/Object.freeze({
3698
3699
  __proto__: null,
3699
3700
  'default': BannerCarouselLeft
3700
3701
  });
@@ -4090,7 +4091,7 @@ function SubscribeToNewsletter({
4090
4091
  })))))));
4091
4092
  }
4092
4093
 
4093
- var index$i = /*#__PURE__*/Object.freeze({
4094
+ var index$j = /*#__PURE__*/Object.freeze({
4094
4095
  __proto__: null,
4095
4096
  'default': SubscribeToNewsletter
4096
4097
  });
@@ -4378,7 +4379,7 @@ function Testimonials({
4378
4379
  }));
4379
4380
  }
4380
4381
 
4381
- var index$h = /*#__PURE__*/Object.freeze({
4382
+ var index$i = /*#__PURE__*/Object.freeze({
4382
4383
  __proto__: null,
4383
4384
  'default': Testimonials
4384
4385
  });
@@ -4784,7 +4785,7 @@ function VideoTestimonial({
4784
4785
  }))))));
4785
4786
  }
4786
4787
 
4787
- var index$g = /*#__PURE__*/Object.freeze({
4788
+ var index$h = /*#__PURE__*/Object.freeze({
4788
4789
  __proto__: null,
4789
4790
  'default': VideoTestimonial
4790
4791
  });
@@ -5020,7 +5021,7 @@ function Video({
5020
5021
  }, carouselContent))));
5021
5022
  }
5022
5023
 
5023
- var index$f = /*#__PURE__*/Object.freeze({
5024
+ var index$g = /*#__PURE__*/Object.freeze({
5024
5025
  __proto__: null,
5025
5026
  'default': Video
5026
5027
  });
@@ -5257,7 +5258,7 @@ function Info({
5257
5258
  }, carouselContent))));
5258
5259
  }
5259
5260
 
5260
- var index$e = /*#__PURE__*/Object.freeze({
5261
+ var index$f = /*#__PURE__*/Object.freeze({
5261
5262
  __proto__: null,
5262
5263
  'default': Info
5263
5264
  });
@@ -5376,7 +5377,7 @@ const TextSection = ({
5376
5377
  })))));
5377
5378
  };
5378
5379
 
5379
- var index$d = /*#__PURE__*/Object.freeze({
5380
+ var index$e = /*#__PURE__*/Object.freeze({
5380
5381
  __proto__: null,
5381
5382
  'default': TextSection
5382
5383
  });
@@ -5601,7 +5602,7 @@ function PhotoGallery({
5601
5602
  }, carouselContent))));
5602
5603
  }
5603
5604
 
5604
- var index$c = /*#__PURE__*/Object.freeze({
5605
+ var index$d = /*#__PURE__*/Object.freeze({
5605
5606
  __proto__: null,
5606
5607
  'default': PhotoGallery
5607
5608
  });
@@ -5784,7 +5785,7 @@ const Accordion = ({
5784
5785
  })));
5785
5786
  };
5786
5787
 
5787
- var index$b = /*#__PURE__*/Object.freeze({
5788
+ var index$c = /*#__PURE__*/Object.freeze({
5788
5789
  __proto__: null,
5789
5790
  'default': FAQListing
5790
5791
  });
@@ -5955,7 +5956,7 @@ const TextGrid = ({
5955
5956
  }, carouselContent))));
5956
5957
  };
5957
5958
 
5958
- var index$a = /*#__PURE__*/Object.freeze({
5959
+ var index$b = /*#__PURE__*/Object.freeze({
5959
5960
  __proto__: null,
5960
5961
  'default': TextGrid
5961
5962
  });
@@ -6487,7 +6488,7 @@ function SimpleCardsContainer({
6487
6488
  }, children);
6488
6489
  }
6489
6490
 
6490
- var index$9 = /*#__PURE__*/Object.freeze({
6491
+ var index$a = /*#__PURE__*/Object.freeze({
6491
6492
  __proto__: null,
6492
6493
  'default': courses
6493
6494
  });
@@ -6806,7 +6807,7 @@ function TeamCard({
6806
6807
  }, " ", getCarouselContent())));
6807
6808
  }
6808
6809
 
6809
- var index$8 = /*#__PURE__*/Object.freeze({
6810
+ var index$9 = /*#__PURE__*/Object.freeze({
6810
6811
  __proto__: null,
6811
6812
  'default': TeamCard
6812
6813
  });
@@ -7231,7 +7232,7 @@ function FormEnquiry({
7231
7232
  })))))));
7232
7233
  }
7233
7234
 
7234
- var index$7 = /*#__PURE__*/Object.freeze({
7235
+ var index$8 = /*#__PURE__*/Object.freeze({
7235
7236
  __proto__: null,
7236
7237
  'default': FormEnquiry
7237
7238
  });
@@ -7655,7 +7656,7 @@ function Contact({
7655
7656
  })))))));
7656
7657
  }
7657
7658
 
7658
- var index$6 = /*#__PURE__*/Object.freeze({
7659
+ var index$7 = /*#__PURE__*/Object.freeze({
7659
7660
  __proto__: null,
7660
7661
  'default': Contact
7661
7662
  });
@@ -8134,7 +8135,7 @@ function CoursePromotionPage$1({
8134
8135
  }))));
8135
8136
  }
8136
8137
 
8137
- var index$5 = /*#__PURE__*/Object.freeze({
8138
+ var index$6 = /*#__PURE__*/Object.freeze({
8138
8139
  __proto__: null,
8139
8140
  'default': CoursePromotionPage$1
8140
8141
  });
@@ -8449,17 +8450,21 @@ const SingleVideoSlide = props => {
8449
8450
  isEdit
8450
8451
  } = useContext(PageContext);
8451
8452
  const renderer = ({
8453
+ days,
8452
8454
  hours,
8453
8455
  minutes,
8454
8456
  seconds,
8455
8457
  completed
8456
8458
  }) => {
8457
- console.log("siddharth", hours, minutes);
8458
- {
8459
+ if (days === 0 && hours < 24) {
8459
8460
  if (countryCode === 'KR') {
8460
8461
  return /*#__PURE__*/React.createElement("span", null, hours, " \uC2DC\uAC04 ", minutes, " \uBD84 ", seconds, "\uCD08");
8461
8462
  }
8462
8463
  return /*#__PURE__*/React.createElement("span", null, hours, "h ", minutes, "m ", seconds, "s");
8464
+ } else {
8465
+ let given = moment(props.data.endDate);
8466
+ let current = moment().startOf('day');
8467
+ return /*#__PURE__*/React.createElement("span", null, Math.floor(moment.duration(given.diff(current)).asDays()), ' ', countryCode === 'KR' ? '일' : 'day(s)');
8463
8468
  }
8464
8469
  };
8465
8470
  const {
@@ -8722,7 +8727,7 @@ function CoursePromotionPage({
8722
8727
  }))));
8723
8728
  }
8724
8729
 
8725
- var index$4 = /*#__PURE__*/Object.freeze({
8730
+ var index$5 = /*#__PURE__*/Object.freeze({
8726
8731
  __proto__: null,
8727
8732
  'default': CoursePromotionPage
8728
8733
  });
@@ -9087,7 +9092,7 @@ const FormPage = ({
9087
9092
  })))));
9088
9093
  };
9089
9094
 
9090
- var index$3 = /*#__PURE__*/Object.freeze({
9095
+ var index$4 = /*#__PURE__*/Object.freeze({
9091
9096
  __proto__: null,
9092
9097
  'default': FormPage
9093
9098
  });
@@ -9235,7 +9240,7 @@ function Tiles({
9235
9240
  }, TileDiv)));
9236
9241
  }
9237
9242
 
9238
- var index$2 = /*#__PURE__*/Object.freeze({
9243
+ var index$3 = /*#__PURE__*/Object.freeze({
9239
9244
  __proto__: null,
9240
9245
  'default': Tiles
9241
9246
  });
@@ -9710,7 +9715,7 @@ function EmailDripMarket({
9710
9715
  })));
9711
9716
  }
9712
9717
 
9713
- var index$1 = /*#__PURE__*/Object.freeze({
9718
+ var index$2 = /*#__PURE__*/Object.freeze({
9714
9719
  __proto__: null,
9715
9720
  'default': EmailDripMarket
9716
9721
  });
@@ -10079,11 +10084,36 @@ function ABOUT_INSTITUTE({
10079
10084
  }, /*#__PURE__*/React.createElement(ImageJSX, null), /*#__PURE__*/React.createElement(ContentJSX, null)), /*#__PURE__*/React.createElement(HighlightJSX, null)));
10080
10085
  }
10081
10086
 
10082
- var index = /*#__PURE__*/Object.freeze({
10087
+ var index$1 = /*#__PURE__*/Object.freeze({
10083
10088
  __proto__: null,
10084
10089
  'default': ABOUT_INSTITUTE
10085
10090
  });
10086
10091
 
10092
+ const TimerAndCall = ({
10093
+ sectionData,
10094
+ extraProps = {}
10095
+ }) => {
10096
+ console.log('sid sectionData', sectionData, extraProps);
10097
+ const [nodeData] = sectionData?.components;
10098
+ return /*#__PURE__*/React.createElement("section", {
10099
+ className: classes.timerAndCallSection
10100
+ }, /*#__PURE__*/React.createElement("div", {
10101
+ className: classes.timerAndCallContainer
10102
+ }, /*#__PURE__*/React.createElement("div", {
10103
+ className: classes.timerAndCallBox
10104
+ }, nodeData?.showOffer?.metadata?.value ? /*#__PURE__*/React.createElement(React.Fragment, null) : null, nodeData?.title?.metadata?.value ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
10105
+ ref: nodeData?.heading?.refSetter,
10106
+ dangerouslySetInnerHTML: {
10107
+ __html: nodeData?.title?.metadata?.value
10108
+ }
10109
+ })) : null)));
10110
+ };
10111
+
10112
+ var index = /*#__PURE__*/Object.freeze({
10113
+ __proto__: null,
10114
+ 'default': TimerAndCall
10115
+ });
10116
+
10087
10117
  const TYPE_TO_COMPONENT_MAP = {
10088
10118
  BANNER_CAROUSEL_RIGHT: BannerCarouselRight,
10089
10119
  GRID_CARD: List,
@@ -10107,7 +10137,8 @@ const TYPE_TO_COMPONENT_MAP = {
10107
10137
  FORM_LANDING_PAGE: FormPage,
10108
10138
  TILES_SECTION: Tiles,
10109
10139
  EMAIL_DRIP_MARKET: EmailDripMarket,
10110
- ABOUT_INSTITUTE
10140
+ ABOUT_INSTITUTE,
10141
+ TIMER_AND_CALL: TimerAndCall
10111
10142
  };
10112
10143
  const getCompToRender = type => TYPE_TO_COMPONENT_MAP[type] || (() => null);
10113
10144
  const MemoisedSection = /*#__PURE__*/memo(({