contentoh-components-library 21.1.90 → 21.1.93
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/InputFormatter/index.js +4 -3
- package/dist/components/atoms/Status/styles.js +1 -1
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +44 -54
- package/dist/components/pages/ProviderProductEdition/index.js +1 -1
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +58 -84
- package/dist/components/pages/RetailerProductEdition/index.js +3 -1
- package/package.json +1 -1
- package/src/components/atoms/InputFormatter/index.js +4 -7
- package/src/components/atoms/Status/styles.js +2 -1
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +46 -58
- package/src/components/pages/ProviderProductEdition/index.js +1 -1
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +58 -96
- package/src/components/pages/RetailerProductEdition/index.js +3 -2
|
@@ -62,7 +62,8 @@ var InputFormatter = function InputFormatter(_ref) {
|
|
|
62
62
|
var maxLength = maxChar ? maxChar : 999;
|
|
63
63
|
|
|
64
64
|
var getValue = function getValue(value) {
|
|
65
|
-
|
|
65
|
+
console.log(value);
|
|
66
|
+
var temp = value.replace(/\n/gm, "<br>").replace(/\&(nbsp;|amp;)/gm, " ");
|
|
66
67
|
return temp;
|
|
67
68
|
}; //const quillRef = useRef();
|
|
68
69
|
|
|
@@ -74,7 +75,7 @@ var InputFormatter = function InputFormatter(_ref) {
|
|
|
74
75
|
};
|
|
75
76
|
|
|
76
77
|
var valueFormater = function valueFormater(value) {
|
|
77
|
-
return value.replace(/<\/p><p>/gm, "\n").replace(/<\/?br>|<\/?p>/gm, "").replace(
|
|
78
|
+
return value.replace(/<\/p><p>/gm, "\n").replace(/<\/?br>|<\/?p>/gm, "").replace(/\&(nbsp;|amp;)/gm, " ");
|
|
78
79
|
};
|
|
79
80
|
|
|
80
81
|
var _onChange = function onChange(valueInput, delta, user, h) {
|
|
@@ -82,7 +83,7 @@ var InputFormatter = function InputFormatter(_ref) {
|
|
|
82
83
|
|
|
83
84
|
try {
|
|
84
85
|
if (h.getLength() - 1 <= maxLength) {
|
|
85
|
-
var unformattedText = valueInput.replace(/<li.*?>/gm, " - ").replace(/<\/li>/gm, "\n").replace(/<\/p><p>/gm, "\n").replaceAll(/<\/?(?!\/?strong).*?>/gm, "").replace(
|
|
86
|
+
var unformattedText = valueInput.replace(/<li.*?>/gm, " - ").replace(/<\/li>/gm, "\n").replace(/<\/p><p>/gm, "\n").replaceAll(/<\/?(?!\/?strong).*?>/gm, "").replace(/\&(nbsp;|amp;)/gm, " ");
|
|
86
87
|
setInputValue(valueInput);
|
|
87
88
|
value = unformattedText;
|
|
88
89
|
} else {
|
|
@@ -15,6 +15,6 @@ var _variables = require("../../../global-files/variables");
|
|
|
15
15
|
|
|
16
16
|
var _templateObject;
|
|
17
17
|
|
|
18
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: fit-content;\n padding: 0 10px;\n height: 20px;\n background-color: ", ";\n border-radius: 3px;\n\n p {\n text-align: center;\n color: ", ";\n font-family: ", ";\n font-size: 12px;\n line-height: 20px;\n }\n\n &.status-CA,\n &.status-IE {\n background-color: ", ";\n }\n\n &.status-R,\n &.status-AS {\n background-color: ", ";\n }\n\n &.status-AA,\n &.status-AP,\n &.status-AC,\n &.status-ACA {\n background-color: ", ";\n }\n\n &.status-RA,\n &.status-RC,\n &.status-RP,\n &.status-RCA {\n background-color: ", ";\n }\n\n &.status-Dat,\n &.status-Dsc,\n &.status-Imgs {\n background-color: ", ";\n }\n\n &.status-Ex {\n background-color: ", ";\n }\n\n &.status-DDI {\n background-color: ", ";\n }\n\n &.status-GLD {\n background-color: ", ";\n }\n\n &.status-TAB {\n background-color: ", ";\n }\n\n &.status-Pt {\n background-color: ", ";\n color: ", ";\n }\n\n &.oval-form {\n border-radius: 10px;\n }\n"])), _variables.GlobalColors.s3, _variables.GlobalColors.white, _variables.FontFamily.Lato, _variables.GlobalColors.in_progress, _variables.GlobalColors.reception, _variables.GlobalColors.finished, _variables.GlobalColors.rejected_status, _variables.GlobalColors.s4, _variables.GlobalColors.exported, _variables.GlobalColors.original_purpura, _variables.GlobalColors.in_progress, _variables.GlobalColors.deep_gray, _variables.GlobalColors.s2, _variables.GlobalColors.s4);
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: fit-content;\n padding: 0 10px;\n height: 20px;\n background-color: ", ";\n border-radius: 3px;\n\n p {\n text-align: center;\n color: ", ";\n font-family: ", ";\n font-size: 12px;\n line-height: 20px;\n }\n\n &.status-CA,\n &.status-IE {\n background-color: ", ";\n }\n\n &.status-R,\n &.status-AS,\n &.status-PA {\n background-color: ", ";\n }\n\n &.status-AA,\n &.status-AP,\n &.status-AC,\n &.status-ACA {\n background-color: ", ";\n }\n\n &.status-RA,\n &.status-RC,\n &.status-RP,\n &.status-RCA {\n background-color: ", ";\n }\n\n &.status-Dat,\n &.status-Dsc,\n &.status-Imgs {\n background-color: ", ";\n }\n\n &.status-Ex {\n background-color: ", ";\n }\n\n &.status-DDI {\n background-color: ", ";\n }\n\n &.status-GLD {\n background-color: ", ";\n }\n\n &.status-TAB {\n background-color: ", ";\n }\n\n &.status-Pt {\n background-color: ", ";\n color: ", ";\n }\n\n &.oval-form {\n border-radius: 10px;\n }\n"])), _variables.GlobalColors.s3, _variables.GlobalColors.white, _variables.FontFamily.Lato, _variables.GlobalColors.in_progress, _variables.GlobalColors.reception, _variables.GlobalColors.finished, _variables.GlobalColors.rejected_status, _variables.GlobalColors.s4, _variables.GlobalColors.exported, _variables.GlobalColors.original_purpura, _variables.GlobalColors.in_progress, _variables.GlobalColors.deep_gray, _variables.GlobalColors.s2, _variables.GlobalColors.s4);
|
|
19
19
|
|
|
20
20
|
exports.Container = Container;
|
|
@@ -31,105 +31,95 @@ ProviderProductEditionDefault.args = {
|
|
|
31
31
|
"Ficha técnica": true,
|
|
32
32
|
Imágenes: true
|
|
33
33
|
},
|
|
34
|
-
token: "eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.
|
|
34
|
+
token: "eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJhYmUxODhlMi0yNWIxLTRhMTktODY3Mi0wZDRiYzExYTliZjIiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfbFN6UVo0WjdSIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImFiZTE4OGUyLTI1YjEtNGExOS04NjcyLTBkNGJjMTFhOWJmMiIsImF1ZCI6IjUyZDlza2tkY2c4cWpwODhvb2sxdXNlNm1rIiwiZXZlbnRfaWQiOiIzOTUzZWZjMy0yZjAxLTQwNDYtYmY3Mi0zYTkxZDA0MDNkNTAiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY2MDA2NDUwNCwibmFtZSI6IlJldGFpbGVyIEFjYyIsInBob25lX251bWJlciI6Iis1MjMxMTExMTExMTEiLCJleHAiOjE2NjAwNjgxMDQsImlhdCI6MTY2MDA2NDUwNCwiZW1haWwiOiJyZXRhaWxlclRoZEBBbGxGcmVlTWFpbC5uZXQifQ.Nwsu6XKRp2u5pGqqftQxkSPjD-6xv2Xovmo-tS1VRsfGByPlY0qfyqF0QFZCgncubcYtDoAmpqad7UT0_5HKE1d5nwPM-fA639uv1029YnZwbgfPE3TSAna9NLKN7b0q9DZ6VeX05cjSPtdlnOCCjpdbaQk1Qkl6sAg80tidgBaCyffqns7uYgnSg73GAYxlkRkffH90pddxSykQbj-VVkJFEuLiBSGvu2oj5iwmmZ_EVB6XYv0a5p70IZmbia-3HrQB_qZJxDXLDK4sV3asv-iJJizU0lp64pD0k5TM0q4kY3iVTlHxb7uXBHeTJS8cxPVutxbITYLFyFOTCmm3mQ",
|
|
35
35
|
articleId: 238,
|
|
36
36
|
category: 846,
|
|
37
37
|
version: 2,
|
|
38
38
|
productSelected: {
|
|
39
|
-
orderId:
|
|
39
|
+
orderId: 2446,
|
|
40
40
|
article_status: "AP",
|
|
41
|
-
datasheet_status: "
|
|
42
|
-
description_status: "
|
|
43
|
-
images_status: "
|
|
41
|
+
datasheet_status: "AP",
|
|
42
|
+
description_status: "AP",
|
|
43
|
+
images_status: "ACA",
|
|
44
44
|
prio: "none",
|
|
45
|
-
version:
|
|
45
|
+
version: 2,
|
|
46
46
|
brand: null,
|
|
47
47
|
article: {
|
|
48
|
-
category: "
|
|
49
|
-
company_name: "
|
|
50
|
-
id_company:
|
|
48
|
+
category: "Organizadores y Closets|Accesorios de Lavandería|Organizadores de Lavandería",
|
|
49
|
+
company_name: "WOMEX SA DE CV",
|
|
50
|
+
id_company: 424,
|
|
51
51
|
country: null,
|
|
52
|
-
id_category: "
|
|
53
|
-
id_article:
|
|
54
|
-
name:
|
|
55
|
-
upc: "
|
|
52
|
+
id_category: "2522",
|
|
53
|
+
id_article: 78773,
|
|
54
|
+
name: "RACK PARA ROPA DOBLE NEGRO",
|
|
55
|
+
upc: "168462"
|
|
56
56
|
},
|
|
57
57
|
retailers: [{
|
|
58
58
|
id: 58,
|
|
59
59
|
name: "The Home Depot Golden"
|
|
60
|
-
}, {
|
|
61
|
-
id: 59,
|
|
62
|
-
name: "The Home Depot Platinum"
|
|
63
60
|
}],
|
|
64
61
|
services: {
|
|
65
|
-
datasheets:
|
|
66
|
-
descriptions:
|
|
62
|
+
datasheets: 1,
|
|
63
|
+
descriptions: 1,
|
|
67
64
|
images: 1
|
|
68
65
|
},
|
|
69
66
|
statusByRetailer: {
|
|
70
|
-
|
|
71
|
-
|
|
67
|
+
58: {
|
|
68
|
+
datasheet: "AP",
|
|
69
|
+
description: "AP",
|
|
70
|
+
images: "ACA"
|
|
72
71
|
}
|
|
73
72
|
},
|
|
74
|
-
retailersWithService: ["
|
|
75
|
-
|
|
76
|
-
id_article: 28099,
|
|
73
|
+
retailersWithService: ["58"],
|
|
74
|
+
id_article: 78773,
|
|
77
75
|
retailersAvailable: [{
|
|
78
76
|
id: 58,
|
|
79
77
|
name: "The Home Depot Golden"
|
|
80
|
-
}, {
|
|
81
|
-
id: 59,
|
|
82
|
-
name: "The Home Depot Platinum"
|
|
83
78
|
}]
|
|
84
79
|
},
|
|
85
80
|
productToEdit: {
|
|
86
|
-
ArticleId:
|
|
87
|
-
idCategory: "
|
|
81
|
+
ArticleId: 78773,
|
|
82
|
+
idCategory: "2522",
|
|
88
83
|
product: {
|
|
89
|
-
orderId:
|
|
84
|
+
orderId: 2446,
|
|
90
85
|
article_status: "AP",
|
|
91
|
-
datasheet_status: "
|
|
92
|
-
description_status: "
|
|
93
|
-
images_status: "
|
|
86
|
+
datasheet_status: "AP",
|
|
87
|
+
description_status: "AP",
|
|
88
|
+
images_status: "ACA",
|
|
94
89
|
prio: "none",
|
|
95
|
-
version:
|
|
90
|
+
version: 2,
|
|
96
91
|
brand: null,
|
|
97
92
|
article: {
|
|
98
|
-
category: "
|
|
99
|
-
company_name: "
|
|
100
|
-
id_company:
|
|
93
|
+
category: "Organizadores y Closets|Accesorios de Lavandería|Organizadores de Lavandería",
|
|
94
|
+
company_name: "WOMEX SA DE CV",
|
|
95
|
+
id_company: 424,
|
|
101
96
|
country: null,
|
|
102
|
-
id_category: "
|
|
103
|
-
id_article:
|
|
104
|
-
name:
|
|
105
|
-
upc: "
|
|
97
|
+
id_category: "2522",
|
|
98
|
+
id_article: 78773,
|
|
99
|
+
name: "RACK PARA ROPA DOBLE NEGRO",
|
|
100
|
+
upc: "168462"
|
|
106
101
|
},
|
|
107
102
|
retailers: [{
|
|
108
103
|
id: 58,
|
|
109
104
|
name: "The Home Depot Golden"
|
|
110
|
-
}, {
|
|
111
|
-
id: 59,
|
|
112
|
-
name: "The Home Depot Platinum"
|
|
113
105
|
}],
|
|
114
106
|
services: {
|
|
115
|
-
datasheets:
|
|
116
|
-
descriptions:
|
|
107
|
+
datasheets: 1,
|
|
108
|
+
descriptions: 1,
|
|
117
109
|
images: 1
|
|
118
110
|
},
|
|
119
111
|
statusByRetailer: {
|
|
120
|
-
|
|
121
|
-
|
|
112
|
+
58: {
|
|
113
|
+
datasheet: "AP",
|
|
114
|
+
description: "AP",
|
|
115
|
+
images: "ACA"
|
|
122
116
|
}
|
|
123
117
|
},
|
|
124
|
-
retailersWithService: ["
|
|
125
|
-
|
|
126
|
-
id_article: 28099,
|
|
118
|
+
retailersWithService: ["58"],
|
|
119
|
+
id_article: 78773,
|
|
127
120
|
retailersAvailable: [{
|
|
128
121
|
id: 58,
|
|
129
122
|
name: "The Home Depot Golden"
|
|
130
|
-
}, {
|
|
131
|
-
id: 59,
|
|
132
|
-
name: "The Home Depot Platinum"
|
|
133
123
|
}]
|
|
134
124
|
}
|
|
135
125
|
},
|
|
@@ -169,7 +159,7 @@ ProviderProductEditionDefault.args = {
|
|
|
169
159
|
products_limit: "1000",
|
|
170
160
|
type: "Enterprise"
|
|
171
161
|
},
|
|
172
|
-
src: "https://content-management-profile-prod.s3.amazonaws.com/id-1237/1237.png?
|
|
162
|
+
src: "https://content-management-profile-prod.s3.amazonaws.com/id-1237/1237.png?1660064505178"
|
|
173
163
|
},
|
|
174
164
|
company: {
|
|
175
165
|
id_company: 817,
|
|
@@ -695,7 +695,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
695
695
|
(0, _data.fetchUsers)(token).then(function (res) {
|
|
696
696
|
return setUserGroups(res);
|
|
697
697
|
});
|
|
698
|
-
}, [product]);
|
|
698
|
+
}, [product, version]);
|
|
699
699
|
|
|
700
700
|
var loadAssignations = function loadAssignations(currentProduct) {
|
|
701
701
|
setAssig(product === null || product === void 0 ? void 0 : product.asignations);
|
|
@@ -31,85 +31,59 @@ RetailerProductEditionDefault.args = {
|
|
|
31
31
|
"Ficha técnica": false,
|
|
32
32
|
Imágenes: false
|
|
33
33
|
},
|
|
34
|
-
token: "
|
|
34
|
+
token: "eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiIyM2EzZjQ5Ni00ZTM4LTRlMTItOWJmNS03ZjkwYjc3YTJmMzUiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfbFN6UVo0WjdSIiwiY29nbml0bzp1c2VybmFtZSI6IjIzYTNmNDk2LTRlMzgtNGUxMi05YmY1LTdmOTBiNzdhMmYzNSIsImF1ZCI6IjUyZDlza2tkY2c4cWpwODhvb2sxdXNlNm1rIiwiZXZlbnRfaWQiOiJiYjY1ODZhYS02MzQ5LTQ2ZDgtOTk1Ni00ZGQ3NGEzY2FmODYiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY1OTY0OTAyOCwibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY1OTY1MjYyOCwiaWF0IjoxNjU5NjQ5MDI4LCJlbWFpbCI6ImxhZGlib2g3ODVAbWkxNjYuY29tIn0.OWVf7QX5rQpQAPmqhwGG14kDJhuG051MjYdv6TVMoEi5LrwmamTk8RJiDqgLTOZOgadlQoAHq27w5LnbYqDfQRqJYfj0kh0qTg2lA7xIZCCd-ljvvMtW6XGmd2_XoEhGkrjnZkniBiOaYSpNW_qTV0FiuWNh4enI7k4kl3x48QEPG9Jd7-4q4I21xVEBD1hy_TYhKQzS7H0FP487W89qOMZhOfmyVQkEQjjuzfedJTunm5SmF1AVA7Dvt2bcBMQOPrcB3c5veUtsxf7ta9yS9wGlb8vfcizczNaN5OLATNjdfHMnEUdOYiEBmnOXzcsnnz4mykearBqYEwp3-3XijA",
|
|
35
35
|
productSelected: {
|
|
36
36
|
services: {
|
|
37
|
-
datasheets:
|
|
38
|
-
descriptions:
|
|
37
|
+
datasheets: 1,
|
|
38
|
+
descriptions: 1,
|
|
39
39
|
images: 1
|
|
40
40
|
},
|
|
41
|
-
orderId:
|
|
42
|
-
status: "
|
|
43
|
-
datasheet_status: "
|
|
41
|
+
orderId: 2012,
|
|
42
|
+
status: "ACA",
|
|
43
|
+
datasheet_status: "ACA",
|
|
44
44
|
prio: "none",
|
|
45
45
|
version: 2,
|
|
46
|
-
description_status: "
|
|
47
|
-
images_status: "
|
|
46
|
+
description_status: "ACA",
|
|
47
|
+
images_status: "ACA",
|
|
48
48
|
article: {
|
|
49
|
-
id_article:
|
|
50
|
-
id_category: "
|
|
51
|
-
name: "
|
|
52
|
-
upc: "
|
|
53
|
-
timestamp: "2022-
|
|
54
|
-
id_user:
|
|
49
|
+
id_article: 77106,
|
|
50
|
+
id_category: "2898",
|
|
51
|
+
name: "INFLABLE CATRINA 2.13M HALLOWEEN",
|
|
52
|
+
upc: "163556",
|
|
53
|
+
timestamp: "2022-07-07T17:01:17.000Z",
|
|
54
|
+
id_user: 1195,
|
|
55
55
|
status: "NULL",
|
|
56
56
|
active: 1,
|
|
57
|
-
company_id:
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
57
|
+
company_id: 657,
|
|
58
|
+
SKU: null,
|
|
59
|
+
Descripcion: null,
|
|
60
|
+
Proveedor: null,
|
|
61
|
+
id_proveedor: 0,
|
|
62
|
+
company_name: "",
|
|
63
|
+
country: null,
|
|
64
|
+
id_order: 2012,
|
|
65
|
+
id_datasheet_especialist: 1248,
|
|
66
|
+
id_datasheet_facilitator: 1252,
|
|
67
|
+
id_description_especialist: 334,
|
|
68
|
+
id_description_facilitator: 1252,
|
|
69
|
+
id_images_especialist: 1250,
|
|
70
|
+
id_images_facilitator: 1286,
|
|
71
|
+
id_auditor: 1254,
|
|
68
72
|
id_recepcionist: null,
|
|
69
|
-
category: "
|
|
70
|
-
missingAttributes:
|
|
73
|
+
category: "Hallowen|Decoración e Inflables|Decoración e Inflables",
|
|
74
|
+
missingAttributes: 3,
|
|
71
75
|
missingDescriptions: 0,
|
|
72
|
-
missingImages:
|
|
76
|
+
missingImages: -2
|
|
73
77
|
},
|
|
74
78
|
retailers: [{
|
|
75
|
-
id:
|
|
76
|
-
name: "
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}, {
|
|
81
|
-
id: 5,
|
|
82
|
-
name: "Chedraui"
|
|
83
|
-
}, {
|
|
84
|
-
id: 6,
|
|
85
|
-
name: "HEB"
|
|
86
|
-
}, {
|
|
87
|
-
id: 12,
|
|
88
|
-
name: "La Comer"
|
|
89
|
-
}, {
|
|
90
|
-
id: 13,
|
|
91
|
-
name: "Soriana"
|
|
92
|
-
}, {
|
|
93
|
-
id: 17,
|
|
94
|
-
name: "Genérico"
|
|
95
|
-
}, {
|
|
96
|
-
id: 20,
|
|
97
|
-
name: "Cornershop"
|
|
98
|
-
}, {
|
|
99
|
-
id: 26,
|
|
100
|
-
name: "Mercado Libre"
|
|
101
|
-
}, {
|
|
102
|
-
id: 34,
|
|
103
|
-
name: "San Pablo"
|
|
104
|
-
}, {
|
|
105
|
-
id: 38,
|
|
106
|
-
name: "Del Sol"
|
|
107
|
-
}, {
|
|
108
|
-
id: 64,
|
|
109
|
-
name: "Cali"
|
|
79
|
+
id: 58,
|
|
80
|
+
name: "The Home Depot Golden",
|
|
81
|
+
country: "México",
|
|
82
|
+
id_region: 1,
|
|
83
|
+
active: 1
|
|
110
84
|
}],
|
|
111
|
-
country:
|
|
112
|
-
upc: "
|
|
85
|
+
country: null,
|
|
86
|
+
upc: "163556"
|
|
113
87
|
},
|
|
114
88
|
location: {
|
|
115
89
|
product: {
|
|
@@ -118,15 +92,15 @@ RetailerProductEditionDefault.args = {
|
|
|
118
92
|
}
|
|
119
93
|
},
|
|
120
94
|
user: {
|
|
121
|
-
id_user:
|
|
122
|
-
name: "
|
|
123
|
-
last_name: "
|
|
124
|
-
email: "
|
|
125
|
-
position: "
|
|
95
|
+
id_user: 425,
|
|
96
|
+
name: "Auditor QA",
|
|
97
|
+
last_name: " ",
|
|
98
|
+
email: "ladiboh785@mi166.com",
|
|
99
|
+
position: "Tester",
|
|
126
100
|
telephone: null,
|
|
127
|
-
country:
|
|
128
|
-
id_company:
|
|
129
|
-
id_cognito: "
|
|
101
|
+
country: null,
|
|
102
|
+
id_company: 254,
|
|
103
|
+
id_cognito: "23a3f496-4e38-4e12-9bf5-7f90b77a2f35",
|
|
130
104
|
birth_Date: null,
|
|
131
105
|
about_me: null,
|
|
132
106
|
zip_code: null,
|
|
@@ -136,18 +110,18 @@ RetailerProductEditionDefault.args = {
|
|
|
136
110
|
id_role: 1,
|
|
137
111
|
active: 1,
|
|
138
112
|
is_retailer: 0,
|
|
139
|
-
email_notify:
|
|
113
|
+
email_notify: null,
|
|
140
114
|
membership: {
|
|
141
|
-
id:
|
|
142
|
-
start_date: "
|
|
143
|
-
end_date: "
|
|
144
|
-
planID:
|
|
145
|
-
plan: "
|
|
146
|
-
name: "Plan
|
|
147
|
-
user_limit: "
|
|
148
|
-
products_limit: "
|
|
149
|
-
type: "
|
|
115
|
+
id: 750,
|
|
116
|
+
start_date: "2022-01-07T21:32:54.000Z",
|
|
117
|
+
end_date: "2023-01-07T21:32:54.000Z",
|
|
118
|
+
planID: 6,
|
|
119
|
+
plan: "prod_KvGd6YSTJyR3AP",
|
|
120
|
+
name: "Plan Small",
|
|
121
|
+
user_limit: "10",
|
|
122
|
+
products_limit: "1000",
|
|
123
|
+
type: "Enterprise"
|
|
150
124
|
},
|
|
151
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
125
|
+
src: "https://content-management-profile-prod.s3.amazonaws.com/id-425/425.png?1659649029658"
|
|
152
126
|
}
|
|
153
127
|
};
|
|
@@ -1092,7 +1092,9 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1092
1092
|
case 7:
|
|
1093
1093
|
case 8:
|
|
1094
1094
|
return statusArray.includes(srvActive) && (["RA", "RC"].includes(product === null || product === void 0 ? void 0 : product.status) || srv.filter(function (serv) {
|
|
1095
|
-
|
|
1095
|
+
var _serv$status;
|
|
1096
|
+
|
|
1097
|
+
return statusArray.includes((_serv$status = serv.status) === null || _serv$status === void 0 ? void 0 : _serv$status.replace(/.*\//, ""));
|
|
1096
1098
|
}).length === srv.length);
|
|
1097
1099
|
|
|
1098
1100
|
case 4:
|
package/package.json
CHANGED
|
@@ -22,10 +22,8 @@ export const InputFormatter = ({
|
|
|
22
22
|
const maxLength = maxChar ? maxChar : 999;
|
|
23
23
|
|
|
24
24
|
const getValue = (value) => {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
.replace(/&/gm, "&")
|
|
28
|
-
.replace(/ /gm, " ");
|
|
25
|
+
console.log(value);
|
|
26
|
+
let temp = value.replace(/\n/gm, "<br>").replace(/\&(nbsp;|amp;)/gm, " ");
|
|
29
27
|
return temp;
|
|
30
28
|
};
|
|
31
29
|
|
|
@@ -40,8 +38,7 @@ export const InputFormatter = ({
|
|
|
40
38
|
return value
|
|
41
39
|
.replace(/<\/p><p>/gm, "\n")
|
|
42
40
|
.replace(/<\/?br>|<\/?p>/gm, "")
|
|
43
|
-
.replace(
|
|
44
|
-
.replace(/ /gm, " ");
|
|
41
|
+
.replace(/\&(nbsp;|amp;)/gm, " ");
|
|
45
42
|
};
|
|
46
43
|
|
|
47
44
|
const onChange = (valueInput, delta, user, h) => {
|
|
@@ -53,7 +50,7 @@ export const InputFormatter = ({
|
|
|
53
50
|
.replace(/<\/li>/gm, "\n")
|
|
54
51
|
.replace(/<\/p><p>/gm, "\n")
|
|
55
52
|
.replaceAll(/<\/?(?!\/?strong).*?>/gm, "")
|
|
56
|
-
.replace(
|
|
53
|
+
.replace(/\&(nbsp;|amp;)/gm, " ");
|
|
57
54
|
setInputValue(valueInput);
|
|
58
55
|
value = unformattedText;
|
|
59
56
|
} else {
|
|
@@ -16,117 +16,105 @@ ProviderProductEditionDefault.args = {
|
|
|
16
16
|
Imágenes: true,
|
|
17
17
|
},
|
|
18
18
|
token:
|
|
19
|
-
"eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.
|
|
19
|
+
"eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJhYmUxODhlMi0yNWIxLTRhMTktODY3Mi0wZDRiYzExYTliZjIiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfbFN6UVo0WjdSIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImFiZTE4OGUyLTI1YjEtNGExOS04NjcyLTBkNGJjMTFhOWJmMiIsImF1ZCI6IjUyZDlza2tkY2c4cWpwODhvb2sxdXNlNm1rIiwiZXZlbnRfaWQiOiIzOTUzZWZjMy0yZjAxLTQwNDYtYmY3Mi0zYTkxZDA0MDNkNTAiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY2MDA2NDUwNCwibmFtZSI6IlJldGFpbGVyIEFjYyIsInBob25lX251bWJlciI6Iis1MjMxMTExMTExMTEiLCJleHAiOjE2NjAwNjgxMDQsImlhdCI6MTY2MDA2NDUwNCwiZW1haWwiOiJyZXRhaWxlclRoZEBBbGxGcmVlTWFpbC5uZXQifQ.Nwsu6XKRp2u5pGqqftQxkSPjD-6xv2Xovmo-tS1VRsfGByPlY0qfyqF0QFZCgncubcYtDoAmpqad7UT0_5HKE1d5nwPM-fA639uv1029YnZwbgfPE3TSAna9NLKN7b0q9DZ6VeX05cjSPtdlnOCCjpdbaQk1Qkl6sAg80tidgBaCyffqns7uYgnSg73GAYxlkRkffH90pddxSykQbj-VVkJFEuLiBSGvu2oj5iwmmZ_EVB6XYv0a5p70IZmbia-3HrQB_qZJxDXLDK4sV3asv-iJJizU0lp64pD0k5TM0q4kY3iVTlHxb7uXBHeTJS8cxPVutxbITYLFyFOTCmm3mQ",
|
|
20
20
|
articleId: 238,
|
|
21
21
|
category: 846,
|
|
22
22
|
version: 2,
|
|
23
23
|
productSelected: {
|
|
24
|
-
orderId:
|
|
24
|
+
orderId: 2446,
|
|
25
25
|
article_status: "AP",
|
|
26
|
-
datasheet_status: "
|
|
27
|
-
description_status: "
|
|
28
|
-
images_status: "
|
|
26
|
+
datasheet_status: "AP",
|
|
27
|
+
description_status: "AP",
|
|
28
|
+
images_status: "ACA",
|
|
29
29
|
prio: "none",
|
|
30
|
-
version:
|
|
30
|
+
version: 2,
|
|
31
31
|
brand: null,
|
|
32
32
|
article: {
|
|
33
|
-
category:
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
category:
|
|
34
|
+
"Organizadores y Closets|Accesorios de Lavandería|Organizadores de Lavandería",
|
|
35
|
+
company_name: "WOMEX SA DE CV",
|
|
36
|
+
id_company: 424,
|
|
36
37
|
country: null,
|
|
37
|
-
id_category: "
|
|
38
|
-
id_article:
|
|
39
|
-
name:
|
|
40
|
-
upc: "
|
|
38
|
+
id_category: "2522",
|
|
39
|
+
id_article: 78773,
|
|
40
|
+
name: "RACK PARA ROPA DOBLE NEGRO",
|
|
41
|
+
upc: "168462",
|
|
41
42
|
},
|
|
42
43
|
retailers: [
|
|
43
44
|
{
|
|
44
45
|
id: 58,
|
|
45
46
|
name: "The Home Depot Golden",
|
|
46
47
|
},
|
|
47
|
-
{
|
|
48
|
-
id: 59,
|
|
49
|
-
name: "The Home Depot Platinum",
|
|
50
|
-
},
|
|
51
48
|
],
|
|
52
49
|
services: {
|
|
53
|
-
datasheets:
|
|
54
|
-
descriptions:
|
|
50
|
+
datasheets: 1,
|
|
51
|
+
descriptions: 1,
|
|
55
52
|
images: 1,
|
|
56
53
|
},
|
|
57
54
|
statusByRetailer: {
|
|
58
|
-
|
|
59
|
-
|
|
55
|
+
58: {
|
|
56
|
+
datasheet: "AP",
|
|
57
|
+
description: "AP",
|
|
58
|
+
images: "ACA",
|
|
60
59
|
},
|
|
61
60
|
},
|
|
62
|
-
retailersWithService: ["
|
|
63
|
-
|
|
64
|
-
id_article: 28099,
|
|
61
|
+
retailersWithService: ["58"],
|
|
62
|
+
id_article: 78773,
|
|
65
63
|
retailersAvailable: [
|
|
66
64
|
{
|
|
67
65
|
id: 58,
|
|
68
66
|
name: "The Home Depot Golden",
|
|
69
67
|
},
|
|
70
|
-
{
|
|
71
|
-
id: 59,
|
|
72
|
-
name: "The Home Depot Platinum",
|
|
73
|
-
},
|
|
74
68
|
],
|
|
75
69
|
},
|
|
76
70
|
productToEdit: {
|
|
77
|
-
ArticleId:
|
|
78
|
-
idCategory: "
|
|
71
|
+
ArticleId: 78773,
|
|
72
|
+
idCategory: "2522",
|
|
79
73
|
product: {
|
|
80
|
-
orderId:
|
|
74
|
+
orderId: 2446,
|
|
81
75
|
article_status: "AP",
|
|
82
|
-
datasheet_status: "
|
|
83
|
-
description_status: "
|
|
84
|
-
images_status: "
|
|
76
|
+
datasheet_status: "AP",
|
|
77
|
+
description_status: "AP",
|
|
78
|
+
images_status: "ACA",
|
|
85
79
|
prio: "none",
|
|
86
|
-
version:
|
|
80
|
+
version: 2,
|
|
87
81
|
brand: null,
|
|
88
82
|
article: {
|
|
89
|
-
category:
|
|
90
|
-
|
|
91
|
-
|
|
83
|
+
category:
|
|
84
|
+
"Organizadores y Closets|Accesorios de Lavandería|Organizadores de Lavandería",
|
|
85
|
+
company_name: "WOMEX SA DE CV",
|
|
86
|
+
id_company: 424,
|
|
92
87
|
country: null,
|
|
93
|
-
id_category: "
|
|
94
|
-
id_article:
|
|
95
|
-
name:
|
|
96
|
-
upc: "
|
|
88
|
+
id_category: "2522",
|
|
89
|
+
id_article: 78773,
|
|
90
|
+
name: "RACK PARA ROPA DOBLE NEGRO",
|
|
91
|
+
upc: "168462",
|
|
97
92
|
},
|
|
98
93
|
retailers: [
|
|
99
94
|
{
|
|
100
95
|
id: 58,
|
|
101
96
|
name: "The Home Depot Golden",
|
|
102
97
|
},
|
|
103
|
-
{
|
|
104
|
-
id: 59,
|
|
105
|
-
name: "The Home Depot Platinum",
|
|
106
|
-
},
|
|
107
98
|
],
|
|
108
99
|
services: {
|
|
109
|
-
datasheets:
|
|
110
|
-
descriptions:
|
|
100
|
+
datasheets: 1,
|
|
101
|
+
descriptions: 1,
|
|
111
102
|
images: 1,
|
|
112
103
|
},
|
|
113
104
|
statusByRetailer: {
|
|
114
|
-
|
|
115
|
-
|
|
105
|
+
58: {
|
|
106
|
+
datasheet: "AP",
|
|
107
|
+
description: "AP",
|
|
108
|
+
images: "ACA",
|
|
116
109
|
},
|
|
117
110
|
},
|
|
118
|
-
retailersWithService: ["
|
|
119
|
-
|
|
120
|
-
id_article: 28099,
|
|
111
|
+
retailersWithService: ["58"],
|
|
112
|
+
id_article: 78773,
|
|
121
113
|
retailersAvailable: [
|
|
122
114
|
{
|
|
123
115
|
id: 58,
|
|
124
116
|
name: "The Home Depot Golden",
|
|
125
117
|
},
|
|
126
|
-
{
|
|
127
|
-
id: 59,
|
|
128
|
-
name: "The Home Depot Platinum",
|
|
129
|
-
},
|
|
130
118
|
],
|
|
131
119
|
},
|
|
132
120
|
},
|
|
@@ -164,7 +152,7 @@ ProviderProductEditionDefault.args = {
|
|
|
164
152
|
products_limit: "1000",
|
|
165
153
|
type: "Enterprise",
|
|
166
154
|
},
|
|
167
|
-
src: "https://content-management-profile-prod.s3.amazonaws.com/id-1237/1237.png?
|
|
155
|
+
src: "https://content-management-profile-prod.s3.amazonaws.com/id-1237/1237.png?1660064505178",
|
|
168
156
|
},
|
|
169
157
|
company: {
|
|
170
158
|
id_company: 817,
|
|
@@ -348,7 +348,7 @@ export const ProviderProductEdition = ({
|
|
|
348
348
|
loadData();
|
|
349
349
|
getCart();
|
|
350
350
|
fetchUsers(token).then((res) => setUserGroups(res));
|
|
351
|
-
}, [product]);
|
|
351
|
+
}, [product, version]);
|
|
352
352
|
|
|
353
353
|
const loadAssignations = (currentProduct) => {
|
|
354
354
|
setAssig(product?.asignations);
|
|
@@ -16,113 +16,75 @@ RetailerProductEditionDefault.args = {
|
|
|
16
16
|
Imágenes: false,
|
|
17
17
|
},
|
|
18
18
|
token:
|
|
19
|
-
"
|
|
19
|
+
"eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiIyM2EzZjQ5Ni00ZTM4LTRlMTItOWJmNS03ZjkwYjc3YTJmMzUiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfbFN6UVo0WjdSIiwiY29nbml0bzp1c2VybmFtZSI6IjIzYTNmNDk2LTRlMzgtNGUxMi05YmY1LTdmOTBiNzdhMmYzNSIsImF1ZCI6IjUyZDlza2tkY2c4cWpwODhvb2sxdXNlNm1rIiwiZXZlbnRfaWQiOiJiYjY1ODZhYS02MzQ5LTQ2ZDgtOTk1Ni00ZGQ3NGEzY2FmODYiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY1OTY0OTAyOCwibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY1OTY1MjYyOCwiaWF0IjoxNjU5NjQ5MDI4LCJlbWFpbCI6ImxhZGlib2g3ODVAbWkxNjYuY29tIn0.OWVf7QX5rQpQAPmqhwGG14kDJhuG051MjYdv6TVMoEi5LrwmamTk8RJiDqgLTOZOgadlQoAHq27w5LnbYqDfQRqJYfj0kh0qTg2lA7xIZCCd-ljvvMtW6XGmd2_XoEhGkrjnZkniBiOaYSpNW_qTV0FiuWNh4enI7k4kl3x48QEPG9Jd7-4q4I21xVEBD1hy_TYhKQzS7H0FP487W89qOMZhOfmyVQkEQjjuzfedJTunm5SmF1AVA7Dvt2bcBMQOPrcB3c5veUtsxf7ta9yS9wGlb8vfcizczNaN5OLATNjdfHMnEUdOYiEBmnOXzcsnnz4mykearBqYEwp3-3XijA",
|
|
20
20
|
productSelected: {
|
|
21
21
|
services: {
|
|
22
|
-
datasheets:
|
|
23
|
-
descriptions:
|
|
22
|
+
datasheets: 1,
|
|
23
|
+
descriptions: 1,
|
|
24
24
|
images: 1,
|
|
25
25
|
},
|
|
26
|
-
orderId:
|
|
27
|
-
status: "
|
|
28
|
-
datasheet_status: "
|
|
26
|
+
orderId: 2012,
|
|
27
|
+
status: "ACA",
|
|
28
|
+
datasheet_status: "ACA",
|
|
29
29
|
prio: "none",
|
|
30
30
|
version: 2,
|
|
31
|
-
description_status: "
|
|
32
|
-
images_status: "
|
|
31
|
+
description_status: "ACA",
|
|
32
|
+
images_status: "ACA",
|
|
33
33
|
article: {
|
|
34
|
-
id_article:
|
|
35
|
-
id_category: "
|
|
36
|
-
name: "
|
|
37
|
-
upc: "
|
|
38
|
-
timestamp: "2022-
|
|
39
|
-
id_user:
|
|
34
|
+
id_article: 77106,
|
|
35
|
+
id_category: "2898",
|
|
36
|
+
name: "INFLABLE CATRINA 2.13M HALLOWEEN",
|
|
37
|
+
upc: "163556",
|
|
38
|
+
timestamp: "2022-07-07T17:01:17.000Z",
|
|
39
|
+
id_user: 1195,
|
|
40
40
|
status: "NULL",
|
|
41
41
|
active: 1,
|
|
42
|
-
company_id:
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
42
|
+
company_id: 657,
|
|
43
|
+
SKU: null,
|
|
44
|
+
Descripcion: null,
|
|
45
|
+
Proveedor: null,
|
|
46
|
+
id_proveedor: 0,
|
|
47
|
+
company_name: "",
|
|
48
|
+
country: null,
|
|
49
|
+
id_order: 2012,
|
|
50
|
+
id_datasheet_especialist: 1248,
|
|
51
|
+
id_datasheet_facilitator: 1252,
|
|
52
|
+
id_description_especialist: 334,
|
|
53
|
+
id_description_facilitator: 1252,
|
|
54
|
+
id_images_especialist: 1250,
|
|
55
|
+
id_images_facilitator: 1286,
|
|
56
|
+
id_auditor: 1254,
|
|
53
57
|
id_recepcionist: null,
|
|
54
|
-
category:
|
|
55
|
-
|
|
56
|
-
missingAttributes: 0,
|
|
58
|
+
category: "Hallowen|Decoración e Inflables|Decoración e Inflables",
|
|
59
|
+
missingAttributes: 3,
|
|
57
60
|
missingDescriptions: 0,
|
|
58
|
-
missingImages:
|
|
61
|
+
missingImages: -2,
|
|
59
62
|
},
|
|
60
63
|
retailers: [
|
|
61
64
|
{
|
|
62
|
-
id:
|
|
63
|
-
name: "
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
name: "Walmart Super y Superama",
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
id: 5,
|
|
71
|
-
name: "Chedraui",
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
id: 6,
|
|
75
|
-
name: "HEB",
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
id: 12,
|
|
79
|
-
name: "La Comer",
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
id: 13,
|
|
83
|
-
name: "Soriana",
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
id: 17,
|
|
87
|
-
name: "Genérico",
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
id: 20,
|
|
91
|
-
name: "Cornershop",
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
id: 26,
|
|
95
|
-
name: "Mercado Libre",
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
id: 34,
|
|
99
|
-
name: "San Pablo",
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
id: 38,
|
|
103
|
-
name: "Del Sol",
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
id: 64,
|
|
107
|
-
name: "Cali",
|
|
65
|
+
id: 58,
|
|
66
|
+
name: "The Home Depot Golden",
|
|
67
|
+
country: "México",
|
|
68
|
+
id_region: 1,
|
|
69
|
+
active: 1,
|
|
108
70
|
},
|
|
109
71
|
],
|
|
110
|
-
country:
|
|
111
|
-
upc: "
|
|
72
|
+
country: null,
|
|
73
|
+
upc: "163556",
|
|
112
74
|
},
|
|
113
75
|
location: {
|
|
114
76
|
product: { articleId: 109485, versionId: 3 },
|
|
115
77
|
},
|
|
116
78
|
user: {
|
|
117
|
-
id_user:
|
|
118
|
-
name: "
|
|
119
|
-
last_name: "
|
|
120
|
-
email: "
|
|
121
|
-
position: "
|
|
79
|
+
id_user: 425,
|
|
80
|
+
name: "Auditor QA",
|
|
81
|
+
last_name: " ",
|
|
82
|
+
email: "ladiboh785@mi166.com",
|
|
83
|
+
position: "Tester",
|
|
122
84
|
telephone: null,
|
|
123
|
-
country:
|
|
124
|
-
id_company:
|
|
125
|
-
id_cognito: "
|
|
85
|
+
country: null,
|
|
86
|
+
id_company: 254,
|
|
87
|
+
id_cognito: "23a3f496-4e38-4e12-9bf5-7f90b77a2f35",
|
|
126
88
|
birth_Date: null,
|
|
127
89
|
about_me: null,
|
|
128
90
|
zip_code: null,
|
|
@@ -132,18 +94,18 @@ RetailerProductEditionDefault.args = {
|
|
|
132
94
|
id_role: 1,
|
|
133
95
|
active: 1,
|
|
134
96
|
is_retailer: 0,
|
|
135
|
-
email_notify:
|
|
97
|
+
email_notify: null,
|
|
136
98
|
membership: {
|
|
137
|
-
id:
|
|
138
|
-
start_date: "
|
|
139
|
-
end_date: "
|
|
140
|
-
planID:
|
|
141
|
-
plan: "
|
|
142
|
-
name: "Plan
|
|
143
|
-
user_limit: "
|
|
144
|
-
products_limit: "
|
|
145
|
-
type: "
|
|
99
|
+
id: 750,
|
|
100
|
+
start_date: "2022-01-07T21:32:54.000Z",
|
|
101
|
+
end_date: "2023-01-07T21:32:54.000Z",
|
|
102
|
+
planID: 6,
|
|
103
|
+
plan: "prod_KvGd6YSTJyR3AP",
|
|
104
|
+
name: "Plan Small",
|
|
105
|
+
user_limit: "10",
|
|
106
|
+
products_limit: "1000",
|
|
107
|
+
type: "Enterprise",
|
|
146
108
|
},
|
|
147
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
109
|
+
src: "https://content-management-profile-prod.s3.amazonaws.com/id-425/425.png?1659649029658",
|
|
148
110
|
},
|
|
149
111
|
};
|
|
@@ -640,8 +640,9 @@ export const RetailerProductEdition = ({
|
|
|
640
640
|
return (
|
|
641
641
|
statusArray.includes(srvActive) &&
|
|
642
642
|
(["RA", "RC"].includes(product?.status) ||
|
|
643
|
-
srv.filter((serv) =>
|
|
644
|
-
|
|
643
|
+
srv.filter((serv) =>
|
|
644
|
+
statusArray.includes(serv.status?.replace(/.*\//, ""))
|
|
645
|
+
).length === srv.length)
|
|
645
646
|
);
|
|
646
647
|
case 4:
|
|
647
648
|
case 5:
|