contentoh-components-library 21.1.22 → 21.1.23

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.
Files changed (54) hide show
  1. package/dist/assets/images/sliderToolTip/slide21.svg +9 -0
  2. package/dist/assets/images/sliderToolTip/slide22.svg +9 -0
  3. package/dist/assets/images/sliderToolTip/slide23.svg +9 -0
  4. package/dist/components/atoms/CheckBox/styles.js +1 -1
  5. package/dist/components/atoms/ListCommercialRetailers/ListCommercialRetailers.stories.js +36 -0
  6. package/dist/components/atoms/ListCommercialRetailers/index.js +64 -0
  7. package/dist/components/atoms/ListCommercialRetailers/styles.js +20 -0
  8. package/dist/components/atoms/MenuCommercialRetailers/MenuCommercialRetailers.stories.js +37 -0
  9. package/dist/components/atoms/MenuCommercialRetailers/index.js +25 -0
  10. package/dist/components/atoms/MenuCommercialRetailers/styles.js +20 -0
  11. package/dist/components/atoms/MenuProductImage/MenuProductImage.stories.js +28 -0
  12. package/dist/components/atoms/MenuProductImage/index.js +88 -0
  13. package/dist/components/atoms/MenuProductImage/styles.js +20 -0
  14. package/dist/components/atoms/SliderToolTip/SliderToolTip.stories.js +67 -13
  15. package/dist/components/atoms/SliderToolTip/index.js +64 -134
  16. package/dist/components/atoms/SliderToolTip/styles.js +2 -2
  17. package/dist/components/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +44 -1
  18. package/dist/components/atoms/VerticalSideMenuMainPage/index.js +49 -48
  19. package/dist/components/atoms/VerticalSideMenuMainPage/styles.js +12 -3
  20. package/dist/components/molecules/ApproveRejetPanel/ApproveRejetPanel.stories.js +25 -0
  21. package/dist/components/molecules/ApproveRejetPanel/index.js +49 -0
  22. package/dist/components/molecules/ApproveRejetPanel/styles.js +18 -0
  23. package/dist/components/molecules/SignInLoginCreationApp/SignInLogin.stories.js +28 -0
  24. package/dist/components/molecules/SignInLoginCreationApp/index.js +270 -0
  25. package/dist/components/molecules/SignInLoginCreationApp/styles.js +20 -0
  26. package/dist/components/molecules/StatusAsignationInfo/index.js +35 -1
  27. package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +88 -81
  28. package/dist/components/pages/ProviderProductEdition/index.js +61 -33
  29. package/dist/components/pages/RetailerProductEdition/index.js +11 -16
  30. package/dist/global-files/global-styles.css +0 -1
  31. package/package.json +1 -1
  32. package/src/assets/images/sliderToolTip/slide21.svg +9 -0
  33. package/src/assets/images/sliderToolTip/slide22.svg +9 -0
  34. package/src/assets/images/sliderToolTip/slide23.svg +9 -0
  35. package/src/components/atoms/CheckBox/styles.js +0 -1
  36. package/src/components/atoms/SliderToolTip/SliderToolTip.stories.js +77 -11
  37. package/src/components/atoms/SliderToolTip/index.js +91 -154
  38. package/src/components/atoms/SliderToolTip/styles.js +48 -22
  39. package/src/components/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +24 -1
  40. package/src/components/atoms/VerticalSideMenuMainPage/index.js +41 -30
  41. package/src/components/atoms/VerticalSideMenuMainPage/styles.js +70 -18
  42. package/src/components/molecules/StatusAsignationInfo/index.js +37 -0
  43. package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +98 -82
  44. package/src/components/pages/ProviderProductEdition/index.js +40 -17
  45. package/src/components/pages/RetailerProductEdition/index.js +9 -17
  46. package/dist/components/atoms/Percent/Percent.stories.js +0 -39
  47. package/dist/components/atoms/Percent/index.js +0 -39
  48. package/dist/components/atoms/Percent/styles.js +0 -20
  49. package/dist/components/molecules/TextAndGradient/TextAndGradient.stories.js +0 -31
  50. package/dist/components/molecules/TextAndGradient/index.js +0 -36
  51. package/dist/components/molecules/TextAndGradient/styles.js +0 -18
  52. package/src/components/pages/RegistrationLoginFirstStep/RegistrationLoginFirstStep.stories.js +0 -17
  53. package/src/components/pages/RegistrationLoginFirstStep/index.js +0 -160
  54. package/src/components/pages/RegistrationLoginFirstStep/styles.js +0 -85
@@ -0,0 +1,270 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.SignInLoginCreationApp = void 0;
9
+
10
+ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
11
+
12
+ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/asyncToGenerator"));
13
+
14
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
15
+
16
+ var _styles = require("./styles");
17
+
18
+ var _index = require("../../atoms/LogoImage/index");
19
+
20
+ var _index2 = require("../../atoms/ScreenHeader/index");
21
+
22
+ var _index3 = require("../../atoms/GeneralButton/index");
23
+
24
+ var _index4 = require("../../atoms/CheckBox/index");
25
+
26
+ var _TagAndInput = require("../TagAndInput");
27
+
28
+ var _variables = require("../../../global-files/variables");
29
+
30
+ var _react = require("react");
31
+
32
+ var _Loading = require("../../atoms/Loading");
33
+
34
+ var _reactRouterDom = require("react-router-dom");
35
+
36
+ var _axios = _interopRequireDefault(require("axios"));
37
+
38
+ var _jsxRuntime = require("react/jsx-runtime");
39
+
40
+ var SignInLoginCreationApp = function SignInLoginCreationApp(props) {
41
+ var _useState = (0, _react.useState)(false),
42
+ _useState2 = (0, _slicedToArray2.default)(_useState, 2),
43
+ emptyEmail = _useState2[0],
44
+ setEmptyEmail = _useState2[1];
45
+
46
+ var _useState3 = (0, _react.useState)(false),
47
+ _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
48
+ invalidEmail = _useState4[0],
49
+ setInvalidEmail = _useState4[1];
50
+
51
+ var _useState5 = (0, _react.useState)(false),
52
+ _useState6 = (0, _slicedToArray2.default)(_useState5, 2),
53
+ emptyPassword = _useState6[0],
54
+ setEmptyPassword = _useState6[1];
55
+
56
+ var _useState7 = (0, _react.useState)(true),
57
+ _useState8 = (0, _slicedToArray2.default)(_useState7, 2),
58
+ showErrors = _useState8[0],
59
+ setShowErrors = _useState8[1];
60
+
61
+ var _useState9 = (0, _react.useState)(""),
62
+ _useState10 = (0, _slicedToArray2.default)(_useState9, 2),
63
+ signInError = _useState10[0],
64
+ setSignInError = _useState10[1];
65
+
66
+ var _useState11 = (0, _react.useState)(false),
67
+ _useState12 = (0, _slicedToArray2.default)(_useState11, 2),
68
+ loading = _useState12[0],
69
+ setLoading = _useState12[1];
70
+
71
+ var _useState13 = (0, _react.useState)(false),
72
+ _useState14 = (0, _slicedToArray2.default)(_useState13, 2),
73
+ upgradePlanRedirect = _useState14[0],
74
+ setUpgradePlanRedirect = _useState14[1];
75
+
76
+ var validate = /*#__PURE__*/function () {
77
+ var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(e) {
78
+ var valid, email, password, session, userGroup, response, userGroupValue, user, company;
79
+ return _regenerator.default.wrap(function _callee$(_context) {
80
+ while (1) {
81
+ switch (_context.prev = _context.next) {
82
+ case 0:
83
+ e.preventDefault();
84
+ setSignInError("");
85
+ setShowErrors(true);
86
+ valid = true;
87
+ email = document.querySelector("#emailInput").value.trim();
88
+ password = document.querySelector("#passwordInput").value;
89
+ !/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(email) ? setInvalidEmail(true) : setInvalidEmail(false);
90
+
91
+ if (email === "") {
92
+ valid = false;
93
+ setEmptyEmail(true);
94
+ } else {
95
+ setEmptyEmail(false);
96
+ }
97
+
98
+ if (password === "") {
99
+ valid = false;
100
+ setEmptyPassword(true);
101
+ } else {
102
+ setEmptyPassword(false);
103
+ }
104
+
105
+ if (!valid) {
106
+ _context.next = 35;
107
+ break;
108
+ }
109
+
110
+ _context.prev = 10;
111
+ setLoading(true);
112
+ _context.next = 14;
113
+ return props.Auth.signIn(email, password);
114
+
115
+ case 14:
116
+ session = _context.sent;
117
+
118
+ if (!(session.challengeName === "NEW_PASSWORD_REQUIRED")) {
119
+ _context.next = 20;
120
+ break;
121
+ }
122
+
123
+ props.setUser(session);
124
+ props.setPaso(8);
125
+ _context.next = 28;
126
+ break;
127
+
128
+ case 20:
129
+ userGroup = session.signInUserSession.accessToken.payload["cognito:groups"];
130
+ _context.next = 23;
131
+ return _axios.default.get(process.env.REACT_APP_USER_ENDPOINT, {
132
+ headers: {
133
+ Authorization: session.signInUserSession.idToken.jwtToken
134
+ }
135
+ });
136
+
137
+ case 23:
138
+ response = _context.sent;
139
+ console.log(userGroup);
140
+ console.log(userGroup[0]);
141
+ userGroupValue = typeof userGroup === "string" ? userGroup : userGroup[0];
142
+
143
+ if (userGroupValue === "colaboradores_contentoh") {
144
+ sessionStorage.setItem("auth", true);
145
+ sessionStorage.setItem("jwt", session.signInUserSession.idToken.jwtToken);
146
+ user = JSON.parse(response.data.body).data[0];
147
+ company = JSON.parse(response.data.body).data[1];
148
+ caches.keys().then(function (names) {
149
+ names.forEach(function (name) {
150
+ caches.delete(name);
151
+ });
152
+ });
153
+ user.src = "https://".concat(process.env.REACT_APP_IMAGES_PROFILE_BUCKET, ".s3.amazonaws.com/id-").concat(user.id_user, "/").concat(user.id_user, ".png?").concat(new Date().getTime());
154
+ sessionStorage.setItem("user", JSON.stringify(user));
155
+ sessionStorage.setItem("company", JSON.stringify(company));
156
+ setUpgradePlanRedirect(true);
157
+ } else {
158
+ setSignInError("NotAuthorizedException");
159
+ setLoading(false);
160
+ }
161
+
162
+ case 28:
163
+ _context.next = 35;
164
+ break;
165
+
166
+ case 30:
167
+ _context.prev = 30;
168
+ _context.t0 = _context["catch"](10);
169
+ console.log(_context.t0);
170
+ setLoading(false);
171
+
172
+ if (_context.t0.code === "NotAuthorizedException") {
173
+ setSignInError("NotAuthorizedException");
174
+ } else if (_context.t0.code === "UserNotConfirmedException") {
175
+ sessionStorage.setItem("email", JSON.stringify(document.querySelector("#usernameInput").value));
176
+ props.setPaso(5);
177
+ } else {
178
+ setSignInError("Error");
179
+ }
180
+
181
+ case 35:
182
+ case "end":
183
+ return _context.stop();
184
+ }
185
+ }
186
+ }, _callee, null, [[10, 30]]);
187
+ }));
188
+
189
+ return function validate(_x) {
190
+ return _ref.apply(this, arguments);
191
+ };
192
+ }();
193
+
194
+ (0, _react.useEffect)(function () {
195
+ sessionStorage.getItem("resetPasswordProcess") && sessionStorage.removeItem("resetPasswordProcess");
196
+ }, []);
197
+ (0, _react.useEffect)(function () {
198
+ if (upgradePlanRedirect) setLoading(false);
199
+ }, [upgradePlanRedirect]);
200
+ return loading ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Loading.Loading, {}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
201
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
202
+ className: "home-login",
203
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
204
+ className: "main-container",
205
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.LogoImage, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
206
+ className: "credenciales",
207
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.ScreenHeader, {
208
+ fontFamily: _variables.FontFamily.AvenirNext,
209
+ color: _variables.GlobalColors.s5,
210
+ text: "Ingresa tus credenciales"
211
+ })
212
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
213
+ className: "user",
214
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
215
+ inputType: "text",
216
+ label: "Nombre de usuario",
217
+ inputPlaceHolder: "username@contentoh.com",
218
+ inputId: "emailInput"
219
+ })
220
+ }), showErrors && emptyEmail && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
221
+ children: "Ingrese su correo"
222
+ }), invalidEmail && !emptyEmail && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
223
+ children: "Ingrese un correo v\xE1lido"
224
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
225
+ className: "password",
226
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
227
+ inputType: "password",
228
+ label: "Contraseña",
229
+ inputPlaceHolder: "Escribe tu contraseña",
230
+ inputId: "passwordInput"
231
+ })
232
+ }), showErrors && emptyPassword && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
233
+ children: "Ingrese su contrase\xF1a"
234
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
235
+ className: "select",
236
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index4.CheckBox, {
237
+ label: "Mantener sesión activada",
238
+ id: "chk-default",
239
+ className: "active-left"
240
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
241
+ onClick: function onClick() {
242
+ return props.setPaso(10);
243
+ },
244
+ className: "active-right",
245
+ children: "Olvide mi contrase\xF1a"
246
+ })]
247
+ }), showErrors && signInError === "NotAuthorizedException" && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
248
+ children: "Correo o contrase\xF1a incorrectos"
249
+ }), showErrors && signInError === "Error" && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
250
+ children: "Ha habido un problema al iniciar sesi\xF3n"
251
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
252
+ className: "button-right",
253
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.Button, {
254
+ buttonType: "general-default-button",
255
+ label: "Iniciar sesión",
256
+ onClick: function onClick(e) {
257
+ return validate(e);
258
+ }
259
+ })
260
+ })]
261
+ })
262
+ }), upgradePlanRedirect && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactRouterDom.Redirect, {
263
+ to: {
264
+ pathname: "/dashboard"
265
+ }
266
+ })]
267
+ });
268
+ };
269
+
270
+ exports.SignInLoginCreationApp = SignInLoginCreationApp;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.Container = void 0;
9
+
10
+ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
11
+
12
+ var _styledComponents = _interopRequireDefault(require("styled-components"));
13
+
14
+ var _variables = require("../../../global-files/variables");
15
+
16
+ var _templateObject;
17
+
18
+ var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background: \"white\";\n display: flex;\n height: 100vh;\n width: 50%;\n justify-content: center;\n align-items: center;\n label {\n color: red;\n margin-top: 3px;\n margin-left: 15px;\n font-family: ", ";\n font-size: 11px;\n & + * {\n margin-top: 12px;\n }\n }\n\n &.home-login {\n .credenciales {\n & + * {\n margin-top: 30px;\n }\n }\n .user {\n & + * {\n margin-top: 20px;\n }\n }\n .password {\n & + * {\n margin-top: 20px;\n }\n }\n .select {\n display: flex;\n justify-content: space-between;\n .active-right {\n font-family: ", ";\n font-weight: 500;\n font-size: 13px;\n line-height: 24px;\n letter-spacing: -0.015em;\n color: ", ";\n cursor: pointer;\n }\n & + * {\n margin-top: 50px;\n }\n }\n .button-right {\n text-align: right;\n & + * {\n margin-top: 55px;\n }\n }\n .new-login {\n p {\n font-family: ", ";\n text-align: right;\n font-weight: 500;\n font-size: 13px;\n line-height: 24px;\n color: ", ";\n cursor: pointer;\n span {\n color: ", ";\n }\n }\n }\n }\n .main-container {\n max-width: 80%;\n max-height: 80%;\n }\n"])), _variables.FontFamily.Raleway_700, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s5, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s5, _variables.GlobalColors.secondary_magenta);
19
+
20
+ exports.Container = Container;
@@ -25,6 +25,16 @@ var _index3 = require("../../atoms/AsignationOption/index");
25
25
 
26
26
  var _data = require("../../../global-files/data");
27
27
 
28
+ var _SliderToolTip = require("../../atoms/SliderToolTip");
29
+
30
+ var _infoIcon = _interopRequireDefault(require("../../../assets/images/sliderToolTip/infoIcon.svg"));
31
+
32
+ var _slide = _interopRequireDefault(require("../../../assets/images/sliderToolTip/slide21.svg"));
33
+
34
+ var _slide2 = _interopRequireDefault(require("../../../assets/images/sliderToolTip/slide22.svg"));
35
+
36
+ var _slide3 = _interopRequireDefault(require("../../../assets/images/sliderToolTip/slide23.svg"));
37
+
28
38
  var _jsxRuntime = require("react/jsx-runtime");
29
39
 
30
40
  var StatusAsignationInfo = function StatusAsignationInfo(_ref) {
@@ -68,6 +78,25 @@ var StatusAsignationInfo = function StatusAsignationInfo(_ref) {
68
78
  }
69
79
  };
70
80
 
81
+ var slidefront = [{
82
+ slide: _slide.default,
83
+ id: "slide1",
84
+ id_link: "slidea1",
85
+ title: "Valida tu producto en cada activo digital",
86
+ description: "Al solicitar a Content-oh! podrás validar la información, imágenes y documentación de tu producto, esto hará más sencillo que puedas aprobar o rechazar el contenido."
87
+ }, {
88
+ slide: _slide2.default,
89
+ id: "slide2",
90
+ id_link: "slidea2",
91
+ title: "Aprueba o rechaza con un clic",
92
+ description: "Cuando termines de revisar tu información, elige si aproebas o rechazas, esto enviara una notificiación a nuestro equipo, para continuar o corregir el producto."
93
+ }, {
94
+ slide: _slide3.default,
95
+ id: "slide3",
96
+ id_link: "slidea3",
97
+ title: "Estatus de tu producto en el proceso",
98
+ description: "La mayor parte del proceso podrás identificar que estatus tiene tu producto, esto dara visibilidad a todo tu equipo para saber la etapa se encuentra."
99
+ }];
71
100
  (0, _react.useEffect)(function () {
72
101
  if (showAsignationPanel) {
73
102
  document.addEventListener("click", closeAsignations, false);
@@ -75,7 +104,12 @@ var StatusAsignationInfo = function StatusAsignationInfo(_ref) {
75
104
  }, [showAsignationPanel]);
76
105
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
77
106
  id: id,
78
- children: [status !== "-" && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.StatusTag, {
107
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_SliderToolTip.SliderToolTip, {
108
+ infoIcon: _infoIcon.default,
109
+ slidefront: slidefront,
110
+ iconSize: "medium-image",
111
+ slidePosition: "bottom-slide"
112
+ }), status !== "-" && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.StatusTag, {
79
113
  statusType: status,
80
114
  ovalForm: true
81
115
  }), showSaveButton && /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
@@ -31,83 +31,90 @@ ProviderProductEditionDefault.args = {
31
31
  "Ficha técnica": false,
32
32
  Imágenes: false
33
33
  },
34
- token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmNTkyN2Y4ZS1jYmY3LTQ5MjItOWUwOS1lNjllYzBiMjczMWEiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImY1OTI3ZjhlLWNiZjctNDkyMi05ZTA5LWU2OWVjMGIyNzMxYSIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiI3ZTU5YmI1Yy1mNjI1LTQ1NzMtYjMzYS00ZWM4YzFmMzMyNTIiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY1NjAwMTY4OCwibmFtZSI6IklzbWFlbCBMb3BleiIsInBob25lX251bWJlciI6Iis1MjMxMTEzNjYzMzYiLCJleHAiOjE2NTYwMDUyODgsImlhdCI6MTY1NjAwMTY4OCwiZW1haWwiOiJpbG9wZXpAY29udGVudG9oLmNvbSJ9.ZUKMejBG8qCT2bv-zrqyFx6xyeKK85Ry-kRlQv3U2KrDasW6ea8zbNDJMJAGMu_7dDrk9mRUj0Mp-jW32T1IBOweWxivRKSYfWQzjMdJdOUcckCagVXp8zQ4W-DZJINI25iq1AEfl9--6WaTRybEdTLjKXgzzOmLCGk5QbUI2uSeT_3w7fZiHPlCDCFFTSgXaNKUqxnsyZ2llos97KKIhH7tmn7DBw8mTPTUFyxED6EzBc7mkCYrM1o0velAZF0bOYhiuNnA-TF0L8eqPIZ3_13WDzGjRk3_eOBM37z8AqlMtBCJYIyQFGf-uCIbpSG0yJzYTswrExCkLamlKDhwtQ",
34
+ token: "eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJkNjYwY2NjYS1mOTA2LTQ5NzAtODkyYy02ZDE1MmU4MzJlNWQiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfbFN6UVo0WjdSIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImQ2NjBjY2NhLWY5MDYtNDk3MC04OTJjLTZkMTUyZTgzMmU1ZCIsImF1ZCI6IjUyZDlza2tkY2c4cWpwODhvb2sxdXNlNm1rIiwiZXZlbnRfaWQiOiJiY2ZhOGZlNi0wMDRjLTQ3NzAtODFjOC01YmNmMmMxMzM3YmIiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY1NTkxMTI4NywibmFtZSI6IlRIRCBQcm92ZWVkb3IiLCJwaG9uZV9udW1iZXIiOiIrNTIzMTExMTExMTExIiwiZXhwIjoxNjU1OTE0ODg3LCJpYXQiOjE2NTU5MTEyODcsImVtYWlsIjoidGhkQGFsbGZyZWVtYWlsLm5ldCJ9.MWZiRXTcH2fBgHASZ-6rIr43-WzIkp48ToBS4XQgJt4klDp96qzZCO8o6siDK5ptw48CawlFT1nl4QszEA8b6WeqgdjsMo-MhTFF9v0QtYyjCZ97Sfs2roSLAU0pZC8-JT-yZV7auHfsoGzGWhR6CoDLQEtm0nk0pqJtwm2qObv1tZUeJUvS4qPRnLBXv3qn8--0D7dGI2NTJKfm4RN-BiDNIQQE6B0UZuY8hCxYz0OXqvpstYNQnd0YQLTXnBYN0SiHAdF2DuQqDVhnVCphqcgq49DxwN6o1br7M4ySHhe7a9mg4-uSJjLF25oW8K4dFgvvStMvuScUhpzngc8caA",
35
35
  articleId: 238,
36
36
  category: 846,
37
37
  version: 2,
38
38
  productSelected: {
39
- id_article: 55081,
40
- id_category: "157",
41
- name: "Lavatrastes Axion toque de crema",
42
- upc: "750954665375",
43
- timestamp: "2022-06-17T18:43:45.000Z",
39
+ id_article: 55070,
40
+ id_category: "2976",
41
+ name: "TOALLERO CORTO ACCESS NEGRO ÉBANO",
42
+ upc: "161788",
43
+ timestamp: "2022-06-17T17:31:14.000Z",
44
44
  status: "NULL",
45
- categoryName: "CONSUMIBLES|PRODUCTOS DE LIMPIEZA Y LAVANDERÍA|JABONES Y LAVATRASTES",
45
+ categoryName: "BAÑOS|ACCESORIOS PARA BAÑO|TOALLEROS",
46
46
  asignations: [],
47
47
  version: 1,
48
48
  version_status: null,
49
49
  retailersAvailable: [{
50
- id: 4,
51
- name: "Walmart Super y Superama",
50
+ id: 58,
51
+ name: "The Home Depot Golden",
52
+ country: "México",
53
+ id_region: 1,
54
+ active: 1
55
+ }, {
56
+ id: 59,
57
+ name: "The Home Depot Platinum",
58
+ country: "México",
59
+ id_region: 1,
60
+ active: 1
61
+ }, {
62
+ id: 60,
63
+ name: "The Home Depot Resizing",
64
+ country: "México",
65
+ id_region: 1,
66
+ active: 1
67
+ }, {
68
+ id: 61,
69
+ name: "Home Depot TAB",
52
70
  country: "México",
53
71
  id_region: 1,
54
72
  active: 1
55
73
  }],
56
- missing: {
57
- datasheet: 10,
58
- description: 6,
59
- image: 32
60
- }
74
+ missing: {}
75
+ },
76
+ productToEdit: {
77
+ idCategory: "2976",
78
+ ArticleId: 55070,
79
+ product: [{
80
+ id_article: 55070,
81
+ id_category: "2976",
82
+ name: "TOALLERO CORTO ACCESS NEGRO ÉBANO",
83
+ upc: "161788",
84
+ timestamp: "2022-06-17T17:31:14.000Z",
85
+ status: "NULL",
86
+ categoryName: "BAÑOS|ACCESORIOS PARA BAÑO|TOALLEROS",
87
+ asignations: [],
88
+ version: 1,
89
+ version_status: null,
90
+ retailersAvailable: [{
91
+ id: 58,
92
+ name: "The Home Depot Golden",
93
+ country: "México",
94
+ id_region: 1,
95
+ active: 1
96
+ }, {
97
+ id: 59,
98
+ name: "The Home Depot Platinum",
99
+ country: "México",
100
+ id_region: 1,
101
+ active: 1
102
+ }, {
103
+ id: 60,
104
+ name: "The Home Depot Resizing",
105
+ country: "México",
106
+ id_region: 1,
107
+ active: 1
108
+ }, {
109
+ id: 61,
110
+ name: "Home Depot TAB",
111
+ country: "México",
112
+ id_region: 1,
113
+ active: 1
114
+ }],
115
+ missing: {}
116
+ }]
61
117
  },
62
- // productToEdit: {
63
- // idCategory: "2976",
64
- // ArticleId: 55070,
65
- // product: [
66
- // {
67
- // id_article: 55070,
68
- // id_category: "2976",
69
- // name: "TOALLERO CORTO ACCESS NEGRO ÉBANO",
70
- // upc: "161788",
71
- // timestamp: "2022-06-17T17:31:14.000Z",
72
- // status: "NULL",
73
- // categoryName: "BAÑOS|ACCESORIOS PARA BAÑO|TOALLEROS",
74
- // asignations: [],
75
- // version: 1,
76
- // version_status: null,
77
- // retailersAvailable: [
78
- // {
79
- // id: 58,
80
- // name: "The Home Depot Golden",
81
- // country: "México",
82
- // id_region: 1,
83
- // active: 1,
84
- // },
85
- // {
86
- // id: 59,
87
- // name: "The Home Depot Platinum",
88
- // country: "México",
89
- // id_region: 1,
90
- // active: 1,
91
- // },
92
- // {
93
- // id: 60,
94
- // name: "The Home Depot Resizing",
95
- // country: "México",
96
- // id_region: 1,
97
- // active: 1,
98
- // },
99
- // {
100
- // id: 61,
101
- // name: "Home Depot TAB",
102
- // country: "México",
103
- // id_region: 1,
104
- // active: 1,
105
- // },
106
- // ],
107
- // missing: {},
108
- // },
109
- // ],
110
- // },
111
118
  location: {
112
119
  product: {
113
120
  articleId: 109485,
@@ -116,35 +123,35 @@ ProviderProductEditionDefault.args = {
116
123
  state: {}
117
124
  },
118
125
  user: {
119
- id_user: 28,
120
- name: "Proveedor",
121
- last_name: "Colgate",
122
- email: "ilopez@contentoh.com",
123
- position: "Prueba Admin",
124
- telephone: "+523111366336",
126
+ id_user: 1236,
127
+ name: "THD",
128
+ last_name: "Proveedor",
129
+ email: "thd@allfreemail.net",
130
+ position: "Prod test",
131
+ telephone: "+523111111111",
125
132
  country: "México",
126
- id_company: 1,
127
- id_cognito: "f5927f8e-cbf7-4922-9e09-e69ec0b2731a",
133
+ id_company: 816,
134
+ id_cognito: "d660ccca-f906-4970-892c-6d152e832e5d",
128
135
  birth_Date: null,
129
136
  about_me: null,
130
137
  zip_code: null,
131
138
  address: null,
132
139
  job: null,
133
- id_stripe: "cus_KuEt6R6vwmN09f",
140
+ id_stripe: null,
134
141
  id_role: 0,
135
142
  active: 1,
136
143
  is_retailer: 0,
137
144
  membership: {
138
- id: 38,
139
- start_date: "2022-01-18T17:25:35.000Z",
140
- end_date: "2023-01-18T17:25:35.000Z",
141
- planID: 8,
142
- plan: "prod_KtlhECVSFG2iro",
143
- name: "Plan Pro",
144
- user_limit: "20",
145
- products_limit: "5000",
145
+ id: 797,
146
+ start_date: "2022-06-19T04:18:39.000Z",
147
+ end_date: "2023-06-19T04:18:39.000Z",
148
+ planID: 6,
149
+ plan: "prod_KvGd6YSTJyR3AP",
150
+ name: "Plan Small",
151
+ user_limit: "10",
152
+ products_limit: "1000",
146
153
  type: "Enterprise"
147
154
  },
148
- src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1656001689809"
155
+ src: "https://content-management-profile-prod.s3.amazonaws.com/id-1236/1236.png?1655911288481"
149
156
  }
150
157
  };