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.es.js +21 -6
- package/build/index.es.js.map +1 -1
- package/build/index.js +21 -6
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -98,7 +98,10 @@ const useSectionStyles$a = createUseStyles(theme => ({
|
|
|
98
98
|
pointerEvents: 'auto',
|
|
99
99
|
cursor: 'default',
|
|
100
100
|
position: 'relative',
|
|
101
|
-
height: '55px'
|
|
101
|
+
height: '55px',
|
|
102
|
+
width: ({
|
|
103
|
+
isCustomWebsite
|
|
104
|
+
} = {}) => isCustomWebsite ? '100%' : ''
|
|
102
105
|
},
|
|
103
106
|
optionsContainer: {
|
|
104
107
|
display: 'flex',
|
|
@@ -141,7 +144,10 @@ const useSectionStyles$a = createUseStyles(theme => ({
|
|
|
141
144
|
display: 'flex',
|
|
142
145
|
position: 'relative',
|
|
143
146
|
maxHeight: '55px',
|
|
144
|
-
alignItems: 'center'
|
|
147
|
+
alignItems: 'center',
|
|
148
|
+
width: ({
|
|
149
|
+
isCustomWebsite
|
|
150
|
+
} = {}) => isCustomWebsite ? '30%' : ''
|
|
145
151
|
},
|
|
146
152
|
imageDivImageMobile: {},
|
|
147
153
|
imageDivImageNext: {
|
|
@@ -3718,7 +3724,8 @@ function SubscribeToNewsletter({
|
|
|
3718
3724
|
validations,
|
|
3719
3725
|
isPreview,
|
|
3720
3726
|
isEdit,
|
|
3721
|
-
isLandingPages
|
|
3727
|
+
isLandingPages,
|
|
3728
|
+
extraProps
|
|
3722
3729
|
} = useContext(PageContext);
|
|
3723
3730
|
const [nodeData] = sectionData.components;
|
|
3724
3731
|
const classes = useSectionStyles$4({
|
|
@@ -3739,6 +3746,8 @@ function SubscribeToNewsletter({
|
|
|
3739
3746
|
value: inputVal
|
|
3740
3747
|
}
|
|
3741
3748
|
},
|
|
3749
|
+
orgCode: extraProps?.org_code,
|
|
3750
|
+
orgId: extraProps?.org_id,
|
|
3742
3751
|
...(isLandingPages && {
|
|
3743
3752
|
source: 'landing_page'
|
|
3744
3753
|
})
|
|
@@ -6542,7 +6551,8 @@ function FormEnquiry({
|
|
|
6542
6551
|
validations,
|
|
6543
6552
|
isPreview,
|
|
6544
6553
|
isEdit,
|
|
6545
|
-
isLandingPages
|
|
6554
|
+
isLandingPages,
|
|
6555
|
+
extraProps
|
|
6546
6556
|
} = useContext(PageContext);
|
|
6547
6557
|
const classes = useSectionStyles$1({
|
|
6548
6558
|
containerWidth,
|
|
@@ -6576,6 +6586,8 @@ function FormEnquiry({
|
|
|
6576
6586
|
sectionId: sectionData?._id || null,
|
|
6577
6587
|
sectionType: sectionData?.type,
|
|
6578
6588
|
payload: inputVal,
|
|
6589
|
+
orgCode: extraProps?.org_code,
|
|
6590
|
+
orgId: extraProps?.org_id,
|
|
6579
6591
|
...(isLandingPages && {
|
|
6580
6592
|
source: 'landing_page'
|
|
6581
6593
|
})
|
|
@@ -6983,7 +6995,8 @@ function Contact({
|
|
|
6983
6995
|
validations,
|
|
6984
6996
|
isPreview,
|
|
6985
6997
|
isEdit,
|
|
6986
|
-
isLandingPages
|
|
6998
|
+
isLandingPages,
|
|
6999
|
+
extraProps
|
|
6987
7000
|
} = useContext(PageContext);
|
|
6988
7001
|
let [btnDisabled, setBtnDisabled] = useState(false);
|
|
6989
7002
|
const [nodeData] = sectionData.components;
|
|
@@ -7009,6 +7022,8 @@ function Contact({
|
|
|
7009
7022
|
sectionId: sectionData?._id || null,
|
|
7010
7023
|
sectionType: sectionData?.type,
|
|
7011
7024
|
payload: inputVal,
|
|
7025
|
+
orgCode: extraProps?.org_code,
|
|
7026
|
+
orgId: extraProps?.org_id,
|
|
7012
7027
|
...(isLandingPages && {
|
|
7013
7028
|
source: 'landing_page'
|
|
7014
7029
|
})
|
|
@@ -8015,7 +8030,7 @@ const SingleVideoSlide = props => {
|
|
|
8015
8030
|
const checkIfOfferIsValid = () => moment().diff(moment(props?.data?.endDate || 0)) < 0;
|
|
8016
8031
|
const checkForShowDiscount = () => {
|
|
8017
8032
|
if (props.data.endDate === null || checkIfOfferIsValid()) {
|
|
8018
|
-
if (data.discount > 0 &&
|
|
8033
|
+
if (data.discount > 0 && data.offerPriceValidFor === null) {
|
|
8019
8034
|
return true;
|
|
8020
8035
|
} else if (data.discount > 0 && data.offerPriceValidFor !== null && data.offerPriceValidFor - conversions <= 0) {
|
|
8021
8036
|
return false;
|