contentoh-components-library 21.4.66 → 21.4.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/atoms/Avatar/index.js +2 -3
- package/dist/components/atoms/CheckBox/styles.js +1 -1
- package/dist/components/atoms/InputFormatter/styles.js +1 -1
- package/dist/components/atoms/SliderToolTip/styles.js +1 -1
- package/dist/components/molecules/BoxAttribute/index.js +3 -3
- package/dist/components/molecules/BoxAttribute/styles.js +1 -1
- package/dist/components/molecules/BoxButtons/index.js +1 -0
- package/dist/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/dist/components/molecules/HeaderTop/index.js +11 -68
- package/dist/components/molecules/SignInLogin/index.js +28 -36
- package/dist/components/molecules/StripeCardSelector/CardSelector.stories.js +2 -1
- package/dist/components/organisms/Chat/Chat.stories.js +8 -27
- package/dist/components/organisms/Chat/ContainerItems/index.js +3 -19
- package/dist/components/organisms/Chat/ContainerItems/styles.js +1 -1
- package/dist/components/organisms/Chat/ContentChat/index.js +197 -350
- package/dist/components/organisms/Chat/Footer/index.js +39 -48
- package/dist/components/organisms/Chat/index.js +4 -49
- package/dist/components/organisms/Chat/styles.js +1 -1
- package/dist/components/organisms/DashboardMetric/index.js +6 -12
- package/dist/components/organisms/FullProductNameHeader/index.js +2 -2
- package/dist/components/organisms/InputGroup/index.js +10 -1
- package/dist/components/organisms/Modal/styles.js +1 -1
- package/dist/components/pages/Dashboard/Dashboard.stories.js +36 -33
- package/dist/components/pages/Dashboard/index.js +14 -56
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +3 -3
- package/dist/components/pages/ProviderProductEdition/index.js +144 -120
- package/dist/components/pages/ProviderProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +3 -7
- package/dist/components/pages/RetailerProductEdition/index.js +433 -312
- package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/utils.js +2 -61
- package/dist/global-files/data.js +3 -11
- package/dist/global-files/variables.js +1 -5
- package/dist/index.js +58 -201
- package/package.json +1 -2
- package/src/components/atoms/Avatar/index.js +2 -8
- package/src/components/atoms/CheckBox/styles.js +0 -2
- package/src/components/atoms/InputFormatter/styles.js +1 -2
- package/src/components/atoms/SliderToolTip/styles.js +1 -1
- package/src/components/atoms/TabSection/styles.js +1 -1
- package/src/components/molecules/BoxAttribute/index.js +25 -32
- package/src/components/molecules/BoxAttribute/styles.js +1 -1
- package/src/components/molecules/BoxButtons/index.js +22 -23
- package/src/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/src/components/molecules/HeaderTop/index.js +6 -52
- package/src/components/molecules/SignInLogin/index.js +11 -11
- package/src/components/molecules/StripeCardSelector/CardSelector.stories.js +2 -1
- package/src/components/molecules/TagAndInput/index.js +5 -6
- package/src/components/organisms/Chat/Chat.stories.js +7 -27
- package/src/components/organisms/Chat/ContainerItems/index.js +2 -18
- package/src/components/organisms/Chat/ContainerItems/styles.js +2 -14
- package/src/components/organisms/Chat/ContentChat/index.js +12 -88
- package/src/components/organisms/Chat/Footer/index.js +0 -11
- package/src/components/organisms/Chat/index.js +4 -46
- package/src/components/organisms/Chat/styles.js +0 -4
- package/src/components/organisms/DashboardMetric/index.js +3 -6
- package/src/components/organisms/FullProductNameHeader/index.js +1 -1
- package/src/components/organisms/InputGroup/index.js +119 -131
- package/src/components/organisms/Modal/styles.js +1 -4
- package/src/components/organisms/OrderDetail/utils/Table/utils.js +16 -6
- package/src/components/pages/Dashboard/Dashboard.stories.js +38 -33
- package/src/components/pages/Dashboard/index.js +39 -73
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +83 -100
- package/src/components/pages/ProviderProductEdition/index.js +131 -100
- package/src/components/pages/ProviderProductEdition/styles.js +1 -5
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +2 -6
- package/src/components/pages/RetailerProductEdition/index.js +309 -147
- package/src/components/pages/RetailerProductEdition/styles.js +0 -4
- package/src/components/pages/RetailerProductEdition/utils.js +0 -37
- package/src/global-files/data.js +13 -7
- package/src/global-files/variables.js +0 -4
- package/src/index.js +0 -11
- package/dist/assets/fonts/roboto/LICENSE.txt +0 -202
- package/dist/components/atoms/ImageCarousel/ImgeSlider.stories.js +0 -90
- package/dist/components/atoms/ImageCarousel/index.js +0 -120
- package/dist/components/atoms/ImageCarousel/styles.js +0 -18
- package/dist/components/atoms/PercentTag/PercentTag.stories.js +0 -31
- package/dist/components/atoms/PercentTag/index.js +0 -23
- package/dist/components/atoms/PercentTag/styles.js +0 -22
- package/dist/components/atoms/RatingStars/RatingStars.stories.js +0 -30
- package/dist/components/atoms/RatingStars/index.js +0 -53
- package/dist/components/atoms/RatingStars/styles.js +0 -18
- package/dist/components/atoms/RetailerCatalog/RetailerCatalog.stories.js +0 -48
- package/dist/components/atoms/RetailerCatalog/index.js +0 -69
- package/dist/components/atoms/RetailerCatalog/styles.js +0 -20
- package/dist/components/atoms/RetailerOption/RetailerOption.stories.js +0 -33
- package/dist/components/atoms/RetailerOption/index.js +0 -62
- package/dist/components/atoms/RetailerOption/styles.js +0 -20
- package/dist/components/atoms/RetailersList/RetailersList.stories.js +0 -45
- package/dist/components/atoms/RetailersList/index.js +0 -46
- package/dist/components/atoms/RetailersList/styles.js +0 -18
- package/dist/components/atoms/UserCatalog/UserCatalog.stories.js +0 -73
- package/dist/components/atoms/UserCatalog/index.js +0 -101
- package/dist/components/atoms/UserCatalog/styles.js +0 -18
- package/dist/components/atoms/UserOption/UserOption.stories.js +0 -40
- package/dist/components/atoms/UserOption/index.js +0 -130
- package/dist/components/atoms/UserOption/styles.js +0 -20
- package/dist/components/atoms/UserSelector/UserSelector.stories.js +0 -40
- package/dist/components/atoms/UserSelector/index.js +0 -98
- package/dist/components/atoms/UserSelector/styles.js +0 -32
- package/dist/components/molecules/GridItem/GridItem.stories.js +0 -123
- package/dist/components/molecules/GridItem/index.js +0 -152
- package/dist/components/molecules/GridItem/styles.js +0 -20
- package/dist/components/molecules/HeaderItem/ColumnItem.js +0 -23
- package/dist/components/molecules/HeaderItem/HeaderItem.stories.js +0 -70
- package/dist/components/molecules/HeaderItem/index.js +0 -42
- package/dist/components/molecules/HeaderItem/styles.js +0 -30
- package/dist/components/molecules/RowItem/ColumnItem.js +0 -23
- package/dist/components/molecules/RowItem/RowItem.stories.js +0 -5242
- package/dist/components/molecules/RowItem/index.js +0 -58
- package/dist/components/molecules/RowItem/styles.js +0 -30
- package/dist/components/organisms/GridProducts/GridProducts.stories.js +0 -5097
- package/dist/components/organisms/GridProducts/index.js +0 -63
- package/dist/components/organisms/GridProducts/styles.js +0 -18
- package/dist/components/organisms/GridProducts/utils.js +0 -149
- package/src/components/atoms/ImageCarousel/ImgeSlider.stories.js +0 -76
- package/src/components/atoms/ImageCarousel/index.js +0 -103
- package/src/components/atoms/ImageCarousel/styles.js +0 -79
- package/src/components/atoms/PercentTag/PercentTag.stories.js +0 -7
- package/src/components/atoms/PercentTag/index.js +0 -9
- package/src/components/atoms/PercentTag/styles.js +0 -69
- package/src/components/atoms/RatingStars/RatingStars.stories.js +0 -10
- package/src/components/atoms/RatingStars/index.js +0 -31
- package/src/components/atoms/RatingStars/styles.js +0 -28
- package/src/components/atoms/RetailerCatalog/RetailerCatalog.stories.js +0 -36
- package/src/components/atoms/RetailerCatalog/index.js +0 -49
- package/src/components/atoms/RetailerCatalog/styles.js +0 -30
- package/src/components/atoms/RetailerOption/RetailerOption.stories.js +0 -15
- package/src/components/atoms/RetailerOption/index.js +0 -53
- package/src/components/atoms/RetailerOption/styles.js +0 -41
- package/src/components/atoms/RetailersList/RetailersList.stories.js +0 -33
- package/src/components/atoms/RetailersList/index.js +0 -20
- package/src/components/atoms/RetailersList/styles.js +0 -19
- package/src/components/atoms/UserCatalog/UserCatalog.stories.js +0 -67
- package/src/components/atoms/UserCatalog/index.js +0 -100
- package/src/components/atoms/UserCatalog/styles.js +0 -24
- package/src/components/atoms/UserOption/UserOption.stories.js +0 -25
- package/src/components/atoms/UserOption/index.js +0 -95
- package/src/components/atoms/UserOption/styles.js +0 -61
- package/src/components/atoms/UserSelector/UserSelector.stories.js +0 -25
- package/src/components/atoms/UserSelector/index.js +0 -86
- package/src/components/atoms/UserSelector/styles.js +0 -55
- package/src/components/molecules/GridItem/GridItem.stories.js +0 -126
- package/src/components/molecules/GridItem/index.js +0 -105
- package/src/components/molecules/GridItem/styles.js +0 -104
- package/src/components/molecules/HeaderItem/ColumnItem.js +0 -9
- package/src/components/molecules/HeaderItem/HeaderItem.stories.js +0 -24
- package/src/components/molecules/HeaderItem/index.js +0 -26
- package/src/components/molecules/HeaderItem/styles.js +0 -27
- package/src/components/molecules/RowItem/ColumnItem.js +0 -9
- package/src/components/molecules/RowItem/RowItem.stories.js +0 -5660
- package/src/components/molecules/RowItem/index.js +0 -45
- package/src/components/molecules/RowItem/styles.js +0 -40
- package/src/components/organisms/GridProducts/GridProducts.stories.js +0 -5485
- package/src/components/organisms/GridProducts/index.js +0 -50
- package/src/components/organisms/GridProducts/styles.js +0 -14
- package/src/components/organisms/GridProducts/utils.js +0 -111
|
@@ -61,6 +61,8 @@ var _index = require("../../molecules/TagAndInput/index");
|
|
|
61
61
|
|
|
62
62
|
var _GeneralButton = require("../../atoms/GeneralButton");
|
|
63
63
|
|
|
64
|
+
var _Commentary = require("../../atoms/Commentary");
|
|
65
|
+
|
|
64
66
|
var _GenericModal = require("../../atoms/GenericModal");
|
|
65
67
|
|
|
66
68
|
var _ScreenHeader = require("../../atoms/ScreenHeader");
|
|
@@ -69,16 +71,14 @@ var _Loading = require("../../atoms/Loading");
|
|
|
69
71
|
|
|
70
72
|
var _genericModalCheck = _interopRequireDefault(require("../../../assets/images/genericModal/genericModalCheck.svg"));
|
|
71
73
|
|
|
74
|
+
var _errorModal = _interopRequireDefault(require("../../../assets/images/genericModal/errorModal.svg"));
|
|
75
|
+
|
|
72
76
|
var _VersionSelector = require("../../organisms/VersionSelector");
|
|
73
77
|
|
|
74
78
|
var _customHooks = require("../../../global-files/customHooks");
|
|
75
79
|
|
|
76
80
|
var _utils = require("./utils");
|
|
77
81
|
|
|
78
|
-
var _Modal = require("../../organisms/Modal");
|
|
79
|
-
|
|
80
|
-
var _ButtonV = require("../../atoms/ButtonV2");
|
|
81
|
-
|
|
82
82
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
83
83
|
|
|
84
84
|
var reducerImages = function reducerImages(state, action) {
|
|
@@ -202,7 +202,7 @@ var myBucket = new _awsSdk.default.S3({
|
|
|
202
202
|
});
|
|
203
203
|
|
|
204
204
|
var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
205
|
-
var _product$retailers, _location$state,
|
|
205
|
+
var _product$retailers, _location$state, _product$services2, _datasheets$, _datasheets$$data, _product$article18, _comment$message;
|
|
206
206
|
|
|
207
207
|
var tabsSections = _ref.tabsSections,
|
|
208
208
|
_ref$productSelected = _ref.productSelected,
|
|
@@ -252,11 +252,6 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
252
252
|
showModal = _useState14[0],
|
|
253
253
|
setShowModal = _useState14[1];
|
|
254
254
|
|
|
255
|
-
var _useState15 = (0, _react.useState)(false),
|
|
256
|
-
_useState16 = (0, _slicedToArray2.default)(_useState15, 2),
|
|
257
|
-
showRejectModal = _useState16[0],
|
|
258
|
-
setShowRejectModal = _useState16[1];
|
|
259
|
-
|
|
260
255
|
var _useDropzone = (0, _reactDropzone.useDropzone)({
|
|
261
256
|
accept: "image/*",
|
|
262
257
|
noKeyboard: true,
|
|
@@ -301,149 +296,149 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
301
296
|
getRootProps = _useDropzone.getRootProps,
|
|
302
297
|
getInputProps = _useDropzone.getInputProps;
|
|
303
298
|
|
|
299
|
+
var _useState15 = (0, _react.useState)([]),
|
|
300
|
+
_useState16 = (0, _slicedToArray2.default)(_useState15, 2),
|
|
301
|
+
updatedDatasheets = _useState16[0],
|
|
302
|
+
setUpdatedDatasheets = _useState16[1];
|
|
303
|
+
|
|
304
304
|
var _useState17 = (0, _react.useState)([]),
|
|
305
305
|
_useState18 = (0, _slicedToArray2.default)(_useState17, 2),
|
|
306
|
-
|
|
307
|
-
|
|
306
|
+
updatedDescriptions = _useState18[0],
|
|
307
|
+
setUpdatedDescriptions = _useState18[1];
|
|
308
308
|
|
|
309
|
-
var _useState19 = (0, _react.useState)(
|
|
309
|
+
var _useState19 = (0, _react.useState)(false),
|
|
310
310
|
_useState20 = (0, _slicedToArray2.default)(_useState19, 2),
|
|
311
|
-
|
|
312
|
-
|
|
311
|
+
imagesUploaded = _useState20[0],
|
|
312
|
+
setImagesUploaded = _useState20[1];
|
|
313
313
|
|
|
314
|
-
var _useState21 = (0, _react.useState)(
|
|
314
|
+
var _useState21 = (0, _react.useState)(),
|
|
315
315
|
_useState22 = (0, _slicedToArray2.default)(_useState21, 2),
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
var _useState23 = (0, _react.useState)(),
|
|
320
|
-
_useState24 = (0, _slicedToArray2.default)(_useState23, 2),
|
|
321
|
-
dataImages = _useState24[0],
|
|
322
|
-
setDataImages = _useState24[1];
|
|
316
|
+
dataImages = _useState22[0],
|
|
317
|
+
setDataImages = _useState22[1];
|
|
323
318
|
|
|
324
|
-
var
|
|
319
|
+
var _useState23 = (0, _react.useState)(new Array(product === null || product === void 0 ? void 0 : (_product$retailers = product.retailers) === null || _product$retailers === void 0 ? void 0 : _product$retailers.length).fill({
|
|
325
320
|
percentage: 0
|
|
326
321
|
})),
|
|
327
|
-
|
|
328
|
-
percentages =
|
|
329
|
-
setPercentages =
|
|
322
|
+
_useState24 = (0, _slicedToArray2.default)(_useState23, 2),
|
|
323
|
+
percentages = _useState24[0],
|
|
324
|
+
setPercentages = _useState24[1]; // const [percentages, setPercentages] = useState([{ retailers: {} }]);
|
|
330
325
|
|
|
331
326
|
|
|
332
|
-
var
|
|
327
|
+
var _useState25 = (0, _react.useState)(0),
|
|
328
|
+
_useState26 = (0, _slicedToArray2.default)(_useState25, 2),
|
|
329
|
+
activePercentage = _useState26[0],
|
|
330
|
+
setActivePercentage = _useState26[1];
|
|
331
|
+
|
|
332
|
+
var _useState27 = (0, _react.useState)({}),
|
|
333
333
|
_useState28 = (0, _slicedToArray2.default)(_useState27, 2),
|
|
334
|
-
|
|
335
|
-
|
|
334
|
+
activeRetailer = _useState28[0],
|
|
335
|
+
setActiveRetailer = _useState28[1];
|
|
336
336
|
|
|
337
|
-
var _useState29 = (0, _react.useState)(
|
|
337
|
+
var _useState29 = (0, _react.useState)([]),
|
|
338
338
|
_useState30 = (0, _slicedToArray2.default)(_useState29, 2),
|
|
339
|
-
|
|
340
|
-
|
|
339
|
+
services = _useState30[0],
|
|
340
|
+
setServices = _useState30[1];
|
|
341
341
|
|
|
342
342
|
var _useState31 = (0, _react.useState)([]),
|
|
343
343
|
_useState32 = (0, _slicedToArray2.default)(_useState31, 2),
|
|
344
|
-
|
|
345
|
-
|
|
344
|
+
servicesData = _useState32[0],
|
|
345
|
+
setServicesData = _useState32[1];
|
|
346
346
|
|
|
347
|
-
var _useState33 = (0, _react.useState)(
|
|
347
|
+
var _useState33 = (0, _react.useState)(""),
|
|
348
348
|
_useState34 = (0, _slicedToArray2.default)(_useState33, 2),
|
|
349
|
-
|
|
350
|
-
|
|
349
|
+
message = _useState34[0],
|
|
350
|
+
setMessage = _useState34[1];
|
|
351
351
|
|
|
352
|
-
var _useState35 = (0, _react.useState)(""),
|
|
352
|
+
var _useState35 = (0, _react.useState)(JSON.parse(sessionStorage.getItem("productSelected")) ? JSON.parse(sessionStorage.getItem("productSelected")) : productSelected),
|
|
353
353
|
_useState36 = (0, _slicedToArray2.default)(_useState35, 2),
|
|
354
|
-
|
|
355
|
-
|
|
354
|
+
product = _useState36[0],
|
|
355
|
+
setProduct = _useState36[1];
|
|
356
356
|
|
|
357
|
-
var _useState37 = (0, _react.useState)(
|
|
357
|
+
var _useState37 = (0, _react.useState)(null),
|
|
358
358
|
_useState38 = (0, _slicedToArray2.default)(_useState37, 2),
|
|
359
|
-
|
|
360
|
-
|
|
359
|
+
icon = _useState38[0],
|
|
360
|
+
setIcon = _useState38[1];
|
|
361
361
|
|
|
362
|
-
var _useState39 = (0, _react.useState)(null),
|
|
362
|
+
var _useState39 = (0, _react.useState)(product === null || product === void 0 ? void 0 : product.version),
|
|
363
363
|
_useState40 = (0, _slicedToArray2.default)(_useState39, 2),
|
|
364
|
-
|
|
365
|
-
|
|
364
|
+
version = _useState40[0],
|
|
365
|
+
setVersion = _useState40[1];
|
|
366
366
|
|
|
367
|
-
var _useState41 = (0, _react.useState)(
|
|
367
|
+
var _useState41 = (0, _react.useState)({}),
|
|
368
368
|
_useState42 = (0, _slicedToArray2.default)(_useState41, 2),
|
|
369
|
-
|
|
370
|
-
|
|
369
|
+
comments = _useState42[0],
|
|
370
|
+
setComments = _useState42[1];
|
|
371
371
|
|
|
372
|
-
var _useState43 = (0, _react.useState)(
|
|
372
|
+
var _useState43 = (0, _react.useState)(""),
|
|
373
373
|
_useState44 = (0, _slicedToArray2.default)(_useState43, 2),
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
var _useState45 = (0, _react.useState)(""),
|
|
378
|
-
_useState46 = (0, _slicedToArray2.default)(_useState45, 2),
|
|
379
|
-
comment = _useState46[0],
|
|
380
|
-
setComment = _useState46[1];
|
|
374
|
+
comment = _useState44[0],
|
|
375
|
+
setComment = _useState44[1];
|
|
381
376
|
|
|
382
|
-
var
|
|
377
|
+
var _useState45 = (0, _react.useState)({
|
|
383
378
|
"Ficha técnica": 0,
|
|
384
379
|
Descripción: 0,
|
|
385
380
|
Imágenes: 0
|
|
386
381
|
}),
|
|
382
|
+
_useState46 = (0, _slicedToArray2.default)(_useState45, 2),
|
|
383
|
+
requiredNull = _useState46[0],
|
|
384
|
+
setRequiredNull = _useState46[1];
|
|
385
|
+
|
|
386
|
+
var _useState47 = (0, _react.useState)(false),
|
|
387
387
|
_useState48 = (0, _slicedToArray2.default)(_useState47, 2),
|
|
388
|
-
|
|
389
|
-
|
|
388
|
+
crossComment = _useState48[0],
|
|
389
|
+
setCrossComment = _useState48[1];
|
|
390
390
|
|
|
391
|
-
var _useState49 = (0, _react.useState)(
|
|
391
|
+
var _useState49 = (0, _react.useState)([]),
|
|
392
392
|
_useState50 = (0, _slicedToArray2.default)(_useState49, 2),
|
|
393
|
-
|
|
394
|
-
|
|
393
|
+
userGroups = _useState50[0],
|
|
394
|
+
setUserGroups = _useState50[1];
|
|
395
395
|
|
|
396
|
-
var _useState51 = (0, _react.useState)(
|
|
396
|
+
var _useState51 = (0, _react.useState)({}),
|
|
397
397
|
_useState52 = (0, _slicedToArray2.default)(_useState51, 2),
|
|
398
|
-
|
|
399
|
-
|
|
398
|
+
assig = _useState52[0],
|
|
399
|
+
setAssig = _useState52[1];
|
|
400
400
|
|
|
401
|
-
var _useState53 = (0, _react.useState)(
|
|
401
|
+
var _useState53 = (0, _react.useState)([]),
|
|
402
402
|
_useState54 = (0, _slicedToArray2.default)(_useState53, 2),
|
|
403
|
-
|
|
404
|
-
|
|
403
|
+
selectedImages = _useState54[0],
|
|
404
|
+
setSelectedImages = _useState54[1];
|
|
405
405
|
|
|
406
406
|
var _useState55 = (0, _react.useState)([]),
|
|
407
407
|
_useState56 = (0, _slicedToArray2.default)(_useState55, 2),
|
|
408
|
-
|
|
409
|
-
|
|
408
|
+
componentsArray = _useState56[0],
|
|
409
|
+
setComponentsArray = _useState56[1];
|
|
410
410
|
|
|
411
|
-
var _useState57 = (0, _react.useState)(
|
|
411
|
+
var _useState57 = (0, _react.useState)(false),
|
|
412
412
|
_useState58 = (0, _slicedToArray2.default)(_useState57, 2),
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
var _useState59 = (0, _react.useState)(false),
|
|
417
|
-
_useState60 = (0, _slicedToArray2.default)(_useState59, 2),
|
|
418
|
-
checkAll = _useState60[0],
|
|
419
|
-
setCheckAll = _useState60[1];
|
|
413
|
+
checkAll = _useState58[0],
|
|
414
|
+
setCheckAll = _useState58[1];
|
|
420
415
|
|
|
421
416
|
var isRetailer = user === null || user === void 0 ? void 0 : user.is_retailer;
|
|
422
417
|
|
|
423
|
-
var
|
|
418
|
+
var _useState59 = (0, _react.useState)(true),
|
|
419
|
+
_useState60 = (0, _slicedToArray2.default)(_useState59, 2),
|
|
420
|
+
loading = _useState60[0],
|
|
421
|
+
setLoading = _useState60[1];
|
|
422
|
+
|
|
423
|
+
var _useState61 = (0, _react.useState)("-"),
|
|
424
424
|
_useState62 = (0, _slicedToArray2.default)(_useState61, 2),
|
|
425
|
-
|
|
426
|
-
|
|
425
|
+
retailerStatus = _useState62[0],
|
|
426
|
+
setRetailerStatus = _useState62[1];
|
|
427
427
|
|
|
428
|
-
var _useState63 = (0, _react.useState)(
|
|
428
|
+
var _useState63 = (0, _react.useState)([]),
|
|
429
429
|
_useState64 = (0, _slicedToArray2.default)(_useState63, 2),
|
|
430
|
-
|
|
431
|
-
|
|
430
|
+
statusArray = _useState64[0],
|
|
431
|
+
setStatusArray = _useState64[1];
|
|
432
432
|
|
|
433
|
-
var _useState65 = (0, _react.useState)(
|
|
433
|
+
var _useState65 = (0, _react.useState)(null),
|
|
434
434
|
_useState66 = (0, _slicedToArray2.default)(_useState65, 2),
|
|
435
|
-
|
|
436
|
-
|
|
435
|
+
socketType = _useState66[0],
|
|
436
|
+
setSocketType = _useState66[1];
|
|
437
437
|
|
|
438
|
-
var _useState67 = (0, _react.useState)(
|
|
438
|
+
var _useState67 = (0, _react.useState)(loading),
|
|
439
439
|
_useState68 = (0, _slicedToArray2.default)(_useState67, 2),
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
var _useState69 = (0, _react.useState)(loading),
|
|
444
|
-
_useState70 = (0, _slicedToArray2.default)(_useState69, 2),
|
|
445
|
-
saving = _useState70[0],
|
|
446
|
-
setSaving = _useState70[1];
|
|
440
|
+
saving = _useState68[0],
|
|
441
|
+
setSaving = _useState68[1];
|
|
447
442
|
|
|
448
443
|
var _useCloseModal = (0, _customHooks.useCloseModal)("version-selector"),
|
|
449
444
|
_useCloseModal2 = (0, _slicedToArray2.default)(_useCloseModal, 2),
|
|
@@ -452,55 +447,35 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
452
447
|
|
|
453
448
|
var shotThd = [58, 59, 60, 61].includes(activeRetailer.id);
|
|
454
449
|
|
|
455
|
-
var
|
|
450
|
+
var _useState69 = (0, _react.useState)(null),
|
|
451
|
+
_useState70 = (0, _slicedToArray2.default)(_useState69, 2),
|
|
452
|
+
auditableVersion = _useState70[0],
|
|
453
|
+
setAuditableVersion = _useState70[1];
|
|
454
|
+
|
|
455
|
+
var _useState71 = (0, _react.useState)([]),
|
|
456
456
|
_useState72 = (0, _slicedToArray2.default)(_useState71, 2),
|
|
457
|
-
|
|
458
|
-
|
|
457
|
+
auditServices = _useState72[0],
|
|
458
|
+
setAuditServices = _useState72[1];
|
|
459
459
|
|
|
460
460
|
var _useState73 = (0, _react.useState)([]),
|
|
461
461
|
_useState74 = (0, _slicedToArray2.default)(_useState73, 2),
|
|
462
|
-
|
|
463
|
-
|
|
462
|
+
auditDatasheets = _useState74[0],
|
|
463
|
+
setAuditDatasheets = _useState74[1];
|
|
464
464
|
|
|
465
465
|
var _useState75 = (0, _react.useState)([]),
|
|
466
466
|
_useState76 = (0, _slicedToArray2.default)(_useState75, 2),
|
|
467
|
-
|
|
468
|
-
|
|
467
|
+
auditDescriptions = _useState76[0],
|
|
468
|
+
setAuditDescriptions = _useState76[1];
|
|
469
469
|
|
|
470
470
|
var _useState77 = (0, _react.useState)([]),
|
|
471
471
|
_useState78 = (0, _slicedToArray2.default)(_useState77, 2),
|
|
472
|
-
|
|
473
|
-
|
|
472
|
+
auditImages = _useState78[0],
|
|
473
|
+
setAuditImages = _useState78[1];
|
|
474
474
|
|
|
475
|
-
var _useState79 = (0, _react.useState)(
|
|
475
|
+
var _useState79 = (0, _react.useState)(false),
|
|
476
476
|
_useState80 = (0, _slicedToArray2.default)(_useState79, 2),
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
var _useState81 = (0, _react.useState)(false),
|
|
481
|
-
_useState82 = (0, _slicedToArray2.default)(_useState81, 2),
|
|
482
|
-
compare = _useState82[0],
|
|
483
|
-
setCompare = _useState82[1];
|
|
484
|
-
|
|
485
|
-
var _useState83 = (0, _react.useState)(false),
|
|
486
|
-
_useState84 = (0, _slicedToArray2.default)(_useState83, 2),
|
|
487
|
-
valRejAll = _useState84[0],
|
|
488
|
-
setValRejAll = _useState84[1];
|
|
489
|
-
|
|
490
|
-
var _useState85 = (0, _react.useState)([]),
|
|
491
|
-
_useState86 = (0, _slicedToArray2.default)(_useState85, 2),
|
|
492
|
-
desc = _useState86[0],
|
|
493
|
-
setDesc = _useState86[1];
|
|
494
|
-
|
|
495
|
-
var _useState87 = (0, _react.useState)([]),
|
|
496
|
-
_useState88 = (0, _slicedToArray2.default)(_useState87, 2),
|
|
497
|
-
fich = _useState88[0],
|
|
498
|
-
setFich = _useState88[1];
|
|
499
|
-
|
|
500
|
-
var _useState89 = (0, _react.useState)([]),
|
|
501
|
-
_useState90 = (0, _slicedToArray2.default)(_useState89, 2),
|
|
502
|
-
imag = _useState90[0],
|
|
503
|
-
setImag = _useState90[1];
|
|
477
|
+
compare = _useState80[0],
|
|
478
|
+
setCompare = _useState80[1];
|
|
504
479
|
|
|
505
480
|
(0, _react.useEffect)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
506
481
|
var _ref3, id_article;
|
|
@@ -1040,7 +1015,6 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1040
1015
|
};
|
|
1041
1016
|
});
|
|
1042
1017
|
setSocketType(imageInputs);
|
|
1043
|
-
console.log(images);
|
|
1044
1018
|
}, [images]);
|
|
1045
1019
|
var updateImages = (0, _react.useCallback)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9() {
|
|
1046
1020
|
var _images$values3, _images$attrForImgs, _product$article14, _data$articleData, _data$articleData2, _data$updateImages;
|
|
@@ -1343,11 +1317,84 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1343
1317
|
default:
|
|
1344
1318
|
break;
|
|
1345
1319
|
}
|
|
1346
|
-
};
|
|
1320
|
+
}; // const sendToFacilitator = async (result) => {
|
|
1321
|
+
// setLoading(true);
|
|
1322
|
+
// try {
|
|
1323
|
+
// let concept = getConcept(activeTab);
|
|
1324
|
+
// const productTemp = { ...product };
|
|
1325
|
+
// const evalStatus = retailerStatus;
|
|
1326
|
+
// const articleId = product.article.id_article;
|
|
1327
|
+
// const orderId = product.orderId;
|
|
1328
|
+
// // const body = {
|
|
1329
|
+
// // orderArticleRetailers: [
|
|
1330
|
+
// // { orderId, articleId, retailersIds: [activeRetailer.id] },
|
|
1331
|
+
// // ],
|
|
1332
|
+
// // isAproved: false,
|
|
1333
|
+
// // service: concept,
|
|
1334
|
+
// // };
|
|
1335
|
+
// const body = {
|
|
1336
|
+
// articleId: product.article.id_article,
|
|
1337
|
+
// orderId: product.orderId,
|
|
1338
|
+
// concept: concept,
|
|
1339
|
+
// result: result,
|
|
1340
|
+
// evalStatus: evalStatus,
|
|
1341
|
+
// retailerId: activeRetailer.id,
|
|
1342
|
+
// };
|
|
1343
|
+
// let res;
|
|
1344
|
+
// let message;
|
|
1345
|
+
// if (result) {
|
|
1346
|
+
// body.isAproved = result === "A";
|
|
1347
|
+
// res = await axios.put(
|
|
1348
|
+
// `${process.env.REACT_APP_EVALUATION_ENDPOINT}`,
|
|
1349
|
+
// body,
|
|
1350
|
+
// {
|
|
1351
|
+
// headers: {
|
|
1352
|
+
// Authorization: token,
|
|
1353
|
+
// },
|
|
1354
|
+
// }
|
|
1355
|
+
// );
|
|
1356
|
+
// console.log(JSON.parse(res.data.body), "res");
|
|
1357
|
+
// getServices();
|
|
1358
|
+
// } else {
|
|
1359
|
+
// const specialistDone = ["RC", "RA", "CA"].includes(evalStatus);
|
|
1360
|
+
// if (specialistDone) {
|
|
1361
|
+
// message = `${activeTab} enviada a facilitador`;
|
|
1362
|
+
// getSectionIcon();
|
|
1363
|
+
// } else if (["IE", "AC", "RP", "RCA"].includes(evalStatus)) {
|
|
1364
|
+
// message = "Evaluación enviada";
|
|
1365
|
+
// getSectionIcon();
|
|
1366
|
+
// }
|
|
1367
|
+
// res = await axios.put(
|
|
1368
|
+
// `${process.env.REACT_APP_EVALUATION_ENDPOINT}`,
|
|
1369
|
+
// body,
|
|
1370
|
+
// {
|
|
1371
|
+
// headers: {
|
|
1372
|
+
// Authorization: token,
|
|
1373
|
+
// },
|
|
1374
|
+
// }
|
|
1375
|
+
// );
|
|
1376
|
+
// }
|
|
1377
|
+
// if (res.data.statusCode === 200) {
|
|
1378
|
+
// const response = JSON.parse(res.data.body)?.successfulData;
|
|
1379
|
+
// const statusObject =
|
|
1380
|
+
// response[`${orderId}-${articleId}-${activeRetailer.id}`];
|
|
1381
|
+
// productTemp.status = statusObject["generalStatus"];
|
|
1382
|
+
// productTemp[`${concept}_status`] = statusObject[`${concept}Status`];
|
|
1383
|
+
// await loadData();
|
|
1384
|
+
// if (message) setMessage(message);
|
|
1385
|
+
// sessionStorage.setItem("productSelected", JSON.stringify(productTemp));
|
|
1386
|
+
// setProduct(productTemp);
|
|
1387
|
+
// }
|
|
1388
|
+
// } catch (error) {
|
|
1389
|
+
// console.log(error);
|
|
1390
|
+
// }
|
|
1391
|
+
// setLoading(false);
|
|
1392
|
+
// };
|
|
1393
|
+
|
|
1347
1394
|
|
|
1348
1395
|
var sendToFacilitator = /*#__PURE__*/function () {
|
|
1349
1396
|
var _ref14 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee11(result) {
|
|
1350
|
-
var concept, productTemp, evalStatus, articleId, orderId,
|
|
1397
|
+
var concept, productTemp, evalStatus, articleId, orderId, data, res, _message, specialistDone, _JSON$parse5, newStatus, newOrderStatus, newArticleStatus;
|
|
1351
1398
|
|
|
1352
1399
|
return _regenerator.default.wrap(function _callee11$(_context11) {
|
|
1353
1400
|
while (1) {
|
|
@@ -1360,24 +1407,22 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1360
1407
|
evalStatus = retailerStatus;
|
|
1361
1408
|
articleId = product.article.id_article;
|
|
1362
1409
|
orderId = product.orderId;
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
isAproved: false,
|
|
1370
|
-
service: concept
|
|
1410
|
+
data = {
|
|
1411
|
+
articleId: articleId,
|
|
1412
|
+
orderId: orderId,
|
|
1413
|
+
concept: concept,
|
|
1414
|
+
evalStatus: evalStatus,
|
|
1415
|
+
retailerId: activeRetailer.id
|
|
1371
1416
|
};
|
|
1372
1417
|
|
|
1373
1418
|
if (!result) {
|
|
1374
|
-
_context11.next =
|
|
1419
|
+
_context11.next = 16;
|
|
1375
1420
|
break;
|
|
1376
1421
|
}
|
|
1377
1422
|
|
|
1378
|
-
|
|
1423
|
+
data.result = result;
|
|
1379
1424
|
_context11.next = 12;
|
|
1380
|
-
return _axios.default.
|
|
1425
|
+
return _axios.default.put("".concat(process.env.REACT_APP_EVALUATION_ENDPOINT), data, {
|
|
1381
1426
|
headers: {
|
|
1382
1427
|
Authorization: token
|
|
1383
1428
|
}
|
|
@@ -1385,12 +1430,11 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1385
1430
|
|
|
1386
1431
|
case 12:
|
|
1387
1432
|
res = _context11.sent;
|
|
1388
|
-
console.log(JSON.parse(res.data.body), "res");
|
|
1389
1433
|
getServices();
|
|
1390
|
-
_context11.next =
|
|
1434
|
+
_context11.next = 21;
|
|
1391
1435
|
break;
|
|
1392
1436
|
|
|
1393
|
-
case
|
|
1437
|
+
case 16:
|
|
1394
1438
|
specialistDone = ["RC", "RA", "CA"].includes(evalStatus);
|
|
1395
1439
|
|
|
1396
1440
|
if (specialistDone) {
|
|
@@ -1401,71 +1445,51 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1401
1445
|
getSectionIcon();
|
|
1402
1446
|
}
|
|
1403
1447
|
|
|
1404
|
-
_context11.next =
|
|
1405
|
-
return _axios.default.
|
|
1448
|
+
_context11.next = 20;
|
|
1449
|
+
return _axios.default.put("".concat(process.env.REACT_APP_SEND_EVAL), data, {
|
|
1406
1450
|
headers: {
|
|
1407
1451
|
Authorization: token
|
|
1408
1452
|
}
|
|
1409
1453
|
});
|
|
1410
1454
|
|
|
1411
|
-
case
|
|
1455
|
+
case 20:
|
|
1412
1456
|
res = _context11.sent;
|
|
1413
1457
|
|
|
1414
|
-
case
|
|
1458
|
+
case 21:
|
|
1415
1459
|
if (!(res.data.statusCode === 200)) {
|
|
1416
|
-
_context11.next =
|
|
1460
|
+
_context11.next = 30;
|
|
1417
1461
|
break;
|
|
1418
1462
|
}
|
|
1419
1463
|
|
|
1420
1464
|
_JSON$parse5 = JSON.parse(res.data.body), newStatus = _JSON$parse5.newStatus, newOrderStatus = _JSON$parse5.newOrderStatus, newArticleStatus = _JSON$parse5.newArticleStatus;
|
|
1421
|
-
messageToChat = (0, _utils.createMessage)(product.retailers, activeRetailer.id, evalStatus, newStatus, activeTab);
|
|
1422
|
-
data = {
|
|
1423
|
-
paramsBody: {
|
|
1424
|
-
id: product.article.id_article,
|
|
1425
|
-
version: version,
|
|
1426
|
-
items: [{
|
|
1427
|
-
type: "status",
|
|
1428
|
-
value: messageToChat
|
|
1429
|
-
}],
|
|
1430
|
-
retailerId: activeRetailer.id,
|
|
1431
|
-
status: product.status
|
|
1432
|
-
},
|
|
1433
|
-
paramsHeader: {
|
|
1434
|
-
Authorization: token
|
|
1435
|
-
}
|
|
1436
|
-
};
|
|
1437
|
-
_context11.next = 28;
|
|
1438
|
-
return (0, _utils.sendMessage)(data);
|
|
1439
|
-
|
|
1440
|
-
case 28:
|
|
1441
1465
|
if (newOrderStatus) productTemp.status = newArticleStatus[articleId];
|
|
1442
1466
|
productTemp["".concat(concept, "_status")] = newStatus;
|
|
1443
|
-
_context11.next =
|
|
1467
|
+
_context11.next = 27;
|
|
1444
1468
|
return loadData();
|
|
1445
1469
|
|
|
1446
|
-
case
|
|
1470
|
+
case 27:
|
|
1447
1471
|
if (_message) setMessage(_message);
|
|
1448
1472
|
sessionStorage.setItem("productSelected", JSON.stringify(productTemp));
|
|
1449
1473
|
setProduct(productTemp);
|
|
1450
1474
|
|
|
1451
|
-
case
|
|
1452
|
-
_context11.next =
|
|
1475
|
+
case 30:
|
|
1476
|
+
_context11.next = 35;
|
|
1453
1477
|
break;
|
|
1454
1478
|
|
|
1455
|
-
case
|
|
1456
|
-
_context11.prev =
|
|
1479
|
+
case 32:
|
|
1480
|
+
_context11.prev = 32;
|
|
1457
1481
|
_context11.t0 = _context11["catch"](1);
|
|
1458
1482
|
console.log(_context11.t0);
|
|
1459
1483
|
|
|
1460
|
-
case
|
|
1484
|
+
case 35:
|
|
1461
1485
|
setLoading(false);
|
|
1462
1486
|
|
|
1463
|
-
case
|
|
1487
|
+
case 36:
|
|
1464
1488
|
case "end":
|
|
1465
1489
|
return _context11.stop();
|
|
1466
1490
|
}
|
|
1467
1491
|
}
|
|
1468
|
-
}, _callee11, null, [[1,
|
|
1492
|
+
}, _callee11, null, [[1, 32]]);
|
|
1469
1493
|
}));
|
|
1470
1494
|
|
|
1471
1495
|
return function sendToFacilitator(_x) {
|
|
@@ -1500,33 +1524,55 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1500
1524
|
};
|
|
1501
1525
|
|
|
1502
1526
|
var createComment = /*#__PURE__*/function () {
|
|
1503
|
-
var _ref15 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee12() {
|
|
1504
|
-
var
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
_args12 = arguments;
|
|
1527
|
+
var _ref15 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee12(e, body, tab) {
|
|
1528
|
+
var _product$article16;
|
|
1529
|
+
|
|
1530
|
+
var concept, data;
|
|
1508
1531
|
return _regenerator.default.wrap(function _callee12$(_context12) {
|
|
1509
1532
|
while (1) {
|
|
1510
1533
|
switch (_context12.prev = _context12.next) {
|
|
1511
1534
|
case 0:
|
|
1512
|
-
|
|
1513
|
-
|
|
1535
|
+
concept = "";
|
|
1536
|
+
_context12.t0 = activeTab;
|
|
1537
|
+
_context12.next = _context12.t0 === "Ficha técnica" ? 4 : _context12.t0 === "Imágenes" ? 6 : 8;
|
|
1538
|
+
break;
|
|
1539
|
+
|
|
1540
|
+
case 4:
|
|
1541
|
+
concept = "datasheet";
|
|
1542
|
+
return _context12.abrupt("break", 10);
|
|
1543
|
+
|
|
1544
|
+
case 6:
|
|
1545
|
+
concept = "images";
|
|
1546
|
+
return _context12.abrupt("break", 10);
|
|
1547
|
+
|
|
1548
|
+
case 8:
|
|
1549
|
+
concept = "description";
|
|
1550
|
+
return _context12.abrupt("break", 10);
|
|
1551
|
+
|
|
1552
|
+
case 10:
|
|
1514
1553
|
data = {
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1554
|
+
articleId: product === null || product === void 0 ? void 0 : (_product$article16 = product.article) === null || _product$article16 === void 0 ? void 0 : _product$article16.id_article,
|
|
1555
|
+
orderId: product === null || product === void 0 ? void 0 : product.orderId,
|
|
1556
|
+
message: body === null || body === void 0 ? void 0 : body.replace(/<.*?\/?>/gm, ""),
|
|
1557
|
+
concept: concept,
|
|
1558
|
+
version: version
|
|
1559
|
+
};
|
|
1560
|
+
_context12.next = 13;
|
|
1561
|
+
return _axios.default.post("".concat(process.env.REACT_APP_COMMENTS_ENDPOINT), data, {
|
|
1562
|
+
headers: {
|
|
1523
1563
|
Authorization: token
|
|
1524
1564
|
}
|
|
1525
|
-
};
|
|
1565
|
+
});
|
|
1566
|
+
|
|
1567
|
+
case 13:
|
|
1568
|
+
_context12.next = 15;
|
|
1569
|
+
return getComments(tab);
|
|
1570
|
+
|
|
1571
|
+
case 15:
|
|
1526
1572
|
setMessage("");
|
|
1527
|
-
|
|
1573
|
+
setComponentsArray([]);
|
|
1528
1574
|
|
|
1529
|
-
case
|
|
1575
|
+
case 17:
|
|
1530
1576
|
case "end":
|
|
1531
1577
|
return _context12.stop();
|
|
1532
1578
|
}
|
|
@@ -1534,7 +1580,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1534
1580
|
}, _callee12);
|
|
1535
1581
|
}));
|
|
1536
1582
|
|
|
1537
|
-
return function createComment() {
|
|
1583
|
+
return function createComment(_x2, _x3, _x4) {
|
|
1538
1584
|
return _ref15.apply(this, arguments);
|
|
1539
1585
|
};
|
|
1540
1586
|
}();
|
|
@@ -1649,7 +1695,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1649
1695
|
|
|
1650
1696
|
var setAssignation = /*#__PURE__*/function () {
|
|
1651
1697
|
var _ref17 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee14(assignationType, assignationId) {
|
|
1652
|
-
var _product$
|
|
1698
|
+
var _product$article17;
|
|
1653
1699
|
|
|
1654
1700
|
var concept, productTemp, data;
|
|
1655
1701
|
return _regenerator.default.wrap(function _callee14$(_context14) {
|
|
@@ -1679,7 +1725,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1679
1725
|
data = {
|
|
1680
1726
|
articleList: [{
|
|
1681
1727
|
orderId: product.orderId,
|
|
1682
|
-
articleId: product === null || product === void 0 ? void 0 : (_product$
|
|
1728
|
+
articleId: product === null || product === void 0 ? void 0 : (_product$article17 = product.article) === null || _product$article17 === void 0 ? void 0 : _product$article17.id_article
|
|
1683
1729
|
}],
|
|
1684
1730
|
concept: concept,
|
|
1685
1731
|
userId: assignationId
|
|
@@ -1706,7 +1752,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1706
1752
|
}, _callee14);
|
|
1707
1753
|
}));
|
|
1708
1754
|
|
|
1709
|
-
return function setAssignation(
|
|
1755
|
+
return function setAssignation(_x5, _x6) {
|
|
1710
1756
|
return _ref17.apply(this, arguments);
|
|
1711
1757
|
};
|
|
1712
1758
|
}();
|
|
@@ -1808,7 +1854,6 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1808
1854
|
};
|
|
1809
1855
|
|
|
1810
1856
|
(0, _react.useEffect)(function () {
|
|
1811
|
-
console.log(servicesData, "servicesData");
|
|
1812
1857
|
var status = getRetailerStatus(servicesData, activeTab);
|
|
1813
1858
|
setRetailerStatus(status);
|
|
1814
1859
|
}, [activeTab, servicesData, activeRetailer]);
|
|
@@ -1817,12 +1862,68 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1817
1862
|
}, [services, servicesData, activeTab]);
|
|
1818
1863
|
(0, _react.useEffect)(function () {
|
|
1819
1864
|
setSaving(loading);
|
|
1820
|
-
}, [loading]);
|
|
1865
|
+
}, [loading]); // const validateAll = async (result) => {
|
|
1866
|
+
// try {
|
|
1867
|
+
// setLoading(true);
|
|
1868
|
+
// const evaluationArray = [];
|
|
1869
|
+
// let conceptArray = ["description", "datasheet", "images"];
|
|
1870
|
+
// switch (user.id_role) {
|
|
1871
|
+
// case 4:
|
|
1872
|
+
// conceptArray = ["description", "datasheet"];
|
|
1873
|
+
// break;
|
|
1874
|
+
// case 5:
|
|
1875
|
+
// conceptArray = ["images"];
|
|
1876
|
+
// break;
|
|
1877
|
+
// default:
|
|
1878
|
+
// conceptArray = ["description", "datasheet", "images"];
|
|
1879
|
+
// break;
|
|
1880
|
+
// }
|
|
1881
|
+
// const isAproved = result === "A";
|
|
1882
|
+
// const retailersIds = [];
|
|
1883
|
+
// servicesData?.forEach((ret) => {
|
|
1884
|
+
// if (!retailersIds.includes(ret.id_retailer))
|
|
1885
|
+
// retailersIds.push(ret.id_retailer);
|
|
1886
|
+
// });
|
|
1887
|
+
// const body = {
|
|
1888
|
+
// orderArticleRetailers: [
|
|
1889
|
+
// {
|
|
1890
|
+
// orderId: product.id_order ?? product.orderId,
|
|
1891
|
+
// articleId: product.article.id_article,
|
|
1892
|
+
// retailersIds,
|
|
1893
|
+
// },
|
|
1894
|
+
// ],
|
|
1895
|
+
// isAproved,
|
|
1896
|
+
// };
|
|
1897
|
+
// conceptArray.forEach((concept) => {
|
|
1898
|
+
// body.service = concept;
|
|
1899
|
+
// evaluationArray.push(
|
|
1900
|
+
// axios.put(`${process.env.REACT_APP_EVALUATION_ENDPOINT}`, body, {
|
|
1901
|
+
// headers: {
|
|
1902
|
+
// Authorization: token,
|
|
1903
|
+
// },
|
|
1904
|
+
// })
|
|
1905
|
+
// );
|
|
1906
|
+
// });
|
|
1907
|
+
// await Promise.all(evaluationArray);
|
|
1908
|
+
// const productTemp = product;
|
|
1909
|
+
// productTemp.status = `${result}A`;
|
|
1910
|
+
// productTemp.datasheet_status =
|
|
1911
|
+
// productTemp.datasheet_status === "NA" ? "NA" : `${result}A`;
|
|
1912
|
+
// productTemp.description_status =
|
|
1913
|
+
// productTemp.description_status === "NA" ? "NA" : `${result}A`;
|
|
1914
|
+
// productTemp.images_status =
|
|
1915
|
+
// productTemp.images_status === "NA" ? "NA" : `${result}A`;
|
|
1916
|
+
// sessionStorage.setItem("productSelected", JSON.stringify(productTemp));
|
|
1917
|
+
// setProduct(productTemp);
|
|
1918
|
+
// await loadData();
|
|
1919
|
+
// } catch (error) {
|
|
1920
|
+
// console.log(error);
|
|
1921
|
+
// }
|
|
1922
|
+
// };
|
|
1821
1923
|
|
|
1822
1924
|
var validateAll = /*#__PURE__*/function () {
|
|
1823
1925
|
var _ref18 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee15(result) {
|
|
1824
|
-
var
|
|
1825
|
-
|
|
1926
|
+
var evaluationArray, conceptArray, productTemp;
|
|
1826
1927
|
return _regenerator.default.wrap(function _callee15$(_context15) {
|
|
1827
1928
|
while (1) {
|
|
1828
1929
|
switch (_context15.prev = _context15.next) {
|
|
@@ -1830,7 +1931,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1830
1931
|
_context15.prev = 0;
|
|
1831
1932
|
setLoading(true);
|
|
1832
1933
|
evaluationArray = [];
|
|
1833
|
-
conceptArray = [
|
|
1934
|
+
conceptArray = [];
|
|
1834
1935
|
_context15.t0 = user.id_role;
|
|
1835
1936
|
_context15.next = _context15.t0 === 4 ? 7 : _context15.t0 === 5 ? 9 : 11;
|
|
1836
1937
|
break;
|
|
@@ -1848,63 +1949,57 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1848
1949
|
return _context15.abrupt("break", 13);
|
|
1849
1950
|
|
|
1850
1951
|
case 13:
|
|
1851
|
-
messages = [];
|
|
1852
1952
|
servicesData === null || servicesData === void 0 ? void 0 : servicesData.forEach(function (ret) {
|
|
1853
|
-
if (
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
}
|
|
1869
|
-
}
|
|
1953
|
+
if (conceptArray.includes(ret.service)) {
|
|
1954
|
+
var _product$id_order;
|
|
1955
|
+
|
|
1956
|
+
var data = {
|
|
1957
|
+
articleId: product.article.id_article,
|
|
1958
|
+
orderId: (_product$id_order = product.id_order) !== null && _product$id_order !== void 0 ? _product$id_order : product.orderId,
|
|
1959
|
+
concept: ret.service,
|
|
1960
|
+
result: result,
|
|
1961
|
+
evalStatus: ret.status,
|
|
1962
|
+
retailerId: ret.id_retailer
|
|
1963
|
+
};
|
|
1964
|
+
evaluationArray.push(_axios.default.put("".concat(process.env.REACT_APP_EVALUATION_ENDPOINT), data, {
|
|
1965
|
+
headers: {
|
|
1966
|
+
Authorization: token
|
|
1967
|
+
}
|
|
1968
|
+
}));
|
|
1969
|
+
}
|
|
1870
1970
|
});
|
|
1871
|
-
_context15.next =
|
|
1971
|
+
_context15.next = 16;
|
|
1872
1972
|
return Promise.all(evaluationArray);
|
|
1873
1973
|
|
|
1874
|
-
case
|
|
1974
|
+
case 16:
|
|
1875
1975
|
productTemp = product;
|
|
1876
1976
|
productTemp.status = "".concat(result, "A");
|
|
1877
|
-
productTemp.datasheet_status = productTemp.datasheet_status === "
|
|
1878
|
-
productTemp.description_status = productTemp.description_status === "
|
|
1879
|
-
productTemp.images_status = productTemp.images_status === "
|
|
1977
|
+
productTemp.datasheet_status = productTemp.datasheet_status === "NA" ? "NA" : "".concat(result, "A");
|
|
1978
|
+
productTemp.description_status = productTemp.description_status === "NA" ? "NA" : "".concat(result, "A");
|
|
1979
|
+
productTemp.images_status = productTemp.images_status === "NA" ? "NA" : "".concat(result, "A");
|
|
1880
1980
|
sessionStorage.setItem("productSelected", JSON.stringify(productTemp));
|
|
1881
1981
|
setProduct(productTemp);
|
|
1882
|
-
_context15.next =
|
|
1883
|
-
return Promise.all(messages);
|
|
1884
|
-
|
|
1885
|
-
case 28:
|
|
1886
|
-
messagesResponse = _context15.sent;
|
|
1887
|
-
_context15.next = 31;
|
|
1982
|
+
_context15.next = 25;
|
|
1888
1983
|
return loadData();
|
|
1889
1984
|
|
|
1890
|
-
case
|
|
1891
|
-
_context15.next =
|
|
1985
|
+
case 25:
|
|
1986
|
+
_context15.next = 30;
|
|
1892
1987
|
break;
|
|
1893
1988
|
|
|
1894
|
-
case
|
|
1895
|
-
_context15.prev =
|
|
1989
|
+
case 27:
|
|
1990
|
+
_context15.prev = 27;
|
|
1896
1991
|
_context15.t1 = _context15["catch"](0);
|
|
1897
1992
|
console.log(_context15.t1);
|
|
1898
1993
|
|
|
1899
|
-
case
|
|
1994
|
+
case 30:
|
|
1900
1995
|
case "end":
|
|
1901
1996
|
return _context15.stop();
|
|
1902
1997
|
}
|
|
1903
1998
|
}
|
|
1904
|
-
}, _callee15, null, [[0,
|
|
1999
|
+
}, _callee15, null, [[0, 27]]);
|
|
1905
2000
|
}));
|
|
1906
2001
|
|
|
1907
|
-
return function validateAll(
|
|
2002
|
+
return function validateAll(_x7) {
|
|
1908
2003
|
return _ref18.apply(this, arguments);
|
|
1909
2004
|
};
|
|
1910
2005
|
}();
|
|
@@ -1917,10 +2012,8 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1917
2012
|
setCompare: setCompare,
|
|
1918
2013
|
isAuditor: [1, 6].includes(user.id_role),
|
|
1919
2014
|
withChat: location === null || location === void 0 ? void 0 : (_location$state = location.state) === null || _location$state === void 0 ? void 0 : _location$state.withChat,
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
token: token,
|
|
1923
|
-
activeRetailer: activeRetailer
|
|
2015
|
+
productSelected: productSelected,
|
|
2016
|
+
token: token
|
|
1924
2017
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
1925
2018
|
className: "data-container",
|
|
1926
2019
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
@@ -1962,7 +2055,27 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1962
2055
|
sendToFacilitator("A");
|
|
1963
2056
|
},
|
|
1964
2057
|
reject: function reject() {
|
|
1965
|
-
|
|
2058
|
+
sendToFacilitator("R");
|
|
2059
|
+
setMessage("Rechazado");
|
|
2060
|
+
setComponentsArray([/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
2061
|
+
src: _errorModal.default
|
|
2062
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
2063
|
+
text: "Agrega tu comentarios para enviar el rechazo",
|
|
2064
|
+
headerType: "input-name-header",
|
|
2065
|
+
color: "white"
|
|
2066
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.TagAndInput, {
|
|
2067
|
+
label: "Caja de Comentario",
|
|
2068
|
+
inputType: "textarea",
|
|
2069
|
+
inputId: "modal-commentary-box",
|
|
2070
|
+
index: 0,
|
|
2071
|
+
color: "white"
|
|
2072
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
2073
|
+
buttonType: "general-default-button",
|
|
2074
|
+
label: "Enviar comentario",
|
|
2075
|
+
onClick: function onClick(e) {
|
|
2076
|
+
return createComment(e, document.querySelector("#modal-commentary-box .ql-container .ql-editor > p").innerHTML, activeTab);
|
|
2077
|
+
}
|
|
2078
|
+
})]);
|
|
1966
2079
|
},
|
|
1967
2080
|
showApproveRejectAll: approveRejectAllButtons() && (auditorAssigned() || userAssigned()),
|
|
1968
2081
|
showValidationButtons: approveRejectButtons() && (auditorAssigned() || userAssigned()),
|
|
@@ -1970,8 +2083,27 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1970
2083
|
return validateAll("A");
|
|
1971
2084
|
},
|
|
1972
2085
|
rejectAll: function rejectAll() {
|
|
1973
|
-
|
|
1974
|
-
|
|
2086
|
+
validateAll("R");
|
|
2087
|
+
setMessage("Rechazado");
|
|
2088
|
+
setComponentsArray([/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
2089
|
+
src: _errorModal.default
|
|
2090
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
2091
|
+
text: "Agrega tu comentarios para enviar el rechazo",
|
|
2092
|
+
headerType: "input-name-header",
|
|
2093
|
+
color: "white"
|
|
2094
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.TagAndInput, {
|
|
2095
|
+
label: "Caja de Comentario",
|
|
2096
|
+
inputType: "textarea",
|
|
2097
|
+
inputId: "modal-commentary-box",
|
|
2098
|
+
index: 0,
|
|
2099
|
+
color: "white"
|
|
2100
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
2101
|
+
buttonType: "general-default-button",
|
|
2102
|
+
label: "Enviar comentario",
|
|
2103
|
+
onClick: function onClick(e) {
|
|
2104
|
+
return createComment(e, document.querySelector("#modal-commentary-box .ql-container .ql-editor > p").innerHTML, activeTab);
|
|
2105
|
+
}
|
|
2106
|
+
})]);
|
|
1975
2107
|
}
|
|
1976
2108
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_FullTabsMenu.FullTabsMenu, {
|
|
1977
2109
|
tabsSections: tabsSections,
|
|
@@ -1986,12 +2118,6 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1986
2118
|
isRetailer: isRetailer,
|
|
1987
2119
|
showSaveButton: auditorAssigned() || userAssigned(),
|
|
1988
2120
|
version: version,
|
|
1989
|
-
desc: desc,
|
|
1990
|
-
setDesc: setDesc,
|
|
1991
|
-
fich: fich,
|
|
1992
|
-
setFich: setFich,
|
|
1993
|
-
imag: imag,
|
|
1994
|
-
setImag: setImag,
|
|
1995
2121
|
updatedDescriptions: updatedDescriptions,
|
|
1996
2122
|
setUpdatedDescriptions: setUpdatedDescriptions,
|
|
1997
2123
|
updatedDatasheets: updatedDatasheets,
|
|
@@ -2049,7 +2175,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
2049
2175
|
auditInputGroup: auditDescriptions[0],
|
|
2050
2176
|
updatedDescriptions: updatedDescriptions,
|
|
2051
2177
|
setUpdatedDescriptions: setUpdatedDescriptions,
|
|
2052
|
-
articleId: product === null || product === void 0 ? void 0 : (_product$
|
|
2178
|
+
articleId: product === null || product === void 0 ? void 0 : (_product$article18 = product.article) === null || _product$article18 === void 0 ? void 0 : _product$article18.id_article,
|
|
2053
2179
|
version: version,
|
|
2054
2180
|
dinamicHeight: true,
|
|
2055
2181
|
compare: compare
|
|
@@ -2070,15 +2196,57 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
2070
2196
|
headerType: "input-name-header"
|
|
2071
2197
|
}))]
|
|
2072
2198
|
})
|
|
2073
|
-
}), (userAssigned(activeTab) || auditorAssigned()) && product["".concat(getConcept(activeTab), "_status")] !== "NS" && /*#__PURE__*/(0, _jsxRuntime.
|
|
2199
|
+
}), (userAssigned(activeTab) || auditorAssigned()) && product["".concat(getConcept(activeTab), "_status")] !== "NS" && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
2074
2200
|
className: "commentary-box",
|
|
2075
|
-
children: [
|
|
2201
|
+
children: [!comment ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
2202
|
+
className: "commentary",
|
|
2203
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.TagAndInput, {
|
|
2204
|
+
label: "Caja de Comentario",
|
|
2205
|
+
inputType: "textarea",
|
|
2206
|
+
inputCols: 80,
|
|
2207
|
+
inputRows: 4,
|
|
2208
|
+
inputId: "commentary-box",
|
|
2209
|
+
index: 0
|
|
2210
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
2211
|
+
className: "buttons-box",
|
|
2212
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
2213
|
+
buttonType: "general-transparent-button",
|
|
2214
|
+
label: "Enviar comentario",
|
|
2215
|
+
onClick: function onClick(e) {
|
|
2216
|
+
return createComment(e, document.querySelector("#commentary-box .ql-container .ql-editor > p").innerHTML, activeTab);
|
|
2217
|
+
}
|
|
2218
|
+
})
|
|
2219
|
+
})]
|
|
2220
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
2221
|
+
className: "feedback-box",
|
|
2222
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Commentary.Commentary, {
|
|
2223
|
+
comment: comment === null || comment === void 0 ? void 0 : (_comment$message = comment.message) === null || _comment$message === void 0 ? void 0 : _comment$message.replace(/<.*?\/?>/gm, ""),
|
|
2224
|
+
reviewed: crossComment
|
|
2225
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
2226
|
+
buttonType: "circular-button accept-button",
|
|
2227
|
+
onClick: /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee16() {
|
|
2228
|
+
return _regenerator.default.wrap(function _callee16$(_context16) {
|
|
2229
|
+
while (1) {
|
|
2230
|
+
switch (_context16.prev = _context16.next) {
|
|
2231
|
+
case 0:
|
|
2232
|
+
setCrossComment(true);
|
|
2233
|
+
commentRevised();
|
|
2234
|
+
|
|
2235
|
+
case 2:
|
|
2236
|
+
case "end":
|
|
2237
|
+
return _context16.stop();
|
|
2238
|
+
}
|
|
2239
|
+
}
|
|
2240
|
+
}, _callee16);
|
|
2241
|
+
}))
|
|
2242
|
+
})]
|
|
2243
|
+
}), [7, 8].includes(user.id_role) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
2076
2244
|
buttonType: evaluationFinished(user.id_role, activeTab, statusArray) && requiredNull[activeTab] === 0 ? "general-green-button" : "general-button-disabled",
|
|
2077
2245
|
label: "Enviar evaluación",
|
|
2078
2246
|
onClick: function onClick() {
|
|
2079
2247
|
return sendToFacilitator();
|
|
2080
2248
|
}
|
|
2081
|
-
})
|
|
2249
|
+
})]
|
|
2082
2250
|
})]
|
|
2083
2251
|
})]
|
|
2084
2252
|
}), showModal && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ProductImageModal.ProductImageModal, {
|
|
@@ -2107,53 +2275,6 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
2107
2275
|
currentVersion: version,
|
|
2108
2276
|
setShowVersionSelector: setShowVersionSelector,
|
|
2109
2277
|
jwt: token
|
|
2110
|
-
}), showRejectModal && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Modal.Modal, {
|
|
2111
|
-
title: "Agregar mensaje de rechazo para ".concat(activeTab === null || activeTab === void 0 ? void 0 : activeTab.toLowerCase()),
|
|
2112
|
-
show: showRejectModal,
|
|
2113
|
-
customComponent: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.TagAndInput, {
|
|
2114
|
-
inputType: "textarea",
|
|
2115
|
-
inputId: "modal-message-box",
|
|
2116
|
-
index: 0,
|
|
2117
|
-
color: "white"
|
|
2118
|
-
}),
|
|
2119
|
-
buttons: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonV.ButtonV2, {
|
|
2120
|
-
type: "white",
|
|
2121
|
-
label: "Cancelar",
|
|
2122
|
-
size: 12,
|
|
2123
|
-
onClick: function onClick() {
|
|
2124
|
-
setShowRejectModal(false);
|
|
2125
|
-
}
|
|
2126
|
-
}, "btn-Cancelar"), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonV.ButtonV2, {
|
|
2127
|
-
type: "pink",
|
|
2128
|
-
label: "Aceptar",
|
|
2129
|
-
size: 12,
|
|
2130
|
-
onClick: /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee16() {
|
|
2131
|
-
var body, messages;
|
|
2132
|
-
return _regenerator.default.wrap(function _callee16$(_context16) {
|
|
2133
|
-
while (1) {
|
|
2134
|
-
switch (_context16.prev = _context16.next) {
|
|
2135
|
-
case 0:
|
|
2136
|
-
body = document.querySelector("#modal-message-box .ql-container .ql-editor > p").innerHTML;
|
|
2137
|
-
messages = [{
|
|
2138
|
-
type: "message",
|
|
2139
|
-
value: body === null || body === void 0 ? void 0 : body.replace(/<.*?\/?>/gm, "")
|
|
2140
|
-
}];
|
|
2141
|
-
_context16.next = 4;
|
|
2142
|
-
return createComment(messages, activeRetailer.id);
|
|
2143
|
-
|
|
2144
|
-
case 4:
|
|
2145
|
-
valRejAll ? validateAll("R") : sendToFacilitator("R");
|
|
2146
|
-
setMessage("Rechazado");
|
|
2147
|
-
setShowRejectModal(false);
|
|
2148
|
-
|
|
2149
|
-
case 7:
|
|
2150
|
-
case "end":
|
|
2151
|
-
return _context16.stop();
|
|
2152
|
-
}
|
|
2153
|
-
}
|
|
2154
|
-
}, _callee16);
|
|
2155
|
-
}))
|
|
2156
|
-
}, "btn-Aceptar")]
|
|
2157
2278
|
})]
|
|
2158
2279
|
});
|
|
2159
2280
|
};
|