diy-template-components 0.3.5 → 0.3.6
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 +54 -125
- package/build/index.es.js.map +1 -1
- package/build/index.js +54 -125
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
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 || typeof window === 'undefined') {
|
|
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 });
|
|
@@ -113,7 +113,7 @@ const useSectionStyles$a = createUseStyles(theme => ({
|
|
|
113
113
|
cursor: 'default',
|
|
114
114
|
position: 'relative',
|
|
115
115
|
height: '55px',
|
|
116
|
-
width: '
|
|
116
|
+
width: '100%'
|
|
117
117
|
},
|
|
118
118
|
optionsContainer: {
|
|
119
119
|
display: 'flex',
|
|
@@ -163,7 +163,10 @@ const useSectionStyles$a = createUseStyles(theme => ({
|
|
|
163
163
|
imageDivImageNext: {
|
|
164
164
|
objectFit: ({
|
|
165
165
|
isCustomWebsite
|
|
166
|
-
} = {}) => isCustomWebsite ? 'contain' : ''
|
|
166
|
+
} = {}) => isCustomWebsite ? 'contain' : '',
|
|
167
|
+
objectPosition: ({
|
|
168
|
+
isCustomWebsite
|
|
169
|
+
} = {}) => isCustomWebsite ? 'left' : ''
|
|
167
170
|
},
|
|
168
171
|
imageAnchorMobile: {
|
|
169
172
|
pointerEvents: 'auto',
|
|
@@ -2272,12 +2275,12 @@ const useSectionStyles$8 = createUseStyles(theme => ({
|
|
|
2272
2275
|
imageContainer: {
|
|
2273
2276
|
width: '50%',
|
|
2274
2277
|
position: 'relative',
|
|
2275
|
-
height: '90%',
|
|
2276
2278
|
paddingBottom: ({
|
|
2277
2279
|
isCustomWebsite
|
|
2278
2280
|
}) => isCustomWebsite ? '35%' : '',
|
|
2279
2281
|
'& img': {
|
|
2280
|
-
|
|
2282
|
+
height: '520px',
|
|
2283
|
+
objectFit: 'cover'
|
|
2281
2284
|
}
|
|
2282
2285
|
},
|
|
2283
2286
|
subTitleHeading: {
|
|
@@ -2304,7 +2307,7 @@ const useSectionStyles$8 = createUseStyles(theme => ({
|
|
|
2304
2307
|
sideBannerImage: {
|
|
2305
2308
|
width: '100%',
|
|
2306
2309
|
height: 'calc(100% - 100px)',
|
|
2307
|
-
|
|
2310
|
+
objectFit: 'cover',
|
|
2308
2311
|
objectPosition: '50% 50%'
|
|
2309
2312
|
},
|
|
2310
2313
|
absoluteButtonsBannerRight: {
|
|
@@ -4397,8 +4400,6 @@ function VideoTestimonial({
|
|
|
4397
4400
|
layout: {
|
|
4398
4401
|
containerWidth
|
|
4399
4402
|
},
|
|
4400
|
-
countryCode,
|
|
4401
|
-
currencySymbol,
|
|
4402
4403
|
isMobile
|
|
4403
4404
|
} = React.useContext(PageContext);
|
|
4404
4405
|
const classes = useVideoTestimonialStyles({
|
|
@@ -4430,9 +4431,7 @@ function VideoTestimonial({
|
|
|
4430
4431
|
})), /*#__PURE__*/React__default["default"].createElement(Wrapper, null, videoData.videoCarousel.components.map((data, index) => /*#__PURE__*/React__default["default"].createElement(SingleVideoSlide$2, {
|
|
4431
4432
|
data: data,
|
|
4432
4433
|
key: index,
|
|
4433
|
-
sectionIndex: sectionIndex
|
|
4434
|
-
countryCode: countryCode,
|
|
4435
|
-
currencySymbol: currencySymbol
|
|
4434
|
+
sectionIndex: sectionIndex
|
|
4436
4435
|
}))))));
|
|
4437
4436
|
}
|
|
4438
4437
|
|
|
@@ -7341,9 +7340,7 @@ const SingleVideoSlide$1 = props => {
|
|
|
7341
7340
|
const {
|
|
7342
7341
|
data,
|
|
7343
7342
|
webinarCtaClick,
|
|
7344
|
-
conversions = 0
|
|
7345
|
-
countryCode,
|
|
7346
|
-
currencySymbol
|
|
7343
|
+
conversions = 0
|
|
7347
7344
|
} = props;
|
|
7348
7345
|
const renderer = ({
|
|
7349
7346
|
days,
|
|
@@ -7353,14 +7350,11 @@ const SingleVideoSlide$1 = props => {
|
|
|
7353
7350
|
completed
|
|
7354
7351
|
}) => {
|
|
7355
7352
|
if (days === 0 && hours < 24) {
|
|
7356
|
-
if (countryCode === 'KR') {
|
|
7357
|
-
return /*#__PURE__*/React__default["default"].createElement("span", null, hours, " \uC2DC\uAC04 ", minutes, " \uBD84 ", seconds, "\uCD08");
|
|
7358
|
-
}
|
|
7359
7353
|
return /*#__PURE__*/React__default["default"].createElement("span", null, hours, "h ", minutes, "m ", seconds, "s");
|
|
7360
7354
|
} else {
|
|
7361
7355
|
let given = moment__default["default"](props.data.offerPriceEndDate);
|
|
7362
7356
|
let current = moment__default["default"]().startOf('day');
|
|
7363
|
-
return /*#__PURE__*/React__default["default"].createElement("span", null, Math.floor(moment__default["default"].duration(given.diff(current)).asDays()),
|
|
7357
|
+
return /*#__PURE__*/React__default["default"].createElement("span", null, Math.floor(moment__default["default"].duration(given.diff(current)).asDays()), " day(s)");
|
|
7364
7358
|
}
|
|
7365
7359
|
};
|
|
7366
7360
|
const checkIfOfferIsValid = () => moment__default["default"]().diff(moment__default["default"](props.data.offerPriceEndDate)) < 0;
|
|
@@ -7392,44 +7386,6 @@ const SingleVideoSlide$1 = props => {
|
|
|
7392
7386
|
return (discount / price * 100).toFixed(2);
|
|
7393
7387
|
};
|
|
7394
7388
|
const classes = useWebinarPromotionPage();
|
|
7395
|
-
const effectivePrice = formatCurrency(countryCode, data?.effectivePrice, currencySymbol);
|
|
7396
|
-
const renderHurryUpBannerText = () => {
|
|
7397
|
-
let count = data.offerPriceValidFor - conversions;
|
|
7398
|
-
if (countryCode === 'KR') {
|
|
7399
|
-
if (count > 1) {
|
|
7400
|
-
return `서두르세요! 현재 신청 가능 인원은 ${count}명 입니다.`;
|
|
7401
|
-
} else {
|
|
7402
|
-
return `서두르세요! ${count}명까지만 신청 가능이 가능합니다.`;
|
|
7403
|
-
}
|
|
7404
|
-
} else {
|
|
7405
|
-
return `Hurry up! Offer left for ${count} ${count > 1 ? 'users now' : 'user only'}`;
|
|
7406
|
-
}
|
|
7407
|
-
};
|
|
7408
|
-
const limitedPeriodOfferText = countryCode === 'KR' ? '기간 한정 딜이므로 서두르세요!' : 'Hurry up! Offer for limited period only';
|
|
7409
|
-
const renderOfferEndsInText = () => {
|
|
7410
|
-
if (countryCode === 'KR') {
|
|
7411
|
-
return /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7412
|
-
className: classes.offerText
|
|
7413
|
-
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
7414
|
-
className: classes.courseDetailTime
|
|
7415
|
-
}, /*#__PURE__*/React__default["default"].createElement(Countdown__default["default"], {
|
|
7416
|
-
renderer: renderer,
|
|
7417
|
-
date: data.offerPriceEndDate
|
|
7418
|
-
})), ' ', "\uD6C4\xA0\uC2E0\uCCAD\xA0\uB9C8\uAC10\xA0\uC608\uC815");
|
|
7419
|
-
} else {
|
|
7420
|
-
return /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7421
|
-
className: classes.offerText
|
|
7422
|
-
}, "Offer Ends in", ' ', /*#__PURE__*/React__default["default"].createElement("span", {
|
|
7423
|
-
className: classes.courseDetailTime
|
|
7424
|
-
}, /*#__PURE__*/React__default["default"].createElement(Countdown__default["default"], {
|
|
7425
|
-
renderer: renderer,
|
|
7426
|
-
date: data.offerPriceEndDate
|
|
7427
|
-
})));
|
|
7428
|
-
}
|
|
7429
|
-
};
|
|
7430
|
-
const finalPrice = formatCurrency(countryCode, data?.price, currencySymbol);
|
|
7431
|
-
const buyNowText = countryCode === 'KR' ? '이 강좌를 수강하세요.' : 'BUY NOW';
|
|
7432
|
-
const registerNowText = countryCode === 'KR' ? '지금 신청하기' : 'REGISTER NOW';
|
|
7433
7389
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7434
7390
|
className: classes.videoCarouselContainer
|
|
7435
7391
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -7442,11 +7398,11 @@ const SingleVideoSlide$1 = props => {
|
|
|
7442
7398
|
className: classes.bannerContainer
|
|
7443
7399
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7444
7400
|
className: classes.bannerContainerText
|
|
7445
|
-
},
|
|
7401
|
+
}, "Hurry up! Offer left for", ' ', data.offerPriceValidFor - conversions, ' ', data.offerPriceValidFor - conversions > 1 ? 'users now' : 'user only')) : checkIfOfferIsValid() && data.offerPriceValidFor !== null ? data.offerPriceValidFor - conversions > 0 : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7446
7402
|
className: classes.bannerContainer
|
|
7447
7403
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7448
7404
|
className: classes.bannerContainerText
|
|
7449
|
-
},
|
|
7405
|
+
}, "Hurry up! Offer for limited period only"))), /*#__PURE__*/React__default["default"].createElement("h3", {
|
|
7450
7406
|
ref: data?.videoTextHeading?.refSetter,
|
|
7451
7407
|
className: classes.videoDetailsHeading,
|
|
7452
7408
|
dangerouslySetInnerHTML: {
|
|
@@ -7486,7 +7442,14 @@ const SingleVideoSlide$1 = props => {
|
|
|
7486
7442
|
}
|
|
7487
7443
|
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7488
7444
|
className: classes.courseViewContainer
|
|
7489
|
-
}, data.isPaid !== 0 && checkIfOfferIsValid() && (data.offerPriceValidFor !== null ? data.offerPriceValidFor - conversions > 0 : true) &&
|
|
7445
|
+
}, data.isPaid !== 0 && checkIfOfferIsValid() && (data.offerPriceValidFor !== null ? data.offerPriceValidFor - conversions > 0 : true) && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7446
|
+
className: classes.offerText
|
|
7447
|
+
}, "Offer Ends in", ' ', /*#__PURE__*/React__default["default"].createElement("span", {
|
|
7448
|
+
className: classes.courseDetailTime
|
|
7449
|
+
}, /*#__PURE__*/React__default["default"].createElement(Countdown__default["default"], {
|
|
7450
|
+
renderer: renderer,
|
|
7451
|
+
date: data.offerPriceEndDate
|
|
7452
|
+
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7490
7453
|
ref: data?.videoFrame?.refSetter,
|
|
7491
7454
|
className: classes.iframeContainer
|
|
7492
7455
|
}, /*#__PURE__*/React__default["default"].createElement(VideoPlayer, {
|
|
@@ -7503,13 +7466,13 @@ const SingleVideoSlide$1 = props => {
|
|
|
7503
7466
|
className: classes.priceContainer
|
|
7504
7467
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7505
7468
|
className: classes.offerPrice
|
|
7506
|
-
}, effectivePrice), checkForShowDiscount() && (data.offerPriceEndDate ? checkIfOfferIsValid() : true) && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7469
|
+
}, "\u20B9", data?.effectivePrice), checkForShowDiscount() && (data.offerPriceEndDate ? checkIfOfferIsValid() : true) && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7507
7470
|
style: {
|
|
7508
7471
|
fontSize: '20px'
|
|
7509
7472
|
}
|
|
7510
7473
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
7511
7474
|
className: classes.originalPrice
|
|
7512
|
-
},
|
|
7475
|
+
}, "\u20B9", data?.price), ' ', /*#__PURE__*/React__default["default"].createElement("span", {
|
|
7513
7476
|
className: classes.offerDiscount
|
|
7514
7477
|
}, `${data && discount(data)}%`))) : null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7515
7478
|
className: classes.webinarButtonContainer
|
|
@@ -7521,7 +7484,7 @@ const SingleVideoSlide$1 = props => {
|
|
|
7521
7484
|
data: {
|
|
7522
7485
|
// link: 'headerData?.loginCtaLink',
|
|
7523
7486
|
// isLink: 1,
|
|
7524
|
-
value: data.isPaid ?
|
|
7487
|
+
value: data.isPaid ? 'BUY NOW' : 'REGISTER NOW'
|
|
7525
7488
|
// isExternal: 1
|
|
7526
7489
|
},
|
|
7527
7490
|
|
|
@@ -7539,12 +7502,10 @@ function CoursePromotionPage$1({
|
|
|
7539
7502
|
sectionIndex
|
|
7540
7503
|
}) {
|
|
7541
7504
|
const {
|
|
7505
|
+
isMobile,
|
|
7542
7506
|
layout: {
|
|
7543
7507
|
containerWidth
|
|
7544
|
-
}
|
|
7545
|
-
countryCode,
|
|
7546
|
-
currencySymbol,
|
|
7547
|
-
isMobile
|
|
7508
|
+
}
|
|
7548
7509
|
} = React.useContext(PageContext);
|
|
7549
7510
|
const classes = useWebinarPromotionPage({
|
|
7550
7511
|
containerWidth,
|
|
@@ -7560,9 +7521,7 @@ function CoursePromotionPage$1({
|
|
|
7560
7521
|
data: sectionData.components[0].metadata,
|
|
7561
7522
|
webinarCtaClick: extraProps.webinarCtaClick,
|
|
7562
7523
|
conversions: extraProps.conversions,
|
|
7563
|
-
sectionIndex: sectionIndex
|
|
7564
|
-
countryCode: countryCode,
|
|
7565
|
-
currencySymbol: currencySymbol
|
|
7524
|
+
sectionIndex: sectionIndex
|
|
7566
7525
|
}))));
|
|
7567
7526
|
}
|
|
7568
7527
|
|
|
@@ -7882,23 +7841,18 @@ const SingleVideoSlide = props => {
|
|
|
7882
7841
|
completed
|
|
7883
7842
|
}) => {
|
|
7884
7843
|
if (days === 0 && hours < 24) {
|
|
7885
|
-
if (countryCode === 'KR') {
|
|
7886
|
-
return /*#__PURE__*/React__default["default"].createElement("span", null, hours, " \uC2DC\uAC04 ", minutes, " \uBD84 ", seconds, "\uCD08");
|
|
7887
|
-
}
|
|
7888
7844
|
return /*#__PURE__*/React__default["default"].createElement("span", null, hours, "h ", minutes, "m ", seconds, "s");
|
|
7889
7845
|
} else {
|
|
7890
7846
|
let given = moment__default["default"](props.data.endDate);
|
|
7891
7847
|
let current = moment__default["default"]().startOf('day');
|
|
7892
|
-
return /*#__PURE__*/React__default["default"].createElement("span", null, Math.floor(moment__default["default"].duration(given.diff(current)).asDays()),
|
|
7848
|
+
return /*#__PURE__*/React__default["default"].createElement("span", null, Math.floor(moment__default["default"].duration(given.diff(current)).asDays()), " day(s)");
|
|
7893
7849
|
}
|
|
7894
7850
|
};
|
|
7895
7851
|
const {
|
|
7896
7852
|
data,
|
|
7897
7853
|
courseBuyNow,
|
|
7898
7854
|
conversions = 20,
|
|
7899
|
-
showCourseInstallment
|
|
7900
|
-
countryCode,
|
|
7901
|
-
currencySymbol
|
|
7855
|
+
showCourseInstallment
|
|
7902
7856
|
} = props;
|
|
7903
7857
|
const showCourseInstallmentData = data?.courseOverviewData;
|
|
7904
7858
|
const InstalmentData = isEdit ? data?.courseOverviewData?.installments?.formData?.installments[0].installmentAmount : data?.courseOverviewData?.installments?.formData?.installmentInfo?.installments[0].installmentPrice;
|
|
@@ -7931,34 +7885,6 @@ const SingleVideoSlide = props => {
|
|
|
7931
7885
|
}) => {
|
|
7932
7886
|
return (discount / price * 100).toFixed(2);
|
|
7933
7887
|
};
|
|
7934
|
-
const renderHurryUpBannerText = () => {
|
|
7935
|
-
return countryCode === 'KR' ? `서두르세요! 현재 신청 가능 인원은 ${data.offerPriceValidFor - conversions}명 입니다.` : `Hurry up! Offer left for ${data.offerPriceValidFor - conversions} users now`;
|
|
7936
|
-
};
|
|
7937
|
-
const limitedPeriodOfferText = countryCode === 'KR' ? `기간 한정 딜이므로 서두르세요!` : 'Hurry up! Offer for limited period only';
|
|
7938
|
-
const renderOfferEndsInText = () => {
|
|
7939
|
-
if (countryCode === 'KR') {
|
|
7940
|
-
return /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7941
|
-
className: classes.offerText
|
|
7942
|
-
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
7943
|
-
className: classes.courseDetailTime
|
|
7944
|
-
}, /*#__PURE__*/React__default["default"].createElement(Countdown__default["default"], {
|
|
7945
|
-
renderer: renderer,
|
|
7946
|
-
date: data.endDate
|
|
7947
|
-
})), ' ', "\uD6C4\xA0\uC2E0\uCCAD\xA0\uB9C8\uAC10\xA0\uC608\uC815");
|
|
7948
|
-
} else {
|
|
7949
|
-
return /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7950
|
-
className: classes.offerText
|
|
7951
|
-
}, "Offer Ends in", ' ', /*#__PURE__*/React__default["default"].createElement("span", {
|
|
7952
|
-
className: classes.courseDetailTime
|
|
7953
|
-
}, /*#__PURE__*/React__default["default"].createElement(Countdown__default["default"], {
|
|
7954
|
-
renderer: renderer,
|
|
7955
|
-
date: data.endDate
|
|
7956
|
-
})));
|
|
7957
|
-
}
|
|
7958
|
-
};
|
|
7959
|
-
const effectivePrice = formatCurrency(countryCode, data?.effectivePrice, currencySymbol);
|
|
7960
|
-
const finalPrice = formatCurrency(countryCode, data?.price, currencySymbol);
|
|
7961
|
-
const buyNowText = countryCode === 'KR' ? '이 강좌를 수강하세요.' : 'BUY NOW';
|
|
7962
7888
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7963
7889
|
className: classes.videoCarouselContainer
|
|
7964
7890
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -7971,11 +7897,11 @@ const SingleVideoSlide = props => {
|
|
|
7971
7897
|
className: classes.bannerContainer
|
|
7972
7898
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7973
7899
|
className: classes.bannerContainerText
|
|
7974
|
-
},
|
|
7900
|
+
}, "Hurry up! Offer left for", ' ', data.offerPriceValidFor - conversions, " users now")) : checkIfOfferIsValid() && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7975
7901
|
className: classes.bannerContainer
|
|
7976
7902
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7977
7903
|
className: classes.bannerContainerText
|
|
7978
|
-
},
|
|
7904
|
+
}, "Hurry up! Offer for limited period only"))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7979
7905
|
className: classes.emblemContainer
|
|
7980
7906
|
}, data?.courseOverviewData?.courseTagList.length && data?.courseOverviewData?.courseTagList?.map(data => {
|
|
7981
7907
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -8040,7 +7966,14 @@ const SingleVideoSlide = props => {
|
|
|
8040
7966
|
}
|
|
8041
7967
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8042
7968
|
className: classes.courseViewContainer
|
|
8043
|
-
}, checkIfOfferIsValid() && (data.offerPriceValidFor !== null ? data.offerPriceValidFor - conversions > 0 : true) &&
|
|
7969
|
+
}, checkIfOfferIsValid() && (data.offerPriceValidFor !== null ? data.offerPriceValidFor - conversions > 0 : true) && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7970
|
+
className: classes.offerText
|
|
7971
|
+
}, "Offer Ends in", ' ', /*#__PURE__*/React__default["default"].createElement("span", {
|
|
7972
|
+
className: classes.courseDetailTime
|
|
7973
|
+
}, /*#__PURE__*/React__default["default"].createElement(Countdown__default["default"], {
|
|
7974
|
+
renderer: renderer,
|
|
7975
|
+
date: data.endDate
|
|
7976
|
+
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8044
7977
|
ref: data?.videoFrame?.refSetter,
|
|
8045
7978
|
className: classes.iframeContainer
|
|
8046
7979
|
}, /*#__PURE__*/React__default["default"].createElement(VideoPlayer, {
|
|
@@ -8054,14 +7987,14 @@ const SingleVideoSlide = props => {
|
|
|
8054
7987
|
className: classes.priceContainer
|
|
8055
7988
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8056
7989
|
className: classes.offerPrice
|
|
8057
|
-
}, effectivePrice), checkForShowDiscount() && (data.endDate ? checkIfOfferIsValid() : true) && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7990
|
+
}, "\u20B9 ", data.effectivePrice), checkForShowDiscount() && (data.endDate ? checkIfOfferIsValid() : true) && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8058
7991
|
style: {
|
|
8059
7992
|
// fontSize: '20px',
|
|
8060
7993
|
marginTop: '0px'
|
|
8061
7994
|
}
|
|
8062
7995
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
8063
7996
|
className: classes.originalPrice
|
|
8064
|
-
},
|
|
7997
|
+
}, "\u20B9 ", data.price), ' ', /*#__PURE__*/React__default["default"].createElement("span", {
|
|
8065
7998
|
className: classes.offerDiscount
|
|
8066
7999
|
}, `${data && discount(data)}%`))), /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(Button, {
|
|
8067
8000
|
style: {
|
|
@@ -8070,7 +8003,7 @@ const SingleVideoSlide = props => {
|
|
|
8070
8003
|
data: {
|
|
8071
8004
|
// link: 'headerData?.loginCtaLink',
|
|
8072
8005
|
// isLink: 1,
|
|
8073
|
-
value:
|
|
8006
|
+
value: 'BUY NOW'
|
|
8074
8007
|
// isExternal: 1
|
|
8075
8008
|
},
|
|
8076
8009
|
|
|
@@ -8106,12 +8039,10 @@ function CoursePromotionPage({
|
|
|
8106
8039
|
sectionIndex
|
|
8107
8040
|
}) {
|
|
8108
8041
|
const {
|
|
8042
|
+
isMobile,
|
|
8109
8043
|
layout: {
|
|
8110
8044
|
containerWidth
|
|
8111
|
-
}
|
|
8112
|
-
countryCode,
|
|
8113
|
-
currencySymbol,
|
|
8114
|
-
isMobile
|
|
8045
|
+
}
|
|
8115
8046
|
} = React.useContext(PageContext);
|
|
8116
8047
|
const classes = useCoursePromotionPage({
|
|
8117
8048
|
containerWidth,
|
|
@@ -8128,9 +8059,7 @@ function CoursePromotionPage({
|
|
|
8128
8059
|
courseBuyNow: extraProps.courseBuyNow,
|
|
8129
8060
|
showCourseInstallment: extraProps.showCourseInstallment,
|
|
8130
8061
|
conversions: extraProps.conversions,
|
|
8131
|
-
sectionIndex: sectionIndex
|
|
8132
|
-
countryCode: countryCode,
|
|
8133
|
-
currencySymbol: currencySymbol
|
|
8062
|
+
sectionIndex: sectionIndex
|
|
8134
8063
|
}))));
|
|
8135
8064
|
}
|
|
8136
8065
|
|