diy-template-components 1.0.32 → 1.0.34
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 +4 -12
- package/build/index.es.js.map +1 -1
- package/build/index.js +4 -12
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -5948,8 +5948,7 @@ const formatCurrency = (countryCode, value, currencySymbol) => {
|
|
|
5948
5948
|
function CourseCard({
|
|
5949
5949
|
card,
|
|
5950
5950
|
countryCode,
|
|
5951
|
-
currencySymbol
|
|
5952
|
-
utmParams
|
|
5951
|
+
currencySymbol
|
|
5953
5952
|
}) {
|
|
5954
5953
|
const classes = useCourseStyles();
|
|
5955
5954
|
const {
|
|
@@ -5999,7 +5998,7 @@ function CourseCard({
|
|
|
5999
5998
|
className: classes.courseCardStrikePrice
|
|
6000
5999
|
}, /*#__PURE__*/React.createElement("span", null, price), " ", discount > 0 && discount + `% ${offText}`) : null), /*#__PURE__*/React.createElement("a", {
|
|
6001
6000
|
className: classes.coursesAnchorTag,
|
|
6002
|
-
href: isEdit ? null :
|
|
6001
|
+
href: isEdit ? null : card?.shareableLink
|
|
6003
6002
|
}, /*#__PURE__*/React.createElement("div", {
|
|
6004
6003
|
className: classes.courseCardBuyBtn
|
|
6005
6004
|
}, buyNowText)))));
|
|
@@ -6029,7 +6028,6 @@ function courses({
|
|
|
6029
6028
|
isMobile
|
|
6030
6029
|
});
|
|
6031
6030
|
const [nodeData] = sectionData?.components;
|
|
6032
|
-
const [utmParams, setUtmParams] = useState('');
|
|
6033
6031
|
const handleApiCall = () => {
|
|
6034
6032
|
if (baseURLs) {
|
|
6035
6033
|
getCourseList(baseURLs, hashToken).then(response => {
|
|
@@ -6075,11 +6073,6 @@ function courses({
|
|
|
6075
6073
|
else {
|
|
6076
6074
|
handleApiCall();
|
|
6077
6075
|
}
|
|
6078
|
-
const params = new URLSearchParams(window.location.search);
|
|
6079
|
-
const utmParams = params.get('flyy_utm_referrer');
|
|
6080
|
-
if (utmParams) {
|
|
6081
|
-
setUtmParams(utmParams);
|
|
6082
|
-
}
|
|
6083
6076
|
}, []);
|
|
6084
6077
|
const settings = {
|
|
6085
6078
|
className: classes.slickContainer,
|
|
@@ -6117,8 +6110,7 @@ function courses({
|
|
|
6117
6110
|
key: index,
|
|
6118
6111
|
card: card,
|
|
6119
6112
|
countryCode: countryCode,
|
|
6120
|
-
currencySymbol: currencySymbol
|
|
6121
|
-
utmParams: utmParams
|
|
6113
|
+
currencySymbol: currencySymbol
|
|
6122
6114
|
})) : fallBackImages?.map((dt, ind) => {
|
|
6123
6115
|
return /*#__PURE__*/React.createElement(Fragment, {
|
|
6124
6116
|
key: ind
|
|
@@ -7555,7 +7547,7 @@ const SingleVideoSlide$1 = props => {
|
|
|
7555
7547
|
}
|
|
7556
7548
|
};
|
|
7557
7549
|
const finalPrice = formatCurrency(countryCode, data?.price, currencySymbol);
|
|
7558
|
-
const buyNowText = countryCode === 'KR' ? '
|
|
7550
|
+
const buyNowText = countryCode === 'KR' ? '수강신청하기' : 'BUY NOW';
|
|
7559
7551
|
const registerNowText = countryCode === 'KR' ? '웨비나 신청하기' : 'REGISTER NOW';
|
|
7560
7552
|
const momentLocale = countryCode === 'KR' ? 'ko' : 'in';
|
|
7561
7553
|
if (countryCode === 'KR') {
|