contentoh-components-library 21.1.51 → 21.1.52
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/CheckBox/styles.js +1 -1
- package/dist/components/atoms/Commentary/styles.js +1 -1
- package/dist/components/atoms/GeneralInput/index.js +0 -1
- package/dist/components/atoms/GeneralInput/styles.js +3 -3
- package/dist/components/atoms/InputFormatter/styles.js +1 -1
- package/dist/components/atoms/SliderToolTip/SliderToolTip.stories.js +67 -13
- package/dist/components/atoms/SliderToolTip/index.js +70 -135
- package/dist/components/atoms/SliderToolTip/styles.js +2 -2
- package/dist/components/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +44 -1
- package/dist/components/atoms/VerticalSideMenuMainPage/index.js +39 -65
- package/dist/components/atoms/VerticalSideMenuMainPage/styles.js +21 -6
- package/dist/components/molecules/HeaderTop/index.js +4 -1
- package/dist/components/molecules/RetailerSelector/index.js +32 -0
- package/dist/components/molecules/StatusAsignationInfo/index.js +32 -3
- package/dist/components/organisms/FullTabsMenu/index.js +3 -1
- package/dist/components/pages/ProviderProductEdition/index.js +44 -6
- package/dist/components/pages/RetailerProductEdition/index.js +6 -5
- package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
- package/dist/index.js +38 -51
- package/package.json +2 -2
- package/src/components/atoms/CheckBox/styles.js +0 -1
- package/src/components/atoms/Commentary/styles.js +2 -2
- package/src/components/atoms/GeneralInput/index.js +0 -1
- package/src/components/atoms/GeneralInput/styles.js +5 -5
- package/src/components/atoms/InputFormatter/styles.js +3 -3
- package/src/components/atoms/SliderToolTip/SliderToolTip.stories.js +77 -11
- package/src/components/atoms/SliderToolTip/index.js +98 -154
- package/src/components/atoms/SliderToolTip/styles.js +51 -26
- package/src/components/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +24 -1
- package/src/components/atoms/VerticalSideMenuMainPage/index.js +32 -38
- package/src/components/atoms/VerticalSideMenuMainPage/styles.js +35 -29
- package/src/components/molecules/HeaderTop/index.js +6 -1
- package/src/components/molecules/RetailerSelector/index.js +15 -0
- package/src/components/molecules/StatusAsignationInfo/index.js +33 -1
- package/src/components/organisms/FullProductNameHeader/index.js +1 -1
- package/src/components/organisms/FullTabsMenu/index.js +2 -0
- package/src/components/pages/ProviderProductEdition/index.js +53 -9
- package/src/components/pages/ProviderProductEdition/styles.js +1 -1
- package/src/components/pages/RetailerProductEdition/index.js +6 -5
- package/src/components/pages/RetailerProductEdition/styles.js +1 -1
- package/src/index.js +0 -1
- package/src/components/pages/RegistrationLoginFirstStep/RegistrationLoginFirstStep.stories.js +0 -17
- package/src/components/pages/RegistrationLoginFirstStep/index.js +0 -160
- package/src/components/pages/RegistrationLoginFirstStep/styles.js +0 -85
|
@@ -15,16 +15,8 @@ var _styles = require("./styles");
|
|
|
15
15
|
|
|
16
16
|
var _iconLogoContentoh = _interopRequireDefault(require("../../../assets/images/verticalSideMenuMainPage/iconLogoContentoh.svg"));
|
|
17
17
|
|
|
18
|
-
var _iconProduct = _interopRequireDefault(require("../../../assets/images/verticalSideMenuMainPage/iconProduct.svg"));
|
|
19
|
-
|
|
20
|
-
var _iconGroup = _interopRequireDefault(require("../../../assets/images/verticalSideMenuMainPage/iconGroup.svg"));
|
|
21
|
-
|
|
22
18
|
var _iconLogo = _interopRequireDefault(require("../../../assets/images/verticalSideMenuMainPage/iconLogo.svg"));
|
|
23
19
|
|
|
24
|
-
var _iconSpeedometer = _interopRequireDefault(require("../../../assets/images/verticalSideMenuMainPage/iconSpeedometer.svg"));
|
|
25
|
-
|
|
26
|
-
var _iconTask = _interopRequireDefault(require("../../../assets/images/verticalSideMenuMainPage/iconTask.svg"));
|
|
27
|
-
|
|
28
20
|
var _openMenu = _interopRequireDefault(require("../../../assets/images/verticalSideMenuMainPage/openMenu.svg"));
|
|
29
21
|
|
|
30
22
|
var _closeMenu = _interopRequireDefault(require("../../../assets/images/verticalSideMenuMainPage/closeMenu.svg"));
|
|
@@ -33,16 +25,17 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
33
25
|
|
|
34
26
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
35
27
|
|
|
36
|
-
var VerticalSideMenuMainPage = function VerticalSideMenuMainPage() {
|
|
37
|
-
var
|
|
28
|
+
var VerticalSideMenuMainPage = function VerticalSideMenuMainPage(_ref) {
|
|
29
|
+
var menuoption = _ref.menuoption;
|
|
30
|
+
|
|
31
|
+
var _useState = (0, _react.useState)(""),
|
|
38
32
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
39
33
|
trueBar = _useState2[0],
|
|
40
34
|
setTrueBar = _useState2[1];
|
|
41
35
|
|
|
42
|
-
var
|
|
43
|
-
};
|
|
44
|
-
|
|
36
|
+
var sub;
|
|
45
37
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
38
|
+
className: trueBar,
|
|
46
39
|
bar: trueBar,
|
|
47
40
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
48
41
|
className: "navbar-top",
|
|
@@ -50,58 +43,39 @@ var VerticalSideMenuMainPage = function VerticalSideMenuMainPage() {
|
|
|
50
43
|
src: trueBar ? _iconLogoContentoh.default : _iconLogo.default,
|
|
51
44
|
alt: "Logo",
|
|
52
45
|
className: "logo"
|
|
53
|
-
}), /*#__PURE__*/(0, _jsxRuntime.
|
|
46
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
54
47
|
className: "option",
|
|
55
|
-
children:
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("a", {
|
|
87
|
-
href: "/providers",
|
|
88
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
89
|
-
src: _iconGroup.default,
|
|
90
|
-
alt: "Group",
|
|
91
|
-
width: "25px"
|
|
92
|
-
}), trueBar && /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
93
|
-
children: "Proovedores"
|
|
94
|
-
})]
|
|
95
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("a", {
|
|
96
|
-
href: "/ContentohProducts",
|
|
97
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
98
|
-
src: _iconLogo.default,
|
|
99
|
-
alt: "Logo",
|
|
100
|
-
width: "25px"
|
|
101
|
-
}), trueBar && /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
102
|
-
children: "Content Oh!"
|
|
103
|
-
})]
|
|
104
|
-
})]
|
|
48
|
+
children: menuoption.map(function (item) {
|
|
49
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
50
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
51
|
+
className: "option-link",
|
|
52
|
+
exact: true,
|
|
53
|
+
activeClassName: "active",
|
|
54
|
+
to: item.path,
|
|
55
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
56
|
+
src: item.icon,
|
|
57
|
+
alt: item.title,
|
|
58
|
+
width: "25px"
|
|
59
|
+
}), trueBar && /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
60
|
+
children: item.title
|
|
61
|
+
})]
|
|
62
|
+
}), item.suboption === undefined ? "" : /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
63
|
+
children: menuoption[1].suboption.map(function (subitem) {
|
|
64
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
65
|
+
className: "sub-option",
|
|
66
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
67
|
+
exact: true,
|
|
68
|
+
activeClassName: "active",
|
|
69
|
+
to: subitem.path,
|
|
70
|
+
children: trueBar && /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
71
|
+
children: subitem.title
|
|
72
|
+
})
|
|
73
|
+
})
|
|
74
|
+
});
|
|
75
|
+
})
|
|
76
|
+
})]
|
|
77
|
+
});
|
|
78
|
+
})
|
|
105
79
|
})]
|
|
106
80
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
107
81
|
className: "menu-bottom",
|
|
@@ -110,7 +84,7 @@ var VerticalSideMenuMainPage = function VerticalSideMenuMainPage() {
|
|
|
110
84
|
alt: "Open Menu",
|
|
111
85
|
onClick: function onClick() {
|
|
112
86
|
{
|
|
113
|
-
trueBar ? setTrueBar(
|
|
87
|
+
trueBar ? setTrueBar("") : setTrueBar("actived");
|
|
114
88
|
}
|
|
115
89
|
}
|
|
116
90
|
})
|
|
@@ -11,25 +11,40 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
|
|
|
11
11
|
|
|
12
12
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
13
|
|
|
14
|
+
var _reactRouterDom = require("react-router-dom");
|
|
15
|
+
|
|
14
16
|
var _templateObject;
|
|
15
17
|
|
|
16
|
-
|
|
18
|
+
//styled(NavLink)
|
|
19
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n height: 100%;\n width: 58px;\n box-sizing: border-box;\n padding: 23px 10px 70px 10px;\n flex-direction: column;\n justify-content: space-between;\n overflow: auto;\n border-radius: 50px;\n background: linear-gradient(180deg, #e33aa9 0%, #3b1366 100%);\n scrollbar-width: none;\n display: flex;\n text-align: center;\n &.actived {\n width: 200px;\n padding: 23px 10px 15px 10px;\n border-radius: 20px;\n }\n .navbar-top {\n .logo {\n & + * {\n margin-top: ", "%;\n }\n }\n .option {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding-left: ", "px;\n div {\n height: ", "px;\n width: ", "px;\n display: flex;\n justify-content: ", ";\n border-radius: ", "px;\n align-items: center;\n font-family: \"Raleway\";\n font-style: normal;\n font-weight: 400;\n font-size: 18px;\n line-height: 21px;\n letter-spacing: -0.015em;\n color: #fafafa;\n text-decoration: none;\n &.option-link {\n cursor: pointer;\n margin-top: 12px;\n padding-left: ", "px;\n }\n p {\n cursor: pointer;\n }\n img {\n & + * {\n margin-left: 12px;\n }\n }\n }\n .option-link:hover {\n background: #e33aa9;\n }\n .sub-option {\n display: flex;\n flex-direction: column;\n padding-left: ", "px;\n height: auto;\n width: auto;\n div {\n display: flex;\n justify-content: flex-start;\n text-decoration: none;\n position: relative;\n font-size: 13px;\n border-left: 1px solid #f0eef2;\n border-radius: 0;\n color: #f0eef2;\n padding-top: 20px;\n padding-left: 12px;\n height: 25px;\n &::before {\n border-left: 1px solid #e33aa9;\n width: 10px;\n content: \"\";\n border-radius: 50%;\n height: 10px;\n background-color: white;\n position: absolute;\n left: ", "%;\n bottom: 1%;\n }\n }\n }\n }\n }\n .menu-bottom {\n display: flex;\n justify-content: ", ";\n cursor: pointer;\n }\n"])), function (_ref) {
|
|
17
20
|
var bar = _ref.bar;
|
|
18
|
-
return bar ?
|
|
21
|
+
return bar === "" ? 145 : 50;
|
|
19
22
|
}, function (_ref2) {
|
|
20
23
|
var bar = _ref2.bar;
|
|
21
|
-
return bar ?
|
|
24
|
+
return bar ? 5 : 0;
|
|
22
25
|
}, function (_ref3) {
|
|
23
26
|
var bar = _ref3.bar;
|
|
24
|
-
return bar ?
|
|
27
|
+
return bar ? 32 : 38;
|
|
25
28
|
}, function (_ref4) {
|
|
26
29
|
var bar = _ref4.bar;
|
|
27
|
-
return bar ?
|
|
30
|
+
return bar ? 165 : 38;
|
|
28
31
|
}, function (_ref5) {
|
|
29
32
|
var bar = _ref5.bar;
|
|
30
|
-
return bar ?
|
|
33
|
+
return bar ? "flex-start" : "center";
|
|
31
34
|
}, function (_ref6) {
|
|
32
35
|
var bar = _ref6.bar;
|
|
36
|
+
return bar ? 18 : 100;
|
|
37
|
+
}, function (_ref7) {
|
|
38
|
+
var bar = _ref7.bar;
|
|
39
|
+
return bar ? 15 : 0;
|
|
40
|
+
}, function (_ref8) {
|
|
41
|
+
var bar = _ref8.bar;
|
|
42
|
+
return bar ? 28 : 20;
|
|
43
|
+
}, function (_ref9) {
|
|
44
|
+
var bar = _ref9.bar;
|
|
45
|
+
return bar ? -4 : -16;
|
|
46
|
+
}, function (_ref10) {
|
|
47
|
+
var bar = _ref10.bar;
|
|
33
48
|
return bar ? "flex-end" : "center";
|
|
34
49
|
});
|
|
35
50
|
|
|
@@ -26,7 +26,10 @@ var HeaderTop = function HeaderTop(_ref) {
|
|
|
26
26
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ScreenHeader, {
|
|
27
27
|
text: "Edici\xF3n de producto"
|
|
28
28
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Button, {
|
|
29
|
-
buttonType: "close-button"
|
|
29
|
+
buttonType: "close-button",
|
|
30
|
+
onClick: function onClick() {
|
|
31
|
+
window.location.href = "/products";
|
|
32
|
+
}
|
|
30
33
|
})]
|
|
31
34
|
});
|
|
32
35
|
};
|
|
@@ -7,6 +7,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.RetailerSelector = void 0;
|
|
9
9
|
|
|
10
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
11
|
+
|
|
12
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/asyncToGenerator"));
|
|
13
|
+
|
|
10
14
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
11
15
|
|
|
12
16
|
var _styles = require("./styles");
|
|
@@ -39,11 +43,39 @@ var RetailerSelector = function RetailerSelector(_ref) {
|
|
|
39
43
|
}
|
|
40
44
|
};
|
|
41
45
|
|
|
46
|
+
var getRetailerImage = /*#__PURE__*/function () {
|
|
47
|
+
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
48
|
+
return _regenerator.default.wrap(function _callee$(_context) {
|
|
49
|
+
while (1) {
|
|
50
|
+
switch (_context.prev = _context.next) {
|
|
51
|
+
case 0:
|
|
52
|
+
console.log("https://content-management-images.s3.amazonaws.com/retailers/".concat(activeRetailer.id, ".png"));
|
|
53
|
+
activeRetailer.image = "https://content-management-images.s3.amazonaws.com/retailers/".concat(activeRetailer.id, ".png");
|
|
54
|
+
retailers.forEach(function (retailer) {
|
|
55
|
+
return retailer.image = "https://content-management-images.s3.amazonaws.com/retailers/".concat(retailer.id, ".png");
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
case 3:
|
|
59
|
+
case "end":
|
|
60
|
+
return _context.stop();
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}, _callee);
|
|
64
|
+
}));
|
|
65
|
+
|
|
66
|
+
return function getRetailerImage() {
|
|
67
|
+
return _ref2.apply(this, arguments);
|
|
68
|
+
};
|
|
69
|
+
}();
|
|
70
|
+
|
|
42
71
|
(0, _react.useEffect)(function () {
|
|
43
72
|
if (retailersPanel) {
|
|
44
73
|
document.addEventListener("click", closeRetailersPanel, false);
|
|
45
74
|
}
|
|
46
75
|
}, [retailersPanel]);
|
|
76
|
+
(0, _react.useEffect)(function () {
|
|
77
|
+
getRetailerImage();
|
|
78
|
+
}, [activeRetailer]);
|
|
47
79
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
48
80
|
id: "retailers-assignation",
|
|
49
81
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.Avatar, {
|
|
@@ -25,6 +25,16 @@ var _index3 = require("../../atoms/AsignationOption/index");
|
|
|
25
25
|
|
|
26
26
|
var _data = require("../../../global-files/data");
|
|
27
27
|
|
|
28
|
+
var _SliderToolTip = require("../../atoms/SliderToolTip");
|
|
29
|
+
|
|
30
|
+
var _infoIcon = _interopRequireDefault(require("../../../assets/images/sliderToolTip/infoIcon.svg"));
|
|
31
|
+
|
|
32
|
+
var _slide = _interopRequireDefault(require("../../../assets/images/sliderToolTip/slide21.svg"));
|
|
33
|
+
|
|
34
|
+
var _slide2 = _interopRequireDefault(require("../../../assets/images/sliderToolTip/slide22.svg"));
|
|
35
|
+
|
|
36
|
+
var _slide3 = _interopRequireDefault(require("../../../assets/images/sliderToolTip/slide23.svg"));
|
|
37
|
+
|
|
28
38
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
29
39
|
|
|
30
40
|
var StatusAsignationInfo = function StatusAsignationInfo(_ref) {
|
|
@@ -44,7 +54,8 @@ var StatusAsignationInfo = function StatusAsignationInfo(_ref) {
|
|
|
44
54
|
_ref$id = _ref.id,
|
|
45
55
|
id = _ref$id === void 0 ? "default-id" : _ref$id,
|
|
46
56
|
onClickSave = _ref.onClickSave,
|
|
47
|
-
showSaveButton = _ref.showSaveButton
|
|
57
|
+
showSaveButton = _ref.showSaveButton,
|
|
58
|
+
canAssign = _ref.canAssign;
|
|
48
59
|
|
|
49
60
|
var _useState = (0, _react.useState)(false),
|
|
50
61
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -68,6 +79,19 @@ var StatusAsignationInfo = function StatusAsignationInfo(_ref) {
|
|
|
68
79
|
}
|
|
69
80
|
};
|
|
70
81
|
|
|
82
|
+
var slidefront = [{
|
|
83
|
+
slide: _slide.default,
|
|
84
|
+
title: "Valida tu producto en cada activo digital",
|
|
85
|
+
description: "Al solicitar a Content-oh! podrás validar la información, imágenes y documentación de tu producto, esto hará más sencillo que puedas aprobar o rechazar el contenido."
|
|
86
|
+
}, {
|
|
87
|
+
slide: _slide2.default,
|
|
88
|
+
title: "Aprueba o rechaza con un clic",
|
|
89
|
+
description: "Cuando termines de revisar tu información, elige si aproebas o rechazas, esto enviara una notificiación a nuestro equipo, para continuar o corregir el producto."
|
|
90
|
+
}, {
|
|
91
|
+
slide: _slide3.default,
|
|
92
|
+
title: "Estatus de tu producto en el proceso",
|
|
93
|
+
description: "La mayor parte del proceso podrás identificar que estatus tiene tu producto, esto dara visibilidad a todo tu equipo para saber la etapa se encuentra."
|
|
94
|
+
}];
|
|
71
95
|
(0, _react.useEffect)(function () {
|
|
72
96
|
if (showAsignationPanel) {
|
|
73
97
|
document.addEventListener("click", closeAsignations, false);
|
|
@@ -75,7 +99,12 @@ var StatusAsignationInfo = function StatusAsignationInfo(_ref) {
|
|
|
75
99
|
}, [showAsignationPanel]);
|
|
76
100
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
77
101
|
id: id,
|
|
78
|
-
children: [
|
|
102
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_SliderToolTip.SliderToolTip, {
|
|
103
|
+
infoIcon: _infoIcon.default,
|
|
104
|
+
slidefront: slidefront,
|
|
105
|
+
iconSize: "medium-image",
|
|
106
|
+
slidePosition: "bottom-slide"
|
|
107
|
+
}), status !== "-" && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.StatusTag, {
|
|
79
108
|
statusType: status,
|
|
80
109
|
ovalForm: true
|
|
81
110
|
}), showSaveButton && /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
@@ -118,7 +147,7 @@ var StatusAsignationInfo = function StatusAsignationInfo(_ref) {
|
|
|
118
147
|
color: "#969696",
|
|
119
148
|
fontFamily: "Avenir Next",
|
|
120
149
|
headerType: "input-name-header"
|
|
121
|
-
}), showAsignationPanel && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
150
|
+
}), showAsignationPanel && canAssign && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
122
151
|
className: "asignation-panel",
|
|
123
152
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
124
153
|
className: "asignation-header",
|
|
@@ -32,7 +32,8 @@ var FullTabsMenu = function FullTabsMenu(_ref) {
|
|
|
32
32
|
downloadImages = _ref.downloadImages,
|
|
33
33
|
askToDeleteImages = _ref.askToDeleteImages,
|
|
34
34
|
onClickSave = _ref.onClickSave,
|
|
35
|
-
showSaveButton = _ref.showSaveButton
|
|
35
|
+
showSaveButton = _ref.showSaveButton,
|
|
36
|
+
canAssign = _ref.canAssign;
|
|
36
37
|
|
|
37
38
|
var _useState = (0, _react.useState)(false),
|
|
38
39
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -45,6 +46,7 @@ var FullTabsMenu = function FullTabsMenu(_ref) {
|
|
|
45
46
|
setImagesSection: setImagesSection,
|
|
46
47
|
setActiveTab: setActiveTab
|
|
47
48
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.StatusAsignationInfo, {
|
|
49
|
+
canAssign: canAssign,
|
|
48
50
|
status: status,
|
|
49
51
|
activeTab: activeTab,
|
|
50
52
|
setImageLayout: setImageLayout,
|
|
@@ -81,6 +81,20 @@ var _errorModal = _interopRequireDefault(require("../../../assets/images/generic
|
|
|
81
81
|
|
|
82
82
|
var _index2 = require("../../organisms/GlobalModal/index");
|
|
83
83
|
|
|
84
|
+
var _SliderToolTip = require("../../atoms/SliderToolTip");
|
|
85
|
+
|
|
86
|
+
var _infoIcon = _interopRequireDefault(require("../../../assets/images/sliderToolTip/infoIcon.svg"));
|
|
87
|
+
|
|
88
|
+
var _slide = _interopRequireDefault(require("../../../assets/images/sliderToolTip/slide1.svg"));
|
|
89
|
+
|
|
90
|
+
var _slide2 = _interopRequireDefault(require("../../../assets/images/sliderToolTip/slide2.svg"));
|
|
91
|
+
|
|
92
|
+
var _slide3 = _interopRequireDefault(require("../../../assets/images/sliderToolTip/slide3.svg"));
|
|
93
|
+
|
|
94
|
+
var _slide4 = _interopRequireDefault(require("../../../assets/images/sliderToolTip/slide4.svg"));
|
|
95
|
+
|
|
96
|
+
var _slide5 = _interopRequireDefault(require("../../../assets/images/sliderToolTip/slide5.svg"));
|
|
97
|
+
|
|
84
98
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
85
99
|
|
|
86
100
|
var reducerImages = function reducerImages(state, action) {
|
|
@@ -1544,6 +1558,23 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1544
1558
|
(0, _react.useEffect)(function () {
|
|
1545
1559
|
setSaving(loading);
|
|
1546
1560
|
}, [loading]);
|
|
1561
|
+
var slidefront = [{
|
|
1562
|
+
slide: _slide.default,
|
|
1563
|
+
description: "Creamos tu contenido, y todo lo que haga falta para tu producto, cada sección puedes socilitar contenido enriquecido, y nosotros lo haremos por ti."
|
|
1564
|
+
}, {
|
|
1565
|
+
slide: _slide2.default,
|
|
1566
|
+
description: "Puedes agregar solicitudes de contenido enriquecido a tu carrito de compra las veces que sean necesarias. Una vez completada tu lista con los servicios necesitados sigue el proceso de compra en checkout."
|
|
1567
|
+
}, {
|
|
1568
|
+
slide: _slide3.default,
|
|
1569
|
+
description: "Revisa el contenido que deseas solicilitar, valida y tambien puedes agregar contenido extra, traducciones, o simplemente completar el checkout."
|
|
1570
|
+
}, {
|
|
1571
|
+
slide: _slide4.default,
|
|
1572
|
+
description: "Elige el tipo de entrega de tu producto, puedes ser recolección en el lugar o por el contrario puedes dejarlo en nuestras oficinas."
|
|
1573
|
+
}, {
|
|
1574
|
+
slide: _slide5.default,
|
|
1575
|
+
title: "Bienvenido al modo Content-oh!",
|
|
1576
|
+
description: "Finalmente elige la forma de pago que más te guste, procede con el pago y listo."
|
|
1577
|
+
}];
|
|
1547
1578
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
1548
1579
|
headerTop: headerTop,
|
|
1549
1580
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_HeaderTop.HeaderTop, {
|
|
@@ -1851,12 +1882,19 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1851
1882
|
children: "Ir a checkout"
|
|
1852
1883
|
})]
|
|
1853
1884
|
})
|
|
1854
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1885
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
1886
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_SliderToolTip.SliderToolTip, {
|
|
1887
|
+
infoIcon: _infoIcon.default,
|
|
1888
|
+
slidefront: slidefront,
|
|
1889
|
+
iconSize: "big-image",
|
|
1890
|
+
slidePosition: "top-slide"
|
|
1891
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
1892
|
+
onClick: function onClick() {
|
|
1893
|
+
setShowContentohRequestModal && setShowContentohRequestModal(true);
|
|
1894
|
+
},
|
|
1895
|
+
buttonType: "general-default-button",
|
|
1896
|
+
label: "Enviar a Content-oh!"
|
|
1897
|
+
})]
|
|
1860
1898
|
})]
|
|
1861
1899
|
})]
|
|
1862
1900
|
})]
|
|
@@ -135,7 +135,7 @@ var myBucket = new _awsSdk.default.S3({
|
|
|
135
135
|
});
|
|
136
136
|
|
|
137
137
|
var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
138
|
-
var _product$retailers, _product$services2, _datasheets$, _datasheets$$data, _product$article14;
|
|
138
|
+
var _product$retailers, _product$services2, _datasheets$, _datasheets$$data, _product$article14, _comment$message;
|
|
139
139
|
|
|
140
140
|
var tabsSections = _ref.tabsSections,
|
|
141
141
|
_ref$productSelected = _ref.productSelected,
|
|
@@ -1245,7 +1245,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1245
1245
|
data = {
|
|
1246
1246
|
articleId: product === null || product === void 0 ? void 0 : (_product$article12 = product.article) === null || _product$article12 === void 0 ? void 0 : _product$article12.id_article,
|
|
1247
1247
|
orderId: product === null || product === void 0 ? void 0 : product.orderId,
|
|
1248
|
-
message: body,
|
|
1248
|
+
message: body === null || body === void 0 ? void 0 : body.replace(/<.*?\/?>/gm, ""),
|
|
1249
1249
|
concept: concept,
|
|
1250
1250
|
version: version
|
|
1251
1251
|
};
|
|
@@ -1653,7 +1653,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1653
1653
|
|
|
1654
1654
|
return (product === null || product === void 0 ? void 0 : (_product$services = product.services) === null || _product$services === void 0 ? void 0 : _product$services.images) === 1 && updateImages();
|
|
1655
1655
|
},
|
|
1656
|
-
showSaveButton: userAssigned()
|
|
1656
|
+
showSaveButton: auditorAssigned() || userAssigned()
|
|
1657
1657
|
})]
|
|
1658
1658
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
1659
1659
|
className: "product-information",
|
|
@@ -1721,6 +1721,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1721
1721
|
})]);
|
|
1722
1722
|
}
|
|
1723
1723
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_FullTabsMenu.FullTabsMenu, {
|
|
1724
|
+
canAssign: ![7, 8].includes(user.id_role),
|
|
1724
1725
|
tabsSections: tabsSections,
|
|
1725
1726
|
status: retailerStatus,
|
|
1726
1727
|
activeTab: activeTab,
|
|
@@ -1731,7 +1732,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1731
1732
|
assig: assig[activeTab],
|
|
1732
1733
|
setAssignation: setAssignation,
|
|
1733
1734
|
isRetailer: isRetailer,
|
|
1734
|
-
showSaveButton: userAssigned(),
|
|
1735
|
+
showSaveButton: auditorAssigned() || userAssigned(),
|
|
1735
1736
|
onClickSave: function onClickSave() {
|
|
1736
1737
|
switch (activeTab) {
|
|
1737
1738
|
case "Descripción":
|
|
@@ -1819,7 +1820,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1819
1820
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
1820
1821
|
className: "feedback-box",
|
|
1821
1822
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Commentary.Commentary, {
|
|
1822
|
-
comment: comment.message,
|
|
1823
|
+
comment: comment === null || comment === void 0 ? void 0 : (_comment$message = comment.message) === null || _comment$message === void 0 ? void 0 : _comment$message.replace(/<.*?\/?>/gm, ""),
|
|
1823
1824
|
reviewed: crossComment
|
|
1824
1825
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
1825
1826
|
buttonType: "circular-button accept-button",
|
|
@@ -13,7 +13,7 @@ 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 flex-direction: column;\n height: 100%;\n flex: 1;\n overflow: auto;\n\n .data-container {\n display: flex;\n flex: 0%;\n height: calc(100% - ", "px);\n .image-data-panel {\n width: 340px;\n\n & + * {\n margin-left: 10px;\n }\n }\n\n .product-information {\n width: 100
|
|
16
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: column;\n height: 100%;\n flex: 1;\n overflow: auto;\n\n .data-container {\n display: flex;\n flex: 0%;\n height: calc(100% - ", "px);\n .image-data-panel {\n width: 340px;\n\n & + * {\n margin-left: 10px;\n }\n }\n\n .product-information {\n width: calc(100% - 341px);\n display: flex;\n flex-direction: column;\n\n .services-information-container {\n height: 100%;\n overflow: auto;\n }\n\n .image-services {\n aside {\n display: grid;\n grid-template-columns: repeat(auto-fill, 179px);\n column-gap: 15px;\n row-gap: 15px;\n padding: 20px;\n }\n }\n\n .commentary-box {\n display: flex;\n justify-content: space-between;\n align-items: flex-end;\n padding: 10px;\n padding-left: 0;\n\n .commentary {\n display: flex;\n align-items: flex-end;\n\n .input-container {\n width: 500px;\n\n .quill {\n height: 100px;\n }\n\n & + * {\n margin-left: 5px;\n }\n }\n\n .buttons-box {\n display: flex;\n width: 210px;\n flex-wrap: wrap;\n\n .general-transparent-button {\n & + * {\n margin-top: 5px;\n }\n }\n\n .general-transparent-button,\n .general-green-button,\n .general-button-disabled {\n width: fit-content;\n min-width: 201px;\n height: 40px;\n }\n }\n }\n }\n\n .feedback-box {\n display: flex;\n }\n }\n }\n .container {\n width: 100%;\n height: 100%;\n .dropzone {\n height: 100%;\n width: 100%;\n }\n }\n"])), function (_ref) {
|
|
17
17
|
var headerTop = _ref.headerTop;
|
|
18
18
|
return headerTop;
|
|
19
19
|
});
|