contentoh-components-library 21.3.54 → 21.3.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.development +0 -2
- package/dist/assets/fonts/roboto/LICENSE.txt +202 -0
- package/dist/components/atoms/ButtonV2/styles.js +1 -1
- package/dist/components/atoms/Status/styles.js +1 -1
- package/dist/components/atoms/VerticalSideMenuMainPage/index.js +23 -18
- package/dist/components/atoms/VerticalSideMenuMainPage/styles.js +4 -4
- package/dist/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/dist/components/molecules/HeaderTop/index.js +11 -68
- package/dist/components/organisms/Chat/Chat.stories.js +1 -21
- package/dist/components/organisms/Chat/ContainerItems/index.js +3 -19
- package/dist/components/organisms/Chat/ContainerItems/styles.js +1 -1
- package/dist/components/organisms/Chat/ContentChat/index.js +191 -343
- package/dist/components/organisms/Chat/Footer/index.js +39 -48
- package/dist/components/organisms/Chat/index.js +3 -48
- package/dist/components/organisms/DashboardMetric/dashboardMetricUtils.js +0 -27
- package/dist/components/organisms/FullProductNameHeader/index.js +2 -2
- package/dist/components/organisms/GlobalModal/styles.js +1 -1
- package/dist/components/organisms/OrderDetail/styles.js +1 -1
- package/dist/components/organisms/OrderDetail/utils/Table/styles.js +1 -1
- package/dist/components/pages/Dashboard/Dashboard.stories.js +50 -31
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +81 -198
- package/dist/components/pages/ProviderProductEdition/index.js +429 -725
- package/dist/components/pages/ProviderProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +139 -86
- package/dist/components/pages/RetailerProductEdition/index.js +279 -268
- package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/utils.js +2 -61
- package/dist/index.js +0 -13
- package/package.json +6 -7
- package/src/components/atoms/ButtonV2/styles.js +1 -1
- package/src/components/atoms/Status/styles.js +0 -4
- package/src/components/atoms/VerticalSideMenuMainPage/index.js +22 -18
- package/src/components/atoms/VerticalSideMenuMainPage/styles.js +4 -3
- package/src/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/src/components/molecules/HeaderTop/index.js +6 -52
- package/src/components/organisms/Chat/Chat.stories.js +0 -21
- package/src/components/organisms/Chat/ContainerItems/index.js +2 -18
- package/src/components/organisms/Chat/ContainerItems/styles.js +2 -10
- package/src/components/organisms/Chat/ContentChat/index.js +6 -81
- package/src/components/organisms/Chat/Footer/index.js +0 -11
- package/src/components/organisms/Chat/index.js +3 -47
- package/src/components/organisms/DashboardMetric/dashboardMetricUtils.js +1 -18
- package/src/components/organisms/FullProductNameHeader/index.js +1 -1
- package/src/components/organisms/GlobalModal/styles.js +0 -10
- package/src/components/organisms/OrderDetail/index.js +0 -1
- package/src/components/organisms/OrderDetail/styles.js +1 -1
- package/src/components/organisms/OrderDetail/utils/Table/styles.js +1 -0
- package/src/components/pages/Dashboard/Dashboard.stories.js +55 -31
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +88 -214
- package/src/components/pages/ProviderProductEdition/index.js +160 -323
- package/src/components/pages/ProviderProductEdition/styles.js +1 -5
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +146 -89
- package/src/components/pages/RetailerProductEdition/index.js +138 -112
- package/src/components/pages/RetailerProductEdition/styles.js +0 -4
- package/src/components/pages/RetailerProductEdition/utils.js +0 -37
- package/src/index.js +0 -1
- package/src/components/organisms/TableResizable/TableResizable.stories.js +0 -17
- package/src/components/organisms/TableResizable/index.js +0 -119
- package/src/components/organisms/TableResizable/styles.js +0 -133
- package/src/components/organisms/TableResizable/utils.js +0 -46
|
@@ -169,17 +169,6 @@ export const Footer = (props) => {
|
|
|
169
169
|
errorMessage = "El ID del ticket no es valido";
|
|
170
170
|
}
|
|
171
171
|
break;
|
|
172
|
-
case "product_status":
|
|
173
|
-
if (
|
|
174
|
-
isValidNaturalNumber(dataChat?.id) &&
|
|
175
|
-
isValidNaturalNumber(dataChat?.version) &&
|
|
176
|
-
isValidNaturalNumber(dataChat?.retailerId)
|
|
177
|
-
) {
|
|
178
|
-
fileKey += `productStatus/${dataChat.id}-${dataChat?.version}-${dataChat?.retailerId}/`;
|
|
179
|
-
} else {
|
|
180
|
-
errorMessage = "El ID del ticket no es valido";
|
|
181
|
-
}
|
|
182
|
-
break;
|
|
183
172
|
|
|
184
173
|
default:
|
|
185
174
|
errorMessage =
|
|
@@ -24,7 +24,7 @@ export const Chat = (props) => {
|
|
|
24
24
|
const [showPopUpChat, setShowPopUpChat] = useState(false);
|
|
25
25
|
const [data, setData] = useState();
|
|
26
26
|
|
|
27
|
-
const { ticketCompany
|
|
27
|
+
const { ticketCompany } = chatData || {};
|
|
28
28
|
|
|
29
29
|
useEffect(() => {
|
|
30
30
|
switch (chatType) {
|
|
@@ -37,9 +37,6 @@ export const Chat = (props) => {
|
|
|
37
37
|
case "ticket":
|
|
38
38
|
validateChatTicket();
|
|
39
39
|
break;
|
|
40
|
-
case "product_status":
|
|
41
|
-
validateProductStatus();
|
|
42
|
-
break;
|
|
43
40
|
default:
|
|
44
41
|
setData({
|
|
45
42
|
code: 404,
|
|
@@ -49,45 +46,6 @@ export const Chat = (props) => {
|
|
|
49
46
|
}
|
|
50
47
|
}, [chatType]);
|
|
51
48
|
|
|
52
|
-
const validateProductStatus = () => {
|
|
53
|
-
const {
|
|
54
|
-
userToken, // string
|
|
55
|
-
id, // number
|
|
56
|
-
version,
|
|
57
|
-
retailerId, // number
|
|
58
|
-
status,
|
|
59
|
-
orderId,
|
|
60
|
-
} = chatData;
|
|
61
|
-
|
|
62
|
-
if (!isValidGeneral(userToken, id)) return;
|
|
63
|
-
|
|
64
|
-
// validar el ID de la cadena asociada al producto en la OT
|
|
65
|
-
if (!isValidNaturalNumber(retailerId)) {
|
|
66
|
-
setDataError("La cadena relacionada al producto no es válida");
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
// validar el ID de la version asociada al producto en la OT
|
|
71
|
-
if (!isValidNaturalNumber(version)) {
|
|
72
|
-
setDataError("La versión del producto no es válida");
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
if (orderId && !isValidNaturalNumber(orderId)) {
|
|
77
|
-
setDataError("La orden del producto no es válida");
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
setData({
|
|
82
|
-
userToken,
|
|
83
|
-
id,
|
|
84
|
-
version,
|
|
85
|
-
retailerId,
|
|
86
|
-
orderId,
|
|
87
|
-
status,
|
|
88
|
-
});
|
|
89
|
-
};
|
|
90
|
-
|
|
91
49
|
const isValidGeneral = (userToken, id) => {
|
|
92
50
|
// validar token del user
|
|
93
51
|
if (isStringEmpty(userToken)) {
|
|
@@ -111,8 +69,6 @@ export const Chat = (props) => {
|
|
|
111
69
|
retailerId, // number
|
|
112
70
|
} = chatData;
|
|
113
71
|
|
|
114
|
-
console.log(chatData, "chatData");
|
|
115
|
-
|
|
116
72
|
if (!isValidGeneral(userToken, id)) return;
|
|
117
73
|
|
|
118
74
|
// validar el ID de la OT en donde se encuentra el producto
|
|
@@ -241,7 +197,7 @@ export const Chat = (props) => {
|
|
|
241
197
|
dataChat={data}
|
|
242
198
|
showBtnClose={false}
|
|
243
199
|
ticketCompany={ticketCompany}
|
|
244
|
-
activeRetailer={props.activeRetailer
|
|
200
|
+
activeRetailer={props.activeRetailer}
|
|
245
201
|
/>
|
|
246
202
|
</ContainerFixed>
|
|
247
203
|
);
|
|
@@ -274,7 +230,7 @@ export const Chat = (props) => {
|
|
|
274
230
|
onClickBtnClose={() => {
|
|
275
231
|
setShowPopUpChat(false);
|
|
276
232
|
}}
|
|
277
|
-
activeRetailer={props.activeRetailer
|
|
233
|
+
activeRetailer={props.activeRetailer}
|
|
278
234
|
/>
|
|
279
235
|
</ContainerPopUp>
|
|
280
236
|
</Slide>
|
|
@@ -35,16 +35,6 @@ export const getFullStatus = (status) => {
|
|
|
35
35
|
return "Exportado";
|
|
36
36
|
case "NS":
|
|
37
37
|
return "No solicitado";
|
|
38
|
-
case "SAC":
|
|
39
|
-
return "Solicitud Auditoría Content-oh!";
|
|
40
|
-
case "AAC":
|
|
41
|
-
return "Aprobado Auditoría Content-oh!";
|
|
42
|
-
case "RAC":
|
|
43
|
-
return "Rechazado Auditoría Content-oh!";
|
|
44
|
-
case "FAP":
|
|
45
|
-
return "Finalización Auditoría por Proveedor";
|
|
46
|
-
default:
|
|
47
|
-
return "";
|
|
48
38
|
}
|
|
49
39
|
};
|
|
50
40
|
|
|
@@ -85,14 +75,6 @@ export const getStatusColor = (status) => {
|
|
|
85
75
|
return "black";
|
|
86
76
|
case "Ex":
|
|
87
77
|
return "#09CAD8";
|
|
88
|
-
case "SAC":
|
|
89
|
-
return "#2471A3";
|
|
90
|
-
case "AAC":
|
|
91
|
-
return "#1ABC9C";
|
|
92
|
-
case "RAC":
|
|
93
|
-
return "#229954";
|
|
94
|
-
case "FAP":
|
|
95
|
-
return "#F1C40F";
|
|
96
78
|
default:
|
|
97
79
|
return "white";
|
|
98
80
|
}
|
|
@@ -122,6 +104,7 @@ export const removeOldStatus = (object) => {
|
|
|
122
104
|
object["AC"] = object["AC"] + object["AF"];
|
|
123
105
|
delete object["AF"];
|
|
124
106
|
break;
|
|
107
|
+
|
|
125
108
|
default:
|
|
126
109
|
break;
|
|
127
110
|
}
|
|
@@ -23,7 +23,7 @@ export const FullProductNameHeader = ({
|
|
|
23
23
|
useEffect(() => {
|
|
24
24
|
const rtls = headerData?.retailers || headerData?.retailersAvailable;
|
|
25
25
|
servicesData &&
|
|
26
|
-
rtls
|
|
26
|
+
rtls.forEach((rt) => {
|
|
27
27
|
const element = [];
|
|
28
28
|
servicesData.forEach((sd) => {
|
|
29
29
|
if (sd.id_retailer === rt.id) {
|
|
@@ -27,16 +27,6 @@ export const MessageContainer = styled.div`
|
|
|
27
27
|
min-height: ${(props) => (props.height ? "300px" : "190px")};
|
|
28
28
|
background: #281f33;
|
|
29
29
|
border-radius: 39px;
|
|
30
|
-
& > .generic-text {
|
|
31
|
-
width: 100%;
|
|
32
|
-
font-family: Raleway;
|
|
33
|
-
font-style: normal;
|
|
34
|
-
font-weight: normal;
|
|
35
|
-
font-size: 16px;
|
|
36
|
-
text-align: center;
|
|
37
|
-
color: #f7f7f7;
|
|
38
|
-
margin: 20px 0px;
|
|
39
|
-
}
|
|
40
30
|
`;
|
|
41
31
|
export const TextArea = styled.textarea`
|
|
42
32
|
display: block;
|
|
@@ -9,59 +9,83 @@ const Template = (args) => <Dashboard {...args} />;
|
|
|
9
9
|
export const DashboardDeafult = Template.bind({});
|
|
10
10
|
DashboardDeafult.args = {
|
|
11
11
|
user: {
|
|
12
|
-
id_user:
|
|
13
|
-
name: "
|
|
14
|
-
last_name: "",
|
|
15
|
-
email: "
|
|
16
|
-
position: "",
|
|
17
|
-
telephone: "",
|
|
18
|
-
country: "",
|
|
19
|
-
id_company:
|
|
20
|
-
id_cognito: "
|
|
12
|
+
id_user: 59,
|
|
13
|
+
name: "Cadena",
|
|
14
|
+
last_name: "Comercial",
|
|
15
|
+
email: "cadena.ismael@allfreemail.net",
|
|
16
|
+
position: "Admin",
|
|
17
|
+
telephone: "+523111366336",
|
|
18
|
+
country: "México",
|
|
19
|
+
id_company: 817,
|
|
20
|
+
id_cognito: "5884ae34-59d6-4454-b98e-821518bcc3a7",
|
|
21
21
|
birth_Date: null,
|
|
22
22
|
about_me: "",
|
|
23
23
|
zip_code: "",
|
|
24
24
|
address: "",
|
|
25
25
|
job: "",
|
|
26
26
|
id_stripe: "",
|
|
27
|
-
id_role:
|
|
27
|
+
id_role: 0,
|
|
28
28
|
active: 1,
|
|
29
|
-
is_retailer:
|
|
30
|
-
email_notify:
|
|
29
|
+
is_retailer: 1,
|
|
30
|
+
email_notify: 0,
|
|
31
31
|
is_user_tech: null,
|
|
32
32
|
membership: {
|
|
33
|
-
id:
|
|
34
|
-
start_date: "
|
|
35
|
-
end_date: "
|
|
36
|
-
planID:
|
|
37
|
-
plan: "
|
|
38
|
-
name: "Plan
|
|
39
|
-
user_limit: "
|
|
40
|
-
products_limit: "
|
|
33
|
+
id: 47,
|
|
34
|
+
start_date: "2022-05-25T14:31:12.000Z",
|
|
35
|
+
end_date: "2023-05-25T14:31:12.000Z",
|
|
36
|
+
planID: 5,
|
|
37
|
+
plan: "prod_Ktl6B5Ou2gqTB2",
|
|
38
|
+
name: "Plan Pro",
|
|
39
|
+
user_limit: "5",
|
|
40
|
+
products_limit: "500",
|
|
41
41
|
type: "PyMES",
|
|
42
42
|
},
|
|
43
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
43
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-59/59.png?1681406304781",
|
|
44
44
|
},
|
|
45
45
|
company: {
|
|
46
|
-
id_company:
|
|
47
|
-
trade_name: "
|
|
48
|
-
company_name: "
|
|
49
|
-
rfc:
|
|
50
|
-
adress:
|
|
46
|
+
id_company: 817,
|
|
47
|
+
trade_name: "Retailer acc",
|
|
48
|
+
company_name: "Retailer acc",
|
|
49
|
+
rfc: "ASER12345",
|
|
50
|
+
adress: "Av. Insurgentes",
|
|
51
51
|
about_company: null,
|
|
52
52
|
telephone: null,
|
|
53
53
|
web_site: null,
|
|
54
54
|
zip_code: null,
|
|
55
55
|
email: null,
|
|
56
56
|
social_link: null,
|
|
57
|
-
is_retailer:
|
|
57
|
+
is_retailer: 1,
|
|
58
|
+
financedRetailers: [
|
|
59
|
+
{
|
|
60
|
+
id: 68,
|
|
61
|
+
name: "The Home Depot Merchants",
|
|
62
|
+
country: "México",
|
|
63
|
+
id_region: 1,
|
|
64
|
+
active: 1,
|
|
65
|
+
},
|
|
66
|
+
],
|
|
58
67
|
retailers: [
|
|
59
68
|
{
|
|
60
|
-
id:
|
|
61
|
-
name:
|
|
62
|
-
country:
|
|
69
|
+
id: 59,
|
|
70
|
+
name: "The Home Depot Platinum",
|
|
71
|
+
country: "México",
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
id: 60,
|
|
75
|
+
name: "The Home Depot Resizing",
|
|
76
|
+
country: "México",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
id: 61,
|
|
80
|
+
name: "Home Depot TAB",
|
|
81
|
+
country: "México",
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
id: 68,
|
|
85
|
+
name: "The Home Depot Merchants",
|
|
86
|
+
country: "México",
|
|
63
87
|
},
|
|
64
88
|
],
|
|
65
89
|
},
|
|
66
|
-
jwt: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.
|
|
90
|
+
jwt: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiIyNDlhMjJkMC00Y2VhLTRjNGEtYTNjYS0zM2ZjN2VmNjAwOTEiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwiY29nbml0bzp1c2VybmFtZSI6IjI0OWEyMmQwLTRjZWEtNGM0YS1hM2NhLTMzZmM3ZWY2MDA5MSIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiI0MzRhODBmZi0yZmNiLTQyMmItOGI5ZC0wNzU4OGQ3NGQyNmIiLCJ0b2tlbl91c2UiOiJp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27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
retailerOrder: 0,
|
|
33
|
-
missing: {
|
|
34
|
-
datasheet: null,
|
|
35
|
-
descriptions: null,
|
|
36
|
-
images: null,
|
|
37
|
-
},
|
|
38
|
-
services: {
|
|
39
|
-
datasheets: 1,
|
|
40
|
-
descriptions: 1,
|
|
41
|
-
images: 1,
|
|
42
|
-
},
|
|
43
|
-
article: {
|
|
44
|
-
category:
|
|
45
|
-
"Salud y Belleza|Cuidado del Cabello|Shampoos y Acondicionadores",
|
|
46
|
-
company_name: "GRUPO BRAHMA",
|
|
47
|
-
country: "México",
|
|
48
|
-
id_category: "697",
|
|
49
|
-
id_datasheet_especialist: 54,
|
|
50
|
-
id_datasheet_facilitator: 52,
|
|
51
|
-
id_description_especialist: 54,
|
|
52
|
-
id_description_facilitator: 52,
|
|
53
|
-
id_images_especialist: 55,
|
|
54
|
-
id_images_facilitator: 53,
|
|
55
|
-
id_order: 15142,
|
|
56
|
-
id_article: 39270,
|
|
57
|
-
id_auditor: 37,
|
|
58
|
-
name: "Acondicionador Garnier Fructis 650 ml",
|
|
59
|
-
timestamp: "2023-03-27T18:37:48.000Z",
|
|
60
|
-
upc: "750955287656712",
|
|
61
|
-
},
|
|
62
|
-
retailers: [
|
|
63
|
-
{
|
|
64
|
-
id: 12,
|
|
65
|
-
name: "La Comer",
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
id: 29,
|
|
69
|
-
name: "Farmacias del Ahorro",
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
id: 63,
|
|
73
|
-
name: "DAX",
|
|
74
|
-
},
|
|
75
|
-
],
|
|
76
|
-
statusByRetailer: {
|
|
77
|
-
12: {
|
|
78
|
-
datasheet: "AA",
|
|
79
|
-
description: "AA",
|
|
80
|
-
images: "AA",
|
|
81
|
-
},
|
|
82
|
-
29: {
|
|
83
|
-
datasheet: "AA",
|
|
84
|
-
description: "AA",
|
|
85
|
-
images: "AA",
|
|
86
|
-
},
|
|
87
|
-
63: {
|
|
88
|
-
datasheet: "AA",
|
|
89
|
-
description: "AA",
|
|
90
|
-
images: "AA",
|
|
91
|
-
},
|
|
92
|
-
},
|
|
93
|
-
checked: false,
|
|
24
|
+
category: "Iluminación|Lámparas de Interior|Pie y Pedestal",
|
|
25
|
+
company_name: "Demo",
|
|
26
|
+
company_id: 923,
|
|
27
|
+
id_category: "2676",
|
|
28
|
+
id_article: 17163,
|
|
29
|
+
name: "Eglo 95055",
|
|
30
|
+
upc: "165033",
|
|
31
|
+
version: 1,
|
|
94
32
|
retailersAvailable: [
|
|
95
33
|
{
|
|
96
|
-
id:
|
|
97
|
-
name: "
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
id: 29,
|
|
101
|
-
name: "Farmacias del Ahorro",
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
id: 63,
|
|
105
|
-
name: "DAX",
|
|
34
|
+
id: 68,
|
|
35
|
+
name: "The Home Depot Merchants",
|
|
106
36
|
},
|
|
107
37
|
],
|
|
108
|
-
categoryName:
|
|
109
|
-
"Salud y Belleza|Cuidado del Cabello|Shampoos y Acondicionadores",
|
|
110
|
-
upc: "750955287656712",
|
|
111
|
-
id_article: 39270,
|
|
112
|
-
id_order: 15142,
|
|
113
38
|
},
|
|
114
39
|
productToEdit: {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
product:
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
datasheets: 1,
|
|
134
|
-
descriptions: 1,
|
|
135
|
-
images: 1,
|
|
136
|
-
},
|
|
137
|
-
article: {
|
|
138
|
-
category:
|
|
139
|
-
"Salud y Belleza|Cuidado del Cabello|Shampoos y Acondicionadores",
|
|
140
|
-
company_name: "GRUPO BRAHMA",
|
|
141
|
-
country: "México",
|
|
142
|
-
id_category: "697",
|
|
143
|
-
id_datasheet_especialist: 54,
|
|
144
|
-
id_datasheet_facilitator: 52,
|
|
145
|
-
id_description_especialist: 54,
|
|
146
|
-
id_description_facilitator: 52,
|
|
147
|
-
id_images_especialist: 55,
|
|
148
|
-
id_images_facilitator: 53,
|
|
149
|
-
id_order: 15142,
|
|
150
|
-
id_article: 39270,
|
|
151
|
-
id_auditor: 37,
|
|
152
|
-
name: "Acondicionador Garnier Fructis 650 ml",
|
|
153
|
-
timestamp: "2023-03-27T18:37:48.000Z",
|
|
154
|
-
upc: "750955287656712",
|
|
155
|
-
},
|
|
156
|
-
retailers: [
|
|
157
|
-
{
|
|
158
|
-
id: 12,
|
|
159
|
-
name: "La Comer",
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
id: 29,
|
|
163
|
-
name: "Farmacias del Ahorro",
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
id: 63,
|
|
167
|
-
name: "DAX",
|
|
168
|
-
},
|
|
169
|
-
],
|
|
170
|
-
statusByRetailer: {
|
|
171
|
-
12: {
|
|
172
|
-
datasheet: "AA",
|
|
173
|
-
description: "AA",
|
|
174
|
-
images: "AA",
|
|
175
|
-
},
|
|
176
|
-
29: {
|
|
177
|
-
datasheet: "AA",
|
|
178
|
-
description: "AA",
|
|
179
|
-
images: "AA",
|
|
180
|
-
},
|
|
181
|
-
63: {
|
|
182
|
-
datasheet: "AA",
|
|
183
|
-
description: "AA",
|
|
184
|
-
images: "AA",
|
|
185
|
-
},
|
|
40
|
+
idCategory: "2676",
|
|
41
|
+
ArticleId: 17163,
|
|
42
|
+
product: [
|
|
43
|
+
{
|
|
44
|
+
category: "Iluminación|Lámparas de Interior|Pie y Pedestal",
|
|
45
|
+
company_name: "Demo",
|
|
46
|
+
company_id: 923,
|
|
47
|
+
id_category: "2676",
|
|
48
|
+
id_article: 17163,
|
|
49
|
+
name: "Eglo 95055",
|
|
50
|
+
upc: "165033",
|
|
51
|
+
version: 1,
|
|
52
|
+
retailersAvailable: [
|
|
53
|
+
{
|
|
54
|
+
id: 68,
|
|
55
|
+
name: "The Home Depot Merchants",
|
|
56
|
+
},
|
|
57
|
+
],
|
|
186
58
|
},
|
|
187
|
-
|
|
188
|
-
retailersAvailable: [
|
|
189
|
-
{
|
|
190
|
-
id: 12,
|
|
191
|
-
name: "La Comer",
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
id: 29,
|
|
195
|
-
name: "Farmacias del Ahorro",
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
id: 63,
|
|
199
|
-
name: "DAX",
|
|
200
|
-
},
|
|
201
|
-
],
|
|
202
|
-
categoryName:
|
|
203
|
-
"Salud y Belleza|Cuidado del Cabello|Shampoos y Acondicionadores",
|
|
204
|
-
upc: "750955287656712",
|
|
205
|
-
id_article: 39270,
|
|
206
|
-
id_order: 15142,
|
|
207
|
-
},
|
|
59
|
+
],
|
|
208
60
|
},
|
|
209
61
|
location: {
|
|
210
62
|
pathname: "/EditProducts",
|
|
@@ -212,63 +64,85 @@ ProviderProductEditionDefault.args = {
|
|
|
212
64
|
hash: "",
|
|
213
65
|
state: {
|
|
214
66
|
withChat: true,
|
|
215
|
-
chatType: "product_status",
|
|
216
|
-
origin: "RequestWithContentoh",
|
|
217
67
|
},
|
|
218
68
|
key: "24vwut",
|
|
219
69
|
},
|
|
220
70
|
user: {
|
|
221
|
-
id_user:
|
|
222
|
-
name: "
|
|
223
|
-
last_name: "
|
|
224
|
-
email: "
|
|
225
|
-
position: "
|
|
71
|
+
id_user: 59,
|
|
72
|
+
name: "Cadena",
|
|
73
|
+
last_name: "Comercial",
|
|
74
|
+
email: "cadena.ismael@allfreemail.net",
|
|
75
|
+
position: "Admin",
|
|
226
76
|
telephone: "+523111366336",
|
|
227
77
|
country: "México",
|
|
228
|
-
id_company:
|
|
229
|
-
id_cognito: "
|
|
78
|
+
id_company: 817,
|
|
79
|
+
id_cognito: "5884ae34-59d6-4454-b98e-821518bcc3a7",
|
|
230
80
|
birth_Date: null,
|
|
231
81
|
about_me: "",
|
|
232
82
|
zip_code: "",
|
|
233
83
|
address: "",
|
|
234
84
|
job: "",
|
|
235
|
-
id_stripe: "
|
|
85
|
+
id_stripe: "",
|
|
236
86
|
id_role: 0,
|
|
237
87
|
active: 1,
|
|
238
|
-
is_retailer:
|
|
239
|
-
email_notify:
|
|
240
|
-
is_user_tech:
|
|
88
|
+
is_retailer: 1,
|
|
89
|
+
email_notify: 0,
|
|
90
|
+
is_user_tech: null,
|
|
241
91
|
membership: {
|
|
242
|
-
id:
|
|
243
|
-
start_date: "2022-
|
|
244
|
-
end_date: "2023-
|
|
245
|
-
planID:
|
|
246
|
-
plan: "
|
|
92
|
+
id: 47,
|
|
93
|
+
start_date: "2022-05-25T14:31:12.000Z",
|
|
94
|
+
end_date: "2023-05-25T14:31:12.000Z",
|
|
95
|
+
planID: 5,
|
|
96
|
+
plan: "prod_Ktl6B5Ou2gqTB2",
|
|
247
97
|
name: "Plan Pro",
|
|
248
|
-
user_limit: "
|
|
249
|
-
products_limit: "
|
|
250
|
-
type: "
|
|
98
|
+
user_limit: "5",
|
|
99
|
+
products_limit: "500",
|
|
100
|
+
type: "PyMES",
|
|
251
101
|
},
|
|
252
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
102
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-59/59.png?1680038627077",
|
|
253
103
|
},
|
|
254
104
|
company: {
|
|
255
|
-
id_company:
|
|
256
|
-
trade_name: "
|
|
257
|
-
company_name: "
|
|
258
|
-
rfc: "
|
|
259
|
-
adress: "
|
|
260
|
-
about_company:
|
|
261
|
-
telephone:
|
|
262
|
-
web_site:
|
|
263
|
-
zip_code:
|
|
105
|
+
id_company: 817,
|
|
106
|
+
trade_name: "Retailer acc",
|
|
107
|
+
company_name: "Retailer acc",
|
|
108
|
+
rfc: "ASER12345",
|
|
109
|
+
adress: "Av. Insurgentes",
|
|
110
|
+
about_company: null,
|
|
111
|
+
telephone: null,
|
|
112
|
+
web_site: null,
|
|
113
|
+
zip_code: null,
|
|
264
114
|
email: null,
|
|
265
|
-
social_link:
|
|
266
|
-
is_retailer:
|
|
115
|
+
social_link: null,
|
|
116
|
+
is_retailer: 1,
|
|
117
|
+
financedRetailers: [
|
|
118
|
+
{
|
|
119
|
+
id: 68,
|
|
120
|
+
name: "The Home Depot Merchants",
|
|
121
|
+
country: "México",
|
|
122
|
+
id_region: 1,
|
|
123
|
+
active: 1,
|
|
124
|
+
},
|
|
125
|
+
],
|
|
267
126
|
retailers: [
|
|
268
127
|
{
|
|
269
|
-
id:
|
|
270
|
-
name:
|
|
271
|
-
country:
|
|
128
|
+
id: 59,
|
|
129
|
+
name: "The Home Depot Platinum",
|
|
130
|
+
country: "México",
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
id: 60,
|
|
134
|
+
name: "The Home Depot Resizing",
|
|
135
|
+
country: "México",
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
id: 61,
|
|
139
|
+
name: "Home Depot TAB",
|
|
140
|
+
country: "México",
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
id: 68,
|
|
144
|
+
name: "The Home Depot Merchants",
|
|
145
|
+
country: "México",
|
|
272
146
|
},
|
|
273
147
|
],
|
|
274
148
|
},
|