contentoh-components-library 21.2.101 → 21.2.103
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/dist/components/atoms/GeneralButton/index.js +6 -2
- package/dist/components/atoms/Select/VersionSelect.js +2 -1
- package/dist/components/organisms/CreateVersion/RenderChilds.js +11 -11
- package/dist/components/organisms/CreateVersion/index.js +30 -89
- package/dist/components/organisms/VersionSelector/index.js +28 -2
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +69 -147
- package/dist/components/pages/ProviderProductEdition/index.js +0 -20
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +77 -67
- package/dist/components/pages/RetailerProductEdition/index.js +3 -22
- package/package.json +1 -1
- package/src/components/atoms/GeneralButton/index.js +4 -1
- package/src/components/atoms/Select/VersionSelect.js +4 -2
- package/src/components/organisms/CreateVersion/RenderChilds.js +28 -34
- package/src/components/organisms/CreateVersion/index.js +16 -36
- package/src/components/organisms/VersionSelector/index.js +18 -3
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +75 -166
- package/src/components/pages/ProviderProductEdition/index.js +0 -19
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +79 -67
- package/src/components/pages/RetailerProductEdition/index.js +0 -12
- package/src/global-files/customHooks.js +2 -2
- package/dist/assets/images/chatPopup/Spinner.gif +0 -0
- package/dist/assets/images/chatPopup/close.svg +0 -3
- package/dist/assets/images/chatPopup/defaultImage.png +0 -0
- package/dist/assets/images/chatPopup/defaultProfile.png +0 -0
- package/dist/assets/images/chatPopup/doc.svg +0 -1
- package/dist/assets/images/chatPopup/document.svg +0 -1
- package/dist/assets/images/chatPopup/iconChat.svg +0 -19
- package/dist/assets/images/chatPopup/iconPlus.svg +0 -3
- package/dist/assets/images/chatPopup/pdf.svg +0 -75
- package/dist/assets/images/chatPopup/remove.svg +0 -4
- package/dist/assets/images/chatPopup/send.svg +0 -3
- package/dist/assets/images/chatPopup/svgIcon.svg +0 -109
- package/dist/assets/images/chatPopup/upload_file.svg +0 -3
- package/dist/assets/images/chatPopup/xls.svg +0 -53
- package/dist/assets/images/customSelect/starIcon.svg +0 -14
- package/dist/assets/images/defaultImages/Spinner.gif +0 -0
- package/dist/assets/images/defaultImages/notFound.svg +0 -124
- package/dist/components/atoms/ButtonFileChooser/ButtonFileChooser.stories.js +0 -72
- package/dist/components/atoms/ButtonFileChooser/index.js +0 -118
- package/dist/components/atoms/ButtonFileChooser/styles.js +0 -20
- package/dist/components/atoms/ButtonV2/ButtonV2.stories.js +0 -66
- package/dist/components/atoms/ButtonV2/index.js +0 -111
- package/dist/components/atoms/ButtonV2/styles.js +0 -53
- package/dist/components/atoms/ChatPopUp/ChatPopUp.stories.js +0 -28
- package/dist/components/atoms/ChatPopUp/index.js +0 -841
- package/dist/components/atoms/ChatPopUp/styles.js +0 -27
- package/dist/components/atoms/ChatPopUp/utils/handlersChat.js +0 -182
- package/dist/components/atoms/CustomIcon/CustomIcon.stories.js +0 -50
- package/dist/components/atoms/CustomIcon/index.js +0 -40
- package/dist/components/atoms/CustomIcon/styles.js +0 -33
- package/dist/components/atoms/IconFile/IconFile.stories.js +0 -48
- package/dist/components/atoms/IconFile/index.js +0 -249
- package/dist/components/atoms/IconFile/styles.js +0 -23
- package/dist/components/atoms/Image/Image.stories.js +0 -73
- package/dist/components/atoms/Image/index.js +0 -76
- package/dist/components/atoms/Image/styles.js +0 -43
- package/dist/components/atoms/ImageLink/ImageLink.stories.js +0 -63
- package/dist/components/atoms/ImageLink/index.js +0 -77
- package/dist/components/atoms/ImageLink/styles.js +0 -40
- package/dist/components/atoms/ImagePreview/ImagePreview.stories.js +0 -70
- package/dist/components/atoms/ImagePreview/index.js +0 -222
- package/dist/components/atoms/ImagePreview/styles.js +0 -44
- package/dist/components/atoms/InputText/InputText.stories.js +0 -60
- package/dist/components/atoms/InputText/index.js +0 -66
- package/dist/components/atoms/InputText/styles.js +0 -32
- package/dist/components/atoms/NotFound/NotFound.stories.js +0 -36
- package/dist/components/atoms/NotFound/index.js +0 -75
- package/dist/components/atoms/NotFound/styles.js +0 -20
- package/dist/components/atoms/SelectItemV2/SelectItemV2.stories.js +0 -45
- package/dist/components/atoms/SelectItemV2/index.js +0 -46
- package/dist/components/atoms/SelectItemV2/styles.js +0 -23
- package/dist/components/atoms/Tooltip/Tooltip.stories.js +0 -66
- package/dist/components/atoms/Tooltip/index.js +0 -72
- package/dist/components/atoms/Tooltip/styles.js +0 -20
- package/dist/components/molecules/ButtonDownloadFile/DownloadFile.stories.js +0 -66
- package/dist/components/molecules/ButtonDownloadFile/index.js +0 -179
- package/dist/components/molecules/ButtonDownloadFile/styles.js +0 -23
- package/dist/components/molecules/ImageTooltip/ImageTooltip.stories.js +0 -72
- package/dist/components/molecules/ImageTooltip/index.js +0 -84
- package/dist/components/molecules/ImageTooltip/styles.js +0 -33
- package/dist/components/molecules/SelectV2/SelectV2.stories.js +0 -119
- package/dist/components/molecules/SelectV2/index.js +0 -298
- package/dist/components/molecules/SelectV2/styles.js +0 -42
- package/dist/components/organisms/Chat/Chat.stories.js +0 -215
- package/dist/components/organisms/Chat/ChatLists/ChatLists.stories.js +0 -83
- package/dist/components/organisms/Chat/ChatLists/index.js +0 -160
- package/dist/components/organisms/Chat/ChatLists/styles.js +0 -29
- package/dist/components/organisms/Chat/ContainerItems/ContainerItems.stories.js +0 -176
- package/dist/components/organisms/Chat/ContainerItems/index.js +0 -569
- package/dist/components/organisms/Chat/ContainerItems/styles.js +0 -20
- package/dist/components/organisms/Chat/ContentChat/ContentChat.stories.js +0 -142
- package/dist/components/organisms/Chat/ContentChat/index.js +0 -1422
- package/dist/components/organisms/Chat/ContentChat/styles.js +0 -20
- package/dist/components/organisms/Chat/Footer/Footer.stories.js +0 -43
- package/dist/components/organisms/Chat/Footer/index.js +0 -984
- package/dist/components/organisms/Chat/Footer/styles.js +0 -32
- package/dist/components/organisms/Chat/Header/Header.stories.js +0 -96
- package/dist/components/organisms/Chat/Header/index.js +0 -84
- package/dist/components/organisms/Chat/Header/styles.js +0 -20
- package/dist/components/organisms/Chat/index.js +0 -327
- package/dist/components/organisms/Chat/styles.js +0 -29
- package/dist/components/organisms/Modal/Modal.stories.js +0 -66
- package/dist/components/organisms/Modal/index.js +0 -95
- package/dist/components/organisms/Modal/styles.js +0 -20
- package/dist/global-files/handle_http.js +0 -383
- package/dist/global-files/utils.js +0 -472
|
@@ -16,187 +16,96 @@ ProviderProductEditionDefault.args = {
|
|
|
16
16
|
Imágenes: true,
|
|
17
17
|
},
|
|
18
18
|
token:
|
|
19
|
-
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.
|
|
19
|
+
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmNTkyN2Y4ZS1jYmY3LTQ5MjItOWUwOS1lNjllYzBiMjczMWEiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImY1OTI3ZjhlLWNiZjctNDkyMi05ZTA5LWU2OWVjMGIyNzMxYSIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiIyOWY3YWY3Zi0yNmQ0LTRiMWItODZmZS0zOWY2ZTUyMDFhNzAiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY2OTkyNzAyMSwibmFtZSI6IklzbWFlbCBMb3BleiIsInBob25lX251bWJlciI6Iis1MjMxMTEzNjYzMzYiLCJleHAiOjE2Njk5MzA2MjEsImlhdCI6MTY2OTkyNzAyMSwiZW1haWwiOiJpbG9wZXpAY29udGVudG9oLmNvbSJ9.NK6hVSiBksguboJ1m8yYqtDq19kzgE3GqYDEJHLUya_n_TsXriv6W1ypq7XiSo9zrqWcmHBpOoJQS7WbWzjGe__NlJEXjo8bykS8QBTTOiMrKxz1KzGRYJkwgG0axk-zVysUQH0_y-fbwgEgMPtd6qO46DB_KlFI_PEL1-uR5MJ9U0kNkS61gMbHwFQFs_DU-sS01NxjBsjUEp783rs1r-jm7TelZac1rGaFNUyi5vHdSozYzlnzfzGcuACZ0lHqvah2FHbDyurp-G_uhpUn5lNmcL4rVNh2lDd4TOnhJ3AtN1wGSmtErmhjmBHTvavh1ub9pklA1B9qjVuTRpYANw",
|
|
20
20
|
articleId: 238,
|
|
21
21
|
category: 846,
|
|
22
22
|
version: 2,
|
|
23
23
|
productSelected: {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"country": "México",
|
|
37
|
-
"id_category": "2454",
|
|
38
|
-
"id_article": 84492,
|
|
39
|
-
"name": "prueba dos",
|
|
40
|
-
"upc": "8375"
|
|
41
|
-
},
|
|
42
|
-
"retailers": [
|
|
43
|
-
{
|
|
44
|
-
"id": 59,
|
|
45
|
-
"name": "The Home Depot Platinum"
|
|
46
|
-
}
|
|
47
|
-
],
|
|
48
|
-
"services": {
|
|
49
|
-
"datasheets": 0,
|
|
50
|
-
"descriptions": 0,
|
|
51
|
-
"images": 1
|
|
52
|
-
},
|
|
53
|
-
"statusByRetailer": {
|
|
54
|
-
"59": {
|
|
55
|
-
"images": "AP"
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
"retailersWithService": [
|
|
59
|
-
"59"
|
|
24
|
+
id_article: 3,
|
|
25
|
+
id_category: 2032,
|
|
26
|
+
name: "CORTINA BLACKOUT DE POLIÉSTER CAFÉ 2.13 X 1.06 M",
|
|
27
|
+
upc: "161157",
|
|
28
|
+
timestamp: "2022-11-14T16:02:47.000Z",
|
|
29
|
+
categoryName: "Decoración|Cortinas y Persianas|Cortinas",
|
|
30
|
+
version: 1,
|
|
31
|
+
retailersAvailable: [
|
|
32
|
+
{
|
|
33
|
+
name: "The Home Depot Golden",
|
|
34
|
+
id: 58,
|
|
35
|
+
},
|
|
60
36
|
],
|
|
61
|
-
"id_article": 84492,
|
|
62
|
-
"retailersAvailable": [
|
|
63
|
-
{
|
|
64
|
-
"id": 59,
|
|
65
|
-
"name": "The Home Depot Platinum"
|
|
66
|
-
}
|
|
67
|
-
]
|
|
68
37
|
},
|
|
69
38
|
productToEdit: {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
"
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
"id_category": "2454",
|
|
87
|
-
"id_article": 84492,
|
|
88
|
-
"name": "prueba dos",
|
|
89
|
-
"upc": "8375"
|
|
90
|
-
},
|
|
91
|
-
"retailers": [
|
|
92
|
-
{
|
|
93
|
-
"id": 59,
|
|
94
|
-
"name": "The Home Depot Platinum"
|
|
95
|
-
}
|
|
39
|
+
idCategory: 2032,
|
|
40
|
+
ArticleId: 3,
|
|
41
|
+
product: [
|
|
42
|
+
{
|
|
43
|
+
id_article: 3,
|
|
44
|
+
id_category: 2032,
|
|
45
|
+
name: "CORTINA BLACKOUT DE POLIÉSTER CAFÉ 2.13 X 1.06 M",
|
|
46
|
+
upc: "161157",
|
|
47
|
+
timestamp: "2022-11-14T16:02:47.000Z",
|
|
48
|
+
categoryName: "Decoración|Cortinas y Persianas|Cortinas",
|
|
49
|
+
version: 1,
|
|
50
|
+
retailersAvailable: [
|
|
51
|
+
{
|
|
52
|
+
name: "The Home Depot Golden",
|
|
53
|
+
id: 58,
|
|
54
|
+
},
|
|
96
55
|
],
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
"descriptions": 0,
|
|
100
|
-
"images": 1
|
|
101
|
-
},
|
|
102
|
-
"statusByRetailer": {
|
|
103
|
-
"59": {
|
|
104
|
-
"images": "AP"
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
"retailersWithService": [
|
|
108
|
-
"59"
|
|
109
|
-
],
|
|
110
|
-
"id_article": 84492,
|
|
111
|
-
"retailersAvailable": [
|
|
112
|
-
{
|
|
113
|
-
"id": 59,
|
|
114
|
-
"name": "The Home Depot Platinum"
|
|
115
|
-
}
|
|
116
|
-
]
|
|
117
|
-
}
|
|
56
|
+
},
|
|
57
|
+
],
|
|
118
58
|
},
|
|
119
59
|
location: {
|
|
120
60
|
state: { origin: "Contentoh" },
|
|
121
61
|
},
|
|
122
62
|
user: {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
63
|
+
id_user: 28,
|
|
64
|
+
name: "Ismael",
|
|
65
|
+
last_name: "López",
|
|
66
|
+
email: "ilopez@contentoh.com",
|
|
67
|
+
position: "Test States",
|
|
68
|
+
telephone: "+523111366336",
|
|
69
|
+
country: "México",
|
|
70
|
+
id_company: 1,
|
|
71
|
+
id_cognito: "f5927f8e-cbf7-4922-9e09-e69ec0b2731a",
|
|
72
|
+
birth_Date: null,
|
|
73
|
+
about_me: "",
|
|
74
|
+
zip_code: "",
|
|
75
|
+
address: "",
|
|
76
|
+
job: "",
|
|
77
|
+
id_stripe: "cus_KuEt6R6vwmN09f",
|
|
78
|
+
id_role: 0,
|
|
79
|
+
active: 1,
|
|
80
|
+
is_retailer: 0,
|
|
81
|
+
email_notify: 0,
|
|
82
|
+
is_user_tech: "AS",
|
|
83
|
+
membership: {
|
|
84
|
+
id: 76,
|
|
85
|
+
start_date: "2022-01-18T17:25:35.000Z",
|
|
86
|
+
end_date: "2023-01-18T17:25:35.000Z",
|
|
87
|
+
planID: 8,
|
|
88
|
+
plan: "prod_KtlhECVSFG2iro",
|
|
89
|
+
name: "Plan Pro",
|
|
90
|
+
user_limit: "20",
|
|
91
|
+
products_limit: "5000",
|
|
92
|
+
type: "Enterprise",
|
|
153
93
|
},
|
|
154
|
-
|
|
94
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1669927021851",
|
|
155
95
|
},
|
|
156
96
|
company: {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
"financedRetailers": [
|
|
170
|
-
{
|
|
171
|
-
"id": 68,
|
|
172
|
-
"name": "The Home Depot Merchants",
|
|
173
|
-
"country": "México",
|
|
174
|
-
"id_region": 1,
|
|
175
|
-
"active": 1
|
|
176
|
-
}
|
|
177
|
-
],
|
|
178
|
-
"retailers": [
|
|
179
|
-
{
|
|
180
|
-
"id": 59,
|
|
181
|
-
"name": "The Home Depot Platinum",
|
|
182
|
-
"country": "México"
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
"id": 60,
|
|
186
|
-
"name": "The Home Depot Resizing",
|
|
187
|
-
"country": "México"
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
"id": 61,
|
|
191
|
-
"name": "Home Depot TAB",
|
|
192
|
-
"country": "México"
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
"id": 68,
|
|
196
|
-
"name": "The Home Depot Merchants",
|
|
197
|
-
"country": "México"
|
|
198
|
-
}
|
|
199
|
-
]
|
|
97
|
+
id_company: 1,
|
|
98
|
+
trade_name: "GRUPO BRAHMA",
|
|
99
|
+
company_name: "GRUPO BRAHMA",
|
|
100
|
+
rfc: "XAXX010101000",
|
|
101
|
+
adress: "AA",
|
|
102
|
+
about_company: "",
|
|
103
|
+
telephone: "",
|
|
104
|
+
web_site: "",
|
|
105
|
+
zip_code: "",
|
|
106
|
+
email: null,
|
|
107
|
+
social_link: "",
|
|
108
|
+
is_retailer: 0,
|
|
200
109
|
},
|
|
201
|
-
showSurvey: (v) => v && alert(
|
|
110
|
+
showSurvey: (v) => v && alert("se muestra"),
|
|
202
111
|
};
|
|
@@ -42,7 +42,6 @@ import Slide1_4 from "../../../assets/images/sliderToolTip/slide4.svg";
|
|
|
42
42
|
import Slide1_5 from "../../../assets/images/sliderToolTip/slide5.svg";
|
|
43
43
|
import { VersionSelector } from "../../organisms/VersionSelector";
|
|
44
44
|
import { useCloseModal } from "../../../global-files/customHooks";
|
|
45
|
-
import { CreateVersion } from "../../organisms/CreateVersion";
|
|
46
45
|
|
|
47
46
|
const reducerImages = (state, action) => {
|
|
48
47
|
let { values, attrForImgs, inputsByRetailer } = state;
|
|
@@ -252,7 +251,6 @@ export const ProviderProductEdition = ({
|
|
|
252
251
|
const [retailerStatus, setRetailerStatus] = useState(
|
|
253
252
|
product.statusByRetailer
|
|
254
253
|
);
|
|
255
|
-
const [showCreateVersion, setShowCreateVersion] = useState(false);
|
|
256
254
|
const [showVersionSelector, setShowVersionSelector] =
|
|
257
255
|
useCloseModal("version-selector");
|
|
258
256
|
|
|
@@ -272,15 +270,6 @@ export const ProviderProductEdition = ({
|
|
|
272
270
|
setServices(services);
|
|
273
271
|
await getServices();
|
|
274
272
|
|
|
275
|
-
// if (!originProp) {
|
|
276
|
-
// setActiveRetailer(
|
|
277
|
-
// product?.retailers
|
|
278
|
-
// ? product?.retailers[0]
|
|
279
|
-
// : product?.retailersAvailable[0]
|
|
280
|
-
// );
|
|
281
|
-
// }
|
|
282
|
-
|
|
283
|
-
// setActiveRetailer(product?.retailers[0]);
|
|
284
273
|
setImages({ action: "init", init: services[2] });
|
|
285
274
|
if (services[2]?.values?.length > 0) setActiveImage(0);
|
|
286
275
|
|
|
@@ -1497,18 +1486,10 @@ export const ProviderProductEdition = ({
|
|
|
1497
1486
|
setVersion={setVersion}
|
|
1498
1487
|
companyName={company.company_name}
|
|
1499
1488
|
currentVersion={version}
|
|
1500
|
-
setShowCreateVersion={setShowCreateVersion}
|
|
1501
1489
|
setShowVersionSelector={setShowVersionSelector}
|
|
1502
1490
|
jwt={token}
|
|
1503
1491
|
/>
|
|
1504
1492
|
)}
|
|
1505
|
-
{showCreateVersion && (
|
|
1506
|
-
<CreateVersion
|
|
1507
|
-
idArticle={product.id_article}
|
|
1508
|
-
version={version}
|
|
1509
|
-
setShowCreateVersion={setShowCreateVersion}
|
|
1510
|
-
/>
|
|
1511
|
-
)}
|
|
1512
1493
|
</Container>
|
|
1513
1494
|
);
|
|
1514
1495
|
};
|
|
@@ -16,104 +16,116 @@ RetailerProductEditionDefault.args = {
|
|
|
16
16
|
Imágenes: false,
|
|
17
17
|
},
|
|
18
18
|
token:
|
|
19
|
-
"
|
|
19
|
+
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJhNmM0ZDNkNi0yNGE0LTQxZDQtYWQwZi1kMDg3NDM4YWI1YjYiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwiY29nbml0bzp1c2VybmFtZSI6ImE2YzRkM2Q2LTI0YTQtNDFkNC1hZDBmLWQwODc0MzhhYjViNiIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiI0MmE2OWE4My02OGY0LTRmZjktOGU4Zi1jYzgxODQ5MDU5NGYiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY2OTkyODUxMSwibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY2OTkzMjExMSwiaWF0IjoxNjY5OTI4NTExLCJlbWFpbCI6ImV0Y0Bjb250ZW50b2guY29tIn0.Mv1hFVjkF2y__7XP0bXzU2Yq8YMc0go9OgB7all5F4HvfK62I0l9rNRqddlaLjDSCmjvyYI-M8WFwHtdlOL1-liazZr8hhu7_9SciapRzkuuHlWwu0g3EEK54NuHR3-YYRax85hKyN9YoV1MY_fTzT9WUVXWoqf4UPj2SH79g_A0l0lm18ODzzdhXFSpubuI8-Ml7MbXUh8klzl7T55S16sj8zPONpesrA01WsG1PWGqfRZI2g37edj_en2_fIcfi49tQjbSjnQOVOPnkO5TPiyoMtZdS53Rx75iSI8-fP-Z7kD-5TI_KK6vK35PHoG1B-N3EzDUjXek4MowNswnGA",
|
|
20
20
|
productSelected: {
|
|
21
21
|
services: {
|
|
22
22
|
datasheets: 1,
|
|
23
23
|
descriptions: 1,
|
|
24
24
|
images: 1,
|
|
25
25
|
},
|
|
26
|
-
orderId:
|
|
26
|
+
orderId: 123,
|
|
27
27
|
status: "PA",
|
|
28
|
-
datasheet_status: "
|
|
28
|
+
datasheet_status: "PA",
|
|
29
29
|
prio: "none",
|
|
30
|
-
version:
|
|
31
|
-
description_status: "
|
|
30
|
+
version: 3,
|
|
31
|
+
description_status: "PA",
|
|
32
32
|
images_status: "PA",
|
|
33
33
|
statusByRetailer: {
|
|
34
|
-
|
|
35
|
-
datasheet: "
|
|
36
|
-
description: "
|
|
34
|
+
4: {
|
|
35
|
+
datasheet: "PA",
|
|
36
|
+
description: "PA",
|
|
37
|
+
images: "PA",
|
|
38
|
+
},
|
|
39
|
+
5: {
|
|
40
|
+
datasheet: "PA",
|
|
41
|
+
description: "PA",
|
|
42
|
+
images: "PA",
|
|
43
|
+
},
|
|
44
|
+
6: {
|
|
45
|
+
datasheet: "PA",
|
|
46
|
+
description: "PA",
|
|
37
47
|
images: "PA",
|
|
38
48
|
},
|
|
39
49
|
},
|
|
40
50
|
article: {
|
|
41
|
-
id_article:
|
|
42
|
-
id_category: "
|
|
43
|
-
name: "
|
|
44
|
-
upc: "
|
|
45
|
-
timestamp: "2022-11-
|
|
46
|
-
id_user:
|
|
47
|
-
status:
|
|
51
|
+
id_article: 127,
|
|
52
|
+
id_category: "700",
|
|
53
|
+
name: "prueba prod flujo",
|
|
54
|
+
upc: "34234353324",
|
|
55
|
+
timestamp: "2022-11-23T23:12:30.000Z",
|
|
56
|
+
id_user: 28,
|
|
57
|
+
status: "NULL",
|
|
48
58
|
active: 1,
|
|
49
|
-
company_id:
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
id_description_facilitator: null,
|
|
61
|
-
id_images_especialist: null,
|
|
62
|
-
id_images_facilitator: null,
|
|
63
|
-
id_auditor: null,
|
|
59
|
+
company_id: 1,
|
|
60
|
+
company_name: "GRUPO BRAHMA",
|
|
61
|
+
country: "México",
|
|
62
|
+
id_order: 123,
|
|
63
|
+
id_datasheet_especialist: 54,
|
|
64
|
+
id_datasheet_facilitator: 52,
|
|
65
|
+
id_description_especialist: 54,
|
|
66
|
+
id_description_facilitator: 52,
|
|
67
|
+
id_images_especialist: 55,
|
|
68
|
+
id_images_facilitator: 53,
|
|
69
|
+
id_auditor: 37,
|
|
64
70
|
id_recepcionist: null,
|
|
65
71
|
category:
|
|
66
|
-
"
|
|
67
|
-
missingAttributes:
|
|
68
|
-
missingDescriptions:
|
|
69
|
-
missingImages:
|
|
72
|
+
"Salud y Belleza|Cuidado Facial|Cremas, Mascarillas y Tratamientos",
|
|
73
|
+
missingAttributes: 0,
|
|
74
|
+
missingDescriptions: 0,
|
|
75
|
+
missingImages: 0,
|
|
70
76
|
},
|
|
71
77
|
retailers: [
|
|
72
78
|
{
|
|
73
|
-
id:
|
|
74
|
-
name: "
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
79
|
+
id: 4,
|
|
80
|
+
name: "Walmart Super y Superama",
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
id: 5,
|
|
84
|
+
name: "Chedraui",
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
id: 6,
|
|
88
|
+
name: "HEB",
|
|
78
89
|
},
|
|
79
90
|
],
|
|
80
|
-
country:
|
|
81
|
-
upc: "
|
|
91
|
+
country: "México",
|
|
92
|
+
upc: "34234353324",
|
|
82
93
|
},
|
|
83
94
|
location: {
|
|
84
95
|
product: { articleId: 109485, versionId: 3 },
|
|
85
96
|
},
|
|
86
97
|
user: {
|
|
87
|
-
id_user:
|
|
88
|
-
name: "
|
|
89
|
-
last_name: "
|
|
90
|
-
email: "
|
|
91
|
-
position: "
|
|
92
|
-
telephone:
|
|
93
|
-
country:
|
|
94
|
-
id_company:
|
|
95
|
-
id_cognito: "
|
|
98
|
+
id_user: 51,
|
|
99
|
+
name: "ADMIN PRUEBA",
|
|
100
|
+
last_name: "",
|
|
101
|
+
email: "etc@contentoh.com",
|
|
102
|
+
position: "",
|
|
103
|
+
telephone: "",
|
|
104
|
+
country: "",
|
|
105
|
+
id_company: 2,
|
|
106
|
+
id_cognito: "a6c4d3d6-24a4-41d4-ad0f-d087438ab5b6",
|
|
96
107
|
birth_Date: null,
|
|
97
|
-
about_me:
|
|
98
|
-
zip_code:
|
|
99
|
-
address:
|
|
100
|
-
job:
|
|
101
|
-
id_stripe:
|
|
102
|
-
id_role:
|
|
108
|
+
about_me: "",
|
|
109
|
+
zip_code: "",
|
|
110
|
+
address: "",
|
|
111
|
+
job: "",
|
|
112
|
+
id_stripe: "",
|
|
113
|
+
id_role: 1,
|
|
103
114
|
active: 1,
|
|
104
115
|
is_retailer: 0,
|
|
105
|
-
email_notify:
|
|
116
|
+
email_notify: 1,
|
|
117
|
+
is_user_tech: null,
|
|
106
118
|
membership: {
|
|
107
|
-
id:
|
|
108
|
-
start_date: "
|
|
109
|
-
end_date: "
|
|
110
|
-
planID:
|
|
111
|
-
plan: "
|
|
112
|
-
name: "Plan
|
|
113
|
-
user_limit: "
|
|
114
|
-
products_limit: "
|
|
115
|
-
type: "
|
|
119
|
+
id: 2,
|
|
120
|
+
start_date: "2021-11-05T02:35:12.000Z",
|
|
121
|
+
end_date: "2022-11-05T02:34:49.000Z",
|
|
122
|
+
planID: 1,
|
|
123
|
+
plan: "prod_KtkvuFFLpOdP6e",
|
|
124
|
+
name: "Plan Free",
|
|
125
|
+
user_limit: "1",
|
|
126
|
+
products_limit: "3",
|
|
127
|
+
type: "PyMES",
|
|
116
128
|
},
|
|
117
|
-
src: "https://content-management-profile
|
|
129
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-51/51.png?1669928511679",
|
|
118
130
|
},
|
|
119
131
|
};
|
|
@@ -32,7 +32,6 @@ import succes from "../../../assets/images/genericModal/genericModalCheck.svg";
|
|
|
32
32
|
import errorModal from "../../../assets/images/genericModal/errorModal.svg";
|
|
33
33
|
import { VersionSelector } from "../../organisms/VersionSelector";
|
|
34
34
|
import { useCloseModal } from "../../../global-files/customHooks";
|
|
35
|
-
import { CreateVersion } from "../../organisms/CreateVersion";
|
|
36
35
|
|
|
37
36
|
const reducerImages = (state, action) => {
|
|
38
37
|
let { values, attrForImgs, inputsByRetailer } = state;
|
|
@@ -206,10 +205,7 @@ export const RetailerProductEdition = ({
|
|
|
206
205
|
const [retailerStatus, setRetailerStatus] = useState("-");
|
|
207
206
|
const [statusArray, setStatusArray] = useState([]);
|
|
208
207
|
const [socketType, setSocketType] = useState(null);
|
|
209
|
-
const [servicesStatus, setServicesStatus] = useState([]);
|
|
210
208
|
const [saving, setSaving] = useState(loading);
|
|
211
|
-
const isAuditor = user.id_role === 6;
|
|
212
|
-
const [showCreateVersion, setShowCreateVersion] = useState(false);
|
|
213
209
|
const [showVersionSelector, setShowVersionSelector] =
|
|
214
210
|
useCloseModal("version-selector");
|
|
215
211
|
const shotThd = [58, 59, 60, 61].includes(activeRetailer.id);
|
|
@@ -1549,18 +1545,10 @@ export const RetailerProductEdition = ({
|
|
|
1549
1545
|
setVersion={setVersion}
|
|
1550
1546
|
companyName={product.article.company_name}
|
|
1551
1547
|
currentVersion={version}
|
|
1552
|
-
setShowCreateVersion={setShowCreateVersion}
|
|
1553
1548
|
setShowVersionSelector={setShowVersionSelector}
|
|
1554
1549
|
jwt={token}
|
|
1555
1550
|
/>
|
|
1556
1551
|
)}
|
|
1557
|
-
{showCreateVersion && (
|
|
1558
|
-
<CreateVersion
|
|
1559
|
-
idArticle={product.article.id_article}
|
|
1560
|
-
version={version}
|
|
1561
|
-
setShowCreateVersion={setShowCreateVersion}
|
|
1562
|
-
/>
|
|
1563
|
-
)}
|
|
1564
1552
|
</Container>
|
|
1565
1553
|
);
|
|
1566
1554
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { useState } from "react";
|
|
2
|
-
import { useEffect } from "react";
|
|
1
|
+
import { useState, useEffect } from "react";
|
|
3
2
|
|
|
4
3
|
export const useCloseModal = (id) => {
|
|
5
4
|
const [showModal, setShowModal] = useState(false);
|
|
@@ -11,6 +10,7 @@ export const useCloseModal = (id) => {
|
|
|
11
10
|
setShowModal(false);
|
|
12
11
|
}
|
|
13
12
|
};
|
|
13
|
+
|
|
14
14
|
useEffect(() => {
|
|
15
15
|
if (showModal) {
|
|
16
16
|
document.addEventListener("click", closeModal, false);
|
|
Binary file
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14">
|
|
2
|
-
<path id="close_FILL0_wght400_GRAD0_opsz48" d="M6.385,19.308,5.308,18.231l5.923-5.923L5.308,6.385,6.385,5.308l5.923,5.923,5.923-5.923,1.077,1.077-5.923,5.923,5.923,5.923-1.077,1.077-5.923-5.923Z" transform="translate(-5.308 -5.308)" fill="#fff"/>
|
|
3
|
-
</svg>
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 51 65" fill="#fff" fill-rule="evenodd" stroke="#000" stroke-linecap="round" stroke-linejoin="round"><use xlink:href="#C" x=".5" y=".5"/><defs><filter id="A" x="-6%" y="-4.6875%" width="116%" height="112.5%"><feGaussianBlur in="SourceAlpha" stdDeviation="1"/><feOffset dx="2" dy="2" result="B"/><feFlood flood-color="#000" flood-opacity=".2"/><feComposite in2="B" operator="in" result="C"/><feMerge><feMergeNode in="C"/><feMergeNode in="SourceGraphic"/></feMerge></filter><filter id="B" x="-27.5%" y="-32.5%" width="160%" height="160%"><feGaussianBlur in="SourceAlpha" stdDeviation="2"/><feOffset dx="1" dy="-1" result="B"/><feFlood flood-color="#000" flood-opacity=".2"/><feComposite in2="B" operator="in" result="C"/><feMerge><feMergeNode in="C"/><feMergeNode in="SourceGraphic"/></feMerge></filter></defs><symbol id="C" overflow="visible"><path d="M50 20L30 0H5a4.99 4.99 0 0 0-5 5v54a4.99 4.99 0 0 0 5 5h40a4.99 4.99 0 0 0 5-5z" fill="#2196f3" stroke="none" filter="url(#A)"/><defs/><g transform="matrix(-1 0 0 -1 50 20)"><path d="M20 20L0 0h15a4.99 4.99 0 0 1 5 5z" fill="#90caf9" stroke="none" filter="url(#B)"/><defs/></g><path d="M10 17.5h17.5V20H10zm0 10h27.5V30H10zm0 10h27.5V40H10zm0 10h27.5V50H10z" stroke="none"/></symbol></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 66 81" fill="#fff" fill-rule="evenodd" stroke="#000" stroke-linecap="round" stroke-linejoin="round"><use xlink:href="#A" x=".5" y=".5"/><symbol id="A" overflow="visible"><path d="M44.674 0H0v79.977h65V20.012L44.674 0zM60.93 75.993H4.07V4.007h38.593v18.008h18.291v53.978zm-10.151-40H14.221v-3.984h36.558zm0 9.995H14.221v-3.984h36.558zm0 10.017H14.221v-4.007h36.558zm0 9.994H14.221v-4.007h36.558z" fill="#2a3282" stroke="none"/></symbol></svg>
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="14" height="14" viewBox="0 0 14 14">
|
|
2
|
-
<defs>
|
|
3
|
-
<style>
|
|
4
|
-
.cls-1 {
|
|
5
|
-
fill: #707070;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.cls-2 {
|
|
9
|
-
clip-path: url(#clip-path);
|
|
10
|
-
}
|
|
11
|
-
</style>
|
|
12
|
-
<clipPath id="clip-path">
|
|
13
|
-
<rect id="Rectángulo_368" data-name="Rectángulo 368" class="cls-1" width="14" height="14" transform="translate(1737 869)"/>
|
|
14
|
-
</clipPath>
|
|
15
|
-
</defs>
|
|
16
|
-
<g id="Enmascarar_grupo_83" data-name="Enmascarar grupo 83" class="cls-2" transform="translate(-1737 -869)">
|
|
17
|
-
<path id="forum_FILL0_wght400_GRAD0_opsz48" class="cls-1" d="M1.4,11.9V2.135a.728.728,0,0,1,.228-.49A.651.651,0,0,1,2.1,1.4h9.082a.675.675,0,0,1,.49.236.714.714,0,0,1,.227.5v6.23a.728.728,0,0,1-.227.49.666.666,0,0,1-.49.245H4.2Zm3.518.7a.678.678,0,0,1-.481-.245.716.716,0,0,1-.236-.49V10.15h8.75V4.2H14.7a.651.651,0,0,1,.472.245.744.744,0,0,1,.227.508v10.43L12.617,12.6ZM10.85,2.45H2.45V9.363L3.763,8.05H10.85Zm-8.4,0v0Z" transform="translate(1735.6 867.609)"/>
|
|
18
|
-
</g>
|
|
19
|
-
</svg>
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">
|
|
2
|
-
<path id="Icono_cargar_más" data-name="Icono, cargar más" d="M18,28a9.64,9.64,0,0,1-7.078-2.922A9.64,9.64,0,0,1,8,18a9.64,9.64,0,0,1,2.922-7.078A9.64,9.64,0,0,1,18,8a9.665,9.665,0,0,1,4.656,1.078,11.027,11.027,0,0,1,3.469,2.953V8H28v7.938H20.063V14.063h5.25a9.572,9.572,0,0,0-3.031-3.031A7.888,7.888,0,0,0,18,9.875,8.056,8.056,0,0,0,9.875,18,8.056,8.056,0,0,0,18,26.125a8.2,8.2,0,0,0,4.75-1.484,7.72,7.72,0,0,0,3-3.922h1.937A9.576,9.576,0,0,1,24.094,26,9.947,9.947,0,0,1,18,28Z" transform="translate(-8 -8)" fill="#8a6caa"/>
|
|
3
|
-
</svg>
|