contentoh-components-library 21.1.28 → 21.1.29

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 (64) hide show
  1. package/dist/assets/images/sliderToolTip/slide21.svg +9 -0
  2. package/dist/assets/images/sliderToolTip/slide22.svg +9 -0
  3. package/dist/assets/images/sliderToolTip/slide23.svg +9 -0
  4. package/dist/components/atoms/CheckBox/styles.js +1 -1
  5. package/dist/components/atoms/ListCommercialRetailers/ListCommercialRetailers.stories.js +36 -0
  6. package/dist/components/atoms/ListCommercialRetailers/index.js +64 -0
  7. package/dist/components/atoms/ListCommercialRetailers/styles.js +20 -0
  8. package/dist/components/atoms/MenuCommercialRetailers/MenuCommercialRetailers.stories.js +37 -0
  9. package/dist/components/atoms/MenuCommercialRetailers/index.js +25 -0
  10. package/dist/components/atoms/MenuCommercialRetailers/styles.js +20 -0
  11. package/dist/components/atoms/MenuProductImage/MenuProductImage.stories.js +28 -0
  12. package/dist/components/atoms/MenuProductImage/index.js +88 -0
  13. package/dist/components/atoms/MenuProductImage/styles.js +20 -0
  14. package/dist/components/atoms/SliderToolTip/SliderToolTip.stories.js +67 -13
  15. package/dist/components/atoms/SliderToolTip/index.js +64 -134
  16. package/dist/components/atoms/SliderToolTip/styles.js +2 -2
  17. package/dist/components/atoms/ValidationPanel/index.js +3 -4
  18. package/dist/components/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +44 -1
  19. package/dist/components/atoms/VerticalSideMenuMainPage/index.js +45 -48
  20. package/dist/components/atoms/VerticalSideMenuMainPage/styles.js +30 -3
  21. package/dist/components/molecules/ApproveRejetPanel/ApproveRejetPanel.stories.js +25 -0
  22. package/dist/components/molecules/ApproveRejetPanel/index.js +49 -0
  23. package/dist/components/molecules/ApproveRejetPanel/styles.js +18 -0
  24. package/dist/components/molecules/AvatarAndValidation/index.js +0 -4
  25. package/dist/components/molecules/SignInLoginCreationApp/SignInLogin.stories.js +28 -0
  26. package/dist/components/molecules/SignInLoginCreationApp/index.js +270 -0
  27. package/dist/components/molecules/SignInLoginCreationApp/styles.js +20 -0
  28. package/dist/components/molecules/StatusAsignationInfo/index.js +29 -1
  29. package/dist/components/organisms/FullProductNameHeader/index.js +1 -5
  30. package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +109 -99
  31. package/dist/components/pages/ProviderProductEdition/index.js +100 -146
  32. package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +65 -56
  33. package/dist/components/pages/RetailerProductEdition/index.js +18 -127
  34. package/dist/global-files/global-styles.css +0 -1
  35. package/dist/index.js +38 -51
  36. package/package.json +1 -1
  37. package/src/assets/images/sliderToolTip/slide21.svg +9 -0
  38. package/src/assets/images/sliderToolTip/slide22.svg +9 -0
  39. package/src/assets/images/sliderToolTip/slide23.svg +9 -0
  40. package/src/components/atoms/CheckBox/styles.js +0 -1
  41. package/src/components/atoms/SliderToolTip/SliderToolTip.stories.js +77 -11
  42. package/src/components/atoms/SliderToolTip/index.js +91 -154
  43. package/src/components/atoms/SliderToolTip/styles.js +51 -22
  44. package/src/components/atoms/ValidationPanel/index.js +3 -4
  45. package/src/components/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +24 -1
  46. package/src/components/atoms/VerticalSideMenuMainPage/index.js +37 -30
  47. package/src/components/atoms/VerticalSideMenuMainPage/styles.js +76 -18
  48. package/src/components/molecules/AvatarAndValidation/index.js +0 -4
  49. package/src/components/molecules/StatusAsignationInfo/index.js +31 -0
  50. package/src/components/organisms/FullProductNameHeader/index.js +0 -4
  51. package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +107 -105
  52. package/src/components/pages/ProviderProductEdition/index.js +72 -102
  53. package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +67 -56
  54. package/src/components/pages/RetailerProductEdition/index.js +2 -102
  55. package/src/index.js +0 -1
  56. package/dist/components/atoms/Percent/Percent.stories.js +0 -39
  57. package/dist/components/atoms/Percent/index.js +0 -39
  58. package/dist/components/atoms/Percent/styles.js +0 -20
  59. package/dist/components/molecules/TextAndGradient/TextAndGradient.stories.js +0 -31
  60. package/dist/components/molecules/TextAndGradient/index.js +0 -36
  61. package/dist/components/molecules/TextAndGradient/styles.js +0 -18
  62. package/src/components/pages/RegistrationLoginFirstStep/RegistrationLoginFirstStep.stories.js +0 -17
  63. package/src/components/pages/RegistrationLoginFirstStep/index.js +0 -160
  64. package/src/components/pages/RegistrationLoginFirstStep/styles.js +0 -85
@@ -81,6 +81,20 @@ var _errorModal = _interopRequireDefault(require("../../../assets/images/generic
81
81
 
82
82
  var _index2 = require("../../organisms/GlobalModal/index");
83
83
 
84
+ var _SliderToolTip = require("../../atoms/SliderToolTip");
85
+
86
+ var _infoIcon = _interopRequireDefault(require("../../../assets/images/sliderToolTip/infoIcon.svg"));
87
+
88
+ var _slide = _interopRequireDefault(require("../../../assets/images/sliderToolTip/slide1.svg"));
89
+
90
+ var _slide2 = _interopRequireDefault(require("../../../assets/images/sliderToolTip/slide2.svg"));
91
+
92
+ var _slide3 = _interopRequireDefault(require("../../../assets/images/sliderToolTip/slide3.svg"));
93
+
94
+ var _slide4 = _interopRequireDefault(require("../../../assets/images/sliderToolTip/slide4.svg"));
95
+
96
+ var _slide5 = _interopRequireDefault(require("../../../assets/images/sliderToolTip/slide5.svg"));
97
+
84
98
  var _jsxRuntime = require("react/jsx-runtime");
85
99
 
86
100
  var reducerImages = function reducerImages(state, action) {
@@ -465,7 +479,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
465
479
 
466
480
  var loadData = /*#__PURE__*/function () {
467
481
  var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
468
- var _product$article, _product$article2, _product$article3, _services$, _services$$values;
482
+ var _product$article, _product$article2, _services$, _services$$values;
469
483
 
470
484
  var services;
471
485
  return _regenerator.default.wrap(function _callee2$(_context2) {
@@ -473,7 +487,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
473
487
  switch (_context2.prev = _context2.next) {
474
488
  case 0:
475
489
  _context2.next = 2;
476
- return (0, _data2.getRetailerServices)((product === null || product === void 0 ? void 0 : product.id_article) || (product === null || product === void 0 ? void 0 : (_product$article = product.article) === null || _product$article === void 0 ? void 0 : _product$article.id_article), (product === null || product === void 0 ? void 0 : (_product$article2 = product.article) === null || _product$article2 === void 0 ? void 0 : _product$article2.company_name) || (product === null || product === void 0 ? void 0 : product.categoryName), parseInt((product === null || product === void 0 ? void 0 : (_product$article3 = product.article) === null || _product$article3 === void 0 ? void 0 : _product$article3.id_category) || (product === null || product === void 0 ? void 0 : product.id_category)), product === null || product === void 0 ? void 0 : product.version);
490
+ return (0, _data2.getRetailerServices)((product === null || product === void 0 ? void 0 : product.id_article) || (product === null || product === void 0 ? void 0 : (_product$article = product.article) === null || _product$article === void 0 ? void 0 : _product$article.id_article), parseInt((product === null || product === void 0 ? void 0 : (_product$article2 = product.article) === null || _product$article2 === void 0 ? void 0 : _product$article2.id_category) || (product === null || product === void 0 ? void 0 : product.id_category)), product === null || product === void 0 ? void 0 : product.version);
477
491
 
478
492
  case 2:
479
493
  services = _context2.sent;
@@ -513,7 +527,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
513
527
 
514
528
  var getServices = /*#__PURE__*/function () {
515
529
  var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
516
- var _product$article4;
530
+ var _product$article3;
517
531
 
518
532
  var productInOrder, idArticle, _product$id_order, _servicesResponse$dat, servicesResponse, parsedResponse, retailers, active;
519
533
 
@@ -522,7 +536,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
522
536
  switch (_context3.prev = _context3.next) {
523
537
  case 0:
524
538
  productInOrder = product.id_order || product.orderId;
525
- idArticle = (product === null || product === void 0 ? void 0 : product.id_article) || (product === null || product === void 0 ? void 0 : (_product$article4 = product.article) === null || _product$article4 === void 0 ? void 0 : _product$article4.id_article);
539
+ idArticle = (product === null || product === void 0 ? void 0 : product.id_article) || (product === null || product === void 0 ? void 0 : (_product$article3 = product.article) === null || _product$article3 === void 0 ? void 0 : _product$article3.id_article);
526
540
 
527
541
  if (!(isRevision() || productInOrder)) {
528
542
  _context3.next = 11;
@@ -1236,10 +1250,10 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
1236
1250
  });
1237
1251
 
1238
1252
  if (imgsInBack.length > 0) {
1239
- var _product$article5;
1253
+ var _product$article4;
1240
1254
 
1241
1255
  var data = {
1242
- articleId: (product === null || product === void 0 ? void 0 : product.id_article) || (product === null || product === void 0 ? void 0 : (_product$article5 = product.article) === null || _product$article5 === void 0 ? void 0 : _product$article5.id_article),
1256
+ articleId: (product === null || product === void 0 ? void 0 : product.id_article) || (product === null || product === void 0 ? void 0 : (_product$article4 = product.article) === null || _product$article4 === void 0 ? void 0 : _product$article4.id_article),
1243
1257
  deleteImages: imgsInBack
1244
1258
  };
1245
1259
 
@@ -1333,7 +1347,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
1333
1347
  });
1334
1348
 
1335
1349
  case 7:
1336
- _context13.next = 19;
1350
+ _context13.next = 18;
1337
1351
  break;
1338
1352
 
1339
1353
  case 9:
@@ -1353,7 +1367,6 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
1353
1367
  });
1354
1368
 
1355
1369
  setProduct(productTemp);
1356
- sessionStorage.setItem("productSelected", JSON.stringify(productTemp));
1357
1370
  setProductEdit({
1358
1371
  ArticleId: productTemp.id_article,
1359
1372
  idCategory: productTemp.article.id_category,
@@ -1368,11 +1381,11 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
1368
1381
  return (0, _objectSpread3.default)((0, _objectSpread3.default)({}, prev), {}, (0, _defineProperty2.default)({}, concept, "Evaluated"));
1369
1382
  });
1370
1383
 
1371
- case 19:
1384
+ case 18:
1372
1385
  loadData();
1373
1386
  showSurvey && showSurvey(confirmStatusComplete());
1374
1387
 
1375
- case 21:
1388
+ case 20:
1376
1389
  case "end":
1377
1390
  return _context13.stop();
1378
1391
  }
@@ -1387,86 +1400,58 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
1387
1400
 
1388
1401
  var validateAll = /*#__PURE__*/function () {
1389
1402
  var _ref15 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee14(result) {
1390
- var evaluationArray, sendAll, conceptArray, productTemp;
1403
+ var evaluationArray, sendAll, conceptArray;
1391
1404
  return _regenerator.default.wrap(function _callee14$(_context14) {
1392
1405
  while (1) {
1393
1406
  switch (_context14.prev = _context14.next) {
1394
1407
  case 0:
1395
- _context14.prev = 0;
1396
- setLoading(true);
1397
- evaluationArray = [];
1398
- sendAll = [];
1399
- conceptArray = ["description", "datasheet", "images"];
1400
- servicesData === null || servicesData === void 0 ? void 0 : servicesData.forEach(function (ret) {
1401
- var _product$id_order4;
1402
-
1403
- var data = {
1404
- articleId: product.id_article,
1405
- orderId: (_product$id_order4 = product.id_order) !== null && _product$id_order4 !== void 0 ? _product$id_order4 : product.orderId,
1406
- concept: ret.service,
1407
- result: result,
1408
- retailerId: ret.id_retailer
1409
- };
1410
- evaluationArray.push(_axios.default.put("".concat(process.env.REACT_APP_EVALUATION_ENDPOINT), data, {
1411
- headers: {
1412
- Authorization: token
1413
- }
1414
- }));
1415
- });
1416
- _context14.next = 8;
1417
- return Promise.all(evaluationArray);
1418
-
1419
- case 8:
1420
- conceptArray === null || conceptArray === void 0 ? void 0 : conceptArray.forEach(function (concept) {
1421
- var _product$id_order5;
1422
-
1423
- var data = {
1424
- articleId: product.id_article,
1425
- orderId: (_product$id_order5 = product.id_order) !== null && _product$id_order5 !== void 0 ? _product$id_order5 : product.orderId,
1426
- concept: concept
1427
- };
1428
- sendAll.push(_axios.default.put("".concat(process.env.REACT_APP_SEND_EVAL), data, {
1429
- headers: {
1430
- Authorization: token
1431
- }
1432
- }));
1433
- });
1434
- _context14.next = 11;
1435
- return Promise.all(sendAll);
1436
-
1437
- case 11:
1438
- productTemp = product;
1439
- productTemp.article_status = "".concat(result, "C");
1440
- productTemp.datasheet_status = productTemp.datasheet_status === "NA" ? "NA" : "".concat(result, "C");
1441
- productTemp.description_status = productTemp.description_status === "NA" ? "NA" : "".concat(result, "C");
1442
- productTemp.images_status = productTemp.images_status === "NA" ? "NA" : "".concat(result, "C");
1443
- setProduct(productTemp);
1444
- sessionStorage.setItem("productSelected", JSON.stringify(productTemp));
1445
- setProductEdit({
1446
- ArticleId: productTemp.id_article,
1447
- idCategory: productTemp.article.id_category,
1448
- product: productTemp
1449
- });
1450
- sessionStorage.setItem("productEdit", JSON.stringify({
1451
- ArticleId: productTemp.id_article,
1452
- idCategory: productTemp.article.id_category,
1453
- product: productTemp
1454
- }));
1455
- loadData();
1456
- _context14.next = 26;
1457
- break;
1458
-
1459
- case 23:
1460
- _context14.prev = 23;
1461
- _context14.t0 = _context14["catch"](0);
1462
- console.log(_context14.t0);
1408
+ try {
1409
+ evaluationArray = [];
1410
+ sendAll = [];
1411
+ conceptArray = ["description", "datasheet", "images"];
1412
+ console.log(servicesData);
1413
+ servicesData === null || servicesData === void 0 ? void 0 : servicesData.forEach(function (ret) {
1414
+ var _product$id_order4;
1415
+
1416
+ var data = {
1417
+ articleId: product.id_article,
1418
+ orderId: (_product$id_order4 = product.id_order) !== null && _product$id_order4 !== void 0 ? _product$id_order4 : product.orderId,
1419
+ concept: ret.service,
1420
+ result: result,
1421
+ retailerId: ret.id_retailer
1422
+ };
1423
+ evaluationArray.push(_axios.default.put("".concat(process.env.REACT_APP_EVALUATION_ENDPOINT), data, {
1424
+ headers: {
1425
+ Authorization: token
1426
+ }
1427
+ }));
1428
+ });
1429
+ conceptArray.forEach(function (concept) {
1430
+ var _product$id_order5;
1431
+
1432
+ var data = {
1433
+ articleId: product.id_article,
1434
+ orderId: (_product$id_order5 = product.id_order) !== null && _product$id_order5 !== void 0 ? _product$id_order5 : product.orderId,
1435
+ concept: concept
1436
+ };
1437
+ sendAll.push(_axios.default.put("".concat(process.env.REACT_APP_SEND_EVAL), data, {
1438
+ headers: {
1439
+ Authorization: token
1440
+ }
1441
+ }));
1442
+ });
1443
+ Promise.all(conceptArray);
1444
+ Promise.all(sendAll);
1445
+ } catch (error) {
1446
+ console.log(error);
1447
+ }
1463
1448
 
1464
- case 26:
1449
+ case 1:
1465
1450
  case "end":
1466
1451
  return _context14.stop();
1467
1452
  }
1468
1453
  }
1469
- }, _callee14, null, [[0, 23]]);
1454
+ }, _callee14);
1470
1455
  }));
1471
1456
 
1472
1457
  return function validateAll(_x8) {
@@ -1541,9 +1526,27 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
1541
1526
  }
1542
1527
  };
1543
1528
 
1529
+ var slidefront = [{
1530
+ slide: _slide.default,
1531
+ description: "Creamos tu contenido, y todo lo que haga falta para tu producto, cada sección puedes socilitar contenido enriquecido, y nosotros lo haremos por ti."
1532
+ }, {
1533
+ slide: _slide2.default,
1534
+ description: "Puedes agregar solicitudes de contenido enriquecido a tu carrito de compra las veces que sean necesarias. Una vez completada tu lista con los servicios necesitados sigue el proceso de compra en checkout."
1535
+ }, {
1536
+ slide: _slide3.default,
1537
+ description: "Revisa el contenido que deseas solicilitar, valida y tambien puedes agregar contenido extra, traducciones, o simplemente completar el checkout."
1538
+ }, {
1539
+ slide: _slide4.default,
1540
+ description: "Elige el tipo de entrega de tu producto, puedes ser recolección en el lugar o por el contrario puedes dejarlo en nuestras oficinas."
1541
+ }, {
1542
+ slide: _slide5.default,
1543
+ title: "Bienvenido al modo Content-oh!",
1544
+ description: "Finalmente elige la forma de pago que más te guste, procede con el pago y listo."
1545
+ }];
1544
1546
  (0, _react.useEffect)(function () {
1545
1547
  setSaving(loading);
1546
1548
  }, [loading]);
1549
+ console.log(user.is_retailer === 1, product.id_order || product.orderId, isRevision(), getSectionStatus(), "XD");
1547
1550
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
1548
1551
  headerTop: headerTop,
1549
1552
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_HeaderTop.HeaderTop, {
@@ -1581,68 +1584,12 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
1581
1584
  setActiveRetailer: setActiveRetailer,
1582
1585
  showValidationButtons: isRevision() && getSectionStatus(),
1583
1586
  servicesData: servicesData ? servicesData : null,
1584
- showApproveRejectAll: isRevision() && getSectionStatus(),
1587
+ showApproveRejectAll: user.is_retailer === 1 && (product.id_order || product.orderId) && isRevision() && getSectionStatus(),
1585
1588
  approveAll: function approveAll() {
1586
- if (originProp === "RequestWithoutContentoh" && !user.is_retailer && (!product.id_order || !product.orderId)) {
1587
- setDataGenericModal(function (prev) {
1588
- return (0, _objectSpread3.default)((0, _objectSpread3.default)({}, prev), {}, {
1589
- button2: {
1590
- name: "Continuar",
1591
- action: function action() {
1592
- return evaluationToRetailer("A");
1593
- }
1594
- }
1595
- });
1596
- });
1597
- setShowGenericModal(true);
1598
- } else {
1599
- if (user.is_retailer) {
1600
- if (product.id_order || product.orderId) {
1601
- validateAll("A");
1602
- } else {
1603
- setDataGenericModal(function (prev) {
1604
- return (0, _objectSpread3.default)((0, _objectSpread3.default)({}, prev), {}, {
1605
- button2: {
1606
- name: "Continuar",
1607
- action: function action() {
1608
- return evaluationToRetailer("A");
1609
- }
1610
- }
1611
- });
1612
- });
1613
- setShowGenericModal(true);
1614
- }
1615
- } else {
1616
- validateAll("A");
1617
- }
1618
- }
1589
+ return validateAll("A");
1619
1590
  },
1620
1591
  rejectAll: function rejectAll() {
1621
- if (originProp === "RequestWithoutContentoh" && !user.is_retailer && (!product.id_order || !product.orderId)) {
1622
- return;
1623
- } else {
1624
- if (user.is_retailer) {
1625
- if (product.id_order || product.orderId) {
1626
- validateAll("R");
1627
- setModalViewError(true);
1628
- } else {
1629
- setDataGenericModal(function (prev) {
1630
- return (0, _objectSpread3.default)((0, _objectSpread3.default)({}, prev), {}, {
1631
- button2: {
1632
- name: "Continuar",
1633
- action: function action() {
1634
- return evaluationToRetailer("R");
1635
- }
1636
- }
1637
- });
1638
- });
1639
- setShowGenericModal(true);
1640
- }
1641
- } else {
1642
- validateAll("R");
1643
- setModalViewError(true);
1644
- }
1645
- }
1592
+ return validateAll("R");
1646
1593
  },
1647
1594
  approve: function approve() {
1648
1595
  if (origin[activeTab] === "RequestWithoutContentoh" && !user.is_retailer && (!product.id_order || !product.orderId)) {
@@ -1851,12 +1798,19 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
1851
1798
  children: "Ir a checkout"
1852
1799
  })]
1853
1800
  })
1854
- }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
1855
- onClick: function onClick() {
1856
- setShowContentohRequestModal && setShowContentohRequestModal(true);
1857
- },
1858
- buttonType: "general-default-button",
1859
- label: "Enviar a Content-oh!"
1801
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
1802
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_SliderToolTip.SliderToolTip, {
1803
+ infoIcon: _infoIcon.default,
1804
+ slidefront: slidefront,
1805
+ iconSize: "big-image",
1806
+ slidePosition: "top-slide"
1807
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
1808
+ onClick: function onClick() {
1809
+ setShowContentohRequestModal && setShowContentohRequestModal(true);
1810
+ },
1811
+ buttonType: "general-default-button",
1812
+ label: "Enviar a Content-oh!"
1813
+ })]
1860
1814
  })]
1861
1815
  })]
1862
1816
  })]
@@ -31,61 +31,70 @@ RetailerProductEditionDefault.args = {
31
31
  "Ficha técnica": false,
32
32
  Imágenes: false
33
33
  },
34
- token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJjOTRhNzMwNS05MzY1LTQ2ZmYtYTQyMy00YjRiYzNiOGIxODAiLCJjb2duaXRvOmdyb3Vw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khj__baJsffhsb-PAETQKPTLuT690w",
35
+ articleId: 238,
36
+ category: 846,
37
+ version: 2,
35
38
  productSelected: {
36
39
  services: {
37
40
  datasheets: 1,
38
41
  descriptions: 1,
39
42
  images: 1
40
43
  },
41
- orderId: 64,
42
- status: "AF",
43
- datasheet_status: "AF",
44
- prio: "none",
45
- version: 7,
46
- description_status: "AF",
47
- images_status: "AF",
44
+ orderId: 1213,
45
+ status: "AA",
46
+ datasheet_status: "AA",
47
+ prio: "low",
48
+ version: 2,
49
+ description_status: "AA",
50
+ images_status: "AA",
48
51
  article: {
49
- id_article: 35707,
50
- id_category: "41",
51
- name: "chetos",
52
- upc: "1010101010",
53
- timestamp: "2022-06-16T18:12:42.000Z",
54
- id_user: 28,
55
- status: "NULL",
52
+ id_article: 17517,
53
+ id_category: "691",
54
+ name: "Antitranspirante Lady Speed Stick Clinical Complete en Barra para Dama 45 g",
55
+ upc: "7509546066172",
56
+ timestamp: "2021-10-09T16:33:17.000Z",
57
+ id_user: 203,
58
+ status: "RECEPTION",
56
59
  active: 1,
57
- company_id: 1,
58
- company_name: "COMPANY DEV",
59
- country: "México",
60
- id_order: 64,
61
- id_datasheet_especialist: 54,
62
- id_datasheet_facilitator: 52,
63
- id_description_especialist: 54,
64
- id_description_facilitator: 52,
65
- id_images_especialist: 55,
66
- id_images_facilitator: 53,
67
- id_auditor: 30,
60
+ company_id: 226,
61
+ company_name: "Prueba Test S.A de C.V.",
62
+ country: "null",
63
+ id_order: 1213,
64
+ id_datasheet_especialist: 334,
65
+ id_datasheet_facilitator: 158,
66
+ id_description_especialist: 334,
67
+ id_description_facilitator: 158,
68
+ id_images_especialist: 366,
69
+ id_images_facilitator: 14,
70
+ id_auditor: 94,
68
71
  id_recepcionist: null,
69
- category: "ABARROTES|BOTANAS, GOLOSINAS Y CHOCOLATES|BOTANAS",
70
- missingAttributes: null,
71
- missingDescriptions: null,
72
- missingImages: null
72
+ category: "SALUD Y BELLEZA|CUIDADO CORPORAL|DESODORANTES CABALLERO Y DAMA",
73
+ missingAttributes: 1,
74
+ missingDescriptions: 0,
75
+ missingImages: -4
73
76
  },
74
77
  retailers: [{
75
- id: 3,
76
- name: "Sam´s Club",
78
+ id: 4,
79
+ name: "Walmart Super y Superama",
80
+ country: "México",
81
+ id_region: 1,
82
+ active: 1
83
+ }, {
84
+ id: 6,
85
+ name: "HEB",
77
86
  country: "México",
78
87
  id_region: 1,
79
88
  active: 1
80
89
  }, {
81
- id: 8,
82
- name: "Fragua",
90
+ id: 29,
91
+ name: "Farmacias del Ahorro",
83
92
  country: "México",
84
93
  id_region: 1,
85
94
  active: 1
86
95
  }],
87
- country: "México",
88
- upc: "1010101010"
96
+ country: "null",
97
+ upc: "7509546066172"
89
98
  },
90
99
  location: {
91
100
  product: {
@@ -94,36 +103,36 @@ RetailerProductEditionDefault.args = {
94
103
  }
95
104
  },
96
105
  user: {
97
- id_user: 30,
98
- name: "Admin",
99
- last_name: "Ulises",
100
- email: "salmeron.5@hotmail.com",
101
- position: "Admin",
106
+ id_user: 423,
107
+ name: "Facilitador Textos",
108
+ last_name: " ",
109
+ email: "bayadi1538@mnqlm.com",
110
+ position: "Tester",
102
111
  telephone: null,
103
- country: "México",
104
- id_company: 2,
105
- id_cognito: "c94a7305-9365-46ff-a423-4b4bc3b8b180",
112
+ country: null,
113
+ id_company: 254,
114
+ id_cognito: "0b66a4a9-7790-4034-a30a-c00808962867",
106
115
  birth_Date: null,
107
116
  about_me: null,
108
117
  zip_code: null,
109
118
  address: null,
110
119
  job: null,
111
120
  id_stripe: null,
112
- id_role: 6,
121
+ id_role: 4,
113
122
  active: 1,
114
123
  is_retailer: 0,
115
- email_notify: 0,
124
+ email_notify: null,
116
125
  membership: {
117
- id: 2,
118
- start_date: "2021-11-05T02:35:12.000Z",
119
- end_date: "2022-11-05T02:34:49.000Z",
120
- planID: 1,
121
- plan: "prod_KtkvuFFLpOdP6e",
122
- name: "Plan Free",
123
- user_limit: "1",
124
- products_limit: "3",
125
- type: "PyMES"
126
+ id: 750,
127
+ start_date: "2022-01-07T21:32:54.000Z",
128
+ end_date: "2023-01-07T21:32:54.000Z",
129
+ planID: 6,
130
+ plan: "prod_KvGd6YSTJyR3AP",
131
+ name: "Plan Small",
132
+ user_limit: "10",
133
+ products_limit: "1000",
134
+ type: "Enterprise"
126
135
  },
127
- src: "https://content-management-profile.s3.amazonaws.com/id-30/30.png?1656375350443"
136
+ src: "https://content-management-profile-prod.s3.amazonaws.com/id-423/423.png?1656100361978"
128
137
  }
129
138
  };