contentoh-components-library 21.2.5 → 21.2.8

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.
@@ -32,7 +32,15 @@ var VersionItem = function VersionItem(_ref) {
32
32
  currentVersion = _ref.currentVersion,
33
33
  _ref$productOwner = _ref.productOwner,
34
34
  productOwner = _ref$productOwner === void 0 ? "owner test" : _ref$productOwner,
35
- setVersion = _ref.setVersion;
35
+ setVersion = _ref.setVersion,
36
+ timestamp = _ref.timestamp;
37
+ var textExportedDate = "";
38
+
39
+ if (timestamp !== null) {
40
+ var exportedDate = new Date(timestamp).toLocaleDateString();
41
+ textExportedDate = "\xD9ltima vez exportado: ".concat(exportedDate);
42
+ }
43
+
36
44
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
37
45
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
38
46
  className: "header",
@@ -52,6 +60,8 @@ var VersionItem = function VersionItem(_ref) {
52
60
  text: "Version " + version,
53
61
  headerType: "input-name-header",
54
62
  color: _variables.GlobalColors.magenta_s2
63
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
64
+ children: textExportedDate
55
65
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
56
66
  children: currentVersion ? "Version actual" : articleStatus ? "Edición Content-oh!" : "Version de " + productOwner
57
67
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
@@ -127,7 +127,8 @@ var VersionSelector = function VersionSelector(_ref) {
127
127
  articleStatus: item.article_status,
128
128
  currentVersion: item.version === currentVersion,
129
129
  productOwner: companyName,
130
- setVersion: setVersion
130
+ setVersion: setVersion,
131
+ timestamp: item.timestamp
131
132
  }, item.version);
132
133
  })
133
134
  })]
@@ -33,231 +33,57 @@ RetailerProductEditionDefault.args = {
33
33
  },
34
34
  token: "eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiIwYjY2YTRhOS03NzkwLTQwMzQtYTMwYS1jMDA4MDg5NjI4NjciLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfbFN6UVo0WjdSIiwiY29nbml0bzp1c2VybmFtZSI6IjBiNjZhNGE5LTc3OTAtNDAzNC1hMzBhLWMwMDgwODk2Mjg2NyIsImF1ZCI6IjUyZDlza2tkY2c4cWpwODhvb2sxdXNlNm1rIiwiZXZlbnRfaWQiOiIzNmIxMmUwMy0xOWJhLTRiMDktYWJiYS1kZjk3ZTFkNThjZTQiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY2MDE4MjgzNywibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY2MDE4NjQzNywiaWF0IjoxNjYwMTgyODM3LCJlbWFpbCI6ImJheWFkaTE1MzhAbW5xbG0uY29tIn0.MM9nIHkrRIS2o8_s4BR6VTLgyw3ryvPrr-mf6RtnQ4smng2Q3fmtK07zInNcvcrv8EXO5J9z47_NZ5MOJDo1Pz1CV2cOYM7PT5tEn3F-W4SitqDbBw3KxfkqSMxdZUIHLWECGL-u2ATCYU2J4KRVQi8XSP1qbfv1hu9dh-vID8Fq641ccQwEqUDC13pshDPlR08legg7AAPJqoilV7wuvxqTYAK6fGqMS5jcdW2iDmU0ti9gkydXkYRIC-jg446VOmRCpwzKsk4UAPwlrGeodQ0LV1bfWn_-KVspWCRQd6U5WbFxHn0umYe3CvvPpyVmHzD3F_EMxaVyqV5aW5IoIQ",
35
35
  productSelected: {
36
- services: {
37
- datasheets: 1,
38
- descriptions: 1,
39
- images: 1
36
+ "services": {
37
+ "datasheets": 1,
38
+ "descriptions": 1,
39
+ "images": 1
40
40
  },
41
- orderId: 2296,
42
- status: "AP",
43
- datasheet_status: "AP",
44
- prio: "none",
45
- version: 8,
46
- description_status: "ACA",
47
- images_status: "AP",
48
- article: {
49
- id_article: 14701,
50
- id_category: "684",
51
- name: "Pasta Dental Colgate Total 12 Clean Mint de 100 ml",
52
- upc: "7501035911369",
53
- timestamp: "2021-10-09T16:33:17.000Z",
54
- id_user: 203,
55
- status: "Ex",
56
- active: 1,
57
- company_id: 226,
58
- SKU: null,
59
- Descripcion: null,
60
- Proveedor: null,
61
- id_proveedor: 0,
62
- company_name: "Prueba Test S.A de C.V.",
63
- country: "null",
64
- id_order: 2296,
65
- id_datasheet_especialist: 405,
66
- id_datasheet_facilitator: 158,
67
- id_description_especialist: 405,
68
- id_description_facilitator: 158,
69
- id_images_especialist: 366,
70
- id_images_facilitator: 160,
71
- id_auditor: 9,
72
- id_recepcionist: null,
73
- category: "Salud y Belleza|Cuidado Bucal|Pastas Dentales y Aseo Bucal",
74
- missingAttributes: -1,
75
- missingDescriptions: 3,
76
- missingImages: -9
41
+ "orderId": 1810,
42
+ "status": "RP",
43
+ "datasheet_status": "RP",
44
+ "prio": "none",
45
+ "version": 2,
46
+ "description_status": "RP",
47
+ "images_status": "RP",
48
+ "article": {
49
+ "id_article": 68934,
50
+ "id_category": "2290",
51
+ "name": "SCOTCHBLUE  3PACK MASKING TAPE 24MMX55M",
52
+ "upc": "167907",
53
+ "timestamp": "2022-06-22T15:44:57.000Z",
54
+ "id_user": 704,
55
+ "status": "NULL",
56
+ "active": 1,
57
+ "company_id": 437,
58
+ "SKU": null,
59
+ "Descripcion": null,
60
+ "Proveedor": null,
61
+ "id_proveedor": 0,
62
+ "company_name": "",
63
+ "country": null,
64
+ "id_order": 1810,
65
+ "id_datasheet_especialist": 1248,
66
+ "id_datasheet_facilitator": 1252,
67
+ "id_description_especialist": 1248,
68
+ "id_description_facilitator": 1252,
69
+ "id_images_especialist": 1251,
70
+ "id_images_facilitator": 1286,
71
+ "id_auditor": 514,
72
+ "id_recepcionist": null,
73
+ "category": "Pinturas|Herramientas y accesorios para pintar|Cintas",
74
+ "missingAttributes": null,
75
+ "missingDescriptions": null,
76
+ "missingImages": null
77
77
  },
78
- retailers: [{
79
- id: 4,
80
- name: "Walmart Super y Superama",
81
- country: "México",
82
- id_region: 1,
83
- active: 1,
84
- percentage: 97.61904761904763,
85
- image: "https://content-management-images.s3.amazonaws.com/retailers/4.png",
86
- services: ["NA", "NA", "NA"]
87
- }, {
88
- id: 5,
89
- name: "Chedraui",
90
- country: "México",
91
- id_region: 1,
92
- active: 1,
93
- percentage: 100,
94
- image: "https://content-management-images.s3.amazonaws.com/retailers/5.png",
95
- services: ["NA", "NA", "NA"]
96
- }, {
97
- id: 6,
98
- name: "HEB",
99
- country: "México",
100
- id_region: 1,
101
- active: 1,
102
- percentage: 100,
103
- image: "https://content-management-images.s3.amazonaws.com/retailers/6.png",
104
- services: ["AP", "ACA", "AP"]
105
- }, {
106
- id: 7,
107
- name: "Mega",
108
- country: "México",
109
- id_region: 1,
110
- active: 1,
111
- percentage: 100,
112
- image: "https://content-management-images.s3.amazonaws.com/retailers/7.png",
113
- services: ["NA", "NA", "NA"]
114
- }, {
115
- id: 8,
116
- name: "Fragua",
117
- country: "México",
118
- id_region: 1,
119
- active: 1,
120
- percentage: null,
121
- image: "https://content-management-images.s3.amazonaws.com/retailers/8.png",
122
- services: ["NA", "NA", "NA"]
123
- }, {
124
- id: 9,
125
- name: "Amazon",
126
- country: "México",
127
- id_region: 1,
128
- active: 1,
129
- percentage: 85.18518518518518,
130
- image: "https://content-management-images.s3.amazonaws.com/retailers/9.png",
131
- services: ["NA", "NA", "NA"]
132
- }, {
133
- id: 12,
134
- name: "La Comer",
135
- country: "México",
136
- id_region: 1,
137
- active: 1,
138
- percentage: 100,
139
- image: "https://content-management-images.s3.amazonaws.com/retailers/12.png",
140
- services: ["NA", "NA", "NA"]
141
- }, {
142
- id: 13,
143
- name: "Soriana",
144
- country: "México",
145
- id_region: 1,
146
- active: 1,
147
- percentage: 100,
148
- image: "https://content-management-images.s3.amazonaws.com/retailers/13.png",
149
- services: ["NA", "NA", "NA"]
150
- }, {
151
- id: 16,
152
- name: "Rappi",
153
- country: "México",
154
- id_region: 1,
155
- active: 1,
156
- percentage: 93.33333333333333,
157
- image: "https://content-management-images.s3.amazonaws.com/retailers/16.png",
158
- services: ["NA", "NA", "NA"]
159
- }, {
160
- id: 17,
161
- name: "Genérico",
162
- country: "México",
163
- id_region: 1,
164
- active: 1,
165
- percentage: 100,
166
- image: "https://content-management-images.s3.amazonaws.com/retailers/17.png",
167
- services: ["NA", "NA", "NA"]
168
- }, {
169
- id: 18,
170
- name: "Google",
171
- country: "México",
172
- id_region: 1,
173
- active: 1,
174
- percentage: 96.66666666666667,
175
- image: "https://content-management-images.s3.amazonaws.com/retailers/18.png",
176
- services: ["NA", "NA", "NA"]
177
- }, {
178
- id: 20,
179
- name: "Cornershop",
180
- country: "México",
181
- id_region: 1,
182
- active: 1,
183
- percentage: 91.66666666666667,
184
- image: "https://content-management-images.s3.amazonaws.com/retailers/20.png",
185
- services: ["NA", "NA", "NA"]
186
- }, {
187
- id: 24,
188
- name: "Alsuper",
189
- country: "México",
190
- id_region: 1,
191
- active: 1,
192
- percentage: 95.83333333333333,
193
- image: "https://content-management-images.s3.amazonaws.com/retailers/24.png",
194
- services: ["NA", "NA", "NA"]
195
- }, {
196
- id: 27,
197
- name: "IMPIRA México",
198
- country: "México",
199
- id_region: 1,
200
- active: 1,
201
- percentage: 100,
202
- image: "https://content-management-images.s3.amazonaws.com/retailers/27.png",
203
- services: ["NA", "NA", "NA"]
204
- }, {
205
- id: 29,
206
- name: "Farmacias del Ahorro",
207
- country: "México",
208
- id_region: 1,
209
- active: 1,
210
- percentage: 81.48148148148148,
211
- image: "https://content-management-images.s3.amazonaws.com/retailers/29.png",
212
- services: ["NA", "NA", "NA"]
213
- }, {
214
- id: 33,
215
- name: "Merza",
216
- country: "México",
217
- id_region: 1,
218
- active: 1,
219
- percentage: 66.66666666666667,
220
- image: "https://content-management-images.s3.amazonaws.com/retailers/33.png",
221
- services: ["NA", "NA", "NA"]
222
- }, {
223
- id: 34,
224
- name: "San Pablo",
225
- country: "México",
226
- id_region: 1,
227
- active: 1,
228
- percentage: 95.16666666666667,
229
- image: "https://content-management-images.s3.amazonaws.com/retailers/34.png",
230
- services: ["NA", "NA", "NA"]
231
- }, {
232
- id: 38,
233
- name: "Del Sol",
234
- country: "México",
235
- id_region: 1,
236
- active: 1,
237
- percentage: 100,
238
- image: "https://content-management-images.s3.amazonaws.com/retailers/38.png",
239
- services: ["NA", "NA", "NA"]
240
- }, {
241
- id: 39,
242
- name: "Justo",
243
- country: "México",
244
- id_region: 1,
245
- active: 1,
246
- percentage: 94.73684210526316,
247
- image: "https://content-management-images.s3.amazonaws.com/retailers/39.png",
248
- services: ["NA", "NA", "NA"]
249
- }, {
250
- id: 62,
251
- name: "Sanborns Café",
252
- country: "México",
253
- id_region: 1,
254
- active: 1,
255
- percentage: 100,
256
- image: "https://content-management-images.s3.amazonaws.com/retailers/62.png",
257
- services: ["NA", "NA", "NA"]
78
+ "retailers": [{
79
+ "id": 58,
80
+ "name": "The Home Depot Golden",
81
+ "country": "México",
82
+ "id_region": 1,
83
+ "active": 1
258
84
  }],
259
- country: "null",
260
- upc: "7501035911369"
85
+ "country": null,
86
+ "upc": "167907"
261
87
  },
262
88
  location: {
263
89
  product: {
@@ -266,7 +92,7 @@ RetailerProductEditionDefault.args = {
266
92
  }
267
93
  },
268
94
  user: {
269
- id_user: 423,
95
+ id_user: 1248,
270
96
  name: "Facilitador Textos",
271
97
  last_name: " ",
272
98
  email: "bayadi1538@mnqlm.com",
@@ -281,7 +107,7 @@ RetailerProductEditionDefault.args = {
281
107
  address: null,
282
108
  job: null,
283
109
  id_stripe: null,
284
- id_role: 1,
110
+ id_role: 7,
285
111
  active: 1,
286
112
  is_retailer: 0,
287
113
  email_notify: null,
@@ -1101,7 +1101,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
1101
1101
  return statusArray.includes(srvActive) && (["RA", "RC"].includes(product === null || product === void 0 ? void 0 : product.status) || srv.filter(function (serv) {
1102
1102
  var _serv$status;
1103
1103
 
1104
- return statusArray.includes((_serv$status = serv.status) === null || _serv$status === void 0 ? void 0 : _serv$status.replace(/.*\//, ""));
1104
+ return ["CA"].includes((_serv$status = serv.status) === null || _serv$status === void 0 ? void 0 : _serv$status.replace(/.*\//, ""));
1105
1105
  }).length === srv.length);
1106
1106
 
1107
1107
  case 4:
@@ -1897,7 +1897,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
1897
1897
  headerType: "input-name-header"
1898
1898
  }))]
1899
1899
  })
1900
- }), (userAssigned(activeTab) || auditorAssigned()) && product["".concat(getConcept(activeTab), "_status")] !== "NS" && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
1900
+ }), console.log(userAssigned(activeTab), auditorAssigned()), (userAssigned(activeTab) || auditorAssigned()) && product["".concat(getConcept(activeTab), "_status")] !== "NS" && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
1901
1901
  className: "commentary-box",
1902
1902
  children: [!comment ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
1903
1903
  className: "commentary",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.2.5",
3
+ "version": "21.2.8",
4
4
  "dependencies": {
5
5
  "@aws-amplify/auth": "^4.5.3",
6
6
  "@aws-amplify/datastore": "^3.11.0",
@@ -13,7 +13,14 @@ export const VersionItem = ({
13
13
  currentVersion,
14
14
  productOwner = "owner test",
15
15
  setVersion,
16
+ timestamp,
16
17
  }) => {
18
+ let textExportedDate = "";
19
+ if (timestamp !== null) {
20
+ const exportedDate = new Date(timestamp).toLocaleDateString();
21
+ textExportedDate = `Ùltima vez exportado: ${exportedDate}`;
22
+ }
23
+
17
24
  return (
18
25
  <Container>
19
26
  <div className="header">
@@ -33,6 +40,7 @@ export const VersionItem = ({
33
40
  headerType={"input-name-header"}
34
41
  color={GlobalColors.magenta_s2}
35
42
  />
43
+ <p>{textExportedDate}</p>
36
44
  <p>
37
45
  {currentVersion
38
46
  ? "Version actual"
@@ -8,6 +8,7 @@ import closeIcon from "../../../assets/images/versionSelector/closeVersionSelect
8
8
  import { GlobalColors } from "contentoh-components-library/dist/global-files/variables";
9
9
  import { FontFamily } from "../../../global-files/variables";
10
10
  import { VersionItem } from "../../molecules/VersionItem";
11
+ import { version } from "react";
11
12
 
12
13
  export const VersionSelector = ({
13
14
  modalId,
@@ -75,6 +76,7 @@ export const VersionSelector = ({
75
76
  currentVersion={item.version === currentVersion}
76
77
  productOwner={companyName}
77
78
  setVersion={setVersion}
79
+ timestamp={item.timestamp}
78
80
  />
79
81
  ))}
80
82
  </div>
@@ -18,278 +18,65 @@ RetailerProductEditionDefault.args = {
18
18
  token:
19
19
  "eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiIwYjY2YTRhOS03NzkwLTQwMzQtYTMwYS1jMDA4MDg5NjI4NjciLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfbFN6UVo0WjdSIiwiY29nbml0bzp1c2VybmFtZSI6IjBiNjZhNGE5LTc3OTAtNDAzNC1hMzBhLWMwMDgwODk2Mjg2NyIsImF1ZCI6IjUyZDlza2tkY2c4cWpwODhvb2sxdXNlNm1rIiwiZXZlbnRfaWQiOiIzNmIxMmUwMy0xOWJhLTRiMDktYWJiYS1kZjk3ZTFkNThjZTQiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY2MDE4MjgzNywibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY2MDE4NjQzNywiaWF0IjoxNjYwMTgyODM3LCJlbWFpbCI6ImJheWFkaTE1MzhAbW5xbG0uY29tIn0.MM9nIHkrRIS2o8_s4BR6VTLgyw3ryvPrr-mf6RtnQ4smng2Q3fmtK07zInNcvcrv8EXO5J9z47_NZ5MOJDo1Pz1CV2cOYM7PT5tEn3F-W4SitqDbBw3KxfkqSMxdZUIHLWECGL-u2ATCYU2J4KRVQi8XSP1qbfv1hu9dh-vID8Fq641ccQwEqUDC13pshDPlR08legg7AAPJqoilV7wuvxqTYAK6fGqMS5jcdW2iDmU0ti9gkydXkYRIC-jg446VOmRCpwzKsk4UAPwlrGeodQ0LV1bfWn_-KVspWCRQd6U5WbFxHn0umYe3CvvPpyVmHzD3F_EMxaVyqV5aW5IoIQ",
20
20
  productSelected: {
21
- services: {
22
- datasheets: 1,
23
- descriptions: 1,
24
- images: 1,
21
+ "services": {
22
+ "datasheets": 1,
23
+ "descriptions": 1,
24
+ "images": 1
25
25
  },
26
- orderId: 2296,
27
- status: "AP",
28
- datasheet_status: "AP",
29
- prio: "none",
30
- version: 8,
31
- description_status: "ACA",
32
- images_status: "AP",
33
- article: {
34
- id_article: 14701,
35
- id_category: "684",
36
- name: "Pasta Dental Colgate Total 12 Clean Mint de 100 ml",
37
- upc: "7501035911369",
38
- timestamp: "2021-10-09T16:33:17.000Z",
39
- id_user: 203,
40
- status: "Ex",
41
- active: 1,
42
- company_id: 226,
43
- SKU: null,
44
- Descripcion: null,
45
- Proveedor: null,
46
- id_proveedor: 0,
47
- company_name: "Prueba Test S.A de C.V.",
48
- country: "null",
49
- id_order: 2296,
50
- id_datasheet_especialist: 405,
51
- id_datasheet_facilitator: 158,
52
- id_description_especialist: 405,
53
- id_description_facilitator: 158,
54
- id_images_especialist: 366,
55
- id_images_facilitator: 160,
56
- id_auditor: 9,
57
- id_recepcionist: null,
58
- category: "Salud y Belleza|Cuidado Bucal|Pastas Dentales y Aseo Bucal",
59
- missingAttributes: -1,
60
- missingDescriptions: 3,
61
- missingImages: -9,
26
+ "orderId": 1810,
27
+ "status": "RP",
28
+ "datasheet_status": "RP",
29
+ "prio": "none",
30
+ "version": 2,
31
+ "description_status": "RP",
32
+ "images_status": "RP",
33
+ "article": {
34
+ "id_article": 68934,
35
+ "id_category": "2290",
36
+ "name": "SCOTCHBLUE  3PACK MASKING TAPE 24MMX55M",
37
+ "upc": "167907",
38
+ "timestamp": "2022-06-22T15:44:57.000Z",
39
+ "id_user": 704,
40
+ "status": "NULL",
41
+ "active": 1,
42
+ "company_id": 437,
43
+ "SKU": null,
44
+ "Descripcion": null,
45
+ "Proveedor": null,
46
+ "id_proveedor": 0,
47
+ "company_name": "",
48
+ "country": null,
49
+ "id_order": 1810,
50
+ "id_datasheet_especialist": 1248,
51
+ "id_datasheet_facilitator": 1252,
52
+ "id_description_especialist": 1248,
53
+ "id_description_facilitator": 1252,
54
+ "id_images_especialist": 1251,
55
+ "id_images_facilitator": 1286,
56
+ "id_auditor": 514,
57
+ "id_recepcionist": null,
58
+ "category": "Pinturas|Herramientas y accesorios para pintar|Cintas",
59
+ "missingAttributes": null,
60
+ "missingDescriptions": null,
61
+ "missingImages": null
62
62
  },
63
- retailers: [
64
- {
65
- id: 4,
66
- name: "Walmart Super y Superama",
67
- country: "México",
68
- id_region: 1,
69
- active: 1,
70
- percentage: 97.61904761904763,
71
- image:
72
- "https://content-management-images.s3.amazonaws.com/retailers/4.png",
73
- services: ["NA", "NA", "NA"],
74
- },
75
- {
76
- id: 5,
77
- name: "Chedraui",
78
- country: "México",
79
- id_region: 1,
80
- active: 1,
81
- percentage: 100,
82
- image:
83
- "https://content-management-images.s3.amazonaws.com/retailers/5.png",
84
- services: ["NA", "NA", "NA"],
85
- },
86
- {
87
- id: 6,
88
- name: "HEB",
89
- country: "México",
90
- id_region: 1,
91
- active: 1,
92
- percentage: 100,
93
- image:
94
- "https://content-management-images.s3.amazonaws.com/retailers/6.png",
95
- services: ["AP", "ACA", "AP"],
96
- },
97
- {
98
- id: 7,
99
- name: "Mega",
100
- country: "México",
101
- id_region: 1,
102
- active: 1,
103
- percentage: 100,
104
- image:
105
- "https://content-management-images.s3.amazonaws.com/retailers/7.png",
106
- services: ["NA", "NA", "NA"],
107
- },
108
- {
109
- id: 8,
110
- name: "Fragua",
111
- country: "México",
112
- id_region: 1,
113
- active: 1,
114
- percentage: null,
115
- image:
116
- "https://content-management-images.s3.amazonaws.com/retailers/8.png",
117
- services: ["NA", "NA", "NA"],
118
- },
119
- {
120
- id: 9,
121
- name: "Amazon",
122
- country: "México",
123
- id_region: 1,
124
- active: 1,
125
- percentage: 85.18518518518518,
126
- image:
127
- "https://content-management-images.s3.amazonaws.com/retailers/9.png",
128
- services: ["NA", "NA", "NA"],
129
- },
130
- {
131
- id: 12,
132
- name: "La Comer",
133
- country: "México",
134
- id_region: 1,
135
- active: 1,
136
- percentage: 100,
137
- image:
138
- "https://content-management-images.s3.amazonaws.com/retailers/12.png",
139
- services: ["NA", "NA", "NA"],
140
- },
141
- {
142
- id: 13,
143
- name: "Soriana",
144
- country: "México",
145
- id_region: 1,
146
- active: 1,
147
- percentage: 100,
148
- image:
149
- "https://content-management-images.s3.amazonaws.com/retailers/13.png",
150
- services: ["NA", "NA", "NA"],
151
- },
152
- {
153
- id: 16,
154
- name: "Rappi",
155
- country: "México",
156
- id_region: 1,
157
- active: 1,
158
- percentage: 93.33333333333333,
159
- image:
160
- "https://content-management-images.s3.amazonaws.com/retailers/16.png",
161
- services: ["NA", "NA", "NA"],
162
- },
163
- {
164
- id: 17,
165
- name: "Genérico",
166
- country: "México",
167
- id_region: 1,
168
- active: 1,
169
- percentage: 100,
170
- image:
171
- "https://content-management-images.s3.amazonaws.com/retailers/17.png",
172
- services: ["NA", "NA", "NA"],
173
- },
174
- {
175
- id: 18,
176
- name: "Google",
177
- country: "México",
178
- id_region: 1,
179
- active: 1,
180
- percentage: 96.66666666666667,
181
- image:
182
- "https://content-management-images.s3.amazonaws.com/retailers/18.png",
183
- services: ["NA", "NA", "NA"],
184
- },
185
- {
186
- id: 20,
187
- name: "Cornershop",
188
- country: "México",
189
- id_region: 1,
190
- active: 1,
191
- percentage: 91.66666666666667,
192
- image:
193
- "https://content-management-images.s3.amazonaws.com/retailers/20.png",
194
- services: ["NA", "NA", "NA"],
195
- },
196
- {
197
- id: 24,
198
- name: "Alsuper",
199
- country: "México",
200
- id_region: 1,
201
- active: 1,
202
- percentage: 95.83333333333333,
203
- image:
204
- "https://content-management-images.s3.amazonaws.com/retailers/24.png",
205
- services: ["NA", "NA", "NA"],
206
- },
207
- {
208
- id: 27,
209
- name: "IMPIRA México",
210
- country: "México",
211
- id_region: 1,
212
- active: 1,
213
- percentage: 100,
214
- image:
215
- "https://content-management-images.s3.amazonaws.com/retailers/27.png",
216
- services: ["NA", "NA", "NA"],
217
- },
218
- {
219
- id: 29,
220
- name: "Farmacias del Ahorro",
221
- country: "México",
222
- id_region: 1,
223
- active: 1,
224
- percentage: 81.48148148148148,
225
- image:
226
- "https://content-management-images.s3.amazonaws.com/retailers/29.png",
227
- services: ["NA", "NA", "NA"],
228
- },
229
- {
230
- id: 33,
231
- name: "Merza",
232
- country: "México",
233
- id_region: 1,
234
- active: 1,
235
- percentage: 66.66666666666667,
236
- image:
237
- "https://content-management-images.s3.amazonaws.com/retailers/33.png",
238
- services: ["NA", "NA", "NA"],
239
- },
240
- {
241
- id: 34,
242
- name: "San Pablo",
243
- country: "México",
244
- id_region: 1,
245
- active: 1,
246
- percentage: 95.16666666666667,
247
- image:
248
- "https://content-management-images.s3.amazonaws.com/retailers/34.png",
249
- services: ["NA", "NA", "NA"],
250
- },
251
- {
252
- id: 38,
253
- name: "Del Sol",
254
- country: "México",
255
- id_region: 1,
256
- active: 1,
257
- percentage: 100,
258
- image:
259
- "https://content-management-images.s3.amazonaws.com/retailers/38.png",
260
- services: ["NA", "NA", "NA"],
261
- },
262
- {
263
- id: 39,
264
- name: "Justo",
265
- country: "México",
266
- id_region: 1,
267
- active: 1,
268
- percentage: 94.73684210526316,
269
- image:
270
- "https://content-management-images.s3.amazonaws.com/retailers/39.png",
271
- services: ["NA", "NA", "NA"],
272
- },
273
- {
274
- id: 62,
275
- name: "Sanborns Café",
276
- country: "México",
277
- id_region: 1,
278
- active: 1,
279
- percentage: 100,
280
- image:
281
- "https://content-management-images.s3.amazonaws.com/retailers/62.png",
282
- services: ["NA", "NA", "NA"],
283
- },
63
+ "retailers": [
64
+ {
65
+ "id": 58,
66
+ "name": "The Home Depot Golden",
67
+ "country": "México",
68
+ "id_region": 1,
69
+ "active": 1
70
+ }
284
71
  ],
285
- country: "null",
286
- upc: "7501035911369",
287
- },
72
+ "country": null,
73
+ "upc": "167907"
74
+ },
288
75
  location: {
289
76
  product: { articleId: 109485, versionId: 3 },
290
77
  },
291
78
  user: {
292
- id_user: 423,
79
+ id_user: 1248,
293
80
  name: "Facilitador Textos",
294
81
  last_name: " ",
295
82
  email: "bayadi1538@mnqlm.com",
@@ -304,7 +91,7 @@ RetailerProductEditionDefault.args = {
304
91
  address: null,
305
92
  job: null,
306
93
  id_stripe: null,
307
- id_role: 1,
94
+ id_role: 7,
308
95
  active: 1,
309
96
  is_retailer: 0,
310
97
  email_notify: null,
@@ -648,7 +648,7 @@ export const RetailerProductEdition = ({
648
648
  statusArray.includes(srvActive) &&
649
649
  (["RA", "RC"].includes(product?.status) ||
650
650
  srv.filter((serv) =>
651
- statusArray.includes(serv.status?.replace(/.*\//, ""))
651
+ ["CA"].includes(serv.status?.replace(/.*\//, ""))
652
652
  ).length === srv.length)
653
653
  );
654
654
  case 4:
@@ -1387,6 +1387,7 @@ export const RetailerProductEdition = ({
1387
1387
  </>
1388
1388
  )}
1389
1389
  </div>
1390
+ {console.log(userAssigned(activeTab), auditorAssigned())}
1390
1391
  {(userAssigned(activeTab) || auditorAssigned()) &&
1391
1392
  product[`${getConcept(activeTab)}_status`] !== "NS" && (
1392
1393
  <div className="commentary-box">