contentoh-components-library 21.5.10 → 21.5.11
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/organisms/InputGroup/index.js +30 -30
- package/dist/components/organisms/Table/styles.js +1 -1
- package/dist/components/pages/MultipleEdition/saveData.js +9 -19
- package/dist/components/pages/MultipleEdition/styles.js +1 -1
- package/dist/components/pages/MultipleEdition/utils.js +86 -153
- package/package.json +4 -1
- package/src/assets/images/Icons/addv2.svg +8 -0
- package/src/assets/images/Icons/beenhere.svg +9 -0
- package/src/assets/images/Icons/checkv2.svg +8 -0
- package/src/assets/images/Icons/close-magenta.svg +9 -0
- package/src/assets/images/Icons/close.svg +8 -0
- package/src/assets/images/Icons/closeCircle.svg +8 -0
- package/src/assets/images/Icons/delete-forever-red.svg +9 -0
- package/src/assets/images/Icons/delete-forever-white.svg +10 -0
- package/src/assets/images/Icons/edit.svg +8 -0
- package/src/assets/images/Icons/fullscreen.svg +3 -0
- package/src/assets/images/Icons/infoNR.svg +8 -0
- package/src/assets/images/Icons/options.svg +3 -0
- package/src/assets/images/Icons/save-white-gray.svg +9 -0
- package/src/assets/images/Icons/save-white.svg +9 -0
- package/src/assets/images/Icons/save.svg +8 -0
- package/src/assets/images/Icons/search.svg +3 -0
- package/src/assets/images/Icons/settings.svg +8 -0
- package/src/assets/images/Icons/trash.svg +8 -0
- package/src/assets/images/Icons/undo.svg +8 -0
- package/src/assets/images/Icons/upload-file-white.svg +4 -0
- package/src/assets/images/Icons/upload-file.svg +10 -0
- package/src/assets/images/Icons/upload_file.svg +10 -0
- package/src/assets/images/Icons/warningv2.svg +3 -0
- package/src/assets/images/checkBox/checkrosa.svg +3 -0
- package/src/assets/images/checkBox/checkverde.svg +3 -0
- package/src/assets/images/flagsv2/highPriority.svg +3 -0
- package/src/assets/images/flagsv2/lowPriority.svg +3 -0
- package/src/assets/images/flagsv2/mediumPriority.svg +3 -0
- package/src/assets/images/flagsv2/noPriority.svg +3 -0
- package/src/assets/images/generalButton/closeIconWhite.svg +4 -0
- package/src/assets/images/generalButton/closeIconv2.svg +4 -0
- package/src/assets/images/generalButton/saveIconpink.svg +3 -0
- package/src/components/atoms/Avatar/index.js +8 -2
- package/src/components/atoms/ButtonV2/ButtonV2.stories.js +1 -0
- package/src/components/atoms/ButtonV2/index.js +1 -0
- package/src/components/atoms/ButtonV2/styles.js +16 -0
- package/src/components/atoms/CharsMissing/Wysiwyg.stories.js +12 -0
- package/src/components/atoms/CharsMissing/index.js +60 -0
- package/src/components/atoms/CharsMissing/styles.js +44 -0
- package/src/components/atoms/CheckBox/CheckBox.stories.js +5 -0
- package/src/components/atoms/CheckBox/index.js +5 -1
- package/src/components/atoms/CheckBox/styles.js +9 -3
- package/src/components/atoms/CustomChip/CustomChip.stories.js +16 -0
- package/src/components/atoms/CustomChip/index.js +34 -0
- package/src/components/atoms/CustomChip/styles.js +6 -0
- package/src/components/atoms/FeatureTagv2/FeatureTagv2.stories.js +16 -0
- package/src/components/atoms/FeatureTagv2/index.js +10 -0
- package/src/components/atoms/FeatureTagv2/styles.js +56 -0
- package/src/components/atoms/GeneralButton/styles.js +46 -0
- package/src/components/atoms/GeneralInput/index.js +3 -0
- package/src/components/atoms/GeneralInput/styles.js +19 -1
- package/src/components/atoms/GeneralInputv2/GeneralInputv2.stories.js +33 -0
- package/src/components/atoms/GeneralInputv2/index.js +155 -0
- package/src/components/atoms/GeneralInputv2/styles.js +67 -0
- package/src/components/atoms/InputFormatter/index.js +2 -1
- package/src/components/atoms/InputFormatter/styles.js +9 -4
- package/src/components/atoms/InputFormatterv2/Wysiwyg.stories.js +12 -0
- package/src/components/atoms/InputFormatterv2/index.js +148 -0
- package/src/components/atoms/InputFormatterv2/styles.js +39 -0
- package/src/components/atoms/InputImages/InputImages.stories.js +19 -0
- package/src/components/atoms/InputImages/index.js +25 -0
- package/src/components/atoms/InputImages/styles.js +17 -0
- package/src/components/atoms/Multiselect/Multiselect.stories.js +364 -0
- package/src/components/atoms/Multiselect/index.js +351 -0
- package/src/components/atoms/Multiselect/styles.js +33 -0
- package/src/components/atoms/NumberMandatory/NumberMandatory.stories.js +19 -0
- package/src/components/atoms/NumberMandatory/index.js +16 -0
- package/src/components/atoms/NumberMandatory/styles.js +11 -0
- package/src/components/atoms/ObservationFlag/ObservationFlag.stories.js +20 -0
- package/src/components/atoms/ObservationFlag/index.js +167 -0
- package/src/components/atoms/ObservationFlag/styles.js +104 -0
- package/src/components/atoms/PriorityFlagv2/PriorityFlagv2.stories.js +20 -0
- package/src/components/atoms/PriorityFlagv2/index.js +20 -0
- package/src/components/atoms/PriorityFlagv2/styles.js +6 -0
- package/src/components/atoms/ProductImage/index.js +24 -11
- package/src/components/atoms/ProductImage/styles.js +7 -0
- package/src/components/atoms/ProductImagev2/ProductImagev2.stories.js +28 -0
- package/src/components/atoms/ProductImagev2/index.js +16 -0
- package/src/components/atoms/ProductImagev2/styles.js +62 -0
- package/src/components/atoms/Progress/Progress.stories.js +25 -0
- package/src/components/atoms/Progress/index.js +74 -0
- package/src/components/atoms/Progress/styles.js +98 -0
- package/src/components/atoms/ScreenHeaderv2/ScreenHeaderv2.stories.js +53 -0
- package/src/components/atoms/ScreenHeaderv2/index.js +134 -0
- package/src/components/atoms/ScreenHeaderv2/styles.js +103 -0
- package/src/components/atoms/Selectv2/VersionSelect.js +27 -0
- package/src/components/atoms/Selectv2/index.js +35 -0
- package/src/components/atoms/Selectv2/style.js +93 -0
- package/src/components/atoms/SliderToolTip/styles.js +1 -1
- package/src/components/atoms/TabSection/index.js +1 -1
- package/src/components/atoms/TabSection/styles.js +0 -3
- package/src/components/atoms/TabSectionv2/TabSection.stories.js +25 -0
- package/src/components/atoms/TabSectionv2/index.js +9 -0
- package/src/components/atoms/TabSectionv2/styles.js +20 -0
- package/src/components/atoms/TooltipLight/Tooltip.stories.js +20 -0
- package/src/components/atoms/TooltipLight/index.js +46 -0
- package/src/components/atoms/TooltipLight/styles.js +65 -0
- package/src/components/atoms/WordsMissing/Wysiwyg.stories.js +12 -0
- package/src/components/atoms/WordsMissing/index.js +60 -0
- package/src/components/atoms/WordsMissing/styles.js +10 -0
- package/src/components/molecules/AddGroup/AddGroup.stories.js +15 -0
- package/src/components/molecules/AddGroup/index.js +84 -0
- package/src/components/molecules/AddGroup/styles.js +141 -0
- package/src/components/molecules/AsignationInfo/AsignationInfo.stories.js +17 -0
- package/src/components/molecules/AsignationInfo/index.js +108 -0
- package/src/components/molecules/AsignationInfo/styles.js +86 -0
- package/src/components/molecules/BoxAttribute/index.js +32 -25
- package/src/components/molecules/BoxAttribute/styles.js +1 -1
- package/src/components/molecules/BoxButtons/index.js +23 -22
- package/src/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/src/components/molecules/EditionActiveImagev2/EditionActiveImagev2.stories.js +12 -0
- package/src/components/molecules/EditionActiveImagev2/index.js +15 -0
- package/src/components/molecules/EditionActiveImagev2/styles.js +7 -0
- package/src/components/molecules/EditionTabs/EditionTabs.stories.js +12 -0
- package/src/components/molecules/EditionTabs/index.js +33 -0
- package/src/components/molecules/EditionTabs/styles.js +24 -0
- package/src/components/molecules/FeaturesBarv2/FeaturesBarv2.stories.js +20 -0
- package/src/components/molecules/FeaturesBarv2/index.js +32 -0
- package/src/components/molecules/FeaturesBarv2/styles.js +17 -0
- package/src/components/molecules/GalleryElement/index.js +76 -1
- package/src/components/molecules/GalleryElementv2/GalleryElementv2.stories.js +30 -0
- package/src/components/molecules/GalleryElementv2/index.js +142 -0
- package/src/components/molecules/GalleryElementv2/styles.js +119 -0
- package/src/components/molecules/GalleryHeader/index.js +1 -0
- package/src/components/molecules/GalleryHeaderv2/GalleryHeaderv2.stories.js +10 -0
- package/src/components/molecules/GalleryHeaderv2/index.js +25 -0
- package/src/components/molecules/GalleryHeaderv2/styles.js +47 -0
- package/src/components/molecules/GroupSelect/GroupSelect.stories.js +35 -0
- package/src/components/molecules/GroupSelect/SelectItem.js +105 -0
- package/src/components/molecules/GroupSelect/index.js +190 -0
- package/src/components/molecules/GroupSelect/styles.js +124 -0
- package/src/components/molecules/HeaderTop/index.js +52 -6
- package/src/components/molecules/HeaderTopv2/HeaderTopv2.stories.js +10 -0
- package/src/components/molecules/HeaderTopv2/index.js +100 -0
- package/src/components/molecules/HeaderTopv2/styles.js +33 -0
- package/src/components/molecules/ImageSelectorv2/ImageSelectorv2.stories.js +46 -0
- package/src/components/molecules/ImageSelectorv2/index.js +22 -0
- package/src/components/molecules/ImageSelectorv2/styles.js +15 -0
- package/src/components/molecules/Phase/Phase.stories.js +107 -0
- package/src/components/molecules/Phase/index.js +391 -0
- package/src/components/molecules/Phase/styles.js +97 -0
- package/src/components/molecules/ProductNameHeader/index.js +19 -1
- package/src/components/molecules/ProductNameHeaderv2/ProductNameHeaderv2.stories.js +37 -0
- package/src/components/molecules/ProductNameHeaderv2/index.js +12 -0
- package/src/components/molecules/ProductNameHeaderv2/styles.js +10 -0
- package/src/components/molecules/ProductSkuStatus/ProductSkuStatus.stories.js +37 -0
- package/src/components/molecules/ProductSkuStatus/index.js +26 -0
- package/src/components/molecules/ProductSkuStatus/styles.js +7 -0
- package/src/components/molecules/RetailerSelectorv2/RetailerSelectorv2.stories.js +35 -0
- package/src/components/molecules/RetailerSelectorv2/index.js +80 -0
- package/src/components/molecules/RetailerSelectorv2/styles.js +21 -0
- package/src/components/molecules/RowItem/styles.js +0 -1
- package/src/components/molecules/ServiceDataValidator/ServiceDataValidator.stories.js +90 -0
- package/src/components/molecules/ServiceDataValidator/index.js +49 -0
- package/src/components/molecules/ServiceDataValidator/styles.js +36 -0
- package/src/components/molecules/SignInLogin/index.js +11 -11
- package/src/components/molecules/StatusAsignationInfo/FinancedCompanies.js +501 -63
- package/src/components/molecules/StatusAsignationInfo/index.js +1 -1
- package/src/components/molecules/StatusRetailer/StatusAsignationInfo.stories.js +17 -0
- package/src/components/molecules/StatusRetailer/index.js +55 -0
- package/src/components/molecules/StatusRetailer/styles.js +85 -0
- package/src/components/molecules/StripeCardSelector/CardSelector.stories.js +1 -2
- package/src/components/molecules/TabsMenuv2/TabsMenuv2.stories.js +19 -0
- package/src/components/molecules/TabsMenuv2/index.js +112 -0
- package/src/components/molecules/TabsMenuv2/styles.js +19 -0
- package/src/components/molecules/TagAndInput/index.js +8 -6
- package/src/components/molecules/TagAndInputv2/TagAndInputv2.stories.js +24 -0
- package/src/components/molecules/TagAndInputv2/index.js +86 -0
- package/src/components/molecules/TagAndInputv2/styles.js +35 -0
- package/src/components/molecules/Validation/Validation.stories.js +12 -0
- package/src/components/molecules/Validation/index.js +77 -0
- package/src/components/molecules/Validation/styles.js +19 -0
- package/src/components/molecules/VersionItemv2/VersionItemv2.stories.js +14 -0
- package/src/components/molecules/VersionItemv2/index.js +59 -0
- package/src/components/molecules/VersionItemv2/styles.js +47 -0
- package/src/components/organisms/BarButtons/BarButtons.stories.js +13 -0
- package/src/components/organisms/BarButtons/index.js +150 -0
- package/src/components/organisms/BarButtons/styles.js +54 -0
- package/src/components/organisms/Chat/Chat.stories.js +27 -7
- package/src/components/organisms/Chat/ContainerItems/index.js +18 -2
- package/src/components/organisms/Chat/ContainerItems/styles.js +14 -2
- package/src/components/organisms/Chat/ContentChat/index.js +88 -12
- package/src/components/organisms/Chat/Footer/index.js +11 -0
- package/src/components/organisms/Chat/index.js +46 -4
- package/src/components/organisms/Chat/styles.js +4 -0
- package/src/components/organisms/Chatv2/ChatLists/ChatLists.stories.js +65 -0
- package/src/components/organisms/Chatv2/ChatLists/Rotoplas.jpeg +0 -0
- package/src/components/organisms/Chatv2/ChatLists/THD.png +0 -0
- package/src/components/organisms/Chatv2/ChatLists/index.js +141 -0
- package/src/components/organisms/Chatv2/ChatLists/styles.js +162 -0
- package/src/components/organisms/Chatv2/Chatv2.stories.js +184 -0
- package/src/components/organisms/Chatv2/ContainerItems/ContainerItems.stories.js +142 -0
- package/src/components/organisms/Chatv2/ContainerItems/index.js +538 -0
- package/src/components/organisms/Chatv2/ContainerItems/styles.js +360 -0
- package/src/components/organisms/Chatv2/ContentChat/ContentChat.stories.js +102 -0
- package/src/components/organisms/Chatv2/ContentChat/Rotoplas.jpeg +0 -0
- package/src/components/organisms/Chatv2/ContentChat/THD.png +0 -0
- package/src/components/organisms/Chatv2/ContentChat/index.js +1016 -0
- package/src/components/organisms/Chatv2/ContentChat/styles.js +44 -0
- package/src/components/organisms/Chatv2/Footer/Footer.stories.js +22 -0
- package/src/components/organisms/Chatv2/Footer/index.js +668 -0
- package/src/components/organisms/Chatv2/Footer/styles.js +290 -0
- package/src/components/organisms/Chatv2/Header/Header.stories.js +66 -0
- package/src/components/organisms/Chatv2/Header/index.js +93 -0
- package/src/components/organisms/Chatv2/Header/styles.js +49 -0
- package/src/components/organisms/Chatv2/index.js +281 -0
- package/src/components/organisms/Chatv2/styles.js +85 -0
- package/src/components/organisms/CompleteServices/CompleteServices.stories.js +91 -0
- package/src/components/organisms/CompleteServices/index.js +82 -0
- package/src/components/organisms/CompleteServices/styles.js +35 -0
- package/src/components/organisms/DashboardMetric/index.js +6 -3
- package/src/components/organisms/DragAndDropPhases/DragAndDropPhases.stories.js +13 -0
- package/src/components/organisms/DragAndDropPhases/index.js +336 -0
- package/src/components/organisms/DragAndDropPhases/styles.js +107 -0
- package/src/components/organisms/DragPrueba/DragPrueba.stories.js +12 -0
- package/src/components/organisms/DragPrueba/index.js +57 -0
- package/src/components/organisms/DragPrueba/styles.js +8 -0
- package/src/components/organisms/EditGroup/EditGroup.stories.js +20 -0
- package/src/components/organisms/EditGroup/index.js +321 -0
- package/src/components/organisms/EditGroup/styles.js +207 -0
- package/src/components/organisms/FullProductNameHeader/index.js +13 -1
- package/src/components/organisms/FullProductNamev2/FullProductNamev2.stories.js +28 -0
- package/src/components/organisms/FullProductNamev2/index.js +101 -0
- package/src/components/organisms/FullProductNamev2/styles.js +49 -0
- package/src/components/organisms/FullTabsMenuv2/FullTabsMenuv2.stories.js +22 -0
- package/src/components/organisms/FullTabsMenuv2/index.js +142 -0
- package/src/components/organisms/FullTabsMenuv2/styles.js +47 -0
- package/src/components/organisms/GridProducts/GridProducts.stories.js +682 -107
- package/src/components/organisms/GridProducts/index.js +1 -1
- package/src/components/organisms/ImageDataTablev2/ImageDataTablev2.stories.js +24 -0
- package/src/components/organisms/ImageDataTablev2/index.js +124 -0
- package/src/components/organisms/ImageDataTablev2/styles.js +18 -0
- package/src/components/organisms/ImagePreviewerv2/ImagePreviewerv2.stories.js +38 -0
- package/src/components/organisms/ImagePreviewerv2/index.js +22 -0
- package/src/components/organisms/ImagePreviewerv2/styles.js +7 -0
- package/src/components/organisms/ImageUploader/ImageUploader.stories.js +15 -0
- package/src/components/organisms/ImageUploader/index.js +62 -0
- package/src/components/organisms/ImageUploader/styles.js +29 -0
- package/src/components/organisms/ImageVisor/ImageVisor.stories.js +15 -0
- package/src/components/organisms/ImageVisor/index.js +143 -0
- package/src/components/organisms/ImageVisor/styles.js +106 -0
- package/src/components/organisms/InputGroup/index.js +307 -144
- package/src/components/organisms/InputGroup/styles.js +31 -0
- package/src/components/organisms/InputGroupv2/InputGroupv2.stories.js +31 -0
- package/src/components/organisms/InputGroupv2/index.js +296 -0
- package/src/components/organisms/InputGroupv2/styles.js +90 -0
- package/src/components/organisms/MandatoryBar/MandatoryBar.stories.js +18 -0
- package/src/components/organisms/MandatoryBar/index.js +31 -0
- package/src/components/organisms/MandatoryBar/styles.js +12 -0
- package/src/components/organisms/Modal/Modal.stories.js +2 -1
- package/src/components/organisms/Modal/index.js +9 -2
- package/src/components/organisms/Modal/styles.js +8 -1
- package/src/components/organisms/OrderDetail/utils/Table/utils.js +6 -16
- package/src/components/organisms/ProductImageModalv2/ProductImageModalv2.stories.js +90 -0
- package/src/components/organisms/ProductImageModalv2/index.js +105 -0
- package/src/components/organisms/ProductImageModalv2/styles.js +71 -0
- package/src/components/organisms/RenameImagesBar/RenameImagesBar.stories.js +18 -0
- package/src/components/organisms/RenameImagesBar/index.js +30 -0
- package/src/components/organisms/RenameImagesBar/styles.js +12 -0
- package/src/components/organisms/Table/Table.stories.js +609 -0
- package/src/components/organisms/Table/index.js +84 -0
- package/src/components/organisms/Table/styles.js +114 -0
- package/src/components/organisms/VersionSelectorv2/VersionSelectorv2.stories.js +15 -0
- package/src/components/organisms/VersionSelectorv2/index.js +105 -0
- package/src/components/organisms/VersionSelectorv2/styles.js +45 -0
- package/src/components/pages/Dashboard/Dashboard.stories.js +33 -38
- package/src/components/pages/Dashboard/index.js +36 -7
- package/src/components/pages/MultipleEdition/MultipleEdition.stories.js +17 -0
- package/src/components/pages/MultipleEdition/components/ImageUploader.js +62 -0
- package/src/components/pages/MultipleEdition/components/ImageUploaderStyles.js +29 -0
- package/src/components/pages/MultipleEdition/components/ImageVisor.js +143 -0
- package/src/components/pages/MultipleEdition/components/styles.js +106 -0
- package/src/components/pages/MultipleEdition/index.js +248 -0
- package/src/components/pages/MultipleEdition/saveData.js +92 -0
- package/src/components/pages/MultipleEdition/styles.js +201 -0
- package/src/components/pages/MultipleEdition/utils.js +1073 -0
- package/src/components/pages/ProductEditionv2/ProductEditionv2.stories.js +213 -0
- package/src/components/pages/ProductEditionv2/index.js +1758 -0
- package/src/components/pages/ProductEditionv2/styles.js +154 -0
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +56 -60
- package/src/components/pages/ProviderProductEdition/index.js +148 -133
- package/src/components/pages/ProviderProductEdition/styles.js +5 -1
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +4 -0
- package/src/components/pages/RetailerProductEdition/generateThumnail.js +21 -0
- package/src/components/pages/RetailerProductEdition/index.js +293 -300
- package/src/components/pages/RetailerProductEdition/styles.js +4 -0
- package/src/components/pages/RetailerProductEdition/utils.js +37 -0
- package/src/global-files/data.js +6 -10
- package/src/global-files/variables.js +6 -0
- package/src/index.js +12 -0
|
@@ -189,31 +189,31 @@ var InputGroup = function InputGroup(_ref) {
|
|
|
189
189
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
190
190
|
className: "inputs-container",
|
|
191
191
|
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) {
|
|
192
|
-
var _dataInputs$input, _dataInputs$input2, _dataInputs$input3, _dataInputs$input4, _dataInputs$input5, _dataInputs$input6, _dataInputs$input7,
|
|
192
|
+
var _dataInputs$input, _dataInputs$input2, _dataInputs$input3, _dataInputs$input4, _dataInputs$input5, _dataInputs$input6, _dataInputs$input7, _dataInputs$input8, _dataInputs$input9, _dataInputs$input10, _auditInputs$input, _dataInputs$input11, _dataInputs$input12, _dataInputs$input13, _dataInputs$input14, _dataInputs$input15, _dataInputs$input16, _dataInputs$input17, _dataInputs$input18, _dataInputs$input19, _dataInputs$input20, _auditInputGroup$inpu, _auditInputGroup$inpu2;
|
|
193
193
|
|
|
194
194
|
return activeSection === "Ficha técnica" ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
195
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
195
|
+
children: [(((_dataInputs$input = dataInputs[input]) === null || _dataInputs$input === void 0 ? void 0 : _dataInputs$input.id) != 6700 && ((_dataInputs$input2 = dataInputs[input]) === null || _dataInputs$input2 === void 0 ? void 0 : _dataInputs$input2.id) != 6701 || ((_dataInputs$input3 = dataInputs[input]) === null || _dataInputs$input3 === void 0 ? void 0 : _dataInputs$input3.isApproved) != undefined) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
196
196
|
//disabled={input === 40001}
|
|
197
|
-
disabled: (_dataInputs$
|
|
198
|
-
inputId: (_dataInputs$
|
|
197
|
+
disabled: (_dataInputs$input6 = dataInputs[input]) === null || _dataInputs$input6 === void 0 ? void 0 : _dataInputs$input6.isApproved,
|
|
198
|
+
inputId: (_dataInputs$input7 = dataInputs[input]) === null || _dataInputs$input7 === void 0 ? void 0 : _dataInputs$input7.id,
|
|
199
199
|
version: version,
|
|
200
|
-
inputType: inputTypeValue((_dataInputs$
|
|
201
|
-
label: ((_dataInputs$
|
|
202
|
-
value: compare ? (_auditInputs$input = auditInputs[input]) === null || _auditInputs$input === void 0 ? void 0 : _auditInputs$input.value : (_dataInputs$
|
|
200
|
+
inputType: inputTypeValue((_dataInputs$input8 = dataInputs[input]) === null || _dataInputs$input8 === void 0 ? void 0 : _dataInputs$input8.type),
|
|
201
|
+
label: ((_dataInputs$input9 = dataInputs[input]) === null || _dataInputs$input9 === void 0 ? void 0 : _dataInputs$input9.name) + ((_dataInputs$input10 = dataInputs[input]) !== null && _dataInputs$input10 !== void 0 && _dataInputs$input10.required ? "*" : ""),
|
|
202
|
+
value: compare ? (_auditInputs$input = auditInputs[input]) === null || _auditInputs$input === void 0 ? void 0 : _auditInputs$input.value : (_dataInputs$input11 = dataInputs[input]) === null || _dataInputs$input11 === void 0 ? void 0 : _dataInputs$input11.value,
|
|
203
203
|
inputPlaceHolder: input === null || input === void 0 ? void 0 : input.placeholder,
|
|
204
204
|
articleId: articleId,
|
|
205
|
-
isRequired: (_dataInputs$
|
|
205
|
+
isRequired: (_dataInputs$input12 = dataInputs[input]) === null || _dataInputs$input12 === void 0 ? void 0 : _dataInputs$input12.required,
|
|
206
206
|
updatedDatasheets: updatedDatasheets,
|
|
207
207
|
setUpdatedDatasheets: setUpdatedDatasheets,
|
|
208
|
-
maxChar: (_dataInputs$
|
|
209
|
-
optionList: (_dataInputs$
|
|
210
|
-
description: (_dataInputs$
|
|
208
|
+
maxChar: (_dataInputs$input13 = dataInputs[input]) !== null && _dataInputs$input13 !== void 0 && _dataInputs$input13.max_chars ? (_dataInputs$input14 = dataInputs[input]) === null || _dataInputs$input14 === void 0 ? void 0 : _dataInputs$input14.max_chars : 999,
|
|
209
|
+
optionList: (_dataInputs$input15 = dataInputs[input]) === null || _dataInputs$input15 === void 0 ? void 0 : _dataInputs$input15.option_list,
|
|
210
|
+
description: (_dataInputs$input16 = dataInputs[input]) === null || _dataInputs$input16 === void 0 ? void 0 : _dataInputs$input16.description,
|
|
211
211
|
showTooltip: true,
|
|
212
212
|
auditClass: compare && !isEquals(dataInputs[input].value, auditInputs[input].value) ? "audit-class" : ""
|
|
213
|
-
}, index + "-" + ((_dataInputs$
|
|
214
|
-
inputId: (_dataInputs$
|
|
215
|
-
isApproved: (_dataInputs$
|
|
216
|
-
comment: (_dataInputs$
|
|
213
|
+
}, index + "-" + ((_dataInputs$input4 = dataInputs[input]) === null || _dataInputs$input4 === void 0 ? void 0 : _dataInputs$input4.value) + "-" + ((_dataInputs$input5 = dataInputs[input]) === null || _dataInputs$input5 === void 0 ? void 0 : _dataInputs$input5.id) + "-" + compare), ((_dataInputs$input17 = dataInputs[input]) === null || _dataInputs$input17 === void 0 ? void 0 : _dataInputs$input17.isApproved) === false && /*#__PURE__*/(0, _jsxRuntime.jsx)(InputReviewSection, {
|
|
214
|
+
inputId: (_dataInputs$input18 = dataInputs[input]) === null || _dataInputs$input18 === void 0 ? void 0 : _dataInputs$input18.id,
|
|
215
|
+
isApproved: (_dataInputs$input19 = dataInputs[input]) === null || _dataInputs$input19 === void 0 ? void 0 : _dataInputs$input19.isApproved,
|
|
216
|
+
comment: (_dataInputs$input20 = dataInputs[input]) === null || _dataInputs$input20 === void 0 ? void 0 : _dataInputs$input20.comment,
|
|
217
217
|
handleImgClick: handleImgClick,
|
|
218
218
|
changeImageBtn: changeImageBtn,
|
|
219
219
|
showDivState: showDivStates,
|
|
@@ -235,7 +235,7 @@ var InputGroup = function InputGroup(_ref) {
|
|
|
235
235
|
label: (input === null || input === void 0 ? void 0 : input.name) + (input.required ? "*" : ""),
|
|
236
236
|
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,
|
|
237
237
|
isRequired: input.required,
|
|
238
|
-
disabled: input === null || input === void 0 ? void 0 : input.isApproved,
|
|
238
|
+
disabled: input.id === 44186 || input.id === 44187 ? false : input === null || input === void 0 ? void 0 : input.isApproved,
|
|
239
239
|
maxChar: input.max_chars,
|
|
240
240
|
inputPlaceHolder: input === null || input === void 0 ? void 0 : input.placeholder,
|
|
241
241
|
updatedDescriptions: updatedDescriptions,
|
|
@@ -258,34 +258,34 @@ var InputGroup = function InputGroup(_ref) {
|
|
|
258
258
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
259
259
|
className: "inputs-container",
|
|
260
260
|
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) {
|
|
261
|
-
var _dataInputs$
|
|
261
|
+
var _dataInputs$input21, _dataInputs$input22, _dataInputs$input23, _dataInputs$input24, _dataInputs$input25, _dataInputs$input26, _dataInputs$input27, _auditInputs$input2, _dataInputs$input28, _dataInputs$input29, _dataInputs$input30, _dataInputs$input31, _dataInputs$input32, _dataInputs$input33, _dataInputs$input34, _dataInputs$input35, _dataInputs$input36, _dataInputs$input37, _auditInputGroup$inpu3, _auditInputGroup$inpu4;
|
|
262
262
|
|
|
263
263
|
return activeSection === "Ficha técnica" ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
264
264
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
265
265
|
//disabled={input === 40001}
|
|
266
|
-
disabled: (_dataInputs$
|
|
267
|
-
inputId: (_dataInputs$
|
|
266
|
+
disabled: (_dataInputs$input23 = dataInputs[input]) === null || _dataInputs$input23 === void 0 ? void 0 : _dataInputs$input23.isApproved,
|
|
267
|
+
inputId: (_dataInputs$input24 = dataInputs[input]) === null || _dataInputs$input24 === void 0 ? void 0 : _dataInputs$input24.id,
|
|
268
268
|
version: version,
|
|
269
|
-
inputType: inputTypeValue((_dataInputs$
|
|
270
|
-
label: ((_dataInputs$
|
|
271
|
-
value: compare ? (_auditInputs$input2 = auditInputs[input]) === null || _auditInputs$input2 === void 0 ? void 0 : _auditInputs$input2.value : (_dataInputs$
|
|
269
|
+
inputType: inputTypeValue((_dataInputs$input25 = dataInputs[input]) === null || _dataInputs$input25 === void 0 ? void 0 : _dataInputs$input25.type),
|
|
270
|
+
label: ((_dataInputs$input26 = dataInputs[input]) === null || _dataInputs$input26 === void 0 ? void 0 : _dataInputs$input26.name) + ((_dataInputs$input27 = dataInputs[input]) !== null && _dataInputs$input27 !== void 0 && _dataInputs$input27.required ? "*" : ""),
|
|
271
|
+
value: compare ? (_auditInputs$input2 = auditInputs[input]) === null || _auditInputs$input2 === void 0 ? void 0 : _auditInputs$input2.value : (_dataInputs$input28 = dataInputs[input]) === null || _dataInputs$input28 === void 0 ? void 0 : _dataInputs$input28.value,
|
|
272
272
|
inputPlaceHolder: input === null || input === void 0 ? void 0 : input.placeholder,
|
|
273
273
|
articleId: articleId,
|
|
274
|
-
isRequired: (_dataInputs$
|
|
274
|
+
isRequired: (_dataInputs$input29 = dataInputs[input]) === null || _dataInputs$input29 === void 0 ? void 0 : _dataInputs$input29.required,
|
|
275
275
|
updatedDatasheets: updatedDatasheets,
|
|
276
276
|
setUpdatedDatasheets: setUpdatedDatasheets,
|
|
277
|
-
maxChar: (_dataInputs$
|
|
278
|
-
optionList: (_dataInputs$
|
|
279
|
-
description: (_dataInputs$
|
|
277
|
+
maxChar: (_dataInputs$input30 = dataInputs[input]) !== null && _dataInputs$input30 !== void 0 && _dataInputs$input30.max_chars ? (_dataInputs$input31 = dataInputs[input]) === null || _dataInputs$input31 === void 0 ? void 0 : _dataInputs$input31.max_chars : 999,
|
|
278
|
+
optionList: (_dataInputs$input32 = dataInputs[input]) === null || _dataInputs$input32 === void 0 ? void 0 : _dataInputs$input32.option_list,
|
|
279
|
+
description: (_dataInputs$input33 = dataInputs[input]) === null || _dataInputs$input33 === void 0 ? void 0 : _dataInputs$input33.description,
|
|
280
280
|
showTooltip: true,
|
|
281
281
|
inputGroup: inputGroup,
|
|
282
282
|
dataInputs: dataInputs,
|
|
283
283
|
onChange: setUpdatedBoxData,
|
|
284
284
|
auditClass: compare && !isEquals(dataInputs[input].value, auditInputs[input].value) ? "audit-class" : ""
|
|
285
|
-
}, index + "-" + ((_dataInputs$
|
|
286
|
-
inputId: (_dataInputs$
|
|
287
|
-
isApproved: (_dataInputs$
|
|
288
|
-
comment: (_dataInputs$
|
|
285
|
+
}, index + "-" + ((_dataInputs$input21 = dataInputs[input]) === null || _dataInputs$input21 === void 0 ? void 0 : _dataInputs$input21.value) + "-" + ((_dataInputs$input22 = dataInputs[input]) === null || _dataInputs$input22 === void 0 ? void 0 : _dataInputs$input22.id) + "-" + compare), ((_dataInputs$input34 = dataInputs[input]) === null || _dataInputs$input34 === void 0 ? void 0 : _dataInputs$input34.isApproved) === false && /*#__PURE__*/(0, _jsxRuntime.jsx)(InputReviewSection, {
|
|
286
|
+
inputId: (_dataInputs$input35 = dataInputs[input]) === null || _dataInputs$input35 === void 0 ? void 0 : _dataInputs$input35.id,
|
|
287
|
+
isApproved: (_dataInputs$input36 = dataInputs[input]) === null || _dataInputs$input36 === void 0 ? void 0 : _dataInputs$input36.isApproved,
|
|
288
|
+
comment: (_dataInputs$input37 = dataInputs[input]) === null || _dataInputs$input37 === void 0 ? void 0 : _dataInputs$input37.comment,
|
|
289
289
|
handleImgClick: handleImgClick,
|
|
290
290
|
changeImageBtn: changeImageBtn,
|
|
291
291
|
showDivState: showDivStates,
|
|
@@ -15,7 +15,7 @@ var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
|
15
15
|
|
|
16
16
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
17
17
|
|
|
18
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background: #fff;\n box-sizing: border-box;\n height: 100%;\n overflow-x: auto;\n width: 100%;\n margin-right: 30px;\n .checkbox_fixed {\n left: 0px;\n position: sticky;\n z-index: 5;\n }\n\n .custom-table {\n border-collapse: collapse;\n box-sizing: border-box;\n width: 100%;\n & > thead {\n top: 0;\n height: 45px;\n position: sticky;\n z-index:
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background: #fff;\n box-sizing: border-box;\n height: 100%;\n overflow-x: auto;\n width: 100%;\n margin-right: 30px;\n .checkbox_fixed {\n left: 0px;\n position: sticky;\n z-index: 5;\n }\n\n .custom-table {\n border-collapse: collapse;\n box-sizing: border-box;\n width: 100%;\n & > thead {\n top: 0;\n height: 45px;\n position: sticky;\n z-index: 2;\n & > tr {\n background-color: #f7f7fc;\n border-radius: 5px 5px 0px 0px;\n height: 45px;\n }\n }\n & > tbody > tr {\n height: 70px;\n &:last-child {\n border-radius: 0px 0px 5px 5px;\n }\n }\n }\n\n .custom-table th,\n .custom-table td {\n padding: 8px;\n border: 0;\n }\n\n .custom-table th {\n border-radius: 5px 0 0 5px;\n border: 0;\n color: var(--black-main, #262626);\n font-family: Roboto;\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: normal;\n text-align: left;\n }\n\n .custom-table tr {\n background: var(--white-main, #fff);\n border-bottom: 1px solid var(--grey-light, #f0f0f0);\n border-left: 1px solid var(--grey-light, #f0f0f0);\n border-right: 1px solid var(--grey-light, #f0f0f0);\n & > td {\n color: var(--grey-main, #707070);\n font-family: Roboto;\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: normal;\n gap:5px;\n }\n display: flex;\n align-items: center;\n ", "\n }\n"])), function (_ref) {
|
|
19
19
|
var withCheckbox = _ref.withCheckbox;
|
|
20
20
|
return withCheckbox && "padding-left: 10px;";
|
|
21
21
|
});
|
|
@@ -5,8 +5,8 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.default = saveData;
|
|
9
8
|
exports.deleteImage = deleteImage;
|
|
9
|
+
exports.saveData = saveData;
|
|
10
10
|
|
|
11
11
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
12
12
|
|
|
@@ -43,15 +43,15 @@ function saveData(_x) {
|
|
|
43
43
|
|
|
44
44
|
function _saveData() {
|
|
45
45
|
_saveData = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(params) {
|
|
46
|
-
var section, data, token
|
|
46
|
+
var section, data, token;
|
|
47
47
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
48
48
|
while (1) {
|
|
49
49
|
switch (_context.prev = _context.next) {
|
|
50
50
|
case 0:
|
|
51
|
-
section = params.section, data = params.data, token = params.token
|
|
51
|
+
section = params.section, data = params.data, token = params.token;
|
|
52
52
|
|
|
53
53
|
if (!(section === "images")) {
|
|
54
|
-
_context.next =
|
|
54
|
+
_context.next = 5;
|
|
55
55
|
break;
|
|
56
56
|
}
|
|
57
57
|
|
|
@@ -60,25 +60,14 @@ function _saveData() {
|
|
|
60
60
|
|
|
61
61
|
case 4:
|
|
62
62
|
if (!_context.sent) {
|
|
63
|
-
_context.next =
|
|
63
|
+
_context.next = 5;
|
|
64
64
|
break;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
type: "saved successfully",
|
|
70
|
-
functions: {
|
|
71
|
-
setModal: setModal
|
|
72
|
-
},
|
|
73
|
-
payload: {
|
|
74
|
-
service: "imágenes"
|
|
75
|
-
}
|
|
76
|
-
}); // aquí va modal de que todo salío bien y actualiza la data
|
|
77
|
-
|
|
78
|
-
case 7:
|
|
79
|
-
return _context.abrupt("return", false);
|
|
67
|
+
case 5:
|
|
68
|
+
return _context.abrupt("return", true);
|
|
80
69
|
|
|
81
|
-
case
|
|
70
|
+
case 6:
|
|
82
71
|
case "end":
|
|
83
72
|
return _context.stop();
|
|
84
73
|
}
|
|
@@ -103,6 +92,7 @@ function _saveImagesData() {
|
|
|
103
92
|
articles.data.forEach(function (article) {
|
|
104
93
|
var images = article.images,
|
|
105
94
|
version = article.version;
|
|
95
|
+
console.log(images);
|
|
106
96
|
var imagesToAdd = Object.values(images).filter(function (f) {
|
|
107
97
|
return f.value && !f.value.src.startsWith("id-");
|
|
108
98
|
});
|
|
@@ -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: grid;\n grid-template-columns: 75% 25%;\n grid-template-rows: 75px 1fr;\n grid-template-areas:\n \"tabs action_buttons\"\n \"table table\";\n margin: 0 30px;\n body{\n font-family: Roboto;\n }\n\n .tabs {\n grid-area: tabs;\n display: flex;\n align-items: center;\n gap: 0 10px;\n }\n .action_buttons {\n grid-area: action_buttons;\n display: flex;\n align-items: center;\n justify-content: end;\n gap: 0 10px;\n & > * {\n cursor: pointer;\n }\n }\n .table {\n grid-area: table;\n background: red;\n height: 100%;\n font-family: Raleway;\n }\n \n .buttons-container{\n display: flex;\n flex-direction: column;\n background: white;\n width: max-content;\n padding: 8px;\n border: 1px solid ", ";\n box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.25);\n border-radius: 3px;\n position: absolute;\n top: 0;\n left: 50px;\n z-index: 100;\n }\n\n .validation-button{\n width: 30px;\n height: 20px;\n display: flex;\n align-items: center;\n border: none;\n cursor: pointer;\n color: black;\n font-weight: 400;\n font-size: 13px;\n line-height: 18px;\n background-color: white;\n
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: grid;\n grid-template-columns: 75% 25%;\n grid-template-rows: 75px 1fr;\n grid-template-areas:\n \"tabs action_buttons\"\n \"table table\";\n margin: 0 30px;\n body{\n font-family: Roboto;\n }\n\n .tabs {\n grid-area: tabs;\n display: flex;\n align-items: center;\n gap: 0 10px;\n }\n .action_buttons {\n grid-area: action_buttons;\n display: flex;\n align-items: center;\n justify-content: end;\n gap: 0 10px;\n & > * {\n cursor: pointer;\n }\n }\n .table {\n grid-area: table;\n background: red;\n height: 100%;\n font-family: Raleway;\n }\n \n .buttons-container{\n display: flex;\n flex-direction: column;\n background: white;\n width: max-content;\n padding: 8px;\n border: 1px solid ", ";\n box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.25);\n border-radius: 3px;\n position: absolute;\n top: 0;\n left: 50px;\n z-index: 100;\n }\n\n .validation-button{\n width: 30px;\n height: 20px;\n display: flex;\n align-items: center;\n border: none;\n cursor: pointer;\n color: black;\n font-weight: 400;\n font-size: 13px;\n line-height: 18px;\n background-color: white;\n margin-right:5px;\n img {\n & + p {\n margin-left: 7px;\n }\n }\n\n &:hover {\n border-radius: 10px;\n }\n }\n\n .validation-option {\n display: flex;\n width: 82px;\n height: 20px;\n align-items: center;\n border: none;\n cursor: pointer;\n color: black;\n font-weight: 400;\n font-size: 13px;\n line-height: 18px;\n background-color: white;\n left: 7px;\n\n img {\n & + p {\n margin-left: 7px;\n }\n }\n\n &:hover {\n border-radius: 10px;\n }\n\n & + * {\n margin-top: 8px;\n }\n }\n\n td{\n margin:0;\n background: #ffffff !important;\n }\n\n th{\n border-radius: 0 0 0 0 !important;\n padding: 15px !important;\n }\n \n textarea {\n width: 100%;\n border: 1px solid\n ", ";\n\n font-family: ", ";\n color: ", ";\n font-weight: normal;\n font-size: 12px;\n line-height: 15px;\n padding: 10px;\n outline: none;\n border-radius: 5px;\n resize: none;\n\n &:focus {\n border: 1px solid ", ";\n }\n }\n\n .general-input {\n width: 100%;\n height:27px;\n max-height:100px;\n }\n\n .select-edition-multiple {\n padding: 5px 10px;\n border-radius: 5px;\n gap: 10px;\n border:1px solid ", ";\n border-width: 1px 2px 1px 1px;\n outline: none;\n border-image: initial;\n width: 100%;\n min-height:27px;\n cursor: pointer;\n color: ", ";\n font-size: 12px;\n line-height: 21px;\n overflow:hidden; \n white-space:nowrap; \n text-overflow:ellipsis;\n :focus{\n border:1px solid ", ";\n }\n }\n\n .tooltip {\n position: relative;\n display: inline-block;\n }\n \n .tooltiptext {\n visibility: hidden;\n width: 200px;\n background-color: #ffffff;\n color: #000000;\n text-align: center;\n border-radius: 6px;\n position: absolute;\n z-index: 6 important!;\n bottom: 100%;\n left: 20%;\n margin-left: -80px;\n opacity: 0;\n transition: opacity 0.3s;\n box-shadow: 0px 2px 4px 0px #00000040;\n font-family: Roboto;\n font-size: 12px;\n padding: 10px;\n text-align: justify;\n }\n \n\n \n .tooltip:hover .tooltiptext {\n visibility: visible;\n opacity: 1;\n }\n"])), _variables.GlobalColors.s3, function (_ref) {
|
|
19
19
|
var isRequired = _ref.isRequired;
|
|
20
20
|
return isRequired ? "red" : "".concat(_variables.GlobalColors.s2);
|
|
21
21
|
}, _variables.FontFamily.AvenirNext, _variables.GlobalColors.deep_gray, _variables.GlobalColors.magenta_s2, _variables.GlobalColors.gray_light, _variables.GlobalColors.deep_gray, _variables.GlobalColors.magenta_s2);
|
|
@@ -52,6 +52,10 @@ var _iconsMaterial = require("@mui/icons-material");
|
|
|
52
52
|
|
|
53
53
|
var _react = _interopRequireWildcard(require("react"));
|
|
54
54
|
|
|
55
|
+
var _nullIcon = _interopRequireDefault(require("../../../assets/images/generalButton/nullIcon.svg"));
|
|
56
|
+
|
|
57
|
+
var _Tooltip = require("../../atoms/Tooltip");
|
|
58
|
+
|
|
55
59
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
56
60
|
|
|
57
61
|
// variables
|
|
@@ -150,7 +154,8 @@ function dataReducer(state, action) {
|
|
|
150
154
|
|
|
151
155
|
var _action$payload = action.payload,
|
|
152
156
|
articleId = _action$payload.articleId,
|
|
153
|
-
imageId = _action$payload.imageId
|
|
157
|
+
imageId = _action$payload.imageId,
|
|
158
|
+
token = _action$payload.token;
|
|
154
159
|
var newImageData = state.images.data.slice();
|
|
155
160
|
var articleIndex = newImageData.findIndex(function (f) {
|
|
156
161
|
return f.id === articleId;
|
|
@@ -159,6 +164,14 @@ function dataReducer(state, action) {
|
|
|
159
164
|
newImageData[articleIndex].images[imageId].value = (0, _objectSpread3.default)((0, _objectSpread3.default)({}, action.payload), {}, {
|
|
160
165
|
id: id
|
|
161
166
|
});
|
|
167
|
+
var data = newImageData;
|
|
168
|
+
(0, _saveData.saveData)({
|
|
169
|
+
section: "images",
|
|
170
|
+
data: {
|
|
171
|
+
data: data
|
|
172
|
+
},
|
|
173
|
+
token: token
|
|
174
|
+
});
|
|
162
175
|
return (0, _objectSpread3.default)((0, _objectSpread3.default)({}, state), {}, {
|
|
163
176
|
images: (0, _objectSpread3.default)((0, _objectSpread3.default)({}, state.images), {}, {
|
|
164
177
|
data: newImageData
|
|
@@ -172,7 +185,7 @@ function dataReducer(state, action) {
|
|
|
172
185
|
var _action$payload2 = action.payload,
|
|
173
186
|
_articleId = _action$payload2.articleId,
|
|
174
187
|
_imageId = _action$payload2.imageId,
|
|
175
|
-
|
|
188
|
+
_token = _action$payload2.token;
|
|
176
189
|
|
|
177
190
|
var _newImageData = state.images.data.slice();
|
|
178
191
|
|
|
@@ -183,14 +196,13 @@ function dataReducer(state, action) {
|
|
|
183
196
|
var _id = (_newImageData$_articl = _newImageData[_articleIndex]) === null || _newImageData$_articl === void 0 ? void 0 : (_newImageData$_articl2 = _newImageData$_articl.images[_imageId]) === null || _newImageData$_articl2 === void 0 ? void 0 : (_newImageData$_articl3 = _newImageData$_articl2.value) === null || _newImageData$_articl3 === void 0 ? void 0 : _newImageData$_articl3.id;
|
|
184
197
|
|
|
185
198
|
(_newImageData$_articl4 = _newImageData[_articleIndex]) === null || _newImageData$_articl4 === void 0 ? true : (_newImageData$_articl5 = _newImageData$_articl4.images[_imageId]) === null || _newImageData$_articl5 === void 0 ? true : delete _newImageData$_articl5.value;
|
|
186
|
-
|
|
187
|
-
var data = {
|
|
199
|
+
var _data = {
|
|
188
200
|
articleId: _articleId,
|
|
189
201
|
deleteImages: [{
|
|
190
202
|
id: _id
|
|
191
203
|
}]
|
|
192
204
|
};
|
|
193
|
-
(0, _saveData.deleteImage)(
|
|
205
|
+
(0, _saveData.deleteImage)(_data, _newImageData[_articleIndex].version, _token);
|
|
194
206
|
return (0, _objectSpread3.default)((0, _objectSpread3.default)({}, state), {}, {
|
|
195
207
|
images: (0, _objectSpread3.default)((0, _objectSpread3.default)({}, state.images), {}, {
|
|
196
208
|
data: _newImageData
|
|
@@ -274,6 +286,13 @@ function setDataColumns(section, dataService, token, setModalFromTable, setDataS
|
|
|
274
286
|
display: "flex",
|
|
275
287
|
justifyContent: "center"
|
|
276
288
|
};
|
|
289
|
+
var styleApprovalAttributes = {
|
|
290
|
+
textAlign: "center",
|
|
291
|
+
display: "flex",
|
|
292
|
+
justifyContent: "center",
|
|
293
|
+
border: "1px solid #ECDD1D",
|
|
294
|
+
background: "#ECDD1D"
|
|
295
|
+
};
|
|
277
296
|
var retailersAdded = {
|
|
278
297
|
id: [],
|
|
279
298
|
attr: []
|
|
@@ -323,17 +342,15 @@ function setDataColumns(section, dataService, token, setModalFromTable, setDataS
|
|
|
323
342
|
});
|
|
324
343
|
}
|
|
325
344
|
});
|
|
326
|
-
var saveAvailable =
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
}
|
|
335
|
-
saveAvailable = false;
|
|
336
|
-
}
|
|
345
|
+
var saveAvailable = true;
|
|
346
|
+
/**var saveAvailable = imagesReviewed
|
|
347
|
+
.filter((e) => e.articleId === item.id)
|
|
348
|
+
.every((e) => e.isReviewed === true);
|
|
349
|
+
if (
|
|
350
|
+
imagesReviewed.filter((e) => e.articleId === item.id).length == 0
|
|
351
|
+
) {
|
|
352
|
+
saveAvailable = false;
|
|
353
|
+
}**/
|
|
337
354
|
|
|
338
355
|
currentData["retailer".concat(ret.id, "-save")] = /*#__PURE__*/(0, _jsxRuntime.jsxs)("button", {
|
|
339
356
|
onClick: function onClick() {
|
|
@@ -393,62 +410,7 @@ function setDataColumns(section, dataService, token, setModalFromTable, setDataS
|
|
|
393
410
|
return e.articleId === item.id && e.imageId === imageId && e.versionId === item.version;
|
|
394
411
|
});
|
|
395
412
|
currentData["img".concat(imageId)] = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
396
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("
|
|
397
|
-
onClick: function onClick() {
|
|
398
|
-
setShowValidationPanel(true);
|
|
399
|
-
setAttributeSelected({
|
|
400
|
-
articleId: item.id,
|
|
401
|
-
attributeId: imageId,
|
|
402
|
-
versionId: item.version
|
|
403
|
-
});
|
|
404
|
-
},
|
|
405
|
-
className: "validation-button",
|
|
406
|
-
children: [imagesReviewed[index].isReviewed && imagesReviewed[index].isApproved && /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
407
|
-
id: "button_" + item.id + "_" + imageId + "_" + item.version,
|
|
408
|
-
src: _acceptIcon.default,
|
|
409
|
-
alt: "accept button"
|
|
410
|
-
}), " ", imagesReviewed[index].isReviewed && !imagesReviewed[index].isApproved && /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
411
|
-
id: "button_" + item.id + "_" + imageId + "_" + item.version,
|
|
412
|
-
src: _rejectIcon.default,
|
|
413
|
-
alt: "reject button"
|
|
414
|
-
}), " ", !imagesReviewed[index].isReviewed && /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
415
|
-
id: "button_" + item.id + "_" + imageId + "_" + item.version,
|
|
416
|
-
src: _rejectIcon.default,
|
|
417
|
-
alt: "reject button"
|
|
418
|
-
})]
|
|
419
|
-
}), " ", showValidationPanel && attributeSelected.articleId === item.id && attributeSelected.attributeId === imageId && attributeSelected.versionId === item.version && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
420
|
-
className: "buttons-container",
|
|
421
|
-
style: {
|
|
422
|
-
left: "70px"
|
|
423
|
-
},
|
|
424
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("button", {
|
|
425
|
-
onClick: function onClick() {
|
|
426
|
-
imagesReviewed[index].isApproved = true;
|
|
427
|
-
imagesReviewed[index].isReviewed = true; //document.getElementById(item.id+'_'+des.attributeId+'_'+item.version).style.borderColor="#71DE56";
|
|
428
|
-
|
|
429
|
-
setShowValidationPanel(false);
|
|
430
|
-
},
|
|
431
|
-
className: "validation-option",
|
|
432
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
433
|
-
src: _acceptIcon.default,
|
|
434
|
-
alt: "accept button"
|
|
435
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
436
|
-
children: " Validar "
|
|
437
|
-
}), " "]
|
|
438
|
-
}), " ", /*#__PURE__*/(0, _jsxRuntime.jsxs)("button", {
|
|
439
|
-
onClick: function onClick() {
|
|
440
|
-
setShowValidationPanel(false);
|
|
441
|
-
setShowRejectModal(true);
|
|
442
|
-
},
|
|
443
|
-
className: "validation-option",
|
|
444
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
445
|
-
src: _rejectIcon.default,
|
|
446
|
-
alt: "reject button"
|
|
447
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
448
|
-
children: " Rechazar "
|
|
449
|
-
}), " "]
|
|
450
|
-
}), " "]
|
|
451
|
-
}), " ", comment && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
413
|
+
children: [comment && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
452
414
|
class: "tooltip",
|
|
453
415
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ImageVisor.ImageVisor, (0, _objectSpread3.default)({}, props)), /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
454
416
|
class: "tooltiptext",
|
|
@@ -506,13 +468,19 @@ function setDataColumns(section, dataService, token, setModalFromTable, setDataS
|
|
|
506
468
|
var articleAttributes = attributesReviewed.filter(function (e) {
|
|
507
469
|
return e.articleId === item.id && e.versionId === item.version;
|
|
508
470
|
});
|
|
471
|
+
var value;
|
|
509
472
|
articleAttributes.forEach(function (articleAttribute) {
|
|
510
|
-
|
|
473
|
+
if (articleAttribute.attributeId == 6700 || articleAttribute.attributeId == 6701) {
|
|
474
|
+
value = document.getElementById(articleAttribute.articleId + "_" + articleAttribute.attributeId + "_" + articleAttribute.versionId).checked;
|
|
475
|
+
} else {
|
|
476
|
+
value = document.getElementById(articleAttribute.articleId + "_" + articleAttribute.attributeId + "_" + articleAttribute.versionId).value;
|
|
477
|
+
}
|
|
478
|
+
|
|
511
479
|
articlesAtributesUpdateBody.push({
|
|
512
480
|
articleId: articleAttribute.articleId,
|
|
513
481
|
versionId: articleAttribute.versionId,
|
|
514
482
|
attributeId: articleAttribute.attributeId,
|
|
515
|
-
value: value ? value : "",
|
|
483
|
+
value: value != undefined ? value : "",
|
|
516
484
|
isApproved: articleAttribute.isApproved,
|
|
517
485
|
comment: articleAttribute.comment
|
|
518
486
|
});
|
|
@@ -536,7 +504,7 @@ function setDataColumns(section, dataService, token, setModalFromTable, setDataS
|
|
|
536
504
|
Header: rules[attributeId].name,
|
|
537
505
|
accessor: "".concat(attributeId + "-" + ret.id),
|
|
538
506
|
width: "200px",
|
|
539
|
-
style: styleData,
|
|
507
|
+
style: attributeId == 6700 || attributeId == 6701 ? styleApprovalAttributes : styleData,
|
|
540
508
|
description: rules[attributeId].description
|
|
541
509
|
});
|
|
542
510
|
}
|
|
@@ -582,7 +550,7 @@ function setDataColumns(section, dataService, token, setModalFromTable, setDataS
|
|
|
582
550
|
var inputComponent;
|
|
583
551
|
|
|
584
552
|
if (des.option_list.length > 0) {
|
|
585
|
-
inputComponent = /*#__PURE__*/(0, _jsxRuntime.
|
|
553
|
+
inputComponent = /*#__PURE__*/(0, _jsxRuntime.jsxs)("select", {
|
|
586
554
|
id: item.id + "_" + rules[des.attributeId].attributeId + "_" + item.version,
|
|
587
555
|
name: item.id + "-" + rules[des.attributeId].attributeId + "-" + item.version,
|
|
588
556
|
className: "select-edition-multiple",
|
|
@@ -590,12 +558,17 @@ function setDataColumns(section, dataService, token, setModalFromTable, setDataS
|
|
|
590
558
|
onChange: function onChange(e) {
|
|
591
559
|
handleChangeOptions(des.attributeId, e.target.value);
|
|
592
560
|
},
|
|
593
|
-
children:
|
|
561
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
562
|
+
value: "",
|
|
563
|
+
selected: true,
|
|
564
|
+
disabled: true,
|
|
565
|
+
children: "Selecciona una opci\xF3n"
|
|
566
|
+
}), des.option_list.map(function (option, index) {
|
|
594
567
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
595
568
|
value: option,
|
|
596
569
|
children: option
|
|
597
570
|
}, index);
|
|
598
|
-
})
|
|
571
|
+
})]
|
|
599
572
|
});
|
|
600
573
|
} else {
|
|
601
574
|
inputComponent = /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, (0, _objectSpread3.default)({}, props));
|
|
@@ -629,16 +602,32 @@ function setDataColumns(section, dataService, token, setModalFromTable, setDataS
|
|
|
629
602
|
id: "button_" + item.id + "_" + des.attributeId + "_" + item.version,
|
|
630
603
|
src: _acceptIcon.default,
|
|
631
604
|
alt: "accept button"
|
|
632
|
-
}),
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
605
|
+
}), attributesReviewed[index].isReviewed && !attributesReviewed[index].isApproved &&
|
|
606
|
+
/*#__PURE__*/
|
|
607
|
+
|
|
608
|
+
/**<Tooltip position="topCenter" componentTooltip={<span>Debes aprobar o rechazar para continuar</span>}>**/
|
|
609
|
+
(0, _jsxRuntime.jsx)("div", {
|
|
610
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
611
|
+
id: "button_" + item.id + "_" + des.attributeId + "_" + item.version,
|
|
612
|
+
src: _rejectIcon.default,
|
|
613
|
+
alt: "reject icon"
|
|
614
|
+
})
|
|
615
|
+
})
|
|
616
|
+
/*</Tooltip>*/
|
|
617
|
+
, typeof des.isApproved === "undefined" && !attributesReviewed[index].isReviewed && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.Tooltip, {
|
|
618
|
+
position: "topCenter",
|
|
619
|
+
componentTooltip: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
620
|
+
children: "Debes aprobar o rechazar para continuar"
|
|
621
|
+
}),
|
|
622
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
623
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
624
|
+
id: "button_" + item.id + "_" + des.attributeId + "_" + item.version,
|
|
625
|
+
src: _nullIcon.default,
|
|
626
|
+
alt: "null button"
|
|
627
|
+
})
|
|
628
|
+
})
|
|
640
629
|
})]
|
|
641
|
-
}),
|
|
630
|
+
}), showValidationPanel && attributeSelected.articleId === item.id && attributeSelected.attributeId === des.attributeId && attributeSelected.versionId === item.version && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
642
631
|
className: "buttons-container",
|
|
643
632
|
style: {
|
|
644
633
|
left: "35px"
|
|
@@ -707,17 +696,15 @@ function setDataColumns(section, dataService, token, setModalFromTable, setDataS
|
|
|
707
696
|
});
|
|
708
697
|
}
|
|
709
698
|
|
|
710
|
-
var saveAvailable =
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
}
|
|
719
|
-
saveAvailable = false;
|
|
720
|
-
}
|
|
699
|
+
var saveAvailable = true;
|
|
700
|
+
/**var saveAvailable = descriptionsReviewed
|
|
701
|
+
.filter((e) => e.articleId === item.id)
|
|
702
|
+
.every((e) => e.isReviewed === true);
|
|
703
|
+
if (
|
|
704
|
+
descriptionsReviewed.filter((e) => e.articleId === item.id).length == 0
|
|
705
|
+
) {
|
|
706
|
+
saveAvailable = false;
|
|
707
|
+
}**/
|
|
721
708
|
|
|
722
709
|
currentData["retailer".concat(ret.id)] = /*#__PURE__*/(0, _jsxRuntime.jsxs)("p", {
|
|
723
710
|
children: [" ", ret.name, " "]
|
|
@@ -785,61 +772,7 @@ function setDataColumns(section, dataService, token, setModalFromTable, setDataS
|
|
|
785
772
|
return e.articleId === item.id && e.attributeId === des.attributeId && e.versionId === item.version;
|
|
786
773
|
});
|
|
787
774
|
currentData["".concat(des.attributeId)] = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
788
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("
|
|
789
|
-
onClick: function onClick() {
|
|
790
|
-
setShowValidationPanel(true);
|
|
791
|
-
setAttributeSelected({
|
|
792
|
-
articleId: item.id,
|
|
793
|
-
attributeId: des.attributeId,
|
|
794
|
-
versionId: item.version
|
|
795
|
-
});
|
|
796
|
-
},
|
|
797
|
-
className: "validation-button",
|
|
798
|
-
children: [descriptionsReviewed[index].isReviewed && descriptionsReviewed[index].isApproved && /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
799
|
-
id: "button_" + item.id + "_" + des.attributeId + "_" + item.version,
|
|
800
|
-
src: _acceptIcon.default,
|
|
801
|
-
alt: "accept button"
|
|
802
|
-
}), " ", descriptionsReviewed[index].isReviewed && !descriptionsReviewed[index].isApproved && /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
803
|
-
id: "button_" + item.id + "_" + des.attributeId + "_" + item.version,
|
|
804
|
-
src: _rejectIcon.default,
|
|
805
|
-
alt: "reject button"
|
|
806
|
-
}), " ", typeof des.isApproved === "undefined" && !descriptionsReviewed[index].isReviewed && /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
807
|
-
id: "button_" + item.id + "_" + des.attributeId + "_" + item.version,
|
|
808
|
-
src: _rejectIcon.default,
|
|
809
|
-
alt: "reject button"
|
|
810
|
-
})]
|
|
811
|
-
}), " ", showValidationPanel && attributeSelected.articleId === item.id && attributeSelected.attributeId === des.attributeId && attributeSelected.versionId === item.version && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
812
|
-
className: "buttons-container",
|
|
813
|
-
style: {
|
|
814
|
-
left: "35px"
|
|
815
|
-
},
|
|
816
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("button", {
|
|
817
|
-
onClick: function onClick() {
|
|
818
|
-
descriptionsReviewed[index].isApproved = true;
|
|
819
|
-
descriptionsReviewed[index].isReviewed = true;
|
|
820
|
-
setShowValidationPanel(false);
|
|
821
|
-
},
|
|
822
|
-
className: "validation-option",
|
|
823
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
824
|
-
src: _acceptIcon.default,
|
|
825
|
-
alt: "accept button"
|
|
826
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
827
|
-
children: " Validar "
|
|
828
|
-
}), " "]
|
|
829
|
-
}), " ", /*#__PURE__*/(0, _jsxRuntime.jsxs)("button", {
|
|
830
|
-
onClick: function onClick() {
|
|
831
|
-
setShowValidationPanel(false);
|
|
832
|
-
setShowRejectModal(true);
|
|
833
|
-
},
|
|
834
|
-
className: "validation-option",
|
|
835
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
836
|
-
src: _rejectIcon.default,
|
|
837
|
-
alt: "reject button"
|
|
838
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
839
|
-
children: " Rechazar "
|
|
840
|
-
}), " "]
|
|
841
|
-
}), " "]
|
|
842
|
-
}), " ", des.comment && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
775
|
+
children: [des.comment && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
843
776
|
class: "tooltip",
|
|
844
777
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("textarea", (0, _objectSpread3.default)({}, props)), /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
845
778
|
class: "tooltiptext",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contentoh-components-library",
|
|
3
|
-
"version": "21.5.
|
|
3
|
+
"version": "21.5.11",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@aws-amplify/auth": "^4.5.3",
|
|
6
6
|
"@aws-amplify/datastore": "^3.11.0",
|
|
@@ -27,9 +27,12 @@
|
|
|
27
27
|
"babel-preset-react-app": "^10.0.1",
|
|
28
28
|
"caniuse-lite": "^1.0.30001472",
|
|
29
29
|
"chart.js": "^3.7.1",
|
|
30
|
+
"contentoh-components-library": "^21.4.75",
|
|
30
31
|
"draft-js": "^0.11.7",
|
|
31
32
|
"file-saver": "^2.0.5",
|
|
33
|
+
"infinite-react-carousel": "^1.2.11",
|
|
32
34
|
"js-base64": "^3.7.2",
|
|
35
|
+
"mapbox-gl": "^1.13.3",
|
|
33
36
|
"moment": "^2.29.4",
|
|
34
37
|
"prop-types": "^15.7.2",
|
|
35
38
|
"react": "^17.0.2",
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<mask id="mask0_343_348" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="14" height="14">
|
|
3
|
+
<rect width="14" height="14" fill="#D9D9D9"/>
|
|
4
|
+
</mask>
|
|
5
|
+
<g mask="url(#mask0_343_348)">
|
|
6
|
+
<path d="M6.25 7.75H0V6.25H6.25V0H7.75V6.25H14V7.75H7.75V14H6.25V7.75Z" fill="#E33AA9"/>
|
|
7
|
+
</g>
|
|
8
|
+
</svg>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg width="34" height="34" viewBox="0 0 34 34" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect x="0.5" y="0.5" width="33" height="33" rx="16.5" fill="white" stroke="#E33AA9"/>
|
|
3
|
+
<mask id="mask0_387_1148" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="10" y="10" width="14" height="14">
|
|
4
|
+
<rect x="10" y="10" width="14" height="14" fill="#D9D9D9"/>
|
|
5
|
+
</mask>
|
|
6
|
+
<g mask="url(#mask0_387_1148)">
|
|
7
|
+
<path d="M17.0833 24L12.15 20.3C12.025 20.2083 11.9271 20.0917 11.8563 19.95C11.7854 19.8083 11.75 19.6583 11.75 19.5V11C11.75 10.7333 11.85 10.5 12.05 10.3C12.25 10.1 12.4833 10 12.75 10H21.4167C21.6833 10 21.9167 10.1 22.1167 10.3C22.3167 10.5 22.4167 10.7333 22.4167 11V19.5C22.4167 19.6583 22.3813 19.8083 22.3104 19.95C22.2396 20.0917 22.1417 20.2083 22.0167 20.3L17.0833 24ZM17.0833 22.75L21.4167 19.4167V11H12.75V19.4167L17.0833 22.75ZM16.3833 18.6667L20.15 14.9L19.4333 14.2L16.3667 17.2667L14.7167 15.6167L14.0167 16.3167L16.3833 18.6667Z" fill="#E33AA9"/>
|
|
8
|
+
</g>
|
|
9
|
+
</svg>
|