contentoh-components-library 21.4.66 → 21.4.68

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 (157) hide show
  1. package/dist/components/atoms/Avatar/index.js +2 -3
  2. package/dist/components/atoms/CheckBox/styles.js +1 -1
  3. package/dist/components/atoms/InputFormatter/styles.js +1 -1
  4. package/dist/components/atoms/SliderToolTip/styles.js +1 -1
  5. package/dist/components/molecules/BoxAttribute/index.js +3 -3
  6. package/dist/components/molecules/BoxAttribute/styles.js +1 -1
  7. package/dist/components/molecules/BoxButtons/index.js +1 -0
  8. package/dist/components/molecules/CarouselImagesLogin/index.js +1 -1
  9. package/dist/components/molecules/HeaderTop/index.js +11 -68
  10. package/dist/components/molecules/SignInLogin/index.js +28 -36
  11. package/dist/components/molecules/StripeCardSelector/CardSelector.stories.js +2 -1
  12. package/dist/components/organisms/Chat/Chat.stories.js +8 -27
  13. package/dist/components/organisms/Chat/ContainerItems/index.js +3 -19
  14. package/dist/components/organisms/Chat/ContainerItems/styles.js +1 -1
  15. package/dist/components/organisms/Chat/ContentChat/index.js +197 -350
  16. package/dist/components/organisms/Chat/Footer/index.js +39 -48
  17. package/dist/components/organisms/Chat/index.js +4 -49
  18. package/dist/components/organisms/Chat/styles.js +1 -1
  19. package/dist/components/organisms/DashboardMetric/index.js +6 -12
  20. package/dist/components/organisms/FullProductNameHeader/index.js +2 -2
  21. package/dist/components/organisms/InputGroup/index.js +10 -1
  22. package/dist/components/organisms/Modal/styles.js +1 -1
  23. package/dist/components/pages/Dashboard/Dashboard.stories.js +36 -33
  24. package/dist/components/pages/Dashboard/index.js +14 -56
  25. package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +3 -3
  26. package/dist/components/pages/ProviderProductEdition/index.js +144 -120
  27. package/dist/components/pages/ProviderProductEdition/styles.js +1 -1
  28. package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +3 -7
  29. package/dist/components/pages/RetailerProductEdition/index.js +433 -312
  30. package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
  31. package/dist/components/pages/RetailerProductEdition/utils.js +2 -61
  32. package/dist/global-files/data.js +3 -11
  33. package/dist/global-files/variables.js +1 -5
  34. package/dist/index.js +58 -201
  35. package/package.json +1 -2
  36. package/src/components/atoms/Avatar/index.js +2 -8
  37. package/src/components/atoms/CheckBox/styles.js +0 -2
  38. package/src/components/atoms/InputFormatter/styles.js +1 -2
  39. package/src/components/atoms/SliderToolTip/styles.js +1 -1
  40. package/src/components/atoms/TabSection/styles.js +1 -1
  41. package/src/components/molecules/BoxAttribute/index.js +25 -32
  42. package/src/components/molecules/BoxAttribute/styles.js +1 -1
  43. package/src/components/molecules/BoxButtons/index.js +22 -23
  44. package/src/components/molecules/CarouselImagesLogin/index.js +1 -1
  45. package/src/components/molecules/HeaderTop/index.js +6 -52
  46. package/src/components/molecules/SignInLogin/index.js +11 -11
  47. package/src/components/molecules/StripeCardSelector/CardSelector.stories.js +2 -1
  48. package/src/components/molecules/TagAndInput/index.js +5 -6
  49. package/src/components/organisms/Chat/Chat.stories.js +7 -27
  50. package/src/components/organisms/Chat/ContainerItems/index.js +2 -18
  51. package/src/components/organisms/Chat/ContainerItems/styles.js +2 -14
  52. package/src/components/organisms/Chat/ContentChat/index.js +12 -88
  53. package/src/components/organisms/Chat/Footer/index.js +0 -11
  54. package/src/components/organisms/Chat/index.js +4 -46
  55. package/src/components/organisms/Chat/styles.js +0 -4
  56. package/src/components/organisms/DashboardMetric/index.js +3 -6
  57. package/src/components/organisms/FullProductNameHeader/index.js +1 -1
  58. package/src/components/organisms/InputGroup/index.js +119 -131
  59. package/src/components/organisms/Modal/styles.js +1 -4
  60. package/src/components/organisms/OrderDetail/utils/Table/utils.js +16 -6
  61. package/src/components/pages/Dashboard/Dashboard.stories.js +38 -33
  62. package/src/components/pages/Dashboard/index.js +39 -73
  63. package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +83 -100
  64. package/src/components/pages/ProviderProductEdition/index.js +131 -100
  65. package/src/components/pages/ProviderProductEdition/styles.js +1 -5
  66. package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +2 -6
  67. package/src/components/pages/RetailerProductEdition/index.js +309 -147
  68. package/src/components/pages/RetailerProductEdition/styles.js +0 -4
  69. package/src/components/pages/RetailerProductEdition/utils.js +0 -37
  70. package/src/global-files/data.js +13 -7
  71. package/src/global-files/variables.js +0 -4
  72. package/src/index.js +0 -11
  73. package/dist/assets/fonts/roboto/LICENSE.txt +0 -202
  74. package/dist/components/atoms/ImageCarousel/ImgeSlider.stories.js +0 -90
  75. package/dist/components/atoms/ImageCarousel/index.js +0 -120
  76. package/dist/components/atoms/ImageCarousel/styles.js +0 -18
  77. package/dist/components/atoms/PercentTag/PercentTag.stories.js +0 -31
  78. package/dist/components/atoms/PercentTag/index.js +0 -23
  79. package/dist/components/atoms/PercentTag/styles.js +0 -22
  80. package/dist/components/atoms/RatingStars/RatingStars.stories.js +0 -30
  81. package/dist/components/atoms/RatingStars/index.js +0 -53
  82. package/dist/components/atoms/RatingStars/styles.js +0 -18
  83. package/dist/components/atoms/RetailerCatalog/RetailerCatalog.stories.js +0 -48
  84. package/dist/components/atoms/RetailerCatalog/index.js +0 -69
  85. package/dist/components/atoms/RetailerCatalog/styles.js +0 -20
  86. package/dist/components/atoms/RetailerOption/RetailerOption.stories.js +0 -33
  87. package/dist/components/atoms/RetailerOption/index.js +0 -62
  88. package/dist/components/atoms/RetailerOption/styles.js +0 -20
  89. package/dist/components/atoms/RetailersList/RetailersList.stories.js +0 -45
  90. package/dist/components/atoms/RetailersList/index.js +0 -46
  91. package/dist/components/atoms/RetailersList/styles.js +0 -18
  92. package/dist/components/atoms/UserCatalog/UserCatalog.stories.js +0 -73
  93. package/dist/components/atoms/UserCatalog/index.js +0 -101
  94. package/dist/components/atoms/UserCatalog/styles.js +0 -18
  95. package/dist/components/atoms/UserOption/UserOption.stories.js +0 -40
  96. package/dist/components/atoms/UserOption/index.js +0 -130
  97. package/dist/components/atoms/UserOption/styles.js +0 -20
  98. package/dist/components/atoms/UserSelector/UserSelector.stories.js +0 -40
  99. package/dist/components/atoms/UserSelector/index.js +0 -98
  100. package/dist/components/atoms/UserSelector/styles.js +0 -32
  101. package/dist/components/molecules/GridItem/GridItem.stories.js +0 -123
  102. package/dist/components/molecules/GridItem/index.js +0 -152
  103. package/dist/components/molecules/GridItem/styles.js +0 -20
  104. package/dist/components/molecules/HeaderItem/ColumnItem.js +0 -23
  105. package/dist/components/molecules/HeaderItem/HeaderItem.stories.js +0 -70
  106. package/dist/components/molecules/HeaderItem/index.js +0 -42
  107. package/dist/components/molecules/HeaderItem/styles.js +0 -30
  108. package/dist/components/molecules/RowItem/ColumnItem.js +0 -23
  109. package/dist/components/molecules/RowItem/RowItem.stories.js +0 -5242
  110. package/dist/components/molecules/RowItem/index.js +0 -58
  111. package/dist/components/molecules/RowItem/styles.js +0 -30
  112. package/dist/components/organisms/GridProducts/GridProducts.stories.js +0 -5097
  113. package/dist/components/organisms/GridProducts/index.js +0 -63
  114. package/dist/components/organisms/GridProducts/styles.js +0 -18
  115. package/dist/components/organisms/GridProducts/utils.js +0 -149
  116. package/src/components/atoms/ImageCarousel/ImgeSlider.stories.js +0 -76
  117. package/src/components/atoms/ImageCarousel/index.js +0 -103
  118. package/src/components/atoms/ImageCarousel/styles.js +0 -79
  119. package/src/components/atoms/PercentTag/PercentTag.stories.js +0 -7
  120. package/src/components/atoms/PercentTag/index.js +0 -9
  121. package/src/components/atoms/PercentTag/styles.js +0 -69
  122. package/src/components/atoms/RatingStars/RatingStars.stories.js +0 -10
  123. package/src/components/atoms/RatingStars/index.js +0 -31
  124. package/src/components/atoms/RatingStars/styles.js +0 -28
  125. package/src/components/atoms/RetailerCatalog/RetailerCatalog.stories.js +0 -36
  126. package/src/components/atoms/RetailerCatalog/index.js +0 -49
  127. package/src/components/atoms/RetailerCatalog/styles.js +0 -30
  128. package/src/components/atoms/RetailerOption/RetailerOption.stories.js +0 -15
  129. package/src/components/atoms/RetailerOption/index.js +0 -53
  130. package/src/components/atoms/RetailerOption/styles.js +0 -41
  131. package/src/components/atoms/RetailersList/RetailersList.stories.js +0 -33
  132. package/src/components/atoms/RetailersList/index.js +0 -20
  133. package/src/components/atoms/RetailersList/styles.js +0 -19
  134. package/src/components/atoms/UserCatalog/UserCatalog.stories.js +0 -67
  135. package/src/components/atoms/UserCatalog/index.js +0 -100
  136. package/src/components/atoms/UserCatalog/styles.js +0 -24
  137. package/src/components/atoms/UserOption/UserOption.stories.js +0 -25
  138. package/src/components/atoms/UserOption/index.js +0 -95
  139. package/src/components/atoms/UserOption/styles.js +0 -61
  140. package/src/components/atoms/UserSelector/UserSelector.stories.js +0 -25
  141. package/src/components/atoms/UserSelector/index.js +0 -86
  142. package/src/components/atoms/UserSelector/styles.js +0 -55
  143. package/src/components/molecules/GridItem/GridItem.stories.js +0 -126
  144. package/src/components/molecules/GridItem/index.js +0 -105
  145. package/src/components/molecules/GridItem/styles.js +0 -104
  146. package/src/components/molecules/HeaderItem/ColumnItem.js +0 -9
  147. package/src/components/molecules/HeaderItem/HeaderItem.stories.js +0 -24
  148. package/src/components/molecules/HeaderItem/index.js +0 -26
  149. package/src/components/molecules/HeaderItem/styles.js +0 -27
  150. package/src/components/molecules/RowItem/ColumnItem.js +0 -9
  151. package/src/components/molecules/RowItem/RowItem.stories.js +0 -5660
  152. package/src/components/molecules/RowItem/index.js +0 -45
  153. package/src/components/molecules/RowItem/styles.js +0 -40
  154. package/src/components/organisms/GridProducts/GridProducts.stories.js +0 -5485
  155. package/src/components/organisms/GridProducts/index.js +0 -50
  156. package/src/components/organisms/GridProducts/styles.js +0 -14
  157. package/src/components/organisms/GridProducts/utils.js +0 -111
@@ -141,16 +141,6 @@ var Dashboard = function Dashboard(_ref) {
141
141
  _useState34 = (0, _slicedToArray2.default)(_useState33, 1),
142
142
  isProviderFinanced = _useState34[0];
143
143
 
144
- var _useState35 = (0, _react.useState)([]),
145
- _useState36 = (0, _slicedToArray2.default)(_useState35, 2),
146
- trades = _useState36[0],
147
- setTrades = _useState36[1];
148
-
149
- var _useState37 = (0, _react.useState)([]),
150
- _useState38 = (0, _slicedToArray2.default)(_useState37, 2),
151
- tradesSelected = _useState38[0],
152
- setTradesSelected = _useState38[1];
153
-
154
144
  var loadProductVersions = /*#__PURE__*/function () {
155
145
  var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(queryObject) {
156
146
  var keys, string, query, endpoint, response;
@@ -241,36 +231,32 @@ var Dashboard = function Dashboard(_ref) {
241
231
 
242
232
  var loadProductsByStatus = /*#__PURE__*/function () {
243
233
  var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(orderByStatus) {
244
- var isRetailer, isProvider, isCollaborator, _ref5, ordersBydate, ordersByStatus, ordersByActive, companyTrades, _ordersByStatus$total, total, _ordersByStatus$R, R, _ordersByStatus$PA, PA, _ordersByStatus$Ex, Ex, _ordersByStatus$ACA, ACA, productsFinished, inProcess, registeredProducts, metricsArray;
234
+ var isRetailer, isProvider, isCollaborator, _ref5, ordersBydate, ordersByStatus, _ordersByStatus$total, total, _ordersByStatus$R, R, _ordersByStatus$PA, PA, _ordersByStatus$Ex, Ex, _ordersByStatus$ACA, ACA, productsFinished, inProcess, metricsArray;
245
235
 
246
236
  return _regenerator.default.wrap(function _callee3$(_context3) {
247
237
  while (1) {
248
238
  switch (_context3.prev = _context3.next) {
249
239
  case 0:
250
- _context3.prev = 0;
251
240
  isRetailer = user.is_retailer && company.retailers;
252
241
  isProvider = !user.is_retailer && user.id_role === 0;
253
242
  isCollaborator = user.id_role > 0;
254
- _context3.next = 6;
243
+ _context3.next = 5;
255
244
  return loadProductVersions(orderByStatus);
256
245
 
257
- case 6:
246
+ case 5:
258
247
  _context3.t0 = _context3.sent;
259
248
 
260
249
  if (_context3.t0) {
261
- _context3.next = 9;
250
+ _context3.next = 8;
262
251
  break;
263
252
  }
264
253
 
265
254
  _context3.t0 = {};
266
255
 
267
- case 9:
256
+ case 8:
268
257
  _ref5 = _context3.t0;
269
258
  ordersBydate = _ref5.ordersBydate;
270
259
  ordersByStatus = _ref5.ordersByStatus;
271
- ordersByActive = _ref5.ordersByActive;
272
- companyTrades = _ref5.companyTrades;
273
- if (trades.length === 0) setTrades(companyTrades);
274
260
  _ordersByStatus$total = ordersByStatus.total, total = _ordersByStatus$total === void 0 ? 0 : _ordersByStatus$total, _ordersByStatus$R = ordersByStatus.R, R = _ordersByStatus$R === void 0 ? 0 : _ordersByStatus$R, _ordersByStatus$PA = ordersByStatus.PA, PA = _ordersByStatus$PA === void 0 ? 0 : _ordersByStatus$PA, _ordersByStatus$Ex = ordersByStatus.Ex, Ex = _ordersByStatus$Ex === void 0 ? 0 : _ordersByStatus$Ex, _ordersByStatus$ACA = ordersByStatus.ACA, ACA = _ordersByStatus$ACA === void 0 ? 0 : _ordersByStatus$ACA;
275
261
  productsFinished = 0;
276
262
  if (isRetailer) productsFinished = Ex;
@@ -279,15 +265,11 @@ var Dashboard = function Dashboard(_ref) {
279
265
  inProcess = Object.keys(ordersByStatus).reduce(function (prev, curr) {
280
266
  return !["total", "PA", "R", "Ex", "ACA"].includes(curr) ? prev + ordersByStatus[curr] : prev;
281
267
  }, 0);
282
- registeredProducts = ordersByActive.registered;
283
268
  metricsArray = [metricsData[0] ? metricsData[0] : {
284
269
  label: "Productos totales",
285
270
  value: total
286
271
  }];
287
272
  metricsArray.push({
288
- label: "Productos activos",
289
- value: registeredProducts
290
- }, {
291
273
  label: "Productos filtrados",
292
274
  value: total
293
275
  }, {
@@ -305,20 +287,13 @@ var Dashboard = function Dashboard(_ref) {
305
287
  delete ordersByStatus.total;
306
288
  setRequiredProducts(ordersBydate);
307
289
  setProductsByStatus(ordersByStatus);
308
- _context3.next = 34;
309
- break;
310
290
 
311
- case 31:
312
- _context3.prev = 31;
313
- _context3.t1 = _context3["catch"](0);
314
- console.log(_context3.t1);
315
-
316
- case 34:
291
+ case 24:
317
292
  case "end":
318
293
  return _context3.stop();
319
294
  }
320
295
  }
321
- }, _callee3, null, [[0, 31]]);
296
+ }, _callee3);
322
297
  }));
323
298
 
324
299
  return function loadProductsByStatus(_x2) {
@@ -445,15 +420,7 @@ var Dashboard = function Dashboard(_ref) {
445
420
  }, _callee4);
446
421
  })), []);
447
422
  (0, _react.useEffect)(function () {
448
- console.log({
449
- orderByRequired: orderByRequired,
450
- orderByStatus: orderByStatus,
451
- metricsData: metricsData
452
- });
453
-
454
- if (orderByRequired !== null && orderByRequired !== void 0 && orderByRequired.startDate && orderByStatus !== null && orderByStatus !== void 0 && orderByStatus.endDate && metricsData.length > 0) {
455
- setLoading(false);
456
- }
423
+ (orderByRequired === null || orderByRequired === void 0 ? void 0 : orderByRequired.startDate) && (orderByStatus === null || orderByStatus === void 0 ? void 0 : orderByStatus.endDate) && metricsData.length > 0 && setLoading(false);
457
424
  }, [orderByRequired, orderByStatus, metricsData]);
458
425
  (0, _react.useEffect)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() {
459
426
  var startDate, endDate, queryObject;
@@ -466,21 +433,20 @@ var Dashboard = function Dashboard(_ref) {
466
433
  startDate: startDate,
467
434
  endDate: endDate
468
435
  };
469
- if (companyId.length > 0) queryObject["companyId"] = companyId.join(",");
470
- if (retailerId.length > 0) queryObject["retailerId"] = retailerId.join(",");
471
- if (categoryId.length > 0) queryObject["categoryId"] = categoryId.join(",");
472
- if (tradesSelected.length > 0) queryObject["trades"] = encodeURIComponent(tradesSelected.join(","));
436
+ companyId.length > 0 && (queryObject["companyId"] = companyId.join(","));
437
+ retailerId.length > 0 && (queryObject["retailerId"] = retailerId.join(","));
438
+ categoryId.length > 0 && (queryObject["categoryId"] = categoryId.join(","));
473
439
  applicantsFilter.length > 0 && (queryObject["requestedBy"] = applicantsFilter.join(","));
474
- _context5.next = 9;
440
+ _context5.next = 8;
475
441
  return loadProductsByStatus(queryObject, true);
476
442
 
477
- case 9:
443
+ case 8:
478
444
  case "end":
479
445
  return _context5.stop();
480
446
  }
481
447
  }
482
448
  }, _callee5);
483
- })), [companyId, retailerId, categoryId, datesRange, applicantsFilter, tradesSelected]);
449
+ })), [companyId, retailerId, categoryId, datesRange, applicantsFilter]);
484
450
  return loading ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Loading.Loading, {}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
485
451
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
486
452
  className: "filters",
@@ -531,14 +497,6 @@ var Dashboard = function Dashboard(_ref) {
531
497
  parameterArray: applicantsFilter,
532
498
  setParameterArray: setApplicantsFilter,
533
499
  defaultOption: "Todos los solicitantes"
534
- }), user.id_role === 0 && (trades === null || trades === void 0 ? void 0 : trades.length) > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomSelect.CustomSelect, {
535
- showSearchBar: true,
536
- options: trades,
537
- selectLabel: "Todas las marcas",
538
- placeHolder: "Buscar marca",
539
- customSelectId: "trade-select",
540
- parameterArray: tradesSelected,
541
- setParameterArray: setTradesSelected
542
500
  })]
543
501
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
544
502
  className: "metric-cards",
@@ -45,10 +45,10 @@ ProviderProductEditionDefault.args = {
45
45
  version: 1,
46
46
  retailersAvailable: [{
47
47
  name: "The Home Depot Golden",
48
- id: 58
48
+ "id": 58
49
49
  }, {
50
50
  name: "The Home Depot Onboarding",
51
- id: 68
51
+ "id": 68
52
52
  }],
53
53
  percentage: "89"
54
54
  },
@@ -146,7 +146,7 @@ ProviderProductEditionDefault.args = {
146
146
  name: "The Home Depot Onboarding",
147
147
  country: "México",
148
148
  id_region: 1,
149
- active: 1,
149
+ "active": 1,
150
150
  flow: 1
151
151
  }]
152
152
  },
@@ -93,14 +93,6 @@ var _VersionSelector = require("../../organisms/VersionSelector");
93
93
 
94
94
  var _customHooks = require("../../../global-files/customHooks");
95
95
 
96
- var _utils = require("../RetailerProductEdition/utils");
97
-
98
- var _Modal = require("../../organisms/Modal");
99
-
100
- var _ButtonV = require("../../atoms/ButtonV2");
101
-
102
- var _Box = require("../../organisms/Box");
103
-
104
96
  var _jsxRuntime = require("react/jsx-runtime");
105
97
 
106
98
  var reducerImages = function reducerImages(state, action) {
@@ -214,7 +206,7 @@ var myBucket = new _awsSdk.default.S3({
214
206
  });
215
207
 
216
208
  var ProviderProductEdition = function ProviderProductEdition(_ref) {
217
- var _product$retailers, _product$retailersAva, _location$state4, _location$state5, _location$state6, _datasheets$, _datasheets$$data;
209
+ var _product$retailers, _product$retailersAva, _location$state4, _location$state5, _datasheets$, _datasheets$$data;
218
210
 
219
211
  var tabsSections = _ref.tabsSections,
220
212
  _ref$productSelected = _ref.productSelected,
@@ -459,26 +451,21 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
459
451
  validatedAll = _useState62[0],
460
452
  setValidatedAll = _useState62[1];
461
453
 
462
- var _useState63 = (0, _react.useState)(false),
463
- _useState64 = (0, _slicedToArray2.default)(_useState63, 2),
464
- showRejectModal = _useState64[0],
465
- setShowRejectModal = _useState64[1];
466
-
467
- var _useState65 = (0, _react.useState)({
454
+ var _useState63 = (0, _react.useState)({
468
455
  "Ficha técnica": null,
469
456
  Descripción: null,
470
457
  Imágenes: null
471
458
  }),
472
- _useState66 = (0, _slicedToArray2.default)(_useState65, 2),
473
- origin = _useState66[0],
474
- setOrigin = _useState66[1];
459
+ _useState64 = (0, _slicedToArray2.default)(_useState63, 2),
460
+ origin = _useState64[0],
461
+ setOrigin = _useState64[1];
475
462
 
476
- var _useState67 = (0, _react.useState)(false),
477
- _useState68 = (0, _slicedToArray2.default)(_useState67, 2),
478
- inCart = _useState68[0],
479
- setInCart = _useState68[1];
463
+ var _useState65 = (0, _react.useState)(false),
464
+ _useState66 = (0, _slicedToArray2.default)(_useState65, 2),
465
+ inCart = _useState66[0],
466
+ setInCart = _useState66[1];
480
467
 
481
- var _useState69 = (0, _react.useState)({
468
+ var _useState67 = (0, _react.useState)({
482
469
  message: "¿Estás seguro de continuar?",
483
470
  detail: " ".concat(user.is_retailer ? "Asegurate de haber revisado las tres secciones" : "Envíar el producto a la cadena"),
484
471
  button1: {
@@ -493,34 +480,34 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
493
480
  },
494
481
  img: _defaultProfileImage.default
495
482
  }),
483
+ _useState68 = (0, _slicedToArray2.default)(_useState67, 2),
484
+ dataGenericModal = _useState68[0],
485
+ setDataGenericModal = _useState68[1];
486
+
487
+ var _useState69 = (0, _react.useState)(null),
496
488
  _useState70 = (0, _slicedToArray2.default)(_useState69, 2),
497
- dataGenericModal = _useState70[0],
498
- setDataGenericModal = _useState70[1];
489
+ socketType = _useState70[0],
490
+ setSocketType = _useState70[1];
499
491
 
500
- var _useState71 = (0, _react.useState)(null),
492
+ var _useState71 = (0, _react.useState)(loading),
501
493
  _useState72 = (0, _slicedToArray2.default)(_useState71, 2),
502
- socketType = _useState72[0],
503
- setSocketType = _useState72[1];
494
+ saving = _useState72[0],
495
+ setSaving = _useState72[1];
504
496
 
505
- var _useState73 = (0, _react.useState)(loading),
497
+ var _useState73 = (0, _react.useState)(product.statusByRetailer),
506
498
  _useState74 = (0, _slicedToArray2.default)(_useState73, 2),
507
- saving = _useState74[0],
508
- setSaving = _useState74[1];
509
-
510
- var _useState75 = (0, _react.useState)(product.statusByRetailer),
511
- _useState76 = (0, _slicedToArray2.default)(_useState75, 2),
512
- retailerStatus = _useState76[0],
513
- setRetailerStatus = _useState76[1];
499
+ retailerStatus = _useState74[0],
500
+ setRetailerStatus = _useState74[1];
514
501
 
515
502
  var _useCloseModal = (0, _customHooks.useCloseModal)("version-selector"),
516
503
  _useCloseModal2 = (0, _slicedToArray2.default)(_useCloseModal, 2),
517
504
  showVersionSelector = _useCloseModal2[0],
518
505
  setShowVersionSelector = _useCloseModal2[1];
519
506
 
520
- var _useState77 = (0, _react.useState)(),
521
- _useState78 = (0, _slicedToArray2.default)(_useState77, 2),
522
- globalModal = _useState78[0],
523
- setGlobalModal = _useState78[1];
507
+ var _useState75 = (0, _react.useState)(),
508
+ _useState76 = (0, _slicedToArray2.default)(_useState75, 2),
509
+ globalModal = _useState76[0],
510
+ setGlobalModal = _useState76[1];
524
511
 
525
512
  var updateAuditStatus = /*#__PURE__*/function () {
526
513
  var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(status) {
@@ -692,6 +679,30 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
692
679
  });
693
680
 
694
681
  switch (type) {
682
+ case "error":
683
+ setGlobalModal({
684
+ message: "".concat(activeTab, " rechazada"),
685
+ detail: "Agrega tu comentarios para enviar el rechazo",
686
+ img: _errorModal.default,
687
+ textArea: true,
688
+ button1: {
689
+ name: "Enviar",
690
+ action: function action(e) {
691
+ var textArea = document.querySelector("#area");
692
+
693
+ if (textArea.value) {
694
+ textArea.style.border = "none";
695
+ createComment(e, textArea.value);
696
+ showGlobalModal("commentsSent");
697
+ validatedAll ? validateAll("R") : sendEvaluation("R");
698
+ } else {
699
+ textArea.style.border = "2px solid red";
700
+ }
701
+ }
702
+ }
703
+ });
704
+ break;
705
+
695
706
  case "generic":
696
707
  setGlobalModal(dataGenericModal);
697
708
  break;
@@ -963,7 +974,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
963
974
  setServicesData(parsedResponse);
964
975
 
965
976
  case 12:
966
- retailers && !activeRetailer.id && setActiveRetailer(active ? active : retailers[0]);
977
+ !activeRetailer.id && setActiveRetailer(active ? active : retailers[0]);
967
978
 
968
979
  case 13:
969
980
  case "end":
@@ -1081,7 +1092,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
1081
1092
  }
1082
1093
 
1083
1094
  setProduct(productTemp);
1084
- retailers && setActivePercentage((_retailers$ = retailers[0]) === null || _retailers$ === void 0 ? void 0 : _retailers$.percentage);
1095
+ setActivePercentage((_retailers$ = retailers[0]) === null || _retailers$ === void 0 ? void 0 : _retailers$.percentage);
1085
1096
  }, [percentages]);
1086
1097
 
1087
1098
  var loadInputs = function loadInputs() {
@@ -1484,33 +1495,45 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
1484
1495
  };
1485
1496
 
1486
1497
  var createComment = /*#__PURE__*/function () {
1487
- var _ref15 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee15() {
1488
- var messages,
1489
- retailerId,
1490
- data,
1491
- _args15 = arguments;
1498
+ var _ref15 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee15(e, body, tab) {
1499
+ var concept, data;
1492
1500
  return _regenerator.default.wrap(function _callee15$(_context15) {
1493
1501
  while (1) {
1494
1502
  switch (_context15.prev = _context15.next) {
1495
1503
  case 0:
1496
- messages = _args15.length > 0 && _args15[0] !== undefined ? _args15[0] : [];
1497
- retailerId = _args15.length > 1 ? _args15[1] : undefined;
1504
+ concept = "";
1505
+ _context15.t0 = activeTab;
1506
+ _context15.next = _context15.t0 === "Ficha técnica" ? 4 : _context15.t0 === "Imágenes" ? 6 : 8;
1507
+ break;
1508
+
1509
+ case 4:
1510
+ concept = "datasheet";
1511
+ return _context15.abrupt("break", 10);
1512
+
1513
+ case 6:
1514
+ concept = "images";
1515
+ return _context15.abrupt("break", 10);
1516
+
1517
+ case 8:
1518
+ concept = "description";
1519
+ return _context15.abrupt("break", 10);
1520
+
1521
+ case 10:
1498
1522
  data = {
1499
- paramsBody: {
1500
- id: product.article.id_article || productEdit.ArticleId,
1501
- version: version,
1502
- items: messages,
1503
- retailerId: retailerId,
1504
- status: product.status || productEdit.product.status
1505
- },
1506
- paramsHeader: {
1523
+ articleId: product === null || product === void 0 ? void 0 : product.id_article,
1524
+ orderId: product === null || product === void 0 ? void 0 : product.orderId,
1525
+ message: body,
1526
+ concept: concept,
1527
+ version: version
1528
+ };
1529
+ _context15.next = 13;
1530
+ return _axios.default.post("".concat(process.env.REACT_APP_COMMENTS_ENDPOINT), data, {
1531
+ headers: {
1507
1532
  Authorization: token
1508
1533
  }
1509
- };
1510
- setMessage("");
1511
- return _context15.abrupt("return", (0, _utils.sendMessage)(data));
1534
+ });
1512
1535
 
1513
- case 5:
1536
+ case 13:
1514
1537
  case "end":
1515
1538
  return _context15.stop();
1516
1539
  }
@@ -1518,7 +1541,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
1518
1541
  }, _callee15);
1519
1542
  }));
1520
1543
 
1521
- return function createComment() {
1544
+ return function createComment(_x4, _x5, _x6) {
1522
1545
  return _ref15.apply(this, arguments);
1523
1546
  };
1524
1547
  }();
@@ -1617,7 +1640,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
1617
1640
  }, _callee17);
1618
1641
  }));
1619
1642
 
1620
- return function setAssignation(_x4, _x5) {
1643
+ return function setAssignation(_x7, _x8) {
1621
1644
  return _ref17.apply(this, arguments);
1622
1645
  };
1623
1646
  }();
@@ -1806,7 +1829,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
1806
1829
  }, _callee18, null, [[9, 33]]);
1807
1830
  }));
1808
1831
 
1809
- return function sendEvaluation(_x6) {
1832
+ return function sendEvaluation(_x9) {
1810
1833
  return _ref18.apply(this, arguments);
1811
1834
  };
1812
1835
  }();
@@ -1897,7 +1920,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
1897
1920
  }, _callee19, null, [[0, 27]]);
1898
1921
  }));
1899
1922
 
1900
- return function validateAll(_x7) {
1923
+ return function validateAll(_x10) {
1901
1924
  return _ref19.apply(this, arguments);
1902
1925
  };
1903
1926
  }();
@@ -1944,7 +1967,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
1944
1967
  }, _callee20);
1945
1968
  }));
1946
1969
 
1947
- return function evaluationToRetailer(_x8) {
1970
+ return function evaluationToRetailer(_x11) {
1948
1971
  return _ref20.apply(this, arguments);
1949
1972
  };
1950
1973
  }();
@@ -1956,6 +1979,8 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
1956
1979
 
1957
1980
  var enableActions = function enableActions(versionStatus) {
1958
1981
  try {
1982
+ if (user.is_retailer) return false;
1983
+
1959
1984
  if (versionStatus) {
1960
1985
  return ["AP", "ACA", "RCA", null].includes(versionStatus);
1961
1986
  }
@@ -2030,7 +2055,8 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
2030
2055
  return;
2031
2056
  } else if (user.is_retailer) {
2032
2057
  if (product.id_order || product.orderId) {
2033
- sendEvaluation("R");
2058
+ setValidatedAll(true);
2059
+ showGlobalModal("error");
2034
2060
  } else {
2035
2061
  setDataGenericModal(function (prev) {
2036
2062
  return (0, _objectSpread3.default)((0, _objectSpread3.default)({}, prev), {}, {
@@ -2045,7 +2071,8 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
2045
2071
  showGlobalModal("generic");
2046
2072
  }
2047
2073
  } else {
2048
- sendEvaluation("R");
2074
+ setValidatedAll(true);
2075
+ showGlobalModal("error");
2049
2076
  }
2050
2077
  }
2051
2078
  };
@@ -2055,7 +2082,6 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
2055
2082
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_HeaderTop.HeaderTop, {
2056
2083
  setHeaderTop: setHeaderTop,
2057
2084
  withChat: location === null || location === void 0 ? void 0 : (_location$state5 = location.state) === null || _location$state5 === void 0 ? void 0 : _location$state5.withChat,
2058
- chatType: location === null || location === void 0 ? void 0 : (_location$state6 = location.state) === null || _location$state6 === void 0 ? void 0 : _location$state6.chatType,
2059
2085
  productSelected: productSelected,
2060
2086
  token: token,
2061
2087
  activeRetailer: activeRetailer
@@ -2134,7 +2160,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
2134
2160
  } else if (user.is_retailer) {
2135
2161
  if (product.id_order || product.orderId) {
2136
2162
  setValidatedAll(true);
2137
- setShowRejectModal(true);
2163
+ showGlobalModal("error");
2138
2164
  } else {
2139
2165
  setDataGenericModal(function (prev) {
2140
2166
  return (0, _objectSpread3.default)((0, _objectSpread3.default)({}, prev), {}, {
@@ -2149,15 +2175,15 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
2149
2175
  showGlobalModal("generic");
2150
2176
  }
2151
2177
  } else {
2152
- setShowRejectModal(true);
2153
2178
  setValidatedAll(true);
2179
+ showGlobalModal("error");
2154
2180
  }
2155
2181
  },
2156
2182
  approve: function approve() {
2157
2183
  return sendToEvaluation("A");
2158
2184
  },
2159
2185
  reject: function reject() {
2160
- setShowRejectModal(true);
2186
+ return sendToEvaluation("R");
2161
2187
  }
2162
2188
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_FullTabsMenu.FullTabsMenu, {
2163
2189
  tabsSections: tabsSections,
@@ -2236,7 +2262,6 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
2236
2262
  setUpdatedDescriptions: setUpdatedDescriptions,
2237
2263
  articleId: product === null || product === void 0 ? void 0 : product.id_article,
2238
2264
  version: version,
2239
- isShowbox: false,
2240
2265
  dinamicHeight: true
2241
2266
  }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
2242
2267
  text: "No cuentas con este servicio",
@@ -2255,7 +2280,52 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
2255
2280
  headerType: "input-name-header"
2256
2281
  }))]
2257
2282
  })
2258
- }), !(isRevision() && getSectionStatus()) && !revision && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
2283
+ }), isRevision() && getSectionStatus() ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
2284
+ className: "commentary-box",
2285
+ children: !comment ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
2286
+ className: "commentary",
2287
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.TagAndInput, {
2288
+ label: "Caja de Comentario",
2289
+ inputType: "textarea",
2290
+ inputCols: 80,
2291
+ inputRows: 4,
2292
+ inputId: "commentary-box",
2293
+ index: 0
2294
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
2295
+ className: "buttons-box",
2296
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
2297
+ buttonType: "general-transparent-button",
2298
+ label: "Enviar comentario",
2299
+ onClick: function onClick(e) {
2300
+ return createComment(e, document.querySelector("#description-commentary-box-0 .ql-container .ql-editor > p").innerHTML, activeTab);
2301
+ }
2302
+ })
2303
+ })]
2304
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
2305
+ className: "feedback-box",
2306
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Commentary.Commentary, {
2307
+ comment: comment.message,
2308
+ reviewed: crossComment
2309
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
2310
+ buttonType: "circular-button accept-button",
2311
+ onClick: /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee21() {
2312
+ return _regenerator.default.wrap(function _callee21$(_context21) {
2313
+ while (1) {
2314
+ switch (_context21.prev = _context21.next) {
2315
+ case 0:
2316
+ setCrossComment(true);
2317
+ commentRevised();
2318
+
2319
+ case 2:
2320
+ case "end":
2321
+ return _context21.stop();
2322
+ }
2323
+ }
2324
+ }, _callee21);
2325
+ }))
2326
+ })]
2327
+ })
2328
+ }) : !revision && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
2259
2329
  className: "required-inputs-message",
2260
2330
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
2261
2331
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
@@ -2315,52 +2385,6 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
2315
2385
  currentVersion: version,
2316
2386
  setShowVersionSelector: setShowVersionSelector,
2317
2387
  jwt: token
2318
- }), showRejectModal && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Modal.Modal, {
2319
- title: "Agregar mensaje de rechazo",
2320
- show: showRejectModal,
2321
- customComponent: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.TagAndInput, {
2322
- inputType: "textarea",
2323
- inputId: "modal-message-box",
2324
- index: 0,
2325
- color: "white"
2326
- }),
2327
- buttons: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonV.ButtonV2, {
2328
- type: "white",
2329
- label: "Cancelar",
2330
- size: 12,
2331
- onClick: function onClick() {
2332
- setShowRejectModal(false);
2333
- }
2334
- }, "btn-Cancelar"), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonV.ButtonV2, {
2335
- type: "pink",
2336
- label: "Aceptar",
2337
- size: 12,
2338
- onClick: /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee21() {
2339
- var body, messages;
2340
- return _regenerator.default.wrap(function _callee21$(_context21) {
2341
- while (1) {
2342
- switch (_context21.prev = _context21.next) {
2343
- case 0:
2344
- body = document.querySelector("#modal-message-box .ql-container .ql-editor > p").innerHTML;
2345
- messages = [{
2346
- type: "message",
2347
- value: body === null || body === void 0 ? void 0 : body.replace(/<.*?\/?>/gm, "")
2348
- }];
2349
- _context21.next = 4;
2350
- return createComment(messages, activeRetailer.id);
2351
-
2352
- case 4:
2353
- validatedAll ? validateAll("R") : sendToEvaluation("R");
2354
- setShowRejectModal(false);
2355
-
2356
- case 6:
2357
- case "end":
2358
- return _context21.stop();
2359
- }
2360
- }
2361
- }, _callee21);
2362
- }))
2363
- }, "btn-Aceptar")]
2364
2388
  })]
2365
2389
  });
2366
2390
  };
@@ -15,7 +15,7 @@ var _variables = require("../../../global-files/variables");
15
15
 
16
16
  var _templateObject;
17
17
 
18
- var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: column;\n height: 100%;\n flex: 1;\n overflow: auto;\n\n .data-container {\n display: flex;\n flex: 0%;\n height: calc(100% - ", "px);\n .image-data-panel {\n width: 340px;\n\n & + * {\n margin-left: 10px;\n }\n }\n\n .product-information {\n width: 100%;\n display: flex;\n flex-direction: column;\n\n .services-information-container {\n height: 100%;\n overflow: auto;\n }\n\n .image-services {\n aside {\n display: grid;\n grid-template-columns: repeat(auto-fill, 179px);\n column-gap: 15px;\n row-gap: 15px;\n padding: 20px;\n }\n }\n\n .commentary-box {\n display: flex;\n justify-content: space-between;\n align-items: flex-end;\n padding: 10px;\n padding-left: 0;\n\n .commentary {\n display: flex;\n align-items: flex-end;\n\n .input-container {\n width: 500px;\n\n .quill {\n height: 100px;\n }\n\n & + * {\n margin-left: 5px;\n }\n }\n\n .buttons-box {\n display: flex;\n width: 210px;\n flex-wrap: wrap;\n\n .general-transparent-button {\n & + * {\n margin-top: 5px;\n }\n }\n\n .general-transparent-button,\n .general-green-button,\n .general-button-disabled {\n width: fit-content;\n min-width: 201px;\n height: 40px;\n }\n }\n }\n }\n\n .feedback-box {\n display: flex;\n }\n\n .required-inputs-message {\n font-family: ", ";\n font-size: 13px;\n color: ", ";\n padding: 10px;\n display: flex;\n align-items: center;\n\n p + * {\n margin-top: 10px;\n }\n\n button {\n min-width: fit-content;\n }\n }\n }\n }\n #modal-message-box {\n width: 400px;\n height: 100px;\n }\n .container {\n width: 100%;\n height: 100%;\n .dropzone {\n height: 100%;\n width: 100%;\n }\n }\n"])), function (_ref) {
18
+ var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: column;\n height: 100%;\n flex: 1;\n overflow: auto;\n\n .data-container {\n display: flex;\n flex: 0%;\n height: calc(100% - ", "px);\n .image-data-panel {\n width: 340px;\n\n & + * {\n margin-left: 10px;\n }\n }\n\n .product-information {\n width: 100%;\n display: flex;\n flex-direction: column;\n\n .services-information-container {\n height: 100%;\n overflow: auto;\n }\n\n .image-services {\n aside {\n display: grid;\n grid-template-columns: repeat(auto-fill, 179px);\n column-gap: 15px;\n row-gap: 15px;\n padding: 20px;\n }\n }\n\n .commentary-box {\n display: flex;\n justify-content: space-between;\n align-items: flex-end;\n padding: 10px;\n padding-left: 0;\n\n .commentary {\n display: flex;\n align-items: flex-end;\n\n .input-container {\n width: 500px;\n\n .quill {\n height: 100px;\n }\n\n & + * {\n margin-left: 5px;\n }\n }\n\n .buttons-box {\n display: flex;\n width: 210px;\n flex-wrap: wrap;\n\n .general-transparent-button {\n & + * {\n margin-top: 5px;\n }\n }\n\n .general-transparent-button,\n .general-green-button,\n .general-button-disabled {\n width: fit-content;\n min-width: 201px;\n height: 40px;\n }\n }\n }\n }\n\n .feedback-box {\n display: flex;\n }\n\n .required-inputs-message {\n font-family: ", ";\n font-size: 13px;\n color: ", ";\n padding: 10px;\n display: flex;\n align-items: center;\n\n p + * {\n margin-top: 10px;\n }\n\n button {\n min-width: fit-content;\n }\n }\n }\n }\n .container {\n width: 100%;\n height: 100%;\n .dropzone {\n height: 100%;\n width: 100%;\n }\n }\n"])), function (_ref) {
19
19
  var headerTop = _ref.headerTop;
20
20
  return headerTop;
21
21
  }, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s4);
@@ -31,7 +31,7 @@ RetailerProductEditionDefault.args = {
31
31
  "Ficha técnica": false,
32
32
  Imágenes: false
33
33
  },
34
- token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI5YTIxMzEyOC02NDgyLTRjMTYtYTRiNi02ZTY0ZjIyNWIxYmQiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwiY29nbml0bzp1c2VybmFtZSI6IjlhMjEzMTI4LTY0ODItNGMxNi1hNGI2LTZlNjRmMjI1YjFiZCIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiI5OGE0NzYxMy04ZGIyLTRlZjUtYjA0Mi01ZDU3MWRkZjIwMWIiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY4Mzg3NTIyNiwibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY4Mzg3ODgyNiwiaWF0IjoxNjgzODc1MjI2LCJlbWFpbCI6ImlzbWFlbDk3bG9wZXpAZ21haWwuY29tIn0.EtgmT_THMx-Zy_zB5yZK4gz6TXNTVVJEKFt5X0JK2UkGVrp_q_92YCEuejS4n976fyTez0jkwOee6IkVHLV71uZWRBDFt-3Yw4ZxfsZYPNJWhoHXGNxhMU8MCkSntfu597esBTk-VsUpstT5R7L-WJfN8viE7R-qVo-42RlPTG0TFrWA9q0oTcqjv8vbxLpOBUjiEpjmqRhg4blJZwgkGNta6MOlw1vfmisOVbo9wMvqwnCZ9xx9KMKoH9U4uNObK_JomjbvPmTmkcUXsE-wGSD7XcoSwtuhBngLC7-jiu1u8MvL_ff5Z0Qp70sSpLdUglcSS8d1Xf7j_fcZuJ5jKA",
34
+ token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI5YTIxMzEyOC02NDgyLTRjMTYtYTRiNi02ZTY0ZjIyNWIxYmQiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwiY29nbml0bzp1c2VybmFtZSI6IjlhMjEzMTI4LTY0ODItNGMxNi1hNGI2LTZlNjRmMjI1YjFiZCIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiI0OTMyY2JhZC1lYzcyLTRjYWItODgyNS0wMzY2M2RkNmE2ODIiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY5Mjc1MDY0NywibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY5Mjc1NDI0NywiaWF0IjoxNjkyNzUwNjQ3LCJlbWFpbCI6ImlzbWFlbDk3bG9wZXpAZ21haWwuY29tIn0.eqOY-gcS-W99WcEC632Ewckcg3WJzKoV9fIGcn1AkEE44_odGTcEk8fhVs-6_evIJkfShQOP0RFX0d2Dn31F-xFh5Lez6LvbT9F41_rAmMb3ELyRvdcz42V4eMw2IBH-FGrpGhSsJOHKV2T3WuUyZxPJu-C04ZAadfFSoNBBWnxX6SFk_eefcp9KghNmnELSSnWDh6DD1XDrWqEaLOVlQ5H7q4ARJqBo07KcXHIQo056anVud-inUMiX9KDTaorXdBCD0doWgv8NkYWSEpUS_Ctj-NG6vAled9g-6oLnC6DLR_ay6PRnAKGVNCv8bRZJL0GqF8ZnWk02svDHfUPJ0Q",
35
35
  productSelected: {
36
36
  services: {
37
37
  datasheets: 1,
@@ -87,12 +87,8 @@ RetailerProductEditionDefault.args = {
87
87
  },
88
88
  location: {
89
89
  product: {
90
- articleId: 354,
91
- versionId: 3
92
- },
93
- state: {
94
- withChat: true,
95
- chatType: "product_status"
90
+ articleId: 39290,
91
+ versionId: 7
96
92
  }
97
93
  },
98
94
  user: {