diy-template-components 2.0.54 → 2.0.56
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 +81 -52
- package/build/index.es.js.map +1 -1
- package/build/index.js +81 -52
- 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(({
|
|
@@ -2324,8 +2325,7 @@ const generateTheme = (theme = 'blue', fontFamily = 'Arial', isMobile) => {
|
|
|
2324
2325
|
gradient = themeColor[1];
|
|
2325
2326
|
darkMode = themeColor[2];
|
|
2326
2327
|
}
|
|
2327
|
-
|
|
2328
|
-
// console.log('color', allColors, gradient, darkMode);
|
|
2328
|
+
console.log('color', allColors, gradient, darkMode);
|
|
2329
2329
|
|
|
2330
2330
|
// switch (color) {
|
|
2331
2331
|
// case solidColors:
|
|
@@ -2958,7 +2958,7 @@ function BannerCarouselRight({
|
|
|
2958
2958
|
})))));
|
|
2959
2959
|
}
|
|
2960
2960
|
|
|
2961
|
-
var index$
|
|
2961
|
+
var index$n = /*#__PURE__*/Object.freeze({
|
|
2962
2962
|
__proto__: null,
|
|
2963
2963
|
'default': BannerCarouselRight
|
|
2964
2964
|
});
|
|
@@ -3184,7 +3184,7 @@ function List({
|
|
|
3184
3184
|
}))));
|
|
3185
3185
|
}
|
|
3186
3186
|
|
|
3187
|
-
var index$
|
|
3187
|
+
var index$m = /*#__PURE__*/Object.freeze({
|
|
3188
3188
|
__proto__: null,
|
|
3189
3189
|
'default': List
|
|
3190
3190
|
});
|
|
@@ -3479,7 +3479,7 @@ function BannerCarouselCenter({
|
|
|
3479
3479
|
}))));
|
|
3480
3480
|
}
|
|
3481
3481
|
|
|
3482
|
-
var index$
|
|
3482
|
+
var index$l = /*#__PURE__*/Object.freeze({
|
|
3483
3483
|
__proto__: null,
|
|
3484
3484
|
'default': BannerCarouselCenter
|
|
3485
3485
|
});
|
|
@@ -3711,7 +3711,7 @@ function BannerCarouselLeft({
|
|
|
3711
3711
|
})))));
|
|
3712
3712
|
}
|
|
3713
3713
|
|
|
3714
|
-
var index$
|
|
3714
|
+
var index$k = /*#__PURE__*/Object.freeze({
|
|
3715
3715
|
__proto__: null,
|
|
3716
3716
|
'default': BannerCarouselLeft
|
|
3717
3717
|
});
|
|
@@ -4107,7 +4107,7 @@ function SubscribeToNewsletter({
|
|
|
4107
4107
|
})))))));
|
|
4108
4108
|
}
|
|
4109
4109
|
|
|
4110
|
-
var index$
|
|
4110
|
+
var index$j = /*#__PURE__*/Object.freeze({
|
|
4111
4111
|
__proto__: null,
|
|
4112
4112
|
'default': SubscribeToNewsletter
|
|
4113
4113
|
});
|
|
@@ -4395,7 +4395,7 @@ function Testimonials({
|
|
|
4395
4395
|
}));
|
|
4396
4396
|
}
|
|
4397
4397
|
|
|
4398
|
-
var index$
|
|
4398
|
+
var index$i = /*#__PURE__*/Object.freeze({
|
|
4399
4399
|
__proto__: null,
|
|
4400
4400
|
'default': Testimonials
|
|
4401
4401
|
});
|
|
@@ -4801,7 +4801,7 @@ function VideoTestimonial({
|
|
|
4801
4801
|
}))))));
|
|
4802
4802
|
}
|
|
4803
4803
|
|
|
4804
|
-
var index$
|
|
4804
|
+
var index$h = /*#__PURE__*/Object.freeze({
|
|
4805
4805
|
__proto__: null,
|
|
4806
4806
|
'default': VideoTestimonial
|
|
4807
4807
|
});
|
|
@@ -5037,7 +5037,7 @@ function Video({
|
|
|
5037
5037
|
}, carouselContent))));
|
|
5038
5038
|
}
|
|
5039
5039
|
|
|
5040
|
-
var index$
|
|
5040
|
+
var index$g = /*#__PURE__*/Object.freeze({
|
|
5041
5041
|
__proto__: null,
|
|
5042
5042
|
'default': Video
|
|
5043
5043
|
});
|
|
@@ -5274,7 +5274,7 @@ function Info({
|
|
|
5274
5274
|
}, carouselContent))));
|
|
5275
5275
|
}
|
|
5276
5276
|
|
|
5277
|
-
var index$
|
|
5277
|
+
var index$f = /*#__PURE__*/Object.freeze({
|
|
5278
5278
|
__proto__: null,
|
|
5279
5279
|
'default': Info
|
|
5280
5280
|
});
|
|
@@ -5393,7 +5393,7 @@ const TextSection = ({
|
|
|
5393
5393
|
})))));
|
|
5394
5394
|
};
|
|
5395
5395
|
|
|
5396
|
-
var index$
|
|
5396
|
+
var index$e = /*#__PURE__*/Object.freeze({
|
|
5397
5397
|
__proto__: null,
|
|
5398
5398
|
'default': TextSection
|
|
5399
5399
|
});
|
|
@@ -5618,7 +5618,7 @@ function PhotoGallery({
|
|
|
5618
5618
|
}, carouselContent))));
|
|
5619
5619
|
}
|
|
5620
5620
|
|
|
5621
|
-
var index$
|
|
5621
|
+
var index$d = /*#__PURE__*/Object.freeze({
|
|
5622
5622
|
__proto__: null,
|
|
5623
5623
|
'default': PhotoGallery
|
|
5624
5624
|
});
|
|
@@ -5801,7 +5801,7 @@ const Accordion = ({
|
|
|
5801
5801
|
})));
|
|
5802
5802
|
};
|
|
5803
5803
|
|
|
5804
|
-
var index$
|
|
5804
|
+
var index$c = /*#__PURE__*/Object.freeze({
|
|
5805
5805
|
__proto__: null,
|
|
5806
5806
|
'default': FAQListing
|
|
5807
5807
|
});
|
|
@@ -5972,7 +5972,7 @@ const TextGrid = ({
|
|
|
5972
5972
|
}, carouselContent))));
|
|
5973
5973
|
};
|
|
5974
5974
|
|
|
5975
|
-
var index$
|
|
5975
|
+
var index$b = /*#__PURE__*/Object.freeze({
|
|
5976
5976
|
__proto__: null,
|
|
5977
5977
|
'default': TextGrid
|
|
5978
5978
|
});
|
|
@@ -6504,7 +6504,7 @@ function SimpleCardsContainer({
|
|
|
6504
6504
|
}, children);
|
|
6505
6505
|
}
|
|
6506
6506
|
|
|
6507
|
-
var index$
|
|
6507
|
+
var index$a = /*#__PURE__*/Object.freeze({
|
|
6508
6508
|
__proto__: null,
|
|
6509
6509
|
'default': courses
|
|
6510
6510
|
});
|
|
@@ -6823,7 +6823,7 @@ function TeamCard({
|
|
|
6823
6823
|
}, " ", getCarouselContent())));
|
|
6824
6824
|
}
|
|
6825
6825
|
|
|
6826
|
-
var index$
|
|
6826
|
+
var index$9 = /*#__PURE__*/Object.freeze({
|
|
6827
6827
|
__proto__: null,
|
|
6828
6828
|
'default': TeamCard
|
|
6829
6829
|
});
|
|
@@ -7248,7 +7248,7 @@ function FormEnquiry({
|
|
|
7248
7248
|
})))))));
|
|
7249
7249
|
}
|
|
7250
7250
|
|
|
7251
|
-
var index$
|
|
7251
|
+
var index$8 = /*#__PURE__*/Object.freeze({
|
|
7252
7252
|
__proto__: null,
|
|
7253
7253
|
'default': FormEnquiry
|
|
7254
7254
|
});
|
|
@@ -7672,7 +7672,7 @@ function Contact({
|
|
|
7672
7672
|
})))))));
|
|
7673
7673
|
}
|
|
7674
7674
|
|
|
7675
|
-
var index$
|
|
7675
|
+
var index$7 = /*#__PURE__*/Object.freeze({
|
|
7676
7676
|
__proto__: null,
|
|
7677
7677
|
'default': Contact
|
|
7678
7678
|
});
|
|
@@ -8151,13 +8151,13 @@ function CoursePromotionPage$1({
|
|
|
8151
8151
|
}))));
|
|
8152
8152
|
}
|
|
8153
8153
|
|
|
8154
|
-
var index$
|
|
8154
|
+
var index$6 = /*#__PURE__*/Object.freeze({
|
|
8155
8155
|
__proto__: null,
|
|
8156
8156
|
'default': CoursePromotionPage$1
|
|
8157
8157
|
});
|
|
8158
8158
|
|
|
8159
8159
|
const useCoursePromotionPage = createUseStyles(theme => {
|
|
8160
|
-
|
|
8160
|
+
console.log(theme, 'themere');
|
|
8161
8161
|
return {
|
|
8162
8162
|
courseSuperContainer: {
|
|
8163
8163
|
display: 'flex',
|
|
@@ -8743,12 +8743,12 @@ function CoursePromotionPage({
|
|
|
8743
8743
|
}))));
|
|
8744
8744
|
}
|
|
8745
8745
|
|
|
8746
|
-
var index$
|
|
8746
|
+
var index$5 = /*#__PURE__*/Object.freeze({
|
|
8747
8747
|
__proto__: null,
|
|
8748
8748
|
'default': CoursePromotionPage
|
|
8749
8749
|
});
|
|
8750
8750
|
|
|
8751
|
-
const useFormPageStyles = createUseStyles(theme => ({
|
|
8751
|
+
const useFormPageStyles$1 = createUseStyles(theme => ({
|
|
8752
8752
|
formPageSection: {
|
|
8753
8753
|
padding: ({
|
|
8754
8754
|
isMobile
|
|
@@ -8914,7 +8914,7 @@ const FormPage = ({
|
|
|
8914
8914
|
isMobile,
|
|
8915
8915
|
countryCode
|
|
8916
8916
|
} = React.useContext(PageContext);
|
|
8917
|
-
const classes = useFormPageStyles({
|
|
8917
|
+
const classes = useFormPageStyles$1({
|
|
8918
8918
|
isMobile
|
|
8919
8919
|
});
|
|
8920
8920
|
const handleSubmit = async e => {
|
|
@@ -9108,7 +9108,7 @@ const FormPage = ({
|
|
|
9108
9108
|
})))));
|
|
9109
9109
|
};
|
|
9110
9110
|
|
|
9111
|
-
var index$
|
|
9111
|
+
var index$4 = /*#__PURE__*/Object.freeze({
|
|
9112
9112
|
__proto__: null,
|
|
9113
9113
|
'default': FormPage
|
|
9114
9114
|
});
|
|
@@ -9256,7 +9256,7 @@ function Tiles({
|
|
|
9256
9256
|
}, TileDiv)));
|
|
9257
9257
|
}
|
|
9258
9258
|
|
|
9259
|
-
var index$
|
|
9259
|
+
var index$3 = /*#__PURE__*/Object.freeze({
|
|
9260
9260
|
__proto__: null,
|
|
9261
9261
|
'default': Tiles
|
|
9262
9262
|
});
|
|
@@ -9731,7 +9731,7 @@ function EmailDripMarket({
|
|
|
9731
9731
|
})));
|
|
9732
9732
|
}
|
|
9733
9733
|
|
|
9734
|
-
var index$
|
|
9734
|
+
var index$2 = /*#__PURE__*/Object.freeze({
|
|
9735
9735
|
__proto__: null,
|
|
9736
9736
|
'default': EmailDripMarket
|
|
9737
9737
|
});
|
|
@@ -10100,11 +10100,39 @@ function ABOUT_INSTITUTE({
|
|
|
10100
10100
|
}, /*#__PURE__*/React__default["default"].createElement(ImageJSX, null), /*#__PURE__*/React__default["default"].createElement(ContentJSX, null)), /*#__PURE__*/React__default["default"].createElement(HighlightJSX, null)));
|
|
10101
10101
|
}
|
|
10102
10102
|
|
|
10103
|
-
var index = /*#__PURE__*/Object.freeze({
|
|
10103
|
+
var index$1 = /*#__PURE__*/Object.freeze({
|
|
10104
10104
|
__proto__: null,
|
|
10105
10105
|
'default': ABOUT_INSTITUTE
|
|
10106
10106
|
});
|
|
10107
10107
|
|
|
10108
|
+
const TimerAndCall = ({
|
|
10109
|
+
sectionData,
|
|
10110
|
+
extraProps = {}
|
|
10111
|
+
}) => {
|
|
10112
|
+
console.log('sid sectionData', sectionData, extraProps);
|
|
10113
|
+
const [nodeData] = sectionData?.components;
|
|
10114
|
+
const classes = useFormPageStyles({
|
|
10115
|
+
isMobile
|
|
10116
|
+
});
|
|
10117
|
+
return /*#__PURE__*/React__default["default"].createElement("section", {
|
|
10118
|
+
className: classes.timerAndCallSection
|
|
10119
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10120
|
+
className: classes.timerAndCallContainer
|
|
10121
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10122
|
+
className: classes.timerAndCallBox
|
|
10123
|
+
}, 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", {
|
|
10124
|
+
ref: nodeData?.heading?.refSetter,
|
|
10125
|
+
dangerouslySetInnerHTML: {
|
|
10126
|
+
__html: nodeData?.title?.metadata?.value
|
|
10127
|
+
}
|
|
10128
|
+
})) : null)));
|
|
10129
|
+
};
|
|
10130
|
+
|
|
10131
|
+
var index = /*#__PURE__*/Object.freeze({
|
|
10132
|
+
__proto__: null,
|
|
10133
|
+
'default': TimerAndCall
|
|
10134
|
+
});
|
|
10135
|
+
|
|
10108
10136
|
const TYPE_TO_COMPONENT_MAP = {
|
|
10109
10137
|
BANNER_CAROUSEL_RIGHT: BannerCarouselRight,
|
|
10110
10138
|
GRID_CARD: List,
|
|
@@ -10128,7 +10156,8 @@ const TYPE_TO_COMPONENT_MAP = {
|
|
|
10128
10156
|
FORM_LANDING_PAGE: FormPage,
|
|
10129
10157
|
TILES_SECTION: Tiles,
|
|
10130
10158
|
EMAIL_DRIP_MARKET: EmailDripMarket,
|
|
10131
|
-
ABOUT_INSTITUTE
|
|
10159
|
+
ABOUT_INSTITUTE,
|
|
10160
|
+
TIMER_AND_CALL: TimerAndCall
|
|
10132
10161
|
};
|
|
10133
10162
|
const getCompToRender = type => TYPE_TO_COMPONENT_MAP[type] || (() => null);
|
|
10134
10163
|
const MemoisedSection = /*#__PURE__*/React.memo(({
|