diy-template-components 4.0.0 → 4.0.1
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 +12 -521
- package/build/index.es.js.map +1 -1
- package/build/index.js +12 -521
- package/build/index.js.map +1 -1
- package/package.json +7 -6
package/build/index.es.js
CHANGED
|
@@ -6,7 +6,6 @@ import Countdown from 'react-countdown';
|
|
|
6
6
|
import koreanLocale from 'moment/locale/ko';
|
|
7
7
|
import ReactDOMServer from 'react-dom/server';
|
|
8
8
|
import { createTheming, createUseStyles as createUseStyles$1, useTheme as useTheme$1 } from 'react-jss';
|
|
9
|
-
import '@storybook/theming';
|
|
10
9
|
|
|
11
10
|
function _extends() {
|
|
12
11
|
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
@@ -2791,7 +2790,7 @@ const MemoisedSection$1 = /*#__PURE__*/memo(({
|
|
|
2791
2790
|
sectionIndex: sectionIndex
|
|
2792
2791
|
});
|
|
2793
2792
|
});
|
|
2794
|
-
const SectionWithBackground = withSectionBackground(MemoisedSection$1);
|
|
2793
|
+
const SectionWithBackground$1 = withSectionBackground(MemoisedSection$1);
|
|
2795
2794
|
function SectionRenderer$1({
|
|
2796
2795
|
sectionData,
|
|
2797
2796
|
sectionIndex,
|
|
@@ -2827,7 +2826,7 @@ function SectionRenderer$1({
|
|
|
2827
2826
|
console.log('nishu222333', sectionData);
|
|
2828
2827
|
return /*#__PURE__*/React.createElement(Suspense, {
|
|
2829
2828
|
fallback: null /*GIF maybe*/
|
|
2830
|
-
}, /*#__PURE__*/React.createElement(SectionWithBackground, {
|
|
2829
|
+
}, /*#__PURE__*/React.createElement(SectionWithBackground$1, {
|
|
2831
2830
|
sectionData: sectionData,
|
|
2832
2831
|
extraProps: extraProps,
|
|
2833
2832
|
sectionIndex: sectionIndex
|
|
@@ -3082,522 +3081,6 @@ function PageRenderer$1({
|
|
|
3082
3081
|
currencySymbol
|
|
3083
3082
|
}), [isMobile, isLandingPages, layout, baseURLs, hashToken, isPreview, isEdit, templateId, navList, isMasterTemplate, basePath, validations, isTutorWebsite, extraProps, hideLogin, _id, countryCode, currencySymbol]);
|
|
3084
3083
|
const theme = useMemo(() => generateTheme(color, font, context.isMobile), [color, font, context.isMobile]);
|
|
3085
|
-
// sections = [
|
|
3086
|
-
// {
|
|
3087
|
-
// landingPageType: 'course',
|
|
3088
|
-
// isActive: true,
|
|
3089
|
-
// isV2Section: false,
|
|
3090
|
-
// _id: '69980d5bf8d29a00129ae9a6',
|
|
3091
|
-
// type: 'COURSE_LANDING_PAGE',
|
|
3092
|
-
// label: 'COURSE LANDING PAGE',
|
|
3093
|
-
// metadata: {},
|
|
3094
|
-
// components: [
|
|
3095
|
-
// {
|
|
3096
|
-
// _id: '69980d5bf8d29a00129ae9a7',
|
|
3097
|
-
// isActive: true,
|
|
3098
|
-
// isEditable: true,
|
|
3099
|
-
// sectionBgData: null,
|
|
3100
|
-
// sectionBgOption: [],
|
|
3101
|
-
// type: 'landingPage',
|
|
3102
|
-
// metadata: {
|
|
3103
|
-
// effectivePrice: 10.5,
|
|
3104
|
-
// offerPriceValidFor: null,
|
|
3105
|
-
// courseName: 'SSC test sanity Backward testing',
|
|
3106
|
-
// courseId: 269615,
|
|
3107
|
-
// courseType: 0,
|
|
3108
|
-
// enableHandlingFee: 1,
|
|
3109
|
-
// isPhysicalDeliveryEnabled: 0,
|
|
3110
|
-
// orgId: 437914,
|
|
3111
|
-
// isInstallmentEnabledInDIY: 0,
|
|
3112
|
-
// price: 100,
|
|
3113
|
-
// discount: 90,
|
|
3114
|
-
// ifFeeHandledByTutor: 0,
|
|
3115
|
-
// endDate: 1771871399000,
|
|
3116
|
-
// thumbnail:
|
|
3117
|
-
// 'https://storage.googleapis.com/cp-lower-whitelabel-assets-as-sth1-gcs/preprod/single/tcgsce/e1881549-cc79-4fd7-a6cb-44be0b992bcb.jpg',
|
|
3118
|
-
// description: 'SSC test sanity Backward testing',
|
|
3119
|
-
// isOfferActive: true,
|
|
3120
|
-
// courseOverviewData: {
|
|
3121
|
-
// states: [
|
|
3122
|
-
// { key: 'OTH', name: 'Others' },
|
|
3123
|
-
// { key: 'AN', name: 'Andaman and Nicobar Islands' },
|
|
3124
|
-
// { key: 'AP', name: 'Andhra Pradesh' },
|
|
3125
|
-
// { key: 'AR', name: 'Arunachal Pradesh' },
|
|
3126
|
-
// { key: 'AS', name: 'Assam' },
|
|
3127
|
-
// { key: 'BR', name: 'Bihar' },
|
|
3128
|
-
// { key: 'CG', name: 'Chandigarh' },
|
|
3129
|
-
// { key: 'CH', name: 'Chhattisgarh' },
|
|
3130
|
-
// { key: 'DN', name: 'Dadra and Nagar Haveli' },
|
|
3131
|
-
// { key: 'DD', name: 'Daman and Diu' },
|
|
3132
|
-
// { key: 'DL', name: 'Delhi' },
|
|
3133
|
-
// { key: 'GA', name: 'Goa' },
|
|
3134
|
-
// { key: 'GJ', name: 'Gujarat' },
|
|
3135
|
-
// { key: 'HR', name: 'Haryana' },
|
|
3136
|
-
// { key: 'HP', name: 'Himachal Pradesh' },
|
|
3137
|
-
// { key: 'JK', name: 'Jammu and Kashmir' },
|
|
3138
|
-
// { key: 'JH', name: 'Jharkhand' },
|
|
3139
|
-
// { key: 'KA', name: 'Karnataka' },
|
|
3140
|
-
// { key: 'KL', name: 'Kerala' },
|
|
3141
|
-
// { key: 'LA', name: 'Ladakh' },
|
|
3142
|
-
// { key: 'LD', name: 'Lakshadweep' },
|
|
3143
|
-
// { key: 'MP', name: 'Madhya Pradesh' },
|
|
3144
|
-
// { key: 'MH', name: 'Maharashtra' },
|
|
3145
|
-
// { key: 'MN', name: 'Manipur' },
|
|
3146
|
-
// { key: 'ML', name: 'Meghalaya' },
|
|
3147
|
-
// { key: 'MZ', name: 'Mizoram' },
|
|
3148
|
-
// { key: 'NL', name: 'Nagaland' },
|
|
3149
|
-
// { key: 'OR', name: 'Odisha' },
|
|
3150
|
-
// { key: 'PY', name: 'Puducherry' },
|
|
3151
|
-
// { key: 'PB', name: 'Punjab' },
|
|
3152
|
-
// { key: 'RJ', name: 'Rajasthan' },
|
|
3153
|
-
// { key: 'SK', name: 'Sikkim' },
|
|
3154
|
-
// { key: 'TN', name: 'Tamil Nadu' },
|
|
3155
|
-
// { key: 'TS', name: 'Telangana' },
|
|
3156
|
-
// { key: 'TR', name: 'Tripura' },
|
|
3157
|
-
// { key: 'UP', name: 'Uttar Pradesh' },
|
|
3158
|
-
// { key: 'UK', name: 'Uttarakhand' },
|
|
3159
|
-
// { key: 'WB', name: 'West Bengal' }
|
|
3160
|
-
// ],
|
|
3161
|
-
// priorityOrderList: [],
|
|
3162
|
-
// socialLinks: {
|
|
3163
|
-
// links: [
|
|
3164
|
-
// {
|
|
3165
|
-
// type: 'WHATSAPP',
|
|
3166
|
-
// iconUrl:
|
|
3167
|
-
// 'https://ali-cdn-cp-assets-public.classplus.co/cams/store/icon/icon_whatsap.png',
|
|
3168
|
-
// shareUrl:
|
|
3169
|
-
// 'https://api.whatsapp.com/send?text=Hey! I’m learning with DIY-preprod and you can too. Here’s a course you might like: SSC test sanity Backward testing by PRE-prod/QA tutor\n https://tcgsce.tw-preprod.classplusapp.com/269615?utm_source=whatsapp\u0026utm_medium=social\u0026utm_campaign=web-course-share\u0026utm_referrer=null',
|
|
3170
|
-
// shareText:
|
|
3171
|
-
// 'Hey! I’m learning with DIY-preprod and you can too. Here’s a course you might like: SSC test sanity Backward testing by PRE-prod/QA tutor\n https://tcgsce.tw-preprod.classplusapp.com/269615?utm_source=whatsapp\u0026utm_medium=social\u0026utm_campaign=web-course-share\u0026utm_referrer=null',
|
|
3172
|
-
// appName: 'WhatsApp'
|
|
3173
|
-
// },
|
|
3174
|
-
// {
|
|
3175
|
-
// type: 'FACEBOOK',
|
|
3176
|
-
// iconUrl:
|
|
3177
|
-
// 'https://ali-cdn-cp-assets-public.classplus.co/cams/store/icon/icon_fb.png',
|
|
3178
|
-
// shareUrl:
|
|
3179
|
-
// 'https://www.facebook.com/sharer/sharer.php?u=https://tcgsce.tw-preprod.classplusapp.com/269615?utm_source=facebook\u0026utm_medium=social-fb\u0026utm_campaign=web-course-share\u0026utm_referrer=null',
|
|
3180
|
-
// shareText:
|
|
3181
|
-
// 'Hey! I’m learning with DIY-preprod and you can too. Here’s a course you might like: SSC test sanity Backward testing by PRE-prod/QA tutor\n https://tcgsce.tw-preprod.classplusapp.com/269615?utm_source=facebook\u0026utm_medium=social-fb\u0026utm_campaign=web-course-share\u0026utm_referrer=null',
|
|
3182
|
-
// appName: 'Facebook'
|
|
3183
|
-
// },
|
|
3184
|
-
// {
|
|
3185
|
-
// type: 'TELEGRAM',
|
|
3186
|
-
// iconUrl:
|
|
3187
|
-
// 'https://ali-cdn-cp-assets-public.classplus.co/cams/store/icon/icon_telegram.png',
|
|
3188
|
-
// shareUrl:
|
|
3189
|
-
// 'https://t.me/share/url?url=Hey! I’m learning with DIY-preprod and you can too. Here’s a course you might like: SSC test sanity Backward testing by PRE-prod/QA tutor\n https://tcgsce.tw-preprod.classplusapp.com/269615\u0026text=Hey! I’m learning with DIY-preprod and you can too. Here’s a course you might like: SSC test sanity Backward testing by PRE-prod/QA tutor\n https://tcgsce.tw-preprod.classplusapp.com/269615?utm_source=telegram\u0026utm_medium=social\u0026utm_campaign=web-course-share\u0026utm_referrer=null',
|
|
3190
|
-
// shareText:
|
|
3191
|
-
// 'Hey! I’m learning with DIY-preprod and you can too. Here’s a course you might like: SSC test sanity Backward testing by PRE-prod/QA tutor\n https://tcgsce.tw-preprod.classplusapp.com/269615?utm_source=telegram\u0026utm_medium=social\u0026utm_campaign=web-course-share\u0026utm_referrer=null',
|
|
3192
|
-
// appName: 'Telegram'
|
|
3193
|
-
// },
|
|
3194
|
-
// {
|
|
3195
|
-
// type: 'LINKEDIN',
|
|
3196
|
-
// iconUrl:
|
|
3197
|
-
// 'https://ali-cdn-cp-assets-public.classplus.co/cams/store/icon/icon_linkedIn.png',
|
|
3198
|
-
// shareUrl:
|
|
3199
|
-
// 'https://www.linkedin.com/shareArticle?mini=true\u0026url=Hey! I’m learning with DIY-preprod and you can too. Here’s a course you might like: SSC test sanity Backward testing by PRE-prod/QA tutor\n https://tcgsce.tw-preprod.classplusapp.com/269615?utm_source=linkedin\u0026utm_medium=social-link\u0026utm_campaign=web-course-share\u0026utm_referrer=null',
|
|
3200
|
-
// shareText:
|
|
3201
|
-
// 'Hey! I’m learning with DIY-preprod and you can too. Here’s a course you might like: SSC test sanity Backward testing by PRE-prod/QA tutor\n https://tcgsce.tw-preprod.classplusapp.com/269615?utm_source=linkedin\u0026utm_medium=social-link\u0026utm_campaign=web-course-share\u0026utm_referrer=null',
|
|
3202
|
-
// appName: 'LinkedIn'
|
|
3203
|
-
// }
|
|
3204
|
-
// ],
|
|
3205
|
-
// copyUrl:
|
|
3206
|
-
// 'https://tcgsce.tw-preprod.classplusapp.com/269615?utm_referrer=null\u0026utm_source=copy-link\u0026utm_medium=social\u0026utm_campaign=web-course-share',
|
|
3207
|
-
// moreAppsText:
|
|
3208
|
-
// 'Hey! I’m learning with DIY-preprod and you can too. Here’s a course you might like: SSC test sanity Backward testing by PRE-prod/QA tutor\n https://tcgsce.tw-preprod.classplusapp.com/269615?utm_source=copy-link\u0026utm_medium=social\u0026utm_campaign=web-course-share\u0026utm_referrer=null',
|
|
3209
|
-
// publishText:
|
|
3210
|
-
// 'You have Successfully Published SSC test sanity Backward testing'
|
|
3211
|
-
// },
|
|
3212
|
-
// details: {
|
|
3213
|
-
// name: 'SSC test sanity Backward testing',
|
|
3214
|
-
// description: 'SSC test sanity Backward testing',
|
|
3215
|
-
// isWebVideoAllowed: 0,
|
|
3216
|
-
// duration: '1 YEAR(S)',
|
|
3217
|
-
// shareStatus: '',
|
|
3218
|
-
// imageUrl:
|
|
3219
|
-
// 'https://storage.googleapis.com/cp-lower-whitelabel-assets-as-sth1-gcs/preprod/single/tcgsce/e1881549-cc79-4fd7-a6cb-44be0b992bcb.jpg',
|
|
3220
|
-
// shareUrl: 'https://tcgsce.tw-preprod.classplusapp.com/269615',
|
|
3221
|
-
// utmUrls: {},
|
|
3222
|
-
// appLink: 'https://tcgsce.on-app.in/app/oc/269615/tcgsce',
|
|
3223
|
-
// tncUrl:
|
|
3224
|
-
// 'https://cdn-wl-assets.classplus.co/tnc/student_tnc.html',
|
|
3225
|
-
// strip: null
|
|
3226
|
-
// },
|
|
3227
|
-
// installments: {
|
|
3228
|
-
// isInstallmentEnabled: 0,
|
|
3229
|
-
// showInstallmentInfo: 1
|
|
3230
|
-
// },
|
|
3231
|
-
// resources: { files: 2, videos: 1, tests: 6 },
|
|
3232
|
-
// freeContent: null,
|
|
3233
|
-
// freeContentCount: 0,
|
|
3234
|
-
// resourseDataText: {
|
|
3235
|
-
// heading: '9 Learning Material',
|
|
3236
|
-
// subHeading: '2 Files, 1 Video lectures, 6 Tests',
|
|
3237
|
-
// icon: 'https://ali-cdn-cp-assets-public.classplus.co/store-urp/content.svg',
|
|
3238
|
-
// iconUrl:
|
|
3239
|
-
// 'https://ali-cdn-cp-assets-public.classplus.co/cp-store-ui-revamp/courseOverview/play_button_png.png'
|
|
3240
|
-
// },
|
|
3241
|
-
// resourceCount: 9,
|
|
3242
|
-
// courseTagList: [
|
|
3243
|
-
// {
|
|
3244
|
-
// text: 'TEST',
|
|
3245
|
-
// color: '#3C4852',
|
|
3246
|
-
// icon: 'https://ali-cdn-cp-assets-public.classplus.co/cp-store-ui-revamp/courseOverview/tests-cov.svg',
|
|
3247
|
-
// bgTriangleColor: '#F6F8FA'
|
|
3248
|
-
// },
|
|
3249
|
-
// {
|
|
3250
|
-
// text: 'PDFs',
|
|
3251
|
-
// color: '#3C4852',
|
|
3252
|
-
// icon: 'https://ali-cdn-cp-assets-public.classplus.co/cp-store-ui-revamp/courseOverview/pdfs-cov.svg',
|
|
3253
|
-
// bgTriangleColor: '#F6F8FA'
|
|
3254
|
-
// },
|
|
3255
|
-
// {
|
|
3256
|
-
// text: 'VIDEOS',
|
|
3257
|
-
// color: '#3C4852',
|
|
3258
|
-
// icon: 'https://ali-cdn-cp-assets-public.classplus.co/cp-store-ui-revamp/courseOverview/videos-cov.svg',
|
|
3259
|
-
// bgTriangleColor: '#F6F8FA'
|
|
3260
|
-
// }
|
|
3261
|
-
// ],
|
|
3262
|
-
// categories: [],
|
|
3263
|
-
// categoryList: [],
|
|
3264
|
-
// likeText: '5',
|
|
3265
|
-
// createdBy: null,
|
|
3266
|
-
// videoRestrictions: null,
|
|
3267
|
-
// priceDetails: {
|
|
3268
|
-
// isPreview: 1,
|
|
3269
|
-
// handlingCharges: 0.05,
|
|
3270
|
-
// tncUrl:
|
|
3271
|
-
// 'https://cdn-wl-assets.classplus.co/tnc/student_tnc.html',
|
|
3272
|
-
// isPriceDetails: 1,
|
|
3273
|
-
// coursePrice: 1,
|
|
3274
|
-
// ifFeeHandledByTutor: 0,
|
|
3275
|
-
// handlingFactor: 5.030984140321408,
|
|
3276
|
-
// totalPayableAmount: 105,
|
|
3277
|
-
// discountPercentage: 0,
|
|
3278
|
-
// price: 1,
|
|
3279
|
-
// discount: 0
|
|
3280
|
-
// },
|
|
3281
|
-
// priceDetailsForGuest: null,
|
|
3282
|
-
// chatDetails: {
|
|
3283
|
-
// id: 52422588,
|
|
3284
|
-
// name: 'PRE-prod/QA tutor',
|
|
3285
|
-
// imageUrl: null
|
|
3286
|
-
// },
|
|
3287
|
-
// paymentSummary: null,
|
|
3288
|
-
// duration: {
|
|
3289
|
-
// isLifetime: 0,
|
|
3290
|
-
// expiryDateType: 3,
|
|
3291
|
-
// expiryDateValue: 1,
|
|
3292
|
-
// isExpiryFixed: 0,
|
|
3293
|
-
// fixedExpiryDateTimestamp: null,
|
|
3294
|
-
// fixedExpiryDate: null
|
|
3295
|
-
// },
|
|
3296
|
-
// metaData: {
|
|
3297
|
-
// ownerExpiryDate: '-1',
|
|
3298
|
-
// enableTax: 1,
|
|
3299
|
-
// enableHandlingFee: 1,
|
|
3300
|
-
// contentMarketAccessStatus: 2,
|
|
3301
|
-
// isTbTest: 0,
|
|
3302
|
-
// id: 269615,
|
|
3303
|
-
// courseType: 0,
|
|
3304
|
-
// canEditCourseType: 1,
|
|
3305
|
-
// totalSubscriberCount: 5,
|
|
3306
|
-
// isFeatured: null,
|
|
3307
|
-
// isFreeCourse: 0,
|
|
3308
|
-
// isShareable: 0,
|
|
3309
|
-
// isPhysicalDeliveryEnabled: 0,
|
|
3310
|
-
// isDeliveryFeeHandledByTutor: 0,
|
|
3311
|
-
// tentativeDeliveryDays: null,
|
|
3312
|
-
// isCertificateEnabled: 0,
|
|
3313
|
-
// isPreview: 1,
|
|
3314
|
-
// isPurchased: 0,
|
|
3315
|
-
// isReselling: 0,
|
|
3316
|
-
// isOwn: 1,
|
|
3317
|
-
// isDeletable: 1,
|
|
3318
|
-
// isPublished: 1,
|
|
3319
|
-
// singlePaymentLink: '',
|
|
3320
|
-
// canEditPermissions: 0,
|
|
3321
|
-
// canEditCourse: 0,
|
|
3322
|
-
// price: 1,
|
|
3323
|
-
// discount: 0,
|
|
3324
|
-
// orgId: '437914',
|
|
3325
|
-
// isPmsEnabled: 1,
|
|
3326
|
-
// pdfDownloadOnWeb: 0,
|
|
3327
|
-
// pdfSecuirityOnWeb: 0,
|
|
3328
|
-
// offlineMaterialFlag: 0,
|
|
3329
|
-
// doubtBuddyCourseFlag: 0,
|
|
3330
|
-
// isPaymentSupportEnabled: 0,
|
|
3331
|
-
// isPaymentProEnabled: 0,
|
|
3332
|
-
// ocsId: null,
|
|
3333
|
-
// isDynamicBundlingEnabled: 0,
|
|
3334
|
-
// isLiked: 0,
|
|
3335
|
-
// isPromoApplicable: 0,
|
|
3336
|
-
// showSignUp: 0,
|
|
3337
|
-
// isDownloadable: 0,
|
|
3338
|
-
// isDocDownloadable: 0,
|
|
3339
|
-
// tncUrl:
|
|
3340
|
-
// 'https://cdn-wl-assets.classplus.co/tnc/student_tnc.html',
|
|
3341
|
-
// bundleData: {
|
|
3342
|
-
// bundleId: null,
|
|
3343
|
-
// bundles: [],
|
|
3344
|
-
// isBundlingEnabled: 1,
|
|
3345
|
-
// isBooksAdded: 0,
|
|
3346
|
-
// isTestSeriesAdded: 0,
|
|
3347
|
-
// bundledReceipt: '',
|
|
3348
|
-
// bookDeliveryFees: 0,
|
|
3349
|
-
// linkedCoursePrice: 0,
|
|
3350
|
-
// whatsAppLink: 'https://classplus.typeform.com/to/ykzMVJ4Z',
|
|
3351
|
-
// recommendedCourses: []
|
|
3352
|
-
// },
|
|
3353
|
-
// isComboActive: 0,
|
|
3354
|
-
// toShowShareObjects: 1
|
|
3355
|
-
// },
|
|
3356
|
-
// likes: {
|
|
3357
|
-
// icon: 'https://ali-cdn-cp-assets-public.classplus.co/cams/cards-icon/red_icon_3x.png',
|
|
3358
|
-
// value: '5'
|
|
3359
|
-
// },
|
|
3360
|
-
// liveCard: null,
|
|
3361
|
-
// zoomLiveCard: null,
|
|
3362
|
-
// zoomLiveCardV2: null,
|
|
3363
|
-
// courseDuration: {
|
|
3364
|
-
// heading: 'Course Duration',
|
|
3365
|
-
// text: 'Valid for 1 year',
|
|
3366
|
-
// subText: 'Course available for 1 year after purchase',
|
|
3367
|
-
// icon: 'https://ali-cdn-cp-assets-public.classplus.co/cams/sellOnWhatsapp/ic_validity.svg'
|
|
3368
|
-
// },
|
|
3369
|
-
// singlePaymentStudentShareUrl:
|
|
3370
|
-
// 'https://tcgsce.tw-preprod.classplusapp.com/269615',
|
|
3371
|
-
// courseCreatorDetails: {
|
|
3372
|
-
// heading: 'About Course Creator',
|
|
3373
|
-
// imageUrl: '',
|
|
3374
|
-
// tutorName: 'PRE-prod/QA tutor',
|
|
3375
|
-
// orgName: 'DIY-preprod',
|
|
3376
|
-
// experience: 0,
|
|
3377
|
-
// qualification: '',
|
|
3378
|
-
// specialisation: 'jkfhgg8',
|
|
3379
|
-
// courses: {
|
|
3380
|
-
// icon: 'https://ali-cdn-cp-assets-public.classplus.co/cams/sellOnWhatsapp/ic_courses.svg',
|
|
3381
|
-
// text: '1031 Courses',
|
|
3382
|
-
// value: 1031
|
|
3383
|
-
// },
|
|
3384
|
-
// tutorDescription:
|
|
3385
|
-
// 'cucj fhjevwihfvhjwrebvhjbdsjhvcbjhdfsbjkvcbwdjkbcjewbvjkbewjkvbjkewbv dsdsddsdsdjhjgjh'
|
|
3386
|
-
// },
|
|
3387
|
-
// multipleValidity: null,
|
|
3388
|
-
// multipleValiditySelected: 0,
|
|
3389
|
-
// orgDetails: {
|
|
3390
|
-
// id: '437914',
|
|
3391
|
-
// code: 'tcgsce',
|
|
3392
|
-
// name: 'DIY-preprod',
|
|
3393
|
-
// isInternational: 0,
|
|
3394
|
-
// refundPolicyUrl: null
|
|
3395
|
-
// },
|
|
3396
|
-
// isGooglePlayEnabled: 0,
|
|
3397
|
-
// purchaseViaWhatsapp: 0,
|
|
3398
|
-
// purchaseViaWhatsappV2: 0,
|
|
3399
|
-
// durationText: {
|
|
3400
|
-
// heading: '1 Year Validity',
|
|
3401
|
-
// subHeading: 'You will get this course for 1 full Year(s)',
|
|
3402
|
-
// icon: 'https://ali-cdn-cp-assets-public.classplus.co/store-urp/validity.svg',
|
|
3403
|
-
// iconUrl:
|
|
3404
|
-
// 'https://ali-cdn-cp-assets-public.classplus.co/cp-store-ui-revamp/courseOverview/time_png.png'
|
|
3405
|
-
// },
|
|
3406
|
-
// whatsIncluded: [],
|
|
3407
|
-
// upcomingLiveClasses: null,
|
|
3408
|
-
// allAppDownloadLiveCard: null,
|
|
3409
|
-
// videoDisclaimer: null
|
|
3410
|
-
// }
|
|
3411
|
-
// },
|
|
3412
|
-
// components: []
|
|
3413
|
-
// }
|
|
3414
|
-
// ],
|
|
3415
|
-
// order: 1,
|
|
3416
|
-
// sectionId: '6301efb45f80177acb4e5720'
|
|
3417
|
-
// },
|
|
3418
|
-
// {
|
|
3419
|
-
// landingPageType: 'template',
|
|
3420
|
-
// isActive: true,
|
|
3421
|
-
// isV2Section: true,
|
|
3422
|
-
// _id: '69980d7ff8d29a00129ae9aa',
|
|
3423
|
-
// type: 'INFO',
|
|
3424
|
-
// components: [
|
|
3425
|
-
// {
|
|
3426
|
-
// _id: '69957138231456ffc3cf274c',
|
|
3427
|
-
// metadata: {},
|
|
3428
|
-
// sectionsBgname: {
|
|
3429
|
-
// _id: '6995713d49059b26de4dba0e',
|
|
3430
|
-
// isActive: true,
|
|
3431
|
-
// isEditable: true,
|
|
3432
|
-
// sectionBgData: {
|
|
3433
|
-
// id: '6995714b9911177086c6ed58',
|
|
3434
|
-
// value: '',
|
|
3435
|
-
// label: '',
|
|
3436
|
-
// type: 'text',
|
|
3437
|
-
// name: 'Color',
|
|
3438
|
-
// bgType: 'color',
|
|
3439
|
-
// elementType: 'div',
|
|
3440
|
-
// isYoutubeVideo: false,
|
|
3441
|
-
// metadata: { value: 'pink' }
|
|
3442
|
-
// },
|
|
3443
|
-
// sectionBgOption: [
|
|
3444
|
-
// {
|
|
3445
|
-
// id: '699571422bfd97eb41067be7',
|
|
3446
|
-
// value: 'imagev',
|
|
3447
|
-
// label: '',
|
|
3448
|
-
// bgType: 'image',
|
|
3449
|
-
// type: 'image',
|
|
3450
|
-
// name: 'Image',
|
|
3451
|
-
// isYoutubeVideo: false,
|
|
3452
|
-
// elementType: 'div',
|
|
3453
|
-
// metadata: {
|
|
3454
|
-
// value:
|
|
3455
|
-
// 'https://fastly.picsum.photos/id/4/5000/3333.jpg?hmac=ghf06FdmgiD0-G4c9DdNM8RnBIN7BO0-ZGEw47khHP4'
|
|
3456
|
-
// }
|
|
3457
|
-
// },
|
|
3458
|
-
// {
|
|
3459
|
-
// id: '699571461f66062042534e24',
|
|
3460
|
-
// value: 'colorv',
|
|
3461
|
-
// label: '',
|
|
3462
|
-
// type: 'video',
|
|
3463
|
-
// bgType: 'video',
|
|
3464
|
-
// isYoutubeVideo: true,
|
|
3465
|
-
// name: 'Video',
|
|
3466
|
-
// elementType: 'div',
|
|
3467
|
-
// metadata: {
|
|
3468
|
-
// value: 'https://www.youtube.com/watch?v=rET3lp6kk2E'
|
|
3469
|
-
// }
|
|
3470
|
-
// },
|
|
3471
|
-
// {
|
|
3472
|
-
// id: '6995714b9911177086c6ed58',
|
|
3473
|
-
// value: '',
|
|
3474
|
-
// label: '',
|
|
3475
|
-
// type: 'text',
|
|
3476
|
-
// name: 'Color',
|
|
3477
|
-
// bgType: 'color',
|
|
3478
|
-
// elementType: 'div',
|
|
3479
|
-
// isYoutubeVideo: false,
|
|
3480
|
-
// metadata: { value: 'pink' }
|
|
3481
|
-
// },
|
|
3482
|
-
// {
|
|
3483
|
-
// id: '6995714ff18384ed30435509',
|
|
3484
|
-
// value: '',
|
|
3485
|
-
// label: '',
|
|
3486
|
-
// type: 'gradient',
|
|
3487
|
-
// name: 'Theme',
|
|
3488
|
-
// bgType: 'gradient',
|
|
3489
|
-
// elementType: 'div',
|
|
3490
|
-
// isYoutubeVideo: false,
|
|
3491
|
-
// metadata: {
|
|
3492
|
-
// value: 'linear-gradient(135deg, #f093fb 0%, #f5576c 100%)'
|
|
3493
|
-
// }
|
|
3494
|
-
// }
|
|
3495
|
-
// ],
|
|
3496
|
-
// type: 'sectionbg',
|
|
3497
|
-
// name: 'sectionsBgname',
|
|
3498
|
-
// label: 'background',
|
|
3499
|
-
// elementType: 'div',
|
|
3500
|
-
// components: []
|
|
3501
|
-
// }
|
|
3502
|
-
// },
|
|
3503
|
-
// {
|
|
3504
|
-
// _id: '6995715b9bba9bc46615c1e4',
|
|
3505
|
-
// metadata: { order: 1 },
|
|
3506
|
-
// cardHeading: {
|
|
3507
|
-
// _id: '6995715f2a9947226b1907f9',
|
|
3508
|
-
// isActive: true,
|
|
3509
|
-
// isEditable: true,
|
|
3510
|
-
// sectionBgData: null,
|
|
3511
|
-
// sectionBgOption: [],
|
|
3512
|
-
// type: 'text',
|
|
3513
|
-
// name: 'cardHeading',
|
|
3514
|
-
// elementType: 'div',
|
|
3515
|
-
// label: 'Heading',
|
|
3516
|
-
// metadata: { value: 'OUR COURSES' },
|
|
3517
|
-
// components: []
|
|
3518
|
-
// },
|
|
3519
|
-
// title: {
|
|
3520
|
-
// _id: '699571642b8fffd9ae0847b6',
|
|
3521
|
-
// isActive: true,
|
|
3522
|
-
// isEditable: true,
|
|
3523
|
-
// sectionBgData: null,
|
|
3524
|
-
// sectionBgOption: [],
|
|
3525
|
-
// type: 'text',
|
|
3526
|
-
// name: 'title',
|
|
3527
|
-
// elementType: 'h2',
|
|
3528
|
-
// label: 'Title',
|
|
3529
|
-
// metadata: {
|
|
3530
|
-
// value: 'Cohesive approach delivers comprehensive results'
|
|
3531
|
-
// },
|
|
3532
|
-
// components: []
|
|
3533
|
-
// },
|
|
3534
|
-
// contentList: {
|
|
3535
|
-
// _id: '69957168a02d7605b87aae07',
|
|
3536
|
-
// isActive: true,
|
|
3537
|
-
// isEditable: true,
|
|
3538
|
-
// sectionBgData: null,
|
|
3539
|
-
// sectionBgOption: [],
|
|
3540
|
-
// type: 'carousel',
|
|
3541
|
-
// name: 'contentList',
|
|
3542
|
-
// elementType: '',
|
|
3543
|
-
// label: 'Content List',
|
|
3544
|
-
// components: [
|
|
3545
|
-
// {
|
|
3546
|
-
// _id: '6995716ca258103860327c34',
|
|
3547
|
-
// metadata: { order: 1 },
|
|
3548
|
-
// contentHeading: {
|
|
3549
|
-
// _id: '699571705718b5a51caf4c80',
|
|
3550
|
-
// isActive: true,
|
|
3551
|
-
// isEditable: true,
|
|
3552
|
-
// sectionBgData: null,
|
|
3553
|
-
// sectionBgOption: [],
|
|
3554
|
-
// type: 'text',
|
|
3555
|
-
// name: 'contentHeading',
|
|
3556
|
-
// elementType: 'h3',
|
|
3557
|
-
// label: 'Subheading',
|
|
3558
|
-
// metadata: { value: 'Diploma in vocal music' },
|
|
3559
|
-
// components: []
|
|
3560
|
-
// },
|
|
3561
|
-
// contentPara: {
|
|
3562
|
-
// _id: '69957174083cdd8b733c312c',
|
|
3563
|
-
// isActive: true,
|
|
3564
|
-
// isEditable: true,
|
|
3565
|
-
// sectionBgData: null,
|
|
3566
|
-
// sectionBgOption: [],
|
|
3567
|
-
// type: 'text',
|
|
3568
|
-
// name: 'contentPara',
|
|
3569
|
-
// elementType: 'p',
|
|
3570
|
-
// label: 'Description',
|
|
3571
|
-
// metadata: {
|
|
3572
|
-
// value:
|
|
3573
|
-
// 'Produce musical sounds with the voice and augment regular speech by using the perfect rhythm, vocal techniques and sustained tonality.'
|
|
3574
|
-
// },
|
|
3575
|
-
// components: []
|
|
3576
|
-
// },
|
|
3577
|
-
// icon: {
|
|
3578
|
-
// _id: '6995717d57fb5824858c1f67',
|
|
3579
|
-
// isActive: true,
|
|
3580
|
-
// isEditable: true,
|
|
3581
|
-
// sectionBgData: null,
|
|
3582
|
-
// sectionBgOption: [],
|
|
3583
|
-
// type: 'icon',
|
|
3584
|
-
// name: 'icon',
|
|
3585
|
-
// elementType: 'Icon',
|
|
3586
|
-
// label: 'Icon',
|
|
3587
|
-
// metadata: { value: 'Vocal' },
|
|
3588
|
-
// components: []
|
|
3589
|
-
// }
|
|
3590
|
-
// }
|
|
3591
|
-
// ]
|
|
3592
|
-
// }
|
|
3593
|
-
// }
|
|
3594
|
-
// ],
|
|
3595
|
-
// label: 'INFO',
|
|
3596
|
-
// metadata: {},
|
|
3597
|
-
// order: 2
|
|
3598
|
-
// }
|
|
3599
|
-
// ];
|
|
3600
|
-
|
|
3601
3084
|
const Wrapper = SectionWrapper || Fragment;
|
|
3602
3085
|
return /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
3603
3086
|
theme: theme
|
|
@@ -12325,17 +11808,25 @@ const MemoisedSection = /*#__PURE__*/memo(({
|
|
|
12325
11808
|
sectionIndex: sectionIndex
|
|
12326
11809
|
});
|
|
12327
11810
|
});
|
|
11811
|
+
const SectionWithBackground = withSectionBackground(MemoisedSection);
|
|
12328
11812
|
function SectionRenderer({
|
|
12329
11813
|
sectionData,
|
|
12330
11814
|
extraProps,
|
|
12331
11815
|
isCustomWebsite,
|
|
12332
11816
|
sectionIndex
|
|
12333
11817
|
}) {
|
|
12334
|
-
|
|
11818
|
+
let sectionBg = {};
|
|
11819
|
+
if (sectionData?.isV2Section) {
|
|
11820
|
+
let currentObj = sectionData?.components?.find(component => component.hasOwnProperty('sectionsBgname')?.sectionBgData || {});
|
|
11821
|
+
sectionBg = currentObj?.sectionsBgname?.sectionBgData || {};
|
|
11822
|
+
}
|
|
11823
|
+
return /*#__PURE__*/React.createElement(SectionWithBackground, {
|
|
12335
11824
|
sectionData: sectionData,
|
|
12336
11825
|
extraProps: extraProps,
|
|
12337
11826
|
isCustomWebsite: isCustomWebsite,
|
|
12338
|
-
sectionIndex: sectionIndex
|
|
11827
|
+
sectionIndex: sectionIndex,
|
|
11828
|
+
isSkipV2Section: sectionData?.isV2Section,
|
|
11829
|
+
componentBg: sectionBg || {}
|
|
12339
11830
|
});
|
|
12340
11831
|
}
|
|
12341
11832
|
|