diy-template-components 1.0.7 → 1.0.8
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 +8 -4
- package/build/index.es.js.map +1 -1
- package/build/index.js +9 -4
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -14,6 +14,7 @@ import Slider from 'react-slick';
|
|
|
14
14
|
import axios from 'axios';
|
|
15
15
|
import moment from 'moment';
|
|
16
16
|
import Countdown from 'react-countdown';
|
|
17
|
+
import koreanLocale from 'moment/locale/ko';
|
|
17
18
|
import ReactDOMServer from 'react-dom/server';
|
|
18
19
|
import { createTheming, createUseStyles as createUseStyles$1, useTheme as useTheme$1 } from 'react-jss';
|
|
19
20
|
|
|
@@ -4197,7 +4198,8 @@ const useVideoStyles$1 = createUseStyles(theme => {
|
|
|
4197
4198
|
function VideoPlayer(props) {
|
|
4198
4199
|
const {
|
|
4199
4200
|
videoUrl,
|
|
4200
|
-
imageUrl
|
|
4201
|
+
imageUrl,
|
|
4202
|
+
onlyThumbnail
|
|
4201
4203
|
} = props;
|
|
4202
4204
|
const [isEnabled, setIsEnableed] = useState(!imageUrl);
|
|
4203
4205
|
const [isLoaded, setIsLoaded] = useState(!imageUrl);
|
|
@@ -4218,6 +4220,7 @@ function VideoPlayer(props) {
|
|
|
4218
4220
|
return /*#__PURE__*/React.createElement(React.Fragment, null, !isLoaded && /*#__PURE__*/React.createElement("div", {
|
|
4219
4221
|
className: classes.imgContainer,
|
|
4220
4222
|
onClick: () => {
|
|
4223
|
+
if (onlyThumbnail) return;
|
|
4221
4224
|
setIsEnableed(true);
|
|
4222
4225
|
}
|
|
4223
4226
|
}, /*#__PURE__*/React.createElement(NextImageRenderer, {
|
|
@@ -7229,7 +7232,7 @@ const useWebinarPromotionPage = createUseStyles(theme => {
|
|
|
7229
7232
|
lineHeight: '48px',
|
|
7230
7233
|
margin: '0',
|
|
7231
7234
|
letterSpacing: '-1px',
|
|
7232
|
-
wordBreak: wordBreakValue => wordBreakValue || 'break-
|
|
7235
|
+
wordBreak: wordBreakValue => wordBreakValue || 'break-word',
|
|
7233
7236
|
color: theme.palette.font.default
|
|
7234
7237
|
},
|
|
7235
7238
|
courseViewContainer: {
|
|
@@ -7453,8 +7456,9 @@ const SingleVideoSlide$1 = props => {
|
|
|
7453
7456
|
const buyNowText = countryCode === 'KR' ? '이 웨비나 신청하기' : 'BUY NOW';
|
|
7454
7457
|
const registerNowText = countryCode === 'KR' ? '웨비나 신청하기' : 'REGISTER NOW';
|
|
7455
7458
|
const momentLocale = countryCode === 'KR' ? 'ko' : 'in';
|
|
7456
|
-
|
|
7457
|
-
|
|
7459
|
+
if (countryCode === 'KR') {
|
|
7460
|
+
moment.updateLocale('ko', koreanLocale);
|
|
7461
|
+
} else {
|
|
7458
7462
|
moment.locale('en');
|
|
7459
7463
|
}
|
|
7460
7464
|
return /*#__PURE__*/React.createElement("div", {
|