contentoh-components-library 21.4.27 → 21.4.28
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/.env.development +1 -0
- package/dist/assets/fonts/roboto/LICENSE.txt +202 -0
- package/dist/components/molecules/StripeCardForm/index.js +8 -1
- package/dist/components/molecules/StripeCardForm/styles.js +5 -2
- package/dist/components/molecules/StripeCardSelector/index.js +15 -2
- package/dist/components/molecules/StripeCardSelector/styles.js +4 -1
- package/dist/components/organisms/Chat/ContentChat/styles.js +1 -1
- package/dist/components/organisms/Chat/Footer/styles.js +1 -1
- package/dist/components/organisms/Chat/styles.js +1 -1
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +112 -54
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +1 -1
- package/dist/components/pages/RetailerProductEdition/index.js +68 -74
- package/package.json +3 -3
- package/src/components/atoms/Card/index.js +1 -1
- package/src/components/molecules/StripeCardForm/index.js +3 -1
- package/src/components/molecules/StripeCardForm/styles.js +4 -2
- package/src/components/molecules/StripeCardSelector/index.js +16 -3
- package/src/components/molecules/StripeCardSelector/styles.js +3 -1
- package/src/components/organisms/Chat/ContentChat/styles.js +0 -1
- package/src/components/organisms/Chat/Footer/styles.js +4 -0
- package/src/components/organisms/Chat/styles.js +1 -1
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +112 -60
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +1 -1
- package/src/components/pages/RetailerProductEdition/index.js +42 -47
- package/src/index.js +0 -1
|
@@ -37,7 +37,7 @@ var _GalleryElement = require("../../molecules/GalleryElement");
|
|
|
37
37
|
|
|
38
38
|
var _fileSaver = require("file-saver");
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var _data = require("../../../global-files/data");
|
|
41
41
|
|
|
42
42
|
var _GalleryHeader = require("../../molecules/GalleryHeader");
|
|
43
43
|
|
|
@@ -541,7 +541,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
541
541
|
}
|
|
542
542
|
|
|
543
543
|
_context2.next = 3;
|
|
544
|
-
return (0,
|
|
544
|
+
return (0, _data.getRetailerServices)(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.category, parseInt(product === null || product === void 0 ? void 0 : (_product$article3 = product.article) === null || _product$article3 === void 0 ? void 0 : _product$article3.id_category), auditableVersion.version);
|
|
545
545
|
|
|
546
546
|
case 3:
|
|
547
547
|
_auditServices = _context2.sent;
|
|
@@ -581,7 +581,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
581
581
|
case 0:
|
|
582
582
|
_context3.prev = 0;
|
|
583
583
|
_context3.next = 3;
|
|
584
|
-
return (0,
|
|
584
|
+
return (0, _data.getRetailerServices)(product === null || product === void 0 ? void 0 : (_product$article4 = product.article) === null || _product$article4 === void 0 ? void 0 : _product$article4.id_article, product === null || product === void 0 ? void 0 : (_product$article5 = product.article) === null || _product$article5 === void 0 ? void 0 : _product$article5.category, parseInt(product === null || product === void 0 ? void 0 : (_product$article6 = product.article) === null || _product$article6 === void 0 ? void 0 : _product$article6.id_category), version);
|
|
585
585
|
|
|
586
586
|
case 3:
|
|
587
587
|
_services = _context3.sent;
|
|
@@ -598,7 +598,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
598
598
|
init: _services[2]
|
|
599
599
|
});
|
|
600
600
|
if (((_services$ = _services[2]) === null || _services$ === void 0 ? void 0 : (_services$$values = _services$.values) === null || _services$$values === void 0 ? void 0 : _services$$values.length) > 0) setActiveImage(0);
|
|
601
|
-
(0,
|
|
601
|
+
(0, _data.getPercentage)({
|
|
602
602
|
data: [product]
|
|
603
603
|
}).then(function (res) {
|
|
604
604
|
return setPercentages(res[0]);
|
|
@@ -723,7 +723,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
723
723
|
getComments();
|
|
724
724
|
_context6.t0 = setUserGroups;
|
|
725
725
|
_context6.next = 6;
|
|
726
|
-
return (0,
|
|
726
|
+
return (0, _data.fetchUsers)(token);
|
|
727
727
|
|
|
728
728
|
case 6:
|
|
729
729
|
_context6.t1 = _context6.sent;
|
|
@@ -1347,7 +1347,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1347
1347
|
|
|
1348
1348
|
var sendToFacilitator = /*#__PURE__*/function () {
|
|
1349
1349
|
var _ref14 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee11(result) {
|
|
1350
|
-
var concept, productTemp, evalStatus, articleId, orderId,
|
|
1350
|
+
var concept, productTemp, evalStatus, articleId, orderId, body, res, _message, specialistDone, _JSON$parse5, newStatus, newOrderStatus, newArticleStatus, messageToChat, data;
|
|
1351
1351
|
|
|
1352
1352
|
return _regenerator.default.wrap(function _callee11$(_context11) {
|
|
1353
1353
|
while (1) {
|
|
@@ -1360,22 +1360,24 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1360
1360
|
evalStatus = retailerStatus;
|
|
1361
1361
|
articleId = product.article.id_article;
|
|
1362
1362
|
orderId = product.orderId;
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1363
|
+
body = {
|
|
1364
|
+
orderArticleRetailers: [{
|
|
1365
|
+
orderId: orderId,
|
|
1366
|
+
articleId: articleId,
|
|
1367
|
+
retailersIds: [activeRetailer.id]
|
|
1368
|
+
}],
|
|
1369
|
+
isAproved: false,
|
|
1370
|
+
service: concept
|
|
1369
1371
|
};
|
|
1370
1372
|
|
|
1371
1373
|
if (!result) {
|
|
1372
|
-
_context11.next =
|
|
1374
|
+
_context11.next = 17;
|
|
1373
1375
|
break;
|
|
1374
1376
|
}
|
|
1375
1377
|
|
|
1376
|
-
|
|
1378
|
+
body.isAproved = result === "A";
|
|
1377
1379
|
_context11.next = 12;
|
|
1378
|
-
return _axios.default.
|
|
1380
|
+
return _axios.default.post("".concat(process.env.REACT_APP_EVALUATION_REFACTOR), body, {
|
|
1379
1381
|
headers: {
|
|
1380
1382
|
Authorization: token
|
|
1381
1383
|
}
|
|
@@ -1383,11 +1385,12 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1383
1385
|
|
|
1384
1386
|
case 12:
|
|
1385
1387
|
res = _context11.sent;
|
|
1388
|
+
console.log(JSON.parse(res.data.body), "res");
|
|
1386
1389
|
getServices();
|
|
1387
|
-
_context11.next =
|
|
1390
|
+
_context11.next = 22;
|
|
1388
1391
|
break;
|
|
1389
1392
|
|
|
1390
|
-
case
|
|
1393
|
+
case 17:
|
|
1391
1394
|
specialistDone = ["RC", "RA", "CA"].includes(evalStatus);
|
|
1392
1395
|
|
|
1393
1396
|
if (specialistDone) {
|
|
@@ -1398,25 +1401,25 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1398
1401
|
getSectionIcon();
|
|
1399
1402
|
}
|
|
1400
1403
|
|
|
1401
|
-
_context11.next =
|
|
1402
|
-
return _axios.default.
|
|
1404
|
+
_context11.next = 21;
|
|
1405
|
+
return _axios.default.post("".concat(process.env.REACT_APP_EVALUATION_REFACTOR), body, {
|
|
1403
1406
|
headers: {
|
|
1404
1407
|
Authorization: token
|
|
1405
1408
|
}
|
|
1406
1409
|
});
|
|
1407
1410
|
|
|
1408
|
-
case
|
|
1411
|
+
case 21:
|
|
1409
1412
|
res = _context11.sent;
|
|
1410
1413
|
|
|
1411
|
-
case
|
|
1414
|
+
case 22:
|
|
1412
1415
|
if (!(res.data.statusCode === 200)) {
|
|
1413
|
-
_context11.next =
|
|
1416
|
+
_context11.next = 35;
|
|
1414
1417
|
break;
|
|
1415
1418
|
}
|
|
1416
1419
|
|
|
1417
1420
|
_JSON$parse5 = JSON.parse(res.data.body), newStatus = _JSON$parse5.newStatus, newOrderStatus = _JSON$parse5.newOrderStatus, newArticleStatus = _JSON$parse5.newArticleStatus;
|
|
1418
1421
|
messageToChat = (0, _utils.createMessage)(product.retailers, activeRetailer.id, evalStatus, newStatus, activeTab);
|
|
1419
|
-
|
|
1422
|
+
data = {
|
|
1420
1423
|
paramsBody: {
|
|
1421
1424
|
id: product.article.id_article,
|
|
1422
1425
|
version: version,
|
|
@@ -1431,38 +1434,38 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1431
1434
|
Authorization: token
|
|
1432
1435
|
}
|
|
1433
1436
|
};
|
|
1434
|
-
_context11.next =
|
|
1435
|
-
return (0, _utils.sendMessage)(
|
|
1437
|
+
_context11.next = 28;
|
|
1438
|
+
return (0, _utils.sendMessage)(data);
|
|
1436
1439
|
|
|
1437
|
-
case
|
|
1440
|
+
case 28:
|
|
1438
1441
|
if (newOrderStatus) productTemp.status = newArticleStatus[articleId];
|
|
1439
1442
|
productTemp["".concat(concept, "_status")] = newStatus;
|
|
1440
|
-
_context11.next =
|
|
1443
|
+
_context11.next = 32;
|
|
1441
1444
|
return loadData();
|
|
1442
1445
|
|
|
1443
|
-
case
|
|
1446
|
+
case 32:
|
|
1444
1447
|
if (_message) setMessage(_message);
|
|
1445
1448
|
sessionStorage.setItem("productSelected", JSON.stringify(productTemp));
|
|
1446
1449
|
setProduct(productTemp);
|
|
1447
1450
|
|
|
1448
|
-
case
|
|
1449
|
-
_context11.next =
|
|
1451
|
+
case 35:
|
|
1452
|
+
_context11.next = 40;
|
|
1450
1453
|
break;
|
|
1451
1454
|
|
|
1452
|
-
case
|
|
1453
|
-
_context11.prev =
|
|
1455
|
+
case 37:
|
|
1456
|
+
_context11.prev = 37;
|
|
1454
1457
|
_context11.t0 = _context11["catch"](1);
|
|
1455
1458
|
console.log(_context11.t0);
|
|
1456
1459
|
|
|
1457
|
-
case
|
|
1460
|
+
case 40:
|
|
1458
1461
|
setLoading(false);
|
|
1459
1462
|
|
|
1460
|
-
case
|
|
1463
|
+
case 41:
|
|
1461
1464
|
case "end":
|
|
1462
1465
|
return _context11.stop();
|
|
1463
1466
|
}
|
|
1464
1467
|
}
|
|
1465
|
-
}, _callee11, null, [[1,
|
|
1468
|
+
}, _callee11, null, [[1, 37]]);
|
|
1466
1469
|
}));
|
|
1467
1470
|
|
|
1468
1471
|
return function sendToFacilitator(_x) {
|
|
@@ -1818,7 +1821,8 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1818
1821
|
|
|
1819
1822
|
var validateAll = /*#__PURE__*/function () {
|
|
1820
1823
|
var _ref18 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee15(result) {
|
|
1821
|
-
var evaluationArray, conceptArray, messages, productTemp, messagesResponse;
|
|
1824
|
+
var _product$id_order, evaluationArray, conceptArray, messages, body, productTemp, messagesResponse;
|
|
1825
|
+
|
|
1822
1826
|
return _regenerator.default.wrap(function _callee15$(_context15) {
|
|
1823
1827
|
while (1) {
|
|
1824
1828
|
switch (_context15.prev = _context15.next) {
|
|
@@ -1826,7 +1830,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1826
1830
|
_context15.prev = 0;
|
|
1827
1831
|
setLoading(true);
|
|
1828
1832
|
evaluationArray = [];
|
|
1829
|
-
conceptArray = [];
|
|
1833
|
+
conceptArray = ["description", "datasheet", "images"];
|
|
1830
1834
|
_context15.t0 = user.id_role;
|
|
1831
1835
|
_context15.next = _context15.t0 === 4 ? 7 : _context15.t0 === 5 ? 9 : 11;
|
|
1832
1836
|
break;
|
|
@@ -1846,38 +1850,28 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1846
1850
|
case 13:
|
|
1847
1851
|
messages = [];
|
|
1848
1852
|
servicesData === null || servicesData === void 0 ? void 0 : servicesData.forEach(function (ret) {
|
|
1849
|
-
if (
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
messages.push(createComment([{
|
|
1865
|
-
type: "status",
|
|
1866
|
-
value: _message2
|
|
1867
|
-
}], ret.id_retailer));
|
|
1853
|
+
if (!retailersIds.includes(ret.id_retailer)) retailersIds.push(ret.id_retailer);
|
|
1854
|
+
});
|
|
1855
|
+
body = {
|
|
1856
|
+
orderArticleRetailers: [{
|
|
1857
|
+
orderId: (_product$id_order = product.id_order) !== null && _product$id_order !== void 0 ? _product$id_order : product.orderId,
|
|
1858
|
+
articleId: product.article.id_article,
|
|
1859
|
+
retailersIds: retailersIds
|
|
1860
|
+
}],
|
|
1861
|
+
isAproved: isAproved
|
|
1862
|
+
};
|
|
1863
|
+
conceptArray.forEach(function (concept) {
|
|
1864
|
+
body.service = concept;
|
|
1865
|
+
evaluationArray.push(_axios.default.post("".concat(process.env.REACT_APP_EVALUATION_REFACTOR), body, {
|
|
1866
|
+
headers: {
|
|
1867
|
+
Authorization: token
|
|
1868
1868
|
}
|
|
1869
|
-
|
|
1870
|
-
evaluationArray.push(_axios.default.put("".concat(process.env.REACT_APP_EVALUATION_ENDPOINT), data, {
|
|
1871
|
-
headers: {
|
|
1872
|
-
Authorization: token
|
|
1873
|
-
}
|
|
1874
|
-
}));
|
|
1875
|
-
}
|
|
1869
|
+
}));
|
|
1876
1870
|
});
|
|
1877
|
-
_context15.next =
|
|
1871
|
+
_context15.next = 19;
|
|
1878
1872
|
return Promise.all(evaluationArray);
|
|
1879
1873
|
|
|
1880
|
-
case
|
|
1874
|
+
case 19:
|
|
1881
1875
|
productTemp = product;
|
|
1882
1876
|
productTemp.status = "".concat(result, "A");
|
|
1883
1877
|
productTemp.datasheet_status = productTemp.datasheet_status === "NS" ? "NS" : "".concat(result, "A");
|
|
@@ -1885,29 +1879,29 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1885
1879
|
productTemp.images_status = productTemp.images_status === "NS" ? "NS" : "".concat(result, "A");
|
|
1886
1880
|
sessionStorage.setItem("productSelected", JSON.stringify(productTemp));
|
|
1887
1881
|
setProduct(productTemp);
|
|
1888
|
-
_context15.next =
|
|
1882
|
+
_context15.next = 28;
|
|
1889
1883
|
return Promise.all(messages);
|
|
1890
1884
|
|
|
1891
|
-
case
|
|
1885
|
+
case 28:
|
|
1892
1886
|
messagesResponse = _context15.sent;
|
|
1893
|
-
_context15.next =
|
|
1887
|
+
_context15.next = 31;
|
|
1894
1888
|
return loadData();
|
|
1895
1889
|
|
|
1896
|
-
case
|
|
1897
|
-
_context15.next =
|
|
1890
|
+
case 31:
|
|
1891
|
+
_context15.next = 36;
|
|
1898
1892
|
break;
|
|
1899
1893
|
|
|
1900
|
-
case
|
|
1901
|
-
_context15.prev =
|
|
1894
|
+
case 33:
|
|
1895
|
+
_context15.prev = 33;
|
|
1902
1896
|
_context15.t1 = _context15["catch"](0);
|
|
1903
1897
|
console.log(_context15.t1);
|
|
1904
1898
|
|
|
1905
|
-
case
|
|
1899
|
+
case 36:
|
|
1906
1900
|
case "end":
|
|
1907
1901
|
return _context15.stop();
|
|
1908
1902
|
}
|
|
1909
1903
|
}
|
|
1910
|
-
}, _callee15, null, [[0,
|
|
1904
|
+
}, _callee15, null, [[0, 33]]);
|
|
1911
1905
|
}));
|
|
1912
1906
|
|
|
1913
1907
|
return function validateAll(_x4) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contentoh-components-library",
|
|
3
|
-
"version": "21.4.
|
|
3
|
+
"version": "21.4.28",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@aws-amplify/auth": "^4.5.3",
|
|
6
6
|
"@aws-amplify/datastore": "^3.11.0",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"@mui/material": "^5.12.0",
|
|
17
17
|
"@mui/styled-engine-sc": "^5.12.0",
|
|
18
18
|
"@storybook/addon-postcss": "^2.0.0",
|
|
19
|
-
"@stripe/react-stripe-js": "^2.
|
|
20
|
-
"@stripe/stripe-js": "^1.
|
|
19
|
+
"@stripe/react-stripe-js": "^2.2.0",
|
|
20
|
+
"@stripe/stripe-js": "^2.1.4",
|
|
21
21
|
"@testing-library/jest-dom": "^5.11.4",
|
|
22
22
|
"@testing-library/react": "^11.1.0",
|
|
23
23
|
"@testing-library/user-event": "^12.1.10",
|
|
@@ -12,6 +12,8 @@ export const StripeCardForm = ({
|
|
|
12
12
|
setStripe,
|
|
13
13
|
setModalErrorCard,
|
|
14
14
|
setMsj,
|
|
15
|
+
isSelected = false,
|
|
16
|
+
onClick,
|
|
15
17
|
}) => {
|
|
16
18
|
const [stripeLoaded, setStripeLoaded] = useState(false);
|
|
17
19
|
|
|
@@ -24,7 +26,7 @@ export const StripeCardForm = ({
|
|
|
24
26
|
}, []);
|
|
25
27
|
|
|
26
28
|
return stripeLoaded ? (
|
|
27
|
-
<Container>
|
|
29
|
+
<Container isSelected={isSelected} onClick={() => onClick && onClick()}>
|
|
28
30
|
<Elements stripe={stripeApiKey}>
|
|
29
31
|
<PaymentForm
|
|
30
32
|
labelForm={"Pago con tarjeta"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import styled from "styled-components";
|
|
2
2
|
import { FontFamily } from "../../../global-files/variables";
|
|
3
3
|
|
|
4
|
-
export const Container = styled.div
|
|
4
|
+
export const Container = styled.div`
|
|
5
|
+
${({ isSelected }) => isSelected && `border-color: #E33AA9;`}
|
|
6
|
+
`;
|
|
5
7
|
|
|
6
8
|
export const PaymentFormContainer = styled.form`
|
|
7
9
|
padding: 20px;
|
|
@@ -12,7 +14,7 @@ export const PaymentFormContainer = styled.form`
|
|
|
12
14
|
font-size: 15px;
|
|
13
15
|
line-height: 20px;
|
|
14
16
|
color: #262626;
|
|
15
|
-
font-family: ${FontFamily.
|
|
17
|
+
font-family: ${FontFamily.RobotoMedium};
|
|
16
18
|
|
|
17
19
|
& + * {
|
|
18
20
|
margin-top: 10px;
|
|
@@ -7,7 +7,13 @@ import { Card } from "../../atoms/Card";
|
|
|
7
7
|
import { Loading } from "../../atoms/Loading";
|
|
8
8
|
const stripeApiKey = loadStripe(`${process.env.REACT_APP_KEY_STRIPE}`);
|
|
9
9
|
|
|
10
|
-
export const CardSelector = ({
|
|
10
|
+
export const CardSelector = ({
|
|
11
|
+
jwt,
|
|
12
|
+
setCard,
|
|
13
|
+
setStripe,
|
|
14
|
+
isSelected = false,
|
|
15
|
+
onClick,
|
|
16
|
+
}) => {
|
|
11
17
|
const [stripeLoaded, setStripeLoaded] = useState(false);
|
|
12
18
|
const [cards, setCards] = useState([]);
|
|
13
19
|
const [selectedCard, setSelectedCard] = useState("");
|
|
@@ -18,12 +24,19 @@ export const CardSelector = ({ jwt, setCard, setStripe }) => {
|
|
|
18
24
|
const cardsResponse = await getAllCards(jwt);
|
|
19
25
|
setCards(cardsResponse);
|
|
20
26
|
};
|
|
27
|
+
|
|
21
28
|
useEffect(() => {
|
|
22
|
-
loadStripeJS();
|
|
29
|
+
// loadStripeJS();
|
|
30
|
+
stripeApiKey.then(() => {
|
|
31
|
+
setStripeLoaded(true);
|
|
32
|
+
getAllCards(jwt).then((cardsResponse) => {
|
|
33
|
+
setCards(cardsResponse);
|
|
34
|
+
});
|
|
35
|
+
});
|
|
23
36
|
}, []);
|
|
24
37
|
|
|
25
38
|
return stripeLoaded ? (
|
|
26
|
-
<Container>
|
|
39
|
+
<Container isSelected={isSelected} onClick={() => onClick && onClick()}>
|
|
27
40
|
<h2>Tarjetas guardadas</h2>
|
|
28
41
|
<Elements stripe={stripeApiKey}>
|
|
29
42
|
{cards.map((card) => (
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import styled from "styled-components";
|
|
2
2
|
import { PaymentFormContainer } from "../StripeCardForm/styles";
|
|
3
3
|
|
|
4
|
-
export const Container = styled(PaymentFormContainer)
|
|
4
|
+
export const Container = styled(PaymentFormContainer)`
|
|
5
|
+
${({ isSelected }) => isSelected && `border-color: #E33AA9;`}
|
|
6
|
+
`;
|
|
@@ -21,80 +21,132 @@ ProviderProductEditionDefault.args = {
|
|
|
21
21
|
category: 846,
|
|
22
22
|
version: 2,
|
|
23
23
|
productSelected: {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
24
|
+
orderId: 15275,
|
|
25
|
+
status: "AA",
|
|
26
|
+
datasheet_status: "AA",
|
|
27
|
+
prio: "none",
|
|
28
|
+
version: 3,
|
|
29
|
+
description_status: "AA",
|
|
30
|
+
images_status: "AA",
|
|
31
|
+
brand: null,
|
|
32
|
+
retailerOrder: 0,
|
|
33
|
+
missing: {
|
|
34
|
+
datasheet: null,
|
|
35
|
+
descriptions: null,
|
|
36
|
+
images: null,
|
|
37
|
+
},
|
|
38
|
+
services: {
|
|
39
|
+
datasheets: 1,
|
|
40
|
+
descriptions: 1,
|
|
41
|
+
images: 1,
|
|
42
|
+
},
|
|
43
|
+
article: {
|
|
44
|
+
category: "Abarrotes|Abarrotes Secos|Frutos Secos",
|
|
45
|
+
company_name: "GRUPO BRAHMA",
|
|
46
|
+
country: "México",
|
|
47
|
+
id_category: "11",
|
|
48
|
+
id_datasheet_especialist: 54,
|
|
49
|
+
id_datasheet_facilitator: 52,
|
|
50
|
+
id_description_especialist: 54,
|
|
51
|
+
id_description_facilitator: 52,
|
|
52
|
+
id_images_especialist: 55,
|
|
53
|
+
id_images_facilitator: 53,
|
|
54
|
+
id_order: 15275,
|
|
55
|
+
id_article: 39485,
|
|
56
|
+
id_auditor: 37,
|
|
57
|
+
name: "Mix de nueces",
|
|
58
|
+
timestamp: "2023-07-14T21:03:19.000Z",
|
|
59
|
+
upc: "7543453453",
|
|
60
|
+
},
|
|
61
|
+
retailers: [
|
|
33
62
|
{
|
|
34
|
-
|
|
35
|
-
|
|
63
|
+
id: 34,
|
|
64
|
+
name: "San Pablo",
|
|
36
65
|
},
|
|
37
66
|
],
|
|
38
67
|
statusByRetailer: {
|
|
39
|
-
|
|
40
|
-
datasheet: "AA",
|
|
41
|
-
description: "AA",
|
|
42
|
-
images: "AA",
|
|
43
|
-
},
|
|
44
|
-
29: {
|
|
45
|
-
datasheet: "AA",
|
|
46
|
-
description: "AA",
|
|
47
|
-
images: "AA",
|
|
48
|
-
},
|
|
49
|
-
63: {
|
|
68
|
+
34: {
|
|
50
69
|
datasheet: "AA",
|
|
51
70
|
description: "AA",
|
|
52
71
|
images: "AA",
|
|
53
72
|
},
|
|
54
73
|
},
|
|
55
|
-
checked: false,
|
|
56
74
|
retailersAvailable: [
|
|
57
75
|
{
|
|
58
|
-
id:
|
|
59
|
-
name: "
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
id: 29,
|
|
63
|
-
name: "Farmacias del Ahorro",
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
id: 63,
|
|
67
|
-
name: "DAX",
|
|
76
|
+
id: 34,
|
|
77
|
+
name: "San Pablo",
|
|
68
78
|
},
|
|
69
79
|
],
|
|
70
|
-
categoryName:
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
id_order: 15142,
|
|
80
|
+
categoryName: "Abarrotes|Abarrotes Secos|Frutos Secos",
|
|
81
|
+
upc: "7543453453",
|
|
82
|
+
id_article: 39485,
|
|
83
|
+
id_order: 15275,
|
|
75
84
|
},
|
|
76
85
|
productToEdit: {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
product:
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
percentage: 2,
|
|
94
|
-
},
|
|
95
|
-
],
|
|
86
|
+
ArticleId: 39485,
|
|
87
|
+
idCategory: "11",
|
|
88
|
+
product: {
|
|
89
|
+
orderId: 15275,
|
|
90
|
+
status: "AA",
|
|
91
|
+
datasheet_status: "AA",
|
|
92
|
+
prio: "none",
|
|
93
|
+
version: 3,
|
|
94
|
+
description_status: "AA",
|
|
95
|
+
images_status: "AA",
|
|
96
|
+
brand: null,
|
|
97
|
+
retailerOrder: 0,
|
|
98
|
+
missing: {
|
|
99
|
+
datasheet: null,
|
|
100
|
+
descriptions: null,
|
|
101
|
+
images: null,
|
|
96
102
|
},
|
|
97
|
-
|
|
103
|
+
services: {
|
|
104
|
+
datasheets: 1,
|
|
105
|
+
descriptions: 1,
|
|
106
|
+
images: 1,
|
|
107
|
+
},
|
|
108
|
+
article: {
|
|
109
|
+
category: "Abarrotes|Abarrotes Secos|Frutos Secos",
|
|
110
|
+
company_name: "GRUPO BRAHMA",
|
|
111
|
+
country: "México",
|
|
112
|
+
id_category: "11",
|
|
113
|
+
id_datasheet_especialist: 54,
|
|
114
|
+
id_datasheet_facilitator: 52,
|
|
115
|
+
id_description_especialist: 54,
|
|
116
|
+
id_description_facilitator: 52,
|
|
117
|
+
id_images_especialist: 55,
|
|
118
|
+
id_images_facilitator: 53,
|
|
119
|
+
id_order: 15275,
|
|
120
|
+
id_article: 39485,
|
|
121
|
+
id_auditor: 37,
|
|
122
|
+
name: "Mix de nueces",
|
|
123
|
+
timestamp: "2023-07-14T21:03:19.000Z",
|
|
124
|
+
upc: "7543453453",
|
|
125
|
+
},
|
|
126
|
+
retailers: [
|
|
127
|
+
{
|
|
128
|
+
id: 34,
|
|
129
|
+
name: "San Pablo",
|
|
130
|
+
},
|
|
131
|
+
],
|
|
132
|
+
statusByRetailer: {
|
|
133
|
+
34: {
|
|
134
|
+
datasheet: "AA",
|
|
135
|
+
description: "AA",
|
|
136
|
+
images: "AA",
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
retailersAvailable: [
|
|
140
|
+
{
|
|
141
|
+
id: 34,
|
|
142
|
+
name: "San Pablo",
|
|
143
|
+
},
|
|
144
|
+
],
|
|
145
|
+
categoryName: "Abarrotes|Abarrotes Secos|Frutos Secos",
|
|
146
|
+
upc: "7543453453",
|
|
147
|
+
id_article: 39485,
|
|
148
|
+
id_order: 15275,
|
|
149
|
+
},
|
|
98
150
|
},
|
|
99
151
|
location: {
|
|
100
152
|
pathname: "/EditProducts",
|
|
@@ -135,11 +187,11 @@ ProviderProductEditionDefault.args = {
|
|
|
135
187
|
planID: 8,
|
|
136
188
|
plan: "prod_KtlhECVSFG2iro",
|
|
137
189
|
name: "Plan Pro",
|
|
138
|
-
user_limit: "
|
|
190
|
+
user_limit: "50",
|
|
139
191
|
products_limit: "5000",
|
|
140
192
|
type: "Enterprise",
|
|
141
193
|
},
|
|
142
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?
|
|
194
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1693338334183",
|
|
143
195
|
},
|
|
144
196
|
company: {
|
|
145
197
|
id_company: 1,
|
|
@@ -111,6 +111,6 @@ RetailerProductEditionDefault.args = {
|
|
|
111
111
|
products_limit: "3",
|
|
112
112
|
type: "PyMES",
|
|
113
113
|
},
|
|
114
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-37/37.png?
|
|
114
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-37/37.png?1692750648813",
|
|
115
115
|
},
|
|
116
116
|
};
|