contentoh-components-library 21.0.28 → 21.0.31
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 +18 -3
- package/.env.production +16 -1
- package/CHANGELOG.md +31 -33
- package/dist/assets/images/generalButton/downloadIcon.svg +3 -0
- package/dist/assets/images/modalsSVGs/attributesSent.svg +208 -0
- package/dist/assets/images/modalsSVGs/descriptionSent.svg +237 -0
- package/dist/assets/images/modalsSVGs/providerSent.svg +445 -0
- package/dist/assets/images/modalsSVGs/uploadingImages.svg +148 -0
- package/dist/components/atoms/AsignationOption/index.js +9 -5
- package/dist/components/atoms/AsignationOption/styles.js +1 -1
- package/dist/components/{molecules/SignInLogin/SignInLogin.stories.js → atoms/CharCounter/CharCounter.stories.js} +10 -7
- package/dist/components/atoms/CharCounter/index.js +22 -0
- package/dist/components/{molecules/ApproveRejetPanel → atoms/CharCounter}/styles.js +3 -1
- package/dist/components/atoms/CheckBox/index.js +4 -2
- package/dist/components/atoms/Commentary/Commentary.stories.js +1 -0
- package/dist/components/atoms/Commentary/index.js +23 -0
- package/dist/components/atoms/{VerticalSideMenuMainPage → Commentary}/styles.js +6 -1
- package/dist/components/atoms/GeneralButton/index.js +5 -0
- package/dist/components/atoms/GeneralButton/styles.js +4 -2
- package/dist/components/atoms/GeneralInput/index.js +73 -24
- package/dist/components/atoms/GeneralInput/styles.js +7 -1
- package/dist/components/atoms/GenericModal/index.js +4 -2
- package/dist/components/atoms/GenericModal/styles.js +1 -1
- package/dist/components/atoms/Input/index.js +26 -0
- package/dist/components/atoms/Input/style.js +26 -0
- package/dist/components/{organisms/ChangePassword/ChangePassword.stories.js → atoms/InputFormatter/Wysiwyg.stories.js} +9 -7
- package/dist/components/atoms/InputFormatter/index.js +185 -0
- package/dist/components/atoms/InputFormatter/styles.js +33 -0
- package/dist/components/atoms/LabelToInput/index.js +53 -0
- package/dist/components/atoms/LabelToInput/style.js +22 -0
- package/dist/components/atoms/Loading/index.js +1 -2
- package/dist/components/atoms/Loading/styles.js +8 -4
- package/dist/components/atoms/Percent/Percent.stories.js +39 -0
- package/dist/components/atoms/Percent/index.js +39 -0
- package/dist/components/atoms/Percent/styles.js +20 -0
- package/dist/components/atoms/PriorityFlag/index.js +1 -1
- package/dist/components/atoms/ProductImage/styles.js +1 -1
- package/dist/components/atoms/ProgressBar/index.js +2 -2
- package/dist/components/atoms/ProgressBar/styles.js +3 -5
- package/dist/components/atoms/ScreenHeader/index.js +1 -1
- package/dist/components/atoms/ScreenHeader/styles.js +1 -1
- package/dist/components/atoms/Select/index.js +39 -0
- package/dist/components/atoms/Select/style.js +32 -0
- package/dist/components/atoms/StatusTag/index.js +37 -2
- package/dist/components/atoms/StatusTag/styles.js +1 -1
- package/dist/components/atoms/ValidationPanel/index.js +4 -3
- package/dist/components/molecules/AvatarAndValidation/index.js +17 -7
- package/dist/components/molecules/AvatarAndValidation/styles.js +1 -1
- package/dist/components/molecules/CarouselImagesLogin/index.js +42 -40
- package/dist/components/molecules/FeaturesBar/index.js +1 -1
- package/dist/components/molecules/GalleryElement/index.js +80 -21
- package/dist/components/molecules/GalleryElement/styles.js +1 -1
- package/dist/components/molecules/GalleryHeader/index.js +28 -6
- package/dist/components/molecules/GalleryHeader/styles.js +1 -1
- package/dist/components/molecules/ImageSelector/index.js +2 -4
- package/dist/components/molecules/ProductNameHeader/index.js +1 -2
- package/dist/components/molecules/RetailerSelector/RetailerSelector.stories.js +48 -0
- package/dist/components/molecules/RetailerSelector/index.js +74 -0
- package/dist/components/{atoms/MenuCommercialRetailers → molecules/RetailerSelector}/styles.js +1 -1
- package/dist/components/molecules/StatusAsignationInfo/index.js +46 -25
- package/dist/components/molecules/StatusAsignationInfo/styles.js +1 -1
- package/dist/components/molecules/TableHeader/index.js +12 -5
- package/dist/components/molecules/TableHeader/styles.js +1 -1
- package/dist/components/molecules/TagAndInput/index.js +26 -2
- package/dist/components/molecules/TextAndGradient/TextAndGradient.stories.js +31 -0
- package/dist/components/molecules/TextAndGradient/index.js +36 -0
- package/dist/components/molecules/TextAndGradient/styles.js +18 -0
- package/dist/components/organisms/FullProductNameHeader/index.js +32 -8
- package/dist/components/organisms/FullTabsMenu/index.js +18 -5
- package/dist/components/organisms/ImageDataTable/index.js +90 -14
- package/dist/components/organisms/InputGroup/index.js +34 -13
- package/dist/components/organisms/InputGroup/styles.js +1 -1
- package/dist/components/organisms/ProductImageModal/index.js +15 -11
- package/dist/components/organisms/ProductImageModal/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +109 -347
- package/dist/components/pages/RetailerProductEdition/index.js +1589 -59
- package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
- package/dist/global-files/data.js +212 -53
- package/dist/global-files/global-styles.css +1 -0
- package/dist/global-files/variables.js +1 -0
- package/dist/index.js +30 -238
- package/package.json +12 -10
- package/src/assets/images/generalButton/downloadIcon.svg +3 -0
- package/src/assets/images/modalsSVGs/attributesSent.svg +208 -0
- package/src/assets/images/modalsSVGs/descriptionSent.svg +237 -0
- package/src/assets/images/modalsSVGs/providerSent.svg +445 -0
- package/src/assets/images/modalsSVGs/uploadingImages.svg +148 -0
- package/src/components/atoms/AsignationOption/index.js +7 -5
- package/src/components/atoms/AsignationOption/styles.js +9 -1
- package/src/components/atoms/CharCounter/CharCounter.stories.js +11 -0
- package/src/components/atoms/CharCounter/index.js +13 -0
- package/src/components/atoms/CharCounter/styles.js +10 -0
- package/src/components/atoms/CheckBox/index.js +8 -2
- package/src/components/atoms/Commentary/Commentary.stories.js +0 -0
- package/src/components/atoms/Commentary/index.js +9 -0
- package/src/components/atoms/Commentary/styles.js +16 -0
- package/src/components/atoms/GeneralButton/index.js +9 -2
- package/src/components/atoms/GeneralButton/styles.js +23 -0
- package/src/components/atoms/GeneralInput/index.js +71 -21
- package/src/components/atoms/GeneralInput/styles.js +11 -1
- package/src/components/atoms/GenericModal/index.js +2 -2
- package/src/components/atoms/GenericModal/styles.js +10 -2
- package/src/components/atoms/Input/index.js +15 -0
- package/src/components/atoms/Input/style.js +31 -0
- package/src/components/atoms/InputFormatter/Wysiwyg.stories.js +12 -0
- package/src/components/atoms/InputFormatter/index.js +141 -0
- package/src/components/atoms/InputFormatter/styles.js +40 -0
- package/src/components/atoms/LabelToInput/index.js +26 -0
- package/src/components/atoms/LabelToInput/style.js +41 -0
- package/src/components/atoms/Loading/index.js +4 -5
- package/src/components/atoms/Loading/styles.js +43 -43
- package/src/components/atoms/PriorityFlag/index.js +1 -1
- package/src/components/atoms/ProductImage/styles.js +1 -1
- package/src/components/atoms/ProgressBar/index.js +2 -2
- package/src/components/atoms/ProgressBar/styles.js +54 -3
- package/src/components/atoms/ScreenHeader/index.js +7 -3
- package/src/components/atoms/ScreenHeader/styles.js +9 -2
- package/src/components/atoms/Select/index.js +35 -0
- package/src/components/atoms/Select/style.js +76 -0
- package/src/components/atoms/StatusTag/index.js +30 -2
- package/src/components/atoms/StatusTag/styles.js +15 -3
- package/src/components/atoms/ValidationPanel/index.js +3 -3
- package/src/components/molecules/AvatarAndValidation/index.js +24 -6
- package/src/components/molecules/AvatarAndValidation/styles.js +1 -1
- package/src/components/molecules/CarouselImagesLogin/index.js +37 -34
- package/src/components/molecules/FeaturesBar/index.js +10 -7
- package/src/components/molecules/GalleryElement/index.js +75 -36
- package/src/components/molecules/GalleryElement/styles.js +38 -11
- package/src/components/molecules/GalleryHeader/index.js +14 -8
- package/src/components/molecules/GalleryHeader/styles.js +16 -0
- package/src/components/molecules/ImageSelector/index.js +2 -3
- package/src/components/molecules/ProductNameHeader/index.js +1 -2
- package/src/components/molecules/RetailerSelector/RetailerSelector.stories.js +35 -0
- package/src/components/molecules/RetailerSelector/index.js +63 -0
- package/src/components/molecules/RetailerSelector/styles.js +18 -0
- package/src/components/molecules/StatusAsignationInfo/index.js +62 -38
- package/src/components/molecules/StatusAsignationInfo/styles.js +12 -2
- package/src/components/molecules/TableHeader/index.js +16 -3
- package/src/components/molecules/TableHeader/styles.js +5 -0
- package/src/components/molecules/TagAndInput/index.js +24 -0
- package/src/components/organisms/FullProductNameHeader/index.js +28 -7
- package/src/components/organisms/FullTabsMenu/index.js +15 -3
- package/src/components/organisms/ImageDataTable/index.js +89 -11
- package/src/components/organisms/InputGroup/index.js +46 -11
- package/src/components/organisms/InputGroup/styles.js +3 -0
- package/src/components/organisms/ProductImageModal/index.js +20 -12
- package/src/components/organisms/ProductImageModal/styles.js +3 -0
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +117 -343
- package/src/components/pages/RetailerProductEdition/index.js +1225 -46
- package/src/components/pages/RetailerProductEdition/styles.js +67 -4
- package/src/global-files/data.js +156 -57
- package/src/global-files/global-styles.css +1 -0
- package/src/global-files/variables.js +1 -0
- package/src/index.js +1 -17
- package/dist/assets/images/carouselImagesLogin/login2.svg +0 -117
- package/dist/assets/images/carouselImagesLogin/login3.svg +0 -147
- package/dist/assets/images/carouselImagesLogin/loginImage.svg +0 -301
- package/dist/components/atoms/ListCommercialRetailers/ListCommercialRetailers.stories.js +0 -36
- package/dist/components/atoms/ListCommercialRetailers/index.js +0 -64
- package/dist/components/atoms/ListCommercialRetailers/styles.js +0 -20
- package/dist/components/atoms/Loading/Loading.stories.js +0 -28
- package/dist/components/atoms/MenuCommercialRetailers/MenuCommercialRetailers.stories.js +0 -37
- package/dist/components/atoms/MenuCommercialRetailers/index.js +0 -25
- package/dist/components/atoms/MenuProductImage/MenuProductImage.stories.js +0 -28
- package/dist/components/atoms/MenuProductImage/index.js +0 -88
- package/dist/components/atoms/MenuProductImage/styles.js +0 -20
- package/dist/components/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +0 -22
- package/dist/components/atoms/VerticalSideMenuMainPage/index.js +0 -49
- package/dist/components/molecules/ApproveRejetPanel/ApproveRejetPanel.stories.js +0 -25
- package/dist/components/molecules/ApproveRejetPanel/index.js +0 -49
- package/dist/components/molecules/EmailResetPasswordLogin/EmailResetPasswordLogin.stories.js +0 -28
- package/dist/components/molecules/EmailResetPasswordLogin/index.js +0 -159
- package/dist/components/molecules/EmailResetPasswordLogin/styles.js +0 -20
- package/dist/components/molecules/RegistrationFirstStep/RegistrationFirstStep.stories.js +0 -28
- package/dist/components/molecules/RegistrationFirstStep/index.js +0 -371
- package/dist/components/molecules/RegistrationFirstStep/styles.js +0 -20
- package/dist/components/molecules/RegistrationSecondStep/RegistrationSecondStep.stories.js +0 -28
- package/dist/components/molecules/RegistrationSecondStep/index.js +0 -156
- package/dist/components/molecules/RegistrationSecondStep/styles.js +0 -20
- package/dist/components/molecules/RegistrationThirdStep/RegistrationThirdStep.stories.js +0 -28
- package/dist/components/molecules/RegistrationThirdStep/index.js +0 -161
- package/dist/components/molecules/RegistrationThirdStep/styles.js +0 -20
- package/dist/components/molecules/SignInLogin/index.js +0 -292
- package/dist/components/molecules/SignInLogin/styles.js +0 -20
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/VerificationCodeResetPasswordLogin.stories.js +0 -28
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/index.js +0 -104
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/styles.js +0 -20
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/utils.js +0 -69
- package/dist/components/organisms/ChangePassword/index.js +0 -113
- package/dist/components/organisms/ChangePassword/styles.js +0 -18
- package/src/components/atoms/Loading/Loading.stories.js +0 -10
- package/src/components/molecules/EmailResetPasswordLogin/EmailResetPasswordLogin.stories.js +0 -11
- package/src/components/molecules/EmailResetPasswordLogin/index.js +0 -87
- package/src/components/molecules/EmailResetPasswordLogin/styles.js +0 -23
- package/src/components/molecules/RegistrationFirstStep/RegistrationFirstStep.stories.js +0 -11
- package/src/components/molecules/RegistrationFirstStep/index.js +0 -259
- package/src/components/molecules/RegistrationFirstStep/styles.js +0 -81
- package/src/components/molecules/RegistrationSecondStep/RegistrationSecondStep.stories.js +0 -11
- package/src/components/molecules/RegistrationSecondStep/index.js +0 -97
- package/src/components/molecules/RegistrationSecondStep/styles.js +0 -59
- package/src/components/molecules/RegistrationThirdStep/RegistrationThirdStep.stories.js +0 -11
- package/src/components/molecules/RegistrationThirdStep/index.js +0 -109
- package/src/components/molecules/RegistrationThirdStep/styles.js +0 -44
- package/src/components/molecules/SignInLogin/SignInLogin.stories.js +0 -11
- package/src/components/molecules/SignInLogin/index.js +0 -205
- package/src/components/molecules/SignInLogin/styles.js +0 -78
- package/src/components/molecules/VerificationCodeResetPasswordLogin/VerificationCodeResetPasswordLogin.stories.js +0 -11
- package/src/components/molecules/VerificationCodeResetPasswordLogin/index.js +0 -78
- package/src/components/molecules/VerificationCodeResetPasswordLogin/styles.js +0 -49
- package/src/components/molecules/VerificationCodeResetPasswordLogin/utils.js +0 -56
- package/src/components/organisms/ChangePassword/ChangePassword.stories.js +0 -11
- package/src/components/organisms/ChangePassword/index.js +0 -63
- package/src/components/organisms/ChangePassword/styles.js +0 -16
|
@@ -20,7 +20,14 @@ var InputGroup = function InputGroup(_ref) {
|
|
|
20
20
|
inputGroup = _ref$inputGroup === void 0 ? {} : _ref$inputGroup,
|
|
21
21
|
activeSection = _ref.activeSection,
|
|
22
22
|
_ref$dataInputs = _ref.dataInputs,
|
|
23
|
-
dataInputs = _ref$dataInputs === void 0 ? {} : _ref$dataInputs
|
|
23
|
+
dataInputs = _ref$dataInputs === void 0 ? {} : _ref$dataInputs,
|
|
24
|
+
updatedDescriptions = _ref.updatedDescriptions,
|
|
25
|
+
setUpdatedDescriptions = _ref.setUpdatedDescriptions,
|
|
26
|
+
updatedDatasheets = _ref.updatedDatasheets,
|
|
27
|
+
setUpdatedDatasheets = _ref.setUpdatedDatasheets,
|
|
28
|
+
articleId = _ref.articleId,
|
|
29
|
+
version = _ref.version,
|
|
30
|
+
dinamicHeight = _ref.dinamicHeight;
|
|
24
31
|
|
|
25
32
|
var inputTypeValue = function inputTypeValue(type) {
|
|
26
33
|
switch (type) {
|
|
@@ -37,27 +44,41 @@ var InputGroup = function InputGroup(_ref) {
|
|
|
37
44
|
|
|
38
45
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
39
46
|
className: activeSection === "Ficha técnica" ? "datasheets-layout" : "descriptions-layout",
|
|
40
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
47
|
+
children: [(inputGroup === null || inputGroup === void 0 ? void 0 : inputGroup.dataGroup) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
41
48
|
headerType: "retailer-name-header",
|
|
42
49
|
text: inputGroup === null || inputGroup === void 0 ? void 0 : inputGroup.dataGroup
|
|
43
50
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
44
51
|
className: "inputs-container",
|
|
45
52
|
children: inputGroup === null || inputGroup === void 0 ? void 0 : (_inputGroup$inputs = inputGroup.inputs) === null || _inputGroup$inputs === void 0 ? void 0 : _inputGroup$inputs.map(function (input, index) {
|
|
46
|
-
var _dataInputs$input, _dataInputs$input2, _dataInputs$input3, _dataInputs$input4;
|
|
53
|
+
var _dataInputs$input, _dataInputs$input2, _dataInputs$input3, _dataInputs$input4, _dataInputs$input5, _dataInputs$input6, _dataInputs$input7, _dataInputs$input8, _dataInputs$input9, _dataInputs$input10;
|
|
47
54
|
|
|
48
55
|
return activeSection === "Ficha técnica" ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
49
|
-
inputId:
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
+
inputId: (_dataInputs$input3 = dataInputs[input]) === null || _dataInputs$input3 === void 0 ? void 0 : _dataInputs$input3.id,
|
|
57
|
+
version: version,
|
|
58
|
+
inputType: inputTypeValue((_dataInputs$input4 = dataInputs[input]) === null || _dataInputs$input4 === void 0 ? void 0 : _dataInputs$input4.type),
|
|
59
|
+
label: ((_dataInputs$input5 = dataInputs[input]) === null || _dataInputs$input5 === void 0 ? void 0 : _dataInputs$input5.name) + ((_dataInputs$input6 = dataInputs[input]) !== null && _dataInputs$input6 !== void 0 && _dataInputs$input6.required ? "*" : ""),
|
|
60
|
+
value: (_dataInputs$input7 = dataInputs[input]) === null || _dataInputs$input7 === void 0 ? void 0 : _dataInputs$input7.value,
|
|
61
|
+
inputPlaceHolder: input === null || input === void 0 ? void 0 : input.placeholder,
|
|
62
|
+
articleId: articleId,
|
|
63
|
+
isRequired: (_dataInputs$input8 = dataInputs[input]) === null || _dataInputs$input8 === void 0 ? void 0 : _dataInputs$input8.required,
|
|
64
|
+
updatedDatasheets: updatedDatasheets,
|
|
65
|
+
setUpdatedDatasheets: setUpdatedDatasheets,
|
|
66
|
+
maxChar: (_dataInputs$input9 = dataInputs[input]) !== null && _dataInputs$input9 !== void 0 && _dataInputs$input9.max_chars ? (_dataInputs$input10 = dataInputs[input]) === null || _dataInputs$input10 === void 0 ? void 0 : _dataInputs$input10.max_chars : 999
|
|
67
|
+
}, index + "-" + ((_dataInputs$input = dataInputs[input]) === null || _dataInputs$input === void 0 ? void 0 : _dataInputs$input.value) + "-" + ((_dataInputs$input2 = dataInputs[input]) === null || _dataInputs$input2 === void 0 ? void 0 : _dataInputs$input2.id)) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
68
|
+
inputId: input.id,
|
|
69
|
+
index: index,
|
|
56
70
|
inputType: "textarea",
|
|
57
|
-
label: input === null || input === void 0 ? void 0 : input.name,
|
|
71
|
+
label: (input === null || input === void 0 ? void 0 : input.name) + (input.required ? "*" : ""),
|
|
58
72
|
value: input === null || input === void 0 ? void 0 : input.value,
|
|
59
|
-
|
|
60
|
-
|
|
73
|
+
isRequired: input.required,
|
|
74
|
+
maxChar: input.max_chars,
|
|
75
|
+
inputPlaceHolder: input === null || input === void 0 ? void 0 : input.placeholder,
|
|
76
|
+
updatedDescriptions: updatedDescriptions,
|
|
77
|
+
setUpdatedDescriptions: setUpdatedDescriptions,
|
|
78
|
+
articleId: articleId,
|
|
79
|
+
version: version,
|
|
80
|
+
dinamicHeight: dinamicHeight
|
|
81
|
+
}, index + "-" + (input === null || input === void 0 ? void 0 : input.value));
|
|
61
82
|
})
|
|
62
83
|
})]
|
|
63
84
|
});
|
|
@@ -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 border: 1px solid ", ";\n border-radius: 6px;\n padding: 10px;\n width: 100%;\n\n .retailer-name-header {\n & + * {\n margin-top: 10px;\n }\n }\n &.datasheets-layout {\n padding-right: 0;\n\n .inputs-container {\n display: flex;\n flex-wrap: wrap;\n\n .input-container {\n flex: 1 1 20%;\n margin-right: 10px;\n min-width: 227px;\n }\n }\n }\n\n & + * {\n margin-top: 15px;\n }\n"])), _variables.GlobalColors.s2);
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n border: 1px solid ", ";\n border-radius: 6px;\n padding: 10px;\n width: 100%;\n\n .retailer-name-header {\n & + * {\n margin-top: 10px;\n }\n }\n &.datasheets-layout {\n padding-right: 0;\n\n .inputs-container {\n display: flex;\n flex-wrap: wrap;\n\n .input-container {\n flex: 1 1 20%;\n margin-right: 10px;\n min-width: 227px;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n }\n }\n }\n\n & + * {\n margin-top: 15px;\n }\n"])), _variables.GlobalColors.s2);
|
|
19
19
|
|
|
20
20
|
exports.Container = Container;
|
|
@@ -23,18 +23,20 @@ var _ValidationPanel = require("../../atoms/ValidationPanel");
|
|
|
23
23
|
|
|
24
24
|
var _GeneralButton = require("../../atoms/GeneralButton");
|
|
25
25
|
|
|
26
|
-
var _data = require("../../../global-files/data");
|
|
27
|
-
|
|
28
26
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
29
27
|
|
|
30
28
|
var ProductImageModal = function ProductImageModal(_ref) {
|
|
29
|
+
var _images$values$active, _images$values$active2, _images$values$active3;
|
|
30
|
+
|
|
31
31
|
var _ref$images = _ref.images,
|
|
32
32
|
images = _ref$images === void 0 ? [] : _ref$images,
|
|
33
33
|
headerInfo = _ref.headerInfo,
|
|
34
34
|
validation = _ref.validation,
|
|
35
|
-
setShowModal = _ref.setShowModal
|
|
35
|
+
setShowModal = _ref.setShowModal,
|
|
36
|
+
sendToFacilitator = _ref.sendToFacilitator,
|
|
37
|
+
approveRejectButtons = _ref.approveRejectButtons;
|
|
36
38
|
|
|
37
|
-
var _useState = (0, _react.useState)(
|
|
39
|
+
var _useState = (0, _react.useState)(0),
|
|
38
40
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
39
41
|
activeImage = _useState2[0],
|
|
40
42
|
setActiveImage = _useState2[1];
|
|
@@ -67,8 +69,8 @@ var ProductImageModal = function ProductImageModal(_ref) {
|
|
|
67
69
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
68
70
|
className: "modal-image-container",
|
|
69
71
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ProductImage.ProductImage, {
|
|
70
|
-
img: activeImage.
|
|
71
|
-
altText:
|
|
72
|
+
img: "https://" + process.env.REACT_APP_IMAGES_BUCKET + ".s3.amazonaws.com/" + (images === null || images === void 0 ? void 0 : (_images$values$active = images.values[activeImage]) === null || _images$values$active === void 0 ? void 0 : _images$values$active.srcDB),
|
|
73
|
+
altText: images === null || images === void 0 ? void 0 : (_images$values$active2 = images.values[activeImage]) === null || _images$values$active2 === void 0 ? void 0 : _images$values$active2.name,
|
|
72
74
|
imageType: "expanded-modal-image"
|
|
73
75
|
})
|
|
74
76
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
@@ -77,7 +79,7 @@ var ProductImageModal = function ProductImageModal(_ref) {
|
|
|
77
79
|
className: "validation-and-table-container",
|
|
78
80
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
79
81
|
className: "validation-panel",
|
|
80
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
82
|
+
children: [approveRejectButtons("images") && /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
81
83
|
buttonType: "circular-button ".concat(buttonType),
|
|
82
84
|
onClick: function onClick() {
|
|
83
85
|
return setShowValidationPanel(true);
|
|
@@ -90,13 +92,15 @@ var ProductImageModal = function ProductImageModal(_ref) {
|
|
|
90
92
|
}), showValidationPanel && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ValidationPanel.ValidationPanel, {
|
|
91
93
|
id: "validation-panel",
|
|
92
94
|
setOptionClicked: setButtonType,
|
|
93
|
-
setShowValidationPanel: setShowValidationPanel
|
|
95
|
+
setShowValidationPanel: setShowValidationPanel,
|
|
96
|
+
sendToFacilitator: sendToFacilitator
|
|
94
97
|
})]
|
|
95
98
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ImageDataTable.ImageDataTable, {
|
|
96
|
-
imageData: activeImage.data,
|
|
99
|
+
imageData: images === null || images === void 0 ? void 0 : (_images$values$active3 = images.values[activeImage]) === null || _images$values$active3 === void 0 ? void 0 : _images$values$active3.data,
|
|
97
100
|
headerInfo: headerInfo,
|
|
98
|
-
activeImage: activeImage,
|
|
99
|
-
darkMode: true
|
|
101
|
+
activeImage: images === null || images === void 0 ? void 0 : images.values[activeImage],
|
|
102
|
+
darkMode: true,
|
|
103
|
+
lists: images
|
|
100
104
|
})]
|
|
101
105
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ImageSelector.ImageSelector, {
|
|
102
106
|
images: images,
|
|
@@ -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 display: flex;\n justify-content: center;\n align-items: center;\n min-height: 100vh;\n width: 100%;\n overflow: auto;\n position: fixed;\n background-color: rgba(59, 59, 59, 0.53);\n backdrop-filter: blur(4px);\n\n .modal-container {\n display: flex;\n border-radius: 4px;\n overflow: hidden;\n\n .modal-data-container {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: center;\n padding: 15px;\n min-width: 375px;\n background-color: ", ";\n\n .validation-and-table-container {\n .validation-panel {\n position: relative;\n display: flex;\n justify-content: flex-end;\n align-items: center;\n .circular-button {\n & + * {\n margin-left: 10px;\n }\n }\n\n .close-button {\n border-radius: 3px;\n width: 30px;\n height: 30px;\n padding: 0;\n border: 1px solid #f0eef2;\n background-size: 30px;\n }\n\n & + * {\n margin-top: 25px;\n }\n }\n }\n }\n }\n"])), _variables.GlobalColors.deep_gray);
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: center;\n align-items: center;\n min-height: 100vh;\n width: 100%;\n overflow: auto;\n position: fixed;\n background-color: rgba(59, 59, 59, 0.53);\n backdrop-filter: blur(4px);\n left: 0;\n top: 0;\n z-index: 100;\n\n .modal-container {\n display: flex;\n border-radius: 4px;\n overflow: hidden;\n\n .modal-data-container {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: center;\n padding: 15px;\n min-width: 375px;\n background-color: ", ";\n\n .validation-and-table-container {\n .validation-panel {\n position: relative;\n display: flex;\n justify-content: flex-end;\n align-items: center;\n .circular-button {\n & + * {\n margin-left: 10px;\n }\n }\n\n .close-button {\n border-radius: 3px;\n width: 30px;\n height: 30px;\n padding: 0;\n border: 1px solid #f0eef2;\n background-size: 30px;\n }\n\n & + * {\n margin-top: 25px;\n }\n }\n }\n }\n }\n"])), _variables.GlobalColors.deep_gray);
|
|
19
19
|
|
|
20
20
|
exports.Container = Container;
|
|
@@ -26,356 +26,118 @@ var Template = function Template(args) {
|
|
|
26
26
|
var RetailerProductEditionDefault = Template.bind({});
|
|
27
27
|
exports.RetailerProductEditionDefault = RetailerProductEditionDefault;
|
|
28
28
|
RetailerProductEditionDefault.args = {
|
|
29
|
-
productData: {
|
|
30
|
-
imagesData: {
|
|
31
|
-
image: {
|
|
32
|
-
src: "https://www.thestar.com/content/dam/thestar/columnist_logos/francis_angelyn_logo2020.jpg",
|
|
33
|
-
name: "Hero.jpg"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
headerData: {
|
|
37
|
-
name: "Nombre del producto",
|
|
38
|
-
status: "P",
|
|
39
|
-
percent: 20,
|
|
40
|
-
backgroundColor: "in_progress",
|
|
41
|
-
priority: "low",
|
|
42
|
-
date: new Date().toLocaleDateString(),
|
|
43
|
-
features: [{
|
|
44
|
-
feature: "Prov",
|
|
45
|
-
value: "Unilever"
|
|
46
|
-
}, {
|
|
47
|
-
feature: "Vendor",
|
|
48
|
-
value: "1234567890"
|
|
49
|
-
}, {
|
|
50
|
-
feature: "SKU",
|
|
51
|
-
value: "1234567890"
|
|
52
|
-
}, {
|
|
53
|
-
feature: "UPC",
|
|
54
|
-
value: "1234567890"
|
|
55
|
-
}, {
|
|
56
|
-
feature: "Categoría",
|
|
57
|
-
value: "Desodorantes Caballero y Dama"
|
|
58
|
-
}],
|
|
59
|
-
validation: "null-button"
|
|
60
|
-
},
|
|
61
|
-
status: "AA",
|
|
62
|
-
image: {
|
|
63
|
-
src: "https://image.shutterstock.com/image-illustration/3d-render-generic-drug-pills-260nw-709112806.jpg"
|
|
64
|
-
},
|
|
65
|
-
services: {
|
|
66
|
-
Descripción: [{
|
|
67
|
-
inputGroup: {
|
|
68
|
-
name: "Información básica del producto",
|
|
69
|
-
inputs: [{
|
|
70
|
-
label: "Item",
|
|
71
|
-
value: "1234567890",
|
|
72
|
-
placeholder: "Ingresar valor"
|
|
73
|
-
}, {
|
|
74
|
-
label: "Item",
|
|
75
|
-
value: "1234567890",
|
|
76
|
-
placeholder: "Ingresar valor"
|
|
77
|
-
}, {
|
|
78
|
-
label: "Item",
|
|
79
|
-
value: "1234567890",
|
|
80
|
-
placeholder: "Ingresar valor"
|
|
81
|
-
}, {
|
|
82
|
-
label: "Item",
|
|
83
|
-
value: "1234567890",
|
|
84
|
-
placeholder: "Ingresar valor"
|
|
85
|
-
}, {
|
|
86
|
-
label: "Item",
|
|
87
|
-
value: "1234567890",
|
|
88
|
-
placeholder: "Ingresar valor"
|
|
89
|
-
}, {
|
|
90
|
-
label: "Item",
|
|
91
|
-
value: "1234567890",
|
|
92
|
-
placeholder: "Ingresar valor"
|
|
93
|
-
}, {
|
|
94
|
-
label: "Item",
|
|
95
|
-
value: "1234567890",
|
|
96
|
-
placeholder: "Ingresar valor"
|
|
97
|
-
}, {
|
|
98
|
-
label: "Item",
|
|
99
|
-
value: "1234567890",
|
|
100
|
-
placeholder: "Ingresar valor"
|
|
101
|
-
}]
|
|
102
|
-
}
|
|
103
|
-
}],
|
|
104
|
-
"Ficha técnica": [{
|
|
105
|
-
inputGroup: {
|
|
106
|
-
name: "Información básica del producto",
|
|
107
|
-
inputs: [{
|
|
108
|
-
label: "Item",
|
|
109
|
-
value: "1234567890",
|
|
110
|
-
placeholder: "Ingresar valor"
|
|
111
|
-
}, {
|
|
112
|
-
label: "Item",
|
|
113
|
-
value: "1234567890",
|
|
114
|
-
placeholder: "Ingresar valor"
|
|
115
|
-
}, {
|
|
116
|
-
label: "Item",
|
|
117
|
-
value: "1234567890",
|
|
118
|
-
placeholder: "Ingresar valor"
|
|
119
|
-
}, {
|
|
120
|
-
label: "Item",
|
|
121
|
-
value: "1234567890",
|
|
122
|
-
placeholder: "Ingresar valor"
|
|
123
|
-
}, {
|
|
124
|
-
label: "Item",
|
|
125
|
-
value: "1234567890",
|
|
126
|
-
placeholder: "Ingresar valor"
|
|
127
|
-
}, {
|
|
128
|
-
label: "Item",
|
|
129
|
-
value: "1234567890",
|
|
130
|
-
placeholder: "Ingresar valor"
|
|
131
|
-
}, {
|
|
132
|
-
label: "Item",
|
|
133
|
-
value: "1234567890",
|
|
134
|
-
placeholder: "Ingresar valor"
|
|
135
|
-
}, {
|
|
136
|
-
label: "Item",
|
|
137
|
-
value: "1234567890",
|
|
138
|
-
placeholder: "Ingresar valor"
|
|
139
|
-
}]
|
|
140
|
-
}
|
|
141
|
-
}, {
|
|
142
|
-
inputGroup: {
|
|
143
|
-
name: "Información básica del producto",
|
|
144
|
-
inputs: [{
|
|
145
|
-
label: "Item",
|
|
146
|
-
value: "1234567890",
|
|
147
|
-
placeholder: "Ingresar valor"
|
|
148
|
-
}, {
|
|
149
|
-
label: "Item",
|
|
150
|
-
value: "1234567890",
|
|
151
|
-
placeholder: "Ingresar valor"
|
|
152
|
-
}, {
|
|
153
|
-
label: "Item",
|
|
154
|
-
value: "1234567890",
|
|
155
|
-
placeholder: "Ingresar valor"
|
|
156
|
-
}, {
|
|
157
|
-
label: "Item",
|
|
158
|
-
value: "1234567890",
|
|
159
|
-
placeholder: "Ingresar valor"
|
|
160
|
-
}, {
|
|
161
|
-
label: "Item",
|
|
162
|
-
value: "1234567890",
|
|
163
|
-
placeholder: "Ingresar valor"
|
|
164
|
-
}, {
|
|
165
|
-
label: "Item",
|
|
166
|
-
value: "1234567890",
|
|
167
|
-
placeholder: "Ingresar valor"
|
|
168
|
-
}, {
|
|
169
|
-
label: "Item",
|
|
170
|
-
value: "1234567890",
|
|
171
|
-
placeholder: "Ingresar valor"
|
|
172
|
-
}, {
|
|
173
|
-
label: "Item",
|
|
174
|
-
value: "1234567890",
|
|
175
|
-
placeholder: "Ingresar valor"
|
|
176
|
-
}]
|
|
177
|
-
}
|
|
178
|
-
}, {
|
|
179
|
-
inputGroup: {
|
|
180
|
-
name: "Información básica del producto",
|
|
181
|
-
inputs: [{
|
|
182
|
-
label: "Item",
|
|
183
|
-
value: "1234567890",
|
|
184
|
-
placeholder: "Ingresar valor"
|
|
185
|
-
}, {
|
|
186
|
-
label: "Item",
|
|
187
|
-
value: "1234567890",
|
|
188
|
-
placeholder: "Ingresar valor"
|
|
189
|
-
}, {
|
|
190
|
-
label: "Item",
|
|
191
|
-
value: "1234567890",
|
|
192
|
-
placeholder: "Ingresar valor"
|
|
193
|
-
}, {
|
|
194
|
-
label: "Item",
|
|
195
|
-
value: "1234567890",
|
|
196
|
-
placeholder: "Ingresar valor"
|
|
197
|
-
}, {
|
|
198
|
-
label: "Item",
|
|
199
|
-
value: "1234567890",
|
|
200
|
-
placeholder: "Ingresar valor"
|
|
201
|
-
}, {
|
|
202
|
-
label: "Item",
|
|
203
|
-
value: "1234567890",
|
|
204
|
-
placeholder: "Ingresar valor"
|
|
205
|
-
}, {
|
|
206
|
-
label: "Item",
|
|
207
|
-
value: "1234567890",
|
|
208
|
-
placeholder: "Ingresar valor"
|
|
209
|
-
}, {
|
|
210
|
-
label: "Item",
|
|
211
|
-
value: "1234567890",
|
|
212
|
-
placeholder: "Ingresar valor"
|
|
213
|
-
}]
|
|
214
|
-
}
|
|
215
|
-
}, {
|
|
216
|
-
inputGroup: {
|
|
217
|
-
name: "Información básica del producto",
|
|
218
|
-
inputs: [{
|
|
219
|
-
label: "Item",
|
|
220
|
-
value: "1234567890",
|
|
221
|
-
placeholder: "Ingresar valor"
|
|
222
|
-
}, {
|
|
223
|
-
label: "Item",
|
|
224
|
-
value: "1234567890",
|
|
225
|
-
placeholder: "Ingresar valor"
|
|
226
|
-
}, {
|
|
227
|
-
label: "Item",
|
|
228
|
-
value: "1234567890",
|
|
229
|
-
placeholder: "Ingresar valor"
|
|
230
|
-
}, {
|
|
231
|
-
label: "Item",
|
|
232
|
-
value: "1234567890",
|
|
233
|
-
placeholder: "Ingresar valor"
|
|
234
|
-
}, {
|
|
235
|
-
label: "Item",
|
|
236
|
-
value: "1234567890",
|
|
237
|
-
placeholder: "Ingresar valor"
|
|
238
|
-
}, {
|
|
239
|
-
label: "Item",
|
|
240
|
-
value: "1234567890",
|
|
241
|
-
placeholder: "Ingresar valor"
|
|
242
|
-
}, {
|
|
243
|
-
label: "Item",
|
|
244
|
-
value: "1234567890",
|
|
245
|
-
placeholder: "Ingresar valor"
|
|
246
|
-
}, {
|
|
247
|
-
label: "Item",
|
|
248
|
-
value: "1234567890",
|
|
249
|
-
placeholder: "Ingresar valor"
|
|
250
|
-
}]
|
|
251
|
-
}
|
|
252
|
-
}],
|
|
253
|
-
Imágenes: [{
|
|
254
|
-
img: "https://image.shutterstock.com/image-illustration/3d-render-generic-drug-pills-260nw-709112806.jpg",
|
|
255
|
-
alt: "img",
|
|
256
|
-
name: "Hero",
|
|
257
|
-
data: [{
|
|
258
|
-
feature: "Tamaño de imagen",
|
|
259
|
-
value: "1000x10000"
|
|
260
|
-
}, {
|
|
261
|
-
feature: "Formato",
|
|
262
|
-
value: "jpg"
|
|
263
|
-
}, {
|
|
264
|
-
feature: "Resolución",
|
|
265
|
-
value: "300dpi"
|
|
266
|
-
}, {
|
|
267
|
-
feature: "Tipo de imagen",
|
|
268
|
-
value: "Tipo de imagen"
|
|
269
|
-
}, {
|
|
270
|
-
feature: "Identificador",
|
|
271
|
-
value: "F261"
|
|
272
|
-
}]
|
|
273
|
-
}, {
|
|
274
|
-
img: "https://www.muycomputer.com/wp-content/uploads/2020/12/google.png",
|
|
275
|
-
alt: "img",
|
|
276
|
-
name: "Hero2",
|
|
277
|
-
data: [{
|
|
278
|
-
feature: "Tamaño de imagen",
|
|
279
|
-
value: "1000x10000"
|
|
280
|
-
}, {
|
|
281
|
-
feature: "Formato",
|
|
282
|
-
value: "jpg"
|
|
283
|
-
}, {
|
|
284
|
-
feature: "Resolución",
|
|
285
|
-
value: "300dpi"
|
|
286
|
-
}, {
|
|
287
|
-
feature: "Tipo de imagen",
|
|
288
|
-
value: "Tipo de imagen"
|
|
289
|
-
}, {
|
|
290
|
-
feature: "Identificador",
|
|
291
|
-
value: "F261"
|
|
292
|
-
}]
|
|
293
|
-
}, {
|
|
294
|
-
img: "https://www.ionos.es/digitalguide/fileadmin/DigitalGuide/Teaser/bildergalerie-online-t.jpg",
|
|
295
|
-
alt: "img",
|
|
296
|
-
name: "Hero3",
|
|
297
|
-
data: [{
|
|
298
|
-
feature: "Tamaño de imagen",
|
|
299
|
-
value: "1000x10000"
|
|
300
|
-
}, {
|
|
301
|
-
feature: "Formato",
|
|
302
|
-
value: "jpg"
|
|
303
|
-
}, {
|
|
304
|
-
feature: "Resolución",
|
|
305
|
-
value: "300dpi"
|
|
306
|
-
}, {
|
|
307
|
-
feature: "Tipo de imagen",
|
|
308
|
-
value: "Tipo de imagen"
|
|
309
|
-
}, {
|
|
310
|
-
feature: "Identificador",
|
|
311
|
-
value: "F261"
|
|
312
|
-
}]
|
|
313
|
-
}, {
|
|
314
|
-
img: "https://i.pinimg.com/originals/d0/b9/28/d0b928df15d3a3bf1905865a8fedb257.jpg",
|
|
315
|
-
alt: "img",
|
|
316
|
-
name: "Hero4",
|
|
317
|
-
data: [{
|
|
318
|
-
feature: "Tamaño de imagen",
|
|
319
|
-
value: "1000x10000"
|
|
320
|
-
}, {
|
|
321
|
-
feature: "Formato",
|
|
322
|
-
value: "jpg"
|
|
323
|
-
}, {
|
|
324
|
-
feature: "Resolución",
|
|
325
|
-
value: "300dpi"
|
|
326
|
-
}, {
|
|
327
|
-
feature: "Tipo de imagen",
|
|
328
|
-
value: "Tipo de imagen"
|
|
329
|
-
}, {
|
|
330
|
-
feature: "Identificador",
|
|
331
|
-
value: "F261"
|
|
332
|
-
}]
|
|
333
|
-
}, {
|
|
334
|
-
img: "https://memegenerator.net/img/images/72798198.jpg",
|
|
335
|
-
alt: "img",
|
|
336
|
-
name: "Hero5",
|
|
337
|
-
data: [{
|
|
338
|
-
feature: "Tamaño de imagen",
|
|
339
|
-
value: "1000x10000"
|
|
340
|
-
}, {
|
|
341
|
-
feature: "Formato",
|
|
342
|
-
value: "jpg"
|
|
343
|
-
}, {
|
|
344
|
-
feature: "Resolución",
|
|
345
|
-
value: "300dpi"
|
|
346
|
-
}, {
|
|
347
|
-
feature: "Tipo de imagen",
|
|
348
|
-
value: "Tipo de imagen"
|
|
349
|
-
}, {
|
|
350
|
-
feature: "Identificador",
|
|
351
|
-
value: "F261"
|
|
352
|
-
}]
|
|
353
|
-
}, {
|
|
354
|
-
img: "http://www.dumpaday.com/wp-content/uploads/2016/02/funny-pictures-621.jpg",
|
|
355
|
-
alt: "img",
|
|
356
|
-
name: "Hero6",
|
|
357
|
-
data: [{
|
|
358
|
-
feature: "Tamaño de imagen",
|
|
359
|
-
value: "1000x10000"
|
|
360
|
-
}, {
|
|
361
|
-
feature: "Formato",
|
|
362
|
-
value: "jpg"
|
|
363
|
-
}, {
|
|
364
|
-
feature: "Resolución",
|
|
365
|
-
value: "300dpi"
|
|
366
|
-
}, {
|
|
367
|
-
feature: "Tipo de imagen",
|
|
368
|
-
value: "Tipo de imagen"
|
|
369
|
-
}, {
|
|
370
|
-
feature: "Identificador",
|
|
371
|
-
value: "F261"
|
|
372
|
-
}]
|
|
373
|
-
}]
|
|
374
|
-
}
|
|
375
|
-
},
|
|
376
29
|
tabsSections: {
|
|
377
30
|
Descripción: true,
|
|
378
31
|
"Ficha técnica": false,
|
|
379
32
|
Imágenes: false
|
|
33
|
+
},
|
|
34
|
+
token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJjOTRhNzMwNS05MzY1LTQ2ZmYtYTQyMy00YjRiYzNiOGIxODAiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjp0cnVlLCJjb2duaXRvOnVzZXJuYW1lIjoiYzk0YTczMDUtOTM2NS00NmZmLWE0MjMtNGI0YmMzYjhiMTgwIiwiY29nbml0bzpyb2xlcyI6WyJhcm46YXdzOmlhbTo6ODk4NjcwMjMyODA3OnJvbGVcL2NvbnRlbnRvaC1kZXYtdXMtZWFzdC0xLWxhbWJkYVJvbGUiXSwiYXVkIjoiNWFjOHRwZ3M2Z2JzcTEzZnJ2cnBpZWVwNDAiLCJldmVudF9pZCI6IjcxNWU4ZTc3LTAwMmMtNGMyNC1hNjM2LTYxNDkxYzQ0MzI2MSIsInRva2VuX3VzZSI6ImlkIiwiYXV0aF90aW1lIjoxNjUyMzA3MTUzLCJuYW1lIjoiQ29sYWJvcmFkb3IiLCJwaG9uZV9udW1iZXIiOiIrNTIxMTExIiwiZXhwIjoxNjUyMzEwNzUzLCJpYXQiOjE2NTIzMDcxNTMsImVtYWlsIjoic2FsbWVyb24uNUBob3RtYWlsLmNvbSJ9.Ov1kjVt1sWrNu-8gPhBvnS6SpCuPmOYcqBwJVIoz-YJvuyNx0lMeRflG99cpgj4SojZqgMfPMQ8gJg5263fhj9oynolP7kh08AS_uoTf6_FK2KCaY8gVF4OJnoJJaX7J12JxzmRMI-lQJftvvoPxo5KYHCf7uZSj-5C5z6yIdk59T3U7vziYiKVtJFvVpA6IEB-oIS57MSdg27kwOtYjWvkfZ5vDRfkoOBGmBBELI9uFbKQS0cmWaLSBhd8ptbXWkAprxm-nkJnH9KQKmCsCLBthqmZTsMDw3ok0RsVpEE7_x4X0Hg0756ebqDe1kLCVuTIBpPx4ySvCdlewvi9bYA",
|
|
35
|
+
articleId: 238,
|
|
36
|
+
category: 846,
|
|
37
|
+
version: 2,
|
|
38
|
+
productSelected: {
|
|
39
|
+
services: {
|
|
40
|
+
datasheets: 1,
|
|
41
|
+
descriptions: 1,
|
|
42
|
+
images: 1
|
|
43
|
+
},
|
|
44
|
+
orderId: 105,
|
|
45
|
+
status: "AF",
|
|
46
|
+
datasheet_status: "AA",
|
|
47
|
+
prio: "none",
|
|
48
|
+
version: 2,
|
|
49
|
+
description_status: "AF",
|
|
50
|
+
images_status: "AF",
|
|
51
|
+
article: {
|
|
52
|
+
id_article: 306,
|
|
53
|
+
id_category: "697",
|
|
54
|
+
name: "Shampoo anticaida",
|
|
55
|
+
upc: "234454365",
|
|
56
|
+
timestamp: "2022-03-17T17:24:57.000Z",
|
|
57
|
+
id_user: 28,
|
|
58
|
+
status: "NULL",
|
|
59
|
+
active: 1,
|
|
60
|
+
company_id: 1,
|
|
61
|
+
company_name: "COMPANY DEV",
|
|
62
|
+
country: "Colombia",
|
|
63
|
+
id_order: 105,
|
|
64
|
+
id_datasheet_especialist: 54,
|
|
65
|
+
id_datasheet_facilitator: 52,
|
|
66
|
+
id_description_especialist: 54,
|
|
67
|
+
id_description_facilitator: 52,
|
|
68
|
+
id_images_especialist: 55,
|
|
69
|
+
id_images_facilitator: 53,
|
|
70
|
+
id_auditor: 30,
|
|
71
|
+
id_recepcionist: null,
|
|
72
|
+
category: "SALUD Y BELLEZA|CUIDADO DEL CABELLO|SHAMPOOS Y ACONDICIONADORES",
|
|
73
|
+
missingAttributes: 43,
|
|
74
|
+
missingDescriptions: 3,
|
|
75
|
+
missingImages: 4
|
|
76
|
+
},
|
|
77
|
+
retailers: [{
|
|
78
|
+
id: 4,
|
|
79
|
+
name: "Walmart Super y Superama",
|
|
80
|
+
country: "México",
|
|
81
|
+
id_region: 1,
|
|
82
|
+
active: 1
|
|
83
|
+
}, {
|
|
84
|
+
id: 5,
|
|
85
|
+
name: "Chedraui",
|
|
86
|
+
country: "México",
|
|
87
|
+
id_region: 1,
|
|
88
|
+
active: 1
|
|
89
|
+
}, {
|
|
90
|
+
id: 9,
|
|
91
|
+
name: "Amazon",
|
|
92
|
+
country: "México",
|
|
93
|
+
id_region: 1,
|
|
94
|
+
active: 1
|
|
95
|
+
}, {
|
|
96
|
+
id: 12,
|
|
97
|
+
name: "La Comer",
|
|
98
|
+
country: "México",
|
|
99
|
+
id_region: 1,
|
|
100
|
+
active: 1
|
|
101
|
+
}, {
|
|
102
|
+
id: 20,
|
|
103
|
+
name: "Cornershop",
|
|
104
|
+
country: "México",
|
|
105
|
+
id_region: 1,
|
|
106
|
+
active: 1
|
|
107
|
+
}],
|
|
108
|
+
country: "Colombia",
|
|
109
|
+
upc: "234454365"
|
|
110
|
+
},
|
|
111
|
+
user: {
|
|
112
|
+
id_user: 30,
|
|
113
|
+
name: "Admin",
|
|
114
|
+
last_name: "Ulises",
|
|
115
|
+
email: "salmeron.5@hotmail.com",
|
|
116
|
+
position: "Admin",
|
|
117
|
+
telephone: null,
|
|
118
|
+
country: "México",
|
|
119
|
+
id_company: 2,
|
|
120
|
+
id_cognito: "c94a7305-9365-46ff-a423-4b4bc3b8b180",
|
|
121
|
+
birth_Date: null,
|
|
122
|
+
about_me: null,
|
|
123
|
+
zip_code: null,
|
|
124
|
+
address: null,
|
|
125
|
+
job: null,
|
|
126
|
+
id_stripe: null,
|
|
127
|
+
id_role: 6,
|
|
128
|
+
active: 1,
|
|
129
|
+
is_retailer: 0,
|
|
130
|
+
membership: {
|
|
131
|
+
id: 2,
|
|
132
|
+
start_date: "2021-11-05T02:35:12.000Z",
|
|
133
|
+
end_date: "2022-11-05T02:34:49.000Z",
|
|
134
|
+
planID: 1,
|
|
135
|
+
plan: "prod_KtkvuFFLpOdP6e",
|
|
136
|
+
name: "Plan Free",
|
|
137
|
+
user_limit: "1",
|
|
138
|
+
products_limit: "3",
|
|
139
|
+
type: "PyMES"
|
|
140
|
+
},
|
|
141
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-30/30.png?1649896700986"
|
|
380
142
|
}
|
|
381
143
|
};
|