ordering-ui-admin-external 1.24.2 → 1.25.0

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 (228) hide show
  1. package/_bundles/main.css +12158 -12158
  2. package/_bundles/{ordering-ui-admin.0c354f3e7da49f56465b.js → ordering-ui-admin.f2522b983a000252b407.js} +2 -2
  3. package/_modules/components/CartRecovery/RecoveryActionAdd/index.js +16 -3
  4. package/_modules/components/CartRecovery/RecoveryActionAdd/styles.js +65 -0
  5. package/_modules/components/CartRecovery/RecoveryActionList/index.js +1 -1
  6. package/_modules/components/CartRecovery/RecoveryActionList/styles.js +3 -7
  7. package/_modules/components/CartRecovery/RecoveryActionListing/index.js +21 -2
  8. package/_modules/components/CartRecovery/RecoveryActionListing/styles.js +1 -1
  9. package/_modules/components/CartRecovery/RecoveryNotificationList/index.js +6 -2
  10. package/_modules/components/CartRecovery/RecoveryNotificationList/styles.js +3 -7
  11. package/_modules/components/CartRecovery/SingleRecoveryNotification/index.js +67 -21
  12. package/_modules/components/CartRecovery/SingleRecoveryNotification/styles.js +1 -1
  13. package/_modules/components/CartRecovery/index.js +8 -1
  14. package/_modules/components/Delivery/DriversCompaniesList/index.js +1 -1
  15. package/_modules/components/Delivery/DriversCompaniesList/styles.js +3 -7
  16. package/_modules/components/Delivery/DriversGroupsList/index.js +1 -1
  17. package/_modules/components/Delivery/DriversGroupsList/styles.js +3 -10
  18. package/_modules/components/Delivery/UsersList/index.js +1 -1
  19. package/_modules/components/Delivery/UsersList/styles.js +8 -15
  20. package/_modules/components/Marketing/CampaignList/index.js +1 -1
  21. package/_modules/components/Marketing/CampaignList/styles.js +3 -7
  22. package/_modules/components/Marketing/EnterprisePromotionDetails/index.js +1 -0
  23. package/_modules/components/Marketing/EnterprisePromotionList/index.js +1 -1
  24. package/_modules/components/Marketing/EnterprisePromotionList/styles.js +4 -8
  25. package/_modules/components/Marketing/EnterprisePromotionListing/index.js +9 -1
  26. package/_modules/components/Marketing/EnterprisePromotionRules/index.js +7 -2
  27. package/_modules/components/Messages/MessagesListing/index.js +8 -2
  28. package/_modules/components/MyProducts/ContentForm/index.js +0 -1
  29. package/_modules/components/OrderingProducts/OrderingProductsListing/index.js +1 -1
  30. package/_modules/components/OrderingProducts/OrderingProductsListing/styles.js +7 -11
  31. package/_modules/components/Orders/DeliveriesManager/index.js +1 -0
  32. package/_modules/components/Orders/DriversList/index.js +10 -9
  33. package/_modules/components/Orders/DriversList/styles.js +9 -16
  34. package/_modules/components/Orders/Logistics/index.js +15 -7
  35. package/_modules/components/Orders/Logistics/styles.js +1 -1
  36. package/_modules/components/Orders/OrderDetails/index.js +15 -13
  37. package/_modules/components/Orders/OrderDetailsHeader/index.js +7 -12
  38. package/_modules/components/Orders/OrderNotification/index.js +33 -1
  39. package/_modules/components/Orders/OrdersCards/index.js +11 -10
  40. package/_modules/components/Orders/OrdersCards/styles.js +1 -1
  41. package/_modules/components/Orders/OrdersTable/index.js +10 -9
  42. package/_modules/components/Settings/Cms/index.js +1 -1
  43. package/_modules/components/Settings/Cms/styles.js +3 -7
  44. package/_modules/components/Settings/CountriesList/index.js +1 -1
  45. package/_modules/components/Settings/CountriesList/styles.js +3 -7
  46. package/_modules/components/Settings/DropdownOptionList/index.js +1 -1
  47. package/_modules/components/Settings/DropdownOptionList/styles.js +3 -7
  48. package/_modules/components/Settings/LanguageTransTable/index.js +7 -6
  49. package/_modules/components/Settings/LanguageTransTable/styles.js +3 -7
  50. package/_modules/components/Settings/PlaceListing/index.js +1 -1
  51. package/_modules/components/Settings/PlaceListing/styles.js +3 -7
  52. package/_modules/components/Settings/SettingsList/index.js +1 -1
  53. package/_modules/components/Shared/HtmlEditor/InsertImage/index.js +202 -0
  54. package/_modules/components/Shared/HtmlEditor/InsertImage/styles.js +36 -0
  55. package/_modules/components/Shared/HtmlEditor/InsertLink/index.js +75 -0
  56. package/_modules/components/Shared/HtmlEditor/InsertLink/styles.js +16 -0
  57. package/_modules/components/Shared/HtmlEditor/InsertVideo/index.js +56 -0
  58. package/_modules/components/Shared/HtmlEditor/InsertVideo/styles.js +14 -0
  59. package/_modules/components/Shared/HtmlEditor/index.js +181 -0
  60. package/_modules/components/Shared/HtmlEditor/styles.js +18 -0
  61. package/_modules/components/Shared/index.js +7 -0
  62. package/_modules/components/Stores/BusinessBrandListing/index.js +1 -1
  63. package/_modules/components/Stores/BusinessBrandListing/styles.js +3 -6
  64. package/_modules/components/Stores/BusinessDeliveryPickupMore/styles.js +1 -1
  65. package/_modules/components/Stores/BusinessDeliveryZoneList/index.js +2 -2
  66. package/_modules/components/Stores/BusinessDeliveryZoneList/styles.js +4 -8
  67. package/_modules/components/Stores/BusinessDetail/styles.js +2 -2
  68. package/_modules/components/Stores/BusinessDetails/index.js +24 -25
  69. package/_modules/components/Stores/BusinessDeviceListing/index.js +1 -1
  70. package/_modules/components/Stores/BusinessDeviceListing/styles.js +1 -4
  71. package/_modules/components/Stores/BusinessMenu/index.js +2 -2
  72. package/_modules/components/Stores/BusinessMenu/styles.js +3 -5
  73. package/_modules/components/Stores/BusinessPlaceGroup/index.js +2 -2
  74. package/_modules/components/Stores/BusinessPlaceGroup/styles.js +3 -7
  75. package/_modules/components/Stores/BusinessPlaceGroupList/index.js +2 -2
  76. package/_modules/components/Stores/BusinessPlaceGroupList/styles.js +3 -7
  77. package/_modules/components/Stores/BusinessProductList/index.js +7 -6
  78. package/_modules/components/Stores/BusinessProductList/styles.js +3 -5
  79. package/_modules/components/Stores/BusinessProductsCategories/index.js +6 -5
  80. package/_modules/components/Stores/BusinessProductsCategories/styles.js +3 -6
  81. package/_modules/components/Stores/BusinessProductsListing/index.js +9 -6
  82. package/_modules/components/Stores/BusinessPromotionList/index.js +2 -2
  83. package/_modules/components/Stores/BusinessPromotionList/styles.js +3 -5
  84. package/_modules/components/Stores/BusinessSummary/index.js +7 -12
  85. package/_modules/components/Stores/BusinessesList/index.js +7 -4
  86. package/_modules/components/Stores/BusinessesList/styles.js +12 -16
  87. package/_modules/components/Stores/BusinessesListing/index.js +4 -2
  88. package/_modules/components/Stores/ImportersButton/index.js +2 -0
  89. package/_modules/components/Stores/ImportersList/index.js +1 -1
  90. package/_modules/components/Stores/ImportersList/styles.js +4 -9
  91. package/_modules/components/Stores/ProductDetails/index.js +19 -20
  92. package/_modules/components/Stores/ProductExtraOptionDetails/index.js +1 -1
  93. package/_modules/components/Stores/ProductExtraOptionDetails/styles.js +1 -5
  94. package/_modules/components/Stores/ProductExtras/index.js +2 -2
  95. package/_modules/components/Stores/ProductExtras/styles.js +3 -7
  96. package/_modules/components/Stores/ProductIngredient/index.js +2 -2
  97. package/_modules/components/Stores/ProductIngredient/styles.js +3 -7
  98. package/_modules/components/Stores/ProductStep/index.js +13 -7
  99. package/_modules/components/Stores/ProductSummary/index.js +2 -8
  100. package/_modules/components/Stores/ProductTagsList/index.js +2 -2
  101. package/_modules/components/Stores/ProductTagsList/styles.js +1 -5
  102. package/_modules/components/Stores/RestaurantSelectGuide/index.js +18 -9
  103. package/_modules/components/Stores/SeoOptions/index.js +25 -10
  104. package/_modules/components/Stores/SingleBusiness/index.js +18 -11
  105. package/_modules/components/Users/CustomerDetails/index.js +6 -7
  106. package/_modules/components/Users/CustomersListing/index.js +10 -4
  107. package/_modules/components/Users/ProfessionalList/index.js +1 -1
  108. package/_modules/components/Users/ProfessionalList/styles.js +8 -12
  109. package/_modules/components/Users/UsersList/index.js +1 -1
  110. package/_modules/components/Users/UsersList/styles.js +11 -15
  111. package/_modules/index.js +6 -0
  112. package/_modules/styles/Buttons/index.js +11 -4
  113. package/_modules/styles/index.js +6 -0
  114. package/index-template.js +1 -1
  115. package/package.json +2 -2
  116. package/src/components/CartRecovery/RecoveryActionAdd/index.js +13 -3
  117. package/src/components/CartRecovery/RecoveryActionAdd/styles.js +179 -0
  118. package/src/components/CartRecovery/RecoveryActionList/index.js +4 -5
  119. package/src/components/CartRecovery/RecoveryActionList/styles.js +0 -6
  120. package/src/components/CartRecovery/RecoveryActionListing/index.js +25 -6
  121. package/src/components/CartRecovery/RecoveryActionListing/styles.js +2 -1
  122. package/src/components/CartRecovery/RecoveryNotificationList/index.js +7 -3
  123. package/src/components/CartRecovery/RecoveryNotificationList/styles.js +5 -13
  124. package/src/components/CartRecovery/SingleRecoveryNotification/index.js +91 -42
  125. package/src/components/CartRecovery/SingleRecoveryNotification/styles.js +2 -2
  126. package/src/components/CartRecovery/index.js +3 -1
  127. package/src/components/Delivery/DriversCompaniesList/index.js +3 -4
  128. package/src/components/Delivery/DriversCompaniesList/styles.js +0 -6
  129. package/src/components/Delivery/DriversGroupsList/index.js +3 -4
  130. package/src/components/Delivery/DriversGroupsList/styles.js +0 -12
  131. package/src/components/Delivery/UsersList/index.js +3 -4
  132. package/src/components/Delivery/UsersList/styles.js +0 -12
  133. package/src/components/Marketing/CampaignList/index.js +3 -4
  134. package/src/components/Marketing/CampaignList/styles.js +0 -6
  135. package/src/components/Marketing/EnterprisePromotionDetails/index.js +1 -0
  136. package/src/components/Marketing/EnterprisePromotionList/index.js +3 -4
  137. package/src/components/Marketing/EnterprisePromotionList/styles.js +0 -7
  138. package/src/components/Marketing/EnterprisePromotionListing/index.js +6 -1
  139. package/src/components/Marketing/EnterprisePromotionRules/index.js +7 -2
  140. package/src/components/Messages/MessagesListing/index.js +3 -0
  141. package/src/components/MyProducts/ContentForm/index.js +0 -1
  142. package/src/components/OrderingProducts/OrderingProductsListing/index.js +3 -4
  143. package/src/components/OrderingProducts/OrderingProductsListing/styles.js +0 -7
  144. package/src/components/Orders/DeliveriesManager/index.js +1 -0
  145. package/src/components/Orders/DriversList/index.js +4 -4
  146. package/src/components/Orders/DriversList/styles.js +0 -10
  147. package/src/components/Orders/Logistics/index.js +10 -1
  148. package/src/components/Orders/Logistics/styles.js +6 -0
  149. package/src/components/Orders/OrderDetails/index.js +11 -13
  150. package/src/components/Orders/OrderDetailsHeader/index.js +40 -43
  151. package/src/components/Orders/OrderNotification/index.js +19 -1
  152. package/src/components/Orders/OrdersCards/index.js +7 -7
  153. package/src/components/Orders/OrdersCards/styles.js +3 -1
  154. package/src/components/Orders/OrdersTable/index.js +8 -8
  155. package/src/components/Settings/Cms/index.js +4 -5
  156. package/src/components/Settings/Cms/styles.js +0 -6
  157. package/src/components/Settings/CountriesList/index.js +4 -5
  158. package/src/components/Settings/CountriesList/styles.js +0 -6
  159. package/src/components/Settings/DropdownOptionList/index.js +4 -5
  160. package/src/components/Settings/DropdownOptionList/styles.js +0 -6
  161. package/src/components/Settings/LanguageTransTable/index.js +4 -4
  162. package/src/components/Settings/LanguageTransTable/styles.js +0 -6
  163. package/src/components/Settings/PlaceListing/index.js +4 -5
  164. package/src/components/Settings/PlaceListing/styles.js +0 -6
  165. package/src/components/Settings/SettingsList/index.js +88 -88
  166. package/src/components/Shared/HtmlEditor/InsertImage/index.js +172 -0
  167. package/src/components/Shared/HtmlEditor/InsertImage/styles.js +136 -0
  168. package/src/components/Shared/HtmlEditor/InsertLink/index.js +73 -0
  169. package/src/components/Shared/HtmlEditor/InsertLink/styles.js +34 -0
  170. package/src/components/Shared/HtmlEditor/InsertVideo/index.js +51 -0
  171. package/src/components/Shared/HtmlEditor/InsertVideo/styles.js +23 -0
  172. package/src/components/Shared/HtmlEditor/index.js +172 -0
  173. package/src/components/Shared/HtmlEditor/styles.js +30 -0
  174. package/src/components/Shared/index.js +3 -1
  175. package/src/components/Stores/BusinessBrandListing/index.js +2 -2
  176. package/src/components/Stores/BusinessBrandListing/styles.js +0 -7
  177. package/src/components/Stores/BusinessDeliveryPickupMore/styles.js +0 -4
  178. package/src/components/Stores/BusinessDeliveryZoneList/index.js +9 -7
  179. package/src/components/Stores/BusinessDeliveryZoneList/styles.js +1 -11
  180. package/src/components/Stores/BusinessDetail/styles.js +1 -4
  181. package/src/components/Stores/BusinessDetails/index.js +12 -17
  182. package/src/components/Stores/BusinessDeviceListing/index.js +2 -2
  183. package/src/components/Stores/BusinessDeviceListing/styles.js +0 -7
  184. package/src/components/Stores/BusinessMenu/index.js +9 -7
  185. package/src/components/Stores/BusinessMenu/styles.js +1 -6
  186. package/src/components/Stores/BusinessPlaceGroup/index.js +7 -3
  187. package/src/components/Stores/BusinessPlaceGroup/styles.js +1 -12
  188. package/src/components/Stores/BusinessPlaceGroupList/index.js +5 -3
  189. package/src/components/Stores/BusinessPlaceGroupList/styles.js +1 -12
  190. package/src/components/Stores/BusinessProductList/index.js +9 -6
  191. package/src/components/Stores/BusinessProductList/styles.js +1 -6
  192. package/src/components/Stores/BusinessProductsCategories/index.js +10 -7
  193. package/src/components/Stores/BusinessProductsCategories/styles.js +1 -6
  194. package/src/components/Stores/BusinessProductsListing/index.js +5 -2
  195. package/src/components/Stores/BusinessPromotionList/index.js +7 -5
  196. package/src/components/Stores/BusinessPromotionList/styles.js +1 -5
  197. package/src/components/Stores/BusinessSummary/index.js +4 -7
  198. package/src/components/Stores/BusinessesList/index.js +7 -5
  199. package/src/components/Stores/BusinessesList/styles.js +0 -8
  200. package/src/components/Stores/BusinessesListing/index.js +3 -1
  201. package/src/components/Stores/ImportersButton/index.js +2 -0
  202. package/src/components/Stores/ImportersList/index.js +3 -4
  203. package/src/components/Stores/ImportersList/styles.js +1 -13
  204. package/src/components/Stores/ProductDetails/index.js +12 -16
  205. package/src/components/Stores/ProductExtraOptionDetails/index.js +3 -3
  206. package/src/components/Stores/ProductExtraOptionDetails/styles.js +0 -9
  207. package/src/components/Stores/ProductExtras/index.js +9 -7
  208. package/src/components/Stores/ProductExtras/styles.js +1 -8
  209. package/src/components/Stores/ProductIngredient/index.js +9 -7
  210. package/src/components/Stores/ProductIngredient/styles.js +1 -8
  211. package/src/components/Stores/ProductStep/index.js +25 -4
  212. package/src/components/Stores/ProductSummary/index.js +3 -7
  213. package/src/components/Stores/ProductTagsList/index.js +7 -5
  214. package/src/components/Stores/ProductTagsList/styles.js +0 -7
  215. package/src/components/Stores/RestaurantSelectGuide/index.js +54 -24
  216. package/src/components/Stores/SeoOptions/index.js +15 -1
  217. package/src/components/Stores/SingleBusiness/index.js +9 -3
  218. package/src/components/Users/CustomerDetails/index.js +6 -8
  219. package/src/components/Users/CustomersListing/index.js +4 -1
  220. package/src/components/Users/ProfessionalList/index.js +3 -4
  221. package/src/components/Users/ProfessionalList/styles.js +0 -7
  222. package/src/components/Users/UsersList/index.js +3 -4
  223. package/src/components/Users/UsersList/styles.js +0 -7
  224. package/src/index.js +2 -1
  225. package/src/styles/Buttons/index.js +15 -1
  226. package/src/styles/index.js +2 -1
  227. package/template/pages/Login/index.js +2 -4
  228. /package/_bundles/{ordering-ui-admin.0c354f3e7da49f56465b.js.LICENSE.txt → ordering-ui-admin.f2522b983a000252b407.js.LICENSE.txt} +0 -0
@@ -42,7 +42,8 @@ var RecoveryActionAddUI = function RecoveryActionAddUI(props) {
42
42
  var _useForm = (0, _reactHookForm.useForm)(),
43
43
  register = _useForm.register,
44
44
  handleSubmit = _useForm.handleSubmit,
45
- errors = _useForm.errors;
45
+ errors = _useForm.errors,
46
+ setValue = _useForm.setValue;
46
47
  var _useState = (0, _react.useState)({
47
48
  open: false,
48
49
  content: []
@@ -158,6 +159,16 @@ var RecoveryActionAddUI = function RecoveryActionAddUI(props) {
158
159
  handleAddRecoveryAction();
159
160
  };
160
161
  var handleSwitchTime = function handleSwitchTime() {
162
+ var preorderTime;
163
+ if (!isTime) {
164
+ preorderTime = parseInt(curPreorderTime === null || curPreorderTime === void 0 ? void 0 : curPreorderTime.hour) * 3600 + parseInt(curPreorderTime === null || curPreorderTime === void 0 ? void 0 : curPreorderTime.minute) * 60 + parseInt(curPreorderTime === null || curPreorderTime === void 0 ? void 0 : curPreorderTime.second);
165
+ } else {
166
+ preorderTime = curDayTime * 24 * 3600;
167
+ }
168
+ handleChangeItem({
169
+ times: [preorderTime],
170
+ launch_type: 'times'
171
+ });
161
172
  setIsTime(function (prev) {
162
173
  return !prev;
163
174
  });
@@ -267,8 +278,10 @@ var RecoveryActionAddUI = function RecoveryActionAddUI(props) {
267
278
  defaultValue: (_formState$changes$ch = formState === null || formState === void 0 ? void 0 : (_formState$changes7 = formState.changes) === null || _formState$changes7 === void 0 ? void 0 : _formState$changes7.channel) !== null && _formState$changes$ch !== void 0 ? _formState$changes$ch : '',
268
279
  options: channelList,
269
280
  onChange: function onChange(val) {
270
- return handleChangeItem({
271
- channel: val
281
+ setValue('body', '');
282
+ handleChangeItem({
283
+ channel: val,
284
+ body: ''
272
285
  });
273
286
  }
274
287
  })), /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('MESSAGE', 'Message')), ((_formState$changes8 = formState.changes) === null || _formState$changes8 === void 0 ? void 0 : _formState$changes8.channel) === 'email' ? /*#__PURE__*/_react.default.createElement(_Shared.HtmlEditor, {
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.TypeWrapper = exports.TimeContent = exports.TimeBlock = exports.RecoveryActionAddContainer = exports.ParentCheckBoxWrapper = exports.Option = exports.LastTimeWrapper = exports.InputWrapper = exports.DaysContent = exports.CardContainer = exports.ButtonsContainer = void 0;
8
+ var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13;
10
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
11
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
12
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
13
+ var RecoveryActionAddContainer = _styledComponents.default.form(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n"])));
14
+ exports.RecoveryActionAddContainer = RecoveryActionAddContainer;
15
+ var CardContainer = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.12);\n border-radius: 7.6px;\n padding: 25px 38px;\n margin-bottom: 29px;\n\n h2 {\n font-size: 16px;\n font-weight: 600;\n margin: 0 0 29px 0;\n }\n"])));
16
+ exports.CardContainer = CardContainer;
17
+ var ButtonsContainer = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: flex-end;\n margin: 60px 0;\n\n button {\n border-radius: 8px;\n height: 44px;\n &:first-child {\n margin: 0 10px;\n }\n }\n"])));
18
+ exports.ButtonsContainer = ButtonsContainer;
19
+ var InputWrapper = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin-bottom: 25px;\n\n label {\n font-size: 14px;\n line-height: 24px;\n margin-bottom: 10px;\n }\n\n input, textarea {\n width: 100%;\n }\n\n .select {\n border: 1px solid ", ";\n padding: 9px 0;\n }\n"])), function (props) {
20
+ return props.theme.colors.borderColor;
21
+ });
22
+ exports.InputWrapper = InputWrapper;
23
+ var LastTimeWrapper = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin-top: 40px;\n\n > h3 {\n font-weight: 600;\n font-size: 16px;\n line-height: 24px;\n margin-top: 0px;\n margin-bottom: 23px;\n }\n"])));
24
+ exports.LastTimeWrapper = LastTimeWrapper;
25
+ var TypeWrapper = _styledComponents.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n margin-bottom: 15px;\n"])));
26
+ exports.TypeWrapper = TypeWrapper;
27
+ var ParentCheckBoxWrapper = _styledComponents.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n > div {\n display: flex;\n align-items: center;\n cursor: pointer;\n width: fit-content;\n\n svg {\n font-size: 16px;\n color: ", ";\n &.checked-icon {\n color: ", ";\n }\n }\n \n > span {\n font-size: 14px;\n line-height: 24px;\n margin-left: 13px;\n ", "\n }\n }\n"])), function (props) {
28
+ return props.theme.colors.secundaryLight;
29
+ }, function (props) {
30
+ return props.theme.colors.primary;
31
+ }, function (props) {
32
+ return props.theme.rtl && (0, _styledComponents.css)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n margin-right: 13px;\n margin-left: 0px;\n "])));
33
+ });
34
+ exports.ParentCheckBoxWrapper = ParentCheckBoxWrapper;
35
+ var TimeContent = _styledComponents.default.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n padding: 15px 0px 10px 0px; \n"])));
36
+ exports.TimeContent = TimeContent;
37
+ var TimeBlock = _styledComponents.default.div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n display: flex;\n border: 1px solid ", ";\n box-sizing: border-box;\n border-radius: 7.6px;\n width: fit-content;\n align-items: center;\n overflow: hidden;\n\n > span {\n color: ", ";\n }\n \n > select {\n height: 40px;\n padding: 0px 10px;\n border: none;\n outline: none;\n font-size: 14px;\n color: ", ";\n appearance: none;\n }\n"])), function (props) {
38
+ return props.theme.colors.gray;
39
+ }, function (props) {
40
+ var _props$theme;
41
+ return (_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.colors.secundaryLight;
42
+ }, function (props) {
43
+ var _props$theme2;
44
+ return (_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.colors.secundaryLight;
45
+ });
46
+ exports.TimeBlock = TimeBlock;
47
+ var DaysContent = _styledComponents.default.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n padding: 15px 0px 10px 0px;\n\n input {\n width: 100%;\n height: 44px;\n border-radius: 8px !important;\n padding: 0px 15px !important;\n outline: none !important;\n border: 1px solid ", " !important;\n padding-right: 25px;\n ", "\n &::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */\n color: ", ";\n opacity: 1; /* Firefox */\n }\n\n &:-ms-input-placeholder { /* Internet Explorer 10-11 */\n color: ", ";\n }\n\n &::-ms-input-placeholder { /* Microsoft Edge */\n color: ", ";\n }\n }\n\n b {\n border: none !important;\n background: transparent !important;\n box-shadow: none !important;\n &:nth-child(2) {\n i {\n border: none !important;\n box-shadow: -1px 1px 0 ", ";\n transform: rotate(135deg);\n width: 7px !important;\n height: 7px !important;\n margin: 0ex 0px 0px -0.56ex !important;\n }\n }\n &:last-child {\n i {\n border: none !important;\n box-shadow: -1px 1px 0 ", ";\n transform: rotate(-45deg);\n width: 7px !important;\n height: 7px !important;\n margin: -0.9ex 0px 0px -0.56ex !important;\n }\n }\n }\n"])), function (props) {
48
+ return props.theme.colors.gray;
49
+ }, function (props) {
50
+ var _props$theme3;
51
+ return ((_props$theme3 = props.theme) === null || _props$theme3 === void 0 ? void 0 : _props$theme3.rtl) && (0, _styledComponents.css)(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n padding-left: 25px;\n padding-right: 15px;\n "])));
52
+ }, function (props) {
53
+ return props.theme.colors.secundaryLight;
54
+ }, function (props) {
55
+ return props.theme.colors.secundaryLight;
56
+ }, function (props) {
57
+ return props.theme.colors.secundaryLight;
58
+ }, function (props) {
59
+ return props.theme.colors.secundaryLight;
60
+ }, function (props) {
61
+ return props.theme.colors.secundaryLight;
62
+ });
63
+ exports.DaysContent = DaysContent;
64
+ var Option = _styledComponents.default.div(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n font-size: 14px;\n line-height: 24px;\n"])));
65
+ exports.Option = Option;
@@ -157,7 +157,7 @@ var RecoveryActionList = function RecoveryActionList(props) {
157
157
  },
158
158
  className: "enable_control"
159
159
  })))));
160
- }))), !recoveryActionList.loading && /*#__PURE__*/_react.default.createElement(_styles2.PagesBottomContainer, null, /*#__PURE__*/_react.default.createElement(_styles2.AddNewPageButton, {
160
+ }))), !recoveryActionList.loading && /*#__PURE__*/_react.default.createElement(_styles2.PagesBottomContainer, null, /*#__PURE__*/_react.default.createElement(_styles.LinkButton, {
161
161
  onClick: function onClick() {
162
162
  return handleOpenDetail({});
163
163
  }
@@ -4,9 +4,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.Tbody = exports.Table = exports.SwitchWrapper = exports.PagesBottomContainer = exports.DragImageWrapper = exports.Container = exports.AddNewPageButton = void 0;
7
+ exports.Tbody = exports.Table = exports.SwitchWrapper = exports.PagesBottomContainer = exports.DragImageWrapper = exports.Container = void 0;
8
8
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21;
9
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20;
10
10
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
11
11
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
12
12
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
@@ -75,8 +75,4 @@ exports.SwitchWrapper = SwitchWrapper;
75
75
  var DragImageWrapper = _styledComponents.default.div(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n img {\n &:hover {\n cursor: grab;\n }\n }\n"])));
76
76
  exports.DragImageWrapper = DragImageWrapper;
77
77
  var PagesBottomContainer = _styledComponents.default.div(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n width: calc(100% - 10px);\n display: flex;\n justify-content: space-between;\n align-items: center;\n flex-wrap: wrap;\n row-gap: 10px;\n margin: 15px 0;\n"])));
78
- exports.PagesBottomContainer = PagesBottomContainer;
79
- var AddNewPageButton = _styledComponents.default.div(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n cursor: pointer;\n font-size: 14px;\n color: ", ";\n"])), function (props) {
80
- return props.theme.colors.primary;
81
- });
82
- exports.AddNewPageButton = AddNewPageButton;
78
+ exports.PagesBottomContainer = PagesBottomContainer;
@@ -12,6 +12,7 @@ var _RecoveryActionHeader = require("../RecoveryActionHeader");
12
12
  var _RecoveryActionList = require("../RecoveryActionList");
13
13
  var _Shared = require("../../Shared");
14
14
  var _RecoveryActionDetail = require("../RecoveryActionDetail");
15
+ var _RecoveryActionAdd = require("../RecoveryActionAdd");
15
16
  var _styles = require("./styles");
16
17
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
17
18
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -42,15 +43,27 @@ var RecoveryActionListingUI = function RecoveryActionListingUI(props) {
42
43
  _useState6 = _slicedToArray(_useState5, 2),
43
44
  selectedActionId = _useState6[0],
44
45
  setSelectedActionId = _useState6[1];
46
+ var _useState7 = (0, _react.useState)(false),
47
+ _useState8 = _slicedToArray(_useState7, 2),
48
+ isAddMode = _useState8[0],
49
+ setIsAddMode = _useState8[1];
45
50
  var handleCloseDetail = function handleCloseDetail() {
46
51
  setIsOpenDetail(false);
47
52
  setSelectedAction(null);
53
+ setIsAddMode(false);
48
54
  history.replace("".concat(location.pathname));
49
55
  };
50
56
  var handleOpenDetail = function handleOpenDetail(action, isInitialRender) {
51
57
  setSelectedAction(action);
52
58
  setSelectedActionId(action === null || action === void 0 ? void 0 : action.id);
53
59
  setIsOpenDetail(true);
60
+ if (!Object.keys(action || {}).length) {
61
+ setIsAddMode(true);
62
+ history.replace("".concat(location.pathname));
63
+ return;
64
+ } else {
65
+ setIsAddMode(false);
66
+ }
54
67
  if (action && !isInitialRender) {
55
68
  history.replace("".concat(location.pathname, "?id=").concat(action.id));
56
69
  }
@@ -65,10 +78,16 @@ var RecoveryActionListingUI = function RecoveryActionListingUI(props) {
65
78
  }, []);
66
79
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles.RecoveryActionsContainer, null, /*#__PURE__*/_react.default.createElement(_RecoveryActionHeader.RecoveryActionHeader, _extends({}, props, {
67
80
  handleOpenDetail: handleOpenDetail
68
- })), /*#__PURE__*/_react.default.createElement(_RecoveryActionList.RecoveryActionList, _extends({}, props, {
81
+ })), !isAddMode ? /*#__PURE__*/_react.default.createElement(_RecoveryActionList.RecoveryActionList, _extends({}, props, {
69
82
  handleOpenDetail: handleOpenDetail,
70
83
  selectedAction: selectedAction
71
- }))), isOpenDetail && /*#__PURE__*/_react.default.createElement(_Shared.SideBar, {
84
+ })) : /*#__PURE__*/_react.default.createElement(_RecoveryActionAdd.RecoveryActionAdd, _extends({}, props, {
85
+ action: selectedAction,
86
+ actionId: selectedActionId,
87
+ onClose: function onClose() {
88
+ return handleCloseDetail();
89
+ }
90
+ }))), isOpenDetail && !isAddMode && /*#__PURE__*/_react.default.createElement(_Shared.SideBar, {
72
91
  open: isOpenDetail,
73
92
  onClose: function onClose() {
74
93
  return handleCloseDetail();
@@ -8,5 +8,5 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
8
8
  var _templateObject;
9
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
10
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
11
- var RecoveryActionsContainer = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n flex: 1;\n padding: 20px;\n box-sizing: border-box;\n transition: all 0.5s;\n overflow: hidden;\n"])));
11
+ var RecoveryActionsContainer = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n flex: 1;\n padding: 20px;\n box-sizing: border-box;\n transition: all 0.5s;\n max-height: 100vh;\n overflow: auto;\n"])));
12
12
  exports.RecoveryActionsContainer = RecoveryActionsContainer;
@@ -122,12 +122,16 @@ var RecoveryNotificationListUI = function RecoveryNotificationListUI(props) {
122
122
  onClick: function onClick() {
123
123
  return handleEditNotification(notification);
124
124
  }
125
- }, t('EDIT', 'Edit'))), /*#__PURE__*/_react.default.createElement(_styles2.PreviewContent, null, (notification === null || notification === void 0 ? void 0 : notification.channel) === 'email' && /*#__PURE__*/_react.default.createElement(_styles2.EmailPreviewWrapper, null, /*#__PURE__*/_react.default.createElement(_styles2.EmailPreviewHeader, null, /*#__PURE__*/_react.default.createElement(_styles2.PointGroup, null, /*#__PURE__*/_react.default.createElement("div", null), /*#__PURE__*/_react.default.createElement("div", null), /*#__PURE__*/_react.default.createElement("div", null))), /*#__PURE__*/_react.default.createElement(_styles2.EmailPreviewContent, null, /*#__PURE__*/_react.default.createElement("h2", null, notification === null || notification === void 0 ? void 0 : notification.title), /*#__PURE__*/_react.default.createElement("p", null, notification.body))), (notification === null || notification === void 0 ? void 0 : notification.channel) === 'sms' && /*#__PURE__*/_react.default.createElement(_styles2.SmsPreviewWrapper, null, /*#__PURE__*/_react.default.createElement(_styles2.SmsContentLayout, {
125
+ }, t('EDIT', 'Edit'))), /*#__PURE__*/_react.default.createElement(_styles2.PreviewContent, null, (notification === null || notification === void 0 ? void 0 : notification.channel) === 'email' && /*#__PURE__*/_react.default.createElement(_styles2.EmailPreviewWrapper, null, /*#__PURE__*/_react.default.createElement(_styles2.EmailPreviewHeader, null, /*#__PURE__*/_react.default.createElement(_styles2.PointGroup, null, /*#__PURE__*/_react.default.createElement("div", null), /*#__PURE__*/_react.default.createElement("div", null), /*#__PURE__*/_react.default.createElement("div", null))), /*#__PURE__*/_react.default.createElement(_styles2.EmailPreviewContent, null, /*#__PURE__*/_react.default.createElement("h2", null, notification === null || notification === void 0 ? void 0 : notification.title), /*#__PURE__*/_react.default.createElement("div", {
126
+ dangerouslySetInnerHTML: {
127
+ __html: notification.body
128
+ }
129
+ }))), (notification === null || notification === void 0 ? void 0 : notification.channel) === 'sms' && /*#__PURE__*/_react.default.createElement(_styles2.SmsPreviewWrapper, null, /*#__PURE__*/_react.default.createElement(_styles2.SmsContentLayout, {
126
130
  bgimage: theme.images.general.mobileHalfMask
127
131
  }, /*#__PURE__*/_react.default.createElement(_styles2.SmsPreviewContentWrapper, null, /*#__PURE__*/_react.default.createElement(_styles2.SmsPreviewContent, null, /*#__PURE__*/_react.default.createElement("h2", null, notification === null || notification === void 0 ? void 0 : notification.title), /*#__PURE__*/_react.default.createElement("p", null, notification.body))))), (notification === null || notification === void 0 ? void 0 : notification.channel) === 'notification' && /*#__PURE__*/_react.default.createElement(_styles2.SmsPreviewWrapper, null, /*#__PURE__*/_react.default.createElement(_styles2.SmsContentLayout, {
128
132
  bgimage: theme.images.general.mobileHalfMask
129
133
  }, /*#__PURE__*/_react.default.createElement(_styles2.SmsPreviewContentWrapper, null, /*#__PURE__*/_react.default.createElement(_styles2.SmsPreviewContent, null, /*#__PURE__*/_react.default.createElement("h2", null, notification === null || notification === void 0 ? void 0 : notification.title), /*#__PURE__*/_react.default.createElement("p", null, notification.body)))))));
130
- }), /*#__PURE__*/_react.default.createElement(_styles2.AddNewNotificationButton, null, /*#__PURE__*/_react.default.createElement("span", {
134
+ }), /*#__PURE__*/_react.default.createElement(_styles2.AddNewNotificationButton, null, /*#__PURE__*/_react.default.createElement(_styles.LinkButton, {
131
135
  onClick: function onClick() {
132
136
  return setIsAddModal(true);
133
137
  }
@@ -28,7 +28,7 @@ var PreivewEditWrapper = _styledComponents.default.div(_templateObject5 || (_tem
28
28
  exports.PreivewEditWrapper = PreivewEditWrapper;
29
29
  var PreviewContent = _styledComponents.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral([""])));
30
30
  exports.PreviewContent = PreviewContent;
31
- var EmailPreviewWrapper = _styledComponents.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n max-width: 317px;\n margin-left: auto;\n margin-right: auto;\n border: 1px solid ", ";\n\n ", "\n"])), function (props) {
31
+ var EmailPreviewWrapper = _styledComponents.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n max-width: 400px;\n margin-left: auto;\n margin-right: auto;\n border: 1px solid ", ";\n\n ", "\n"])), function (props) {
32
32
  return props.theme.colors.borderColor;
33
33
  }, function (_ref2) {
34
34
  var isSkeleton = _ref2.isSkeleton;
@@ -43,7 +43,7 @@ var EmailPreviewHeader = _styledComponents.default.div(_templateObject9 || (_tem
43
43
  exports.EmailPreviewHeader = EmailPreviewHeader;
44
44
  var PointGroup = _styledComponents.default.div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n padding: 0px 4px;\n height: 100%;\n > div {\n width: 7px;\n height: 7px;\n min-width: 7px;\n border-radius: 50%;\n background-color: #CED4DA;\n margin: 0px 4px;\n }\n"])));
45
45
  exports.PointGroup = PointGroup;
46
- var EmailPreviewContent = _styledComponents.default.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n background-color: ", ";\n padding: 13px 30px;\n\n > h2 {\n margin-top: 0px;\n margin-bottom: 10px;\n text-align: center;\n font-size: 10px;\n }\n p {\n margin: 0px;\n font-size: 7px;\n }\n"])), function (props) {
46
+ var EmailPreviewContent = _styledComponents.default.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n background-color: ", ";\n padding: 13px 30px;\n\n > h2 {\n margin-top: 0px;\n margin-bottom: 10px;\n text-align: center;\n font-size: 10px;\n }\n\n > div {\n zoom: 0.4;\n overflow: auto;\n }\n"])), function (props) {
47
47
  return props.theme.colors.primaryContrast;
48
48
  });
49
49
  exports.EmailPreviewContent = EmailPreviewContent;
@@ -85,9 +85,5 @@ var SmsPreviewContent = _styledComponents.default.div(_templateObject19 || (_tem
85
85
  exports.SmsPreviewContent = SmsPreviewContent;
86
86
  var NotificationMessageContent = (0, _styledComponents.default)(SmsPreviewContent)(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n height: fit-content;\n margin: 20px 0px 0px 0px;\n"])));
87
87
  exports.NotificationMessageContent = NotificationMessageContent;
88
- var AddNewNotificationButton = _styledComponents.default.div(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n font-size: 14px;\n color: ", ";\n padding-bottom: 15px;\n span {\n cursor: pointer;\n }\n\n &:hover {\n color: ", ";\n }\n"])), function (props) {
89
- return props.theme.colors.lightGray;
90
- }, function (props) {
91
- return props.theme.colors.primary;
92
- });
88
+ var AddNewNotificationButton = _styledComponents.default.div(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n padding-bottom: 15px;\n"])));
93
89
  exports.AddNewNotificationButton = AddNewNotificationButton;
@@ -10,6 +10,7 @@ var _orderingComponentsAdminExternal = require("ordering-components-admin-extern
10
10
  var _styles = require("../../../styles");
11
11
  var _Select = require("../../../styles/Select");
12
12
  var _Shared = require("../../Shared");
13
+ var _reactHookForm = require("react-hook-form");
13
14
  var _styles2 = require("./styles");
14
15
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
16
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -25,7 +26,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
25
26
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
26
27
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
27
28
  var SingleRecoveryNotificationUI = function SingleRecoveryNotificationUI(props) {
28
- var _formState$changes, _formState$changes2, _notification$title, _formState$changes3, _formState$changes4, _notification$body, _formState$changes5, _formState$changes6, _notification$channel;
29
+ var _formState$changes2, _formState$changes3, _notification$title, _formState$changes4, _formState$changes5, _notification$channel, _formState$changes6, _formState$changes7, _formState$changes8, _notification$body, _formState$changes9, _formState$changes10, _notification$body2;
29
30
  var notification = props.notification,
30
31
  formState = props.formState,
31
32
  handleChangeInput = props.handleChangeInput,
@@ -33,10 +34,16 @@ var SingleRecoveryNotificationUI = function SingleRecoveryNotificationUI(props)
33
34
  handleUpdateClick = props.handleUpdateClick,
34
35
  handleDeleteClick = props.handleDeleteClick,
35
36
  isAdd = props.isAdd,
36
- handleClickAddBtn = props.handleClickAddBtn;
37
+ handleClickAddBtn = props.handleClickAddBtn,
38
+ handleChangeItems = props.handleChangeItems;
37
39
  var _useLanguage = (0, _orderingComponentsAdminExternal.useLanguage)(),
38
40
  _useLanguage2 = _slicedToArray(_useLanguage, 2),
39
41
  t = _useLanguage2[1];
42
+ var _useForm = (0, _reactHookForm.useForm)(),
43
+ register = _useForm.register,
44
+ handleSubmit = _useForm.handleSubmit,
45
+ errors = _useForm.errors,
46
+ setValue = _useForm.setValue;
40
47
  var _useState = (0, _react.useState)({
41
48
  open: false,
42
49
  content: []
@@ -94,44 +101,83 @@ var SingleRecoveryNotificationUI = function SingleRecoveryNotificationUI(props)
94
101
  content: formState === null || formState === void 0 ? void 0 : formState.error
95
102
  });
96
103
  }, [formState === null || formState === void 0 ? void 0 : formState.error]);
97
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles2.Container, null, /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('TITLE', 'Title')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
104
+ (0, _react.useEffect)(function () {
105
+ if (Object.keys(errors).length > 0) {
106
+ setAlertState({
107
+ open: true,
108
+ content: Object.values(errors).map(function (error) {
109
+ return error.message;
110
+ })
111
+ });
112
+ }
113
+ }, [errors]);
114
+ var onSubmit = function onSubmit() {
115
+ var _formState$changes;
116
+ if (!((_formState$changes = formState.changes) !== null && _formState$changes !== void 0 && _formState$changes.channel) && !(notification !== null && notification !== void 0 && notification.channel)) {
117
+ setAlertState({
118
+ open: true,
119
+ content: [t('VALIDATION_ERROR_REQUIRED').replace('_attribute_', t('CHANNEL', 'Channel'))]
120
+ });
121
+ return;
122
+ }
123
+ if (isAdd) {
124
+ handleClickAddBtn();
125
+ } else {
126
+ handleClickUpdateBtn(notification === null || notification === void 0 ? void 0 : notification.id);
127
+ }
128
+ };
129
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles2.Container, {
130
+ onSubmit: handleSubmit(onSubmit)
131
+ }, /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('TITLE', 'Title')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
98
132
  name: "title",
99
133
  placeholder: t('TITLE', 'Title'),
100
- defaultValue: formState !== null && formState !== void 0 && (_formState$changes = formState.changes) !== null && _formState$changes !== void 0 && _formState$changes.title ? formState === null || formState === void 0 ? void 0 : (_formState$changes2 = formState.changes) === null || _formState$changes2 === void 0 ? void 0 : _formState$changes2.title : (_notification$title = notification === null || notification === void 0 ? void 0 : notification.title) !== null && _notification$title !== void 0 ? _notification$title : '',
101
- onChange: handleChangeInput
102
- })), /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('MESSAGE', 'Message')), /*#__PURE__*/_react.default.createElement(_styles.TextArea, {
103
- name: "body",
104
- placeholder: t('WRITE_MESSAGE', 'Write a message'),
105
- defaultValue: formState !== null && formState !== void 0 && (_formState$changes3 = formState.changes) !== null && _formState$changes3 !== void 0 && _formState$changes3.body ? formState === null || formState === void 0 ? void 0 : (_formState$changes4 = formState.changes) === null || _formState$changes4 === void 0 ? void 0 : _formState$changes4.body : (_notification$body = notification === null || notification === void 0 ? void 0 : notification.body) !== null && _notification$body !== void 0 ? _notification$body : '',
134
+ defaultValue: formState !== null && formState !== void 0 && (_formState$changes2 = formState.changes) !== null && _formState$changes2 !== void 0 && _formState$changes2.title ? formState === null || formState === void 0 ? void 0 : (_formState$changes3 = formState.changes) === null || _formState$changes3 === void 0 ? void 0 : _formState$changes3.title : (_notification$title = notification === null || notification === void 0 ? void 0 : notification.title) !== null && _notification$title !== void 0 ? _notification$title : '',
135
+ ref: register({
136
+ required: t('VALIDATION_ERROR_REQUIRED').replace('_attribute_', t('TITLE', 'Title'))
137
+ }),
106
138
  onChange: handleChangeInput
107
139
  })), isAdd && /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('CHANNEL', 'Channel')), /*#__PURE__*/_react.default.createElement(_Select.Select, {
108
140
  placeholder: placeholder,
109
- defaultValue: formState !== null && formState !== void 0 && (_formState$changes5 = formState.changes) !== null && _formState$changes5 !== void 0 && _formState$changes5.channel ? formState === null || formState === void 0 ? void 0 : (_formState$changes6 = formState.changes) === null || _formState$changes6 === void 0 ? void 0 : _formState$changes6.channel : (_notification$channel = notification === null || notification === void 0 ? void 0 : notification.channel) !== null && _notification$channel !== void 0 ? _notification$channel : '',
141
+ defaultValue: formState !== null && formState !== void 0 && (_formState$changes4 = formState.changes) !== null && _formState$changes4 !== void 0 && _formState$changes4.channel ? formState === null || formState === void 0 ? void 0 : (_formState$changes5 = formState.changes) === null || _formState$changes5 === void 0 ? void 0 : _formState$changes5.channel : (_notification$channel = notification === null || notification === void 0 ? void 0 : notification.channel) !== null && _notification$channel !== void 0 ? _notification$channel : '',
110
142
  options: channelList,
111
143
  onChange: function onChange(val) {
112
- return handleChangeSelect('channel', val);
144
+ setValue('body', '');
145
+ handleChangeItems({
146
+ channel: val,
147
+ body: ''
148
+ });
149
+ }
150
+ })), /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('MESSAGE', 'Message')), (formState === null || formState === void 0 ? void 0 : (_formState$changes6 = formState.changes) === null || _formState$changes6 === void 0 ? void 0 : _formState$changes6.channel) === 'email' || (notification === null || notification === void 0 ? void 0 : notification.channel) === 'email' ? /*#__PURE__*/_react.default.createElement(_Shared.HtmlEditor, {
151
+ body: formState !== null && formState !== void 0 && (_formState$changes7 = formState.changes) !== null && _formState$changes7 !== void 0 && _formState$changes7.body ? formState === null || formState === void 0 ? void 0 : (_formState$changes8 = formState.changes) === null || _formState$changes8 === void 0 ? void 0 : _formState$changes8.body : (_notification$body = notification === null || notification === void 0 ? void 0 : notification.body) !== null && _notification$body !== void 0 ? _notification$body : '',
152
+ handleChangeBody: function handleChangeBody(val) {
153
+ return handleChangeSelect('body', val);
113
154
  }
114
- }))), /*#__PURE__*/_react.default.createElement(_styles2.ButtonGroup, null, isAdd ? /*#__PURE__*/_react.default.createElement(_styles.Button, {
155
+ }) : /*#__PURE__*/_react.default.createElement(_styles.TextArea, {
156
+ name: "body",
157
+ placeholder: t('WRITE_MESSAGE', 'Write a message'),
158
+ defaultValue: formState !== null && formState !== void 0 && (_formState$changes9 = formState.changes) !== null && _formState$changes9 !== void 0 && _formState$changes9.body ? formState === null || formState === void 0 ? void 0 : (_formState$changes10 = formState.changes) === null || _formState$changes10 === void 0 ? void 0 : _formState$changes10.body : (_notification$body2 = notification === null || notification === void 0 ? void 0 : notification.body) !== null && _notification$body2 !== void 0 ? _notification$body2 : '',
159
+ onChange: handleChangeInput,
160
+ ref: register({
161
+ required: t('VALIDATION_ERROR_REQUIRED').replace('_attribute_', t('MESSAGE', 'Message'))
162
+ })
163
+ })), /*#__PURE__*/_react.default.createElement(_styles2.ButtonGroup, null, isAdd ? /*#__PURE__*/_react.default.createElement(_styles.Button, {
115
164
  color: "primary",
165
+ type: "submit",
116
166
  borderRadius: "8px",
117
- disabled: Object.keys(formState === null || formState === void 0 ? void 0 : formState.changes).length === 0 || (formState === null || formState === void 0 ? void 0 : formState.loading),
118
- onClick: function onClick() {
119
- return handleClickAddBtn();
120
- }
167
+ disabled: Object.keys(formState === null || formState === void 0 ? void 0 : formState.changes).length === 0 || (formState === null || formState === void 0 ? void 0 : formState.loading)
121
168
  }, t('ADD', 'Add')) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles.Button, {
122
169
  color: "primary",
170
+ type: "submit",
123
171
  borderRadius: "8px",
124
- disabled: Object.keys(formState === null || formState === void 0 ? void 0 : formState.changes).length === 0 || (formState === null || formState === void 0 ? void 0 : formState.loading),
125
- onClick: function onClick() {
126
- return handleClickUpdateBtn(notification === null || notification === void 0 ? void 0 : notification.id);
127
- }
172
+ disabled: Object.keys(formState === null || formState === void 0 ? void 0 : formState.changes).length === 0 || (formState === null || formState === void 0 ? void 0 : formState.loading)
128
173
  }, t('ACCEPT', 'Accept')), /*#__PURE__*/_react.default.createElement(_styles.Button, {
174
+ type: "button",
129
175
  color: "secundary",
130
176
  borderRadius: "8px",
131
177
  onClick: function onClick() {
132
178
  return onClickDeleteNotification(notification === null || notification === void 0 ? void 0 : notification.id);
133
179
  }
134
- }, t('DELETE', 'Delete')))), /*#__PURE__*/_react.default.createElement(_Shared.Alert, {
180
+ }, t('DELETE', 'Delete'))))), /*#__PURE__*/_react.default.createElement(_Shared.Alert, {
135
181
  title: t('RECOVERY_ACTIONS', 'Recovery actions'),
136
182
  content: alertState.content,
137
183
  acceptText: t('ACCEPT', 'Accept'),
@@ -10,7 +10,7 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
10
10
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
11
11
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
12
12
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
13
- var Container = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\n"])));
13
+ var Container = _styledComponents.default.form(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n min-height: calc(100% - 70px);\n"])));
14
14
  exports.Container = Container;
15
15
  var InputWrapper = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n label {\n margin-bottom: 10px;\n font-size: 14px;\n line-height: 24px;\n }\n input, textarea {\n width: 100%;\n }\n textarea {\n height: 80px;\n }\n margin-bottom: 35px;\n\n .select {\n border: 1px solid ", ";\n }\n"])), function (props) {
16
16
  return props.theme.colors.gray;
@@ -9,6 +9,12 @@ Object.defineProperty(exports, "OpenCartListing", {
9
9
  return _OpenCartListing.OpenCartListing;
10
10
  }
11
11
  });
12
+ Object.defineProperty(exports, "RecoveryActionAdd", {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _RecoveryActionAdd.RecoveryActionAdd;
16
+ }
17
+ });
12
18
  Object.defineProperty(exports, "RecoveryActionListing", {
13
19
  enumerable: true,
14
20
  get: function get() {
@@ -16,4 +22,5 @@ Object.defineProperty(exports, "RecoveryActionListing", {
16
22
  }
17
23
  });
18
24
  var _OpenCartListing = require("./OpenCartListing");
19
- var _RecoveryActionListing = require("./RecoveryActionListing");
25
+ var _RecoveryActionListing = require("./RecoveryActionListing");
26
+ var _RecoveryActionAdd = require("./RecoveryActionAdd");
@@ -165,7 +165,7 @@ var DriversCompaniesList = function DriversCompaniesList(props) {
165
165
  });
166
166
  }
167
167
  })))));
168
- }))), !driversCompaniesState.loading && /*#__PURE__*/_react.default.createElement(_styles2.PagesBottomContainer, null, /*#__PURE__*/_react.default.createElement(_styles2.AddNewCompanyButton, {
168
+ }))), !driversCompaniesState.loading && /*#__PURE__*/_react.default.createElement(_styles2.PagesBottomContainer, null, /*#__PURE__*/_react.default.createElement(_styles.LinkButton, {
169
169
  onClick: function onClick() {
170
170
  return handleOpenDetails(null);
171
171
  }
@@ -4,9 +4,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.TimezoneWrapper = exports.TableWrapper = exports.PriorityWrapper = exports.PagesBottomContainer = exports.LimitWrapper = exports.EnableWrapper = exports.DriversCompaniesContainer = exports.CompanyNameContainer = exports.CompaniesTable = exports.CheckBoxWrapper = exports.AddNewCompanyButton = void 0;
7
+ exports.TimezoneWrapper = exports.TableWrapper = exports.PriorityWrapper = exports.PagesBottomContainer = exports.LimitWrapper = exports.EnableWrapper = exports.DriversCompaniesContainer = exports.CompanyNameContainer = exports.CompaniesTable = exports.CheckBoxWrapper = void 0;
8
8
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20;
9
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19;
10
10
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
11
11
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
12
12
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
@@ -68,8 +68,4 @@ var EnableWrapper = _styledComponents.default.div(_templateObject16 || (_templat
68
68
  });
69
69
  exports.EnableWrapper = EnableWrapper;
70
70
  var PagesBottomContainer = _styledComponents.default.div(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n flex-wrap: wrap;\n row-gap: 10px;\n margin: 15px 0 38px 0;\n"])));
71
- exports.PagesBottomContainer = PagesBottomContainer;
72
- var AddNewCompanyButton = _styledComponents.default.div(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n cursor: pointer;\n font-size: 12px;\n color: ", ";\n"])), function (props) {
73
- return props.theme.colors.primary;
74
- });
75
- exports.AddNewCompanyButton = AddNewCompanyButton;
71
+ exports.PagesBottomContainer = PagesBottomContainer;
@@ -172,7 +172,7 @@ var DriversGroupsList = function DriversGroupsList(props) {
172
172
  });
173
173
  }
174
174
  }))))));
175
- }))), !driversGroupsState.loading && /*#__PURE__*/_react.default.createElement(_styles2.PagesBottomContainer, null, !isFromStore && /*#__PURE__*/_react.default.createElement(_styles2.AddNewGroupButton, {
175
+ }))), !driversGroupsState.loading && /*#__PURE__*/_react.default.createElement(_styles2.PagesBottomContainer, null, !isFromStore && /*#__PURE__*/_react.default.createElement(_styles.LinkButton, {
176
176
  onClick: function onClick() {
177
177
  return handleOpenDetails(null);
178
178
  },
@@ -4,10 +4,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.WrapperImage = exports.TableWrapper = exports.PagesBottomContainer = exports.InfoBlock = exports.Image = exports.GroupsTable = exports.GroupNameContainer = exports.GroupIdWrapper = exports.EnableWrapper = exports.DriversGroupsContainer = exports.DriverManagerContainer = exports.DriverGroupTypeContainer = exports.CheckBoxWrapper = exports.BorderWrapper = exports.AddNewGroupButton = exports.ActionsContainer = void 0;
7
+ exports.WrapperImage = exports.TableWrapper = exports.PagesBottomContainer = exports.InfoBlock = exports.Image = exports.GroupsTable = exports.GroupNameContainer = exports.GroupIdWrapper = exports.EnableWrapper = exports.DriversGroupsContainer = exports.DriverManagerContainer = exports.DriverGroupTypeContainer = exports.CheckBoxWrapper = exports.BorderWrapper = exports.ActionsContainer = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
10
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30;
10
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28;
11
11
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
12
12
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
13
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -100,12 +100,5 @@ var EnableWrapper = _styledComponents.default.div(_templateObject24 || (_templat
100
100
  exports.EnableWrapper = EnableWrapper;
101
101
  var PagesBottomContainer = _styledComponents.default.div(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n flex-wrap: wrap;\n row-gap: 10px;\n margin: 15px 0 38px 0;\n"])));
102
102
  exports.PagesBottomContainer = PagesBottomContainer;
103
- var AddNewGroupButton = _styledComponents.default.div(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral(["\n cursor: pointer;\n font-size: 12px;\n color: ", ";\n\n ", "\n"])), function (props) {
104
- return props.theme.colors.primary;
105
- }, function (_ref5) {
106
- var disabled = _ref5.disabled;
107
- return disabled && (0, _styledComponents.css)(_templateObject29 || (_templateObject29 = _taggedTemplateLiteral(["\n opacity: 0.5;\n cursor: not-allowed;\n pointer-events: none;\n "])));
108
- });
109
- exports.AddNewGroupButton = AddNewGroupButton;
110
- var GroupIdWrapper = _styledComponents.default.div(_templateObject30 || (_templateObject30 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n\n > span {\n margin: 0 20px;\n }\n"])));
103
+ var GroupIdWrapper = _styledComponents.default.div(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n\n > span {\n margin: 0 20px;\n }\n"])));
111
104
  exports.GroupIdWrapper = GroupIdWrapper;
@@ -205,7 +205,7 @@ var UsersList = function UsersList(props) {
205
205
  return handleEnable(user, enabled);
206
206
  }
207
207
  })))));
208
- }))), /*#__PURE__*/_react.default.createElement(_styles2.UsersBottomContainer, null, /*#__PURE__*/_react.default.createElement(_styles2.AddNewUserButton, {
208
+ }))), /*#__PURE__*/_react.default.createElement(_styles2.UsersBottomContainer, null, /*#__PURE__*/_react.default.createElement(_styles.LinkButton, {
209
209
  onClick: function onClick() {
210
210
  return handleOpenUserAddForm();
211
211
  },
@@ -4,10 +4,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.WrapperPagination = exports.WrapperImage = exports.VerifiedItemsContainer = exports.VerifiedItem = exports.UsersTable = exports.UsersConatiner = exports.UsersBottomContainer = exports.UserTypeWrapper = exports.UserTableWrapper = exports.UserMainInfo = exports.UserIdWrapper = exports.UserEnableWrapper = exports.InfoBlock = exports.Image = exports.CheckBoxWrapper = exports.AddNewUserButton = void 0;
7
+ exports.WrapperPagination = exports.WrapperImage = exports.VerifiedItemsContainer = exports.VerifiedItem = exports.UsersTable = exports.UsersConatiner = exports.UsersBottomContainer = exports.UserTypeWrapper = exports.UserTableWrapper = exports.UserMainInfo = exports.UserIdWrapper = exports.UserEnableWrapper = exports.InfoBlock = exports.Image = exports.CheckBoxWrapper = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
10
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33;
10
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31;
11
11
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
12
12
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
13
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -95,28 +95,21 @@ var UserEnableWrapper = _styledComponents.default.div(_templateObject20 || (_tem
95
95
  exports.UserEnableWrapper = UserEnableWrapper;
96
96
  var WrapperPagination = _styledComponents.default.div(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n"])));
97
97
  exports.WrapperPagination = WrapperPagination;
98
- var AddNewUserButton = _styledComponents.default.div(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["\n cursor: pointer;\n color: ", ";\n width: fit-content;\n font-size: 14px;\n\n ", "\n"])), function (props) {
99
- return props.theme.colors.primary;
100
- }, function (_ref3) {
101
- var disabled = _ref3.disabled;
102
- return disabled && (0, _styledComponents.css)(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["\n opacity: 0.5;\n pointer-events: none;\n "])));
103
- });
104
- exports.AddNewUserButton = AddNewUserButton;
105
- var UsersBottomContainer = _styledComponents.default.div(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n align-items: center;\n margin-top: 10px;\n margin-bottom: 38px;\n"])));
98
+ var UsersBottomContainer = _styledComponents.default.div(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n align-items: center;\n margin-top: 10px;\n margin-bottom: 38px;\n"])));
106
99
  exports.UsersBottomContainer = UsersBottomContainer;
107
- var VerifiedItem = _styledComponents.default.span(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral(["\n font-size: 10px;\n background-color: ", ";\n padding: 3px 10px;\n border-radius: 50px;\n color: ", ";\n display: flex;\n align-items: center;\n\n svg {\n font-size: 12px;\n ", "\n }\n"])), function (props) {
100
+ var VerifiedItem = _styledComponents.default.span(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["\n font-size: 10px;\n background-color: ", ";\n padding: 3px 10px;\n border-radius: 50px;\n color: ", ";\n display: flex;\n align-items: center;\n\n svg {\n font-size: 12px;\n ", "\n }\n"])), function (props) {
108
101
  return props.theme.colors.lightGreen;
109
102
  }, function (props) {
110
103
  return props.theme.colors.green;
111
104
  }, function (props) {
112
105
  var _props$theme6;
113
- return (_props$theme6 = props.theme) !== null && _props$theme6 !== void 0 && _props$theme6.rtl ? (0, _styledComponents.css)(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral(["\n margin-left: 3px;\n "]))) : (0, _styledComponents.css)(_templateObject29 || (_templateObject29 = _taggedTemplateLiteral(["\n margin-right: 3px;\n "])));
106
+ return (_props$theme6 = props.theme) !== null && _props$theme6 !== void 0 && _props$theme6.rtl ? (0, _styledComponents.css)(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["\n margin-left: 3px;\n "]))) : (0, _styledComponents.css)(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral(["\n margin-right: 3px;\n "])));
114
107
  });
115
108
  exports.VerifiedItem = VerifiedItem;
116
- var VerifiedItemsContainer = _styledComponents.default.div(_templateObject30 || (_templateObject30 = _taggedTemplateLiteral(["\n position: absolute;\n top: 0;\n display: flex;\n flex-direction: column;\n\n ", "\n\n > span {\n &:not(:first-child) {\n margin-top: 5px;\n }\n }\n"])), function (props) {
109
+ var VerifiedItemsContainer = _styledComponents.default.div(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral(["\n position: absolute;\n top: 0;\n display: flex;\n flex-direction: column;\n\n ", "\n\n > span {\n &:not(:first-child) {\n margin-top: 5px;\n }\n }\n"])), function (props) {
117
110
  var _props$theme7;
118
- return (_props$theme7 = props.theme) !== null && _props$theme7 !== void 0 && _props$theme7.rtl ? (0, _styledComponents.css)(_templateObject31 || (_templateObject31 = _taggedTemplateLiteral(["\n left: 10px;\n "]))) : (0, _styledComponents.css)(_templateObject32 || (_templateObject32 = _taggedTemplateLiteral(["\n right: 10px;\n "])));
111
+ return (_props$theme7 = props.theme) !== null && _props$theme7 !== void 0 && _props$theme7.rtl ? (0, _styledComponents.css)(_templateObject29 || (_templateObject29 = _taggedTemplateLiteral(["\n left: 10px;\n "]))) : (0, _styledComponents.css)(_templateObject30 || (_templateObject30 = _taggedTemplateLiteral(["\n right: 10px;\n "])));
119
112
  });
120
113
  exports.VerifiedItemsContainer = VerifiedItemsContainer;
121
- var UserIdWrapper = _styledComponents.default.div(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n"])));
114
+ var UserIdWrapper = _styledComponents.default.div(_templateObject31 || (_templateObject31 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n"])));
122
115
  exports.UserIdWrapper = UserIdWrapper;