diy-template-components 1.0.22 → 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.js CHANGED
@@ -1064,8 +1064,7 @@ function OptionList({
1064
1064
  const isAndroidDelisted = headerData?.isAndroidDelisted;
1065
1065
  const apkURL = headerData?.apkURL;
1066
1066
  const downloadApkURL = isAndroidDelisted && apkURL ? apkURL : null;
1067
- const downloadAppText = countryCode === "KR" ? "앱다운로드" : 'Download App';
1068
- console.log('sakshat country code options list', countryCode);
1067
+ const downloadAppText = countryCode === 'KR' ? '앱다운로드' : 'Download App';
1069
1068
  const renderDownloadAppButton = () => {
1070
1069
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, apkURL && /*#__PURE__*/React__default["default"].createElement("a", {
1071
1070
  download: true,
@@ -1074,8 +1073,8 @@ function OptionList({
1074
1073
  className: classes.socialBtnItems
1075
1074
  }, /*#__PURE__*/React__default["default"].createElement("img", {
1076
1075
  style: {
1077
- width: "139px",
1078
- borderRadius: "8px"
1076
+ width: '139px',
1077
+ borderRadius: '8px'
1079
1078
  },
1080
1079
  src: downloadApkImage,
1081
1080
  alt: "download-apk"
@@ -1364,9 +1363,7 @@ function MobileHeader({
1364
1363
  let iosUrl = null;
1365
1364
  let androidUrl = null;
1366
1365
  let downloadLink = null;
1367
- const downloadAppText = countryCode === "KR" ? "앱다운로드" : 'Download App';
1368
- console.log('sakshat header mobile', header);
1369
- console.log('sakshat country code mobile', countryCode);
1366
+ const downloadAppText = countryCode === 'KR' ? '앱다운로드' : 'Download App';
1370
1367
  if (isTutorWebsite) {
1371
1368
  if (header?.iosUrl) {
1372
1369
  iosUrl = /*#__PURE__*/React__default["default"].createElement(Button, {
@@ -3736,7 +3733,8 @@ function SubscribeToNewsletter({
3736
3733
  isMobile,
3737
3734
  validations,
3738
3735
  isPreview,
3739
- isEdit
3736
+ isEdit,
3737
+ isLandingPages
3740
3738
  } = React.useContext(PageContext);
3741
3739
  const [nodeData] = sectionData.components;
3742
3740
  const classes = useSectionStyles$4({
@@ -3756,7 +3754,10 @@ function SubscribeToNewsletter({
3756
3754
  type: 'email',
3757
3755
  value: inputVal
3758
3756
  }
3759
- }
3757
+ },
3758
+ ...(isLandingPages && {
3759
+ source: 'landing_page'
3760
+ })
3760
3761
  };
3761
3762
  if (!(isPreview || isEdit)) postApiCall(baseURLs, data);
3762
3763
  setBtnDisabled(true);
@@ -6556,7 +6557,8 @@ function FormEnquiry({
6556
6557
  isMobile,
6557
6558
  validations,
6558
6559
  isPreview,
6559
- isEdit
6560
+ isEdit,
6561
+ isLandingPages
6560
6562
  } = React.useContext(PageContext);
6561
6563
  const classes = useSectionStyles$1({
6562
6564
  containerWidth,
@@ -6589,7 +6591,10 @@ function FormEnquiry({
6589
6591
  let data = {
6590
6592
  sectionId: sectionData?._id || null,
6591
6593
  sectionType: sectionData?.type,
6592
- payload: inputVal
6594
+ payload: inputVal,
6595
+ ...(isLandingPages && {
6596
+ source: 'landing_page'
6597
+ })
6593
6598
  };
6594
6599
  if (!(isPreview || isEdit)) postApiCall(baseURLs, data);
6595
6600
  setBtnDisabled(true);
@@ -6993,7 +6998,8 @@ function Contact({
6993
6998
  isMobile,
6994
6999
  validations,
6995
7000
  isPreview,
6996
- isEdit
7001
+ isEdit,
7002
+ isLandingPages
6997
7003
  } = React.useContext(PageContext);
6998
7004
  let [btnDisabled, setBtnDisabled] = React.useState(false);
6999
7005
  const [nodeData] = sectionData.components;
@@ -7018,7 +7024,10 @@ function Contact({
7018
7024
  const data = {
7019
7025
  sectionId: sectionData?._id || null,
7020
7026
  sectionType: sectionData?.type,
7021
- payload: inputVal
7027
+ payload: inputVal,
7028
+ ...(isLandingPages && {
7029
+ source: 'landing_page'
7030
+ })
7022
7031
  };
7023
7032
  if (!(isPreview || isEdit)) postApiCall(baseURLs, data);
7024
7033
  setBtnDisabled(true);