@capillarytech/creatives-library 3.4.5 → 3.4.7

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 (60) hide show
  1. package/components/TemplatePreview/assets/images/home-screen-android.svg +21 -0
  2. package/components/TemplatePreview/assets/images/home-screen-ios.svg +16 -0
  3. package/components/TemplatePreview/assets/images/sms-mobile-ios.svg +16 -0
  4. package/components/TemplatePreview/assets/images/sms_mobile_android.svg +22 -0
  5. package/components/TemplatePreview/assets/images/sms_mobile_ios.svg +16 -0
  6. package/components/TemplatePreview/assets/images/sms_mobile_new.svg +22 -0
  7. package/components/TemplatePreview/assets/images/wechat_mobile_android.svg +20 -0
  8. package/config/app.js +2 -0
  9. package/containers/Cap/messsages.js +63 -0
  10. package/containers/Sms/Create/messages.js +1 -1
  11. package/containers/Sms/Edit/messages.js +1 -1
  12. package/containers/WeChat/MapTemplates/messages.js +1 -1
  13. package/index.js +6 -0
  14. package/initialState.js +3 -0
  15. package/package.json +2 -1
  16. package/routes.js +6 -1
  17. package/services/api.js +25 -9
  18. package/translations/en.json +61 -5
  19. package/translations/zh.json +56 -0
  20. package/v2Components/Header/index.js +46 -0
  21. package/v2Components/Header/tests/index.test.js +10 -0
  22. package/v2Components/MarketingObjective/MarketingObjective.style.js +73 -0
  23. package/v2Components/MarketingObjective/index.js +107 -0
  24. package/v2Components/MarketingObjective/messages.js +23 -0
  25. package/v2Components/NavigationBar/index.js +5 -10
  26. package/v2Components/NavigationBar/messages.js +28 -0
  27. package/v2Components/TemplatePreview/assets/images/home-screen-android.svg +21 -0
  28. package/v2Components/TemplatePreview/assets/images/home-screen-ios.svg +16 -0
  29. package/v2Components/TemplatePreview/assets/images/sms_mobile_android.svg +22 -0
  30. package/v2Components/TemplatePreview/assets/images/wechat-home-screen-android.svg +21 -0
  31. package/v2Components/TemplatePreview/assets/images/wechat_mobile_android.svg +20 -0
  32. package/v2Containers/App/constants.js +30 -0
  33. package/v2Containers/Cap/index.js +5 -0
  34. package/v2Containers/CreativesContainer/SlideBoxContent.js +18 -0
  35. package/v2Containers/CreativesContainer/constants.js +1 -0
  36. package/v2Containers/CreativesContainer/index.js +10 -1
  37. package/v2Containers/Email/index.js +9 -1
  38. package/v2Containers/Email/messages.js +8 -0
  39. package/v2Containers/EmailWrapper/index.js +15 -1
  40. package/v2Containers/Facebook/Facebook.style.js +75 -0
  41. package/v2Containers/Facebook/actions.js +13 -0
  42. package/v2Containers/Facebook/constants.js +25 -0
  43. package/v2Containers/Facebook/index.js +358 -0
  44. package/v2Containers/Facebook/messages.js +167 -0
  45. package/v2Containers/Facebook/reducer.js +31 -0
  46. package/v2Containers/Facebook/sagas.js +41 -0
  47. package/v2Containers/Facebook/selectors.js +20 -0
  48. package/v2Containers/MobilePush/Create/index.js +8 -0
  49. package/v2Containers/MobilePush/Edit/index.js +8 -0
  50. package/v2Containers/Sms/Create/_smsCreate.scss +3 -0
  51. package/v2Containers/Sms/Create/index.js +6 -1
  52. package/v2Containers/Sms/Create/messages.js +2 -2
  53. package/v2Containers/Sms/Edit/index.js +6 -1
  54. package/v2Containers/Sms/Edit/messages.js +2 -2
  55. package/v2Containers/Templates/index.js +9 -3
  56. package/v2Containers/TemplatesV2/index.js +53 -22
  57. package/v2Containers/TemplatesV2/messages.js +4 -0
  58. package/v2Containers/WeChat/MapTemplates/index.js +9 -1
  59. package/v2Containers/WeChat/RichmediaTemplates/Create/index.js +9 -2
  60. package/v2Containers/WeChat/RichmediaTemplates/Create/messages.js +1 -1
@@ -127,11 +127,18 @@
127
127
  "creatives.componentsV2.Header.save": "",
128
128
  "creatives.componentsV2.ImagePreview.close": "",
129
129
  "creatives.componentsV2.ImagePreview.loadingImage": "",
130
+ "creatives.componentsV2.NavigationBar.businessProcesses": "",
131
+ "creatives.componentsV2.NavigationBar.campaign": "",
130
132
  "creatives.componentsV2.NavigationBar.header": "",
131
133
  "creatives.componentsV2.NavigationBar.insights": "",
132
134
  "creatives.componentsV2.NavigationBar.logout": "",
135
+ "creatives.componentsV2.NavigationBar.loyaltyProgram": "",
136
+ "creatives.componentsV2.NavigationBar.memberCare": "",
133
137
  "creatives.componentsV2.NavigationBar.orgSettings": "",
134
138
  "creatives.componentsV2.NavigationBar.selectedProductDefault": "",
139
+ "creatives.componentsV2.NavigationBar.storeCare": "",
140
+ "creatives.componentsV2.NavigationBar.storePerformance": "",
141
+ "creatives.componentsV2.NavigationBar.wecrm": "",
135
142
  "creatives.componentsV2.NewCallTask.callTaskTitle": "",
136
143
  "creatives.componentsV2.NewCallTask.description": "",
137
144
  "creatives.componentsV2.NewCallTask.done": "",
@@ -909,6 +916,7 @@
909
916
  "creatives.containersV2.Email.Save": "",
910
917
  "creatives.containersV2.Email.Subject": "",
911
918
  "creatives.containersV2.Email.Tags": "",
919
+ "creatives.containersV2.Email.addLabel": "",
912
920
  "creatives.containersV2.Email.alert": "",
913
921
  "creatives.containersV2.Email.alertMessage": "",
914
922
  "creatives.containersV2.Email.alphabetically": "",
@@ -934,6 +942,7 @@
934
942
  "creatives.containersV2.Email.emailSubject": "",
935
943
  "creatives.containersV2.Email.emailSubjectNotEmplty": "",
936
944
  "creatives.containersV2.Email.emailText": "",
945
+ "creatives.containersV2.Email.english": "",
937
946
  "creatives.containersV2.Email.goBackTemporaryChangesLost": "",
938
947
  "creatives.containersV2.Email.h3emailPreview": "",
939
948
  "creatives.containersV2.Email.h3imageSelection": "",
@@ -983,6 +992,48 @@
983
992
  "creatives.containersV2.EmailWrapper.useEditorDesc": "",
984
993
  "creatives.containersV2.EmailWrapper.zipUpload": "",
985
994
  "creatives.containersV2.EmailWrapper.zipUploadDesc": "",
995
+ "creatives.containersV2.Facebook.fbAccount": "",
996
+ "creatives.containersV2.Facebook.fbAdCampaignSetDetailsDescription": "",
997
+ "creatives.containersV2.Facebook.fbAdCampaignSetDetailsTitle": "",
998
+ "creatives.containersV2.Facebook.fbAdSetName": "",
999
+ "creatives.containersV2.Facebook.fbAdsDescription": "",
1000
+ "creatives.containersV2.Facebook.fbAdsDetailOne": "",
1001
+ "creatives.containersV2.Facebook.fbAdsDetailThree": "",
1002
+ "creatives.containersV2.Facebook.fbAdsDetailTwo": "",
1003
+ "creatives.containersV2.Facebook.fbAdsTitle": "",
1004
+ "creatives.containersV2.Facebook.fbAudience": "",
1005
+ "creatives.containersV2.Facebook.fbCampaignName": "",
1006
+ "creatives.containersV2.Facebook.fbChange": "",
1007
+ "creatives.containersV2.Facebook.fbConfirm": "",
1008
+ "creatives.containersV2.Facebook.fbMarketingObjective": "",
1009
+ "creatives.containersV2.Facebook.fbMarketingObjectiveAppInstallTitle": "",
1010
+ "creatives.containersV2.Facebook.fbMarketingObjectiveAppInstallsDescription": "",
1011
+ "creatives.containersV2.Facebook.fbMarketingObjectiveAwareness": "",
1012
+ "creatives.containersV2.Facebook.fbMarketingObjectiveBrandAwarenessDescription": "",
1013
+ "creatives.containersV2.Facebook.fbMarketingObjectiveBrandAwarenessTitle": "",
1014
+ "creatives.containersV2.Facebook.fbMarketingObjectiveCatalogSalesDescription": "",
1015
+ "creatives.containersV2.Facebook.fbMarketingObjectiveCatalogSalesTitle": "",
1016
+ "creatives.containersV2.Facebook.fbMarketingObjectiveConsideration": "",
1017
+ "creatives.containersV2.Facebook.fbMarketingObjectiveConversionsDescription": "",
1018
+ "creatives.containersV2.Facebook.fbMarketingObjectiveConversionsTitle": "",
1019
+ "creatives.containersV2.Facebook.fbMarketingObjectiveEngagementDescription": "",
1020
+ "creatives.containersV2.Facebook.fbMarketingObjectiveEngagementTitle": "",
1021
+ "creatives.containersV2.Facebook.fbMarketingObjectiveLeadGenerationDescription": "",
1022
+ "creatives.containersV2.Facebook.fbMarketingObjectiveLeadGenerationTitle": "",
1023
+ "creatives.containersV2.Facebook.fbMarketingObjectiveMessagesDescription": "",
1024
+ "creatives.containersV2.Facebook.fbMarketingObjectiveMessagesTitle": "",
1025
+ "creatives.containersV2.Facebook.fbMarketingObjectiveReachDescription": "",
1026
+ "creatives.containersV2.Facebook.fbMarketingObjectiveReachTitle": "",
1027
+ "creatives.containersV2.Facebook.fbMarketingObjectiveStoreTrafficDescription": "",
1028
+ "creatives.containersV2.Facebook.fbMarketingObjectiveStoreTrafficTitle": "",
1029
+ "creatives.containersV2.Facebook.fbMarketingObjectiveTrafficDescription": "",
1030
+ "creatives.containersV2.Facebook.fbMarketingObjectiveTrafficTitle": "",
1031
+ "creatives.containersV2.Facebook.fbMarketingObjectiveVideoViewsDescription": "",
1032
+ "creatives.containersV2.Facebook.fbMarketingObjectiveVideoViewsTitle": "",
1033
+ "creatives.containersV2.Facebook.fbNoAudienceSelected": "",
1034
+ "creatives.containersV2.FacebookMarketingObjective.fbMarketingObjectiveDescription": "",
1035
+ "creatives.containersV2.FacebookMarketingObjective.fbMarketingObjectiveDone": "",
1036
+ "creatives.containersV2.FacebookMarketingObjective.fbMarketingObjectiveTitle": "",
986
1037
  "creatives.containersV2.Line.Create.Campaigns": "",
987
1038
  "creatives.containersV2.Line.Create.Creatives": "",
988
1039
  "creatives.containersV2.Line.Create.Image": "",
@@ -1309,6 +1360,7 @@
1309
1360
  "creatives.containersV2.TemplatesV2.creativesDesc": "",
1310
1361
  "creatives.containersV2.TemplatesV2.edit": "",
1311
1362
  "creatives.containersV2.TemplatesV2.email": "",
1363
+ "creatives.containersV2.TemplatesV2.facebook": "",
1312
1364
  "creatives.containersV2.TemplatesV2.gallery": "",
1313
1365
  "creatives.containersV2.TemplatesV2.header": "",
1314
1366
  "creatives.containersV2.TemplatesV2.pushNotification": "",
@@ -1378,6 +1430,8 @@
1378
1430
  "creatives.containersV2.richMedia.Create.delete": "",
1379
1431
  "creatives.containersV2.richMedia.Create.deleteContent": "",
1380
1432
  "creatives.containersV2.richMedia.Create.emptyTemplateName": "",
1433
+ "creatives.containersV2.richMedia.Create.existingMedia": "",
1434
+ "creatives.containersV2.richMedia.Create.existingMediaHeader": "",
1381
1435
  "creatives.containersV2.richMedia.Create.fileContentFailed": "",
1382
1436
  "creatives.containersV2.richMedia.Create.formEmpty": "",
1383
1437
  "creatives.containersV2.richMedia.Create.header": "",
@@ -1395,6 +1449,7 @@
1395
1449
  "creatives.containersV2.richMedia.Create.resolutionText": "",
1396
1450
  "creatives.containersV2.richMedia.Create.sameTemplateExists": "",
1397
1451
  "creatives.containersV2.richMedia.Create.saveSuccess": "",
1452
+ "creatives.containersV2.richMedia.Create.searchText": "",
1398
1453
  "creatives.containersV2.richMedia.Create.somethingWentWrong": "",
1399
1454
  "creatives.containersV2.richMedia.Create.sourceIdentMissing": "",
1400
1455
  "creatives.containersV2.richMedia.Create.sourceLinkEmpty": "",
@@ -1412,6 +1467,7 @@
1412
1467
  "creatives.containersV2.richMedia.Create.visibility": "",
1413
1468
  "creatives.containersV2.richMedia.Create.wrongFormatFile": "",
1414
1469
  "creatives.containersV2.richMedia.Create.wrongUrl": "",
1470
+ "creatives.containersV2.richMedia.create.templateNameAlreadyExists": "",
1415
1471
  "customdatepicker.cancel": "",
1416
1472
  "customdatepicker.done": "",
1417
1473
  "reon.components.Cap.Workbench": "",
@@ -0,0 +1,46 @@
1
+ /**
2
+ *
3
+ * Header
4
+ *
5
+ */
6
+
7
+ import PropTypes from 'prop-types';
8
+
9
+ import React from 'react';
10
+ // import styled from 'styled-components';
11
+ import { FormattedMessage } from 'react-intl';
12
+
13
+ import { CapRow, CapColumn, CapInput, CapButton } from '@capillarytech/cap-ui-library';
14
+ import messages from './messages';
15
+
16
+
17
+ function Header(props) {
18
+ return (
19
+ <div>
20
+ <CapRow className="template-form-header">
21
+ <CapColumn span={10}>
22
+ <CapInput id="template-name" placeholder="Enter template name*" defaultValue={props.templateName} type="input" onChange={props.templateNameHandler}/>
23
+ </CapColumn>
24
+ <CapColumn span={2} offset={8}>
25
+ <CapButton id="preview-button" type="cancel" onClick={props.previewHandler}> <FormattedMessage {...messages.preview} /> </CapButton>
26
+ </CapColumn>
27
+ <CapColumn span={2}>
28
+ <CapButton id="cancel-button" type="cancel" onClick={props.cancelHandler}> <FormattedMessage {...messages.cancel} /> </CapButton>
29
+ </CapColumn>
30
+ <CapColumn span={2}>
31
+ <CapButton id="save-button" type="primary" onClick={props.saveHandler}> <FormattedMessage {...messages.save} /> </CapButton>
32
+ </CapColumn>
33
+ </CapRow>
34
+ </div>
35
+ );
36
+ }
37
+
38
+ Header.propTypes = {
39
+ templateNameHandler: PropTypes.func,
40
+ previewHandler: PropTypes.func,
41
+ cancelHandler: PropTypes.func,
42
+ saveHandler: PropTypes.func,
43
+ templateName: PropTypes.string,
44
+ };
45
+
46
+ export default Header;
@@ -0,0 +1,10 @@
1
+ // import React from 'react';
2
+ // import { shallow } from 'enzyme';
3
+
4
+ // import Header from '../index';
5
+
6
+ describe('<Header />', () => {
7
+ it('Expect to have unit tests specified', () => {
8
+ expect(true).toEqual(false);
9
+ });
10
+ });
@@ -0,0 +1,73 @@
1
+ import { css } from 'styled-components';
2
+ import {
3
+ CAP_SPACE_16,
4
+ CAP_PRIMARY,
5
+ CAP_G06,
6
+ } from '@capillarytech/cap-ui-library/styled/variables';
7
+
8
+ export default css`
9
+ .ant-radio-group.cap-radioCard-v2 {
10
+ .ant-radio-button-wrapper {
11
+ margin-left: 0;
12
+ margin-right: 0;
13
+ }
14
+
15
+ .icon-container {
16
+ background-color: transparent;
17
+
18
+ .anticon {
19
+ color: ${CAP_G06};
20
+ }
21
+
22
+ &.green-color {
23
+ background-color: transparent;
24
+
25
+ .anticon {
26
+ color: ${CAP_PRIMARY.base};
27
+ }
28
+ }
29
+ }
30
+ }
31
+
32
+ .radio-group-heading {
33
+ margin-top: ${CAP_SPACE_16};
34
+ }
35
+
36
+ .submit-button-section {
37
+ margin-top: ${CAP_SPACE_16};
38
+ }
39
+
40
+ .ant-radio-button-wrapper-checked {
41
+ &:not(.ant-radio-button-wrapper-disabled) {
42
+ box-shadow: none;
43
+ }
44
+ }
45
+
46
+ .ant-radio-group.cap-radioCard-v2 {
47
+ .ant-radio-button-wrapper-checked .radio-card-checked {
48
+ display: none;
49
+ }
50
+ }
51
+
52
+ .non-selected-radio-group {
53
+ .ant-radio-button-wrapper {
54
+ &:last-child {
55
+ display: none;
56
+ }
57
+ }
58
+ }
59
+
60
+ .selected-radio-group {
61
+ .ant-radio-button-wrapper-checked {
62
+ &:not(.ant-radio-button-wrapper-disabled) {
63
+ box-shadow: -1px 0 0 0 ${CAP_PRIMARY.base};
64
+ }
65
+ }
66
+
67
+ .ant-radio-group.cap-radioCard-v2 {
68
+ .ant-radio-button-wrapper-checked .radio-card-checked {
69
+ display: block;
70
+ }
71
+ }
72
+ }
73
+ `;
@@ -0,0 +1,107 @@
1
+ import React, { useEffect, useState } from "react";
2
+ import PropTypes from 'prop-types';
3
+ import { injectIntl, FormattedMessage } from "react-intl";
4
+ import {
5
+ CapHeading,
6
+ CapRadioCard,
7
+ CapLabel,
8
+ CapButton,
9
+ CapSpin,
10
+ } from '@capillarytech/cap-ui-library';
11
+ import messages from './messages';
12
+ import styles from './MarketingObjective.style';
13
+ import withStyles from '../../hoc/withStyles';
14
+
15
+ const renderMarketingObjectiveList = ({
16
+ onMarketingObjectiveChange,
17
+ marketingObjectiveSelectedOption,
18
+ defaultmarketingObjective,
19
+ marketingObjectiveList = [],
20
+ }) => {
21
+ const marketingList = (marketingObjective) => {
22
+ const { label, panes = [] } = marketingObjective;
23
+ const selectedPaneExists = panes.some((item) => item.value === marketingObjectiveSelectedOption);
24
+ const modifiedPanes = !selectedPaneExists
25
+ ? [...panes, {
26
+ value: marketingObjectiveSelectedOption,
27
+ }]
28
+ : panes;
29
+ return (
30
+ <div key={label} className={selectedPaneExists ? 'selected-radio-group' : 'non-selected-radio-group'}>
31
+ <CapHeading type="h4" className="radio-group-heading">{label}</CapHeading>
32
+ <CapRadioCard
33
+ onChange={({ target: { value } }) => onMarketingObjectiveChange(value)}
34
+ panes={modifiedPanes}
35
+ cardWidth="324px"
36
+ cardHeight="auto"
37
+ selected={marketingObjectiveSelectedOption}
38
+ defaultValue={defaultmarketingObjective}
39
+ />
40
+ </div>
41
+ );
42
+ };
43
+
44
+ return marketingObjectiveList.map((marketinObjective) => marketingList(marketinObjective));
45
+ };
46
+
47
+ const MarketingObjective = ({
48
+ onMarketingObjectiveSelect,
49
+ selectedMarketingObjective,
50
+ defaultmarketingObjective,
51
+ onSubmit,
52
+ className,
53
+ marketingObjectiveList,
54
+ }) => {
55
+ const [marketingObjectiveSelectedOption, onMarketingObjectiveChange] = useState(selectedMarketingObjective || defaultmarketingObjective);
56
+
57
+ useEffect(() => {
58
+ [...document.querySelectorAll('.non-selected-radio-group .ant-radio-group')].forEach((node) => {
59
+ const paneToSelect = node.lastChild;
60
+ paneToSelect.click();
61
+ });
62
+ }, [marketingObjectiveSelectedOption]);
63
+
64
+ const onSubmitAction = () => {
65
+ onMarketingObjectiveSelect(marketingObjectiveSelectedOption);
66
+ onSubmit(false);
67
+ };
68
+
69
+ return (
70
+ <div className={className}>
71
+ <>
72
+ <CapHeading type="h3">
73
+ <FormattedMessage {...messages.fbMarketingObjectiveTitle} />
74
+ </CapHeading>
75
+ <CapLabel type="label1">
76
+ <FormattedMessage {...messages.fbMarketingObjectiveDescription} />
77
+ </CapLabel>
78
+ </>
79
+ <CapSpin spinning={!marketingObjectiveList.length}>
80
+ {renderMarketingObjectiveList({
81
+ onMarketingObjectiveChange,
82
+ marketingObjectiveSelectedOption,
83
+ defaultmarketingObjective,
84
+ marketingObjectiveList,
85
+ })}
86
+ </CapSpin>
87
+ <CapButton
88
+ type="primary"
89
+ className="submit-button-section"
90
+ onClick={() => onSubmitAction(false)}
91
+ >
92
+ <FormattedMessage {...messages.fbMarketingObjectiveDone} />
93
+ </CapButton>
94
+ </div>
95
+ );
96
+ };
97
+
98
+ MarketingObjective.propTypes = {
99
+ onMarketingObjectiveSelect: PropTypes.func,
100
+ selectedMarketingObjective: PropTypes.string,
101
+ defaultmarketingObjective: PropTypes.string,
102
+ onSubmit: PropTypes.func,
103
+ className: PropTypes.string,
104
+ marketingObjectiveList: PropTypes.arrayOf(PropTypes.object),
105
+ };
106
+
107
+ export default injectIntl(withStyles(MarketingObjective, styles));
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Marketing Objective Messages
3
+ *
4
+ * This contains all the text for the Facebook component.
5
+ */
6
+ import { defineMessages } from 'react-intl';
7
+
8
+ const messagePrefix = 'creatives.containersV2.FacebookMarketingObjective';
9
+
10
+ export default defineMessages({
11
+ fbMarketingObjectiveTitle: {
12
+ id: `${messagePrefix}.fbMarketingObjectiveTitle`,
13
+ defaultMessage: 'Facebook Marketing Objective',
14
+ },
15
+ fbMarketingObjectiveDescription: {
16
+ id: `${messagePrefix}.fbMarketingObjectiveDescription`,
17
+ defaultMessage: 'Objectives help break reporting into a more granular level',
18
+ },
19
+ fbMarketingObjectiveDone: {
20
+ id: `${messagePrefix}.fbMarketingObjectiveDone`,
21
+ defaultMessage: 'Done',
22
+ },
23
+ });
@@ -7,7 +7,7 @@
7
7
  import React from 'react';
8
8
  import PropTypes from 'prop-types';
9
9
  import styled from 'styled-components';
10
- import { isEmpty, forEach, find } from 'lodash';
10
+ import { isEmpty, forEach } from 'lodash';
11
11
  import { loadItem } from 'services/localStorageApi';
12
12
  import { intlShape, injectIntl } from 'react-intl';
13
13
  import TopBar from '../TopBar';
@@ -86,14 +86,16 @@ class NavigationBar extends React.Component {
86
86
 
87
87
  getProductsList = () => {
88
88
  const { formatMessage } = this.props.intl;
89
- const { campaignOrgV2Status } = this.props;
90
89
  const { currentOrgDetails } = this.props.userData;
91
90
  const productsList = [];
92
91
  if (!isEmpty(currentOrgDetails)) {
93
92
  forEach(currentOrgDetails.module_details, (module) => {
94
93
  if (module.name.toLowerCase() !== PRODUCT_MASTERS) {
94
+ const productName = module.code;
95
+ const intlProductName = messages[productName];
96
+ const moduleName = intlProductName ? formatMessage(intlProductName) : module.name.toLowerCase();
95
97
  productsList.push({
96
- value: module.name.toLowerCase(),
98
+ value: moduleName,
97
99
  url: module.url,
98
100
  key: module.code,
99
101
  });
@@ -101,12 +103,6 @@ class NavigationBar extends React.Component {
101
103
  });
102
104
  //below changes are temporary and should be fixed once we get correct modules list
103
105
  //changing campaigns module name to engage+
104
- if ( !campaignOrgV2Status ) {
105
- const campaignsModule = find(productsList, ['value', 'campaigns']);
106
- if (campaignsModule) {
107
- campaignsModule.value = 'Engage+';
108
- }
109
- }
110
106
  //adding insights+ to module list
111
107
  productsList.push({
112
108
  value: formatMessage(messages.insights),
@@ -224,7 +220,6 @@ NavigationBar.propTypes = {
224
220
  intl: intlShape.isRequired,
225
221
  location: PropTypes.object,
226
222
  type: PropTypes.string,
227
- campaignOrgV2Status: PropTypes.bool,
228
223
  };
229
224
 
230
225
  export default injectIntl(NavigationBar);
@@ -29,4 +29,32 @@ export default defineMessages({
29
29
  id: `${scope}.logout`,
30
30
  defaultMessage: 'Logout',
31
31
  },
32
+ businessProcesses: {
33
+ id: `${scope}.businessProcesses`,
34
+ defaultMessage: 'Workbench',
35
+ },
36
+ campaign: {
37
+ id: `${scope}.campaign`,
38
+ defaultMessage: 'Engage+',
39
+ },
40
+ wecrm: {
41
+ id: `${scope}.wecrm`,
42
+ defaultMessage: 'Wecrm',
43
+ },
44
+ loyaltyProgram: {
45
+ id: `${scope}.loyaltyProgram`,
46
+ defaultMessage: 'Loyalty+',
47
+ },
48
+ storePerformance: {
49
+ id: `${scope}.storePerformance`,
50
+ defaultMessage: 'Store Performance',
51
+ },
52
+ memberCare: {
53
+ id: `${scope}.memberCare`,
54
+ defaultMessage: 'Member Care',
55
+ },
56
+ storeCare: {
57
+ id: `${scope}.storeCare`,
58
+ defaultMessage: 'Store Care',
59
+ },
32
60
  });
@@ -0,0 +1,21 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="220" height="472" viewBox="0 0 220 472">
2
+ <g fill="none" fill-rule="evenodd">
3
+ <rect width="220" height="472" fill="#101211" rx="26"/>
4
+ <rect width="52" height="5" x="84" y="14" fill="#2E2E2E" rx="2.5"/>
5
+ <rect width="52" height="5" x="84" y="455" fill="#2E2E2E" rx="2.5"/>
6
+ <circle cx="45.5" cy="19.5" r="5.5" fill="#2E2E2E"/>
7
+ <circle cx="65.5" cy="19.5" r="3.5" fill="#2E2E2E"/>
8
+ <rect width="202" height="404" x="9" y="36" fill="#E51FA3" rx="9"/>
9
+ <path fill="#F4F5F7" d="M20.692 152h178.616c2.675 0 3.645.278 4.623.801.977.523 1.745 1.29 2.268 2.268.523.978.801 1.948.801 4.623v78.616c0 2.675-.278 3.645-.801 4.623-.523.977-1.29 1.745-2.268 2.268-.978.523-1.948.801-4.623.801H20.692c-2.675 0-3.645-.278-4.623-.801-.977-.523-1.745-1.29-2.268-2.268-.523-.978-.801-1.948-.801-4.623v-78.616c0-2.675.278-3.645.801-4.623.523-.977 1.29-1.745 2.268-2.268.978-.523 1.948-.801 4.623-.801z"/>
10
+ <text fill="#5E5E5E" font-family="Roboto-Regular, Roboto" font-size="10">
11
+ <tspan x="25" y="169">Messages</tspan>
12
+ </text>
13
+ <text fill="#5E5E5E" font-family="Roboto-Regular, Roboto" font-size="10">
14
+ <tspan x="85.146" y="169">now</tspan>
15
+ </text>
16
+ <circle cx="78" cy="167" r="1" fill="#5E5E5E" fill-rule="nonzero"/>
17
+ <path fill="#5E5E5E" d="M116.725 163.048L113.424 166.342 110.123 163.048 109.109 164.062 113.424 168.377 117.739 164.062z"/>
18
+ <path fill="#FFF" fill-opacity=".6" d="M113.75 419.333h-.625v-1.238c0-1.708-1.4-3.095-3.125-3.095s-3.125 1.387-3.125 3.095v1.238h-.625c-.688 0-1.25.557-1.25 1.238v6.19c0 .682.563 1.239 1.25 1.239h7.5c.688 0 1.25-.557 1.25-1.238v-6.19c0-.682-.563-1.239-1.25-1.239zM110 425c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm2-6h-4v-1.176c0-1.006.897-1.824 2-1.824s2 .818 2 1.824V419z"/>
19
+ <path fill="#FFF" fill-rule="nonzero" d="M86.325 111.884l6.192-8.676-.072-.072c-.84.576-1.908.864-3.204.864-1.248 0-2.472-.348-3.672-1.044-1.2-.696-2.172-1.65-2.916-2.862-.744-1.212-1.116-2.562-1.116-4.05 0-1.44.378-2.79 1.134-4.05.756-1.26 1.776-2.274 3.06-3.042 1.284-.768 2.682-1.152 4.194-1.152 1.632 0 3.09.396 4.374 1.188 1.284.792 2.28 1.818 2.988 3.078.708 1.26 1.062 2.586 1.062 3.978 0 1.32-.27 2.586-.81 3.798-.54 1.212-1.314 2.562-2.322 4.05l-6.444 9.684-2.448-1.692zm3.6-10.62c.96 0 1.854-.234 2.682-.702.828-.468 1.482-1.104 1.962-1.908.48-.804.72-1.686.72-2.646 0-.984-.24-1.878-.72-2.682s-1.134-1.44-1.962-1.908c-.828-.468-1.722-.702-2.682-.702s-1.848.234-2.664.702c-.816.468-1.464 1.104-1.944 1.908-.48.804-.72 1.698-.72 2.682 0 .96.24 1.842.72 2.646.48.804 1.128 1.44 1.944 1.908.816.468 1.704.702 2.664.702zm13.806-2.232c-.648 0-1.194-.222-1.638-.666-.444-.444-.666-.99-.666-1.638 0-.648.222-1.194.666-1.638.444-.444.99-.666 1.638-.666.624 0 1.158.222 1.602.666.444.444.666.99.666 1.638 0 .648-.222 1.194-.666 1.638-.444.444-.978.666-1.602.666zm0 14.184c-.648 0-1.194-.222-1.638-.666-.444-.444-.666-.99-.666-1.638 0-.624.222-1.158.666-1.602.444-.444.99-.666 1.638-.666.624 0 1.158.222 1.602.666.444.444.666.978.666 1.602 0 .648-.222 1.194-.666 1.638-.444.444-.978.666-1.602.666zm17.191-5.508h-11.808v-2.304l11.52-17.028h3.312v16.452h3.168v2.88h-3.168V113h-3.024v-5.292zm0-2.88V92.84h-.144l-8.172 11.988h8.316zm14.527-12.168l-4.32 3.096-1.584-2.34 7.02-5.04h1.944V113h-3.06V92.66zM90.177 134.16c-.56 0-1.074-.17-1.54-.51-.467-.34-.787-.817-.96-1.43l.81-.33c.113.427.323.777.63 1.05.306.273.666.41 1.08.41.413 0 .763-.112 1.05-.335.286-.223.43-.528.43-.915 0-.333-.122-.608-.365-.825-.244-.217-.642-.418-1.195-.605l-.45-.16c-.507-.18-.92-.417-1.24-.71-.32-.293-.48-.7-.48-1.22 0-.34.093-.655.28-.945.186-.29.446-.522.78-.695.333-.173.706-.26 1.12-.26.413 0 .773.077 1.08.23.306.153.551.34.735.56.183.22.311.437.385.65l-.8.34c-.067-.247-.219-.47-.455-.67-.237-.2-.549-.3-.935-.3-.367 0-.68.103-.94.31-.26.207-.39.467-.39.78 0 .28.11.508.33.685.22.177.553.342 1 .495l.47.16c.606.22 1.08.495 1.42.825.34.33.51.778.51 1.345 0 .46-.119.847-.355 1.16-.237.313-.535.543-.895.69-.36.147-.73.22-1.11.22zm4.995 0c-.614 0-1.082-.18-1.405-.54-.324-.36-.485-.863-.485-1.51v-3.21h.85v3.08c0 .487.11.843.33 1.07.22.227.516.34.89.34.286 0 .541-.077.765-.23.223-.153.396-.353.52-.6.123-.247.185-.507.185-.78v-2.88h.85v5.1h-.81v-.74h-.04c-.14.253-.364.467-.67.64-.307.173-.634.26-.98.26zm3.615-5.26h.81v.75h.04c.14-.253.363-.468.67-.645.307-.177.633-.265.98-.265.613 0 1.082.178 1.405.535.323.357.485.842.485 1.455V134h-.85v-3.14c0-.473-.113-.817-.34-1.03-.227-.213-.537-.32-.93-.32-.273 0-.518.077-.735.23-.217.153-.385.355-.505.605s-.18.512-.18.785V134h-.85v-5.1zm8.88 5.26c-.526 0-.986-.145-1.38-.435-.393-.29-.67-.698-.83-1.225l.8-.33c.24.787.71 1.18 1.41 1.18.394 0 .709-.137.945-.41.237-.273.355-.633.355-1.08v-5.02h.85v4.95c0 .5-.091.928-.275 1.285-.183.357-.436.627-.76.81-.323.183-.695.275-1.115.275zm5.065 0c-.613 0-1.081-.18-1.405-.54-.323-.36-.485-.863-.485-1.51v-3.21h.85v3.08c0 .487.11.843.33 1.07.22.227.517.34.89.34.287 0 .542-.077.765-.23.224-.153.397-.353.52-.6.124-.247.185-.507.185-.78v-2.88h.85v5.1h-.81v-.74h-.04c-.14.253-.363.467-.67.64-.306.173-.633.26-.98.26zm3.616-7.32h.85V134h-.85v-7.16zm2.525 7.22c-.18 0-.332-.062-.455-.185-.124-.123-.185-.275-.185-.455 0-.173.061-.322.185-.445.123-.123.275-.185.455-.185.173 0 .321.062.445.185.123.123.185.272.185.445 0 .18-.062.332-.185.455-.124.123-.272.185-.445.185zm3.67-.91c.207-.207.617-.622 1.23-1.245.613-.623 1.04-1.065 1.28-1.325.34-.367.57-.653.69-.86.12-.207.18-.457.18-.75 0-.2-.052-.388-.155-.565-.103-.177-.253-.32-.45-.43-.197-.11-.432-.165-.705-.165-.36 0-.648.105-.865.315-.217.21-.358.438-.425.685l-.78-.31c.067-.213.187-.435.36-.665.173-.23.407-.427.7-.59.293-.163.64-.245 1.04-.245.42 0 .792.09 1.115.27.323.18.575.42.755.72.18.3.27.623.27.97 0 .7-.367 1.423-1.1 2.17l-2.05 2.06h3.23v.81h-4.32v-.85zm6.435.54l1.72-2.41-.02-.02c-.233.16-.53.24-.89.24-.346 0-.686-.097-1.02-.29-.333-.193-.603-.458-.81-.795-.206-.337-.31-.712-.31-1.125 0-.4.105-.775.315-1.125.21-.35.494-.632.85-.845.357-.213.745-.32 1.165-.32.454 0 .859.11 1.215.33.357.22.634.505.83.855.197.35.295.718.295 1.105 0 .367-.075.718-.225 1.055-.15.337-.365.712-.645 1.125l-1.79 2.69-.68-.47zm1-2.95c.267 0 .515-.065.745-.195.23-.13.412-.307.545-.53.134-.223.2-.468.2-.735 0-.273-.066-.522-.2-.745-.133-.223-.315-.4-.545-.53-.23-.13-.478-.195-.745-.195-.266 0-.513.065-.74.195-.226.13-.406.307-.54.53-.133.223-.2.472-.2.745 0 .267.067.512.2.735.134.223.314.4.54.53.227.13.474.195.74.195z"/>
20
+ </g>
21
+ </svg>
@@ -0,0 +1,16 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="220" height="472" viewBox="0 0 220 472">
2
+ <g fill="none" fill-rule="evenodd">
3
+ <path fill="#101211" fill-rule="nonzero" d="M30.877 0h158.246C206.202 0 220 14.3 220 32v408c0 17.7-13.798 32-30.877 32H30.877C13.798 472 0 457.7 0 440V32C0 14.3 13.798 0 30.877 0z"/>
4
+ <path fill="#23CCCC" fill-rule="nonzero" d="M55.965 11v3c0 7.2 5.596 13 12.544 13h82.982c6.948 0 12.544-5.8 12.544-13v-3h24.123c12.254 0 22.193 10.3 22.193 23v405c0 12.7-9.939 23-22.193 23H31.842C19.588 462 9.65 451.7 9.65 439V34c0-12.7 9.939-23 22.193-23h24.123z"/>
5
+ <path fill="#2E2E2E" fill-rule="nonzero" d="M76.566 455h66.868c.695 0 1.303.467 1.303 1 0 .533-.608 1-1.303 1H76.566c-.695 0-1.303-.467-1.303-1 0-.533.608-1 1.303-1z" opacity=".4"/>
6
+ <path fill="#FFF" fill-rule="nonzero" d="M24.095 242h171.81c2.674 0 3.644.278 4.622.801.978.523 1.745 1.29 2.268 2.268.523.978.801 1.948.801 4.623v61.616c0 2.675-.278 3.645-.8 4.623-.524.977-1.291 1.745-2.269 2.268-.978.523-1.948.801-4.622.801H24.095c-2.674 0-3.644-.278-4.622-.801-.978-.523-1.745-1.29-2.268-2.268-.523-.978-.801-1.948-.801-4.623v-61.616c0-2.675.278-3.645.8-4.623.524-.977 1.291-1.745 2.269-2.268.978-.523 1.948-.801 4.622-.801zM24.095 134h171.81c2.674 0 3.644.278 4.622.801.978.523 1.745 1.29 2.268 2.268.523.978.801 1.948.801 4.623v68.616c0 2.675-.278 3.645-.8 4.623-.524.977-1.291 1.745-2.269 2.268-.978.523-1.948.801-4.622.801H24.095c-2.674 0-3.644-.278-4.622-.801-.978-.523-1.745-1.29-2.268-2.268-.523-.978-.801-1.948-.801-4.623v-68.616c0-2.675.278-3.645.8-4.623.524-.977 1.291-1.745 2.269-2.268.978-.523 1.948-.801 4.622-.801z"/>
7
+ <path fill="#DFE2E7" d="M16.404 280H203.597V281H16.404z"/>
8
+ <text fill="#97A0AF" font-family="Roboto-Regular, Roboto" font-size="10">
9
+ <tspan x="170.386" y="158">NOW</tspan>
10
+ </text>
11
+ <text fill="#97A0AF" font-family="Roboto-Regular, Roboto" font-size="10">
12
+ <tspan x="29" y="158">MESSAGES</tspan>
13
+ </text>
14
+ <path fill="#FFF" fill-rule="nonzero" d="M112.991 43.3v-3.7c0-1.7-1.35-3.1-2.991-3.1-1.64 0-2.991 1.4-2.991 3.1v3.7h5.886c0-.1.096-.1.096 0zm1.544.5c.772.5 1.254 1.4 1.254 2.5v4.4c0 1.7-1.254 3-2.894 3h-5.79c-1.64 0-2.894-1.3-2.894-3v-4.4c0-1.1.482-2 1.35-2.5 0-.1-.096-.2-.096-.3v-3.9c0-2.6 2.026-4.6 4.535-4.6 2.509 0 4.535 2.1 4.535 4.6v4.2zM70.067 120.223c.026.488.137.884.333 1.19.374.57 1.031.855 1.974.855.422 0 .806-.063 1.153-.188.67-.242 1.006-.676 1.006-1.3 0-.47-.141-.803-.424-1.003-.286-.195-.735-.365-1.345-.51l-1.125-.263c-.735-.172-1.256-.361-1.56-.568-.529-.36-.792-.897-.792-1.612 0-.773.258-1.408.774-1.904.517-.496 1.248-.744 2.194-.744.87 0 1.61.218 2.219.653.609.436.913 1.132.913 2.089H74.33c-.057-.461-.177-.814-.362-1.06-.343-.45-.925-.674-1.747-.674-.663 0-1.14.144-1.43.433-.29.29-.436.625-.436 1.008 0 .422.17.73.509.926.222.125.726.281 1.51.469l1.164.275c.562.133.995.314 1.3.545.528.402.792.986.792 1.752 0 .953-.334 1.635-1.003 2.045-.67.41-1.447.615-2.333.615-1.032 0-1.84-.273-2.425-.82-.584-.543-.87-1.28-.86-2.21h1.058zm8.038-3.498v4.166c0 .32.05.582.147.785.181.375.519.562 1.012.562.709 0 1.191-.328 1.448-.984.14-.352.209-.834.209-1.447v-3.082h1.018V123h-.962l.012-.926c-.132.239-.296.44-.492.604-.388.328-.86.492-1.414.492-.863 0-1.45-.299-1.764-.897-.17-.32-.254-.748-.254-1.283v-4.265h1.04zm5.59 0h.968v.89c.286-.367.59-.63.91-.79.32-.16.676-.241 1.068-.241.86 0 1.44.31 1.742.932.166.34.248.826.248 1.459V123h-1.034v-3.955c0-.383-.055-.691-.164-.926-.181-.39-.509-.586-.984-.586-.241 0-.439.026-.594.076-.278.086-.523.258-.735.516-.17.207-.28.42-.33.642-.051.22-.077.536-.077.946V123h-1.017v-6.275zm7.253 3.21c0 .672.138 1.235.413 1.688.275.453.716.68 1.323.68.471 0 .858-.21 1.162-.63.303-.42.455-1.023.455-1.808 0-.793-.156-1.38-.47-1.76-.312-.381-.698-.572-1.158-.572-.513 0-.928.203-1.247.61-.318.406-.478 1.003-.478 1.793zm1.533-3.322c.463 0 .851.102 1.164.305.181.117.387.322.616.615v-3.17h.979V123h-.916v-.873c-.238.387-.519.666-.843.838-.324.172-.695.258-1.114.258-.674 0-1.258-.294-1.752-.882-.494-.588-.74-1.37-.74-2.347 0-.914.224-1.706.675-2.376.45-.67 1.094-1.005 1.93-1.005zm5.211 4.717c0 .305.108.545.322.72.215.177.47.264.764.264.358 0 .704-.085 1.04-.257.565-.286.848-.752.848-1.4v-.85c-.124.082-.285.15-.48.205-.197.054-.389.093-.577.117l-.617.082c-.369.05-.646.13-.83.24-.313.184-.47.477-.47.88zm2.465-2.133c.234-.031.39-.133.47-.304.045-.094.067-.229.067-.405 0-.36-.123-.62-.37-.782-.247-.162-.6-.243-1.06-.243-.532 0-.909.148-1.13.445-.125.164-.206.408-.244.733h-.95c.019-.774.261-1.312.727-1.615.465-.302 1.005-.454 1.62-.454.712 0 1.29.14 1.735.422.441.281.662.719.662 1.313v3.615c0 .11.021.197.065.264.043.066.134.1.274.1.045 0 .096-.004.153-.01.056-.005.116-.014.18-.026v.78c-.158.046-.278.075-.361.087-.083.012-.196.018-.34.018-.35 0-.605-.13-.763-.387-.083-.137-.141-.33-.175-.58-.207.281-.505.525-.893.732-.389.207-.816.31-1.284.31-.561 0-1.02-.176-1.377-.53-.356-.353-.534-.795-.534-1.326 0-.583.175-1.034.526-1.354.35-.32.81-.518 1.38-.592l1.622-.21zm7.145-2.472h1.125c-.143.402-.461 1.32-.955 2.754-.37 1.078-.678 1.957-.927 2.636-.588 1.602-1.003 2.578-1.244 2.93-.241.351-.656.527-1.244.527-.143 0-.253-.006-.33-.017-.078-.012-.173-.034-.286-.065v-.96c.177.05.305.081.384.093.08.012.15.018.21.018.188 0 .326-.033.415-.097.089-.065.163-.144.223-.237.02-.032.087-.192.204-.48.117-.29.202-.505.254-.645l-2.239-6.457h1.154l1.622 5.109 1.634-5.11zm1.537 7.5c.26-.047.443-.237.548-.569.057-.176.085-.345.085-.51 0-.027 0-.051-.003-.073-.001-.021-.006-.046-.014-.073h-.616v-1.277h1.21v1.183c0 .465-.09.873-.271 1.225-.181.351-.494.568-.939.65v-.556zm6.172-1.225c.037-.723.181-1.352.432-1.887.25-.535.74-1.021 1.467-1.459l1.086-.65c.486-.293.827-.543 1.023-.75.31-.324.464-.695.464-1.113 0-.489-.142-.876-.424-1.163-.283-.288-.66-.431-1.131-.431-.697 0-1.18.273-1.447.82-.144.293-.223.7-.238 1.219h-1.035c.012-.73.142-1.326.39-1.787.442-.813 1.22-1.219 2.336-1.219.927 0 1.604.26 2.032.78.428.519.642 1.097.642 1.734 0 .672-.228 1.246-.684 1.722-.264.278-.737.614-1.42 1.008l-.774.446c-.37.21-.66.412-.87.603-.378.34-.615.717-.713 1.13h4.421V123h-5.557zm7.784-2.027c.03.582.246.984.65 1.207.207.117.44.175.7.175.487 0 .902-.21 1.245-.63.343-.42.586-1.272.729-2.557-.226.371-.506.632-.84.782-.333.15-.692.226-1.077.226-.78 0-1.397-.252-1.851-.756-.454-.504-.681-1.152-.681-1.945 0-.762.224-1.432.672-2.01.449-.578 1.11-.867 1.985-.867 1.18 0 1.994.55 2.442 1.652.249.605.373 1.363.373 2.273 0 1.028-.149 1.938-.446 2.73-.494 1.321-1.33 1.981-2.51 1.981-.792 0-1.393-.214-1.804-.644-.411-.43-.616-.969-.616-1.617h1.029zm1.543-1.723c.403 0 .772-.138 1.105-.413.334-.275.5-.757.5-1.444 0-.618-.15-1.078-.449-1.38-.3-.303-.681-.454-1.145-.454-.497 0-.892.172-1.184.518-.292.346-.438.808-.438 1.386 0 .547.128.981.384 1.304.257.322.665.483 1.227.483zm11.87 1.184c0 .726-.103 1.29-.31 1.693-.385.734-1.116 1.102-2.194 1.102-.622 0-1.153-.175-1.594-.525-.441-.35-.662-.972-.662-1.866v-.615h1.057v.615c0 .469.101.821.303 1.058.202.236.515.354.941.354.6 0 .992-.213 1.176-.639.113-.261.17-.756.17-1.482v-5.736h1.114v6.04zm2.764-3.71v4.167c0 .32.05.582.147.785.181.375.518.562 1.012.562.709 0 1.191-.328 1.448-.984.139-.352.209-.834.209-1.447v-3.082h1.017V123h-.96l.01-.926c-.131.239-.295.44-.491.604-.389.328-.86.492-1.414.492-.863 0-1.45-.299-1.764-.897-.17-.32-.254-.748-.254-1.283v-4.265h1.04zm5.619-2.331h1.018V123h-1.018v-8.607zm6.495 2.332h1.125c-.143.402-.462 1.32-.956 2.754-.369 1.078-.678 1.957-.927 2.636-.588 1.602-1.002 2.578-1.244 2.93-.24.351-.655.527-1.243.527-.144 0-.254-.006-.331-.017-.077-.012-.173-.034-.286-.065v-.96c.177.05.306.081.385.093.079.012.149.018.209.018.188 0 .327-.033.415-.097.09-.065.164-.144.224-.237.019-.032.087-.192.203-.48.117-.29.202-.505.255-.645l-2.24-6.457h1.154l1.623 5.109 1.634-5.11zM78.271 92.566c.11 2.135.905 3.61 2.384 4.426.76.43 1.617.645 2.57.645 1.784 0 3.304-.77 4.562-2.31 1.257-1.54 2.149-4.666 2.674-9.378-.83 1.36-1.856 2.317-3.079 2.868-1.223.552-2.54.828-3.949.828-2.86 0-5.124-.924-6.79-2.772-1.664-1.848-2.497-4.225-2.497-7.133 0-2.793.822-5.25 2.467-7.369 1.644-2.12 4.07-3.18 7.276-3.18 4.326 0 7.311 2.02 8.956 6.059.912 2.22 1.368 4.999 1.368 8.336 0 3.767-.546 7.104-1.638 10.012-1.81 4.84-4.878 7.261-9.204 7.261-2.902 0-5.107-.787-6.613-2.363-1.507-1.575-2.26-3.552-2.26-5.93h3.773zm5.66-6.316c1.478 0 2.83-.505 4.052-1.515 1.224-1.01 1.835-2.775 1.835-5.296 0-2.263-.55-3.95-1.648-5.06-1.099-1.11-2.498-1.664-4.198-1.664-1.824 0-3.272.634-4.343 1.901-1.071 1.268-1.607 2.961-1.607 5.081 0 2.005.47 3.599 1.41 4.78.94 1.182 2.44 1.773 4.499 1.773zm16.975-8.959h4.333v4.684h-4.333V77.29zm0 18.025h4.333V100h-4.333v-4.684zm21.08-6.209V75.164l-9.515 13.943h9.515zm.062 10.893v-7.52H109.03V88.7l13.6-19.552h3.15v19.96h4.375v3.372h-4.374V100h-3.732zm13.534-21.785V75.25c2.695-.272 4.575-.727 5.639-1.364 1.064-.638 1.859-2.145 2.384-4.523h2.944V100h-3.98V78.215h-6.987z"/>
15
+ </g>
16
+ </svg>
@@ -0,0 +1,22 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="220" height="472" viewBox="0 0 220 472">
2
+ <g fill="none" fill-rule="evenodd">
3
+ <rect width="220" height="472" fill="#101211" rx="26"/>
4
+ <rect width="202" height="404" x="9" y="36" fill="#F4F5F7" rx="9"/>
5
+ <rect width="182" height="136" x="19" y="92" fill="#F4F5F7" rx="17.5"/>
6
+ <path fill="#CF0E8F" d="M18 36h184c4.97 0 9 4.03 9 9v6H9v-6c0-4.97 4.03-9 9-9z"/>
7
+ <path fill="#FFF" d="M9 404h202v28.5c0 4.142-3.358 7.5-7.5 7.5h-187c-4.142 0-7.5-3.358-7.5-7.5V404z"/>
8
+ <path fill="#E51FA3" d="M9 51H211V82H9z" transform="matrix(1 0 0 -1 0 133)"/>
9
+ <rect width="52" height="5" x="84" y="14" fill="#2E2E2E" rx="2.5"/>
10
+ <rect width="52" height="5" x="84" y="455" fill="#2E2E2E" rx="2.5"/>
11
+ <circle cx="45.5" cy="19.5" r="5.5" fill="#2E2E2E"/>
12
+ <circle cx="65.5" cy="19.5" r="3.5" fill="#2E2E2E"/>
13
+ <text fill="#FFF" font-family="Roboto-Regular, Roboto" font-size="12" letter-spacing=".175">
14
+ <tspan x="49.5" y="71">Sender ID</tspan>
15
+ </text>
16
+ <circle cx="199" cy="63" r="1" fill="#FFF"/>
17
+ <circle cx="199" cy="70" r="1" fill="#FFF"/>
18
+ <circle cx="199" cy="66.5" r="1" fill="#FFF"/>
19
+ <path fill="#FFF" d="M28 66c0 .279-.226.505-.505.505h-5.556l2.42 2.42c.198.197.198.518 0 .716-.198.198-.52.198-.718 0l-2.934-2.934c-.39-.39-.39-1.024 0-1.414l2.934-2.934c.198-.198.52-.198.718 0 .198.198.198.519 0 .717l-2.42 2.419h5.556c.279 0 .505.226.505.505z"/>
20
+ <path fill="#B3BAC5" d="M189.006 427.286L201 422.143 189.006 417 189 421 197.571 422.143 189 423.286z"/>
21
+ </g>
22
+ </svg>
@@ -0,0 +1,21 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="221" height="473" viewBox="0 0 221 473">
2
+ <g fill="none" fill-rule="evenodd">
3
+ <rect width="220" height="473" fill="#101211" rx="26"/>
4
+ <rect width="52" height="5.011" x="84" y="14.03" fill="#2E2E2E" rx="2.5"/>
5
+ <rect width="52" height="5.011" x="84" y="455.964" fill="#2E2E2E" rx="2.5"/>
6
+ <ellipse cx="45.5" cy="19.541" fill="#2E2E2E" rx="5.5" ry="5.512"/>
7
+ <ellipse cx="65.5" cy="19.541" fill="#2E2E2E" rx="3.5" ry="3.507"/>
8
+ <rect width="202" height="404.856" x="9" y="36.076" fill="#E51FA3" rx="9"/>
9
+ <path fill="#FFF" d="M20.692 152.322h178.616c2.675 0 3.645.279 4.623.801.977.523 1.745 1.29 2.268 2.268.523.978.801 1.948.801 4.623v78.816c0 2.674-.278 3.644-.801 4.622-.523.978-1.29 1.745-2.268 2.268-.978.523-1.948.801-4.623.801H20.692c-2.675 0-3.645-.278-4.623-.801-.977-.523-1.745-1.29-2.268-2.268-.523-.978-.801-1.948-.801-4.622v-78.816c0-2.675.278-3.645.801-4.623.523-.977 1.29-1.745 2.268-2.268.978-.522 1.948-.801 4.623-.801z"/>
10
+ <text fill="#5E5E5E" font-family="Roboto-Regular, Roboto" font-size="10">
11
+ <tspan x="25" y="169.351">Wechat</tspan>
12
+ </text>
13
+ <text fill="#5E5E5E" font-family="Roboto-Regular, Roboto" font-size="10">
14
+ <tspan x="73.146" y="169.351">now</tspan>
15
+ </text>
16
+ <circle cx="66" cy="167.354" r="1" fill="#5E5E5E" fill-rule="nonzero"/>
17
+ <path fill="#5E5E5E" d="M104.725 163.393L101.424 166.694 98.123 163.393 97.109 164.409 101.424 168.734 105.739 164.409z"/>
18
+ <path fill="#FFF" fill-opacity=".6" d="M113.75 420.222h-.625v-1.241c0-1.712-1.4-3.102-3.125-3.102s-3.125 1.39-3.125 3.102v1.24h-.625c-.688 0-1.25.56-1.25 1.241v6.204c0 .682.563 1.24 1.25 1.24h7.5c.688 0 1.25-.558 1.25-1.24v-6.204c0-.682-.563-1.24-1.25-1.24zM110 425.9c-.55 0-1-.45-1-1.002 0-.55.45-1.002 1-1.002s1 .451 1 1.002c0 .551-.45 1.002-1 1.002zm2-6.012h-4v-1.18c0-1.007.897-1.827 2-1.827s2 .82 2 1.828v1.179z"/>
19
+ <path fill="#FFF" fill-rule="nonzero" d="M86.325 112.121l6.192-8.694-.072-.072c-.84.577-1.908.865-3.204.865-1.248 0-2.472-.348-3.672-1.046-1.2-.697-2.172-1.653-2.916-2.868-.744-1.215-1.116-2.567-1.116-4.059 0-1.443.378-2.795 1.134-4.058.756-1.263 1.776-2.279 3.06-3.049s2.682-1.154 4.194-1.154c1.632 0 3.09.397 4.374 1.19 1.284.794 2.28 1.822 2.988 3.085.708 1.263 1.062 2.592 1.062 3.986 0 1.323-.27 2.592-.81 3.807-.54 1.214-1.314 2.567-2.322 4.058l-6.444 9.705-2.448-1.696zm3.6-10.642c.96 0 1.854-.235 2.682-.704.828-.469 1.482-1.106 1.962-1.912.48-.806.72-1.69.72-2.652 0-.986-.24-1.882-.72-2.687-.48-.806-1.134-1.443-1.962-1.912-.828-.47-1.722-.704-2.682-.704s-1.848.235-2.664.704c-.816.469-1.464 1.106-1.944 1.912-.48.805-.72 1.701-.72 2.687 0 .962.24 1.846.72 2.652s1.128 1.443 1.944 1.912c.816.469 1.704.704 2.664.704zm13.806-2.237c-.648 0-1.194-.223-1.638-.668-.444-.445-.666-.992-.666-1.641 0-.65.222-1.197.666-1.642.444-.444.99-.667 1.638-.667.624 0 1.158.223 1.602.667.444.445.666.993.666 1.642 0 .65-.222 1.196-.666 1.641-.444.445-.978.668-1.602.668zm0 14.214c-.648 0-1.194-.223-1.638-.668-.444-.444-.666-.992-.666-1.641 0-.625.222-1.16.666-1.605.444-.445.99-.668 1.638-.668.624 0 1.158.223 1.602.668.444.445.666.98.666 1.605 0 .65-.222 1.197-.666 1.641-.444.445-.978.668-1.602.668zm17.191-5.52h-11.808v-2.309l11.52-17.064h3.312v16.487h3.168v2.886h-3.168v5.303h-3.024v-5.303zm0-2.886V93.037h-.144l-8.172 12.013h8.316zm14.527-12.194l-4.32 3.103-1.584-2.345 7.02-5.05h1.944v24.675h-3.06V92.856zM90.177 134.444c-.56 0-1.074-.17-1.54-.51-.467-.342-.787-.82-.96-1.434l.81-.33c.113.427.323.778.63 1.052.306.274.666.41 1.08.41.413 0 .763-.111 1.05-.335.286-.224.43-.53.43-.917 0-.334-.122-.61-.365-.827-.244-.217-.642-.42-1.195-.606l-.45-.16c-.507-.18-.92-.418-1.24-.712-.32-.294-.48-.701-.48-1.223 0-.34.093-.656.28-.947.186-.29.446-.522.78-.696.333-.174.706-.26 1.12-.26.413 0 .773.076 1.08.23.306.154.551.34.735.561.183.22.311.438.385.651l-.8.341c-.067-.247-.219-.47-.455-.671-.237-.2-.549-.3-.935-.3-.367 0-.68.103-.94.31-.26.207-.39.467-.39.781 0 .281.11.51.33.687.22.177.553.342 1 .496l.47.16c.606.22 1.08.496 1.42.827.34.33.51.78.51 1.348 0 .46-.119.848-.355 1.162-.237.314-.535.545-.895.692-.36.147-.73.22-1.11.22zm4.995 0c-.614 0-1.082-.18-1.405-.54-.324-.362-.485-.866-.485-1.514v-3.217h.85v3.087c0 .487.11.845.33 1.072.22.227.516.34.89.34.286 0 .541-.076.765-.23.223-.154.396-.354.52-.601.123-.247.185-.508.185-.782v-2.886h.85v5.11h-.81v-.74h-.04c-.14.253-.364.467-.67.64-.307.174-.634.261-.98.261zm3.615-5.27h.81v.75h.04c.14-.253.363-.469.67-.646.307-.177.633-.265.98-.265.613 0 1.082.178 1.405.536.323.357.485.843.485 1.458v3.277h-.85v-3.147c0-.474-.113-.818-.34-1.032-.227-.214-.537-.32-.93-.32-.273 0-.518.076-.735.23-.217.154-.385.356-.505.606s-.18.513-.18.787v2.876h-.85v-5.11zm8.88 5.27c-.526 0-.986-.145-1.38-.436-.393-.29-.67-.7-.83-1.227l.8-.331c.24.788.71 1.183 1.41 1.183.394 0 .709-.137.945-.411.237-.274.355-.635.355-1.083v-5.03h.85v4.96c0 .501-.091.93-.275 1.288-.183.357-.436.628-.76.812-.323.183-.695.275-1.115.275zm5.065 0c-.613 0-1.081-.18-1.405-.54-.323-.362-.485-.866-.485-1.514v-3.217h.85v3.087c0 .487.11.845.33 1.072.22.227.517.34.89.34.287 0 .542-.076.765-.23.224-.154.397-.354.52-.601.124-.247.185-.508.185-.782v-2.886h.85v5.11h-.81v-.74h-.04c-.14.253-.363.467-.67.64-.306.174-.633.261-.98.261zm3.616-7.335h.85v7.175h-.85v-7.175zm2.525 7.235c-.18 0-.332-.062-.455-.185-.124-.124-.185-.276-.185-.456 0-.174.061-.323.185-.446.123-.124.275-.186.455-.186.173 0 .321.062.445.186.123.123.185.272.185.446 0 .18-.062.332-.185.456-.124.123-.272.185-.445.185zm3.67-.912c.207-.207.617-.623 1.23-1.248.613-.624 1.04-1.067 1.28-1.327.34-.368.57-.655.69-.862.12-.207.18-.458.18-.752 0-.2-.052-.389-.155-.566-.103-.177-.253-.32-.45-.43-.197-.111-.432-.166-.705-.166-.36 0-.648.105-.865.315-.217.21-.358.44-.425.687l-.78-.31c.067-.215.187-.437.36-.667.173-.23.407-.428.7-.591.293-.164.64-.246 1.04-.246.42 0 .792.09 1.115.27.323.181.575.422.755.722.18.3.27.625.27.972 0 .702-.367 1.427-1.1 2.175l-2.05 2.064h3.23v.812h-4.32v-.852zm6.435.541l1.72-2.415-.02-.02c-.233.16-.53.24-.89.24-.346 0-.686-.096-1.02-.29-.333-.194-.603-.46-.81-.797-.206-.337-.31-.713-.31-1.127 0-.4.105-.777.315-1.127.21-.351.494-.633.85-.847.357-.214.745-.32 1.165-.32.454 0 .859.11 1.215.33.357.22.634.506.83.857.197.35.295.72.295 1.107 0 .367-.075.72-.225 1.057-.15.338-.365.713-.645 1.128l-1.79 2.695-.68-.47zm1-2.956c.267 0 .515-.065.745-.195.23-.13.412-.308.545-.532.134-.223.2-.469.2-.736 0-.274-.066-.523-.2-.747-.133-.223-.315-.4-.545-.53-.23-.131-.478-.196-.745-.196-.266 0-.513.065-.74.195-.226.13-.406.308-.54.531-.133.224-.2.473-.2.747 0 .267.067.513.2.736.134.224.314.401.54.532.227.13.474.195.74.195z"/>
20
+ </g>
21
+ </svg>
@@ -0,0 +1,20 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="220" height="472" viewBox="0 0 220 472">
2
+ <g fill="none" fill-rule="evenodd">
3
+ <rect width="220" height="472" fill="#101211" rx="26"/>
4
+ <rect width="202" height="404" x="9" y="36" fill="#F4F5F7" rx="9"/>
5
+ <rect width="182" height="136" x="19" y="112" fill="#F4F5F7" rx="17.5"/>
6
+ <path fill="#F4F5F7" d="M18 36h184c4.97 0 9 4.03 9 9v6H9v-6c0-4.97 4.03-9 9-9z"/>
7
+ <path fill="#F4F5F7" d="M9 51H211V82H9z" transform="matrix(1 0 0 -1 0 133)"/>
8
+ <rect width="52" height="5" x="84" y="14" fill="#2E2E2E" rx="2.5"/>
9
+ <rect width="52" height="5" x="84" y="455" fill="#2E2E2E" rx="2.5"/>
10
+ <circle cx="45.5" cy="19.5" r="5.5" fill="#2E2E2E"/>
11
+ <circle cx="65.5" cy="19.5" r="3.5" fill="#2E2E2E"/>
12
+ <text fill="#000" font-family="Roboto-Regular, Roboto" font-size="12" letter-spacing=".175">
13
+ <tspan x="49.5" y="71">Muji India</tspan>
14
+ </text>
15
+ <circle cx="199" cy="63" r="1" fill="#000"/>
16
+ <circle cx="199" cy="70" r="1" fill="#000"/>
17
+ <circle cx="199" cy="66.5" r="1" fill="#000"/>
18
+ <path fill="#000" d="M28 66c0 .279-.226.505-.505.505h-5.556l2.42 2.42c.198.197.198.518 0 .716-.198.198-.52.198-.718 0l-2.934-2.934c-.39-.39-.39-1.024 0-1.414l2.934-2.934c.198-.198.52-.198.718 0 .198.198.198.519 0 .717l-2.42 2.419h5.556c.279 0 .505.226.505.505z"/>
19
+ </g>
20
+ </svg>
@@ -12,3 +12,33 @@ export const getTopbarMenuDataValue = () => ([
12
12
  { label: <FormattedMessage {...globalMessages.incentive} />, link: '/coupons/ui/', key: 'incentive' },
13
13
  { label: <FormattedMessage {...globalMessages.creatives} />, link: '/creatives/ui/v2', key: 'creatives' },
14
14
  ]);
15
+
16
+ export const TRACK_CREATE_SMS = 'createSms';
17
+ export const TRACK_CREATE_EMAIL = 'createEmail';
18
+ export const TRACK_CREATE_MPUSH = 'createMpush';
19
+ export const TRACK_CREATE_WECHAT = 'createWeChat';
20
+ export const TRACK_CREATE_IMAGE = 'createImage';
21
+
22
+
23
+ export const TRACK_EDIT_SMS = 'editSms';
24
+ export const TRACK_EDIT_EMAIL = 'editEmail';
25
+ export const TRACK_EDIT_MPUSH = 'editMpush';
26
+ export const TRACK_EDIT_WECHAT = 'editWeChat';
27
+ export const TRACK_EDIT_IMAGE = 'editImage';
28
+
29
+ export const CHANNEL_CREATE_TRACK_MAPPING = {
30
+ sms: TRACK_CREATE_SMS,
31
+ email: TRACK_CREATE_EMAIL,
32
+ mobilepush: TRACK_CREATE_MPUSH,
33
+ wechat: TRACK_CREATE_WECHAT,
34
+ gallery: TRACK_CREATE_IMAGE,
35
+ };
36
+
37
+ export const CHANNEL_EDIT_TRACK_MAPPING = {
38
+ sms: TRACK_EDIT_SMS,
39
+ email: TRACK_EDIT_EMAIL,
40
+ mobilepush: TRACK_EDIT_MPUSH,
41
+ wechat: TRACK_EDIT_WECHAT,
42
+ gallery: TRACK_EDIT_IMAGE,
43
+ };
44
+ export const GTM_TRACKING_ID = 'UA-152081629-1';