contentoh-components-library 21.4.61 → 21.4.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/molecules/BoxAttribute/styles.js +1 -1
- package/dist/components/molecules/BoxButtons/index.js +1 -0
- package/dist/components/molecules/TagAndInput/index.js +64 -3
- package/dist/components/organisms/InputGroup/index.js +153 -48
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +82 -146
- package/dist/components/pages/ProviderProductEdition/index.js +173 -138
- package/dist/components/pages/RetailerProductEdition/index.js +2 -2
- package/package.json +1 -1
- package/src/assets/images/Icons/info.svg +8 -0
- package/src/components/atoms/TabSection/styles.js +1 -1
- package/src/components/molecules/BoxAttribute/BoxAttribute.stories.js +16 -0
- package/src/components/molecules/BoxAttribute/index.js +71 -0
- package/src/components/molecules/BoxAttribute/styles.js +38 -0
- package/src/components/molecules/BoxButtons/BoxButtons.stories.js +15 -0
- package/src/components/molecules/BoxButtons/index.js +28 -0
- package/src/components/molecules/BoxButtons/styles.js +43 -0
- package/src/components/molecules/TagAndInput/index.js +52 -8
- package/src/components/organisms/Box/Box.stories.js +17 -0
- package/src/components/organisms/Box/index.js +103 -0
- package/src/components/organisms/Box/styles.js +48 -0
- package/src/components/organisms/BoxOnboarding/BoxOnboarding.stories.js +17 -0
- package/src/components/organisms/BoxOnboarding/index.js +60 -0
- package/src/components/organisms/BoxOnboarding/styles.js +44 -0
- package/src/components/organisms/InputGroup/index.js +233 -87
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +86 -175
- package/src/components/pages/ProviderProductEdition/index.js +43 -16
- package/src/components/pages/RetailerProductEdition/index.js +4 -2
- package/dist/components/atoms/ImageCarousel/ImgeSlider.stories.js +0 -90
- package/dist/components/atoms/ImageCarousel/index.js +0 -120
- package/dist/components/atoms/ImageCarousel/styles.js +0 -18
- package/dist/components/atoms/PercentTag/PercentTag.stories.js +0 -31
- package/dist/components/atoms/PercentTag/index.js +0 -23
- package/dist/components/atoms/PercentTag/styles.js +0 -22
- package/dist/components/atoms/RatingStars/RatingStars.stories.js +0 -30
- package/dist/components/atoms/RatingStars/index.js +0 -53
- package/dist/components/atoms/RatingStars/styles.js +0 -18
- package/dist/components/atoms/RetailerCatalog/RetailerCatalog.stories.js +0 -48
- package/dist/components/atoms/RetailerCatalog/index.js +0 -69
- package/dist/components/atoms/RetailerCatalog/styles.js +0 -20
- package/dist/components/atoms/RetailerOption/RetailerOption.stories.js +0 -33
- package/dist/components/atoms/RetailerOption/index.js +0 -62
- package/dist/components/atoms/RetailerOption/styles.js +0 -20
- package/dist/components/atoms/RetailersList/RetailersList.stories.js +0 -45
- package/dist/components/atoms/RetailersList/index.js +0 -46
- package/dist/components/atoms/RetailersList/styles.js +0 -18
- package/dist/components/atoms/UserCatalog/UserCatalog.stories.js +0 -73
- package/dist/components/atoms/UserCatalog/index.js +0 -101
- package/dist/components/atoms/UserCatalog/styles.js +0 -18
- package/dist/components/atoms/UserOption/UserOption.stories.js +0 -40
- package/dist/components/atoms/UserOption/index.js +0 -130
- package/dist/components/atoms/UserOption/styles.js +0 -20
- package/dist/components/atoms/UserSelector/UserSelector.stories.js +0 -40
- package/dist/components/atoms/UserSelector/index.js +0 -98
- package/dist/components/atoms/UserSelector/styles.js +0 -32
- package/dist/components/molecules/GridItem/GridItem.stories.js +0 -123
- package/dist/components/molecules/GridItem/index.js +0 -152
- package/dist/components/molecules/GridItem/styles.js +0 -20
- package/dist/components/molecules/HeaderItem/ColumnItem.js +0 -23
- package/dist/components/molecules/HeaderItem/HeaderItem.stories.js +0 -70
- package/dist/components/molecules/HeaderItem/index.js +0 -42
- package/dist/components/molecules/HeaderItem/styles.js +0 -30
- package/dist/components/molecules/RowItem/ColumnItem.js +0 -23
- package/dist/components/molecules/RowItem/RowItem.stories.js +0 -5242
- package/dist/components/molecules/RowItem/index.js +0 -58
- package/dist/components/molecules/RowItem/styles.js +0 -30
- package/dist/components/organisms/GridProducts/GridProducts.stories.js +0 -5097
- package/dist/components/organisms/GridProducts/index.js +0 -63
- package/dist/components/organisms/GridProducts/styles.js +0 -18
- package/dist/components/organisms/GridProducts/utils.js +0 -149
|
@@ -15,7 +15,7 @@ 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 align-items: center;\n gap:4px;\n #atr-alto {\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n .caja-borde {\n font-family: ", ", sans-serif;\n font-size: 12px;\n line-height: 1.2;\n border-radius: ", ";\n }\n span {\n font-family: ", ", sans-serif;\n font-size: 12px;\n line-height: 1.2;\n font-weight: 600;\n }\n .icon {\n width: 8px;\n height: 8px;\n }\n .required-text {\n color: red;\n }\n
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n gap:4px;\n #atr-alto {\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n .caja-borde {\n font-family: ", ", sans-serif;\n font-size: 12px;\n line-height: 1.2;\n border-radius: ", ";\n }\n span {\n font-family: ", ", sans-serif;\n font-size: 12px;\n line-height: 1.2;\n font-weight: 600;\n }\n .icon {\n width: 8px;\n height: 8px;\n }\n .required-text {\n color: red;\n }\n"])), _variables.FontFamily.RobotoMedium, function (_ref) {
|
|
19
19
|
var borderType = _ref.borderType;
|
|
20
20
|
return (borderType === null || borderType === void 0 ? void 0 : borderType.toLowerCase()) === "rectangle" ? "5px" : (borderType === null || borderType === void 0 ? void 0 : borderType.toLowerCase()) === "circle" ? "50%" : "none";
|
|
21
21
|
}, _variables.FontFamily.RobotoMedium);
|
|
@@ -17,6 +17,7 @@ var BoxButtons = function BoxButtons(_ref) {
|
|
|
17
17
|
onDelete = _ref.onDelete,
|
|
18
18
|
isTheFirstBox = _ref.isTheFirstBox,
|
|
19
19
|
index = _ref.index;
|
|
20
|
+
console.log("index", index);
|
|
20
21
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
21
22
|
index: index,
|
|
22
23
|
children: [!isTheFirstBox && /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Button, {
|
|
@@ -1,16 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
8
|
exports.TagAndInput = void 0;
|
|
7
9
|
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
+
|
|
12
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
13
|
+
|
|
8
14
|
var _styles = require("./styles");
|
|
9
15
|
|
|
10
16
|
var _index = require("../../atoms/ScreenHeader/index");
|
|
11
17
|
|
|
12
18
|
var _index2 = require("../../atoms/GeneralInput/index");
|
|
13
19
|
|
|
20
|
+
var _react = require("react");
|
|
21
|
+
|
|
14
22
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
23
|
|
|
16
24
|
var TagAndInput = function TagAndInput(_ref) {
|
|
@@ -39,11 +47,51 @@ var TagAndInput = function TagAndInput(_ref) {
|
|
|
39
47
|
disabled = _ref.disabled,
|
|
40
48
|
onKeyDown = _ref.onKeyDown,
|
|
41
49
|
showTooltip = _ref.showTooltip,
|
|
42
|
-
auditClass = _ref.auditClass
|
|
50
|
+
auditClass = _ref.auditClass,
|
|
51
|
+
onChange = _ref.onChange,
|
|
52
|
+
dataInputs = _ref.dataInputs,
|
|
53
|
+
inputGroup = _ref.inputGroup,
|
|
54
|
+
boxOnboardingData = _ref.boxOnboardingData;
|
|
55
|
+
|
|
56
|
+
var _useState = (0, _react.useState)(boxOnboardingData || []),
|
|
57
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
58
|
+
boxOnboardingList = _useState2[0],
|
|
59
|
+
setBoxOnboardingList = _useState2[1];
|
|
60
|
+
|
|
61
|
+
(0, _react.useEffect)(function () {
|
|
62
|
+
var temp = {};
|
|
63
|
+
var maxBoxId = 0;
|
|
64
|
+
inputGroup === null || inputGroup === void 0 ? void 0 : inputGroup.inputs.forEach(function (attrId) {
|
|
65
|
+
if (!dataInputs[attrId].box) return;
|
|
66
|
+
Object.entries(dataInputs[attrId].box).forEach(function (_ref2) {
|
|
67
|
+
var _ref3 = (0, _slicedToArray2.default)(_ref2, 2),
|
|
68
|
+
boxId = _ref3[0],
|
|
69
|
+
value = _ref3[1];
|
|
70
|
+
|
|
71
|
+
if (boxId > maxBoxId) maxBoxId = boxId;
|
|
72
|
+
if (!temp[boxId]) temp[boxId] = {};
|
|
73
|
+
temp[boxId][attrId] = value;
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
var tempList = Object.values(temp);
|
|
77
|
+
|
|
78
|
+
if (tempList.length > 0) {
|
|
79
|
+
setBoxOnboardingList(tempList.map(function (value, index) {
|
|
80
|
+
return index === tempList.length - 1 ? {
|
|
81
|
+
value: value
|
|
82
|
+
} : {
|
|
83
|
+
value: value
|
|
84
|
+
};
|
|
85
|
+
}));
|
|
86
|
+
}
|
|
87
|
+
}, []);
|
|
88
|
+
(0, _react.useEffect)(function () {
|
|
89
|
+
onChange && onChange(boxOnboardingList);
|
|
90
|
+
}, [boxOnboardingList]);
|
|
43
91
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
44
92
|
inputType: inputType,
|
|
45
93
|
className: "input-container",
|
|
46
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
94
|
+
children: [(label === null || label === void 0 ? void 0 : label.length) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
47
95
|
className: "title-container",
|
|
48
96
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ScreenHeader, {
|
|
49
97
|
text: label,
|
|
@@ -76,7 +124,20 @@ var TagAndInput = function TagAndInput(_ref) {
|
|
|
76
124
|
description: description,
|
|
77
125
|
inputOnChange: inputOnChange,
|
|
78
126
|
onKeyDown: onKeyDown,
|
|
79
|
-
auditClass: auditClass
|
|
127
|
+
auditClass: auditClass,
|
|
128
|
+
onChange: function onChange(e) {
|
|
129
|
+
setBoxOnboardingList(function (prev) {
|
|
130
|
+
return prev.map(function (box, i) {
|
|
131
|
+
if (i != index) {
|
|
132
|
+
return box;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, box), {}, {
|
|
136
|
+
value: e
|
|
137
|
+
});
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
}
|
|
80
141
|
})]
|
|
81
142
|
}, "generalTagInput-".concat(inputType));
|
|
82
143
|
};
|
|
@@ -1,20 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
8
|
exports.InputGroup = void 0;
|
|
7
9
|
|
|
10
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
11
|
+
|
|
8
12
|
var _styles = require("./styles");
|
|
9
13
|
|
|
10
14
|
var _ScreenHeader = require("../../atoms/ScreenHeader");
|
|
11
15
|
|
|
12
16
|
var _TagAndInput = require("../../molecules/TagAndInput");
|
|
13
17
|
|
|
18
|
+
var _BoxOnboarding = require("../BoxOnboarding");
|
|
19
|
+
|
|
20
|
+
var _Box = require("../Box");
|
|
21
|
+
|
|
22
|
+
var _react = require("react");
|
|
23
|
+
|
|
14
24
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
25
|
|
|
16
26
|
var InputGroup = function InputGroup(_ref) {
|
|
17
|
-
var _inputGroup$inputs;
|
|
27
|
+
var _activeRetailer$retai3, _inputGroup$inputs, _activeRetailer$retai4, _inputGroup$inputs2;
|
|
18
28
|
|
|
19
29
|
var _ref$inputGroup = _ref.inputGroup,
|
|
20
30
|
inputGroup = _ref$inputGroup === void 0 ? {} : _ref$inputGroup,
|
|
@@ -31,7 +41,11 @@ var InputGroup = function InputGroup(_ref) {
|
|
|
31
41
|
articleId = _ref.articleId,
|
|
32
42
|
version = _ref.version,
|
|
33
43
|
dinamicHeight = _ref.dinamicHeight,
|
|
34
|
-
compare = _ref.compare
|
|
44
|
+
compare = _ref.compare,
|
|
45
|
+
_ref$groupData = _ref.groupData,
|
|
46
|
+
groupData = _ref$groupData === void 0 ? [] : _ref$groupData,
|
|
47
|
+
setUpdatedBoxData = _ref.setUpdatedBoxData,
|
|
48
|
+
activeRetailer = _ref.activeRetailer;
|
|
35
49
|
|
|
36
50
|
var inputTypeValue = function inputTypeValue(type) {
|
|
37
51
|
switch (type) {
|
|
@@ -46,58 +60,149 @@ var InputGroup = function InputGroup(_ref) {
|
|
|
46
60
|
}
|
|
47
61
|
};
|
|
48
62
|
|
|
63
|
+
var _useState = (0, _react.useState)(false),
|
|
64
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
65
|
+
showBox = _useState2[0],
|
|
66
|
+
setShowBox = _useState2[1];
|
|
67
|
+
|
|
49
68
|
var isEquals = function isEquals(dataInputsVal, auditInputsVal) {
|
|
50
69
|
var result = dataInputsVal === auditInputsVal;
|
|
51
70
|
return result;
|
|
52
71
|
};
|
|
53
72
|
|
|
54
|
-
|
|
55
|
-
|
|
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
|
-
inputId: input.id,
|
|
84
|
-
index: index,
|
|
85
|
-
inputType: "textarea",
|
|
86
|
-
label: (input === null || input === void 0 ? void 0 : input.name) + (input.required ? "*" : ""),
|
|
87
|
-
value: compare ? auditInputGroup === null || auditInputGroup === void 0 ? void 0 : (_auditInputGroup$inpu = auditInputGroup.inputs[index]) === null || _auditInputGroup$inpu === void 0 ? void 0 : _auditInputGroup$inpu.value : input === null || input === void 0 ? void 0 : input.value,
|
|
88
|
-
isRequired: input.required,
|
|
89
|
-
maxChar: input.max_chars,
|
|
90
|
-
inputPlaceHolder: input === null || input === void 0 ? void 0 : input.placeholder,
|
|
91
|
-
updatedDescriptions: updatedDescriptions,
|
|
92
|
-
setUpdatedDescriptions: setUpdatedDescriptions,
|
|
93
|
-
articleId: articleId,
|
|
94
|
-
version: version,
|
|
95
|
-
dinamicHeight: dinamicHeight,
|
|
96
|
-
description: input === null || input === void 0 ? void 0 : input.description,
|
|
97
|
-
showTooltip: true,
|
|
98
|
-
auditClass: compare && !isEquals(input === null || input === void 0 ? void 0 : input.value, auditInputGroup === null || auditInputGroup === void 0 ? void 0 : (_auditInputGroup$inpu2 = auditInputGroup.inputs[index]) === null || _auditInputGroup$inpu2 === void 0 ? void 0 : _auditInputGroup$inpu2.value) ? "audit-class" : ""
|
|
99
|
-
}, index + "-" + (input === null || input === void 0 ? void 0 : input.value) + "-" + compare);
|
|
73
|
+
(0, _react.useEffect)(function () {
|
|
74
|
+
var _activeRetailer$retai;
|
|
75
|
+
|
|
76
|
+
if (inputGroup.groupId === "16" && activeRetailer && activeRetailer !== null && activeRetailer !== void 0 && (_activeRetailer$retai = activeRetailer.retailer) !== null && _activeRetailer$retai !== void 0 && _activeRetailer$retai.id) {
|
|
77
|
+
var _activeRetailer$retai2;
|
|
78
|
+
|
|
79
|
+
if ((activeRetailer === null || activeRetailer === void 0 ? void 0 : (_activeRetailer$retai2 = activeRetailer.retailer) === null || _activeRetailer$retai2 === void 0 ? void 0 : _activeRetailer$retai2.id) === 68) {
|
|
80
|
+
setShowBox(true);
|
|
81
|
+
} else {
|
|
82
|
+
setShowBox(false);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}, [activeRetailer, inputGroup.groupId]); // useEffect(() => {
|
|
86
|
+
// if (showBox) {
|
|
87
|
+
// // Realiza la acción que deseas cuando showBox es true
|
|
88
|
+
// console.log("showBox es true");
|
|
89
|
+
// } else {
|
|
90
|
+
// // Realiza la acción que deseas cuando showBox es false
|
|
91
|
+
// console.log("showBox es false");
|
|
92
|
+
// }
|
|
93
|
+
// }, [showBox]);
|
|
94
|
+
|
|
95
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
96
|
+
children: [inputGroup.groupId === "16" && (activeRetailer === null || activeRetailer === void 0 ? void 0 : (_activeRetailer$retai3 = activeRetailer.retailer) === null || _activeRetailer$retai3 === void 0 ? void 0 : _activeRetailer$retai3.id) === 68 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
97
|
+
className: activeSection === "Ficha técnica" ? "datasheets-layout" : "descriptions-layout",
|
|
98
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.Box, {
|
|
99
|
+
inputGroup: inputGroup,
|
|
100
|
+
dataInputs: dataInputs,
|
|
101
|
+
onChange: setUpdatedBoxData
|
|
100
102
|
})
|
|
103
|
+
}), inputGroup.groupId !== "16" && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
104
|
+
className: activeSection === "Ficha técnica" ? "datasheets-layout" : "descriptions-layout",
|
|
105
|
+
children: [(inputGroup === null || inputGroup === void 0 ? void 0 : inputGroup.dataGroup) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
106
|
+
headerType: "retailer-name-header",
|
|
107
|
+
text: "".concat(inputGroup === null || inputGroup === void 0 ? void 0 : inputGroup.dataGroup)
|
|
108
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
109
|
+
className: "inputs-container",
|
|
110
|
+
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) {
|
|
111
|
+
var _dataInputs$input, _dataInputs$input2, _dataInputs$input3, _dataInputs$input4, _dataInputs$input5, _dataInputs$input6, _auditInputs$input, _dataInputs$input7, _dataInputs$input8, _dataInputs$input9, _dataInputs$input10, _dataInputs$input11, _dataInputs$input12, _auditInputGroup$inpu, _auditInputGroup$inpu2;
|
|
112
|
+
|
|
113
|
+
return activeSection === "Ficha técnica" ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
114
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
115
|
+
//disabled={input === 40001}
|
|
116
|
+
disabled: false,
|
|
117
|
+
inputId: (_dataInputs$input3 = dataInputs[input]) === null || _dataInputs$input3 === void 0 ? void 0 : _dataInputs$input3.id,
|
|
118
|
+
version: version,
|
|
119
|
+
inputType: inputTypeValue((_dataInputs$input4 = dataInputs[input]) === null || _dataInputs$input4 === void 0 ? void 0 : _dataInputs$input4.type),
|
|
120
|
+
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 ? "*" : ""),
|
|
121
|
+
value: compare ? (_auditInputs$input = auditInputs[input]) === null || _auditInputs$input === void 0 ? void 0 : _auditInputs$input.value : (_dataInputs$input7 = dataInputs[input]) === null || _dataInputs$input7 === void 0 ? void 0 : _dataInputs$input7.value,
|
|
122
|
+
inputPlaceHolder: input === null || input === void 0 ? void 0 : input.placeholder,
|
|
123
|
+
articleId: articleId,
|
|
124
|
+
isRequired: (_dataInputs$input8 = dataInputs[input]) === null || _dataInputs$input8 === void 0 ? void 0 : _dataInputs$input8.required,
|
|
125
|
+
updatedDatasheets: updatedDatasheets,
|
|
126
|
+
setUpdatedDatasheets: setUpdatedDatasheets,
|
|
127
|
+
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,
|
|
128
|
+
optionList: (_dataInputs$input11 = dataInputs[input]) === null || _dataInputs$input11 === void 0 ? void 0 : _dataInputs$input11.option_list,
|
|
129
|
+
description: (_dataInputs$input12 = dataInputs[input]) === null || _dataInputs$input12 === void 0 ? void 0 : _dataInputs$input12.description,
|
|
130
|
+
showTooltip: true,
|
|
131
|
+
auditClass: compare && !isEquals(dataInputs[input].value, auditInputs[input].value) ? "audit-class" : ""
|
|
132
|
+
}, 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) + "-" + compare)
|
|
133
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
134
|
+
inputId: input.id,
|
|
135
|
+
index: index,
|
|
136
|
+
inputType: "textarea",
|
|
137
|
+
label: (input === null || input === void 0 ? void 0 : input.name) + (input.required ? "*" : ""),
|
|
138
|
+
value: compare ? auditInputGroup === null || auditInputGroup === void 0 ? void 0 : (_auditInputGroup$inpu = auditInputGroup.inputs[index]) === null || _auditInputGroup$inpu === void 0 ? void 0 : _auditInputGroup$inpu.value : input === null || input === void 0 ? void 0 : input.value,
|
|
139
|
+
isRequired: input.required,
|
|
140
|
+
maxChar: input.max_chars,
|
|
141
|
+
inputPlaceHolder: input === null || input === void 0 ? void 0 : input.placeholder,
|
|
142
|
+
updatedDescriptions: updatedDescriptions,
|
|
143
|
+
setUpdatedDescriptions: setUpdatedDescriptions,
|
|
144
|
+
articleId: articleId,
|
|
145
|
+
version: version,
|
|
146
|
+
dinamicHeight: dinamicHeight,
|
|
147
|
+
description: input === null || input === void 0 ? void 0 : input.description,
|
|
148
|
+
showTooltip: true,
|
|
149
|
+
auditClass: compare && !isEquals(input === null || input === void 0 ? void 0 : input.value, auditInputGroup === null || auditInputGroup === void 0 ? void 0 : (_auditInputGroup$inpu2 = auditInputGroup.inputs[index]) === null || _auditInputGroup$inpu2 === void 0 ? void 0 : _auditInputGroup$inpu2.value) ? "audit-class" : ""
|
|
150
|
+
}, index + "-" + (input === null || input === void 0 ? void 0 : input.value) + "-" + compare);
|
|
151
|
+
})
|
|
152
|
+
})]
|
|
153
|
+
}), inputGroup.groupId === "16" && (activeRetailer === null || activeRetailer === void 0 ? void 0 : (_activeRetailer$retai4 = activeRetailer.retailer) === null || _activeRetailer$retai4 === void 0 ? void 0 : _activeRetailer$retai4.id) === 74 && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
154
|
+
className: activeSection === "Ficha técnica" ? "datasheets-layout" : "descriptions-layout",
|
|
155
|
+
children: [(inputGroup === null || inputGroup === void 0 ? void 0 : inputGroup.dataGroup) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
156
|
+
headerType: "retailer-name-header",
|
|
157
|
+
text: "".concat(inputGroup === null || inputGroup === void 0 ? void 0 : inputGroup.dataGroup)
|
|
158
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
159
|
+
className: "inputs-container",
|
|
160
|
+
children: inputGroup === null || inputGroup === void 0 ? void 0 : (_inputGroup$inputs2 = inputGroup.inputs) === null || _inputGroup$inputs2 === void 0 ? void 0 : _inputGroup$inputs2.map(function (input, index) {
|
|
161
|
+
var _dataInputs$input13, _dataInputs$input14, _dataInputs$input15, _dataInputs$input16, _dataInputs$input17, _dataInputs$input18, _auditInputs$input2, _dataInputs$input19, _dataInputs$input20, _dataInputs$input21, _dataInputs$input22, _dataInputs$input23, _dataInputs$input24, _auditInputGroup$inpu3, _auditInputGroup$inpu4;
|
|
162
|
+
|
|
163
|
+
return activeSection === "Ficha técnica" ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
164
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
165
|
+
//disabled={input === 40001}
|
|
166
|
+
disabled: false,
|
|
167
|
+
inputId: (_dataInputs$input15 = dataInputs[input]) === null || _dataInputs$input15 === void 0 ? void 0 : _dataInputs$input15.id,
|
|
168
|
+
version: version,
|
|
169
|
+
inputType: inputTypeValue((_dataInputs$input16 = dataInputs[input]) === null || _dataInputs$input16 === void 0 ? void 0 : _dataInputs$input16.type),
|
|
170
|
+
label: ((_dataInputs$input17 = dataInputs[input]) === null || _dataInputs$input17 === void 0 ? void 0 : _dataInputs$input17.name) + ((_dataInputs$input18 = dataInputs[input]) !== null && _dataInputs$input18 !== void 0 && _dataInputs$input18.required ? "*" : ""),
|
|
171
|
+
value: compare ? (_auditInputs$input2 = auditInputs[input]) === null || _auditInputs$input2 === void 0 ? void 0 : _auditInputs$input2.value : (_dataInputs$input19 = dataInputs[input]) === null || _dataInputs$input19 === void 0 ? void 0 : _dataInputs$input19.value,
|
|
172
|
+
inputPlaceHolder: input === null || input === void 0 ? void 0 : input.placeholder,
|
|
173
|
+
articleId: articleId,
|
|
174
|
+
isRequired: (_dataInputs$input20 = dataInputs[input]) === null || _dataInputs$input20 === void 0 ? void 0 : _dataInputs$input20.required,
|
|
175
|
+
updatedDatasheets: updatedDatasheets,
|
|
176
|
+
setUpdatedDatasheets: setUpdatedDatasheets,
|
|
177
|
+
maxChar: (_dataInputs$input21 = dataInputs[input]) !== null && _dataInputs$input21 !== void 0 && _dataInputs$input21.max_chars ? (_dataInputs$input22 = dataInputs[input]) === null || _dataInputs$input22 === void 0 ? void 0 : _dataInputs$input22.max_chars : 999,
|
|
178
|
+
optionList: (_dataInputs$input23 = dataInputs[input]) === null || _dataInputs$input23 === void 0 ? void 0 : _dataInputs$input23.option_list,
|
|
179
|
+
description: (_dataInputs$input24 = dataInputs[input]) === null || _dataInputs$input24 === void 0 ? void 0 : _dataInputs$input24.description,
|
|
180
|
+
showTooltip: true,
|
|
181
|
+
inputGroup: inputGroup,
|
|
182
|
+
dataInputs: dataInputs,
|
|
183
|
+
onChange: setUpdatedBoxData,
|
|
184
|
+
auditClass: compare && !isEquals(dataInputs[input].value, auditInputs[input].value) ? "audit-class" : ""
|
|
185
|
+
}, index + "-" + ((_dataInputs$input13 = dataInputs[input]) === null || _dataInputs$input13 === void 0 ? void 0 : _dataInputs$input13.value) + "-" + ((_dataInputs$input14 = dataInputs[input]) === null || _dataInputs$input14 === void 0 ? void 0 : _dataInputs$input14.id) + "-" + compare)
|
|
186
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
187
|
+
inputId: input.id,
|
|
188
|
+
index: index,
|
|
189
|
+
inputType: "textarea",
|
|
190
|
+
label: (input === null || input === void 0 ? void 0 : input.name) + (input.required ? "*" : ""),
|
|
191
|
+
value: compare ? auditInputGroup === null || auditInputGroup === void 0 ? void 0 : (_auditInputGroup$inpu3 = auditInputGroup.inputs[index]) === null || _auditInputGroup$inpu3 === void 0 ? void 0 : _auditInputGroup$inpu3.value : input === null || input === void 0 ? void 0 : input.value,
|
|
192
|
+
isRequired: input.required,
|
|
193
|
+
maxChar: input.max_chars,
|
|
194
|
+
inputPlaceHolder: input === null || input === void 0 ? void 0 : input.placeholder,
|
|
195
|
+
updatedDescriptions: updatedDescriptions,
|
|
196
|
+
setUpdatedDescriptions: setUpdatedDescriptions,
|
|
197
|
+
articleId: articleId,
|
|
198
|
+
version: version,
|
|
199
|
+
dinamicHeight: dinamicHeight,
|
|
200
|
+
description: input === null || input === void 0 ? void 0 : input.description,
|
|
201
|
+
showTooltip: true,
|
|
202
|
+
auditClass: compare && !isEquals(input === null || input === void 0 ? void 0 : input.value, auditInputGroup === null || auditInputGroup === void 0 ? void 0 : (_auditInputGroup$inpu4 = auditInputGroup.inputs[index]) === null || _auditInputGroup$inpu4 === void 0 ? void 0 : _auditInputGroup$inpu4.value) ? "audit-class" : ""
|
|
203
|
+
}, index + "-" + (input === null || input === void 0 ? void 0 : input.value) + "-" + compare);
|
|
204
|
+
})
|
|
205
|
+
})]
|
|
101
206
|
})]
|
|
102
207
|
});
|
|
103
208
|
};
|
|
@@ -31,164 +31,86 @@ ProviderProductEditionDefault.args = {
|
|
|
31
31
|
"Ficha técnica": false,
|
|
32
32
|
Imágenes: false
|
|
33
33
|
},
|
|
34
|
-
token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.
|
|
35
|
-
articleId:
|
|
36
|
-
category:
|
|
37
|
-
version:
|
|
34
|
+
token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmNTkyN2Y4ZS1jYmY3LTQ5MjItOWUwOS1lNjllYzBiMjczMWEiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImY1OTI3ZjhlLWNiZjctNDkyMi05ZTA5LWU2OWVjMGIyNzMxYSIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiIyM2Q1NTlmYi1jMzIwLTRhMjItYjJmNy1lOThhYTFhZGEyNmYiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY4MzkyNjgyMSwibmFtZSI6IklzbWFlbCBMb3BleiIsInBob25lX251bWJlciI6Iis1MjMxMTEzNjYzMzYiLCJleHAiOjE2ODM5MzA0MjEsImlhdCI6MTY4MzkyNjgyMSwiZW1haWwiOiJpbG9wZXpAY29udGVudG9oLmNvbSJ9.TvCoaKoctj5mypXWMz3NyV1Vm1ToBV0vJmpVyZSQw4-ikTChkxcZ5tFYvqhk1GdvNCFttfSQIqM-14dAYYBc28YwwKP86gqOuzB1fG41rN5x1Yx3tkJq6hiVRgiBbSHWtThA9c8VnxNQbrJiaRTvvkDiM5KNTEst1oxQHL5Ct9_iKQMJMRFie7Xv0xnyS0qZ6QHK4Q2A9OHsnDkAuumALZJcE19Zh6VgSitgWrZiz3x5Text4Q-U-R48NUAzUFirAzYZzJN_fCme5pGf1AnUaZjeUjPsmrV5TBVzPEYwXO0KG8lYjL8id80D7tbGs28ZIK6B4rf3-eqI_ngmBB4CjQ",
|
|
35
|
+
articleId: 39550,
|
|
36
|
+
category: 287,
|
|
37
|
+
version: 1,
|
|
38
38
|
productSelected: {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
brand: null,
|
|
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: "Abarrotes|Abarrotes Secos|Frutos Secos",
|
|
60
|
-
company_name: "GRUPO BRAHMA",
|
|
61
|
-
country: "México",
|
|
62
|
-
id_category: "11",
|
|
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: 15275,
|
|
70
|
-
id_article: 39485,
|
|
71
|
-
id_auditor: 37,
|
|
72
|
-
name: "Mix de nueces",
|
|
73
|
-
timestamp: "2023-07-14T21:03:19.000Z",
|
|
74
|
-
upc: "7543453453"
|
|
75
|
-
},
|
|
76
|
-
retailers: [{
|
|
77
|
-
id: 34,
|
|
78
|
-
name: "San Pablo"
|
|
79
|
-
}],
|
|
80
|
-
statusByRetailer: {
|
|
81
|
-
34: {
|
|
82
|
-
datasheet: "AA",
|
|
83
|
-
description: "AA",
|
|
84
|
-
images: "AA"
|
|
85
|
-
}
|
|
86
|
-
},
|
|
39
|
+
id_article: 39550,
|
|
40
|
+
upc: 43654697,
|
|
41
|
+
name: "Campana de Cocina",
|
|
42
|
+
timestamp: "2023-08-04T22:23:40.000Z",
|
|
43
|
+
categoryName: "Ferretería|Ferretería General|Tornillos, Tuercas y Arandelas",
|
|
44
|
+
id_category: 287,
|
|
45
|
+
version: 1,
|
|
87
46
|
retailersAvailable: [{
|
|
88
|
-
|
|
89
|
-
|
|
47
|
+
name: "The Home Depot Golden",
|
|
48
|
+
"id": 58
|
|
49
|
+
}, {
|
|
50
|
+
name: "The Home Depot Onboarding",
|
|
51
|
+
"id": 68
|
|
90
52
|
}],
|
|
91
|
-
|
|
92
|
-
upc: "7543453453",
|
|
93
|
-
id_article: 39485,
|
|
94
|
-
id_order: 15275
|
|
53
|
+
percentage: "89"
|
|
95
54
|
},
|
|
96
55
|
productToEdit: {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
product: {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
brand: null,
|
|
108
|
-
retailerOrder: 0,
|
|
109
|
-
missing: {
|
|
110
|
-
datasheet: null,
|
|
111
|
-
descriptions: null,
|
|
112
|
-
images: null
|
|
113
|
-
},
|
|
114
|
-
services: {
|
|
115
|
-
datasheets: 1,
|
|
116
|
-
descriptions: 1,
|
|
117
|
-
images: 1
|
|
118
|
-
},
|
|
119
|
-
article: {
|
|
120
|
-
category: "Abarrotes|Abarrotes Secos|Frutos Secos",
|
|
121
|
-
company_name: "GRUPO BRAHMA",
|
|
122
|
-
country: "México",
|
|
123
|
-
id_category: "11",
|
|
124
|
-
id_datasheet_especialist: 54,
|
|
125
|
-
id_datasheet_facilitator: 52,
|
|
126
|
-
id_description_especialist: 54,
|
|
127
|
-
id_description_facilitator: 52,
|
|
128
|
-
id_images_especialist: 55,
|
|
129
|
-
id_images_facilitator: 53,
|
|
130
|
-
id_order: 15275,
|
|
131
|
-
id_article: 39485,
|
|
132
|
-
id_auditor: 37,
|
|
133
|
-
name: "Mix de nueces",
|
|
134
|
-
timestamp: "2023-07-14T21:03:19.000Z",
|
|
135
|
-
upc: "7543453453"
|
|
136
|
-
},
|
|
137
|
-
retailers: [{
|
|
138
|
-
id: 34,
|
|
139
|
-
name: "San Pablo"
|
|
140
|
-
}],
|
|
141
|
-
statusByRetailer: {
|
|
142
|
-
34: {
|
|
143
|
-
datasheet: "AA",
|
|
144
|
-
description: "AA",
|
|
145
|
-
images: "AA"
|
|
146
|
-
}
|
|
147
|
-
},
|
|
56
|
+
idCategory: 287,
|
|
57
|
+
ArticleId: 39550,
|
|
58
|
+
product: [{
|
|
59
|
+
id_article: 39550,
|
|
60
|
+
upc: 43654697,
|
|
61
|
+
name: "Campana de Cocina",
|
|
62
|
+
timestamp: "2023-08-04T22:23:40.000Z",
|
|
63
|
+
categoryName: "Ferretería|Ferretería General|Tornillos, Tuercas y Arandelas",
|
|
64
|
+
id_category: 287,
|
|
65
|
+
version: 1,
|
|
148
66
|
retailersAvailable: [{
|
|
149
|
-
|
|
150
|
-
|
|
67
|
+
name: "The Home Depot Golden",
|
|
68
|
+
id: 58,
|
|
69
|
+
percentage: 100
|
|
70
|
+
}, {
|
|
71
|
+
name: "The Home Depot Onboarding",
|
|
72
|
+
id: 68,
|
|
73
|
+
percentage: 78
|
|
151
74
|
}],
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
id_article: 39485,
|
|
155
|
-
id_order: 15275
|
|
156
|
-
}
|
|
75
|
+
percentage: "89"
|
|
76
|
+
}]
|
|
157
77
|
},
|
|
158
78
|
location: {
|
|
159
79
|
pathname: "/EditProducts",
|
|
160
80
|
search: "",
|
|
161
81
|
hash: "",
|
|
162
82
|
state: {
|
|
83
|
+
withChat: true,
|
|
84
|
+
chatType: "product_status",
|
|
163
85
|
origin: "RequestWithContentoh"
|
|
164
86
|
},
|
|
165
87
|
key: "24vwut"
|
|
166
88
|
},
|
|
167
89
|
user: {
|
|
168
|
-
id_user:
|
|
169
|
-
name: "
|
|
170
|
-
last_name: "
|
|
171
|
-
email: "
|
|
172
|
-
position: "Test
|
|
173
|
-
telephone: "+
|
|
90
|
+
id_user: 191,
|
|
91
|
+
name: "Demo",
|
|
92
|
+
last_name: "Demo",
|
|
93
|
+
email: "merchants24feb@allfreemail.net",
|
|
94
|
+
position: "Test",
|
|
95
|
+
telephone: "+52123456789",
|
|
174
96
|
country: "México",
|
|
175
|
-
id_company:
|
|
176
|
-
id_cognito: "
|
|
97
|
+
id_company: 923,
|
|
98
|
+
id_cognito: "c3cd160c-76c2-497c-9357-5ef949307e1e",
|
|
177
99
|
birth_Date: null,
|
|
178
|
-
about_me:
|
|
179
|
-
zip_code:
|
|
180
|
-
address:
|
|
181
|
-
job:
|
|
182
|
-
id_stripe:
|
|
100
|
+
about_me: null,
|
|
101
|
+
zip_code: null,
|
|
102
|
+
address: null,
|
|
103
|
+
job: null,
|
|
104
|
+
id_stripe: null,
|
|
183
105
|
id_role: 0,
|
|
184
106
|
active: 1,
|
|
185
107
|
is_retailer: 0,
|
|
186
108
|
email_notify: 1,
|
|
187
|
-
is_user_tech:
|
|
109
|
+
is_user_tech: null,
|
|
188
110
|
membership: {
|
|
189
|
-
id:
|
|
190
|
-
start_date: "
|
|
191
|
-
end_date: "
|
|
111
|
+
id: 114,
|
|
112
|
+
start_date: "2023-02-24T18:14:43.000Z",
|
|
113
|
+
end_date: "2024-02-24T18:14:43.000Z",
|
|
192
114
|
planID: 8,
|
|
193
115
|
plan: "prod_KtlhECVSFG2iro",
|
|
194
116
|
name: "Plan Pro",
|
|
@@ -196,23 +118,37 @@ ProviderProductEditionDefault.args = {
|
|
|
196
118
|
products_limit: "5000",
|
|
197
119
|
type: "Enterprise"
|
|
198
120
|
},
|
|
199
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
121
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-191/191.png?1697171804447"
|
|
200
122
|
},
|
|
201
123
|
company: {
|
|
202
|
-
id_company:
|
|
203
|
-
trade_name: "
|
|
204
|
-
company_name: "
|
|
205
|
-
rfc: "
|
|
206
|
-
adress: "
|
|
207
|
-
about_company:
|
|
208
|
-
telephone:
|
|
209
|
-
web_site:
|
|
210
|
-
zip_code:
|
|
124
|
+
id_company: 923,
|
|
125
|
+
trade_name: "Demo",
|
|
126
|
+
company_name: "Demo",
|
|
127
|
+
rfc: "Demo",
|
|
128
|
+
adress: "Demo",
|
|
129
|
+
about_company: null,
|
|
130
|
+
telephone: null,
|
|
131
|
+
web_site: null,
|
|
132
|
+
zip_code: null,
|
|
211
133
|
email: null,
|
|
212
|
-
social_link:
|
|
134
|
+
social_link: null,
|
|
213
135
|
is_retailer: 0,
|
|
214
|
-
financedRetailers: [
|
|
215
|
-
|
|
136
|
+
financedRetailers: [{
|
|
137
|
+
id: 68,
|
|
138
|
+
name: "The Home Depot Onboarding",
|
|
139
|
+
country: "México",
|
|
140
|
+
id_region: 1,
|
|
141
|
+
active: 1,
|
|
142
|
+
flow: 1
|
|
143
|
+
}],
|
|
144
|
+
retailers: [{
|
|
145
|
+
id: 68,
|
|
146
|
+
name: "The Home Depot Onboarding",
|
|
147
|
+
country: "México",
|
|
148
|
+
id_region: 1,
|
|
149
|
+
"active": 1,
|
|
150
|
+
flow: 1
|
|
151
|
+
}]
|
|
216
152
|
},
|
|
217
153
|
showSurvey: function showSurvey(v) {
|
|
218
154
|
return v && alert("se muestra");
|