contentoh-components-library 21.1.52 → 21.1.55
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/pages/ProviderProductEdition/ProviderProductEdition.stories.js +16 -8
- package/dist/components/pages/ProviderProductEdition/index.js +78 -47
- package/dist/global-files/data.js +8 -8
- package/dist/index.js +0 -13
- package/package.json +1 -1
- package/src/components/atoms/ValidationPanel/index.js +1 -1
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +9 -1
- package/src/components/pages/ProviderProductEdition/index.js +67 -51
- package/src/global-files/data.js +8 -8
- package/src/index.js +0 -1
- package/dist/components/pages/RegistrationLoginFirstStep/RegistrationLoginFirstStep.stories.js +0 -37
- package/dist/components/pages/RegistrationLoginFirstStep/index.js +0 -269
- package/dist/components/pages/RegistrationLoginFirstStep/styles.js +0 -20
|
@@ -55,10 +55,12 @@ ProviderProductEditionDefault.args = {
|
|
|
55
55
|
},
|
|
56
56
|
retailers: [{
|
|
57
57
|
id: 58,
|
|
58
|
-
name: "The Home Depot Golden"
|
|
58
|
+
name: "The Home Depot Golden",
|
|
59
|
+
services: ["AA", "AA", "AA", "AA"]
|
|
59
60
|
}, {
|
|
60
61
|
id: 59,
|
|
61
|
-
name: "The Home Depot Platinum"
|
|
62
|
+
name: "The Home Depot Platinum",
|
|
63
|
+
services: ["NA", "NA", "NA", "AA"]
|
|
62
64
|
}, {
|
|
63
65
|
id: 60,
|
|
64
66
|
name: "The Home Depot Resizing"
|
|
@@ -74,10 +76,12 @@ ProviderProductEditionDefault.args = {
|
|
|
74
76
|
id_article: 55118,
|
|
75
77
|
retailersAvailable: [{
|
|
76
78
|
id: 58,
|
|
77
|
-
name: "The Home Depot Golden"
|
|
79
|
+
name: "The Home Depot Golden",
|
|
80
|
+
percentage: 100
|
|
78
81
|
}, {
|
|
79
82
|
id: 59,
|
|
80
|
-
name: "The Home Depot Platinum"
|
|
83
|
+
name: "The Home Depot Platinum",
|
|
84
|
+
percentage: 100
|
|
81
85
|
}, {
|
|
82
86
|
id: 60,
|
|
83
87
|
name: "The Home Depot Resizing"
|
|
@@ -109,10 +113,12 @@ ProviderProductEditionDefault.args = {
|
|
|
109
113
|
},
|
|
110
114
|
retailers: [{
|
|
111
115
|
id: 58,
|
|
112
|
-
name: "The Home Depot Golden"
|
|
116
|
+
name: "The Home Depot Golden",
|
|
117
|
+
services: ["AA", "AA", "AA", "NA"]
|
|
113
118
|
}, {
|
|
114
119
|
id: 59,
|
|
115
|
-
name: "The Home Depot Platinum"
|
|
120
|
+
name: "The Home Depot Platinum",
|
|
121
|
+
services: ["NA", "NA", "NA", "AA"]
|
|
116
122
|
}, {
|
|
117
123
|
id: 60,
|
|
118
124
|
name: "The Home Depot Resizing"
|
|
@@ -128,10 +134,12 @@ ProviderProductEditionDefault.args = {
|
|
|
128
134
|
id_article: 55118,
|
|
129
135
|
retailersAvailable: [{
|
|
130
136
|
id: 58,
|
|
131
|
-
name: "The Home Depot Golden"
|
|
137
|
+
name: "The Home Depot Golden",
|
|
138
|
+
percentage: 100
|
|
132
139
|
}, {
|
|
133
140
|
id: 59,
|
|
134
|
-
name: "The Home Depot Platinum"
|
|
141
|
+
name: "The Home Depot Platinum",
|
|
142
|
+
percentage: 100
|
|
135
143
|
}, {
|
|
136
144
|
id: 60,
|
|
137
145
|
name: "The Home Depot Resizing"
|
|
@@ -1303,6 +1303,11 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1303
1303
|
}
|
|
1304
1304
|
};
|
|
1305
1305
|
|
|
1306
|
+
var getSectionStatus = function getSectionStatus() {
|
|
1307
|
+
var concept = getConcept(activeTab);
|
|
1308
|
+
return ["AA", "AP", "R", "CA", "RCA"].includes(productEdit.product["".concat(concept, "_status")]);
|
|
1309
|
+
};
|
|
1310
|
+
|
|
1306
1311
|
var confirmStatusComplete = function confirmStatusComplete() {
|
|
1307
1312
|
var datasheet_status = product.datasheet_status,
|
|
1308
1313
|
description_status = product.description_status,
|
|
@@ -1317,81 +1322,112 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1317
1322
|
|
|
1318
1323
|
var sendEvaluation = /*#__PURE__*/function () {
|
|
1319
1324
|
var _ref14 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee13(result) {
|
|
1320
|
-
var
|
|
1325
|
+
var _productTemp$id_order;
|
|
1326
|
+
|
|
1327
|
+
var concept, productTemp, articleId, orderId, sectionStatusKey, evalStatus, data, retailerId, res, newStatuses, orderStatus, serviceStatus, newProductEdit, _JSON$parse, newArticleStatus, newServiceStatus, newStatus, retailerStatusCopy, status;
|
|
1321
1328
|
|
|
1322
1329
|
return _regenerator.default.wrap(function _callee13$(_context13) {
|
|
1323
1330
|
while (1) {
|
|
1324
1331
|
switch (_context13.prev = _context13.next) {
|
|
1325
1332
|
case 0:
|
|
1326
1333
|
setLoading(true);
|
|
1327
|
-
|
|
1334
|
+
concept = getConcept(activeTab);
|
|
1335
|
+
productTemp = product;
|
|
1336
|
+
articleId = productTemp.id_article;
|
|
1337
|
+
orderId = (_productTemp$id_order = productTemp.id_order) !== null && _productTemp$id_order !== void 0 ? _productTemp$id_order : productTemp.orderId;
|
|
1338
|
+
sectionStatusKey = "".concat(getConcept(activeTab), "_status");
|
|
1339
|
+
evalStatus = product[sectionStatusKey] || (product === null || product === void 0 ? void 0 : product.version_status);
|
|
1340
|
+
data = {
|
|
1341
|
+
articleId: articleId,
|
|
1342
|
+
orderId: orderId,
|
|
1343
|
+
concept: concept,
|
|
1344
|
+
evalStatus: evalStatus
|
|
1345
|
+
};
|
|
1328
1346
|
retailerId = activeRetailer === null || activeRetailer === void 0 ? void 0 : activeRetailer.id;
|
|
1347
|
+
_context13.prev = 9;
|
|
1329
1348
|
|
|
1330
1349
|
if (!result) {
|
|
1331
|
-
_context13.next =
|
|
1350
|
+
_context13.next = 25;
|
|
1332
1351
|
break;
|
|
1333
1352
|
}
|
|
1334
1353
|
|
|
1335
|
-
data =
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
concept: getConcept(activeTab),
|
|
1339
|
-
result: result,
|
|
1340
|
-
retailerId: retailerId
|
|
1341
|
-
};
|
|
1342
|
-
_context13.next = 7;
|
|
1354
|
+
data.result = result;
|
|
1355
|
+
data.retailerId = retailerId;
|
|
1356
|
+
_context13.next = 15;
|
|
1343
1357
|
return _axios.default.put("".concat(process.env.REACT_APP_EVALUATION_ENDPOINT), data, {
|
|
1344
1358
|
headers: {
|
|
1345
1359
|
Authorization: token
|
|
1346
1360
|
}
|
|
1347
1361
|
});
|
|
1348
1362
|
|
|
1349
|
-
case
|
|
1350
|
-
|
|
1363
|
+
case 15:
|
|
1364
|
+
res = _context13.sent;
|
|
1365
|
+
newStatuses = JSON.parse(res.data.body);
|
|
1366
|
+
orderStatus = newStatuses.newOrderStatus;
|
|
1367
|
+
serviceStatus = newStatuses.newServiceStatus[articleId]["".concat(getConcept(activeTab), "Status")];
|
|
1368
|
+
newProductEdit = productEdit;
|
|
1369
|
+
newProductEdit.product[sectionStatusKey] = serviceStatus;
|
|
1370
|
+
setProductEdit(newProductEdit);
|
|
1371
|
+
showSurvey && showSurvey(orderStatus[orderId] === "AP");
|
|
1372
|
+
_context13.next = 28;
|
|
1351
1373
|
break;
|
|
1352
1374
|
|
|
1353
|
-
case
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
productTemp["".concat(concept, "_status")] = "Evaluated";
|
|
1357
|
-
data = {
|
|
1358
|
-
articleId: product.id_article,
|
|
1359
|
-
orderId: (_product$id_order3 = product.id_order) !== null && _product$id_order3 !== void 0 ? _product$id_order3 : product.orderId,
|
|
1360
|
-
concept: concept
|
|
1361
|
-
};
|
|
1362
|
-
|
|
1363
|
-
_axios.default.put("".concat(process.env.REACT_APP_SEND_EVAL), data, {
|
|
1375
|
+
case 25:
|
|
1376
|
+
_context13.next = 27;
|
|
1377
|
+
return _axios.default.put("".concat(process.env.REACT_APP_SEND_EVAL), data, {
|
|
1364
1378
|
headers: {
|
|
1365
1379
|
Authorization: token
|
|
1366
1380
|
}
|
|
1367
1381
|
});
|
|
1368
1382
|
|
|
1383
|
+
case 27:
|
|
1384
|
+
res = _context13.sent;
|
|
1385
|
+
|
|
1386
|
+
case 28:
|
|
1387
|
+
if (!(res.data.statusCode === 200)) {
|
|
1388
|
+
_context13.next = 41;
|
|
1389
|
+
break;
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
_JSON$parse = JSON.parse(res.data.body), newArticleStatus = _JSON$parse.newArticleStatus, newServiceStatus = _JSON$parse.newServiceStatus, newStatus = _JSON$parse.newStatus;
|
|
1393
|
+
if (newArticleStatus) productTemp.status = newArticleStatus[articleId];
|
|
1394
|
+
retailerStatusCopy = (0, _objectSpread3.default)({}, retailerStatus);
|
|
1395
|
+
retailerStatusCopy[activeRetailer.id][concept] = newStatus;
|
|
1396
|
+
setRetailerStatus(retailerStatusCopy);
|
|
1397
|
+
productTemp.statusByRetailer = retailerStatusCopy;
|
|
1398
|
+
|
|
1399
|
+
if (newServiceStatus) {
|
|
1400
|
+
status = newServiceStatus[articleId]["".concat(concept, "Status")];
|
|
1401
|
+
productTemp["".concat(concept, "_status")] = status;
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1369
1404
|
setProduct(productTemp);
|
|
1370
1405
|
sessionStorage.setItem("productSelected", JSON.stringify(productTemp));
|
|
1371
|
-
setProductEdit({
|
|
1372
|
-
ArticleId: productTemp.id_article,
|
|
1373
|
-
idCategory: productTemp.article.id_category,
|
|
1374
|
-
product: productTemp
|
|
1375
|
-
});
|
|
1376
|
-
sessionStorage.setItem("productEdit", JSON.stringify({
|
|
1377
|
-
ArticleId: productTemp.id_article,
|
|
1378
|
-
idCategory: productTemp.article.id_category,
|
|
1379
|
-
product: productTemp
|
|
1380
|
-
}));
|
|
1381
1406
|
setOrigin(function (prev) {
|
|
1382
|
-
return (0, _objectSpread3.default)((0, _objectSpread3.default)({}, prev), {}, (0, _defineProperty2.default)({}, concept,
|
|
1407
|
+
return (0, _objectSpread3.default)((0, _objectSpread3.default)({}, prev), {}, (0, _defineProperty2.default)({}, concept, status));
|
|
1383
1408
|
});
|
|
1409
|
+
_context13.next = 41;
|
|
1410
|
+
return loadData();
|
|
1411
|
+
|
|
1412
|
+
case 41:
|
|
1413
|
+
_context13.next = 46;
|
|
1414
|
+
break;
|
|
1384
1415
|
|
|
1385
|
-
case
|
|
1416
|
+
case 43:
|
|
1417
|
+
_context13.prev = 43;
|
|
1418
|
+
_context13.t0 = _context13["catch"](9);
|
|
1419
|
+
console.log(_context13.t0);
|
|
1420
|
+
|
|
1421
|
+
case 46:
|
|
1386
1422
|
loadData();
|
|
1387
1423
|
showSurvey && showSurvey(confirmStatusComplete());
|
|
1388
1424
|
|
|
1389
|
-
case
|
|
1425
|
+
case 48:
|
|
1390
1426
|
case "end":
|
|
1391
1427
|
return _context13.stop();
|
|
1392
1428
|
}
|
|
1393
1429
|
}
|
|
1394
|
-
}, _callee13);
|
|
1430
|
+
}, _callee13, null, [[9, 43]]);
|
|
1395
1431
|
}));
|
|
1396
1432
|
|
|
1397
1433
|
return function sendEvaluation(_x7) {
|
|
@@ -1412,11 +1448,11 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1412
1448
|
sendAll = [];
|
|
1413
1449
|
conceptArray = ["description", "datasheet", "images"];
|
|
1414
1450
|
servicesData === null || servicesData === void 0 ? void 0 : servicesData.forEach(function (ret) {
|
|
1415
|
-
var _product$
|
|
1451
|
+
var _product$id_order2;
|
|
1416
1452
|
|
|
1417
1453
|
var data = {
|
|
1418
1454
|
articleId: product.id_article,
|
|
1419
|
-
orderId: (_product$
|
|
1455
|
+
orderId: (_product$id_order2 = product.id_order) !== null && _product$id_order2 !== void 0 ? _product$id_order2 : product.orderId,
|
|
1420
1456
|
concept: ret.service,
|
|
1421
1457
|
result: result,
|
|
1422
1458
|
retailerId: ret.id_retailer
|
|
@@ -1432,11 +1468,11 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1432
1468
|
|
|
1433
1469
|
case 8:
|
|
1434
1470
|
conceptArray === null || conceptArray === void 0 ? void 0 : conceptArray.forEach(function (concept) {
|
|
1435
|
-
var _product$
|
|
1471
|
+
var _product$id_order3;
|
|
1436
1472
|
|
|
1437
1473
|
var data = {
|
|
1438
1474
|
articleId: product.id_article,
|
|
1439
|
-
orderId: (_product$
|
|
1475
|
+
orderId: (_product$id_order3 = product.id_order) !== null && _product$id_order3 !== void 0 ? _product$id_order3 : product.orderId,
|
|
1440
1476
|
concept: concept
|
|
1441
1477
|
};
|
|
1442
1478
|
sendAll.push(_axios.default.put("".concat(process.env.REACT_APP_SEND_EVAL), data, {
|
|
@@ -1534,11 +1570,6 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1534
1570
|
};
|
|
1535
1571
|
}();
|
|
1536
1572
|
|
|
1537
|
-
var getSectionStatus = function getSectionStatus() {
|
|
1538
|
-
var concept = getConcept(activeTab);
|
|
1539
|
-
return ["AA", "AP", "RECEIVED", "IN_PROGRESS", "RC"].includes(productEdit.product["".concat(concept, "_status")]);
|
|
1540
|
-
};
|
|
1541
|
-
|
|
1542
1573
|
var enableActions = function enableActions(versionStatus) {
|
|
1543
1574
|
try {
|
|
1544
1575
|
var userIsRetailer = user.is_retailer;
|
|
@@ -280,18 +280,18 @@ var getNewStatus = function getNewStatus(statusArray) {
|
|
|
280
280
|
statusArray.forEach(function (element) {
|
|
281
281
|
return lookupString += element + "/";
|
|
282
282
|
});
|
|
283
|
-
if (lookupString.includes("
|
|
283
|
+
if (lookupString.includes("RCA")) return "RCA";
|
|
284
|
+
if (lookupString.includes("RC")) return "RC";
|
|
284
285
|
if (lookupString.includes("RA")) return "RA";
|
|
285
286
|
if (lookupString.includes("RP")) return "RP";
|
|
286
|
-
if (lookupString.includes("
|
|
287
|
-
if (lookupString.includes("UNASSIGNED")) return "
|
|
288
|
-
if (lookupString.includes("
|
|
289
|
-
if (lookupString.includes("
|
|
290
|
-
if (lookupString.includes("
|
|
287
|
+
if (lookupString.includes("ACA")) return "ACA";
|
|
288
|
+
if (lookupString.includes("UNASSIGNED")) return "CA";
|
|
289
|
+
if (lookupString.includes("CA")) return "CA";
|
|
290
|
+
if (lookupString.includes("IE")) return "IE";
|
|
291
|
+
if (lookupString.includes("AC")) return "AC";
|
|
291
292
|
if (lookupString.includes("AA")) return "AA";
|
|
292
293
|
if (lookupString.includes("AP")) return "AP";
|
|
293
|
-
if (lookupString.includes("
|
|
294
|
-
if (lookupString.includes("RECEIVED")) return "RECEIVED";
|
|
294
|
+
if (lookupString.includes("R")) return "R";
|
|
295
295
|
if (lookupString.includes("NA")) return "NA";
|
|
296
296
|
return new Error("Status not found");
|
|
297
297
|
};
|
package/dist/index.js
CHANGED
|
@@ -784,19 +784,6 @@ Object.keys(_OnboardPlan).forEach(function (key) {
|
|
|
784
784
|
});
|
|
785
785
|
});
|
|
786
786
|
|
|
787
|
-
var _RegistrationLoginFirstStep = require("./components/pages/RegistrationLoginFirstStep");
|
|
788
|
-
|
|
789
|
-
Object.keys(_RegistrationLoginFirstStep).forEach(function (key) {
|
|
790
|
-
if (key === "default" || key === "__esModule") return;
|
|
791
|
-
if (key in exports && exports[key] === _RegistrationLoginFirstStep[key]) return;
|
|
792
|
-
Object.defineProperty(exports, key, {
|
|
793
|
-
enumerable: true,
|
|
794
|
-
get: function get() {
|
|
795
|
-
return _RegistrationLoginFirstStep[key];
|
|
796
|
-
}
|
|
797
|
-
});
|
|
798
|
-
});
|
|
799
|
-
|
|
800
787
|
var _RegistrationLoginSecondStep = require("./components/pages/RegistrationLoginSecondStep");
|
|
801
788
|
|
|
802
789
|
Object.keys(_RegistrationLoginSecondStep).forEach(function (key) {
|
package/package.json
CHANGED
|
@@ -42,10 +42,12 @@ ProviderProductEditionDefault.args = {
|
|
|
42
42
|
{
|
|
43
43
|
id: 58,
|
|
44
44
|
name: "The Home Depot Golden",
|
|
45
|
+
services: ["AA", "AA", "AA", "AA"],
|
|
45
46
|
},
|
|
46
47
|
{
|
|
47
48
|
id: 59,
|
|
48
49
|
name: "The Home Depot Platinum",
|
|
50
|
+
services: ["NA", "NA", "NA", "AA"],
|
|
49
51
|
},
|
|
50
52
|
{
|
|
51
53
|
id: 60,
|
|
@@ -66,10 +68,12 @@ ProviderProductEditionDefault.args = {
|
|
|
66
68
|
{
|
|
67
69
|
id: 58,
|
|
68
70
|
name: "The Home Depot Golden",
|
|
71
|
+
percentage: 100,
|
|
69
72
|
},
|
|
70
73
|
{
|
|
71
74
|
id: 59,
|
|
72
75
|
name: "The Home Depot Platinum",
|
|
76
|
+
percentage: 100,
|
|
73
77
|
},
|
|
74
78
|
{
|
|
75
79
|
id: 60,
|
|
@@ -106,10 +110,12 @@ ProviderProductEditionDefault.args = {
|
|
|
106
110
|
{
|
|
107
111
|
id: 58,
|
|
108
112
|
name: "The Home Depot Golden",
|
|
113
|
+
services: ["AA", "AA", "AA", "NA"],
|
|
109
114
|
},
|
|
110
115
|
{
|
|
111
116
|
id: 59,
|
|
112
117
|
name: "The Home Depot Platinum",
|
|
118
|
+
services: ["NA", "NA", "NA", "AA"],
|
|
113
119
|
},
|
|
114
120
|
{
|
|
115
121
|
id: 60,
|
|
@@ -130,10 +136,12 @@ ProviderProductEditionDefault.args = {
|
|
|
130
136
|
{
|
|
131
137
|
id: 58,
|
|
132
138
|
name: "The Home Depot Golden",
|
|
139
|
+
percentage: 100,
|
|
133
140
|
},
|
|
134
141
|
{
|
|
135
142
|
id: 59,
|
|
136
143
|
name: "The Home Depot Platinum",
|
|
144
|
+
percentage: 100,
|
|
137
145
|
},
|
|
138
146
|
{
|
|
139
147
|
id: 60,
|
|
@@ -183,4 +191,4 @@ ProviderProductEditionDefault.args = {
|
|
|
183
191
|
},
|
|
184
192
|
src: "https://content-management-profile.s3.amazonaws.com/id-59/59.png?1656113146885",
|
|
185
193
|
},
|
|
186
|
-
};
|
|
194
|
+
};
|
|
@@ -787,6 +787,13 @@ export const ProviderProductEdition = ({
|
|
|
787
787
|
}
|
|
788
788
|
};
|
|
789
789
|
|
|
790
|
+
const getSectionStatus = () => {
|
|
791
|
+
const concept = getConcept(activeTab);
|
|
792
|
+
return ["AA", "AP", "R", "CA", "RCA"].includes(
|
|
793
|
+
productEdit.product[`${concept}_status`]
|
|
794
|
+
);
|
|
795
|
+
};
|
|
796
|
+
|
|
790
797
|
const confirmStatusComplete = () => {
|
|
791
798
|
const { datasheet_status, description_status, images_status } = product;
|
|
792
799
|
const completionStates =
|
|
@@ -804,51 +811,67 @@ export const ProviderProductEdition = ({
|
|
|
804
811
|
|
|
805
812
|
const sendEvaluation = async (result) => {
|
|
806
813
|
setLoading(true);
|
|
807
|
-
|
|
814
|
+
const concept = getConcept(activeTab);
|
|
815
|
+
const productTemp = product;
|
|
816
|
+
const articleId = productTemp.id_article;
|
|
817
|
+
const orderId = productTemp.id_order ?? productTemp.orderId;
|
|
818
|
+
const sectionStatusKey = `${getConcept(activeTab)}_status`;
|
|
819
|
+
const evalStatus = product[sectionStatusKey] || product?.version_status;
|
|
820
|
+
let data = { articleId, orderId, concept, evalStatus };
|
|
808
821
|
const retailerId = activeRetailer?.id;
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
822
|
+
let res;
|
|
823
|
+
try {
|
|
824
|
+
if (result) {
|
|
825
|
+
data.result = result;
|
|
826
|
+
data.retailerId = retailerId;
|
|
827
|
+
res = await axios.put(
|
|
828
|
+
`${process.env.REACT_APP_EVALUATION_ENDPOINT}`,
|
|
829
|
+
data,
|
|
830
|
+
{
|
|
831
|
+
headers: {
|
|
832
|
+
Authorization: token,
|
|
833
|
+
},
|
|
834
|
+
}
|
|
835
|
+
);
|
|
836
|
+
const newStatuses = JSON.parse(res.data.body);
|
|
837
|
+
const orderStatus = newStatuses.newOrderStatus;
|
|
838
|
+
const serviceStatus =
|
|
839
|
+
newStatuses.newServiceStatus[articleId][
|
|
840
|
+
`${getConcept(activeTab)}Status`
|
|
841
|
+
];
|
|
842
|
+
|
|
843
|
+
const newProductEdit = productEdit;
|
|
844
|
+
newProductEdit.product[sectionStatusKey] = serviceStatus;
|
|
845
|
+
setProductEdit(newProductEdit);
|
|
846
|
+
showSurvey && showSurvey(orderStatus[orderId] === "AP");
|
|
847
|
+
} else {
|
|
848
|
+
res = await axios.put(`${process.env.REACT_APP_SEND_EVAL}`, data, {
|
|
849
|
+
headers: {
|
|
850
|
+
Authorization: token,
|
|
851
|
+
},
|
|
852
|
+
});
|
|
853
|
+
}
|
|
854
|
+
if (res.data.statusCode === 200) {
|
|
855
|
+
const { newArticleStatus, newServiceStatus, newStatus } = JSON.parse(
|
|
856
|
+
res.data.body
|
|
857
|
+
);
|
|
858
|
+
if (newArticleStatus) productTemp.status = newArticleStatus[articleId];
|
|
859
|
+
const retailerStatusCopy = { ...retailerStatus };
|
|
860
|
+
retailerStatusCopy[activeRetailer.id][concept] = newStatus;
|
|
861
|
+
setRetailerStatus(retailerStatusCopy);
|
|
862
|
+
productTemp.statusByRetailer = retailerStatusCopy;
|
|
863
|
+
let status;
|
|
864
|
+
if (newServiceStatus) {
|
|
865
|
+
status = newServiceStatus[articleId][`${concept}Status`];
|
|
866
|
+
productTemp[`${concept}_status`] = status;
|
|
867
|
+
}
|
|
868
|
+
setProduct(productTemp);
|
|
869
|
+
sessionStorage.setItem("productSelected", JSON.stringify(productTemp));
|
|
870
|
+
setOrigin((prev) => ({ ...prev, [concept]: status }));
|
|
871
|
+
await loadData();
|
|
872
|
+
}
|
|
873
|
+
} catch (err) {
|
|
874
|
+
console.log(err);
|
|
852
875
|
}
|
|
853
876
|
loadData();
|
|
854
877
|
showSurvey && showSurvey(confirmStatusComplete());
|
|
@@ -953,13 +976,6 @@ export const ProviderProductEdition = ({
|
|
|
953
976
|
loadData();
|
|
954
977
|
};
|
|
955
978
|
|
|
956
|
-
const getSectionStatus = () => {
|
|
957
|
-
const concept = getConcept(activeTab);
|
|
958
|
-
return ["AA", "AP", "RECEIVED", "IN_PROGRESS", "RC"].includes(
|
|
959
|
-
productEdit.product[`${concept}_status`]
|
|
960
|
-
);
|
|
961
|
-
};
|
|
962
|
-
|
|
963
979
|
const enableActions = (versionStatus) => {
|
|
964
980
|
try {
|
|
965
981
|
const userIsRetailer = user.is_retailer;
|
package/src/global-files/data.js
CHANGED
|
@@ -195,18 +195,18 @@ export const fetchUsers = async (auth) => {
|
|
|
195
195
|
export const getNewStatus = (statusArray) => {
|
|
196
196
|
let lookupString = "";
|
|
197
197
|
statusArray.forEach((element) => (lookupString += element + "/"));
|
|
198
|
-
if (lookupString.includes("
|
|
198
|
+
if (lookupString.includes("RCA")) return "RCA";
|
|
199
|
+
if (lookupString.includes("RC")) return "RC";
|
|
199
200
|
if (lookupString.includes("RA")) return "RA";
|
|
200
201
|
if (lookupString.includes("RP")) return "RP";
|
|
201
|
-
if (lookupString.includes("
|
|
202
|
-
if (lookupString.includes("UNASSIGNED")) return "
|
|
203
|
-
if (lookupString.includes("
|
|
204
|
-
if (lookupString.includes("
|
|
205
|
-
if (lookupString.includes("
|
|
202
|
+
if (lookupString.includes("ACA")) return "ACA";
|
|
203
|
+
if (lookupString.includes("UNASSIGNED")) return "CA";
|
|
204
|
+
if (lookupString.includes("CA")) return "CA";
|
|
205
|
+
if (lookupString.includes("IE")) return "IE";
|
|
206
|
+
if (lookupString.includes("AC")) return "AC";
|
|
206
207
|
if (lookupString.includes("AA")) return "AA";
|
|
207
208
|
if (lookupString.includes("AP")) return "AP";
|
|
208
|
-
if (lookupString.includes("
|
|
209
|
-
if (lookupString.includes("RECEIVED")) return "RECEIVED";
|
|
209
|
+
if (lookupString.includes("R")) return "R";
|
|
210
210
|
if (lookupString.includes("NA")) return "NA";
|
|
211
211
|
return new Error("Status not found");
|
|
212
212
|
};
|
package/src/index.js
CHANGED
|
@@ -65,7 +65,6 @@ export * from "./components/pages/CustomerLogin";
|
|
|
65
65
|
export * from "./components/pages/CustomerType";
|
|
66
66
|
export * from "./components/pages/EmailResetPassword";
|
|
67
67
|
export * from "./components/pages/OnboardPlan";
|
|
68
|
-
export * from "./components/pages/RegistrationLoginFirstStep";
|
|
69
68
|
export * from "./components/pages/RegistrationLoginSecondStep";
|
|
70
69
|
export * from "./components/pages/RegistrationLoginThirdStep";
|
|
71
70
|
export * from "./components/pages/RetailerProductEdition";
|
package/dist/components/pages/RegistrationLoginFirstStep/RegistrationLoginFirstStep.stories.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = exports.RegistrationLoginFirstStepDefault = void 0;
|
|
9
|
-
|
|
10
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
-
|
|
12
|
-
var _index = require("./index");
|
|
13
|
-
|
|
14
|
-
var _loginImage = _interopRequireDefault(require("../../../assets/images/carouselImagesLogin/loginImage.svg"));
|
|
15
|
-
|
|
16
|
-
var _login = _interopRequireDefault(require("../../../assets/images/carouselImagesLogin/login2.svg"));
|
|
17
|
-
|
|
18
|
-
var _login2 = _interopRequireDefault(require("../../../assets/images/carouselImagesLogin/login3.svg"));
|
|
19
|
-
|
|
20
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
-
|
|
22
|
-
var _default = {
|
|
23
|
-
title: "Components/pages/RegistrationLoginFirstStep",
|
|
24
|
-
component: _index.RegistrationLoginFirstStep
|
|
25
|
-
};
|
|
26
|
-
exports.default = _default;
|
|
27
|
-
|
|
28
|
-
var Template = function Template(args) {
|
|
29
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.RegistrationLoginFirstStep, (0, _objectSpread2.default)({}, args));
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
var RegistrationLoginFirstStepDefault = Template.bind({});
|
|
33
|
-
exports.RegistrationLoginFirstStepDefault = RegistrationLoginFirstStepDefault;
|
|
34
|
-
RegistrationLoginFirstStepDefault.args = {
|
|
35
|
-
imageArrayCarousel: [_loginImage.default, _login.default, _login2.default],
|
|
36
|
-
textCarousel: "Elige la plataforma que conecta proovedores y retailers"
|
|
37
|
-
};
|
|
@@ -1,269 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.RegistrationLoginFirstStep = void 0;
|
|
9
|
-
|
|
10
|
-
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
11
|
-
|
|
12
|
-
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/asyncToGenerator"));
|
|
13
|
-
|
|
14
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
15
|
-
|
|
16
|
-
var _styles = require("./styles");
|
|
17
|
-
|
|
18
|
-
var _GradientPanel = require("../../atoms/GradientPanel");
|
|
19
|
-
|
|
20
|
-
var _CarouselImagesLogin = require("../../molecules/CarouselImagesLogin");
|
|
21
|
-
|
|
22
|
-
var _react = require("react");
|
|
23
|
-
|
|
24
|
-
var _LogoImage = require("../../atoms/LogoImage");
|
|
25
|
-
|
|
26
|
-
var _ScreenHeader = require("../../atoms/ScreenHeader");
|
|
27
|
-
|
|
28
|
-
var _variables = require("../../../global-files/variables");
|
|
29
|
-
|
|
30
|
-
var _TagAndInput = require("../../molecules/TagAndInput");
|
|
31
|
-
|
|
32
|
-
var _GeneralButton = require("../../atoms/GeneralButton");
|
|
33
|
-
|
|
34
|
-
var _GeneralInput = require("../../atoms/GeneralInput");
|
|
35
|
-
|
|
36
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
37
|
-
|
|
38
|
-
var RegistrationLoginFirstStep = function RegistrationLoginFirstStep(_ref) {
|
|
39
|
-
var _ref$imageArrayCarous = _ref.imageArrayCarousel,
|
|
40
|
-
imageArrayCarousel = _ref$imageArrayCarous === void 0 ? [] : _ref$imageArrayCarous,
|
|
41
|
-
textCarousel = _ref.textCarousel,
|
|
42
|
-
backogroundColorCarousel = _ref.backogroundColorCarousel;
|
|
43
|
-
|
|
44
|
-
var _useState = (0, _react.useState)(false),
|
|
45
|
-
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
46
|
-
emptyName = _useState2[0],
|
|
47
|
-
setEmptyName = _useState2[1];
|
|
48
|
-
|
|
49
|
-
var _useState3 = (0, _react.useState)(false),
|
|
50
|
-
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
51
|
-
emptyLastName = _useState4[0],
|
|
52
|
-
setEmptyLastName = _useState4[1];
|
|
53
|
-
|
|
54
|
-
var _useState5 = (0, _react.useState)(false),
|
|
55
|
-
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
|
56
|
-
emptyEmail = _useState6[0],
|
|
57
|
-
setEmptyEmail = _useState6[1];
|
|
58
|
-
|
|
59
|
-
var _useState7 = (0, _react.useState)(false),
|
|
60
|
-
_useState8 = (0, _slicedToArray2.default)(_useState7, 2),
|
|
61
|
-
emptyJob = _useState8[0],
|
|
62
|
-
setEmptyJob = _useState8[1];
|
|
63
|
-
|
|
64
|
-
var _useState9 = (0, _react.useState)(false),
|
|
65
|
-
_useState10 = (0, _slicedToArray2.default)(_useState9, 2),
|
|
66
|
-
emptyPhone = _useState10[0],
|
|
67
|
-
setEmptyPhone = _useState10[1];
|
|
68
|
-
|
|
69
|
-
var _useState11 = (0, _react.useState)(false),
|
|
70
|
-
_useState12 = (0, _slicedToArray2.default)(_useState11, 2),
|
|
71
|
-
invalidEmail = _useState12[0],
|
|
72
|
-
setInvalidEmail = _useState12[1];
|
|
73
|
-
|
|
74
|
-
var validate = /*#__PURE__*/function () {
|
|
75
|
-
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(e) {
|
|
76
|
-
var name, lastName, email, job, phone;
|
|
77
|
-
return _regenerator.default.wrap(function _callee$(_context) {
|
|
78
|
-
while (1) {
|
|
79
|
-
switch (_context.prev = _context.next) {
|
|
80
|
-
case 0:
|
|
81
|
-
e.preventDefault();
|
|
82
|
-
name = document.querySelector("#nameInput").value;
|
|
83
|
-
lastName = document.querySelector("#lastNameInput").value;
|
|
84
|
-
email = document.querySelector("#emailInput").value;
|
|
85
|
-
job = document.querySelector("#jobInput").value;
|
|
86
|
-
phone = document.querySelector("#phoneInput").value;
|
|
87
|
-
name === "" ? setEmptyName(true) : setEmptyName(false);
|
|
88
|
-
lastName === "" ? setEmptyLastName(true) : setEmptyLastName(false);
|
|
89
|
-
email === "" ? setEmptyEmail(true) : setEmptyEmail(false);
|
|
90
|
-
job === "" ? setEmptyJob(true) : setEmptyJob(false);
|
|
91
|
-
phone === "" ? setEmptyPhone(true) : setEmptyPhone(false);
|
|
92
|
-
!/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(email) ? setInvalidEmail(true) : setInvalidEmail(false);
|
|
93
|
-
|
|
94
|
-
case 12:
|
|
95
|
-
case "end":
|
|
96
|
-
return _context.stop();
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}, _callee);
|
|
100
|
-
}));
|
|
101
|
-
|
|
102
|
-
return function validate(_x) {
|
|
103
|
-
return _ref2.apply(this, arguments);
|
|
104
|
-
};
|
|
105
|
-
}();
|
|
106
|
-
|
|
107
|
-
var loginRight = [/*#__PURE__*/(0, _jsxRuntime.jsx)(_LogoImage.LogoImage, {}, "1"), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
108
|
-
className: "credenciales",
|
|
109
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
110
|
-
fontFamily: _variables.FontFamily.AvenirNext,
|
|
111
|
-
color: _variables.GlobalColors.s5,
|
|
112
|
-
text: "Ingresa tus credenciales"
|
|
113
|
-
})
|
|
114
|
-
}, "2"), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
115
|
-
className: "user",
|
|
116
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
117
|
-
className: "name-registration-user",
|
|
118
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
119
|
-
inputType: "text",
|
|
120
|
-
inputId: "nameInput",
|
|
121
|
-
label: "Nombre",
|
|
122
|
-
inputPlaceHolder: "Nombre"
|
|
123
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
124
|
-
inputType: "text",
|
|
125
|
-
inputId: "lastNameInput",
|
|
126
|
-
label: "Apellido",
|
|
127
|
-
inputPlaceHolder: "Apellido"
|
|
128
|
-
})]
|
|
129
|
-
}), emptyName && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
130
|
-
children: "Ingrese su nombre"
|
|
131
|
-
}), emptyLastName && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
132
|
-
children: "Ingrese sus apellidos"
|
|
133
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
134
|
-
inputType: "text",
|
|
135
|
-
inputId: "emailInput",
|
|
136
|
-
label: "Correo electrónico",
|
|
137
|
-
inputPlaceHolder: "username@contentoh.com"
|
|
138
|
-
}), emptyEmail && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
139
|
-
children: "Ingrese su correo"
|
|
140
|
-
}), invalidEmail && !emptyEmail && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
141
|
-
children: "Ingrese un correo v\xE1lido"
|
|
142
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
143
|
-
inputType: "text",
|
|
144
|
-
inputId: "jobInput",
|
|
145
|
-
label: "Puesto laboral",
|
|
146
|
-
inputPlaceHolder: "Puesto dentro de la empresa"
|
|
147
|
-
}), emptyJob && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
148
|
-
children: "Ingrese su puesto"
|
|
149
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
150
|
-
text: "Teléfono",
|
|
151
|
-
headerType: "input-name-header"
|
|
152
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
153
|
-
className: "phone-registration-user",
|
|
154
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("select", {
|
|
155
|
-
name: "select",
|
|
156
|
-
className: "phone-options",
|
|
157
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
158
|
-
children: "+52"
|
|
159
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
160
|
-
children: "+54"
|
|
161
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
162
|
-
children: "+57"
|
|
163
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
164
|
-
children: "+506"
|
|
165
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
166
|
-
children: "+593"
|
|
167
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
168
|
-
children: "+503"
|
|
169
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
170
|
-
children: "+504"
|
|
171
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
172
|
-
children: "+507"
|
|
173
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
174
|
-
children: "+51"
|
|
175
|
-
})]
|
|
176
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralInput.GeneralInput, {
|
|
177
|
-
inputId: "phoneInput",
|
|
178
|
-
inputType: "text",
|
|
179
|
-
inputPlaceholder: "Teléfono"
|
|
180
|
-
})]
|
|
181
|
-
}), emptyPhone && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
182
|
-
children: "Ingrese su n\xFAmero de tel\xE9fono"
|
|
183
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
184
|
-
text: "País",
|
|
185
|
-
headerType: "input-name-header"
|
|
186
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("select", {
|
|
187
|
-
name: "select",
|
|
188
|
-
className: "country-options",
|
|
189
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
190
|
-
value: "value1",
|
|
191
|
-
selected: true,
|
|
192
|
-
children: "Selecciona tu pa\xEDs"
|
|
193
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
194
|
-
value: "value2",
|
|
195
|
-
children: "Argentina"
|
|
196
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
197
|
-
value: "value3",
|
|
198
|
-
children: "Colombia"
|
|
199
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
200
|
-
value: "value2",
|
|
201
|
-
children: "Ecuador"
|
|
202
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
203
|
-
value: "value3",
|
|
204
|
-
children: "El Salvador"
|
|
205
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
206
|
-
value: "value2",
|
|
207
|
-
children: "Honduras"
|
|
208
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
209
|
-
value: "value3",
|
|
210
|
-
children: "M\xE9xico"
|
|
211
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
212
|
-
value: "value2",
|
|
213
|
-
children: "Panam\xE1"
|
|
214
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
215
|
-
value: "value3",
|
|
216
|
-
children: "Per\xFA"
|
|
217
|
-
})]
|
|
218
|
-
}), emptyEmail && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
219
|
-
children: "Seleccione su pa\xEDs"
|
|
220
|
-
})]
|
|
221
|
-
}, "3"), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
222
|
-
className: "button-end",
|
|
223
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
224
|
-
buttonType: "general-default-button",
|
|
225
|
-
label: "Enviar",
|
|
226
|
-
onClick: function onClick(e) {
|
|
227
|
-
return validate(e);
|
|
228
|
-
}
|
|
229
|
-
})
|
|
230
|
-
}, "4"), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
231
|
-
className: "progress-bar",
|
|
232
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
233
|
-
className: "progress-bar-first-step"
|
|
234
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
235
|
-
className: "progress-bar-registration"
|
|
236
|
-
})]
|
|
237
|
-
}, "5"), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
238
|
-
text: "Paso 1",
|
|
239
|
-
headerType: "date-header",
|
|
240
|
-
color: _variables.GlobalColors.s4
|
|
241
|
-
}, "6"), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
242
|
-
className: "new-login",
|
|
243
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("p", {
|
|
244
|
-
className: "pre-registro",
|
|
245
|
-
children: ["\xBFYa tienes una cuenta?", /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
246
|
-
children: " Inicia Sesi\xF3n"
|
|
247
|
-
})]
|
|
248
|
-
})
|
|
249
|
-
}, "7")];
|
|
250
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
251
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
252
|
-
className: "home-retailer",
|
|
253
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CarouselImagesLogin.CarouselImagesLogin, {
|
|
254
|
-
panelImg: imageArrayCarousel,
|
|
255
|
-
panelText: textCarousel,
|
|
256
|
-
panelColor: backogroundColorCarousel
|
|
257
|
-
})
|
|
258
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
259
|
-
className: "home-login-retailer",
|
|
260
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_GradientPanel.GradientPanel, {
|
|
261
|
-
componentsArray: loginRight,
|
|
262
|
-
panelType: "home-login",
|
|
263
|
-
panelColor: _variables.GlobalColors.white
|
|
264
|
-
})
|
|
265
|
-
})]
|
|
266
|
-
});
|
|
267
|
-
};
|
|
268
|
-
|
|
269
|
-
exports.RegistrationLoginFirstStep = RegistrationLoginFirstStep;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.Container = void 0;
|
|
9
|
-
|
|
10
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
11
|
-
|
|
12
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
|
-
|
|
14
|
-
var _variables = require("../../../global-files/variables");
|
|
15
|
-
|
|
16
|
-
var _templateObject;
|
|
17
|
-
|
|
18
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n width: 100%;\n height: 100vh;\n .user {\n .name-registration-user {\n display: flex;\n justify-content: space-between;\n input {\n width: 160px;\n }\n }\n .input-name-header {\n margin-bottom: 4px;\n margin-top: 12px;\n }\n .phone-registration-user {\n display: flex;\n justify-content: space-between;\n .phone-options {\n width: 80px;\n }\n input {\n width: 100%;\n }\n & + * {\n margin-top: 10px;\n }\n }\n .country-options,\n .phone-options {\n width: 100%;\n border: 1px solid ", ";\n font-family: ", ";\n color: ", ";\n font-weight: normal;\n font-size: 12px;\n line-height: 15px;\n padding: 10px;\n outline: none;\n border-radius: 2px;\n resize: none;\n &:focus {\n border: 1px solid ", ";\n }\n }\n }\n .button-end {\n text-align: end;\n .general-default-button {\n width: 160px;\n }\n & + * {\n margin-top: 10px;\n }\n }\n .progress-bar {\n width: 100%;\n height: 8px;\n display: flex;\n justify-content: space-between;\n .progress-bar-first-step {\n width: 33.33%;\n background-color: rgb(196, 196, 196);\n }\n .progress-bar-registration {\n background-color: rgb(226, 226, 226);\n width: 66.66%;\n }\n }\n .date-header {\n .new-login {\n & + * {\n margin-top: 20px;\n }\n }\n }\n .home-login-retailer,\n .home-retailer {\n width: 50%;\n }\n"])), _variables.GlobalColors.s2, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s4, _variables.GlobalColors.magenta_s2);
|
|
19
|
-
|
|
20
|
-
exports.Container = Container;
|