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 +80 -49
- package/build/index.es.js.map +1 -1
- package/build/index.js +80 -49
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -2184,29 +2184,30 @@ function NanumSquare() {
|
|
|
2184
2184
|
}
|
|
2185
2185
|
|
|
2186
2186
|
const TYPE_TO_COMPONENT_MAP$1 = {
|
|
2187
|
-
BANNER_CAROUSEL_RIGHT: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$
|
|
2188
|
-
GRID_CARD: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$
|
|
2189
|
-
BANNER_CAROUSEL_CENTER: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$
|
|
2190
|
-
BANNER_CAROUSEL_LEFT: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$
|
|
2191
|
-
FORM_SUBSCRIBE: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$
|
|
2192
|
-
TEXT_TESTIMONIAL: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$
|
|
2193
|
-
VIDEO_TESTIMONIAL: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$
|
|
2194
|
-
VIDEO: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$
|
|
2195
|
-
INFO: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$
|
|
2196
|
-
TEXT: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$
|
|
2197
|
-
IMAGE_GALLERY: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$
|
|
2198
|
-
FAQ_LISTING: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$
|
|
2199
|
-
COURSE_CAROUSEL: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$
|
|
2200
|
-
TEAM_CARD: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$
|
|
2201
|
-
TEXT_GRID: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$
|
|
2202
|
-
CONTACT: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$
|
|
2203
|
-
FORM_ENQUIRY: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$
|
|
2204
|
-
WEBINAR_LANDING_PAGE: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$
|
|
2205
|
-
COURSE_LANDING_PAGE: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$
|
|
2206
|
-
FORM_LANDING_PAGE: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$
|
|
2207
|
-
TILES_SECTION: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$
|
|
2208
|
-
EMAIL_DRIP_MARKET: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$
|
|
2209
|
-
ABOUT_INSTITUTE: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index; }))
|
|
2187
|
+
BANNER_CAROUSEL_RIGHT: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$n; })),
|
|
2188
|
+
GRID_CARD: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$m; })),
|
|
2189
|
+
BANNER_CAROUSEL_CENTER: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$l; })),
|
|
2190
|
+
BANNER_CAROUSEL_LEFT: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$k; })),
|
|
2191
|
+
FORM_SUBSCRIBE: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$j; })),
|
|
2192
|
+
TEXT_TESTIMONIAL: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$i; })),
|
|
2193
|
+
VIDEO_TESTIMONIAL: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$h; })),
|
|
2194
|
+
VIDEO: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$g; })),
|
|
2195
|
+
INFO: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$f; })),
|
|
2196
|
+
TEXT: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$e; })),
|
|
2197
|
+
IMAGE_GALLERY: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$d; })),
|
|
2198
|
+
FAQ_LISTING: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$c; })),
|
|
2199
|
+
COURSE_CAROUSEL: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$a; })),
|
|
2200
|
+
TEAM_CARD: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$9; })),
|
|
2201
|
+
TEXT_GRID: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$b; })),
|
|
2202
|
+
CONTACT: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$8; })),
|
|
2203
|
+
FORM_ENQUIRY: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$7; })),
|
|
2204
|
+
WEBINAR_LANDING_PAGE: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$6; })),
|
|
2205
|
+
COURSE_LANDING_PAGE: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$5; })),
|
|
2206
|
+
FORM_LANDING_PAGE: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$4; })),
|
|
2207
|
+
TILES_SECTION: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$3; })),
|
|
2208
|
+
EMAIL_DRIP_MARKET: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$2; })),
|
|
2209
|
+
ABOUT_INSTITUTE: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$1; })),
|
|
2210
|
+
TIMER_AND_CALL: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index; }))
|
|
2210
2211
|
};
|
|
2211
2212
|
const getCompToRender$1 = type => TYPE_TO_COMPONENT_MAP$1[type] || (() => null);
|
|
2212
2213
|
const MemoisedSection$1 = /*#__PURE__*/React.memo(({
|
|
@@ -2957,7 +2958,7 @@ function BannerCarouselRight({
|
|
|
2957
2958
|
})))));
|
|
2958
2959
|
}
|
|
2959
2960
|
|
|
2960
|
-
var index$
|
|
2961
|
+
var index$n = /*#__PURE__*/Object.freeze({
|
|
2961
2962
|
__proto__: null,
|
|
2962
2963
|
'default': BannerCarouselRight
|
|
2963
2964
|
});
|
|
@@ -3183,7 +3184,7 @@ function List({
|
|
|
3183
3184
|
}))));
|
|
3184
3185
|
}
|
|
3185
3186
|
|
|
3186
|
-
var index$
|
|
3187
|
+
var index$m = /*#__PURE__*/Object.freeze({
|
|
3187
3188
|
__proto__: null,
|
|
3188
3189
|
'default': List
|
|
3189
3190
|
});
|
|
@@ -3478,7 +3479,7 @@ function BannerCarouselCenter({
|
|
|
3478
3479
|
}))));
|
|
3479
3480
|
}
|
|
3480
3481
|
|
|
3481
|
-
var index$
|
|
3482
|
+
var index$l = /*#__PURE__*/Object.freeze({
|
|
3482
3483
|
__proto__: null,
|
|
3483
3484
|
'default': BannerCarouselCenter
|
|
3484
3485
|
});
|
|
@@ -3710,7 +3711,7 @@ function BannerCarouselLeft({
|
|
|
3710
3711
|
})))));
|
|
3711
3712
|
}
|
|
3712
3713
|
|
|
3713
|
-
var index$
|
|
3714
|
+
var index$k = /*#__PURE__*/Object.freeze({
|
|
3714
3715
|
__proto__: null,
|
|
3715
3716
|
'default': BannerCarouselLeft
|
|
3716
3717
|
});
|
|
@@ -4106,7 +4107,7 @@ function SubscribeToNewsletter({
|
|
|
4106
4107
|
})))))));
|
|
4107
4108
|
}
|
|
4108
4109
|
|
|
4109
|
-
var index$
|
|
4110
|
+
var index$j = /*#__PURE__*/Object.freeze({
|
|
4110
4111
|
__proto__: null,
|
|
4111
4112
|
'default': SubscribeToNewsletter
|
|
4112
4113
|
});
|
|
@@ -4394,7 +4395,7 @@ function Testimonials({
|
|
|
4394
4395
|
}));
|
|
4395
4396
|
}
|
|
4396
4397
|
|
|
4397
|
-
var index$
|
|
4398
|
+
var index$i = /*#__PURE__*/Object.freeze({
|
|
4398
4399
|
__proto__: null,
|
|
4399
4400
|
'default': Testimonials
|
|
4400
4401
|
});
|
|
@@ -4800,7 +4801,7 @@ function VideoTestimonial({
|
|
|
4800
4801
|
}))))));
|
|
4801
4802
|
}
|
|
4802
4803
|
|
|
4803
|
-
var index$
|
|
4804
|
+
var index$h = /*#__PURE__*/Object.freeze({
|
|
4804
4805
|
__proto__: null,
|
|
4805
4806
|
'default': VideoTestimonial
|
|
4806
4807
|
});
|
|
@@ -5036,7 +5037,7 @@ function Video({
|
|
|
5036
5037
|
}, carouselContent))));
|
|
5037
5038
|
}
|
|
5038
5039
|
|
|
5039
|
-
var index$
|
|
5040
|
+
var index$g = /*#__PURE__*/Object.freeze({
|
|
5040
5041
|
__proto__: null,
|
|
5041
5042
|
'default': Video
|
|
5042
5043
|
});
|
|
@@ -5273,7 +5274,7 @@ function Info({
|
|
|
5273
5274
|
}, carouselContent))));
|
|
5274
5275
|
}
|
|
5275
5276
|
|
|
5276
|
-
var index$
|
|
5277
|
+
var index$f = /*#__PURE__*/Object.freeze({
|
|
5277
5278
|
__proto__: null,
|
|
5278
5279
|
'default': Info
|
|
5279
5280
|
});
|
|
@@ -5392,7 +5393,7 @@ const TextSection = ({
|
|
|
5392
5393
|
})))));
|
|
5393
5394
|
};
|
|
5394
5395
|
|
|
5395
|
-
var index$
|
|
5396
|
+
var index$e = /*#__PURE__*/Object.freeze({
|
|
5396
5397
|
__proto__: null,
|
|
5397
5398
|
'default': TextSection
|
|
5398
5399
|
});
|
|
@@ -5617,7 +5618,7 @@ function PhotoGallery({
|
|
|
5617
5618
|
}, carouselContent))));
|
|
5618
5619
|
}
|
|
5619
5620
|
|
|
5620
|
-
var index$
|
|
5621
|
+
var index$d = /*#__PURE__*/Object.freeze({
|
|
5621
5622
|
__proto__: null,
|
|
5622
5623
|
'default': PhotoGallery
|
|
5623
5624
|
});
|
|
@@ -5800,7 +5801,7 @@ const Accordion = ({
|
|
|
5800
5801
|
})));
|
|
5801
5802
|
};
|
|
5802
5803
|
|
|
5803
|
-
var index$
|
|
5804
|
+
var index$c = /*#__PURE__*/Object.freeze({
|
|
5804
5805
|
__proto__: null,
|
|
5805
5806
|
'default': FAQListing
|
|
5806
5807
|
});
|
|
@@ -5971,7 +5972,7 @@ const TextGrid = ({
|
|
|
5971
5972
|
}, carouselContent))));
|
|
5972
5973
|
};
|
|
5973
5974
|
|
|
5974
|
-
var index$
|
|
5975
|
+
var index$b = /*#__PURE__*/Object.freeze({
|
|
5975
5976
|
__proto__: null,
|
|
5976
5977
|
'default': TextGrid
|
|
5977
5978
|
});
|
|
@@ -6503,7 +6504,7 @@ function SimpleCardsContainer({
|
|
|
6503
6504
|
}, children);
|
|
6504
6505
|
}
|
|
6505
6506
|
|
|
6506
|
-
var index$
|
|
6507
|
+
var index$a = /*#__PURE__*/Object.freeze({
|
|
6507
6508
|
__proto__: null,
|
|
6508
6509
|
'default': courses
|
|
6509
6510
|
});
|
|
@@ -6822,7 +6823,7 @@ function TeamCard({
|
|
|
6822
6823
|
}, " ", getCarouselContent())));
|
|
6823
6824
|
}
|
|
6824
6825
|
|
|
6825
|
-
var index$
|
|
6826
|
+
var index$9 = /*#__PURE__*/Object.freeze({
|
|
6826
6827
|
__proto__: null,
|
|
6827
6828
|
'default': TeamCard
|
|
6828
6829
|
});
|
|
@@ -7247,7 +7248,7 @@ function FormEnquiry({
|
|
|
7247
7248
|
})))))));
|
|
7248
7249
|
}
|
|
7249
7250
|
|
|
7250
|
-
var index$
|
|
7251
|
+
var index$8 = /*#__PURE__*/Object.freeze({
|
|
7251
7252
|
__proto__: null,
|
|
7252
7253
|
'default': FormEnquiry
|
|
7253
7254
|
});
|
|
@@ -7671,7 +7672,7 @@ function Contact({
|
|
|
7671
7672
|
})))))));
|
|
7672
7673
|
}
|
|
7673
7674
|
|
|
7674
|
-
var index$
|
|
7675
|
+
var index$7 = /*#__PURE__*/Object.freeze({
|
|
7675
7676
|
__proto__: null,
|
|
7676
7677
|
'default': Contact
|
|
7677
7678
|
});
|
|
@@ -8150,7 +8151,7 @@ function CoursePromotionPage$1({
|
|
|
8150
8151
|
}))));
|
|
8151
8152
|
}
|
|
8152
8153
|
|
|
8153
|
-
var index$
|
|
8154
|
+
var index$6 = /*#__PURE__*/Object.freeze({
|
|
8154
8155
|
__proto__: null,
|
|
8155
8156
|
'default': CoursePromotionPage$1
|
|
8156
8157
|
});
|
|
@@ -8465,17 +8466,21 @@ const SingleVideoSlide = props => {
|
|
|
8465
8466
|
isEdit
|
|
8466
8467
|
} = React.useContext(PageContext);
|
|
8467
8468
|
const renderer = ({
|
|
8469
|
+
days,
|
|
8468
8470
|
hours,
|
|
8469
8471
|
minutes,
|
|
8470
8472
|
seconds,
|
|
8471
8473
|
completed
|
|
8472
8474
|
}) => {
|
|
8473
|
-
|
|
8474
|
-
{
|
|
8475
|
+
if (days === 0 && hours < 24) {
|
|
8475
8476
|
if (countryCode === 'KR') {
|
|
8476
8477
|
return /*#__PURE__*/React__default["default"].createElement("span", null, hours, " \uC2DC\uAC04 ", minutes, " \uBD84 ", seconds, "\uCD08");
|
|
8477
8478
|
}
|
|
8478
8479
|
return /*#__PURE__*/React__default["default"].createElement("span", null, hours, "h ", minutes, "m ", seconds, "s");
|
|
8480
|
+
} else {
|
|
8481
|
+
let given = moment__default["default"](props.data.endDate);
|
|
8482
|
+
let current = moment__default["default"]().startOf('day');
|
|
8483
|
+
return /*#__PURE__*/React__default["default"].createElement("span", null, Math.floor(moment__default["default"].duration(given.diff(current)).asDays()), ' ', countryCode === 'KR' ? '일' : 'day(s)');
|
|
8479
8484
|
}
|
|
8480
8485
|
};
|
|
8481
8486
|
const {
|
|
@@ -8738,7 +8743,7 @@ function CoursePromotionPage({
|
|
|
8738
8743
|
}))));
|
|
8739
8744
|
}
|
|
8740
8745
|
|
|
8741
|
-
var index$
|
|
8746
|
+
var index$5 = /*#__PURE__*/Object.freeze({
|
|
8742
8747
|
__proto__: null,
|
|
8743
8748
|
'default': CoursePromotionPage
|
|
8744
8749
|
});
|
|
@@ -9103,7 +9108,7 @@ const FormPage = ({
|
|
|
9103
9108
|
})))));
|
|
9104
9109
|
};
|
|
9105
9110
|
|
|
9106
|
-
var index$
|
|
9111
|
+
var index$4 = /*#__PURE__*/Object.freeze({
|
|
9107
9112
|
__proto__: null,
|
|
9108
9113
|
'default': FormPage
|
|
9109
9114
|
});
|
|
@@ -9251,7 +9256,7 @@ function Tiles({
|
|
|
9251
9256
|
}, TileDiv)));
|
|
9252
9257
|
}
|
|
9253
9258
|
|
|
9254
|
-
var index$
|
|
9259
|
+
var index$3 = /*#__PURE__*/Object.freeze({
|
|
9255
9260
|
__proto__: null,
|
|
9256
9261
|
'default': Tiles
|
|
9257
9262
|
});
|
|
@@ -9726,7 +9731,7 @@ function EmailDripMarket({
|
|
|
9726
9731
|
})));
|
|
9727
9732
|
}
|
|
9728
9733
|
|
|
9729
|
-
var index$
|
|
9734
|
+
var index$2 = /*#__PURE__*/Object.freeze({
|
|
9730
9735
|
__proto__: null,
|
|
9731
9736
|
'default': EmailDripMarket
|
|
9732
9737
|
});
|
|
@@ -10095,11 +10100,36 @@ function ABOUT_INSTITUTE({
|
|
|
10095
10100
|
}, /*#__PURE__*/React__default["default"].createElement(ImageJSX, null), /*#__PURE__*/React__default["default"].createElement(ContentJSX, null)), /*#__PURE__*/React__default["default"].createElement(HighlightJSX, null)));
|
|
10096
10101
|
}
|
|
10097
10102
|
|
|
10098
|
-
var index = /*#__PURE__*/Object.freeze({
|
|
10103
|
+
var index$1 = /*#__PURE__*/Object.freeze({
|
|
10099
10104
|
__proto__: null,
|
|
10100
10105
|
'default': ABOUT_INSTITUTE
|
|
10101
10106
|
});
|
|
10102
10107
|
|
|
10108
|
+
const TimerAndCall = ({
|
|
10109
|
+
sectionData,
|
|
10110
|
+
extraProps = {}
|
|
10111
|
+
}) => {
|
|
10112
|
+
console.log('sid sectionData', sectionData, extraProps);
|
|
10113
|
+
const [nodeData] = sectionData?.components;
|
|
10114
|
+
return /*#__PURE__*/React__default["default"].createElement("section", {
|
|
10115
|
+
className: classes.timerAndCallSection
|
|
10116
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10117
|
+
className: classes.timerAndCallContainer
|
|
10118
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10119
|
+
className: classes.timerAndCallBox
|
|
10120
|
+
}, nodeData?.showOffer?.metadata?.value ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null) : null, nodeData?.title?.metadata?.value ? /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
10121
|
+
ref: nodeData?.heading?.refSetter,
|
|
10122
|
+
dangerouslySetInnerHTML: {
|
|
10123
|
+
__html: nodeData?.title?.metadata?.value
|
|
10124
|
+
}
|
|
10125
|
+
})) : null)));
|
|
10126
|
+
};
|
|
10127
|
+
|
|
10128
|
+
var index = /*#__PURE__*/Object.freeze({
|
|
10129
|
+
__proto__: null,
|
|
10130
|
+
'default': TimerAndCall
|
|
10131
|
+
});
|
|
10132
|
+
|
|
10103
10133
|
const TYPE_TO_COMPONENT_MAP = {
|
|
10104
10134
|
BANNER_CAROUSEL_RIGHT: BannerCarouselRight,
|
|
10105
10135
|
GRID_CARD: List,
|
|
@@ -10123,7 +10153,8 @@ const TYPE_TO_COMPONENT_MAP = {
|
|
|
10123
10153
|
FORM_LANDING_PAGE: FormPage,
|
|
10124
10154
|
TILES_SECTION: Tiles,
|
|
10125
10155
|
EMAIL_DRIP_MARKET: EmailDripMarket,
|
|
10126
|
-
ABOUT_INSTITUTE
|
|
10156
|
+
ABOUT_INSTITUTE,
|
|
10157
|
+
TIMER_AND_CALL: TimerAndCall
|
|
10127
10158
|
};
|
|
10128
10159
|
const getCompToRender = type => TYPE_TO_COMPONENT_MAP[type] || (() => null);
|
|
10129
10160
|
const MemoisedSection = /*#__PURE__*/React.memo(({
|