contentoh-components-library 21.1.35 → 21.1.38

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 (29) hide show
  1. package/dist/components/atoms/Percent/Percent.stories.js +39 -0
  2. package/dist/components/atoms/Percent/index.js +39 -0
  3. package/dist/components/atoms/Percent/styles.js +20 -0
  4. package/dist/components/atoms/StatusTag/index.js +17 -2
  5. package/dist/components/atoms/StatusTag/styles.js +1 -1
  6. package/dist/components/molecules/TextAndGradient/TextAndGradient.stories.js +31 -0
  7. package/dist/components/molecules/TextAndGradient/index.js +36 -0
  8. package/dist/components/molecules/TextAndGradient/styles.js +18 -0
  9. package/dist/components/organisms/FullProductNameHeader/index.js +1 -1
  10. package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +105 -103
  11. package/dist/components/pages/ProviderProductEdition/index.js +323 -349
  12. package/dist/components/pages/RegistrationLoginFirstStep/RegistrationLoginFirstStep.stories.js +37 -0
  13. package/dist/components/pages/RegistrationLoginFirstStep/index.js +269 -0
  14. package/dist/components/pages/RegistrationLoginFirstStep/styles.js +20 -0
  15. package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +38 -83
  16. package/dist/components/pages/RetailerProductEdition/index.js +197 -208
  17. package/dist/global-files/data.js +9 -10
  18. package/package.json +1 -1
  19. package/src/components/atoms/StatusTag/index.js +12 -2
  20. package/src/components/atoms/StatusTag/styles.js +11 -11
  21. package/src/components/organisms/FullProductNameHeader/index.js +1 -1
  22. package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +117 -103
  23. package/src/components/pages/ProviderProductEdition/index.js +171 -165
  24. package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +33 -82
  25. package/src/components/pages/RetailerProductEdition/index.js +167 -139
  26. package/src/global-files/data.js +9 -10
  27. package/dist/assets/images/sliderToolTip/slide21.svg +0 -9
  28. package/dist/assets/images/sliderToolTip/slide22.svg +0 -9
  29. package/dist/assets/images/sliderToolTip/slide23.svg +0 -9
@@ -0,0 +1,39 @@
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.default = exports.PercentDefault = void 0;
9
+
10
+ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
11
+
12
+ var _index = require("./index");
13
+
14
+ var _jsxRuntime = require("react/jsx-runtime");
15
+
16
+ var status = ["-", "Pr", "Rc", "As", "P", "QF", "AF", "AA", "AP", "AC", "RA", "RF", "RP", "RC", "Ex"];
17
+ var _default = {
18
+ title: "Components/atoms/Percent",
19
+ component: _index.Percent,
20
+ argTypes: {
21
+ statusType: {
22
+ options: status,
23
+ control: {
24
+ type: "select"
25
+ }
26
+ }
27
+ }
28
+ };
29
+ exports.default = _default;
30
+
31
+ var Template = function Template(args) {
32
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Percent, (0, _objectSpread2.default)({}, args));
33
+ };
34
+
35
+ var PercentDefault = Template.bind({});
36
+ exports.PercentDefault = PercentDefault;
37
+ PercentDefault.args = {
38
+ statusType: "-"
39
+ };
@@ -0,0 +1,39 @@
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.Percent = void 0;
9
+
10
+ var _styles = require("./styles");
11
+
12
+ var _polygon = _interopRequireDefault(require("../../../assets/images/arrow/polygon.svg"));
13
+
14
+ var _jsxRuntime = require("react/jsx-runtime");
15
+
16
+ var Percent = function Percent(_ref) {
17
+ var statusType = _ref.statusType;
18
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
19
+ className: "status-".concat(statusType),
20
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
21
+ className: "text",
22
+ children: "Productos en proceso"
23
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
24
+ className: "percent-text",
25
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
26
+ className: "number",
27
+ children: "20"
28
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
29
+ src: _polygon.default,
30
+ alt: ""
31
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
32
+ className: "span",
33
+ children: "1%"
34
+ })]
35
+ })]
36
+ });
37
+ };
38
+
39
+ exports.Percent = Percent;
@@ -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 border-radius: 7px;\n width: 97px;\n height: 83px;\n text-align: center;\n padding: 15px;\n\n &.status-Pr,\n &.status-Rc {\n border: 1px solid ", ";\n .span {\n color: ", ";\n }\n }\n &.status-- {\n border: 1px solid ", ";\n .span {\n color: ", ";\n }\n }\n\n &.status-As,\n &.status-P,\n &.status-QF {\n border: 1px solid ", ";\n .span {\n color: ", ";\n }\n }\n\n &.status-AF,\n &.status-AA,\n &.status-AP,\n &.status-AC {\n border: 1px solid ", ";\n .span {\n color: ", ";\n }\n }\n\n &.status-RA,\n &.status-RF,\n &.status-RP,\n &.status-RC {\n border: 1px solid #d74ded;\n .span {\n color: #d74ded;\n }\n }\n\n &.status-Ex {\n border: 1px solid ", ";\n .span {\n color: ", ";\n }\n }\n\n .text {\n color: ", ";\n font-size: 12px;\n font-family: ", ";\n line-height: 14px;\n }\n .percent-text {\n display: flex;\n .number {\n font-family: ", ";\n font-size: 28px;\n color: ", ";\n }\n .span{\n padding-top: 8px;\n font-size: 18px;\n }\n }\n"])), _variables.GlobalColors.reception, _variables.GlobalColors.reception, _variables.GlobalColors.s3, _variables.GlobalColors.s3, _variables.GlobalColors.in_progress, _variables.GlobalColors.in_progress, _variables.GlobalColors.finished, _variables.GlobalColors.finished, _variables.GlobalColors.exported, _variables.GlobalColors.exported, _variables.GlobalColors.s4, _variables.FontFamily.Raleway, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s4);
19
+
20
+ exports.Container = Container;
@@ -18,12 +18,27 @@ var StatusTag = function StatusTag(_ref) {
18
18
  case "COMPLETED":
19
19
  return "C";
20
20
 
21
+ case "RECEPTION":
22
+ return "Pr";
23
+
21
24
  case "NULL":
22
- return "--";
25
+ return "-";
26
+
27
+ case "RECEIVED":
28
+ return "Rc";
29
+
30
+ case "IN_PROGRESS":
31
+ return "P";
32
+
33
+ case "ASSIGNED":
34
+ return "As";
23
35
 
24
36
  case "APPROVED":
25
37
  return "Ap";
26
38
 
39
+ case "VALIDATING":
40
+ return "V";
41
+
27
42
  case "PAID_OUT":
28
43
  return "Po";
29
44
 
@@ -33,7 +48,7 @@ var StatusTag = function StatusTag(_ref) {
33
48
  };
34
49
 
35
50
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
36
- className: "status-".concat(getShortStatus(statusType === null || statusType === void 0 ? void 0 : statusType.replace(/\/.*/, "")), " ").concat(ovalForm && "oval-form"),
51
+ className: "status-".concat(getShortStatus(statusType), " ").concat(ovalForm && "oval-form"),
37
52
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
38
53
  children: getShortStatus(statusType)
39
54
  })
@@ -15,6 +15,6 @@ var _variables = require("../../../global-files/variables");
15
15
 
16
16
  var _templateObject;
17
17
 
18
- var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: fit-content;\n padding: 0 10px;\n height: 20px;\n background-color: ", ";\n border-radius: 3px;\n\n p {\n text-align: center;\n color: ", ";\n font-family: ", ";\n font-size: 12px;\n line-height: 20px;\n }\n\n &.status-AS,\n &.status-CA,\n &.status-IE {\n background-color: ", ";\n }\n\n &.status-R {\n background-color: ", ";\n }\n\n &.status-AA,\n &.status-AP,\n &.status-ACA,\n &.status-AC {\n background-color: ", ";\n }\n\n &.status-RA,\n &.status-RC,\n &.status-RP,\n &.status-RCA {\n background-color: ", ";\n }\n\n &.status-Dat,\n &.status-Dsc,\n &.status-Imgs {\n background-color: ", ";\n }\n\n &.status-Ex {\n background-color: ", ";\n }\n\n &.status-DDI {\n background-color: ", ";\n }\n\n &.status-GLD {\n background-color: ", ";\n }\n\n &.status-TAB {\n background-color: ", ";\n }\n\n &.status-Pt {\n background-color: ", ";\n color: ", ";\n }\n\n &.oval-form {\n border-radius: 10px;\n }\n &.delThis {\n color: red;\n }\n"])), _variables.GlobalColors.s3, _variables.GlobalColors.white, _variables.FontFamily.Lato, _variables.GlobalColors.in_progress, _variables.GlobalColors.reception, _variables.GlobalColors.finished, _variables.GlobalColors.rejected_status, _variables.GlobalColors.s4, _variables.GlobalColors.exported, _variables.GlobalColors.original_purpura, _variables.GlobalColors.in_progress, _variables.GlobalColors.deep_gray, _variables.GlobalColors.s2, _variables.GlobalColors.s4);
18
+ var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: fit-content;\n padding: 0 10px;\n height: 20px;\n background-color: ", ";\n border-radius: 3px;\n\n p {\n text-align: center;\n color: ", ";\n font-family: ", ";\n font-size: 12px;\n line-height: 20px;\n }\n\n &.status-As,\n &.status-P,\n &.status-IN_PROGRESS,\n &.status-QF {\n background-color: ", ";\n }\n\n &.status-Pr,\n &.status-Rr,\n &.status-Rc {\n background-color: ", ";\n }\n\n &.status-AA,\n &.status-AP,\n &.status-AC,\n &.status-AF {\n background-color: ", ";\n }\n\n &.status-RA,\n &.status-RF,\n &.status-RP,\n &.status-RC {\n background-color: ", ";\n }\n\n &.status-Dat,\n &.status-Dsc,\n &.status-Imgs {\n background-color: ", ";\n }\n\n &.status-Ex {\n background-color: ", ";\n }\n\n &.status-DDI {\n background-color: ", ";\n }\n\n &.status-GLD {\n background-color: ", ";\n }\n\n &.status-TAB {\n background-color: ", ";\n }\n\n &.status-Pt {\n background-color: ", ";\n color: ", ";\n }\n\n &.oval-form {\n border-radius: 10px;\n }\n"])), _variables.GlobalColors.s3, _variables.GlobalColors.white, _variables.FontFamily.Lato, _variables.GlobalColors.in_progress, _variables.GlobalColors.reception, _variables.GlobalColors.finished, _variables.GlobalColors.rejected_status, _variables.GlobalColors.s4, _variables.GlobalColors.exported, _variables.GlobalColors.original_purpura, _variables.GlobalColors.in_progress, _variables.GlobalColors.deep_gray, _variables.GlobalColors.s2, _variables.GlobalColors.s4);
19
19
 
20
20
  exports.Container = Container;
@@ -0,0 +1,31 @@
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.default = exports.TextAndGradientDefault = void 0;
9
+
10
+ var _index = require("./index");
11
+
12
+ var _Cadena = _interopRequireDefault(require("../../../assets/images/providerAndCadena/Cadena.svg"));
13
+
14
+ var _default = {
15
+ title: "Components/molecules/TextAndGradient",
16
+ component: _index.TextAndGradient
17
+ };
18
+ exports.default = _default;
19
+
20
+ var Template = function Template(args) {
21
+ return /*#__PURE__*/React.createElement(_index.TextAndGradient, args);
22
+ };
23
+
24
+ var TextAndGradientDefault = Template.bind({});
25
+ exports.TextAndGradientDefault = TextAndGradientDefault;
26
+ TextAndGradientDefault.args = {
27
+ title: "Beneficios de cadenas",
28
+ containerList: {
29
+ content: ["Crea proveedores y agregalos a tu cadena", "Valida los proveedores", "Solicita actualización a proveedores", "Analiza el número de productos totales"]
30
+ }
31
+ };
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.TextAndGradient = void 0;
7
+
8
+ var _styles = require("./styles");
9
+
10
+ var _AtomList = require("../../atoms/AtomList");
11
+
12
+ var _ScreenHeader = require("../../atoms/ScreenHeader");
13
+
14
+ var _variables = require("../../../global-files/variables");
15
+
16
+ var TextAndGradient = function TextAndGradient(_ref) {
17
+ var title = _ref.title,
18
+ image = _ref.image,
19
+ containerList = _ref.containerList;
20
+ return /*#__PURE__*/React.createElement(_styles.Container, null, /*#__PURE__*/React.createElement("div", {
21
+ className: "title"
22
+ }, /*#__PURE__*/React.createElement(_ScreenHeader.ScreenHeader, {
23
+ className: "title",
24
+ headerType: "with-bold-text",
25
+ text: title,
26
+ color: _variables.GlobalColors.s1
27
+ })), image && /*#__PURE__*/React.createElement("img", {
28
+ src: image
29
+ }), /*#__PURE__*/React.createElement("div", {
30
+ className: "list"
31
+ }, /*#__PURE__*/React.createElement(_AtomList.AtomList, {
32
+ content: containerList.content
33
+ })));
34
+ };
35
+
36
+ exports.TextAndGradient = TextAndGradient;
@@ -0,0 +1,18 @@
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 _templateObject;
15
+
16
+ var Container = _styledComponents.default.button(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\n position: absolute;\n width: 720px;\n height: 720px;\n left: 0px;\n top: 0px;\n background: linear-gradient(180deg, #E33AA9 0%, #3B1366 100%);\n align-content: center;\n\n .title{\n position: absolute;\n width: 475px;\n height: 36px;\n left: 110px;\n top: 140px;\n letter-spacing: -0.015em;\n font-feature-settings: 'pnum' on, 'lnum' on;\n }\n .list{\n position: absolute;\n height: 160px;\n left: 180px;\n top: 219px;\n font-family: Raleway;\n font-style: normal;\n font-weight: 500;\n font-size: 18px;\n line-height: 40px;\n letter-spacing: -0.015em;\n text-align: left;\n \n }\n\n"])));
17
+
18
+ exports.Container = Container;
@@ -47,7 +47,7 @@ var FullProductNameHeader = function FullProductNameHeader(_ref) {
47
47
  var element = [];
48
48
  servicesData.forEach(function (sd) {
49
49
  if (sd.id_retailer === rt.id) {
50
- element.push(sd.status ? sd.status : "R");
50
+ element.push(sd.status ? sd.status : "RECEIVED");
51
51
  } else element.push("NA");
52
52
 
53
53
  rt["services"] = element;
@@ -31,117 +31,119 @@ ProviderProductEditionDefault.args = {
31
31
  "Ficha técnica": false,
32
32
  Imágenes: false
33
33
  },
34
- token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmNTkyN2Y4ZS1jYmY3LTQ5MjItOWUwOS1lNjllYzBiMjczMWEiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImY1OTI3ZjhlLWNiZjctNDkyMi05ZTA5LWU2OWVjMGIyNzMxYSIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiIwOWQ1MDUzMy05NjA3LTQ5YTQtODRkNC0zMDk1OWNmNmY4NjUiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY1NjYwNzcyMSwibmFtZSI6IklzbWFlbCBMb3BleiIsInBob25lX251bWJlciI6Iis1MjMxMTEzNjYzMzYiLCJleHAiOjE2NTY2MTEzMjEsImlhdCI6MTY1NjYwNzcyMSwiZW1haWwiOiJpbG9wZXpAY29udGVudG9oLmNvbSJ9.Xung-7vGoB-YllkTIOn0DrNRd-GBD4lbQemGdMxRPFbE-nvvGXQsTWLstJ-8yQ4zoyGUoOIoGsRwuI127kUkg4hhel6pXDINfxdWsdI1QXk6SzGulkcmhD8gUFnXMc8rvBkMizNYHF9d_7dUsJRhjAxQWmVew8m7W8dTPrAht_xjfk1ZmTQVD4O6IVwLJEX3FncXj1tAXgknksUGj-vGDen5HkuVEv8jJlKFiz72cV07H66jk3-BReu0e_gpq2RRz8wGu18HOaPzjWvzmiYcm5FqGKOTAWM5JSgWCOm9r5ixh5m_pM3EjKbWpVb3joELRQ2DVkPFp2fzGmS028-9XQ",
35
- articleId: 55157,
36
- category: 4,
37
- version: 3,
34
+ token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI1ODg0YWUzNC01OWQ2LTQ0NTQtYjk4ZS04MjE1MThiY2MzYTciLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6IjU4ODRhZTM0LTU5ZDYtNDQ1NC1iOThlLTgyMTUxOGJjYzNhNyIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiJhODE2NGMwNi1hN2U5LTQ2OGItYTBiMS02MDIxNzMyNWY0ZTgiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY1NjExMzE0NiwibmFtZSI6IkNhZGVuYSBJc21hZWwiLCJwaG9uZV9udW1iZXIiOiIrNTIzMTExMzY2MzM2IiwiZXhwIjoxNjU2MTE2NzQ2LCJpYXQiOjE2NTYxMTMxNDYsImVtYWlsIjoiY2FkZW5hLmlzbWFlbEBhbGxmcmVlbWFpbC5uZXQifQ.kfMoKcxYDkpNZJibGdw50oOkRwPVl26YNAwwDoLEfQjOZB6WRCY95iHfU1maYcTTvA5KlT5ali8XZ-nLnxh60vZoLGTDOfCvEnwd1t94JtfE5CsWDr_jfH1U0AVidxihqKnkwvCezkHwU1DUFlbu2iBNo7MHQw4ydiK2sx4q0-QGltmE7W2JJ0sayRDuNchy2S6FQoyIWhsP3oaKTvJGDKCaJxwkFEKk-3antoMtfua9H8V4p2Kkqa_eDbFk8pLYGaYgImLlaia2orGgETkHZIWEMr4WJq1V_7qOg4lYq2BUUuMhWdmK6XUL_Jhmv05TUJ3Rp_Ti4_J2WE4zQqhbfQ",
35
+ articleId: 238,
36
+ category: 846,
37
+ version: 2,
38
38
  productSelected: {
39
- orderId: 89,
40
- status: "AA",
39
+ orderId: 55,
40
+ article_status: "AP",
41
41
  datasheet_status: "AP",
42
- prio: "none",
43
- version: 3,
44
- description_status: "AA",
42
+ description_status: "AP",
45
43
  images_status: "AP",
46
- brand: "123",
47
- retailerOrder: 0,
48
- missing: {
49
- datasheet: 17,
50
- descriptions: 4,
51
- images: 3
44
+ prio: "none",
45
+ version: 2,
46
+ brand: null,
47
+ article: {
48
+ category: "ILUMINACIÓN|FOCOS|FOCOS",
49
+ company_name: "THD Proveedor",
50
+ country: "México",
51
+ id_category: "2143",
52
+ id_article: 55118,
53
+ name: "FOCO BLUETOOTH SPOT PHILIPS 6 WATTS 300 LÚMENES MULTICOLOR",
54
+ upc: "145582"
52
55
  },
56
+ retailers: [{
57
+ id: 58,
58
+ name: "The Home Depot Golden"
59
+ }, {
60
+ id: 59,
61
+ name: "The Home Depot Platinum"
62
+ }, {
63
+ id: 60,
64
+ name: "The Home Depot Resizing"
65
+ }, {
66
+ id: 61,
67
+ name: "Home Depot TAB"
68
+ }],
53
69
  services: {
54
70
  datasheets: 1,
55
71
  descriptions: 1,
56
72
  images: 1
57
73
  },
58
- article: {
59
- category: "ABARROTES|ABARROTES SECOS|ALIMENTOS DESHIDRATADOS",
60
- company_name: "COMPANY DEV",
61
- country: "México",
62
- id_category: "4",
63
- id_datasheet_especialist: 54,
64
- id_datasheet_facilitator: 52,
65
- id_description_especialist: 54,
66
- id_description_facilitator: 52,
67
- id_images_especialist: 55,
68
- id_images_facilitator: 53,
69
- id_order: 89,
70
- id_article: 55157,
71
- id_auditor: 37,
72
- name: "testing",
73
- upc: "807526"
74
- },
75
- retailers: [{
76
- id: 3,
77
- name: "Sam´s Club"
78
- }],
74
+ id_article: 55118,
79
75
  retailersAvailable: [{
80
- id: 3,
81
- name: "Sam´s Club"
82
- }],
83
- categoryName: "ABARROTES|ABARROTES SECOS|ALIMENTOS DESHIDRATADOS",
84
- upc: "807526",
85
- id_article: 55157,
86
- id_order: 89
76
+ id: 58,
77
+ name: "The Home Depot Golden"
78
+ }, {
79
+ id: 59,
80
+ name: "The Home Depot Platinum"
81
+ }, {
82
+ id: 60,
83
+ name: "The Home Depot Resizing"
84
+ }, {
85
+ id: 61,
86
+ name: "Home Depot TAB"
87
+ }]
87
88
  },
88
89
  productToEdit: {
89
- ArticleId: 55157,
90
- idCategory: "4",
90
+ ArticleId: 55118,
91
+ idCategory: "2143",
91
92
  product: {
92
- orderId: 89,
93
- status: "AA",
93
+ orderId: 55,
94
+ article_status: "AP",
94
95
  datasheet_status: "AP",
95
- prio: "none",
96
- version: 3,
97
- description_status: "AA",
96
+ description_status: "AP",
98
97
  images_status: "AP",
99
- brand: "123",
100
- retailerOrder: 0,
101
- missing: {
102
- datasheet: 17,
103
- descriptions: 4,
104
- images: 3
98
+ prio: "none",
99
+ version: 2,
100
+ brand: null,
101
+ article: {
102
+ category: "ILUMINACIÓN|FOCOS|FOCOS",
103
+ company_name: "THD Proveedor",
104
+ country: "México",
105
+ id_category: "2143",
106
+ id_article: 55118,
107
+ name: "FOCO BLUETOOTH SPOT PHILIPS 6 WATTS 300 LÚMENES MULTICOLOR",
108
+ upc: "145582"
105
109
  },
110
+ retailers: [{
111
+ id: 58,
112
+ name: "The Home Depot Golden"
113
+ }, {
114
+ id: 59,
115
+ name: "The Home Depot Platinum"
116
+ }, {
117
+ id: 60,
118
+ name: "The Home Depot Resizing"
119
+ }, {
120
+ id: 61,
121
+ name: "Home Depot TAB"
122
+ }],
106
123
  services: {
107
124
  datasheets: 1,
108
125
  descriptions: 1,
109
126
  images: 1
110
127
  },
111
- article: {
112
- category: "ABARROTES|ABARROTES SECOS|ALIMENTOS DESHIDRATADOS",
113
- company_name: "COMPANY DEV",
114
- country: "México",
115
- id_category: "4",
116
- id_datasheet_especialist: 54,
117
- id_datasheet_facilitator: 52,
118
- id_description_especialist: 54,
119
- id_description_facilitator: 52,
120
- id_images_especialist: 55,
121
- id_images_facilitator: 53,
122
- id_order: 89,
123
- id_article: 55157,
124
- id_auditor: 37,
125
- name: "testing",
126
- upc: "807526"
127
- },
128
- retailers: [{
129
- id: 3,
130
- name: "Sam´s Club"
131
- }],
128
+ id_article: 55118,
132
129
  retailersAvailable: [{
133
- id: 3,
134
- name: "Sam´s Club"
135
- }],
136
- categoryName: "ABARROTES|ABARROTES SECOS|ALIMENTOS DESHIDRATADOS",
137
- upc: "807526",
138
- id_article: 55157,
139
- id_order: 89
130
+ id: 58,
131
+ name: "The Home Depot Golden"
132
+ }, {
133
+ id: 59,
134
+ name: "The Home Depot Platinum"
135
+ }, {
136
+ id: 60,
137
+ name: "The Home Depot Resizing"
138
+ }, {
139
+ id: 61,
140
+ name: "Home Depot TAB"
141
+ }]
140
142
  }
141
143
  },
142
144
  location: {
143
145
  product: {
144
- articleId: 55157,
146
+ articleId: 109485,
145
147
  versionId: 3
146
148
  },
147
149
  state: {
@@ -149,36 +151,36 @@ ProviderProductEditionDefault.args = {
149
151
  }
150
152
  },
151
153
  user: {
152
- id_user: 28,
153
- name: "Proveedor",
154
- last_name: "Colgate",
155
- email: "ilopez@contentoh.com",
156
- position: "Prueba Admin",
154
+ id_user: 59,
155
+ name: "The Home",
156
+ last_name: "Depot",
157
+ email: "cadena.ismael@allfreemail.net",
158
+ position: "Admin",
157
159
  telephone: "+523111366336",
158
160
  country: "México",
159
- id_company: 1,
160
- id_cognito: "f5927f8e-cbf7-4922-9e09-e69ec0b2731a",
161
+ id_company: 7,
162
+ id_cognito: "5884ae34-59d6-4454-b98e-821518bcc3a7",
161
163
  birth_Date: null,
162
164
  about_me: null,
163
165
  zip_code: null,
164
166
  address: null,
165
167
  job: null,
166
- id_stripe: "cus_KuEt6R6vwmN09f",
168
+ id_stripe: "",
167
169
  id_role: 0,
168
170
  active: 1,
169
171
  is_retailer: 0,
170
- email_notify: 0,
172
+ email_notify: 1,
171
173
  membership: {
172
- id: 38,
173
- start_date: "2022-01-18T17:25:35.000Z",
174
- end_date: "2023-01-18T17:25:35.000Z",
175
- planID: 8,
176
- plan: "prod_KtlhECVSFG2iro",
177
- name: "Plan Pro",
178
- user_limit: "20",
179
- products_limit: "5000",
174
+ id: 24,
175
+ start_date: "2021-11-23T03:35:50.000Z",
176
+ end_date: "2022-11-23T03:35:50.000Z",
177
+ planID: 9,
178
+ plan: "prod_KtlkzZVGq6bRTO",
179
+ name: "Plan Enterprise Full",
180
+ user_limit: "30",
181
+ products_limit: "10000",
180
182
  type: "Enterprise"
181
183
  },
182
- src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1656607722122"
184
+ src: "https://content-management-profile.s3.amazonaws.com/id-59/59.png?1656113146885"
183
185
  }
184
186
  };