diy-template-components 1.0.24 → 1.0.25

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 CHANGED
@@ -3718,7 +3718,8 @@ function SubscribeToNewsletter({
3718
3718
  validations,
3719
3719
  isPreview,
3720
3720
  isEdit,
3721
- isLandingPages
3721
+ isLandingPages,
3722
+ extraProps
3722
3723
  } = useContext(PageContext);
3723
3724
  const [nodeData] = sectionData.components;
3724
3725
  const classes = useSectionStyles$4({
@@ -3739,6 +3740,8 @@ function SubscribeToNewsletter({
3739
3740
  value: inputVal
3740
3741
  }
3741
3742
  },
3743
+ orgCode: extraProps?.org_code,
3744
+ orgId: extraProps?.org_id,
3742
3745
  ...(isLandingPages && {
3743
3746
  source: 'landing_page'
3744
3747
  })
@@ -6542,7 +6545,8 @@ function FormEnquiry({
6542
6545
  validations,
6543
6546
  isPreview,
6544
6547
  isEdit,
6545
- isLandingPages
6548
+ isLandingPages,
6549
+ extraProps
6546
6550
  } = useContext(PageContext);
6547
6551
  const classes = useSectionStyles$1({
6548
6552
  containerWidth,
@@ -6576,6 +6580,8 @@ function FormEnquiry({
6576
6580
  sectionId: sectionData?._id || null,
6577
6581
  sectionType: sectionData?.type,
6578
6582
  payload: inputVal,
6583
+ orgCode: extraProps?.org_code,
6584
+ orgId: extraProps?.org_id,
6579
6585
  ...(isLandingPages && {
6580
6586
  source: 'landing_page'
6581
6587
  })
@@ -6983,7 +6989,8 @@ function Contact({
6983
6989
  validations,
6984
6990
  isPreview,
6985
6991
  isEdit,
6986
- isLandingPages
6992
+ isLandingPages,
6993
+ extraProps
6987
6994
  } = useContext(PageContext);
6988
6995
  let [btnDisabled, setBtnDisabled] = useState(false);
6989
6996
  const [nodeData] = sectionData.components;
@@ -7009,6 +7016,8 @@ function Contact({
7009
7016
  sectionId: sectionData?._id || null,
7010
7017
  sectionType: sectionData?.type,
7011
7018
  payload: inputVal,
7019
+ orgCode: extraProps?.org_code,
7020
+ orgId: extraProps?.org_id,
7012
7021
  ...(isLandingPages && {
7013
7022
  source: 'landing_page'
7014
7023
  })
@@ -8015,7 +8024,7 @@ const SingleVideoSlide = props => {
8015
8024
  const checkIfOfferIsValid = () => moment().diff(moment(props?.data?.endDate || 0)) < 0;
8016
8025
  const checkForShowDiscount = () => {
8017
8026
  if (props.data.endDate === null || checkIfOfferIsValid()) {
8018
- if (data.discount > 0 && !data?.offerPriceValidFor) {
8027
+ if (data.discount > 0 && data.offerPriceValidFor === null) {
8019
8028
  return true;
8020
8029
  } else if (data.discount > 0 && data.offerPriceValidFor !== null && data.offerPriceValidFor - conversions <= 0) {
8021
8030
  return false;