contentoh-components-library 21.3.94 → 21.3.96
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 +5 -0
- package/.env.production +3 -0
- package/dist/components/atoms/Avatar/index.js +3 -2
- package/dist/components/atoms/Card/index.js +46 -5
- package/dist/components/atoms/Card/styles.js +3 -1
- package/dist/components/atoms/CheckBox/index.js +7 -2
- package/dist/components/atoms/CheckBox/styles.js +1 -1
- package/dist/components/atoms/ImageCarousel/ImgeSlider.stories.js +90 -0
- package/dist/components/atoms/ImageCarousel/index.js +120 -0
- package/dist/components/atoms/ImageCarousel/styles.js +18 -0
- package/dist/components/atoms/InputFormatter/styles.js +1 -1
- package/dist/components/atoms/PercentTag/PercentTag.stories.js +31 -0
- package/dist/components/atoms/PercentTag/index.js +23 -0
- package/dist/components/atoms/PercentTag/styles.js +22 -0
- package/dist/components/atoms/RatingStars/RatingStars.stories.js +30 -0
- package/dist/components/atoms/RatingStars/index.js +53 -0
- package/dist/components/atoms/RatingStars/styles.js +18 -0
- package/dist/components/atoms/RetailerCatalog/RetailerCatalog.stories.js +48 -0
- package/dist/components/atoms/RetailerCatalog/index.js +70 -0
- package/dist/components/atoms/RetailerCatalog/styles.js +20 -0
- package/dist/components/atoms/RetailerOption/RetailerOption.stories.js +33 -0
- package/dist/components/atoms/RetailerOption/index.js +62 -0
- package/dist/components/atoms/RetailerOption/styles.js +20 -0
- package/dist/components/atoms/RetailersList/RetailersList.stories.js +45 -0
- package/dist/components/atoms/RetailersList/index.js +44 -0
- package/dist/components/atoms/RetailersList/styles.js +18 -0
- package/dist/components/atoms/UserCatalog/UserCatalog.stories.js +72 -0
- package/dist/components/atoms/UserCatalog/index.js +89 -0
- package/dist/components/atoms/UserCatalog/styles.js +18 -0
- package/dist/components/atoms/UserOption/UserOption.stories.js +40 -0
- package/dist/components/atoms/UserOption/index.js +80 -0
- package/dist/components/atoms/UserOption/styles.js +20 -0
- package/dist/components/atoms/UserSelector/UserSelector.stories.js +40 -0
- package/dist/components/atoms/UserSelector/index.js +91 -0
- package/dist/components/atoms/UserSelector/styles.js +32 -0
- package/dist/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/dist/components/molecules/GridItem/GridItem.stories.js +123 -0
- package/dist/components/molecules/GridItem/index.js +122 -0
- package/dist/components/molecules/GridItem/styles.js +20 -0
- package/dist/components/molecules/HeaderItem/ColumnItem.js +23 -0
- package/dist/components/molecules/HeaderItem/HeaderItem.stories.js +70 -0
- package/dist/components/molecules/HeaderItem/index.js +42 -0
- package/dist/components/molecules/HeaderItem/styles.js +30 -0
- package/dist/components/molecules/HeaderTop/index.js +68 -11
- package/dist/components/molecules/RowItem/ColumnItem.js +23 -0
- package/dist/components/molecules/RowItem/RowItem.stories.js +5242 -0
- package/dist/components/molecules/RowItem/index.js +59 -0
- package/dist/components/molecules/RowItem/styles.js +30 -0
- package/dist/components/molecules/TabsMenu/index.js +7 -13
- package/dist/components/molecules/TagAndInput/index.js +1 -1
- package/dist/components/organisms/Chat/Chat.stories.js +27 -8
- package/dist/components/organisms/Chat/ContainerItems/index.js +19 -3
- package/dist/components/organisms/Chat/ContainerItems/styles.js +1 -1
- package/dist/components/organisms/Chat/ContentChat/index.js +350 -197
- package/dist/components/organisms/Chat/Footer/index.js +48 -39
- package/dist/components/organisms/Chat/index.js +49 -4
- package/dist/components/organisms/FullProductNameHeader/index.js +2 -2
- package/dist/components/organisms/FullTabsMenu/index.js +1 -3
- package/dist/components/organisms/GridProducts/GridProducts.stories.js +5093 -0
- package/dist/components/organisms/GridProducts/index.js +68 -0
- package/dist/components/organisms/GridProducts/styles.js +18 -0
- package/dist/components/organisms/GridProducts/utils.js +139 -0
- package/dist/components/organisms/Modal/styles.js +1 -1
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +171 -96
- package/dist/components/pages/ProviderProductEdition/index.js +190 -178
- package/dist/components/pages/ProviderProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +77 -52
- package/dist/components/pages/RetailerProductEdition/index.js +290 -276
- package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/utils.js +61 -2
- package/dist/index.js +182 -52
- package/package.json +4 -1
- package/src/components/atoms/Avatar/index.js +8 -2
- package/src/components/atoms/Card/index.js +35 -2
- package/src/components/atoms/Card/styles.js +41 -5
- package/src/components/atoms/CheckBox/index.js +4 -1
- package/src/components/atoms/CheckBox/styles.js +2 -0
- package/src/components/atoms/ImageCarousel/ImgeSlider.stories.js +76 -0
- package/src/components/atoms/ImageCarousel/index.js +103 -0
- package/src/components/atoms/ImageCarousel/styles.js +79 -0
- package/src/components/atoms/InputFormatter/styles.js +2 -1
- package/src/components/atoms/PercentTag/PercentTag.stories.js +7 -0
- package/src/components/atoms/PercentTag/index.js +9 -0
- package/src/components/atoms/PercentTag/styles.js +69 -0
- package/src/components/atoms/RatingStars/RatingStars.stories.js +10 -0
- package/src/components/atoms/RatingStars/index.js +31 -0
- package/src/components/atoms/RatingStars/styles.js +28 -0
- package/src/components/atoms/RetailerCatalog/RetailerCatalog.stories.js +36 -0
- package/src/components/atoms/RetailerCatalog/index.js +50 -0
- package/src/components/atoms/RetailerCatalog/styles.js +30 -0
- package/src/components/atoms/RetailerOption/RetailerOption.stories.js +15 -0
- package/src/components/atoms/RetailerOption/index.js +53 -0
- package/src/components/atoms/RetailerOption/styles.js +41 -0
- package/src/components/atoms/RetailersList/RetailersList.stories.js +33 -0
- package/src/components/atoms/RetailersList/index.js +20 -0
- package/src/components/atoms/RetailersList/styles.js +19 -0
- package/src/components/atoms/UserCatalog/UserCatalog.stories.js +66 -0
- package/src/components/atoms/UserCatalog/index.js +77 -0
- package/src/components/atoms/UserCatalog/styles.js +24 -0
- package/src/components/atoms/UserOption/UserOption.stories.js +25 -0
- package/src/components/atoms/UserOption/index.js +49 -0
- package/src/components/atoms/UserOption/styles.js +54 -0
- package/src/components/atoms/UserSelector/UserSelector.stories.js +25 -0
- package/src/components/atoms/UserSelector/index.js +70 -0
- package/src/components/atoms/UserSelector/styles.js +55 -0
- package/src/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/src/components/molecules/GridItem/GridItem.stories.js +126 -0
- package/src/components/molecules/GridItem/index.js +82 -0
- package/src/components/molecules/GridItem/styles.js +85 -0
- package/src/components/molecules/HeaderItem/ColumnItem.js +9 -0
- package/src/components/molecules/HeaderItem/HeaderItem.stories.js +24 -0
- package/src/components/molecules/HeaderItem/index.js +26 -0
- package/src/components/molecules/HeaderItem/styles.js +25 -0
- package/src/components/molecules/HeaderTop/index.js +52 -6
- package/src/components/molecules/RowItem/ColumnItem.js +9 -0
- package/src/components/molecules/RowItem/RowItem.stories.js +5660 -0
- package/src/components/molecules/RowItem/index.js +45 -0
- package/src/components/molecules/RowItem/styles.js +38 -0
- package/src/components/molecules/StripeCardForm/StripeCardForm.stories.js +13 -0
- package/src/components/molecules/StripeCardForm/index.js +42 -0
- package/src/components/molecules/StripeCardForm/paymentForm.js +124 -0
- package/src/components/molecules/StripeCardForm/styles.js +73 -0
- package/src/components/molecules/StripeCardSelector/CardSelector.stories.js +12 -0
- package/src/components/molecules/StripeCardSelector/index.js +44 -0
- package/src/components/molecules/StripeCardSelector/styles.js +4 -0
- package/src/components/molecules/StripeCardSelector/utils.js +17 -0
- package/src/components/molecules/TabsMenu/index.js +10 -16
- package/src/components/molecules/TagAndInput/index.js +10 -8
- package/src/components/organisms/Chat/Chat.stories.js +27 -7
- package/src/components/organisms/Chat/ContainerItems/index.js +18 -2
- package/src/components/organisms/Chat/ContainerItems/styles.js +10 -2
- package/src/components/organisms/Chat/ContentChat/index.js +88 -12
- package/src/components/organisms/Chat/Footer/index.js +11 -0
- package/src/components/organisms/Chat/index.js +46 -4
- package/src/components/organisms/FullProductNameHeader/index.js +1 -1
- package/src/components/organisms/FullTabsMenu/index.js +1 -3
- package/src/components/organisms/GridProducts/GridProducts.stories.js +5474 -0
- package/src/components/organisms/GridProducts/index.js +53 -0
- package/src/components/organisms/GridProducts/styles.js +15 -0
- package/src/components/organisms/GridProducts/utils.js +103 -0
- package/src/components/organisms/Modal/styles.js +4 -1
- package/src/components/organisms/SideModal/SideModal.stories.js +23 -0
- package/src/components/organisms/SideModal/index.js +50 -0
- package/src/components/organisms/SideModal/styles.js +30 -0
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +181 -98
- package/src/components/pages/ProviderProductEdition/index.js +134 -132
- package/src/components/pages/ProviderProductEdition/styles.js +5 -1
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +76 -46
- package/src/components/pages/RetailerProductEdition/index.js +123 -138
- package/src/components/pages/RetailerProductEdition/styles.js +4 -0
- package/src/components/pages/RetailerProductEdition/utils.js +37 -0
- package/src/index.js +11 -0
- package/dist/assets/fonts/roboto/LICENSE.txt +0 -202
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Container } from "./styles";
|
|
2
|
+
import { GridItem } from "../../molecules/GridItem";
|
|
3
|
+
import { HeaderItem } from "../../molecules/HeaderItem";
|
|
4
|
+
import { getProductsToTable } from "./utils";
|
|
5
|
+
import { useEffect } from "react";
|
|
6
|
+
import { useState } from "react";
|
|
7
|
+
import { RowItem } from "../../molecules/RowItem";
|
|
8
|
+
import { CheckBox } from "../../atoms/CheckBox";
|
|
9
|
+
|
|
10
|
+
export const GridProducts = ({
|
|
11
|
+
products = [],
|
|
12
|
+
columnsArray = [],
|
|
13
|
+
gridView = true,
|
|
14
|
+
chkOnChange,
|
|
15
|
+
selected = [],
|
|
16
|
+
chkChecked,
|
|
17
|
+
checkAll,
|
|
18
|
+
chkCheckedAll,
|
|
19
|
+
onGridClick,
|
|
20
|
+
}) => {
|
|
21
|
+
return (
|
|
22
|
+
<Container>
|
|
23
|
+
{!gridView ? (
|
|
24
|
+
products?.map(({ gridElement, product, id }, i) => (
|
|
25
|
+
<GridItem
|
|
26
|
+
key={i}
|
|
27
|
+
id={id}
|
|
28
|
+
product={product}
|
|
29
|
+
gridElement={gridElement}
|
|
30
|
+
chkOnChange={chkOnChange}
|
|
31
|
+
onGridClick={onGridClick}
|
|
32
|
+
selected={selected}
|
|
33
|
+
chkChecked={chkChecked}
|
|
34
|
+
/>
|
|
35
|
+
))
|
|
36
|
+
) : (
|
|
37
|
+
<div className="table-view">
|
|
38
|
+
<HeaderItem
|
|
39
|
+
columnsArray={columnsArray}
|
|
40
|
+
checkAll={checkAll}
|
|
41
|
+
chkCheckedAll={chkCheckedAll}
|
|
42
|
+
/>
|
|
43
|
+
<RowItem
|
|
44
|
+
productsArray={products}
|
|
45
|
+
chkOnChange={chkOnChange}
|
|
46
|
+
onGridClick={onGridClick}
|
|
47
|
+
chkChecked={chkChecked}
|
|
48
|
+
/>
|
|
49
|
+
</div>
|
|
50
|
+
)}
|
|
51
|
+
</Container>
|
|
52
|
+
);
|
|
53
|
+
};
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { RetailerCatalog } from "../../atoms/RetailerCatalog";
|
|
2
|
+
import { UserCatalog } from "../../atoms/UserCatalog";
|
|
3
|
+
|
|
4
|
+
export const getProductsToTable = (
|
|
5
|
+
products = [],
|
|
6
|
+
textSpecialists,
|
|
7
|
+
imagesSpecialists,
|
|
8
|
+
auditors,
|
|
9
|
+
images
|
|
10
|
+
) => {
|
|
11
|
+
const productsTableArray = [];
|
|
12
|
+
|
|
13
|
+
products.forEach((product) => {
|
|
14
|
+
const { article, orderId, upc, status, version } = product;
|
|
15
|
+
const id = article?.id_article + "-" + orderId;
|
|
16
|
+
const imgArray = images[article?.id_article + "-" + version];
|
|
17
|
+
const element = {
|
|
18
|
+
id,
|
|
19
|
+
cols: [
|
|
20
|
+
{ name: article?.country || "-", flex: 1, minWidth: 100 },
|
|
21
|
+
{ name: orderId || "-", flex: 1, minWidth: 100 },
|
|
22
|
+
{ name: upc || "-", flex: 1, minWidth: 100 },
|
|
23
|
+
{ name: article?.name || "-", flex: 1, minWidth: 200 },
|
|
24
|
+
{ name: "S/M" || "-", flex: 1, minWidth: 100 },
|
|
25
|
+
{ name: status || "-", flex: 1, minWidth: 100 },
|
|
26
|
+
{
|
|
27
|
+
name: (
|
|
28
|
+
<RetailerCatalog
|
|
29
|
+
id={"retailers-" + id}
|
|
30
|
+
article={product}
|
|
31
|
+
retailers={product.retailers}
|
|
32
|
+
/>
|
|
33
|
+
),
|
|
34
|
+
flex: 1,
|
|
35
|
+
minWidth: 100,
|
|
36
|
+
},
|
|
37
|
+
{ name: "none", flex: 1, minWidth: 100 },
|
|
38
|
+
{
|
|
39
|
+
name: (
|
|
40
|
+
<UserCatalog
|
|
41
|
+
datasheet={article.id_datasheet_especialist}
|
|
42
|
+
description={article.id_description_especialist}
|
|
43
|
+
images={article.id_images_especialist}
|
|
44
|
+
textSpecialists={textSpecialists}
|
|
45
|
+
imagesSpecialists={imagesSpecialists}
|
|
46
|
+
auditors={auditors}
|
|
47
|
+
id={"users-" + id}
|
|
48
|
+
/>
|
|
49
|
+
),
|
|
50
|
+
flex: 1,
|
|
51
|
+
minWidth: 100,
|
|
52
|
+
},
|
|
53
|
+
{ name: "Cont.", flex: 1, minWidth: 100 },
|
|
54
|
+
],
|
|
55
|
+
gridElement: {
|
|
56
|
+
images: imgArray,
|
|
57
|
+
info: [
|
|
58
|
+
{ title: "name", value: article?.name || "-" },
|
|
59
|
+
{ title: "category", value: article?.category || "-" },
|
|
60
|
+
{ title: "company", value: article?.company_name || "-" },
|
|
61
|
+
{ title: "price", value: article?.price || "-" },
|
|
62
|
+
],
|
|
63
|
+
status: [
|
|
64
|
+
{ title: "datasheet", value: product?.datasheet_status, percent: 80 },
|
|
65
|
+
{
|
|
66
|
+
title: "description",
|
|
67
|
+
value: product?.description_status,
|
|
68
|
+
percent: 80,
|
|
69
|
+
},
|
|
70
|
+
{ title: "images", value: product?.images_status, percent: 80 },
|
|
71
|
+
],
|
|
72
|
+
catalogs: {
|
|
73
|
+
leftSide: (
|
|
74
|
+
<RetailerCatalog
|
|
75
|
+
id={"retailers-" + id}
|
|
76
|
+
limit={2}
|
|
77
|
+
article={product}
|
|
78
|
+
retailers={product.retailers}
|
|
79
|
+
/>
|
|
80
|
+
),
|
|
81
|
+
rightSide: (
|
|
82
|
+
<UserCatalog
|
|
83
|
+
datasheet={article.id_datasheet_especialist}
|
|
84
|
+
description={article.id_description_especialist}
|
|
85
|
+
images={article.id_images_especialist}
|
|
86
|
+
textSpecialists={textSpecialists}
|
|
87
|
+
imagesSpecialists={imagesSpecialists}
|
|
88
|
+
auditors={auditors}
|
|
89
|
+
id={"users-" + id}
|
|
90
|
+
/>
|
|
91
|
+
),
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
showBottom: true,
|
|
95
|
+
product,
|
|
96
|
+
article,
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
productsTableArray.push(element);
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
return productsTableArray;
|
|
103
|
+
};
|
|
@@ -31,7 +31,6 @@ export const ContainerModal = styled.div`
|
|
|
31
31
|
align-items: center;
|
|
32
32
|
justify-content: flex-start;
|
|
33
33
|
gap: 6px;
|
|
34
|
-
margin-bottom: 20px;
|
|
35
34
|
|
|
36
35
|
.label-title {
|
|
37
36
|
width: 100%;
|
|
@@ -42,6 +41,10 @@ export const ContainerModal = styled.div`
|
|
|
42
41
|
color: #262626;
|
|
43
42
|
white-space: pre-wrap;
|
|
44
43
|
}
|
|
44
|
+
|
|
45
|
+
& + * {
|
|
46
|
+
margin-top: 20px;
|
|
47
|
+
}
|
|
45
48
|
}
|
|
46
49
|
|
|
47
50
|
.iconModal {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { SideModal } from ".";
|
|
2
|
+
import { ButtonV2 } from "../../atoms/ButtonV2";
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: "Components/organisms/SideModal",
|
|
6
|
+
component: SideModal,
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
const Template = (args) => <SideModal {...args} />;
|
|
10
|
+
|
|
11
|
+
export const DefaultSideModal = Template.bind({});
|
|
12
|
+
DefaultSideModal.args = {
|
|
13
|
+
show: false,
|
|
14
|
+
header: [
|
|
15
|
+
<div className="title-container">
|
|
16
|
+
<h2></h2>
|
|
17
|
+
</div>,
|
|
18
|
+
<ButtonV2 label="Ir al Checkout" />,
|
|
19
|
+
<ButtonV2 label="X" />,
|
|
20
|
+
],
|
|
21
|
+
body: <></>,
|
|
22
|
+
footer: <></>,
|
|
23
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { useRef } from "react";
|
|
2
|
+
import { Container } from "./styles";
|
|
3
|
+
import { useEffect } from "react";
|
|
4
|
+
import { PropaneSharp } from "@mui/icons-material";
|
|
5
|
+
|
|
6
|
+
export const SideModal = ({
|
|
7
|
+
header,
|
|
8
|
+
body,
|
|
9
|
+
footer,
|
|
10
|
+
show,
|
|
11
|
+
setShow,
|
|
12
|
+
id = "side-modal",
|
|
13
|
+
}) => {
|
|
14
|
+
const modal = useRef();
|
|
15
|
+
|
|
16
|
+
const closeModal = (e) => {
|
|
17
|
+
if (!e.target.closest(`#${id}`) && show) {
|
|
18
|
+
document.removeEventListener("click", closeModal, false);
|
|
19
|
+
modal?.current?.classList?.remove("shown");
|
|
20
|
+
setShow && setShow(false);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
useEffect(() => {
|
|
25
|
+
if (show && modal.current) {
|
|
26
|
+
document.addEventListener("click", closeModal, false);
|
|
27
|
+
modal?.current?.classList?.add("shown");
|
|
28
|
+
}
|
|
29
|
+
}, [show]);
|
|
30
|
+
|
|
31
|
+
useEffect(() => {
|
|
32
|
+
return () => {
|
|
33
|
+
document.removeEventListener("click", closeModal, false);
|
|
34
|
+
modal?.current?.classList?.remove("shown");
|
|
35
|
+
setShow && setShow(false);
|
|
36
|
+
};
|
|
37
|
+
}, []);
|
|
38
|
+
|
|
39
|
+
return (
|
|
40
|
+
show && (
|
|
41
|
+
<Container>
|
|
42
|
+
<div id={id} ref={modal} className="modal-container">
|
|
43
|
+
<div className="modal-header">{header}</div>
|
|
44
|
+
<div className="modal-body">{body}</div>
|
|
45
|
+
<div className="modal-footer">{footer}</div>
|
|
46
|
+
</div>
|
|
47
|
+
</Container>
|
|
48
|
+
)
|
|
49
|
+
);
|
|
50
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
|
|
3
|
+
export const Container = styled.div`
|
|
4
|
+
width: 100vw;
|
|
5
|
+
height: 100vh;
|
|
6
|
+
position: fixed;
|
|
7
|
+
z-index: 9999999;
|
|
8
|
+
background-color: transparent;
|
|
9
|
+
top: 0;
|
|
10
|
+
left: 0;
|
|
11
|
+
|
|
12
|
+
.modal-container {
|
|
13
|
+
width: 600px;
|
|
14
|
+
height: 100%;
|
|
15
|
+
position: absolute;
|
|
16
|
+
right: -600px;
|
|
17
|
+
background-color: #fff;
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
box-shadow: -0.5px 0px 5px #f0f0f0;
|
|
21
|
+
border: 1px solid #f0f0f0;
|
|
22
|
+
.modal-body {
|
|
23
|
+
flex: 1;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&.shown {
|
|
27
|
+
right: 0;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
`;
|
|
@@ -16,106 +16,194 @@ ProviderProductEditionDefault.args = {
|
|
|
16
16
|
Imágenes: false,
|
|
17
17
|
},
|
|
18
18
|
token:
|
|
19
|
-
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.
|
|
19
|
+
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmNTkyN2Y4ZS1jYmY3LTQ5MjItOWUwOS1lNjllYzBiMjczMWEiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImY1OTI3ZjhlLWNiZjctNDkyMi05ZTA5LWU2OWVjMGIyNzMxYSIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiIyM2Q1NTlmYi1jMzIwLTRhMjItYjJmNy1lOThhYTFhZGEyNmYiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY4MzkyNjgyMSwibmFtZSI6IklzbWFlbCBMb3BleiIsInBob25lX251bWJlciI6Iis1MjMxMTEzNjYzMzYiLCJleHAiOjE2ODM5MzA0MjEsImlhdCI6MTY4MzkyNjgyMSwiZW1haWwiOiJpbG9wZXpAY29udGVudG9oLmNvbSJ9.TvCoaKoctj5mypXWMz3NyV1Vm1ToBV0vJmpVyZSQw4-ikTChkxcZ5tFYvqhk1GdvNCFttfSQIqM-14dAYYBc28YwwKP86gqOuzB1fG41rN5x1Yx3tkJq6hiVRgiBbSHWtThA9c8VnxNQbrJiaRTvvkDiM5KNTEst1oxQHL5Ct9_iKQMJMRFie7Xv0xnyS0qZ6QHK4Q2A9OHsnDkAuumALZJcE19Zh6VgSitgWrZiz3x5Text4Q-U-R48NUAzUFirAzYZzJN_fCme5pGf1AnUaZjeUjPsmrV5TBVzPEYwXO0KG8lYjL8id80D7tbGs28ZIK6B4rf3-eqI_ngmBB4CjQ",
|
|
20
20
|
articleId: 238,
|
|
21
21
|
category: 846,
|
|
22
22
|
version: 2,
|
|
23
23
|
productSelected: {
|
|
24
|
-
orderId:
|
|
25
|
-
|
|
26
|
-
datasheet_status: "
|
|
27
|
-
description_status: "AP",
|
|
28
|
-
images_status: "AP",
|
|
24
|
+
orderId: 15142,
|
|
25
|
+
status: "AA",
|
|
26
|
+
datasheet_status: "AA",
|
|
29
27
|
prio: "none",
|
|
30
28
|
version: 3,
|
|
31
|
-
|
|
29
|
+
description_status: "AA",
|
|
30
|
+
images_status: "AA",
|
|
31
|
+
brand: "Garnier",
|
|
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
|
+
},
|
|
32
43
|
article: {
|
|
33
44
|
category:
|
|
34
|
-
"
|
|
35
|
-
company_name: "
|
|
36
|
-
id_company: 912,
|
|
45
|
+
"Salud y Belleza|Cuidado del Cabello|Shampoos y Acondicionadores",
|
|
46
|
+
company_name: "GRUPO BRAHMA",
|
|
37
47
|
country: "México",
|
|
38
|
-
id_category: "
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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",
|
|
42
61
|
},
|
|
43
62
|
retailers: [
|
|
44
63
|
{
|
|
45
|
-
id:
|
|
46
|
-
name: "
|
|
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",
|
|
47
74
|
},
|
|
48
75
|
],
|
|
49
|
-
services: {
|
|
50
|
-
datasheets: 1,
|
|
51
|
-
descriptions: 1,
|
|
52
|
-
images: 1,
|
|
53
|
-
},
|
|
54
76
|
statusByRetailer: {
|
|
55
|
-
|
|
56
|
-
datasheet: "
|
|
57
|
-
description: "
|
|
58
|
-
images: "
|
|
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",
|
|
59
91
|
},
|
|
60
92
|
},
|
|
61
|
-
|
|
62
|
-
id_article: 39372,
|
|
93
|
+
checked: false,
|
|
63
94
|
retailersAvailable: [
|
|
64
95
|
{
|
|
65
|
-
id:
|
|
66
|
-
name: "
|
|
96
|
+
id: 12,
|
|
97
|
+
name: "La Comer",
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
id: 29,
|
|
101
|
+
name: "Farmacias del Ahorro",
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
id: 63,
|
|
105
|
+
name: "DAX",
|
|
67
106
|
},
|
|
68
107
|
],
|
|
108
|
+
categoryName:
|
|
109
|
+
"Salud y Belleza|Cuidado del Cabello|Shampoos y Acondicionadores",
|
|
110
|
+
upc: "750955287656712",
|
|
111
|
+
id_article: 39270,
|
|
112
|
+
id_order: 15142,
|
|
69
113
|
},
|
|
70
114
|
productToEdit: {
|
|
71
|
-
ArticleId:
|
|
72
|
-
idCategory: "
|
|
115
|
+
ArticleId: 39270,
|
|
116
|
+
idCategory: "697",
|
|
73
117
|
product: {
|
|
74
|
-
orderId:
|
|
75
|
-
|
|
76
|
-
datasheet_status: "
|
|
77
|
-
description_status: "AP",
|
|
78
|
-
images_status: "AP",
|
|
118
|
+
orderId: 15142,
|
|
119
|
+
status: "AA",
|
|
120
|
+
datasheet_status: "AA",
|
|
79
121
|
prio: "none",
|
|
80
122
|
version: 3,
|
|
81
|
-
|
|
123
|
+
description_status: "AA",
|
|
124
|
+
images_status: "AA",
|
|
125
|
+
brand: "Garnier",
|
|
126
|
+
retailerOrder: 0,
|
|
127
|
+
missing: {
|
|
128
|
+
datasheet: null,
|
|
129
|
+
descriptions: null,
|
|
130
|
+
images: null,
|
|
131
|
+
},
|
|
132
|
+
services: {
|
|
133
|
+
datasheets: 1,
|
|
134
|
+
descriptions: 1,
|
|
135
|
+
images: 1,
|
|
136
|
+
},
|
|
82
137
|
article: {
|
|
83
138
|
category:
|
|
84
|
-
"
|
|
85
|
-
company_name: "
|
|
86
|
-
id_company: 912,
|
|
139
|
+
"Salud y Belleza|Cuidado del Cabello|Shampoos y Acondicionadores",
|
|
140
|
+
company_name: "GRUPO BRAHMA",
|
|
87
141
|
country: "México",
|
|
88
|
-
id_category: "
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
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",
|
|
92
155
|
},
|
|
93
156
|
retailers: [
|
|
94
157
|
{
|
|
95
|
-
id:
|
|
96
|
-
name: "
|
|
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",
|
|
97
168
|
},
|
|
98
169
|
],
|
|
99
|
-
services: {
|
|
100
|
-
datasheets: 1,
|
|
101
|
-
descriptions: 1,
|
|
102
|
-
images: 1,
|
|
103
|
-
},
|
|
104
170
|
statusByRetailer: {
|
|
105
|
-
|
|
106
|
-
datasheet: "
|
|
107
|
-
description: "
|
|
108
|
-
images: "
|
|
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",
|
|
109
185
|
},
|
|
110
186
|
},
|
|
111
|
-
|
|
112
|
-
id_article: 39372,
|
|
187
|
+
checked: false,
|
|
113
188
|
retailersAvailable: [
|
|
114
189
|
{
|
|
115
|
-
id:
|
|
116
|
-
name: "
|
|
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",
|
|
117
200
|
},
|
|
118
201
|
],
|
|
202
|
+
categoryName:
|
|
203
|
+
"Salud y Belleza|Cuidado del Cabello|Shampoos y Acondicionadores",
|
|
204
|
+
upc: "750955287656712",
|
|
205
|
+
id_article: 39270,
|
|
206
|
+
id_order: 15142,
|
|
119
207
|
},
|
|
120
208
|
},
|
|
121
209
|
location: {
|
|
@@ -123,35 +211,37 @@ ProviderProductEditionDefault.args = {
|
|
|
123
211
|
search: "",
|
|
124
212
|
hash: "",
|
|
125
213
|
state: {
|
|
214
|
+
withChat: true,
|
|
215
|
+
chatType: "product_status",
|
|
126
216
|
origin: "RequestWithContentoh",
|
|
127
217
|
},
|
|
128
218
|
key: "24vwut",
|
|
129
219
|
},
|
|
130
220
|
user: {
|
|
131
|
-
id_user:
|
|
132
|
-
name: "
|
|
133
|
-
last_name: "
|
|
134
|
-
email: "
|
|
135
|
-
position: "
|
|
136
|
-
telephone: "+
|
|
221
|
+
id_user: 28,
|
|
222
|
+
name: "Ismael",
|
|
223
|
+
last_name: "López",
|
|
224
|
+
email: "ilopez@contentoh.com",
|
|
225
|
+
position: "Test States",
|
|
226
|
+
telephone: "+523111366336",
|
|
137
227
|
country: "México",
|
|
138
|
-
id_company:
|
|
139
|
-
id_cognito: "
|
|
228
|
+
id_company: 1,
|
|
229
|
+
id_cognito: "f5927f8e-cbf7-4922-9e09-e69ec0b2731a",
|
|
140
230
|
birth_Date: null,
|
|
141
|
-
about_me:
|
|
142
|
-
zip_code:
|
|
143
|
-
address:
|
|
144
|
-
job:
|
|
145
|
-
id_stripe:
|
|
231
|
+
about_me: "",
|
|
232
|
+
zip_code: "",
|
|
233
|
+
address: "",
|
|
234
|
+
job: "",
|
|
235
|
+
id_stripe: "cus_KuEt6R6vwmN09f",
|
|
146
236
|
id_role: 0,
|
|
147
237
|
active: 1,
|
|
148
|
-
is_retailer:
|
|
238
|
+
is_retailer: 0,
|
|
149
239
|
email_notify: 1,
|
|
150
|
-
is_user_tech:
|
|
240
|
+
is_user_tech: "ADMIN-AS",
|
|
151
241
|
membership: {
|
|
152
|
-
id:
|
|
153
|
-
start_date: "2022-
|
|
154
|
-
end_date: "2023-
|
|
242
|
+
id: 76,
|
|
243
|
+
start_date: "2022-01-18T17:25:35.000Z",
|
|
244
|
+
end_date: "2023-01-18T17:25:35.000Z",
|
|
155
245
|
planID: 8,
|
|
156
246
|
plan: "prod_KtlhECVSFG2iro",
|
|
157
247
|
name: "Plan Pro",
|
|
@@ -159,33 +249,26 @@ ProviderProductEditionDefault.args = {
|
|
|
159
249
|
products_limit: "5000",
|
|
160
250
|
type: "Enterprise",
|
|
161
251
|
},
|
|
162
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
252
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1683926822779",
|
|
163
253
|
},
|
|
164
254
|
company: {
|
|
165
|
-
id_company:
|
|
166
|
-
trade_name: "
|
|
167
|
-
company_name: "
|
|
168
|
-
rfc: "
|
|
169
|
-
adress: "
|
|
170
|
-
about_company:
|
|
171
|
-
telephone:
|
|
172
|
-
web_site:
|
|
173
|
-
zip_code:
|
|
255
|
+
id_company: 1,
|
|
256
|
+
trade_name: "GRUPO BRAHMA",
|
|
257
|
+
company_name: "GRUPO BRAHMA",
|
|
258
|
+
rfc: "XAXX010101000",
|
|
259
|
+
adress: "AA",
|
|
260
|
+
about_company: "",
|
|
261
|
+
telephone: "",
|
|
262
|
+
web_site: "",
|
|
263
|
+
zip_code: "",
|
|
174
264
|
email: null,
|
|
175
|
-
social_link:
|
|
265
|
+
social_link: "",
|
|
176
266
|
is_retailer: 0,
|
|
177
|
-
financedRetailers: [
|
|
178
|
-
{
|
|
179
|
-
id: 70,
|
|
180
|
-
name: "Bodega Aurrera",
|
|
181
|
-
country: "México",
|
|
182
|
-
},
|
|
183
|
-
],
|
|
184
267
|
retailers: [
|
|
185
268
|
{
|
|
186
|
-
id:
|
|
187
|
-
name:
|
|
188
|
-
country:
|
|
269
|
+
id: null,
|
|
270
|
+
name: null,
|
|
271
|
+
country: null,
|
|
189
272
|
},
|
|
190
273
|
],
|
|
191
274
|
},
|