contentoh-components-library 21.6.35 → 21.6.37
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/InheritanceTag/index.js +6 -2
- package/dist/components/molecules/TagAndInput/index.js +1 -1
- package/dist/components/molecules/TagAndInputv2/index.js +1 -1
- package/dist/components/organisms/PropagateChangesModal/index.js +36 -3
- package/dist/components/organisms/UnlinkVariantModal/index.js +178 -0
- package/dist/components/organisms/UnlinkVariantModal/styles.js +42 -0
- package/dist/components/pages/ProviderProductEdition/index.js +186 -59
- package/dist/components/pages/ProviderProductEdition/styles.js +2 -2
- package/dist/components/pages/RetailerProductEdition/index.js +290 -97
- package/dist/components/pages/RetailerProductEdition/styles.js +2 -2
- package/dist/index.js +25 -12
- package/package.json +1 -1
- package/src/components/atoms/InheritanceTag/index.js +12 -2
- package/src/components/molecules/TagAndInput/index.js +3 -1
- package/src/components/molecules/TagAndInputv2/index.js +3 -1
- package/src/components/organisms/PropagateChangesModal/index.js +43 -8
- package/src/components/organisms/UnlinkVariantModal/index.js +141 -0
- package/src/components/organisms/UnlinkVariantModal/styles.js +106 -0
- package/src/components/pages/ProviderProductEdition/index.js +166 -37
- package/src/components/pages/ProviderProductEdition/styles.js +30 -0
- package/src/components/pages/RetailerProductEdition/index.js +220 -42
- package/src/components/pages/RetailerProductEdition/styles.js +30 -0
- package/src/index.js +1 -0
|
@@ -75,6 +75,8 @@ var _Modal = require("../../organisms/Modal");
|
|
|
75
75
|
|
|
76
76
|
var _LinkVariantsModal = require("../../organisms/LinkVariantsModal");
|
|
77
77
|
|
|
78
|
+
var _UnlinkVariantModal = require("../../organisms/UnlinkVariantModal");
|
|
79
|
+
|
|
78
80
|
var _PropagateChangesModal = require("../../organisms/PropagateChangesModal");
|
|
79
81
|
|
|
80
82
|
var _api = require("../../organisms/LinkVariantsModal/api");
|
|
@@ -234,7 +236,7 @@ function _regenerateVideoThumbnails() {
|
|
|
234
236
|
}
|
|
235
237
|
|
|
236
238
|
var RetailerProductEditionView = function RetailerProductEditionView(_ref) {
|
|
237
|
-
var _state$product10, _family$variants, _state$product11, _state$errors, _family$variants2, _state$
|
|
239
|
+
var _state$product10, _family$variants, _state$product11, _state$errors, _family$variants2, _state$product15, _state$product16, _state$product17, _state$active_retaile5, _location$state, _location$state2, _state$active_retaile6, _state$active_retaile7, _state$images_values$2, _state$images_values10, _state$images_values11, _state$product18, _state$active_retaile8, _family$variants3, _family$variants4, _state$active_percent, _state$active_percent2, _state$active_percent3, _state$active_retaile9, _state$active_retaile10, _state$active_retaile11, _state$product24, _state$services2, _state$services2$data, _state$product25, _state$product26, _state$datasheets_inp, _state$datasheets_inp2, _state$product27, _state$images_values12, _state$comment;
|
|
238
240
|
|
|
239
241
|
var tabsSections = _ref.tabsSections,
|
|
240
242
|
_ref$productSelected = _ref.productSelected,
|
|
@@ -331,49 +333,56 @@ var RetailerProductEditionView = function RetailerProductEditionView(_ref) {
|
|
|
331
333
|
var _useState27 = (0, _react.useState)(null),
|
|
332
334
|
_useState28 = (0, _slicedToArray2.default)(_useState27, 2),
|
|
333
335
|
loadingVariant = _useState28[0],
|
|
334
|
-
setLoadingVariant = _useState28[1]; //
|
|
335
|
-
//
|
|
336
|
+
setLoadingVariant = _useState28[1]; // Qué vínculo se está por romper, o null si no hay diálogo abierto. Guarda al
|
|
337
|
+
// HIJO, que es quien lleva la relación y lo que pide la acción `unlink`.
|
|
336
338
|
|
|
337
339
|
|
|
338
340
|
var _useState29 = (0, _react.useState)(null),
|
|
339
341
|
_useState30 = (0, _slicedToArray2.default)(_useState29, 2),
|
|
340
|
-
|
|
341
|
-
|
|
342
|
+
porDesvincular = _useState30[0],
|
|
343
|
+
setPorDesvincular = _useState30[1]; // Por qué un salto no se pudo hacer. Vive aparte de `family.error` porque no
|
|
344
|
+
// es un fallo al leer la familia, sino al abrir uno de sus miembros.
|
|
345
|
+
|
|
342
346
|
|
|
343
347
|
var _useState31 = (0, _react.useState)(null),
|
|
344
348
|
_useState32 = (0, _slicedToArray2.default)(_useState31, 2),
|
|
345
|
-
|
|
346
|
-
|
|
349
|
+
avisoFamilia = _useState32[0],
|
|
350
|
+
setAvisoFamilia = _useState32[1];
|
|
347
351
|
|
|
348
|
-
var _useState33 = (0, _react.useState)(
|
|
352
|
+
var _useState33 = (0, _react.useState)(null),
|
|
349
353
|
_useState34 = (0, _slicedToArray2.default)(_useState33, 2),
|
|
350
|
-
|
|
351
|
-
|
|
354
|
+
pendingPropagation = _useState34[0],
|
|
355
|
+
setPendingPropagation = _useState34[1];
|
|
352
356
|
|
|
353
|
-
var _useState35 = (0, _react.useState)(
|
|
357
|
+
var _useState35 = (0, _react.useState)(false),
|
|
354
358
|
_useState36 = (0, _slicedToArray2.default)(_useState35, 2),
|
|
355
|
-
|
|
356
|
-
|
|
359
|
+
preparandoPropagacion = _useState36[0],
|
|
360
|
+
setPreparandoPropagacion = _useState36[1];
|
|
357
361
|
|
|
358
362
|
var _useState37 = (0, _react.useState)([]),
|
|
359
363
|
_useState38 = (0, _slicedToArray2.default)(_useState37, 2),
|
|
360
|
-
|
|
361
|
-
|
|
364
|
+
auditServices = _useState38[0],
|
|
365
|
+
setAuditServices = _useState38[1];
|
|
362
366
|
|
|
363
367
|
var _useState39 = (0, _react.useState)([]),
|
|
364
368
|
_useState40 = (0, _slicedToArray2.default)(_useState39, 2),
|
|
365
|
-
|
|
366
|
-
|
|
369
|
+
auditDatasheets = _useState40[0],
|
|
370
|
+
setAuditDatasheets = _useState40[1];
|
|
367
371
|
|
|
368
|
-
var _useState41 = (0, _react.useState)(
|
|
372
|
+
var _useState41 = (0, _react.useState)([]),
|
|
369
373
|
_useState42 = (0, _slicedToArray2.default)(_useState41, 2),
|
|
370
|
-
|
|
371
|
-
|
|
374
|
+
auditDescriptions = _useState42[0],
|
|
375
|
+
setAuditDescriptions = _useState42[1];
|
|
372
376
|
|
|
373
377
|
var _useState43 = (0, _react.useState)(false),
|
|
374
378
|
_useState44 = (0, _slicedToArray2.default)(_useState43, 2),
|
|
375
|
-
|
|
376
|
-
|
|
379
|
+
showModal = _useState44[0],
|
|
380
|
+
setShowModal = _useState44[1];
|
|
381
|
+
|
|
382
|
+
var _useState45 = (0, _react.useState)(false),
|
|
383
|
+
_useState46 = (0, _slicedToArray2.default)(_useState45, 2),
|
|
384
|
+
compare = _useState46[0],
|
|
385
|
+
setCompare = _useState46[1];
|
|
377
386
|
|
|
378
387
|
var _useDropzone = (0, _reactDropzone.useDropzone)({
|
|
379
388
|
accept: "image/*, video/mp4",
|
|
@@ -509,10 +518,10 @@ var RetailerProductEditionView = function RetailerProductEditionView(_ref) {
|
|
|
509
518
|
isDragActive = _useDropzone.isDragActive,
|
|
510
519
|
open = _useDropzone.open;
|
|
511
520
|
|
|
512
|
-
var
|
|
513
|
-
|
|
514
|
-
openChangeStatusModal =
|
|
515
|
-
setOpenChangeStatusModal =
|
|
521
|
+
var _useState47 = (0, _react.useState)(false),
|
|
522
|
+
_useState48 = (0, _slicedToArray2.default)(_useState47, 2),
|
|
523
|
+
openChangeStatusModal = _useState48[0],
|
|
524
|
+
setOpenChangeStatusModal = _useState48[1];
|
|
516
525
|
|
|
517
526
|
var thumbs = function thumbs() {
|
|
518
527
|
var _state$images_values, _state$images_values$, _state$images_values4, _state$images_values5, _state$images_values6, _state$images_values7, _state$images_values8, _state$images_values9;
|
|
@@ -1251,6 +1260,66 @@ var RetailerProductEditionView = function RetailerProductEditionView(_ref) {
|
|
|
1251
1260
|
pantalla que mostraría el producto equivocado.
|
|
1252
1261
|
*/
|
|
1253
1262
|
|
|
1263
|
+
/*
|
|
1264
|
+
Después de desvincular, esta ficha cambia de forma: si se soltó de su padre
|
|
1265
|
+
vuelve a poder ligar, y si soltó a un hijo pierde uno de la cuenta. En esta
|
|
1266
|
+
pantalla el bloque de parentesco se decide con `family`, así que hay que
|
|
1267
|
+
repreguntarla —vaciarla lo haría desaparecer, que es el error que ya se
|
|
1268
|
+
cometió una vez aquí—.
|
|
1269
|
+
*/
|
|
1270
|
+
|
|
1271
|
+
var handleOnUnlinked = function handleOnUnlinked(result) {
|
|
1272
|
+
var _state$product$varian, _state$product12, _updatedProduct$varia;
|
|
1273
|
+
|
|
1274
|
+
if (!result) return;
|
|
1275
|
+
var updatedProduct = result.mode === "self" ? (0, _objectSpread5.default)((0, _objectSpread5.default)({}, state.product), {}, {
|
|
1276
|
+
parentArticleId: null,
|
|
1277
|
+
variantsCount: 0
|
|
1278
|
+
}) : (0, _objectSpread5.default)((0, _objectSpread5.default)({}, state.product), {}, {
|
|
1279
|
+
variantsCount: Math.max(((_state$product$varian = (_state$product12 = state.product) === null || _state$product12 === void 0 ? void 0 : _state$product12.variantsCount) !== null && _state$product$varian !== void 0 ? _state$product$varian : 1) - 1, 0)
|
|
1280
|
+
});
|
|
1281
|
+
dispatch({
|
|
1282
|
+
type: "SET_PRODUCT",
|
|
1283
|
+
payload: updatedProduct
|
|
1284
|
+
}); // Se PARCHEA lo guardado: ahí vive el producto con la forma del listado
|
|
1285
|
+
// —`article` anidado, servicios, cadenas— y escribir encima la versión
|
|
1286
|
+
// aplanada de esta pantalla lo dejaría mutilado en el siguiente F5.
|
|
1287
|
+
|
|
1288
|
+
try {
|
|
1289
|
+
var _sessionStorage$getIt;
|
|
1290
|
+
|
|
1291
|
+
var guardado = JSON.parse((_sessionStorage$getIt = sessionStorage.getItem("productSelected")) !== null && _sessionStorage$getIt !== void 0 ? _sessionStorage$getIt : "null");
|
|
1292
|
+
|
|
1293
|
+
if (guardado) {
|
|
1294
|
+
var _updatedProduct$paren;
|
|
1295
|
+
|
|
1296
|
+
sessionStorage.setItem("productSelected", JSON.stringify((0, _objectSpread5.default)((0, _objectSpread5.default)({}, guardado), {}, {
|
|
1297
|
+
variantsCount: updatedProduct.variantsCount,
|
|
1298
|
+
parentArticleId: (_updatedProduct$paren = updatedProduct.parentArticleId) !== null && _updatedProduct$paren !== void 0 ? _updatedProduct$paren : null
|
|
1299
|
+
})));
|
|
1300
|
+
}
|
|
1301
|
+
} catch (error) {
|
|
1302
|
+
console.error("unlinkVariant/sessionStorage: ", error);
|
|
1303
|
+
}
|
|
1304
|
+
/*
|
|
1305
|
+
Si ya no queda familia, se cierra el desplegable: su botón desaparece con
|
|
1306
|
+
el vínculo, y dejarlo abierto pinta una caja que dice «no tiene hijos» y
|
|
1307
|
+
que nadie puede cerrar.
|
|
1308
|
+
*/
|
|
1309
|
+
|
|
1310
|
+
|
|
1311
|
+
if (!updatedProduct.parentArticleId && ((_updatedProduct$varia = updatedProduct.variantsCount) !== null && _updatedProduct$varia !== void 0 ? _updatedProduct$varia : 0) === 0) {
|
|
1312
|
+
setShowFamily(false);
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
loadFamily(true); // Al desvincular el servidor pone `is_overridden = 0` en todas las
|
|
1316
|
+
// versiones, así que los chips de herencia tienen que dejar de dibujarse.
|
|
1317
|
+
// Sin `enableLoading` para no parpadear el esqueleto encima de una pantalla
|
|
1318
|
+
// que ya está pintada.
|
|
1319
|
+
|
|
1320
|
+
loadData(false);
|
|
1321
|
+
};
|
|
1322
|
+
|
|
1254
1323
|
var openFamilyMember = /*#__PURE__*/function () {
|
|
1255
1324
|
var _ref9 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6(articleId) {
|
|
1256
1325
|
var _readPayload, res, _ref10, data, encontrado;
|
|
@@ -1336,11 +1405,11 @@ var RetailerProductEditionView = function RetailerProductEditionView(_ref) {
|
|
|
1336
1405
|
|
|
1337
1406
|
|
|
1338
1407
|
var handleOnLinkedVariants = function handleOnLinkedVariants(result) {
|
|
1339
|
-
var _state$product$
|
|
1408
|
+
var _state$product$varian2, _state$product13, _result$linked, _result$parentArticle;
|
|
1340
1409
|
|
|
1341
1410
|
if (!result) return;
|
|
1342
1411
|
var updatedProduct = result.mode === "children" ? (0, _objectSpread5.default)((0, _objectSpread5.default)({}, state.product), {}, {
|
|
1343
|
-
variantsCount: ((_state$product$
|
|
1412
|
+
variantsCount: ((_state$product$varian2 = (_state$product13 = state.product) === null || _state$product13 === void 0 ? void 0 : _state$product13.variantsCount) !== null && _state$product$varian2 !== void 0 ? _state$product$varian2 : 0) + ((_result$linked = result.linked) !== null && _result$linked !== void 0 ? _result$linked : []).length
|
|
1344
1413
|
}) : (0, _objectSpread5.default)((0, _objectSpread5.default)({}, state.product), {}, {
|
|
1345
1414
|
parentArticleId: (_result$parentArticle = result.parentArticleId) !== null && _result$parentArticle !== void 0 ? _result$parentArticle : null,
|
|
1346
1415
|
variantsCount: 0
|
|
@@ -1361,16 +1430,16 @@ var RetailerProductEditionView = function RetailerProductEditionView(_ref) {
|
|
|
1361
1430
|
*/
|
|
1362
1431
|
|
|
1363
1432
|
try {
|
|
1364
|
-
var _sessionStorage$
|
|
1433
|
+
var _sessionStorage$getIt2;
|
|
1365
1434
|
|
|
1366
|
-
var guardado = JSON.parse((_sessionStorage$
|
|
1435
|
+
var guardado = JSON.parse((_sessionStorage$getIt2 = sessionStorage.getItem("productSelected")) !== null && _sessionStorage$getIt2 !== void 0 ? _sessionStorage$getIt2 : "null");
|
|
1367
1436
|
|
|
1368
1437
|
if (guardado) {
|
|
1369
|
-
var _updatedProduct$
|
|
1438
|
+
var _updatedProduct$paren2;
|
|
1370
1439
|
|
|
1371
1440
|
sessionStorage.setItem("productSelected", JSON.stringify((0, _objectSpread5.default)((0, _objectSpread5.default)({}, guardado), {}, {
|
|
1372
1441
|
variantsCount: updatedProduct.variantsCount,
|
|
1373
|
-
parentArticleId: (_updatedProduct$
|
|
1442
|
+
parentArticleId: (_updatedProduct$paren2 = updatedProduct.parentArticleId) !== null && _updatedProduct$paren2 !== void 0 ? _updatedProduct$paren2 : null
|
|
1374
1443
|
})));
|
|
1375
1444
|
}
|
|
1376
1445
|
} catch (error) {
|
|
@@ -1415,7 +1484,7 @@ var RetailerProductEditionView = function RetailerProductEditionView(_ref) {
|
|
|
1415
1484
|
|
|
1416
1485
|
var handleOnRestoreInheritance = /*#__PURE__*/function () {
|
|
1417
1486
|
var _ref11 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7(attributeId) {
|
|
1418
|
-
var _state$
|
|
1487
|
+
var _state$product14;
|
|
1419
1488
|
|
|
1420
1489
|
var kind,
|
|
1421
1490
|
esDescripcion,
|
|
@@ -1428,7 +1497,7 @@ var RetailerProductEditionView = function RetailerProductEditionView(_ref) {
|
|
|
1428
1497
|
case 0:
|
|
1429
1498
|
kind = _args7.length > 1 && _args7[1] !== undefined ? _args7[1] : "attribute";
|
|
1430
1499
|
|
|
1431
|
-
if (!(!attributeId || !((_state$
|
|
1500
|
+
if (!(!attributeId || !((_state$product14 = state.product) !== null && _state$product14 !== void 0 && _state$product14.id_article))) {
|
|
1432
1501
|
_context7.next = 3;
|
|
1433
1502
|
break;
|
|
1434
1503
|
}
|
|
@@ -1528,7 +1597,8 @@ var RetailerProductEditionView = function RetailerProductEditionView(_ref) {
|
|
|
1528
1597
|
|
|
1529
1598
|
var handleOnClickSave = /*#__PURE__*/function () {
|
|
1530
1599
|
var _ref12 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8() {
|
|
1531
|
-
var
|
|
1600
|
+
var _familia$variants, cambios, familia, hijos;
|
|
1601
|
+
|
|
1532
1602
|
return _regenerator.default.wrap(function _callee8$(_context8) {
|
|
1533
1603
|
while (1) {
|
|
1534
1604
|
switch (_context8.prev = _context8.next) {
|
|
@@ -1542,7 +1612,7 @@ var RetailerProductEditionView = function RetailerProductEditionView(_ref) {
|
|
|
1542
1612
|
|
|
1543
1613
|
case 2:
|
|
1544
1614
|
_context8.t0 = state.active_tab;
|
|
1545
|
-
_context8.next = _context8.t0 === "Descripción" ? 5 : _context8.t0 === "Ficha técnica" ? 8 : _context8.t0 === "Imágenes" ?
|
|
1615
|
+
_context8.next = _context8.t0 === "Descripción" ? 5 : _context8.t0 === "Ficha técnica" ? 8 : _context8.t0 === "Imágenes" ? 32 : 35;
|
|
1546
1616
|
break;
|
|
1547
1617
|
|
|
1548
1618
|
case 5:
|
|
@@ -1550,57 +1620,134 @@ var RetailerProductEditionView = function RetailerProductEditionView(_ref) {
|
|
|
1550
1620
|
return saveDescriptions(token);
|
|
1551
1621
|
|
|
1552
1622
|
case 7:
|
|
1553
|
-
return _context8.abrupt("break",
|
|
1623
|
+
return _context8.abrupt("break", 36);
|
|
1554
1624
|
|
|
1555
1625
|
case 8:
|
|
1556
|
-
// Guardar un padre con hijos abre la decisión de propagar. Sin este
|
|
1557
|
-
// paso el cambio se queda solo en el padre y los hijos se van
|
|
1558
|
-
// separando de él sin que nadie lo note.
|
|
1559
|
-
esPadre = hijosDelProducto > 0;
|
|
1560
1626
|
cambios = cambiosDeFichaTecnica();
|
|
1561
1627
|
|
|
1562
|
-
if (!(
|
|
1563
|
-
_context8.next =
|
|
1628
|
+
if (!(cambios.length === 0)) {
|
|
1629
|
+
_context8.next = 13;
|
|
1564
1630
|
break;
|
|
1565
1631
|
}
|
|
1566
1632
|
|
|
1633
|
+
_context8.next = 12;
|
|
1634
|
+
return saveDatasheets(token);
|
|
1635
|
+
|
|
1636
|
+
case 12:
|
|
1637
|
+
return _context8.abrupt("break", 36);
|
|
1638
|
+
|
|
1639
|
+
case 13:
|
|
1640
|
+
/*
|
|
1641
|
+
Guardar un padre con hijos abre la decisión de propagar. Sin este paso
|
|
1642
|
+
el cambio se queda solo en el padre y los hijos se van separando de él
|
|
1643
|
+
sin que nadie lo note.
|
|
1644
|
+
Si tiene hijos se resuelve AQUÍ, esperando la respuesta, en vez de
|
|
1645
|
+
mirar la copia en memoria. `family` es una consulta asíncrona: si
|
|
1646
|
+
todavía no llegó, o si falló, `hijosDelProducto` vale 0 — o sea que
|
|
1647
|
+
«todavía no sé» se leía igual que «no tiene hijos», y el padre se
|
|
1648
|
+
guardaba sin ofrecer la propagación. En silencio, que es lo peor: el
|
|
1649
|
+
usuario creía haber bajado el cambio a los hijos.
|
|
1650
|
+
La ficha de la aplicación de clientes no tiene el problema porque ahí
|
|
1651
|
+
`state.product.variantsCount` viene del listado; aquí el producto sale
|
|
1652
|
+
del endpoint de reportes, que no trae el parentesco.
|
|
1653
|
+
*/
|
|
1567
1654
|
setPreparandoPropagacion(true);
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1655
|
+
familia = null;
|
|
1656
|
+
_context8.prev = 15;
|
|
1657
|
+
_context8.next = 18;
|
|
1658
|
+
return loadFamily(true);
|
|
1659
|
+
|
|
1660
|
+
case 18:
|
|
1661
|
+
familia = _context8.sent;
|
|
1662
|
+
|
|
1663
|
+
case 19:
|
|
1664
|
+
_context8.prev = 19;
|
|
1665
|
+
setPreparandoPropagacion(false);
|
|
1666
|
+
return _context8.finish(19);
|
|
1667
|
+
|
|
1668
|
+
case 22:
|
|
1669
|
+
if (!(!familia || familia.error)) {
|
|
1670
|
+
_context8.next = 25;
|
|
1671
|
+
break;
|
|
1672
|
+
}
|
|
1673
|
+
|
|
1674
|
+
dispatch({
|
|
1675
|
+
type: "SET_MODAL",
|
|
1676
|
+
payload: {
|
|
1677
|
+
show: true,
|
|
1678
|
+
title: "No se pudo consultar la familia",
|
|
1679
|
+
message: "No pudimos saber si este producto tiene hijos, así que no sabemos si hay que bajarles el cambio. Vuelve a intentar el guardado; si sigue fallando, guarda y revisa los hijos a mano.",
|
|
1680
|
+
image: _genericModalWarning.default,
|
|
1681
|
+
buttons: [{
|
|
1682
|
+
text: "Entendido",
|
|
1683
|
+
buttonType: "general-white-button",
|
|
1684
|
+
action: function action() {
|
|
1685
|
+
return dispatch({
|
|
1686
|
+
type: "SET_MODAL",
|
|
1687
|
+
payload: {
|
|
1688
|
+
show: false
|
|
1689
|
+
}
|
|
1690
|
+
});
|
|
1691
|
+
}
|
|
1692
|
+
}, {
|
|
1693
|
+
text: "Guardar solo este producto",
|
|
1694
|
+
buttonType: "general-button-default",
|
|
1695
|
+
action: function action() {
|
|
1696
|
+
dispatch({
|
|
1697
|
+
type: "SET_MODAL",
|
|
1698
|
+
payload: {
|
|
1699
|
+
show: false
|
|
1700
|
+
}
|
|
1701
|
+
});
|
|
1702
|
+
saveDatasheets(token);
|
|
1703
|
+
}
|
|
1704
|
+
}]
|
|
1705
|
+
}
|
|
1574
1706
|
});
|
|
1575
1707
|
return _context8.abrupt("return");
|
|
1576
1708
|
|
|
1577
|
-
case
|
|
1578
|
-
|
|
1709
|
+
case 25:
|
|
1710
|
+
hijos = ((_familia$variants = familia.variants) !== null && _familia$variants !== void 0 ? _familia$variants : []).filter(function (v) {
|
|
1711
|
+
return !v.isCurrent;
|
|
1712
|
+
});
|
|
1713
|
+
|
|
1714
|
+
if (!(hijos.length > 0)) {
|
|
1715
|
+
_context8.next = 29;
|
|
1716
|
+
break;
|
|
1717
|
+
}
|
|
1718
|
+
|
|
1719
|
+
setPendingPropagation({
|
|
1720
|
+
cambios: cambios
|
|
1721
|
+
});
|
|
1722
|
+
return _context8.abrupt("return");
|
|
1723
|
+
|
|
1724
|
+
case 29:
|
|
1725
|
+
_context8.next = 31;
|
|
1579
1726
|
return saveDatasheets(token);
|
|
1580
1727
|
|
|
1581
|
-
case
|
|
1582
|
-
return _context8.abrupt("break",
|
|
1728
|
+
case 31:
|
|
1729
|
+
return _context8.abrupt("break", 36);
|
|
1583
1730
|
|
|
1584
|
-
case
|
|
1585
|
-
_context8.next =
|
|
1731
|
+
case 32:
|
|
1732
|
+
_context8.next = 34;
|
|
1586
1733
|
return updateImages(token);
|
|
1587
1734
|
|
|
1588
|
-
case
|
|
1589
|
-
return _context8.abrupt("break",
|
|
1735
|
+
case 34:
|
|
1736
|
+
return _context8.abrupt("break", 36);
|
|
1590
1737
|
|
|
1591
|
-
case
|
|
1592
|
-
return _context8.abrupt("break",
|
|
1738
|
+
case 35:
|
|
1739
|
+
return _context8.abrupt("break", 36);
|
|
1593
1740
|
|
|
1594
|
-
case
|
|
1595
|
-
_context8.next =
|
|
1741
|
+
case 36:
|
|
1742
|
+
_context8.next = 38;
|
|
1596
1743
|
return loadData(false);
|
|
1597
1744
|
|
|
1598
|
-
case
|
|
1745
|
+
case 38:
|
|
1599
1746
|
case "end":
|
|
1600
1747
|
return _context8.stop();
|
|
1601
1748
|
}
|
|
1602
1749
|
}
|
|
1603
|
-
}, _callee8);
|
|
1750
|
+
}, _callee8, null, [[15,, 19, 22]]);
|
|
1604
1751
|
}));
|
|
1605
1752
|
|
|
1606
1753
|
return function handleOnClickSave() {
|
|
@@ -2536,16 +2683,22 @@ var RetailerProductEditionView = function RetailerProductEditionView(_ref) {
|
|
|
2536
2683
|
saveDatasheets(token, propagation !== null && propagation !== void 0 ? propagation : undefined);
|
|
2537
2684
|
}
|
|
2538
2685
|
}), showLinkVariants && /*#__PURE__*/(0, _jsxRuntime.jsx)(_LinkVariantsModal.LinkVariantsModal, {
|
|
2539
|
-
articleId: (_state$
|
|
2540
|
-
articleName: (_state$
|
|
2541
|
-
articleUpc: (_state$
|
|
2686
|
+
articleId: (_state$product15 = state.product) === null || _state$product15 === void 0 ? void 0 : _state$product15.id_article,
|
|
2687
|
+
articleName: (_state$product16 = state.product) === null || _state$product16 === void 0 ? void 0 : _state$product16.name,
|
|
2688
|
+
articleUpc: (_state$product17 = state.product) === null || _state$product17 === void 0 ? void 0 : _state$product17.upc,
|
|
2542
2689
|
activeRetailerId: (_state$active_retaile5 = state.active_retailer) === null || _state$active_retaile5 === void 0 ? void 0 : _state$active_retaile5.id_retailer,
|
|
2543
2690
|
token: token,
|
|
2544
2691
|
onClose: function onClose() {
|
|
2545
2692
|
return setShowLinkVariants(false);
|
|
2546
2693
|
},
|
|
2547
2694
|
onLinked: handleOnLinkedVariants
|
|
2548
|
-
}),
|
|
2695
|
+
}), porDesvincular && /*#__PURE__*/(0, _jsxRuntime.jsx)(_UnlinkVariantModal.UnlinkVariantModal, (0, _objectSpread5.default)((0, _objectSpread5.default)({}, porDesvincular), {}, {
|
|
2696
|
+
token: token,
|
|
2697
|
+
onClose: function onClose() {
|
|
2698
|
+
return setPorDesvincular(null);
|
|
2699
|
+
},
|
|
2700
|
+
onUnlinked: handleOnUnlinked
|
|
2701
|
+
})), showRejectModal && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Modal.Modal, {
|
|
2549
2702
|
title: rejectAll ? "Agregar mensaje para rechazar todo" : "Agregar mensaje de rechazo",
|
|
2550
2703
|
show: showRejectModal,
|
|
2551
2704
|
customComponent: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.TagAndInput, {
|
|
@@ -2699,7 +2852,7 @@ var RetailerProductEditionView = function RetailerProductEditionView(_ref) {
|
|
|
2699
2852
|
lists: state.images_values || [],
|
|
2700
2853
|
activeImage: (_state$images_values10 = state.images_values) !== null && _state$images_values10 !== void 0 && _state$images_values10.values ? (_state$images_values11 = state.images_values) === null || _state$images_values11 === void 0 ? void 0 : _state$images_values11.values[state.current_image] : {},
|
|
2701
2854
|
assignationsImages: state.collaborator_assignations["Imágenes"],
|
|
2702
|
-
imagesStatus: ((_state$
|
|
2855
|
+
imagesStatus: ((_state$product18 = state.product) === null || _state$product18 === void 0 ? void 0 : _state$product18.images_status) || "-",
|
|
2703
2856
|
retailerSelected: (_state$active_retaile8 = state.active_retailer) === null || _state$active_retaile8 === void 0 ? void 0 : _state$active_retaile8.id_retailer,
|
|
2704
2857
|
isRetailer: isRetailer,
|
|
2705
2858
|
version: state.product.version,
|
|
@@ -2763,40 +2916,80 @@ var RetailerProductEditionView = function RetailerProductEditionView(_ref) {
|
|
|
2763
2916
|
}), (family === null || family === void 0 ? void 0 : family.error) && /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
2764
2917
|
className: "loading",
|
|
2765
2918
|
children: "No se pudo cargar la familia de este producto."
|
|
2766
|
-
}), (family === null || family === void 0 ? void 0 : family.parent) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
disabled: loadingVariant !== null,
|
|
2770
|
-
onClick: function onClick() {
|
|
2771
|
-
return openFamilyMember(family.parent.articleId);
|
|
2772
|
-
},
|
|
2773
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
2774
|
-
className: "role",
|
|
2775
|
-
children: loadingVariant === family.parent.articleId ? "Abriendo…" : "Producto padre"
|
|
2776
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
2777
|
-
className: "name",
|
|
2778
|
-
children: family.parent.name
|
|
2779
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
2780
|
-
className: "upc",
|
|
2781
|
-
children: family.parent.upc
|
|
2782
|
-
})]
|
|
2783
|
-
}), family === null || family === void 0 ? void 0 : (_family$variants3 = family.variants) === null || _family$variants3 === void 0 ? void 0 : _family$variants3.map(function (variant) {
|
|
2784
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("button", {
|
|
2919
|
+
}), (family === null || family === void 0 ? void 0 : family.parent) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
2920
|
+
className: "family-item",
|
|
2921
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("button", {
|
|
2785
2922
|
type: "button",
|
|
2786
|
-
className: "family-row
|
|
2787
|
-
disabled:
|
|
2923
|
+
className: "family-row parent",
|
|
2924
|
+
disabled: loadingVariant !== null,
|
|
2788
2925
|
onClick: function onClick() {
|
|
2789
|
-
return openFamilyMember(
|
|
2926
|
+
return openFamilyMember(family.parent.articleId);
|
|
2790
2927
|
},
|
|
2791
2928
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
2792
2929
|
className: "role",
|
|
2793
|
-
children: loadingVariant ===
|
|
2930
|
+
children: loadingVariant === family.parent.articleId ? "Abriendo…" : "Producto padre"
|
|
2794
2931
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
2795
2932
|
className: "name",
|
|
2796
|
-
children:
|
|
2933
|
+
children: family.parent.name
|
|
2797
2934
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
2798
2935
|
className: "upc",
|
|
2799
|
-
children:
|
|
2936
|
+
children: family.parent.upc
|
|
2937
|
+
})]
|
|
2938
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
2939
|
+
type: "button",
|
|
2940
|
+
className: "desvincular",
|
|
2941
|
+
title: "Dejar de ser hijo de este producto",
|
|
2942
|
+
onClick: function onClick() {
|
|
2943
|
+
var _state$product19, _state$product20, _state$product21;
|
|
2944
|
+
|
|
2945
|
+
return setPorDesvincular({
|
|
2946
|
+
mode: "self",
|
|
2947
|
+
childArticleId: (_state$product19 = state.product) === null || _state$product19 === void 0 ? void 0 : _state$product19.id_article,
|
|
2948
|
+
childName: (_state$product20 = state.product) === null || _state$product20 === void 0 ? void 0 : _state$product20.name,
|
|
2949
|
+
childUpc: (_state$product21 = state.product) === null || _state$product21 === void 0 ? void 0 : _state$product21.upc,
|
|
2950
|
+
parentName: family.parent.name,
|
|
2951
|
+
parentUpc: family.parent.upc
|
|
2952
|
+
});
|
|
2953
|
+
},
|
|
2954
|
+
children: "Desvincular"
|
|
2955
|
+
})]
|
|
2956
|
+
}), family === null || family === void 0 ? void 0 : (_family$variants3 = family.variants) === null || _family$variants3 === void 0 ? void 0 : _family$variants3.map(function (variant) {
|
|
2957
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
2958
|
+
className: "family-item",
|
|
2959
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("button", {
|
|
2960
|
+
type: "button",
|
|
2961
|
+
className: "family-row".concat(variant.isCurrent ? " current" : ""),
|
|
2962
|
+
disabled: variant.isCurrent || loadingVariant !== null,
|
|
2963
|
+
onClick: function onClick() {
|
|
2964
|
+
return openFamilyMember(variant.articleId);
|
|
2965
|
+
},
|
|
2966
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
2967
|
+
className: "role",
|
|
2968
|
+
children: loadingVariant === variant.articleId ? "Abriendo…" : variant.isCurrent ? "Estás aquí" : "Hijo"
|
|
2969
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
2970
|
+
className: "name",
|
|
2971
|
+
children: variant.name
|
|
2972
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
2973
|
+
className: "upc",
|
|
2974
|
+
children: variant.upc
|
|
2975
|
+
})]
|
|
2976
|
+
}), !family.parent && !variant.isCurrent && /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
2977
|
+
type: "button",
|
|
2978
|
+
className: "desvincular",
|
|
2979
|
+
title: "Desvincular este hijo",
|
|
2980
|
+
onClick: function onClick() {
|
|
2981
|
+
var _state$product22, _state$product23;
|
|
2982
|
+
|
|
2983
|
+
return setPorDesvincular({
|
|
2984
|
+
mode: "child",
|
|
2985
|
+
childArticleId: variant.articleId,
|
|
2986
|
+
childName: variant.name,
|
|
2987
|
+
childUpc: variant.upc,
|
|
2988
|
+
parentName: (_state$product22 = state.product) === null || _state$product22 === void 0 ? void 0 : _state$product22.name,
|
|
2989
|
+
parentUpc: (_state$product23 = state.product) === null || _state$product23 === void 0 ? void 0 : _state$product23.upc
|
|
2990
|
+
});
|
|
2991
|
+
},
|
|
2992
|
+
children: "Desvincular"
|
|
2800
2993
|
})]
|
|
2801
2994
|
}, variant.articleId);
|
|
2802
2995
|
}), family && !family.error && !((_family$variants4 = family.variants) !== null && _family$variants4 !== void 0 && _family$variants4.length) && /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
@@ -2864,7 +3057,7 @@ var RetailerProductEditionView = function RetailerProductEditionView(_ref) {
|
|
|
2864
3057
|
className: "services-information-container " + (imageLayout && state.active_tab === "Imágenes" ? "image-services" : ""),
|
|
2865
3058
|
id: "services-information-container",
|
|
2866
3059
|
children: state.saving ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Loading.Loading, {}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
2867
|
-
children: [state.active_tab === "Descripción" && (((_state$
|
|
3060
|
+
children: [state.active_tab === "Descripción" && (((_state$product24 = state.product) === null || _state$product24 === void 0 ? void 0 : _state$product24.description_status) !== "NS" ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_InputGroup.InputGroup, {
|
|
2868
3061
|
activeSection: state.active_tab,
|
|
2869
3062
|
inputGroup: state.descriptions_inputs[0],
|
|
2870
3063
|
updatedDescriptions: state.updated_descriptions_inputs
|
|
@@ -2873,7 +3066,7 @@ var RetailerProductEditionView = function RetailerProductEditionView(_ref) {
|
|
|
2873
3066
|
,
|
|
2874
3067
|
variant: (_state$services2 = state.services) === null || _state$services2 === void 0 ? void 0 : (_state$services2$data = _state$services2.datasheets) === null || _state$services2$data === void 0 ? void 0 : _state$services2$data.variant,
|
|
2875
3068
|
onRestoreInheritance: handleOnRestoreInheritance,
|
|
2876
|
-
articleId: (_state$
|
|
3069
|
+
articleId: (_state$product25 = state.product) === null || _state$product25 === void 0 ? void 0 : _state$product25.id_article,
|
|
2877
3070
|
version: state.product.version,
|
|
2878
3071
|
auditInputGroup: auditDescriptions[0],
|
|
2879
3072
|
setUpdatedDescriptions: handleOnSetUpdatedDescriptions,
|
|
@@ -2882,7 +3075,7 @@ var RetailerProductEditionView = function RetailerProductEditionView(_ref) {
|
|
|
2882
3075
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
2883
3076
|
text: "No cuentas con este servicio",
|
|
2884
3077
|
headerType: "input-name-header"
|
|
2885
|
-
})), state.active_tab === "Ficha técnica" && (((_state$
|
|
3078
|
+
})), state.active_tab === "Ficha técnica" && (((_state$product26 = state.product) === null || _state$product26 === void 0 ? void 0 : _state$product26.datasheet_status) !== "NS" ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
2886
3079
|
children: (_state$datasheets_inp = state.datasheets_inputs[0]) === null || _state$datasheets_inp === void 0 ? void 0 : (_state$datasheets_inp2 = _state$datasheets_inp.data) === null || _state$datasheets_inp2 === void 0 ? void 0 : _state$datasheets_inp2.map(function (dataGroup, index) {
|
|
2887
3080
|
var _state$services3, _state$services3$data;
|
|
2888
3081
|
|
|
@@ -2903,7 +3096,7 @@ var RetailerProductEditionView = function RetailerProductEditionView(_ref) {
|
|
|
2903
3096
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
2904
3097
|
text: "No cuentas con este servicio",
|
|
2905
3098
|
headerType: "input-name-header"
|
|
2906
|
-
})), state.active_tab === "Imágenes" && (((_state$
|
|
3099
|
+
})), state.active_tab === "Imágenes" && (((_state$product27 = state.product) === null || _state$product27 === void 0 ? void 0 : _state$product27.images_status) !== "NS" ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
2907
3100
|
children: [!imageLayout && /*#__PURE__*/(0, _jsxRuntime.jsx)(_GalleryHeader.GalleryHeader, {
|
|
2908
3101
|
checkAll: state.all_image_checked // Determina si el checkbox "Seleccionar todo" está marcado
|
|
2909
3102
|
,
|
|
@@ -18,9 +18,9 @@ var _templateObject;
|
|
|
18
18
|
// Rosa ContentOh, el mismo del modal de ligar productos.
|
|
19
19
|
var PINK = "#E13AA8";
|
|
20
20
|
|
|
21
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: column;\n height: 100%;\n flex: 1;\n overflow: auto;\n\n .data-container {\n display: flex;\n flex: 0%;\n height: calc(100% - ", "px);\n .image-data-panel {\n width: 340px;\n\n & + * {\n margin-left: 10px;\n }\n }\n\n .product-information {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n\n .services-information-container {\n height: 100%;\n overflow: auto;\n }\n\n .image-services {\n aside {\n display: grid;\n grid-template-columns: repeat(auto-fill, 179px);\n column-gap: 15px;\n row-gap: 15px;\n padding: 20px;\n }\n }\n\n .commentary-box {\n display: flex;\n justify-content: space-between;\n align-items: flex-end;\n padding: 10px;\n padding-left: 0;\n\n .action-buttons{\n display: flex;\n flex-direction: column;\n gap: 1rem;\n }\n\n .commentary {\n display: flex;\n align-items: flex-end;\n\n .input-container {\n width: 500px;\n\n .quill {\n height: 100px;\n }\n\n & + * {\n margin-left: 5px;\n }\n }\n\n .buttons-box {\n display: flex;\n width: 210px;\n flex-wrap: wrap;\n\n .general-transparent-button {\n & + * {\n margin-top: 5px;\n }\n }\n\n .general-transparent-button,\n .general-green-button,\n .general-button-disabled {\n width: fit-content;\n min-width: 201px;\n height: 40px;\n }\n }\n }\n }\n\n .feedback-box {\n display: flex;\n }\n\n .required-inputs-message {\n font-family: ", ";\n font-size: 13px;\n color: ", ";\n padding: 10px;\n display: flex;\n align-items: center;\n\n p + * {\n margin-top: 10px;\n }\n\n button {\n min-width: fit-content;\n }\n }\n }\n }\n #modal-message-box {\n width: 400px;\n height: 100px;\n }\n .container {\n width: 100%;\n height: 90%;\n .dropzone {\n height: 100%;\n width: 100%;\n position: relative;\n transition: all 0.5s ease;\n\n &.drag-active {\n background-color: rgba(", ", 0.05);\n border: 2px dashed ", ";\n border-radius: 8px;\n\n aside {\n opacity: 0.3;\n pointer-events: none;\n }\n }\n\n .drag-overlay {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: rgba(", ", 0.1);\n border-radius: 8px;\n pointer-events: none;\n z-index: 10;\n\n p {\n font-family: ", ";\n font-size: 24px;\n font-weight: 600;\n color: ", ";\n text-align: center;\n padding: 20px;\n background-color: ", ";\n border-radius: 8px;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\n }\n }\n }\n }\n\n .variants-actions {\n display: flex;\n align-items: center;\n gap: 10px;\n margin-bottom: 8px;\n\n .link-variants {\n border: 1px solid ", ";\n border-radius: 6px;\n background: none;\n padding: 6px 12px;\n font-family: ", ";\n font-size: 11px;\n color: ", ";\n cursor: pointer;\n }\n\n .variants-count {\n border: none;\n background: none;\n padding: 0;\n cursor: pointer;\n font-family: ", ";\n font-size: 11px;\n color: ", ";\n text-decoration: underline;\n }\n }\n\n .variants-family {\n display: flex;\n flex-direction: column;\n gap: 4px;\n margin-bottom: 10px;\n padding: 8px;\n border: 1px solid ", ";\n border-radius: 6px;\n\n .loading {\n margin: 0;\n font-family: ", ";\n font-size: 11px;\n color: ", ";\n }\n\n .family-row {\n display: flex;\n align-items: baseline;\n gap: 8px;\n padding: 6px 8px;\n border: none;\n border-radius: 4px;\n background: none;\n cursor: pointer;\n text-align: left;\n font-family: ", ";\n font-size: 12px;\n color: ", ";\n }\n\n .family-row:hover:not(:disabled) {\n background-color: ", ";\n }\n\n .family-row:disabled {\n cursor: default;\n opacity: 0.7;\n }\n\n .family-row .role {\n min-width: 96px;\n font-size: 10px;\n color: ", ";\n }\n\n .family-row.current .role {\n color: ", ";\n }\n\n .family-row .name {\n flex: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .family-row .upc {\n font-size: 11px;\n color: ", ";\n }\n }\n"])), function (_ref) {
|
|
21
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: column;\n height: 100%;\n flex: 1;\n overflow: auto;\n\n .data-container {\n display: flex;\n flex: 0%;\n height: calc(100% - ", "px);\n .image-data-panel {\n width: 340px;\n\n & + * {\n margin-left: 10px;\n }\n }\n\n .product-information {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n\n .services-information-container {\n height: 100%;\n overflow: auto;\n }\n\n .image-services {\n aside {\n display: grid;\n grid-template-columns: repeat(auto-fill, 179px);\n column-gap: 15px;\n row-gap: 15px;\n padding: 20px;\n }\n }\n\n .commentary-box {\n display: flex;\n justify-content: space-between;\n align-items: flex-end;\n padding: 10px;\n padding-left: 0;\n\n .action-buttons{\n display: flex;\n flex-direction: column;\n gap: 1rem;\n }\n\n .commentary {\n display: flex;\n align-items: flex-end;\n\n .input-container {\n width: 500px;\n\n .quill {\n height: 100px;\n }\n\n & + * {\n margin-left: 5px;\n }\n }\n\n .buttons-box {\n display: flex;\n width: 210px;\n flex-wrap: wrap;\n\n .general-transparent-button {\n & + * {\n margin-top: 5px;\n }\n }\n\n .general-transparent-button,\n .general-green-button,\n .general-button-disabled {\n width: fit-content;\n min-width: 201px;\n height: 40px;\n }\n }\n }\n }\n\n .feedback-box {\n display: flex;\n }\n\n .required-inputs-message {\n font-family: ", ";\n font-size: 13px;\n color: ", ";\n padding: 10px;\n display: flex;\n align-items: center;\n\n p + * {\n margin-top: 10px;\n }\n\n button {\n min-width: fit-content;\n }\n }\n }\n }\n #modal-message-box {\n width: 400px;\n height: 100px;\n }\n .container {\n width: 100%;\n height: 90%;\n .dropzone {\n height: 100%;\n width: 100%;\n position: relative;\n transition: all 0.5s ease;\n\n &.drag-active {\n background-color: rgba(", ", 0.05);\n border: 2px dashed ", ";\n border-radius: 8px;\n\n aside {\n opacity: 0.3;\n pointer-events: none;\n }\n }\n\n .drag-overlay {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: rgba(", ", 0.1);\n border-radius: 8px;\n pointer-events: none;\n z-index: 10;\n\n p {\n font-family: ", ";\n font-size: 24px;\n font-weight: 600;\n color: ", ";\n text-align: center;\n padding: 20px;\n background-color: ", ";\n border-radius: 8px;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\n }\n }\n }\n }\n\n .variants-actions {\n display: flex;\n align-items: center;\n gap: 10px;\n margin-bottom: 8px;\n\n .link-variants {\n border: 1px solid ", ";\n border-radius: 6px;\n background: none;\n padding: 6px 12px;\n font-family: ", ";\n font-size: 11px;\n color: ", ";\n cursor: pointer;\n }\n\n .variants-count {\n border: none;\n background: none;\n padding: 0;\n cursor: pointer;\n font-family: ", ";\n font-size: 11px;\n color: ", ";\n text-decoration: underline;\n }\n }\n\n .variants-family {\n display: flex;\n flex-direction: column;\n gap: 4px;\n margin-bottom: 10px;\n padding: 8px;\n border: 1px solid ", ";\n border-radius: 6px;\n\n .loading {\n margin: 0;\n font-family: ", ";\n font-size: 11px;\n color: ", ";\n }\n\n /* La fila es un bot\xF3n que navega; desvincular tiene que quedar FUERA de\n \xE9l \u2014un bot\xF3n dentro de otro no es HTML v\xE1lido y el clic se confunde\u2014. */\n .family-item {\n display: flex;\n align-items: center;\n gap: 4px;\n }\n\n .family-item .family-row {\n flex: 1;\n min-width: 0;\n }\n\n .desvincular {\n flex-shrink: 0;\n border: none;\n background: none;\n padding: 4px 6px;\n cursor: pointer;\n font-family: ", ";\n font-size: 10px;\n color: ", ";\n text-decoration: underline;\n white-space: nowrap;\n }\n\n .desvincular:hover {\n color: ", ";\n }\n\n .family-row {\n display: flex;\n align-items: baseline;\n gap: 8px;\n padding: 6px 8px;\n border: none;\n border-radius: 4px;\n background: none;\n cursor: pointer;\n text-align: left;\n font-family: ", ";\n font-size: 12px;\n color: ", ";\n }\n\n .family-row:hover:not(:disabled) {\n background-color: ", ";\n }\n\n .family-row:disabled {\n cursor: default;\n opacity: 0.7;\n }\n\n .family-row .role {\n min-width: 96px;\n font-size: 10px;\n color: ", ";\n }\n\n .family-row.current .role {\n color: ", ";\n }\n\n .family-row .name {\n flex: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .family-row .upc {\n font-size: 11px;\n color: ", ";\n }\n }\n"])), function (_ref) {
|
|
22
22
|
var headerTop = _ref.headerTop;
|
|
23
23
|
return headerTop;
|
|
24
|
-
}, _variables.FontFamily.AvenirNext, _variables.GlobalColors.color_gray, _variables.GlobalColors.rgb_color_pink, _variables.GlobalColors.color_pink, _variables.GlobalColors.rgb_color_pink, _variables.FontFamily.AvenirNext, _variables.GlobalColors.color_pink, _variables.GlobalColors.white, PINK, _variables.FontFamily.Raleway_600, PINK, _variables.FontFamily.Raleway_500, _variables.GlobalColors.gray, _variables.GlobalColors.s2, _variables.FontFamily.Raleway_500, _variables.GlobalColors.gray, _variables.FontFamily.Raleway_500, _variables.GlobalColors.deep_gray, _variables.GlobalColors.s2, PINK, _variables.GlobalColors.gray, _variables.GlobalColors.gray);
|
|
24
|
+
}, _variables.FontFamily.AvenirNext, _variables.GlobalColors.color_gray, _variables.GlobalColors.rgb_color_pink, _variables.GlobalColors.color_pink, _variables.GlobalColors.rgb_color_pink, _variables.FontFamily.AvenirNext, _variables.GlobalColors.color_pink, _variables.GlobalColors.white, PINK, _variables.FontFamily.Raleway_600, PINK, _variables.FontFamily.Raleway_500, _variables.GlobalColors.gray, _variables.GlobalColors.s2, _variables.FontFamily.Raleway_500, _variables.GlobalColors.gray, _variables.FontFamily.Raleway_500, _variables.GlobalColors.gray, PINK, _variables.FontFamily.Raleway_500, _variables.GlobalColors.deep_gray, _variables.GlobalColors.s2, PINK, _variables.GlobalColors.gray, _variables.GlobalColors.gray);
|
|
25
25
|
|
|
26
26
|
exports.Container = Container;
|