contentoh-components-library 21.4.7 → 21.4.9
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 +1 -5
- package/.env.production +1 -3
- package/dist/assets/fonts/roboto/LICENSE.txt +202 -0
- package/dist/components/atoms/Avatar/index.js +2 -3
- package/dist/components/atoms/Card/index.js +5 -46
- package/dist/components/atoms/Card/styles.js +1 -3
- package/dist/components/atoms/CheckBox/index.js +2 -7
- package/dist/components/atoms/CheckBox/styles.js +1 -1
- package/dist/components/atoms/InputFormatter/styles.js +1 -1
- package/dist/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/dist/components/molecules/HeaderTop/index.js +11 -68
- package/dist/components/molecules/TagAndInput/index.js +1 -1
- package/dist/components/organisms/Chat/Chat.stories.js +8 -27
- 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 +197 -350
- package/dist/components/organisms/Chat/Footer/index.js +39 -48
- package/dist/components/organisms/Chat/index.js +4 -49
- package/dist/components/organisms/FullProductNameHeader/index.js +2 -2
- package/dist/components/organisms/Modal/styles.js +1 -1
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +29 -169
- package/dist/components/pages/ProviderProductEdition/index.js +203 -213
- package/dist/components/pages/ProviderProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +60 -85
- package/dist/components/pages/RetailerProductEdition/index.js +303 -315
- package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/utils.js +2 -61
- package/dist/index.js +52 -234
- package/package.json +1 -4
- package/src/components/atoms/Avatar/index.js +2 -8
- package/src/components/atoms/Card/index.js +2 -35
- package/src/components/atoms/Card/styles.js +5 -41
- package/src/components/atoms/CheckBox/index.js +1 -4
- package/src/components/atoms/CheckBox/styles.js +0 -2
- package/src/components/atoms/InputFormatter/styles.js +1 -2
- package/src/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/src/components/molecules/HeaderTop/index.js +6 -52
- package/src/components/molecules/TagAndInput/index.js +8 -10
- package/src/components/organisms/Chat/Chat.stories.js +7 -27
- 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 +12 -88
- package/src/components/organisms/Chat/Footer/index.js +0 -11
- package/src/components/organisms/Chat/index.js +4 -46
- package/src/components/organisms/FullProductNameHeader/index.js +1 -1
- package/src/components/organisms/Modal/styles.js +1 -4
- package/src/components/organisms/OrderDetail/utils/Table/utils.js +16 -6
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +34 -188
- package/src/components/pages/ProviderProductEdition/index.js +132 -132
- package/src/components/pages/ProviderProductEdition/styles.js +1 -5
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +41 -72
- package/src/components/pages/RetailerProductEdition/index.js +138 -122
- package/src/components/pages/RetailerProductEdition/styles.js +0 -4
- package/src/components/pages/RetailerProductEdition/utils.js +0 -37
- package/src/index.js +0 -15
- package/src/components/atoms/ImageCarousel/ImgeSlider.stories.js +0 -76
- package/src/components/atoms/ImageCarousel/index.js +0 -103
- package/src/components/atoms/ImageCarousel/styles.js +0 -79
- package/src/components/atoms/PercentTag/PercentTag.stories.js +0 -7
- package/src/components/atoms/PercentTag/index.js +0 -9
- package/src/components/atoms/PercentTag/styles.js +0 -69
- package/src/components/atoms/RatingStars/RatingStars.stories.js +0 -10
- package/src/components/atoms/RatingStars/index.js +0 -31
- package/src/components/atoms/RatingStars/styles.js +0 -28
- package/src/components/atoms/RetailerCatalog/RetailerCatalog.stories.js +0 -36
- package/src/components/atoms/RetailerCatalog/index.js +0 -49
- package/src/components/atoms/RetailerCatalog/styles.js +0 -30
- package/src/components/atoms/RetailerOption/RetailerOption.stories.js +0 -15
- package/src/components/atoms/RetailerOption/index.js +0 -53
- package/src/components/atoms/RetailerOption/styles.js +0 -41
- package/src/components/atoms/RetailersList/RetailersList.stories.js +0 -33
- package/src/components/atoms/RetailersList/index.js +0 -20
- package/src/components/atoms/RetailersList/styles.js +0 -19
- package/src/components/atoms/UserCatalog/UserCatalog.stories.js +0 -67
- package/src/components/atoms/UserCatalog/index.js +0 -96
- package/src/components/atoms/UserCatalog/styles.js +0 -24
- package/src/components/atoms/UserOption/UserOption.stories.js +0 -25
- package/src/components/atoms/UserOption/index.js +0 -95
- package/src/components/atoms/UserOption/styles.js +0 -61
- package/src/components/atoms/UserSelector/UserSelector.stories.js +0 -25
- package/src/components/atoms/UserSelector/index.js +0 -86
- package/src/components/atoms/UserSelector/styles.js +0 -55
- package/src/components/molecules/GridItem/GridItem.stories.js +0 -126
- package/src/components/molecules/GridItem/index.js +0 -97
- package/src/components/molecules/GridItem/styles.js +0 -104
- package/src/components/molecules/HeaderItem/ColumnItem.js +0 -9
- package/src/components/molecules/HeaderItem/HeaderItem.stories.js +0 -24
- package/src/components/molecules/HeaderItem/index.js +0 -26
- package/src/components/molecules/HeaderItem/styles.js +0 -27
- package/src/components/molecules/RowItem/ColumnItem.js +0 -9
- package/src/components/molecules/RowItem/RowItem.stories.js +0 -5660
- package/src/components/molecules/RowItem/index.js +0 -45
- package/src/components/molecules/RowItem/styles.js +0 -40
- package/src/components/molecules/StripeCardForm/StripeCardForm.stories.js +0 -13
- package/src/components/molecules/StripeCardForm/index.js +0 -42
- package/src/components/molecules/StripeCardForm/paymentForm.js +0 -124
- package/src/components/molecules/StripeCardForm/styles.js +0 -73
- package/src/components/molecules/StripeCardSelector/CardSelector.stories.js +0 -12
- package/src/components/molecules/StripeCardSelector/index.js +0 -44
- package/src/components/molecules/StripeCardSelector/styles.js +0 -4
- package/src/components/molecules/StripeCardSelector/utils.js +0 -17
- package/src/components/organisms/GridProducts/GridProducts.stories.js +0 -5485
- package/src/components/organisms/GridProducts/index.js +0 -50
- package/src/components/organisms/GridProducts/styles.js +0 -14
- package/src/components/organisms/GridProducts/utils.js +0 -111
- package/src/components/organisms/SideModal/SideModal.stories.js +0 -23
- package/src/components/organisms/SideModal/index.js +0 -50
- package/src/components/organisms/SideModal/styles.js +0 -30
|
@@ -17,14 +17,14 @@ export const Chat = (props) => {
|
|
|
17
17
|
const {
|
|
18
18
|
chatType, // "merchant_product" | "order_product" | "ticket"
|
|
19
19
|
chatContainerType, // ("fixed") | ("popUp")
|
|
20
|
-
chatData
|
|
20
|
+
chatData, // {} => aqui poner los datos requeridos segun el tipo de chat
|
|
21
21
|
classNameContainerFixed, // clases CSS del envoltoria chat fixed
|
|
22
22
|
size = 14, // tamaño del icono
|
|
23
23
|
} = 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)) {
|
|
@@ -239,7 +197,7 @@ export const Chat = (props) => {
|
|
|
239
197
|
dataChat={data}
|
|
240
198
|
showBtnClose={false}
|
|
241
199
|
ticketCompany={ticketCompany}
|
|
242
|
-
activeRetailer={props.activeRetailer
|
|
200
|
+
activeRetailer={props.activeRetailer}
|
|
243
201
|
/>
|
|
244
202
|
</ContainerFixed>
|
|
245
203
|
);
|
|
@@ -272,7 +230,7 @@ export const Chat = (props) => {
|
|
|
272
230
|
onClickBtnClose={() => {
|
|
273
231
|
setShowPopUpChat(false);
|
|
274
232
|
}}
|
|
275
|
-
activeRetailer={props.activeRetailer
|
|
233
|
+
activeRetailer={props.activeRetailer}
|
|
276
234
|
/>
|
|
277
235
|
</ContainerPopUp>
|
|
278
236
|
</Slide>
|
|
@@ -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) {
|
|
@@ -31,6 +31,7 @@ export const ContainerModal = styled.div`
|
|
|
31
31
|
align-items: center;
|
|
32
32
|
justify-content: flex-start;
|
|
33
33
|
gap: 6px;
|
|
34
|
+
margin-bottom: 20px;
|
|
34
35
|
|
|
35
36
|
.label-title {
|
|
36
37
|
width: 100%;
|
|
@@ -41,10 +42,6 @@ export const ContainerModal = styled.div`
|
|
|
41
42
|
color: #262626;
|
|
42
43
|
white-space: pre-wrap;
|
|
43
44
|
}
|
|
44
|
-
|
|
45
|
-
& + * {
|
|
46
|
-
margin-top: 20px;
|
|
47
|
-
}
|
|
48
45
|
}
|
|
49
46
|
|
|
50
47
|
.iconModal {
|
|
@@ -1,31 +1,41 @@
|
|
|
1
1
|
export const servicesCodeIcon = {
|
|
2
2
|
datasheet: (
|
|
3
3
|
<div key="datasheet" className="tooltip">
|
|
4
|
-
<span className="material-icons small"
|
|
4
|
+
<span className="material-icons small">
|
|
5
|
+

|
|
6
|
+
</span>
|
|
5
7
|
<span className="tooltiptext">Ficha Técnica</span>
|
|
6
8
|
</div>
|
|
7
9
|
),
|
|
8
10
|
description: (
|
|
9
11
|
<div key="description" className="tooltip">
|
|
10
|
-
<span className="material-icons small"
|
|
12
|
+
<span className="material-icons small">
|
|
13
|
+

|
|
14
|
+
</span>
|
|
11
15
|
<span className="tooltiptext">Descripción</span>
|
|
12
16
|
</div>
|
|
13
17
|
),
|
|
14
18
|
image: (
|
|
15
19
|
<div key="image" className="tooltip">
|
|
16
|
-
<span className="material-icons small"
|
|
20
|
+
<span className="material-icons small">
|
|
21
|
+

|
|
22
|
+
</span>
|
|
17
23
|
<span className="tooltiptext">Imagen</span>
|
|
18
24
|
</div>
|
|
19
25
|
),
|
|
20
26
|
translate: (
|
|
21
27
|
<div key="translate" className="tooltip">
|
|
22
|
-
<span className="material-icons small"
|
|
28
|
+
<span className="material-icons small">
|
|
29
|
+

|
|
30
|
+
</span>
|
|
23
31
|
<span className="tooltiptext">Traducción</span>
|
|
24
32
|
</div>
|
|
25
33
|
),
|
|
26
34
|
build: (
|
|
27
|
-
<div key="build"
|
|
28
|
-
<span className="material-icons small"
|
|
35
|
+
<div key="build" className="tooltip">
|
|
36
|
+
<span className="material-icons small">
|
|
37
|
+

|
|
38
|
+
</span>
|
|
29
39
|
<span className="tooltiptext">Construcción</span>
|
|
30
40
|
</div>
|
|
31
41
|
),
|
|
@@ -16,203 +16,54 @@ ProviderProductEditionDefault.args = {
|
|
|
16
16
|
Imágenes: false,
|
|
17
17
|
},
|
|
18
18
|
token:
|
|
19
|
-
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.
|
|
19
|
+
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI1ODg0YWUzNC01OWQ2LTQ0NTQtYjk4ZS04MjE1MThiY2MzYTciLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6IjU4ODRhZTM0LTU5ZDYtNDQ1NC1iOThlLTgyMTUxOGJjYzNhNyIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiJjOWRjOWE1OS0xNTAxLTQyOTgtODRjMi03MDM4NzRhNzIxMTEiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY4MjQ2Mjc4NCwibmFtZSI6IkNhZGVuYSBJc21hZWwiLCJwaG9uZV9udW1iZXIiOiIrNTIzMTExMzY2MzM2IiwiZXhwIjoxNjgyNDY2Mzg0LCJpYXQiOjE2ODI0NjI3ODQsImVtYWlsIjoiY2FkZW5hLmlzbWFlbEBhbGxmcmVlbWFpbC5uZXQifQ.ebKSsnTxKoNfWDoKGFJRlLWgNulGj4KrDe0EgsqLEIVx3Qu0lgmg43UY5tZ3FUlRE8XO2UGq0XxEgdbGOe_4nbTRYigdvxP3bh3cPQ0s68hlTDfhPRvxVJYlaO4s0rhk9rt_VVteTyLfhPHFCymrkFYYDB8bVvKnxUUCX_nJvqGQkl48JiYgvYVLpuus5FvRkGwi1u-jTtMoKiUK-jw9MxI18hD0FWXVnJr-q9ftf2d0bv4JRv4XJ_tRh1N6jps5n3c_KKZswqRfGLU-8MS2X3DU6pDqEP2BZAGXksiFYXYH_uHE6BKJAl7EEhkDTqZsx_jWtVSXTdDg_QDKrOw0Kg",
|
|
20
20
|
articleId: 238,
|
|
21
21
|
category: 846,
|
|
22
22
|
version: 2,
|
|
23
23
|
productSelected: {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
+
id_article: 43,
|
|
25
|
+
id_category: 2126,
|
|
26
|
+
name: "LIMA CERRAJERO 6 PULGADAS ACERO BELLOTA",
|
|
27
|
+
upc: "137915",
|
|
28
|
+
timestamp: "2022-11-14T16:03:56.000Z",
|
|
29
|
+
categoryName:
|
|
30
|
+
"Herramientas|Herramientas Manuales|Herramientas de Corte y Desbaste",
|
|
31
|
+
version: 1,
|
|
94
32
|
retailersAvailable: [
|
|
95
33
|
{
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
id: 29,
|
|
101
|
-
name: "Farmacias del Ahorro",
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
id: 63,
|
|
105
|
-
name: "DAX",
|
|
34
|
+
name: "The Home Depot Golden",
|
|
35
|
+
id: 58,
|
|
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
|
-
|
|
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: 2126,
|
|
41
|
+
ArticleId: 43,
|
|
42
|
+
product: [
|
|
43
|
+
{
|
|
44
|
+
id_article: 43,
|
|
45
|
+
id_category: 2126,
|
|
46
|
+
name: "LIMA CERRAJERO 6 PULGADAS ACERO BELLOTA",
|
|
47
|
+
upc: "137915",
|
|
48
|
+
timestamp: "2022-11-14T16:03:56.000Z",
|
|
49
|
+
categoryName:
|
|
50
|
+
"Herramientas|Herramientas Manuales|Herramientas de Corte y Desbaste",
|
|
51
|
+
version: 1,
|
|
52
|
+
retailersAvailable: [
|
|
53
|
+
{
|
|
54
|
+
name: "The Home Depot Golden",
|
|
55
|
+
id: 58,
|
|
56
|
+
percentage: 2,
|
|
57
|
+
},
|
|
58
|
+
],
|
|
186
59
|
},
|
|
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
|
-
},
|
|
60
|
+
],
|
|
208
61
|
},
|
|
209
62
|
location: {
|
|
210
63
|
pathname: "/EditProducts",
|
|
211
64
|
search: "",
|
|
212
65
|
hash: "",
|
|
213
66
|
state: {
|
|
214
|
-
withChat: true,
|
|
215
|
-
chatType: "product_status",
|
|
216
67
|
origin: "RequestWithContentoh",
|
|
217
68
|
},
|
|
218
69
|
key: "24vwut",
|
|
@@ -249,7 +100,7 @@ ProviderProductEditionDefault.args = {
|
|
|
249
100
|
products_limit: "5000",
|
|
250
101
|
type: "Enterprise",
|
|
251
102
|
},
|
|
252
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?
|
|
103
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1691179745418",
|
|
253
104
|
},
|
|
254
105
|
company: {
|
|
255
106
|
id_company: 1,
|
|
@@ -264,13 +115,8 @@ ProviderProductEditionDefault.args = {
|
|
|
264
115
|
email: null,
|
|
265
116
|
social_link: "",
|
|
266
117
|
is_retailer: 0,
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
id: null,
|
|
270
|
-
name: null,
|
|
271
|
-
country: null,
|
|
272
|
-
},
|
|
273
|
-
],
|
|
118
|
+
financedRetailers: [],
|
|
119
|
+
retailers: [],
|
|
274
120
|
},
|
|
275
121
|
showSurvey: (v) => v && alert("se muestra"),
|
|
276
122
|
};
|