diy-template-components 0.3.8 → 1.0.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/index.es.js +578 -574
- package/build/index.es.js.map +1 -1
- package/build/index.js +176 -171
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -2,34 +2,36 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
function ___$insertStyle(css) {
|
|
6
|
-
if (!css ||
|
|
7
|
-
return;
|
|
8
|
-
}
|
|
9
|
-
const style = document.createElement('style');
|
|
10
|
-
style.setAttribute('type', 'text/css');
|
|
11
|
-
style.innerHTML = css;
|
|
12
|
-
document.head.appendChild(style);
|
|
13
|
-
return css;
|
|
5
|
+
function ___$insertStyle(css) {
|
|
6
|
+
if (!css || !window) {
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
const style = document.createElement('style');
|
|
10
|
+
style.setAttribute('type', 'text/css');
|
|
11
|
+
style.innerHTML = css;
|
|
12
|
+
document.head.appendChild(style);
|
|
13
|
+
return css;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
17
17
|
|
|
18
|
-
var React = require('react');
|
|
18
|
+
var React$1 = require('react');
|
|
19
19
|
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 koreanLocale = require('moment/locale/ko');
|
|
23
24
|
var ReactDOMServer = require('react-dom/server');
|
|
24
25
|
var reactJss = require('react-jss');
|
|
25
26
|
|
|
26
27
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
27
28
|
|
|
28
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
29
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React$1);
|
|
29
30
|
var Slider__default = /*#__PURE__*/_interopDefaultLegacy(Slider);
|
|
30
31
|
var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
|
|
31
32
|
var moment__default = /*#__PURE__*/_interopDefaultLegacy(moment);
|
|
32
33
|
var Countdown__default = /*#__PURE__*/_interopDefaultLegacy(Countdown);
|
|
34
|
+
var koreanLocale__default = /*#__PURE__*/_interopDefaultLegacy(koreanLocale);
|
|
33
35
|
var ReactDOMServer__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOMServer);
|
|
34
36
|
|
|
35
37
|
function _extends() {
|
|
@@ -47,7 +49,7 @@ function _extends() {
|
|
|
47
49
|
return _extends.apply(this, arguments);
|
|
48
50
|
}
|
|
49
51
|
|
|
50
|
-
const PageContext = /*#__PURE__*/React.createContext({});
|
|
52
|
+
const PageContext = /*#__PURE__*/React$1.createContext({});
|
|
51
53
|
|
|
52
54
|
const context = /*#__PURE__*/React__default["default"].createContext({});
|
|
53
55
|
const theming = reactJss.createTheming(context);
|
|
@@ -476,7 +478,7 @@ function useLinkBuilder(data) {
|
|
|
476
478
|
isEdit,
|
|
477
479
|
basePath,
|
|
478
480
|
isMasterTemplate
|
|
479
|
-
} = React.useContext(PageContext);
|
|
481
|
+
} = React$1.useContext(PageContext);
|
|
480
482
|
if (isEdit || !data.isLink) {
|
|
481
483
|
return null;
|
|
482
484
|
}
|
|
@@ -501,7 +503,7 @@ function useLinkBuilder(data) {
|
|
|
501
503
|
return `//${basePath}?templateId=${templateId}&pageId=${pageId}${isMasterTemplate ? '&mld=true' : ''}`;
|
|
502
504
|
}
|
|
503
505
|
|
|
504
|
-
const Button = /*#__PURE__*/React.forwardRef(function Button({
|
|
506
|
+
const Button = /*#__PURE__*/React$1.forwardRef(function Button({
|
|
505
507
|
fluid,
|
|
506
508
|
disabled,
|
|
507
509
|
data,
|
|
@@ -514,7 +516,7 @@ const Button = /*#__PURE__*/React.forwardRef(function Button({
|
|
|
514
516
|
}, ref) {
|
|
515
517
|
const {
|
|
516
518
|
isEdit
|
|
517
|
-
} = React.useContext(PageContext);
|
|
519
|
+
} = React$1.useContext(PageContext);
|
|
518
520
|
const link = useLinkBuilder(data);
|
|
519
521
|
const classes = buttonStyles({
|
|
520
522
|
fluid,
|
|
@@ -854,17 +856,17 @@ const Icon = ({
|
|
|
854
856
|
onClick
|
|
855
857
|
}) => {
|
|
856
858
|
/** */
|
|
857
|
-
const isMounted = React.useRef(false);
|
|
858
|
-
React.useEffect(() => {
|
|
859
|
+
const isMounted = React$1.useRef(false);
|
|
860
|
+
React$1.useEffect(() => {
|
|
859
861
|
isMounted.current = true;
|
|
860
862
|
return () => isMounted.current = false;
|
|
861
863
|
}, []);
|
|
862
864
|
/** */
|
|
863
865
|
|
|
864
|
-
const rootRef = React.useRef( /** @type {HTMLElement} */null);
|
|
866
|
+
const rootRef = React$1.useRef( /** @type {HTMLElement} */null);
|
|
865
867
|
// this ref is used to cancel the fetch promise success callback in case name prop changed
|
|
866
|
-
const currentName = React.useRef(name);
|
|
867
|
-
const [svgState, setSvgState] = React.useState(defaultSvgState);
|
|
868
|
+
const currentName = React$1.useRef(name);
|
|
869
|
+
const [svgState, setSvgState] = React$1.useState(defaultSvgState);
|
|
868
870
|
const styles = useStyles$1({
|
|
869
871
|
width,
|
|
870
872
|
height,
|
|
@@ -873,8 +875,8 @@ const Icon = ({
|
|
|
873
875
|
opacity,
|
|
874
876
|
hoverColor
|
|
875
877
|
});
|
|
876
|
-
const _className = React.useMemo(() => `${styles.root} ${className || ''}`, [className]);
|
|
877
|
-
React.useEffect(() => {
|
|
878
|
+
const _className = React$1.useMemo(() => `${styles.root} ${className || ''}`, [className]);
|
|
879
|
+
React$1.useEffect(() => {
|
|
878
880
|
// reset
|
|
879
881
|
currentName.current = name;
|
|
880
882
|
setSvgState(defaultSvgState);
|
|
@@ -1042,7 +1044,7 @@ function OptionList({
|
|
|
1042
1044
|
isTutorWebsite,
|
|
1043
1045
|
isLandingPages
|
|
1044
1046
|
}) {
|
|
1045
|
-
React.useContext(PageContext);
|
|
1047
|
+
React$1.useContext(PageContext);
|
|
1046
1048
|
const tabsDataModifier = () => {
|
|
1047
1049
|
return optionsData?.map(dt => {
|
|
1048
1050
|
return {
|
|
@@ -1153,7 +1155,7 @@ const NextImageRenderer = ({
|
|
|
1153
1155
|
isCustomWebsite,
|
|
1154
1156
|
pageData,
|
|
1155
1157
|
isMobile
|
|
1156
|
-
} = React.useContext(PageContext);
|
|
1158
|
+
} = React$1.useContext(PageContext);
|
|
1157
1159
|
try {
|
|
1158
1160
|
let {
|
|
1159
1161
|
refSetter,
|
|
@@ -1218,7 +1220,7 @@ function DesktopHeader({
|
|
|
1218
1220
|
} = header;
|
|
1219
1221
|
const {
|
|
1220
1222
|
isCustomWebsite
|
|
1221
|
-
} = React.useContext(PageContext);
|
|
1223
|
+
} = React$1.useContext(PageContext);
|
|
1222
1224
|
const logoUrl = useLinkBuilder({
|
|
1223
1225
|
isLink: true,
|
|
1224
1226
|
link: '/'
|
|
@@ -1297,7 +1299,7 @@ function MobileHeader({
|
|
|
1297
1299
|
}) {
|
|
1298
1300
|
const {
|
|
1299
1301
|
isCustomWebsite
|
|
1300
|
-
} = React.useContext(PageContext);
|
|
1302
|
+
} = React$1.useContext(PageContext);
|
|
1301
1303
|
const {
|
|
1302
1304
|
isFixed = true
|
|
1303
1305
|
} = header;
|
|
@@ -1310,9 +1312,9 @@ function MobileHeader({
|
|
|
1310
1312
|
isFixed,
|
|
1311
1313
|
isCustomWebsite
|
|
1312
1314
|
});
|
|
1313
|
-
const [sideMenu, openSideMenu] = React.useState(false);
|
|
1314
|
-
const navEl = React.useRef(null);
|
|
1315
|
-
React.useLayoutEffect(() => {
|
|
1315
|
+
const [sideMenu, openSideMenu] = React$1.useState(false);
|
|
1316
|
+
const navEl = React$1.useRef(null);
|
|
1317
|
+
React$1.useLayoutEffect(() => {
|
|
1316
1318
|
const body = navEl?.current?.ownerDocument?.body;
|
|
1317
1319
|
if (sideMenu) {
|
|
1318
1320
|
body?.setAttribute('style', 'overflow: hidden;');
|
|
@@ -1477,7 +1479,7 @@ function Header({
|
|
|
1477
1479
|
const {
|
|
1478
1480
|
isMobile,
|
|
1479
1481
|
isTutorWebsite
|
|
1480
|
-
} = React.useContext(PageContext);
|
|
1482
|
+
} = React$1.useContext(PageContext);
|
|
1481
1483
|
const filterHiddenNavs = () => {
|
|
1482
1484
|
return data?.navs?.filter(dt => !dt.isHiddenNav);
|
|
1483
1485
|
};
|
|
@@ -1707,7 +1709,7 @@ function Footer({
|
|
|
1707
1709
|
const theme = useTheme();
|
|
1708
1710
|
const {
|
|
1709
1711
|
isCustomWebsite
|
|
1710
|
-
} = React.useContext(PageContext);
|
|
1712
|
+
} = React$1.useContext(PageContext);
|
|
1711
1713
|
const classes = useSectionStyles$9({
|
|
1712
1714
|
isCustomWebsite
|
|
1713
1715
|
});
|
|
@@ -2073,31 +2075,31 @@ function ArimaMadurai() {
|
|
|
2073
2075
|
}
|
|
2074
2076
|
|
|
2075
2077
|
const TYPE_TO_COMPONENT_MAP$1 = {
|
|
2076
|
-
BANNER_CAROUSEL_RIGHT: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$l; })),
|
|
2077
|
-
GRID_CARD: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$k; })),
|
|
2078
|
-
BANNER_CAROUSEL_CENTER: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$j; })),
|
|
2079
|
-
BANNER_CAROUSEL_LEFT: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$i; })),
|
|
2080
|
-
FORM_SUBSCRIBE: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$h; })),
|
|
2081
|
-
TEXT_TESTIMONIAL: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$g; })),
|
|
2082
|
-
VIDEO_TESTIMONIAL: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$f; })),
|
|
2083
|
-
VIDEO: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$e; })),
|
|
2084
|
-
INFO: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$d; })),
|
|
2085
|
-
TEXT: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$c; })),
|
|
2086
|
-
IMAGE_GALLERY: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$b; })),
|
|
2087
|
-
FAQ_LISTING: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$a; })),
|
|
2088
|
-
COURSE_CAROUSEL: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$8; })),
|
|
2089
|
-
TEAM_CARD: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$7; })),
|
|
2090
|
-
TEXT_GRID: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$9; })),
|
|
2091
|
-
CONTACT: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$6; })),
|
|
2092
|
-
FORM_ENQUIRY: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$5; })),
|
|
2093
|
-
WEBINAR_LANDING_PAGE: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$4; })),
|
|
2094
|
-
COURSE_LANDING_PAGE: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$3; })),
|
|
2095
|
-
FORM_LANDING_PAGE: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$2; })),
|
|
2096
|
-
TILES_SECTION: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index$1; })),
|
|
2097
|
-
EMAIL_DRIP_MARKET: /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return index; }))
|
|
2078
|
+
BANNER_CAROUSEL_RIGHT: /*#__PURE__*/React$1.lazy(() => Promise.resolve().then(function () { return index$l; })),
|
|
2079
|
+
GRID_CARD: /*#__PURE__*/React$1.lazy(() => Promise.resolve().then(function () { return index$k; })),
|
|
2080
|
+
BANNER_CAROUSEL_CENTER: /*#__PURE__*/React$1.lazy(() => Promise.resolve().then(function () { return index$j; })),
|
|
2081
|
+
BANNER_CAROUSEL_LEFT: /*#__PURE__*/React$1.lazy(() => Promise.resolve().then(function () { return index$i; })),
|
|
2082
|
+
FORM_SUBSCRIBE: /*#__PURE__*/React$1.lazy(() => Promise.resolve().then(function () { return index$h; })),
|
|
2083
|
+
TEXT_TESTIMONIAL: /*#__PURE__*/React$1.lazy(() => Promise.resolve().then(function () { return index$g; })),
|
|
2084
|
+
VIDEO_TESTIMONIAL: /*#__PURE__*/React$1.lazy(() => Promise.resolve().then(function () { return index$f; })),
|
|
2085
|
+
VIDEO: /*#__PURE__*/React$1.lazy(() => Promise.resolve().then(function () { return index$e; })),
|
|
2086
|
+
INFO: /*#__PURE__*/React$1.lazy(() => Promise.resolve().then(function () { return index$d; })),
|
|
2087
|
+
TEXT: /*#__PURE__*/React$1.lazy(() => Promise.resolve().then(function () { return index$c; })),
|
|
2088
|
+
IMAGE_GALLERY: /*#__PURE__*/React$1.lazy(() => Promise.resolve().then(function () { return index$b; })),
|
|
2089
|
+
FAQ_LISTING: /*#__PURE__*/React$1.lazy(() => Promise.resolve().then(function () { return index$a; })),
|
|
2090
|
+
COURSE_CAROUSEL: /*#__PURE__*/React$1.lazy(() => Promise.resolve().then(function () { return index$8; })),
|
|
2091
|
+
TEAM_CARD: /*#__PURE__*/React$1.lazy(() => Promise.resolve().then(function () { return index$7; })),
|
|
2092
|
+
TEXT_GRID: /*#__PURE__*/React$1.lazy(() => Promise.resolve().then(function () { return index$9; })),
|
|
2093
|
+
CONTACT: /*#__PURE__*/React$1.lazy(() => Promise.resolve().then(function () { return index$6; })),
|
|
2094
|
+
FORM_ENQUIRY: /*#__PURE__*/React$1.lazy(() => Promise.resolve().then(function () { return index$5; })),
|
|
2095
|
+
WEBINAR_LANDING_PAGE: /*#__PURE__*/React$1.lazy(() => Promise.resolve().then(function () { return index$4; })),
|
|
2096
|
+
COURSE_LANDING_PAGE: /*#__PURE__*/React$1.lazy(() => Promise.resolve().then(function () { return index$3; })),
|
|
2097
|
+
FORM_LANDING_PAGE: /*#__PURE__*/React$1.lazy(() => Promise.resolve().then(function () { return index$2; })),
|
|
2098
|
+
TILES_SECTION: /*#__PURE__*/React$1.lazy(() => Promise.resolve().then(function () { return index$1; })),
|
|
2099
|
+
EMAIL_DRIP_MARKET: /*#__PURE__*/React$1.lazy(() => Promise.resolve().then(function () { return index; }))
|
|
2098
2100
|
};
|
|
2099
2101
|
const getCompToRender$1 = type => TYPE_TO_COMPONENT_MAP$1[type] || (() => null);
|
|
2100
|
-
const MemoisedSection$1 = /*#__PURE__*/React.memo(({
|
|
2102
|
+
const MemoisedSection$1 = /*#__PURE__*/React$1.memo(({
|
|
2101
2103
|
sectionData,
|
|
2102
2104
|
extraProps,
|
|
2103
2105
|
sectionIndex
|
|
@@ -2114,7 +2116,7 @@ function SectionRenderer$1({
|
|
|
2114
2116
|
sectionIndex,
|
|
2115
2117
|
extraProps
|
|
2116
2118
|
}) {
|
|
2117
|
-
return /*#__PURE__*/React__default["default"].createElement(React.Suspense, {
|
|
2119
|
+
return /*#__PURE__*/React__default["default"].createElement(React$1.Suspense, {
|
|
2118
2120
|
fallback: null /*GIF maybe*/
|
|
2119
2121
|
}, /*#__PURE__*/React__default["default"].createElement(MemoisedSection$1, {
|
|
2120
2122
|
sectionData: sectionData,
|
|
@@ -2170,7 +2172,7 @@ function PageRenderer$1({
|
|
|
2170
2172
|
currencySymbol
|
|
2171
2173
|
}) {
|
|
2172
2174
|
const navList = header?.navs;
|
|
2173
|
-
const context = React.useMemo(() => ({
|
|
2175
|
+
const context = React$1.useMemo(() => ({
|
|
2174
2176
|
isMobile,
|
|
2175
2177
|
isLandingPages,
|
|
2176
2178
|
layout,
|
|
@@ -2191,8 +2193,8 @@ function PageRenderer$1({
|
|
|
2191
2193
|
countryCode,
|
|
2192
2194
|
currencySymbol
|
|
2193
2195
|
}), [isMobile, isLandingPages, layout, baseURLs, hashToken, isPreview, isEdit, templateId, navList, isMasterTemplate, basePath, validations, isTutorWebsite, extraProps, hideLogin, _id, countryCode, currencySymbol]);
|
|
2194
|
-
const theme = React.useMemo(() => getTheme(color, font, context.isMobile), [color, font, context.isMobile]);
|
|
2195
|
-
const Wrapper = SectionWrapper || React.Fragment;
|
|
2196
|
+
const theme = React$1.useMemo(() => getTheme(color, font, context.isMobile), [color, font, context.isMobile]);
|
|
2197
|
+
const Wrapper = SectionWrapper || React$1.Fragment;
|
|
2196
2198
|
return /*#__PURE__*/React__default["default"].createElement(ThemeProvider, {
|
|
2197
2199
|
theme: theme
|
|
2198
2200
|
}, /*#__PURE__*/React__default["default"].createElement(PageContext.Provider, {
|
|
@@ -2507,16 +2509,16 @@ function Carousel({
|
|
|
2507
2509
|
inverted
|
|
2508
2510
|
}) {
|
|
2509
2511
|
importSlickStyles();
|
|
2510
|
-
const sliderRef = React.useRef();
|
|
2512
|
+
const sliderRef = React$1.useRef();
|
|
2511
2513
|
const {
|
|
2512
2514
|
isMobile
|
|
2513
|
-
} = React.useContext(PageContext);
|
|
2515
|
+
} = React$1.useContext(PageContext);
|
|
2514
2516
|
const classes = useCarouselStyles({
|
|
2515
2517
|
isMobile,
|
|
2516
2518
|
buttonContainerClass,
|
|
2517
2519
|
inverted
|
|
2518
2520
|
});
|
|
2519
|
-
const [currentDot, setCurrentDot] = React.useState(0);
|
|
2521
|
+
const [currentDot, setCurrentDot] = React$1.useState(0);
|
|
2520
2522
|
const sliderSettings = {
|
|
2521
2523
|
dots: isMobile,
|
|
2522
2524
|
infinite: true,
|
|
@@ -2535,7 +2537,7 @@ function Carousel({
|
|
|
2535
2537
|
return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("ul", null, dots.map((item, i) => {
|
|
2536
2538
|
if (currentDot - leftCount <= i && currentDot + rightCount >= i) return /*#__PURE__*/React__default["default"].createElement("li", {
|
|
2537
2539
|
key: i
|
|
2538
|
-
}, item.props.children);else return /*#__PURE__*/React__default["default"].createElement(React.Fragment, {
|
|
2540
|
+
}, item.props.children);else return /*#__PURE__*/React__default["default"].createElement(React$1.Fragment, {
|
|
2539
2541
|
key: i
|
|
2540
2542
|
});
|
|
2541
2543
|
})));
|
|
@@ -2583,7 +2585,7 @@ function Section$4({
|
|
|
2583
2585
|
},
|
|
2584
2586
|
isMobile,
|
|
2585
2587
|
isCustomWebsite
|
|
2586
|
-
} = React.useContext(PageContext);
|
|
2588
|
+
} = React$1.useContext(PageContext);
|
|
2587
2589
|
const classes = useSectionStyles$8({
|
|
2588
2590
|
isCustomWebsite,
|
|
2589
2591
|
isMobile
|
|
@@ -2639,7 +2641,7 @@ function BannerCarouselRight({
|
|
|
2639
2641
|
layout: {
|
|
2640
2642
|
containerWidth
|
|
2641
2643
|
}
|
|
2642
|
-
} = React.useContext(PageContext);
|
|
2644
|
+
} = React$1.useContext(PageContext);
|
|
2643
2645
|
const classes = useSectionStyles$8({
|
|
2644
2646
|
containerWidth,
|
|
2645
2647
|
isMobile
|
|
@@ -2647,7 +2649,7 @@ function BannerCarouselRight({
|
|
|
2647
2649
|
const [{
|
|
2648
2650
|
bannerCarousel
|
|
2649
2651
|
}] = sectionData.components;
|
|
2650
|
-
const Wrapper = bannerCarousel.components.length > 1 ? Carousel : React.Fragment;
|
|
2652
|
+
const Wrapper = bannerCarousel.components.length > 1 ? Carousel : React$1.Fragment;
|
|
2651
2653
|
const wrapperProps = bannerCarousel.components.length > 1 ? {
|
|
2652
2654
|
buttonContainerClass: classes.absoluteButtonsBannerRight,
|
|
2653
2655
|
inverted: false
|
|
@@ -2848,7 +2850,7 @@ function List({
|
|
|
2848
2850
|
containerWidth
|
|
2849
2851
|
},
|
|
2850
2852
|
isMobile
|
|
2851
|
-
} = React.useContext(PageContext);
|
|
2853
|
+
} = React$1.useContext(PageContext);
|
|
2852
2854
|
const classes = useSectionStyles$7({
|
|
2853
2855
|
containerWidth,
|
|
2854
2856
|
isMobile
|
|
@@ -3066,7 +3068,7 @@ const Section$3 = ({
|
|
|
3066
3068
|
},
|
|
3067
3069
|
isMobile,
|
|
3068
3070
|
isCustomWebsite
|
|
3069
|
-
} = React.useContext(PageContext);
|
|
3071
|
+
} = React$1.useContext(PageContext);
|
|
3070
3072
|
const classes = useSectionStyles$6({
|
|
3071
3073
|
imageUrl: nodeData.image.metadata.value,
|
|
3072
3074
|
containerWidth,
|
|
@@ -3126,7 +3128,7 @@ function BannerCarouselCenter({
|
|
|
3126
3128
|
const [{
|
|
3127
3129
|
bannerCarousel
|
|
3128
3130
|
}] = sectionData.components;
|
|
3129
|
-
const Wrapper = bannerCarousel.components.length > 1 ? Carousel : React.Fragment;
|
|
3131
|
+
const Wrapper = bannerCarousel.components.length > 1 ? Carousel : React$1.Fragment;
|
|
3130
3132
|
const wrapperProps = bannerCarousel.components.length > 1 ? {
|
|
3131
3133
|
buttonContainerClass: classes.absoluteButtons,
|
|
3132
3134
|
inverted: true
|
|
@@ -3288,7 +3290,7 @@ function Section$2({
|
|
|
3288
3290
|
},
|
|
3289
3291
|
isMobile,
|
|
3290
3292
|
isCustomWebsite
|
|
3291
|
-
} = React.useContext(PageContext);
|
|
3293
|
+
} = React$1.useContext(PageContext);
|
|
3292
3294
|
const classes = useSectionStyles$5({
|
|
3293
3295
|
isCustomWebsite,
|
|
3294
3296
|
isMobile
|
|
@@ -3344,14 +3346,14 @@ function BannerCarouselLeft({
|
|
|
3344
3346
|
layout: {
|
|
3345
3347
|
containerWidth
|
|
3346
3348
|
}
|
|
3347
|
-
} = React.useContext(PageContext);
|
|
3349
|
+
} = React$1.useContext(PageContext);
|
|
3348
3350
|
const classes = useSectionStyles$5({
|
|
3349
3351
|
containerWidth
|
|
3350
3352
|
});
|
|
3351
3353
|
const [{
|
|
3352
3354
|
bannerCarousel
|
|
3353
3355
|
}] = sectionData.components;
|
|
3354
|
-
const Wrapper = bannerCarousel.components.length > 1 ? Carousel : React.Fragment;
|
|
3356
|
+
const Wrapper = bannerCarousel.components.length > 1 ? Carousel : React$1.Fragment;
|
|
3355
3357
|
return /*#__PURE__*/React__default["default"].createElement("section", {
|
|
3356
3358
|
className: classes.section
|
|
3357
3359
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -3640,16 +3642,16 @@ function SubscribeToNewsletter({
|
|
|
3640
3642
|
validations,
|
|
3641
3643
|
isPreview,
|
|
3642
3644
|
isEdit
|
|
3643
|
-
} = React.useContext(PageContext);
|
|
3645
|
+
} = React$1.useContext(PageContext);
|
|
3644
3646
|
const [nodeData] = sectionData.components;
|
|
3645
3647
|
const classes = useSectionStyles$4({
|
|
3646
3648
|
containerWidth,
|
|
3647
3649
|
isMobile
|
|
3648
3650
|
});
|
|
3649
3651
|
let formInitialValue = nodeData?.inputField?.metadata?.value;
|
|
3650
|
-
const [inputVal, setInputVal] = React.useState(formInitialValue);
|
|
3651
|
-
let [isValid, setIsValid] = React.useState(true);
|
|
3652
|
-
let [btnDisabled, setBtnDisabled] = React.useState(false);
|
|
3652
|
+
const [inputVal, setInputVal] = React$1.useState(formInitialValue);
|
|
3653
|
+
let [isValid, setIsValid] = React$1.useState(true);
|
|
3654
|
+
let [btnDisabled, setBtnDisabled] = React$1.useState(false);
|
|
3653
3655
|
const handleSubmit = () => {
|
|
3654
3656
|
let data = {
|
|
3655
3657
|
sectionId: sectionData.sectionId,
|
|
@@ -3675,7 +3677,7 @@ function SubscribeToNewsletter({
|
|
|
3675
3677
|
}
|
|
3676
3678
|
}
|
|
3677
3679
|
};
|
|
3678
|
-
React.useEffect(() => {
|
|
3680
|
+
React$1.useEffect(() => {
|
|
3679
3681
|
if (!isValid) {
|
|
3680
3682
|
setBtnDisabled(true);
|
|
3681
3683
|
} else {
|
|
@@ -3947,7 +3949,7 @@ function Section$1({
|
|
|
3947
3949
|
layout: {
|
|
3948
3950
|
containerWidth
|
|
3949
3951
|
}
|
|
3950
|
-
} = React.useContext(PageContext);
|
|
3952
|
+
} = React$1.useContext(PageContext);
|
|
3951
3953
|
const carouselList = nodeData?.cardCarousel?.components;
|
|
3952
3954
|
const cardsCount = carouselList?.length;
|
|
3953
3955
|
const slidesToShow = isMobile ? 1 : 2;
|
|
@@ -3967,7 +3969,7 @@ function Section$1({
|
|
|
3967
3969
|
/*#__PURE__*/
|
|
3968
3970
|
// kept an extra element as slick mutates this element and gives it 100% width
|
|
3969
3971
|
// and so, we can't use margins here on the top level element
|
|
3970
|
-
React__default["default"].createElement(React.Fragment, {
|
|
3972
|
+
React__default["default"].createElement(React$1.Fragment, {
|
|
3971
3973
|
key: idx
|
|
3972
3974
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3973
3975
|
className: classes.singleCard
|
|
@@ -4107,8 +4109,8 @@ function Loader({
|
|
|
4107
4109
|
const classes = useStyles({
|
|
4108
4110
|
theme
|
|
4109
4111
|
});
|
|
4110
|
-
const [loaderText, setLoaderText] = React.useState('');
|
|
4111
|
-
React.useEffect(() => {
|
|
4112
|
+
const [loaderText, setLoaderText] = React$1.useState('');
|
|
4113
|
+
React$1.useEffect(() => {
|
|
4112
4114
|
if (texts && texts.length) {
|
|
4113
4115
|
let textID = '';
|
|
4114
4116
|
for (let i = 0; i < texts.length; i++) {
|
|
@@ -4187,8 +4189,8 @@ function VideoPlayer(props) {
|
|
|
4187
4189
|
videoUrl,
|
|
4188
4190
|
imageUrl
|
|
4189
4191
|
} = props;
|
|
4190
|
-
const [isEnabled, setIsEnableed] = React.useState(!imageUrl);
|
|
4191
|
-
const [isLoaded, setIsLoaded] = React.useState(!imageUrl);
|
|
4192
|
+
const [isEnabled, setIsEnableed] = React$1.useState(!imageUrl);
|
|
4193
|
+
const [isLoaded, setIsLoaded] = React$1.useState(!imageUrl);
|
|
4192
4194
|
const classes = useVideoStyles$1({
|
|
4193
4195
|
isLoaded,
|
|
4194
4196
|
imageUrl: imageUrl
|
|
@@ -4403,13 +4405,13 @@ function VideoTestimonial({
|
|
|
4403
4405
|
countryCode,
|
|
4404
4406
|
currencySymbol,
|
|
4405
4407
|
isMobile
|
|
4406
|
-
} = React.useContext(PageContext);
|
|
4408
|
+
} = React$1.useContext(PageContext);
|
|
4407
4409
|
const classes = useVideoTestimonialStyles({
|
|
4408
4410
|
containerWidth,
|
|
4409
4411
|
isMobile
|
|
4410
4412
|
});
|
|
4411
4413
|
const [videoData] = sectionData.components;
|
|
4412
|
-
const Wrapper = videoData.videoCarousel.components.length > 1 ? Carousel : React.Fragment;
|
|
4414
|
+
const Wrapper = videoData.videoCarousel.components.length > 1 ? Carousel : React$1.Fragment;
|
|
4413
4415
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4414
4416
|
className: classes.videoTestimonialSuperContainer
|
|
4415
4417
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -4628,7 +4630,7 @@ function Video({
|
|
|
4628
4630
|
layout: {
|
|
4629
4631
|
containerWidth
|
|
4630
4632
|
}
|
|
4631
|
-
} = React.useContext(PageContext);
|
|
4633
|
+
} = React$1.useContext(PageContext);
|
|
4632
4634
|
const [videoData] = sectionData.components;
|
|
4633
4635
|
const cardsCount = videoData?.videoCarousel?.components?.length;
|
|
4634
4636
|
const slidesToShow = isMobile ? 1 : 2;
|
|
@@ -4828,7 +4830,7 @@ function Info({
|
|
|
4828
4830
|
layout: {
|
|
4829
4831
|
containerWidth
|
|
4830
4832
|
}
|
|
4831
|
-
} = React.useContext(PageContext);
|
|
4833
|
+
} = React$1.useContext(PageContext);
|
|
4832
4834
|
const theme = useTheme();
|
|
4833
4835
|
const slidesToShow = isMobile ? 1 : 4;
|
|
4834
4836
|
const [nodeData] = sectionData.components;
|
|
@@ -4849,7 +4851,7 @@ function Info({
|
|
|
4849
4851
|
const carouselContent = carouselList.map((dt, ind) =>
|
|
4850
4852
|
/*#__PURE__*/
|
|
4851
4853
|
// Need to keep this Fragment otherwise Slick mutates the top level div
|
|
4852
|
-
React__default["default"].createElement(React.Fragment, {
|
|
4854
|
+
React__default["default"].createElement(React$1.Fragment, {
|
|
4853
4855
|
key: ind
|
|
4854
4856
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4855
4857
|
className: classes.card
|
|
@@ -4976,7 +4978,7 @@ const TextSection = ({
|
|
|
4976
4978
|
containerWidth
|
|
4977
4979
|
},
|
|
4978
4980
|
isMobile
|
|
4979
|
-
} = React.useContext(PageContext);
|
|
4981
|
+
} = React$1.useContext(PageContext);
|
|
4980
4982
|
const classes = useSectionStyles$2({
|
|
4981
4983
|
containerWidth,
|
|
4982
4984
|
isMobile
|
|
@@ -5125,7 +5127,7 @@ function PhotoGallery({
|
|
|
5125
5127
|
layout: {
|
|
5126
5128
|
containerWidth
|
|
5127
5129
|
}
|
|
5128
|
-
} = React.useContext(PageContext);
|
|
5130
|
+
} = React$1.useContext(PageContext);
|
|
5129
5131
|
const [nodeData] = sectionData.components;
|
|
5130
5132
|
const carouselList = nodeData?.cardCarousel?.components;
|
|
5131
5133
|
const cardsCount = carouselList?.length;
|
|
@@ -5147,7 +5149,7 @@ function PhotoGallery({
|
|
|
5147
5149
|
arrows: false
|
|
5148
5150
|
};
|
|
5149
5151
|
const carouselContent = carouselList?.map((el, idx) => {
|
|
5150
|
-
return /*#__PURE__*/React__default["default"].createElement(React.Fragment, {
|
|
5152
|
+
return /*#__PURE__*/React__default["default"].createElement(React$1.Fragment, {
|
|
5151
5153
|
key: idx
|
|
5152
5154
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5153
5155
|
className: classes.singleCard
|
|
@@ -5277,13 +5279,13 @@ const useFaqListStyles = createUseStyles(theme => ({
|
|
|
5277
5279
|
const FAQListing = ({
|
|
5278
5280
|
sectionData
|
|
5279
5281
|
}) => {
|
|
5280
|
-
const [selectedIndex, setSelectedIndex] = React.useState(0);
|
|
5282
|
+
const [selectedIndex, setSelectedIndex] = React$1.useState(0);
|
|
5281
5283
|
const {
|
|
5282
5284
|
layout: {
|
|
5283
5285
|
containerWidth
|
|
5284
5286
|
},
|
|
5285
5287
|
isMobile
|
|
5286
|
-
} = React.useContext(PageContext);
|
|
5288
|
+
} = React$1.useContext(PageContext);
|
|
5287
5289
|
const classes = useFaqListStyles({
|
|
5288
5290
|
selectedIndex,
|
|
5289
5291
|
containerWidth,
|
|
@@ -5465,7 +5467,7 @@ const TextGrid = ({
|
|
|
5465
5467
|
layout: {
|
|
5466
5468
|
containerWidth
|
|
5467
5469
|
}
|
|
5468
|
-
} = React.useContext(PageContext);
|
|
5470
|
+
} = React$1.useContext(PageContext);
|
|
5469
5471
|
const [nodeData] = sectionData.components;
|
|
5470
5472
|
const cardsCount = nodeData?.contentList?.components?.length;
|
|
5471
5473
|
const slidesToShow = isMobile ? 1 : 2;
|
|
@@ -5480,7 +5482,7 @@ const TextGrid = ({
|
|
|
5480
5482
|
infinite: false,
|
|
5481
5483
|
slidesToShow: isMobile ? 1.1 : 2
|
|
5482
5484
|
};
|
|
5483
|
-
const carouselContent = nodeData?.contentList?.components?.map((item, index) => /*#__PURE__*/React__default["default"].createElement(React.Fragment, {
|
|
5485
|
+
const carouselContent = nodeData?.contentList?.components?.map((item, index) => /*#__PURE__*/React__default["default"].createElement(React$1.Fragment, {
|
|
5484
5486
|
key: index
|
|
5485
5487
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5486
5488
|
className: classes.node
|
|
@@ -5858,7 +5860,7 @@ function CourseCard({
|
|
|
5858
5860
|
const classes = useCourseStyles();
|
|
5859
5861
|
const {
|
|
5860
5862
|
isEdit
|
|
5861
|
-
} = React.useContext(PageContext);
|
|
5863
|
+
} = React$1.useContext(PageContext);
|
|
5862
5864
|
const discount = parseInt((card?.price - card?.finalPrice) / card?.price * 100).toFixed(2);
|
|
5863
5865
|
const defaultCardImg = 'https://cp-assets-public.s3.ap-south-1.amazonaws.com/cams/cards-icon/default_course.png';
|
|
5864
5866
|
const price = formatCurrency(countryCode, card?.price, currencySymbol);
|
|
@@ -5923,11 +5925,11 @@ function courses({
|
|
|
5923
5925
|
isEdit,
|
|
5924
5926
|
countryCode,
|
|
5925
5927
|
currencySymbol
|
|
5926
|
-
} = React.useContext(PageContext);
|
|
5927
|
-
const [cardList, setCardList] = React.useState(null);
|
|
5928
|
-
const [errored, setErrored] = React.useState(false);
|
|
5929
|
-
const [fallBackImages, setFallbackImages] = React.useState([]);
|
|
5930
|
-
const [showShimmer, setShowShimmer] = React.useState(true);
|
|
5928
|
+
} = React$1.useContext(PageContext);
|
|
5929
|
+
const [cardList, setCardList] = React$1.useState(null);
|
|
5930
|
+
const [errored, setErrored] = React$1.useState(false);
|
|
5931
|
+
const [fallBackImages, setFallbackImages] = React$1.useState([]);
|
|
5932
|
+
const [showShimmer, setShowShimmer] = React$1.useState(true);
|
|
5931
5933
|
const classes = useCourseStyles({
|
|
5932
5934
|
containerWidth,
|
|
5933
5935
|
isMobile
|
|
@@ -5965,7 +5967,7 @@ function courses({
|
|
|
5965
5967
|
});
|
|
5966
5968
|
}
|
|
5967
5969
|
};
|
|
5968
|
-
React.useEffect(() => {
|
|
5970
|
+
React$1.useEffect(() => {
|
|
5969
5971
|
const placeholders = nodeData?.cardCarousel?.metadata?.placeholders;
|
|
5970
5972
|
// For Master template Preview: Show placeholder images. If placeholder doesn't come from backend, show shimmer.
|
|
5971
5973
|
if (isMasterTemplate) {
|
|
@@ -6017,7 +6019,7 @@ function courses({
|
|
|
6017
6019
|
countryCode: countryCode,
|
|
6018
6020
|
currencySymbol: currencySymbol
|
|
6019
6021
|
})) : fallBackImages?.map((dt, ind) => {
|
|
6020
|
-
return /*#__PURE__*/React__default["default"].createElement(React.Fragment, {
|
|
6022
|
+
return /*#__PURE__*/React__default["default"].createElement(React$1.Fragment, {
|
|
6021
6023
|
key: ind
|
|
6022
6024
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6023
6025
|
style: {
|
|
@@ -6235,7 +6237,7 @@ function TeamCard({
|
|
|
6235
6237
|
layout: {
|
|
6236
6238
|
containerWidth
|
|
6237
6239
|
}
|
|
6238
|
-
} = React.useContext(PageContext);
|
|
6240
|
+
} = React$1.useContext(PageContext);
|
|
6239
6241
|
const [teamData] = sectionData.components;
|
|
6240
6242
|
const cardsCount = teamData?.teamCarousel?.components?.length;
|
|
6241
6243
|
const slidesToShow = isMobile ? 1 : 4;
|
|
@@ -6458,28 +6460,28 @@ function FormEnquiry({
|
|
|
6458
6460
|
validations,
|
|
6459
6461
|
isPreview,
|
|
6460
6462
|
isEdit
|
|
6461
|
-
} = React.useContext(PageContext);
|
|
6463
|
+
} = React$1.useContext(PageContext);
|
|
6462
6464
|
const classes = useSectionStyles$1({
|
|
6463
6465
|
containerWidth,
|
|
6464
6466
|
isMobile
|
|
6465
6467
|
});
|
|
6466
6468
|
const [nodeData] = sectionData.components;
|
|
6467
6469
|
const theme = useTheme();
|
|
6468
|
-
let [btnDisabled, setBtnDisabled] = React.useState(false);
|
|
6470
|
+
let [btnDisabled, setBtnDisabled] = React$1.useState(false);
|
|
6469
6471
|
let formInitialValue = {
|
|
6470
6472
|
name: nodeData?.nameField?.metadata?.value,
|
|
6471
6473
|
phone: nodeData?.phoneField?.metadata?.value,
|
|
6472
6474
|
email: nodeData?.emailField?.metadata?.value,
|
|
6473
6475
|
message: nodeData?.messageField?.metadata?.value
|
|
6474
6476
|
};
|
|
6475
|
-
const [inputVal, setInputVal] = React.useState(formInitialValue);
|
|
6476
|
-
const [validData, setValidData] = React.useState({
|
|
6477
|
+
const [inputVal, setInputVal] = React$1.useState(formInitialValue);
|
|
6478
|
+
const [validData, setValidData] = React$1.useState({
|
|
6477
6479
|
nameValid: 1,
|
|
6478
6480
|
emailValid: 1,
|
|
6479
6481
|
phoneValid: 1,
|
|
6480
6482
|
messageValid: 1
|
|
6481
6483
|
});
|
|
6482
|
-
React.useEffect(() => {
|
|
6484
|
+
React$1.useEffect(() => {
|
|
6483
6485
|
if (validData?.nameValid && validData?.emailValid && validData?.phoneValid && validData?.messageValid) {
|
|
6484
6486
|
setBtnDisabled(false);
|
|
6485
6487
|
} else {
|
|
@@ -6895,8 +6897,8 @@ function Contact({
|
|
|
6895
6897
|
validations,
|
|
6896
6898
|
isPreview,
|
|
6897
6899
|
isEdit
|
|
6898
|
-
} = React.useContext(PageContext);
|
|
6899
|
-
let [btnDisabled, setBtnDisabled] = React.useState(false);
|
|
6900
|
+
} = React$1.useContext(PageContext);
|
|
6901
|
+
let [btnDisabled, setBtnDisabled] = React$1.useState(false);
|
|
6900
6902
|
const [nodeData] = sectionData.components;
|
|
6901
6903
|
const classes = useSectionStyles({
|
|
6902
6904
|
containerWidth,
|
|
@@ -6908,8 +6910,8 @@ function Contact({
|
|
|
6908
6910
|
email: nodeData?.emailField?.metadata?.value,
|
|
6909
6911
|
message: nodeData?.messageField?.metadata?.value
|
|
6910
6912
|
};
|
|
6911
|
-
const [inputVal, setInputVal] = React.useState(formInitialValue);
|
|
6912
|
-
const [validData, setValidData] = React.useState({
|
|
6913
|
+
const [inputVal, setInputVal] = React$1.useState(formInitialValue);
|
|
6914
|
+
const [validData, setValidData] = React$1.useState({
|
|
6913
6915
|
nameValid: 1,
|
|
6914
6916
|
emailValid: 1,
|
|
6915
6917
|
phoneValid: 1,
|
|
@@ -6925,7 +6927,7 @@ function Contact({
|
|
|
6925
6927
|
setBtnDisabled(true);
|
|
6926
6928
|
setInputVal(formInitialValue);
|
|
6927
6929
|
};
|
|
6928
|
-
React.useEffect(() => {
|
|
6930
|
+
React$1.useEffect(() => {
|
|
6929
6931
|
if (validData?.nameValid && validData?.emailValid && validData?.phoneValid && validData?.messageValid) {
|
|
6930
6932
|
setBtnDisabled(false);
|
|
6931
6933
|
} else {
|
|
@@ -7331,9 +7333,9 @@ const useWebinarPromotionPage = createUseStyles(theme => {
|
|
|
7331
7333
|
});
|
|
7332
7334
|
|
|
7333
7335
|
const SingleVideoSlide$1 = props => {
|
|
7334
|
-
const [isReadMore, setIsReadMore] = React.useState(false);
|
|
7336
|
+
const [isReadMore, setIsReadMore] = React$1.useState(false);
|
|
7335
7337
|
const theme = useTheme();
|
|
7336
|
-
React.useEffect(() => {
|
|
7338
|
+
React$1.useEffect(() => {
|
|
7337
7339
|
// remaining days epoch
|
|
7338
7340
|
// current date epoch
|
|
7339
7341
|
// subtract remaining days from current day epoch
|
|
@@ -7357,13 +7359,13 @@ const SingleVideoSlide$1 = props => {
|
|
|
7357
7359
|
}) => {
|
|
7358
7360
|
if (days === 0 && hours < 24) {
|
|
7359
7361
|
if (countryCode === 'KR') {
|
|
7360
|
-
return /*#__PURE__*/
|
|
7362
|
+
return /*#__PURE__*/React.createElement("span", null, hours, " \uC2DC\uAC04 ", minutes, " \uBD84 ", seconds, "\uCD08");
|
|
7361
7363
|
}
|
|
7362
|
-
return /*#__PURE__*/
|
|
7364
|
+
return /*#__PURE__*/React.createElement("span", null, hours, "h ", minutes, "m ", seconds, "s");
|
|
7363
7365
|
} else {
|
|
7364
7366
|
let given = moment__default["default"](props.data.offerPriceEndDate);
|
|
7365
7367
|
let current = moment__default["default"]().startOf('day');
|
|
7366
|
-
return /*#__PURE__*/
|
|
7368
|
+
return /*#__PURE__*/React.createElement("span", null, Math.floor(moment__default["default"].duration(given.diff(current)).asDays()), ' ', countryCode === 'KR' ? '일' : 'day(s)');
|
|
7367
7369
|
}
|
|
7368
7370
|
};
|
|
7369
7371
|
const checkIfOfferIsValid = () => moment__default["default"]().diff(moment__default["default"](props.data.offerPriceEndDate)) < 0;
|
|
@@ -7411,20 +7413,20 @@ const SingleVideoSlide$1 = props => {
|
|
|
7411
7413
|
const limitedPeriodOfferText = countryCode === 'KR' ? '기간 한정 딜이므로 서두르세요!' : 'Hurry up! Offer for limited period only';
|
|
7412
7414
|
const renderOfferEndsInText = () => {
|
|
7413
7415
|
if (countryCode === 'KR') {
|
|
7414
|
-
return /*#__PURE__*/
|
|
7416
|
+
return /*#__PURE__*/React.createElement("p", {
|
|
7415
7417
|
className: classes.offerText
|
|
7416
|
-
}, /*#__PURE__*/
|
|
7418
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
7417
7419
|
className: classes.courseDetailTime
|
|
7418
|
-
}, /*#__PURE__*/
|
|
7420
|
+
}, /*#__PURE__*/React.createElement(Countdown__default["default"], {
|
|
7419
7421
|
renderer: renderer,
|
|
7420
7422
|
date: data.offerPriceEndDate
|
|
7421
7423
|
})), ' ', "\uD6C4\xA0\uC2E0\uCCAD\xA0\uB9C8\uAC10\xA0\uC608\uC815");
|
|
7422
7424
|
} else {
|
|
7423
|
-
return /*#__PURE__*/
|
|
7425
|
+
return /*#__PURE__*/React.createElement("p", {
|
|
7424
7426
|
className: classes.offerText
|
|
7425
|
-
}, "Offer Ends in", ' ', /*#__PURE__*/
|
|
7427
|
+
}, "Offer Ends in", ' ', /*#__PURE__*/React.createElement("span", {
|
|
7426
7428
|
className: classes.courseDetailTime
|
|
7427
|
-
}, /*#__PURE__*/
|
|
7429
|
+
}, /*#__PURE__*/React.createElement(Countdown__default["default"], {
|
|
7428
7430
|
renderer: renderer,
|
|
7429
7431
|
date: data.offerPriceEndDate
|
|
7430
7432
|
})));
|
|
@@ -7440,53 +7442,56 @@ const SingleVideoSlide$1 = props => {
|
|
|
7440
7442
|
const finalPrice = formatCurrency(countryCode, data?.price, currencySymbol);
|
|
7441
7443
|
const buyNowText = countryCode === 'KR' ? '이 웨비나 신청하기' : 'BUY NOW';
|
|
7442
7444
|
const registerNowText = countryCode === 'KR' ? '웨비나 신청하기' : 'REGISTER NOW';
|
|
7443
|
-
const momentLocale = countryCode === 'KR' ? '
|
|
7444
|
-
|
|
7445
|
+
const momentLocale = countryCode === 'KR' ? 'ko' : 'in';
|
|
7446
|
+
if (countryCode === 'KR') {
|
|
7447
|
+
moment__default["default"].updateLocale('ko', koreanLocale__default["default"]);
|
|
7448
|
+
}
|
|
7449
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
7445
7450
|
className: classes.videoCarouselContainer
|
|
7446
|
-
}, /*#__PURE__*/
|
|
7451
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
7447
7452
|
className: classes.webinarCarousel
|
|
7448
|
-
}, /*#__PURE__*/
|
|
7453
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
7449
7454
|
className: classes.iframeSuperContainer
|
|
7450
|
-
}, /*#__PURE__*/
|
|
7455
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
7451
7456
|
className: classes.videoDetails
|
|
7452
|
-
}, data?.isPaid !== 0 && (checkIfOfferIsValid() || data.offerPriceValidFor > 0) && /*#__PURE__*/
|
|
7457
|
+
}, data?.isPaid !== 0 && (checkIfOfferIsValid() || data.offerPriceValidFor > 0) && /*#__PURE__*/React.createElement("div", null, data.offerPriceValidFor > conversions && (data.discount && data.offerPriceEndDate ? checkIfOfferIsValid() : true) ? /*#__PURE__*/React.createElement("div", {
|
|
7453
7458
|
className: classes.bannerContainer
|
|
7454
|
-
}, /*#__PURE__*/
|
|
7459
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
7455
7460
|
className: classes.bannerContainerText
|
|
7456
|
-
}, renderHurryUpBannerText())) : checkIfOfferIsValid() && data.offerPriceValidFor !== null ? data.offerPriceValidFor - conversions > 0 : /*#__PURE__*/
|
|
7461
|
+
}, renderHurryUpBannerText())) : checkIfOfferIsValid() && data.offerPriceValidFor !== null ? data.offerPriceValidFor - conversions > 0 : /*#__PURE__*/React.createElement("div", {
|
|
7457
7462
|
className: classes.bannerContainer
|
|
7458
|
-
}, /*#__PURE__*/
|
|
7463
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
7459
7464
|
className: classes.bannerContainerText
|
|
7460
|
-
}, limitedPeriodOfferText))), /*#__PURE__*/
|
|
7465
|
+
}, limitedPeriodOfferText))), /*#__PURE__*/React.createElement("h3", {
|
|
7461
7466
|
ref: data?.videoTextHeading?.refSetter,
|
|
7462
7467
|
className: classes.videoDetailsHeading,
|
|
7463
7468
|
dangerouslySetInnerHTML: {
|
|
7464
7469
|
__html: data.title
|
|
7465
7470
|
}
|
|
7466
|
-
}), /*#__PURE__*/
|
|
7471
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
7467
7472
|
className: classes.courseDetailsTags
|
|
7468
|
-
}, /*#__PURE__*/
|
|
7473
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
7469
7474
|
className: classes.courseDetailTag
|
|
7470
|
-
}, /*#__PURE__*/
|
|
7475
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
7471
7476
|
className: classes.iconBackground
|
|
7472
|
-
}, /*#__PURE__*/
|
|
7477
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
7473
7478
|
name: 'Calendar',
|
|
7474
7479
|
color: theme.palette.primary.main
|
|
7475
|
-
})), /*#__PURE__*/
|
|
7480
|
+
})), /*#__PURE__*/React.createElement("div", null, moment__default["default"](data.startDate).locale(momentLocale).format('Do MMM YY') + ' ', moment__default["default"](data.startTime).locale(momentLocale).format('h:mm A'), /*#__PURE__*/React.createElement("span", null, " - "), moment__default["default"](data.endTime).locale(momentLocale).format('h:mm A'))), /*#__PURE__*/React.createElement("div", {
|
|
7476
7481
|
className: classes.courseDetailTag
|
|
7477
|
-
}, /*#__PURE__*/
|
|
7482
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
7478
7483
|
className: classes.iconBackground
|
|
7479
|
-
}, /*#__PURE__*/
|
|
7484
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
7480
7485
|
color: theme.palette.primary.main,
|
|
7481
7486
|
width: "20px",
|
|
7482
7487
|
name: `${data.webinarLocation === 'Location' ? 'Location' : 'Video'}`
|
|
7483
|
-
})), /*#__PURE__*/
|
|
7488
|
+
})), /*#__PURE__*/React.createElement("div", null, data.webinarLocation === 'Location' ? data.webinarLink : data.webinarLocation))), /*#__PURE__*/React.createElement("p", {
|
|
7484
7489
|
ref: data?.videoTextContent?.refSetter,
|
|
7485
7490
|
className: classes.courseDetailContent,
|
|
7486
7491
|
dangerouslySetInnerHTML: {
|
|
7487
7492
|
__html: isReadMore ? data.description : data.description.substring(0, 250)
|
|
7488
7493
|
}
|
|
7489
|
-
}), /*#__PURE__*/
|
|
7494
|
+
}), /*#__PURE__*/React.createElement("p", {
|
|
7490
7495
|
onClick: () => {
|
|
7491
7496
|
setIsReadMore(true);
|
|
7492
7497
|
},
|
|
@@ -7495,36 +7500,36 @@ const SingleVideoSlide$1 = props => {
|
|
|
7495
7500
|
dangerouslySetInnerHTML: {
|
|
7496
7501
|
__html: data.description.length > 250 && !isReadMore ? handleReadMoreText() : null
|
|
7497
7502
|
}
|
|
7498
|
-
}))), /*#__PURE__*/
|
|
7503
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
7499
7504
|
className: classes.courseViewContainer
|
|
7500
|
-
}, data.isPaid !== 0 && checkIfOfferIsValid() && (data.offerPriceValidFor !== null ? data.offerPriceValidFor - conversions > 0 : true) && renderOfferEndsInText(), /*#__PURE__*/
|
|
7505
|
+
}, data.isPaid !== 0 && checkIfOfferIsValid() && (data.offerPriceValidFor !== null ? data.offerPriceValidFor - conversions > 0 : true) && renderOfferEndsInText(), /*#__PURE__*/React.createElement("div", {
|
|
7501
7506
|
ref: data?.videoFrame?.refSetter,
|
|
7502
7507
|
className: classes.iframeContainer
|
|
7503
|
-
}, /*#__PURE__*/
|
|
7508
|
+
}, /*#__PURE__*/React.createElement(VideoPlayer, {
|
|
7504
7509
|
onlyThumbnail: true,
|
|
7505
7510
|
imageUrl: data.thumbnail,
|
|
7506
7511
|
videoUrl: data.thumbnail,
|
|
7507
7512
|
sectionIndex: props?.sectionIndex
|
|
7508
|
-
})), /*#__PURE__*/
|
|
7513
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
7509
7514
|
style: {
|
|
7510
7515
|
display: data.isPaid ? 'flex' : 'block'
|
|
7511
7516
|
},
|
|
7512
7517
|
className: classes.bottomContainer
|
|
7513
|
-
}, data.isPaid !== 0 ? /*#__PURE__*/
|
|
7518
|
+
}, data.isPaid !== 0 ? /*#__PURE__*/React.createElement("div", {
|
|
7514
7519
|
className: classes.priceContainer
|
|
7515
|
-
}, /*#__PURE__*/
|
|
7520
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
7516
7521
|
className: classes.offerPrice
|
|
7517
|
-
}, effectivePrice), checkForShowDiscount() && (data.offerPriceEndDate ? checkIfOfferIsValid() : true) && /*#__PURE__*/
|
|
7522
|
+
}, effectivePrice), checkForShowDiscount() && (data.offerPriceEndDate ? checkIfOfferIsValid() : true) && /*#__PURE__*/React.createElement("p", {
|
|
7518
7523
|
style: {
|
|
7519
7524
|
fontSize: '20px'
|
|
7520
7525
|
}
|
|
7521
|
-
}, /*#__PURE__*/
|
|
7526
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
7522
7527
|
className: classes.originalPrice
|
|
7523
|
-
}, finalPrice), ' ', /*#__PURE__*/
|
|
7528
|
+
}, finalPrice), ' ', /*#__PURE__*/React.createElement("span", {
|
|
7524
7529
|
className: classes.offerDiscount
|
|
7525
|
-
}, `${data && discount(data)}%`))) : null, /*#__PURE__*/
|
|
7530
|
+
}, `${data && discount(data)}%`))) : null, /*#__PURE__*/React.createElement("div", {
|
|
7526
7531
|
className: classes.webinarButtonContainer
|
|
7527
|
-
}, /*#__PURE__*/
|
|
7532
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
7528
7533
|
style: {
|
|
7529
7534
|
width: data.isPaid ? '100%' : '100%',
|
|
7530
7535
|
fontSize: 'large'
|
|
@@ -7556,7 +7561,7 @@ function CoursePromotionPage$1({
|
|
|
7556
7561
|
countryCode,
|
|
7557
7562
|
currencySymbol,
|
|
7558
7563
|
isMobile
|
|
7559
|
-
} = React.useContext(PageContext);
|
|
7564
|
+
} = React$1.useContext(PageContext);
|
|
7560
7565
|
const classes = useWebinarPromotionPage({
|
|
7561
7566
|
containerWidth,
|
|
7562
7567
|
isMobile
|
|
@@ -7876,7 +7881,7 @@ var calendar = "data:image/svg+xml,%3Csvg%20width%3D%2236%22%20height%3D%2236%22
|
|
|
7876
7881
|
var arrowRight = "data:image/svg+xml,%3Csvg%20width%3D%228%22%20height%3D%2214%22%20viewBox%3D%220%200%208%2014%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M1%2013L7%207L1%201%22%20stroke%3D%22%237D8592%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E";
|
|
7877
7882
|
|
|
7878
7883
|
const SingleVideoSlide = props => {
|
|
7879
|
-
const [isReadMore, setIsReadMore] = React.useState(false);
|
|
7884
|
+
const [isReadMore, setIsReadMore] = React$1.useState(false);
|
|
7880
7885
|
const theme = useTheme();
|
|
7881
7886
|
const {
|
|
7882
7887
|
layout: {
|
|
@@ -7884,7 +7889,7 @@ const SingleVideoSlide = props => {
|
|
|
7884
7889
|
},
|
|
7885
7890
|
isMobile,
|
|
7886
7891
|
isEdit
|
|
7887
|
-
} = React.useContext(PageContext);
|
|
7892
|
+
} = React$1.useContext(PageContext);
|
|
7888
7893
|
const renderer = ({
|
|
7889
7894
|
days,
|
|
7890
7895
|
hours,
|
|
@@ -8130,7 +8135,7 @@ function CoursePromotionPage({
|
|
|
8130
8135
|
countryCode,
|
|
8131
8136
|
currencySymbol,
|
|
8132
8137
|
isMobile
|
|
8133
|
-
} = React.useContext(PageContext);
|
|
8138
|
+
} = React$1.useContext(PageContext);
|
|
8134
8139
|
const classes = useCoursePromotionPage({
|
|
8135
8140
|
containerWidth,
|
|
8136
8141
|
isMobile
|
|
@@ -8315,15 +8320,15 @@ const FormPage = ({
|
|
|
8315
8320
|
sectionData,
|
|
8316
8321
|
extraProps = {}
|
|
8317
8322
|
}) => {
|
|
8318
|
-
const [formData, setFormData] = React.useState({});
|
|
8319
|
-
const [formSubmitted, setformSubmitted] = React.useState(false);
|
|
8323
|
+
const [formData, setFormData] = React$1.useState({});
|
|
8324
|
+
const [formSubmitted, setformSubmitted] = React$1.useState(false);
|
|
8320
8325
|
const metadata = sectionData?.components?.[0]?.metadata || formPageMock;
|
|
8321
8326
|
const {
|
|
8322
8327
|
_id,
|
|
8323
8328
|
baseURLs,
|
|
8324
8329
|
isMobile,
|
|
8325
8330
|
countryCode
|
|
8326
|
-
} = React.useContext(PageContext);
|
|
8331
|
+
} = React$1.useContext(PageContext);
|
|
8327
8332
|
const classes = useFormPageStyles({
|
|
8328
8333
|
isMobile
|
|
8329
8334
|
});
|
|
@@ -8352,7 +8357,7 @@ const FormPage = ({
|
|
|
8352
8357
|
setFormData({});
|
|
8353
8358
|
setformSubmitted(!formSubmitted);
|
|
8354
8359
|
};
|
|
8355
|
-
React.useEffect(() => {
|
|
8360
|
+
React$1.useEffect(() => {
|
|
8356
8361
|
//add all questions to formData
|
|
8357
8362
|
let formData = {};
|
|
8358
8363
|
metadata.questions.forEach(question => {
|
|
@@ -8605,7 +8610,7 @@ function Tiles({
|
|
|
8605
8610
|
},
|
|
8606
8611
|
isPreview,
|
|
8607
8612
|
isEdit
|
|
8608
|
-
} = React.useContext(PageContext);
|
|
8613
|
+
} = React$1.useContext(PageContext);
|
|
8609
8614
|
const classes = useTilesStyles({
|
|
8610
8615
|
isMobile
|
|
8611
8616
|
});
|
|
@@ -8621,7 +8626,7 @@ function Tiles({
|
|
|
8621
8626
|
}
|
|
8622
8627
|
};
|
|
8623
8628
|
const TileDiv = tilesList?.map((tile, i) => {
|
|
8624
|
-
return /*#__PURE__*/React__default["default"].createElement(React.Fragment, {
|
|
8629
|
+
return /*#__PURE__*/React__default["default"].createElement(React$1.Fragment, {
|
|
8625
8630
|
key: i
|
|
8626
8631
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8627
8632
|
className: classes.tileDiv,
|
|
@@ -9086,7 +9091,7 @@ function EmailDripMarket({
|
|
|
9086
9091
|
sectionData,
|
|
9087
9092
|
extraProps = {}
|
|
9088
9093
|
}) {
|
|
9089
|
-
const isInitialMount = React.useRef(true);
|
|
9094
|
+
const isInitialMount = React$1.useRef(true);
|
|
9090
9095
|
const convertToHtml = sectionData => {
|
|
9091
9096
|
const html = ReactDOMServer__default["default"].renderToStaticMarkup( /*#__PURE__*/React__default["default"].createElement(Section, {
|
|
9092
9097
|
nodeData: sectionData,
|
|
@@ -9096,7 +9101,7 @@ function EmailDripMarket({
|
|
|
9096
9101
|
}));
|
|
9097
9102
|
return html;
|
|
9098
9103
|
};
|
|
9099
|
-
React.useEffect(() => {
|
|
9104
|
+
React$1.useEffect(() => {
|
|
9100
9105
|
if (isInitialMount.current) {
|
|
9101
9106
|
isInitialMount.current = false;
|
|
9102
9107
|
} else {
|
|
@@ -9105,7 +9110,7 @@ function EmailDripMarket({
|
|
|
9105
9110
|
}, [extraProps?.convertedHtml]);
|
|
9106
9111
|
|
|
9107
9112
|
// const mockData = sectionData?.sections[0];
|
|
9108
|
-
const emailRef = React.useRef(null);
|
|
9113
|
+
const emailRef = React$1.useRef(null);
|
|
9109
9114
|
return /*#__PURE__*/React__default["default"].createElement("section", {
|
|
9110
9115
|
style: {
|
|
9111
9116
|
width: '95%',
|
|
@@ -9153,7 +9158,7 @@ const TYPE_TO_COMPONENT_MAP = {
|
|
|
9153
9158
|
EMAIL_DRIP_MARKET: EmailDripMarket
|
|
9154
9159
|
};
|
|
9155
9160
|
const getCompToRender = type => TYPE_TO_COMPONENT_MAP[type] || (() => null);
|
|
9156
|
-
const MemoisedSection = /*#__PURE__*/React.memo(({
|
|
9161
|
+
const MemoisedSection = /*#__PURE__*/React$1.memo(({
|
|
9157
9162
|
sectionData,
|
|
9158
9163
|
extraProps,
|
|
9159
9164
|
isCustomWebsite,
|
|
@@ -9216,7 +9221,7 @@ function PageRenderer({
|
|
|
9216
9221
|
hideLogin
|
|
9217
9222
|
}) {
|
|
9218
9223
|
const navList = header?.navs;
|
|
9219
|
-
const context = React.useMemo(() => ({
|
|
9224
|
+
const context = React$1.useMemo(() => ({
|
|
9220
9225
|
isMobile,
|
|
9221
9226
|
isLandingPages,
|
|
9222
9227
|
layout,
|
|
@@ -9237,8 +9242,8 @@ function PageRenderer({
|
|
|
9237
9242
|
countryCode,
|
|
9238
9243
|
currencySymbol
|
|
9239
9244
|
}), [isMobile, isLandingPages, layout, baseURLs, hashToken, isPreview, isEdit, templateId, navList, isMasterTemplate, basePath, validations, isTutorWebsite, extraProps, hideLogin, _id, countryCode, currencySymbol]);
|
|
9240
|
-
const theme = React.useMemo(() => getTheme(color, font, context.isMobile), [color, font, context.isMobile]);
|
|
9241
|
-
const Wrapper = SectionWrapper || React.Fragment;
|
|
9245
|
+
const theme = React$1.useMemo(() => getTheme(color, font, context.isMobile), [color, font, context.isMobile]);
|
|
9246
|
+
const Wrapper = SectionWrapper || React$1.Fragment;
|
|
9242
9247
|
return /*#__PURE__*/React__default["default"].createElement(ThemeProvider, {
|
|
9243
9248
|
theme: theme
|
|
9244
9249
|
}, /*#__PURE__*/React__default["default"].createElement(PageContext.Provider, {
|