diy-template-components 1.0.21 → 1.0.23
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 +34 -18
- package/build/index.es.js.map +1 -1
- package/build/index.js +34 -18
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -1044,7 +1044,10 @@ function OptionList({
|
|
|
1044
1044
|
isTutorWebsite,
|
|
1045
1045
|
isLandingPages
|
|
1046
1046
|
}) {
|
|
1047
|
-
|
|
1047
|
+
const {
|
|
1048
|
+
isPreview,
|
|
1049
|
+
countryCode
|
|
1050
|
+
} = React.useContext(PageContext);
|
|
1048
1051
|
const tabsDataModifier = () => {
|
|
1049
1052
|
return optionsData?.map(dt => {
|
|
1050
1053
|
return {
|
|
@@ -1061,7 +1064,7 @@ function OptionList({
|
|
|
1061
1064
|
const isAndroidDelisted = headerData?.isAndroidDelisted;
|
|
1062
1065
|
const apkURL = headerData?.apkURL;
|
|
1063
1066
|
const downloadApkURL = isAndroidDelisted && apkURL ? apkURL : null;
|
|
1064
|
-
|
|
1067
|
+
const downloadAppText = countryCode === 'KR' ? '앱다운로드' : 'Download App';
|
|
1065
1068
|
const renderDownloadAppButton = () => {
|
|
1066
1069
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, apkURL && /*#__PURE__*/React__default["default"].createElement("a", {
|
|
1067
1070
|
download: true,
|
|
@@ -1070,8 +1073,8 @@ function OptionList({
|
|
|
1070
1073
|
className: classes.socialBtnItems
|
|
1071
1074
|
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
1072
1075
|
style: {
|
|
1073
|
-
width:
|
|
1074
|
-
borderRadius:
|
|
1076
|
+
width: '139px',
|
|
1077
|
+
borderRadius: '8px'
|
|
1075
1078
|
},
|
|
1076
1079
|
src: downloadApkImage,
|
|
1077
1080
|
alt: "download-apk"
|
|
@@ -1130,7 +1133,7 @@ function OptionList({
|
|
|
1130
1133
|
data: {
|
|
1131
1134
|
link: downloadApkURL ? downloadApkURL : headerData?.appLink,
|
|
1132
1135
|
isLink: 1,
|
|
1133
|
-
value:
|
|
1136
|
+
value: downloadAppText,
|
|
1134
1137
|
isExternal: 1
|
|
1135
1138
|
},
|
|
1136
1139
|
type: 'primary',
|
|
@@ -1332,7 +1335,8 @@ function MobileHeader({
|
|
|
1332
1335
|
isLandingPage = false
|
|
1333
1336
|
}) {
|
|
1334
1337
|
const {
|
|
1335
|
-
isCustomWebsite
|
|
1338
|
+
isCustomWebsite,
|
|
1339
|
+
countryCode
|
|
1336
1340
|
} = React.useContext(PageContext);
|
|
1337
1341
|
const {
|
|
1338
1342
|
isFixed = true
|
|
@@ -1359,7 +1363,7 @@ function MobileHeader({
|
|
|
1359
1363
|
let iosUrl = null;
|
|
1360
1364
|
let androidUrl = null;
|
|
1361
1365
|
let downloadLink = null;
|
|
1362
|
-
|
|
1366
|
+
const downloadAppText = countryCode === 'KR' ? '앱다운로드' : 'Download App';
|
|
1363
1367
|
if (isTutorWebsite) {
|
|
1364
1368
|
if (header?.iosUrl) {
|
|
1365
1369
|
iosUrl = /*#__PURE__*/React__default["default"].createElement(Button, {
|
|
@@ -1407,7 +1411,7 @@ function MobileHeader({
|
|
|
1407
1411
|
data: {
|
|
1408
1412
|
link: header?.iosUrl ? header?.iosUrl : header?.apkURL,
|
|
1409
1413
|
isLink: 1,
|
|
1410
|
-
value:
|
|
1414
|
+
value: downloadAppText,
|
|
1411
1415
|
isExternal: 1
|
|
1412
1416
|
},
|
|
1413
1417
|
type: 'primary',
|
|
@@ -1422,7 +1426,7 @@ function MobileHeader({
|
|
|
1422
1426
|
data: {
|
|
1423
1427
|
link: header?.iosUrl,
|
|
1424
1428
|
isLink: 1,
|
|
1425
|
-
value: header?.downloadAppButtonText ||
|
|
1429
|
+
value: header?.downloadAppButtonText || downloadAppText,
|
|
1426
1430
|
isExternal: 1
|
|
1427
1431
|
},
|
|
1428
1432
|
type: 'primary',
|
|
@@ -1435,7 +1439,7 @@ function MobileHeader({
|
|
|
1435
1439
|
data: {
|
|
1436
1440
|
link: header?.androidURL,
|
|
1437
1441
|
isLink: 1,
|
|
1438
|
-
value: header?.downloadAppButtonText ||
|
|
1442
|
+
value: header?.downloadAppButtonText || downloadAppText,
|
|
1439
1443
|
isExternal: 1
|
|
1440
1444
|
},
|
|
1441
1445
|
type: 'primary',
|
|
@@ -1452,7 +1456,7 @@ function MobileHeader({
|
|
|
1452
1456
|
data: {
|
|
1453
1457
|
link: header?.iosUrl ? header?.iosUrl : header?.apkURL,
|
|
1454
1458
|
isLink: 1,
|
|
1455
|
-
value:
|
|
1459
|
+
value: downloadAppText,
|
|
1456
1460
|
isExternal: 1
|
|
1457
1461
|
},
|
|
1458
1462
|
type: 'primary',
|
|
@@ -1465,7 +1469,7 @@ function MobileHeader({
|
|
|
1465
1469
|
data: {
|
|
1466
1470
|
link: header?.appLink,
|
|
1467
1471
|
isLink: 1,
|
|
1468
|
-
value:
|
|
1472
|
+
value: downloadAppText,
|
|
1469
1473
|
isExternal: 1
|
|
1470
1474
|
},
|
|
1471
1475
|
type: 'primary',
|
|
@@ -3729,7 +3733,8 @@ function SubscribeToNewsletter({
|
|
|
3729
3733
|
isMobile,
|
|
3730
3734
|
validations,
|
|
3731
3735
|
isPreview,
|
|
3732
|
-
isEdit
|
|
3736
|
+
isEdit,
|
|
3737
|
+
isLandingPages
|
|
3733
3738
|
} = React.useContext(PageContext);
|
|
3734
3739
|
const [nodeData] = sectionData.components;
|
|
3735
3740
|
const classes = useSectionStyles$4({
|
|
@@ -3749,7 +3754,10 @@ function SubscribeToNewsletter({
|
|
|
3749
3754
|
type: 'email',
|
|
3750
3755
|
value: inputVal
|
|
3751
3756
|
}
|
|
3752
|
-
}
|
|
3757
|
+
},
|
|
3758
|
+
...(isLandingPages && {
|
|
3759
|
+
source: 'landing_page'
|
|
3760
|
+
})
|
|
3753
3761
|
};
|
|
3754
3762
|
if (!(isPreview || isEdit)) postApiCall(baseURLs, data);
|
|
3755
3763
|
setBtnDisabled(true);
|
|
@@ -6549,7 +6557,8 @@ function FormEnquiry({
|
|
|
6549
6557
|
isMobile,
|
|
6550
6558
|
validations,
|
|
6551
6559
|
isPreview,
|
|
6552
|
-
isEdit
|
|
6560
|
+
isEdit,
|
|
6561
|
+
isLandingPages
|
|
6553
6562
|
} = React.useContext(PageContext);
|
|
6554
6563
|
const classes = useSectionStyles$1({
|
|
6555
6564
|
containerWidth,
|
|
@@ -6582,7 +6591,10 @@ function FormEnquiry({
|
|
|
6582
6591
|
let data = {
|
|
6583
6592
|
sectionId: sectionData?._id || null,
|
|
6584
6593
|
sectionType: sectionData?.type,
|
|
6585
|
-
payload: inputVal
|
|
6594
|
+
payload: inputVal,
|
|
6595
|
+
...(isLandingPages && {
|
|
6596
|
+
source: 'landing_page'
|
|
6597
|
+
})
|
|
6586
6598
|
};
|
|
6587
6599
|
if (!(isPreview || isEdit)) postApiCall(baseURLs, data);
|
|
6588
6600
|
setBtnDisabled(true);
|
|
@@ -6986,7 +6998,8 @@ function Contact({
|
|
|
6986
6998
|
isMobile,
|
|
6987
6999
|
validations,
|
|
6988
7000
|
isPreview,
|
|
6989
|
-
isEdit
|
|
7001
|
+
isEdit,
|
|
7002
|
+
isLandingPages
|
|
6990
7003
|
} = React.useContext(PageContext);
|
|
6991
7004
|
let [btnDisabled, setBtnDisabled] = React.useState(false);
|
|
6992
7005
|
const [nodeData] = sectionData.components;
|
|
@@ -7011,7 +7024,10 @@ function Contact({
|
|
|
7011
7024
|
const data = {
|
|
7012
7025
|
sectionId: sectionData?._id || null,
|
|
7013
7026
|
sectionType: sectionData?.type,
|
|
7014
|
-
payload: inputVal
|
|
7027
|
+
payload: inputVal,
|
|
7028
|
+
...(isLandingPages && {
|
|
7029
|
+
source: 'landing_page'
|
|
7030
|
+
})
|
|
7015
7031
|
};
|
|
7016
7032
|
if (!(isPreview || isEdit)) postApiCall(baseURLs, data);
|
|
7017
7033
|
setBtnDisabled(true);
|