contentoh-components-library 21.3.30 → 21.3.32
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 +3 -0
- package/.env.production +5 -2
- package/dist/assets/images/generalButton/closeIcon.svg +2 -2
- package/dist/components/atoms/ProgressBar/index.js +36 -6
- package/dist/components/atoms/ProgressBar/styles.js +11 -3
- package/dist/components/molecules/CustomSelect/CustomSelect.stories.js +21 -22
- package/dist/components/molecules/CustomSelect/SelectItem.js +10 -1
- package/dist/components/molecules/GalleryElement/index.js +1 -1
- package/dist/components/molecules/HeaderTop/index.js +15 -1
- package/dist/components/molecules/HeaderTop/styles.js +1 -1
- package/dist/components/molecules/ProductNameHeader/index.js +6 -4
- package/dist/components/molecules/StatusAsignationInfo/index.js +1 -1
- package/dist/components/organisms/FullProductNameHeader/index.js +1 -0
- package/dist/components/organisms/ProductImageModal/index.js +10 -3
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +214 -30
- package/dist/components/pages/ProviderProductEdition/index.js +86 -65
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +88 -52
- package/dist/components/pages/RetailerProductEdition/index.js +27 -18
- package/dist/components/pages/RetailerProductEdition/utils.js +1 -1
- package/dist/global-files/data.js +18 -23
- package/dist/global-files/fonts.css +6 -0
- package/dist/global-files/variables.js +2 -0
- package/dist/index.js +267 -46
- package/package.json +14 -1
- package/src/assets/images/customSelect/starIcon.svg +14 -0
- package/src/assets/images/defaultImages/Spinner.gif +0 -0
- package/src/assets/images/defaultImages/notFound.svg +124 -0
- package/src/assets/images/generalButton/closeIcon.svg +2 -2
- package/src/assets/sounds/newMessage.mp3 +0 -0
- package/src/components/atoms/ButtonFileChooser/ButtonFileChooser.stories.js +47 -0
- package/src/components/atoms/ButtonFileChooser/index.js +68 -0
- package/src/components/atoms/ButtonFileChooser/styles.js +4 -0
- package/src/components/atoms/ButtonV2/ButtonV2.stories.js +53 -0
- package/src/components/atoms/ButtonV2/index.js +85 -0
- package/src/components/atoms/ButtonV2/styles.js +217 -0
- package/src/components/atoms/CustomIcon/CustomIcon.stories.js +36 -0
- package/src/components/atoms/CustomIcon/index.js +41 -0
- package/src/components/atoms/CustomIcon/styles.js +85 -0
- package/src/components/atoms/IconFile/IconFile.stories.js +35 -0
- package/src/components/atoms/IconFile/index.js +119 -0
- package/src/components/atoms/IconFile/styles.js +67 -0
- package/src/components/atoms/Image/Image.stories.js +51 -0
- package/src/components/atoms/Image/index.js +55 -0
- package/src/components/atoms/Image/styles.js +34 -0
- package/src/components/atoms/ImageLink/ImageLink.stories.js +43 -0
- package/src/components/atoms/ImageLink/index.js +57 -0
- package/src/components/atoms/ImageLink/styles.js +30 -0
- package/src/components/atoms/ImagePreview/ImagePreview.stories.js +52 -0
- package/src/components/atoms/ImagePreview/index.js +178 -0
- package/src/components/atoms/ImagePreview/styles.js +77 -0
- package/src/components/atoms/InputText/InputText.stories.js +39 -0
- package/src/components/atoms/InputText/index.js +61 -0
- package/src/components/atoms/InputText/styles.js +89 -0
- package/src/components/atoms/NotFound/NotFound.stories.js +19 -0
- package/src/components/atoms/NotFound/index.js +52 -0
- package/src/components/atoms/NotFound/styles.js +55 -0
- package/src/components/atoms/ProgressBar/index.js +40 -5
- package/src/components/atoms/ProgressBar/styles.js +24 -0
- package/src/components/atoms/SelectItemV2/SelectItemV2.stories.js +26 -0
- package/src/components/atoms/SelectItemV2/index.js +61 -0
- package/src/components/atoms/SelectItemV2/styles.js +90 -0
- package/src/components/atoms/Tooltip/Tooltip.stories.js +51 -0
- package/src/components/atoms/Tooltip/index.js +59 -0
- package/src/components/atoms/Tooltip/styles.js +42 -0
- package/src/components/molecules/ButtonDownloadFile/DownloadFile.stories.js +54 -0
- package/src/components/molecules/ButtonDownloadFile/index.js +109 -0
- package/src/components/molecules/ButtonDownloadFile/styles.js +66 -0
- package/src/components/molecules/CustomSelect/CustomSelect.stories.js +20 -12
- package/src/components/molecules/CustomSelect/SelectItem.js +7 -0
- package/src/components/molecules/Dropdown/Dropdown.stories.js +103 -0
- package/src/components/molecules/Dropdown/index.js +150 -0
- package/src/components/molecules/Dropdown/styles.js +75 -0
- package/src/components/molecules/GalleryElement/index.js +1 -1
- package/src/components/molecules/HeaderTop/index.js +17 -0
- package/src/components/molecules/HeaderTop/styles.js +5 -2
- package/src/components/molecules/ImageTooltip/ImageTooltip.stories.js +68 -0
- package/src/components/molecules/ImageTooltip/index.js +63 -0
- package/src/components/molecules/ImageTooltip/styles.js +18 -0
- package/src/components/molecules/ProductNameHeader/index.js +7 -2
- package/src/components/molecules/SelectV2/SelectV2.stories.js +115 -0
- package/src/components/molecules/SelectV2/index.js +357 -0
- package/src/components/molecules/SelectV2/styles.js +105 -0
- package/src/components/molecules/SelectV2/test.js +60 -0
- package/src/components/molecules/SelectV2/test.stories.js +10 -0
- package/src/components/molecules/StatusAsignationInfo/index.js +11 -9
- package/src/components/organisms/Chat/Chat.stories.js +149 -0
- package/src/components/organisms/Chat/ChatLists/ChatLists.stories.js +65 -0
- package/src/components/organisms/Chat/ChatLists/Rotoplas.jpeg +0 -0
- package/src/components/organisms/Chat/ChatLists/THD.png +0 -0
- package/src/components/organisms/Chat/ChatLists/index.js +141 -0
- package/src/components/organisms/Chat/ChatLists/styles.js +162 -0
- package/src/components/organisms/Chat/ContainerItems/ContainerItems.stories.js +142 -0
- package/src/components/organisms/Chat/ContainerItems/index.js +522 -0
- package/src/components/organisms/Chat/ContainerItems/styles.js +348 -0
- package/src/components/organisms/Chat/ContentChat/ContentChat.stories.js +102 -0
- package/src/components/organisms/Chat/ContentChat/Rotoplas.jpeg +0 -0
- package/src/components/organisms/Chat/ContentChat/THD.png +0 -0
- package/src/components/organisms/Chat/ContentChat/index.js +922 -0
- package/src/components/organisms/Chat/ContentChat/styles.js +41 -0
- package/src/components/organisms/Chat/Footer/Footer.stories.js +22 -0
- package/src/components/organisms/Chat/Footer/index.js +661 -0
- package/src/components/organisms/Chat/Footer/styles.js +286 -0
- package/src/components/organisms/Chat/Header/Header.stories.js +66 -0
- package/src/components/organisms/Chat/Header/index.js +93 -0
- package/src/components/organisms/Chat/Header/styles.js +49 -0
- package/src/components/organisms/Chat/index.js +238 -0
- package/src/components/organisms/Chat/styles.js +42 -0
- package/src/components/organisms/FullProductNameHeader/index.js +1 -0
- package/src/components/organisms/Modal/Modal.stories.js +55 -0
- package/src/components/organisms/Modal/index.js +97 -0
- package/src/components/organisms/Modal/styles.js +103 -0
- package/src/components/organisms/ProductImageModal/index.js +6 -3
- package/src/components/organisms/RangeCalendar/RangeCalendar.stories.js +16 -0
- package/src/components/organisms/RangeCalendar/index.js +121 -0
- package/src/components/organisms/RangeCalendar/styles.js +883 -0
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +239 -32
- package/src/components/pages/ProviderProductEdition/index.js +87 -67
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +93 -52
- package/src/components/pages/RetailerProductEdition/index.js +23 -21
- package/src/components/pages/RetailerProductEdition/utils.js +2 -1
- package/src/global-files/data.js +18 -23
- package/src/global-files/fonts.css +6 -0
- package/src/global-files/handle_http.js +225 -0
- package/src/global-files/handle_userTech.js +7 -0
- package/src/global-files/utils.js +330 -0
- package/src/global-files/variables.js +2 -0
- package/src/index.js +17 -0
- package/src/assets/fonts/roboto/LICENSE.txt +0 -202
package/.env.development
CHANGED
|
@@ -21,8 +21,11 @@ REACT_APP_READ_REQUIRED_ORDERS=https://fc069ovhuk.execute-api.us-east-1.amazonaw
|
|
|
21
21
|
REACT_APP_CATEGORY_ENDPOINT=https://fc069ovhuk.execute-api.us-east-1.amazonaws.com/dev/categories
|
|
22
22
|
REACT_APP_READ_PROVIDERS=https://fc069ovhuk.execute-api.us-east-1.amazonaws.com/dev/providers
|
|
23
23
|
REACT_APP_PENDING_INVITATIONS=https://fc069ovhuk.execute-api.us-east-1.amazonaws.com/dev/pending-invitations
|
|
24
|
+
REACT_APP_PRODUCTS_CHAT_ENDPOINT=https://fc069ovhuk.execute-api.us-east-1.amazonaws.com/dev/products-chat
|
|
25
|
+
REACT_APP_TICKETS_CHAT_ENDPOINT=https://ocqbzaa4a2.execute-api.us-east-1.amazonaws.com/dev/ticket-chat
|
|
24
26
|
REACT_APP_GET_AUDIT=https://fc069ovhuk.execute-api.us-east-1.amazonaws.com/dev/version-manager
|
|
25
27
|
|
|
28
|
+
REACT_APP_IMAGES_ENDPOINT=https://content-management-images.s3.amazonaws.com
|
|
26
29
|
REACT_APP_IMAGES_BUCKET=content-management-images
|
|
27
30
|
REACT_APP_IMAGES_PROFILE_BUCKET=content-management-profile
|
|
28
31
|
REACT_APP_KUTS3=AKIA5CPHLQTTS22HCGHW
|
package/.env.production
CHANGED
|
@@ -21,11 +21,14 @@ REACT_APP_READ_REQUIRED_ORDERS=https://3v43slee1m.execute-api.us-east-1.amazonaw
|
|
|
21
21
|
REACT_APP_CATEGORY_ENDPOINT=https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/categories
|
|
22
22
|
REACT_APP_READ_PROVIDERS=https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/providers
|
|
23
23
|
REACT_APP_PENDING_INVITATIONS=https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/pending-invitations
|
|
24
|
+
REACT_APP_PRODUCTS_CHAT_ENDPOINT=https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/products-chat
|
|
25
|
+
REACT_APP_TICKETS_CHAT_ENDPOINT=https://0g5ugr1kzl.execute-api.us-east-1.amazonaws.com/prod/ticket-chat
|
|
24
26
|
REACT_APP_GET_AUDIT=https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/version-manager
|
|
25
27
|
|
|
28
|
+
REACT_APP_IMAGES_ENDPOINT=https://content-management-images.s3.amazonaws.com
|
|
26
29
|
REACT_APP_IMAGES_BUCKET=content-management-images-prod
|
|
27
30
|
REACT_APP_IMAGES_PROFILE_BUCKET=content-management-profile-prod
|
|
28
|
-
REACT_APP_KUTS3=
|
|
29
|
-
REACT_APP_AKUTS3=
|
|
31
|
+
REACT_APP_KUTS3=AKIA5CPHLQTTS22HCGHW
|
|
32
|
+
REACT_APP_AKUTS3=RSpwEaM0fsLEgN7BJzRyCKqyU0lNExTsPUvxyNXm
|
|
30
33
|
REACT_APP_USER_POOL_ID=us-east-1_XMZQdqkGj
|
|
31
34
|
REACT_APP_USER_POOL_WEB_CLIENT_ID=5ac8tpgs6gbsq13frvrpieep40
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
<svg width="52" height="52" viewBox="0 0 52 52" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<line x1="13.3585" y1="12.1333" x2="39.8661" y2="38.641" stroke="#E33AA9" stroke-width="
|
|
3
|
-
<path d="M39.8672 12.1333L13.8672 38.1333" stroke="#E33AA9" stroke-width="
|
|
2
|
+
<line x1="13.3585" y1="12.1333" x2="39.8661" y2="38.641" stroke="#E33AA9" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
+
<path d="M39.8672 12.1333L13.8672 38.1333" stroke="#E33AA9" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
4
|
</svg>
|
|
@@ -7,16 +7,46 @@ exports.ProgressBar = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _styles = require("./styles");
|
|
9
9
|
|
|
10
|
+
var _Tooltip = require("../Tooltip");
|
|
11
|
+
|
|
10
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
13
|
|
|
12
14
|
var ProgressBar = function ProgressBar(_ref) {
|
|
13
15
|
var percent = _ref.percent,
|
|
14
|
-
progressBarType = _ref.progressBarType
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
children: /*#__PURE__*/(0, _jsxRuntime.
|
|
18
|
-
children:
|
|
19
|
-
|
|
16
|
+
progressBarType = _ref.progressBarType,
|
|
17
|
+
percentRequired = _ref.percentRequired;
|
|
18
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
19
|
+
children: [percentRequired ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
20
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.Tooltip, {
|
|
21
|
+
componentTooltip: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
22
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
23
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("b", {
|
|
24
|
+
children: "Campos requeridos"
|
|
25
|
+
})
|
|
26
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("p", {
|
|
27
|
+
children: ["Este nuevo icono te indicar\xE1 cuando ", /*#__PURE__*/(0, _jsxRuntime.jsx)("br", {}), " completes todos los campos requeridos"]
|
|
28
|
+
})]
|
|
29
|
+
}),
|
|
30
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.ContainerIcon, {
|
|
31
|
+
className: "fondo",
|
|
32
|
+
percentageRequired: percentRequired,
|
|
33
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
34
|
+
class: "hola",
|
|
35
|
+
children: "local_police"
|
|
36
|
+
})
|
|
37
|
+
}),
|
|
38
|
+
classNameTooltip: "container-tooltip",
|
|
39
|
+
position: undefined,
|
|
40
|
+
addArrow: undefined,
|
|
41
|
+
transitionType: undefined,
|
|
42
|
+
followCursor: undefined
|
|
43
|
+
})
|
|
44
|
+
}) : "", /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
45
|
+
className: "status-".concat(progressBarType),
|
|
46
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("p", {
|
|
47
|
+
children: [percent, "%"]
|
|
48
|
+
})
|
|
49
|
+
})]
|
|
20
50
|
});
|
|
21
51
|
};
|
|
22
52
|
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.Container = void 0;
|
|
8
|
+
exports.ContainerIcon = exports.Container = void 0;
|
|
9
9
|
|
|
10
10
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
11
11
|
|
|
@@ -13,10 +13,18 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
13
13
|
|
|
14
14
|
var _variables = require("../../../global-files/variables");
|
|
15
15
|
|
|
16
|
-
var _templateObject;
|
|
16
|
+
var _templateObject, _templateObject2;
|
|
17
17
|
|
|
18
18
|
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background-color: ", ";\n width: fit-content;\n height: 27px;\n padding: 4px;\n border-radius: 15px;\n font-family: ", ";\n font-weight: 600;\n font-size: 14px;\n line-height: 19px;\n color: ", ";\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-ACA,\n &.status-AC {\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"])), _variables.GlobalColors.s3, _variables.FontFamily.AvenirNext, function (backgroundColor) {
|
|
19
19
|
return backgroundColor === "s2" || backgroundColor === "s1" ? _variables.GlobalColors.s4 : _variables.GlobalColors.white;
|
|
20
20
|
}, _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);
|
|
21
21
|
|
|
22
|
-
exports.Container = Container;
|
|
22
|
+
exports.Container = Container;
|
|
23
|
+
|
|
24
|
+
var ContainerIcon = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n cursor: pointer;\n @font-face {\n font-family: \"Material Symbols Outlined\";\n font-style: normal;\n font-weight: 100 700;\n src: url(https://fonts.gstatic.com/s/materialsymbolsoutlined/v68/kJEhBvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oFsLjBuVY.woff2)\n format(\"woff2\");\n }\n\n .hola {\n font-family: \"Material Symbols Outlined\";\n font-size: 30px;\n //line-height: 1;\n margin-top: 10px;\n }\n .hola {\n font-variation-settings: \"FILL\"\n ", ",\n \"wght\" 400, \"GRAD\" 0, \"opsz\" 48;\n color: ", ";\n }\n"])), function (props) {
|
|
25
|
+
return props.percentageRequired < 100 ? 0 : 1;
|
|
26
|
+
}, function (props) {
|
|
27
|
+
return props.percentageRequired < 100 ? "#d4d1d7" : "#e33aa9";
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
exports.ContainerIcon = ContainerIcon;
|
|
@@ -11,6 +11,8 @@ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/
|
|
|
11
11
|
|
|
12
12
|
var _index = require("./index");
|
|
13
13
|
|
|
14
|
+
var _starIcon = _interopRequireDefault(require("../../../assets/images/customSelect/starIcon.svg"));
|
|
15
|
+
|
|
14
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
17
|
|
|
16
18
|
var _default = {
|
|
@@ -26,29 +28,26 @@ var Template = function Template(args) {
|
|
|
26
28
|
var CustomSelectDefault = Template.bind({});
|
|
27
29
|
exports.CustomSelectDefault = CustomSelectDefault;
|
|
28
30
|
CustomSelectDefault.args = {
|
|
29
|
-
selectLabel: "Todos los departamentos",
|
|
31
|
+
// selectLabel: "Todos los departamentos",
|
|
30
32
|
defaultOption: "Todos los departamentos",
|
|
31
33
|
options: [{
|
|
32
|
-
id:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
id: 1,
|
|
36
|
-
value: "Espejos"
|
|
37
|
-
}, {
|
|
38
|
-
id: 2,
|
|
39
|
-
value: "Persianas"
|
|
40
|
-
}]
|
|
41
|
-
}, {
|
|
42
|
-
id: 2,
|
|
43
|
-
value: "Eléctrico"
|
|
44
|
-
}, {
|
|
45
|
-
id: 3,
|
|
46
|
-
value: "Ferretería"
|
|
47
|
-
}, {
|
|
48
|
-
id: 4,
|
|
49
|
-
value: "Herramientas"
|
|
34
|
+
id: 47,
|
|
35
|
+
name: "Enero 2023",
|
|
36
|
+
isSelected: true
|
|
50
37
|
}, {
|
|
51
|
-
id:
|
|
52
|
-
|
|
53
|
-
}]
|
|
38
|
+
id: 49,
|
|
39
|
+
name: "Mis Favoritos"
|
|
40
|
+
}],
|
|
41
|
+
onClickItem: function onClickItem(v, id) {
|
|
42
|
+
if (v) {
|
|
43
|
+
console.log("Agregar a la lista", id);
|
|
44
|
+
} else {
|
|
45
|
+
console.log("Eliminar a la lista", id);
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
icon: _starIcon.default,
|
|
49
|
+
showSearchBar: true,
|
|
50
|
+
customOptions: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
51
|
+
children: "Esto es un customOptions"
|
|
52
|
+
})
|
|
54
53
|
};
|
|
@@ -26,7 +26,8 @@ var SelecItem = function SelecItem(_ref) {
|
|
|
26
26
|
customSelectId = _ref.customSelectId,
|
|
27
27
|
setParameterArray = _ref.setParameterArray,
|
|
28
28
|
activeFilters = _ref.activeFilters,
|
|
29
|
-
setActiveFilters = _ref.setActiveFilters
|
|
29
|
+
setActiveFilters = _ref.setActiveFilters,
|
|
30
|
+
onClickItem = _ref.onClickItem;
|
|
30
31
|
|
|
31
32
|
var _useState = (0, _react.useState)(false),
|
|
32
33
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -46,6 +47,10 @@ var SelecItem = function SelecItem(_ref) {
|
|
|
46
47
|
id: "main-item-" + option.id,
|
|
47
48
|
label: option.name,
|
|
48
49
|
onChange: function onChange(e) {
|
|
50
|
+
if (onClickItem) {
|
|
51
|
+
onClickItem(e.target.checked, option.id);
|
|
52
|
+
}
|
|
53
|
+
|
|
49
54
|
var subOptions = option.subOptions;
|
|
50
55
|
var filtersCopy = (0, _objectSpread2.default)({}, activeFilters);
|
|
51
56
|
|
|
@@ -108,6 +113,10 @@ var SelecItem = function SelecItem(_ref) {
|
|
|
108
113
|
label: sub.name,
|
|
109
114
|
defaultChecked: activeFilters[option.name] && activeFilters[option.name][sub.name],
|
|
110
115
|
onChange: function onChange(e) {
|
|
116
|
+
if (onClickItem) {
|
|
117
|
+
onClickItem(e.target.checked, sub.id);
|
|
118
|
+
}
|
|
119
|
+
|
|
111
120
|
if (e.target.checked) {
|
|
112
121
|
setParameterArray(function (current) {
|
|
113
122
|
return [].concat((0, _toConsumableArray2.default)(current), [sub.id]).sort(function (a, b) {
|
|
@@ -88,7 +88,7 @@ var GalleryElement = function GalleryElement(_ref) {
|
|
|
88
88
|
}, [showValidationPanel]);
|
|
89
89
|
|
|
90
90
|
var isEquals = function isEquals(value, auditValue) {
|
|
91
|
-
return
|
|
91
|
+
return value === auditValue;
|
|
92
92
|
};
|
|
93
93
|
|
|
94
94
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
@@ -15,12 +15,17 @@ var _index2 = require("../../atoms/GeneralButton/index");
|
|
|
15
15
|
|
|
16
16
|
var _react = require("react");
|
|
17
17
|
|
|
18
|
+
var _Chat = require("../../organisms/Chat");
|
|
19
|
+
|
|
18
20
|
var _IconoAB = _interopRequireDefault(require("../../../../src/assets/images/generalButton/Icono AB.svg"));
|
|
19
21
|
|
|
20
22
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
23
|
|
|
22
24
|
var HeaderTop = function HeaderTop(_ref) {
|
|
23
25
|
var setHeaderTop = _ref.setHeaderTop,
|
|
26
|
+
withChat = _ref.withChat,
|
|
27
|
+
productSelected = _ref.productSelected,
|
|
28
|
+
token = _ref.token,
|
|
24
29
|
auditableVersion = _ref.auditableVersion,
|
|
25
30
|
setCompare = _ref.setCompare,
|
|
26
31
|
isAuditor = _ref.isAuditor;
|
|
@@ -34,7 +39,16 @@ var HeaderTop = function HeaderTop(_ref) {
|
|
|
34
39
|
text: "Edici\xF3n de producto"
|
|
35
40
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
36
41
|
className: "buttons-container",
|
|
37
|
-
children: [
|
|
42
|
+
children: [withChat && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Chat.Chat, {
|
|
43
|
+
chatType: "merchant_product",
|
|
44
|
+
chatContainerType: "popUp",
|
|
45
|
+
chatData: {
|
|
46
|
+
userToken: token,
|
|
47
|
+
id: productSelected.id_article,
|
|
48
|
+
version: productSelected.version
|
|
49
|
+
},
|
|
50
|
+
size: 18
|
|
51
|
+
}), isAuditor && auditableVersion && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Button, {
|
|
38
52
|
buttonType: "general-white-button circular-button",
|
|
39
53
|
onClick: function onClick() {
|
|
40
54
|
setCompare(function (current) {
|
|
@@ -13,6 +13,6 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
13
13
|
|
|
14
14
|
var _templateObject;
|
|
15
15
|
|
|
16
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: space-between;\n display: flex;\n
|
|
16
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: space-between;\n .buttons-top {\n display: flex;\n align-items: center;\n padding-top: 10px;\n }\n\n .buttons-container {\n display: flex;\n\n button {\n width: 30px;\n height: 30px;\n border: 1px solid #f0f0f0;\n background-size: 20px;\n padding: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n img {\n height: 15px;\n }\n\n & + * {\n margin-left: 10px;\n }\n }\n }\n"])));
|
|
17
17
|
|
|
18
18
|
exports.Container = Container;
|
|
@@ -22,16 +22,18 @@ var ProductNameHeader = function ProductNameHeader(_ref) {
|
|
|
22
22
|
statusType = _ref.statusType,
|
|
23
23
|
percent = _ref.percent,
|
|
24
24
|
priority = _ref.priority,
|
|
25
|
-
date = _ref.date
|
|
25
|
+
date = _ref.date,
|
|
26
|
+
percentRequired = _ref.percentRequired;
|
|
26
27
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
27
28
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ScreenHeader, {
|
|
28
29
|
headerType: "product-name-header",
|
|
29
30
|
text: productName
|
|
30
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Status, {
|
|
31
|
+
}), statusType && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Status, {
|
|
31
32
|
statusType: statusType
|
|
32
33
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.ProgressBar, {
|
|
33
|
-
percent:
|
|
34
|
-
progressBarType: statusType
|
|
34
|
+
percent: percentRequired,
|
|
35
|
+
progressBarType: statusType,
|
|
36
|
+
percentRequired: percentRequired
|
|
35
37
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index4.PriorityFlag, {
|
|
36
38
|
priority: priority
|
|
37
39
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ScreenHeader, {
|
|
@@ -106,7 +106,7 @@ var StatusAsignationInfo = function StatusAsignationInfo(_ref) {
|
|
|
106
106
|
slidefront: slidefront,
|
|
107
107
|
iconSize: "medium-image",
|
|
108
108
|
slidePosition: "bottom-slide"
|
|
109
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
109
|
+
}), version && /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
110
110
|
buttonType: "general circular-button version-button",
|
|
111
111
|
onClick: function onClick(e) {
|
|
112
112
|
e.stopPropagation();
|
|
@@ -59,6 +59,7 @@ var FullProductNameHeader = function FullProductNameHeader(_ref) {
|
|
|
59
59
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ProductNameHeader.ProductNameHeader, {
|
|
60
60
|
productName: (headerData === null || headerData === void 0 ? void 0 : (_headerData$article = headerData.article) === null || _headerData$article === void 0 ? void 0 : _headerData$article.name) || (headerData === null || headerData === void 0 ? void 0 : headerData.name),
|
|
61
61
|
statusType: (headerData === null || headerData === void 0 ? void 0 : headerData.version_status) || (headerData === null || headerData === void 0 ? void 0 : headerData.status) || (headerData === null || headerData === void 0 ? void 0 : headerData.article_status),
|
|
62
|
+
percentRequired: percent,
|
|
62
63
|
percent: percent === null || percent === void 0 ? void 0 : percent.toFixed(0),
|
|
63
64
|
priority: headerData === null || headerData === void 0 ? void 0 : headerData.prio,
|
|
64
65
|
date: new Date((headerData === null || headerData === void 0 ? void 0 : (_headerData$article2 = headerData.article) === null || _headerData$article2 === void 0 ? void 0 : _headerData$article2.timestamp) || (headerData === null || headerData === void 0 ? void 0 : headerData.timestamp)).toLocaleDateString()
|
|
@@ -33,7 +33,9 @@ var ProductImageModal = function ProductImageModal(_ref) {
|
|
|
33
33
|
headerInfo = _ref.headerInfo,
|
|
34
34
|
validation = _ref.validation,
|
|
35
35
|
setShowModal = _ref.setShowModal,
|
|
36
|
-
sendToFacilitator = _ref.sendToFacilitator
|
|
36
|
+
sendToFacilitator = _ref.sendToFacilitator,
|
|
37
|
+
_ref$approveRejectBut = _ref.approveRejectButtons,
|
|
38
|
+
approveRejectButtons = _ref$approveRejectBut === void 0 ? false : _ref$approveRejectBut;
|
|
37
39
|
|
|
38
40
|
var _useState = (0, _react.useState)(0),
|
|
39
41
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -78,7 +80,7 @@ var ProductImageModal = function ProductImageModal(_ref) {
|
|
|
78
80
|
className: "validation-and-table-container",
|
|
79
81
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
80
82
|
className: "validation-panel",
|
|
81
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
83
|
+
children: [approveRejectButtons && /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
82
84
|
buttonType: "circular-button ".concat(buttonType),
|
|
83
85
|
onClick: function onClick() {
|
|
84
86
|
return setShowValidationPanel(true);
|
|
@@ -92,7 +94,12 @@ var ProductImageModal = function ProductImageModal(_ref) {
|
|
|
92
94
|
id: "validation-panel",
|
|
93
95
|
setOptionClicked: setButtonType,
|
|
94
96
|
setShowValidationPanel: setShowValidationPanel,
|
|
95
|
-
|
|
97
|
+
approve: function approve() {
|
|
98
|
+
return sendToFacilitator && sendToFacilitator("A");
|
|
99
|
+
},
|
|
100
|
+
reject: function reject() {
|
|
101
|
+
return sendToFacilitator && sendToFacilitator("R");
|
|
102
|
+
}
|
|
96
103
|
})]
|
|
97
104
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ImageDataTable.ImageDataTable, {
|
|
98
105
|
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,
|
|
@@ -31,43 +31,222 @@ ProviderProductEditionDefault.args = {
|
|
|
31
31
|
"Ficha técnica": true,
|
|
32
32
|
Imágenes: true
|
|
33
33
|
},
|
|
34
|
-
token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.
|
|
34
|
+
token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmNTkyN2Y4ZS1jYmY3LTQ5MjItOWUwOS1lNjllYzBiMjczMWEiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImY1OTI3ZjhlLWNiZjctNDkyMi05ZTA5LWU2OWVjMGIyNzMxYSIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiIzZTNmZTBhOS1kY2U2LTRjYjAtYTg3MS02YzljNTBiMmRmZmQiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY3OTYxMDg4NywibmFtZSI6IklzbWFlbCBMb3BleiIsInBob25lX251bWJlciI6Iis1MjMxMTEzNjYzMzYiLCJleHAiOjE2Nzk2MTQ0ODYsImlhdCI6MTY3OTYxMDg4NywiZW1haWwiOiJpbG9wZXpAY29udGVudG9oLmNvbSJ9.HcyeyeK54av0Fnzto54OA_5FfdlUy50CuuXObgxBJswJLvMMZK13jWE06xnpmQCn5a_T20-xSLllgYDPzpEs5c40nm9sA3dJs9YWZGUOXg4SAZUqHVi_LTeCWv3dy3yjewlmGmcS-uTkuEI6GrT3559PcgYn1KTgGuPgqL9t4cb8A89-8n3o-ihhRfdSpUuYgqspurQXARjLlkESw2Z1gzFqJBd4u3BXMtusANta9G9TsBaQ9zTfMW79ksrQeiMXpKDmap_cdM7pSrykHf180GOHj0MZpWGC9U-32wpiNQ_DBeAyIWiIKCyh7mU8WHA_3Nm27lkL2LwioGCz9rHPqg",
|
|
35
35
|
articleId: 238,
|
|
36
36
|
category: 846,
|
|
37
37
|
version: 2,
|
|
38
38
|
productSelected: {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
39
|
+
orderId: 14606,
|
|
40
|
+
status: "AA",
|
|
41
|
+
datasheet_status: "AA",
|
|
42
|
+
prio: "none",
|
|
43
|
+
version: 3,
|
|
44
|
+
description_status: "AA",
|
|
45
|
+
images_status: "AA",
|
|
46
|
+
brand: "Axion",
|
|
47
|
+
retailerOrder: 0,
|
|
48
|
+
missing: {
|
|
49
|
+
datasheet: null,
|
|
50
|
+
descriptions: null,
|
|
51
|
+
images: null
|
|
52
|
+
},
|
|
53
|
+
services: {
|
|
54
|
+
datasheets: 1,
|
|
55
|
+
descriptions: 1,
|
|
56
|
+
images: 1
|
|
57
|
+
},
|
|
58
|
+
article: {
|
|
59
|
+
category: "Consumibles|Productos de Limpieza y Lavandería|Jabones y Lavatrastes",
|
|
60
|
+
company_name: "GRUPO BRAHMA",
|
|
61
|
+
country: "México",
|
|
62
|
+
id_category: "157",
|
|
63
|
+
id_datasheet_especialist: 54,
|
|
64
|
+
id_datasheet_facilitator: 52,
|
|
65
|
+
id_description_especialist: 54,
|
|
66
|
+
id_description_facilitator: 52,
|
|
67
|
+
id_images_especialist: 55,
|
|
68
|
+
id_images_facilitator: 53,
|
|
69
|
+
id_order: 14606,
|
|
70
|
+
id_article: 37317,
|
|
71
|
+
id_auditor: 37,
|
|
72
|
+
name: "Detergente lavatrastres líquido Axion Complete tricloro 1.1 l",
|
|
73
|
+
timestamp: "2023-03-10T20:19:46.000Z",
|
|
74
|
+
upc: "7509546078915"
|
|
75
|
+
},
|
|
76
|
+
retailers: [{
|
|
77
|
+
id: 4,
|
|
78
|
+
name: "Walmart Super y Superama"
|
|
79
|
+
}, {
|
|
80
|
+
id: 5,
|
|
81
|
+
name: "Chedraui"
|
|
82
|
+
}, {
|
|
83
|
+
id: 6,
|
|
84
|
+
name: "HEB"
|
|
85
|
+
}, {
|
|
86
|
+
id: 12,
|
|
87
|
+
name: "La Comer"
|
|
88
|
+
}, {
|
|
89
|
+
id: 17,
|
|
90
|
+
name: "Genérico"
|
|
91
|
+
}],
|
|
92
|
+
statusByRetailer: {
|
|
93
|
+
4: {
|
|
94
|
+
datasheet: "AA",
|
|
95
|
+
description: "AA",
|
|
96
|
+
images: "AA"
|
|
97
|
+
},
|
|
98
|
+
5: {
|
|
99
|
+
datasheet: "AA",
|
|
100
|
+
description: "AA",
|
|
101
|
+
images: "AA"
|
|
102
|
+
},
|
|
103
|
+
6: {
|
|
104
|
+
datasheet: "AA",
|
|
105
|
+
description: "AA",
|
|
106
|
+
images: "AA"
|
|
107
|
+
},
|
|
108
|
+
12: {
|
|
109
|
+
datasheet: "AA",
|
|
110
|
+
description: "AA",
|
|
111
|
+
images: "AA"
|
|
112
|
+
},
|
|
113
|
+
17: {
|
|
114
|
+
datasheet: "AA",
|
|
115
|
+
description: "AA",
|
|
116
|
+
images: "AA"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
46
119
|
retailersAvailable: [{
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
120
|
+
id: 4,
|
|
121
|
+
name: "Walmart Super y Superama"
|
|
122
|
+
}, {
|
|
123
|
+
id: 5,
|
|
124
|
+
name: "Chedraui"
|
|
125
|
+
}, {
|
|
126
|
+
id: 6,
|
|
127
|
+
name: "HEB"
|
|
128
|
+
}, {
|
|
129
|
+
id: 12,
|
|
130
|
+
name: "La Comer"
|
|
131
|
+
}, {
|
|
132
|
+
id: 17,
|
|
133
|
+
name: "Genérico"
|
|
134
|
+
}],
|
|
135
|
+
categoryName: "Consumibles|Productos de Limpieza y Lavandería|Jabones y Lavatrastes",
|
|
136
|
+
upc: "7509546078915",
|
|
137
|
+
id_article: 37317,
|
|
138
|
+
id_order: 14606
|
|
50
139
|
},
|
|
51
140
|
productToEdit: {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
product:
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
141
|
+
ArticleId: 37317,
|
|
142
|
+
idCategory: "157",
|
|
143
|
+
product: {
|
|
144
|
+
orderId: 14606,
|
|
145
|
+
status: "AA",
|
|
146
|
+
datasheet_status: "AA",
|
|
147
|
+
prio: "none",
|
|
148
|
+
version: 3,
|
|
149
|
+
description_status: "AA",
|
|
150
|
+
images_status: "AA",
|
|
151
|
+
brand: "Axion",
|
|
152
|
+
retailerOrder: 0,
|
|
153
|
+
missing: {
|
|
154
|
+
datasheet: null,
|
|
155
|
+
descriptions: null,
|
|
156
|
+
images: null
|
|
157
|
+
},
|
|
158
|
+
services: {
|
|
159
|
+
datasheets: 1,
|
|
160
|
+
descriptions: 1,
|
|
161
|
+
images: 1
|
|
162
|
+
},
|
|
163
|
+
article: {
|
|
164
|
+
category: "Consumibles|Productos de Limpieza y Lavandería|Jabones y Lavatrastes",
|
|
165
|
+
company_name: "GRUPO BRAHMA",
|
|
166
|
+
country: "México",
|
|
167
|
+
id_category: "157",
|
|
168
|
+
id_datasheet_especialist: 54,
|
|
169
|
+
id_datasheet_facilitator: 52,
|
|
170
|
+
id_description_especialist: 54,
|
|
171
|
+
id_description_facilitator: 52,
|
|
172
|
+
id_images_especialist: 55,
|
|
173
|
+
id_images_facilitator: 53,
|
|
174
|
+
id_order: 14606,
|
|
175
|
+
id_article: 37317,
|
|
176
|
+
id_auditor: 37,
|
|
177
|
+
name: "Detergente lavatrastres líquido Axion Complete tricloro 1.1 l",
|
|
178
|
+
timestamp: "2023-03-10T20:19:46.000Z",
|
|
179
|
+
upc: "7509546078915"
|
|
180
|
+
},
|
|
181
|
+
retailers: [{
|
|
182
|
+
id: 4,
|
|
183
|
+
name: "Walmart Super y Superama"
|
|
184
|
+
}, {
|
|
185
|
+
id: 5,
|
|
186
|
+
name: "Chedraui"
|
|
187
|
+
}, {
|
|
188
|
+
id: 6,
|
|
189
|
+
name: "HEB"
|
|
190
|
+
}, {
|
|
191
|
+
id: 12,
|
|
192
|
+
name: "La Comer"
|
|
193
|
+
}, {
|
|
194
|
+
id: 17,
|
|
195
|
+
name: "Genérico"
|
|
196
|
+
}],
|
|
197
|
+
statusByRetailer: {
|
|
198
|
+
4: {
|
|
199
|
+
datasheet: "AA",
|
|
200
|
+
description: "AA",
|
|
201
|
+
images: "AA"
|
|
202
|
+
},
|
|
203
|
+
5: {
|
|
204
|
+
datasheet: "AA",
|
|
205
|
+
description: "AA",
|
|
206
|
+
images: "AA"
|
|
207
|
+
},
|
|
208
|
+
6: {
|
|
209
|
+
datasheet: "AA",
|
|
210
|
+
description: "AA",
|
|
211
|
+
images: "AA"
|
|
212
|
+
},
|
|
213
|
+
12: {
|
|
214
|
+
datasheet: "AA",
|
|
215
|
+
description: "AA",
|
|
216
|
+
images: "AA"
|
|
217
|
+
},
|
|
218
|
+
17: {
|
|
219
|
+
datasheet: "AA",
|
|
220
|
+
description: "AA",
|
|
221
|
+
images: "AA"
|
|
222
|
+
}
|
|
223
|
+
},
|
|
62
224
|
retailersAvailable: [{
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
|
|
225
|
+
id: 4,
|
|
226
|
+
name: "Walmart Super y Superama"
|
|
227
|
+
}, {
|
|
228
|
+
id: 5,
|
|
229
|
+
name: "Chedraui"
|
|
230
|
+
}, {
|
|
231
|
+
id: 6,
|
|
232
|
+
name: "HEB"
|
|
233
|
+
}, {
|
|
234
|
+
id: 12,
|
|
235
|
+
name: "La Comer"
|
|
236
|
+
}, {
|
|
237
|
+
id: 17,
|
|
238
|
+
name: "Genérico"
|
|
239
|
+
}],
|
|
240
|
+
categoryName: "Consumibles|Productos de Limpieza y Lavandería|Jabones y Lavatrastes",
|
|
241
|
+
upc: "7509546078915",
|
|
242
|
+
id_article: 37317,
|
|
243
|
+
id_order: 14606
|
|
244
|
+
}
|
|
67
245
|
},
|
|
68
246
|
location: {
|
|
69
247
|
state: {
|
|
70
|
-
origin: "Contentoh"
|
|
248
|
+
origin: "Contentoh",
|
|
249
|
+
withChat: true
|
|
71
250
|
}
|
|
72
251
|
},
|
|
73
252
|
user: {
|
|
@@ -89,8 +268,8 @@ ProviderProductEditionDefault.args = {
|
|
|
89
268
|
id_role: 0,
|
|
90
269
|
active: 1,
|
|
91
270
|
is_retailer: 0,
|
|
92
|
-
email_notify:
|
|
93
|
-
is_user_tech: "AS",
|
|
271
|
+
email_notify: 1,
|
|
272
|
+
is_user_tech: "ADMIN-AS",
|
|
94
273
|
membership: {
|
|
95
274
|
id: 76,
|
|
96
275
|
start_date: "2022-01-18T17:25:35.000Z",
|
|
@@ -102,7 +281,7 @@ ProviderProductEditionDefault.args = {
|
|
|
102
281
|
products_limit: "5000",
|
|
103
282
|
type: "Enterprise"
|
|
104
283
|
},
|
|
105
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?
|
|
284
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1679610888753"
|
|
106
285
|
},
|
|
107
286
|
company: {
|
|
108
287
|
id_company: 1,
|
|
@@ -116,7 +295,12 @@ ProviderProductEditionDefault.args = {
|
|
|
116
295
|
zip_code: "",
|
|
117
296
|
email: null,
|
|
118
297
|
social_link: "",
|
|
119
|
-
is_retailer: 0
|
|
298
|
+
is_retailer: 0,
|
|
299
|
+
retailers: [{
|
|
300
|
+
id: null,
|
|
301
|
+
name: null,
|
|
302
|
+
country: null
|
|
303
|
+
}]
|
|
120
304
|
},
|
|
121
305
|
showSurvey: function showSurvey(v) {
|
|
122
306
|
return v && alert("se muestra");
|