contentoh-components-library 21.4.61 → 21.4.62
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/molecules/BoxAttribute/styles.js +1 -1
- package/dist/components/molecules/BoxButtons/index.js +1 -0
- package/dist/components/molecules/TagAndInput/index.js +64 -3
- package/dist/components/organisms/InputGroup/index.js +153 -48
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +82 -146
- package/dist/components/pages/ProviderProductEdition/index.js +173 -138
- package/dist/components/pages/RetailerProductEdition/index.js +2 -2
- package/package.json +1 -1
- package/src/assets/images/Icons/info.svg +8 -0
- package/src/components/atoms/TabSection/styles.js +1 -1
- package/src/components/molecules/BoxAttribute/BoxAttribute.stories.js +16 -0
- package/src/components/molecules/BoxAttribute/index.js +71 -0
- package/src/components/molecules/BoxAttribute/styles.js +38 -0
- package/src/components/molecules/BoxButtons/BoxButtons.stories.js +15 -0
- package/src/components/molecules/BoxButtons/index.js +28 -0
- package/src/components/molecules/BoxButtons/styles.js +43 -0
- package/src/components/molecules/TagAndInput/index.js +52 -8
- package/src/components/organisms/Box/Box.stories.js +17 -0
- package/src/components/organisms/Box/index.js +103 -0
- package/src/components/organisms/Box/styles.js +48 -0
- package/src/components/organisms/BoxOnboarding/BoxOnboarding.stories.js +17 -0
- package/src/components/organisms/BoxOnboarding/index.js +60 -0
- package/src/components/organisms/BoxOnboarding/styles.js +44 -0
- package/src/components/organisms/InputGroup/index.js +233 -87
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +86 -175
- package/src/components/pages/ProviderProductEdition/index.js +43 -16
- package/src/components/pages/RetailerProductEdition/index.js +4 -2
- package/dist/components/atoms/ImageCarousel/ImgeSlider.stories.js +0 -90
- package/dist/components/atoms/ImageCarousel/index.js +0 -120
- package/dist/components/atoms/ImageCarousel/styles.js +0 -18
- package/dist/components/atoms/PercentTag/PercentTag.stories.js +0 -31
- package/dist/components/atoms/PercentTag/index.js +0 -23
- package/dist/components/atoms/PercentTag/styles.js +0 -22
- package/dist/components/atoms/RatingStars/RatingStars.stories.js +0 -30
- package/dist/components/atoms/RatingStars/index.js +0 -53
- package/dist/components/atoms/RatingStars/styles.js +0 -18
- package/dist/components/atoms/RetailerCatalog/RetailerCatalog.stories.js +0 -48
- package/dist/components/atoms/RetailerCatalog/index.js +0 -69
- package/dist/components/atoms/RetailerCatalog/styles.js +0 -20
- package/dist/components/atoms/RetailerOption/RetailerOption.stories.js +0 -33
- package/dist/components/atoms/RetailerOption/index.js +0 -62
- package/dist/components/atoms/RetailerOption/styles.js +0 -20
- package/dist/components/atoms/RetailersList/RetailersList.stories.js +0 -45
- package/dist/components/atoms/RetailersList/index.js +0 -46
- package/dist/components/atoms/RetailersList/styles.js +0 -18
- package/dist/components/atoms/UserCatalog/UserCatalog.stories.js +0 -73
- package/dist/components/atoms/UserCatalog/index.js +0 -101
- package/dist/components/atoms/UserCatalog/styles.js +0 -18
- package/dist/components/atoms/UserOption/UserOption.stories.js +0 -40
- package/dist/components/atoms/UserOption/index.js +0 -130
- package/dist/components/atoms/UserOption/styles.js +0 -20
- package/dist/components/atoms/UserSelector/UserSelector.stories.js +0 -40
- package/dist/components/atoms/UserSelector/index.js +0 -98
- package/dist/components/atoms/UserSelector/styles.js +0 -32
- package/dist/components/molecules/GridItem/GridItem.stories.js +0 -123
- package/dist/components/molecules/GridItem/index.js +0 -152
- package/dist/components/molecules/GridItem/styles.js +0 -20
- package/dist/components/molecules/HeaderItem/ColumnItem.js +0 -23
- package/dist/components/molecules/HeaderItem/HeaderItem.stories.js +0 -70
- package/dist/components/molecules/HeaderItem/index.js +0 -42
- package/dist/components/molecules/HeaderItem/styles.js +0 -30
- package/dist/components/molecules/RowItem/ColumnItem.js +0 -23
- package/dist/components/molecules/RowItem/RowItem.stories.js +0 -5242
- package/dist/components/molecules/RowItem/index.js +0 -58
- package/dist/components/molecules/RowItem/styles.js +0 -30
- package/dist/components/organisms/GridProducts/GridProducts.stories.js +0 -5097
- package/dist/components/organisms/GridProducts/index.js +0 -63
- package/dist/components/organisms/GridProducts/styles.js +0 -18
- package/dist/components/organisms/GridProducts/utils.js +0 -149
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { Container } from "./styles";
|
|
2
2
|
import { ScreenHeader } from "../../atoms/ScreenHeader";
|
|
3
3
|
import { TagAndInput } from "../../molecules/TagAndInput";
|
|
4
|
+
import { BoxOnboarding } from "../BoxOnboarding";
|
|
5
|
+
import { Box } from "../Box";
|
|
6
|
+
import { useEffect, useState } from "react";
|
|
4
7
|
|
|
5
8
|
export const InputGroup = ({
|
|
6
9
|
inputGroup = {},
|
|
@@ -16,6 +19,9 @@ export const InputGroup = ({
|
|
|
16
19
|
version,
|
|
17
20
|
dinamicHeight,
|
|
18
21
|
compare,
|
|
22
|
+
groupData = [],
|
|
23
|
+
setUpdatedBoxData,
|
|
24
|
+
activeRetailer
|
|
19
25
|
}) => {
|
|
20
26
|
const inputTypeValue = (type) => {
|
|
21
27
|
switch (type) {
|
|
@@ -27,101 +33,241 @@ export const InputGroup = ({
|
|
|
27
33
|
return "text";
|
|
28
34
|
}
|
|
29
35
|
};
|
|
36
|
+
const [showBox, setShowBox] = useState(false);
|
|
30
37
|
|
|
31
38
|
const isEquals = (dataInputsVal, auditInputsVal) => {
|
|
32
39
|
const result = dataInputsVal === auditInputsVal;
|
|
33
40
|
return result;
|
|
34
41
|
};
|
|
35
42
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
43
|
+
useEffect(() => {
|
|
44
|
+
if (inputGroup.groupId === "16" && activeRetailer && activeRetailer?.retailer?.id) {
|
|
45
|
+
if (activeRetailer?.retailer?.id === 68) {
|
|
46
|
+
setShowBox(true);
|
|
47
|
+
} else {
|
|
48
|
+
setShowBox(false);
|
|
42
49
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
(dataInputs[input]?.required ? "*" : "")
|
|
71
|
-
}
|
|
72
|
-
value={
|
|
73
|
-
compare ? auditInputs[input]?.value : dataInputs[input]?.value
|
|
74
|
-
}
|
|
75
|
-
inputPlaceHolder={input?.placeholder}
|
|
76
|
-
articleId={articleId}
|
|
77
|
-
isRequired={dataInputs[input]?.required}
|
|
78
|
-
updatedDatasheets={updatedDatasheets}
|
|
79
|
-
setUpdatedDatasheets={setUpdatedDatasheets}
|
|
80
|
-
maxChar={
|
|
81
|
-
dataInputs[input]?.max_chars
|
|
82
|
-
? dataInputs[input]?.max_chars
|
|
83
|
-
: 999
|
|
84
|
-
}
|
|
85
|
-
optionList={dataInputs[input]?.option_list}
|
|
86
|
-
description={dataInputs[input]?.description}
|
|
87
|
-
showTooltip={true}
|
|
88
|
-
auditClass={
|
|
89
|
-
compare &&
|
|
90
|
-
!isEquals(dataInputs[input].value, auditInputs[input].value)
|
|
91
|
-
? "audit-class"
|
|
92
|
-
: ""
|
|
93
|
-
}
|
|
50
|
+
}
|
|
51
|
+
}, [activeRetailer, inputGroup.groupId]);
|
|
52
|
+
|
|
53
|
+
// useEffect(() => {
|
|
54
|
+
// if (showBox) {
|
|
55
|
+
// // Realiza la acción que deseas cuando showBox es true
|
|
56
|
+
// console.log("showBox es true");
|
|
57
|
+
// } else {
|
|
58
|
+
// // Realiza la acción que deseas cuando showBox es false
|
|
59
|
+
// console.log("showBox es false");
|
|
60
|
+
// }
|
|
61
|
+
// }, [showBox]);
|
|
62
|
+
|
|
63
|
+
return (
|
|
64
|
+
<>
|
|
65
|
+
{inputGroup.groupId === "16" && activeRetailer?.retailer?.id === 68 && (
|
|
66
|
+
<Container
|
|
67
|
+
className={
|
|
68
|
+
activeSection === "Ficha técnica"
|
|
69
|
+
? "datasheets-layout"
|
|
70
|
+
: "descriptions-layout"
|
|
71
|
+
}
|
|
72
|
+
>
|
|
73
|
+
<Box
|
|
74
|
+
inputGroup={inputGroup}
|
|
75
|
+
dataInputs={dataInputs}
|
|
76
|
+
onChange={setUpdatedBoxData}
|
|
94
77
|
/>
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
articleId={articleId}
|
|
111
|
-
version={version}
|
|
112
|
-
dinamicHeight={dinamicHeight}
|
|
113
|
-
description={input?.description}
|
|
114
|
-
showTooltip={true}
|
|
115
|
-
auditClass={
|
|
116
|
-
compare &&
|
|
117
|
-
!isEquals(input?.value, auditInputGroup?.inputs[index]?.value)
|
|
118
|
-
? "audit-class"
|
|
119
|
-
: ""
|
|
120
|
-
}
|
|
121
|
-
/>
|
|
122
|
-
)
|
|
78
|
+
</Container>
|
|
79
|
+
)}
|
|
80
|
+
{(inputGroup.groupId !== "16") && (
|
|
81
|
+
<Container
|
|
82
|
+
className={
|
|
83
|
+
activeSection === "Ficha técnica"
|
|
84
|
+
? "datasheets-layout"
|
|
85
|
+
: "descriptions-layout"
|
|
86
|
+
}
|
|
87
|
+
>
|
|
88
|
+
{inputGroup?.dataGroup && (
|
|
89
|
+
<ScreenHeader
|
|
90
|
+
headerType={"retailer-name-header"}
|
|
91
|
+
text={`${inputGroup?.dataGroup}`}
|
|
92
|
+
/>
|
|
123
93
|
)}
|
|
124
|
-
|
|
125
|
-
|
|
94
|
+
<div className="inputs-container">
|
|
95
|
+
{inputGroup?.inputs?.map((input, index) =>
|
|
96
|
+
activeSection === "Ficha técnica" ? (
|
|
97
|
+
<>
|
|
98
|
+
<TagAndInput
|
|
99
|
+
key={
|
|
100
|
+
index +
|
|
101
|
+
"-" +
|
|
102
|
+
dataInputs[input]?.value +
|
|
103
|
+
"-" +
|
|
104
|
+
dataInputs[input]?.id +
|
|
105
|
+
"-" +
|
|
106
|
+
compare
|
|
107
|
+
}
|
|
108
|
+
//disabled={input === 40001}
|
|
109
|
+
disabled={false}
|
|
110
|
+
inputId={dataInputs[input]?.id}
|
|
111
|
+
version={version}
|
|
112
|
+
inputType={inputTypeValue(dataInputs[input]?.type)}
|
|
113
|
+
label={
|
|
114
|
+
dataInputs[input]?.name +
|
|
115
|
+
(dataInputs[input]?.required ? "*" : "")
|
|
116
|
+
}
|
|
117
|
+
value={
|
|
118
|
+
compare ? auditInputs[input]?.value : dataInputs[input]?.value
|
|
119
|
+
}
|
|
120
|
+
inputPlaceHolder={input?.placeholder}
|
|
121
|
+
articleId={articleId}
|
|
122
|
+
isRequired={dataInputs[input]?.required}
|
|
123
|
+
updatedDatasheets={updatedDatasheets}
|
|
124
|
+
setUpdatedDatasheets={setUpdatedDatasheets}
|
|
125
|
+
maxChar={
|
|
126
|
+
dataInputs[input]?.max_chars
|
|
127
|
+
? dataInputs[input]?.max_chars
|
|
128
|
+
: 999
|
|
129
|
+
}
|
|
130
|
+
optionList={dataInputs[input]?.option_list}
|
|
131
|
+
description={dataInputs[input]?.description}
|
|
132
|
+
showTooltip={true}
|
|
133
|
+
auditClass={
|
|
134
|
+
compare &&
|
|
135
|
+
!isEquals(dataInputs[input].value, auditInputs[input].value)
|
|
136
|
+
? "audit-class"
|
|
137
|
+
: ""
|
|
138
|
+
}
|
|
139
|
+
/>
|
|
140
|
+
</>
|
|
141
|
+
) : (
|
|
142
|
+
<TagAndInput
|
|
143
|
+
key={index + "-" + input?.value + "-" + compare}
|
|
144
|
+
inputId={input.id}
|
|
145
|
+
index={index}
|
|
146
|
+
inputType={"textarea"}
|
|
147
|
+
label={input?.name + (input.required ? "*" : "")}
|
|
148
|
+
value={
|
|
149
|
+
compare ? auditInputGroup?.inputs[index]?.value : input?.value
|
|
150
|
+
}
|
|
151
|
+
isRequired={input.required}
|
|
152
|
+
maxChar={input.max_chars}
|
|
153
|
+
inputPlaceHolder={input?.placeholder}
|
|
154
|
+
updatedDescriptions={updatedDescriptions}
|
|
155
|
+
setUpdatedDescriptions={setUpdatedDescriptions}
|
|
156
|
+
articleId={articleId}
|
|
157
|
+
version={version}
|
|
158
|
+
dinamicHeight={dinamicHeight}
|
|
159
|
+
description={input?.description}
|
|
160
|
+
showTooltip={true}
|
|
161
|
+
auditClass={
|
|
162
|
+
compare &&
|
|
163
|
+
!isEquals(input?.value, auditInputGroup?.inputs[index]?.value)
|
|
164
|
+
? "audit-class"
|
|
165
|
+
: ""
|
|
166
|
+
}
|
|
167
|
+
/>
|
|
168
|
+
)
|
|
169
|
+
)}
|
|
170
|
+
</div>
|
|
171
|
+
</Container>
|
|
172
|
+
)}
|
|
173
|
+
{(inputGroup.groupId === "16" && activeRetailer?.retailer?.id === 74) && (
|
|
174
|
+
<Container
|
|
175
|
+
className={
|
|
176
|
+
activeSection === "Ficha técnica"
|
|
177
|
+
? "datasheets-layout"
|
|
178
|
+
: "descriptions-layout"
|
|
179
|
+
}
|
|
180
|
+
>
|
|
181
|
+
{inputGroup?.dataGroup && (
|
|
182
|
+
<ScreenHeader
|
|
183
|
+
headerType={"retailer-name-header"}
|
|
184
|
+
text={`${inputGroup?.dataGroup}`}
|
|
185
|
+
/>
|
|
186
|
+
)}
|
|
187
|
+
<div className="inputs-container">
|
|
188
|
+
{inputGroup?.inputs?.map((input, index) =>
|
|
189
|
+
activeSection === "Ficha técnica" ? (
|
|
190
|
+
<>
|
|
191
|
+
<TagAndInput
|
|
192
|
+
key={
|
|
193
|
+
index +
|
|
194
|
+
"-" +
|
|
195
|
+
dataInputs[input]?.value +
|
|
196
|
+
"-" +
|
|
197
|
+
dataInputs[input]?.id +
|
|
198
|
+
"-" +
|
|
199
|
+
compare
|
|
200
|
+
}
|
|
201
|
+
//disabled={input === 40001}
|
|
202
|
+
disabled={false}
|
|
203
|
+
inputId={dataInputs[input]?.id}
|
|
204
|
+
version={version}
|
|
205
|
+
inputType={inputTypeValue(dataInputs[input]?.type)}
|
|
206
|
+
label={
|
|
207
|
+
dataInputs[input]?.name +
|
|
208
|
+
(dataInputs[input]?.required ? "*" : "")
|
|
209
|
+
}
|
|
210
|
+
value={
|
|
211
|
+
compare
|
|
212
|
+
? auditInputs[input]?.value
|
|
213
|
+
: dataInputs[input]?.value
|
|
214
|
+
}
|
|
215
|
+
inputPlaceHolder={input?.placeholder}
|
|
216
|
+
articleId={articleId}
|
|
217
|
+
isRequired={dataInputs[input]?.required}
|
|
218
|
+
updatedDatasheets={updatedDatasheets}
|
|
219
|
+
setUpdatedDatasheets={setUpdatedDatasheets}
|
|
220
|
+
maxChar={
|
|
221
|
+
dataInputs[input]?.max_chars
|
|
222
|
+
? dataInputs[input]?.max_chars
|
|
223
|
+
: 999
|
|
224
|
+
}
|
|
225
|
+
optionList={dataInputs[input]?.option_list}
|
|
226
|
+
description={dataInputs[input]?.description}
|
|
227
|
+
showTooltip={true}
|
|
228
|
+
inputGroup={inputGroup}
|
|
229
|
+
dataInputs={dataInputs}
|
|
230
|
+
onChange={setUpdatedBoxData}
|
|
231
|
+
auditClass={
|
|
232
|
+
compare &&
|
|
233
|
+
!isEquals(dataInputs[input].value, auditInputs[input].value)
|
|
234
|
+
? "audit-class"
|
|
235
|
+
: ""
|
|
236
|
+
}
|
|
237
|
+
/>
|
|
238
|
+
</>
|
|
239
|
+
) : (
|
|
240
|
+
<TagAndInput
|
|
241
|
+
key={index + "-" + input?.value + "-" + compare}
|
|
242
|
+
inputId={input.id}
|
|
243
|
+
index={index}
|
|
244
|
+
inputType={"textarea"}
|
|
245
|
+
label={input?.name + (input.required ? "*" : "")}
|
|
246
|
+
value={
|
|
247
|
+
compare ? auditInputGroup?.inputs[index]?.value : input?.value
|
|
248
|
+
}
|
|
249
|
+
isRequired={input.required}
|
|
250
|
+
maxChar={input.max_chars}
|
|
251
|
+
inputPlaceHolder={input?.placeholder}
|
|
252
|
+
updatedDescriptions={updatedDescriptions}
|
|
253
|
+
setUpdatedDescriptions={setUpdatedDescriptions}
|
|
254
|
+
articleId={articleId}
|
|
255
|
+
version={version}
|
|
256
|
+
dinamicHeight={dinamicHeight}
|
|
257
|
+
description={input?.description}
|
|
258
|
+
showTooltip={true}
|
|
259
|
+
auditClass={
|
|
260
|
+
compare &&
|
|
261
|
+
!isEquals(input?.value, auditInputGroup?.inputs[index]?.value)
|
|
262
|
+
? "audit-class"
|
|
263
|
+
: ""
|
|
264
|
+
}
|
|
265
|
+
/>
|
|
266
|
+
)
|
|
267
|
+
)}
|
|
268
|
+
</div>
|
|
269
|
+
</Container>
|
|
270
|
+
)}
|
|
271
|
+
</>
|
|
126
272
|
);
|
|
127
273
|
};
|
|
@@ -16,196 +16,107 @@ ProviderProductEditionDefault.args = {
|
|
|
16
16
|
Imágenes: false,
|
|
17
17
|
},
|
|
18
18
|
token:
|
|
19
|
-
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.
|
|
20
|
-
articleId:
|
|
21
|
-
category:
|
|
22
|
-
version:
|
|
19
|
+
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmNTkyN2Y4ZS1jYmY3LTQ5MjItOWUwOS1lNjllYzBiMjczMWEiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImY1OTI3ZjhlLWNiZjctNDkyMi05ZTA5LWU2OWVjMGIyNzMxYSIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiIyM2Q1NTlmYi1jMzIwLTRhMjItYjJmNy1lOThhYTFhZGEyNmYiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY4MzkyNjgyMSwibmFtZSI6IklzbWFlbCBMb3BleiIsInBob25lX251bWJlciI6Iis1MjMxMTEzNjYzMzYiLCJleHAiOjE2ODM5MzA0MjEsImlhdCI6MTY4MzkyNjgyMSwiZW1haWwiOiJpbG9wZXpAY29udGVudG9oLmNvbSJ9.TvCoaKoctj5mypXWMz3NyV1Vm1ToBV0vJmpVyZSQw4-ikTChkxcZ5tFYvqhk1GdvNCFttfSQIqM-14dAYYBc28YwwKP86gqOuzB1fG41rN5x1Yx3tkJq6hiVRgiBbSHWtThA9c8VnxNQbrJiaRTvvkDiM5KNTEst1oxQHL5Ct9_iKQMJMRFie7Xv0xnyS0qZ6QHK4Q2A9OHsnDkAuumALZJcE19Zh6VgSitgWrZiz3x5Text4Q-U-R48NUAzUFirAzYZzJN_fCme5pGf1AnUaZjeUjPsmrV5TBVzPEYwXO0KG8lYjL8id80D7tbGs28ZIK6B4rf3-eqI_ngmBB4CjQ",
|
|
20
|
+
articleId: 39550,
|
|
21
|
+
category: 287,
|
|
22
|
+
version: 1,
|
|
23
23
|
productSelected: {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
descriptions: null,
|
|
36
|
-
images: null,
|
|
24
|
+
id_article:39550,
|
|
25
|
+
upc:43654697,
|
|
26
|
+
name:"Campana de Cocina",
|
|
27
|
+
timestamp:"2023-08-04T22:23:40.000Z",
|
|
28
|
+
categoryName:"Ferretería|Ferretería General|Tornillos, Tuercas y Arandelas",
|
|
29
|
+
id_category:287,
|
|
30
|
+
version:1,
|
|
31
|
+
retailersAvailable:[
|
|
32
|
+
{name:"The Home Depot Golden","id":58},
|
|
33
|
+
{name:"The Home Depot Onboarding","id":68}],
|
|
34
|
+
percentage:"89"
|
|
37
35
|
},
|
|
38
|
-
services: {
|
|
39
|
-
datasheets: 1,
|
|
40
|
-
descriptions: 1,
|
|
41
|
-
images: 1,
|
|
42
|
-
},
|
|
43
|
-
article: {
|
|
44
|
-
category: "Abarrotes|Abarrotes Secos|Frutos Secos",
|
|
45
|
-
company_name: "GRUPO BRAHMA",
|
|
46
|
-
country: "México",
|
|
47
|
-
id_category: "11",
|
|
48
|
-
id_datasheet_especialist: 54,
|
|
49
|
-
id_datasheet_facilitator: 52,
|
|
50
|
-
id_description_especialist: 54,
|
|
51
|
-
id_description_facilitator: 52,
|
|
52
|
-
id_images_especialist: 55,
|
|
53
|
-
id_images_facilitator: 53,
|
|
54
|
-
id_order: 15275,
|
|
55
|
-
id_article: 39485,
|
|
56
|
-
id_auditor: 37,
|
|
57
|
-
name: "Mix de nueces",
|
|
58
|
-
timestamp: "2023-07-14T21:03:19.000Z",
|
|
59
|
-
upc: "7543453453",
|
|
60
|
-
},
|
|
61
|
-
retailers: [
|
|
62
|
-
{
|
|
63
|
-
id: 34,
|
|
64
|
-
name: "San Pablo",
|
|
65
|
-
},
|
|
66
|
-
],
|
|
67
|
-
statusByRetailer: {
|
|
68
|
-
34: {
|
|
69
|
-
datasheet: "AA",
|
|
70
|
-
description: "AA",
|
|
71
|
-
images: "AA",
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
retailersAvailable: [
|
|
75
|
-
{
|
|
76
|
-
id: 34,
|
|
77
|
-
name: "San Pablo",
|
|
78
|
-
},
|
|
79
|
-
],
|
|
80
|
-
categoryName: "Abarrotes|Abarrotes Secos|Frutos Secos",
|
|
81
|
-
upc: "7543453453",
|
|
82
|
-
id_article: 39485,
|
|
83
|
-
id_order: 15275,
|
|
84
|
-
},
|
|
85
36
|
productToEdit: {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
product:
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
services: {
|
|
104
|
-
datasheets: 1,
|
|
105
|
-
descriptions: 1,
|
|
106
|
-
images: 1,
|
|
107
|
-
},
|
|
108
|
-
article: {
|
|
109
|
-
category: "Abarrotes|Abarrotes Secos|Frutos Secos",
|
|
110
|
-
company_name: "GRUPO BRAHMA",
|
|
111
|
-
country: "México",
|
|
112
|
-
id_category: "11",
|
|
113
|
-
id_datasheet_especialist: 54,
|
|
114
|
-
id_datasheet_facilitator: 52,
|
|
115
|
-
id_description_especialist: 54,
|
|
116
|
-
id_description_facilitator: 52,
|
|
117
|
-
id_images_especialist: 55,
|
|
118
|
-
id_images_facilitator: 53,
|
|
119
|
-
id_order: 15275,
|
|
120
|
-
id_article: 39485,
|
|
121
|
-
id_auditor: 37,
|
|
122
|
-
name: "Mix de nueces",
|
|
123
|
-
timestamp: "2023-07-14T21:03:19.000Z",
|
|
124
|
-
upc: "7543453453",
|
|
125
|
-
},
|
|
126
|
-
retailers: [
|
|
127
|
-
{
|
|
128
|
-
id: 34,
|
|
129
|
-
name: "San Pablo",
|
|
130
|
-
},
|
|
131
|
-
],
|
|
132
|
-
statusByRetailer: {
|
|
133
|
-
34: {
|
|
134
|
-
datasheet: "AA",
|
|
135
|
-
description: "AA",
|
|
136
|
-
images: "AA",
|
|
137
|
-
},
|
|
138
|
-
},
|
|
139
|
-
retailersAvailable: [
|
|
140
|
-
{
|
|
141
|
-
id: 34,
|
|
142
|
-
name: "San Pablo",
|
|
143
|
-
},
|
|
37
|
+
idCategory:287,
|
|
38
|
+
ArticleId:39550,
|
|
39
|
+
product:[{
|
|
40
|
+
id_article:39550,
|
|
41
|
+
upc:43654697,
|
|
42
|
+
name:"Campana de Cocina",
|
|
43
|
+
timestamp:"2023-08-04T22:23:40.000Z",
|
|
44
|
+
categoryName:"Ferretería|Ferretería General|Tornillos, Tuercas y Arandelas",
|
|
45
|
+
id_category:287,
|
|
46
|
+
version:1,
|
|
47
|
+
retailersAvailable:[
|
|
48
|
+
{name:"The Home Depot Golden",
|
|
49
|
+
id:58,
|
|
50
|
+
percentage:100},
|
|
51
|
+
{name:"The Home Depot Onboarding",
|
|
52
|
+
id:68,
|
|
53
|
+
percentage:78}
|
|
144
54
|
],
|
|
145
|
-
|
|
146
|
-
upc: "7543453453",
|
|
147
|
-
id_article: 39485,
|
|
148
|
-
id_order: 15275,
|
|
55
|
+
percentage:"89"}]
|
|
149
56
|
},
|
|
150
|
-
},
|
|
151
57
|
location: {
|
|
152
58
|
pathname: "/EditProducts",
|
|
153
59
|
search: "",
|
|
154
60
|
hash: "",
|
|
155
61
|
state: {
|
|
62
|
+
withChat: true,
|
|
63
|
+
chatType: "product_status",
|
|
156
64
|
origin: "RequestWithContentoh",
|
|
157
65
|
},
|
|
158
66
|
key: "24vwut",
|
|
159
67
|
},
|
|
160
68
|
user: {
|
|
161
|
-
id_user:
|
|
162
|
-
name:
|
|
163
|
-
last_name:
|
|
164
|
-
email:
|
|
165
|
-
position:
|
|
166
|
-
telephone:
|
|
167
|
-
country:
|
|
168
|
-
id_company:
|
|
169
|
-
id_cognito:
|
|
170
|
-
birth_Date:
|
|
171
|
-
about_me:
|
|
172
|
-
zip_code:
|
|
173
|
-
address:
|
|
174
|
-
job:
|
|
175
|
-
id_stripe:
|
|
176
|
-
id_role:
|
|
177
|
-
active:
|
|
178
|
-
is_retailer:
|
|
179
|
-
email_notify:
|
|
180
|
-
is_user_tech:
|
|
181
|
-
membership:
|
|
182
|
-
|
|
183
|
-
start_date:
|
|
184
|
-
end_date:
|
|
185
|
-
planID:
|
|
186
|
-
plan:
|
|
187
|
-
name:
|
|
188
|
-
user_limit:
|
|
189
|
-
products_limit:
|
|
190
|
-
type:
|
|
191
|
-
|
|
192
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1693338334183",
|
|
193
|
-
},
|
|
69
|
+
id_user:191,
|
|
70
|
+
name:"Demo",
|
|
71
|
+
last_name:"Demo",
|
|
72
|
+
email:"merchants24feb@allfreemail.net",
|
|
73
|
+
position:"Test",
|
|
74
|
+
telephone:"+52123456789",
|
|
75
|
+
country:"México",
|
|
76
|
+
id_company:923,
|
|
77
|
+
id_cognito:"c3cd160c-76c2-497c-9357-5ef949307e1e",
|
|
78
|
+
birth_Date:null,
|
|
79
|
+
about_me:null,
|
|
80
|
+
zip_code:null,
|
|
81
|
+
address:null,
|
|
82
|
+
job:null,
|
|
83
|
+
id_stripe:null,
|
|
84
|
+
id_role:0,
|
|
85
|
+
active:1,
|
|
86
|
+
is_retailer:0,
|
|
87
|
+
email_notify:1,
|
|
88
|
+
is_user_tech:null,
|
|
89
|
+
membership:
|
|
90
|
+
{id:114,
|
|
91
|
+
start_date:"2023-02-24T18:14:43.000Z",
|
|
92
|
+
end_date:"2024-02-24T18:14:43.000Z",
|
|
93
|
+
planID:8,
|
|
94
|
+
plan:"prod_KtlhECVSFG2iro",
|
|
95
|
+
name:"Plan Pro",
|
|
96
|
+
user_limit:"50",
|
|
97
|
+
products_limit:"5000",
|
|
98
|
+
type:"Enterprise"},
|
|
99
|
+
src:"https://content-management-profile.s3.amazonaws.com/id-191/191.png?1697171804447"},
|
|
194
100
|
company: {
|
|
195
|
-
id_company:
|
|
196
|
-
trade_name:
|
|
197
|
-
company_name:
|
|
198
|
-
rfc:
|
|
199
|
-
adress:
|
|
200
|
-
about_company:
|
|
201
|
-
telephone:
|
|
202
|
-
web_site:
|
|
203
|
-
zip_code:
|
|
204
|
-
email:
|
|
205
|
-
social_link:
|
|
206
|
-
is_retailer:
|
|
207
|
-
financedRetailers:
|
|
208
|
-
|
|
209
|
-
|
|
101
|
+
id_company:923,
|
|
102
|
+
trade_name:"Demo",
|
|
103
|
+
company_name:"Demo",
|
|
104
|
+
rfc:"Demo",
|
|
105
|
+
adress:"Demo",
|
|
106
|
+
about_company:null,
|
|
107
|
+
telephone:null,
|
|
108
|
+
web_site:null,
|
|
109
|
+
zip_code:null,
|
|
110
|
+
email:null,
|
|
111
|
+
social_link:null,
|
|
112
|
+
is_retailer:0,
|
|
113
|
+
financedRetailers:
|
|
114
|
+
[{id:68,
|
|
115
|
+
name:"The Home Depot Onboarding",
|
|
116
|
+
country:"México",
|
|
117
|
+
id_region:1,
|
|
118
|
+
active:1,
|
|
119
|
+
flow:1}],
|
|
120
|
+
retailers:[{id:68,name:"The Home Depot Onboarding",country:"México",id_region:1,"active":1,flow:1}]},
|
|
210
121
|
showSurvey: (v) => v && alert("se muestra"),
|
|
211
122
|
};
|