diy-template-components 0.2.65 → 0.2.67
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 +5 -2
- package/build/index.es.js.map +1 -1
- package/build/index.js +5 -2
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -7103,6 +7103,9 @@ const SingleVideoSlide$1 = props => {
|
|
|
7103
7103
|
};
|
|
7104
7104
|
const checkIfOfferIsValid = () => moment().diff(moment(props.data.offerPriceEndDate)) < 0;
|
|
7105
7105
|
const checkForShowDiscount = () => {
|
|
7106
|
+
if (checkIfOfferIsValid() && data?.discount) {
|
|
7107
|
+
return true;
|
|
7108
|
+
}
|
|
7106
7109
|
if (props.data.endDate === null || checkIfOfferIsValid()) {
|
|
7107
7110
|
if (data.discount > 0 && data.offerPriceValidFor === 0) {
|
|
7108
7111
|
return true;
|
|
@@ -7138,7 +7141,7 @@ const SingleVideoSlide$1 = props => {
|
|
|
7138
7141
|
className: classes.iframeSuperContainer
|
|
7139
7142
|
}, /*#__PURE__*/React.createElement("div", {
|
|
7140
7143
|
className: classes.videoDetails
|
|
7141
|
-
}, data?.isPaid !== 0 && (checkIfOfferIsValid() || data.offerPriceValidFor > 0) &&
|
|
7144
|
+
}, data?.isPaid !== 0 && (checkIfOfferIsValid() || data.offerPriceValidFor > 0) && /*#__PURE__*/React.createElement("div", null, data.offerPriceValidFor - conversions > 0 && data.discount && (data.offerPriceEndDate ? checkIfOfferIsValid() : true) ? /*#__PURE__*/React.createElement("div", {
|
|
7142
7145
|
className: classes.bannerContainer
|
|
7143
7146
|
}, /*#__PURE__*/React.createElement("div", {
|
|
7144
7147
|
className: classes.bannerContainerText
|
|
@@ -7186,7 +7189,7 @@ const SingleVideoSlide$1 = props => {
|
|
|
7186
7189
|
}
|
|
7187
7190
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
7188
7191
|
className: classes.courseViewContainer
|
|
7189
|
-
}, data.isPaid !== 0 && checkIfOfferIsValid() && (data.offerPriceValidFor
|
|
7192
|
+
}, data.isPaid !== 0 && checkIfOfferIsValid() && (data.offerPriceValidFor === 0 ? data.offerPriceValidFor - conversions > 0 : true) && /*#__PURE__*/React.createElement("p", {
|
|
7190
7193
|
className: classes.offerText
|
|
7191
7194
|
}, "Offer Ends in", ' ', /*#__PURE__*/React.createElement("span", {
|
|
7192
7195
|
className: classes.courseDetailTime
|