diy-template-components 1.0.24 → 1.0.26

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
@@ -114,7 +114,10 @@ const useSectionStyles$a = createUseStyles(theme => ({
114
114
  pointerEvents: 'auto',
115
115
  cursor: 'default',
116
116
  position: 'relative',
117
- height: '55px'
117
+ height: '55px',
118
+ width: ({
119
+ isCustomWebsite
120
+ } = {}) => isCustomWebsite ? '100%' : ''
118
121
  },
119
122
  optionsContainer: {
120
123
  display: 'flex',
@@ -157,7 +160,10 @@ const useSectionStyles$a = createUseStyles(theme => ({
157
160
  display: 'flex',
158
161
  position: 'relative',
159
162
  maxHeight: '55px',
160
- alignItems: 'center'
163
+ alignItems: 'center',
164
+ width: ({
165
+ isCustomWebsite
166
+ } = {}) => isCustomWebsite ? '30%' : ''
161
167
  },
162
168
  imageDivImageMobile: {},
163
169
  imageDivImageNext: {
@@ -3734,7 +3740,8 @@ function SubscribeToNewsletter({
3734
3740
  validations,
3735
3741
  isPreview,
3736
3742
  isEdit,
3737
- isLandingPages
3743
+ isLandingPages,
3744
+ extraProps
3738
3745
  } = React.useContext(PageContext);
3739
3746
  const [nodeData] = sectionData.components;
3740
3747
  const classes = useSectionStyles$4({
@@ -3755,6 +3762,8 @@ function SubscribeToNewsletter({
3755
3762
  value: inputVal
3756
3763
  }
3757
3764
  },
3765
+ orgCode: extraProps?.org_code,
3766
+ orgId: extraProps?.org_id,
3758
3767
  ...(isLandingPages && {
3759
3768
  source: 'landing_page'
3760
3769
  })
@@ -6558,7 +6567,8 @@ function FormEnquiry({
6558
6567
  validations,
6559
6568
  isPreview,
6560
6569
  isEdit,
6561
- isLandingPages
6570
+ isLandingPages,
6571
+ extraProps
6562
6572
  } = React.useContext(PageContext);
6563
6573
  const classes = useSectionStyles$1({
6564
6574
  containerWidth,
@@ -6592,6 +6602,8 @@ function FormEnquiry({
6592
6602
  sectionId: sectionData?._id || null,
6593
6603
  sectionType: sectionData?.type,
6594
6604
  payload: inputVal,
6605
+ orgCode: extraProps?.org_code,
6606
+ orgId: extraProps?.org_id,
6595
6607
  ...(isLandingPages && {
6596
6608
  source: 'landing_page'
6597
6609
  })
@@ -6999,7 +7011,8 @@ function Contact({
6999
7011
  validations,
7000
7012
  isPreview,
7001
7013
  isEdit,
7002
- isLandingPages
7014
+ isLandingPages,
7015
+ extraProps
7003
7016
  } = React.useContext(PageContext);
7004
7017
  let [btnDisabled, setBtnDisabled] = React.useState(false);
7005
7018
  const [nodeData] = sectionData.components;
@@ -7025,6 +7038,8 @@ function Contact({
7025
7038
  sectionId: sectionData?._id || null,
7026
7039
  sectionType: sectionData?.type,
7027
7040
  payload: inputVal,
7041
+ orgCode: extraProps?.org_code,
7042
+ orgId: extraProps?.org_id,
7028
7043
  ...(isLandingPages && {
7029
7044
  source: 'landing_page'
7030
7045
  })
@@ -8031,7 +8046,7 @@ const SingleVideoSlide = props => {
8031
8046
  const checkIfOfferIsValid = () => moment__default["default"]().diff(moment__default["default"](props?.data?.endDate || 0)) < 0;
8032
8047
  const checkForShowDiscount = () => {
8033
8048
  if (props.data.endDate === null || checkIfOfferIsValid()) {
8034
- if (data.discount > 0 && !data?.offerPriceValidFor) {
8049
+ if (data.discount > 0 && data.offerPriceValidFor === null) {
8035
8050
  return true;
8036
8051
  } else if (data.discount > 0 && data.offerPriceValidFor !== null && data.offerPriceValidFor - conversions <= 0) {
8037
8052
  return false;