@capillarytech/creatives-library 1.0.1-alpha.0 → 1.0.2

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 (1702) hide show
  1. package/app.js +14 -22
  2. package/assets/atoms-illustration.png +0 -0
  3. package/components/atoms/AvatarIcon/stories/AvatarIcon.stories.js +12 -0
  4. package/components/atoms/EllipsisText/EllipsisText.js +2 -6
  5. package/components/atoms/EllipsisText/index.js +2 -1
  6. package/components/atoms/GroupItemLabel/GroupItemLabel.js +45 -0
  7. package/components/atoms/GroupItemLabel/style.js +15 -0
  8. package/components/atoms/GroupItemLabel/tests/__snapshots__/index.test.js.snap +32 -0
  9. package/components/atoms/GroupItemLabel/tests/index.test.js +35 -0
  10. package/components/atoms/PrimaryInput/PrimaryInput.js +0 -4
  11. package/components/atoms/PrimarySelect/PrimarySelect.js +16 -14
  12. package/components/atoms/RenderRoute/tests/__snapshots__/index.test.js.snap +105 -13
  13. package/components/atoms/RenderRoute/tests/index.test.js +1 -1
  14. package/components/atoms/ReonNotEnabled/ReonNotEnabled.js +5 -1
  15. package/components/atoms/SelectOptionLabelWithInfo/SelectOptionLabelWithInfo.js +6 -10
  16. package/components/atoms/SelectOptionLabelWithInfo/tests/__snapshots__/index.test.js.snap +2 -4
  17. package/components/atoms/TriggerAction/TriggerAction.js +2 -1
  18. package/components/atoms/TriggerAction/index.js +1 -1
  19. package/components/atoms/TriggerAction/tests/__snapshots__/index.test.js.snap +6 -3
  20. package/components/molecules/ActionExpression/ActionExpression.js +135 -0
  21. package/components/molecules/ActionExpression/index.js +1 -0
  22. package/components/molecules/ActionExpression/style.js +10 -0
  23. package/components/{organisms → molecules}/ActionExpression/tests/ActionExpression.test.js +2 -21
  24. package/components/molecules/ActionExpression/tests/__snapshots__/ActionExpression.test.js.snap +87 -0
  25. package/components/molecules/ActionTitle/ActionTitle.js +11 -14
  26. package/components/molecules/ActionTitle/tests/ActionTitle.test.js +0 -21
  27. package/components/molecules/ActionTitle/tests/__snapshots__/ActionTitle.test.js.snap +1 -21
  28. package/components/molecules/AddActionConditionWorkflow/AddActionConditionWorkflow.js +7 -4
  29. package/components/molecules/AddActionConditionWorkflow/style.js +2 -16
  30. package/components/molecules/AddMoreCard/AddMoreCard.js +7 -1
  31. package/components/molecules/AddTierBanner/AddTierBanner.js +3 -2
  32. package/components/molecules/AddTierPrimaryInfo/AddTierPrimaryInfo.js +7 -3
  33. package/components/molecules/AddTrackersInfo/AddTrackersInfo.js +7 -2
  34. package/components/molecules/AddTrackersInfo/style.js +2 -2
  35. package/components/molecules/AdvanceSettingScrollContainer/AdvanceSettingScrollContainer.js +2 -2
  36. package/components/molecules/CardsCommunication/CardsCommunication.js +13 -37
  37. package/components/molecules/CardsCommunication/constants.js +0 -1
  38. package/components/molecules/CardsCommunication/messages.js +4 -0
  39. package/components/molecules/CardsWithCheckboxCommunication/CardsWithCheckboxCommunication.js +2 -2
  40. package/components/molecules/CardsWithCheckboxCommunication/messages.js +17 -0
  41. package/components/molecules/CheckboxWithInputPrefix/CheckboxWithInputPrefix.js +9 -48
  42. package/components/molecules/CollapsableContent/CollapsableContent.js +21 -144
  43. package/components/molecules/CollapsableContent/style.js +16 -92
  44. package/components/molecules/CollapseWithDateRange/CollapseWithDateRange.js +0 -11
  45. package/components/molecules/CollapseWithMultiSelect/CollapseWithMultiSelect.js +12 -28
  46. package/components/molecules/CollapseWithRadioGroup/CollapseWithRadioGroup.js +5 -17
  47. package/components/molecules/CollapseWithStore/CollapseWithStore.js +33 -228
  48. package/components/molecules/CollapseWithSwitchSelect/CollapseWithSwitchSelect.js +26 -60
  49. package/components/molecules/ColorPatch/ColorPatch.js +1 -1
  50. package/components/molecules/ColorSelector/ColorSelector.js +60 -98
  51. package/components/molecules/ColorSelector/style.js +16 -19
  52. package/components/molecules/CommunicationTable/CommunicationTable.js +3 -25
  53. package/components/molecules/CommunicationTable/messages.js +8 -0
  54. package/components/molecules/CommunicationTable/style.js +0 -8
  55. package/components/molecules/CommunicationTable/tests/index.test.js +6 -41
  56. package/components/molecules/ConfirmationModal/ConfirmationModal.js +2 -18
  57. package/components/molecules/ConfirmationModal/style.js +0 -110
  58. package/components/molecules/ContentPreviews/tests/__snapshots__/index.test.js.snap +82 -4
  59. package/components/molecules/CreateActionButton/CreateActionButton.js +1 -1
  60. package/components/molecules/CreateOfferInfo/CreateOfferInfo.js +4 -8
  61. package/components/molecules/CreateOfferInfo/messages.js +4 -0
  62. package/components/molecules/CreateTracker/CreateTracker.js +86 -483
  63. package/components/molecules/CreateTracker/constants.js +0 -2
  64. package/components/molecules/CreateTracker/messages.js +42 -84
  65. package/components/molecules/CreateTracker/reducer.js +1 -1
  66. package/components/molecules/CreateTracker/style.js +0 -58
  67. package/components/molecules/CustomTree/CustomTree.js +15 -279
  68. package/components/molecules/CustomTree/style.js +2 -65
  69. package/components/molecules/DelayCreatives/DelayCreatives.js +2 -12
  70. package/components/molecules/DividerInlinedText/style.js +2 -3
  71. package/components/molecules/DowngradeTier/DowngradeTier.js +90 -657
  72. package/components/molecules/DowngradeTier/constants.js +0 -18
  73. package/components/molecules/DowngradeTier/messages.js +0 -84
  74. package/components/molecules/EmptyStateIllustration/EmptyStateIllustration.js +3 -25
  75. package/components/molecules/EmptyStateIllustration/tests/index.test.js +11 -0
  76. package/components/molecules/FileSelector/FileSelector.js +3 -4
  77. package/components/molecules/FileSelector/messages.js +21 -1
  78. package/components/molecules/FileSelector/style.js +2 -2
  79. package/components/molecules/HeaderWithInput/HeaderWithInput.js +22 -41
  80. package/components/molecules/InfoBanner/InfoBanner.js +1 -2
  81. package/components/molecules/InfoBanner/style.js +0 -2
  82. package/components/molecules/InputToInput/InputToInput.js +1 -3
  83. package/components/molecules/LabelWithDivider/LabelWithDivider.js +2 -18
  84. package/components/molecules/LoyaltyStatus/tests/__snapshots__/LoyaltyStatus.test.js.snap +1140 -5238
  85. package/components/molecules/MoreLabel/MoreLabel.js +2 -2
  86. package/components/molecules/MoreLabel/messages.js +16 -0
  87. package/components/molecules/NumberInput/NumberInput.js +2 -9
  88. package/components/molecules/NumberInput/constants.js +0 -3
  89. package/components/molecules/PageHeader/PageHeader.js +177 -0
  90. package/components/molecules/PageHeader/stories/PageHeader.stories.js +20 -0
  91. package/components/{organisms → molecules}/PageHeader/style.js +18 -35
  92. package/components/molecules/PageHeader/tests/PageHeader.test.js +40 -0
  93. package/components/molecules/PageHeader/tests/__snapshots__/PageHeader.test.js.snap +2342 -0
  94. package/components/molecules/PageHeaderDescription/PageHeaderDescription.js +10 -53
  95. package/components/molecules/PageHeaderDescription/tests/PageHeaderDescription.test.js +2 -6
  96. package/components/molecules/PageHeaderDescription/tests/__snapshots__/PageHeaderDescription.test.js.snap +615 -111
  97. package/components/molecules/PointExpiryCommunication/PointExpiryCommunication.js +2 -5
  98. package/components/molecules/PointExpiryCommunication/messages.js +16 -0
  99. package/components/molecules/PointExpiryCommunication/tests/__snapshots__/index.test.js.snap +0 -1
  100. package/components/molecules/ProgramName/ProgramName.js +39 -97
  101. package/components/molecules/ProgramName/stories/ProgramName.stories.js +5 -0
  102. package/components/molecules/ProgramName/style.js +0 -32
  103. package/components/molecules/ProgramName/tests/index.test.js +11 -0
  104. package/components/molecules/ProgramTitle/stories/ProgramTitle.stories.js +5 -0
  105. package/components/molecules/ProgramValueSkeleton/stories/ProgramValueSkeleton.stories.js +5 -0
  106. package/components/molecules/RadioCardWithAction/RadioCardWithAction.js +57 -0
  107. package/components/molecules/RadioCardWithAction/index.js +1 -0
  108. package/components/molecules/RadioContentSlidebox/RadioContentSlidebox.js +5 -4
  109. package/components/molecules/RadioWithInfo/stories/RadioWithInfo.stories.js +15 -0
  110. package/components/molecules/RadioWithInfo/tests/__snapshots__/RadioWithInfo.test.js.snap +366 -86
  111. package/components/molecules/RenewalTier/RenewalTier.js +5 -7
  112. package/components/molecules/RenewalTier/messages.js +20 -0
  113. package/components/molecules/ReviewTierModal/ReviewTierModal.js +1 -1
  114. package/components/molecules/ReviewTierModal/messages.js +4 -0
  115. package/components/molecules/RowHeader/RowHeader.js +5 -20
  116. package/components/molecules/RowHeader/stories/RowHeader.stories.js +7 -0
  117. package/components/molecules/RowHeader/tests/RowHeader.test.js +1 -7
  118. package/components/molecules/RowHeader/tests/__snapshots__/RowHeader.test.js.snap +604 -196
  119. package/components/molecules/SelectApiWrapper/SelectApiWrapper.js +0 -1
  120. package/components/molecules/SelectCollection/SelectCollection.js +24 -43
  121. package/components/molecules/SelectCollection/stories/SelectCollection.stories.js +24 -0
  122. package/components/molecules/SenderInformation/SenderInformation.js +6 -38
  123. package/components/molecules/SenderInformation/messages.js +4 -0
  124. package/components/molecules/SenderSlideBox/SenderSlideBox.js +4 -8
  125. package/components/molecules/SenderSlideBox/style.js +0 -3
  126. package/components/molecules/SortHeader/stories/SortHeader.stories.js +5 -0
  127. package/components/molecules/SuggestionCard/stories/SuggestionCard.stories.js +16 -0
  128. package/components/molecules/SuggestionCard/style.js +3 -3
  129. package/components/molecules/SwitchWithDivider/SwitchWithDivider.js +3 -24
  130. package/components/molecules/SwitchWithDivider/style.js +2 -2
  131. package/components/molecules/SyncLabel/SyncLabel.js +1 -0
  132. package/components/molecules/SyncLabel/messages.js +11 -0
  133. package/components/molecules/SyncLabel/stories/SyncLabel.stories.js +5 -0
  134. package/components/molecules/SyncLabel/tests/__snapshots__/SyncLabel.test.js.snap +1016 -3612
  135. package/components/molecules/TableOption/TableOption.js +5 -95
  136. package/components/molecules/TableOption/stories/TableOption.stories.js +5 -0
  137. package/components/molecules/TagsTab/stories/TagsTab.stories.js +8 -0
  138. package/components/molecules/TagsTab/stories/mockData.js +9 -0
  139. package/components/molecules/TierButtonInput/TierButtonInput.js +2 -2
  140. package/components/molecules/TierButtonInput/messages.js +16 -0
  141. package/components/molecules/TierCard/BlockContent.js +11 -30
  142. package/components/molecules/TierCard/CardBody.js +34 -153
  143. package/components/molecules/TierCard/CardContent.js +5 -5
  144. package/components/molecules/TierCard/TierCard.js +1 -1
  145. package/components/molecules/TierCard/TierWithContent.js +1 -0
  146. package/components/molecules/TierCard/constants.js +3 -8
  147. package/components/molecules/TierCard/messages.js +28 -24
  148. package/components/molecules/TierCard/stories/TierCard.stories.js +7 -0
  149. package/components/molecules/TierCard/style.js +3 -10
  150. package/components/molecules/TierRenewalCommunication/TierRenewalCommunication.js +1 -6
  151. package/components/molecules/TierUpgradeCommunication/TierUpgradeCommunication.js +0 -3
  152. package/components/molecules/TierUpgradeCommunication/messages.js +40 -0
  153. package/components/molecules/TitleWithStatus/TitleWithStatus.js +1 -1
  154. package/components/molecules/TitleWithStatus/stories/TitleWithStatus.stories.js +5 -0
  155. package/components/molecules/UpgradeTier/UpgradeTier.js +21 -75
  156. package/components/molecules/UpgradeTier/messages.js +6 -7
  157. package/components/molecules/UpgradeTrackerTier/messages.js +11 -0
  158. package/components/organisms/AddEarnCondition/AddEarnCondition.js +77 -202
  159. package/components/organisms/AddEarnCondition/constants.js +0 -7
  160. package/components/organisms/AddEarnCondition/messages.js +32 -41
  161. package/components/organisms/AddEarnCondition/style.js +13 -21
  162. package/components/organisms/AddPaymentMethod/AddPaymentMethod.js +31 -23
  163. package/components/organisms/AddPaymentMethod/messages.js +44 -0
  164. package/components/organisms/AddTier/AddTier.js +67 -306
  165. package/components/organisms/AddTier/constants.js +0 -5
  166. package/components/organisms/AddTier/defaultStates.js +2 -19
  167. package/components/organisms/AddTier/messages.js +4 -60
  168. package/components/organisms/AddTier/style.js +7 -82
  169. package/components/organisms/AddTier/utils.js +35 -189
  170. package/components/organisms/AddTierSetting/AddTierSetting.js +1 -5
  171. package/components/organisms/AddTierSetting/messages.js +4 -0
  172. package/components/organisms/AdvancedOption/AdvancedOption.js +61 -313
  173. package/components/organisms/AdvancedOption/constants.js +0 -226
  174. package/components/organisms/AdvancedOption/messages.js +21 -33
  175. package/components/organisms/AdvancedOption/style.js +2 -123
  176. package/components/organisms/AllocationPointWorkflowAction/AllocationPointWorkflowAction.js +16 -143
  177. package/components/organisms/AllocationPointWorkflowAction/constants.js +1 -1
  178. package/components/organisms/AllocationStrategy/AllocationStrategy.js +94 -155
  179. package/components/organisms/AllocationStrategy/constants.js +0 -4
  180. package/components/organisms/AllocationStrategy/messages.js +29 -15
  181. package/components/organisms/AllocationStrategy/tests/AllocationStrategy.test.js +0 -48
  182. package/components/organisms/AllocationStrategy/tests/mockData.js +0 -161
  183. package/components/organisms/AwardPointsConfig/AwardPointsConfig.js +108 -981
  184. package/components/organisms/AwardPointsConfig/constants.js +0 -7
  185. package/components/organisms/AwardPointsConfig/messages.js +28 -241
  186. package/components/organisms/AwardPointsConfig/style.js +1 -175
  187. package/components/organisms/AwardRefereePointsWorkflowAction/AwardRefereePointsWorkflowAction.js +4 -34
  188. package/components/organisms/AwardReferrerPointsWorkflowAction/AwardReferrerPointsWorkflowAction.js +4 -34
  189. package/components/organisms/CappingSlidebox/CappingSlidebox.js +200 -473
  190. package/components/organisms/CappingSlidebox/messages.js +17 -55
  191. package/components/organisms/CappingSlidebox/style.js +1 -86
  192. package/components/organisms/Communication/Communication.js +13 -20
  193. package/components/organisms/Communication/constants.js +0 -2
  194. package/components/organisms/Communication/index.js +1 -1
  195. package/components/organisms/Communication/messages.js +24 -0
  196. package/components/organisms/Communication/tests/index.test.js +4 -47
  197. package/components/organisms/CommunicationAdvancedOption/CommunicationAdvancedOption.js +10 -6
  198. package/components/organisms/CommunicationAdvancedOption/messages.js +17 -0
  199. package/components/organisms/CommunicationStrategies/CommunicationStrategies.js +8 -9
  200. package/components/organisms/CommunicationStrategies/messages.js +38 -1
  201. package/components/organisms/CommunicationStrategies/tests/__snapshots__/index.test.js.snap +380 -1746
  202. package/components/organisms/CommunicationStrategies/utils.js +2 -2
  203. package/components/organisms/ConfigureKPI/ConfigureKPI.js +4 -17
  204. package/components/organisms/ConfigureKPI/messages.js +11 -0
  205. package/components/organisms/ConfigureKPI/tests/ConfigureKPI.test.js +9 -25
  206. package/components/organisms/ConfigureKPI/tests/__snapshots__/ConfigureKPI.test.js.snap +2 -4
  207. package/components/organisms/ConfigureProgramSteps/ConfigureProgramSteps.js +36 -191
  208. package/components/organisms/ConfigureProgramSteps/messages.js +8 -26
  209. package/components/organisms/ConfigureProgramSteps/style.js +2 -60
  210. package/components/organisms/ConfigureStrategies/ConfigureStrategies.js +80 -342
  211. package/components/organisms/ConfigureStrategies/actions.js +0 -4
  212. package/components/organisms/ConfigureStrategies/constants.js +0 -8
  213. package/components/organisms/ConfigureStrategies/messages.js +28 -6
  214. package/components/organisms/ConfigureStrategies/style.js +1 -50
  215. package/components/organisms/ConfigureTrackers/ConfigureTrackers.js +4 -30
  216. package/components/organisms/ConfigureTrackers/style.js +1 -5
  217. package/components/organisms/ConfigureWorkflows/ConfigureWorkflows.js +208 -480
  218. package/components/organisms/ConfigureWorkflows/ScopingAndCapping.js +53 -112
  219. package/components/organisms/ConfigureWorkflows/WorkflowActions.js +246 -360
  220. package/components/organisms/ConfigureWorkflows/WorkflowConfigurationSection.js +556 -1676
  221. package/components/organisms/ConfigureWorkflows/actions.js +10 -142
  222. package/components/organisms/ConfigureWorkflows/constants.js +34 -223
  223. package/components/organisms/ConfigureWorkflows/index.js +1 -1
  224. package/components/organisms/ConfigureWorkflows/messages.js +26 -121
  225. package/components/organisms/ConfigureWorkflows/reducer.js +17 -191
  226. package/components/organisms/ConfigureWorkflows/saga.js +75 -541
  227. package/components/organisms/ConfigureWorkflows/selectors.js +8 -72
  228. package/components/organisms/ConfigureWorkflows/style.js +17 -425
  229. package/components/organisms/ConfigureWorkflows/utils.js +27 -816
  230. package/components/organisms/CouponSlidebox/CouponSlidebox.js +6 -5
  231. package/components/organisms/CouponSlidebox/_coupons.scss +0 -6
  232. package/components/organisms/CouponSlidebox/messages.js +84 -0
  233. package/components/organisms/CouponSlidebox/saga.js +18 -0
  234. package/components/organisms/Coupons/Coupons.js +9 -64
  235. package/components/organisms/Coupons/index.js +1 -1
  236. package/components/organisms/Coupons/messages.js +103 -2
  237. package/components/organisms/Coupons/saga.js +11 -1
  238. package/components/organisms/Coupons/stories/Coupons.stories.js +5 -0
  239. package/components/organisms/Coupons/style.js +0 -33
  240. package/components/organisms/Coupons/tests/index.test.js +0 -49
  241. package/components/organisms/CreateProgram/CreateProgram.js +78 -323
  242. package/components/organisms/CreateProgram/constants.js +0 -21
  243. package/components/organisms/CreateProgram/messages.js +0 -52
  244. package/components/organisms/CreateProgram/saga.js +1 -1
  245. package/components/organisms/CreateProgram/style.js +1 -191
  246. package/components/organisms/CreateProgram/tests/CreateProgram.test.js +66 -498
  247. package/components/organisms/CreateProgram/tests/__snapshots__/reducer.test.js.snap +0 -8
  248. package/components/organisms/CreateProgram/tests/reducer.test.js +0 -1
  249. package/components/organisms/CreateProgramIllustration/CreateProgramIllustration.js +3 -13
  250. package/components/organisms/CreateTender/CreateTender.js +8 -8
  251. package/components/organisms/CreateTender/messages.js +33 -0
  252. package/components/organisms/CreateTender/saga.js +1 -4
  253. package/components/organisms/CreateTender/style.js +0 -1
  254. package/components/organisms/CreateTier/CreateTier.js +8 -12
  255. package/components/organisms/CreateTier/utils.js +1 -5
  256. package/components/organisms/Creatives/Creatives.js +49 -106
  257. package/components/organisms/Creatives/actions.js +1 -18
  258. package/components/organisms/Creatives/constants.js +0 -6
  259. package/components/organisms/Creatives/messages.js +283 -0
  260. package/components/organisms/Creatives/reducer.js +3 -52
  261. package/components/organisms/Creatives/saga.js +137 -49
  262. package/components/organisms/Creatives/tests/index.test.js +3 -89
  263. package/components/organisms/CustomerActivity/CustomerActivity.js +25 -74
  264. package/components/organisms/CustomerActivity/messages.js +9 -257
  265. package/components/organisms/CustomerActivity/style.js +1 -6
  266. package/components/organisms/EbillWorkflowAction/EbillWorkflowAction.js +15 -43
  267. package/components/organisms/ExpiryCommunication/ExpiryCommunication.js +4 -15
  268. package/components/organisms/ExpiryCommunication/messages.js +12 -0
  269. package/components/organisms/ExpiryCommunication/tests/index.test.js +6 -19
  270. package/components/organisms/ExpiryConditions/ExpiryConditions.js +87 -546
  271. package/components/organisms/ExpiryConditions/constants.js +0 -6
  272. package/components/organisms/ExpiryConditions/messages.js +34 -55
  273. package/components/organisms/ExpiryConditions/style.js +4 -177
  274. package/components/organisms/ExpiryStrategy/ExpiryStrategy.js +39 -165
  275. package/components/organisms/ExpiryStrategy/constants.js +1 -7
  276. package/components/organisms/ExpiryStrategy/messages.js +3 -15
  277. package/components/organisms/ExpiryStrategy/tests/ExpiryStrategy.test.js +0 -65
  278. package/components/organisms/ExpiryStrategy/tests/mockData.js +0 -125
  279. package/components/organisms/ForwardToSetWorkflowAction/ForwardToSetWorkflowAction.js +24 -128
  280. package/components/organisms/ForwardToSetWorkflowAction/constants.js +0 -5
  281. package/components/organisms/ForwardToSetWorkflowAction/messages.js +10 -5
  282. package/components/organisms/InitiateSupplementaryMemberShipWorkflowAction/InitiateSupplementaryMemberShipWorkflowAction.js +55 -195
  283. package/components/organisms/InitiateSupplementaryMemberShipWorkflowAction/constants.js +8 -9
  284. package/components/organisms/InitiateSupplementaryMemberShipWorkflowAction/messages.js +4 -24
  285. package/components/organisms/InitiateSupplementaryMemberShipWorkflowAction/style.js +3 -18
  286. package/components/organisms/IssueCouponsWorkflowAction/IssueCouponsWorkflowAction.js +82 -1130
  287. package/components/organisms/IssueCouponsWorkflowAction/actions.js +1 -2
  288. package/components/organisms/IssueCouponsWorkflowAction/constants.js +0 -13
  289. package/components/organisms/IssueCouponsWorkflowAction/messages.js +1 -184
  290. package/components/organisms/IssueCouponsWorkflowAction/saga.js +1 -2
  291. package/components/organisms/IssueCouponsWorkflowAction/style.js +4 -338
  292. package/components/organisms/LoyaltyDetail/LoyaltyDetail.js +9 -34
  293. package/components/organisms/LoyaltyDetail/messages.js +16 -0
  294. package/components/organisms/LoyaltyDetail/style.js +0 -6
  295. package/components/organisms/LoyaltyDetail/tests/LoyaltyDetail.test.js +0 -39
  296. package/components/organisms/LoyaltyDetail/tests/mockdata.js +3 -3
  297. package/components/organisms/LoyaltyDetail/utils.js +2 -4
  298. package/components/organisms/LoyaltyGraph/LoyaltyGraph.js +3 -10
  299. package/components/organisms/LoyaltyGraph/tests/mockdata.js +0 -15
  300. package/components/organisms/MandatoryAndPriorityChannel/MandatoryAndPriorityChannel.js +0 -14
  301. package/components/organisms/NavigationBar/NavigationBar.js +73 -173
  302. package/components/organisms/NavigationBar/constants.js +1 -10
  303. package/components/organisms/NavigationBar/messages.js +0 -4
  304. package/components/organisms/NavigationBar/style.js +3 -109
  305. package/components/organisms/NavigationBar/tests/NavigationBar.test.js +42 -159
  306. package/components/organisms/NavigationBar/tests/__snapshots__/NavigationBar.test.js.snap +42 -0
  307. package/components/organisms/NavigationBar/tests/mockdata.js +0 -128
  308. package/components/organisms/NoConfigWorkflowAction/NoConfigWorkflowAction.js +0 -3
  309. package/components/organisms/Nudges/Nudges.js +2 -22
  310. package/components/organisms/Nudges/style.js +0 -3
  311. package/components/organisms/OrgChange/OrgChange.js +2 -2
  312. package/components/organisms/OrgChange/tests/OrgChange.test.js +4 -4
  313. package/components/organisms/OrgChange/tests/__snapshots__/OrgChange.test.js.snap +1521 -20275
  314. package/components/organisms/PaymentMethodsAdvanced/PaymentSettingsAdvanced.js +5 -5
  315. package/components/organisms/PaymentMethodsAdvanced/messages.js +16 -0
  316. package/components/organisms/PerformanceCard/PerformanceCard.js +9 -60
  317. package/components/organisms/PerformanceCard/messages.js +0 -29
  318. package/components/organisms/PerformanceCard/style.js +0 -21
  319. package/components/organisms/PerformanceCard/tests/PerformanceCard.test.js +0 -30
  320. package/components/organisms/PerformanceCard/tests/__snapshots__/PerformanceCard.test.js.snap +3739 -5541
  321. package/components/organisms/PerformanceStats/PerformanceStats.js +69 -85
  322. package/components/organisms/PerformanceStats/messages.js +1 -1
  323. package/components/organisms/PerformanceStats/style.js +0 -5
  324. package/components/organisms/PerformanceStats/tests/PerformanceStats.test.js +2 -5
  325. package/components/organisms/PerformanceStats/tests/__snapshots__/PerformanceStats.test.js.snap +14902 -17458
  326. package/components/organisms/PerformanceStats/tests/mockdata.js +2 -1
  327. package/components/organisms/PointContributionToGroup/PointContributionToGroup.js +2 -11
  328. package/components/organisms/PointStrategies/PointStrategies.js +23 -21
  329. package/components/organisms/PointStrategies/messages.js +58 -0
  330. package/components/organisms/PointsAdvancedOption/PointsAdvancedOption.js +11 -78
  331. package/components/organisms/PointsAdvancedOption/constants.js +0 -7
  332. package/components/organisms/PointsAdvancedOption/messages.js +3 -63
  333. package/components/organisms/PointsAdvancedOption/style.js +1 -21
  334. package/components/organisms/PointsAdvancedOption/utils.js +0 -56
  335. package/components/organisms/PointsGroupRedemptionWorkflowAction/PointsGroupRedemptionWorkflowAction.js +0 -3
  336. package/components/organisms/PointsRedemptionReversalWorkflowAction/PointsRedemptionReversalWorkflowAction.js +4 -12
  337. package/components/organisms/PointsRedemptionWorkflowAction/PointsRedemptionWorkflowAction.js +0 -3
  338. package/components/organisms/Preview/Preview.js +2 -3
  339. package/components/organisms/Preview/messages.js +14 -0
  340. package/components/organisms/Preview/tests/__snapshots__/index.test.js.snap +6 -11
  341. package/components/organisms/ProgramPerformance/index.js +1 -1
  342. package/components/organisms/ProgramSettings/ProgramSettings.js +92 -251
  343. package/components/organisms/ProgramSettings/actions.js +17 -0
  344. package/components/organisms/ProgramSettings/constants.js +14 -0
  345. package/components/organisms/ProgramSettings/reducer.js +46 -0
  346. package/components/organisms/ProgramSettings/saga.js +59 -0
  347. package/components/organisms/{AdvancedOption → ProgramSettings}/selectors.js +1 -1
  348. package/components/organisms/ProgramWorkflows/ProgramWorkflows.js +3 -3
  349. package/components/organisms/ProgramWorkflows/messages.js +8 -0
  350. package/components/organisms/ProgramWorkflows/tests/index.test.js +4 -11
  351. package/components/organisms/PromisedPointToCurrentPointWorkflowAction/PromisedPointToCurrentPointWorkflowAction.js +0 -3
  352. package/components/organisms/RadioTreeSelect/style.js +1 -1
  353. package/components/organisms/RedeemConditionFields/RedeemConditionFields.js +1 -25
  354. package/components/organisms/RedeemConditionFields/messages.js +10 -14
  355. package/components/organisms/RedeemConditionFields/tests/index.test.js +5 -15
  356. package/components/organisms/RedeemConditions/RedeemConditions.js +53 -123
  357. package/components/organisms/RedeemConditions/constants.js +0 -2
  358. package/components/organisms/RedeemConditions/messages.js +7 -3
  359. package/components/organisms/RedemptionStrategy/RedemptionStrategy.js +68 -113
  360. package/components/organisms/RedemptionStrategy/constants.js +0 -4
  361. package/components/organisms/RedemptionStrategy/messages.js +5 -9
  362. package/components/organisms/RedemptionStrategy/tests/RedemptionStrategy.test.js +0 -75
  363. package/components/organisms/RedemptionStrategy/tests/mockData.js +0 -46
  364. package/components/organisms/RenewTierWorkflowAction/RenewTierWorkflowAction.js +1 -8
  365. package/components/organisms/RenewalCommunication/RenewalCommunication.js +2 -4
  366. package/components/organisms/RenewalCommunication/tests/index.test.js +7 -20
  367. package/components/organisms/ReturnConditions/ReturnConditions.js +5 -15
  368. package/components/organisms/ReturnConditions/messages.js +11 -7
  369. package/components/organisms/ReturnConditions/style.js +1 -2
  370. package/components/organisms/ReturnStrategy/ReturnStrategy.js +12 -39
  371. package/components/organisms/ReturnStrategy/messages.js +13 -1
  372. package/components/organisms/ReturnStrategy/tests/ReturnStrategy.test.js +0 -68
  373. package/components/organisms/ReviewTierUnloadModal/ReviewTierUnloadModal.js +3 -3
  374. package/components/organisms/ReviewTierUnloadModal/messages.js +10 -0
  375. package/components/organisms/ScopeSlidebox/ScopeSlidebox.js +270 -1931
  376. package/components/organisms/ScopeSlidebox/constants.js +2 -115
  377. package/components/organisms/ScopeSlidebox/messages.js +12 -76
  378. package/components/organisms/SendEmailWorkflowAction/SendEmailWorkflowAction.js +4 -16
  379. package/components/organisms/SendMessagesWorkflowAction/SendMessagesWorkflowAction.js +4 -15
  380. package/components/organisms/SendMessagesWorkflowAction/index.js +1 -1
  381. package/components/organisms/SendMobilePushWorkflowAction/SendMobilePushWorkflowAction.js +4 -15
  382. package/components/organisms/SendSmsWorkflowAction/SendSmsWorkflowAction.js +4 -14
  383. package/components/organisms/SocialConnectWorkflowAction/SocialConnectWorkflowAction.js +4 -14
  384. package/components/organisms/StrategyDashboard/StrategyDashboard.js +8 -64
  385. package/components/organisms/StrategyDashboard/index.js +1 -1
  386. package/components/organisms/StrategyDashboard/style.js +1 -35
  387. package/components/organisms/TagCustomerAction/TagCustomerAction.js +16 -33
  388. package/components/organisms/TierUpgradeAndDowngrade/TierUpgradeAndDowngrade.js +60 -566
  389. package/components/organisms/TierUpgradeAndDowngrade/messages.js +0 -118
  390. package/components/organisms/TierUpgradeAndDowngrade/style.js +15 -557
  391. package/components/organisms/TierUpgradeAndDowngrade/utils.js +14 -179
  392. package/components/organisms/TieradvancedOption/TierAdvancedOption.js +29 -83
  393. package/components/organisms/TieradvancedOption/messages.js +50 -5
  394. package/components/organisms/TieradvancedOption/style.js +2 -3
  395. package/components/organisms/TieradvancedOption/utils.js +3 -12
  396. package/components/organisms/Tiers/Tiers.js +39 -305
  397. package/components/organisms/Tiers/actions.js +13 -0
  398. package/components/organisms/Tiers/constants.js +4 -4
  399. package/components/organisms/Tiers/index.js +1 -1
  400. package/components/organisms/Tiers/messages.js +4 -8
  401. package/components/organisms/Tiers/reducer.js +16 -29
  402. package/components/organisms/Tiers/saga.js +26 -8
  403. package/components/organisms/Tiers/selectors.js +13 -11
  404. package/components/organisms/Tiers/style.js +1 -92
  405. package/components/organisms/Tiers/tests/actions.test.js +4 -19
  406. package/components/organisms/Tiers/tests/index.test.js +4 -119
  407. package/components/organisms/Tiers/tests/reducer.test.js +1 -57
  408. package/components/organisms/Tiers/tests/selectors.test.js +1 -21
  409. package/components/organisms/TrackerEvaluationWorkflowAction/TrackerEvaluationWorkflowAction.js +8 -19
  410. package/components/organisms/Trackers/Trackers.js +31 -122
  411. package/components/organisms/Trackers/index.js +1 -1
  412. package/components/organisms/Trackers/messages.js +13 -1
  413. package/components/organisms/Trackers/style.js +0 -8
  414. package/components/organisms/Trackers/tests/Trackers.test.js +3 -43
  415. package/components/organisms/TransactionAllocationPointWorkflowAction/TransactionAllocationPointWorkflowAction.js +15 -117
  416. package/components/organisms/TransferGroupPoints/TransferGroupPoints.js +23 -118
  417. package/components/organisms/TransferGroupPoints/messages.js +8 -0
  418. package/components/organisms/TransferGroupPoints/style.js +1 -4
  419. package/components/organisms/UpgradeCommunication/UpgradeCommunication.js +5 -12
  420. package/components/organisms/UpgradeCommunication/messages.js +20 -0
  421. package/components/organisms/UpgradeCommunication/tests/index.test.js +6 -19
  422. package/components/organisms/UpgradeCommunication/utils.js +2 -2
  423. package/components/organisms/UpgradeToTierSettingsWorkflowAction/UpgradeToTierSettingsWorkflowAction.js +3 -12
  424. package/components/organisms/UpgradeToTierSettingsWorkflowAction/messages.js +17 -0
  425. package/components/organisms/UpgradeToTierWorkflowAction/UpgradeToTierWorkflowAction.js +6 -18
  426. package/components/organisms/UpgradeToTierWorkflowAction/index.js +1 -1
  427. package/components/organisms/UpgradeToTierWorkflowAction/messages.js +32 -0
  428. package/components/pages/App/constants.js +26 -277
  429. package/components/pages/App/index.js +1 -2
  430. package/components/pages/Cap/Cap.js +56 -245
  431. package/components/pages/Cap/Loadable.js +5 -9
  432. package/components/pages/Cap/actions.js +1 -129
  433. package/components/pages/Cap/constants.js +2 -162
  434. package/components/pages/Cap/messages.js +28 -1338
  435. package/components/pages/Cap/reducer.js +11 -238
  436. package/components/pages/Cap/routes.js +6 -38
  437. package/components/pages/Cap/saga.js +61 -609
  438. package/components/pages/Cap/selectors.js +1 -130
  439. package/components/pages/Cap/style.js +0 -8
  440. package/components/pages/ConfigureProgram/ConfigureProgram.js +6 -30
  441. package/components/pages/ConfigureProgram/messages.js +33 -0
  442. package/components/pages/Dashboard/Dashboard.js +8 -18
  443. package/components/pages/Dashboard/Loadable.js +4 -6
  444. package/components/pages/Dashboard/index.js +1 -1
  445. package/components/pages/Dashboard/messages.js +35 -0
  446. package/components/pages/LanguageProvider/actions.js +27 -0
  447. package/components/pages/LanguageProvider/constants.js +16 -0
  448. package/components/pages/LanguageProvider/index.js +115 -16
  449. package/components/pages/LanguageProvider/reducer.js +39 -0
  450. package/components/pages/LanguageProvider/saga.js +30 -10
  451. package/components/pages/LanguageProvider/selectors.js +18 -0
  452. package/components/pages/LanguageProvider/style.js +0 -3
  453. package/components/pages/LanguageProvider/tests/actions.test.js +15 -0
  454. package/components/pages/LanguageProvider/tests/index.test.js +66 -0
  455. package/components/pages/LanguageProvider/tests/reducer.test.js +30 -0
  456. package/components/pages/LanguageProvider/tests/saga.test.js +63 -0
  457. package/components/pages/LanguageProvider/tests/selectors.test.js +12 -0
  458. package/components/pages/Login/Loadable.js +3 -5
  459. package/components/pages/Login/Login.js +17 -13
  460. package/components/pages/LoyaltySetting/LoyaltySetting.js +7 -49
  461. package/components/pages/LoyaltySetting/style.js +1 -5
  462. package/components/pages/LoyaltySetting/tests/LoyaltySetting.test.js +3 -12
  463. package/components/pages/LoyaltySetting/tests/__snapshots__/LoyaltySetting.test.js.snap +9 -0
  464. package/components/pages/NotFoundPage/Loadable.js +10 -0
  465. package/components/pages/NotFoundPage/index.js +1 -1
  466. package/components/pages/ProgramSummary/ProgramSummary.js +238 -654
  467. package/components/pages/ProgramSummary/actions.js +9 -29
  468. package/components/pages/ProgramSummary/constants.js +6 -39
  469. package/components/pages/ProgramSummary/context.js +0 -0
  470. package/components/pages/ProgramSummary/index.js +0 -0
  471. package/components/pages/ProgramSummary/messages.js +40 -30
  472. package/components/pages/ProgramSummary/reducer.js +40 -83
  473. package/components/pages/ProgramSummary/saga.js +28 -202
  474. package/components/pages/ProgramSummary/selectors.js +2 -50
  475. package/components/pages/ProgramSummary/style.js +22 -189
  476. package/components/pages/ProgramSummary/tests/ProgramSummary.test.js +9 -706
  477. package/components/pages/ProgramSummary/tests/__snapshots__/ProgramSummary.test.js.snap +63 -0
  478. package/config/app.js +5 -26
  479. package/config/constants.js +1 -1
  480. package/config/urls.js +1 -1
  481. package/configureStore.js +51 -0
  482. package/global-styles.js +5 -315
  483. package/i18n.js +10 -11
  484. package/index.js +22 -0
  485. package/initialState.js +2 -58
  486. package/package.json +8 -13
  487. package/reducers.js +25 -0
  488. package/services/api.js +34 -720
  489. package/services/requestConstructor.js +1 -56
  490. package/tests/integration/CreateProgram/CreateProgram.integration.test.js +33 -143
  491. package/tests/integration/CreateProgram/mocks/handler.js +15 -0
  492. package/tests/integration/{commonMocks → CreateProgram/mocks}/initialState.js +1 -1
  493. package/tests/{test-utils.js → integration/test-utils.js} +3 -30
  494. package/tests/store.test.js +3 -6
  495. package/translations/en.json +380 -1746
  496. package/translations/zh.json +1150 -0
  497. package/utils/authWrapper.js +0 -62
  498. package/utils/clearDataOnUnmount.js +2 -5
  499. package/utils/commonUtils.js +27 -147
  500. package/utils/constants.js +4 -0
  501. package/utils/injectReducer.js +40 -2
  502. package/utils/injectSaga.js +58 -3
  503. package/utils/intlWrapper.js +1 -1
  504. package/utils/reducerInjectors.js +34 -0
  505. package/utils/sagaInjectors.js +92 -0
  506. package/utils/tiers.js +21 -147
  507. package/utils/validationHelper.js +0 -15
  508. package/utils/workflow.js +12 -203
  509. package/assets/EmptyStateIllustrationForPromos.png +0 -0
  510. package/assets/Points.png +0 -0
  511. package/assets/addCustomer.svg +0 -9
  512. package/assets/advanced-promotion-not-enabled.png +0 -0
  513. package/assets/badgeMask.svg +0 -3
  514. package/assets/bulb.svg +0 -9
  515. package/assets/bulk-configs-illustration.svg +0 -198
  516. package/assets/cluster.svg +0 -3
  517. package/assets/draft-not-exist-Illustration.svg +0 -16
  518. package/assets/drag.svg +0 -8
  519. package/assets/dummyIcon.png +0 -0
  520. package/assets/empty.svg +0 -35
  521. package/assets/emptyBadge.svg +0 -15
  522. package/assets/enrolPoints.svg +0 -9
  523. package/assets/filled-arrow.svg +0 -3
  524. package/assets/loyalty.svg +0 -9
  525. package/assets/not-supported-yet.svg +0 -4
  526. package/assets/pointsConversion.svg +0 -15
  527. package/assets/promotion.svg +0 -9
  528. package/assets/reEvaluate.svg +0 -17
  529. package/assets/receipt.svg +0 -14
  530. package/assets/rewardCurrencyLimitIcon.svg +0 -11
  531. package/assets/rewards-empty-placeholder.svg +0 -104
  532. package/assets/search.svg +0 -9
  533. package/assets/storeCode.csv +0 -5
  534. package/assets/survey-response.svg +0 -9
  535. package/assets/user_personlaisation.svg +0 -13
  536. package/assets/zones.svg +0 -14
  537. package/components/atoms/AccessDeniedTooltipMessage/AccessDeniedTooltipMessage.js +0 -29
  538. package/components/atoms/AccessDeniedTooltipMessage/index.js +0 -1
  539. package/components/atoms/AccessDeniedTooltipMessage/style.js +0 -24
  540. package/components/atoms/ActionViewModeHeader/ActionViewModeHeader.js +0 -60
  541. package/components/atoms/ActionViewModeHeader/index.js +0 -1
  542. package/components/atoms/ActionViewModeHeader/style.js +0 -7
  543. package/components/atoms/ButtonDropdown/ButtonDropdown.js +0 -41
  544. package/components/atoms/ButtonDropdown/index.js +0 -1
  545. package/components/atoms/ButtonDropdown/tests/ButtonDropdown.test.js +0 -20
  546. package/components/atoms/CenteredSkeleton/CenteredSkeleton.js +0 -19
  547. package/components/atoms/CenteredSkeleton/index.js +0 -1
  548. package/components/atoms/CustomIcons/CustomClose.js +0 -14
  549. package/components/atoms/CustomIcons/CustomDelete.js +0 -18
  550. package/components/atoms/CustomIcons/CustomTick.js +0 -14
  551. package/components/atoms/DateTimePicker/DateTimePicker.js +0 -68
  552. package/components/atoms/DateTimePicker/index.js +0 -1
  553. package/components/atoms/DateTimePicker/style.js +0 -31
  554. package/components/atoms/DisabledMoreIcon/DisabledMoreIcon.js +0 -29
  555. package/components/atoms/DisabledMoreIcon/index.js +0 -1
  556. package/components/atoms/DisabledMoreIcon/styles.js +0 -9
  557. package/components/atoms/HighlightedBackgroundText/HighlightedBackgroundText.js +0 -32
  558. package/components/atoms/HighlightedBackgroundText/index.js +0 -1
  559. package/components/atoms/HighlightedBackgroundText/style.js +0 -24
  560. package/components/atoms/HighlightedBackgroundText/tests/HighlightedBackgroundText.test.js +0 -21
  561. package/components/atoms/IllustrationWithTitleAndDesc/IllustrationWithTitleAndDesc.js +0 -44
  562. package/components/atoms/IllustrationWithTitleAndDesc/index.js +0 -1
  563. package/components/atoms/IllustrationWithTitleAndDesc/tests/IllustrationWithTitleAndDesc.test.js +0 -21
  564. package/components/atoms/IssuePromotionTooltip/IssuePromotionTooltip.js +0 -66
  565. package/components/atoms/IssuePromotionTooltip/index.js +0 -1
  566. package/components/atoms/LabelCustomisation/LabelCustomisation.js +0 -78
  567. package/components/atoms/LabelCustomisation/index.js +0 -1
  568. package/components/atoms/LabelCustomisation/style.js +0 -23
  569. package/components/atoms/LabelCustomisation/tests/LabelCustomisation.test.js +0 -67
  570. package/components/atoms/OptionWithTooltip/OptionWithTooltip.js +0 -35
  571. package/components/atoms/OptionWithTooltip/index.js +0 -1
  572. package/components/atoms/RenewalExpression/RenewalExpression.js +0 -72
  573. package/components/atoms/RenewalExpression/index.js +0 -1
  574. package/components/atoms/RenewalExpression/style.js +0 -47
  575. package/components/atoms/RewardCatalogTooltip/RewardCatalogTooltip.js +0 -106
  576. package/components/atoms/RewardCatalogTooltip/index.js +0 -1
  577. package/components/atoms/RoleBasedAuth/RoleBasedAuth.js +0 -28
  578. package/components/atoms/RoleBasedAuth/index.js +0 -1
  579. package/components/atoms/RoleBasedAuth/tests/RequireRoleBasedAuth.test.js +0 -55
  580. package/components/atoms/RoleBasedAuth/tests/mockData.js +0 -303
  581. package/components/atoms/Toaster/Toaster.js +0 -50
  582. package/components/atoms/Toaster/index.js +0 -1
  583. package/components/atoms/Toaster/style.js +0 -14
  584. package/components/atoms/Toaster/tests/Toastr.test.js +0 -32
  585. package/components/atoms/Toaster/toastrStyle.js +0 -44
  586. package/components/atoms/ToastrMessage/ToastrMessage.js +0 -68
  587. package/components/atoms/ToastrMessage/index.js +0 -1
  588. package/components/atoms/ToastrMessage/style.js +0 -38
  589. package/components/atoms/ToastrMessage/tests/ToastrMessageTimer.test.js +0 -60
  590. package/components/atoms/TrackerExpressionCondition/TrackerExpressionCondition.js +0 -118
  591. package/components/atoms/TrackerExpressionCondition/index.js +0 -1
  592. package/components/atoms/TrackerExpressionCondition/style.js +0 -38
  593. package/components/atoms/TrackerExpressionCondition/tests/TrackerExpressionCondition.test.js +0 -19
  594. package/components/atoms/VersioningNote/VersioningNote.js +0 -46
  595. package/components/atoms/VersioningNote/index.js +0 -1
  596. package/components/atoms/VersioningNote/style.js +0 -31
  597. package/components/atoms/VersioningNote/tests/VersioningNote.test.js +0 -27
  598. package/components/molecules/AccessDeniedTooltip/AccessDeniedTooltip.js +0 -34
  599. package/components/molecules/AccessDeniedTooltip/index.js +0 -1
  600. package/components/molecules/AccessDeniedTooltip/tests/AccessDeniedTooltip.test.js +0 -35
  601. package/components/molecules/AddActionConditionWorkflow/tests/AddActionConditionWorkflow.test.js +0 -16
  602. package/components/molecules/AddActionConditionWorkflow/tests/__snapshots__/AddActionConditionWorkflow.test.js.snap +0 -40
  603. package/components/molecules/AddMoreCard/tests/AddMoreCard.test.js +0 -23
  604. package/components/molecules/AddMoreCard/tests/__snapshots__/AddMoreCard.test.js.snap +0 -30
  605. package/components/molecules/AddPartnerPrograms/AddPartnerPrograms.js +0 -1012
  606. package/components/molecules/AddPartnerPrograms/constants.js +0 -2
  607. package/components/molecules/AddPartnerPrograms/index.js +0 -1
  608. package/components/molecules/AddPartnerPrograms/messages.js +0 -60
  609. package/components/molecules/AddPartnerPrograms/style.js +0 -53
  610. package/components/molecules/AddPartnerPrograms/tests/AddExternalPrograms.test.js +0 -493
  611. package/components/molecules/AddPartnerPrograms/tests/AddSupplementaryPrograms.test.js +0 -489
  612. package/components/molecules/AddPartnerPrograms/tests/mockData.js +0 -205
  613. package/components/molecules/AddPartnerPrograms/utils.js +0 -22
  614. package/components/molecules/AddPartnerProgramsBasicDetails/AddPartnerProgramsBasicDetails.js +0 -156
  615. package/components/molecules/AddPartnerProgramsBasicDetails/index.js +0 -1
  616. package/components/molecules/AddPartnerProgramsBasicDetails/messages.js +0 -53
  617. package/components/molecules/AddPartnerProgramsBasicDetails/style.js +0 -60
  618. package/components/molecules/AddPartnerProgramsBasicDetails/tests/AddSupplementaryBasicDetails.test.js +0 -77
  619. package/components/molecules/AddPartnerProgramsBasicDetails/utils.js +0 -116
  620. package/components/molecules/AddTierBanner/tests/AddTierBanner.test.js +0 -27
  621. package/components/molecules/AddTierBanner/tests/__snapshots__/AddTierBanner.test.js.snap +0 -25
  622. package/components/molecules/AddTierPrimaryInfo/tests/AddTierPrimaryInfo.test.js +0 -49
  623. package/components/molecules/AddTierPrimaryInfo/tests/__snapshots__/AddTierPrimaryInfo.test.js.snap +0 -132
  624. package/components/molecules/AddTrackersInfo/tests/AddTrackersInfo.test.js +0 -23
  625. package/components/molecules/AddTrackersInfo/tests/__snapshots__/AddTrackersInfo.test.js.snap +0 -103
  626. package/components/molecules/AdvanceSettingScrollContainer/tests/AdvanceSettingScrollContainer.test.js +0 -30
  627. package/components/molecules/AdvanceSettingScrollContainer/tests/__snapshots__/AdvanceSettingScrollContainer.test.js.snap +0 -82
  628. package/components/molecules/AlternateCurrencyWorkflowHeader/AlternateCurrencyWorkflowHeader.js +0 -114
  629. package/components/molecules/AlternateCurrencyWorkflowHeader/index.js +0 -1
  630. package/components/molecules/AlternateCurrencyWorkflowHeader/messages.js +0 -34
  631. package/components/molecules/AlternateCurrencyWorkflowHeader/style.js +0 -38
  632. package/components/molecules/AnyOrCustomPathBlock/AnyOrCustomPathBlock.js +0 -149
  633. package/components/molecules/AnyOrCustomPathBlock/index.js +0 -1
  634. package/components/molecules/AnyOrCustomPathBlock/style.js +0 -94
  635. package/components/molecules/BenefitsAndLimitsList/BenefitsAndLimitsList.js +0 -327
  636. package/components/molecules/BenefitsAndLimitsList/actions.js +0 -13
  637. package/components/molecules/BenefitsAndLimitsList/constants.js +0 -3
  638. package/components/molecules/BenefitsAndLimitsList/index.js +0 -1
  639. package/components/molecules/BenefitsAndLimitsList/messages.js +0 -56
  640. package/components/molecules/BenefitsAndLimitsList/reducer.js +0 -33
  641. package/components/molecules/BenefitsAndLimitsList/saga.js +0 -40
  642. package/components/molecules/BenefitsAndLimitsList/selectors.js +0 -26
  643. package/components/molecules/BenefitsAndLimitsList/style.js +0 -71
  644. package/components/molecules/BenefitsAndLimitsList/tests/BenefitsAndLimitsList.test.js +0 -124
  645. package/components/molecules/BenefitsAndLimitsList/tests/actions.test.js +0 -10
  646. package/components/molecules/BenefitsAndLimitsList/tests/mockData.js +0 -551
  647. package/components/molecules/BenefitsAndLimitsList/tests/reducer.test.js +0 -51
  648. package/components/molecules/BenefitsAndLimitsList/tests/saga.test.js +0 -62
  649. package/components/molecules/BenefitsAndLimitsList/tests/selectors.test.js +0 -41
  650. package/components/molecules/BenefitsAndLimitsList/utils.js +0 -51
  651. package/components/molecules/BenefitsAndLimitsPane/BenefitsAndLimitsPane.js +0 -120
  652. package/components/molecules/BenefitsAndLimitsPane/index.js +0 -1
  653. package/components/molecules/BenefitsAndLimitsPane/messages.js +0 -19
  654. package/components/molecules/BenefitsAndLimitsPane/style.js +0 -56
  655. package/components/molecules/BenefitsAndLimitsPane/tests/BenefitsAndLimitsPane.test.js +0 -47
  656. package/components/molecules/BenefitsAndLimitsPane/tests/mockData.js +0 -14
  657. package/components/molecules/BulkConfigPulishAlert/BulkConfigPulishAlert.js +0 -98
  658. package/components/molecules/BulkConfigPulishAlert/index.js +0 -1
  659. package/components/molecules/BulkConfigPulishAlert/messages.js +0 -28
  660. package/components/molecules/BulkConfigPulishAlert/style.js +0 -48
  661. package/components/molecules/BulkConfigPulishAlert/tests/BulkConfigPublishAlert.test.js +0 -57
  662. package/components/molecules/CapReportLink/CapReportLink.js +0 -52
  663. package/components/molecules/CapReportLink/index.js +0 -1
  664. package/components/molecules/CapReportLink/style.js +0 -29
  665. package/components/molecules/CapReportLink/tests/CapReport.test.js +0 -49
  666. package/components/molecules/CardsCommunication/tests/CardCommunication.test.js +0 -50
  667. package/components/molecules/CartLevelLimits/CartLevelLimits.js +0 -135
  668. package/components/molecules/CartLevelLimits/index.js +0 -1
  669. package/components/molecules/CartLevelLimits/style.js +0 -66
  670. package/components/molecules/CartLevelLimits/tests/CartLevelLimit.test.js +0 -62
  671. package/components/molecules/CollapsableHeaderContent/CollapsableHeaderContent.js +0 -69
  672. package/components/molecules/CollapsableHeaderContent/index.js +0 -1
  673. package/components/molecules/CollapsableHeaderContent/style.js +0 -51
  674. package/components/molecules/CollapsableHeaderContent/tests/CollapsableHeaderContent.test.js +0 -33
  675. package/components/molecules/CollapseWithMultiSelect/style.js +0 -9
  676. package/components/molecules/CollapseWithStore/messages.js +0 -68
  677. package/components/molecules/CollapseWithStore/style.js +0 -108
  678. package/components/molecules/CollapseWithStore/tests/CollapseWithStore.test.js +0 -30
  679. package/components/molecules/CollapseWithStore/tests/mockData.js +0 -72
  680. package/components/molecules/ColorPatch/tests/ColorPatch.test.js +0 -21
  681. package/components/molecules/ColorPatch/tests/__snapshots__/ColorPatch.test.js.snap +0 -5100
  682. package/components/molecules/ColorSelector/tests/ColorSelector.test.js +0 -62
  683. package/components/molecules/ConditionExpressionLayout/ConditionExpressionLayout.js +0 -103
  684. package/components/molecules/ConditionExpressionLayout/index.js +0 -1
  685. package/components/molecules/CreateActionButton/tests/CreateActionButton.test.js +0 -27
  686. package/components/molecules/CreateActionButton/tests/__snapshots__/CreateActionButton.test.js.snap +0 -57
  687. package/components/molecules/CreateCustomFieldPopover/CreateCustomFieldPopover.js +0 -236
  688. package/components/molecules/CreateCustomFieldPopover/index.js +0 -1
  689. package/components/molecules/CreateCustomFieldPopover/style.js +0 -55
  690. package/components/molecules/CreateCustomFieldPopover/tests/CreateCustomFieldPopover.test.js +0 -137
  691. package/components/molecules/CreateOfferInfo/tests/CreateOfferInfo.test.js +0 -23
  692. package/components/molecules/CreateOfferInfo/tests/__snapshots__/CreateOfferInfo.test.js.snap +0 -127
  693. package/components/molecules/CreateTracker/tests/CreateTracker.test.js +0 -426
  694. package/components/molecules/CreateTracker/tests/__snapshots__/actions.test.js.snap +0 -44
  695. package/components/molecules/CreateTracker/tests/__snapshots__/reducer.test.js.snap +0 -112
  696. package/components/molecules/CreateTracker/tests/actions.test.js +0 -19
  697. package/components/molecules/CreateTracker/tests/mockData.js +0 -876
  698. package/components/molecules/CreateTracker/tests/reducer.test.js +0 -164
  699. package/components/molecules/CreateTracker/tests/saga.test.js +0 -178
  700. package/components/molecules/CreateTracker/tests/selectors.test.js +0 -67
  701. package/components/molecules/CustomTree/messages.js +0 -20
  702. package/components/molecules/CustomTree/tests/CustomTree.test.js +0 -87
  703. package/components/molecules/CustomTree/tests/mocks/data.js +0 -50
  704. package/components/molecules/CustomTree/utils.js +0 -40
  705. package/components/molecules/CustomTreeHelper/CustomTreeHelper.js +0 -284
  706. package/components/molecules/CustomTreeHelper/constants.js +0 -20
  707. package/components/molecules/CustomTreeHelper/index.js +0 -1
  708. package/components/molecules/CustomTreeHelper/messages.js +0 -133
  709. package/components/molecules/CustomTreeHelper/style.js +0 -183
  710. package/components/molecules/CustomTreeHelper/tests/CustomTreeHelper.test.js +0 -474
  711. package/components/molecules/CustomTreeHelper/tests/mocks/data.js +0 -152
  712. package/components/molecules/CustomerLevelLimits/CustomerLevelLimits.js +0 -203
  713. package/components/molecules/CustomerLevelLimits/index.js +0 -1
  714. package/components/molecules/CustomerLevelLimits/messages.js +0 -81
  715. package/components/molecules/CustomerLevelLimits/style.js +0 -72
  716. package/components/molecules/CustomerLevelLimits/tests/CustomerLevelLimits.test.js +0 -69
  717. package/components/molecules/CustomerLevelLimits/tests/mockData.js +0 -189
  718. package/components/molecules/DateTimeMetaDataAttribute/DateTimeMetaDataAttribute.js +0 -143
  719. package/components/molecules/DateTimeMetaDataAttribute/index.js +0 -1
  720. package/components/molecules/DateTimeMetaDataAttribute/style.js +0 -17
  721. package/components/molecules/DelayCreatives/tests/DelayCreatives.test.js +0 -28
  722. package/components/molecules/DestinationMapper/DestinationMapper.js +0 -225
  723. package/components/molecules/DestinationMapper/index.js +0 -1
  724. package/components/molecules/DestinationMapper/messages.js +0 -59
  725. package/components/molecules/DestinationMapper/style.js +0 -125
  726. package/components/molecules/DestinationMapper/tests/DestinationMapper.test.js +0 -73
  727. package/components/molecules/DifferentDestinationPrograms/DifferentDestinationPrograms.js +0 -692
  728. package/components/molecules/DifferentDestinationPrograms/index.js +0 -1
  729. package/components/molecules/DifferentDestinationPrograms/messages.js +0 -90
  730. package/components/molecules/DifferentDestinationPrograms/style.js +0 -242
  731. package/components/molecules/DifferentDestinationPrograms/tests/DifferentDestinationPrograms.test.js +0 -195
  732. package/components/molecules/DifferentDestinationPrograms/tests/mockData.js +0 -256
  733. package/components/molecules/DifferentDestinationPrograms/utils.js +0 -197
  734. package/components/molecules/DividerWithOverlappedText/DividerWithOverlappedText.js +0 -48
  735. package/components/molecules/DividerWithOverlappedText/index.js +0 -1
  736. package/components/molecules/DividerWithOverlappedText/style.js +0 -16
  737. package/components/molecules/DoubleMetaDataAttribute/DoubleMetaDataAttribute.js +0 -92
  738. package/components/molecules/DoubleMetaDataAttribute/index.js +0 -1
  739. package/components/molecules/DoubleMetaDataAttribute/messages.js +0 -10
  740. package/components/molecules/DoubleMetaDataAttribute/style.js +0 -7
  741. package/components/molecules/DowngradeTier/style.js +0 -230
  742. package/components/molecules/DowngradeTier/tests/DowngradeTier.test.js +0 -274
  743. package/components/molecules/DowngradeTier/utils.js +0 -88
  744. package/components/molecules/EarnStrategyConditions/EarnStrategyConditions.js +0 -236
  745. package/components/molecules/EarnStrategyConditions/index.js +0 -1
  746. package/components/molecules/EarnStrategyConditions/messages.js +0 -42
  747. package/components/molecules/EarnStrategyConditions/style.js +0 -68
  748. package/components/molecules/EarnStrategyConditions/tests/EarnStrategyConditions.test.js +0 -64
  749. package/components/molecules/EarnStrategyConditions/tests/EarnStrategySameConditions.test.js +0 -102
  750. package/components/molecules/EmptyStateIllustration/tests/EmptyStateIllustration.test.js +0 -35
  751. package/components/molecules/ExpiryConditionSlideBox/ExpiryConditionSlideBox.js +0 -169
  752. package/components/molecules/ExpiryConditionSlideBox/constants.js +0 -4
  753. package/components/molecules/ExpiryConditionSlideBox/index.js +0 -1
  754. package/components/molecules/ExpiryConditionSlideBox/messages.js +0 -106
  755. package/components/molecules/ExpiryConditionSlideBox/style.js +0 -36
  756. package/components/molecules/ExpiryConditionSlideBox/tests/ExpiryConditionSlideBox.test.js +0 -42
  757. package/components/molecules/ExpiryReminder/ExpiryReminder.js +0 -229
  758. package/components/molecules/ExpiryReminder/index.js +0 -1
  759. package/components/molecules/ExpiryReminder/messages.js +0 -23
  760. package/components/molecules/ExpiryReminder/style.js +0 -61
  761. package/components/molecules/ExpiryReminder/tests/ExpiryReminder.test.js +0 -204
  762. package/components/molecules/HeaderWithSwitch/HeaderWithSwitch.js +0 -121
  763. package/components/molecules/HeaderWithSwitch/index.js +0 -1
  764. package/components/molecules/ImageUploadMolecule/UploadImageMolecule.js +0 -137
  765. package/components/molecules/ImageUploadMolecule/index.js +0 -1
  766. package/components/molecules/ImageUploadMolecule/messages.js +0 -26
  767. package/components/molecules/ImageUploadMolecule/style.js +0 -69
  768. package/components/molecules/ImageUploadMolecule/tests/UploadImageMolecule.test.js +0 -139
  769. package/components/molecules/InputWithPrefixSufixAndCommChannel/InputWithPrefixSufixAndCommChannel.js +0 -135
  770. package/components/molecules/InputWithPrefixSufixAndCommChannel/index.js +0 -1
  771. package/components/molecules/InputWithPrefixSufixAndCommChannel/messages.js +0 -11
  772. package/components/molecules/InputWithPrefixSufixAndCommChannel/style.js +0 -65
  773. package/components/molecules/InstructionList.js/InstructionList.js +0 -41
  774. package/components/molecules/InstructionList.js/index.js +0 -1
  775. package/components/molecules/InstructionList.js/style.js +0 -54
  776. package/components/molecules/IssueRewardsCustomFields/IssueRewardsCustomFields.js +0 -892
  777. package/components/molecules/IssueRewardsCustomFields/index.js +0 -1
  778. package/components/molecules/IssueRewardsCustomFields/messages.js +0 -108
  779. package/components/molecules/IssueRewardsCustomFields/style.js +0 -159
  780. package/components/molecules/IssueRewardsCustomFields/tests/IssueRewardsCustomFields.test.js +0 -212
  781. package/components/molecules/IssueRewardsCustomFields/tests/mockData.js +0 -164
  782. package/components/molecules/IssueRewardsCustomFields/tests/utils.test.js +0 -38
  783. package/components/molecules/IssueRewardsCustomFields/utils.js +0 -88
  784. package/components/molecules/LabelValueWithVerticalDivider/LabelValueWithVerticalDivider.js +0 -82
  785. package/components/molecules/LabelValueWithVerticalDivider/index.js +0 -1
  786. package/components/molecules/LabelValueWithVerticalDivider/style.js +0 -28
  787. package/components/molecules/LabelValueWithVerticalDivider/tests/LabelValueWithVerticalDivider.test.js +0 -46
  788. package/components/molecules/LabelValueWithVerticalDivider/tests/mockData.js +0 -14
  789. package/components/molecules/ListDragAndDrop/ListDragAndDrop.js +0 -103
  790. package/components/molecules/ListDragAndDrop/index.js +0 -1
  791. package/components/molecules/ListDragAndDrop/tests/ListDragAndDrop.test.js +0 -30
  792. package/components/molecules/NoTargetView/NoTargetView.js +0 -84
  793. package/components/molecules/NoTargetView/index.js +0 -1
  794. package/components/molecules/NoTargetView/style.js +0 -55
  795. package/components/molecules/NoTargetView/tests/NoTargetView.test.js +0 -53
  796. package/components/molecules/PageHeaderDescription/messages.js +0 -11
  797. package/components/molecules/PageHeaderDescription/tests/PageHeaderDescription_jest.test.js +0 -53
  798. package/components/molecules/PartnerProgramsConfigPane/PartnerProgramsConfigPane.js +0 -263
  799. package/components/molecules/PartnerProgramsConfigPane/constants.js +0 -2
  800. package/components/molecules/PartnerProgramsConfigPane/index.js +0 -1
  801. package/components/molecules/PartnerProgramsConfigPane/messages.js +0 -39
  802. package/components/molecules/PartnerProgramsConfigPane/style.js +0 -26
  803. package/components/molecules/PartnerProgramsConfigPane/tests/SupplementaryProgramsConfigPane.test.js +0 -26
  804. package/components/molecules/PartnerProgramsSettings/PartnerProgramsSettings.js +0 -266
  805. package/components/molecules/PartnerProgramsSettings/constants.js +0 -5
  806. package/components/molecules/PartnerProgramsSettings/index.js +0 -1
  807. package/components/molecules/PartnerProgramsSettings/messages.js +0 -57
  808. package/components/molecules/PartnerProgramsSettings/style.js +0 -72
  809. package/components/molecules/PartnerProgramsSettings/tests/SupplementaryProgramsSettings.test.js +0 -116
  810. package/components/molecules/PartnerProgramsSettings/tests/mockData.js +0 -42
  811. package/components/molecules/PartnerProgramsSettings/utils.js +0 -32
  812. package/components/molecules/PointsLimitContent/PointsLimitContent.js +0 -30
  813. package/components/molecules/PointsLimitContent/index.js +0 -1
  814. package/components/molecules/PointsTransferCollapseData/PointsTransferCollapseData.js +0 -805
  815. package/components/molecules/PointsTransferCollapseData/index.js +0 -1
  816. package/components/molecules/PointsTransferCollapseData/messages.js +0 -92
  817. package/components/molecules/PointsTransferCollapseData/stories/CollapseData.stories.js +0 -5
  818. package/components/molecules/PointsTransferCollapseData/style.js +0 -40
  819. package/components/molecules/PointsTransferCollapseData/tests/index.test.js +0 -680
  820. package/components/molecules/PointsTransferCollapseData/tests/mockData.js +0 -168
  821. package/components/molecules/PointsTransferSettings/PointsTransferSettings.js +0 -24
  822. package/components/molecules/PointsTransferSettings/index.js +0 -1
  823. package/components/molecules/PointsTransferSettings/messages.js +0 -16
  824. package/components/molecules/PointsTransferSettings/tests/index.test.js +0 -11
  825. package/components/molecules/ProgramName/messages.js +0 -20
  826. package/components/molecules/ProgramName/tests/ProgramName.test.js +0 -60
  827. package/components/molecules/PromotionCalendarLazyLoad/PromotionCalendarLazyLoad.js +0 -27
  828. package/components/molecules/PromotionCalendarLazyLoad/index.js +0 -1
  829. package/components/molecules/PromotionCalendarLazyLoad/style.js +0 -11
  830. package/components/molecules/PromotionCalendarLazyLoad/tests/PromotionCalendarLazyLoad.test.js +0 -16
  831. package/components/molecules/PromotionCalendarPopoverContent/PromotionCalendarPopoverContent.js +0 -157
  832. package/components/molecules/PromotionCalendarPopoverContent/index.js +0 -1
  833. package/components/molecules/PromotionCalendarPopoverContent/messages.js +0 -23
  834. package/components/molecules/PromotionCalendarPopoverContent/tests/PromotionCalendarPopoverContent.test.js +0 -52
  835. package/components/molecules/PromotionCalendarPopoverContent/tests/mockData.js +0 -199
  836. package/components/molecules/PromotionListLazyLoad/PromotionListLazyLoad.js +0 -24
  837. package/components/molecules/PromotionListLazyLoad/index.js +0 -1
  838. package/components/molecules/PromotionListLazyLoad/style.js +0 -13
  839. package/components/molecules/PromotionSettingsContent/PromotionSettingsContent.js +0 -46
  840. package/components/molecules/PromotionSettingsContent/index.js +0 -1
  841. package/components/molecules/PromotionsTableHeader/PromotionsTableHeader.js +0 -303
  842. package/components/molecules/PromotionsTableHeader/index.js +0 -1
  843. package/components/molecules/PromotionsTableHeader/style.js +0 -178
  844. package/components/molecules/PromotionsTableHeader/tests/PromotionsTableHeader.test.js +0 -126
  845. package/components/molecules/PromotionsTableHeader/tests/mockData.js +0 -81
  846. package/components/molecules/PublishAndActivateModal/PublishAndActivateModal.js +0 -222
  847. package/components/molecules/PublishAndActivateModal/index.js +0 -1
  848. package/components/molecules/PublishAndActivateModal/messages.js +0 -33
  849. package/components/molecules/PublishAndActivateModal/style.js +0 -53
  850. package/components/molecules/PublishAndActivateModal/tests/PublishAndActivateModal.test.js +0 -63
  851. package/components/molecules/RenewalTierV2/RenewalTierV2.js +0 -503
  852. package/components/molecules/RenewalTierV2/constants.js +0 -9
  853. package/components/molecules/RenewalTierV2/index.js +0 -1
  854. package/components/molecules/RenewalTierV2/messages.js +0 -66
  855. package/components/molecules/RenewalTierV2/tests/RenewalTierV2.test.js +0 -49
  856. package/components/molecules/RenewalTierV2/utils.js +0 -115
  857. package/components/molecules/ReplaceExistingDraftNotification/ReplaceExistingDraftNotification.js +0 -161
  858. package/components/molecules/ReplaceExistingDraftNotification/index.js +0 -1
  859. package/components/molecules/ReplaceExistingDraftNotification/messages.js +0 -36
  860. package/components/molecules/ReplaceExistingDraftNotification/style.js +0 -87
  861. package/components/molecules/ReplaceExistingDraftNotification/tests/ReplaceExistingDraftNotification.test.js +0 -83
  862. package/components/molecules/ReplaceExistingDraftNotification/tests/mockData.js +0 -73
  863. package/components/molecules/RestoreModal/RestoreModal.js +0 -159
  864. package/components/molecules/RestoreModal/index.js +0 -1
  865. package/components/molecules/RestoreModal/messages.js +0 -39
  866. package/components/molecules/RestoreModal/style.js +0 -74
  867. package/components/molecules/RestoreModal/tests/RestoreModal.test.js +0 -57
  868. package/components/molecules/RewardCatalogViewTitle/RewardCatalogViewTitle.js +0 -66
  869. package/components/molecules/RewardCatalogViewTitle/index.js +0 -1
  870. package/components/molecules/RootConfirmModal/RootConfirmModal.js +0 -68
  871. package/components/molecules/RootConfirmModal/index.js +0 -1
  872. package/components/molecules/SameDestinationPrograms/SameDestinationPrograms.js +0 -583
  873. package/components/molecules/SameDestinationPrograms/index.js +0 -1
  874. package/components/molecules/SameDestinationPrograms/messages.js +0 -67
  875. package/components/molecules/SameDestinationPrograms/style.js +0 -224
  876. package/components/molecules/SameDestinationPrograms/tests/SameDestinationPrograms.test.js +0 -197
  877. package/components/molecules/SenderInformation/tests/SenderInformation.test.js +0 -34
  878. package/components/molecules/SenderSlideBox/tests/SenderSlideBox.test.js +0 -48
  879. package/components/molecules/StepFunctionEarnStrategy/StepFunctionEarnStrategy.js +0 -153
  880. package/components/molecules/StepFunctionEarnStrategy/index.js +0 -1
  881. package/components/molecules/StepFunctionEarnStrategy/messages.js +0 -33
  882. package/components/molecules/StepFunctionEarnStrategy/style.js +0 -56
  883. package/components/molecules/StepFunctionEarnStrategy/tests/StepFunctionEarnStrategy.test.js +0 -113
  884. package/components/molecules/StepFunctionEarnStrategy/tests/mockData.js +0 -29
  885. package/components/molecules/StringMetaDataAttribute/StringMetaDataAttribute.js +0 -86
  886. package/components/molecules/StringMetaDataAttribute/index.js +0 -1
  887. package/components/molecules/StringMetaDataAttribute/messages.js +0 -10
  888. package/components/molecules/StringMetaDataAttribute/style.js +0 -3
  889. package/components/molecules/SupplementaryExpiryReminder/SupplementaryExpiryReminder.js +0 -171
  890. package/components/molecules/SupplementaryExpiryReminder/index.js +0 -1
  891. package/components/molecules/SupplementaryExpiryReminder/messages.js +0 -19
  892. package/components/molecules/SupplementaryExpiryReminder/style.js +0 -16
  893. package/components/molecules/SupplementaryExpiryReminder/tests/SupplementaryExpiryReminder.test.js +0 -77
  894. package/components/molecules/SupplementaryExpiryReminder/tests/SupplementaryViewExpiryReminder.test.js +0 -58
  895. package/components/molecules/SupplementaryExpiryReminder/utils.js +0 -7
  896. package/components/molecules/Switch/Switch.js +0 -113
  897. package/components/molecules/Switch/index.js +0 -1
  898. package/components/molecules/Switch/style.js +0 -30
  899. package/components/molecules/Switch/tests/Switch.test.js +0 -26
  900. package/components/molecules/Switch/tests/mockData.js +0 -9
  901. package/components/molecules/SwitchWithDivider/tests/SwitchWithDivider.test.js +0 -26
  902. package/components/molecules/SwitchWithDivider/tests/mockData.js +0 -9
  903. package/components/molecules/TableOption/constants.js +0 -1
  904. package/components/molecules/TableOption/style.js +0 -19
  905. package/components/molecules/TierCard/tests/BlockContent.test.js +0 -37
  906. package/components/molecules/TierCard/tests/CardBody.test.js +0 -497
  907. package/components/molecules/TierCard/tests/CardContent.test.js +0 -36
  908. package/components/molecules/TierCard/tests/mockData.js +0 -21
  909. package/components/molecules/UpgradeTier/tests/UpgradeTier.test.js +0 -48
  910. package/components/molecules/UpgradeTierV2/UpgradeTierV2.js +0 -912
  911. package/components/molecules/UpgradeTierV2/constants.js +0 -5
  912. package/components/molecules/UpgradeTierV2/index.js +0 -1
  913. package/components/molecules/UpgradeTierV2/messages.js +0 -95
  914. package/components/molecules/UpgradeTierV2/tests/UpgradeTierV2.test.js +0 -350
  915. package/components/molecules/UpgradeTierV2/tests/mockData.js +0 -840
  916. package/components/molecules/UpgradeTierV2/tests/utils.test.js +0 -299
  917. package/components/molecules/UpgradeTierV2/utils.js +0 -323
  918. package/components/molecules/UpgradeTrackerTierV2/UpgradeTrackerTierV2.js +0 -480
  919. package/components/molecules/UpgradeTrackerTierV2/index.js +0 -1
  920. package/components/molecules/UpgradeTrackerTierV2/style.js +0 -53
  921. package/components/molecules/UpgradeTrackerTierV2/tests/UpgradeTrackerTierV2.test.js +0 -276
  922. package/components/molecules/UpgradeTrackerTierV2/tests/mockData.js +0 -696
  923. package/components/molecules/VersioningPublishModal/VersioningPublishModal.js +0 -134
  924. package/components/molecules/VersioningPublishModal/index.js +0 -1
  925. package/components/molecules/VersioningPublishModal/messages.js +0 -39
  926. package/components/molecules/VersioningPublishModal/style.js +0 -41
  927. package/components/molecules/VersioningPublishModal/tests/VersioningPublishModal.test.js +0 -89
  928. package/components/organisms/ActionExpression/ActionExpression.js +0 -357
  929. package/components/organisms/ActionExpression/actions.js +0 -12
  930. package/components/organisms/ActionExpression/constants.js +0 -25
  931. package/components/organisms/ActionExpression/index.js +0 -1
  932. package/components/organisms/ActionExpression/messages.js +0 -17
  933. package/components/organisms/ActionExpression/reducer.js +0 -112
  934. package/components/organisms/ActionExpression/saga.js +0 -63
  935. package/components/organisms/ActionExpression/selectors.js +0 -13
  936. package/components/organisms/ActionExpression/style.js +0 -126
  937. package/components/organisms/ActionExpression/tests/ActionExpression1.test.js +0 -262
  938. package/components/organisms/ActionExpression/tests/__snapshots__/ActionExpression.test.js.snap +0 -170
  939. package/components/organisms/ActionExpression/tests/actions.test.js +0 -24
  940. package/components/organisms/ActionExpression/tests/mockData.js +0 -50
  941. package/components/organisms/ActionExpression/tests/reducer.test.js +0 -124
  942. package/components/organisms/ActionExpression/tests/saga.test.js +0 -144
  943. package/components/organisms/ActionExpression/tests/selectors.test.js +0 -18
  944. package/components/organisms/ActionExpression/tests/utils.test.js +0 -49
  945. package/components/organisms/ActionExpression/utils.js +0 -50
  946. package/components/organisms/ActivityRewardCurrencyCard/ActivityRewardCurrencyCard.js +0 -414
  947. package/components/organisms/ActivityRewardCurrencyCard/actions.js +0 -21
  948. package/components/organisms/ActivityRewardCurrencyCard/constants.js +0 -7
  949. package/components/organisms/ActivityRewardCurrencyCard/index.js +0 -1
  950. package/components/organisms/ActivityRewardCurrencyCard/messages.js +0 -48
  951. package/components/organisms/ActivityRewardCurrencyCard/reducer.js +0 -48
  952. package/components/organisms/ActivityRewardCurrencyCard/saga.js +0 -65
  953. package/components/organisms/ActivityRewardCurrencyCard/selectors.js +0 -12
  954. package/components/organisms/ActivityRewardCurrencyCard/style.js +0 -85
  955. package/components/organisms/ActivityRewardCurrencyCard/tests/actions.test.js +0 -18
  956. package/components/organisms/ActivityRewardCurrencyCard/tests/activityRewardCurrencyLimit.test.js +0 -93
  957. package/components/organisms/ActivityRewardCurrencyCard/tests/noTargetGroups.test.js +0 -71
  958. package/components/organisms/ActivityRewardCurrencyCard/tests/reducer.test.js +0 -93
  959. package/components/organisms/ActivityRewardCurrencyCard/tests/saga.test.js +0 -140
  960. package/components/organisms/ActivityRewardCurrencyCard/tests/selectors.test.js +0 -21
  961. package/components/organisms/ActivityRewardSlider/ConfirmEditModal.js +0 -86
  962. package/components/organisms/ActivityRewardSlider/actions.js +0 -42
  963. package/components/organisms/ActivityRewardSlider/activityRewardSlider.js +0 -1135
  964. package/components/organisms/ActivityRewardSlider/constants.js +0 -77
  965. package/components/organisms/ActivityRewardSlider/context.js +0 -7
  966. package/components/organisms/ActivityRewardSlider/index.js +0 -1
  967. package/components/organisms/ActivityRewardSlider/messages.js +0 -203
  968. package/components/organisms/ActivityRewardSlider/reducer.js +0 -43
  969. package/components/organisms/ActivityRewardSlider/saga.js +0 -126
  970. package/components/organisms/ActivityRewardSlider/selectors.js +0 -29
  971. package/components/organisms/ActivityRewardSlider/style.js +0 -90
  972. package/components/organisms/ActivityRewardSlider/tests/actions.test.js +0 -20
  973. package/components/organisms/ActivityRewardSlider/tests/activityRewardSlider.test.js +0 -163
  974. package/components/organisms/ActivityRewardSlider/tests/activityRewardSliderEmpty.test.js +0 -92
  975. package/components/organisms/ActivityRewardSlider/tests/activityRewardSliderRevamp.test.js +0 -292
  976. package/components/organisms/ActivityRewardSlider/tests/cartLevelLimits.test.js +0 -91
  977. package/components/organisms/ActivityRewardSlider/tests/mockData.js +0 -528
  978. package/components/organisms/ActivityRewardSlider/tests/noTargetView.test.js +0 -90
  979. package/components/organisms/ActivityRewardSlider/tests/reducer.test.js +0 -90
  980. package/components/organisms/ActivityRewardSlider/tests/saga.test.js +0 -363
  981. package/components/organisms/ActivityRewardSlider/tests/selector.test.js +0 -21
  982. package/components/organisms/ActivityRewardSlider/tests/utils.test.js +0 -188
  983. package/components/organisms/ActivityRewardSlider/utils.js +0 -43
  984. package/components/organisms/ActivityRewardSliderV1/actions.js +0 -14
  985. package/components/organisms/ActivityRewardSliderV1/activityRewardSliderV1.js +0 -316
  986. package/components/organisms/ActivityRewardSliderV1/constants.js +0 -27
  987. package/components/organisms/ActivityRewardSliderV1/context.js +0 -7
  988. package/components/organisms/ActivityRewardSliderV1/index.js +0 -1
  989. package/components/organisms/ActivityRewardSliderV1/messages.js +0 -19
  990. package/components/organisms/ActivityRewardSliderV1/reducer.js +0 -29
  991. package/components/organisms/ActivityRewardSliderV1/saga.js +0 -43
  992. package/components/organisms/ActivityRewardSliderV1/selectors.js +0 -12
  993. package/components/organisms/ActivityRewardSliderV1/style.js +0 -25
  994. package/components/organisms/ActivityRewardSliderV1/tests/actions.test.js +0 -12
  995. package/components/organisms/ActivityRewardSliderV1/tests/activityRewardSliderEmpty.test.js +0 -92
  996. package/components/organisms/ActivityRewardSliderV1/tests/activityRewardSliderV1.test.js +0 -271
  997. package/components/organisms/ActivityRewardSliderV1/tests/reducer.test.js +0 -53
  998. package/components/organisms/ActivityRewardSliderV1/tests/saga.test.js +0 -78
  999. package/components/organisms/ActivityRewardSliderV1/tests/selector.test.js +0 -21
  1000. package/components/organisms/AddEarnCondition/context.js +0 -7
  1001. package/components/organisms/AddEarnCondition/tests/AddEarnCondition.test.js +0 -482
  1002. package/components/organisms/AddEarnCondition/tests/actions.test.js +0 -23
  1003. package/components/organisms/AddEarnCondition/tests/mockData.js +0 -107
  1004. package/components/organisms/AddEarnCondition/tests/saga.test.js +0 -156
  1005. package/components/organisms/AddPaymentMethod/tests/AddPaymentMethod.test.js +0 -20
  1006. package/components/organisms/AddPointsAllocationLimitDetails/AddPointsAllocationLimitDetails.js +0 -1629
  1007. package/components/organisms/AddPointsAllocationLimitDetails/constants.js +0 -37
  1008. package/components/organisms/AddPointsAllocationLimitDetails/index.js +0 -1
  1009. package/components/organisms/AddPointsAllocationLimitDetails/messages.js +0 -364
  1010. package/components/organisms/AddPointsAllocationLimitDetails/style.js +0 -428
  1011. package/components/organisms/AddPointsAllocationLimitDetails/tests/AddPointsAllocationLimitDetails.test.js +0 -611
  1012. package/components/organisms/AddPointsAllocationLimitDetails/tests/actions.test.js +0 -53
  1013. package/components/organisms/AddPointsAllocationLimitDetails/tests/mockData.js +0 -38
  1014. package/components/organisms/AddPointsAllocationLimitDetails/tests/mocks/data.js +0 -76
  1015. package/components/organisms/AddPointsAllocationLimitDetails/tests/reducer.test.js +0 -223
  1016. package/components/organisms/AddPointsAllocationLimitDetails/tests/saga.test.js +0 -275
  1017. package/components/organisms/AddPointsAllocationLimitDetails/tests/selectors.test.js +0 -60
  1018. package/components/organisms/AddPointsAllocationLimitDetails/utils.js +0 -27
  1019. package/components/organisms/AddPointsAllocationLimitSlider/AddPointsAllocationLimitSlider.js +0 -596
  1020. package/components/organisms/AddPointsAllocationLimitSlider/constants.js +0 -40
  1021. package/components/organisms/AddPointsAllocationLimitSlider/index.js +0 -1
  1022. package/components/organisms/AddPointsAllocationLimitSlider/messages.js +0 -44
  1023. package/components/organisms/AddPointsAllocationLimitSlider/style.js +0 -63
  1024. package/components/organisms/AddPointsAllocationLimitSlider/tests/AddPointsAllocationLimitSlider.test.js +0 -274
  1025. package/components/organisms/AddPointsAllocationLimitSlider/tests/mockData.js +0 -533
  1026. package/components/organisms/AddPointsAllocationLimitSlider/tests/utils.test.js +0 -52
  1027. package/components/organisms/AddPointsAllocationLimitSlider/utils.js +0 -64
  1028. package/components/organisms/AddPointsFilterTransaction/AddPointsFilterTransaction.js +0 -577
  1029. package/components/organisms/AddPointsFilterTransaction/constants.js +0 -15
  1030. package/components/organisms/AddPointsFilterTransaction/index.js +0 -1
  1031. package/components/organisms/AddPointsFilterTransaction/messages.js +0 -45
  1032. package/components/organisms/AddPointsFilterTransaction/style.js +0 -97
  1033. package/components/organisms/AddPointsFilterTransaction/tests/AddPointsFilterTransaction.test.js +0 -429
  1034. package/components/organisms/AddPointsFilterTransaction/tests/mockData.js +0 -148
  1035. package/components/organisms/AddTier/tests/AddTier.test.js +0 -92
  1036. package/components/organisms/AddTier/tests/AddTier1.test.js +0 -268
  1037. package/components/organisms/AddTier/tests/mocks/data.js +0 -454
  1038. package/components/organisms/AddTier/tests/saga.test.js +0 -199
  1039. package/components/organisms/AddTier/tests/utils.test.js +0 -17
  1040. package/components/organisms/AdvancedOption/actions.js +0 -39
  1041. package/components/organisms/AdvancedOption/reducer.js +0 -73
  1042. package/components/organisms/AdvancedOption/saga.js +0 -113
  1043. package/components/organisms/AdvancedOption/tests/AdvancedOption.test.js +0 -128
  1044. package/components/organisms/AdvancedOption/tests/reducer.test.js +0 -191
  1045. package/components/organisms/AdvancedOption/tests/saga.test.js +0 -248
  1046. package/components/organisms/AllocationPointWorkflowAction/tests/AllocationPointWorkflowAction.test.js +0 -343
  1047. package/components/organisms/AlternateCurrencyList/AlternateCurrencyList.js +0 -670
  1048. package/components/organisms/AlternateCurrencyList/constants.js +0 -53
  1049. package/components/organisms/AlternateCurrencyList/index.js +0 -1
  1050. package/components/organisms/AlternateCurrencyList/messages.js +0 -74
  1051. package/components/organisms/AlternateCurrencyList/style.js +0 -292
  1052. package/components/organisms/AlternateCurrencyList/tests/AlternateCurrencyList.test.js +0 -99
  1053. package/components/organisms/AlternateCurrencyList/tests/mockData.js +0 -285
  1054. package/components/organisms/AlternateCurrencyList/utils.js +0 -42
  1055. package/components/organisms/AudienceList/AudienceList.js +0 -621
  1056. package/components/organisms/AudienceList/AudienceListContainer.js +0 -244
  1057. package/components/organisms/AudienceList/actions.js +0 -23
  1058. package/components/organisms/AudienceList/constants.js +0 -42
  1059. package/components/organisms/AudienceList/index.js +0 -1
  1060. package/components/organisms/AudienceList/messages.js +0 -100
  1061. package/components/organisms/AudienceList/reducer.js +0 -69
  1062. package/components/organisms/AudienceList/saga.js +0 -99
  1063. package/components/organisms/AudienceList/selector.js +0 -26
  1064. package/components/organisms/AudienceList/styles.js +0 -366
  1065. package/components/organisms/AudienceList/tests/AudienceList.test.js +0 -202
  1066. package/components/organisms/AudienceList/tests/AudienceListContainer.test.js +0 -159
  1067. package/components/organisms/AudienceList/tests/actions.test.js +0 -51
  1068. package/components/organisms/AudienceList/tests/mockData.js +0 -362
  1069. package/components/organisms/AudienceList/tests/reducer.test.js +0 -172
  1070. package/components/organisms/AudienceList/tests/saga.test.js +0 -240
  1071. package/components/organisms/AudienceList/tests/selector.test.js +0 -35
  1072. package/components/organisms/AwardPointsConfig/tests/AwardPointsConfig.test.js +0 -304
  1073. package/components/organisms/AwardPointsConfig/tests/CapVirtualSelect.test.js +0 -83
  1074. package/components/organisms/AwardPointsConfig/tests/mockData.js +0 -285
  1075. package/components/organisms/AwardRefereePointsWorkflowAction/tests/AwardRefereePointsWorkflowAction.test.js +0 -130
  1076. package/components/organisms/AwardReferrerPointsWorkflowAction/tests/AwardReferrerPointsWorkflowAction.test.js +0 -130
  1077. package/components/organisms/BulkConfigurationsDetail/BulkConfigurationsDetail.js +0 -689
  1078. package/components/organisms/BulkConfigurationsDetail/actions.js +0 -31
  1079. package/components/organisms/BulkConfigurationsDetail/constants.js +0 -34
  1080. package/components/organisms/BulkConfigurationsDetail/index.js +0 -1
  1081. package/components/organisms/BulkConfigurationsDetail/messages.js +0 -68
  1082. package/components/organisms/BulkConfigurationsDetail/mocks/data.js +0 -531
  1083. package/components/organisms/BulkConfigurationsDetail/reducer.js +0 -68
  1084. package/components/organisms/BulkConfigurationsDetail/saga.js +0 -86
  1085. package/components/organisms/BulkConfigurationsDetail/selectors.js +0 -26
  1086. package/components/organisms/BulkConfigurationsDetail/style.js +0 -197
  1087. package/components/organisms/BulkConfigurationsDetail/tests/BulkConfigurationsDetail.test.js +0 -572
  1088. package/components/organisms/BulkConfigurationsDetail/tests/actions.test.js +0 -52
  1089. package/components/organisms/BulkConfigurationsDetail/tests/reducer.test.js +0 -236
  1090. package/components/organisms/BulkConfigurationsDetail/tests/saga.test.js +0 -197
  1091. package/components/organisms/BulkConfigurationsDetail/tests/selectors.test.js +0 -42
  1092. package/components/organisms/BulkConfigurationsDetail/utils.js +0 -540
  1093. package/components/organisms/CappingSlidebox/tests/CappingSlidebox.test.js +0 -659
  1094. package/components/organisms/CappingSlidebox/tests/TrackerCapping.test.js +0 -183
  1095. package/components/organisms/ChangeLog/ChangeLog.js +0 -324
  1096. package/components/organisms/ChangeLog/index.js +0 -1
  1097. package/components/organisms/ChangeLog/messages.js +0 -36
  1098. package/components/organisms/ChangeLog/style.js +0 -24
  1099. package/components/organisms/ChangeTierPartnerProgramWorkflowAction/ChangeTierPartnerProgramWorkflowAction.js +0 -330
  1100. package/components/organisms/ChangeTierPartnerProgramWorkflowAction/constants.js +0 -17
  1101. package/components/organisms/ChangeTierPartnerProgramWorkflowAction/index.js +0 -1
  1102. package/components/organisms/ChangeTierPartnerProgramWorkflowAction/messages.js +0 -44
  1103. package/components/organisms/ChangeTierPartnerProgramWorkflowAction/style.js +0 -32
  1104. package/components/organisms/ChangeTierPartnerProgramWorkflowAction/tests/ChangeTierPartnerProgramWorkflowAction.test.js +0 -148
  1105. package/components/organisms/ChangeTierPartnerProgramWorkflowAction/tests/mockData.js +0 -29
  1106. package/components/organisms/Communication/Loadable.js +0 -7
  1107. package/components/organisms/Communication/tests/mockData.js +0 -146
  1108. package/components/organisms/CommunicationAdvancedOption/tests/mocks/data.js +0 -14
  1109. package/components/organisms/CommunicationAdvancedOption/tests/saga.test.js +0 -87
  1110. package/components/organisms/CommunicationStrategies/tests/mocks/data.js +0 -14
  1111. package/components/organisms/CommunicationStrategies/tests/saga.test.js +0 -157
  1112. package/components/organisms/ConfigureProgramSteps/tests/ConfigureProgramSteps.test.js +0 -109
  1113. package/components/organisms/ConfigureStrategies/tests/ConfigureStrategies.test.js +0 -363
  1114. package/components/organisms/ConfigureStrategies/tests/mocks/data.js +0 -14
  1115. package/components/organisms/ConfigureStrategies/tests/saga.test.js +0 -87
  1116. package/components/organisms/ConfigureTrackers/messages.js +0 -10
  1117. package/components/organisms/ConfigureWorkflows/Loadable.js +0 -7
  1118. package/components/organisms/ConfigureWorkflows/PreviewBulkConfiguration.js +0 -131
  1119. package/components/organisms/ConfigureWorkflows/context.js +0 -7
  1120. package/components/organisms/ConfigureWorkflows/tests/ConfigureWorkflows.test.js +0 -210
  1121. package/components/organisms/ConfigureWorkflows/tests/PreviewBulkConfiguration.test.js +0 -46
  1122. package/components/organisms/ConfigureWorkflows/tests/WorkflowActions.test.js +0 -105
  1123. package/components/organisms/ConfigureWorkflows/tests/WorkflowConfigurationSection.test.js +0 -791
  1124. package/components/organisms/ConfigureWorkflows/tests/WorkflowConfigurationSectionView.test.js +0 -342
  1125. package/components/organisms/ConfigureWorkflows/tests/__snapshots__/actions.test.js.snap +0 -15
  1126. package/components/organisms/ConfigureWorkflows/tests/__snapshots__/reducer.test.js.snap +0 -8993
  1127. package/components/organisms/ConfigureWorkflows/tests/actions.test.js +0 -405
  1128. package/components/organisms/ConfigureWorkflows/tests/mockData.js +0 -7161
  1129. package/components/organisms/ConfigureWorkflows/tests/mocks/data.js +0 -171
  1130. package/components/organisms/ConfigureWorkflows/tests/mocks/rulesetsData.js +0 -637
  1131. package/components/organisms/ConfigureWorkflows/tests/reducer.test.js +0 -1640
  1132. package/components/organisms/ConfigureWorkflows/tests/saga.test.js +0 -2543
  1133. package/components/organisms/ConfigureWorkflows/tests/selectors.test.js +0 -67
  1134. package/components/organisms/ConfigureWorkflows/tests/utils.test.js +0 -442
  1135. package/components/organisms/CouponSlidebox/tests/CouponSlidebox.test.js +0 -20
  1136. package/components/organisms/Coupons/Loadable.js +0 -5
  1137. package/components/organisms/Coupons/tests/mockdata.js +0 -2842
  1138. package/components/organisms/CreateAlternateCurrency/CreateAlternateCurrency.js +0 -821
  1139. package/components/organisms/CreateAlternateCurrency/actions.js +0 -12
  1140. package/components/organisms/CreateAlternateCurrency/constants.js +0 -7
  1141. package/components/organisms/CreateAlternateCurrency/index.js +0 -1
  1142. package/components/organisms/CreateAlternateCurrency/messages.js +0 -177
  1143. package/components/organisms/CreateAlternateCurrency/reducer.js +0 -34
  1144. package/components/organisms/CreateAlternateCurrency/saga.js +0 -41
  1145. package/components/organisms/CreateAlternateCurrency/selectors.js +0 -17
  1146. package/components/organisms/CreateAlternateCurrency/style.js +0 -168
  1147. package/components/organisms/CreateAlternateCurrency/tests/CreateAlternateCurrency.test.js +0 -381
  1148. package/components/organisms/CreateAlternateCurrency/tests/actions.test.js +0 -29
  1149. package/components/organisms/CreateAlternateCurrency/tests/mockData.js +0 -208
  1150. package/components/organisms/CreateAlternateCurrency/tests/reducer.test.js +0 -70
  1151. package/components/organisms/CreateAlternateCurrency/tests/saga.test.js +0 -103
  1152. package/components/organisms/CreateAlternateCurrency/tests/selectors.test.js +0 -32
  1153. package/components/organisms/CreateAlternateCurrency/utils.js +0 -45
  1154. package/components/organisms/CreateBulkConfigForm/CreateBulkConfigForm.js +0 -56
  1155. package/components/organisms/CreateBulkConfigForm/index.js +0 -1
  1156. package/components/organisms/CreateBulkConfigForm/messages.js +0 -18
  1157. package/components/organisms/CreateBulkConfigForm/style.js +0 -35
  1158. package/components/organisms/CreateBulkConfigForm/tests/CreateBulkConfigForm.test.js +0 -35
  1159. package/components/organisms/CreateProgram/tests/mocks/initialState.js +0 -4
  1160. package/components/organisms/CreateProgramIllustration/tests/CreateProgramIllustration.test.js +0 -56
  1161. package/components/organisms/CreatePromotionForm/CreatePromotionForm.js +0 -879
  1162. package/components/organisms/CreatePromotionForm/index.js +0 -1
  1163. package/components/organisms/CreatePromotionForm/messages.js +0 -110
  1164. package/components/organisms/CreatePromotionForm/style.js +0 -253
  1165. package/components/organisms/CreatePromotionForm/tests/CreatePromotionForm.test.js +0 -484
  1166. package/components/organisms/CreatePromotionForm/tests/mockData.js +0 -130
  1167. package/components/organisms/CreatePromotionForm/tests/utils.test.js +0 -38
  1168. package/components/organisms/CreatePromotionForm/utils.js +0 -38
  1169. package/components/organisms/CreateTender/tests/CreateTender.test.js +0 -102
  1170. package/components/organisms/CreateTender/tests/mockData.js +0 -489
  1171. package/components/organisms/CreateTender/tests/mocks/data.js +0 -16
  1172. package/components/organisms/CreateTender/tests/saga.test.js +0 -123
  1173. package/components/organisms/CreateTier/tests/mocks/data.js +0 -15
  1174. package/components/organisms/CreateTier/tests/saga.test.js +0 -136
  1175. package/components/organisms/Creatives/mockdata.js +0 -222
  1176. package/components/organisms/Creatives/tests/Creatives.test.js +0 -128
  1177. package/components/organisms/Creatives/tests/__snapshots__/index.test.js.snap +0 -217
  1178. package/components/organisms/CustomFieldSettings/CustomFieldSettings.js +0 -244
  1179. package/components/organisms/CustomFieldSettings/actions.js +0 -12
  1180. package/components/organisms/CustomFieldSettings/constants.js +0 -12
  1181. package/components/organisms/CustomFieldSettings/index.js +0 -1
  1182. package/components/organisms/CustomFieldSettings/message.js +0 -30
  1183. package/components/organisms/CustomFieldSettings/reducer.js +0 -43
  1184. package/components/organisms/CustomFieldSettings/saga.js +0 -70
  1185. package/components/organisms/CustomFieldSettings/selectors.js +0 -14
  1186. package/components/organisms/CustomFieldSettings/style.js +0 -44
  1187. package/components/organisms/CustomFieldSettings/tests/CustomFieldSettings.test.js +0 -269
  1188. package/components/organisms/CustomFieldSettings/tests/actions.test.js +0 -31
  1189. package/components/organisms/CustomFieldSettings/tests/mockData.js +0 -56
  1190. package/components/organisms/CustomFieldSettings/tests/mocks/data.js +0 -14
  1191. package/components/organisms/CustomFieldSettings/tests/reducer.test.js +0 -102
  1192. package/components/organisms/CustomFieldSettings/tests/saga.test.js +0 -193
  1193. package/components/organisms/CustomFieldSettings/tests/selectors.test.js +0 -35
  1194. package/components/organisms/CustomerActivity/tests/CustomerActivity.test.js +0 -30
  1195. package/components/organisms/CustomerActivity/tests/mockData.js +0 -149
  1196. package/components/organisms/CustomerStatusLabelWorkflowActions/CustomerStatusLabelWorkflowAction.js +0 -250
  1197. package/components/organisms/CustomerStatusLabelWorkflowActions/actions.js +0 -5
  1198. package/components/organisms/CustomerStatusLabelWorkflowActions/constants.js +0 -25
  1199. package/components/organisms/CustomerStatusLabelWorkflowActions/index.js +0 -1
  1200. package/components/organisms/CustomerStatusLabelWorkflowActions/messages.js +0 -50
  1201. package/components/organisms/CustomerStatusLabelWorkflowActions/reducer.js +0 -32
  1202. package/components/organisms/CustomerStatusLabelWorkflowActions/saga.js +0 -29
  1203. package/components/organisms/CustomerStatusLabelWorkflowActions/selectors.js +0 -15
  1204. package/components/organisms/CustomerStatusLabelWorkflowActions/style.js +0 -173
  1205. package/components/organisms/CustomerStatusLabelWorkflowActions/tests/CustomerStatusLabelWorkflowAction.test.js +0 -82
  1206. package/components/organisms/CustomerStatusLabelWorkflowActions/tests/actions.test.js +0 -11
  1207. package/components/organisms/CustomerStatusLabelWorkflowActions/tests/mocks/mockData.js +0 -127
  1208. package/components/organisms/CustomerStatusLabelWorkflowActions/tests/reducer.test.js +0 -57
  1209. package/components/organisms/CustomerStatusLabelWorkflowActions/tests/saga.test.js +0 -79
  1210. package/components/organisms/CustomerStatusLabelWorkflowActions/tests/selectors.test.js +0 -21
  1211. package/components/organisms/CustomerStatusLabelWorkflowActions/tests/utils.test.js +0 -143
  1212. package/components/organisms/CustomerStatusLabelWorkflowActions/utils.js +0 -129
  1213. package/components/organisms/DelayedAccrual/DelayedAccrual.js +0 -309
  1214. package/components/organisms/DelayedAccrual/actions.js +0 -27
  1215. package/components/organisms/DelayedAccrual/constants.js +0 -28
  1216. package/components/organisms/DelayedAccrual/index.js +0 -1
  1217. package/components/organisms/DelayedAccrual/messages.js +0 -40
  1218. package/components/organisms/DelayedAccrual/reducer.js +0 -45
  1219. package/components/organisms/DelayedAccrual/saga.js +0 -91
  1220. package/components/organisms/DelayedAccrual/selectors.js +0 -44
  1221. package/components/organisms/DelayedAccrual/style.js +0 -38
  1222. package/components/organisms/DelayedAccrual/tests/DelayedAccuralAdvancedOption.test.js +0 -131
  1223. package/components/organisms/DelayedAccrual/tests/mockData.js +0 -11
  1224. package/components/organisms/DelayedAccrual/tests/reducer.test.js +0 -92
  1225. package/components/organisms/DelayedAccrual/tests/saga.test.js +0 -214
  1226. package/components/organisms/DelayedAccrual/tests/selectors.test.js +0 -33
  1227. package/components/organisms/DiscardDraft/DiscardDraft.js +0 -190
  1228. package/components/organisms/DiscardDraft/actions.js +0 -12
  1229. package/components/organisms/DiscardDraft/constants.js +0 -5
  1230. package/components/organisms/DiscardDraft/index.js +0 -1
  1231. package/components/organisms/DiscardDraft/messages.js +0 -41
  1232. package/components/organisms/DiscardDraft/mocks/data.js +0 -24
  1233. package/components/organisms/DiscardDraft/reducer.js +0 -29
  1234. package/components/organisms/DiscardDraft/saga.js +0 -32
  1235. package/components/organisms/DiscardDraft/selector.js +0 -17
  1236. package/components/organisms/DiscardDraft/style.js +0 -18
  1237. package/components/organisms/DiscardDraft/tests/DiscardDraft.test.js +0 -101
  1238. package/components/organisms/DiscardDraft/tests/action.test.js +0 -10
  1239. package/components/organisms/DiscardDraft/tests/reducer.test.js +0 -44
  1240. package/components/organisms/DiscardDraft/tests/saga.test.js +0 -85
  1241. package/components/organisms/DiscardDraft/tests/selector.test.js +0 -22
  1242. package/components/organisms/EbillWorkflowAction/tests/EbillWorkflowAction.test.js +0 -56
  1243. package/components/organisms/ExpiryConditions/tests/ExpiryConditions.test.js +0 -400
  1244. package/components/organisms/ExpiryConditions/tests/ExtendedFields.test.js +0 -134
  1245. package/components/organisms/ExpiryConditions/tests/mocks/data.js +0 -30
  1246. package/components/organisms/ExpiryConditions/tests/saga.test.js +0 -87
  1247. package/components/organisms/ExpiryConditions/tests/utils.test.js +0 -47
  1248. package/components/organisms/ExpiryConditions/utils.js +0 -16
  1249. package/components/organisms/ForwardToSetWorkflowAction/tests/ForwardToSetWorkflowAction.test.js +0 -123
  1250. package/components/organisms/ForwardToSetWorkflowAction/tests/mockData.js +0 -10
  1251. package/components/organisms/GroupItemLabel/GroupItemLabel.js +0 -471
  1252. package/components/organisms/GroupItemLabel/constants.js +0 -2
  1253. package/components/organisms/GroupItemLabel/messages.js +0 -33
  1254. package/components/organisms/GroupItemLabel/mocks/data.js +0 -142
  1255. package/components/organisms/GroupItemLabel/style.js +0 -54
  1256. package/components/organisms/GroupItemLabel/tests/GroupItemLabel.test.js +0 -366
  1257. package/components/organisms/GroupItemLabel/tests/__snapshots__/index.test.js.snap +0 -296
  1258. package/components/organisms/GroupItemLabel/tests/index.test.js +0 -67
  1259. package/components/organisms/InitiateSupplementaryMemberShipWorkflowAction/tests/InitiateSupplementaryMemberShipWorkflowAction.test.js +0 -168
  1260. package/components/organisms/InitiateSupplementaryMemberShipWorkflowAction/tests/mockData.js +0 -29
  1261. package/components/organisms/IssueBadgeWorkflowAction/IssueBadgeWorkflowAction.js +0 -577
  1262. package/components/organisms/IssueBadgeWorkflowAction/actions.js +0 -19
  1263. package/components/organisms/IssueBadgeWorkflowAction/constants.js +0 -31
  1264. package/components/organisms/IssueBadgeWorkflowAction/index.js +0 -1
  1265. package/components/organisms/IssueBadgeWorkflowAction/messages.js +0 -134
  1266. package/components/organisms/IssueBadgeWorkflowAction/reducer.js +0 -41
  1267. package/components/organisms/IssueBadgeWorkflowAction/saga.js +0 -58
  1268. package/components/organisms/IssueBadgeWorkflowAction/selectors.js +0 -17
  1269. package/components/organisms/IssueBadgeWorkflowAction/style.js +0 -292
  1270. package/components/organisms/IssueBadgeWorkflowAction/tests/IssueBadgeWorkflowAction.test.js +0 -184
  1271. package/components/organisms/IssueBadgeWorkflowAction/tests/mocks/mockData.js +0 -183
  1272. package/components/organisms/IssueBadgeWorkflowAction/tests/reducer.test.js +0 -101
  1273. package/components/organisms/IssueBadgeWorkflowAction/tests/saga.test.js +0 -136
  1274. package/components/organisms/IssueBadgeWorkflowAction/tests/selectors.test.js +0 -22
  1275. package/components/organisms/IssueBadgeWorkflowAction/tests/utils.test.js +0 -30
  1276. package/components/organisms/IssueBadgeWorkflowAction/utils.js +0 -36
  1277. package/components/organisms/IssueCatalogRewardsAction/IssueCatalogRewardsAction.js +0 -1034
  1278. package/components/organisms/IssueCatalogRewardsAction/actions.js +0 -28
  1279. package/components/organisms/IssueCatalogRewardsAction/constants.js +0 -70
  1280. package/components/organisms/IssueCatalogRewardsAction/index.js +0 -1
  1281. package/components/organisms/IssueCatalogRewardsAction/messages.js +0 -275
  1282. package/components/organisms/IssueCatalogRewardsAction/reducer.js +0 -83
  1283. package/components/organisms/IssueCatalogRewardsAction/saga.js +0 -141
  1284. package/components/organisms/IssueCatalogRewardsAction/selectors.js +0 -31
  1285. package/components/organisms/IssueCatalogRewardsAction/style.js +0 -362
  1286. package/components/organisms/IssueCatalogRewardsAction/tests/IssueCatalogRewardsAction.test.js +0 -788
  1287. package/components/organisms/IssueCatalogRewardsAction/tests/actions.test.js +0 -23
  1288. package/components/organisms/IssueCatalogRewardsAction/tests/mockData.js +0 -534
  1289. package/components/organisms/IssueCatalogRewardsAction/tests/reducer.test.js +0 -184
  1290. package/components/organisms/IssueCatalogRewardsAction/tests/saga.test.js +0 -277
  1291. package/components/organisms/IssueCatalogRewardsAction/tests/selectors.test.js +0 -53
  1292. package/components/organisms/IssueCatalogRewardsAction/tests/utils.test.js +0 -33
  1293. package/components/organisms/IssueCatalogRewardsAction/utils.js +0 -125
  1294. package/components/organisms/IssueCouponsWorkflowAction/tests/IssueCouponWorkflowAction.test.js +0 -551
  1295. package/components/organisms/IssueCouponsWorkflowAction/tests/actions.test.js +0 -18
  1296. package/components/organisms/IssueCouponsWorkflowAction/tests/index.test.js +0 -219
  1297. package/components/organisms/IssueCouponsWorkflowAction/tests/mocks/data.js +0 -244
  1298. package/components/organisms/IssueCouponsWorkflowAction/tests/reducer.test.js +0 -76
  1299. package/components/organisms/IssueCouponsWorkflowAction/tests/saga.test.js +0 -80
  1300. package/components/organisms/IssueCouponsWorkflowAction/tests/selectors.test.js +0 -21
  1301. package/components/organisms/IssueCouponsWorkflowAction/tests/utils.test.js +0 -15
  1302. package/components/organisms/IssueCouponsWorkflowAction/utils.js +0 -13
  1303. package/components/organisms/IssuePromotionWorkflowAction/IssuePromotionWorkflowAction.js +0 -608
  1304. package/components/organisms/IssuePromotionWorkflowAction/actions.js +0 -10
  1305. package/components/organisms/IssuePromotionWorkflowAction/constants.js +0 -14
  1306. package/components/organisms/IssuePromotionWorkflowAction/index.js +0 -1
  1307. package/components/organisms/IssuePromotionWorkflowAction/messages.js +0 -73
  1308. package/components/organisms/IssuePromotionWorkflowAction/reducer.js +0 -32
  1309. package/components/organisms/IssuePromotionWorkflowAction/saga.js +0 -33
  1310. package/components/organisms/IssuePromotionWorkflowAction/selectors.js +0 -18
  1311. package/components/organisms/IssuePromotionWorkflowAction/style.js +0 -317
  1312. package/components/organisms/IssuePromotionWorkflowAction/tests/IssuePromotionWorkflowAction.test.js +0 -211
  1313. package/components/organisms/IssuePromotionWorkflowAction/tests/mocks/mockData.js +0 -126
  1314. package/components/organisms/IssuePromotionWorkflowAction/tests/reducer.test.js +0 -60
  1315. package/components/organisms/IssuePromotionWorkflowAction/tests/saga.test.js +0 -84
  1316. package/components/organisms/IssuePromotionWorkflowAction/tests/selectors.test.js +0 -22
  1317. package/components/organisms/IssuePromotionWorkflowAction/tests/utils.test.js +0 -29
  1318. package/components/organisms/IssuePromotionWorkflowAction/utils.js +0 -38
  1319. package/components/organisms/LiabilitySettings/LiabilitySettings.js +0 -899
  1320. package/components/organisms/LiabilitySettings/actions.js +0 -33
  1321. package/components/organisms/LiabilitySettings/constants.js +0 -38
  1322. package/components/organisms/LiabilitySettings/index.js +0 -1
  1323. package/components/organisms/LiabilitySettings/messages.js +0 -58
  1324. package/components/organisms/LiabilitySettings/mockData.js +0 -30
  1325. package/components/organisms/LiabilitySettings/reducer.js +0 -95
  1326. package/components/organisms/LiabilitySettings/saga.js +0 -151
  1327. package/components/organisms/LiabilitySettings/selectors.js +0 -21
  1328. package/components/organisms/LiabilitySettings/style.js +0 -48
  1329. package/components/organisms/LiabilitySettings/tests/LiabilitySettings.test.js +0 -488
  1330. package/components/organisms/LiabilitySettings/tests/actions.test.js +0 -72
  1331. package/components/organisms/LiabilitySettings/tests/mockData.js +0 -34
  1332. package/components/organisms/LiabilitySettings/tests/reducer.test.js +0 -205
  1333. package/components/organisms/LiabilitySettings/tests/saga.test.js +0 -353
  1334. package/components/organisms/LiabilitySettings/tests/selectors.test.js +0 -32
  1335. package/components/organisms/LoyaltyGraph/tests/saga.test.js +0 -86
  1336. package/components/organisms/LoyaltyPromotions/LoyaltyPromotions.js +0 -626
  1337. package/components/organisms/LoyaltyPromotions/constants.js +0 -15
  1338. package/components/organisms/LoyaltyPromotions/index.js +0 -1
  1339. package/components/organisms/LoyaltyPromotions/messages.js +0 -142
  1340. package/components/organisms/LoyaltyPromotions/style.js +0 -257
  1341. package/components/organisms/LoyaltyPromotions/tests/LoyaltyPromotions.test.js +0 -283
  1342. package/components/organisms/LoyaltyPromotions/tests/utils.test.js +0 -120
  1343. package/components/organisms/LoyaltyPromotions/utils.js +0 -102
  1344. package/components/organisms/NavigationBar/saga.js +0 -11
  1345. package/components/organisms/Nudges/tests/mocks/data.js +0 -12
  1346. package/components/organisms/Nudges/tests/saga.test.js +0 -77
  1347. package/components/organisms/PageHeader/PageHeader.js +0 -328
  1348. package/components/organisms/PageHeader/messages.js +0 -14
  1349. package/components/organisms/PageHeader/tests/PageHeader.test.js +0 -110
  1350. package/components/organisms/PageHeader/tests/__snapshots__/PageHeader.test.js.snap +0 -35058
  1351. package/components/organisms/PageHeaderButton/PageHeaderButton.js +0 -166
  1352. package/components/organisms/PageHeaderButton/index.js +0 -1
  1353. package/components/organisms/PageHeaderButton/messages.js +0 -43
  1354. package/components/organisms/PageHeaderButton/style.js +0 -37
  1355. package/components/organisms/PageHeaderVersioning/PageHeaderVersioning.js +0 -237
  1356. package/components/organisms/PageHeaderVersioning/index.js +0 -1
  1357. package/components/organisms/PageHeaderVersioning/messages.js +0 -29
  1358. package/components/organisms/PageHeaderVersioning/style.js +0 -100
  1359. package/components/organisms/PartnerProgramAdvancedOption/PartnerProgramAdvancedOption.js +0 -169
  1360. package/components/organisms/PartnerProgramAdvancedOption/constants.js +0 -8
  1361. package/components/organisms/PartnerProgramAdvancedOption/index.js +0 -1
  1362. package/components/organisms/PartnerProgramAdvancedOption/messages.js +0 -26
  1363. package/components/organisms/PartnerProgramAdvancedOption/style.js +0 -15
  1364. package/components/organisms/PartnerProgramAdvancedOption/tests/PartnerProgramAdvancedOption.test.js +0 -249
  1365. package/components/organisms/PartnerProgramDashboard/Loadable.js +0 -7
  1366. package/components/organisms/PartnerProgramDashboard/PartnerProgramDashboard.js +0 -416
  1367. package/components/organisms/PartnerProgramDashboard/actions.js +0 -38
  1368. package/components/organisms/PartnerProgramDashboard/constants.js +0 -34
  1369. package/components/organisms/PartnerProgramDashboard/context.js +0 -7
  1370. package/components/organisms/PartnerProgramDashboard/index.js +0 -1
  1371. package/components/organisms/PartnerProgramDashboard/messages.js +0 -62
  1372. package/components/organisms/PartnerProgramDashboard/reducer.js +0 -82
  1373. package/components/organisms/PartnerProgramDashboard/saga.js +0 -128
  1374. package/components/organisms/PartnerProgramDashboard/selectors.js +0 -66
  1375. package/components/organisms/PartnerProgramDashboard/style.js +0 -32
  1376. package/components/organisms/PartnerProgramDashboard/test/PartnerProgramDashboard.test.js +0 -151
  1377. package/components/organisms/PartnerProgramDashboard/test/actions.test.js +0 -12
  1378. package/components/organisms/PartnerProgramDashboard/test/mocks/data.js +0 -321
  1379. package/components/organisms/PartnerProgramDashboard/test/reducer.test.js +0 -322
  1380. package/components/organisms/PartnerProgramDashboard/test/saga.test.js +0 -308
  1381. package/components/organisms/PartnerProgramDashboard/test/selectors.test.js +0 -58
  1382. package/components/organisms/PartnerProgramDashboard/test/utils.test.js +0 -14
  1383. package/components/organisms/PartnerProgramDashboard/utils.js +0 -32
  1384. package/components/organisms/PartnerProgramTierSettings/PartnerProgramTierSettings.js +0 -409
  1385. package/components/organisms/PartnerProgramTierSettings/index.js +0 -1
  1386. package/components/organisms/PartnerProgramTierSettings/messages.js +0 -46
  1387. package/components/organisms/PartnerProgramTierSettings/style.js +0 -88
  1388. package/components/organisms/PartnerProgramTierSettings/tests/PartnerProgramTierSettings.test.js +0 -297
  1389. package/components/organisms/PartnerProgramTierSettings/tests/mocks/data.js +0 -67
  1390. package/components/organisms/PaymentMethodsAdvanced/tests/PaymentSettingsAdvanced.test.js +0 -18
  1391. package/components/organisms/PaymentMethodsAdvanced/tests/mocks/data.js +0 -17
  1392. package/components/organisms/PaymentMethodsAdvanced/tests/saga.test.js +0 -284
  1393. package/components/organisms/PointContributionToGroup/tests/PointContribution.test.js +0 -20
  1394. package/components/organisms/PointStrategies/tests/PointStrategies.test.js +0 -51
  1395. package/components/organisms/PointStrategies/tests/utils.test.js +0 -66
  1396. package/components/organisms/PointStrategies/utils.js +0 -60
  1397. package/components/organisms/PointsAdvancedOption/tests/PointsAdvancedoption.test.js +0 -99
  1398. package/components/organisms/PointsAdvancedOption/tests/mocks/data.js +0 -89
  1399. package/components/organisms/PointsAdvancedOption/tests/saga.test.js +0 -87
  1400. package/components/organisms/PointsAllocationAccordion/PointsAllocationAccordion.js +0 -135
  1401. package/components/organisms/PointsAllocationAccordion/index.js +0 -1
  1402. package/components/organisms/PointsAllocationAccordion/style.js +0 -70
  1403. package/components/organisms/PointsAllocationLimit/PointsAllocationLimit.js +0 -107
  1404. package/components/organisms/PointsAllocationLimit/actions.js +0 -21
  1405. package/components/organisms/PointsAllocationLimit/constants.js +0 -20
  1406. package/components/organisms/PointsAllocationLimit/index.js +0 -1
  1407. package/components/organisms/PointsAllocationLimit/messages.js +0 -122
  1408. package/components/organisms/PointsAllocationLimit/reducer.js +0 -48
  1409. package/components/organisms/PointsAllocationLimit/saga.js +0 -99
  1410. package/components/organisms/PointsAllocationLimit/selectors.js +0 -12
  1411. package/components/organisms/PointsAllocationLimit/style.js +0 -0
  1412. package/components/organisms/PointsAllocationLimit/tests/PointsAllocationLimit.test.js +0 -34
  1413. package/components/organisms/PointsAllocationLimit/tests/reducers.test.js +0 -93
  1414. package/components/organisms/PointsAllocationLimit/tests/saga.test.js +0 -189
  1415. package/components/organisms/PointsAllocationLimit/tests/selectors.test.js +0 -43
  1416. package/components/organisms/PointsBudgetList/PointsBudgetList.js +0 -1220
  1417. package/components/organisms/PointsBudgetList/constants.js +0 -201
  1418. package/components/organisms/PointsBudgetList/index.js +0 -1
  1419. package/components/organisms/PointsBudgetList/messages.js +0 -329
  1420. package/components/organisms/PointsBudgetList/style.js +0 -265
  1421. package/components/organisms/PointsBudgetList/tests/PointsBudgetList.test.js +0 -271
  1422. package/components/organisms/PointsBudgetList/tests/mockData.js +0 -788
  1423. package/components/organisms/PointsBudgetList/tests/utils.test.js +0 -16
  1424. package/components/organisms/PointsBudgetList/utils.js +0 -24
  1425. package/components/organisms/PointsRedemptionReversalWorkflowAction/tests/PointsRedemptionReversalWorkflowAction.test.js +0 -42
  1426. package/components/organisms/PointsRollingExpiry/PointsRollingExpiry.js +0 -637
  1427. package/components/organisms/PointsRollingExpiry/actions.js +0 -10
  1428. package/components/organisms/PointsRollingExpiry/constants.js +0 -48
  1429. package/components/organisms/PointsRollingExpiry/index.js +0 -1
  1430. package/components/organisms/PointsRollingExpiry/messages.js +0 -210
  1431. package/components/organisms/PointsRollingExpiry/reducer.js +0 -51
  1432. package/components/organisms/PointsRollingExpiry/saga.js +0 -72
  1433. package/components/organisms/PointsRollingExpiry/selectors.js +0 -48
  1434. package/components/organisms/PointsRollingExpiry/style.js +0 -190
  1435. package/components/organisms/PointsRollingExpiry/tests/PointsRollingExpiry.test.js +0 -279
  1436. package/components/organisms/PointsRollingExpiry/tests/mocks/mockData.js +0 -62
  1437. package/components/organisms/PointsRollingExpiry/tests/reducer.test.js +0 -81
  1438. package/components/organisms/PointsRollingExpiry/tests/saga.test.js +0 -166
  1439. package/components/organisms/PointsRollingExpiry/tests/selectors.test.js +0 -35
  1440. package/components/organisms/PointsRollingExpiry/tests/utils.test.js +0 -54
  1441. package/components/organisms/PointsRollingExpiry/utils.js +0 -257
  1442. package/components/organisms/PointsTransferOrgSettings/ProgramTransferOrgSettings.js +0 -246
  1443. package/components/organisms/PointsTransferOrgSettings/actions.js +0 -11
  1444. package/components/organisms/PointsTransferOrgSettings/constants.js +0 -47
  1445. package/components/organisms/PointsTransferOrgSettings/index.js +0 -1
  1446. package/components/organisms/PointsTransferOrgSettings/messages.js +0 -57
  1447. package/components/organisms/PointsTransferOrgSettings/reducer.js +0 -36
  1448. package/components/organisms/PointsTransferOrgSettings/saga.js +0 -68
  1449. package/components/organisms/PointsTransferOrgSettings/selectors.js +0 -30
  1450. package/components/organisms/PointsTransferOrgSettings/style.js +0 -19
  1451. package/components/organisms/PointsTransferOrgSettings/tests/PointsTransferOrgSettings.test.js +0 -176
  1452. package/components/organisms/PointsTransferOrgSettings/tests/actions.test.js +0 -19
  1453. package/components/organisms/PointsTransferOrgSettings/tests/mocks/data.js +0 -15
  1454. package/components/organisms/PointsTransferOrgSettings/tests/reducer.test.js +0 -142
  1455. package/components/organisms/PointsTransferOrgSettings/tests/saga.test.js +0 -138
  1456. package/components/organisms/PointsTransferOrgSettings/tests/selectors.test.js +0 -21
  1457. package/components/organisms/PointsTransferSettings/PointsTransferSettings.js +0 -334
  1458. package/components/organisms/PointsTransferSettings/constants.js +0 -60
  1459. package/components/organisms/PointsTransferSettings/index.js +0 -1
  1460. package/components/organisms/PointsTransferSettings/messages.js +0 -43
  1461. package/components/organisms/PointsTransferSettings/style.js +0 -50
  1462. package/components/organisms/PointsTransferSettings/tests/index.test.js +0 -56
  1463. package/components/organisms/ProgramDestinationMapper/ProgramDestinationMapper.js +0 -195
  1464. package/components/organisms/ProgramDestinationMapper/actions.js +0 -9
  1465. package/components/organisms/ProgramDestinationMapper/constants.js +0 -4
  1466. package/components/organisms/ProgramDestinationMapper/index.js +0 -1
  1467. package/components/organisms/ProgramDestinationMapper/messages.js +0 -10
  1468. package/components/organisms/ProgramDestinationMapper/mocks/data.js +0 -22
  1469. package/components/organisms/ProgramDestinationMapper/reducer.js +0 -38
  1470. package/components/organisms/ProgramDestinationMapper/saga.js +0 -33
  1471. package/components/organisms/ProgramDestinationMapper/selectors.js +0 -21
  1472. package/components/organisms/ProgramDestinationMapper/style.js +0 -21
  1473. package/components/organisms/ProgramDestinationMapper/tests/ProgramDestinationMapper.test.js +0 -91
  1474. package/components/organisms/ProgramDestinationMapper/tests/saga.test.js +0 -80
  1475. package/components/organisms/ProgramPerformance/Loadable.js +0 -7
  1476. package/components/organisms/ProgramSettings/tests/ProgramSettings.test.js +0 -176
  1477. package/components/organisms/ProgramSettings/tests/mocks/data.js +0 -22
  1478. package/components/organisms/ProgramSettings/utils.js +0 -17
  1479. package/components/organisms/PromotionAdvancedSettings/PromotionAdvancedSettings.js +0 -1580
  1480. package/components/organisms/PromotionAdvancedSettings/actions.js +0 -14
  1481. package/components/organisms/PromotionAdvancedSettings/constants.js +0 -18
  1482. package/components/organisms/PromotionAdvancedSettings/index.js +0 -1
  1483. package/components/organisms/PromotionAdvancedSettings/messages.js +0 -259
  1484. package/components/organisms/PromotionAdvancedSettings/reducer.js +0 -30
  1485. package/components/organisms/PromotionAdvancedSettings/saga.js +0 -33
  1486. package/components/organisms/PromotionAdvancedSettings/selectors.js +0 -25
  1487. package/components/organisms/PromotionAdvancedSettings/style.js +0 -251
  1488. package/components/organisms/PromotionAdvancedSettings/tests/PromotionAdvancedSettings.test.js +0 -642
  1489. package/components/organisms/PromotionAdvancedSettings/tests/PromotionAdvancedSettingsRevamp.test.js +0 -146
  1490. package/components/organisms/PromotionAdvancedSettings/tests/mockData.js +0 -197
  1491. package/components/organisms/PromotionAdvancedSettings/tests/utils.test.js +0 -48
  1492. package/components/organisms/PromotionAdvancedSettings/utils.js +0 -44
  1493. package/components/organisms/PromotionSettings/PromotionSettings.js +0 -469
  1494. package/components/organisms/PromotionSettings/constants.js +0 -9
  1495. package/components/organisms/PromotionSettings/index.js +0 -1
  1496. package/components/organisms/PromotionSettings/messages.js +0 -93
  1497. package/components/organisms/PromotionSettings/style.js +0 -137
  1498. package/components/organisms/PromotionsDetail/Loadable.js +0 -7
  1499. package/components/organisms/PromotionsDetail/PromotionsDetail.js +0 -1411
  1500. package/components/organisms/PromotionsDetail/actions.js +0 -36
  1501. package/components/organisms/PromotionsDetail/constants.js +0 -124
  1502. package/components/organisms/PromotionsDetail/index.js +0 -1
  1503. package/components/organisms/PromotionsDetail/messages.js +0 -249
  1504. package/components/organisms/PromotionsDetail/reducer.js +0 -183
  1505. package/components/organisms/PromotionsDetail/saga.js +0 -261
  1506. package/components/organisms/PromotionsDetail/selectors.js +0 -56
  1507. package/components/organisms/PromotionsDetail/style.js +0 -317
  1508. package/components/organisms/PromotionsDetail/tests/PromotionsDetail.test.js +0 -511
  1509. package/components/organisms/PromotionsDetail/tests/mockData.js +0 -306
  1510. package/components/organisms/PromotionsDetail/tests/utils.test.js +0 -112
  1511. package/components/organisms/PromotionsDetail/utils.js +0 -618
  1512. package/components/organisms/ReconfigurePromotions/ReconfigurePromotions.js +0 -128
  1513. package/components/organisms/ReconfigurePromotions/index.js +0 -1
  1514. package/components/organisms/ReconfigurePromotions/messages.js +0 -43
  1515. package/components/organisms/ReconfigurePromotions/style.js +0 -66
  1516. package/components/organisms/ReconfigurePromotions/tests/ReconfigurePromotions.test.js +0 -60
  1517. package/components/organisms/RedeemConditions/tests/RedeemConditions.test.js +0 -216
  1518. package/components/organisms/RedeemConditions/tests/mocks/data.js +0 -131
  1519. package/components/organisms/RedeemConditions/tests/saga.test.js +0 -83
  1520. package/components/organisms/ReturnConditions/tests/ReturnConditions.test.js +0 -59
  1521. package/components/organisms/ReturnConditions/tests/mocks/data.js +0 -14
  1522. package/components/organisms/ReturnConditions/tests/mocks/mockData.js +0 -148
  1523. package/components/organisms/ReturnConditions/tests/saga.test.js +0 -87
  1524. package/components/organisms/ReviewPromotionSlider/ReviewPromotionSlider.js +0 -76
  1525. package/components/organisms/ReviewPromotionSlider/index.js +0 -1
  1526. package/components/organisms/ReviewPromotionSlider/style.js +0 -59
  1527. package/components/organisms/ReviewPromotionSlider/tests/ReviewPromotionSlider.test.js +0 -58
  1528. package/components/organisms/ReviewPromotionSlider/tests/mockData.js +0 -535
  1529. package/components/organisms/ReviewPromotionSlider/tests/utils.test.js +0 -11
  1530. package/components/organisms/ReviewPromotionSlider/utils.js +0 -176
  1531. package/components/organisms/ScopeSlidebox/ScopeContentDescription.js +0 -67
  1532. package/components/organisms/ScopeSlidebox/ScopeContentHeader.js +0 -25
  1533. package/components/organisms/ScopeSlidebox/style.js +0 -109
  1534. package/components/organisms/ScopeSlidebox/tests/featureControlDisabled/ScopeSlideBoxWithoutFeature.test.js +0 -1342
  1535. package/components/organisms/ScopeSlidebox/tests/featureControlDisabled/mockData.js +0 -3226
  1536. package/components/organisms/ScopeSlidebox/tests/featureControlDisabled/processedRulesetsData.js +0 -374
  1537. package/components/organisms/ScopeSlidebox/tests/featureControlDisabled/rulesetsData.js +0 -462
  1538. package/components/organisms/ScopeSlidebox/tests/featureControlEnabled/ScopeSlidebox.test.js +0 -1907
  1539. package/components/organisms/ScopeSlidebox/tests/featureControlEnabled/mockData.js +0 -3661
  1540. package/components/organisms/ScopeSlidebox/tests/featureControlEnabled/processedRulesetsData.js +0 -242
  1541. package/components/organisms/ScopeSlidebox/tests/mockData.js +0 -50
  1542. package/components/organisms/ScopeSlidebox/tests/scope-utils.test.js +0 -39
  1543. package/components/organisms/ScopeSlidebox/utils.js +0 -88
  1544. package/components/organisms/SelectTargetSlider/SelectTargetSlider.js +0 -406
  1545. package/components/organisms/SelectTargetSlider/index.js +0 -1
  1546. package/components/organisms/SelectTargetSlider/messages.js +0 -126
  1547. package/components/organisms/SelectTargetSlider/mockData.js +0 -704
  1548. package/components/organisms/SelectTargetSlider/style.js +0 -97
  1549. package/components/organisms/SelectTargetSlider/tests/NoTargetView.test.js +0 -74
  1550. package/components/organisms/SelectTargetSlider/tests/SelectTargetSlider.test.js +0 -209
  1551. package/components/organisms/SelectTargetSlider/utils.js +0 -186
  1552. package/components/organisms/SendEmailWorkflowAction/tests/SendEmailWorkflowAction.test.js +0 -23
  1553. package/components/organisms/SendMessagesWorkflowAction/tests/SendMessagesWorflowAction.test.js +0 -23
  1554. package/components/organisms/SendMobilePushWorkflowAction/tests/SendMobilePushWorkflowAction.test.js +0 -23
  1555. package/components/organisms/SocialConnectWorkflowAction/tests/SocialConnectWorkflowAction.test.js +0 -23
  1556. package/components/organisms/StrategyDashboard/Loadable.js +0 -5
  1557. package/components/organisms/StrategyDashboard/messages.js +0 -21
  1558. package/components/organisms/StrategyDashboard/tests/StrategyDashboard.test.js +0 -80
  1559. package/components/organisms/StrategyDashboard/tests/mocks/data.js +0 -110
  1560. package/components/organisms/StrategyDashboard/tests/saga.test.js +0 -80
  1561. package/components/organisms/TagCustomerAction/tests/TagCustomerAction.test.js +0 -29
  1562. package/components/organisms/TargetPointAllocationWorkflowAction/TargetPointAllocationWorkflowAction.js +0 -623
  1563. package/components/organisms/TargetPointAllocationWorkflowAction/actions.js +0 -32
  1564. package/components/organisms/TargetPointAllocationWorkflowAction/constants.js +0 -37
  1565. package/components/organisms/TargetPointAllocationWorkflowAction/index.js +0 -1
  1566. package/components/organisms/TargetPointAllocationWorkflowAction/reducer.js +0 -88
  1567. package/components/organisms/TargetPointAllocationWorkflowAction/saga.js +0 -128
  1568. package/components/organisms/TargetPointAllocationWorkflowAction/selectors.js +0 -22
  1569. package/components/organisms/TargetPointAllocationWorkflowAction/style.js +0 -17
  1570. package/components/organisms/TargetPointAllocationWorkflowAction/tests/TargetPointAllocationWorkFlowAction.test.js +0 -577
  1571. package/components/organisms/TargetPointAllocationWorkflowAction/tests/__snapshots__/action.test.js.snap +0 -16
  1572. package/components/organisms/TargetPointAllocationWorkflowAction/tests/__snapshots__/reducer.test.js.snap +0 -166
  1573. package/components/organisms/TargetPointAllocationWorkflowAction/tests/action.test.js +0 -31
  1574. package/components/organisms/TargetPointAllocationWorkflowAction/tests/mockData.js +0 -243
  1575. package/components/organisms/TargetPointAllocationWorkflowAction/tests/reducer.test.js +0 -172
  1576. package/components/organisms/TargetPointAllocationWorkflowAction/tests/saga.test.js +0 -290
  1577. package/components/organisms/TargetPointAllocationWorkflowAction/tests/selectors.test.js +0 -16
  1578. package/components/organisms/TierUpgradeAndDowngrade/tests/TierUpgradeAndDowngrade.test.js +0 -326
  1579. package/components/organisms/TierUpgradeAndDowngrade/tests/TiersTooltips.test.js +0 -75
  1580. package/components/organisms/TierUpgradeAndDowngrade/tests/ValidityModal.test.js +0 -82
  1581. package/components/organisms/TierUpgradeAndDowngrade/tests/mocks/data.js +0 -230
  1582. package/components/organisms/TierUpgradeAndDowngrade/tests/utils.test.js +0 -196
  1583. package/components/organisms/TieradvancedOption/tests/TierAdvancedOption.test.js +0 -108
  1584. package/components/organisms/TieradvancedOption/tests/mocks/data.js +0 -14
  1585. package/components/organisms/TieradvancedOption/tests/saga.test.js +0 -83
  1586. package/components/organisms/Tiers/Loadable.js +0 -5
  1587. package/components/organisms/Tiers/tests/mock.js +0 -403
  1588. package/components/organisms/Tiers/tests/saga.test.js +0 -94
  1589. package/components/organisms/Tiers/tests/utils.test.js +0 -15
  1590. package/components/organisms/Tiers/utils.js +0 -10
  1591. package/components/organisms/TrackerEvaluationWorkflowAction/tests/TrackerEvaluationWorkflowAction.test.js +0 -100
  1592. package/components/organisms/Trackers/Loadable.js +0 -5
  1593. package/components/organisms/Trackers/tests/mockData.js +0 -342
  1594. package/components/organisms/TransactionAllocationPointWorkflowAction/tests/TransactionAllocationPointWorkflowAction.test.js +0 -134
  1595. package/components/organisms/TransactionAllocationPointWorkflowAction/tests/mockData.js +0 -349
  1596. package/components/organisms/TransferGroupPoints/tests/TransferGroupPoints.test.js +0 -143
  1597. package/components/organisms/TransferGroupPoints/tests/mockData.js +0 -236
  1598. package/components/organisms/UpgradeToTierWorkflowAction/tests/UpgradeToTierWorkflowAction.test.js +0 -45
  1599. package/components/organisms/VersioningDropdown/VersioningDropdown.js +0 -271
  1600. package/components/organisms/VersioningDropdown/index.js +0 -1
  1601. package/components/organisms/VersioningDropdown/messages.js +0 -18
  1602. package/components/organisms/VersioningDropdown/mocks/data.js +0 -75
  1603. package/components/organisms/VersioningDropdown/style.js +0 -18
  1604. package/components/organisms/VersioningDropdown/tests/VersioningDropdown.test.js +0 -37
  1605. package/components/organisms/VersioningDropdown/utils.js +0 -16
  1606. package/components/pages/BulkConfiguration/BulkConfigurations.js +0 -877
  1607. package/components/pages/BulkConfiguration/actions.js +0 -30
  1608. package/components/pages/BulkConfiguration/constants.js +0 -31
  1609. package/components/pages/BulkConfiguration/index.js +0 -1
  1610. package/components/pages/BulkConfiguration/messages.js +0 -144
  1611. package/components/pages/BulkConfiguration/reducer.js +0 -74
  1612. package/components/pages/BulkConfiguration/saga.js +0 -119
  1613. package/components/pages/BulkConfiguration/selector.js +0 -33
  1614. package/components/pages/BulkConfiguration/style.js +0 -222
  1615. package/components/pages/BulkConfiguration/tests/BulkConfigurations.test.js +0 -595
  1616. package/components/pages/BulkConfiguration/tests/BulkConfigurations1.test.js +0 -114
  1617. package/components/pages/BulkConfiguration/tests/BulkConfigurationsEdit.test.js +0 -128
  1618. package/components/pages/BulkConfiguration/tests/actions.test.js +0 -53
  1619. package/components/pages/BulkConfiguration/tests/mockData.js +0 -163
  1620. package/components/pages/BulkConfiguration/tests/reducer.test.js +0 -318
  1621. package/components/pages/BulkConfiguration/tests/saga.test.js +0 -363
  1622. package/components/pages/BulkConfiguration/tests/selectors.test.js +0 -61
  1623. package/components/pages/Cap/context.js +0 -7
  1624. package/components/pages/Cap/mocks/data.js +0 -623
  1625. package/components/pages/Cap/tests/Cap.test.js +0 -217
  1626. package/components/pages/Cap/tests/__snapshots__/reducer.test.js.snap +0 -111
  1627. package/components/pages/Cap/tests/actions.test.js +0 -76
  1628. package/components/pages/Cap/tests/reducer.test.js +0 -424
  1629. package/components/pages/Cap/tests/saga.test.js +0 -2661
  1630. package/components/pages/Cap/tests/selectors.test.js +0 -118
  1631. package/components/pages/Cap/tests/utils.test.js +0 -37
  1632. package/components/pages/Cap/utils.js +0 -20
  1633. package/components/pages/ConfigureProgram/tests/ConfigureProgram.test.js +0 -45
  1634. package/components/pages/Dashboard/tests/Dashboard.test.js +0 -44
  1635. package/components/pages/PermissionDeniedPage/Loadable.js +0 -11
  1636. package/components/pages/PermissionDeniedPage/PermissionDeniedPage.js +0 -28
  1637. package/components/pages/PermissionDeniedPage/index.js +0 -1
  1638. package/components/pages/PermissionDeniedPage/messages.js +0 -14
  1639. package/components/pages/PermissionDeniedPage/style.js +0 -13
  1640. package/components/pages/PermissionDeniedPage/tests/index.test.js +0 -26
  1641. package/components/pages/ProgramSummary/tests/actions.test.js +0 -118
  1642. package/components/pages/ProgramSummary/tests/mockData.js +0 -801
  1643. package/components/pages/ProgramSummary/tests/reducer.test.js +0 -160
  1644. package/components/pages/ProgramSummary/tests/saga.test.js +0 -658
  1645. package/components/pages/ProgramSummary/tests/selectors.test.js +0 -98
  1646. package/components/pages/Promotions/Promotions.js +0 -1698
  1647. package/components/pages/Promotions/actions.js +0 -23
  1648. package/components/pages/Promotions/constants.js +0 -65
  1649. package/components/pages/Promotions/index.js +0 -1
  1650. package/components/pages/Promotions/initialState.js +0 -39
  1651. package/components/pages/Promotions/messages.js +0 -129
  1652. package/components/pages/Promotions/reducer.js +0 -58
  1653. package/components/pages/Promotions/saga.js +0 -112
  1654. package/components/pages/Promotions/selectors.js +0 -43
  1655. package/components/pages/Promotions/style.js +0 -152
  1656. package/components/pages/Promotions/tests/Promotions.test.js +0 -906
  1657. package/components/pages/Promotions/tests/mockData.js +0 -454
  1658. package/components/pages/PromotionsDashboard/PromotionsDashboard.js +0 -127
  1659. package/components/pages/PromotionsDashboard/index.js +0 -1
  1660. package/components/pages/PromotionsDashboard/style.js +0 -5
  1661. package/components/pages/PromotionsDashboard/tests/PromotionsDashboard.test.js +0 -90
  1662. package/entry.js +0 -4
  1663. package/initialReducer.js +0 -14
  1664. package/tests/integration/CreateProgram/helper.js +0 -216
  1665. package/tests/integration/CreateProgram/mocks/apiResponse.js +0 -7
  1666. package/tests/integration/CreateProgram/mocks/constants.js +0 -1
  1667. package/tests/integration/CreateProgram/mocks/msw-handler.js +0 -26
  1668. package/tests/integration/EditProgram/EditProgram.integration.test.js +0 -159
  1669. package/tests/integration/EditProgram/helper.js +0 -104
  1670. package/tests/integration/EditProgram/mocks/apiResponse.js +0 -327
  1671. package/tests/integration/EditProgram/mocks/msw-handler.js +0 -56
  1672. package/tests/integration/Login/Login.integration.test.js +0 -96
  1673. package/tests/integration/Login/mocks/apiResponse.js +0 -235
  1674. package/tests/integration/Login/mocks/msw-handler.js +0 -34
  1675. package/tests/integration/PartnerProgram/CreatePartnerProgram.integration.test.js +0 -117
  1676. package/tests/integration/PartnerProgram/helper.js +0 -256
  1677. package/tests/integration/PartnerProgram/mocks/apiResponse.js +0 -689
  1678. package/tests/integration/PartnerProgram/mocks/msw-handler.js +0 -210
  1679. package/tests/integration/Promotion/CreatePromotion.integration.test.js +0 -237
  1680. package/tests/integration/Promotion/EditPromotion.integration.test.js +0 -94
  1681. package/tests/integration/Promotion/helper.js +0 -656
  1682. package/tests/integration/Promotion/mocks/apiResponse.js +0 -2683
  1683. package/tests/integration/Promotion/mocks/constants.js +0 -7
  1684. package/tests/integration/Promotion/mocks/msw-handler.js +0 -183
  1685. package/tests/integration/Versioning/mocks/apiResponse.js +0 -14333
  1686. package/tests/integration/commonMocks/apiResponse.js +0 -1624
  1687. package/tests/integration/commonMocks/helper.js +0 -31
  1688. package/tests/integration/commonMocks/msw-handler.js +0 -100
  1689. package/tests/test-utils-it.js +0 -64
  1690. package/utils/audience.js +0 -46
  1691. package/utils/gtmTrackers/gtmEvents/bulkConfigDetails.js +0 -155
  1692. package/utils/gtmTrackers/gtmEvents/nudgeDetails.js +0 -10
  1693. package/utils/gtmTrackers/gtmEvents/promotionDetails.js +0 -116
  1694. package/utils/gtmTrackers/gtmEvents/viewBulkConfigDetails.js +0 -25
  1695. package/utils/gtmTrackers/gtmEvents/viewPromotionDetails.js +0 -28
  1696. package/utils/gtmTrackers/gtmEvents/workflowActions.js +0 -29
  1697. package/utils/promotions.js +0 -53
  1698. package/utils/tests/commonUtils.test.js +0 -37
  1699. package/utils/usePersistantState.js +0 -64
  1700. package/utils/withDynamicLazyLoading.js +0 -17
  1701. /package/components/{organisms → atoms}/GroupItemLabel/index.js +0 -0
  1702. /package/components/{organisms → molecules}/PageHeader/index.js +0 -0
@@ -4,191 +4,105 @@
4
4
  * WorkflowConfigurationSection
5
5
  *
6
6
  */
7
- import React, {
8
- useState,
9
- useEffect,
10
- useMemo,
11
- useCallback,
12
- useRef,
13
- } from 'react';
7
+
8
+ import React, { useState, useEffect, useMemo } from 'react';
14
9
  import PropTypes from 'prop-types';
15
10
  import classnames from 'classnames';
16
11
  import isEmpty from 'lodash/isEmpty';
17
12
  import cloneDeep from 'lodash/cloneDeep';
18
13
  import findIndex from 'lodash/findIndex';
19
14
  import withStyles from 'utils/withStyles';
20
- import { withRouter } from 'react-router-dom';
21
15
  import { injectIntl, intlShape, FormattedMessage } from 'react-intl';
22
- import { v4 as uuidv4 } from 'uuid';
16
+ import {
17
+ validateNumber,
18
+ validateTitle,
19
+ formatMessageHandler,
20
+ getUICompatibleCommChannelsNames,
21
+ } from 'utils/commonUtils';
22
+
23
23
  import { compose, bindActionCreators } from 'redux';
24
24
  import { createStructuredSelector } from 'reselect';
25
25
  import { connect } from 'react-redux';
26
- import moment from 'moment';
27
- import { request, getAPICallObject } from '../../../services/api';
26
+ import injectSaga from 'utils/injectSaga';
27
+ import injectReducer from 'utils/injectReducer';
28
+ import clearDataOnUnmount from 'utils/clearDataOnUnmount';
28
29
 
29
30
  import CapLabel from '@capillarytech/cap-ui-library/CapLabel';
30
31
  import CapBanner from '@capillarytech/cap-ui-library/CapBanner';
31
32
  import CapRow from '@capillarytech/cap-ui-library/CapRow';
32
- import CapIcon from '@capillarytech/cap-ui-library/CapIcon';
33
33
  import CapHeading from '@capillarytech/cap-ui-library/CapHeading';
34
- import CapAlert from '@capillarytech/cap-ui-library/CapAlert';
34
+ import CapIcon from '@capillarytech/cap-ui-library/CapIcon';
35
+ import CapHeader from '@capillarytech/cap-ui-library/CapHeader';
36
+ import CapInput from '@capillarytech/cap-ui-library/CapInput';
35
37
  import CapColumn from '@capillarytech/cap-ui-library/CapColumn';
36
38
  import CapButton from '@capillarytech/cap-ui-library/CapButton';
37
- import CapTooltip from '@capillarytech/cap-ui-library/CapTooltip';
39
+ import CapAlert from '@capillarytech/cap-ui-library/CapAlert';
40
+ import CapError from '@capillarytech/cap-ui-library/CapError';
38
41
  import StyledVars from '@capillarytech/cap-ui-library/styled';
39
42
  import CapSpin from '@capillarytech/cap-ui-library/CapSpin';
40
- import CapNotification from '@capillarytech/cap-ui-library/CapNotification';
41
- import CapDivider from '@capillarytech/cap-ui-library/CapDivider';
42
- import CapInput from '@capillarytech/cap-ui-library/CapInput';
43
- import CapError from '@capillarytech/cap-ui-library/CapError';
44
43
  import CapExpressionEditor from '@capillarytech/cap-ui-library/CapExpressionEditor';
45
- import CapImage from '@capillarytech/cap-ui-library/CapImage';
46
- import useDeepCompareEffect from 'use-deep-compare-effect';
47
- import ConfirmationModal from '../../molecules/ConfirmationModal';
48
-
44
+ import CapNotification from '@capillarytech/cap-ui-library/CapNotification';
49
45
  import { getSubRulesetIds } from 'utils/workflow';
50
46
  import withErrorBoundary from 'utils/withErrorBoundary';
51
- import injectSaga from 'utils/injectSaga';
52
- import injectReducer from 'utils/injectReducer';
53
- import clearDataOnUnmount from 'utils/clearDataOnUnmount';
54
47
 
55
- import CapAskAira from '@capillarytech/cap-ui-library/CapAskAira';
56
48
  import messages from './messages';
57
49
  import * as style from './style';
58
50
  import globalMessages from '../../pages/Cap/messages';
51
+ import Tag from '../../atoms/Tag';
59
52
  import CustomTree from '../../molecules/CustomTree';
60
53
  import AddActionConditionWorkflow from '../../molecules/AddActionConditionWorkflow';
54
+ import ColorPatch from '../../molecules/ColorPatch';
55
+ import ActionExpression from '../../molecules/ActionExpression';
61
56
  import {
62
57
  getActionList,
63
58
  processRuleSetsData,
64
59
  getUpdatedRuleSetByAction,
65
60
  processRuleSetDelete,
66
- getNewRuleSetInfo,
67
- getRulesetsOrRulesetsByEventTypeV2,
68
- checkForAlternateCurrencyEventType,
69
61
  } from './utils';
70
62
  import * as actions from './actions';
71
- import { targetGroupsActionsMapped as targetGroupsActionsMappedAction } from '../TargetPointAllocationWorkflowAction/actions';
63
+ import * as tiersActions from '../Tiers/actions';
72
64
  import * as programSummaryActions from '../../pages/ProgramSummary/actions';
73
- import * as programSummaryContext from '../../pages/ProgramSummary/context';
74
65
  import * as capActions from '../../pages/Cap/actions';
75
66
  import * as selectors from './selectors';
76
- import { makeSelectTargetGroups } from '../TargetPointAllocationWorkflowAction/selectors';
77
67
  import saga from './saga';
78
- import targetPointAllocationWorkflowSaga from '../TargetPointAllocationWorkflowAction/saga';
79
68
  import reducer from './reducer';
80
- import targetPointAllocationWorkflowReducer from '../TargetPointAllocationWorkflowAction/reducer';
69
+ import * as programContext from '../../pages/ProgramSummary/context';
81
70
  import {
82
71
  REQUEST,
83
72
  SUCCESS,
84
73
  FAILURE,
85
74
  ACTIONS_MSG_MAP,
86
- SOURCE_LOYALTY,
87
- SOURCE_PROMOTION,
88
- HIDE_SCOPE_FOR_EVENT,
89
- // LOYALTY_PROMOTION_ENABLED,
90
- MODE_CONFIGURE,
91
- TRACKER_SOURCE_VALUE,
92
- POINTSENGINE_ENDPOINT,
93
- ENABLE_PROGRAM_VERSIONING,
94
- DRAFT,
95
- LIVE,
96
- MODE_VIEW,
97
- SUPPORT_QUANTITY_FEATURE,
98
- CREATE,
99
- EDIT,
100
- VIEW,
101
- CDN_BASE_URL,
102
- DESC,
103
- CDN_BUCKET_PATH,
104
- CDN_TRANSFORM_SUFFIX,
105
75
  } from '../../pages/App/constants';
106
- import {
107
- components as components_constants,
108
- type,
109
- } from '../../pages/Cap/constants';
110
- import {
111
- makeSelectOrgConfigDetails,
112
- makeSelectTrackers,
113
- } from '../../pages/ProgramSummary/selectors';
76
+ import { makeSelectTrackers } from '../../pages/ProgramSummary/selectors';
114
77
  import {
115
78
  makeSelectCap,
116
79
  makeSelectUpsertAction,
117
- makeSelectTiers,
118
- makeSelectAlternateCurrencyFlagStatus,
119
80
  } from '../../pages/Cap/selectors';
81
+ import { makeSelectTiers } from '../Tiers/selectors';
120
82
  import {
121
83
  FORWARD,
122
84
  ACTIONS_ICON_MAP,
123
- UPGRADE_SLAB_ACTION_STRATEGY,
124
- DEFAULT_PROMOTION_DESCRIPTION,
125
- RETURN_BILL_ACTION,
126
- REEVALUATE_REGULAR_BILL,
127
- RENEW_SLAB_ACTION,
128
- UPGRADE_SLAB_ACTION_SLAB,
85
+ LINEITEM_EXTENDED_FIELD,
129
86
  UPGRADE_SLAB_ACTION,
130
- CAPPING_UPPERCASE,
131
- SCOPE_UPPERCASE,
132
- POINTS_REDEEMED_ALL_REGEX,
133
- POINTS_REDEEMED_VALID_REGEX,
134
- STATUS,
135
- CONVERT_POINTS_TO_REWARD_ACTION,
136
- BADGES_UI_ENABLED,
137
- BADGE_EARN_ACTION,
138
- ISSUE_PROMOTION_ACTION,
139
- EARN_PROMOTION_ACTION,
140
- ENABLE_PROMOTION_TYPE,
141
- ISSUE_ALTERNATE_CURRENCY,
142
- TRANSACTION_ADD,
143
- TARGET_COMPLETED,
144
- ENABLE_ADVANCE_LOYALTY_PROMOTIONS,
145
- ENROLL_IN_PROMOTION,
146
- ACTIONS_TO_CONFIRM_BEFORE_DELETE,
147
- BADGE,
148
- AWARD_TARGET_POINTS_ACTION,
149
- AWARD_REFEREE_POINTS_ACTION,
150
- AWARD_REFERRER_POINTS_ACTION
87
+ UPGRADE_SLAB_ACTION_STRATEGY,
151
88
  } from './constants';
152
- import { AI_RULE_WRITING_DISABLED } from '../NavigationBar/constants';
153
-
154
89
  import WorkflowActions from './WorkflowActions';
155
90
  import CreateActionButton from '../../molecules/CreateActionButton';
91
+ import EllipsisText from '../../atoms/EllipsisText';
156
92
  import { Flex } from '../../pages/Cap/style';
157
93
  import ErrorBoundaryWrapper from '../../molecules/ErrorBoundaryWrapper';
158
- import ConditionExpressionLayout from '../../molecules/ConditionExpressionLayout';
159
- import { gtmPush } from '../../../utils/gtmTrackers';
160
- import { getWorkflowMode } from './context';
161
- import pointsDefaultImg from '../../../assets/Points.png';
162
- import ScopeSlidebox from '../ScopeSlidebox';
163
- import CappingSlidebox from '../CappingSlidebox';
164
- import ActionExpression from '../ActionExpression';
165
- import Tag from '../../atoms/Tag';
166
- import ColorPatch from '../../molecules/ColorPatch';
167
- import {
168
- eventTypesMap,
169
- validateNumber,
170
- validateTitle,
171
- formatMessageHandler,
172
- getUICompatibleCommChannelsNames,
173
- getHighlightedText,
174
- debounceUtil,
175
- compressData,
176
- } from '../../../utils/commonUtils';
177
- import { notifyHandledException } from '../../../utils/bugsnag';
178
- import * as Api from '../../../services/api';
179
- import { badgeOwners } from '../IssueBadgeWorkflowAction/constants';
94
+
180
95
  const {
181
96
  makeSelectConfigWorkflow,
97
+ makeSelectExtendedFields,
182
98
  makeSelectEbillTemplates,
99
+ makeSelectLabels,
183
100
  makeSelectDeleteAction,
184
101
  makeSelectDeleteCondition,
185
102
  makeSelectExpressionOnUpdate,
186
103
  makeSelectRemountExpEditor,
187
- makeSelectToggleOnAction,
188
- makeSelectIsScrolling,
189
- makeSelectDynamicWidth,
190
- makeSelectAlternateCurrencyList,
191
104
  } = selectors;
105
+ const { getProgramContext } = programContext;
192
106
  const { styles } = style;
193
107
  const {
194
108
  CAP_G18,
@@ -197,151 +111,79 @@ const {
197
111
  CAP_SPACE_32,
198
112
  CAP_WHITE,
199
113
  CAP_G09,
114
+ CAP_PALE_GREY,
200
115
  } = StyledVars;
201
- const { getProgramContext } = programSummaryContext;
202
- import penguin from '../../../assets/penguin.svg';
203
-
204
- export const WorkflowConfigurationSection = props => {
205
- const {
206
- /** Injected Props */
207
- orgConfigDetails: {
208
- getOrgConfigDetailsStatus,
209
- orgConfigDetailsList,
210
- getOrgConfigDraftDetailsStatus,
211
- orgConfigDraftDetailsList,
212
- },
213
- match: {
214
- params: { programId: paramProgramID, mode },
215
- },
216
- /** Inejcted Props */
217
- isPromotionEditFlow = false,
218
- source = SOURCE_LOYALTY,
219
- intl: { formatMessage },
220
- actions,
221
- targetGroupsActionsMappedAction,
222
- className,
223
- eventType,
224
- setSelectedRuleset,
225
- showSearch,
226
- userData,
227
- workflowData: {
228
- getRulesetsStatus,
229
- rulesets = [],
230
- upsertRulesetsStatus,
231
- getRulesetsByEventTypeStatus,
232
- rulesetsByEventType = [],
233
- isRulesetsByEventTypeUpdated,
234
- getGrammerStatus,
235
- grammer = {},
236
- getActionDependenciesStatus,
237
- actionDependencies = {},
238
- createRuleStatus,
239
- saveRulesetStatus,
240
- clearRulesetCacheStatus,
241
- } = {},
242
- trackersData: { getTrackersStatus, trackersDetails = [] } = {},
243
- tiers: { getTierStatus, tier = {} } = {},
244
- selectedRuleset,
245
- processedRuleSets,
246
- setProcessedRuleSets,
247
- groups,
248
- setGroups,
249
- pointStrategy = {},
250
- pointTypeIdData = {},
251
- deleteActionData: { deleteActionStatus } = {},
252
- deleteConditionData: { deleteConditionStatus } = {},
253
- capActions,
254
- eventCategory,
255
- actionDetailsData: { upsertActionStatus } = {},
256
- exp,
257
- setExp,
258
- expJSON,
259
- setExpJSON,
260
- expError,
261
- setExpError,
262
- selectedRule,
263
- setSelectedRule,
264
- saveExpression,
265
- rules,
266
- setRules,
267
- expressionOnUpdate: { expressionOnUpdate = {} },
268
- isSaveDisabled,
269
- setIsSaveDisabled,
270
- remountExpEditor: { remountExpEditor = false } = {},
271
- addTrackerTags,
272
- programSummaryActions,
273
- fleetLoyaltyEnabled,
274
- programId,
275
- currentProgram = {},
276
- isGenericEvent = false,
277
- triggerSaveExpression = false,
278
- triggerSaveRuleset = false,
279
- promotionFormData = {},
280
- promotionRulesets = [],
281
- getPromotionByIdStatus = '',
282
- getPromotionById = () => {},
283
- toggleOnAction,
284
- setPromotionPayload = () => {},
285
- draftDestinationName,
286
- isScrolling,
287
- dynamicWidth,
288
- /** Scope/Cap related props */
289
- handleUpdateTrackerCappedSets,
290
- areProrateOnOptionsDisabled,
291
- billType,
292
- alternateCurrencyList: { alternateCurrencyListData = [] } = {},
293
- alternateCurrencyFlag: {
294
- alternateCurrencyStatus: {
295
- value: alternateCurrencyFlagValue = false,
296
- } = {},
297
- } = {},
298
- targetGroupData: { targetGroupsActionsMapped = [] } = {},
299
- } = props;
300
- const { currentOrgDetails, user: { id: userId = '' } = {} } = userData;
301
- const {
302
- basic_details: { name: orgName = '' } = {},
303
- accessibleFeatures = [],
304
- } = currentOrgDetails;
305
- const hasProgramVersioningEnabled = accessibleFeatures.includes(
306
- ENABLE_PROGRAM_VERSIONING,
307
- );
308
- const hasBadgesEnabled = accessibleFeatures.includes(BADGES_UI_ENABLED);
309
- const hasIssueEarnPromotionActionEnabled = accessibleFeatures.includes(
310
- ENABLE_ADVANCE_LOYALTY_PROMOTIONS,
311
- );
312
- const isAiRuleWritingDisabled = accessibleFeatures?.includes(
313
- AI_RULE_WRITING_DISABLED,
314
- );
315
- /* Commented code to serve as a reference for implementing feature control for Quantity options in the future.
316
- const hasQuantityOptionPresent = accessibleFeatures.includes(
317
- SUPPORT_QUANTITY_FEATURE,
318
- );
319
- */
320
- const hasQuantityOptionPresent = true;
321
- const [isV2FlowEnabled, setIsV2FlowEnabled] = useState(true);
322
- /* Commented code to serve as a reference for implementing feature control for promotions in the future. */
323
- // const hasNewUIPromotionEnabled = accessibleFeatures.includes(
324
- // LOYALTY_PROMOTION_ENABLED,
325
- // );
326
- /** End */
327
- const hasNewUIPromotionEnabled = true;
328
- const toggleOnActionMemo = useMemo(() => toggleOnAction?.toJS(), [
329
- toggleOnAction,
330
- ]);
331
- const [actionList, setActionList] = useState(null);
332
116
 
117
+ const WorkflowConfigurationSection = ({
118
+ intl: { formatMessage },
119
+ actions,
120
+ className,
121
+ eventType,
122
+ setSelectedRuleset,
123
+ workflowData: {
124
+ getRulesetsStatus,
125
+ rulesets = [],
126
+ upsertRulesetsStatus,
127
+ getRulesetsByEventTypeStatus,
128
+ rulesetsByEventType = [],
129
+ isRulesetsByEventTypeUpdated,
130
+ getGrammerStatus,
131
+ grammer = {},
132
+ getActionDependenciesStatus,
133
+ actionDependencies = {},
134
+ createRuleStatus,
135
+ saveRulesetStatus,
136
+ clearRulesetCacheStatus,
137
+ } = {},
138
+ extendedFieldsData: { extendedFields } = {},
139
+ trackersData: { getTrackersStatus, trackersDetails = [] } = {},
140
+ tiers: { getTierStatus, tier = {} } = {},
141
+ ebillTemplatesData: {
142
+ ebillTemplates = [],
143
+ getEbillTemplatesStatus = '',
144
+ } = {},
145
+ labelData: { labels = [] },
146
+ selectedRuleset,
147
+ processedRuleSets,
148
+ setProcessedRuleSets,
149
+ groups,
150
+ setGroups,
151
+ pointStrategy = {},
152
+ pointTypeIdData = {},
153
+ deleteActionData: { deleteActionStatus } = {},
154
+ deleteConditionData: { deleteConditionStatus } = {},
155
+ capActions,
156
+ eventCategory,
157
+ actionDetailsData: { upsertActionStatus } = {},
158
+ exp,
159
+ setExp,
160
+ expJSON,
161
+ setExpJSON,
162
+ expError,
163
+ setExpError,
164
+ selectedRule,
165
+ setSelectedRule,
166
+ saveExpression,
167
+ rules,
168
+ setRules,
169
+ expressionOnUpdate: { expressionOnUpdate = {} },
170
+ isSaveDisabled,
171
+ setIsSaveDisabled,
172
+ remountExpEditor: { remountExpEditor = false } = {},
173
+ addTrackerTags,
174
+ tiersActions,
175
+ programSummaryActions,
176
+ fleetLoyaltyEnabled,
177
+ }) => {
178
+ const { programId, currentProgram = {} } = getProgramContext();
179
+ const [actionList, setActionList] = useState(null);
333
180
  const [showActions, setShowActions] = useState(false);
334
181
  const [selectedAction, setSelectedAction] = useState('');
335
-
336
182
  const [showAction, setShowAction] = useState(false);
337
- const [collapse, setCollapse] = useState(true);
338
- const [collapseKey, setCollapseKey] = useState(`collapse_${uuidv4()}`);
339
183
  const [modifiedGrammer, updateModifiedGrammer] = useState(grammer);
340
184
  const [caseActionData, setCaseActionData] = useState({
341
185
  actionCase: null,
342
186
  action: {},
343
- // by default, the mode of the action is CREATE.
344
- mode: CREATE,
345
187
  });
346
188
  const [onGoingRequest, updateOnGoingRequest] = useState({});
347
189
  const [localPointStrategy, setLocalPointStrategy] = useState(pointStrategy);
@@ -356,47 +198,6 @@ export const WorkflowConfigurationSection = props => {
356
198
  const [evaluatedTracker, updateEvaluatedTrackers] = useState({});
357
199
  const [showSenderInformation, setShowSenderInformation] = useState(false);
358
200
  const [reverseAnimation, setReverseAnimation] = useState(false);
359
- const [startRuleIdentifier, setStartRuleIdentifier] = useState('');
360
- const [setsConditionsSearch, setSetsConditionsSearch] = useState();
361
- const [searchCounter, setSearchCounter] = useState(0);
362
- const [searchConditionCounter, setSearchConditionCounter] = useState(0);
363
- const [searchIndex, setSearchIndex] = useState(1);
364
- const [localIsDraftPresent, setLocalIsDraftPresent] = useState(false);
365
- // useState variable to track x in pointsRedeemedInPastDays(x)
366
- const [isInvalidDays, setIsInvalidDays] = useState(false);
367
- const [showUnClaimBadgeConfirmationModal, setShowUnClaimBadgeConfirmationModal] = useState(false);
368
-
369
- let localCounter = 0;
370
-
371
- const { isPreviewMode, maxGroupItemWidth } = getWorkflowMode();
372
- let isDraftPresent =
373
- orgConfigDraftDetailsList?.length > 0 || localIsDraftPresent;
374
- /** Need to add versioning related check*/
375
- if (hasProgramVersioningEnabled) {
376
- var { version } = getProgramContext() || {};
377
- }
378
-
379
- const debouncedWidth = useRef(
380
- debounceUtil(value => {
381
- actions.setDynamicWidth(value);
382
- actions.setIsScrolling(false);
383
- }, 50),
384
- );
385
-
386
- const handleScroll = e => {
387
- if (e.nativeEvent.target.scrollLeft !== dynamicWidth) {
388
- if (!isScrolling) {
389
- actions.setIsScrolling(true);
390
- return;
391
- }
392
- const value = e.nativeEvent.target.scrollLeft;
393
- debouncedWidth.current(value);
394
- }
395
- };
396
-
397
- useDeepCompareEffect(() => setLocalPointStrategy(pointStrategy), [
398
- pointStrategy,
399
- ]);
400
201
  useEffect(
401
202
  () => {
402
203
  try {
@@ -404,24 +205,6 @@ export const WorkflowConfigurationSection = props => {
404
205
  let expUpdateRequired = false;
405
206
  const onGoingRequestTemp = {};
406
207
  const modifiedGrammer = cloneDeep(grammer);
407
- /** Regex matching for pointsRedeemedInPastDays - Start */
408
- let matchesAll;
409
- let matches;
410
- try {
411
- matches = exp?.match(POINTS_REDEEMED_VALID_REGEX);
412
- matchesAll = exp?.match(POINTS_REDEEMED_ALL_REGEX);
413
- } catch (err) {
414
- notifyHandledException(err);
415
- }
416
- let invalidMatch = false;
417
- if (matches?.length !== matchesAll?.length) {
418
- setExpError(true);
419
- invalidMatch = true;
420
- }
421
- invalidMatch === true
422
- ? setIsInvalidDays(true)
423
- : setIsInvalidDays(false);
424
- /** Regex matching for pointsRedeemedInPastDays - End */
425
208
  const operandsArray = [];
426
209
  const parsedJSON = JSON.parse(expJSON);
427
210
  const findSubsets = opds => {
@@ -439,7 +222,7 @@ export const WorkflowConfigurationSection = props => {
439
222
  } else {
440
223
  operandsArray.push(parsedJSON?.operands);
441
224
  }
442
- operandsArray.forEach(operands => {
225
+ operandsArray.map(operands => {
443
226
  let detailsValue = [];
444
227
  let grammerMethod;
445
228
  let grammerTypeValue;
@@ -452,7 +235,7 @@ export const WorkflowConfigurationSection = props => {
452
235
  let functionIndex = false;
453
236
  let hasFuntion = false;
454
237
  Array.isArray(operands) &&
455
- operands?.forEach((rule, index) => {
238
+ operands?.map((rule, index) => {
456
239
  detailsValue.push(rule);
457
240
  if (rule?.type?.includes('function')) {
458
241
  hasFuntion = true;
@@ -460,7 +243,7 @@ export const WorkflowConfigurationSection = props => {
460
243
  }
461
244
  });
462
245
  if (hasFuntion) {
463
- detailsValue.forEach(({ type, value }, index) => {
246
+ detailsValue.map(({ type, value }, index) => {
464
247
  if (index === 0) {
465
248
  grammerTypeValue = type?.split(':')?.[0];
466
249
  grammerType = grammer?.types?.[type.split(':')?.[0]];
@@ -548,23 +331,19 @@ export const WorkflowConfigurationSection = props => {
548
331
  getTrackersStatus === REQUEST ||
549
332
  upsertRulesetsStatus === REQUEST ||
550
333
  getActionDependenciesStatus === REQUEST ||
334
+ getEbillTemplatesStatus === REQUEST ||
551
335
  createRuleStatus === REQUEST ||
552
336
  deleteConditionStatus === REQUEST ||
553
337
  saveRulesetStatus === REQUEST ||
554
338
  clearRulesetCacheStatus === REQUEST ||
555
- getRulesetsByEventTypeStatus === REQUEST ||
556
- getOrgConfigDraftDetailsStatus === REQUEST;
339
+ getRulesetsByEventTypeStatus === REQUEST;
557
340
 
558
341
  const isAPIError =
559
342
  getRulesetsStatus === FAILURE ||
560
343
  getTrackersStatus === FAILURE ||
561
344
  getTierStatus === FAILURE ||
562
345
  clearRulesetCacheStatus === FAILURE ||
563
- getRulesetsByEventTypeStatus === FAILURE ||
564
- getOrgConfigDraftDetailsStatus === FAILURE ||
565
- (hasProgramVersioningEnabled
566
- ? getOrgConfigDetailsStatus === FAILURE
567
- : false);
346
+ getRulesetsByEventTypeStatus === FAILURE;
568
347
 
569
348
  useEffect(
570
349
  () => {
@@ -580,25 +359,11 @@ export const WorkflowConfigurationSection = props => {
580
359
  setExpError(isError);
581
360
  };
582
361
 
583
- useEffect(
584
- () => {
585
- if (!isPromotionEditFlow && source === SOURCE_PROMOTION) {
586
- onCreateNewRuleSet();
587
- } else {
588
- processWorflowData(promotionRulesets);
589
- setStartRuleIdentifier(promotionRulesets?.[0]?.name);
590
- }
591
- if (isGenericEvent) {
592
- actions.getEvents();
593
- }
594
- },
595
- [
596
- JSON.stringify(promotionRulesets),
597
- source,
598
- isGenericEvent,
599
- isPromotionEditFlow,
600
- ],
601
- );
362
+ useEffect(() => {
363
+ actions.getExtendedFields(LINEITEM_EXTENDED_FIELD, programId);
364
+ actions.getEbillTemplates();
365
+ actions.getLabels();
366
+ }, []);
602
367
 
603
368
  useEffect(
604
369
  () => {
@@ -628,191 +393,33 @@ export const WorkflowConfigurationSection = props => {
628
393
  setSelectedRule({});
629
394
  setActionList(null);
630
395
  setRules([]);
631
- actions.getGrammer(eventType, programId);
396
+ actions.getGrammer(eventType);
632
397
  clearRulesetsCache();
633
398
  },
634
399
  [eventType],
635
400
  );
636
401
 
637
- const getRulesets = queryParams =>
638
- actions.getRulesets(programId, queryParams,eventType,null,false);
639
-
640
- const getRulesetsV2 = queryParams =>
641
- actions.getRulesets(programId, queryParams,eventType,null,true);
642
-
643
- const getRulesetsByEventType = queryParams =>
644
- actions.getRulesetsByEventType(programId, eventType, queryParams);
645
-
646
- const getTiers = useCallback(() => capActions.getTier(programId), [
647
- programId,
648
- capActions,
649
- ]);
650
-
651
- useEffect(
652
- () => {
653
- if (programId !== undefined && !STATUS[getTierStatus]) {
654
- getTiers();
655
- }
656
- },
657
- [programId, getTierStatus, getTiers],
658
- );
659
-
660
- useEffect(
661
- () => {
662
- if(!isV2FlowEnabled){
663
- if (
664
- (mode === MODE_CONFIGURE || mode === MODE_VIEW) &&
665
- source !== SOURCE_PROMOTION &&
666
- getOrgConfigDraftDetailsStatus === SUCCESS &&
667
- !version
668
- ) {
669
- getRulesets({
670
- programId,
671
- status: mode === MODE_CONFIGURE && isDraftPresent ? DRAFT : LIVE,
672
- endpointName: POINTSENGINE_ENDPOINT,
673
- });
674
- return;
675
- }
676
- if (
677
- mode !== MODE_CONFIGURE &&
678
- getOrgConfigDetailsStatus === SUCCESS &&
679
- version !== null
680
- ) {
681
- getRulesetsOrRulesetsByEventTypeV2(
682
- mode,
683
- version,
684
- programId,
685
- getRulesets,
686
- orgConfigDetailsList,
687
- );
688
- }
689
- }
690
- },
691
- [
692
- programId,
693
- mode,
694
- version,
695
- source,
696
- getOrgConfigDraftDetailsStatus,
697
- getOrgConfigDetailsStatus,
698
- isV2FlowEnabled
699
- ],
700
- );
701
- useEffect(
702
- () => {
703
- if(isV2FlowEnabled){
704
- if (
705
- (mode === MODE_CONFIGURE || mode === MODE_VIEW) &&
706
- source !== SOURCE_PROMOTION &&
707
- getOrgConfigDraftDetailsStatus === SUCCESS &&
708
- !version
709
- ) {
710
- getRulesetsV2({
711
- programId,
712
- status: mode === MODE_CONFIGURE && isDraftPresent ? DRAFT : LIVE,
713
- endpointName: POINTSENGINE_ENDPOINT,
714
- });
715
- return;
716
- }
717
- if (
718
- mode !== MODE_CONFIGURE &&
719
- getOrgConfigDetailsStatus === SUCCESS &&
720
- version !== null
721
- ) {
722
- getRulesetsOrRulesetsByEventTypeV2(
723
- mode,
724
- version,
725
- programId,
726
- getRulesetsV2,
727
- orgConfigDetailsList,
728
- isV2FlowEnabled
729
- );
730
- }
731
- }
732
- },
733
- [
734
- programId,
735
- mode,
736
- version,
737
- source,
738
- getOrgConfigDraftDetailsStatus,
739
- getOrgConfigDetailsStatus,
740
- eventType
741
- ],
742
- );
743
-
744
- useEffect(() => {
745
- actions.getActionDependencies();
746
- }, []);
747
-
748
402
  useEffect(
749
403
  () => {
750
- if (
751
- alternateCurrencyFlagValue &&
752
- alternateCurrencyFlagValue !== 'false'
753
- ) {
754
- const queryParams = {
755
- pageSize: 50,
756
- pageNum: 0,
757
- sortOrder: DESC,
758
- };
759
- actions.getCdnTransformationConfig();
760
- actions.getAllAlternateCurrency(
761
- { pageNumber: 0, programId: paramProgramID || programId },
762
- false,
763
- queryParams,
764
- );
765
- }
404
+ getRulesets();
405
+ actions.getActionDependencies();
766
406
  },
767
- [alternateCurrencyFlagValue],
407
+ [programId],
768
408
  );
769
409
 
770
410
  useEffect(
771
411
  () => {
772
- if (
773
- (mode === MODE_CONFIGURE || mode === MODE_VIEW) &&
774
- source !== SOURCE_PROMOTION &&
775
- getOrgConfigDraftDetailsStatus === SUCCESS &&
776
- !version
777
- ) {
778
- getRulesetsByEventType({
779
- programId,
780
- status: mode === MODE_CONFIGURE && isDraftPresent ? DRAFT : LIVE,
781
- endpointName: POINTSENGINE_ENDPOINT,
782
- eventType,
783
- });
784
- return;
785
- }
786
- if (
787
- mode !== MODE_CONFIGURE &&
788
- getOrgConfigDetailsStatus === SUCCESS &&
789
- version !== null
790
- ) {
791
- getRulesetsOrRulesetsByEventTypeV2(
792
- mode,
793
- version,
794
- programId,
795
- getRulesetsByEventType,
796
- orgConfigDetailsList,
797
- );
798
- }
412
+ getRulesetsByEventType();
799
413
  },
800
- [
801
- eventType,
802
- source,
803
- version,
804
- mode,
805
- programId,
806
- getOrgConfigDetailsStatus,
807
- getOrgConfigDraftDetailsStatus,
808
- ],
414
+ [eventType, programId],
809
415
  );
810
416
 
811
- const clearRulesetsCache = () => {
812
- if (source !== SOURCE_PROMOTION)
813
- actions.clearRulesetsCache(programId, eventType);
814
- };
815
-
417
+ const getRulesets = () => actions.getRulesets(programId);
418
+ const getRulesetsByEventType = () =>
419
+ actions.getRulesetsByEventType(programId, eventType);
420
+ const clearRulesetsCache = () =>
421
+ actions.clearRulesetsCache(programId, eventType);
422
+ const getTiers = () => tiersActions.getTier(programId);
816
423
  const getTrackersData = () =>
817
424
  programSummaryActions.getTrackersData({ programId });
818
425
 
@@ -835,11 +442,6 @@ export const WorkflowConfigurationSection = props => {
835
442
  getRulesetsStatus === SUCCESS
836
443
  ) {
837
444
  processWorflowData(rulesets);
838
- //BELOW BLOCK IS ADDED TO FIX THE EXPRESSION NOT GETTING UPDATED AFTER EVENT SWITCH
839
- //TESTED WITH BOTH OLD AND NEW FLOW IN VIEW AND EDIT
840
- if (mode !== MODE_VIEW) {
841
- setExp('');
842
- }
843
445
  }
844
446
  },
845
447
  [getRulesetsStatus, getRulesetsByEventTypeStatus],
@@ -879,26 +481,6 @@ export const WorkflowConfigurationSection = props => {
879
481
  [remountExpEditor],
880
482
  );
881
483
 
882
- useDeepCompareEffect(
883
- () => {
884
- let cappingInfo =
885
- processedRuleSets?.group[selectedRuleset]?.cappingInfo || [];
886
- if (!isEmpty(cappingInfo)) {
887
- cappingInfo.forEach(capping => {
888
- if (capping.name === TRACKER_SOURCE_VALUE) {
889
- try {
890
- const { trackerId } = JSON.parse(capping.propertyValuesJson);
891
- handleUpdateTrackerCappedSets(true, selectedRuleset, trackerId);
892
- } catch (err) {
893
- notifyHandledException(err);
894
- }
895
- }
896
- });
897
- }
898
- },
899
- [processedRuleSets, selectedRuleset],
900
- );
901
-
902
484
  const refreshStrategyData = () => {
903
485
  actions.getStrategyDataWorkflow({ programId }, result => {
904
486
  if (result?.result?.strategyValue) {
@@ -908,46 +490,20 @@ export const WorkflowConfigurationSection = props => {
908
490
  });
909
491
  };
910
492
 
911
- const processWorflowData = useCallback(
912
- rulesets => {
913
- const { downloadRuleSet } = actions;
914
- const {
915
- groupObj,
916
- groupTreeList,
917
- evaluatedTrackers,
918
- } = processRuleSetsData({
919
- eventType,
920
- rulesets,
921
- rulesetsByEventType,
922
- trackersDetails,
923
- currentProgram,
924
- source,
925
- downloadRuleSet,
926
- // selectedRuleset,
927
- draftDestinationName,
928
- processWorflowData,
929
- setIsV2FlowEnabled,
930
- });
931
- setGroups([...groupTreeList]);
932
-
933
- setProcessedRuleSets({
934
- group: groupObj,
935
- });
936
- updateEvaluatedTrackers(evaluatedTrackers);
937
- },
938
- [
939
- currentProgram,
493
+ const processWorflowData = rulesets => {
494
+ const { groupObj, groupTreeList, evaluatedTrackers } = processRuleSetsData({
940
495
  eventType,
496
+ rulesets,
941
497
  rulesetsByEventType,
942
- // selectedRuleset,
943
- setGroups,
944
- source,
945
- setProcessedRuleSets,
946
498
  trackersDetails,
947
- draftDestinationName,
948
- actions,
949
- ],
950
- );
499
+ currentProgram,
500
+ });
501
+ setGroups([...groupTreeList]);
502
+ setProcessedRuleSets({
503
+ group: groupObj,
504
+ });
505
+ updateEvaluatedTrackers(evaluatedTrackers);
506
+ };
951
507
 
952
508
  useEffect(
953
509
  () => {
@@ -958,149 +514,30 @@ export const WorkflowConfigurationSection = props => {
958
514
  [processedRuleSets],
959
515
  );
960
516
 
961
- useEffect(
962
- () => {
963
- saveExpression();
964
- },
965
- [triggerSaveExpression],
966
- );
967
-
968
- const getPayload = promotionData => {
969
- const {
970
- [components_constants.createPromotionForm]: {
971
- id,
972
- name,
973
- description,
974
- type,
975
- startDate,
976
- endDate,
977
- programId,
978
- eventName,
979
- isActive,
980
- useProportions,
981
- promotionType,
982
- } = {},
983
- [components_constants.promotionAdvancedSettings]: {
984
- pointsPerEventLimit,
985
- eventsPerMemberLimit,
986
- pointsPerMemberLimit,
987
- pointsPerPromotionLimit,
988
- externalIdentifier,
989
- promotionMetadata,
990
- isStackable,
991
- isExclusive,
992
- isAlwaysApply
993
- } = {},
994
- RULESETS = {},
995
- } = promotionData || {};
996
- const rulesetInfo = Object.keys(RULESETS).map(key => RULESETS[key]);
997
- const payload = {
998
- name,
999
- description,
1000
- type,
1001
- useProportions,
1002
- startDate: parseInt(moment(startDate).format('x'), 10),
1003
- endDate: parseInt(
1004
- moment(endDate)
1005
- .endOf('day')
1006
- .format('x'),
1007
- 10,
1008
- ),
1009
- isActive,
1010
- pointsPerEventLimit: pointsPerEventLimit || 0,
1011
- eventsPerMemberLimit: eventsPerMemberLimit || 0,
1012
- pointsPerMemberLimit: pointsPerMemberLimit || 0,
1013
- pointsPerPromotionLimit: pointsPerPromotionLimit || 0,
1014
- isStackable,
1015
- isExclusive,
1016
- isAlwaysApply,
1017
- programId,
1018
- eventName,
1019
- startRuleIdentifier,
1020
- id: id || `temp_${uuidv4()}`,
1021
- promotionEvaluationType: 'AFTER_EVENT',
1022
- sourceId: -1,
1023
- promotionSourceType: '',
1024
- promoIdentifer: externalIdentifier,
1025
- rulesetInfo,
1026
- promotionMetadata,
1027
- promotionType,
1028
- };
1029
- return payload;
517
+ const onGroupItemClick = groupIds => {
518
+ const groupId = groupIds?.[0];
519
+ if (groupId) {
520
+ saveExpression(groupId);
521
+ const { group = {} } = processedRuleSets;
522
+ const { rules } = group[groupId] || {};
523
+ populateActiveRules(rules);
524
+ setSelectedRuleset(groupId);
525
+ }
526
+ };
527
+ const populateActiveRules = (
528
+ activeRules = [],
529
+ defaultSelectedRuleIndex = 0,
530
+ ) => {
531
+ setSelectedRule(
532
+ !isEmpty(activeRules[defaultSelectedRuleIndex])
533
+ ? {
534
+ ...activeRules[defaultSelectedRuleIndex],
535
+ displayName: getConditionName(defaultSelectedRuleIndex + 1),
536
+ }
537
+ : {},
538
+ );
539
+ setRules(activeRules);
1030
540
  };
1031
-
1032
- useEffect(
1033
- () => {
1034
- if (triggerSaveRuleset) {
1035
- saveExpression(null, updatedPromotionRulesets => {
1036
- const clonnedPromotionFormData = cloneDeep(promotionFormData);
1037
- clonnedPromotionFormData['RULESETS'] = (
1038
- Object.keys(updatedPromotionRulesets?.group || {}) || []
1039
- ).length
1040
- ? updatedPromotionRulesets?.group
1041
- : processedRuleSets?.group;
1042
- const payload = getPayload(clonnedPromotionFormData);
1043
- setPromotionPayload(payload);
1044
- });
1045
- }
1046
- },
1047
- [triggerSaveRuleset],
1048
- );
1049
-
1050
- useEffect(
1051
- () => {
1052
- if (
1053
- getRulesetsStatus === SUCCESS &&
1054
- getOrgConfigDetailsStatus === SUCCESS &&
1055
- mode !== MODE_CONFIGURE &&
1056
- source === SOURCE_LOYALTY
1057
- ) {
1058
- onGroupItemClick([groups?.[0]?.key]);
1059
- }
1060
- },
1061
- // Ignoring dependencies for mode, source, groups & onGroupItemClick
1062
- // eslint-disable-next-line react-hooks/exhaustive-deps
1063
- [getOrgConfigDetailsStatus, getRulesetsStatus, processedRuleSets],
1064
- );
1065
-
1066
- const getConditionName = useCallback(
1067
- (index = '') => `${formatMessage(globalMessages.condition)} ${index}`,
1068
- [formatMessage],
1069
- );
1070
-
1071
- const populateActiveRules = useCallback(
1072
- (activeRules = [], defaultSelectedRuleIndex = 0) => {
1073
- setSelectedRule(
1074
- !isEmpty(activeRules[defaultSelectedRuleIndex])
1075
- ? {
1076
- ...activeRules[defaultSelectedRuleIndex],
1077
- displayName: getConditionName(defaultSelectedRuleIndex + 1),
1078
- }
1079
- : {},
1080
- );
1081
- setRules(activeRules);
1082
- },
1083
- [setRules, setSelectedRule, getConditionName],
1084
- );
1085
-
1086
- const onGroupItemClick = useCallback(
1087
- groupIds => {
1088
- const groupId = groupIds?.[0];
1089
- if (groupId) {
1090
- saveExpression(groupId);
1091
- const { group = {} } = processedRuleSets;
1092
- const { rules } = group[groupId] || {};
1093
- populateActiveRules(rules);
1094
- setSelectedRuleset(groupId);
1095
- }
1096
- },
1097
- [
1098
- populateActiveRules,
1099
- processedRuleSets,
1100
- saveExpression,
1101
- setSelectedRuleset,
1102
- ],
1103
- );
1104
541
 
1105
542
  const populateRules = group => {
1106
543
  if (group && group[selectedRuleset]) {
@@ -1117,22 +554,24 @@ export const WorkflowConfigurationSection = props => {
1117
554
  processedRuleSets,
1118
555
  rulesetIds: selectedRule?.dependentRulesetIds || [],
1119
556
  });
1120
- const clonnedProcessedRuleSets = cloneDeep(processedRuleSets);
1121
- if (source === SOURCE_PROMOTION) {
1122
- const filteredRules = (
1123
- clonnedProcessedRuleSets?.group?.[selectedRuleset]?.rules || []
1124
- ).filter(rule => rule.id !== ruleId);
1125
- clonnedProcessedRuleSets.group[selectedRuleset].rules = filteredRules;
1126
- clonnedProcessedRuleSets.group[selectedRuleset].isPristine = false;
1127
- setProcessedRuleSets(clonnedProcessedRuleSets);
1128
- handleDeleteConditionOrAction(dependentRulesetIds, true);
1129
- } else {
1130
- clonnedProcessedRuleSets.group[selectedRuleset].isPristine = false;
1131
- handleDeleteConditionOrAction(dependentRulesetIds, true, clonnedProcessedRuleSets);
1132
- CapNotification.success({
1133
- message: formatMessage(messages.conditionDeletedSuccess),
1134
- });
1135
- }
557
+ const payload = {
558
+ rule_id: ruleId,
559
+ event_type: eventType,
560
+ ruleset_id: selectedRuleset,
561
+ dependentRulesetIds,
562
+ };
563
+ actions.deleteCondition(programId, eventType, payload, res => {
564
+ if (res?.success) {
565
+ handleDeleteConditionOrAction(dependentRulesetIds, true);
566
+ CapNotification.success({
567
+ message: formatMessage(messages.conditionDeletedSuccess),
568
+ });
569
+ } else {
570
+ CapNotification.error({
571
+ message: formatMessage(globalMessages.errorMessage),
572
+ });
573
+ }
574
+ });
1136
575
  };
1137
576
 
1138
577
  const handleConditionAction = ({ createdRule, updateProcessedRulesets }) => {
@@ -1152,8 +591,6 @@ export const WorkflowConfigurationSection = props => {
1152
591
  ruleList.push(createdRule);
1153
592
  }
1154
593
  groupClone[selectedRuleset].rules = ruleList;
1155
- groupClone[selectedRuleset].isPristine = false;
1156
-
1157
594
  populateActiveRules(ruleList, ruleList.length - 1);
1158
595
  setProcessedRuleSets({ ...processedRuleSets, group: groupClone });
1159
596
  }
@@ -1161,16 +598,9 @@ export const WorkflowConfigurationSection = props => {
1161
598
 
1162
599
  const onAddCondition = updateProcessedRulesets =>
1163
600
  actions.createRule(
1164
- {
1165
- source,
1166
- allRulesLength: (
1167
- processedRuleSets?.group?.[selectedRuleset]?.rules || []
1168
- ).length,
1169
- userId,
1170
- programId,
1171
- eventType,
1172
- rulesetId: selectedRuleset,
1173
- },
601
+ programId,
602
+ eventType,
603
+ selectedRuleset,
1174
604
  (res, createdRule) => {
1175
605
  if (res?.success) {
1176
606
  handleConditionAction({ createdRule, updateProcessedRulesets });
@@ -1188,52 +618,21 @@ export const WorkflowConfigurationSection = props => {
1188
618
  const saveExpressionAndCreateCondition = () => {
1189
619
  saveExpression(null, onAddCondition);
1190
620
  };
1191
-
1192
- const onCreateNewRuleSet = () => {
1193
- if (source === SOURCE_PROMOTION) {
1194
- const createdRuleset = getNewRuleSetInfo({
1195
- userId,
1196
- contextId: programId,
1197
- eventType,
1198
- orgName,
1199
- });
1200
- processWorflowData([createdRuleset]);
1201
- setStartRuleIdentifier(createdRuleset.name);
1202
- } else {
1203
- const compressedAllRulesetsData = compressData(
1204
- JSON.stringify(Object.values(processedRuleSets.group)),
1205
- );
1206
- const compressedEventRulesetsData = compressData(
1207
- JSON.stringify(
1208
- rulesetsByEventType.map(data => processedRuleSets?.group?.[data?.id]),
1209
- ),
1210
- );
1211
- actions.upsertRulesets(
1212
- programId,
1213
- eventType,
1214
- {
1215
- createRootRuleset: true,
1216
- allRulesetsData: compressedAllRulesetsData,
1217
- eventRulesetsData: compressedEventRulesetsData,
1218
- },
1219
- responseData => {
1220
- if (!isEmpty(responseData)) {
1221
- const rulesetList = Array.isArray(responseData)
621
+ const onCreateNewRuleSet = () =>
622
+ actions.upsertRulesets(
623
+ programId,
624
+ eventType,
625
+ { createRootRuleset: true },
626
+ responseData => {
627
+ if (!isEmpty(responseData)) {
628
+ const rulesetList = Array.isArray(responseData)
1222
629
  ? responseData
1223
630
  : [responseData];
1224
- rulesetList.map(ruleset => ({ ...ruleset, eventType }));
1225
- processWorflowData(rulesetList);
1226
- setLocalIsDraftPresent(true);
1227
- getRulesets({
1228
- programId,
1229
- status: DRAFT,
1230
- endpointName: POINTSENGINE_ENDPOINT,
1231
- });
1232
- }
1233
- },
1234
- );
1235
- }
1236
- };
631
+ rulesetList.map(ruleset => ({ ...ruleset, eventType }));
632
+ processWorflowData(rulesetList);
633
+ }
634
+ },
635
+ );
1237
636
 
1238
637
  const CreateNewRuleSet = () => (
1239
638
  <CapRow className="create-ruleset-container">
@@ -1241,35 +640,48 @@ export const WorkflowConfigurationSection = props => {
1241
640
  type="flat"
1242
641
  isAddBtn
1243
642
  onClick={onCreateNewRuleSet}
1244
- disabled={showSpin || mode !== MODE_CONFIGURE}
643
+ disabled={showSpin}
1245
644
  >
1246
645
  {formatMessage(messages.createRuleset)}
1247
646
  </CapButton>
1248
647
  </CapRow>
1249
648
  );
1250
649
 
1251
- const getHighlightedTextForConditions = (name, rulesLength = 0) => {
1252
- let counterObj = { counter: localCounter };
1253
- const highlightedText = getHighlightedText({
1254
- searchValue: setsConditionsSearch,
1255
- originalStr: name,
1256
- counterObj,
1257
- searchIndex,
1258
- isCondition: true,
1259
- setsCount: searchCounter,
1260
- });
1261
- if (counterObj.counter <= rulesLength) {
1262
- localCounter = counterObj.counter;
1263
- setSearchConditionCounter(counterObj.counter);
1264
- }
1265
- return highlightedText;
1266
- };
1267
-
1268
- const getPlainConditionTitle = name => {
1269
- setSearchConditionCounter(0);
1270
- localCounter = 0;
1271
- return name;
1272
- };
650
+ const ConditionExpressionLayout = ({
651
+ id,
652
+ changeActive,
653
+ isActive,
654
+ name,
655
+ description,
656
+ handleClose,
657
+ }) => (
658
+ <ColorPatch
659
+ className="pointer-cursor"
660
+ onClick={changeActive}
661
+ height="88px"
662
+ width="100%"
663
+ color={isActive ? CAP_PALE_GREY : CAP_WHITE}
664
+ data-id={id}
665
+ >
666
+ <CapHeader
667
+ titleClass={classnames('condition-patch-header', {
668
+ selected: isActive,
669
+ })}
670
+ size="label"
671
+ title={name}
672
+ description={<EllipsisText title={description} />}
673
+ />
674
+ <CapIcon
675
+ onClick={handleClose}
676
+ disabled={!isActive}
677
+ className={classnames(
678
+ 'close-icon',
679
+ 'lp-icon-config-workflows-remove-condition',
680
+ )}
681
+ type="close"
682
+ />
683
+ </ColorPatch>
684
+ );
1273
685
 
1274
686
  const getSelectedRuleLocal = () => {
1275
687
  const ruleIndex = findIndex(
@@ -1318,89 +730,53 @@ export const WorkflowConfigurationSection = props => {
1318
730
  delete clonnedProcessedRuleSets.group[selectedRuleset].rules[ruleIndex]
1319
731
  .caseToActions[!value];
1320
732
  }
1321
- clonnedProcessedRuleSets.group[selectedRuleset].isPristine = false;
1322
733
  setProcessedRuleSets(clonnedProcessedRuleSets);
1323
734
  };
1324
735
 
1325
- const unClaimBadge = (action) => {
1326
- const unClaimBadgePayload = {
1327
- ownerType: action.mandatoryPropertiesValues.ownerType || badgeOwners.LOYALTY,
1328
- referenceId: action.mandatoryPropertiesValues.referenceId || `${programId}_${eventType}`
1329
- };
1330
- const badgeId = action?.mandatoryPropertiesValues?.badgeMetaId;
1331
- const badgeMetaName = action?.mandatoryPropertiesValues?.badgeMetaName;
1332
- actions.unClaimBadge(unClaimBadgePayload, badgeId, res => {
1333
- if (res?.data && isEmpty(res?.errors)) {
1334
- CapNotification.success({
1335
- message: formatMessage(messages.badgeUnclaimedSuccessfully, {
1336
- badgeName: badgeMetaName || BADGE,
1337
- })
1338
- });
1339
- } else {
1340
- CapNotification.error({ message: res?.errors?.[0]?.message });
1341
- }
736
+ const removeActionHandler = (actionCase, action) => {
737
+ // getSubRulesetIds for future reference
738
+ const dependentRulesetIds =
739
+ [] ||
740
+ getSubRulesetIds({
741
+ processedRuleSets,
742
+ rulesetIds: action?.dependentRulesetIds || [],
1342
743
  });
1343
- }
1344
744
 
1345
- const removeActionHandler = (actionCase, action) => {
1346
- const dependentRulesetIds = getSubRulesetIds({
1347
- processedRuleSets,
1348
- rulesetIds: action?.dependentRulesetIds || [],
1349
- });
1350
- if (source === SOURCE_PROMOTION) {
1351
- const clonnedProcessedRuleSets = cloneDeep(processedRuleSets);
1352
- const { ruleIndex, selectedRuleLocal } = getSelectedRuleLocal();
1353
- const filteredCases = selectedRuleLocal[actionCase].filter(
1354
- ruleAction => ruleAction.id !== action.id,
1355
- );
1356
- clonnedProcessedRuleSets.group[selectedRuleset].rules[
1357
- ruleIndex
1358
- ].caseToActions[actionCase] = filteredCases;
1359
- clonnedProcessedRuleSets.group[selectedRuleset].isPristine = false;
1360
- setProcessedRuleSets(clonnedProcessedRuleSets);
1361
- if (dependentRulesetIds.length > 0) {
1362
- handleDeleteConditionOrAction(
1363
- dependentRulesetIds,
1364
- false,
1365
- clonnedProcessedRuleSets,
745
+ const payload = {
746
+ action_id: validateNumber(action?.id),
747
+ case_value: actionCase,
748
+ rule_id: validateNumber(selectedRule?.id),
749
+ event_type: eventType,
750
+ ruleset_id: validateNumber(selectedRuleset),
751
+ dependentRulesetIds,
752
+ };
753
+
754
+ actions.deleteAction({ payload, programId, eventType }, result => {
755
+ if (result?.success) {
756
+ const clonnedProcessedRuleSets = cloneDeep(processedRuleSets);
757
+ const { ruleIndex, selectedRuleLocal } = getSelectedRuleLocal();
758
+ const filteredCases = selectedRuleLocal[actionCase].filter(
759
+ ruleAction => ruleAction.id !== action.id,
1366
760
  );
1367
- }
1368
- // remove mapped targetGroup from multi select dropdown in promotion creation form
1369
- if (
1370
- action?.actionName === AWARD_TARGET_POINTS_ACTION ||
1371
- action?.actionName.includes(ISSUE_ALTERNATE_CURRENCY)
1372
- ) {
1373
- const { TargetGroupId } = action?.mandatoryPropertiesValues;
1374
- if (targetGroupsActionsMapped?.includes(String(TargetGroupId))) {
1375
- const updatedTargetGroupsActionsMapped = targetGroupsActionsMapped?.filter(
1376
- targetGroupId => targetGroupId !== TargetGroupId,
761
+ clonnedProcessedRuleSets.group[selectedRuleset].rules[
762
+ ruleIndex
763
+ ].caseToActions[actionCase] = filteredCases;
764
+ // DEPENDENT RULESET ID IS ONLY FOR FORWARD TO RULE SET AND TRACKER EVALUATION
765
+ if (action?.dependentRulesetIds?.length > 0) {
766
+ handleDeleteConditionOrAction(
767
+ dependentRulesetIds,
768
+ false,
769
+ clonnedProcessedRuleSets,
1377
770
  );
1378
- targetGroupsActionsMappedAction(updatedTargetGroupsActionsMapped);
771
+ } else {
772
+ setProcessedRuleSets(clonnedProcessedRuleSets);
1379
773
  }
1380
- }
1381
- } else {
1382
- const clonnedProcessedRuleSets = cloneDeep(processedRuleSets);
1383
- const { ruleIndex, selectedRuleLocal } = getSelectedRuleLocal();
1384
- const filteredCases = selectedRuleLocal[actionCase].filter(
1385
- ruleAction => ruleAction.id !== action.id,
1386
- );
1387
- clonnedProcessedRuleSets.group[selectedRuleset].rules[
1388
- ruleIndex
1389
- ].caseToActions[actionCase] = filteredCases;
1390
-
1391
- clonnedProcessedRuleSets.group[selectedRuleset].isPristine = false;
1392
-
1393
- // DEPENDENT RULESET ID IS ONLY FOR FORWARD TO RULE SET AND TRACKER EVALUATION
1394
- if (action?.dependentRulesetIds?.length > 0) {
1395
- handleDeleteConditionOrAction(
1396
- dependentRulesetIds,
1397
- false,
1398
- clonnedProcessedRuleSets,
1399
- );
1400
774
  } else {
1401
- setProcessedRuleSets(clonnedProcessedRuleSets);
775
+ CapNotification.error({
776
+ message: formatMessage(globalMessages.errorMessage),
777
+ });
1402
778
  }
1403
- }
779
+ });
1404
780
  };
1405
781
 
1406
782
  const addWhenConditionHandler = () => {
@@ -1419,16 +795,6 @@ export const WorkflowConfigurationSection = props => {
1419
795
  setProcessedRuleSets(clonnedProcessedRuleSets);
1420
796
  };
1421
797
 
1422
- const filterFeatureGatedActions = actionId => {
1423
- switch (actionId) {
1424
- case ISSUE_PROMOTION_ACTION:
1425
- case ENROLL_IN_PROMOTION:
1426
- return hasIssueEarnPromotionActionEnabled;
1427
- default:
1428
- return true;
1429
- }
1430
- };
1431
-
1432
798
  const onAddActionClick = (actionCase, actions = []) => {
1433
799
  const existingActionNames = actions.reduce((acc, { actionName }) => {
1434
800
  // SKIP FORWARD SETS
@@ -1437,9 +803,7 @@ export const WorkflowConfigurationSection = props => {
1437
803
  }
1438
804
  return acc;
1439
805
  }, []);
1440
-
1441
806
  const { group = {} } = processedRuleSets;
1442
-
1443
807
  const filterActionList = getActionList({
1444
808
  tier,
1445
809
  groups,
@@ -1447,10 +811,7 @@ export const WorkflowConfigurationSection = props => {
1447
811
  currentProgram,
1448
812
  actionDependencies,
1449
813
  ruleset: group[selectedRuleset],
1450
- isGenericEvent,
1451
- }).filter(actionId => !existingActionNames.includes(actionId))
1452
- .filter(actionId => filterFeatureGatedActions(actionId));
1453
-
814
+ }).filter(actionId => !existingActionNames.includes(actionId));
1454
815
  const processedActions = filterActionList
1455
816
  .map(actionId => {
1456
817
  const iconValue = ACTIONS_ICON_MAP[actionId];
@@ -1461,49 +822,6 @@ export const WorkflowConfigurationSection = props => {
1461
822
  globalMessages[actionMessageId],
1462
823
  actionMessageId,
1463
824
  );
1464
-
1465
- /* Only one of the either RETURN_BILL_ACTION or REEVALUATE_REGULAR_BILL can be selected at a time */
1466
- let isCardDisabled = false;
1467
- let tooltipProps = {};
1468
- let advanceProps = {};
1469
-
1470
- if ([REEVALUATE_REGULAR_BILL, RETURN_BILL_ACTION].includes(actionId)) {
1471
- isCardDisabled = Boolean(
1472
- actions.find(action =>
1473
- [REEVALUATE_REGULAR_BILL, RETURN_BILL_ACTION].includes(
1474
- action?.actionName,
1475
- ),
1476
- ),
1477
- );
1478
- tooltipProps = {
1479
- title:
1480
- actionId === REEVALUATE_REGULAR_BILL
1481
- ? formatMessage(messages.reEvaluateActivityTooltip)
1482
- : formatMessage(messages.returnBillTooltip),
1483
- placement: 'bottom',
1484
- overlayClassName: 're-evaluate-activity-configure-popover',
1485
- getPopupContainer: trigger => trigger.parentElement,
1486
- };
1487
- } else if (actionId === BADGE_EARN_ACTION) {
1488
- isCardDisabled = !hasBadgesEnabled;
1489
- tooltipProps = {
1490
- title: formatMessage(messages.disabledBadges),
1491
- placement: 'bottom',
1492
- overlayClassName: 'badge-earn-configure-popover',
1493
- getPopupContainer: trigger => trigger.parentElement,
1494
- }
1495
- }
1496
- else if (actionId === AWARD_REFEREE_POINTS_ACTION || actionId === AWARD_REFERRER_POINTS_ACTION) {
1497
- const isSourcePromotion = source === SOURCE_PROMOTION;
1498
- isCardDisabled = isSourcePromotion;
1499
- tooltipProps = {
1500
- title: formatMessage(messages.disabledReferer),
1501
- placement: 'bottom',
1502
- overlayClassName: 'referrer-earn-configure-popover',
1503
- getPopupContainer: trigger => trigger.parentElement,
1504
- };
1505
- }
1506
-
1507
825
  return {
1508
826
  text,
1509
827
  title: (
@@ -1514,80 +832,21 @@ export const WorkflowConfigurationSection = props => {
1514
832
  {text}
1515
833
  </div>
1516
834
  ),
1517
- icon: isIcon ? (
1518
- <CapIcon type={iconValue} className="action-card-icon" />
1519
- ) : (
1520
- iconValue
1521
- ),
835
+ icon: isIcon ? <CapIcon type={iconValue} /> : iconValue,
1522
836
  value: actionId,
1523
- disabled: isCardDisabled,
1524
- ...(isCardDisabled && { tooltipProps }),
1525
- ...(Object.keys(advanceProps).length && { ...advanceProps }),
1526
837
  };
1527
838
  })
1528
839
  .sort((current, next) => current.text.localeCompare(next.text));
1529
-
1530
- let dynamicProcessedActions = [];
1531
- if (
1532
- alternateCurrencyFlagValue &&
1533
- alternateCurrencyListData?.length > 0 &&
1534
- checkForAlternateCurrencyEventType(eventType, group[selectedRuleset])
1535
- ) {
1536
- const newAlternateCurrencyNames = alternateCurrencyListData?.filter(
1537
- currency =>
1538
- actions.every(
1539
- action =>
1540
- action.actionName !==
1541
- `${ISSUE_ALTERNATE_CURRENCY}_${currency.identifier}`,
1542
- ),
1543
- );
1544
- dynamicProcessedActions = newAlternateCurrencyNames
1545
- ?.map(data => {
1546
- const iconValue = data?.metaData?.image;
1547
- const base_url = localStorage.getItem(CDN_BASE_URL);
1548
- const bucket_url = localStorage.getItem(CDN_BUCKET_PATH);
1549
- const cdn_suffix = localStorage.getItem(CDN_TRANSFORM_SUFFIX);
1550
- const imageURL = `${base_url}/${cdn_suffix}/quality=50/${bucket_url}${iconValue}`;
1551
- const isIcon = typeof iconValue === 'string';
1552
- const text = formatMessage(globalMessages.alternateCurrencyNameText, {
1553
- name: data?.name,
1554
- });
1555
- return {
1556
- text,
1557
- title: (
1558
- <div
1559
- className={classnames('truncate-text', 'action-item-text')}
1560
- title={text}
1561
- >
1562
- {text}
1563
- </div>
1564
- ),
1565
- icon: isIcon && (
1566
- <CapImage src={iconValue != 'no-image' ? imageURL : pointsDefaultImg} className="alternate-card-image" />
1567
- ),
1568
- value: `${ISSUE_ALTERNATE_CURRENCY}_${data?.identifier}`,
1569
- disabled: false,
1570
- };
1571
- })
1572
- .sort((current, next) => current.text.localeCompare(next.text));
1573
- }
1574
-
1575
- const finalProcessedActions = [
1576
- ...processedActions,
1577
- ...dynamicProcessedActions,
1578
- ];
1579
-
1580
- setActionList(finalProcessedActions);
840
+ setActionList(processedActions);
1581
841
  toggleShowActions();
1582
- setCaseActionData({ actionCase, action: {} });
842
+ setCaseActionData({
843
+ actionCase,
844
+ action: {},
845
+ });
1583
846
  };
1584
847
 
1585
848
  const toggleShowActions = () => setShowActions(!showActions);
1586
849
 
1587
- const toggleCollapse = () => {
1588
- setCollapse(!collapse);
1589
- setCollapseKey(`collapse_${uuidv4()}`);
1590
- };
1591
850
  const onActionSelect = event => setSelectedAction(event.target.value);
1592
851
 
1593
852
  const onShowAction = () => setShowAction(true);
@@ -1597,6 +856,7 @@ export const WorkflowConfigurationSection = props => {
1597
856
  setShowActions(false);
1598
857
  setSelectedAction('');
1599
858
  };
859
+
1600
860
  const updateRuleSetByAction = (actionData, res) => {
1601
861
  if (res?.success) {
1602
862
  const { isEditMode } = actionData || {};
@@ -1608,7 +868,6 @@ export const WorkflowConfigurationSection = props => {
1608
868
  processedRuleSets,
1609
869
  actionData,
1610
870
  responseData,
1611
- source,
1612
871
  );
1613
872
  if (isNewRuleSet) {
1614
873
  const { group = {} } = updatedRuleSets;
@@ -1620,15 +879,9 @@ export const WorkflowConfigurationSection = props => {
1620
879
  message: formatMessage(
1621
880
  isEditMode
1622
881
  ? globalMessages.editedSuccessfully
1623
- : globalMessages.actionAddedSuccessfully,
882
+ : globalMessages.createdSuccessfully,
1624
883
  ),
1625
884
  });
1626
- const workflowActions = {
1627
- actionData,
1628
- promotionsData: promotionFormData,
1629
- source,
1630
- };
1631
- gtmPush('workflowActions', workflowActions);
1632
885
  } else {
1633
886
  CapNotification.error({
1634
887
  message: formatMessage(globalMessages.errorMessage),
@@ -1655,7 +908,7 @@ export const WorkflowConfigurationSection = props => {
1655
908
  let propData = {};
1656
909
  let actionId = -1;
1657
910
  let additionProps = {};
1658
- const { actionCase, action, isEditMode = false, mode } = caseActionData;
911
+ const { actionCase, action, isEditMode = false } = caseActionData;
1659
912
  if (!isEmpty(action)) {
1660
913
  const { id, mandatoryPropertiesValues = {} } = action;
1661
914
  actionId = id;
@@ -1681,26 +934,20 @@ export const WorkflowConfigurationSection = props => {
1681
934
  actionType: selectedAction,
1682
935
  ruleset: group[selectedRuleset] || {},
1683
936
  isEditMode,
1684
- // adding mode here since CONVERT_POINTS_TO_REWARDS needs this in view mode
1685
- mode,
1686
- // adding selectedRule here since CONVERT_POINTS_TO_REWARDS ALWAYS needs this in view mode
1687
- selectedRule,
1688
937
  UICompatibleChannels,
1689
938
  addTrackerTags,
1690
939
  showSenderInformation,
1691
940
  setShowSenderInformation: handleHideSenderInformation,
1692
941
  ...additionProps,
1693
- areProrateOnOptionsDisabled,
1694
- billType,
1695
942
  },
1696
943
  eventType,
1697
944
  updateRuleSet: updateRuleSetByAction,
1698
945
  closeSlidebox: closeActions,
1699
946
  errorWrapperSlideBoxClose: closeActions,
1700
- source,
1701
- currentProgram,
1702
947
  };
1703
948
  };
949
+ const getConditionName = (index = '') =>
950
+ `${formatMessage(globalMessages.condition)} ${index}`;
1704
951
 
1705
952
  const handleDeleteConditionOrAction = (
1706
953
  dependentRulesetIds,
@@ -1735,26 +982,10 @@ export const WorkflowConfigurationSection = props => {
1735
982
 
1736
983
  const onRefreshClick = () => {
1737
984
  if (getRulesetsByEventTypeStatus === FAILURE) {
1738
- getRulesetsByEventType({
1739
- programId,
1740
- status: isDraftPresent ? DRAFT : LIVE,
1741
- endpointName: POINTSENGINE_ENDPOINT,
1742
- eventType,
1743
- });
985
+ getRulesetsByEventType();
1744
986
  }
1745
- if (source !== SOURCE_PROMOTION && getRulesetsStatus === FAILURE) {
1746
- if (isV2FlowEnabled)
1747
- getRulesetsV2({
1748
- programId,
1749
- status: isDraftPresent ? DRAFT : LIVE,
1750
- endpointName: POINTSENGINE_ENDPOINT,
1751
- });
1752
- else
1753
- getRulesets({
1754
- programId,
1755
- status: isDraftPresent ? DRAFT : LIVE,
1756
- endpointName: POINTSENGINE_ENDPOINT,
1757
- });
987
+ if (getRulesetsStatus === FAILURE) {
988
+ getRulesets();
1758
989
  }
1759
990
  if (getTrackersStatus === FAILURE) {
1760
991
  getTrackersData();
@@ -1765,21 +996,11 @@ export const WorkflowConfigurationSection = props => {
1765
996
  if (clearRulesetCacheStatus === FAILURE) {
1766
997
  clearRulesetsCache();
1767
998
  }
1768
- if (source === SOURCE_PROMOTION && getPromotionByIdStatus === FAILURE) {
1769
- getPromotionById();
1770
- }
1771
- if (
1772
- getOrgConfigDraftDetailsStatus === FAILURE ||
1773
- getOrgConfigDetailsStatus === FAILURE
1774
- ) {
1775
- const queryParams = { status: 'LIVE, SNAPSHOT, DRAFT', limit: 5 };
1776
- programSummaryActions.getOrgConfigDetails(queryParams, programId);
1777
- }
1778
999
  };
1779
1000
 
1780
1001
  return (
1781
1002
  <CapSpin spinning={showSpin}>
1782
- {!HIDE_SCOPE_FOR_EVENT.includes(eventCategory) ? (
1003
+ {!['Behavioral', 'Target Loyalty'].includes(eventCategory) ? (
1783
1004
  <ErrorBoundaryWrapper
1784
1005
  useStyle
1785
1006
  isApiErrorBoundary
@@ -1788,14 +1009,10 @@ export const WorkflowConfigurationSection = props => {
1788
1009
  >
1789
1010
  <CapRow className={className}>
1790
1011
  <CapRow className="workflow-configuration-container">
1791
- <CapColumn
1792
- onScroll={handleScroll}
1793
- id="scrollingSets"
1794
- span={4}
1795
- className={`groups-column ${
1796
- collapse ? 'groups-column-group' : 'groups-column-set'
1797
- }`}
1798
- >
1012
+ <CapColumn span={4} className="groups-column">
1013
+ <CapRow className="event-view-headers">
1014
+ {formatMessage(messages.groups)}
1015
+ </CapRow>
1799
1016
  <CapColumn
1800
1017
  className={classnames(
1801
1018
  'groups-column-content',
@@ -1803,101 +1020,27 @@ export const WorkflowConfigurationSection = props => {
1803
1020
  )}
1804
1021
  >
1805
1022
  {groups.length > 0 ? (
1806
- <CapColumn
1807
- style={{
1808
- width: maxGroupItemWidth,
1809
- }}
1810
- >
1811
- <CustomTree
1812
- treeData={groups}
1813
- onSelect={onGroupItemClick}
1814
- selectedKeys={selectedRuleset}
1815
- showSwither={false}
1816
- showSearch={showSearch}
1817
- setSetsConditionsSearch={setSetsConditionsSearch}
1818
- setsConditionsSearch={setsConditionsSearch}
1819
- setSearchCounter={setSearchCounter}
1820
- setSearchConditionCounter={setSearchConditionCounter}
1821
- totalSearchResult={
1822
- searchCounter + searchConditionCounter
1823
- }
1824
- searchIndex={searchIndex}
1825
- setSearchIndex={setSearchIndex}
1826
- processWorflowData={processWorflowData}
1827
- rulesets={rulesets}
1828
- eventType={eventType}
1829
- source={source}
1830
- />
1831
- </CapColumn>
1023
+ <CustomTree
1024
+ treeData={groups}
1025
+ onSelect={onGroupItemClick}
1026
+ selectedKeys={[selectedRuleset]}
1027
+ showSwither={false}
1028
+ />
1832
1029
  ) : (
1833
1030
  <CreateNewRuleSet />
1834
1031
  )}
1835
1032
  </CapColumn>
1836
1033
  </CapColumn>
1837
- <CapColumn
1838
- span={5}
1839
- className={`groups-column ${
1840
- collapse ? 'groups-column-group' : 'groups-column-condition'
1841
- }`}
1842
- >
1034
+ <CapColumn span={5} className="groups-column">
1035
+ <CapRow className="event-view-headers">
1036
+ {formatMessage(messages.allConditions)}
1037
+ </CapRow>
1843
1038
  <Flex className="workflow-condition-container">
1844
1039
  <CapColumn
1845
1040
  className={classnames('condition-column', 'custom-scroll')}
1846
1041
  >
1847
- {!HIDE_SCOPE_FOR_EVENT.includes(eventCategory) &&
1848
- selectedRuleset && (
1849
- <ConditionExpressionLayout
1850
- description={formatMessage(messages.scopeSelected, {
1851
- selectedData:
1852
- processedRuleSets?.group[selectedRuleset]
1853
- ?.filterInfo?.length || '0',
1854
- })}
1855
- isPreviewMode
1856
- isActive={selectedRule?.id === SCOPE_UPPERCASE}
1857
- onClick={() => {
1858
- setSelectedRule({ id: SCOPE_UPPERCASE });
1859
- }}
1860
- getPlainConditionTitle={getPlainConditionTitle}
1861
- getHighlightedTextForConditions={
1862
- getHighlightedTextForConditions
1863
- }
1864
- key="condition-expression-scope"
1865
- name={formatMessage(messages.scopeTitle)}
1866
- id={SCOPE_UPPERCASE}
1867
- mode={mode}
1868
- />
1869
- )}
1870
- {eventType === eventTypesMap.TRANSACTIONADD &&
1871
- source !== SOURCE_PROMOTION &&
1872
- selectedRuleset && (
1873
- <ConditionExpressionLayout
1874
- description={formatMessage(messages.limitsSelected, {
1875
- selectedData:
1876
- processedRuleSets?.group[selectedRuleset]
1877
- ?.cappingInfo?.length || '0',
1878
- })}
1879
- isPreviewMode
1880
- isActive={selectedRule?.id === CAPPING_UPPERCASE}
1881
- onClick={() => {
1882
- setSelectedRule({ id: CAPPING_UPPERCASE });
1883
- }}
1884
- getPlainConditionTitle={getPlainConditionTitle}
1885
- getHighlightedTextForConditions={
1886
- getHighlightedTextForConditions
1887
- }
1888
- key="condition-expression-capping"
1889
- name={formatMessage(
1890
- messages.rewardCurrencyLimitTitle,
1891
- )}
1892
- id={CAPPING_UPPERCASE}
1893
- mode={mode}
1894
- />
1895
- )}
1896
- {selectedRuleset && (
1897
- <CapDivider className="scope-rule-divder" />
1898
- )}
1899
- {(rules || []).map((rule, idx) => {
1900
- const { id, caseToActions } = rule;
1042
+ {rules.map((rule, idx) => {
1043
+ const { id, exp } = rule;
1901
1044
  const displayName = getConditionName(idx + 1);
1902
1045
  function handleClose(event) {
1903
1046
  onRemoveCondition(id);
@@ -1909,507 +1052,282 @@ export const WorkflowConfigurationSection = props => {
1909
1052
  }
1910
1053
  return (
1911
1054
  <ConditionExpressionLayout
1912
- description={formatMessage(messages.actionsSetup, {
1913
- actionsDataCount: caseToActions?.true?.length || 0,
1914
- })}
1055
+ description={`${exp}`}
1915
1056
  handleClose={handleClose}
1916
1057
  isActive={selectedRule?.id === id}
1917
- onClick={handleActiveChange}
1918
- getPlainConditionTitle={getPlainConditionTitle}
1919
- getHighlightedTextForConditions={
1920
- getHighlightedTextForConditions
1921
- }
1058
+ changeActive={handleActiveChange}
1922
1059
  key={`condition-expression-${id}`}
1923
1060
  name={displayName}
1924
1061
  id={id}
1925
- rulesLength={rules.length}
1926
- setsConditionsSearch={setsConditionsSearch}
1927
- mode={mode}
1928
1062
  />
1929
1063
  );
1930
1064
  })}
1931
1065
  </CapColumn>
1932
- {!isPreviewMode &&
1933
- selectedRuleset && (
1934
- <CapRow className="workflow-add-button-container">
1935
- <CreateActionButton
1936
- buttonText={formatMessage(globalMessages.condition)}
1937
- buttonAction={saveExpressionAndCreateCondition}
1938
- buttonClassName="lp-btn-config-workflows-add-condition"
1939
- />
1940
- </CapRow>
1941
- )}
1066
+ <CapRow className="workflow-add-button-container">
1067
+ <CreateActionButton
1068
+ buttonText={formatMessage(globalMessages.condition)}
1069
+ buttonAction={saveExpressionAndCreateCondition}
1070
+ buttonClassName="lp-btn-config-workflows-add-condition"
1071
+ />
1072
+ </CapRow>
1942
1073
  </Flex>
1943
1074
  </CapColumn>
1944
- <CapColumn
1945
- span={15}
1946
- className={classnames(
1947
- 'groups-column',
1948
- { 'groups-column-expression': collapse },
1949
- { 'groups-column-expand': !collapse },
1950
- { 'groups-column-expression-bulk-view': mode === undefined },
1951
- { 'groups-column-expression-view': mode !== MODE_CONFIGURE },
1952
- )}
1953
- >
1954
- {selectedRule?.id === 'SCOPE' ? (
1955
- <ScopeSlidebox
1956
- processedRuleSets={processedRuleSets}
1957
- setProcessedRuleSets={setProcessedRuleSets}
1958
- source={source}
1959
- selectedRuleset={selectedRuleset}
1960
- eventType={eventType}
1961
- disabled={mode === MODE_VIEW}
1962
- groupTreeList={groups}
1963
- />
1964
- ) : selectedRule?.id === 'CAPPING' ? (
1965
- <CappingSlidebox
1966
- processedRuleSets={processedRuleSets}
1967
- setProcessedRuleSets={setProcessedRuleSets}
1968
- eventType={eventType}
1969
- selectedRuleset={selectedRuleset}
1970
- handleUpdateTrackerCappedSets={
1971
- handleUpdateTrackerCappedSets
1972
- }
1973
- disabled={mode === MODE_VIEW}
1974
- groups={groups}
1975
- />
1976
- ) : (
1977
- selectedRule?.id && (
1978
- <Flex className="workflow-condition-container">
1979
- <CapRow
1980
- className={classnames(
1981
- 'expression-editor-container',
1982
- 'custom-scroll',
1983
- )}
1984
- >
1985
- <CapHeading type="h4" className="expression-heading">
1986
- {formatMessage(messages.expression)}
1987
- </CapHeading>
1988
- <>
1989
- {showSpin ? (
1075
+ <CapColumn span={15} className="groups-column">
1076
+ <CapRow className="event-view-headers">
1077
+ {selectedRule?.displayName || getConditionName()}
1078
+ </CapRow>
1079
+ {selectedRule?.id && (
1080
+ <Flex className="workflow-condition-container">
1081
+ <CapRow
1082
+ className={classnames(
1083
+ 'expression-editor-container',
1084
+ 'custom-scroll',
1085
+ )}
1086
+ >
1087
+ <CapHeading type="h4" className="expression-heading">
1088
+ {formatMessage(messages.expression)}
1089
+ </CapHeading>
1090
+ <>
1091
+ {showSpin ? (
1092
+ <CapInput
1093
+ className="rule-editior"
1094
+ value={exp}
1095
+ disabled
1096
+ />
1097
+ ) : Object.keys(modifiedGrammer || {}).length === 0 ? (
1098
+ <>
1099
+ <CapAlert
1100
+ className="rule-editior"
1101
+ style={{ maxWidth: '396px' }}
1102
+ message={
1103
+ <FormattedMessage {...messages.emfAlert} />
1104
+ }
1105
+ type="warning"
1106
+ />
1990
1107
  <CapInput
1991
1108
  className="rule-editior"
1992
- value={exp}
1109
+ defaultValue={exp}
1993
1110
  disabled
1994
1111
  />
1995
- ) : Object.keys(modifiedGrammer || {}).length ===
1996
- 0 ? (
1997
- <>
1998
- {mode !== MODE_VIEW && (
1999
- <CapAlert
2000
- className="rule-editior"
2001
- style={{ maxWidth: '396px' }}
2002
- message={
2003
- <FormattedMessage {...messages.emfAlert} />
2004
- }
2005
- type="warning"
2006
- />
2007
- )}
2008
- <CapInput
2009
- className="rule-editior"
2010
- defaultValue={exp}
2011
- disabled
1112
+ </>
1113
+ ) : (
1114
+ <>
1115
+ <CapSpin
1116
+ spinning={
1117
+ expressionOnUpdate[(selectedRule?.id)] || false
1118
+ }
1119
+ >
1120
+ <CapExpressionEditor
1121
+ key={key}
1122
+ className={classnames(
1123
+ 'rule-editior',
1124
+ 'lp-config-workflows-rule-editor',
1125
+ )}
1126
+ grammar={modifiedGrammer}
1127
+ onChange={onExpressionEditorChange}
1128
+ expression={exp}
2012
1129
  />
2013
- </>
2014
- ) : (
2015
- <>
2016
- <CapSpin
2017
- spinning={
2018
- expressionOnUpdate[(selectedRule?.id)] ||
2019
- false
2020
- }
2021
- >
2022
- <CapExpressionEditor
2023
- key={key}
2024
- className={classnames(
2025
- 'rule-editior',
2026
- 'lp-config-workflows-rule-editor',
2027
- )}
2028
- grammar={modifiedGrammer}
2029
- onChange={onExpressionEditorChange}
2030
- expression={exp}
2031
- disabled={isPreviewMode}
2032
- data-testid="workflow-rule-editor"
2033
- />
2034
- {!isAiRuleWritingDisabled && (
2035
- <CapAskAira.RuleSummarizationBot
2036
- activity={eventType}
2037
- request={request}
2038
- getAPICallObject={getAPICallObject}
2039
- iconPlacement="float-br"
1130
+ {expError && (
1131
+ <CapError
1132
+ style={{ marginTop: `${CAP_SPACE_04}` }}
1133
+ type="error"
1134
+ >
1135
+ <FormattedMessage
1136
+ {...messages.expressionErrorMessage}
2040
1137
  />
2041
- )}
2042
- {expError &&
2043
- isInvalidDays && (
2044
- <CapError
2045
- style={{ marginTop: `${CAP_SPACE_04}` }}
2046
- type="error"
2047
- >
2048
- <FormattedMessage
2049
- {...messages.invalidDaysErrorMessage}
2050
- />
2051
- </CapError>
2052
- )}
2053
- {expError && (
2054
- <CapError
2055
- style={{ marginTop: `${CAP_SPACE_04}` }}
2056
- type="error"
2057
- >
2058
- <FormattedMessage
2059
- {...messages.expressionErrorMessage}
2060
- />
2061
- </CapError>
2062
- )}
2063
- </CapSpin>
2064
- </>
2065
- )}
2066
- </>
2067
- </CapRow>
2068
- <CapRow
2069
- className={classnames(
2070
- 'action-list-container',
2071
- 'custom-scroll',
1138
+ </CapError>
1139
+ )}
1140
+ </CapSpin>
1141
+ </>
2072
1142
  )}
2073
- >
2074
- <CapSpin
2075
- spinning={
2076
- toggleOnActionMemo[(selectedRule?.id)] || false
2077
- }
2078
- >
2079
- {Object.keys(caseToActions || []).map(actionCase => {
2080
- function handleAddActionClick() {
2081
- onAddActionClick(
2082
- actionCase,
2083
- caseToActions[actionCase],
2084
- );
2085
- }
2086
-
2087
- return (
2088
- <CapRow>
2089
- <CapRow>
2090
- <CapRow className="optional-text-when">
2091
- <ColorPatch
2092
- height={CAP_SPACE_32}
2093
- color={CAP_G09}
2094
- align="center"
2095
- >
2096
- <CapHeading>
2097
- {formatMessage(globalMessages.when)}
2098
- </CapHeading>
2099
- {!isPreviewMode && (
2100
- <CapRow>
2101
- <CapIcon
2102
- className={classnames(
2103
- 'close-icon',
2104
- 'lp-icon-config-workflows-remove-when',
2105
- )}
2106
- onClick={() =>
2107
- closeWhenConditionHandler(
2108
- actionCase,
2109
- )
2110
- }
2111
- type="close"
2112
- data-testid="close-workflows-config"
2113
- />
2114
- </CapRow>
1143
+ </>
1144
+ </CapRow>
1145
+ <CapRow
1146
+ className={classnames(
1147
+ 'action-list-container',
1148
+ 'custom-scroll',
1149
+ )}
1150
+ >
1151
+ {Object.keys(caseToActions || []).map((actionCase, i) => {
1152
+ function handleAddActionClick() {
1153
+ onAddActionClick(
1154
+ actionCase,
1155
+ caseToActions[actionCase],
1156
+ );
1157
+ }
1158
+
1159
+ return (
1160
+ <CapRow key={`when-condition-${i}`}>
1161
+ <CapRow>
1162
+ <CapRow className="optional-text-when">
1163
+ <ColorPatch
1164
+ height={CAP_SPACE_32}
1165
+ color={CAP_G09}
1166
+ align="center"
1167
+ >
1168
+ <CapHeading>
1169
+ {formatMessage(globalMessages.when)}
1170
+ </CapHeading>
1171
+ <CapRow>
1172
+ <CapIcon
1173
+ className={classnames(
1174
+ 'close-icon',
1175
+ 'lp-icon-config-workflows-remove-when',
2115
1176
  )}
2116
- </ColorPatch>
1177
+ onClick={() =>
1178
+ closeWhenConditionHandler(actionCase)
1179
+ }
1180
+ type="close"
1181
+ />
2117
1182
  </CapRow>
2118
- <CapColumn
2119
- className="expression-option-container"
2120
- span={20}
2121
- >
2122
- <CapHeading>
2123
- {formatMessage(
2124
- globalMessages.expressionIs,
2125
- )}
2126
- </CapHeading>
2127
- {isPreviewMode ? (
2128
- <Tag
2129
- className="expression-tag-content"
2130
- tagText={
2131
- actionCase == 'true'
2132
- ? formatMessage(globalMessages.true)
2133
- : formatMessage(
2134
- globalMessages.false,
2135
- )
1183
+ </ColorPatch>
1184
+ </CapRow>
1185
+ <CapColumn
1186
+ className="expression-option-container"
1187
+ span={20}
1188
+ >
1189
+ <CapHeading>
1190
+ {formatMessage(globalMessages.expressionIs)}
1191
+ </CapHeading>
1192
+ <Tag
1193
+ className="expression-tag-content"
1194
+ tagText={formatMessage(globalMessages.true)}
1195
+ background={
1196
+ actionCase == 'true' ? CAP_G18 : CAP_WHITE
1197
+ }
1198
+ font={FONT_COLOR_01}
1199
+ height={CAP_SPACE_32}
1200
+ onClick={() =>
1201
+ actionCase == 'false' &&
1202
+ toggleActionCase(true)
1203
+ }
1204
+ border
1205
+ borderColor={CAP_G18}
1206
+ />
1207
+ <Tag
1208
+ className="expression-tag-content"
1209
+ tagText={formatMessage(globalMessages.false)}
1210
+ background={
1211
+ actionCase == 'false' ? CAP_G18 : CAP_WHITE
1212
+ }
1213
+ font={FONT_COLOR_01}
1214
+ height={CAP_SPACE_32}
1215
+ onClick={() =>
1216
+ actionCase == 'true' &&
1217
+ toggleActionCase(false)
1218
+ }
1219
+ border
1220
+ borderColor={CAP_G18}
1221
+ />
1222
+ </CapColumn>
1223
+ </CapRow>
1224
+ <CapRow>
1225
+ <CapSpin spinning={showActionSpinner}>
1226
+ <CapColumn offset={1} span={23}>
1227
+ {(caseToActions[actionCase] || []).map(
1228
+ (action, i) => {
1229
+ let {
1230
+ actionName,
1231
+ description,
1232
+ id,
1233
+ } = action;
1234
+ let dependentRulesetId = '';
1235
+ if (actionName === UPGRADE_SLAB_ACTION) {
1236
+ actionName = action?.actionType;
1237
+ } else if (actionName === FORWARD) {
1238
+ const {
1239
+ description: forwardDescription,
1240
+ dependentRulesetId: forwardDependentRulesetId,
1241
+ } = getForwardToRulesetActionData(
1242
+ action,
1243
+ );
1244
+ description = forwardDescription;
1245
+ dependentRulesetId = forwardDependentRulesetId;
1246
+ }
1247
+
1248
+ function handleEditActionClick() {
1249
+ setCaseActionData({
1250
+ actionCase,
1251
+ action,
1252
+ isEditMode: true,
1253
+ });
1254
+ setShowAction(true);
1255
+ setSelectedAction(actionName);
1256
+ }
1257
+
1258
+ function handleRemoveActionClick() {
1259
+ removeActionHandler(actionCase, action);
1260
+ }
1261
+
1262
+ function getActionIcon(icon) {
1263
+ return typeof ACTIONS_ICON_MAP[icon] ===
1264
+ 'string' ? (
1265
+ <CapIcon
1266
+ style={{ color: 'black' }}
1267
+ type={ACTIONS_ICON_MAP[icon]}
1268
+ />
1269
+ ) : (
1270
+ ACTIONS_ICON_MAP[icon]
1271
+ );
1272
+ }
1273
+
1274
+ function handleActionContentClick() {
1275
+ if (
1276
+ actionName === FORWARD &&
1277
+ dependentRulesetId
1278
+ ) {
1279
+ onGroupItemClick([
1280
+ `${dependentRulesetId}`,
1281
+ ]);
2136
1282
  }
2137
- background={CAP_G18}
2138
- font={FONT_COLOR_01}
2139
- height={CAP_SPACE_32}
2140
- border
2141
- borderColor={CAP_G18}
2142
- />
2143
- ) : (
2144
- <>
2145
- <Tag
2146
- className="expression-tag-content"
2147
- tagText={formatMessage(
2148
- globalMessages.true,
2149
- )}
2150
- background={
2151
- actionCase == 'true'
2152
- ? CAP_G18
2153
- : CAP_WHITE
2154
- }
2155
- font={FONT_COLOR_01}
2156
- height={CAP_SPACE_32}
2157
- onClick={() =>
2158
- actionCase == 'false' &&
2159
- toggleActionCase(true)
2160
- }
2161
- border
2162
- borderColor={CAP_G18}
2163
- />
2164
- <Tag
2165
- className="expression-tag-content"
2166
- tagText={formatMessage(
2167
- globalMessages.false,
1283
+ }
1284
+
1285
+ return (
1286
+ <ActionExpression
1287
+ id={id}
1288
+ title={actionName}
1289
+ iconType={getActionIcon(actionName)}
1290
+ key={`${actionName}-${i}`}
1291
+ actionContent={validateTitle(
1292
+ description,
2168
1293
  )}
2169
- background={
2170
- actionCase == 'false'
2171
- ? CAP_G18
2172
- : CAP_WHITE
1294
+ onRemoveAction={
1295
+ handleRemoveActionClick
2173
1296
  }
2174
- font={FONT_COLOR_01}
2175
- height={CAP_SPACE_32}
2176
- onClick={() =>
2177
- actionCase == 'true' &&
2178
- toggleActionCase(false)
1297
+ onEditAction={handleEditActionClick}
1298
+ onClickActionContent={
1299
+ handleActionContentClick
2179
1300
  }
2180
- border
2181
- borderColor={CAP_G18}
2182
1301
  />
2183
- </>
2184
- )}
2185
- </CapColumn>
2186
- </CapRow>
2187
- <CapRow>
2188
- <CapSpin spinning={showActionSpinner}>
2189
- <CapColumn offset={1} span={23}>
2190
- {(caseToActions[actionCase] || []).map(
2191
- action => {
2192
- let {
2193
- actionName,
2194
- description,
2195
- id,
2196
- mandatoryPropertiesValues,
2197
- } = action;
2198
- let dependentRulesetId = '';
2199
- if (
2200
- actionName === UPGRADE_SLAB_ACTION
2201
- ) {
2202
- if (
2203
- Object.getOwnPropertyNames(
2204
- mandatoryPropertiesValues,
2205
- ).indexOf('shouldRenewSlab') > -1
2206
- ) {
2207
- actionName = RENEW_SLAB_ACTION;
2208
- } else if (
2209
- Object.getOwnPropertyNames(
2210
- mandatoryPropertiesValues,
2211
- ).indexOf('ToSlabSerialNumber') >
2212
- -1
2213
- ) {
2214
- actionName = UPGRADE_SLAB_ACTION_SLAB;
2215
- } else {
2216
- actionName = UPGRADE_SLAB_ACTION_STRATEGY;
2217
- }
2218
- } else if (actionName === FORWARD) {
2219
- const {
2220
- description: forwardDescription,
2221
- dependentRulesetId: forwardDependentRulesetId,
2222
- } = getForwardToRulesetActionData(
2223
- action,
2224
- );
2225
- description = forwardDescription;
2226
- dependentRulesetId = forwardDependentRulesetId;
2227
- } else if (
2228
- actionName ===
2229
- CONVERT_POINTS_TO_REWARD_ACTION
2230
- ) {
2231
- const {
2232
- rewardId,
2233
- brandId,
2234
- } = mandatoryPropertiesValues;
2235
- description = `${brandId}_${rewardId}`;
2236
- }
2237
- function handleEditActionClick(mode = EDIT) {
2238
- setCaseActionData(
2239
- {
2240
- actionCase,
2241
- action,
2242
- isEditMode: true,
2243
- // mode = 'VIEW' if the eye icon was clicked.
2244
- mode,
2245
- },
2246
- )
2247
-
2248
- setShowAction(true);
2249
- setSelectedAction(actionName);
2250
- }
2251
-
2252
- // the delete confirmation modal related functions are being used only for issue badge action as of now, therefore have not used switch case here.
2253
- function getDeleteActionComfirmationModalTitle() {
2254
- return formatMessage(messages.deleteIssueBadgeActionModalTitle);
2255
- }
2256
-
2257
- function getDeleteActionComfirmationModalDesc() {
2258
- return <CapRow>
2259
- <CapLabel type="label9">
2260
- {formatMessage(
2261
- messages.deleteIssueBadgeActionModalDesc_1,
2262
- )}
2263
- </CapLabel>
2264
- <CapLabel type="label9" className="delete-action-modal-secondary-desc">
2265
- {formatMessage(messages.deleteIssueBadgeActionModalDesc_2)}
2266
- </CapLabel>
2267
- </CapRow>;
2268
- }
2269
-
2270
- function getDeleteActionComfirmationModalOkBtnText() {
2271
- return formatMessage(messages.deleteIssueBadgeActionModalOkBtnText);
2272
- }
2273
-
2274
- function handleDeleteActionComfirmationModalOkClick() {
2275
- setShowUnClaimBadgeConfirmationModal(false);
2276
- removeActionHandler(actionCase, action);
2277
- unClaimBadge(action);
2278
- }
2279
-
2280
- function handleDeleteActionComfirmationModalCancelClick() {
2281
- setShowUnClaimBadgeConfirmationModal(false);
2282
- }
2283
-
2284
- function handleRemoveActionClick() {
2285
- switch (actionName) {
2286
- case BADGE_EARN_ACTION:
2287
- setShowUnClaimBadgeConfirmationModal(true);
2288
- return;
2289
- default:
2290
- removeActionHandler(actionCase, action);
2291
- return;
2292
- }
2293
- }
2294
-
2295
- function getActionIcon(icon) {
2296
- return typeof ACTIONS_ICON_MAP[
2297
- icon
2298
- ] === 'string' ? (
2299
- <CapIcon
2300
- style={{ color: 'black' }}
2301
- type={ACTIONS_ICON_MAP[icon]}
2302
- />
2303
- ) : (
2304
- ACTIONS_ICON_MAP[icon]
2305
- );
2306
- }
2307
-
2308
- function handleActionContentClick() {
2309
- if (
2310
- actionName === FORWARD &&
2311
- dependentRulesetId
2312
- ) {
2313
- onGroupItemClick([
2314
- `${dependentRulesetId}`,
2315
- ]);
2316
- }
2317
- }
2318
- const showDeleteActionConfirmationModal = ACTIONS_TO_CONFIRM_BEFORE_DELETE.includes(actionName) && showUnClaimBadgeConfirmationModal;
2319
- return (
2320
- <>
2321
- {showDeleteActionConfirmationModal && (
2322
- <ConfirmationModal
2323
- className={classnames(className, 'delete-action-modal')}
2324
- title={getDeleteActionComfirmationModalTitle()}
2325
- handleCancel={handleDeleteActionComfirmationModalCancelClick}
2326
- handleClose={handleDeleteActionComfirmationModalCancelClick}
2327
- handleOk={handleDeleteActionComfirmationModalOkClick}
2328
- isModalVisible={showDeleteActionConfirmationModal}
2329
- description={getDeleteActionComfirmationModalDesc()}
2330
- image={penguin}
2331
- okText={getDeleteActionComfirmationModalOkBtnText()}
2332
- />
2333
- )}
2334
- <ActionExpression
2335
- id={id}
2336
- title={actionName}
2337
- iconType={getActionIcon(
2338
- actionName,
2339
- )}
2340
- actionContent={validateTitle(
2341
- description,
2342
- )}
2343
- onRemoveAction={
2344
- handleRemoveActionClick
2345
- }
2346
- onEditAction={
2347
- handleEditActionClick
2348
- }
2349
- onClickActionContent={
2350
- handleActionContentClick
2351
- }
2352
- pId={currentProgram?.id}
2353
- />
2354
- </>
2355
- );
2356
- },
2357
- )}
2358
- {!isPreviewMode ? (
2359
- <CapButton
2360
- className="add-action-button"
2361
- type="flat"
2362
- isAddBtn
2363
- onClick={handleAddActionClick}
2364
- >
2365
- {formatMessage(
2366
- globalMessages.addAction,
2367
- )}
2368
- </CapButton>
2369
- ) : (
2370
- <CapRow className="margin-b-15" />
2371
- )}
2372
- </CapColumn>
2373
- </CapSpin>
2374
- </CapRow>
2375
- </CapRow>
2376
- );
2377
- })}
2378
- </CapSpin>
2379
- </CapRow>
2380
- {Object.keys(caseToActions || []).length < 2 &&
2381
- !isPreviewMode && (
2382
- <CapRow className="workflow-add-button-container">
2383
- <CreateActionButton
2384
- buttonText={formatMessage(globalMessages.when)}
2385
- buttonAction={addWhenConditionHandler}
2386
- buttonClassName="lp-btn-config-workflows-add-when-condition"
2387
- />
1302
+ );
1303
+ },
1304
+ )}
1305
+ <CapButton
1306
+ className="add-action-button"
1307
+ type="flat"
1308
+ isAddBtn
1309
+ onClick={handleAddActionClick}
1310
+ >
1311
+ {formatMessage(globalMessages.addAction)}
1312
+ </CapButton>
1313
+ </CapColumn>
1314
+ </CapSpin>
1315
+ </CapRow>
2388
1316
  </CapRow>
2389
- )}
2390
- </Flex>
2391
- )
1317
+ );
1318
+ })}
1319
+ </CapRow>
1320
+ {Object.keys(caseToActions || []).length < 2 && (
1321
+ <CapRow className="workflow-add-button-container">
1322
+ <CreateActionButton
1323
+ buttonText={formatMessage(globalMessages.when)}
1324
+ buttonAction={addWhenConditionHandler}
1325
+ buttonClassName="lp-btn-config-workflows-add-when-condition"
1326
+ />
1327
+ </CapRow>
1328
+ )}
1329
+ </Flex>
2392
1330
  )}
2393
- {
2394
- <CapTooltip
2395
- key={collapseKey}
2396
- title={
2397
- collapse
2398
- ? formatMessage(globalMessages.collapse)
2399
- : formatMessage(globalMessages.expand)
2400
- }
2401
- placement="right"
2402
- getPopupContainer={trigger => trigger.parentNode}
2403
- mouseLeaveDelay={0}
2404
- >
2405
- <CapIcon
2406
- type={collapse ? 'chevron-left' : 'chevron-right'}
2407
- className="workflow-collapse-btn"
2408
- onClick={toggleCollapse}
2409
- aria-label="btn-expand"
2410
- />
2411
- </CapTooltip>
2412
- }
2413
1331
  </CapColumn>
2414
1332
  </CapRow>
2415
1333
  {showActions && (
@@ -2438,19 +1356,17 @@ export const WorkflowConfigurationSection = props => {
2438
1356
  props={getActionProps()}
2439
1357
  action={selectedAction}
2440
1358
  eventType={eventType}
1359
+ currentProgram={currentProgram}
2441
1360
  pointStrategy={localPointStrategy}
2442
1361
  trackersDetails={trackersDetails}
1362
+ extendedFields={extendedFields}
1363
+ ebillTemplates={ebillTemplates}
1364
+ labels={labels}
2443
1365
  allowedChannels={UICompatibleChannels}
2444
1366
  refreshStrategyData={refreshStrategyData}
2445
1367
  pointTypeIdData={pointTypeIdData}
2446
1368
  evaluatedTracker={evaluatedTracker}
2447
1369
  fleetLoyaltyEnabled={fleetLoyaltyEnabled}
2448
- isGenericEvent={isGenericEvent}
2449
- isLineItemLevel={
2450
- promotionFormData?.CREATE_PROMOTION_FORM?.type ===
2451
- type.LINE_ITEM
2452
- }
2453
- hasQuantityOptionPresent={hasQuantityOptionPresent}
2454
1370
  />
2455
1371
  </div>
2456
1372
  )}
@@ -2474,15 +1390,7 @@ export const WorkflowConfigurationSection = props => {
2474
1390
  bannerContent={
2475
1391
  <div>
2476
1392
  <CapLabel type="label1" className="navigation-label">
2477
- {formatMessage(
2478
- messages[
2479
- `${
2480
- hasNewUIPromotionEnabled
2481
- ? 'promotionBannerText'
2482
- : 'promotionsNotSupportedText'
2483
- }`
2484
- ],
2485
- )}
1393
+ {formatMessage(messages.PromotionsNotSupportedText)}
2486
1394
  </CapLabel>
2487
1395
  </div>
2488
1396
  }
@@ -2510,26 +1418,14 @@ WorkflowConfigurationSection.propTypes = {
2510
1418
  setIsSaveDisabled: PropTypes.func,
2511
1419
  isSaveDisabled: PropTypes.bool,
2512
1420
  fleetLoyaltyEnabled: PropTypes.bool,
2513
- source: PropTypes.string,
2514
- triggerSaveExpression: PropTypes.bool,
2515
- isPromotionEditFlow: PropTypes.bool,
2516
- triggerSaveRuleset: PropTypes.bool,
2517
- promotionFormData: PropTypes.object,
2518
- promotionRulesets: PropTypes.array,
2519
- setShowPublishAndActivateModal: PropTypes.func,
2520
- areProrateOnOptionsDisabled: PropTypes.bool,
2521
- billType: PropTypes.string,
2522
1421
  };
2523
1422
 
2524
1423
  WorkflowConfigurationSection.defaultProps = {
2525
1424
  selectedRuleset: '',
2526
1425
  processedRuleSets: { group: {} },
2527
1426
  setProcessedRuleSets: () => {},
2528
- showSearch: 'none',
2529
1427
  setIsSaveDisabled: () => {},
2530
1428
  isSaveDisabled: false,
2531
- areProrateOnOptionsDisabled: false,
2532
- billType: '',
2533
1429
  };
2534
1430
 
2535
1431
  const mapStateToProps = createStructuredSelector({
@@ -2537,29 +1433,22 @@ const mapStateToProps = createStructuredSelector({
2537
1433
  userData: makeSelectCap(),
2538
1434
  trackersData: makeSelectTrackers(),
2539
1435
  workflowData: makeSelectConfigWorkflow(),
1436
+ extendedFieldsData: makeSelectExtendedFields(),
1437
+ ebillTemplatesData: makeSelectEbillTemplates(),
1438
+ labelData: makeSelectLabels(),
2540
1439
  deleteActionData: makeSelectDeleteAction(),
2541
1440
  deleteConditionData: makeSelectDeleteCondition(),
2542
1441
  actionDetailsData: makeSelectUpsertAction(),
2543
1442
  expressionOnUpdate: makeSelectExpressionOnUpdate(),
2544
1443
  remountExpEditor: makeSelectRemountExpEditor(),
2545
- isScrolling: makeSelectIsScrolling(),
2546
- dynamicWidth: makeSelectDynamicWidth(),
2547
- toggleOnAction: makeSelectToggleOnAction(),
2548
- orgConfigDetails: makeSelectOrgConfigDetails(),
2549
- alternateCurrencyList: makeSelectAlternateCurrencyList(),
2550
- alternateCurrencyFlag: makeSelectAlternateCurrencyFlagStatus(),
2551
- targetGroupData: makeSelectTargetGroups(),
2552
1444
  });
2553
1445
 
2554
1446
  function mapDispatchToProps(dispatch) {
2555
1447
  return {
2556
1448
  actions: bindActionCreators(actions, dispatch),
2557
1449
  capActions: bindActionCreators(capActions, dispatch),
1450
+ tiersActions: bindActionCreators(tiersActions, dispatch),
2558
1451
  programSummaryActions: bindActionCreators(programSummaryActions, dispatch),
2559
- targetGroupsActionsMappedAction: bindActionCreators(
2560
- targetGroupsActionsMappedAction,
2561
- dispatch,
2562
- ),
2563
1452
  };
2564
1453
  }
2565
1454
 
@@ -2567,24 +1456,15 @@ const withConnect = connect(
2567
1456
  mapStateToProps,
2568
1457
  mapDispatchToProps,
2569
1458
  );
2570
- const withSaga = [
2571
- { key: 'configureWorkflow', saga },
2572
- { key: 'targetPointAllocation', saga: targetPointAllocationWorkflowSaga },
2573
- ].map(saga => injectSaga(saga));
2574
-
2575
- const withReducer = [
2576
- { key: 'configureWorkflow', reducer },
2577
- {
2578
- key: 'targetPointAllocation',
2579
- reducer: targetPointAllocationWorkflowReducer,
2580
- },
2581
- ].map(reducer => injectReducer(reducer));
1459
+
1460
+ const withSaga = injectSaga({ key: 'configureWorkflow', saga });
1461
+ const withReducer = injectReducer({ key: 'configureWorkflow', reducer });
1462
+
2582
1463
  export default withErrorBoundary(
2583
1464
  compose(
2584
- ...withSaga,
2585
- ...withReducer,
1465
+ withSaga,
1466
+ withReducer,
2586
1467
  withConnect,
2587
- withRouter,
2588
1468
  )(
2589
1469
  injectIntl(
2590
1470
  clearDataOnUnmount(withStyles(WorkflowConfigurationSection, styles)),