contentoh-components-library 21.4.73 → 21.4.75
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/assets/images/Icons/addv2.svg +8 -0
- package/dist/assets/images/Icons/checkv2.svg +8 -0
- package/dist/assets/images/Icons/options.svg +3 -0
- package/dist/assets/images/Icons/trash.svg +8 -0
- package/dist/assets/images/Icons/undo.svg +8 -0
- package/dist/assets/images/Icons/warningv2.svg +3 -0
- package/dist/assets/images/checkBox/checkrosa.svg +3 -0
- package/dist/assets/images/checkBox/checkverde.svg +3 -0
- package/dist/components/atoms/Avatar/index.js +3 -2
- package/dist/components/atoms/ButtonV2/ButtonV2.stories.js +1 -1
- package/dist/components/atoms/ButtonV2/index.js +1 -1
- package/dist/components/atoms/ButtonV2/styles.js +1 -1
- package/dist/components/atoms/CheckBox/CheckBox.stories.js +8 -1
- package/dist/components/atoms/CheckBox/index.js +8 -0
- package/dist/components/atoms/CheckBox/styles.js +8 -1
- package/dist/components/atoms/GeneralButton/styles.js +6 -2
- package/dist/components/atoms/InputFormatter/styles.js +3 -3
- package/dist/components/atoms/SliderToolTip/styles.js +1 -1
- package/dist/components/molecules/BoxAttribute/index.js +3 -3
- package/dist/components/molecules/BoxAttribute/styles.js +1 -1
- package/dist/components/molecules/BoxButtons/index.js +0 -1
- package/dist/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/dist/components/molecules/GroupSelect/GroupSelect.stories.js +53 -0
- package/dist/components/molecules/GroupSelect/SelectItem.js +142 -0
- package/dist/components/molecules/GroupSelect/index.js +254 -0
- package/dist/components/molecules/GroupSelect/styles.js +25 -0
- package/dist/components/molecules/HeaderTop/index.js +68 -11
- package/dist/components/molecules/Phase/index.js +205 -43
- package/dist/components/molecules/Phase/styles.js +1 -1
- package/dist/components/molecules/SignInLogin/index.js +36 -28
- package/dist/components/molecules/StripeCardSelector/CardSelector.stories.js +1 -2
- package/dist/components/organisms/Chat/Chat.stories.js +27 -8
- package/dist/components/organisms/Chat/ContainerItems/index.js +19 -3
- package/dist/components/organisms/Chat/ContainerItems/styles.js +1 -1
- package/dist/components/organisms/Chat/ContentChat/index.js +350 -197
- package/dist/components/organisms/Chat/Footer/index.js +48 -39
- package/dist/components/organisms/Chat/index.js +49 -4
- package/dist/components/organisms/Chat/styles.js +1 -1
- package/dist/components/organisms/DashboardMetric/index.js +12 -6
- package/dist/components/organisms/DragAndDropPhases/DragAndDropPhases.stories.js +26 -1
- package/dist/components/organisms/DragAndDropPhases/index.js +262 -32
- package/dist/components/organisms/DragAndDropPhases/styles.js +8 -4
- package/dist/components/organisms/EditGroup/EditGroup.stories.js +39 -0
- package/dist/components/organisms/EditGroup/index.js +242 -0
- package/dist/components/organisms/EditGroup/styles.js +36 -0
- package/dist/components/organisms/FullProductNameHeader/index.js +2 -2
- package/dist/components/organisms/InputGroup/index.js +1 -10
- package/dist/components/organisms/Modal/Modal.stories.js +2 -1
- package/dist/components/organisms/Modal/index.js +6 -1
- package/dist/components/organisms/Modal/styles.js +1 -1
- package/dist/components/organisms/VersionSelector/index.js +2 -4
- package/dist/components/pages/Dashboard/Dashboard.stories.js +33 -36
- package/dist/components/pages/Dashboard/index.js +37 -9
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +34 -38
- package/dist/components/pages/ProviderProductEdition/index.js +190 -196
- package/dist/components/pages/ProviderProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +52 -53
- package/dist/components/pages/RetailerProductEdition/index.js +318 -300
- package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/utils.js +61 -2
- package/dist/global-files/data.js +22 -29
- package/dist/global-files/variables.js +7 -1
- package/dist/index.js +201 -58
- package/package.json +2 -1
- package/src/assets/images/Icons/addv2.svg +8 -0
- package/src/assets/images/Icons/checkv2.svg +8 -0
- package/src/assets/images/Icons/infoNR.svg +8 -0
- package/src/assets/images/Icons/options.svg +3 -0
- package/src/assets/images/Icons/trash.svg +8 -0
- package/src/assets/images/Icons/undo.svg +8 -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/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/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/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/ImageCarousel/ImgeSlider.stories.js +76 -0
- package/src/components/atoms/ImageCarousel/index.js +103 -0
- package/src/components/atoms/ImageCarousel/styles.js +79 -0
- 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/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/PercentTag/PercentTag.stories.js +7 -0
- package/src/components/atoms/PercentTag/index.js +9 -0
- package/src/components/atoms/PercentTag/styles.js +69 -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/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/RatingStars/RatingStars.stories.js +10 -0
- package/src/components/atoms/RatingStars/index.js +31 -0
- package/src/components/atoms/RatingStars/styles.js +28 -0
- package/src/components/atoms/RetailerCatalog/RetailerCatalog.stories.js +36 -0
- package/src/components/atoms/RetailerCatalog/index.js +49 -0
- package/src/components/atoms/RetailerCatalog/styles.js +30 -0
- package/src/components/atoms/RetailerOption/RetailerOption.stories.js +15 -0
- package/src/components/atoms/RetailerOption/index.js +53 -0
- package/src/components/atoms/RetailerOption/styles.js +41 -0
- package/src/components/atoms/RetailersList/RetailersList.stories.js +33 -0
- package/src/components/atoms/RetailersList/index.js +20 -0
- package/src/components/atoms/RetailersList/styles.js +19 -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 +1 -1
- 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/UserCatalog/UserCatalog.stories.js +67 -0
- package/src/components/atoms/UserCatalog/index.js +100 -0
- package/src/components/atoms/UserCatalog/styles.js +24 -0
- package/src/components/atoms/UserOption/UserOption.stories.js +25 -0
- package/src/components/atoms/UserOption/index.js +95 -0
- package/src/components/atoms/UserOption/styles.js +61 -0
- package/src/components/atoms/UserSelector/UserSelector.stories.js +25 -0
- package/src/components/atoms/UserSelector/index.js +86 -0
- package/src/components/atoms/UserSelector/styles.js +55 -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/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/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/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/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/GridItem/GridItem.stories.js +126 -0
- package/src/components/molecules/GridItem/index.js +105 -0
- package/src/components/molecules/GridItem/styles.js +104 -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/HeaderItem/ColumnItem.js +9 -0
- package/src/components/molecules/HeaderItem/HeaderItem.stories.js +24 -0
- package/src/components/molecules/HeaderItem/index.js +26 -0
- package/src/components/molecules/HeaderItem/styles.js +27 -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 +37 -0
- package/src/components/molecules/Phase/index.js +185 -0
- package/src/components/molecules/Phase/styles.js +91 -0
- 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/ColumnItem.js +9 -0
- package/src/components/molecules/RowItem/RowItem.stories.js +5660 -0
- package/src/components/molecules/RowItem/index.js +45 -0
- package/src/components/molecules/RowItem/styles.js +40 -0
- 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/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 +6 -5
- 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 +40 -0
- package/src/components/organisms/DragAndDropPhases/index.js +236 -0
- package/src/components/organisms/DragAndDropPhases/styles.js +69 -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 +18 -0
- package/src/components/organisms/EditGroup/index.js +168 -0
- package/src/components/organisms/EditGroup/styles.js +115 -0
- package/src/components/organisms/FullProductNameHeader/index.js +1 -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 +5485 -0
- package/src/components/organisms/GridProducts/index.js +50 -0
- package/src/components/organisms/GridProducts/styles.js +14 -0
- package/src/components/organisms/GridProducts/utils.js +111 -0
- 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/InputGroup/index.js +131 -119
- 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 +8 -1
- 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/VersionSelector/index.js +1 -2
- 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/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 +110 -83
- package/src/components/pages/ProviderProductEdition/index.js +134 -152
- package/src/components/pages/ProviderProductEdition/styles.js +5 -1
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +52 -52
- package/src/components/pages/RetailerProductEdition/index.js +120 -137
- package/src/components/pages/RetailerProductEdition/styles.js +4 -0
- package/src/components/pages/RetailerProductEdition/utils.js +37 -0
- package/src/global-files/data.js +14 -46
- package/src/global-files/variables.js +6 -0
- package/src/index.js +11 -0
- package/dist/assets/fonts/roboto/LICENSE.txt +0 -202
|
@@ -39,6 +39,10 @@ import Slide1_4 from "../../../assets/images/sliderToolTip/slide4.svg";
|
|
|
39
39
|
import Slide1_5 from "../../../assets/images/sliderToolTip/slide5.svg";
|
|
40
40
|
import { VersionSelector } from "../../organisms/VersionSelector";
|
|
41
41
|
import { useCloseModal } from "../../../global-files/customHooks";
|
|
42
|
+
import { createMessage, sendMessage } from "../RetailerProductEdition/utils";
|
|
43
|
+
import { Modal } from "../../organisms/Modal";
|
|
44
|
+
import { ButtonV2 } from "../../atoms/ButtonV2";
|
|
45
|
+
import { Box } from "../../organisms/Box";
|
|
42
46
|
|
|
43
47
|
const reducerImages = (state, action) => {
|
|
44
48
|
let { values, attrForImgs, inputsByRetailer } = state;
|
|
@@ -78,19 +82,26 @@ const reducerImages = (state, action) => {
|
|
|
78
82
|
);
|
|
79
83
|
return { ...state, values };
|
|
80
84
|
case "orderImages": {
|
|
81
|
-
let {
|
|
85
|
+
let {
|
|
86
|
+
inputsByRetailer = {},
|
|
87
|
+
valuesInitial,
|
|
88
|
+
inputsInitial,
|
|
89
|
+
inputs,
|
|
90
|
+
} = state;
|
|
82
91
|
try {
|
|
83
92
|
const orderedImages = [];
|
|
84
93
|
const imageIdArray = [];
|
|
85
|
-
if (action?.retailerId && !inputsByRetailer[action.retailerId])
|
|
94
|
+
if (action?.retailerId && !inputsByRetailer[action.retailerId]) {
|
|
86
95
|
inputsByRetailer[action.retailerId] = [];
|
|
87
|
-
|
|
96
|
+
}
|
|
97
|
+
if (action.retailerId) {
|
|
88
98
|
inputsByRetailer[action.retailerId]?.filter((input) => {
|
|
89
99
|
imageIdArray.push(input.id_image);
|
|
90
100
|
valuesInitial.forEach((value) => {
|
|
91
101
|
if (value.image_id === input.id_image) orderedImages.push(value);
|
|
92
102
|
});
|
|
93
103
|
});
|
|
104
|
+
}
|
|
94
105
|
|
|
95
106
|
inputs = inputsInitial?.filter((input) =>
|
|
96
107
|
imageIdArray.includes(input.id)
|
|
@@ -98,7 +109,7 @@ const reducerImages = (state, action) => {
|
|
|
98
109
|
|
|
99
110
|
values = orderedImages.length > 0 ? orderedImages : [];
|
|
100
111
|
} catch (error) {
|
|
101
|
-
console.log(error);
|
|
112
|
+
console.log(action.action, error);
|
|
102
113
|
}
|
|
103
114
|
return { ...state, values, inputs };
|
|
104
115
|
}
|
|
@@ -215,6 +226,7 @@ export const ProviderProductEdition = ({
|
|
|
215
226
|
const isRetailer = user?.is_retailer;
|
|
216
227
|
const [loading, setLoading] = useState(true);
|
|
217
228
|
const [validatedAll, setValidatedAll] = useState(false);
|
|
229
|
+
const [showRejectModal, setShowRejectModal] = useState(false);
|
|
218
230
|
|
|
219
231
|
const [origin, setOrigin] = useState({
|
|
220
232
|
"Ficha técnica": null,
|
|
@@ -344,28 +356,6 @@ export const ProviderProductEdition = ({
|
|
|
344
356
|
(type) => {
|
|
345
357
|
const formatter = new Intl.ListFormat("es", { type: "conjunction" });
|
|
346
358
|
switch (type) {
|
|
347
|
-
case "error":
|
|
348
|
-
setGlobalModal({
|
|
349
|
-
message: `${activeTab} rechazada`,
|
|
350
|
-
detail: "Agrega tu comentarios para enviar el rechazo",
|
|
351
|
-
img: errorModal,
|
|
352
|
-
textArea: true,
|
|
353
|
-
button1: {
|
|
354
|
-
name: "Enviar",
|
|
355
|
-
action: (e) => {
|
|
356
|
-
const textArea = document.querySelector("#area");
|
|
357
|
-
if (textArea.value) {
|
|
358
|
-
textArea.style.border = "none";
|
|
359
|
-
createComment(e, textArea.value);
|
|
360
|
-
showGlobalModal("commentsSent");
|
|
361
|
-
validatedAll ? validateAll("R") : sendEvaluation("R");
|
|
362
|
-
} else {
|
|
363
|
-
textArea.style.border = "2px solid red";
|
|
364
|
-
}
|
|
365
|
-
},
|
|
366
|
-
},
|
|
367
|
-
});
|
|
368
|
-
break;
|
|
369
359
|
case "generic":
|
|
370
360
|
setGlobalModal(dataGenericModal);
|
|
371
361
|
break;
|
|
@@ -502,7 +492,20 @@ export const ProviderProductEdition = ({
|
|
|
502
492
|
|
|
503
493
|
setImages({ action: "init", init: services[2] });
|
|
504
494
|
if (services[2]?.values?.length > 0) setActiveImage(0);
|
|
505
|
-
|
|
495
|
+
const data = [
|
|
496
|
+
{
|
|
497
|
+
id_article: product.id_article,
|
|
498
|
+
id_category: product.id_category,
|
|
499
|
+
version: product.version,
|
|
500
|
+
id_retailer_array: (
|
|
501
|
+
product.retailersAvailable ?? product.retailers
|
|
502
|
+
).map(({ id }) => id),
|
|
503
|
+
},
|
|
504
|
+
];
|
|
505
|
+
const headers = { Authorization: token };
|
|
506
|
+
getPercentage({ data, headers }).then((res) => {
|
|
507
|
+
setPercentages(res[0]);
|
|
508
|
+
});
|
|
506
509
|
setLoading(false);
|
|
507
510
|
};
|
|
508
511
|
|
|
@@ -526,7 +529,9 @@ export const ProviderProductEdition = ({
|
|
|
526
529
|
);
|
|
527
530
|
setServicesData(parsedResponse);
|
|
528
531
|
}
|
|
529
|
-
|
|
532
|
+
retailers &&
|
|
533
|
+
!activeRetailer.id &&
|
|
534
|
+
setActiveRetailer(active ? active : retailers[0]);
|
|
530
535
|
};
|
|
531
536
|
|
|
532
537
|
const isRevision = () => {
|
|
@@ -560,12 +565,14 @@ export const ProviderProductEdition = ({
|
|
|
560
565
|
};
|
|
561
566
|
|
|
562
567
|
const getCart = async () => {
|
|
563
|
-
const res = await axios.get(process.env.REACT_APP_CART
|
|
568
|
+
const res = await axios.get(`${process.env.REACT_APP_CART}/general/`, {
|
|
564
569
|
headers: {
|
|
565
570
|
Authorization: token,
|
|
566
571
|
},
|
|
567
572
|
});
|
|
568
|
-
const arr = JSON.parse(res.data.body).data
|
|
573
|
+
const arr = Object.values(JSON.parse(res.data.body).data)
|
|
574
|
+
?.map((e) => e.article_id)
|
|
575
|
+
.filter(Boolean);
|
|
569
576
|
setInCart(arr.some((e) => e.articleId === product.id_article));
|
|
570
577
|
};
|
|
571
578
|
|
|
@@ -602,7 +609,7 @@ export const ProviderProductEdition = ({
|
|
|
602
609
|
});
|
|
603
610
|
}
|
|
604
611
|
setProduct(productTemp);
|
|
605
|
-
setActivePercentage(retailers[0]?.percentage);
|
|
612
|
+
retailers && setActivePercentage(retailers[0]?.percentage);
|
|
606
613
|
}, [percentages]);
|
|
607
614
|
|
|
608
615
|
const loadInputs = () => {
|
|
@@ -663,7 +670,7 @@ export const ProviderProductEdition = ({
|
|
|
663
670
|
value: e?.id,
|
|
664
671
|
name: e?.name,
|
|
665
672
|
required: e?.required,
|
|
666
|
-
active: images?.values
|
|
673
|
+
active: images?.values?.some((value) => value?.image_id === e?.id),
|
|
667
674
|
}));
|
|
668
675
|
setSocketType(imageInputs);
|
|
669
676
|
}, [images]);
|
|
@@ -707,7 +714,7 @@ export const ProviderProductEdition = ({
|
|
|
707
714
|
attributeId,
|
|
708
715
|
value: valueOfAtribute,
|
|
709
716
|
boxId,
|
|
710
|
-
})
|
|
717
|
+
});
|
|
711
718
|
});
|
|
712
719
|
});
|
|
713
720
|
|
|
@@ -715,8 +722,8 @@ export const ProviderProductEdition = ({
|
|
|
715
722
|
articleId: product?.id_article,
|
|
716
723
|
articleData: updatedDatasheets,
|
|
717
724
|
...(parseBoxData.length > 0 && { boxData: parseBoxData }),
|
|
718
|
-
};
|
|
719
|
-
|
|
725
|
+
};
|
|
726
|
+
|
|
720
727
|
if (product?.orderId) dataObject["orderId"] = product?.orderId;
|
|
721
728
|
try {
|
|
722
729
|
const res = await axios.put(
|
|
@@ -735,8 +742,7 @@ export const ProviderProductEdition = ({
|
|
|
735
742
|
}
|
|
736
743
|
} catch (error) {
|
|
737
744
|
console.log(error);
|
|
738
|
-
}
|
|
739
|
-
console.log(dataObject)
|
|
745
|
+
}
|
|
740
746
|
};
|
|
741
747
|
|
|
742
748
|
const updateImages = useCallback(async () => {
|
|
@@ -862,33 +868,21 @@ export const ProviderProductEdition = ({
|
|
|
862
868
|
return "images";
|
|
863
869
|
}
|
|
864
870
|
};
|
|
871
|
+
|
|
865
872
|
|
|
866
|
-
const createComment = async (
|
|
867
|
-
let concept = "";
|
|
868
|
-
switch (activeTab) {
|
|
869
|
-
case "Ficha técnica":
|
|
870
|
-
concept = "datasheet";
|
|
871
|
-
break;
|
|
872
|
-
case "Imágenes":
|
|
873
|
-
concept = "images";
|
|
874
|
-
break;
|
|
875
|
-
|
|
876
|
-
default:
|
|
877
|
-
concept = "description";
|
|
878
|
-
break;
|
|
879
|
-
}
|
|
873
|
+
const createComment = async (messages = [], retailerId) => {
|
|
880
874
|
const data = {
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
await axios.post(`${process.env.REACT_APP_COMMENTS_ENDPOINT}`, data, {
|
|
888
|
-
headers: {
|
|
889
|
-
Authorization: token,
|
|
875
|
+
paramsBody: {
|
|
876
|
+
id: product.article.id_article || productEdit.ArticleId,
|
|
877
|
+
version: version,
|
|
878
|
+
items: messages,
|
|
879
|
+
retailerId: retailerId,
|
|
880
|
+
status: product.status || productEdit.product.status,
|
|
890
881
|
},
|
|
891
|
-
|
|
882
|
+
paramsHeader: { Authorization: token },
|
|
883
|
+
};
|
|
884
|
+
setMessage("");
|
|
885
|
+
return sendMessage(data);
|
|
892
886
|
};
|
|
893
887
|
|
|
894
888
|
useEffect(() => {
|
|
@@ -1181,13 +1175,6 @@ export const ProviderProductEdition = ({
|
|
|
1181
1175
|
}
|
|
1182
1176
|
};
|
|
1183
1177
|
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
1178
|
const evaluationToRetailer = async (result) => {
|
|
1192
1179
|
const data = {
|
|
1193
1180
|
articleId: product.id_article,
|
|
@@ -1224,8 +1211,6 @@ export const ProviderProductEdition = ({
|
|
|
1224
1211
|
|
|
1225
1212
|
const enableActions = (versionStatus) => {
|
|
1226
1213
|
try {
|
|
1227
|
-
if (user.is_retailer) return false;
|
|
1228
|
-
|
|
1229
1214
|
if (versionStatus) {
|
|
1230
1215
|
return ["AP", "ACA", "RCA", null].includes(versionStatus);
|
|
1231
1216
|
}
|
|
@@ -1269,7 +1254,6 @@ export const ProviderProductEdition = ({
|
|
|
1269
1254
|
},
|
|
1270
1255
|
];
|
|
1271
1256
|
const sendToEvaluation = (result) => {
|
|
1272
|
-
console.log({ result });
|
|
1273
1257
|
if (result === "A") {
|
|
1274
1258
|
if (
|
|
1275
1259
|
origin[activeTab] === "RequestWithoutContentoh" &&
|
|
@@ -1309,8 +1293,7 @@ export const ProviderProductEdition = ({
|
|
|
1309
1293
|
return;
|
|
1310
1294
|
} else if (user.is_retailer) {
|
|
1311
1295
|
if (product.id_order || product.orderId) {
|
|
1312
|
-
|
|
1313
|
-
showGlobalModal("error");
|
|
1296
|
+
sendEvaluation("R");
|
|
1314
1297
|
} else {
|
|
1315
1298
|
setDataGenericModal((prev) => ({
|
|
1316
1299
|
...prev,
|
|
@@ -1322,8 +1305,7 @@ export const ProviderProductEdition = ({
|
|
|
1322
1305
|
showGlobalModal("generic");
|
|
1323
1306
|
}
|
|
1324
1307
|
} else {
|
|
1325
|
-
|
|
1326
|
-
showGlobalModal("error");
|
|
1308
|
+
sendEvaluation("R");
|
|
1327
1309
|
}
|
|
1328
1310
|
}
|
|
1329
1311
|
};
|
|
@@ -1333,6 +1315,7 @@ export const ProviderProductEdition = ({
|
|
|
1333
1315
|
<HeaderTop
|
|
1334
1316
|
setHeaderTop={setHeaderTop}
|
|
1335
1317
|
withChat={location?.state?.withChat}
|
|
1318
|
+
chatType={location?.state?.chatType}
|
|
1336
1319
|
productSelected={productSelected}
|
|
1337
1320
|
token={token}
|
|
1338
1321
|
activeRetailer={activeRetailer}
|
|
@@ -1411,7 +1394,7 @@ export const ProviderProductEdition = ({
|
|
|
1411
1394
|
} else if (user.is_retailer) {
|
|
1412
1395
|
if (product.id_order || product.orderId) {
|
|
1413
1396
|
setValidatedAll(true);
|
|
1414
|
-
|
|
1397
|
+
setShowRejectModal(true);
|
|
1415
1398
|
} else {
|
|
1416
1399
|
setDataGenericModal((prev) => ({
|
|
1417
1400
|
...prev,
|
|
@@ -1423,12 +1406,14 @@ export const ProviderProductEdition = ({
|
|
|
1423
1406
|
showGlobalModal("generic");
|
|
1424
1407
|
}
|
|
1425
1408
|
} else {
|
|
1409
|
+
setShowRejectModal(true);
|
|
1426
1410
|
setValidatedAll(true);
|
|
1427
|
-
showGlobalModal("error");
|
|
1428
1411
|
}
|
|
1429
1412
|
}}
|
|
1430
1413
|
approve={() => sendToEvaluation("A")}
|
|
1431
|
-
reject={() =>
|
|
1414
|
+
reject={() => {
|
|
1415
|
+
setShowRejectModal(true);
|
|
1416
|
+
}}
|
|
1432
1417
|
/>
|
|
1433
1418
|
<FullTabsMenu
|
|
1434
1419
|
tabsSections={tabsSections}
|
|
@@ -1531,6 +1516,7 @@ export const ProviderProductEdition = ({
|
|
|
1531
1516
|
setUpdatedDescriptions={setUpdatedDescriptions}
|
|
1532
1517
|
articleId={product?.id_article}
|
|
1533
1518
|
version={version}
|
|
1519
|
+
isShowbox={false}
|
|
1534
1520
|
dinamicHeight={true}
|
|
1535
1521
|
/>
|
|
1536
1522
|
) : (
|
|
@@ -1557,87 +1543,41 @@ export const ProviderProductEdition = ({
|
|
|
1557
1543
|
</>
|
|
1558
1544
|
)}
|
|
1559
1545
|
</div>
|
|
1560
|
-
{isRevision() && getSectionStatus()
|
|
1561
|
-
<div className="
|
|
1562
|
-
|
|
1563
|
-
<
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
<
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
onClick={(e) =>
|
|
1577
|
-
createComment(
|
|
1578
|
-
e,
|
|
1579
|
-
document.querySelector(
|
|
1580
|
-
"#description-commentary-box-0 .ql-container .ql-editor > p"
|
|
1581
|
-
).innerHTML,
|
|
1582
|
-
activeTab
|
|
1583
|
-
)
|
|
1584
|
-
}
|
|
1585
|
-
/>
|
|
1586
|
-
</div>
|
|
1587
|
-
</div>
|
|
1546
|
+
{!(isRevision() && getSectionStatus()) && !revision && (
|
|
1547
|
+
<div className="required-inputs-message">
|
|
1548
|
+
<div>
|
|
1549
|
+
<p>
|
|
1550
|
+
Los atributos son requeridos por las plataformas de las
|
|
1551
|
+
cadenas, es muy importante completar los campos requeridos ya
|
|
1552
|
+
que pueden rechazar el producto por falta de información.
|
|
1553
|
+
</p>
|
|
1554
|
+
</div>
|
|
1555
|
+
{inCart ? (
|
|
1556
|
+
<button type="button">
|
|
1557
|
+
<Link to="/checkout">
|
|
1558
|
+
<p>Articulo en carrito</p>
|
|
1559
|
+
<p>Ir a checkout</p>
|
|
1560
|
+
</Link>
|
|
1561
|
+
</button>
|
|
1588
1562
|
) : (
|
|
1589
|
-
|
|
1590
|
-
<
|
|
1591
|
-
|
|
1592
|
-
|
|
1563
|
+
<>
|
|
1564
|
+
<SliderToolTip
|
|
1565
|
+
infoIcon={InfoIcon}
|
|
1566
|
+
slidefront={slidefront}
|
|
1567
|
+
iconSize={"big-image"}
|
|
1568
|
+
slidePosition={"top-slide"}
|
|
1593
1569
|
/>
|
|
1594
1570
|
<Button
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
commentRevised();
|
|
1571
|
+
onClick={() => {
|
|
1572
|
+
setShowContentohRequestModal &&
|
|
1573
|
+
setShowContentohRequestModal(true);
|
|
1599
1574
|
}}
|
|
1575
|
+
buttonType="general-default-button"
|
|
1576
|
+
label="Enviar a Content-oh!"
|
|
1600
1577
|
/>
|
|
1601
|
-
|
|
1578
|
+
</>
|
|
1602
1579
|
)}
|
|
1603
1580
|
</div>
|
|
1604
|
-
) : (
|
|
1605
|
-
!revision && (
|
|
1606
|
-
<div className="required-inputs-message">
|
|
1607
|
-
<div>
|
|
1608
|
-
<p>
|
|
1609
|
-
Los atributos son requeridos por las plataformas de las
|
|
1610
|
-
cadenas, es muy importante completar los campos requeridos
|
|
1611
|
-
ya que pueden rechazar el producto por falta de información.
|
|
1612
|
-
</p>
|
|
1613
|
-
</div>
|
|
1614
|
-
{inCart ? (
|
|
1615
|
-
<button type="button">
|
|
1616
|
-
<Link to="/checkout">
|
|
1617
|
-
<p>Articulo en carrito</p>
|
|
1618
|
-
<p>Ir a checkout</p>
|
|
1619
|
-
</Link>
|
|
1620
|
-
</button>
|
|
1621
|
-
) : (
|
|
1622
|
-
<>
|
|
1623
|
-
<SliderToolTip
|
|
1624
|
-
infoIcon={InfoIcon}
|
|
1625
|
-
slidefront={slidefront}
|
|
1626
|
-
iconSize={"big-image"}
|
|
1627
|
-
slidePosition={"top-slide"}
|
|
1628
|
-
/>
|
|
1629
|
-
<Button
|
|
1630
|
-
onClick={() => {
|
|
1631
|
-
setShowContentohRequestModal &&
|
|
1632
|
-
setShowContentohRequestModal(true);
|
|
1633
|
-
}}
|
|
1634
|
-
buttonType="general-default-button"
|
|
1635
|
-
label="Enviar a Content-oh!"
|
|
1636
|
-
/>
|
|
1637
|
-
</>
|
|
1638
|
-
)}
|
|
1639
|
-
</div>
|
|
1640
|
-
)
|
|
1641
1581
|
)}
|
|
1642
1582
|
</div>
|
|
1643
1583
|
</div>
|
|
@@ -1680,6 +1620,48 @@ export const ProviderProductEdition = ({
|
|
|
1680
1620
|
jwt={token}
|
|
1681
1621
|
/>
|
|
1682
1622
|
)}
|
|
1623
|
+
{showRejectModal && (
|
|
1624
|
+
<Modal
|
|
1625
|
+
title={"Agregar mensaje de rechazo"}
|
|
1626
|
+
show={showRejectModal}
|
|
1627
|
+
customComponent={
|
|
1628
|
+
<TagAndInput
|
|
1629
|
+
inputType={"textarea"}
|
|
1630
|
+
inputId={"modal-message-box"}
|
|
1631
|
+
index={0}
|
|
1632
|
+
color={"white"}
|
|
1633
|
+
/>
|
|
1634
|
+
}
|
|
1635
|
+
buttons={[
|
|
1636
|
+
<ButtonV2
|
|
1637
|
+
key={"btn-Cancelar"}
|
|
1638
|
+
type={"white"}
|
|
1639
|
+
label={"Cancelar"}
|
|
1640
|
+
size={12}
|
|
1641
|
+
onClick={() => {
|
|
1642
|
+
setShowRejectModal(false);
|
|
1643
|
+
}}
|
|
1644
|
+
/>,
|
|
1645
|
+
<ButtonV2
|
|
1646
|
+
key={"btn-Aceptar"}
|
|
1647
|
+
type={"pink"}
|
|
1648
|
+
label={"Aceptar"}
|
|
1649
|
+
size={12}
|
|
1650
|
+
onClick={async () => {
|
|
1651
|
+
const body = document.querySelector(
|
|
1652
|
+
"#modal-message-box .ql-container .ql-editor > p"
|
|
1653
|
+
).innerHTML;
|
|
1654
|
+
const messages = [
|
|
1655
|
+
{ type: "message", value: body?.replace(/<.*?\/?>/gm, "") },
|
|
1656
|
+
];
|
|
1657
|
+
await createComment(messages, activeRetailer.id);
|
|
1658
|
+
validatedAll ? validateAll("R") : sendToEvaluation("R");
|
|
1659
|
+
setShowRejectModal(false);
|
|
1660
|
+
}}
|
|
1661
|
+
/>,
|
|
1662
|
+
]}
|
|
1663
|
+
/>
|
|
1664
|
+
)}
|
|
1683
1665
|
</Container>
|
|
1684
1666
|
);
|
|
1685
1667
|
};
|
|
@@ -107,6 +107,10 @@ export const Container = styled.div`
|
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
+
#modal-message-box {
|
|
111
|
+
width: 400px;
|
|
112
|
+
height: 100px;
|
|
113
|
+
}
|
|
110
114
|
.container {
|
|
111
115
|
width: 100%;
|
|
112
116
|
height: 100%;
|
|
@@ -115,4 +119,4 @@ export const Container = styled.div`
|
|
|
115
119
|
width: 100%;
|
|
116
120
|
}
|
|
117
121
|
}
|
|
118
|
-
`;
|
|
122
|
+
`;
|
|
@@ -16,64 +16,64 @@ RetailerProductEditionDefault.args = {
|
|
|
16
16
|
Imágenes: false,
|
|
17
17
|
},
|
|
18
18
|
token:
|
|
19
|
-
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.
|
|
19
|
+
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI5YTIxMzEyOC02NDgyLTRjMTYtYTRiNi02ZTY0ZjIyNWIxYmQiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwiY29nbml0bzp1c2VybmFtZSI6IjlhMjEzMTI4LTY0ODItNGMxNi1hNGI2LTZlNjRmMjI1YjFiZCIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiIxMGZiNTE4Mi1jMGI5LTQyZGUtYTAyZC1lOTJlZWI2NWFlN2QiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTcwMTkwMjA4NywibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTcwMTkwNTY4NywiaWF0IjoxNzAxOTAyMDg3LCJlbWFpbCI6ImlzbWFlbDk3bG9wZXpAZ21haWwuY29tIn0.JpoKZHuzPZG2ttaT7Oz3CAPR7xZU19txSDyjGHIwya2zV9uOHxauS0-orNRry8lfpZHQt_ISF2W-XSARUvCG1SqTXi41-o53DsWfZhqe9dQk6DGDnvFzXFsaEbaxAPjTfYc491sHCpOjf4W98quBuzDZCRtdCsr9u3A0AnX8Lh1Jquvn83nrHN2ZeefpLyKc-xGGp50Oy6EnJgSK4PcAAV631nwYV9DfVaLb3SIWDrJIIuBjFjBBCXBcnGJBieErlnF-4gumHzsro_QqF-s7aq_3EJChAhfslFvczNSyDc-LXJVkpDuZW3TaYKlHwhoFxz1aMuYRFQ8xy5Pz8FDNKQ",
|
|
20
20
|
productSelected: {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
images: 1,
|
|
25
|
-
},
|
|
26
|
-
orderId: 15275,
|
|
27
|
-
status: "AC",
|
|
28
|
-
datasheet_status: "AC",
|
|
21
|
+
orderId: 15190,
|
|
22
|
+
status: "RA",
|
|
23
|
+
datasheet_status: "NS",
|
|
29
24
|
prio: "none",
|
|
30
25
|
version: 3,
|
|
31
|
-
description_status: "
|
|
32
|
-
images_status: "
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
26
|
+
description_status: "NS",
|
|
27
|
+
images_status: "RA",
|
|
28
|
+
brand: null,
|
|
29
|
+
retailerOrder: 0,
|
|
30
|
+
missing: {
|
|
31
|
+
datasheet: null,
|
|
32
|
+
descriptions: null,
|
|
33
|
+
images: null,
|
|
34
|
+
},
|
|
35
|
+
services: {
|
|
36
|
+
datasheets: 0,
|
|
37
|
+
descriptions: 0,
|
|
38
|
+
images: 1,
|
|
39
39
|
},
|
|
40
40
|
article: {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
name: "Mix de nueces",
|
|
44
|
-
upc: "7543453453",
|
|
45
|
-
timestamp: "2023-07-14T21:02:54.000Z",
|
|
46
|
-
id_user: 28,
|
|
47
|
-
status: "NULL",
|
|
48
|
-
active: 1,
|
|
49
|
-
company_id: 1,
|
|
41
|
+
category:
|
|
42
|
+
"Abarrotes Básicos|Abarrotes Básicos y Procesados|Abarrotes Básicos y Procesados",
|
|
50
43
|
company_name: "GRUPO BRAHMA",
|
|
51
44
|
country: "México",
|
|
52
|
-
|
|
53
|
-
id_datasheet_especialist:
|
|
54
|
-
id_datasheet_facilitator:
|
|
55
|
-
id_description_especialist:
|
|
56
|
-
id_description_facilitator:
|
|
45
|
+
id_category: "4004",
|
|
46
|
+
id_datasheet_especialist: null,
|
|
47
|
+
id_datasheet_facilitator: null,
|
|
48
|
+
id_description_especialist: null,
|
|
49
|
+
id_description_facilitator: null,
|
|
57
50
|
id_images_especialist: 55,
|
|
58
51
|
id_images_facilitator: 53,
|
|
52
|
+
id_order: 15190,
|
|
53
|
+
id_article: 39364,
|
|
59
54
|
id_auditor: 37,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
missingDescriptions: 0,
|
|
64
|
-
missingImages: 0,
|
|
55
|
+
name: "test 2 img ba",
|
|
56
|
+
timestamp: "2023-05-05T02:56:16.000Z",
|
|
57
|
+
upc: "4353242",
|
|
65
58
|
},
|
|
66
59
|
retailers: [
|
|
67
60
|
{
|
|
68
|
-
id:
|
|
69
|
-
name: "
|
|
61
|
+
id: 70,
|
|
62
|
+
name: "Bodega Aurrera",
|
|
70
63
|
},
|
|
71
64
|
],
|
|
72
|
-
|
|
73
|
-
|
|
65
|
+
statusByRetailer: {
|
|
66
|
+
70: {
|
|
67
|
+
images: "RA/AC",
|
|
68
|
+
},
|
|
69
|
+
},
|
|
74
70
|
},
|
|
75
71
|
location: {
|
|
76
|
-
product: { articleId:
|
|
72
|
+
product: { articleId: 39364, versionId: 3 },
|
|
73
|
+
state: {
|
|
74
|
+
withChat: true,
|
|
75
|
+
chatType: "product_status",
|
|
76
|
+
},
|
|
77
77
|
},
|
|
78
78
|
user: {
|
|
79
79
|
id_user: 37,
|
|
@@ -83,7 +83,7 @@ RetailerProductEditionDefault.args = {
|
|
|
83
83
|
position: "Auditor",
|
|
84
84
|
telephone: "",
|
|
85
85
|
country: "México",
|
|
86
|
-
id_company:
|
|
86
|
+
id_company: 254,
|
|
87
87
|
id_cognito: "9a213128-6482-4c16-a4b6-6e64f225b1bd",
|
|
88
88
|
birth_Date: null,
|
|
89
89
|
about_me: "",
|
|
@@ -97,16 +97,16 @@ RetailerProductEditionDefault.args = {
|
|
|
97
97
|
email_notify: 1,
|
|
98
98
|
is_user_tech: null,
|
|
99
99
|
membership: {
|
|
100
|
-
id:
|
|
101
|
-
start_date: "
|
|
102
|
-
end_date: "
|
|
103
|
-
planID:
|
|
104
|
-
plan: "
|
|
105
|
-
name: "Plan
|
|
106
|
-
user_limit: "
|
|
107
|
-
products_limit: "
|
|
108
|
-
type: "
|
|
100
|
+
id: 137,
|
|
101
|
+
start_date: "2023-10-04T15:46:14.000Z",
|
|
102
|
+
end_date: "2024-10-04T08:46:09.000Z",
|
|
103
|
+
planID: 8,
|
|
104
|
+
plan: "prod_KtlhECVSFG2iro",
|
|
105
|
+
name: "Plan Pro",
|
|
106
|
+
user_limit: "50",
|
|
107
|
+
products_limit: "5000",
|
|
108
|
+
type: "Enterprise",
|
|
109
109
|
},
|
|
110
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-37/37.png?
|
|
110
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-37/37.png?1701902088068",
|
|
111
111
|
},
|
|
112
112
|
};
|