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