diy-template-components 0.1.11 → 0.1.14
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 +47 -13
- package/build/index.es.js.map +1 -1
- package/build/index.js +47 -13
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -6805,7 +6805,7 @@ const SingleVideoSlide$1 = props => {
|
|
|
6805
6805
|
className: classes.iframeSuperContainer
|
|
6806
6806
|
}, /*#__PURE__*/React.createElement("div", {
|
|
6807
6807
|
className: classes.videoDetails
|
|
6808
|
-
}, data?.isPaid ? /*#__PURE__*/React.createElement("h3", {
|
|
6808
|
+
}, data?.isPaid && checkIfOfferIsValid() ? /*#__PURE__*/React.createElement("h3", {
|
|
6809
6809
|
className: classes.bannerContainer
|
|
6810
6810
|
}, data.offerPriceValidFor <= 0 ? /*#__PURE__*/React.createElement(React.Fragment, null, "Hurry up! Offer for limited period only") : /*#__PURE__*/React.createElement(React.Fragment, null, "Hurry up! Offer is left for ", data.offerPriceValidFor, " users now")) : null, /*#__PURE__*/React.createElement("h3", {
|
|
6811
6811
|
ref: data?.videoTextHeading?.refSetter,
|
|
@@ -6822,8 +6822,9 @@ const SingleVideoSlide$1 = props => {
|
|
|
6822
6822
|
}), /*#__PURE__*/React.createElement("div", null, moment(data.startDate).format('dddd, MMMM Do, h:mm:ss'))), /*#__PURE__*/React.createElement("div", {
|
|
6823
6823
|
className: classes.courseDetailTag
|
|
6824
6824
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
6825
|
-
|
|
6826
|
-
|
|
6825
|
+
width: "20px",
|
|
6826
|
+
name: `${data.webinarLocation === 'Location' ? 'Location' : 'Video'}`
|
|
6827
|
+
}), /*#__PURE__*/React.createElement("div", null, data.webinarLocation === 'Location' ? data.webinarLink : data.webinarLocation))), /*#__PURE__*/React.createElement("p", {
|
|
6827
6828
|
ref: data?.videoTextContent?.refSetter,
|
|
6828
6829
|
className: classes.courseDetailContent,
|
|
6829
6830
|
dangerouslySetInnerHTML: {
|
|
@@ -6853,7 +6854,7 @@ const SingleVideoSlide$1 = props => {
|
|
|
6853
6854
|
videoUrl: data.thumbnail
|
|
6854
6855
|
})), /*#__PURE__*/React.createElement("div", {
|
|
6855
6856
|
className: classes.bottomContainer
|
|
6856
|
-
}, data.isPaid ? /*#__PURE__*/React.createElement("div", {
|
|
6857
|
+
}, data.isPaid && checkIfOfferIsValid() ? /*#__PURE__*/React.createElement("div", {
|
|
6857
6858
|
className: classes.priceContainer
|
|
6858
6859
|
}, /*#__PURE__*/React.createElement("div", {
|
|
6859
6860
|
className: classes.offerPrice
|
|
@@ -6870,7 +6871,6 @@ const SingleVideoSlide$1 = props => {
|
|
|
6870
6871
|
className: classes.webinarButtonContainer
|
|
6871
6872
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
6872
6873
|
style: {
|
|
6873
|
-
backgroundColor: '#009AE0',
|
|
6874
6874
|
width: data.isPaid ? '100%' : '250px',
|
|
6875
6875
|
fontSize: 'large'
|
|
6876
6876
|
},
|
|
@@ -7064,6 +7064,21 @@ const useCoursePromotionPage = createUseStyles(theme => {
|
|
|
7064
7064
|
top: '-10.5px'
|
|
7065
7065
|
}
|
|
7066
7066
|
},
|
|
7067
|
+
emblemContainer: {
|
|
7068
|
+
display: 'flex',
|
|
7069
|
+
justifyContent: 'space-between',
|
|
7070
|
+
gap: '10px'
|
|
7071
|
+
},
|
|
7072
|
+
courseEmblem: {
|
|
7073
|
+
background: '#F0F4F8',
|
|
7074
|
+
borderRadius: '2.00337px',
|
|
7075
|
+
padding: '8px',
|
|
7076
|
+
display: 'flex',
|
|
7077
|
+
alignItems: 'center',
|
|
7078
|
+
justifyContent: 'center',
|
|
7079
|
+
marginTop: '20px',
|
|
7080
|
+
marginBottom: '20px'
|
|
7081
|
+
},
|
|
7067
7082
|
courseDetailsTags: {
|
|
7068
7083
|
marginTop: '16px',
|
|
7069
7084
|
display: 'flex'
|
|
@@ -7172,7 +7187,13 @@ const SingleVideoSlide = props => {
|
|
|
7172
7187
|
className: classes.videoDetails
|
|
7173
7188
|
}, /*#__PURE__*/React.createElement("h3", {
|
|
7174
7189
|
className: classes.bannerContainer
|
|
7175
|
-
}, data.offerPriceValidFor <= 0 ? /*#__PURE__*/React.createElement(React.Fragment, null, "Hurry up! Offer for limited period only") : /*#__PURE__*/React.createElement(React.Fragment, null, "Hurry up! Offer is left for ", data.offerPriceValidFor, " users now")), /*#__PURE__*/React.createElement("
|
|
7190
|
+
}, data.offerPriceValidFor <= 0 ? /*#__PURE__*/React.createElement(React.Fragment, null, "Hurry up! Offer for limited period only") : /*#__PURE__*/React.createElement(React.Fragment, null, "Hurry up! Offer is left for ", data.offerPriceValidFor, " users now")), /*#__PURE__*/React.createElement("div", {
|
|
7191
|
+
className: classes.emblemContainer
|
|
7192
|
+
}, data?.courseOverviewData?.courseTagList.length && data?.courseOverviewData?.courseTagList?.map(data => {
|
|
7193
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
7194
|
+
className: classes.courseEmblem
|
|
7195
|
+
}, data?.text);
|
|
7196
|
+
})), /*#__PURE__*/React.createElement("h3", {
|
|
7176
7197
|
ref: data?.videoTextHeading?.refSetter,
|
|
7177
7198
|
className: classes.videoDetailsHeading,
|
|
7178
7199
|
dangerouslySetInnerHTML: {
|
|
@@ -7180,19 +7201,23 @@ const SingleVideoSlide = props => {
|
|
|
7180
7201
|
}
|
|
7181
7202
|
}), /*#__PURE__*/React.createElement("div", {
|
|
7182
7203
|
className: classes.courseDetailsTags
|
|
7183
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
7204
|
+
}, data?.courseOverviewData?.courseDuration?.text ? /*#__PURE__*/React.createElement("div", {
|
|
7184
7205
|
className: classes.courseDetailTag
|
|
7185
7206
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
7186
7207
|
name: 'Clock'
|
|
7187
|
-
}), /*#__PURE__*/React.createElement("div", null, data
|
|
7208
|
+
}), /*#__PURE__*/React.createElement("div", null, data?.courseOverviewData?.courseDuration?.text)) : null, data?.courseOverviewData?.metaData?.isPhysicalDeliveryEnabled ? /*#__PURE__*/React.createElement("div", {
|
|
7188
7209
|
className: classes.courseDetailTag
|
|
7189
7210
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
7190
7211
|
name: 'Book Saved'
|
|
7191
|
-
}), /*#__PURE__*/React.createElement("div", null, data
|
|
7212
|
+
}), /*#__PURE__*/React.createElement("div", null, data?.courseOverviewData?.metaData?.isPhysicalDeliveryEnabled ? 'Physical Books' : null)) : null, data?.courseOverviewData?.metaData?.isCertificateEnabled ? /*#__PURE__*/React.createElement("div", {
|
|
7192
7213
|
className: classes.courseDetailTag
|
|
7193
7214
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
7194
7215
|
name: 'Certificate'
|
|
7195
|
-
}), /*#__PURE__*/React.createElement("div", null, data
|
|
7216
|
+
}), /*#__PURE__*/React.createElement("div", null, data?.courseOverviewData?.metaData?.isCertificateEnabled ? 'Course Cerficate' : null)) : null, data?.courseOverviewData?.resourseDataText.heading ? /*#__PURE__*/React.createElement("div", {
|
|
7217
|
+
className: classes.courseDetailTag
|
|
7218
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
7219
|
+
name: 'Certificate'
|
|
7220
|
+
}), /*#__PURE__*/React.createElement("div", null, data?.courseOverviewData?.resourseDataText?.heading)) : null), /*#__PURE__*/React.createElement("p", {
|
|
7196
7221
|
ref: data?.videoTextContent?.refSetter,
|
|
7197
7222
|
className: classes.courseDetailContent,
|
|
7198
7223
|
dangerouslySetInnerHTML: {
|
|
@@ -7361,10 +7386,8 @@ const useFormPageStyles = createUseStyles(theme => ({
|
|
|
7361
7386
|
width: '100%',
|
|
7362
7387
|
margin: '0 auto',
|
|
7363
7388
|
'& button': {
|
|
7364
|
-
background: '#6269C9',
|
|
7365
7389
|
height: '44px',
|
|
7366
7390
|
padding: '10px 40px',
|
|
7367
|
-
border: '1px solid #4A90E2',
|
|
7368
7391
|
color: '#FFFFFF',
|
|
7369
7392
|
fontSize: '16px',
|
|
7370
7393
|
cursor: 'pointer',
|
|
@@ -7588,7 +7611,18 @@ const FormPage = ({
|
|
|
7588
7611
|
htmlFor: option.value
|
|
7589
7612
|
}, option.value)))))), /*#__PURE__*/React.createElement("div", {
|
|
7590
7613
|
className: classes.submitBtnContainer
|
|
7591
|
-
}, /*#__PURE__*/React.createElement(
|
|
7614
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
7615
|
+
data: {
|
|
7616
|
+
// link: 'headerData?.loginCtaLink',
|
|
7617
|
+
// isLink: 1,
|
|
7618
|
+
value: 'SUBMIT' // isExternal: 1
|
|
7619
|
+
|
|
7620
|
+
},
|
|
7621
|
+
type: 'primary',
|
|
7622
|
+
size: 'medium',
|
|
7623
|
+
target: null,
|
|
7624
|
+
rel: null
|
|
7625
|
+
})))));
|
|
7592
7626
|
};
|
|
7593
7627
|
|
|
7594
7628
|
var index = /*#__PURE__*/Object.freeze({
|