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.es.js
CHANGED
|
@@ -1028,7 +1028,10 @@ function OptionList({
|
|
|
1028
1028
|
isTutorWebsite,
|
|
1029
1029
|
isLandingPages
|
|
1030
1030
|
}) {
|
|
1031
|
-
|
|
1031
|
+
const {
|
|
1032
|
+
isPreview,
|
|
1033
|
+
countryCode
|
|
1034
|
+
} = useContext(PageContext);
|
|
1032
1035
|
const tabsDataModifier = () => {
|
|
1033
1036
|
return optionsData?.map(dt => {
|
|
1034
1037
|
return {
|
|
@@ -1045,7 +1048,7 @@ function OptionList({
|
|
|
1045
1048
|
const isAndroidDelisted = headerData?.isAndroidDelisted;
|
|
1046
1049
|
const apkURL = headerData?.apkURL;
|
|
1047
1050
|
const downloadApkURL = isAndroidDelisted && apkURL ? apkURL : null;
|
|
1048
|
-
|
|
1051
|
+
const downloadAppText = countryCode === 'KR' ? '앱다운로드' : 'Download App';
|
|
1049
1052
|
const renderDownloadAppButton = () => {
|
|
1050
1053
|
return /*#__PURE__*/React.createElement(React.Fragment, null, apkURL && /*#__PURE__*/React.createElement("a", {
|
|
1051
1054
|
download: true,
|
|
@@ -1054,8 +1057,8 @@ function OptionList({
|
|
|
1054
1057
|
className: classes.socialBtnItems
|
|
1055
1058
|
}, /*#__PURE__*/React.createElement("img", {
|
|
1056
1059
|
style: {
|
|
1057
|
-
width:
|
|
1058
|
-
borderRadius:
|
|
1060
|
+
width: '139px',
|
|
1061
|
+
borderRadius: '8px'
|
|
1059
1062
|
},
|
|
1060
1063
|
src: downloadApkImage,
|
|
1061
1064
|
alt: "download-apk"
|
|
@@ -1114,7 +1117,7 @@ function OptionList({
|
|
|
1114
1117
|
data: {
|
|
1115
1118
|
link: downloadApkURL ? downloadApkURL : headerData?.appLink,
|
|
1116
1119
|
isLink: 1,
|
|
1117
|
-
value:
|
|
1120
|
+
value: downloadAppText,
|
|
1118
1121
|
isExternal: 1
|
|
1119
1122
|
},
|
|
1120
1123
|
type: 'primary',
|
|
@@ -1316,7 +1319,8 @@ function MobileHeader({
|
|
|
1316
1319
|
isLandingPage = false
|
|
1317
1320
|
}) {
|
|
1318
1321
|
const {
|
|
1319
|
-
isCustomWebsite
|
|
1322
|
+
isCustomWebsite,
|
|
1323
|
+
countryCode
|
|
1320
1324
|
} = useContext(PageContext);
|
|
1321
1325
|
const {
|
|
1322
1326
|
isFixed = true
|
|
@@ -1343,7 +1347,7 @@ function MobileHeader({
|
|
|
1343
1347
|
let iosUrl = null;
|
|
1344
1348
|
let androidUrl = null;
|
|
1345
1349
|
let downloadLink = null;
|
|
1346
|
-
|
|
1350
|
+
const downloadAppText = countryCode === 'KR' ? '앱다운로드' : 'Download App';
|
|
1347
1351
|
if (isTutorWebsite) {
|
|
1348
1352
|
if (header?.iosUrl) {
|
|
1349
1353
|
iosUrl = /*#__PURE__*/React.createElement(Button, {
|
|
@@ -1391,7 +1395,7 @@ function MobileHeader({
|
|
|
1391
1395
|
data: {
|
|
1392
1396
|
link: header?.iosUrl ? header?.iosUrl : header?.apkURL,
|
|
1393
1397
|
isLink: 1,
|
|
1394
|
-
value:
|
|
1398
|
+
value: downloadAppText,
|
|
1395
1399
|
isExternal: 1
|
|
1396
1400
|
},
|
|
1397
1401
|
type: 'primary',
|
|
@@ -1406,7 +1410,7 @@ function MobileHeader({
|
|
|
1406
1410
|
data: {
|
|
1407
1411
|
link: header?.iosUrl,
|
|
1408
1412
|
isLink: 1,
|
|
1409
|
-
value: header?.downloadAppButtonText ||
|
|
1413
|
+
value: header?.downloadAppButtonText || downloadAppText,
|
|
1410
1414
|
isExternal: 1
|
|
1411
1415
|
},
|
|
1412
1416
|
type: 'primary',
|
|
@@ -1419,7 +1423,7 @@ function MobileHeader({
|
|
|
1419
1423
|
data: {
|
|
1420
1424
|
link: header?.androidURL,
|
|
1421
1425
|
isLink: 1,
|
|
1422
|
-
value: header?.downloadAppButtonText ||
|
|
1426
|
+
value: header?.downloadAppButtonText || downloadAppText,
|
|
1423
1427
|
isExternal: 1
|
|
1424
1428
|
},
|
|
1425
1429
|
type: 'primary',
|
|
@@ -1436,7 +1440,7 @@ function MobileHeader({
|
|
|
1436
1440
|
data: {
|
|
1437
1441
|
link: header?.iosUrl ? header?.iosUrl : header?.apkURL,
|
|
1438
1442
|
isLink: 1,
|
|
1439
|
-
value:
|
|
1443
|
+
value: downloadAppText,
|
|
1440
1444
|
isExternal: 1
|
|
1441
1445
|
},
|
|
1442
1446
|
type: 'primary',
|
|
@@ -1449,7 +1453,7 @@ function MobileHeader({
|
|
|
1449
1453
|
data: {
|
|
1450
1454
|
link: header?.appLink,
|
|
1451
1455
|
isLink: 1,
|
|
1452
|
-
value:
|
|
1456
|
+
value: downloadAppText,
|
|
1453
1457
|
isExternal: 1
|
|
1454
1458
|
},
|
|
1455
1459
|
type: 'primary',
|
|
@@ -3713,7 +3717,8 @@ function SubscribeToNewsletter({
|
|
|
3713
3717
|
isMobile,
|
|
3714
3718
|
validations,
|
|
3715
3719
|
isPreview,
|
|
3716
|
-
isEdit
|
|
3720
|
+
isEdit,
|
|
3721
|
+
isLandingPages
|
|
3717
3722
|
} = useContext(PageContext);
|
|
3718
3723
|
const [nodeData] = sectionData.components;
|
|
3719
3724
|
const classes = useSectionStyles$4({
|
|
@@ -3733,7 +3738,10 @@ function SubscribeToNewsletter({
|
|
|
3733
3738
|
type: 'email',
|
|
3734
3739
|
value: inputVal
|
|
3735
3740
|
}
|
|
3736
|
-
}
|
|
3741
|
+
},
|
|
3742
|
+
...(isLandingPages && {
|
|
3743
|
+
source: 'landing_page'
|
|
3744
|
+
})
|
|
3737
3745
|
};
|
|
3738
3746
|
if (!(isPreview || isEdit)) postApiCall(baseURLs, data);
|
|
3739
3747
|
setBtnDisabled(true);
|
|
@@ -6533,7 +6541,8 @@ function FormEnquiry({
|
|
|
6533
6541
|
isMobile,
|
|
6534
6542
|
validations,
|
|
6535
6543
|
isPreview,
|
|
6536
|
-
isEdit
|
|
6544
|
+
isEdit,
|
|
6545
|
+
isLandingPages
|
|
6537
6546
|
} = useContext(PageContext);
|
|
6538
6547
|
const classes = useSectionStyles$1({
|
|
6539
6548
|
containerWidth,
|
|
@@ -6566,7 +6575,10 @@ function FormEnquiry({
|
|
|
6566
6575
|
let data = {
|
|
6567
6576
|
sectionId: sectionData?._id || null,
|
|
6568
6577
|
sectionType: sectionData?.type,
|
|
6569
|
-
payload: inputVal
|
|
6578
|
+
payload: inputVal,
|
|
6579
|
+
...(isLandingPages && {
|
|
6580
|
+
source: 'landing_page'
|
|
6581
|
+
})
|
|
6570
6582
|
};
|
|
6571
6583
|
if (!(isPreview || isEdit)) postApiCall(baseURLs, data);
|
|
6572
6584
|
setBtnDisabled(true);
|
|
@@ -6970,7 +6982,8 @@ function Contact({
|
|
|
6970
6982
|
isMobile,
|
|
6971
6983
|
validations,
|
|
6972
6984
|
isPreview,
|
|
6973
|
-
isEdit
|
|
6985
|
+
isEdit,
|
|
6986
|
+
isLandingPages
|
|
6974
6987
|
} = useContext(PageContext);
|
|
6975
6988
|
let [btnDisabled, setBtnDisabled] = useState(false);
|
|
6976
6989
|
const [nodeData] = sectionData.components;
|
|
@@ -6995,7 +7008,10 @@ function Contact({
|
|
|
6995
7008
|
const data = {
|
|
6996
7009
|
sectionId: sectionData?._id || null,
|
|
6997
7010
|
sectionType: sectionData?.type,
|
|
6998
|
-
payload: inputVal
|
|
7011
|
+
payload: inputVal,
|
|
7012
|
+
...(isLandingPages && {
|
|
7013
|
+
source: 'landing_page'
|
|
7014
|
+
})
|
|
6999
7015
|
};
|
|
7000
7016
|
if (!(isPreview || isEdit)) postApiCall(baseURLs, data);
|
|
7001
7017
|
setBtnDisabled(true);
|