@capillarytech/creatives-library 8.0.139-alpha.2 → 8.0.140

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.
Files changed (46) hide show
  1. package/containers/Cap/tests/__snapshots__/index.test.js.snap +1 -0
  2. package/initialReducer.js +2 -0
  3. package/package.json +1 -1
  4. package/services/api.js +5 -0
  5. package/translations/en.json +1 -0
  6. package/utils/content.js +15 -0
  7. package/utils/tests/tagValidations.test.js +112 -0
  8. package/v2Components/FormBuilder/index.js +13 -1
  9. package/v2Components/FormBuilder/messages.js +4 -0
  10. package/v2Components/MobilePushPreviewV2/index.js +8 -0
  11. package/v2Components/TemplatePreview/assets/images/empty_android.svg +8 -0
  12. package/v2Components/TemplatePreview/assets/images/empty_ios.svg +5 -0
  13. package/v2Components/TemplatePreview/index.js +28 -2
  14. package/v2Containers/BeeEditor/index.js +1 -0
  15. package/v2Containers/BeePopupEditor/constants.js +10 -0
  16. package/v2Containers/BeePopupEditor/index.js +169 -0
  17. package/v2Containers/Cap/constants.js +7 -0
  18. package/v2Containers/Cap/tests/__snapshots__/index.test.js.snap +1 -0
  19. package/v2Containers/CreativesContainer/SlideBoxContent.js +26 -8
  20. package/v2Containers/CreativesContainer/index.js +12 -2
  21. package/v2Containers/Email/index.js +16 -0
  22. package/v2Containers/Email/messages.js +4 -0
  23. package/v2Containers/EmailWrapper/hooks/useEmailWrapper.js +5 -0
  24. package/v2Containers/InApp/actions.js +7 -0
  25. package/v2Containers/InApp/constants.js +5 -1
  26. package/v2Containers/InApp/index.js +76 -53
  27. package/v2Containers/InApp/reducer.js +17 -0
  28. package/v2Containers/InApp/sagas.js +27 -0
  29. package/v2Containers/InApp/selectors.js +23 -1
  30. package/v2Containers/InappAdvanced/index.js +459 -0
  31. package/v2Containers/InappAdvanced/index.scss +11 -0
  32. package/v2Containers/InappWrapper/_inappWrapper.scss +19 -0
  33. package/v2Containers/InappWrapper/index.js +192 -0
  34. package/v2Containers/InappWrapper/messages.js +38 -0
  35. package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/content.test.js.snap +3 -0
  36. package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/index.test.js.snap +2 -0
  37. package/v2Containers/Line/Container/Wrapper/tests/__snapshots__/index.test.js.snap +25 -0
  38. package/v2Containers/Line/Container/tests/__snapshots__/index.test.js.snap +18 -0
  39. package/v2Containers/MobilePushNew/components/MediaUploaders.js +5 -6
  40. package/v2Containers/MobilePushNew/index.js +14 -14
  41. package/v2Containers/Rcs/tests/__snapshots__/index.test.js.snap +111 -0
  42. package/v2Containers/SmsTrai/Create/tests/__snapshots__/index.test.js.snap +4 -0
  43. package/v2Containers/SmsTrai/Edit/tests/__snapshots__/index.test.js.snap +8 -0
  44. package/v2Containers/Templates/index.js +5 -0
  45. package/v2Containers/Templates/sagas.js +4 -1
  46. package/v2Containers/Whatsapp/tests/__snapshots__/index.test.js.snap +132 -0
@@ -0,0 +1,38 @@
1
+ /*
2
+ * MobilepushWrapper Messages
3
+ *
4
+ * This contains all the text for the MobilepushWrapper component.
5
+ */
6
+ import { defineMessages } from 'react-intl';
7
+ const prefix = "app.v2Container.InappWrapper";
8
+
9
+ export default defineMessages({
10
+ header: {
11
+ id: `${prefix}.header`,
12
+ defaultMessage: 'This is MobilepushWrapper container !',
13
+ },
14
+ basicEditor: {
15
+ id: `${prefix}.basicEditor`,
16
+ defaultMessage: 'Basic editor',
17
+ },
18
+ basicEditorDesc: {
19
+ id: `${prefix}.basicEditorDesc`,
20
+ defaultMessage: 'This form creates in-app message templates with basic customization options and supports only four layouts.',
21
+ },
22
+ dndEditor: {
23
+ id: `${prefix}.dndEditor`,
24
+ defaultMessage: 'Drag & drop editor',
25
+ },
26
+ dndEditorDesc: {
27
+ id: `${prefix}.dndEditorDesc`,
28
+ defaultMessage: 'This advanced editor, powered by Beefree template builder, offers full customization options and supports all layouts.',
29
+ },
30
+ modeDesc: {
31
+ id: `${prefix}.modeDesc`,
32
+ defaultMessage: 'Which editor do you want to use to create this template?',
33
+ },
34
+ creativeName: {
35
+ id: `${prefix}.creativeName`,
36
+ defaultMessage: 'Creative name',
37
+ },
38
+ });
@@ -263,6 +263,7 @@ exports[`Creatives line image carousel test/> should render 1`] = `
263
263
  "creatives.componentsV2.FTP.message": "Message",
264
264
  "creatives.componentsV2.FTP.search": "Search",
265
265
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
266
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
266
267
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
267
268
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
268
269
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -3945,6 +3946,7 @@ exports[`Creatives line image carousel test/> should render 2`] = `
3945
3946
  "creatives.componentsV2.FTP.message": "Message",
3946
3947
  "creatives.componentsV2.FTP.search": "Search",
3947
3948
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
3949
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
3948
3950
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
3949
3951
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
3950
3952
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -7766,6 +7768,7 @@ exports[`Creatives line image carousel test/> should render 3`] = `
7766
7768
  "creatives.componentsV2.FTP.message": "Message",
7767
7769
  "creatives.componentsV2.FTP.search": "Search",
7768
7770
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
7771
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
7769
7772
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
7770
7773
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
7771
7774
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -263,6 +263,7 @@ exports[`line wrapper test/> should render line component new 1`] = `
263
263
  "creatives.componentsV2.FTP.message": "Message",
264
264
  "creatives.componentsV2.FTP.search": "Search",
265
265
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
266
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
266
267
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
267
268
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
268
269
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -19535,6 +19536,7 @@ exports[`line wrapper test/> should render line component old 1`] = `
19535
19536
  "creatives.componentsV2.FTP.message": "Message",
19536
19537
  "creatives.componentsV2.FTP.search": "Search",
19537
19538
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
19539
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
19538
19540
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
19539
19541
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
19540
19542
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -263,6 +263,7 @@ exports[`line wrapper test/> should render create mode 1`] = `
263
263
  "creatives.componentsV2.FTP.message": "Message",
264
264
  "creatives.componentsV2.FTP.search": "Search",
265
265
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
266
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
266
267
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
267
268
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
268
269
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -18255,6 +18256,7 @@ new message content.",
18255
18256
  "creatives.componentsV2.FTP.message": "Message",
18256
18257
  "creatives.componentsV2.FTP.search": "Search",
18257
18258
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
18259
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
18258
18260
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
18259
18261
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
18260
18262
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -20800,6 +20802,7 @@ new message content.",
20800
20802
  "creatives.componentsV2.FTP.message": "Message",
20801
20803
  "creatives.componentsV2.FTP.search": "Search",
20802
20804
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
20805
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
20803
20806
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
20804
20807
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
20805
20808
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -23776,6 +23779,7 @@ new message content.",
23776
23779
  "creatives.componentsV2.FTP.message": "Message",
23777
23780
  "creatives.componentsV2.FTP.search": "Search",
23778
23781
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
23782
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
23779
23783
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
23780
23784
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
23781
23785
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -26029,6 +26033,7 @@ new message content.",
26029
26033
  "creatives.componentsV2.FTP.message": "Message",
26030
26034
  "creatives.componentsV2.FTP.search": "Search",
26031
26035
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
26036
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
26032
26037
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
26033
26038
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
26034
26039
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -28303,6 +28308,7 @@ new message content.",
28303
28308
  "creatives.componentsV2.FTP.message": "Message",
28304
28309
  "creatives.componentsV2.FTP.search": "Search",
28305
28310
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
28311
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
28306
28312
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
28307
28313
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
28308
28314
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -30589,6 +30595,7 @@ new message content.",
30589
30595
  "creatives.componentsV2.FTP.message": "Message",
30590
30596
  "creatives.componentsV2.FTP.search": "Search",
30591
30597
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
30598
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
30592
30599
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
30593
30600
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
30594
30601
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -32860,6 +32867,7 @@ exports[`line wrapper test/> should render create mode 2`] = `
32860
32867
  "creatives.componentsV2.FTP.message": "Message",
32861
32868
  "creatives.componentsV2.FTP.search": "Search",
32862
32869
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
32870
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
32863
32871
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
32864
32872
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
32865
32873
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -58138,6 +58146,7 @@ new message content.",
58138
58146
  "creatives.componentsV2.FTP.message": "Message",
58139
58147
  "creatives.componentsV2.FTP.search": "Search",
58140
58148
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
58149
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
58141
58150
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
58142
58151
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
58143
58152
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -60875,6 +60884,7 @@ new message content.",
60875
60884
  "creatives.componentsV2.FTP.message": "Message",
60876
60885
  "creatives.componentsV2.FTP.search": "Search",
60877
60886
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
60887
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
60878
60888
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
60879
60889
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
60880
60890
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -64208,6 +64218,7 @@ new message content.",
64208
64218
  "creatives.componentsV2.FTP.message": "Message",
64209
64219
  "creatives.componentsV2.FTP.search": "Search",
64210
64220
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
64221
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
64211
64222
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
64212
64223
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
64213
64224
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -66945,6 +66956,7 @@ new message content.",
66945
66956
  "creatives.componentsV2.FTP.message": "Message",
66946
66957
  "creatives.componentsV2.FTP.search": "Search",
66947
66958
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
66959
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
66948
66960
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
66949
66961
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
66950
66962
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -70651,6 +70663,7 @@ new message content.",
70651
70663
  "creatives.componentsV2.FTP.message": "Message",
70652
70664
  "creatives.componentsV2.FTP.search": "Search",
70653
70665
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
70666
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
70654
70667
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
70655
70668
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
70656
70669
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -73830,6 +73843,7 @@ new message content.",
73830
73843
  "creatives.componentsV2.FTP.message": "Message",
73831
73844
  "creatives.componentsV2.FTP.search": "Search",
73832
73845
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
73846
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
73833
73847
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
73834
73848
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
73835
73849
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -76865,6 +76879,7 @@ new message content.",
76865
76879
  "creatives.componentsV2.FTP.message": "Message",
76866
76880
  "creatives.componentsV2.FTP.search": "Search",
76867
76881
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
76882
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
76868
76883
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
76869
76884
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
76870
76885
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -79911,6 +79926,7 @@ new message content.",
79911
79926
  "creatives.componentsV2.FTP.message": "Message",
79912
79927
  "creatives.componentsV2.FTP.search": "Search",
79913
79928
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
79929
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
79914
79930
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
79915
79931
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
79916
79932
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -85719,6 +85735,7 @@ new message content.",
85719
85735
  "creatives.componentsV2.FTP.message": "Message",
85720
85736
  "creatives.componentsV2.FTP.search": "Search",
85721
85737
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
85738
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
85722
85739
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
85723
85740
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
85724
85741
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -88870,6 +88887,7 @@ new message content.",
88870
88887
  "creatives.componentsV2.FTP.message": "Message",
88871
88888
  "creatives.componentsV2.FTP.search": "Search",
88872
88889
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
88890
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
88873
88891
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
88874
88892
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
88875
88893
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -91952,6 +91970,7 @@ new message content.",
91952
91970
  "creatives.componentsV2.FTP.message": "Message",
91953
91971
  "creatives.componentsV2.FTP.search": "Search",
91954
91972
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
91973
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
91955
91974
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
91956
91975
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
91957
91976
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -94933,6 +94952,7 @@ new message content.",
94933
94952
  "creatives.componentsV2.FTP.message": "Message",
94934
94953
  "creatives.componentsV2.FTP.search": "Search",
94935
94954
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
94955
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
94936
94956
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
94937
94957
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
94938
94958
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -97674,6 +97694,7 @@ new message content.",
97674
97694
  "creatives.componentsV2.FTP.message": "Message",
97675
97695
  "creatives.componentsV2.FTP.search": "Search",
97676
97696
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
97697
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
97677
97698
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
97678
97699
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
97679
97700
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -100348,6 +100369,7 @@ new message content.",
100348
100369
  "creatives.componentsV2.FTP.message": "Message",
100349
100370
  "creatives.componentsV2.FTP.search": "Search",
100350
100371
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
100372
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
100351
100373
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
100352
100374
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
100353
100375
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -102601,6 +102623,7 @@ new message content.",
102601
102623
  "creatives.componentsV2.FTP.message": "Message",
102602
102624
  "creatives.componentsV2.FTP.search": "Search",
102603
102625
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
102626
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
102604
102627
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
102605
102628
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
102606
102629
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -104875,6 +104898,7 @@ new message content.",
104875
104898
  "creatives.componentsV2.FTP.message": "Message",
104876
104899
  "creatives.componentsV2.FTP.search": "Search",
104877
104900
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
104901
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
104878
104902
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
104879
104903
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
104880
104904
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -107161,6 +107185,7 @@ new message content.",
107161
107185
  "creatives.componentsV2.FTP.message": "Message",
107162
107186
  "creatives.componentsV2.FTP.search": "Search",
107163
107187
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
107188
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
107164
107189
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
107165
107190
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
107166
107191
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -263,6 +263,7 @@ exports[`line wrapper test/> should render line component new 1`] = `
263
263
  "creatives.componentsV2.FTP.message": "Message",
264
264
  "creatives.componentsV2.FTP.search": "Search",
265
265
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
266
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
266
267
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
267
268
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
268
269
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -6582,6 +6583,7 @@ new message content.",
6582
6583
  "creatives.componentsV2.FTP.message": "Message",
6583
6584
  "creatives.componentsV2.FTP.search": "Search",
6584
6585
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
6586
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
6585
6587
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
6586
6588
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
6587
6589
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -9279,6 +9281,7 @@ exports[`line wrapper test/> should render line component new 2`] = `
9279
9281
  "creatives.componentsV2.FTP.message": "Message",
9280
9282
  "creatives.componentsV2.FTP.search": "Search",
9281
9283
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
9284
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
9282
9285
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
9283
9286
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
9284
9287
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -15782,6 +15785,7 @@ new message content.",
15782
15785
  "creatives.componentsV2.FTP.message": "Message",
15783
15786
  "creatives.componentsV2.FTP.search": "Search",
15784
15787
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
15788
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
15785
15789
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
15786
15790
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
15787
15791
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -18479,6 +18483,7 @@ exports[`line wrapper test/> should render line component new 3`] = `
18479
18483
  "creatives.componentsV2.FTP.message": "Message",
18480
18484
  "creatives.componentsV2.FTP.search": "Search",
18481
18485
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
18486
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
18482
18487
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
18483
18488
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
18484
18489
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -25224,6 +25229,7 @@ new message content.",
25224
25229
  "creatives.componentsV2.FTP.message": "Message",
25225
25230
  "creatives.componentsV2.FTP.search": "Search",
25226
25231
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
25232
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
25227
25233
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
25228
25234
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
25229
25235
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -27956,6 +27962,7 @@ exports[`line wrapper test/> should render line component new 4`] = `
27956
27962
  "creatives.componentsV2.FTP.message": "Message",
27957
27963
  "creatives.componentsV2.FTP.search": "Search",
27958
27964
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
27965
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
27959
27966
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
27960
27967
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
27961
27968
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -36922,6 +36929,7 @@ new message content.",
36922
36929
  "creatives.componentsV2.FTP.message": "Message",
36923
36930
  "creatives.componentsV2.FTP.search": "Search",
36924
36931
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
36932
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
36925
36933
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
36926
36934
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
36927
36935
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -39654,6 +39662,7 @@ exports[`line wrapper test/> should render line component new 5`] = `
39654
39662
  "creatives.componentsV2.FTP.message": "Message",
39655
39663
  "creatives.componentsV2.FTP.search": "Search",
39656
39664
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
39665
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
39657
39666
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
39658
39667
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
39659
39668
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -48662,6 +48671,7 @@ new message content.",
48662
48671
  "creatives.componentsV2.FTP.message": "Message",
48663
48672
  "creatives.componentsV2.FTP.search": "Search",
48664
48673
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
48674
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
48665
48675
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
48666
48676
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
48667
48677
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -51394,6 +51404,7 @@ exports[`line wrapper test/> should render line component old 1`] = `
51394
51404
  "creatives.componentsV2.FTP.message": "Message",
51395
51405
  "creatives.componentsV2.FTP.search": "Search",
51396
51406
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
51407
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
51397
51408
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
51398
51409
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
51399
51410
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -55782,6 +55793,7 @@ new message content.",
55782
55793
  "creatives.componentsV2.FTP.message": "Message",
55783
55794
  "creatives.componentsV2.FTP.search": "Search",
55784
55795
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
55796
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
55785
55797
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
55786
55798
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
55787
55799
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -59184,6 +59196,7 @@ exports[`line wrapper test/> should render line component old 2`] = `
59184
59196
  "creatives.componentsV2.FTP.message": "Message",
59185
59197
  "creatives.componentsV2.FTP.search": "Search",
59186
59198
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
59199
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
59187
59200
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
59188
59201
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
59189
59202
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -63990,6 +64003,7 @@ new message content.",
63990
64003
  "creatives.componentsV2.FTP.message": "Message",
63991
64004
  "creatives.componentsV2.FTP.search": "Search",
63992
64005
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
64006
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
63993
64007
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
63994
64008
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
63995
64009
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -67392,6 +67406,7 @@ exports[`line wrapper test/> should render line component old 3`] = `
67392
67406
  "creatives.componentsV2.FTP.message": "Message",
67393
67407
  "creatives.componentsV2.FTP.search": "Search",
67394
67408
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
67409
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
67395
67410
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
67396
67411
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
67397
67412
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -72440,6 +72455,7 @@ new message content.",
72440
72455
  "creatives.componentsV2.FTP.message": "Message",
72441
72456
  "creatives.componentsV2.FTP.search": "Search",
72442
72457
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
72458
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
72443
72459
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
72444
72460
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
72445
72461
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -75877,6 +75893,7 @@ exports[`line wrapper test/> should render line component old 4`] = `
75877
75893
  "creatives.componentsV2.FTP.message": "Message",
75878
75894
  "creatives.componentsV2.FTP.search": "Search",
75879
75895
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
75896
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
75880
75897
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
75881
75898
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
75882
75899
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -81045,6 +81062,7 @@ new message content.",
81045
81062
  "creatives.componentsV2.FTP.message": "Message",
81046
81063
  "creatives.componentsV2.FTP.search": "Search",
81047
81064
  "creatives.componentsV2.Footer.header": "This is the Footer component !",
81065
+ "creatives.componentsV2.FormBuilder.base64ImageError": "Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.",
81048
81066
  "creatives.componentsV2.FormBuilder.cancel": "Cancel",
81049
81067
  "creatives.componentsV2.FormBuilder.contentNotValidLanguage": "Content is not valid for language:",
81050
81068
  "creatives.componentsV2.FormBuilder.dragAndDrop": "Drag and drop image here",
@@ -138,7 +138,7 @@ const MediaUploaders = ({
138
138
  // Move updateCarouselCard to top level so useEffect can access it
139
139
  const updateCarouselCard = useCallback((index, fields) => {
140
140
  const currentData = getCurrentCarouselData();
141
- setCurrentCarouselData(currentData.map((card, i) => (
141
+ setCurrentCarouselData(currentData?.map((card, i) => (
142
142
  i === index ? { ...card, ...fields } : card
143
143
  )));
144
144
  }, [getCurrentCarouselData, setCurrentCarouselData]);
@@ -513,10 +513,9 @@ const MediaUploaders = ({
513
513
  imageSrc={imageSource}
514
514
  updateImageSrc={(src) => {
515
515
  // For gallery uploads (direct URL), update immediately
516
- if (src && (src.includes('http') || src.includes('https'))) {
516
+ if (src && src?.includes('http')) {
517
517
  handleCarouselImageChange(src, cardIndex);
518
- }
519
-
518
+ }
520
519
  // Always call setUpdateMpushImageSrc for Redux state management
521
520
  setUpdateMpushImageSrc(src, activeTab === ANDROID ? 0 : 1, CAROUSEL);
522
521
  }}
@@ -849,14 +848,14 @@ const MediaUploaders = ({
849
848
  const platformIndex = activeTab === ANDROID ? 0 : 1;
850
849
  const uploadedData = imageData[`uploadedAssetData${platformIndex}`];
851
850
 
852
- if (uploadedData && uploadedData.metaInfo && uploadedData.metaInfo.secure_file_path) {
851
+ if (uploadedData?.metaInfo?.secure_file_path) {
853
852
  // Check if this is new upload data (different from what we processed last time)
854
853
  const currentDataKey = `${uploadedData.metaInfo.secure_file_path}_${uploadedData.metaInfo.file_name || ''}`;
855
854
  const previousDataKey = previousUploadDataRef.current;
856
855
 
857
856
  if (currentDataKey !== previousDataKey) {
858
857
  // Update the specific card that was uploading
859
- updateCarouselCard(uploadingCardIndex, { imageUrl: uploadedData.metaInfo.secure_file_path });
858
+ updateCarouselCard(uploadingCardIndex, { imageUrl: uploadedData?.metaInfo?.secure_file_path });
860
859
 
861
860
  // Store this upload data as "processed" to avoid reprocessing
862
861
  previousUploadDataRef.current = currentDataKey;
@@ -152,7 +152,7 @@ const processMediaType = (contentType, expandableDetails) => {
152
152
  if (expandableStyle === BIG_PICTURE) {
153
153
  mediaType = IMAGE;
154
154
  imageSrc = expandableDetails?.image || contentType?.image;
155
- } else if (expandableStyle === MANUAL_CAROUSEL || expandableStyle === AUTO_CAROUSEL || expandableStyle === FILMSTRIP_CAROUSEL || expandableStyle === CAROUSEL) {
155
+ } else if ([MANUAL_CAROUSEL, AUTO_CAROUSEL, FILMSTRIP_CAROUSEL, CAROUSEL].includes(expandableStyle)) {
156
156
  mediaType = CAROUSEL;
157
157
  // Extract carousel data from expandableDetails
158
158
  carouselData = expandableCarouselData || [];
@@ -165,7 +165,7 @@ const processMediaType = (contentType, expandableDetails) => {
165
165
  if (expandableMedia?.length > 0) {
166
166
  const mediaItem = expandableMedia[0];
167
167
  const { type, url, videoPreviewUrl } = mediaItem || {};
168
-
168
+
169
169
  if (type === VIDEO) {
170
170
  // Enhanced GIF detection with robust URL validation
171
171
  const isGif = (() => {
@@ -174,7 +174,7 @@ const processMediaType = (contentType, expandableDetails) => {
174
174
  if (!trimmedUrl) return false;
175
175
  return trimmedUrl.toLowerCase().includes('.gif');
176
176
  })();
177
-
177
+
178
178
  if (isGif) {
179
179
  mediaType = GIF;
180
180
  } else {
@@ -191,7 +191,7 @@ const processMediaType = (contentType, expandableDetails) => {
191
191
 
192
192
  // PRIORITY 3: Check mediaTypeFromStyle (from expandable details)
193
193
  // This provides media type information from the expandable details structure
194
- if (mediaTypeFromStyle === VIDEO || mediaTypeFromStyle === GIF || mediaTypeFromStyle === CAROUSEL || mediaTypeFromStyle === IMAGE) {
194
+ if ([VIDEO, GIF, CAROUSEL, IMAGE].includes(mediaTypeFromStyle)) {
195
195
  mediaType = mediaTypeFromStyle;
196
196
  // If mediaType from style is CAROUSEL, also check for carousel data
197
197
  if (mediaTypeFromStyle === CAROUSEL && expandableCarouselData?.length > 0) {
@@ -201,7 +201,7 @@ const processMediaType = (contentType, expandableDetails) => {
201
201
 
202
202
  // PRIORITY 4: Check mediaTypeFromRoot (from root content type)
203
203
  // This provides media type information from the root content structure
204
- if (mediaTypeFromRoot === VIDEO || mediaTypeFromRoot === GIF || mediaTypeFromRoot === CAROUSEL || mediaTypeFromRoot === IMAGE) {
204
+ if ([VIDEO, GIF, CAROUSEL, IMAGE].includes(mediaTypeFromRoot)) {
205
205
  mediaType = mediaTypeFromRoot;
206
206
  // If mediaType from root is CAROUSEL, also check for carousel data
207
207
  if (mediaTypeFromRoot === CAROUSEL && expandableCarouselData?.length > 0) {
@@ -211,7 +211,7 @@ const processMediaType = (contentType, expandableDetails) => {
211
211
 
212
212
  // PRIORITY 5: Check rootType (lowest priority)
213
213
  // This is the basic type from the root content type
214
- if (rootType === VIDEO || rootType === GIF || rootType === CAROUSEL) {
214
+ if ([VIDEO, GIF, CAROUSEL].includes(rootType)) {
215
215
  mediaType = rootType;
216
216
  // If root type is CAROUSEL, also check for carousel data
217
217
  if (rootType === CAROUSEL && expandableCarouselData?.length > 0) {
@@ -301,7 +301,7 @@ const createContentData = (contentType, mediaInfo, buttons, deepLink, processCar
301
301
  // Otherwise, check carousel data
302
302
  if (mediaType === CAROUSEL) {
303
303
  const carouselLinkInfo = processCarouselDataForDeepLinks(carouselData);
304
- return carouselLinkInfo.deepLinkValue || carouselLinkInfo.externalLinkValue;
304
+ return carouselLinkInfo?.deepLinkValue || carouselLinkInfo?.externalLinkValue;
305
305
  }
306
306
  return false;
307
307
  })();
@@ -321,7 +321,7 @@ const createContentData = (contentType, mediaInfo, buttons, deepLink, processCar
321
321
  }
322
322
  if (mediaType === CAROUSEL) {
323
323
  const carouselLinkInfo = processCarouselDataForDeepLinks(carouselData);
324
- return carouselLinkInfo.externalLinkValue ? EXTERNAL_LINK : DEEP_LINK;
324
+ return carouselLinkInfo?.externalLinkValue ? EXTERNAL_LINK : DEEP_LINK;
325
325
  }
326
326
  return DEEP_LINK;
327
327
  })();
@@ -400,7 +400,7 @@ const createContentData = (contentType, mediaInfo, buttons, deepLink, processCar
400
400
  }
401
401
  if (mediaType === CAROUSEL) {
402
402
  const carouselLinkInfo = processCarouselDataForDeepLinks(carouselData);
403
- return carouselLinkInfo.deepLinkValue;
403
+ return carouselLinkInfo?.deepLinkValue;
404
404
  }
405
405
  return "";
406
406
  })(),
@@ -426,7 +426,7 @@ const createContentData = (contentType, mediaInfo, buttons, deepLink, processCar
426
426
  }
427
427
  if (mediaType === CAROUSEL) {
428
428
  const carouselLinkInfo = processCarouselDataForDeepLinks(carouselData);
429
- return carouselLinkInfo.deepLinkKeysValue;
429
+ return carouselLinkInfo?.deepLinkKeysValue;
430
430
  }
431
431
  return [];
432
432
  })(),
@@ -449,7 +449,7 @@ const createContentData = (contentType, mediaInfo, buttons, deepLink, processCar
449
449
  }
450
450
  if (mediaType === CAROUSEL) {
451
451
  const carouselLinkInfo = processCarouselDataForDeepLinks(carouselData);
452
- return carouselLinkInfo.externalLinkValue;
452
+ return carouselLinkInfo?.externalLinkValue;
453
453
  }
454
454
  return "";
455
455
  })(),
@@ -1445,13 +1445,13 @@ const MobilePushNew = ({
1445
1445
  }
1446
1446
 
1447
1447
  // Check all possible media type sources
1448
- if (iosType === VIDEO || iosType === GIF || iosType === CAROUSEL) {
1448
+ if ([VIDEO, GIF, CAROUSEL].includes(iosType)) {
1449
1449
  iosMediaType = iosType;
1450
1450
  }
1451
- if (iosMediaTypeFromRoot === VIDEO || iosMediaTypeFromRoot === GIF || iosMediaTypeFromRoot === CAROUSEL || iosMediaTypeFromRoot === IMAGE) {
1451
+ if ([VIDEO, GIF, CAROUSEL, IMAGE].includes(iosMediaTypeFromRoot)) {
1452
1452
  iosMediaType = iosMediaTypeFromRoot;
1453
1453
  }
1454
- if (iosMediaTypeFromStyle === VIDEO || iosMediaTypeFromStyle === GIF || iosMediaTypeFromStyle === CAROUSEL || iosMediaTypeFromStyle === IMAGE) {
1454
+ if ([VIDEO, GIF, CAROUSEL, IMAGE].includes(iosMediaTypeFromStyle)) {
1455
1455
  iosMediaType = iosMediaTypeFromStyle;
1456
1456
  }
1457
1457