contentoh-components-library 21.1.23 → 21.1.26
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.
- package/dist/components/atoms/SliderToolTip/styles.js +2 -2
- package/dist/components/atoms/ValidationPanel/index.js +26 -17
- package/dist/components/atoms/ValidationPanel/styles.js +1 -1
- package/dist/components/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +1 -1
- package/dist/components/atoms/VerticalSideMenuMainPage/index.js +21 -23
- package/dist/components/atoms/VerticalSideMenuMainPage/styles.js +22 -6
- package/dist/components/molecules/AvatarAndValidation/index.js +4 -2
- package/dist/components/molecules/StatusAsignationInfo/index.js +0 -6
- package/dist/components/organisms/FullProductNameHeader/index.js +3 -1
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +111 -72
- package/dist/components/pages/ProviderProductEdition/index.js +159 -81
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +58 -51
- package/dist/components/pages/RetailerProductEdition/index.js +25 -19
- package/dist/global-files/data.js +21 -12
- package/dist/index.js +38 -51
- package/package.json +1 -1
- package/src/components/atoms/SliderToolTip/styles.js +6 -3
- package/src/components/atoms/ValidationPanel/index.js +24 -14
- package/src/components/atoms/ValidationPanel/styles.js +6 -2
- package/src/components/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +2 -2
- package/src/components/atoms/VerticalSideMenuMainPage/index.js +19 -22
- package/src/components/atoms/VerticalSideMenuMainPage/styles.js +25 -19
- package/src/components/molecules/AvatarAndValidation/index.js +2 -0
- package/src/components/molecules/StatusAsignationInfo/index.js +0 -6
- package/src/components/organisms/FullProductNameHeader/index.js +2 -0
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +119 -82
- package/src/components/pages/ProviderProductEdition/index.js +131 -49
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +59 -51
- package/src/components/pages/RetailerProductEdition/index.js +18 -8
- package/src/global-files/data.js +32 -20
- package/src/index.js +0 -1
|
@@ -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) {
|
|
@@ -760,49 +774,42 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
760
774
|
|
|
761
775
|
var saveDescriptions = /*#__PURE__*/function () {
|
|
762
776
|
var _ref7 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6() {
|
|
763
|
-
var
|
|
777
|
+
var dataObject;
|
|
764
778
|
return _regenerator.default.wrap(function _callee6$(_context6) {
|
|
765
779
|
while (1) {
|
|
766
780
|
switch (_context6.prev = _context6.next) {
|
|
767
781
|
case 0:
|
|
768
782
|
setLoading(true);
|
|
769
|
-
productTemp = product;
|
|
770
783
|
dataObject = {
|
|
771
784
|
articleId: product === null || product === void 0 ? void 0 : product.id_article,
|
|
772
785
|
articleData: updatedDescriptions
|
|
773
786
|
};
|
|
774
787
|
if (product !== null && product !== void 0 && product.orderId) dataObject["orderId"] = product === null || product === void 0 ? void 0 : product.orderId;
|
|
775
|
-
_context6.prev =
|
|
776
|
-
_context6.next =
|
|
788
|
+
_context6.prev = 3;
|
|
789
|
+
_context6.next = 6;
|
|
777
790
|
return _axios.default.put("".concat(process.env.REACT_APP_ARTICLE_DATA_ENDPOINT, "?description=true&version=").concat(version), dataObject, {
|
|
778
791
|
headers: {
|
|
779
792
|
Authorization: token
|
|
780
793
|
}
|
|
781
794
|
});
|
|
782
795
|
|
|
783
|
-
case
|
|
784
|
-
if (productTemp.status === "ASSIGNED") {
|
|
785
|
-
productTemp.status = "IN_PROGRESS";
|
|
786
|
-
setProduct(productTemp);
|
|
787
|
-
sessionStorage.setItem("productSelected", JSON.stringify(productTemp));
|
|
788
|
-
}
|
|
789
|
-
|
|
796
|
+
case 6:
|
|
790
797
|
setMessage("Descripciones guardadas con éxito");
|
|
791
798
|
loadData();
|
|
792
|
-
_context6.next =
|
|
799
|
+
_context6.next = 13;
|
|
793
800
|
break;
|
|
794
801
|
|
|
795
|
-
case
|
|
796
|
-
_context6.prev =
|
|
797
|
-
_context6.t0 = _context6["catch"](
|
|
802
|
+
case 10:
|
|
803
|
+
_context6.prev = 10;
|
|
804
|
+
_context6.t0 = _context6["catch"](3);
|
|
798
805
|
console.log(_context6.t0);
|
|
799
806
|
|
|
800
|
-
case
|
|
807
|
+
case 13:
|
|
801
808
|
case "end":
|
|
802
809
|
return _context6.stop();
|
|
803
810
|
}
|
|
804
811
|
}
|
|
805
|
-
}, _callee6, null, [[
|
|
812
|
+
}, _callee6, null, [[3, 10]]);
|
|
806
813
|
}));
|
|
807
814
|
|
|
808
815
|
return function saveDescriptions() {
|
|
@@ -833,28 +840,21 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
833
840
|
|
|
834
841
|
case 6:
|
|
835
842
|
setMessage("Fichas técnicas guardadas");
|
|
836
|
-
|
|
837
|
-
if (productTemp.status === "ASSIGNED") {
|
|
838
|
-
productTemp.status = "IN_PROGRESS";
|
|
839
|
-
setProduct(productTemp);
|
|
840
|
-
sessionStorage.setItem("productSelected", JSON.stringify(productTemp));
|
|
841
|
-
}
|
|
842
|
-
|
|
843
843
|
loadData();
|
|
844
|
-
_context7.next =
|
|
844
|
+
_context7.next = 13;
|
|
845
845
|
break;
|
|
846
846
|
|
|
847
|
-
case
|
|
848
|
-
_context7.prev =
|
|
847
|
+
case 10:
|
|
848
|
+
_context7.prev = 10;
|
|
849
849
|
_context7.t0 = _context7["catch"](3);
|
|
850
850
|
console.log(_context7.t0);
|
|
851
851
|
|
|
852
|
-
case
|
|
852
|
+
case 13:
|
|
853
853
|
case "end":
|
|
854
854
|
return _context7.stop();
|
|
855
855
|
}
|
|
856
856
|
}
|
|
857
|
-
}, _callee7, null, [[3,
|
|
857
|
+
}, _callee7, null, [[3, 10]]);
|
|
858
858
|
}));
|
|
859
859
|
|
|
860
860
|
return function saveDatasheets() {
|
|
@@ -1225,9 +1225,15 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1225
1225
|
};
|
|
1226
1226
|
|
|
1227
1227
|
var downloadImages = function downloadImages() {
|
|
1228
|
-
|
|
1228
|
+
var _images$values3;
|
|
1229
|
+
|
|
1230
|
+
selectedImages.length > 0 ? selectedImages.forEach(function (e) {
|
|
1229
1231
|
if (e.id) {
|
|
1230
|
-
(0, _fileSaver.saveAs)("https://".concat(process.env.REACT_APP_IMAGES_BUCKET, ".s3.amazonaws.com/").concat(e.srcDB), "".concat(product.article.upc, "_").concat(e.name, ".").concat(e.ext));
|
|
1232
|
+
(0, _fileSaver.saveAs)("https://".concat(process.env.REACT_APP_IMAGES_BUCKET, ".s3.amazonaws.com/").concat(e.srcDB), "".concat(product.upc || product.article.upc, "_").concat(e.name, ".").concat(e.ext));
|
|
1233
|
+
}
|
|
1234
|
+
}) : images === null || images === void 0 ? void 0 : (_images$values3 = images.values) === null || _images$values3 === void 0 ? void 0 : _images$values3.forEach(function (e) {
|
|
1235
|
+
if (e.id) {
|
|
1236
|
+
(0, _fileSaver.saveAs)("https://".concat(process.env.REACT_APP_IMAGES_BUCKET, ".s3.amazonaws.com/").concat(e.srcDB), "".concat(product.upc || product.article.upc, "_").concat(e.name, ".").concat(e.ext));
|
|
1231
1237
|
}
|
|
1232
1238
|
});
|
|
1233
1239
|
};
|
|
@@ -1297,26 +1303,6 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1297
1303
|
}
|
|
1298
1304
|
};
|
|
1299
1305
|
|
|
1300
|
-
var specialistValid = function specialistValid(tab) {
|
|
1301
|
-
var concept = "";
|
|
1302
|
-
|
|
1303
|
-
switch (tab) {
|
|
1304
|
-
case "Ficha técnica":
|
|
1305
|
-
concept = "datasheet";
|
|
1306
|
-
break;
|
|
1307
|
-
|
|
1308
|
-
case "Imágenes":
|
|
1309
|
-
concept = "images";
|
|
1310
|
-
break;
|
|
1311
|
-
|
|
1312
|
-
case "Descripción":
|
|
1313
|
-
concept = "description";
|
|
1314
|
-
break;
|
|
1315
|
-
}
|
|
1316
|
-
|
|
1317
|
-
return product["".concat(concept, "_status")] === "IN_PROGRESS" || product["".concat(concept, "_status")] === "RF" || product["".concat(concept, "_status")] === "RA";
|
|
1318
|
-
};
|
|
1319
|
-
|
|
1320
1306
|
var confirmStatusComplete = function confirmStatusComplete() {
|
|
1321
1307
|
var datasheet_status = product.datasheet_status,
|
|
1322
1308
|
description_status = product.description_status,
|
|
@@ -1331,7 +1317,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1331
1317
|
|
|
1332
1318
|
var sendEvaluation = /*#__PURE__*/function () {
|
|
1333
1319
|
var _ref14 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee13(result) {
|
|
1334
|
-
var data, retailerId, _product$id_order2, _product$id_order3,
|
|
1320
|
+
var data, retailerId, _product$id_order2, _product$id_order3, productTemp, concept;
|
|
1335
1321
|
|
|
1336
1322
|
return _regenerator.default.wrap(function _callee13$(_context13) {
|
|
1337
1323
|
while (1) {
|
|
@@ -1365,14 +1351,13 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1365
1351
|
break;
|
|
1366
1352
|
|
|
1367
1353
|
case 9:
|
|
1368
|
-
|
|
1354
|
+
productTemp = product;
|
|
1369
1355
|
concept = getConcept(activeTab);
|
|
1370
|
-
|
|
1356
|
+
productTemp["".concat(concept, "_status")] = "Evaluated";
|
|
1371
1357
|
data = {
|
|
1372
1358
|
articleId: product.id_article,
|
|
1373
1359
|
orderId: (_product$id_order3 = product.id_order) !== null && _product$id_order3 !== void 0 ? _product$id_order3 : product.orderId,
|
|
1374
|
-
concept: concept
|
|
1375
|
-
retailerId: retailerId
|
|
1360
|
+
concept: concept
|
|
1376
1361
|
};
|
|
1377
1362
|
|
|
1378
1363
|
_axios.default.put("".concat(process.env.REACT_APP_SEND_EVAL), data, {
|
|
@@ -1381,16 +1366,16 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1381
1366
|
}
|
|
1382
1367
|
});
|
|
1383
1368
|
|
|
1384
|
-
setProduct(
|
|
1369
|
+
setProduct(productTemp);
|
|
1385
1370
|
setProductEdit({
|
|
1386
|
-
ArticleId:
|
|
1387
|
-
idCategory:
|
|
1388
|
-
product:
|
|
1371
|
+
ArticleId: productTemp.id_article,
|
|
1372
|
+
idCategory: productTemp.article.id_category,
|
|
1373
|
+
product: productTemp
|
|
1389
1374
|
});
|
|
1390
1375
|
sessionStorage.setItem("productEdit", JSON.stringify({
|
|
1391
|
-
ArticleId:
|
|
1392
|
-
idCategory:
|
|
1393
|
-
product:
|
|
1376
|
+
ArticleId: productTemp.id_article,
|
|
1377
|
+
idCategory: productTemp.article.id_category,
|
|
1378
|
+
product: productTemp
|
|
1394
1379
|
}));
|
|
1395
1380
|
setOrigin(function (prev) {
|
|
1396
1381
|
return (0, _objectSpread3.default)((0, _objectSpread3.default)({}, prev), {}, (0, _defineProperty2.default)({}, concept, "Evaluated"));
|
|
@@ -1413,12 +1398,73 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1413
1398
|
};
|
|
1414
1399
|
}();
|
|
1415
1400
|
|
|
1416
|
-
var
|
|
1401
|
+
var validateAll = /*#__PURE__*/function () {
|
|
1417
1402
|
var _ref15 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee14(result) {
|
|
1418
|
-
var
|
|
1403
|
+
var evaluationArray, sendAll, conceptArray;
|
|
1419
1404
|
return _regenerator.default.wrap(function _callee14$(_context14) {
|
|
1420
1405
|
while (1) {
|
|
1421
1406
|
switch (_context14.prev = _context14.next) {
|
|
1407
|
+
case 0:
|
|
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
|
+
}
|
|
1448
|
+
|
|
1449
|
+
case 1:
|
|
1450
|
+
case "end":
|
|
1451
|
+
return _context14.stop();
|
|
1452
|
+
}
|
|
1453
|
+
}
|
|
1454
|
+
}, _callee14);
|
|
1455
|
+
}));
|
|
1456
|
+
|
|
1457
|
+
return function validateAll(_x8) {
|
|
1458
|
+
return _ref15.apply(this, arguments);
|
|
1459
|
+
};
|
|
1460
|
+
}();
|
|
1461
|
+
|
|
1462
|
+
var evaluationToRetailer = /*#__PURE__*/function () {
|
|
1463
|
+
var _ref16 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee15(result) {
|
|
1464
|
+
var data, prod, statusComplete;
|
|
1465
|
+
return _regenerator.default.wrap(function _callee15$(_context15) {
|
|
1466
|
+
while (1) {
|
|
1467
|
+
switch (_context15.prev = _context15.next) {
|
|
1422
1468
|
case 0:
|
|
1423
1469
|
data = {
|
|
1424
1470
|
articleId: product.id_article,
|
|
@@ -1426,7 +1472,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1426
1472
|
versionId: product.version,
|
|
1427
1473
|
status: result
|
|
1428
1474
|
};
|
|
1429
|
-
|
|
1475
|
+
_context15.next = 3;
|
|
1430
1476
|
return _axios.default.put("".concat(process.env.REACT_APP_RETAILER_REQUEST), data, {
|
|
1431
1477
|
headers: {
|
|
1432
1478
|
Authorization: token
|
|
@@ -1448,14 +1494,14 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1448
1494
|
|
|
1449
1495
|
case 14:
|
|
1450
1496
|
case "end":
|
|
1451
|
-
return
|
|
1497
|
+
return _context15.stop();
|
|
1452
1498
|
}
|
|
1453
1499
|
}
|
|
1454
|
-
},
|
|
1500
|
+
}, _callee15);
|
|
1455
1501
|
}));
|
|
1456
1502
|
|
|
1457
|
-
return function evaluationToRetailer(
|
|
1458
|
-
return
|
|
1503
|
+
return function evaluationToRetailer(_x9) {
|
|
1504
|
+
return _ref16.apply(this, arguments);
|
|
1459
1505
|
};
|
|
1460
1506
|
}();
|
|
1461
1507
|
|
|
@@ -1480,9 +1526,27 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1480
1526
|
}
|
|
1481
1527
|
};
|
|
1482
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
|
+
}];
|
|
1483
1546
|
(0, _react.useEffect)(function () {
|
|
1484
1547
|
setSaving(loading);
|
|
1485
1548
|
}, [loading]);
|
|
1549
|
+
console.log(user.is_retailer === 1, product.id_order || product.orderId, isRevision(), getSectionStatus(), "XD");
|
|
1486
1550
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
1487
1551
|
headerTop: headerTop,
|
|
1488
1552
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_HeaderTop.HeaderTop, {
|
|
@@ -1520,6 +1584,13 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1520
1584
|
setActiveRetailer: setActiveRetailer,
|
|
1521
1585
|
showValidationButtons: isRevision() && getSectionStatus(),
|
|
1522
1586
|
servicesData: servicesData ? servicesData : null,
|
|
1587
|
+
showApproveRejectAll: user.is_retailer === 1 && (product.id_order || product.orderId) && isRevision() && getSectionStatus(),
|
|
1588
|
+
approveAll: function approveAll() {
|
|
1589
|
+
return validateAll("A");
|
|
1590
|
+
},
|
|
1591
|
+
rejectAll: function rejectAll() {
|
|
1592
|
+
return validateAll("R");
|
|
1593
|
+
},
|
|
1523
1594
|
approve: function approve() {
|
|
1524
1595
|
if (origin[activeTab] === "RequestWithoutContentoh" && !user.is_retailer && (!product.id_order || !product.orderId)) {
|
|
1525
1596
|
setDataGenericModal(function (prev) {
|
|
@@ -1686,20 +1757,20 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1686
1757
|
reviewed: crossComment
|
|
1687
1758
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
1688
1759
|
buttonType: "circular-button accept-button",
|
|
1689
|
-
onClick: /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
1690
|
-
return _regenerator.default.wrap(function
|
|
1760
|
+
onClick: /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee16() {
|
|
1761
|
+
return _regenerator.default.wrap(function _callee16$(_context16) {
|
|
1691
1762
|
while (1) {
|
|
1692
|
-
switch (
|
|
1763
|
+
switch (_context16.prev = _context16.next) {
|
|
1693
1764
|
case 0:
|
|
1694
1765
|
setCrossComment(true);
|
|
1695
1766
|
commentRevised();
|
|
1696
1767
|
|
|
1697
1768
|
case 2:
|
|
1698
1769
|
case "end":
|
|
1699
|
-
return
|
|
1770
|
+
return _context16.stop();
|
|
1700
1771
|
}
|
|
1701
1772
|
}
|
|
1702
|
-
},
|
|
1773
|
+
}, _callee16);
|
|
1703
1774
|
}))
|
|
1704
1775
|
})]
|
|
1705
1776
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
@@ -1727,12 +1798,19 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1727
1798
|
children: "Ir a checkout"
|
|
1728
1799
|
})]
|
|
1729
1800
|
})
|
|
1730
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
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
|
+
})]
|
|
1736
1814
|
})]
|
|
1737
1815
|
})]
|
|
1738
1816
|
})]
|
|
@@ -31,7 +31,7 @@ RetailerProductEditionDefault.args = {
|
|
|
31
31
|
"Ficha técnica": false,
|
|
32
32
|
Imágenes: false
|
|
33
33
|
},
|
|
34
|
-
token: "
|
|
34
|
+
token: "eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiIwYjY2YTRhOS03NzkwLTQwMzQtYTMwYS1jMDA4MDg5NjI4NjciLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfbFN6UVo0WjdSIiwiY29nbml0bzp1c2VybmFtZSI6IjBiNjZhNGE5LTc3OTAtNDAzNC1hMzBhLWMwMDgwODk2Mjg2NyIsImF1ZCI6IjUyZDlza2tkY2c4cWpwODhvb2sxdXNlNm1rIiwiZXZlbnRfaWQiOiJkMjc2ZGUwMy01YmM3LTRkZjEtYTk4MC1jYmYwYjkyOGU3MDEiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY1NjEwMDM2MSwibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY1NjEwMzk2MSwiaWF0IjoxNjU2MTAwMzYxLCJlbWFpbCI6ImJheWFkaTE1MzhAbW5xbG0uY29tIn0.WmbNT419c79ZIIZIxT8bW6YjSAvlGW_36cehBQWtdPPIeeRWO1ZVOkJeimGNm9dKwIVzdieg13mUPmJOcFZMQGtNoj4yOYOhSrQBEOg4Gr3Rv94RAEa-AcoFNns55Cl98krqF42qoYYeFRV9nH1iZrMU2sEML6kxwWgxAza5eXFie_MioMphXxMsWj3BT5Fmzk8SSHsAuf8jIjUTdGtFsNv2TOOU8YjTlljYij9cvLpu9Udlaj6tVnnElCcGskQk-U7QXqjHYDpOgeEkdWZU-Cy-vm4bT6qYCQHNtMxVCu_RZPpNm_p3vSWgkhj__baJsffhsb-PAETQKPTLuT690w",
|
|
35
35
|
articleId: 238,
|
|
36
36
|
category: 846,
|
|
37
37
|
version: 2,
|
|
@@ -41,38 +41,38 @@ RetailerProductEditionDefault.args = {
|
|
|
41
41
|
descriptions: 1,
|
|
42
42
|
images: 1
|
|
43
43
|
},
|
|
44
|
-
orderId:
|
|
45
|
-
status: "
|
|
46
|
-
datasheet_status: "
|
|
47
|
-
prio: "
|
|
44
|
+
orderId: 1213,
|
|
45
|
+
status: "AA",
|
|
46
|
+
datasheet_status: "AA",
|
|
47
|
+
prio: "low",
|
|
48
48
|
version: 2,
|
|
49
|
-
description_status: "
|
|
50
|
-
images_status: "
|
|
49
|
+
description_status: "AA",
|
|
50
|
+
images_status: "AA",
|
|
51
51
|
article: {
|
|
52
|
-
id_article:
|
|
53
|
-
id_category: "
|
|
54
|
-
name: "
|
|
55
|
-
upc: "
|
|
56
|
-
timestamp: "
|
|
57
|
-
id_user:
|
|
58
|
-
status: "
|
|
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",
|
|
59
59
|
active: 1,
|
|
60
|
-
company_id:
|
|
61
|
-
company_name: "
|
|
62
|
-
country: "
|
|
63
|
-
id_order:
|
|
64
|
-
id_datasheet_especialist:
|
|
65
|
-
id_datasheet_facilitator:
|
|
66
|
-
id_description_especialist:
|
|
67
|
-
id_description_facilitator:
|
|
68
|
-
id_images_especialist:
|
|
69
|
-
id_images_facilitator:
|
|
70
|
-
id_auditor:
|
|
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,
|
|
71
71
|
id_recepcionist: null,
|
|
72
|
-
category: "SALUD Y BELLEZA|CUIDADO
|
|
73
|
-
missingAttributes:
|
|
74
|
-
missingDescriptions:
|
|
75
|
-
missingImages:
|
|
72
|
+
category: "SALUD Y BELLEZA|CUIDADO CORPORAL|DESODORANTES CABALLERO Y DAMA",
|
|
73
|
+
missingAttributes: 1,
|
|
74
|
+
missingDescriptions: 0,
|
|
75
|
+
missingImages: -4
|
|
76
76
|
},
|
|
77
77
|
retailers: [{
|
|
78
78
|
id: 4,
|
|
@@ -81,14 +81,20 @@ RetailerProductEditionDefault.args = {
|
|
|
81
81
|
id_region: 1,
|
|
82
82
|
active: 1
|
|
83
83
|
}, {
|
|
84
|
-
id:
|
|
85
|
-
name: "
|
|
84
|
+
id: 6,
|
|
85
|
+
name: "HEB",
|
|
86
|
+
country: "México",
|
|
87
|
+
id_region: 1,
|
|
88
|
+
active: 1
|
|
89
|
+
}, {
|
|
90
|
+
id: 29,
|
|
91
|
+
name: "Farmacias del Ahorro",
|
|
86
92
|
country: "México",
|
|
87
93
|
id_region: 1,
|
|
88
94
|
active: 1
|
|
89
95
|
}],
|
|
90
|
-
country: "
|
|
91
|
-
upc: "
|
|
96
|
+
country: "null",
|
|
97
|
+
upc: "7509546066172"
|
|
92
98
|
},
|
|
93
99
|
location: {
|
|
94
100
|
product: {
|
|
@@ -97,35 +103,36 @@ RetailerProductEditionDefault.args = {
|
|
|
97
103
|
}
|
|
98
104
|
},
|
|
99
105
|
user: {
|
|
100
|
-
id_user:
|
|
101
|
-
name: "
|
|
102
|
-
last_name: "",
|
|
103
|
-
email: "
|
|
104
|
-
position:
|
|
106
|
+
id_user: 423,
|
|
107
|
+
name: "Facilitador Textos",
|
|
108
|
+
last_name: " ",
|
|
109
|
+
email: "bayadi1538@mnqlm.com",
|
|
110
|
+
position: "Tester",
|
|
105
111
|
telephone: null,
|
|
106
112
|
country: null,
|
|
107
|
-
id_company:
|
|
108
|
-
id_cognito: "
|
|
113
|
+
id_company: 254,
|
|
114
|
+
id_cognito: "0b66a4a9-7790-4034-a30a-c00808962867",
|
|
109
115
|
birth_Date: null,
|
|
110
116
|
about_me: null,
|
|
111
117
|
zip_code: null,
|
|
112
118
|
address: null,
|
|
113
119
|
job: null,
|
|
114
120
|
id_stripe: null,
|
|
115
|
-
id_role:
|
|
121
|
+
id_role: 4,
|
|
116
122
|
active: 1,
|
|
117
123
|
is_retailer: 0,
|
|
124
|
+
email_notify: null,
|
|
118
125
|
membership: {
|
|
119
|
-
id:
|
|
120
|
-
start_date: "
|
|
121
|
-
end_date: "
|
|
122
|
-
planID:
|
|
123
|
-
plan: "
|
|
124
|
-
name: "Plan
|
|
125
|
-
user_limit: "
|
|
126
|
-
products_limit: "
|
|
127
|
-
type: "
|
|
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"
|
|
128
135
|
},
|
|
129
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
136
|
+
src: "https://content-management-profile-prod.s3.amazonaws.com/id-423/423.png?1656100361978"
|
|
130
137
|
}
|
|
131
138
|
};
|