contentoh-components-library 21.6.27 → 21.6.29

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.
@@ -67,6 +67,8 @@ var _InputGroup = require("../../organisms/InputGroup");
67
67
 
68
68
  var _LinkVariantsModal = require("../../organisms/LinkVariantsModal");
69
69
 
70
+ var _PropagateChangesModal = require("../../organisms/PropagateChangesModal");
71
+
70
72
  var _api = require("../../organisms/LinkVariantsModal/api");
71
73
 
72
74
  var _ProductImageModal = require("../../organisms/ProductImageModal");
@@ -88,7 +90,7 @@ var _AiProductEdition = require("../../../contexts/AiProductEdition");
88
90
  var _jsxRuntime = require("react/jsx-runtime");
89
91
 
90
92
  var ProviderProductEditionView = function ProviderProductEditionView(_ref) {
91
- var _location$state4, _state$product2, _state$product3, _state$product4, _state$product5, _state$product6, _state$product7, _state$product14, _state$product15, _state$product16, _state$active_retaile3, _location$state5, _location$state6, _state$active_retaile4, _state$active_retaile5, _state$images_values$2, _state$images_values10, _state$images_values11, _state$active_retaile6, _state$product17, _state$product18, _state$product19, _state$product20, _family$variants, _family$variants2, _state$active_percent, _state$active_percent2, _state$active_retaile7, _state$active_retaile8, _state$active_retaile9, _state$product21, _state$descriptions_i, _state$product22, _state$product23, _state$datasheets_inp, _state$datasheets_inp2, _state$datasheets_inp3, _state$product24, _state$images_values12;
93
+ var _location$state4, _state$product2, _state$product3, _state$product4, _state$product5, _state$product6, _state$product7, _family$variants2, _state$product15, _state$product16, _state$product17, _state$active_retaile4, _location$state5, _location$state6, _state$active_retaile5, _state$active_retaile6, _state$images_values$2, _state$images_values10, _state$images_values11, _state$active_retaile7, _state$product18, _state$product19, _state$product20, _state$product21, _family$variants3, _family$variants4, _family$variants5, _state$active_percent, _state$active_percent2, _state$active_retaile8, _state$active_retaile9, _state$active_retaile10, _state$product22, _state$descriptions_i, _state$product23, _state$product24, _state$datasheets_inp, _state$datasheets_inp2, _state$datasheets_inp3, _state$product25, _state$images_values12;
92
94
 
93
95
  var tabsSections = _ref.tabsSections,
94
96
  _ref$productSelected = _ref.productSelected,
@@ -148,39 +150,49 @@ var ProviderProductEditionView = function ProviderProductEditionView(_ref) {
148
150
  loadingVariant = _useState12[0],
149
151
  setLoadingVariant = _useState12[1];
150
152
 
151
- var _useState13 = (0, _react.useState)(false),
153
+ var _useState13 = (0, _react.useState)(null),
152
154
  _useState14 = (0, _slicedToArray2.default)(_useState13, 2),
153
- showRejectModal = _useState14[0],
154
- setShowRejectModal = _useState14[1];
155
+ pendingPropagation = _useState14[0],
156
+ setPendingPropagation = _useState14[1];
155
157
 
156
- var _useState15 = (0, _react.useState)(0),
158
+ var _useState15 = (0, _react.useState)(false),
157
159
  _useState16 = (0, _slicedToArray2.default)(_useState15, 2),
158
- headerTop = _useState16[0],
159
- setHeaderTop = _useState16[1];
160
+ preparandoPropagacion = _useState16[0],
161
+ setPreparandoPropagacion = _useState16[1];
160
162
 
161
- var _useState17 = (0, _react.useState)({}),
163
+ var _useState17 = (0, _react.useState)(false),
162
164
  _useState18 = (0, _slicedToArray2.default)(_useState17, 2),
163
- assig = _useState18[0],
164
- setAssig = _useState18[1];
165
+ showRejectModal = _useState18[0],
166
+ setShowRejectModal = _useState18[1];
165
167
 
166
- var _useState19 = (0, _react.useState)(false),
168
+ var _useState19 = (0, _react.useState)(0),
167
169
  _useState20 = (0, _slicedToArray2.default)(_useState19, 2),
168
- imageLayout = _useState20[0],
169
- setImageLayout = _useState20[1];
170
+ headerTop = _useState20[0],
171
+ setHeaderTop = _useState20[1];
170
172
 
171
- var _useState21 = (0, _react.useState)(false),
173
+ var _useState21 = (0, _react.useState)({}),
172
174
  _useState22 = (0, _slicedToArray2.default)(_useState21, 2),
173
- rejectAll = _useState22[0],
174
- setRejectAll = _useState22[1];
175
+ assig = _useState22[0],
176
+ setAssig = _useState22[1];
177
+
178
+ var _useState23 = (0, _react.useState)(false),
179
+ _useState24 = (0, _slicedToArray2.default)(_useState23, 2),
180
+ imageLayout = _useState24[0],
181
+ setImageLayout = _useState24[1];
175
182
 
176
- var _useState23 = (0, _react.useState)({
183
+ var _useState25 = (0, _react.useState)(false),
184
+ _useState26 = (0, _slicedToArray2.default)(_useState25, 2),
185
+ rejectAll = _useState26[0],
186
+ setRejectAll = _useState26[1];
187
+
188
+ var _useState27 = (0, _react.useState)({
177
189
  "Ficha técnica": null,
178
190
  Descripción: null,
179
191
  Imágenes: null
180
192
  }),
181
- _useState24 = (0, _slicedToArray2.default)(_useState23, 2),
182
- origin = _useState24[0],
183
- setOrigin = _useState24[1];
193
+ _useState28 = (0, _slicedToArray2.default)(_useState27, 2),
194
+ origin = _useState28[0],
195
+ setOrigin = _useState28[1];
184
196
 
185
197
  var _useCloseModal = (0, _customHooks.useCloseModal)("version-selector"),
186
198
  _useCloseModal2 = (0, _slicedToArray2.default)(_useCloseModal, 2),
@@ -790,9 +802,35 @@ var ProviderProductEditionView = function ProviderProductEditionView(_ref) {
790
802
  }
791
803
  });
792
804
  };
805
+ /*
806
+ Los atributos que se acaban de tocar, con el nombre que ve el usuario.
807
+ `updated_datasheets_inputs` trae { attributeId, value } y nada más, así que el
808
+ nombre se busca en los inputs de la cadena activa: un diálogo que preguntara
809
+ por "el atributo 1023" no serviría para decidir nada.
810
+ */
811
+
812
+
813
+ var cambiosDeFichaTecnica = function cambiosDeFichaTecnica() {
814
+ var _state$active_retaile2, _state$services$datas, _state$services, _state$services$datas2, _state$updated_datash;
815
+
816
+ var retailerId = (_state$active_retaile2 = state.active_retailer) === null || _state$active_retaile2 === void 0 ? void 0 : _state$active_retaile2.id_retailer;
817
+ var inputs = (_state$services$datas = (_state$services = state.services) === null || _state$services === void 0 ? void 0 : (_state$services$datas2 = _state$services.datasheets) === null || _state$services$datas2 === void 0 ? void 0 : _state$services$datas2.inputs) !== null && _state$services$datas !== void 0 ? _state$services$datas : {};
818
+ return ((_state$updated_datash = state.updated_datasheets_inputs) !== null && _state$updated_datash !== void 0 ? _state$updated_datash : []).map(function (item) {
819
+ var _input$name;
820
+
821
+ var input = inputs["".concat(item.attributeId, "_").concat(retailerId)];
822
+ return {
823
+ id: Number(item.attributeId),
824
+ name: (_input$name = input === null || input === void 0 ? void 0 : input.name) !== null && _input$name !== void 0 ? _input$name : "Atributo ".concat(item.attributeId),
825
+ value: item.value
826
+ };
827
+ });
828
+ };
793
829
 
794
830
  var handleOnClickSave = function handleOnClickSave() {
795
- if (state.saving) return;
831
+ // `preparandoPropagacion` cubre la ventana entre el clic y la apertura del
832
+ // diálogo: sin esto, dos clics seguidos lanzan dos consultas de familia.
833
+ if (state.saving || preparandoPropagacion) return;
796
834
 
797
835
  switch (state.active_tab) {
798
836
  case "Descripción":
@@ -800,8 +838,33 @@ var ProviderProductEditionView = function ProviderProductEditionView(_ref) {
800
838
  break;
801
839
 
802
840
  case "Ficha técnica":
803
- saveDatasheets(token);
804
- break;
841
+ {
842
+ var _state$product10;
843
+
844
+ // Guardar un padre con variantes abre la decisión de propagar. Sin este
845
+ // paso el cambio se queda solo en el padre y las variantes se van
846
+ // separando de él sin que nadie lo note.
847
+ var esPadre = ((_state$product10 = state.product) === null || _state$product10 === void 0 ? void 0 : _state$product10.variantsCount) > 0;
848
+ var cambios = cambiosDeFichaTecnica();
849
+
850
+ if (esPadre && cambios.length > 0) {
851
+ // Se espera a tener la familia antes de abrir: si no, el diálogo
852
+ // aparece diciendo "0 variantes" hasta que llega la respuesta, que es
853
+ // justo lo contrario de lo que va a preguntar.
854
+ setPreparandoPropagacion(true);
855
+ loadFamily().then(function () {
856
+ return setPendingPropagation({
857
+ cambios: cambios
858
+ });
859
+ }).finally(function () {
860
+ return setPreparandoPropagacion(false);
861
+ });
862
+ return;
863
+ }
864
+
865
+ saveDatasheets(token);
866
+ break;
867
+ }
805
868
 
806
869
  case "Imágenes":
807
870
  updateImages(token);
@@ -847,7 +910,7 @@ var ProviderProductEditionView = function ProviderProductEditionView(_ref) {
847
910
 
848
911
  var loadFamily = /*#__PURE__*/function () {
849
912
  var _ref7 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
850
- var _state$product10, res;
913
+ var _state$product11, res;
851
914
 
852
915
  return _regenerator.default.wrap(function _callee3$(_context3) {
853
916
  while (1) {
@@ -858,13 +921,13 @@ var ProviderProductEditionView = function ProviderProductEditionView(_ref) {
858
921
  break;
859
922
  }
860
923
 
861
- return _context3.abrupt("return");
924
+ return _context3.abrupt("return", family);
862
925
 
863
926
  case 2:
864
927
  _context3.prev = 2;
865
928
  _context3.next = 5;
866
929
  return _axios.default.post("".concat(process.env.REACT_APP_VARIANTS_ENDPOINT, "/family"), {
867
- articleId: (_state$product10 = state.product) === null || _state$product10 === void 0 ? void 0 : _state$product10.id_article
930
+ articleId: (_state$product11 = state.product) === null || _state$product11 === void 0 ? void 0 : _state$product11.id_article
868
931
  }, {
869
932
  headers: {
870
933
  Authorization: token
@@ -912,6 +975,41 @@ var ProviderProductEditionView = function ProviderProductEditionView(_ref) {
912
975
  raíz —que la ficha lea de la URL— toca todas las plataformas y no cabe aquí.
913
976
  */
914
977
 
978
+ /*
979
+ Abre la edición múltiple con las variantes de la familia ya cargadas.
980
+ Esa pantalla lee `multipleEditionList` de sessionStorage —así la deja el
981
+ listado al pulsar "editar varios"— y de cada producto solo usa id_article y
982
+ version. Se reproduce esa forma en vez de inventar otra vía de entrada.
983
+ Va SIN el producto padre a propósito, aunque estemos parados en su ficha: en
984
+ la edición múltiple no existe el diálogo de propagación, así que incluirlo
985
+ abriría un camino para cambiar el padre sin decidir si eso baja a los hijos
986
+ —justo la decisión que la ficha obliga a tomar—. Para editar el padre está su
987
+ propia pantalla.
988
+ */
989
+
990
+
991
+ var openMultipleEdition = function openMultipleEdition() {
992
+ var _family$variants;
993
+
994
+ var variantes = ((_family$variants = family === null || family === void 0 ? void 0 : family.variants) !== null && _family$variants !== void 0 ? _family$variants : []).map(function (variant) {
995
+ var _variant$version;
996
+
997
+ return {
998
+ id_article: variant.articleId,
999
+ version: (_variant$version = variant.version) !== null && _variant$version !== void 0 ? _variant$version : 1
1000
+ };
1001
+ });
1002
+ if (!variantes.length) return;
1003
+
1004
+ try {
1005
+ sessionStorage.setItem("multipleEditionList", JSON.stringify(variantes.sort(function (a, b) {
1006
+ return a.id_article - b.id_article;
1007
+ })));
1008
+ window.location.assign("/products/multipleEdition");
1009
+ } catch (error) {
1010
+ console.error("openMultipleEdition: ", error);
1011
+ }
1012
+ };
915
1013
 
916
1014
  var openVariant = /*#__PURE__*/function () {
917
1015
  var _ref8 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(articleId) {
@@ -997,11 +1095,11 @@ var ProviderProductEditionView = function ProviderProductEditionView(_ref) {
997
1095
 
998
1096
 
999
1097
  var handleOnLinkedVariants = function handleOnLinkedVariants(result) {
1000
- var _state$product$varian, _state$product11, _result$linked, _result$parentArticle;
1098
+ var _state$product$varian, _state$product12, _result$linked, _result$parentArticle;
1001
1099
 
1002
1100
  if (!result) return;
1003
1101
  var updatedProduct = result.mode === "children" ? (0, _objectSpread4.default)((0, _objectSpread4.default)({}, state.product), {}, {
1004
- variantsCount: ((_state$product$varian = (_state$product11 = state.product) === null || _state$product11 === void 0 ? void 0 : _state$product11.variantsCount) !== null && _state$product$varian !== void 0 ? _state$product$varian : 0) + ((_result$linked = result.linked) !== null && _result$linked !== void 0 ? _result$linked : []).length
1102
+ variantsCount: ((_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 : 0) + ((_result$linked = result.linked) !== null && _result$linked !== void 0 ? _result$linked : []).length
1005
1103
  }) : (0, _objectSpread4.default)((0, _objectSpread4.default)({}, state.product), {}, {
1006
1104
  parentArticleId: (_result$parentArticle = result.parentArticleId) !== null && _result$parentArticle !== void 0 ? _result$parentArticle : null,
1007
1105
  variantsCount: 0
@@ -1043,14 +1141,14 @@ var ProviderProductEditionView = function ProviderProductEditionView(_ref) {
1043
1141
 
1044
1142
  var handleOnRestoreInheritance = /*#__PURE__*/function () {
1045
1143
  var _ref9 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5(attributeId) {
1046
- var _state$product12;
1144
+ var _state$product13;
1047
1145
 
1048
1146
  var res, data;
1049
1147
  return _regenerator.default.wrap(function _callee5$(_context5) {
1050
1148
  while (1) {
1051
1149
  switch (_context5.prev = _context5.next) {
1052
1150
  case 0:
1053
- if (!(!attributeId || !((_state$product12 = state.product) !== null && _state$product12 !== void 0 && _state$product12.id_article))) {
1151
+ if (!(!attributeId || !((_state$product13 = state.product) !== null && _state$product13 !== void 0 && _state$product13.id_article))) {
1054
1152
  _context5.next = 2;
1055
1153
  break;
1056
1154
  }
@@ -1137,7 +1235,7 @@ var ProviderProductEditionView = function ProviderProductEditionView(_ref) {
1137
1235
 
1138
1236
  var sendEvaluation = /*#__PURE__*/function () {
1139
1237
  var _ref10 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6(result) {
1140
- var _state$product$id_ord, _state$active_retaile2, _state$product$status, _state$product$status2, _state$product13;
1238
+ var _state$product$id_ord, _state$active_retaile3, _state$product$status, _state$product$status2, _state$product14;
1141
1239
 
1142
1240
  var concept, articleId, orderId, retailerId, evalStatus, data, _newStatuses$newStatu, _state$services_data, res, newStatuses, serviceStatus, updatedStatusByRetailer, updatedProduct, updatedServicesData;
1143
1241
 
@@ -1152,8 +1250,8 @@ var ProviderProductEditionView = function ProviderProductEditionView(_ref) {
1152
1250
  concept = (0, _utils.getConceptByTab)(state.active_tab);
1153
1251
  articleId = state.product.id_article;
1154
1252
  orderId = (_state$product$id_ord = state.product.id_order) !== null && _state$product$id_ord !== void 0 ? _state$product$id_ord : state.product.orderId;
1155
- retailerId = (_state$active_retaile2 = state.active_retailer) === null || _state$active_retaile2 === void 0 ? void 0 : _state$active_retaile2.id_retailer;
1156
- evalStatus = ((_state$product$status = state.product.statusByRetailer) === null || _state$product$status === void 0 ? void 0 : (_state$product$status2 = _state$product$status[retailerId]) === null || _state$product$status2 === void 0 ? void 0 : _state$product$status2[concept]) || state.product["".concat(concept, "_status")] || ((_state$product13 = state.product) === null || _state$product13 === void 0 ? void 0 : _state$product13.version_status);
1253
+ retailerId = (_state$active_retaile3 = state.active_retailer) === null || _state$active_retaile3 === void 0 ? void 0 : _state$active_retaile3.id_retailer;
1254
+ evalStatus = ((_state$product$status = state.product.statusByRetailer) === null || _state$product$status === void 0 ? void 0 : (_state$product$status2 = _state$product$status[retailerId]) === null || _state$product$status2 === void 0 ? void 0 : _state$product$status2[concept]) || state.product["".concat(concept, "_status")] || ((_state$product14 = state.product) === null || _state$product14 === void 0 ? void 0 : _state$product14.version_status);
1157
1255
  data = {
1158
1256
  articleId: articleId,
1159
1257
  orderId: orderId,
@@ -1635,11 +1733,24 @@ var ProviderProductEditionView = function ProviderProductEditionView(_ref) {
1635
1733
  currentVersion: state.product.version,
1636
1734
  setShowVersionSelector: setShowVersionSelector,
1637
1735
  jwt: token
1736
+ }), pendingPropagation && /*#__PURE__*/(0, _jsxRuntime.jsx)(_PropagateChangesModal.PropagateChangesModal, {
1737
+ changedAttributes: pendingPropagation.cambios,
1738
+ variants: ((_family$variants2 = family === null || family === void 0 ? void 0 : family.variants) !== null && _family$variants2 !== void 0 ? _family$variants2 : []).filter(function (v) {
1739
+ return !v.isCurrent;
1740
+ }),
1741
+ saving: state.saving,
1742
+ onCancel: function onCancel() {
1743
+ return setPendingPropagation(null);
1744
+ },
1745
+ onConfirm: function onConfirm(propagation) {
1746
+ setPendingPropagation(null);
1747
+ saveDatasheets(token, propagation !== null && propagation !== void 0 ? propagation : undefined);
1748
+ }
1638
1749
  }), showLinkVariants && /*#__PURE__*/(0, _jsxRuntime.jsx)(_LinkVariantsModal.LinkVariantsModal, {
1639
- articleId: (_state$product14 = state.product) === null || _state$product14 === void 0 ? void 0 : _state$product14.id_article,
1640
- articleName: (_state$product15 = state.product) === null || _state$product15 === void 0 ? void 0 : _state$product15.name,
1641
- articleUpc: (_state$product16 = state.product) === null || _state$product16 === void 0 ? void 0 : _state$product16.upc,
1642
- activeRetailerId: (_state$active_retaile3 = state.active_retailer) === null || _state$active_retaile3 === void 0 ? void 0 : _state$active_retaile3.id_retailer,
1750
+ articleId: (_state$product15 = state.product) === null || _state$product15 === void 0 ? void 0 : _state$product15.id_article,
1751
+ articleName: (_state$product16 = state.product) === null || _state$product16 === void 0 ? void 0 : _state$product16.name,
1752
+ articleUpc: (_state$product17 = state.product) === null || _state$product17 === void 0 ? void 0 : _state$product17.upc,
1753
+ activeRetailerId: (_state$active_retaile4 = state.active_retailer) === null || _state$active_retaile4 === void 0 ? void 0 : _state$active_retaile4.id_retailer,
1643
1754
  token: token,
1644
1755
  onClose: function onClose() {
1645
1756
  return setShowLinkVariants(false);
@@ -1771,8 +1882,8 @@ var ProviderProductEditionView = function ProviderProductEditionView(_ref) {
1771
1882
  productSelected: state.product,
1772
1883
  token: token,
1773
1884
  activeRetailer: {
1774
- id: (_state$active_retaile4 = state.active_retailer) === null || _state$active_retaile4 === void 0 ? void 0 : _state$active_retaile4.id_retailer,
1775
- name: (_state$active_retaile5 = state.active_retailer) === null || _state$active_retaile5 === void 0 ? void 0 : _state$active_retaile5.retailer
1885
+ id: (_state$active_retaile5 = state.active_retailer) === null || _state$active_retaile5 === void 0 ? void 0 : _state$active_retaile5.id_retailer,
1886
+ name: (_state$active_retaile6 = state.active_retailer) === null || _state$active_retaile6 === void 0 ? void 0 : _state$active_retaile6.retailer
1776
1887
  }
1777
1888
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
1778
1889
  className: "data-container",
@@ -1787,8 +1898,8 @@ var ProviderProductEditionView = function ProviderProductEditionView(_ref) {
1787
1898
  lists: state.images_values || [],
1788
1899
  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] : {},
1789
1900
  assignationsImages: assig,
1790
- retailerSelected: (_state$active_retaile6 = state.active_retailer) === null || _state$active_retaile6 === void 0 ? void 0 : _state$active_retaile6.id_retailer,
1791
- imagesStatus: ((_state$product17 = state.product) === null || _state$product17 === void 0 ? void 0 : _state$product17.images_status) || "-",
1901
+ retailerSelected: (_state$active_retaile7 = state.active_retailer) === null || _state$active_retaile7 === void 0 ? void 0 : _state$active_retaile7.id_retailer,
1902
+ imagesStatus: ((_state$product18 = state.product) === null || _state$product18 === void 0 ? void 0 : _state$product18.images_status) || "-",
1792
1903
  isRetailer: isRetailer,
1793
1904
  setShowVersionSelector: setShowVersionSelector,
1794
1905
  version: state.product.version,
@@ -1801,7 +1912,7 @@ var ProviderProductEditionView = function ProviderProductEditionView(_ref) {
1801
1912
  className: "product-information",
1802
1913
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
1803
1914
  className: "product-information",
1804
- children: [!((_state$product18 = state.product) !== null && _state$product18 !== void 0 && _state$product18.parentArticleId) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
1915
+ children: [!((_state$product19 = state.product) !== null && _state$product19 !== void 0 && _state$product19.parentArticleId) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
1805
1916
  className: "variants-actions",
1806
1917
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
1807
1918
  type: "button",
@@ -1810,7 +1921,7 @@ var ProviderProductEditionView = function ProviderProductEditionView(_ref) {
1810
1921
  return setShowLinkVariants(true);
1811
1922
  },
1812
1923
  children: "Ligar productos"
1813
- }), ((_state$product19 = state.product) === null || _state$product19 === void 0 ? void 0 : _state$product19.variantsCount) > 0 && /*#__PURE__*/(0, _jsxRuntime.jsxs)("button", {
1924
+ }), ((_state$product20 = state.product) === null || _state$product20 === void 0 ? void 0 : _state$product20.variantsCount) > 0 && /*#__PURE__*/(0, _jsxRuntime.jsxs)("button", {
1814
1925
  type: "button",
1815
1926
  className: "variants-count",
1816
1927
  "aria-expanded": showFamily,
@@ -1825,7 +1936,7 @@ var ProviderProductEditionView = function ProviderProductEditionView(_ref) {
1825
1936
  children: showFamily ? " ▴" : " ▾"
1826
1937
  })]
1827
1938
  })]
1828
- }), ((_state$product20 = state.product) === null || _state$product20 === void 0 ? void 0 : _state$product20.parentArticleId) && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
1939
+ }), ((_state$product21 = state.product) === null || _state$product21 === void 0 ? void 0 : _state$product21.parentArticleId) && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
1829
1940
  className: "variants-actions",
1830
1941
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("button", {
1831
1942
  type: "button",
@@ -1867,7 +1978,7 @@ var ProviderProductEditionView = function ProviderProductEditionView(_ref) {
1867
1978
  className: "upc",
1868
1979
  children: family.parent.upc
1869
1980
  })]
1870
- }), family === null || family === void 0 ? void 0 : (_family$variants = family.variants) === null || _family$variants === void 0 ? void 0 : _family$variants.map(function (variant) {
1981
+ }), family === null || family === void 0 ? void 0 : (_family$variants3 = family.variants) === null || _family$variants3 === void 0 ? void 0 : _family$variants3.map(function (variant) {
1871
1982
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("button", {
1872
1983
  type: "button",
1873
1984
  className: "family-row".concat(variant.isCurrent ? " current" : ""),
@@ -1886,17 +1997,22 @@ var ProviderProductEditionView = function ProviderProductEditionView(_ref) {
1886
1997
  children: variant.upc
1887
1998
  })]
1888
1999
  }, variant.articleId);
1889
- }), family && !family.error && !((_family$variants2 = family.variants) !== null && _family$variants2 !== void 0 && _family$variants2.length) && /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
2000
+ }), family && !family.error && !((_family$variants4 = family.variants) !== null && _family$variants4 !== void 0 && _family$variants4.length) && /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
1890
2001
  className: "loading",
1891
2002
  children: "Este producto no tiene variantes."
2003
+ }), (family === null || family === void 0 ? void 0 : (_family$variants5 = family.variants) === null || _family$variants5 === void 0 ? void 0 : _family$variants5.length) > 1 && /*#__PURE__*/(0, _jsxRuntime.jsxs)("button", {
2004
+ type: "button",
2005
+ className: "editar-juntas",
2006
+ onClick: openMultipleEdition,
2007
+ children: ["Editar las ", family.variants.length, " variantes juntas"]
1892
2008
  })]
1893
2009
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_FullProductNameHeader.FullProductNameHeader, {
1894
2010
  headerData: state.product,
1895
2011
  percent: (_state$active_percent = state.active_percentage) === null || _state$active_percent === void 0 ? void 0 : (_state$active_percent2 = _state$active_percent.percentagesGeneral) === null || _state$active_percent2 === void 0 ? void 0 : _state$active_percent2.required,
1896
2012
  activeRetailer: {
1897
- id: (_state$active_retaile7 = state.active_retailer) === null || _state$active_retaile7 === void 0 ? void 0 : _state$active_retaile7.id_retailer,
1898
- name: (_state$active_retaile8 = state.active_retailer) === null || _state$active_retaile8 === void 0 ? void 0 : _state$active_retaile8.retailer,
1899
- image: (_state$active_retaile9 = state.active_retailer) === null || _state$active_retaile9 === void 0 ? void 0 : _state$active_retaile9.image
2013
+ id: (_state$active_retaile8 = state.active_retailer) === null || _state$active_retaile8 === void 0 ? void 0 : _state$active_retaile8.id_retailer,
2014
+ name: (_state$active_retaile9 = state.active_retailer) === null || _state$active_retaile9 === void 0 ? void 0 : _state$active_retaile9.retailer,
2015
+ image: (_state$active_retaile10 = state.active_retailer) === null || _state$active_retaile10 === void 0 ? void 0 : _state$active_retaile10.image
1900
2016
  },
1901
2017
  showValidationButtons: canShowValidationButtons(),
1902
2018
  showApproveRejectAll: canShowValidationButtons(),
@@ -1940,11 +2056,11 @@ var ProviderProductEditionView = function ProviderProductEditionView(_ref) {
1940
2056
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
1941
2057
  className: "services-information-container " + (imageLayout && state.active_tab === "Imágenes" ? "image-services" : ""),
1942
2058
  children: state.saving ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Loading.Loading, {}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
1943
- children: [state.active_tab === "Descripción" && (((_state$product21 = state.product) === null || _state$product21 === void 0 ? void 0 : _state$product21.description_status) !== "NS" ? (_state$descriptions_i = state.descriptions_inputs) !== null && _state$descriptions_i !== void 0 && _state$descriptions_i[0] ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_InputGroup.InputGroup, {
2059
+ children: [state.active_tab === "Descripción" && (((_state$product22 = state.product) === null || _state$product22 === void 0 ? void 0 : _state$product22.description_status) !== "NS" ? (_state$descriptions_i = state.descriptions_inputs) !== null && _state$descriptions_i !== void 0 && _state$descriptions_i[0] ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_InputGroup.InputGroup, {
1944
2060
  activeSection: state.active_tab,
1945
2061
  inputGroup: state.descriptions_inputs[0],
1946
2062
  updatedDescriptions: state.updated_descriptions_inputs,
1947
- articleId: (_state$product22 = state.product) === null || _state$product22 === void 0 ? void 0 : _state$product22.id_article,
2063
+ articleId: (_state$product23 = state.product) === null || _state$product23 === void 0 ? void 0 : _state$product23.id_article,
1948
2064
  version: state.product.version,
1949
2065
  isShowbox: false,
1950
2066
  dinamicHeight: true,
@@ -1956,9 +2072,9 @@ var ProviderProductEditionView = function ProviderProductEditionView(_ref) {
1956
2072
  }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
1957
2073
  text: "No cuentas con este servicio",
1958
2074
  headerType: "input-name-header"
1959
- })), state.active_tab === "Ficha técnica" && (((_state$product23 = state.product) === null || _state$product23 === void 0 ? void 0 : _state$product23.datasheet_status) !== "NS" ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
2075
+ })), state.active_tab === "Ficha técnica" && (((_state$product24 = state.product) === null || _state$product24 === void 0 ? void 0 : _state$product24.datasheet_status) !== "NS" ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
1960
2076
  children: ((_state$datasheets_inp = state.datasheets_inputs) === null || _state$datasheets_inp === void 0 ? void 0 : (_state$datasheets_inp2 = _state$datasheets_inp[0]) === null || _state$datasheets_inp2 === void 0 ? void 0 : (_state$datasheets_inp3 = _state$datasheets_inp2.data) === null || _state$datasheets_inp3 === void 0 ? void 0 : _state$datasheets_inp3.length) > 0 ? state.datasheets_inputs[0].data.map(function (dataGroup, index) {
1961
- var _state$datasheets_inp4, _state$services, _state$services$datas, _state$services$datas2;
2077
+ var _state$datasheets_inp4, _state$services2, _state$services2$data, _state$services$datas3;
1962
2078
 
1963
2079
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_InputGroup.InputGroup, {
1964
2080
  index: index,
@@ -1967,10 +2083,10 @@ var ProviderProductEditionView = function ProviderProductEditionView(_ref) {
1967
2083
  activeSection: state.active_tab,
1968
2084
  inputGroup: dataGroup,
1969
2085
  dataInputs: (_state$datasheets_inp4 = state.datasheets_inputs[1]) !== null && _state$datasheets_inp4 !== void 0 ? _state$datasheets_inp4 : [],
1970
- variant: (_state$services = state.services) === null || _state$services === void 0 ? void 0 : (_state$services$datas = _state$services.datasheets) === null || _state$services$datas === void 0 ? void 0 : _state$services$datas.variant,
2086
+ 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,
1971
2087
  onRestoreInheritance: handleOnRestoreInheritance,
1972
2088
  activeRetailer: state.services.datasheets[state.active_retailer.id_retailer],
1973
- groupData: (_state$services$datas2 = state.services.datasheets[state.active_retailer.id_retailer]) === null || _state$services$datas2 === void 0 ? void 0 : _state$services$datas2.data,
2089
+ groupData: (_state$services$datas3 = state.services.datasheets[state.active_retailer.id_retailer]) === null || _state$services$datas3 === void 0 ? void 0 : _state$services$datas3.data,
1974
2090
  updatedDatasheets: state.updated_datasheets_inputs,
1975
2091
  setUpdatedDatasheets: handleOnSetUpdatedDatasheets,
1976
2092
  isShowbox: true,
@@ -1986,7 +2102,7 @@ var ProviderProductEditionView = function ProviderProductEditionView(_ref) {
1986
2102
  }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
1987
2103
  text: "No cuentas con este servicio",
1988
2104
  headerType: "input-name-header"
1989
- })), state.active_tab === "Imágenes" && (((_state$product24 = state.product) === null || _state$product24 === void 0 ? void 0 : _state$product24.images_status) !== "NS" ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
2105
+ })), state.active_tab === "Imágenes" && (((_state$product25 = state.product) === null || _state$product25 === void 0 ? void 0 : _state$product25.images_status) !== "NS" ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
1990
2106
  children: [!imageLayout && /*#__PURE__*/(0, _jsxRuntime.jsx)(_GalleryHeader.GalleryHeader, {
1991
2107
  checkAll: state.all_image_checked // Determina si el checkbox "Seleccionar todo" está marcado
1992
2108
  ,
@@ -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 .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 .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 .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 .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 .editar-juntas {\n align-self: flex-start;\n margin-top: 4px;\n border: 1px solid ", ";\n border-radius: 6px;\n background: none;\n padding: 6px 12px;\n cursor: pointer;\n font-family: ", ";\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.deep_gray, _variables.GlobalColors.s2, PINK, _variables.GlobalColors.gray, _variables.GlobalColors.gray, PINK, _variables.FontFamily.Raleway_600, PINK);
25
25
 
26
26
  exports.Container = Container;
package/dist/index.js CHANGED
@@ -1109,7 +1109,7 @@ Object.keys(_index84).forEach(function (key) {
1109
1109
  });
1110
1110
  });
1111
1111
 
1112
- var _index85 = require("./components/organisms/ProductImageModal/index");
1112
+ var _index85 = require("./components/organisms/PropagateChangesModal/index");
1113
1113
 
1114
1114
  Object.keys(_index85).forEach(function (key) {
1115
1115
  if (key === "default" || key === "__esModule") return;
@@ -1122,7 +1122,7 @@ Object.keys(_index85).forEach(function (key) {
1122
1122
  });
1123
1123
  });
1124
1124
 
1125
- var _index86 = require("./components/organisms/Chat/index");
1125
+ var _index86 = require("./components/organisms/ProductImageModal/index");
1126
1126
 
1127
1127
  Object.keys(_index86).forEach(function (key) {
1128
1128
  if (key === "default" || key === "__esModule") return;
@@ -1135,7 +1135,7 @@ Object.keys(_index86).forEach(function (key) {
1135
1135
  });
1136
1136
  });
1137
1137
 
1138
- var _index87 = require("./components/organisms/Modal/index");
1138
+ var _index87 = require("./components/organisms/Chat/index");
1139
1139
 
1140
1140
  Object.keys(_index87).forEach(function (key) {
1141
1141
  if (key === "default" || key === "__esModule") return;
@@ -1148,7 +1148,7 @@ Object.keys(_index87).forEach(function (key) {
1148
1148
  });
1149
1149
  });
1150
1150
 
1151
- var _index88 = require("./components/organisms/OrderDetail/index");
1151
+ var _index88 = require("./components/organisms/Modal/index");
1152
1152
 
1153
1153
  Object.keys(_index88).forEach(function (key) {
1154
1154
  if (key === "default" || key === "__esModule") return;
@@ -1161,6 +1161,19 @@ Object.keys(_index88).forEach(function (key) {
1161
1161
  });
1162
1162
  });
1163
1163
 
1164
+ var _index89 = require("./components/organisms/OrderDetail/index");
1165
+
1166
+ Object.keys(_index89).forEach(function (key) {
1167
+ if (key === "default" || key === "__esModule") return;
1168
+ if (key in exports && exports[key] === _index89[key]) return;
1169
+ Object.defineProperty(exports, key, {
1170
+ enumerable: true,
1171
+ get: function get() {
1172
+ return _index89[key];
1173
+ }
1174
+ });
1175
+ });
1176
+
1164
1177
  var _RangeCalendar = require("./components/organisms/RangeCalendar");
1165
1178
 
1166
1179
  Object.keys(_RangeCalendar).forEach(function (key) {
@@ -1187,28 +1200,28 @@ Object.keys(_TableResizable).forEach(function (key) {
1187
1200
  });
1188
1201
  });
1189
1202
 
1190
- var _index89 = require("./components/organisms/SideModal/index");
1203
+ var _index90 = require("./components/organisms/SideModal/index");
1191
1204
 
1192
- Object.keys(_index89).forEach(function (key) {
1205
+ Object.keys(_index90).forEach(function (key) {
1193
1206
  if (key === "default" || key === "__esModule") return;
1194
- if (key in exports && exports[key] === _index89[key]) return;
1207
+ if (key in exports && exports[key] === _index90[key]) return;
1195
1208
  Object.defineProperty(exports, key, {
1196
1209
  enumerable: true,
1197
1210
  get: function get() {
1198
- return _index89[key];
1211
+ return _index90[key];
1199
1212
  }
1200
1213
  });
1201
1214
  });
1202
1215
 
1203
- var _index90 = require("./components/organisms/GridProducts/index");
1216
+ var _index91 = require("./components/organisms/GridProducts/index");
1204
1217
 
1205
- Object.keys(_index90).forEach(function (key) {
1218
+ Object.keys(_index91).forEach(function (key) {
1206
1219
  if (key === "default" || key === "__esModule") return;
1207
- if (key in exports && exports[key] === _index90[key]) return;
1220
+ if (key in exports && exports[key] === _index91[key]) return;
1208
1221
  Object.defineProperty(exports, key, {
1209
1222
  enumerable: true,
1210
1223
  get: function get() {
1211
- return _index90[key];
1224
+ return _index91[key];
1212
1225
  }
1213
1226
  });
1214
1227
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.6.27",
3
+ "version": "21.6.29",
4
4
  "dependencies": {
5
5
  "@aws-amplify/auth": "^4.5.3",
6
6
  "@aws-amplify/datastore": "^3.11.0",