contentoh-components-library 21.0.91 → 21.0.92
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/index.js +17 -15
- package/dist/components/pages/RetailerProductEdition/index.js +171 -187
- package/package.json +1 -1
- package/src/components/pages/ProviderProductEdition/index.js +15 -13
- package/src/components/pages/RetailerProductEdition/index.js +16 -14
|
@@ -200,7 +200,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
200
200
|
|
|
201
201
|
reader.onload = /*#__PURE__*/function () {
|
|
202
202
|
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(e) {
|
|
203
|
-
var ext, img
|
|
203
|
+
var ext, img;
|
|
204
204
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
205
205
|
while (1) {
|
|
206
206
|
switch (_context.prev = _context.next) {
|
|
@@ -208,21 +208,23 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
208
208
|
ext = e.srcElement.fileName.split(".");
|
|
209
209
|
img = new Image();
|
|
210
210
|
img.src = e.target.result;
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
211
|
+
setTimeout(function () {
|
|
212
|
+
var width = img.width;
|
|
213
|
+
var height = img.height;
|
|
214
|
+
var newImg = {
|
|
215
|
+
action: "addImg",
|
|
216
|
+
img: {
|
|
217
|
+
src: e.target.result,
|
|
218
|
+
name: e.target.fileName,
|
|
219
|
+
ext: ext[ext.length - 1],
|
|
220
|
+
width: width,
|
|
221
|
+
height: height
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
setImages(newImg);
|
|
225
|
+
}, 500);
|
|
224
226
|
|
|
225
|
-
case
|
|
227
|
+
case 4:
|
|
226
228
|
case "end":
|
|
227
229
|
return _context.stop();
|
|
228
230
|
}
|
|
@@ -185,42 +185,26 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
185
185
|
var reader = new FileReader();
|
|
186
186
|
reader.fileName = file.name;
|
|
187
187
|
|
|
188
|
-
reader.onload =
|
|
189
|
-
var
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
src: e.target.result,
|
|
204
|
-
name: e.target.fileName,
|
|
205
|
-
ext: ext[ext.length - 1],
|
|
206
|
-
width: width,
|
|
207
|
-
height: width
|
|
208
|
-
}
|
|
209
|
-
};
|
|
210
|
-
setImages(newImg);
|
|
211
|
-
|
|
212
|
-
case 7:
|
|
213
|
-
case "end":
|
|
214
|
-
return _context.stop();
|
|
215
|
-
}
|
|
188
|
+
reader.onload = function (e) {
|
|
189
|
+
var ext = e.srcElement.fileName.split(".");
|
|
190
|
+
var img = new Image();
|
|
191
|
+
img.src = e.target.result;
|
|
192
|
+
setTimeout(function () {
|
|
193
|
+
var width = img.width;
|
|
194
|
+
var height = img.height;
|
|
195
|
+
var newImg = {
|
|
196
|
+
action: "addImg",
|
|
197
|
+
img: {
|
|
198
|
+
src: e.target.result,
|
|
199
|
+
name: e.target.fileName,
|
|
200
|
+
ext: ext[ext.length - 1],
|
|
201
|
+
width: width,
|
|
202
|
+
height: height
|
|
216
203
|
}
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
return _ref2.apply(this, arguments);
|
|
222
|
-
};
|
|
223
|
-
}();
|
|
204
|
+
};
|
|
205
|
+
setImages(newImg);
|
|
206
|
+
}, 500);
|
|
207
|
+
};
|
|
224
208
|
|
|
225
209
|
reader.onerror = function (error) {
|
|
226
210
|
console.log("dropzoneError: ", error);
|
|
@@ -377,19 +361,19 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
377
361
|
}, [checkAll]);
|
|
378
362
|
|
|
379
363
|
var loadData = /*#__PURE__*/function () {
|
|
380
|
-
var
|
|
364
|
+
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
381
365
|
var _product$article, _product$article2, _services$, _services$$values;
|
|
382
366
|
|
|
383
367
|
var services;
|
|
384
|
-
return _regenerator.default.wrap(function
|
|
368
|
+
return _regenerator.default.wrap(function _callee$(_context) {
|
|
385
369
|
while (1) {
|
|
386
|
-
switch (
|
|
370
|
+
switch (_context.prev = _context.next) {
|
|
387
371
|
case 0:
|
|
388
|
-
|
|
372
|
+
_context.next = 2;
|
|
389
373
|
return (0, _data2.getRetailerServices)(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.version);
|
|
390
374
|
|
|
391
375
|
case 2:
|
|
392
|
-
services =
|
|
376
|
+
services = _context.sent;
|
|
393
377
|
//Converts the data inside the datasheets object to array
|
|
394
378
|
setServices(services); //setActiveRetailer(product?.retailers[0]);
|
|
395
379
|
|
|
@@ -408,44 +392,44 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
408
392
|
|
|
409
393
|
case 9:
|
|
410
394
|
case "end":
|
|
411
|
-
return
|
|
395
|
+
return _context.stop();
|
|
412
396
|
}
|
|
413
397
|
}
|
|
414
|
-
},
|
|
398
|
+
}, _callee);
|
|
415
399
|
}));
|
|
416
400
|
|
|
417
401
|
return function loadData() {
|
|
418
|
-
return
|
|
402
|
+
return _ref2.apply(this, arguments);
|
|
419
403
|
};
|
|
420
404
|
}();
|
|
421
405
|
|
|
422
406
|
var getServices = /*#__PURE__*/function () {
|
|
423
|
-
var
|
|
407
|
+
var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
424
408
|
var _product$article3, _product$article4, _servicesResponse$dat;
|
|
425
409
|
|
|
426
410
|
var servicesResponse, parsedResponse;
|
|
427
|
-
return _regenerator.default.wrap(function
|
|
411
|
+
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
428
412
|
while (1) {
|
|
429
|
-
switch (
|
|
413
|
+
switch (_context2.prev = _context2.next) {
|
|
430
414
|
case 0:
|
|
431
|
-
|
|
415
|
+
_context2.next = 2;
|
|
432
416
|
return _axios.default.get("".concat(process.env.REACT_APP_SERVICES_ENDPOINT, "?articleId=").concat(product === null || product === void 0 ? void 0 : (_product$article3 = product.article) === null || _product$article3 === void 0 ? void 0 : _product$article3.id_article, "&orderId=").concat((product === null || product === void 0 ? void 0 : (_product$article4 = product.article) === null || _product$article4 === void 0 ? void 0 : _product$article4.id_order) || product.orderId, "&end=true"));
|
|
433
417
|
|
|
434
418
|
case 2:
|
|
435
|
-
servicesResponse =
|
|
419
|
+
servicesResponse = _context2.sent;
|
|
436
420
|
parsedResponse = JSON.parse(servicesResponse === null || servicesResponse === void 0 ? void 0 : (_servicesResponse$dat = servicesResponse.data) === null || _servicesResponse$dat === void 0 ? void 0 : _servicesResponse$dat.body).data;
|
|
437
421
|
setServicesData(parsedResponse);
|
|
438
422
|
|
|
439
423
|
case 5:
|
|
440
424
|
case "end":
|
|
441
|
-
return
|
|
425
|
+
return _context2.stop();
|
|
442
426
|
}
|
|
443
427
|
}
|
|
444
|
-
},
|
|
428
|
+
}, _callee2);
|
|
445
429
|
}));
|
|
446
430
|
|
|
447
431
|
return function getServices() {
|
|
448
|
-
return
|
|
432
|
+
return _ref3.apply(this, arguments);
|
|
449
433
|
};
|
|
450
434
|
}();
|
|
451
435
|
|
|
@@ -464,23 +448,23 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
464
448
|
};
|
|
465
449
|
|
|
466
450
|
var getComments = /*#__PURE__*/function () {
|
|
467
|
-
var
|
|
451
|
+
var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
|
468
452
|
var _product$article5, _product$article6, _product$article7;
|
|
469
453
|
|
|
470
454
|
var tab,
|
|
471
455
|
commentsResponse,
|
|
472
456
|
comments,
|
|
473
|
-
|
|
474
|
-
return _regenerator.default.wrap(function
|
|
457
|
+
_args3 = arguments;
|
|
458
|
+
return _regenerator.default.wrap(function _callee3$(_context3) {
|
|
475
459
|
while (1) {
|
|
476
|
-
switch (
|
|
460
|
+
switch (_context3.prev = _context3.next) {
|
|
477
461
|
case 0:
|
|
478
|
-
tab =
|
|
479
|
-
|
|
462
|
+
tab = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : "Descripción";
|
|
463
|
+
_context3.next = 3;
|
|
480
464
|
return Promise.all([_axios.default.get("".concat(process.env.REACT_APP_COMMENTS_ENDPOINT, "?articleId=").concat(product === null || product === void 0 ? void 0 : (_product$article5 = product.article) === null || _product$article5 === void 0 ? void 0 : _product$article5.id_article, "&concept=description&orderIdColab=").concat(product === null || product === void 0 ? void 0 : product.orderId, "&version=").concat(version)), _axios.default.get("".concat(process.env.REACT_APP_COMMENTS_ENDPOINT, "?articleId=").concat(product === null || product === void 0 ? void 0 : (_product$article6 = product.article) === null || _product$article6 === void 0 ? void 0 : _product$article6.id_article, "&concept=datasheet&orderIdColab=").concat(product === null || product === void 0 ? void 0 : product.orderId, "&version=").concat(version)), _axios.default.get("".concat(process.env.REACT_APP_COMMENTS_ENDPOINT, "?articleId=").concat(product === null || product === void 0 ? void 0 : (_product$article7 = product.article) === null || _product$article7 === void 0 ? void 0 : _product$article7.id_article, "&concept=images&orderIdColab=").concat(product === null || product === void 0 ? void 0 : product.orderId, "&version=").concat(version))]);
|
|
481
465
|
|
|
482
466
|
case 3:
|
|
483
|
-
commentsResponse =
|
|
467
|
+
commentsResponse = _context3.sent;
|
|
484
468
|
comments = {};
|
|
485
469
|
commentsResponse.forEach(function (comment) {
|
|
486
470
|
var _comment$data, _JSON$parse, _JSON$parse$data$, _comment$data2, _comment$data3;
|
|
@@ -492,22 +476,22 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
492
476
|
|
|
493
477
|
case 8:
|
|
494
478
|
case "end":
|
|
495
|
-
return
|
|
479
|
+
return _context3.stop();
|
|
496
480
|
}
|
|
497
481
|
}
|
|
498
|
-
},
|
|
482
|
+
}, _callee3);
|
|
499
483
|
}));
|
|
500
484
|
|
|
501
485
|
return function getComments() {
|
|
502
|
-
return
|
|
486
|
+
return _ref4.apply(this, arguments);
|
|
503
487
|
};
|
|
504
488
|
}();
|
|
505
489
|
|
|
506
|
-
(0, _react.useEffect)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
490
|
+
(0, _react.useEffect)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
|
507
491
|
var arr;
|
|
508
|
-
return _regenerator.default.wrap(function
|
|
492
|
+
return _regenerator.default.wrap(function _callee4$(_context4) {
|
|
509
493
|
while (1) {
|
|
510
|
-
switch (
|
|
494
|
+
switch (_context4.prev = _context4.next) {
|
|
511
495
|
case 0:
|
|
512
496
|
loadData(); // getPercentage({ data: [product] }).then((res) =>
|
|
513
497
|
// setPercentages(res)
|
|
@@ -515,43 +499,43 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
515
499
|
|
|
516
500
|
getServices();
|
|
517
501
|
getComments();
|
|
518
|
-
|
|
519
|
-
|
|
502
|
+
_context4.t0 = setUserGroups;
|
|
503
|
+
_context4.next = 6;
|
|
520
504
|
return (0, _data2.fetchUsers)(token);
|
|
521
505
|
|
|
522
506
|
case 6:
|
|
523
|
-
|
|
524
|
-
(0,
|
|
507
|
+
_context4.t1 = _context4.sent;
|
|
508
|
+
(0, _context4.t0)(_context4.t1);
|
|
525
509
|
arr = [];
|
|
526
|
-
|
|
527
|
-
|
|
510
|
+
_context4.t2 = user.id_role;
|
|
511
|
+
_context4.next = _context4.t2 === 7 ? 12 : _context4.t2 === 8 ? 12 : _context4.t2 === 4 ? 14 : _context4.t2 === 5 ? 14 : _context4.t2 === 6 ? 16 : 18;
|
|
528
512
|
break;
|
|
529
513
|
|
|
530
514
|
case 12:
|
|
531
515
|
arr = ["IN_PROGRESS", "RF", "RA"];
|
|
532
|
-
return
|
|
516
|
+
return _context4.abrupt("break", 20);
|
|
533
517
|
|
|
534
518
|
case 14:
|
|
535
519
|
arr = ["RF", "AF", "AA", "AP", "AC"];
|
|
536
|
-
return
|
|
520
|
+
return _context4.abrupt("break", 20);
|
|
537
521
|
|
|
538
522
|
case 16:
|
|
539
523
|
arr = ["RP", "RC", "AF"];
|
|
540
|
-
return
|
|
524
|
+
return _context4.abrupt("break", 20);
|
|
541
525
|
|
|
542
526
|
case 18:
|
|
543
527
|
arr = [];
|
|
544
|
-
return
|
|
528
|
+
return _context4.abrupt("break", 20);
|
|
545
529
|
|
|
546
530
|
case 20:
|
|
547
531
|
setStatusArray(arr);
|
|
548
532
|
|
|
549
533
|
case 21:
|
|
550
534
|
case "end":
|
|
551
|
-
return
|
|
535
|
+
return _context4.stop();
|
|
552
536
|
}
|
|
553
537
|
}
|
|
554
|
-
},
|
|
538
|
+
}, _callee4);
|
|
555
539
|
})), [product]);
|
|
556
540
|
|
|
557
541
|
var loadAssignations = function loadAssignations(currentProduct) {
|
|
@@ -669,13 +653,13 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
669
653
|
};
|
|
670
654
|
|
|
671
655
|
var saveDescriptions = /*#__PURE__*/function () {
|
|
672
|
-
var
|
|
656
|
+
var _ref6 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() {
|
|
673
657
|
var _product$article8;
|
|
674
658
|
|
|
675
659
|
var productTemp, dataObject;
|
|
676
|
-
return _regenerator.default.wrap(function
|
|
660
|
+
return _regenerator.default.wrap(function _callee5$(_context5) {
|
|
677
661
|
while (1) {
|
|
678
|
-
switch (
|
|
662
|
+
switch (_context5.prev = _context5.next) {
|
|
679
663
|
case 0:
|
|
680
664
|
setLoading(true);
|
|
681
665
|
productTemp = product;
|
|
@@ -684,8 +668,8 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
684
668
|
articleData: updatedDescriptions
|
|
685
669
|
};
|
|
686
670
|
if (product !== null && product !== void 0 && product.orderId) dataObject["orderId"] = product === null || product === void 0 ? void 0 : product.orderId;
|
|
687
|
-
|
|
688
|
-
|
|
671
|
+
_context5.prev = 4;
|
|
672
|
+
_context5.next = 7;
|
|
689
673
|
return _axios.default.put("".concat(process.env.REACT_APP_ARTICLE_DATA_ENDPOINT, "?description=true&version=").concat(version), dataObject, {
|
|
690
674
|
headers: {
|
|
691
675
|
Authorization: token
|
|
@@ -701,35 +685,35 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
701
685
|
|
|
702
686
|
setMessage("Descripciones guardadas con éxito");
|
|
703
687
|
loadData();
|
|
704
|
-
|
|
688
|
+
_context5.next = 15;
|
|
705
689
|
break;
|
|
706
690
|
|
|
707
691
|
case 12:
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
console.log(
|
|
692
|
+
_context5.prev = 12;
|
|
693
|
+
_context5.t0 = _context5["catch"](4);
|
|
694
|
+
console.log(_context5.t0);
|
|
711
695
|
|
|
712
696
|
case 15:
|
|
713
697
|
case "end":
|
|
714
|
-
return
|
|
698
|
+
return _context5.stop();
|
|
715
699
|
}
|
|
716
700
|
}
|
|
717
|
-
},
|
|
701
|
+
}, _callee5, null, [[4, 12]]);
|
|
718
702
|
}));
|
|
719
703
|
|
|
720
704
|
return function saveDescriptions() {
|
|
721
|
-
return
|
|
705
|
+
return _ref6.apply(this, arguments);
|
|
722
706
|
};
|
|
723
707
|
}();
|
|
724
708
|
|
|
725
709
|
var saveDatasheets = /*#__PURE__*/function () {
|
|
726
|
-
var
|
|
710
|
+
var _ref7 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6() {
|
|
727
711
|
var _product$article9;
|
|
728
712
|
|
|
729
713
|
var productTemp, dataObject;
|
|
730
|
-
return _regenerator.default.wrap(function
|
|
714
|
+
return _regenerator.default.wrap(function _callee6$(_context6) {
|
|
731
715
|
while (1) {
|
|
732
|
-
switch (
|
|
716
|
+
switch (_context6.prev = _context6.next) {
|
|
733
717
|
case 0:
|
|
734
718
|
setLoading(true);
|
|
735
719
|
productTemp = product;
|
|
@@ -738,8 +722,8 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
738
722
|
articleData: updatedDatasheets
|
|
739
723
|
};
|
|
740
724
|
if (product !== null && product !== void 0 && product.orderId) dataObject["orderId"] = product === null || product === void 0 ? void 0 : product.orderId;
|
|
741
|
-
|
|
742
|
-
|
|
725
|
+
_context6.prev = 4;
|
|
726
|
+
_context6.next = 7;
|
|
743
727
|
return _axios.default.put("".concat(process.env.REACT_APP_ARTICLE_DATA_ENDPOINT, "?datasheet=true&version=").concat(version), dataObject, {
|
|
744
728
|
headers: {
|
|
745
729
|
Authorization: token
|
|
@@ -756,24 +740,24 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
756
740
|
}
|
|
757
741
|
|
|
758
742
|
loadData();
|
|
759
|
-
|
|
743
|
+
_context6.next = 15;
|
|
760
744
|
break;
|
|
761
745
|
|
|
762
746
|
case 12:
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
console.log(
|
|
747
|
+
_context6.prev = 12;
|
|
748
|
+
_context6.t0 = _context6["catch"](4);
|
|
749
|
+
console.log(_context6.t0);
|
|
766
750
|
|
|
767
751
|
case 15:
|
|
768
752
|
case "end":
|
|
769
|
-
return
|
|
753
|
+
return _context6.stop();
|
|
770
754
|
}
|
|
771
755
|
}
|
|
772
|
-
},
|
|
756
|
+
}, _callee6, null, [[4, 12]]);
|
|
773
757
|
}));
|
|
774
758
|
|
|
775
759
|
return function saveDatasheets() {
|
|
776
|
-
return
|
|
760
|
+
return _ref7.apply(this, arguments);
|
|
777
761
|
};
|
|
778
762
|
}();
|
|
779
763
|
|
|
@@ -792,14 +776,14 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
792
776
|
});
|
|
793
777
|
setSocketType(imageInputs);
|
|
794
778
|
}, [images]);
|
|
795
|
-
var updateImages = (0, _react.useCallback)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
779
|
+
var updateImages = (0, _react.useCallback)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7() {
|
|
796
780
|
var _images$values2, _product$article10, _data$articleData, _data$articleData2, _data$updateImages;
|
|
797
781
|
|
|
798
782
|
var imagesList, imagesListTemp, duplicated, attrForImgs, data, valid, _data$updateImages2, _data$articleData3, _data$articleData4, _data$articleData5, promiseArray;
|
|
799
783
|
|
|
800
|
-
return _regenerator.default.wrap(function
|
|
784
|
+
return _regenerator.default.wrap(function _callee7$(_context7) {
|
|
801
785
|
while (1) {
|
|
802
|
-
switch (
|
|
786
|
+
switch (_context7.prev = _context7.next) {
|
|
803
787
|
case 0:
|
|
804
788
|
imagesList = images === null || images === void 0 ? void 0 : (_images$values2 = images.values) === null || _images$values2 === void 0 ? void 0 : _images$values2.slice();
|
|
805
789
|
imagesListTemp = imagesList === null || imagesList === void 0 ? void 0 : imagesList.reduce(function (acc, image) {
|
|
@@ -848,18 +832,18 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
848
832
|
}
|
|
849
833
|
|
|
850
834
|
if (!(valid && (duplicated === null || duplicated === void 0 ? void 0 : duplicated.length) === 0)) {
|
|
851
|
-
|
|
835
|
+
_context7.next = 30;
|
|
852
836
|
break;
|
|
853
837
|
}
|
|
854
838
|
|
|
855
|
-
|
|
839
|
+
_context7.prev = 10;
|
|
856
840
|
data === null || data === void 0 ? void 0 : (_data$articleData3 = data.articleData) === null || _data$articleData3 === void 0 ? void 0 : _data$articleData3.forEach(function (e) {
|
|
857
841
|
e.uuid = (0, _uuid.v4)();
|
|
858
842
|
});
|
|
859
843
|
setDataImages(data);
|
|
860
844
|
|
|
861
845
|
if (!((data === null || data === void 0 ? void 0 : (_data$articleData4 = data.articleData) === null || _data$articleData4 === void 0 ? void 0 : _data$articleData4.length) > 0)) {
|
|
862
|
-
|
|
846
|
+
_context7.next = 22;
|
|
863
847
|
break;
|
|
864
848
|
}
|
|
865
849
|
|
|
@@ -875,28 +859,28 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
875
859
|
};
|
|
876
860
|
promiseArray.push(myBucket.putObject(params).promise());
|
|
877
861
|
});
|
|
878
|
-
|
|
862
|
+
_context7.next = 19;
|
|
879
863
|
return Promise.all(promiseArray);
|
|
880
864
|
|
|
881
865
|
case 19:
|
|
882
866
|
setImagesUploaded(true);
|
|
883
|
-
|
|
867
|
+
_context7.next = 23;
|
|
884
868
|
break;
|
|
885
869
|
|
|
886
870
|
case 22:
|
|
887
871
|
setImagesUploaded(true);
|
|
888
872
|
|
|
889
873
|
case 23:
|
|
890
|
-
|
|
874
|
+
_context7.next = 28;
|
|
891
875
|
break;
|
|
892
876
|
|
|
893
877
|
case 25:
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
console.log(
|
|
878
|
+
_context7.prev = 25;
|
|
879
|
+
_context7.t0 = _context7["catch"](10);
|
|
880
|
+
console.log(_context7.t0); // setMainLoading(false);
|
|
897
881
|
|
|
898
882
|
case 28:
|
|
899
|
-
|
|
883
|
+
_context7.next = 31;
|
|
900
884
|
break;
|
|
901
885
|
|
|
902
886
|
case 30:
|
|
@@ -905,18 +889,18 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
905
889
|
|
|
906
890
|
case 31:
|
|
907
891
|
case "end":
|
|
908
|
-
return
|
|
892
|
+
return _context7.stop();
|
|
909
893
|
}
|
|
910
894
|
}
|
|
911
|
-
},
|
|
895
|
+
}, _callee7, null, [[10, 25]]);
|
|
912
896
|
})), [images, imagesUploaded]);
|
|
913
|
-
(0, _react.useEffect)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
914
|
-
return _regenerator.default.wrap(function
|
|
897
|
+
(0, _react.useEffect)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8() {
|
|
898
|
+
return _regenerator.default.wrap(function _callee8$(_context8) {
|
|
915
899
|
while (1) {
|
|
916
|
-
switch (
|
|
900
|
+
switch (_context8.prev = _context8.next) {
|
|
917
901
|
case 0:
|
|
918
902
|
if (!imagesUploaded) {
|
|
919
|
-
|
|
903
|
+
_context8.next = 14;
|
|
920
904
|
break;
|
|
921
905
|
}
|
|
922
906
|
|
|
@@ -929,8 +913,8 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
929
913
|
if (product !== null && product !== void 0 && product.orderId) e["orderId"] = product === null || product === void 0 ? void 0 : product.orderId;
|
|
930
914
|
return e;
|
|
931
915
|
});
|
|
932
|
-
|
|
933
|
-
|
|
916
|
+
_context8.prev = 3;
|
|
917
|
+
_context8.next = 6;
|
|
934
918
|
return _axios.default.put("".concat(process.env.REACT_APP_ARTICLE_DATA_ENDPOINT, "?image=true&version=").concat(version), dataImages, {
|
|
935
919
|
headers: {
|
|
936
920
|
Authorization: token
|
|
@@ -941,20 +925,20 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
941
925
|
setMessage("Imágenes guardadas con éxito");
|
|
942
926
|
sessionStorage.removeItem("imagesList");
|
|
943
927
|
loadData();
|
|
944
|
-
|
|
928
|
+
_context8.next = 14;
|
|
945
929
|
break;
|
|
946
930
|
|
|
947
931
|
case 11:
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
console.log(
|
|
932
|
+
_context8.prev = 11;
|
|
933
|
+
_context8.t0 = _context8["catch"](3);
|
|
934
|
+
console.log(_context8.t0);
|
|
951
935
|
|
|
952
936
|
case 14:
|
|
953
937
|
case "end":
|
|
954
|
-
return
|
|
938
|
+
return _context8.stop();
|
|
955
939
|
}
|
|
956
940
|
}
|
|
957
|
-
},
|
|
941
|
+
}, _callee8, null, [[3, 11]]);
|
|
958
942
|
})), [dataImages, imagesUploaded]);
|
|
959
943
|
|
|
960
944
|
var evaluationFinished = function evaluationFinished(userId, tab, statusArray) {
|
|
@@ -1039,21 +1023,21 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1039
1023
|
};
|
|
1040
1024
|
|
|
1041
1025
|
var sendToFacilitator = /*#__PURE__*/function () {
|
|
1042
|
-
var
|
|
1026
|
+
var _ref10 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9(result) {
|
|
1043
1027
|
var concept, productTemp, evalStatus, data, specialistDone, statusArr, newStatus;
|
|
1044
|
-
return _regenerator.default.wrap(function
|
|
1028
|
+
return _regenerator.default.wrap(function _callee9$(_context9) {
|
|
1045
1029
|
while (1) {
|
|
1046
|
-
switch (
|
|
1030
|
+
switch (_context9.prev = _context9.next) {
|
|
1047
1031
|
case 0:
|
|
1048
1032
|
setLoading(true);
|
|
1049
|
-
|
|
1033
|
+
_context9.prev = 1;
|
|
1050
1034
|
concept = getConcept(activeTab);
|
|
1051
1035
|
productTemp = (0, _objectSpread2.default)({}, product);
|
|
1052
1036
|
evalStatus = product["".concat(concept, "_status")];
|
|
1053
1037
|
data = {};
|
|
1054
1038
|
|
|
1055
1039
|
if (!result) {
|
|
1056
|
-
|
|
1040
|
+
_context9.next = 13;
|
|
1057
1041
|
break;
|
|
1058
1042
|
}
|
|
1059
1043
|
|
|
@@ -1066,7 +1050,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1066
1050
|
evalStatus: evalStatus,
|
|
1067
1051
|
retailerId: activeRetailer.id
|
|
1068
1052
|
};
|
|
1069
|
-
|
|
1053
|
+
_context9.next = 10;
|
|
1070
1054
|
return _axios.default.put("".concat(process.env.REACT_APP_EVALUATION_ENDPOINT), data, {
|
|
1071
1055
|
headers: {
|
|
1072
1056
|
Authorization: token
|
|
@@ -1075,7 +1059,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1075
1059
|
|
|
1076
1060
|
case 10:
|
|
1077
1061
|
getServices();
|
|
1078
|
-
|
|
1062
|
+
_context9.next = 32;
|
|
1079
1063
|
break;
|
|
1080
1064
|
|
|
1081
1065
|
case 13:
|
|
@@ -1112,23 +1096,23 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1112
1096
|
evalStatus: evalStatus,
|
|
1113
1097
|
retailerId: activeRetailer.id
|
|
1114
1098
|
};
|
|
1115
|
-
|
|
1116
|
-
|
|
1099
|
+
_context9.t0 = user.id_role;
|
|
1100
|
+
_context9.next = _context9.t0 === 7 ? 24 : _context9.t0 === 8 ? 24 : _context9.t0 === 4 ? 26 : _context9.t0 === 5 ? 26 : 28;
|
|
1117
1101
|
break;
|
|
1118
1102
|
|
|
1119
1103
|
case 24:
|
|
1120
1104
|
data.especialist = true;
|
|
1121
|
-
return
|
|
1105
|
+
return _context9.abrupt("break", 29);
|
|
1122
1106
|
|
|
1123
1107
|
case 26:
|
|
1124
1108
|
data.facilitator = true;
|
|
1125
|
-
return
|
|
1109
|
+
return _context9.abrupt("break", 29);
|
|
1126
1110
|
|
|
1127
1111
|
case 28:
|
|
1128
|
-
return
|
|
1112
|
+
return _context9.abrupt("break", 29);
|
|
1129
1113
|
|
|
1130
1114
|
case 29:
|
|
1131
|
-
|
|
1115
|
+
_context9.next = 31;
|
|
1132
1116
|
return _axios.default.put("".concat(process.env.REACT_APP_SEND_EVAL), data, {
|
|
1133
1117
|
headers: {
|
|
1134
1118
|
Authorization: token
|
|
@@ -1141,27 +1125,27 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1141
1125
|
case 32:
|
|
1142
1126
|
sessionStorage.setItem("productSelected", JSON.stringify(productTemp));
|
|
1143
1127
|
setProduct(productTemp);
|
|
1144
|
-
|
|
1128
|
+
_context9.next = 39;
|
|
1145
1129
|
break;
|
|
1146
1130
|
|
|
1147
1131
|
case 36:
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
console.log(
|
|
1132
|
+
_context9.prev = 36;
|
|
1133
|
+
_context9.t1 = _context9["catch"](1);
|
|
1134
|
+
console.log(_context9.t1);
|
|
1151
1135
|
|
|
1152
1136
|
case 39:
|
|
1153
1137
|
setLoading(false);
|
|
1154
1138
|
|
|
1155
1139
|
case 40:
|
|
1156
1140
|
case "end":
|
|
1157
|
-
return
|
|
1141
|
+
return _context9.stop();
|
|
1158
1142
|
}
|
|
1159
1143
|
}
|
|
1160
|
-
},
|
|
1144
|
+
}, _callee9, null, [[1, 36]]);
|
|
1161
1145
|
}));
|
|
1162
1146
|
|
|
1163
|
-
return function sendToFacilitator(
|
|
1164
|
-
return
|
|
1147
|
+
return function sendToFacilitator(_x) {
|
|
1148
|
+
return _ref10.apply(this, arguments);
|
|
1165
1149
|
};
|
|
1166
1150
|
}();
|
|
1167
1151
|
|
|
@@ -1192,30 +1176,30 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1192
1176
|
};
|
|
1193
1177
|
|
|
1194
1178
|
var createComment = /*#__PURE__*/function () {
|
|
1195
|
-
var
|
|
1179
|
+
var _ref11 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee10(e, body, tab) {
|
|
1196
1180
|
var _product$article11;
|
|
1197
1181
|
|
|
1198
1182
|
var concept, data;
|
|
1199
|
-
return _regenerator.default.wrap(function
|
|
1183
|
+
return _regenerator.default.wrap(function _callee10$(_context10) {
|
|
1200
1184
|
while (1) {
|
|
1201
|
-
switch (
|
|
1185
|
+
switch (_context10.prev = _context10.next) {
|
|
1202
1186
|
case 0:
|
|
1203
1187
|
concept = "";
|
|
1204
|
-
|
|
1205
|
-
|
|
1188
|
+
_context10.t0 = activeTab;
|
|
1189
|
+
_context10.next = _context10.t0 === "Ficha técnica" ? 4 : _context10.t0 === "Imágenes" ? 6 : 8;
|
|
1206
1190
|
break;
|
|
1207
1191
|
|
|
1208
1192
|
case 4:
|
|
1209
1193
|
concept = "datasheet";
|
|
1210
|
-
return
|
|
1194
|
+
return _context10.abrupt("break", 10);
|
|
1211
1195
|
|
|
1212
1196
|
case 6:
|
|
1213
1197
|
concept = "images";
|
|
1214
|
-
return
|
|
1198
|
+
return _context10.abrupt("break", 10);
|
|
1215
1199
|
|
|
1216
1200
|
case 8:
|
|
1217
1201
|
concept = "description";
|
|
1218
|
-
return
|
|
1202
|
+
return _context10.abrupt("break", 10);
|
|
1219
1203
|
|
|
1220
1204
|
case 10:
|
|
1221
1205
|
data = {
|
|
@@ -1225,7 +1209,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1225
1209
|
concept: concept,
|
|
1226
1210
|
version: version
|
|
1227
1211
|
};
|
|
1228
|
-
|
|
1212
|
+
_context10.next = 13;
|
|
1229
1213
|
return _axios.default.post("".concat(process.env.REACT_APP_COMMENTS_ENDPOINT), data, {
|
|
1230
1214
|
headers: {
|
|
1231
1215
|
Authorization: token
|
|
@@ -1233,19 +1217,19 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1233
1217
|
});
|
|
1234
1218
|
|
|
1235
1219
|
case 13:
|
|
1236
|
-
|
|
1220
|
+
_context10.next = 15;
|
|
1237
1221
|
return getComments(tab);
|
|
1238
1222
|
|
|
1239
1223
|
case 15:
|
|
1240
1224
|
case "end":
|
|
1241
|
-
return
|
|
1225
|
+
return _context10.stop();
|
|
1242
1226
|
}
|
|
1243
1227
|
}
|
|
1244
|
-
},
|
|
1228
|
+
}, _callee10);
|
|
1245
1229
|
}));
|
|
1246
1230
|
|
|
1247
|
-
return function createComment(_x3, _x4
|
|
1248
|
-
return
|
|
1231
|
+
return function createComment(_x2, _x3, _x4) {
|
|
1232
|
+
return _ref11.apply(this, arguments);
|
|
1249
1233
|
};
|
|
1250
1234
|
}();
|
|
1251
1235
|
|
|
@@ -1302,16 +1286,16 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1302
1286
|
}, [activeTab]);
|
|
1303
1287
|
|
|
1304
1288
|
var commentRevised = /*#__PURE__*/function () {
|
|
1305
|
-
var
|
|
1289
|
+
var _ref12 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee11() {
|
|
1306
1290
|
var data;
|
|
1307
|
-
return _regenerator.default.wrap(function
|
|
1291
|
+
return _regenerator.default.wrap(function _callee11$(_context11) {
|
|
1308
1292
|
while (1) {
|
|
1309
|
-
switch (
|
|
1293
|
+
switch (_context11.prev = _context11.next) {
|
|
1310
1294
|
case 0:
|
|
1311
1295
|
data = {
|
|
1312
1296
|
commentId: comment.id
|
|
1313
1297
|
};
|
|
1314
|
-
|
|
1298
|
+
_context11.next = 3;
|
|
1315
1299
|
return _axios.default.put("".concat(process.env.REACT_APP_COMMENTS_ENDPOINT), data, {
|
|
1316
1300
|
headers: {
|
|
1317
1301
|
Authorization: sessionStorage.getItem("jwt")
|
|
@@ -1320,47 +1304,47 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1320
1304
|
|
|
1321
1305
|
case 3:
|
|
1322
1306
|
setCrossComment(false);
|
|
1323
|
-
|
|
1307
|
+
_context11.next = 6;
|
|
1324
1308
|
return getComments();
|
|
1325
1309
|
|
|
1326
1310
|
case 6:
|
|
1327
1311
|
case "end":
|
|
1328
|
-
return
|
|
1312
|
+
return _context11.stop();
|
|
1329
1313
|
}
|
|
1330
1314
|
}
|
|
1331
|
-
},
|
|
1315
|
+
}, _callee11);
|
|
1332
1316
|
}));
|
|
1333
1317
|
|
|
1334
1318
|
return function commentRevised() {
|
|
1335
|
-
return
|
|
1319
|
+
return _ref12.apply(this, arguments);
|
|
1336
1320
|
};
|
|
1337
1321
|
}();
|
|
1338
1322
|
|
|
1339
1323
|
var setAssignation = /*#__PURE__*/function () {
|
|
1340
|
-
var
|
|
1324
|
+
var _ref13 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee12(assignationType, assignationId) {
|
|
1341
1325
|
var _product$article12;
|
|
1342
1326
|
|
|
1343
1327
|
var concept, productTemp, data;
|
|
1344
|
-
return _regenerator.default.wrap(function
|
|
1328
|
+
return _regenerator.default.wrap(function _callee12$(_context12) {
|
|
1345
1329
|
while (1) {
|
|
1346
|
-
switch (
|
|
1330
|
+
switch (_context12.prev = _context12.next) {
|
|
1347
1331
|
case 0:
|
|
1348
1332
|
concept = "";
|
|
1349
|
-
|
|
1350
|
-
|
|
1333
|
+
_context12.t0 = activeTab;
|
|
1334
|
+
_context12.next = _context12.t0 === "Ficha técnica" ? 4 : _context12.t0 === "Imágenes" ? 6 : 8;
|
|
1351
1335
|
break;
|
|
1352
1336
|
|
|
1353
1337
|
case 4:
|
|
1354
1338
|
concept = "datasheet";
|
|
1355
|
-
return
|
|
1339
|
+
return _context12.abrupt("break", 10);
|
|
1356
1340
|
|
|
1357
1341
|
case 6:
|
|
1358
1342
|
concept = "images";
|
|
1359
|
-
return
|
|
1343
|
+
return _context12.abrupt("break", 10);
|
|
1360
1344
|
|
|
1361
1345
|
case 8:
|
|
1362
1346
|
concept = "description";
|
|
1363
|
-
return
|
|
1347
|
+
return _context12.abrupt("break", 10);
|
|
1364
1348
|
|
|
1365
1349
|
case 10:
|
|
1366
1350
|
productTemp = product;
|
|
@@ -1385,14 +1369,14 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1385
1369
|
|
|
1386
1370
|
case 16:
|
|
1387
1371
|
case "end":
|
|
1388
|
-
return
|
|
1372
|
+
return _context12.stop();
|
|
1389
1373
|
}
|
|
1390
1374
|
}
|
|
1391
|
-
},
|
|
1375
|
+
}, _callee12);
|
|
1392
1376
|
}));
|
|
1393
1377
|
|
|
1394
|
-
return function setAssignation(
|
|
1395
|
-
return
|
|
1378
|
+
return function setAssignation(_x5, _x6) {
|
|
1379
|
+
return _ref13.apply(this, arguments);
|
|
1396
1380
|
};
|
|
1397
1381
|
}();
|
|
1398
1382
|
|
|
@@ -1706,20 +1690,20 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1706
1690
|
reviewed: crossComment
|
|
1707
1691
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
1708
1692
|
buttonType: "circular-button accept-button",
|
|
1709
|
-
onClick: /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
1710
|
-
return _regenerator.default.wrap(function
|
|
1693
|
+
onClick: /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee13() {
|
|
1694
|
+
return _regenerator.default.wrap(function _callee13$(_context13) {
|
|
1711
1695
|
while (1) {
|
|
1712
|
-
switch (
|
|
1696
|
+
switch (_context13.prev = _context13.next) {
|
|
1713
1697
|
case 0:
|
|
1714
1698
|
setCrossComment(true);
|
|
1715
1699
|
commentRevised();
|
|
1716
1700
|
|
|
1717
1701
|
case 2:
|
|
1718
1702
|
case "end":
|
|
1719
|
-
return
|
|
1703
|
+
return _context13.stop();
|
|
1720
1704
|
}
|
|
1721
1705
|
}
|
|
1722
|
-
},
|
|
1706
|
+
}, _callee13);
|
|
1723
1707
|
}))
|
|
1724
1708
|
})]
|
|
1725
1709
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
package/package.json
CHANGED
|
@@ -99,19 +99,21 @@ export const ProviderProductEdition = ({
|
|
|
99
99
|
const ext = e.srcElement.fileName.split(".");
|
|
100
100
|
const img = new Image();
|
|
101
101
|
img.src = e.target.result;
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
102
|
+
setTimeout(() => {
|
|
103
|
+
const width = img.width;
|
|
104
|
+
const height = img.height;
|
|
105
|
+
const newImg = {
|
|
106
|
+
action: "addImg",
|
|
107
|
+
img: {
|
|
108
|
+
src: e.target.result,
|
|
109
|
+
name: e.target.fileName,
|
|
110
|
+
ext: ext[ext.length - 1],
|
|
111
|
+
width: width,
|
|
112
|
+
height: height,
|
|
113
|
+
},
|
|
114
|
+
};
|
|
115
|
+
setImages(newImg);
|
|
116
|
+
}, 500);
|
|
115
117
|
};
|
|
116
118
|
reader.onerror = function (error) {
|
|
117
119
|
console.log("dropzoneError: ", error);
|
|
@@ -88,23 +88,25 @@ export const RetailerProductEdition = ({
|
|
|
88
88
|
acceptedFiles.map((file) => {
|
|
89
89
|
const reader = new FileReader();
|
|
90
90
|
reader.fileName = file.name;
|
|
91
|
-
reader.onload =
|
|
91
|
+
reader.onload = function (e) {
|
|
92
92
|
const ext = e.srcElement.fileName.split(".");
|
|
93
93
|
const img = new Image();
|
|
94
94
|
img.src = e.target.result;
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
95
|
+
setTimeout(() => {
|
|
96
|
+
const width = img.width;
|
|
97
|
+
const height = img.height;
|
|
98
|
+
const newImg = {
|
|
99
|
+
action: "addImg",
|
|
100
|
+
img: {
|
|
101
|
+
src: e.target.result,
|
|
102
|
+
name: e.target.fileName,
|
|
103
|
+
ext: ext[ext.length - 1],
|
|
104
|
+
width: width,
|
|
105
|
+
height: height,
|
|
106
|
+
},
|
|
107
|
+
};
|
|
108
|
+
setImages(newImg);
|
|
109
|
+
}, 500);
|
|
108
110
|
};
|
|
109
111
|
reader.onerror = function (error) {
|
|
110
112
|
console.log("dropzoneError: ", error);
|